promptfoo 0.76.0 → 0.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +2 -2
- package/dist/src/assertions.d.ts +2 -0
- package/dist/src/assertions.d.ts.map +1 -1
- package/dist/src/assertions.js +12 -11
- package/dist/src/assertions.js.map +1 -1
- package/dist/src/commands/generate/redteam.d.ts.map +1 -1
- package/dist/src/commands/generate/redteam.js +6 -5
- package/dist/src/commands/generate/redteam.js.map +1 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +24 -22
- package/dist/src/config.js.map +1 -1
- package/dist/src/database/tables.d.ts +3 -0
- package/dist/src/database/tables.d.ts.map +1 -1
- package/dist/src/evaluator.d.ts.map +1 -1
- package/dist/src/evaluator.js +1 -0
- package/dist/src/evaluator.js.map +1 -1
- package/dist/src/evaluatorHelpers.d.ts.map +1 -1
- package/dist/src/evaluatorHelpers.js +29 -38
- package/dist/src/evaluatorHelpers.js.map +1 -1
- package/dist/src/prompts/index.js +1 -1
- package/dist/src/prompts/index.js.map +1 -1
- package/dist/src/prompts/processors/javascript.d.ts.map +1 -1
- package/dist/src/prompts/processors/javascript.js +1 -0
- package/dist/src/prompts/processors/javascript.js.map +1 -1
- package/dist/src/prompts/processors/json.d.ts.map +1 -1
- package/dist/src/prompts/processors/json.js +1 -0
- package/dist/src/prompts/processors/json.js.map +1 -1
- package/dist/src/prompts/processors/jsonl.d.ts.map +1 -1
- package/dist/src/prompts/processors/jsonl.js +1 -0
- package/dist/src/prompts/processors/jsonl.js.map +1 -1
- package/dist/src/prompts/processors/python.d.ts.map +1 -1
- package/dist/src/prompts/processors/python.js +1 -0
- package/dist/src/prompts/processors/python.js.map +1 -1
- package/dist/src/prompts/processors/string.d.ts.map +1 -1
- package/dist/src/prompts/processors/string.js +1 -0
- package/dist/src/prompts/processors/string.js.map +1 -1
- package/dist/src/prompts/processors/text.d.ts.map +1 -1
- package/dist/src/prompts/processors/text.js +1 -0
- package/dist/src/prompts/processors/text.js.map +1 -1
- package/dist/src/prompts/processors/yaml.d.ts.map +1 -1
- package/dist/src/prompts/processors/yaml.js +1 -0
- package/dist/src/prompts/processors/yaml.js.map +1 -1
- package/dist/src/providers/azureopenai.js +1 -1
- package/dist/src/providers/azureopenai.js.map +1 -1
- package/dist/src/providers/localai.d.ts.map +1 -1
- package/dist/src/providers/localai.js +6 -6
- package/dist/src/providers/localai.js.map +1 -1
- package/dist/src/providers/promptfoo.d.ts.map +1 -1
- package/dist/src/providers/promptfoo.js +3 -3
- package/dist/src/providers/promptfoo.js.map +1 -1
- package/dist/src/providers/voyage.d.ts.map +1 -1
- package/dist/src/providers/voyage.js +2 -2
- package/dist/src/providers/voyage.js.map +1 -1
- package/dist/src/redteam/constants.d.ts +3 -2
- package/dist/src/redteam/constants.d.ts.map +1 -1
- package/dist/src/redteam/constants.js +11 -2
- package/dist/src/redteam/constants.js.map +1 -1
- package/dist/src/redteam/graders.d.ts.map +1 -1
- package/dist/src/redteam/graders.js +2 -0
- package/dist/src/redteam/graders.js.map +1 -1
- package/dist/src/redteam/plugins/harmful.d.ts.map +1 -1
- package/dist/src/redteam/plugins/harmful.js +10 -4
- package/dist/src/redteam/plugins/harmful.js.map +1 -1
- package/dist/src/redteam/plugins/index.d.ts.map +1 -1
- package/dist/src/redteam/plugins/index.js +5 -0
- package/dist/src/redteam/plugins/index.js.map +1 -1
- package/dist/src/redteam/plugins/ssrf.d.ts +16 -0
- package/dist/src/redteam/plugins/ssrf.d.ts.map +1 -0
- package/dist/src/redteam/plugins/ssrf.js +119 -0
- package/dist/src/redteam/plugins/ssrf.js.map +1 -0
- package/dist/src/suggestions.d.ts.map +1 -1
- package/dist/src/suggestions.js +0 -1
- package/dist/src/suggestions.js.map +1 -1
- package/dist/src/types/index.d.ts +60 -2
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/index.js.map +1 -1
- package/dist/src/types/prompts.d.ts +1 -0
- package/dist/src/types/prompts.d.ts.map +1 -1
- package/dist/src/types/redteam.d.ts +1 -1
- package/dist/src/types/redteam.d.ts.map +1 -1
- package/dist/src/util/index.d.ts +9 -0
- package/dist/src/util/index.d.ts.map +1 -1
- package/dist/src/util/index.js +11 -2
- package/dist/src/util/index.js.map +1 -1
- package/dist/src/util/transform.d.ts +18 -3
- package/dist/src/util/transform.d.ts.map +1 -1
- package/dist/src/util/transform.js +48 -32
- package/dist/src/util/transform.js.map +1 -1
- package/dist/src/validators/prompts.d.ts +3 -0
- package/dist/src/validators/prompts.d.ts.map +1 -1
- package/dist/src/validators/prompts.js +3 -1
- package/dist/src/validators/prompts.js.map +1 -1
- package/dist/src/validators/providers.d.ts +15 -0
- package/dist/src/validators/providers.d.ts.map +1 -1
- package/dist/src/validators/providers.js +1 -0
- package/dist/src/validators/providers.js.map +1 -1
- package/dist/src/validators/redteam.d.ts +28 -28
- package/dist/src/validators/redteam.d.ts.map +1 -1
- package/dist/src/validators/redteam.js +11 -5
- package/dist/src/validators/redteam.js.map +1 -1
- package/dist/src/web/nextui/404/index.html +1 -1
- package/dist/src/web/nextui/404.html +1 -1
- package/dist/src/web/nextui/_next/static/chunks/258-e4da2950edde8e2a.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/374-45af52ed3050e856.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/485-d94c512bab4204ef.js +6 -0
- package/dist/src/web/nextui/_next/static/chunks/{902-17fd074eab50e03c.js → 856-808babe20420dc5b.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/{222-8d27a2c754bc8029.js → 983-9c47c398e832cf0b.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/auth/login/{page-92f9144478c53546.js → page-7134c0901e4f0212.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/auth/signup/{page-a52bd72f4be1d8a3.js → page-d7ebbf82bbbce998.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/datasets/{page-f877135091782ccc.js → page-28f9bf8ecd740718.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/{page-c72cfe418b720579.js → page-6c4e63c9602f522f.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/eval/{page-e64af76a729b3178.js → page-acc3dae78a7a9e91.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/{layout-a749f6361f84152a.js → layout-3e4716f7ebdd0dab.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/app/prompts/page-34d8a2070dde71a1.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/report/page-c630a8d0cba86664.js +1 -0
- package/dist/src/web/nextui/_next/static/chunks/app/setup/{page-ff63fc392248afc1.js → page-e19ab8695d6ac015.js} +1 -1
- package/dist/src/web/nextui/_next/static/chunks/main-app-4398f7af7ad8387f.js +1 -0
- package/dist/src/web/nextui/auth/login/index.html +1 -1
- package/dist/src/web/nextui/auth/login/index.txt +3 -3
- package/dist/src/web/nextui/auth/signup/index.html +1 -1
- package/dist/src/web/nextui/auth/signup/index.txt +3 -3
- package/dist/src/web/nextui/datasets/index.html +1 -1
- package/dist/src/web/nextui/datasets/index.txt +3 -3
- package/dist/src/web/nextui/eval/index.html +1 -1
- package/dist/src/web/nextui/eval/index.txt +3 -3
- package/dist/src/web/nextui/index.html +1 -1
- package/dist/src/web/nextui/index.txt +2 -2
- package/dist/src/web/nextui/progress/index.html +1 -1
- package/dist/src/web/nextui/progress/index.txt +3 -3
- package/dist/src/web/nextui/prompts/index.html +1 -1
- package/dist/src/web/nextui/prompts/index.txt +3 -3
- package/dist/src/web/nextui/report/index.html +1 -1
- package/dist/src/web/nextui/report/index.txt +3 -3
- package/dist/src/web/nextui/setup/index.html +1 -1
- package/dist/src/web/nextui/setup/index.txt +3 -3
- package/dist/test/assertions.test.js +24 -0
- package/dist/test/assertions.test.js.map +1 -1
- package/dist/test/evaluator.test.js +61 -0
- package/dist/test/evaluator.test.js.map +1 -1
- package/dist/test/providers.anthropic.test.js +1 -1
- package/dist/test/providers.anthropic.test.js.map +1 -1
- package/dist/test/providers.test.js +2 -2
- package/dist/test/providers.test.js.map +1 -1
- package/dist/test/redteam/validators.test.js +28 -17
- package/dist/test/redteam/validators.test.js.map +1 -1
- package/dist/test/util.test.js +220 -197
- package/dist/test/util.test.js.map +1 -1
- package/dist/test/util.transform.test.js +6 -0
- package/dist/test/util.transform.test.js.map +1 -1
- package/package.json +2 -2
- package/dist/src/web/nextui/_next/static/chunks/163-ee6a283eb46aef3a.js +0 -6
- package/dist/src/web/nextui/_next/static/chunks/258-62f675217b82626c.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/281-64d9f1415a301ee5.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/prompts/page-086373e027220e78.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/app/report/page-a7dd52951b145b11.js +0 -1
- package/dist/src/web/nextui/_next/static/chunks/main-app-0dc90092cd7acaaf.js +0 -1
- /package/dist/src/web/nextui/_next/static/chunks/app/progress/{page-32f742244e1ce920.js → page-2d2dd4e665a6304a.js} +0 -0
- /package/dist/src/web/nextui/_next/static/{rznp6ATZbrfeCiJE-WYrp → dLlNz9-V4NvRIcKyU_b89}/_buildManifest.js +0 -0
- /package/dist/src/web/nextui/_next/static/{rznp6ATZbrfeCiJE-WYrp → dLlNz9-V4NvRIcKyU_b89}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[485],{14059:function(e,t,s){"use strict";s.d(t,{Z:function(){return m}});var r=s(79042),i=s(94312),n=s(36975),a=s(70098),o=s(23437),l=s(60805);let h=["ownerState"],c=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let f=(0,o.Z)(),p=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function g({defaultTheme:e,theme:t,themeId:s}){return 0===Object.keys(t).length?e:t[s]||t}function v(e,t){let{ownerState:s}=t,n=(0,i.Z)(t,h),a="function"==typeof e?e((0,r.Z)({ownerState:s},n)):e;if(Array.isArray(a))return a.flatMap(e=>v(e,(0,r.Z)({ownerState:s},n)));if(a&&"object"==typeof a&&Array.isArray(a.variants)){let{variants:e=[]}=a,t=(0,i.Z)(a,c),o=t;return e.forEach(e=>{let t=!0;"function"==typeof e.props?t=e.props((0,r.Z)({ownerState:s},n,s)):Object.keys(e.props).forEach(r=>{(null==s?void 0:s[r])!==e.props[r]&&n[r]!==e.props[r]&&(t=!1)}),t&&(Array.isArray(o)||(o=[o]),o.push("function"==typeof e.style?e.style((0,r.Z)({ownerState:s},n,s)):e.style))}),o}return a}let y=function(e={}){let{themeId:t,defaultTheme:s=f,rootShouldForwardProp:o=d,slotShouldForwardProp:h=d}=e,c=e=>(0,l.Z)((0,r.Z)({},e,{theme:g((0,r.Z)({},e,{defaultTheme:s,themeId:t}))}));return c.__mui_systemSx=!0,(e,l={})=>{var f;let y;(0,n.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:m,slot:_,skipVariantsResolver:w,skipSx:b,overridesResolver:k=(f=p(_))?(e,t)=>t[f]:null}=l,S=(0,i.Z)(l,u),T=void 0!==w?w:_&&"Root"!==_&&"root"!==_||!1,E=b||!1,O=d;"Root"===_||"root"===_?O=o:_?O=h:"string"==typeof e&&e.charCodeAt(0)>96&&(O=void 0);let j=(0,n.default)(e,(0,r.Z)({shouldForwardProp:O,label:y},S)),C=e=>"function"==typeof e&&e.__emotion_real!==e||(0,a.P)(e)?i=>v(e,(0,r.Z)({},i,{theme:g({theme:i.theme,defaultTheme:s,themeId:t})})):e,P=(i,...n)=>{let a=C(i),o=n?n.map(C):[];m&&k&&o.push(e=>{let i=g((0,r.Z)({},e,{defaultTheme:s,themeId:t}));if(!i.components||!i.components[m]||!i.components[m].styleOverrides)return null;let n=i.components[m].styleOverrides,a={};return Object.entries(n).forEach(([t,s])=>{a[t]=v(s,(0,r.Z)({},e,{theme:i}))}),k(e,a)}),m&&!T&&o.push(e=>{var i;let n=g((0,r.Z)({},e,{defaultTheme:s,themeId:t})),a=null==n||null==(i=n.components)||null==(i=i[m])?void 0:i.variants;return v({variants:a},(0,r.Z)({},e,{theme:n}))}),E||o.push(c);let l=o.length-n.length;if(Array.isArray(i)&&l>0){let e=Array(l).fill("");(a=[...i,...e]).raw=[...i.raw,...e]}let h=j(a,...o);return e.muiName&&(h.muiName=e.muiName),h};return j.withConfig&&(P.withConfig=j.withConfig),P}}();var m=y},38409:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});var r=s(37412);function i(e){let{theme:t,name:s,props:i}=e;return t&&t.components&&t.components[s]&&t.components[s].defaultProps?(0,r.Z)(t.components[s].defaultProps,i):i}},48976:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var r=s(38409),i=s(83927);function n({props:e,name:t,defaultTheme:s,themeId:n}){let a=(0,i.Z)(s);n&&(a=a[n]||a);let o=(0,r.Z)({theme:a,name:t,props:e});return o}},12594:function(e,t,s){"use strict";var r,i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var s in t)i(e,s,{get:t[s],enumerable:!0})})(l,{createBrowserSupabaseClient:()=>j,createClientComponentClient:()=>c,createMiddlewareClient:()=>_,createMiddlewareSupabaseClient:()=>P,createPagesBrowserClient:()=>u,createPagesServerClient:()=>g,createRouteHandlerClient:()=>E,createServerActionClient:()=>O,createServerComponentClient:()=>k,createServerSupabaseClient:()=>C}),e.exports=((e,t,s,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))o.call(e,s)||void 0===s||i(e,s,{get:()=>t[s],enumerable:!(r=n(t,s))||r.enumerable});return e})(i({},"__esModule",{value:!0}),l);var h=s(39386);function c({supabaseUrl:e="https://placeholder.promptfoo.dev",supabaseKey:t="abc123",options:s,cookieOptions:i,isSingleton:n=!0}={}){if(!e||!t)throw Error("either NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY env variables or supabaseUrl and supabaseKey are required!");let a=()=>{var r;return(0,h.createSupabaseClient)(e,t,{...s,global:{...null==s?void 0:s.global,headers:{...null==(r=null==s?void 0:s.global)?void 0:r.headers,"X-Client-Info":"@supabase/auth-helpers-nextjs@0.7.4"}},auth:{storageKey:null==i?void 0:i.name,storage:new h.BrowserCookieAuthStorageAdapter(i)}})};if(n){let e=r??a();return"undefined"==typeof window?e:(r||(r=e),r)}return a()}var u=c,d=s(39386),f=s(76051),p=class extends d.CookieAuthStorageAdapter{constructor(e,t){super(t),this.context=e}getCookie(e){var t;let s=(0,f.splitCookiesString)((null==(t=this.context.res.getHeader("set-cookie"))?void 0:t.toString())??"").map(t=>(0,d.parseCookies)(t)[e]).find(e=>!!e),r=s??this.context.req.cookies[e];return r}setCookie(e,t){this._setCookie(e,t)}deleteCookie(e){this._setCookie(e,"",{maxAge:0})}_setCookie(e,t,s){var r;let i=(0,f.splitCookiesString)((null==(r=this.context.res.getHeader("set-cookie"))?void 0:r.toString())??"").filter(t=>!(e in(0,d.parseCookies)(t))),n=(0,d.serializeCookie)(e,t,{...this.cookieOptions,...s,httpOnly:!1});this.context.res.setHeader("set-cookie",[...i,n])}};function g(e,{supabaseUrl:t="https://placeholder.promptfoo.dev",supabaseKey:s="abc123",options:r,cookieOptions:i}={}){var n;if(!t||!s)throw Error("either NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY env variables or supabaseUrl and supabaseKey are required!");return(0,d.createSupabaseClient)(t,s,{...r,global:{...null==r?void 0:r.global,headers:{...null==(n=null==r?void 0:r.global)?void 0:n.headers,"X-Client-Info":"@supabase/auth-helpers-nextjs@0.7.4"}},auth:{storageKey:null==i?void 0:i.name,storage:new p(e,i)}})}var v=s(39386),y=s(76051),m=class extends v.CookieAuthStorageAdapter{constructor(e,t){super(t),this.context=e}getCookie(e){var t;let s=(0,y.splitCookiesString)((null==(t=this.context.res.headers.get("set-cookie"))?void 0:t.toString())??"").map(t=>(0,v.parseCookies)(t)[e]).find(e=>!!e);return s||(0,v.parseCookies)(this.context.req.headers.get("cookie")??"")[e]}setCookie(e,t){this._setCookie(e,t)}deleteCookie(e){this._setCookie(e,"",{maxAge:0})}_setCookie(e,t,s){let r=(0,v.serializeCookie)(e,t,{...this.cookieOptions,...s,httpOnly:!1});this.context.res.headers&&(this.context.res.headers.append("set-cookie",r),this.context.res.headers.append("cookie",r))}};function _(e,{supabaseUrl:t="https://placeholder.promptfoo.dev",supabaseKey:s="abc123",options:r,cookieOptions:i}={}){var n;if(!t||!s)throw Error("either NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY env variables or supabaseUrl and supabaseKey are required!");return(0,v.createSupabaseClient)(t,s,{...r,global:{...null==r?void 0:r.global,headers:{...null==(n=null==r?void 0:r.global)?void 0:n.headers,"X-Client-Info":"@supabase/auth-helpers-nextjs@0.7.4"}},auth:{storageKey:null==i?void 0:i.name,storage:new m(e,i)}})}var w=s(39386),b=class extends w.CookieAuthStorageAdapter{constructor(e,t){super(t),this.context=e}getCookie(e){var t;let s=this.context.cookies();return null==(t=s.get(e))?void 0:t.value}setCookie(e,t){}deleteCookie(e){}};function k(e,{supabaseUrl:t="https://placeholder.promptfoo.dev",supabaseKey:s="abc123",options:r,cookieOptions:i}={}){var n;if(!t||!s)throw Error("either NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY env variables or supabaseUrl and supabaseKey are required!");return(0,w.createSupabaseClient)(t,s,{...r,global:{...null==r?void 0:r.global,headers:{...null==(n=null==r?void 0:r.global)?void 0:n.headers,"X-Client-Info":"@supabase/auth-helpers-nextjs@0.7.4"}},auth:{storageKey:null==i?void 0:i.name,storage:new b(e,i)}})}var S=s(39386),T=class extends S.CookieAuthStorageAdapter{constructor(e,t){super(t),this.context=e}getCookie(e){var t;let s=this.context.cookies();return null==(t=s.get(e))?void 0:t.value}setCookie(e,t){let s=this.context.cookies();s.set(e,t,this.cookieOptions)}deleteCookie(e){let t=this.context.cookies();t.set(e,"",{maxAge:0})}};function E(e,{supabaseUrl:t="https://placeholder.promptfoo.dev",supabaseKey:s="abc123",options:r,cookieOptions:i}={}){var n;if(!t||!s)throw Error("either NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY env variables or supabaseUrl and supabaseKey are required!");return(0,S.createSupabaseClient)(t,s,{...r,global:{...null==r?void 0:r.global,headers:{...null==(n=null==r?void 0:r.global)?void 0:n.headers,"X-Client-Info":"@supabase/auth-helpers-nextjs@0.7.4"}},auth:{storageKey:null==i?void 0:i.name,storage:new T(e,i)}})}var O=E;function j({supabaseUrl:e="https://placeholder.promptfoo.dev",supabaseKey:t="abc123",options:s,cookieOptions:r}={}){return console.warn("Please utilize the `createPagesBrowserClient` function instead of the deprecated `createBrowserSupabaseClient` function. Learn more: https://supabase.com/docs/guides/auth/auth-helpers/nextjs-pages"),u({supabaseUrl:e,supabaseKey:t,options:s,cookieOptions:r})}function C(e,{supabaseUrl:t="https://placeholder.promptfoo.dev",supabaseKey:s="abc123",options:r,cookieOptions:i}={}){return console.warn("Please utilize the `createPagesServerClient` function instead of the deprecated `createServerSupabaseClient` function. Learn more: https://supabase.com/docs/guides/auth/auth-helpers/nextjs-pages"),g(e,{supabaseUrl:t,supabaseKey:s,options:r,cookieOptions:i})}function P(e,{supabaseUrl:t="https://placeholder.promptfoo.dev",supabaseKey:s="abc123",options:r,cookieOptions:i}={}){return console.warn("Please utilize the `createMiddlewareClient` function instead of the deprecated `createMiddlewareSupabaseClient` function. Learn more: https://supabase.com/docs/guides/auth/auth-helpers/nextjs#middleware"),_(e,{supabaseUrl:t,supabaseKey:s,options:r,cookieOptions:i})}},87407:function(e,t,s){"use strict";s.r(t),s.d(t,{Headers:function(){return n},Request:function(){return a},Response:function(){return o},fetch:function(){return i}});var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==s.g)return s.g;throw Error("unable to locate global object")}();let i=r.fetch;t.default=r.fetch.bind(r);let n=r.Headers,a=r.Request,o=r.Response},53405:function(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=r(s(87407)),n=r(s(88236));t.default=class{constructor(e){this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=e.headers,this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=e.shouldThrowOnError,this.signal=e.signal,this.isMaybeSingle=e.isMaybeSingle,e.fetch?this.fetch=e.fetch:"undefined"==typeof fetch?this.fetch=i.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}then(e,t){void 0===this.schema||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),"GET"!==this.method&&"HEAD"!==this.method&&(this.headers["Content-Type"]="application/json");let s=this.fetch,r=s(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async e=>{var t,s,r;let i=null,a=null,o=null,l=e.status,h=e.statusText;if(e.ok){if("HEAD"!==this.method){let t=await e.text();""===t||(a="text/csv"===this.headers.Accept?t:this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?t:JSON.parse(t))}let r=null===(t=this.headers.Prefer)||void 0===t?void 0:t.match(/count=(exact|planned|estimated)/),n=null===(s=e.headers.get("content-range"))||void 0===s?void 0:s.split("/");r&&n&&n.length>1&&(o=parseInt(n[1])),this.isMaybeSingle&&"GET"===this.method&&Array.isArray(a)&&(a.length>1?(i={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,o=null,l=406,h="Not Acceptable"):a=1===a.length?a[0]:null)}else{let t=await e.text();try{i=JSON.parse(t),Array.isArray(i)&&404===e.status&&(a=[],i=null,l=200,h="OK")}catch(s){404===e.status&&""===t?(l=204,h="No Content"):i={message:t}}if(i&&this.isMaybeSingle&&(null===(r=null==i?void 0:i.details)||void 0===r?void 0:r.includes("0 rows"))&&(i=null,l=200,h="OK"),i&&this.shouldThrowOnError)throw new n.default(i)}let c={error:i,data:a,count:o,status:l,statusText:h};return c});return this.shouldThrowOnError||(r=r.catch(e=>{var t,s,r;return{error:{message:`${null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"FetchError"}: ${null==e?void 0:e.message}`,details:`${null!==(s=null==e?void 0:e.stack)&&void 0!==s?s:""}`,hint:"",code:`${null!==(r=null==e?void 0:e.code)&&void 0!==r?r:""}`},data:null,count:null,status:0,statusText:""}})),r.then(e,t)}}},29122:function(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=r(s(46907)),n=r(s(1844)),a=s(20448);class o{constructor(e,{headers:t={},schema:s,fetch:r}={}){this.url=e,this.headers=Object.assign(Object.assign({},a.DEFAULT_HEADERS),t),this.schemaName=s,this.fetch=r}from(e){let t=new URL(`${this.url}/${e}`);return new i.default(t,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new o(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,t={},{head:s=!1,get:r=!1,count:i}={}){let a,o;let l=new URL(`${this.url}/rpc/${e}`);s||r?(a=s?"HEAD":"GET",Object.entries(t).filter(([e,t])=>void 0!==t).map(([e,t])=>[e,Array.isArray(t)?`{${t.join(",")}}`:`${t}`]).forEach(([e,t])=>{l.searchParams.append(e,t)})):(a="POST",o=t);let h=Object.assign({},this.headers);return i&&(h.Prefer=`count=${i}`),new n.default({method:a,url:l,headers:h,schema:this.schemaName,body:o,fetch:this.fetch,allowEmpty:!1})}}t.default=o},88236:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}}},1844:function(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=r(s(53172));class n extends i.default{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}in(e,t){let s=Array.from(new Set(t)).map(e=>"string"==typeof e&&RegExp("[,()]").test(e)?`"${e}"`:`${e}`).join(",");return this.url.searchParams.append(e,`in.(${s})`),this}contains(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return"string"==typeof t?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:s,type:r}={}){let i="";"plain"===r?i="pl":"phrase"===r?i="ph":"websearch"===r&&(i="w");let n=void 0===s?"":`(${s})`;return this.url.searchParams.append(e,`${i}fts${n}.${t}`),this}match(e){return Object.entries(e).forEach(([e,t])=>{this.url.searchParams.append(e,`eq.${t}`)}),this}not(e,t,s){return this.url.searchParams.append(e,`not.${t}.${s}`),this}or(e,{foreignTable:t,referencedTable:s=t}={}){let r=s?`${s}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,s){return this.url.searchParams.append(e,`${t}.${s}`),this}}t.default=n},46907:function(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=r(s(1844));t.default=class{constructor(e,{headers:t={},schema:s,fetch:r}){this.url=e,this.headers=t,this.schema=s,this.fetch=r}select(e,{head:t=!1,count:s}={}){let r=!1,n=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!r?"":('"'===e&&(r=!r),e)).join("");return this.url.searchParams.set("select",n),s&&(this.headers.Prefer=`count=${s}`),new i.default({method:t?"HEAD":"GET",url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(e,{count:t,defaultToNull:s=!0}={}){let r=[];if(this.headers.Prefer&&r.push(this.headers.Prefer),t&&r.push(`count=${t}`),s||r.push("missing=default"),this.headers.Prefer=r.join(","),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);this.url.searchParams.set("columns",e.join(","))}}return new i.default({method:"POST",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}upsert(e,{onConflict:t,ignoreDuplicates:s=!1,count:r,defaultToNull:n=!0}={}){let a=[`resolution=${s?"ignore":"merge"}-duplicates`];if(void 0!==t&&this.url.searchParams.set("on_conflict",t),this.headers.Prefer&&a.push(this.headers.Prefer),r&&a.push(`count=${r}`),n||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);this.url.searchParams.set("columns",e.join(","))}}return new i.default({method:"POST",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}update(e,{count:t}={}){let s=[];return this.headers.Prefer&&s.push(this.headers.Prefer),t&&s.push(`count=${t}`),this.headers.Prefer=s.join(","),new i.default({method:"PATCH",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}delete({count:e}={}){let t=[];return e&&t.push(`count=${e}`),this.headers.Prefer&&t.unshift(this.headers.Prefer),this.headers.Prefer=t.join(","),new i.default({method:"DELETE",url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}}},53172:function(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=r(s(53405));class n extends i.default{select(e){let t=!1,s=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!t?"":('"'===e&&(t=!t),e)).join("");return this.url.searchParams.set("select",s),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(e,{ascending:t=!0,nullsFirst:s,foreignTable:r,referencedTable:i=r}={}){let n=i?`${i}.order`:"order",a=this.url.searchParams.get(n);return this.url.searchParams.set(n,`${a?`${a},`:""}${e}.${t?"asc":"desc"}${void 0===s?"":s?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:s=t}={}){let r=void 0===s?"limit":`${s}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:s,referencedTable:r=s}={}){let i=void 0===r?"offset":`${r}.offset`,n=void 0===r?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(n,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return"GET"===this.method?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:e=!1,verbose:t=!1,settings:s=!1,buffers:r=!1,wal:i=!1,format:n="text"}={}){var a;let o=[e?"analyze":null,t?"verbose":null,s?"settings":null,r?"buffers":null,i?"wal":null].filter(Boolean).join("|"),l=null!==(a=this.headers.Accept)&&void 0!==a?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${n}; for="${l}"; options=${o};`,this}rollback(){var e;return(null!==(e=this.headers.Prefer)&&void 0!==e?e:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}}t.default=n},20448:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_HEADERS=void 0;let r=s(1194);t.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${r.version}`}},23022:function(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PostgrestBuilder=t.PostgrestTransformBuilder=t.PostgrestFilterBuilder=t.PostgrestQueryBuilder=t.PostgrestClient=void 0;let i=r(s(29122));t.PostgrestClient=i.default;let n=r(s(46907));t.PostgrestQueryBuilder=n.default;let a=r(s(1844));t.PostgrestFilterBuilder=a.default;let o=r(s(53172));t.PostgrestTransformBuilder=o.default;let l=r(s(53405));t.PostgrestBuilder=l.default,t.default={PostgrestClient:i.default,PostgrestQueryBuilder:n.default,PostgrestFilterBuilder:a.default,PostgrestTransformBuilder:o.default,PostgrestBuilder:l.default}},1194:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="0.0.0-automated"},28891:function(e,t,s){e.exports=s(98556)},76051:function(e){"use strict";var t={decodeValues:!0,map:!1,silent:!1};function s(e){return"string"==typeof e&&!!e.trim()}function r(e,r){var i,n,a,o,l=e.split(";").filter(s),h=(i=l.shift(),n="",a="",(o=i.split("=")).length>1?(n=o.shift(),a=o.join("=")):a=i,{name:n,value:a}),c=h.name,u=h.value;r=r?Object.assign({},t,r):t;try{u=r.decodeValues?decodeURIComponent(u):u}catch(e){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+u+"'. Set options.decodeValues to false to disable this feature.",e)}var d={name:c,value:u};return l.forEach(function(e){var t=e.split("="),s=t.shift().trimLeft().toLowerCase(),r=t.join("=");"expires"===s?d.expires=new Date(r):"max-age"===s?d.maxAge=parseInt(r,10):"secure"===s?d.secure=!0:"httponly"===s?d.httpOnly=!0:"samesite"===s?d.sameSite=r:d[s]=r}),d}function i(e,i){if(i=i?Object.assign({},t,i):t,!e)return i.map?{}:[];if(e.headers){if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var n=e.headers[Object.keys(e.headers).find(function(e){return"set-cookie"===e.toLowerCase()})];n||!e.headers.cookie||i.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=n}}return(Array.isArray(e)||(e=[e]),(i=i?Object.assign({},t,i):t).map)?e.filter(s).reduce(function(e,t){var s=r(t,i);return e[s.name]=s,e},{}):e.filter(s).map(function(e){return r(e,i)})}e.exports=i,e.exports.parse=i,e.exports.parseString=r,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,s,r,i,n,a=[],o=0;function l(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}for(;o<e.length;){for(t=o,n=!1;l();)if(","===(s=e.charAt(o))){for(r=o,o+=1,l(),i=o;o<e.length&&"="!==(s=e.charAt(o))&&";"!==s&&","!==s;)o+=1;o<e.length&&"="===e.charAt(o)?(n=!0,o=i,a.push(e.substring(t,r)),t=o):o=r+1}else o+=1;(!n||o>=e.length)&&a.push(e.substring(t,e.length))}return a}},39386:function(e,t,s){"use strict";s.r(t),s.d(t,{BrowserCookieAuthStorageAdapter:function(){return tQ},CookieAuthStorageAdapter:function(){return tY},DEFAULT_COOKIE_OPTIONS:function(){return tX},createSupabaseClient:function(){return t0},isBrowser:function(){return tZ},parseCookies:function(){return t1},parseSupabaseCookie:function(){return tW},serializeCookie:function(){return t4},stringifySupabaseSession:function(){return tV}}),new TextEncoder;let r=new TextDecoder,i=e=>{let t=atob(e),s=new Uint8Array(t.length);for(let e=0;e<t.length;e++)s[e]=t.charCodeAt(e);return s},n=e=>{let t=e;t instanceof Uint8Array&&(t=r.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return i(t)}catch(e){throw TypeError("The input to be decoded is not correctly encoded.")}},a=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>Promise.resolve().then(s.bind(s,87407)).then(({default:t})=>t(...e)):fetch),(...e)=>t(...e)};class o extends Error{constructor(e,t="FunctionsError",s){super(e),this.name=t,this.context=s}}class l extends o{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class h extends o{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class c extends o{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}(d=f||(f={})).Any="any",d.ApNortheast1="ap-northeast-1",d.ApNortheast2="ap-northeast-2",d.ApSouth1="ap-south-1",d.ApSoutheast1="ap-southeast-1",d.ApSoutheast2="ap-southeast-2",d.CaCentral1="ca-central-1",d.EuCentral1="eu-central-1",d.EuWest1="eu-west-1",d.EuWest2="eu-west-2",d.EuWest3="eu-west-3",d.SaEast1="sa-east-1",d.UsEast1="us-east-1",d.UsWest1="us-west-1",d.UsWest2="us-west-2";class u{constructor(e,{headers:t={},customFetch:s,region:r=f.Any}={}){this.url=e,this.headers=t,this.region=r,this.fetch=a(s)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,t={}){var s,r,i,n,a;return r=this,i=void 0,n=void 0,a=function*(){try{let r;let{headers:i,method:n,body:a}=t,o={},{region:u}=t;u||(u=this.region),u&&"any"!==u&&(o["x-region"]=u),a&&(i&&!Object.prototype.hasOwnProperty.call(i,"Content-Type")||!i)&&("undefined"!=typeof Blob&&a instanceof Blob||a instanceof ArrayBuffer?(o["Content-Type"]="application/octet-stream",r=a):"string"==typeof a?(o["Content-Type"]="text/plain",r=a):"undefined"!=typeof FormData&&a instanceof FormData?r=a:(o["Content-Type"]="application/json",r=JSON.stringify(a)));let d=yield this.fetch(`${this.url}/${e}`,{method:n||"POST",headers:Object.assign(Object.assign(Object.assign({},o),this.headers),i),body:r}).catch(e=>{throw new l(e)}),f=d.headers.get("x-relay-error");if(f&&"true"===f)throw new h(d);if(!d.ok)throw new c(d);let p=(null!==(s=d.headers.get("Content-Type"))&&void 0!==s?s:"text/plain").split(";")[0].trim();return{data:"application/json"===p?yield d.json():"application/octet-stream"===p?yield d.blob():"text/event-stream"===p?d:"multipart/form-data"===p?yield d.formData():yield d.text(),error:null}}catch(e){return{data:null,error:e}}},new(n||(n=Promise))(function(e,t){function s(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(s,o)}l((a=a.apply(r,i||[])).next())})}}var d,f,p,g,v,y,m,_,w,b,k,S,T,E,O,j,C,P,A,x,$,R,I,U=s(23022);let{PostgrestClient:L,PostgrestQueryBuilder:N,PostgrestFilterBuilder:D,PostgrestTransformBuilder:B,PostgrestBuilder:M}=U,q={"X-Client-Info":"realtime-js/2.10.2"};(T=p||(p={}))[T.connecting=0]="connecting",T[T.open=1]="open",T[T.closing=2]="closing",T[T.closed=3]="closed",(E=g||(g={})).closed="closed",E.errored="errored",E.joined="joined",E.joining="joining",E.leaving="leaving",(O=v||(v={})).close="phx_close",O.error="phx_error",O.join="phx_join",O.reply="phx_reply",O.leave="phx_leave",O.access_token="access_token",(y||(y={})).websocket="websocket",(j=m||(m={})).Connecting="connecting",j.Open="open",j.Closing="closing",j.Closed="closed";class F{constructor(){this.HEADER_LENGTH=1}decode(e,t){return e.constructor===ArrayBuffer?t(this._binaryDecode(e)):"string"==typeof e?t(JSON.parse(e)):t({})}_binaryDecode(e){let t=new DataView(e),s=new TextDecoder;return this._decodeBroadcast(e,t,s)}_decodeBroadcast(e,t,s){let r=t.getUint8(1),i=t.getUint8(2),n=this.HEADER_LENGTH+2,a=s.decode(e.slice(n,n+r));n+=r;let o=s.decode(e.slice(n,n+i));n+=i;let l=JSON.parse(s.decode(e.slice(n,e.byteLength)));return{ref:null,topic:a,event:o,payload:l}}}class z{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=t}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}(C=_||(_={})).abstime="abstime",C.bool="bool",C.date="date",C.daterange="daterange",C.float4="float4",C.float8="float8",C.int2="int2",C.int4="int4",C.int4range="int4range",C.int8="int8",C.int8range="int8range",C.json="json",C.jsonb="jsonb",C.money="money",C.numeric="numeric",C.oid="oid",C.reltime="reltime",C.text="text",C.time="time",C.timestamp="timestamp",C.timestamptz="timestamptz",C.timetz="timetz",C.tsrange="tsrange",C.tstzrange="tstzrange";let K=(e,t,s={})=>{var r;let i=null!==(r=s.skipTypes)&&void 0!==r?r:[];return Object.keys(t).reduce((s,r)=>(s[r]=J(r,e,t,i),s),{})},J=(e,t,s,r)=>{let i=t.find(t=>t.name===e),n=null==i?void 0:i.type,a=s[e];return n&&!r.includes(n)?H(n,a):G(a)},H=(e,t)=>{if("_"===e.charAt(0)){let s=e.slice(1,e.length);return X(t,s)}switch(e){case _.bool:return W(t);case _.float4:case _.float8:case _.int2:case _.int4:case _.int8:case _.numeric:case _.oid:return V(t);case _.json:case _.jsonb:return Z(t);case _.timestamp:return Y(t);case _.abstime:case _.date:case _.daterange:case _.int4range:case _.int8range:case _.money:case _.reltime:case _.text:case _.time:case _.timestamptz:case _.timetz:case _.tsrange:case _.tstzrange:default:return G(t)}},G=e=>e,W=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},V=e=>{if("string"==typeof e){let t=parseFloat(e);if(!Number.isNaN(t))return t}return e},Z=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(e){console.log(`JSON parse error: ${e}`)}return e},X=(e,t)=>{if("string"!=typeof e)return e;let s=e.length-1,r=e[s],i=e[0];if("{"===i&&"}"===r){let r;let i=e.slice(1,s);try{r=JSON.parse("["+i+"]")}catch(e){r=i?i.split(","):[]}return r.map(e=>H(t,e))}return e},Y=e=>"string"==typeof e?e.replace(" ","T"):e,Q=e=>{let t=e;return(t=(t=t.replace(/^ws/i,"http")).replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,"")).replace(/\/+$/,"")};class ee{constructor(e,t,s={},r=1e4){this.channel=e,this.event=t,this.payload=s,this.timeout=r,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,t){var s;return this._hasReceived(e)&&t(null===(s=this.receivedResp)||void 0===s?void 0:s.response),this.recHooks.push({status:e,callback:t}),this}startTimeout(){this.timeoutTimer||(this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref),this.channel._on(this.refEvent,{},e=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=e,this._matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout))}trigger(e,t){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:t})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:t}){this.recHooks.filter(t=>t.status===e).forEach(e=>e.callback(t))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}(P=w||(w={})).SYNC="sync",P.JOIN="join",P.LEAVE="leave";class et{constructor(e,t){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};let s=(null==t?void 0:t.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(s.state,{},e=>{let{onJoin:t,onLeave:s,onSync:r}=this.caller;this.joinRef=this.channel._joinRef(),this.state=et.syncState(this.state,e,t,s),this.pendingDiffs.forEach(e=>{this.state=et.syncDiff(this.state,e,t,s)}),this.pendingDiffs=[],r()}),this.channel._on(s.diff,{},e=>{let{onJoin:t,onLeave:s,onSync:r}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(e):(this.state=et.syncDiff(this.state,e,t,s),r())}),this.onJoin((e,t,s)=>{this.channel._trigger("presence",{event:"join",key:e,currentPresences:t,newPresences:s})}),this.onLeave((e,t,s)=>{this.channel._trigger("presence",{event:"leave",key:e,currentPresences:t,leftPresences:s})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,t,s,r){let i=this.cloneDeep(e),n=this.transformState(t),a={},o={};return this.map(i,(e,t)=>{n[e]||(o[e]=t)}),this.map(n,(e,t)=>{let s=i[e];if(s){let r=t.map(e=>e.presence_ref),i=s.map(e=>e.presence_ref),n=t.filter(e=>0>i.indexOf(e.presence_ref)),l=s.filter(e=>0>r.indexOf(e.presence_ref));n.length>0&&(a[e]=n),l.length>0&&(o[e]=l)}else a[e]=t}),this.syncDiff(i,{joins:a,leaves:o},s,r)}static syncDiff(e,t,s,r){let{joins:i,leaves:n}={joins:this.transformState(t.joins),leaves:this.transformState(t.leaves)};return s||(s=()=>{}),r||(r=()=>{}),this.map(i,(t,r)=>{var i;let n=null!==(i=e[t])&&void 0!==i?i:[];if(e[t]=this.cloneDeep(r),n.length>0){let s=e[t].map(e=>e.presence_ref),r=n.filter(e=>0>s.indexOf(e.presence_ref));e[t].unshift(...r)}s(t,n,r)}),this.map(n,(t,s)=>{let i=e[t];if(!i)return;let n=s.map(e=>e.presence_ref);i=i.filter(e=>0>n.indexOf(e.presence_ref)),e[t]=i,r(t,i,s),0===i.length&&delete e[t]}),e}static map(e,t){return Object.getOwnPropertyNames(e).map(s=>t(s,e[s]))}static transformState(e){return Object.getOwnPropertyNames(e=this.cloneDeep(e)).reduce((t,s)=>{let r=e[s];return"metas"in r?t[s]=r.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e)):t[s]=r,t},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}(A=b||(b={})).ALL="*",A.INSERT="INSERT",A.UPDATE="UPDATE",A.DELETE="DELETE",(x=k||(k={})).BROADCAST="broadcast",x.PRESENCE="presence",x.POSTGRES_CHANGES="postgres_changes",($=S||(S={})).SUBSCRIBED="SUBSCRIBED",$.TIMED_OUT="TIMED_OUT",$.CLOSED="CLOSED",$.CHANNEL_ERROR="CHANNEL_ERROR";class es{constructor(e,t={config:{}},s){this.topic=e,this.params=t,this.socket=s,this.bindings={},this.state=g.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},t.config),this.timeout=this.socket.timeout,this.joinPush=new ee(this,v.join,this.params,this.timeout),this.rejoinTimer=new z(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=g.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=g.closed,this.socket._remove(this)}),this._onError(e=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,e),this.state=g.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=g.errored,this.rejoinTimer.scheduleTimeout())}),this._on(v.reply,{},(e,t)=>{this._trigger(this._replyEventName(t),e)}),this.presence=new et(this),this.broadcastEndpointURL=Q(this.socket.endPoint)+"/api/broadcast"}subscribe(e,t=this.timeout){var s,r;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{let{config:{broadcast:i,presence:n,private:a}}=this.params;this._onError(t=>e&&e("CHANNEL_ERROR",t)),this._onClose(()=>e&&e("CLOSED"));let o={},l={broadcast:i,presence:n,postgres_changes:null!==(r=null===(s=this.bindings.postgres_changes)||void 0===s?void 0:s.map(e=>e.filter))&&void 0!==r?r:[],private:a};this.socket.accessToken&&(o.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:l},o)),this.joinedOnce=!0,this._rejoin(t),this.joinPush.receive("ok",({postgres_changes:t})=>{var s;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),void 0===t){e&&e("SUBSCRIBED");return}{let r=this.bindings.postgres_changes,i=null!==(s=null==r?void 0:r.length)&&void 0!==s?s:0,n=[];for(let s=0;s<i;s++){let i=r[s],{filter:{event:a,schema:o,table:l,filter:h}}=i,c=t&&t[s];if(c&&c.event===a&&c.schema===o&&c.table===l&&c.filter===h)n.push(Object.assign(Object.assign({},i),{id:c.id}));else{this.unsubscribe(),e&&e("CHANNEL_ERROR",Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=n,e&&e("SUBSCRIBED");return}}).receive("error",t=>{e&&e("CHANNEL_ERROR",Error(JSON.stringify(Object.values(t).join(", ")||"error")))}).receive("timeout",()=>{e&&e("TIMED_OUT")})}return this}presenceState(){return this.presence.state}async track(e,t={}){return await this.send({type:"presence",event:"track",payload:e},t.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,t,s){return this._on(e,t,s)}async send(e,t={}){var s,r;if(this._canPush()||"broadcast"!==e.type)return new Promise(s=>{var r,i,n;let a=this._push(e.type,e,t.timeout||this.timeout);"broadcast"!==e.type||(null===(n=null===(i=null===(r=this.params)||void 0===r?void 0:r.config)||void 0===i?void 0:i.broadcast)||void 0===n?void 0:n.ack)||s("ok"),a.receive("ok",()=>s("ok")),a.receive("error",()=>s("error")),a.receive("timeout",()=>s("timed out"))});{let{event:i,payload:n}=e,a={method:"POST",headers:{Authorization:this.socket.accessToken?`Bearer ${this.socket.accessToken}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:n}]})};try{let e=await this._fetchWithTimeout(this.broadcastEndpointURL,a,null!==(s=t.timeout)&&void 0!==s?s:this.timeout);return await (null===(r=e.body)||void 0===r?void 0:r.cancel()),e.ok?"ok":"error"}catch(e){if("AbortError"===e.name)return"timed out";return"error"}}}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=g.leaving;let t=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(v.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(s=>{let r=new ee(this,v.leave,{},e);r.receive("ok",()=>{t(),s("ok")}).receive("timeout",()=>{t(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})})}async _fetchWithTimeout(e,t,s){let r=new AbortController,i=setTimeout(()=>r.abort(),s),n=await this.socket.fetch(e,Object.assign(Object.assign({},t),{signal:r.signal}));return clearTimeout(i),n}_push(e,t,s=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let r=new ee(this,e,t,s);return this._canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}_onMessage(e,t,s){return t}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,t,s){var r,i;let n=e.toLocaleLowerCase(),{close:a,error:o,leave:l,join:h}=v;if(s&&[a,o,l,h].indexOf(n)>=0&&s!==this._joinRef())return;let c=this._onMessage(n,t,s);if(t&&!c)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(n)?null===(r=this.bindings.postgres_changes)||void 0===r||r.filter(e=>{var t,s,r;return(null===(t=e.filter)||void 0===t?void 0:t.event)==="*"||(null===(r=null===(s=e.filter)||void 0===s?void 0:s.event)||void 0===r?void 0:r.toLocaleLowerCase())===n}).map(e=>e.callback(c,s)):null===(i=this.bindings[n])||void 0===i||i.filter(e=>{var s,r,i,a,o,l;if(!["broadcast","presence","postgres_changes"].includes(n))return e.type.toLocaleLowerCase()===n;if("id"in e){let n=e.id,a=null===(s=e.filter)||void 0===s?void 0:s.event;return n&&(null===(r=t.ids)||void 0===r?void 0:r.includes(n))&&("*"===a||(null==a?void 0:a.toLocaleLowerCase())===(null===(i=t.data)||void 0===i?void 0:i.type.toLocaleLowerCase()))}{let s=null===(o=null===(a=null==e?void 0:e.filter)||void 0===a?void 0:a.event)||void 0===o?void 0:o.toLocaleLowerCase();return"*"===s||s===(null===(l=null==t?void 0:t.event)||void 0===l?void 0:l.toLocaleLowerCase())}}).map(e=>{if("object"==typeof c&&"ids"in c){let e=c.data,{schema:t,table:s,commit_timestamp:r,type:i,errors:n}=e;c=Object.assign(Object.assign({},{schema:t,table:s,commit_timestamp:r,eventType:i,new:{},old:{},errors:n}),this._getPayloadRecords(e))}e.callback(c,s)})}_isClosed(){return this.state===g.closed}_isJoined(){return this.state===g.joined}_isJoining(){return this.state===g.joining}_isLeaving(){return this.state===g.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,t,s){let r=e.toLocaleLowerCase(),i={type:r,filter:t,callback:s};return this.bindings[r]?this.bindings[r].push(i):this.bindings[r]=[i],this}_off(e,t){let s=e.toLocaleLowerCase();return this.bindings[s]=this.bindings[s].filter(e=>{var r;return!((null===(r=e.type)||void 0===r?void 0:r.toLocaleLowerCase())===s&&es.isEqual(e.filter,t))}),this}static isEqual(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let s in e)if(e[s]!==t[s])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(v.close,{},e)}_onError(e){this._on(v.error,{},t=>e(t))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=g.joining,this.joinPush.resend(e))}_getPayloadRecords(e){let t={new:{},old:{}};return("INSERT"===e.type||"UPDATE"===e.type)&&(t.new=K(e.columns,e.record)),("UPDATE"===e.type||"DELETE"===e.type)&&(t.old=K(e.columns,e.old_record)),t}}let er=()=>{},ei="undefined"!=typeof WebSocket;class en{constructor(e,t){var r;this.accessToken=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=q,this.params={},this.timeout=1e4,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=er,this.conn=null,this.sendBuffer=[],this.serializer=new F,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this._resolveFetch=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>Promise.resolve().then(s.bind(s,87407)).then(({default:t})=>t(...e)):fetch),(...e)=>t(...e)},this.endPoint=`${e}/${y.websocket}`,this.httpEndpoint=Q(e),(null==t?void 0:t.transport)?this.transport=t.transport:this.transport=null,(null==t?void 0:t.params)&&(this.params=t.params),(null==t?void 0:t.headers)&&(this.headers=Object.assign(Object.assign({},this.headers),t.headers)),(null==t?void 0:t.timeout)&&(this.timeout=t.timeout),(null==t?void 0:t.logger)&&(this.logger=t.logger),(null==t?void 0:t.heartbeatIntervalMs)&&(this.heartbeatIntervalMs=t.heartbeatIntervalMs);let i=null===(r=null==t?void 0:t.params)||void 0===r?void 0:r.apikey;i&&(this.accessToken=i,this.apiKey=i),this.reconnectAfterMs=(null==t?void 0:t.reconnectAfterMs)?t.reconnectAfterMs:e=>[1e3,2e3,5e3,1e4][e-1]||1e4,this.encode=(null==t?void 0:t.encode)?t.encode:(e,t)=>t(JSON.stringify(e)),this.decode=(null==t?void 0:t.decode)?t.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new z(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(null==t?void 0:t.fetch)}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this._endPointURL(),void 0,{headers:this.headers});return}if(ei){this.conn=new WebSocket(this._endPointURL()),this.setupConnection();return}this.conn=new ea(this._endPointURL(),void 0,{close:()=>{this.conn=null}}),s.e(407).then(s.t.bind(s,39407,23)).then(({default:e})=>{this.conn=new e(this._endPointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}disconnect(e,t){this.conn&&(this.conn.onclose=function(){},e?this.conn.close(e,null!=t?t:""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(e){let t=await e.unsubscribe();return 0===this.channels.length&&this.disconnect(),t}async removeAllChannels(){let e=await Promise.all(this.channels.map(e=>e.unsubscribe()));return this.disconnect(),e}log(e,t,s){this.logger(e,t,s)}connectionState(){switch(this.conn&&this.conn.readyState){case p.connecting:return m.Connecting;case p.open:return m.Open;case p.closing:return m.Closing;default:return m.Closed}}isConnected(){return this.connectionState()===m.Open}channel(e,t={config:{}}){let s=new es(`realtime:${e}`,t,this);return this.channels.push(s),s}push(e){let{topic:t,event:s,payload:r,ref:i}=e,n=()=>{this.encode(e,e=>{var t;null===(t=this.conn)||void 0===t||t.send(e)})};this.log("push",`${t} ${s} (${i})`,r),this.isConnected()?n():this.sendBuffer.push(n)}setAuth(e){this.accessToken=e,this.channels.forEach(t=>{e&&t.updateJoinPayload({access_token:e}),t.joinedOnce&&t._isJoined()&&t._push(v.access_token,{access_token:e})})}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let t=this.channels.find(t=>t.topic===e&&(t._isJoined()||t._isJoining()));t&&(this.log("transport",`leaving duplicate topic "${e}"`),t.unsubscribe())}_remove(e){this.channels=this.channels.filter(t=>t._joinRef()!==e._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:"1.0.0"}))}_onConnMessage(e){this.decode(e.data,e=>{let{topic:t,event:s,payload:r,ref:i}=e;(i&&i===this.pendingHeartbeatRef||s===(null==r?void 0:r.type))&&(this.pendingHeartbeatRef=null),this.log("receive",`${r.status||""} ${t} ${s} ${i&&"("+i+")"||""}`,r),this.channels.filter(e=>e._isMember(t)).forEach(e=>e._trigger(s,r,i)),this.stateChangeCallbacks.message.forEach(t=>t(e))})}_onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),this.heartbeatIntervalMs),this.stateChangeCallbacks.open.forEach(e=>e())}_onConnClose(e){this.log("transport","close",e),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(t=>t(e))}_onConnError(e){this.log("transport",e.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(t=>t(e))}_triggerChanError(){this.channels.forEach(e=>e._trigger(v.error))}_appendParams(e,t){if(0===Object.keys(t).length)return e;let s=e.match(/\?/)?"&":"?",r=new URLSearchParams(t);return`${e}${s}${r}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_sendHeartbeat(){var e;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),null===(e=this.conn)||void 0===e||e.close(1e3,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}}class ea{constructor(e,t,s){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=p.connecting,this.send=()=>{},this.url=null,this.url=e,this.close=s.close}}class eo extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function el(e){return"object"==typeof e&&null!==e&&"__isStorageError"in e}class eh extends eo{constructor(e,t){super(e),this.name="StorageApiError",this.status=t}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class ec extends eo{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}}let eu=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>Promise.resolve().then(s.bind(s,87407)).then(({default:t})=>t(...e)):fetch),(...e)=>t(...e)},ed=()=>{var e,t,r,i;return e=void 0,t=void 0,r=void 0,i=function*(){return"undefined"==typeof Response?(yield Promise.resolve().then(s.bind(s,87407))).Response:Response},new(r||(r=Promise))(function(s,n){function a(e){try{l(i.next(e))}catch(e){n(e)}}function o(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?s(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,o)}l((i=i.apply(e,t||[])).next())})};var ef=function(e,t,s,r){return new(s||(s=Promise))(function(i,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function o(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})};let ep=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),eg=(e,t)=>ef(void 0,void 0,void 0,function*(){let s=yield ed();e instanceof s?e.json().then(s=>{t(new eh(ep(s),e.status||500))}).catch(e=>{t(new ec(ep(e),e))}):t(new ec(ep(e),e))}),ev=(e,t,s,r)=>{let i={method:e,headers:(null==t?void 0:t.headers)||{}};return"GET"===e?i:(i.headers=Object.assign({"Content-Type":"application/json"},null==t?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),s))};function ey(e,t,s,r,i,n){return ef(this,void 0,void 0,function*(){return new Promise((a,o)=>{e(s,ev(t,r,i,n)).then(e=>{if(!e.ok)throw e;return(null==r?void 0:r.noResolveJson)?e:e.json()}).then(e=>a(e)).catch(e=>eg(e,o))})})}function em(e,t,s,r){return ef(this,void 0,void 0,function*(){return ey(e,"GET",t,s,r)})}function e_(e,t,s,r,i){return ef(this,void 0,void 0,function*(){return ey(e,"POST",t,r,i,s)})}function ew(e,t,s,r,i){return ef(this,void 0,void 0,function*(){return ey(e,"DELETE",t,r,i,s)})}var eb=function(e,t,s,r){return new(s||(s=Promise))(function(i,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function o(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})};let ek={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},eS={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class eT{constructor(e,t={},s,r){this.url=e,this.headers=t,this.bucketId=s,this.fetch=eu(r)}uploadOrUpdate(e,t,s,r){return eb(this,void 0,void 0,function*(){try{let i;let n=Object.assign(Object.assign({},eS),r),a=Object.assign(Object.assign({},this.headers),"POST"===e&&{"x-upsert":String(n.upsert)});"undefined"!=typeof Blob&&s instanceof Blob?((i=new FormData).append("cacheControl",n.cacheControl),i.append("",s)):"undefined"!=typeof FormData&&s instanceof FormData?(i=s).append("cacheControl",n.cacheControl):(i=s,a["cache-control"]=`max-age=${n.cacheControl}`,a["content-type"]=n.contentType);let o=this._removeEmptyFolders(t),l=this._getFinalPath(o),h=yield this.fetch(`${this.url}/object/${l}`,Object.assign({method:e,body:i,headers:a},(null==n?void 0:n.duplex)?{duplex:n.duplex}:{})),c=yield h.json();if(h.ok)return{data:{path:o,id:c.Id,fullPath:c.Key},error:null};return{data:null,error:c}}catch(e){if(el(e))return{data:null,error:e};throw e}})}upload(e,t,s){return eb(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,t,s)})}uploadToSignedUrl(e,t,s,r){return eb(this,void 0,void 0,function*(){let i=this._removeEmptyFolders(e),n=this._getFinalPath(i),a=new URL(this.url+`/object/upload/sign/${n}`);a.searchParams.set("token",t);try{let e;let t=Object.assign({upsert:eS.upsert},r),n=Object.assign(Object.assign({},this.headers),{"x-upsert":String(t.upsert)});"undefined"!=typeof Blob&&s instanceof Blob?((e=new FormData).append("cacheControl",t.cacheControl),e.append("",s)):"undefined"!=typeof FormData&&s instanceof FormData?(e=s).append("cacheControl",t.cacheControl):(e=s,n["cache-control"]=`max-age=${t.cacheControl}`,n["content-type"]=t.contentType);let o=yield this.fetch(a.toString(),{method:"PUT",body:e,headers:n}),l=yield o.json();if(o.ok)return{data:{path:i,fullPath:l.Key},error:null};return{data:null,error:l}}catch(e){if(el(e))return{data:null,error:e};throw e}})}createSignedUploadUrl(e,t){return eb(this,void 0,void 0,function*(){try{let s=this._getFinalPath(e),r=Object.assign({},this.headers);(null==t?void 0:t.upsert)&&(r["x-upsert"]="true");let i=yield e_(this.fetch,`${this.url}/object/upload/sign/${s}`,{},{headers:r}),n=new URL(this.url+i.url),a=n.searchParams.get("token");if(!a)throw new eo("No token returned by API");return{data:{signedUrl:n.toString(),path:e,token:a},error:null}}catch(e){if(el(e))return{data:null,error:e};throw e}})}update(e,t,s){return eb(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,t,s)})}move(e,t,s){return eb(this,void 0,void 0,function*(){try{let r=yield e_(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:t,destinationBucket:null==s?void 0:s.destinationBucket},{headers:this.headers});return{data:r,error:null}}catch(e){if(el(e))return{data:null,error:e};throw e}})}copy(e,t,s){return eb(this,void 0,void 0,function*(){try{let r=yield e_(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:t,destinationBucket:null==s?void 0:s.destinationBucket},{headers:this.headers});return{data:{path:r.Key},error:null}}catch(e){if(el(e))return{data:null,error:e};throw e}})}createSignedUrl(e,t,s){return eb(this,void 0,void 0,function*(){try{let r=this._getFinalPath(e),i=yield e_(this.fetch,`${this.url}/object/sign/${r}`,Object.assign({expiresIn:t},(null==s?void 0:s.transform)?{transform:s.transform}:{}),{headers:this.headers}),n=(null==s?void 0:s.download)?`&download=${!0===s.download?"":s.download}`:"",a=encodeURI(`${this.url}${i.signedURL}${n}`);return{data:i={signedUrl:a},error:null}}catch(e){if(el(e))return{data:null,error:e};throw e}})}createSignedUrls(e,t,s){return eb(this,void 0,void 0,function*(){try{let r=yield e_(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:t,paths:e},{headers:this.headers}),i=(null==s?void 0:s.download)?`&download=${!0===s.download?"":s.download}`:"";return{data:r.map(e=>Object.assign(Object.assign({},e),{signedUrl:e.signedURL?encodeURI(`${this.url}${e.signedURL}${i}`):null})),error:null}}catch(e){if(el(e))return{data:null,error:e};throw e}})}download(e,t){return eb(this,void 0,void 0,function*(){let s=void 0!==(null==t?void 0:t.transform),r=this.transformOptsToQueryString((null==t?void 0:t.transform)||{}),i=r?`?${r}`:"";try{let t=this._getFinalPath(e),r=yield em(this.fetch,`${this.url}/${s?"render/image/authenticated":"object"}/${t}${i}`,{headers:this.headers,noResolveJson:!0}),n=yield r.blob();return{data:n,error:null}}catch(e){if(el(e))return{data:null,error:e};throw e}})}getPublicUrl(e,t){let s=this._getFinalPath(e),r=[],i=(null==t?void 0:t.download)?`download=${!0===t.download?"":t.download}`:"";""!==i&&r.push(i);let n=void 0!==(null==t?void 0:t.transform),a=this.transformOptsToQueryString((null==t?void 0:t.transform)||{});""!==a&&r.push(a);let o=r.join("&");return""!==o&&(o=`?${o}`),{data:{publicUrl:encodeURI(`${this.url}/${n?"render/image":"object"}/public/${s}${o}`)}}}remove(e){return eb(this,void 0,void 0,function*(){try{let t=yield ew(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers});return{data:t,error:null}}catch(e){if(el(e))return{data:null,error:e};throw e}})}list(e,t,s){return eb(this,void 0,void 0,function*(){try{let r=Object.assign(Object.assign(Object.assign({},ek),t),{prefix:e||""}),i=yield e_(this.fetch,`${this.url}/object/list/${this.bucketId}`,r,{headers:this.headers},s);return{data:i,error:null}}catch(e){if(el(e))return{data:null,error:e};throw e}})}_getFinalPath(e){return`${this.bucketId}/${e}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){let t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}}let eE={"X-Client-Info":"storage-js/2.6.0"};var eO=function(e,t,s,r){return new(s||(s=Promise))(function(i,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function o(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})};class ej{constructor(e,t={},s){this.url=e,this.headers=Object.assign(Object.assign({},eE),t),this.fetch=eu(s)}listBuckets(){return eO(this,void 0,void 0,function*(){try{let e=yield em(this.fetch,`${this.url}/bucket`,{headers:this.headers});return{data:e,error:null}}catch(e){if(el(e))return{data:null,error:e};throw e}})}getBucket(e){return eO(this,void 0,void 0,function*(){try{let t=yield em(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers});return{data:t,error:null}}catch(e){if(el(e))return{data:null,error:e};throw e}})}createBucket(e,t={public:!1}){return eO(this,void 0,void 0,function*(){try{let s=yield e_(this.fetch,`${this.url}/bucket`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:this.headers});return{data:s,error:null}}catch(e){if(el(e))return{data:null,error:e};throw e}})}updateBucket(e,t){return eO(this,void 0,void 0,function*(){try{let s=yield function(e,t,s,r,i){return ef(this,void 0,void 0,function*(){return ey(e,"PUT",t,r,void 0,s)})}(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:this.headers});return{data:s,error:null}}catch(e){if(el(e))return{data:null,error:e};throw e}})}emptyBucket(e){return eO(this,void 0,void 0,function*(){try{let t=yield e_(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers});return{data:t,error:null}}catch(e){if(el(e))return{data:null,error:e};throw e}})}deleteBucket(e){return eO(this,void 0,void 0,function*(){try{let t=yield ew(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers});return{data:t,error:null}}catch(e){if(el(e))return{data:null,error:e};throw e}})}}class eC extends ej{constructor(e,t={},s){super(e,t,s)}from(e){return new eT(this.url,this.headers,e,this.fetch)}}let eP="";eP="undefined"!=typeof Deno?"deno":"undefined"!=typeof document?"web":"undefined"!=typeof navigator&&"ReactNative"===navigator.product?"react-native":"node";let eA={"X-Client-Info":`supabase-js-${eP}/2.44.4`},ex={headers:eA},e$={schema:"public"},eR={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},eI={};var eU=s(87407);let eL=e=>{let t;return t=e||("undefined"==typeof fetch?eU.default:fetch),(...e)=>t(...e)},eN=()=>"undefined"==typeof Headers?eU.Headers:Headers,eD=(e,t,s)=>{let r=eL(s),i=eN();return(s,n)=>{var a,o,l,h;return a=void 0,o=void 0,l=void 0,h=function*(){var a;let o=null!==(a=yield t())&&void 0!==a?a:e,l=new i(null==n?void 0:n.headers);return l.has("apikey")||l.set("apikey",e),l.has("Authorization")||l.set("Authorization",`Bearer ${o}`),r(s,Object.assign(Object.assign({},n),{headers:l}))},new(l||(l=Promise))(function(e,t){function s(e){try{i(h.next(e))}catch(e){t(e)}}function r(e){try{i(h.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):((i=t.value)instanceof l?i:new l(function(e){e(i)})).then(s,r)}i((h=h.apply(a,o||[])).next())})}},eB="2.64.4",eM={"X-Client-Info":`gotrue-js/${eB}`},eq="X-Supabase-Api-Version",eF={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},ez=()=>"undefined"!=typeof document,eK={tested:!1,writable:!1},eJ=()=>{if(!ez())return!1;try{if("object"!=typeof globalThis.localStorage)return!1}catch(e){return!1}if(eK.tested)return eK.writable;let e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),eK.tested=!0,eK.writable=!0}catch(e){eK.tested=!0,eK.writable=!1}return eK.writable};function eH(e){let t={},s=new URL(e);if(s.hash&&"#"===s.hash[0])try{let e=new URLSearchParams(s.hash.substring(1));e.forEach((e,s)=>{t[s]=e})}catch(e){}return s.searchParams.forEach((e,s)=>{t[s]=e}),t}let eG=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>Promise.resolve().then(s.bind(s,87407)).then(({default:t})=>t(...e)):fetch),(...e)=>t(...e)},eW=e=>"object"==typeof e&&null!==e&&"status"in e&&"ok"in e&&"json"in e&&"function"==typeof e.json,eV=async(e,t,s)=>{await e.setItem(t,JSON.stringify(s))},eZ=async(e,t)=>{let s=await e.getItem(t);if(!s)return null;try{return JSON.parse(s)}catch(e){return s}},eX=async(e,t)=>{await e.removeItem(t)};class eY{constructor(){this.promise=new eY.promiseConstructor((e,t)=>{this.resolve=e,this.reject=t})}}function eQ(e){let t=e.split(".");if(3!==t.length)throw Error("JWT is not valid: not a JWT structure");if(!/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i.test(t[1]))throw Error("JWT is not valid: payload is not in base64url format");let s=t[1];return JSON.parse(function(e){let t,s,r,i,n,a,o;let l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",h="",c=0;for(e=e.replace("-","+").replace("_","/");c<e.length;)i=l.indexOf(e.charAt(c++)),n=l.indexOf(e.charAt(c++)),a=l.indexOf(e.charAt(c++)),o=l.indexOf(e.charAt(c++)),t=i<<2|n>>4,s=(15&n)<<4|a>>2,r=(3&a)<<6|o,h+=String.fromCharCode(t),64!=a&&0!=s&&(h+=String.fromCharCode(s)),64!=o&&0!=r&&(h+=String.fromCharCode(r));return h}(s))}async function e0(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function e1(e){return("0"+e.toString(16)).substr(-2)}async function e4(e){let t=new TextEncoder,s=t.encode(e),r=await crypto.subtle.digest("SHA-256",s),i=new Uint8Array(r);return Array.from(i).map(e=>String.fromCharCode(e)).join("")}async function e2(e){let t="undefined"!=typeof crypto&&void 0!==crypto.subtle&&"undefined"!=typeof TextEncoder;if(!t)return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;let s=await e4(e);return btoa(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function e3(e,t,s=!1){let r=function(){let e=new Uint32Array(56);if("undefined"==typeof crypto){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",t=e.length,s="";for(let r=0;r<56;r++)s+=e.charAt(Math.floor(Math.random()*t));return s}return crypto.getRandomValues(e),Array.from(e,e1).join("")}(),i=r;s&&(i+="/PASSWORD_RECOVERY"),await eV(e,`${t}-code-verifier`,i);let n=await e2(r),a=r===n?"plain":"s256";return[n,a]}eY.promiseConstructor=Promise;let e8=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;class e7 extends Error{constructor(e,t,s){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=t,this.code=s}}function e9(e){return"object"==typeof e&&null!==e&&"__isAuthError"in e}class e5 extends e7{constructor(e,t,s){super(e,t,s),this.name="AuthApiError",this.status=t,this.code=s}}class e6 extends e7{constructor(e,t){super(e),this.name="AuthUnknownError",this.originalError=t}}class te extends e7{constructor(e,t,s,r){super(e,s,r),this.name=t,this.status=s}}class tt extends te{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}class ts extends te{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class tr extends te{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class ti extends te{constructor(e,t=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class tn extends te{constructor(e,t=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class ta extends te{constructor(e,t){super(e,"AuthRetryableFetchError",t,void 0)}}function to(e){return e9(e)&&"AuthRetryableFetchError"===e.name}class tl extends te{constructor(e,t,s){super(e,"AuthWeakPasswordError",t,"weak_password"),this.reasons=s}}var th=function(e,t){var s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(s[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(s[r[i]]=e[r[i]]);return s};let tc=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),tu=[502,503,504];async function td(e){var t;let s,r;if(!eW(e))throw new ta(tc(e),0);if(tu.includes(e.status))throw new ta(tc(e),e.status);try{s=await e.json()}catch(e){throw new e6(tc(e),e)}let i=function(e){let t=e.headers.get(eq);if(!t||!t.match(e8))return null;try{let e=new Date(`${t}T00:00:00.0Z`);return e}catch(e){return null}}(e);if(i&&i.getTime()>=eF["2024-01-01"].timestamp&&"object"==typeof s&&s&&"string"==typeof s.code?r=s.code:"object"==typeof s&&s&&"string"==typeof s.error_code&&(r=s.error_code),r){if("weak_password"===r)throw new tl(tc(s),e.status,(null===(t=s.weak_password)||void 0===t?void 0:t.reasons)||[])}else if("object"==typeof s&&s&&"object"==typeof s.weak_password&&s.weak_password&&Array.isArray(s.weak_password.reasons)&&s.weak_password.reasons.length&&s.weak_password.reasons.reduce((e,t)=>e&&"string"==typeof t,!0))throw new tl(tc(s),e.status,s.weak_password.reasons);throw new e5(tc(s),e.status||500,r)}let tf=(e,t,s,r)=>{let i={method:e,headers:(null==t?void 0:t.headers)||{}};return"GET"===e?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},null==t?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),s))};async function tp(e,t,s,r){var i;let n=Object.assign({},null==r?void 0:r.headers);n[eq]||(n[eq]=eF["2024-01-01"].name),(null==r?void 0:r.jwt)&&(n.Authorization=`Bearer ${r.jwt}`);let a=null!==(i=null==r?void 0:r.query)&&void 0!==i?i:{};(null==r?void 0:r.redirectTo)&&(a.redirect_to=r.redirectTo);let o=Object.keys(a).length?"?"+new URLSearchParams(a).toString():"",l=await tg(e,t,s+o,{headers:n,noResolveJson:null==r?void 0:r.noResolveJson},{},null==r?void 0:r.body);return(null==r?void 0:r.xform)?null==r?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function tg(e,t,s,r,i,n){let a;let o=tf(t,r,i,n);try{a=await e(s,Object.assign({},o))}catch(e){throw console.error(e),new ta(tc(e),0)}if(a.ok||await td(a),null==r?void 0:r.noResolveJson)return a;try{return await a.json()}catch(e){await td(e)}}function tv(e){var t;let s=null;e.access_token&&e.refresh_token&&e.expires_in&&(s=Object.assign({},e),e.expires_at||(s.expires_at=function(e){let t=Math.round(Date.now()/1e3);return t+e}(e.expires_in)));let r=null!==(t=e.user)&&void 0!==t?t:e;return{data:{session:s,user:r},error:null}}function ty(e){let t=tv(e);return!t.error&&e.weak_password&&"object"==typeof e.weak_password&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&"string"==typeof e.weak_password.message&&e.weak_password.reasons.reduce((e,t)=>e&&"string"==typeof t,!0)&&(t.data.weak_password=e.weak_password),t}function tm(e){var t;let s=null!==(t=e.user)&&void 0!==t?t:e;return{data:{user:s},error:null}}function t_(e){return{data:e,error:null}}function tw(e){let{action_link:t,email_otp:s,hashed_token:r,redirect_to:i,verification_type:n}=e,a=th(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),o=Object.assign({},a);return{data:{properties:{action_link:t,email_otp:s,hashed_token:r,redirect_to:i,verification_type:n},user:o},error:null}}function tb(e){return e}var tk=function(e,t){var s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(s[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(s[r[i]]=e[r[i]]);return s};class tS{constructor({url:e="",headers:t={},fetch:s}){this.url=e,this.headers=t,this.fetch=eG(s),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(e,t="global"){try{return await tp(this.fetch,"POST",`${this.url}/logout?scope=${t}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(e){if(e9(e))return{data:null,error:e};throw e}}async inviteUserByEmail(e,t={}){try{return await tp(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:t.data},headers:this.headers,redirectTo:t.redirectTo,xform:tm})}catch(e){if(e9(e))return{data:{user:null},error:e};throw e}}async generateLink(e){try{let{options:t}=e,s=tk(e,["options"]),r=Object.assign(Object.assign({},s),t);return"newEmail"in s&&(r.new_email=null==s?void 0:s.newEmail,delete r.newEmail),await tp(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:r,headers:this.headers,xform:tw,redirectTo:null==t?void 0:t.redirectTo})}catch(e){if(e9(e))return{data:{properties:null,user:null},error:e};throw e}}async createUser(e){try{return await tp(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:tm})}catch(e){if(e9(e))return{data:{user:null},error:e};throw e}}async listUsers(e){var t,s,r,i,n,a,o;try{let l={nextPage:null,lastPage:0,total:0},h=await tp(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:null!==(s=null===(t=null==e?void 0:e.page)||void 0===t?void 0:t.toString())&&void 0!==s?s:"",per_page:null!==(i=null===(r=null==e?void 0:e.perPage)||void 0===r?void 0:r.toString())&&void 0!==i?i:""},xform:tb});if(h.error)throw h.error;let c=await h.json(),u=null!==(n=h.headers.get("x-total-count"))&&void 0!==n?n:0,d=null!==(o=null===(a=h.headers.get("link"))||void 0===a?void 0:a.split(","))&&void 0!==o?o:[];return d.length>0&&(d.forEach(e=>{let t=parseInt(e.split(";")[0].split("=")[1].substring(0,1)),s=JSON.parse(e.split(";")[1].split("=")[1]);l[`${s}Page`]=t}),l.total=parseInt(u)),{data:Object.assign(Object.assign({},c),l),error:null}}catch(e){if(e9(e))return{data:{users:[]},error:e};throw e}}async getUserById(e){try{return await tp(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:tm})}catch(e){if(e9(e))return{data:{user:null},error:e};throw e}}async updateUserById(e,t){try{return await tp(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:t,headers:this.headers,xform:tm})}catch(e){if(e9(e))return{data:{user:null},error:e};throw e}}async deleteUser(e,t=!1){try{return await tp(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:t},xform:tm})}catch(e){if(e9(e))return{data:{user:null},error:e};throw e}}async _listFactors(e){try{let{data:t,error:s}=await tp(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:e=>({data:{factors:e},error:null})});return{data:t,error:s}}catch(e){if(e9(e))return{data:null,error:e};throw e}}async _deleteFactor(e){try{let t=await tp(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers});return{data:t,error:null}}catch(e){if(e9(e))return{data:null,error:e};throw e}}}let tT={getItem:e=>eJ()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{eJ()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{eJ()&&globalThis.localStorage.removeItem(e)}};function tE(e={}){return{getItem:t=>e[t]||null,setItem:(t,s)=>{e[t]=s},removeItem:t=>{delete e[t]}}}let tO={debug:!!(globalThis&&eJ()&&globalThis.localStorage&&"true"===globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug"))};class tj extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class tC extends tj{}async function tP(e,t,s){tO.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);let r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),tO.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await globalThis.navigator.locks.request(e,0===t?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async r=>{if(r){tO.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,r.name);try{return await s()}finally{tO.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,r.name)}}else{if(0===t)throw tO.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new tC(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(tO.debug)try{let e=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(e,null," "))}catch(e){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",e)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await s()}})}!function(){if("object"!=typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch(e){"undefined"!=typeof self&&(self.globalThis=self)}}();let tA={url:"http://localhost:9999",storageKey:"supabase.auth.token",autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:eM,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function tx(e,t,s){return await s()}class t${constructor(e){var t,s;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=t$.nextInstanceID,t$.nextInstanceID+=1,this.instanceID>0&&ez()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");let r=Object.assign(Object.assign({},tA),e);if(this.logDebugMessages=!!r.debug,"function"==typeof r.debug&&(this.logger=r.debug),this.persistSession=r.persistSession,this.storageKey=r.storageKey,this.autoRefreshToken=r.autoRefreshToken,this.admin=new tS({url:r.url,headers:r.headers,fetch:r.fetch}),this.url=r.url,this.headers=r.headers,this.fetch=eG(r.fetch),this.lock=r.lock||tx,this.detectSessionInUrl=r.detectSessionInUrl,this.flowType=r.flowType,this.hasCustomAuthorizationHeader=r.hasCustomAuthorizationHeader,r.lock?this.lock=r.lock:ez()&&(null===(t=null==globalThis?void 0:globalThis.navigator)||void 0===t?void 0:t.locks)?this.lock=tP:this.lock=tx,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?r.storage?this.storage=r.storage:eJ()?this.storage=tT:(this.memoryStorage={},this.storage=tE(this.memoryStorage)):(this.memoryStorage={},this.storage=tE(this.memoryStorage)),ez()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(e){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",e)}null===(s=this.broadcastChannel)||void 0===s||s.addEventListener("message",async e=>{this._debug("received broadcast notification from other tab or client",e),await this._notifyAllSubscribers(e.data.event,e.data.session,!1)})}this.initialize()}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${eB}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise||(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))()),await this.initializePromise}async _initialize(){try{let e=!!ez()&&await this._isPKCEFlow();if(this._debug("#_initialize()","begin","is PKCE flow",e),e||this.detectSessionInUrl&&this._isImplicitGrantFlow()){let{data:t,error:s}=await this._getSessionFromURL(e);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),(null==s?void 0:s.message)==="Identity is already linked"||(null==s?void 0:s.message)==="Identity is already linked to another user")return{error:s};return await this._removeSession(),{error:s}}let{session:r,redirectType:i}=t;return this._debug("#_initialize()","detected session in URL",r,"redirect type",i),await this._saveSession(r),setTimeout(async()=>{"recovery"===i?await this._notifyAllSubscribers("PASSWORD_RECOVERY",r):await this._notifyAllSubscribers("SIGNED_IN",r)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(e){if(e9(e))return{error:e};return{error:new e6("Unexpected error during initialization",e)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var t,s,r;try{let i=await tp(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:null!==(s=null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.data)&&void 0!==s?s:{},gotrue_meta_security:{captcha_token:null===(r=null==e?void 0:e.options)||void 0===r?void 0:r.captchaToken}},xform:tv}),{data:n,error:a}=i;if(a||!n)return{data:{user:null,session:null},error:a};let o=n.session,l=n.user;return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",o)),{data:{user:l,session:o},error:null}}catch(e){if(e9(e))return{data:{user:null,session:null},error:e};throw e}}async signUp(e){var t,s,r;try{let i;if("email"in e){let{email:s,password:r,options:n}=e,a=null,o=null;"pkce"===this.flowType&&([a,o]=await e3(this.storage,this.storageKey)),i=await tp(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:null==n?void 0:n.emailRedirectTo,body:{email:s,password:r,data:null!==(t=null==n?void 0:n.data)&&void 0!==t?t:{},gotrue_meta_security:{captcha_token:null==n?void 0:n.captchaToken},code_challenge:a,code_challenge_method:o},xform:tv})}else if("phone"in e){let{phone:t,password:n,options:a}=e;i=await tp(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:t,password:n,data:null!==(s=null==a?void 0:a.data)&&void 0!==s?s:{},channel:null!==(r=null==a?void 0:a.channel)&&void 0!==r?r:"sms",gotrue_meta_security:{captcha_token:null==a?void 0:a.captchaToken}},xform:tv})}else throw new tr("You must provide either an email or phone number and a password");let{data:n,error:a}=i;if(a||!n)return{data:{user:null,session:null},error:a};let o=n.session,l=n.user;return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",o)),{data:{user:l,session:o},error:null}}catch(e){if(e9(e))return{data:{user:null,session:null},error:e};throw e}}async signInWithPassword(e){try{let t;if("email"in e){let{email:s,password:r,options:i}=e;t=await tp(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:r,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}},xform:ty})}else if("phone"in e){let{phone:s,password:r,options:i}=e;t=await tp(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:r,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}},xform:ty})}else throw new tr("You must provide either an email or phone number and a password");let{data:s,error:r}=t;if(r)return{data:{user:null,session:null},error:r};if(!s||!s.session||!s.user)return{data:{user:null,session:null},error:new ts};return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign({user:s.user,session:s.session},s.weak_password?{weakPassword:s.weak_password}:null),error:r}}catch(e){if(e9(e))return{data:{user:null,session:null},error:e};throw e}}async signInWithOAuth(e){var t,s,r,i;return await this._handleProviderSignIn(e.provider,{redirectTo:null===(t=e.options)||void 0===t?void 0:t.redirectTo,scopes:null===(s=e.options)||void 0===s?void 0:s.scopes,queryParams:null===(r=e.options)||void 0===r?void 0:r.queryParams,skipBrowserRedirect:null===(i=e.options)||void 0===i?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async _exchangeCodeForSession(e){let t=await eZ(this.storage,`${this.storageKey}-code-verifier`),[s,r]=(null!=t?t:"").split("/"),{data:i,error:n}=await tp(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:s},xform:tv});return(await eX(this.storage,`${this.storageKey}-code-verifier`),n)?{data:{user:null,session:null,redirectType:null},error:n}:i&&i.session&&i.user?(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:null!=r?r:null}),error:n}):{data:{user:null,session:null,redirectType:null},error:new ts}}async signInWithIdToken(e){try{let{options:t,provider:s,token:r,access_token:i,nonce:n}=e,a=await tp(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:r,access_token:i,nonce:n,gotrue_meta_security:{captcha_token:null==t?void 0:t.captchaToken}},xform:tv}),{data:o,error:l}=a;if(l)return{data:{user:null,session:null},error:l};if(!o||!o.session||!o.user)return{data:{user:null,session:null},error:new ts};return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),{data:o,error:l}}catch(e){if(e9(e))return{data:{user:null,session:null},error:e};throw e}}async signInWithOtp(e){var t,s,r,i,n;try{if("email"in e){let{email:r,options:i}=e,n=null,a=null;"pkce"===this.flowType&&([n,a]=await e3(this.storage,this.storageKey));let{error:o}=await tp(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:r,data:null!==(t=null==i?void 0:i.data)&&void 0!==t?t:{},create_user:null===(s=null==i?void 0:i.shouldCreateUser)||void 0===s||s,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken},code_challenge:n,code_challenge_method:a},redirectTo:null==i?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}if("phone"in e){let{phone:t,options:s}=e,{data:a,error:o}=await tp(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:t,data:null!==(r=null==s?void 0:s.data)&&void 0!==r?r:{},create_user:null===(i=null==s?void 0:s.shouldCreateUser)||void 0===i||i,gotrue_meta_security:{captcha_token:null==s?void 0:s.captchaToken},channel:null!==(n=null==s?void 0:s.channel)&&void 0!==n?n:"sms"}});return{data:{user:null,session:null,messageId:null==a?void 0:a.message_id},error:o}}throw new tr("You must provide either an email or phone number.")}catch(e){if(e9(e))return{data:{user:null,session:null},error:e};throw e}}async verifyOtp(e){var t,s;try{let r,i;"options"in e&&(r=null===(t=e.options)||void 0===t?void 0:t.redirectTo,i=null===(s=e.options)||void 0===s?void 0:s.captchaToken);let{data:n,error:a}=await tp(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:r,xform:tv});if(a)throw a;if(!n)throw Error("An error occurred on token verification.");let o=n.session,l=n.user;return(null==o?void 0:o.access_token)&&(await this._saveSession(o),await this._notifyAllSubscribers("recovery"==e.type?"PASSWORD_RECOVERY":"SIGNED_IN",o)),{data:{user:l,session:o},error:null}}catch(e){if(e9(e))return{data:{user:null,session:null},error:e};throw e}}async signInWithSSO(e){var t,s,r;try{let i=null,n=null;return"pkce"===this.flowType&&([i,n]=await e3(this.storage,this.storageKey)),await tp(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:null!==(s=null===(t=e.options)||void 0===t?void 0:t.redirectTo)&&void 0!==s?s:void 0}),(null===(r=null==e?void 0:e.options)||void 0===r?void 0:r.captchaToken)?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:n}),headers:this.headers,xform:t_})}catch(e){if(e9(e))return{data:null,error:e};throw e}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{let{data:{session:t},error:s}=e;if(s)throw s;if(!t)throw new tt;let{error:r}=await tp(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:t.access_token});return{data:{user:null,session:null},error:r}})}catch(e){if(e9(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{let t=`${this.url}/resend`;if("email"in e){let{email:s,type:r,options:i}=e,{error:n}=await tp(this.fetch,"POST",t,{headers:this.headers,body:{email:s,type:r,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}},redirectTo:null==i?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:n}}if("phone"in e){let{phone:s,type:r,options:i}=e,{data:n,error:a}=await tp(this.fetch,"POST",t,{headers:this.headers,body:{phone:s,type:r,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:null==n?void 0:n.message_id},error:a}}throw new tr("You must provide either an email or phone number and a type")}catch(e){if(e9(e))return{data:{user:null,session:null},error:e};throw e}}async getSession(){await this.initializePromise;let e=await this._acquireLock(-1,async()=>this._useSession(async e=>e));return e}async _acquireLock(e,t){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){let e=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await e,await t()))();return this.pendingInLock.push((async()=>{try{await s}catch(e){}})()),s}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;let e=t();for(this.pendingInLock.push((async()=>{try{await e}catch(e){}})()),await e;this.pendingInLock.length;){let e=[...this.pendingInLock];await Promise.all(e),this.pendingInLock.splice(0,e.length)}return await e}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{let t=await this.__loadSession();return await e(t)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",Error().stack);try{let e=null,t=await eZ(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",t),null!==t&&(this._isValidSession(t)?e=t:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!e)return{data:{session:null},error:null};let s=!!e.expires_at&&e.expires_at<=Date.now()/1e3;if(this._debug("#__loadSession()",`session has${s?"":" not"} expired`,"expires_at",e.expires_at),!s){if(this.storage.isServer){let t=this.suppressGetSessionWarning,s=new Proxy(e,{get:(e,s,r)=>(t||"user"!==s||(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and many not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t=!0,this.suppressGetSessionWarning=!0),Reflect.get(e,s,r))});e=s}return{data:{session:e},error:null}}let{session:r,error:i}=await this._callRefreshToken(e.refresh_token);if(i)return{data:{session:null},error:i};return{data:{session:r},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;let t=await this._acquireLock(-1,async()=>await this._getUser());return t}async _getUser(e){try{if(e)return await tp(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:tm});return await this._useSession(async e=>{var t,s,r;let{data:i,error:n}=e;if(n)throw n;return(null===(t=i.session)||void 0===t?void 0:t.access_token)||this.hasCustomAuthorizationHeader?await tp(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:null!==(r=null===(s=i.session)||void 0===s?void 0:s.access_token)&&void 0!==r?r:void 0,xform:tm}):{data:{user:null},error:new tt}})}catch(e){if(e9(e))return{data:{user:null},error:e};throw e}}async updateUser(e,t={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,t))}async _updateUser(e,t={}){try{return await this._useSession(async s=>{let{data:r,error:i}=s;if(i)throw i;if(!r.session)throw new tt;let n=r.session,a=null,o=null;"pkce"===this.flowType&&null!=e.email&&([a,o]=await e3(this.storage,this.storageKey));let{data:l,error:h}=await tp(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:null==t?void 0:t.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:o}),jwt:n.access_token,xform:tm});if(h)throw h;return n.user=l.user,await this._saveSession(n),await this._notifyAllSubscribers("USER_UPDATED",n),{data:{user:n.user},error:null}})}catch(e){if(e9(e))return{data:{user:null},error:e};throw e}}_decodeJWT(e){return eQ(e)}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new tt;let t=Date.now()/1e3,s=t,r=!0,i=null,n=eQ(e.access_token);if(n.exp&&(r=(s=n.exp)<=t),r){let{session:t,error:s}=await this._callRefreshToken(e.refresh_token);if(s)return{data:{user:null,session:null},error:s};if(!t)return{data:{user:null,session:null},error:null};i=t}else{let{data:r,error:n}=await this._getUser(e.access_token);if(n)throw n;i={access_token:e.access_token,refresh_token:e.refresh_token,user:r.user,token_type:"bearer",expires_in:s-t,expires_at:s},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(e){if(e9(e))return{data:{session:null,user:null},error:e};throw e}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async t=>{var s;if(!e){let{data:r,error:i}=t;if(i)throw i;e=null!==(s=r.session)&&void 0!==s?s:void 0}if(!(null==e?void 0:e.refresh_token))throw new tt;let{session:r,error:i}=await this._callRefreshToken(e.refresh_token);return i?{data:{user:null,session:null},error:i}:r?{data:{user:r.user,session:r},error:null}:{data:{user:null,session:null},error:null}})}catch(e){if(e9(e))return{data:{user:null,session:null},error:e};throw e}}async _getSessionFromURL(e){try{if(!ez())throw new ti("No browser detected.");if("implicit"!==this.flowType||this._isImplicitGrantFlow()){if("pkce"==this.flowType&&!e)throw new tn("Not a valid PKCE flow url.")}else throw new ti("Not a valid implicit grant flow url.");let t=eH(window.location.href);if(e){if(!t.code)throw new tn("No code detected.");let{data:e,error:s}=await this._exchangeCodeForSession(t.code);if(s)throw s;let r=new URL(window.location.href);return r.searchParams.delete("code"),window.history.replaceState(window.history.state,"",r.toString()),{data:{session:e.session,redirectType:null},error:null}}if(t.error||t.error_description||t.error_code)throw new ti(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});let{provider_token:s,provider_refresh_token:r,access_token:i,refresh_token:n,expires_in:a,expires_at:o,token_type:l}=t;if(!i||!a||!n||!l)throw new ti("No session defined in URL");let h=Math.round(Date.now()/1e3),c=parseInt(a),u=h+c;o&&(u=parseInt(o));let d=u-h;1e3*d<=3e4&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${d}s, should have been closer to ${c}s`);let f=u-c;h-f>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",f,u,h):h-f<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clok for skew",f,u,h);let{data:p,error:g}=await this._getUser(i);if(g)throw g;let v={provider_token:s,provider_refresh_token:r,access_token:i,expires_in:c,expires_at:u,refresh_token:n,token_type:l,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:v,redirectType:t.type},error:null}}catch(e){if(e9(e))return{data:{session:null,redirectType:null},error:e};throw e}}_isImplicitGrantFlow(){let e=eH(window.location.href);return!!(ez()&&(e.access_token||e.error_description))}async _isPKCEFlow(){let e=eH(window.location.href),t=await eZ(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&t)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async t=>{var s;let{data:r,error:i}=t;if(i)return{error:i};let n=null===(s=r.session)||void 0===s?void 0:s.access_token;if(n){let{error:t}=await this.admin.signOut(n,e);if(t&&!(e9(t)&&"AuthApiError"===t.name&&(404===t.status||401===t.status||403===t.status)))return{error:t}}return"others"!==e&&(await this._removeSession(),await eX(this.storage,`${this.storageKey}-code-verifier`),await this._notifyAllSubscribers("SIGNED_OUT",null)),{error:null}})}onAuthStateChange(e){let t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),s={id:t,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",t),this.stateChangeEmitters.delete(t)}};return this._debug("#onAuthStateChange()","registered callback with id",t),this.stateChangeEmitters.set(t,s),(async()=>{await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(t)})})(),{data:{subscription:s}}}async _emitInitialSession(e){return await this._useSession(async t=>{var s,r;try{let{data:{session:r},error:i}=t;if(i)throw i;await (null===(s=this.stateChangeEmitters.get(e))||void 0===s?void 0:s.callback("INITIAL_SESSION",r)),this._debug("INITIAL_SESSION","callback id",e,"session",r)}catch(t){await (null===(r=this.stateChangeEmitters.get(e))||void 0===r?void 0:r.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",t),console.error(t)}})}async resetPasswordForEmail(e,t={}){let s=null,r=null;"pkce"===this.flowType&&([s,r]=await e3(this.storage,this.storageKey,!0));try{return await tp(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:s,code_challenge_method:r,gotrue_meta_security:{captcha_token:t.captchaToken}},headers:this.headers,redirectTo:t.redirectTo})}catch(e){if(e9(e))return{data:null,error:e};throw e}}async getUserIdentities(){var e;try{let{data:t,error:s}=await this.getUser();if(s)throw s;return{data:{identities:null!==(e=t.user.identities)&&void 0!==e?e:[]},error:null}}catch(e){if(e9(e))return{data:null,error:e};throw e}}async linkIdentity(e){var t;try{let{data:s,error:r}=await this._useSession(async t=>{var s,r,i,n,a;let{data:o,error:l}=t;if(l)throw l;let h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:null===(s=e.options)||void 0===s?void 0:s.redirectTo,scopes:null===(r=e.options)||void 0===r?void 0:r.scopes,queryParams:null===(i=e.options)||void 0===i?void 0:i.queryParams,skipBrowserRedirect:!0});return await tp(this.fetch,"GET",h,{headers:this.headers,jwt:null!==(a=null===(n=o.session)||void 0===n?void 0:n.access_token)&&void 0!==a?a:void 0})});if(r)throw r;return!ez()||(null===(t=e.options)||void 0===t?void 0:t.skipBrowserRedirect)||window.location.assign(null==s?void 0:s.url),{data:{provider:e.provider,url:null==s?void 0:s.url},error:null}}catch(t){if(e9(t))return{data:{provider:e.provider,url:null},error:t};throw t}}async unlinkIdentity(e){try{return await this._useSession(async t=>{var s,r;let{data:i,error:n}=t;if(n)throw n;return await tp(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:null!==(r=null===(s=i.session)||void 0===s?void 0:s.access_token)&&void 0!==r?r:void 0})})}catch(e){if(e9(e))return{data:null,error:e};throw e}}async _refreshAccessToken(e){let t=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(t,"begin");try{let s=Date.now();return await function(e,t){let s=new Promise((s,r)=>{(async()=>{for(let i=0;i<1/0;i++)try{let r=await e(i);if(!t(i,null,r)){s(r);return}}catch(e){if(!t(i,e)){r(e);return}}})()});return s}(async s=>(s>0&&await e0(200*Math.pow(2,s-1)),this._debug(t,"refreshing attempt",s),await tp(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:tv})),(e,t)=>t&&to(t)&&Date.now()+200*Math.pow(2,e)-s<3e4)}catch(e){if(this._debug(t,"error",e),e9(e))return{data:{session:null,user:null},error:e};throw e}finally{this._debug(t,"end")}}_isValidSession(e){return"object"==typeof e&&null!==e&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,t){let s=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:t.redirectTo,scopes:t.scopes,queryParams:t.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",t,"url",s),ez()&&!t.skipBrowserRedirect&&window.location.assign(s),{data:{provider:e,url:s},error:null}}async _recoverAndRefresh(){var e;let t="#_recoverAndRefresh()";this._debug(t,"begin");try{let s=await eZ(this.storage,this.storageKey);if(this._debug(t,"session from storage",s),!this._isValidSession(s)){this._debug(t,"session is not valid"),null!==s&&await this._removeSession();return}let r=Math.round(Date.now()/1e3),i=(null!==(e=s.expires_at)&&void 0!==e?e:1/0)<r+10;if(this._debug(t,`session has${i?"":" not"} expired with margin of 10s`),i){if(this.autoRefreshToken&&s.refresh_token){let{error:e}=await this._callRefreshToken(s.refresh_token);e&&(console.error(e),to(e)||(this._debug(t,"refresh failed with a non-retryable error, removing the session",e),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(e){this._debug(t,"error",e),console.error(e);return}finally{this._debug(t,"end")}}async _callRefreshToken(e){var t,s;if(!e)throw new tt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;let r=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(r,"begin");try{this.refreshingDeferred=new eY;let{data:t,error:s}=await this._refreshAccessToken(e);if(s)throw s;if(!t.session)throw new tt;await this._saveSession(t.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",t.session);let r={session:t.session,error:null};return this.refreshingDeferred.resolve(r),r}catch(e){if(this._debug(r,"error",e),e9(e)){let s={session:null,error:e};return to(e)||(await this._removeSession(),await this._notifyAllSubscribers("SIGNED_OUT",null)),null===(t=this.refreshingDeferred)||void 0===t||t.resolve(s),s}throw null===(s=this.refreshingDeferred)||void 0===s||s.reject(e),e}finally{this.refreshingDeferred=null,this._debug(r,"end")}}async _notifyAllSubscribers(e,t,s=!0){let r=`#_notifyAllSubscribers(${e})`;this._debug(r,"begin",t,`broadcast = ${s}`);try{this.broadcastChannel&&s&&this.broadcastChannel.postMessage({event:e,session:t});let r=[],i=Array.from(this.stateChangeEmitters.values()).map(async s=>{try{await s.callback(e,t)}catch(e){r.push(e)}});if(await Promise.all(i),r.length>0){for(let e=0;e<r.length;e+=1)console.error(r[e]);throw r[0]}}finally{this._debug(r,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await eV(this.storage,this.storageKey,e)}async _removeSession(){this._debug("#_removeSession()"),await eX(this.storage,this.storageKey)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");let e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&ez()&&(null==window?void 0:window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}catch(e){console.error("removing visibilitychange callback failed",e)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");let e=setInterval(()=>this._autoRefreshTokenTick(),3e4);this.autoRefreshTicker=e,e&&"object"==typeof e&&"function"==typeof e.unref?e.unref():"undefined"!=typeof Deno&&"function"==typeof Deno.unrefTimer&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");let e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{let e=Date.now();try{return await this._useSession(async t=>{let{data:{session:s}}=t;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}let r=Math.floor((1e3*s.expires_at-e)/3e4);this._debug("#_autoRefreshTokenTick()",`access token expires in ${r} ticks, a tick lasts 30000ms, refresh threshold is 3 ticks`),r<=3&&await this._callRefreshToken(s.refresh_token)})}catch(e){console.error("Auto refresh tick failed with error. This is likely a transient error.",e)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof tj)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!ez()||!(null==window?void 0:window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),null==window||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){let t=`#_onVisibilityChanged(${e})`;this._debug(t,"visibilityState",document.visibilityState),"visible"===document.visibilityState?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if("visible"!==document.visibilityState){this._debug(t,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):"hidden"===document.visibilityState&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,t,s){let r=[`provider=${encodeURIComponent(t)}`];if((null==s?void 0:s.redirectTo)&&r.push(`redirect_to=${encodeURIComponent(s.redirectTo)}`),(null==s?void 0:s.scopes)&&r.push(`scopes=${encodeURIComponent(s.scopes)}`),"pkce"===this.flowType){let[e,t]=await e3(this.storage,this.storageKey),s=new URLSearchParams({code_challenge:`${encodeURIComponent(e)}`,code_challenge_method:`${encodeURIComponent(t)}`});r.push(s.toString())}if(null==s?void 0:s.queryParams){let e=new URLSearchParams(s.queryParams);r.push(e.toString())}return(null==s?void 0:s.skipBrowserRedirect)&&r.push(`skip_http_redirect=${s.skipBrowserRedirect}`),`${e}?${r.join("&")}`}async _unenroll(e){try{return await this._useSession(async t=>{var s;let{data:r,error:i}=t;return i?{data:null,error:i}:await tp(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:null===(s=null==r?void 0:r.session)||void 0===s?void 0:s.access_token})})}catch(e){if(e9(e))return{data:null,error:e};throw e}}async _enroll(e){try{return await this._useSession(async t=>{var s,r;let{data:i,error:n}=t;if(n)return{data:null,error:n};let{data:a,error:o}=await tp(this.fetch,"POST",`${this.url}/factors`,{body:{friendly_name:e.friendlyName,factor_type:e.factorType,issuer:e.issuer},headers:this.headers,jwt:null===(s=null==i?void 0:i.session)||void 0===s?void 0:s.access_token});return o?{data:null,error:o}:((null===(r=null==a?void 0:a.totp)||void 0===r?void 0:r.qr_code)&&(a.totp.qr_code=`data:image/svg+xml;utf-8,${a.totp.qr_code}`),{data:a,error:null})})}catch(e){if(e9(e))return{data:null,error:e};throw e}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async t=>{var s;let{data:r,error:i}=t;if(i)return{data:null,error:i};let{data:n,error:a}=await tp(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:null===(s=null==r?void 0:r.session)||void 0===s?void 0:s.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+n.expires_in},n)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",n),{data:n,error:a})})}catch(e){if(e9(e))return{data:null,error:e};throw e}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async t=>{var s;let{data:r,error:i}=t;return i?{data:null,error:i}:await tp(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{headers:this.headers,jwt:null===(s=null==r?void 0:r.session)||void 0===s?void 0:s.access_token})})}catch(e){if(e9(e))return{data:null,error:e};throw e}})}async _challengeAndVerify(e){let{data:t,error:s}=await this._challenge({factorId:e.factorId});return s?{data:null,error:s}:await this._verify({factorId:e.factorId,challengeId:t.id,code:e.code})}async _listFactors(){let{data:{user:e},error:t}=await this.getUser();if(t)return{data:null,error:t};let s=(null==e?void 0:e.factors)||[],r=s.filter(e=>"totp"===e.factor_type&&"verified"===e.status);return{data:{all:s,totp:r},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var t,s;let{data:{session:r},error:i}=e;if(i)return{data:null,error:i};if(!r)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};let n=this._decodeJWT(r.access_token),a=null;n.aal&&(a=n.aal);let o=a,l=null!==(s=null===(t=r.user.factors)||void 0===t?void 0:t.filter(e=>"verified"===e.status))&&void 0!==s?s:[];l.length>0&&(o="aal2");let h=n.amr||[];return{data:{currentLevel:a,nextLevel:o,currentAuthenticationMethods:h},error:null}}))}}t$.nextInstanceID=0;var tR=t$;class tI extends tR{constructor(e){super(e)}}class tU{constructor(e,t,s){var r,i,n;if(this.supabaseUrl=e,this.supabaseKey=t,!e)throw Error("supabaseUrl is required.");if(!t)throw Error("supabaseKey is required.");let a=e.replace(/\/$/,"");this.realtimeUrl=`${a}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${a}/auth/v1`,this.storageUrl=`${a}/storage/v1`,this.functionsUrl=`${a}/functions/v1`;let o=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,l={db:e$,realtime:eI,auth:Object.assign(Object.assign({},eR),{storageKey:o}),global:ex},h=function(e,t){let{db:s,auth:r,realtime:i,global:n}=e,{db:a,auth:o,realtime:l,global:h}=t;return{db:Object.assign(Object.assign({},a),s),auth:Object.assign(Object.assign({},o),r),realtime:Object.assign(Object.assign({},l),i),global:Object.assign(Object.assign({},h),n)}}(null!=s?s:{},l);this.storageKey=null!==(r=h.auth.storageKey)&&void 0!==r?r:"",this.headers=null!==(i=h.global.headers)&&void 0!==i?i:{},this.auth=this._initSupabaseAuthClient(null!==(n=h.auth)&&void 0!==n?n:{},this.headers,h.global.fetch),this.fetch=eD(t,this._getAccessToken.bind(this),h.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},h.realtime)),this.rest=new L(`${a}/rest/v1`,{headers:this.headers,schema:h.db.schema,fetch:this.fetch}),this._listenForAuthEvents()}get functions(){return new u(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new eC(this.storageUrl,this.headers,this.fetch)}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},s={}){return this.rest.rpc(e,t,s)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,t,s,r,i,n;return s=this,r=void 0,i=void 0,n=function*(){let{data:s}=yield this.auth.getSession();return null!==(t=null===(e=s.session)||void 0===e?void 0:e.access_token)&&void 0!==t?t:null},new(i||(i=Promise))(function(e,t){function a(e){try{l(n.next(e))}catch(e){t(e)}}function o(e){try{l(n.throw(e))}catch(e){t(e)}}function l(t){var s;t.done?e(t.value):((s=t.value)instanceof i?s:new i(function(e){e(s)})).then(a,o)}l((n=n.apply(s,r||[])).next())})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:s,storage:r,storageKey:i,flowType:n,debug:a},o,l){var h;let c={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new tI({url:this.authUrl,headers:Object.assign(Object.assign({},c),o),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:s,storage:r,flowType:n,debug:a,fetch:l,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(e){return new en(this.realtimeUrl,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},null==e?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",null==t?void 0:t.access_token)})}_handleTokenChanged(e,t,s){("TOKEN_REFRESHED"===e||"SIGNED_IN"===e)&&this.changedAccessToken!==s?(this.realtime.setAuth(null!=s?s:null),this.changedAccessToken=s):"SIGNED_OUT"===e&&(this.realtime.setAuth(this.supabaseKey),"STORAGE"==t&&this.auth.signOut(),this.changedAccessToken=void 0)}}let tL=(e,t,s)=>new tU(e,t,s);var tN=Object.create,tD=Object.defineProperty,tB=Object.getOwnPropertyDescriptor,tM=Object.getOwnPropertyNames,tq=Object.getPrototypeOf,tF=Object.prototype.hasOwnProperty,tz=(e,t,s,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of tM(t))tF.call(e,i)||i===s||tD(e,i,{get:()=>t[i],enumerable:!(r=tB(t,i))||r.enumerable});return e},tK=(e,t,s)=>(s=null!=e?tN(tq(e)):{},tz(!t&&e&&e.__esModule?s:tD(s,"default",{value:e,enumerable:!0}),e)),tJ=(R={"../../node_modules/.pnpm/cookie@0.5.0/node_modules/cookie/index.js"(e){e.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var s={},i=(t||{}).decode||r,n=0;n<e.length;){var a=e.indexOf("=",n);if(-1===a)break;var o=e.indexOf(";",n);if(-1===o)o=e.length;else if(o<a){n=e.lastIndexOf(";",a-1)+1;continue}var l=e.slice(n,a).trim();if(void 0===s[l]){var h=e.slice(a+1,o).trim();34===h.charCodeAt(0)&&(h=h.slice(1,-1)),s[l]=function(e,t){try{return t(e)}catch(t){return e}}(h,i)}n=o+1}return s},e.serialize=function(e,r,n){var a=n||{},o=a.encode||i;if("function"!=typeof o)throw TypeError("option encode is invalid");if(!s.test(e))throw TypeError("argument name is invalid");var l=o(r);if(l&&!s.test(l))throw TypeError("argument val is invalid");var h=e+"="+l;if(null!=a.maxAge){var c=a.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");h+="; Max-Age="+Math.floor(c)}if(a.domain){if(!s.test(a.domain))throw TypeError("option domain is invalid");h+="; Domain="+a.domain}if(a.path){if(!s.test(a.path))throw TypeError("option path is invalid");h+="; Path="+a.path}if(a.expires){var u=a.expires;if("[object Date]"!==t.call(u)&&!(u instanceof Date)||isNaN(u.valueOf()))throw TypeError("option expires is invalid");h+="; Expires="+u.toUTCString()}if(a.httpOnly&&(h+="; HttpOnly"),a.secure&&(h+="; Secure"),a.priority)switch("string"==typeof a.priority?a.priority.toLowerCase():a.priority){case"low":h+="; Priority=Low";break;case"medium":h+="; Priority=Medium";break;case"high":h+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":h+="; SameSite=Strict";break;case"lax":h+="; SameSite=Lax";break;case"none":h+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return h};var t=Object.prototype.toString,s=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function r(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}function i(e){return encodeURIComponent(e)}}},function(){return I||(0,R[tM(R)[0]])((I={exports:{}}).exports,I),I.exports}),tH=tK(tJ()),tG=tK(tJ());function tW(e){if(!e)return null;try{let t=JSON.parse(e);if(!t)return null;if("Object"===t.constructor.name)return t;if("Array"!==t.constructor.name)throw Error(`Unexpected format: ${t.constructor.name}`);let[s,r,i]=t[0].split("."),a=n(r),o=new TextDecoder,{exp:l,sub:h,...c}=JSON.parse(o.decode(a));return{expires_at:l,expires_in:l-Math.round(Date.now()/1e3),token_type:"bearer",access_token:t[0],refresh_token:t[1],provider_token:t[2],provider_refresh_token:t[3],user:{id:h,factors:t[4],...c}}}catch(e){return console.warn("Failed to parse cookie string:",e),null}}function tV(e){var t;return JSON.stringify([e.access_token,e.refresh_token,e.provider_token,e.provider_refresh_token,(null==(t=e.user)?void 0:t.factors)??null])}function tZ(){return"undefined"!=typeof window&&void 0!==window.document}var tX={path:"/",maxAge:31536e6},tY=class{constructor(e){this.cookieOptions={...tX,...e}}getItem(e){let t=this.getCookie(e);return t?e.endsWith("-code-verifier")?t:JSON.stringify(tW(t)):null}setItem(e,t){if(e.endsWith("-code-verifier")){this.setCookie(e,t);return}let s=JSON.parse(t),r=tV(s);this.setCookie(e,r)}removeItem(e){this.deleteCookie(e)}},tQ=class extends tY{constructor(e){super(e)}getCookie(e){if(!tZ())return null;let t=(0,tH.parse)(document.cookie);return t[e]}setCookie(e,t){if(!tZ())return null;document.cookie=(0,tH.serialize)(e,t,{...this.cookieOptions,httpOnly:!1})}deleteCookie(e){if(!tZ())return null;document.cookie=(0,tH.serialize)(e,"",{...this.cookieOptions,maxAge:0,httpOnly:!1})}};function t0(e,t,s){var r;let i=tZ();return tL(e,t,{...s,auth:{flowType:"pkce",autoRefreshToken:i,detectSessionInUrl:i,persistSession:!0,storage:s.auth.storage,...(null==(r=s.auth)?void 0:r.storageKey)?{storageKey:s.auth.storageKey}:{}}})}var t1=tG.parse,t4=tG.serialize;/*!
|
|
2
|
+
* cookie
|
|
3
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
4
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
5
|
+
* MIT Licensed
|
|
6
|
+
*/}}]);
|
package/dist/src/web/nextui/_next/static/chunks/{902-17fd074eab50e03c.js → 856-808babe20420dc5b.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[902],{2185:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var o=r(n(99570)),i=n(24004);t.Z=(0,o.default)((0,i.jsx)("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish")},93522:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var o=r(n(99570)),i=n(24004);t.Z=(0,o.default)((0,i.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save")},68833:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var o=r(n(99570)),i=n(24004);t.Z=(0,o.default)((0,i.jsx)("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"}),"Upload")},63346:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=n(79042),o=n(94312),i=n(14978);n(54184);var a=n(53468),s=n(84006),l=n(31608),u=n(87286),d=n(34600),c=n(95203),p=n(16349),f=n(77141),h=n(92863),g=n(41776),m=n(60201),v=n(80683);function y(e){return(0,v.ZP)("MuiCollapse",e)}(0,m.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var b=n(24004);let x=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],k=e=>{let{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,s.Z)(r,y,n)},w=(0,l.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})(({theme:e,ownerState:t})=>(0,r.Z)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&(0,r.Z)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"})),_=(0,l.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>(0,r.Z)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})),Z=(0,l.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>(0,r.Z)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})),S=i.forwardRef(function(e,t){let n=(0,u.i)({props:e,name:"MuiCollapse"}),{addEndListener:s,children:l,className:m,collapsedSize:v="0px",component:y,easing:S,in:C,onEnter:E,onEntered:P,onEntering:A,onExit:R,onExited:j,onExiting:O,orientation:M="vertical",style:L,timeout:N=p.x9.standard,TransitionComponent:W=d.ZP}=n,z=(0,o.Z)(n,x),I=(0,r.Z)({},n,{orientation:M,collapsedSize:v}),$=k(I),T=(0,h.Z)(),D=(0,c.Z)(),K=i.useRef(null),F=i.useRef(),G="number"==typeof v?`${v}px`:v,H="horizontal"===M,V=H?"width":"height",B=i.useRef(null),q=(0,g.Z)(t,B),U=e=>t=>{if(e){let n=B.current;void 0===t?e(n):e(n,t)}},J=()=>K.current?K.current[H?"clientWidth":"clientHeight"]:0,Q=U((e,t)=>{K.current&&H&&(K.current.style.position="absolute"),e.style[V]=G,E&&E(e,t)}),X=U((e,t)=>{let n=J();K.current&&H&&(K.current.style.position="");let{duration:r,easing:o}=(0,f.C)({style:L,timeout:N,easing:S},{mode:"enter"});if("auto"===N){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,F.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[V]=`${n}px`,e.style.transitionTimingFunction=o,A&&A(e,t)}),Y=U((e,t)=>{e.style[V]="auto",P&&P(e,t)}),ee=U(e=>{e.style[V]=`${J()}px`,R&&R(e)}),et=U(j),en=U(e=>{let t=J(),{duration:n,easing:r}=(0,f.C)({style:L,timeout:N,easing:S},{mode:"exit"});if("auto"===N){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,F.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[V]=G,e.style.transitionTimingFunction=r,O&&O(e)});return(0,b.jsx)(W,(0,r.Z)({in:C,onEnter:Q,onEntered:Y,onEntering:X,onExit:ee,onExited:et,onExiting:en,addEndListener:e=>{"auto"===N&&D.start(F.current||0,e),s&&s(B.current,e)},nodeRef:B,timeout:"auto"===N?null:N},z,{children:(e,t)=>(0,b.jsx)(w,(0,r.Z)({as:y,className:(0,a.Z)($.root,m,{entered:$.entered,exited:!C&&"0px"===G&&$.hidden}[e]),style:(0,r.Z)({[H?"minWidth":"minHeight"]:G},L),ref:q},t,{ownerState:(0,r.Z)({},I,{state:e}),children:(0,b.jsx)(_,{ownerState:(0,r.Z)({},I,{state:e}),className:$.wrapper,ref:K,children:(0,b.jsx)(Z,{ownerState:(0,r.Z)({},I,{state:e}),className:$.wrapperInner,children:l})})}))}))});S.muiSupportAuto=!0;var C=n(37803),E=n(12397),P=n(68681),A=n(97580);function R(e){return(0,v.ZP)("MuiAccordion",e)}let j=(0,m.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),O=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],M=e=>{let{classes:t,square:n,expanded:r,disabled:o,disableGutters:i}=e;return(0,s.Z)({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!i&&"gutters"],region:["region"]},R,t)},L=(0,l.ZP)(C.Z,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${j.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{let t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${j.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${j.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${j.expanded}`]:{margin:"16px 0"}}}]})),N=i.forwardRef(function(e,t){let n=(0,u.i)({props:e,name:"MuiAccordion"}),{children:s,className:l,defaultExpanded:d=!1,disabled:c=!1,disableGutters:p=!1,expanded:f,onChange:h,square:g=!1,slots:m={},slotProps:v={},TransitionComponent:y,TransitionProps:x}=n,k=(0,o.Z)(n,O),[w,_]=(0,P.Z)({controlled:f,default:d,name:"Accordion",state:"expanded"}),Z=i.useCallback(e=>{_(!w),h&&h(e,!w)},[w,h,_]),[C,...R]=i.Children.toArray(s),j=i.useMemo(()=>({expanded:w,disabled:c,disableGutters:p,toggle:Z}),[w,c,p,Z]),N=(0,r.Z)({},n,{square:g,disabled:c,disableGutters:p,expanded:w}),W=M(N),z=(0,r.Z)({transition:y},m),I=(0,r.Z)({transition:x},v),[$,T]=(0,A.Z)("transition",{elementType:S,externalForwardedProps:{slots:z,slotProps:I},ownerState:N});return(0,b.jsxs)(L,(0,r.Z)({className:(0,a.Z)(W.root,l),ref:t,ownerState:N,square:g},k,{children:[(0,b.jsx)(E.Z.Provider,{value:j,children:C}),(0,b.jsx)($,(0,r.Z)({in:w,timeout:"auto"},T,{children:(0,b.jsx)("div",{"aria-labelledby":C.props.id,id:C.props["aria-controls"],role:"region",className:W.region,children:R})}))]}))});var W=N},12397:function(e,t,n){"use strict";var r=n(14978);let o=r.createContext({});t.Z=o},89235:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(79042),o=n(94312),i=n(14978),a=n(53468),s=n(84006),l=n(31608),u=n(87286),d=n(60201),c=n(80683);function p(e){return(0,c.ZP)("MuiAccordionDetails",e)}(0,d.Z)("MuiAccordionDetails",["root"]);var f=n(24004);let h=["className"],g=e=>{let{classes:t}=e;return(0,s.Z)({root:["root"]},p,t)},m=(0,l.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),v=i.forwardRef(function(e,t){let n=(0,u.i)({props:e,name:"MuiAccordionDetails"}),{className:i}=n,s=(0,o.Z)(n,h),l=g(n);return(0,f.jsx)(m,(0,r.Z)({className:(0,a.Z)(l.root,i),ref:t,ownerState:n},s))});var y=v},4078:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(79042),o=n(94312),i=n(14978),a=n(53468),s=n(84006),l=n(31608),u=n(87286),d=n(30151),c=n(12397),p=n(60201),f=n(80683);function h(e){return(0,f.ZP)("MuiAccordionSummary",e)}let g=(0,p.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);var m=n(24004);let v=["children","className","expandIcon","focusVisibleClassName","onClick"],y=e=>{let{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return(0,s.Z)({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},h,t)},b=(0,l.ZP)(d.Z,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let t={duration:e.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${g.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${g.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${g.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${g.expanded}`]:{minHeight:64}}}]}}),x=(0,l.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${g.expanded}`]:{margin:"20px 0"}}}]})),k=(0,l.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${g.expanded}`]:{transform:"rotate(180deg)"}})),w=i.forwardRef(function(e,t){let n=(0,u.i)({props:e,name:"MuiAccordionSummary"}),{children:s,className:l,expandIcon:d,focusVisibleClassName:p,onClick:f}=n,h=(0,o.Z)(n,v),{disabled:g=!1,disableGutters:w,expanded:_,toggle:Z}=i.useContext(c.Z),S=(0,r.Z)({},n,{expanded:_,disabled:g,disableGutters:w}),C=y(S);return(0,m.jsxs)(b,(0,r.Z)({focusRipple:!1,disableRipple:!0,disabled:g,component:"div","aria-expanded":_,className:(0,a.Z)(C.root,l),focusVisibleClassName:(0,a.Z)(C.focusVisible,p),onClick:e=>{Z&&Z(e),f&&f(e)},ref:t,ownerState:S},h,{children:[(0,m.jsx)(x,{className:C.content,ownerState:S,children:s}),d&&(0,m.jsx)(k,{className:C.expandIconWrapper,ownerState:S,children:d})]}))});var _=w},11520:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(94312),o=n(79042),i=n(14978),a=n(53468),s=n(80683),l=n(84006),u=n(78673),d=n(48976),c=n(14059),p=n(23437),f=n(24004);let h=["className","component","disableGutters","fixed","maxWidth","classes"],g=(0,p.Z)(),m=(0,c.Z)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${(0,u.Z)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),v=e=>(0,d.Z)({props:e,name:"MuiContainer",defaultTheme:g}),y=(e,t)=>{let{classes:n,fixed:r,disableGutters:o,maxWidth:i}=e,a={root:["root",i&&`maxWidth${(0,u.Z)(String(i))}`,r&&"fixed",o&&"disableGutters"]};return(0,l.Z)(a,e=>(0,s.ZP)(t,e),n)};var b=n(81427),x=n(31608),k=n(87286);let w=function(e={}){let{createStyledComponent:t=m,useThemeProps:n=v,componentName:s="MuiContainer"}=e,l=t(({theme:e,ownerState:t})=>(0,o.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{let r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:`${r}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>(0,o.Z)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}})),u=i.forwardRef(function(e,t){let i=n(e),{className:u,component:d="div",disableGutters:c=!1,fixed:p=!1,maxWidth:g="lg"}=i,m=(0,r.Z)(i,h),v=(0,o.Z)({},i,{component:d,disableGutters:c,fixed:p,maxWidth:g}),b=y(v,s);return(0,f.jsx)(l,(0,o.Z)({as:d,ownerState:v,className:(0,a.Z)(b.root,u),ref:t},m))});return u}({createStyledComponent:(0,x.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${(0,b.Z)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,k.i)({props:e,name:"MuiContainer"})});var _=w},14059:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(79042),o=n(94312),i=n(36975),a=n(70098),s=n(23437),l=n(60805);let u=["ownerState"],d=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let f=(0,s.Z)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function g({defaultTheme:e,theme:t,themeId:n}){return 0===Object.keys(t).length?e:t[n]||t}function m(e,t){let{ownerState:n}=t,i=(0,o.Z)(t,u),a="function"==typeof e?e((0,r.Z)({ownerState:n},i)):e;if(Array.isArray(a))return a.flatMap(e=>m(e,(0,r.Z)({ownerState:n},i)));if(a&&"object"==typeof a&&Array.isArray(a.variants)){let{variants:e=[]}=a,t=(0,o.Z)(a,d),s=t;return e.forEach(e=>{let t=!0;"function"==typeof e.props?t=e.props((0,r.Z)({ownerState:n},i,n)):Object.keys(e.props).forEach(r=>{(null==n?void 0:n[r])!==e.props[r]&&i[r]!==e.props[r]&&(t=!1)}),t&&(Array.isArray(s)||(s=[s]),s.push("function"==typeof e.style?e.style((0,r.Z)({ownerState:n},i,n)):e.style))}),s}return a}let v=function(e={}){let{themeId:t,defaultTheme:n=f,rootShouldForwardProp:s=p,slotShouldForwardProp:u=p}=e,d=e=>(0,l.Z)((0,r.Z)({},e,{theme:g((0,r.Z)({},e,{defaultTheme:n,themeId:t}))}));return d.__mui_systemSx=!0,(e,l={})=>{var f;let v;(0,i.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:y,slot:b,skipVariantsResolver:x,skipSx:k,overridesResolver:w=(f=h(b))?(e,t)=>t[f]:null}=l,_=(0,o.Z)(l,c),Z=void 0!==x?x:b&&"Root"!==b&&"root"!==b||!1,S=k||!1,C=p;"Root"===b||"root"===b?C=s:b?C=u:"string"==typeof e&&e.charCodeAt(0)>96&&(C=void 0);let E=(0,i.default)(e,(0,r.Z)({shouldForwardProp:C,label:v},_)),P=e=>"function"==typeof e&&e.__emotion_real!==e||(0,a.P)(e)?o=>m(e,(0,r.Z)({},o,{theme:g({theme:o.theme,defaultTheme:n,themeId:t})})):e,A=(o,...i)=>{let a=P(o),s=i?i.map(P):[];y&&w&&s.push(e=>{let o=g((0,r.Z)({},e,{defaultTheme:n,themeId:t}));if(!o.components||!o.components[y]||!o.components[y].styleOverrides)return null;let i=o.components[y].styleOverrides,a={};return Object.entries(i).forEach(([t,n])=>{a[t]=m(n,(0,r.Z)({},e,{theme:o}))}),w(e,a)}),y&&!Z&&s.push(e=>{var o;let i=g((0,r.Z)({},e,{defaultTheme:n,themeId:t})),a=null==i||null==(o=i.components)||null==(o=o[y])?void 0:o.variants;return m({variants:a},(0,r.Z)({},e,{theme:i}))}),S||s.push(d);let l=s.length-i.length;if(Array.isArray(o)&&l>0){let e=Array(l).fill("");(a=[...o,...e]).raw=[...o.raw,...e]}let u=E(a,...s);return e.muiName&&(u.muiName=e.muiName),u};return E.withConfig&&(A.withConfig=E.withConfig),A}}();var y=v},38409:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(37412);function o(e){let{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,o):o}},48976:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(38409),o=n(83927);function i({props:e,name:t,defaultTheme:n,themeId:i}){let a=(0,o.Z)(n);i&&(a=a[i]||a);let s=(0,r.Z)({theme:a,name:t,props:e});return s}},93486:function(){},29270:function(e,t,n){/**
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[856],{2185:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var o=r(n(99570)),i=n(24004);t.Z=(0,o.default)((0,i.jsx)("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"}),"Publish")},93522:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var o=r(n(99570)),i=n(24004);t.Z=(0,o.default)((0,i.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save")},68833:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var o=r(n(99570)),i=n(24004);t.Z=(0,o.default)((0,i.jsx)("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"}),"Upload")},63346:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=n(79042),o=n(94312),i=n(14978);n(54184);var a=n(53468),s=n(84006),l=n(31608),u=n(87286),d=n(34600),c=n(95203),p=n(16349),f=n(77141),h=n(92863),g=n(41776),m=n(60201),v=n(80683);function y(e){return(0,v.ZP)("MuiCollapse",e)}(0,m.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var b=n(24004);let x=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],k=e=>{let{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,s.Z)(r,y,n)},w=(0,l.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})(({theme:e,ownerState:t})=>(0,r.Z)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&(0,r.Z)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"})),_=(0,l.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>(0,r.Z)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})),Z=(0,l.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>(0,r.Z)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})),S=i.forwardRef(function(e,t){let n=(0,u.i)({props:e,name:"MuiCollapse"}),{addEndListener:s,children:l,className:m,collapsedSize:v="0px",component:y,easing:S,in:C,onEnter:E,onEntered:P,onEntering:A,onExit:R,onExited:j,onExiting:O,orientation:M="vertical",style:L,timeout:N=p.x9.standard,TransitionComponent:W=d.ZP}=n,z=(0,o.Z)(n,x),I=(0,r.Z)({},n,{orientation:M,collapsedSize:v}),$=k(I),T=(0,h.Z)(),D=(0,c.Z)(),K=i.useRef(null),F=i.useRef(),G="number"==typeof v?`${v}px`:v,H="horizontal"===M,V=H?"width":"height",B=i.useRef(null),q=(0,g.Z)(t,B),U=e=>t=>{if(e){let n=B.current;void 0===t?e(n):e(n,t)}},J=()=>K.current?K.current[H?"clientWidth":"clientHeight"]:0,Q=U((e,t)=>{K.current&&H&&(K.current.style.position="absolute"),e.style[V]=G,E&&E(e,t)}),X=U((e,t)=>{let n=J();K.current&&H&&(K.current.style.position="");let{duration:r,easing:o}=(0,f.C)({style:L,timeout:N,easing:S},{mode:"enter"});if("auto"===N){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,F.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[V]=`${n}px`,e.style.transitionTimingFunction=o,A&&A(e,t)}),Y=U((e,t)=>{e.style[V]="auto",P&&P(e,t)}),ee=U(e=>{e.style[V]=`${J()}px`,R&&R(e)}),et=U(j),en=U(e=>{let t=J(),{duration:n,easing:r}=(0,f.C)({style:L,timeout:N,easing:S},{mode:"exit"});if("auto"===N){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,F.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[V]=G,e.style.transitionTimingFunction=r,O&&O(e)});return(0,b.jsx)(W,(0,r.Z)({in:C,onEnter:Q,onEntered:Y,onEntering:X,onExit:ee,onExited:et,onExiting:en,addEndListener:e=>{"auto"===N&&D.start(F.current||0,e),s&&s(B.current,e)},nodeRef:B,timeout:"auto"===N?null:N},z,{children:(e,t)=>(0,b.jsx)(w,(0,r.Z)({as:y,className:(0,a.Z)($.root,m,{entered:$.entered,exited:!C&&"0px"===G&&$.hidden}[e]),style:(0,r.Z)({[H?"minWidth":"minHeight"]:G},L),ref:q},t,{ownerState:(0,r.Z)({},I,{state:e}),children:(0,b.jsx)(_,{ownerState:(0,r.Z)({},I,{state:e}),className:$.wrapper,ref:K,children:(0,b.jsx)(Z,{ownerState:(0,r.Z)({},I,{state:e}),className:$.wrapperInner,children:l})})}))}))});S.muiSupportAuto=!0;var C=n(37803),E=n(12397),P=n(68681),A=n(97580);function R(e){return(0,v.ZP)("MuiAccordion",e)}let j=(0,m.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),O=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],M=e=>{let{classes:t,square:n,expanded:r,disabled:o,disableGutters:i}=e;return(0,s.Z)({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!i&&"gutters"],region:["region"]},R,t)},L=(0,l.ZP)(C.Z,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${j.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{let t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${j.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${j.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${j.expanded}`]:{margin:"16px 0"}}}]})),N=i.forwardRef(function(e,t){let n=(0,u.i)({props:e,name:"MuiAccordion"}),{children:s,className:l,defaultExpanded:d=!1,disabled:c=!1,disableGutters:p=!1,expanded:f,onChange:h,square:g=!1,slots:m={},slotProps:v={},TransitionComponent:y,TransitionProps:x}=n,k=(0,o.Z)(n,O),[w,_]=(0,P.Z)({controlled:f,default:d,name:"Accordion",state:"expanded"}),Z=i.useCallback(e=>{_(!w),h&&h(e,!w)},[w,h,_]),[C,...R]=i.Children.toArray(s),j=i.useMemo(()=>({expanded:w,disabled:c,disableGutters:p,toggle:Z}),[w,c,p,Z]),N=(0,r.Z)({},n,{square:g,disabled:c,disableGutters:p,expanded:w}),W=M(N),z=(0,r.Z)({transition:y},m),I=(0,r.Z)({transition:x},v),[$,T]=(0,A.Z)("transition",{elementType:S,externalForwardedProps:{slots:z,slotProps:I},ownerState:N});return(0,b.jsxs)(L,(0,r.Z)({className:(0,a.Z)(W.root,l),ref:t,ownerState:N,square:g},k,{children:[(0,b.jsx)(E.Z.Provider,{value:j,children:C}),(0,b.jsx)($,(0,r.Z)({in:w,timeout:"auto"},T,{children:(0,b.jsx)("div",{"aria-labelledby":C.props.id,id:C.props["aria-controls"],role:"region",className:W.region,children:R})}))]}))});var W=N},12397:function(e,t,n){"use strict";var r=n(14978);let o=r.createContext({});t.Z=o},89235:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(79042),o=n(94312),i=n(14978),a=n(53468),s=n(84006),l=n(31608),u=n(87286),d=n(60201),c=n(80683);function p(e){return(0,c.ZP)("MuiAccordionDetails",e)}(0,d.Z)("MuiAccordionDetails",["root"]);var f=n(24004);let h=["className"],g=e=>{let{classes:t}=e;return(0,s.Z)({root:["root"]},p,t)},m=(0,l.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),v=i.forwardRef(function(e,t){let n=(0,u.i)({props:e,name:"MuiAccordionDetails"}),{className:i}=n,s=(0,o.Z)(n,h),l=g(n);return(0,f.jsx)(m,(0,r.Z)({className:(0,a.Z)(l.root,i),ref:t,ownerState:n},s))});var y=v},4078:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(79042),o=n(94312),i=n(14978),a=n(53468),s=n(84006),l=n(31608),u=n(87286),d=n(30151),c=n(12397),p=n(60201),f=n(80683);function h(e){return(0,f.ZP)("MuiAccordionSummary",e)}let g=(0,p.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);var m=n(24004);let v=["children","className","expandIcon","focusVisibleClassName","onClick"],y=e=>{let{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return(0,s.Z)({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},h,t)},b=(0,l.ZP)(d.Z,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let t={duration:e.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${g.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${g.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${g.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${g.expanded}`]:{minHeight:64}}}]}}),x=(0,l.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${g.expanded}`]:{margin:"20px 0"}}}]})),k=(0,l.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${g.expanded}`]:{transform:"rotate(180deg)"}})),w=i.forwardRef(function(e,t){let n=(0,u.i)({props:e,name:"MuiAccordionSummary"}),{children:s,className:l,expandIcon:d,focusVisibleClassName:p,onClick:f}=n,h=(0,o.Z)(n,v),{disabled:g=!1,disableGutters:w,expanded:_,toggle:Z}=i.useContext(c.Z),S=(0,r.Z)({},n,{expanded:_,disabled:g,disableGutters:w}),C=y(S);return(0,m.jsxs)(b,(0,r.Z)({focusRipple:!1,disableRipple:!0,disabled:g,component:"div","aria-expanded":_,className:(0,a.Z)(C.root,l),focusVisibleClassName:(0,a.Z)(C.focusVisible,p),onClick:e=>{Z&&Z(e),f&&f(e)},ref:t,ownerState:S},h,{children:[(0,m.jsx)(x,{className:C.content,ownerState:S,children:s}),d&&(0,m.jsx)(k,{className:C.expandIconWrapper,ownerState:S,children:d})]}))});var _=w},11520:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(94312),o=n(79042),i=n(14978),a=n(53468),s=n(80683),l=n(84006),u=n(78673),d=n(48976),c=n(14059),p=n(23437),f=n(24004);let h=["className","component","disableGutters","fixed","maxWidth","classes"],g=(0,p.Z)(),m=(0,c.Z)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${(0,u.Z)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),v=e=>(0,d.Z)({props:e,name:"MuiContainer",defaultTheme:g}),y=(e,t)=>{let{classes:n,fixed:r,disableGutters:o,maxWidth:i}=e,a={root:["root",i&&`maxWidth${(0,u.Z)(String(i))}`,r&&"fixed",o&&"disableGutters"]};return(0,l.Z)(a,e=>(0,s.ZP)(t,e),n)};var b=n(81427),x=n(31608),k=n(87286);let w=function(e={}){let{createStyledComponent:t=m,useThemeProps:n=v,componentName:s="MuiContainer"}=e,l=t(({theme:e,ownerState:t})=>(0,o.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{let r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:`${r}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>(0,o.Z)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}})),u=i.forwardRef(function(e,t){let i=n(e),{className:u,component:d="div",disableGutters:c=!1,fixed:p=!1,maxWidth:g="lg"}=i,m=(0,r.Z)(i,h),v=(0,o.Z)({},i,{component:d,disableGutters:c,fixed:p,maxWidth:g}),b=y(v,s);return(0,f.jsx)(l,(0,o.Z)({as:d,ownerState:v,className:(0,a.Z)(b.root,u),ref:t},m))});return u}({createStyledComponent:(0,x.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${(0,b.Z)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,k.i)({props:e,name:"MuiContainer"})});var _=w},14059:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(79042),o=n(94312),i=n(36975),a=n(70098),s=n(23437),l=n(60805);let u=["ownerState"],d=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let f=(0,s.Z)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function g({defaultTheme:e,theme:t,themeId:n}){return 0===Object.keys(t).length?e:t[n]||t}function m(e,t){let{ownerState:n}=t,i=(0,o.Z)(t,u),a="function"==typeof e?e((0,r.Z)({ownerState:n},i)):e;if(Array.isArray(a))return a.flatMap(e=>m(e,(0,r.Z)({ownerState:n},i)));if(a&&"object"==typeof a&&Array.isArray(a.variants)){let{variants:e=[]}=a,t=(0,o.Z)(a,d),s=t;return e.forEach(e=>{let t=!0;"function"==typeof e.props?t=e.props((0,r.Z)({ownerState:n},i,n)):Object.keys(e.props).forEach(r=>{(null==n?void 0:n[r])!==e.props[r]&&i[r]!==e.props[r]&&(t=!1)}),t&&(Array.isArray(s)||(s=[s]),s.push("function"==typeof e.style?e.style((0,r.Z)({ownerState:n},i,n)):e.style))}),s}return a}let v=function(e={}){let{themeId:t,defaultTheme:n=f,rootShouldForwardProp:s=p,slotShouldForwardProp:u=p}=e,d=e=>(0,l.Z)((0,r.Z)({},e,{theme:g((0,r.Z)({},e,{defaultTheme:n,themeId:t}))}));return d.__mui_systemSx=!0,(e,l={})=>{var f;let v;(0,i.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:y,slot:b,skipVariantsResolver:x,skipSx:k,overridesResolver:w=(f=h(b))?(e,t)=>t[f]:null}=l,_=(0,o.Z)(l,c),Z=void 0!==x?x:b&&"Root"!==b&&"root"!==b||!1,S=k||!1,C=p;"Root"===b||"root"===b?C=s:b?C=u:"string"==typeof e&&e.charCodeAt(0)>96&&(C=void 0);let E=(0,i.default)(e,(0,r.Z)({shouldForwardProp:C,label:v},_)),P=e=>"function"==typeof e&&e.__emotion_real!==e||(0,a.P)(e)?o=>m(e,(0,r.Z)({},o,{theme:g({theme:o.theme,defaultTheme:n,themeId:t})})):e,A=(o,...i)=>{let a=P(o),s=i?i.map(P):[];y&&w&&s.push(e=>{let o=g((0,r.Z)({},e,{defaultTheme:n,themeId:t}));if(!o.components||!o.components[y]||!o.components[y].styleOverrides)return null;let i=o.components[y].styleOverrides,a={};return Object.entries(i).forEach(([t,n])=>{a[t]=m(n,(0,r.Z)({},e,{theme:o}))}),w(e,a)}),y&&!Z&&s.push(e=>{var o;let i=g((0,r.Z)({},e,{defaultTheme:n,themeId:t})),a=null==i||null==(o=i.components)||null==(o=o[y])?void 0:o.variants;return m({variants:a},(0,r.Z)({},e,{theme:i}))}),S||s.push(d);let l=s.length-i.length;if(Array.isArray(o)&&l>0){let e=Array(l).fill("");(a=[...o,...e]).raw=[...o.raw,...e]}let u=E(a,...s);return e.muiName&&(u.muiName=e.muiName),u};return E.withConfig&&(A.withConfig=E.withConfig),A}}();var y=v},38409:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(37412);function o(e){let{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,o):o}},48976:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(38409),o=n(83927);function i({props:e,name:t,defaultTheme:n,themeId:i}){let a=(0,o.Z)(n);i&&(a=a[i]||a);let s=(0,r.Z)({theme:a,name:t,props:e});return s}},93486:function(){},28891:function(e,t,n){e.exports=n(98556)},29270:function(e,t,n){/**
|
|
2
2
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
3
3
|
*
|
|
4
4
|
* @license MIT <https://opensource.org/licenses/MIT>
|
package/dist/src/web/nextui/_next/static/chunks/{222-8d27a2c754bc8029.js → 983-9c47c398e832cf0b.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[222],{12431:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},73490:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos")},43205:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown")},24495:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos")},26110:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")},92715:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},94068:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2zm0 15H5l5-6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"Compare")},99645:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2zm-1 7h5.5L14 6.5z"}),"FileCopy")},59682:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew")},41366:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow")},17178:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share")},29234:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 10H6v-2h8zm4-4H6v-2h12z"}),"Source")},42610:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},6363:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(84006),s=n(13477),u=n(31608),c=n(87286),f=n(97580),d=n(81427),h=n(37803),p=n(60201),g=n(80683);function m(e){return(0,g.ZP)("MuiAlert",e)}let y=(0,p.Z)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var v=n(77656),b=n(97491),x=n(24004),k=(0,b.Z)((0,x.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),w=(0,b.Z)((0,x.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),C=(0,b.Z)((0,x.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),S=(0,b.Z)((0,x.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),R=n(71544);let E=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],M=e=>{let{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${(0,d.Z)(n||r)}`,`${t}${(0,d.Z)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,a.Z)(o,m,i)},P=(0,u.ZP)(h.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,d.Z)(n.color||n.severity)}`]]}})(({theme:e})=>{let t="light"===e.palette.mode?s._j:s.$n,n="light"===e.palette.mode?s.$n:s._j;return(0,i.Z)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${y.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${y.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(([,e])=>e.main&&e.dark).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:(0,i.Z)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)})}))]})}),_=(0,u.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),I=(0,u.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),O=(0,u.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),A={success:(0,x.jsx)(k,{fontSize:"inherit"}),warning:(0,x.jsx)(w,{fontSize:"inherit"}),error:(0,x.jsx)(C,{fontSize:"inherit"}),info:(0,x.jsx)(S,{fontSize:"inherit"})},F=o.forwardRef(function(e,t){let n=(0,c.i)({props:e,name:"MuiAlert"}),{action:o,children:a,className:s,closeText:u="Close",color:d,components:h={},componentsProps:p={},icon:g,iconMapping:m=A,onClose:y,role:b="alert",severity:k="success",slotProps:w={},slots:C={},variant:S="standard"}=n,F=(0,r.Z)(n,E),T=(0,i.Z)({},n,{color:d,severity:k,variant:S,colorSeverity:d||k}),L=M(T),z={slots:(0,i.Z)({closeButton:h.CloseButton,closeIcon:h.CloseIcon},C),slotProps:(0,i.Z)({},p,w)},[D,j]=(0,f.Z)("closeButton",{elementType:v.Z,externalForwardedProps:z,ownerState:T}),[N,V]=(0,f.Z)("closeIcon",{elementType:R.Z,externalForwardedProps:z,ownerState:T});return(0,x.jsxs)(P,(0,i.Z)({role:b,elevation:0,ownerState:T,className:(0,l.Z)(L.root,s),ref:t},F,{children:[!1!==g?(0,x.jsx)(_,{ownerState:T,className:L.icon,children:g||m[k]||A[k]}):null,(0,x.jsx)(I,{ownerState:T,className:L.message,children:a}),null!=o?(0,x.jsx)(O,{ownerState:T,className:L.action,children:o}):null,null==o&&y?(0,x.jsx)(O,{ownerState:T,className:L.action,children:(0,x.jsx)(D,(0,i.Z)({size:"small","aria-label":u,title:u,color:"inherit",onClick:y},j,{children:(0,x.jsx)(N,(0,i.Z)({fontSize:"small"},V))}))}):null]}))});var T=F},24362:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(84006),s=n(13477),u=n(81427),c=n(31608),f=n(11874),d=n(68681),h=n(17780),p=n(30151),g=n(60201),m=n(80683);function y(e){return(0,m.ZP)("PrivateSwitchBase",e)}(0,g.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var v=n(24004);let b=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],x=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${(0,u.Z)(i)}`],input:["input"]};return(0,a.Z)(o,y,t)},k=(0,c.ZP)(p.Z)(({ownerState:e})=>(0,i.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),w=(0,c.ZP)("input",{shouldForwardProp:f.Z})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),C=o.forwardRef(function(e,t){let{autoFocus:n,checked:o,checkedIcon:a,className:s,defaultChecked:u,disabled:c,disableFocusRipple:f=!1,edge:p=!1,icon:g,id:m,inputProps:y,inputRef:C,name:S,onBlur:R,onChange:E,onFocus:M,readOnly:P,required:_=!1,tabIndex:I,type:O,value:A}=e,F=(0,r.Z)(e,b),[T,L]=(0,d.Z)({controlled:o,default:!!u,name:"SwitchBase",state:"checked"}),z=(0,h.Z)(),D=c;z&&void 0===D&&(D=z.disabled);let j="checkbox"===O||"radio"===O,N=(0,i.Z)({},e,{checked:T,disabled:D,disableFocusRipple:f,edge:p}),V=x(N);return(0,v.jsxs)(k,(0,i.Z)({component:"span",className:(0,l.Z)(V.root,s),centerRipple:!0,focusRipple:!f,disabled:D,tabIndex:null,role:void 0,onFocus:e=>{M&&M(e),z&&z.onFocus&&z.onFocus(e)},onBlur:e=>{R&&R(e),z&&z.onBlur&&z.onBlur(e)},ownerState:N,ref:t},F,{children:[(0,v.jsx)(w,(0,i.Z)({autoFocus:n,checked:o,defaultChecked:u,className:V.input,disabled:D,id:j?m:void 0,name:S,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;L(t),E&&E(e,t)},readOnly:P,ref:C,required:_,ownerState:N,tabIndex:I,type:O},"checkbox"===O&&void 0===A?{}:{value:A},y)),T?a:g]}))});var S=n(97491),R=(0,S.Z)((0,v.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),E=(0,S.Z)((0,v.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),M=(0,S.Z)((0,v.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),P=n(87286);function _(e){return(0,m.ZP)("MuiCheckbox",e)}let I=(0,g.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),O=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],A=e=>{let{classes:t,indeterminate:n,color:r,size:o}=e,l={root:["root",n&&"indeterminate",`color${(0,u.Z)(r)}`,`size${(0,u.Z)(o)}`]},s=(0,a.Z)(l,_,t);return(0,i.Z)({},t,s)},F=(0,c.ZP)(C,{shouldForwardProp:e=>(0,f.Z)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,u.Z)(n.size)}`],"default"!==n.color&&t[`color${(0,u.Z)(n.color)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${I.checked}, &.${I.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${I.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),T=(0,v.jsx)(E,{}),L=(0,v.jsx)(R,{}),z=(0,v.jsx)(M,{}),D=o.forwardRef(function(e,t){var n,a;let s=(0,P.i)({props:e,name:"MuiCheckbox"}),{checkedIcon:u=T,color:c="primary",icon:f=L,indeterminate:d=!1,indeterminateIcon:h=z,inputProps:p,size:g="medium",className:m}=s,y=(0,r.Z)(s,O),b=d?h:f,x=d?h:u,k=(0,i.Z)({},s,{color:c,indeterminate:d,size:g}),w=A(k);return(0,v.jsx)(F,(0,i.Z)({type:"checkbox",inputProps:(0,i.Z)({"data-indeterminate":d},p),icon:o.cloneElement(b,{fontSize:null!=(n=b.props.fontSize)?n:g}),checkedIcon:o.cloneElement(x,{fontSize:null!=(a=x.props.fontSize)?a:g}),ownerState:k,ref:t,className:(0,l.Z)(w.root,m)},y,{classes:w}))});var j=D},62268:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(84006),s=n(17780),u=n(32414),c=n(63147),f=n(81427),d=n(31608),h=n(87286),p=n(60201),g=n(80683);function m(e){return(0,g.ZP)("MuiFormControlLabel",e)}let y=(0,p.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var v=n(34209),b=n(24004);let x=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],k=e=>{let{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,l={root:["root",n&&"disabled",`labelPlacement${(0,f.Z)(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,a.Z)(l,m,t)},w=(0,d.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${y.label}`]:t.label},t.root,t[`labelPlacement${(0,f.Z)(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${y.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${y.label}`]:{[`&.${y.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),C=(0,d.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${y.error}`]:{color:(e.vars||e).palette.error.main}})),S=o.forwardRef(function(e,t){var n,a;let f=(0,h.i)({props:e,name:"MuiFormControlLabel"}),{className:d,componentsProps:p={},control:g,disabled:m,disableTypography:y,label:S,labelPlacement:R="end",required:E,slotProps:M={}}=f,P=(0,r.Z)(f,x),_=(0,s.Z)(),I=null!=(n=null!=m?m:g.props.disabled)?n:null==_?void 0:_.disabled,O=null!=E?E:g.props.required,A={disabled:I,required:O};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===g.props[e]&&void 0!==f[e]&&(A[e]=f[e])});let F=(0,v.Z)({props:f,muiFormControl:_,states:["error"]}),T=(0,i.Z)({},f,{disabled:I,labelPlacement:R,required:O,error:F.error}),L=k(T),z=null!=(a=M.typography)?a:p.typography,D=S;return null==D||D.type===c.Z||y||(D=(0,b.jsx)(c.Z,(0,i.Z)({component:"span"},z,{className:(0,l.Z)(L.label,null==z?void 0:z.className),children:D}))),(0,b.jsxs)(w,(0,i.Z)({className:(0,l.Z)(L.root,d),ownerState:T,ref:t},P,{children:[o.cloneElement(g,A),O?(0,b.jsxs)(u.Z,{display:"block",children:[D,(0,b.jsxs)(C,{ownerState:T,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):D]}))});var R=S},82197:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r,i=n(94312),o=n(79042),l=n(14978),a=n(53468),s=n(84006),u=n(81427),c=n(63147),f=n(65122),d=n(17780),h=n(31608),p=n(60201),g=n(80683);function m(e){return(0,g.ZP)("MuiInputAdornment",e)}let y=(0,p.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var v=n(87286),b=n(24004);let x=["children","className","component","disablePointerEvents","disableTypography","position","variant"],k=e=>{let{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:l}=e,a={root:["root",n&&"disablePointerEvents",i&&`position${(0,u.Z)(i)}`,l,r&&"hiddenLabel",o&&`size${(0,u.Z)(o)}`]};return(0,s.Z)(a,m,t)},w=(0,h.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${(0,u.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,o.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${y.positionStart}&:not(.${y.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),C=l.forwardRef(function(e,t){let n=(0,v.i)({props:e,name:"MuiInputAdornment"}),{children:s,className:u,component:h="div",disablePointerEvents:p=!1,disableTypography:g=!1,position:m,variant:y}=n,C=(0,i.Z)(n,x),S=(0,d.Z)()||{},R=y;y&&S.variant,S&&!R&&(R=S.variant);let E=(0,o.Z)({},n,{hiddenLabel:S.hiddenLabel,size:S.size,disablePointerEvents:p,position:m,variant:R}),M=k(E);return(0,b.jsx)(f.Z.Provider,{value:null,children:(0,b.jsx)(w,(0,o.Z)({as:h,ownerState:E,className:(0,a.Z)(M.root,u),ref:t},C,{children:"string"!=typeof s||g?(0,b.jsxs)(l.Fragment,{children:["start"===m?r||(r=(0,b.jsx)("span",{className:"notranslate",children:""})):null,s]}):(0,b.jsx)(c.Z,{color:"text.secondary",children:s})}))})});var S=C},57027:function(e,t,n){"use strict";var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(84006),s=n(31608),u=n(87286),c=n(96212),f=n(11112),d=n(24004);let h=["className"],p=e=>{let{alignItems:t,classes:n}=e;return(0,a.Z)({root:["root","flex-start"===t&&"alignItemsFlexStart"]},c.f,n)},g=(0,s.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>(0,i.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),m=o.forwardRef(function(e,t){let n=(0,u.i)({props:e,name:"MuiListItemIcon"}),{className:a}=n,s=(0,r.Z)(n,h),c=o.useContext(f.Z),m=(0,i.Z)({},n,{alignItems:c.alignItems}),y=p(m);return(0,d.jsx)(g,(0,i.Z)({className:(0,l.Z)(y.root,a),ownerState:m,ref:t},s))});t.Z=m},22262:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var r=n(94312),i=n(79042),o=n(14978),l=n(84006),a=n(41123),s=n(95203),u=n(17104),c=n(335),f=function(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:l,resumeHideDuration:a}=e,f=(0,s.Z)();o.useEffect(()=>{if(l)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}},[l,r]);let d=(0,u.Z)((e,t)=>{null==r||r(e,t)}),h=(0,u.Z)(e=>{r&&null!=e&&f.start(e,()=>{d(null,"timeout")})});o.useEffect(()=>(l&&h(t),f.clear),[l,t,h,f]);let p=f.clear,g=o.useCallback(()=>{null!=t&&h(null!=a?a:.5*t)},[t,a,h]),m=e=>t=>{let n=e.onBlur;null==n||n(t),g()},y=e=>t=>{let n=e.onFocus;null==n||n(t),p()},v=e=>t=>{let n=e.onMouseEnter;null==n||n(t),p()},b=e=>t=>{let n=e.onMouseLeave;null==n||n(t),g()};return o.useEffect(()=>{if(!n&&l)return window.addEventListener("focus",g),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",p)}},[n,l,g,p]),{getRootProps:(t={})=>{let n=(0,i.Z)({},(0,c.Z)(e),(0,c.Z)(t));return(0,i.Z)({role:"presentation"},t,n,{onBlur:m(n),onFocus:y(n),onMouseEnter:v(n),onMouseLeave:b(n)})},onClickAway:e=>{null==r||r(e,"clickaway")}}},d=n(50774),h=n(29649),p=n(24004);function g(e){return e.substring(2).toLowerCase()}function m(e){let{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:l="onTouchEnd"}=e,a=o.useRef(!1),s=o.useRef(null),c=o.useRef(!1),f=o.useRef(!1);o.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);let m=(0,d.Z)(t.ref,s),y=(0,u.Z)(e=>{let t=f.current;f.current=!1;let r=(0,h.Z)(s.current);if(c.current&&s.current&&(!("clientX"in e)||!(r.documentElement.clientWidth<e.clientX)&&!(r.documentElement.clientHeight<e.clientY))){if(a.current){a.current=!1;return}(e.composedPath?e.composedPath().indexOf(s.current)>-1:!r.documentElement.contains(e.target)||s.current.contains(e.target))||!n&&t||i(e)}}),v=e=>n=>{f.current=!0;let r=t.props[e];r&&r(n)},b={ref:m};return!1!==l&&(b[l]=v(l)),o.useEffect(()=>{if(!1!==l){let e=g(l),t=(0,h.Z)(s.current),n=()=>{a.current=!0};return t.addEventListener(e,y),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,y),t.removeEventListener("touchmove",n)}}},[y,l]),!1!==r&&(b[r]=v(r)),o.useEffect(()=>{if(!1!==r){let e=g(r),t=(0,h.Z)(s.current);return t.addEventListener(e,y),()=>{t.removeEventListener(e,y)}}},[y,r]),(0,p.jsx)(o.Fragment,{children:o.cloneElement(t,b)})}var y=n(31608),v=n(92863),b=n(87286),x=n(81427),k=n(96608),w=n(53468),C=n(13477),S=n(37803),R=n(60201),E=n(80683);function M(e){return(0,E.ZP)("MuiSnackbarContent",e)}(0,R.Z)("MuiSnackbarContent",["root","message","action"]);let P=["action","className","message","role"],_=e=>{let{classes:t}=e;return(0,l.Z)({root:["root"],action:["action"],message:["message"]},M,t)},I=(0,y.ZP)(S.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let t="light"===e.palette.mode?.8:.98,n=(0,C._4)(e.palette.background.default,t);return(0,i.Z)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),O=(0,y.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),A=(0,y.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),F=o.forwardRef(function(e,t){let n=(0,b.i)({props:e,name:"MuiSnackbarContent"}),{action:o,className:l,message:a,role:s="alert"}=n,u=(0,r.Z)(n,P),c=_(n);return(0,p.jsxs)(I,(0,i.Z)({role:s,square:!0,elevation:6,className:(0,w.Z)(c.root,l),ownerState:n,ref:t},u,{children:[(0,p.jsx)(O,{className:c.message,ownerState:n,children:a}),o?(0,p.jsx)(A,{className:c.action,ownerState:n,children:o}):null]}))});function T(e){return(0,E.ZP)("MuiSnackbar",e)}(0,R.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);let L=["onEnter","onExited"],z=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],D=e=>{let{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${(0,x.Z)(n.vertical)}${(0,x.Z)(n.horizontal)}`]};return(0,l.Z)(r,T,t)},j=(0,y.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`anchorOrigin${(0,x.Z)(n.anchorOrigin.vertical)}${(0,x.Z)(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,i.Z)({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===t.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===t.anchorOrigin.horizontal&&{right:24,left:"auto"})})),N=o.forwardRef(function(e,t){let n=(0,b.i)({props:e,name:"MuiSnackbar"}),l=(0,v.Z)(),s={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{action:u,anchorOrigin:{vertical:c,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:h=null,children:g,className:y,ClickAwayListenerProps:x,ContentProps:w,disableWindowBlurListener:C=!1,message:S,open:R,TransitionComponent:E=k.Z,transitionDuration:M=s,TransitionProps:{onEnter:P,onExited:_}={}}=n,I=(0,r.Z)(n.TransitionProps,L),O=(0,r.Z)(n,z),A=(0,i.Z)({},n,{anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:h,disableWindowBlurListener:C,TransitionComponent:E,transitionDuration:M}),T=D(A),{getRootProps:N,onClickAway:V}=f((0,i.Z)({},A)),[B,H]=o.useState(!0),q=(0,a.Z)({elementType:j,getSlotProps:N,externalForwardedProps:O,ownerState:A,additionalProps:{ref:t},className:[T.root,y]});return!R&&B?null:(0,p.jsx)(m,(0,i.Z)({onClickAway:V},x,{children:(0,p.jsx)(j,(0,i.Z)({},q,{children:(0,p.jsx)(E,(0,i.Z)({appear:!0,in:R,timeout:M,direction:"top"===c?"down":"up",onEnter:(e,t)=>{H(!1),P&&P(e,t)},onExited:e=>{H(!0),_&&_(e)}},I,{children:g||(0,p.jsx)(F,(0,i.Z)({message:S,action:u},w))}))}))}))});var V=N},66389:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,f=arguments[0],d=1,h=arguments.length,p=!1;for("boolean"==typeof f&&(p=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<h;++d)if(t=arguments[d],null!=t)for(n in t)r=s(f,n),f!==(i=s(t,n))&&(p&&i&&(l(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&l(r)?r:{},a(f,{name:n,newValue:e(p,c,i)})):void 0!==i&&a(f,{name:n,newValue:i}));return f}},32162:function(e){"use strict";e.exports=function(e,t){var n=t.length,r=e.length;if(r>n)return!1;if(r===n)return e===t;e:for(var i=0,o=0;i<r;i++){for(var l=e.charCodeAt(i);o<n;)if(t.charCodeAt(o++)===l)continue e;return!1}return!0}},64743:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g;function u(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var c=1,f=1;function d(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:c,column:f};return function(t){return t.position=new p(e),y(r),t}}function p(e){this.start=e,this.end={line:c,column:f},this.source=s.source}p.prototype.content=e;var g=[];function m(t){var n=Error(s.source+":"+c+":"+f+": "+t);if(n.reason=t,n.filename=s.source,n.line=c,n.column=f,n.source=e,s.silent)g.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return f+=2,d(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}return y(r),function(){var e,n=[];for(v(n);e=function(){var e=h(),n=y(i);if(n){if(b(),!y(o))return m("property missing ':'");var r=y(l),s=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return y(a),s}}();)!1!==e&&(n.push(e),v(n));return n}()}},39263:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(64743));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),o="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}}),n}},23223:function(e,t,n){"use strict";n.d(t,{Nr:function(){return l}});var r=n(14978);function i(e,t){return e===t}function o(e,t){return t}function l(e,t,n){var l=n&&n.equalityFn||i,a=(0,r.useReducer)(o,e),s=a[0],u=a[1],c=function(e,t,n){var i=this,o=(0,r.useRef)(null),l=(0,r.useRef)(0),a=(0,r.useRef)(null),s=(0,r.useRef)([]),u=(0,r.useRef)(),c=(0,r.useRef)(),f=(0,r.useRef)(e),d=(0,r.useRef)(!0);f.current=e;var h="undefined"!=typeof window,p=!t&&0!==t&&h;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,y="maxWait"in n,v="debounceOnServer"in n&&!!n.debounceOnServer,b=y?Math.max(+n.maxWait||0,t):null;return(0,r.useEffect)(function(){return d.current=!0,function(){d.current=!1}},[]),(0,r.useMemo)(function(){var e=function(e){var t=s.current,n=u.current;return s.current=u.current=null,l.current=e,c.current=f.current.apply(n,t)},n=function(e,t){p&&cancelAnimationFrame(a.current),a.current=p?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!d.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||y&&e-l.current>=b},x=function(t){return a.current=null,m&&s.current?e(t):(s.current=u.current=null,c.current)},k=function e(){var i=Date.now();if(r(i))return x(i);if(d.current){var a=t-(i-o.current);n(e,y?Math.min(a,b-(i-l.current)):a)}},w=function(){if(h||v){var f=Date.now(),p=r(f);if(s.current=[].slice.call(arguments),u.current=i,o.current=f,p){if(!a.current&&d.current)return l.current=o.current,n(k,t),g?e(o.current):c.current;if(y)return n(k,t),e(o.current)}return a.current||n(k,t),c.current}};return w.cancel=function(){a.current&&(p?cancelAnimationFrame(a.current):clearTimeout(a.current)),l.current=0,s.current=o.current=u.current=a.current=null},w.isPending=function(){return!!a.current},w.flush=function(){return a.current?x(Date.now()):c.current},w},[g,y,t,b,m,p,h,v])}((0,r.useCallback)(function(e){return u(e)},[u]),t,n),f=(0,r.useRef)(e);return l(f.current,e)||(c(e),f.current=e),[s,c]}},9317:function(e,t,n){"use strict";n.d(t,{b7:function(){return l},ie:function(){return o}});var r=n(14978),i=n(36128);/**
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[983],{12431:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},73490:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos")},43205:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown")},24495:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos")},26110:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")},92715:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},94068:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2zm0 15H5l5-6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"Compare")},99645:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2zm-1 7h5.5L14 6.5z"}),"FileCopy")},59682:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew")},41366:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow")},57474:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},17178:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share")},29234:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 10H6v-2h8zm4-4H6v-2h12z"}),"Source")},42610:function(e,t,n){"use strict";var r=n(71851);t.Z=void 0;var i=r(n(99570)),o=n(24004);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},6363:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(84006),s=n(13477),u=n(31608),c=n(87286),f=n(97580),d=n(81427),h=n(37803),p=n(60201),g=n(80683);function m(e){return(0,g.ZP)("MuiAlert",e)}let y=(0,p.Z)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var v=n(77656),b=n(97491),x=n(24004),k=(0,b.Z)((0,x.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),w=(0,b.Z)((0,x.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),C=(0,b.Z)((0,x.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),S=(0,b.Z)((0,x.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),R=n(71544);let E=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],M=e=>{let{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${(0,d.Z)(n||r)}`,`${t}${(0,d.Z)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,a.Z)(o,m,i)},P=(0,u.ZP)(h.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,d.Z)(n.color||n.severity)}`]]}})(({theme:e})=>{let t="light"===e.palette.mode?s._j:s.$n,n="light"===e.palette.mode?s.$n:s._j;return(0,i.Z)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${y.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${y.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(([,e])=>e.main&&e.dark).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:(0,i.Z)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)})}))]})}),_=(0,u.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),I=(0,u.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),O=(0,u.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),A={success:(0,x.jsx)(k,{fontSize:"inherit"}),warning:(0,x.jsx)(w,{fontSize:"inherit"}),error:(0,x.jsx)(C,{fontSize:"inherit"}),info:(0,x.jsx)(S,{fontSize:"inherit"})},F=o.forwardRef(function(e,t){let n=(0,c.i)({props:e,name:"MuiAlert"}),{action:o,children:a,className:s,closeText:u="Close",color:d,components:h={},componentsProps:p={},icon:g,iconMapping:m=A,onClose:y,role:b="alert",severity:k="success",slotProps:w={},slots:C={},variant:S="standard"}=n,F=(0,r.Z)(n,E),T=(0,i.Z)({},n,{color:d,severity:k,variant:S,colorSeverity:d||k}),L=M(T),z={slots:(0,i.Z)({closeButton:h.CloseButton,closeIcon:h.CloseIcon},C),slotProps:(0,i.Z)({},p,w)},[D,j]=(0,f.Z)("closeButton",{elementType:v.Z,externalForwardedProps:z,ownerState:T}),[N,V]=(0,f.Z)("closeIcon",{elementType:R.Z,externalForwardedProps:z,ownerState:T});return(0,x.jsxs)(P,(0,i.Z)({role:b,elevation:0,ownerState:T,className:(0,l.Z)(L.root,s),ref:t},F,{children:[!1!==g?(0,x.jsx)(_,{ownerState:T,className:L.icon,children:g||m[k]||A[k]}):null,(0,x.jsx)(I,{ownerState:T,className:L.message,children:a}),null!=o?(0,x.jsx)(O,{ownerState:T,className:L.action,children:o}):null,null==o&&y?(0,x.jsx)(O,{ownerState:T,className:L.action,children:(0,x.jsx)(D,(0,i.Z)({size:"small","aria-label":u,title:u,color:"inherit",onClick:y},j,{children:(0,x.jsx)(N,(0,i.Z)({fontSize:"small"},V))}))}):null]}))});var T=F},24362:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(84006),s=n(13477),u=n(81427),c=n(31608),f=n(11874),d=n(68681),h=n(17780),p=n(30151),g=n(60201),m=n(80683);function y(e){return(0,m.ZP)("PrivateSwitchBase",e)}(0,g.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var v=n(24004);let b=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],x=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${(0,u.Z)(i)}`],input:["input"]};return(0,a.Z)(o,y,t)},k=(0,c.ZP)(p.Z)(({ownerState:e})=>(0,i.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),w=(0,c.ZP)("input",{shouldForwardProp:f.Z})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),C=o.forwardRef(function(e,t){let{autoFocus:n,checked:o,checkedIcon:a,className:s,defaultChecked:u,disabled:c,disableFocusRipple:f=!1,edge:p=!1,icon:g,id:m,inputProps:y,inputRef:C,name:S,onBlur:R,onChange:E,onFocus:M,readOnly:P,required:_=!1,tabIndex:I,type:O,value:A}=e,F=(0,r.Z)(e,b),[T,L]=(0,d.Z)({controlled:o,default:!!u,name:"SwitchBase",state:"checked"}),z=(0,h.Z)(),D=c;z&&void 0===D&&(D=z.disabled);let j="checkbox"===O||"radio"===O,N=(0,i.Z)({},e,{checked:T,disabled:D,disableFocusRipple:f,edge:p}),V=x(N);return(0,v.jsxs)(k,(0,i.Z)({component:"span",className:(0,l.Z)(V.root,s),centerRipple:!0,focusRipple:!f,disabled:D,tabIndex:null,role:void 0,onFocus:e=>{M&&M(e),z&&z.onFocus&&z.onFocus(e)},onBlur:e=>{R&&R(e),z&&z.onBlur&&z.onBlur(e)},ownerState:N,ref:t},F,{children:[(0,v.jsx)(w,(0,i.Z)({autoFocus:n,checked:o,defaultChecked:u,className:V.input,disabled:D,id:j?m:void 0,name:S,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;L(t),E&&E(e,t)},readOnly:P,ref:C,required:_,ownerState:N,tabIndex:I,type:O},"checkbox"===O&&void 0===A?{}:{value:A},y)),T?a:g]}))});var S=n(97491),R=(0,S.Z)((0,v.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),E=(0,S.Z)((0,v.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),M=(0,S.Z)((0,v.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),P=n(87286);function _(e){return(0,m.ZP)("MuiCheckbox",e)}let I=(0,g.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),O=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],A=e=>{let{classes:t,indeterminate:n,color:r,size:o}=e,l={root:["root",n&&"indeterminate",`color${(0,u.Z)(r)}`,`size${(0,u.Z)(o)}`]},s=(0,a.Z)(l,_,t);return(0,i.Z)({},t,s)},F=(0,c.ZP)(C,{shouldForwardProp:e=>(0,f.Z)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,u.Z)(n.size)}`],"default"!==n.color&&t[`color${(0,u.Z)(n.color)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${I.checked}, &.${I.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${I.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),T=(0,v.jsx)(E,{}),L=(0,v.jsx)(R,{}),z=(0,v.jsx)(M,{}),D=o.forwardRef(function(e,t){var n,a;let s=(0,P.i)({props:e,name:"MuiCheckbox"}),{checkedIcon:u=T,color:c="primary",icon:f=L,indeterminate:d=!1,indeterminateIcon:h=z,inputProps:p,size:g="medium",className:m}=s,y=(0,r.Z)(s,O),b=d?h:f,x=d?h:u,k=(0,i.Z)({},s,{color:c,indeterminate:d,size:g}),w=A(k);return(0,v.jsx)(F,(0,i.Z)({type:"checkbox",inputProps:(0,i.Z)({"data-indeterminate":d},p),icon:o.cloneElement(b,{fontSize:null!=(n=b.props.fontSize)?n:g}),checkedIcon:o.cloneElement(x,{fontSize:null!=(a=x.props.fontSize)?a:g}),ownerState:k,ref:t,className:(0,l.Z)(w.root,m)},y,{classes:w}))});var j=D},62268:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(84006),s=n(17780),u=n(32414),c=n(63147),f=n(81427),d=n(31608),h=n(87286),p=n(60201),g=n(80683);function m(e){return(0,g.ZP)("MuiFormControlLabel",e)}let y=(0,p.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var v=n(34209),b=n(24004);let x=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],k=e=>{let{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,l={root:["root",n&&"disabled",`labelPlacement${(0,f.Z)(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,a.Z)(l,m,t)},w=(0,d.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${y.label}`]:t.label},t.root,t[`labelPlacement${(0,f.Z)(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${y.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${y.label}`]:{[`&.${y.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),C=(0,d.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${y.error}`]:{color:(e.vars||e).palette.error.main}})),S=o.forwardRef(function(e,t){var n,a;let f=(0,h.i)({props:e,name:"MuiFormControlLabel"}),{className:d,componentsProps:p={},control:g,disabled:m,disableTypography:y,label:S,labelPlacement:R="end",required:E,slotProps:M={}}=f,P=(0,r.Z)(f,x),_=(0,s.Z)(),I=null!=(n=null!=m?m:g.props.disabled)?n:null==_?void 0:_.disabled,O=null!=E?E:g.props.required,A={disabled:I,required:O};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===g.props[e]&&void 0!==f[e]&&(A[e]=f[e])});let F=(0,v.Z)({props:f,muiFormControl:_,states:["error"]}),T=(0,i.Z)({},f,{disabled:I,labelPlacement:R,required:O,error:F.error}),L=k(T),z=null!=(a=M.typography)?a:p.typography,D=S;return null==D||D.type===c.Z||y||(D=(0,b.jsx)(c.Z,(0,i.Z)({component:"span"},z,{className:(0,l.Z)(L.label,null==z?void 0:z.className),children:D}))),(0,b.jsxs)(w,(0,i.Z)({className:(0,l.Z)(L.root,d),ownerState:T,ref:t},P,{children:[o.cloneElement(g,A),O?(0,b.jsxs)(u.Z,{display:"block",children:[D,(0,b.jsxs)(C,{ownerState:T,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):D]}))});var R=S},82197:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r,i=n(94312),o=n(79042),l=n(14978),a=n(53468),s=n(84006),u=n(81427),c=n(63147),f=n(65122),d=n(17780),h=n(31608),p=n(60201),g=n(80683);function m(e){return(0,g.ZP)("MuiInputAdornment",e)}let y=(0,p.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var v=n(87286),b=n(24004);let x=["children","className","component","disablePointerEvents","disableTypography","position","variant"],k=e=>{let{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:l}=e,a={root:["root",n&&"disablePointerEvents",i&&`position${(0,u.Z)(i)}`,l,r&&"hiddenLabel",o&&`size${(0,u.Z)(o)}`]};return(0,s.Z)(a,m,t)},w=(0,h.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${(0,u.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>(0,o.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${y.positionStart}&:not(.${y.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),C=l.forwardRef(function(e,t){let n=(0,v.i)({props:e,name:"MuiInputAdornment"}),{children:s,className:u,component:h="div",disablePointerEvents:p=!1,disableTypography:g=!1,position:m,variant:y}=n,C=(0,i.Z)(n,x),S=(0,d.Z)()||{},R=y;y&&S.variant,S&&!R&&(R=S.variant);let E=(0,o.Z)({},n,{hiddenLabel:S.hiddenLabel,size:S.size,disablePointerEvents:p,position:m,variant:R}),M=k(E);return(0,b.jsx)(f.Z.Provider,{value:null,children:(0,b.jsx)(w,(0,o.Z)({as:h,ownerState:E,className:(0,a.Z)(M.root,u),ref:t},C,{children:"string"!=typeof s||g?(0,b.jsxs)(l.Fragment,{children:["start"===m?r||(r=(0,b.jsx)("span",{className:"notranslate",children:""})):null,s]}):(0,b.jsx)(c.Z,{color:"text.secondary",children:s})}))})});var S=C},57027:function(e,t,n){"use strict";var r=n(94312),i=n(79042),o=n(14978),l=n(53468),a=n(84006),s=n(31608),u=n(87286),c=n(96212),f=n(11112),d=n(24004);let h=["className"],p=e=>{let{alignItems:t,classes:n}=e;return(0,a.Z)({root:["root","flex-start"===t&&"alignItemsFlexStart"]},c.f,n)},g=(0,s.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>(0,i.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),m=o.forwardRef(function(e,t){let n=(0,u.i)({props:e,name:"MuiListItemIcon"}),{className:a}=n,s=(0,r.Z)(n,h),c=o.useContext(f.Z),m=(0,i.Z)({},n,{alignItems:c.alignItems}),y=p(m);return(0,d.jsx)(g,(0,i.Z)({className:(0,l.Z)(y.root,a),ownerState:m,ref:t},s))});t.Z=m},22262:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var r=n(94312),i=n(79042),o=n(14978),l=n(84006),a=n(41123),s=n(95203),u=n(17104),c=n(335),f=function(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:l,resumeHideDuration:a}=e,f=(0,s.Z)();o.useEffect(()=>{if(l)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}},[l,r]);let d=(0,u.Z)((e,t)=>{null==r||r(e,t)}),h=(0,u.Z)(e=>{r&&null!=e&&f.start(e,()=>{d(null,"timeout")})});o.useEffect(()=>(l&&h(t),f.clear),[l,t,h,f]);let p=f.clear,g=o.useCallback(()=>{null!=t&&h(null!=a?a:.5*t)},[t,a,h]),m=e=>t=>{let n=e.onBlur;null==n||n(t),g()},y=e=>t=>{let n=e.onFocus;null==n||n(t),p()},v=e=>t=>{let n=e.onMouseEnter;null==n||n(t),p()},b=e=>t=>{let n=e.onMouseLeave;null==n||n(t),g()};return o.useEffect(()=>{if(!n&&l)return window.addEventListener("focus",g),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",p)}},[n,l,g,p]),{getRootProps:(t={})=>{let n=(0,i.Z)({},(0,c.Z)(e),(0,c.Z)(t));return(0,i.Z)({role:"presentation"},t,n,{onBlur:m(n),onFocus:y(n),onMouseEnter:v(n),onMouseLeave:b(n)})},onClickAway:e=>{null==r||r(e,"clickaway")}}},d=n(50774),h=n(29649),p=n(24004);function g(e){return e.substring(2).toLowerCase()}function m(e){let{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:l="onTouchEnd"}=e,a=o.useRef(!1),s=o.useRef(null),c=o.useRef(!1),f=o.useRef(!1);o.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);let m=(0,d.Z)(t.ref,s),y=(0,u.Z)(e=>{let t=f.current;f.current=!1;let r=(0,h.Z)(s.current);if(c.current&&s.current&&(!("clientX"in e)||!(r.documentElement.clientWidth<e.clientX)&&!(r.documentElement.clientHeight<e.clientY))){if(a.current){a.current=!1;return}(e.composedPath?e.composedPath().indexOf(s.current)>-1:!r.documentElement.contains(e.target)||s.current.contains(e.target))||!n&&t||i(e)}}),v=e=>n=>{f.current=!0;let r=t.props[e];r&&r(n)},b={ref:m};return!1!==l&&(b[l]=v(l)),o.useEffect(()=>{if(!1!==l){let e=g(l),t=(0,h.Z)(s.current),n=()=>{a.current=!0};return t.addEventListener(e,y),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,y),t.removeEventListener("touchmove",n)}}},[y,l]),!1!==r&&(b[r]=v(r)),o.useEffect(()=>{if(!1!==r){let e=g(r),t=(0,h.Z)(s.current);return t.addEventListener(e,y),()=>{t.removeEventListener(e,y)}}},[y,r]),(0,p.jsx)(o.Fragment,{children:o.cloneElement(t,b)})}var y=n(31608),v=n(92863),b=n(87286),x=n(81427),k=n(96608),w=n(53468),C=n(13477),S=n(37803),R=n(60201),E=n(80683);function M(e){return(0,E.ZP)("MuiSnackbarContent",e)}(0,R.Z)("MuiSnackbarContent",["root","message","action"]);let P=["action","className","message","role"],_=e=>{let{classes:t}=e;return(0,l.Z)({root:["root"],action:["action"],message:["message"]},M,t)},I=(0,y.ZP)(S.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let t="light"===e.palette.mode?.8:.98,n=(0,C._4)(e.palette.background.default,t);return(0,i.Z)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),O=(0,y.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),A=(0,y.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),F=o.forwardRef(function(e,t){let n=(0,b.i)({props:e,name:"MuiSnackbarContent"}),{action:o,className:l,message:a,role:s="alert"}=n,u=(0,r.Z)(n,P),c=_(n);return(0,p.jsxs)(I,(0,i.Z)({role:s,square:!0,elevation:6,className:(0,w.Z)(c.root,l),ownerState:n,ref:t},u,{children:[(0,p.jsx)(O,{className:c.message,ownerState:n,children:a}),o?(0,p.jsx)(A,{className:c.action,ownerState:n,children:o}):null]}))});function T(e){return(0,E.ZP)("MuiSnackbar",e)}(0,R.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);let L=["onEnter","onExited"],z=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],D=e=>{let{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${(0,x.Z)(n.vertical)}${(0,x.Z)(n.horizontal)}`]};return(0,l.Z)(r,T,t)},j=(0,y.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`anchorOrigin${(0,x.Z)(n.anchorOrigin.vertical)}${(0,x.Z)(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,i.Z)({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===t.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===t.anchorOrigin.horizontal&&{right:24,left:"auto"})})),N=o.forwardRef(function(e,t){let n=(0,b.i)({props:e,name:"MuiSnackbar"}),l=(0,v.Z)(),s={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{action:u,anchorOrigin:{vertical:c,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:h=null,children:g,className:y,ClickAwayListenerProps:x,ContentProps:w,disableWindowBlurListener:C=!1,message:S,open:R,TransitionComponent:E=k.Z,transitionDuration:M=s,TransitionProps:{onEnter:P,onExited:_}={}}=n,I=(0,r.Z)(n.TransitionProps,L),O=(0,r.Z)(n,z),A=(0,i.Z)({},n,{anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:h,disableWindowBlurListener:C,TransitionComponent:E,transitionDuration:M}),T=D(A),{getRootProps:N,onClickAway:V}=f((0,i.Z)({},A)),[B,H]=o.useState(!0),q=(0,a.Z)({elementType:j,getSlotProps:N,externalForwardedProps:O,ownerState:A,additionalProps:{ref:t},className:[T.root,y]});return!R&&B?null:(0,p.jsx)(m,(0,i.Z)({onClickAway:V},x,{children:(0,p.jsx)(j,(0,i.Z)({},q,{children:(0,p.jsx)(E,(0,i.Z)({appear:!0,in:R,timeout:M,direction:"top"===c?"down":"up",onEnter:(e,t)=>{H(!1),P&&P(e,t)},onExited:e=>{H(!0),_&&_(e)}},I,{children:g||(0,p.jsx)(F,(0,i.Z)({message:S,action:u},w))}))}))}))});var V=N},66389:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,f=arguments[0],d=1,h=arguments.length,p=!1;for("boolean"==typeof f&&(p=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<h;++d)if(t=arguments[d],null!=t)for(n in t)r=s(f,n),f!==(i=s(t,n))&&(p&&i&&(l(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&l(r)?r:{},a(f,{name:n,newValue:e(p,c,i)})):void 0!==i&&a(f,{name:n,newValue:i}));return f}},32162:function(e){"use strict";e.exports=function(e,t){var n=t.length,r=e.length;if(r>n)return!1;if(r===n)return e===t;e:for(var i=0,o=0;i<r;i++){for(var l=e.charCodeAt(i);o<n;)if(t.charCodeAt(o++)===l)continue e;return!1}return!0}},64743:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g;function u(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var c=1,f=1;function d(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:c,column:f};return function(t){return t.position=new p(e),y(r),t}}function p(e){this.start=e,this.end={line:c,column:f},this.source=s.source}p.prototype.content=e;var g=[];function m(t){var n=Error(s.source+":"+c+":"+f+": "+t);if(n.reason=t,n.filename=s.source,n.line=c,n.column=f,n.source=e,s.silent)g.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return f+=2,d(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}return y(r),function(){var e,n=[];for(v(n);e=function(){var e=h(),n=y(i);if(n){if(b(),!y(o))return m("property missing ':'");var r=y(l),s=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return y(a),s}}();)!1!==e&&(n.push(e),v(n));return n}()}},39263:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(64743));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),o="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}}),n}},23223:function(e,t,n){"use strict";n.d(t,{Nr:function(){return l}});var r=n(14978);function i(e,t){return e===t}function o(e,t){return t}function l(e,t,n){var l=n&&n.equalityFn||i,a=(0,r.useReducer)(o,e),s=a[0],u=a[1],c=function(e,t,n){var i=this,o=(0,r.useRef)(null),l=(0,r.useRef)(0),a=(0,r.useRef)(null),s=(0,r.useRef)([]),u=(0,r.useRef)(),c=(0,r.useRef)(),f=(0,r.useRef)(e),d=(0,r.useRef)(!0);f.current=e;var h="undefined"!=typeof window,p=!t&&0!==t&&h;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,y="maxWait"in n,v="debounceOnServer"in n&&!!n.debounceOnServer,b=y?Math.max(+n.maxWait||0,t):null;return(0,r.useEffect)(function(){return d.current=!0,function(){d.current=!1}},[]),(0,r.useMemo)(function(){var e=function(e){var t=s.current,n=u.current;return s.current=u.current=null,l.current=e,c.current=f.current.apply(n,t)},n=function(e,t){p&&cancelAnimationFrame(a.current),a.current=p?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!d.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||y&&e-l.current>=b},x=function(t){return a.current=null,m&&s.current?e(t):(s.current=u.current=null,c.current)},k=function e(){var i=Date.now();if(r(i))return x(i);if(d.current){var a=t-(i-o.current);n(e,y?Math.min(a,b-(i-l.current)):a)}},w=function(){if(h||v){var f=Date.now(),p=r(f);if(s.current=[].slice.call(arguments),u.current=i,o.current=f,p){if(!a.current&&d.current)return l.current=o.current,n(k,t),g?e(o.current):c.current;if(y)return n(k,t),e(o.current)}return a.current||n(k,t),c.current}};return w.cancel=function(){a.current&&(p?cancelAnimationFrame(a.current):clearTimeout(a.current)),l.current=0,s.current=o.current=u.current=a.current=null},w.isPending=function(){return!!a.current},w.flush=function(){return a.current?x(Date.now()):c.current},w},[g,y,t,b,m,p,h,v])}((0,r.useCallback)(function(e){return u(e)},[u]),t,n),f=(0,r.useRef)(e);return l(f.current,e)||(c(e),f.current=e),[s,c]}},9317:function(e,t,n){"use strict";n.d(t,{b7:function(){return l},ie:function(){return o}});var r=n(14978),i=n(36128);/**
|
|
2
2
|
* react-table
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) TanStack
|