1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12028,e=>{"use strict";var t,r,i,n,s,o,a,h,l,c,u,p,m,f=e.i(7398),d=function(e,t){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function g(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var E=function(){return(E=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function v(e,t,r){if(r||2==arguments.length)for(var i,n=0,s=t.length;n<s;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function b(e,t){var r=t&&t.cache?t.cache:H,i=t&&t.serializer?t.serializer:T;return(t&&t.strategy?t.strategy:function(e,t){var r,i,n=1===e.length?y:S;return r=t.cache.create(),i=t.serializer,n.bind(this,e,r,i)})(e,{cache:r,serializer:i})}function y(e,t,r,i){var n=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),s=t.get(n);return void 0===s&&(s=e.call(this,i),t.set(n,s)),s}function S(e,t,r){var i=Array.prototype.slice.call(arguments,3),n=r(i),s=t.get(n);return void 0===s&&(s=e.apply(this,i),t.set(n,s)),s}"function"==typeof SuppressedError&&SuppressedError;var T=function(){return JSON.stringify(arguments)},_=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),H={create:function(){return new _}},w={variadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,S.bind(this,e,r,i)},monadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,y.bind(this,e,r,i)}};function L(e){return e.type===h.literal}function A(e){return e.type===h.number}function B(e){return e.type===h.date}function N(e){return e.type===h.time}function P(e){return e.type===h.select}function C(e){return e.type===h.plural}function I(e){return e.type===h.tag}function M(e){return!!(e&&"object"==typeof e&&e.type===l.number)}function R(e){return!!(e&&"object"==typeof e&&e.type===l.dateTime)}(t=a||(a={}))[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG",(r=h||(h={}))[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",(i=l||(l={}))[i.number=0]="number",i[i.dateTime=1]="dateTime";var O=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,U=/(?:[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,D=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,k=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,G=/^(@+)?(\+|#+)?[rs]?$/g,F=/(\*)(0+)|(#+)(0+)|(0+)/g,x=/^(0+)$/;function j(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(G,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 V(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 z(e){var t=V(e);return t||{}}var W={"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"],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
1:["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"],"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"]},X=new RegExp("^".concat(O.source,"*")),K=new RegExp("".concat(O.source,"*$"));function Y(e,t){return{start:e,end:t}}var Z=!!String.prototype.startsWith&&"_a".startsWith("a",1),q=!!String.fromCodePoint,J=!!Object.fromEntries,Q=!!String.prototype.codePointAt,$=!!String.prototype.trimStart,ee=!!String.prototype.trimEnd,et=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&0x1fffffffffffff>=Math.abs(e)},er=!0;try{er=(null==(c=el("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:c[0])==="a"}catch(e){er=!1}var ei=Z?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},en=q?String.fromCodePoint:function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i="",n=t.length,s=0;n>s;){if((e=t[s++])>1114111)throw RangeError(e+" is not a valid code point");i+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return i},es=J?Object.fromEntries:function(e){for(var t={},r=0;r<e.length;r++){var i=e[r],n=i[0],s=i[1];t[n]=s}return t},eo=Q?function(e,t){return e.codePointAt(t)}:function(e,t){var r,i=e.length;if(!(t<0)&&!(t>=i)){var n=e.charCodeAt(t);return n<55296||n>56319||t+1===i||(r=e.charCodeAt(t+1))<56320||r>57343?n:(n-55296<<10)+(r-56320)+65536}},ea=$?function(e){return e.trimStart()}:function(e){return e.replace(X,"")},eh=ee?function(e){return e.trimEnd()}:function(e){return e.replace(K,"")};function el(e,t){return new RegExp(e,t)}if(er){var ec=el("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");u=function(e,t){var r;return ec.lastIndex=t,null!=(r=ec.exec(e)[1])?r:""}}else u=function(e,t){for(var r=[];;){var i,n=eo(e,t);if(void 0===n||em(n)||(i=n)>=33&&i<=35||36===i||i>=37&&i<=39||40===i||41===i||42===i||43===i||44===i||45===i||i>=46&&i<=47||i>=58&&i<=59||i>=60&&i<=62||i>=63&&i<=64||91===i||92===i||93===i||94===i||96===i||123===i||124===i||125===i||126===i||161===i||i>=162&&i<=165||166===i||167===i||169===i||171===i||172===i||174===i||176===i||177===i||182===i||187===i||191===i||215===i||247===i||i>=8208&&i<=8213||i>=8214&&i<=8215||8216===i||8217===i||8218===i||i>=8219&&i<=8220||8221===i||8222===i||8223===i||i>=8224&&i<=8231||i>=8240&&i<=8248||8249===i||8250===i||i>=8251&&i<=8254||i>=8257&&i<=8259||8260===i||8261===i||8262===i||i>=8263&&i<=8273||8274===i||8275===i||i>=8277&&i<=8286||i>=8592&&i<=8596||i>=8597&&i<=8601||i>=8602&&i<=8603||i>=8604&&i<=8607||8608===i||i>=8609&&i<=8610||8611===i||i>=8612&&i<=8613||8614===i||i>=8615&&i<=8621||8622===i||i>=8623&&i<=8653||i>=8654&&i<=8655||i>=8656&&i<=8657||8658===i||8659===i||8660===i||i>=8661&&i<=8691||i>=8692&&i<=8959||i>=8960&&i<=8967||8968===i||8969===i||8970===i||8971===i||i>=8972&&i<=8991||i>=8992&&i<=8993||i>=8994&&i<=9e3||9001===i||9002===i||i>=9003&&i<=9083||9084===i||i>=9085&&i<=9114||i>=9115&&i<=9139||i>=9140&&i<=9179||i>=9180&&i<=9185||i>=9186&&i<=9254||i>=9255&&i<=9279||i>=9280&&i<=9290||i>=9291&&i<=9311||i>=9472&&i<=9654||9655===i||i>
1=9656&&i<=9664||9665===i||i>=9666&&i<=9719||i>=9720&&i<=9727||i>=9728&&i<=9838||9839===i||i>=9840&&i<=10087||10088===i||10089===i||10090===i||10091===i||10092===i||10093===i||10094===i||10095===i||10096===i||10097===i||10098===i||10099===i||10100===i||10101===i||i>=10132&&i<=10175||i>=10176&&i<=10180||10181===i||10182===i||i>=10183&&i<=10213||10214===i||10215===i||10216===i||10217===i||10218===i||10219===i||10220===i||10221===i||10222===i||10223===i||i>=10224&&i<=10239||i>=10240&&i<=10495||i>=10496&&i<=10626||10627===i||10628===i||10629===i||10630===i||10631===i||10632===i||10633===i||10634===i||10635===i||10636===i||10637===i||10638===i||10639===i||10640===i||10641===i||10642===i||10643===i||10644===i||10645===i||10646===i||10647===i||10648===i||i>=10649&&i<=10711||10712===i||10713===i||10714===i||10715===i||i>=10716&&i<=10747||10748===i||10749===i||i>=10750&&i<=11007||i>=11008&&i<=11055||i>=11056&&i<=11076||i>=11077&&i<=11078||i>=11079&&i<=11084||i>=11085&&i<=11123||i>=11124&&i<=11125||i>=11126&&i<=11157||11158===i||i>=11159&&i<=11263||i>=11776&&i<=11777||11778===i||11779===i||11780===i||11781===i||i>=11782&&i<=11784||11785===i||11786===i||11787===i||11788===i||11789===i||i>=11790&&i<=11798||11799===i||i>=11800&&i<=11801||11802===i||11803===i||11804===i||11805===i||i>=11806&&i<=11807||11808===i||11809===i||11810===i||11811===i||11812===i||11813===i||11814===i||11815===i||11816===i||11817===i||i>=11818&&i<=11822||11823===i||i>=11824&&i<=11833||i>=11834&&i<=11835||i>=11836&&i<=11839||11840===i||11841===i||11842===i||i>=11843&&i<=11855||i>=11856&&i<=11857||11858===i||i>=11859&&i<=11903||i>=12289&&i<=12291||12296===i||12297===i||12298===i||12299===i||12300===i||12301===i||12302===i||12303===i||12304===i||12305===i||i>=12306&&i<=12307||12308===i||12309===i||12310===i||12311===i||12312===i||12313===i||12314===i||12315===i||12316===i||12317===i||i>=12318&&i<=12319||12320===i||12336===i||64830===i||64831===i||i>=65093&&i<=65094)break;r.push(n),t+=n>=65536?2:1}return en.apply(void 0,r)};var eu=function(){function e(e,t){void 0===t&&(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}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var i=[];!this.isEOF();){var n=this.char();if(123===n){var s=this.parseArgument(e,r);if(s.err)return s;i.push(s.val)}else if(125===n&&e>0)break;else if(35===n&&("plural"===t||"selectordinal"===t)){var o=this.clonePosition();this.bump(),i.push({type:h.pound,location:Y(o,this.clonePosition())})}else if(60!==n||this.ignoreTag||47!==this.peek())if(60===n&&!this.ignoreTag&&ep(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;i.push(s.val)}else if(!r)return this.error(a.UNMATCHED_CLOSING_TAG,Y(this.clonePosition(),this.clonePosition()));else break}return{val:i,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:h.literal,value:"<".concat(i,"/>"),location:Y(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(a.INVALID_TAG,Y(r,this.clonePosition()));var n=this.parseMessage(e+1,t,!0);if(n.err)return n;var s=n.val,o=this.clonePosition();if(!this.bumpIf("</"))return this.error(a.UNCLOSED_TAG,Y(r,this.clonePosition()));if(this.isEOF()||!ep(this.char()))return this.error(a.INVALID_TAG,Y(o,this.clonePosition()));var l=this.clonePosition();return i!==this.parseTagName()?this.error(a.UNMATCHED_CLOSING_TAG,Y(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:h.tag,value:i,children:s,location:Y(r,this.clonePosition())},err:null}:this.error(a.INVALID_TAG,Y(o,this.clonePosition()))},e.prototype.parseTagName=function(){var e,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())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),i="";;){var n=this.tryParseQuote(t);if(n){i+=n;continue}var s=this.tryParseUnquoted(e,t);if(s){i+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var a=Y(r,this.clonePosition());return{val:{type:h.literal,value:i,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ep(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";
1case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return en.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),en(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,Y(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(a.EMPTY_ARGUMENT,Y(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(a.MALFORMED_ARGUMENT,Y(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,Y(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:h.argument,value:i,location:Y(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,Y(r,this.clonePosition()));return this.parseArgumentOptions(e,t,i,r);default:return this.error(a.MALFORMED_ARGUMENT,Y(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=u(this.message,t),i=t+r.length;return this.bumpTo(i),{value:r,location:Y(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,i){var n,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(o){case"":return this.error(a.EXPECT_ARGUMENT_TYPE,Y(s,c));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var f=eh(m.val);if(0===f.length)return this.error(a.EXPECT_ARGUMENT_STYLE,Y(this.clonePosition(),this.clonePosition()));u={style:f,styleLocation:Y(p,this.clonePosition())}}var d=this.tryParseArgumentClose(i);if(d.err)return d;var g=Y(i,this.clonePosition());if(u&&ei(null==u?void 0:u.style,"::",0)){var v=ea(u.style.slice(2));if("number"===o){var m=this.parseNumberSkeletonFromString(v,u.styleLocation);if(m.err)return m;return{val:{type:h.number,value:r,location:g,style:m.val},err:null}}if(0===v.length)return this.error(a.EXPECT_DATE_TIME_SKELETON,g);var b,y=v;this.locale&&(y=function(e,t){for(var r="",i=0;i<e.length;i++){var n=e.charAt(i);if("j"===n){for(var s=0;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;var o=1+(1&s),a=s<2?1:3+(s>>1),h=function(e){var 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")}var i=e.language;return"root"!==i&&(t=e.maximize().region),(W[t||""]||W[i||""]||W["".concat(i,"-001")]||W["001"])[0]}(t);for(("H"==h||"k"==h)&&(a=0);a-- >0;)r+="a";for(;o-- >0;)r=h+r}else"J"===n?r+="H":r+=n}return r}(v,this.locale));var f={type:l.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(b={},y.replace(U,function(e){var t=e.length;switch(e[0]){case"G":b.era=4===t?"long":5===t?"narrow":"short";break;case"y":b.year=2===t?"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":b.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":b.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":b.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");b.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");b.weekday=["short","long","narrow","short"][t-4];break;case"a":b.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":b.hourCycle="h12",b.hour=["numeric","2-digit"][t-1];break;case"H":b.hourCycle="h23",b.hour=["numeric","2-digit"][t-1];break;case"K":b.hourCycle="h11",b.hour=["numeric","2-digit"][t-1];break;case"k":b.hourCycle="h24",b.hour=["numeric","2-digit"][t-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":b.minute=["numeric","2-digit"][t-1];break;case"s":b.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":b.timeZoneName=t<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""}),b):{}};return{val:{type:"date"===o?h.date:h.time,value:r,location:g,style:f},err:null}}return{val:{type:"number"===o?h.number:"date"===o?h.date:h.time,value:r,location:g,style:null!=(n=null==u?void 0:u.style)?n:null},err:null};
1case"plural":case"selectordinal":case"select":var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(a.EXPECT_SELECT_ARGUMENT_OPTIONS,Y(S,E({},S)));this.bumpSpace();var T=this.parseIdentifierIfPossible(),_=0;if("select"!==o&&"offset"===T.value){if(!this.bumpIf(":"))return this.error(a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,a.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),T=this.parseIdentifierIfPossible(),_=m.val}var H=this.tryParsePluralOrSelectOptions(e,o,t,T);if(H.err)return H;var d=this.tryParseArgumentClose(i);if(d.err)return d;var w=Y(i,this.clonePosition());if("select"===o)return{val:{type:h.select,value:r,options:es(H.val),location:w},err:null};return{val:{type:h.plural,value:r,options:es(H.val),offset:_,pluralType:"plural"===o?"cardinal":"ordinal",location:w},err:null};default:return this.error(a.INVALID_ARGUMENT_TYPE,Y(s,c))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,Y(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(a.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Y(r,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}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(D).filter(function(e){return e.length>0}),r=[],i=0;i<t.length;i++){var n=t[i].split("/");if(0===n.length)throw Error("Invalid number skeleton");for(var s=n[0],o=n.slice(1),a=0;a<o.length;a++)if(0===o[a].length)throw Error("Invalid number skeleton");r.push({stem:s,options:o})}return r}(e)}catch(e){return this.error(a.INVALID_NUMBER_SKELETON,t)}return{val:{type:l.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},r=0;r<e.length;r++){var i=e[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.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=i.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=E(E(E({},t),{notation:"scientific"}),i.options.reduce(function(e,t){return E(E({},e),z(t))},{}));continue;case"engineering":t=E(E(E({},t),{notation:"engineering"}),i.options.reduce(function(e,t){return E(E({},e),z(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(i.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(i.options.length>1)throw RangeError("integer-width stems only accept a single optional option");i.options[0].replace(F,function(e,r,i,n,s,o){if(r)t.minimumIntegerDigits=i.length;else if(n&&s)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(x.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(k.test(i.stem)){if(i.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(k,function(e,r,i,n,s,o){return"*"===i?t.minimumFractionDigits=r.length:n&&"#"===n[0]?t.maximumFractionDigits=n.length:s&&o?(t.minimumFractionDigits=s.length,t.maximumFractionDigits=s.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var n=i.options[0];"w"===n?t=E(E({}
1,t),{trailingZeroDisplay:"stripIfInteger"}):n&&(t=E(E({},t),j(n)));continue}if(G.test(i.stem)){t=E(E({},t),j(i.stem));continue}var s=V(i.stem);s&&(t=E(E({},t),s));var o=function(e){var 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){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!x.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem);o&&(t=E(E({},t),o))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var n,s=!1,o=[],h=new Set,l=i.value,c=i.location;;){if(0===l.length){var u=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(a.EXPECT_PLURAL_ARGUMENT_SELECTOR,a.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=Y(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}else break}if(h.has(l))return this.error("select"===t?a.DUPLICATE_SELECT_ARGUMENT_SELECTOR:a.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?a.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:a.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Y(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,r);if(f.err)return f;var d=this.tryParseArgumentClose(m);if(d.err)return d;o.push([l,{value:f.val,location:Y(m,this.clonePosition())}]),h.add(l),this.bumpSpace(),l=(n=this.parseIdentifierIfPossible()).value,c=n.location}return 0===o.length?this.error("select"===t?a.EXPECT_SELECT_ARGUMENT_SELECTOR:a.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(a.MISSING_OTHER_CLAUSE,Y(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)n=!0,s=10*s+(o-48),this.bump();else break}var a=Y(i,this.clonePosition());return n?et(s*=r)?{val:s,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=eo(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var 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)}},e.prototype.bumpIf=function(e){if(ei(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&em(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ep(e){return e>=97&&e<=122||e>=65&&e<=90}function em(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}(n=p||(p={})).MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API";var ef=function(e){function t(t,r,i){var n=e.call(this,t)||this;return n.code=r,n.originalMessage=i,n}return g(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ed=function(e){function t(t,r,i,n){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),p.INVALID_VALUE,n)||this}return g(t,e),t}(ef),eg=function(e){function t(t,r,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),p.INVALID_VALUE,i)||this}return g(t,e),t}(ef),eE=function(e){function t(t,r){return e.call(this,'The intl str
1ing context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),p.MISSING_VALUE,r)||this}return g(t,e),t}(ef);function ev(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function eb(e,t,r,i){void 0===t&&(t=eb.defaultLocale);var n,s,o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===m.literal&&"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=function(e){return function e(t,r,i,n,s,o,a){if(1===t.length&&L(t[0]))return[{type:m.literal,value:t[0].value}];for(var l=[],c=0;c<t.length;c++){var u=t[c];if(L(u)){l.push({type:m.literal,value:u.value});continue}if(u.type===h.pound){"number"==typeof o&&l.push({type:m.literal,value:i.getNumberFormat(r).format(o)});continue}var f=u.value;if(!(s&&f in s))throw new eE(f,a);var d=s[f];if(u.type===h.argument){d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),l.push({type:"string"==typeof d?m.literal:m.object,value:d});continue}if(B(u)){var g="string"==typeof u.style?n.date[u.style]:R(u.style)?u.style.parsedOptions:void 0;l.push({type:m.literal,value:i.getDateTimeFormat(r,g).format(d)});continue}if(N(u)){var g="string"==typeof u.style?n.time[u.style]:R(u.style)?u.style.parsedOptions:n.time.medium;l.push({type:m.literal,value:i.getDateTimeFormat(r,g).format(d)});continue}if(A(u)){var g="string"==typeof u.style?n.number[u.style]:M(u.style)?u.style.parsedOptions:void 0;g&&g.scale&&(d*=g.scale||1),l.push({type:m.literal,value:i.getNumberFormat(r,g).format(d)});continue}if(I(u)){var E=u.children,v=u.value,b=s[v];if("function"!=typeof b)throw new eg(v,"function",a);var y=b(e(E,r,i,n,s,o).map(function(e){return e.value}));Array.isArray(y)||(y=[y]),l.push.apply(l,y.map(function(e){return{type:"string"==typeof e?m.literal:m.object,value:e}}))}if(P(u)){var S=u.options[d]||u.options.other;if(!S)throw new ed(u.value,d,Object.keys(u.options),a);l.push.apply(l,e(S.value,r,i,n,s));continue}if(C(u)){var S=u.options["=".concat(d)];if(!S){if(!Intl.PluralRules)throw new ef('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',p.MISSING_INTL_API,a);var T=i.getPluralRules(r,{type:u.pluralType}).select(d-(u.offset||0));S=u.options[T]||u.options.other}if(!S)throw new ed(u.value,d,Object.keys(u.options),a);l.push.apply(l,e(S.value,r,i,n,s,d-(u.offset||0)));continue}}return l.length<2?l:l.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===m.literal&&t.type===m.literal?r.value+=t.value:e.push(t),e},[])}(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){var e;return{locale:(null==(e=o.resolvedLocale)?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=eb.resolveLocale(t),"string"==typeof e){if(this.message=e,!eb.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{},l=(a.formatters,function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}(a,["formatters"]));this.ast=eb.__parse(e,E(E({},l),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(n=eb.formats,r?Object.keys(n).reduce(function(e,t){var i,s;return e[t]=(i=n[t],(s=r[t])?E(E(E({},i||{}),s||{}),Object.keys(i).reduce(function(e,t){return e[t]=E(E({},i[t]),s[t]||{}),e},{})):i),e},E({},n)):n),this.formatters=i&&i.formatters||(void 0===(s=this.formatterCache)&&(s={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:b(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,v([void 0],t,!1)))},{cache:ev(s.number),strategy:w.variadic}),getDateTimeFormat:b(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,v([void 0],t,!1)))},{cache:ev(s.dateTime),strategy:w.variadic}),getPluralRules:b(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,v([void 0],t,!1)))},{cache:ev(s.pluralRules),strategy:w.variadic})})}(s=m||(m={}))[s.literal=0]="literal",s[s.object=1]="object",Object.defineProperty(eb,"defaultLocale",{get:function(){return eb.memoizedDefaultLocale||(eb.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),eb.memoizedDefaultLocale}
1,enumerable:!1,configurable:!0}),eb.memoizedDefaultLocale=null,eb.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}},eb.__parse=function(e,t){void 0===t&&(t={});var r=new eu(e,t=E({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(r.err){var i=SyntaxError(a[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,P(t)||C(t))for(var r in t.options)delete t.options[r].location,e(t.options[r].value);else A(t)&&M(t.style)||(B(t)||N(t))&&R(t.style)?delete t.style.location:I(t)&&e(t.children)})}(r.val),r.val},eb.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"}}};var ey=((o=ey||{}).MISSING_MESSAGE="MISSING_MESSAGE",o.MISSING_FORMAT="MISSING_FORMAT",o.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",o.INSUFFICIENT_PATH="INSUFFICIENT_PATH",o.INVALID_MESSAGE="INVALID_MESSAGE",o.INVALID_KEY="INVALID_KEY",o.FORMATTING_ERROR="FORMATTING_ERROR",o);function eS(e){return function(...e){return e.filter(Boolean).join(".")}(e.namespace,e.key)}function eT(e){console.error(e)}function e_(e,t){return b((...t)=>new e(...t),{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:w.variadic})}var eH=e.i(81540);let ew=(0,f.createContext)(void 0);function eL({children:e,formats:t,getMessageFallback:r,locale:i,messages:n,now:s,onError:o,timeZone:a}){let h=(0,f.useContext)(ew),l=(0,f.useMemo)(()=>h?.cache||{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},[i,h?.cache]),c=(0,f.useMemo)(()=>h?.formatters||{getDateTimeFormat:e_(Intl.DateTimeFormat,l.dateTime),getNumberFormat:e_(Intl.NumberFormat,l.number),getPluralRules:e_(Intl.PluralRules,l.pluralRules),getRelativeTimeFormat:e_(Intl.RelativeTimeFormat,l.relativeTime),getListFormat:e_(Intl.ListFormat,l.list),getDisplayNames:e_(Intl.DisplayNames,l.displayNames)},[l,h?.formatters]),u=(0,f.useMemo)(()=>({...function({formats:e,getMessageFallback:t,messages:r,onError:i,...n}){return{...n,formats:e||void 0,messages:r||void 0,onError:i||eT,getMessageFallback:t||eS}}({locale:i,formats:void 0===t?h?.formats:t,getMessageFallback:r||h?.getMessageFallback,messages:void 0===n?h?.messages:n,now:s||h?.now,onError:o||h?.onError,timeZone:a||h?.timeZone}),formatters:c,cache:l}),[l,t,c,r,i,n,s,o,h,a]);return(0,eH.jsx)(ew.Provider,{value:u,children:e})}function eA({locale:e,...t}){if(!e)throw Error(void 0);return(0,eH.jsx)(eL,{locale:e,...t})}e.s(["default",()=>eA],12028)},81064,e=>{"use strict";var t=e.i(81540),r=e.i(7398),i=(e,t,r,i,n,s,o,a)=>{let h=document.documentElement,l=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,i=r&&s?n.map(e=>s[e]||e):n;r?(h.classList.remove(...i),h.classList.add(s&&s[t]?s[t]:t)):h.setAttribute(e,t)}),r=t,a&&l.includes(r)&&(h.style.colorScheme=r)}if(i)c(i);else try{let e=localStorage.getItem(t)||r,i=o&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(i)}catch(e){}},n=["light","dark"],s="(prefers-color-scheme: dark)",o="u"<typeof window,a=r.createContext(void 0),h=e=>r.useContext(a)?r.createElement(r.Fragment,null,e.children):r.createElement(c,{...e}),l=["light","dark"],c=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:i=!0,enableColorScheme:o=!0,storageKey:h="theme",themes:c=l,defaultTheme:d=i?"system":"light",attribute:g="data-theme",value:E,children:v,nonce:b,scriptProps:y})=>{let[S,T]=r.useState(()=>p(h,d)),[_,H]=r.useState(()=>"system"===S?f():S),w=E?Object.values(E):c,L=r.useCallback(e=>{let r=e;if(!r)return;"system"===e&&i&&(r=f());let s=E?E[r]:r,a=t?m(b):null,h=document.documentElement,l=e=>{"class"===e?(h.classList.remove(...w),s&&h.classList.add(s)):e.startsWith("data-")&&(s?h.setAttribute(e,s):h.removeAttribute(e))};if(Array.isArray(g)?g.forEach(l):l(g),o){let e=n.includes(d)?d:null,t=n.includes(r)?r:e;h.style.colorScheme=t}null==a||a()},[b]),A=r.useCallback(e=>{let t="function"==typeof e?e(S):e;T(t);try{localStorage.setItem(h,t)}catch(e){}},[S]),B=r.useCallback(t=>{H(f(t)),"system"===S&&i&&!e&&L("system")},[S,e]);r.useEffect(()=>{let e=window.matchMedia(s);return e.addListener(B),B(e),()=>e.removeListener(B)},[B]),r.useEffect(()=>{let e=e=>{e.key===h&&(e.newValue?T(e.newValue):A(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[A]),r.useEffect(()=>{L(null!=e?e:S)},[e,S]);let N=r.useMemo(()=>({theme:S,setTheme:A,forcedTheme:e,resolvedTheme:"system"===S?_:S,themes:i?[...c,"system"]:c,systemTheme:i?_:void 0}),[S,A,e,_,i,c]);return r.createElement(a.Provider,{value:N},r.createElement(u,{forcedTheme:e,storageKey:h,attribute:g,enableSystem:i,enableColorScheme:o,defaultTheme:d,value:E,themes:c,nonce:b,scriptProps:y}),v)},u=r.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:s,enableColorScheme:o,defaultTheme:a,value:h,themes:l,nonce:c,scriptProps:u})=>{let p=JSON.stringify([n,t,a,e,l,h,s,o]).slice(1,-1);return r.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"u"<typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${i.toString()})(${p})`}}
1)}),p=(e,t)=>{let r;if(!o){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},m=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},f=e=>(e||(e=window.matchMedia(s)),e.matches?"dark":"light");function d({children:e,...r}){return(0,t.jsx)(h,{...r,children:e})}e.s(["ThemeProvider",()=>d],81064)},64016,(e,t,r)=>{"use strict";var i=e.r(7398),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useState,o=i.useEffect,a=i.useLayoutEffect,h=i.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),i=s({inst:{value:r,getSnapshot:t}}),n=i[0].inst,c=i[1];return a(function(){n.value=r,n.getSnapshot=t,l(n)&&c({inst:n})},[e,r,t]),o(function(){return l(n)&&c({inst:n}),e(function(){l(n)&&c({inst:n})})},[e]),h(r),r};r.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:c},83309,(e,t,r)=>{"use strict";t.exports=e.r(64016)},77912,(e,t,r)=>{"use strict";var i=e.r(7398),n=e.r(83309),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,a=i.useRef,h=i.useEffect,l=i.useMemo,c=i.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,i,n){var u=a(null);if(null===u.current){var p={hasValue:!1,value:null};u.current=p}else p=u.current;var m=o(e,(u=l(function(){function e(e){if(!h){if(h=!0,o=e,e=i(e),void 0!==n&&p.hasValue){var t=p.value;if(n(t,e))return a=t}return a=e}if(t=a,s(o,e))return t;var r=i(e);return void 0!==n&&n(t,r)?(o=e,t):(o=e,a=r)}var o,a,h=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,i,n]))[0],u[1]);return h(function(){p.hasValue=!0,p.value=m},[m]),c(m),m}},68165,(e,t,r)=>{"use strict";t.exports=e.r(77912)},61375,(e,t,r)=>{t.exports=e.r(10607)},65973,e=>{"use strict";let t;var r=e.i(81540);e.i(89682);var i=e.i(7398),n="u">typeof window&&new class{constructor(){this.raf=e=>{requestAnimationFrame(this.raf);let t=e-this.now;this.now=e;for(let r=0;r<this.callbacks.length;r++)this.callbacks[r].callback(e,t)},this.callbacks=[],this.now=performance.now(),requestAnimationFrame(this.raf)}add(e,t=0){return this.callbacks.push({callback:e,priority:t}),this.callbacks.sort((e,t)=>e.priority-t.priority),()=>this.remove(e)}remove(e){this.callbacks=this.callbacks.filter(({callback:t})=>e!==t)}};function s(e,t,r){return Math.max(e,Math.min(t,r))}class o{advance(e){var t,r,i,n;if(!this.isRunning)return;let o=!1;if(this.lerp)this.value=(t=this.value,r=this.to,i=60*this.lerp,(1-(n=1-Math.exp(-i*e)))*t+n*r),Math.round(this.value)===this.to&&(this.value=this.to,o=!0);else{this.currentTime+=e;let t=s(0,this.currentTime/this.duration,1),r=(o=t>=1)?1:this.easing(t);this.value=this.from+(this.to-this.from)*r}this.onUpdate?.(this.value,o),o&&this.stop()}stop(){this.isRunning=!1}fromTo(e,t,{lerp:r=.1,duration:i=1,easing:n=e=>e,onStart:s,onUpdate:o}){this.from=this.value=e,this.to=t,this.lerp=r,this.duration=i,this.easing=n,this.currentTime=0,this.isRunning=!0,s?.(),this.onUpdate=o}}class a{constructor({wrapper:e,content:t,autoResize:r=!0,debounce:i=250}={}){this.wrapper=e,this.content=t,r&&(this.debouncedResize=function(e,t){let r;return function(){let i=arguments,n=this;clearTimeout(r),r=setTimeout(function(){e.apply(n,i)},t)}}(this.resize,i),this.wrapper===window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper===window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper===window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}}class h{constructor(){this.events={}}emit(e,...t){let r=this.events[e]||[];for(let e=0,i=r.length;e<i;e++)r[e](...t)}on(e,t){return this.events[e]?.push(t)||(this.events[e]=[t]),()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}off(e,t){this.events[e]=this.events[e]?.filter(e=>t!==e)}destroy(){this.events={}}}let l=100/6;class c{constructor(e,{wheelMultiplier:t=1,touchMultiplier:r=1}){this.element=e,this.wheelMultiplier=t,this.touchMultiplier=r,this.touchStart={x:null,y:null},this.emitter=new h,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,{passive:!1}),this.element.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.addEventListener("touchend",this.onTouchEnd,{passive:!1})}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,{passive:!1}),this.element.removeEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.removeEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.removeEventListener("touchend",this.onTouchEnd,{passive:!1})}onTouchStart=e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e,i=-(t-this.touchStart.x)*this.touchMultiplier,n=-(r-this.touchStart.y)*this.touchMultiplier;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:i,y:n},this.emitter.emit("scroll",{deltaX:i,deltaY:n,event:e})};onTouchEnd=e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:r,deltaMode:i}=e;t*=1===i?l:2===i?this.windowWidth:1,r*=1===i?l:2===i?this.windowHeight:1,t*=this.wheelMultiplier,r*=this.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:r,event:e})};onWindowResize=()=>{this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight}}class u{constructor({wrapper:e=window,content:t=document.documentElement,wheelEventsTarget:r=e,eventsTarget:i=r,smoothWheel:n=!0,syncTouch:s=!1,syncTouchLerp:l=.075,touchInertiaMultiplier:u=35,duration:p,easing:m=e=>Math.min(1,1.001-Math.pow(2,-10*e)),lerp:f=!p&&.1,infinite:d=!1,orientation:g="vertical",gestureOrientation:E="vertical",touchMultiplier:v=1,wheelMultiplier:b=1,autoResize:y=!0,__experimental__naiveDimensions:S=!1}={}){this.__isSmooth=!1,this.__isScrolling=!1,this.__isStopped=!1,this.__isLocked=!1,this.onVirtualScroll=({deltaX:e,deltaY:t,event:r})=>{if(r.ctrlKey)return;let i=r.type.includes("touch"),n=r.type.includes("wheel");if(this.options.syncTouch&&i&&"touchstart"===r.type&&!this.isStopped&&!this.isLocked)return void this.reset();let s="vertical"===this.options.gestureOrientation&&0===t||"horizontal"===this.options.gestureOrientation&&0===e;if(0===e&&0===t||s)return;let o=r.composedPath();if((o=o.slice(0,o.indexOf(this.rootElement))).find(e=>{var t,r,s,o,a;return(null==(t=e.hasAttribute)?void 0:t.call(e,"data-lenis-prevent"))||i&&(null==(r=e.hasAttribute)?void 0:r.call(e,"data-lenis-prevent-touch"))||n&&(null==(s=e.hasAttribute)?void 0:s.call(e,"data-lenis-prevent-wheel"))||(null==(o=e.classList)?void 0:o.contains("lenis"))&&!(null==(a=e.classList)?void 0:a.contains("lenis-stopped"))}))return;if(this.isStopped||this.isLocked)return void r.preventDefault();if(this.isSmooth=this.options.syncTouch&&i||this.options.smoothWheel&&n,!this.isSmooth)return this.isScrolling=!1,void this.animate.stop();r.preventDefault();let a=t;"both"===this.options.gestureOrientation?a=Math.abs(t)>Math.abs(e)?t:e:"horizontal"===this.options.gestureOrientation&&(a=e);let h=i&&this.options.syncTouch,l=i&&"touchend"===r.type&&Math.abs(a)>5;
1l&&(a=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+a,Object.assign({programmatic:!1},h?{lerp:l?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}))},this.onNativeScroll=()=>{if(!this.__preventNextScrollEvent&&!this.isScrolling){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.direction=Math.sign(this.animatedScroll-e),this.emit()}},window.lenisVersion="1.0.42",e!==document.documentElement&&e!==document.body||(e=window),this.options={wrapper:e,content:t,wheelEventsTarget:r,eventsTarget:i,smoothWheel:n,syncTouch:s,syncTouchLerp:l,touchInertiaMultiplier:u,duration:p,easing:m,lerp:f,infinite:d,gestureOrientation:E,orientation:g,touchMultiplier:v,wheelMultiplier:b,autoResize:y,__experimental__naiveDimensions:S},this.animate=new o,this.emitter=new h,this.dimensions=new a({wrapper:e,content:t,autoResize:y}),this.toggleClassName("lenis",!0),this.velocity=0,this.isLocked=!1,this.isStopped=!1,this.isSmooth=s||n,this.isScrolling=!1,this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll=new c(i,{touchMultiplier:v,wheelMultiplier:b}),this.virtualScroll.on("scroll",this.onVirtualScroll)}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.toggleClassName("lenis",!1),this.toggleClassName("lenis-smooth",!1),this.toggleClassName("lenis-scrolling",!1),this.toggleClassName("lenis-stopped",!1),this.toggleClassName("lenis-locked",!1)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}setScroll(e){this.isHorizontal?this.rootElement.scrollLeft=e:this.rootElement.scrollTop=e}resize(){this.dimensions.resize()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.isStopped=!1,this.reset())}stop(){this.isStopped||(this.isStopped=!0,this.animate.stop(),this.reset())}raf(e){let t=e-(this.time||e);this.time=e,this.animate.advance(.001*t)}scrollTo(e,{offset:t=0,immediate:r=!1,lock:i=!1,duration:n=this.options.duration,easing:o=this.options.easing,lerp:a=!n&&this.options.lerp,onComplete:h,force:l=!1,programmatic:c=!0}={}){if(!this.isStopped&&!this.isLocked||l){if(["top","left","start"].includes(e))e=0;else if(["bottom","right","end"].includes(e))e=this.limit;else{let r;if("string"==typeof e?r=document.querySelector(e):(null==e?void 0:e.nodeType)&&(r=e),r){if(this.options.wrapper!==window){let e=this.options.wrapper.getBoundingClientRect();t-=this.isHorizontal?e.left:e.top}let i=r.getBoundingClientRect();e=(this.isHorizontal?i.left:i.top)+this.animatedScroll}}if("number"==typeof e){if(e+=t,e=Math.round(e),this.options.infinite?c&&(this.targetScroll=this.animatedScroll=this.scroll):e=s(0,e,this.limit),r)return this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),void(null==h||h(this));if(!c){if(e===this.targetScroll)return;this.targetScroll=e}this.animate.fromTo(this.animatedScroll,e,{duration:n,easing:o,lerp:a,onStart:()=>{i&&(this.isLocked=!0),this.isScrolling=!0},onUpdate:(e,t)=>{this.isScrolling=!0,this.velocity=e-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=e,this.setScroll(this.scroll),c&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),null==h||h(this),this.__preventNextScrollEvent=!0,requestAnimationFrame(()=>{delete this.__preventNextScrollEvent}))}})}}}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){return this.isHorizontal?this.rootElement.scrollLeft:this.rootElement.scrollTop}get scroll(){var e;return this.options.infinite?(this.animatedScroll%(e=this.limit)+e)%e:this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isSmooth(){return this.__isSmooth}set isSmooth(e){this.__isSmooth!==e&&(this.__isSmooth=e,this.toggleClassName("lenis-smooth",e))}get isScrolling(){return this.__isScrolling}set isScrolling(e){this.__isScrolling!==e&&(this.__isScrolling=e,this.toggleClassName("lenis-scrolling",e))}get isStopped(){return this.__isStopped}set isStopped(e){this.__isStopped!==e&&(this.__isStopped=e,this.toggleClassName("lenis-stopped",e))}get isLocked(){return this.__isLocked}set isLocked(e){this.__isLocked!==e&&(this.__isLocked=e,this.toggleClassName("lenis-locked",e))}get className(){let e="lenis";return this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isSmooth&&(e+=" lenis-smooth"),e}toggleClassName(e,t){this.rootElement.classList.toggle(e,t),this.emitter.emit("className change",this)}}let p=function(){for(var e,t,r=0,i="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=function e(t){var r,i,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(i=e(t[r]))&&(n&&(n+=" "),n+=i)}else for(i in t)t[i]&&(n&&(n+=" "),n+=i);return n}(e))&&(i&&(i+=" "),i+=t);return i},m={get url(){return`file://${e.P("node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/zustand/esm/vanilla.mjs")}`}},f=e=>{let t,r=new Set,i=(e,i)=>{let n="function"==typeof e?e(t):e;if(!Object.is(n,t)){let e=t;t=(null!=i?i:"object"!=typeof n||null===n)?n:Object.assign({},t,n),r.forEach(r=>r(t,e))}},n=()=>t,s={setState:i,getState:n,getInitialState:()=>o,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{(m.env?m.env.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},o=t=e(i,n,s);return s};var d=e.i(68165);let g={get url(){return`file://${e.P("node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/zustand/esm/index.mjs")}`}},{useDebugValue:E}=i.default,{useSyncExternalStoreWithSelector:v}=d.default,b=!1,y=e=>{(g.env?g.env.MODE:void 0)!=="production"&&"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { use
1Store } from 'zustand'`.");let t="function"==typeof e?e?f(e):f:e,r=(e,r)=>(function(e,t=e=>e,r){(g.env?g.env.MODE:void 0)!=="production"&&r&&!b&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),b=!0);let i=v(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return E(i),i})(t,e,r);return Object.assign(r,t),r};"function"==typeof SuppressedError&&SuppressedError,"u">typeof window&&(window.reactLenisVersion="0.0.47");let S=(0,i.createContext)(null),T=(t=()=>({}))?y(t):y,_=(0,i.forwardRef)((e,t)=>{var{children:r,root:s=!1,options:o={},autoRaf:a=!0,rafPriority:h=0,className:l}=e,c=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]])}return r}(e,["children","root","options","autoRaf","rafPriority","className"]);let m=(0,i.useRef)(null),f=(0,i.useRef)(null),[d,g]=(0,i.useState)(void 0),E=(0,i.useRef)([]),v=(0,i.useCallback)((e,t)=>{E.current.push({callback:e,priority:t}),E.current.sort((e,t)=>e.priority-t.priority)},[]),b=(0,i.useCallback)(e=>{E.current=E.current.filter(t=>t.callback!==e)},[]);(0,i.useImperativeHandle)(t,()=>({wrapper:m.current,content:f.current,lenis:d}),[d]),(0,i.useEffect)(()=>{let e=new u(Object.assign(Object.assign({},o),!s&&{wrapper:m.current,content:f.current}));return g(e),()=>{e.destroy(),g(void 0)}},[s,JSON.stringify(o)]),function(e,t=0){(0,i.useEffect)(()=>{if(e)return n.add(e,t),()=>n.remove(e)},[e,t])}(e=>{a&&(null==d||d.raf(e))},h),(0,i.useEffect)(()=>{s&&d&&T.setState({lenis:d,addCallback:v,removeCallback:b})},[s,d,v,b]);let y=(0,i.useCallback)(e=>{for(let t=0;t<E.current.length;t++)E.current[t].callback(e)},[]);(0,i.useEffect)(()=>(null==d||d.on("scroll",y),()=>{null==d||d.off("scroll",y)}),[d,y]);let _=(0,i.useCallback)(()=>{m.current&&(m.current.className=p(null==d?void 0:d.className,l))},[d,l]);return(0,i.useEffect)(()=>(_(),null==d||d.on("className change",_),()=>{null==d||d.off("className change",_)}),[d,_]),i.default.createElement(S.Provider,{value:{lenis:d,addCallback:v,removeCallback:b}},s?r:i.default.createElement("div",Object.assign({ref:m,className:p(null==d?void 0:d.className,l)},c),i.default.createElement("div",{ref:f},r)))});e.i(3546);var H=e.i(61375);function w(){return window.location.hash}function L(){return""}function A(e){return window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)}let B=(0,i.createContext)(()=>()=>{});function N({children:e}){let[t,n]=(0,i.useState)(null);return(0,i.useEffect)(()=>{t&&(t(),n(null))},[t]),!function(){let e=(0,H.usePathname)(),t=(0,i.useRef)(e),[r,n]=(0,i.useState)(null);(0,i.useEffect)(()=>{if(!("startViewTransition"in document))return()=>{};let e=()=>{let e,t=new Promise(t=>{e=t});n([new Promise(e=>{document.startViewTransition(()=>(e(),t))}),e])};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[]),r&&t.current!==e&&(0,i.use)(r[0]);let s=(0,i.useRef)(r);(0,i.useEffect)(()=>{s.current=r},[r]);let o=(0,i.useSyncExternalStore)(A,w,L);(0,i.useEffect)(()=>{t.current=e,s.current&&(s.current[1](),s.current=null)},[o,e])}(),(0,r.jsx)(B.Provider,{value:n,children:e})}let P=(0,i.createContext)(void 0);function C({children:e}){let[t,n]=(0,i.useState)(null),[s,o]=(0,i.useState)(!0),{canUseFunctionalCookies:a,isLoading:h}=function(){let[e,t]=(0,i.useState)(null),[r,n]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{let e;(e=localStorage.getItem("devweb3jogja_cookie_consent"))&&t(JSON.parse(e)),n(!1);let r=e=>{t(e.detail)};return window.addEventListener("cookieConsentUpdated",r),()=>{window.removeEventListener("cookieConsentUpdated",r)}},[]),{preferences:e,isLoading:r,canUseFunctionalCookies:()=>e?.functional??!1,canUseAnalyticsCookies:()=>e?.analytics??!1,canUseMarketingCookies:()=>e?.marketing??!1,updatePreferences:e=>{localStorage.setItem("devweb3jogja_cookie_consent",JSON.stringify(e)),localStorage.setItem("devweb3jogja_cookie_consent_timestamp",Date.now().toString()),t(e),window.dispatchEvent(new CustomEvent("cookieConsentUpdated",{detail:e}))}}}(),l=(0,i.useRef)(null);(0,i.useEffect)(()=>
1{if(h)return;let e=document.cookie.split("; ").find(e=>e.startsWith("devweb3jogja_LOCALE="))?.split("=")[1];if(e&&a())n(e);else if(a()){let e=navigator.language.slice(0,2),t=["en","id","jp"].includes(e)?e:"en";n(t),document.cookie=`devweb3jogja_LOCALE=${t}; path=/; max-age=31536000; SameSite=Lax`}else{let e=navigator.language.slice(0,2);n(["en","id","jp"].includes(e)?e:"en")}o(!1)},[a,h]),(0,i.useEffect)(()=>()=>{l.current&&clearTimeout(l.current)},[]);let c=(0,i.useCallback)(e=>{l.current&&clearTimeout(l.current),t!==e&&(n(e),a()&&(document.cookie=`devweb3jogja_LOCALE=${e}; path=/; max-age=31536000; SameSite=Lax`),l.current=setTimeout(()=>{try{window.location.reload()}catch{window.location.href=window.location.href}},150))},[t,a]);return(0,r.jsx)(P.Provider,{value:{locale:t,setLocale:c,isLoading:s,canSetLocale:a()},children:e})}function I({children:e}){let[t,n]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=()=>{n(window.innerWidth<=600)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let s=t?{duration:.8,easing:e=>Math.min(1,1.001-Math.pow(2,-10*e)),direction:"vertical",gestureDirection:"vertical",smooth:!0,smoothTouch:!0,touchMultiplier:.7,infinite:!1,lerp:.06,wheelMultiplier:1,orientation:"vertical",smoothWheel:!0,syncTouch:!0}:{duration:1.2,easing:e=>Math.min(1,1.001-Math.pow(2,-10*e)),direction:"vertical",gestureDirection:"vertical",smooth:!0,smoothTouch:!1,touchMultiplier:2,infinite:!1,lerp:.1,wheelMultiplier:1,orientation:"vertical",smoothWheel:!0,syncTouch:!0};return(0,r.jsx)(N,{children:(0,r.jsx)(_,{root:!0,options:s,children:(0,r.jsx)(C,{children:e})})})}e.s(["default",()=>I],65973)},38808,e=>{"use strict";var t=e.i(81540),r=e.i(7398);class i extends r.default.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}resetError=()=>{this.setState({hasError:!1,error:void 0})};render(){if(this.state.hasError){if(this.props.fallback){let e=this.props.fallback;return(0,t.jsx)(e,{error:this.state.error,resetError:this.resetError})}return(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-100 p-4",children:(0,t.jsxs)("div",{className:"max-w-sm w-full bg-white rounded-lg shadow p-6 text-center",children:[(0,t.jsx)("div",{className:"text-4xl mb-4",children:"â ï¸"}),(0,t.jsx)("h2",{className:"text-xl font-semibold mb-2",children:"Something went wrong"}),(0,t.jsx)("p",{className:"text-gray-600 text-sm mb-6",children:"An error occurred. Please try again."}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("button",{className:"w-full bg-blue-600 text-white py-2 px-4 rounded hover:bg-blue-700",onClick:this.resetError,children:"Try again"}),(0,t.jsx)("button",{className:"w-full bg-gray-200 text-gray-700 py-2 px-4 rounded hover:bg-gray-300",onClick:()=>window.location.reload(),children:"Reload page"})]})]})})}return this.props.children}}function n(){return e=>{(e.message.includes("removeChild")||e.message.includes("DOM"))&&setTimeout(()=>{window.location.reload()},1e3)}}e.s(["default",0,i,"useErrorHandler",()=>n])}]);
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.