@sinytra/wiki-previewer 0.1.125 → 0.1.129
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/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +79 -79
- package/.next/app-path-routes-manifest.json +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/prerender-manifest.json +15 -15
- package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route.js +1 -1
- package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route.js.nft.json +1 -1
- package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/page.js +2 -2
- package/.next/server/app/[locale]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found/page.js +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +5 -5
- package/.next/server/app/opengraph-image/route_client-reference-manifest.js +1 -1
- package/.next/server/app/robots.txt/route_client-reference-manifest.js +1 -1
- package/.next/server/app/sitemap.xml/route_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +1 -1
- package/.next/server/chunks/1722.js +1 -0
- package/.next/server/chunks/2313.js +2 -2
- package/.next/server/chunks/2337.js +1 -1
- package/.next/server/chunks/{4278.js → 3938.js} +1 -1
- package/.next/server/chunks/4068.js +1 -0
- package/.next/server/chunks/4903.js +1 -0
- package/.next/server/chunks/5413.js +10 -0
- package/.next/server/chunks/5943.js +159 -0
- package/.next/server/chunks/6064.js +54 -0
- package/.next/server/chunks/7212.js +1 -0
- package/.next/server/chunks/7748.js +1 -0
- package/.next/server/chunks/7772.js +1 -0
- package/.next/server/chunks/{34.js → 9228.js} +3 -3
- package/.next/server/chunks/981.js +1 -0
- package/.next/server/chunks/9882.js +1 -1
- package/.next/server/middleware-manifest.json +10 -10
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/server/src/middleware.js +1 -1
- package/.next/static/chunks/103-46cfa8ff07310382.js +1 -0
- package/.next/static/chunks/{5307-313dba7e9f7ba575.js → 357-e28f1a542e1d123a.js} +1 -1
- package/.next/static/chunks/4021-4ed620e833362864.js +1 -0
- package/.next/static/chunks/{1387-425b909529e8feeb.js → 4467-e5439059ac57bbc1.js} +1 -1
- package/.next/static/chunks/{595-d255f000314959c1.js → 595-540f36fc4bd1eca9.js} +1 -1
- package/.next/static/chunks/8047-a76bedee28fa3855.js +1 -0
- package/.next/static/chunks/8503-18e014294c240db0.js +1 -0
- package/.next/static/chunks/{8616-7aec55a29c564489.js → 8616-cd5800f66cc48e07.js} +1 -1
- package/.next/static/chunks/{9400-5197b306237257a0.js → 9538-0952ccc1cdc43aab.js} +1 -1
- package/.next/static/chunks/9956-b1e9ab15956e370e.js +1 -0
- package/.next/static/chunks/app/(developers)/api/docs/[slug]/asset/[id]/route-2eb1e2f7ef7dbda5.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/error-824b5f552a464508.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/not-found-9a5a8c873fe218c8.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page-7caa12c64304cf05.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/error-379b997ddc90bcb1.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/not-found-9a5a8c873fe218c8.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/{page-c909527ca15c01a3.js → page-9be9cb3294aa2ea2.js} +1 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/error-c27832382d942bf9.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/not-found-9a5a8c873fe218c8.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page-66bd37d4cbebbeba.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/error-2adf1c543db3b129.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/not-found-9a5a8c873fe218c8.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-d0de8ac366a22bb4.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-c35f1c7c35789f59.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/page-5edab0f76527d8be.js +1 -0
- package/.next/static/chunks/app/[locale]/layout-bc721f680058d307.js +1 -0
- package/.next/static/chunks/app/[locale]/not-found-a5c82dda280be116.js +1 -0
- package/.next/static/chunks/app/[locale]/page-4e0567f9f6f7f014.js +1 -0
- package/.next/static/chunks/app/error-071f9f60fcee43d3.js +1 -0
- package/.next/static/chunks/app/not-found-ea05d09b42b69998.js +1 -0
- package/.next/static/css/88688c974376cfbc.css +1 -0
- package/package.json +1 -1
- package/.next/server/chunks/1163.js +0 -159
- package/.next/server/chunks/1874.js +0 -1
- package/.next/server/chunks/3800.js +0 -1
- package/.next/server/chunks/513.js +0 -54
- package/.next/server/chunks/5192.js +0 -1
- package/.next/server/chunks/5257.js +0 -1
- package/.next/server/chunks/6490.js +0 -1
- package/.next/server/chunks/689.js +0 -10
- package/.next/server/chunks/8256.js +0 -1
- package/.next/server/chunks/9358.js +0 -1
- package/.next/static/chunks/103-21aa34964932254c.js +0 -1
- package/.next/static/chunks/4254-920d1f51812b160f.js +0 -1
- package/.next/static/chunks/4283-b63fac6a595bdd16.js +0 -1
- package/.next/static/chunks/6399-95a77df3ef986ee8.js +0 -1
- package/.next/static/chunks/9355-413a0cdee2ddda08.js +0 -1
- package/.next/static/chunks/app/(developers)/api/docs/[slug]/asset/[id]/route-068507a6d4ac19c1.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/error-877504c9c31c7f75.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/not-found-c1d28035aac9deaf.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page-5f54acec5d25f263.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/error-72ff02f5f9f6a2ed.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/not-found-c1d28035aac9deaf.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/error-61881d0ee2499ef4.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/not-found-c1d28035aac9deaf.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page-518476885bfdaeee.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/error-6c609fb9dd26a410.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/not-found-c1d28035aac9deaf.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-609dc31954dd60ba.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-dd7f75c9e0afc99c.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/page-a60bb4aaa88a1cff.js +0 -1
- package/.next/static/chunks/app/[locale]/layout-daac4cc9cfede500.js +0 -1
- package/.next/static/chunks/app/[locale]/not-found-1fe350d840356926.js +0 -1
- package/.next/static/chunks/app/[locale]/page-5f2b2237dd4149c0.js +0 -1
- package/.next/static/chunks/app/error-49afa95803b0b2eb.js +0 -1
- package/.next/static/chunks/app/not-found-f5d97a4ac6e12889.js +0 -1
- package/.next/static/css/c4dc5c3a5ae1dd8e.css +0 -1
- /package/.next/static/{3xyLk6siZiXYM_Y7FgV-I → Bbl1kmS1XNNk11h2myHVO}/_buildManifest.js +0 -0
- /package/.next/static/{3xyLk6siZiXYM_Y7FgV-I → Bbl1kmS1XNNk11h2myHVO}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.id=8256,exports.ids=[8256],exports.modules={1450:(a,b,c)=>{Promise.resolve().then(c.bind(c,15534)),Promise.resolve().then(c.t.bind(c,8591,23))},11150:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(9968).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/app/global-error.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/app/global-error.tsx","default")},12686:(a,b,c)=>{"use strict";c.d(b,{default:()=>f});var d=c(67258),e=c(1706);function f({children:a}){return(0,d.jsx)(e.V,{color:"var(--color-progressbar)",delay:500,options:{showSpinner:!1},children:a})}},16319:(a,b,c)=>{Promise.resolve().then(c.bind(c,57908))},16860:(a,b,c)=>{"use strict";c.d(b,{k:()=>h});var d=c(60492),e=c(19061),f=c(8591),g=c.n(f);let h=(0,e.forwardRef)(function({prefetch:a=!1,...b},c){return(0,d.jsx)(g(),{prefetch:a,...b,ref:c})})},25532:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,60069,23)),Promise.resolve().then(c.t.bind(c,97317,23)),Promise.resolve().then(c.t.bind(c,27084,23)),Promise.resolve().then(c.t.bind(c,24500,23)),Promise.resolve().then(c.t.bind(c,82312,23)),Promise.resolve().then(c.t.bind(c,67904,23)),Promise.resolve().then(c.t.bind(c,94473,23)),Promise.resolve().then(c.bind(c,67776))},25971:(a,b,c)=>{Promise.resolve().then(c.bind(c,11150))},29872:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>g});var d=c(67258);c(94827);var e=c(2784),f=c.n(e);function g({error:a}){return(0,d.jsx)("html",{children:(0,d.jsx)("body",{children:(0,d.jsx)(f(),{statusCode:0})})})}c(83459)},34407:a=>{function b(a){var b=Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b}b.keys=()=>[],b.resolve=b,b.id=34407,a.exports=b},35506:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>e});var d=c(19109);let e=async a=>[{type:"image/x-icon",sizes:"64x64",url:(0,d.fillMetadataSegment)(".",await a.params,"favicon.ico")+""}]},35872:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(9968).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/packages/ui/src/navigation/NavProgressBar.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/packages/ui/src/navigation/NavProgressBar.tsx","default")},39038:()=>{},42525:(a,b,c)=>{"use strict";c.d(b,{$:()=>j});var d=c(67258),e=c(83459),f=c(96474),g=c(79641),h=c(46763);let i=(0,g.F)("inline-flex items-center justify-center rounded-sm text-sm font-medium whitespace-nowrap ring-offset-background transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"border border-primary bg-primary text-primary hover:bg-secondary/90",destructive:"border-destructive-secondary border bg-primary bg-secondary font-semibold text-destructive hover:bg-secondary/80 hover:text-destructive/90 data-[pending=true]:text-destructive/90",destructiveSecondary:"text-primary-alt hover:text-primary-alt/90 bg-destructive",outline:"border-quaternary hover:text-primary-alt border bg-primary hover:bg-secondary",secondary:"text-secondary-alt bg-secondary hover:bg-secondary/80",ghost:"hover:text-primary-alt hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-sm px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),j=e.forwardRef(({className:a,variant:b,size:c,asChild:e=!1,...g},j)=>{let k=e?f.DX:"button";return(0,d.jsx)(k,{className:(0,h.cn)(i({variant:b,size:c,className:a})),ref:j,...g})});j.displayName="Button"},42590:(a,b,c)=>{"use strict";c.d(b,{k:()=>h});var d=c(67258),e=c(83459),f=c(3065),g=c.n(f);let h=(0,e.forwardRef)(function({prefetch:a=!1,...b},c){return(0,d.jsx)(g(),{prefetch:a,...b,ref:c})})},46763:(a,b,c)=>{"use strict";c.d(b,{cn:()=>f});var d=c(11835),e=c(91127);function f(...a){return(0,e.QP)((0,d.$)(a))}},47880:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>k,metadata:()=>j});var d=c(60492),e=c(97291),f=c.n(e);c(39038);var g=c(97933),h=c(38372),i=c(35872);let j={title:"Modded Minecraft Wiki",description:"The Wiki for all of Modded Minecraft. Presented by Sinytra.",metadataBase:new URL(process.env.NEXT_PUBLIC_NEXT_APP_URL||"http://localhost:3000"),openGraph:{siteName:"Modded Minecraft Wiki",type:"website",url:process.env.NEXT_PUBLIC_NEXT_APP_URL},other:{"darkreader-lock":"true"}};function k({children:a}){let b={"@context":"https://schema.org","@type":"WebSite",name:"Modded Minecraft Wiki",alternateName:["Sinytra Wiki","MMW"],url:process.env.NEXT_PUBLIC_NEXT_APP_URL};return(0,d.jsxs)("html",{lang:"en","data-theme":"dark",className:"cc--darkmode",children:[(0,d.jsx)("head",{children:(0,d.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(b)}})}),(0,d.jsx)("body",{className:(0,g.cn)(f().className,"flex min-h-screen flex-col bg-primary text-primary"),children:(0,d.jsx)(i.default,{children:(0,d.jsx)(h.NuqsAdapter,{children:a})})})]})}},50637:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f}),c(60492);var d=c(19109);let e={runtime:"edge",alt:"Modded Minecraft Wiki",size:{width:1200,height:630},contentType:"image/png"};async function f(a){let{__metadata_id__:b,...c}=await a.params,f=(0,d.fillMetadataSegment)(".",c,"opengraph-image"),{generateImageMetadata:g}=e;function h(a,b){let c={alt:a.alt,type:a.contentType||"image/png",url:f+(b?"/"+b:"")+"?292bad25743f8d37"},{size:d}=a;return d&&(c.width=d.width,c.height=d.height),c}return g?(await g({params:c})).map((a,b)=>{let c=(a.id||b)+"";return h(a,c)}):[h(e,"")]}},57908:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>k});var d=c(67258),e=c(42525),f=c(56573),g=c(69069),h=c(31050),i=c(41812);c(83459);var j=c(42590);function k({error:a}){return(0,d.jsxs)("div",{className:"m-auto flex flex-col items-center justify-center gap-4 p-4",children:[(0,d.jsx)(f.A,{className:"h-32 w-32 sm:h-48 sm:w-48",strokeWidth:1.5}),(0,d.jsx)("h1",{className:"my-2 text-3xl text-primary sm:text-5xl",children:"Something went wrong"}),(0,d.jsx)("p",{className:"w-3/4 text-center text-secondary sm:w-full",children:"An error occured while loading the page. Please try again later."}),(0,d.jsxs)("div",{className:"mt-4 inline-flex flex-wrap justify-center gap-4",children:[(0,d.jsx)(e.$,{variant:"secondary",asChild:!0,children:(0,d.jsxs)(j.k,{href:"https://status.moddedmc.org",target:"_blank",children:[(0,d.jsx)(g.A,{className:"mr-2 h-4 w-4"}),"Check status"]})}),(0,d.jsx)(e.$,{asChild:!0,children:(0,d.jsxs)(j.k,{href:"/",children:[(0,d.jsx)(h.A,{className:"mr-2 h-4 w-4"}),"Return Home"]})}),(0,d.jsx)(e.$,{variant:"secondary",asChild:!0,children:(0,d.jsxs)(j.k,{href:"https://github.com/Sinytra/Wiki/issues",target:"_blank",children:[(0,d.jsx)(i.A,{className:"mr-2 h-4 w-4"}),"Report Bug"]})})]})]})}},62923:(a,b,c)=>{Promise.resolve().then(c.bind(c,29872))},64498:(a,b,c)=>{Promise.resolve().then(c.bind(c,12590)),Promise.resolve().then(c.t.bind(c,3065,23))},71920:(a,b,c)=>{Promise.resolve().then(c.bind(c,38372)),Promise.resolve().then(c.bind(c,35872))},76999:(a,b,c)=>{Promise.resolve().then(c.bind(c,86618))},81648:(a,b,c)=>{Promise.resolve().then(c.bind(c,28073)),Promise.resolve().then(c.bind(c,12686))},83740:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,74283,23)),Promise.resolve().then(c.t.bind(c,13959,23)),Promise.resolve().then(c.t.bind(c,76138,23)),Promise.resolve().then(c.t.bind(c,40350,23)),Promise.resolve().then(c.t.bind(c,98546,23)),Promise.resolve().then(c.t.bind(c,24378,23)),Promise.resolve().then(c.t.bind(c,69887,23)),Promise.resolve().then(c.t.bind(c,74378,23))},86300:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>i});var d=c(60492),e=c(93191),f=c(16860),g=c(91664),h=c(95676);function i(){return(0,d.jsxs)("div",{className:"m-auto flex flex-col items-center justify-center gap-4 p-4",children:[(0,d.jsx)(g.A,{className:"size-32 rounded-xs opacity-100"}),(0,d.jsx)("h1",{className:"my-2 text-5xl text-primary",children:"404 Not Found"}),(0,d.jsx)("p",{className:"text-secondary",children:"Whoops! Could not find the requested resource."}),(0,d.jsx)(e.$,{asChild:!0,className:"mt-4",children:(0,d.jsxs)(f.k,{href:"/",children:[(0,d.jsx)(h.A,{className:"mr-2 h-4 w-4"}),"Return Home"]})})]})}},86618:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(9968).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/app/error.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/app/error.tsx","default")},93191:(a,b,c)=>{"use strict";c.d(b,{$:()=>j});var d=c(60492),e=c(19061),f=c(84423),g=c(5591),h=c(97933);let i=(0,g.F)("inline-flex items-center justify-center rounded-sm text-sm font-medium whitespace-nowrap ring-offset-background transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"border border-primary bg-primary text-primary hover:bg-secondary/90",destructive:"border-destructive-secondary border bg-primary bg-secondary font-semibold text-destructive hover:bg-secondary/80 hover:text-destructive/90 data-[pending=true]:text-destructive/90",destructiveSecondary:"text-primary-alt hover:text-primary-alt/90 bg-destructive",outline:"border-quaternary hover:text-primary-alt border bg-primary hover:bg-secondary",secondary:"text-secondary-alt bg-secondary hover:bg-secondary/80",ghost:"hover:text-primary-alt hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-sm px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),j=e.forwardRef(({className:a,variant:b,size:c,asChild:e=!1,...g},j)=>{let k=e?f.DX:"button";return(0,d.jsx)(k,{className:(0,h.cn)(i({variant:b,size:c,className:a})),ref:j,...g})});j.displayName="Button"},97933:(a,b,c)=>{"use strict";c.d(b,{cn:()=>f});var d=c(2737),e=c(78585);function f(...a){return(0,e.QP)((0,d.$)(a))}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=9358,exports.ids=[9358],exports.modules={45076:(a,b,c)=>{c.d(b,{A:()=>d});let d=(0,c(22706).A)("rotate-ccw-clock",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},53204:(a,b,c)=>{c.d(b,{A:()=>d});let d=(0,c(75420).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},58375:(a,b,c)=>{c.d(b,{ZA:()=>r});var d=c(82652),e=c(44719),f=c(8168),g=c(83459);function h(a,b){return Object.hasOwn(a,b)?a[b]:void 0}function i(a,b,c){try{return a(b)}catch(a){return c?(0,e.i)(25,b,a,c):(0,e.i)(24,b,a),null}}function j(a){function b(b){if(void 0===b)return null;let c=Array.isArray(b);return c&&void 0===b[0]?null:(b=c?b[0]:"string"==typeof b?b:"",i(a.parse,b))}return{type:"single",eq:(a,b)=>a===b,...a,parseServerSide:b,withDefault(a){return{...this,defaultValue:a,parseServerSide:c=>b(c)??a}},withOptions(a){return{...this,...a}}}}function k(a,b){return a.valueOf()===b.valueOf()}j({parse:a=>a,serialize:String}),j({parse:a=>{let b=parseInt(a);return b==b?b:null},serialize:a=>""+Math.round(a)}),j({parse:a=>{let b=parseInt(a);return b==b?b-1:null},serialize:a=>""+Math.round(a+1)}),j({parse:a=>{let b=parseInt(a,16);return b==b?b:null},serialize:a=>{let b=Math.round(a).toString(16);return b<"0"||!(1&b.length)?b:"0"+b}}),j({parse:a=>{let b=parseFloat(a);return b==b?b:null},serialize:String}),j({parse:a=>"true"===a.toLowerCase(),serialize:String}),j({parse:a=>{let b=new Date(parseInt(a));return+b==+b?b:null},serialize:a=>""+a.valueOf(),eq:k}),j({parse:a=>{let b=new Date(a);return+b==+b&&l.parse(a)?b:null},serialize:a=>a.toISOString(),eq:k});let l=j({parse:a=>{let b=new Date(a.slice(0,10));return+b==+b&&l.serialize(b)===a.slice(0,10)?b:null},serialize:a=>a.toISOString().slice(0,10),eq:k}),m=(0,f.o)("sync-emitter",()=>(0,d.i)()),n={},o=(a,b)=>"defaultValue"===a?void 0:b;function p(a,b,c,e,f={},g={}){let j=!1,k=Object.entries(a).reduce((a,[k,l])=>{var m;let n=b[k],o=h(e,n),p="multi"===l.type?[]:null,q=void 0===o?"multi"===l.type?c.getAll(n):c.get(n):o,r=h(g,k);return void 0!==r&&((m=h(f,n)??p)===q||null!==m&&null!==q&&"string"!=typeof m&&"string"!=typeof q&&m.length===q.length&&m.every((a,b)=>a===q[b]))?a[k]=r:(j=!0,a[k]=((0,d.o)(q)?null:i(l.parse,q,n))??null,f[n]=q),a},{});return[j||=Object.keys(k).length!==Object.keys(g).length,k]}function q(a,b){return Object.fromEntries(Object.keys(a).map(c=>[c,a[c]??b[c]?.defaultValue??null]))}function r(a,b={}){let{parse:c=a=>a,type:i,serialize:j,eq:k,defaultValue:l,...s}=b,[{[a]:t},u]=function(a,b={}){let c=(0,g.useId)(),i=(0,f.i)(),j=(0,f.a)(),{history:k=i?.history??"replace",scroll:l=i?.scroll??!1,shallow:r=i?.shallow??!0,throttleMs:s=d.l.timeMs,limitUrlUpdates:t=i?.limitUrlUpdates,clearOnDefault:u=i?.clearOnDefault??!0,startTransition:v,urlKeys:w=n}=b,x=Object.keys(a).join(","),y=(0,g.useRef)(a),z=y.current,A=JSON.stringify(Object.entries(z),o)===JSON.stringify(Object.entries(a),o)&&Object.entries(a).every(([a,b])=>{if(z[a]?.startTransition!==b.startTransition)return!1;let c=z[a]?.defaultValue,d=b.defaultValue;return!!Object.is(c,d)||void 0!==c&&void 0!==d&&b.eq?.(c,d)===!0})?z:a;y.current=A;let B=(0,g.useMemo)(()=>Object.fromEntries(Object.keys(a).map(a=>[a,h(w,a)??a])),[x,JSON.stringify(w)]),C=Object.values(B),D=(0,f.r)(C),E=D.searchParams,F=(0,g.useRef)(null),G=(0,g.useRef)(null),H=(0,d.n)(C),[I]=(0,g.useState)(()=>{let b={},[,c]=p(a,B,E,H,b);return[c,b]}),J=(0,g.useRef)(I[1]),[K,L]=(0,g.useState)(I[0]),M=(0,g.useRef)(K),N=a=>JSON.stringify([C.map(b=>[b,a.getAll(b)]),H]),O=N(E),P=()=>{let[b,d]=p(a,B,E,H,J.current,M.current);return b&&((0,e.t)(1,c,x,d),M.current=d,L(d)),b},Q=Object.keys(J.current).join("&")!==C.join("&"),R=null===G.current||G.current===(D.pathname??location.pathname);if(Q)F.current=O,P(),J.current=Object.fromEntries(Object.entries(B).map(([b,c])=>[c,a[b]?.type==="multi"?E.getAll(c):E.get(c)]));else{let a=!1;R&&F.current!==O&&(F.current=O,a=P()),!a&&K!==M.current&&(R||void 0===D.pathname&&F.current===N(new URLSearchParams(location.search)))&&L(M.current)}let S=(0,g.useCallback)((a,b={})=>{let f,g=("function"==typeof a?a(q(M.current,A)):a)??Object.fromEntries(Object.keys(A).map(a=>[a,null]));(0,e.t)(6,c,x,g);let i=0,n=[];for(let[a,c]of Object.entries(g)){let e=h(A,a),g=B[a];if(!e||void 0===g||void 0===c)continue;(b.clearOnDefault??e.clearOnDefault??u)&&null!==c&&void 0!==e.defaultValue&&(e.eq??function(a,b){return a===b})(c,e.defaultValue)&&(c=null);let o=null===c?null:(e.serialize??String)(c);m.emit(g,{state:c,query:o});let p={key:g,query:o,options:{history:b.history??e.history??k,shallow:b.shallow??e.shallow??r,scroll:b.scroll??e.scroll??l,startTransition:b.startTransition??e.startTransition??v}},q=b.limitUrlUpdates??e.limitUrlUpdates??t;if(q?.method==="debounce"){let a=q.timeMs??d.l.timeMs,b=d.t.push(p,a,D,j);i<a&&(f=b,i=a)}else{let a=q?.timeMs??b.throttleMs??e.throttleMs??s;n.push(d.t.abort(g)),d.r.push(p,a)}}let o=n.length?d.r.flush(D,j):d.r.getPendingPromise(D);for(let a of n)o=a(o);return f??o},[x,k,r,l,s,t?.method,t?.timeMs,v,u,A,B,D.updateUrl,D.getSearchParamsSnapshot,D.rateLimitFactor,j]);return[(0,g.useMemo)(()=>q(K,A),[K,A]),S]}({[a]:{parse:c,type:i,serialize:j,eq:k,defaultValue:l}},s);return[t,(0,g.useCallback)((b,c={})=>u(c=>({[a]:"function"==typeof b?b(c[a]):b}),c),[a,u])]}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[103],{2938:(e,t,a)=>{a.d(t,{A:()=>s,o:()=>r});let r="minecraft";function n(e){if(0===e.length)return null;if(e.includes(":")){let t=e.split(":");return{namespace:t[0],path:t[1]}}return{namespace:"minecraft",path:e}}let s={toString:function(e){return"".concat(e.namespace,":").concat(e.path)},parse:n,extractPath:function(e){var t,a;return null!=(a=null==(t=n(e))?void 0:t.path)?a:e}}},7208:(e,t,a)=>{a.d(t,{AM:()=>l,Wv:()=>o,hl:()=>c});var r=a(7893),n=a(28081),s=a(63082),i=a(95745);let l=s.bL,o=s.l9,c=n.forwardRef((e,t)=>{let{className:a,align:n="center",sideOffset:l=4,...o}=e;return(0,r.jsx)(s.ZL,{children:(0,r.jsx)(s.UC,{ref:t,align:n,sideOffset:l,className:(0,i.cn)("border-tertiary bg-primary-alt text-primary-alt z-50 w-72 rounded-sm border p-4 shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",a),...o})})});c.displayName=s.UC.displayName},18526:(e,t,a)=>{a.d(t,{default:()=>l});var r=a(7893),n=a(2938),s=a(87257);function i(e){if("string"==typeof e){let t=Number(e);if(!Number.isNaN(t))return t}return e}function l(e){var t;let{asset:a,width:l,height:o,alt:c,title:d,noTitle:u,...m}=e;return(0,r.jsx)(s.default,{width:i(l),height:i(o),src:a.src,alt:c||a.id,title:u?void 0:d||(null==(t=n.A.parse(a.id))?void 0:t.path),strokeWidth:1.5,wrapper:{className:"inline sharpRendering"},...m})}},20826:(e,t,a)=>{a.r(t),a.d(t,{Tooltip:()=>o,TooltipContent:()=>d,TooltipProvider:()=>l,TooltipTrigger:()=>c});var r=a(7893),n=a(28081),s=a(30981),i=a(95745);let l=s.Kq,o=s.bL,c=s.l9,d=n.forwardRef((e,t)=>{let{className:a,sideOffset:n=4,...l}=e;return(0,r.jsx)(s.UC,{ref:t,sideOffset:n,className:(0,i.cn)("border-tertiary bg-primary-alt text-primary-alt z-50 animate-in overflow-hidden overscroll-contain rounded-md border px-3 py-1.5 text-sm shadow-md fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",a),...l})});d.displayName=s.UC.displayName},28139:(e,t,a)=>{a.d(t,{CopyButton:()=>u});var r=a(7893),n=a(27732),s=a(34925),i=a(28081),l=a(95745),o=a(82601),c=a(43875),d=a(27052);function u(e){let{text:t,showToast:a,className:u}=e,[m,p]=(0,i.useState)(!1),f=(0,d.c)("CopyButton");return(0,r.jsx)(o.$,{variant:"ghost",size:"icon",className:(0,l.cn)("text-secondary-alt opacity-0 transition-opacity duration-200 ease-in-out group-hover:opacity-100 hover:bg-gray-400/10 [&>svg]:animate-in [&>svg]:fade-in [&>svg]:fade-out",u),"aria-label":"Copy to clipboard",onClick:()=>{navigator.clipboard.writeText(t),p(!0),setTimeout(()=>p(!1),2e3),a&&c.oR.success(f("copied"))},children:m?(0,r.jsx)(n.A,{size:16}):(0,r.jsx)(s.A,{size:16})})}},28663:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var r=a(7893),n=a(28081);function s(e){let t=(0,n.useRef)(null),[a,s]=(0,n.useState)(null),i=null!==a;return(0,n.useEffect)(()=>{if(!i)return;let e=e=>{var a;if(!(null==(a=t.current)?void 0:a.contains(e.target)))return void s(null);s({x:e.clientX,y:e.clientY})},a=()=>s(null);return document.addEventListener("mousemove",e),document.addEventListener("mouseleave",a),window.addEventListener("blur",a),window.addEventListener("scroll",a,!0),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseleave",a),window.removeEventListener("blur",a),window.removeEventListener("scroll",a,!0)}},[i]),(0,r.jsxs)("div",{ref:t,onMouseEnter:e=>s({x:e.clientX,y:e.clientY}),onMouseLeave:()=>s(null),children:[a&&(0,r.jsx)("div",{className:"minetip-tooltip",style:{top:a.y+-33,left:a.x+15},children:(0,r.jsxs)("span",{className:"font-minecraft",children:[e.id,e.tag&&(0,r.jsxs)("p",{className:"m-0! mt-1! text-xs text-secondary text-shadow-none",children:["#",e.tag]})]})}),e.children]})}var i=a(95054),l=a(41736),o=a(80123),c=a(37040),d=a(95745);function u(e){var t;let{noTooltip:a,noLink:u,src:m,count:p,ctx:f,tag:h,...x}=e,[v,b]=(0,n.useState)(0),g=(0,n.useMemo)(()=>m[v],[v,m]),y=(0,n.useContext)(l.M);if((0,n.useEffect)(()=>{m.forEach(e=>{new Image().src=e.asset.src})},[m]),(0,n.useEffect)(()=>{if(0===m.length)return;let e=setInterval(()=>{y&&y.hover||b(e=>(e+1)%m.length)},2e3);return()=>clearInterval(e)},[m,y]),m.length<1)return null;let j=f?(0,i.MZ)(f,g):(0,i.cT)(g.id),w=(0,r.jsxs)("div",{...x,className:(0,d.cn)("relative shrink-0",x.className),children:[(0,r.jsx)(o.default,{noTitle:!0,asset:g.asset,alt:null!=(t=g.name)?t:g.id,className:"sharpRendering"}),p&&p>1&&(0,r.jsx)("span",{className:"sharpRendering absolute right-0 bottom-0 z-10 text-left font-minecraft text-base leading-1 text-white",style:{textShadow:"2px 2px 0 #3F3F3F"},children:p})]}),N=j&&!u?(0,r.jsx)(c.k,{href:j,rel:"noreferrer",children:w}):w;return a?N:(0,r.jsx)(s,{id:g.name||g.id,tag:h,children:N})}},37040:(e,t,a)=>{a.d(t,{k:()=>l});var r=a(7893),n=a(28081),s=a(19957),i=a.n(s);let l=(0,n.forwardRef)(function(e,t){let{prefetch:a=!1,...n}=e;return(0,r.jsx)(i(),{prefetch:a,...n,ref:t})})},39389:(e,t,a)=>{a.r(t),a.d(t,{Tabs:()=>l,TabsContent:()=>d,TabsList:()=>o,TabsTrigger:()=>c});var r=a(7893),n=a(28081),s=a(48731),i=a(95745);let l=s.bL,o=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.B8,{ref:t,className:(0,i.cn)("bg-primary-alt inline-flex h-10 items-center justify-center rounded-md p-1 text-secondary",a),...n})});o.displayName=s.B8.displayName;let c=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.l9,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center rounded-xs px-3 py-1.5 text-sm font-medium whitespace-nowrap ring-offset-background transition-all focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary data-[state=active]:shadow-xs",a),...n})});c.displayName=s.l9.displayName;let d=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.UC,{ref:t,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden",a),...n})});d.displayName=s.UC.displayName},41736:(e,t,a)=>{a.d(t,{M:()=>s,default:()=>i});var r=a(7893),n=a(28081);let s=(0,n.createContext)(null);function i(e){let{children:t}=e,[a,i]=(0,n.useState)(!1),l=(0,n.useMemo)(()=>({hover:a,setHover:i}),[a]),o=n.Children.map(t,e=>(0,n.isValidElement)(e)?(0,n.cloneElement)(e,{onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),...e.props}):e);return(0,r.jsx)(s.Provider,{value:l,children:(0,r.jsx)(r.Fragment,{children:o})})}},44064:(e,t,a)=>{a.d(t,{default:()=>i});var r=a(7893),n=a(28081),s=a(27052);function i(e){let{limit:t,content:a}=e,i=(0,s.c)("UsageContentList"),[l,o]=(0,n.useState)(!1);return(0,r.jsxs)("ul",{className:"mt-0",children:[l?a:a.slice(0,Math.min(t,a.length)),!l&&a.length>t&&(0,r.jsx)("li",{className:"text-secondary",children:(0,r.jsx)("button",{className:"decoration-1 underline-offset-4 hover:underline",onClick:()=>o(!0),children:i("more")})})]})}},55242:(e,t,a)=>{a.d(t,{default:()=>o});var r=a(7893),n=a(28081),s=a(95745),i=a(48193),l=a(27052);function o(e){let{columns:t,rows:a,embedded:o,expandedBody:c}=e,[d,u]=(0,n.useState)(!1),m=(0,l.c)("ResponsiveTable");return(0,r.jsxs)("table",{className:(0,s.cn)("[&_td]:bg-primary-alt/50",o&&"mb-0"),children:[(0,r.jsx)("thead",{className:"hidden sm:table-header-group",children:(0,r.jsx)("tr",{children:t.map(e=>(0,r.jsx)("th",{className:"",children:e.label},e.key))})}),(0,r.jsxs)("tbody",{children:[a.map((e,a)=>(0,r.jsx)("tr",{className:"block border-0 sm:table-row",children:t.map(t=>(0,r.jsxs)("td",{className:(0,s.cn)("block border-b sm:table-cell sm:border",e[t.key].className),"data-label":t.label,children:[(0,r.jsx)("div",{className:"mb-1 font-semibold text-primary-alt sm:hidden",children:t.label}),(0,r.jsx)("div",{children:e[t.key].data})]},t.key))},a)),(0,r.jsx)("tr",{children:(0,r.jsx)("td",{colSpan:t.length,className:"no-table-bs group cursor-pointer bg-table-soft!",onClick:()=>u(!d),"data-open":d,children:(0,r.jsxs)("div",{className:"my-0.5 flex w-full flex-row items-center justify-end gap-4 text-secondary",children:[(0,r.jsx)("span",{className:"text-sm",children:m("expand")}),(0,r.jsx)("span",{children:(0,r.jsx)(i.A,{className:"size-4 group-data-[open=true]:rotate-180"})})]})})}),d&&(0,r.jsx)("tr",{children:(0,r.jsx)("td",{colSpan:t.length,className:"no-table-bs no-table-padding",children:c})})]})]})}},72103:(e,t,a)=>{a.r(t),a.d(t,{default:()=>i});var r=a(7893),n=a(4758),s=a(95745);function i(e){let t=e.id;return(0,r.jsxs)("h2",{...e,className:void 0,className:(0,s.cn)(e.className,"group"),children:[e.children,t&&(0,r.jsx)("a",{href:"#".concat(t),className:"inline-block pl-2 opacity-0 transition-opacity duration-200 group-hover:opacity-100 hover:opacity-100",children:(0,r.jsx)(n.A,{className:"h-5 w-5 text-primary"})})]})}},78890:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var r=a(7893),n=a(20826),s=a(95745),i=a(7208);function l(e){let{hint:t,children:a}=e;return(0,r.jsxs)("span",{className:"inline-block",children:[(0,r.jsx)("span",{className:"sm:hidden",children:(0,r.jsxs)(i.AM,{children:[(0,r.jsx)(i.Wv,{className:(0,s.cn)("underline decoration-dotted decoration-2 underline-offset-2"),children:a}),(0,r.jsx)(i.hl,{side:"top",className:(0,s.cn)("slim-scrollbar max-h-56 max-w-[min(32rem,var(--radix-popper-available-width))]","animate-none! overflow-y-auto px-3 py-1.5 text-sm break-words whitespace-normal"),children:t})]})}),(0,r.jsx)("span",{className:"hidden sm:block",children:(0,r.jsx)(n.TooltipProvider,{delayDuration:200,children:(0,r.jsxs)(n.Tooltip,{children:[(0,r.jsx)(n.TooltipTrigger,{className:(0,s.cn)("cursor-help underline decoration-dotted decoration-2 underline-offset-2 select-text"),children:a}),(0,r.jsx)(n.TooltipContent,{side:"top",className:(0,s.cn)("slim-scrollbar max-h-56 max-w-[min(32rem,var(--radix-popper-available-width))] animate-none!","overflow-y-auto px-3 py-1.5 text-sm break-words whitespace-normal"),children:t})]})})})]})}},80123:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var r=a(7893),n=a(28081),s=a(2938),i=a(95745);function l(e){var t;let{asset:a,width:l,height:o,alt:c,title:d,noTitle:u,...m}=e,p=(0,n.useRef)(null),[f,h]=(0,n.useState)(a.src);return(0,n.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{h("/static/missing_item.png")};return e.addEventListener("error",t),e.complete&&0===e.naturalWidth&&t(),()=>{e.removeEventListener("error",t)}},[a.src]),(0,r.jsx)("div",{...m,className:(0,i.cn)("overflow-hidden",m.className),style:{width:"".concat(l||32,"px"),height:"".concat(o||32,"px")},children:(0,r.jsx)("img",{ref:p,width:l||32,height:o||32,src:f,alt:c||a.id,title:u?void 0:d||(null==(t=s.A.parse(a.id))?void 0:t.path),loading:"eager"})})}},82601:(e,t,a)=>{a.d(t,{$:()=>c});var r=a(7893),n=a(28081),s=a(85126),i=a(8295),l=a(95745);let o=(0,i.F)("inline-flex items-center justify-center rounded-sm text-sm font-medium whitespace-nowrap ring-offset-background transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"border border-primary bg-primary text-primary hover:bg-secondary/90",destructive:"border-destructive-secondary border bg-primary bg-secondary font-semibold text-destructive hover:bg-secondary/80 hover:text-destructive/90 data-[pending=true]:text-destructive/90",destructiveSecondary:"text-primary-alt hover:text-primary-alt/90 bg-destructive",outline:"border-quaternary hover:text-primary-alt border bg-primary hover:bg-secondary",secondary:"text-secondary-alt bg-secondary hover:bg-secondary/80",ghost:"hover:text-primary-alt hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-sm px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=n.forwardRef((e,t)=>{let{className:a,variant:n,size:i,asChild:c=!1,...d}=e,u=c?s.DX:"button";return(0,r.jsx)(u,{className:(0,l.cn)(o({variant:n,size:i,className:a})),ref:t,...d})});c.displayName="Button"},83457:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});let r={src:"/_next/static/media/crafting_background.158942b1.png",height:136,width:260,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAGFBMVEWampqnp6eioqLKysqLi4uSkpK+vr64uLgHQ3rrAAAAA3RSTlP+/v6VFoksAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJElEQVR4nCXGsQEAMAzCMBNI+P/jDtUkBmRbkIy7+TkBu9MeDwXFAF/HY1pFAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},86373:(e,t,a)=>{a.d(t,{GL:()=>c,ww:()=>o,YE:()=>d,default:()=>u});var r=a(7893),n=a(28081);a(3317);var s=a(76089);a(82637);let i={userRequiresCookieConsent:function(){return!1}};var l=a(27052);let o=(0,n.createContext)(null),c="experience",d="yt_embeds";function u(e){let{children:t}=e,[a,u]=(0,n.useState)(!0),[m,p]=(0,n.useState)(!1),f=(0,l.c)("CookieConsent");function h(){p(s.tj(d,c))}return(0,n.useEffect)(()=>{let e=i.userRequiresCookieConsent();u(e),e&&s.eF({revision:1,guiOptions:{consentModal:{layout:"box inline"}},onFirstConsent:()=>{h()},onChange:()=>{h()},categories:{necessary:{enabled:!0,readOnly:!0},[c]:{services:{[d]:{label:f("sections.experience.services.embeds"),onAccept:()=>p(!0),onReject:()=>p(!1)}}}},language:{default:"en",translations:{en:{consentModal:{title:f("popup.title"),description:f("popup.description"),acceptAllBtn:f("actions.accept_all"),acceptNecessaryBtn:f("actions.reject_all"),showPreferencesBtn:f("popup.show_preferences")},preferencesModal:{title:f("modal.title"),acceptAllBtn:f("actions.accept_all"),acceptNecessaryBtn:f("actions.reject_all"),savePreferencesBtn:f("modal.save"),closeIconLabel:f("modal.close"),sections:[{title:f("sections.summary.title"),description:f("sections.summary.description")},{title:f("sections.necessary.title"),description:f("sections.necessary.description"),linkedCategory:"necessary"},{title:f("sections.experience.title"),description:f("sections.experience.description"),linkedCategory:"experience"},{title:f("sections.more_info.title"),description:f.raw("sections.more_info.description")}]}}}}})},[]),(0,r.jsx)(o.Provider,{value:{enableCookieManagement:a,hasConsentToEmbeddedVideos:m},children:t})}},87257:(e,t,a)=>{a.d(t,{default:()=>l});var r=a(7893),n=a(28081),s=a(28703),i=a(95745);function l(e){let{src:t,alt:a,width:l,height:o,fbWidth:c,fbHeight:d,className:u,title:m,strokeWidth:p=1,fixedSize:f,wrapper:h,fbIcon:x=s.A,fallback:v=(0,r.jsx)(x,{strokeWidth:p,className:(0,i.cn)(u,"text-secondary opacity-20"),width:c||l||32,height:d||o||32}),...b}=e,[g,y]=(0,n.useState)(!1);return(0,r.jsxs)("span",{title:m,style:f?{width:"".concat(l,"px"),height:"".concat(o,"px")}:void 0,...h,className:(0,i.cn)("shrink-0 overflow-hidden",null==h?void 0:h.className),children:[t&&!g&&(0,r.jsx)("img",{src:t,alt:a||"",width:l,height:o,className:u,onError:()=>y(!0),...b}),(!t||g)&&v]})}},92014:(e,t,a)=>{a.d(t,{default:()=>u});var r=a(7893),n=a(22235),s=a(82601),i=a(95745),l=a(28081),o=a(86373),c=a(76089),d=a(27052);function u(e){let{id:t,children:a}=e,u=(0,d.c)("VideoEmbedPlaceholder"),m=(0,l.useContext)(o.ww);if(!m||!m.enableCookieManagement||(null==m?void 0:m.hasConsentToEmbeddedVideos))return a;let p=t&&t.includes("?")?t.split("?")[0]:t,f="https://img.youtube.com/vi/".concat(t,"/maxresdefault.jpg");return(0,r.jsxs)("div",{className:(0,i.cn)("video-embed relative flex rounded-sm border border-tertiary bg-primary-alt text-center"),children:[(0,r.jsx)("img",{src:f,alt:"thumbnail",width:560}),(0,r.jsxs)("div",{className:"absolute-center flex h-full w-full flex-col items-center justify-center gap-5 bg-primary/80",children:[(0,r.jsx)(n.A,{className:"size-12 text-secondary-alt",strokeWidth:1.5}),(0,r.jsx)("div",{className:"text-xl",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{children:u("title")}),(0,r.jsx)("span",{className:"text-sm text-secondary",children:u("description")})]})}),(0,r.jsxs)("div",{className:"mt-2 flex flex-row flex-wrap justify-center gap-3",children:[(0,r.jsx)(s.$,{onClick:()=>void c.gB(o.YE,o.GL),children:u("accept")}),p&&(0,r.jsx)("a",{href:"https://www.youtube.com/watch?v=".concat(p),target:"_blank",rel:"noreferrer",children:(0,r.jsx)(s.$,{variant:"outline",children:u("watch")})})]})]})]})}},95054:(e,t,a)=>{a.d(t,{M$:()=>o,MZ:()=>n,cT:()=>l,gZ:()=>i,sw:()=>s});var r=a(2938);function n(e,t){var a;return null!=(a=l(t.id))?a:null!=t.page_ref?s(t.page_ref,e):null}function s(e,t){let a="slug"in t?t.slug:t.id;return"/".concat(t.locale,"/project/").concat(a,"/").concat(t.version,"/content/").concat(e)}function i(e,t){return"/".concat(e,"/project/").concat(t,"/latest")}function l(e){let t=r.A.parse(e);return(null==t?void 0:t.namespace)===r.o&&e.startsWith(r.o+":")?"https://minecraft.wiki/w/".concat(t.path):null}function o(e,t){return"/".concat(t.locale,"/project/").concat(t.id,"/").concat(t.version,"/docs/").concat(e)}},95745:(e,t,a)=>{a.d(t,{cn:()=>s});var r=a(3135),n=a(96915);function s(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,n.QP)((0,r.$)(t))}},96090:(e,t,a)=>{a.d(t,{default:()=>i});var r=a(7893),n=a(28736);a(28081);var s=a(95745);function i(e){let{className:t,active:a,animate:i=!0}=e;return(0,r.jsx)(n.A,{className:(0,s.cn)(t,"shrink-0 data-[rotate=true]:rotate-180",i&&"transition-transform duration-200"),"data-rotate":a?"true":"false"})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4254],{1528:(e,t,n)=>{n.d(t,{A:()=>r});function r(e){return e}},5416:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(99680).A)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]])},31639:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(41574),l=n(28081),o=n.t(l,2),a=n(67580),i=o["use".trim()],u=n(20369),c=n(9864),s=n(30330),d=n(7893),f=n(7794);function p(e){let{Link:t,config:n,getPathname:o,...p}=function(e,t){var n,o,a;let f={...n=t||{},localePrefix:"object"==typeof(a=n.localePrefix)?a:{mode:a||"always"},localeCookie:!!((o=n.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof o&&o},localeDetection:n.localeDetection??!0,alternateLinks:n.alternateLinks??!0},p=f.pathnames,h=(0,l.forwardRef)(function({href:t,locale:n,...r},l){let o,a;"object"==typeof t?(o=t.pathname,a=t.params):o=t;let s=(0,u._x)(t),h=e(),m=(0,u.yL)(h)?i(h):h,g=s?v({locale:n||m,href:null==p?o:{pathname:o,params:a},forcePrefix:null!=n||void 0}):o;return(0,d.jsx)(c.default,{ref:l,href:"object"==typeof t?{...t,pathname:g}:g,locale:n,localeCookie:f.localeCookie,...r})});function v(e){let t,{forcePrefix:n,href:r,locale:l}=e;return null==p?"object"==typeof r?(t=r.pathname,r.query&&(t+=(0,s.Zn)(r.query))):t=r:t=(0,s.FP)({locale:l,...(0,s.TK)(r),pathnames:f.pathnames}),(0,s.x3)(t,l,f,n)}function m(e){return function(t,...n){return e(v(t),...n)}}return{config:f,Link:h,redirect:m(r.redirect),permanentRedirect:m(r.permanentRedirect),getPathname:v}}(a.Ym,e);return{...p,Link:t,usePathname:function(){let e=function(e){let t=(0,r.usePathname)(),n=(0,a.Ym)();return(0,l.useMemo)(()=>{if(!t)return t;let r=t,l=(0,u.XP)(n,e.localePrefix);if((0,u.wO)(l,t))r=(0,u.MY)(t,l);else if("never"!==e.localePrefix.mode&&e.localePrefix.prefixes){let e=(0,u.bL)(n);(0,u.wO)(e,t)&&(r=(0,u.MY)(t,e))}return r},[e.localePrefix,n,t])}(n),t=(0,a.Ym)();return(0,l.useMemo)(()=>e&&n.pathnames?(0,s.aM)(t,e,n.pathnames):e,[t,e])},useRouter:function(){let e=(0,r.useRouter)(),t=(0,a.Ym)(),i=(0,r.usePathname)();return(0,l.useMemo)(()=>{function r(e){return function(r,l){let{locale:a,...u}=l||{},c=[o({href:r,locale:a||t,forcePrefix:null!=a||void 0})];Object.keys(u).length>0&&c.push(u),(0,f.A)(n.localeCookie,i,t,a),e(...c)}}return{...e,push:r(e.push),replace:r(e.replace),prefetch:r(e.prefetch)}},[t,i,e])},getPathname:o}}},39591:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(99680).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},61660:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(99680).A)("book-marked",[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]])},97461:(e,t,n)=>{n.d(t,{UC:()=>Q,YJ:()=>ef,In:()=>z,q7:()=>eg,VF:()=>ey,p4:()=>ew,JU:()=>ep,ZL:()=>Z,bL:()=>U,wn:()=>ek,PP:()=>eb,wv:()=>ej,l9:()=>W,WT:()=>q,LM:()=>ec});var r=n(28081),l=n(63220);function o(e,[t,n]){return Math.min(n,Math.max(t,e))}(0,Object.defineProperty)(o,"name",{value:"clamp",configurable:!0});var a=n(51016),i=n(93992),u=n(46988),c=n(25020),s=n(42019),d=n(5721),f=n(89087),p=n(39734),h=n(68285),v=n(14182),m=n(15673),g=n(17312),x=n(21851),w=n(85126),y=n(66325),S=n(45415),b=n(58307);function C(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(0,Object.defineProperty)(C,"name",{value:"usePrevious",configurable:!0});var k=n(9389),P=n(69536),j=n(79923),T=n(7893),R=Object.defineProperty,I=(e,t)=>R(e,"name",{value:t,configurable:!0}),M=[" ","Enter","ArrowUp","ArrowDown"],E=[" ","Enter"],L="Select",[D,A,K]=(0,i.N)(L),[H,B]=(0,c.A)(L,[K,v.Bk]),_=(0,v.Bk)(),[N,O]=H(L),[V,F]=H(L);function G(e){let{__scopeSelect:t,children:n,open:l,defaultOpen:o,onOpenChange:a,value:i,defaultValue:u,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:m,required:g,form:x,internal_do_not_use_render:w}=e,y=_(t),[b,C]=r.useState(null),[k,P]=r.useState(null),[j,R]=r.useState(!1),M=(0,s.jH)(d),[E,A]=(0,S.i)({prop:l,defaultProp:null!=o&&o,onChange:a,caller:L}),[K,H]=(0,S.i)({prop:i,defaultProp:u,onChange:c,caller:L}),B=r.useRef(null),O=r.useRef(K);r.useEffect(()=>{let e=x?null==b?void 0:b.ownerDocument.getElementById(x):null==b?void 0:b.form;if(e instanceof HTMLFormElement){let t=I(()=>H(O.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[x,b,H]);let F=!b||!!x||!!b.closest("form"),[G,U]=r.useState(new Set),W=(0,h.B)(),q=Array.from(G).map(e=>e.props.value).join(";"),z=r.useCallback(e=>{U(t=>new Set(t).add(e))},[]),Y=r.useCallback(e=>{U(t=>{let n=new Set(t);return n.delete(e),n})},[]),X={required:g,trigger:b,onTriggerChange:C,valueNode:k,onValueNodeChange:P,valueNodeHasChildren:j,onValueNodeHasChildrenChange:R,contentId:W,value:K,onValueChange:H,open:E,onOpenChange:A,dir:M,triggerPointerDownPosRef:B,disabled:m,name:f,autoComplete:p,form:x,nativeOptions:G,nativeSelectKey:q,isFormControl:F};return(0,T.jsx)(v.bL,{...y,children:(0,T.jsx)(N,{scope:t,...X,children:(0,T.jsx)(D.Provider,{scope:t,children:(0,T.jsx)(V,{scope:t,onNativeOptionAdd:z,onNativeOptionRemove:Y,children:eR(w)?w(X):n})})})})}I(G,"SelectProvider");var U=I(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,T.jsx)(G,{__scopeSelect:t,...r,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,T.jsxs)(T.Fragment,{children:[n,r?(0,T.jsx)(eT,{__scopeSelect:t}):null]})}})},"Select"),W=r.forwardRef(I(function(e,t){let{__scopeSelect:n,disabled:l=!1,...o}=e,i=_(n),c=O("SelectTrigger",n),s=c.disabled||l,d=(0,u.s)(t,c.onTriggerChange),f=A(n),p=r.useRef("touch"),[h,m,g]=eM(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===c.value),r=eE(t,e,n);void 0!==r&&c.onValueChange(r.value)}),w=I(e=>{s||(c.onOpenChange(!0),g()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},"handleOpen");return(0,T.jsx)(v.Mz,{asChild:!0,...i,children:(0,T.jsx)(x.sG.button,{type:"button",role:"combobox","aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":eI(c.value)?"":void 0,...o,ref:d,onClick:(0,a.mK)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&w(e)}),onPointerDown:(0,a.mK)(o.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(w(e),e.preventDefault())}),onKeyDown:(0,a.mK)(o.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&M.includes(e.key)&&(w(),e.preventDefault())})})})},"SelectTrigger")),q=r.forwardRef(I(function(e,t){let{__scopeSelect:n,className:l,style:o,children:a,placeholder:i="",...c}=e,s=O("SelectValue",n),{onValueNodeHasChildrenChange:d}=s,f=void 0!==a,p=(0,u.s)(t,s.onValueNodeChange);(0,b.N)(()=>{d(f)},[d,f]);let h=eI(s.value);return(0,T.jsx)(x.sG.span,{...c,asChild:!h&&c.asChild,ref:p,style:{pointerEvents:"none"},children:(0,T.jsx)(r.Fragment,{children:h?i:a},h?"placeholder":"value")})},"SelectValue")),z=r.forwardRef(I(function(e,t){let{__scopeSelect:n,children:r,...l}=e;return(0,T.jsx)(x.sG.span,{"aria-hidden":!0,...l,ref:t,children:r||"▼"})},"SelectIcon")),[Y,X]=H("SelectPortal",{forceMount:void 0}),Z=I(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,T.jsx)(Y,{scope:e.__scopeSelect,forceMount:n,children:(0,T.jsx)(m.Z,{asChild:!0,...r})})},"SelectPortal"),J="SelectContent",Q=r.forwardRef(I(function(e,t){let n=X(J,e.__scopeSelect),{forceMount:l=n.forceMount,...o}=e,a=O(J,e.__scopeSelect),[i,u]=r.useState();return(0,b.N)(()=>{u(new DocumentFragment)},[]),(0,T.jsx)(g.C,{present:l||a.open,children:e=>{let{present:n}=e;return n?(0,T.jsx)(er,{...o,ref:t}):(0,T.jsx)($,{...o,fragment:i})}})},"SelectContent")),$=r.forwardRef(I(function(e,t){let{__scopeSelect:n,children:r,fragment:o}=e;return o?l.createPortal((0,T.jsx)(ee,{scope:n,children:(0,T.jsx)(D.Slot,{scope:n,children:(0,T.jsx)("div",{ref:t,children:r})})}),o):null},"SelectContentFragment")),[ee,et]=H(J),en=(0,w.TL)("SelectContent.RemoveScroll"),er=r.forwardRef(I(function(e,t){let{__scopeSelect:n}=e,{position:l="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:c,side:s,sideOffset:h,align:v,alignOffset:m,arrowPadding:g,collisionBoundary:x,collisionPadding:w,sticky:y,hideWhenDetached:S,avoidCollisions:b,...C}=e,k=O(J,n),[R,M]=r.useState(null),[E,L]=r.useState(null),D=(0,u.s)(t,M),[K,H]=r.useState(null),[B,_]=r.useState(null),N=A(n),[V,F]=r.useState(!1),G=r.useRef(!1);r.useEffect(()=>{if(R)return(0,P.Eq)(R)},[R]),(0,f.Oh)();let U=r.useCallback(e=>{let[t,...n]=N().map(e=>e.ref.current),[r]=n.slice(-1),l=document.activeElement;for(let n of e)if(n===l||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&E&&(E.scrollTop=0),n===r&&E&&(E.scrollTop=E.scrollHeight),null==n||n.focus(),document.activeElement!==l))return},[N,E]),W=r.useCallback(()=>U([K,R]),[U,K,R]);r.useEffect(()=>{V&&W()},[V,W]);let{onOpenChange:q,triggerPointerDownPosRef:z}=k;r.useEffect(()=>{if(R){let e={x:0,y:0},t=I(t=>{var n,r,l,o;e={x:Math.abs(Math.round(t.pageX)-(null!=(l=null==(n=z.current)?void 0:n.x)?l:0)),y:Math.abs(Math.round(t.pageY)-(null!=(o=null==(r=z.current)?void 0:r.y)?o:0))}},"handlePointerMove"),n=I(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(R)||q(!1),document.removeEventListener("pointermove",t),z.current=null},"handlePointerUp");return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[R,q,z]),r.useEffect(()=>{let e=I(()=>q(!1),"close");return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[q]);let[Y,X]=eM(e=>{let t=N().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=eE(t,e,n);r&&setTimeout(()=>{var e;return null==(e=r.ref.current)?void 0:e.focus()})}),Z=r.useCallback((e,t,n)=>{let r=!G.current&&!n;(void 0!==k.value&&k.value===t||r)&&(H(e),r&&(G.current=!0))},[k.value]),Q=r.useCallback(()=>null==R?void 0:R.focus(),[R]),$=r.useCallback((e,t,n)=>{let r=!G.current&&!n;(void 0!==k.value&&k.value===t||r)&&_(e)},[k.value]),et="popper"===l?eo:el;return(0,T.jsx)(ee,{scope:n,content:R,viewport:E,onViewportChange:L,itemRefCallback:Z,selectedItem:K,onItemLeave:Q,itemTextRefCallback:$,focusSelectedItem:W,selectedItemText:B,position:l,isPositioned:V,searchRef:Y,children:(0,T.jsx)(j.A,{as:en,allowPinchZoom:!0,children:(0,T.jsx)(p.n,{asChild:!0,trapped:k.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.mK)(o,e=>{var t;null==(t=k.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,T.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:(0,T.jsx)(et,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:e=>e.preventDefault(),...C,...et===eo?{side:s,sideOffset:h,align:v,alignOffset:m,arrowPadding:g,collisionBoundary:x,collisionPadding:w,sticky:y,hideWhenDetached:S,avoidCollisions:b}:{},onPlaced:()=>F(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:(0,a.mK)(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||X(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=N().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>U(t)),e.preventDefault()}})})})})})})},"SelectContentImpl")),el=r.forwardRef(I(function(e,t){let{__scopeSelect:n,onPlaced:l,...a}=e,i=O(J,n),c=et(J,n),[s,d]=r.useState(null),[f,p]=r.useState(null),h=(0,u.s)(t,p),v=A(n),m=r.useRef(!1),g=r.useRef(!0),{viewport:w,selectedItem:y,selectedItemText:S,focusSelectedItem:C}=c,k=r.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&f&&w&&y&&S){let e=i.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),r=S.getBoundingClientRect();if("rtl"!==i.dir){let l=r.left-t.left,a=n.left-l,i=e.left-a,u=e.width+i,c=Math.max(u,t.width),d=o(a,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=u+"px",s.style.left=d+"px"}else{let l=t.right-r.right,a=window.innerWidth-n.right-l,i=window.innerWidth-e.right-a,u=e.width+i,c=Math.max(u,t.width),d=o(a,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=u+"px",s.style.right=d+"px"}let a=v(),u=window.innerHeight-20,c=w.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),x=p+h+c+parseInt(d.paddingBottom,10)+g,b=Math.min(5*y.offsetHeight,x),C=window.getComputedStyle(w),k=parseInt(C.paddingTop,10),P=parseInt(C.paddingBottom,10),j=e.top+e.height/2-10,T=y.offsetHeight/2,R=p+h+(y.offsetTop+T);if(R<=j){let e=a.length>0&&y===a[a.length-1].ref.current;s.style.bottom="0px";let t=Math.max(u-j,T+(e?P:0)+(f.clientHeight-w.offsetTop-w.offsetHeight)+g);s.style.height=R+t+"px"}else{let e=a.length>0&&y===a[0].ref.current;s.style.top="0px";let t=Math.max(j,p+w.offsetTop+(e?k:0)+T);s.style.height=t+(x-R)+"px",w.scrollTop=R-j+w.offsetTop}s.style.margin="".concat(10,"px 0"),s.style.minHeight=b+"px",s.style.maxHeight=u+"px",null==l||l(),requestAnimationFrame(()=>m.current=!0)}},[v,i.trigger,i.valueNode,s,f,w,y,S,i.dir,l]);(0,b.N)(()=>k(),[k]);let[P,j]=r.useState();(0,b.N)(()=>{f&&j(window.getComputedStyle(f).zIndex)},[f]);let R=r.useCallback(e=>{e&&!0===g.current&&(k(),null==C||C(),g.current=!1)},[k,C]);return(0,T.jsx)(ea,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:R,children:(0,T.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:(0,T.jsx)(x.sG.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})},"SelectItemAlignedPosition")),eo=r.forwardRef(I(function(e,t){let{__scopeSelect:n,align:r="start",collisionPadding:l=10,...o}=e,a=_(n);return(0,T.jsx)(v.UC,{...a,...o,ref:t,align:r,collisionPadding:l,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[ea,ei]=H(J,{}),eu="SelectViewport",ec=r.forwardRef(I(function(e,t){let{__scopeSelect:n,nonce:l,...o}=e,i=et(eu,n),c=ei(eu,n),s=(0,u.s)(t,i.onViewportChange),d=r.useRef(0);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),(0,T.jsx)(D.Slot,{scope:n,children:(0,T.jsx)(x.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,a.mK)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if((null==r?void 0:r.current)&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,l=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(l<r){let o=l+e,a=Math.min(r,o),i=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=i>0?i:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})},"SelectViewport")),[es,ed]=H("SelectGroup"),ef=r.forwardRef(I(function(e,t){let{__scopeSelect:n,...r}=e,l=(0,h.B)();return(0,T.jsx)(es,{scope:n,id:l,children:(0,T.jsx)(x.sG.div,{role:"group","aria-labelledby":l,...r,ref:t})})},"SelectGroup")),ep=r.forwardRef(I(function(e,t){let{__scopeSelect:n,...r}=e,l=ed("SelectLabel",n);return(0,T.jsx)(x.sG.div,{id:l.id,...r,ref:t})},"SelectLabel")),eh="SelectItem",[ev,em]=H(eh),eg=r.forwardRef(I(function(e,t){let{__scopeSelect:n,value:l,disabled:o=!1,textValue:i,...c}=e,s=O(eh,n),d=et(eh,n),f=s.value===l,[p,v]=r.useState(null!=i?i:""),[m,g]=r.useState(!1),w=(0,y.c)(e=>{var t;return null==(t=d.itemRefCallback)?void 0:t.call(d,e,l,o)}),S=(0,u.s)(t,w),b=(0,h.B)(),C=r.useRef("touch"),k=I(()=>{o||(s.onValueChange(l),s.onOpenChange(!1))},"handleSelect");return(0,T.jsx)(ev,{scope:n,value:l,disabled:o,textId:b,isSelected:f,onItemTextChange:r.useCallback(e=>{v(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,T.jsx)(D.ItemSlot,{scope:n,value:l,disabled:o,textValue:p,children:(0,T.jsx)(x.sG.div,{role:"option","aria-labelledby":b,"data-highlighted":m?"":void 0,"aria-selected":f&&m,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:S,onFocus:(0,a.mK)(c.onFocus,()=>g(!0)),onBlur:(0,a.mK)(c.onBlur,()=>g(!1)),onClick:(0,a.mK)(c.onClick,()=>{"mouse"!==C.current&&k()}),onPointerUp:(0,a.mK)(c.onPointerUp,()=>{"mouse"===C.current&&k()}),onPointerDown:(0,a.mK)(c.onPointerDown,e=>{C.current=e.pointerType}),onPointerMove:(0,a.mK)(c.onPointerMove,e=>{if(C.current=e.pointerType,o){var t;null==(t=d.onItemLeave)||t.call(d)}else"mouse"===C.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.mK)(c.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=d.onItemLeave)||t.call(d)}}),onKeyDown:(0,a.mK)(c.onKeyDown,e=>{var t;o||e.target!==e.currentTarget||((null==(t=d.searchRef)?void 0:t.current)===""||" "!==e.key)&&(E.includes(e.key)&&k()," "===e.key&&e.preventDefault())})})})})},"SelectItem")),ex="SelectItemText",ew=r.forwardRef(I(function(e,t){let{__scopeSelect:n,className:o,style:a,...i}=e,c=O(ex,n),s=et(ex,n),d=em(ex,n),f=F(ex,n),[p,h]=r.useState(null),v=(0,y.c)(e=>{var t;return null==(t=s.itemTextRefCallback)?void 0:t.call(s,e,d.value,d.disabled)}),m=(0,u.s)(t,h,d.onItemTextChange,v),g=null==p?void 0:p.textContent,w=r.useMemo(()=>(0,T.jsx)("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=f;return(0,b.N)(()=>(S(w),()=>C(w)),[S,C,w]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(x.sG.span,{id:d.textId,...i,ref:m}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren&&!eI(c.value)?l.createPortal(i.children,c.valueNode):null]})},"SelectItemText")),ey=r.forwardRef(I(function(e,t){let{__scopeSelect:n,...r}=e;return em("SelectItemIndicator",n).isSelected?(0,T.jsx)(x.sG.span,{"aria-hidden":!0,...r,ref:t}):null},"SelectItemIndicator")),eS="SelectScrollUpButton",eb=r.forwardRef(I(function(e,t){let n=et(eS,e.__scopeSelect),l=ei(eS,e.__scopeSelect),[o,a]=r.useState(!1),i=(0,u.s)(t,l.onScrollButtonChange);return(0,b.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)};I(e,"handleScroll");let t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,T.jsx)(eP,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null},"SelectScrollUpButton")),eC="SelectScrollDownButton",ek=r.forwardRef(I(function(e,t){let n=et(eC,e.__scopeSelect),l=ei(eC,e.__scopeSelect),[o,a]=r.useState(!1),i=(0,u.s)(t,l.onScrollButtonChange);return(0,b.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)};I(e,"handleScroll");let t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,T.jsx)(eP,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null},"SelectScrollDownButton")),eP=r.forwardRef(I(function(e,t){let{__scopeSelect:n,onAutoScroll:l,...o}=e,i=et("SelectScrollButton",n),u=r.useRef(null),c=A(n),s=r.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return r.useEffect(()=>()=>s(),[s]),(0,b.N)(()=>{var e;let t=c().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[c]),(0,T.jsx)(x.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.mK)(o.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(l,50))}),onPointerMove:(0,a.mK)(o.onPointerMove,()=>{var e;null==(e=i.onItemLeave)||e.call(i),null===u.current&&(u.current=window.setInterval(l,50))}),onPointerLeave:(0,a.mK)(o.onPointerLeave,()=>{s()})})},"SelectScrollButtonImpl")),ej=r.forwardRef(I(function(e,t){let{__scopeSelect:n,...r}=e;return(0,T.jsx)(x.sG.div,{"aria-hidden":!0,...r,ref:t})},"SelectSeparator")),eT=r.forwardRef(I(function(e,t){let{__scopeSelect:n,...l}=e,o=O("SelectBubbleInput",n),{value:a,onValueChange:i,required:c,disabled:s,name:d,autoComplete:f,form:p}=o,{nativeOptions:h,nativeSelectKey:v}=o,m=r.useRef(null),g=(0,u.s)(t,m),w=null!=a?a:"",y=C(w),S=Array.from(h).some(e=>{var t;return(null!=(t=e.props.value)?t:"")===""});return r.useEffect(()=>{let e=m.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(y!==w&&t){let n=new Event("change",{bubbles:!0});t.call(e,w),e.dispatchEvent(n)}},[y,w]),(0,T.jsxs)(x.sG.select,{"aria-hidden":!0,required:c,tabIndex:-1,name:d,autoComplete:f,disabled:s,form:p,onChange:e=>i(e.target.value),...l,style:{...k.Qg,...l.style},ref:g,defaultValue:w,children:[eI(a)&&!S?(0,T.jsx)("option",{value:""}):null,Array.from(h)]},v)},"SelectBubbleInput"));function eR(e){return"function"==typeof e}function eI(e){return""===e||void 0===e}function eM(e){let t=(0,y.c)(e),n=r.useRef(""),l=r.useRef(0),o=r.useCallback(e=>{t(n.current+e)},[t]),a=r.useCallback(()=>{n.current="",window.clearTimeout(l.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(l.current),[]),[n,o,a]}function eE(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=n?e.indexOf(n):-1,o=eL(e,Math.max(l,0));1===r.length&&(o=o.filter(e=>e!==n));let a=o.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return a!==n?a:void 0}function eL(e,t){return e.map((n,r)=>e[(t+r)%e.length])}I(eR,"isFunction"),I(eI,"shouldShowPlaceholder"),I(eM,"useTypeaheadSearch"),I(eE,"findNextItem"),I(eL,"wrapArray")}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4283],{1536:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(t.RESOURCEPATH)]})})},t.RESOURCEPATH="/synonym_sets",t}()},2504:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(94066));e.default=function(){function t(t,e){this.name=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},t}()},3740:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.create=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.post(this.endpointPath(),t)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(){return t.RESOURCEPATH},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/nl_search_models"},enumerable:!1,configurable:!0}),t}()},4358:(t,e,r)=>{"use strict";var n=r(16298);Object.defineProperty(e,"__esModule",{value:!0});var i=r(13083),o=r(52800),a=r(12072),s=void 0!==n&&null!=n.versions&&null!=n.versions.node;e.default=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return i.__extends(e,t),e.prototype.create=function(t){return i.__awaiter(this,arguments,void 0,function(t,e){return void 0===e&&(e={}),i.__generator(this,function(r){if(!t)throw Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),t,e)]})})},e.prototype.upsert=function(t){return i.__awaiter(this,arguments,void 0,function(t,e){return void 0===e&&(e={}),i.__generator(this,function(r){if(!t)throw Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),t,Object.assign({},e,{action:"upsert"}))]})})},e.prototype.update=function(t){return i.__awaiter(this,arguments,void 0,function(t,e){return void 0===e&&(e={}),i.__generator(this,function(r){if(!t)throw Error("No document provided");return null!=e.filter_by?[2,this.apiCall.patch(this.endpointPath(),t,Object.assign({},e))]:[2,this.apiCall.post(this.endpointPath(),t,Object.assign({},e,{action:"update"}))]})})},e.prototype.delete=function(){return i.__awaiter(this,arguments,void 0,function(t){return void 0===t&&(t={}),i.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath(),t)]})})},e.prototype.createMany=function(t){return i.__awaiter(this,arguments,void 0,function(t,e){return void 0===e&&(e={}),i.__generator(this,function(r){return this.configuration.logger.warn("createMany is deprecated and will be removed in a future version. Use import instead, which now takes both an array of documents or a JSONL string of documents"),[2,this.import(t,e)]})})},e.prototype.import=function(t){return i.__awaiter(this,arguments,void 0,function(t,e){var r,n,a,u,c;return void 0===e&&(e={}),i.__generator(this,function(l){switch(l.label){case 0:if(r=i.__assign({throwOnFail:!0},e),Array.isArray(t)){if(0===t.length)throw new o.RequestMalformed("No documents provided");try{n=t.map(function(t){return JSON.stringify(t)}).join("\n")}catch(t){if(t instanceof RangeError&&t.message.includes("Too many properties to enumerate"))throw Error("".concat(t,"\n It looks like you have reached a Node.js limit that restricts the number of keys in an Object: https://stackoverflow.com/questions/9282869/are-there-limits-to-the-number-of-properties-in-a-javascript-object\n\n Please try reducing the number of keys in your document, or using CURL to import your data.\n "));throw Error(t)}}else{var h;if(null==(h=n=t)||""===h||0===h.length)throw new o.RequestMalformed("No documents provided")}return[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:r,bodyParameters:n,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0,enableKeepAlive:!!s})];case 1:if(a=l.sent(),!Array.isArray(t))return[2,a];if(!((c=(u=a.split("\n").map(function(t){return JSON.parse(t)})).filter(function(t){return!1===t.success})).length>0)||!r.throwOnFail)return[2,u];throw new o.ImportError("".concat(u.length-c.length," documents imported successfully, ").concat(c.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),u,{documentsInJSONLFormat:n,options:r,failedItems:c,successCount:u.length-c.length})}})})},e.prototype.importStream=function(t){return i.__awaiter(this,arguments,void 0,function(t,e){var r,n,a;return void 0===e&&(e={}),i.__generator(this,function(u){switch(u.label){case 0:return r=i.__assign({throwOnFail:!0},e),[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:r,bodyParameters:t,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0,enableKeepAlive:!!s})];case 1:if(!((a=(n=u.sent().split("\n").map(function(t){return JSON.parse(t)})).filter(function(t){return!1===t.success})).length>0)||!r.throwOnFail)return[2,n];throw new o.ImportError("".concat(n.length-a.length," documents imported successfully, ").concat(a.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),n,{documentsInJSONLFormat:t,options:r,failedItems:a,successCount:n.length-a.length})}})})},e.prototype.export=function(){return i.__awaiter(this,arguments,void 0,function(t){return void 0===t&&(t={}),i.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath("export"),t)]})})},e.prototype.exportStream=function(){return i.__awaiter(this,arguments,void 0,function(t){return void 0===t&&(t={}),i.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath("export"),t,{responseType:"stream"})]})})},e}(a.SearchOnlyDocuments)},5523:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57474));e.default=function(){function t(t,e){this.name=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(t){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name),"/items").concat(void 0===t?"":"/"+encodeURIComponent(t))},t}()},9855:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(36524));e.default=function(){function t(t,e){this.id=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},t}()},10058:t=>{!function(){var e={675:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=u(t),a=o[0],s=o[1],c=new i((a+s)*3/4-s),l=0,h=s>0?a-4:a;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[l++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(t,e,n){for(var i,o=[],a=e;a<n;a+=3)i=(t[a]<<16&0xff0000)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(t,e,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),u=a(o),c=u.write(n,i);return c!==o&&(u=u.slice(0,c)),u}if(ArrayBuffer.isView(t))return h(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(T(t,ArrayBuffer)||t&&T(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(t,SharedArrayBuffer)||t&&T(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),s.prototype),n}(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var l=t.valueOf&&t.valueOf();if(null!=l&&l!==t)return s.from(l,e,r);var d=function(t){if(s.isBuffer(t)){var e=0|f(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?a(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(d)return d;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return c(t),a(t<0?0:0|f(t))}function h(t){for(var e=t.length<0?0:0|f(t.length),r=a(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}e.Buffer=s,e.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return(c(t),t<=0)?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)},s.allocUnsafe=function(t){return l(t)},s.allocUnsafeSlow=function(t){return l(t)};function f(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||T(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return S(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(t).length;default:if(i)return n?-1:S(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,r){var i,o,a,s=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=U[t[o]];return i}(this,e,r);case"utf8":case"utf-8":return _(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=this,o=e,a=r,0===o&&a===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,e,r);default:if(s)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return g(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function g(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=r;o<s;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else -1!==l&&(o-=o-l),l=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(c(t,o+f)!==c(e,f)){h=!1;break}if(h)return o}return -1}s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:+(n<r)},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=s.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(T(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?_(this,0,t):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,i){if(T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,a=r-e,u=Math.min(o,a),c=this.slice(n,i),l=t.slice(e,r),h=0;h<u;++h)if(c[h]!==l[h]){o=c[h],a=l[h];break}return o<a?-1:+(a<o)},s.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)};function _(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,c=t[i],l=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(l=c);break;case 2:(192&(o=t[i+1]))==128&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],(192&o)==128&&(192&a)==128&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}var f=n,p=f.length;if(p<=4096)return String.fromCharCode.apply(String,f);for(var d="",v=0;v<p;)d+=String.fromCharCode.apply(String,f.slice(v,v+=4096));return d}function m(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function C(t,e,r,n,i,o){if(!s.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function w(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function b(t,e,r,n,o){return e*=1,r>>>=0,o||w(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function P(t,e,r,n,o){return e*=1,r>>>=0,o||w(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,u,c,l,h,f=this.length-e;if((void 0===r||r>f)&&(r=f),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s,u=parseInt(e.substr(2*a,2),16);if((s=u)!=s)break;t[r+a]=u}return a}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,O(S(t,this.length-i),this,i,o);case"ascii":return a=e,s=r,O(E(t),this,a,s);case"latin1":case"binary":return function(t,e,r,n){return O(E(e),t,r,n)}(this,t,e,r);case"base64":return u=e,c=r,O(A(t),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,h=r,O(function(t,e){for(var r,n,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-l),this,l,h);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||m(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||m(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUInt8=function(t,e){return t>>>=0,e||m(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||m(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||m(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||m(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||m(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||m(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||m(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return(t>>>=0,e||m(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||m(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||m(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||m(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||m(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||m(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||m(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||m(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||m(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;C(this,t,e,r,i,0)}var o=1,a=0;for(this[e]=255&t;++a<r&&(o*=256);)this[e+a]=t/o&255;return e+r},s.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;C(this,t,e,r,i,0)}var o=r-1,a=1;for(this[e+o]=255&t;--o>=0&&(a*=256);)this[e+o]=t/a&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return b(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return b(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var o=i-1;o>=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},s.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=s.isBuffer(t)?t:s.from(t,n),u=a.length;if(0===u)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=a[i%u]}return this};var R=/[^+/0-9A-Za-z-_]/g;function S(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function E(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function A(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function O(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function T(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var U=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},783:function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,h=r?i-1:0,f=r?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+t[e+h],h+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,h=l>>1,f=5960464477539062e-23*(23===i),p=n?0:o-1,d=n?1:-1,v=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(s=+!!isNaN(e),a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+h>=1?e+=f/u:e+=f*Math.pow(2,1-h),e*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[r+p]=255&a,p+=d,a/=256,c-=8);t[r+p-d]|=128*v}}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}},a=!0;try{e[t](o,o.exports,n),a=!1}finally{a&&delete r[t]}return o.exports}n.ab="//",t.exports=n(72)}()},12072:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SearchOnlyDocuments=void 0;var n=r(13083),i=n.__importDefault(r(56869)),o=n.__importDefault(r(64661)),a=r(80521),s="/documents";e.SearchOnlyDocuments=function(){function t(t,e,r){this.collectionName=t,this.apiCall=e,this.configuration=r,this.requestWithCache=new i.default}return t.prototype.clearCache=function(){this.requestWithCache.clearCache()},t.prototype.search=function(t){return n.__awaiter(this,arguments,void 0,function(t,e){var r,i,o,s,u,c,l=void 0===e?{}:e,h=l.cacheSearchResultsForSeconds,f=void 0===h?this.configuration.cacheSearchResultsForSeconds:h,p=l.abortSignal,d=void 0===p?null:p;return n.__generator(this,function(e){return r={},!0===this.configuration.useServerSideSearchCache&&(r.use_cache=!0),o=(i=(0,a.normalizeArrayableParams)(t)).streamConfig,s=n.__rest(i,["streamConfig"]),c=!0===(u=n.__assign(n.__assign({},r),s)).conversation_stream,[2,this.requestWithCache.perform(this.apiCall,"get",{path:this.endpointPath("search"),queryParams:u,streamConfig:o,abortSignal:d,isStreamingRequest:c},{cacheResponseForSeconds:f})]})})},t.prototype.endpointPath=function(t){return"".concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(s).concat(void 0===t?"":"/"+t)},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return s},enumerable:!1,configurable:!0}),t}()},12661:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57474)),o=n.__importDefault(r(5523)),a=n.__importDefault(r(93118));e.default=function(){function t(t,e){this.name=t,this.apiCall=e,this.individualItems={},this._items=new o.default(this.name,e)}return t.prototype.upsert=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.put(this.endpointPath(),t)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.items=function(t){return void 0===t?this._items:(void 0===this.individualItems[t]&&(this.individualItems[t]=new a.default(this.name,t,this.apiCall)),this.individualItems[t])},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},t}()},15746:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SearchOnlyCollection=void 0;var n=r(12072);e.SearchOnlyCollection=function(){function t(t,e,r){this.name=t,this.apiCall=e,this.configuration=r,this._documents=new n.SearchOnlyDocuments(this.name,this.apiCall,this.configuration)}return t.prototype.documents=function(){return this._documents},t}()},15887:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(3740));e.default=function(){function t(t,e){this.id=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.update=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.put(this.endpointPath(),t)]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},t}()},16940:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(65308));e.default=function(){function t(t,e){this.id=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},t}()},18587:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get("/debug")]})})},t}()},19505:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(t),e)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(e){return"".concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/stopwords"},enumerable:!1,configurable:!0}),t}()},19643:function(t,e,r){var n,i;!function(o,a){"use strict";void 0===(i="function"==typeof(n=a)?n.call(e,r,e,t):n)||(t.exports=i)}(0,function(){"use strict";var t=function(){},e="undefined",r=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],i={},o=null;function a(t,e){var r=t[e];if("function"==typeof r.bind)return r.bind(t);try{return Function.prototype.bind.call(r,t)}catch(e){return function(){return Function.prototype.apply.apply(r,[t,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),i=0;i<n.length;i++){var o=n[i];this[o]=i<r?t:this.methodFactory(o,r,this.name)}if(this.log=this.debug,typeof console===e&&r<this.levels.SILENT)return"No console available for logging"}function c(t){return function(){typeof console!==e&&(u.call(this),this[t].apply(this,arguments))}}function l(n,i,o){var u;return"debug"===(u=n)&&(u="log"),typeof console!==e&&("trace"===u&&r?s:void 0!==console[u]?a(console,u):void 0!==console.log?a(console,"log"):t)||c.apply(this,arguments)}function h(t,r){var a,s,c,h=this,f="loglevel";function p(){var t;if(typeof window!==e&&f){try{t=window.localStorage[f]}catch(t){}if(typeof t===e)try{var r=window.document.cookie,n=encodeURIComponent(f),i=r.indexOf(n+"=");-1!==i&&(t=/^([^;]+)/.exec(r.slice(i+n.length+1))[1])}catch(t){}return void 0===h.levels[t]&&(t=void 0),t}}function d(t){var e=t;if("string"==typeof e&&void 0!==h.levels[e.toUpperCase()]&&(e=h.levels[e.toUpperCase()]),"number"==typeof e&&e>=0&&e<=h.levels.SILENT)return e;throw TypeError("log.setLevel() called with invalid level: "+t)}"string"==typeof t?f+=":"+t:"symbol"==typeof t&&(f=void 0),h.name=t,h.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},h.methodFactory=r||l,h.getLevel=function(){return null!=c?c:null!=s?s:a},h.setLevel=function(t,r){return c=d(t),!1!==r&&function(t){var r=(n[t]||"silent").toUpperCase();if(typeof window!==e&&f){try{window.localStorage[f]=r;return}catch(t){}try{window.document.cookie=encodeURIComponent(f)+"="+r+";"}catch(t){}}}(c),u.call(h)},h.setDefaultLevel=function(t){s=d(t),p()||h.setLevel(t,!1)},h.resetLevel=function(){if(c=null,typeof window!==e&&f){try{window.localStorage.removeItem(f)}catch(t){}try{window.document.cookie=encodeURIComponent(f)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(t){}}u.call(h)},h.enableAll=function(t){h.setLevel(h.levels.TRACE,t)},h.disableAll=function(t){h.setLevel(h.levels.SILENT,t)},h.rebuild=function(){if(o!==h&&(a=d(o.getLevel())),u.call(h),o===h)for(var t in i)i[t].rebuild()},a=d(o?o.getLevel():"WARN");var v=p();null!=v&&(c=d(v)),u.call(h)}(o=new h).getLogger=function(t){if("symbol"!=typeof t&&"string"!=typeof t||""===t)throw TypeError("You must supply a name when creating a logger.");var e=i[t];return e||(e=i[t]=new h(t,o.methodFactory)),e};var f=typeof window!==e?window.log:void 0;return o.noConflict=function(){return typeof window!==e&&window.log===o&&(window.log=f),o},o.getLoggers=function(){return i},o.default=o,o})},24892:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(1536));e.default=function(){function t(t,e,r){this.synonymSetName=t,this.itemId=e,this.apiCall=r}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.synonymSetName),"/items/").concat(encodeURIComponent(this.itemId))},t}()},26528:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(e,r,n){var i=this.constructor,o=t.call(this,e)||this;return o.name=i.name,o.httpBody=r,o.httpStatus=n,Object.setPrototypeOf(o,i.prototype),o}return n.__extends(e,t),e}(Error)},27385:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t,this.apiCall=t}return t.prototype.create=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.post(this.endpointPath(),t)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(e){return"".concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/conversations/models"},enumerable:!1,configurable:!0}),t}()},27476:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(99680).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},31065:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get("/metrics.json")]})})},t}()},33901:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},36524:(t,e,r)=>{"use strict";var n=r(10058).Buffer;Object.defineProperty(e,"__esModule",{value:!0});var i=r(13083),o=r(88523),a=r(80521),s="/keys";e.default=function(){function t(t){this.apiCall=t,this.apiCall=t}return t.prototype.create=function(e){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(r){return[2,this.apiCall.post(t.RESOURCEPATH,e)]})})},t.prototype.retrieve=function(){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(t){return[2,this.apiCall.get(s)]})})},t.prototype.generateScopedSearchKey=function(t,e){var r=JSON.stringify((0,a.normalizeArrayableParams)(e)),i=n.from((0,o.createHmac)("sha256",t).update(r).digest("base64")),s=t.substr(0,4),u="".concat(i).concat(s).concat(r);return n.from(u).toString("base64")},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return s},enumerable:!1,configurable:!0}),t}()},40108:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(19505));e.default=function(){function t(t,e){this.stopwordId=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.stopwordId))},t}()},40717:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.importResults=r,i.payload=n,i}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},42142:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},46198:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i="/operations";e.default=function(){function t(t){this.apiCall=t}return t.prototype.perform=function(t){return n.__awaiter(this,arguments,void 0,function(t,e){return void 0===e&&(e={}),n.__generator(this,function(r){return[2,this.apiCall.post("".concat(i,"/").concat(t),{},e)]})})},t.prototype.getSchemaChanges=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get("".concat(i,"/schema_changes"))]})})},t}()},46308:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i="/aliases";e.default=function(){function t(t){this.apiCall=t}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(t),e)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(i)]})})},t.prototype.endpointPath=function(e){return"".concat(t.RESOURCEPATH,"/").concat(encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return i},enumerable:!1,configurable:!0}),t}()},47570:(t,e,r)=>{"use strict";r.d(e,{YQ:()=>i});var n=r(28081);function i(t,e,r,i){var o=this,a=(0,n.useRef)(null),s=(0,n.useRef)(0),u=(0,n.useRef)(0),c=(0,n.useRef)(null),l=(0,n.useRef)([]),h=(0,n.useRef)(),f=(0,n.useRef)(),p=(0,n.useRef)(t),d=(0,n.useRef)(!0),v=(0,n.useRef)(),y=(0,n.useRef)();p.current=t;var g="undefined"!=typeof window,_=!e&&0!==e&&g;if("function"!=typeof t)throw TypeError("Expected a function");e=+e||0;var m=!!(r=r||{}).leading,C=!("trailing"in r)||!!r.trailing,w=!!r.flushOnExit&&C,b="maxWait"in r,P="debounceOnServer"in r&&!!r.debounceOnServer,R=b?Math.max(+r.maxWait||0,e):null,S=(0,n.useMemo)(function(){var t=function(t){var e=l.current,r=h.current;return l.current=h.current=null,s.current=t,u.current=u.current||t,f.current=p.current.apply(r,e)},r=function(t,e){_&&cancelAnimationFrame(c.current),c.current=_?requestAnimationFrame(t):setTimeout(t,e)},n=function(t){if(!d.current)return!1;var r=t-a.current;return!a.current||r>=e||r<0||b&&t-s.current>=R},S=function(e){return c.current=null,C&&l.current?t(e):(l.current=h.current=null,f.current)},E=function t(){var i=Date.now();if(m&&u.current===s.current&&A(),n(i))return S(i);if(d.current){var o=e-(i-a.current);r(t,b?Math.min(o,R-(i-s.current)):o)}},A=function(){i&&i({})},O=function(){if(g||P){var i,u=Date.now(),p=n(u);if(l.current=[].slice.call(arguments),h.current=o,a.current=u,w&&!v.current&&(v.current=function(){var t;"hidden"===(null==(t=globalThis.document)?void 0:t.visibilityState)&&y.current.flush()},null==(i=globalThis.document)||null==i.addEventListener||i.addEventListener("visibilitychange",v.current)),p){if(!c.current&&d.current)return s.current=a.current,r(E,e),m?t(a.current):f.current;if(b)return r(E,e),t(a.current)}return c.current||r(E,e),f.current}};return O.cancel=function(){var t=c.current;t&&(_?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,l.current=a.current=h.current=c.current=null,t&&i&&i({})},O.isPending=function(){return!!c.current},O.flush=function(){return c.current?S(Date.now()):f.current},O},[m,b,e,R,C,w,_,g,P,i]);return y.current=S,(0,n.useEffect)(function(){return d.current=!0,function(){var t;w&&y.current.flush(),v.current&&(null==(t=globalThis.document)||null==t.removeEventListener||t.removeEventListener("visibilitychange",v.current),v.current=null),d.current=!1}},[w]),S}},47684:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(46308));e.default=function(){function t(t,e){this.name=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},t}()},50360:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57675)),o=n.__importDefault(r(53798)),a=n.__importDefault(r(50529));e.default=function(){function t(t){this.apiCall=t,this.individualAnalyticsRules={},this.apiCall=t,this._analyticsRules=new i.default(this.apiCall),this._analyticsEvents=new a.default(this.apiCall)}return t.prototype.rules=function(t){return void 0===t?this._analyticsRules:(void 0===this.individualAnalyticsRules[t]&&(this.individualAnalyticsRules[t]=new o.default(t,this.apiCall)),this.individualAnalyticsRules[t])},t.prototype.events=function(){return this._analyticsEvents},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/analytics"},enumerable:!1,configurable:!0}),t}()},50529:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t,this.apiCall=t}return t.prototype.create=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.post(this.endpointPath(),t)]})})},t.prototype.retrieve=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath(),t)]})})},t.prototype.endpointPath=function(e){return"".concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/analytics/events"},enumerable:!1,configurable:!0}),t}()},52641:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},52800:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImportError=e.TypesenseError=e.ServerError=e.RequestUnauthorized=e.RequestMalformed=e.ObjectUnprocessable=e.ObjectNotFound=e.ObjectAlreadyExists=e.MissingConfigurationError=e.HTTPError=void 0;var n=r(13083);e.HTTPError=n.__importDefault(r(56066)).default,e.MissingConfigurationError=n.__importDefault(r(78444)).default,e.ObjectAlreadyExists=n.__importDefault(r(52641)).default,e.ObjectNotFound=n.__importDefault(r(75980)).default,e.ObjectUnprocessable=n.__importDefault(r(33901)).default,e.RequestMalformed=n.__importDefault(r(42142)).default,e.RequestUnauthorized=n.__importDefault(r(58479)).default,e.ServerError=n.__importDefault(r(68379)).default,e.ImportError=n.__importDefault(r(40717)).default,e.TypesenseError=n.__importDefault(r(26528)).default},53798:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57675));e.default=function(){function t(t,e){this.name=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},t}()},54619:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(1536)),o=n.__importDefault(r(83713)),a=n.__importDefault(r(24892));e.default=function(){function t(t,e){this.synonymSetName=t,this.apiCall=e,this.individualItems={},this._items=new o.default(this.synonymSetName,e)}return t.prototype.upsert=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.put(this.endpointPath(),t)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.items=function(t){return void 0===t?this._items:(void 0===this.individualItems[t]&&(this.individualItems[t]=new a.default(this.synonymSetName,t,this.apiCall)),this.individualItems[t])},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.synonymSetName))},t}()},54703:(t,e,r)=>{"use strict";e._t=void 0;var n=r(13083),i=n.__importDefault(r(72343));i.default;var o=n.__importDefault(r(74487));e._t=o.default,n.__importStar(r(52800)),i.default,o.default},56066:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},56869:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(){this.responseCache=new Map,this.responsePromiseCache=new Map}return t.prototype.clearCache=function(){this.responseCache=new Map,this.responsePromiseCache=new Map},t.prototype.perform=function(t,e,r,i){return n.__awaiter(this,void 0,void 0,function(){var o,a,s,u,c,l,h,f,p,d,v,y,g,_,m,C,w,b,P,R,S;return n.__generator(this,function(n){switch(n.label){case 0:if(s=void 0===(a=(o=i||{}).cacheResponseForSeconds)?120:a,c=void 0===(u=o.maxSize)?100:u,l=void 0===i||s<=0||c<=0,h=r.path,f=r.queryParams,p=r.body,d=r.headers,v=r.streamConfig,y=r.abortSignal,g=r.responseType,_=r.isStreamingRequest,l)return[2,this.executeRequest(t,e,h,f,p,d,{abortSignal:y,responseType:g,streamConfig:v,isStreamingRequest:_})];if(m=JSON.stringify(r),C=this.responseCache.get(m),w=Date.now(),C){if(w-C.requestTimestamp<1e3*s)return this.responseCache.delete(m),this.responseCache.set(m,C),[2,C.response];this.responseCache.delete(m)}if(b=this.responsePromiseCache.get(m)){if(w-b.requestTimestamp<1e3*s)return this.responsePromiseCache.delete(m),this.responsePromiseCache.set(m,b),[2,b.responsePromise];this.responsePromiseCache.delete(m)}return P=this.executeRequest(t,e,h,f,p,d,{abortSignal:y,responseType:g,streamConfig:v,isStreamingRequest:_}),this.responsePromiseCache.set(m,{requestTimestamp:w,responsePromise:P}),[4,P];case 1:return R=n.sent(),this.responseCache.set(m,{requestTimestamp:w,response:R}),this.responseCache.size>c&&(S=this.responseCache.keys().next().value)&&this.responseCache.delete(S),this.responsePromiseCache.size>c&&(S=this.responsePromiseCache.keys().next().value)&&this.responsePromiseCache.delete(S),[2,R]}})})},t.prototype.executeRequest=function(t,e,r,n,i,o,a){void 0===n&&(n={});var s=t[e];switch(e){case"get":return s.call(t,r,n,{abortSignal:null==a?void 0:a.abortSignal,responseType:null==a?void 0:a.responseType,streamConfig:null==a?void 0:a.streamConfig,isStreamingRequest:null==a?void 0:a.isStreamingRequest});case"delete":return s.call(t,r,n);case"post":return s.call(t,r,i,n,o||{},{abortSignal:null==a?void 0:a.abortSignal,responseType:null==a?void 0:a.responseType,streamConfig:null==a?void 0:a.streamConfig,isStreamingRequest:null==a?void 0:a.isStreamingRequest});case"put":case"patch":return s.call(t,r,i,n);default:throw Error("Unsupported method: ".concat(String(e)))}},t}()},57309:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arrayableParams=void 0,e.arrayableParams={query_by:"query_by",query_by_weights:"query_by_weights",facet_by:"facet_by",group_by:"group_by",include_fields:"include_fields",exclude_fields:"exclude_fields",highlight_fields:"highlight_fields",highlight_full_fields:"highlight_full_fields",pinned_hits:"pinned_hits",hidden_hits:"hidden_hits",infix:"infix",override_tags:"override_tags",num_typos:"num_typos",prefix:"prefix",synonym_sets:"synonym_sets",sort_by:"sort_by"}},57474:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(t.RESOURCEPATH)]})})},t.RESOURCEPATH="/curation_sets",t}()},57675:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t,this.apiCall=t}return t.prototype.create=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.post(this.endpointPath(),t,{},{})]})})},t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(t),e)]})})},t.prototype.retrieve=function(t){return n.__awaiter(this,void 0,void 0,function(){var e;return n.__generator(this,function(r){return e={},t&&(e.rule_tag=t),[2,this.apiCall.get(this.endpointPath(),e)]})})},t.prototype.endpointPath=function(e){return"".concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/analytics/rules"},enumerable:!1,configurable:!0}),t}()},58479:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},59871:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});let n=(t,e)=>e.some(e=>e instanceof RegExp?e.test(t):e===t),i=new Set(["https:","http:","file:"]);function o(t,e){if("string"!=typeof(e={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,removePath:!1,transformPath:!1,...e}).defaultProtocol||e.defaultProtocol.endsWith(":")||(e.defaultProtocol=`${e.defaultProtocol}:`),t=t.trim(),/^data:/i.test(t))return((t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:o}=r.groups,a=n.split(";"),s="base64"===a.at(-1);s&&a.pop();let u=a.shift()?.toLowerCase()??"",c=[...a.map(t=>{let[e,r=""]=t.split("=").map(t=>t.trim());return"charset"===e&&"us-ascii"===(r=r.toLowerCase())?"":`${e}${r?`=${r}`:""}`}).filter(Boolean)];s&&c.push("base64"),(c.length>0||u&&"text/plain"!==u)&&c.unshift(u);let l=e||!o?"":`#${o}`;return`data:${c.join(";")},${s?i.trim():i}${l}`})(t,e);if((t=>{try{let{protocol:e}=new URL(t);return e.endsWith(":")&&!e.includes(".")&&!i.has(e)}catch{return!1}})(t))return t;let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let o=new URL(t);if(e.forceHttp&&e.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&"https:"===o.protocol&&(o.protocol="http:"),e.forceHttps&&"http:"===o.protocol&&(o.protocol="https:"),e.stripAuthentication&&(o.username="",o.password=""),e.stripHash?o.hash="":e.stripTextFragment&&(o.hash=o.hash.replace(/#?:~:text.*?$/i,"")),o.pathname){let t=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,e=0,r="";for(;;){let n=t.exec(o.pathname);if(!n)break;let i=n[0],a=n.index;r+=o.pathname.slice(e,a).replace(/\/{2,}/g,"/"),r+=i,e=a+i.length}r+=o.pathname.slice(e,o.pathname.length).replace(/\/{2,}/g,"/"),o.pathname=r}if(o.pathname)try{o.pathname=decodeURI(o.pathname).replace(/\\/g,"%5C")}catch{}if(!0===e.removeDirectoryIndex&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let t=o.pathname.split("/").filter(Boolean),r=t.at(-1);r&&n(r,e.removeDirectoryIndex)&&(t.pop(),o.pathname=t.length>0?`/${t.join("/")}/`:"/")}if(e.removePath&&(o.pathname="/"),e.transformPath&&"function"==typeof e.transformPath){let t=o.pathname.split("/").filter(Boolean),r=e.transformPath(t);o.pathname=r?.length>0?`/${r.join("/")}`:"/"}if(o.hostname&&(o.hostname=o.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(o.hostname)&&(o.hostname=o.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let t of[...o.searchParams.keys()])n(t,e.removeQueryParameters)&&o.searchParams.delete(t);if(Array.isArray(e.keepQueryParameters)||!0!==e.removeQueryParameters||(o.search=""),Array.isArray(e.keepQueryParameters)&&e.keepQueryParameters.length>0)for(let t of[...o.searchParams.keys()])n(t,e.keepQueryParameters)||o.searchParams.delete(t);if(e.sortQueryParameters){let t=o.search;o.searchParams.sort();try{o.search=decodeURIComponent(o.search)}catch{}for(let e of t.slice(1).split("&").filter(t=>t&&!t.includes("="))){let t=decodeURIComponent(e);o.search=o.search.replace(`?${t}=`,`?${t}`).replace(`&${t}=`,`&${t}`)}}e.removeTrailingSlash&&(o.pathname=o.pathname.replace(/\/$/,"")),e.removeExplicitPort&&o.port&&(o.port="");let a=t;return t=o.toString(),e.removeSingleSlash||"/"!==o.pathname||a.endsWith("/")||""!==o.hash||(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||"/"===o.pathname)&&""===o.hash&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t}},64661:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i="/collections";e.default=function(){function t(t){this.apiCall=t}return t.prototype.create=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.post(i,t,e)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,arguments,void 0,function(t){return void 0===t&&(t={}),n.__generator(this,function(e){return[2,this.apiCall.get(i,t)]})})},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return i},enumerable:!1,configurable:!0}),t}()},65308:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t,this.apiCall=t}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){var r,i;return n.__generator(this,function(n){switch(n.label){case 0:return r=Array.isArray(e)?e.map(function(t){return JSON.stringify(t)}).join("\n"):e,[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:{id:t},bodyParameters:r,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0})];case 1:return i=n.sent(),[2,Array.isArray(e)?i.split("\n").map(function(t){return JSON.parse(t)}):i]}})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(e){return void 0===e?"".concat(t.RESOURCEPATH):"".concat(t.RESOURCEPATH,"/").concat(encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/stemming/dictionaries"},enumerable:!1,configurable:!0}),t}()},65674:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get("/health")]})})},t}()},65873:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Document=void 0;var n=r(13083),i=n.__importDefault(r(64661)),o=n.__importDefault(r(4358));e.Document=function(){function t(t,e,r){this.collectionName=t,this.documentId=e,this.apiCall=r}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath(),t)]})})},t.prototype.update=function(t){return n.__awaiter(this,arguments,void 0,function(t,e){return void 0===e&&(e={}),n.__generator(this,function(r){return[2,this.apiCall.patch(this.endpointPath(),t,e)]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.documentId))},t}()},66178:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importStar(r(19643)),o=r(52800);e.default=function(){function t(t){var e=this;this.nodes=t.nodes||[],this.nodes=this.nodes.map(function(t){return e.setDefaultPathInNode(t)}).map(function(t){return e.setDefaultPortInNode(t)}).map(function(t){return n.__assign({},t)}),null==t.randomizeNodes&&(t.randomizeNodes=!0),!0===t.randomizeNodes&&this.shuffleArray(this.nodes),this.nearestNode=t.nearestNode,this.nearestNode=this.setDefaultPathInNode(this.nearestNode),this.nearestNode=this.setDefaultPortInNode(this.nearestNode),this.connectionTimeoutSeconds=t.connectionTimeoutSeconds||t.timeoutSeconds||5,this.healthcheckIntervalSeconds=t.healthcheckIntervalSeconds||60,this.numRetries=(void 0!==t.numRetries&&t.numRetries>=0?t.numRetries:this.nodes.length+ +(null!=this.nearestNode))||3,this.retryIntervalSeconds=t.retryIntervalSeconds||.1,this.apiKey=t.apiKey,this.sendApiKeyAsQueryParam=t.sendApiKeyAsQueryParam,this.cacheSearchResultsForSeconds=t.cacheSearchResultsForSeconds||0,this.useServerSideSearchCache=t.useServerSideSearchCache||!1,this.axiosAdapter=t.axiosAdapter,this.logger=t.logger||i,this.logLevel=t.logLevel||"warn",this.logger.setLevel(this.logLevel),this.additionalHeaders=t.additionalHeaders,this.httpAgent=t.httpAgent,this.httpsAgent=t.httpsAgent,this.paramsSerializer=t.paramsSerializer,this.showDeprecationWarnings(t),this.validate()}return t.prototype.validate=function(){if(null==this.nodes||0===this.nodes.length||this.validateNodes())throw new o.MissingConfigurationError("Ensure that nodes[].protocol, nodes[].host and nodes[].port are set");if(null!=this.nearestNode&&this.isNodeMissingAnyParameters(this.nearestNode))throw new o.MissingConfigurationError("Ensure that nearestNodes.protocol, nearestNodes.host and nearestNodes.port are set");if(null==this.apiKey)throw new o.MissingConfigurationError("Ensure that apiKey is set");return!0},t.prototype.validateNodes=function(){var t=this;return this.nodes.some(function(e){return t.isNodeMissingAnyParameters(e)})},t.prototype.isNodeMissingAnyParameters=function(t){return!["protocol","host","port","path"].every(function(e){return t.hasOwnProperty(e)})&&null==t.url},t.prototype.setDefaultPathInNode=function(t){return null==t||t.hasOwnProperty("path")||(t.path=""),t},t.prototype.setDefaultPortInNode=function(t){if(null!=t&&!t.hasOwnProperty("port")&&t.hasOwnProperty("protocol"))switch(t.protocol){case"https":t.port=443;break;case"http":t.port=80}return t},t.prototype.showDeprecationWarnings=function(t){t.timeoutSeconds&&this.logger.warn("Deprecation warning: timeoutSeconds is now renamed to connectionTimeoutSeconds"),t.masterNode&&this.logger.warn("Deprecation warning: masterNode is now consolidated to nodes, starting with Typesense Server v0.12"),t.readReplicaNodes&&this.logger.warn("Deprecation warning: readReplicaNodes is now consolidated to nodes, starting with Typesense Server v0.12")},t.prototype.shuffleArray=function(t){for(var e,r=t.length-1;r>0;r--){var n=Math.floor(Math.random()*(r+1));e=[t[n],t[r]],t[r]=e[0],t[n]=e[1]}},t}()},67417:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661)),o=n.__importDefault(r(72158));e.default=function(){function t(t,e,r){this.collectionName=t,this.synonymId=e,this.apiCall=r}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return t.hasWarnedDeprecation||(console.warn("[typesense] 'synonym' APIs are deprecated starting with Typesense Server v30. Please migrate to synonym sets 'synonym_sets'."),t.hasWarnedDeprecation=!0),"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.synonymId))},t.hasWarnedDeprecation=!1,t}()},68379:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},69015:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(94420));e.default=function(){function t(t,e){this.presetId=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.presetId))},t}()},69039:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(83292));e.default=function(){function t(t,e){this.id=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.update=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.put(this.endpointPath(),t)]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},t}()},69256:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661)),o=n.__importDefault(r(4358)),a=r(52800),s=n.__importDefault(r(98669)),u=n.__importDefault(r(70064)),c=n.__importDefault(r(72158)),l=n.__importDefault(r(67417)),h=r(65873);e.default=function(){function t(t,e,r){this.name=t,this.apiCall=e,this.configuration=r,this.individualDocuments={},this.individualOverrides={},this.individualSynonyms={},this.name=t,this.apiCall=e,this.configuration=r,this._documents=new o.default(this.name,this.apiCall,this.configuration),this._overrides=new s.default(this.name,this.apiCall),this._synonyms=new c.default(this.name,this.apiCall)}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.update=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.patch(this.endpointPath(),t)]})})},t.prototype.delete=function(){return n.__awaiter(this,arguments,void 0,function(t){return void 0===t&&(t={}),n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath(),t)]})})},t.prototype.exists=function(){return n.__awaiter(this,void 0,void 0,function(){var t;return n.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.retrieve()];case 1:return e.sent(),[2,!0];case 2:if((t=e.sent())instanceof a.ObjectNotFound)return[2,!1];throw t;case 3:return[2]}})})},t.prototype.documents=function(t){return t?(void 0===this.individualDocuments[t]&&(this.individualDocuments[t]=new h.Document(this.name,t,this.apiCall)),this.individualDocuments[t]):this._documents},t.prototype.overrides=function(t){return void 0===t?this._overrides:(void 0===this.individualOverrides[t]&&(this.individualOverrides[t]=new u.default(this.name,t,this.apiCall)),this.individualOverrides[t])},t.prototype.synonyms=function(t){return void 0===t?this._synonyms:(void 0===this.individualSynonyms[t]&&(this.individualSynonyms[t]=new l.default(this.name,t,this.apiCall)),this.individualSynonyms[t])},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},t}()},70064:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661)),o=n.__importDefault(r(98669));e.default=function(){function t(t,e,r){this.collectionName=t,this.overrideId=e,this.apiCall=r}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.overrideId))},t}()},71869:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(56869)),o=r(80521);e.default=function(){function t(t,e,r){void 0===r&&(r=!1),this.apiCall=t,this.configuration=e,this.useTextContentType=r,this.requestWithCache=new i.default,this.logger=this.apiCall.logger}return t.prototype.clearCache=function(){this.requestWithCache.clearCache()},t.prototype.perform=function(t,e,r){return n.__awaiter(this,void 0,void 0,function(){var i,a,s,u,c,l,h;return n.__generator(this,function(f){return i=e?n.__assign({},e):{},a=null!=(h=null==r?void 0:r.cacheSearchResultsForSeconds)?h:this.configuration.cacheSearchResultsForSeconds,!0===this.configuration.useServerSideSearchCache&&(i.use_cache=!0),!0===t.union&&this.hasAnySearchObjectPagination(t)&&this.logger.warn("Individual `searches` pagination parameters are ignored when `union: true` is set. Use a top-level pagination parameter instead. See https://typesense.org/docs/29.0/api/federated-multi-search.html#union-search"),s={union:t.union,searches:t.searches.map(o.normalizeArrayableParams)},u=i.streamConfig,c=n.__rest(i,["streamConfig"]),l=(0,o.normalizeArrayableParams)(c),[2,this.requestWithCache.perform(this.apiCall,"post",{path:"/multi_search",body:s,queryParams:l,headers:this.useTextContentType?{"content-type":"text/plain"}:{},streamConfig:u,abortSignal:null==r?void 0:r.abortSignal,isStreamingRequest:this.isStreamingRequest(i)},void 0!==a?{cacheResponseForSeconds:a}:void 0)]})})},t.prototype.isStreamingRequest=function(t){return void 0!==t.streamConfig},t.prototype.hasAnySearchObjectPagination=function(t){return t.searches.some(function(t){return void 0!==t.page||void 0!==t.per_page||void 0!==t.offset||void 0!==t.limit||void 0!==t.limit_hits})},t}()},72158:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661));e.default=function(){function t(t,e){this.collectionName=t,this.apiCall=e}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(t),e)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(e){return t.hasWarnedDeprecation||(console.warn("[typesense] 'synonyms' APIs are deprecated starting with Typesense Server v30. Please migrate to synonym sets ('synonym_sets')."),t.hasWarnedDeprecation=!0),"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/synonyms"},enumerable:!1,configurable:!0}),t.hasWarnedDeprecation=!1,t}()},72343:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(66178)),o=n.__importDefault(r(77299)),a=n.__importDefault(r(64661)),s=n.__importDefault(r(69256)),u=n.__importDefault(r(46308)),c=n.__importDefault(r(47684)),l=n.__importDefault(r(36524)),h=n.__importDefault(r(9855)),f=n.__importDefault(r(18587)),p=n.__importDefault(r(31065)),d=n.__importDefault(r(72639)),v=n.__importDefault(r(65674)),y=n.__importDefault(r(46198)),g=n.__importDefault(r(71869)),_=n.__importDefault(r(94420)),m=n.__importDefault(r(69015)),C=n.__importDefault(r(78513)),w=n.__importDefault(r(50360)),b=n.__importDefault(r(19505)),P=n.__importDefault(r(40108)),R=n.__importDefault(r(83292)),S=n.__importDefault(r(69039)),E=n.__importDefault(r(97872)),A=n.__importDefault(r(3740)),O=n.__importDefault(r(15887)),T=n.__importDefault(r(1536)),U=n.__importDefault(r(54619)),D=n.__importDefault(r(57474)),N=n.__importDefault(r(12661));e.default=function(){function t(t){var e;t.sendApiKeyAsQueryParam=null!=(e=t.sendApiKeyAsQueryParam)&&e,this.configuration=new i.default(t),this.apiCall=new o.default(this.configuration),this.debug=new f.default(this.apiCall),this.metrics=new p.default(this.apiCall),this.stats=new d.default(this.apiCall),this.health=new v.default(this.apiCall),this.operations=new y.default(this.apiCall),this.multiSearch=new g.default(this.apiCall,this.configuration),this._collections=new a.default(this.apiCall),this.individualCollections={},this._aliases=new u.default(this.apiCall),this.individualAliases={},this._keys=new l.default(this.apiCall),this.individualKeys={},this._presets=new _.default(this.apiCall),this.individualPresets={},this._stopwords=new b.default(this.apiCall),this.individualStopwords={},this.analytics=new w.default(this.apiCall),this.analyticsV1=new C.default(this.apiCall),this.stemming=new E.default(this.apiCall),this._conversations=new R.default(this.apiCall),this.individualConversations={},this._nlSearchModels=new A.default(this.apiCall),this.individualNLSearchModels={},this._synonymSets=new T.default(this.apiCall),this.individualSynonymSets={},this._curationSets=new D.default(this.apiCall),this.individualCurationSets={}}return t.prototype.collections=function(t){return void 0===t?this._collections:(void 0===this.individualCollections[t]&&(this.individualCollections[t]=new s.default(t,this.apiCall,this.configuration)),this.individualCollections[t])},t.prototype.aliases=function(t){return void 0===t?this._aliases:(void 0===this.individualAliases[t]&&(this.individualAliases[t]=new c.default(t,this.apiCall)),this.individualAliases[t])},t.prototype.keys=function(t){return void 0===t?this._keys:(void 0===this.individualKeys[t]&&(this.individualKeys[t]=new h.default(t,this.apiCall)),this.individualKeys[t])},t.prototype.presets=function(t){return void 0===t?this._presets:(void 0===this.individualPresets[t]&&(this.individualPresets[t]=new m.default(t,this.apiCall)),this.individualPresets[t])},t.prototype.stopwords=function(t){return void 0===t?this._stopwords:(void 0===this.individualStopwords[t]&&(this.individualStopwords[t]=new P.default(t,this.apiCall)),this.individualStopwords[t])},t.prototype.conversations=function(t){return void 0===t?this._conversations:(void 0===this.individualConversations[t]&&(this.individualConversations[t]=new S.default(t,this.apiCall)),this.individualConversations[t])},t.prototype.nlSearchModels=function(t){return void 0===t?this._nlSearchModels:(void 0===this.individualNLSearchModels[t]&&(this.individualNLSearchModels[t]=new O.default(t,this.apiCall)),this.individualNLSearchModels[t])},t.prototype.synonymSets=function(t){return void 0===t?this._synonymSets:(void 0===this.individualSynonymSets[t]&&(this.individualSynonymSets[t]=new U.default(t,this.apiCall)),this.individualSynonymSets[t])},t.prototype.curationSets=function(t){return void 0===t?this._curationSets:(void 0===this.individualCurationSets[t]&&(this.individualCurationSets[t]=new N.default(t,this.apiCall)),this.individualCurationSets[t])},t}()},72639:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get("/stats.json")]})})},t}()},72673:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(99680).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},73284:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(27385));e.default=function(){function t(t,e){this.id=t,this.apiCall=e}return t.prototype.update=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.put(this.endpointPath(),t)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},t}()},74487:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(66178)),o=n.__importDefault(r(77299)),a=n.__importDefault(r(71869)),s=r(15746);e.default=function(){function t(t){var e;t.sendApiKeyAsQueryParam=null==(e=t.sendApiKeyAsQueryParam)||e,!0===t.sendApiKeyAsQueryParam&&(t.apiKey||"").length>2e3&&(console.warn("[typesense] API Key is longer than 2000 characters which is over the allowed limit, so disabling sending it as a query parameter."),t.sendApiKeyAsQueryParam=!1),this.configuration=new i.default(t),this.apiCall=new o.default(this.configuration),this.multiSearch=new a.default(this.apiCall,this.configuration,!0),this.individualCollections={}}return t.prototype.clearCache=function(){this.multiSearch.clearCache(),Object.entries(this.individualCollections).forEach(function(t){t[0],t[1].documents().clearCache()})},t.prototype.collections=function(t){if(t)return void 0===this.individualCollections[t]&&(this.individualCollections[t]=new s.SearchOnlyCollection(t,this.apiCall,this.configuration)),this.individualCollections[t];throw Error("Typesense.SearchClient only supports search operations, so the collectionName that needs to be searched must be specified. Use Typesense.Client if you need to access the collection object.")},t}()},75980:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},77299:(t,e,r)=>{"use strict";var n=r(16298);Object.defineProperty(e,"__esModule",{value:!0});var i=r(13083),o=i.__importDefault(r(8583)),a=r(17784),s=r(17715),u=r(52800),c=i.__importDefault(r(26528)),l=r(80521),h=void 0!==n&&null!=n.versions&&null!=n.versions.node&&"undefined"==typeof window;e.default=function(){function t(t){this.configuration=t,this.apiKey=this.configuration.apiKey,this.nodes=null==this.configuration.nodes?this.configuration.nodes:JSON.parse(JSON.stringify(this.configuration.nodes)),this.nearestNode=null==this.configuration.nearestNode?this.configuration.nearestNode:JSON.parse(JSON.stringify(this.configuration.nearestNode)),this.connectionTimeoutSeconds=this.configuration.connectionTimeoutSeconds,this.healthcheckIntervalSeconds=this.configuration.healthcheckIntervalSeconds,this.numRetriesPerRequest=this.configuration.numRetries,this.retryIntervalSeconds=this.configuration.retryIntervalSeconds,this.sendApiKeyAsQueryParam=this.configuration.sendApiKeyAsQueryParam,this.additionalUserHeaders=this.configuration.additionalHeaders,this.logger=this.configuration.logger,this.initializeMetadataForNodes(),this.currentNodeIndex=-1}return t.prototype.get=function(t){return i.__awaiter(this,arguments,void 0,function(t,e,r){void 0===e&&(e={});var n=void 0===r?{}:r,o=n.abortSignal,a=void 0===o?null:o,s=n.responseType,u=void 0===s?void 0:s,c=n.streamConfig,l=void 0===c?void 0:c,h=n.isStreamingRequest;return i.__generator(this,function(r){return[2,this.performRequest("get",t,{queryParameters:e,abortSignal:a,responseType:u,streamConfig:l,isStreamingRequest:h})]})})},t.prototype.delete=function(t){return i.__awaiter(this,arguments,void 0,function(t,e){return void 0===e&&(e={}),i.__generator(this,function(r){return[2,this.performRequest("delete",t,{queryParameters:e,isStreamingRequest:!1})]})})},t.prototype.post=function(t){return i.__awaiter(this,arguments,void 0,function(t,e,r,n,o){void 0===e&&(e={}),void 0===r&&(r={}),void 0===n&&(n={});var a=void 0===o?{}:o,s=a.abortSignal,u=void 0===s?null:s,c=a.responseType,l=void 0===c?void 0:c,h=a.streamConfig,f=void 0===h?void 0:h,p=a.isStreamingRequest;return i.__generator(this,function(i){return[2,this.performRequest("post",t,{queryParameters:r,bodyParameters:e,additionalHeaders:n,abortSignal:u,responseType:l,streamConfig:f,isStreamingRequest:p})]})})},t.prototype.put=function(t){return i.__awaiter(this,arguments,void 0,function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),i.__generator(this,function(n){return[2,this.performRequest("put",t,{queryParameters:r,bodyParameters:e,isStreamingRequest:!1})]})})},t.prototype.patch=function(t){return i.__awaiter(this,arguments,void 0,function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),i.__generator(this,function(n){return[2,this.performRequest("patch",t,{queryParameters:r,bodyParameters:e,isStreamingRequest:!1})]})})},t.prototype.getAdapter=function(){if(this.configuration.axiosAdapter)return"function"==typeof this.configuration.axiosAdapter?this.configuration.axiosAdapter:"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent?o.default.getAdapter(this.configuration.axiosAdapter).bind(globalThis):o.default.getAdapter(this.configuration.axiosAdapter)},t.prototype.performRequest=function(t,e,r){return i.__awaiter(this,arguments,void 0,function(t,e,r){var n,u,c,l,f,p,d,v,y,g,_,m=r.queryParameters,C=void 0===m?null:m,w=r.bodyParameters,b=void 0===w?null:w,P=r.additionalHeaders,R=void 0===P?{}:P,S=r.abortSignal,E=void 0===S?null:S,A=r.responseType,O=void 0===A?void 0:A,T=r.skipConnectionTimeout,U=void 0!==T&&T,D=r.enableKeepAlive,N=void 0===D?void 0:D,I=r.streamConfig,j=void 0===I?void 0:I,k=r.isStreamingRequest;return i.__generator(this,function(r){switch(r.label){case 0:this.configuration.validate(),k&&(this.logger.debug("Request: Performing streaming request to ".concat(e)),h||"undefined"==typeof fetch||(this.logger.debug("Using fetch adapter for browser streaming"),O="stream")),n=Date.now(),c=!1,this.logger.debug("Request #".concat(n,": Performing ").concat(t.toUpperCase()," request: ").concat(e)),l=function(r){var l,p,d,m,w,P;return i.__generator(this,function(S){switch(S.label){case 0:if(l=f.getNextNode(n),f.logger.debug("Request #".concat(n,": Attempting ").concat(t.toUpperCase()," request Try #").concat(r," to Node ").concat(l.index)),E&&E.aborted)return[2,{value:Promise.reject(Error("Request aborted by caller."))}];p=void 0,S.label=1;case 1:return S.trys.push([1,3,5,6]),(d={method:t,url:f.uriFor(e,l),headers:Object.assign({},f.defaultHeaders(),R,f.additionalUserHeaders),maxContentLength:1/0,maxBodyLength:1/0,validateStatus:function(t){return t>0},transformResponse:[function(t,e){var r=t;return void 0!==e&&"string"==typeof t&&e["content-type"]&&e["content-type"].startsWith("application/json")&&(r=JSON.parse(t)),r}]}).adapter=k&&!h?"fetch":f.getAdapter(),!0!==U&&(d.timeout=1e3*f.connectionTimeoutSeconds),C&&0!==Object.keys(C).length&&(d.params=C),f.sendApiKeyAsQueryParam&&(d.params=d.params||{},d.params["x-typesense-api-key"]=f.apiKey),f.configuration.httpAgent?(f.logger.debug("Request #".concat(n,": Using custom httpAgent")),d.httpAgent=f.configuration.httpAgent):!0===N&&(h?(f.logger.debug("Request #".concat(n,": Enabling KeepAlive")),d.httpAgent=new a.Agent({keepAlive:!0})):f.logger.warn("Request #".concat(n,": Cannot use custom httpAgent in a browser environment to enable keepAlive"))),f.configuration.httpsAgent?(f.logger.debug("Request #".concat(n,": Using custom httpsAgent")),d.httpsAgent=f.configuration.httpsAgent):!0===N&&(h?(f.logger.debug("Request #".concat(n,": Enabling keepAlive")),d.httpsAgent=new s.Agent({keepAlive:!0})):f.logger.warn("Request #".concat(n,": Cannot use custom httpAgent in a browser environment to enable keepAlive"))),f.configuration.paramsSerializer&&(f.logger.debug("Request #".concat(n,": Using custom paramsSerializer")),d.paramsSerializer=f.configuration.paramsSerializer),b&&("string"==typeof b&&0!==b.length||"object"==typeof b&&0!==Object.keys(b).length)&&(d.data=b),E&&(m=o.default.CancelToken.source(),p=function(){c=!0,m.cancel()},E.addEventListener("abort",p),d.cancelToken=m.token),k?(d.responseType="stream",h||(d.headers=i.__assign(i.__assign({},d.headers),{Accept:"text/event-stream"}))):O&&(d.responseType=O),[4,(0,o.default)(d)];case 2:if((w=S.sent()).status>=1&&w.status<=499&&f.setNodeHealthcheck(l,!0),f.logger.debug("Request #".concat(n,": Request to Node ").concat(l.index," was made. Response Code was ").concat(w.status,".")),w.status>=200&&w.status<300){if(k)return[2,{value:f.handleStreamingResponse(w,j)}];return[2,{value:Promise.resolve(w.data)}]}if(w.status<500)return[2,{value:Promise.reject(f.customErrorForResponse(w,null==(v=w.data)?void 0:v.message,d.data))}];throw f.customErrorForResponse(w,null==(y=w.data)?void 0:y.message,d.data);case 3:if(P=S.sent(),c||f.setNodeHealthcheck(l,!1),u=P,f.logger.warn("Request #".concat(n,": Request to Node ").concat(l.index,' failed due to "').concat(null!=(g=null==P?void 0:P.code)?g:""," ").concat(P.message).concat(null==P.response?"":" - "+JSON.stringify(null==(_=P.response)?void 0:_.data),'"')),c)return[2,{value:Promise.reject(Error("Request aborted by caller."))}];if(k&&f.invokeOnErrorCallback(P,j),!(r<f.numRetriesPerRequest+1))return f.logger.debug("Request #".concat(n,": No retries left. Raising last error")),[2,{value:Promise.reject(u)}];return f.logger.warn("Request #".concat(n,": Sleeping for ").concat(f.retryIntervalSeconds,"s and then retrying request...")),[4,f.timer(f.retryIntervalSeconds)];case 4:return S.sent(),[3,6];case 5:return E&&p&&E.removeEventListener("abort",p),[7];case 6:return[2]}})},f=this,p=1,r.label=1;case 1:if(!(p<=this.numRetriesPerRequest+1))return[3,4];return[5,l(p)];case 2:if("object"==typeof(d=r.sent()))return[2,d.value];r.label=3;case 3:return p++,[3,1];case 4:return this.logger.debug("Request #".concat(n,": No retries left. Raising last error")),[2,Promise.reject(u)]}})})},t.prototype.processStreamingLine=function(t){if(!t.trim()||"data: [DONE]"===t)return null;if(t.startsWith("data: "))return this.processDataLine(t.slice(6).trim());if(t.trim().startsWith("{"))try{var e=JSON.parse(t.trim());if(e&&"object"==typeof e)return e.conversation_id||(e.conversation_id="unknown"),e.message||""===e.message||(e.message=""),e;return{conversation_id:"unknown",message:JSON.stringify(e)}}catch(t){}return{conversation_id:"unknown",message:t.trim()}},t.prototype.processDataLine=function(t){if(!t)return null;if(t.startsWith("{"))try{var e=JSON.parse(t);if(e&&"object"==typeof e)return e.conversation_id||(e.conversation_id="unknown"),e.message||""===e.message||(e.message=""),e;return{conversation_id:"unknown",message:JSON.stringify(e)}}catch(t){}return{conversation_id:"unknown",message:t}},t.prototype.handleStreamingResponse=function(t,e){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(r){return(this.logger.debug("Handling streaming response. Environment: ".concat(h?"Node.js":"Browser")),h&&t.data)?[2,this.handleNodeStreaming(t,e)]:h?(this.logger.debug("Processing non-streaming response"),this.invokeOnCompleteCallback(t.data,e),[2,Promise.resolve(t.data)]):[2,this.handleBrowserStreaming(t,e)]})})},t.prototype.handleNodeStreaming=function(t,e){var r=this;return this.logger.debug("Processing Node.js stream"),new Promise(function(n,i){var o=t.data,a=[],s="";o.on("data",function(t){var n;try{var o=t.toString(),u=(s+=o).split("\n");s=null!=(n=u.pop())?n:"",r.processStreamLines(u,a,e)}catch(t){i(t)}}),o.on("end",function(){if(s.trim().length>0){var i=s.split("\n");r.processStreamLines(i,a,e)}r.finalizeStreamResult(a,n,t,e)}),o.on("error",function(t){r.logger.error("Stream error: ".concat(t)),r.invokeOnErrorCallback(t,e),i(t)})})},t.prototype.handleBrowserStreaming=function(t,e){var r=this;return this.logger.debug("Processing browser stream"),new Promise(function(n,o){return i.__awaiter(r,void 0,void 0,function(){return i.__generator(this,function(r){try{if(t.data&&"function"==typeof t.data.getReader)return[2,this.handleBrowserReadableStream(t.data,n,o,t,e)];if("string"==typeof t.data)return[2,this.handleBrowserStringResponse(t.data,n,t,e)];if("object"==typeof t.data&&null!==t.data)return this.logger.debug("No stream found, but data object is available"),this.invokeOnCompleteCallback(t.data,e),[2,n(t.data)];return this.logger.error("No usable data found in response"),[2,o(Error("No usable data found in response"))]}catch(t){this.logger.error("Error processing streaming response: ".concat(t)),this.invokeOnErrorCallback(t,e),o(t)}return[2]})})})},t.prototype.handleBrowserReadableStream=function(t,e,r,n,o){return i.__awaiter(this,void 0,void 0,function(){var a,s,u,c,l,h,f,p,d,v;return i.__generator(this,function(i){switch(i.label){case 0:this.logger.debug("Found ReadableStream in response.data"),a=t.getReader(),s=[],u="",i.label=1;case 1:i.trys.push([1,5,,6]),i.label=2;case 2:return[4,a.read()];case 3:if(l=(c=i.sent()).done,h=c.value,l)return this.logger.debug("Stream reading complete"),u.trim()&&(f=u.split("\n"),this.processStreamLines(f,s,o)),[3,4];return p=new TextDecoder().decode(h),this.logger.debug("Received chunk: ".concat(p.length," bytes")),u+=p,u=(d=u.split("\n")).pop()||"",this.processStreamLines(d,s,o),[3,2];case 4:return this.finalizeStreamResult(s,e,n,o),[3,6];case 5:return v=i.sent(),this.logger.error("Stream error: ".concat(v)),this.invokeOnErrorCallback(v,o),r(v),[3,6];case 6:return[2]}})})},t.prototype.handleBrowserStringResponse=function(t,e,r,n){this.logger.debug("Processing text response as stream data");var i=[],o=t.split("\n");if(this.processStreamLines(o,i,n),i.length>0){var a=this.combineStreamingChunks(i);this.invokeOnCompleteCallback(a,n),e(a)}else this.logger.debug("No chunks processed, returning original API response"),this.invokeOnCompleteCallback(r.data,n),e(r.data)},t.prototype.processStreamLines=function(t,e,r){for(var n=0;n<t.length;n++){var i=t[n];if(i.trim()&&"data: [DONE]"!==i){var o=this.processStreamingLine(i);null!==o&&(this.invokeOnChunkCallback(o,r),e.push(o))}}},t.prototype.finalizeStreamResult=function(t,e,r,n){if(t.length>0){var i=this.combineStreamingChunks(t);this.logger.debug("Stream processing complete"),this.invokeOnCompleteCallback(i,n),e(i)}else this.logger.debug("No chunks processed, returning original API response"),this.invokeOnCompleteCallback(r.data,n),e(r.data)},t.prototype.combineStreamingChunks=function(t){if(0===t.length)return{};if(1===t.length)return t[0];var e=this.getMessageChunks(t);if(e.length>0)return this.combineMessageChunks(t,e);var r=t[t.length-1];if(!this.isCompleteSearchResponse(r))throw Error("Last chunk is not a complete search response");return r},t.prototype.getMessageChunks=function(t){return t.filter(this.isChunkMessage)},t.prototype.isChunkMessage=function(t){return"object"==typeof t&&null!==t&&"message"in t&&"conversation_id"in t},t.prototype.combineMessageChunks=function(t,e){this.logger.debug("Found ".concat(e.length," message chunks to combine"));var r=t[t.length-1];if(this.isCompleteSearchResponse(r))return r;var n=t.find(this.isCompleteSearchResponse);if(!n)throw Error("No metadata chunk found");return n},t.prototype.isCompleteSearchResponse=function(t){return"object"==typeof t&&null!==t&&Object.keys(t).length>0&&("results"in t||"found"in t||"hits"in t||"page"in t||"search_time_ms"in t)},t.prototype.getNextNode=function(t){if(void 0===t&&(t=0),null!=this.nearestNode){if(this.logger.debug("Request #".concat(t,": Nodes Health: Node ").concat(this.nearestNode.index," is ").concat(!0===this.nearestNode.isHealthy?"Healthy":"Unhealthy")),!0===this.nearestNode.isHealthy||this.nodeDueForHealthcheck(this.nearestNode,t))return this.logger.debug("Request #".concat(t,": Updated current node to Node ").concat(this.nearestNode.index)),this.nearestNode;this.logger.debug("Request #".concat(t,": Falling back to individual nodes"))}this.logger.debug("Request #".concat(t,": Nodes Health: ").concat(this.nodes.map(function(t){return"Node ".concat(t.index," is ").concat(!0===t.isHealthy?"Healthy":"Unhealthy")}).join(" || ")));for(var e=this.nodes[0],r=0;r<=this.nodes.length;r++)if(this.currentNodeIndex=(this.currentNodeIndex+1)%this.nodes.length,!0===(e=this.nodes[this.currentNodeIndex]).isHealthy||this.nodeDueForHealthcheck(e,t))return this.logger.debug("Request #".concat(t,": Updated current node to Node ").concat(e.index)),e;return this.logger.debug("Request #".concat(t,": No healthy nodes were found. Returning the next node, Node ").concat(e.index)),e},t.prototype.nodeDueForHealthcheck=function(t,e){void 0===e&&(e=0);var r=Date.now()-t.lastAccessTimestamp>1e3*this.healthcheckIntervalSeconds;return r&&this.logger.debug("Request #".concat(e,": Node ").concat(t.index," has exceeded healtcheckIntervalSeconds of ").concat(this.healthcheckIntervalSeconds,". Adding it back into rotation.")),r},t.prototype.initializeMetadataForNodes=function(){var t=this;null!=this.nearestNode&&(this.nearestNode.index="nearestNode",this.setNodeHealthcheck(this.nearestNode,!0)),this.nodes.forEach(function(e,r){e.index=r,t.setNodeHealthcheck(e,!0)})},t.prototype.setNodeHealthcheck=function(t,e){t.isHealthy=e,t.lastAccessTimestamp=Date.now()},t.prototype.uriFor=function(t,e){return null!=e.url?"".concat(e.url).concat(t):"".concat(e.protocol,"://").concat(e.host,":").concat(e.port).concat(e.path).concat(t)},t.prototype.defaultHeaders=function(){var t={};return this.sendApiKeyAsQueryParam||(t["X-TYPESENSE-API-KEY"]=this.apiKey),t["Content-Type"]="application/json",t},t.prototype.timer=function(t){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(e){return[2,new Promise(function(e){return setTimeout(e,1e3*t)})]})})},t.prototype.customErrorForResponse=function(t,e,r){var n="Request failed with HTTP code ".concat(t.status);"string"==typeof e&&""!==e.trim()&&(n+=" | Server said: ".concat(e));new c.default(n,r,t.status);return 400===t.status?new u.RequestMalformed(n,r,t.status):401===t.status?new u.RequestUnauthorized(n,r,t.status):404===t.status?new u.ObjectNotFound(n,r,t.status):409===t.status?new u.ObjectAlreadyExists(n,r,t.status):422===t.status?new u.ObjectUnprocessable(n,r,t.status):t.status>=500&&t.status<=599?new u.ServerError(n,r,t.status):new u.HTTPError(n,r,t.status)},t.prototype.invokeOnChunkCallback=function(t,e){if(null==e?void 0:e.onChunk)try{e.onChunk(t)}catch(t){this.logger.warn("Error in onChunk callback: ".concat(t))}},t.prototype.invokeOnCompleteCallback=function(t,e){if(null==e?void 0:e.onComplete)try{e.onComplete(t)}catch(t){this.logger.warn("Error in onComplete callback: ".concat(t))}},t.prototype.invokeOnErrorCallback=function(t,e){if(null==e?void 0:e.onError){var r=(0,l.toErrorWithMessage)(t);try{e.onError(r)}catch(t){this.logger.warn("Error in onError callback: ".concat(t))}}},t}()},78444:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},78513:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(94066)),o=n.__importDefault(r(2504)),a=n.__importDefault(r(50529));e.default=function(){function t(t){this.apiCall=t,this.individualAnalyticsRules={},this.apiCall=t,this._analyticsRules=new i.default(this.apiCall),this._analyticsEvents=new a.default(this.apiCall)}return t.prototype.rules=function(e){return(t.hasWarnedDeprecation||(console.warn("[typesense] 'analyticsV1' is deprecated starting with Typesense Server v30 and will be removed in a future release. Please use 'analytics' instead."),t.hasWarnedDeprecation=!0),void 0===e)?this._analyticsRules:(void 0===this.individualAnalyticsRules[e]&&(this.individualAnalyticsRules[e]=new o.default(e,this.apiCall)),this.individualAnalyticsRules[e])},t.prototype.events=function(){return this._analyticsEvents},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/analytics"},enumerable:!1,configurable:!0}),t.hasWarnedDeprecation=!1,t}()},79953:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(99680).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},80521:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeArrayableParams=function(t){var e=n.__assign({},t);if(!Object.keys(i.arrayableParams).filter(function(t){return Array.isArray(e[t])}).map(function(t){return e[t]=e[t].join(","),t}).length&&o(e))return e;if(!o(e))throw Error("Failed to normalize arrayable params: ".concat(JSON.stringify(e)));return e},e.toErrorWithMessage=function(t){if("object"==typeof t&&null!==t&&"message"in t&&"string"==typeof t.message)return t;try{if("string"==typeof t)return Error(t);return Error(JSON.stringify(t))}catch(e){return Error(String(t))}};var n=r(13083),i=r(57309);function o(t){return Object.keys(i.arrayableParams).filter(function(e){return void 0!==t[e]}).every(function(e){return!Array.isArray(t[e])})}},83292:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(27385)),o=n.__importDefault(r(73284)),a="/conversations";e.default=function(){function t(t){this.apiCall=t,this.individualConversationModels={},this.apiCall=t,this._conversationsModels=new i.default(this.apiCall)}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(a)]})})},t.prototype.models=function(t){return void 0===t?this._conversationsModels:(void 0===this.individualConversationModels[t]&&(this.individualConversationModels[t]=new o.default(t,this.apiCall)),this.individualConversationModels[t])},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return a},enumerable:!1,configurable:!0}),t}()},83713:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(1536));e.default=function(){function t(t,e){this.synonymSetName=t,this.apiCall=e}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(t),e)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(t){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.synonymSetName),"/items").concat(void 0===t?"":"/"+encodeURIComponent(t))},t}()},85014:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(99680).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},93118:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57474));e.default=function(){function t(t,e,r){this.name=t,this.itemId=e,this.apiCall=r}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.upsert=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.put(this.endpointPath(),t)]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name),"/items/").concat(encodeURIComponent(this.itemId))},t}()},94066:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t,this.apiCall=t}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(t),e)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(e){return"".concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/analytics/rules"},enumerable:!1,configurable:!0}),t}()},94420:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=r(80521);e.default=function(){function t(t){this.apiCall=t}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){var r,o;return n.__generator(this,function(n){return"object"==typeof e.value&&"searches"in e.value?(r=e.value.searches.map(function(t){return(0,i.normalizeArrayableParams)(t)}),[2,this.apiCall.put(this.endpointPath(t),{value:{searches:r}})]):(o=(0,i.normalizeArrayableParams)(e.value),[2,this.apiCall.put(this.endpointPath(t),{value:o})])})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(e){return"".concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/presets"},enumerable:!1,configurable:!0}),t}()},97872:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(65308)),o=n.__importDefault(r(16940));e.default=function(){function t(t){this.apiCall=t,this.individualStemmingDictionaries={},this.apiCall=t,this._stemmingDictionaries=new i.default(this.apiCall)}return t.prototype.dictionaries=function(t){return void 0===t?this._stemmingDictionaries:(void 0===this.individualStemmingDictionaries[t]&&(this.individualStemmingDictionaries[t]=new o.default(t,this.apiCall)),this.individualStemmingDictionaries[t])},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/stemming"},enumerable:!1,configurable:!0}),t}()},98669:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661));e.default=function(){function t(t,e){this.collectionName=t,this.apiCall=e}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(t),e)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(e){return"".concat(i.default.RESOURCEPATH,"/").concat(this.collectionName).concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/overrides"},enumerable:!1,configurable:!0}),t}()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6399],{3135:(e,r,t)=>{t.d(r,{$:()=>o});function o(){for(var e,r,t=0,o="",l=arguments.length;t<l;t++)(e=arguments[t])&&(r=function e(r){var t,o,l="";if("string"==typeof r||"number"==typeof r)l+=r;else if("object"==typeof r)if(Array.isArray(r)){var n=r.length;for(t=0;t<n;t++)r[t]&&(o=e(r[t]))&&(l&&(l+=" "),l+=o)}else for(o in r)r[o]&&(l&&(l+=" "),l+=o);return l}(e))&&(o&&(o+=" "),o+=r);return o}},8295:(e,r,t)=>{t.d(r,{F:()=>i});var o=t(3135);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=o.$,i=(e,r)=>t=>{var o;if((null==r?void 0:r.variants)==null)return n(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:i,defaultVariants:a}=r,s=Object.keys(i).map(e=>{let r=null==t?void 0:t[e],o=null==a?void 0:a[e];if(null===r)return null;let n=l(r)||l(o);return i[e][n]}),d=t&&Object.entries(t).reduce((e,r)=>{let[t,o]=r;return void 0===o||(e[t]=o),e},{});return n(e,s,null==r||null==(o=r.compoundVariants)?void 0:o.reduce((e,r)=>{let{class:t,className:o,...l}=r;return Object.entries(l).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...a,...d}[r]):({...a,...d})[r]===t})?[...e,t,o]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}},19906:(e,r,t)=>{t.d(r,{LucideProvider:()=>n,useLucideContext:()=>i});var o=t(28081);let l=(0,o.createContext)({});function n(e){let{children:r,size:t,color:n,strokeWidth:i,absoluteStrokeWidth:a,className:s}=e,d=(0,o.useMemo)(()=>({size:t,color:n,strokeWidth:i,absoluteStrokeWidth:a,className:s}),[t,n,i,a,s]);return(0,o.createElement)(l.Provider,{value:d},r)}let i=()=>(0,o.useContext)(l)},23344:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var o=t(28081),l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},n=t(57014),i=t(19906);let a=(0,o.forwardRef)((e,r)=>{var t,a,s;let{color:d,size:c,strokeWidth:u,absoluteStrokeWidth:p,className:b="",children:f,iconNode:m,...g}=e,{size:h=24,strokeWidth:y=2,absoluteStrokeWidth:v=!1,color:x="currentColor",className:w=""}=null!=(t=(0,i.useLucideContext)())?t:{},k=(null!=p?p:v)?24*Number(null!=u?u:y)/Number(null!=c?c:h):null!=u?u:y;return(0,o.createElement)("svg",{ref:r,...l,width:null!=(a=null!=c?c:h)?a:l.width,height:null!=(s=null!=c?c:h)?s:l.height,stroke:null!=d?d:x,strokeWidth:k,className:(0,n.z)("lucide",w,b),...!f&&!(e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0;return!1})(g)&&{"aria-hidden":"true"},...g},[...m.map(e=>{let[r,t]=e;return(0,o.createElement)(r,t)}),...Array.isArray(f)?f:[f]])})},46988:(e,r,t)=>{t.d(r,{s:()=>s,t:()=>a});var o=t(28081),l=Object.defineProperty,n=(e,r)=>l(e,"name",{value:r,configurable:!0});function i(e,r){if("function"==typeof e)return e(r);null!=e&&(e.current=r)}function a(...e){return r=>{let t=!1,o=e.map(e=>{let o=i(e,r);return t||"function"!=typeof o||(t=!0),o});if(t)return()=>{for(let r=0;r<o.length;r++){let t=o[r];"function"==typeof t?t():i(e[r],null)}}}}function s(...e){return o.useCallback(a(...e),e)}n(i,"setRef"),n(a,"composeRefs"),n(s,"useComposedRefs")},57014:(e,r,t)=>{t.d(r,{z:()=>o});let o=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter((e,r,t)=>!!e&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim()}},85126:(e,r,t)=>{t.d(r,{DX:()=>d,Dc:()=>u,TL:()=>s});var o,l=t(28081),n=t(46988),i=Object.defineProperty,a=(e,r)=>i(e,"name",{value:r,configurable:!0});function s(e){let r=l.forwardRef((r,t)=>{let{children:o,...i}=r,a=null,s=!1,d=[];h(o)&&"function"==typeof w&&(o=w(o._payload)),l.Children.forEach(o,e=>{if(m(e)){s=!0;let r="child"in e.props?e.props.child:e.props.children;h(r)&&"function"==typeof w&&(r=w(r._payload)),a=p(e,r),d.push(a?.props?.children)}else d.push(e)}),a?a=l.cloneElement(a,void 0,d):!s&&1===l.Children.count(o)&&l.isValidElement(o)&&(a=o);let c=a?f(a):void 0,u=(0,n.s)(t,c);if(!a){if(o||0===o)throw Error(s?x(e):v(e));return o}let g=b(i,a.props??{});return a.type!==l.Fragment&&(g.ref=t?u:c),l.cloneElement(a,g)});return r.displayName=`${e}.Slot`,r}a(s,"createSlot");var d=s("Slot"),c=Symbol.for("radix.slottable");function u(e){let r=a(e=>"child"in e?e.children(e.child):e.children,"Slottable");return r.displayName=`${e}.Slottable`,r.__radixId=c,r}a(u,"createSlottable");var p=a((e,r)=>{if("child"in e.props){let r=e.props.child;return l.isValidElement(r)?l.cloneElement(r,void 0,e.props.children(r.props.children)):null}return l.isValidElement(r)?r:null},"getSlottableElementFromSlottable");function b(e,r){let t={...r};for(let o in r){let l=e[o],n=r[o];/^on[A-Z]/.test(o)?l&&n?t[o]=(...e)=>{let r=n(...e);return l(...e),r}:l&&(t[o]=l):"style"===o?t[o]={...l,...n}:"className"===o&&(t[o]=[l,n].filter(Boolean).join(" "))}return{...e,...t}}function f(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}function m(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}a(b,"mergeProps"),a(f,"getElementRef"),a(m,"isSlottable");var g=Symbol.for("react.lazy");function h(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===g&&"_payload"in e&&y(e._payload)}function y(e){return"object"==typeof e&&null!==e&&"then"in e}a(h,"isLazyComponent"),a(y,"isPromiseLike");var v=a(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),x=a(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),w=(o||(o=t.t(l,2)))[" use ".trim().toString()]},96915:(e,r,t)=>{t.d(r,{QP:()=>T});let o=(e,r)=>{if(0===e.length)return r.classGroupId;let t=e[0],l=r.nextPart.get(t),n=l?o(e.slice(1),l):void 0;if(n)return n;if(0===r.validators.length)return;let i=e.join("-");return r.validators.find(({validator:e})=>e(i))?.classGroupId},l=/^\[(.+)\]$/,n=(e,r,t,o)=>{e.forEach(e=>{if("string"==typeof e){(""===e?r:i(r,e)).classGroupId=t;return}if("function"==typeof e)return a(e)?void n(e(o),r,t,o):void r.validators.push({validator:e,classGroupId:t});Object.entries(e).forEach(([e,l])=>{n(l,i(r,e),t,o)})})},i=(e,r)=>{let t=e;return r.split("-").forEach(e=>{t.nextPart.has(e)||t.nextPart.set(e,{nextPart:new Map,validators:[]}),t=t.nextPart.get(e)}),t},a=e=>e.isThemeGetter,s=(e,r)=>r?e.map(([e,t])=>[e,t.map(e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[r+e,t])):e)]):e,d=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(e=>{"["===e[0]?(r.push(...t.sort(),e),t=[]):t.push(e)}),r.push(...t.sort()),r},c=/\s+/;function u(){let e,r,t=0,o="";for(;t<arguments.length;)(e=arguments[t++])&&(r=p(e))&&(o&&(o+=" "),o+=r);return o}let p=e=>{let r;if("string"==typeof e)return e;let t="";for(let o=0;o<e.length;o++)e[o]&&(r=p(e[o]))&&(t&&(t+=" "),t+=r);return t},b=e=>{let r=r=>r[e]||[];return r.isThemeGetter=!0,r},f=/^\[(?:([a-z-]+):)?(.+)\]$/i,m=/^\d+\/\d+$/,g=new Set(["px","full","screen"]),h=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,y=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,v=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,x=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,w=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>j(e)||g.has(e)||m.test(e),z=e=>L(e,"length",I),j=e=>!!e&&!Number.isNaN(Number(e)),S=e=>L(e,"number",j),C=e=>!!e&&Number.isInteger(Number(e)),E=e=>e.endsWith("%")&&j(e.slice(0,-1)),N=e=>f.test(e),$=e=>h.test(e),P=new Set(["length","size","percentage"]),R=e=>L(e,P,M),_=e=>L(e,"position",M),O=new Set(["image","url"]),W=e=>L(e,O,D),A=e=>L(e,"",V),G=()=>!0,L=(e,r,t)=>{let o=f.exec(e);return!!o&&(o[1]?"string"==typeof r?o[1]===r:r.has(o[1]):t(o[2]))},I=e=>y.test(e)&&!v.test(e),M=()=>!1,V=e=>x.test(e),D=e=>w.test(e);Symbol.toStringTag;let T=function(e,...r){let t,i,a,p=function(d){let c;return i=(t={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,t=new Map,o=new Map,l=(l,n)=>{t.set(l,n),++r>e&&(r=0,o=t,t=new Map)};return{get(e){let r=t.get(e);return void 0!==r?r:void 0!==(r=o.get(e))?(l(e,r),r):void 0},set(e,r){t.has(e)?t.set(e,r):l(e,r)}}})((c=r.reduce((e,r)=>r(e),e())).cacheSize),parseClassName:(e=>{let{separator:r,experimentalParseClassName:t}=e,o=1===r.length,l=r[0],n=r.length,i=e=>{let t,i=[],a=0,s=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===a){if(c===l&&(o||e.slice(d,d+n)===r)){i.push(e.slice(s,d)),s=d+n;continue}if("/"===c){t=d;continue}}"["===c?a++:"]"===c&&a--}let d=0===i.length?e:e.substring(s),c=d.startsWith("!"),u=c?d.substring(1):d;return{modifiers:i,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:t&&t>s?t-s:void 0}};return t?e=>t({className:e,parseClassName:i}):i})(c),...(e=>{let r=(e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return s(Object.entries(e.classGroups),t).forEach(([e,t])=>{n(t,o,e,r)}),o})(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:e=>{let t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),o(t,r)||(e=>{if(l.test(e)){let r=l.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}})(e)},getConflictingClassGroupIds:(e,r)=>{let o=t[e]||[];return r&&i[e]?[...o,...i[e]]:o}}})(c)}).cache.get,a=t.cache.set,p=b,b(d)};function b(e){let r=i(e);if(r)return r;let o=((e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:l}=r,n=[],i=e.trim().split(c),a="";for(let e=i.length-1;e>=0;e-=1){let r=i[e],{modifiers:s,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:p}=t(r),b=!!p,f=o(b?u.substring(0,p):u);if(!f){if(!b||!(f=o(u))){a=r+(a.length>0?" "+a:a);continue}b=!1}let m=d(s).join(":"),g=c?m+"!":m,h=g+f;if(n.includes(h))continue;n.push(h);let y=l(f,b);for(let e=0;e<y.length;++e){let r=y[e];n.push(g+r)}a=r+(a.length>0?" "+a:a)}return a})(e,t);return a(e,o),o}return function(){return p(u.apply(null,arguments))}}(()=>{let e=b("colors"),r=b("spacing"),t=b("blur"),o=b("brightness"),l=b("borderColor"),n=b("borderRadius"),i=b("borderSpacing"),a=b("borderWidth"),s=b("contrast"),d=b("grayscale"),c=b("hueRotate"),u=b("invert"),p=b("gap"),f=b("gradientColorStops"),m=b("gradientColorStopPositions"),g=b("inset"),h=b("margin"),y=b("opacity"),v=b("padding"),x=b("saturate"),w=b("scale"),P=b("sepia"),O=b("skew"),L=b("space"),I=b("translate"),M=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",N,r],T=()=>[N,r],F=()=>["",k,z],Z=()=>["auto",j,N],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],X=()=>["","0",N],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[j,N];return{cacheSize:500,separator:":",theme:{colors:[G],spacing:[k,z],blur:["none","",$,N],brightness:J(),borderColor:[e],borderRadius:["none","","full",$,N],borderSpacing:T(),borderWidth:F(),contrast:J(),grayscale:X(),hueRotate:J(),invert:X(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[E,z],inset:D(),margin:D(),opacity:J(),padding:T(),saturate:J(),scale:J(),sepia:X(),skew:J(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[$]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...q(),N]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",C,N]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",C,N]}],"grid-cols":[{"grid-cols":[G]}],"col-start-end":[{col:["auto",{span:["full",C,N]},N]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[G]}],"row-start-end":[{row:["auto",{span:[C,N]},N]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",N,r]}],"min-w":[{"min-w":[N,r,"min","max","fit"]}],"max-w":[{"max-w":[N,r,"none","full","min","max","fit","prose",{screen:[$]},$]}],h:[{h:[N,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[N,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[N,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[N,r,"auto","min","max","fit"]}],"font-size":[{text:["base",$,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",S]}],"font-family":[{font:[G]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",N]}],"line-clamp":[{"line-clamp":["none",j,S]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,N]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",k,z]}],"underline-offset":[{"underline-offset":["auto",k,N]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),_]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",R]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},W]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:B()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[k,N]}],"outline-w":[{outline:[k,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[k,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$,A]}],"shadow-color":[{shadow:[G]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",$,N]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[u]}],saturate:[{saturate:[x]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",N]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[C,N]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[k,z,S]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})},99680:(e,r,t)=>{t.d(r,{A:()=>a});var o=t(28081),l=t(57014);let n=e=>{let r=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase());return r.charAt(0).toUpperCase()+r.slice(1)};var i=t(23344);let a=(e,r)=>{let t=(0,o.forwardRef)((t,a)=>{let{className:s,...d}=t;return(0,o.createElement)(i.default,{ref:a,iconNode:r,className:(0,l.z)("lucide-".concat(n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),s),...d})});return t.displayName=n(e),t}}}]);
|