@sinytra/wiki-previewer 0.1.118 → 0.1.119

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.
Files changed (105) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +76 -75
  3. package/.next/app-path-routes-manifest.json +3 -3
  4. package/.next/build-manifest.json +2 -2
  5. package/.next/prerender-manifest.json +23 -23
  6. package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route.js +1 -1
  7. package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route.js.nft.json +1 -1
  8. package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route_client-reference-manifest.js +1 -1
  9. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js +2 -2
  10. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js.nft.json +1 -1
  11. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page_client-reference-manifest.js +1 -1
  12. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js +2 -2
  13. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js.nft.json +1 -1
  14. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page_client-reference-manifest.js +1 -1
  15. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js +2 -2
  16. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js.nft.json +1 -1
  17. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page_client-reference-manifest.js +1 -1
  18. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js +2 -2
  19. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js.nft.json +1 -1
  20. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page_client-reference-manifest.js +1 -1
  21. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js +2 -2
  22. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js.nft.json +1 -1
  23. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/[locale]/page.js +2 -2
  25. package/.next/server/app/[locale]/page.js.nft.json +1 -1
  26. package/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  27. package/.next/server/app/_not-found/page.js +1 -1
  28. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  29. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  30. package/.next/server/app/_not-found.html +2 -2
  31. package/.next/server/app/_not-found.rsc +3 -3
  32. package/.next/server/app/opengraph-image/route_client-reference-manifest.js +1 -1
  33. package/.next/server/app/robots.txt/route.js +1 -1
  34. package/.next/server/app/robots.txt/route.js.nft.json +1 -1
  35. package/.next/server/app/robots.txt/route_client-reference-manifest.js +1 -1
  36. package/.next/server/app/sitemap.xml/route.js +1 -1
  37. package/.next/server/app/sitemap.xml/route_client-reference-manifest.js +1 -1
  38. package/.next/server/app-paths-manifest.json +3 -3
  39. package/.next/server/chunks/2313.js +2 -2
  40. package/.next/server/chunks/2337.js +1 -1
  41. package/.next/server/chunks/4159.js +1 -1
  42. package/.next/server/chunks/4530.js +1 -0
  43. package/.next/server/chunks/{3448.js → 4988.js} +1 -1
  44. package/.next/server/chunks/5611.js +1 -0
  45. package/.next/server/chunks/{4701.js → 7065.js} +3 -3
  46. package/.next/server/chunks/8616.js +1 -0
  47. package/.next/server/chunks/{4730.js → 9173.js} +12 -12
  48. package/.next/server/chunks/9425.js +10 -0
  49. package/.next/server/chunks/9686.js +159 -0
  50. package/.next/server/middleware-manifest.json +10 -10
  51. package/.next/server/pages/404.html +2 -2
  52. package/.next/server/pages/500.html +1 -1
  53. package/.next/server/server-reference-manifest.json +1 -1
  54. package/.next/server/src/middleware.js +2 -2
  55. package/.next/static/chunks/{103-d7c7a4640112e12b.js → 103-16bbfc93b461c964.js} +1 -1
  56. package/.next/static/chunks/2305-d9c0ebe361b73ca0.js +1 -0
  57. package/.next/static/chunks/4551-55b613d55dccf238.js +3 -0
  58. package/.next/static/chunks/595-8216ad2d62c67f74.js +1 -0
  59. package/.next/static/chunks/8413-8934ebbf72032aeb.js +1 -0
  60. package/.next/static/chunks/8616-f2548321574e7db4.js +1 -0
  61. package/.next/static/chunks/8777-5c798bf88b394495.js +2 -0
  62. package/.next/static/chunks/9585-3cde5ba088a8ed62.js +1 -0
  63. package/.next/static/chunks/app/[locale]/(main)/layout-ca292e50d803d7c9.js +1 -0
  64. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/{error-50b003170e06e080.js → error-abc8d80e856b51f7.js} +1 -1
  65. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/{docs/not-found-54c902ef06951ef7.js → content/[id]/not-found-80873a4f07e4c1fa.js} +1 -1
  66. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/{page-40893f566745ce93.js → page-e1514b9458cdf8ba.js} +1 -1
  67. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/{error-baa64fa4c4223c5a.js → error-749a31cba53c0392.js} +1 -1
  68. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/{[id]/not-found-54c902ef06951ef7.js → not-found-80873a4f07e4c1fa.js} +1 -1
  69. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/page-e67fce9a42cdcb17.js +1 -0
  70. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/{error-25d990e8b9070b85.js → error-3bedf7ae95a288ad.js} +1 -1
  71. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/{content/not-found-54c902ef06951ef7.js → docs/[...path]/not-found-80873a4f07e4c1fa.js} +1 -1
  72. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page-ce23f165e662fada.js +1 -0
  73. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/{error-b2e339478ef5fc3c.js → error-53aef187c3e0b916.js} +1 -1
  74. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/{[...path]/not-found-54c902ef06951ef7.js → not-found-80873a4f07e4c1fa.js} +1 -1
  75. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-1fec319e5fb8adda.js +1 -0
  76. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/{layout-152c0425b4ab707b.js → layout-c12bb85e1f228d2c.js} +1 -1
  77. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/page-77a3009649d52713.js +1 -0
  78. package/.next/static/chunks/app/[locale]/layout-a0ae0615250dfb10.js +1 -0
  79. package/.next/static/chunks/app/[locale]/not-found-ef8f0d997a8d1958.js +1 -0
  80. package/.next/static/chunks/app/[locale]/page-d818d5faaaa65110.js +1 -0
  81. package/.next/static/chunks/app/{layout-9da0fb84dadf33c7.js → layout-3165efcf5806a69a.js} +2 -2
  82. package/.next/static/chunks/dd4c4bf0-96a26eda28cf66af.js +1 -0
  83. package/package.json +1 -1
  84. package/.next/server/chunks/1284.js +0 -1
  85. package/.next/server/chunks/4511.js +0 -10
  86. package/.next/server/chunks/8437.js +0 -1
  87. package/.next/server/chunks/9365.js +0 -159
  88. package/.next/server/chunks/9779.js +0 -1
  89. package/.next/static/chunks/1512-bcbe9de70505c4b4.js +0 -1
  90. package/.next/static/chunks/5628-54af8d37763d0fc2.js +0 -2
  91. package/.next/static/chunks/595-4a4c5479774527be.js +0 -1
  92. package/.next/static/chunks/6469-f21a97a4be4323fc.js +0 -1
  93. package/.next/static/chunks/739-777eeb0518955b20.js +0 -3
  94. package/.next/static/chunks/8616-1a23f1b3261e5c9a.js +0 -1
  95. package/.next/static/chunks/9585-6909aaa9ada480a7.js +0 -1
  96. package/.next/static/chunks/app/[locale]/(main)/layout-4ff9fce162573e20.js +0 -1
  97. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/page-d0b9e457c198e9cc.js +0 -1
  98. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page-8ac2f29afa97de42.js +0 -1
  99. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-5d42f3628daf8bcb.js +0 -1
  100. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/page-a1cf6a44ed1b9fdb.js +0 -1
  101. package/.next/static/chunks/app/[locale]/layout-cce757c03aa00c26.js +0 -1
  102. package/.next/static/chunks/app/[locale]/not-found-866d4969981ea653.js +0 -1
  103. package/.next/static/chunks/app/[locale]/page-432ede7486f346c7.js +0 -1
  104. /package/.next/static/{N9jNaqATWIBLZ67he57OV → E3-bpyILB3XxG7SeC55HZ}/_buildManifest.js +0 -0
  105. /package/.next/static/{N9jNaqATWIBLZ67he57OV → E3-bpyILB3XxG7SeC55HZ}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6469],{37588:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(41574),l=n(28081),o=n.t(l,2),a=n(40739),i=o["use".trim()],u=n(32936),c=n(55605),s=n(16353),d=n(7893),f=n(62491);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}}},51389:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(59717).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"}]])},56945:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(59717).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"}]])},83304:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(59717).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},85151:(e,t,n)=>{n.d(t,{A:()=>r});function r(e){return e}},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,3 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[739],{40739:(e,t,r)=>{r.d(t,{Dk:()=>es,kc:()=>eu,Ym:()=>el,c3:()=>ea});var i=r(28081);function s(e,t){let r=t&&t.cache?t.cache:l,i=t&&t.serializer?t.serializer:h;return(t&&t.strategy?t.strategy:function(e,t){var r,i;let s=1===e.length?n:o;return r=t.cache.create(),i=t.serializer,s.bind(this,e,r,i)})(e,{cache:r,serializer:i})}function n(e,t,r,i){let s=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),n=t.get(s);return void 0===n&&(n=e.call(this,i),t.set(s,n)),n}function o(e,t,r){let i=Array.prototype.slice.call(arguments,3),s=r(i),n=t.get(s);return void 0===n&&(n=e.apply(this,i),t.set(s,n)),n}let h=function(){return JSON.stringify(arguments)};var a=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};let l={create:function(){return new a}},u={variadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,o.bind(this,e,r,i)},monadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,n.bind(this,e,r,i)}};class c extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),this.code=e,t&&(this.originalMessage=t)}}var m=function(e){return e.MISSING_MESSAGE="MISSING_MESSAGE",e.MISSING_FORMAT="MISSING_FORMAT",e.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",e.INSUFFICIENT_PATH="INSUFFICIENT_PATH",e.INVALID_MESSAGE="INVALID_MESSAGE",e.INVALID_KEY="INVALID_KEY",e.FORMATTING_ERROR="FORMATTING_ERROR",e}(m||{});function f(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function p(e,t){return s(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:u.variadic})}function g(e,t){return p((...t)=>new e(...t),t)}function E(e){return{getDateTimeFormat:g(Intl.DateTimeFormat,e.dateTime),getNumberFormat:g(Intl.NumberFormat,e.number),getPluralRules:g(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:g(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:g(Intl.ListFormat,e.list),getDisplayNames:g(Intl.DisplayNames,e.displayNames)}}let b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,H=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,y=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,B=/^(@+)?(\+|#+)?[rs]?$/g,d=/(\*)(0+)|(#+)(0+)|(0+)/g,T=/^(0+)$/;function A(e){let t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(B,function(e,r,i){return"string"!=typeof i?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===i?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof i?i.length:0)),""}),t}function S(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function I(e){let t=S(e);return t||{}}let N=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",e}({});function _(e){return!!(e&&"object"==typeof e&&0===e.type)}function P(e){return!!(e&&"object"==typeof e&&1===e.type)}let M=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,L={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},R=RegExp(`^${M.source}*`),v=RegExp(`${M.source}*$`);function O(e,t){return{start:e,end:t}}let w=!!Object.fromEntries,C=!!String.prototype.trimStart,F=!!String.prototype.trimEnd,D=w?Object.fromEntries:function(e){let t={};for(let[r,i]of e)t[r]=i;return t},G=C?function(e){return e.trimStart()}:function(e){return e.replace(R,"")},U=F?function(e){return e.trimEnd()}:function(e){return e.replace(v,"")},k=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");var V=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");if(this.message.length>0){let e=this.message.charCodeAt(0);if(35!==e&&39!==e&&60!==e&&123!==e&&125!==e){let e=function(e){if(0===e.length)return null;let t=1,r=1;for(let i=0;i<e.length;){let s=e.charCodeAt(i);switch(s){case 35:case 39:case 60:case 123:case 125:return null}if(10===s)t++,r=1,i++;else if(r++,s>=55296&&s<=56319&&i+1<e.length){let t=e.charCodeAt(i+1);i+=t>=56320&&t<=57343?2:1}else i++}return{offset:e.length,line:t,column:r}}(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:O(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let i=[];for(;!this.isEOF();){let s=this.char();if(123===s){let t=this.parseArgument(e,r);if(t.err)return t;i.push(t.val)}else if(125===s&&e>0)break;else if(35===s&&("plural"===t||"selectordinal"===t)){let e=this.clonePosition();this.bump(),i.push({type:7,location:O(e,this.clonePosition())})}else if(60!==s||this.ignoreTag||47!==this.peek())if(60===s&&!this.ignoreTag&&K(this.peek()||0)){let r=this.parseTag(e,t);if(r.err)return r;i.push(r.val)}else{let r=this.parseLiteral(e,t);if(r.err)return r;i.push(r.val)}else if(!r)return this.error(26,O(this.clonePosition(),this.clonePosition()));else break}return{val:i,err:null}}parseTag(e,t){let r=this.clonePosition();this.bump();let i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${i}/>`,location:O(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(23,O(r,this.clonePosition()));{let s=this.parseMessage(e+1,t,!0);if(s.err)return s;let n=s.val,o=this.clonePosition();if(!this.bumpIf("</"))return this.error(27,O(r,this.clonePosition()));{if(this.isEOF()||!K(this.char()))return this.error(23,O(o,this.clonePosition()));let e=this.clonePosition();return i!==this.parseTagName()?this.error(26,O(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:8,value:i,children:n,location:O(r,this.clonePosition())},err:null}:this.error(23,O(o,this.clonePosition()))}}}parseTagName(){var e;let t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())}parseLiteral(e,t){let r=this.clonePosition(),i="";for(;;){let r=this.tryParseQuote(t);if(r){i+=r;continue}let s=this.tryParseUnquoted(e,t);if(s){i+=s;continue}let n=this.tryParseLeftAngleBracket();if(n){i+=n;continue}break}return{val:{type:0,value:i,location:O(r,this.clonePosition())},err:null}}tryParseLeftAngleBracket(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(K(e=this.peek()||0)||47===e)?null:(this.bump(),"<")}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(39===e)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){let r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,O(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(2,O(r,this.clonePosition()));let i=this.parseIdentifierIfPossible().value;if(!i)return this.error(3,O(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,O(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:i,location:O(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,O(r,this.clonePosition()));return this.parseArgumentOptions(e,t,i,r);default:return this.error(3,O(r,this.clonePosition()))}}parseIdentifierIfPossible(){var e;let t=this.clonePosition(),r=this.offset(),i=(e=this.message,k.lastIndex=r,k.exec(e)[1]??""),s=r+i.length;return this.bumpTo(s),{value:i,location:O(t,this.clonePosition())}}parseArgumentOptions(e,t,r,i){let s=this.clonePosition(),n=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(n){case"":return this.error(4,O(s,o));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();let t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;let i=U(r.val);if(0===i.length)return this.error(6,O(this.clonePosition(),this.clonePosition()));e={style:i,styleLocation:O(t,this.clonePosition())}}let t=this.tryParseArgumentClose(i);if(t.err)return t;let s=O(i,this.clonePosition());if(e&&e.style.startsWith("::")){let t=G(e.style.slice(2));if("number"===n){let i=this.parseNumberSkeletonFromString(t,e.styleLocation);if(i.err)return i;return{val:{type:2,value:r,location:s,style:i.val},err:null}}{if(0===t.length)return this.error(10,s);let i=t;return this.locale&&(i=function(e,t){let r="";for(let i=0;i<e.length;i++){let s=e.charAt(i);if("j"===s){let n=0;for(;i+1<e.length&&e.charAt(i+1)===s;)n++,i++;let o=1+(1&n),h=n<2?1:3+(n>>1),a=function(e){let t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let i=e.language;return"root"!==i&&(t=e.maximize().region),(L[t||""]||L[i||""]||L[`${i}-001`]||L["001"])[0]}(t);for(("H"==a||"k"==a)&&(h=0);h-- >0;)r+="a";for(;o-- >0;)r=a+r}else"J"===s?r+="H":r+=s}return r}(t,this.locale)),{val:{type:"date"===n?3:4,value:r,location:s,style:{type:1,pattern:i,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?function(e){let t={};return e.replace(b,e=>{let r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-3];break;case"c":if(r<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-3];break;case"a":t.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}(i):{}}},err:null}}}return{val:{type:"number"===n?2:"date"===n?3:4,value:r,location:s,style:e?.style??null},err:null}}case"plural":case"selectordinal":case"select":{let s=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,O(s,{...s}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),h=0;if("select"!==n&&"offset"===o.value){if(!this.bumpIf(":"))return this.error(13,O(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),h=e.val}let a=this.tryParsePluralOrSelectOptions(e,n,t,o);if(a.err)return a;let l=this.tryParseArgumentClose(i);if(l.err)return l;let u=O(i,this.clonePosition());if("select"===n)return{val:{type:5,value:r,options:D(a.val),location:u},err:null};return{val:{type:6,value:r,options:D(a.val),offset:h,pluralType:"plural"===n?"cardinal":"ordinal",location:u},err:null}}default:return this.error(5,O(s,o))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(1,O(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(11,O(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");let t=e.split(H).filter(e=>e.length>0),r=[];for(let e of t){let t=e.split("/");if(0===t.length)throw Error("Invalid number skeleton");let[i,...s]=t;for(let e of s)if(0===e.length)throw Error("Invalid number skeleton");r.push({stem:i,options:s})}return r}(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){let t={};for(let r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...r.options.reduce((e,t)=>({...e,...I(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((e,t)=>({...e,...I(t)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(d,function(e,r,i,s,n,o){if(r)t.minimumIntegerDigits=i.length;else if(s&&n)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(T.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(y.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(y,function(e,r,i,s,n,o){return"*"===i?t.minimumFractionDigits=r.length:s&&"#"===s[0]?t.maximumFractionDigits=s.length:n&&o?(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});let e=r.options[0];"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...A(e)});continue}if(B.test(r.stem)){t={...t,...A(r.stem)};continue}let e=S(r.stem);e&&(t={...t,...e});let i=function(e){let t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){let r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!T.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);i&&(t={...t,...i})}return t}(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,i){let s=!1,n=[],o=new Set,{value:h,location:a}=i;for(;;){if(0===h.length){let e=this.clonePosition();if("select"!==t&&this.bumpIf("=")){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;a=O(e,this.clonePosition()),h=this.message.slice(e.offset,this.offset())}else break}if(o.has(h))return this.error("select"===t?21:20,a);"other"===h&&(s=!0),this.bumpSpace();let i=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?17:18,O(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,r);if(l.err)return l;let u=this.tryParseArgumentClose(i);if(u.err)return u;n.push([h,{value:l.val,location:O(i,this.clonePosition())}]),o.add(h),this.bumpSpace(),{value:h,location:a}=this.parseIdentifierIfPossible()}return 0===n.length?this.error("select"===t?15:16,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(22,O(this.clonePosition(),this.clonePosition())):{val:n,err:null}}tryParseDecimalInteger(e,t){let r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let s=!1,n=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)s=!0,n=10*n+(e-48),this.bump();else break}let o=O(i,this.clonePosition());return s?Number.isSafeInteger(n*=r)?{val:n,err:null}:this.error(t,o):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");let t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var e;!this.isEOF()&&((e=this.char())>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e);)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function K(e){return e>=97&&e<=122||e>=65&&e<=90}function x(e,t={}){let r=new V(e,t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t}).parse();if(r.err){let e=SyntaxError(N[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return t?.captureLocation||function e(t){t.forEach(t=>{if(delete t.location,5===t.type||6===t.type)for(let r in t.options)delete t.options[r].location,e(t.options[r].value);else 2===t.type&&_(t.style)||(3===t.type||4===t.type)&&P(t.style)?delete t.style.location:8===t.type&&e(t.children)})}(r.val),r.val}var Z=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},X=class extends Z{constructor(e,t,r,i){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,"INVALID_VALUE",i)}},Y=class extends Z{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",r)}},j=class extends Z{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,"MISSING_VALUE",t)}};function $(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}var W=class e{constructor(t,r=e.defaultLocale,i,n){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(1===t.length)return t[0].value;let r=t.reduce((e,t)=>(e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e),[]);return r.length<=1?r[0]||"":r},this.formatToParts=e=>(function e(t,r,i,s,n,o,h){if(1===t.length&&0===t[0].type)return[{type:0,value:t[0].value}];let a=[];for(let l of t){if(0===l.type){a.push({type:0,value:l.value});continue}if(7===l.type){"number"==typeof o&&a.push({type:0,value:i.getNumberFormat(r).format(o)});continue}let{value:t}=l;if(!(n&&t in n))throw new j(t,h);let u=n[t];if(1===l.type){u&&"string"!=typeof u&&"number"!=typeof u&&"bigint"!=typeof u||(u="string"==typeof u||"number"==typeof u||"bigint"==typeof u?String(u):""),a.push({type:+("string"!=typeof u),value:u});continue}if(3===l.type){let e="string"==typeof l.style?s.date[l.style]:P(l.style)?l.style.parsedOptions:void 0;a.push({type:0,value:i.getDateTimeFormat(r,e).format(u)});continue}if(4===l.type){let e="string"==typeof l.style?s.time[l.style]:P(l.style)?l.style.parsedOptions:s.time.medium;a.push({type:0,value:i.getDateTimeFormat(r,e).format(u)});continue}if(2===l.type){let e="string"==typeof l.style?s.number[l.style]:_(l.style)?l.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if("bigint"==typeof u){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);u*=BigInt(t)}else u*=t}a.push({type:0,value:i.getNumberFormat(r,e).format(u)});continue}if(8===l.type){let{children:t,value:u}=l,c=n[u];if("function"!=typeof c)throw new Y(u,"function",h);let m=c(e(t,r,i,s,n,o).map(e=>e.value));Array.isArray(m)||(m=[m]),a.push(...m.map(e=>({type:+("string"!=typeof e),value:e})))}if(5===l.type){let t=u,o=(Object.prototype.hasOwnProperty.call(l.options,t)?l.options[t]:void 0)||l.options.other;if(!o)throw new X(l.value,u,Object.keys(l.options),h);a.push(...e(o.value,r,i,s,n));continue}if(6===l.type){let t=`=${u}`,o=Object.prototype.hasOwnProperty.call(l.options,t)?l.options[t]:void 0;if(!o){if(!Intl.PluralRules)throw new Z(`Intl.PluralRules is not available in this environment.
2
- Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,"MISSING_INTL_API",h);let e="bigint"==typeof u?Number(u):u,t=i.getPluralRules(r,{type:l.pluralType}).select(e-(l.offset||0));o=(Object.prototype.hasOwnProperty.call(l.options,t)?l.options[t]:void 0)||l.options.other}if(!o)throw new X(l.value,u,Object.keys(l.options),h);let c="bigint"==typeof u?Number(u):u;a.push(...e(o.value,r,i,s,n,c-(l.offset||0)));continue}}return a.length<2?a:a.reduce((e,t)=>{let r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e},[])})(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...r}=n||{};this.ast=e.__parse(t,{...r,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((r,i)=>{var s,n;return r[i]=(s=e[i],(n=t[i])?{...s,...n,...Object.keys(s).reduce((e,t)=>(e[t]={...s[t],...n[t]},e),{})}:s),r},{...e}):e}(e.formats,i),this.formatters=n&&n.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:s((...e)=>new Intl.NumberFormat(...e),{cache:$(e.number),strategy:u.variadic}),getDateTimeFormat:s((...e)=>new Intl.DateTimeFormat(...e),{cache:$(e.dateTime),strategy:u.variadic}),getPluralRules:s((...e)=>new Intl.PluralRules(...e),{cache:$(e.pluralRules),strategy:u.variadic})}}(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(void 0===Intl.Locale)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}}static{this.__parse=x}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}};function z(...[e,t,r,s]){let n;if(Array.isArray(t))throw new c(m.INVALID_MESSAGE,void 0);if("object"==typeof t)throw new c(m.INSUFFICIENT_PATH,void 0);if("string"==typeof t){let e=r||/'[{}<#|']/.test(t)?void 0:t;if(e)return e}let{cache:o,formats:h,formatters:a,globalFormats:l,locale:u,timeZone:f}=s;a.getMessageFormat||(a.getMessageFormat=p((...e)=>new W(e[0],e[1],e[2],{formatters:a,...e[3]}),o.message));try{n=a.getMessageFormat(t,u,function(e,t,r){let i=W.formats.date,s=W.formats.time,n={...e?.dateTime,...t?.dateTime},o={date:{...i,...n},time:{...s,...n},number:{...e?.number,...t?.number}};return r&&["date","time"].forEach(e=>{let t=o[e];for(let[e,i]of Object.entries(t))t[e]={timeZone:r,...i}}),o}(l,h,f),{formatters:{...a,getDateTimeFormat:(e,t)=>a.getDateTimeFormat(e,{...t,timeZone:t?.timeZone??f})}})}catch(e){throw new c(m.INVALID_MESSAGE,void 0)}let g=n.format(r);return(0,i.isValidElement)(g)||Array.isArray(g)||"string"==typeof g?g:String(g)}function q(...e){return e.filter(Boolean).join(".")}function J(e){return q(e.namespace,e.key)}function Q(e){console.error(e)}function ee(e,t,r,i){let s=q(i,r);if(!t)throw Error(s);let n=t;return r.split(".").forEach(t=>{let r=n[t];if(null==t||null==r)throw Error(s+` (${e})`);n=r}),n}z.raw=!0;let et={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2628e3,months:2628e3,quarter:7884e3,quarters:7884e3,year:31536e3,years:31536e3};var er=r(7893);let ei=(0,i.createContext)(void 0);function es({children:e,formats:t,getMessageFallback:r,locale:s,messages:n,now:o,onError:h,timeZone:a}){let l=(0,i.useContext)(ei),u=(0,i.useMemo)(()=>l?.cache||f(),[s,l?.cache]),c=(0,i.useMemo)(()=>l?.formatters||E(u),[u,l?.formatters]),m=(0,i.useMemo)(()=>({...function({formats:e,getMessageFallback:t,messages:r,onError:i,...s}){return{...s,formats:e||void 0,messages:r||void 0,onError:i||Q,getMessageFallback:t||J}}({locale:s,formats:void 0===t?l?.formats:t,getMessageFallback:r||l?.getMessageFallback,messages:void 0===n?l?.messages:n,now:o||l?.now,onError:h||l?.onError,timeZone:a||l?.timeZone}),formatters:c,cache:u}),[u,t,c,r,s,n,o,h,l,a]);return(0,er.jsx)(ei.Provider,{value:m,children:e})}function en(){let e=(0,i.useContext)(ei);if(!e)throw Error(void 0);return e}let eo=!1,eh="undefined"==typeof window;function ea(e){return function(e,t,r){let{cache:s,formats:n,formatters:o,getMessageFallback:h,locale:a,onError:l,timeZone:u}=en(),f=e["!"],p="!"===t?void 0:t.slice((r+".").length);return u||eo||!eh||(eo=!0,l(new c(m.ENVIRONMENT_FALLBACK,void 0))),(0,i.useMemo)(()=>(function(e){let t=function(e,t,r){try{if(!t)throw Error(void 0);let i=r?ee(e,t,r):t;if(!i)throw Error(r);return i}catch(e){return new c(m.MISSING_MESSAGE,e.message)}}(e.locale,e.messages,e.namespace);return function({cache:e,formats:t,formatters:r,getMessageFallback:s=J,locale:n,messagesOrError:o,namespace:h,onError:a,timeZone:l}){let u=o instanceof c;function f(e,t,r,i){let n=new c(t,r);return a(n),i??s({error:n,key:e,namespace:h})}function p(p,g,E,b){let H;if(u){if(!b)return a(o),s({error:o,key:p,namespace:h});H=b}else try{H=ee(n,o,p,h)}catch(e){if(!b)return f(p,m.MISSING_MESSAGE,e.message,b);H=b}try{let s=q(h,p);return z(s,H,g?function(e){let t={};return Object.keys(e).forEach(r=>{let s,n=0,o=e[r];s="function"==typeof o?e=>{let t=o(e);return(0,i.isValidElement)(t)?(0,i.cloneElement)(t,{key:r+n++}):t}:o,t[r]=s}),t}(g):g,{cache:e,formatters:r,globalFormats:t,formats:E,locale:n,timeZone:l})}catch(r){let e,t;return r instanceof c?(e=r.code,t=r.originalMessage):(e=m.FORMATTING_ERROR,t=r.message),f(p,e,t,b)}}function g(e,t,r,i){let s=p(e,t,r,i);return"string"!=typeof s?f(e,m.INVALID_MESSAGE,void 0):s}return g.rich=p,g.markup=(e,t,r,i)=>p(e,t,r,i),g.raw=e=>{if(u)return a(o),s({error:o,key:e,namespace:h});try{return ee(n,o,e,h)}catch(t){return f(e,m.MISSING_MESSAGE,t.message)}},g.has=e=>{if(u)return!1;try{return ee(n,o,e,h),!0}catch{return!1}},g}({...e,messagesOrError:t})})({cache:s,formatters:o,getMessageFallback:h,messages:f,namespace:p,onError:l,formats:n,locale:a,timeZone:u}),[s,o,h,f,p,l,n,a,u])}({"!":en().messages},e?`!.${e}`:"!","!")}function el(){return en().locale}function eu(){let{formats:e,formatters:t,locale:r,now:s,onError:n,timeZone:o}=en();return(0,i.useMemo)(()=>(function(e){let{_cache:t=f(),_formatters:r=E(t),formats:i,locale:s,onError:n=Q,timeZone:o}=e;function h(e){return e?.timeZone||(o?e={...e,timeZone:o}:n(new c(m.ENVIRONMENT_FALLBACK,void 0))),e}function a(e,t,r,i,s){let o;try{o=function(e,t,r){let i;if("string"==typeof t){if(!(i=e?.[t])){let e=new c(m.MISSING_FORMAT,void 0);throw n(e),e}}else i=t;return r&&(i={...i,...r}),i}(r,e,t)}catch{return s()}try{return i(o)}catch(e){return n(new c(m.FORMATTING_ERROR,e.message)),s()}}function l(e,t,n){return a(t,n,i?.dateTime,t=>(t=h(t),r.getDateTimeFormat(s,t).format(e)),()=>String(e))}function u(){return e.now?e.now:(n(new c(m.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:l,number:function(e,t,n){return a(t,n,i?.number,t=>r.getNumberFormat(s,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var i;let n,o,h={};t instanceof Date||"number"==typeof t?n=new Date(t):t&&(n=null!=t.now?new Date(t.now):u(),o=t.unit,h.style=t.style,h.numberingSystem=t.numberingSystem),n||(n=u());let a=(new Date(e).getTime()-n.getTime())/1e3;o||(o=function(e){let t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":t<604800?"day":t<2628e3?"week":t<31536e3?"month":"year"}(a)),h.numeric="second"===o?"auto":"always";let l=(i=o,Math.round(a/et[i]));return r.getRelativeTimeFormat(s,h).format(l,o)}catch(t){return n(new c(m.FORMATTING_ERROR,t.message)),String(e)}},list:function(e,t,n){let o=[],h=new Map,l=0;for(let t of e){let e;"object"==typeof t?(e=String(l),h.set(e,t)):e=String(t),o.push(e),l++}return a(t,n,i?.list,e=>{let t=r.getListFormat(s,e).formatToParts(o).map(e=>"literal"===e.type?e.value:h.get(e.value)||e.value);return h.size>0?t:t.join("")},()=>String(e))},dateTimeRange:function(e,t,n,o){return a(n,o,i?.dateTime,i=>(i=h(i),r.getDateTimeFormat(s,i).formatRange(e,t)),()=>[l(e),l(t)].join(" – "))},displayName:function(e,t,n){return a(t,n,i?.displayName,t=>r.getDisplayNames(s,t).of(e),()=>e)}}})({formats:e,locale:r,now:s,onError:n,timeZone:o,_formatters:t}),[e,t,s,r,n,o])}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8616],{3192:(e,n,t)=>{t.d(n,{Ay:()=>s,F3:()=>a,nQ:()=>l});var r=t(47034);let a="en_us",l="en-US",i=[{name:"English",code:"en_us",prefix:"en",file:"en_US",internal:"en-US",icon:r.US},{name:"Čeština",code:"cs_cz",prefix:"cs",file:"cs_CZ",internal:"cs-CZ",icon:r.CZ},{name:"Deutsch",code:"de_de",prefix:"de",file:"de_DE",internal:"de-DE",icon:r.DE},{name:"Espa\xf1ol",code:"es_es",prefix:"es",file:"es_ES",internal:"es-ES",icon:r.ES,crowdin:"es-ES"},{name:"Fran\xe7ais",code:"fr_fr",prefix:"fr",file:"fr_FR",internal:"fr-FR",icon:r.FR},{name:"Magyar",code:"hu_hu",prefix:"hu",file:"hu_HU",internal:"hu-HU",icon:r.HU},{name:"Italiano",code:"it_it",prefix:"it",file:"it_IT",internal:"it-IT",icon:r.IT},{name:"日本語",code:"ja_jp",prefix:"ja",file:"ja_JP",internal:"ja-JP",icon:r.JP},{name:"한국어",code:"ko_kr",prefix:"ko",file:"ko_KR",internal:"ko-KR",icon:r.KR},{name:"Bahasa Melayu",code:"ms_my",prefix:"ms",file:"ms_MY",internal:"ms-MY",icon:r.MY},{name:"بهاس ملايو",code:"zml_arab",prefix:"ms_Ar",file:"ms_Arab",internal:"ms-Arab",icon:r.MY,crowdin:"ms-Arab",rtl:!0},{name:"Polski",code:"pl_pl",prefix:"pl",file:"pl_PL",internal:"pl-PL",icon:r.PL},{name:"Русский",code:"ru_ru",prefix:"ru",file:"ru_RU",internal:"ru-RU",icon:r.RU},{name:"Svenska",code:"sv_se",prefix:"sv",file:"sv_SE",internal:"sv-SE",icon:r.SE,crowdin:"sv-SE"},{name:"T\xfcrk\xe7e",code:"tr_tr",prefix:"tr",file:"tr_TR",internal:"tr-TR",icon:r.TR},{name:"Українська",code:"uk_ua",prefix:"uk",file:"uk_UA",internal:"uk-UA",icon:r.UA},{name:"简体中文",code:"zh_cn",prefix:"zh_cn",file:"zh_CN",internal:"zh-CN",icon:r.CN,crowdin:"zh-CN"},{name:"繁體中文",code:"zh_tw",prefix:"zh_tw",file:"zh_TW",internal:"zh-TW",icon:r.TW,crowdin:"zh-TW"}];function o(e){return i.find(n=>n.prefix===e)}let s={getAvailableLocales:function(){return i},getLanguagePaths:function(){return i.map(e=>e.prefix)},getInternalCodes:function(){return i.map(e=>e.internal)},getPathPrefixes:function(){return i.reduce((e,n)=>({...e,[n.internal]:"/"+n.prefix}),{})},getForUrlParam:o,getForInternalCode:function(e){return i.find(n=>n.internal===e)},getCrowdinLanguageId:function(e){let n=o(e);return(null==n?void 0:n.crowdin)||(null==n?void 0:n.prefix)},isRTL:function(e){var n;return(null==(n=o(e))?void 0:n.rtl)||!1},actualLocale:function(e){var n;if(!e||e===a)return null;let t=o(e);return null!=(n=null==t?void 0:t.file.toLowerCase())?n:null},resolveParam:function(e){return o(e).code},getUrlPrefixForCode:function(e){var n;return null==(n=i.find(n=>n.code===e))?void 0:n.prefix}}},21559:(e,n,t)=>{t.d(n,{default:()=>o});var r=t(7893),a=t(95745),l=t(28081),i=t(45585);let o=(0,l.forwardRef)(function(e,n){let{title:t,className:o,innerClassName:s,tagName:c,children:d,type:u,solid:f}=e,{open:m}=(0,l.useContext)(i.p);return(0,r.jsx)("aside",{"data-open":m==u,className:(0,a.cn)(o,"fixed z-30 h-[88vh] w-full overflow-hidden border-tertiary bg-primary transition-all duration-300 ease-in-out sm:h-[calc(100vh_-_9.5rem)] lg:top-[6rem]! lg:transition-none",f?"lg:static":"lg:sticky","left"==u&&"border-r data-[open=false]:-translate-x-full data-[open=false]:border-0 lg:border-r-0 lg:data-[open=false]:-translate-x-0","right"==u&&"border-l data-[open=false]:translate-x-full data-[open=false]:border-0 lg:border-l-0 lg:data-[open=false]:translate-x-0"),children:(0,r.jsxs)(c||"div",{ref:n,className:(0,a.cn)("scrollbar-thumb-secondary scrollbar-track-secondary/20 scrollbar-thin h-full space-y-2 overflow-y-auto p-4",s),children:[(0,r.jsx)("div",{className:"mb-4 flex items-center justify-between",children:(0,r.jsx)("h3",{className:"text-sm font-semibold text-secondary",children:t})}),d]})})})},24989:(e,n,t)=>{t.d(n,{default:()=>c});var r=t(7893),a=t(32482),l=t(49777),i=t(27167),o=t(82601),s=t(35865);function c(){let[e,n]=(0,a.ZA)("tab"),t=(0,s.c)("DocsEntryTabs"),c=async e=>{await n(e),window.scrollTo(0,0)};return(0,r.jsx)("div",{className:"flex h-full flex-col items-center justify-center",children:"history"===e?(0,r.jsx)(o.$,{title:t("home"),variant:"ghost",size:"icon",className:"size-8",onClick:()=>c("home"),children:(0,r.jsx)(l.A,{className:"size-4"})}):(0,r.jsx)(o.$,{title:t("history"),variant:"ghost",size:"icon",className:"size-8",onClick:()=>c("history"),children:(0,r.jsx)(i.A,{className:"size-4"})})})}},34882:(e,n,t)=>{t.d(n,{XO:()=>o,a8:()=>c});var r=t(85151),a=t(37588),l=t(3192);let i=(0,r.A)({locales:l.Ay.getInternalCodes(),defaultLocale:l.nQ,localePrefix:{mode:"always",prefixes:l.Ay.getPathPrefixes()}}),{Link:o,redirect:s,usePathname:c,useRouter:d}=(0,a.A)(i)},37588:(e,n,t)=>{t.d(n,{A:()=>m});var r=t(41574),a=t(28081),l=t.t(a,2),i=t(40739),o=l["use".trim()],s=t(32936),c=t(55605),d=t(16353),u=t(7893),f=t(62491);function m(e){let{Link:n,config:t,getPathname:l,...m}=function(e,n){var t,l,i;let f={...t=n||{},localePrefix:"object"==typeof(i=t.localePrefix)?i:{mode:i||"always"},localeCookie:!!((l=t.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof l&&l},localeDetection:t.localeDetection??!0,alternateLinks:t.alternateLinks??!0},m=f.pathnames,h=(0,a.forwardRef)(function({href:n,locale:t,...r},a){let l,i;"object"==typeof n?(l=n.pathname,i=n.params):l=n;let d=(0,s._x)(n),h=e(),x=(0,s.yL)(h)?o(h):h,v=d?p({locale:t||x,href:null==m?l:{pathname:l,params:i},forcePrefix:null!=t||void 0}):l;return(0,u.jsx)(c.default,{ref:a,href:"object"==typeof n?{...n,pathname:v}:v,locale:t,localeCookie:f.localeCookie,...r})});function p(e){let n,{forcePrefix:t,href:r,locale:a}=e;return null==m?"object"==typeof r?(n=r.pathname,r.query&&(n+=(0,d.Zn)(r.query))):n=r:n=(0,d.FP)({locale:a,...(0,d.TK)(r),pathnames:f.pathnames}),(0,d.x3)(n,a,f,t)}function x(e){return function(n,...t){return e(p(n),...t)}}return{config:f,Link:h,redirect:x(r.redirect),permanentRedirect:x(r.permanentRedirect),getPathname:p}}(i.Ym,e);return{...m,Link:n,usePathname:function(){let e=function(e){let n=(0,r.usePathname)(),t=(0,i.Ym)();return(0,a.useMemo)(()=>{if(!n)return n;let r=n,a=(0,s.XP)(t,e.localePrefix);if((0,s.wO)(a,n))r=(0,s.MY)(n,a);else if("never"!==e.localePrefix.mode&&e.localePrefix.prefixes){let e=(0,s.bL)(t);(0,s.wO)(e,n)&&(r=(0,s.MY)(n,e))}return r},[e.localePrefix,t,n])}(t),n=(0,i.Ym)();return(0,a.useMemo)(()=>e&&t.pathnames?(0,d.aM)(n,e,t.pathnames):e,[n,e])},useRouter:function(){let e=(0,r.useRouter)(),n=(0,i.Ym)(),o=(0,r.usePathname)();return(0,a.useMemo)(()=>{function r(e){return function(r,a){let{locale:i,...s}=a||{},c=[l({href:r,locale:i||n,forcePrefix:null!=i||void 0})];Object.keys(s).length>0&&c.push(s),(0,f.A)(t.localeCookie,o,n,i),e(...c)}}return{...e,push:r(e.push),replace:r(e.replace),prefetch:r(e.prefetch)}},[n,o,e])},getPathname:l}}},45585:(e,n,t)=>{t.d(n,{default:()=>o,p:()=>i});var r=t(7893),a=t(28081),l=t(34882);let i=(0,a.createContext)(null);function o(e){let{children:n}=e,t=(0,l.a8)(),[o,s]=(0,a.useState)("none");return(0,a.useEffect)(()=>{"none"===o?window.document.body.classList.remove("no-scroll"):window.document.body.classList.add("no-scroll")},[o]),(0,a.useEffect)(()=>{s("none")},[t]),(0,r.jsx)(i.Provider,{value:{open:o,setOpen:s},children:n})}},76365:(e,n,t)=>{t.d(n,{A:()=>d});var r=t(7893),a=t(28081),l=t(21559),i=t(95745),o=t(35865),s=t(96090);function c(e){let{node:n,activeId:t,collapsed:a,setCollapsed:l,first:o}=e,{heading:d,children:u}=n,f=!a[d.id],m=t===d.id||!f&&function e(n,t){return n.children.some(n=>n.heading.id===t||e(n,t))}(n,t),h=(0,r.jsx)("a",{href:"#".concat(d.id),className:(0,i.cn)("block py-1 text-secondary transition-colors hover:text-primary",m&&"text-primary",o&&"pt-0!"),onClick:e=>{var n;e.preventDefault(),null==(n=document.getElementById(d.id))||n.scrollIntoView({behavior:"smooth"})},children:d.value});return 0===u.length?(0,r.jsxs)("li",{className:"flex items-start gap-1",children:[(0,r.jsx)("span",{className:"size-4 shrink-0"}),h]}):(0,r.jsx)("li",{children:(0,r.jsxs)("details",{className:"group",open:f,onToggle:e=>l(d.id,!e.currentTarget.open),children:[(0,r.jsxs)("summary",{className:"flex list-none items-start gap-1 [&::-webkit-details-marker]:hidden",onClick:e=>e.preventDefault(),children:[(0,r.jsx)("button",{type:"button","aria-expanded":f,"aria-label":d.value,className:(0,i.cn)("shrink-0 cursor-pointer py-1 text-secondary hover:text-primary",o&&"pt-0!"),onClick:()=>l(d.id,f),children:(0,r.jsx)(s.default,{className:"size-4 group-open:rotate-180"})}),h]}),(0,r.jsx)("ul",{className:"space-y-1 pl-3",children:u.map(e=>(0,r.jsx)(c,{node:e,activeId:t,collapsed:a,setCollapsed:l},e.heading.id))})]})})}function d(e){let{headings:n,type:t,className:s,solid:d}=e,u=(0,o.c)("DocsNonContentRightSidebar"),[f,m]=(0,a.useState)(""),[h,p]=(0,a.useState)({}),[x,v]=(0,a.useState)(!1),[g,b]=(0,a.useState)(!1),y=(0,a.useRef)(null),_=(0,a.useMemo)(()=>n.filter(e=>e.depth<4),[n]),k=(0,a.useMemo)(()=>(function(e){let n=[],t=[];for(let r of e){let e={heading:r,children:[]};for(;t.length>0&&t[t.length-1].heading.depth>=r.depth;)t.pop();let a=t[t.length-1];(a?a.children:n).push(e),t.push(e)}return n})(_),[_]),w=(e,n)=>p(t=>t[e]===n?t:{...t,[e]:n});return(0,a.useEffect)(()=>{let e=()=>{let e=_.map(e=>document.getElementById(e.id)).filter(Boolean).find(e=>{if(e){let n=e.getBoundingClientRect();return n.top>=0&&n.top<=window.innerHeight/2}return!1});e&&m(e.id)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[_]),(0,a.useEffect)(()=>{let e=()=>{if(y.current){let{scrollTop:e,scrollHeight:n,clientHeight:t}=y.current;v(e>0),b(e+t<n)}},n=y.current;return n&&(n.addEventListener("scroll",e),window.addEventListener("resize",e),e()),()=>{n&&n.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[_,h]),(0,r.jsx)(l.default,{type:t,title:u("title"),className:(0,i.cn)("shrink-0",s),tagName:"nav",solid:d,children:(0,r.jsxs)("div",{className:"relative",children:[x&&(0,r.jsx)("div",{className:"from-background pointer-events-none absolute top-0 right-0 left-0 h-12 bg-linear-to-b to-transparent"}),(0,r.jsx)("div",{ref:y,className:"scrollbar-thin max-h-[80vh] scrollbar-thumb-gray-300 scrollbar-track-transparent overflow-y-auto pr-4",children:(0,r.jsx)("ul",{className:"space-y-1 text-sm",children:k.map((e,n)=>(0,r.jsx)(c,{node:e,activeId:f,collapsed:h,setCollapsed:w,first:0===n},e.heading.id))})}),g&&(0,r.jsx)("div",{className:"from-background pointer-events-none absolute right-0 bottom-0 left-0 h-12 bg-linear-to-t to-transparent"})]})})}},85151:(e,n,t)=>{t.d(n,{A:()=>r});function r(e){return e}},93656:(e,n,t)=>{t.d(n,{default:()=>a});var r=t(41574);function a(e){let{main:n,history:t}=e;return"history"==(0,r.useSearchParams)().get("tab")&&t?t:n}}}]);