@topwrite/reader 1.0.35 → 1.0.36-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var e,t,r,n,o,i,a={8924:(e,t,r)=>{"use strict";r.d(t,{l_:()=>n.l_,fy:()=>n.fy,De:()=>n.De,$B:()=>n.$B,ql:()=>qo,cu:()=>ya,IA:()=>va,fH:()=>Y,$q:()=>n.$q,aC:()=>n.aC,UG:()=>ss,Hn:()=>N,Sy:()=>Wa,ER:()=>n.ER,oI:()=>n.oI,Lj:()=>n.Lj,q4:()=>Es,rK:()=>n.rK,US:()=>vs,W3:()=>Ha,nC:()=>Ea,vJ:()=>Zn,WA:()=>Sa,iv:()=>_n,He:()=>ys,Ak:()=>Ga,oe:()=>n.oe,V5:()=>bs,CB:()=>n.CB,F4:()=>Yn,_f:()=>Aa,j0:()=>W(),JH:()=>n.JH,FB:()=>n.FB,YB:()=>n.YB,WY:()=>n.WY,zo:()=>Xn,ol:()=>za,r5:()=>fa,UK:()=>ha,bd:()=>qa,r3:()=>pa,CQ:()=>ka,Nr:()=>fs,jr:()=>ls,zX:()=>gs,Rs:()=>ms,y1:()=>na,cw:()=>yr,tT:()=>$a,D2:()=>ps,D9:()=>us,v9:()=>Ua,CM:()=>Va,LU:()=>Da,TC:()=>ja,fB:()=>hs});var n=r(3440),o=r(4760),i=r(4246),a=r(7363),s=r.n(a),c=r(189);function u(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var l="function"==typeof Symbol&&Symbol.observable||"@@observable",f=function(){return Math.random().toString(36).substring(7).split("").join(".")},h={INIT:"@@redux/INIT"+f(),REPLACE:"@@redux/REPLACE"+f(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+f()}};function p(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function d(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(u(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(u(1));return r(d)(e,t)}if("function"!=typeof e)throw new Error(u(2));var o=e,i=t,a=[],s=a,c=!1;function f(){s===a&&(s=a.slice())}function m(){if(c)throw new Error(u(3));return i}function g(e){if("function"!=typeof e)throw new Error(u(4));if(c)throw new Error(u(5));var t=!0;return f(),s.push(e),function(){if(t){if(c)throw new Error(u(6));t=!1,f();var r=s.indexOf(e);s.splice(r,1),a=null}}}function y(e){if(!p(e))throw new Error(u(7));if(void 0===e.type)throw new Error(u(8));if(c)throw new Error(u(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,r=0;r<t.length;r++){(0,t[r])()}return e}function v(e){if("function"!=typeof e)throw new Error(u(10));o=e,y({type:h.REPLACE})}function b(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(u(11));function r(){e.next&&e.next(m())}return r(),{unsubscribe:t(r)}}})[l]=function(){return this},e}return y({type:h.INIT}),(n={dispatch:y,subscribe:g,getState:m,replaceReducer:v})[l]=b,n}function m(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(u(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return n=m.apply(void 0,i)(r.dispatch),(0,c.Z)((0,c.Z)({},r),{},{dispatch:n})}}}var y=r(4649),v=r(8907),b=r(2611),E=s().createContext(null);var w=function(e){e()},x=function(){return w};var S={notify:function(){},get:function(){return[]}};function A(e,t){var r,n=S;function o(){a.onStateChange&&a.onStateChange()}function i(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=function(){var e=x(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:i,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=S)},getListeners:function(){return n}};return a}var k="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;const D=function(e){var t=e.store,r=e.context,n=e.children,o=(0,a.useMemo)((function(){var e=A(t);return{store:t,subscription:e}}),[t]),i=(0,a.useMemo)((function(){return t.getState()}),[t]);k((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,i]);var c=r||E;return s().createElement(c.Provider,{value:o},n)};var C=r(5839),F=r.n(C);r(9272);r(5773);function P(){return(0,a.useContext)(E)}var O=function(e,t){return e===t};function T(e){void 0===e&&(e=E);var t=e===E?P:function(){return(0,a.useContext)(e)};return function(e,r){void 0===r&&(r=O);var n=t(),o=function(e,t,r,n){var o,i=(0,a.useReducer)((function(e){return e+1}),0)[1],s=(0,a.useMemo)((function(){return A(r,n)}),[r,n]),c=(0,a.useRef)(),u=(0,a.useRef)(),l=(0,a.useRef)(),f=(0,a.useRef)(),h=r.getState();try{if(e!==u.current||h!==l.current||c.current){var p=e(h);o=void 0!==f.current&&t(p,f.current)?f.current:p}else o=f.current}catch(e){throw c.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),e}return k((function(){u.current=e,l.current=h,f.current=o,c.current=void 0})),k((function(){function e(){try{var e=r.getState();if(e===l.current)return;var n=u.current(e);if(t(n,f.current))return;f.current=n,l.current=e}catch(e){c.current=e}i()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[r,s]),o}(e,r,n.store,n.subscription);return(0,a.useDebugValue)(o),o}}var j,I=T(),_=r(1533);j=_.unstable_batchedUpdates,w=j;const R="TYPE_SET_STATE",B="TYPE_GET_STATE";function L(e){const t=Object.getPrototypeOf(e);return Object.getOwnPropertyNames(t).filter((e=>!["constructor","onAction","subscription"].includes(e)&&"function"==typeof t[e]&&!e.startsWith("_")))}class N{constructor(){(0,y.Z)(this,"initialState",void 0),(0,y.Z)(this,"state",void 0)}*getState(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return yield{type:B,payload:{models:t}}}setState(e){return{type:R,payload:{fn:e}}}dispatch(e){}}function M(e){return e&&"function"==typeof e.next&&"function"==typeof e.throw}(0,v.Fl)(!1);const H=(e,t,r)=>{for(let n of e)t=n(t,r);return t},z=(e,t)=>{for(let r in e){let n=e[r];e[r]=function(){let e=n(...arguments);if("function"==typeof e)return e(t)}}return e};function U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const o={},i={},a={},s={},c={},u={};for(const r in e){const n=e[r];void 0!==n.initialState?"function"==typeof n.initialState?a[r]=n.initialState(t[r],t):a[r]=(0,b.merge)(n.initialState,t[r]):a[r]=t[r],i[r]={},n.onAction&&(u[r]=(e,t)=>n.onAction(e,t,s[r])),n.subscription&&(c[r]=n.subscription),n.dispatch=function(e){if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];s[r][e](...n)}};const l=L(n);for(let e of l){const t=Object.getPrototypeOf(n)[e],a="".concat(r,"/").concat(e);i[r][e]=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return async e=>{const{dispatch:s,getState:c}=e;let l=0;const f=Object.entries(u).filter((e=>{let[t]=e;return t!==r})).map((e=>{let[,t]=e;return t}));let h=H(f,t.bind(n),a)(...i);const p=async e=>{let t=await e.next();for(;!t.done;){let n,i;if(t.value instanceof Promise)try{n=await t.value}catch(e){i=e}else if(M(t.value))try{n=await p(t.value)}catch(e){i=e}else{let e=t.value,i=e.payload;switch(e.type){case B:const e=c();n=i.models.length>0?i.models.length>1?i.models.map((t=>e[t])):e[i.models[0]]:e;break;case R:let t="".concat(a,"/@@").concat(++l);o[t]=i.fn,s({type:t,name:r}),delete o[t]}}t=i?await e.throw(i):await e.next(n)}return t.value};await p(h)}}}}const l=function(e,t){return(0,v.Uy)(e,(e=>{t.name&&o[t.type]&&("function"==typeof o[t.type]?e[t.name]=(0,v.Uy)(e[t.name],o[t.type]):e[t.name]=o[t.type])}))},f=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||m,h=d(r(l),a,f(g(...n))),{getState:p}=h;for(let[e,t]of Object.entries(i))s[e]=z(t,h);for(let t in c)c[t].call(e[t],s[t],p()[t]);return h.actions=s,h}const $=(0,a.createContext)({actions:{}});function q(e){let{store:t,children:r}=e;return(0,i.jsx)($.Provider,{value:{actions:t.actions},children:(0,i.jsx)(D,{store:t,children:r})})}function V(e,t){return"string"==typeof e||Array.isArray(e)?I((t=>Array.isArray(e)?e:Array(e).reduce(((e,t)=>e[t]),t)),t):I(e,t)}var G=r(6051),W=r.n(G),Q=r(8891);var K=a.createContext(null),Z=(K.Consumer,K.Provider),Y=K;var X=function(e,t){return X=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])},X(e,t)};function J(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}X(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ee=function(){return ee=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ee.apply(this,arguments)};Object.create;function te(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var re,ne,oe;Object.create;function ie(e){return e.type===ne.literal}function ae(e){return e.type===ne.argument}function se(e){return e.type===ne.number}function ce(e){return e.type===ne.date}function ue(e){return e.type===ne.time}function le(e){return e.type===ne.select}function fe(e){return e.type===ne.plural}function he(e){return e.type===ne.pound}function pe(e){return e.type===ne.tag}function de(e){return!(!e||"object"!=typeof e||e.type!==oe.number)}function me(e){return!(!e||"object"!=typeof e||e.type!==oe.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(re||(re={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(ne||(ne={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(oe||(oe={}));var ge=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ye=/(?:[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;function ve(e){var t={};return e.replace(ye,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var be=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,we=/^(@+)?(\+|#+)?[rs]?$/g,xe=/(\*)(0+)|(#+)(0+)|(0+)/g,Se=/^(0+)$/;function Ae(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(we,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function ke(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 De(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)),!Se.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ce(e){var t=ke(e);return t||{}}function Fe(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.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=o.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=ee(ee(ee({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return ee(ee({},e),Ce(t))}),{}));continue;case"engineering":t=ee(ee(ee({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return ee(ee({},e),Ce(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(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(xe,(function(e,r,n,o,i,a){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Se.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Ee.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ee,(function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var i=o.options[0];"w"===i?t=ee(ee({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=ee(ee({},t),Ae(i)))}else if(we.test(o.stem))t=ee(ee({},t),Ae(o.stem));else{var a=ke(o.stem);a&&(t=ee(ee({},t),a));var s=De(o.stem);s&&(t=ee(ee({},t),s))}}return t}var Pe,Oe={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function Te(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Oe[r||""]||Oe[n||""]||Oe["".concat(n,"-001")]||Oe["001"])[0]}var je=new RegExp("^".concat(ge.source,"*")),Ie=new RegExp("".concat(ge.source,"*$"));function _e(e,t){return{start:e,end:t}}var Re=!!String.prototype.startsWith,Be=!!String.fromCodePoint,Le=!!Object.fromEntries,Ne=!!String.prototype.codePointAt,Me=!!String.prototype.trimStart,He=!!String.prototype.trimEnd,ze=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ue=!0;try{Ue="a"===(null===(Pe=Ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Pe?void 0:Pe[0])}catch(_r){Ue=!1}var $e,qe=Re?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ve=Be?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Ge=Le?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},We=Ne?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},Qe=Me?function(e){return e.trimStart()}:function(e){return e.replace(je,"")},Ke=He?function(e){return e.trimEnd()}:function(e){return e.replace(Ie,"")};function Ze(e,t){return new RegExp(e,t)}if(Ue){var Ye=Ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$e=function(e,t){var r;return Ye.lastIndex=t,null!==(r=Ye.exec(e)[1])&&void 0!==r?r:""}}else $e=function(e,t){for(var r=[];;){var n=We(e,t);if(void 0===n||tt(n)||rt(n))break;r.push(n),t+=n>=65536?2:1}return Ve.apply(void 0,r)};var Xe=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 n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(re.UNMATCHED_CLOSING_TAG,_e(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Je(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:ne.pound,location:_e(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ne.literal,value:"<".concat(n,"/>"),location:_e(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Je(this.char()))return this.error(re.INVALID_TAG,_e(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(re.UNMATCHED_CLOSING_TAG,_e(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ne.tag,value:n,children:i,location:_e(r,this.clonePosition())},err:null}:this.error(re.INVALID_TAG,_e(a,this.clonePosition())))}return this.error(re.UNCLOSED_TAG,_e(r,this.clonePosition()))}return this.error(re.INVALID_TAG,_e(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&et(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{var i=this.tryParseUnquoted(e,t);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=_e(r,this.clonePosition());return{val:{type:ne.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Je(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Ve.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(),Ve(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(re.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(re.EMPTY_ARGUMENT,_e(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(re.MALFORMED_ARGUMENT,_e(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(re.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ne.argument,value:n,location:_e(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(re.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(re.MALFORMED_ARGUMENT,_e(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=$e(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:_e(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(re.EXPECT_ARGUMENT_TYPE,_e(i,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=Ke(y.val)).length)return this.error(re.EXPECT_ARGUMENT_STYLE,_e(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:_e(u,this.clonePosition())}}if((v=this.tryParseArgumentClose(n)).err)return v;var l=_e(n,this.clonePosition());if(c&&qe(null==c?void 0:c.style,"::",0)){var f=Qe(c.style.slice(2));if("number"===a)return(y=this.parseNumberSkeletonFromString(f,c.styleLocation)).err?y:{val:{type:ne.number,value:r,location:l,style:y.val},err:null};if(0===f.length)return this.error(re.EXPECT_DATE_TIME_SKELETON,l);var h=f;this.locale&&(h=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=Te(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===o?"H":o}return r}(f,this.locale));var p={type:oe.dateTime,pattern:h,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?ve(h):{}};return{val:{type:"date"===a?ne.date:ne.time,value:r,location:l,style:p},err:null}}return{val:{type:"number"===a?ne.number:"date"===a?ne.date:ne.time,value:r,location:l,style:null!==(o=null==c?void 0:c.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(re.EXPECT_SELECT_ARGUMENT_OPTIONS,_e(d,ee({},d)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(re.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(re.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,re.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,a,t,m);if(b.err)return b;if((v=this.tryParseArgumentClose(n)).err)return v;var E=_e(n,this.clonePosition());return"select"===a?{val:{type:ne.select,value:r,options:Ge(b.val),location:E},err:null}:{val:{type:ne.plural,value:r,options:Ge(b.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:E},err:null};default:return this.error(re.INVALID_ARGUMENT_TYPE,_e(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(re.EXPECT_ARGUMENT_CLOSING_BRACE,_e(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(re.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_e(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 new Error("Number skeleton cannot be empty");for(var t=e.split(be).filter((function(e){return e.length>0})),r=[],n=0,o=t;n<o.length;n++){var i=o[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var a=i[0],s=i.slice(1),c=0,u=s;c<u.length;c++)if(0===u[c].length)throw new Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}(e)}catch(e){return this.error(re.INVALID_NUMBER_SKELETON,t)}return{val:{type:oe.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Fe(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o,i=!1,a=[],s=new Set,c=n.value,u=n.location;;){if(0===c.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(re.EXPECT_PLURAL_ARGUMENT_SELECTOR,re.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=_e(l,this.clonePosition()),c=this.message.slice(l.offset,this.offset())}if(s.has(c))return this.error("select"===t?re.DUPLICATE_SELECT_ARGUMENT_SELECTOR:re.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?re.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:re.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_e(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var d=this.tryParseArgumentClose(h);if(d.err)return d;a.push([c,{value:p.val,location:_e(h,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===a.length?this.error("select"===t?re.EXPECT_SELECT_ARGUMENT_SELECTOR:re.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(re.MISSING_OTHER_CLAUSE,_e(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=_e(n,this.clonePosition());return o?ze(i*=r)?{val:i,err:null}:this.error(t,s):this.error(e,s)},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=We(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(qe(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()&&tt(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 Je(e){return e>=97&&e<=122||e>=65&&e<=90}function et(e){return 45===e||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}function tt(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function rt(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function nt(e){e.forEach((function(e){if(delete e.location,le(e)||fe(e))for(var t in e.options)delete e.options[t].location,nt(e.options[t].value);else se(e)&&de(e.style)||(ce(e)||ue(e))&&me(e.style)?delete e.style.location:pe(e)&&nt(e.children)}))}function ot(e,t){void 0===t&&(t={}),t=ee({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Xe(e,t).parse();if(r.err){var n=SyntaxError(re[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||nt(r.val),r.val}function it(e,t){var r=t&&t.cache?t.cache:pt,n=t&&t.serializer?t.serializer:lt;return(t&&t.strategy?t.strategy:ut)(e,{cache:r,serializer:n})}function at(e,t,r,n){var o=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),i=t.get(o);return void 0===i&&(i=e.call(this,n),t.set(o,i)),i}function st(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function ct(e,t,r,n,o){return r.bind(t,e,n,o)}function ut(e,t){return ct(e,this,1===e.length?at:st,t.cache.create(),t.serializer)}var lt=function(){return JSON.stringify(arguments)};function ft(){this.cache=Object.create(null)}ft.prototype.get=function(e){return this.cache[e]},ft.prototype.set=function(e,t){this.cache[e]=t};var ht,pt={create:function(){return new ft}},dt={variadic:function(e,t){return ct(e,this,st,t.cache.create(),t.serializer)},monadic:function(e,t){return ct(e,this,at,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ht||(ht={}));var mt,gt=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return J(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),yt=function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ht.INVALID_VALUE,o)||this}return J(t,e),t}(gt),vt=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),ht.INVALID_VALUE,n)||this}return J(t,e),t}(gt),bt=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),ht.MISSING_VALUE,r)||this}return J(t,e),t}(gt);function Et(e){return"function"==typeof e}function wt(e,t,r,n,o,i,a){if(1===e.length&&ie(e[0]))return[{type:mt.literal,value:e[0].value}];for(var s=[],c=0,u=e;c<u.length;c++){var l=u[c];if(ie(l))s.push({type:mt.literal,value:l.value});else if(he(l))"number"==typeof i&&s.push({type:mt.literal,value:r.getNumberFormat(t).format(i)});else{var f=l.value;if(!o||!(f in o))throw new bt(f,a);var h=o[f];if(ae(l))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?mt.literal:mt.object,value:h});else if(ce(l)){var p="string"==typeof l.style?n.date[l.style]:me(l.style)?l.style.parsedOptions:void 0;s.push({type:mt.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(ue(l)){p="string"==typeof l.style?n.time[l.style]:me(l.style)?l.style.parsedOptions:n.time.medium;s.push({type:mt.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(se(l)){(p="string"==typeof l.style?n.number[l.style]:de(l.style)?l.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),s.push({type:mt.literal,value:r.getNumberFormat(t,p).format(h)})}else{if(pe(l)){var d=l.children,m=l.value,g=o[m];if(!Et(g))throw new vt(m,"function",a);var y=g(wt(d,t,r,n,o,i).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),s.push.apply(s,y.map((function(e){return{type:"string"==typeof e?mt.literal:mt.object,value:e}})))}if(le(l)){if(!(v=l.options[h]||l.options.other))throw new yt(l.value,h,Object.keys(l.options),a);s.push.apply(s,wt(v.value,t,r,n,o))}else if(fe(l)){var v;if(!(v=l.options["=".concat(h)])){if(!Intl.PluralRules)throw new gt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ht.MISSING_INTL_API,a);var b=r.getPluralRules(t,{type:l.pluralType}).select(h-(l.offset||0));v=l.options[b]||l.options.other}if(!v)throw new yt(l.value,h,Object.keys(l.options),a);s.push.apply(s,wt(v.value,t,r,n,o,h-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===mt.literal&&t.type===mt.literal?r.value+=t.value:e.push(t),e}),[])}(s)}function xt(e,t){return t?Object.keys(e).reduce((function(r,n){var o,i;return r[n]=(o=e[n],(i=t[n])?ee(ee(ee({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=ee(ee({},o[t]),i[t]||{}),e}),{})):o),r}),ee({},e)):e}function St(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(mt||(mt={}));var At,kt=function(){function e(t,r,n,o){var i,a=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===mt.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 wt(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale.toString()}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=xt(e.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,te([void 0],t,!1)))}),{cache:St(i.number),strategy:dt.variadic}),getDateTimeFormat:it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,te([void 0],t,!1)))}),{cache:St(i.dateTime),strategy:dt.variadic}),getPluralRules:it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,te([void 0],t,!1)))}),{cache:St(i.pluralRules),strategy:dt.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=ot,e.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"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(At||(At={}));var Dt=function(e){function t(r,n,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n," \n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return J(t,e),t}(Error),Ct=function(e){function t(t,r){return e.call(this,At.UNSUPPORTED_FORMATTER,t,r)||this}return J(t,e),t}(Dt),Ft=function(e){function t(t,r){return e.call(this,At.INVALID_CONFIG,t,r)||this}return J(t,e),t}(Dt),Pt=function(e){function t(t,r){return e.call(this,At.MISSING_DATA,t,r)||this}return J(t,e),t}(Dt),Ot=function(e){function t(t,r,n){return e.call(this,At.FORMAT_ERROR,"".concat(t," \nLocale: ").concat(r,"\n"),n)||this}return J(t,e),t}(Dt),Tt=function(e){function t(t,r,n,o){var i=e.call(this,"".concat(t," \nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description," \n"),r,o)||this;return i.descriptor=n,i}return J(t,e),t}(Ot),jt=function(e){function t(t,r){var n=e.call(this,At.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message":"id"," as fallback."))||this;return n.descriptor=t,n}return J(t,e),t}(Dt);function It(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var _t={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function Rt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Bt(e,t,r,n){var o,i=e&&e[t];if(i&&(o=i[r]),o)return o;n(new Ct("No ".concat(t," format named: ").concat(r)))}function Lt(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function Nt(e){Lt(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Mt=ee(ee({},_t),{textComponent:a.Fragment});function Ht(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=ee({timeZone:t},e[n]),r}),{})}function zt(e,t){return Object.keys(ee(ee({},e),t)).reduce((function(r,n){return r[n]=ee(ee({},e[n]||{}),t[n]||{}),r}),{})}function Ut(e,t){if(!t)return e;var r=kt.formats;return ee(ee(ee({},r),e),{date:zt(Ht(r.date,t),Ht(e.date||{},t)),time:zt(Ht(r.time,t),Ht(e.time||{},t))})}function $t(e,t,r,n,o){var i=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,u=e.defaultFormats,l=e.fallbackOnEmptyString,f=e.onError,h=e.timeZone,p=e.defaultRichTextElements;void 0===r&&(r={id:""});var d=r.id,m=r.defaultMessage;Lt(!!d,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(d),y=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(y)&&1===y.length&&y[0].type===ne.literal)return y[0].value;if(!n&&y&&"string"==typeof y&&!p)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=ee(ee({},p),n||{}),a=Ut(a,h),u=Ut(u,h),!y){if(!1===l&&""===y)return y;if((!m||i&&i.toLowerCase()!==c.toLowerCase())&&f(new jt(r,i)),m)try{return t.getMessageFormat(m,c,u,o).format(n)}catch(e){return f(new Tt('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),i,r,e)),"string"==typeof m?m:g}return g}try{return t.getMessageFormat(y,i,a,ee({formatters:t},o||{})).format(n)}catch(e){f(new Tt('Error formatting message: "'.concat(g,'", using ').concat(m?"default message":"id"," as fallback."),i,r,e))}if(m)try{return t.getMessageFormat(m,c,u,o).format(n)}catch(e){f(new Tt('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),i,r,e))}return"string"==typeof y?y:"string"==typeof m?m:g}var qt=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Vt(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,s=a&&Bt(o,"number",a,i)||{};return t(n,It(r,qt,s))}function Gt(e,t,r,n){void 0===n&&(n={});try{return Vt(e,t,n).format(r)}catch(t){e.onError(new Dt(At.FORMAT_ERROR,"Error formatting number.",t))}return String(r)}function Wt(e,t,r,n){void 0===n&&(n={});try{return Vt(e,t,n).formatToParts(r)}catch(t){e.onError(new Dt(At.FORMAT_ERROR,"Error formatting number.",t))}return[]}var Qt=["numeric","style"];function Kt(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new gt('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',ht.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&Bt(o,"relative",a,i)||{};return t(n,It(r,Qt,s))}(e,t,o).format(r,n)}catch(t){e.onError(new Ot("Error formatting relative time.",e.locale,t))}return String(r)}var Zt=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function Yt(e,t,r,n){var o=e.locale,i=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var c=n.format,u=ee(ee({},s&&{timeZone:s}),c&&Bt(i,t,c,a)),l=It(n,Zt,u);return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=ee(ee({},l),{hour:"numeric",minute:"numeric"})),r(o,l)}function Xt(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Yt(e,"date",t,a).format(s)}catch(t){e.onError(new Dt(At.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function Jt(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Yt(e,"time",t,a).format(s)}catch(t){e.onError(new Dt(At.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function er(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=r[2],s=void 0===a?{}:a,c=e.timeZone,u=e.locale,l=e.onError,f=It(s,Zt,c?{timeZone:c}:{});try{return t(u,f).formatRange(o,i)}catch(e){l(new Dt(At.FORMAT_ERROR,"Error formatting date time range.",e))}return String(o)}function tr(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Yt(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new Dt(At.FORMAT_ERROR,"Error formatting date.",t))}return[]}function rr(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Yt(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new Dt(At.FORMAT_ERROR,"Error formatting time.",t))}return[]}var nr=["localeMatcher","type"];function or(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.PluralRules||i(new gt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ht.MISSING_INTL_API));var a=It(n,nr);try{return t(o,a).select(r)}catch(e){i(new Ot("Error formatting plural.",o,e))}return"other"}var ir=["localeMatcher","type","style"],ar=Date.now();function sr(e,t,r,n){void 0===n&&(n={});var o=cr(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===o.length?o[0]:o}function cr(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.ListFormat||i(new gt('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',ht.MISSING_INTL_API));var a=It(n,ir);try{var s={},c=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(ar,"_").concat(e,"_").concat(ar)}(t);return s[r]=e,r}return String(e)}));return t(o,a).formatToParts(c).map((function(e){return"literal"===e.type?e:ee(ee({},e),{value:s[e.value]||e.value})}))}catch(e){i(new Dt(At.FORMAT_ERROR,"Error formatting list.",e))}return r}var ur=["localeMatcher","style","type","fallback"];function lr(e,t,r,n){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new gt('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',ht.MISSING_INTL_API));var a=It(n,ur);try{return t(o,a).of(r)}catch(e){i(new Dt(At.FORMAT_ERROR,"Error formatting display name.",e))}}function fr(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}function hr(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,te([void 0],t,!1)))}),{cache:Rt(e.dateTime),strategy:dt.variadic}),i=it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,te([void 0],t,!1)))}),{cache:Rt(e.number),strategy:dt.variadic}),a=it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,te([void 0],t,!1)))}),{cache:Rt(e.pluralRules),strategy:dt.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:it((function(e,t,r,n){return new kt(e,t,r,ee({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:a}},n||{}))}),{cache:Rt(e.message),strategy:dt.variadic}),getRelativeTimeFormat:it((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,te([void 0],e,!1)))}),{cache:Rt(e.relativeTime),strategy:dt.variadic}),getPluralRules:a,getListFormat:it((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,te([void 0],e,!1)))}),{cache:Rt(e.list),strategy:dt.variadic}),getDisplayNames:it((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,te([void 0],e,!1)))}),{cache:Rt(e.displayNames),strategy:dt.variadic})}}(t),n=ee(ee({},_t),e),o=n.locale,i=n.defaultLocale,a=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new Pt('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new Pt('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new Ft('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),fr(n),ee(ee({},n),{formatters:r,formatNumber:Gt.bind(null,n,r.getNumberFormat),formatNumberToParts:Wt.bind(null,n,r.getNumberFormat),formatRelativeTime:Kt.bind(null,n,r.getRelativeTimeFormat),formatDate:Xt.bind(null,n,r.getDateTimeFormat),formatDateToParts:tr.bind(null,n,r.getDateTimeFormat),formatTime:Jt.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:er.bind(null,n,r.getDateTimeFormat),formatTimeToParts:rr.bind(null,n,r.getDateTimeFormat),formatPlural:or.bind(null,n,r.getPluralRules),formatMessage:$t.bind(null,n,r),$t:$t.bind(null,n,r),formatList:sr.bind(null,n,r.getListFormat),formatListToParts:cr.bind(null,n,r.getListFormat),formatDisplayName:lr.bind(null,n,r.getDisplayNames)})}function pr(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function dr(e){return e?Object.keys(e).reduce((function(t,r){var n,o=e[r];return t[r]=Et(o)?(n=o,function(e){return n(a.Children.toArray(e))}):o,t}),{}):e}var mr=function(e,t,r,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var s=dr(n),c=$t.apply(void 0,te([e,t,r,s],o,!1));return Array.isArray(c)?a.Children.toArray(c):c},gr=function(e,t){var r=e.defaultRichTextElements,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["defaultRichTextElements"]),o=dr(r),i=hr(ee(ee(ee({},Mt),n),{defaultRichTextElements:o}),t);return ee(ee({},i),{formatMessage:mr.bind(null,{locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o},i.formatters)})};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:gr(pr(t.props),t.cache),prevConfig:pr(t.props)},t}J(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=pr(e);return function(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=r[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}(r,o)?null:{intl:gr(o,n),prevConfig:o}},t.prototype.render=function(){return Nt(this.state.intl),a.createElement(Z,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Mt}(a.PureComponent);function yr(){var e=a.useContext(Y);return Nt(e),e}var vr=r(669),br=r(2348),Er=r(4445),wr=r.n(Er);const xr=function(e){function t(e,n,c,u,h){for(var p,d,m,g,E,x=0,S=0,A=0,k=0,D=0,j=0,_=m=p=0,B=0,L=0,N=0,M=0,H=c.length,z=H-1,U="",$="",q="",V="";B<H;){if(d=c.charCodeAt(B),B===z&&0!==S+k+A+x&&(0!==S&&(d=47===S?10:47),k=A=x=0,H++,z++),0===S+k+A+x){if(B===z&&(0<L&&(U=U.replace(f,"")),0<U.trim().length)){switch(d){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(B)}d=59}switch(d){case 123:for(p=(U=U.trim()).charCodeAt(0),m=1,M=++B;B<H;){switch(d=c.charCodeAt(B)){case 123:m++;break;case 125:m--;break;case 47:switch(d=c.charCodeAt(B+1)){case 42:case 47:e:{for(_=B+1;_<z;++_)switch(c.charCodeAt(_)){case 47:if(42===d&&42===c.charCodeAt(_-1)&&B+2!==_){B=_+1;break e}break;case 10:if(47===d){B=_+1;break e}}B=_}}break;case 91:d++;case 40:d++;case 34:case 39:for(;B++<z&&c.charCodeAt(B)!==d;);}if(0===m)break;B++}if(m=c.substring(M,B),0===p&&(p=(U=U.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(U=U.replace(f,"")),d=U.charCodeAt(1)){case 100:case 109:case 115:case 45:L=n;break;default:L=T}if(M=(m=t(n,L,m,d,h+1)).length,0<I&&(E=s(3,m,L=r(T,U,N),n,F,C,M,d,h,u),U=L.join(""),void 0!==E&&0===(M=(m=E.trim()).length)&&(d=0,m="")),0<M)switch(d){case 115:U=U.replace(w,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(y,"$1 $2"))+"{"+m+"}",m=1===O||2===O&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===u&&($+=m,m="")}else m=""}else m=t(n,r(n,U,N),m,u,h+1);q+=m,m=N=L=_=p=0,U="",d=c.charCodeAt(++B);break;case 125:case 59:if(1<(M=(U=(0<L?U.replace(f,""):U).trim()).length))switch(0===_&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(M=(U=U.replace(" ",":")).length),0<I&&void 0!==(E=s(1,U,n,e,F,C,$.length,u,h,u))&&0===(M=(U=E.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),d=U.charCodeAt(1),p){case 0:break;case 64:if(105===d||99===d){V+=U+c.charAt(B);break}default:58!==U.charCodeAt(M-1)&&($+=o(U,p,d,U.charCodeAt(2)))}N=L=_=p=0,U="",d=c.charCodeAt(++B)}}switch(d){case 13:case 10:47===S?S=0:0===1+p&&107!==u&&0<U.length&&(L=1,U+="\0"),0<I*R&&s(0,U,n,e,F,C,$.length,u,h,u),C=1,F++;break;case 59:case 125:if(0===S+k+A+x){C++;break}default:switch(C++,g=c.charAt(B),d){case 9:case 32:if(0===k+x+S)switch(D){case 44:case 58:case 9:case 32:g="";break;default:32!==d&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===k+S+x&&(L=N=1,g="\f"+g);break;case 108:if(0===k+S+x+P&&0<_)switch(B-_){case 2:112===D&&58===c.charCodeAt(B-3)&&(P=D);case 8:111===j&&(P=j)}break;case 58:0===k+S+x&&(_=B);break;case 44:0===S+A+k+x&&(L=1,g+="\r");break;case 34:case 39:0===S&&(k=k===d?0:0===k?d:k);break;case 91:0===k+S+A&&x++;break;case 93:0===k+S+A&&x--;break;case 41:0===k+S+x&&A--;break;case 40:if(0===k+S+x){if(0===p)if(2*D+3*j==533);else p=1;A++}break;case 64:0===S+A+k+x+_+m&&(m=1);break;case 42:case 47:if(!(0<k+x+A))switch(S){case 0:switch(2*d+3*c.charCodeAt(B+1)){case 235:S=47;break;case 220:M=B,S=42}break;case 42:47===d&&42===D&&M+2!==B&&(33===c.charCodeAt(M+2)&&($+=c.substring(M,B+1)),g="",S=0)}}0===S&&(U+=g)}j=D,D=d,B++}if(0<(M=$.length)){if(L=n,0<I&&(void 0!==(E=s(2,$,L,e,F,C,M,u,h,u))&&0===($=E).length))return V+$+q;if($=L.join(",")+"{"+$+"}",0!=O*P){switch(2!==O||i($,2)||(P=0),P){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(v,"::-webkit-input-$1")+$.replace(v,"::-moz-$1")+$.replace(v,":-ms-input-$1")+$}P=0}}return V+$+q}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===O||2===O&&i(c,1)?"-webkit-"+c+c:c}if(0===O||2===O&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(D,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(h,":-webkit-")+a.replace(h,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(E,"tb");break;case 232:c=a.replace(E,"tb-rl");break;case 220:c=a.replace(E,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),_(2!==t?n:n.replace(A,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,l){for(var f,h=0,p=t;h<I;++h)switch(f=j[h].call(u,e,p,r,n,o,i,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(_=null,e?"function"!=typeof e?O=1:(O=2,_=e):O=0),c}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<I){var o=s(-1,r,n,n,F,C,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(T,n,r,0,0);return 0<I&&(void 0!==(o=s(-2,i,n,n,F,C,i.length,0,0,0))&&(i=o)),"",P=0,C=F=1,i}var l=/^\0+/g,f=/[\0\r\f]/g,h=/: */g,p=/zoo|gra/,d=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,S=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,D=/([^-])(image-set\()/,C=1,F=1,P=0,O=1,T=[],j=[],I=0,_=null,R=0;return u.use=function e(t){switch(t){case void 0:case null:I=j.length=0;break;default:if("function"==typeof t)j[I++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},u.set=c,void 0!==e&&c(e),u};const Sr={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const Ar=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}};var kr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const Dr=Ar((function(e){return kr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Cr=r(7061);function Fr(){return(Fr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Pr=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},Or=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,br.typeOf)(e)},Tr=Object.freeze([]),jr=Object.freeze({});function Ir(e){return"function"==typeof e}function _r(e){return e.displayName||e.name||"Component"}function Rr(e){return e&&"string"==typeof e.styledComponentId}var Br=void 0!==Cr&&(Cr.env.REACT_APP_SC_ATTR||Cr.env.SC_ATTR)||"data-styled",Lr="undefined"!=typeof window&&"HTMLElement"in window,Nr=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==Cr&&void 0!==Cr.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==Cr.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==Cr.env.REACT_APP_SC_DISABLE_SPEEDY&&Cr.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==Cr&&void 0!==Cr.env.SC_DISABLE_SPEEDY&&""!==Cr.env.SC_DISABLE_SPEEDY&&("false"!==Cr.env.SC_DISABLE_SPEEDY&&Cr.env.SC_DISABLE_SPEEDY)),Mr={};function Hr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var zr=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&Hr(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),Ur=new Map,$r=new Map,qr=1,Vr=function(e){if(Ur.has(e))return Ur.get(e);for(;$r.has(qr);)qr++;var t=qr++;return Ur.set(e,t),$r.set(t,e),t},Gr=function(e){return $r.get(e)},Wr=function(e,t){t>=qr&&(qr=t+1),Ur.set(e,t),$r.set(t,e)},Qr="style["+Br+'][data-styled-version="5.3.5"]',Kr=new RegExp("^"+Br+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Zr=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Yr=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(Kr);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(Wr(u,c),Zr(e,u,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},Xr=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Jr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(Br))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Br,"active"),n.setAttribute("data-styled-version","5.3.5");var a=Xr();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},en=function(){function e(e){var t=this.element=Jr(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}Hr(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),tn=function(){function e(e){var t=this.element=Jr(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),rn=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),nn=Lr,on={isServer:!Lr,useCSSOMInjection:!Nr},an=function(){function e(e,t,r){void 0===e&&(e=jr),void 0===t&&(t={}),this.options=Fr({},on,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Lr&&nn&&(nn=!1,function(e){for(var t=document.querySelectorAll(Qr),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(Br)&&(Yr(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return Vr(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Fr({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new rn(o):n?new en(o):new tn(o),new zr(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Vr(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Vr(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Vr(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=Gr(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=Br+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),sn=/(a)(d)/gi,cn=function(e){return String.fromCharCode(e+(e>25?39:97))};function un(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=cn(t%52)+r;return(cn(t%52)+r).replace(sn,"$1-$2")}var ln=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},fn=function(e){return ln(5381,e)};function hn(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ir(r)&&!Rr(r))return!1}return!0}var pn=fn("5.3.5"),dn=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&hn(e),this.componentId=t,this.baseHash=ln(pn,t),this.baseStyle=r,an.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=jn(this.rules,e,t,r).join(""),a=un(ln(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=ln(this.baseHash,r.hash),l="",f=0;f<c;f++){var h=this.rules[f];if("string"==typeof h)l+=h;else if(h){var p=jn(h,e,t,r),d=Array.isArray(p)?p.join(""):p;u=ln(u,d+f),l+=d}}if(l){var m=un(u>>>0);if(!t.hasNameForId(n,m)){var g=r(l,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),mn=/^\s*\/\/.*$/gm,gn=[":","[",".","#"];function yn(e){var t,r,n,o,i=void 0===e?jr:e,a=i.options,s=void 0===a?jr:a,c=i.plugins,u=void 0===c?Tr:c,l=new xr(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,n,i){return 0===n&&-1!==gn.indexOf(i[r.length])||i.match(o)?e:"."+t};function d(e,i,a,s){void 0===s&&(s="&");var c=e.replace(mn,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),l(a||!i?"":i,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),d.hash=u.length?u.reduce((function(e,t){return t.name||Hr(15),ln(e,t.name)}),5381).toString():"",d}var vn=s().createContext(),bn=(vn.Consumer,s().createContext()),En=(bn.Consumer,new an),wn=yn();function xn(){return(0,a.useContext)(vn)||En}function Sn(){return(0,a.useContext)(bn)||wn}function An(e){var t=(0,a.useState)(e.stylisPlugins),r=t[0],n=t[1],o=xn(),i=(0,a.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,a.useMemo)((function(){return yn({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,a.useEffect)((function(){wr()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),s().createElement(vn.Provider,{value:i},s().createElement(bn.Provider,{value:c},e.children))}var kn=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=wn);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return Hr(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=wn),this.name+e.hash},e}(),Dn=/([A-Z])/,Cn=/([A-Z])/g,Fn=/^ms-/,Pn=function(e){return"-"+e.toLowerCase()};function On(e){return Dn.test(e)?e.replace(Cn,Pn).replace(Fn,"-ms-"):e}var Tn=function(e){return null==e||!1===e||""===e};function jn(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=jn(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Tn(e)?"":Rr(e)?"."+e.styledComponentId:Ir(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:jn(e(t),t,r,n):e instanceof kn?r?(e.inject(r,n),e.getName(n)):e:Or(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Tn(t[a])&&(Array.isArray(t[a])&&t[a].isCss||Ir(t[a])?i.push(On(a)+":",t[a],";"):Or(t[a])?i.push.apply(i,e(t[a],a)):i.push(On(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in Sr?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var c}var In=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function _n(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Ir(e)||Or(e)?In(jn(Pr(Tr,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:In(jn(Pr(e,r)))}new Set;var Rn=function(e,t,r){return void 0===r&&(r=jr),e.theme!==r.theme&&e.theme||t||r.theme},Bn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ln=/(^-|-$)/g;function Nn(e){return e.replace(Bn,"-").replace(Ln,"")}var Mn=function(e){return un(fn(e)>>>0)};function Hn(e){return"string"==typeof e&&!0}var zn=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Un=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function $n(e,t,r){var n=e[r];zn(t)&&zn(n)?qn(n,t):e[r]=t}function qn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(zn(a))for(var s in a)Un(s)&&$n(e,a[s],s)}return e}var Vn=s().createContext();Vn.Consumer;var Gn={};function Wn(e,t,r){var n=Rr(e),o=!Hn(e),i=t.attrs,c=void 0===i?Tr:i,u=t.componentId,l=void 0===u?function(e,t){var r="string"!=typeof e?"sc":Nn(e);Gn[r]=(Gn[r]||0)+1;var n=r+"-"+Mn("5.3.5"+r+Gn[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):u,f=t.displayName,h=void 0===f?function(e){return Hn(e)?"styled."+e:"Styled("+_r(e)+")"}(e):f,p=t.displayName&&t.componentId?Nn(t.displayName)+"-"+t.componentId:t.componentId||l,d=n&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,m=t.shouldForwardProp;n&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var g,y=new dn(r,p,n?e.componentStyle:void 0),v=y.isStatic&&0===c.length,b=function(e,t){return function(e,t,r,n){var o=e.attrs,i=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,l=e.styledComponentId,f=e.target,h=function(e,t,r){void 0===e&&(e=jr);var n=Fr({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in Ir(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(Rn(t,(0,a.useContext)(Vn),s)||jr,t,o),p=h[0],d=h[1],m=function(e,t,r,n){var o=xn(),i=Sn();return t?e.generateAndInjectStyles(jr,o,i):e.generateAndInjectStyles(r,o,i)}(i,n,p),g=r,y=d.$as||t.$as||d.as||t.as||f,v=Hn(y),b=d!==t?Fr({},t,{},d):t,E={};for(var w in b)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?E.as=b[w]:(u?u(w,Dr,y):!v||Dr(w))&&(E[w]=b[w]));return t.style&&d.style!==t.style&&(E.style=Fr({},t.style,{},d.style)),E.className=Array.prototype.concat(c,l,m!==l?m:null,t.className,d.className).filter(Boolean).join(" "),E.ref=g,(0,a.createElement)(y,E)}(g,e,t,v)};return b.displayName=h,(g=s().forwardRef(b)).attrs=d,g.componentStyle=y,g.displayName=h,g.shouldForwardProp=m,g.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Tr,g.styledComponentId=p,g.target=n?e.target:e,g.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Hn(e)?e:Nn(_r(e)));return Wn(e,Fr({},o,{attrs:d,componentId:i}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?qn({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},o&&F()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var Qn=function(e){return function e(t,r,n){if(void 0===n&&(n=jr),!(0,br.isValidElementType)(r))return Hr(1,String(r));var o=function(){return t(r,n,_n.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,Fr({},n,{},o))},o.attrs=function(o){return e(t,r,Fr({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(Wn,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Qn[e]=Qn(e)}));var Kn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=hn(e),an.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(jn(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&an.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Zn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=_n.apply(void 0,[e].concat(r)),i="sc-global-"+Mn(JSON.stringify(o)),c=new Kn(o,i);function u(e){var t=xn(),r=Sn(),n=(0,a.useContext)(Vn),o=(0,a.useRef)(t.allocateGSInstance(i)).current;return t.server&&l(o,e,t,n,r),(0,a.useLayoutEffect)((function(){if(!t.server)return l(o,e,t,n,r),function(){return c.removeStyles(o,t)}}),[o,e,t,n,r]),null}function l(e,t,r,n,o){if(c.isStatic)c.renderStyles(e,Mr,r,o);else{var i=Fr({},t,{theme:Rn(t,n,u.defaultProps)});c.renderStyles(e,i,r,o)}}return s().memo(u)}function Yn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=_n.apply(void 0,[e].concat(r)).join(""),i=Mn(o);return new kn(i,o)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=Xr();return"<style "+[r&&'nonce="'+r+'"',Br+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?Hr(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return Hr(2);var r=((t={})[Br]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=Xr();return n&&(r.nonce=n),[s().createElement("style",Fr({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new an({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?Hr(2):s().createElement(An,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return Hr(3)}}();const Xn=Qn;var Jn=r(3615),eo=r.n(Jn),to=r(4335),ro=r.n(to),no=r(3996),oo=r.n(no);function io(){return(io=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ao(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,so(e,t)}function so(e,t){return(so=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function co(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}var uo={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},lo={rel:["amphtml","canonical","alternate"]},fo={type:["application/ld+json"]},ho={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},po=Object.keys(uo).map((function(e){return uo[e]})),mo={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},go=Object.keys(mo).reduce((function(e,t){return e[mo[t]]=t,e}),{}),yo=function(e,t){for(var r=e.length-1;r>=0;r-=1){var n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},vo=function(e){var t=yo(e,uo.TITLE),r=yo(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,(function(){return t}));var n=yo(e,"defaultTitle");return t||n||void 0},bo=function(e){return yo(e,"onChangeClientState")||function(){}},Eo=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return io({},e,t)}),{})},wo=function(e,t){return t.filter((function(e){return void 0!==e[uo.BASE]})).map((function(e){return e[uo.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),o=0;o<n.length;o+=1){var i=n[o].toLowerCase();if(-1!==e.indexOf(i)&&r[i])return t.concat(r)}return t}),[])},xo=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var o={};r.filter((function(e){for(var r,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||"rel"===r&&"canonical"===e[r].toLowerCase()||"rel"===c&&"stylesheet"===e[c].toLowerCase()||(r=c),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(r=s)}if(!r||!e[r])return!1;var u=e[r].toLowerCase();return n[r]||(n[r]={}),o[r]||(o[r]={}),!n[r][u]&&(o[r][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a+=1){var s=i[a],c=io({},n[s],o[s]);n[s]=c}return e}),[]).reverse()},So=function(e,t){if(Array.isArray(e)&&e.length)for(var r=0;r<e.length;r+=1)if(e[r][t])return!0;return!1},Ao=function(e){return Array.isArray(e)?e.join(""):e},ko=function(e,t){return Array.isArray(e)?e.reduce((function(e,r){return function(e,t){for(var r=Object.keys(e),n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1}(r,t)?e.priority.push(r):e.default.push(r),e}),{priority:[],default:[]}):{default:e}},Do=[uo.NOSCRIPT,uo.SCRIPT,uo.STYLE],Co=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Fo=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},Po=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,r){return t[mo[r]||r]=e[r],t}),t)},Oo=function(e,t){return t.map((function(t,r){var n,o=((n={key:r})["data-rh"]=!0,n);return Object.keys(t).forEach((function(e){var r=mo[e]||e;"innerHTML"===r||"cssText"===r?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[r]=t[e]})),s().createElement(e,o)}))},To=function(e,t,r){switch(e){case uo.TITLE:return{toComponent:function(){return r=t.titleAttributes,(n={key:e=t.title})["data-rh"]=!0,o=Po(r,n),[s().createElement(uo.TITLE,o,e)];var e,r,n,o},toString:function(){return function(e,t,r,n){var o=Fo(r),i=Ao(t);return o?"<"+e+' data-rh="true" '+o+">"+Co(i,n)+"</"+e+">":"<"+e+' data-rh="true">'+Co(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return Po(t)},toString:function(){return Fo(t)}};default:return{toComponent:function(){return Oo(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var o=Object.keys(n).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var o=void 0===n[t]?t:t+'="'+Co(n[t],r)+'"';return e?e+" "+o:o}),""),i=n.innerHTML||n.cssText||"",a=-1===Do.indexOf(e);return t+"<"+e+' data-rh="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,r)}}}},jo=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,o=e.htmlAttributes,i=e.noscriptTags,a=e.styleTags,s=e.title,c=void 0===s?"":s,u=e.titleAttributes,l=e.linkTags,f=e.metaTags,h=e.scriptTags,p={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var d=function(e){var t=e.linkTags,r=e.scriptTags,n=e.encode,o=ko(e.metaTags,ho),i=ko(t,lo),a=ko(r,fo);return{priorityMethods:{toComponent:function(){return[].concat(Oo(uo.META,o.priority),Oo(uo.LINK,i.priority),Oo(uo.SCRIPT,a.priority))},toString:function(){return To(uo.META,o.priority,n)+" "+To(uo.LINK,i.priority,n)+" "+To(uo.SCRIPT,a.priority,n)}},metaTags:o.default,linkTags:i.default,scriptTags:a.default}}(e);p=d.priorityMethods,l=d.linkTags,f=d.metaTags,h=d.scriptTags}return{priority:p,base:To(uo.BASE,t,n),bodyAttributes:To("bodyAttributes",r,n),htmlAttributes:To("htmlAttributes",o,n),link:To(uo.LINK,l,n),meta:To(uo.META,f,n),noscript:To(uo.NOSCRIPT,i,n),script:To(uo.SCRIPT,h,n),style:To(uo.STYLE,a,n),title:To(uo.TITLE,{title:c,titleAttributes:u},n)}},Io=s().createContext({}),_o=eo().shape({setHelmet:eo().func,helmetInstances:eo().shape({get:eo().func,add:eo().func,remove:eo().func})}),Ro="undefined"!=typeof document,Bo=function(e){function t(r){var n;return(n=e.call(this,r)||this).instances=[],n.value={setHelmet:function(e){n.props.context.helmet=e},helmetInstances:{get:function(){return n.instances},add:function(e){n.instances.push(e)},remove:function(e){var t=n.instances.indexOf(e);n.instances.splice(t,1)}}},t.canUseDOM||(r.context.helmet=jo({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),n}return ao(t,e),t.prototype.render=function(){return s().createElement(Io.Provider,{value:this.value},this.props.children)},t}(a.Component);Bo.canUseDOM=Ro,Bo.propTypes={context:eo().shape({helmet:eo().shape()}),children:eo().node.isRequired},Bo.defaultProps={context:{}},Bo.displayName="HelmetProvider";var Lo=function(e,t){var r,n=document.head||document.querySelector(uo.HEAD),o=n.querySelectorAll(e+"[data-rh]"),i=[].slice.call(o),a=[];return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&("innerHTML"===o?n.innerHTML=t.innerHTML:"cssText"===o?n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText)):n.setAttribute(o,void 0===t[o]?"":t[o]));n.setAttribute("data-rh","true"),i.some((function(e,t){return r=t,n.isEqualNode(e)}))?i.splice(r,1):a.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:a}},No=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute("data-rh"),o=n?n.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s+=1){var c=a[s],u=t[c]||"";r.getAttribute(c)!==u&&r.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f-=1)r.removeAttribute(i[f]);o.length===i.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==a.join(",")&&r.setAttribute("data-rh",a.join(","))}},Mo=function(e,t){var r=e.baseTag,n=e.htmlAttributes,o=e.linkTags,i=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,l=e.title,f=e.titleAttributes;No(uo.BODY,e.bodyAttributes),No(uo.HTML,n),function(e,t){void 0!==e&&document.title!==e&&(document.title=Ao(e)),No(uo.TITLE,t)}(l,f);var h={baseTag:Lo(uo.BASE,r),linkTags:Lo(uo.LINK,o),metaTags:Lo(uo.META,i),noscriptTags:Lo(uo.NOSCRIPT,a),scriptTags:Lo(uo.SCRIPT,c),styleTags:Lo(uo.STYLE,u)},p={},d={};Object.keys(h).forEach((function(e){var t=h[e],r=t.newTags,n=t.oldTags;r.length&&(p[e]=r),n.length&&(d[e]=h[e].oldTags)})),t&&t(),s(e,p,d)},Ho=null,zo=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).rendered=!1,t}ao(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!wr()(e,this.props)},r.componentDidUpdate=function(){this.emitChange()},r.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},r.emitChange=function(){var e,t,r=this.props.context,n=r.setHelmet,o=null,i=(e=r.helmetInstances.get().map((function(e){var t=io({},e.props);return delete t.context,t})),{baseTag:wo(["href"],e),bodyAttributes:Eo("bodyAttributes",e),defer:yo(e,"defer"),encode:yo(e,"encodeSpecialCharacters"),htmlAttributes:Eo("htmlAttributes",e),linkTags:xo(uo.LINK,["rel","href"],e),metaTags:xo(uo.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:xo(uo.NOSCRIPT,["innerHTML"],e),onChangeClientState:bo(e),scriptTags:xo(uo.SCRIPT,["src","innerHTML"],e),styleTags:xo(uo.STYLE,["cssText"],e),title:vo(e),titleAttributes:Eo("titleAttributes",e),prioritizeSeoTags:So(e,"prioritizeSeoTags")});Bo.canUseDOM?(t=i,Ho&&cancelAnimationFrame(Ho),t.defer?Ho=requestAnimationFrame((function(){Mo(t,(function(){Ho=null}))})):(Mo(t),Ho=null)):jo&&(o=jo(i)),n(o)},r.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},r.render=function(){return this.init(),null},t}(a.Component);zo.propTypes={context:_o.isRequired},zo.displayName="HelmetDispatcher";var Uo=["children"],$o=["children"],qo=function(e){function t(){return e.apply(this,arguments)||this}ao(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!ro()(this.props,e)},r.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case uo.SCRIPT:case uo.NOSCRIPT:return{innerHTML:t};case uo.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren;return io({},n,((t={})[r.type]=[].concat(n[r.type]||[],[io({},e.newChildProps,this.mapNestedChildrenToProps(r,e.nestedChildren))]),t))},r.mapObjectTypeChildren=function(e){var t,r,n=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(n.type){case uo.TITLE:return io({},o,((t={})[n.type]=a,t.titleAttributes=io({},i),t));case uo.BODY:return io({},o,{bodyAttributes:io({},i)});case uo.HTML:return io({},o,{htmlAttributes:io({},i)});default:return io({},o,((r={})[n.type]=io({},i),r))}},r.mapArrayTypeChildrenToProps=function(e,t){var r=io({},t);return Object.keys(e).forEach((function(t){var n;r=io({},r,((n={})[t]=e[t],n))})),r},r.warnOnInvalidChildren=function(e,t){return oo()(po.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+po.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),oo()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(e,t){var r=this,n={};return s().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=co(o,Uo),s=Object.keys(a).reduce((function(e,t){return e[go[t]||t]=a[t],e}),{}),c=e.type;switch("symbol"==typeof c?c=c.toString():r.warnOnInvalidChildren(e,i),c){case uo.FRAGMENT:t=r.mapChildrenToProps(i,t);break;case uo.LINK:case uo.META:case uo.NOSCRIPT:case uo.SCRIPT:case uo.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:s,nestedChildren:i});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}}})),this.mapArrayTypeChildrenToProps(n,t)},r.render=function(){var e=this.props,t=e.children,r=io({},co(e,$o));return t&&(r=this.mapChildrenToProps(t,r)),s().createElement(Io.Consumer,null,(function(e){return s().createElement(zo,io({},r,{context:e}))}))},t}(a.Component);qo.propTypes={base:eo().object,bodyAttributes:eo().object,children:eo().oneOfType([eo().arrayOf(eo().node),eo().node]),defaultTitle:eo().string,defer:eo().bool,encodeSpecialCharacters:eo().bool,htmlAttributes:eo().object,link:eo().arrayOf(eo().object),meta:eo().arrayOf(eo().object),noscript:eo().arrayOf(eo().object),onChangeClientState:eo().func,script:eo().arrayOf(eo().object),style:eo().arrayOf(eo().object),title:eo().string,titleAttributes:eo().object,titleTemplate:eo().string,prioritizeSeoTags:eo().bool},qo.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},qo.displayName="Helmet";var Vo=r(5969),Go=r(8717),Wo=r(213);const Qo=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);var o=(0,Wo.convert)(t),i=n?-1:1;!function e(a,s,c){var u,l="object"==typeof a&&null!==a?a:{};"string"==typeof l.type&&(u="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0,Object.defineProperty(f,"name",{value:"node ("+l.type+(u?"<"+u+">":"")+")"}));return f;function f(){var u,l,f,h=[];if((!t||o(a,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(a,c)),false===h[0]))return h;if(a.children&&"skip"!==h[0])for(l=(n?a.children.length:-1)+i,f=c.concat(a);l>-1&&l<a.children.length;){if(u=e(a.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+i}return h}}(e,null,[])()};function Ko(e){return new RegExp("^("+e+")$","i")}const Zo=new Vo;function Yo(e,t,r){const n=r.skip&&Ko(r.skip),o=(0,Wo.convert)(r.parents||(t=>t===e)),i=[];let a,s,c;var u,l,f;return Zo.reset(),l=function(e,u,l){const f=(0,Go.B)(e,{includeImageAlt:!1}),h=e.data&&e.data.hProperties&&e.data.hProperties.id,p=Zo.slug(h||f);if(o(l)){if(null!==u&&t&&!a&&t.test(f))return a=u+1,void(c=e);null!==u&&c&&!s&&e.depth<=c.depth&&(s=u),!s&&t||r.maxDepth&&!(e.depth<=r.maxDepth)||n&&n.test(f)||i.push({depth:e.depth,children:e.children,id:p})}},"function"==typeof(u="heading")&&"function"!=typeof l&&(f=l,l=u,u=null),Qo(e,u,(function(e,t){var r=t[t.length-1];return l(e,r?r.children.indexOf(e):null,r)}),f),{index:a||-1,endIndex:a?s||e.children.length:-1,map:i}}var Xo=r(229);function Jo(e,t){const{ordered:r=!1,tight:n=!1,prefix:o=null}=t,i={type:"list",ordered:r,spread:!1,children:[]};let a=Number.POSITIVE_INFINITY,s=-1;for(;++s<e.length;)e[s].depth<a&&(a=e[s].depth);for(s=-1;++s<e.length;)e[s].depth-=a-1;for(s=-1;++s<e.length;)ei(e[s],i,{ordered:r,tight:n,prefix:o});return i}function ei(e,t,r){let n=-1;if("list"===t.type)if(1===e.depth)t.children.push({type:"listItem",spread:!1,children:[{type:"paragraph",children:[{type:"link",title:null,url:"#"+(r.prefix||"")+e.id,children:ti(e.children)}]}]});else if(t.children.length>0)ei(e,t.children[t.children.length-1],r);else{const n={type:"listItem",spread:!1,children:[]};t.children.push(n),ei(e,n,r)}else if(t.children[t.children.length-1]&&"list"===t.children[t.children.length-1].type)e.depth--,ei(e,t.children[t.children.length-1],r);else{const n={type:"list",ordered:r.ordered,spread:!1,children:[]};t.children.push(n),e.depth--,ei(e,n,r)}if("list"!==t.type||r.tight)t.spread=!r.tight;else for(t.spread=!1;++n<t.children.length;)if(t.children[n].children.length>1){t.spread=!0;break}}function ti(e){let t=[],r=-1;if(e)for(;++r<e.length;)t=t.concat(ri(e[r]));return t}function ri(e){if("link"===e.type||"linkReference"===e.type||"footnote"===e.type||"footnoteReference"===e.type)return ti(e.children);if("children"in e){const{children:t,position:r,...n}=e;return Object.assign(Xo(!0,{},n),{children:ti(e.children)})}const{position:t,...r}=e;return Xo(!0,{},r)}var ni=r(3428);const oi=new Vo;function ii(){return e=>{oi.reset(),(0,ni.visit)(e,"heading",(e=>{const t=e.data||(e.data={}),r=t.hProperties||(t.hProperties={});let n=r.id;n=n?oi.slug(String(n),!0):oi.slug((0,Go.B)(e)),t.id=n,r.id=n}))}}var ai=function(e,t,r){var n={type:String(e)};return null!=r||"string"!=typeof t&&!Array.isArray(t)?Object.assign(n,t):r=t,Array.isArray(r)?n.children=r:null!=r&&(n.value=String(r)),n};const si=ui("start"),ci=ui("end");function ui(e){return function(t){const r=t&&t.position&&t.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}const li={}.hasOwnProperty;function fi(e){return String(e||"").toUpperCase()}const hi={}.hasOwnProperty;function pi(e,t){const r=t.data||{};return"value"in t&&!(hi.call(r,"hName")||hi.call(r,"hProperties")||hi.call(r,"hChildren"))?e.augment(t,ai("text",t.value)):e(t,"div",gi(e,t))}function di(e,t,r){const n=t&&t.type;let o;if(!n)throw new Error("Expected node, got `"+t+"`");return o=hi.call(e.handlers,n)?e.handlers[n]:e.passThrough&&e.passThrough.includes(n)?mi:e.unknownHandler,("function"==typeof o?o:pi)(e,t,r)}function mi(e,t){return"children"in t?{...t,children:gi(e,t)}:t}function gi(e,t){const r=[];if("children"in t){const n=t.children;let o=-1;for(;++o<n.length;){const i=di(e,n[o],t);if(i){if(o&&"break"===n[o-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(i)?r.push(...i):r.push(i)}}}return r}var yi=r(488);const vi={'"':"quot","&":"amp","<":"lt",">":"gt"};function bi(e,t){const r=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+vi[e]+";"}))}(function(e){const t=[];let r=-1,n=0,o=0;for(;++r<e.length;){const i=e.charCodeAt(r);let a="";if(37===i&&(0,yi.asciiAlphanumeric)(e.charCodeAt(r+1))&&(0,yi.asciiAlphanumeric)(e.charCodeAt(r+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(r+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+o+1,a=""),o&&(r+=o,o=0)}return t.join("")+e.slice(n)}(e||""));if(!t)return r;const n=r.indexOf(":"),o=r.indexOf("?"),i=r.indexOf("#"),a=r.indexOf("/");return n<0||a>-1&&n>a||o>-1&&n>o||i>-1&&n>i||t.test(r.slice(0,n))?r:""}function Ei(e,t){const r=[];let n=-1;for(t&&r.push(ai("text","\n"));++n<e.length;)n&&r.push(ai("text","\n")),r.push(e[n]);return t&&e.length>0&&r.push(ai("text","\n")),r}function wi(e,t){const r=String(t.identifier),n=bi(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let i;-1===o?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,i=e.footnoteOrder.length):(e.footnoteCounts[r]++,i=o+1);const a=e.footnoteCounts[r];return e(t,"sup",[e(t.position,"a",{href:"#"+e.clobberPrefix+"fn-"+n,id:e.clobberPrefix+"fnref-"+n+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[ai("text",String(i))])])}var xi=r(4651);function Si(e,t){const r=t.referenceType;let n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return ai("text","!["+t.alt+n);const o=gi(e,t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift(ai("text","["));const a=o[o.length-1];return a&&"text"===a.type?a.value+=n:o.push(ai("text",n)),o}function Ai(e){const t=e.spread;return null==t?e.children.length>1:t}function ki(e,t,r){let n=0,o=e.length;if(t){let t=e.codePointAt(n);for(;9===t||32===t;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>n?e.slice(n,o):""}const Di={blockquote:function(e,t){return e(t,"blockquote",Ei(gi(e,t),!0))},break:function(e,t){return[e(t,"br"),ai("text","\n")]},code:function(e,t){const r=t.value?t.value+"\n":"",n=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};n&&(o.className=["language-"+n]);const i=e(t,"code",o,[ai("text",r)]);return t.meta&&(i.data={meta:t.meta}),e(t.position,"pre",[i])},delete:function(e,t){return e(t,"del",gi(e,t))},emphasis:function(e,t){return e(t,"em",gi(e,t))},footnoteReference:wi,footnote:function(e,t){const r=e.footnoteById;let n=1;for(;n in r;)n++;const o=String(n);return r[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},wi(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){return e(t,"h"+t.depth,gi(e,t))},html:function(e,t){return e.dangerous?e.augment(t,ai("raw",t.value)):null},imageReference:function(e,t){const r=e.definition(t.identifier);if(!r)return Si(e,t);const n={src:xi(r.url||""),alt:t.alt};return null!==r.title&&void 0!==r.title&&(n.title=r.title),e(t,"img",n)},image:function(e,t){const r={src:xi(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(t,"img",r)},inlineCode:function(e,t){return e(t,"code",[ai("text",t.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,t){const r=e.definition(t.identifier);if(!r)return Si(e,t);const n={href:xi(r.url||"")};return null!==r.title&&void 0!==r.title&&(n.title=r.title),e(t,"a",n,gi(e,t))},link:function(e,t){const r={href:xi(t.url)};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(t,"a",r,gi(e,t))},listItem:function(e,t,r){const n=gi(e,t),o=r?function(e){let t=e.spread;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Ai(r[n]);return Boolean(t)}(r):Ai(t),i={},a=[];if("boolean"==typeof t.checked){let r;n[0]&&"element"===n[0].type&&"p"===n[0].tagName?r=n[0]:(r=e(null,"p",[]),n.unshift(r)),r.children.length>0&&r.children.unshift(ai("text"," ")),r.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),i.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const e=n[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push(ai("text","\n")),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const c=n[n.length-1];return!c||!o&&"tagName"in c&&"p"===c.tagName||a.push(ai("text","\n")),e(t,"li",i,a)},list:function(e,t){const r={},n=t.ordered?"ol":"ul",o=gi(e,t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++i<o.length;){const e=o[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}return e(t,n,r,Ei(o,!0))},paragraph:function(e,t){return e(t,"p",gi(e,t))},root:function(e,t){return e.augment(t,ai("root",Ei(gi(e,t))))},strong:function(e,t){return e(t,"strong",gi(e,t))},table:function(e,t){const r=t.children;let n=-1;const o=t.align||[],i=[];for(;++n<r.length;){const a=r[n].children,s=0===n?"th":"td",c=[];let u=-1;const l=t.align?o.length:a.length;for(;++u<l;){const t=a[u];c.push(e(t,s,{align:o[u]},t?gi(e,t):[]))}i[n]=e(r[n],"tr",Ei(c,!0))}return e(t,"table",Ei([e(i[0].position,"thead",Ei([i[0]],!0))].concat(i[1]?e({start:si(i[1]),end:ci(i[i.length-1])},"tbody",Ei(i.slice(1),!0)):[]),!0))},text:function(e,t){return e.augment(t,ai("text",function(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),o=0;const i=[];for(;n;)i.push(ki(t.slice(o,n.index),o>0,!0),n[0]),o=n.index+n[0].length,n=r.exec(t);return i.push(ki(t.slice(o),o>0,!1)),i.join("")}(String(t.value))))},thematicBreak:function(e,t){return e(t,"hr")},toml:Ci,yaml:Ci,definition:Ci,footnoteDefinition:Ci};function Ci(){return null}const Fi={}.hasOwnProperty;function Pi(e,t){const r=t||{},n=r.allowDangerousHtml||!1,o={};return a.dangerous=n,a.clobberPrefix=void 0===r.clobberPrefix||null===r.clobberPrefix?"user-content-":r.clobberPrefix,a.footnoteLabel=r.footnoteLabel||"Footnotes",a.footnoteBackLabel=r.footnoteBackLabel||"Back to content",a.definition=function(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return(0,ni.visit)(e,"definition",(e=>{const r=fi(e.identifier);r&&!li.call(t,r)&&(t[r]=e)})),function(e){const r=fi(e);return r&&li.call(t,r)?t[r]:null}}(e),a.footnoteById=o,a.footnoteOrder=[],a.footnoteCounts={},a.augment=i,a.handlers={...Di,...r.handlers},a.unknownHandler=r.unknownHandler,a.passThrough=r.passThrough,(0,ni.visit)(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();Fi.call(o,t)||(o[t]=e)})),a;function i(e,t){if(e&&"data"in e&&e.data){const r=e.data;r.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=r.hName),"element"===t.type&&r.hProperties&&(t.properties={...t.properties,...r.hProperties}),"children"in t&&t.children&&r.hChildren&&(t.children=r.hChildren)}if(e){const n="type"in e?e:{position:e};(r=n)&&r.position&&r.position.start&&r.position.start.line&&r.position.start.column&&r.position.end&&r.position.end.line&&r.position.end.column&&(t.position={start:si(n),end:ci(n)})}var r;return t}function a(e,t,r,n){return Array.isArray(r)&&(n=r,r={}),i(e,{type:"element",tagName:t,properties:r||{},children:n||[]})}}function Oi(e,t){const r=Pi(e,t),n=di(r,e,null),o=function(e){let t=-1;const r=[];for(;++t<e.footnoteOrder.length;){const n=e.footnoteById[e.footnoteOrder[t].toUpperCase()];if(!n)continue;const o=gi(e,n),i=String(n.identifier),a=bi(i.toLowerCase());let s=0;const c=[];for(;++s<=e.footnoteCounts[i];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(t)}const u=o[o.length-1];if(u&&"element"===u.type&&"p"===u.tagName){const e=u.children[u.children.length-1];e&&"text"===e.type?e.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...c)}else o.push(...c);const l={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:Ei(o,!0)};n.position&&(l.position=n.position),r.push(l)}return 0===r.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[ai("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:Ei(r,!0)},{type:"text",value:"\n"}]}}(r);return o&&n.children.push(ai("text","\n"),o),Array.isArray(n)?{type:"root",children:n}:n}var Ti=r(4799),ji="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Ii(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),(function(){r(window.event)}))}function _i(e,t){for(var r=t.slice(0,t.length-1),n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function Ri(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),r=t.lastIndexOf("");r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}for(var Bi={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":ji?173:189,"=":ji?61:187,";":ji?59:186,"'":222,"[":219,"]":221,"\\":220},Li={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Ni={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Mi={16:!1,18:!1,17:!1,91:!1},Hi={},zi=1;zi<20;zi++)Bi["f".concat(zi)]=111+zi;var Ui=[],$i=!1,qi="all",Vi=[],Gi=function(e){return Bi[e.toLowerCase()]||Li[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function Wi(e){qi=e||"all"}function Qi(){return qi||"all"}var Ki=function(e){var t=e.key,r=e.scope,n=e.method,o=e.splitKey,i=void 0===o?"+":o;Ri(t).forEach((function(e){var t=e.split(i),o=t.length,a=t[o-1],s="*"===a?"*":Gi(a);if(Hi[s]){r||(r=Qi());var c=o>1?_i(Li,t):[];Hi[s]=Hi[s].filter((function(e){return!((!n||e.method===n)&&e.scope===r&&function(e,t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,o=!0,i=0;i<r.length;i++)-1===n.indexOf(r[i])&&(o=!1);return o}(e.mods,c))}))}}))};function Zi(e,t,r,n){var o;if(t.element===n&&(t.scope===r||"all"===t.scope)){for(var i in o=t.mods.length>0,Mi)Object.prototype.hasOwnProperty.call(Mi,i)&&(!Mi[i]&&t.mods.indexOf(+i)>-1||Mi[i]&&-1===t.mods.indexOf(+i))&&(o=!1);(0!==t.mods.length||Mi[16]||Mi[18]||Mi[17]||Mi[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function Yi(e,t){var r=Hi["*"],n=e.keyCode||e.which||e.charCode;if(Xi.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===Ui.indexOf(n)&&229!==n&&Ui.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var r=Ni[t];e[t]&&-1===Ui.indexOf(r)?Ui.push(r):!e[t]&&Ui.indexOf(r)>-1?Ui.splice(Ui.indexOf(r),1):"metaKey"===t&&e[t]&&3===Ui.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Ui=Ui.slice(Ui.indexOf(r))))})),n in Mi){for(var o in Mi[n]=!0,Li)Li[o]===n&&(Xi[o]=!0);if(!r)return}for(var i in Mi)Object.prototype.hasOwnProperty.call(Mi,i)&&(Mi[i]=e[Ni[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Ui.indexOf(17)&&Ui.push(17),-1===Ui.indexOf(18)&&Ui.push(18),Mi[17]=!0,Mi[18]=!0);var a=Qi();if(r)for(var s=0;s<r.length;s++)r[s].scope===a&&("keydown"===e.type&&r[s].keydown||"keyup"===e.type&&r[s].keyup)&&Zi(e,r[s],a,t);if(n in Hi)for(var c=0;c<Hi[n].length;c++)if(("keydown"===e.type&&Hi[n][c].keydown||"keyup"===e.type&&Hi[n][c].keyup)&&Hi[n][c].key){for(var u=Hi[n][c],l=u.splitKey,f=u.key.split(l),h=[],p=0;p<f.length;p++)h.push(Gi(f[p]));h.sort().join("")===Ui.sort().join("")&&Zi(e,u,a,t)}}}function Xi(e,t,r){Ui=[];var n=Ri(e),o=[],i="all",a=document,s=0,c=!1,u=!0,l="+",f=!1;for(void 0===r&&"function"==typeof t&&(r=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(c=t.keyup),void 0!==t.keydown&&(u=t.keydown),void 0!==t.capture&&(f=t.capture),"string"==typeof t.splitKey&&(l=t.splitKey)),"string"==typeof t&&(i=t);s<n.length;s++)o=[],(e=n[s].split(l)).length>1&&(o=_i(Li,e)),(e="*"===(e=e[e.length-1])?"*":Gi(e))in Hi||(Hi[e]=[]),Hi[e].push({keyup:c,keydown:u,scope:i,mods:o,shortcut:n[s],method:r,key:n[s],splitKey:l,element:a});void 0!==a&&!function(e){return Vi.indexOf(e)>-1}(a)&&window&&(Vi.push(a),Ii(a,"keydown",(function(e){Yi(e,a)}),f),$i||($i=!0,Ii(window,"focus",(function(){Ui=[]}),f)),Ii(a,"keyup",(function(e){Yi(e,a),function(e){var t=e.keyCode||e.which||e.charCode,r=Ui.indexOf(t);if(r>=0&&Ui.splice(r,1),e.key&&"meta"===e.key.toLowerCase()&&Ui.splice(0,Ui.length),93!==t&&224!==t||(t=91),t in Mi)for(var n in Mi[t]=!1,Li)Li[n]===t&&(Xi[n]=!1)}(e)}),f))}var Ji={setScope:Wi,getScope:Qi,deleteScope:function(e,t){var r,n;for(var o in e||(e=Qi()),Hi)if(Object.prototype.hasOwnProperty.call(Hi,o))for(r=Hi[o],n=0;n<r.length;)r[n].scope===e?r.splice(n,1):n++;Qi()===e&&Wi(t||"all")},getPressedKeyCodes:function(){return Ui.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=Gi(e)),-1!==Ui.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,r=t.tagName,n=!0;return!t.isContentEditable&&("INPUT"!==r&&"TEXTAREA"!==r&&"SELECT"!==r||t.readOnly)||(n=!1),n},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(Hi).forEach((function(r){var n=Hi[r].find((function(r){return r.scope===t&&r.shortcut===e}));n&&n.method&&n.method()}))},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&Ki(e)}));else if("object"==typeof e)e.key&&Ki(e);else if("string"==typeof e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=r[0],i=r[1];"function"==typeof o&&(i=o,o=""),Ki({key:e,scope:o,method:i,splitKey:"+"})}}else Object.keys(Hi).forEach((function(e){return delete Hi[e]}))},keyMap:Bi,modifier:Li,modifierMap:Ni};for(var ea in Ji)Object.prototype.hasOwnProperty.call(Ji,ea)&&(Xi[ea]=Ji[ea]);if("undefined"!=typeof window){var ta=window.hotkeys;Xi.noConflict=function(e){return e&&window.hotkeys===Xi&&(window.hotkeys=ta),Xi},window.hotkeys=Xi}Xi.filter=function(){return!0};var ra=function(e,t){var r=e.target,n=r&&r.tagName;return Boolean(n&&t&&t.includes(n))};function na(e,t,r,n){r instanceof Array&&(n=r,r=void 0);var o=r||{},i=o.enableOnTags,s=o.filter,c=o.keyup,u=o.keydown,l=o.filterPreventDefault,f=void 0===l||l,h=o.enabled,p=void 0===h||h,d=o.enableOnContentEditable,m=void 0!==d&&d,g=(0,a.useRef)(null),y=(0,a.useCallback)((function(e,r){var n;return s&&!s(e)?!f:!!(ra(e,["INPUT","TEXTAREA","SELECT"])&&!ra(e,i)||null!=(n=e.target)&&n.isContentEditable&&!m)||(null===g.current||document.activeElement===g.current)&&(t(e,r),!0)}),n?[g,i,s].concat(n):[g,i,s]);return(0,a.useEffect)((function(){if(p)return c&&!0!==u&&(r.keydown=!1),Xi(e,r||{},y),function(){return Xi.unbind(e,y)};Xi.unbind(e,y)}),[y,e,p]),g}Xi.isPressed;function oa(){return oa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oa.apply(this,arguments)}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var ia="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect,aa={status:"not-requested",loading:!1,result:void 0,error:void 0},sa={status:"loading",loading:!0,result:void 0,error:void 0},ca=function(){},ua={initialState:function(e){return e&&e.executeOnMount?sa:aa},executeOnMount:!0,executeOnUpdate:!0,setLoading:function(e){return sa},setResult:function(e,t){return{status:"success",loading:!1,result:e,error:void 0}},setError:function(e,t){return{status:"error",loading:!1,result:void 0,error:e}},onSuccess:ca,onError:ca},la=function(e,t,r){var n,o=function(e){return oa({},ua,{},e)}(r),i=(0,a.useState)(null),s=i[0],c=i[1],u=function(e){var t=(0,a.useState)((function(){return e.initialState(e)})),r=t[0],n=t[1],o=(0,a.useCallback)((function(){return n(e.initialState(e))}),[n,e]),i=(0,a.useCallback)((function(){return n(e.setLoading(r))}),[r,n]),s=(0,a.useCallback)((function(t){return n(e.setResult(t,r))}),[r,n]),c=(0,a.useCallback)((function(t){return n(e.setError(t,r))}),[r,n]),u=n,l=(0,a.useCallback)((function(e){return u(oa({},r,{},e))}),[r,u]);return{value:r,set:u,merge:l,reset:o,setLoading:i,setResult:s,setError:c}}(o),l=(n=(0,a.useRef)(!1),(0,a.useEffect)((function(){return n.current=!0,function(){n.current=!1}}),[]),function(){return n.current}),f=function(){var e=(0,a.useRef)(null);return{set:function(t){return e.current=t},get:function(){return e.current},is:function(t){return e.current===t}}}(),h=function(e){return l()&&f.is(e)},p=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=e.apply(void 0,r);if(c(r),i instanceof Promise)return f.set(i),u.setLoading(),i.then((function(e){h(i)&&u.setResult(e),o.onSuccess(e,{isCurrent:function(){return f.is(i)}})}),(function(e){h(i)&&u.setError(e),o.onError(e,{isCurrent:function(){return f.is(i)}})})),i;var a=i;return u.setResult(a),Promise.resolve(a)},d=!l();return(0,a.useEffect)((function(){d?o.executeOnMount&&p.apply(void 0,t):o.executeOnUpdate&&p.apply(void 0,t)}),t),oa({},u.value,{set:u.set,merge:u.merge,reset:u.reset,execute:p,currentPromise:f.get(),currentParams:s})};function fa(e,t,r){return la(e,t,r)}var ha=function(e,t){return la(e,[],oa({},t,{executeOnMount:!1,executeOnUpdate:!1}))},pa=function(e){var t,r,n=e.value,o=e.fetchMore,i=e.merge,s=e.isEnd,c=(t=n,r=(0,a.useRef)(t),ia((function(){r.current=t})),function(){return r.current}),u=(0,a.useState)(!1),l=u[0],f=u[1],h=(0,a.useRef)(0),p=ha((function(){try{var e=c();if("success"!==e.status)throw new Error("Can't fetch more if the original fetch is not a success");if("loading"===p.status)throw new Error("Can't fetch more, because we are already fetching more!");h.current=h.current+1;var t=h.current;return Promise.resolve(o(e.result)).then((function(r){var o=e.status===c().status&&e.result===c().result,a=h.current===t;return o&&a&&(n.merge({result:i(n.result,r)}),s(r)&&f(!0)),r}))}catch(e){return Promise.reject(e)}})),d="success"!==n.status;return(0,a.useEffect)((function(){d&&(p.reset(),f(!1))}),[d]),{canFetchMore:"success"===n.status&&"loading"!==p.status,loading:p.loading,status:p.status,fetchMore:p.execute,isEnd:l}};window.TopWritePlugins={};class da extends HTMLElement{connectedCallback(){this.addEventListener("click",(e=>{if(e.preventDefault(),!this.isContentEditable){const e=this.attributes.getNamedItem("src");let t=null==e?void 0:e.value;if(t){let e=document.createElement("a");e.download=this.textContent||"",e.style.display="none",e.target="_blank",e.href=o.resolve(location.href,t),document.body.appendChild(e),e.click(),document.body.removeChild(e)}}}))}}function ma(e){let{component:t,defaultComponent:r=a.Fragment,props:n,children:o=null}=e;return null===t?null:(0,i.jsx)(a.Suspense,{fallback:null,children:(0,i.jsx)(t,{props:n,Component:r,children:o})})}customElements.define("t-attachment",da);var ga=(e,t)=>e.filter((e=>{let{descriptor:r}=e;return t===r.role})).sort(((e,t)=>{let{descriptor:{priority:r=0}}=e,{descriptor:{priority:n=0}}=t;return r-n})).map((e=>e.Component));function ya(e){let{props:t,role:r,component:n}=e;const o=n?(0,a.createElement)(n,t):null,s=V("components");return(0,a.useMemo)((()=>ga(s,r)),[s,r]).reduce(((e,r)=>(0,i.jsx)(ma,{defaultComponent:n,component:r,props:t,children:e})),o)}function va(e){let{props:t,component:r,role:n}=e;const o=V("components"),s=(0,a.useMemo)((()=>ga(o,n)),[o,n]);return(0,i.jsx)(i.Fragment,{children:s.map(((e,n)=>(0,i.jsx)(ma,{defaultComponent:r,component:e,props:t},n)))})}async function ba(e){let t="topwrite-plugin-".concat(e.name);if(!W().isDefined(t)){let r="".concat(e.host,"/").concat(e.main);try{await W()(r,t,{returnPromise:!0})}catch{console.warn("插件".concat(e.name,"加载失败"))}}}function Ea(e,t){let r;return r=t instanceof Array?{Component:t[0],descriptor:{role:e,...t[1]}}:{Component:t,descriptor:{role:e}},r}function wa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage";if("undefined"==typeof window)throw new Error("Browser storage is not available on NodeJS / TopWrite SSR process");if("none"===e)return null;try{return window[e]}catch(e){return null}}const xa={get:()=>null,set:()=>{},del:()=>{}},Sa=(e,t)=>{const r=wa(null==t?void 0:t.persistence);return null===r?xa:{get:()=>r.getItem(e),set:t=>r.setItem(e,t),del:()=>r.removeItem(e)}};function Aa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage";const t=wa(e);if(!t)return[];const r=[];for(let e=0;e<t.length;e+=1){const n=t.key(e);null!==n&&r.push(n)}return r}function ka(){const e=V("book");if(!e)throw new Error("book object not initialized");return e}function Da(){const{config:e}=ka();return e.getValue("themeConfig")}const Ca="light",Fa="dark";function Pa(e){document.documentElement.setAttribute("data-theme",e)}const Oa=(0,a.createContext)(void 0);function Ta(e){let{children:t,context:r}=e;const{isDarkTheme:n,setLightTheme:o,setDarkTheme:s}=(e=>{const t=ka(),r=(0,a.useMemo)((()=>Sa("".concat(e,".").concat(t.id,".theme"))),[t.id,e]),{defaultMode:n}=Da(),[o,i]=(0,a.useState)((()=>{const e=(e=>e===Fa?Fa:Ca)(r.get()||n);return Pa(e),e}));(0,a.useEffect)((()=>{Pa(o)}),[o]);const s=(0,a.useCallback)((()=>{i(Ca),r.set(Ca)}),[r]),c=(0,a.useCallback)((()=>{i(Fa),r.set(Fa)}),[r]);return{isDarkTheme:o===Fa,setLightTheme:s,setDarkTheme:c}})(r);return(0,i.jsx)(Oa.Provider,{value:{isDarkTheme:n,setLightTheme:o,setDarkTheme:s},children:t})}function ja(){const e=(0,a.useContext)(Oa);return null==e?{isDarkTheme:!1,setLightTheme:b.noop,setDarkTheme:b.noop}:e}var Ia;function _a(){const{primaryColor:e}=Da();return(0,i.jsx)(Ra,{primaryColor:e})}const Ra=Zn(Ia||(Ia=(0,vr.Z)(["\n :root {\n --ttw-primary-color: ",";\n }\n\n //TODO 转移到异步加载\n //附件\n t-attachment {\n color: var(--ttw-primary-color);\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n overflow: hidden;\n padding: 0 4px;\n vertical-align: bottom;\n margin: 0 1px;\n\n &:before {\n content: '';\n width: 18px;\n height: 18px;\n background-color: var(--ttw-primary-color);\n mask: url(\"",'") no-repeat center;\n margin-right: 4px;\n }\n\n &:after {\n content: "(" attr(size) ")";\n margin-left: 4px;\n display: none;\n }\n\n &[size]:after {\n display: inline;\n }\n\n &:hover {\n background: rgba(0, 0, 0, .1);\n }\n\n &:read-write {\n cursor: text;\n }\n }\n'])),(e=>e.primaryColor),"data:image/svg+xml,%3csvg t='1642406480574' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='2254' width='16' height='16'%3e %3cpath d='M874.666667 467.2c-10.666667-10.666667-29.866667-12.8-42.666667 0l-343.466667 341.333333c-74.666667 74.666667-198.4 74.666667-275.2 0-36.266667-36.266667-57.6-85.333333-57.6-136.533333s19.2-100.266667 57.6-136.533333L556.8 192c46.933333-46.933333 121.6-46.933333 168.533333 0 23.466667 23.466667 34.133333 53.333333 34.133334 83.2 0 32-12.8 61.866667-34.133334 83.2L384 704c-17.066667 17.066667-44.8 17.066667-64 0-8.533333-8.533333-12.8-19.2-12.8-32s4.266667-23.466667 12.8-32l317.866667-315.733333c10.666667-10.666667 12.8-29.866667 0-42.666667-10.666667-12.8-29.866667-12.8-42.666667 0L277.333333 597.333333c-19.2 19.2-29.866667 46.933333-29.866666 74.666667S258.133333 725.333333 277.333333 746.666667c40.533333 40.533333 106.666667 40.533333 147.2 0L768 403.2c34.133333-34.133333 53.333333-78.933333 53.333333-125.866667s-19.2-93.866667-53.333333-125.866666a178.986667 178.986667 0 0 0-253.866667 0l-341.333333 341.333333c-46.933333 46.933333-74.666667 110.933333-74.666667 179.2s25.6 132.266667 74.666667 179.2c49.066667 49.066667 115.2 74.666667 179.2 74.666667s130.133333-25.6 179.2-74.666667l343.466667-341.333333c10.666667-12.8 10.666667-32 0-42.666667z' p-id='2255'%3e%3c/path%3e%3c/svg%3e"),Ba=new class extends N{constructor(){super(...arguments),(0,y.Z)(this,"initialState",[])}*register(e){yield this.setState((t=>t.push(e)))}},La=new class extends N{};var Na=Object.freeze({__proto__:null,components:Ba,options:La});class Ma{constructor(e,t,r){(0,y.Z)(this,"name",void 0),(0,y.Z)(this,"book",void 0),(0,y.Z)(this,"models",{...Na}),(0,y.Z)(this,"components",[]),(0,y.Z)(this,"activates",[]),(0,y.Z)(this,"plugins",[]),(0,y.Z)(this,"initialState",void 0),this.name=e,this.book=t,this.initialState=r}registerComponents(e,t){for(let[r,n]of Object.entries(e))n&&("plugin:setting"===r&&t&&(r="plugin:setting:".concat(t)),this.components.push(Ea(r,n)))}registerModels(e,t){for(const[r,n]of Object.entries(e))t?this.models["@".concat(t,"@").concat(r)]=n:this.models[r]=n}async registerPlugins(e){this.plugins=e;for(const t of e)try{this.registerComponents(t.components,t.name),this.registerModels(t.models,t.name),t.activate&&this.activates.push(t.activate),t.register&&await t.register(this.name,this.book)}catch(e){console.log(e)}}async createApp(e){const t=await this.createIntl(e),r=U(this.models,{book:this.book,components:this.components,...this.initialState}),n=e=>{let{children:t}=e;return this.activates.reduce(((e,t)=>{const r=t(this.name);return void 0!==r?r:e}),t)};return e=>{let{children:o}=e;return(0,i.jsx)(Z,{value:t,children:(0,i.jsx)(q,{store:r,children:(0,i.jsx)(Bo,{children:(0,i.jsxs)(Ta,{context:this.name,children:[(0,i.jsx)(_a,{}),(0,i.jsx)(n,{children:o})]})})})})}}async createIntl(e){const t=navigator.language,r={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},n=await this.plugins.reduce((async(e,r)=>{const n=await e;return r.localize?Object.assign({},n,await r.localize(t)):n}),e(t));return gr({locale:t,messages:n,defaultLocale:"en"},r)}}async function Ha(e,t,r,o,i,a){const s=await async function(e,t){let r=[];if(t){const o=(0,n.NC)(t);try{r=await o.getInstalled(e),r=r.filter((e=>{var t;return!(null!==(t=window.TopWritePlugins[e.name])&&void 0!==t&&t.meta)}))}catch{}}try{const e=sessionStorage.getItem("PLUGIN_DEV"),t=Q.parse(window.location.search);if("dev"in t||e){const o=t.dev||e||8080;try{const e=(await n.WY.get("http://localhost:".concat(o,"/meta"),{raxConfig:{retry:0}})).data;r=r.filter((t=>t.name!==e.name&&!("theme"===e.type&&"theme"===t.type))),window.TopWritePlugins[e.name]&&delete window.TopWritePlugins[e.name],r.unshift(e),sessionStorage.setItem("PLUGIN_DEV",String(o))}catch(e){console.warn(e),sessionStorage.removeItem("PLUGIN_DEV")}}}catch{}const o=Object.entries(window.TopWritePlugins).filter((e=>{let[,t]=e;return!!t.meta})).map((e=>{let[,t]=e;return t.meta})),i=o.some((e=>"theme"===e.type)),a=Object.keys(window.TopWritePlugins),s=[];for(let e of r)e.disabled||a.includes(e.name)||i&&"theme"===e.type||s.push(ba(e));return await Promise.all(s),o.push(...r),window.TopWritePluginsMeta=o,Object.values(window.TopWritePlugins||{})}(t,a),c=new Ma(e,t,o);return c.registerModels(r),await c.registerPlugins(s),await c.createApp(i)}function za(e){return function(e){const{actions:t}=(0,a.useContext)($);return e?t[e]:t}(e)}function Ua(e){return V(e)}function $a(e){return[Ua(e),za(e)]}function qa(e,t,r){const n="function"==typeof t;n||(r=t),(0,a.useEffect)((()=>{let r;const o=e();return Promise.resolve(o).then((e=>{r=e})),()=>{n&&t(r)}}),r)}function Va(e){const t=(0,a.useRef)(null),[r,n]=(0,a.useState)(e);return(0,a.useEffect)((()=>{t.current&&(t.current(),t.current=null)}),[r]),[r,(e,r)=>{t.current="function"==typeof r?r:null,n(e)}]}function Ga(){const e=document.currentScript;if(!e)throw new Error("Automatic publicPath is not supported in this browser");return e.src.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}class Wa{constructor(e){let{name:t,meta:r,models:n={},components:o={},activate:i,register:a,localize:s,config:c}=e;(0,y.Z)(this,"name",void 0),(0,y.Z)(this,"config",void 0),(0,y.Z)(this,"localize",void 0),(0,y.Z)(this,"models",void 0),(0,y.Z)(this,"components",void 0),(0,y.Z)(this,"activate",void 0),(0,y.Z)(this,"register",void 0),(0,y.Z)(this,"meta",void 0),this.name=t,this.meta=r,this.models=n,this.components=o,this.activate=i,this.register=a,this.localize=s,this.config=c}}const Qa=(0,Wo.convert)("root"),Ka=(0,Wo.convert)("element"),Za=(0,Wo.convert)("text");function Ya(e){return e.filter((e=>!(Za(e)&&"\n"===e.value)))}function Xa(e,t,r){const n=t.properties,o=t.tagName,i={...n};r.prefix&&(r.key++,i.key=r.prefix+r.key);const a=[],s=Ya(t.children),c=s?s.length:0;let u=-1;for(;++u<c;){const t=s[u];Ka(t)?a.push(Xa(e,t,r)):Za(t)&&a.push(t.value)}return e.call(t,o,i,a.length>0?a:void 0)}function Ja(e,t){let{extensions:r=[],creator:n=s().createElement}=t;const o={allowDangerousHtml:!1,handlers:{...r.reduce(((e,t)=>Object.assign(e,t)),{}),textDirective:(e,t)=>e({},"textDirective",{name:t.name,attributes:t.attributes},gi(e,t)),leafDirective:(e,t)=>e({},"leafDirective",t.attributes),containerDirective:(e,t)=>e({},"containerDirective",t.attributes,gi(e,t)),heading(e,t){const r=e(t,"heading",gi(e,t));return r.properties={...r.properties,depth:t.depth},r}},unknownHandler:()=>null},i=Oi(e,o);if(Qa(i))return Ya(i.children).map(((e,t)=>Ka(e)?Xa(n,e,{key:0,prefix:"h-".concat(t,"-")}):Za(e)?e.value:void 0));if(!Ka(i))throw new Error("Expected root or element, not `"+(i&&i.type||i)+"`");return Xa(n,i,{key:0,prefix:"h-"})}const es=e=>{let{value:t}=e;return(0,i.jsx)("pre",{children:(0,i.jsx)("code",{children:t})})},ts=e=>{let{value:t}=e;return(0,i.jsx)("code",{children:t})},rs=["video","audio","attachment"];function ns(e){let{depth:t=5,...r}=e;return(0,a.createElement)("h".concat(t),r)}const os={"x-inline":function(e){const{name:t,value:r}=e;return(0,i.jsx)(ya,{role:"inline:".concat(t),props:{type:"inline",name:t,value:r},component:ts})},"x-block":function(e){const{name:t,value:r,parameter:n}=e;return(0,i.jsx)(ya,{role:"block:".concat(t),props:{type:"block",name:t,parameter:n,value:r},component:es})},textDirective:function(e){const{name:t,attributes:r,children:n,components:o={}}=e;if(!rs.includes(t))return null;let a=t;return customElements.get("t-".concat(t))&&(a="t-".concat(t)),(0,i.jsx)(ya,{role:"html:".concat(t),props:{...r,children:n},component:o[t]||a})},heading:function(e){let{components:t={},...r}=e;return(0,i.jsx)(ya,{role:"html:heading",props:r,component:t.heading||ns})}};var is;const as=e=>{let{tagName:t,components:r={},...n}=e;return os[t]?(0,a.createElement)(os[t],{...n,components:r}):Ti.includes(t)?(0,i.jsx)(ya,{role:"html:".concat(t),props:n,component:r[t]||t}):(console.warn("unknown tagName: ".concat(t)),null)};function ss(e){let{as:t=a.Fragment,children:r,components:o={},aside:s=!0,header:c,footer:u,css:l,...f}=e;const h=(0,a.useMemo)((()=>(0,n.JH)().use(ii).freeze()),[]);return(0,a.useMemo)((()=>{try{const e=h.data("toHastExtensions"),n=h.runSync(h.parse(r));let p=null;if(s){const t=function(e,t){const r=t||{},n=r.heading?Ko(r.heading):null,o=Yo(e,n,r);return{index:n?o.index:null,endIndex:n?o.endIndex:null,map:o.map.length>0?Jo(o.map,r):null}}(n).map;t&&(p=Ja(t,{extensions:e}))}const d=Ja(n,{extensions:e,creator:(e,t,r)=>(0,a.createElement)(as,{...t,tagName:e,components:o},r)});return(0,a.createElement)(t,f,(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("article",{children:[c,(0,i.jsx)(cs,{$css:l,children:d}),u]}),p&&(0,i.jsx)("aside",{children:p})]}))}catch(e){return console.log(e),null}}),[r,s,h,l])}const cs=Xn.section(is||(is=(0,vr.Z)(["\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n line-height: 1.2;\n word-wrap: break-word;\n\n & > *:first-child {\n margin-top: 0 !important;\n }\n\n & > *:last-child {\n margin-bottom: 0 !important;\n }\n\n h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, table {\n margin: 1em 0;\n line-height: 1.2;\n padding: 0;\n\n &:last-child {\n margin-bottom: 0 !important;\n }\n\n &:first-child {\n margin-top: 0 !important;\n }\n }\n\n p {\n margin: 0;\n line-height: 2;\n }\n\n h1, h2, h3, h4, h5, h6 {\n font-weight: normal;\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n h1 {\n font-size: 2em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee;\n padding-bottom: .5em;\n }\n\n h2 {\n padding-bottom: .4em;\n font-size: 1.3em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee\n }\n\n h3 {\n font-size: 1.2em;\n line-height: 1.2;\n }\n\n h4 {\n font-size: 1.1em;\n line-height: 1.2;\n }\n\n h5 {\n font-size: 1em;\n line-height: 1.2;\n }\n\n hr {\n border: 0;\n border-bottom: 1px solid #eeeeee;\n margin-bottom: 0.5em;\n }\n\n ul {\n padding-left: 2em;\n\n ul {\n margin: 0;\n }\n\n &.task-list {\n list-style: none;\n\n li {\n position: relative;\n\n .icon.square {\n position: absolute;\n left: -1.75em;\n top: 1px;\n }\n }\n }\n }\n\n ol {\n padding-left: 2em;\n }\n\n li {\n line-height: 2;\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n code {\n display: inline-block;\n border-radius: 4px;\n padding: .2em .4em;\n background-color: #f7f7f7;\n word-break: break-all;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n white-space: pre;\n line-height: 1.3;\n margin: -.2em .4em;\n }\n\n pre {\n padding: 1.05em;\n overflow: auto;\n line-height: 1.45;\n background-color: #f7f7f7;\n border: 0;\n border-radius: 3px;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n }\n\n\n pre > code {\n display: inline;\n max-width: 100%;\n padding: 0;\n margin: 0;\n overflow: initial;\n line-height: inherit;\n background-color: rgba(0, 0, 0, 0);\n border: 0;\n tab-size: 4;\n }\n\n p {\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n table {\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n line-height: 1.8;\n border-spacing: 0;\n\n th {\n text-align: left;\n }\n\n th, td {\n border: 1px solid #e0e0e0;\n padding: 3px 12px;\n height: 34px;\n }\n\n tr:hover td {\n background-color: #f1f1f1;\n }\n }\n\n img {\n max-width: 100%;\n display: inline-block;\n padding: 3px;\n vertical-align: middle;\n }\n\n a {\n text-decoration: none;\n color: var(--ttw-primary-color);\n\n &:hover {\n text-decoration: underline;\n }\n }\n\n blockquote {\n padding: 5px 5px 5px 15px;\n color: #777777;\n border-left: 4px solid #dddddd;\n\n &.info {\n border-left-color: #5bc0de;\n color: #5bc0de;\n background-color: #f4f8fa;\n }\n\n &.warning {\n background-color: #fcf8f2;\n border-color: #f0ad4e;\n color: #f0ad4e;\n }\n\n &.danger {\n color: #d9534f;\n background-color: #fdf7f7;\n border-color: #d9534f;\n }\n\n &.success {\n background-color: #f3f8f3;\n border-color: #50af51;\n color: #50af51;\n }\n }\n\n video {\n width: 100%;\n }\n\n audio {\n width: 100%;\n }\n\n html[data-theme=dark] & {\n code {\n background-color: #333437;\n }\n\n pre {\n background-color: #333437;\n }\n\n h1, h2, hr {\n border-color: #404040;\n }\n\n th, td {\n border-color: #404040;\n }\n\n tr:hover td {\n background-color: #333437;\n }\n }\n\n ","\n"])),(e=>e.$css));function us(e){const t=(0,a.useRef)();return(0,a.useEffect)((()=>{t.current=e}),[e]),t.current}function ls(e){const t=(0,a.useRef)(e);(0,a.useEffect)((()=>(document.title=e,()=>{document.title=t.current})),[e])}function fs(e,t,r){const n=(0,a.useRef)(e),o=(0,a.useRef)((0,b.debounce)(e,t,r));return(0,a.useEffect)((()=>{n.current=e})),(0,a.useEffect)((()=>{o.current=(0,b.debounce)((function(){n.current(...arguments)}),t,r)}),[t,r]),o.current}function hs(e,t,r){const n=(0,a.useRef)(e),o=(0,a.useRef)((0,b.throttle)(e,t,r));return(0,a.useEffect)((()=>{n.current=e})),(0,a.useEffect)((()=>{o.current=(0,b.throttle)((function(){n.current(...arguments)}),t,r)}),[t,r]),o.current}function ps(){return V("options")}const ds=new EventTarget;function ms(){return ds}function gs(e,t,r,n){const o=a.useRef(r),i=a.useRef(n);a.useEffect((()=>{o.current=r,i.current=n})),a.useEffect((()=>{const r=e&&"current"in e?e.current:e;if(!r)return;let n=0;function a(){if(!n){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];o.current.apply(this,t)}}r.addEventListener(t,a);const s=i.current;return()=>{n=1,r.removeEventListener(t,a),s&&s()}}),[e,t])}function ys(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.document;"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/html"));const t=e.querySelector('script[type="application/payload+json"]');if(t)try{return JSON.parse(t.innerHTML)}catch{return{}}}var vs=Object.freeze({__proto__:null,encode:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return window.btoa(unescape(encodeURIComponent(e)))}catch(e){if(t)throw e;return""}},decode:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return decodeURIComponent(escape(window.atob(e)))}catch(e){if(t)throw e;return""}}});function bs(){return"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)}const Es="1.0.0"},7007:(e,t)=>{"use strict";var r=60103,n=60106,o=60107,i=60108,a=60114,s=60109,c=60110,u=60112,l=60113,f=60120,h=60115,p=60116,d=60121,m=60122,g=60117,y=60129,v=60131;
|
|
1
|
+
(()=>{var e,t,r,n,o,i,a={8924:(e,t,r)=>{"use strict";r.d(t,{l_:()=>n.l_,fy:()=>n.fy,De:()=>n.De,$B:()=>n.$B,ql:()=>qo,cu:()=>ya,IA:()=>va,fH:()=>Y,$q:()=>n.$q,aC:()=>n.aC,UG:()=>ss,Hn:()=>N,Sy:()=>Wa,ER:()=>n.ER,oI:()=>n.oI,Lj:()=>n.Lj,q4:()=>Es,rK:()=>n.rK,US:()=>vs,W3:()=>Ha,nC:()=>Ea,vJ:()=>Zn,WA:()=>Sa,iv:()=>_n,He:()=>ys,Ak:()=>Ga,oe:()=>n.oe,V5:()=>bs,CB:()=>n.CB,F4:()=>Yn,_f:()=>Aa,j0:()=>W(),JH:()=>n.JH,FB:()=>n.FB,YB:()=>n.YB,WY:()=>n.WY,zo:()=>Xn,ol:()=>za,r5:()=>fa,UK:()=>ha,bd:()=>qa,r3:()=>pa,CQ:()=>ka,Nr:()=>fs,jr:()=>ls,zX:()=>gs,Rs:()=>ms,y1:()=>na,cw:()=>yr,tT:()=>$a,D2:()=>ps,D9:()=>us,v9:()=>Ua,CM:()=>Va,LU:()=>Da,TC:()=>ja,fB:()=>hs});var n=r(3440),o=r(4760),i=r(4246),a=r(7363),s=r.n(a),c=r(189);function u(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var l="function"==typeof Symbol&&Symbol.observable||"@@observable",f=function(){return Math.random().toString(36).substring(7).split("").join(".")},h={INIT:"@@redux/INIT"+f(),REPLACE:"@@redux/REPLACE"+f(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+f()}};function p(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function d(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(u(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(u(1));return r(d)(e,t)}if("function"!=typeof e)throw new Error(u(2));var o=e,i=t,a=[],s=a,c=!1;function f(){s===a&&(s=a.slice())}function m(){if(c)throw new Error(u(3));return i}function g(e){if("function"!=typeof e)throw new Error(u(4));if(c)throw new Error(u(5));var t=!0;return f(),s.push(e),function(){if(t){if(c)throw new Error(u(6));t=!1,f();var r=s.indexOf(e);s.splice(r,1),a=null}}}function y(e){if(!p(e))throw new Error(u(7));if(void 0===e.type)throw new Error(u(8));if(c)throw new Error(u(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,r=0;r<t.length;r++){(0,t[r])()}return e}function v(e){if("function"!=typeof e)throw new Error(u(10));o=e,y({type:h.REPLACE})}function b(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(u(11));function r(){e.next&&e.next(m())}return r(),{unsubscribe:t(r)}}})[l]=function(){return this},e}return y({type:h.INIT}),(n={dispatch:y,subscribe:g,getState:m,replaceReducer:v})[l]=b,n}function m(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(u(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return n=m.apply(void 0,i)(r.dispatch),(0,c.Z)((0,c.Z)({},r),{},{dispatch:n})}}}var y=r(4649),v=r(8907),b=r(2611),E=s().createContext(null);var w=function(e){e()},x=function(){return w};var S={notify:function(){},get:function(){return[]}};function A(e,t){var r,n=S;function o(){a.onStateChange&&a.onStateChange()}function i(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=function(){var e=x(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:i,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=S)},getListeners:function(){return n}};return a}var k="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;const D=function(e){var t=e.store,r=e.context,n=e.children,o=(0,a.useMemo)((function(){var e=A(t);return{store:t,subscription:e}}),[t]),i=(0,a.useMemo)((function(){return t.getState()}),[t]);k((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,i]);var c=r||E;return s().createElement(c.Provider,{value:o},n)};var C=r(5839),F=r.n(C);r(9272);r(5773);function P(){return(0,a.useContext)(E)}var O=function(e,t){return e===t};function T(e){void 0===e&&(e=E);var t=e===E?P:function(){return(0,a.useContext)(e)};return function(e,r){void 0===r&&(r=O);var n=t(),o=function(e,t,r,n){var o,i=(0,a.useReducer)((function(e){return e+1}),0)[1],s=(0,a.useMemo)((function(){return A(r,n)}),[r,n]),c=(0,a.useRef)(),u=(0,a.useRef)(),l=(0,a.useRef)(),f=(0,a.useRef)(),h=r.getState();try{if(e!==u.current||h!==l.current||c.current){var p=e(h);o=void 0!==f.current&&t(p,f.current)?f.current:p}else o=f.current}catch(e){throw c.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),e}return k((function(){u.current=e,l.current=h,f.current=o,c.current=void 0})),k((function(){function e(){try{var e=r.getState();if(e===l.current)return;var n=u.current(e);if(t(n,f.current))return;f.current=n,l.current=e}catch(e){c.current=e}i()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[r,s]),o}(e,r,n.store,n.subscription);return(0,a.useDebugValue)(o),o}}var j,I=T(),_=r(1533);j=_.unstable_batchedUpdates,w=j;const R="TYPE_SET_STATE",B="TYPE_GET_STATE";function L(e){const t=Object.getPrototypeOf(e);return Object.getOwnPropertyNames(t).filter((e=>!["constructor","onAction","subscription"].includes(e)&&"function"==typeof t[e]&&!e.startsWith("_")))}class N{constructor(){(0,y.Z)(this,"initialState",void 0),(0,y.Z)(this,"state",void 0)}*getState(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return yield{type:B,payload:{models:t}}}setState(e){return{type:R,payload:{fn:e}}}dispatch(e){}}function M(e){return e&&"function"==typeof e.next&&"function"==typeof e.throw}(0,v.Fl)(!1);const H=(e,t,r)=>{for(let n of e)t=n(t,r);return t},z=(e,t)=>{for(let r in e){let n=e[r];e[r]=function(){let e=n(...arguments);if("function"==typeof e)return e(t)}}return e};function U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const o={},i={},a={},s={},c={},u={};for(const r in e){const n=e[r];void 0!==n.initialState?"function"==typeof n.initialState?a[r]=n.initialState(t[r],t):a[r]=(0,b.merge)(n.initialState,t[r]):a[r]=t[r],i[r]={},n.onAction&&(u[r]=(e,t)=>n.onAction(e,t,s[r])),n.subscription&&(c[r]=n.subscription),n.dispatch=function(e){if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];s[r][e](...n)}};const l=L(n);for(let e of l){const t=Object.getPrototypeOf(n)[e],a="".concat(r,"/").concat(e);i[r][e]=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return async e=>{const{dispatch:s,getState:c}=e;let l=0;const f=Object.entries(u).filter((e=>{let[t]=e;return t!==r})).map((e=>{let[,t]=e;return t}));let h=H(f,t.bind(n),a)(...i);const p=async e=>{let t=await e.next();for(;!t.done;){let n,i;if(t.value instanceof Promise)try{n=await t.value}catch(e){i=e}else if(M(t.value))try{n=await p(t.value)}catch(e){i=e}else{let e=t.value,i=e.payload;switch(e.type){case B:const e=c();n=i.models.length>0?i.models.length>1?i.models.map((t=>e[t])):e[i.models[0]]:e;break;case R:let t="".concat(a,"/@@").concat(++l);o[t]=i.fn,s({type:t,name:r}),delete o[t]}}t=i?await e.throw(i):await e.next(n)}return t.value};await p(h)}}}}const l=function(e,t){return(0,v.Uy)(e,(e=>{t.name&&o[t.type]&&("function"==typeof o[t.type]?e[t.name]=(0,v.Uy)(e[t.name],o[t.type]):e[t.name]=o[t.type])}))},f=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||m,h=d(r(l),a,f(g(...n))),{getState:p}=h;for(let[e,t]of Object.entries(i))s[e]=z(t,h);for(let t in c)c[t].call(e[t],s[t],p()[t]);return h.actions=s,h}const $=(0,a.createContext)({actions:{}});function q(e){let{store:t,children:r}=e;return(0,i.jsx)($.Provider,{value:{actions:t.actions},children:(0,i.jsx)(D,{store:t,children:r})})}function V(e,t){return"string"==typeof e||Array.isArray(e)?I((t=>Array.isArray(e)?e:Array(e).reduce(((e,t)=>e[t]),t)),t):I(e,t)}var G=r(6051),W=r.n(G),Q=r(8891);var K=a.createContext(null),Z=(K.Consumer,K.Provider),Y=K;var X=function(e,t){return X=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])},X(e,t)};function J(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}X(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ee=function(){return ee=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ee.apply(this,arguments)};Object.create;function te(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var re,ne,oe;Object.create;function ie(e){return e.type===ne.literal}function ae(e){return e.type===ne.argument}function se(e){return e.type===ne.number}function ce(e){return e.type===ne.date}function ue(e){return e.type===ne.time}function le(e){return e.type===ne.select}function fe(e){return e.type===ne.plural}function he(e){return e.type===ne.pound}function pe(e){return e.type===ne.tag}function de(e){return!(!e||"object"!=typeof e||e.type!==oe.number)}function me(e){return!(!e||"object"!=typeof e||e.type!==oe.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(re||(re={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(ne||(ne={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(oe||(oe={}));var ge=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ye=/(?:[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;function ve(e){var t={};return e.replace(ye,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var be=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,we=/^(@+)?(\+|#+)?[rs]?$/g,xe=/(\*)(0+)|(#+)(0+)|(0+)/g,Se=/^(0+)$/;function Ae(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(we,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function ke(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 De(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)),!Se.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ce(e){var t=ke(e);return t||{}}function Fe(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.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=o.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=ee(ee(ee({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return ee(ee({},e),Ce(t))}),{}));continue;case"engineering":t=ee(ee(ee({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return ee(ee({},e),Ce(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(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(xe,(function(e,r,n,o,i,a){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Se.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Ee.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ee,(function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var i=o.options[0];"w"===i?t=ee(ee({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=ee(ee({},t),Ae(i)))}else if(we.test(o.stem))t=ee(ee({},t),Ae(o.stem));else{var a=ke(o.stem);a&&(t=ee(ee({},t),a));var s=De(o.stem);s&&(t=ee(ee({},t),s))}}return t}var Pe,Oe={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function Te(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Oe[r||""]||Oe[n||""]||Oe["".concat(n,"-001")]||Oe["001"])[0]}var je=new RegExp("^".concat(ge.source,"*")),Ie=new RegExp("".concat(ge.source,"*$"));function _e(e,t){return{start:e,end:t}}var Re=!!String.prototype.startsWith,Be=!!String.fromCodePoint,Le=!!Object.fromEntries,Ne=!!String.prototype.codePointAt,Me=!!String.prototype.trimStart,He=!!String.prototype.trimEnd,ze=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ue=!0;try{Ue="a"===(null===(Pe=Ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Pe?void 0:Pe[0])}catch(_r){Ue=!1}var $e,qe=Re?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ve=Be?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Ge=Le?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},We=Ne?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},Qe=Me?function(e){return e.trimStart()}:function(e){return e.replace(je,"")},Ke=He?function(e){return e.trimEnd()}:function(e){return e.replace(Ie,"")};function Ze(e,t){return new RegExp(e,t)}if(Ue){var Ye=Ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$e=function(e,t){var r;return Ye.lastIndex=t,null!==(r=Ye.exec(e)[1])&&void 0!==r?r:""}}else $e=function(e,t){for(var r=[];;){var n=We(e,t);if(void 0===n||tt(n)||rt(n))break;r.push(n),t+=n>=65536?2:1}return Ve.apply(void 0,r)};var Xe=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 n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(re.UNMATCHED_CLOSING_TAG,_e(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Je(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:ne.pound,location:_e(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ne.literal,value:"<".concat(n,"/>"),location:_e(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Je(this.char()))return this.error(re.INVALID_TAG,_e(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(re.UNMATCHED_CLOSING_TAG,_e(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ne.tag,value:n,children:i,location:_e(r,this.clonePosition())},err:null}:this.error(re.INVALID_TAG,_e(a,this.clonePosition())))}return this.error(re.UNCLOSED_TAG,_e(r,this.clonePosition()))}return this.error(re.INVALID_TAG,_e(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&et(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{var i=this.tryParseUnquoted(e,t);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=_e(r,this.clonePosition());return{val:{type:ne.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Je(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Ve.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(),Ve(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(re.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(re.EMPTY_ARGUMENT,_e(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(re.MALFORMED_ARGUMENT,_e(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(re.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ne.argument,value:n,location:_e(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(re.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(re.MALFORMED_ARGUMENT,_e(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=$e(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:_e(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(re.EXPECT_ARGUMENT_TYPE,_e(i,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=Ke(y.val)).length)return this.error(re.EXPECT_ARGUMENT_STYLE,_e(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:_e(u,this.clonePosition())}}if((v=this.tryParseArgumentClose(n)).err)return v;var l=_e(n,this.clonePosition());if(c&&qe(null==c?void 0:c.style,"::",0)){var f=Qe(c.style.slice(2));if("number"===a)return(y=this.parseNumberSkeletonFromString(f,c.styleLocation)).err?y:{val:{type:ne.number,value:r,location:l,style:y.val},err:null};if(0===f.length)return this.error(re.EXPECT_DATE_TIME_SKELETON,l);var h=f;this.locale&&(h=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=Te(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===o?"H":o}return r}(f,this.locale));var p={type:oe.dateTime,pattern:h,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?ve(h):{}};return{val:{type:"date"===a?ne.date:ne.time,value:r,location:l,style:p},err:null}}return{val:{type:"number"===a?ne.number:"date"===a?ne.date:ne.time,value:r,location:l,style:null!==(o=null==c?void 0:c.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(re.EXPECT_SELECT_ARGUMENT_OPTIONS,_e(d,ee({},d)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(re.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(re.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,re.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,a,t,m);if(b.err)return b;if((v=this.tryParseArgumentClose(n)).err)return v;var E=_e(n,this.clonePosition());return"select"===a?{val:{type:ne.select,value:r,options:Ge(b.val),location:E},err:null}:{val:{type:ne.plural,value:r,options:Ge(b.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:E},err:null};default:return this.error(re.INVALID_ARGUMENT_TYPE,_e(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(re.EXPECT_ARGUMENT_CLOSING_BRACE,_e(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(re.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_e(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 new Error("Number skeleton cannot be empty");for(var t=e.split(be).filter((function(e){return e.length>0})),r=[],n=0,o=t;n<o.length;n++){var i=o[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var a=i[0],s=i.slice(1),c=0,u=s;c<u.length;c++)if(0===u[c].length)throw new Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}(e)}catch(e){return this.error(re.INVALID_NUMBER_SKELETON,t)}return{val:{type:oe.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Fe(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o,i=!1,a=[],s=new Set,c=n.value,u=n.location;;){if(0===c.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(re.EXPECT_PLURAL_ARGUMENT_SELECTOR,re.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=_e(l,this.clonePosition()),c=this.message.slice(l.offset,this.offset())}if(s.has(c))return this.error("select"===t?re.DUPLICATE_SELECT_ARGUMENT_SELECTOR:re.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?re.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:re.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_e(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var d=this.tryParseArgumentClose(h);if(d.err)return d;a.push([c,{value:p.val,location:_e(h,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===a.length?this.error("select"===t?re.EXPECT_SELECT_ARGUMENT_SELECTOR:re.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(re.MISSING_OTHER_CLAUSE,_e(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=_e(n,this.clonePosition());return o?ze(i*=r)?{val:i,err:null}:this.error(t,s):this.error(e,s)},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=We(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(qe(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()&&tt(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 Je(e){return e>=97&&e<=122||e>=65&&e<=90}function et(e){return 45===e||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}function tt(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function rt(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function nt(e){e.forEach((function(e){if(delete e.location,le(e)||fe(e))for(var t in e.options)delete e.options[t].location,nt(e.options[t].value);else se(e)&&de(e.style)||(ce(e)||ue(e))&&me(e.style)?delete e.style.location:pe(e)&&nt(e.children)}))}function ot(e,t){void 0===t&&(t={}),t=ee({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Xe(e,t).parse();if(r.err){var n=SyntaxError(re[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||nt(r.val),r.val}function it(e,t){var r=t&&t.cache?t.cache:pt,n=t&&t.serializer?t.serializer:lt;return(t&&t.strategy?t.strategy:ut)(e,{cache:r,serializer:n})}function at(e,t,r,n){var o=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),i=t.get(o);return void 0===i&&(i=e.call(this,n),t.set(o,i)),i}function st(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function ct(e,t,r,n,o){return r.bind(t,e,n,o)}function ut(e,t){return ct(e,this,1===e.length?at:st,t.cache.create(),t.serializer)}var lt=function(){return JSON.stringify(arguments)};function ft(){this.cache=Object.create(null)}ft.prototype.get=function(e){return this.cache[e]},ft.prototype.set=function(e,t){this.cache[e]=t};var ht,pt={create:function(){return new ft}},dt={variadic:function(e,t){return ct(e,this,st,t.cache.create(),t.serializer)},monadic:function(e,t){return ct(e,this,at,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(ht||(ht={}));var mt,gt=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return J(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),yt=function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ht.INVALID_VALUE,o)||this}return J(t,e),t}(gt),vt=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),ht.INVALID_VALUE,n)||this}return J(t,e),t}(gt),bt=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),ht.MISSING_VALUE,r)||this}return J(t,e),t}(gt);function Et(e){return"function"==typeof e}function wt(e,t,r,n,o,i,a){if(1===e.length&&ie(e[0]))return[{type:mt.literal,value:e[0].value}];for(var s=[],c=0,u=e;c<u.length;c++){var l=u[c];if(ie(l))s.push({type:mt.literal,value:l.value});else if(he(l))"number"==typeof i&&s.push({type:mt.literal,value:r.getNumberFormat(t).format(i)});else{var f=l.value;if(!o||!(f in o))throw new bt(f,a);var h=o[f];if(ae(l))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?mt.literal:mt.object,value:h});else if(ce(l)){var p="string"==typeof l.style?n.date[l.style]:me(l.style)?l.style.parsedOptions:void 0;s.push({type:mt.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(ue(l)){p="string"==typeof l.style?n.time[l.style]:me(l.style)?l.style.parsedOptions:n.time.medium;s.push({type:mt.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(se(l)){(p="string"==typeof l.style?n.number[l.style]:de(l.style)?l.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),s.push({type:mt.literal,value:r.getNumberFormat(t,p).format(h)})}else{if(pe(l)){var d=l.children,m=l.value,g=o[m];if(!Et(g))throw new vt(m,"function",a);var y=g(wt(d,t,r,n,o,i).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),s.push.apply(s,y.map((function(e){return{type:"string"==typeof e?mt.literal:mt.object,value:e}})))}if(le(l)){if(!(v=l.options[h]||l.options.other))throw new yt(l.value,h,Object.keys(l.options),a);s.push.apply(s,wt(v.value,t,r,n,o))}else if(fe(l)){var v;if(!(v=l.options["=".concat(h)])){if(!Intl.PluralRules)throw new gt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ht.MISSING_INTL_API,a);var b=r.getPluralRules(t,{type:l.pluralType}).select(h-(l.offset||0));v=l.options[b]||l.options.other}if(!v)throw new yt(l.value,h,Object.keys(l.options),a);s.push.apply(s,wt(v.value,t,r,n,o,h-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===mt.literal&&t.type===mt.literal?r.value+=t.value:e.push(t),e}),[])}(s)}function xt(e,t){return t?Object.keys(e).reduce((function(r,n){var o,i;return r[n]=(o=e[n],(i=t[n])?ee(ee(ee({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=ee(ee({},o[t]),i[t]||{}),e}),{})):o),r}),ee({},e)):e}function St(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(mt||(mt={}));var At,kt=function(){function e(t,r,n,o){var i,a=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===mt.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 wt(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale.toString()}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=xt(e.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,te([void 0],t,!1)))}),{cache:St(i.number),strategy:dt.variadic}),getDateTimeFormat:it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,te([void 0],t,!1)))}),{cache:St(i.dateTime),strategy:dt.variadic}),getPluralRules:it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,te([void 0],t,!1)))}),{cache:St(i.pluralRules),strategy:dt.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=ot,e.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"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(At||(At={}));var Dt=function(e){function t(r,n,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n," \n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return J(t,e),t}(Error),Ct=function(e){function t(t,r){return e.call(this,At.UNSUPPORTED_FORMATTER,t,r)||this}return J(t,e),t}(Dt),Ft=function(e){function t(t,r){return e.call(this,At.INVALID_CONFIG,t,r)||this}return J(t,e),t}(Dt),Pt=function(e){function t(t,r){return e.call(this,At.MISSING_DATA,t,r)||this}return J(t,e),t}(Dt),Ot=function(e){function t(t,r,n){return e.call(this,At.FORMAT_ERROR,"".concat(t," \nLocale: ").concat(r,"\n"),n)||this}return J(t,e),t}(Dt),Tt=function(e){function t(t,r,n,o){var i=e.call(this,"".concat(t," \nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description," \n"),r,o)||this;return i.descriptor=n,i}return J(t,e),t}(Ot),jt=function(e){function t(t,r){var n=e.call(this,At.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message":"id"," as fallback."))||this;return n.descriptor=t,n}return J(t,e),t}(Dt);function It(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var _t={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function Rt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Bt(e,t,r,n){var o,i=e&&e[t];if(i&&(o=i[r]),o)return o;n(new Ct("No ".concat(t," format named: ").concat(r)))}function Lt(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function Nt(e){Lt(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Mt=ee(ee({},_t),{textComponent:a.Fragment});function Ht(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=ee({timeZone:t},e[n]),r}),{})}function zt(e,t){return Object.keys(ee(ee({},e),t)).reduce((function(r,n){return r[n]=ee(ee({},e[n]||{}),t[n]||{}),r}),{})}function Ut(e,t){if(!t)return e;var r=kt.formats;return ee(ee(ee({},r),e),{date:zt(Ht(r.date,t),Ht(e.date||{},t)),time:zt(Ht(r.time,t),Ht(e.time||{},t))})}function $t(e,t,r,n,o){var i=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,u=e.defaultFormats,l=e.fallbackOnEmptyString,f=e.onError,h=e.timeZone,p=e.defaultRichTextElements;void 0===r&&(r={id:""});var d=r.id,m=r.defaultMessage;Lt(!!d,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(d),y=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(y)&&1===y.length&&y[0].type===ne.literal)return y[0].value;if(!n&&y&&"string"==typeof y&&!p)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=ee(ee({},p),n||{}),a=Ut(a,h),u=Ut(u,h),!y){if(!1===l&&""===y)return y;if((!m||i&&i.toLowerCase()!==c.toLowerCase())&&f(new jt(r,i)),m)try{return t.getMessageFormat(m,c,u,o).format(n)}catch(e){return f(new Tt('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),i,r,e)),"string"==typeof m?m:g}return g}try{return t.getMessageFormat(y,i,a,ee({formatters:t},o||{})).format(n)}catch(e){f(new Tt('Error formatting message: "'.concat(g,'", using ').concat(m?"default message":"id"," as fallback."),i,r,e))}if(m)try{return t.getMessageFormat(m,c,u,o).format(n)}catch(e){f(new Tt('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),i,r,e))}return"string"==typeof y?y:"string"==typeof m?m:g}var qt=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Vt(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,s=a&&Bt(o,"number",a,i)||{};return t(n,It(r,qt,s))}function Gt(e,t,r,n){void 0===n&&(n={});try{return Vt(e,t,n).format(r)}catch(t){e.onError(new Dt(At.FORMAT_ERROR,"Error formatting number.",t))}return String(r)}function Wt(e,t,r,n){void 0===n&&(n={});try{return Vt(e,t,n).formatToParts(r)}catch(t){e.onError(new Dt(At.FORMAT_ERROR,"Error formatting number.",t))}return[]}var Qt=["numeric","style"];function Kt(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new gt('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',ht.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&Bt(o,"relative",a,i)||{};return t(n,It(r,Qt,s))}(e,t,o).format(r,n)}catch(t){e.onError(new Ot("Error formatting relative time.",e.locale,t))}return String(r)}var Zt=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function Yt(e,t,r,n){var o=e.locale,i=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var c=n.format,u=ee(ee({},s&&{timeZone:s}),c&&Bt(i,t,c,a)),l=It(n,Zt,u);return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=ee(ee({},l),{hour:"numeric",minute:"numeric"})),r(o,l)}function Xt(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Yt(e,"date",t,a).format(s)}catch(t){e.onError(new Dt(At.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function Jt(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Yt(e,"time",t,a).format(s)}catch(t){e.onError(new Dt(At.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function er(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=r[2],s=void 0===a?{}:a,c=e.timeZone,u=e.locale,l=e.onError,f=It(s,Zt,c?{timeZone:c}:{});try{return t(u,f).formatRange(o,i)}catch(e){l(new Dt(At.FORMAT_ERROR,"Error formatting date time range.",e))}return String(o)}function tr(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Yt(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new Dt(At.FORMAT_ERROR,"Error formatting date.",t))}return[]}function rr(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Yt(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new Dt(At.FORMAT_ERROR,"Error formatting time.",t))}return[]}var nr=["localeMatcher","type"];function or(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.PluralRules||i(new gt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ht.MISSING_INTL_API));var a=It(n,nr);try{return t(o,a).select(r)}catch(e){i(new Ot("Error formatting plural.",o,e))}return"other"}var ir=["localeMatcher","type","style"],ar=Date.now();function sr(e,t,r,n){void 0===n&&(n={});var o=cr(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===o.length?o[0]:o}function cr(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.ListFormat||i(new gt('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',ht.MISSING_INTL_API));var a=It(n,ir);try{var s={},c=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(ar,"_").concat(e,"_").concat(ar)}(t);return s[r]=e,r}return String(e)}));return t(o,a).formatToParts(c).map((function(e){return"literal"===e.type?e:ee(ee({},e),{value:s[e.value]||e.value})}))}catch(e){i(new Dt(At.FORMAT_ERROR,"Error formatting list.",e))}return r}var ur=["localeMatcher","style","type","fallback"];function lr(e,t,r,n){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new gt('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',ht.MISSING_INTL_API));var a=It(n,ur);try{return t(o,a).of(r)}catch(e){i(new Dt(At.FORMAT_ERROR,"Error formatting display name.",e))}}function fr(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}function hr(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,te([void 0],t,!1)))}),{cache:Rt(e.dateTime),strategy:dt.variadic}),i=it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,te([void 0],t,!1)))}),{cache:Rt(e.number),strategy:dt.variadic}),a=it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,te([void 0],t,!1)))}),{cache:Rt(e.pluralRules),strategy:dt.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:it((function(e,t,r,n){return new kt(e,t,r,ee({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:a}},n||{}))}),{cache:Rt(e.message),strategy:dt.variadic}),getRelativeTimeFormat:it((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,te([void 0],e,!1)))}),{cache:Rt(e.relativeTime),strategy:dt.variadic}),getPluralRules:a,getListFormat:it((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,te([void 0],e,!1)))}),{cache:Rt(e.list),strategy:dt.variadic}),getDisplayNames:it((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,te([void 0],e,!1)))}),{cache:Rt(e.displayNames),strategy:dt.variadic})}}(t),n=ee(ee({},_t),e),o=n.locale,i=n.defaultLocale,a=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new Pt('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new Pt('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new Ft('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),fr(n),ee(ee({},n),{formatters:r,formatNumber:Gt.bind(null,n,r.getNumberFormat),formatNumberToParts:Wt.bind(null,n,r.getNumberFormat),formatRelativeTime:Kt.bind(null,n,r.getRelativeTimeFormat),formatDate:Xt.bind(null,n,r.getDateTimeFormat),formatDateToParts:tr.bind(null,n,r.getDateTimeFormat),formatTime:Jt.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:er.bind(null,n,r.getDateTimeFormat),formatTimeToParts:rr.bind(null,n,r.getDateTimeFormat),formatPlural:or.bind(null,n,r.getPluralRules),formatMessage:$t.bind(null,n,r),$t:$t.bind(null,n,r),formatList:sr.bind(null,n,r.getListFormat),formatListToParts:cr.bind(null,n,r.getListFormat),formatDisplayName:lr.bind(null,n,r.getDisplayNames)})}function pr(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function dr(e){return e?Object.keys(e).reduce((function(t,r){var n,o=e[r];return t[r]=Et(o)?(n=o,function(e){return n(a.Children.toArray(e))}):o,t}),{}):e}var mr=function(e,t,r,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var s=dr(n),c=$t.apply(void 0,te([e,t,r,s],o,!1));return Array.isArray(c)?a.Children.toArray(c):c},gr=function(e,t){var r=e.defaultRichTextElements,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["defaultRichTextElements"]),o=dr(r),i=hr(ee(ee(ee({},Mt),n),{defaultRichTextElements:o}),t);return ee(ee({},i),{formatMessage:mr.bind(null,{locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o},i.formatters)})};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:gr(pr(t.props),t.cache),prevConfig:pr(t.props)},t}J(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=pr(e);return function(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=r[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}(r,o)?null:{intl:gr(o,n),prevConfig:o}},t.prototype.render=function(){return Nt(this.state.intl),a.createElement(Z,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Mt}(a.PureComponent);function yr(){var e=a.useContext(Y);return Nt(e),e}var vr=r(669),br=r(2348),Er=r(4445),wr=r.n(Er);const xr=function(e){function t(e,n,c,u,h){for(var p,d,m,g,E,x=0,S=0,A=0,k=0,D=0,j=0,_=m=p=0,B=0,L=0,N=0,M=0,H=c.length,z=H-1,U="",$="",q="",V="";B<H;){if(d=c.charCodeAt(B),B===z&&0!==S+k+A+x&&(0!==S&&(d=47===S?10:47),k=A=x=0,H++,z++),0===S+k+A+x){if(B===z&&(0<L&&(U=U.replace(f,"")),0<U.trim().length)){switch(d){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(B)}d=59}switch(d){case 123:for(p=(U=U.trim()).charCodeAt(0),m=1,M=++B;B<H;){switch(d=c.charCodeAt(B)){case 123:m++;break;case 125:m--;break;case 47:switch(d=c.charCodeAt(B+1)){case 42:case 47:e:{for(_=B+1;_<z;++_)switch(c.charCodeAt(_)){case 47:if(42===d&&42===c.charCodeAt(_-1)&&B+2!==_){B=_+1;break e}break;case 10:if(47===d){B=_+1;break e}}B=_}}break;case 91:d++;case 40:d++;case 34:case 39:for(;B++<z&&c.charCodeAt(B)!==d;);}if(0===m)break;B++}if(m=c.substring(M,B),0===p&&(p=(U=U.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(U=U.replace(f,"")),d=U.charCodeAt(1)){case 100:case 109:case 115:case 45:L=n;break;default:L=T}if(M=(m=t(n,L,m,d,h+1)).length,0<I&&(E=s(3,m,L=r(T,U,N),n,F,C,M,d,h,u),U=L.join(""),void 0!==E&&0===(M=(m=E.trim()).length)&&(d=0,m="")),0<M)switch(d){case 115:U=U.replace(w,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(y,"$1 $2"))+"{"+m+"}",m=1===O||2===O&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===u&&($+=m,m="")}else m=""}else m=t(n,r(n,U,N),m,u,h+1);q+=m,m=N=L=_=p=0,U="",d=c.charCodeAt(++B);break;case 125:case 59:if(1<(M=(U=(0<L?U.replace(f,""):U).trim()).length))switch(0===_&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(M=(U=U.replace(" ",":")).length),0<I&&void 0!==(E=s(1,U,n,e,F,C,$.length,u,h,u))&&0===(M=(U=E.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),d=U.charCodeAt(1),p){case 0:break;case 64:if(105===d||99===d){V+=U+c.charAt(B);break}default:58!==U.charCodeAt(M-1)&&($+=o(U,p,d,U.charCodeAt(2)))}N=L=_=p=0,U="",d=c.charCodeAt(++B)}}switch(d){case 13:case 10:47===S?S=0:0===1+p&&107!==u&&0<U.length&&(L=1,U+="\0"),0<I*R&&s(0,U,n,e,F,C,$.length,u,h,u),C=1,F++;break;case 59:case 125:if(0===S+k+A+x){C++;break}default:switch(C++,g=c.charAt(B),d){case 9:case 32:if(0===k+x+S)switch(D){case 44:case 58:case 9:case 32:g="";break;default:32!==d&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===k+S+x&&(L=N=1,g="\f"+g);break;case 108:if(0===k+S+x+P&&0<_)switch(B-_){case 2:112===D&&58===c.charCodeAt(B-3)&&(P=D);case 8:111===j&&(P=j)}break;case 58:0===k+S+x&&(_=B);break;case 44:0===S+A+k+x&&(L=1,g+="\r");break;case 34:case 39:0===S&&(k=k===d?0:0===k?d:k);break;case 91:0===k+S+A&&x++;break;case 93:0===k+S+A&&x--;break;case 41:0===k+S+x&&A--;break;case 40:if(0===k+S+x){if(0===p)if(2*D+3*j==533);else p=1;A++}break;case 64:0===S+A+k+x+_+m&&(m=1);break;case 42:case 47:if(!(0<k+x+A))switch(S){case 0:switch(2*d+3*c.charCodeAt(B+1)){case 235:S=47;break;case 220:M=B,S=42}break;case 42:47===d&&42===D&&M+2!==B&&(33===c.charCodeAt(M+2)&&($+=c.substring(M,B+1)),g="",S=0)}}0===S&&(U+=g)}j=D,D=d,B++}if(0<(M=$.length)){if(L=n,0<I&&(void 0!==(E=s(2,$,L,e,F,C,M,u,h,u))&&0===($=E).length))return V+$+q;if($=L.join(",")+"{"+$+"}",0!=O*P){switch(2!==O||i($,2)||(P=0),P){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(v,"::-webkit-input-$1")+$.replace(v,"::-moz-$1")+$.replace(v,":-ms-input-$1")+$}P=0}}return V+$+q}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===O||2===O&&i(c,1)?"-webkit-"+c+c:c}if(0===O||2===O&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(D,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(h,":-webkit-")+a.replace(h,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(E,"tb");break;case 232:c=a.replace(E,"tb-rl");break;case 220:c=a.replace(E,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),_(2!==t?n:n.replace(A,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,l){for(var f,h=0,p=t;h<I;++h)switch(f=j[h].call(u,e,p,r,n,o,i,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(_=null,e?"function"!=typeof e?O=1:(O=2,_=e):O=0),c}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<I){var o=s(-1,r,n,n,F,C,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(T,n,r,0,0);return 0<I&&(void 0!==(o=s(-2,i,n,n,F,C,i.length,0,0,0))&&(i=o)),"",P=0,C=F=1,i}var l=/^\0+/g,f=/[\0\r\f]/g,h=/: */g,p=/zoo|gra/,d=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,S=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,D=/([^-])(image-set\()/,C=1,F=1,P=0,O=1,T=[],j=[],I=0,_=null,R=0;return u.use=function e(t){switch(t){case void 0:case null:I=j.length=0;break;default:if("function"==typeof t)j[I++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},u.set=c,void 0!==e&&c(e),u};const Sr={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const Ar=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}};var kr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const Dr=Ar((function(e){return kr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Cr=r(7061);function Fr(){return(Fr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Pr=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},Or=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,br.typeOf)(e)},Tr=Object.freeze([]),jr=Object.freeze({});function Ir(e){return"function"==typeof e}function _r(e){return e.displayName||e.name||"Component"}function Rr(e){return e&&"string"==typeof e.styledComponentId}var Br=void 0!==Cr&&(Cr.env.REACT_APP_SC_ATTR||Cr.env.SC_ATTR)||"data-styled",Lr="undefined"!=typeof window&&"HTMLElement"in window,Nr=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==Cr&&void 0!==Cr.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==Cr.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==Cr.env.REACT_APP_SC_DISABLE_SPEEDY&&Cr.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==Cr&&void 0!==Cr.env.SC_DISABLE_SPEEDY&&""!==Cr.env.SC_DISABLE_SPEEDY&&("false"!==Cr.env.SC_DISABLE_SPEEDY&&Cr.env.SC_DISABLE_SPEEDY)),Mr={};function Hr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var zr=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&Hr(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),Ur=new Map,$r=new Map,qr=1,Vr=function(e){if(Ur.has(e))return Ur.get(e);for(;$r.has(qr);)qr++;var t=qr++;return Ur.set(e,t),$r.set(t,e),t},Gr=function(e){return $r.get(e)},Wr=function(e,t){t>=qr&&(qr=t+1),Ur.set(e,t),$r.set(t,e)},Qr="style["+Br+'][data-styled-version="5.3.5"]',Kr=new RegExp("^"+Br+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Zr=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Yr=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(Kr);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(Wr(u,c),Zr(e,u,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},Xr=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Jr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(Br))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Br,"active"),n.setAttribute("data-styled-version","5.3.5");var a=Xr();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},en=function(){function e(e){var t=this.element=Jr(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}Hr(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),tn=function(){function e(e){var t=this.element=Jr(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),rn=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),nn=Lr,on={isServer:!Lr,useCSSOMInjection:!Nr},an=function(){function e(e,t,r){void 0===e&&(e=jr),void 0===t&&(t={}),this.options=Fr({},on,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Lr&&nn&&(nn=!1,function(e){for(var t=document.querySelectorAll(Qr),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(Br)&&(Yr(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return Vr(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Fr({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new rn(o):n?new en(o):new tn(o),new zr(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Vr(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Vr(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Vr(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=Gr(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=Br+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),sn=/(a)(d)/gi,cn=function(e){return String.fromCharCode(e+(e>25?39:97))};function un(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=cn(t%52)+r;return(cn(t%52)+r).replace(sn,"$1-$2")}var ln=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},fn=function(e){return ln(5381,e)};function hn(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ir(r)&&!Rr(r))return!1}return!0}var pn=fn("5.3.5"),dn=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&hn(e),this.componentId=t,this.baseHash=ln(pn,t),this.baseStyle=r,an.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=jn(this.rules,e,t,r).join(""),a=un(ln(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=ln(this.baseHash,r.hash),l="",f=0;f<c;f++){var h=this.rules[f];if("string"==typeof h)l+=h;else if(h){var p=jn(h,e,t,r),d=Array.isArray(p)?p.join(""):p;u=ln(u,d+f),l+=d}}if(l){var m=un(u>>>0);if(!t.hasNameForId(n,m)){var g=r(l,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),mn=/^\s*\/\/.*$/gm,gn=[":","[",".","#"];function yn(e){var t,r,n,o,i=void 0===e?jr:e,a=i.options,s=void 0===a?jr:a,c=i.plugins,u=void 0===c?Tr:c,l=new xr(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,n,i){return 0===n&&-1!==gn.indexOf(i[r.length])||i.match(o)?e:"."+t};function d(e,i,a,s){void 0===s&&(s="&");var c=e.replace(mn,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),l(a||!i?"":i,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),d.hash=u.length?u.reduce((function(e,t){return t.name||Hr(15),ln(e,t.name)}),5381).toString():"",d}var vn=s().createContext(),bn=(vn.Consumer,s().createContext()),En=(bn.Consumer,new an),wn=yn();function xn(){return(0,a.useContext)(vn)||En}function Sn(){return(0,a.useContext)(bn)||wn}function An(e){var t=(0,a.useState)(e.stylisPlugins),r=t[0],n=t[1],o=xn(),i=(0,a.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,a.useMemo)((function(){return yn({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,a.useEffect)((function(){wr()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),s().createElement(vn.Provider,{value:i},s().createElement(bn.Provider,{value:c},e.children))}var kn=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=wn);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return Hr(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=wn),this.name+e.hash},e}(),Dn=/([A-Z])/,Cn=/([A-Z])/g,Fn=/^ms-/,Pn=function(e){return"-"+e.toLowerCase()};function On(e){return Dn.test(e)?e.replace(Cn,Pn).replace(Fn,"-ms-"):e}var Tn=function(e){return null==e||!1===e||""===e};function jn(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=jn(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Tn(e)?"":Rr(e)?"."+e.styledComponentId:Ir(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:jn(e(t),t,r,n):e instanceof kn?r?(e.inject(r,n),e.getName(n)):e:Or(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Tn(t[a])&&(Array.isArray(t[a])&&t[a].isCss||Ir(t[a])?i.push(On(a)+":",t[a],";"):Or(t[a])?i.push.apply(i,e(t[a],a)):i.push(On(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in Sr?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var c}var In=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function _n(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Ir(e)||Or(e)?In(jn(Pr(Tr,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:In(jn(Pr(e,r)))}new Set;var Rn=function(e,t,r){return void 0===r&&(r=jr),e.theme!==r.theme&&e.theme||t||r.theme},Bn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ln=/(^-|-$)/g;function Nn(e){return e.replace(Bn,"-").replace(Ln,"")}var Mn=function(e){return un(fn(e)>>>0)};function Hn(e){return"string"==typeof e&&!0}var zn=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Un=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function $n(e,t,r){var n=e[r];zn(t)&&zn(n)?qn(n,t):e[r]=t}function qn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(zn(a))for(var s in a)Un(s)&&$n(e,a[s],s)}return e}var Vn=s().createContext();Vn.Consumer;var Gn={};function Wn(e,t,r){var n=Rr(e),o=!Hn(e),i=t.attrs,c=void 0===i?Tr:i,u=t.componentId,l=void 0===u?function(e,t){var r="string"!=typeof e?"sc":Nn(e);Gn[r]=(Gn[r]||0)+1;var n=r+"-"+Mn("5.3.5"+r+Gn[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):u,f=t.displayName,h=void 0===f?function(e){return Hn(e)?"styled."+e:"Styled("+_r(e)+")"}(e):f,p=t.displayName&&t.componentId?Nn(t.displayName)+"-"+t.componentId:t.componentId||l,d=n&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,m=t.shouldForwardProp;n&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var g,y=new dn(r,p,n?e.componentStyle:void 0),v=y.isStatic&&0===c.length,b=function(e,t){return function(e,t,r,n){var o=e.attrs,i=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,l=e.styledComponentId,f=e.target,h=function(e,t,r){void 0===e&&(e=jr);var n=Fr({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in Ir(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(Rn(t,(0,a.useContext)(Vn),s)||jr,t,o),p=h[0],d=h[1],m=function(e,t,r,n){var o=xn(),i=Sn();return t?e.generateAndInjectStyles(jr,o,i):e.generateAndInjectStyles(r,o,i)}(i,n,p),g=r,y=d.$as||t.$as||d.as||t.as||f,v=Hn(y),b=d!==t?Fr({},t,{},d):t,E={};for(var w in b)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?E.as=b[w]:(u?u(w,Dr,y):!v||Dr(w))&&(E[w]=b[w]));return t.style&&d.style!==t.style&&(E.style=Fr({},t.style,{},d.style)),E.className=Array.prototype.concat(c,l,m!==l?m:null,t.className,d.className).filter(Boolean).join(" "),E.ref=g,(0,a.createElement)(y,E)}(g,e,t,v)};return b.displayName=h,(g=s().forwardRef(b)).attrs=d,g.componentStyle=y,g.displayName=h,g.shouldForwardProp=m,g.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Tr,g.styledComponentId=p,g.target=n?e.target:e,g.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Hn(e)?e:Nn(_r(e)));return Wn(e,Fr({},o,{attrs:d,componentId:i}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?qn({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},o&&F()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var Qn=function(e){return function e(t,r,n){if(void 0===n&&(n=jr),!(0,br.isValidElementType)(r))return Hr(1,String(r));var o=function(){return t(r,n,_n.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,Fr({},n,{},o))},o.attrs=function(o){return e(t,r,Fr({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(Wn,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Qn[e]=Qn(e)}));var Kn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=hn(e),an.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(jn(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&an.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Zn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=_n.apply(void 0,[e].concat(r)),i="sc-global-"+Mn(JSON.stringify(o)),c=new Kn(o,i);function u(e){var t=xn(),r=Sn(),n=(0,a.useContext)(Vn),o=(0,a.useRef)(t.allocateGSInstance(i)).current;return t.server&&l(o,e,t,n,r),(0,a.useLayoutEffect)((function(){if(!t.server)return l(o,e,t,n,r),function(){return c.removeStyles(o,t)}}),[o,e,t,n,r]),null}function l(e,t,r,n,o){if(c.isStatic)c.renderStyles(e,Mr,r,o);else{var i=Fr({},t,{theme:Rn(t,n,u.defaultProps)});c.renderStyles(e,i,r,o)}}return s().memo(u)}function Yn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=_n.apply(void 0,[e].concat(r)).join(""),i=Mn(o);return new kn(i,o)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=Xr();return"<style "+[r&&'nonce="'+r+'"',Br+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?Hr(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return Hr(2);var r=((t={})[Br]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=Xr();return n&&(r.nonce=n),[s().createElement("style",Fr({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new an({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?Hr(2):s().createElement(An,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return Hr(3)}}();const Xn=Qn;var Jn=r(3615),eo=r.n(Jn),to=r(4335),ro=r.n(to),no=r(3996),oo=r.n(no);function io(){return(io=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ao(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,so(e,t)}function so(e,t){return(so=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function co(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}var uo={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},lo={rel:["amphtml","canonical","alternate"]},fo={type:["application/ld+json"]},ho={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},po=Object.keys(uo).map((function(e){return uo[e]})),mo={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},go=Object.keys(mo).reduce((function(e,t){return e[mo[t]]=t,e}),{}),yo=function(e,t){for(var r=e.length-1;r>=0;r-=1){var n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},vo=function(e){var t=yo(e,uo.TITLE),r=yo(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,(function(){return t}));var n=yo(e,"defaultTitle");return t||n||void 0},bo=function(e){return yo(e,"onChangeClientState")||function(){}},Eo=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return io({},e,t)}),{})},wo=function(e,t){return t.filter((function(e){return void 0!==e[uo.BASE]})).map((function(e){return e[uo.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),o=0;o<n.length;o+=1){var i=n[o].toLowerCase();if(-1!==e.indexOf(i)&&r[i])return t.concat(r)}return t}),[])},xo=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var o={};r.filter((function(e){for(var r,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||"rel"===r&&"canonical"===e[r].toLowerCase()||"rel"===c&&"stylesheet"===e[c].toLowerCase()||(r=c),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(r=s)}if(!r||!e[r])return!1;var u=e[r].toLowerCase();return n[r]||(n[r]={}),o[r]||(o[r]={}),!n[r][u]&&(o[r][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a+=1){var s=i[a],c=io({},n[s],o[s]);n[s]=c}return e}),[]).reverse()},So=function(e,t){if(Array.isArray(e)&&e.length)for(var r=0;r<e.length;r+=1)if(e[r][t])return!0;return!1},Ao=function(e){return Array.isArray(e)?e.join(""):e},ko=function(e,t){return Array.isArray(e)?e.reduce((function(e,r){return function(e,t){for(var r=Object.keys(e),n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1}(r,t)?e.priority.push(r):e.default.push(r),e}),{priority:[],default:[]}):{default:e}},Do=[uo.NOSCRIPT,uo.SCRIPT,uo.STYLE],Co=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Fo=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},Po=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,r){return t[mo[r]||r]=e[r],t}),t)},Oo=function(e,t){return t.map((function(t,r){var n,o=((n={key:r})["data-rh"]=!0,n);return Object.keys(t).forEach((function(e){var r=mo[e]||e;"innerHTML"===r||"cssText"===r?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[r]=t[e]})),s().createElement(e,o)}))},To=function(e,t,r){switch(e){case uo.TITLE:return{toComponent:function(){return r=t.titleAttributes,(n={key:e=t.title})["data-rh"]=!0,o=Po(r,n),[s().createElement(uo.TITLE,o,e)];var e,r,n,o},toString:function(){return function(e,t,r,n){var o=Fo(r),i=Ao(t);return o?"<"+e+' data-rh="true" '+o+">"+Co(i,n)+"</"+e+">":"<"+e+' data-rh="true">'+Co(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return Po(t)},toString:function(){return Fo(t)}};default:return{toComponent:function(){return Oo(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var o=Object.keys(n).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var o=void 0===n[t]?t:t+'="'+Co(n[t],r)+'"';return e?e+" "+o:o}),""),i=n.innerHTML||n.cssText||"",a=-1===Do.indexOf(e);return t+"<"+e+' data-rh="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,r)}}}},jo=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,o=e.htmlAttributes,i=e.noscriptTags,a=e.styleTags,s=e.title,c=void 0===s?"":s,u=e.titleAttributes,l=e.linkTags,f=e.metaTags,h=e.scriptTags,p={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var d=function(e){var t=e.linkTags,r=e.scriptTags,n=e.encode,o=ko(e.metaTags,ho),i=ko(t,lo),a=ko(r,fo);return{priorityMethods:{toComponent:function(){return[].concat(Oo(uo.META,o.priority),Oo(uo.LINK,i.priority),Oo(uo.SCRIPT,a.priority))},toString:function(){return To(uo.META,o.priority,n)+" "+To(uo.LINK,i.priority,n)+" "+To(uo.SCRIPT,a.priority,n)}},metaTags:o.default,linkTags:i.default,scriptTags:a.default}}(e);p=d.priorityMethods,l=d.linkTags,f=d.metaTags,h=d.scriptTags}return{priority:p,base:To(uo.BASE,t,n),bodyAttributes:To("bodyAttributes",r,n),htmlAttributes:To("htmlAttributes",o,n),link:To(uo.LINK,l,n),meta:To(uo.META,f,n),noscript:To(uo.NOSCRIPT,i,n),script:To(uo.SCRIPT,h,n),style:To(uo.STYLE,a,n),title:To(uo.TITLE,{title:c,titleAttributes:u},n)}},Io=s().createContext({}),_o=eo().shape({setHelmet:eo().func,helmetInstances:eo().shape({get:eo().func,add:eo().func,remove:eo().func})}),Ro="undefined"!=typeof document,Bo=function(e){function t(r){var n;return(n=e.call(this,r)||this).instances=[],n.value={setHelmet:function(e){n.props.context.helmet=e},helmetInstances:{get:function(){return n.instances},add:function(e){n.instances.push(e)},remove:function(e){var t=n.instances.indexOf(e);n.instances.splice(t,1)}}},t.canUseDOM||(r.context.helmet=jo({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),n}return ao(t,e),t.prototype.render=function(){return s().createElement(Io.Provider,{value:this.value},this.props.children)},t}(a.Component);Bo.canUseDOM=Ro,Bo.propTypes={context:eo().shape({helmet:eo().shape()}),children:eo().node.isRequired},Bo.defaultProps={context:{}},Bo.displayName="HelmetProvider";var Lo=function(e,t){var r,n=document.head||document.querySelector(uo.HEAD),o=n.querySelectorAll(e+"[data-rh]"),i=[].slice.call(o),a=[];return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&("innerHTML"===o?n.innerHTML=t.innerHTML:"cssText"===o?n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText)):n.setAttribute(o,void 0===t[o]?"":t[o]));n.setAttribute("data-rh","true"),i.some((function(e,t){return r=t,n.isEqualNode(e)}))?i.splice(r,1):a.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:a}},No=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute("data-rh"),o=n?n.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s+=1){var c=a[s],u=t[c]||"";r.getAttribute(c)!==u&&r.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f-=1)r.removeAttribute(i[f]);o.length===i.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==a.join(",")&&r.setAttribute("data-rh",a.join(","))}},Mo=function(e,t){var r=e.baseTag,n=e.htmlAttributes,o=e.linkTags,i=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,l=e.title,f=e.titleAttributes;No(uo.BODY,e.bodyAttributes),No(uo.HTML,n),function(e,t){void 0!==e&&document.title!==e&&(document.title=Ao(e)),No(uo.TITLE,t)}(l,f);var h={baseTag:Lo(uo.BASE,r),linkTags:Lo(uo.LINK,o),metaTags:Lo(uo.META,i),noscriptTags:Lo(uo.NOSCRIPT,a),scriptTags:Lo(uo.SCRIPT,c),styleTags:Lo(uo.STYLE,u)},p={},d={};Object.keys(h).forEach((function(e){var t=h[e],r=t.newTags,n=t.oldTags;r.length&&(p[e]=r),n.length&&(d[e]=h[e].oldTags)})),t&&t(),s(e,p,d)},Ho=null,zo=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).rendered=!1,t}ao(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!wr()(e,this.props)},r.componentDidUpdate=function(){this.emitChange()},r.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},r.emitChange=function(){var e,t,r=this.props.context,n=r.setHelmet,o=null,i=(e=r.helmetInstances.get().map((function(e){var t=io({},e.props);return delete t.context,t})),{baseTag:wo(["href"],e),bodyAttributes:Eo("bodyAttributes",e),defer:yo(e,"defer"),encode:yo(e,"encodeSpecialCharacters"),htmlAttributes:Eo("htmlAttributes",e),linkTags:xo(uo.LINK,["rel","href"],e),metaTags:xo(uo.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:xo(uo.NOSCRIPT,["innerHTML"],e),onChangeClientState:bo(e),scriptTags:xo(uo.SCRIPT,["src","innerHTML"],e),styleTags:xo(uo.STYLE,["cssText"],e),title:vo(e),titleAttributes:Eo("titleAttributes",e),prioritizeSeoTags:So(e,"prioritizeSeoTags")});Bo.canUseDOM?(t=i,Ho&&cancelAnimationFrame(Ho),t.defer?Ho=requestAnimationFrame((function(){Mo(t,(function(){Ho=null}))})):(Mo(t),Ho=null)):jo&&(o=jo(i)),n(o)},r.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},r.render=function(){return this.init(),null},t}(a.Component);zo.propTypes={context:_o.isRequired},zo.displayName="HelmetDispatcher";var Uo=["children"],$o=["children"],qo=function(e){function t(){return e.apply(this,arguments)||this}ao(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!ro()(this.props,e)},r.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case uo.SCRIPT:case uo.NOSCRIPT:return{innerHTML:t};case uo.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren;return io({},n,((t={})[r.type]=[].concat(n[r.type]||[],[io({},e.newChildProps,this.mapNestedChildrenToProps(r,e.nestedChildren))]),t))},r.mapObjectTypeChildren=function(e){var t,r,n=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(n.type){case uo.TITLE:return io({},o,((t={})[n.type]=a,t.titleAttributes=io({},i),t));case uo.BODY:return io({},o,{bodyAttributes:io({},i)});case uo.HTML:return io({},o,{htmlAttributes:io({},i)});default:return io({},o,((r={})[n.type]=io({},i),r))}},r.mapArrayTypeChildrenToProps=function(e,t){var r=io({},t);return Object.keys(e).forEach((function(t){var n;r=io({},r,((n={})[t]=e[t],n))})),r},r.warnOnInvalidChildren=function(e,t){return oo()(po.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+po.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),oo()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(e,t){var r=this,n={};return s().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=co(o,Uo),s=Object.keys(a).reduce((function(e,t){return e[go[t]||t]=a[t],e}),{}),c=e.type;switch("symbol"==typeof c?c=c.toString():r.warnOnInvalidChildren(e,i),c){case uo.FRAGMENT:t=r.mapChildrenToProps(i,t);break;case uo.LINK:case uo.META:case uo.NOSCRIPT:case uo.SCRIPT:case uo.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:s,nestedChildren:i});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}}})),this.mapArrayTypeChildrenToProps(n,t)},r.render=function(){var e=this.props,t=e.children,r=io({},co(e,$o));return t&&(r=this.mapChildrenToProps(t,r)),s().createElement(Io.Consumer,null,(function(e){return s().createElement(zo,io({},r,{context:e}))}))},t}(a.Component);qo.propTypes={base:eo().object,bodyAttributes:eo().object,children:eo().oneOfType([eo().arrayOf(eo().node),eo().node]),defaultTitle:eo().string,defer:eo().bool,encodeSpecialCharacters:eo().bool,htmlAttributes:eo().object,link:eo().arrayOf(eo().object),meta:eo().arrayOf(eo().object),noscript:eo().arrayOf(eo().object),onChangeClientState:eo().func,script:eo().arrayOf(eo().object),style:eo().arrayOf(eo().object),title:eo().string,titleAttributes:eo().object,titleTemplate:eo().string,prioritizeSeoTags:eo().bool},qo.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},qo.displayName="Helmet";var Vo=r(5969),Go=r(8717),Wo=r(213);const Qo=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);var o=(0,Wo.convert)(t),i=n?-1:1;!function e(a,s,c){var u,l="object"==typeof a&&null!==a?a:{};"string"==typeof l.type&&(u="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0,Object.defineProperty(f,"name",{value:"node ("+l.type+(u?"<"+u+">":"")+")"}));return f;function f(){var u,l,f,h=[];if((!t||o(a,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(a,c)),false===h[0]))return h;if(a.children&&"skip"!==h[0])for(l=(n?a.children.length:-1)+i,f=c.concat(a);l>-1&&l<a.children.length;){if(u=e(a.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+i}return h}}(e,null,[])()};function Ko(e){return new RegExp("^("+e+")$","i")}const Zo=new Vo;function Yo(e,t,r){const n=r.skip&&Ko(r.skip),o=(0,Wo.convert)(r.parents||(t=>t===e)),i=[];let a,s,c;var u,l,f;return Zo.reset(),l=function(e,u,l){const f=(0,Go.B)(e,{includeImageAlt:!1}),h=e.data&&e.data.hProperties&&e.data.hProperties.id,p=Zo.slug(h||f);if(o(l)){if(null!==u&&t&&!a&&t.test(f))return a=u+1,void(c=e);null!==u&&c&&!s&&e.depth<=c.depth&&(s=u),!s&&t||r.maxDepth&&!(e.depth<=r.maxDepth)||n&&n.test(f)||i.push({depth:e.depth,children:e.children,id:p})}},"function"==typeof(u="heading")&&"function"!=typeof l&&(f=l,l=u,u=null),Qo(e,u,(function(e,t){var r=t[t.length-1];return l(e,r?r.children.indexOf(e):null,r)}),f),{index:a||-1,endIndex:a?s||e.children.length:-1,map:i}}var Xo=r(229);function Jo(e,t){const{ordered:r=!1,tight:n=!1,prefix:o=null}=t,i={type:"list",ordered:r,spread:!1,children:[]};let a=Number.POSITIVE_INFINITY,s=-1;for(;++s<e.length;)e[s].depth<a&&(a=e[s].depth);for(s=-1;++s<e.length;)e[s].depth-=a-1;for(s=-1;++s<e.length;)ei(e[s],i,{ordered:r,tight:n,prefix:o});return i}function ei(e,t,r){let n=-1;if("list"===t.type)if(1===e.depth)t.children.push({type:"listItem",spread:!1,children:[{type:"paragraph",children:[{type:"link",title:null,url:"#"+(r.prefix||"")+e.id,children:ti(e.children)}]}]});else if(t.children.length>0)ei(e,t.children[t.children.length-1],r);else{const n={type:"listItem",spread:!1,children:[]};t.children.push(n),ei(e,n,r)}else if(t.children[t.children.length-1]&&"list"===t.children[t.children.length-1].type)e.depth--,ei(e,t.children[t.children.length-1],r);else{const n={type:"list",ordered:r.ordered,spread:!1,children:[]};t.children.push(n),e.depth--,ei(e,n,r)}if("list"!==t.type||r.tight)t.spread=!r.tight;else for(t.spread=!1;++n<t.children.length;)if(t.children[n].children.length>1){t.spread=!0;break}}function ti(e){let t=[],r=-1;if(e)for(;++r<e.length;)t=t.concat(ri(e[r]));return t}function ri(e){if("link"===e.type||"linkReference"===e.type||"footnote"===e.type||"footnoteReference"===e.type)return ti(e.children);if("children"in e){const{children:t,position:r,...n}=e;return Object.assign(Xo(!0,{},n),{children:ti(e.children)})}const{position:t,...r}=e;return Xo(!0,{},r)}var ni=r(3428);const oi=new Vo;function ii(){return e=>{oi.reset(),(0,ni.visit)(e,"heading",(e=>{const t=e.data||(e.data={}),r=t.hProperties||(t.hProperties={});let n=r.id;n=n?oi.slug(String(n),!0):oi.slug((0,Go.B)(e)),t.id=n,r.id=n}))}}var ai=function(e,t,r){var n={type:String(e)};return null!=r||"string"!=typeof t&&!Array.isArray(t)?Object.assign(n,t):r=t,Array.isArray(r)?n.children=r:null!=r&&(n.value=String(r)),n};const si=ui("start"),ci=ui("end");function ui(e){return function(t){const r=t&&t.position&&t.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}const li={}.hasOwnProperty;function fi(e){return String(e||"").toUpperCase()}const hi={}.hasOwnProperty;function pi(e,t){const r=t.data||{};return"value"in t&&!(hi.call(r,"hName")||hi.call(r,"hProperties")||hi.call(r,"hChildren"))?e.augment(t,ai("text",t.value)):e(t,"div",gi(e,t))}function di(e,t,r){const n=t&&t.type;let o;if(!n)throw new Error("Expected node, got `"+t+"`");return o=hi.call(e.handlers,n)?e.handlers[n]:e.passThrough&&e.passThrough.includes(n)?mi:e.unknownHandler,("function"==typeof o?o:pi)(e,t,r)}function mi(e,t){return"children"in t?{...t,children:gi(e,t)}:t}function gi(e,t){const r=[];if("children"in t){const n=t.children;let o=-1;for(;++o<n.length;){const i=di(e,n[o],t);if(i){if(o&&"break"===n[o-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(i)?r.push(...i):r.push(i)}}}return r}var yi=r(488);const vi={'"':"quot","&":"amp","<":"lt",">":"gt"};function bi(e,t){const r=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+vi[e]+";"}))}(function(e){const t=[];let r=-1,n=0,o=0;for(;++r<e.length;){const i=e.charCodeAt(r);let a="";if(37===i&&(0,yi.asciiAlphanumeric)(e.charCodeAt(r+1))&&(0,yi.asciiAlphanumeric)(e.charCodeAt(r+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(r+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+o+1,a=""),o&&(r+=o,o=0)}return t.join("")+e.slice(n)}(e||""));if(!t)return r;const n=r.indexOf(":"),o=r.indexOf("?"),i=r.indexOf("#"),a=r.indexOf("/");return n<0||a>-1&&n>a||o>-1&&n>o||i>-1&&n>i||t.test(r.slice(0,n))?r:""}function Ei(e,t){const r=[];let n=-1;for(t&&r.push(ai("text","\n"));++n<e.length;)n&&r.push(ai("text","\n")),r.push(e[n]);return t&&e.length>0&&r.push(ai("text","\n")),r}function wi(e,t){const r=String(t.identifier),n=bi(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let i;-1===o?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,i=e.footnoteOrder.length):(e.footnoteCounts[r]++,i=o+1);const a=e.footnoteCounts[r];return e(t,"sup",[e(t.position,"a",{href:"#"+e.clobberPrefix+"fn-"+n,id:e.clobberPrefix+"fnref-"+n+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[ai("text",String(i))])])}var xi=r(4651);function Si(e,t){const r=t.referenceType;let n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return ai("text","!["+t.alt+n);const o=gi(e,t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift(ai("text","["));const a=o[o.length-1];return a&&"text"===a.type?a.value+=n:o.push(ai("text",n)),o}function Ai(e){const t=e.spread;return null==t?e.children.length>1:t}function ki(e,t,r){let n=0,o=e.length;if(t){let t=e.codePointAt(n);for(;9===t||32===t;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>n?e.slice(n,o):""}const Di={blockquote:function(e,t){return e(t,"blockquote",Ei(gi(e,t),!0))},break:function(e,t){return[e(t,"br"),ai("text","\n")]},code:function(e,t){const r=t.value?t.value+"\n":"",n=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};n&&(o.className=["language-"+n]);const i=e(t,"code",o,[ai("text",r)]);return t.meta&&(i.data={meta:t.meta}),e(t.position,"pre",[i])},delete:function(e,t){return e(t,"del",gi(e,t))},emphasis:function(e,t){return e(t,"em",gi(e,t))},footnoteReference:wi,footnote:function(e,t){const r=e.footnoteById;let n=1;for(;n in r;)n++;const o=String(n);return r[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},wi(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){return e(t,"h"+t.depth,gi(e,t))},html:function(e,t){return e.dangerous?e.augment(t,ai("raw",t.value)):null},imageReference:function(e,t){const r=e.definition(t.identifier);if(!r)return Si(e,t);const n={src:xi(r.url||""),alt:t.alt};return null!==r.title&&void 0!==r.title&&(n.title=r.title),e(t,"img",n)},image:function(e,t){const r={src:xi(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(t,"img",r)},inlineCode:function(e,t){return e(t,"code",[ai("text",t.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,t){const r=e.definition(t.identifier);if(!r)return Si(e,t);const n={href:xi(r.url||"")};return null!==r.title&&void 0!==r.title&&(n.title=r.title),e(t,"a",n,gi(e,t))},link:function(e,t){const r={href:xi(t.url)};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(t,"a",r,gi(e,t))},listItem:function(e,t,r){const n=gi(e,t),o=r?function(e){let t=e.spread;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Ai(r[n]);return Boolean(t)}(r):Ai(t),i={},a=[];if("boolean"==typeof t.checked){let r;n[0]&&"element"===n[0].type&&"p"===n[0].tagName?r=n[0]:(r=e(null,"p",[]),n.unshift(r)),r.children.length>0&&r.children.unshift(ai("text"," ")),r.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),i.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const e=n[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push(ai("text","\n")),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const c=n[n.length-1];return!c||!o&&"tagName"in c&&"p"===c.tagName||a.push(ai("text","\n")),e(t,"li",i,a)},list:function(e,t){const r={},n=t.ordered?"ol":"ul",o=gi(e,t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++i<o.length;){const e=o[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}return e(t,n,r,Ei(o,!0))},paragraph:function(e,t){return e(t,"p",gi(e,t))},root:function(e,t){return e.augment(t,ai("root",Ei(gi(e,t))))},strong:function(e,t){return e(t,"strong",gi(e,t))},table:function(e,t){const r=t.children;let n=-1;const o=t.align||[],i=[];for(;++n<r.length;){const a=r[n].children,s=0===n?"th":"td",c=[];let u=-1;const l=t.align?o.length:a.length;for(;++u<l;){const t=a[u];c.push(e(t,s,{align:o[u]},t?gi(e,t):[]))}i[n]=e(r[n],"tr",Ei(c,!0))}return e(t,"table",Ei([e(i[0].position,"thead",Ei([i[0]],!0))].concat(i[1]?e({start:si(i[1]),end:ci(i[i.length-1])},"tbody",Ei(i.slice(1),!0)):[]),!0))},text:function(e,t){return e.augment(t,ai("text",function(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),o=0;const i=[];for(;n;)i.push(ki(t.slice(o,n.index),o>0,!0),n[0]),o=n.index+n[0].length,n=r.exec(t);return i.push(ki(t.slice(o),o>0,!1)),i.join("")}(String(t.value))))},thematicBreak:function(e,t){return e(t,"hr")},toml:Ci,yaml:Ci,definition:Ci,footnoteDefinition:Ci};function Ci(){return null}const Fi={}.hasOwnProperty;function Pi(e,t){const r=t||{},n=r.allowDangerousHtml||!1,o={};return a.dangerous=n,a.clobberPrefix=void 0===r.clobberPrefix||null===r.clobberPrefix?"user-content-":r.clobberPrefix,a.footnoteLabel=r.footnoteLabel||"Footnotes",a.footnoteBackLabel=r.footnoteBackLabel||"Back to content",a.definition=function(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return(0,ni.visit)(e,"definition",(e=>{const r=fi(e.identifier);r&&!li.call(t,r)&&(t[r]=e)})),function(e){const r=fi(e);return r&&li.call(t,r)?t[r]:null}}(e),a.footnoteById=o,a.footnoteOrder=[],a.footnoteCounts={},a.augment=i,a.handlers={...Di,...r.handlers},a.unknownHandler=r.unknownHandler,a.passThrough=r.passThrough,(0,ni.visit)(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();Fi.call(o,t)||(o[t]=e)})),a;function i(e,t){if(e&&"data"in e&&e.data){const r=e.data;r.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=r.hName),"element"===t.type&&r.hProperties&&(t.properties={...t.properties,...r.hProperties}),"children"in t&&t.children&&r.hChildren&&(t.children=r.hChildren)}if(e){const n="type"in e?e:{position:e};(r=n)&&r.position&&r.position.start&&r.position.start.line&&r.position.start.column&&r.position.end&&r.position.end.line&&r.position.end.column&&(t.position={start:si(n),end:ci(n)})}var r;return t}function a(e,t,r,n){return Array.isArray(r)&&(n=r,r={}),i(e,{type:"element",tagName:t,properties:r||{},children:n||[]})}}function Oi(e,t){const r=Pi(e,t),n=di(r,e,null),o=function(e){let t=-1;const r=[];for(;++t<e.footnoteOrder.length;){const n=e.footnoteById[e.footnoteOrder[t].toUpperCase()];if(!n)continue;const o=gi(e,n),i=String(n.identifier),a=bi(i.toLowerCase());let s=0;const c=[];for(;++s<=e.footnoteCounts[i];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(t)}const u=o[o.length-1];if(u&&"element"===u.type&&"p"===u.tagName){const e=u.children[u.children.length-1];e&&"text"===e.type?e.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...c)}else o.push(...c);const l={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:Ei(o,!0)};n.position&&(l.position=n.position),r.push(l)}return 0===r.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[ai("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:Ei(r,!0)},{type:"text",value:"\n"}]}}(r);return o&&n.children.push(ai("text","\n"),o),Array.isArray(n)?{type:"root",children:n}:n}var Ti=r(4799),ji="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Ii(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),(function(){r(window.event)}))}function _i(e,t){for(var r=t.slice(0,t.length-1),n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function Ri(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),r=t.lastIndexOf("");r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}for(var Bi={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":ji?173:189,"=":ji?61:187,";":ji?59:186,"'":222,"[":219,"]":221,"\\":220},Li={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Ni={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Mi={16:!1,18:!1,17:!1,91:!1},Hi={},zi=1;zi<20;zi++)Bi["f".concat(zi)]=111+zi;var Ui=[],$i=!1,qi="all",Vi=[],Gi=function(e){return Bi[e.toLowerCase()]||Li[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function Wi(e){qi=e||"all"}function Qi(){return qi||"all"}var Ki=function(e){var t=e.key,r=e.scope,n=e.method,o=e.splitKey,i=void 0===o?"+":o;Ri(t).forEach((function(e){var t=e.split(i),o=t.length,a=t[o-1],s="*"===a?"*":Gi(a);if(Hi[s]){r||(r=Qi());var c=o>1?_i(Li,t):[];Hi[s]=Hi[s].filter((function(e){return!((!n||e.method===n)&&e.scope===r&&function(e,t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,o=!0,i=0;i<r.length;i++)-1===n.indexOf(r[i])&&(o=!1);return o}(e.mods,c))}))}}))};function Zi(e,t,r,n){var o;if(t.element===n&&(t.scope===r||"all"===t.scope)){for(var i in o=t.mods.length>0,Mi)Object.prototype.hasOwnProperty.call(Mi,i)&&(!Mi[i]&&t.mods.indexOf(+i)>-1||Mi[i]&&-1===t.mods.indexOf(+i))&&(o=!1);(0!==t.mods.length||Mi[16]||Mi[18]||Mi[17]||Mi[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function Yi(e,t){var r=Hi["*"],n=e.keyCode||e.which||e.charCode;if(Xi.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===Ui.indexOf(n)&&229!==n&&Ui.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var r=Ni[t];e[t]&&-1===Ui.indexOf(r)?Ui.push(r):!e[t]&&Ui.indexOf(r)>-1?Ui.splice(Ui.indexOf(r),1):"metaKey"===t&&e[t]&&3===Ui.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Ui=Ui.slice(Ui.indexOf(r))))})),n in Mi){for(var o in Mi[n]=!0,Li)Li[o]===n&&(Xi[o]=!0);if(!r)return}for(var i in Mi)Object.prototype.hasOwnProperty.call(Mi,i)&&(Mi[i]=e[Ni[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Ui.indexOf(17)&&Ui.push(17),-1===Ui.indexOf(18)&&Ui.push(18),Mi[17]=!0,Mi[18]=!0);var a=Qi();if(r)for(var s=0;s<r.length;s++)r[s].scope===a&&("keydown"===e.type&&r[s].keydown||"keyup"===e.type&&r[s].keyup)&&Zi(e,r[s],a,t);if(n in Hi)for(var c=0;c<Hi[n].length;c++)if(("keydown"===e.type&&Hi[n][c].keydown||"keyup"===e.type&&Hi[n][c].keyup)&&Hi[n][c].key){for(var u=Hi[n][c],l=u.splitKey,f=u.key.split(l),h=[],p=0;p<f.length;p++)h.push(Gi(f[p]));h.sort().join("")===Ui.sort().join("")&&Zi(e,u,a,t)}}}function Xi(e,t,r){Ui=[];var n=Ri(e),o=[],i="all",a=document,s=0,c=!1,u=!0,l="+",f=!1;for(void 0===r&&"function"==typeof t&&(r=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(c=t.keyup),void 0!==t.keydown&&(u=t.keydown),void 0!==t.capture&&(f=t.capture),"string"==typeof t.splitKey&&(l=t.splitKey)),"string"==typeof t&&(i=t);s<n.length;s++)o=[],(e=n[s].split(l)).length>1&&(o=_i(Li,e)),(e="*"===(e=e[e.length-1])?"*":Gi(e))in Hi||(Hi[e]=[]),Hi[e].push({keyup:c,keydown:u,scope:i,mods:o,shortcut:n[s],method:r,key:n[s],splitKey:l,element:a});void 0!==a&&!function(e){return Vi.indexOf(e)>-1}(a)&&window&&(Vi.push(a),Ii(a,"keydown",(function(e){Yi(e,a)}),f),$i||($i=!0,Ii(window,"focus",(function(){Ui=[]}),f)),Ii(a,"keyup",(function(e){Yi(e,a),function(e){var t=e.keyCode||e.which||e.charCode,r=Ui.indexOf(t);if(r>=0&&Ui.splice(r,1),e.key&&"meta"===e.key.toLowerCase()&&Ui.splice(0,Ui.length),93!==t&&224!==t||(t=91),t in Mi)for(var n in Mi[t]=!1,Li)Li[n]===t&&(Xi[n]=!1)}(e)}),f))}var Ji={setScope:Wi,getScope:Qi,deleteScope:function(e,t){var r,n;for(var o in e||(e=Qi()),Hi)if(Object.prototype.hasOwnProperty.call(Hi,o))for(r=Hi[o],n=0;n<r.length;)r[n].scope===e?r.splice(n,1):n++;Qi()===e&&Wi(t||"all")},getPressedKeyCodes:function(){return Ui.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=Gi(e)),-1!==Ui.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,r=t.tagName,n=!0;return!t.isContentEditable&&("INPUT"!==r&&"TEXTAREA"!==r&&"SELECT"!==r||t.readOnly)||(n=!1),n},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(Hi).forEach((function(r){var n=Hi[r].find((function(r){return r.scope===t&&r.shortcut===e}));n&&n.method&&n.method()}))},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&Ki(e)}));else if("object"==typeof e)e.key&&Ki(e);else if("string"==typeof e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=r[0],i=r[1];"function"==typeof o&&(i=o,o=""),Ki({key:e,scope:o,method:i,splitKey:"+"})}}else Object.keys(Hi).forEach((function(e){return delete Hi[e]}))},keyMap:Bi,modifier:Li,modifierMap:Ni};for(var ea in Ji)Object.prototype.hasOwnProperty.call(Ji,ea)&&(Xi[ea]=Ji[ea]);if("undefined"!=typeof window){var ta=window.hotkeys;Xi.noConflict=function(e){return e&&window.hotkeys===Xi&&(window.hotkeys=ta),Xi},window.hotkeys=Xi}Xi.filter=function(){return!0};var ra=function(e,t){var r=e.target,n=r&&r.tagName;return Boolean(n&&t&&t.includes(n))};function na(e,t,r,n){r instanceof Array&&(n=r,r=void 0);var o=r||{},i=o.enableOnTags,s=o.filter,c=o.keyup,u=o.keydown,l=o.filterPreventDefault,f=void 0===l||l,h=o.enabled,p=void 0===h||h,d=o.enableOnContentEditable,m=void 0!==d&&d,g=(0,a.useRef)(null),y=(0,a.useCallback)((function(e,r){var n;return s&&!s(e)?!f:!!(ra(e,["INPUT","TEXTAREA","SELECT"])&&!ra(e,i)||null!=(n=e.target)&&n.isContentEditable&&!m)||(null===g.current||document.activeElement===g.current)&&(t(e,r),!0)}),n?[g,i,s].concat(n):[g,i,s]);return(0,a.useEffect)((function(){if(p)return c&&!0!==u&&(r.keydown=!1),Xi(e,r||{},y),function(){return Xi.unbind(e,y)};Xi.unbind(e,y)}),[y,e,p]),g}Xi.isPressed;function oa(){return oa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oa.apply(this,arguments)}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var ia="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect,aa={status:"not-requested",loading:!1,result:void 0,error:void 0},sa={status:"loading",loading:!0,result:void 0,error:void 0},ca=function(){},ua={initialState:function(e){return e&&e.executeOnMount?sa:aa},executeOnMount:!0,executeOnUpdate:!0,setLoading:function(e){return sa},setResult:function(e,t){return{status:"success",loading:!1,result:e,error:void 0}},setError:function(e,t){return{status:"error",loading:!1,result:void 0,error:e}},onSuccess:ca,onError:ca},la=function(e,t,r){var n,o=function(e){return oa({},ua,{},e)}(r),i=(0,a.useState)(null),s=i[0],c=i[1],u=function(e){var t=(0,a.useState)((function(){return e.initialState(e)})),r=t[0],n=t[1],o=(0,a.useCallback)((function(){return n(e.initialState(e))}),[n,e]),i=(0,a.useCallback)((function(){return n(e.setLoading(r))}),[r,n]),s=(0,a.useCallback)((function(t){return n(e.setResult(t,r))}),[r,n]),c=(0,a.useCallback)((function(t){return n(e.setError(t,r))}),[r,n]),u=n,l=(0,a.useCallback)((function(e){return u(oa({},r,{},e))}),[r,u]);return{value:r,set:u,merge:l,reset:o,setLoading:i,setResult:s,setError:c}}(o),l=(n=(0,a.useRef)(!1),(0,a.useEffect)((function(){return n.current=!0,function(){n.current=!1}}),[]),function(){return n.current}),f=function(){var e=(0,a.useRef)(null);return{set:function(t){return e.current=t},get:function(){return e.current},is:function(t){return e.current===t}}}(),h=function(e){return l()&&f.is(e)},p=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=e.apply(void 0,r);if(c(r),i instanceof Promise)return f.set(i),u.setLoading(),i.then((function(e){h(i)&&u.setResult(e),o.onSuccess(e,{isCurrent:function(){return f.is(i)}})}),(function(e){h(i)&&u.setError(e),o.onError(e,{isCurrent:function(){return f.is(i)}})})),i;var a=i;return u.setResult(a),Promise.resolve(a)},d=!l();return(0,a.useEffect)((function(){d?o.executeOnMount&&p.apply(void 0,t):o.executeOnUpdate&&p.apply(void 0,t)}),t),oa({},u.value,{set:u.set,merge:u.merge,reset:u.reset,execute:p,currentPromise:f.get(),currentParams:s})};function fa(e,t,r){return la(e,t,r)}var ha=function(e,t){return la(e,[],oa({},t,{executeOnMount:!1,executeOnUpdate:!1}))},pa=function(e){var t,r,n=e.value,o=e.fetchMore,i=e.merge,s=e.isEnd,c=(t=n,r=(0,a.useRef)(t),ia((function(){r.current=t})),function(){return r.current}),u=(0,a.useState)(!1),l=u[0],f=u[1],h=(0,a.useRef)(0),p=ha((function(){try{var e=c();if("success"!==e.status)throw new Error("Can't fetch more if the original fetch is not a success");if("loading"===p.status)throw new Error("Can't fetch more, because we are already fetching more!");h.current=h.current+1;var t=h.current;return Promise.resolve(o(e.result)).then((function(r){var o=e.status===c().status&&e.result===c().result,a=h.current===t;return o&&a&&(n.merge({result:i(n.result,r)}),s(r)&&f(!0)),r}))}catch(e){return Promise.reject(e)}})),d="success"!==n.status;return(0,a.useEffect)((function(){d&&(p.reset(),f(!1))}),[d]),{canFetchMore:"success"===n.status&&"loading"!==p.status,loading:p.loading,status:p.status,fetchMore:p.execute,isEnd:l}};window.TopWritePlugins={};class da extends HTMLElement{connectedCallback(){this.addEventListener("click",(e=>{if(e.preventDefault(),!this.isContentEditable){const e=this.attributes.getNamedItem("src");let t=null==e?void 0:e.value;if(t){let e=document.createElement("a");e.download=this.textContent||"",e.style.display="none",e.target="_blank",e.href=o.resolve(location.href,t),document.body.appendChild(e),e.click(),document.body.removeChild(e)}}}))}}function ma(e){let{component:t,defaultComponent:r=a.Fragment,props:n,children:o=null}=e;return null===t?null:(0,i.jsx)(a.Suspense,{fallback:null,children:(0,i.jsx)(t,{props:n,Component:r,children:o})})}customElements.define("t-attachment",da);var ga=(e,t)=>e.filter((e=>{let{descriptor:r}=e;return t===r.role})).sort(((e,t)=>{let{descriptor:{priority:r=0}}=e,{descriptor:{priority:n=0}}=t;return r-n})).map((e=>e.Component));function ya(e){let{props:t,role:r,component:n}=e;const o=n?(0,a.createElement)(n,t):null,s=V("components");return(0,a.useMemo)((()=>ga(s,r)),[s,r]).reduce(((e,r)=>(0,i.jsx)(ma,{defaultComponent:n,component:r,props:t,children:e})),o)}function va(e){let{props:t,component:r,role:n}=e;const o=V("components"),s=(0,a.useMemo)((()=>ga(o,n)),[o,n]);return(0,i.jsx)(i.Fragment,{children:s.map(((e,n)=>(0,i.jsx)(ma,{defaultComponent:r,component:e,props:t},n)))})}async function ba(e){let t="topwrite-plugin-".concat(e.name);if(!W().isDefined(t)){let r="".concat(e.host,"/").concat(e.main);try{await W()(r,t,{returnPromise:!0})}catch{console.warn("插件".concat(e.name,"加载失败"))}}}function Ea(e,t){let r;return r=t instanceof Array?{Component:t[0],descriptor:{role:e,...t[1]}}:{Component:t,descriptor:{role:e}},r}function wa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage";if("undefined"==typeof window)throw new Error("Browser storage is not available on NodeJS / TopWrite SSR process");if("none"===e)return null;try{return window[e]}catch(e){return null}}const xa={get:()=>null,set:()=>{},del:()=>{}},Sa=(e,t)=>{const r=wa(null==t?void 0:t.persistence);return null===r?xa:{get:()=>r.getItem(e),set:t=>r.setItem(e,t),del:()=>r.removeItem(e)}};function Aa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage";const t=wa(e);if(!t)return[];const r=[];for(let e=0;e<t.length;e+=1){const n=t.key(e);null!==n&&r.push(n)}return r}function ka(){const e=V("book");if(!e)throw new Error("book object not initialized");return e}function Da(){const{config:e}=ka();return e.getValue("themeConfig")}const Ca="light",Fa="dark";function Pa(e){document.documentElement.setAttribute("data-theme",e)}const Oa=(0,a.createContext)(void 0);function Ta(e){let{children:t,context:r}=e;const{isDarkTheme:n,setLightTheme:o,setDarkTheme:s}=(e=>{const t=ka(),r=(0,a.useMemo)((()=>Sa("".concat(e,".").concat(t.id,".theme"))),[t.id,e]),{defaultMode:n}=Da(),[o,i]=(0,a.useState)((()=>{const e=(e=>e===Fa?Fa:Ca)(r.get()||n);return Pa(e),e}));(0,a.useEffect)((()=>{Pa(o)}),[o]);const s=(0,a.useCallback)((()=>{i(Ca),r.set(Ca)}),[r]),c=(0,a.useCallback)((()=>{i(Fa),r.set(Fa)}),[r]);return{isDarkTheme:o===Fa,setLightTheme:s,setDarkTheme:c}})(r);return(0,i.jsx)(Oa.Provider,{value:{isDarkTheme:n,setLightTheme:o,setDarkTheme:s},children:t})}function ja(){const e=(0,a.useContext)(Oa);return null==e?{isDarkTheme:!1,setLightTheme:b.noop,setDarkTheme:b.noop}:e}var Ia;function _a(){const{primaryColor:e}=Da();return(0,i.jsx)(Ra,{primaryColor:e})}const Ra=Zn(Ia||(Ia=(0,vr.Z)(["\n :root {\n --ttw-primary-color: ",";\n }\n\n //TODO 转移到异步加载\n //附件\n t-attachment {\n color: var(--ttw-primary-color);\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n overflow: hidden;\n padding: 0 4px;\n vertical-align: bottom;\n margin: 0 1px;\n\n &:before {\n content: '';\n width: 18px;\n height: 18px;\n background-color: var(--ttw-primary-color);\n mask: url(\"",'") no-repeat center;\n margin-right: 4px;\n }\n\n &:after {\n content: "(" attr(size) ")";\n margin-left: 4px;\n display: none;\n }\n\n &[size]:after {\n display: inline;\n }\n\n &:hover {\n background: rgba(0, 0, 0, .1);\n }\n\n &:read-write {\n cursor: text;\n }\n }\n'])),(e=>e.primaryColor),"data:image/svg+xml,%3csvg t='1642406480574' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='2254' width='16' height='16'%3e %3cpath d='M874.666667 467.2c-10.666667-10.666667-29.866667-12.8-42.666667 0l-343.466667 341.333333c-74.666667 74.666667-198.4 74.666667-275.2 0-36.266667-36.266667-57.6-85.333333-57.6-136.533333s19.2-100.266667 57.6-136.533333L556.8 192c46.933333-46.933333 121.6-46.933333 168.533333 0 23.466667 23.466667 34.133333 53.333333 34.133334 83.2 0 32-12.8 61.866667-34.133334 83.2L384 704c-17.066667 17.066667-44.8 17.066667-64 0-8.533333-8.533333-12.8-19.2-12.8-32s4.266667-23.466667 12.8-32l317.866667-315.733333c10.666667-10.666667 12.8-29.866667 0-42.666667-10.666667-12.8-29.866667-12.8-42.666667 0L277.333333 597.333333c-19.2 19.2-29.866667 46.933333-29.866666 74.666667S258.133333 725.333333 277.333333 746.666667c40.533333 40.533333 106.666667 40.533333 147.2 0L768 403.2c34.133333-34.133333 53.333333-78.933333 53.333333-125.866667s-19.2-93.866667-53.333333-125.866666a178.986667 178.986667 0 0 0-253.866667 0l-341.333333 341.333333c-46.933333 46.933333-74.666667 110.933333-74.666667 179.2s25.6 132.266667 74.666667 179.2c49.066667 49.066667 115.2 74.666667 179.2 74.666667s130.133333-25.6 179.2-74.666667l343.466667-341.333333c10.666667-12.8 10.666667-32 0-42.666667z' p-id='2255'%3e%3c/path%3e%3c/svg%3e"),Ba=new class extends N{constructor(){super(...arguments),(0,y.Z)(this,"initialState",[])}*register(e){yield this.setState((t=>t.push(e)))}},La=new class extends N{};var Na=Object.freeze({__proto__:null,components:Ba,options:La});class Ma{constructor(e,t,r){(0,y.Z)(this,"name",void 0),(0,y.Z)(this,"book",void 0),(0,y.Z)(this,"models",{...Na}),(0,y.Z)(this,"components",[]),(0,y.Z)(this,"activates",[]),(0,y.Z)(this,"plugins",[]),(0,y.Z)(this,"initialState",void 0),this.name=e,this.book=t,this.initialState=r}registerComponents(e,t){for(let[r,n]of Object.entries(e))n&&("plugin:setting"===r&&t&&(r="plugin:setting:".concat(t)),this.components.push(Ea(r,n)))}registerModels(e,t){for(const[r,n]of Object.entries(e))t?this.models["@".concat(t,"@").concat(r)]=n:this.models[r]=n}async registerPlugins(e){this.plugins=e;for(const t of e)try{this.registerComponents(t.components,t.name),this.registerModels(t.models,t.name),t.activate&&this.activates.push(t.activate),t.register&&await t.register(this.name,this.book)}catch(e){console.log(e)}}async createApp(e){const t=await this.createIntl(e),r=U(this.models,{book:this.book,components:this.components,...this.initialState}),n=e=>{let{children:t}=e;return this.activates.reduce(((e,t)=>{const r=t(this.name);return void 0!==r?r:e}),t)};return e=>{let{children:o}=e;return(0,i.jsx)(Z,{value:t,children:(0,i.jsx)(q,{store:r,children:(0,i.jsx)(Bo,{children:(0,i.jsxs)(Ta,{context:this.name,children:[(0,i.jsx)(_a,{}),(0,i.jsx)(n,{children:o})]})})})})}}async createIntl(e){const t=navigator.language,r={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},n=await this.plugins.reduce((async(e,r)=>{const n=await e;return r.localize?Object.assign({},n,await r.localize(t)):n}),e(t));return gr({locale:t,messages:n,defaultLocale:"en"},r)}}async function Ha(e,t,r,o,i,a){const s=await async function(e,t){let r=[];if(t){const o=(0,n.NC)(t);try{r=await o.getInstalled(e),r=r.filter((e=>{var t;return!(null!==(t=window.TopWritePlugins[e.name])&&void 0!==t&&t.meta)}))}catch{}}try{const e=sessionStorage.getItem("PLUGIN_DEV"),t=Q.parse(window.location.search);if("dev"in t||e){const o=t.dev||e||8080;try{const e=(await n.WY.get("http://localhost:".concat(o,"/meta"),{raxConfig:{retry:0}})).data;r=r.filter((t=>t.name!==e.name&&!("theme"===e.type&&"theme"===t.type))),window.TopWritePlugins[e.name]&&delete window.TopWritePlugins[e.name],r.unshift(e),sessionStorage.setItem("PLUGIN_DEV",String(o))}catch(e){console.warn(e),sessionStorage.removeItem("PLUGIN_DEV")}}}catch{}const o=Object.entries(window.TopWritePlugins).filter((e=>{let[,t]=e;return!!t.meta})).map((e=>{let[,t]=e;return t.meta})),i=o.some((e=>"theme"===e.type)),a=Object.keys(window.TopWritePlugins),s=[];for(let e of r)e.disabled||a.includes(e.name)||i&&"theme"===e.type||s.push(ba(e));return await Promise.all(s),o.push(...r),window.TopWritePluginsMeta=o,Object.values(window.TopWritePlugins||{})}(t,a),c=new Ma(e,t,o);return c.registerModels(r),await c.registerPlugins(s),await c.createApp(i)}function za(e){return function(e){const{actions:t}=(0,a.useContext)($);return e?t[e]:t}(e)}function Ua(e){return V(e)}function $a(e){return[Ua(e),za(e)]}function qa(e,t,r){const n="function"==typeof t;n||(r=t),(0,a.useEffect)((()=>{let r;const o=e();return Promise.resolve(o).then((e=>{r=e})),()=>{n&&t(r)}}),r)}function Va(e){const t=(0,a.useRef)(null),[r,n]=(0,a.useState)(e);return(0,a.useEffect)((()=>{t.current&&(t.current(),t.current=null)}),[r]),[r,(e,r)=>{t.current="function"==typeof r?r:null,n(e)}]}function Ga(){const e=document.currentScript;if(!e)throw new Error("Automatic publicPath is not supported in this browser");return e.src.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}class Wa{constructor(e){let{name:t,meta:r,models:n={},components:o={},activate:i,register:a,localize:s,config:c}=e;(0,y.Z)(this,"name",void 0),(0,y.Z)(this,"config",void 0),(0,y.Z)(this,"localize",void 0),(0,y.Z)(this,"models",void 0),(0,y.Z)(this,"components",void 0),(0,y.Z)(this,"activate",void 0),(0,y.Z)(this,"register",void 0),(0,y.Z)(this,"meta",void 0),this.name=t,this.meta=r,this.models=n,this.components=o,this.activate=i,this.register=a,this.localize=s,this.config=c}}const Qa=(0,Wo.convert)("root"),Ka=(0,Wo.convert)("element"),Za=(0,Wo.convert)("text");function Ya(e){return e.filter((e=>!(Za(e)&&"\n"===e.value)))}function Xa(e,t,r){const n=t.properties,o=t.tagName,i={...n};r.prefix&&(r.key++,i.key=r.prefix+r.key);const a=[],s=Ya(t.children),c=s?s.length:0;let u=-1;for(;++u<c;){const t=s[u];Ka(t)?a.push(Xa(e,t,r)):Za(t)&&a.push(t.value)}return e.call(t,o,i,a.length>0?a:void 0)}function Ja(e,t){let{extensions:r=[],creator:n=s().createElement}=t;const o={allowDangerousHtml:!1,handlers:{...r.reduce(((e,t)=>Object.assign(e,t)),{}),textDirective:(e,t)=>e({},"textDirective",{name:t.name,attributes:t.attributes},gi(e,t)),leafDirective:(e,t)=>e({},"leafDirective",t.attributes),containerDirective:(e,t)=>e({},"containerDirective",t.attributes,gi(e,t)),heading(e,t){const r=e(t,"heading",gi(e,t));return r.properties={...r.properties,depth:t.depth},r}},unknownHandler:()=>null},i=Oi(e,o);if(Qa(i))return Ya(i.children).map(((e,t)=>Ka(e)?Xa(n,e,{key:0,prefix:"h-".concat(t,"-")}):Za(e)?e.value:void 0));if(!Ka(i))throw new Error("Expected root or element, not `"+(i&&i.type||i)+"`");return Xa(n,i,{key:0,prefix:"h-"})}const es=e=>{let{value:t}=e;return(0,i.jsx)("pre",{children:(0,i.jsx)("code",{children:t})})},ts=e=>{let{value:t}=e;return(0,i.jsx)("code",{children:t})},rs=["video","audio","attachment"];function ns(e){let{depth:t=5,...r}=e;return(0,a.createElement)("h".concat(t),r)}const os={"x-inline":function(e){const{name:t,value:r}=e;return(0,i.jsx)(ya,{role:"inline:".concat(t),props:{type:"inline",name:t,value:r},component:ts})},"x-block":function(e){const{name:t,value:r,parameter:n}=e;return(0,i.jsx)(ya,{role:"block:".concat(t),props:{type:"block",name:t,parameter:n,value:r},component:es})},textDirective:function(e){const{name:t,attributes:r,children:n,components:o={}}=e;if(!rs.includes(t))return null;let a=t;return customElements.get("t-".concat(t))&&(a="t-".concat(t)),(0,i.jsx)(ya,{role:"html:".concat(t),props:{...r,children:n},component:o[t]||a})},heading:function(e){let{components:t={},...r}=e;return(0,i.jsx)(ya,{role:"html:heading",props:r,component:t.heading||ns})}};var is;const as=e=>{let{tagName:t,components:r={},...n}=e;return os[t]?(0,a.createElement)(os[t],{...n,components:r}):Ti.includes(t)?(0,i.jsx)(ya,{role:"html:".concat(t),props:n,component:r[t]||t}):(console.warn("unknown tagName: ".concat(t)),null)};function ss(e){let{as:t=a.Fragment,children:r,components:o={},aside:s=!0,header:c,footer:u,css:l,sectionAs:f,...h}=e;const p=(0,a.useMemo)((()=>(0,n.JH)().use(ii).freeze()),[]);return(0,a.useMemo)((()=>{try{const e=p.data("toHastExtensions"),n=p.runSync(p.parse(r));let d=null;if(s){const t=function(e,t){const r=t||{},n=r.heading?Ko(r.heading):null,o=Yo(e,n,r);return{index:n?o.index:null,endIndex:n?o.endIndex:null,map:o.map.length>0?Jo(o.map,r):null}}(n).map;t&&(d=Ja(t,{extensions:e}))}const m=Ja(n,{extensions:e,creator:(e,t,r)=>(0,a.createElement)(as,{...t,tagName:e,components:o},r)});return(0,a.createElement)(t,h,(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("article",{children:[c,(0,i.jsx)(cs,{$css:l,as:f,children:m}),u]}),d&&(0,i.jsx)("aside",{children:d})]}))}catch(e){return console.log(e),null}}),[r,s,p,l])}const cs=Xn.section(is||(is=(0,vr.Z)(["\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n line-height: 1.2;\n word-wrap: break-word;\n\n & > *:first-child {\n margin-top: 0 !important;\n }\n\n & > *:last-child {\n margin-bottom: 0 !important;\n }\n\n h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, table {\n margin: 1em 0;\n line-height: 1.2;\n padding: 0;\n\n &:last-child {\n margin-bottom: 0 !important;\n }\n\n &:first-child {\n margin-top: 0 !important;\n }\n }\n\n p {\n margin: 0;\n line-height: 2;\n }\n\n h1, h2, h3, h4, h5, h6 {\n font-weight: normal;\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n h1 {\n font-size: 2em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee;\n padding-bottom: .5em;\n }\n\n h2 {\n padding-bottom: .4em;\n font-size: 1.3em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee\n }\n\n h3 {\n font-size: 1.2em;\n line-height: 1.2;\n }\n\n h4 {\n font-size: 1.1em;\n line-height: 1.2;\n }\n\n h5 {\n font-size: 1em;\n line-height: 1.2;\n }\n\n hr {\n border: 0;\n border-bottom: 1px solid #eeeeee;\n margin-bottom: 0.5em;\n }\n\n ul {\n padding-left: 2em;\n\n ul {\n margin: 0;\n }\n\n &.task-list {\n list-style: none;\n\n li {\n position: relative;\n\n .icon.square {\n position: absolute;\n left: -1.75em;\n top: 1px;\n }\n }\n }\n }\n\n ol {\n padding-left: 2em;\n }\n\n li {\n line-height: 2;\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n code {\n display: inline-block;\n border-radius: 4px;\n padding: .2em .4em;\n background-color: #f7f7f7;\n word-break: break-all;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n white-space: pre;\n line-height: 1.3;\n margin: -.2em .4em;\n }\n\n pre {\n padding: 1.05em;\n overflow: auto;\n line-height: 1.45;\n background-color: #f7f7f7;\n border: 0;\n border-radius: 3px;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n }\n\n\n pre > code {\n display: inline;\n max-width: 100%;\n padding: 0;\n margin: 0;\n overflow: initial;\n line-height: inherit;\n background-color: rgba(0, 0, 0, 0);\n border: 0;\n tab-size: 4;\n }\n\n p {\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n table {\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n line-height: 1.8;\n border-spacing: 0;\n\n th {\n text-align: left;\n }\n\n th, td {\n border: 1px solid #e0e0e0;\n padding: 3px 12px;\n height: 34px;\n }\n\n tr:hover td {\n background-color: #f1f1f1;\n }\n }\n\n img {\n max-width: 100%;\n display: inline-block;\n padding: 3px;\n vertical-align: middle;\n }\n\n a {\n text-decoration: none;\n color: var(--ttw-primary-color);\n\n &:hover {\n text-decoration: underline;\n }\n }\n\n blockquote {\n padding: 5px 5px 5px 15px;\n color: #777777;\n border-left: 4px solid #dddddd;\n\n &.info {\n border-left-color: #5bc0de;\n color: #5bc0de;\n background-color: #f4f8fa;\n }\n\n &.warning {\n background-color: #fcf8f2;\n border-color: #f0ad4e;\n color: #f0ad4e;\n }\n\n &.danger {\n color: #d9534f;\n background-color: #fdf7f7;\n border-color: #d9534f;\n }\n\n &.success {\n background-color: #f3f8f3;\n border-color: #50af51;\n color: #50af51;\n }\n }\n\n video {\n width: 100%;\n }\n\n audio {\n width: 100%;\n }\n\n html[data-theme=dark] & {\n code {\n background-color: #333437;\n }\n\n pre {\n background-color: #333437;\n }\n\n h1, h2, hr {\n border-color: #404040;\n }\n\n th, td {\n border-color: #404040;\n }\n\n tr:hover td {\n background-color: #333437;\n }\n }\n\n ","\n"])),(e=>e.$css));function us(e){const t=(0,a.useRef)();return(0,a.useEffect)((()=>{t.current=e}),[e]),t.current}function ls(e){const t=(0,a.useRef)(e);(0,a.useEffect)((()=>(document.title=e,()=>{document.title=t.current})),[e])}function fs(e,t,r){const n=(0,a.useRef)(e),o=(0,a.useRef)((0,b.debounce)(e,t,r));return(0,a.useEffect)((()=>{n.current=e})),(0,a.useEffect)((()=>{o.current=(0,b.debounce)((function(){n.current(...arguments)}),t,r)}),[t,r]),o.current}function hs(e,t,r){const n=(0,a.useRef)(e),o=(0,a.useRef)((0,b.throttle)(e,t,r));return(0,a.useEffect)((()=>{n.current=e})),(0,a.useEffect)((()=>{o.current=(0,b.throttle)((function(){n.current(...arguments)}),t,r)}),[t,r]),o.current}function ps(){return V("options")}const ds=new EventTarget;function ms(){return ds}function gs(e,t,r,n){const o=a.useRef(r),i=a.useRef(n);a.useEffect((()=>{o.current=r,i.current=n})),a.useEffect((()=>{const r=e&&"current"in e?e.current:e;if(!r)return;let n=0;function a(){if(!n){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];o.current.apply(this,t)}}r.addEventListener(t,a);const s=i.current;return()=>{n=1,r.removeEventListener(t,a),s&&s()}}),[e,t])}function ys(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.document;"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/html"));const t=e.querySelector('script[type="application/payload+json"]');if(t)try{return JSON.parse(t.innerHTML)}catch{return{}}}var vs=Object.freeze({__proto__:null,encode:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return window.btoa(unescape(encodeURIComponent(e)))}catch(e){if(t)throw e;return""}},decode:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return decodeURIComponent(escape(window.atob(e)))}catch(e){if(t)throw e;return""}}});function bs(){return"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)}const Es="1.0.0"},7007:(e,t)=>{"use strict";var r=60103,n=60106,o=60107,i=60108,a=60114,s=60109,c=60110,u=60112,l=60113,f=60120,h=60115,p=60116,d=60121,m=60122,g=60117,y=60129,v=60131;
|
|
2
2
|
/** @license React v17.0.2
|
|
3
3
|
* react-is.production.min.js
|
|
4
4
|
*
|