1 Star 0 Fork 0

Discovery/typescript-website

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
commons-1d4bfb84587c07f60f54.js 66.84 KB
一键复制 编辑 原始数据 按行查看 历史
Discovery 提交于 2022-06-18 23:44 +08:00 . init doc
/*! For license information please see commons-1d4bfb84587c07f60f54.js.LICENSE.txt */
(self.webpackChunktypescriptlang_org=self.webpackChunktypescriptlang_org||[]).push([[351],{3210:function(e,t,r){"use strict";function n(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}r.d(t,{k:function(){return n}})},1619:function(e,t){"use strict";var r=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)n[o]=a[i];return n};function n(e){return JSON.stringify(e.map((function(e){return e&&"object"==typeof e?(t=e,Object.keys(t).sort().map((function(e){var r;return(r={})[e]=t[e],r}))):e;var t})))}t.Z=function(e,t){return void 0===t&&(t={}),function(){for(var o,a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var s=n(a),c=s&&t[s];return c||(c=new((o=e).bind.apply(o,r([void 0],a))),s&&(t[s]=c)),c}}},4948:function(e,t,r){"use strict";var n;function o(e){return e.type===n.literal}function a(e){return e.type===n.argument}function i(e){return e.type===n.number}function s(e){return e.type===n.date}function c(e){return e.type===n.time}function u(e){return e.type===n.select}function l(e){return e.type===n.plural}function p(e){return e.type===n.pound}function d(e){return!(!e||"object"!=typeof e||0!==e.type)}function f(e){return!(!e||"object"!=typeof e||1!==e.type)}r.d(t,{ZP:function(){return W}}),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"}(n||(n={}));var m,_=(m=function(e,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),y=function(){return(y=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}).apply(this,arguments)},h=function(e){function t(r,n,o,a){var i=e.call(this)||this;return i.message=r,i.expected=n,i.found=o,i.location=a,i.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return _(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function a(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(a);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+(((i=t)?'"'+n(i)+'"':"end of input")+" found.");var i},t}(Error);var g=function(e,t){t=void 0!==t?t:{};var r,o={},a={start:Re},i=Re,s=De("#",!1),c=Oe("argumentElement"),u="{",l=De("{",!1),p="}",d=De("}",!1),f=Oe("numberSkeletonId"),m=/^['\/{}]/,_=je(["'","/","{","}"],!1,!1),g={type:"any"},b=Oe("numberSkeletonTokenOption"),v=De("/",!1),w=Oe("numberSkeletonToken"),S="::",T=De("::",!1),x=function(e){return rt.pop(),e.replace(/\s*$/,"")},k=",",A=De(",",!1),C="number",D=De("number",!1),j=function(e,t,r){return y({type:"number"===t?n.number:"date"===t?n.date:n.time,style:r&&r[2],value:e},ot())},O="'",F=De("'",!1),E=/^[^']/,P=je(["'"],!0,!1),N=/^[^a-zA-Z'{}]/,R=je([["a","z"],["A","Z"],"'","{","}"],!0,!1),L=/^[a-zA-Z]/,I=je([["a","z"],["A","Z"]],!1,!1),M="date",Z=De("date",!1),J="time",B=De("time",!1),$="plural",z=De("plural",!1),H="selectordinal",q=De("selectordinal",!1),G="offset:",U=De("offset:",!1),W="select",V=De("select",!1),Y=De("=",!1),X=Oe("whitespace"),Q=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,K=je([["\t","\r"]," ","…"," ","",[" ",""],"\u2028","\u2029","",""," "],!1,!1),ee=Oe("syntax pattern"),te=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,re=je([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","","»","¿","×","÷",["",""],["",""],["",""],["",""],["",""],["",""],["","⯿"],["","⹿"],["",""],["",""],"","","﴿","",""],!1,!1),ne=Oe("optional whitespace"),oe=Oe("number"),ae=De("-",!1),ie=(Oe("apostrophe"),Oe("double apostrophes")),se="''",ce=De("''",!1),ue=function(e){return!("{"===e||nt()&&"#"===e||rt.length>1&&"}"===e)},le=De("\n",!1),pe=Oe("argNameOrNumber"),de=Oe("argNumber"),fe=De("0",!1),me=/^[1-9]/,_e=je([["1","9"]],!1,!1),ye=/^[0-9]/,he=je([["0","9"]],!1,!1),ge=Oe("argName"),be=0,ve=0,we=[{line:1,column:1}],Se=0,Te=[],xe=0;if(void 0!==t.startRule){if(!(t.startRule in a))throw new Error("Can't start parsing from rule \""+t.startRule+'".');i=a[t.startRule]}function ke(){return e.substring(ve,be)}function Ae(){return Ee(ve,be)}function Ce(e,t){throw function(e,t){return new h(e,[],"",t)}(e,t=void 0!==t?t:Ee(ve,be))}function De(e,t){return{type:"literal",text:e,ignoreCase:t}}function je(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Oe(e){return{type:"other",description:e}}function Fe(t){var r,n=we[t];if(n)return n;for(r=t-1;!we[r];)r--;for(n={line:(n=we[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return we[t]=n,n}function Ee(e,t){var r=Fe(e),n=Fe(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Pe(e){be<Se||(be>Se&&(Se=be,Te=[]),Te.push(e))}function Ne(e,t,r){return new h(h.buildMessage(e,t),e,t,r)}function Re(){return Le()}function Le(){var e,t;for(e=[],t=Ie();t!==o;)e.push(t),t=Ie();return e}function Ie(){var t;return(t=function(){var e,t;e=be,(t=Me())!==o&&(ve=e,r=t,t=y({type:n.literal,value:r},ot()));var r;return e=t}())===o&&(t=function(){var t,r,a,i;xe++,t=be,123===e.charCodeAt(be)?(r=u,be++):(r=o,0===xe&&Pe(l));r!==o&&We()!==o&&(a=Ke())!==o&&We()!==o?(125===e.charCodeAt(be)?(i=p,be++):(i=o,0===xe&&Pe(d)),i!==o?(ve=t,s=a,t=r=y({type:n.argument,value:s},ot())):(be=t,t=o)):(be=t,t=o);var s;xe--,t===o&&(r=o,0===xe&&Pe(c));return t}())===o&&(t=function(){var t;(t=function(){var t,r,n,a,i,s,c,f,m;t=be,123===e.charCodeAt(be)?(r=u,be++):(r=o,0===xe&&Pe(l));r!==o&&We()!==o&&(n=Ke())!==o&&We()!==o?(44===e.charCodeAt(be)?(a=k,be++):(a=o,0===xe&&Pe(A)),a!==o&&We()!==o?(e.substr(be,6)===C?(i=C,be+=6):(i=o,0===xe&&Pe(D)),i!==o&&We()!==o?(s=be,44===e.charCodeAt(be)?(c=k,be++):(c=o,0===xe&&Pe(A)),c!==o&&(f=We())!==o&&(m=function(){var t,r,n;t=be,e.substr(be,2)===S?(r=S,be+=2):(r=o,0===xe&&Pe(T));r!==o&&(n=function(){var e,t,r;if(e=be,t=[],(r=Be())!==o)for(;r!==o;)t.push(r),r=Be();else t=o;t!==o&&(ve=e,t=y({type:0,tokens:t},ot()));return e=t}())!==o?(ve=t,t=r=n):(be=t,t=o);t===o&&(t=be,ve=be,rt.push("numberArgStyle"),(r=(r=!0)?void 0:o)!==o&&(n=Me())!==o?(ve=t,t=r=x(n)):(be=t,t=o));return t}())!==o?s=c=[c,f,m]:(be=s,s=o),s===o&&(s=null),s!==o&&(c=We())!==o?(125===e.charCodeAt(be)?(f=p,be++):(f=o,0===xe&&Pe(d)),f!==o?(ve=t,t=r=j(n,i,s)):(be=t,t=o)):(be=t,t=o)):(be=t,t=o)):(be=t,t=o)):(be=t,t=o);return t}())===o&&(t=function(){var t,r,n,a,i,s,c,f,m;t=be,123===e.charCodeAt(be)?(r=u,be++):(r=o,0===xe&&Pe(l));r!==o&&We()!==o&&(n=Ke())!==o&&We()!==o?(44===e.charCodeAt(be)?(a=k,be++):(a=o,0===xe&&Pe(A)),a!==o&&We()!==o?(e.substr(be,4)===M?(i=M,be+=4):(i=o,0===xe&&Pe(Z)),i===o&&(e.substr(be,4)===J?(i=J,be+=4):(i=o,0===xe&&Pe(B))),i!==o&&We()!==o?(s=be,44===e.charCodeAt(be)?(c=k,be++):(c=o,0===xe&&Pe(A)),c!==o&&(f=We())!==o&&(m=function(){var t,r,n;t=be,e.substr(be,2)===S?(r=S,be+=2):(r=o,0===xe&&Pe(T));r!==o&&(n=function(){var t,r,n,a;t=be,r=be,n=[],(a=$e())===o&&(a=ze());if(a!==o)for(;a!==o;)n.push(a),(a=$e())===o&&(a=ze());else n=o;r=n!==o?e.substring(r,be):n;r!==o&&(ve=t,r=y({type:1,pattern:r},ot()));return t=r}())!==o?(ve=t,t=r=n):(be=t,t=o);t===o&&(t=be,ve=be,rt.push("dateOrTimeArgStyle"),(r=(r=!0)?void 0:o)!==o&&(n=Me())!==o?(ve=t,t=r=x(n)):(be=t,t=o));return t}())!==o?s=c=[c,f,m]:(be=s,s=o),s===o&&(s=null),s!==o&&(c=We())!==o?(125===e.charCodeAt(be)?(f=p,be++):(f=o,0===xe&&Pe(d)),f!==o?(ve=t,t=r=j(n,i,s)):(be=t,t=o)):(be=t,t=o)):(be=t,t=o)):(be=t,t=o)):(be=t,t=o);return t}());return t}())===o&&(t=function(){var t,r,a,i,s,c,f,m,_,h,g;t=be,123===e.charCodeAt(be)?(r=u,be++):(r=o,0===xe&&Pe(l));if(r!==o)if(We()!==o)if((a=Ke())!==o)if(We()!==o)if(44===e.charCodeAt(be)?(i=k,be++):(i=o,0===xe&&Pe(A)),i!==o)if(We()!==o)if(e.substr(be,6)===$?(s=$,be+=6):(s=o,0===xe&&Pe(z)),s===o&&(e.substr(be,13)===H?(s=H,be+=13):(s=o,0===xe&&Pe(q))),s!==o)if(We()!==o)if(44===e.charCodeAt(be)?(c=k,be++):(c=o,0===xe&&Pe(A)),c!==o)if(We()!==o)if(f=be,e.substr(be,7)===G?(m=G,be+=7):(m=o,0===xe&&Pe(U)),m!==o&&(_=We())!==o&&(h=Ve())!==o?f=m=[m,_,h]:(be=f,f=o),f===o&&(f=null),f!==o)if((m=We())!==o){if(_=[],(h=qe())!==o)for(;h!==o;)_.push(h),h=qe();else _=o;_!==o&&(h=We())!==o?(125===e.charCodeAt(be)?(g=p,be++):(g=o,0===xe&&Pe(d)),g!==o?(ve=t,t=r=function(e,t,r,o){return y({type:n.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:o.reduce((function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&Ce('Duplicate option "'+r+'" in plural element: "'+ke()+'"',Ae()),e[r]={value:n,location:o},e}),{})},ot())}(a,s,f,_)):(be=t,t=o)):(be=t,t=o)}else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;return t}())===o&&(t=function(){var t,r,a,i,s,c,f,m,_;t=be,123===e.charCodeAt(be)?(r=u,be++):(r=o,0===xe&&Pe(l));if(r!==o)if(We()!==o)if((a=Ke())!==o)if(We()!==o)if(44===e.charCodeAt(be)?(i=k,be++):(i=o,0===xe&&Pe(A)),i!==o)if(We()!==o)if(e.substr(be,6)===W?(s=W,be+=6):(s=o,0===xe&&Pe(V)),s!==o)if(We()!==o)if(44===e.charCodeAt(be)?(c=k,be++):(c=o,0===xe&&Pe(A)),c!==o)if(We()!==o){if(f=[],(m=He())!==o)for(;m!==o;)f.push(m),m=He();else f=o;f!==o&&(m=We())!==o?(125===e.charCodeAt(be)?(_=p,be++):(_=o,0===xe&&Pe(d)),_!==o?(ve=t,t=r=function(e,t){return y({type:n.select,value:e,options:t.reduce((function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&Ce('Duplicate option "'+r+'" in select element: "'+ke()+'"',Ae()),e[r]={value:n,location:o},e}),{})},ot())}(a,f)):(be=t,t=o)):(be=t,t=o)}else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;else be=t,t=o;return t}())===o&&(t=function(){var t,r;t=be,35===e.charCodeAt(be)?(r="#",be++):(r=o,0===xe&&Pe(s));r!==o&&(ve=t,r=y({type:n.pound},ot()));return t=r}()),t}function Me(){var e,t,r;if(e=be,t=[],(r=Ye())===o&&(r=Xe())===o&&(r=Qe()),r!==o)for(;r!==o;)t.push(r),(r=Ye())===o&&(r=Xe())===o&&(r=Qe());else t=o;return t!==o&&(ve=e,t=t.join("")),e=t}function Ze(){var t,r,n,a,i;if(xe++,t=be,r=[],n=be,a=be,xe++,(i=Ge())===o&&(m.test(e.charAt(be))?(i=e.charAt(be),be++):(i=o,0===xe&&Pe(_))),xe--,i===o?a=void 0:(be=a,a=o),a!==o?(e.length>be?(i=e.charAt(be),be++):(i=o,0===xe&&Pe(g)),i!==o?n=a=[a,i]:(be=n,n=o)):(be=n,n=o),n!==o)for(;n!==o;)r.push(n),n=be,a=be,xe++,(i=Ge())===o&&(m.test(e.charAt(be))?(i=e.charAt(be),be++):(i=o,0===xe&&Pe(_))),xe--,i===o?a=void 0:(be=a,a=o),a!==o?(e.length>be?(i=e.charAt(be),be++):(i=o,0===xe&&Pe(g)),i!==o?n=a=[a,i]:(be=n,n=o)):(be=n,n=o);else r=o;return t=r!==o?e.substring(t,be):r,xe--,t===o&&(r=o,0===xe&&Pe(f)),t}function Je(){var t,r,n;return xe++,t=be,47===e.charCodeAt(be)?(r="/",be++):(r=o,0===xe&&Pe(v)),r!==o&&(n=Ze())!==o?(ve=t,t=r=n):(be=t,t=o),xe--,t===o&&(r=o,0===xe&&Pe(b)),t}function Be(){var e,t,r,n;if(xe++,e=be,We()!==o)if((t=Ze())!==o){for(r=[],n=Je();n!==o;)r.push(n),n=Je();r!==o?(ve=e,e=function(e,t){return{stem:e,options:t}}(t,r)):(be=e,e=o)}else be=e,e=o;else be=e,e=o;return xe--,e===o&&(o,0===xe&&Pe(w)),e}function $e(){var t,r,n,a;if(t=be,39===e.charCodeAt(be)?(r=O,be++):(r=o,0===xe&&Pe(F)),r!==o){if(n=[],(a=Ye())===o&&(E.test(e.charAt(be))?(a=e.charAt(be),be++):(a=o,0===xe&&Pe(P))),a!==o)for(;a!==o;)n.push(a),(a=Ye())===o&&(E.test(e.charAt(be))?(a=e.charAt(be),be++):(a=o,0===xe&&Pe(P)));else n=o;n!==o?(39===e.charCodeAt(be)?(a=O,be++):(a=o,0===xe&&Pe(F)),a!==o?t=r=[r,n,a]:(be=t,t=o)):(be=t,t=o)}else be=t,t=o;if(t===o)if(t=[],(r=Ye())===o&&(N.test(e.charAt(be))?(r=e.charAt(be),be++):(r=o,0===xe&&Pe(R))),r!==o)for(;r!==o;)t.push(r),(r=Ye())===o&&(N.test(e.charAt(be))?(r=e.charAt(be),be++):(r=o,0===xe&&Pe(R)));else t=o;return t}function ze(){var t,r;if(t=[],L.test(e.charAt(be))?(r=e.charAt(be),be++):(r=o,0===xe&&Pe(I)),r!==o)for(;r!==o;)t.push(r),L.test(e.charAt(be))?(r=e.charAt(be),be++):(r=o,0===xe&&Pe(I));else t=o;return t}function He(){var t,r,n,a,i,s,c;return t=be,We()!==o&&(r=tt())!==o&&We()!==o?(123===e.charCodeAt(be)?(n=u,be++):(n=o,0===xe&&Pe(l)),n!==o?(ve=be,rt.push("select"),(!0?void 0:o)!==o&&(a=Le())!==o?(125===e.charCodeAt(be)?(i=p,be++):(i=o,0===xe&&Pe(d)),i!==o?(ve=t,s=r,c=a,rt.pop(),t=y({id:s,value:c},ot())):(be=t,t=o)):(be=t,t=o)):(be=t,t=o)):(be=t,t=o),t}function qe(){var t,r,n,a,i,s,c;return t=be,We()!==o&&(r=function(){var t,r,n,a;return t=be,r=be,61===e.charCodeAt(be)?(n="=",be++):(n=o,0===xe&&Pe(Y)),n!==o&&(a=Ve())!==o?r=n=[n,a]:(be=r,r=o),(t=r!==o?e.substring(t,be):r)===o&&(t=tt()),t}())!==o&&We()!==o?(123===e.charCodeAt(be)?(n=u,be++):(n=o,0===xe&&Pe(l)),n!==o?(ve=be,rt.push("plural"),(!0?void 0:o)!==o&&(a=Le())!==o?(125===e.charCodeAt(be)?(i=p,be++):(i=o,0===xe&&Pe(d)),i!==o?(ve=t,s=r,c=a,rt.pop(),t=y({id:s,value:c},ot())):(be=t,t=o)):(be=t,t=o)):(be=t,t=o)):(be=t,t=o),t}function Ge(){var t;return xe++,Q.test(e.charAt(be))?(t=e.charAt(be),be++):(t=o,0===xe&&Pe(K)),xe--,t===o&&(o,0===xe&&Pe(X)),t}function Ue(){var t;return xe++,te.test(e.charAt(be))?(t=e.charAt(be),be++):(t=o,0===xe&&Pe(re)),xe--,t===o&&(o,0===xe&&Pe(ee)),t}function We(){var t,r,n;for(xe++,t=be,r=[],n=Ge();n!==o;)r.push(n),n=Ge();return t=r!==o?e.substring(t,be):r,xe--,t===o&&(r=o,0===xe&&Pe(ne)),t}function Ve(){var t,r,n,a,i;return xe++,t=be,45===e.charCodeAt(be)?(r="-",be++):(r=o,0===xe&&Pe(ae)),r===o&&(r=null),r!==o&&(n=et())!==o?(ve=t,a=r,t=r=(i=n)?a?-i:i:0):(be=t,t=o),xe--,t===o&&(r=o,0===xe&&Pe(oe)),t}function Ye(){var t,r;return xe++,t=be,e.substr(be,2)===se?(r=se,be+=2):(r=o,0===xe&&Pe(ce)),r!==o&&(ve=t,r="'"),xe--,(t=r)===o&&(r=o,0===xe&&Pe(ie)),t}function Xe(){var t,r,n,a,i,s;if(t=be,39===e.charCodeAt(be)?(r=O,be++):(r=o,0===xe&&Pe(F)),r!==o)if((n=function(){var t,r,n,a;t=be,r=be,e.length>be?(n=e.charAt(be),be++):(n=o,0===xe&&Pe(g));n!==o?(ve=be,(a=(a="{"===(i=n)||"}"===i||nt()&&"#"===i)?void 0:o)!==o?r=n=[n,a]:(be=r,r=o)):(be=r,r=o);var i;t=r!==o?e.substring(t,be):r;return t}())!==o){for(a=be,i=[],e.substr(be,2)===se?(s=se,be+=2):(s=o,0===xe&&Pe(ce)),s===o&&(E.test(e.charAt(be))?(s=e.charAt(be),be++):(s=o,0===xe&&Pe(P)));s!==o;)i.push(s),e.substr(be,2)===se?(s=se,be+=2):(s=o,0===xe&&Pe(ce)),s===o&&(E.test(e.charAt(be))?(s=e.charAt(be),be++):(s=o,0===xe&&Pe(P)));(a=i!==o?e.substring(a,be):i)!==o?(39===e.charCodeAt(be)?(i=O,be++):(i=o,0===xe&&Pe(F)),i===o&&(i=null),i!==o?(ve=t,t=r=n+a.replace("''","'")):(be=t,t=o)):(be=t,t=o)}else be=t,t=o;else be=t,t=o;return t}function Qe(){var t,r,n,a;return t=be,r=be,e.length>be?(n=e.charAt(be),be++):(n=o,0===xe&&Pe(g)),n!==o?(ve=be,(a=(a=ue(n))?void 0:o)!==o?r=n=[n,a]:(be=r,r=o)):(be=r,r=o),r===o&&(10===e.charCodeAt(be)?(r="\n",be++):(r=o,0===xe&&Pe(le))),t=r!==o?e.substring(t,be):r}function Ke(){var t,r;return xe++,t=be,(r=et())===o&&(r=tt()),t=r!==o?e.substring(t,be):r,xe--,t===o&&(r=o,0===xe&&Pe(pe)),t}function et(){var t,r,n,a,i;if(xe++,t=be,48===e.charCodeAt(be)?(r="0",be++):(r=o,0===xe&&Pe(fe)),r!==o&&(ve=t,r=0),(t=r)===o){if(t=be,r=be,me.test(e.charAt(be))?(n=e.charAt(be),be++):(n=o,0===xe&&Pe(_e)),n!==o){for(a=[],ye.test(e.charAt(be))?(i=e.charAt(be),be++):(i=o,0===xe&&Pe(he));i!==o;)a.push(i),ye.test(e.charAt(be))?(i=e.charAt(be),be++):(i=o,0===xe&&Pe(he));a!==o?r=n=[n,a]:(be=r,r=o)}else be=r,r=o;r!==o&&(ve=t,r=parseInt(r.join(""),10)),t=r}return xe--,t===o&&(r=o,0===xe&&Pe(de)),t}function tt(){var t,r,n,a,i;if(xe++,t=be,r=[],n=be,a=be,xe++,(i=Ge())===o&&(i=Ue()),xe--,i===o?a=void 0:(be=a,a=o),a!==o?(e.length>be?(i=e.charAt(be),be++):(i=o,0===xe&&Pe(g)),i!==o?n=a=[a,i]:(be=n,n=o)):(be=n,n=o),n!==o)for(;n!==o;)r.push(n),n=be,a=be,xe++,(i=Ge())===o&&(i=Ue()),xe--,i===o?a=void 0:(be=a,a=o),a!==o?(e.length>be?(i=e.charAt(be),be++):(i=o,0===xe&&Pe(g)),i!==o?n=a=[a,i]:(be=n,n=o)):(be=n,n=o);else r=o;return t=r!==o?e.substring(t,be):r,xe--,t===o&&(r=o,0===xe&&Pe(ge)),t}var rt=["root"];function nt(){return"plural"===rt[rt.length-1]}function ot(){return t&&t.captureLocation?{location:Ae()}:{}}if((r=i())!==o&&be===e.length)return r;throw r!==o&&be<e.length&&Pe({type:"end"}),Ne(Te,Se<e.length?e.charAt(Se):null,Se<e.length?Ee(Se,Se+1):Ee(Se,Se))},b=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)n[o]=a[i];return n},v=/(^|[^\\])#/g;function w(e){e.forEach((function(e){(l(e)||u(e))&&Object.keys(e.options).forEach((function(t){for(var r,n=e.options[t],a=-1,i=void 0,s=0;s<n.value.length;s++){var c=n.value[s];if(o(c)&&v.test(c.value)){a=s,i=c;break}}if(i){var u=i.value.replace(v,"$1{"+e.value+", number}"),l=g(u);(r=n.value).splice.apply(r,b([a,1],l))}w(n.value)}))}))}function S(e,t){var r=g(e,t);return t&&!1===t.normalizeHashtagInPlural||w(r),r}var T=r(1619),x=function(){return(x=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}).apply(this,arguments)},k=/(?:[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 A(e){var t={};return e.replace(k,(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) pattenrs 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) pattenrs are not supported, use `z` instead")}return""})),t}var C=/^\.(?:(0+)(\+|#+)?)?$/g,D=/^(@+)?(\+|#+)?$/g;function j(e){var t={};return e.replace(D,(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 O(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function F(e){var t=O(e);return t||{}}function E(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":t.style="percent";continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":t.useGrouping=!1;continue;case"precision-integer":t.maximumFractionDigits=0;continue;case"measure-unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=x(x(x({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return x(x({},e),F(t))}),{}));continue;case"engineering":t=x(x(x({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return x(x({},e),F(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}if(C.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(C,(function(e,r,n){return"."===e?t.maximumFractionDigits=0:"+"===n?t.minimumFractionDigits=n.length:"#"===r[0]?t.maximumFractionDigits=r.length:(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length+("string"==typeof n?n.length:0)),""})),o.options.length&&(t=x(x({},t),j(o.options[0])))}else if(D.test(o.stem))t=x(x({},t),j(o.stem));else{var a=O(o.stem);a&&(t=x(x({},t),a))}}return t}var P,N=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),R=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)n[o]=a[i];return n},L=function(e){function t(t,r){var n=e.call(this,t)||this;return n.variableId=r,n}return N(t,e),t}(Error);function I(e,t,r,n,m,_,y){if(1===e.length&&o(e[0]))return[{type:0,value:e[0].value}];for(var h,g=[],b=0,v=e;b<v.length;b++){var w=v[b];if(o(w))g.push({type:0,value:w.value});else if(p(w))"number"==typeof _&&g.push({type:0,value:r.getNumberFormat(t).format(_)});else{var S=w.value;if(!m||!(S in m))throw new L('The intl string context variable "'+S+'" was not provided to the string "'+y+'"');var T=m[S];if(a(w))T&&"string"!=typeof T&&"number"!=typeof T||(T="string"==typeof T||"number"==typeof T?String(T):""),g.push({type:1,value:T});else if(s(w)){var x="string"==typeof w.style?n.date[w.style]:void 0;g.push({type:0,value:r.getDateTimeFormat(t,x).format(T)})}else if(c(w)){x="string"==typeof w.style?n.time[w.style]:f(w.style)?A(w.style.pattern):void 0;g.push({type:0,value:r.getDateTimeFormat(t,x).format(T)})}else if(i(w)){x="string"==typeof w.style?n.number[w.style]:d(w.style)?E(w.style.tokens):void 0;g.push({type:0,value:r.getNumberFormat(t,x).format(T)})}else if(u(w)){if(!(k=w.options[T]||w.options.other))throw new RangeError('Invalid values for "'+w.value+'": "'+T+'". Options are "'+Object.keys(w.options).join('", "')+'"');g.push.apply(g,I(k.value,t,r,n,m))}else if(l(w)){var k;if(!(k=w.options["="+T])){if(!Intl.PluralRules)throw new L('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n');var C=r.getPluralRules(t,{type:w.pluralType}).select(T-(w.offset||0));k=w.options[C]||w.options.other}if(!k)throw new RangeError('Invalid values for "'+w.value+'": "'+T+'". Options are "'+Object.keys(w.options).join('", "')+'"');g.push.apply(g,I(k.value,t,r,n,m,T-(w.offset||0)))}else;}}return(h=g).length<2?h:h.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}var M=/@@(\d+_\d+)@@/g,Z=0;function J(e,t){return e.split(M).filter(Boolean).map((function(e){return null!=t[e]?t[e]:e})).reduce((function(e,t){return e.length&&"string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e}),[])}var B=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,$=Date.now()+"@@",z=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function H(e,t,r){var n=e.tagName,o=e.outerHTML,a=e.textContent,i=e.childNodes;if(!n)return J(a||"",t);n=n.toLowerCase();var s=~z.indexOf(n),c=r[n];if(c&&s)throw new L(n+" is a self-closing tag and can not be used, please use another tag name.");if(!i.length)return[o];var u=Array.prototype.slice.call(i).reduce((function(e,n){return e.concat(H(n,t,r))}),[]);return c?"function"==typeof c?[c.apply(void 0,u)]:[c]:R(["<"+n+">"],u,["</"+n+">"])}function q(e,t,r,n,o,a){var i=I(e,t,r,n,o,void 0,a),s={},c=i.reduce((function(e,t){if(0===t.type)return e+t.value;var r=Date.now()+"_"+ ++Z;return s[r]=t.value,e+"@@"+r+"@@"}),"");if(!B.test(c))return J(c,s);if(!o)throw new L("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new L("Cannot format XML message without DOMParser");P||(P=new DOMParser);var u=P.parseFromString('<formatted-message id="'+$+'">'+c+"</formatted-message>","text/html").getElementById($);if(!u)throw new L("Malformed HTML message "+c);var l=Object.keys(o).filter((function(e){return!!u.getElementsByTagName(e).length}));if(!l.length)return J(c,s);var p=l.filter((function(e){return e!==e.toLowerCase()}));if(p.length)throw new L("HTML tag must be lowercased but the following tags are not: "+p.join(", "));return Array.prototype.slice.call(u.childNodes).reduce((function(e,t){return e.concat(H(t,s,o))}),[])}var G=function(){return(G=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}).apply(this,arguments)};function U(e,t){return t?Object.keys(e).reduce((function(r,n){var o,a;return r[n]=(o=e[n],(a=t[n])?G(G(G({},o||{}),a||{}),Object.keys(o).reduce((function(e,t){return e[t]=G(G({},o[t]),a[t]||{}),e}),{})):o),r}),G({},e)):e}var W=function(){function e(t,r,n,o){var a,i=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){return function(e,t,r,n,o,a){var i=I(e,t,r,n,o,void 0,a);return 1===i.length?i[0].value:i.reduce((function(e,t){return e+t.value}),"")}(i.ast,i.locales,i.formatters,i.formats,e,i.message)},this.formatToParts=function(e){return I(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.formatHTMLMessage=function(e){return q(i.ast,i.locales,i.formatters,i.formats,e,i.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},"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,{normalizeHashtagInPlural:!1})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=U(e.formats,n),this.locales=r,this.formatters=o&&o.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,T.Z)(Intl.NumberFormat,a.number),getDateTimeFormat:(0,T.Z)(Intl.DateTimeFormat,a.dateTime),getPluralRules:(0,T.Z)(Intl.PluralRules,a.pluralRules)})}return e.defaultLocale=(new Intl.NumberFormat).resolvedOptions().locale,e.__parse=S,e.formats={number:{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}()},8448:function(e,t,r){"use strict";r.d(t,{zt:function(){return i},_y:function(){return s}});var n=r(2784),o=r(538);r.n(o)();var a=n.createContext(null),i=(a.Consumer,a.Provider),s=a},6373:function(e,t,r){"use strict";r.d(t,{YU:function(){return u},L6:function(){return l},lq:function(){return p},Tr:function(){return d},Z0:function(){return f},Sn:function(){return m},ax:function(){return _},TB:function(){return y}});var n=r(2784),o=r(4948),a=r(1619),i=r(3210),s={38:"&amp;",62:"&gt;",60:"&lt;",34:"&quot;",39:"&#x27;"},c=/[&><"']/g;function u(e){return(""+e).replace(c,(function(e){return s[e.charCodeAt(0)]}))}function l(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}function p(e){(0,i.k)(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function d(e,t){var r=t?"\n".concat(t.stack):"";return"[React Intl] ".concat(e).concat(r)}var f={formats:{},messages:{},timeZone:void 0,textComponent:n.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function m(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames;return{getDateTimeFormat:(0,a.Z)(Intl.DateTimeFormat,e.dateTime),getNumberFormat:(0,a.Z)(Intl.NumberFormat,e.number),getMessageFormat:(0,a.Z)(o.ZP,e.message),getRelativeTimeFormat:(0,a.Z)(t,e.relativeTime),getPluralRules:(0,a.Z)(Intl.PluralRules,e.pluralRules),getListFormat:(0,a.Z)(r,e.list),getDisplayNames:(0,a.Z)(n,e.displayNames)}}function y(e,t,r,n){var o,a=e&&e[t];if(a&&(o=a[r]),o)return o;n(d("No ".concat(t," format named: ").concat(r)))}},538:function(e,t,r){"use strict";var n=r(2889),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?i:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var u=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(m){var o=f(r);o&&o!==m&&e(t,o,n)}var i=l(r);p&&(i=i.concat(p(r)));for(var s=c(t),_=c(r),y=0;y<i.length;++y){var h=i[y];if(!(a[h]||n&&n[h]||_&&_[h]||s&&s[h])){var g=d(r,h);try{u(t,h,g)}catch(b){}}}}return t}},3162:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,h=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case p:case a:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case y:case _:case c:return e;default:return t}}case o:return t}}}function w(e){return v(e)===p}t.typeOf=v,t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=a,t.Lazy=y,t.Memo=_,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===s||e===i||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===_||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===h||e.$$typeof===g||e.$$typeof===b)},t.isAsyncMode=function(e){return w(e)||v(e)===l},t.isConcurrentMode=w,t.isContextConsumer=function(e){return v(e)===u},t.isContextProvider=function(e){return v(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===d},t.isFragment=function(e){return v(e)===a},t.isLazy=function(e){return v(e)===y},t.isMemo=function(e){return v(e)===_},t.isPortal=function(e){return v(e)===o},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===i},t.isSuspense=function(e){return v(e)===f}},2889:function(e,t,r){"use strict";e.exports=r(3162)},7194:function(e){"use strict";e.exports=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 a=0;a<o;a++){var i=r[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}},3840:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{Z:function(){return n}})},4714:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,{Z:function(){return o}})},603:function(e,t,r){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,{Z:function(){return n}})},9169:function(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}r.d(t,{Z:function(){return o}})},3572:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(6906);function o(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}},4345:function(e,t,r){"use strict";r.d(t,{R:function(){return Y}});var n=r(2784),o=r.t(n,2),a=r(3840),i=r(4714),s=r(9169),c=r(3572),u=r(603),l=r(8448),p=r(6373),d=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function f(e,t){var r=e.locale,n=e.formats,o=e.onError,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a.format,s=i&&(0,p.TB)(n,"number",i,o)||{},c=(0,p.L6)(a,d,s);return t(r,c)}function m(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return f(e,t,n).format(r)}catch(o){e.onError((0,p.Tr)("Error formatting number.",o))}return String(r)}function _(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return f(e,t,n).formatToParts(r)}catch(o){e.onError((0,p.Tr)("Error formatting number.",o))}return[]}var y=["numeric","style"];function h(e,t){var r=e.locale,n=e.formats,o=e.onError,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a.format,s=!!i&&(0,p.TB)(n,"relative",i,o)||{},c=(0,p.L6)(a,y,s);return t(r,c)}function g(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};n||(n="second");var a=Intl.RelativeTimeFormat;a||e.onError((0,p.Tr)('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));try{return h(e,t,o).format(r,n)}catch(i){e.onError((0,p.Tr)("Error formatting relative time.",i))}return String(r)}var b=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function v(e,t,r){var n=e.locale,o=e.formats,a=e.onError,i=e.timeZone,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=s.format,u=Object.assign(Object.assign({},i&&{timeZone:i}),c&&(0,p.TB)(o,t,c,a)),l=(0,p.L6)(s,b,u);return"time"!==t||l.hour||l.minute||l.second||(l=Object.assign(Object.assign({},l),{hour:"numeric",minute:"numeric"})),r(n,l)}function w(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return v(e,"date",t,n).format(o)}catch(a){e.onError((0,p.Tr)("Error formatting date.",a))}return String(o)}function S(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return v(e,"time",t,n).format(o)}catch(a){e.onError((0,p.Tr)("Error formatting time.",a))}return String(o)}function T(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return v(e,"date",t,n).formatToParts(o)}catch(a){e.onError((0,p.Tr)("Error formatting date.",a))}return[]}function x(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof r?new Date(r||0):r;try{return v(e,"time",t,n).formatToParts(o)}catch(a){e.onError((0,p.Tr)("Error formatting time.",a))}return[]}var k=["localeMatcher","type"];function A(e,t,r){var n=e.locale,o=e.onError,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Intl.PluralRules||o((0,p.Tr)('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));var i=(0,p.L6)(a,k);try{return t(n,i).select(r)}catch(s){o((0,p.Tr)("Error formatting plural.",s))}return"other"}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var j=r(3210),O=r(4948);function F(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=Object.assign({timeZone:t},e[n]),r}),{})}function E(e,t){return Object.keys(Object.assign(Object.assign({},e),t)).reduce((function(r,n){return r[n]=Object.assign(Object.assign({},e[n]||{}),t[n]||{}),r}),{})}function P(e,t){if(!t)return e;var r=O.ZP.formats;return Object.assign(Object.assign(Object.assign({},r),e),{date:E(F(r.date,t),F(e.date||{},t)),time:E(F(r.time,t),F(e.time||{},t))})}var N=function(e){return n.createElement.apply(o,[n.Fragment,null].concat(D(e)))};function R(e,t){var r=e.locale,n=e.formats,o=e.messages,a=e.defaultLocale,i=e.defaultFormats,s=e.onError,c=e.timeZone,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=u.id,f=u.defaultMessage;(0,j.k)(!!d,"[React Intl] An `id` must be provided to format a message.");var m=o&&o[String(d)];n=P(n,c),i=P(i,c);var _=[];if(m)try{var y=t.getMessageFormat(m,r,n,{formatters:t});_=y.formatHTMLMessage(l)}catch(g){s((0,p.Tr)('Error formatting message: "'.concat(d,'" for locale: "').concat(r,'"')+(f?", using default message as fallback.":""),g))}else(!f||r&&r.toLowerCase()!==a.toLowerCase())&&s((0,p.Tr)('Missing message: "'.concat(d,'" for locale: "').concat(r,'"')+(f?", using default message as fallback.":"")));if(!_.length&&f)try{var h=t.getMessageFormat(f,a,i);_=h.formatHTMLMessage(l)}catch(g){s((0,p.Tr)('Error formatting the default message for: "'.concat(d,'"'),g))}return _.length?1===_.length&&"string"==typeof _[0]?_[0]||f||String(d):N(_):(s((0,p.Tr)('Cannot format message: "'.concat(d,'", ')+"using message ".concat(m||f?"source":"id"," as fallback."))),"string"==typeof m?m||f||String(d):f||String(d))}function L(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=Object.keys(n).reduce((function(e,t){var r=n[t];return e[t]="string"==typeof r?(0,p.YU)(r):r,e}),{});return R(e,t,r,o)}var I=r(7194),M=r.n(I),Z=["localeMatcher","type","style"],J=Date.now();function B(e){return"".concat(J,"_").concat(e,"_").concat(J)}function $(e,t,r){var n=e.locale,o=e.onError,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Intl.ListFormat;i||o((0,p.Tr)('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));var s=(0,p.L6)(a,Z);try{var c={},u=r.map((function(e,t){if("object"==typeof e){var r=B(t);return c[r]=e,r}return String(e)}));if(!Object.keys(c).length)return t(n,s).format(u);var l=t(n,s).formatToParts(u);return l.reduce((function(e,t){var r=t.value;return c[r]?e.push(c[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[])}catch(d){o((0,p.Tr)("Error formatting list.",d))}return r}var z=["localeMatcher","style","type","fallback"];function H(e,t,r){var n=e.locale,o=e.onError,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Intl.DisplayNames;i||o((0,p.Tr)('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n'));var s=(0,p.L6)(a,z);try{return t(n,s).of(r)}catch(c){o((0,p.Tr)("Error formatting display name.",c))}}function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.Z)(e);if(t){var o=(0,u.Z)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,c.Z)(this,r)}}var G=M()||I;function U(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function W(e,t){var r=(0,p.ax)(t),n=Object.assign(Object.assign({},p.Z0),e),o=n.locale,a=n.defaultLocale,i=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&i?i((0,p.Tr)('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&i&&i((0,p.Tr)('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):(i&&i((0,p.Tr)('"locale" was not configured, using "'.concat(a,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details'))),n.locale=n.defaultLocale||"en"),Object.assign(Object.assign({},n),{formatters:r,formatNumber:m.bind(null,n,r.getNumberFormat),formatNumberToParts:_.bind(null,n,r.getNumberFormat),formatRelativeTime:g.bind(null,n,r.getRelativeTimeFormat),formatDate:w.bind(null,n,r.getDateTimeFormat),formatDateToParts:T.bind(null,n,r.getDateTimeFormat),formatTime:S.bind(null,n,r.getDateTimeFormat),formatTimeToParts:x.bind(null,n,r.getDateTimeFormat),formatPlural:A.bind(null,n,r.getPluralRules),formatMessage:R.bind(null,n,r),formatHTMLMessage:L.bind(null,n,r),formatList:$.bind(null,n,r.getListFormat),formatDisplayName:H.bind(null,n,r.getDisplayNames)})}var V=function(e){(0,s.Z)(r,e);var t=q(r);function r(){var e;return(0,a.Z)(this,r),(e=t.apply(this,arguments)).cache=(0,p.Sn)(),e.state={cache:e.cache,intl:W(U(e.props),e.cache),prevConfig:U(e.props)},e}return(0,i.Z)(r,[{key:"render",value:function(){return(0,p.lq)(this.state.intl),n.createElement(l.zt,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevConfig,n=t.cache,o=U(e);return G(r,o)?null:{intl:W(o,n),prevConfig:o}}}]),r}(n.PureComponent);V.displayName="IntlProvider",V.defaultProps=p.Z0;var Y=function(e){var t=e.children,o=e.locale,a=r(6838).lang;try{a=r(3570)("./"+o+"/"+o).lang}catch(i){}return n.createElement(V,{locale:o||"en",messages:a},t)}},9531:function(e,t,r){"use strict";r.r(t),r.d(t,{cheatCopy:function(){return n}});var n={cht_layout_title:"Cheat Sheets",cht_layout_description:"Cheat Sheets covering TypeScript syntax.",cht_download:"Download Zip",cht_blurb_1:"Downloadable syntax reference pages for different parts of everyday TypeScript code",cht_blurb_2:"Learn more about Classes, Interfaces, Types and Control Flow Analysis",cht_cfa:"Control Flow Analysis",cht_interfaces:"Interfaces",cht_types:"Types",cht_classes:"Classes",cht_dl_title:"Download PDFs and PNGs",cht_dl_subtitle:"To read later or print"}},6785:function(e,t,r){"use strict";r.r(t),r.d(t,{comCopy:function(){return n}});var n={com_layout_title:"TypeScript Community Resources",com_layout_description:"Connect with other TypeScripters online and offline.",com_headline:"Connect with us",com_connect_online:"Online",com_connect_online_description:" Tell us what’s working well, what you want to see added or improved, and find out about new updates.",com_online_stack_overflow_desc:"Engage with your peers and ask questions about TypeScript using the tag 'typescript'",com_online_stack_overflow_tag:"",com_online_discord_header:"Chat",com_online_discord_desc:"Chat with other TypeScript users in the TypeScript Community Chat.",com_online_github_desc:"Found a bug, or want to give us constructive feedback?",com_online_github_href:"Tell us on GitHub",com_online_twitter_desc:"Stay up to date. Follow us on Twitter",com_online_blog_desc:"Learn about the latest TypeScript developments via our",com_online_typed_desc:"TypeScript definition files.",com_online_typed_href:"Browse the thousands of",com_online_typed_available_for:"available for common libraries and frameworks.",com_person:"Connect in person",com_conferences:"Conferences",com_conferences_alt_img:"logo of "}},9617:function(e,t,r){"use strict";r.r(t),r.d(t,{docCopy:function(){return n}});var n={doc_layout_title:"The starting point for learning TypeScript",doc_layout_description:"Find TypeScript starter projects: from Angular to React or Node.js and CLIs.",doc_bootstrap_title:"Bootstrapping tools for TypeScript projects",doc_bootstrap_description:"Toolchains for building CLIs, Web Apps, APIs, and Apps.",doc_headline:"Learning Resources",doc_headline_ts_for_js_title:"TS for JS",doc_headline_ts_for_js_blurb:"An overview of TypeScript for engineers with a JavaScript background",doc_headline_ts_first_title:"Start with TS",doc_headline_ts_first_blurb:"A beginners introduction to JavaScript and TypeScript",doc_headline_handbook_title:"Handbook",doc_headline_handbook_blurb:"The TypeScript language reference",doc_headline_examples_title:"Examples",doc_headline_examples_blurb:"Comprehensive hands-on playground tutorials",doc_start_a_project:"Start a New Project",doc_start_a_project_desc:"Because TypeScript is a super-set of JavaScript, it doesn't have a default template - there would be too many. Instead, other projects have their own TypeScript bootstrap templates with their own context. These projects provide templates which include TypeScript support.",doc_node_npm:"Node with npm",doc_node_npm_oclif_blurb:"Create command line tools your users love",doc_node_npm_gluegun_blurb:"A delightful toolkit for building TypeScript-powered command-line apps",doc_node_npm_tsup_blurb:"Bundle your TypeScript library with no config, powered by esbuild.",doc_frameworks:"Web Frameworks",doc_frameworks_angular_blurb:"The modern web developer's platform",doc_frameworks_ember_blurb:"A framework for ambitious web developers",doc_frameworks_react_blurb:"A JavaScript library for building user interfaces",doc_frameworks_vue_blurb:"The Progressive JavaScript Framework",doc_frameworks_ror_blurb:"Convention over configuration web framework",doc_frameworks_asp_blurb:"Framework for building modern, cloud-based, Internet-connected applications",doc_apis:"Node APIs",doc_apis_azure_blurb:"Build and deploy from VS Code in minutes",doc_apis_feather_blurb:"A framework for real-time applications and REST APIs",doc_apis_graphql_blurb:"Bootstrap your GraphQL server within seconds",doc_apis_nest_blurb:"A progressive Node.js framework for building efficient and scalable server-side applications",doc_apis_node_blurb:"A documented starter template from the TS team",doc_apis_wechat_blurb:"Use the WeChat JSSDK with TypeScript",doc_apis_loopback_blurb:"A highly extensible Node.js and TypeScript framework for building APIs and microservices",doc_apis_fastify_blurb:"A fast and low overhead web framework for Node.js",doc_apis_foal_blurb:"Elegant and complete Node.js framework for building web applications",doc_react:"React Projects",doc_react_create_blurb:"Set up a modern web app by running one command",doc_react_gatsby_blurb:"Helps developers build blazing fast websites and apps",doc_react_next_blurb:"The React Framework for Production",doc_react_redwood_blurb:"The JS App Framework for Startups",doc_react_razzle_blurb:"Server-rendered universal JavaScript applications with no configuration",doc_react_toolchains_title:"Recommended Toolchains",doc_react_toolchains_blurb:"Recommendations from the React Team",doc_apps:"Building Apps",doc_apps_electron_blurb:"Build cross-platform desktop apps with JavaScript, HTML, and CSS",doc_apps_expo_blurb:"The fastest way to build an app",doc_apps_react_native_blurb:"Learn once, write anywhere",doc_apps_native_script_blurb:"Open source framework for building truly native mobile apps",doc_apps_make_code_blurb:"Brings computer science to life for all students with fun projects",doc_tooling:"Tooling",doc_tooling_babel_blurb:"Use next generation JavaScript, today",doc_tooling_parcel_blurb:"Blazing fast, zero configuration web application bundler",doc_tooling_vite_blurb:"Next Generation Frontend Tooling",doc_tooling_webpack_blurb:"Bundle your assets, scripts, images and styles",doc_learn:"Familiar With TypeScript already?",doc_learn_3_5_release_notes_title:"Release Notes",doc_learn_handbook_blurb:"The TypeScript language reference",doc_learn_d_ts_title:"d.ts Guide",doc_learn_d_ts_blurb:"Learn how to declare the shape of JS",doc_learn_playground_blurb:"Explore and share TypeScript online",doc_cheatsheets_subnav_title:"Cheat Sheets",doc_learn_cheatsheets_blurb:"TypeScript syntax at a glance"}},8187:function(e,t,r){"use strict";r.r(t),r.d(t,{dtCopy:function(){return n}});var n={dt_s_page_title:"Search for typed packages",dt_s_title:"Type Search",dt_s_subtitle:"Find npm packages that have type declarations, either bundled or on Definitely Typed.",dt_s_match:"match",dt_s_matchs:"matches",dt_s_match_exact:"Exact Match",dt_s_popular_on_dt:"Popular on Definitely Typed",dt_s_downloads_short:"DLs",dt_s_downloads_via:"Via",dt_s_module:"Module",dt_s_last_update:"Last Updated",dt_s_install:"Install",dt_s_no_results:"No results found for",dt_s_no_results_try:"Try another search?",dt_s_copy:"copy",dt_s_copied:"copied"}},6838:function(e,t,r){"use strict";r.r(t),r.d(t,{lang:function(){return T},messages:function(){return S}});var n,o,a=r(2784),i=r(6373),s=r(8448),c=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};!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(n||(n={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(o||(o={}));function u(e){var t=function(t){return a.createElement(s._y.Consumer,null,(function(r){(0,i.lq)(r);var n=t.value,o=t.children,a=c(t,["value","children"]),s="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?r.formatDateToParts(s,a):r.formatTimeToParts(s,a))}))};return t.displayName=o[e],t}function l(e){var t=function(t){return a.createElement(s._y.Consumer,null,(function(r){(0,i.lq)(r);var n=t.value,o=t.children,s=c(t,["value","children"]),u=r[e](n,s);if("function"==typeof o)return o(u);var l=r.textComponent||a.Fragment;return a.createElement(l,null,u)}))};return t.displayName=n[e],t}l("formatDate"),l("formatTime"),l("formatNumber"),l("formatList"),l("formatDisplayName"),u("formatDate"),u("formatTime");var p=r(8127),d=r(9027),f=r(9617),m=r(7795),_=r(5804),y=r(4389),h=r(6785),g=r(6538),b=r(8187),v=r(2272),w=r(9531),S=Object.assign({},p.navCopy,f.docCopy,d.headCopy,m.indexCopy,y.playCopy,h.comCopy,g.handbookCopy,b.dtCopy,_.indexCopy,v.footerCopy,w.cheatCopy),T=S},2272:function(e,t,r){"use strict";r.r(t),r.d(t,{footerCopy:function(){return n}});var n={footer_customize:"Customize",footer_site_colours:"Site Colours",footer_code_font:"Code Font",footer_site_colours_options_system:"System",footer_site_colours_options_always_light:"Always Light",footer_site_colours_options_always_dark:"Always Dark"}},6538:function(e,t,r){"use strict";r.r(t),r.d(t,{handbookCopy:function(){return n}});var n={handb_prev:"Previous",handb_next:"Next",handb_on_this_page:"On this page",handb_like_dislike_title:"Is this page helpful?",handb_like_desc:"Yes",handb_dislike_desc:"No",handb_thanks:"Thanks for the feedback",handb_deprecated_title:"This page has been deprecated",handb_deprecated_subtitle:"This handbook page has been replaced, ",handb_deprecated_subtitle_link:"go to the new page",handb_deprecated_subtitle_action:"Go to new page",handb_experimental_title:"This page contains experimental documentation",handb_experimental_subtitle:"The contents are about a work in progress topic."}},9027:function(e,t,r){"use strict";r.r(t),r.d(t,{headCopy:function(){return n}});var n={head_playground_title:"TS Playground - An online editor for exploring TypeScript and JavaScript",head_playground_description:"The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.",tsconfig_title:"TSConfig Reference - Docs on every TSConfig option",tsconfig_description:"From allowJs to useDefineForClassFields the TSConfig reference includes information about all of the active compiler flags setting up a TypeScript project.",playground_example_prefix:"Playground Example - ",head_index_title:"Typed JavaScript at Any Scale",head_index_description:"Typed JavaScript at Any Scale"}},7795:function(e,t,r){"use strict";r.r(t),r.d(t,{indexCopy:function(){return n}});var n={index_releases:"Quarterly Releases",index_releases_pt1:"Our next release is ",index_releases_pt2:", which is planned for ",index_releases_released:"Released",index_releases_beta:"Beta",index_releases_rc:"RC"}},5804:function(e,t,r){"use strict";r.r(t),r.d(t,{indexCopy:function(){return n}});var n={index_2_headline:"TypeScript is <bold>JavaScript with syntax for types.</bold>",index_2_byline:"TypeScript extends JavaScript by adding types.",index_2_summary:"TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.",index_2_cta_install:"Try TypeScript Now",index_2_cta_install_subtitle:"Online or via npm",index_2_cta_play:"In your browser",index_2_cta_play_subtitle:"via the Playground",index_2_cta_download:"On your computer",index_2_cta_download_subtitle:"via npm",index_2_tab_1:"Editor Checks",index_2_tab_2:"Auto-complete",index_2_tab_3:"Interfaces",index_2_tab_4:"JSX",index_2_tab_5:"ESNext",index_2_what_is:"What is TypeScript?",index_2_what_is_js:"JavaScript and More",index_2_what_is_js_copy:"TypeScript adds additional syntax to JavaScript to support a <strong>tighter integration with your editor</strong>. Catch errors early in your editor.",index_2_trust:"A Result You Can Trust",index_2_trust_copy:"TypeScript code converts to JavaScript, which <strong>runs anywhere JavaScript runs</strong>: In a browser, on Node.js or Deno and in your apps.",index_2_scale:"Safety at Scale",index_2_scale_copy:"TypeScript understands JavaScript and uses <strong>type inference to give you great tooling</strong> without additional code.",index_2_started_title:"Get Started",index_2_started_handbook:"Handbook",index_2_started_handbook_blurb:"Learn the language",index_2_install:"Install TypeScript",index_2_playground_blurb:"Try in your browser",index_2_migrate_1:"JavaScript file",index_2_migrate_2:"JavaScript with TS Check",index_2_migrate_3:"JavaScript with JSDoc",index_2_migrate_4:"TypeScript file",index_2_migration_title:"TypeScript Testimonials",index_2_migration_oss:"Open Source with TypeScript",index_2_loved_by:"Loved by Developers",index_2_loved_stack:"Voted <strong>2nd most loved programming language</strong> in the <so>Stack Overflow 2020 Developer survey</so>",index_2_loved_state_js:"TypeScript was <strong>used by 78%</strong> of the <js>2020 State of JS</js> respondents, with <strong>93% saying they would use it again</strong>.",index_2_loved_state_js2:"TypeScript was given the award for <strong>“Most Adopted Technology”</strong> based on year-on-year growth.",index_2_describe:"Describe Your Data",index_2_describe_blurb1:"<strong>Describe the shape of objects and functions</strong> in your code.",index_2_describe_blurb2:"Making it possible to see <strong>documentation and issues in your editor</strong>.",index_2_transform:"TypeScript becomes JavaScript via the delete key.",index_2_transform_1:"<strong>TypeScript file</strong>.",index_2_transform_2:"<strong>Types are removed</strong>.",index_2_transform_3:"<strong>JavaScript file</strong>.",index_2_adopt:"Adopt TypeScript Gradually",index_2_adopt_blurb_1:"Apply types to your JavaScript project incrementally, <strong>each step improves editor support</strong> and improves your codebase.",index_2_adopt_blurb_2:"Let's take this incorrect JavaScript code, and see how <strong>TypeScript can catch mistakes in your editor</strong>.",index_2_adopt_info_1:"No editor warnings in JavaScript files.<br/><br/>This crashes at runtime."}},8127:function(e,t,r){"use strict";r.r(t),r.d(t,{navCopy:function(){return n}});var n={skip_to_content:"Skip to main content",nav_documentation:"Documentation",nav_documentation_short:"Docs",nav_download:"Download",nav_community:"Community",nav_playground:"Playground",nav_playground_short:"Play",nav_handbook:"Handbook",nav_tools:"Tools",nav_search_placeholder:"Search Docs",nav_search_aria:"Search the TypeScript site",nav_version_stable_prefix:"is now available",nav_version_between:", ",nav_version_beta_prefix:"is currently in beta.",nav_version_rc_prefix:"has a release candidate to try.",nav_this_page_in_your_lang:"This page is available in your language",nav_this_page_in_your_lang_open:"Open",nav_this_page_in_your_lang_no_more:"Don't show again"}},4389:function(e,t,r){"use strict";r.r(t),r.d(t,{playCopy:function(){return n}});var n={play_subnav_title:"Playground",play_subnav_config:"TS Config",play_config_language_blurb:"Which language should be used in the editor",play_subnav_handbook:"Help",play_subnav_examples:"Examples",play_subnav_examples_close:"Close",play_subnav_whatsnew:"What's New",play_subnav_settings:"Settings",play_settings_tabs_settings:"Sidebar Tabs",play_downloading_typescript:"Downloading TypeScript...",play_downloading_version:"Version...",play_toolbar_run:"Run",play_toolbar_export:"Export",play_toolbar_share:"Share",play_sidebar_js:".JS",play_sidebar_dts:".D.TS",play_sidebar_errors:"Errors",play_sidebar_errors_no_errors:"No errors",play_sidebar_logs:"Logs",play_sidebar_logs_no_logs:"No logs",play_sidebar_options:"Options",play_sidebar_options_restart_required:"Browser Refresh Required",play_sidebar_options_disable_ata:"Disable ATA",play_sidebar_options_disable_ata_copy:"Disable the automatic acquisition of types for imports and requires.",play_sidebar_options_disable_save:"Disable Save-On-Type",play_sidebar_options_disable_save_copy:"Disable changing the URL when you type.",play_sidebar_plugins:"Plugins",play_sidebar_featured_plugins:"Featured Plugins",play_sidebar_plugins_options_external:"3rd Party Plugins <a href='https://www.npmjs.com/search?q=keywords:playground-plugin'>from npm</a>",play_sidebar_plugins_options_external_warning:"Warning: Code from plugins comes from third-parties.",play_sidebar_plugins_options_modules:"Custom npm Modules",play_sidebar_plugins_options_modules_placeholder:"Module name from npm.",play_sidebar_plugins_plugin_dev:"Plugin Dev",play_sidebar_plugins_plugin_dev_option:"Connect to <code>localhost:5000</code>",play_sidebar_plugins_plugin_dev_copy:"Automatically try connect to a playground plugin in development mode. You can get started with <a href='/dev/playground-plugins/' title='Link to the page about Playground Plugins'>making a plugin here</a>.",play_export_report_issue:"Report GitHub issue on TypeScript",play_export_tweet_md:"Tweet link to Playground",play_export_copy_md:"Copy as Markdown Issue",play_export_copy_link:"Copy as Markdown Link",play_export_copy_link_preview:"Copy as Markdown Link with Preview",play_export_tsast:"Open in TypeScript AST Viewer",play_export_bugworkbench:"Open in Bug Workbench",play_export_vscode_dev_play:"Open in VSCode TS Playground (alpha)",play_export_sandbox:"Open in CodeSandbox",play_export_stackblitz:"Open in StackBlitz",play_export_clipboard:"URL copied to clipboard",play_esm_mode:"Switched to ESM mode",play_clear_logs:"Logs cleared",play_run_js:"Executed JavaScript",play_run_ts:"Executed transpiled TypeScript",play_run_js_fail:"Executed JavaScript Failed:",play_default_code_sample:'// Welcome to the TypeScript Playground, this is a website\n// which gives you a chance to write, share and learn TypeScript.\n\n// You could think of it in three ways:\n//\n// - A location to learn TypeScript where nothing can break\n// - A place to experiment with TypeScript syntax, and share the URLs with others\n// - A sandbox to experiment with different compiler features of TypeScript\n\nconst anExampleVariable = "Hello World"\nconsole.log(anExampleVariable)\n\n// To learn more about the language, click above in "Examples" or "What\'s New".\n// Otherwise, get started by removing these comments and the world is your playground.\n ',play_sidebar_js_title:"JavaScript",play_sidebar_js_blurb:"Shows the transpiled JS",play_sidebar_dts_title:"Definition Files",play_sidebar_dts_blurb:"Shows the .d.ts output of your code",play_sidebar_err_title:"Compiler Errors",play_sidebar_err_blurb:"Shows compiler errors in full",play_sidebar_run_title:"Run JavaScript in Browser",play_sidebar_run_blurb:"Shows the output of running the JavaScript in the editor",play_sidebar_plugins_title:"Manage Playground Plugins",play_sidebar_plugins_blurb:"Handles adding/removing 3rd party extensions to the playground",play_sidebar_ast_title:"[WIP] AST Viewer",play_sidebar_ast_blurb:"Inspect the TypeScript AST",play_sidebar_tools_filter_placeholder:"Filter"}},3700:function(){},9387:function(e,t,r){"use strict";r.r(t),r.d(t,{inYourLanguage:function(){return n}});var n={en:{shorthand:"In En",body:"This page is available in English",open:"Go",cancel:"Don't ask again"},todo:{shorthand:"In XX",body:"This page is available in your language",open:"Go",cancel:"Don't ask again"},es:{shorthand:"En Es",body:"Esta página está disponible en Español",open:"Adelante",cancel:"No preguntar de nuevo"},fr:{shorthand:"En Fr",body:"Cette page est disponible en français",open:"Consulter",cancel:"Ne plus me le rappeler"},ja:{shorthand:"日本語",body:"このページを日本語で利用しますか?",open:"利用する",cancel:"質問を表示しない"},ko:{shorthand:"한국어",body:"해당 페이지를 한국어로 이용할 수 있습니다",open:"이용하기",cancel:"더 이상 묻지 않습니다"},pl:{shorthand:"Po polsku",body:"Ta strona jest dostępna po polsku",open:"Zmień język",cancel:"Nie pytaj ponownie"},pt:{shorthand:"Em Pt",body:"Esta página está disponível em Português",open:"Trocar língua",cancel:"Não perguntar novamente"},zh:{shorthand:"中文",body:"当前页面有中文版本",open:"跳转",cancel:"不再询问"}}},6906:function(e){function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},3570:function(e,t,r){var n={"./en":7795,"./en/":7795,"./en/cheatsheets":9531,"./en/cheatsheets.ts":9531,"./en/community":6785,"./en/community.ts":6785,"./en/documentation":9617,"./en/documentation.ts":9617,"./en/dt":8187,"./en/dt.ts":8187,"./en/en":6838,"./en/en.ts":6838,"./en/footer":2272,"./en/footer.ts":2272,"./en/handbook":6538,"./en/handbook.ts":6538,"./en/head-seo":9027,"./en/head-seo.ts":9027,"./en/index":7795,"./en/index.ts":7795,"./en/index2":5804,"./en/index2.ts":5804,"./en/nav":8127,"./en/nav.ts":8127,"./en/playground":4389,"./en/playground.ts":4389,"./en/tsconfig":3700,"./en/tsconfig.ts":3700,"./inYourLanguage":9387,"./inYourLanguage.ts":9387};function o(e){var t=a(e);return r(t)}function a(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=a,e.exports=o,o.id=3570}}]);
//# sourceMappingURL=commons-1d4bfb84587c07f60f54.js.map
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/git_discovery/typescript-website.git
git@gitee.com:git_discovery/typescript-website.git
git_discovery
typescript-website
typescript-website
master

搜索帮助