1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,522016,(t,e,r)=>{"use strict";t.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},useLinkStatus:function(){return b}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=t.r(190809),a=t.r(474076),u=i._(t.r(271645)),f=t.r(195057),s=t.r(8372),l=t.r(818581),c=t.r(718967),h=t.r(405550),p=t.r(388540),g=t.r(91949),y=t.r(573668),d=t.r(509396);function v(e){var r;let n,o,i,[v,b]=(0,u.useOptimistic)(g.IDLE_LINK_STATUS),w=(0,u.useRef)(null),{href:E,as:A,children:S,prefetch:B=null,passHref:x,replace:C,shallow:P,scroll:T,onClick:_,onMouseEnter:R,onTouchStart:L,legacyBehavior:O=!1,onNavigate:U,transitionTypes:I,ref:j,unstable_dynamicOnHover:k,...N}=e;n=S,O&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let M=u.default.useContext(s.AppRouterContext),$=!1!==B,D=!1===B?"none":!0===B?"full":"auto",F="none"!==D?"auto"===D?d.FetchStrategy.PPR:d.FetchStrategy.Full:d.FetchStrategy.PPR,z="string"==typeof(r=A||E)?r:(0,f.formatUrl)(r);if(O){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=u.default.Children.only(n)}let K=O?o&&"object"==typeof o&&o.ref:j,W,V=u.default.useCallback(t=>(null!==M&&(w.current=(0,g.mountLinkInstance)(t,z,M,F,$,b,W)),()=>{w.current&&((0,g.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,g.unmountPrefetchableInstance)(t)}),[$,z,M,F,b,W]),J={ref:(0,l.useMergedRef)(V,K),onClick(e){O||"function"!=typeof _||_(e),O&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),!M||e.defaultPrevented||function(e,r,n,o,i,a,f,s="none"){if("u">typeof window){let l,{nodeName:c}=e.currentTarget;if("A"===c.toUpperCase()&&((l=e.currentTarget.getAttribute("target"))&&"_self"!==l||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,y.isLocalURL)(r)){o&&(e.preventDefault(),location.replace(r));return}if(e.preventDefault(),a){let t=!1;if(a({preventDefault:()=>{t=!0}}),t)return}let{dispatchNavigateAction:h}=t.r(699781);u.default.startTransition(()=>{h(r,o?"replace":"push",!1===i?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,f,s)})}}(e,z,w,C,T,U,I,D)},onMouseEnter(t){O||"function"!=typeof R||R(t),O&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(t),M&&$&&(0,g.onNavigationIntent)(t.currentTarget,!0===k)},onTouchStart:function(t){O||"function"!=typeof L||L(t),O&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(t),M&&$&&(0,g.onNavigationIntent)(t.currentTarget,!0===k)}};return(0,c.isAbsoluteUrl)(z)?J.href=z:O&&!x&&("a"!==o.type||"href"in o.props)||(J.href=(0,h.addBasePath)(z)),i=O?u.default.cloneElement(o,J):(0,a.jsx)("a",{...N,...J,children:n}),(0,a.jsx)(m.Provider,{value:v,children:i})}let m=(0,u.createContext)(g.IDLE_LINK_STATUS),b=()=>(0,u.useContext)(m);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},818581,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=t.r(271645);function o(t,e){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let t=r.current;t&&(r.current=null,t());let e=o.current;e&&(o.current=null,e())}else t&&(r.current=i(t,n)),e&&(o.current=i(e,n))},[t,e])}function i(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let r=t(e);return"function"==typeof r?r:()=>t(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},718967,(t,e,r)=>{"use strict";t.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return w},NormalizeError:function(){return m},PageNotFoundError:function(){return b},SP:function(){return y},ST:function(){return d},WEB_VITALS:function(){return i},execOnce:function(){return a},getDisplayName:function(){return c},getLocationOrigin:function(){return s},getURL:function(){return l},isAbsoluteUrl:function(){return f},isResSent:function(){return h},loadGetInitialProps:function(){return g},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return A}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function a(t){let e,r=!1;return(...n)=>(r||(r=!0,e=t(...n)),e)}let u=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,f=t=>{let e=t.charCodeAt(0);return!!(e>=65&&e<=90||e>=97&&e<=122)&&u.test(t)};function s(){let{protocol:t,hostname:e,port:r}=window.location;return`${t}//${e}${r?":"+r:""}`}function l(){let{href:t}=window.location,e=s();return t.substring(e.length)}function c(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function h(t){return t.finished||t.headersSent}function p(t){let e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?`?${e.slice(1).join("?")}`:"")}async function g(t,e){let r=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await g(e.Component,e.ctx)}:{};let n=await t.getInitialProps(e);if(r&&h(r))return n;if(!n)throw Object.defineProperty(Error(`"${c(t)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let y="u">typeof performance,d=y&&["mark","measure","getEntriesByName"].every(t=>"function"==typeof performance[t]);class v extends Error{}class m extends Error{}class b extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${t}`}}class w extends Error{constructor(t,e){super(),this.message=`Failed to load static file for page: ${t} ${e}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function A(t){return JSON.stringify({message:t.message,stack:t.stack})}},467034,(t,e,r)=>{var n={872:function(t,e){"use strict";e.byteLength=function(t){var e=f(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,i=f(t),a=i[0],u=i[1],s=new o((a+u)*3/4-u),l=0,c=u>0?a-4:a;for(r=0;r<c;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)],s[l++]=e>>16&255,s[l++]=e>>8&255,s[l++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,s[l++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,s[l++]=e>>8&255,s[l++]=255&e),s},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=0,u=n-o;a<u;a+=16383)i.push(function(t,e,n){for(var o,i=[],a=e;a<n;a+=3)o=(t[a]<<16&0xff0000)+(t[a+1]<<8&65280)+(255&t[a+2]),i.push(r[o>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(t,a,a+16383>u?u:a+16383));return 1===o?i.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===o&&i.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),i.join("")};for(var r=[],n=[],o="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=i.length;a<u;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function f(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},230:function(t,e,r){"use strict";var n=r(872),o=r(321),i="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,u.prototype),e}function u(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 f(t,e,r)}function f(t,e,r){if("string"==typeof t){var n=t,o=e;if(("string"!=typeof o||""===o)&&(o="utf8"),!u.isEncoding(o))throw TypeError("Unknown encoding: "+o);var i=0|p(n,o),f=a(i),s=f.write(n,o);return s!==i&&(f=f.slice(0,s)),f}if(ArrayBuffer.isView(t))return c(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);
vendor: 17,814 bytes, line 1
1if(_(t,ArrayBuffer)||t&&_(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(_(t,SharedArrayBuffer)||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),u.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 u.from(l,e,r);var g=function(t){if(u.isBuffer(t)){var e=0|h(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):c(t):"Buffer"===t.type&&Array.isArray(t.data)?c(t.data):void 0}(t);if(g)return g;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.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 s(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 s(t),a(t<0?0:0|h(t))}function c(t){for(var e=t.length<0?0:0|h(t.length),r=a(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,u.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}}(),!u.TYPED_ARRAY_SUPPORT&&"u">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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return f(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return(s(t),t<=0)?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)},u.allocUnsafe=function(t){return l(t)},u.allocUnsafeSlow=function(t){return l(t)};function h(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(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 o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return x(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return P(t).length;default:if(o)return n?-1:x(t).length;e=(""+e).toLowerCase(),o=!0}}function g(t,e,r){var o,i,a,u=!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 o="",i=e;i<r;++i)o+=R[t[i]];return o}(this,e,r);case"utf8":case"utf-8":return m(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}(this,e,r);case"base64":return o=this,i=e,a=r,0===i&&a===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,e,r);default:if(u)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),u=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,o){var i;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(o)return -1;else r=t.length-1;else if(r<0)if(!o)return -1;else r=0;if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,o);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return v(t,[e],r,n,o)}throw TypeError("val must be string, number or Buffer")}function v(t,e,r,n,o){var i,a=1,u=t.length,f=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,u/=2,f/=2,r/=2}function s(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;i<u;i++)if(s(t,i)===s(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===f)return l*a}else -1!==l&&(i-=i-l),l=-1}else for(r+f>u&&(r=u-f),i=r;i>=0;i--){for(var c=!0,h=0;h<f;h++)if(s(t,i+h)!==s(e,h)){c=!1;break}if(c)return i}return -1}u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(_(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),_(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.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,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:+(n<r)},u.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}},u.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=u.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(_(i,Uint8Array)&&(i=u.from(i)),!u.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.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)y(this,e,e+1);return this},u.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)y(this,e,e+3),y(this,e+1,e+2);return this},u.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)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},u.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?m(this,0,t):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.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+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,o){if(_(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.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===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,a=r-e,f=Math.min(i,a),s=this.slice(n,o),l=t.slice(e,r),c=0;c<f;++c)if(s[c]!==l[c]){i=s[c],a=l[c];break}return i<a?-1:+(a<i)},u.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)};function m(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,a,u,f,s=t[o],l=null,c=s>239?4:s>223?3:s>191?2:1;if(o+c<=r)switch(c){case 1:s<128&&(l=s);break;case 2:(192&(i=t[o+1]))==128&&(f=(31&s)<<6|63&i)>127&&(l=f);break;case 3:i=t[o+1],a=t[o+2],(192&i)==128&&(192&a)==128&&(f=(15&s)<<12|(63&i)<<6|63&a)>2047&&(f<55296||f>57343)&&(l=f);break;case 4:i=t[o+1],a=t[o+2],u=t[o+3],(192&i)==128&&(192&a)==128&&(192&u)==128&&(f=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&f<1114112&&(l=f)}null===l?(l=65533,c=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=c}var h=n,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var g="",y=0;y<p;)g+=String.fromCharCode.apply(String,h.slice(y,y+=4096));return g}function b(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 w(t,e,r,n,o,i){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function E(t,e,r,n,o,i){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function A(t,e,r,n,i){return e*=1,r>>>=0,i||E(t,e,r,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,r,n,23,4),r+4}function S(t,e,r,n,i){return e*=1,r>>>=0,i||E(t,e,r,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,r,n,52,8),r+8}u.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 o,i,a,u,f,s,l,c,h=this.length-e;if((void 0===r||r>h)&&(r=h),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 o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var u,f=parseInt(e.substr(2*a,2),16);if((u=f)!=u)break;t[r+a]=f}return a}(this,t,e,r);case"utf8":case"utf-8":return o=e,i=r,T(x(t,this.length-o),this,o,i);case"ascii":return a=e,u=r,T(C(t),this,a,u);case"latin1":case"binary":return function(t,e,r,n){return T(C(e),t,r,n)}(this,t,e,r);case"base64":return f=e,s=r,T(P(t),this,f,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,c=r,T(function(t,e){for(var r,n,o=[],i=0;i<t.length&&!((e-=2)<0);++i)n=(r=t.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(t,this.length-l),this,l,c);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.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,u.prototype),n},u.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},u.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},u.prototype.readUInt8=function(t,e){return t>>>=0,e||b(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return(t>>>=0,e||b(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||b(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||b(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||b(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||b(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,t,e,r,o,0)}var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,t,e,r,o,0)}var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(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},u.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(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},u.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,t,e,r,o-1,-o)}var i=0,a=1,u=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===u&&0!==this[e+i-1]&&(u=1),this[e+i]=(t/a|0)-u&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,t,e,r,o-1,-o)}var i=r-1,a=1,u=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===u&&0!==this[e+i+1]&&(u=1),this[e+i]=(t/a|0)-u&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(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},u.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(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},u.prototype.writeFloatLE=function(t,e,r){return A(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return A(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return S(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return S(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.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 o=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 i=o-1;i>=0;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return o},u.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&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var o,i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}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(o=e;o<r;++o)this[o]=t;else{var a=u.isBuffer(t)?t:u.from(t,n),f=a.length;
1if(0===f)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=a[o%f]}return this};var B=/[^+/0-9A-Za-z-_]/g;function x(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319||a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function C(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function P(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function T(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length)&&!(o>=t.length);++o)e[o+r]=t[o];return o}function _(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var R=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()},321:function(t,e){e.read=function(t,e,r,n,o){var i,a,u=8*o-n-1,f=(1<<u)-1,s=f>>1,l=-7,c=r?o-1:0,h=r?-1:1,p=t[e+c];for(c+=h,i=p&(1<<-l)-1,p>>=-l,l+=u;l>0;i=256*i+t[e+c],c+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+c],c+=h,l-=8);if(0===i)i=1-s;else{if(i===f)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=s}return(p?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,u,f,s=8*i-o-1,l=(1<<s)-1,c=l>>1,h=5960464477539062e-23*(23===o),p=n?0:i-1,g=n?1:-1,y=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(u=+!!isNaN(e),a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+c>=1?e+=h/f:e+=h*Math.pow(2,1-c),e*f>=2&&(a++,f/=2),a+c>=l?(u=0,a=l):a+c>=1?(u=(e*f-1)*Math.pow(2,o),a+=c):(u=e*Math.pow(2,c-1)*Math.pow(2,o),a=0));o>=8;t[r+p]=255&u,p+=g,u/=256,o-=8);for(a=a<<o|u,s+=o;s>0;t[r+p]=255&a,p+=g,a/=256,s-=8);t[r+p-g]|=128*y}}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}},a=!0;try{n[t](r,r.exports,i),a=!1}finally{a&&delete o[t]}return r.exports}i.ab="/ROOT/node_modules/next/dist/compiled/buffer/",e.exports=i(230)},573668,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=t.r(718967),o=t.r(652817);function i(t){if(!(0,n.isAbsoluteUrl)(t))return!0;try{let e=(0,n.getLocationOrigin)(),r=new URL(t,e);return r.origin===e&&(0,o.hasBasePath)(r.pathname)}catch(t){return!1}}},998183,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return f},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function i(t){let e={};for(let[r,n]of t.entries()){let t=e[r];void 0===t?e[r]=n:Array.isArray(t)?t.push(n):e[r]=[t,n]}return e}function a(t){return"string"==typeof t?t:("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function u(t){let e=new URLSearchParams;for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let t of n)e.append(r,a(t));else e.set(r,a(n));return e}function f(t,...e){for(let r of e){for(let e of r.keys())t.delete(e);for(let[e,n]of r.entries())t.append(e,n)}return t}},195057,(t,e,r)=>{"use strict";t.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return u},formatWithValidation:function(){return s},urlObjectKeys:function(){return f}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=t.r(190809)._(t.r(998183)),a=/https?|ftp|gopher|file/;function u(t){let{auth:e,hostname:r}=t,n=t.protocol||"",o=t.pathname||"",u=t.hash||"",f=t.query||"",s=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?s=e+t.host:r&&(s=e+(~r.indexOf(":")?`[${r}]`:r),t.port&&(s+=":"+t.port)),f&&"object"==typeof f&&(f=String(i.urlQueryToSearchParams(f)));let l=t.search||f&&`?${f}`||"";return n&&!n.endsWith(":")&&(n+=":"),t.slashes||(!n||a.test(n))&&!1!==s?(s="//"+(s||""),o&&"/"!==o[0]&&(o="/"+o)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),l&&"?"!==l[0]&&(l="?"+l),o=o.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),`${n}${s}${o}${l}${u}`}let f=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(t){return u(t)}},618566,(t,e,r)=>{e.exports=t.r(976562)},533362,t=>{"use strict";t.s(["Link",()=>l,"Navigate",()=>y,"useLocation",()=>p,"useNavigate",()=>g,"useParams",()=>c,"useSearchParams",()=>h]);var e=t.i(474076),r=t.i(522016),n=t.i(618566),o=t.i(271645),i=t.i(457025);let a=RegExp("^/(?:id|ar|fr|es|zh|ja|pt|de|ko|tr|vi|th|ru|hi)(?:/|$|\\?|#)"),u=/^(?:https?:|mailto:|tel:|sms:|ftp:|file:|data:|javascript:|#)/i;function f(t,e){return!e||"string"!=typeof t||!t.startsWith("/")||t.startsWith("//")||u.test(t)||a.test(t)?t:e+t}function s(t){if("string"==typeof t&&"/"===t[0])try{window.__bcPendingNav={href:t,ts:Date.now()},window.dispatchEvent(new CustomEvent("bc:navigate",{detail:{href:t}}))}catch(t){}}let l=(0,o.forwardRef)(function({to:t,replace:n,state:a,prefetch:u=!1,onClick:l,...c},h){let{langPrefix:p}=(0,o.useContext)(i.LanguageContext),g=f(t,p)||"#";return(0,e.jsx)(r.default,{ref:h,href:g,replace:n,prefetch:u,...c,onClick:t=>{"function"==typeof l&&l(t),t.defaultPrevented||0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||c.target&&"_self"!==c.target||s(g)}})});function c(){return(0,n.useParams)()}
1function h(){let t=(0,n.useSearchParams)(),e=(0,n.useRouter)(),r=(0,n.usePathname)();return[t,n=>{let o=new URLSearchParams;if("function"==typeof n){let o=n(new URLSearchParams(t.toString()));e.replace(`${r}?${o.toString()}`)}else{for(let[t,e]of Object.entries(n))o.set(t,e);e.replace(`${r}?${o.toString()}`)}}]}function p(){let t=(0,n.usePathname)(),e=(0,n.useSearchParams)();return{pathname:t,search:e.toString()?`?${e.toString()}`:"",hash:window.location.hash,state:null}}function g(){let t=(0,n.useRouter)(),{langPrefix:e}=(0,o.useContext)(i.LanguageContext);return(0,o.useCallback)((r,n)=>{if("number"==typeof r)return void(-1===r?t.back():t.forward());let o=f(r,e);s(o),n?.replace?t.replace(o):t.push(o)},[t,e])}function y({to:t,replace:e=!1}){let r=(0,n.useRouter)(),{langPrefix:a}=(0,o.useContext)(i.LanguageContext);return(0,o.useEffect)(()=>{let n=f(t,a);s(n),e?r.replace(n):r.push(n)},[t,e,r,a]),null}l.displayName="Link"},261405,t=>{"use strict";var e=t.i(271645),r=t.i(457025);t.s(["useLanguage",0,function(){return(0,e.useContext)(r.LanguageContext)},"useT",0,function(){let{t}=(0,e.useContext)(r.LanguageContext);return t}])},457025,t=>{"use strict";t.s(["LanguageContext",()=>u,"LanguageProvider",()=>c]);var e=t.i(474076),r=t.i(271645),n=t.i(618566),o=t.i(533362);let i=new Set(["en","id","ar","fr","es","zh","ja","pt","de","ko","tr","vi","th","ru","hi"]),a=[{code:"en",name:"English",native_name:"English",direction:"ltr"},{code:"id",name:"Indonesian",native_name:"Bahasa Indonesia",direction:"ltr"},{code:"ar",name:"Arabic",native_name:"Ø§ÙØ¹Ø±Ø¨ÙØ©",direction:"rtl"},{code:"fr",name:"French",native_name:"Français",direction:"ltr"},{code:"es",name:"Spanish",native_name:"Español",direction:"ltr"},{code:"zh",name:"Chinese",native_name:"䏿",direction:"ltr"},{code:"ja",name:"Japanese",native_name:"æ¥æ¬èª",direction:"ltr"},{code:"pt",name:"Portuguese",native_name:"Português",direction:"ltr"},{code:"de",name:"German",native_name:"Deutsch",direction:"ltr"},{code:"ko",name:"Korean",native_name:"íêµì´",direction:"ltr"},{code:"tr",name:"Turkish",native_name:"Türkçe",direction:"ltr"},{code:"vi",name:"Vietnamese",native_name:"Tiếng Viá»t",direction:"ltr"},{code:"th",name:"Thai",native_name:"ภาษาà¹à¸à¸¢",direction:"ltr"},{code:"ru",name:"Russian",native_name:"Ð ÑÑÑкий",direction:"ltr"},{code:"hi",name:"Hindi",native_name:"हिनà¥à¤¦à¥",direction:"ltr"}],u=(0,r.createContext)({lang:"en",dir:"ltr",strings:{},languages:[],loading:!1,t:(t,e)=>e||t,setLang:()=>{},langPrefix:""}),f={},s="ah_lang_pref";function l(){if("u"<typeof document)return null;let t=document.getElementById("__bc_i18n__");if(!t||!t.textContent)return null;try{let e=JSON.parse(t.textContent);if(e&&"object"==typeof e&&e.strings)return e.lang&&"en"!==e.lang&&(f[e.lang]=e.strings),e}catch{}return null}function c({children:t,initialStrings:h,initialLang:p}){let g=(0,o.useNavigate)(),y=(0,n.useRouter)(),d=(0,n.usePathname)()||"/",v=t=>{let e=t.split("/")[1]||"";return i.has(e)&&"en"!==e?e:null},[m,b]=(0,r.useState)(()=>{let t=v(d);return t||(p&&"en"!==p&&i.has(p)?p:null)});(0,r.useEffect)(()=>{let t=v(window.location.pathname);b(e=>t!==e?t:e)},[d]);let w=m||"en",E="ar"===w?"rtl":"ltr",A="en"===w?"":`/${w}`,[S,B]=(0,r.useState)(()=>{if(h&&(!p||p===w))return h;let t=l();return t&&t.lang===w?t.strings:"en"!==w&&f[w]?f[w]:{}}),[x,C]=(0,r.useState)(a),[P,T]=(0,r.useState)(!1),_=(0,r.useRef)((()=>{if(h&&(!p||p===w))return w;let t=l();return t&&t.lang===w?w:""})()),R=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(R.current)return;R.current=!0;let t=window.location.pathname;if(v(t)||"/"!==t)return;let e=localStorage.getItem(s);if(e){"en"!==e&&i.has(e)&&g(`/${e}${window.location.search}${window.location.hash}`,{replace:!0});return}let r=function(){let t=navigator.languages?.[0]||navigator.language||"";if(!t)return null;let e=t.toLowerCase().split("-")[0];return"en"!==e&&i.has(e)?e:null}();if(r)return void g(`/${r}${window.location.search}${window.location.hash}`,{replace:!0});let n=(navigator.languages?.[0]||navigator.language||"").toLowerCase();!n||n.startsWith("en")||fetch("/api/regional-pricing").then(t=>t.ok?t.json():null).then(t=>{let e={ID:"id",VN:"vi",TH:"th",JP:"ja",KR:"ko",CN:"zh",DE:"de",FR:"fr",ES:"es",IT:"es",PT:"pt",BR:"pt",RU:"ru",TR:"tr",IN:"hi",SA:"ar",EG:"ar",AE:"ar"}[(t?.country_code||"").toUpperCase()];e&&i.has(e)&&g(`/${e}${window.location.search}${window.location.hash}`,{replace:!0})}).catch(()=>{})},[]),(0,r.useEffect)(()=>{fetch("/api/translations/languages").then(t=>t.ok?t.json():null).then(t=>{t?.languages?.length&&C(t.languages)}).catch(()=>{})},[]),(0,r.useEffect)(()=>
1{if("en"===w){B({}),_.current="en";return}if(f[w]){B(f[w]),_.current=w;return}_.current!==w&&(T(!0),fetch(`/api/translations/${w}`).then(t=>t.ok?t.json():{strings:{}}).then(t=>{let e=t.strings||{};f[w]=e,B(e),_.current=w}).catch(()=>{B({}),_.current=w}).finally(()=>T(!1)))},[w]);let L=(0,r.useCallback)((t,e)=>"en"===w?e||t:S[t]||e||t,[w,S]),O=(0,r.useCallback)(t=>{if(t===w)return;localStorage.setItem(s,t);let{pathname:e,search:r,hash:n}=window.location,o=e;m&&i.has(m)&&(o=e.replace(`/${m}`,"")||"/");let a="en"===t?`${o}${r}${n}`:`/${t}${o}${r}${n}`;y.replace(a)},[w,m,y]),U=(0,r.useMemo)(()=>({lang:w,dir:E,strings:S,languages:x,loading:P,t:L,setLang:O,langPrefix:A}),[w,E,S,x,P,L,O,A]);return(0,e.jsx)(u.Provider,{value:U,children:t})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.