diff --git a/trivia-forge/backend/.gitignore b/trivia-forge/backend/.gitignore new file mode 100644 index 00000000..4c49bd78 --- /dev/null +++ b/trivia-forge/backend/.gitignore @@ -0,0 +1 @@ +.env diff --git a/trivia-forge/frontend/.gitignore b/trivia-forge/frontend/.gitignore index 8307a1e1..42e70077 100644 --- a/trivia-forge/frontend/.gitignore +++ b/trivia-forge/frontend/.gitignore @@ -13,7 +13,7 @@ node_modules dist dist-ssr *.local -openai-env +./.openai-env # Editor directories and files .vscode/* diff --git a/trivia-forge/node_modules/.cache/.eslintcache b/trivia-forge/node_modules/.cache/.eslintcache deleted file mode 100644 index 9d7c8e24..00000000 --- a/trivia-forge/node_modules/.cache/.eslintcache +++ /dev/null @@ -1 +0,0 @@ -[{"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/index.js":"1","/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/App.js":"2","/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/reportWebVitals.js":"3","/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js":"4","/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/MyTrivia.js":"5","/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/components/Nav.js":"6","/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/HomePage.js":"7","/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/components/BootstrapTable.js":"8"},{"size":582,"mtime":1713481511784,"results":"9","hashOfConfig":"10"},{"size":753,"mtime":1713481511784,"results":"11","hashOfConfig":"10"},{"size":362,"mtime":1713481511785,"results":"12","hashOfConfig":"10"},{"size":2895,"mtime":1713572450661,"results":"13","hashOfConfig":"10"},{"size":280,"mtime":1713481511784,"results":"14","hashOfConfig":"10"},{"size":611,"mtime":1713481511784,"results":"15","hashOfConfig":"10"},{"size":286,"mtime":1713481511784,"results":"16","hashOfConfig":"10"},{"size":1361,"mtime":1713481511784,"results":"17","hashOfConfig":"10"},{"filePath":"18","messages":"19","suppressedMessages":"20","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1nrotyu",{"filePath":"21","messages":"22","suppressedMessages":"23","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"24","messages":"25","suppressedMessages":"26","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"27","messages":"28","suppressedMessages":"29","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"30","messages":"31","suppressedMessages":"32","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"33","messages":"34","suppressedMessages":"35","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"36","messages":"37","suppressedMessages":"38","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"39","messages":"40","suppressedMessages":"41","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/index.js",[],[],"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/App.js",[],[],"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/reportWebVitals.js",[],[],"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js",[],[],"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/MyTrivia.js",[],[],"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/components/Nav.js",["42"],[],"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/HomePage.js",[],[],"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/components/BootstrapTable.js",[],[],{"ruleId":"43","severity":1,"message":"44","line":4,"column":10,"nodeType":"45","messageId":"46","endLine":4,"endColumn":14},"no-unused-vars","'Link' is defined but never used.","Identifier","unusedVar"] \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/00c76801611cabcd51d1e974591c7197c617e0e6393f0aede84dbcfe59562b12.json b/trivia-forge/node_modules/.cache/babel-loader/00c76801611cabcd51d1e974591c7197c617e0e6393f0aede84dbcfe59562b12.json deleted file mode 100644 index de6684fa..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/00c76801611cabcd51d1e974591c7197c617e0e6393f0aede84dbcfe59562b12.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaQuestion\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaQuestion\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"hg16lLzJerCd9XnW4Ja5h3Su2Cs=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","jsxDEV","_jsxDEV","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","console","log","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAExC,SAASC,aAAaA,CAAA,EAAG;EAAAC,EAAA;EACrB,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGN,QAAQ,CAAC,CAAC,CAAC;EAC7D,MAAM,CAACO,QAAQ,EAAEC,WAAW,CAAC,GAAGR,QAAQ,CAAC,EAAE,CAAC;EAE5C,MAAMS,YAAY,GAAG,MAAOC,KAAK,IAAK;IAClCA,KAAK,CAACC,cAAc,CAAC,CAAC;;IAGtB;;IAEAC,OAAO,CAACC,GAAG,CAAC;MACRR,iBAAiB;MACjBE;IACJ,CAAC,CAAC;;IAEF;EAEJ,CAAC;EAGD,oBACIL,OAAA;IAAAY,QAAA,gBACIZ,OAAA;MAAAY,QAAA,EAAI;IAEJ;MAAAC,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAAI,CAAC,eACLhB,OAAA;MAAMi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Ac;UAACC,WAAW,EAAC;QAAc;UAAAT,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAE,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAC1F,CAAC,eACNhB,OAAA;QAAQoB,IAAI,EAAC,QAAQ;QAACF,SAAS,EAAC,iBAAiB;QAAAN,QAAA,EAAC;MAAM;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAC/D,CAAC;EAAA;IAAAH,QAAA,EAAAC,YAAA;IAAAC,UAAA;IAAAC,YAAA;EAAA,OAEN,CAAC;AAGd;AAACd,EAAA,CAjDQD,aAAa;AAAAsB,EAAA,GAAbtB,aAAa;AAkDtB,eAAeA,aAAa;AAAC,IAAAsB,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0103a25a5c4847476a396012a4da6f58a50b20609269ff68d385efe4b7244f93.json b/trivia-forge/node_modules/.cache/babel-loader/0103a25a5c4847476a396012a4da6f58a50b20609269ff68d385efe4b7244f93.json deleted file mode 100644 index 323537c9..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0103a25a5c4847476a396012a4da6f58a50b20609269ff68d385efe4b7244f93.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport { useEffect, useMemo, useRef, useCallback } from 'react';\nimport classNames from 'classnames';\nimport useTimeout from '@restart/hooks/useTimeout';\nimport ToastFade from './ToastFade';\nimport ToastHeader from './ToastHeader';\nimport ToastBody from './ToastBody';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport ToastContext from './ToastContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst Toast = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n bsPrefix,\n className,\n transition: Transition = ToastFade,\n show = true,\n animation = true,\n delay = 5000,\n autohide = false,\n onClose,\n onEntered,\n onExit,\n onExiting,\n onEnter,\n onEntering,\n onExited,\n bg,\n ...props\n } = _ref;\n bsPrefix = useBootstrapPrefix(bsPrefix, 'toast');\n\n // We use refs for these, because we don't want to restart the autohide\n // timer in case these values change.\n const delayRef = useRef(delay);\n const onCloseRef = useRef(onClose);\n useEffect(() => {\n delayRef.current = delay;\n onCloseRef.current = onClose;\n }, [delay, onClose]);\n const autohideTimeout = useTimeout();\n const autohideToast = !!(autohide && show);\n const autohideFunc = useCallback(() => {\n if (autohideToast) {\n onCloseRef.current == null ? void 0 : onCloseRef.current();\n }\n }, [autohideToast]);\n useEffect(() => {\n // Only reset timer if show or autohide changes.\n autohideTimeout.set(autohideFunc, delayRef.current);\n }, [autohideTimeout, autohideFunc]);\n const toastContext = useMemo(() => ({\n onClose\n }), [onClose]);\n const hasAnimation = !!(Transition && animation);\n const toast = /*#__PURE__*/_jsx(\"div\", {\n ...props,\n ref: ref,\n className: classNames(bsPrefix, className, bg && \"bg-\".concat(bg), !hasAnimation && (show ? 'show' : 'hide')),\n role: \"alert\",\n \"aria-live\": \"assertive\",\n \"aria-atomic\": \"true\"\n });\n return /*#__PURE__*/_jsx(ToastContext.Provider, {\n value: toastContext,\n children: hasAnimation && Transition ? /*#__PURE__*/_jsx(Transition, {\n in: show,\n onEnter: onEnter,\n onEntering: onEntering,\n onEntered: onEntered,\n onExit: onExit,\n onExiting: onExiting,\n onExited: onExited,\n unmountOnExit: true,\n children: toast\n }) : toast\n });\n});\nToast.displayName = 'Toast';\nexport default Object.assign(Toast, {\n Body: ToastBody,\n Header: ToastHeader\n});","map":{"version":3,"names":["React","useEffect","useMemo","useRef","useCallback","classNames","useTimeout","ToastFade","ToastHeader","ToastBody","useBootstrapPrefix","ToastContext","jsx","_jsx","Toast","forwardRef","_ref","ref","bsPrefix","className","transition","Transition","show","animation","delay","autohide","onClose","onEntered","onExit","onExiting","onEnter","onEntering","onExited","bg","props","delayRef","onCloseRef","current","autohideTimeout","autohideToast","autohideFunc","set","toastContext","hasAnimation","toast","concat","role","Provider","value","children","in","unmountOnExit","displayName","Object","assign","Body","Header"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/Toast.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { useEffect, useMemo, useRef, useCallback } from 'react';\nimport classNames from 'classnames';\nimport useTimeout from '@restart/hooks/useTimeout';\nimport ToastFade from './ToastFade';\nimport ToastHeader from './ToastHeader';\nimport ToastBody from './ToastBody';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport ToastContext from './ToastContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst Toast = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n transition: Transition = ToastFade,\n show = true,\n animation = true,\n delay = 5000,\n autohide = false,\n onClose,\n onEntered,\n onExit,\n onExiting,\n onEnter,\n onEntering,\n onExited,\n bg,\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'toast');\n\n // We use refs for these, because we don't want to restart the autohide\n // timer in case these values change.\n const delayRef = useRef(delay);\n const onCloseRef = useRef(onClose);\n useEffect(() => {\n delayRef.current = delay;\n onCloseRef.current = onClose;\n }, [delay, onClose]);\n const autohideTimeout = useTimeout();\n const autohideToast = !!(autohide && show);\n const autohideFunc = useCallback(() => {\n if (autohideToast) {\n onCloseRef.current == null ? void 0 : onCloseRef.current();\n }\n }, [autohideToast]);\n useEffect(() => {\n // Only reset timer if show or autohide changes.\n autohideTimeout.set(autohideFunc, delayRef.current);\n }, [autohideTimeout, autohideFunc]);\n const toastContext = useMemo(() => ({\n onClose\n }), [onClose]);\n const hasAnimation = !!(Transition && animation);\n const toast = /*#__PURE__*/_jsx(\"div\", {\n ...props,\n ref: ref,\n className: classNames(bsPrefix, className, bg && `bg-${bg}`, !hasAnimation && (show ? 'show' : 'hide')),\n role: \"alert\",\n \"aria-live\": \"assertive\",\n \"aria-atomic\": \"true\"\n });\n return /*#__PURE__*/_jsx(ToastContext.Provider, {\n value: toastContext,\n children: hasAnimation && Transition ? /*#__PURE__*/_jsx(Transition, {\n in: show,\n onEnter: onEnter,\n onEntering: onEntering,\n onEntered: onEntered,\n onExit: onExit,\n onExiting: onExiting,\n onExited: onExited,\n unmountOnExit: true,\n children: toast\n }) : toast\n });\n});\nToast.displayName = 'Toast';\nexport default Object.assign(Toast, {\n Body: ToastBody,\n Header: ToastHeader\n});"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,WAAW,QAAQ,OAAO;AAC/D,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,UAAU,MAAM,2BAA2B;AAClD,OAAOC,SAAS,MAAM,aAAa;AACnC,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,SAAS,MAAM,aAAa;AACnC,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,OAAOC,YAAY,MAAM,gBAAgB;AACzC,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,KAAK,GAAG,aAAad,KAAK,CAACe,UAAU,CAAC,CAAAC,IAAA,EAiBzCC,GAAG,KAAK;EAAA,IAjBkC;IAC3CC,QAAQ;IACRC,SAAS;IACTC,UAAU,EAAEC,UAAU,GAAGd,SAAS;IAClCe,IAAI,GAAG,IAAI;IACXC,SAAS,GAAG,IAAI;IAChBC,KAAK,GAAG,IAAI;IACZC,QAAQ,GAAG,KAAK;IAChBC,OAAO;IACPC,SAAS;IACTC,MAAM;IACNC,SAAS;IACTC,OAAO;IACPC,UAAU;IACVC,QAAQ;IACRC,EAAE;IACF,GAAGC;EACL,CAAC,GAAAlB,IAAA;EACCE,QAAQ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G,MAAM,CAAC,CAAC;IACvGwB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,WAAW;IACxB,aAAa,EAAE;EACjB,CAAC,CAAC;EACF,OAAO,aAAajC,IAAI,CAACF,YAAY,CAACoC,QAAQ,EAAE;IAC9CC,KAAK,EAAEN,YAAY;IACnBO,QAAQ,EAAEN,YAAY,IAAItB,UAAU,GAAG,aAAaR,IAAI,CAACQ,UAAU,EAAE;MACnE6B,EAAE,EAAE5B,IAAI;MACRQ,OAAO,EAAEA,OAAO;MAChBC,UAAU,EAAEA,UAAU;MACtBJ,SAAS,EAAEA,SAAS;MACpBC,MAAM,EAAEA,MAAM;MACdC,SAAS,EAAEA,SAAS;MACpBG,QAAQ,EAAEA,QAAQ;MAClBmB,aAAa,EAAE,IAAI;MACnBF,QAAQ,EAAEL;IACZ,CAAC,CAAC,GAAGA;EACP,CAAC,CAAC;AACJ,CAAC,CAAC;AACF9B,KAAK,CAACsC,WAAW,GAAG,OAAO;AAC3B,eAAeC,MAAM,CAACC,MAAM,CAACxC,KAAK,EAAE;EAClCyC,IAAI,EAAE9C,SAAS;EACf+C,MAAM,EAAEhD;AACV,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/017148086929d26864cdceed550c524413302b675a1c59a8d104732538437b50.json b/trivia-forge/node_modules/.cache/babel-loader/017148086929d26864cdceed550c524413302b675a1c59a8d104732538437b50.json deleted file mode 100644 index 1a89e74c..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/017148086929d26864cdceed550c524413302b675a1c59a8d104732538437b50.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"'use strict';\n\nmodule.exports = {};","map":{"version":3,"names":["module","exports"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/core-js-pure/internals/path.js"],"sourcesContent":["'use strict';\nmodule.exports = {};\n"],"mappings":"AAAA,YAAY;;AACZA,MAAM,CAACC,OAAO,GAAG,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0178d386cbf46ccd96733c0a962a92c7bc6e8ecbe92c7e69d5fc3f09078e78bd.json b/trivia-forge/node_modules/.cache/babel-loader/0178d386cbf46ccd96733c0a962a92c7bc6e8ecbe92c7e69d5fc3f09078e78bd.json deleted file mode 100644 index 55ee7610..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0178d386cbf46ccd96733c0a962a92c7bc6e8ecbe92c7e69d5fc3f09078e78bd.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.\nimport { APIResource } from 'openai/resource';\nimport { isRequestOptions } from 'openai/core';\nimport * as JobsAPI from 'openai/resources/fine-tuning/jobs/jobs';\nimport * as CheckpointsAPI from 'openai/resources/fine-tuning/jobs/checkpoints';\nimport { CursorPage } from 'openai/pagination';\nexport class Jobs extends APIResource {\n constructor() {\n super(...arguments);\n this.checkpoints = new CheckpointsAPI.Checkpoints(this._client);\n }\n /**\n * Creates a fine-tuning job which begins the process of creating a new model from\n * a given dataset.\n *\n * Response includes details of the enqueued job including job status and the name\n * of the fine-tuned models once complete.\n *\n * [Learn more about fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)\n */\n create(body, options) {\n return this._client.post('/fine_tuning/jobs', {\n body,\n ...options\n });\n }\n /**\n * Get info about a fine-tuning job.\n *\n * [Learn more about fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)\n */\n retrieve(fineTuningJobId, options) {\n return this._client.get(\"/fine_tuning/jobs/\".concat(fineTuningJobId), options);\n }\n list() {\n let query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n let options = arguments.length > 1 ? arguments[1] : undefined;\n if (isRequestOptions(query)) {\n return this.list({}, query);\n }\n return this._client.getAPIList('/fine_tuning/jobs', FineTuningJobsPage, {\n query,\n ...options\n });\n }\n /**\n * Immediately cancel a fine-tune job.\n */\n cancel(fineTuningJobId, options) {\n return this._client.post(\"/fine_tuning/jobs/\".concat(fineTuningJobId, \"/cancel\"), options);\n }\n listEvents(fineTuningJobId) {\n let query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let options = arguments.length > 2 ? arguments[2] : undefined;\n if (isRequestOptions(query)) {\n return this.listEvents(fineTuningJobId, {}, query);\n }\n return this._client.getAPIList(\"/fine_tuning/jobs/\".concat(fineTuningJobId, \"/events\"), FineTuningJobEventsPage, {\n query,\n ...options\n });\n }\n}\nexport class FineTuningJobsPage extends CursorPage {}\nexport class FineTuningJobEventsPage extends CursorPage {}\n(function (Jobs) {\n Jobs.FineTuningJobsPage = JobsAPI.FineTuningJobsPage;\n Jobs.FineTuningJobEventsPage = JobsAPI.FineTuningJobEventsPage;\n Jobs.Checkpoints = CheckpointsAPI.Checkpoints;\n Jobs.FineTuningJobCheckpointsPage = CheckpointsAPI.FineTuningJobCheckpointsPage;\n})(Jobs || (Jobs = {}));","map":{"version":3,"names":["APIResource","isRequestOptions","JobsAPI","CheckpointsAPI","CursorPage","Jobs","constructor","checkpoints","Checkpoints","_client","create","body","options","post","retrieve","fineTuningJobId","get","concat","list","query","arguments","length","undefined","getAPIList","FineTuningJobsPage","cancel","listEvents","FineTuningJobEventsPage","FineTuningJobCheckpointsPage"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/openai/src/resources/fine-tuning/jobs/jobs.ts"],"sourcesContent":["// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.\n\nimport * as Core from \"../../../core\";\nimport { APIResource } from \"../../../resource\";\nimport { isRequestOptions } from \"../../../core\";\nimport * as JobsAPI from \"./jobs\";\nimport * as CheckpointsAPI from \"./checkpoints\";\nimport { CursorPage, type CursorPageParams } from \"../../../pagination\";\n\nexport class Jobs extends APIResource {\n checkpoints: CheckpointsAPI.Checkpoints = new CheckpointsAPI.Checkpoints(this._client);\n\n /**\n * Creates a fine-tuning job which begins the process of creating a new model from\n * a given dataset.\n *\n * Response includes details of the enqueued job including job status and the name\n * of the fine-tuned models once complete.\n *\n * [Learn more about fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)\n */\n create(body: JobCreateParams, options?: Core.RequestOptions): Core.APIPromise {\n return this._client.post('/fine_tuning/jobs', { body, ...options });\n }\n\n /**\n * Get info about a fine-tuning job.\n *\n * [Learn more about fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)\n */\n retrieve(fineTuningJobId: string, options?: Core.RequestOptions): Core.APIPromise {\n return this._client.get(`/fine_tuning/jobs/${fineTuningJobId}`, options);\n }\n\n /**\n * List your organization's fine-tuning jobs\n */\n list(\n query?: JobListParams,\n options?: Core.RequestOptions,\n ): Core.PagePromise;\n list(options?: Core.RequestOptions): Core.PagePromise;\n list(\n query: JobListParams | Core.RequestOptions = {},\n options?: Core.RequestOptions,\n ): Core.PagePromise {\n if (isRequestOptions(query)) {\n return this.list({}, query);\n }\n return this._client.getAPIList('/fine_tuning/jobs', FineTuningJobsPage, { query, ...options });\n }\n\n /**\n * Immediately cancel a fine-tune job.\n */\n cancel(fineTuningJobId: string, options?: Core.RequestOptions): Core.APIPromise {\n return this._client.post(`/fine_tuning/jobs/${fineTuningJobId}/cancel`, options);\n }\n\n /**\n * Get status updates for a fine-tuning job.\n */\n listEvents(\n fineTuningJobId: string,\n query?: JobListEventsParams,\n options?: Core.RequestOptions,\n ): Core.PagePromise;\n listEvents(\n fineTuningJobId: string,\n options?: Core.RequestOptions,\n ): Core.PagePromise;\n listEvents(\n fineTuningJobId: string,\n query: JobListEventsParams | Core.RequestOptions = {},\n options?: Core.RequestOptions,\n ): Core.PagePromise {\n if (isRequestOptions(query)) {\n return this.listEvents(fineTuningJobId, {}, query);\n }\n return this._client.getAPIList(`/fine_tuning/jobs/${fineTuningJobId}/events`, FineTuningJobEventsPage, {\n query,\n ...options,\n });\n }\n}\n\nexport class FineTuningJobsPage extends CursorPage {}\n\nexport class FineTuningJobEventsPage extends CursorPage {}\n\n/**\n * The `fine_tuning.job` object represents a fine-tuning job that has been created\n * through the API.\n */\nexport interface FineTuningJob {\n /**\n * The object identifier, which can be referenced in the API endpoints.\n */\n id: string;\n\n /**\n * The Unix timestamp (in seconds) for when the fine-tuning job was created.\n */\n created_at: number;\n\n /**\n * For fine-tuning jobs that have `failed`, this will contain more information on\n * the cause of the failure.\n */\n error: FineTuningJob.Error | null;\n\n /**\n * The name of the fine-tuned model that is being created. The value will be null\n * if the fine-tuning job is still running.\n */\n fine_tuned_model: string | null;\n\n /**\n * The Unix timestamp (in seconds) for when the fine-tuning job was finished. The\n * value will be null if the fine-tuning job is still running.\n */\n finished_at: number | null;\n\n /**\n * The hyperparameters used for the fine-tuning job. See the\n * [fine-tuning guide](https://platform.openai.com/docs/guides/fine-tuning) for\n * more details.\n */\n hyperparameters: FineTuningJob.Hyperparameters;\n\n /**\n * The base model that is being fine-tuned.\n */\n model: string;\n\n /**\n * The object type, which is always \"fine_tuning.job\".\n */\n object: 'fine_tuning.job';\n\n /**\n * The organization that owns the fine-tuning job.\n */\n organization_id: string;\n\n /**\n * The compiled results file ID(s) for the fine-tuning job. You can retrieve the\n * results with the\n * [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents).\n */\n result_files: Array;\n\n /**\n * The seed used for the fine-tuning job.\n */\n seed: number;\n\n /**\n * The current status of the fine-tuning job, which can be either\n * `validating_files`, `queued`, `running`, `succeeded`, `failed`, or `cancelled`.\n */\n status: 'validating_files' | 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled';\n\n /**\n * The total number of billable tokens processed by this fine-tuning job. The value\n * will be null if the fine-tuning job is still running.\n */\n trained_tokens: number | null;\n\n /**\n * The file ID used for training. You can retrieve the training data with the\n * [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents).\n */\n training_file: string;\n\n /**\n * The file ID used for validation. You can retrieve the validation results with\n * the\n * [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents).\n */\n validation_file: string | null;\n\n /**\n * A list of integrations to enable for this fine-tuning job.\n */\n integrations?: Array | null;\n}\n\nexport namespace FineTuningJob {\n /**\n * For fine-tuning jobs that have `failed`, this will contain more information on\n * the cause of the failure.\n */\n export interface Error {\n /**\n * A machine-readable error code.\n */\n code: string;\n\n /**\n * A human-readable error message.\n */\n message: string;\n\n /**\n * The parameter that was invalid, usually `training_file` or `validation_file`.\n * This field will be null if the failure was not parameter-specific.\n */\n param: string | null;\n }\n\n /**\n * The hyperparameters used for the fine-tuning job. See the\n * [fine-tuning guide](https://platform.openai.com/docs/guides/fine-tuning) for\n * more details.\n */\n export interface Hyperparameters {\n /**\n * The number of epochs to train the model for. An epoch refers to one full cycle\n * through the training dataset. \"auto\" decides the optimal number of epochs based\n * on the size of the dataset. If setting the number manually, we support any\n * number between 1 and 50 epochs.\n */\n n_epochs: 'auto' | number;\n }\n}\n\n/**\n * Fine-tuning job event object\n */\nexport interface FineTuningJobEvent {\n id: string;\n\n created_at: number;\n\n level: 'info' | 'warn' | 'error';\n\n message: string;\n\n object: 'fine_tuning.job.event';\n}\n\nexport type FineTuningJobIntegration = FineTuningJobWandbIntegrationObject;\n\n/**\n * The settings for your integration with Weights and Biases. This payload\n * specifies the project that metrics will be sent to. Optionally, you can set an\n * explicit display name for your run, add tags to your run, and set a default\n * entity (team, username, etc) to be associated with your run.\n */\nexport interface FineTuningJobWandbIntegration {\n /**\n * The name of the project that the new run will be created under.\n */\n project: string;\n\n /**\n * The entity to use for the run. This allows you to set the team or username of\n * the WandB user that you would like associated with the run. If not set, the\n * default entity for the registered WandB API key is used.\n */\n entity?: string | null;\n\n /**\n * A display name to set for the run. If not set, we will use the Job ID as the\n * name.\n */\n name?: string | null;\n\n /**\n * A list of tags to be attached to the newly created run. These tags are passed\n * through directly to WandB. Some default tags are generated by OpenAI:\n * \"openai/finetune\", \"openai/{base-model}\", \"openai/{ftjob-abcdef}\".\n */\n tags?: Array;\n}\n\nexport interface FineTuningJobWandbIntegrationObject {\n /**\n * The type of the integration being enabled for the fine-tuning job\n */\n type: 'wandb';\n\n /**\n * The settings for your integration with Weights and Biases. This payload\n * specifies the project that metrics will be sent to. Optionally, you can set an\n * explicit display name for your run, add tags to your run, and set a default\n * entity (team, username, etc) to be associated with your run.\n */\n wandb: FineTuningJobWandbIntegration;\n}\n\nexport interface JobCreateParams {\n /**\n * The name of the model to fine-tune. You can select one of the\n * [supported models](https://platform.openai.com/docs/guides/fine-tuning/what-models-can-be-fine-tuned).\n */\n model: (string & {}) | 'babbage-002' | 'davinci-002' | 'gpt-3.5-turbo';\n\n /**\n * The ID of an uploaded file that contains training data.\n *\n * See [upload file](https://platform.openai.com/docs/api-reference/files/create)\n * for how to upload a file.\n *\n * Your dataset must be formatted as a JSONL file. Additionally, you must upload\n * your file with the purpose `fine-tune`.\n *\n * See the [fine-tuning guide](https://platform.openai.com/docs/guides/fine-tuning)\n * for more details.\n */\n training_file: string;\n\n /**\n * The hyperparameters used for the fine-tuning job.\n */\n hyperparameters?: JobCreateParams.Hyperparameters;\n\n /**\n * A list of integrations to enable for your fine-tuning job.\n */\n integrations?: Array | null;\n\n /**\n * The seed controls the reproducibility of the job. Passing in the same seed and\n * job parameters should produce the same results, but may differ in rare cases. If\n * a seed is not specified, one will be generated for you.\n */\n seed?: number | null;\n\n /**\n * A string of up to 18 characters that will be added to your fine-tuned model\n * name.\n *\n * For example, a `suffix` of \"custom-model-name\" would produce a model name like\n * `ft:gpt-3.5-turbo:openai:custom-model-name:7p4lURel`.\n */\n suffix?: string | null;\n\n /**\n * The ID of an uploaded file that contains validation data.\n *\n * If you provide this file, the data is used to generate validation metrics\n * periodically during fine-tuning. These metrics can be viewed in the fine-tuning\n * results file. The same data should not be present in both train and validation\n * files.\n *\n * Your dataset must be formatted as a JSONL file. You must upload your file with\n * the purpose `fine-tune`.\n *\n * See the [fine-tuning guide](https://platform.openai.com/docs/guides/fine-tuning)\n * for more details.\n */\n validation_file?: string | null;\n}\n\nexport namespace JobCreateParams {\n /**\n * The hyperparameters used for the fine-tuning job.\n */\n export interface Hyperparameters {\n /**\n * Number of examples in each batch. A larger batch size means that model\n * parameters are updated less frequently, but with lower variance.\n */\n batch_size?: 'auto' | number;\n\n /**\n * Scaling factor for the learning rate. A smaller learning rate may be useful to\n * avoid overfitting.\n */\n learning_rate_multiplier?: 'auto' | number;\n\n /**\n * The number of epochs to train the model for. An epoch refers to one full cycle\n * through the training dataset.\n */\n n_epochs?: 'auto' | number;\n }\n\n export interface Integration {\n /**\n * The type of integration to enable. Currently, only \"wandb\" (Weights and Biases)\n * is supported.\n */\n type: 'wandb';\n\n /**\n * The settings for your integration with Weights and Biases. This payload\n * specifies the project that metrics will be sent to. Optionally, you can set an\n * explicit display name for your run, add tags to your run, and set a default\n * entity (team, username, etc) to be associated with your run.\n */\n wandb: Integration.Wandb;\n }\n\n export namespace Integration {\n /**\n * The settings for your integration with Weights and Biases. This payload\n * specifies the project that metrics will be sent to. Optionally, you can set an\n * explicit display name for your run, add tags to your run, and set a default\n * entity (team, username, etc) to be associated with your run.\n */\n export interface Wandb {\n /**\n * The name of the project that the new run will be created under.\n */\n project: string;\n\n /**\n * The entity to use for the run. This allows you to set the team or username of\n * the WandB user that you would like associated with the run. If not set, the\n * default entity for the registered WandB API key is used.\n */\n entity?: string | null;\n\n /**\n * A display name to set for the run. If not set, we will use the Job ID as the\n * name.\n */\n name?: string | null;\n\n /**\n * A list of tags to be attached to the newly created run. These tags are passed\n * through directly to WandB. Some default tags are generated by OpenAI:\n * \"openai/finetune\", \"openai/{base-model}\", \"openai/{ftjob-abcdef}\".\n */\n tags?: Array;\n }\n }\n}\n\nexport interface JobListParams extends CursorPageParams {}\n\nexport interface JobListEventsParams extends CursorPageParams {}\n\nexport namespace Jobs {\n export import FineTuningJob = JobsAPI.FineTuningJob;\n export import FineTuningJobEvent = JobsAPI.FineTuningJobEvent;\n export import FineTuningJobIntegration = JobsAPI.FineTuningJobIntegration;\n export import FineTuningJobWandbIntegration = JobsAPI.FineTuningJobWandbIntegration;\n export import FineTuningJobWandbIntegrationObject = JobsAPI.FineTuningJobWandbIntegrationObject;\n export import FineTuningJobsPage = JobsAPI.FineTuningJobsPage;\n export import FineTuningJobEventsPage = JobsAPI.FineTuningJobEventsPage;\n export import JobCreateParams = JobsAPI.JobCreateParams;\n export import JobListParams = JobsAPI.JobListParams;\n export import JobListEventsParams = JobsAPI.JobListEventsParams;\n export import Checkpoints = CheckpointsAPI.Checkpoints;\n export import FineTuningJobCheckpoint = CheckpointsAPI.FineTuningJobCheckpoint;\n export import FineTuningJobCheckpointsPage = CheckpointsAPI.FineTuningJobCheckpointsPage;\n export import CheckpointListParams = CheckpointsAPI.CheckpointListParams;\n}\n"],"mappings":"AAAA;SAGSA,WAAW,QAAQ,iBAAiB;SACpCC,gBAAgB,QAAQ,aAAa;OACvC,KAAKC,OAAO,MAAM,wCAAwC;OAC1D,KAAKC,cAAc,MAAM,+CAA+C;SACtEC,UAAU,QAA+B,mBAAmB;AAErE,OAAM,MAAOC,IAAK,SAAQL,WAAW;EAArCM,YAAA;;IACE,KAAAC,WAAW,GAA+B,IAAIJ,cAAc,CAACK,WAAW,CAAC,IAAI,CAACC,OAAO,CAAC;EA0ExF;EAxEE;;;;;;;;;EASAC,MAAMA,CAACC,IAAqB,EAAEC,OAA6B;IACzD,OAAO,IAAI,CAACH,OAAO,CAACI,IAAI,CAAC,mBAAmB,EAAE;MAAEF,IAAI;MAAE,GAAGC;IAAO,CAAE,CAAC;EACrE;EAEA;;;;;EAKAE,QAAQA,CAACC,eAAuB,EAAEH,OAA6B;IAC7D,OAAO,IAAI,CAACH,OAAO,CAACO,GAAG,sBAAAC,MAAA,CAAsBF,eAAe,GAAIH,OAAO,CAAC;EAC1E;EAUAM,IAAIA,CAAA,EAE2B;IAAA,IAD7BC,KAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAA6C,EAAE;I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,IAAA,CAAAuB,4BAA4B,GAAGzB,cAAc,CAACyB,4BAA4B;AAE1F,CAAC,EAfgBvB,IAAI,KAAJA,IAAI","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/01e7e3154d87616e0ef25512d1940dd5246ff79cbafb45ede540f12775688ff7.json b/trivia-forge/node_modules/.cache/babel-loader/01e7e3154d87616e0ef25512d1940dd5246ff79cbafb45ede540f12775688ff7.json deleted file mode 100644 index a3a8b8dc..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/01e7e3154d87616e0ef25512d1940dd5246ff79cbafb45ede540f12775688ff7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import contains from 'dom-helpers/contains';\nimport listen from 'dom-helpers/listen';\nimport ownerDocument from 'dom-helpers/ownerDocument';\nimport { useCallback, useEffect, useRef } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport warning from 'warning';\nconst noop = () => {};\nfunction isLeftClickEvent(event) {\n return event.button === 0;\n}\nfunction isModifiedEvent(event) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\nexport const getRefTarget = ref => ref && ('current' in ref ? ref.current : ref);\nconst InitialTriggerEvents = {\n click: 'mousedown',\n mouseup: 'mousedown',\n pointerup: 'pointerdown'\n};\n\n/**\n * The `useClickOutside` hook registers your callback on the document that fires\n * when a pointer event is registered outside of the provided ref or element.\n *\n * @param {Ref| HTMLElement} ref The element boundary\n * @param {function} onClickOutside\n * @param {object=} options\n * @param {boolean=} options.disabled\n * @param {string=} options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on\n */\nfunction useClickOutside(ref, onClickOutside = noop, {\n disabled,\n clickTrigger = 'click'\n} = {}) {\n const preventMouseClickOutsideRef = useRef(false);\n const waitingForTrigger = useRef(false);\n const handleMouseCapture = useCallback(e => {\n const currentTarget = getRefTarget(ref);\n warning(!!currentTarget, 'ClickOutside captured a close event but does not have a ref to compare it to. ' + 'useClickOutside(), should be passed a ref that resolves to a DOM node');\n preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target) || waitingForTrigger.current;\n waitingForTrigger.current = false;\n }, [ref]);\n const handleInitialMouse = useEventCallback(e => {\n const currentTarget = getRefTarget(ref);\n if (currentTarget && contains(currentTarget, e.target)) {\n waitingForTrigger.current = true;\n }\n });\n const handleMouse = useEventCallback(e => {\n if (!preventMouseClickOutsideRef.current) {\n onClickOutside(e);\n }\n });\n useEffect(() => {\n var _ownerWindow$event, _ownerWindow$parent;\n if (disabled || ref == null) return undefined;\n const doc = ownerDocument(getRefTarget(ref));\n const ownerWindow = doc.defaultView || window;\n\n // Store the current event to avoid triggering handlers immediately\n // For things rendered in an iframe, the event might originate on the parent window\n // so we should fall back to that global event if the local one doesn't exist\n // https://github.com/facebook/react/issues/20074\n let currentEvent = (_ownerWindow$event = ownerWindow.event) != null ? _ownerWindow$event : (_ownerWindow$parent = ownerWindow.parent) == null ? void 0 : _ownerWindow$parent.event;\n let removeInitialTriggerListener = null;\n if (InitialTriggerEvents[clickTrigger]) {\n removeInitialTriggerListener = listen(doc, InitialTriggerEvents[clickTrigger], handleInitialMouse, true);\n }\n\n // Use capture for this listener so it fires before React's listener, to\n // avoid false positives in the contains() check below if the target DOM\n // element is removed in the React mouse callback.\n const removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);\n const removeMouseListener = listen(doc, clickTrigger, e => {\n // skip if this event is the same as the one running when we added the handlers\n if (e === currentEvent) {\n currentEvent = undefined;\n return;\n }\n handleMouse(e);\n });\n let mobileSafariHackListeners = [];\n if ('ontouchstart' in doc.documentElement) {\n mobileSafariHackListeners = [].slice.call(doc.body.children).map(el => listen(el, 'mousemove', noop));\n }\n return () => {\n removeInitialTriggerListener == null ? void 0 : removeInitialTriggerListener();\n removeMouseCaptureListener();\n removeMouseListener();\n mobileSafariHackListeners.forEach(remove => remove());\n };\n }, [ref, disabled, clickTrigger, handleMouseCapture, handleInitialMouse, handleMouse]);\n}\nexport default useClickOutside;","map":{"version":3,"names":["contains","listen","ownerDocument","useCallback","useEffect","useRef","useEventCallback","warning","noop","isLeftClickEvent","event","button","isModifiedEvent","metaKey","altKey","ctrlKey","shiftKey","getRefTarget","ref","current","InitialTriggerEvents","click","mouseup","pointerup","useClickOutside","onClickOutside","disabled","clickTrigger","preventMouseClickOutsideRef","waitingForTrigger","handleMouseCapture","e","currentTarget","target","handleInitialMouse","handleMouse","_ownerWindow$event","_ownerWindow$parent","undefined","doc","ownerWindow","defaultView","window","currentEvent","parent","removeInitialTriggerListener","removeMouseCaptureListener","removeMouseListener","mobileSafariHackListeners","documentElement","slice","call","body","children","map","el","forEach","remove"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/ui/esm/useClickOutside.js"],"sourcesContent":["import contains from 'dom-helpers/contains';\nimport listen from 'dom-helpers/listen';\nimport ownerDocument from 'dom-helpers/ownerDocument';\nimport { useCallback, useEffect, useRef } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport warning from 'warning';\nconst noop = () => {};\nfunction isLeftClickEvent(event) {\n return event.button === 0;\n}\nfunction isModifiedEvent(event) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\nexport const getRefTarget = ref => ref && ('current' in ref ? ref.current : ref);\nconst InitialTriggerEvents = {\n click: 'mousedown',\n mouseup: 'mousedown',\n pointerup: 'pointerdown'\n};\n\n/**\n * The `useClickOutside` hook registers your callback on the document that fires\n * when a pointer event is registered outside of the provided ref or element.\n *\n * @param {Ref| HTMLElement} ref The element boundary\n * @param {function} onClickOutside\n * @param {object=} options\n * @param {boolean=} options.disabled\n * @param {string=} options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on\n */\nfunction useClickOutside(ref, onClickOutside = noop, {\n disabled,\n clickTrigger = 'click'\n} = {}) {\n const preventMouseClickOutsideRef = useRef(false);\n const waitingForTrigger = useRef(false);\n const handleMouseCapture = useCallback(e => {\n const currentTarget = getRefTarget(ref);\n warning(!!currentTarget, 'ClickOutside captured a close event but does not have a ref to compare it to. ' + 'useClickOutside(), should be passed a ref that resolves to a DOM node');\n preventMouseClickOutsideRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target) || waitingForTrigger.current;\n waitingForTrigger.current = false;\n }, [ref]);\n const handleInitialMouse = useEventCallback(e => {\n const currentTarget = getRefTarget(ref);\n if (currentTarget && contains(currentTarget, e.target)) {\n waitingForTrigger.current = true;\n }\n });\n const handleMouse = useEventCallback(e => {\n if (!preventMouseClickOutsideRef.current) {\n onClickOutside(e);\n }\n });\n useEffect(() => {\n var _ownerWindow$event, _ownerWindow$parent;\n if (disabled || ref == null) return undefined;\n const doc = ownerDocument(getRefTarget(ref));\n const ownerWindow = doc.defaultView || window;\n\n // Store the current event to avoid triggering handlers immediately\n // For things rendered in an iframe, the event might originate on the parent window\n // so we should fall back to that global event if the local one doesn't exist\n // https://github.com/facebook/react/issues/20074\n let currentEvent = (_ownerWindow$event = ownerWindow.event) != null ? _ownerWindow$event : (_ownerWindow$parent = ownerWindow.parent) == null ? void 0 : _ownerWindow$parent.event;\n let removeInitialTriggerListener = null;\n if (InitialTriggerEvents[clickTrigger]) {\n removeInitialTriggerListener = listen(doc, InitialTriggerEvents[clickTrigger], handleInitialMouse, true);\n }\n\n // Use capture for this listener so it fires before React's listener, to\n // avoid false positives in the contains() check below if the target DOM\n // element is removed in the React mouse callback.\n const removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);\n const removeMouseListener = listen(doc, clickTrigger, e => {\n // skip if this event is the same as the one running when we added the handlers\n if (e === currentEvent) {\n currentEvent = undefined;\n return;\n }\n handleMouse(e);\n });\n let mobileSafariHackListeners = [];\n if ('ontouchstart' in doc.documentElement) {\n mobileSafariHackListeners = [].slice.call(doc.body.children).map(el => listen(el, 'mousemove', noop));\n }\n return () => {\n removeInitialTriggerListener == null ? void 0 : removeInitialTriggerListener();\n removeMouseCaptureListener();\n removeMouseListener();\n mobileSafariHackListeners.forEach(remove => remove());\n };\n }, [ref, disabled, clickTrigger, handleMouseCapture, handleInitialMouse, handleMouse]);\n}\nexport default useClickOutside;"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,sBAAsB;AAC3C,OAAOC,MAAM,MAAM,oBAAoB;AACvC,OAAOC,aAAa,MAAM,2BAA2B;AACrD,SAASC,WAAW,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AACtD,OAAOC,gBAAgB,MAAM,iCAAiC;AAC9D,OAAOC,OAAO,MAAM,SAAS;AAC7B,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AACrB,SAASC,gBAAgBA,CAACC,KAAK,EAAE;EAC/B,OAAOA,KAAK,CAACC,MAAM,KAAK,CAAC;AAC3B;AACA,SAASC,eAAeA,CAACF,KAAK,EAAE;EAC9B,OAAO,CAAC,EAAEA,KAAK,CAACG,OAAO,IAAIH,KAAK,CAACI,MAAM,IAAIJ,KAAK,CAACK,OAAO,IAAIL,KAAK,CAACM,QAAQ,CAAC;AAC7E;AACA,OAAO,MAAMC,YAAY,GAAGC,GAAG,IAAIA,GAAG,KAAK,SAAS,IAAIA,GAAG,GAAGA,GAAG,CAACC,OAAO,GAAGD,GAAG,CAAC;AAChF,MAAME,oBAAoB,GAAG;EAC3BC,KAAK,EAAE,WAAW;EAClBC,OAAO,EAAE,WAAW;EACpBC,SAAS,EAAE;AACb,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,eAAeA,CAACN,GAAG,EAAEO,cAAc,GAAGjB,IAAI,EAAE;EACnDkB,QAAQ;EACRC,YAAY,GAAG;AACjB,CAAC,GAAG,CAAC,CAAC,EAAE;EACN,MAAMC,2BAA2B,GAAGvB,MAAM,CAAC,KAAK,CAAC;EACjD,MAAMwB,iBAAiB,G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,CAACvC,GAAG,EAAEQ,QAAQ,EAAEC,YAAY,EAAEG,kBAAkB,EAAEI,kBAAkB,EAAEC,WAAW,CAAC,CAAC;AACxF;AACA,eAAeX,eAAe","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/01ec3b38c7c4fad973e65fdc073a2f138e1f85c767b0e9c233f853b209adcdc4.json b/trivia-forge/node_modules/.cache/babel-loader/01ec3b38c7c4fad973e65fdc073a2f138e1f85c767b0e9c233f853b209adcdc4.json deleted file mode 100644 index e57576ca..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/01ec3b38c7c4fad973e65fdc073a2f138e1f85c767b0e9c233f853b209adcdc4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { OpenAIApi } from \"openai\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nconst apiKey = process.env.OPENAI_API_KEY;\n// create new configuration for the OpenAI API with the API key\nconst configuration = new Configuration({\n apiKey: apiKey\n});\n// create new instance of OPENAIAPI class with configuration\nconst openai = new OpenAIApi(configuration);\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState('');\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n // api call\n try {\n const completion = await openai.createCompletion({\n model: \"gpt-3.5-turbo\",\n prompt: 'Generate ${numberOfQuestions} trivia questions about ${category}.'\n // adjust and use token limit if necessary\n // max_tokens: 200\n });\n console.log(completion.data.choices[0].text);\n } catch (error) {\n console.error('Error calling OpenAI APIL:', error);\n }\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n value: numberOfQuestions,\n onChange: e => setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10)))),\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Number of Questions\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaCategory\",\n children: \"Category:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n value: category,\n onChange: e => setCategory(e.target.value),\n className: \"form-control\",\n id: \"triviaCategory\",\n placeholder: \"Category\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 66,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 67,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 65,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Generate\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 69,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"5EWR5EgCw9Hns2v+6hnb2mRj/1Y=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","OpenAIApi","jsxDEV","_jsxDEV","apiKey","process","env","OPENAI_API_KEY","configuration","Configuration","openai","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","completion","createCompletion","model","prompt","console","log","data","choices","text","error","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","value","onChange","e","Math","min","max","parseInt","target","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\nimport { OpenAIApi } from \"openai\";\n\nconst apiKey = process.env.OPENAI_API_KEY;\n// create new configuration for the OpenAI API with the API key\nconst configuration = new Configuration({\n apiKey: apiKey\n});\n// create new instance of OPENAIAPI class with configuration\nconst openai = new OpenAIApi(configuration);\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState('');\n const [category, setCategory] = useState('');\n \n\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n // api call\n try {\n const completion = await openai.createCompletion({\n model: \"gpt-3.5-turbo\",\n prompt: 'Generate ${numberOfQuestions} trivia questions about ${category}.',\n // adjust and use token limit if necessary\n // max_tokens: 200\n });\n \n console.log(completion.data.choices[0].text);\n } catch (error) {\n console.error('Error calling OpenAI APIL:', error);\n }\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10))))}\n className=\"form-control\" \n id=\"triviaTitle\" \n placeholder=\"Number of Questions\" \n />\n
\n
\n \n setCategory(e.target.value)}\n className=\"form-control\" \n id=\"triviaCategory\" \n placeholder=\"Category\" \n />\n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,SAAS,QAAQ,QAAQ;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAEnC,MAAMC,MAAM,GAAGC,OAAO,CAACC,GAAG,CAACC,cAAc;AACzC;AACA,MAAMC,aAAa,GAAG,IAAIC,aAAa,CAAC;EACpCL,MAAM,EAAEA;AACZ,CAAC,CAAC;AACF;AACA,MAAMM,MAAM,GAAG,IAAIT,SAAS,CAACO,aAAa,CAAC;AAE3C,SAASG,aAAaA,CAAA,EAAG;EAAAC,EAAA;EACrB,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGd,QAAQ,CAAC,EAAE,CAAC;EAC9D,MAAM,CAACe,QAAQ,EAAEC,WAAW,CAAC,GAAGhB,QAAQ,CAAC,EAAE,CAAC;EAI5C,MAAMiB,YAAY,GAAG,MAAOC,KAAK,IAAK;IAClCA,KAAK,CAACC,cAAc,CAAC,CAAC;;IAEtB;IACA,IAAI;MACA,MAAMC,UAAU,GAAG,MAAMV,MAAM,CAACW,gBAAgB,CAAC;QAC7CC,KAAK,EAAE,eAAe;QACtBC,MAAM,EAAE;QACR;QACA;MACJ,CAAC,CAAC;MAEFC,OAAO,CAACC,GAAG,CAACL,UAAU,CAACM,IAAI,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C,aAAa;AAgEtB,eAAeA,aAAa;AAAC,IAAAsC,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/01f793fa6835bfe81a72aacf476f8e26bd917818597ee621bb40f3cf5df71080.json b/trivia-forge/node_modules/.cache/babel-loader/01f793fa6835bfe81a72aacf476f8e26bd917818597ee621bb40f3cf5df71080.json deleted file mode 100644 index cd2a7c1c..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/01f793fa6835bfe81a72aacf476f8e26bd917818597ee621bb40f3cf5df71080.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"const _excluded = [\"as\", \"active\", \"eventKey\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport NavContext from './NavContext';\nimport SelectableContext, { makeEventKey } from './SelectableContext';\nimport Button from './Button';\nimport { dataAttr } from './DataKey';\nimport TabContext from './TabContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function useNavItem(_ref2) {\n let {\n key,\n onClick,\n active,\n id,\n role,\n disabled\n } = _ref2;\n const parentOnSelect = useContext(SelectableContext);\n const navContext = useContext(NavContext);\n const tabContext = useContext(TabContext);\n let isActive = active;\n const props = {\n role\n };\n if (navContext) {\n if (!role && navContext.role === 'tablist') props.role = 'tab';\n const contextControllerId = navContext.getControllerId(key != null ? key : null);\n const contextControlledId = navContext.getControlledId(key != null ? key : null);\n\n // @ts-ignore\n props[dataAttr('event-key')] = key;\n props.id = contextControllerId || id;\n isActive = active == null && key != null ? navContext.activeKey === key : active;\n\n /**\n * Simplified scenario for `mountOnEnter`.\n *\n * While it would make sense to keep 'aria-controls' for tabs that have been mounted at least\n * once, it would also complicate the code quite a bit, for very little gain.\n * The following implementation is probably good enough.\n *\n * @see https://github.com/react-restart/ui/pull/40#issuecomment-1009971561\n */\n if (isActive || !(tabContext != null && tabContext.unmountOnExit) && !(tabContext != null && tabContext.mountOnEnter)) props['aria-controls'] = contextControlledId;\n }\n if (props.role === 'tab') {\n props['aria-selected'] = isActive;\n if (!isActive) {\n props.tabIndex = -1;\n }\n if (disabled) {\n props.tabIndex = -1;\n props['aria-disabled'] = true;\n }\n }\n props.onClick = useEventCallback(e => {\n if (disabled) return;\n onClick == null ? void 0 : onClick(e);\n if (key == null) {\n return;\n }\n if (parentOnSelect && !e.isPropagationStopped()) {\n parentOnSelect(key, e);\n }\n });\n return [props, {\n isActive\n }];\n}\nconst NavItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n as: Component = Button,\n active,\n eventKey\n } = _ref,\n options = _objectWithoutPropertiesLoose(_ref, _excluded);\n const [props, meta] = useNavItem(Object.assign({\n key: makeEventKey(eventKey, options.href),\n active\n }, options));\n\n // @ts-ignore\n props[dataAttr('active')] = meta.isActive;\n return /*#__PURE__*/_jsx(Component, Object.assign({}, options, props, {\n ref: ref\n }));\n});\nNavItem.displayName = 'NavItem';\nexport default NavItem;","map":{"version":3,"names":["_excluded","_objectWithoutPropertiesLoose","source","excluded","target","sourceKeys","Object","keys","key","i","length","indexOf","React","useContext","useEventCallback","NavContext","SelectableContext","makeEventKey","Button","dataAttr","TabContext","jsx","_jsx","useNavItem","_ref2","onClick","active","id","role","disabled","parentOnSelect","navContext","tabContext","isActive","props","contextControllerId","getControllerId","contextControlledId","getControlledId","activeKey","unmountOnExit","mountOnEnter","tabIndex","e","isPropagationStopped","NavItem","forwardRef","_ref","ref","as","Component","eventKey","options","meta","assign","href","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/ui/esm/NavItem.js"],"sourcesContent":["const _excluded = [\"as\", \"active\", \"eventKey\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport NavContext from './NavContext';\nimport SelectableContext, { makeEventKey } from './SelectableContext';\nimport Button from './Button';\nimport { dataAttr } from './DataKey';\nimport TabContext from './TabContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function useNavItem({\n key,\n onClick,\n active,\n id,\n role,\n disabled\n}) {\n const parentOnSelect = useContext(SelectableContext);\n const navContext = useContext(NavContext);\n const tabContext = useContext(TabContext);\n let isActive = active;\n const props = {\n role\n };\n if (navContext) {\n if (!role && navContext.role === 'tablist') props.role = 'tab';\n const contextControllerId = navContext.getControllerId(key != null ? key : null);\n const contextControlledId = navContext.getControlledId(key != null ? key : null);\n\n // @ts-ignore\n props[dataAttr('event-key')] = key;\n props.id = contextControllerId || id;\n isActive = active == null && key != null ? navContext.activeKey === key : active;\n\n /**\n * Simplified scenario for `mountOnEnter`.\n *\n * While it would make sense to keep 'aria-controls' for tabs that have been mounted at least\n * once, it would also complicate the code quite a bit, for very little gain.\n * The following implementation is probably good enough.\n *\n * @see https://github.com/react-restart/ui/pull/40#issuecomment-1009971561\n */\n if (isActive || !(tabContext != null && tabContext.unmountOnExit) && !(tabContext != null && tabContext.mountOnEnter)) props['aria-controls'] = contextControlledId;\n }\n if (props.role === 'tab') {\n props['aria-selected'] = isActive;\n if (!isActive) {\n props.tabIndex = -1;\n }\n if (disabled) {\n props.tabIndex = -1;\n props['aria-disabled'] = true;\n }\n }\n props.onClick = useEventCallback(e => {\n if (disabled) return;\n onClick == null ? void 0 : onClick(e);\n if (key == null) {\n return;\n }\n if (parentOnSelect && !e.isPropagationStopped()) {\n parentOnSelect(key, e);\n }\n });\n return [props, {\n isActive\n }];\n}\nconst NavItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n as: Component = Button,\n active,\n eventKey\n } = _ref,\n options = _objectWithoutPropertiesLoose(_ref, _excluded);\n const [props, meta] = useNavItem(Object.assign({\n key: makeEventKey(eventKey, options.href),\n active\n }, options));\n\n // @ts-ignore\n props[dataAttr('active')] = meta.isActive;\n return /*#__PURE__*/_jsx(Component, Object.assign({}, options, props, {\n ref: ref\n }));\n});\nNavItem.displayName = 'NavItem';\nexport default NavItem;"],"mappings":"AAAA,MAAMA,SAAS,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,CAAC;AAC9C,SAASC,6BAA6BA,CAACC,MAAM,EAAEC,QAAQ,EAAE;EAAE,IAAID,MAAM,IAAI,IAAI,EAAE,OAAO,CAAC,CAAC;EAAE,IAAIE,MAAM,GAAG,CAAC,CAAC;EAAE,IAAIC,UAAU,GAAGC,MAAM,CAACC,IAAI,CAACL,MAAM,CAAC;EAAE,IAAIM,GAAG,EAAEC,CAAC;EAAE,KAAKA,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,UAAU,CAACK,MAAM,EAAED,CAAC,EAAE,EAAE;IAAED,GAAG,GAAGH,UAAU,CAACI,CAAC,CAAC;IAAE,IAAIN,QAAQ,CAACQ,OAAO,CAACH,GAAG,CAAC,IAAI,CAAC,EAAE;IAAUJ,MAAM,CAACI,GAAG,CAAC,GAAGN,MAAM,CAACM,GAAG,CAAC;EAAE;EAAE,OAAOJ,MAAM;AAAE;AAClT,OAAO,KAAKQ,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,QAAQ,OAAO;AAClC,OAAOC,gBAAgB,MAAM,iCAAiC;AAC9D,OAAOC,UAAU,MAAM,cAAc;AACrC,OAAOC,iBAAiB,IAAIC,YAAY,QAAQ,qBAAqB;AACrE,OAAOC,MAAM,MAAM,UAAU;AAC7B,SAASC,QAA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E0B,OAAO,CAAC,CAAC;;EAEZ;EACAlB,KAAK,CAACf,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAGkC,IAAI,CAACpB,QAAQ;EACzC,OAAO,aAAaX,IAAI,CAAC4B,SAAS,EAAE5C,MAAM,CAACgD,MAAM,CAAC,CAAC,CAAC,EAAEF,OAAO,EAAElB,KAAK,EAAE;IACpEc,GAAG,EAAEA;EACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AACFH,OAAO,CAACW,WAAW,GAAG,SAAS;AAC/B,eAAeX,OAAO","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/020390c192ad5ec82d8499d79f4196991268084dca6dfab29cdcb799fa7ef548.json b/trivia-forge/node_modules/.cache/babel-loader/020390c192ad5ec82d8499d79f4196991268084dca6dfab29cdcb799fa7ef548.json deleted file mode 100644 index 3d621322..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/020390c192ad5ec82d8499d79f4196991268084dca6dfab29cdcb799fa7ef548.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import invariant from 'invariant';\nvar noop = function noop() {};\nfunction readOnlyPropType(handler, name) {\n return function (props, propName) {\n if (props[propName] !== undefined) {\n if (!props[handler]) {\n return new Error(\"You have provided a `\" + propName + \"` prop to `\" + name + \"` \" + (\"without an `\" + handler + \"` handler prop. This will render a read-only field. \") + (\"If the field should be mutable use `\" + defaultKey(propName) + \"`. \") + (\"Otherwise, set `\" + handler + \"`.\"));\n }\n }\n };\n}\nexport function uncontrolledPropTypes(controlledValues, displayName) {\n var propTypes = {};\n Object.keys(controlledValues).forEach(function (prop) {\n // add default propTypes for folks that use runtime checks\n propTypes[defaultKey(prop)] = noop;\n if (process.env.NODE_ENV !== 'production') {\n var handler = controlledValues[prop];\n !(typeof handler === 'string' && handler.trim().length) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Uncontrollable - [%s]: the prop `%s` needs a valid handler key name in order to make it uncontrollable', displayName, prop) : invariant(false) : void 0;\n propTypes[prop] = readOnlyPropType(handler, displayName);\n }\n });\n return propTypes;\n}\nexport function isProp(props, prop) {\n return props[prop] !== undefined;\n}\nexport function defaultKey(key) {\n return 'default' + key.charAt(0).toUpperCase() + key.substr(1);\n}\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\nexport function canAcceptRef(component) {\n return !!component && (typeof component !== 'function' || component.prototype && component.prototype.isReactComponent);\n}","map":{"version":3,"names":["invariant","noop","readOnlyPropType","handler","name","props","propName","undefined","Error","defaultKey","uncontrolledPropTypes","controlledValues","displayName","propTypes","Object","keys","forEach","prop","process","env","NODE_ENV","trim","length","isProp","key","charAt","toUpperCase","substr","canAcceptRef","component","prototype","isReactComponent"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/uncontrollable/lib/esm/utils.js"],"sourcesContent":["import invariant from 'invariant';\n\nvar noop = function noop() {};\n\nfunction readOnlyPropType(handler, name) {\n return function (props, propName) {\n if (props[propName] !== undefined) {\n if (!props[handler]) {\n return new Error(\"You have provided a `\" + propName + \"` prop to `\" + name + \"` \" + (\"without an `\" + handler + \"` handler prop. This will render a read-only field. \") + (\"If the field should be mutable use `\" + defaultKey(propName) + \"`. \") + (\"Otherwise, set `\" + handler + \"`.\"));\n }\n }\n };\n}\n\nexport function uncontrolledPropTypes(controlledValues, displayName) {\n var propTypes = {};\n Object.keys(controlledValues).forEach(function (prop) {\n // add default propTypes for folks that use runtime checks\n propTypes[defaultKey(prop)] = noop;\n\n if (process.env.NODE_ENV !== 'production') {\n var handler = controlledValues[prop];\n !(typeof handler === 'string' && handler.trim().length) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Uncontrollable - [%s]: the prop `%s` needs a valid handler key name in order to make it uncontrollable', displayName, prop) : invariant(false) : void 0;\n propTypes[prop] = readOnlyPropType(handler, displayName);\n }\n });\n return propTypes;\n}\nexport function isProp(props, prop) {\n return props[prop] !== undefined;\n}\nexport function defaultKey(key) {\n return 'default' + key.charAt(0).toUpperCase() + key.substr(1);\n}\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\nexport function canAcceptRef(component) {\n return !!component && (typeof component !== 'function' || component.prototype && component.prototype.isReactComponent);\n}"],"mappings":"AAAA,OAAOA,SAAS,MAAM,WAAW;AAEjC,IAAIC,IAAI,GAAG,SAASA,IAAIA,CAAA,EAAG,CAAC,CAAC;AAE7B,SAASC,gBAAgBA,CAACC,OAAO,EAAEC,IAAI,EAAE;EACvC,OAAO,UAAUC,KAAK,EAAEC,QAAQ,EAAE;IAChC,IAAID,KAAK,CAACC,QAAQ,CAAC,KAAKC,SAAS,EAAE;MACjC,IAAI,CAACF,KAAK,CAACF,OAAO,CAAC,EAAE;QACnB,OAAO,IAAIK,KAAK,CAAC,uBAAuB,GAAGF,QAAQ,GAAG,aAAa,GAAGF,IAAI,GAAG,IAAI,IAAI,cAAc,GAAGD,OAAO,GAAG,sDAAsD,CAAC,IAAI,sCAAsC,GAAGM,UAAU,CAACH,QAAQ,CAAC,GAAG,KAAK,CAAC,IAAI,kBAAkB,GAAGH,OAAO,GAAG,IAAI,CAAC,CAAC;MAC5R;IACF;EACF,CAAC;AACH;AAEA,OAAO,SAASO,qBAAqBA,CAACC,gBAAgB,EAAEC,WAAW,EAAE;EACnE,IAAIC,SAAS,GAAG,CAAC,CAAC;EAClBC,MAAM,CAACC,IAAI,CAACJ,gBAAgB,CAAC,CAACK,OAAO,CAAC,UAAUC,IAAI,EAAE;IACpD;IACAJ,SAAS,CAACJ,UAAU,CAACQ,IAAI,CAAC,CAAC,GAAGhB,IAAI;IAElC,IAAIiB,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;MACzC,IAAIjB,OAAO,GAAGQ,gBAAgB,CAACM,IAAI,CAAC;MACpC,EAAE,OAAOd,OAAO,KAAK,QAAQ,IAAIA,OAAO,CAACkB,IAAI,CAAC,CAAC,CAACC,MAAM,CAAC,GAAGJ,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GAAGpB,SAAS,CAAC,KAAK,EAAE,wGAAwG,EAAEY,WAAW,EAAEK,IAAI,CAAC,GAAGjB,SAAS,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;MAC3Qa,SAAS,CAACI,IAAI,CAAC,GAAGf,gBAAgB,CAACC,OAAO,EAAES,WAAW,CAAC;IAC1D;EACF,CAAC,CAAC;EACF,OAAOC,SAAS;AAClB;AACA,OAAO,SAASU,MAAMA,CAAClB,KAAK,EAAEY,IAAI,EAAE;EAClC,OAAOZ,KAAK,CAACY,IAAI,CAAC,KAAKV,SAAS;AAClC;AACA,OAAO,SAASE,UAAUA,CAACe,GAAG,EAAE;EAC9B,OAAO,SAAS,GAAGA,GAAG,CAACC,MAAM,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,GAAGF,GAAG,CAACG,MAAM,CAAC,CAAC,CAAC;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,SAASC,YAAYA,CAACC,SAAS,EAAE;EACtC,OAAO,CAAC,CAACA,SAAS,KAAK,OAAOA,SAAS,KAAK,UAAU,IAAIA,SAAS,CAACC,SAAS,IAAID,SAAS,CAACC,SAAS,CAACC,gBAAgB,CAAC;AACxH","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/023931d8d7bf8100941f7294aa4950fc2d461417a091a3f4fa505212685aeaa2.json b/trivia-forge/node_modules/.cache/babel-loader/023931d8d7bf8100941f7294aa4950fc2d461417a091a3f4fa505212685aeaa2.json deleted file mode 100644 index 6b293fe3..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/023931d8d7bf8100941f7294aa4950fc2d461417a091a3f4fa505212685aeaa2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"'use strict';\n\nvar global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, {\n value: value,\n configurable: true,\n writable: true\n });\n } catch (error) {\n global[key] = value;\n }\n return value;\n};","map":{"version":3,"names":["global","require","defineProperty","Object","module","exports","key","value","configurable","writable","error"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/core-js-pure/internals/define-global-property.js"],"sourcesContent":["'use strict';\nvar global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,MAAM,GAAGC,OAAO,CAAC,qBAAqB,CAAC;;AAE3C;AACA,IAAIC,cAAc,GAAGC,MAAM,CAACD,cAAc;AAE1CE,MAAM,CAACC,OAAO,GAAG,UAAUC,GAAG,EAAEC,KAAK,EAAE;EACrC,IAAI;IACFL,cAAc,CAACF,MAAM,EAAEM,GAAG,EAAE;MAAEC,KAAK,EAAEA,KAAK;MAAEC,YAAY,EAAE,IAAI;MAAEC,QAAQ,EAAE;IAAK,CAAC,CAAC;EACnF,CAAC,CAAC,OAAOC,KAAK,EAAE;IACdV,MAAM,CAACM,GAAG,CAAC,GAAGC,KAAK;EACrB;EAAE,OAAOA,KAAK;AAChB,CAAC","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0249168c19cc65af698ce0058979928d92cc98cdc26196cf3cff5b823ca0b08b.json b/trivia-forge/node_modules/.cache/babel-loader/0249168c19cc65af698ce0058979928d92cc98cdc26196cf3cff5b823ca0b08b.json deleted file mode 100644 index 8a515b93..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0249168c19cc65af698ce0058979928d92cc98cdc26196cf3cff5b823ca0b08b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","map":{"version":3,"names":["getWindowScroll","getWindow","isHTMLElement","getHTMLElementScroll","getNodeScroll","node"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js"],"sourcesContent":["import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}"],"mappings":"AAAA,OAAOA,eAAe,MAAM,sBAAsB;AAClD,OAAOC,SAAS,MAAM,gBAAgB;AACtC,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,OAAOC,oBAAoB,MAAM,2BAA2B;AAC5D,eAAe,SAASC,aAAaA,CAACC,IAAI,EAAE;EAC1C,IAAIA,IAAI,KAAKJ,SAAS,CAACI,IAAI,CAAC,IAAI,CAACH,aAAa,CAACG,IAAI,CAAC,EAAE;IACpD,OAAOL,eAAe,CAACK,IAAI,CAAC;EAC9B,CAAC,MAAM;IACL,OAAOF,oBAAoB,CAACE,IAAI,CAAC;EACnC;AACF","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/02a59fcca0bab6b33007f4a2529772371341f12cb21506dc49173fbdfa3d9795.json b/trivia-forge/node_modules/.cache/babel-loader/02a59fcca0bab6b33007f4a2529772371341f12cb21506dc49173fbdfa3d9795.json deleted file mode 100644 index f7cfa06e..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/02a59fcca0bab6b33007f4a2529772371341f12cb21506dc49173fbdfa3d9795.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n return (\n // this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot ||\n // step into the shadow DOM of the parent of a slotted node\n element.parentNode || (\n // DOM Element detected\n isShadowRoot(element) ? element.host : null) ||\n // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n );\n}","map":{"version":3,"names":["getNodeName","getDocumentElement","isShadowRoot","getParentNode","element","assignedSlot","parentNode","host"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"],"sourcesContent":["import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}"],"mappings":"AAAA,OAAOA,WAAW,MAAM,kBAAkB;AAC1C,OAAOC,kBAAkB,MAAM,yBAAyB;AACxD,SAASC,YAAY,QAAQ,iBAAiB;AAC9C,eAAe,SAASC,aAAaA,CAACC,OAAO,EAAE;EAC7C,IAAIJ,WAAW,CAACI,OAAO,CAAC,KAAK,MAAM,EAAE;IACnC,OAAOA,OAAO;EAChB;EAEA;IAAQ;IACN;IACA;IACAA,OAAO,CAACC,YAAY;IAAI;IACxBD,OAAO,CAACE,UAAU;IAAM;IACxBJ,YAAY,CAACE,OAAO,CAAC,GAAGA,OAAO,CAACG,IAAI,GAAG,IAAI,CAAC;IAAI;IAChD;IACAN,kBAAkB,CAACG,OAAO,CAAC,CAAC;EAAA;AAGhC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/02b9b6d5eaea136c9aff84a3c0335bd6349131a3a07025d793f4052ea203d0a9.json b/trivia-forge/node_modules/.cache/babel-loader/02b9b6d5eaea136c9aff84a3c0335bd6349131a3a07025d793f4052ea203d0a9.json deleted file mode 100644 index 8c4048ef..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/02b9b6d5eaea136c9aff84a3c0335bd6349131a3a07025d793f4052ea203d0a9.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { OpenAIApi } from \"openai\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nconst apiKey = process.env.OPENAI_API_KEY;\n// create new configuration for the OpenAI API with the API key\nconst configuration = new Configuration({\n apiKey: apiKey\n});\n// create new instance of OPENAIAPI class with configuration\nconst openai = new OpenAIApi(configuration);\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState('');\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n // api call\n try {\n const completion = await openai.createCompletion({\n model: \"gpt-3.5-turbo\",\n prompt: 'Generate ${numberOfQuestions} trivia questions about ${category}.'\n // adjust and use token limit if necessary\n // max_tokens: 200\n });\n console.log(completion.data.choices[0].text);\n } catch (error) {\n console.error('Error calling OpenAI APIL:', error);\n }\n //insert api call logic here\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n value: numberOfQuestions,\n onChange: e => setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10)))),\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Number of Questions\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaCategory\",\n children: \"Category:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n value: category,\n onChange: e => setCategory(e.target.value),\n className: \"form-control\",\n id: \"triviaCategory\",\n placeholder: \"Category\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 68,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 69,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 67,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Generate\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 71,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"5EWR5EgCw9Hns2v+6hnb2mRj/1Y=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","OpenAIApi","jsxDEV","_jsxDEV","apiKey","process","env","OPENAI_API_KEY","configuration","Configuration","openai","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","completion","createCompletion","model","prompt","console","log","data","choices","text","error","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","value","onChange","e","Math","min","max","parseInt","target","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\nimport { OpenAIApi } from \"openai\";\n\nconst apiKey = process.env.OPENAI_API_KEY;\n// create new configuration for the OpenAI API with the API key\nconst configuration = new Configuration({\n apiKey: apiKey\n});\n// create new instance of OPENAIAPI class with configuration\nconst openai = new OpenAIApi(configuration);\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState('');\n const [category, setCategory] = useState('');\n \n\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n // api call\n try {\n const completion = await openai.createCompletion({\n model: \"gpt-3.5-turbo\",\n prompt: 'Generate ${numberOfQuestions} trivia questions about ${category}.',\n // adjust and use token limit if necessary\n // max_tokens: 200\n });\n \n console.log(completion.data.choices[0].text);\n } catch (error) {\n console.error('Error calling OpenAI APIL:', error);\n }\n //insert api call logic here\n\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10))))}\n className=\"form-control\" \n id=\"triviaTitle\" \n placeholder=\"Number of Questions\" \n />\n
\n
\n \n setCategory(e.target.value)}\n className=\"form-control\" \n id=\"triviaCategory\" \n placeholder=\"Category\" \n />\n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,SAAS,QAAQ,QAAQ;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAEnC,MAAMC,MAAM,GAAGC,OAAO,CAACC,GAAG,CAACC,cAAc;AACzC;AACA,MAAMC,aAAa,GAAG,IAAIC,aAAa,CAAC;EACpCL,MAAM,EAAEA;AACZ,CAAC,CAAC;AACF;AACA,MAAMM,MAAM,GAAG,IAAIT,SAAS,CAACO,aAAa,CAAC;AAE3C,SAASG,aAAaA,CAAA,EAAG;EAAAC,EAA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MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAC1F,CAAC,eACN/B,OAAA;QAAQmC,IAAI,EAAC,QAAQ;QAACF,SAAS,EAAC,iBAAiB;QAAAN,QAAA,EAAC;MAAQ;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OACjE,CAAC;EAAA;IAAAH,QAAA,EAAAC,YAAA;IAAAC,UAAA;IAAAC,YAAA;EAAA,OAEN,CAAC;AAGd;AAACtB,EAAA,CAjEQD,aAAa;AAAAsC,EAAA,GAAbtC,aAAa;AAkEtB,eAAeA,aAAa;AAAC,IAAAsC,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/02c06e090dd781fea84fe67c8beade80104c57399fc6ddd5c89f27571f4eba36.json b/trivia-forge/node_modules/.cache/babel-loader/02c06e090dd781fea84fe67c8beade80104c57399fc6ddd5c89f27571f4eba36.json deleted file mode 100644 index cae43e6a..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/02c06e090dd781fea84fe67c8beade80104c57399fc6ddd5c89f27571f4eba36.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"'use strict';\n\nvar parent = require('../es/global-this');\nmodule.exports = parent;","map":{"version":3,"names":["parent","require","module","exports"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/core-js-pure/stable/global-this.js"],"sourcesContent":["'use strict';\nvar parent = require('../es/global-this');\n\nmodule.exports = parent;\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,MAAM,GAAGC,OAAO,CAAC,mBAAmB,CAAC;AAEzCC,MAAM,CAACC,OAAO,GAAGH,MAAM","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/03337867b6b39b8b0fd8782a7e0453467927115e68725d7e674fd4a4aa686aa0.json b/trivia-forge/node_modules/.cache/babel-loader/03337867b6b39b8b0fd8782a7e0453467927115e68725d7e674fd4a4aa686aa0.json deleted file mode 100644 index 2e64afd7..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/03337867b6b39b8b0fd8782a7e0453467927115e68725d7e674fd4a4aa686aa0.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import * as React from 'react';\nconst TabContext = /*#__PURE__*/React.createContext(null);\nexport default TabContext;","map":{"version":3,"names":["React","TabContext","createContext"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/ui/esm/TabContext.js"],"sourcesContent":["import * as React from 'react';\nconst TabContext = /*#__PURE__*/React.createContext(null);\nexport default TabContext;"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,MAAMC,UAAU,GAAG,aAAaD,KAAK,CAACE,aAAa,CAAC,IAAI,CAAC;AACzD,eAAeD,UAAU","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/037e8ec52963dfd4a9fdbc835b5931a324ad0574830fa241ae4b8118c642c087.json b/trivia-forge/node_modules/.cache/babel-loader/037e8ec52963dfd4a9fdbc835b5931a324ad0574830fa241ae4b8118c642c087.json deleted file mode 100644 index e627de66..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/037e8ec52963dfd4a9fdbc835b5931a324ad0574830fa241ae4b8118c642c087.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import * as React from 'react';\nconst DropdownContext = /*#__PURE__*/React.createContext(null);\nexport default DropdownContext;","map":{"version":3,"names":["React","DropdownContext","createContext"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/ui/esm/DropdownContext.js"],"sourcesContent":["import * as React from 'react';\nconst DropdownContext = /*#__PURE__*/React.createContext(null);\nexport default DropdownContext;"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,MAAMC,eAAe,GAAG,aAAaD,KAAK,CAACE,aAAa,CAAC,IAAI,CAAC;AAC9D,eAAeD,eAAe","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0391a662ae2633dcef1a6b9cdf5a0fea4ec098d745b11bf44e180be9f8bba307.json b/trivia-forge/node_modules/.cache/babel-loader/0391a662ae2633dcef1a6b9cdf5a0fea4ec098d745b11bf44e180be9f8bba307.json deleted file mode 100644 index 323ccf1f..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0391a662ae2633dcef1a6b9cdf5a0fea4ec098d745b11bf44e180be9f8bba307.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport OpenAI from \"openai\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclient = OpenAI();\n// initialize openai client\n// reference: https://platform.openai.com/docs/api-reference/making-requests\nconst openai = new OpenAI({\n apiKey: process.env.REACT_APP_OPENAI_API_KEY,\n dangerouslyAllowBrowser: true\n});\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState('');\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n // api call\n try {\n const prompt = `Generate ${numberOfQuestions} trivia questions about ${category}.`;\n\n // API call to OpenAI\n const completion = await openai.createCompletion({\n model: \"gpt-3.5-turbo\",\n messages: [{\n role: \"user\",\n content: prompt\n }]\n // adjust and use token limit if necessary\n // max_tokens: 200\n // implment and adjust temperature if needed\n // temperature scale is 0-1 and used to tune randomness of output\n // temperature: .5\n });\n console.log(completion.data.choices[0].message);\n } catch (error) {\n console.error('Error calling OpenAI API:', error);\n }\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n htmlFor: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n value: numberOfQuestions,\n onChange: e => setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10)))),\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Number of Questions\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 51,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n htmlFor: \"triviaCategory\",\n children: \"Category:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n value: category,\n onChange: e => setCategory(e.target.value),\n className: \"form-control\",\n id: \"triviaCategory\",\n placeholder: \"Category\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n htmlFor: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 71,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Generate\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 75,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"5EWR5EgCw9Hns2v+6hnb2mRj/1Y=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","OpenAI","jsxDEV","_jsxDEV","client","openai","apiKey","process","env","REACT_APP_OPENAI_API_KEY","dangerouslyAllowBrowser","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","prompt","completion","createCompletion","model","messages","role","content","console","log","data","choices","message","error","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","htmlFor","type","value","onChange","e","Math","min","max","parseInt","target","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\nimport OpenAI from \"openai\";\n\nclient = OpenAI();\n// initialize openai client\n// reference: https://platform.openai.com/docs/api-reference/making-requests\nconst openai = new OpenAI({\n apiKey: process.env.REACT_APP_OPENAI_API_KEY,\n dangerouslyAllowBrowser: true\n});\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState('');\n const [category, setCategory] = useState('');\n \n\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n // api call\n try {\n const prompt = `Generate ${numberOfQuestions} trivia questions about ${category}.`;\n\n // API call to OpenAI\n const completion = await openai.createCompletion({\n model: \"gpt-3.5-turbo\",\n messages: [{role: \"user\", content: prompt }],\n // adjust and use token limit if necessary\n // max_tokens: 200\n // implment and adjust temperature if needed\n // temperature scale is 0-1 and used to tune randomness of output\n // temperature: .5\n });\n \n console.log(completion.data.choices[0].message);\n } catch (error) {\n console.error('Error calling OpenAI API:', error);\n }\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10))))}\n className=\"form-control\" \n id=\"triviaTitle\" \n placeholder=\"Number of Questions\" \n />\n
\n
\n \n setCategory(e.target.value)}\n className=\"form-control\" \n id=\"triviaCategory\" \n placeholder=\"Category\" \n />\n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,OAAOC,MAAM,MAAM,QAAQ;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAE5BC,MAAM,GAAGH,MAAM,CAAC,CAAC;AACjB;AACA;AACA,MAAMI,MAAM,GAAG,IAAIJ,MAAM,CAAC;EACtBK,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC,wBAAwB;EAC5CC,uBAAuB,EAAE;AAC7B,CAAC,CAAC;AAEF,SAASC,aAAaA,CAAA,EAAG;EAAAC,EAAA;EACrB,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGd,QAAQ,CAAC,EAAE,CAAC;EAC9D,MAAM,CAACe,QAAQ,EAAEC,WAAW,CAAC,GAAGhB,QAAQ,C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CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAC1F,CAAC,eACNlC,OAAA;QAAQsC,IAAI,EAAC,QAAQ;QAACF,SAAS,EAAC,iBAAiB;QAAAN,QAAA,EAAC;MAAQ;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OACjE,CAAC;EAAA;IAAAH,QAAA,EAAAC,YAAA;IAAAC,UAAA;IAAAC,YAAA;EAAA,OAEN,CAAC;AAGd;AAACzB,EAAA,CArEQD,aAAa;AAAAyC,EAAA,GAAbzC,aAAa;AAsEtB,eAAeA,aAAa;AAAC,IAAAyC,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/03ba00609dd959ca4fbe86f1d8a0cfbfeec3527b4cd2d240abc9e41c33dc55bf.json b/trivia-forge/node_modules/.cache/babel-loader/03ba00609dd959ca4fbe86f1d8a0cfbfeec3527b4cd2d240abc9e41c33dc55bf.json deleted file mode 100644 index 4d60cdd1..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/03ba00609dd959ca4fbe86f1d8a0cfbfeec3527b4cd2d240abc9e41c33dc55bf.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) ||\n // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n var currentNode = getParentNode(element);\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n return offsetParent || getContainingBlock(element) || window;\n}","map":{"version":3,"names":["getWindow","getNodeName","getComputedStyle","isHTMLElement","isShadowRoot","isTableElement","getParentNode","getUAString","getTrueOffsetParent","element","position","offsetParent","getContainingBlock","isFirefox","test","isIE","elementCss","currentNode","host","indexOf","css","transform","perspective","contain","willChange","filter","parentNode","getOffsetParent","window"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"],"sourcesContent":["import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}"],"mappings":"AAAA,OAAOA,SAAS,MAAM,gBAAgB;AACtC,OAAOC,WAAW,MAAM,kBAAkB;AAC1C,OAAOC,gBAAgB,MAAM,uBAAuB;AACpD,SAASC,aAAa,EAAEC,YAAY,QAAQ,iBAAiB;AAC7D,OAAOC,cAAc,MAAM,qBAAqB;AAChD,OAAOC,aAAa,MAAM,oBAAoB;AAC9C,OAAOC,WAAW,MAAM,uBAAuB;AAE/C,SAASC,mBAAmBA,CAACC,OAAO,EAAE;EACpC,IAAI,CAACN,aAAa,CAACM,OAAO,CAAC;EAAI;EAC/BP,gBAAgB,CAACO,OAAO,CAAC,CAACC,QAAQ,KAAK,OAAO,EAAE;IAC9C,OAAO,IAAI;EACb;EAEA,OAAOD,OAAO,CAACE,YAAY;AAC7B,CAAC,CAAC;AACF;;AAGA,SAASC,kBAAkBA,CAACH,OAAO,EAAE;EACnC,IAAII,SAAS,GAAG,UAAU,CAACC,IAAI,CAACP,WAAW,CAAC,CAAC,CAAC;EAC9C,IAAIQ,IAAI,GAAG,UAAU,CAACD,IAAI,CAACP,WAAW,CAAC,CAAC,CAAC;EAEzC,IAAIQ,IAAI,IAAIZ,aAAa,CAACM,OAAO,CAAC,EAAE;IAClC;IACA,IAAIO,UAAU,GAAGd,gBAAgB,CAACO,OAAO,CAAC;IAE1C,IAAIO,UAAU,CAACN,QAAQ,KAAK,OAAO,EAAE;MACnC,OAAO,IAAI;IACb;EACF;EAEA,IAAIO,WAAW,GAAGX,aAAa,CAACG,OAAO,CAAC;EAExC,IAAIL,YAAY,CAACa,WAAW,CAAC,EAAE;IAC7BA,WAAW,GAAGA,WAAW,CAACC,IAAI;EAChC;EAEA,OAAOf,aAAa,CAACc,WAAW,CAAC,IAAI,CAAC,MAAM,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AM;AAC9D","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/03cc97dccd00aa5b29c53dfd86263ecab7aaa8286e5affa0e76e28ac40e8515b.json b/trivia-forge/node_modules/.cache/babel-loader/03cc97dccd00aa5b29c53dfd86263ecab7aaa8286e5affa0e76e28ac40e8515b.json deleted file mode 100644 index 6db3fef5..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/03cc97dccd00aa5b29c53dfd86263ecab7aaa8286e5affa0e76e28ac40e8515b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import { useEffect, useRef } from 'react';\n\n/**\n * Runs an effect only when the dependencies have changed, skipping the\n * initial \"on mount\" run. Caution, if the dependency list never changes,\n * the effect is **never run**\n *\n * ```ts\n * const ref = useRef(null);\n *\n * // focuses an element only if the focus changes, and not on mount\n * useUpdateEffect(() => {\n * const element = ref.current?.children[focusedIdx] as HTMLElement\n *\n * element?.focus()\n *\n * }, [focusedIndex])\n * ```\n * @param effect An effect to run on mount\n *\n * @category effects\n */\nfunction useUpdateEffect(fn, deps) {\n const isFirst = useRef(true);\n useEffect(() => {\n if (isFirst.current) {\n isFirst.current = false;\n return;\n }\n return fn();\n }, deps);\n}\nexport default useUpdateEffect;","map":{"version":3,"names":["useEffect","useRef","useUpdateEffect","fn","deps","isFirst","current"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/hooks/esm/useUpdateEffect.js"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\n/**\n * Runs an effect only when the dependencies have changed, skipping the\n * initial \"on mount\" run. Caution, if the dependency list never changes,\n * the effect is **never run**\n *\n * ```ts\n * const ref = useRef(null);\n *\n * // focuses an element only if the focus changes, and not on mount\n * useUpdateEffect(() => {\n * const element = ref.current?.children[focusedIdx] as HTMLElement\n *\n * element?.focus()\n *\n * }, [focusedIndex])\n * ```\n * @param effect An effect to run on mount\n *\n * @category effects\n */\nfunction useUpdateEffect(fn, deps) {\n const isFirst = useRef(true);\n useEffect(() => {\n if (isFirst.current) {\n isFirst.current = false;\n return;\n }\n return fn();\n }, deps);\n}\nexport default useUpdateEffect;"],"mappings":"AAAA,SAASA,SAAS,EAAEC,MAAM,QAAQ,OAAO;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,eAAeA,CAACC,EAAE,EAAEC,IAAI,EAAE;EACjC,MAAMC,OAAO,GAAGJ,MAAM,CAAC,IAAI,CAAC;EAC5BD,SAAS,CAAC,MAAM;IACd,IAAIK,OAAO,CAACC,OAAO,EAAE;MACnBD,OAAO,CAACC,OAAO,GAAG,KAAK;MACvB;IACF;IACA,OAAOH,EAAE,CAAC,CAAC;EACb,CAAC,EAAEC,IAAI,CAAC;AACV;AACA,eAAeF,eAAe","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0450255c257c4c8ef0fa69b85c5fbf04cd53c3ee840aadd6aa4bb8321a781828.json b/trivia-forge/node_modules/.cache/babel-loader/0450255c257c4c8ef0fa69b85c5fbf04cd53c3ee840aadd6aa4bb8321a781828.json deleted file mode 100644 index b802ee58..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0450255c257c4c8ef0fa69b85c5fbf04cd53c3ee840aadd6aa4bb8321a781828.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport classNames from 'classnames';\nimport addEventListener from 'dom-helpers/addEventListener';\nimport canUseDOM from 'dom-helpers/canUseDOM';\nimport ownerDocument from 'dom-helpers/ownerDocument';\nimport removeEventListener from 'dom-helpers/removeEventListener';\nimport getScrollbarSize from 'dom-helpers/scrollbarSize';\nimport useCallbackRef from '@restart/hooks/useCallbackRef';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport useWillUnmount from '@restart/hooks/useWillUnmount';\nimport transitionEnd from 'dom-helpers/transitionEnd';\nimport * as React from 'react';\nimport { useCallback, useMemo, useRef, useState } from 'react';\nimport BaseModal from '@restart/ui/Modal';\nimport { getSharedManager } from './BootstrapModalManager';\nimport Fade from './Fade';\nimport ModalBody from './ModalBody';\nimport ModalContext from './ModalContext';\nimport ModalDialog from './ModalDialog';\nimport ModalFooter from './ModalFooter';\nimport ModalHeader from './ModalHeader';\nimport ModalTitle from './ModalTitle';\nimport { useBootstrapPrefix, useIsRTL } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/* eslint-disable no-use-before-define, react/no-multi-comp */\nfunction DialogTransition(props) {\n return /*#__PURE__*/_jsx(Fade, {\n ...props,\n timeout: null\n });\n}\nfunction BackdropTransition(props) {\n return /*#__PURE__*/_jsx(Fade, {\n ...props,\n timeout: null\n });\n}\n\n/* eslint-enable no-use-before-define */\nconst Modal = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n style,\n dialogClassName,\n contentClassName,\n children,\n dialogAs: Dialog = ModalDialog,\n 'data-bs-theme': dataBsTheme,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n 'aria-label': ariaLabel,\n /* BaseModal props */\n\n show = false,\n animation = true,\n backdrop = true,\n keyboard = true,\n onEscapeKeyDown,\n onShow,\n onHide,\n container,\n autoFocus = true,\n enforceFocus = true,\n restoreFocus = true,\n restoreFocusOptions,\n onEntered,\n onExit,\n onExiting,\n onEnter,\n onEntering,\n onExited,\n backdropClassName,\n manager: propsManager,\n ...props\n}, ref) => {\n const [modalStyle, setStyle] = useState({});\n const [animateStaticModal, setAnimateStaticModal] = useState(false);\n const waitingForMouseUpRef = useRef(false);\n const ignoreBackdropClickRef = useRef(false);\n const removeStaticModalAnimationRef = useRef(null);\n const [modal, setModalRef] = useCallbackRef();\n const mergedRef = useMergedRefs(ref, setModalRef);\n const handleHide = useEventCallback(onHide);\n const isRTL = useIsRTL();\n bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');\n const modalContext = useMemo(() => ({\n onHide: handleHide\n }), [handleHide]);\n function getModalManager() {\n if (propsManager) return propsManager;\n return getSharedManager({\n isRTL\n });\n }\n function updateDialogStyle(node) {\n if (!canUseDOM) return;\n const containerIsOverflowing = getModalManager().getScrollbarWidth() > 0;\n const modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;\n setStyle({\n paddingRight: containerIsOverflowing && !modalIsOverflowing ? getScrollbarSize() : undefined,\n paddingLeft: !containerIsOverflowing && modalIsOverflowing ? getScrollbarSize() : undefined\n });\n }\n const handleWindowResize = useEventCallback(() => {\n if (modal) {\n updateDialogStyle(modal.dialog);\n }\n });\n useWillUnmount(() => {\n removeEventListener(window, 'resize', handleWindowResize);\n removeStaticModalAnimationRef.current == null ? void 0 : removeStaticModalAnimationRef.current();\n });\n\n // We prevent the modal from closing during a drag by detecting where the\n // click originates from. If it starts in the modal and then ends outside\n // don't close.\n const handleDialogMouseDown = () => {\n waitingForMouseUpRef.current = true;\n };\n const handleMouseUp = e => {\n if (waitingForMouseUpRef.current && modal && e.target === modal.dialog) {\n ignoreBackdropClickRef.current = true;\n }\n waitingForMouseUpRef.current = false;\n };\n const handleStaticModalAnimation = () => {\n setAnimateStaticModal(true);\n removeStaticModalAnimationRef.current = transitionEnd(modal.dialog, () => {\n setAnimateStaticModal(false);\n });\n };\n const handleStaticBackdropClick = e => {\n if (e.target !== e.currentTarget) {\n return;\n }\n handleStaticModalAnimation();\n };\n const handleClick = e => {\n if (backdrop === 'static') {\n handleStaticBackdropClick(e);\n return;\n }\n if (ignoreBackdropClickRef.current || e.target !== e.currentTarget) {\n ignoreBackdropClickRef.current = false;\n return;\n }\n onHide == null ? void 0 : onHide();\n };\n const handleEscapeKeyDown = e => {\n if (keyboard) {\n onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);\n } else {\n // Call preventDefault to stop modal from closing in @restart/ui.\n e.preventDefault();\n if (backdrop === 'static') {\n // Play static modal animation.\n handleStaticModalAnimation();\n }\n }\n };\n const handleEnter = (node, isAppearing) => {\n if (node) {\n updateDialogStyle(node);\n }\n onEnter == null ? void 0 : onEnter(node, isAppearing);\n };\n const handleExit = node => {\n removeStaticModalAnimationRef.current == null ? void 0 : removeStaticModalAnimationRef.current();\n onExit == null ? void 0 : onExit(node);\n };\n const handleEntering = (node, isAppearing) => {\n onEntering == null ? void 0 : onEntering(node, isAppearing);\n\n // FIXME: This should work even when animation is disabled.\n addEventListener(window, 'resize', handleWindowResize);\n };\n const handleExited = node => {\n if (node) node.style.display = ''; // RHL removes it sometimes\n onExited == null ? void 0 : onExited(node);\n\n // FIXME: This should work even when animation is disabled.\n removeEventListener(window, 'resize', handleWindowResize);\n };\n const renderBackdrop = useCallback(backdropProps => /*#__PURE__*/_jsx(\"div\", {\n ...backdropProps,\n className: classNames(`${bsPrefix}-backdrop`, backdropClassName, !animation && 'show')\n }), [animation, backdropClassName, bsPrefix]);\n const baseModalStyle = {\n ...style,\n ...modalStyle\n };\n\n // If `display` is not set to block, autoFocus inside the modal fails\n // https://github.com/react-bootstrap/react-bootstrap/issues/5102\n baseModalStyle.display = 'block';\n const renderDialog = dialogProps => /*#__PURE__*/_jsx(\"div\", {\n role: \"dialog\",\n ...dialogProps,\n style: baseModalStyle,\n className: classNames(className, bsPrefix, animateStaticModal && `${bsPrefix}-static`, !animation && 'show'),\n onClick: backdrop ? handleClick : undefined,\n onMouseUp: handleMouseUp,\n \"data-bs-theme\": dataBsTheme,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledby,\n \"aria-describedby\": ariaDescribedby,\n children: /*#__PURE__*/_jsx(Dialog, {\n ...props,\n onMouseDown: handleDialogMouseDown,\n className: dialogClassName,\n contentClassName: contentClassName,\n children: children\n })\n });\n return /*#__PURE__*/_jsx(ModalContext.Provider, {\n value: modalContext,\n children: /*#__PURE__*/_jsx(BaseModal, {\n show: show,\n ref: mergedRef,\n backdrop: backdrop,\n container: container,\n keyboard: true // Always set true - see handleEscapeKeyDown\n ,\n\n autoFocus: autoFocus,\n enforceFocus: enforceFocus,\n restoreFocus: restoreFocus,\n restoreFocusOptions: restoreFocusOptions,\n onEscapeKeyDown: handleEscapeKeyDown,\n onShow: onShow,\n onHide: onHide,\n onEnter: handleEnter,\n onEntering: handleEntering,\n onEntered: onEntered,\n onExit: handleExit,\n onExiting: onExiting,\n onExited: handleExited,\n manager: getModalManager(),\n transition: animation ? DialogTransition : undefined,\n backdropTransition: animation ? BackdropTransition : undefined,\n renderBackdrop: renderBackdrop,\n renderDialog: renderDialog\n })\n });\n});\nModal.displayName = 'Modal';\nexport default Object.assign(Modal, {\n Body: ModalBody,\n Header: ModalHeader,\n Title: ModalTitle,\n Footer: ModalFooter,\n Dialog: ModalDialog,\n TRANSITION_DURATION: 300,\n BACKDROP_TRANSITION_DURATION: 150\n});","map":{"version":3,"names":["classNames","addEventListener","canUseDOM","ownerDocument","removeEventListener","getScrollbarSize","useCallbackRef","useEventCallback","useMergedRefs","useWillUnmount","transitionEnd","React","useCallback","useMemo","useRef","useState","BaseModal","getSharedManager","Fade","ModalBody","ModalContext","ModalDialog","ModalFooter","ModalHeader","ModalTitle","useBootstrapPrefix","useIsRTL","jsx","_jsx","DialogTransition","props","timeout","BackdropTransition","Modal","forwardRef","bsPrefix","className","style","dialogClassName","contentClassName","children","dialogAs","Dialog","dataBsTheme","ariaLabelledby","ariaDescribedby","ariaLabel","show","animation","backdrop","keyboard","onEscapeKeyDown","onShow","onHide","container","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","onEntered","onExit","onExiting","onEnter","onEntering","onExited","backdropClassName","manager","propsManager","ref","modalStyle","setStyle","animateStaticModal","setAnimateStaticModal","waitingForMouseUpRef","ignoreBackdropClickRef","removeStaticModalAnimationRef","modal","setModalRef","mergedRef","handleHide","isRTL","modalContext","getModalManager","updateDialogStyle","node","containerIsOverflowing","getScrollbarWidth","modalIsOverflowing","scrollHeight","documentElement","clientHeight","paddingRight","undefined","paddingLeft","handleWindowResize","dialog","window","current","handleDialogMouseDown","handleMouseUp","e","target","handleStaticModalAnimation","handleStaticBackdropClick","currentTarget","handleClick","handleEscapeKeyDown","preventDefault","handleEnter","isAppearing","handleExit","handleEntering","handleExited","display","renderBackdrop","backdropProps","baseModalStyle","renderDialog","dialogProps","role","onClick","onMouseUp","onMouseDown","Provider","value","transition","backdropTransition","displayName","Object","assign","Body","Header","Title","Footer","TRANSITION_DURATION","BACKDROP_TRANSITION_DURATION"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/Modal.js"],"sourcesContent":["\"use client\";\n\nimport classNames from 'classnames';\nimport addEventListener from 'dom-helpers/addEventListener';\nimport canUseDOM from 'dom-helpers/canUseDOM';\nimport ownerDocument from 'dom-helpers/ownerDocument';\nimport removeEventListener from 'dom-helpers/removeEventListener';\nimport getScrollbarSize from 'dom-helpers/scrollbarSize';\nimport useCallbackRef from '@restart/hooks/useCallbackRef';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport useWillUnmount from '@restart/hooks/useWillUnmount';\nimport transitionEnd from 'dom-helpers/transitionEnd';\nimport * as React from 'react';\nimport { useCallback, useMemo, useRef, useState } from 'react';\nimport BaseModal from '@restart/ui/Modal';\nimport { getSharedManager } from './BootstrapModalManager';\nimport Fade from './Fade';\nimport ModalBody from './ModalBody';\nimport ModalContext from './ModalContext';\nimport ModalDialog from './ModalDialog';\nimport ModalFooter from './ModalFooter';\nimport ModalHeader from './ModalHeader';\nimport ModalTitle from './ModalTitle';\nimport { useBootstrapPrefix, useIsRTL } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/* eslint-disable no-use-before-define, react/no-multi-comp */\nfunction DialogTransition(props) {\n return /*#__PURE__*/_jsx(Fade, {\n ...props,\n timeout: null\n });\n}\nfunction BackdropTransition(props) {\n return /*#__PURE__*/_jsx(Fade, {\n ...props,\n timeout: null\n });\n}\n\n/* eslint-enable no-use-before-define */\nconst Modal = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n style,\n dialogClassName,\n contentClassName,\n children,\n dialogAs: Dialog = ModalDialog,\n 'data-bs-theme': dataBsTheme,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n 'aria-label': ariaLabel,\n /* BaseModal props */\n\n show = false,\n animation = true,\n backdrop = true,\n keyboard = true,\n onEscapeKeyDown,\n onShow,\n onHide,\n container,\n autoFocus = true,\n enforceFocus = true,\n restoreFocus = true,\n restoreFocusOptions,\n onEntered,\n onExit,\n onExiting,\n onEnter,\n onEntering,\n onExited,\n backdropClassName,\n manager: propsManager,\n ...props\n}, ref) => {\n const [modalStyle, setStyle] = useState({});\n const [animateStaticModal, setAnimateStaticModal] = useState(false);\n const waitingForMouseUpRef = useRef(false);\n const ignoreBackdropClickRef = useRef(false);\n const removeStaticModalAnimationRef = useRef(null);\n const [modal, setModalRef] = useCallbackRef();\n const mergedRef = useMergedRefs(ref, setModalRef);\n const handleHide = useEventCallback(onHide);\n const isRTL = useIsRTL();\n bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');\n const modalContext = useMemo(() => ({\n onHide: handleHide\n }), [handleHide]);\n function getModalManager() {\n if (propsManager) return propsManager;\n return getSharedManager({\n isRTL\n });\n }\n function updateDialogStyle(node) {\n if (!canUseDOM) return;\n const containerIsOverflowing = getModalManager().getScrollbarWidth() > 0;\n const modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;\n setStyle({\n paddingRight: containerIsOverflowing && !modalIsOverflowing ? getScrollbarSize() : undefined,\n paddingLeft: !containerIsOverflowing && modalIsOverflowing ? getScrollbarSize() : undefined\n });\n }\n const handleWindowResize = useEventCallback(() => {\n if (modal) {\n updateDialogStyle(modal.dialog);\n }\n });\n useWillUnmount(() => {\n removeEventListener(window, 'resize', handleWindowResize);\n removeStaticModalAnimationRef.current == null ? void 0 : removeStaticModalAnimationRef.current();\n });\n\n // We prevent the modal from closing during a drag by detecting where the\n // click originates from. If it starts in the modal and then ends outside\n // don't close.\n const handleDialogMouseDown = () => {\n waitingForMouseUpRef.current = true;\n };\n const handleMouseUp = e => {\n if (waitingForMouseUpRef.current && modal && e.target === modal.dialog) {\n ignoreBackdropClickRef.current = true;\n }\n waitingForMouseUpRef.current = false;\n };\n const handleStaticModalAnimation = () => {\n setAnimateStaticModal(true);\n removeStaticModalAnimationRef.current = transitionEnd(modal.dialog, () => {\n setAnimateStaticModal(false);\n });\n };\n const handleStaticBackdropClick = e => {\n if (e.target !== e.currentTarget) {\n return;\n }\n handleStaticModalAnimation();\n };\n const handleClick = e => {\n if (backdrop === 'static') {\n handleStaticBackdropClick(e);\n return;\n }\n if (ignoreBackdropClickRef.current || e.target !== e.currentTarget) {\n ignoreBackdropClickRef.current = false;\n return;\n }\n onHide == null ? void 0 : onHide();\n };\n const handleEscapeKeyDown = e => {\n if (keyboard) {\n onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);\n } else {\n // Call preventDefault to stop modal from closing in @restart/ui.\n e.preventDefault();\n if (backdrop === 'static') {\n // Play static modal animation.\n handleStaticModalAnimation();\n }\n }\n };\n const handleEnter = (node, isAppearing) => {\n if (node) {\n updateDialogStyle(node);\n }\n onEnter == null ? void 0 : onEnter(node, isAppearing);\n };\n const handleExit = node => {\n removeStaticModalAnimationRef.current == null ? void 0 : removeStaticModalAnimationRef.current();\n onExit == null ? void 0 : onExit(node);\n };\n const handleEntering = (node, isAppearing) => {\n onEntering == null ? void 0 : onEntering(node, isAppearing);\n\n // FIXME: This should work even when animation is disabled.\n addEventListener(window, 'resize', handleWindowResize);\n };\n const handleExited = node => {\n if (node) node.style.display = ''; // RHL removes it sometimes\n onExited == null ? void 0 : onExited(node);\n\n // FIXME: This should work even when animation is disabled.\n removeEventListener(window, 'resize', handleWindowResize);\n };\n const renderBackdrop = useCallback(backdropProps => /*#__PURE__*/_jsx(\"div\", {\n ...backdropProps,\n className: classNames(`${bsPrefix}-backdrop`, backdropClassName, !animation && 'show')\n }), [animation, backdropClassName, bsPrefix]);\n const baseModalStyle = {\n ...style,\n ...modalStyle\n };\n\n // If `display` is not set to block, autoFocus inside the modal fails\n // https://github.com/react-bootstrap/react-bootstrap/issues/5102\n baseModalStyle.display = 'block';\n const renderDialog = dialogProps => /*#__PURE__*/_jsx(\"div\", {\n role: \"dialog\",\n ...dialogProps,\n style: baseModalStyle,\n className: classNames(className, bsPrefix, animateStaticModal && `${bsPrefix}-static`, !animation && 'show'),\n onClick: backdrop ? handleClick : undefined,\n onMouseUp: handleMouseUp,\n \"data-bs-theme\": dataBsTheme,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledby,\n \"aria-describedby\": ariaDescribedby,\n children: /*#__PURE__*/_jsx(Dialog, {\n ...props,\n onMouseDown: handleDialogMouseDown,\n className: dialogClassName,\n contentClassName: contentClassName,\n children: children\n })\n });\n return /*#__PURE__*/_jsx(ModalContext.Provider, {\n value: modalContext,\n children: /*#__PURE__*/_jsx(BaseModal, {\n show: show,\n ref: mergedRef,\n backdrop: backdrop,\n container: container,\n keyboard: true // Always set true - see handleEscapeKeyDown\n ,\n autoFocus: autoFocus,\n enforceFocus: enforceFocus,\n restoreFocus: restoreFocus,\n restoreFocusOptions: restoreFocusOptions,\n onEscapeKeyDown: handleEscapeKeyDown,\n onShow: onShow,\n onHide: onHide,\n onEnter: handleEnter,\n onEntering: handleEntering,\n onEntered: onEntered,\n onExit: handleExit,\n onExiting: onExiting,\n onExited: handleExited,\n manager: getModalManager(),\n transition: animation ? DialogTransition : undefined,\n backdropTransition: animation ? BackdropTransition : undefined,\n renderBackdrop: renderBackdrop,\n renderDialog: renderDialog\n })\n });\n});\nModal.displayName = 'Modal';\nexport default Object.assign(Modal, {\n Body: ModalBody,\n Header: ModalHeader,\n Title: ModalTitle,\n Footer: ModalFooter,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AAQ,EAAEA,QAAQ;MAClBK,SAAS,EAAEA,SAAS;MACpBJ,QAAQ,EAAE,IAAI,CAAC;MAAA;;MAEfK,SAAS,EAAEA,SAAS;MACpBC,YAAY,EAAEA,YAAY;MAC1BC,YAAY,EAAEA,YAAY;MAC1BC,mBAAmB,EAAEA,mBAAmB;MACxCP,eAAe,EAAEuD,mBAAmB;MACpCtD,MAAM,EAAEA,MAAM;MACdC,MAAM,EAAEA,MAAM;MACdS,OAAO,EAAE8C,WAAW;MACpB7C,UAAU,EAAEgD,cAAc;MAC1BpD,SAAS,EAAEA,SAAS;MACpBC,MAAM,EAAEkD,UAAU;MAClBjD,SAAS,EAAEA,SAAS;MACpBG,QAAQ,EAAEgD,YAAY;MACtB9C,OAAO,EAAEgB,eAAe,CAAC,CAAC;MAC1B2C,UAAU,EAAE7E,SAAS,GAAGnB,gBAAgB,GAAG+D,SAAS;MACpDkC,kBAAkB,EAAE9E,SAAS,GAAGhB,kBAAkB,GAAG4D,SAAS;MAC9DsB,cAAc,EAAEA,cAAc;MAC9BG,YAAY,EAAEA;IAChB,CAAC;EACH,CAAC,CAAC;AACJ,CAAC,CAAC;AACFpF,KAAK,CAAC8F,WAAW,GAAG,OAAO;AAC3B,eAAeC,MAAM,CAACC,MAAM,CAAChG,KAAK,EAAE;EAClCiG,IAAI,EAAE/G,SAAS;EACfgH,MAAM,EAAE5G,WAAW;EACnB6G,KAAK,EAAE5G,UAAU;EACjB6G,MAAM,EAAE/G,WAAW;EACnBoB,MAAM,EAAErB,WAAW;EACnBiH,mBAAmB,EAAE,GAAG;EACxBC,4BAA4B,EAAE;AAChC,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/047f8a5152dd84ae0acfc196b9ab55e0f9da720b9be62734e59a3a225753e601.json b/trivia-forge/node_modules/.cache/babel-loader/047f8a5152dd84ae0acfc196b9ab55e0f9da720b9be62734e59a3a225753e601.json deleted file mode 100644 index 0d963eae..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/047f8a5152dd84ae0acfc196b9ab55e0f9da720b9be62734e59a3a225753e601.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useMemo } from 'react';\nimport { useUncontrolled } from 'uncontrollable';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport AccordionBody from './AccordionBody';\nimport AccordionButton from './AccordionButton';\nimport AccordionCollapse from './AccordionCollapse';\nimport AccordionContext from './AccordionContext';\nimport AccordionHeader from './AccordionHeader';\nimport AccordionItem from './AccordionItem';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst Accordion = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n activeKey,\n bsPrefix,\n className,\n onSelect,\n flush,\n alwaysOpen,\n ...controlledProps\n } = useUncontrolled(props, {\n activeKey: 'onSelect'\n });\n const prefix = useBootstrapPrefix(bsPrefix, 'accordion');\n const contextValue = useMemo(() => ({\n activeEventKey: activeKey,\n onSelect,\n alwaysOpen\n }), [activeKey, onSelect, alwaysOpen]);\n return /*#__PURE__*/_jsx(AccordionContext.Provider, {\n value: contextValue,\n children: /*#__PURE__*/_jsx(Component, {\n ref: ref,\n ...controlledProps,\n className: classNames(className, prefix, flush && `${prefix}-flush`)\n })\n });\n});\nAccordion.displayName = 'Accordion';\nexport default Object.assign(Accordion, {\n Button: AccordionButton,\n Collapse: AccordionCollapse,\n Item: AccordionItem,\n Header: AccordionHeader,\n Body: AccordionBody\n});","map":{"version":3,"names":["classNames","React","useMemo","useUncontrolled","useBootstrapPrefix","AccordionBody","AccordionButton","AccordionCollapse","AccordionContext","AccordionHeader","AccordionItem","jsx","_jsx","Accordion","forwardRef","props","ref","as","Component","activeKey","bsPrefix","className","onSelect","flush","alwaysOpen","controlledProps","prefix","contextValue","activeEventKey","Provider","value","children","displayName","Object","assign","Button","Collapse","Item","Header","Body"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/Accordion.js"],"sourcesContent":["\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useMemo } from 'react';\nimport { useUncontrolled } from 'uncontrollable';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport AccordionBody from './AccordionBody';\nimport AccordionButton from './AccordionButton';\nimport AccordionCollapse from './AccordionCollapse';\nimport AccordionContext from './AccordionContext';\nimport AccordionHeader from './AccordionHeader';\nimport AccordionItem from './AccordionItem';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst Accordion = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n activeKey,\n bsPrefix,\n className,\n onSelect,\n flush,\n alwaysOpen,\n ...controlledProps\n } = useUncontrolled(props, {\n activeKey: 'onSelect'\n });\n const prefix = useBootstrapPrefix(bsPrefix, 'accordion');\n const contextValue = useMemo(() => ({\n activeEventKey: activeKey,\n onSelect,\n alwaysOpen\n }), [activeKey, onSelect, alwaysOpen]);\n return /*#__PURE__*/_jsx(AccordionContext.Provider, {\n value: contextValue,\n children: /*#__PURE__*/_jsx(Component, {\n ref: ref,\n ...controlledProps,\n className: classNames(className, prefix, flush && `${prefix}-flush`)\n })\n });\n});\nAccordion.displayName = 'Accordion';\nexport default Object.assign(Accordion, {\n Button: AccordionButton,\n Collapse: AccordionCollapse,\n Item: AccordionItem,\n Header: AccordionHeader,\n Body: AccordionBody\n});"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,OAAO,QAAQ,OAAO;AAC/B,SAASC,eAAe,QAAQ,gBAAgB;AACh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,CAACrB,SAAS,EAAE;EACtCsB,MAAM,EAAE7B,eAAe;EACvB8B,QAAQ,EAAE7B,iBAAiB;EAC3B8B,IAAI,EAAE3B,aAAa;EACnB4B,MAAM,EAAE7B,eAAe;EACvB8B,IAAI,EAAElC;AACR,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/048577ebaff113039e936ffe9207ff59de7aa01420d65b9bda9515683a27fe02.json b/trivia-forge/node_modules/.cache/babel-loader/048577ebaff113039e936ffe9207ff59de7aa01420d65b9bda9515683a27fe02.json deleted file mode 100644 index 749907d8..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/048577ebaff113039e936ffe9207ff59de7aa01420d65b9bda9515683a27fe02.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const DEFAULT_BREAKPOINTS = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];\nexport const DEFAULT_MIN_BREAKPOINT = 'xs';\nconst ThemeContext = /*#__PURE__*/React.createContext({\n prefixes: {},\n breakpoints: DEFAULT_BREAKPOINTS,\n minBreakpoint: DEFAULT_MIN_BREAKPOINT\n});\nconst {\n Consumer,\n Provider\n} = ThemeContext;\nfunction ThemeProvider(_ref) {\n let {\n prefixes = {},\n breakpoints = DEFAULT_BREAKPOINTS,\n minBreakpoint = DEFAULT_MIN_BREAKPOINT,\n dir,\n children\n } = _ref;\n const contextValue = useMemo(() => ({\n prefixes: {\n ...prefixes\n },\n breakpoints,\n minBreakpoint,\n dir\n }), [prefixes, breakpoints, minBreakpoint, dir]);\n return /*#__PURE__*/_jsx(Provider, {\n value: contextValue,\n children: children\n });\n}\nexport function useBootstrapPrefix(prefix, defaultPrefix) {\n const {\n prefixes\n } = useContext(ThemeContext);\n return prefix || prefixes[defaultPrefix] || defaultPrefix;\n}\nexport function useBootstrapBreakpoints() {\n const {\n breakpoints\n } = useContext(ThemeContext);\n return breakpoints;\n}\nexport function useBootstrapMinBreakpoint() {\n const {\n minBreakpoint\n } = useContext(ThemeContext);\n return minBreakpoint;\n}\nexport function useIsRTL() {\n const {\n dir\n } = useContext(ThemeContext);\n return dir === 'rtl';\n}\nfunction createBootstrapComponent(Component, opts) {\n if (typeof opts === 'string') opts = {\n prefix: opts\n };\n const isClassy = Component.prototype && Component.prototype.isReactComponent;\n // If it's a functional component make sure we don't break it with a ref\n const {\n prefix,\n forwardRefAs = isClassy ? 'ref' : 'innerRef'\n } = opts;\n const Wrapped = /*#__PURE__*/React.forwardRef((_ref2, ref) => {\n let {\n ...props\n } = _ref2;\n props[forwardRefAs] = ref;\n const bsPrefix = useBootstrapPrefix(props.bsPrefix, prefix);\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n bsPrefix: bsPrefix\n });\n });\n Wrapped.displayName = \"Bootstrap(\".concat(Component.displayName || Component.name, \")\");\n return Wrapped;\n}\nexport { createBootstrapComponent, Consumer as ThemeConsumer };\nexport default ThemeProvider;","map":{"version":3,"names":["React","useContext","useMemo","jsx","_jsx","DEFAULT_BREAKPOINTS","DEFAULT_MIN_BREAKPOINT","ThemeContext","createContext","prefixes","breakpoints","minBreakpoint","Consumer","Provider","ThemeProvider","_ref","dir","children","contextValue","value","useBootstrapPrefix","prefix","defaultPrefix","useBootstrapBreakpoints","useBootstrapMinBreakpoint","useIsRTL","createBootstrapComponent","Component","opts","isClassy","prototype","isReactComponent","forwardRefAs","Wrapped","forwardRef","_ref2","ref","props","bsPrefix","displayName","concat","name","ThemeConsumer"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/ThemeProvider.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const DEFAULT_BREAKPOINTS = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];\nexport const DEFAULT_MIN_BREAKPOINT = 'xs';\nconst ThemeContext = /*#__PURE__*/React.createContext({\n prefixes: {},\n breakpoints: DEFAULT_BREAKPOINTS,\n minBreakpoint: DEFAULT_MIN_BREAKPOINT\n});\nconst {\n Consumer,\n Provider\n} = ThemeContext;\nfunction ThemeProvider({\n prefixes = {},\n breakpoints = DEFAULT_BREAKPOINTS,\n minBreakpoint = DEFAULT_MIN_BREAKPOINT,\n dir,\n children\n}) {\n const contextValue = useMemo(() => ({\n prefixes: {\n ...prefixes\n },\n breakpoints,\n minBreakpoint,\n dir\n }), [prefixes, breakpoints, minBreakpoint, dir]);\n return /*#__PURE__*/_jsx(Provider, {\n value: contextValue,\n children: children\n });\n}\nexport function useBootstrapPrefix(prefix, defaultPrefix) {\n const {\n prefixes\n } = useContext(ThemeContext);\n return prefix || prefixes[defaultPrefix] || defaultPrefix;\n}\nexport function useBootstrapBreakpoints() {\n const {\n breakpoints\n } = useContext(ThemeContext);\n return breakpoints;\n}\nexport function useBootstrapMinBreakpoint() {\n const {\n minBreakpoint\n } = useContext(ThemeContext);\n return minBreakpoint;\n}\nexport function useIsRTL() {\n const {\n dir\n } = useContext(ThemeContext);\n return dir === 'rtl';\n}\nfunction createBootstrapComponent(Component, opts) {\n if (typeof opts === 'string') opts = {\n prefix: opts\n };\n const isClassy = Component.prototype && Component.prototype.isReactComponent;\n // If it's a functional component make sure we don't break it with a ref\n const {\n prefix,\n forwardRefAs = isClassy ? 'ref' : 'innerRef'\n } = opts;\n const Wrapped = /*#__PURE__*/React.forwardRef(({\n ...props\n }, ref) => {\n props[forwardRefAs] = ref;\n const bsPrefix = useBootstrapPrefix(props.bsPrefix, prefix);\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n bsPrefix: bsPrefix\n });\n });\n Wrapped.displayName = `Bootstrap(${Component.displayName || Component.name})`;\n return Wrapped;\n}\nexport { createBootstrapComponent, Consumer as ThemeConsumer };\nexport default Th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AAwB,EAAEd,QAAQ,IAAI8B,aAAa;AAC5D,eAAe5B,aAAa","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/04e61c2294684767c3fd8d3c8d3c8caa76f3801fe36ba04f81bb0c288516582a.json b/trivia-forge/node_modules/.cache/babel-loader/04e61c2294684767c3fd8d3c8d3c8caa76f3801fe36ba04f81bb0c288516582a.json deleted file mode 100644 index 20ff6e70..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/04e61c2294684767c3fd8d3c8d3c8caa76f3801fe36ba04f81bb0c288516582a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n return node;\n}","map":{"version":3,"names":["getWindow","node","window","toString","ownerDocument","defaultView"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/dom-utils/getWindow.js"],"sourcesContent":["export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}"],"mappings":"AAAA,eAAe,SAASA,SAASA,CAACC,IAAI,EAAE;EACtC,IAAIA,IAAI,IAAI,IAAI,EAAE;IAChB,OAAOC,MAAM;EACf;EAEA,IAAID,IAAI,CAACE,QAAQ,CAAC,CAAC,KAAK,iBAAiB,EAAE;IACzC,IAAIC,aAAa,GAAGH,IAAI,CAACG,aAAa;IACtC,OAAOA,aAAa,GAAGA,aAAa,CAACC,WAAW,IAAIH,MAAM,GAAGA,MAAM;EACrE;EAEA,OAAOD,IAAI;AACb","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0516c6fcfdf3f0b072f6d00ce15d4095da2cacba51594b1a592e82e4fd88c61d.json b/trivia-forge/node_modules/.cache/babel-loader/0516c6fcfdf3f0b072f6d00ce15d4095da2cacba51594b1a592e82e4fd88c61d.json deleted file mode 100644 index fdf96d26..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0516c6fcfdf3f0b072f6d00ce15d4095da2cacba51594b1a592e82e4fd88c61d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { OpenAIApi } from \"openai\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nconst apiKey = process.env.OPENAI_API_KEY;\n// create new configuration for the OpenAI API with the API key\nconst configuration = new Configuration({\n apiKey: apiKey\n});\n// create new instance of OPENAIAPI class with configuration\nconst openai = new OpenAIApi(configuration);\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState('');\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n // api call\n try {\n const completion = await openai.createCompletion({\n model: \"gpt-3.5-turbo\",\n prompt: 'Generate ${numberOfQuestions} trivia questions about ${category}.'\n // adjust and use token limit if necessary\n // max_tokens: 200\n });\n console.log(completion.data.choices[0].text);\n } catch (error) {\n console.error('Error calling OpenAI APIL:', e);\n }\n\n //insert api call logic here\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n value: numberOfQuestions,\n onChange: e => setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10)))),\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Number of Questions\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaCategory\",\n children: \"Category:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n value: category,\n onChange: e => setCategory(e.target.value),\n className: \"form-control\",\n id: \"triviaCategory\",\n placeholder: \"Category\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 69,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 70,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 68,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Generate\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"5EWR5EgCw9Hns2v+6hnb2mRj/1Y=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","OpenAIApi","jsxDEV","_jsxDEV","apiKey","process","env","OPENAI_API_KEY","configuration","Configuration","openai","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","completion","createCompletion","model","prompt","console","log","data","choices","text","error","e","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","value","onChange","Math","min","max","parseInt","target","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\nimport { OpenAIApi } from \"openai\";\n\nconst apiKey = process.env.OPENAI_API_KEY;\n// create new configuration for the OpenAI API with the API key\nconst configuration = new Configuration({\n apiKey: apiKey\n});\n// create new instance of OPENAIAPI class with configuration\nconst openai = new OpenAIApi(configuration);\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState('');\n const [category, setCategory] = useState('');\n \n\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n // api call\n try {\n const completion = await openai.createCompletion({\n model: \"gpt-3.5-turbo\",\n prompt: 'Generate ${numberOfQuestions} trivia questions about ${category}.',\n // adjust and use token limit if necessary\n // max_tokens: 200\n });\n \n console.log(completion.data.choices[0].text);\n } catch (error) {\n console.error('Error calling OpenAI APIL:', e)\n }\n\n //insert api call logic here\n\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10))))}\n className=\"form-control\" \n id=\"triviaTitle\" \n placeholder=\"Number of Questions\" \n />\n
\n
\n \n setCategory(e.target.value)}\n className=\"form-control\" \n id=\"triviaCategory\" \n placeholder=\"Category\" \n />\n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,SAAS,QAAQ,QAAQ;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAEnC,MAAMC,MAAM,GAAGC,OAAO,CAACC,GAAG,CAACC,cAAc;AACzC;AACA,MAAMC,aAAa,GAAG,IAAIC,aAAa,CAAC;EACpCL,MAAM,EAAEA;AACZ,CAAC,CAAC;AACF;AACA,MAAMM,MAAM,GAAG,IAAIT,SAAS,CAACO,aAAa,CAAC;AAE3C,SAASG,aAAaA,CAAA,EAAG;EAAAC,EAAA;EACrB,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGd,QAAQ,CAAC,EAAE,CAAC;EAC9D,MAAM,CAACe,QAAQ,EAAEC,WAAW,CAAC,GAAGhB,QAAQ,CAAC,EAAE,CAAC;EAI5C,MAAMiB,YAAY,GAAG,MAAOC,KAAK,IAAK;IAClCA,KAAK,CAACC,cAAc,CAAC,CAAC;;IAEtB;IACA,IAAI;MACA,MAAMC,UAAU,GAAG,MAAMV,MAAM,CAACW,gBAAgB,CAAC;QAC7CC,KAAK,EAAE,eAAe;QACtBC,MAAM,EAAE;QACR;QACA;MACJ,CAAC,CAAC;MAEFC,OAAO,CAACC,GAAG,CAACL,UAAU,CAACM,IAAI,CAACC,OAAO,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC;IAChD,CAAC,CAAC,OAAOC,KAAK,EAAE;MACZL,OAAO,CAACK,KAAK,CAAC,4BAA4B,EAAEC,CAAC,CAAC;IAClD;;IAEA;EAEJ,CAAC;EAG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,KAAK,CAAE;UAC3CH,SAAS,EAAC,cAAc;UACxBU,EAAE,EAAC,gBAAgB;UACnBC,WAAW,EAAC;QAAU;UAAAhB,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OACzB,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OACD,CAAC,eACNhC,OAAA;QAAKkC,SAAS,EAAC,YAAY;QAAAN,QAAA,gBACvB5B,OAAA;UAAOmC,GAAG,EAAC,cAAc;UAAAP,QAAA,EAAC;QAAW;UAAAC,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAO,CAAC,eAC7ChC,OAAA;UAAOoC,IAAI,EAAC,MAAM;UAACF,SAAS,EAAC,cAAc;UAACU,EAAE,EAAC,cAAc;UAACC,WAAW,EAAC;QAAc;UAAAhB,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAE,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAC1F,CAAC,eACNhC,OAAA;QAAQoC,IAAI,EAAC,QAAQ;QAACF,SAAS,EAAC,iBAAiB;QAAAN,QAAA,EAAC;MAAQ;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OACjE,CAAC;EAAA;IAAAH,QAAA,EAAAC,YAAA;IAAAC,UAAA;IAAAC,YAAA;EAAA,OAEN,CAAC;AAGd;AAACvB,EAAA,CAlEQD,aAAa;AAAAsC,EAAA,GAAbtC,aAAa;AAmEtB,eAAeA,aAAa;AAAC,IAAAsC,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0518129f648a1f6854763c8f022fead2def57d43f1b78e41cf07f533f2b195fa.json b/trivia-forge/node_modules/.cache/babel-loader/0518129f648a1f6854763c8f022fead2def57d43f1b78e41cf07f533f2b195fa.json deleted file mode 100644 index 69808001..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0518129f648a1f6854763c8f022fead2def57d43f1b78e41cf07f533f2b195fa.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n\n/**\n * @param {(string | number)[]} updatedModules updated modules\n * @param {(string | number)[] | null} renewedModules renewed modules\n */\nmodule.exports = function (updatedModules, renewedModules) {\n var unacceptedModules = updatedModules.filter(function (moduleId) {\n return renewedModules && renewedModules.indexOf(moduleId) < 0;\n });\n var log = require(\"./log\");\n if (unacceptedModules.length > 0) {\n log(\"warning\", \"[HMR] The following modules couldn't be hot updated: (They would need a full reload!)\");\n unacceptedModules.forEach(function (moduleId) {\n log(\"warning\", \"[HMR] - \" + moduleId);\n });\n }\n if (!renewedModules || renewedModules.length === 0) {\n log(\"info\", \"[HMR] Nothing hot updated.\");\n } else {\n log(\"info\", \"[HMR] Updated modules:\");\n renewedModules.forEach(function (moduleId) {\n if (typeof moduleId === \"string\" && moduleId.indexOf(\"!\") !== -1) {\n var parts = moduleId.split(\"!\");\n log.groupCollapsed(\"info\", \"[HMR] - \" + parts.pop());\n log(\"info\", \"[HMR] - \" + moduleId);\n log.groupEnd(\"info\");\n } else {\n log(\"info\", \"[HMR] - \" + moduleId);\n }\n });\n var numberIds = renewedModules.every(function (moduleId) {\n return typeof moduleId === \"number\";\n });\n if (numberIds) log(\"info\", '[HMR] Consider using the optimization.moduleIds: \"named\" for module names.');\n }\n};","map":{"version":3,"names":["module","exports","updatedModules","renewedModules","unacceptedModules","filter","moduleId","indexOf","log","require","length","forEach","parts","split","groupCollapsed","pop","groupEnd","numberIds","every"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/webpack/hot/log-apply-result.js"],"sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n\n/**\n * @param {(string | number)[]} updatedModules updated modules\n * @param {(string | number)[] | null} renewedModules renewed modules\n */\nmodule.exports = function (updatedModules, renewedModules) {\n\tvar unacceptedModules = updatedModules.filter(function (moduleId) {\n\t\treturn renewedModules && renewedModules.indexOf(moduleId) < 0;\n\t});\n\tvar log = require(\"./log\");\n\n\tif (unacceptedModules.length > 0) {\n\t\tlog(\n\t\t\t\"warning\",\n\t\t\t\"[HMR] The following modules couldn't be hot updated: (They would need a full reload!)\"\n\t\t);\n\t\tunacceptedModules.forEach(function (moduleId) {\n\t\t\tlog(\"warning\", \"[HMR] - \" + moduleId);\n\t\t});\n\t}\n\n\tif (!renewedModules || renewedModules.length === 0) {\n\t\tlog(\"info\", \"[HMR] Nothing hot updated.\");\n\t} else {\n\t\tlog(\"info\", \"[HMR] Updated modules:\");\n\t\trenewedModules.forEach(function (moduleId) {\n\t\t\tif (typeof moduleId === \"string\" && moduleId.indexOf(\"!\") !== -1) {\n\t\t\t\tvar parts = moduleId.split(\"!\");\n\t\t\t\tlog.groupCollapsed(\"info\", \"[HMR] - \" + parts.pop());\n\t\t\t\tlog(\"info\", \"[HMR] - \" + moduleId);\n\t\t\t\tlog.groupEnd(\"info\");\n\t\t\t} else {\n\t\t\t\tlog(\"info\", \"[HMR] - \" + moduleId);\n\t\t\t}\n\t\t});\n\t\tvar numberIds = renewedModules.every(function (moduleId) {\n\t\t\treturn typeof moduleId === \"number\";\n\t\t});\n\t\tif (numberIds)\n\t\t\tlog(\n\t\t\t\t\"info\",\n\t\t\t\t'[HMR] Consider using the optimization.moduleIds: \"named\" for module names.'\n\t\t\t);\n\t}\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACAA,MAAM,CAACC,OAAO,GAAG,UAAUC,cAAc,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AAE;MACxD,OAAO,OAAOA,QAAQ,KAAK,QAAQ;IACpC,CAAC,CAAC;IACF,IAAIW,SAAS,EACZT,GAAG,CACF,MAAM,EACN,4EACD,CAAC;EACH;AACD,CAAC","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/055423d86c289a1c1173127aac99b73d1b22f29312eb1ec0262b165f3100ea8a.json b/trivia-forge/node_modules/.cache/babel-loader/055423d86c289a1c1173127aac99b73d1b22f29312eb1ec0262b165f3100ea8a.json deleted file mode 100644 index 613b5b1b..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/055423d86c289a1c1173127aac99b73d1b22f29312eb1ec0262b165f3100ea8a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import { createPopper, popperGenerator, detectOverflow } from \"./createPopper.js\";\n// eslint-disable-next-line import/no-unused-modules\nexport { createPopper, popperGenerator, detectOverflow };","map":{"version":3,"names":["createPopper","popperGenerator","detectOverflow"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/popper-base.js"],"sourcesContent":["import { createPopper, popperGenerator, detectOverflow } from \"./createPopper.js\";\n// eslint-disable-next-line import/no-unused-modules\nexport { createPopper, popperGenerator, detectOverflow };"],"mappings":"AAAA,SAASA,YAAY,EAAEC,eAAe,EAAEC,cAAc,QAAQ,mBAAmB;AACjF;AACA,SAASF,YAAY,EAAEC,eAAe,EAAEC,cAAc","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/05e26cd1b8c8573d9735fc03214a21685cc718b2782693b324d3d3262d019f3b.json b/trivia-forge/node_modules/.cache/babel-loader/05e26cd1b8c8573d9735fc03214a21685cc718b2782693b324d3d3262d019f3b.json deleted file mode 100644 index bdc4ba0d..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/05e26cd1b8c8573d9735fc03214a21685cc718b2782693b324d3d3262d019f3b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"/* eslint-disable no-bitwise, no-cond-assign */\n\n/**\n * Checks if an element contains another given element.\n * \n * @param context the context element\n * @param node the element to check\n */\nexport default function contains(context, node) {\n // HTML DOM and SVG DOM may have different support levels,\n // so we need to check on context instead of a document root element.\n if (context.contains) return context.contains(node);\n if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);\n}","map":{"version":3,"names":["contains","context","node","compareDocumentPosition"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/dom-helpers/esm/contains.js"],"sourcesContent":["/* eslint-disable no-bitwise, no-cond-assign */\n\n/**\n * Checks if an element contains another given element.\n * \n * @param context the context element\n * @param node the element to check\n */\nexport default function contains(context, node) {\n // HTML DOM and SVG DOM may have different support levels,\n // so we need to check on context instead of a document root element.\n if (context.contains) return context.contains(node);\n if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);\n}"],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASA,QAAQA,CAACC,OAAO,EAAEC,IAAI,EAAE;EAC9C;EACA;EACA,IAAID,OAAO,CAACD,QAAQ,EAAE,OAAOC,OAAO,CAACD,QAAQ,CAACE,IAAI,CAAC;EACnD,IAAID,OAAO,CAACE,uBAAuB,EAAE,OAAOF,OAAO,KAAKC,IAAI,IAAI,CAAC,EAAED,OAAO,CAACE,uBAAuB,CAACD,IAAI,CAAC,GAAG,EAAE,CAAC;AAChH","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0618092e408792f892c5dec16483b4b57fef1e176e64b593a36e0502df880b4e.json b/trivia-forge/node_modules/.cache/babel-loader/0618092e408792f892c5dec16483b4b57fef1e176e64b593a36e0502df880b4e.json deleted file mode 100644 index dd186808..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0618092e408792f892c5dec16483b4b57fef1e176e64b593a36e0502df880b4e.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"const _excluded = [\"as\", \"onSelect\", \"activeKey\", \"role\", \"onKeyDown\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nimport qsa from 'dom-helpers/querySelectorAll';\nimport * as React from 'react';\nimport { useContext, useEffect, useRef } from 'react';\nimport useForceUpdate from '@restart/hooks/useForceUpdate';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport NavContext from './NavContext';\nimport SelectableContext, { makeEventKey } from './SelectableContext';\nimport TabContext from './TabContext';\nimport { dataAttr, dataProp } from './DataKey';\nimport NavItem from './NavItem';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst noop = () => {};\nconst EVENT_KEY_ATTR = dataAttr('event-key');\nconst Nav = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n onSelect,\n activeKey,\n role,\n onKeyDown\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n // A ref and forceUpdate for refocus, b/c we only want to trigger when needed\n // and don't want to reset the set in the effect\n const forceUpdate = useForceUpdate();\n const needsRefocusRef = useRef(false);\n const parentOnSelect = useContext(SelectableContext);\n const tabContext = useContext(TabContext);\n let getControlledId, getControllerId;\n if (tabContext) {\n role = role || 'tablist';\n activeKey = tabContext.activeKey;\n // TODO: do we need to duplicate these?\n getControlledId = tabContext.getControlledId;\n getControllerId = tabContext.getControllerId;\n }\n const listNode = useRef(null);\n const getNextActiveTab = offset => {\n const currentListNode = listNode.current;\n if (!currentListNode) return null;\n const items = qsa(currentListNode, \"[\".concat(EVENT_KEY_ATTR, \"]:not([aria-disabled=true])\"));\n const activeChild = currentListNode.querySelector('[aria-selected=true]');\n if (!activeChild || activeChild !== document.activeElement) return null;\n const index = items.indexOf(activeChild);\n if (index === -1) return null;\n let nextIndex = index + offset;\n if (nextIndex >= items.length) nextIndex = 0;\n if (nextIndex < 0) nextIndex = items.length - 1;\n return items[nextIndex];\n };\n const handleSelect = (key, event) => {\n if (key == null) return;\n onSelect == null ? void 0 : onSelect(key, event);\n parentOnSelect == null ? void 0 : parentOnSelect(key, event);\n };\n const handleKeyDown = event => {\n onKeyDown == null ? void 0 : onKeyDown(event);\n if (!tabContext) {\n return;\n }\n let nextActiveChild;\n switch (event.key) {\n case 'ArrowLeft':\n case 'ArrowUp':\n nextActiveChild = getNextActiveTab(-1);\n break;\n case 'ArrowRight':\n case 'ArrowDown':\n nextActiveChild = getNextActiveTab(1);\n break;\n default:\n return;\n }\n if (!nextActiveChild) return;\n event.preventDefault();\n handleSelect(nextActiveChild.dataset[dataProp('EventKey')] || null, event);\n needsRefocusRef.current = true;\n forceUpdate();\n };\n useEffect(() => {\n if (listNode.current && needsRefocusRef.current) {\n const activeChild = listNode.current.querySelector(\"[\".concat(EVENT_KEY_ATTR, \"][aria-selected=true]\"));\n activeChild == null ? void 0 : activeChild.focus();\n }\n needsRefocusRef.current = false;\n });\n const mergedRef = useMergedRefs(ref, listNode);\n return /*#__PURE__*/_jsx(SelectableContext.Provider, {\n value: handleSelect,\n children: /*#__PURE__*/_jsx(NavContext.Provider, {\n value: {\n role,\n // used by NavLink to determine it's role\n activeKey: makeEventKey(activeKey),\n getControlledId: getControlledId || noop,\n getControllerId: getControllerId || noop\n },\n children: /*#__PURE__*/_jsx(Component, Object.assign({}, props, {\n onKeyDown: handleKeyDown,\n ref: mergedRef,\n role: role\n }))\n })\n });\n});\nNav.displayName = 'Nav';\nexport default Object.assign(Nav, {\n Item: NavItem\n});","map":{"version":3,"names":["_excluded","_objectWithoutPropertiesLoose","source","excluded","target","sourceKeys","Object","keys","key","i","length","indexOf","qsa","React","useContext","useEffect","useRef","useForceUpdate","useMergedRefs","NavContext","SelectableContext","makeEventKey","TabContext","dataAttr","dataProp","NavItem","jsx","_jsx","noop","EVENT_KEY_ATTR","Nav","forwardRef","_ref","ref","as","Component","onSelect","activeKey","role","onKeyDown","props","forceUpdate","needsRefocusRef","parentOnSelect","tabContext","getControlledId","getControllerId","listNode","getNextActiveTab","offset","currentListNode","current","items","concat","activeChild","querySelector","document","activeElement","index","nextIndex","handleSelect","event","handleKeyDown","nextActiveChild","preventDefault","dataset","focus","mergedRef","Provider","value","children","assign","displayName","Item"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/ui/esm/Nav.js"],"sourcesContent":["const _excluded = [\"as\", \"onSelect\", \"activeKey\", \"role\", \"onKeyDown\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport qsa from 'dom-helpers/querySelectorAll';\nimport * as React from 'react';\nimport { useContext, useEffect, useRef } from 'react';\nimport useForceUpdate from '@restart/hooks/useForceUpdate';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport NavContext from './NavContext';\nimport SelectableContext, { makeEventKey } from './SelectableContext';\nimport TabContext from './TabContext';\nimport { dataAttr, dataProp } from './DataKey';\nimport NavItem from './NavItem';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst noop = () => {};\nconst EVENT_KEY_ATTR = dataAttr('event-key');\nconst Nav = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n onSelect,\n activeKey,\n role,\n onKeyDown\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n // A ref and forceUpdate for refocus, b/c we only want to trigger when needed\n // and don't want to reset the set in the effect\n const forceUpdate = useForceUpdate();\n const needsRefocusRef = useRef(false);\n const parentOnSelect = useContext(SelectableContext);\n const tabContext = useContext(TabContext);\n let getControlledId, getControllerId;\n if (tabContext) {\n role = role || 'tablist';\n activeKey = tabContext.activeKey;\n // TODO: do we need to duplicate these?\n getControlledId = tabContext.getControlledId;\n getControllerId = tabContext.getControllerId;\n }\n const listNode = useRef(null);\n const getNextActiveTab = offset => {\n const currentListNode = listNode.current;\n if (!currentListNode) return null;\n const items = qsa(currentListNode, `[${EVENT_KEY_ATTR}]:not([aria-disabled=true])`);\n const activeChild = currentListNode.querySelector('[aria-selected=true]');\n if (!activeChild || activeChild !== document.activeElement) return null;\n const index = items.indexOf(activeChild);\n if (index === -1) return null;\n let nextIndex = index + offset;\n if (nextIndex >= items.length) nextIndex = 0;\n if (nextIndex < 0) nextIndex = items.length - 1;\n return items[nextIndex];\n };\n const handleSelect = (key, event) => {\n if (key == null) return;\n onSelect == null ? void 0 : onSelect(key, event);\n parentOnSelect == null ? void 0 : parentOnSelect(key, event);\n };\n const handleKeyDown = event => {\n onKeyDown == null ? void 0 : onKeyDown(event);\n if (!tabContext) {\n return;\n }\n let nextActiveChild;\n switch (event.key) {\n case 'ArrowLeft':\n case 'ArrowUp':\n nextActiveChild = getNextActiveTab(-1);\n break;\n case 'ArrowRight':\n case 'ArrowDown':\n nextActiveChild = getNextActiveTab(1);\n break;\n default:\n return;\n }\n if (!nextActiveChild) return;\n event.preventDefault();\n handleSelect(nextActiveChild.dataset[dataProp('EventKey')] || null, event);\n needsRefocusRef.current = true;\n forceUpdate();\n };\n useEffect(() => {\n if (listNode.current && needsRefocusRef.current) {\n const activeChild = listNode.current.querySelector(`[${EVENT_KEY_ATTR}][aria-selected=true]`);\n activeChild == null ? void 0 : activeChild.focus();\n }\n needsRefocusRef.current = false;\n });\n const mergedRef = useMergedRefs(ref, listNode);\n return /*#__PURE__*/_jsx(SelectableContext.Provider, {\n value: handleSelect,\n children: /*#__PURE__*/_jsx(NavContext.Provider, {\n value: {\n role,\n // used by NavLink to determine it's role\n activeKey: makeEventKey(activeKey),\n getControlledId: getControlledId || noop,\n getControllerId: getControllerId || noop\n },\n children: /*#__PURE__*/_jsx(Component, Object.assign({}, props, {\n onKeyDown: handleKeyDown,\n ref: mergedRef,\n role: role\n }))\n })\n });\n});\nNav.displayName = 'Nav';\nexport default Object.assign(Nav, {\n Item: NavItem\n});"],"mappings":"AAAA,MAAMA,SAAS,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,CAAC;AACtE,SAASC,6BAA6BA,CAACC,MAAM,EAAEC,QAAQ,EAAE;EAAE,IAAID,MAAM,IAAI,IAAI,EAAE,OAAO,CAAC,CAAC;EAAE,IAAIE,MAAM,GAAG,CAAC,CAAC;EAAE,IAAIC,UAAU,GAAGC,MAAM,CAACC,IAAI,CAACL,MAAM,CAAC;EAAE,IAAIM,GAAG,EAAEC,CAAC;EAAE,KAAKA,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,UAAU,CAACK,MAAM,EAAED,CAAC,EAAE,EAAE;IAAED,GAAG,GAAGH,UAAU,CAACI,CAAC,CAAC;IAAE,IAAIN,QAAQ,CAACQ,OAAO,CAACH,GAAG,CAAC,IAAI,CAAC,EAAE;IAAUJ,MAAM,CAACI,GAAG,CAAC,GAAGN,MAAM,CAACM,GAAG,CAAC;EAAE;EAAE,OAAOJ,MAAM;AAAE;AAClT,OAAOQ,GAAG,MAAM,8BAA8B;AAC9C,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AACrD,OAAOC,cAAc,MAAM,+BAA+B;AAC1D,OAAOC,aAAa,MAAM,8BAA8B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a;QACxB7B,GAAG,EAAEkC,SAAS;QACd7B,IAAI,EAAEA;MACR,CAAC,CAAC;IACJ,CAAC;EACH,CAAC,CAAC;AACJ,CAAC,CAAC;AACFR,GAAG,CAAC0C,WAAW,GAAG,KAAK;AACvB,eAAelE,MAAM,CAACiE,MAAM,CAACzC,GAAG,EAAE;EAChC2C,IAAI,EAAEhD;AACR,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0664f54ac5a5a3cbcd912601557377d8ac9a8dd3e02c3b238c78c5c910f17834.json b/trivia-forge/node_modules/.cache/babel-loader/0664f54ac5a5a3cbcd912601557377d8ac9a8dd3e02c3b238c78c5c910f17834.json deleted file mode 100644 index a3c60896..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0664f54ac5a5a3cbcd912601557377d8ac9a8dd3e02c3b238c78c5c910f17834.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.\nimport { APIResource } from 'openai/resource';\nexport class Moderations extends APIResource {\n /**\n * Classifies if text is potentially harmful.\n */\n create(body, options) {\n return this._client.post('/moderations', {\n body,\n ...options\n });\n }\n}\n(function (Moderations) {})(Moderations || (Moderations = {}));","map":{"version":3,"names":["APIResource","Moderations","create","body","options","_client","post"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/openai/src/resources/moderations.ts"],"sourcesContent":["// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.\n\nimport * as Core from \"../core\";\nimport { APIResource } from \"../resource\";\nimport * as ModerationsAPI from \"./moderations\";\n\nexport class Moderations extends APIResource {\n /**\n * Classifies if text is potentially harmful.\n */\n create(\n body: ModerationCreateParams,\n options?: Core.RequestOptions,\n ): Core.APIPromise {\n return this._client.post('/moderations', { body, ...options });\n }\n}\n\nexport interface Moderation {\n /**\n * A list of the categories, and whether they are flagged or not.\n */\n categories: Moderation.Categories;\n\n /**\n * A list of the categories along with their scores as predicted by model.\n */\n category_scores: Moderation.CategoryScores;\n\n /**\n * Whether any of the below categories are flagged.\n */\n flagged: boolean;\n}\n\nexport namespace Moderation {\n /**\n * A list of the categories, and whether they are flagged or not.\n */\n export interface Categories {\n /**\n * Content that expresses, incites, or promotes harassing language towards any\n * target.\n */\n harassment: boolean;\n\n /**\n * Harassment content that also includes violence or serious harm towards any\n * target.\n */\n 'harassment/threatening': boolean;\n\n /**\n * Content that expresses, incites, or promotes hate based on race, gender,\n * ethnicity, religion, nationality, sexual orientation, disability status, or\n * caste. Hateful content aimed at non-protected groups (e.g., chess players) is\n * harassment.\n */\n hate: boolean;\n\n /**\n * Hateful content that also includes violence or serious harm towards the targeted\n * group based on race, gender, ethnicity, religion, nationality, sexual\n * orientation, disability status, or caste.\n */\n 'hate/threatening': boolean;\n\n /**\n * Content that promotes, encourages, or depicts acts of self-harm, such as\n * suicide, cutting, and eating disorders.\n */\n 'self-harm': boolean;\n\n /**\n * Content that encourages performing acts of self-harm, such as suicide, cutting,\n * and eating disorders, or that gives instructions or advice on how to commit such\n * acts.\n */\n 'self-harm/instructions': boolean;\n\n /**\n * Content where the speaker expresses that they are engaging or intend to engage\n * in acts of self-harm, such as suicide, cutting, and eating disorders.\n */\n 'self-harm/intent': boolean;\n\n /**\n * Content meant to arouse sexual excitement, such as the description of sexual\n * activity, or that promotes sexual services (excluding sex education and\n * wellness).\n */\n sexual: boolean;\n\n /**\n * Sexual content that includes an individual who is under 18 years old.\n */\n 'sexual/minors': boolean;\n\n /**\n * Content that depicts death, violence, or physical injury.\n */\n violence: boolean;\n\n /**\n * Content that depicts death, violence, or physical injury in graphic detail.\n */\n 'violence/graphic': boolean;\n }\n\n /**\n * A list of the categories along with their scores as predicted by model.\n */\n export interface CategoryScores {\n /**\n * The score for the category 'harassment'.\n */\n harassment: number;\n\n /**\n * The score for the category 'harassment/threatening'.\n */\n 'harassment/threatening': number;\n\n /**\n * The score for the category 'hate'.\n */\n hate: number;\n\n /**\n * The score for the category 'hate/threatening'.\n */\n 'hate/threatening': number;\n\n /**\n * The score for the category 'self-harm'.\n */\n 'self-harm': number;\n\n /**\n * The score for the category 'self-harm/instructions'.\n */\n 'self-harm/instructions': number;\n\n /**\n * The score for the category 'self-harm/intent'.\n */\n 'self-harm/intent': number;\n\n /**\n * The score for the category 'sexual'.\n */\n sexual: number;\n\n /**\n * The score for the category 'sexual/minors'.\n */\n 'sexual/minors': number;\n\n /**\n * The score for the category 'violence'.\n */\n violence: number;\n\n /**\n * The score for the category 'violence/graphic'.\n */\n 'violence/graphic': number;\n }\n}\n\n/**\n * Represents if a given text input is potentially harmful.\n */\nexport interface ModerationCreateResponse {\n /**\n * The unique identifier for the moderation request.\n */\n id: string;\n\n /**\n * The model used to generate the moderation results.\n */\n model: string;\n\n /**\n * A list of moderation objects.\n */\n results: Array;\n}\n\nexport interface ModerationCreateParams {\n /**\n * The input text to classify\n */\n input: string | Array;\n\n /**\n * Two content moderations models are available: `text-moderation-stable` and\n * `text-moderation-latest`.\n *\n * The default is `text-moderation-latest` which will be automatically upgraded\n * over time. This ensures you are always using our most accurate model. If you use\n * `text-moderation-stable`, we will provide advanced notice before updating the\n * model. Accuracy of `text-moderation-stable` may be slightly lower than for\n * `text-moderation-latest`.\n */\n model?: (string & {}) | 'text-moderation-latest' | 'text-moderation-stable';\n}\n\nexport namespace Moderations {\n export import Moderation = ModerationsAPI.Moderation;\n export import ModerationCreateResponse = ModerationsAPI.ModerationCreateResponse;\n export import ModerationCreateParams = ModerationsAPI.ModerationCreateParams;\n}\n"],"mappings":"AAAA;SAGSA,WAAW,QAAQ,iBAAiB;AAG7C,OAAM,MAAOC,WAAY,SAAQD,WAAW;EAC1C;;;EAGAE,MAAMA,CACJC,IAA4B,EAC5BC,OAA6B;IAE7B,OAAO,IAAI,CAACC,OAAO,CAACC,IAAI,CAAC,cAAc,EAAE;MAAEH,IAAI;MAAE,GAAGC;IAAO,CAAE,CAAC;EAChE;;AAkMF,WAAiBH,WAAW,GAI5B,CAAC,EAJgBA,WAAW,KAAXA,WAAW","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/066c96317974554f0da53dcbcdb20660e1fd29913821ef206c70cd5e168807f0.json b/trivia-forge/node_modules/.cache/babel-loader/066c96317974554f0da53dcbcdb20660e1fd29913821ef206c70cd5e168807f0.json deleted file mode 100644 index 72d53b0b..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/066c96317974554f0da53dcbcdb20660e1fd29913821ef206c70cd5e168807f0.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n value: numberOfQuestions,\n onChange: e => setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10)))),\n min: \"1\",\n max: \"10\",\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Number of Questions\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaCategory\",\n children: \"Category:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n value: category,\n onChange: e => setCategory(e.target.value),\n className: \"form-control\",\n id: \"triviaCategory\",\n placeholder: \"Category\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Generate\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"hg16lLzJerCd9XnW4Ja5h3Su2Cs=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","jsxDEV","_jsxDEV","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","console","log","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","value","onChange","e","Math","min","max","parseInt","target","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10))))}\n min=\"1\"\n max=\"10\"\n className=\"form-control\" \n id=\"triviaTitle\" \n placeholder=\"Number of Questions\" \n />\n
\n
\n \n setCategory(e.target.value)}\n className=\"form-control\" \n id=\"triviaCategory\" \n placeholder=\"Category\" \n />\n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAExC,SAASC,aAAaA,CAAA,EAAG;EAAAC,EAAA;EACrB,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGN,QAAQ,CAAC,CAAC,CAAC;EAC7D,MAAM,CAACO,QAAQ,EAAEC,WAAW,CAAC,GAAGR,Q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,UAAA;IAAAC,YAAA;EAAA,OAEN,CAAC;AAGd;AAACd,EAAA,CA5DQD,aAAa;AAAA8B,EAAA,GAAb9B,aAAa;AA6DtB,eAAeA,aAAa;AAAC,IAAA8B,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/06c0b3500fa3dce3db9640b813a57aacf80b320c2ae1cc99c80e9b323b12c525.json b/trivia-forge/node_modules/.cache/babel-loader/06c0b3500fa3dce3db9640b813a57aacf80b320c2ae1cc99c80e9b323b12c525.json deleted file mode 100644 index d8db8845..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/06c0b3500fa3dce3db9640b813a57aacf80b320c2ae1cc99c80e9b323b12c525.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"'use strict';\n\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};","map":{"version":3,"names":["module","exports","bitmap","value","enumerable","configurable","writable"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/core-js-pure/internals/create-property-descriptor.js"],"sourcesContent":["'use strict';\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n"],"mappings":"AAAA,YAAY;;AACZA,MAAM,CAACC,OAAO,GAAG,UAAUC,MAAM,EAAEC,KAAK,EAAE;EACxC,OAAO;IACLC,UAAU,EAAE,EAAEF,MAAM,GAAG,CAAC,CAAC;IACzBG,YAAY,EAAE,EAAEH,MAAM,GAAG,CAAC,CAAC;IAC3BI,QAAQ,EAAE,EAAEJ,MAAM,GAAG,CAAC,CAAC;IACvBC,KAAK,EAAEA;EACT,CAAC;AACH,CAAC","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/077782c6e492e1ee9a0a9660f7c297bf43b7e1c94c3cc5697c0ad63dc0e3a562.json b/trivia-forge/node_modules/.cache/babel-loader/077782c6e492e1ee9a0a9660f7c297bf43b7e1c94c3cc5697c0ad63dc0e3a562.json deleted file mode 100644 index 60b8bbcb..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/077782c6e492e1ee9a0a9660f7c297bf43b7e1c94c3cc5697c0ad63dc0e3a562.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var EventEmitter = require(\"events\");\nmodule.exports = new EventEmitter();","map":{"version":3,"names":["EventEmitter","require","module","exports"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/webpack/hot/emitter.js"],"sourcesContent":["var EventEmitter = require(\"events\");\nmodule.exports = new EventEmitter();\n"],"mappings":"AAAA,IAAIA,YAAY,GAAGC,OAAO,CAAC,QAAQ,CAAC;AACpCC,MAAM,CAACC,OAAO,GAAG,IAAIH,YAAY,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/07c53e32b2b6002e31530a8e6e600441b7029cfedead78e8eb121cf0b8bf0f6a.json b/trivia-forge/node_modules/.cache/babel-loader/07c53e32b2b6002e31530a8e6e600441b7029cfedead78e8eb121cf0b8bf0f6a.json deleted file mode 100644 index 3e4c0795..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/07c53e32b2b6002e31530a8e6e600441b7029cfedead78e8eb121cf0b8bf0f6a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport divWithClassName from './divWithClassName';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DivStyledAsH6 = divWithClassName('h6');\nconst CardSubtitle = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = DivStyledAsH6,\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'card-subtitle');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nCardSubtitle.displayName = 'CardSubtitle';\nexport default CardSubtitle;","map":{"version":3,"names":["React","classNames","useBootstrapPrefix","divWithClassName","jsx","_jsx","DivStyledAsH6","CardSubtitle","forwardRef","className","bsPrefix","as","Component","props","ref","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/CardSubtitle.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport divWithClassName from './divWithClassName';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DivStyledAsH6 = divWithClassName('h6');\nconst CardSubtitle = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = DivStyledAsH6,\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'card-subtitle');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nCardSubtitle.displayName = 'CardSubtitle';\nexport default CardSubtitle;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,aAAa,GAAGH,gBAAgB,CAAC,IAAI,CAAC;AAC5C,MAAMI,YAAY,GAAG,aAAaP,KAAK,CAACQ,UAAU,CAAC,CAAC;EAClDC,SAAS;EACTC,QAAQ;EACRC,EAAE,EAAEC,SAAS,GAAGN,aAAa;EAC7B,GAAGO;AACL,CAAC,EAAEC,GAAG,KAAK;EACTJ,QAAQ,GAAGR,kBAAkB,CAACQ,QAAQ,EAAE,eAAe,CAAC;EACxD,OAAO,aAAaL,IAAI,CAACO,SAAS,EAAE;IAClCE,GAAG,EAAEA,GAAG;IACRL,SAAS,EAAER,UAAU,CAACQ,SAAS,EAAEC,QAAQ,CAAC;IAC1C,GAAGG;EACL,CAAC,CAAC;AACJ,CAAC,CAAC;AACFN,YAAY,CAACQ,WAAW,GAAG,cAAc;AACzC,eAAeR,YAAY","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/07fe97f9f99a080c8ceea12943cdf0354443ff184acf507b20111ccf7379e50f.json b/trivia-forge/node_modules/.cache/babel-loader/07fe97f9f99a080c8ceea12943cdf0354443ff184acf507b20111ccf7379e50f.json deleted file mode 100644 index 5795ec10..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/07fe97f9f99a080c8ceea12943cdf0354443ff184acf507b20111ccf7379e50f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import classNames from 'classnames';\nimport * as React from 'react';\nimport { useCallback } from 'react';\nimport { ENTERED, ENTERING } from 'react-transition-group/Transition';\nimport transitionEndListener from './transitionEndListener';\nimport triggerBrowserReflow from './triggerBrowserReflow';\nimport TransitionWrapper from './TransitionWrapper';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst fadeStyles = {\n [ENTERING]: 'show',\n [ENTERED]: 'show'\n};\nconst Fade = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n className,\n children,\n transitionClasses = {},\n onEnter,\n ...rest\n } = _ref;\n const props = {\n in: false,\n timeout: 300,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n ...rest\n };\n const handleEnter = useCallback((node, isAppearing) => {\n triggerBrowserReflow(node);\n onEnter == null ? void 0 : onEnter(node, isAppearing);\n }, [onEnter]);\n return /*#__PURE__*/_jsx(TransitionWrapper, {\n ref: ref,\n addEndListener: transitionEndListener,\n ...props,\n onEnter: handleEnter,\n childRef: children.ref,\n children: (status, innerProps) => /*#__PURE__*/React.cloneElement(children, {\n ...innerProps,\n className: classNames('fade', className, children.props.className, fadeStyles[status], transitionClasses[status])\n })\n });\n});\nFade.displayName = 'Fade';\nexport default Fade;","map":{"version":3,"names":["classNames","React","useCallback","ENTERED","ENTERING","transitionEndListener","triggerBrowserReflow","TransitionWrapper","jsx","_jsx","fadeStyles","Fade","forwardRef","_ref","ref","className","children","transitionClasses","onEnter","rest","props","in","timeout","mountOnEnter","unmountOnExit","appear","handleEnter","node","isAppearing","addEndListener","childRef","status","innerProps","cloneElement","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/Fade.js"],"sourcesContent":["import classNames from 'classnames';\nimport * as React from 'react';\nimport { useCallback } from 'react';\nimport { ENTERED, ENTERING } from 'react-transition-group/Transition';\nimport transitionEndListener from './transitionEndListener';\nimport triggerBrowserReflow from './triggerBrowserReflow';\nimport TransitionWrapper from './TransitionWrapper';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst fadeStyles = {\n [ENTERING]: 'show',\n [ENTERED]: 'show'\n};\nconst Fade = /*#__PURE__*/React.forwardRef(({\n className,\n children,\n transitionClasses = {},\n onEnter,\n ...rest\n}, ref) => {\n const props = {\n in: false,\n timeout: 300,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n ...rest\n };\n const handleEnter = useCallback((node, isAppearing) => {\n triggerBrowserReflow(node);\n onEnter == null ? void 0 : onEnter(node, isAppearing);\n }, [onEnter]);\n return /*#__PURE__*/_jsx(TransitionWrapper, {\n ref: ref,\n addEndListener: transitionEndListener,\n ...props,\n onEnter: handleEnter,\n childRef: children.ref,\n children: (status, innerProps) => /*#__PURE__*/React.cloneElement(children, {\n ...innerProps,\n className: classNames('fade', className, children.props.className, fadeStyles[status], transitionClasses[status])\n })\n });\n});\nFade.displayName = 'Fade';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QAAQ,EAAEA,CAACe,MAAM,EAAEC,UAAU,KAAK,aAAa/B,KAAK,CAACgC,YAAY,CAACjB,QAAQ,EAAE;MAC1E,GAAGgB,UAAU;MACbjB,SAAS,EAAEf,UAAU,CAAC,MAAM,EAAEe,SAAS,EAAEC,QAAQ,CAACI,KAAK,CAACL,SAAS,EAAEL,UAAU,CAACqB,MAAM,CAAC,EAAEd,iBAAiB,CAACc,MAAM,CAAC;IAClH,CAAC;EACH,CAAC,CAAC;AACJ,CAAC,CAAC;AACFpB,IAAI,CAACuB,WAAW,GAAG,MAAM;AACzB,eAAevB,IAAI","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0803dfe159461c00f8fae8502858febef8ce55484225825518a64dbb25787454.json b/trivia-forge/node_modules/.cache/babel-loader/0803dfe159461c00f8fae8502858febef8ce55484225825518a64dbb25787454.json deleted file mode 100644 index cd4dce10..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0803dfe159461c00f8fae8502858febef8ce55484225825518a64dbb25787454.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\";\nimport React from \"react\";\nimport { jsxDEV as _jsxDEV, Fragment as _Fragment } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n return /*#__PURE__*/_jsxDEV(_Fragment, {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 6,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaQuestion\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaQuestion\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 13\n }, this)]\n }, void 0, true);\n}\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","jsxDEV","_jsxDEV","Fragment","_Fragment","TriviaGenPage","children","fileName","_jsxFileName","lineNumber","columnNumber","className","for","type","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React from \"react\";\n\nfunction TriviaGenPage() {\n return (\n <>\n

\n Trivia Generator\n

\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n \n
\n\n \n );\n\n}\nexport default TriviaGenPage;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA,EAAAC,QAAA,IAAAC,SAAA;AAE1B,SAASC,aAAaA,CAAA,EAAG;EACrB,oBACIH,OAAA,CAAAE,SAAA;IAAAE,QAAA,gBACIJ,OAAA;MAAAI,QAAA,EAAI;IAEJ;MAAAC,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAAI,CAAC,eACLR,OAAA;MAAAI,QAAA,gBACIJ,OAAA;QAAKS,SAAS,EAAC,YAAY;QAAAL,QAAA,gBACvBJ,OAAA;UAAOU,GAAG,EAAC,aAAa;UAAAN,QAAA,EAAC;QAAmB;UAAAC,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAO,CAAC,eACpDR,OAAA;UAAOW,IAAI,EAAC,MAAM;UAACF,SAAS,EAAC,cAAc;UAACG,EAAE,EAAC,aAAa;UAACC,WAAW,EAAC;QAAc;UAAAR,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAE,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OACzF,CAAC,eACNR,OAAA;QAAKS,SAAS,EAAC,YAAY;QAAAL,QAAA,gBACvBJ,OAAA;UAAOU,GAAG,EA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ff --git a/trivia-forge/node_modules/.cache/babel-loader/087b02169260e44e07b2099b91b6d06974567b21cd3c3178ac5024f52d3bf46d.json b/trivia-forge/node_modules/.cache/babel-loader/087b02169260e44e07b2099b91b6d06974567b21cd3c3178ac5024f52d3bf46d.json deleted file mode 100644 index ee9f3052..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/087b02169260e44e07b2099b91b6d06974567b21cd3c3178ac5024f52d3bf46d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst NavbarBrand = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n bsPrefix,\n className,\n as,\n ...props\n } = _ref;\n bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');\n const Component = as || (props.href ? 'a' : 'span');\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref,\n className: classNames(className, bsPrefix)\n });\n});\nNavbarBrand.displayName = 'NavbarBrand';\nexport default NavbarBrand;","map":{"version":3,"names":["classNames","React","useBootstrapPrefix","jsx","_jsx","NavbarBrand","forwardRef","_ref","ref","bsPrefix","className","as","props","Component","href","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/NavbarBrand.js"],"sourcesContent":["\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst NavbarBrand = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n as,\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');\n const Component = as || (props.href ? 'a' : 'span');\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref,\n className: classNames(className, bsPrefix)\n });\n});\nNavbarBrand.displayName = 'NavbarBrand';\nexport default NavbarBrand;"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,WAAW,GAAG,aAAaJ,KAAK,CAACK,UAAU,CAAC,CAAAC,IAAA,EAK/CC,GAAG,KAAK;EAAA,IALwC;IACjDC,QAAQ;IACRC,SAAS;IACTC,EAAE;IACF,GAAGC;EACL,CAAC,GAAAL,IAAA;EACCE,QAAQ,GAAGP,kBAAkB,CAACO,QAAQ,EAAE,cAAc,CAAC;EACvD,MAAMI,SAAS,GAAGF,EAAE,KAAKC,KAAK,CAACE,IAAI,GAAG,GAAG,GAAG,MAAM,CAAC;EACnD,OAAO,aAAaV,IAAI,CAACS,SAAS,EAAE;IAClC,GAAGD,KAAK;IACRJ,GAAG,EAAEA,GAAG;IACRE,SAAS,EAAEV,UAAU,CAACU,SAAS,EAAED,QAAQ;EAC3C,CAAC,CAAC;AACJ,CAAC,CAAC;AACFJ,WAAW,CAACU,WAAW,GAAG,aAAa;AACvC,eAAeV,WAAW","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/08b68420b3f986c0038927b53ec4b58a3fa0c9ba48c62a83cd40dbe0a4a7cae1.json b/trivia-forge/node_modules/.cache/babel-loader/08b68420b3f986c0038927b53ec4b58a3fa0c9ba48c62a83cd40dbe0a4a7cae1.json deleted file mode 100644 index 8af32523..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/08b68420b3f986c0038927b53ec4b58a3fa0c9ba48c62a83cd40dbe0a4a7cae1.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\";\nimport React from \"react\";\nimport { jsxDEV as _jsxDEV, Fragment as _Fragment } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n return /*#__PURE__*/_jsxDEV(_Fragment, {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 6,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaQuestion\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaQuestion\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 13\n }, this)]\n }, void 0, true);\n}\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","jsxDEV","_jsxDEV","Fragment","_Fragment","TriviaGenPage","children","fileName","_jsxFileName","lineNumber","columnNumber","className","for","type","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React from \"react\";\n\nfunction TriviaGenPage() {\n return (\n <>\n

\n Trivia Generator\n

\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n \n
\n\n \n );\n\n}\nexport default TriviaGenPage;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA,EAAAC,QAAA,IAAAC,SAAA;AAE1B,SAASC,aAAaA,CAAA,EAAG;EACrB,oBACIH,OAAA,CAAAE,SAAA;IAAAE,QAAA,gBACIJ,OAAA;MAAAI,QAAA,EAAI;IAEJ;MAAAC,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAAI,CAAC,eACLR,OAAA;MAAAI,QAAA,gBACIJ,OAAA;QAAKS,SAAS,EAAC,YAAY;QAAAL,QAAA,gBACvBJ,OAAA;UAAOU,GAAG,EAAC;QAAa;UAAAL,QAAA,EAAAC,YAAA;UAAAC,UA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Q;QAACF,SAAS,EAAC,iBAAiB;QAAAL,QAAA,EAAC;MAAM;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAC/D,CAAC;EAAA,eAET,CAAC;AAGX;AAACM,EAAA,GAzBQX,aAAa;AA0BtB,eAAeA,aAAa;AAAC,IAAAW,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/08d1b26659767038b3e2fba6c20c45bbe3a441fa3f024b188234055a3a402f99.json b/trivia-forge/node_modules/.cache/babel-loader/08d1b26659767038b3e2fba6c20c45bbe3a441fa3f024b188234055a3a402f99.json deleted file mode 100644 index 7c47ebf4..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/08d1b26659767038b3e2fba6c20c45bbe3a441fa3f024b188234055a3a402f99.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import { useState } from 'react';\n\n/**\n * A convenience hook around `useState` designed to be paired with\n * the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.\n * Callback refs are useful over `useRef()` when you need to respond to the ref being set\n * instead of lazily accessing it in an effect.\n *\n * ```ts\n * const [element, attachRef] = useCallbackRef()\n *\n * useEffect(() => {\n * if (!element) return\n *\n * const calendar = new FullCalendar.Calendar(element)\n *\n * return () => {\n * calendar.destroy()\n * }\n * }, [element])\n *\n * return
\n * ```\n *\n * @category refs\n */\nexport default function useCallbackRef() {\n return useState(null);\n}","map":{"version":3,"names":["useState","useCallbackRef"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/hooks/esm/useCallbackRef.js"],"sourcesContent":["import { useState } from 'react';\n\n/**\n * A convenience hook around `useState` designed to be paired with\n * the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.\n * Callback refs are useful over `useRef()` when you need to respond to the ref being set\n * instead of lazily accessing it in an effect.\n *\n * ```ts\n * const [element, attachRef] = useCallbackRef()\n *\n * useEffect(() => {\n * if (!element) return\n *\n * const calendar = new FullCalendar.Calendar(element)\n *\n * return () => {\n * calendar.destroy()\n * }\n * }, [element])\n *\n * return
\n * ```\n *\n * @category refs\n */\nexport default function useCallbackRef() {\n return useState(null);\n}"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,OAAO;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,cAAcA,CAAA,EAAG;EACvC,OAAOD,QAAQ,CAAC,IAAI,CAAC;AACvB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/08dbcb8662ec24df32323c27deb3101cfc4c568d95e4cf35fb0f17cb51be936e.json b/trivia-forge/node_modules/.cache/babel-loader/08dbcb8662ec24df32323c27deb3101cfc4c568d95e4cf35fb0f17cb51be936e.json deleted file mode 100644 index 457535ac..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/08dbcb8662ec24df32323c27deb3101cfc4c568d95e4cf35fb0f17cb51be936e.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nconst context = /*#__PURE__*/React.createContext({\n eventKey: ''\n});\ncontext.displayName = 'AccordionItemContext';\nexport default context;","map":{"version":3,"names":["React","context","createContext","eventKey","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/AccordionItemContext.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nconst context = /*#__PURE__*/React.createContext({\n eventKey: ''\n});\ncontext.displayName = 'AccordionItemContext';\nexport default context;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,MAAMC,OAAO,GAAG,aAAaD,KAAK,CAACE,aAAa,CAAC;EAC/CC,QAAQ,EAAE;AACZ,CAAC,CAAC;AACFF,OAAO,CAACG,WAAW,GAAG,sBAAsB;AAC5C,eAAeH,OAAO","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0934c0ea0b7b749874633ec0d2afca3cc03e5fc9dcd2e223f9fde8efb24a71c6.json b/trivia-forge/node_modules/.cache/babel-loader/0934c0ea0b7b749874633ec0d2afca3cc03e5fc9dcd2e223f9fde8efb24a71c6.json deleted file mode 100644 index 8581ff0f..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0934c0ea0b7b749874633ec0d2afca3cc03e5fc9dcd2e223f9fde8efb24a71c6.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst Badge = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n bsPrefix,\n bg = 'primary',\n pill = false,\n text,\n className,\n as: Component = 'span',\n ...props\n } = _ref;\n const prefix = useBootstrapPrefix(bsPrefix, 'badge');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n ...props,\n className: classNames(className, prefix, pill && \"rounded-pill\", text && \"text-\".concat(text), bg && \"bg-\".concat(bg))\n });\n});\nBadge.displayName = 'Badge';\nexport default Badge;","map":{"version":3,"names":["classNames","React","useBootstrapPrefix","jsx","_jsx","Badge","forwardRef","_ref","ref","bsPrefix","bg","pill","text","className","as","Component","props","prefix","concat","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/Badge.js"],"sourcesContent":["\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst Badge = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n bg = 'primary',\n pill = false,\n text,\n className,\n as: Component = 'span',\n ...props\n}, ref) => {\n const prefix = useBootstrapPrefix(bsPrefix, 'badge');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n ...props,\n className: classNames(className, prefix, pill && `rounded-pill`, text && `text-${text}`, bg && `bg-${bg}`)\n });\n});\nBadge.displayName = 'Badge';\nexport default Badge;"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,KAAK,GAAG,aAAaJ,KAAK,CAACK,UAAU,CAAC,CAAAC,IAAA,EAQzCC,GAAG,KAAK;EAAA,IARkC;IAC3CC,QAAQ;IACRC,EAAE,GAAG,SAAS;IACdC,IAAI,GAAG,KAAK;IACZC,IAAI;IACJC,SAAS;IACTC,EAAE,EAAEC,SAAS,GAAG,MAAM;IACtB,GAAGC;EACL,CAAC,GAAAT,IAAA;EACC,MAAMU,MAAM,GAAGf,kBAAkB,CAACO,QAAQ,EAAE,OAAO,CAAC;EACpD,OAAO,aAAaL,IAAI,CAACW,SAAS,EAAE;IAClCP,GAAG,EAAEA,GAAG;IACR,GAAGQ,KAAK;IACRH,SAAS,EAAEb,UAAU,CAACa,SAAS,EAAEI,MAAM,EAAEN,IAAI,kBAAkB,EAAEC,IAAI,YAAAM,MAAA,CAAYN,IAAI,CAAE,EAAEF,EAAE,UAAAQ,MAAA,CAAUR,EAAE,CAAE;EAC3G,CAAC,CAAC;AACJ,CAAC,CAAC;AACFL,KAAK,CAACc,WAAW,GAAG,OAAO;AAC3B,eAAed,KAAK","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/093944e2ef033ee21480857d79713546626a3aa8fdef429e099e254cf9483655.json b/trivia-forge/node_modules/.cache/babel-loader/093944e2ef033ee21480857d79713546626a3aa8fdef429e099e254cf9483655.json deleted file mode 100644 index bbef0f98..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/093944e2ef033ee21480857d79713546626a3aa8fdef429e099e254cf9483655.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n value: numberOfQuestions,\n onChange: e => setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10)))),\n min: \"1\",\n max: \"10\",\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Number of Questions\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaCategory\",\n children: \"Category:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n value: category,\n className: \"form-control\",\n id: \"triviaCategory\",\n placeholder: \"Category\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"hg16lLzJerCd9XnW4Ja5h3Su2Cs=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","jsxDEV","_jsxDEV","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","console","log","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","value","onChange","e","Math","min","max","parseInt","target","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10))))}\n min=\"1\"\n max=\"10\"\n className=\"form-control\" \n id=\"triviaTitle\" \n placeholder=\"Number of Questions\" \n />\n
\n
\n \n \n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAExC,SAASC,aAAaA,CAAA,EAAG;EAAAC,EAAA;EACrB,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGN,QAAQ,CAAC,CAAC,CAAC;EAC7D,MAAM,CAACO,QAAQ,EAAEC,WAAW,CAAC,GAAGR,QAAQ,CAAC,EAAE,CAAC;EAE5C,MAAMS,YAAY,GAAG,MAAOC,KAAK,IAAK;IAClCA,KAAK,CAACC,cAAc,CAAC,CAAC;;IAGtB;;IAEAC,OAAO,CAACC,GAAG,CAAC;MACRR,iBAAiB;MACjBE;IACJ,CAAC,CAAC;;IAEF;EAEJ,CAAC;EAG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W,EAAE,EAAC,gBAAgB;UACnBC,WAAW,EAAC;QAAU;UAAAjB,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OACzB,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OACD,CAAC,eACNhB,OAAA;QAAKkB,SAAS,EAAC,YAAY;QAAAN,QAAA,gBACvBZ,OAAA;UAAOmB,GAAG,EAAC,cAAc;UAAAP,QAAA,EAAC;QAAW;UAAAC,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAO,CAAC,eAC7ChB,OAAA;UAAOoB,IAAI,EAAC,MAAM;UAACF,SAAS,EAAC,cAAc;UAACW,EAAE,EAAC,cAAc;UAACC,WAAW,EAAC;QAAc;UAAAjB,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAE,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAC1F,CAAC,eACNhB,OAAA;QAAQoB,IAAI,EAAC,QAAQ;QAACF,SAAS,EAAC,iBAAiB;QAAAN,QAAA,EAAC;MAAM;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAC/D,CAAC;EAAA;IAAAH,QAAA,EAAAC,YAAA;IAAAC,UAAA;IAAAC,YAAA;EAAA,OAEN,CAAC;AAGd;AAACd,EAAA,CA5DQD,aAAa;AAAA8B,EAAA,GAAb9B,aAAa;AA6DtB,eAAeA,aAAa;AAAC,IAAA8B,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/095c0ff75666aff2aad624340234ca05a542ece47ce51f128324d355cad656a4.json b/trivia-forge/node_modules/.cache/babel-loader/095c0ff75666aff2aad624340234ca05a542ece47ce51f128324d355cad656a4.json deleted file mode 100644 index cf01dcf5..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/095c0ff75666aff2aad624340234ca05a542ece47ce51f128324d355cad656a4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n value: numberOfQuestions,\n onChange: e => setNumberOfQuestions(Math.min(10)),\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaQuestion\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaQuestion\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"hg16lLzJerCd9XnW4Ja5h3Su2Cs=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","jsxDEV","_jsxDEV","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","console","log","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","value","onChange","e","Math","min","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n setNumberOfQuestions(Math.min(10, ))}\n className=\"form-control\" \n id=\"triviaTitle\" \n placeholder=\"Place holder\" \n />\n
\n
\n \n \n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAExC,SAASC,aAAaA,CAAA,EAAG;EAAAC,EAAA;EACrB,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGN,QAAQ,CAAC,CAAC,CAAC;EAC7D,MAAM,CAACO,QAAQ,EAAEC,WAAW,CAAC,GAAGR,QAAQ,CAAC,EAAE,CAAC;EAE5C,MAAMS,YAAY,GAAG,MAAOC,KAAK,IAAK;IAClCA,KAAK,CAACC,cAAc,CAAC,CAAC;;IAGtB;;IAEAC,OAAO,CAACC,GAAG,CAAC;MACRR,iBAAiB;MACjBE;IACJ,CAAC,CAAC;;IAEF;EAEJ,CAAC;EAGD,oBACIL,OAAA;IAAAY,QAAA,gBACIZ,OAAA;MAAAY,QAAA,EAAI;IAEJ;MAAAC,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAAI,CAAC,eACLhB,OAAA;MAAMiB,QAAQ,EAAEV,YAAa;MAAAK,QAAA,gBACzBZ,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B,OAAA;UAAOoB,IAAI,EAAC,MAAM;UAACF,SAAS,EAAC,cAAc;UAACQ,EAAE,EAAC,cAAc;UAACC,WAAW,EAAC;QAAc;UAAAd,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAE,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAC1F,CAAC,eACNhB,OAAA;QAAQoB,IAAI,EAAC,QAAQ;QAACF,SAAS,EAAC,iBAAiB;QAAAN,QAAA,EAAC;MAAM;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAC/D,CAAC;EAAA;IAAAH,QAAA,EAAAC,YAAA;IAAAC,UAAA;IAAAC,YAAA;EAAA,OAEN,CAAC;AAGd;AAACd,EAAA,CAnDQD,aAAa;AAAA2B,EAAA,GAAb3B,aAAa;AAoDtB,eAAeA,aAAa;AAAC,IAAA2B,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/09f403c423bfcd68fdc455c45daf2b40410c678c8faf101a91769d7de60b7e6f.json b/trivia-forge/node_modules/.cache/babel-loader/09f403c423bfcd68fdc455c45daf2b40410c678c8faf101a91769d7de60b7e6f.json deleted file mode 100644 index 1c7b1d5e..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/09f403c423bfcd68fdc455c45daf2b40410c678c8faf101a91769d7de60b7e6f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\n\n// TODO\n\nconst FormContext = /*#__PURE__*/React.createContext({});\nexport default FormContext;","map":{"version":3,"names":["React","FormContext","createContext"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/FormContext.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\n\n// TODO\n\nconst FormContext = /*#__PURE__*/React.createContext({});\nexport default FormContext;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;;AAE9B;;AAEA,MAAMC,WAAW,GAAG,aAAaD,KAAK,CAACE,aAAa,CAAC,CAAC,CAAC,CAAC;AACxD,eAAeD,WAAW","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0a642fdb0d6970b3831289908e141982ee1760a890e73f21769ca3d3d248a7a5.json b/trivia-forge/node_modules/.cache/babel-loader/0a642fdb0d6970b3831289908e141982ee1760a890e73f21769ca3d3d248a7a5.json deleted file mode 100644 index 1c33c156..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0a642fdb0d6970b3831289908e141982ee1760a890e73f21769ca3d3d248a7a5.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormFloating = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n className,\n bsPrefix,\n as: Component = 'div',\n ...props\n } = _ref;\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-floating');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nFormFloating.displayName = 'FormFloating';\nexport default FormFloating;","map":{"version":3,"names":["React","classNames","useBootstrapPrefix","jsx","_jsx","FormFloating","forwardRef","_ref","ref","className","bsPrefix","as","Component","props","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/FormFloating.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormFloating = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'div',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-floating');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nFormFloating.displayName = 'FormFloating';\nexport default FormFloating;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,YAAY,GAAG,aAAaL,KAAK,CAACM,UAAU,CAAC,CAAAC,IAAA,EAKhDC,GAAG,KAAK;EAAA,IALyC;IAClDC,SAAS;IACTC,QAAQ;IACRC,EAAE,EAAEC,SAAS,GAAG,KAAK;IACrB,GAAGC;EACL,CAAC,GAAAN,IAAA;EACCG,QAAQ,GAAGR,kBAAkB,CAACQ,QAAQ,EAAE,eAAe,CAAC;EACxD,OAAO,aAAaN,IAAI,CAACQ,SAAS,EAAE;IAClCJ,GAAG,EAAEA,GAAG;IACRC,SAAS,EAAER,UAAU,CAACQ,SAAS,EAAEC,QAAQ,CAAC;IAC1C,GAAGG;EACL,CAAC,CAAC;AACJ,CAAC,CAAC;AACFR,YAAY,CAACS,WAAW,GAAG,cAAc;AACzC,eAAeT,YAAY","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0b07307418b6a9af8c0c2ff780d8c6d29fab6141b12fecd596d43d9f7fd86655.json b/trivia-forge/node_modules/.cache/babel-loader/0b07307418b6a9af8c0c2ff780d8c6d29fab6141b12fecd596d43d9f7fd86655.json deleted file mode 100644 index 4f9bca89..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0b07307418b6a9af8c0c2ff780d8c6d29fab6141b12fecd596d43d9f7fd86655.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n value: numberOfQuestions,\n onChange: e => setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10)))),\n min: \"1\",\n max: \"10\",\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaCategory\",\n children: \"Category:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"trivia\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 50,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"hg16lLzJerCd9XnW4Ja5h3Su2Cs=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","jsxDEV","_jsxDEV","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","console","log","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","value","onChange","e","Math","min","max","parseInt","target","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10))))}\n min=\"1\"\n max=\"10\"\n className=\"form-control\" \n id=\"triviaTitle\" \n placeholder=\"Place holder\" \n />\n
\n
\n \n \n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAExC,SAASC,aAAaA,CAAA,EAAG;EAAAC,EAAA;EACrB,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGN,QAAQ,CAAC,CAAC,CAAC;EAC7D,MAAM,CAACO,QAAQ,EAAEC,WAAW,CAAC,GAAGR,QAAQ,CAAC,EAAE,CAAC;EAE5C,MAAMS,YAAY,GAAG,MAAOC,KAAK,IAAK;IAClCA,KAAK,CAACC,cAAc,CAAC,CAAC;;IAGtB;;IAEAC,OAAO,CAACC,GAAG,CAAC;MACRR,iBAAiB;MACjBE;IACJ,CAAC,CAAC;;IAEF;EAEJ,CAAC;EAGD,oBACIL,OAAA;IAAAY,QAAA,gBACIZ,OAAA;MAAAY,QAAA,EAAI;IAEJ;MAAAC,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAAI,CAAC,eACLhB,OAAA;MAAMiB,QAAQ,EAAEV,YAAa;MAAAK,QAAA,gBACzBZ,OAAA;QAAKkB,SAAS,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,OAAA;UAAOmB,GAAG,EAAC,cAAc;UAAAP,QAAA,EAAC;QAAW;UAAAC,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAO,CAAC,eAC7ChB,OAAA;UAAOoB,IAAI,EAAC,MAAM;UAACF,SAAS,EAAC,cAAc;UAACW,EAAE,EAAC,cAAc;UAACC,WAAW,EAAC;QAAc;UAAAjB,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAE,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAC1F,CAAC,eACNhB,OAAA;QAAQoB,IAAI,EAAC,QAAQ;QAACF,SAAS,EAAC,iBAAiB;QAAAN,QAAA,EAAC;MAAM;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAC/D,CAAC;EAAA;IAAAH,QAAA,EAAAC,YAAA;IAAAC,UAAA;IAAAC,YAAA;EAAA,OAEN,CAAC;AAGd;AAACd,EAAA,CArDQD,aAAa;AAAA8B,EAAA,GAAb9B,aAAa;AAsDtB,eAAeA,aAAa;AAAC,IAAA8B,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0b0a1dc349ee99d7a7f19505324f1839ab0620957895631d6c6189beed1d4e38.json b/trivia-forge/node_modules/.cache/babel-loader/0b0a1dc349ee99d7a7f19505324f1839ab0620957895631d6c6189beed1d4e38.json deleted file mode 100644 index 9c292065..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0b0a1dc349ee99d7a7f19505324f1839ab0620957895631d6c6189beed1d4e38.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"const _excluded = [\"onKeyDown\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\n/* eslint-disable jsx-a11y/no-static-element-interactions */\n/* eslint-disable jsx-a11y/anchor-has-content */\n\nimport * as React from 'react';\nimport { useEventCallback } from '@restart/hooks';\nimport { useButtonProps } from './Button';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function isTrivialHref(href) {\n return !href || href.trim() === '#';\n}\n/**\n * An generic `` component that covers a few A11y cases, ensuring that\n * cases where the `href` is missing or trivial like \"#\" are treated like buttons.\n */\nconst Anchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n onKeyDown\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n const [buttonProps] = useButtonProps(Object.assign({\n tagName: 'a'\n }, props));\n const handleKeyDown = useEventCallback(e => {\n buttonProps.onKeyDown(e);\n onKeyDown == null ? void 0 : onKeyDown(e);\n });\n if (isTrivialHref(props.href) || props.role === 'button') {\n return /*#__PURE__*/_jsx(\"a\", Object.assign({\n ref: ref\n }, props, buttonProps, {\n onKeyDown: handleKeyDown\n }));\n }\n return /*#__PURE__*/_jsx(\"a\", Object.assign({\n ref: ref\n }, props, {\n onKeyDown: onKeyDown\n }));\n});\nAnchor.displayName = 'Anchor';\nexport default Anchor;","map":{"version":3,"names":["_excluded","_objectWithoutPropertiesLoose","source","excluded","target","sourceKeys","Object","keys","key","i","length","indexOf","React","useEventCallback","useButtonProps","jsx","_jsx","isTrivialHref","href","trim","Anchor","forwardRef","_ref","ref","onKeyDown","props","buttonProps","assign","tagName","handleKeyDown","e","role","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/ui/esm/Anchor.js"],"sourcesContent":["const _excluded = [\"onKeyDown\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n/* eslint-disable jsx-a11y/no-static-element-interactions */\n/* eslint-disable jsx-a11y/anchor-has-content */\n\nimport * as React from 'react';\nimport { useEventCallback } from '@restart/hooks';\nimport { useButtonProps } from './Button';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function isTrivialHref(href) {\n return !href || href.trim() === '#';\n}\n/**\n * An generic `` component that covers a few A11y cases, ensuring that\n * cases where the `href` is missing or trivial like \"#\" are treated like buttons.\n */\nconst Anchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n onKeyDown\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n const [buttonProps] = useButtonProps(Object.assign({\n tagName: 'a'\n }, props));\n const handleKeyDown = useEventCallback(e => {\n buttonProps.onKeyDown(e);\n onKeyDown == null ? void 0 : onKeyDown(e);\n });\n if (isTrivialHref(props.href) || props.role === 'button') {\n return /*#__PURE__*/_jsx(\"a\", Object.assign({\n ref: ref\n }, props, buttonProps, {\n onKeyDown: handleKeyDown\n }));\n }\n return /*#__PURE__*/_jsx(\"a\", Object.assign({\n ref: ref\n }, props, {\n onKeyDown: onKeyDown\n }));\n});\nAnchor.displayName = 'Anchor';\nexport default Anchor;"],"mappings":"AAAA,MAAMA,SAAS,GAAG,CAAC,WAAW,CAAC;AAC/B,SAASC,6BAA6BA,CAACC,MAAM,EAAEC,QAAQ,EAAE;EAAE,IAAID,MAAM,IAAI,IAAI,EAAE,OAAO,CAAC,CAAC;EAAE,IAAIE,MAAM,GAAG,CAAC,CAAC;EAAE,IAAIC,UAAU,GAAGC,MAAM,CAACC,IAAI,CAACL,MAAM,CAAC;EAAE,IAAIM,GAAG,EAAEC,CAAC;EAAE,KAAKA,CAAC,GAAG,CAAC,EAAEA,CAAC,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,CAACqB,MAAM,CAAC;MAC1CJ,GAAG,EAAEA;IACP,CAAC,EAAEE,KAAK,EAAEC,WAAW,EAAE;MACrBF,SAAS,EAAEK;IACb,CAAC,CAAC,CAAC;EACL;EACA,OAAO,aAAab,IAAI,CAAC,GAAG,EAAEV,MAAM,CAACqB,MAAM,CAAC;IAC1CJ,GAAG,EAAEA;EACP,CAAC,EAAEE,KAAK,EAAE;IACRD,SAAS,EAAEA;EACb,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AACFJ,MAAM,CAACY,WAAW,GAAG,QAAQ;AAC7B,eAAeZ,MAAM","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0b3fbb995840ea85d457c91dad55109d93f03e13b99f36d20b7cc186567896b7.json b/trivia-forge/node_modules/.cache/babel-loader/0b3fbb995840ea85d457c91dad55109d93f03e13b99f36d20b7cc186567896b7.json deleted file mode 100644 index 48a9f4ab..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0b3fbb995840ea85d457c91dad55109d93f03e13b99f36d20b7cc186567896b7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n value: numberOfQuestions,\n onChange: e => setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e)))),\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaQuestion\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaQuestion\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"hg16lLzJerCd9XnW4Ja5h3Su2Cs=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","jsxDEV","_jsxDEV","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","console","log","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","value","onChange","e","Math","min","max","parseInt","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e))))}\n className=\"form-control\" \n id=\"triviaTitle\" \n placeholder=\"Place holder\" \n />\n
\n
\n \n \n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAExC,SAASC,aAAaA,CAAA,EAAG;EAA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A,CAnDQD,aAAa;AAAA6B,EAAA,GAAb7B,aAAa;AAoDtB,eAAeA,aAAa;AAAC,IAAA6B,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0b3fc9c96f093e8887e97ec16f911943ec0d0960752fa0c82ac2c2414e24ffba.json b/trivia-forge/node_modules/.cache/babel-loader/0b3fc9c96f093e8887e97ec16f911943ec0d0960752fa0c82ac2c2414e24ffba.json deleted file mode 100644 index 720a5994..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0b3fc9c96f093e8887e97ec16f911943ec0d0960752fa0c82ac2c2414e24ffba.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use strict\";\n\nvar __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar named_references_1 = require(\"./named-references\");\nvar numeric_unicode_map_1 = require(\"./numeric-unicode-map\");\nvar surrogate_pairs_1 = require(\"./surrogate-pairs\");\nvar allNamedReferences = __assign(__assign({}, named_references_1.namedReferences), {\n all: named_references_1.namedReferences.html5\n});\nfunction replaceUsingRegExp(macroText, macroRegExp, macroReplacer) {\n macroRegExp.lastIndex = 0;\n var replaceMatch = macroRegExp.exec(macroText);\n var replaceResult;\n if (replaceMatch) {\n replaceResult = \"\";\n var replaceLastIndex = 0;\n do {\n if (replaceLastIndex !== replaceMatch.index) {\n replaceResult += macroText.substring(replaceLastIndex, replaceMatch.index);\n }\n var replaceInput = replaceMatch[0];\n replaceResult += macroReplacer(replaceInput);\n replaceLastIndex = replaceMatch.index + replaceInput.length;\n } while (replaceMatch = macroRegExp.exec(macroText));\n if (replaceLastIndex !== macroText.length) {\n replaceResult += macroText.substring(replaceLastIndex);\n }\n } else {\n replaceResult = macroText;\n }\n return replaceResult;\n}\nvar encodeRegExps = {\n specialChars: /[<>'\"&]/g,\n nonAscii: /[<>'\"&\\u0080-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/g,\n nonAsciiPrintable: /[<>'\"&\\x01-\\x08\\x11-\\x15\\x17-\\x1F\\x7f-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/g,\n nonAsciiPrintableOnly: /[\\x01-\\x08\\x11-\\x15\\x17-\\x1F\\x7f-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/g,\n extensive: /[\\x01-\\x0c\\x0e-\\x1f\\x21-\\x2c\\x2e-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7d\\x7f-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/g\n};\nvar defaultEncodeOptions = {\n mode: \"specialChars\",\n level: \"all\",\n numeric: \"decimal\"\n};\nfunction encode(text, _a) {\n var _b = _a === void 0 ? defaultEncodeOptions : _a,\n _c = _b.mode,\n mode = _c === void 0 ? \"specialChars\" : _c,\n _d = _b.numeric,\n numeric = _d === void 0 ? \"decimal\" : _d,\n _e = _b.level,\n level = _e === void 0 ? \"all\" : _e;\n if (!text) {\n return \"\";\n }\n var encodeRegExp = encodeRegExps[mode];\n var references = allNamedReferences[level].characters;\n var isHex = numeric === \"hexadecimal\";\n return replaceUsingRegExp(text, encodeRegExp, function (input) {\n var result = references[input];\n if (!result) {\n var code = input.length > 1 ? surrogate_pairs_1.getCodePoint(input, 0) : input.charCodeAt(0);\n result = (isHex ? \"&#x\" + code.toString(16) : \"&#\" + code) + \";\";\n }\n return result;\n });\n}\nexports.encode = encode;\nvar defaultDecodeOptions = {\n scope: \"body\",\n level: \"all\"\n};\nvar strict = /&(?:#\\d+|#[xX][\\da-fA-F]+|[0-9a-zA-Z]+);/g;\nvar attribute = /&(?:#\\d+|#[xX][\\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g;\nvar baseDecodeRegExps = {\n xml: {\n strict: strict,\n attribute: attribute,\n body: named_references_1.bodyRegExps.xml\n },\n html4: {\n strict: strict,\n attribute: attribute,\n body: named_references_1.bodyRegExps.html4\n },\n html5: {\n strict: strict,\n attribute: attribute,\n body: named_references_1.bodyRegExps.html5\n }\n};\nvar decodeRegExps = __assign(__assign({}, baseDecodeRegExps), {\n all: baseDecodeRegExps.html5\n});\nvar fromCharCode = String.fromCharCode;\nvar outOfBoundsChar = fromCharCode(65533);\nvar defaultDecodeEntityOptions = {\n level: \"all\"\n};\nfunction getDecodedEntity(entity, references, isAttribute, isStrict) {\n var decodeResult = entity;\n var decodeEntityLastChar = entity[entity.length - 1];\n if (isAttribute && decodeEntityLastChar === \"=\") {\n decodeResult = entity;\n } else if (isStrict && decodeEntityLastChar !== \";\") {\n decodeResult = entity;\n } else {\n var decodeResultByReference = references[entity];\n if (decodeResultByReference) {\n decodeResult = decodeResultByReference;\n } else if (entity[0] === \"&\" && entity[1] === \"#\") {\n var decodeSecondChar = entity[2];\n var decodeCode = decodeSecondChar == \"x\" || decodeSecondChar == \"X\" ? parseInt(entity.substr(3), 16) : parseInt(entity.substr(2));\n decodeResult = decodeCode >= 1114111 ? outOfBoundsChar : decodeCode > 65535 ? surrogate_pairs_1.fromCodePoint(decodeCode) : fromCharCode(numeric_unicode_map_1.numericUnicodeMap[decodeCode] || decodeCode);\n }\n }\n return decodeResult;\n}\nfunction decodeEntity(entity, _a) {\n var _b = (_a === void 0 ? defaultDecodeEntityOptions : _a).level,\n level = _b === void 0 ? \"all\" : _b;\n if (!entity) {\n return \"\";\n }\n return getDecodedEntity(entity, allNamedReferences[level].entities, false, false);\n}\nexports.decodeEntity = decodeEntity;\nfunction decode(text, _a) {\n var _b = _a === void 0 ? defaultDecodeOptions : _a,\n _c = _b.level,\n level = _c === void 0 ? \"all\" : _c,\n _d = _b.scope,\n scope = _d === void 0 ? level === \"xml\" ? \"strict\" : \"body\" : _d;\n if (!text) {\n return \"\";\n }\n var decodeRegExp = decodeRegExps[level][scope];\n var references = allNamedReferences[level].entities;\n var isAttribute = scope === \"attribute\";\n var isStrict = scope === \"strict\";\n return replaceUsingRegExp(text, decodeRegExp, function (entity) {\n return getDecodedEntity(entity, references, isAttribute, isStrict);\n });\n}\nexports.decode = decode;","map":{"version":3,"names":["named_references_1","require","numeric_unicode_map_1","surrogate_pairs_1","allNamedReferences","__assign","namedReferences","all","html5","replaceUsingRegExp","macroText","macroRegExp","macroReplacer","lastIndex","replaceMatch","exec","replaceResult","replaceLastIndex","index","substring","replaceInput","length","encodeRegExps","specialChars","nonAscii","nonAsciiPrintable","nonAsciiPrintableOnly","extensive","defaultEncodeOptions","mode","level","numeric","encode","text","_a","_b","_c","_d","_e","encodeRegExp","references","characters","isHex","input","result","code","getCodePoint","charCodeAt","toString","exports","defaultDecodeOptions","scope","strict","attribute","baseDecodeRegExps","xml","body","bodyRegExps","html4","decodeRegExps","fromCharCode","String","outOfBoundsChar","defaultDecodeEntityOptions","getDecodedEntity","entity","isAttribute","isStrict","decodeResult","decodeEntityLastChar","decodeResultByReference","decodeSecondChar","decodeCode","parseInt","substr","fromCodePoint","numericUnicodeMap","decodeEntity","entities","decode","decodeRegExp"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/html-entities/src/index.ts"],"sourcesContent":["import {bodyRegExps, namedReferences} from './named-references';\nimport {numericUnicodeMap} from './numeric-unicode-map';\nimport {fromCodePoint, getCodePoint} from './surrogate-pairs';\n\nconst allNamedReferences = {\n ...namedReferences,\n all: namedReferences.html5\n};\n\nfunction replaceUsingRegExp(macroText: string, macroRegExp: RegExp, macroReplacer: (input: string) => string): string {\n macroRegExp.lastIndex = 0;\n let replaceMatch = macroRegExp.exec(macroText);\n let replaceResult;\n if (replaceMatch) {\n replaceResult = '';\n let replaceLastIndex = 0;\n do {\n if (replaceLastIndex !== replaceMatch.index) {\n replaceResult += macroText.substring(replaceLastIndex, replaceMatch.index);\n }\n const replaceInput = replaceMatch[0];\n replaceResult += macroReplacer(replaceInput);\n replaceLastIndex = replaceMatch.index + replaceInput.length;\n } while ((replaceMatch = macroRegExp.exec(macroText)));\n\n if (replaceLastIndex !== macroText.length) {\n replaceResult += macroText.substring(replaceLastIndex);\n }\n } else {\n replaceResult = macroText;\n }\n return replaceResult;\n}\n\nexport type Level = 'xml' | 'html4' | 'html5' | 'all';\n\ninterface CommonOptions {\n level?: Level;\n}\n\nexport type EncodeMode = 'specialChars' | 'nonAscii' | 'nonAsciiPrintable' | 'nonAsciiPrintableOnly' | 'extensive';\n\nexport interface EncodeOptions extends CommonOptions {\n mode?: EncodeMode;\n numeric?: 'decimal' | 'hexadecimal';\n}\n\nexport type DecodeScope = 'strict' | 'body' | 'attribute';\n\nexport interface DecodeOptions extends CommonOptions {\n scope?: DecodeScope;\n}\n\nconst encodeRegExps: Record = {\n specialChars: /[<>'\"&]/g,\n nonAscii: /[<>'\"&\\u0080-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/g,\n nonAsciiPrintable: /[<>'\"&\\x01-\\x08\\x11-\\x15\\x17-\\x1F\\x7f-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/g,\n nonAsciiPrintableOnly: /[\\x01-\\x08\\x11-\\x15\\x17-\\x1F\\x7f-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/g,\n extensive: /[\\x01-\\x0c\\x0e-\\x1f\\x21-\\x2c\\x2e-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7d\\x7f-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/g\n};\n\nconst defaultEncodeOptions: EncodeOptions = {\n mode: 'specialChars',\n level: 'all',\n numeric: 'decimal'\n};\n\n/** Encodes all the necessary (specified by `level`) characters in the text */\nexport function encode(\n text: string | undefined | null,\n {mode = 'specialChars', numeric = 'decimal', level = 'all'}: EncodeOptions = defaultEncodeOptions\n) {\n if (!text) {\n return '';\n }\n\n const encodeRegExp = encodeRegExps[mode];\n const references = allNamedReferences[level].characters;\n const isHex = numeric === 'hexadecimal';\n\n return replaceUsingRegExp(text, encodeRegExp, (input) => {\n let result = references[input];\n if (!result) {\n const code = input.length > 1 ? getCodePoint(input, 0)! : input.charCodeAt(0);\n result = (isHex ? '&#x' + code.toString(16) : '&#' + code) + ';';\n }\n return result;\n });\n}\n\nconst defaultDecodeOptions: DecodeOptions = {\n scope: 'body',\n level: 'all'\n};\n\nconst strict = /&(?:#\\d+|#[xX][\\da-fA-F]+|[0-9a-zA-Z]+);/g;\nconst attribute = /&(?:#\\d+|#[xX][\\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g;\n\nconst baseDecodeRegExps: Record, Record> = {\n xml: {\n strict,\n attribute,\n body: bodyRegExps.xml\n },\n html4: {\n strict,\n attribute,\n body: bodyRegExps.html4\n },\n html5: {\n strict,\n attribute,\n body: bodyRegExps.html5\n }\n};\n\nconst decodeRegExps: Record> = {\n ...baseDecodeRegExps,\n all: baseDecodeRegExps.html5\n};\n\nconst fromCharCode = String.fromCharCode;\nconst outOfBoundsChar = fromCharCode(65533);\n\nconst defaultDecodeEntityOptions: CommonOptions = {\n level: 'all'\n};\n\nfunction getDecodedEntity(\n entity: string,\n references: Record,\n isAttribute: boolean,\n isStrict: boolean\n): string {\n let decodeResult = entity;\n const decodeEntityLastChar = entity[entity.length - 1];\n if (isAttribute && decodeEntityLastChar === '=') {\n decodeResult = entity;\n } else if (isStrict && decodeEntityLastChar !== ';') {\n decodeResult = entity;\n } else {\n const decodeResultByReference = references[entity];\n if (decodeResultByReference) {\n decodeResult = decodeResultByReference;\n } else if (entity[0] === '&' && entity[1] === '#') {\n const decodeSecondChar = entity[2];\n const decodeCode =\n decodeSecondChar == 'x' || decodeSecondChar == 'X'\n ? parseInt(entity.substr(3), 16)\n : parseInt(entity.substr(2));\n\n decodeResult =\n decodeCode >= 0x10ffff\n ? outOfBoundsChar\n : decodeCode > 65535\n ? fromCodePoint(decodeCode)\n : fromCharCode(numericUnicodeMap[decodeCode] || decodeCode);\n }\n }\n return decodeResult;\n}\n\n/** Decodes a single entity */\nexport function decodeEntity(\n entity: string | undefined | null,\n {level = 'all'}: CommonOptions = defaultDecodeEntityOptions\n): string {\n if (!entity) {\n return '';\n }\n return getDecodedEntity(entity, allNamedReferences[level].entities, false, false);\n}\n\n/** Decodes all entities in the text */\nexport function decode(\n text: string | undefined | null,\n {level = 'all', scope = level === 'xml' ? 'strict' : 'body'}: DecodeOptions = defaultDecodeOptions\n) {\n if (!text) {\n return '';\n }\n\n const decodeRegExp = decodeRegExps[level][scope];\n const references = allNamedReferences[level].entities;\n const isAttribute = scope === 'attribute';\n const isStrict = scope === 'strict';\n\n return replaceUsingRegExp(text, decodeRegExp, (entity) =>\n getDecodedEntity(entity, references, isAttribute, isStrict)\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAEA,IAAMG,kBAAA,GAAkBC,QAAA,CAAAA,QAAA,KACjBL,kBAAA,CAAAM,eAAA,GAAe;EAClBC,GAAA,EAAKP,kBAAA,CAAAM,eAAA,CAAgBE;AAAA;AAGzB,SAASC,mBAAmBC,SAAA,EAAmBC,WAAA,EAAqBC,aAAA;EAChED,WAAA,CAAYE,SAAA,GAAY;EACxB,IAAIC,YAAA,GAAeH,WAAA,CAAYI,IAAA,CAAKL,SAAA;EACpC,IAAIM,aAAA;EACJ,IAAIF,YAAA,EAAc;IACdE,aAAA,GAAgB;IAChB,IAAIC,gBAAA,GAAmB;IACvB,GAAG;MACC,IAAIA,gBAAA,KAAqBH,YAAA,CAAaI,KAAA,EAAO;QACzCF,aAAA,IAAiBN,SAAA,CAAUS,SAAA,CAAUF,gBAAA,EAAkBH,YAAA,CAAaI,KAAA,C;;MAExE,IAAME,YAAA,GAAeN,YAAA,CAAa;MAClCE,aAAA,IAAiBJ,aAAA,CAAcQ,YAAA;MAC/BH,gBAAA,GAAmBH,YAAA,CAAaI,KAAA,GAAQE,YAAA,CAAaC,M;aAC/CP,YAAA,GAAeH,WAAA,CAAYI,IAAA,CAAKL,SAAA;IAE1C,IAAIO,gBAAA,KAAqBP,SAAA,CAAUW,MAAA,EAAQ;MACvCL,aAAA,IAAiBN,SAAA,CAAUS,SAAA,CAAUF,gBAAA,C;;SAEtC;IACHD,aAAA,GAAgBN,S;;EAEpB,OAAOM,aACX;AAAA;AAqBA,IAAMM,a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9B,IAAMgB,QAAA,GAAWhB,KAAA,KAAU;EAE3B,OAAO1C,kBAAA,CAAmBwB,IAAA,EAAM+C,YAAA,EAAc,UAACf,MAAA;IAC3C,OAAAD,gBAAA,CAAiBC,MAAA,EAAQzB,UAAA,EAAY0B,WAAA,EAAaC,QAAA,CAAlD;EAAA,EAER;AAAA;AAhBAlB,OAAA,CAAA8B,MAAA,GAAAA,MAAA","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0b7d2c23fdfadf0ed9cfa047d8e2ac46e5a77335a0d40a6bdfb3ff53f3ebce8d.json b/trivia-forge/node_modules/.cache/babel-loader/0b7d2c23fdfadf0ed9cfa047d8e2ac46e5a77335a0d40a6bdfb3ff53f3ebce8d.json deleted file mode 100644 index 78975f93..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0b7d2c23fdfadf0ed9cfa047d8e2ac46e5a77335a0d40a6bdfb3ff53f3ebce8d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport divWithClassName from './divWithClassName';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DivStyledAsH5 = divWithClassName('h5');\nconst OffcanvasTitle = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n className,\n bsPrefix,\n as: Component = DivStyledAsH5,\n ...props\n } = _ref;\n bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas-title');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nOffcanvasTitle.displayName = 'OffcanvasTitle';\nexport default OffcanvasTitle;","map":{"version":3,"names":["React","classNames","divWithClassName","useBootstrapPrefix","jsx","_jsx","DivStyledAsH5","OffcanvasTitle","forwardRef","_ref","ref","className","bsPrefix","as","Component","props","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/OffcanvasTitle.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport divWithClassName from './divWithClassName';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DivStyledAsH5 = divWithClassName('h5');\nconst OffcanvasTitle = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = DivStyledAsH5,\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas-title');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nOffcanvasTitle.displayName = 'OffcanvasTitle';\nexport default OffcanvasTitle;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,aAAa,GAAGJ,gBAAgB,CAAC,IAAI,CAAC;AAC5C,MAAMK,cAAc,GAAG,aAAaP,KAAK,CAACQ,UAAU,CAAC,CAAAC,IAAA,EAKlDC,GAAG,KAAK;EAAA,IAL2C;IACpDC,SAAS;IACTC,QAAQ;IACRC,EAAE,EAAEC,SAAS,GAAGR,aAAa;IAC7B,GAAGS;EACL,CAAC,GAAAN,IAAA;EACCG,QAAQ,GAAGT,kBAAkB,CAACS,QAAQ,EAAE,iBAAiB,CAAC;EAC1D,OAAO,aAAaP,IAAI,CAACS,SAAS,EAAE;IAClCJ,GAAG,EAAEA,GAAG;IACRC,SAAS,EAAEV,UAAU,CAACU,SAAS,EAAEC,QAAQ,CAAC;IAC1C,GAAGG;EACL,CAAC,CAAC;AACJ,CAAC,CAAC;AACFR,cAAc,CAACS,WAAW,GAAG,gBAAgB;AAC7C,eAAeT,cAAc","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0b9894b508fde0b51324b71065e8691c99d5277cf55cc4f4c4ee8ed0466cef46.json b/trivia-forge/node_modules/.cache/babel-loader/0b9894b508fde0b51324b71065e8691c99d5277cf55cc4f4c4ee8ed0466cef46.json deleted file mode 100644 index fc5ee19d..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0b9894b508fde0b51324b71065e8691c99d5277cf55cc4f4c4ee8ed0466cef46.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nvar _jsxFileName = \"/Users/jquense/src/uncontrollable/src/uncontrollable.js\";\nimport React from 'react';\nimport { polyfill } from 'react-lifecycles-compat';\nimport invariant from 'invariant';\nimport * as Utils from './utils';\nexport default function uncontrollable(Component, controlledValues, methods) {\n if (methods === void 0) {\n methods = [];\n }\n var displayName = Component.displayName || Component.name || 'Component';\n var canAcceptRef = Utils.canAcceptRef(Component);\n var controlledProps = Object.keys(controlledValues);\n var PROPS_TO_OMIT = controlledProps.map(Utils.defaultKey);\n !(canAcceptRef || !methods.length) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '[uncontrollable] stateless function components cannot pass through methods ' + 'because they have no associated instances. Check component: ' + displayName + ', ' + 'attempting to pass through methods: ' + methods.join(', ')) : invariant(false) : void 0;\n var UncontrolledComponent = /*#__PURE__*/\n function (_React$Component) {\n _inheritsLoose(UncontrolledComponent, _React$Component);\n function UncontrolledComponent() {\n var _this;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.handlers = Object.create(null);\n controlledProps.forEach(function (propName) {\n var handlerName = controlledValues[propName];\n var handleChange = function handleChange(value) {\n if (_this.props[handlerName]) {\n var _this$props;\n _this._notifying = true;\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n (_this$props = _this.props)[handlerName].apply(_this$props, [value].concat(args));\n _this._notifying = false;\n }\n if (!_this.unmounted) _this.setState(function (_ref) {\n var _extends2;\n var values = _ref.values;\n return {\n values: _extends(Object.create(null), values, (_extends2 = {}, _extends2[propName] = value, _extends2))\n };\n });\n };\n _this.handlers[handlerName] = handleChange;\n });\n if (methods.length) _this.attachRef = function (ref) {\n _this.inner = ref;\n };\n var values = Object.create(null);\n controlledProps.forEach(function (key) {\n values[key] = _this.props[Utils.defaultKey(key)];\n });\n _this.state = {\n values: values,\n prevProps: {}\n };\n return _this;\n }\n var _proto = UncontrolledComponent.prototype;\n _proto.shouldComponentUpdate = function shouldComponentUpdate() {\n //let setState trigger the update\n return !this._notifying;\n };\n UncontrolledComponent.getDerivedStateFromProps = function getDerivedStateFromProps(props, _ref2) {\n var values = _ref2.values,\n prevProps = _ref2.prevProps;\n var nextState = {\n values: _extends(Object.create(null), values),\n prevProps: {}\n };\n controlledProps.forEach(function (key) {\n /**\n * If a prop switches from controlled to Uncontrolled\n * reset its value to the defaultValue\n */\n nextState.prevProps[key] = props[key];\n if (!Utils.isProp(props, key) && Utils.isProp(prevProps, key)) {\n nextState.values[key] = props[Utils.defaultKey(key)];\n }\n });\n return nextState;\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.unmounted = true;\n };\n _proto.render = function render() {\n var _this2 = this;\n var _this$props2 = this.props,\n innerRef = _this$props2.innerRef,\n props = _objectWithoutPropertiesLoose(_this$props2, [\"innerRef\"]);\n PROPS_TO_OMIT.forEach(function (prop) {\n delete props[prop];\n });\n var newProps = {};\n controlledProps.forEach(function (propName) {\n var propValue = _this2.props[propName];\n newProps[propName] = propValue !== undefined ? propValue : _this2.state.values[propName];\n });\n return React.createElement(Component, _extends({}, props, newProps, this.handlers, {\n ref: innerRef || this.attachRef\n }));\n };\n return UncontrolledComponent;\n }(React.Component);\n polyfill(UncontrolledComponent);\n UncontrolledComponent.displayName = \"Uncontrolled(\" + displayName + \")\";\n UncontrolledComponent.propTypes = _extends({\n innerRef: function innerRef() {}\n }, Utils.uncontrolledPropTypes(controlledValues, displayName));\n methods.forEach(function (method) {\n UncontrolledComponent.prototype[method] = function $proxiedMethod() {\n var _this$inner;\n return (_this$inner = this.inner)[method].apply(_this$inner, arguments);\n };\n });\n var WrappedComponent = UncontrolledComponent;\n if (React.forwardRef) {\n WrappedComponent = React.forwardRef(function (props, ref) {\n return React.createElement(UncontrolledComponent, _extends({}, props, {\n innerRef: ref,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 128\n },\n __self: this\n }));\n });\n WrappedComponent.propTypes = UncontrolledComponent.propTypes;\n }\n WrappedComponent.ControlledComponent = Component;\n /**\n * useful when wrapping a Component and you want to control\n * everything\n */\n\n WrappedComponent.deferControlTo = function (newComponent, additions, nextMethods) {\n if (additions === void 0) {\n additions = {};\n }\n return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods);\n };\n return WrappedComponent;\n}","map":{"version":3,"names":["_objectWithoutPropertiesLoose","_extends","_inheritsLoose","_jsxFileName","React","polyfill","invariant","Utils","uncontrollable","Component","controlledValues","methods","displayName","name","canAcceptRef","controlledProps","Object","keys","PROPS_TO_OMIT","map","defaultKey","length","process","env","NODE_ENV","join","UncontrolledComponent","_React$Component","_this","_len","arguments","args","Array","_key","call","apply","concat","handlers","create","forEach","propName","handlerName","handleChange","value","props","_this$props","_notifying","_len2","_key2","unmounted","setState","_ref","_extends2","values","attachRef","ref","inner","key","state","prevProps","_proto","prototype","shouldComponentUpdate","getDerivedStateFromProps","_ref2","nextState","isProp","componentWillUnmount","render","_this2","_this$props2","innerRef","prop","newProps","propValue","undefined","createElement","propTypes","uncontrolledPropTypes","method","$proxiedMethod","_this$inner","WrappedComponent","forwardRef","__source","fileName","lineNumber","__self","ControlledComponent","deferControlTo","newComponent","additions","nextMethods"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/uncontrollable/lib/esm/uncontrollable.js"],"sourcesContent":["import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nvar _jsxFileName = \"/Users/jquense/src/uncontrollable/src/uncontrollable.js\";\nimport React from 'react';\nimport { polyfill } from 'react-lifecycles-compat';\nimport invariant from 'invariant';\nimport * as Utils from './utils';\nexport default function uncontrollable(Component, controlledValues, methods) {\n if (methods === void 0) {\n methods = [];\n }\n\n var displayName = Component.displayName || Component.name || 'Component';\n var canAcceptRef = Utils.canAcceptRef(Component);\n var controlledProps = Object.keys(controlledValues);\n var PROPS_TO_OMIT = controlledProps.map(Utils.defaultKey);\n !(canAcceptRef || !methods.length) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '[uncontrollable] stateless function components cannot pass through methods ' + 'because they have no associated instances. Check component: ' + displayName + ', ' + 'attempting to pass through methods: ' + methods.join(', ')) : invariant(false) : void 0;\n\n var UncontrolledComponent =\n /*#__PURE__*/\n function (_React$Component) {\n _inheritsLoose(UncontrolledComponent, _React$Component);\n\n function UncontrolledComponent() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.handlers = Object.create(null);\n controlledProps.forEach(function (propName) {\n var handlerName = controlledValues[propName];\n\n var handleChange = function handleChange(value) {\n if (_this.props[handlerName]) {\n var _this$props;\n\n _this._notifying = true;\n\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n (_this$props = _this.props)[handlerName].apply(_this$props, [value].concat(args));\n\n _this._notifying = false;\n }\n\n if (!_this.unmounted) _this.setState(function (_ref) {\n var _extends2;\n\n var values = _ref.values;\n return {\n values: _extends(Object.create(null), values, (_extends2 = {}, _extends2[propName] = value, _extends2))\n };\n });\n };\n\n _this.handlers[handlerName] = handleChange;\n });\n if (methods.length) _this.attachRef = function (ref) {\n _this.inner = ref;\n };\n var values = Object.create(null);\n controlledProps.forEach(function (key) {\n values[key] = _this.props[Utils.defaultKey(key)];\n });\n _this.state = {\n values: values,\n prevProps: {}\n };\n return _this;\n }\n\n var _proto = UncontrolledComponent.prototype;\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate() {\n //let setState trigger the update\n return !this._notifying;\n };\n\n UncontrolledComponent.getDerivedStateFromProps = function getDerivedStateFromProps(props, _ref2) {\n var values = _ref2.values,\n prevProps = _ref2.prevProps;\n var nextState = {\n values: _extends(Object.create(null), values),\n prevProps: {}\n };\n controlledProps.forEach(function (key) {\n /**\n * If a prop switches from controlled to Uncontrolled\n * reset its value to the defaultValue\n */\n nextState.prevProps[key] = props[key];\n\n if (!Utils.isProp(props, key) && Utils.isProp(prevProps, key)) {\n nextState.values[key] = props[Utils.defaultKey(key)];\n }\n });\n return nextState;\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.unmounted = true;\n };\n\n _proto.render = function render() {\n var _this2 = this;\n\n var _this$props2 = this.props,\n innerRef = _this$props2.innerRef,\n props = _objectWithoutPropertiesLoose(_this$props2, [\"innerRef\"]);\n\n PROPS_TO_OMIT.forEach(function (prop) {\n delete props[prop];\n });\n var newProps = {};\n controlledProps.forEach(function (propName) {\n var propValue = _this2.props[propName];\n newProps[propName] = propValue !== undefined ? propValue : _this2.state.values[propName];\n });\n return React.createElement(Component, _extends({}, props, newProps, this.handlers, {\n ref: innerRef || this.attachRef\n }));\n };\n\n return UncontrolledComponent;\n }(React.Component);\n\n polyfill(UncontrolledComponent);\n UncontrolledComponent.displayName = \"Uncontrolled(\" + displayName + \")\";\n UncontrolledComponent.propTypes = _extends({\n innerRef: function innerRef() {}\n }, Utils.uncontrolledPropTypes(controlledValues, displayName));\n methods.forEach(function (method) {\n UncontrolledComponent.prototype[method] = function $proxiedMethod() {\n var _this$inner;\n\n return (_this$inner = this.inner)[method].apply(_this$inner, arguments);\n };\n });\n var WrappedComponent = UncontrolledComponent;\n\n if (React.forwardRef) {\n WrappedComponent = React.forwardRef(function (props, ref) {\n return React.createElement(UncontrolledComponent, _extends({}, props, {\n innerRef: ref,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 128\n },\n __self: this\n }));\n });\n WrappedComponent.propTypes = UncontrolledComponent.propTypes;\n }\n\n WrappedComponent.ControlledComponent = Component;\n /**\n * useful when wrapping a Component and you want to control\n * everything\n */\n\n WrappedComponent.deferControlTo = function (newComponent, additions, nextMethods) {\n if (additions === void 0) {\n additions = {};\n }\n\n return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods);\n };\n\n return WrappedComponent;\n}"],"mappings":"AAAA,OAAOA,6BAA6B,MAAM,yDAAyD;AACnG,OAAOC,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,cAAc,MAAM,0CAA0C;AACrE,IAAIC,YAAY,GAAG,yDAAyD;AAC5E,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,OAAOC,SAAS,MAAM,WAAW;AACjC,OAAO,KAAKC,KAAK,MAAM,SAAS;AAChC,eAAe,SAASC,cAAcA,CAACC,SAAS,EAAEC,gBAAgB,EAAEC,OAAO,EAAE;EAC3E,IAAIA,OAAO,KAAK,KAAK,CAAC,EAAE;IACtBA,OAAO,GAAG,EAAE;EACd;EAEA,IAAIC,WAAW,GAAGH,SAAS,CAACG,WAAW,IAAIH,SAAS,CAACI,IAAI,IAAI,WAAW;E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;IAChF,IAAID,SAAS,KAAK,KAAK,CAAC,EAAE;MACxBA,SAAS,GAAG,CAAC,CAAC;IAChB;IAEA,OAAOnF,cAAc,CAACkF,YAAY,EAAEzF,QAAQ,CAAC,CAAC,CAAC,EAAES,gBAAgB,EAAEiF,SAAS,CAAC,EAAEC,WAAW,CAAC;EAC7F,CAAC;EAED,OAAOV,gBAAgB;AACzB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0bf6bf83f51710d20cf1724a5186bb0633f9ae42820249495f3f48929e44311c.json b/trivia-forge/node_modules/.cache/babel-loader/0bf6bf83f51710d20cf1724a5186bb0633f9ae42820249495f3f48929e44311c.json deleted file mode 100644 index d9bf6138..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0bf6bf83f51710d20cf1724a5186bb0633f9ae42820249495f3f48929e44311c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nconst context = /*#__PURE__*/React.createContext(null);\ncontext.displayName = 'InputGroupContext';\nexport default context;","map":{"version":3,"names":["React","context","createContext","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/InputGroupContext.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nconst context = /*#__PURE__*/React.createContext(null);\ncontext.displayName = 'InputGroupContext';\nexport default context;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,MAAMC,OAAO,GAAG,aAAaD,KAAK,CAACE,aAAa,CAAC,IAAI,CAAC;AACtDD,OAAO,CAACE,WAAW,GAAG,mBAAmB;AACzC,eAAeF,OAAO","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0c70fd0165144bbe2c4624311362c6b75d78fd6844aa4363cb560ad0e06bb96b.json b/trivia-forge/node_modules/.cache/babel-loader/0c70fd0165144bbe2c4624311362c6b75d78fd6844aa4363cb560ad0e06bb96b.json deleted file mode 100644 index ab643967..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0c70fd0165144bbe2c4624311362c6b75d78fd6844aa4363cb560ad0e06bb96b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"/**\n * Triggers an event on a given element.\n * \n * @param node the element\n * @param eventName the event name to trigger\n * @param bubbles whether the event should bubble up\n * @param cancelable whether the event should be cancelable\n */\nexport default function triggerEvent(node, eventName, bubbles, cancelable) {\n if (bubbles === void 0) {\n bubbles = false;\n }\n if (cancelable === void 0) {\n cancelable = true;\n }\n if (node) {\n var event = document.createEvent('HTMLEvents');\n event.initEvent(eventName, bubbles, cancelable);\n node.dispatchEvent(event);\n }\n}","map":{"version":3,"names":["triggerEvent","node","eventName","bubbles","cancelable","event","document","createEvent","initEvent","dispatchEvent"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/dom-helpers/esm/triggerEvent.js"],"sourcesContent":["/**\n * Triggers an event on a given element.\n * \n * @param node the element\n * @param eventName the event name to trigger\n * @param bubbles whether the event should bubble up\n * @param cancelable whether the event should be cancelable\n */\nexport default function triggerEvent(node, eventName, bubbles, cancelable) {\n if (bubbles === void 0) {\n bubbles = false;\n }\n\n if (cancelable === void 0) {\n cancelable = true;\n }\n\n if (node) {\n var event = document.createEvent('HTMLEvents');\n event.initEvent(eventName, bubbles, cancelable);\n node.dispatchEvent(event);\n }\n}"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASA,YAAYA,CAACC,IAAI,EAAEC,SAAS,EAAEC,OAAO,EAAEC,UAAU,EAAE;EACzE,IAAID,OAAO,KAAK,KAAK,CAAC,EAAE;IACtBA,OAAO,GAAG,KAAK;EACjB;EAEA,IAAIC,UAAU,KAAK,KAAK,CAAC,EAAE;IACzBA,UAAU,GAAG,IAAI;EACnB;EAEA,IAAIH,IAAI,EAAE;IACR,IAAII,KAAK,GAAGC,QAAQ,CAACC,WAAW,CAAC,YAAY,CAAC;IAC9CF,KAAK,CAACG,SAAS,CAACN,SAAS,EAAEC,OAAO,EAAEC,UAAU,CAAC;IAC/CH,IAAI,CAACQ,aAAa,CAACJ,KAAK,CAAC;EAC3B;AACF","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0cc7b55856d0f761745a04cbf4d6339fee3649108c80b319eef79e0a40f7890f.json b/trivia-forge/node_modules/.cache/babel-loader/0cc7b55856d0f761745a04cbf4d6339fee3649108c80b319eef79e0a40f7890f.json deleted file mode 100644 index 6de25fa1..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0cc7b55856d0f761745a04cbf4d6339fee3649108c80b319eef79e0a40f7890f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import getComputedStyle from './getComputedStyle';\nimport hyphenate from './hyphenateStyle';\nimport isTransform from './isTransform';\nfunction style(node, property) {\n var css = '';\n var transforms = '';\n if (typeof property === 'string') {\n return node.style.getPropertyValue(hyphenate(property)) || getComputedStyle(node).getPropertyValue(hyphenate(property));\n }\n Object.keys(property).forEach(function (key) {\n var value = property[key];\n if (!value && value !== 0) {\n node.style.removeProperty(hyphenate(key));\n } else if (isTransform(key)) {\n transforms += key + \"(\" + value + \") \";\n } else {\n css += hyphenate(key) + \": \" + value + \";\";\n }\n });\n if (transforms) {\n css += \"transform: \" + transforms + \";\";\n }\n node.style.cssText += \";\" + css;\n}\nexport default style;","map":{"version":3,"names":["getComputedStyle","hyphenate","isTransform","style","node","property","css","transforms","getPropertyValue","Object","keys","forEach","key","value","removeProperty","cssText"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/dom-helpers/esm/css.js"],"sourcesContent":["import getComputedStyle from './getComputedStyle';\nimport hyphenate from './hyphenateStyle';\nimport isTransform from './isTransform';\n\nfunction style(node, property) {\n var css = '';\n var transforms = '';\n\n if (typeof property === 'string') {\n return node.style.getPropertyValue(hyphenate(property)) || getComputedStyle(node).getPropertyValue(hyphenate(property));\n }\n\n Object.keys(property).forEach(function (key) {\n var value = property[key];\n\n if (!value && value !== 0) {\n node.style.removeProperty(hyphenate(key));\n } else if (isTransform(key)) {\n transforms += key + \"(\" + value + \") \";\n } else {\n css += hyphenate(key) + \": \" + value + \";\";\n }\n });\n\n if (transforms) {\n css += \"transform: \" + transforms + \";\";\n }\n\n node.style.cssText += \";\" + css;\n}\n\nexport default style;"],"mappings":"AAAA,OAAOA,gBAAgB,MAAM,oBAAoB;AACjD,OAAOC,SAAS,MAAM,kBAAkB;AACxC,OAAOC,WAAW,MAAM,eAAe;AAEvC,SAASC,KAAKA,CAACC,IAAI,EAAEC,QAAQ,EAAE;EAC7B,IAAIC,GAAG,GAAG,EAAE;EACZ,IAAIC,UAAU,GAAG,EAAE;EAEnB,IAAI,OAAOF,QAAQ,KAAK,QAAQ,EAAE;IAChC,OAAOD,IAAI,CAACD,KAAK,CAACK,gBAAgB,CAACP,SAAS,CAACI,QAAQ,CAAC,CAAC,IAAIL,gBAAgB,CAACI,IAAI,CAAC,CAACI,gBAAgB,CAACP,SAAS,CAACI,QAAQ,CAAC,CAAC;EACzH;EAEAI,MAAM,CAACC,IAAI,CAACL,QAAQ,CAAC,CAACM,OAAO,CAAC,UAAUC,GAAG,EAAE;IAC3C,IAAIC,KAAK,GAAGR,QAAQ,CAACO,GAAG,CAAC;IAEzB,IAAI,CAACC,KAAK,IAAIA,KAAK,KAAK,CAAC,EAAE;MACzBT,IAAI,CAACD,KAAK,CAACW,cAAc,CAACb,SAAS,CAACW,GAAG,CAAC,CAAC;IAC3C,CAAC,MAAM,IAAIV,WAAW,CAACU,GAAG,CAAC,EAAE;MAC3BL,UAAU,IAAIK,GAAG,GAAG,GAAG,GAAGC,KAAK,GAAG,IAAI;IACxC,CAAC,MAAM;MACLP,GAAG,IAAIL,SAAS,CAACW,GAAG,CAAC,GAAG,IAAI,GAAGC,KAAK,GAAG,GAAG;IAC5C;EACF,CAAC,CAAC;EAEF,IAAIN,UAAU,EAAE;IACdD,GAAG,IAAI,aAAa,GAAGC,UAAU,GAAG,GAAG;EACzC;EAEAH,IAAI,CAACD,KAAK,CAACY,OAAO,IAAI,GAAG,GAAGT,GAAG;AACjC;AAEA,eAAeH,KAAK","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0cf25c708dc4fe69140e23571409b0788f4cbc6790ea6e196db8e787b32081d3.json b/trivia-forge/node_modules/.cache/babel-loader/0cf25c708dc4fe69140e23571409b0788f4cbc6790ea6e196db8e787b32081d3.json deleted file mode 100644 index 0a6696d9..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0cf25c708dc4fe69140e23571409b0788f4cbc6790ea6e196db8e787b32081d3.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport Offcanvas from './Offcanvas';\nimport NavbarContext from './NavbarContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst NavbarOffcanvas = /*#__PURE__*/React.forwardRef((props, ref) => {\n const context = useContext(NavbarContext);\n return /*#__PURE__*/_jsx(Offcanvas, {\n ref: ref,\n show: !!(context != null && context.expanded),\n ...props,\n renderStaticNode: true\n });\n});\nNavbarOffcanvas.displayName = 'NavbarOffcanvas';\nexport default NavbarOffcanvas;","map":{"version":3,"names":["React","useContext","Offcanvas","NavbarContext","jsx","_jsx","NavbarOffcanvas","forwardRef","props","ref","context","show","expanded","renderStaticNode","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/NavbarOffcanvas.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport Offcanvas from './Offcanvas';\nimport NavbarContext from './NavbarContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst NavbarOffcanvas = /*#__PURE__*/React.forwardRef((props, ref) => {\n const context = useContext(NavbarContext);\n return /*#__PURE__*/_jsx(Offcanvas, {\n ref: ref,\n show: !!(context != null && context.expanded),\n ...props,\n renderStaticNode: true\n });\n});\nNavbarOffcanvas.displayName = 'NavbarOffcanvas';\nexport default NavbarOffcanvas;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,QAAQ,OAAO;AAClC,OAAOC,SAAS,MAAM,aAAa;AACnC,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,eAAe,GAAG,aAAaN,KAAK,CAACO,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACpE,MAAMC,OAAO,GAAGT,UAAU,CAACE,aAAa,CAAC;EACzC,OAAO,aAAaE,IAAI,CAACH,SAAS,EAAE;IAClCO,GAAG,EAAEA,GAAG;IACRE,IAAI,EAAE,CAAC,EAAED,OAAO,IAAI,IAAI,IAAIA,OAAO,CAACE,QAAQ,CAAC;IAC7C,GAAGJ,KAAK;IACRK,gBAAgB,EAAE;EACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AACFP,eAAe,CAACQ,WAAW,GAAG,iBAAiB;AAC/C,eAAeR,eAAe","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0d174dab3269aa5038503e5f06fc51dbde886c9569724b20441f1c79ef7d6209.json b/trivia-forge/node_modules/.cache/babel-loader/0d174dab3269aa5038503e5f06fc51dbde886c9569724b20441f1c79ef7d6209.json deleted file mode 100644 index 016e3f94..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0d174dab3269aa5038503e5f06fc51dbde886c9569724b20441f1c79ef7d6209.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import { useEffect } from 'react';\nimport useCommittedRef from './useCommittedRef';\n\n/**\n * Creates a `setInterval` that is properly cleaned up when a component unmounted\n *\n * ```tsx\n * function Timer() {\n * const [timer, setTimer] = useState(0)\n * useInterval(() => setTimer(i => i + 1), 1000)\n *\n * return {timer} seconds past\n * }\n * ```\n *\n * @param fn an function run on each interval\n * @param ms The milliseconds duration of the interval\n */\n\n/**\n * Creates a pausable `setInterval` that is properly cleaned up when a component unmounted\n *\n * ```tsx\n * const [paused, setPaused] = useState(false)\n * const [timer, setTimer] = useState(0)\n *\n * useInterval(() => setTimer(i => i + 1), 1000, paused)\n *\n * return (\n * \n * {timer} seconds past\n *\n * \n * \n * )\n * ```\n *\n * @param fn an function run on each interval\n * @param ms The milliseconds duration of the interval\n * @param paused Whether or not the interval is currently running\n */\n\n/**\n * Creates a pausable `setInterval` that _fires_ immediately and is\n * properly cleaned up when a component unmounted\n *\n * ```tsx\n * const [timer, setTimer] = useState(-1)\n * useInterval(() => setTimer(i => i + 1), 1000, false, true)\n *\n * // will update to 0 on the first effect\n * return {timer} seconds past\n * ```\n *\n * @param fn an function run on each interval\n * @param ms The milliseconds duration of the interval\n * @param paused Whether or not the interval is currently running\n * @param runImmediately Whether to run the function immediately on mount or unpause\n * rather than waiting for the first interval to elapse\n *\n\n */\n\nfunction useInterval(fn, ms, paused = false, runImmediately = false) {\n let handle;\n const fnRef = useCommittedRef(fn);\n // this ref is necessary b/c useEffect will sometimes miss a paused toggle\n // orphaning a setTimeout chain in the aether, so relying on it's refresh logic is not reliable.\n const pausedRef = useCommittedRef(paused);\n const tick = () => {\n if (pausedRef.current) return;\n fnRef.current();\n schedule(); // eslint-disable-line no-use-before-define\n };\n const schedule = () => {\n clearTimeout(handle);\n handle = setTimeout(tick, ms);\n };\n useEffect(() => {\n if (runImmediately) {\n tick();\n } else {\n schedule();\n }\n return () => clearTimeout(handle);\n }, [paused, runImmediately]);\n}\nexport default useInterval;","map":{"version":3,"names":["useEffect","useCommittedRef","useInterval","fn","ms","paused","runImmediately","handle","fnRef","pausedRef","tick","current","schedule","clearTimeout","setTimeout"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/hooks/esm/useInterval.js"],"sourcesContent":["import { useEffect } from 'react';\nimport useCommittedRef from './useCommittedRef';\n\n/**\n * Creates a `setInterval` that is properly cleaned up when a component unmounted\n *\n * ```tsx\n * function Timer() {\n * const [timer, setTimer] = useState(0)\n * useInterval(() => setTimer(i => i + 1), 1000)\n *\n * return {timer} seconds past\n * }\n * ```\n *\n * @param fn an function run on each interval\n * @param ms The milliseconds duration of the interval\n */\n\n/**\n * Creates a pausable `setInterval` that is properly cleaned up when a component unmounted\n *\n * ```tsx\n * const [paused, setPaused] = useState(false)\n * const [timer, setTimer] = useState(0)\n *\n * useInterval(() => setTimer(i => i + 1), 1000, paused)\n *\n * return (\n * \n * {timer} seconds past\n *\n * \n * \n * )\n * ```\n *\n * @param fn an function run on each interval\n * @param ms The milliseconds duration of the interval\n * @param paused Whether or not the interval is currently running\n */\n\n/**\n * Creates a pausable `setInterval` that _fires_ immediately and is\n * properly cleaned up when a component unmounted\n *\n * ```tsx\n * const [timer, setTimer] = useState(-1)\n * useInterval(() => setTimer(i => i + 1), 1000, false, true)\n *\n * // will update to 0 on the first effect\n * return {timer} seconds past\n * ```\n *\n * @param fn an function run on each interval\n * @param ms The milliseconds duration of the interval\n * @param paused Whether or not the interval is currently running\n * @param runImmediately Whether to run the function immediately on mount or unpause\n * rather than waiting for the first interval to elapse\n *\n\n */\n\nfunction useInterval(fn, ms, paused = false, runImmediately = false) {\n let handle;\n const fnRef = useCommittedRef(fn);\n // this ref is necessary b/c useEffect will sometimes miss a paused toggle\n // orphaning a setTimeout chain in the aether, so relying on it's refresh logic is not reliable.\n const pausedRef = useCommittedRef(paused);\n const tick = () => {\n if (pausedRef.current) return;\n fnRef.current();\n schedule(); // eslint-disable-line no-use-before-define\n };\n\n const schedule = () => {\n clearTimeout(handle);\n handle = setTimeout(tick, ms);\n };\n useEffect(() => {\n if (runImmediately) {\n tick();\n } else {\n schedule();\n }\n return () => clearTimeout(handle);\n }, [paused, runImmediately]);\n}\nexport default useInterval;"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,OAAOC,eAAe,MAAM,mBAAmB;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASC,WAAWA,CAACC,EAAE,EAAEC,EAAE,EAAEC,MAAM,GAAG,KAAK,EAAEC,cAAc,GAAG,KAAK,EAAE;EACnE,IAAIC,MAAM;EACV,MAAMC,KAAK,GAAGP,eAAe,CAACE,EAAE,CAAC;EACjC;EACA;EACA,MAAMM,SAAS,GAAGR,eAAe,CAACI,MAAM,CAAC;EACzC,MAAMK,IAAI,GAAGA,CAAA,KAAM;IACjB,IAAID,SAAS,CAACE,OAAO,EAAE;IACvBH,KAAK,CAACG,OAAO,CAAC,CAAC;IACfC,QAAQ,CAAC,CAAC,CAAC,CAAC;EACd,CAAC;EAED,MAAMA,QAAQ,GAAGA,CAAA,KAAM;IACrBC,YAAY,CAACN,MAAM,CAAC;IACpBA,MAAM,GAAGO,UAAU,CAACJ,IAAI,EAAEN,EAAE,CAAC;EAC/B,CAAC;EACDJ,SAAS,CAAC,MAAM;IACd,IAAIM,cAAc,EAAE;MAClBI,IAAI,CAAC,CAAC;IACR,CAAC,MAAM;MACLE,QAAQ,CAAC,CAAC;IACZ;IACA,OAAO,MAAMC,YAAY,CAACN,MAAM,CAAC;EACnC,CAAC,EAAE,CAACF,MAAM,EAAEC,cAAc,CAAC,CAAC;AAC9B;AACA,eAAeJ,WAAW","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0d2828cb4ef7251d0660eed79ce30f738180e26759d19b425dfaed936af099f8.json b/trivia-forge/node_modules/.cache/babel-loader/0d2828cb4ef7251d0660eed79ce30f738180e26759d19b425dfaed936af099f8.json deleted file mode 100644 index cc1e5cf3..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0d2828cb4ef7251d0660eed79ce30f738180e26759d19b425dfaed936af099f8.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","map":{"version":3,"names":["getFreshSideObject","top","right","bottom","left"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"],"sourcesContent":["export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}"],"mappings":"AAAA,eAAe,SAASA,kBAAkBA,CAAA,EAAG;EAC3C,OAAO;IACLC,GAAG,EAAE,CAAC;IACNC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,IAAI,EAAE;EACR,CAAC;AACH","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0dd0b23db5ffcff07453f454db970fa7dbb188269ac9767acdab94943e4705c3.json b/trivia-forge/node_modules/.cache/babel-loader/0dd0b23db5ffcff07453f454db970fa7dbb188269ac9767acdab94943e4705c3.json deleted file mode 100644 index 0a6696d9..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0dd0b23db5ffcff07453f454db970fa7dbb188269ac9767acdab94943e4705c3.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport Offcanvas from './Offcanvas';\nimport NavbarContext from './NavbarContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst NavbarOffcanvas = /*#__PURE__*/React.forwardRef((props, ref) => {\n const context = useContext(NavbarContext);\n return /*#__PURE__*/_jsx(Offcanvas, {\n ref: ref,\n show: !!(context != null && context.expanded),\n ...props,\n renderStaticNode: true\n });\n});\nNavbarOffcanvas.displayName = 'NavbarOffcanvas';\nexport default NavbarOffcanvas;","map":{"version":3,"names":["React","useContext","Offcanvas","NavbarContext","jsx","_jsx","NavbarOffcanvas","forwardRef","props","ref","context","show","expanded","renderStaticNode","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/NavbarOffcanvas.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport Offcanvas from './Offcanvas';\nimport NavbarContext from './NavbarContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst NavbarOffcanvas = /*#__PURE__*/React.forwardRef((props, ref) => {\n const context = useContext(NavbarContext);\n return /*#__PURE__*/_jsx(Offcanvas, {\n ref: ref,\n show: !!(context != null && context.expanded),\n ...props,\n renderStaticNode: true\n });\n});\nNavbarOffcanvas.displayName = 'NavbarOffcanvas';\nexport default NavbarOffcanvas;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,QAAQ,OAAO;AAClC,OAAOC,SAAS,MAAM,aAAa;AACnC,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,eAAe,GAAG,aAAaN,KAAK,CAACO,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACpE,MAAMC,OAAO,GAAGT,UAAU,CAACE,aAAa,CAAC;EACzC,OAAO,aAAaE,IAAI,CAACH,SAAS,EAAE;IAClCO,GAAG,EAAEA,GAAG;IACRE,IAAI,EAAE,CAAC,EAAED,OAAO,IAAI,IAAI,IAAIA,OAAO,CAACE,QAAQ,CAAC;IAC7C,GAAGJ,KAAK;IACRK,gBAAgB,EAAE;EACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AACFP,eAAe,CAACQ,WAAW,GAAG,iBAAiB;AAC/C,eAAeR,eAAe","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0e1e3748019a27c476e6070ee91d8e394dee6fef0756020f5d933fcb5343ec56.json b/trivia-forge/node_modules/.cache/babel-loader/0e1e3748019a27c476e6070ee91d8e394dee6fef0756020f5d933fcb5343ec56.json deleted file mode 100644 index 351b9a57..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0e1e3748019a27c476e6070ee91d8e394dee6fef0756020f5d933fcb5343ec56.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"'use strict';\n\nvar global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\nmodule.exports = version;","map":{"version":3,"names":["global","require","userAgent","process","Deno","versions","version","v8","match","split","module","exports"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/core-js-pure/internals/engine-v8-version.js"],"sourcesContent":["'use strict';\nvar global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,MAAM,GAAGC,OAAO,CAAC,qBAAqB,CAAC;AAC3C,IAAIC,SAAS,GAAGD,OAAO,CAAC,gCAAgC,CAAC;AAEzD,IAAIE,OAAO,GAAGH,MAAM,CAACG,OAAO;AAC5B,IAAIC,IAAI,GAAGJ,MAAM,CAACI,IAAI;AACtB,IAAIC,QAAQ,GAAGF,OAAO,IAAIA,OAAO,CAACE,QAAQ,IAAID,IAAI,IAAIA,IAAI,CAACE,OAAO;AAClE,IAAIC,EAAE,GAAGF,QAAQ,IAAIA,QAAQ,CAACE,EAAE;AAChC,IAAIC,KAAK,EAAEF,OAAO;AAElB,IAAIC,EAAE,EAAE;EACNC,KAAK,GAAGD,EAAE,CAACE,KAAK,CAAC,GAAG,CAAC;EACrB;EACA;EACAH,OAAO,GAAGE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,IAAIA,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAEA,KAAK,CAAC,CAAC,CAAC,GAAGA,KAAK,CAAC,CAAC,CAAC,CAAC;AACrE;;AAEA;AACA;AACA,IAAI,CAACF,OAAO,IAAIJ,SAAS,EAAE;EACzBM,KAAK,GAAGN,SAAS,CAACM,KAAK,CAAC,aAAa,CAAC;EACtC,IAAI,CAACA,KAAK,IAAIA,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE;IAC5BA,KAAK,GAAGN,SAAS,CAACM,KAAK,CAAC,eAAe,CAAC;IACxC,IAAIA,KAAK,EAAEF,OAAO,GAAG,CAACE,KAAK,CAAC,CAAC,CAAC;EAChC;AACF;AAEAE,MAAM,CAACC,OAAO,GAAGL,OAAO","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0e528b7eb6f6f3a808ed69626d87bb6bf8932263f8fa7c06eae4c806fcb00e79.json b/trivia-forge/node_modules/.cache/babel-loader/0e528b7eb6f6f3a808ed69626d87bb6bf8932263f8fa7c06eae4c806fcb00e79.json deleted file mode 100644 index 19b46acd..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0e528b7eb6f6f3a808ed69626d87bb6bf8932263f8fa7c06eae4c806fcb00e79.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import { useCallback } from 'react';\nimport useCommittedRef from './useCommittedRef';\nexport default function useEventCallback(fn) {\n const ref = useCommittedRef(fn);\n return useCallback(function () {\n return ref.current && ref.current(...arguments);\n }, [ref]);\n}","map":{"version":3,"names":["useCallback","useCommittedRef","useEventCallback","fn","ref","current","arguments"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/hooks/esm/useEventCallback.js"],"sourcesContent":["import { useCallback } from 'react';\nimport useCommittedRef from './useCommittedRef';\nexport default function useEventCallback(fn) {\n const ref = useCommittedRef(fn);\n return useCallback(function (...args) {\n return ref.current && ref.current(...args);\n }, [ref]);\n}"],"mappings":"AAAA,SAASA,WAAW,QAAQ,OAAO;AACnC,OAAOC,eAAe,MAAM,mBAAmB;AAC/C,eAAe,SAASC,gBAAgBA,CAACC,EAAE,EAAE;EAC3C,MAAMC,GAAG,GAAGH,eAAe,CAACE,EAAE,CAAC;EAC/B,OAAOH,WAAW,CAAC,YAAmB;IACpC,OAAOI,GAAG,CAACC,OAAO,IAAID,GAAG,CAACC,OAAO,CAAC,GAAAC,SAAO,CAAC;EAC5C,CAAC,EAAE,CAACF,GAAG,CAAC,CAAC;AACX","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0e5dfb800f49ef585bbad72b70b83b234467cb02625dfea72fccd99679c82ccd.json b/trivia-forge/node_modules/.cache/babel-loader/0e5dfb800f49ef585bbad72b70b83b234467cb02625dfea72fccd99679c82ccd.json deleted file mode 100644 index 20ff6e70..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0e5dfb800f49ef585bbad72b70b83b234467cb02625dfea72fccd99679c82ccd.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n return node;\n}","map":{"version":3,"names":["getWindow","node","window","toString","ownerDocument","defaultView"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/dom-utils/getWindow.js"],"sourcesContent":["export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}"],"mappings":"AAAA,eAAe,SAASA,SAASA,CAACC,IAAI,EAAE;EACtC,IAAIA,IAAI,IAAI,IAAI,EAAE;IAChB,OAAOC,MAAM;EACf;EAEA,IAAID,IAAI,CAACE,QAAQ,CAAC,CAAC,KAAK,iBAAiB,EAAE;IACzC,IAAIC,aAAa,GAAGH,IAAI,CAACG,aAAa;IACtC,OAAOA,aAAa,GAAGA,aAAa,CAACC,WAAW,IAAIH,MAAM,GAAGA,MAAM;EACrE;EAEA,OAAOD,IAAI;AACb","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0e8f50a7ee021709f7b80f14e5373bf065afdae37776e37276e0fcbc05251a00.json b/trivia-forge/node_modules/.cache/babel-loader/0e8f50a7ee021709f7b80f14e5373bf065afdae37776e37276e0fcbc05251a00.json deleted file mode 100644 index f7cfa06e..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0e8f50a7ee021709f7b80f14e5373bf065afdae37776e37276e0fcbc05251a00.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n return (\n // this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot ||\n // step into the shadow DOM of the parent of a slotted node\n element.parentNode || (\n // DOM Element detected\n isShadowRoot(element) ? element.host : null) ||\n // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n );\n}","map":{"version":3,"names":["getNodeName","getDocumentElement","isShadowRoot","getParentNode","element","assignedSlot","parentNode","host"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"],"sourcesContent":["import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}"],"mappings":"AAAA,OAAOA,WAAW,MAAM,kBAAkB;AAC1C,OAAOC,kBAAkB,MAAM,yBAAyB;AACxD,SAASC,YAAY,QAAQ,iBAAiB;AAC9C,eAAe,SAASC,aAAaA,CAACC,OAAO,EAAE;EAC7C,IAAIJ,WAAW,CAACI,OAAO,CAAC,KAAK,MAAM,EAAE;IACnC,OAAOA,OAAO;EAChB;EAEA;IAAQ;IACN;IACA;IACAA,OAAO,CAACC,YAAY;IAAI;IACxBD,OAAO,CAACE,UAAU;IAAM;IACxBJ,YAAY,CAACE,OAAO,CAAC,GAAGA,OAAO,CAACG,IAAI,GAAG,IAAI,CAAC;IAAI;IAChD;IACAN,kBAAkB,CAACG,OAAO,CAAC,CAAC;EAAA;AAGhC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0ec2af62c14240743228be4b57035e801c2560bd8a29b7510c2597e5eda10679.json b/trivia-forge/node_modules/.cache/babel-loader/0ec2af62c14240743228be4b57035e801c2560bd8a29b7510c2597e5eda10679.json deleted file mode 100644 index 472f8fdf..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0ec2af62c14240743228be4b57035e801c2560bd8a29b7510c2597e5eda10679.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import $73SJx$react, { useContext as $73SJx$useContext, useState as $73SJx$useState, useMemo as $73SJx$useMemo, useLayoutEffect as $73SJx$useLayoutEffect, useRef as $73SJx$useRef } from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is\n// guarded by a check that it only runs on the client side.\n// eslint-disable-next-line rulesdir/useLayoutEffectRule\n\n// Default context value to use in case there is no SSRProvider. This is fine for\n// client-only apps. In order to support multiple copies of React Aria potentially\n// being on the page at once, the prefix is set to a random number. SSRProvider\n// will reset this to zero for consistency between server and client, so in the\n// SSR case multiple copies of React Aria is not supported.\nconst $b5e257d569688ac6$var$defaultContext = {\n prefix: String(Math.round(Math.random() * 10000000000)),\n current: 0\n};\nconst $b5e257d569688ac6$var$SSRContext = /*#__PURE__*/(0, $73SJx$react).createContext($b5e257d569688ac6$var$defaultContext);\nconst $b5e257d569688ac6$var$IsSSRContext = /*#__PURE__*/(0, $73SJx$react).createContext(false);\n// This is only used in React < 18.\nfunction $b5e257d569688ac6$var$LegacySSRProvider(props) {\n let cur = (0, $73SJx$useContext)($b5e257d569688ac6$var$SSRContext);\n let counter = $b5e257d569688ac6$var$useCounter(cur === $b5e257d569688ac6$var$defaultContext);\n let [isSSR, setIsSSR] = (0, $73SJx$useState)(true);\n let value = (0, $73SJx$useMemo)(() => ({\n // If this is the first SSRProvider, start with an empty string prefix, otherwise\n // append and increment the counter.\n prefix: cur === $b5e257d569688ac6$var$defaultContext ? \"\" : \"\".concat(cur.prefix, \"-\").concat(counter),\n current: 0\n }), [cur, counter]);\n // If on the client, and the component was initially server rendered,\n // then schedule a layout effect to update the component after hydration.\n if (typeof document !== \"undefined\")\n // This if statement technically breaks the rules of hooks, but is safe\n // because the condition never changes after mounting.\n // eslint-disable-next-line react-hooks/rules-of-hooks\n (0, $73SJx$useLayoutEffect)(() => {\n setIsSSR(false);\n }, []);\n return /*#__PURE__*/(0, $73SJx$react).createElement($b5e257d569688ac6$var$SSRContext.Provider, {\n value: value\n }, /*#__PURE__*/(0, $73SJx$react).createElement($b5e257d569688ac6$var$IsSSRContext.Provider, {\n value: isSSR\n }, props.children));\n}\nlet $b5e257d569688ac6$var$warnedAboutSSRProvider = false;\nfunction $b5e257d569688ac6$export$9f8ac96af4b1b2ae(props) {\n if (typeof (0, $73SJx$react)[\"useId\"] === \"function\") {\n if (process.env.NODE_ENV !== \"test\" && !$b5e257d569688ac6$var$warnedAboutSSRProvider) {\n console.warn(\"In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app.\");\n $b5e257d569688ac6$var$warnedAboutSSRProvider = true;\n }\n return /*#__PURE__*/(0, $73SJx$react).createElement((0, $73SJx$react).Fragment, null, props.children);\n }\n return /*#__PURE__*/(0, $73SJx$react).createElement($b5e257d569688ac6$var$LegacySSRProvider, props);\n}\nlet $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== \"undefined\" && window.document && window.document.createElement);\nlet $b5e257d569688ac6$var$componentIds = new WeakMap();\nfunction $b5e257d569688ac6$var$useCounter() {\n let isDisabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n let ctx = (0, $73SJx$useContext)($b5e257d569688ac6$var$SSRContext);\n let ref = (0, $73SJx$useRef)(null);\n // eslint-disable-next-line rulesdir/pure-render\n if (ref.current === null && !isDisabled) {\n var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n // In strict mode, React renders components twice, and the ref will be reset to null on the second render.\n // This means our id counter will be incremented twice instead of once. This is a problem because on the\n // server, components are only rendered once and so ids generated on the server won't match the client.\n // In React 18, useId was introduced to solve this, but it is not available in older versions. So to solve this\n // we need to use some React internals to access the underlying Fiber instance, which is stable between renders.\n // This is exposed as ReactCurrentOwner in development, which is all we need since StrictMode only runs in development.\n // To ensure that we only increment the global counter once, we store the starting id for this component in\n // a weak map associated with the Fiber. On the second render, we reset the global counter to this value.\n // Since React runs the second render immediately after the first, this is safe.\n // @ts-ignore\n let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = (0, $73SJx$react).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;\n if (currentOwner) {\n let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);\n if (prevComponentValue == null)\n // On the first render, and first call to useId, store the id and state in our weak map.\n $b5e257d569688ac6$var$componentIds.set(currentOwner, {\n id: ctx.current,\n state: currentOwner.memoizedState\n });else if (currentOwner.memoizedState !== prevComponentValue.state) {\n // On the second render, the memoizedState gets reset by React.\n // Reset the counter, and remove from the weak map so we don't\n // do this for subsequent useId calls.\n ctx.current = prevComponentValue.id;\n $b5e257d569688ac6$var$componentIds.delete(currentOwner);\n }\n }\n // eslint-disable-next-line rulesdir/pure-render\n ref.current = ++ctx.current;\n }\n // eslint-disable-next-line rulesdir/pure-render\n return ref.current;\n}\nfunction $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {\n let ctx = (0, $73SJx$useContext)($b5e257d569688ac6$var$SSRContext);\n // If we are rendering in a non-DOM environment, and there's no SSRProvider,\n // provide a warning to hint to the developer to add one.\n if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM) console.warn(\"When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.\");\n let counter = $b5e257d569688ac6$var$useCounter(!!defaultId);\n let prefix = ctx === $b5e257d569688ac6$var$defaultContext && process.env.NODE_ENV === \"test\" ? \"react-aria\" : \"react-aria\".concat(ctx.prefix);\n return defaultId || \"\".concat(prefix, \"-\").concat(counter);\n}\nfunction $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {\n // @ts-ignore\n let id = (0, $73SJx$react).useId();\n let [didSSR] = (0, $73SJx$useState)($b5e257d569688ac6$export$535bd6ca7f90a273());\n let prefix = didSSR || process.env.NODE_ENV === \"test\" ? \"react-aria\" : \"react-aria\".concat($b5e257d569688ac6$var$defaultContext.prefix);\n return defaultId || \"\".concat(prefix, \"-\").concat(id);\n}\nconst $b5e257d569688ac6$export$619500959fc48b26 = typeof (0, $73SJx$react)[\"useId\"] === \"function\" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;\nfunction $b5e257d569688ac6$var$getSnapshot() {\n return false;\n}\nfunction $b5e257d569688ac6$var$getServerSnapshot() {\n return true;\n}\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $b5e257d569688ac6$var$subscribe(onStoreChange) {\n // noop\n return () => {};\n}\nfunction $b5e257d569688ac6$export$535bd6ca7f90a273() {\n // In React 18, we can use useSyncExternalStore to detect if we're server rendering or hydrating.\n if (typeof (0, $73SJx$react)[\"useSyncExternalStore\"] === \"function\") return (0, $73SJx$react)[\"useSyncExternalStore\"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return (0, $73SJx$useContext)($b5e257d569688ac6$var$IsSSRContext);\n}\nexport { $b5e257d569688ac6$export$9f8ac96af4b1b2ae as SSRProvider, $b5e257d569688ac6$export$619500959fc48b26 as useSSRSafeId, $b5e257d569688ac6$export$535bd6ca7f90a273 as useIsSSR };","map":{"version":3,"names":["$b5e257d569688ac6$var$defaultContext","prefix","String","Math","round","random","current","$b5e257d569688ac6$var$SSRContext","$73SJx$react","createContext","$b5e257d569688ac6$var$IsSSRContext","$b5e257d569688ac6$var$LegacySSRProvider","props","cur","$73SJx$useContext","counter","$b5e257d569688ac6$var$useCounter","isSSR","setIsSSR","$73SJx$useState","value","$73SJx$useMemo","concat","document","$73SJx$useLayoutEffect","createElement","Provider","children","$b5e257d569688ac6$var$warnedAboutSSRProvider","$b5e257d569688ac6$export$9f8ac96af4b1b2ae","process","env","NODE_ENV","console","warn","Fragment","$b5e257d569688ac6$var$canUseDOM","Boolean","window","$b5e257d569688ac6$var$componentIds","WeakMap","isDisabled","arguments","length","undefined","ctx","ref","$73SJx$useRef","_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner","_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","currentOwner","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","prevComponentValue","get","set","id","state","memoizedState","delete","$b5e257d569688ac6$var$useLegacySSRSafeId","defaultId","$b5e257d569688ac6$var$useModernSSRSafeId","useId","didSSR","$b5e257d569688ac6$export$535bd6ca7f90a273","$b5e257d569688ac6$export$619500959fc48b26","$b5e257d569688ac6$var$getSnapshot","$b5e257d569688ac6$var$getServerSnapshot","$b5e257d569688ac6$var$subscribe","onStoreChange"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/packages/@react-aria/ssr/src/index.ts","/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/packages/@react-aria/ssr/src/SSRProvider.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport {SSRProvider, useSSRSafeId, useIsSSR} from './SSRProvider';\nexport type {SSRProviderProps} from './SSRProvider';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n// We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is\n// guarded by a check that it only runs on the client side.\n// eslint-disable-next-line rulesdir/useLayoutEffectRule\nimport React, {JSX, ReactNode, useContext, useLayoutEffect, useMemo, useRef, useState} from 'react';\n\n// To support SSR, the auto incrementing id counter is stored in a context. This allows\n// it to be reset on every request to ensure the client and server are consistent.\n// There is also a prefix string that is used to support async loading components\n// Each async boundary must be wrapped in an SSR provider, which appends to the prefix\n// and resets the current id counter. This ensures that async loaded components have\n// consistent ids regardless of the loading order.\ninterface SSRContextValue {\n prefix: string,\n current: number\n}\n\n// Default context value to use in case there is no SSRProvider. This is fine for\n// client-only apps. In order to support multiple copies of React Aria potentially\n// being on the page at once, the prefix is set to a random number. SSRProvider\n// will reset this to zero for consistency between server and client, so in the\n// SSR case multiple copies of React Aria is not supported.\nconst defaultContext: SSRContextValue = {\n prefix: String(Math.round(Math.random() * 10000000000)),\n current: 0\n};\n\nconst SSRContext = React.createContext(defaultContext);\nconst IsSSRContext = React.createContext(false);\n\nexport interface SSRProviderProps {\n /** Your application here. */\n children: ReactNode\n}\n\n// This is only used in React < 18.\nfunction LegacySSRProvider(props: SSRProviderProps): JSX.Element {\n let cur = useContext(SSRContext);\n let counter = useCounter(cur === defaultContext);\n let [isSSR, setIsSSR] = useState(true);\n let value: SSRContextValue = useMemo(() => ({\n // If this is the first SSRProvider, start with an empty string prefix, otherwise\n // append and increment the counter.\n prefix: cur === defaultContext ? '' : `${cur.prefix}-${counter}`,\n current: 0\n }), [cur, counter]);\n\n // If on the client, and the component was initially server rendered,\n // then schedule a layout effect to update the component after hydration.\n if (typeof document !== 'undefined') {\n // This if statement technically breaks the rules of hooks, but is safe\n // because the condition never changes after mounting.\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useLayoutEffect(() => {\n setIsSSR(false);\n }, []);\n }\n\n return (\n \n \n {props.children}\n \n \n );\n}\n\nlet warnedAboutSSRProvider = false;\n\n/**\n * When using SSR with React Aria in React 16 or 17, applications must be wrapped in an SSRProvider.\n * This ensures that auto generated ids are consistent between the client and server.\n */\nexport function SSRProvider(props: SSRProviderProps): JSX.Element {\n if (typeof React['useId'] === 'function') {\n if (process.env.NODE_ENV !== 'test' && !warnedAboutSSRProvider) {\n console.warn('In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app.');\n warnedAboutSSRProvider = true;\n }\n return <>{props.children};\n }\n return ;\n}\n\nlet canUseDOM = Boolean(\n typeof window !== 'undefined' &&\n window.document &&\n window.document.createElement\n);\n\nlet componentIds = new WeakMap();\n\nfunction useCounter(isDisabled = false) {\n let ctx = useContext(SSRContext);\n let ref = useRef(null);\n // eslint-disable-next-line rulesdir/pure-render\n if (ref.current === null && !isDisabled) {\n // In strict mode, React renders components twice, and the ref will be reset to null on the second render.\n // This means our id counter will be incremented twice instead of once. This is a problem because on the\n // server, components are only rendered once and so ids generated on the server won't match the client.\n // In React 18, useId was introduced to solve this, but it is not available in older versions. So to solve this\n // we need to use some React internals to access the underlying Fiber instance, which is stable between renders.\n // This is exposed as ReactCurrentOwner in development, which is all we need since StrictMode only runs in development.\n // To ensure that we only increment the global counter once, we store the starting id for this component in\n // a weak map associated with the Fiber. On the second render, we reset the global counter to this value.\n // Since React runs the second render immediately after the first, this is safe.\n // @ts-ignore\n let currentOwner = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;\n if (currentOwner) {\n let prevComponentValue = componentIds.get(currentOwner);\n if (prevComponentValue == null) {\n // On the first render, and first call to useId, store the id and state in our weak map.\n componentIds.set(currentOwner, {\n id: ctx.current,\n state: currentOwner.memoizedState\n });\n } else if (currentOwner.memoizedState !== prevComponentValue.state) {\n // On the second render, the memoizedState gets reset by React.\n // Reset the counter, and remove from the weak map so we don't\n // do this for subsequent useId calls.\n ctx.current = prevComponentValue.id;\n componentIds.delete(currentOwner);\n }\n }\n\n // eslint-disable-next-line rulesdir/pure-render\n ref.current = ++ctx.current;\n }\n\n // eslint-disable-next-line rulesdir/pure-render\n return ref.current;\n}\n\nfunction useLegacySSRSafeId(defaultId?: string): string {\n let ctx = useContext(SSRContext);\n\n // If we are rendering in a non-DOM environment, and there's no SSRProvider,\n // provide a warning to hint to the developer to add one.\n if (ctx === defaultContext && !canUseDOM) {\n console.warn('When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.');\n }\n\n let counter = useCounter(!!defaultId);\n let prefix = ctx === defaultContext && process.env.NODE_ENV === 'test' ? 'react-aria' : `react-aria${ctx.prefix}`;\n return defaultId || `${prefix}-${counter}`;\n}\n\nfunction useModernSSRSafeId(defaultId?: string): string {\n // @ts-ignore\n let id = React.useId();\n let [didSSR] = useState(useIsSSR());\n let prefix = didSSR || process.env.NODE_ENV === 'test' ? 'react-aria' : `react-aria${defaultContext.prefix}`;\n return defaultId || `${prefix}-${id}`;\n}\n\n// Use React.useId in React 18 if available, otherwise fall back to our old implementation.\n/** @private */\nexport const useSSRSafeId = typeof React['useId'] === 'function' ? useModernSSRSafeId : useLegacySSRSafeId;\n\nfunction getSnapshot() {\n return false;\n}\n\nfunction getServerSnapshot() {\n return true;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction subscribe(onStoreChange: () => void): () => void {\n // noop\n return () => {};\n}\n\n/**\n * Returns whether the component is currently being server side rendered or\n * hydrated on the client. Can be used to delay browser-specific rendering\n * until after hydration.\n */\nexport function useIsSSR(): boolean {\n // In React 18, we can use useSyncExternalStore to detect if we're server rendering or hydrating.\n if (typeof React['useSyncExternalStore'] === 'function') {\n return React['useSyncExternalStore'](subscribe, getSnapshot, getServerSnapshot);\n }\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useContext(IsSSRContext);\n}\n"],"mappings":";;AAAA;;;;;;;;;;ACAA,GDAA,CCAA;;;;;;;;;;MAAA,CAYA;AACA;AACA;;AAcA;AACA;AACA;AACA;AACA;AACA,MAAMA,oCAAA,GAAkC;EACtCC,MAAA,EAAQC,MAAA,CAAOC,IAAA,CAAKC,KAAK,CAACD,IAAA,CAAKE,MAAM,KAAK;EAC1CC,OAAA,EAAS;AACX;AAEA,MAAMC,gCAAA,gBAAa,IAAAC,YAAI,EAAEC,aAAa,CAAkBT,oCAAA;AACxD,MAAMU,kCAAA,gBAAe,IAAAF,YAAI,EAAEC,aAAa,CAAC;AAOzC;AACA,SAASE,wCAAkBC,KAAuB;EAChD,IAAIC,GAAA,GAAM,IAAAC,iBAAS,EAAEP,gCAAA;EACrB,IAAIQ,OAAA,GAAUC,gCAAA,CAAWH,GAAA,KAAQb,oCAAA;EACjC,IAAI,CAACiB,KAAA,EAAOC,QAAA,CAAS,GAAG,IAAAC,eAAO,EAAE;EACjC,IAAIC,KAAA,GAAyB,IAAAC,cAAM,EAAE,OAAO;IAC1C;IACA;IACApB,MAAA,EAAQY,GAAA,KAAQb,oCAAA,GAAiB,QAAAsB,MAAA,CAAQT,GAAA,CA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kB8B,OAAA,CAAQC,GAAG,CAACC,QAAQ,KAAK,SAAS,4BAAAV,MAAA,CAA4BuB,GAAA,CAAI5C,MAAM,CAAE;EACjH,OAAO4D,SAAA,OAAAvC,MAAA,CAAgBrB,MAAA,OAAAqB,MAAA,CAAUP,OAAA,CAAS;AAC5C;AAEA,SAAS+C,yCAAmBD,SAAkB;EAC5C;EACA,IAAIL,EAAA,GAAK,IAAAhD,YAAI,EAAEuD,KAAK;EACpB,IAAI,CAACC,MAAA,CAAO,GAAG,IAAA7C,eAAO,EAAE8C,yCAAA;EACxB,IAAIhE,MAAA,GAAS+D,MAAA,IAAUlC,OAAA,CAAQC,GAAG,CAACC,QAAQ,KAAK,SAAS,4BAAAV,MAAA,CAA4BtB,oCAAA,CAAeC,MAAM,CAAE;EAC5G,OAAO4D,SAAA,OAAAvC,MAAA,CAAgBrB,MAAA,OAAAqB,MAAA,CAAUkC,EAAA,CAAI;AACvC;AAIO,MAAMU,yCAAA,GAAe,OAAO,IAAA1D,YAAI,EAAE,QAAQ,KAAK,aAAasD,wCAAA,GAAqBF,wCAAA;AAExF,SAASO,kCAAA;EACP,OAAO;AACT;AAEA,SAASC,wCAAA;EACP,OAAO;AACT;AAEA;AACA,SAASC,gCAAUC,aAAyB;EAC1C;EACA,OAAO,OAAO;AAChB;AAOO,SAASL,0CAAA;EACd;EACA,IAAI,OAAO,IAAAzD,YAAI,EAAE,uBAAuB,KAAK,YAC3C,OAAO,IAAAA,YAAI,EAAE,uBAAuB,CAAC6D,+BAAA,EAAWF,iCAAA,EAAaC,uCAAA;EAG/D;EACA,OAAO,IAAAtD,iBAAS,EAAEJ,kCAAA;AACpB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0eee8568bda2de9872c900a44e58105c0dcc9a15a9e815aa3c3333b419b91c35.json b/trivia-forge/node_modules/.cache/babel-loader/0eee8568bda2de9872c900a44e58105c0dcc9a15a9e815aa3c3333b419b91c35.json deleted file mode 100644 index 22e33515..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0eee8568bda2de9872c900a44e58105c0dcc9a15a9e815aa3c3333b419b91c35.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst ToastBody = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'div',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-body');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nToastBody.displayName = 'ToastBody';\nexport default ToastBody;","map":{"version":3,"names":["React","classNames","useBootstrapPrefix","jsx","_jsx","ToastBody","forwardRef","className","bsPrefix","as","Component","props","ref","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/ToastBody.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst ToastBody = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'div',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-body');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nToastBody.displayName = 'ToastBody';\nexport default ToastBody;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,SAAS,GAAG,aAAaL,KAAK,CAACM,UAAU,CAAC,CAAC;EAC/CC,SAAS;EACTC,QAAQ;EACRC,EAAE,EAAEC,SAAS,GAAG,KAAK;EACrB,GAAGC;AACL,CAAC,EAAEC,GAAG,KAAK;EACTJ,QAAQ,GAAGN,kBAAkB,CAACM,QAAQ,EAAE,YAAY,CAAC;EACrD,OAAO,aAAaJ,IAAI,CAACM,SAAS,EAAE;IAClCE,GAAG,EAAEA,GAAG;IACRL,SAAS,EAAEN,UAAU,CAACM,SAAS,EAAEC,QAAQ,CAAC;IAC1C,GAAGG;EACL,CAAC,CAAC;AACJ,CAAC,CAAC;AACFN,SAAS,CAACQ,WAAW,GAAG,WAAW;AACnC,eAAeR,SAAS","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0f20f88004ad5cd73642f6d5cd7917be04c2af5eeb46cf1261a80eeb3ed4fad7.json b/trivia-forge/node_modules/.cache/babel-loader/0f20f88004ad5cd73642f6d5cd7917be04c2af5eeb46cf1261a80eeb3ed4fad7.json deleted file mode 100644 index ee7ebfce..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0f20f88004ad5cd73642f6d5cd7917be04c2af5eeb46cf1261a80eeb3ed4fad7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { OpenAIApi } from \"openai\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nconst apiKey = process.env.OPENAI_API_KEY;\n// create new configuration for the OpenAI API with the API key\nconst configuration = new Configuration({\n apiKey: apiKey\n});\n// create new instance of OPENAIAPI class with configuration\nconst openai = new OpenAIApi(configuration);\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState('');\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n // api call\n try {\n const completion = await openai.createCompletion({\n model: \"gpt-3.5-turbo\",\n prompt: 'Generate ${numberOfQuestions} trivia questions about ${category}.'\n // adjust and use token limit if necessary\n // max_tokens: 200\n });\n console.log(completion.data.choices[0].text);\n } catch (error) {\n console.error('Error calling OP');\n }\n\n //insert api call logic here\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n value: numberOfQuestions,\n onChange: e => setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10)))),\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Number of Questions\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaCategory\",\n children: \"Category:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n value: category,\n onChange: e => setCategory(e.target.value),\n className: \"form-control\",\n id: \"triviaCategory\",\n placeholder: \"Category\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 69,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 70,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 68,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Generate\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"5EWR5EgCw9Hns2v+6hnb2mRj/1Y=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","OpenAIApi","jsxDEV","_jsxDEV","apiKey","process","env","OPENAI_API_KEY","configuration","Configuration","openai","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","completion","createCompletion","model","prompt","console","log","data","choices","text","error","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","value","onChange","e","Math","min","max","parseInt","target","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\nimport { OpenAIApi } from \"openai\";\n\nconst apiKey = process.env.OPENAI_API_KEY;\n// create new configuration for the OpenAI API with the API key\nconst configuration = new Configuration({\n apiKey: apiKey\n});\n// create new instance of OPENAIAPI class with configuration\nconst openai = new OpenAIApi(configuration);\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState('');\n const [category, setCategory] = useState('');\n \n\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n // api call\n try {\n const completion = await openai.createCompletion({\n model: \"gpt-3.5-turbo\",\n prompt: 'Generate ${numberOfQuestions} trivia questions about ${category}.',\n // adjust and use token limit if necessary\n // max_tokens: 200\n });\n \n console.log(completion.data.choices[0].text);\n } catch (error) {\n console.error('Error calling OP')\n }\n\n //insert api call logic here\n\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10))))}\n className=\"form-control\" \n id=\"triviaTitle\" \n placeholder=\"Number of Questions\" \n />\n
\n
\n \n setCategory(e.target.value)}\n className=\"form-control\" \n id=\"triviaCategory\" \n placeholder=\"Category\" \n />\n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,SAAS,QAAQ,QAAQ;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAEnC,MAAMC,MAAM,GAAGC,OAAO,CAACC,GAAG,CAACC,cAAc;AACzC;AACA,MAAMC,aAAa,GAAG,IAAIC,aAAa,CAAC;EACpCL,MAAM,EAAEA;AACZ,CAAC,CAAC;AACF;AACA,MAAMM,MAAM,GAAG,IAAIT,SAAS,CAACO,aAAa,CAAC;AAE3C,SAASG,aAAaA,CAAA,EAAG;EAAAC,EAAA;EACrB,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGd,QAAQ,CAAC,EAAE,CAAC;EAC9D,MAAM,CAACe,QAAQ,EAAEC,WAAW,CAAC,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AAiB;QAAAN,QAAA,EAAC;MAAQ;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OACjE,CAAC;EAAA;IAAAH,QAAA,EAAAC,YAAA;IAAAC,UAAA;IAAAC,YAAA;EAAA,OAEN,CAAC;AAGd;AAACtB,EAAA,CAlEQD,aAAa;AAAAsC,EAAA,GAAbtC,aAAa;AAmEtB,eAAeA,aAAa;AAAC,IAAAsC,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0f331e84591b2074360299d825c7d3d6f54288d0d8d8bdc2c12bfbf3cbfc7534.json b/trivia-forge/node_modules/.cache/babel-loader/0f331e84591b2074360299d825c7d3d6f54288d0d8d8bdc2c12bfbf3cbfc7534.json deleted file mode 100644 index 2d1ea58a..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0f331e84591b2074360299d825c7d3d6f54288d0d8d8bdc2c12bfbf3cbfc7534.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst CardBody = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n className,\n bsPrefix,\n as: Component = 'div',\n ...props\n } = _ref;\n bsPrefix = useBootstrapPrefix(bsPrefix, 'card-body');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nCardBody.displayName = 'CardBody';\nexport default CardBody;","map":{"version":3,"names":["React","classNames","useBootstrapPrefix","jsx","_jsx","CardBody","forwardRef","_ref","ref","className","bsPrefix","as","Component","props","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/CardBody.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst CardBody = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'div',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'card-body');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nCardBody.displayName = 'CardBody';\nexport default CardBody;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,QAAQ,GAAG,aAAaL,KAAK,CAACM,UAAU,CAAC,CAAAC,IAAA,EAK5CC,GAAG,KAAK;EAAA,IALqC;IAC9CC,SAAS;IACTC,QAAQ;IACRC,EAAE,EAAEC,SAAS,GAAG,KAAK;IACrB,GAAGC;EACL,CAAC,GAAAN,IAAA;EACCG,QAAQ,GAAGR,kBAAkB,CAACQ,QAAQ,EAAE,WAAW,CAAC;EACpD,OAAO,aAAaN,IAAI,CAACQ,SAAS,EAAE;IAClCJ,GAAG,EAAEA,GAAG;IACRC,SAAS,EAAER,UAAU,CAACQ,SAAS,EAAEC,QAAQ,CAAC;IAC1C,GAAGG;EACL,CAAC,CAAC;AACJ,CAAC,CAAC;AACFR,QAAQ,CAACS,WAAW,GAAG,UAAU;AACjC,eAAeT,QAAQ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0f627186bb191ae795cb6ff00941a56abd0d850ac4ce3940af8f33493d8e08c2.json b/trivia-forge/node_modules/.cache/babel-loader/0f627186bb191ae795cb6ff00941a56abd0d850ac4ce3940af8f33493d8e08c2.json deleted file mode 100644 index 4dae524f..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0f627186bb191ae795cb6ff00941a56abd0d850ac4ce3940af8f33493d8e08c2.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\";\nimport React from \"react\";\nimport { jsxDEV as _jsxDEV, Fragment as _Fragment } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n return /*#__PURE__*/_jsxDEV(_Fragment, {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 6,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 10,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaQuestion\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaQuestion\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 13\n }, this)]\n }, void 0, true);\n}\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","jsxDEV","_jsxDEV","Fragment","_Fragment","TriviaGenPage","children","fileName","_jsxFileName","lineNumber","columnNumber","className","for","type","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React from \"react\";\n\nfunction TriviaGenPage() {\n return (\n <>\n

\n Trivia Generator\n

\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n \n
\n\n \n );\n\n}\nexport default TriviaGenPage;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA,EAAAC,QAAA,IAAAC,SAAA;AAE1B,SAASC,aAAaA,CAAA,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AA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAO,CAAC,eAC7CR,OAAA;UAAOW,IAAI,EAAC,MAAM;UAACF,SAAS,EAAC,cAAc;UAACG,EAAE,EAAC,cAAc;UAACC,WAAW,EAAC;QAAc;UAAAR,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAE,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAC1F,CAAC,eACNR,OAAA;QAAQW,IAAI,EAAC,QAAQ;QAACF,SAAS,EAAC,iBAAiB;QAAAL,QAAA,EAAC;MAAM;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAC/D,CAAC;EAAA,eAET,CAAC;AAGX;AAACM,EAAA,GAzBQX,aAAa;AA0BtB,eAAeA,aAAa;AAAC,IAAAW,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/0ffdde9b6371bbbe0eb428795f7cecf4d7133a3ffc7a1a2314ca8abd41de77ff.json b/trivia-forge/node_modules/.cache/babel-loader/0ffdde9b6371bbbe0eb428795f7cecf4d7133a3ffc7a1a2314ca8abd41de77ff.json deleted file mode 100644 index 6a11d5a3..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/0ffdde9b6371bbbe0eb428795f7cecf4d7133a3ffc7a1a2314ca8abd41de77ff.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import PropTypes from 'prop-types';\nimport { DEFAULT_BREAKPOINTS, DEFAULT_MIN_BREAKPOINT } from './ThemeProvider';\nexport function responsivePropType(propType) {\n return PropTypes.oneOfType([propType, PropTypes.shape({\n xs: propType,\n sm: propType,\n md: propType,\n lg: propType,\n xl: propType,\n xxl: propType\n })]);\n}\nexport default function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS, minBreakpoint = DEFAULT_MIN_BREAKPOINT) {\n const classes = [];\n Object.entries(utilityValues).forEach(([utilName, utilValue]) => {\n if (utilValue != null) {\n if (typeof utilValue === 'object') {\n breakpoints.forEach(brkPoint => {\n const bpValue = utilValue[brkPoint];\n if (bpValue != null) {\n const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';\n classes.push(`${utilName}${infix}-${bpValue}`);\n }\n });\n } else {\n classes.push(`${utilName}-${utilValue}`);\n }\n }\n });\n return classes;\n}","map":{"version":3,"names":["PropTypes","DEFAULT_BREAKPOINTS","DEFAULT_MIN_BREAKPOINT","responsivePropType","propType","oneOfType","shape","xs","sm","md","lg","xl","xxl","createUtilityClassName","utilityValues","breakpoints","minBreakpoint","classes","Object","entries","forEach","utilName","utilValue","brkPoint","bpValue","infix","push"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/createUtilityClasses.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { DEFAULT_BREAKPOINTS, DEFAULT_MIN_BREAKPOINT } from './ThemeProvider';\nexport function responsivePropType(propType) {\n return PropTypes.oneOfType([propType, PropTypes.shape({\n xs: propType,\n sm: propType,\n md: propType,\n lg: propType,\n xl: propType,\n xxl: propType\n })]);\n}\nexport default function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS, minBreakpoint = DEFAULT_MIN_BREAKPOINT) {\n const classes = [];\n Object.entries(utilityValues).forEach(([utilName, utilValue]) => {\n if (utilValue != null) {\n if (typeof utilValue === 'object') {\n breakpoints.forEach(brkPoint => {\n const bpValue = utilValue[brkPoint];\n if (bpValue != null) {\n const infix = brkPoint !== minBreakpoint ? `-${brkPoint}` : '';\n classes.push(`${utilName}${infix}-${bpValue}`);\n }\n });\n } else {\n classes.push(`${utilName}-${utilValue}`);\n }\n }\n });\n return classes;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":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/10203e49c523e1a5c57990affa796cfa0b5033f6a22a73d17788c3681a5ba6ba.json b/trivia-forge/node_modules/.cache/babel-loader/10203e49c523e1a5c57990affa796cfa0b5033f6a22a73d17788c3681a5ba6ba.json deleted file mode 100644 index 82558477..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/10203e49c523e1a5c57990affa796cfa0b5033f6a22a73d17788c3681a5ba6ba.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PopoverBody = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n className,\n bsPrefix,\n as: Component = 'div',\n ...props\n } = _ref;\n bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nPopoverBody.displayName = 'PopoverBody';\nexport default PopoverBody;","map":{"version":3,"names":["React","classNames","useBootstrapPrefix","jsx","_jsx","PopoverBody","forwardRef","_ref","ref","className","bsPrefix","as","Component","props","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/PopoverBody.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PopoverBody = /*#__PURE__*/React.forwardRef(({\n className,\n bsPrefix,\n as: Component = 'div',\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');\n return /*#__PURE__*/_jsx(Component, {\n ref: ref,\n className: classNames(className, bsPrefix),\n ...props\n });\n});\nPopoverBody.displayName = 'PopoverBody';\nexport default PopoverBody;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,WAAW,GAAG,aAAaL,KAAK,CAACM,UAAU,CAAC,CAAAC,IAAA,EAK/CC,GAAG,KAAK;EAAA,IALwC;IACjDC,SAAS;IACTC,QAAQ;IACRC,EAAE,EAAEC,SAAS,GAAG,KAAK;IACrB,GAAGC;EACL,CAAC,GAAAN,IAAA;EACCG,QAAQ,GAAGR,kBAAkB,CAACQ,QAAQ,EAAE,cAAc,CAAC;EACvD,OAAO,aAAaN,IAAI,CAACQ,SAAS,EAAE;IAClCJ,GAAG,EAAEA,GAAG;IACRC,SAAS,EAAER,UAAU,CAACQ,SAAS,EAAEC,QAAQ,CAAC;IAC1C,GAAGG;EACL,CAAC,CAAC;AACJ,CAAC,CAAC;AACFR,WAAW,CAACS,WAAW,GAAG,aAAa;AACvC,eAAeT,WAAW","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/102c36cdcecec617348d41de1f2d0a79e98e00a287dad438f8eb6dd45ecf2698.json b/trivia-forge/node_modules/.cache/babel-loader/102c36cdcecec617348d41de1f2d0a79e98e00a287dad438f8eb6dd45ecf2698.json deleted file mode 100644 index bdc90d27..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/102c36cdcecec617348d41de1f2d0a79e98e00a287dad438f8eb6dd45ecf2698.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"const _excluded = [\"eventKey\", \"disabled\", \"onClick\", \"active\", \"as\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport SelectableContext, { makeEventKey } from './SelectableContext';\nimport NavContext from './NavContext';\nimport Button from './Button';\nimport { dataAttr } from './DataKey';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Create a dropdown item. Returns a set of props for the dropdown item component\n * including an `onClick` handler that prevents selection when the item is disabled\n */\nexport function useDropdownItem(_ref2) {\n let {\n key,\n href,\n active,\n disabled,\n onClick\n } = _ref2;\n const onSelectCtx = useContext(SelectableContext);\n const navContext = useContext(NavContext);\n const {\n activeKey\n } = navContext || {};\n const eventKey = makeEventKey(key, href);\n const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;\n const handleClick = useEventCallback(event => {\n if (disabled) return;\n onClick == null ? void 0 : onClick(event);\n if (onSelectCtx && !event.isPropagationStopped()) {\n onSelectCtx(eventKey, event);\n }\n });\n return [{\n onClick: handleClick,\n 'aria-disabled': disabled || undefined,\n 'aria-selected': isActive,\n [dataAttr('dropdown-item')]: ''\n }, {\n isActive\n }];\n}\nconst DropdownItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n eventKey,\n disabled,\n onClick,\n active,\n as: Component = Button\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n const [dropdownItemProps] = useDropdownItem({\n key: eventKey,\n href: props.href,\n disabled,\n onClick,\n active\n });\n return /*#__PURE__*/_jsx(Component, Object.assign({}, props, {\n ref: ref\n }, dropdownItemProps));\n});\nDropdownItem.displayName = 'DropdownItem';\nexport default DropdownItem;","map":{"version":3,"names":["_excluded","_objectWithoutPropertiesLoose","source","excluded","target","sourceKeys","Object","keys","key","i","length","indexOf","React","useContext","useEventCallback","SelectableContext","makeEventKey","NavContext","Button","dataAttr","jsx","_jsx","useDropdownItem","_ref2","href","active","disabled","onClick","onSelectCtx","navContext","activeKey","eventKey","isActive","handleClick","event","isPropagationStopped","undefined","DropdownItem","forwardRef","_ref","ref","as","Component","props","dropdownItemProps","assign","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/ui/esm/DropdownItem.js"],"sourcesContent":["const _excluded = [\"eventKey\", \"disabled\", \"onClick\", \"active\", \"as\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport SelectableContext, { makeEventKey } from './SelectableContext';\nimport NavContext from './NavContext';\nimport Button from './Button';\nimport { dataAttr } from './DataKey';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Create a dropdown item. Returns a set of props for the dropdown item component\n * including an `onClick` handler that prevents selection when the item is disabled\n */\nexport function useDropdownItem({\n key,\n href,\n active,\n disabled,\n onClick\n}) {\n const onSelectCtx = useContext(SelectableContext);\n const navContext = useContext(NavContext);\n const {\n activeKey\n } = navContext || {};\n const eventKey = makeEventKey(key, href);\n const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;\n const handleClick = useEventCallback(event => {\n if (disabled) return;\n onClick == null ? void 0 : onClick(event);\n if (onSelectCtx && !event.isPropagationStopped()) {\n onSelectCtx(eventKey, event);\n }\n });\n return [{\n onClick: handleClick,\n 'aria-disabled': disabled || undefined,\n 'aria-selected': isActive,\n [dataAttr('dropdown-item')]: ''\n }, {\n isActive\n }];\n}\nconst DropdownItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n eventKey,\n disabled,\n onClick,\n active,\n as: Component = Button\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n const [dropdownItemProps] = useDropdownItem({\n key: eventKey,\n href: props.href,\n disabled,\n onClick,\n active\n });\n return /*#__PURE__*/_jsx(Component, Object.assign({}, props, {\n ref: ref\n }, dropdownItemProps));\n});\nDropdownItem.displayName = 'DropdownItem';\nexport default DropdownItem;"],"mappings":"AAAA,MAAMA,SAAS,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;AACrE,SAASC,6BAA6BA,CAACC,MAAM,EAAEC,QAAQ,EAAE;EAAE,IAAID,MAAM,IAAI,IAAI,EAAE,OAAO,CAAC,CAAC;EAAE,IAAIE,MAAM,GAAG,CAAC,CAAC;EAAE,IAAIC,UAAU,GAAGC,MAAM,CAACC,IAAI,CAACL,MAAM,CAAC;EAAE,IAAIM,GAAG,EAAEC,CAAC;EAAE,KAAKA,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,UAAU,CAACK,MAAM,EAAED,CAAC,EAAE,EAAE;IAAED,GAAG,GAAGH,UAAU,CAACI,CAAC,CAAC;IAAE,IAAIN,QAAQ,CAACQ,OAAO,CAACH,GAAG,CAAC,IAAI,CAAC,EAAE;IAAUJ,MAAM,CAACI,GAAG,CAAC,GAAGN,MAAM,CAACM,GAAG,CAAC;EAAE;EAAE,OAAOJ,MAAM;AAAE;AAClT,OAAO,KAAKQ,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,QAAQ,OAAO;AAClC,OAAOC,gBAAgB,MAAM,iCAAiC;AAC9D,OAAOC,iBAAiB,IAAIC,YAAY,QAAQ,qBAAqB;AACrE,OAAOC,UAAU,MAAM,cAAc;AACrC,OAAOC,MAAM,MAAM,UAAU;AAC7B,SAASC,QAAQ,QAAQ,WAAW;AACpC,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAAAC,KAAA,EAM5B;EAAA,IAN6B;IAC9Bf,GAAG;IACHgB,IAAI;IACJC,MAAM;IACNC,QAAQ;IACRC;EACF,CAAC,GAAAJ,KAAA;EACC,MAAMK,WAAW,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CAACnB,IAAI;IAChBE,QAAQ;IACRC,OAAO;IACPF;EACF,CAAC,CAAC;EACF,OAAO,aAAaJ,IAAI,CAACqB,SAAS,EAAEpC,MAAM,CAACuC,MAAM,CAAC,CAAC,CAAC,EAAEF,KAAK,EAAE;IAC3DH,GAAG,EAAEA;EACP,CAAC,EAAEI,iBAAiB,CAAC,CAAC;AACxB,CAAC,CAAC;AACFP,YAAY,CAACS,WAAW,GAAG,cAAc;AACzC,eAAeT,YAAY","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/10b1ec1be825c4b2318558197c2e7140bab62293e32836be46fc10e329aa92d0.json b/trivia-forge/node_modules/.cache/babel-loader/10b1ec1be825c4b2318558197c2e7140bab62293e32836be46fc10e329aa92d0.json deleted file mode 100644 index 7ed57a4b..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/10b1ec1be825c4b2318558197c2e7140bab62293e32836be46fc10e329aa92d0.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useButtonProps } from '@restart/ui/Button';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst Button = /*#__PURE__*/React.forwardRef(({\n as,\n bsPrefix,\n variant = 'primary',\n size,\n active = false,\n disabled = false,\n className,\n ...props\n}, ref) => {\n const prefix = useBootstrapPrefix(bsPrefix, 'btn');\n const [buttonProps, {\n tagName\n }] = useButtonProps({\n tagName: as,\n disabled,\n ...props\n });\n const Component = tagName;\n return /*#__PURE__*/_jsx(Component, {\n ...buttonProps,\n ...props,\n ref: ref,\n disabled: disabled,\n className: classNames(className, prefix, active && 'active', variant && `${prefix}-${variant}`, size && `${prefix}-${size}`, props.href && disabled && 'disabled')\n });\n});\nButton.displayName = 'Button';\nexport default Button;","map":{"version":3,"names":["classNames","React","useButtonProps","useBootstrapPrefix","jsx","_jsx","Button","forwardRef","as","bsPrefix","variant","size","active","disabled","className","props","ref","prefix","buttonProps","tagName","Component","href","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/Button.js"],"sourcesContent":["\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useButtonProps } from '@restart/ui/Button';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst Button = /*#__PURE__*/React.forwardRef(({\n as,\n bsPrefix,\n variant = 'primary',\n size,\n active = false,\n disabled = false,\n className,\n ...props\n}, ref) => {\n const prefix = useBootstrapPrefix(bsPrefix, 'btn');\n const [buttonProps, {\n tagName\n }] = useButtonProps({\n tagName: as,\n disabled,\n ...props\n });\n const Component = tagName;\n return /*#__PURE__*/_jsx(Component, {\n ...buttonProps,\n ...props,\n ref: ref,\n disabled: disabled,\n className: classNames(className, prefix, active && 'active', variant && `${prefix}-${variant}`, size && `${prefix}-${size}`, props.href && disabled && 'disabled')\n });\n});\nButton.displayName = 'Button';\nexport default Button;"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,QAAQ,oBAAoB;AACnD,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,MAAM,GAAG,aAAaL,KAAK,CAACM,UAAU,CAAC,CAAC;EAC5CC,EAAE;EACFC,QAAQ;EACRC,OAAO,GAAG,SAAS;EACnBC,IAAI;EACJC,MAAM,GAAG,KAAK;EACdC,QAAQ,GAAG,KAAK;EAChBC,SAAS;EACT,GAAGC;AACL,CAAC,EAAEC,GAAG,KAAK;EACT,MAAMC,MAAM,GAAGd,kBAAkB,CAACM,QAAQ,EAAE,KAAK,CAAC;EAClD,MAAM,CAACS,WAAW,EAAE;IAClBC;EACF,CAAC,CAAC,GAAGjB,cAAc,CAAC;IAClBiB,OAAO,EAAEX,EAAE;IACXK,QAAQ;IACR,GAAGE;EACL,CAAC,CAAC;EACF,MAAMK,SAAS,GAAGD,OAAO;EACzB,OAAO,aAAad,IAAI,CAACe,SAAS,EAAE;IAClC,GAAGF,WAAW;IACd,GAAGH,KAAK;IACRC,GAAG,EAAEA,GAAG;IACRH,QAAQ,EAAEA,QAAQ;IAClBC,SAAS,EAAEd,UAAU,CAACc,SAAS,EAAEG,MAAM,EAAEL,MAAM,IAAI,QAAQ,EAAEF,OAAO,IAAK,GAAEO,MAAO,IAAGP,OAAQ,EAAC,EAAEC,IAAI,IAAK,GAAEM,MAAO,IAAGN,IAAK,EAAC,EAAEI,KAAK,CAACM,IAAI,IAAIR,QAAQ,IAAI,UAAU;EACnK,CAAC,CAAC;AACJ,CAAC,CAAC;AACFP,MAAM,CAACgB,WAAW,GAAG,QAAQ;AAC7B,eAAehB,MAAM","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/10d905093e07001f52c84c4e486121f7b32fb662ee61d47c115376628424eb0f.json b/trivia-forge/node_modules/.cache/babel-loader/10d905093e07001f52c84c4e486121f7b32fb662ee61d47c115376628424eb0f.json deleted file mode 100644 index 0fc65187..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/10d905093e07001f52c84c4e486121f7b32fb662ee61d47c115376628424eb0f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { jsxDEV as _jsxDEV, Fragment as _Fragment } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault;\n };\n return /*#__PURE__*/_jsxDEV(_Fragment, {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 20,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaQuestion\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaQuestion\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 13\n }, this)]\n }, void 0, true);\n}\n_s(TriviaGenPage, \"hg16lLzJerCd9XnW4Ja5h3Su2Cs=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","jsxDEV","_jsxDEV","Fragment","_Fragment","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","children","fileName","_jsxFileName","lineNumber","columnNumber","className","for","type","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n\n const handleSubmit = async (event) => {\n event.preventDefault\n }\n\n\n return (\n <>\n

\n Trivia Generator\n

\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n \n
\n\n \n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA,EAAAC,QAAA,IAAAC,SAAA;AAExC,SAASC,aAAaA,CAAA,EAAG;EAAAC,EAAA;EACrB,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGR,QAAQ,CAAC,CAAC,CAAC;EAC7D,MAAM,CAACS,QAAQ,EAAEC,WAAW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A;QAAKiB,SAAS,EAAC,YAAY;QAAAL,QAAA,gBACvBZ,OAAA;UAAOkB,GAAG,EAAC,cAAc;UAAAN,QAAA,EAAC;QAAW;UAAAC,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAO,CAAC,eAC7ChB,OAAA;UAAOmB,IAAI,EAAC,MAAM;UAACF,SAAS,EAAC,cAAc;UAACG,EAAE,EAAC,cAAc;UAACC,WAAW,EAAC;QAAc;UAAAR,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAE,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAC1F,CAAC,eACNhB,OAAA;QAAQmB,IAAI,EAAC,QAAQ;QAACF,SAAS,EAAC,iBAAiB;QAAAL,QAAA,EAAC;MAAM;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAC/D,CAAC;EAAA,eAET,CAAC;AAGX;AAACZ,EAAA,CAjCQD,aAAa;AAAAmB,EAAA,GAAbnB,aAAa;AAkCtB,eAAeA,aAAa;AAAC,IAAAmB,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/117b5ec6f84056b2ef4ef2e0ba07c4081e5576ff5093d933426e820818a3fb93.json b/trivia-forge/node_modules/.cache/babel-loader/117b5ec6f84056b2ef4ef2e0ba07c4081e5576ff5093d933426e820818a3fb93.json deleted file mode 100644 index 4723fc68..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/117b5ec6f84056b2ef4ef2e0ba07c4081e5576ff5093d933426e820818a3fb93.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import * as React from 'react';\nimport Tabs from '@restart/ui/Tabs';\nimport getTabTransitionComponent from './getTabTransitionComponent';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst TabContainer = _ref => {\n let {\n transition,\n ...props\n } = _ref;\n return /*#__PURE__*/_jsx(Tabs, {\n ...props,\n transition: getTabTransitionComponent(transition)\n });\n};\nTabContainer.displayName = 'TabContainer';\nexport default TabContainer;","map":{"version":3,"names":["React","Tabs","getTabTransitionComponent","jsx","_jsx","TabContainer","_ref","transition","props","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/TabContainer.js"],"sourcesContent":["import * as React from 'react';\nimport Tabs from '@restart/ui/Tabs';\nimport getTabTransitionComponent from './getTabTransitionComponent';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst TabContainer = ({\n transition,\n ...props\n}) => /*#__PURE__*/_jsx(Tabs, {\n ...props,\n transition: getTabTransitionComponent(transition)\n});\nTabContainer.displayName = 'TabContainer';\nexport default TabContainer;"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,IAAI,MAAM,kBAAkB;AACnC,OAAOC,yBAAyB,MAAM,6BAA6B;AACnE,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,YAAY,GAAGC,IAAA;EAAA,IAAC;IACpBC,UAAU;IACV,GAAGC;EACL,CAAC,GAAAF,IAAA;EAAA,OAAK,aAAaF,IAAI,CAACH,IAAI,EAAE;IAC5B,GAAGO,KAAK;IACRD,UAAU,EAAEL,yBAAyB,CAACK,UAAU;EAClD,CAAC,CAAC;AAAA;AACFF,YAAY,CAACI,WAAW,GAAG,cAAc;AACzC,eAAeJ,YAAY","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/11960c2cc1105af4089d036878634946087725f4f751004f590a48a08155a006.json b/trivia-forge/node_modules/.cache/babel-loader/11960c2cc1105af4089d036878634946087725f4f751004f590a48a08155a006.json deleted file mode 100644 index fc5ee19d..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/11960c2cc1105af4089d036878634946087725f4f751004f590a48a08155a006.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nvar _jsxFileName = \"/Users/jquense/src/uncontrollable/src/uncontrollable.js\";\nimport React from 'react';\nimport { polyfill } from 'react-lifecycles-compat';\nimport invariant from 'invariant';\nimport * as Utils from './utils';\nexport default function uncontrollable(Component, controlledValues, methods) {\n if (methods === void 0) {\n methods = [];\n }\n var displayName = Component.displayName || Component.name || 'Component';\n var canAcceptRef = Utils.canAcceptRef(Component);\n var controlledProps = Object.keys(controlledValues);\n var PROPS_TO_OMIT = controlledProps.map(Utils.defaultKey);\n !(canAcceptRef || !methods.length) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '[uncontrollable] stateless function components cannot pass through methods ' + 'because they have no associated instances. Check component: ' + displayName + ', ' + 'attempting to pass through methods: ' + methods.join(', ')) : invariant(false) : void 0;\n var UncontrolledComponent = /*#__PURE__*/\n function (_React$Component) {\n _inheritsLoose(UncontrolledComponent, _React$Component);\n function UncontrolledComponent() {\n var _this;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.handlers = Object.create(null);\n controlledProps.forEach(function (propName) {\n var handlerName = controlledValues[propName];\n var handleChange = function handleChange(value) {\n if (_this.props[handlerName]) {\n var _this$props;\n _this._notifying = true;\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n (_this$props = _this.props)[handlerName].apply(_this$props, [value].concat(args));\n _this._notifying = false;\n }\n if (!_this.unmounted) _this.setState(function (_ref) {\n var _extends2;\n var values = _ref.values;\n return {\n values: _extends(Object.create(null), values, (_extends2 = {}, _extends2[propName] = value, _extends2))\n };\n });\n };\n _this.handlers[handlerName] = handleChange;\n });\n if (methods.length) _this.attachRef = function (ref) {\n _this.inner = ref;\n };\n var values = Object.create(null);\n controlledProps.forEach(function (key) {\n values[key] = _this.props[Utils.defaultKey(key)];\n });\n _this.state = {\n values: values,\n prevProps: {}\n };\n return _this;\n }\n var _proto = UncontrolledComponent.prototype;\n _proto.shouldComponentUpdate = function shouldComponentUpdate() {\n //let setState trigger the update\n return !this._notifying;\n };\n UncontrolledComponent.getDerivedStateFromProps = function getDerivedStateFromProps(props, _ref2) {\n var values = _ref2.values,\n prevProps = _ref2.prevProps;\n var nextState = {\n values: _extends(Object.create(null), values),\n prevProps: {}\n };\n controlledProps.forEach(function (key) {\n /**\n * If a prop switches from controlled to Uncontrolled\n * reset its value to the defaultValue\n */\n nextState.prevProps[key] = props[key];\n if (!Utils.isProp(props, key) && Utils.isProp(prevProps, key)) {\n nextState.values[key] = props[Utils.defaultKey(key)];\n }\n });\n return nextState;\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.unmounted = true;\n };\n _proto.render = function render() {\n var _this2 = this;\n var _this$props2 = this.props,\n innerRef = _this$props2.innerRef,\n props = _objectWithoutPropertiesLoose(_this$props2, [\"innerRef\"]);\n PROPS_TO_OMIT.forEach(function (prop) {\n delete props[prop];\n });\n var newProps = {};\n controlledProps.forEach(function (propName) {\n var propValue = _this2.props[propName];\n newProps[propName] = propValue !== undefined ? propValue : _this2.state.values[propName];\n });\n return React.createElement(Component, _extends({}, props, newProps, this.handlers, {\n ref: innerRef || this.attachRef\n }));\n };\n return UncontrolledComponent;\n }(React.Component);\n polyfill(UncontrolledComponent);\n UncontrolledComponent.displayName = \"Uncontrolled(\" + displayName + \")\";\n UncontrolledComponent.propTypes = _extends({\n innerRef: function innerRef() {}\n }, Utils.uncontrolledPropTypes(controlledValues, displayName));\n methods.forEach(function (method) {\n UncontrolledComponent.prototype[method] = function $proxiedMethod() {\n var _this$inner;\n return (_this$inner = this.inner)[method].apply(_this$inner, arguments);\n };\n });\n var WrappedComponent = UncontrolledComponent;\n if (React.forwardRef) {\n WrappedComponent = React.forwardRef(function (props, ref) {\n return React.createElement(UncontrolledComponent, _extends({}, props, {\n innerRef: ref,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 128\n },\n __self: this\n }));\n });\n WrappedComponent.propTypes = UncontrolledComponent.propTypes;\n }\n WrappedComponent.ControlledComponent = Component;\n /**\n * useful when wrapping a Component and you want to control\n * everything\n */\n\n WrappedComponent.deferControlTo = function (newComponent, additions, nextMethods) {\n if (additions === void 0) {\n additions = {};\n }\n return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods);\n };\n return WrappedComponent;\n}","map":{"version":3,"names":["_objectWithoutPropertiesLoose","_extends","_inheritsLoose","_jsxFileName","React","polyfill","invariant","Utils","uncontrollable","Component","controlledValues","methods","displayName","name","canAcceptRef","controlledProps","Object","keys","PROPS_TO_OMIT","map","defaultKey","length","process","env","NODE_ENV","join","UncontrolledComponent","_React$Component","_this","_len","arguments","args","Array","_key","call","apply","concat","handlers","create","forEach","propName","handlerName","handleChange","value","props","_this$props","_notifying","_len2","_key2","unmounted","setState","_ref","_extends2","values","attachRef","ref","inner","key","state","prevProps","_proto","prototype","shouldComponentUpdate","getDerivedStateFromProps","_ref2","nextState","isProp","componentWillUnmount","render","_this2","_this$props2","innerRef","prop","newProps","propValue","undefined","createElement","propTypes","uncontrolledPropTypes","method","$proxiedMethod","_this$inner","WrappedComponent","forwardRef","__source","fileName","lineNumber","__self","ControlledComponent","deferControlTo","newComponent","additions","nextMethods"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/uncontrollable/lib/esm/uncontrollable.js"],"sourcesContent":["import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nvar _jsxFileName = \"/Users/jquense/src/uncontrollable/src/uncontrollable.js\";\nimport React from 'react';\nimport { polyfill } from 'react-lifecycles-compat';\nimport invariant from 'invariant';\nimport * as Utils from './utils';\nexport default function uncontrollable(Component, controlledValues, methods) {\n if (methods === void 0) {\n methods = [];\n }\n\n var displayName = Component.displayName || Component.name || 'Component';\n var canAcceptRef = Utils.canAcceptRef(Component);\n var controlledProps = Object.keys(controlledValues);\n var PROPS_TO_OMIT = controlledProps.map(Utils.defaultKey);\n !(canAcceptRef || !methods.length) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '[uncontrollable] stateless function components cannot pass through methods ' + 'because they have no associated instances. Check component: ' + displayName + ', ' + 'attempting to pass through methods: ' + methods.join(', ')) : invariant(false) : void 0;\n\n var UncontrolledComponent =\n /*#__PURE__*/\n function (_React$Component) {\n _inheritsLoose(UncontrolledComponent, _React$Component);\n\n function UncontrolledComponent() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.handlers = Object.create(null);\n controlledProps.forEach(function (propName) {\n var handlerName = controlledValues[propName];\n\n var handleChange = function handleChange(value) {\n if (_this.props[handlerName]) {\n var _this$props;\n\n _this._notifying = true;\n\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n (_this$props = _this.props)[handlerName].apply(_this$props, [value].concat(args));\n\n _this._notifying = false;\n }\n\n if (!_this.unmounted) _this.setState(function (_ref) {\n var _extends2;\n\n var values = _ref.values;\n return {\n values: _extends(Object.create(null), values, (_extends2 = {}, _extends2[propName] = value, _extends2))\n };\n });\n };\n\n _this.handlers[handlerName] = handleChange;\n });\n if (methods.length) _this.attachRef = function (ref) {\n _this.inner = ref;\n };\n var values = Object.create(null);\n controlledProps.forEach(function (key) {\n values[key] = _this.props[Utils.defaultKey(key)];\n });\n _this.state = {\n values: values,\n prevProps: {}\n };\n return _this;\n }\n\n var _proto = UncontrolledComponent.prototype;\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate() {\n //let setState trigger the update\n return !this._notifying;\n };\n\n UncontrolledComponent.getDerivedStateFromProps = function getDerivedStateFromProps(props, _ref2) {\n var values = _ref2.values,\n prevProps = _ref2.prevProps;\n var nextState = {\n values: _extends(Object.create(null), values),\n prevProps: {}\n };\n controlledProps.forEach(function (key) {\n /**\n * If a prop switches from controlled to Uncontrolled\n * reset its value to the defaultValue\n */\n nextState.prevProps[key] = props[key];\n\n if (!Utils.isProp(props, key) && Utils.isProp(prevProps, key)) {\n nextState.values[key] = props[Utils.defaultKey(key)];\n }\n });\n return nextState;\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.unmounted = true;\n };\n\n _proto.render = function render() {\n var _this2 = this;\n\n var _this$props2 = this.props,\n innerRef = _this$props2.innerRef,\n props = _objectWithoutPropertiesLoose(_this$props2, [\"innerRef\"]);\n\n PROPS_TO_OMIT.forEach(function (prop) {\n delete props[prop];\n });\n var newProps = {};\n controlledProps.forEach(function (propName) {\n var propValue = _this2.props[propName];\n newProps[propName] = propValue !== undefined ? propValue : _this2.state.values[propName];\n });\n return React.createElement(Component, _extends({}, props, newProps, this.handlers, {\n ref: innerRef || this.attachRef\n }));\n };\n\n return UncontrolledComponent;\n }(React.Component);\n\n polyfill(UncontrolledComponent);\n UncontrolledComponent.displayName = \"Uncontrolled(\" + displayName + \")\";\n UncontrolledComponent.propTypes = _extends({\n innerRef: function innerRef() {}\n }, Utils.uncontrolledPropTypes(controlledValues, displayName));\n methods.forEach(function (method) {\n UncontrolledComponent.prototype[method] = function $proxiedMethod() {\n var _this$inner;\n\n return (_this$inner = this.inner)[method].apply(_this$inner, arguments);\n };\n });\n var WrappedComponent = UncontrolledComponent;\n\n if (React.forwardRef) {\n WrappedComponent = React.forwardRef(function (props, ref) {\n return React.createElement(UncontrolledComponent, _extends({}, props, {\n innerRef: ref,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 128\n },\n __self: this\n }));\n });\n WrappedComponent.propTypes = UncontrolledComponent.propTypes;\n }\n\n WrappedComponent.ControlledComponent = Component;\n /**\n * useful when wrapping a Component and you want to control\n * everything\n */\n\n WrappedComponent.deferControlTo = function (newComponent, additions, nextMethods) {\n if (additions === void 0) {\n additions = {};\n }\n\n return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods);\n };\n\n return WrappedComponent;\n}"],"mappings":"AAAA,OAAOA,6BAA6B,MAAM,yDAAyD;AACnG,OAAOC,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,cAAc,MAAM,0CAA0C;AACrE,IAAIC,YAAY,GAAG,yDAAyD;AAC5E,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,OAAOC,SAAS,MAAM,WAAW;AACjC,OAAO,KAAKC,KAAK,MAAM,SAAS;AAChC,eAAe,SAASC,cAAcA,CAACC,SAAS,EAAEC,gBAAgB,EAAEC,OAAO,EAAE;EAC3E,IAAIA,OAAO,KAAK,KAAK,CAAC,EAAE;IACtBA,OAAO,GAAG,EAAE;EACd;EAEA,IAAIC,WAAW,GAAGH,SAAS,CAACG,WAAW,IAAIH,SAAS,CAACI,IAAI,IAAI,WAAW;EACxE,IAAIC,YAAY,GAAGP,KAAK,CAACO,YAAY,CAACL,SAAS,CAAC;EAChD,IAAIM,eAAe,GAAGC,MAAM,CAACC,IAAI,CAACP,gBAAgB,CAAC;EACnD,IAAIQ,aAAa,GAAGH,eAAe,CAACI,GAAG,CAACZ,KAAK,CAACa,UAAU,CAAC;EACzD,EAAEN,YAAY,IAAI,CAACH,OAAO,CAACU,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List":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/119819cfacaa8c6f73dbe6190736615fc29f47ca6a734143bfe9ce0795fcb1c4.json b/trivia-forge/node_modules/.cache/babel-loader/119819cfacaa8c6f73dbe6190736615fc29f47ca6a734143bfe9ce0795fcb1c4.json deleted file mode 100644 index 32f6d351..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/119819cfacaa8c6f73dbe6190736615fc29f47ca6a734143bfe9ce0795fcb1c4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"/**\n * Like `Promise.allSettled()` but throws an error if any promises are rejected.\n */\nexport const allSettledWithThrow = async promises => {\n const results = await Promise.allSettled(promises);\n const rejected = results.filter(result => result.status === 'rejected');\n if (rejected.length) {\n for (const result of rejected) {\n console.error(result.reason);\n }\n throw new Error(\"\".concat(rejected.length, \" promise(s) failed - see the above errors\"));\n }\n // Note: TS was complaining about using `.filter().map()` here for some reason\n const values = [];\n for (const result of results) {\n if (result.status === 'fulfilled') {\n values.push(result.value);\n }\n }\n return values;\n};","map":{"version":3,"names":["allSettledWithThrow","promises","results","Promise","allSettled","rejected","filter","result","status","length","console","error","reason","Error","concat","values","push","value"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/openai/src/lib/Util.ts"],"sourcesContent":["/**\n * Like `Promise.allSettled()` but throws an error if any promises are rejected.\n */\nexport const allSettledWithThrow = async (promises: Promise[]): Promise => {\n const results = await Promise.allSettled(promises);\n const rejected = results.filter((result): result is PromiseRejectedResult => result.status === 'rejected');\n if (rejected.length) {\n for (const result of rejected) {\n console.error(result.reason);\n }\n\n throw new Error(`${rejected.length} promise(s) failed - see the above errors`);\n }\n\n // Note: TS was complaining about using `.filter().map()` here for some reason\n const values: R[] = [];\n for (const result of results) {\n if (result.status === 'fulfilled') {\n values.push(result.value);\n }\n }\n return values;\n};\n"],"mappings":"AAAA;;;AAGA,OAAO,MAAMA,mBAAmB,GAAG,MAAUC,QAAsB,IAAkB;EACnF,MAAMC,OAAO,GAAG,MAAMC,OAAO,CAACC,UAAU,CAACH,QAAQ,CAAC;EAClD,MAAMI,QAAQ,GAAGH,OAAO,CAACI,MAAM,CAAEC,MAAM,IAAsCA,MAAM,CAACC,MAAM,KAAK,UAAU,CAAC;EAC1G,IAAIH,QAAQ,CAACI,MAAM,EAAE;IACnB,KAAK,MAAMF,MAAM,IAAIF,QAAQ,EAAE;MAC7BK,OAAO,CAACC,KAAK,CAACJ,MAAM,CAACK,MAAM,CAAC;;IAG9B,MAAM,IAAIC,KAAK,IAAAC,MAAA,CAAIT,QAAQ,CAACI,MAAM,8CAA2C,CAAC;;EAGhF;EACA,MAAMM,MAAM,GAAQ,EAAE;EACtB,KAAK,MAAMR,MAAM,IAAIL,OAAO,EAAE;IAC5B,IAAIK,MAAM,CAACC,MAAM,KAAK,WAAW,EAAE;MACjCO,MAAM,CAACC,IAAI,CAACT,MAAM,CAACU,KAAK,CAAC;;;EAG7B,OAAOF,MAAM;AACf,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/11ac550e7964fbad7bc1d12dff0e0540d63540e8e0b886275557732eb3c4842a.json b/trivia-forge/node_modules/.cache/babel-loader/11ac550e7964fbad7bc1d12dff0e0540d63540e8e0b886275557732eb3c4842a.json deleted file mode 100644 index bf2e27fa..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/11ac550e7964fbad7bc1d12dff0e0540d63540e8e0b886275557732eb3c4842a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaQuestion\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaQuestion\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"hg16lLzJerCd9XnW4Ja5h3Su2Cs=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","jsxDEV","_jsxDEV","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","console","log","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAA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AAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/12226643ed305a69ee6a9914cc3a2feb24e8067331f09247fad7d59fe2bfaa50.json b/trivia-forge/node_modules/.cache/babel-loader/12226643ed305a69ee6a9914cc3a2feb24e8067331f09247fad7d59fe2bfaa50.json deleted file mode 100644 index 4cf641ee..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/12226643ed305a69ee6a9914cc3a2feb24e8067331f09247fad7d59fe2bfaa50.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n value: numberOfQuestions,\n onChange: e => setNumberOfQuestions,\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaQuestion\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaQuestion\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"hg16lLzJerCd9XnW4Ja5h3Su2Cs=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","jsxDEV","_jsxDEV","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","console","log","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","value","onChange","e","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n setNumberOfQuestions}\n className=\"form-control\" \n id=\"triviaTitle\" \n placeholder=\"Place holder\" \n />\n
\n
\n \n \n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAExC,SAASC,aAAaA,CAAA,EAAG;EAAAC,EAAA;EACrB,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGN,QAAQ,CAAC,CAAC,CAAC;EAC7D,MAAM,CAACO,QAAQ,EAAEC,WAAW,CAAC,GAAGR,QAAQ,CAAC,EAAE,CAAC;EAE5C,MAAMS,YAAY,GAAG,MAAOC,KAAK,IAAK;IAClCA,KAAK,CAACC,cAAc,CAAC,CAAC;;IAGtB;;IAEAC,OAAO,CAACC,GAAG,CAAC;MACRR,iBAAiB;MACjBE;IACJ,CAAC,CAAC;;IAEF;EAEJ,CAAC;EAGD,oBACIL,OAAA;IAAAY,QAAA,gBACIZ,OAAA;MAAAY,QAAA,EAAI;IAEJ;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C;QAAW;UAAAC,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAO,CAAC,eAC7ChB,OAAA;UAAOoB,IAAI,EAAC,MAAM;UAACF,SAAS,EAAC,cAAc;UAACM,EAAE,EAAC,cAAc;UAACC,WAAW,EAAC;QAAc;UAAAZ,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAE,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAC1F,CAAC,eACNhB,OAAA;QAAQoB,IAAI,EAAC,QAAQ;QAACF,SAAS,EAAC,iBAAiB;QAAAN,QAAA,EAAC;MAAM;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAC/D,CAAC;EAAA;IAAAH,QAAA,EAAAC,YAAA;IAAAC,UAAA;IAAAC,YAAA;EAAA,OAEN,CAAC;AAGd;AAACd,EAAA,CAnDQD,aAAa;AAAAyB,EAAA,GAAbzB,aAAa;AAoDtB,eAAeA,aAAa;AAAC,IAAAyB,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/126dd0db7352e58c780e0d06e255380f890baa507f2e53268f2f538de8365a84.json b/trivia-forge/node_modules/.cache/babel-loader/126dd0db7352e58c780e0d06e255380f890baa507f2e53268f2f538de8365a84.json deleted file mode 100644 index 45f86b11..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/126dd0db7352e58c780e0d06e255380f890baa507f2e53268f2f538de8365a84.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport useUpdateEffect from '@restart/hooks/useUpdateEffect';\nimport useCommittedRef from '@restart/hooks/useCommittedRef';\nimport useTimeout from '@restart/hooks/useTimeout';\nimport Anchor from '@restart/ui/Anchor';\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';\nimport { useUncontrolled } from 'uncontrollable';\nimport CarouselCaption from './CarouselCaption';\nimport CarouselItem from './CarouselItem';\nimport { map, forEach } from './ElementChildren';\nimport { useBootstrapPrefix, useIsRTL } from './ThemeProvider';\nimport transitionEndListener from './transitionEndListener';\nimport triggerBrowserReflow from './triggerBrowserReflow';\nimport TransitionWrapper from './TransitionWrapper';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nconst SWIPE_THRESHOLD = 40;\nfunction isVisible(element) {\n if (!element || !element.style || !element.parentNode || !element.parentNode.style) {\n return false;\n }\n const elementStyle = getComputedStyle(element);\n return elementStyle.display !== 'none' && elementStyle.visibility !== 'hidden' && getComputedStyle(element.parentNode).display !== 'none';\n}\nconst Carousel = /*#__PURE__*/React.forwardRef(({\n defaultActiveIndex = 0,\n ...uncontrolledProps\n}, ref) => {\n const {\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n bsPrefix,\n slide = true,\n fade = false,\n controls = true,\n indicators = true,\n indicatorLabels = [],\n activeIndex,\n onSelect,\n onSlide,\n onSlid,\n interval = 5000,\n keyboard = true,\n onKeyDown,\n pause = 'hover',\n onMouseOver,\n onMouseOut,\n wrap = true,\n touch = true,\n onTouchStart,\n onTouchMove,\n onTouchEnd,\n prevIcon = /*#__PURE__*/_jsx(\"span\", {\n \"aria-hidden\": \"true\",\n className: \"carousel-control-prev-icon\"\n }),\n prevLabel = 'Previous',\n nextIcon = /*#__PURE__*/_jsx(\"span\", {\n \"aria-hidden\": \"true\",\n className: \"carousel-control-next-icon\"\n }),\n nextLabel = 'Next',\n variant,\n className,\n children,\n ...props\n } = useUncontrolled({\n defaultActiveIndex,\n ...uncontrolledProps\n }, {\n activeIndex: 'onSelect'\n });\n const prefix = useBootstrapPrefix(bsPrefix, 'carousel');\n const isRTL = useIsRTL();\n const nextDirectionRef = useRef(null);\n const [direction, setDirection] = useState('next');\n const [paused, setPaused] = useState(false);\n const [isSliding, setIsSliding] = useState(false);\n const [renderedActiveIndex, setRenderedActiveIndex] = useState(activeIndex || 0);\n useEffect(() => {\n if (!isSliding && activeIndex !== renderedActiveIndex) {\n if (nextDirectionRef.current) {\n setDirection(nextDirectionRef.current);\n } else {\n setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');\n }\n if (slide) {\n setIsSliding(true);\n }\n setRenderedActiveIndex(activeIndex || 0);\n }\n }, [activeIndex, isSliding, renderedActiveIndex, slide]);\n useEffect(() => {\n if (nextDirectionRef.current) {\n nextDirectionRef.current = null;\n }\n });\n let numChildren = 0;\n let activeChildInterval;\n\n // Iterate to grab all of the children's interval values\n // (and count them, too)\n forEach(children, (child, index) => {\n ++numChildren;\n if (index === activeIndex) {\n activeChildInterval = child.props.interval;\n }\n });\n const activeChildIntervalRef = useCommittedRef(activeChildInterval);\n const prev = useCallback(event => {\n if (isSliding) {\n return;\n }\n let nextActiveIndex = renderedActiveIndex - 1;\n if (nextActiveIndex < 0) {\n if (!wrap) {\n return;\n }\n nextActiveIndex = numChildren - 1;\n }\n nextDirectionRef.current = 'prev';\n onSelect == null ? void 0 : onSelect(nextActiveIndex, event);\n }, [isSliding, renderedActiveIndex, onSelect, wrap, numChildren]);\n\n // This is used in the setInterval, so it should not invalidate.\n const next = useEventCallback(event => {\n if (isSliding) {\n return;\n }\n let nextActiveIndex = renderedActiveIndex + 1;\n if (nextActiveIndex >= numChildren) {\n if (!wrap) {\n return;\n }\n nextActiveIndex = 0;\n }\n nextDirectionRef.current = 'next';\n onSelect == null ? void 0 : onSelect(nextActiveIndex, event);\n });\n const elementRef = useRef();\n useImperativeHandle(ref, () => ({\n element: elementRef.current,\n prev,\n next\n }));\n\n // This is used in the setInterval, so it should not invalidate.\n const nextWhenVisible = useEventCallback(() => {\n if (!document.hidden && isVisible(elementRef.current)) {\n if (isRTL) {\n prev();\n } else {\n next();\n }\n }\n });\n const slideDirection = direction === 'next' ? 'start' : 'end';\n useUpdateEffect(() => {\n if (slide) {\n // These callbacks will be handled by the callbacks.\n return;\n }\n onSlide == null ? void 0 : onSlide(renderedActiveIndex, slideDirection);\n onSlid == null ? void 0 : onSlid(renderedActiveIndex, slideDirection);\n }, [renderedActiveIndex]);\n const orderClassName = `${prefix}-item-${direction}`;\n const directionalClassName = `${prefix}-item-${slideDirection}`;\n const handleEnter = useCallback(node => {\n triggerBrowserReflow(node);\n onSlide == null ? void 0 : onSlide(renderedActiveIndex, slideDirection);\n }, [onSlide, renderedActiveIndex, slideDirection]);\n const handleEntered = useCallback(() => {\n setIsSliding(false);\n onSlid == null ? void 0 : onSlid(renderedActiveIndex, slideDirection);\n }, [onSlid, renderedActiveIndex, slideDirection]);\n const handleKeyDown = useCallback(event => {\n if (keyboard && !/input|textarea/i.test(event.target.tagName)) {\n switch (event.key) {\n case 'ArrowLeft':\n event.preventDefault();\n if (isRTL) {\n next(event);\n } else {\n prev(event);\n }\n return;\n case 'ArrowRight':\n event.preventDefault();\n if (isRTL) {\n prev(event);\n } else {\n next(event);\n }\n return;\n default:\n }\n }\n onKeyDown == null ? void 0 : onKeyDown(event);\n }, [keyboard, onKeyDown, prev, next, isRTL]);\n const handleMouseOver = useCallback(event => {\n if (pause === 'hover') {\n setPaused(true);\n }\n onMouseOver == null ? void 0 : onMouseOver(event);\n }, [pause, onMouseOver]);\n const handleMouseOut = useCallback(event => {\n setPaused(false);\n onMouseOut == null ? void 0 : onMouseOut(event);\n }, [onMouseOut]);\n const touchStartXRef = useRef(0);\n const touchDeltaXRef = useRef(0);\n const touchUnpauseTimeout = useTimeout();\n const handleTouchStart = useCallback(event => {\n touchStartXRef.current = event.touches[0].clientX;\n touchDeltaXRef.current = 0;\n if (pause === 'hover') {\n setPaused(true);\n }\n onTouchStart == null ? void 0 : onTouchStart(event);\n }, [pause, onTouchStart]);\n const handleTouchMove = useCallback(event => {\n if (event.touches && event.touches.length > 1) {\n touchDeltaXRef.current = 0;\n } else {\n touchDeltaXRef.current = event.touches[0].clientX - touchStartXRef.current;\n }\n onTouchMove == null ? void 0 : onTouchMove(event);\n }, [onTouchMove]);\n const handleTouchEnd = useCallback(event => {\n if (touch) {\n const touchDeltaX = touchDeltaXRef.current;\n if (Math.abs(touchDeltaX) > SWIPE_THRESHOLD) {\n if (touchDeltaX > 0) {\n prev(event);\n } else {\n next(event);\n }\n }\n }\n if (pause === 'hover') {\n touchUnpauseTimeout.set(() => {\n setPaused(false);\n }, interval || undefined);\n }\n onTouchEnd == null ? void 0 : onTouchEnd(event);\n }, [touch, pause, prev, next, touchUnpauseTimeout, interval, onTouchEnd]);\n const shouldPlay = interval != null && !paused && !isSliding;\n const intervalHandleRef = useRef();\n useEffect(() => {\n var _ref, _activeChildIntervalR;\n if (!shouldPlay) {\n return undefined;\n }\n const nextFunc = isRTL ? prev : next;\n intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : nextFunc, (_ref = (_activeChildIntervalR = activeChildIntervalRef.current) != null ? _activeChildIntervalR : interval) != null ? _ref : undefined);\n return () => {\n if (intervalHandleRef.current !== null) {\n clearInterval(intervalHandleRef.current);\n }\n };\n }, [shouldPlay, prev, next, activeChildIntervalRef, interval, nextWhenVisible, isRTL]);\n const indicatorOnClicks = useMemo(() => indicators && Array.from({\n length: numChildren\n }, (_, index) => event => {\n onSelect == null ? void 0 : onSelect(index, event);\n }), [indicators, numChildren, onSelect]);\n return /*#__PURE__*/_jsxs(Component, {\n ref: elementRef,\n ...props,\n onKeyDown: handleKeyDown,\n onMouseOver: handleMouseOver,\n onMouseOut: handleMouseOut,\n onTouchStart: handleTouchStart,\n onTouchMove: handleTouchMove,\n onTouchEnd: handleTouchEnd,\n className: classNames(className, prefix, slide && 'slide', fade && `${prefix}-fade`, variant && `${prefix}-${variant}`),\n children: [indicators && /*#__PURE__*/_jsx(\"div\", {\n className: `${prefix}-indicators`,\n children: map(children, (_, index) => /*#__PURE__*/_jsx(\"button\", {\n type: \"button\",\n \"data-bs-target\": \"\" // Bootstrap requires this in their css.\n ,\n\n \"aria-label\": indicatorLabels != null && indicatorLabels.length ? indicatorLabels[index] : `Slide ${index + 1}`,\n className: index === renderedActiveIndex ? 'active' : undefined,\n onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined,\n \"aria-current\": index === renderedActiveIndex\n }, index))\n }), /*#__PURE__*/_jsx(\"div\", {\n className: `${prefix}-inner`,\n children: map(children, (child, index) => {\n const isActive = index === renderedActiveIndex;\n return slide ? /*#__PURE__*/_jsx(TransitionWrapper, {\n in: isActive,\n onEnter: isActive ? handleEnter : undefined,\n onEntered: isActive ? handleEntered : undefined,\n addEndListener: transitionEndListener,\n children: (status, innerProps) => /*#__PURE__*/React.cloneElement(child, {\n ...innerProps,\n className: classNames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)\n })\n }) : ( /*#__PURE__*/React.cloneElement(child, {\n className: classNames(child.props.className, isActive && 'active')\n }));\n })\n }), controls && /*#__PURE__*/_jsxs(_Fragment, {\n children: [(wrap || activeIndex !== 0) && /*#__PURE__*/_jsxs(Anchor, {\n className: `${prefix}-control-prev`,\n onClick: prev,\n children: [prevIcon, prevLabel && /*#__PURE__*/_jsx(\"span\", {\n className: \"visually-hidden\",\n children: prevLabel\n })]\n }), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/_jsxs(Anchor, {\n className: `${prefix}-control-next`,\n onClick: next,\n children: [nextIcon, nextLabel && /*#__PURE__*/_jsx(\"span\", {\n className: \"visually-hidden\",\n children: nextLabel\n })]\n })]\n })]\n });\n});\nCarousel.displayName = 'Carousel';\nexport default Object.assign(Carousel, {\n Caption: CarouselCaption,\n Item: CarouselItem\n});","map":{"version":3,"names":["useEventCallback","useUpdateEffect","useCommittedRef","useTimeout","Anchor","classNames","React","useCallback","useEffect","useImperativeHandle","useMemo","useRef","useState","useUncontrolled","CarouselCaption","CarouselItem","map","forEach","useBootstrapPrefix","useIsRTL","transitionEndListener","triggerBrowserReflow","TransitionWrapper","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","SWIPE_THRESHOLD","isVisible","element","style","parentNode","elementStyle","getComputedStyle","display","visibility","Carousel","forwardRef","defaultActiveIndex","uncontrolledProps","ref","as","Component","bsPrefix","slide","fade","controls","indicators","indicatorLabels","activeIndex","onSelect","onSlide","onSlid","interval","keyboard","onKeyDown","pause","onMouseOver","onMouseOut","wrap","touch","onTouchStart","onTouchMove","onTouchEnd","prevIcon","className","prevLabel","nextIcon","nextLabel","variant","children","props","prefix","isRTL","nextDirectionRef","direction","setDirection","paused","setPaused","isSliding","setIsSliding","renderedActiveIndex","setRenderedActiveIndex","current","numChildren","activeChildInterval","child","index","activeChildIntervalRef","prev","event","nextActiveIndex","next","elementRef","nextWhenVisible","document","hidden","slideDirection","orderClassName","directionalClassName","handleEnter","node","handleEntered","handleKeyDown","test","target","tagName","key","preventDefault","handleMouseOver","handleMouseOut","touchStartXRef","touchDeltaXRef","touchUnpauseTimeout","handleTouchStart","touches","clientX","handleTouchMove","length","handleTouchEnd","touchDeltaX","Math","abs","set","undefined","shouldPlay","intervalHandleRef","_ref","_activeChildIntervalR","nextFunc","window","setInterval","visibilityState","clearInterval","indicatorOnClicks","Array","from","_","type","onClick","isActive","in","onEnter","onEntered","addEndListener","status","innerProps","cloneElement","displayName","Object","assign","Caption","Item"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/Carousel.js"],"sourcesContent":["\"use client\";\n\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport useUpdateEffect from '@restart/hooks/useUpdateEffect';\nimport useCommittedRef from '@restart/hooks/useCommittedRef';\nimport useTimeout from '@restart/hooks/useTimeout';\nimport Anchor from '@restart/ui/Anchor';\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';\nimport { useUncontrolled } from 'uncontrollable';\nimport CarouselCaption from './CarouselCaption';\nimport CarouselItem from './CarouselItem';\nimport { map, forEach } from './ElementChildren';\nimport { useBootstrapPrefix, useIsRTL } from './ThemeProvider';\nimport transitionEndListener from './transitionEndListener';\nimport triggerBrowserReflow from './triggerBrowserReflow';\nimport TransitionWrapper from './TransitionWrapper';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nconst SWIPE_THRESHOLD = 40;\nfunction isVisible(element) {\n if (!element || !element.style || !element.parentNode || !element.parentNode.style) {\n return false;\n }\n const elementStyle = getComputedStyle(element);\n return elementStyle.display !== 'none' && elementStyle.visibility !== 'hidden' && getComputedStyle(element.parentNode).display !== 'none';\n}\nconst Carousel = /*#__PURE__*/React.forwardRef(({\n defaultActiveIndex = 0,\n ...uncontrolledProps\n}, ref) => {\n const {\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'div',\n bsPrefix,\n slide = true,\n fade = false,\n controls = true,\n indicators = true,\n indicatorLabels = [],\n activeIndex,\n onSelect,\n onSlide,\n onSlid,\n interval = 5000,\n keyboard = true,\n onKeyDown,\n pause = 'hover',\n onMouseOver,\n onMouseOut,\n wrap = true,\n touch = true,\n onTouchStart,\n onTouchMove,\n onTouchEnd,\n prevIcon = /*#__PURE__*/_jsx(\"span\", {\n \"aria-hidden\": \"true\",\n className: \"carousel-control-prev-icon\"\n }),\n prevLabel = 'Previous',\n nextIcon = /*#__PURE__*/_jsx(\"span\", {\n \"aria-hidden\": \"true\",\n className: \"carousel-control-next-icon\"\n }),\n nextLabel = 'Next',\n variant,\n className,\n children,\n ...props\n } = useUncontrolled({\n defaultActiveIndex,\n ...uncontrolledProps\n }, {\n activeIndex: 'onSelect'\n });\n const prefix = useBootstrapPrefix(bsPrefix, 'carousel');\n const isRTL = useIsRTL();\n const nextDirectionRef = useRef(null);\n const [direction, setDirection] = useState('next');\n const [paused, setPaused] = useState(false);\n const [isSliding, setIsSliding] = useState(false);\n const [renderedActiveIndex, setRenderedActiveIndex] = useState(activeIndex || 0);\n useEffect(() => {\n if (!isSliding && activeIndex !== renderedActiveIndex) {\n if (nextDirectionRef.current) {\n setDirection(nextDirectionRef.current);\n } else {\n setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');\n }\n if (slide) {\n setIsSliding(true);\n }\n setRenderedActiveIndex(activeIndex || 0);\n }\n }, [activeIndex, isSliding, renderedActiveIndex, slide]);\n useEffect(() => {\n if (nextDirectionRef.current) {\n nextDirectionRef.current = null;\n }\n });\n let numChildren = 0;\n let activeChildInterval;\n\n // Iterate to grab all of the children's interval values\n // (and count them, too)\n forEach(children, (child, index) => {\n ++numChildren;\n if (index === activeIndex) {\n activeChildInterval = child.props.interval;\n }\n });\n const activeChildIntervalRef = useCommittedRef(activeChildInterval);\n const prev = useCallback(event => {\n if (isSliding) {\n return;\n }\n let nextActiveIndex = renderedActiveIndex - 1;\n if (nextActiveIndex < 0) {\n if (!wrap) {\n return;\n }\n nextActiveIndex = numChildren - 1;\n }\n nextDirectionRef.current = 'prev';\n onSelect == null ? void 0 : onSelect(nextActiveIndex, event);\n }, [isSliding, renderedActiveIndex, onSelect, wrap, numChildren]);\n\n // This is used in the setInterval, so it should not invalidate.\n const next = useEventCallback(event => {\n if (isSliding) {\n return;\n }\n let nextActiveIndex = renderedActiveIndex + 1;\n if (nextActiveIndex >= numChildren) {\n if (!wrap) {\n return;\n }\n nextActiveIndex = 0;\n }\n nextDirectionRef.current = 'next';\n onSelect == null ? void 0 : onSelect(nextActiveIndex, event);\n });\n const elementRef = useRef();\n useImperativeHandle(ref, () => ({\n element: elementRef.current,\n prev,\n next\n }));\n\n // This is used in the setInterval, so it should not invalidate.\n const nextWhenVisible = useEventCallback(() => {\n if (!document.hidden && isVisible(elementRef.current)) {\n if (isRTL) {\n prev();\n } else {\n next();\n }\n }\n });\n const slideDirection = direction === 'next' ? 'start' : 'end';\n useUpdateEffect(() => {\n if (slide) {\n // These callbacks will be handled by the callbacks.\n return;\n }\n onSlide == null ? void 0 : onSlide(renderedActiveIndex, slideDirection);\n onSlid == null ? void 0 : onSlid(renderedActiveIndex, slideDirection);\n }, [renderedActiveIndex]);\n const orderClassName = `${prefix}-item-${direction}`;\n const directionalClassName = `${prefix}-item-${slideDirection}`;\n const handleEnter = useCallback(node => {\n triggerBrowserReflow(node);\n onSlide == null ? void 0 : onSlide(renderedActiveIndex, slideDirection);\n }, [onSlide, renderedActiveIndex, slideDirection]);\n const handleEntered = useCallback(() => {\n setIsSliding(false);\n onSlid == null ? void 0 : onSlid(renderedActiveIndex, slideDirection);\n }, [onSlid, renderedActiveIndex, slideDirection]);\n const handleKeyDown = useCallback(event => {\n if (keyboard && !/input|textarea/i.test(event.target.tagName)) {\n switch (event.key) {\n case 'ArrowLeft':\n event.preventDefault();\n if (isRTL) {\n next(event);\n } else {\n prev(event);\n }\n return;\n case 'ArrowRight':\n event.preventDefault();\n if (isRTL) {\n prev(event);\n } else {\n next(event);\n }\n return;\n default:\n }\n }\n onKeyDown == null ? void 0 : onKeyDown(event);\n }, [keyboard, onKeyDown, prev, next, isRTL]);\n const handleMouseOver = useCallback(event => {\n if (pause === 'hover') {\n setPaused(true);\n }\n onMouseOver == null ? void 0 : onMouseOver(event);\n }, [pause, onMouseOver]);\n const handleMouseOut = useCallback(event => {\n setPaused(false);\n onMouseOut == null ? void 0 : onMouseOut(event);\n }, [onMouseOut]);\n const touchStartXRef = useRef(0);\n const touchDeltaXRef = useRef(0);\n const touchUnpauseTimeout = useTimeout();\n const handleTouchStart = useCallback(event => {\n touchStartXRef.current = event.touches[0].clientX;\n touchDeltaXRef.current = 0;\n if (pause === 'hover') {\n setPaused(true);\n }\n onTouchStart == null ? void 0 : onTouchStart(event);\n }, [pause, onTouchStart]);\n const handleTouchMove = useCallback(event => {\n if (event.touches && event.touches.length > 1) {\n touchDeltaXRef.current = 0;\n } else {\n touchDeltaXRef.current = event.touches[0].clientX - touchStartXRef.current;\n }\n onTouchMove == null ? void 0 : onTouchMove(event);\n }, [onTouchMove]);\n const handleTouchEnd = useCallback(event => {\n if (touch) {\n const touchDeltaX = touchDeltaXRef.current;\n if (Math.abs(touchDeltaX) > SWIPE_THRESHOLD) {\n if (touchDeltaX > 0) {\n prev(event);\n } else {\n next(event);\n }\n }\n }\n if (pause === 'hover') {\n touchUnpauseTimeout.set(() => {\n setPaused(false);\n }, interval || undefined);\n }\n onTouchEnd == null ? void 0 : onTouchEnd(event);\n }, [touch, pause, prev, next, touchUnpauseTimeout, interval, onTouchEnd]);\n const shouldPlay = interval != null && !paused && !isSliding;\n const intervalHandleRef = useRef();\n useEffect(() => {\n var _ref, _activeChildIntervalR;\n if (!shouldPlay) {\n return undefined;\n }\n const nextFunc = isRTL ? prev : next;\n intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : nextFunc, (_ref = (_activeChildIntervalR = activeChildIntervalRef.current) != null ? _activeChildIntervalR : interval) != null ? _ref : undefined);\n return () => {\n if (intervalHandleRef.current !== null) {\n clearInterval(intervalHandleRef.current);\n }\n };\n }, [shouldPlay, prev, next, activeChildIntervalRef, interval, nextWhenVisible, isRTL]);\n const indicatorOnClicks = useMemo(() => indicators && Array.from({\n length: numChildren\n }, (_, index) => event => {\n onSelect == null ? void 0 : onSelect(index, event);\n }), [indicators, numChildren, onSelect]);\n return /*#__PURE__*/_jsxs(Component, {\n ref: elementRef,\n ...props,\n onKeyDown: handleKeyDown,\n onMouseOver: handleMouseOver,\n onMouseOut: handleMouseOut,\n onTouchStart: handleTouchStart,\n onTouchMove: handleTouchMove,\n onTouchEnd: handleTouchEnd,\n className: classNames(className, prefix, slide && 'slide', fade && `${prefix}-fade`, variant && `${prefix}-${variant}`),\n children: [indicators && /*#__PURE__*/_jsx(\"div\", {\n className: `${prefix}-indicators`,\n children: map(children, (_, index) => /*#__PURE__*/_jsx(\"button\", {\n type: \"button\",\n \"data-bs-target\": \"\" // Bootstrap requires this in their css.\n ,\n \"aria-label\": indicatorLabels != null && indicatorLabels.length ? indicatorLabels[index] : `Slide ${index + 1}`,\n className: index === renderedActiveIndex ? 'active' : undefined,\n onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined,\n \"aria-current\": index === renderedActiveIndex\n }, index))\n }), /*#__PURE__*/_jsx(\"div\", {\n className: `${prefix}-inner`,\n children: map(children, (child, index) => {\n const isActive = index === renderedActiveIndex;\n return slide ? /*#__PURE__*/_jsx(TransitionWrapper, {\n in: isActive,\n onEnter: isActive ? handleEnter : undefined,\n onEntered: isActive ? handleEntered : undefined,\n addEndListener: transitionEndListener,\n children: (status, innerProps) => /*#__PURE__*/React.cloneElement(child, {\n ...innerProps,\n className: classNames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)\n })\n }) : ( /*#__PURE__*/React.cloneElement(child, {\n className: classNames(child.props.className, isActive && 'active')\n }));\n })\n }), controls && /*#__PURE__*/_jsxs(_Fragment, {\n children: [(wrap || activeIndex !== 0) && /*#__PURE__*/_jsxs(Anchor, {\n className: `${prefix}-control-prev`,\n onClick: prev,\n children: [prevIcon, prevLabel && /*#__PURE__*/_jsx(\"span\", {\n className: \"visually-hidden\",\n children: prevLabel\n })]\n }), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/_jsxs(Anchor, {\n className: `${prefix}-control-next`,\n onClick: next,\n children: [nextIcon, nextLabel && /*#__PURE__*/_jsx(\"span\", {\n className: \"visually-hidden\",\n children: nextLabel\n })]\n })]\n })]\n });\n});\nC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KAAK,CAACN,SAAS,EAAE2E,QAAQ,IAAI,QAAQ;QACnE,CAAC,CAAC,CAAC;MACL,CAAC;IACH,CAAC,CAAC,EAAE9F,QAAQ,IAAI,aAAatB,KAAK,CAACE,SAAS,EAAE;MAC5C4C,QAAQ,EAAE,CAAC,CAACX,IAAI,IAAIV,WAAW,KAAK,CAAC,KAAK,aAAazB,KAAK,CAACtB,MAAM,EAAE;QACnE+D,SAAS,EAAG,GAAEO,MAAO,eAAc;QACnCmE,OAAO,EAAElD,IAAI;QACbnB,QAAQ,EAAE,CAACN,QAAQ,EAAEE,SAAS,IAAI,aAAa5C,IAAI,CAAC,MAAM,EAAE;UAC1D2C,SAAS,EAAE,iBAAiB;UAC5BK,QAAQ,EAAEJ;QACZ,CAAC,CAAC;MACJ,CAAC,CAAC,EAAE,CAACP,IAAI,IAAIV,WAAW,KAAKmC,WAAW,GAAG,CAAC,KAAK,aAAa5D,KAAK,CAACtB,MAAM,EAAE;QAC1E+D,SAAS,EAAG,GAAEO,MAAO,eAAc;QACnCmE,OAAO,EAAE/C,IAAI;QACbtB,QAAQ,EAAE,CAACH,QAAQ,EAAEC,SAAS,IAAI,aAAa9C,IAAI,CAAC,MAAM,EAAE;UAC1D2C,SAAS,EAAE,iBAAiB;UAC5BK,QAAQ,EAAEF;QACZ,CAAC,CAAC;MACJ,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AACFhC,QAAQ,CAACgH,WAAW,GAAG,UAAU;AACjC,eAAeC,MAAM,CAACC,MAAM,CAAClH,QAAQ,EAAE;EACrCmH,OAAO,EAAE3I,eAAe;EACxB4I,IAAI,EAAE3I;AACR,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/1272b4b8f2b5a1733c97e6ed83fc4c386bd511056a7630a1447e5b83ee1e55ca.json b/trivia-forge/node_modules/.cache/babel-loader/1272b4b8f2b5a1733c97e6ed83fc4c386bd511056a7630a1447e5b83ee1e55ca.json deleted file mode 100644 index ab8feddc..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/1272b4b8f2b5a1733c97e6ed83fc4c386bd511056a7630a1447e5b83ee1e55ca.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","map":{"version":3,"names":["max","mathMax","min","mathMin","within","value","withinMaxClamp","v"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/utils/within.js"],"sourcesContent":["import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}"],"mappings":"AAAA,SAASA,GAAG,IAAIC,OAAO,EAAEC,GAAG,IAAIC,OAAO,QAAQ,WAAW;AAC1D,OAAO,SAASC,MAAMA,CAACF,GAAG,EAAEG,KAAK,EAAEL,GAAG,EAAE;EACtC,OAAOC,OAAO,CAACC,GAAG,EAAEC,OAAO,CAACE,KAAK,EAAEL,GAAG,CAAC,CAAC;AAC1C;AACA,OAAO,SAASM,cAAcA,CAACJ,GAAG,EAAEG,KAAK,EAAEL,GAAG,EAAE;EAC9C,IAAIO,CAAC,GAAGH,MAAM,CAACF,GAAG,EAAEG,KAAK,EAAEL,GAAG,CAAC;EAC/B,OAAOO,CAAC,GAAGP,GAAG,GAAGA,GAAG,GAAGO,CAAC;AAC1B","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/128fd2b5e0615054e648d95202efc0527aef4ac059191cab768312517c6d96cb.json b/trivia-forge/node_modules/.cache/babel-loader/128fd2b5e0615054e648d95202efc0527aef4ac059191cab768312517c6d96cb.json deleted file mode 100644 index b066fdee..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/128fd2b5e0615054e648d95202efc0527aef4ac059191cab768312517c6d96cb.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n return overflowOffsets;\n}","map":{"version":3,"names":["getClippingRect","getDocumentElement","getBoundingClientRect","computeOffsets","rectToClientRect","clippingParents","reference","popper","bottom","top","right","basePlacements","viewport","isElement","mergePaddingObject","expandToHashMap","detectOverflow","state","options","_options","_options$placement","placement","_options$strategy","strategy","_options$boundary","boundary","_options$rootBoundary","rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","padding","paddingObject","altContext","popperRect","rects","element","elements","clippingClientRect","contextElement","referenceClientRect","popperOffsets","popperClientRect","Object","assign","elementClientRect","overflowOffsets","left","offsetData","modifiersData","offset","keys","forEach","key","multiply","indexOf","axis"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/utils/detectOverflow.js"],"sourcesContent":["import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}"],"mappings":"AAAA,OAAOA,eAAe,MAAM,iCAAiC;AAC7D,OAAOC,kBAAkB,MAAM,oCAAoC;AACnE,OAAOC,qBAAqB,MAAM,uCAAuC;AACzE,OAAOC,cAAc,MAAM,qBAAqB;AAChD,OAAOC,gBAAgB,MAAM,uBAAuB;AACpD,SAASC,eAAe,EAAEC,SAAS,EAAEC,MAAM,EAAEC,MAAM,EAAEC,GAAG,EAAEC,KAAK,EAAEC,cAAc,EAAEC,QAAQ,QAAQ,aAAa;AAC9G,SAASC,SAAS,QAAQ,4BAA4B;AACtD,OAAOC,kBAAkB,MAAM,yBAAyB;AACxD,OAAOC,eAAe,MAAM,sBAAsB,CAAC,CAAC;;AAEpD,eAAe,SAASC,cAAcA,CAACC,KAAK,EAAEC,OAAO,EAAE;EACrD,IAAIA,OAAO,KAAK,KAAK,CAAC,EAAE;IACtBA,OAAO,GAAG,CAAC,CAAC;EACd;EAEA,IAAIC,QAAQ,GAAGD,OAAO;IAClBE,kBAAkB,GAAGD,QAAQ,CAACE,SAAS;IACvCA,SAAS,GAAGD,kBAAkB,KAAK,KAAK,CAAC,GAAGH,KAAK,CAACI,SAAS,GAAGD,kBAAkB;IAChFE,iBAAiB,GAAGH,QAAQ,CAACI,QAAQ;IACrCA,QAAQ,GAAGD,iBAAiB,KAAK,KAAK,CAAC,GAAGL,KAAK,CAACM,QAAQ,GAAGD,iBA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AAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;MACzD,IAAIG,IAAI,GAAG,CAACjD,GAAG,EAAED,MAAM,CAAC,CAACiD,OAAO,CAACF,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG;MACtDP,eAAe,CAACO,GAAG,CAAC,IAAIH,MAAM,CAACM,IAAI,CAAC,GAAGF,QAAQ;IACjD,CAAC,CAAC;EACJ;EAEA,OAAOR,eAAe;AACxB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/1299b3c911a51d843ab90d225b3dc8fceb4f6a6c666b71cf1c6141fa4654e006.json b/trivia-forge/node_modules/.cache/babel-loader/1299b3c911a51d843ab90d225b3dc8fceb4f6a6c666b71cf1c6141fa4654e006.json deleted file mode 100644 index 97e1e301..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/1299b3c911a51d843ab90d225b3dc8fceb4f6a6c666b71cf1c6141fa4654e006.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","map":{"version":3,"names":["getWindow","getDocumentElement","getWindowScrollBarX","isLayoutViewport","getViewportRect","element","strategy","win","html","visualViewport","width","clientWidth","height","clientHeight","x","y","layoutViewport","offsetLeft","offsetTop"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js"],"sourcesContent":["import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}"],"mappings":"AAAA,OAAOA,SAAS,MAAM,gBAAgB;AACtC,OAAOC,kBAAkB,MAAM,yBAAyB;AACxD,OAAOC,mBAAmB,MAAM,0BAA0B;AAC1D,OAAOC,gBAAgB,MAAM,uBAAuB;AACpD,eAAe,SAASC,eAAeA,CAACC,OAAO,EAAEC,QAAQ,EAAE;EACzD,IAAIC,GAAG,GAAGP,SAAS,CAACK,OAAO,CAAC;EAC5B,IAAIG,IAAI,GAAGP,kBAAkB,CAACI,OAAO,CAAC;EACtC,IAAII,cAAc,GAAGF,GAAG,CAACE,cAAc;EACvC,IAAIC,KAAK,GAAGF,IAAI,CAACG,WAAW;EAC5B,IAAIC,MAAM,GAAGJ,IAAI,CAACK,YAAY;EAC9B,IAAIC,CAAC,GAAG,CAAC;EACT,IAAIC,CAAC,GAAG,CAAC;EAET,IAAIN,cAAc,EAAE;IAClBC,KAAK,GAAGD,cAAc,CAACC,KAAK;IAC5BE,MAAM,GAAGH,cAAc,CAACG,MAAM;IAC9B,IAAII,cAAc,GAAGb,gBAAgB,CAAC,CAAC;IAEvC,IAAIa,cAAc,IAAI,CAACA,cAAc,IAAIV,QAAQ,KAAK,OAAO,EAAE;MAC7DQ,CAAC,GAAGL,cAAc,CAACQ,UAAU;MAC7BF,CAAC,GAAGN,cAAc,CAACS,SAAS;IAC9B;EACF;EAEA,OAAO;IACLR,KAAK,EAAEA,KAAK;IACZE,MAAM,EAAEA,MAAM;IACdE,CAAC,EAAEA,CAAC,GAAGZ,mBAAmB,CAACG,OAAO,CAAC;IACnCU,CAAC,EAAEA;EACL,CAAC;AACH","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/12a6d3984e14ce00ba53f49a0633a2ca7ef8bb5bddd46b29c66186e98c7735d7.json b/trivia-forge/node_modules/.cache/babel-loader/12a6d3984e14ce00ba53f49a0633a2ca7ef8bb5bddd46b29c66186e98c7735d7.json deleted file mode 100644 index fb08d88c..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/12a6d3984e14ce00ba53f49a0633a2ca7ef8bb5bddd46b29c66186e98c7735d7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import createMachine from \"./fsm.js\";\n\n/**\n * @typedef {Object} ShowOverlayData\n * @property {'warning' | 'error'} level\n * @property {Array} messages\n * @property {'build' | 'runtime'} messageSource\n */\n\n/**\n * @typedef {Object} CreateOverlayMachineOptions\n * @property {(data: ShowOverlayData) => void} showOverlay\n * @property {() => void} hideOverlay\n */\n\n/**\n * @param {CreateOverlayMachineOptions} options\n */\nvar createOverlayMachine = function createOverlayMachine(options) {\n var hideOverlay = options.hideOverlay,\n showOverlay = options.showOverlay;\n var overlayMachine = createMachine({\n initial: \"hidden\",\n context: {\n level: \"error\",\n messages: [],\n messageSource: \"build\"\n },\n states: {\n hidden: {\n on: {\n BUILD_ERROR: {\n target: \"displayBuildError\",\n actions: [\"setMessages\", \"showOverlay\"]\n },\n RUNTIME_ERROR: {\n target: \"displayRuntimeError\",\n actions: [\"setMessages\", \"showOverlay\"]\n }\n }\n },\n displayBuildError: {\n on: {\n DISMISS: {\n target: \"hidden\",\n actions: [\"dismissMessages\", \"hideOverlay\"]\n },\n BUILD_ERROR: {\n target: \"displayBuildError\",\n actions: [\"appendMessages\", \"showOverlay\"]\n }\n }\n },\n displayRuntimeError: {\n on: {\n DISMISS: {\n target: \"hidden\",\n actions: [\"dismissMessages\", \"hideOverlay\"]\n },\n RUNTIME_ERROR: {\n target: \"displayRuntimeError\",\n actions: [\"appendMessages\", \"showOverlay\"]\n },\n BUILD_ERROR: {\n target: \"displayBuildError\",\n actions: [\"setMessages\", \"showOverlay\"]\n }\n }\n }\n }\n }, {\n actions: {\n dismissMessages: function dismissMessages() {\n return {\n messages: [],\n level: \"error\",\n messageSource: \"build\"\n };\n },\n appendMessages: function appendMessages(context, event) {\n return {\n messages: context.messages.concat(event.messages),\n level: event.level || context.level,\n messageSource: event.type === \"RUNTIME_ERROR\" ? \"runtime\" : \"build\"\n };\n },\n setMessages: function setMessages(context, event) {\n return {\n messages: event.messages,\n level: event.level || context.level,\n messageSource: event.type === \"RUNTIME_ERROR\" ? \"runtime\" : \"build\"\n };\n },\n hideOverlay: hideOverlay,\n showOverlay: showOverlay\n }\n });\n return overlayMachine;\n};\nexport default createOverlayMachine;","map":{"version":3,"names":["createMachine","createOverlayMachine","options","hideOverlay","showOverlay","overlayMachine","initial","context","level","messages","messageSource","states","hidden","on","BUILD_ERROR","target","actions","RUNTIME_ERROR","displayBuildError","DISMISS","displayRuntimeError","dismissMessages","appendMessages","event","concat","type","setMessages"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/webpack-dev-server/client/overlay/state-machine.js"],"sourcesContent":["import createMachine from \"./fsm.js\";\n\n/**\n * @typedef {Object} ShowOverlayData\n * @property {'warning' | 'error'} level\n * @property {Array} messages\n * @property {'build' | 'runtime'} messageSource\n */\n\n/**\n * @typedef {Object} CreateOverlayMachineOptions\n * @property {(data: ShowOverlayData) => void} showOverlay\n * @property {() => void} hideOverlay\n */\n\n/**\n * @param {CreateOverlayMachineOptions} options\n */\nvar createOverlayMachine = function createOverlayMachine(options) {\n var hideOverlay = options.hideOverlay,\n showOverlay = options.showOverlay;\n var overlayMachine = createMachine({\n initial: \"hidden\",\n context: {\n level: \"error\",\n messages: [],\n messageSource: \"build\"\n },\n states: {\n hidden: {\n on: {\n BUILD_ERROR: {\n target: \"displayBuildError\",\n actions: [\"setMessages\", \"showOverlay\"]\n },\n RUNTIME_ERROR: {\n target: \"displayRuntimeError\",\n actions: [\"setMessages\", \"showOverlay\"]\n }\n }\n },\n displayBuildError: {\n on: {\n DISMISS: {\n target: \"hidden\",\n actions: [\"dismissMessages\", \"hideOverlay\"]\n },\n BUILD_ERROR: {\n target: \"displayBuildError\",\n actions: [\"appendMessages\", \"showOverlay\"]\n }\n }\n },\n displayRuntimeError: {\n on: {\n DISMISS: {\n target: \"hidden\",\n actions: [\"dismissMessages\", \"hideOverlay\"]\n },\n RUNTIME_ERROR: {\n target: \"displayRuntimeError\",\n actions: [\"appendMessages\", \"showOverlay\"]\n },\n BUILD_ERROR: {\n target: \"displayBuildError\",\n actions: [\"setMessages\", \"showOverlay\"]\n }\n }\n }\n }\n }, {\n actions: {\n dismissMessages: function dismissMessages() {\n return {\n messages: [],\n level: \"error\",\n messageSource: \"build\"\n };\n },\n appendMessages: function appendMessages(context, event) {\n return {\n messages: context.messages.concat(event.messages),\n level: event.level || context.level,\n messageSource: event.type === \"RUNTIME_ERROR\" ? \"runtime\" : \"build\"\n };\n },\n setMessages: function setMessages(context, event) {\n return {\n messages: event.messages,\n level: event.level || context.level,\n messageSource: event.type === \"RUNTIME_ERROR\" ? \"runtime\" : \"build\"\n };\n },\n hideOverlay: hideOverlay,\n showOverlay: showOverlay\n }\n });\n return overlayMachine;\n};\nexport default createOverlayMachine;"],"mappings":"AAAA,OAAOA,aAAa,MAAM,UAAU;;AAEpC;AACA;AACA;AACA;AACA;AACA;;AAEA;A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,EAAE;IACDA,OAAO,EAAE;MACPK,eAAe,EAAE,SAASA,eAAeA,CAAA,EAAG;QAC1C,OAAO;UACLZ,QAAQ,EAAE,EAAE;UACZD,KAAK,EAAE,OAAO;UACdE,aAAa,EAAE;QACjB,CAAC;MACH,CAAC;MACDY,cAAc,EAAE,SAASA,cAAcA,CAACf,OAAO,EAAEgB,KAAK,EAAE;QACtD,OAAO;UACLd,QAAQ,EAAEF,OAAO,CAACE,QAAQ,CAACe,MAAM,CAACD,KAAK,CAACd,QAAQ,CAAC;UACjDD,KAAK,EAAEe,KAAK,CAACf,KAAK,IAAID,OAAO,CAACC,KAAK;UACnCE,aAAa,EAAEa,KAAK,CAACE,IAAI,KAAK,eAAe,GAAG,SAAS,GAAG;QAC9D,CAAC;MACH,CAAC;MACDC,WAAW,EAAE,SAASA,WAAWA,CAACnB,OAAO,EAAEgB,KAAK,EAAE;QAChD,OAAO;UACLd,QAAQ,EAAEc,KAAK,CAACd,QAAQ;UACxBD,KAAK,EAAEe,KAAK,CAACf,KAAK,IAAID,OAAO,CAACC,KAAK;UACnCE,aAAa,EAAEa,KAAK,CAACE,IAAI,KAAK,eAAe,GAAG,SAAS,GAAG;QAC9D,CAAC;MACH,CAAC;MACDtB,WAAW,EAAEA,WAAW;MACxBC,WAAW,EAAEA;IACf;EACF,CAAC,CAAC;EACF,OAAOC,cAAc;AACvB,CAAC;AACD,eAAeJ,oBAAoB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/12b0d45790d109fc5eaf1e6b5453304f1e699d99c87a2a20c9b29e47a3121d65.json b/trivia-forge/node_modules/.cache/babel-loader/12b0d45790d109fc5eaf1e6b5453304f1e699d99c87a2a20c9b29e47a3121d65.json deleted file mode 100644 index f02b033d..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/12b0d45790d109fc5eaf1e6b5453304f1e699d99c87a2a20c9b29e47a3121d65.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import ownerDocument from './ownerDocument';\n/**\n * Returns the owner window of a given element.\n * \n * @param node the element\n */\n\nexport default function ownerWindow(node) {\n var doc = ownerDocument(node);\n return doc && doc.defaultView || window;\n}","map":{"version":3,"names":["ownerDocument","ownerWindow","node","doc","defaultView","window"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/dom-helpers/esm/ownerWindow.js"],"sourcesContent":["import ownerDocument from './ownerDocument';\n/**\n * Returns the owner window of a given element.\n * \n * @param node the element\n */\n\nexport default function ownerWindow(node) {\n var doc = ownerDocument(node);\n return doc && doc.defaultView || window;\n}"],"mappings":"AAAA,OAAOA,aAAa,MAAM,iBAAiB;AAC3C;AACA;AACA;AACA;AACA;;AAEA,eAAe,SAASC,WAAWA,CAACC,IAAI,EAAE;EACxC,IAAIC,GAAG,GAAGH,aAAa,CAACE,IAAI,CAAC;EAC7B,OAAOC,GAAG,IAAIA,GAAG,CAACC,WAAW,IAAIC,MAAM;AACzC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/12df107dfa8d7c8544521b6d9c4f3d642784a7964284db1a91cead951dfd612a.json b/trivia-forge/node_modules/.cache/babel-loader/12df107dfa8d7c8544521b6d9c4f3d642784a7964284db1a91cead951dfd612a.json deleted file mode 100644 index 813a47a8..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/12df107dfa8d7c8544521b6d9c4f3d642784a7964284db1a91cead951dfd612a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport FormContext from './FormContext';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormCheckInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n let {\n id,\n bsPrefix,\n className,\n type = 'checkbox',\n isValid = false,\n isInvalid = false,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'input',\n ...props\n } = _ref;\n const {\n controlId\n } = useContext(FormContext);\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-check-input');\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref,\n type: type,\n id: id || controlId,\n className: classNames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')\n });\n});\nFormCheckInput.displayName = 'FormCheckInput';\nexport default FormCheckInput;","map":{"version":3,"names":["classNames","React","useContext","FormContext","useBootstrapPrefix","jsx","_jsx","FormCheckInput","forwardRef","_ref","ref","id","bsPrefix","className","type","isValid","isInvalid","as","Component","props","controlId","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/FormCheckInput.js"],"sourcesContent":["\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport FormContext from './FormContext';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FormCheckInput = /*#__PURE__*/React.forwardRef(({\n id,\n bsPrefix,\n className,\n type = 'checkbox',\n isValid = false,\n isInvalid = false,\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'input',\n ...props\n}, ref) => {\n const {\n controlId\n } = useContext(FormContext);\n bsPrefix = useBootstrapPrefix(bsPrefix, 'form-check-input');\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref,\n type: type,\n id: id || controlId,\n className: classNames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')\n });\n});\nFormCheckInput.displayName = 'FormCheckInput';\nexport default FormCheckInput;"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,QAAQ,OAAO;AAClC,OAAOC,WAAW,MAAM,eAAe;AACvC,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,MAAMC,cAAc,GAAG,aAAaN,KAAK,CAACO,UAAU,CAAC,CAAAC,IAAA,EAUlDC,GAAG,KAAK;EAAA,IAV2C;IACpDC,EAAE;IACFC,QAAQ;IACRC,SAAS;IACTC,IAAI,GAAG,UAAU;IACjBC,OAAO,GAAG,KAAK;IACfC,SAAS,GAAG,KAAK;IACjB;IACAC,EAAE,EAAEC,SAAS,GAAG,OAAO;IACvB,GAAGC;EACL,CAAC,GAAAV,IAAA;EACC,MAAM;IACJW;EACF,CAAC,GAAGlB,UAAU,CAACC,WAAW,CAAC;EAC3BS,QAAQ,GAAGR,kBAAkB,CAACQ,QAAQ,EAAE,kBAAkB,CAAC;EAC3D,OAAO,aAAaN,IAAI,CAACY,SAAS,EAAE;IAClC,GAAGC,KAAK;IACRT,GAAG,EAAEA,GAAG;IACRI,IAAI,EAAEA,IAAI;IACVH,EAAE,EAAEA,EAAE,IAAIS,SAAS;IACnBP,SAAS,EAAEb,UAAU,CAACa,SAAS,EAAED,QAAQ,EAAEG,OAAO,IAAI,UAAU,EAAEC,SAAS,IAAI,YAAY;EAC7F,CAAC,CAAC;AACJ,CAAC,CAAC;AACFT,cAAc,CAACc,WAAW,GAAG,gBAAgB;AAC7C,eAAed,cAAc","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/139bd8c7d59fa949099d2704ebc042c2045385251a7d52e10b4e91a951f67f3f.json b/trivia-forge/node_modules/.cache/babel-loader/139bd8c7d59fa949099d2704ebc042c2045385251a7d52e10b4e91a951f67f3f.json deleted file mode 100644 index c068289f..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/139bd8c7d59fa949099d2704ebc042c2045385251a7d52e10b4e91a951f67f3f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.\nimport { APIResource } from 'openai/resource';\nimport { isRequestOptions } from 'openai/core';\nimport * as MessagesAPI from 'openai/resources/beta/threads/messages';\nimport { CursorPage } from 'openai/pagination';\nexport class Messages extends APIResource {\n /**\n * Create a message.\n */\n create(threadId, body, options) {\n return this._client.post(\"/threads/\".concat(threadId, \"/messages\"), {\n body,\n ...options,\n headers: {\n 'OpenAI-Beta': 'assistants=v2',\n ...(options === null || options === void 0 ? void 0 : options.headers)\n }\n });\n }\n /**\n * Retrieve a message.\n */\n retrieve(threadId, messageId, options) {\n return this._client.get(\"/threads/\".concat(threadId, \"/messages/\").concat(messageId), {\n ...options,\n headers: {\n 'OpenAI-Beta': 'assistants=v2',\n ...(options === null || options === void 0 ? void 0 : options.headers)\n }\n });\n }\n /**\n * Modifies a message.\n */\n update(threadId, messageId, body, options) {\n return this._client.post(\"/threads/\".concat(threadId, \"/messages/\").concat(messageId), {\n body,\n ...options,\n headers: {\n 'OpenAI-Beta': 'assistants=v2',\n ...(options === null || options === void 0 ? void 0 : options.headers)\n }\n });\n }\n list(threadId) {\n let query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let options = arguments.length > 2 ? arguments[2] : undefined;\n if (isRequestOptions(query)) {\n return this.list(threadId, {}, query);\n }\n return this._client.getAPIList(\"/threads/\".concat(threadId, \"/messages\"), MessagesPage, {\n query,\n ...options,\n headers: {\n 'OpenAI-Beta': 'assistants=v2',\n ...(options === null || options === void 0 ? void 0 : options.headers)\n }\n });\n }\n}\nexport class MessagesPage extends CursorPage {}\n(function (Messages) {\n Messages.MessagesPage = MessagesAPI.MessagesPage;\n})(Messages || (Messages = {}));","map":{"version":3,"names":["APIResource","isRequestOptions","MessagesAPI","CursorPage","Messages","create","threadId","body","options","_client","post","concat","headers","retrieve","messageId","get","update","list","query","arguments","length","undefined","getAPIList","MessagesPage"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/openai/src/resources/beta/threads/messages.ts"],"sourcesContent":["// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.\n\nimport * as Core from \"../../../core\";\nimport { APIResource } from \"../../../resource\";\nimport { isRequestOptions } from \"../../../core\";\nimport * as MessagesAPI from \"./messages\";\nimport * as AssistantsAPI from \"../assistants\";\nimport { CursorPage, type CursorPageParams } from \"../../../pagination\";\n\nexport class Messages extends APIResource {\n /**\n * Create a message.\n */\n create(\n threadId: string,\n body: MessageCreateParams,\n options?: Core.RequestOptions,\n ): Core.APIPromise {\n return this._client.post(`/threads/${threadId}/messages`, {\n body,\n ...options,\n headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },\n });\n }\n\n /**\n * Retrieve a message.\n */\n retrieve(threadId: string, messageId: string, options?: Core.RequestOptions): Core.APIPromise {\n return this._client.get(`/threads/${threadId}/messages/${messageId}`, {\n ...options,\n headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },\n });\n }\n\n /**\n * Modifies a message.\n */\n update(\n threadId: string,\n messageId: string,\n body: MessageUpdateParams,\n options?: Core.RequestOptions,\n ): Core.APIPromise {\n return this._client.post(`/threads/${threadId}/messages/${messageId}`, {\n body,\n ...options,\n headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },\n });\n }\n\n /**\n * Returns a list of messages for a given thread.\n */\n list(\n threadId: string,\n query?: MessageListParams,\n options?: Core.RequestOptions,\n ): Core.PagePromise;\n list(threadId: string, options?: Core.RequestOptions): Core.PagePromise;\n list(\n threadId: string,\n query: MessageListParams | Core.RequestOptions = {},\n options?: Core.RequestOptions,\n ): Core.PagePromise {\n if (isRequestOptions(query)) {\n return this.list(threadId, {}, query);\n }\n return this._client.getAPIList(`/threads/${threadId}/messages`, MessagesPage, {\n query,\n ...options,\n headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },\n });\n }\n}\n\nexport class MessagesPage extends CursorPage {}\n\n/**\n * A citation within the message that points to a specific quote from a specific\n * File associated with the assistant or the message. Generated when the assistant\n * uses the \"file_search\" tool to search files.\n */\nexport type Annotation = FileCitationAnnotation | FilePathAnnotation;\n\n/**\n * A citation within the message that points to a specific quote from a specific\n * File associated with the assistant or the message. Generated when the assistant\n * uses the \"file_search\" tool to search files.\n */\nexport type AnnotationDelta = FileCitationDeltaAnnotation | FilePathDeltaAnnotation;\n\n/**\n * A citation within the message that points to a specific quote from a specific\n * File associated with the assistant or the message. Generated when the assistant\n * uses the \"file_search\" tool to search files.\n */\nexport interface FileCitationAnnotation {\n end_index: number;\n\n file_citation: FileCitationAnnotation.FileCitation;\n\n start_index: number;\n\n /**\n * The text in the message content that needs to be replaced.\n */\n text: string;\n\n /**\n * Always `file_citation`.\n */\n type: 'file_citation';\n}\n\nexport namespace FileCitationAnnotation {\n export interface FileCitation {\n /**\n * The ID of the specific File the citation is from.\n */\n file_id: string;\n\n /**\n * The specific quote in the file.\n */\n quote: string;\n }\n}\n\n/**\n * A citation within the message that points to a specific quote from a specific\n * File associated with the assistant or the message. Generated when the assistant\n * uses the \"file_search\" tool to search files.\n */\nexport interface FileCitationDeltaAnnotation {\n /**\n * The index of the annotation in the text content part.\n */\n index: number;\n\n /**\n * Always `file_citation`.\n */\n type: 'file_citation';\n\n end_index?: number;\n\n file_citation?: FileCitationDeltaAnnotation.FileCitation;\n\n start_index?: number;\n\n /**\n * The text in the message content that needs to be replaced.\n */\n text?: string;\n}\n\nexport namespace FileCitationDeltaAnnotation {\n export interface FileCitation {\n /**\n * The ID of the specific File the citation is from.\n */\n file_id?: string;\n\n /**\n * The specific quote in the file.\n */\n quote?: string;\n }\n}\n\n/**\n * A URL for the file that's generated when the assistant used the\n * `code_interpreter` tool to generate a file.\n */\nexport interface FilePathAnnotation {\n end_index: number;\n\n file_path: FilePathAnnotation.FilePath;\n\n start_index: number;\n\n /**\n * The text in the message content that needs to be replaced.\n */\n text: string;\n\n /**\n * Always `file_path`.\n */\n type: 'file_path';\n}\n\nexport namespace FilePathAnnotation {\n export interface FilePath {\n /**\n * The ID of the file that was generated.\n */\n file_id: string;\n }\n}\n\n/**\n * A URL for the file that's generated when the assistant used the\n * `code_interpreter` tool to generate a file.\n */\nexport interface FilePathDeltaAnnotation {\n /**\n * The index of the annotation in the text content part.\n */\n index: number;\n\n /**\n * Always `file_path`.\n */\n type: 'file_path';\n\n end_index?: number;\n\n file_path?: FilePathDeltaAnnotation.FilePath;\n\n start_index?: number;\n\n /**\n * The text in the message content that needs to be replaced.\n */\n text?: string;\n}\n\nexport namespace FilePathDeltaAnnotation {\n export interface FilePath {\n /**\n * The ID of the file that was generated.\n */\n file_id?: string;\n }\n}\n\nexport interface ImageFile {\n /**\n * The [File](https://platform.openai.com/docs/api-reference/files) ID of the image\n * in the message content.\n */\n file_id: string;\n}\n\n/**\n * References an image [File](https://platform.openai.com/docs/api-reference/files)\n * in the content of a message.\n */\nexport interface ImageFileContentBlock {\n image_file: ImageFile;\n\n /**\n * Always `image_file`.\n */\n type: 'image_file';\n}\n\nexport interface ImageFileDelta {\n /**\n * The [File](https://platform.openai.com/docs/api-reference/files) ID of the image\n * in the message content.\n */\n file_id?: string;\n}\n\n/**\n * References an image [File](https://platform.openai.com/docs/api-reference/files)\n * in the content of a message.\n */\nexport interface ImageFileDeltaBlock {\n /**\n * The index of the content part in the message.\n */\n index: number;\n\n /**\n * Always `image_file`.\n */\n type: 'image_file';\n\n image_file?: ImageFileDelta;\n}\n\n/**\n * Represents a message within a\n * [thread](https://platform.openai.com/docs/api-reference/threads).\n */\nexport interface Message {\n /**\n * The identifier, which can be referenced in API endpoints.\n */\n id: string;\n\n /**\n * If applicable, the ID of the\n * [assistant](https://platform.openai.com/docs/api-reference/assistants) that\n * authored this message.\n */\n assistant_id: string | null;\n\n /**\n * A list of files attached to the message, and the tools they were added to.\n */\n attachments: Array | null;\n\n /**\n * The Unix timestamp (in seconds) for when the message was completed.\n */\n completed_at: number | null;\n\n /**\n * The content of the message in array of text and/or images.\n */\n content: Array;\n\n /**\n * The Unix timestamp (in seconds) for when the message was created.\n */\n created_at: number;\n\n /**\n * The Unix timestamp (in seconds) for when the message was marked as incomplete.\n */\n incomplete_at: number | null;\n\n /**\n * On an incomplete message, details about why the message is incomplete.\n */\n incomplete_details: Message.IncompleteDetails | null;\n\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be useful\n * for storing additional information about the object in a structured format. Keys\n * can be a maximum of 64 characters long and values can be a maxium of 512\n * characters long.\n */\n metadata: unknown | null;\n\n /**\n * The object type, which is always `thread.message`.\n */\n object: 'thread.message';\n\n /**\n * The entity that produced the message. One of `user` or `assistant`.\n */\n role: 'user' | 'assistant';\n\n /**\n * The ID of the [run](https://platform.openai.com/docs/api-reference/runs)\n * associated with the creation of this message. Value is `null` when messages are\n * created manually using the create message or create thread endpoints.\n */\n run_id: string | null;\n\n /**\n * The status of the message, which can be either `in_progress`, `incomplete`, or\n * `completed`.\n */\n status: 'in_progress' | 'incomplete' | 'completed';\n\n /**\n * The [thread](https://platform.openai.com/docs/api-reference/threads) ID that\n * this message belongs to.\n */\n thread_id: string;\n}\n\nexport namespace Message {\n export interface Attachment {\n /**\n * The ID of the file to attach to the message.\n */\n file_id?: string;\n\n /**\n * The tools to add this file to.\n */\n tools?: Array;\n }\n\n /**\n * On an incomplete message, details about why the message is incomplete.\n */\n export interface IncompleteDetails {\n /**\n * The reason the message is incomplete.\n */\n reason: 'content_filter' | 'max_tokens' | 'run_cancelled' | 'run_expired' | 'run_failed';\n }\n}\n\n/**\n * References an image [File](https://platform.openai.com/docs/api-reference/files)\n * in the content of a message.\n */\nexport type MessageContent = ImageFileContentBlock | TextContentBlock;\n\n/**\n * References an image [File](https://platform.openai.com/docs/api-reference/files)\n * in the content of a message.\n */\nexport type MessageContentDelta = ImageFileDeltaBlock | TextDeltaBlock;\n\nexport interface MessageDeleted {\n id: string;\n\n deleted: boolean;\n\n object: 'thread.message.deleted';\n}\n\n/**\n * The delta containing the fields that have changed on the Message.\n */\nexport interface MessageDelta {\n /**\n * The content of the message in array of text and/or images.\n */\n content?: Array;\n\n /**\n * The entity that produced the message. One of `user` or `assistant`.\n */\n role?: 'user' | 'assistant';\n}\n\n/**\n * Represents a message delta i.e. any changed fields on a message during\n * streaming.\n */\nexport interface MessageDeltaEvent {\n /**\n * The identifier of the message, which can be referenced in API endpoints.\n */\n id: string;\n\n /**\n * The delta containing the fields that have changed on the Message.\n */\n delta: MessageDelta;\n\n /**\n * The object type, which is always `thread.message.delta`.\n */\n object: 'thread.message.delta';\n}\n\nexport interface Text {\n annotations: Array;\n\n /**\n * The data that makes up the text.\n */\n value: string;\n}\n\n/**\n * The text content that is part of a message.\n */\nexport interface TextContentBlock {\n text: Text;\n\n /**\n * Always `text`.\n */\n type: 'text';\n}\n\nexport interface TextDelta {\n annotations?: Array;\n\n /**\n * The data that makes up the text.\n */\n value?: string;\n}\n\n/**\n * The text content that is part of a message.\n */\nexport interface TextDeltaBlock {\n /**\n * The index of the content part in the message.\n */\n index: number;\n\n /**\n * Always `text`.\n */\n type: 'text';\n\n text?: TextDelta;\n}\n\nexport interface MessageCreateParams {\n /**\n * The content of the message.\n */\n content: string;\n\n /**\n * The role of the entity that is creating the message. Allowed values include:\n *\n * - `user`: Indicates the message is sent by an actual user and should be used in\n * most cases to represent user-generated messages.\n * - `assistant`: Indicates the message is generated by the assistant. Use this\n * value to insert messages from the assistant into the conversation.\n */\n role: 'user' | 'assistant';\n\n /**\n * A list of files attached to the message, and the tools they should be added to.\n */\n attachments?: Array | null;\n\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be useful\n * for storing additional information about the object in a structured format. Keys\n * can be a maximum of 64 characters long and values can be a maxium of 512\n * characters long.\n */\n metadata?: unknown | null;\n}\n\nexport namespace MessageCreateParams {\n export interface Attachment {\n /**\n * The ID of the file to attach to the message.\n */\n file_id?: string;\n\n /**\n * The tools to add this file to.\n */\n tools?: Array;\n }\n}\n\nexport interface MessageUpdateParams {\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be useful\n * for storing additional information about the object in a structured format. Keys\n * can be a maximum of 64 characters long and values can be a maxium of 512\n * characters long.\n */\n metadata?: unknown | null;\n}\n\nexport interface MessageListParams extends CursorPageParams {\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place\n * in the list. For instance, if you make a list request and receive 100 objects,\n * ending with obj_foo, your subsequent call can include before=obj_foo in order to\n * fetch the previous page of the list.\n */\n before?: string;\n\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending\n * order and `desc` for descending order.\n */\n order?: 'asc' | 'desc';\n\n /**\n * Filter messages by the run ID that generated them.\n */\n run_id?: string;\n}\n\nexport namespace Messages {\n export import Annotation = MessagesAPI.Annotation;\n export import AnnotationDelta = MessagesAPI.AnnotationDelta;\n export import FileCitationAnnotation = MessagesAPI.FileCitationAnnotation;\n export import FileCitationDeltaAnnotation = MessagesAPI.FileCitationDeltaAnnotation;\n export import FilePathAnnotation = MessagesAPI.FilePathAnnotation;\n export import FilePathDeltaAnnotation = MessagesAPI.FilePathDeltaAnnotation;\n export import ImageFile = MessagesAPI.ImageFile;\n export import ImageFileContentBlock = MessagesAPI.ImageFileContentBlock;\n export import ImageFileDelta = MessagesAPI.ImageFileDelta;\n export import ImageFileDeltaBlock = MessagesAPI.ImageFileDeltaBlock;\n export import Message = MessagesAPI.Message;\n export import MessageContent = MessagesAPI.MessageContent;\n export import MessageContentDelta = MessagesAPI.MessageContentDelta;\n export import MessageDeleted = MessagesAPI.MessageDeleted;\n export import MessageDelta = MessagesAPI.MessageDelta;\n export import MessageDeltaEvent = MessagesAPI.MessageDeltaEvent;\n export import Text = MessagesAPI.Text;\n export import TextContentBlock = MessagesAPI.TextContentBlock;\n export import TextDelta = MessagesAPI.TextDelta;\n export import TextDeltaBlock = MessagesAPI.TextDeltaBlock;\n export import MessagesPage = MessagesAPI.MessagesPage;\n export import MessageCreateParams = MessagesAPI.MessageCreateParams;\n export import MessageUpdateParams = MessagesAPI.MessageUpdateParams;\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AAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAiD,EAAE;IAAA,IACnDX,OAA6B,GAAAW,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;IAE7B,IAAIpB,gBAAgB,CAACiB,KAAK,CAAC,EAAE;MAC3B,OAAO,IAAI,CAACD,IAAI,CAACX,QAAQ,EAAE,EAAE,EAAEY,KAAK,CAAC;;IAEvC,OAAO,IAAI,CAACT,OAAO,CAACa,UAAU,aAAAX,MAAA,CAAaL,QAAQ,gBAAaiB,YAAY,EAAE;MAC5EL,KAAK;MACL,GAAGV,OAAO;MACVI,OAAO,EAAE;QAAE,aAAa,EAAE,eAAe;QAAE,IAAGJ,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEI,OAAO;MAAA;KAC/D,CAAC;EACJ;;AAGF,OAAM,MAAOW,YAAa,SAAQpB,UAAmB;AAgfrD,WAAiBC,QAAQ;EAqBTA,QAAA,CAAAmB,YAAY,GAAGrB,WAAW,CAACqB,YAAY;AAIvD,CAAC,EAzBgBnB,QAAQ,KAARA,QAAQ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/13b414c9d2ed02506de77a44cc71c576561a35cb45f03c83707d4c3dbc081d8a.json b/trivia-forge/node_modules/.cache/babel-loader/13b414c9d2ed02506de77a44cc71c576561a35cb45f03c83707d4c3dbc081d8a.json deleted file mode 100644 index f06444ce..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/13b414c9d2ed02506de77a44cc71c576561a35cb45f03c83707d4c3dbc081d8a.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n value: numberOfQuestions,\n onChange: e => setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10)))),\n min: true,\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaQuestion\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaQuestion\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"hg16lLzJerCd9XnW4Ja5h3Su2Cs=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","jsxDEV","_jsxDEV","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","console","log","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","value","onChange","e","Math","min","max","parseInt","target","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10))))}\n min\n className=\"form-control\" \n id=\"triviaTitle\" \n placeholder=\"Place holder\" \n />\n
\n
\n \n \n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAExC,SAASC,aAAaA,CAAA,EAAG;EAAAC,EAAA;EACrB,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGN,QAAQ,CAAC,CAAC,CAAC;EAC7D,MAAM,CAACO,QAAQ,EAAEC,WAAW,CAAC,GAAGR,QAAQ,CAAC,EAAE,CAAC;EAE5C,MAAMS,YAAY,GAAG,MAAOC,KAAK,IAAK;IAClCA,KAAK,CAACC,cAAc,CAAC,CAAC;;IAGtB;;IAEAC,OAAO,CAACC,GAAG,CAAC;MACRR,iBAAiB;MACjBE;IACJ,CAAC,CAAC;;IAEF;EAEJ,CAAC;EAGD,oBACIL,OAAA;IAAAY,QAAA,gBACIZ,OAAA;MAAAY,QAAA,EAAI;IAEJ;MAAAC,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAAI,CAAC,eACLhB,OAAA;MAAMiB,QAAQ,EAAEV,YAAa;MAAAK,QAAA,gBACzBZ,OAAA;QAAKkB,SAAS,EAAC,YAAY;QAAAN,QAAA,gBACvBZ,OAAA;UAAOmB,GAAG,EAAC,aAAa;UAAAP,QAAA,EAAC;QAAoB;UAAAC,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAO,CAAC,eACrDhB,OAAA;UACIoB,IAAI,EAAC,QAAQ;UACbC,KAAK,EAAElB,iBAAkB;UACzBmB,QAAQ,EAAEC,CAAC,IAAInB,oBAAoB,CAACoB,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AAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAC1F,CAAC,eACNhB,OAAA;QAAQoB,IAAI,EAAC,QAAQ;QAACF,SAAS,EAAC,iBAAiB;QAAAN,QAAA,EAAC;MAAM;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAC/D,CAAC;EAAA;IAAAH,QAAA,EAAAC,YAAA;IAAAC,UAAA;IAAAC,YAAA;EAAA,OAEN,CAAC;AAGd;AAACd,EAAA,CApDQD,aAAa;AAAA8B,EAAA,GAAb9B,aAAa;AAqDtB,eAAeA,aAAa;AAAC,IAAA8B,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/13d057003d1eabfe169989bd2497ebef0c3ff1d22b6a4dd434743365a53652ea.json b/trivia-forge/node_modules/.cache/babel-loader/13d057003d1eabfe169989bd2497ebef0c3ff1d22b6a4dd434743365a53652ea.json deleted file mode 100644 index 29d96711..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/13d057003d1eabfe169989bd2497ebef0c3ff1d22b6a4dd434743365a53652ea.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import useCallbackRef from './useCallbackRef';\nimport useCommittedRef from './useCommittedRef';\nimport useEventCallback from './useEventCallback';\nimport useEventListener from './useEventListener';\nimport useGlobalListener from './useGlobalListener';\nimport useInterval from './useInterval';\nimport useRafInterval from './useRafInterval';\nimport useMergeState from './useMergeState';\nimport useMergeStateFromProps from './useMergeStateFromProps';\nimport useMounted from './useMounted';\nimport usePrevious from './usePrevious';\nimport useImage from './useImage';\nimport useResizeObserver from './useResizeObserver';\nexport { useCallbackRef, useCommittedRef, useEventCallback, useEventListener, useGlobalListener, useInterval, useRafInterval, useMergeState, useMergeStateFromProps, useMounted, usePrevious, useImage, useResizeObserver };","map":{"version":3,"names":["useCallbackRef","useCommittedRef","useEventCallback","useEventListener","useGlobalListener","useInterval","useRafInterval","useMergeState","useMergeStateFromProps","useMounted","usePrevious","useImage","useResizeObserver"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/hooks/esm/index.js"],"sourcesContent":["import useCallbackRef from './useCallbackRef';\nimport useCommittedRef from './useCommittedRef';\nimport useEventCallback from './useEventCallback';\nimport useEventListener from './useEventListener';\nimport useGlobalListener from './useGlobalListener';\nimport useInterval from './useInterval';\nimport useRafInterval from './useRafInterval';\nimport useMergeState from './useMergeState';\nimport useMergeStateFromProps from './useMergeStateFromProps';\nimport useMounted from './useMounted';\nimport usePrevious from './usePrevious';\nimport useImage from './useImage';\nimport useResizeObserver from './useResizeObserver';\nexport { useCallbackRef, useCommittedRef, useEventCallback, useEventListener, useGlobalListener, useInterval, useRafInterval, useMergeState, useMergeStateFromProps, useMounted, usePrevious, useImage, useResizeObserver };"],"mappings":"AAAA,OAAOA,cAAc,MAAM,kBAAkB;AAC7C,OAAOC,eAAe,MAAM,mBAAmB;AAC/C,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,OAAOC,iBAAiB,MAAM,qBAAqB;AACnD,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,OAAOC,sBAAsB,MAAM,0BAA0B;AAC7D,OAAOC,UAAU,MAAM,cAAc;AACrC,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,QAAQ,MAAM,YAAY;AACjC,OAAOC,iBAAiB,MAAM,qBAAqB;AACnD,SAASZ,cAAc,EAAEC,eAAe,EAAEC,gBAAgB,EAAEC,gBAAgB,EAAEC,iBAAiB,EAAEC,WAAW,EAAEC,cAAc,EAAEC,aAAa,EAAEC,sBAAsB,EAAEC,UAAU,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,iBAAiB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/141123cafb4b4381b2ef9a7fc488742bd88ee097aab6e4f559dcbc5c9d57d1e6.json b/trivia-forge/node_modules/.cache/babel-loader/141123cafb4b4381b2ef9a7fc488742bd88ee097aab6e4f559dcbc5c9d57d1e6.json deleted file mode 100644 index 85e001f3..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/141123cafb4b4381b2ef9a7fc488742bd88ee097aab6e4f559dcbc5c9d57d1e6.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n}\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n }\n // Binding \"this\" is important for shallow renderer support.\n this.setState(updater.bind(this));\n}\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(prevProps, prevState);\n } finally {\n this.props = prevProps;\n this.state = prevState;\n }\n}\n\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n }\n if (typeof Component.getDerivedStateFromProps !== 'function' && typeof prototype.getSnapshotBeforeUpdate !== 'function') {\n return Component;\n }\n\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof prototype.componentWillMount === 'function') {\n foundWillMountName = 'componentWillMount';\n } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n if (typeof prototype.componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n if (typeof prototype.componentWillUpdate === 'function') {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {\n var componentName = Component.displayName || Component.name;\n var newApiName = typeof Component.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';\n throw Error('Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' + componentName + ' uses ' + newApiName + ' but also contains the following legacy lifecycles:' + (foundWillMountName !== null ? '\\n ' + foundWillMountName : '') + (foundWillReceivePropsName !== null ? '\\n ' + foundWillReceivePropsName : '') + (foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '') + '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' + 'https://fb.me/react-async-component-lifecycle-hooks');\n }\n\n // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n if (typeof Component.getDerivedStateFromProps === 'function') {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n }\n\n // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n if (typeof prototype.componentDidUpdate !== 'function') {\n throw new Error('Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype');\n }\n prototype.componentWillUpdate = componentWillUpdate;\n var componentDidUpdate = prototype.componentDidUpdate;\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(prevProps, prevState, maybeSnapshot) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : maybeSnapshot;\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n return Component;\n}\nexport { polyfill };","map":{"version":3,"names":["componentWillMount","state","constructor","getDerivedStateFromProps","props","undefined","setState","componentWillReceiveProps","nextProps","updater","prevState","bind","componentWillUpdate","nextState","prevProps","__reactInternalSnapshotFlag","__reactInternalSnapshot","getSnapshotBeforeUpdate","__suppressDeprecationWarning","polyfill","Component","prototype","isReactComponent","Error","foundWillMountName","foundWillReceivePropsName","foundWillUpdateName","UNSAFE_componentWillMount","UNSAFE_componentWillReceiveProps","UNSAFE_componentWillUpdate","componentName","displayName","name","newApiName","componentDidUpdate","componentDidUpdatePolyfill","maybeSnapshot","snapshot","call"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n}\n\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n }\n // Binding \"this\" is important for shallow renderer support.\n this.setState(updater.bind(this));\n}\n\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(\n prevProps,\n prevState\n );\n } finally {\n this.props = prevProps;\n this.state = prevState;\n }\n}\n\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\n\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n }\n\n if (\n typeof Component.getDerivedStateFromProps !== 'function' &&\n typeof prototype.getSnapshotBeforeUpdate !== 'function'\n ) {\n return Component;\n }\n\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof prototype.componentWillMount === 'function') {\n foundWillMountName = 'componentWillMount';\n } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n if (typeof prototype.componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n if (typeof prototype.componentWillUpdate === 'function') {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n if (\n foundWillMountName !== null ||\n foundWillReceivePropsName !== null ||\n foundWillUpdateName !== null\n ) {\n var componentName = Component.displayName || Component.name;\n var newApiName =\n typeof Component.getDerivedStateFromProps === 'function'\n ? 'getDerivedStateFromProps()'\n : 'getSnapshotBeforeUpdate()';\n\n throw Error(\n 'Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' +\n componentName +\n ' uses ' +\n newApiName +\n ' but also contains the following legacy lifecycles:' +\n (foundWillMountName !== null ? '\\n ' + foundWillMountName : '') +\n (foundWillReceivePropsName !== null\n ? '\\n ' + foundWillReceivePropsName\n : '') +\n (foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '') +\n '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' +\n 'https://fb.me/react-async-component-lifecycle-hooks'\n );\n }\n\n // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n if (typeof Component.getDerivedStateFromProps === 'function') {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n }\n\n // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n if (typeof prototype.componentDidUpdate !== 'function') {\n throw new Error(\n 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'\n );\n }\n\n prototype.componentWillUpdate = componentWillUpdate;\n\n var componentDidUpdate = prototype.componentDidUpdate;\n\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(\n prevProps,\n prevState,\n maybeSnapshot\n ) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag\n ? this.__reactInternalSnapshot\n : maybeSnapshot;\n\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n\n return Component;\n}\n\nexport { polyfill };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,kBAAkBA,CAAA,EAAG;EAC5B;EACA,IAAIC,KAAK,GAAG,IAAI,CAACC,WAAW,CAACC,wBAAwB,CAAC,IAAI,CAACC,KAAK,EAAE,IAAI,CAACH,KAAK,CAAC;EAC7E,IAAIA,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAKI,SAAS,EAAE;IACzC,IAAI,CAACC,QAAQ,CAACL,KAAK,CAAC;EACtB;AACF;AAEA,SAASM,yBAAyBA,CAACC,SAAS,EAAE;EAC5C;EACA;EACA,SAASC,OAAOA,CAACC,SAAS,EAAE;IAC1B,IAAIT,KAAK,GAAG,IAAI,CAACC,WAAW,CAACC,wBAAwB,CAACK,SAAS,EAAEE,SAAS,CAAC;IAC3E,OAAOT,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAKI,SAAS,GAAGJ,KAAK,GAAG,IAAI;EAC7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BAAyB,GAAGA,yBAAyB;EACjE;;EAEA;EACA;EACA;EACA,IAAI,OAAOc,SAAS,CAACJ,uBAAuB,KAAK,UAAU,EAAE;IAC3D,IAAI,OAAOI,SAAS,CAACa,kBAAkB,KAAK,UAAU,EAAE;MACtD,MAAM,IAAIX,KAAK,CACb,mHACF,CAAC;IACH;IAEAF,SAAS,CAACT,mBAAmB,GAAGA,mBAAmB;IAEnD,IAAIsB,kBAAkB,GAAGb,SAAS,CAACa,kBAAkB;IAErDb,SAAS,CAACa,kBAAkB,GAAG,SAASC,0BAA0BA,CAChErB,SAAS,EACTJ,SAAS,EACT0B,aAAa,EACb;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA,IAAIC,QAAQ,GAAG,IAAI,CAACtB,2BAA2B,GAC3C,IAAI,CAACC,uBAAuB,GAC5BoB,aAAa;MAEjBF,kBAAkB,CAACI,IAAI,CAAC,IAAI,EAAExB,SAAS,EAAEJ,SAAS,EAAE2B,QAAQ,CAAC;IAC/D,CAAC;EACH;EAEA,OAAOjB,SAAS;AAClB;AAEA,SAASD,QAAQ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/142cfec76ca72439bb8899b4deeb304e752b11ef5d8b69b27a6ea70b4718c642.json b/trivia-forge/node_modules/.cache/babel-loader/142cfec76ca72439bb8899b4deeb304e752b11ef5d8b69b27a6ea70b4718c642.json deleted file mode 100644 index 68864b57..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/142cfec76ca72439bb8899b4deeb304e752b11ef5d8b69b27a6ea70b4718c642.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"/** @license React vundefined\n * react-refresh-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function () {\n 'use strict';\n\n // ATTENTION\n // When adding new symbols to this file,\n // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n // The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n // nor polyfill, then a plain number is used for performance.\n var REACT_ELEMENT_TYPE = 0xeac7;\n var REACT_PORTAL_TYPE = 0xeaca;\n var REACT_FRAGMENT_TYPE = 0xeacb;\n var REACT_STRICT_MODE_TYPE = 0xeacc;\n var REACT_PROFILER_TYPE = 0xead2;\n var REACT_PROVIDER_TYPE = 0xeacd;\n var REACT_CONTEXT_TYPE = 0xeace;\n var REACT_FORWARD_REF_TYPE = 0xead0;\n var REACT_SUSPENSE_TYPE = 0xead1;\n var REACT_SUSPENSE_LIST_TYPE = 0xead8;\n var REACT_MEMO_TYPE = 0xead3;\n var REACT_LAZY_TYPE = 0xead4;\n var REACT_SCOPE_TYPE = 0xead7;\n var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;\n var REACT_OFFSCREEN_TYPE = 0xeae2;\n var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;\n var REACT_CACHE_TYPE = 0xeae4;\n if (typeof Symbol === 'function' && Symbol.for) {\n var symbolFor = Symbol.for;\n REACT_ELEMENT_TYPE = symbolFor('react.element');\n REACT_PORTAL_TYPE = symbolFor('react.portal');\n REACT_FRAGMENT_TYPE = symbolFor('react.fragment');\n REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');\n REACT_PROFILER_TYPE = symbolFor('react.profiler');\n REACT_PROVIDER_TYPE = symbolFor('react.provider');\n REACT_CONTEXT_TYPE = symbolFor('react.context');\n REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');\n REACT_SUSPENSE_TYPE = symbolFor('react.suspense');\n REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');\n REACT_MEMO_TYPE = symbolFor('react.memo');\n REACT_LAZY_TYPE = symbolFor('react.lazy');\n REACT_SCOPE_TYPE = symbolFor('react.scope');\n REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');\n REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');\n REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');\n REACT_CACHE_TYPE = symbolFor('react.cache');\n }\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // We never remove these associations.\n // It's OK to reference families, but use WeakMap/Set for types.\n\n var allFamiliesByID = new Map();\n var allFamiliesByType = new PossiblyWeakMap();\n var allSignaturesByType = new PossiblyWeakMap(); // This WeakMap is read by React, so we only put families\n // that have actually been edited here. This keeps checks fast.\n // $FlowIssue\n\n var updatedFamiliesByType = new PossiblyWeakMap(); // This is cleared on every performReactRefresh() call.\n // It is an array of [Family, NextType] tuples.\n\n var pendingUpdates = []; // This is injected by the renderer via DevTools global hook.\n\n var helpersByRendererID = new Map();\n var helpersByRoot = new Map(); // We keep track of mounted roots so we can schedule updates.\n\n var mountedRoots = new Set(); // If a root captures an error, we remember it so we can retry on edit.\n\n var failedRoots = new Set(); // In environments that support WeakMap, we also remember the last element for every root.\n // It needs to be weak because we do this even for roots that failed to mount.\n // If there is no WeakMap, we won't attempt to do retrying.\n // $FlowIssue\n\n var rootElements =\n // $FlowIssue\n typeof WeakMap === 'function' ? new WeakMap() : null;\n var isPerformingRefresh = false;\n function computeFullKey(signature) {\n if (signature.fullKey !== null) {\n return signature.fullKey;\n }\n var fullKey = signature.ownKey;\n var hooks;\n try {\n hooks = signature.getCustomHooks();\n } catch (err) {\n // This can happen in an edge case, e.g. if expression like Foo.useSomething\n // depends on Foo which is lazily initialized during rendering.\n // In that case just assume we'll have to remount.\n signature.forceReset = true;\n signature.fullKey = fullKey;\n return fullKey;\n }\n for (var i = 0; i < hooks.length; i++) {\n var hook = hooks[i];\n if (typeof hook !== 'function') {\n // Something's wrong. Assume we need to remount.\n signature.forceReset = true;\n signature.fullKey = fullKey;\n return fullKey;\n }\n var nestedHookSignature = allSignaturesByType.get(hook);\n if (nestedHookSignature === undefined) {\n // No signature means Hook wasn't in the source code, e.g. in a library.\n // We'll skip it because we can assume it won't change during this session.\n continue;\n }\n var nestedHookKey = computeFullKey(nestedHookSignature);\n if (nestedHookSignature.forceReset) {\n signature.forceReset = true;\n }\n fullKey += '\\n---\\n' + nestedHookKey;\n }\n signature.fullKey = fullKey;\n return fullKey;\n }\n function haveEqualSignatures(prevType, nextType) {\n var prevSignature = allSignaturesByType.get(prevType);\n var nextSignature = allSignaturesByType.get(nextType);\n if (prevSignature === undefined && nextSignature === undefined) {\n return true;\n }\n if (prevSignature === undefined || nextSignature === undefined) {\n return false;\n }\n if (computeFullKey(prevSignature) !== computeFullKey(nextSignature)) {\n return false;\n }\n if (nextSignature.forceReset) {\n return false;\n }\n return true;\n }\n function isReactClass(type) {\n return type.prototype && type.prototype.isReactComponent;\n }\n function canPreserveStateBetween(prevType, nextType) {\n if (isReactClass(prevType) || isReactClass(nextType)) {\n return false;\n }\n if (haveEqualSignatures(prevType, nextType)) {\n return true;\n }\n return false;\n }\n function resolveFamily(type) {\n // Only check updated types to keep lookups fast.\n return updatedFamiliesByType.get(type);\n } // If we didn't care about IE11, we could use new Map/Set(iterable).\n\n function cloneMap(map) {\n var clone = new Map();\n map.forEach(function (value, key) {\n clone.set(key, value);\n });\n return clone;\n }\n function cloneSet(set) {\n var clone = new Set();\n set.forEach(function (value) {\n clone.add(value);\n });\n return clone;\n } // This is a safety mechanism to protect against rogue getters and Proxies.\n\n function getProperty(object, property) {\n try {\n return object[property];\n } catch (err) {\n // Intentionally ignore.\n return undefined;\n }\n }\n function performReactRefresh() {\n if (pendingUpdates.length === 0) {\n return null;\n }\n if (isPerformingRefresh) {\n return null;\n }\n isPerformingRefresh = true;\n try {\n var staleFamilies = new Set();\n var updatedFamilies = new Set();\n var updates = pendingUpdates;\n pendingUpdates = [];\n updates.forEach(function (_ref) {\n var family = _ref[0],\n nextType = _ref[1];\n // Now that we got a real edit, we can create associations\n // that will be read by the React reconciler.\n var prevType = family.current;\n updatedFamiliesByType.set(prevType, family);\n updatedFamiliesByType.set(nextType, family);\n family.current = nextType; // Determine whether this should be a re-render or a re-mount.\n\n if (canPreserveStateBetween(prevType, nextType)) {\n updatedFamilies.add(family);\n } else {\n staleFamilies.add(family);\n }\n }); // TODO: rename these fields to something more meaningful.\n\n var update = {\n updatedFamilies: updatedFamilies,\n // Families that will re-render preserving state\n staleFamilies: staleFamilies // Families that will be remounted\n };\n helpersByRendererID.forEach(function (helpers) {\n // Even if there are no roots, set the handler on first update.\n // This ensures that if *new* roots are mounted, they'll use the resolve handler.\n helpers.setRefreshHandler(resolveFamily);\n });\n var didError = false;\n var firstError = null; // We snapshot maps and sets that are mutated during commits.\n // If we don't do this, there is a risk they will be mutated while\n // we iterate over them. For example, trying to recover a failed root\n // may cause another root to be added to the failed list -- an infinite loop.\n\n var failedRootsSnapshot = cloneSet(failedRoots);\n var mountedRootsSnapshot = cloneSet(mountedRoots);\n var helpersByRootSnapshot = cloneMap(helpersByRoot);\n failedRootsSnapshot.forEach(function (root) {\n var helpers = helpersByRootSnapshot.get(root);\n if (helpers === undefined) {\n throw new Error('Could not find helpers for a root. This is a bug in React Refresh.');\n }\n if (!failedRoots.has(root)) {// No longer failed.\n }\n if (rootElements === null) {\n return;\n }\n if (!rootElements.has(root)) {\n return;\n }\n var element = rootElements.get(root);\n try {\n helpers.scheduleRoot(root, element);\n } catch (err) {\n if (!didError) {\n didError = true;\n firstError = err;\n } // Keep trying other roots.\n }\n });\n mountedRootsSnapshot.forEach(function (root) {\n var helpers = helpersByRootSnapshot.get(root);\n if (helpers === undefined) {\n throw new Error('Could not find helpers for a root. This is a bug in React Refresh.');\n }\n if (!mountedRoots.has(root)) {// No longer mounted.\n }\n try {\n helpers.scheduleRefresh(root, update);\n } catch (err) {\n if (!didError) {\n didError = true;\n firstError = err;\n } // Keep trying other roots.\n }\n });\n if (didError) {\n throw firstError;\n }\n return update;\n } finally {\n isPerformingRefresh = false;\n }\n }\n function register(type, id) {\n {\n if (type === null) {\n return;\n }\n if (typeof type !== 'function' && typeof type !== 'object') {\n return;\n } // This can happen in an edge case, e.g. if we register\n // return value of a HOC but it returns a cached component.\n // Ignore anything but the first registration for each type.\n\n if (allFamiliesByType.has(type)) {\n return;\n } // Create family or remember to update it.\n // None of this bookkeeping affects reconciliation\n // until the first performReactRefresh() call above.\n\n var family = allFamiliesByID.get(id);\n if (family === undefined) {\n family = {\n current: type\n };\n allFamiliesByID.set(id, family);\n } else {\n pendingUpdates.push([family, type]);\n }\n allFamiliesByType.set(type, family); // Visit inner types because we might not have registered them.\n\n if (typeof type === 'object' && type !== null) {\n switch (getProperty(type, '$$typeof')) {\n case REACT_FORWARD_REF_TYPE:\n register(type.render, id + '$render');\n break;\n case REACT_MEMO_TYPE:\n register(type.type, id + '$type');\n break;\n }\n }\n }\n }\n function setSignature(type, key) {\n var forceReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var getCustomHooks = arguments.length > 3 ? arguments[3] : undefined;\n {\n if (!allSignaturesByType.has(type)) {\n allSignaturesByType.set(type, {\n forceReset: forceReset,\n ownKey: key,\n fullKey: null,\n getCustomHooks: getCustomHooks || function () {\n return [];\n }\n });\n } // Visit inner types because we might not have signed them.\n\n if (typeof type === 'object' && type !== null) {\n switch (getProperty(type, '$$typeof')) {\n case REACT_FORWARD_REF_TYPE:\n setSignature(type.render, key, forceReset, getCustomHooks);\n break;\n case REACT_MEMO_TYPE:\n setSignature(type.type, key, forceReset, getCustomHooks);\n break;\n }\n }\n }\n } // This is lazily called during first render for a type.\n // It captures Hook list at that time so inline requires don't break comparisons.\n\n function collectCustomHooksForSignature(type) {\n {\n var signature = allSignaturesByType.get(type);\n if (signature !== undefined) {\n computeFullKey(signature);\n }\n }\n }\n function getFamilyByID(id) {\n {\n return allFamiliesByID.get(id);\n }\n }\n function getFamilyByType(type) {\n {\n return allFamiliesByType.get(type);\n }\n }\n function findAffectedHostInstances(families) {\n {\n var affectedInstances = new Set();\n mountedRoots.forEach(function (root) {\n var helpers = helpersByRoot.get(root);\n if (helpers === undefined) {\n throw new Error('Could not find helpers for a root. This is a bug in React Refresh.');\n }\n var instancesForRoot = helpers.findHostInstancesForRefresh(root, families);\n instancesForRoot.forEach(function (inst) {\n affectedInstances.add(inst);\n });\n });\n return affectedInstances;\n }\n }\n function injectIntoGlobalHook(globalObject) {\n {\n // For React Native, the global hook will be set up by require('react-devtools-core').\n // That code will run before us. So we need to monkeypatch functions on existing hook.\n // For React Web, the global hook will be set up by the extension.\n // This will also run before us.\n var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__;\n if (hook === undefined) {\n // However, if there is no DevTools extension, we'll need to set up the global hook ourselves.\n // Note that in this case it's important that renderer code runs *after* this method call.\n // Otherwise, the renderer will think that there is no global hook, and won't do the injection.\n var nextID = 0;\n globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = {\n renderers: new Map(),\n supportsFiber: true,\n inject: function (injected) {\n return nextID++;\n },\n onScheduleFiberRoot: function (id, root, children) {},\n onCommitFiberRoot: function (id, root, maybePriorityLevel, didError) {},\n onCommitFiberUnmount: function () {}\n };\n }\n if (hook.isDisabled) {\n // This isn't a real property on the hook, but it can be set to opt out\n // of DevTools integration and associated warnings and logs.\n // Using console['warn'] to evade Babel and ESLint\n console['warn']('Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). ' + 'Fast Refresh is not compatible with this shim and will be disabled.');\n return;\n } // Here, we just want to get a reference to scheduleRefresh.\n\n var oldInject = hook.inject;\n hook.inject = function (injected) {\n var id = oldInject.apply(this, arguments);\n if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') {\n // This version supports React Refresh.\n helpersByRendererID.set(id, injected);\n }\n return id;\n }; // Do the same for any already injected roots.\n // This is useful if ReactDOM has already been initialized.\n // https://github.com/facebook/react/issues/17626\n\n hook.renderers.forEach(function (injected, id) {\n if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') {\n // This version supports React Refresh.\n helpersByRendererID.set(id, injected);\n }\n }); // We also want to track currently mounted roots.\n\n var oldOnCommitFiberRoot = hook.onCommitFiberRoot;\n var oldOnScheduleFiberRoot = hook.onScheduleFiberRoot || function () {};\n hook.onScheduleFiberRoot = function (id, root, children) {\n if (!isPerformingRefresh) {\n // If it was intentionally scheduled, don't attempt to restore.\n // This includes intentionally scheduled unmounts.\n failedRoots.delete(root);\n if (rootElements !== null) {\n rootElements.set(root, children);\n }\n }\n return oldOnScheduleFiberRoot.apply(this, arguments);\n };\n hook.onCommitFiberRoot = function (id, root, maybePriorityLevel, didError) {\n var helpers = helpersByRendererID.get(id);\n if (helpers !== undefined) {\n helpersByRoot.set(root, helpers);\n var current = root.current;\n var alternate = current.alternate; // We need to determine whether this root has just (un)mounted.\n // This logic is copy-pasted from similar logic in the DevTools backend.\n // If this breaks with some refactoring, you'll want to update DevTools too.\n\n if (alternate !== null) {\n var wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null;\n var isMounted = current.memoizedState != null && current.memoizedState.element != null;\n if (!wasMounted && isMounted) {\n // Mount a new root.\n mountedRoots.add(root);\n failedRoots.delete(root);\n } else if (wasMounted && isMounted) ;else if (wasMounted && !isMounted) {\n // Unmount an existing root.\n mountedRoots.delete(root);\n if (didError) {\n // We'll remount it on future edits.\n failedRoots.add(root);\n } else {\n helpersByRoot.delete(root);\n }\n } else if (!wasMounted && !isMounted) {\n if (didError) {\n // We'll remount it on future edits.\n failedRoots.add(root);\n }\n }\n } else {\n // Mount a new root.\n mountedRoots.add(root);\n }\n } // Always call the decorated DevTools hook.\n\n return oldOnCommitFiberRoot.apply(this, arguments);\n };\n }\n }\n function hasUnrecoverableErrors() {\n // TODO: delete this after removing dependency in RN.\n return false;\n } // Exposed for testing.\n\n function _getMountedRootCount() {\n {\n return mountedRoots.size;\n }\n } // This is a wrapper over more primitive functions for setting signature.\n // Signatures let us decide whether the Hook order has changed on refresh.\n //\n // This function is intended to be used as a transform target, e.g.:\n // var _s = createSignatureFunctionForTransform()\n //\n // function Hello() {\n // const [foo, setFoo] = useState(0);\n // const value = useCustomHook();\n // _s(); /* Call without arguments triggers collecting the custom Hook list.\n // * This doesn't happen during the module evaluation because we\n // * don't want to change the module order with inline requires.\n // * Next calls are noops. */\n // return

Hi

;\n // }\n //\n // /* Call with arguments attaches the signature to the type: */\n // _s(\n // Hello,\n // 'useState{[foo, setFoo]}(0)',\n // () => [useCustomHook], /* Lazy to avoid triggering inline requires */\n // );\n\n function createSignatureFunctionForTransform() {\n {\n var savedType;\n var hasCustomHooks;\n var didCollectHooks = false;\n return function (type, key, forceReset, getCustomHooks) {\n if (typeof key === 'string') {\n // We're in the initial phase that associates signatures\n // with the functions. Note this may be called multiple times\n // in HOC chains like _s(hoc1(_s(hoc2(_s(actualFunction))))).\n if (!savedType) {\n // We're in the innermost call, so this is the actual type.\n savedType = type;\n hasCustomHooks = typeof getCustomHooks === 'function';\n } // Set the signature for all types (even wrappers!) in case\n // they have no signatures of their own. This is to prevent\n // problems like https://github.com/facebook/react/issues/20417.\n\n if (type != null && (typeof type === 'function' || typeof type === 'object')) {\n setSignature(type, key, forceReset, getCustomHooks);\n }\n return type;\n } else {\n // We're in the _s() call without arguments, which means\n // this is the time to collect custom Hook signatures.\n // Only do this once. This path is hot and runs *inside* every render!\n if (!didCollectHooks && hasCustomHooks) {\n didCollectHooks = true;\n collectCustomHooksForSignature(savedType);\n }\n }\n };\n }\n }\n function isLikelyComponentType(type) {\n {\n switch (typeof type) {\n case 'function':\n {\n // First, deal with classes.\n if (type.prototype != null) {\n if (type.prototype.isReactComponent) {\n // React class.\n return true;\n }\n var ownNames = Object.getOwnPropertyNames(type.prototype);\n if (ownNames.length > 1 || ownNames[0] !== 'constructor') {\n // This looks like a class.\n return false;\n } // eslint-disable-next-line no-proto\n\n if (type.prototype.__proto__ !== Object.prototype) {\n // It has a superclass.\n return false;\n } // Pass through.\n // This looks like a regular function with empty prototype.\n } // For plain functions and arrows, use name as a heuristic.\n\n var name = type.name || type.displayName;\n return typeof name === 'string' && /^[A-Z]/.test(name);\n }\n case 'object':\n {\n if (type != null) {\n switch (getProperty(type, '$$typeof')) {\n case REACT_FORWARD_REF_TYPE:\n case REACT_MEMO_TYPE:\n // Definitely React components.\n return true;\n default:\n return false;\n }\n }\n return false;\n }\n default:\n {\n return false;\n }\n }\n }\n }\n exports._getMountedRootCount = _getMountedRootCount;\n exports.collectCustomHooksForSignature = collectCustomHooksForSignature;\n exports.createSignatureFunctionForTransform = createSignatureFunctionForTransform;\n exports.findAffectedHostInstances = findAffectedHostInstances;\n exports.getFamilyByID = getFamilyByID;\n exports.getFamilyByType = getFamilyByType;\n exports.hasUnrecoverableErrors = hasUnrecoverableErrors;\n exports.injectIntoGlobalHook = injectIntoGlobalHook;\n exports.isLikelyComponentType = isLikelyComponentType;\n exports.performReactRefresh = performReactRefresh;\n exports.register = register;\n exports.setSignature = setSignature;\n })();\n}","map":{"version":3,"names":["process","env","NODE_ENV","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_SCOPE_TYPE","REACT_DEBUG_TRACING_MODE_TYPE","REACT_OFFSCREEN_TYPE","REACT_LEGACY_HIDDEN_TYPE","REACT_CACHE_TYPE","Symbol","for","symbolFor","PossiblyWeakMap","WeakMap","Map","allFamiliesByID","allFamiliesByType","allSignaturesByType","updatedFamiliesByType","pendingUpdates","helpersByRendererID","helpersByRoot","mountedRoots","Set","failedRoots","rootElements","isPerformingRefresh","computeFullKey","signature","fullKey","ownKey","hooks","getCustomHooks","err","forceReset","i","length","hook","nestedHookSignature","get","undefined","nestedHookKey","haveEqualSignatures","prevType","nextType","prevSignature","nextSignature","isReactClass","type","prototype","isReactComponent","canPreserveStateBetween","resolveFamily","cloneMap","map","clone","forEach","value","key","set","cloneSet","add","getProperty","object","property","performReactRefresh","staleFamilies","updatedFamilies","updates","_ref","family","current","update","helpers","setRefreshHandler","didError","firstError","failedRootsSnapshot","mountedRootsSnapshot","helpersByRootSnapshot","root","Error","has","element","scheduleRoot","scheduleRefresh","register","id","push","render","setSignature","arguments","collectCustomHooksForSignature","getFamilyByID","getFamilyByType","findAffectedHostInstances","families","affectedInstances","instancesForRoot","findHostInstancesForRefresh","inst","injectIntoGlobalHook","globalObject","__REACT_DEVTOOLS_GLOBAL_HOOK__","nextID","renderers","supportsFiber","inject","injected","onScheduleFiberRoot","children","onCommitFiberRoot","maybePriorityLevel","onCommitFiberUnmount","isDisabled","console","oldInject","apply","oldOnCommitFiberRoot","oldOnScheduleFiberRoot","delete","alternate","wasMounted","memoizedState","isMounted","hasUnrecoverableErrors","_getMountedRootCount","size","createSignatureFunctionForTransform","savedType","hasCustomHooks","didCollectHooks","isLikelyComponentType","ownNames","Object","getOwnPropertyNames","__proto__","name","displayName","test","exports"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-refresh/cjs/react-refresh-runtime.development.js"],"sourcesContent":["/** @license React vundefined\n * react-refresh-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar REACT_ELEMENT_TYPE = 0xeac7;\nvar REACT_PORTAL_TYPE = 0xeaca;\nvar REACT_FRAGMENT_TYPE = 0xeacb;\nvar REACT_STRICT_MODE_TYPE = 0xeacc;\nvar REACT_PROFILER_TYPE = 0xead2;\nvar REACT_PROVIDER_TYPE = 0xeacd;\nvar REACT_CONTEXT_TYPE = 0xeace;\nvar REACT_FORWARD_REF_TYPE = 0xead0;\nvar REACT_SUSPENSE_TYPE = 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = 0xead8;\nvar REACT_MEMO_TYPE = 0xead3;\nvar REACT_LAZY_TYPE = 0xead4;\nvar REACT_SCOPE_TYPE = 0xead7;\nvar REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;\nvar REACT_OFFSCREEN_TYPE = 0xeae2;\nvar REACT_LEGACY_HIDDEN_TYPE = 0xeae3;\nvar REACT_CACHE_TYPE = 0xeae4;\n\nif (typeof Symbol === 'function' && Symbol.for) {\n var symbolFor = Symbol.for;\n REACT_ELEMENT_TYPE = symbolFor('react.element');\n REACT_PORTAL_TYPE = symbolFor('react.portal');\n REACT_FRAGMENT_TYPE = symbolFor('react.fragment');\n REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');\n REACT_PROFILER_TYPE = symbolFor('react.profiler');\n REACT_PROVIDER_TYPE = symbolFor('react.provider');\n REACT_CONTEXT_TYPE = symbolFor('react.context');\n REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');\n REACT_SUSPENSE_TYPE = symbolFor('react.suspense');\n REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');\n REACT_MEMO_TYPE = symbolFor('react.memo');\n REACT_LAZY_TYPE = symbolFor('react.lazy');\n REACT_SCOPE_TYPE = symbolFor('react.scope');\n REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');\n REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');\n REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');\n REACT_CACHE_TYPE = symbolFor('react.cache');\n}\n\nvar PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // We never remove these associations.\n// It's OK to reference families, but use WeakMap/Set for types.\n\nvar allFamiliesByID = new Map();\nvar allFamiliesByType = new PossiblyWeakMap();\nvar allSignaturesByType = new PossiblyWeakMap(); // This WeakMap is read by React, so we only put families\n// that have actually been edited here. This keeps checks fast.\n// $FlowIssue\n\nvar updatedFamiliesByType = new PossiblyWeakMap(); // This is cleared on every performReactRefresh() call.\n// It is an array of [Family, NextType] tuples.\n\nvar pendingUpdates = []; // This is injected by the renderer via DevTools global hook.\n\nvar helpersByRendererID = new Map();\nvar helpersByRoot = new Map(); // We keep track of mounted roots so we can schedule updates.\n\nvar mountedRoots = new Set(); // If a root captures an error, we remember it so we can retry on edit.\n\nvar failedRoots = new Set(); // In environments that support WeakMap, we also remember the last element for every root.\n// It needs to be weak because we do this even for roots that failed to mount.\n// If there is no WeakMap, we won't attempt to do retrying.\n// $FlowIssue\n\nvar rootElements = // $FlowIssue\ntypeof WeakMap === 'function' ? new WeakMap() : null;\nvar isPerformingRefresh = false;\n\nfunction computeFullKey(signature) {\n if (signature.fullKey !== null) {\n return signature.fullKey;\n }\n\n var fullKey = signature.ownKey;\n var hooks;\n\n try {\n hooks = signature.getCustomHooks();\n } catch (err) {\n // This can happen in an edge case, e.g. if expression like Foo.useSomething\n // depends on Foo which is lazily initialized during rendering.\n // In that case just assume we'll have to remount.\n signature.forceReset = true;\n signature.fullKey = fullKey;\n return fullKey;\n }\n\n for (var i = 0; i < hooks.length; i++) {\n var hook = hooks[i];\n\n if (typeof hook !== 'function') {\n // Something's wrong. Assume we need to remount.\n signature.forceReset = true;\n signature.fullKey = fullKey;\n return fullKey;\n }\n\n var nestedHookSignature = allSignaturesByType.get(hook);\n\n if (nestedHookSignature === undefined) {\n // No signature means Hook wasn't in the source code, e.g. in a library.\n // We'll skip it because we can assume it won't change during this session.\n continue;\n }\n\n var nestedHookKey = computeFullKey(nestedHookSignature);\n\n if (nestedHookSignature.forceReset) {\n signature.forceReset = true;\n }\n\n fullKey += '\\n---\\n' + nestedHookKey;\n }\n\n signature.fullKey = fullKey;\n return fullKey;\n}\n\nfunction haveEqualSignatures(prevType, nextType) {\n var prevSignature = allSignaturesByType.get(prevType);\n var nextSignature = allSignaturesByType.get(nextType);\n\n if (prevSignature === undefined && nextSignature === undefined) {\n return true;\n }\n\n if (prevSignature === undefined || nextSignature === undefined) {\n return false;\n }\n\n if (computeFullKey(prevSignature) !== computeFullKey(nextSignature)) {\n return false;\n }\n\n if (nextSignature.forceReset) {\n return false;\n }\n\n return true;\n}\n\nfunction isReactClass(type) {\n return type.prototype && type.prototype.isReactComponent;\n}\n\nfunction canPreserveStateBetween(prevType, nextType) {\n if (isReactClass(prevType) || isReactClass(nextType)) {\n return false;\n }\n\n if (haveEqualSignatures(prevType, nextType)) {\n return true;\n }\n\n return false;\n}\n\nfunction resolveFamily(type) {\n // Only check updated types to keep lookups fast.\n return updatedFamiliesByType.get(type);\n} // If we didn't care about IE11, we could use new Map/Set(iterable).\n\n\nfunction cloneMap(map) {\n var clone = new Map();\n map.forEach(function (value, key) {\n clone.set(key, value);\n });\n return clone;\n}\n\nfunction cloneSet(set) {\n var clone = new Set();\n set.forEach(function (value) {\n clone.add(value);\n });\n return clone;\n} // This is a safety mechanism to protect against rogue getters and Proxies.\n\n\nfunction getProperty(object, property) {\n try {\n return object[property];\n } catch (err) {\n // Intentionally ignore.\n return undefined;\n }\n}\n\nfunction performReactRefresh() {\n\n if (pendingUpdates.length === 0) {\n return null;\n }\n\n if (isPerformingRefresh) {\n return null;\n }\n\n isPerformingRefresh = true;\n\n try {\n var staleFamilies = new Set();\n var updatedFamilies = new Set();\n var updates = pendingUpdates;\n pendingUpdates = [];\n updates.forEach(function (_ref) {\n var family = _ref[0],\n nextType = _ref[1];\n // Now that we got a real edit, we can create associations\n // that will be read by the React reconciler.\n var prevType = family.current;\n updatedFamiliesByType.set(prevType, family);\n updatedFamiliesByType.set(nextType, family);\n family.current = nextType; // Determine whether this should be a re-render or a re-mount.\n\n if (canPreserveStateBetween(prevType, nextType)) {\n updatedFamilies.add(family);\n } else {\n staleFamilies.add(family);\n }\n }); // TODO: rename these fields to something more meaningful.\n\n var update = {\n updatedFamilies: updatedFamilies,\n // Families that will re-render preserving state\n staleFamilies: staleFamilies // Families that will be remounted\n\n };\n helpersByRendererID.forEach(function (helpers) {\n // Even if there are no roots, set the handler on first update.\n // This ensures that if *new* roots are mounted, they'll use the resolve handler.\n helpers.setRefreshHandler(resolveFamily);\n });\n var didError = false;\n var firstError = null; // We snapshot maps and sets that are mutated during commits.\n // If we don't do this, there is a risk they will be mutated while\n // we iterate over them. For example, trying to recover a failed root\n // may cause another root to be added to the failed list -- an infinite loop.\n\n var failedRootsSnapshot = cloneSet(failedRoots);\n var mountedRootsSnapshot = cloneSet(mountedRoots);\n var helpersByRootSnapshot = cloneMap(helpersByRoot);\n failedRootsSnapshot.forEach(function (root) {\n var helpers = helpersByRootSnapshot.get(root);\n\n if (helpers === undefined) {\n throw new Error('Could not find helpers for a root. This is a bug in React Refresh.');\n }\n\n if (!failedRoots.has(root)) {// No longer failed.\n }\n\n if (rootElements === null) {\n return;\n }\n\n if (!rootElements.has(root)) {\n return;\n }\n\n var element = rootElements.get(root);\n\n try {\n helpers.scheduleRoot(root, element);\n } catch (err) {\n if (!didError) {\n didError = true;\n firstError = err;\n } // Keep trying other roots.\n\n }\n });\n mountedRootsSnapshot.forEach(function (root) {\n var helpers = helpersByRootSnapshot.get(root);\n\n if (helpers === undefined) {\n throw new Error('Could not find helpers for a root. This is a bug in React Refresh.');\n }\n\n if (!mountedRoots.has(root)) {// No longer mounted.\n }\n\n try {\n helpers.scheduleRefresh(root, update);\n } catch (err) {\n if (!didError) {\n didError = true;\n firstError = err;\n } // Keep trying other roots.\n\n }\n });\n\n if (didError) {\n throw firstError;\n }\n\n return update;\n } finally {\n isPerformingRefresh = false;\n }\n}\nfunction register(type, id) {\n {\n if (type === null) {\n return;\n }\n\n if (typeof type !== 'function' && typeof type !== 'object') {\n return;\n } // This can happen in an edge case, e.g. if we register\n // return value of a HOC but it returns a cached component.\n // Ignore anything but the first registration for each type.\n\n\n if (allFamiliesByType.has(type)) {\n return;\n } // Create family or remember to update it.\n // None of this bookkeeping affects reconciliation\n // until the first performReactRefresh() call above.\n\n\n var family = allFamiliesByID.get(id);\n\n if (family === undefined) {\n family = {\n current: type\n };\n allFamiliesByID.set(id, family);\n } else {\n pendingUpdates.push([family, type]);\n }\n\n allFamiliesByType.set(type, family); // Visit inner types because we might not have registered them.\n\n if (typeof type === 'object' && type !== null) {\n switch (getProperty(type, '$$typeof')) {\n case REACT_FORWARD_REF_TYPE:\n register(type.render, id + '$render');\n break;\n\n case REACT_MEMO_TYPE:\n register(type.type, id + '$type');\n break;\n }\n }\n }\n}\nfunction setSignature(type, key) {\n var forceReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var getCustomHooks = arguments.length > 3 ? arguments[3] : undefined;\n\n {\n if (!allSignaturesByType.has(type)) {\n allSignaturesByType.set(type, {\n forceReset: forceReset,\n ownKey: key,\n fullKey: null,\n getCustomHooks: getCustomHooks || function () {\n return [];\n }\n });\n } // Visit inner types because we might not have signed them.\n\n\n if (typeof type === 'object' && type !== null) {\n switch (getProperty(type, '$$typeof')) {\n case REACT_FORWARD_REF_TYPE:\n setSignature(type.render, key, forceReset, getCustomHooks);\n break;\n\n case REACT_MEMO_TYPE:\n setSignature(type.type, key, forceReset, getCustomHooks);\n break;\n }\n }\n }\n} // This is lazily called during first render for a type.\n// It captures Hook list at that time so inline requires don't break comparisons.\n\nfunction collectCustomHooksForSignature(type) {\n {\n var signature = allSignaturesByType.get(type);\n\n if (signature !== undefined) {\n computeFullKey(signature);\n }\n }\n}\nfunction getFamilyByID(id) {\n {\n return allFamiliesByID.get(id);\n }\n}\nfunction getFamilyByType(type) {\n {\n return allFamiliesByType.get(type);\n }\n}\nfunction findAffectedHostInstances(families) {\n {\n var affectedInstances = new Set();\n mountedRoots.forEach(function (root) {\n var helpers = helpersByRoot.get(root);\n\n if (helpers === undefined) {\n throw new Error('Could not find helpers for a root. This is a bug in React Refresh.');\n }\n\n var instancesForRoot = helpers.findHostInstancesForRefresh(root, families);\n instancesForRoot.forEach(function (inst) {\n affectedInstances.add(inst);\n });\n });\n return affectedInstances;\n }\n}\nfunction injectIntoGlobalHook(globalObject) {\n {\n // For React Native, the global hook will be set up by require('react-devtools-core').\n // That code will run before us. So we need to monkeypatch functions on existing hook.\n // For React Web, the global hook will be set up by the extension.\n // This will also run before us.\n var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__;\n\n if (hook === undefined) {\n // However, if there is no DevTools extension, we'll need to set up the global hook ourselves.\n // Note that in this case it's important that renderer code runs *after* this method call.\n // Otherwise, the renderer will think that there is no global hook, and won't do the injection.\n var nextID = 0;\n globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = {\n renderers: new Map(),\n supportsFiber: true,\n inject: function (injected) {\n return nextID++;\n },\n onScheduleFiberRoot: function (id, root, children) {},\n onCommitFiberRoot: function (id, root, maybePriorityLevel, didError) {},\n onCommitFiberUnmount: function () {}\n };\n }\n\n if (hook.isDisabled) {\n // This isn't a real property on the hook, but it can be set to opt out\n // of DevTools integration and associated warnings and logs.\n // Using console['warn'] to evade Babel and ESLint\n console['warn']('Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). ' + 'Fast Refresh is not compatible with this shim and will be disabled.');\n return;\n } // Here, we just want to get a reference to scheduleRefresh.\n\n\n var oldInject = hook.inject;\n\n hook.inject = function (injected) {\n var id = oldInject.apply(this, arguments);\n\n if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') {\n // This version supports React Refresh.\n helpersByRendererID.set(id, injected);\n }\n\n return id;\n }; // Do the same for any already injected roots.\n // This is useful if ReactDOM has already been initialized.\n // https://github.com/facebook/react/issues/17626\n\n\n hook.renderers.forEach(function (injected, id) {\n if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') {\n // This version supports React Refresh.\n helpersByRendererID.set(id, injected);\n }\n }); // We also want to track currently mounted roots.\n\n var oldOnCommitFiberRoot = hook.onCommitFiberRoot;\n\n var oldOnScheduleFiberRoot = hook.onScheduleFiberRoot || function () {};\n\n hook.onScheduleFiberRoot = function (id, root, children) {\n if (!isPerformingRefresh) {\n // If it was intentionally scheduled, don't attempt to restore.\n // This includes intentionally scheduled unmounts.\n failedRoots.delete(root);\n\n if (rootElements !== null) {\n rootElements.set(root, children);\n }\n }\n\n return oldOnScheduleFiberRoot.apply(this, arguments);\n };\n\n hook.onCommitFiberRoot = function (id, root, maybePriorityLevel, didError) {\n var helpers = helpersByRendererID.get(id);\n\n if (helpers !== undefined) {\n helpersByRoot.set(root, helpers);\n var current = root.current;\n var alternate = current.alternate; // We need to determine whether this root has just (un)mounted.\n // This logic is copy-pasted from similar logic in the DevTools backend.\n // If this breaks with some refactoring, you'll want to update DevTools too.\n\n if (alternate !== null) {\n var wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null;\n var isMounted = current.memoizedState != null && current.memoizedState.element != null;\n\n if (!wasMounted && isMounted) {\n // Mount a new root.\n mountedRoots.add(root);\n failedRoots.delete(root);\n } else if (wasMounted && isMounted) ; else if (wasMounted && !isMounted) {\n // Unmount an existing root.\n mountedRoots.delete(root);\n\n if (didError) {\n // We'll remount it on future edits.\n failedRoots.add(root);\n } else {\n helpersByRoot.delete(root);\n }\n } else if (!wasMounted && !isMounted) {\n if (didError) {\n // We'll remount it on future edits.\n failedRoots.add(root);\n }\n }\n } else {\n // Mount a new root.\n mountedRoots.add(root);\n }\n } // Always call the decorated DevTools hook.\n\n\n return oldOnCommitFiberRoot.apply(this, arguments);\n };\n }\n}\nfunction hasUnrecoverableErrors() {\n // TODO: delete this after removing dependency in RN.\n return false;\n} // Exposed for testing.\n\nfunction _getMountedRootCount() {\n {\n return mountedRoots.size;\n }\n} // This is a wrapper over more primitive functions for setting signature.\n// Signatures let us decide whether the Hook order has changed on refresh.\n//\n// This function is intended to be used as a transform target, e.g.:\n// var _s = createSignatureFunctionForTransform()\n//\n// function Hello() {\n// const [foo, setFoo] = useState(0);\n// const value = useCustomHook();\n// _s(); /* Call without arguments triggers collecting the custom Hook list.\n// * This doesn't happen during the module evaluation because we\n// * don't want to change the module order with inline requires.\n// * Next calls are noops. */\n// return

Hi

;\n// }\n//\n// /* Call with arguments attaches the signature to the type: */\n// _s(\n// Hello,\n// 'useState{[foo, setFoo]}(0)',\n// () => [useCustomHook], /* Lazy to avoid triggering inline requires */\n// );\n\nfunction createSignatureFunctionForTransform() {\n {\n var savedType;\n var hasCustomHooks;\n var didCollectHooks = false;\n return function (type, key, forceReset, getCustomHooks) {\n if (typeof key === 'string') {\n // We're in the initial phase that associates signatures\n // with the functions. Note this may be called multiple times\n // in HOC chains like _s(hoc1(_s(hoc2(_s(actualFunction))))).\n if (!savedType) {\n // We're in the innermost call, so this is the actual type.\n savedType = type;\n hasCustomHooks = typeof getCustomHooks === 'function';\n } // Set the signature for all types (even wrappers!) in case\n // they have no signatures of their own. This is to prevent\n // problems like https://github.com/facebook/react/issues/20417.\n\n\n if (type != null && (typeof type === 'function' || typeof type === 'object')) {\n setSignature(type, key, forceReset, getCustomHooks);\n }\n\n return type;\n } else {\n // We're in the _s() call without arguments, which means\n // this is the time to collect custom Hook signatures.\n // Only do this once. This path is hot and runs *inside* every render!\n if (!didCollectHooks && hasCustomHooks) {\n didCollectHooks = true;\n collectCustomHooksForSignature(savedType);\n }\n }\n };\n }\n}\nfunction isLikelyComponentType(type) {\n {\n switch (typeof type) {\n case 'function':\n {\n // First, deal with classes.\n if (type.prototype != null) {\n if (type.prototype.isReactComponent) {\n // React class.\n return true;\n }\n\n var ownNames = Object.getOwnPropertyNames(type.prototype);\n\n if (ownNames.length > 1 || ownNames[0] !== 'constructor') {\n // This looks like a class.\n return false;\n } // eslint-disable-next-line no-proto\n\n\n if (type.prototype.__proto__ !== Object.prototype) {\n // It has a superclass.\n return false;\n } // Pass through.\n // This looks like a regular function with empty prototype.\n\n } // For plain functions and arrows, use name as a heuristic.\n\n\n var name = type.name || type.displayName;\n return typeof name === 'string' && /^[A-Z]/.test(name);\n }\n\n case 'object':\n {\n if (type != null) {\n switch (getProperty(type, '$$typeof')) {\n case REACT_FORWARD_REF_TYPE:\n case REACT_MEMO_TYPE:\n // Definitely React components.\n return true;\n\n default:\n return false;\n }\n }\n\n return false;\n }\n\n default:\n {\n return false;\n }\n }\n }\n}\n\nexports._getMountedRootCount = _getMountedRootCount;\nexports.collectCustomHooksForSignature = collectCustomHooksForSignature;\nexports.createSignatureFunctionForTransform = createSignatureFunctionForTransform;\nexports.findAffectedHostInstances = findAffectedHostInstances;\nexports.getFamilyByID = getFamilyByID;\nexports.getFamilyByType = getFamilyByType;\nexports.hasUnrecoverableErrors = hasUnrecoverableErrors;\nexports.injectIntoGlobalHook = injectIntoGlobalHook;\nexports.isLikelyComponentType = isLikelyComponentType;\nexports.performReactRefresh = performReactRefresh;\nexports.register = register;\nexports.setSignature = setSignature;\n })();\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,YAAY;;AAEZ,IAAIA,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;EACzC,CAAC,YAAW;IACd,YAAY;;IAEZ;IACA;IACA;IACA;IACA;IACA,IAAIC,kBAAkB,GAAG,MAAM;IAC/B,IAAIC,iBAAiB,GAAG,MAAM;IAC9B,IAAIC,mBAAmB,GAAG,MAAM;IAChC,IAAIC,sBAAsB,GAAG,MAAM;IACnC,IAAIC,mBAAmB,GAAG,MAAM;IAChC,IAAIC,mBAAmB,GAAG,MAAM;IAChC,IAAIC,kBAAkB,GAAG,MAAM;IAC/B,IAAIC,sBAAsB,GAAG,MAAM;IACnC,IAAIC,mBAAmB,GAAG,MAAM;IAChC,IAAIC,wBAAwB,GAAG,MAAM;IACrC,IAAIC,eAAe,GAAG,MAAM;IAC5B,IAAIC,eAAe,GAAG,MAAM;IAC5B,IAAIC,gBAAgB,GAAG,MAAM;IAC7B,IAAIC,6BAA6B,GAAG,MAAM;IAC1C,IA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AAKG,eAAe;oBAClB;oBACA,OAAO,IAAI;kBAEb;oBACE,OAAO,KAAK;gBAChB;cACF;cAEA,OAAO,KAAK;YACd;UAEF;YACE;cACE,OAAO,KAAK;YACd;QACJ;MACF;IACF;IAEA0I,OAAO,CAACd,oBAAoB,GAAGA,oBAAoB;IACnDc,OAAO,CAAChD,8BAA8B,GAAGA,8BAA8B;IACvEgD,OAAO,CAACZ,mCAAmC,GAAGA,mCAAmC;IACjFY,OAAO,CAAC7C,yBAAyB,GAAGA,yBAAyB;IAC7D6C,OAAO,CAAC/C,aAAa,GAAGA,aAAa;IACrC+C,OAAO,CAAC9C,eAAe,GAAGA,eAAe;IACzC8C,OAAO,CAACf,sBAAsB,GAAGA,sBAAsB;IACvDe,OAAO,CAACvC,oBAAoB,GAAGA,oBAAoB;IACnDuC,OAAO,CAACR,qBAAqB,GAAGA,qBAAqB;IACrDQ,OAAO,CAAC3E,mBAAmB,GAAGA,mBAAmB;IACjD2E,OAAO,CAACtD,QAAQ,GAAGA,QAAQ;IAC3BsD,OAAO,CAAClD,YAAY,GAAGA,YAAY;EACjC,CAAC,EAAE,CAAC;AACN","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/142e084c6fedbf1ce3516ba4a0477dba8239b11d4228cbdadaa539851d61bf4d.json b/trivia-forge/node_modules/.cache/babel-loader/142e084c6fedbf1ce3516ba4a0477dba8239b11d4228cbdadaa539851d61bf4d.json deleted file mode 100644 index 8d9a7cd6..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/142e084c6fedbf1ce3516ba4a0477dba8239b11d4228cbdadaa539851d61bf4d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport { useEffect, useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport BaseOverlay from '@restart/ui/Overlay';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport useIsomorphicEffect from '@restart/hooks/useIsomorphicEffect';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport useOverlayOffset from './useOverlayOffset';\nimport Fade from './Fade';\nimport safeFindDOMNode from './safeFindDOMNode';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction wrapRefs(props, arrowProps) {\n const {\n ref\n } = props;\n const {\n ref: aRef\n } = arrowProps;\n props.ref = ref.__wrapped || (ref.__wrapped = r => ref(safeFindDOMNode(r)));\n arrowProps.ref = aRef.__wrapped || (aRef.__wrapped = r => aRef(safeFindDOMNode(r)));\n}\nconst Overlay = /*#__PURE__*/React.forwardRef((_ref, outerRef) => {\n let {\n children: overlay,\n transition = Fade,\n popperConfig = {},\n rootClose = false,\n placement = 'top',\n show: outerShow = false,\n ...outerProps\n } = _ref;\n const popperRef = useRef({});\n const [firstRenderedState, setFirstRenderedState] = useState(null);\n const [ref, modifiers] = useOverlayOffset(outerProps.offset);\n const mergedRef = useMergedRefs(outerRef, ref);\n const actualTransition = transition === true ? Fade : transition || undefined;\n const handleFirstUpdate = useEventCallback(state => {\n setFirstRenderedState(state);\n popperConfig == null ? void 0 : popperConfig.onFirstUpdate == null ? void 0 : popperConfig.onFirstUpdate(state);\n });\n useIsomorphicEffect(() => {\n if (firstRenderedState && outerProps.target) {\n // Must wait for target element to resolve before updating popper.\n popperRef.current.scheduleUpdate == null ? void 0 : popperRef.current.scheduleUpdate();\n }\n }, [firstRenderedState, outerProps.target]);\n useEffect(() => {\n if (!outerShow) {\n setFirstRenderedState(null);\n }\n }, [outerShow]);\n return /*#__PURE__*/_jsx(BaseOverlay, {\n ...outerProps,\n ref: mergedRef,\n popperConfig: {\n ...popperConfig,\n modifiers: modifiers.concat(popperConfig.modifiers || []),\n onFirstUpdate: handleFirstUpdate\n },\n transition: actualTransition,\n rootClose: rootClose,\n placement: placement,\n show: outerShow,\n children: (overlayProps, _ref2) => {\n let {\n arrowProps,\n popper: popperObj,\n show\n } = _ref2;\n var _popperObj$state, _popperObj$state$modi;\n wrapRefs(overlayProps, arrowProps);\n // Need to get placement from popper object, handling case when overlay is flipped using 'flip' prop\n const updatedPlacement = popperObj == null ? void 0 : popperObj.placement;\n const popper = Object.assign(popperRef.current, {\n state: popperObj == null ? void 0 : popperObj.state,\n scheduleUpdate: popperObj == null ? void 0 : popperObj.update,\n placement: updatedPlacement,\n outOfBoundaries: (popperObj == null ? void 0 : (_popperObj$state = popperObj.state) == null ? void 0 : (_popperObj$state$modi = _popperObj$state.modifiersData.hide) == null ? void 0 : _popperObj$state$modi.isReferenceHidden) || false,\n strategy: popperConfig.strategy\n });\n const hasDoneInitialMeasure = !!firstRenderedState;\n if (typeof overlay === 'function') return overlay({\n ...overlayProps,\n placement: updatedPlacement,\n show,\n ...(!transition && show && {\n className: 'show'\n }),\n popper,\n arrowProps,\n hasDoneInitialMeasure\n });\n return /*#__PURE__*/React.cloneElement(overlay, {\n ...overlayProps,\n placement: updatedPlacement,\n arrowProps,\n popper,\n hasDoneInitialMeasure,\n className: classNames(overlay.props.className, !transition && show && 'show'),\n style: {\n ...overlay.props.style,\n ...overlayProps.style\n }\n });\n }\n });\n});\nOverlay.displayName = 'Overlay';\nexport default Overlay;","map":{"version":3,"names":["React","useEffect","useRef","useState","classNames","BaseOverlay","useEventCallback","useIsomorphicEffect","useMergedRefs","useOverlayOffset","Fade","safeFindDOMNode","jsx","_jsx","wrapRefs","props","arrowProps","ref","aRef","__wrapped","r","Overlay","forwardRef","_ref","outerRef","children","overlay","transition","popperConfig","rootClose","placement","show","outerShow","outerProps","popperRef","firstRenderedState","setFirstRenderedState","modifiers","offset","mergedRef","actualTransition","undefined","handleFirstUpdate","state","onFirstUpdate","target","current","scheduleUpdate","concat","overlayProps","_ref2","popper","popperObj","_popperObj$state","_popperObj$state$modi","updatedPlacement","Object","assign","update","outOfBoundaries","modifiersData","hide","isReferenceHidden","strategy","hasDoneInitialMeasure","className","cloneElement","style","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/Overlay.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { useEffect, useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport BaseOverlay from '@restart/ui/Overlay';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport useIsomorphicEffect from '@restart/hooks/useIsomorphicEffect';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport useOverlayOffset from './useOverlayOffset';\nimport Fade from './Fade';\nimport safeFindDOMNode from './safeFindDOMNode';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction wrapRefs(props, arrowProps) {\n const {\n ref\n } = props;\n const {\n ref: aRef\n } = arrowProps;\n props.ref = ref.__wrapped || (ref.__wrapped = r => ref(safeFindDOMNode(r)));\n arrowProps.ref = aRef.__wrapped || (aRef.__wrapped = r => aRef(safeFindDOMNode(r)));\n}\nconst Overlay = /*#__PURE__*/React.forwardRef(({\n children: overlay,\n transition = Fade,\n popperConfig = {},\n rootClose = false,\n placement = 'top',\n show: outerShow = false,\n ...outerProps\n}, outerRef) => {\n const popperRef = useRef({});\n const [firstRenderedState, setFirstRenderedState] = useState(null);\n const [ref, modifiers] = useOverlayOffset(outerProps.offset);\n const mergedRef = useMergedRefs(outerRef, ref);\n const actualTransition = transition === true ? Fade : transition || undefined;\n const handleFirstUpdate = useEventCallback(state => {\n setFirstRenderedState(state);\n popperConfig == null ? void 0 : popperConfig.onFirstUpdate == null ? void 0 : popperConfig.onFirstUpdate(state);\n });\n useIsomorphicEffect(() => {\n if (firstRenderedState && outerProps.target) {\n // Must wait for target element to resolve before updating popper.\n popperRef.current.scheduleUpdate == null ? void 0 : popperRef.current.scheduleUpdate();\n }\n }, [firstRenderedState, outerProps.target]);\n useEffect(() => {\n if (!outerShow) {\n setFirstRenderedState(null);\n }\n }, [outerShow]);\n return /*#__PURE__*/_jsx(BaseOverlay, {\n ...outerProps,\n ref: mergedRef,\n popperConfig: {\n ...popperConfig,\n modifiers: modifiers.concat(popperConfig.modifiers || []),\n onFirstUpdate: handleFirstUpdate\n },\n transition: actualTransition,\n rootClose: rootClose,\n placement: placement,\n show: outerShow,\n children: (overlayProps, {\n arrowProps,\n popper: popperObj,\n show\n }) => {\n var _popperObj$state, _popperObj$state$modi;\n wrapRefs(overlayProps, arrowProps);\n // Need to get placement from popper object, handling case when overlay is flipped using 'flip' prop\n const updatedPlacement = popperObj == null ? void 0 : popperObj.placement;\n const popper = Object.assign(popperRef.current, {\n state: popperObj == null ? void 0 : popperObj.state,\n scheduleUpdate: popperObj == null ? void 0 : popperObj.update,\n placement: updatedPlacement,\n outOfBoundaries: (popperObj == null ? void 0 : (_popperObj$state = popperObj.state) == null ? void 0 : (_popperObj$state$modi = _popperObj$state.modifiersData.hide) == null ? void 0 : _popperObj$state$modi.isReferenceHidden) || false,\n strategy: popperConfig.strategy\n });\n const hasDoneInitialMeasure = !!firstRenderedState;\n if (typeof overlay === 'function') return overlay({\n ...overlayProps,\n placement: updatedPlacement,\n show,\n ...(!transition && show && {\n className: 'show'\n }),\n popper,\n arrowProps,\n hasDoneInitialMeasure\n });\n return /*#__PURE__*/React.cloneElement(overlay, {\n ...overlayProps,\n placement: updatedPlacement,\n arrowProps,\n popper,\n hasDoneInitialMeasure,\n className: classNames(overlay.props.className, !transition && show && 'show'),\n style: {\n ...overlay.props.style,\n ...overlayProps.style\n }\n });\n }\n });\n});\nOverlay.displayName = 'Overlay';\nexport default Overlay;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACnD,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,WAAW,MAAM,qBAAqB;AAC7C,OAAOC,gBAAgB,MAAM,iCAAiC;AAC9D,OAAOC,mBAAmB,MAAM,oCAAoC;AACpE,OAAOC,aAAa,MAAM,8BAA8B;AACxD,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,OAAO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,UAAU,CAACsB,OAAO,CAACX,KAAK,CAACkD,SAAS,EAAE,CAACtC,UAAU,IAAII,IAAI,IAAI,MAAM,CAAC;QAC7EoC,KAAK,EAAE;UACL,GAAGzC,OAAO,CAACX,KAAK,CAACoD,KAAK;UACtB,GAAGlB,YAAY,CAACkB;QAClB;MACF,CAAC,CAAC;IACJ;EACF,CAAC,CAAC;AACJ,CAAC,CAAC;AACF9C,OAAO,CAAC+C,WAAW,GAAG,SAAS;AAC/B,eAAe/C,OAAO","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/14366e165df3009e5f4513246b09507eba06121956d264f433884d416019aa47.json b/trivia-forge/node_modules/.cache/babel-loader/14366e165df3009e5f4513246b09507eba06121956d264f433884d416019aa47.json deleted file mode 100644 index 4593b7a3..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/14366e165df3009e5f4513246b09507eba06121956d264f433884d416019aa47.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import useMediaQuery from './useMediaQuery';\nimport { useMemo } from 'react';\n/**\n * Create a responsive hook we a set of breakpoint names and widths.\n * You can use any valid css units as well as a numbers (for pixels).\n *\n * **NOTE:** The object key order is important! it's assumed to be in order from smallest to largest\n *\n * ```ts\n * const useBreakpoint = createBreakpointHook({\n * xs: 0,\n * sm: 576,\n * md: 768,\n * lg: 992,\n * xl: 1200,\n * })\n * ```\n *\n * **Watch out!** using string values will sometimes construct media queries using css `calc()` which\n * is NOT supported in media queries by all browsers at the moment. use numbers for\n * the widest range of browser support.\n *\n * @param breakpointValues A object hash of names to breakpoint dimensions\n */\nexport function createBreakpointHook(breakpointValues) {\n const names = Object.keys(breakpointValues);\n function and(query, next) {\n if (query === next) {\n return next;\n }\n return query ? \"\".concat(query, \" and \").concat(next) : next;\n }\n function getNext(breakpoint) {\n return names[Math.min(names.indexOf(breakpoint) + 1, names.length - 1)];\n }\n function getMaxQuery(breakpoint) {\n const next = getNext(breakpoint);\n let value = breakpointValues[next];\n if (typeof value === 'number') value = \"\".concat(value - 0.2, \"px\");else value = \"calc(\".concat(value, \" - 0.2px)\");\n return \"(max-width: \".concat(value, \")\");\n }\n function getMinQuery(breakpoint) {\n let value = breakpointValues[breakpoint];\n if (typeof value === 'number') {\n value = \"\".concat(value, \"px\");\n }\n return \"(min-width: \".concat(value, \")\");\n }\n\n /**\n * Match a set of breakpoints\n *\n * ```tsx\n * const MidSizeOnly = () => {\n * const isMid = useBreakpoint({ lg: 'down', sm: 'up' });\n *\n * if (isMid) return
On a Reasonable sized Screen!
\n * return null;\n * }\n * ```\n * @param breakpointMap An object map of breakpoints and directions, queries are constructed using \"and\" to join\n * breakpoints together\n * @param window Optionally specify the target window to match against (useful when rendering into iframes)\n */\n\n /**\n * Match a single breakpoint exactly, up, or down.\n *\n * ```tsx\n * const PhoneOnly = () => {\n * const isSmall = useBreakpoint('sm', 'down');\n *\n * if (isSmall) return
On a Small Screen!
\n * return null;\n * }\n * ```\n *\n * @param breakpoint The breakpoint key\n * @param direction A direction 'up' for a max, 'down' for min, true to match only the breakpoint\n * @param window Optionally specify the target window to match against (useful when rendering into iframes)\n */\n\n function useBreakpoint(breakpointOrMap, direction, window) {\n let breakpointMap;\n if (typeof breakpointOrMap === 'object') {\n breakpointMap = breakpointOrMap;\n window = direction;\n direction = true;\n } else {\n direction = direction || true;\n breakpointMap = {\n [breakpointOrMap]: direction\n };\n }\n let query = useMemo(() => Object.entries(breakpointMap).reduce((query, _ref) => {\n let [key, direction] = _ref;\n if (direction === 'up' || direction === true) {\n query = and(query, getMinQuery(key));\n }\n if (direction === 'down' || direction === true) {\n query = and(query, getMaxQuery(key));\n }\n return query;\n }, ''), [JSON.stringify(breakpointMap)]);\n return useMediaQuery(query, window);\n }\n return useBreakpoint;\n}\nconst useBreakpoint = createBreakpointHook({\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n xxl: 1400\n});\nexport default useBreakpoint;","map":{"version":3,"names":["useMediaQuery","useMemo","createBreakpointHook","breakpointValues","names","Object","keys","and","query","next","concat","getNext","breakpoint","Math","min","indexOf","length","getMaxQuery","value","getMinQuery","useBreakpoint","breakpointOrMap","direction","window","breakpointMap","entries","reduce","_ref","key","JSON","stringify","xs","sm","md","lg","xl","xxl"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/hooks/esm/useBreakpoint.js"],"sourcesContent":["import useMediaQuery from './useMediaQuery';\nimport { useMemo } from 'react';\n/**\n * Create a responsive hook we a set of breakpoint names and widths.\n * You can use any valid css units as well as a numbers (for pixels).\n *\n * **NOTE:** The object key order is important! it's assumed to be in order from smallest to largest\n *\n * ```ts\n * const useBreakpoint = createBreakpointHook({\n * xs: 0,\n * sm: 576,\n * md: 768,\n * lg: 992,\n * xl: 1200,\n * })\n * ```\n *\n * **Watch out!** using string values will sometimes construct media queries using css `calc()` which\n * is NOT supported in media queries by all browsers at the moment. use numbers for\n * the widest range of browser support.\n *\n * @param breakpointValues A object hash of names to breakpoint dimensions\n */\nexport function createBreakpointHook(breakpointValues) {\n const names = Object.keys(breakpointValues);\n function and(query, next) {\n if (query === next) {\n return next;\n }\n return query ? `${query} and ${next}` : next;\n }\n function getNext(breakpoint) {\n return names[Math.min(names.indexOf(breakpoint) + 1, names.length - 1)];\n }\n function getMaxQuery(breakpoint) {\n const next = getNext(breakpoint);\n let value = breakpointValues[next];\n if (typeof value === 'number') value = `${value - 0.2}px`;else value = `calc(${value} - 0.2px)`;\n return `(max-width: ${value})`;\n }\n function getMinQuery(breakpoint) {\n let value = breakpointValues[breakpoint];\n if (typeof value === 'number') {\n value = `${value}px`;\n }\n return `(min-width: ${value})`;\n }\n\n /**\n * Match a set of breakpoints\n *\n * ```tsx\n * const MidSizeOnly = () => {\n * const isMid = useBreakpoint({ lg: 'down', sm: 'up' });\n *\n * if (isMid) return
On a Reasonable sized Screen!
\n * return null;\n * }\n * ```\n * @param breakpointMap An object map of breakpoints and directions, queries are constructed using \"and\" to join\n * breakpoints together\n * @param window Optionally specify the target window to match against (useful when rendering into iframes)\n */\n\n /**\n * Match a single breakpoint exactly, up, or down.\n *\n * ```tsx\n * const PhoneOnly = () => {\n * const isSmall = useBreakpoint('sm', 'down');\n *\n * if (isSmall) return
On a Small Screen!
\n * return null;\n * }\n * ```\n *\n * @param breakpoint The breakpoint key\n * @param direction A direction 'up' for a max, 'down' for min, true to match only the breakpoint\n * @param window Optionally specify the target window to match against (useful when rendering into iframes)\n */\n\n function useBreakpoint(breakpointOrMap, direction, window) {\n let breakpointMap;\n if (typeof breakpointOrMap === 'object') {\n breakpointMap = breakpointOrMap;\n window = direction;\n direction = true;\n } else {\n direction = direction || true;\n breakpointMap = {\n [breakpointOrMap]: direction\n };\n }\n let query = useMemo(() => Object.entries(breakpointMap).reduce((query, [key, direction]) => {\n if (direction === 'up' || direction === true) {\n query = and(query, getMinQuery(key));\n }\n if (direction === 'down' || direction === true) {\n query = and(query, getMaxQuery(key));\n }\n return query;\n }, ''), [JSON.stringify(breakpointMap)]);\n return useMediaQuery(query, window);\n }\n return useBreakpoint;\n}\nconst useBreakpoint = createBreakpointHook({\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n xxl: 1400\n});\nexport default useBreakpoint;"],"mappings":"AAAA,OAAOA,aAAa,MAAM,iBAAiB;AAC3C,SAASC,OAAO,QAAQ,OAAO;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,oBAAoBA,CAACC,gBAAgB,EAAE;EACrD,MAAMC,KAAK,GAAGC,MAAM,CAACC,IAAI,CAACH,gBAAgB,CAAC;EAC3C,SAASI,GAAGA,CAACC,KAAK,EAAEC,IAAI,EAAE;IACxB,IAAID,KAAK,KAAKC,IAAI,EAAE;MAClB,OAAOA,IAAI;IACb;IACA,OAAOD,KAAK,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S,IAAI,IAAI;MAC7BE,aAAa,GAAG;QACd,CAACH,eAAe,GAAGC;MACrB,CAAC;IACH;IACA,IAAId,KAAK,GAAGP,OAAO,CAAC,MAAMI,MAAM,CAACoB,OAAO,CAACD,aAAa,CAAC,CAACE,MAAM,CAAC,CAAClB,KAAK,EAAAmB,IAAA,KAAuB;MAAA,IAArB,CAACC,GAAG,EAAEN,SAAS,CAAC,GAAAK,IAAA;MACrF,IAAIL,SAAS,KAAK,IAAI,IAAIA,SAAS,KAAK,IAAI,EAAE;QAC5Cd,KAAK,GAAGD,GAAG,CAACC,KAAK,EAAEW,WAAW,CAACS,GAAG,CAAC,CAAC;MACtC;MACA,IAAIN,SAAS,KAAK,MAAM,IAAIA,SAAS,KAAK,IAAI,EAAE;QAC9Cd,KAAK,GAAGD,GAAG,CAACC,KAAK,EAAES,WAAW,CAACW,GAAG,CAAC,CAAC;MACtC;MACA,OAAOpB,KAAK;IACd,CAAC,EAAE,EAAE,CAAC,EAAE,CAACqB,IAAI,CAACC,SAAS,CAACN,aAAa,CAAC,CAAC,CAAC;IACxC,OAAOxB,aAAa,CAACQ,KAAK,EAAEe,MAAM,CAAC;EACrC;EACA,OAAOH,aAAa;AACtB;AACA,MAAMA,aAAa,GAAGlB,oBAAoB,CAAC;EACzC6B,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,GAAG;EACPC,EAAE,EAAE,GAAG;EACPC,EAAE,EAAE,GAAG;EACPC,EAAE,EAAE,IAAI;EACRC,GAAG,EAAE;AACP,CAAC,CAAC;AACF,eAAehB,aAAa","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/1488e486df4737a560428dd8e2170aca820b7e95e363a9462fb9b3ee14b68027.json b/trivia-forge/node_modules/.cache/babel-loader/1488e486df4737a560428dd8e2170aca820b7e95e363a9462fb9b3ee14b68027.json deleted file mode 100644 index 27a81272..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/1488e486df4737a560428dd8e2170aca820b7e95e363a9462fb9b3ee14b68027.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import invariant from 'invariant';\nimport { useCallback } from 'react';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nexport default function useWrappedRefWithWarning(ref, componentName) {\n // @ts-ignore\n if (!(process.env.NODE_ENV !== \"production\")) return ref;\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const warningRef = useCallback(refValue => {\n !(refValue == null || !refValue.isReactComponent) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"\".concat(componentName, \" injected a ref to a provided `as` component that resolved to a component instance instead of a DOM element. \") + 'Use `React.forwardRef` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element') : invariant(false) : void 0;\n }, [componentName]);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useMergedRefs(warningRef, ref);\n}","map":{"version":3,"names":["invariant","useCallback","useMergedRefs","useWrappedRefWithWarning","ref","componentName","process","env","NODE_ENV","warningRef","refValue","isReactComponent","concat"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/useWrappedRefWithWarning.js"],"sourcesContent":["import invariant from 'invariant';\nimport { useCallback } from 'react';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nexport default function useWrappedRefWithWarning(ref, componentName) {\n // @ts-ignore\n if (!(process.env.NODE_ENV !== \"production\")) return ref;\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const warningRef = useCallback(refValue => {\n !(refValue == null || !refValue.isReactComponent) ? process.env.NODE_ENV !== \"production\" ? invariant(false, `${componentName} injected a ref to a provided \\`as\\` component that resolved to a component instance instead of a DOM element. ` + 'Use `React.forwardRef` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element') : invariant(false) : void 0;\n }, [componentName]);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useMergedRefs(warningRef, ref);\n}"],"mappings":"AAAA,OAAOA,SAAS,MAAM,WAAW;AACjC,SAASC,WAAW,QAAQ,OAAO;AACnC,OAAOC,aAAa,MAAM,8BAA8B;AACxD,eAAe,SAASC,wBAAwBA,CAACC,GAAG,EAAEC,aAAa,EAAE;EACnE;EACA,IAAI,EAAEC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,CAAC,EAAE,OAAOJ,GAAG;;EAExD;EACA,MAAMK,UAAU,GAAGR,WAAW,CAACS,QAAQ,IAAI;IACzC,EAAEA,QAAQ,IAAI,IAAI,IAAI,CAACA,QAAQ,CAACC,gBAAgB,CAAC,GAAGL,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GAAGR,SAAS,CAAC,KAAK,EAAE,GAAAY,MAAA,CAAGP,aAAa,qHAAoH,mIAAmI,CAAC,GAAGL,SAAS,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;EACnZ,CAAC,EAAE,CAACK,aAAa,CAAC,CAAC;EACnB;EACA,OAAOH,aAAa,CAACO,UAAU,EAAEL,GAAG,CAAC;AACvC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/14ca341eeb6c3c157a1948ac68061482e0e6111713651b32c6c742b22a59eaa6.json b/trivia-forge/node_modules/.cache/babel-loader/14ca341eeb6c3c157a1948ac68061482e0e6111713651b32c6c742b22a59eaa6.json deleted file mode 100644 index 2d3fdbd6..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/14ca341eeb6c3c157a1948ac68061482e0e6111713651b32c6c742b22a59eaa6.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","map":{"version":3,"names":["getBoundingClientRect","getLayoutRect","element","clientRect","width","offsetWidth","height","offsetHeight","Math","abs","x","offsetLeft","y","offsetTop"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"],"sourcesContent":["import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}"],"mappings":"AAAA,OAAOA,qBAAqB,MAAM,4BAA4B,CAAC,CAAC;AAChE;;AAEA,eAAe,SAASC,aAAaA,CAACC,OAAO,EAAE;EAC7C,IAAIC,UAAU,GAAGH,qBAAqB,CAACE,OAAO,CAAC,CAAC,CAAC;EACjD;;EAEA,IAAIE,KAAK,GAAGF,OAAO,CAACG,WAAW;EAC/B,IAAIC,MAAM,GAAGJ,OAAO,CAACK,YAAY;EAEjC,IAAIC,IAAI,CAACC,GAAG,CAACN,UAAU,CAACC,KAAK,GAAGA,KAAK,CAAC,IAAI,CAAC,EAAE;IAC3CA,KAAK,GAAGD,UAAU,CAACC,KAAK;EAC1B;EAEA,IAAII,IAAI,CAACC,GAAG,CAACN,UAAU,CAACG,MAAM,GAAGA,MAAM,CAAC,IAAI,CAAC,EAAE;IAC7CA,MAAM,GAAGH,UAAU,CAACG,MAAM;EAC5B;EAEA,OAAO;IACLI,CAAC,EAAER,OAAO,CAACS,UAAU;IACrBC,CAAC,EAAEV,OAAO,CAACW,SAAS;IACpBT,KAAK,EAAEA,KAAK;IACZE,MAAM,EAAEA;EACV,CAAC;AACH","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/150bbdafc15b2a477772c63c6562ddee95969a2917ddf70dbd3352c3f037608c.json b/trivia-forge/node_modules/.cache/babel-loader/150bbdafc15b2a477772c63c6562ddee95969a2917ddf70dbd3352c3f037608c.json deleted file mode 100644 index 8899129d..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/150bbdafc15b2a477772c63c6562ddee95969a2917ddf70dbd3352c3f037608c.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var __classPrivateFieldGet = this && this.__classPrivateFieldGet || function (receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar __classPrivateFieldSet = this && this.__classPrivateFieldSet || function (receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n};\nvar _AssistantStream_instances, _AssistantStream_events, _AssistantStream_runStepSnapshots, _AssistantStream_messageSnapshots, _AssistantStream_messageSnapshot, _AssistantStream_finalRun, _AssistantStream_currentContentIndex, _AssistantStream_currentContent, _AssistantStream_currentToolCallIndex, _AssistantStream_currentToolCall, _AssistantStream_currentEvent, _AssistantStream_currentRunSnapshot, _AssistantStream_currentRunStepSnapshot, _AssistantStream_addEvent, _AssistantStream_endRequest, _AssistantStream_handleMessage, _AssistantStream_handleRunStep, _AssistantStream_handleEvent, _AssistantStream_accumulateRunStep, _AssistantStream_accumulateMessage, _AssistantStream_accumulateContent, _AssistantStream_handleRun;\nimport * as Core from 'openai/core';\nimport { AbstractAssistantStreamRunner } from \"./AbstractAssistantStreamRunner.mjs\";\nimport { Stream } from 'openai/streaming';\nimport { APIUserAbortError, OpenAIError } from 'openai/error';\nexport class AssistantStream extends AbstractAssistantStreamRunner {\n constructor() {\n super(...arguments);\n _AssistantStream_instances.add(this);\n //Track all events in a single list for reference\n _AssistantStream_events.set(this, []);\n //Used to accumulate deltas\n //We are accumulating many types so the value here is not strict\n _AssistantStream_runStepSnapshots.set(this, {});\n _AssistantStream_messageSnapshots.set(this, {});\n _AssistantStream_messageSnapshot.set(this, void 0);\n _AssistantStream_finalRun.set(this, void 0);\n _AssistantStream_currentContentIndex.set(this, void 0);\n _AssistantStream_currentContent.set(this, void 0);\n _AssistantStream_currentToolCallIndex.set(this, void 0);\n _AssistantStream_currentToolCall.set(this, void 0);\n //For current snapshot methods\n _AssistantStream_currentEvent.set(this, void 0);\n _AssistantStream_currentRunSnapshot.set(this, void 0);\n _AssistantStream_currentRunStepSnapshot.set(this, void 0);\n }\n [(_AssistantStream_events = new WeakMap(), _AssistantStream_runStepSnapshots = new WeakMap(), _AssistantStream_messageSnapshots = new WeakMap(), _AssistantStream_messageSnapshot = new WeakMap(), _AssistantStream_finalRun = new WeakMap(), _AssistantStream_currentContentIndex = new WeakMap(), _AssistantStream_currentContent = new WeakMap(), _AssistantStream_currentToolCallIndex = new WeakMap(), _AssistantStream_currentToolCall = new WeakMap(), _AssistantStream_currentEvent = new WeakMap(), _AssistantStream_currentRunSnapshot = new WeakMap(), _AssistantStream_currentRunStepSnapshot = new WeakMap(), _AssistantStream_instances = new WeakSet(), Symbol.asyncIterator)]() {\n const pushQueue = [];\n const readQueue = [];\n let done = false;\n //Catch all for passing along all events\n this.on('event', event => {\n const reader = readQueue.shift();\n if (reader) {\n reader.resolve(event);\n } else {\n pushQueue.push(event);\n }\n });\n this.on('end', () => {\n done = true;\n for (const reader of readQueue) {\n reader.resolve(undefined);\n }\n readQueue.length = 0;\n });\n this.on('abort', err => {\n done = true;\n for (const reader of readQueue) {\n reader.reject(err);\n }\n readQueue.length = 0;\n });\n this.on('error', err => {\n done = true;\n for (const reader of readQueue) {\n reader.reject(err);\n }\n readQueue.length = 0;\n });\n return {\n next: async () => {\n if (!pushQueue.length) {\n if (done) {\n return {\n value: undefined,\n done: true\n };\n }\n return new Promise((resolve, reject) => readQueue.push({\n resolve,\n reject\n })).then(chunk => chunk ? {\n value: chunk,\n done: false\n } : {\n value: undefined,\n done: true\n });\n }\n const chunk = pushQueue.shift();\n return {\n value: chunk,\n done: false\n };\n },\n return: async () => {\n this.abort();\n return {\n value: undefined,\n done: true\n };\n }\n };\n }\n static fromReadableStream(stream) {\n const runner = new AssistantStream();\n runner._run(() => runner._fromReadableStream(stream));\n return runner;\n }\n async _fromReadableStream(readableStream, options) {\n var _stream$controller$si;\n const signal = options === null || options === void 0 ? void 0 : options.signal;\n if (signal) {\n if (signal.aborted) this.controller.abort();\n signal.addEventListener('abort', () => this.controller.abort());\n }\n this._connected();\n const stream = Stream.fromReadableStream(readableStream, this.controller);\n for await (const event of stream) {\n __classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_addEvent).call(this, event);\n }\n if ((_stream$controller$si = stream.controller.signal) !== null && _stream$controller$si !== void 0 && _stream$controller$si.aborted) {\n throw new APIUserAbortError();\n }\n return this._addRun(__classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_endRequest).call(this));\n }\n toReadableStream() {\n const stream = new Stream(this[Symbol.asyncIterator].bind(this), this.controller);\n return stream.toReadableStream();\n }\n static createToolAssistantStream(threadId, runId, runs, body, options) {\n const runner = new AssistantStream();\n runner._run(() => runner._runToolAssistantStream(threadId, runId, runs, body, {\n ...options,\n headers: {\n ...(options === null || options === void 0 ? void 0 : options.headers),\n 'X-Stainless-Helper-Method': 'stream'\n }\n }));\n return runner;\n }\n async _createToolAssistantStream(run, threadId, runId, params, options) {\n var _stream$controller$si2;\n const signal = options === null || options === void 0 ? void 0 : options.signal;\n if (signal) {\n if (signal.aborted) this.controller.abort();\n signal.addEventListener('abort', () => this.controller.abort());\n }\n const body = {\n ...params,\n stream: true\n };\n const stream = await run.submitToolOutputs(threadId, runId, body, {\n ...options,\n signal: this.controller.signal\n });\n this._connected();\n for await (const event of stream) {\n __classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_addEvent).call(this, event);\n }\n if ((_stream$controller$si2 = stream.controller.signal) !== null && _stream$controller$si2 !== void 0 && _stream$controller$si2.aborted) {\n throw new APIUserAbortError();\n }\n return this._addRun(__classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_endRequest).call(this));\n }\n static createThreadAssistantStream(body, thread, options) {\n const runner = new AssistantStream();\n runner._run(() => runner._threadAssistantStream(body, thread, {\n ...options,\n headers: {\n ...(options === null || options === void 0 ? void 0 : options.headers),\n 'X-Stainless-Helper-Method': 'stream'\n }\n }));\n return runner;\n }\n static createAssistantStream(threadId, runs, params, options) {\n const runner = new AssistantStream();\n runner._run(() => runner._runAssistantStream(threadId, runs, params, {\n ...options,\n headers: {\n ...(options === null || options === void 0 ? void 0 : options.headers),\n 'X-Stainless-Helper-Method': 'stream'\n }\n }));\n return runner;\n }\n currentEvent() {\n return __classPrivateFieldGet(this, _AssistantStream_currentEvent, \"f\");\n }\n currentRun() {\n return __classPrivateFieldGet(this, _AssistantStream_currentRunSnapshot, \"f\");\n }\n currentMessageSnapshot() {\n return __classPrivateFieldGet(this, _AssistantStream_messageSnapshot, \"f\");\n }\n currentRunStepSnapshot() {\n return __classPrivateFieldGet(this, _AssistantStream_currentRunStepSnapshot, \"f\");\n }\n async finalRunSteps() {\n await this.done();\n return Object.values(__classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, \"f\"));\n }\n async finalMessages() {\n await this.done();\n return Object.values(__classPrivateFieldGet(this, _AssistantStream_messageSnapshots, \"f\"));\n }\n async finalRun() {\n await this.done();\n if (!__classPrivateFieldGet(this, _AssistantStream_finalRun, \"f\")) throw Error('Final run was not received.');\n return __classPrivateFieldGet(this, _AssistantStream_finalRun, \"f\");\n }\n async _createThreadAssistantStream(thread, params, options) {\n var _stream$controller$si3;\n const signal = options === null || options === void 0 ? void 0 : options.signal;\n if (signal) {\n if (signal.aborted) this.controller.abort();\n signal.addEventListener('abort', () => this.controller.abort());\n }\n const body = {\n ...params,\n stream: true\n };\n const stream = await thread.createAndRun(body, {\n ...options,\n signal: this.controller.signal\n });\n this._connected();\n for await (const event of stream) {\n __classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_addEvent).call(this, event);\n }\n if ((_stream$controller$si3 = stream.controller.signal) !== null && _stream$controller$si3 !== void 0 && _stream$controller$si3.aborted) {\n throw new APIUserAbortError();\n }\n return this._addRun(__classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_endRequest).call(this));\n }\n async _createAssistantStream(run, threadId, params, options) {\n var _stream$controller$si4;\n const signal = options === null || options === void 0 ? void 0 : options.signal;\n if (signal) {\n if (signal.aborted) this.controller.abort();\n signal.addEventListener('abort', () => this.controller.abort());\n }\n const body = {\n ...params,\n stream: true\n };\n const stream = await run.create(threadId, body, {\n ...options,\n signal: this.controller.signal\n });\n this._connected();\n for await (const event of stream) {\n __classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_addEvent).call(this, event);\n }\n if ((_stream$controller$si4 = stream.controller.signal) !== null && _stream$controller$si4 !== void 0 && _stream$controller$si4.aborted) {\n throw new APIUserAbortError();\n }\n return this._addRun(__classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_endRequest).call(this));\n }\n static accumulateDelta(acc, delta) {\n for (const [key, deltaValue] of Object.entries(delta)) {\n if (!acc.hasOwnProperty(key)) {\n acc[key] = deltaValue;\n continue;\n }\n let accValue = acc[key];\n if (accValue === null || accValue === undefined) {\n acc[key] = deltaValue;\n continue;\n }\n // We don't accumulate these special properties\n if (key === 'index' || key === 'type') {\n acc[key] = deltaValue;\n continue;\n }\n // Type-specific accumulation logic\n if (typeof accValue === 'string' && typeof deltaValue === 'string') {\n accValue += deltaValue;\n } else if (typeof accValue === 'number' && typeof deltaValue === 'number') {\n accValue += deltaValue;\n } else if (Core.isObj(accValue) && Core.isObj(deltaValue)) {\n accValue = this.accumulateDelta(accValue, deltaValue);\n } else if (Array.isArray(accValue) && Array.isArray(deltaValue)) {\n if (accValue.every(x => typeof x === 'string' || typeof x === 'number')) {\n accValue.push(...deltaValue); // Use spread syntax for efficient addition\n continue;\n }\n } else {\n throw Error(\"Unhandled record type: \".concat(key, \", deltaValue: \").concat(deltaValue, \", accValue: \").concat(accValue));\n }\n acc[key] = accValue;\n }\n return acc;\n }\n}\n_AssistantStream_addEvent = function _AssistantStream_addEvent(event) {\n if (this.ended) return;\n __classPrivateFieldSet(this, _AssistantStream_currentEvent, event, \"f\");\n __classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_handleEvent).call(this, event);\n switch (event.event) {\n case 'thread.created':\n //No action on this event.\n break;\n case 'thread.run.created':\n case 'thread.run.queued':\n case 'thread.run.in_progress':\n case 'thread.run.requires_action':\n case 'thread.run.completed':\n case 'thread.run.failed':\n case 'thread.run.cancelling':\n case 'thread.run.cancelled':\n case 'thread.run.expired':\n __classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_handleRun).call(this, event);\n break;\n case 'thread.run.step.created':\n case 'thread.run.step.in_progress':\n case 'thread.run.step.delta':\n case 'thread.run.step.completed':\n case 'thread.run.step.failed':\n case 'thread.run.step.cancelled':\n case 'thread.run.step.expired':\n __classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_handleRunStep).call(this, event);\n break;\n case 'thread.message.created':\n case 'thread.message.in_progress':\n case 'thread.message.delta':\n case 'thread.message.completed':\n case 'thread.message.incomplete':\n __classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_handleMessage).call(this, event);\n break;\n case 'error':\n //This is included for completeness, but errors are processed in the SSE event processing so this should not occur\n throw new Error('Encountered an error event in event processing - errors should be processed earlier');\n }\n}, _AssistantStream_endRequest = function _AssistantStream_endRequest() {\n if (this.ended) {\n throw new OpenAIError(\"stream has ended, this shouldn't happen\");\n }\n if (!__classPrivateFieldGet(this, _AssistantStream_finalRun, \"f\")) throw Error('Final run has not been received');\n return __classPrivateFieldGet(this, _AssistantStream_finalRun, \"f\");\n}, _AssistantStream_handleMessage = function _AssistantStream_handleMessage(event) {\n const [accumulatedMessage, newContent] = __classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_accumulateMessage).call(this, event, __classPrivateFieldGet(this, _AssistantStream_messageSnapshot, \"f\"));\n __classPrivateFieldSet(this, _AssistantStream_messageSnapshot, accumulatedMessage, \"f\");\n __classPrivateFieldGet(this, _AssistantStream_messageSnapshots, \"f\")[accumulatedMessage.id] = accumulatedMessage;\n for (const content of newContent) {\n const snapshotContent = accumulatedMessage.content[content.index];\n if ((snapshotContent === null || snapshotContent === void 0 ? void 0 : snapshotContent.type) == 'text') {\n this._emit('textCreated', snapshotContent.text);\n }\n }\n switch (event.event) {\n case 'thread.message.created':\n this._emit('messageCreated', event.data);\n break;\n case 'thread.message.in_progress':\n break;\n case 'thread.message.delta':\n this._emit('messageDelta', event.data.delta, accumulatedMessage);\n if (event.data.delta.content) {\n for (const content of event.data.delta.content) {\n //If it is text delta, emit a text delta event\n if (content.type == 'text' && content.text) {\n let textDelta = content.text;\n let snapshot = accumulatedMessage.content[content.index];\n if (snapshot && snapshot.type == 'text') {\n this._emit('textDelta', textDelta, snapshot.text);\n } else {\n throw Error('The snapshot associated with this text delta is not text or missing');\n }\n }\n if (content.index != __classPrivateFieldGet(this, _AssistantStream_currentContentIndex, \"f\")) {\n //See if we have in progress content\n if (__classPrivateFieldGet(this, _AssistantStream_currentContent, \"f\")) {\n switch (__classPrivateFieldGet(this, _AssistantStream_currentContent, \"f\").type) {\n case 'text':\n this._emit('textDone', __classPrivateFieldGet(this, _AssistantStream_currentContent, \"f\").text, __classPrivateFieldGet(this, _AssistantStream_messageSnapshot, \"f\"));\n break;\n case 'image_file':\n this._emit('imageFileDone', __classPrivateFieldGet(this, _AssistantStream_currentContent, \"f\").image_file, __classPrivateFieldGet(this, _AssistantStream_messageSnapshot, \"f\"));\n break;\n }\n }\n __classPrivateFieldSet(this, _AssistantStream_currentContentIndex, content.index, \"f\");\n }\n __classPrivateFieldSet(this, _AssistantStream_currentContent, accumulatedMessage.content[content.index], \"f\");\n }\n }\n break;\n case 'thread.message.completed':\n case 'thread.message.incomplete':\n //We emit the latest content we were working on on completion (including incomplete)\n if (__classPrivateFieldGet(this, _AssistantStream_currentContentIndex, \"f\") !== undefined) {\n const currentContent = event.data.content[__classPrivateFieldGet(this, _AssistantStream_currentContentIndex, \"f\")];\n if (currentContent) {\n switch (currentContent.type) {\n case 'image_file':\n this._emit('imageFileDone', currentContent.image_file, __classPrivateFieldGet(this, _AssistantStream_messageSnapshot, \"f\"));\n break;\n case 'text':\n this._emit('textDone', currentContent.text, __classPrivateFieldGet(this, _AssistantStream_messageSnapshot, \"f\"));\n break;\n }\n }\n }\n if (__classPrivateFieldGet(this, _AssistantStream_messageSnapshot, \"f\")) {\n this._emit('messageDone', event.data);\n }\n __classPrivateFieldSet(this, _AssistantStream_messageSnapshot, undefined, \"f\");\n }\n}, _AssistantStream_handleRunStep = function _AssistantStream_handleRunStep(event) {\n const accumulatedRunStep = __classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_accumulateRunStep).call(this, event);\n __classPrivateFieldSet(this, _AssistantStream_currentRunStepSnapshot, accumulatedRunStep, \"f\");\n switch (event.event) {\n case 'thread.run.step.created':\n this._emit('runStepCreated', event.data);\n break;\n case 'thread.run.step.delta':\n const delta = event.data.delta;\n if (delta.step_details && delta.step_details.type == 'tool_calls' && delta.step_details.tool_calls && accumulatedRunStep.step_details.type == 'tool_calls') {\n for (const toolCall of delta.step_details.tool_calls) {\n if (toolCall.index == __classPrivateFieldGet(this, _AssistantStream_currentToolCallIndex, \"f\")) {\n this._emit('toolCallDelta', toolCall, accumulatedRunStep.step_details.tool_calls[toolCall.index]);\n } else {\n if (__classPrivateFieldGet(this, _AssistantStream_currentToolCall, \"f\")) {\n this._emit('toolCallDone', __classPrivateFieldGet(this, _AssistantStream_currentToolCall, \"f\"));\n }\n __classPrivateFieldSet(this, _AssistantStream_currentToolCallIndex, toolCall.index, \"f\");\n __classPrivateFieldSet(this, _AssistantStream_currentToolCall, accumulatedRunStep.step_details.tool_calls[toolCall.index], \"f\");\n if (__classPrivateFieldGet(this, _AssistantStream_currentToolCall, \"f\")) this._emit('toolCallCreated', __classPrivateFieldGet(this, _AssistantStream_currentToolCall, \"f\"));\n }\n }\n }\n this._emit('runStepDelta', event.data.delta, accumulatedRunStep);\n break;\n case 'thread.run.step.completed':\n case 'thread.run.step.failed':\n case 'thread.run.step.cancelled':\n case 'thread.run.step.expired':\n __classPrivateFieldSet(this, _AssistantStream_currentRunStepSnapshot, undefined, \"f\");\n const details = event.data.step_details;\n if (details.type == 'tool_calls') {\n if (__classPrivateFieldGet(this, _AssistantStream_currentToolCall, \"f\")) {\n this._emit('toolCallDone', __classPrivateFieldGet(this, _AssistantStream_currentToolCall, \"f\"));\n __classPrivateFieldSet(this, _AssistantStream_currentToolCall, undefined, \"f\");\n }\n }\n this._emit('runStepDone', event.data, accumulatedRunStep);\n break;\n case 'thread.run.step.in_progress':\n break;\n }\n}, _AssistantStream_handleEvent = function _AssistantStream_handleEvent(event) {\n __classPrivateFieldGet(this, _AssistantStream_events, \"f\").push(event);\n this._emit('event', event);\n}, _AssistantStream_accumulateRunStep = function _AssistantStream_accumulateRunStep(event) {\n switch (event.event) {\n case 'thread.run.step.created':\n __classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, \"f\")[event.data.id] = event.data;\n return event.data;\n case 'thread.run.step.delta':\n let snapshot = __classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, \"f\")[event.data.id];\n if (!snapshot) {\n throw Error('Received a RunStepDelta before creation of a snapshot');\n }\n let data = event.data;\n if (data.delta) {\n const accumulated = AssistantStream.accumulateDelta(snapshot, data.delta);\n __classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, \"f\")[event.data.id] = accumulated;\n }\n return __classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, \"f\")[event.data.id];\n case 'thread.run.step.completed':\n case 'thread.run.step.failed':\n case 'thread.run.step.cancelled':\n case 'thread.run.step.expired':\n case 'thread.run.step.in_progress':\n __classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, \"f\")[event.data.id] = event.data;\n break;\n }\n if (__classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, \"f\")[event.data.id]) return __classPrivateFieldGet(this, _AssistantStream_runStepSnapshots, \"f\")[event.data.id];\n throw new Error('No snapshot available');\n}, _AssistantStream_accumulateMessage = function _AssistantStream_accumulateMessage(event, snapshot) {\n let newContent = [];\n switch (event.event) {\n case 'thread.message.created':\n //On creation the snapshot is just the initial message\n return [event.data, newContent];\n case 'thread.message.delta':\n if (!snapshot) {\n throw Error('Received a delta with no existing snapshot (there should be one from message creation)');\n }\n let data = event.data;\n //If this delta does not have content, nothing to process\n if (data.delta.content) {\n for (const contentElement of data.delta.content) {\n if (contentElement.index in snapshot.content) {\n let currentContent = snapshot.content[contentElement.index];\n snapshot.content[contentElement.index] = __classPrivateFieldGet(this, _AssistantStream_instances, \"m\", _AssistantStream_accumulateContent).call(this, contentElement, currentContent);\n } else {\n snapshot.content[contentElement.index] = contentElement;\n //This is a new element\n newContent.push(contentElement);\n }\n }\n }\n return [snapshot, newContent];\n case 'thread.message.in_progress':\n case 'thread.message.completed':\n case 'thread.message.incomplete':\n //No changes on other thread events\n if (snapshot) {\n return [snapshot, newContent];\n } else {\n throw Error('Received thread message event with no existing snapshot');\n }\n }\n throw Error('Tried to accumulate a non-message event');\n}, _AssistantStream_accumulateContent = function _AssistantStream_accumulateContent(contentElement, currentContent) {\n return AssistantStream.accumulateDelta(currentContent, contentElement);\n}, _AssistantStream_handleRun = function _AssistantStream_handleRun(event) {\n __classPrivateFieldSet(this, _AssistantStream_currentRunSnapshot, event.data, \"f\");\n switch (event.event) {\n case 'thread.run.created':\n break;\n case 'thread.run.queued':\n break;\n case 'thread.run.in_progress':\n break;\n case 'thread.run.requires_action':\n case 'thread.run.cancelled':\n case 'thread.run.failed':\n case 'thread.run.completed':\n case 'thread.run.expired':\n __classPrivateFieldSet(this, _AssistantStream_finalRun, event.data, \"f\");\n if (__classPrivateFieldGet(this, _AssistantStream_currentToolCall, \"f\")) {\n this._emit('toolCallDone', __classPrivateFieldGet(this, _AssistantStream_currentToolCall, \"f\"));\n __classPrivateFieldSet(this, _AssistantStream_currentToolCall, undefined, \"f\");\n }\n break;\n case 'thread.run.cancelling':\n break;\n }\n};","map":{"version":3,"names":["Core","AbstractAssistantStreamRunner","Stream","APIUserAbortError","OpenAIError","AssistantStream","constructor","_AssistantStream_events","set","_AssistantStream_runStepSnapshots","_AssistantStream_messageSnapshots","_AssistantStream_messageSnapshot","_AssistantStream_finalRun","_AssistantStream_currentContentIndex","_AssistantStream_currentContent","_AssistantStream_currentToolCallIndex","_AssistantStream_currentToolCall","_AssistantStream_currentEvent","_AssistantStream_currentRunSnapshot","_AssistantStream_currentRunStepSnapshot","WeakMap","_AssistantStream_instances","WeakSet","Symbol","asyncIterator","pushQueue","readQueue","done","on","event","reader","shift","resolve","push","undefined","length","err","reject","next","value","Promise","then","chunk","return","abort","fromReadableStream","stream","runner","_run","_fromReadableStream","readableStream","options","_stream$controller$si","signal","aborted","controller","addEventListener","_connected","__classPrivateFieldGet","_AssistantStream_addEvent","call","_addRun","_AssistantStream_endRequest","toReadableStream","bind","createToolAssistantStream","threadId","runId","runs","body","_runToolAssistantStream","headers","_createToolAssistantStream","run","params","_stream$controller$si2","submitToolOutputs","createThreadAssistantStream","thread","_threadAssistantStream","createAssistantStream","_runAssistantStream","currentEvent","currentRun","currentMessageSnapshot","currentRunStepSnapshot","finalRunSteps","Object","values","finalMessages","finalRun","Error","_createThreadAssistantStream","_stream$controller$si3","createAndRun","_createAssistantStream","_stream$controller$si4","create","accumulateDelta","acc","delta","key","deltaValue","entries","hasOwnProperty","accValue","isObj","Array","isArray","every","x","concat","ended","__classPrivateFieldSet","_AssistantStream_handleEvent","_AssistantStream_handleRun","_AssistantStream_handleRunStep","_AssistantStream_handleMessage","accumulatedMessage","newContent","_AssistantStream_accumulateMessage","id","content","snapshotContent","index","type","_emit","text","data","textDelta","snapshot","image_file","currentContent","accumulatedRunStep","_AssistantStream_accumulateRunStep","step_details","tool_calls","toolCall","details","accumulated","contentElement","_AssistantStream_accumulateContent"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/openai/src/lib/AssistantStream.ts"],"sourcesContent":["import {\n TextContentBlock,\n ImageFileContentBlock,\n Message,\n MessageContentDelta,\n Text,\n ImageFile,\n TextDelta,\n Messages,\n} from \"../resources/beta/threads/messages\";\nimport * as Core from \"../core\";\nimport { RequestOptions } from \"../core\";\nimport {\n Run,\n RunCreateParamsBase,\n RunCreateParamsStreaming,\n Runs,\n RunSubmitToolOutputsParamsBase,\n RunSubmitToolOutputsParamsStreaming,\n} from \"../resources/beta/threads/runs/runs\";\nimport {\n AbstractAssistantRunnerEvents,\n AbstractAssistantStreamRunner,\n} from './AbstractAssistantStreamRunner';\nimport { type ReadableStream } from \"../_shims/index\";\nimport { Stream } from \"../streaming\";\nimport { APIUserAbortError, OpenAIError } from \"../error\";\nimport {\n AssistantStreamEvent,\n MessageStreamEvent,\n RunStepStreamEvent,\n RunStreamEvent,\n} from \"../resources/beta/assistants\";\nimport { RunStep, RunStepDelta, ToolCall, ToolCallDelta } from \"../resources/beta/threads/runs/steps\";\nimport { ThreadCreateAndRunParamsBase, Threads } from \"../resources/beta/threads/threads\";\nimport MessageDelta = Messages.MessageDelta;\n\nexport interface AssistantStreamEvents extends AbstractAssistantRunnerEvents {\n //New event structure\n messageCreated: (message: Message) => void;\n messageDelta: (message: MessageDelta, snapshot: Message) => void;\n messageDone: (message: Message) => void;\n\n runStepCreated: (runStep: RunStep) => void;\n runStepDelta: (delta: RunStepDelta, snapshot: Runs.RunStep) => void;\n runStepDone: (runStep: Runs.RunStep, snapshot: Runs.RunStep) => void;\n\n toolCallCreated: (toolCall: ToolCall) => void;\n toolCallDelta: (delta: ToolCallDelta, snapshot: ToolCall) => void;\n toolCallDone: (toolCall: ToolCall) => void;\n\n textCreated: (content: Text) => void;\n textDelta: (delta: TextDelta, snapshot: Text) => void;\n textDone: (content: Text, snapshot: Message) => void;\n\n //No created or delta as this is not streamed\n imageFileDone: (content: ImageFile, snapshot: Message) => void;\n\n end: () => void;\n\n event: (event: AssistantStreamEvent) => void;\n}\n\nexport type ThreadCreateAndRunParamsBaseStream = Omit & {\n stream?: true;\n};\n\nexport type RunCreateParamsBaseStream = Omit & {\n stream?: true;\n};\n\nexport type RunSubmitToolOutputsParamsStream = Omit & {\n stream?: true;\n};\n\nexport class AssistantStream\n extends AbstractAssistantStreamRunner\n implements AsyncIterable\n{\n //Track all events in a single list for reference\n #events: AssistantStreamEvent[] = [];\n\n //Used to accumulate deltas\n //We are accumulating many types so the value here is not strict\n #runStepSnapshots: { [id: string]: Runs.RunStep } = {};\n #messageSnapshots: { [id: string]: Message } = {};\n #messageSnapshot: Message | undefined;\n #finalRun: Run | undefined;\n #currentContentIndex: number | undefined;\n #currentContent: TextContentBlock | ImageFileContentBlock | undefined;\n #currentToolCallIndex: number | undefined;\n #currentToolCall: ToolCall | undefined;\n\n //For current snapshot methods\n #currentEvent: AssistantStreamEvent | undefined;\n #currentRunSnapshot: Run | undefined;\n #currentRunStepSnapshot: Runs.RunStep | undefined;\n\n [Symbol.asyncIterator](): AsyncIterator {\n const pushQueue: AssistantStreamEvent[] = [];\n const readQueue: {\n resolve: (chunk: AssistantStreamEvent | undefined) => void;\n reject: (err: unknown) => void;\n }[] = [];\n let done = false;\n\n //Catch all for passing along all events\n this.on('event', (event) => {\n const reader = readQueue.shift();\n if (reader) {\n reader.resolve(event);\n } else {\n pushQueue.push(event);\n }\n });\n\n this.on('end', () => {\n done = true;\n for (const reader of readQueue) {\n reader.resolve(undefined);\n }\n readQueue.length = 0;\n });\n\n this.on('abort', (err) => {\n done = true;\n for (const reader of readQueue) {\n reader.reject(err);\n }\n readQueue.length = 0;\n });\n\n this.on('error', (err) => {\n done = true;\n for (const reader of readQueue) {\n reader.reject(err);\n }\n readQueue.length = 0;\n });\n\n return {\n next: async (): Promise> => {\n if (!pushQueue.length) {\n if (done) {\n return { value: undefined, done: true };\n }\n return new Promise((resolve, reject) =>\n readQueue.push({ resolve, reject }),\n ).then((chunk) => (chunk ? { value: chunk, done: false } : { value: undefined, done: true }));\n }\n const chunk = pushQueue.shift()!;\n return { value: chunk, done: false };\n },\n return: async () => {\n this.abort();\n return { value: undefined, done: true };\n },\n };\n }\n\n static fromReadableStream(stream: ReadableStream): AssistantStream {\n const runner = new AssistantStream();\n runner._run(() => runner._fromReadableStream(stream));\n return runner;\n }\n\n protected async _fromReadableStream(\n readableStream: ReadableStream,\n options?: Core.RequestOptions,\n ): Promise {\n const signal = options?.signal;\n if (signal) {\n if (signal.aborted) this.controller.abort();\n signal.addEventListener('abort', () => this.controller.abort());\n }\n this._connected();\n const stream = Stream.fromReadableStream(readableStream, this.controller);\n for await (const event of stream) {\n this.#addEvent(event);\n }\n if (stream.controller.signal?.aborted) {\n throw new APIUserAbortError();\n }\n return this._addRun(this.#endRequest());\n }\n\n toReadableStream(): ReadableStream {\n const stream = new Stream(this[Symbol.asyncIterator].bind(this), this.controller);\n return stream.toReadableStream();\n }\n\n static createToolAssistantStream(\n threadId: string,\n runId: string,\n runs: Runs,\n body: RunSubmitToolOutputsParamsStream,\n options: RequestOptions | undefined,\n ) {\n const runner = new AssistantStream();\n runner._run(() =>\n runner._runToolAssistantStream(threadId, runId, runs, body, {\n ...options,\n headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'stream' },\n }),\n );\n return runner;\n }\n\n protected override async _createToolAssistantStream(\n run: Runs,\n threadId: string,\n runId: string,\n params: RunSubmitToolOutputsParamsStream,\n options?: Core.RequestOptions,\n ): Promise {\n const signal = options?.signal;\n if (signal) {\n if (signal.aborted) this.controller.abort();\n signal.addEventListener('abort', () => this.controller.abort());\n }\n\n const body: RunSubmitToolOutputsParamsStreaming = { ...params, stream: true };\n const stream = await run.submitToolOutputs(threadId, runId, body, {\n ...options,\n signal: this.controller.signal,\n });\n\n this._connected();\n\n for await (const event of stream) {\n this.#addEvent(event);\n }\n if (stream.controller.signal?.aborted) {\n throw new APIUserAbortError();\n }\n\n return this._addRun(this.#endRequest());\n }\n\n static createThreadAssistantStream(\n body: ThreadCreateAndRunParamsBaseStream,\n thread: Threads,\n options?: RequestOptions,\n ) {\n const runner = new AssistantStream();\n runner._run(() =>\n runner._threadAssistantStream(body, thread, {\n ...options,\n headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'stream' },\n }),\n );\n return runner;\n }\n\n static createAssistantStream(\n threadId: string,\n runs: Runs,\n params: RunCreateParamsBaseStream,\n options?: RequestOptions,\n ) {\n const runner = new AssistantStream();\n runner._run(() =>\n runner._runAssistantStream(threadId, runs, params, {\n ...options,\n headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'stream' },\n }),\n );\n return runner;\n }\n\n currentEvent(): AssistantStreamEvent | undefined {\n return this.#currentEvent;\n }\n\n currentRun(): Run | undefined {\n return this.#currentRunSnapshot;\n }\n\n currentMessageSnapshot(): Message | undefined {\n return this.#messageSnapshot;\n }\n\n currentRunStepSnapshot(): Runs.RunStep | undefined {\n return this.#currentRunStepSnapshot;\n }\n\n async finalRunSteps(): Promise {\n await this.done();\n\n return Object.values(this.#runStepSnapshots);\n }\n\n async finalMessages(): Promise {\n await this.done();\n\n return Object.values(this.#messageSnapshots);\n }\n\n async finalRun(): Promise {\n await this.done();\n if (!this.#finalRun) throw Error('Final run was not received.');\n\n return this.#finalRun;\n }\n\n protected override async _createThreadAssistantStream(\n thread: Threads,\n params: ThreadCreateAndRunParamsBase,\n options?: Core.RequestOptions,\n ): Promise {\n const signal = options?.signal;\n if (signal) {\n if (signal.aborted) this.controller.abort();\n signal.addEventListener('abort', () => this.controller.abort());\n }\n\n const body: RunCreateParamsStreaming = { ...params, stream: true };\n const stream = await thread.createAndRun(body, { ...options, signal: this.controller.signal });\n\n this._connected();\n\n for await (const event of stream) {\n this.#addEvent(event);\n }\n if (stream.controller.signal?.aborted) {\n throw new APIUserAbortError();\n }\n\n return this._addRun(this.#endRequest());\n }\n\n protected override async _createAssistantStream(\n run: Runs,\n threadId: string,\n params: RunCreateParamsBase,\n options?: Core.RequestOptions,\n ): Promise {\n const signal = options?.signal;\n if (signal) {\n if (signal.aborted) this.controller.abort();\n signal.addEventListener('abort', () => this.controller.abort());\n }\n\n const body: RunCreateParamsStreaming = { ...params, stream: true };\n const stream = await run.create(threadId, body, { ...options, signal: this.controller.signal });\n\n this._connected();\n\n for await (const event of stream) {\n this.#addEvent(event);\n }\n if (stream.controller.signal?.aborted) {\n throw new APIUserAbortError();\n }\n\n return this._addRun(this.#endRequest());\n }\n\n #addEvent(event: AssistantStreamEvent) {\n if (this.ended) return;\n\n this.#currentEvent = event;\n\n this.#handleEvent(event);\n\n switch (event.event) {\n case 'thread.created':\n //No action on this event.\n break;\n\n case 'thread.run.created':\n case 'thread.run.queued':\n case 'thread.run.in_progress':\n case 'thread.run.requires_action':\n case 'thread.run.completed':\n case 'thread.run.failed':\n case 'thread.run.cancelling':\n case 'thread.run.cancelled':\n case 'thread.run.expired':\n this.#handleRun(event);\n break;\n\n case 'thread.run.step.created':\n case 'thread.run.step.in_progress':\n case 'thread.run.step.delta':\n case 'thread.run.step.completed':\n case 'thread.run.step.failed':\n case 'thread.run.step.cancelled':\n case 'thread.run.step.expired':\n this.#handleRunStep(event);\n break;\n\n case 'thread.message.created':\n case 'thread.message.in_progress':\n case 'thread.message.delta':\n case 'thread.message.completed':\n case 'thread.message.incomplete':\n this.#handleMessage(event);\n break;\n\n case 'error':\n //This is included for completeness, but errors are processed in the SSE event processing so this should not occur\n throw new Error(\n 'Encountered an error event in event processing - errors should be processed earlier',\n );\n }\n }\n\n #endRequest(): Run {\n if (this.ended) {\n throw new OpenAIError(`stream has ended, this shouldn't happen`);\n }\n\n if (!this.#finalRun) throw Error('Final run has not been received');\n\n return this.#finalRun;\n }\n\n #handleMessage(event: MessageStreamEvent) {\n const [accumulatedMessage, newContent] = this.#accumulateMessage(event, this.#messageSnapshot);\n this.#messageSnapshot = accumulatedMessage;\n this.#messageSnapshots[accumulatedMessage.id] = accumulatedMessage;\n\n for (const content of newContent) {\n const snapshotContent = accumulatedMessage.content[content.index];\n if (snapshotContent?.type == 'text') {\n this._emit('textCreated', snapshotContent.text);\n }\n }\n\n switch (event.event) {\n case 'thread.message.created':\n this._emit('messageCreated', event.data);\n break;\n\n case 'thread.message.in_progress':\n break;\n\n case 'thread.message.delta':\n this._emit('messageDelta', event.data.delta, accumulatedMessage);\n\n if (event.data.delta.content) {\n for (const content of event.data.delta.content) {\n //If it is text delta, emit a text delta event\n if (content.type == 'text' && content.text) {\n let textDelta = content.text;\n let snapshot = accumulatedMessage.content[content.index];\n if (snapshot && snapshot.type == 'text') {\n this._emit('textDelta', textDelta, snapshot.text);\n } else {\n throw Error('The snapshot associated with this text delta is not text or missing');\n }\n }\n\n if (content.index != this.#currentContentIndex) {\n //See if we have in progress content\n if (this.#currentContent) {\n switch (this.#currentContent.type) {\n case 'text':\n this._emit('textDone', this.#currentContent.text, this.#messageSnapshot);\n break;\n case 'image_file':\n this._emit('imageFileDone', this.#currentContent.image_file, this.#messageSnapshot);\n break;\n }\n }\n\n this.#currentContentIndex = content.index;\n }\n\n this.#currentContent = accumulatedMessage.content[content.index];\n }\n }\n\n break;\n\n case 'thread.message.completed':\n case 'thread.message.incomplete':\n //We emit the latest content we were working on on completion (including incomplete)\n if (this.#currentContentIndex !== undefined) {\n const currentContent = event.data.content[this.#currentContentIndex];\n if (currentContent) {\n switch (currentContent.type) {\n case 'image_file':\n this._emit('imageFileDone', currentContent.image_file, this.#messageSnapshot);\n break;\n case 'text':\n this._emit('textDone', currentContent.text, this.#messageSnapshot);\n break;\n }\n }\n }\n\n if (this.#messageSnapshot) {\n this._emit('messageDone', event.data);\n }\n\n this.#messageSnapshot = undefined;\n }\n }\n\n #handleRunStep(event: RunStepStreamEvent) {\n const accumulatedRunStep = this.#accumulateRunStep(event);\n this.#currentRunStepSnapshot = accumulatedRunStep;\n\n switch (event.event) {\n case 'thread.run.step.created':\n this._emit('runStepCreated', event.data);\n break;\n case 'thread.run.step.delta':\n const delta = event.data.delta;\n if (\n delta.step_details &&\n delta.step_details.type == 'tool_calls' &&\n delta.step_details.tool_calls &&\n accumulatedRunStep.step_details.type == 'tool_calls'\n ) {\n for (const toolCall of delta.step_details.tool_calls) {\n if (toolCall.index == this.#currentToolCallIndex) {\n this._emit(\n 'toolCallDelta',\n toolCall,\n accumulatedRunStep.step_details.tool_calls[toolCall.index] as ToolCall,\n );\n } else {\n if (this.#currentToolCall) {\n this._emit('toolCallDone', this.#currentToolCall);\n }\n\n this.#currentToolCallIndex = toolCall.index;\n this.#currentToolCall = accumulatedRunStep.step_details.tool_calls[toolCall.index];\n if (this.#currentToolCall) this._emit('toolCallCreated', this.#currentToolCall);\n }\n }\n }\n\n this._emit('runStepDelta', event.data.delta, accumulatedRunStep);\n break;\n case 'thread.run.step.completed':\n case 'thread.run.step.failed':\n case 'thread.run.step.cancelled':\n case 'thread.run.step.expired':\n this.#currentRunStepSnapshot = undefined;\n const details = event.data.step_details;\n if (details.type == 'tool_calls') {\n if (this.#currentToolCall) {\n this._emit('toolCallDone', this.#currentToolCall as ToolCall);\n this.#currentToolCall = undefined;\n }\n }\n this._emit('runStepDone', event.data, accumulatedRunStep);\n break;\n case 'thread.run.step.in_progress':\n break;\n }\n }\n\n #handleEvent(event: AssistantStreamEvent) {\n this.#events.push(event);\n this._emit('event', event);\n }\n\n #accumulateRunStep(event: RunStepStreamEvent): Runs.RunStep {\n switch (event.event) {\n case 'thread.run.step.created':\n this.#runStepSnapshots[event.data.id] = event.data;\n return event.data;\n\n case 'thread.run.step.delta':\n let snapshot = this.#runStepSnapshots[event.data.id] as Runs.RunStep;\n if (!snapshot) {\n throw Error('Received a RunStepDelta before creation of a snapshot');\n }\n\n let data = event.data;\n\n if (data.delta) {\n const accumulated = AssistantStream.accumulateDelta(snapshot, data.delta) as Runs.RunStep;\n this.#runStepSnapshots[event.data.id] = accumulated;\n }\n\n return this.#runStepSnapshots[event.data.id] as Runs.RunStep;\n\n case 'thread.run.step.completed':\n case 'thread.run.step.failed':\n case 'thread.run.step.cancelled':\n case 'thread.run.step.expired':\n case 'thread.run.step.in_progress':\n this.#runStepSnapshots[event.data.id] = event.data;\n break;\n }\n\n if (this.#runStepSnapshots[event.data.id]) return this.#runStepSnapshots[event.data.id] as Runs.RunStep;\n throw new Error('No snapshot available');\n }\n\n #accumulateMessage(\n event: AssistantStreamEvent,\n snapshot: Message | undefined,\n ): [Message, MessageContentDelta[]] {\n let newContent: MessageContentDelta[] = [];\n\n switch (event.event) {\n case 'thread.message.created':\n //On creation the snapshot is just the initial message\n return [event.data, newContent];\n\n case 'thread.message.delta':\n if (!snapshot) {\n throw Error(\n 'Received a delta with no existing snapshot (there should be one from message creation)',\n );\n }\n\n let data = event.data;\n\n //If this delta does not have content, nothing to process\n if (data.delta.content) {\n for (const contentElement of data.delta.content) {\n if (contentElement.index in snapshot.content) {\n let currentContent = snapshot.content[contentElement.index];\n snapshot.content[contentElement.index] = this.#accumulateContent(\n contentElement,\n currentContent,\n );\n } else {\n snapshot.content[contentElement.index] = contentElement as\n | TextContentBlock\n | ImageFileContentBlock;\n //This is a new element\n newContent.push(contentElement);\n }\n }\n }\n\n return [snapshot, newContent];\n\n case 'thread.message.in_progress':\n case 'thread.message.completed':\n case 'thread.message.incomplete':\n //No changes on other thread events\n if (snapshot) {\n return [snapshot, newContent];\n } else {\n throw Error('Received thread message event with no existing snapshot');\n }\n }\n throw Error('Tried to accumulate a non-message event');\n }\n\n #accumulateContent(\n contentElement: MessageContentDelta,\n currentContent: TextContentBlock | ImageFileContentBlock | undefined,\n ): TextContentBlock | ImageFileContentBlock {\n return AssistantStream.accumulateDelta(currentContent as unknown as Record, contentElement) as\n | TextContentBlock\n | ImageFileContentBlock;\n }\n\n static accumulateDelta(acc: Record, delta: Record): Record {\n for (const [key, deltaValue] of Object.entries(delta)) {\n if (!acc.hasOwnProperty(key)) {\n acc[key] = deltaValue;\n continue;\n }\n\n let accValue = acc[key];\n if (accValue === null || accValue === undefined) {\n acc[key] = deltaValue;\n continue;\n }\n\n // We don't accumulate these special properties\n if (key === 'index' || key === 'type') {\n acc[key] = deltaValue;\n continue;\n }\n\n // Type-specific accumulation logic\n if (typeof accValue === 'string' && typeof deltaValue === 'string') {\n accValue += deltaValue;\n } else if (typeof accValue === 'number' && typeof deltaValue === 'number') {\n accValue += deltaValue;\n } else if (Core.isObj(accValue) && Core.isObj(deltaValue)) {\n accValue = this.accumulateDelta(accValue as Record, deltaValue as Record);\n } else if (Array.isArray(accValue) && Array.isArray(deltaValue)) {\n if (accValue.every((x) => typeof x === 'string' || typeof x === 'number')) {\n accValue.push(...deltaValue); // Use spread syntax for efficient addition\n continue;\n }\n } else {\n throw Error(`Unhandled record type: ${key}, deltaValue: ${deltaValue}, accValue: ${accValue}`);\n }\n acc[key] = accValue;\n }\n\n return acc;\n }\n\n #handleRun(event: RunStreamEvent) {\n this.#currentRunSnapshot = event.data;\n switch (event.event) {\n case 'thread.run.created':\n break;\n case 'thread.run.queued':\n break;\n case 'thread.run.in_progress':\n break;\n case 'thread.run.requires_action':\n case 'thread.run.cancelled':\n case 'thread.run.failed':\n case 'thread.run.completed':\n case 'thread.run.expired':\n this.#finalRun = event.data;\n if (this.#currentToolCall) {\n this._emit('toolCallDone', this.#currentToolCall);\n this.#currentToolCall = undefined;\n }\n break;\n case 'thread.run.cancelling':\n break;\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;OAUO,KAAKA,IAAI,MAAM,aAAa;SAYjCC,6BAA6B,QAC9B;SAEQC,MAAM,QAAQ,kBAAkB;SAChCC,iBAAiB,EAAEC,WAAW,QAAQ,cAAc;AAiD7D,OAAM,MAAOC,eACX,SAAQJ,6BAAoD;EAD9DK,YAAA;;;IAIE;IACAC,uBAAA,CAAAC,GAAA,OAAkC,EAAE;IAEpC;IACA;IACAC,iCAAA,CAAAD,GAAA,OAAoD,EAAE;IACtDE,iCAAA,CAAAF,GAAA,OAA+C,EAAE;IACjDG,gCAAA,CAAAH,GAAA;IACAI,yBAAA,CAAAJ,GAAA;IACAK,oCAAA,CAAAL,GAAA;IACAM,+BAAA,CAAAN,GAAA;IACAO,qCAAA,CAAAP,GAAA;IACAQ,gCAAA,CAAAR,GAAA;IAEA;IACAS,6BAAA,CAAAT,GAAA;IACAU,mCAAA,CAAAV,GAAA;IACAW,uCAAA,CAAAX,GAAA;EAmnBF;EAjnBE,EAAAD,uBAAA,OAAAa,OAAA,IAAAX,iCAAA,OAAAW,OAAA,IAAAV,iCAAA,OAAAU,OAAA,IAAAT,gCAAA,OAAAS,OAAA,IAAAR,yBAAA,OAAAQ,OAAA,IAAAP,oCAAA,OAAAO,OAAA,IAAAN,+BAAA,OAAAM,OAAA,IAAAL,qCAAA,OAAAK,OAAA,IAAAJ,gCAAA,OAAAI,OAAA,IAAAH,6BAAA,OAAAG,OAAA,IAAAF,mCAAA,OAAAE,OAAA,IAAAD,uCAAA,OAAAC,OAAA,IAAAC,0BAAA,OAAAC,OAAA,IAACC,MAAM,CAACC,aAAa,KAAC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C,gCAAA,MAAiB,EAAE;QACzB,IAAI,CAAC8G,KAAK,CAAC,cAAc,EAAEpE,sBAAA,KAAI,EAAA1C,gCAAA,MAAiB,CAAC;QACjDiG,sBAAA,KAAI,EAAAjG,gCAAA,EAAoBkB,SAAS;;MAEnC;IACF,KAAK,uBAAuB;MAC1B;;AAEN,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/1547d0ba37d8184857cb303a8f6b909c2272e4a2e53c3738a9dc20c9f2c8d89f.json b/trivia-forge/node_modules/.cache/babel-loader/1547d0ba37d8184857cb303a8f6b909c2272e4a2e53c3738a9dc20c9f2c8d89f.json deleted file mode 100644 index 1f437a5f..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/1547d0ba37d8184857cb303a8f6b909c2272e4a2e53c3738a9dc20c9f2c8d89f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport NavbarContext from './NavbarContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst NavbarToggle = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n children,\n label = 'Toggle navigation',\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'button',\n onClick,\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');\n const {\n onToggle,\n expanded\n } = useContext(NavbarContext) || {};\n const handleClick = useEventCallback(e => {\n if (onClick) onClick(e);\n if (onToggle) onToggle();\n });\n if (Component === 'button') {\n props.type = 'button';\n }\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref,\n onClick: handleClick,\n \"aria-label\": label,\n className: classNames(className, bsPrefix, !expanded && 'collapsed'),\n children: children || /*#__PURE__*/_jsx(\"span\", {\n className: `${bsPrefix}-icon`\n })\n });\n});\nNavbarToggle.displayName = 'NavbarToggle';\nexport default NavbarToggle;","map":{"version":3,"names":["classNames","React","useContext","useEventCallback","useBootstrapPrefix","NavbarContext","jsx","_jsx","NavbarToggle","forwardRef","bsPrefix","className","children","label","as","Component","onClick","props","ref","onToggle","expanded","handleClick","e","type","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/NavbarToggle.js"],"sourcesContent":["\"use client\";\n\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport NavbarContext from './NavbarContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst NavbarToggle = /*#__PURE__*/React.forwardRef(({\n bsPrefix,\n className,\n children,\n label = 'Toggle navigation',\n // Need to define the default \"as\" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595\n as: Component = 'button',\n onClick,\n ...props\n}, ref) => {\n bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');\n const {\n onToggle,\n expanded\n } = useContext(NavbarContext) || {};\n const handleClick = useEventCallback(e => {\n if (onClick) onClick(e);\n if (onToggle) onToggle();\n });\n if (Component === 'button') {\n props.type = 'button';\n }\n return /*#__PURE__*/_jsx(Component, {\n ...props,\n ref: ref,\n onClick: handleClick,\n \"aria-label\": label,\n className: classNames(className, bsPrefix, !expanded && 'collapsed'),\n children: children || /*#__PURE__*/_jsx(\"span\", {\n className: `${bsPrefix}-icon`\n })\n });\n});\nNavbarToggle.displayName = 'NavbarToggle';\nexport default NavbarToggle;"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,QAAQ,OAAO;AAClC,OAAOC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{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/1553ba04403ecb84ff57a26a16d613ac8c101c86f8ead83c398d42adbba891c4.json b/trivia-forge/node_modules/.cache/babel-loader/1553ba04403ecb84ff57a26a16d613ac8c101c86f8ead83c398d42adbba891c4.json deleted file mode 100644 index cc289579..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/1553ba04403ecb84ff57a26a16d613ac8c101c86f8ead83c398d42adbba891c4.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import PropTypes from 'prop-types';\nexport var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n enter: PropTypes.number,\n exit: PropTypes.number,\n appear: PropTypes.number\n}).isRequired]) : null;\nexport var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string,\n active: PropTypes.string\n}), PropTypes.shape({\n enter: PropTypes.string,\n enterDone: PropTypes.string,\n enterActive: PropTypes.string,\n exit: PropTypes.string,\n exitDone: PropTypes.string,\n exitActive: PropTypes.string\n})]) : null;","map":{"version":3,"names":["PropTypes","timeoutsShape","process","env","NODE_ENV","oneOfType","number","shape","enter","exit","appear","isRequired","classNamesShape","string","active","enterDone","enterActive","exitDone","exitActive"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-transition-group/esm/utils/PropTypes.js"],"sourcesContent":["import PropTypes from 'prop-types';\nexport var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n enter: PropTypes.number,\n exit: PropTypes.number,\n appear: PropTypes.number\n}).isRequired]) : null;\nexport var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string,\n active: PropTypes.string\n}), PropTypes.shape({\n enter: PropTypes.string,\n enterDone: PropTypes.string,\n enterActive: PropTypes.string,\n exit: PropTypes.string,\n exitDone: PropTypes.string,\n exitActive: PropTypes.string\n})]) : null;"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAO,IAAIC,aAAa,GAAGC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GAAGJ,SAAS,CAACK,SAAS,CAAC,CAACL,SAAS,CAACM,MAAM,EAAEN,SAAS,CAACO,KAAK,CAAC;EACxHC,KAAK,EAAER,SAAS,CAACM,MAAM;EACvBG,IAAI,EAAET,SAAS,CAACM,MAAM;EACtBI,MAAM,EAAEV,SAAS,CAACM;AACpB,CAAC,CAAC,CAACK,UAAU,CAAC,CAAC,GAAG,IAAI;AACtB,OAAO,IAAIC,eAAe,GAAGV,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GAAGJ,SAAS,CAACK,SAAS,CAAC,CAACL,SAAS,CAACa,MAAM,EAAEb,SAAS,CAACO,KAAK,CAAC;EAC1HC,KAAK,EAAER,SAAS,CAACa,MAAM;EACvBJ,IAAI,EAAET,SAAS,CAACa,MAAM;EACtBC,MAAM,EAAEd,SAAS,CAACa;AACpB,CAAC,CAAC,EAAEb,SAAS,CAACO,KAAK,CAAC;EAClBC,KAAK,EAAER,SAAS,CAACa,MAAM;EACvBE,SAAS,EAAEf,SAAS,CAACa,MAAM;EAC3BG,WAAW,EAAEhB,SAAS,CAACa,MAAM;EAC7BJ,IAAI,EAAET,SAAS,CAACa,MAAM;EACtBI,QAAQ,EAAEjB,SAAS,CAACa,MAAM;EAC1BK,UAAU,EAAElB,SAAS,CAACa;AACxB,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/1568520bf443051503a8839f07ef556205ea873e38ced5f47563d602356ce7c7.json b/trivia-forge/node_modules/.cache/babel-loader/1568520bf443051503a8839f07ef556205ea873e38ced5f47563d602356ce7c7.json deleted file mode 100644 index 5984c252..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/1568520bf443051503a8839f07ef556205ea873e38ced5f47563d602356ce7c7.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\nfunction _toPropertyKey(arg) {\n var key = _toPrimitive(arg, \"string\");\n return typeof key === \"symbol\" ? key : String(key);\n}\nfunction _toPrimitive(input, hint) {\n if (typeof input !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (typeof res !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\nimport { log } from \"../utils/log.js\";\nvar WebSocketClient = /*#__PURE__*/function () {\n /**\n * @param {string} url\n */\n function WebSocketClient(url) {\n _classCallCheck(this, WebSocketClient);\n this.client = new WebSocket(url);\n this.client.onerror = function (error) {\n log.error(error);\n };\n }\n\n /**\n * @param {(...args: any[]) => void} f\n */\n _createClass(WebSocketClient, [{\n key: \"onOpen\",\n value: function onOpen(f) {\n this.client.onopen = f;\n }\n\n /**\n * @param {(...args: any[]) => void} f\n */\n }, {\n key: \"onClose\",\n value: function onClose(f) {\n this.client.onclose = f;\n }\n\n // call f with the message string as the first argument\n /**\n * @param {(...args: any[]) => void} f\n */\n }, {\n key: \"onMessage\",\n value: function onMessage(f) {\n this.client.onmessage = function (e) {\n f(e.data);\n };\n }\n }]);\n return WebSocketClient;\n}();\nexport { WebSocketClient as default };","map":{"version":3,"names":["_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","protoProps","staticProps","prototype","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","Number","log","WebSocketClient","url","client","WebSocket","onerror","error","value","onOpen","f","onopen","onClose","onclose","onMessage","onmessage","e","data","default"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/webpack-dev-server/client/clients/WebSocketClient.js"],"sourcesContent":["function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport { log } from \"../utils/log.js\";\nvar WebSocketClient = /*#__PURE__*/function () {\n /**\n * @param {string} url\n */\n function WebSocketClient(url) {\n _classCallCheck(this, WebSocketClient);\n this.client = new WebSocket(url);\n this.client.onerror = function (error) {\n log.error(error);\n };\n }\n\n /**\n * @param {(...args: any[]) => void} f\n */\n _createClass(WebSocketClient, [{\n key: \"onOpen\",\n value: function onOpen(f) {\n this.client.onopen = f;\n }\n\n /**\n * @param {(...args: any[]) => void} f\n */\n }, {\n key: \"onClose\",\n value: function onClose(f) {\n this.client.onclose = f;\n }\n\n // call f with the message string as the first argument\n /**\n * @param {(...args: any[]) => void} f\n */\n }, {\n key: \"onMessage\",\n value: function onMessage(f) {\n this.client.onmessage = function (e) {\n f(e.data);\n };\n }\n }]);\n return WebSocketClient;\n}();\nexport { WebSocketClient as default };"],"mappings":"AAAA,SAASA,eAAeA,CAACC,QAAQ,EAAEC,WAAW,EAAE;EAAE,IAAI,EAAED,QAAQ,YAAYC,WAAW,CAAC,EAAE;IAAE,MAAM,IAAIC,SAAS,CAAC,mCAAmC,CAAC;EAAE;AAAE;AACxJ,SAASC,iBAAiBA,CAACC,MAAM,EAAEC,KAAK,EAAE;EAAE,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGD,KAAK,CAACE,MAAM,EAAED,CAAC,EAAE,EAAE;IAAE,IAAIE,UAAU,GAAGH,KAAK,CAACC,CAAC,CAAC;IAAEE,UAAU,CAACC,UAAU,GAAGD,UAAU,CAACC,UAAU,IAAI,KAAK;IAAED,UAAU,CAACE,YAAY,GAAG,IAAI;IAAE,IAAI,OAAO,IAAIF,UAAU,EAAEA,UAAU,CAACG,QAAQ,GAAG,IAAI;IAAEC,MAAM,CAACC,cAAc,CAACT,MAAM,EAAEU,cAAc,CAACN,UAAU,CAACO,GAAG,CAAC,EAAEP,UAAU,CAAC;EAAE;AAAE;AAC5U,SAASQ,YAAYA,CAACf,WAAW,EAAEgB,UAAU,EAAEC,WAAW,EAAE;EAAE,IAAID,UAAU,EAAEd,iBAAiB,CAACF,WAAW,CAACkB,SAAS,EAAEF,UAAU,CAAC;E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K,CAAC;IAClB,CAAC;EACH;;EAEA;AACF;AACA;EACEtB,YAAY,CAACiB,eAAe,EAAE,CAAC;IAC7BlB,GAAG,EAAE,QAAQ;IACbwB,KAAK,EAAE,SAASC,MAAMA,CAACC,CAAC,EAAE;MACxB,IAAI,CAACN,MAAM,CAACO,MAAM,GAAGD,CAAC;IACxB;;IAEA;AACJ;AACA;EACE,CAAC,EAAE;IACD1B,GAAG,EAAE,SAAS;IACdwB,KAAK,EAAE,SAASI,OAAOA,CAACF,CAAC,EAAE;MACzB,IAAI,CAACN,MAAM,CAACS,OAAO,GAAGH,CAAC;IACzB;;IAEA;IACA;AACJ;AACA;EACE,CAAC,EAAE;IACD1B,GAAG,EAAE,WAAW;IAChBwB,KAAK,EAAE,SAASM,SAASA,CAACJ,CAAC,EAAE;MAC3B,IAAI,CAACN,MAAM,CAACW,SAAS,GAAG,UAAUC,CAAC,EAAE;QACnCN,CAAC,CAACM,CAAC,CAACC,IAAI,CAAC;MACX,CAAC;IACH;EACF,CAAC,CAAC,CAAC;EACH,OAAOf,eAAe;AACxB,CAAC,CAAC,CAAC;AACH,SAASA,eAAe,IAAIgB,OAAO","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/15e4cb068b332c8fa992a597c519b27e7143dc543ce5b0ef06c386b0cf83a83b.json b/trivia-forge/node_modules/.cache/babel-loader/15e4cb068b332c8fa992a597c519b27e7143dc543ce5b0ef06c386b0cf83a83b.json deleted file mode 100644 index bfe7a97d..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/15e4cb068b332c8fa992a597c519b27e7143dc543ce5b0ef06c386b0cf83a83b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"const _excluded = [\"show\", \"role\", \"className\", \"style\", \"children\", \"backdrop\", \"keyboard\", \"onBackdropClick\", \"onEscapeKeyDown\", \"transition\", \"runTransition\", \"backdropTransition\", \"runBackdropTransition\", \"autoFocus\", \"enforceFocus\", \"restoreFocus\", \"restoreFocusOptions\", \"renderDialog\", \"renderBackdrop\", \"manager\", \"container\", \"onShow\", \"onHide\", \"onExit\", \"onExited\", \"onExiting\", \"onEnter\", \"onEntering\", \"onEntered\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\n/* eslint-disable @typescript-eslint/no-use-before-define, react/prop-types */\n\nimport activeElement from 'dom-helpers/activeElement';\nimport contains from 'dom-helpers/contains';\nimport canUseDOM from 'dom-helpers/canUseDOM';\nimport listen from 'dom-helpers/listen';\nimport { useState, useRef, useCallback, useImperativeHandle, forwardRef, useEffect } from 'react';\nimport * as React from 'react';\nimport ReactDOM from 'react-dom';\nimport useMounted from '@restart/hooks/useMounted';\nimport useWillUnmount from '@restart/hooks/useWillUnmount';\nimport usePrevious from '@restart/hooks/usePrevious';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport ModalManager from './ModalManager';\nimport useWaitForDOMRef from './useWaitForDOMRef';\nimport useWindow from './useWindow';\nimport { renderTransition } from './ImperativeTransition';\nimport { isEscKey } from './utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nlet manager;\nfunction getManager(window) {\n if (!manager) manager = new ModalManager({\n ownerDocument: window == null ? void 0 : window.document\n });\n return manager;\n}\nfunction useModalManager(provided) {\n const window = useWindow();\n const modalManager = provided || getManager(window);\n const modal = useRef({\n dialog: null,\n backdrop: null\n });\n return Object.assign(modal.current, {\n add: () => modalManager.add(modal.current),\n remove: () => modalManager.remove(modal.current),\n isTopModal: () => modalManager.isTopModal(modal.current),\n setDialogRef: useCallback(ref => {\n modal.current.dialog = ref;\n }, []),\n setBackdropRef: useCallback(ref => {\n modal.current.backdrop = ref;\n }, [])\n });\n}\nconst Modal = /*#__PURE__*/forwardRef((_ref, ref) => {\n let {\n show = false,\n role = 'dialog',\n className,\n style,\n children,\n backdrop = true,\n keyboard = true,\n onBackdropClick,\n onEscapeKeyDown,\n transition,\n runTransition,\n backdropTransition,\n runBackdropTransition,\n autoFocus = true,\n enforceFocus = true,\n restoreFocus = true,\n restoreFocusOptions,\n renderDialog,\n renderBackdrop = props => /*#__PURE__*/_jsx(\"div\", Object.assign({}, props)),\n manager: providedManager,\n container: containerRef,\n onShow,\n onHide = () => {},\n onExit,\n onExited,\n onExiting,\n onEnter,\n onEntering,\n onEntered\n } = _ref,\n rest = _objectWithoutPropertiesLoose(_ref, _excluded);\n const ownerWindow = useWindow();\n const container = useWaitForDOMRef(containerRef);\n const modal = useModalManager(providedManager);\n const isMounted = useMounted();\n const prevShow = usePrevious(show);\n const [exited, setExited] = useState(!show);\n const lastFocusRef = useRef(null);\n useImperativeHandle(ref, () => modal, [modal]);\n if (canUseDOM && !prevShow && show) {\n lastFocusRef.current = activeElement(ownerWindow == null ? void 0 : ownerWindow.document);\n }\n\n // TODO: I think this needs to be in an effect\n if (show && exited) {\n setExited(false);\n }\n const handleShow = useEventCallback(() => {\n modal.add();\n removeKeydownListenerRef.current = listen(document, 'keydown', handleDocumentKeyDown);\n removeFocusListenerRef.current = listen(document, 'focus',\n // the timeout is necessary b/c this will run before the new modal is mounted\n // and so steals focus from it\n () => setTimeout(handleEnforceFocus), true);\n if (onShow) {\n onShow();\n }\n\n // autofocus after onShow to not trigger a focus event for previous\n // modals before this one is shown.\n if (autoFocus) {\n var _modal$dialog$ownerDo, _modal$dialog;\n const currentActiveElement = activeElement((_modal$dialog$ownerDo = (_modal$dialog = modal.dialog) == null ? void 0 : _modal$dialog.ownerDocument) != null ? _modal$dialog$ownerDo : ownerWindow == null ? void 0 : ownerWindow.document);\n if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {\n lastFocusRef.current = currentActiveElement;\n modal.dialog.focus();\n }\n }\n });\n const handleHide = useEventCallback(() => {\n modal.remove();\n removeKeydownListenerRef.current == null ? void 0 : removeKeydownListenerRef.current();\n removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();\n if (restoreFocus) {\n var _lastFocusRef$current;\n // Support: <=IE11 doesn't support `focus()` on svg elements (RB: #917)\n (_lastFocusRef$current = lastFocusRef.current) == null ? void 0 : _lastFocusRef$current.focus == null ? void 0 : _lastFocusRef$current.focus(restoreFocusOptions);\n lastFocusRef.current = null;\n }\n });\n\n // TODO: try and combine these effects: https://github.com/react-bootstrap/react-overlays/pull/794#discussion_r409954120\n\n // Show logic when:\n // - show is `true` _and_ `container` has resolved\n useEffect(() => {\n if (!show || !container) return;\n handleShow();\n }, [show, container, /* should never change: */handleShow]);\n\n // Hide cleanup logic when:\n // - `exited` switches to true\n // - component unmounts;\n useEffect(() => {\n if (!exited) return;\n handleHide();\n }, [exited, handleHide]);\n useWillUnmount(() => {\n handleHide();\n });\n\n // --------------------------------\n\n const handleEnforceFocus = useEventCallback(() => {\n if (!enforceFocus || !isMounted() || !modal.isTopModal()) {\n return;\n }\n const currentActiveElement = activeElement(ownerWindow == null ? void 0 : ownerWindow.document);\n if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {\n modal.dialog.focus();\n }\n });\n const handleBackdropClick = useEventCallback(e => {\n if (e.target !== e.currentTarget) {\n return;\n }\n onBackdropClick == null ? void 0 : onBackdropClick(e);\n if (backdrop === true) {\n onHide();\n }\n });\n const handleDocumentKeyDown = useEventCallback(e => {\n if (keyboard && isEscKey(e) && modal.isTopModal()) {\n onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);\n if (!e.defaultPrevented) {\n onHide();\n }\n }\n });\n const removeFocusListenerRef = useRef();\n const removeKeydownListenerRef = useRef();\n const handleHidden = function () {\n setExited(true);\n onExited == null ? void 0 : onExited(...arguments);\n };\n if (!container) {\n return null;\n }\n const dialogProps = Object.assign({\n role,\n ref: modal.setDialogRef,\n // apparently only works on the dialog role element\n 'aria-modal': role === 'dialog' ? true : undefined\n }, rest, {\n style,\n className,\n tabIndex: -1\n });\n let dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/_jsx(\"div\", Object.assign({}, dialogProps, {\n children: /*#__PURE__*/React.cloneElement(children, {\n role: 'document'\n })\n }));\n dialog = renderTransition(transition, runTransition, {\n unmountOnExit: true,\n mountOnEnter: true,\n appear: true,\n in: !!show,\n onExit,\n onExiting,\n onExited: handleHidden,\n onEnter,\n onEntering,\n onEntered,\n children: dialog\n });\n let backdropElement = null;\n if (backdrop) {\n backdropElement = renderBackdrop({\n ref: modal.setBackdropRef,\n onClick: handleBackdropClick\n });\n backdropElement = renderTransition(backdropTransition, runBackdropTransition, {\n in: !!show,\n appear: true,\n mountOnEnter: true,\n unmountOnExit: true,\n children: backdropElement\n });\n }\n return /*#__PURE__*/_jsx(_Fragment, {\n children: /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/_jsxs(_Fragment, {\n children: [backdropElement, dialog]\n }), container)\n });\n});\nModal.displayName = 'Modal';\nexport default Object.assign(Modal, {\n Manager: ModalManager\n});","map":{"version":3,"names":["_excluded","_objectWithoutPropertiesLoose","source","excluded","target","sourceKeys","Object","keys","key","i","length","indexOf","activeElement","contains","canUseDOM","listen","useState","useRef","useCallback","useImperativeHandle","forwardRef","useEffect","React","ReactDOM","useMounted","useWillUnmount","usePrevious","useEventCallback","ModalManager","useWaitForDOMRef","useWindow","renderTransition","isEscKey","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","manager","getManager","window","ownerDocument","document","useModalManager","provided","modalManager","modal","dialog","backdrop","assign","current","add","remove","isTopModal","setDialogRef","ref","setBackdropRef","Modal","_ref","show","role","className","style","children","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","props","providedManager","container","containerRef","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered","rest","ownerWindow","isMounted","prevShow","exited","setExited","lastFocusRef","handleShow","removeKeydownListenerRef","handleDocumentKeyDown","removeFocusListenerRef","setTimeout","handleEnforceFocus","_modal$dialog$ownerDo","_modal$dialog","currentActiveElement","focus","handleHide","_lastFocusRef$current","handleBackdropClick","e","currentTarget","defaultPrevented","handleHidden","arguments","dialogProps","undefined","tabIndex","cloneElement","unmountOnExit","mountOnEnter","appear","in","backdropElement","onClick","createPortal","displayName","Manager"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/ui/esm/Modal.js"],"sourcesContent":["const _excluded = [\"show\", \"role\", \"className\", \"style\", \"children\", \"backdrop\", \"keyboard\", \"onBackdropClick\", \"onEscapeKeyDown\", \"transition\", \"runTransition\", \"backdropTransition\", \"runBackdropTransition\", \"autoFocus\", \"enforceFocus\", \"restoreFocus\", \"restoreFocusOptions\", \"renderDialog\", \"renderBackdrop\", \"manager\", \"container\", \"onShow\", \"onHide\", \"onExit\", \"onExited\", \"onExiting\", \"onEnter\", \"onEntering\", \"onEntered\"];\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n/* eslint-disable @typescript-eslint/no-use-before-define, react/prop-types */\n\nimport activeElement from 'dom-helpers/activeElement';\nimport contains from 'dom-helpers/contains';\nimport canUseDOM from 'dom-helpers/canUseDOM';\nimport listen from 'dom-helpers/listen';\nimport { useState, useRef, useCallback, useImperativeHandle, forwardRef, useEffect } from 'react';\nimport * as React from 'react';\nimport ReactDOM from 'react-dom';\nimport useMounted from '@restart/hooks/useMounted';\nimport useWillUnmount from '@restart/hooks/useWillUnmount';\nimport usePrevious from '@restart/hooks/usePrevious';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport ModalManager from './ModalManager';\nimport useWaitForDOMRef from './useWaitForDOMRef';\nimport useWindow from './useWindow';\nimport { renderTransition } from './ImperativeTransition';\nimport { isEscKey } from './utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nlet manager;\nfunction getManager(window) {\n if (!manager) manager = new ModalManager({\n ownerDocument: window == null ? void 0 : window.document\n });\n return manager;\n}\nfunction useModalManager(provided) {\n const window = useWindow();\n const modalManager = provided || getManager(window);\n const modal = useRef({\n dialog: null,\n backdrop: null\n });\n return Object.assign(modal.current, {\n add: () => modalManager.add(modal.current),\n remove: () => modalManager.remove(modal.current),\n isTopModal: () => modalManager.isTopModal(modal.current),\n setDialogRef: useCallback(ref => {\n modal.current.dialog = ref;\n }, []),\n setBackdropRef: useCallback(ref => {\n modal.current.backdrop = ref;\n }, [])\n });\n}\nconst Modal = /*#__PURE__*/forwardRef((_ref, ref) => {\n let {\n show = false,\n role = 'dialog',\n className,\n style,\n children,\n backdrop = true,\n keyboard = true,\n onBackdropClick,\n onEscapeKeyDown,\n transition,\n runTransition,\n backdropTransition,\n runBackdropTransition,\n autoFocus = true,\n enforceFocus = true,\n restoreFocus = true,\n restoreFocusOptions,\n renderDialog,\n renderBackdrop = props => /*#__PURE__*/_jsx(\"div\", Object.assign({}, props)),\n manager: providedManager,\n container: containerRef,\n onShow,\n onHide = () => {},\n onExit,\n onExited,\n onExiting,\n onEnter,\n onEntering,\n onEntered\n } = _ref,\n rest = _objectWithoutPropertiesLoose(_ref, _excluded);\n const ownerWindow = useWindow();\n const container = useWaitForDOMRef(containerRef);\n const modal = useModalManager(providedManager);\n const isMounted = useMounted();\n const prevShow = usePrevious(show);\n const [exited, setExited] = useState(!show);\n const lastFocusRef = useRef(null);\n useImperativeHandle(ref, () => modal, [modal]);\n if (canUseDOM && !prevShow && show) {\n lastFocusRef.current = activeElement(ownerWindow == null ? void 0 : ownerWindow.document);\n }\n\n // TODO: I think this needs to be in an effect\n if (show && exited) {\n setExited(false);\n }\n const handleShow = useEventCallback(() => {\n modal.add();\n removeKeydownListenerRef.current = listen(document, 'keydown', handleDocumentKeyDown);\n removeFocusListenerRef.current = listen(document, 'focus',\n // the timeout is necessary b/c this will run before the new modal is mounted\n // and so steals focus from it\n () => setTimeout(handleEnforceFocus), true);\n if (onShow) {\n onShow();\n }\n\n // autofocus after onShow to not trigger a focus event for previous\n // modals before this one is shown.\n if (autoFocus) {\n var _modal$dialog$ownerDo, _modal$dialog;\n const currentActiveElement = activeElement((_modal$dialog$ownerDo = (_modal$dialog = modal.dialog) == null ? void 0 : _modal$dialog.ownerDocument) != null ? _modal$dialog$ownerDo : ownerWindow == null ? void 0 : ownerWindow.document);\n if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {\n lastFocusRef.current = currentActiveElement;\n modal.dialog.focus();\n }\n }\n });\n const handleHide = useEventCallback(() => {\n modal.remove();\n removeKeydownListenerRef.current == null ? void 0 : removeKeydownListenerRef.current();\n removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();\n if (restoreFocus) {\n var _lastFocusRef$current;\n // Support: <=IE11 doesn't support `focus()` on svg elements (RB: #917)\n (_lastFocusRef$current = lastFocusRef.current) == null ? void 0 : _lastFocusRef$current.focus == null ? void 0 : _lastFocusRef$current.focus(restoreFocusOptions);\n lastFocusRef.current = null;\n }\n });\n\n // TODO: try and combine these effects: https://github.com/react-bootstrap/react-overlays/pull/794#discussion_r409954120\n\n // Show logic when:\n // - show is `true` _and_ `container` has resolved\n useEffect(() => {\n if (!show || !container) return;\n handleShow();\n }, [show, container, /* should never change: */handleShow]);\n\n // Hide cleanup logic when:\n // - `exited` switches to true\n // - component unmounts;\n useEffect(() => {\n if (!exited) return;\n handleHide();\n }, [exited, handleHide]);\n useWillUnmount(() => {\n handleHide();\n });\n\n // --------------------------------\n\n const handleEnforceFocus = useEventCallback(() => {\n if (!enforceFocus || !isMounted() || !modal.isTopModal()) {\n return;\n }\n const currentActiveElement = activeElement(ownerWindow == null ? void 0 : ownerWindow.document);\n if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {\n modal.dialog.focus();\n }\n });\n const handleBackdropClick = useEventCallback(e => {\n if (e.target !== e.currentTarget) {\n return;\n }\n onBackdropClick == null ? void 0 : onBackdropClick(e);\n if (backdrop === true) {\n onHide();\n }\n });\n const handleDocumentKeyDown = useEventCallback(e => {\n if (keyboard && isEscKey(e) && modal.isTopModal()) {\n onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);\n if (!e.defaultPrevented) {\n onHide();\n }\n }\n });\n const removeFocusListenerRef = useRef();\n const removeKeydownListenerRef = useRef();\n const handleHidden = (...args) => {\n setExited(true);\n onExited == null ? void 0 : onExited(...args);\n };\n if (!container) {\n return null;\n }\n const dialogProps = Object.assign({\n role,\n ref: modal.setDialogRef,\n // apparently only works on the dialog role element\n 'aria-modal': role === 'dialog' ? true : undefined\n }, rest, {\n style,\n className,\n tabIndex: -1\n });\n let dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/_jsx(\"div\", Object.assign({}, dialogProps, {\n children: /*#__PURE__*/React.cloneElement(children, {\n role: 'document'\n })\n }));\n dialog = renderTransition(transition, runTransition, {\n unmountOnExit: true,\n mountOnEnter: true,\n appear: true,\n in: !!show,\n onExit,\n onExiting,\n onExited: handleHidden,\n onEnter,\n onEntering,\n onEntered,\n children: dialog\n });\n let backdropElement = null;\n if (backdrop) {\n backdropElement = renderBackdrop({\n ref: modal.setBackdropRef,\n onClick: handleBackdropClick\n });\n backdropElement = renderTransition(backdropTransition, runBackdropTransition, {\n in: !!show,\n appear: true,\n mountOnEnter: true,\n unmountOnExit: true,\n children: backdropElement\n });\n }\n return /*#__PURE__*/_jsx(_Fragment, {\n children: /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/_jsxs(_Fragment, {\n children: [backdrop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AAM;IACNE,SAAS;IACTD,QAAQ,EAAE4B,YAAY;IACtB1B,OAAO;IACPC,UAAU;IACVC,SAAS;IACTzB,QAAQ,EAAEhB;EACZ,CAAC,CAAC;EACF,IAAI2E,eAAe,GAAG,IAAI;EAC1B,IAAI1E,QAAQ,EAAE;IACZ0E,eAAe,GAAG9C,cAAc,CAAC;MAC/BrB,GAAG,EAAET,KAAK,CAACU,cAAc;MACzBmE,OAAO,EAAEf;IACX,CAAC,CAAC;IACFc,eAAe,GAAG5F,gBAAgB,CAACuC,kBAAkB,EAAEC,qBAAqB,EAAE;MAC5EmD,EAAE,EAAE,CAAC,CAAC9D,IAAI;MACV6D,MAAM,EAAE,IAAI;MACZD,YAAY,EAAE,IAAI;MAClBD,aAAa,EAAE,IAAI;MACnBvD,QAAQ,EAAE2D;IACZ,CAAC,CAAC;EACJ;EACA,OAAO,aAAazF,IAAI,CAACE,SAAS,EAAE;IAClC4B,QAAQ,EAAE,aAAazC,QAAQ,CAACsG,YAAY,EAAE,aAAavF,KAAK,CAACF,SAAS,EAAE;MAC1E4B,QAAQ,EAAE,CAAC2D,eAAe,EAAE3E,MAAM;IACpC,CAAC,CAAC,EAAEgC,SAAS;EACf,CAAC,CAAC;AACJ,CAAC,CAAC;AACFtB,KAAK,CAACoE,WAAW,GAAG,OAAO;AAC3B,eAAexH,MAAM,CAAC4C,MAAM,CAACQ,KAAK,EAAE;EAClCqE,OAAO,EAAEnG;AACX,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/1632c15cf26d0f0796dfa642eb90d57ad5ea892a7c8baa1861a860e8133ee1f8.json b/trivia-forge/node_modules/.cache/babel-loader/1632c15cf26d0f0796dfa642eb90d57ad5ea892a7c8baa1861a860e8133ee1f8.json deleted file mode 100644 index 9147a860..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/1632c15cf26d0f0796dfa642eb90d57ad5ea892a7c8baa1861a860e8133ee1f8.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"/**\n * Safe chained function\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n *\n * @param {function} functions to chain\n * @returns {function|null}\n */\nfunction createChainedFunction(...funcs) {\n return funcs.filter(f => f != null).reduce((acc, f) => {\n if (typeof f !== 'function') {\n throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n if (acc === null) return f;\n return function chainedFunction(...args) {\n // @ts-ignore\n acc.apply(this, args);\n // @ts-ignore\n f.apply(this, args);\n };\n }, null);\n}\nexport default createChainedFunction;","map":{"version":3,"names":["createChainedFunction","funcs","filter","f","reduce","acc","Error","chainedFunction","args","apply"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/createChainedFunction.js"],"sourcesContent":["/**\n * Safe chained function\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n *\n * @param {function} functions to chain\n * @returns {function|null}\n */\nfunction createChainedFunction(...funcs) {\n return funcs.filter(f => f != null).reduce((acc, f) => {\n if (typeof f !== 'function') {\n throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');\n }\n if (acc === null) return f;\n return function chainedFunction(...args) {\n // @ts-ignore\n acc.apply(this, args);\n // @ts-ignore\n f.apply(this, args);\n };\n }, null);\n}\nexport default createChainedFunction;"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,qBAAqBA,CAAC,GAAGC,KAAK,EAAE;EACvC,OAAOA,KAAK,CAACC,MAAM,CAACC,CAAC,IAAIA,CAAC,IAAI,IAAI,CAAC,CAACC,MAAM,CAAC,CAACC,GAAG,EAAEF,CAAC,KAAK;IACrD,IAAI,OAAOA,CAAC,KAAK,UAAU,EAAE;MAC3B,MAAM,IAAIG,KAAK,CAAC,yEAAyE,CAAC;IAC5F;IACA,IAAID,GAAG,KAAK,IAAI,EAAE,OAAOF,CAAC;IAC1B,OAAO,SAASI,eAAeA,CAAC,GAAGC,IAAI,EAAE;MACvC;MACAH,GAAG,CAACI,KAAK,CAAC,IAAI,EAAED,IAAI,CAAC;MACrB;MACAL,CAAC,CAACM,KAAK,CAAC,IAAI,EAAED,IAAI,CAAC;IACrB,CAAC;EACH,CAAC,EAAE,IAAI,CAAC;AACV;AACA,eAAeR,qBAAqB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/165cee9bc4362f4cc944ff5dd4ff5013b74ce4a6cb11dca0a49ff1d7a986d9ff.json b/trivia-forge/node_modules/.cache/babel-loader/165cee9bc4362f4cc944ff5dd4ff5013b74ce4a6cb11dca0a49ff1d7a986d9ff.json deleted file mode 100644 index 5dd011a2..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/165cee9bc4362f4cc944ff5dd4ff5013b74ce4a6cb11dca0a49ff1d7a986d9ff.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\";\nimport React, { useState } from \"react\";\nimport { jsxDEV as _jsxDEV, Fragment as _Fragment } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n return /*#__PURE__*/_jsxDEV(_Fragment, {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaQuestion\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaQuestion\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 19,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 13\n }, this)]\n }, void 0, true);\n}\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","jsxDEV","_jsxDEV","Fragment","_Fragment","TriviaGenPage","children","fileName","_jsxFileName","lineNumber","columnNumber","className","for","type","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\n\nfunction TriviaGenPage() {\n \n\n\n return (\n <>\n

\n Trivia Generator\n

\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n \n
\n\n \n );\n\n}\nexport default TriviaGenPage;"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA,EAAAC,QAAA,IAAAC,SAAA;AAExC,SAASC,aAAaA,CAAA,EAAG;EAIrB,oBACIH,OAAA,CAAAE,SAAA;IAAAE,QAAA,gBACIJ,OAAA;MAAAI,QAAA,EAAI;IAEJ;MAAAC,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAAI,CAAC,eACLR,OAAA;MAAAI,QAAA,gBACIJ,OAAA;QAAKS,SAAS,EAAC,YAAY;QAAAL,QAAA,gBACvBJ,OAAA;UAAOU,GAAG,EAAC,aAAa;UAAAN,QAAA,EAAC;QAAmB;UAAAC,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAO,CAAC,eACpDR,OAAA;UAAOW,IAAI,EAAC,MAAM;UAACF,SAAS,EAAC,cAAc;UAACG,EAAE,EAAC,aAAa;UAACC,WAAW,EAAC;QAAc;UAAAR,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAE,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OACzF,CAAC,eACNR,OAAA;QAAKS,SAAS,EAAC,YAAY;QAAAL,QAAA,gBACvBJ,OAAA;UAAOU,GAAG,EAAC,gBAAgB;UAAAN,QAAA,EAAC;QAAW;UAAAC,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAO,CAAC,eAC/CR,OAAA;UAAOW,IAAI,EAAC,MAAM;UAACF,SAAS,EAAC,cAAc;UAACG,EAAE,EAAC,gBAAgB;UAACC,WAAW,EAAC;QAAc;UAAAR,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAE,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAC5F,CAAC,eACNR,OAAA;QAAKS,SAAS,EAAC,YAAY;QAAAL,QAAA,gBACvBJ,OAAA;UAAOU,GAAG,EAAC,cAAc;UAAAN,QAAA,EAAC;QAAW;UAAAC,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAO,CAAC,eAC7CR,OAAA;UAAOW,IAAI,EAAC,MAAM;UAACF,SAAS,EAAC,cAAc;UAACG,EAAE,EAAC,cAAc;UAACC,WAAW,EAAC;QAAc;UAAAR,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAE,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAC1F,CAAC,eACNR,OAAA;QAAQW,IAAI,EAAC,QAAQ;QAACF,SAAS,EAAC,iBAAiB;QAAAL,QAAA,EAAC;MAAM;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAC/D,CAAC;EAAA,eAET,CAAC;AAGX;AAACM,EAAA,GA5BQX,aAAa;AA6BtB,eAAeA,aAAa;AAAC,IAAAW,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/169702f0891ca7e83f1b09ccda7b2405cf0020320bcf4144c6f2cbe562b8f8c1.json b/trivia-forge/node_modules/.cache/babel-loader/169702f0891ca7e83f1b09ccda7b2405cf0020320bcf4144c6f2cbe562b8f8c1.json deleted file mode 100644 index a89c2959..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/169702f0891ca7e83f1b09ccda7b2405cf0020320bcf4144c6f2cbe562b8f8c1.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import { createContext, useContext } from 'react';\nimport canUseDOM from 'dom-helpers/canUseDOM';\nconst Context = /*#__PURE__*/createContext(canUseDOM ? window : undefined);\nexport const WindowProvider = Context.Provider;\n\n/**\n * The document \"window\" placed in React context. Helpful for determining\n * SSR context, or when rendering into an iframe.\n *\n * @returns the current window\n */\nexport default function useWindow() {\n return useContext(Context);\n}","map":{"version":3,"names":["createContext","useContext","canUseDOM","Context","window","undefined","WindowProvider","Provider","useWindow"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/ui/esm/useWindow.js"],"sourcesContent":["import { createContext, useContext } from 'react';\nimport canUseDOM from 'dom-helpers/canUseDOM';\nconst Context = /*#__PURE__*/createContext(canUseDOM ? window : undefined);\nexport const WindowProvider = Context.Provider;\n\n/**\n * The document \"window\" placed in React context. Helpful for determining\n * SSR context, or when rendering into an iframe.\n *\n * @returns the current window\n */\nexport default function useWindow() {\n return useContext(Context);\n}"],"mappings":"AAAA,SAASA,aAAa,EAAEC,UAAU,QAAQ,OAAO;AACjD,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,MAAMC,OAAO,GAAG,aAAaH,aAAa,CAACE,SAAS,GAAGE,MAAM,GAAGC,SAAS,CAAC;AAC1E,OAAO,MAAMC,cAAc,GAAGH,OAAO,CAACI,QAAQ;;AAE9C;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,SAASA,CAAA,EAAG;EAClC,OAAOP,UAAU,CAACE,OAAO,CAAC;AAC5B","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/16aec405736ee9b51d903548ed8e2d108a009a2fe7a2b2ce53acf2843e37ba9b.json b/trivia-forge/node_modules/.cache/babel-loader/16aec405736ee9b51d903548ed8e2d108a009a2fe7a2b2ce53acf2843e37ba9b.json deleted file mode 100644 index 24d142b9..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/16aec405736ee9b51d903548ed8e2d108a009a2fe7a2b2ce53acf2843e37ba9b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;\nexport default function isTransform(value) {\n return !!(value && supportedTransforms.test(value));\n}","map":{"version":3,"names":["supportedTransforms","isTransform","value","test"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/dom-helpers/esm/isTransform.js"],"sourcesContent":["var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;\nexport default function isTransform(value) {\n return !!(value && supportedTransforms.test(value));\n}"],"mappings":"AAAA,IAAIA,mBAAmB,GAAG,6EAA6E;AACvG,eAAe,SAASC,WAAWA,CAACC,KAAK,EAAE;EACzC,OAAO,CAAC,EAAEA,KAAK,IAAIF,mBAAmB,CAACG,IAAI,CAACD,KAAK,CAAC,CAAC;AACrD","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/16bff7ff0bdfef1d2aa25ab967ca49ae5dc67e0b322fb761a11eb2c1893dddc6.json b/trivia-forge/node_modules/.cache/babel-loader/16bff7ff0bdfef1d2aa25ab967ca49ae5dc67e0b322fb761a11eb2c1893dddc6.json deleted file mode 100644 index bc68cc59..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/16bff7ff0bdfef1d2aa25ab967ca49ae5dc67e0b322fb761a11eb2c1893dddc6.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","map":{"version":3,"names":["getVariation","variationPlacements","basePlacements","placements","allPlacements","detectOverflow","getBasePlacement","computeAutoPlacement","state","options","_options","placement","boundary","rootBoundary","padding","flipVariations","_options$allowedAutoP","allowedAutoPlacements","variation","filter","allowedPlacements","indexOf","length","overflows","reduce","acc","Object","keys","sort","a","b"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js"],"sourcesContent":["import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}"],"mappings":"AAAA,OAAOA,YAAY,MAAM,mBAAmB;AAC5C,SAASC,mBAAmB,EAAEC,cAAc,EAAEC,UAAU,IAAIC,aAAa,QAAQ,aAAa;AAC9F,OAAOC,cAAc,MAAM,qBAAqB;AAChD,OAAOC,gBAAgB,MAAM,uBAAuB;AACpD,eAAe,SAASC,oBAAoBA,CAACC,KAAK,EAAEC,OAAO,EAAE;EAC3D,IAAIA,OAAO,KAAK,KAAK,CAAC,EAAE;IACtBA,OAAO,GAAG,CAAC,CAAC;EACd;EAEA,IAAIC,QAAQ,GAAGD,OAAO;IAClBE,SAAS,GAAGD,QAAQ,CAACC,SAAS;IAC9BC,QAAQ,GAAGF,QAAQ,CAACE,QAAQ;IAC5BC,YAAY,GAAGH,QAAQ,CAACG,YAAY;IACpCC,OAAO,GAAGJ,QAAQ,CAACI,OAAO;IAC1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reList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/16cc60056c9866e4678b0fc7d3b51bc3f1ce3b91885e41bef0c365383c2f8e68.json b/trivia-forge/node_modules/.cache/babel-loader/16cc60056c9866e4678b0fc7d3b51bc3f1ce3b91885e41bef0c365383c2f8e68.json deleted file mode 100644 index cb2534cd..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/16cc60056c9866e4678b0fc7d3b51bc3f1ce3b91885e41bef0c365383c2f8e68.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n value: numberOfQuestions,\n onChange: e => setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10)))),\n min: \"1\",\n max: \"10\",\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Number of Questions\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaCategory\",\n children: \"Category:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n value: category,\n onChange: e => setCategory(e.target),\n className: \"form-control\",\n id: \"triviaCategory\",\n placeholder: \"Category\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"hg16lLzJerCd9XnW4Ja5h3Su2Cs=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","jsxDEV","_jsxDEV","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","console","log","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","value","onChange","e","Math","min","max","parseInt","target","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10))))}\n min=\"1\"\n max=\"10\"\n className=\"form-control\" \n id=\"triviaTitle\" \n placeholder=\"Number of Questions\" \n />\n
\n
\n \n setCategory(e.target)}\n className=\"form-control\" \n id=\"triviaCategory\" \n placeholder=\"Category\" \n />\n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAExC,SAASC,aAAaA,CAAA,EAAG;EAAAC,EAAA;EACrB,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGN,QAAQ,CAAC,CAAC,CAAC;EAC7D,MAAM,CAACO,QAAQ,EAAEC,WAAW,CAAC,GAAGR,QAAQ,CAAC,EAAE,CAAC;EAE5C,MAAMS,YAAY,GAAG,MAAOC,KAAK,IAA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AAA,GAAb9B,aAAa;AA6DtB,eAAeA,aAAa;AAAC,IAAA8B,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/16f609132c27d215491513d9b5dc4c7045ce22f837b32e1c8bfae3491967472f.json b/trivia-forge/node_modules/.cache/babel-loader/16f609132c27d215491513d9b5dc4c7045ce22f837b32e1c8bfae3491967472f.json deleted file mode 100644 index 0887446e..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/16f609132c27d215491513d9b5dc4c7045ce22f837b32e1c8bfae3491967472f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"export function toModifierMap(modifiers) {\n const result = {};\n if (!Array.isArray(modifiers)) {\n return modifiers || result;\n }\n\n // eslint-disable-next-line no-unused-expressions\n modifiers == null ? void 0 : modifiers.forEach(m => {\n result[m.name] = m;\n });\n return result;\n}\nexport function toModifierArray() {\n let map = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (Array.isArray(map)) return map;\n return Object.keys(map).map(k => {\n map[k].name = k;\n return map[k];\n });\n}\nexport default function mergeOptionsWithPopperConfig(_ref) {\n let {\n enabled,\n enableEvents,\n placement,\n flip,\n offset,\n fixed,\n containerPadding,\n arrowElement,\n popperConfig = {}\n } = _ref;\n var _modifiers$eventListe, _modifiers$preventOve, _modifiers$preventOve2, _modifiers$offset, _modifiers$arrow;\n const modifiers = toModifierMap(popperConfig.modifiers);\n return Object.assign({}, popperConfig, {\n placement,\n enabled,\n strategy: fixed ? 'fixed' : popperConfig.strategy,\n modifiers: toModifierArray(Object.assign({}, modifiers, {\n eventListeners: {\n enabled: enableEvents,\n options: (_modifiers$eventListe = modifiers.eventListeners) == null ? void 0 : _modifiers$eventListe.options\n },\n preventOverflow: Object.assign({}, modifiers.preventOverflow, {\n options: containerPadding ? Object.assign({\n padding: containerPadding\n }, (_modifiers$preventOve = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve.options) : (_modifiers$preventOve2 = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve2.options\n }),\n offset: {\n options: Object.assign({\n offset\n }, (_modifiers$offset = modifiers.offset) == null ? void 0 : _modifiers$offset.options)\n },\n arrow: Object.assign({}, modifiers.arrow, {\n enabled: !!arrowElement,\n options: Object.assign({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {\n element: arrowElement\n })\n }),\n flip: Object.assign({\n enabled: !!flip\n }, modifiers.flip)\n }))\n });\n}","map":{"version":3,"names":["toModifierMap","modifiers","result","Array","isArray","forEach","m","name","toModifierArray","map","arguments","length","undefined","Object","keys","k","mergeOptionsWithPopperConfig","_ref","enabled","enableEvents","placement","flip","offset","fixed","containerPadding","arrowElement","popperConfig","_modifiers$eventListe","_modifiers$preventOve","_modifiers$preventOve2","_modifiers$offset","_modifiers$arrow","assign","strategy","eventListeners","options","preventOverflow","padding","arrow","element"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/ui/esm/mergeOptionsWithPopperConfig.js"],"sourcesContent":["export function toModifierMap(modifiers) {\n const result = {};\n if (!Array.isArray(modifiers)) {\n return modifiers || result;\n }\n\n // eslint-disable-next-line no-unused-expressions\n modifiers == null ? void 0 : modifiers.forEach(m => {\n result[m.name] = m;\n });\n return result;\n}\nexport function toModifierArray(map = {}) {\n if (Array.isArray(map)) return map;\n return Object.keys(map).map(k => {\n map[k].name = k;\n return map[k];\n });\n}\nexport default function mergeOptionsWithPopperConfig({\n enabled,\n enableEvents,\n placement,\n flip,\n offset,\n fixed,\n containerPadding,\n arrowElement,\n popperConfig = {}\n}) {\n var _modifiers$eventListe, _modifiers$preventOve, _modifiers$preventOve2, _modifiers$offset, _modifiers$arrow;\n const modifiers = toModifierMap(popperConfig.modifiers);\n return Object.assign({}, popperConfig, {\n placement,\n enabled,\n strategy: fixed ? 'fixed' : popperConfig.strategy,\n modifiers: toModifierArray(Object.assign({}, modifiers, {\n eventListeners: {\n enabled: enableEvents,\n options: (_modifiers$eventListe = modifiers.eventListeners) == null ? void 0 : _modifiers$eventListe.options\n },\n preventOverflow: Object.assign({}, modifiers.preventOverflow, {\n options: containerPadding ? Object.assign({\n padding: containerPadding\n }, (_modifiers$preventOve = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve.options) : (_modifiers$preventOve2 = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve2.options\n }),\n offset: {\n options: Object.assign({\n offset\n }, (_modifiers$offset = modifiers.offset) == null ? void 0 : _modifiers$offset.options)\n },\n arrow: Object.assign({}, modifiers.arrow, {\n enabled: !!arrowElement,\n options: Object.assign({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {\n element: arrowElement\n })\n }),\n flip: Object.assign({\n enabled: !!flip\n }, modifiers.flip)\n }))\n });\n}"],"mappings":"AAAA,OAAO,SAASA,aAAaA,CAACC,SAAS,EAAE;EACvC,MAAMC,MAAM,GAAG,CAAC,CAAC;EACjB,IAAI,CAACC,KAAK,CAACC,OAAO,CAACH,SAAS,CAAC,EAAE;IAC7B,OAAOA,SAAS,IAAIC,MAAM;EAC5B;;EAEA;EACAD,SAAS,IAAI,IAAI,GAAG,KAAK,CAAC,GAAGA,SAAS,CAACI,OAAO,CAACC,CAAC,IAAI;IAClDJ,MAAM,CAACI,CAAC,CAACC,IAAI,CAAC,GAAGD,CAAC;EACpB,CAAC,CAAC;EACF,OAAOJ,MAAM;AACf;AACA,OAAO,SAASM,eAAeA,CAAA,EAAW;EAAA,IAAVC,GAAG,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACtC,IAAIP,KAAK,CAACC,OAAO,CAACK,GAAG,CAAC,EAAE,OAAOA,GAAG;EAClC,OAAOI,MAAM,CAACC,IAAI,CAACL,GAAG,CAAC,CAACA,GAAG,CAACM,CAAC,IAA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,SAAS,CAACmC,eAAe,KAAK,IAAI,GAAG,KAAK,CAAC,GAAGP,sBAAsB,CAACM;MAC5M,CAAC,CAAC;MACFb,MAAM,EAAE;QACNa,OAAO,EAAEtB,MAAM,CAACmB,MAAM,CAAC;UACrBV;QACF,CAAC,EAAE,CAACQ,iBAAiB,GAAG7B,SAAS,CAACqB,MAAM,KAAK,IAAI,GAAG,KAAK,CAAC,GAAGQ,iBAAiB,CAACK,OAAO;MACxF,CAAC;MACDG,KAAK,EAAEzB,MAAM,CAACmB,MAAM,CAAC,CAAC,CAAC,EAAE/B,SAAS,CAACqC,KAAK,EAAE;QACxCpB,OAAO,EAAE,CAAC,CAACO,YAAY;QACvBU,OAAO,EAAEtB,MAAM,CAACmB,MAAM,CAAC,CAAC,CAAC,EAAE,CAACD,gBAAgB,GAAG9B,SAAS,CAACqC,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAGP,gBAAgB,CAACI,OAAO,EAAE;UAC3GI,OAAO,EAAEd;QACX,CAAC;MACH,CAAC,CAAC;MACFJ,IAAI,EAAER,MAAM,CAACmB,MAAM,CAAC;QAClBd,OAAO,EAAE,CAAC,CAACG;MACb,CAAC,EAAEpB,SAAS,CAACoB,IAAI;IACnB,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/1707401e397f58e99ebe090d35463ce2e5a82a3bdfe29db6bf3c1f07547a40b6.json b/trivia-forge/node_modules/.cache/babel-loader/1707401e397f58e99ebe090d35463ce2e5a82a3bdfe29db6bf3c1f07547a40b6.json deleted file mode 100644 index 4a276cc6..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/1707401e397f58e99ebe090d35463ce2e5a82a3bdfe29db6bf3c1f07547a40b6.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import * as React from 'react';\nimport ReactDOM from 'react-dom';\nimport useCallbackRef from '@restart/hooks/useCallbackRef';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport { useState } from 'react';\nimport usePopper from './usePopper';\nimport useRootClose from './useRootClose';\nimport useWaitForDOMRef from './useWaitForDOMRef';\nimport mergeOptionsWithPopperConfig from './mergeOptionsWithPopperConfig';\nimport { renderTransition } from './ImperativeTransition';\n/**\n * Built on top of `Popper.js`, the overlay component is\n * great for custom tooltip overlays.\n */\nconst Overlay = /*#__PURE__*/React.forwardRef((props, outerRef) => {\n const {\n flip,\n offset,\n placement,\n containerPadding,\n popperConfig = {},\n transition: Transition,\n runTransition\n } = props;\n const [rootElement, attachRef] = useCallbackRef();\n const [arrowElement, attachArrowRef] = useCallbackRef();\n const mergedRef = useMergedRefs(attachRef, outerRef);\n const container = useWaitForDOMRef(props.container);\n const target = useWaitForDOMRef(props.target);\n const [exited, setExited] = useState(!props.show);\n const popper = usePopper(target, rootElement, mergeOptionsWithPopperConfig({\n placement,\n enableEvents: !!props.show,\n containerPadding: containerPadding || 5,\n flip,\n offset,\n arrowElement,\n popperConfig\n }));\n\n // TODO: I think this needs to be in an effect\n if (props.show && exited) {\n setExited(false);\n }\n const handleHidden = function () {\n setExited(true);\n if (props.onExited) {\n props.onExited(...arguments);\n }\n };\n\n // Don't un-render the overlay while it's transitioning out.\n const mountOverlay = props.show || !exited;\n useRootClose(rootElement, props.onHide, {\n disabled: !props.rootClose || props.rootCloseDisabled,\n clickTrigger: props.rootCloseEvent\n });\n if (!mountOverlay) {\n // Don't bother showing anything if we don't have to.\n return null;\n }\n const {\n onExit,\n onExiting,\n onEnter,\n onEntering,\n onEntered\n } = props;\n let child = props.children(Object.assign({}, popper.attributes.popper, {\n style: popper.styles.popper,\n ref: mergedRef\n }), {\n popper,\n placement,\n show: !!props.show,\n arrowProps: Object.assign({}, popper.attributes.arrow, {\n style: popper.styles.arrow,\n ref: attachArrowRef\n })\n });\n child = renderTransition(Transition, runTransition, {\n in: !!props.show,\n appear: true,\n mountOnEnter: true,\n unmountOnExit: true,\n children: child,\n onExit,\n onExiting,\n onExited: handleHidden,\n onEnter,\n onEntering,\n onEntered\n });\n return container ? /*#__PURE__*/ReactDOM.createPortal(child, container) : null;\n});\nOverlay.displayName = 'Overlay';\nexport default Overlay;","map":{"version":3,"names":["React","ReactDOM","useCallbackRef","useMergedRefs","useState","usePopper","useRootClose","useWaitForDOMRef","mergeOptionsWithPopperConfig","renderTransition","Overlay","forwardRef","props","outerRef","flip","offset","placement","containerPadding","popperConfig","transition","Transition","runTransition","rootElement","attachRef","arrowElement","attachArrowRef","mergedRef","container","target","exited","setExited","show","popper","enableEvents","handleHidden","onExited","arguments","mountOverlay","onHide","disabled","rootClose","rootCloseDisabled","clickTrigger","rootCloseEvent","onExit","onExiting","onEnter","onEntering","onEntered","child","children","Object","assign","attributes","style","styles","ref","arrowProps","arrow","in","appear","mountOnEnter","unmountOnExit","createPortal","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/ui/esm/Overlay.js"],"sourcesContent":["import * as React from 'react';\nimport ReactDOM from 'react-dom';\nimport useCallbackRef from '@restart/hooks/useCallbackRef';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport { useState } from 'react';\nimport usePopper from './usePopper';\nimport useRootClose from './useRootClose';\nimport useWaitForDOMRef from './useWaitForDOMRef';\nimport mergeOptionsWithPopperConfig from './mergeOptionsWithPopperConfig';\nimport { renderTransition } from './ImperativeTransition';\n/**\n * Built on top of `Popper.js`, the overlay component is\n * great for custom tooltip overlays.\n */\nconst Overlay = /*#__PURE__*/React.forwardRef((props, outerRef) => {\n const {\n flip,\n offset,\n placement,\n containerPadding,\n popperConfig = {},\n transition: Transition,\n runTransition\n } = props;\n const [rootElement, attachRef] = useCallbackRef();\n const [arrowElement, attachArrowRef] = useCallbackRef();\n const mergedRef = useMergedRefs(attachRef, outerRef);\n const container = useWaitForDOMRef(props.container);\n const target = useWaitForDOMRef(props.target);\n const [exited, setExited] = useState(!props.show);\n const popper = usePopper(target, rootElement, mergeOptionsWithPopperConfig({\n placement,\n enableEvents: !!props.show,\n containerPadding: containerPadding || 5,\n flip,\n offset,\n arrowElement,\n popperConfig\n }));\n\n // TODO: I think this needs to be in an effect\n if (props.show && exited) {\n setExited(false);\n }\n const handleHidden = (...args) => {\n setExited(true);\n if (props.onExited) {\n props.onExited(...args);\n }\n };\n\n // Don't un-render the overlay while it's transitioning out.\n const mountOverlay = props.show || !exited;\n useRootClose(rootElement, props.onHide, {\n disabled: !props.rootClose || props.rootCloseDisabled,\n clickTrigger: props.rootCloseEvent\n });\n if (!mountOverlay) {\n // Don't bother showing anything if we don't have to.\n return null;\n }\n const {\n onExit,\n onExiting,\n onEnter,\n onEntering,\n onEntered\n } = props;\n let child = props.children(Object.assign({}, popper.attributes.popper, {\n style: popper.styles.popper,\n ref: mergedRef\n }), {\n popper,\n placement,\n show: !!props.show,\n arrowProps: Object.assign({}, popper.attributes.arrow, {\n style: popper.styles.arrow,\n ref: attachArrowRef\n })\n });\n child = renderTransition(Transition, runTransition, {\n in: !!props.show,\n appear: true,\n mountOnEnter: true,\n unmountOnExit: true,\n children: child,\n onExit,\n onExiting,\n onExited: handleHidden,\n onEnter,\n onEntering,\n onEntered\n });\n return container ? /*#__PURE__*/ReactDOM.createPortal(child, container) : null;\n});\nOverlay.displayName = 'Overlay';\nexport default Overlay;"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,QAAQ,MAAM,WAAW;AAChC,OAAOC,cAAc,MAAM,+BAA+B;AAC1D,OAAOC,aAAa,MAAM,8BAA8B;AACxD,SAASC,QAAQ,QAAQ,OAAO;AAChC,OAAOC,SAAS,MAAM,aAAa;AACnC,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,OAAOC,4BAA4B,MAAM,gCAAgC;AACzE,SAASC,gBAAgB,QAAQ,wBAAwB;AACzD;AACA;AACA;AACA;AACA,MAAMC,OAA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OAAOrB,SAAS,GAAG,aAAa1B,QAAQ,CAAC8D,YAAY,CAACd,KAAK,EAAEtB,SAAS,CAAC,GAAG,IAAI;AAChF,CAAC,CAAC;AACFjB,OAAO,CAACsD,WAAW,GAAG,SAAS;AAC/B,eAAetD,OAAO","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/1789fd5b780ba33da15547b6f080f2f4fbbec8d7e3630990617c3b933fe6073f.json b/trivia-forge/node_modules/.cache/babel-loader/1789fd5b780ba33da15547b6f080f2f4fbbec8d7e3630990617c3b933fe6073f.json deleted file mode 100644 index b16dbf0a..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/1789fd5b780ba33da15547b6f080f2f4fbbec8d7e3630990617c3b933fe6073f.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","map":{"version":3,"names":["getBasePlacement","top","left","right","placements","distanceAndSkiddingToXY","placement","rects","offset","basePlacement","invertDistance","indexOf","_ref","Object","assign","skidding","distance","x","y","_ref2","state","options","name","_options$offset","data","reduce","acc","_data$state$placement","modifiersData","popperOffsets","enabled","phase","requires","fn"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/modifiers/offset.js"],"sourcesContent":["import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\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AChCA,MAAM,GAAGe,eAAe,KAAK,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,GAAGA,eAAe;EAClE,IAAIC,IAAI,GAAGpB,UAAU,CAACqB,MAAM,CAAC,UAAUC,GAAG,EAAEpB,SAAS,EAAE;IACrDoB,GAAG,CAACpB,SAAS,CAAC,GAAGD,uBAAuB,CAACC,SAAS,EAAEc,KAAK,CAACb,KAAK,EAAEC,MAAM,CAAC;IACxE,OAAOkB,GAAG;EACZ,CAAC,EAAE,CAAC,CAAC,CAAC;EACN,IAAIC,qBAAqB,GAAGH,IAAI,CAACJ,KAAK,CAACd,SAAS,CAAC;IAC7CW,CAAC,GAAGU,qBAAqB,CAACV,CAAC;IAC3BC,CAAC,GAAGS,qBAAqB,CAACT,CAAC;EAE/B,IAAIE,KAAK,CAACQ,aAAa,CAACC,aAAa,IAAI,IAAI,EAAE;IAC7CT,KAAK,CAACQ,aAAa,CAACC,aAAa,CAACZ,CAAC,IAAIA,CAAC;IACxCG,KAAK,CAACQ,aAAa,CAACC,aAAa,CAACX,CAAC,IAAIA,CAAC;EAC1C;EAEAE,KAAK,CAACQ,aAAa,CAACN,IAAI,CAAC,GAAGE,IAAI;AAClC,CAAC,CAAC;;AAGF,eAAe;EACbF,IAAI,EAAE,QAAQ;EACdQ,OAAO,EAAE,IAAI;EACbC,KAAK,EAAE,MAAM;EACbC,QAAQ,EAAE,CAAC,eAAe,CAAC;EAC3BC,EAAE,EAAEzB;AACN,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/17be0c4f7690151a65e6addf34363b8bef974f669a54e60a7216f286dde7accf.json b/trivia-forge/node_modules/.cache/babel-loader/17be0c4f7690151a65e6addf34363b8bef974f669a54e60a7216f286dde7accf.json deleted file mode 100644 index c0a5525d..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/17be0c4f7690151a65e6addf34363b8bef974f669a54e60a7216f286dde7accf.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\n\n// TODO: check\n\nconst context = /*#__PURE__*/React.createContext(null);\ncontext.displayName = 'NavbarContext';\nexport default context;","map":{"version":3,"names":["React","context","createContext","displayName"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/react-bootstrap/esm/NavbarContext.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\n\n// TODO: check\n\nconst context = /*#__PURE__*/React.createContext(null);\ncontext.displayName = 'NavbarContext';\nexport default context;"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;;AAE9B;;AAEA,MAAMC,OAAO,GAAG,aAAaD,KAAK,CAACE,aAAa,CAAC,IAAI,CAAC;AACtDD,OAAO,CAACE,WAAW,GAAG,eAAe;AACrC,eAAeF,OAAO","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/17e3be7957a360e57d3334658e6f5c71c562f5f8f739aaf279a6403364c128ef.json b/trivia-forge/node_modules/.cache/babel-loader/17e3be7957a360e57d3334658e6f5c71c562f5f8f739aaf279a6403364c128ef.json deleted file mode 100644 index 3353c8de..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/17e3be7957a360e57d3334658e6f5c71c562f5f8f739aaf279a6403364c128ef.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","map":{"version":3,"names":["getUAString","isLayoutViewport","test"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js"],"sourcesContent":["import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}"],"mappings":"AAAA,OAAOA,WAAW,MAAM,uBAAuB;AAC/C,eAAe,SAASC,gBAAgBA,CAAA,EAAG;EACzC,OAAO,CAAC,gCAAgC,CAACC,IAAI,CAACF,WAAW,CAAC,CAAC,CAAC;AAC9D","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/1864d1f9f4e0eab1d08bf9284bd8a3b0b460844a897e5832423f2b1c7d0fe037.json b/trivia-forge/node_modules/.cache/babel-loader/1864d1f9f4e0eab1d08bf9284bd8a3b0b460844a897e5832423f2b1c7d0fe037.json deleted file mode 100644 index 133a139f..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/1864d1f9f4e0eab1d08bf9284bd8a3b0b460844a897e5832423f2b1c7d0fe037.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import computeOffsets from \"../utils/computeOffsets.js\";\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","map":{"version":3,"names":["computeOffsets","popperOffsets","_ref","state","name","modifiersData","reference","rects","element","popper","strategy","placement","enabled","phase","fn","data"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"],"sourcesContent":["import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};"],"mappings":"AAAA,OAAOA,cAAc,MAAM,4BAA4B;AAEvD,SAASC,aAAaA,CAACC,IAAI,EAAE;EAC3B,IAAIC,KAAK,GAAGD,IAAI,CAACC,KAAK;IAClBC,IAAI,GAAGF,IAAI,CAACE,IAAI;EACpB;EACA;EACA;EACA;EACAD,KAAK,CAACE,aAAa,CAACD,IAAI,CAAC,GAAGJ,cAAc,CAAC;IACzCM,SAAS,EAAEH,KAAK,CAACI,KAAK,CAACD,SAAS;IAChCE,OAAO,EAAEL,KAAK,CAACI,KAAK,CAACE,MAAM;IAC3BC,QAAQ,EAAE,UAAU;IACpBC,SAAS,EAAER,KAAK,CAACQ;EACnB,CAAC,CAAC;AACJ,CAAC,CAAC;;AAGF,eAAe;EACbP,IAAI,EAAE,eAAe;EACrBQ,OAAO,EAAE,IAAI;EACbC,KAAK,EAAE,MAAM;EACbC,EAAE,EAAEb,aAAa;EACjBc,IAAI,EAAE,CAAC;AACT,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/1877053a994df510c774a8b47c51fd8959d344c84d6402b6557f76b96fb571e8.json b/trivia-forge/node_modules/.cache/babel-loader/1877053a994df510c774a8b47c51fd8959d344c84d6402b6557f76b96fb571e8.json deleted file mode 100644 index 946e9547..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/1877053a994df510c774a8b47c51fd8959d344c84d6402b6557f76b96fb571e8.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nfunction _toPropertyKey(arg) {\n var key = _toPrimitive(arg, \"string\");\n return typeof key === \"symbol\" ? key : String(key);\n}\nfunction _toPrimitive(input, hint) {\n if (typeof input !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (typeof res !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\nimport { useCallback, useRef, useState } from 'react';\nimport * as Utils from './utils';\nfunction useUncontrolledProp(propValue, defaultValue, handler) {\n var wasPropRef = useRef(propValue !== undefined);\n var _useState = useState(defaultValue),\n stateValue = _useState[0],\n setState = _useState[1];\n var isProp = propValue !== undefined;\n var wasProp = wasPropRef.current;\n wasPropRef.current = isProp;\n /**\n * If a prop switches from controlled to Uncontrolled\n * reset its value to the defaultValue\n */\n\n if (!isProp && wasProp && stateValue !== defaultValue) {\n setState(defaultValue);\n }\n return [isProp ? propValue : stateValue, useCallback(function (value) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n if (handler) handler.apply(void 0, [value].concat(args));\n setState(value);\n }, [handler])];\n}\nexport { useUncontrolledProp };\nexport default function useUncontrolled(props, config) {\n return Object.keys(config).reduce(function (result, fieldName) {\n var _extends2;\n var _ref = result,\n defaultValue = _ref[Utils.defaultKey(fieldName)],\n propsValue = _ref[fieldName],\n rest = _objectWithoutPropertiesLoose(_ref, [Utils.defaultKey(fieldName), fieldName].map(_toPropertyKey));\n var handlerName = config[fieldName];\n var _useUncontrolledProp = useUncontrolledProp(propsValue, defaultValue, props[handlerName]),\n value = _useUncontrolledProp[0],\n handler = _useUncontrolledProp[1];\n return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));\n }, props);\n}","map":{"version":3,"names":["_extends","_objectWithoutPropertiesLoose","_toPropertyKey","arg","key","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","useCallback","useRef","useState","Utils","useUncontrolledProp","propValue","defaultValue","handler","wasPropRef","_useState","stateValue","setState","isProp","wasProp","current","value","_len","arguments","length","args","Array","_key","apply","concat","useUncontrolled","props","config","Object","keys","reduce","result","fieldName","_extends2","_ref","defaultKey","propsValue","rest","map","handlerName","_useUncontrolledProp"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/uncontrollable/lib/esm/hook.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\n\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\n\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\nimport { useCallback, useRef, useState } from 'react';\nimport * as Utils from './utils';\n\nfunction useUncontrolledProp(propValue, defaultValue, handler) {\n var wasPropRef = useRef(propValue !== undefined);\n\n var _useState = useState(defaultValue),\n stateValue = _useState[0],\n setState = _useState[1];\n\n var isProp = propValue !== undefined;\n var wasProp = wasPropRef.current;\n wasPropRef.current = isProp;\n /**\n * If a prop switches from controlled to Uncontrolled\n * reset its value to the defaultValue\n */\n\n if (!isProp && wasProp && stateValue !== defaultValue) {\n setState(defaultValue);\n }\n\n return [isProp ? propValue : stateValue, useCallback(function (value) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n if (handler) handler.apply(void 0, [value].concat(args));\n setState(value);\n }, [handler])];\n}\n\nexport { useUncontrolledProp };\nexport default function useUncontrolled(props, config) {\n return Object.keys(config).reduce(function (result, fieldName) {\n var _extends2;\n\n var _ref = result,\n defaultValue = _ref[Utils.defaultKey(fieldName)],\n propsValue = _ref[fieldName],\n rest = _objectWithoutPropertiesLoose(_ref, [Utils.defaultKey(fieldName), fieldName].map(_toPropertyKey));\n\n var handlerName = config[fieldName];\n\n var _useUncontrolledProp = useUncontrolledProp(propsValue, defaultValue, props[handlerName]),\n value = _useUncontrolledProp[0],\n handler = _useUncontrolledProp[1];\n\n return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));\n }, props);\n}"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,6BAA6B,MAAM,yDAAyD;AAEnG,SAASC,cAAcA,CAACC,GAAG,EAAE;EAAE,IAAIC,GAAG,GAAGC,YAAY,CAACF,GAAG,EAAE,QAAQ,CAAC;EAAE,OAAO,OAAOC,GAAG,KAAK,QAAQ,GAAGA,GAAG,GAAGE,MAAM,CAACF,GAAG,CAAC;AAAE;AAE1H,SAASC,YAAYA,CAACE,KAAK,EAAEC,IAAI,EAAE;EAAE,IAAI,OAAOD,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,IAAI,EAAE,OAAOA,KAAK;EAAE,IAAIE,IAAI,GAAGF,KAAK,CAACG,MAAM,CAACC,WAAW,CAAC;EAAE,IAAIF,IAAI,KAAKG,SAAS,EAAE;IAAE,IAAIC,GAAG,GAAGJ,IAAI,CAACK,IAAI,CAACP,KAAK,EAAEC,IAAI,IAAI,SAAS,CAAC;IAAE,IAAI,OAAOK,GAAG,KAAK,QAAQ,EAAE,OAAOA,GAAG;IAAE,MAAM,IAAIE,SAAS,CAAC,8CAA8C,CAAC;EAAE;EAAE,OAAO,CAACP,IAAI,KAAK,QAAQ,GAAGF,MAAM,GAAGU,MAAM,EAAET,KAAK,CAAC;AAAE;AAExX,SAASU,WAAW,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACrD,OAAO,KAAKC,KAA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MAAM,EAAE;EACrD,OAAOC,MAAM,CAACC,IAAI,CAACF,MAAM,CAAC,CAACG,MAAM,CAAC,UAAUC,MAAM,EAAEC,SAAS,EAAE;IAC7D,IAAIC,SAAS;IAEb,IAAIC,IAAI,GAAGH,MAAM;MACbxB,YAAY,GAAG2B,IAAI,CAAC9B,KAAK,CAAC+B,UAAU,CAACH,SAAS,CAAC,CAAC;MAChDI,UAAU,GAAGF,IAAI,CAACF,SAAS,CAAC;MAC5BK,IAAI,GAAGpD,6BAA6B,CAACiD,IAAI,EAAE,CAAC9B,KAAK,CAAC+B,UAAU,CAACH,SAAS,CAAC,EAAEA,SAAS,CAAC,CAACM,GAAG,CAACpD,cAAc,CAAC,CAAC;IAE5G,IAAIqD,WAAW,GAAGZ,MAAM,CAACK,SAAS,CAAC;IAEnC,IAAIQ,oBAAoB,GAAGnC,mBAAmB,CAAC+B,UAAU,EAAE7B,YAAY,EAAEmB,KAAK,CAACa,WAAW,CAAC,CAAC;MACxFvB,KAAK,GAAGwB,oBAAoB,CAAC,CAAC,CAAC;MAC/BhC,OAAO,GAAGgC,oBAAoB,CAAC,CAAC,CAAC;IAErC,OAAOxD,QAAQ,CAAC,CAAC,CAAC,EAAEqD,IAAI,GAAGJ,SAAS,GAAG,CAAC,CAAC,EAAEA,SAAS,CAACD,SAAS,CAAC,GAAGhB,KAAK,EAAEiB,SAAS,CAACM,WAAW,CAAC,GAAG/B,OAAO,EAAEyB,SAAS,CAAC,CAAC;EACxH,CAAC,EAAEP,KAAK,CAAC;AACX","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/19214c9c30af2500a7561aa4819fc69e86baa47c7f298c25075d17d39ee22c8d.json b/trivia-forge/node_modules/.cache/babel-loader/19214c9c30af2500a7561aa4819fc69e86baa47c7f298c25075d17d39ee22c8d.json deleted file mode 100644 index c6be4c9a..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/19214c9c30af2500a7561aa4819fc69e86baa47c7f298c25075d17d39ee22c8d.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"var _jsxFileName = \"/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js\",\n _s = $RefreshSig$();\nimport React, { useState } from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nfunction TriviaGenPage() {\n _s();\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n const handleSubmit = async event => {\n event.preventDefault();\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Trivia Generator\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaTitle\",\n children: \"Number of Questions:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"number\",\n value: numberOfQuestions,\n onChange: e => setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10)))),\n min: \"1\",\n max: \"10\",\n className: \"form-control\",\n id: \"triviaTitle\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaCategory\",\n children: \"Category:\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n value: category,\n className: \"form-control\",\n id: \"triviaCategory\",\n placeholder: \"Category\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"form-group\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n for: \"triviaAnswer\",\n children: \"placeholder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 21\n }, this), /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n className: \"form-control\",\n id: \"triviaAnswer\",\n placeholder: \"Place holder\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 21\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 17\n }, this), /*#__PURE__*/_jsxDEV(\"button\", {\n type: \"submit\",\n className: \"btn btn-primary\",\n children: \"Submit\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 17\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }, this);\n}\n_s(TriviaGenPage, \"hg16lLzJerCd9XnW4Ja5h3Su2Cs=\");\n_c = TriviaGenPage;\nexport default TriviaGenPage;\nvar _c;\n$RefreshReg$(_c, \"TriviaGenPage\");","map":{"version":3,"names":["React","useState","jsxDEV","_jsxDEV","TriviaGenPage","_s","numberOfQuestions","setNumberOfQuestions","category","setCategory","handleSubmit","event","preventDefault","console","log","children","fileName","_jsxFileName","lineNumber","columnNumber","onSubmit","className","for","type","value","onChange","e","Math","min","max","parseInt","target","id","placeholder","_c","$RefreshReg$"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/src/Pages/TriviaGenPage.js"],"sourcesContent":["import React, { useState } from \"react\";\n\nfunction TriviaGenPage() {\n const [numberOfQuestions, setNumberOfQuestions] = useState(1);\n const [category, setCategory] = useState('');\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n\n\n //insert chatgpt api call here\n\n console.log({\n numberOfQuestions,\n category\n });\n\n //insert api call logic here\n\n };\n\n\n return (\n
\n

\n Trivia Generator\n

\n
\n
\n \n setNumberOfQuestions(Math.min(10, Math.max(1, parseInt(e.target.value, 10))))}\n min=\"1\"\n max=\"10\"\n className=\"form-control\" \n id=\"triviaTitle\" \n placeholder=\"Place holder\" \n />\n
\n
\n \n \n
\n
\n \n \n
\n \n
\n\n
\n );\n\n}\nexport default TriviaGenPage;"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAExC,SAASC,aAAaA,CAAA,EAAG;EAAAC,EAAA;EACrB,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGN,QAAQ,CAAC,CAAC,CAAC;EAC7D,MAAM,CAACO,QAAQ,EAAEC,WAAW,CAAC,GAAGR,QAAQ,CAAC,EAAE,CAAC;EAE5C,MAAMS,YAAY,GAAG,MAAOC,KAAK,IAAK;IAClCA,KAAK,CAACC,cAAc,CAAC,CAAC;;IAGtB;;IAEAC,OAAO,CAACC,GAAG,CAAC;MACRR,iBAAiB;MACjBE;IACJ,CAAC,CAAC;;IAEF;EAEJ,CAAC;EAGD,oBACIL,OAAA;IAAAY,QAAA,gBACIZ,OAAA;MAAAY,QAAA,EAAI;IAEJ;MAAAC,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAAI,CAAC,eACLhB,OAAA;MAAMiB,QAAQ,EAAEV,YAAa;MAAAK,QAAA,gBACzBZ,OAAA;QAAKkB,SAAS,EAAC,YAA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QAAAN,QAAA,gBACvBZ,OAAA;UAAOmB,GAAG,EAAC,cAAc;UAAAP,QAAA,EAAC;QAAW;UAAAC,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAO,CAAC,eAC7ChB,OAAA;UAAOoB,IAAI,EAAC,MAAM;UAACF,SAAS,EAAC,cAAc;UAACW,EAAE,EAAC,cAAc;UAACC,WAAW,EAAC;QAAc;UAAAjB,QAAA,EAAAC,YAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,OAAE,CAAC;MAAA;QAAAH,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAC1F,CAAC,eACNhB,OAAA;QAAQoB,IAAI,EAAC,QAAQ;QAACF,SAAS,EAAC,iBAAiB;QAAAN,QAAA,EAAC;MAAM;QAAAC,QAAA,EAAAC,YAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA,OAAQ,CAAC;IAAA;MAAAH,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAC/D,CAAC;EAAA;IAAAH,QAAA,EAAAC,YAAA;IAAAC,UAAA;IAAAC,YAAA;EAAA,OAEN,CAAC;AAGd;AAACd,EAAA,CA5DQD,aAAa;AAAA8B,EAAA,GAAb9B,aAAa;AA6DtB,eAAeA,aAAa;AAAC,IAAA8B,EAAA;AAAAC,YAAA,CAAAD,EAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/1970b3143d8b42cfa5b86118123e4d8bac0d875643177394868e36d12d1ca11b.json b/trivia-forge/node_modules/.cache/babel-loader/1970b3143d8b42cfa5b86118123e4d8bac0d875643177394868e36d12d1ca11b.json deleted file mode 100644 index 4285b4af..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/1970b3143d8b42cfa5b86118123e4d8bac0d875643177394868e36d12d1ca11b.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"/* global __webpack_require__ */\nvar Refresh = require('react-refresh/runtime');\n\n/**\n * Extracts exports from a webpack module object.\n * @param {string} moduleId A Webpack module ID.\n * @returns {*} An exports object from the module.\n */\nfunction getModuleExports(moduleId) {\n if (typeof moduleId === 'undefined') {\n // `moduleId` is unavailable, which indicates that this module is not in the cache,\n // which means we won't be able to capture any exports,\n // and thus they cannot be refreshed safely.\n // These are likely runtime or dynamically generated modules.\n return {};\n }\n var maybeModule = __webpack_require__.c[moduleId];\n if (typeof maybeModule === 'undefined') {\n // `moduleId` is available but the module in cache is unavailable,\n // which indicates the module is somehow corrupted (e.g. broken Webpacak `module` globals).\n // We will warn the user (as this is likely a mistake) and assume they cannot be refreshed.\n console.warn('[React Refresh] Failed to get exports for module: ' + moduleId + '.');\n return {};\n }\n var exportsOrPromise = maybeModule.exports;\n if (typeof Promise !== 'undefined' && exportsOrPromise instanceof Promise) {\n return exportsOrPromise.then(function (exports) {\n return exports;\n });\n }\n return exportsOrPromise;\n}\n\n/**\n * Calculates the signature of a React refresh boundary.\n * If this signature changes, it's unsafe to accept the boundary.\n *\n * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/907d6af22ac6ebe58572be418e9253a90665ecbd/packages/metro/src/lib/polyfills/require.js#L795-L816).\n * @param {*} moduleExports A Webpack module exports object.\n * @returns {string[]} A React refresh boundary signature array.\n */\nfunction getReactRefreshBoundarySignature(moduleExports) {\n var signature = [];\n signature.push(Refresh.getFamilyByType(moduleExports));\n if (moduleExports == null || typeof moduleExports !== 'object') {\n // Exit if we can't iterate over exports.\n return signature;\n }\n for (var key in moduleExports) {\n if (key === '__esModule') {\n continue;\n }\n signature.push(key);\n signature.push(Refresh.getFamilyByType(moduleExports[key]));\n }\n return signature;\n}\n\n/**\n * Creates a data object to be retained across refreshes.\n * This object should not transtively reference previous exports,\n * which can form infinite chain of objects across refreshes, which can pressure RAM.\n *\n * @param {*} moduleExports A Webpack module exports object.\n * @returns {*} A React refresh boundary signature array.\n */\nfunction getWebpackHotData(moduleExports) {\n return {\n signature: getReactRefreshBoundarySignature(moduleExports),\n isReactRefreshBoundary: isReactRefreshBoundary(moduleExports)\n };\n}\n\n/**\n * Creates a helper that performs a delayed React refresh.\n * @returns {function(function(): void): void} A debounced React refresh function.\n */\nfunction createDebounceUpdate() {\n /**\n * A cached setTimeout handler.\n * @type {number | undefined}\n */\n var refreshTimeout;\n\n /**\n * Performs react refresh on a delay and clears the error overlay.\n * @param {function(): void} callback\n * @returns {void}\n */\n function enqueueUpdate(callback) {\n if (typeof refreshTimeout === 'undefined') {\n refreshTimeout = setTimeout(function () {\n refreshTimeout = undefined;\n Refresh.performReactRefresh();\n callback();\n }, 30);\n }\n }\n return enqueueUpdate;\n}\n\n/**\n * Checks if all exports are likely a React component.\n *\n * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/febdba2383113c88296c61e28e4ef6a7f4939fda/packages/metro/src/lib/polyfills/require.js#L748-L774).\n * @param {*} moduleExports A Webpack module exports object.\n * @returns {boolean} Whether the exports are React component like.\n */\nfunction isReactRefreshBoundary(moduleExports) {\n if (Refresh.isLikelyComponentType(moduleExports)) {\n return true;\n }\n if (moduleExports === undefined || moduleExports === null || typeof moduleExports !== 'object') {\n // Exit if we can't iterate over exports.\n return false;\n }\n var hasExports = false;\n var areAllExportsComponents = true;\n for (var key in moduleExports) {\n hasExports = true;\n\n // This is the ES Module indicator flag\n if (key === '__esModule') {\n continue;\n }\n\n // We can (and have to) safely execute getters here,\n // as Webpack manually assigns harmony exports to getters,\n // without any side-effects attached.\n // Ref: https://github.com/webpack/webpack/blob/b93048643fe74de2a6931755911da1212df55897/lib/MainTemplate.js#L281\n var exportValue = moduleExports[key];\n if (!Refresh.isLikelyComponentType(exportValue)) {\n areAllExportsComponents = false;\n }\n }\n return hasExports && areAllExportsComponents;\n}\n\n/**\n * Checks if exports are likely a React component and registers them.\n *\n * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/febdba2383113c88296c61e28e4ef6a7f4939fda/packages/metro/src/lib/polyfills/require.js#L818-L835).\n * @param {*} moduleExports A Webpack module exports object.\n * @param {string} moduleId A Webpack module ID.\n * @returns {void}\n */\nfunction registerExportsForReactRefresh(moduleExports, moduleId) {\n if (Refresh.isLikelyComponentType(moduleExports)) {\n // Register module.exports if it is likely a component\n Refresh.register(moduleExports, moduleId + ' %exports%');\n }\n if (moduleExports === undefined || moduleExports === null || typeof moduleExports !== 'object') {\n // Exit if we can't iterate over the exports.\n return;\n }\n for (var key in moduleExports) {\n // Skip registering the ES Module indicator\n if (key === '__esModule') {\n continue;\n }\n var exportValue = moduleExports[key];\n if (Refresh.isLikelyComponentType(exportValue)) {\n var typeID = moduleId + ' %exports% ' + key;\n Refresh.register(exportValue, typeID);\n }\n }\n}\n\n/**\n * Compares previous and next module objects to check for mutated boundaries.\n *\n * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/907d6af22ac6ebe58572be418e9253a90665ecbd/packages/metro/src/lib/polyfills/require.js#L776-L792).\n * @param {*} prevSignature The signature of the current Webpack module exports object.\n * @param {*} nextSignature The signature of the next Webpack module exports object.\n * @returns {boolean} Whether the React refresh boundary should be invalidated.\n */\nfunction shouldInvalidateReactRefreshBoundary(prevSignature, nextSignature) {\n if (prevSignature.length !== nextSignature.length) {\n return true;\n }\n for (var i = 0; i < nextSignature.length; i += 1) {\n if (prevSignature[i] !== nextSignature[i]) {\n return true;\n }\n }\n return false;\n}\nvar enqueueUpdate = createDebounceUpdate();\nfunction executeRuntime(moduleExports, moduleId, webpackHot, refreshOverlay, isTest) {\n registerExportsForReactRefresh(moduleExports, moduleId);\n if (webpackHot) {\n var isHotUpdate = !!webpackHot.data;\n var prevData;\n if (isHotUpdate) {\n prevData = webpackHot.data.prevData;\n }\n if (isReactRefreshBoundary(moduleExports)) {\n webpackHot.dispose(\n /**\n * A callback to performs a full refresh if React has unrecoverable errors,\n * and also caches the to-be-disposed module.\n * @param {*} data A hot module data object from Webpack HMR.\n * @returns {void}\n */\n function hotDisposeCallback(data) {\n // We have to mutate the data object to get data registered and cached\n data.prevData = getWebpackHotData(moduleExports);\n });\n webpackHot.accept(\n /**\n * An error handler to allow self-recovering behaviours.\n * @param {Error} error An error occurred during evaluation of a module.\n * @returns {void}\n */\n function hotErrorHandler(error) {\n if (typeof refreshOverlay !== 'undefined' && refreshOverlay) {\n refreshOverlay.handleRuntimeError(error);\n }\n if (typeof isTest !== 'undefined' && isTest) {\n if (window.onHotAcceptError) {\n window.onHotAcceptError(error.message);\n }\n }\n __webpack_require__.c[moduleId].hot.accept(hotErrorHandler);\n });\n if (isHotUpdate) {\n if (prevData && prevData.isReactRefreshBoundary && shouldInvalidateReactRefreshBoundary(prevData.signature, getReactRefreshBoundarySignature(moduleExports))) {\n webpackHot.invalidate();\n } else {\n enqueueUpdate(\n /**\n * A function to dismiss the error overlay after performing React refresh.\n * @returns {void}\n */\n function updateCallback() {\n if (typeof refreshOverlay !== 'undefined' && refreshOverlay) {\n refreshOverlay.clearRuntimeErrors();\n }\n });\n }\n }\n } else {\n if (isHotUpdate && typeof prevData !== 'undefined') {\n webpackHot.invalidate();\n }\n }\n }\n}\nmodule.exports = Object.freeze({\n enqueueUpdate: enqueueUpdate,\n executeRuntime: executeRuntime,\n getModuleExports: getModuleExports,\n isReactRefreshBoundary: isReactRefreshBoundary,\n registerExportsForReactRefresh: registerExportsForReactRefresh\n});","map":{"version":3,"names":["Refresh","require","getModuleExports","moduleId","maybeModule","__webpack_require__","c","console","warn","exportsOrPromise","exports","Promise","then","getReactRefreshBoundarySignature","moduleExports","signature","push","getFamilyByType","key","getWebpackHotData","isReactRefreshBoundary","createDebounceUpdate","refreshTimeout","enqueueUpdate","callback","setTimeout","undefined","performReactRefresh","isLikelyComponentType","hasExports","areAllExportsComponents","exportValue","registerExportsForReactRefresh","register","typeID","shouldInvalidateReactRefreshBoundary","prevSignature","nextSignature","length","i","executeRuntime","webpackHot","refreshOverlay","isTest","isHotUpdate","data","prevData","dispose","hotDisposeCallback","accept","hotErrorHandler","error","handleRuntimeError","window","onHotAcceptError","message","hot","invalidate","updateCallback","clearRuntimeErrors","module","Object","freeze"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js"],"sourcesContent":["/* global __webpack_require__ */\nvar Refresh = require('react-refresh/runtime');\n\n/**\n * Extracts exports from a webpack module object.\n * @param {string} moduleId A Webpack module ID.\n * @returns {*} An exports object from the module.\n */\nfunction getModuleExports(moduleId) {\n if (typeof moduleId === 'undefined') {\n // `moduleId` is unavailable, which indicates that this module is not in the cache,\n // which means we won't be able to capture any exports,\n // and thus they cannot be refreshed safely.\n // These are likely runtime or dynamically generated modules.\n return {};\n }\n\n var maybeModule = __webpack_require__.c[moduleId];\n if (typeof maybeModule === 'undefined') {\n // `moduleId` is available but the module in cache is unavailable,\n // which indicates the module is somehow corrupted (e.g. broken Webpacak `module` globals).\n // We will warn the user (as this is likely a mistake) and assume they cannot be refreshed.\n console.warn('[React Refresh] Failed to get exports for module: ' + moduleId + '.');\n return {};\n }\n\n var exportsOrPromise = maybeModule.exports;\n if (typeof Promise !== 'undefined' && exportsOrPromise instanceof Promise) {\n return exportsOrPromise.then(function (exports) {\n return exports;\n });\n }\n return exportsOrPromise;\n}\n\n/**\n * Calculates the signature of a React refresh boundary.\n * If this signature changes, it's unsafe to accept the boundary.\n *\n * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/907d6af22ac6ebe58572be418e9253a90665ecbd/packages/metro/src/lib/polyfills/require.js#L795-L816).\n * @param {*} moduleExports A Webpack module exports object.\n * @returns {string[]} A React refresh boundary signature array.\n */\nfunction getReactRefreshBoundarySignature(moduleExports) {\n var signature = [];\n signature.push(Refresh.getFamilyByType(moduleExports));\n\n if (moduleExports == null || typeof moduleExports !== 'object') {\n // Exit if we can't iterate over exports.\n return signature;\n }\n\n for (var key in moduleExports) {\n if (key === '__esModule') {\n continue;\n }\n\n signature.push(key);\n signature.push(Refresh.getFamilyByType(moduleExports[key]));\n }\n\n return signature;\n}\n\n/**\n * Creates a data object to be retained across refreshes.\n * This object should not transtively reference previous exports,\n * which can form infinite chain of objects across refreshes, which can pressure RAM.\n *\n * @param {*} moduleExports A Webpack module exports object.\n * @returns {*} A React refresh boundary signature array.\n */\nfunction getWebpackHotData(moduleExports) {\n return {\n signature: getReactRefreshBoundarySignature(moduleExports),\n isReactRefreshBoundary: isReactRefreshBoundary(moduleExports),\n };\n}\n\n/**\n * Creates a helper that performs a delayed React refresh.\n * @returns {function(function(): void): void} A debounced React refresh function.\n */\nfunction createDebounceUpdate() {\n /**\n * A cached setTimeout handler.\n * @type {number | undefined}\n */\n var refreshTimeout;\n\n /**\n * Performs react refresh on a delay and clears the error overlay.\n * @param {function(): void} callback\n * @returns {void}\n */\n function enqueueUpdate(callback) {\n if (typeof refreshTimeout === 'undefined') {\n refreshTimeout = setTimeout(function () {\n refreshTimeout = undefined;\n Refresh.performReactRefresh();\n callback();\n }, 30);\n }\n }\n\n return enqueueUpdate;\n}\n\n/**\n * Checks if all exports are likely a React component.\n *\n * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/febdba2383113c88296c61e28e4ef6a7f4939fda/packages/metro/src/lib/polyfills/require.js#L748-L774).\n * @param {*} moduleExports A Webpack module exports object.\n * @returns {boolean} Whether the exports are React component like.\n */\nfunction isReactRefreshBoundary(moduleExports) {\n if (Refresh.isLikelyComponentType(moduleExports)) {\n return true;\n }\n if (moduleExports === undefined || moduleExports === null || typeof moduleExports !== 'object') {\n // Exit if we can't iterate over exports.\n return false;\n }\n\n var hasExports = false;\n var areAllExportsComponents = true;\n for (var key in moduleExports) {\n hasExports = true;\n\n // This is the ES Module indicator flag\n if (key === '__esModule') {\n continue;\n }\n\n // We can (and have to) safely execute getters here,\n // as Webpack manually assigns harmony exports to getters,\n // without any side-effects attached.\n // Ref: https://github.com/webpack/webpack/blob/b93048643fe74de2a6931755911da1212df55897/lib/MainTemplate.js#L281\n var exportValue = moduleExports[key];\n if (!Refresh.isLikelyComponentType(exportValue)) {\n areAllExportsComponents = false;\n }\n }\n\n return hasExports && areAllExportsComponents;\n}\n\n/**\n * Checks if exports are likely a React component and registers them.\n *\n * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/febdba2383113c88296c61e28e4ef6a7f4939fda/packages/metro/src/lib/polyfills/require.js#L818-L835).\n * @param {*} moduleExports A Webpack module exports object.\n * @param {string} moduleId A Webpack module ID.\n * @returns {void}\n */\nfunction registerExportsForReactRefresh(moduleExports, moduleId) {\n if (Refresh.isLikelyComponentType(moduleExports)) {\n // Register module.exports if it is likely a component\n Refresh.register(moduleExports, moduleId + ' %exports%');\n }\n\n if (moduleExports === undefined || moduleExports === null || typeof moduleExports !== 'object') {\n // Exit if we can't iterate over the exports.\n return;\n }\n\n for (var key in moduleExports) {\n // Skip registering the ES Module indicator\n if (key === '__esModule') {\n continue;\n }\n\n var exportValue = moduleExports[key];\n if (Refresh.isLikelyComponentType(exportValue)) {\n var typeID = moduleId + ' %exports% ' + key;\n Refresh.register(exportValue, typeID);\n }\n }\n}\n\n/**\n * Compares previous and next module objects to check for mutated boundaries.\n *\n * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/907d6af22ac6ebe58572be418e9253a90665ecbd/packages/metro/src/lib/polyfills/require.js#L776-L792).\n * @param {*} prevSignature The signature of the current Webpack module exports object.\n * @param {*} nextSignature The signature of the next Webpack module exports object.\n * @returns {boolean} Whether the React refresh boundary should be invalidated.\n */\nfunction shouldInvalidateReactRefreshBoundary(prevSignature, nextSignature) {\n if (prevSignature.length !== nextSignature.length) {\n return true;\n }\n\n for (var i = 0; i < nextSignature.length; i += 1) {\n if (prevSignature[i] !== nextSignature[i]) {\n return true;\n }\n }\n\n return false;\n}\n\nvar enqueueUpdate = createDebounceUpdate();\nfunction executeRuntime(moduleExports, moduleId, webpackHot, refreshOverlay, isTest) {\n registerExportsForReactRefresh(moduleExports, moduleId);\n\n if (webpackHot) {\n var isHotUpdate = !!webpackHot.data;\n var prevData;\n if (isHotUpdate) {\n prevData = webpackHot.data.prevData;\n }\n\n if (isReactRefreshBoundary(moduleExports)) {\n webpackHot.dispose(\n /**\n * A callback to performs a full refresh if React has unrecoverable errors,\n * and also caches the to-be-disposed module.\n * @param {*} data A hot module data object from Webpack HMR.\n * @returns {void}\n */\n function hotDisposeCallback(data) {\n // We have to mutate the data object to get data registered and cached\n data.prevData = getWebpackHotData(moduleExports);\n }\n );\n webpackHot.accept(\n /**\n * An error handler to allow self-recovering behaviours.\n * @param {Error} error An error occurred during evaluation of a module.\n * @returns {void}\n */\n function hotErrorHandler(error) {\n if (typeof refreshOverlay !== 'undefined' && refreshOverlay) {\n refreshOverlay.handleRuntimeError(error);\n }\n\n if (typeof isTest !== 'undefined' && isTest) {\n if (window.onHotAcceptError) {\n window.onHotAcceptError(error.message);\n }\n }\n\n __webpack_require__.c[moduleId].hot.accept(hotErrorHandler);\n }\n );\n\n if (isHotUpdate) {\n if (\n prevData &&\n prevData.isReactRefreshBoundary &&\n shouldInvalidateReactRefreshBoundary(\n prevData.signature,\n getReactRefreshBoundarySignature(moduleExports)\n )\n ) {\n webpackHot.invalidate();\n } else {\n enqueueUpdate(\n /**\n * A function to dismiss the error overlay after performing React refresh.\n * @returns {void}\n */\n function updateCallback() {\n if (typeof refreshOverlay !== 'undefined' && refreshOverlay) {\n refreshOverlay.clearRuntimeErrors();\n }\n }\n );\n }\n }\n } else {\n if (isHotUpdate && typeof prevData !== 'undefined') {\n webpackHot.invalidate();\n }\n }\n }\n}\n\nmodule.exports = Object.freeze({\n enqueueUpdate: enqueueUpdate,\n executeRuntime: executeRuntime,\n getModuleExports: getModuleExports,\n isReactRefreshBoundary: isReactRefreshBoundary,\n registerExportsForReactRefresh: registerExportsForReactRefresh,\n});\n"],"mappings":"AAAA;AACA,IAAIA,OAAO,GAAGC,OAAO,CAAC,uBAAuB,CAAC;;AAE9C;AACA;AACA;AACA;AACA;AACA,SAASC,gBAAgBA,C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AAI,OAAOhB,cAAc,KAAK,WAAW,IAAIA,cAAc,EAAE;cAC3DA,cAAc,CAACiB,kBAAkB,CAAC,CAAC;YACrC;UACF,CACF,CAAC;QACH;MACF;IACF,CAAC,MAAM;MACL,IAAIf,WAAW,IAAI,OAAOE,QAAQ,KAAK,WAAW,EAAE;QAClDL,UAAU,CAACgB,UAAU,CAAC,CAAC;MACzB;IACF;EACF;AACF;AAEAG,MAAM,CAAClD,OAAO,GAAGmD,MAAM,CAACC,MAAM,CAAC;EAC7BvC,aAAa,EAAEA,aAAa;EAC5BiB,cAAc,EAAEA,cAAc;EAC9BtC,gBAAgB,EAAEA,gBAAgB;EAClCkB,sBAAsB,EAAEA,sBAAsB;EAC9CY,8BAA8B,EAAEA;AAClC,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/19c0da4f7b3686a8ff8938dacee032e924bca879dc073239e3136b2eec1bdfd3.json b/trivia-forge/node_modules/.cache/babel-loader/19c0da4f7b3686a8ff8938dacee032e924bca879dc073239e3136b2eec1bdfd3.json deleted file mode 100644 index 572eb9d6..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/19c0da4f7b3686a8ff8938dacee032e924bca879dc073239e3136b2eec1bdfd3.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import useMergedRefs from '@restart/hooks/useMergedRefs';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport useIsomorphicEffect from '@restart/hooks/useIsomorphicEffect';\nimport React, { useRef, cloneElement, useState } from 'react';\nimport NoopTransition from './NoopTransition';\nimport RTGTransition from './RTGTransition';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function useTransition({\n in: inProp,\n onTransition\n}) {\n const ref = useRef(null);\n const isInitialRef = useRef(true);\n const handleTransition = useEventCallback(onTransition);\n useIsomorphicEffect(() => {\n if (!ref.current) {\n return undefined;\n }\n let stale = false;\n handleTransition({\n in: inProp,\n element: ref.current,\n initial: isInitialRef.current,\n isStale: () => stale\n });\n return () => {\n stale = true;\n };\n }, [inProp, handleTransition]);\n useIsomorphicEffect(() => {\n isInitialRef.current = false;\n // this is for strict mode\n return () => {\n isInitialRef.current = true;\n };\n }, []);\n return ref;\n}\n/**\n * Adapts an imperative transition function to a subset of the RTG `` component API.\n *\n * ImperativeTransition does not support mounting options or `appear` at the moment, meaning\n * that it always acts like: `mountOnEnter={true} unmountOnExit={true} appear={true}`\n */\nexport default function ImperativeTransition({\n children,\n in: inProp,\n onExited,\n onEntered,\n transition\n}) {\n const [exited, setExited] = useState(!inProp);\n\n // TODO: I think this needs to be in an effect\n if (inProp && exited) {\n setExited(false);\n }\n const ref = useTransition({\n in: !!inProp,\n onTransition: options => {\n const onFinish = () => {\n if (options.isStale()) return;\n if (options.in) {\n onEntered == null ? void 0 : onEntered(options.element, options.initial);\n } else {\n setExited(true);\n onExited == null ? void 0 : onExited(options.element);\n }\n };\n Promise.resolve(transition(options)).then(onFinish, error => {\n if (!options.in) setExited(true);\n throw error;\n });\n }\n });\n const combinedRef = useMergedRefs(ref, children.ref);\n return exited && !inProp ? null : /*#__PURE__*/cloneElement(children, {\n ref: combinedRef\n });\n}\nexport function renderTransition(component, runTransition, props) {\n if (component) {\n return /*#__PURE__*/_jsx(RTGTransition, Object.assign({}, props, {\n component: component\n }));\n }\n if (runTransition) {\n return /*#__PURE__*/_jsx(ImperativeTransition, Object.assign({}, props, {\n transition: runTransition\n }));\n }\n return /*#__PURE__*/_jsx(NoopTransition, Object.assign({}, props));\n}","map":{"version":3,"names":["useMergedRefs","useEventCallback","useIsomorphicEffect","React","useRef","cloneElement","useState","NoopTransition","RTGTransition","jsx","_jsx","useTransition","in","inProp","onTransition","ref","isInitialRef","handleTransition","current","undefined","stale","element","initial","isStale","ImperativeTransition","children","onExited","onEntered","transition","exited","setExited","options","onFinish","Promise","resolve","then","error","combinedRef","renderTransition","component","runTransition","props","Object","assign"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/@restart/ui/esm/ImperativeTransition.js"],"sourcesContent":["import useMergedRefs from '@restart/hooks/useMergedRefs';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport useIsomorphicEffect from '@restart/hooks/useIsomorphicEffect';\nimport React, { useRef, cloneElement, useState } from 'react';\nimport NoopTransition from './NoopTransition';\nimport RTGTransition from './RTGTransition';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function useTransition({\n in: inProp,\n onTransition\n}) {\n const ref = useRef(null);\n const isInitialRef = useRef(true);\n const handleTransition = useEventCallback(onTransition);\n useIsomorphicEffect(() => {\n if (!ref.current) {\n return undefined;\n }\n let stale = false;\n handleTransition({\n in: inProp,\n element: ref.current,\n initial: isInitialRef.current,\n isStale: () => stale\n });\n return () => {\n stale = true;\n };\n }, [inProp, handleTransition]);\n useIsomorphicEffect(() => {\n isInitialRef.current = false;\n // this is for strict mode\n return () => {\n isInitialRef.current = true;\n };\n }, []);\n return ref;\n}\n/**\n * Adapts an imperative transition function to a subset of the RTG `` component API.\n *\n * ImperativeTransition does not support mounting options or `appear` at the moment, meaning\n * that it always acts like: `mountOnEnter={true} unmountOnExit={true} appear={true}`\n */\nexport default function ImperativeTransition({\n children,\n in: inProp,\n onExited,\n onEntered,\n transition\n}) {\n const [exited, setExited] = useState(!inProp);\n\n // TODO: I think this needs to be in an effect\n if (inProp && exited) {\n setExited(false);\n }\n const ref = useTransition({\n in: !!inProp,\n onTransition: options => {\n const onFinish = () => {\n if (options.isStale()) return;\n if (options.in) {\n onEntered == null ? void 0 : onEntered(options.element, options.initial);\n } else {\n setExited(true);\n onExited == null ? void 0 : onExited(options.element);\n }\n };\n Promise.resolve(transition(options)).then(onFinish, error => {\n if (!options.in) setExited(true);\n throw error;\n });\n }\n });\n const combinedRef = useMergedRefs(ref, children.ref);\n return exited && !inProp ? null : /*#__PURE__*/cloneElement(children, {\n ref: combinedRef\n });\n}\nexport function renderTransition(component, runTransition, props) {\n if (component) {\n return /*#__PURE__*/_jsx(RTGTransition, Object.assign({}, props, {\n component: component\n }));\n }\n if (runTransition) {\n return /*#__PURE__*/_jsx(ImperativeTransition, Object.assign({}, props, {\n transition: runTransition\n }));\n }\n return /*#__PURE__*/_jsx(NoopTransition, Object.assign({}, props));\n}"],"mappings":"AAAA,OAAOA,aAAa,MAAM,8BAA8B;AACxD,OAAOC,gBAAgB,MAAM,iCAAiC;AAC9D,OAAOC,mBAAmB,MAAM,oCAAoC;AACpE,OAAOC,KAAK,IAAIC,MAAM,EAAEC,YAAY,EAAEC,QAAQ,QAAQ,OAAO;AAC7D,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,OAAO,SAASC,aAAaA,CAAC;EAC5BC,EAAE,EAAEC,MAAM;EACVC;AACF,CAAC,EAAE;EACD,MAAMC,GAAG,GAAGX,MAAM,CAAC,IAAI,CAAC;EACxB,MAAMY,YAAY,GAAGZ,MAAM,CAAC,IAAI,CAAC;EACjC,MAAMa,gBAAgB,GAAGhB,gBAAgB,CAACa,YAAY,CAAC;EACvDZ,mBAAmB,CAAC,MAAM;IACxB,IAAI,CAACa,GAAG,CAACG,OAAO,EAAE;MAChB,OAAOC,SAAS;IAClB;IACA,IAAIC,KAAK,GAAG,KAAK;IACjBH,gBAAgB,CAAC;MACfL,EAAE,EAAEC,MAAM;MACVQ,OAAO,EAAEN,GAAG,CAACG,OAAO;MACpBI,OAAO,EAAEN,YAAY,CAACE,OAAO;MAC7BK,OAAO,EAAEA,CAAA,KAAMH;IACjB,CAAC,CAAC;IACF,OAAO,MAAM;MACXA,KAAK,GAAG,IAAI;IACd,CAAC;EACH,CAAC,EAAE,CAACP,MAAM,EAAEI,gBAAgB,CAAC,CAAC;EAC9Bf,mBAAmB,CAAC,MAAM;IACxBc,YAAY,CAACE,OAAO,GAAG,KAAK;IAC5B;IACA,OA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AG,CAAC;EACpD,OAAOc,MAAM,IAAI,CAAChB,MAAM,GAAG,IAAI,GAAG,aAAaR,YAAY,CAACoB,QAAQ,EAAE;IACpEV,GAAG,EAAEsB;EACP,CAAC,CAAC;AACJ;AACA,OAAO,SAASC,gBAAgBA,CAACC,SAAS,EAAEC,aAAa,EAAEC,KAAK,EAAE;EAChE,IAAIF,SAAS,EAAE;IACb,OAAO,aAAa7B,IAAI,CAACF,aAAa,EAAEkC,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEF,KAAK,EAAE;MAC/DF,SAAS,EAAEA;IACb,CAAC,CAAC,CAAC;EACL;EACA,IAAIC,aAAa,EAAE;IACjB,OAAO,aAAa9B,IAAI,CAACc,oBAAoB,EAAEkB,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEF,KAAK,EAAE;MACtEb,UAAU,EAAEY;IACd,CAAC,CAAC,CAAC;EACL;EACA,OAAO,aAAa9B,IAAI,CAACH,cAAc,EAAEmC,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEF,KAAK,CAAC,CAAC;AACpE","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/1a069bf259f5e624972b4c5669f5094cdaf8874ae2f7ca39aaaa5b7bb8683d84.json b/trivia-forge/node_modules/.cache/babel-loader/1a069bf259f5e624972b4c5669f5094cdaf8874ae2f7ca39aaaa5b7bb8683d84.json deleted file mode 100644 index c51b86c0..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/1a069bf259f5e624972b4c5669f5094cdaf8874ae2f7ca39aaaa5b7bb8683d84.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n/* globals __webpack_hash__ */\nif (module.hot) {\n /** @type {undefined|string} */\n var lastHash;\n var upToDate = function upToDate() {\n return /** @type {string} */lastHash.indexOf(__webpack_hash__) >= 0;\n };\n var log = require(\"./log\");\n var check = function check() {\n module.hot.check(true).then(function (updatedModules) {\n if (!updatedModules) {\n log(\"warning\", \"[HMR] Cannot find update. \" + (typeof window !== \"undefined\" ? \"Need to do a full reload!\" : \"Please reload manually!\"));\n log(\"warning\", \"[HMR] (Probably because of restarting the webpack-dev-server)\");\n if (typeof window !== \"undefined\") {\n window.location.reload();\n }\n return;\n }\n if (!upToDate()) {\n check();\n }\n require(\"./log-apply-result\")(updatedModules, updatedModules);\n if (upToDate()) {\n log(\"info\", \"[HMR] App is up to date.\");\n }\n }).catch(function (err) {\n var status = module.hot.status();\n if ([\"abort\", \"fail\"].indexOf(status) >= 0) {\n log(\"warning\", \"[HMR] Cannot apply update. \" + (typeof window !== \"undefined\" ? \"Need to do a full reload!\" : \"Please reload manually!\"));\n log(\"warning\", \"[HMR] \" + log.formatError(err));\n if (typeof window !== \"undefined\") {\n window.location.reload();\n }\n } else {\n log(\"warning\", \"[HMR] Update failed: \" + log.formatError(err));\n }\n });\n };\n var hotEmitter = require(\"./emitter\");\n hotEmitter.on(\"webpackHotUpdate\", function (currentHash) {\n lastHash = currentHash;\n if (!upToDate() && module.hot.status() === \"idle\") {\n log(\"info\", \"[HMR] Checking for updates on the server...\");\n check();\n }\n });\n log(\"info\", \"[HMR] Waiting for update signal from WDS...\");\n} else {\n throw new Error(\"[HMR] Hot Module Replacement is disabled.\");\n}","map":{"version":3,"names":["module","hot","lastHash","upToDate","indexOf","__webpack_hash__","log","require","check","then","updatedModules","window","location","reload","catch","err","status","formatError","hotEmitter","on","currentHash","Error"],"sources":["/Users/SammyD/Desktop/Trivia-Forge/trivia-forge/node_modules/webpack/hot/dev-server.js"],"sourcesContent":["/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n/* globals __webpack_hash__ */\nif (module.hot) {\n\t/** @type {undefined|string} */\n\tvar lastHash;\n\tvar upToDate = function upToDate() {\n\t\treturn /** @type {string} */ (lastHash).indexOf(__webpack_hash__) >= 0;\n\t};\n\tvar log = require(\"./log\");\n\tvar check = function check() {\n\t\tmodule.hot\n\t\t\t.check(true)\n\t\t\t.then(function (updatedModules) {\n\t\t\t\tif (!updatedModules) {\n\t\t\t\t\tlog(\n\t\t\t\t\t\t\"warning\",\n\t\t\t\t\t\t\"[HMR] Cannot find update. \" +\n\t\t\t\t\t\t\t(typeof window !== \"undefined\"\n\t\t\t\t\t\t\t\t? \"Need to do a full reload!\"\n\t\t\t\t\t\t\t\t: \"Please reload manually!\")\n\t\t\t\t\t);\n\t\t\t\t\tlog(\n\t\t\t\t\t\t\"warning\",\n\t\t\t\t\t\t\"[HMR] (Probably because of restarting the webpack-dev-server)\"\n\t\t\t\t\t);\n\t\t\t\t\tif (typeof window !== \"undefined\") {\n\t\t\t\t\t\twindow.location.reload();\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (!upToDate()) {\n\t\t\t\t\tcheck();\n\t\t\t\t}\n\n\t\t\t\trequire(\"./log-apply-result\")(updatedModules, updatedModules);\n\n\t\t\t\tif (upToDate()) {\n\t\t\t\t\tlog(\"info\", \"[HMR] App is up to date.\");\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(function (err) {\n\t\t\t\tvar status = module.hot.status();\n\t\t\t\tif ([\"abort\", \"fail\"].indexOf(status) >= 0) {\n\t\t\t\t\tlog(\n\t\t\t\t\t\t\"warning\",\n\t\t\t\t\t\t\"[HMR] Cannot apply update. \" +\n\t\t\t\t\t\t\t(typeof window !== \"undefined\"\n\t\t\t\t\t\t\t\t? \"Need to do a full reload!\"\n\t\t\t\t\t\t\t\t: \"Please reload manually!\")\n\t\t\t\t\t);\n\t\t\t\t\tlog(\"warning\", \"[HMR] \" + log.formatError(err));\n\t\t\t\t\tif (typeof window !== \"undefined\") {\n\t\t\t\t\t\twindow.location.reload();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tlog(\"warning\", \"[HMR] Update failed: \" + log.formatError(err));\n\t\t\t\t}\n\t\t\t});\n\t};\n\tvar hotEmitter = require(\"./emitter\");\n\thotEmitter.on(\"webpackHotUpdate\", function (currentHash) {\n\t\tlastHash = currentHash;\n\t\tif (!upToDate() && module.hot.status() === \"idle\") {\n\t\t\tlog(\"info\", \"[HMR] Checking for updates on the server...\");\n\t\t\tcheck();\n\t\t}\n\t});\n\tlog(\"info\", \"[HMR] Waiting for update signal from WDS...\");\n} else {\n\tthrow new Error(\"[HMR] Hot Module Replacement is disabled.\");\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,IAAIA,MAAM,CAACC,GAAG,EAAE;EACf;EACA,IAAIC,QAAQ;EACZ,IAAIC,QAAQ,GAAG,SAASA,QAAQA,CAAA,EAAG;IAClC,OAAO,qBAAuBD,QAAQ,CAAEE,OAAO,CAACC,gBAAgB,CAAC,IAAI,CAAC;EACvE,CAAC;EACD,IAAIC,GAAG,GAAGC,OAAO,CAAC,OAAO,CAAC;EAC1B,IAAIC,KAAK,GAAG,SAASA,KAAKA,CAAA,EAAG;IAC5BR,MAAM,CAACC,GAAG,CACRO,KAAK,CAAC,IAAI,CAAC,CACXC,IAAI,CAAC,UAAUC,cAAc,EAAE;MAC/B,IAAI,CAACA,cAAc,EAAE;QACpBJ,GAAG,CACF,SAAS,EACT,4BAA4B,IAC1B,OAAOK,MAAM,KAAK,WAAW,GAC3B,2BAA2B,GAC3B,yBAAyB,CAC9B,CAAC;QACDL,GAAG,CACF,SAAS,EACT,+DACD,CAAC;QACD,IAAI,OAAOK,MAAM,KAAK,WAAW,EAAE;UAClCA,MAAM,CAACC,QAAQ,CAACC,MAAM,CAAC,CAAC;QACzB;QACA;MACD;MAEA,IAAI,CAACV,QAAQ,CAAC,CAAC,EAAE;QAChBK,KAAK,CAAC,CAAC;MACR;MAEAD,OAAO,CAAC,oBAAoB,CAAC,CAACG,cAAc,EAAEA,cAAc,CAAC;MAE7D,IAAIP,QAAQ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} \ No newline at end of file diff --git a/trivia-forge/node_modules/.cache/babel-loader/1a087c7410e058a1a6c2fa1fed5efa479154ce2cfc6748ab0fc92b5ec19a0633.json b/trivia-forge/node_modules/.cache/babel-loader/1a087c7410e058a1a6c2fa1fed5efa479154ce2cfc6748ab0fc92b5ec19a0633.json deleted file mode 100644 index dd9f8d3f..00000000 --- a/trivia-forge/node_modules/.cache/babel-loader/1a087c7410e058a1a6c2fa1fed5efa479154ce2cfc6748ab0fc92b5ec19a0633.json +++ /dev/null @@ -1 +0,0 @@ -{"ast":null,"code":"import { useMemo } from 'react';\nconst toFnRef = ref => !ref || typeof ref === 'function' ? ref : value => {\n ref.current = value;\n};\nexport function mergeRefs(refA, refB) {\n const a = toFnRef(refA);\n const b = toFnRef(refB);\n return value => {\n if (a) a(value);\n if (b) b(value);\n };\n}\n\n/**\n * Create and returns a single callback ref composed from two other Refs.\n *\n * ```tsx\n * const Button = React.forwardRef((props, ref) => {\n * const [element, attachRef] = useCallbackRef();\n * const mergedRef = useMergedRefs(ref, attachRef);\n *\n * return