D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
share
/
grafana
/
public
/
build
/
Filename :
1486.9f5c58b5413b0650af69.js
back
Copy
(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[1486],{62:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var i=t(43313);function s(l){return l&&l.__esModule?l:{default:l}}var u=s(i),v=function(l,h){return u.default(l,h)};c.default=v},72311:(C,c,t)=>{"use strict";var i=t(27702),s=t(22114),u=t(97358),v=t(17265),l=t(62),h=t(10683),p=t(64054),d=t(64367);function f(J){return J&&J.__esModule?J:{default:J}}function g(J){if(J&&J.__esModule)return J;var q=Object.create(null);return J&&Object.keys(J).forEach(function(L){if(L!=="default"){var $=Object.getOwnPropertyDescriptor(J,L);Object.defineProperty(q,L,$.get?$:{enumerable:!0,get:function(){return J[L]}})}}),q.default=J,Object.freeze(q)}var y=g(i),b=f(s),E=f(v),S=typeof document<"u",w={}.hasOwnProperty,x=y.createContext(typeof HTMLElement<"u"?b.default({key:"css"}):null),P=x.Provider,R=function(){return i.useContext(x)};c.withEmotionCache=function(q){return i.forwardRef(function(L,$){var k=i.useContext(x);return q(L,k,$)})},S||(c.withEmotionCache=function(q){return function(L){var $=i.useContext(x);return $===null?($=b.default({key:"css"}),y.createElement(x.Provider,{value:$},q(L,$))):q(L,$)}});var T=y.createContext({}),A=function(){return y.useContext(T)},I=function(q,L){if(typeof L=="function"){var $=L(q);return $}return u({},q,L)},N=E.default(function(J){return E.default(function(q){return I(J,q)})}),K=function(q){var L=y.useContext(T);return q.theme!==L&&(L=N(L)(q.theme)),y.createElement(T.Provider,{value:L},q.children)};function _(J){var q=J.displayName||J.name||"Component",L=function(F,V){var pe=y.useContext(T);return y.createElement(J,u({theme:pe,ref:V},F))},$=y.forwardRef(L);return $.displayName="WithTheme("+q+")",l.default($,J)}var W="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",j=function(q,L){var $={};for(var k in L)w.call(L,k)&&($[k]=L[k]);return $[W]=q,$},re=function(q){var L=q.cache,$=q.serialized,k=q.isStringTag;h.registerStyles(L,$,k);var F=d.useInsertionEffectAlwaysWithSyncFallback(function(){return h.insertStyles(L,$,k)});if(!S&&F!==void 0){for(var V,pe=$.name,ce=$.next;ce!==void 0;)pe+=" "+ce.name,ce=ce.next;return y.createElement("style",(V={},V["data-emotion"]=L.key+" "+pe,V.dangerouslySetInnerHTML={__html:F},V.nonce=L.sheet.nonce,V))}return null},X=c.withEmotionCache(function(J,q,L){var $=J.css;typeof $=="string"&&q.registered[$]!==void 0&&($=q.registered[$]);var k=J[W],F=[$],V="";typeof J.className=="string"?V=h.getRegisteredStyles(q.registered,F,J.className):J.className!=null&&(V=J.className+" ");var pe=p.serializeStyles(F,void 0,y.useContext(T));V+=q.key+"-"+pe.name;var ce={};for(var G in J)w.call(J,G)&&G!=="css"&&G!==W&&(ce[G]=J[G]);return ce.ref=L,ce.className=V,y.createElement(y.Fragment,null,y.createElement(re,{cache:q,serialized:pe,isStringTag:typeof k=="string"}),y.createElement(k,ce))}),Z=X;c.CacheProvider=P,c.Emotion=Z,c.ThemeContext=T,c.ThemeProvider=K,c.__unsafe_useEmotionCache=R,c.createEmotionProps=j,c.hasOwnProperty=w,c.isBrowser=S,c.useTheme=A,c.withTheme=_},46219:(C,c,t)=>{"use strict";C.exports=t(76808)},76808:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var i=t(72311),s=t(27702),u=t(10683),v=t(64367),l=t(64054);t(22114),t(97358),t(17265),t(62),t(43313);function h(x){if(x&&x.__esModule)return x;var P=Object.create(null);return x&&Object.keys(x).forEach(function(R){if(R!=="default"){var T=Object.getOwnPropertyDescriptor(x,R);Object.defineProperty(P,R,T.get?T:{enumerable:!0,get:function(){return x[R]}})}}),P.default=x,Object.freeze(P)}var p=h(s),d=function(P,R){var T=arguments;if(R==null||!i.hasOwnProperty.call(R,"css"))return p.createElement.apply(void 0,T);var A=T.length,I=new Array(A);I[0]=i.Emotion,I[1]=i.createEmotionProps(P,R);for(var N=2;N<A;N++)I[N]=T[N];return p.createElement.apply(null,I)},f=i.withEmotionCache(function(x,P){var R=x.styles,T=l.serializeStyles([R],void 0,p.useContext(i.ThemeContext));if(!i.isBrowser){for(var A,I=T.name,N=T.styles,K=T.next;K!==void 0;)I+=" "+K.name,N+=K.styles,K=K.next;var _=P.compat===!0,W=P.insert("",{name:I,styles:N},P.sheet,_);return _?null:p.createElement("style",(A={},A["data-emotion"]=P.key+"-global "+I,A.dangerouslySetInnerHTML={__html:W},A.nonce=P.sheet.nonce,A))}var j=p.useRef();return v.useInsertionEffectWithLayoutFallback(function(){var re=P.key+"-global",X=new P.sheet.constructor({key:re,nonce:P.sheet.nonce,container:P.sheet.container,speedy:P.sheet.isSpeedy}),Z=!1,J=document.querySelector('style[data-emotion="'+re+" "+T.name+'"]');return P.sheet.tags.length&&(X.before=P.sheet.tags[0]),J!==null&&(Z=!0,J.setAttribute("data-emotion",re),X.hydrate([J])),j.current=[X,Z],function(){X.flush()}},[P]),v.useInsertionEffectWithLayoutFallback(function(){var re=j.current,X=re[0],Z=re[1];if(Z){re[1]=!1;return}if(T.next!==void 0&&u.insertStyles(P,T.next,!0),X.tags.length){var J=X.tags[X.tags.length-1].nextElementSibling;X.before=J,X.flush()}P.insert("",T,X,!1)},[P,T.name]),null});function g(){for(var x=arguments.length,P=new Array(x),R=0;R<x;R++)P[R]=arguments[R];return l.serializeStyles(P)}var y=function(){var P=g.apply(void 0,arguments),R="animation-"+P.name;return{name:R,styles:"@keyframes "+R+"{"+P.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},b=function x(P){for(var R=P.length,T=0,A="";T<R;T++){var I=P[T];if(I!=null){var N=void 0;switch(typeof I){case"boolean":break;case"object":{if(Array.isArray(I))N=x(I);else{N="";for(var K in I)I[K]&&K&&(N&&(N+=" "),N+=K)}break}default:N=I}N&&(A&&(A+=" "),A+=N)}}return A};function E(x,P,R){var T=[],A=u.getRegisteredStyles(x,T,R);return T.length<2?R:A+P(T)}var S=function(P){var R=P.cache,T=P.serializedArr,A=v.useInsertionEffectAlwaysWithSyncFallback(function(){for(var N="",K=0;K<T.length;K++){var _=u.insertStyles(R,T[K],!1);!i.isBrowser&&_!==void 0&&(N+=_)}if(!i.isBrowser)return N});if(!i.isBrowser&&A.length!==0){var I;return p.createElement("style",(I={},I["data-emotion"]=R.key+" "+T.map(function(N){return N.name}).join(" "),I.dangerouslySetInnerHTML={__html:A},I.nonce=R.sheet.nonce,I))}return null},w=i.withEmotionCache(function(x,P){var R=!1,T=[],A=function(){for(var W=arguments.length,j=new Array(W),re=0;re<W;re++)j[re]=arguments[re];var X=l.serializeStyles(j,P.registered);return T.push(X),u.registerStyles(P,X,!1),P.key+"-"+X.name},I=function(){for(var W=arguments.length,j=new Array(W),re=0;re<W;re++)j[re]=arguments[re];return E(P.registered,A,b(j))},N={css:A,cx:I,theme:p.useContext(i.ThemeContext)},K=x.children(N);return R=!0,p.createElement(p.Fragment,null,p.createElement(S,{cache:P,serializedArr:T}),K)});c.CacheProvider=i.CacheProvider,c.ThemeContext=i.ThemeContext,c.ThemeProvider=i.ThemeProvider,c.__unsafe_useEmotionCache=i.__unsafe_useEmotionCache,c.useTheme=i.useTheme,Object.defineProperty(c,"withEmotionCache",{enumerable:!0,get:function(){return i.withEmotionCache}}),c.withTheme=i.withTheme,c.ClassNames=w,c.Global=f,c.createElement=d,c.css=g,c.jsx=d,c.keyframes=y},64367:(C,c,t)=>{"use strict";var i;t.r(c),t.d(c,{useInsertionEffectAlwaysWithSyncFallback:()=>l,useInsertionEffectWithLayoutFallback:()=>h});var s=t(27702),u=function(d){return d()},v=(i||(i=t.t(s,2)))["useInsertionEffect"]?(i||(i=t.t(s,2)))["useInsertionEffect"]:!1,l=v||u,h=v||s.useLayoutEffect},37030:(C,c,t)=>{Object.defineProperty(c,"__esModule",{value:!0});var i,s,u,v,l,h,p,d,f,g,y=t(65469),b=t(27702),E=(i=b)&&typeof i=="object"&&"default"in i?i.default:i,S=t(13597),w=t(80549),x=t(42844),P=function(){return(P=Object.assign||function(vt){for(var Ve,lt=1,at=arguments.length;lt<at;lt++)for(var Xt in Ve=arguments[lt])Object.prototype.hasOwnProperty.call(Ve,Xt)&&(vt[Xt]=Ve[Xt]);return vt}).apply(this,arguments)};function R(vt,Ve){var lt={};for(var at in vt)Object.prototype.hasOwnProperty.call(vt,at)&&Ve.indexOf(at)<0&&(lt[at]=vt[at]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function"){var Xt=0;for(at=Object.getOwnPropertySymbols(vt);Xt<at.length;Xt++)Ve.indexOf(at[Xt])<0&&Object.prototype.propertyIsEnumerable.call(vt,at[Xt])&&(lt[at[Xt]]=vt[at[Xt]])}return lt}function T(vt,Ve,lt,at){return new(lt||(lt=Promise))(function(Xt,rt){function Rt(Jn){try{sn(at.next(Jn))}catch(ze){rt(ze)}}function rn(Jn){try{sn(at.throw(Jn))}catch(ze){rt(ze)}}function sn(Jn){var ze;Jn.done?Xt(Jn.value):(ze=Jn.value,ze instanceof lt?ze:new lt(function(st){st(ze)})).then(Rt,rn)}sn((at=at.apply(vt,Ve||[])).next())})}function A(vt,Ve){var lt,at,Xt,rt,Rt={label:0,sent:function(){if(1&Xt[0])throw Xt[1];return Xt[1]},trys:[],ops:[]};return rt={next:rn(0),throw:rn(1),return:rn(2)},typeof Symbol=="function"&&(rt[Symbol.iterator]=function(){return this}),rt;function rn(sn){return function(Jn){return function(ze){if(lt)throw new TypeError("Generator is already executing.");for(;Rt;)try{if(lt=1,at&&(Xt=2&ze[0]?at.return:ze[0]?at.throw||((Xt=at.return)&&Xt.call(at),0):at.next)&&!(Xt=Xt.call(at,ze[1])).done)return Xt;switch(at=0,Xt&&(ze=[2&ze[0],Xt.value]),ze[0]){case 0:case 1:Xt=ze;break;case 4:return Rt.label++,{value:ze[1],done:!1};case 5:Rt.label++,at=ze[1],ze=[0];continue;case 7:ze=Rt.ops.pop(),Rt.trys.pop();continue;default:if(Xt=Rt.trys,!((Xt=Xt.length>0&&Xt[Xt.length-1])||ze[0]!==6&&ze[0]!==2)){Rt=0;continue}if(ze[0]===3&&(!Xt||ze[1]>Xt[0]&&ze[1]<Xt[3])){Rt.label=ze[1];break}if(ze[0]===6&&Rt.label<Xt[1]){Rt.label=Xt[1],Xt=ze;break}if(Xt&&Rt.label<Xt[2]){Rt.label=Xt[2],Rt.ops.push(ze);break}Xt[2]&&Rt.ops.pop(),Rt.trys.pop();continue}ze=Ve.call(vt,Rt)}catch(st){ze=[6,st],at=0}finally{lt=Xt=0}if(5&ze[0])throw ze[1];return{value:ze[0]?ze[1]:void 0,done:!0}}([sn,Jn])}}}function I(vt){var Ve=typeof Symbol=="function"&&Symbol.iterator,lt=Ve&&vt[Ve],at=0;if(lt)return lt.call(vt);if(vt&&typeof vt.length=="number")return{next:function(){return vt&&at>=vt.length&&(vt=void 0),{value:vt&&vt[at++],done:!vt}}};throw new TypeError(Ve?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(vt,Ve){var lt=typeof Symbol=="function"&&vt[Symbol.iterator];if(!lt)return vt;var at,Xt,rt=lt.call(vt),Rt=[];try{for(;(Ve===void 0||Ve-- >0)&&!(at=rt.next()).done;)Rt.push(at.value)}catch(rn){Xt={error:rn}}finally{try{at&&!at.done&&(lt=rt.return)&<.call(rt)}finally{if(Xt)throw Xt.error}}return Rt}function K(vt,Ve,lt){if(lt||arguments.length===2)for(var at,Xt=0,rt=Ve.length;Xt<rt;Xt++)!at&&Xt in Ve||(at||(at=Array.prototype.slice.call(Ve,0,Xt)),at[Xt]=Ve[Xt]);return vt.concat(at||Array.prototype.slice.call(Ve))}function _(vt,Ve){var lt,at,Xt,rt=vt?.getPreviousNonWhiteSpaceToken(),Rt=vt?.getPreviousKeyword(),rn=(Xt=vt?.getPreviousNonWhiteSpaceToken())===null||Xt===void 0?void 0:Xt.is(c.TokenType.Operator,"/"),sn=Ve.list(),Jn=[];try{for(var ze=I(sn),st=ze.next();!st.done;st=ze.next()){var en=st.value;en.resolve(vt,Rt??null,rt??null,!!rn)&&Jn.push(en.id)}}catch(wt){lt={error:wt}}finally{try{st&&!st.done&&(at=ze.return)&&at.call(ze)}finally{if(lt)throw lt.error}}return Jn.length===0?[c.StatementPosition.Unknown]:Jn}(s=c.OperatorType||(c.OperatorType={}))[s.Comparison=0]="Comparison",s[s.Logical=1]="Logical",(u=c.MacroType||(c.MacroType={}))[u.Value=0]="Value",u[u.Filter=1]="Filter",u[u.Group=2]="Group",u[u.Column=3]="Column",u[u.Table=4]="Table",(v=c.TokenType||(c.TokenType={})).Parenthesis="delimiter.parenthesis.sql",v.Whitespace="white.sql",v.Keyword="keyword.sql",v.Delimiter="delimiter.sql",v.Operator="operator.sql",v.Identifier="identifier.sql",v.IdentifierQuote="identifier.quote.sql",v.Type="type.sql",v.Function="predefined.sql",v.Number="number.sql",v.String="string.sql",v.Variable="variable.sql",(l=c.StatementPosition||(c.StatementPosition={})).Unknown="unknown",l.SelectKeyword="selectKeyword",l.WithKeyword="withKeyword",l.AfterSelectKeyword="afterSelectKeyword",l.AfterSelectArguments="afterSelectArguments",l.AfterSelectFuncFirstArgument="afterSelectFuncFirstArgument",l.SelectAlias="selectAlias",l.AfterFromKeyword="afterFromKeyword",l.AfterTable="afterTable",l.SchemaFuncFirstArgument="schemaFuncFirstArgument",l.SchemaFuncExtraArgument="schemaFuncExtraArgument",l.FromKeyword="fromKeyword",l.AfterFrom="afterFrom",l.WhereKeyword="whereKeyword",l.WhereComparisonOperator="whereComparisonOperator",l.WhereValue="whereValue",l.AfterWhereFunctionArgument="afterWhereFunctionArgument",l.AfterGroupByFunctionArgument="afterGroupByFunctionArgument",l.AfterWhereValue="afterWhereValue",l.AfterGroupByKeywords="afterGroupByKeywords",l.AfterGroupBy="afterGroupBy",l.AfterOrderByKeywords="afterOrderByKeywords",l.AfterOrderByFunction="afterOrderByFunction",l.AfterOrderByDirection="afterOrderByDirection",l.AfterIsOperator="afterIsOperator",l.AfterIsNotOperator="afterIsNotOperator",l.AfterSchema="afterSchema",(h=c.SuggestionKind||(c.SuggestionKind={})).Schemas="schemas",h.Tables="tables",h.Columns="columns",h.SelectKeyword="selectKeyword",h.WithKeyword="withKeyword",h.FunctionsWithArguments="functionsWithArguments",h.FromKeyword="fromKeyword",h.WhereKeyword="whereKeyword",h.GroupByKeywords="groupByKeywords",h.OrderByKeywords="orderByKeywords",h.FunctionsWithoutArguments="functionsWithoutArguments",h.LimitKeyword="limitKeyword",h.SortOrderDirectionKeyword="sortOrderDirectionKeyword",h.ComparisonOperators="comparisonOperators",h.LogicalOperators="logicalOperators",h.SelectMacro="selectMacro",h.TableMacro="tableMacro",h.FilterMacro="filterMacro",h.GroupMacro="groupMacro",h.BoolValues="boolValues",h.NullValue="nullValue",h.NotKeyword="notKeyword",h.TemplateVariables="templateVariables",h.StarWildCard="starWildCard",(p=c.CompletionItemPriority||(c.CompletionItemPriority={})).High="a",p.MediumHigh="d",p.Medium="g",p.MediumLow="k",p.Low="q",(d=c.CompletionItemKind||(c.CompletionItemKind={}))[d.Method=0]="Method",d[d.Function=1]="Function",d[d.Constructor=2]="Constructor",d[d.Field=3]="Field",d[d.Variable=4]="Variable",d[d.Class=5]="Class",d[d.Struct=6]="Struct",d[d.Interface=7]="Interface",d[d.Module=8]="Module",d[d.Property=9]="Property",d[d.Event=10]="Event",d[d.Operator=11]="Operator",d[d.Unit=12]="Unit",d[d.Value=13]="Value",d[d.Constant=14]="Constant",d[d.Enum=15]="Enum",d[d.EnumMember=16]="EnumMember",d[d.Keyword=17]="Keyword",d[d.Text=18]="Text",d[d.Color=19]="Color",d[d.File=20]="File",d[d.Reference=21]="Reference",d[d.Customcolor=22]="Customcolor",d[d.Folder=23]="Folder",d[d.TypeParameter=24]="TypeParameter",d[d.User=25]="User",d[d.Issue=26]="Issue",d[d.Snippet=27]="Snippet",(f=c.CompletionItemInsertTextRule||(c.CompletionItemInsertTextRule={}))[f.KeepWhitespace=1]="KeepWhitespace",f[f.InsertAsSnippet=4]="InsertAsSnippet",(g=c.EditorMode||(c.EditorMode={})).Builder="builder",g.Code="code";var W=function(vt,Ve,lt,at,Xt){return T(void 0,void 0,void 0,function(){var rt,Rt,rn,sn,Jn,ze,st,en,wt,Ke,Ut;return A(this,function(on){switch(on.label){case 0:rt=[],Rt=Ve?.isWhiteSpace()||Ve?.isParenthesis()||Ve?.isIdentifier()&&Ve.value.endsWith("."),rn=Rt||!Ve?.range?vt.Range.fromPositions(at.position):Ve?.range,on.label=1;case 1:on.trys.push([1,6,7,8]),sn=I(K([],N(new Set(lt)),!1)),Jn=sn.next(),on.label=2;case 2:return Jn.done?[3,5]:(ze=Jn.value,(st=Xt.getIfExists(ze))?[4,st.suggestions(P(P({},at),{range:rn}),vt)]:[3,4]);case 3:en=on.sent(),rt=K(K([],N(rt),!1),N(en.map(function(Tn){return function(An,Zt,ot){return ot===void 0&&(ot={}),P({label:An,insertText:An,kind:c.CompletionItemKind.Field,sortText:c.CompletionItemPriority.Medium,range:Zt},ot)}(Tn.label,rn,P({kind:Tn.kind},Tn))})),!1),on.label=4;case 4:return Jn=sn.next(),[3,2];case 5:return[3,8];case 6:return wt=on.sent(),Ke={error:wt},[3,8];case 7:try{Jn&&!Jn.done&&(Ut=sn.return)&&Ut.call(sn)}finally{if(Ke)throw Ke.error}return[7];case 8:return[2,Promise.resolve(rt)]}})})},j=function(){return[{id:c.StatementPosition.SelectKeyword,name:c.StatementPosition.SelectKeyword,kind:[c.SuggestionKind.SelectKeyword]},{id:c.StatementPosition.WithKeyword,name:c.StatementPosition.WithKeyword,kind:[c.SuggestionKind.WithKeyword]},{id:c.StatementPosition.AfterSelectKeyword,name:c.StatementPosition.AfterSelectKeyword,kind:[c.SuggestionKind.StarWildCard,c.SuggestionKind.FunctionsWithArguments,c.SuggestionKind.Columns,c.SuggestionKind.SelectMacro]},{id:c.StatementPosition.AfterSelectFuncFirstArgument,name:c.StatementPosition.AfterSelectFuncFirstArgument,kind:[c.SuggestionKind.Columns]},{id:c.StatementPosition.AfterGroupByFunctionArgument,name:c.StatementPosition.AfterGroupByFunctionArgument,kind:[c.SuggestionKind.Columns]},{id:c.StatementPosition.AfterWhereFunctionArgument,name:c.StatementPosition.AfterWhereFunctionArgument,kind:[c.SuggestionKind.Columns]},{id:c.StatementPosition.AfterSelectArguments,name:c.StatementPosition.AfterSelectArguments,kind:[c.SuggestionKind.Columns]},{id:c.StatementPosition.AfterFromKeyword,name:c.StatementPosition.AfterFromKeyword,kind:[c.SuggestionKind.Schemas,c.SuggestionKind.Tables,c.SuggestionKind.TableMacro]},{id:c.StatementPosition.AfterSchema,name:c.StatementPosition.AfterSchema,kind:[c.SuggestionKind.Tables,c.SuggestionKind.TableMacro]},{id:c.StatementPosition.SelectAlias,name:c.StatementPosition.SelectAlias,kind:[c.SuggestionKind.Columns,c.SuggestionKind.FunctionsWithArguments]},{id:c.StatementPosition.FromKeyword,name:c.StatementPosition.FromKeyword,kind:[c.SuggestionKind.FromKeyword]},{id:c.StatementPosition.AfterFrom,name:c.StatementPosition.AfterFrom,kind:[c.SuggestionKind.WhereKeyword,c.SuggestionKind.GroupByKeywords,c.SuggestionKind.OrderByKeywords,c.SuggestionKind.LimitKeyword]},{id:c.StatementPosition.AfterTable,name:c.StatementPosition.AfterTable,kind:[c.SuggestionKind.WhereKeyword,c.SuggestionKind.GroupByKeywords,c.SuggestionKind.OrderByKeywords,c.SuggestionKind.LimitKeyword]},{id:c.StatementPosition.WhereKeyword,name:c.StatementPosition.WhereKeyword,kind:[c.SuggestionKind.Columns,c.SuggestionKind.FilterMacro,c.SuggestionKind.TemplateVariables]},{id:c.StatementPosition.WhereComparisonOperator,name:c.StatementPosition.WhereComparisonOperator,kind:[c.SuggestionKind.ComparisonOperators]},{id:c.StatementPosition.WhereValue,name:c.StatementPosition.WhereValue,kind:[c.SuggestionKind.FilterMacro,c.SuggestionKind.TemplateVariables]},{id:c.StatementPosition.AfterWhereValue,name:c.StatementPosition.AfterWhereValue,kind:[c.SuggestionKind.LogicalOperators,c.SuggestionKind.GroupByKeywords,c.SuggestionKind.OrderByKeywords,c.SuggestionKind.LimitKeyword,c.SuggestionKind.Columns,c.SuggestionKind.TemplateVariables]},{id:c.StatementPosition.AfterGroupByKeywords,name:c.StatementPosition.AfterGroupByKeywords,kind:[c.SuggestionKind.GroupMacro,c.SuggestionKind.Columns]},{id:c.StatementPosition.AfterGroupBy,name:c.StatementPosition.AfterGroupBy,kind:[c.SuggestionKind.OrderByKeywords,c.SuggestionKind.LimitKeyword]},{id:c.StatementPosition.AfterOrderByKeywords,name:c.StatementPosition.AfterOrderByKeywords,kind:[c.SuggestionKind.Columns]},{id:c.StatementPosition.AfterOrderByFunction,name:c.StatementPosition.AfterOrderByFunction,kind:[c.SuggestionKind.SortOrderDirectionKeyword,c.SuggestionKind.LimitKeyword]},{id:c.StatementPosition.AfterOrderByDirection,name:c.StatementPosition.AfterOrderByDirection,kind:[c.SuggestionKind.LimitKeyword]},{id:c.StatementPosition.AfterIsOperator,name:c.StatementPosition.AfterOrderByDirection,kind:[c.SuggestionKind.NotKeyword,c.SuggestionKind.NullValue,c.SuggestionKind.BoolValues]},{id:c.StatementPosition.AfterIsNotOperator,name:c.StatementPosition.AfterOrderByDirection,kind:[c.SuggestionKind.NullValue,c.SuggestionKind.BoolValues]}]},re=function(){function vt(Ve,lt,at,Xt,rt){this.type=Ve,this.value=lt,this.range=at,this.previous=Xt,this.next=rt}return vt.prototype.isKeyword=function(){return this.type===c.TokenType.Keyword},vt.prototype.isWhiteSpace=function(){return this.type===c.TokenType.Whitespace},vt.prototype.isParenthesis=function(){return this.type===c.TokenType.Parenthesis},vt.prototype.isIdentifier=function(){return this.type===c.TokenType.Identifier},vt.prototype.isString=function(){return this.type===c.TokenType.String},vt.prototype.isNumber=function(){return this.type===c.TokenType.Number},vt.prototype.isDoubleQuotedString=function(){return this.type===c.TokenType.Type},vt.prototype.isVariable=function(){return this.type===c.TokenType.Variable},vt.prototype.isFunction=function(){return this.type===c.TokenType.Function},vt.prototype.isOperator=function(){return this.type===c.TokenType.Operator},vt.prototype.isTemplateVariable=function(){return this.type===c.TokenType.Variable},vt.prototype.is=function(Ve,lt){var at=this.type===Ve;return lt!==void 0?at&&X(Ve,this,lt):at},vt.prototype.getPreviousNonWhiteSpaceToken=function(){for(var Ve=this.previous;Ve!=null;){if(!Ve.isWhiteSpace())return Ve;Ve=Ve.previous}return null},vt.prototype.getPreviousOfType=function(Ve,lt){for(var at=this.previous;at!=null;){var Xt=at.type===Ve;if(lt!==void 0?Xt&&X(Ve,at,lt):Xt)return at;at=at.previous}return null},vt.prototype.getPreviousUntil=function(Ve,lt,at){for(var Xt=[],rt=this.previous;rt!=null;)if(lt.some(function(rn){return rn===rt?.type}))rt=rt.previous;else{var Rt=rt.type===Ve;if(at!==void 0?Rt&&X(Ve,rt,at):Rt)return Xt;rt.isWhiteSpace()||Xt.push(rt),rt=rt.previous}return Xt},vt.prototype.getNextUntil=function(Ve,lt,at){for(var Xt=[],rt=this.next;rt!=null;)if(lt.some(function(rn){return rn===rt?.type}))rt=rt.next;else{var Rt=rt.type===Ve;if(at!==void 0?Rt&&X(Ve,rt,at):Rt)return Xt;rt.isWhiteSpace()||Xt.push(rt),rt=rt.next}return Xt},vt.prototype.getPreviousKeyword=function(){for(var Ve=this.previous;Ve!=null;){if(Ve.isKeyword())return Ve;Ve=Ve.previous}return null},vt.prototype.getNextNonWhiteSpaceToken=function(){for(var Ve=this.next;Ve!=null;){if(!Ve.isWhiteSpace())return Ve;Ve=Ve.next}return null},vt.prototype.getNextOfType=function(Ve,lt){for(var at=this.next;at!=null;){var Xt=at.type===Ve;if(lt!==void 0?Xt&&X(Ve,at,lt):Xt)return at;at=at.next}return null},vt}();function X(vt,Ve,lt){return vt===c.TokenType.Keyword||vt===c.TokenType.Operator?Ve.value.toLowerCase()===lt.toString().toLowerCase():Ve.value===lt}function Z(vt,Ve,lt,at){var Xt;at===void 0&&(at="sql");for(var rt=null,Rt=null,rn=vt.editor.tokenize((Xt=Ve.getValue())!==null&&Xt!==void 0?Xt:"",at),sn=0;sn<rn.length;sn++){var Jn=rn[sn];if(!Jn.length&&Rt){var ze={offset:0,type:c.TokenType.Whitespace,language:at,_tokenBrand:void 0};Jn.push(ze)}for(var st=0;st<Jn.length;st++){ze=Jn[st];var en=Jn.length>st+1?Jn[st+1].offset+1:Ve.getLineLength(sn+1)+1,wt={startLineNumber:sn+1,startColumn:ze.offset===0?0:ze.offset+1,endLineNumber:sn+1,endColumn:en},Ke=Ve.getValueInRange(wt),Ut=new re(ze.type,Ke,wt,Rt,null);vt.Range.containsPosition(wt,lt)&&(rt=Ut),Rt&&(Rt.next=Ut),Rt=Ut}}return rt}var J,q="select",L="from",$="by",k="desc",F="asc",V=["AND","OR"],pe=["=","!="],ce=K([],N(pe),!1),G={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},te={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],logicalOperators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME"],comparisonOperators:["<>",">","<",">=","<=","=","!=","&","~","^","%"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@templateVariables"},{include:"@macros"},{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},{include:"@schemaTable"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$|<|>|=|!|%|&|+|\|-|*|/|~|^]+/,{cases:{"@operators":"operator","@comparisonOperators":"operator","@logicalOperators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}]],templateVariables:[[/\$[a-zA-Z0-9]+/,"variable"]],macros:[[/\$__[a-zA-Z0-9-_]+/,"type"]],schemaTable:[[/(\w+)\./,"identifier"],[/(\w+\.\w+)/,"identifier"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}},ie=Object.freeze({__proto__:null,SELECT:q,FROM:L,WHERE:"where",GROUP:"group",ORDER:"order",BY:$,DESC:k,ASC:F,LIMIT:"limit",WITH:"with",AS:"as",SCHEMA:"schema",AND:"AND",OR:"OR",LOGICAL_OPERATORS:V,EQUALS:"=",NOT_EQUALS:"!=",COMPARISON_OPERATORS:pe,STD_OPERATORS:ce,conf:G,language:te}),fe=function(vt){var Ve=function(lt){var at;return(at=lt?.getPreviousOfType(c.TokenType.Keyword,q))!==null&&at!==void 0?at:null}(vt);return Ve?.getNextOfType(c.TokenType.Keyword,L)},Se=function(vt){var Ve,lt=fe(vt),at=lt?.getNextNonWhiteSpaceToken();return at?.isVariable()||at?.isKeyword()&&(!((Ve=at.next)===null||Ve===void 0)&&Ve.is(c.TokenType.Parenthesis,"("))?null:at},he=function(vt){var Ve=vt?.value.split(".");return Ve?.length===1?{table:Ve[0]}:Ve?.length===2?{schema:Ve[0],table:Ve[1]}:null},me={id:"editor.action.triggerSuggest",title:""},_e=new Uint8Array(16);function we(){if(!J&&!(J=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return J(_e)}var Ge=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ht(vt){return typeof vt=="string"&&Ge.test(vt)}for(var nt=[],Re=0;Re<256;++Re)nt.push((Re+256).toString(16).substr(1));function ue(vt,Ve,lt){var at=(vt=vt||{}).random||(vt.rng||we)();if(at[6]=15&at[6]|64,at[8]=63&at[8]|128,Ve){lt=lt||0;for(var Xt=0;Xt<16;++Xt)Ve[lt+Xt]=at[Xt];return Ve}return function(rt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,rn=(nt[rt[Rt+0]]+nt[rt[Rt+1]]+nt[rt[Rt+2]]+nt[rt[Rt+3]]+"-"+nt[rt[Rt+4]]+nt[rt[Rt+5]]+"-"+nt[rt[Rt+6]]+nt[rt[Rt+7]]+"-"+nt[rt[Rt+8]]+nt[rt[Rt+9]]+"-"+nt[rt[Rt+10]]+nt[rt[Rt+11]]+nt[rt[Rt+12]]+nt[rt[Rt+13]]+nt[rt[Rt+14]]+nt[rt[Rt+15]]).toLowerCase();if(!ht(rn))throw TypeError("Stringified UUID is invalid");return rn}(at)}function ae(vt){return{label:vt.name,insertText:"".concat("\\"+vt.text).concat(ve(vt.args)," "),insertTextRules:c.CompletionItemInsertTextRule.InsertAsSnippet,kind:c.CompletionItemKind.Snippet,documentation:vt.description,command:me}}function ve(vt){return vt?"(".concat(vt.map(function(Ve,lt){return"${".concat(lt,":").concat(Ve,"}")}).join(", ")).concat(")"):"()"}function Me(){return[{id:c.StatementPosition.SelectKeyword,name:c.StatementPosition.SelectKeyword,resolve:function(vt,Ve,lt,at){return!!(vt===null||vt.isWhiteSpace()&&vt.previous===null||vt.is(c.TokenType.Keyword,q)||vt.is(c.TokenType.Keyword,q)&&vt.previous===null||at||vt.isIdentifier()&&(at||vt?.previous===null)||vt.isIdentifier()&&q.startsWith(vt.value.toLowerCase()))}},{id:c.StatementPosition.WithKeyword,name:c.StatementPosition.WithKeyword,resolve:function(vt,Ve,lt,at){return!!(vt===null||vt.isWhiteSpace()&&vt.previous===null||vt.is(c.TokenType.Keyword,"with")&&vt.previous===null||vt.isIdentifier()&&"with".toLowerCase().startsWith(vt.value.toLowerCase()))}},{id:c.StatementPosition.AfterSelectKeyword,name:c.StatementPosition.AfterSelectKeyword,resolve:function(vt,Ve,lt,at){return lt?.value.toLowerCase()===q}},{id:c.StatementPosition.AfterSelectArguments,name:c.StatementPosition.AfterSelectArguments,resolve:function(vt,Ve,lt,at){return Ve?.value.toLowerCase()===q&<?.value===","}},{id:c.StatementPosition.AfterSelectFuncFirstArgument,name:c.StatementPosition.AfterSelectFuncFirstArgument,resolve:function(vt,Ve,lt,at){return!!((Ve?.value.toLowerCase()===q||Ve?.value.toLowerCase()==="as")&&(lt?.is(c.TokenType.Parenthesis,"(")||vt?.is(c.TokenType.Parenthesis,"()")))}},{id:c.StatementPosition.AfterWhereFunctionArgument,name:c.StatementPosition.AfterWhereFunctionArgument,resolve:function(vt,Ve,lt,at){return!!(Ve?.is(c.TokenType.Keyword,"where")&&(lt?.is(c.TokenType.Parenthesis,"(")||vt?.is(c.TokenType.Parenthesis,"()")))}},{id:c.StatementPosition.AfterGroupBy,name:c.StatementPosition.AfterGroupBy,resolve:function(vt,Ve,lt,at){var Xt;return!!(Ve?.is(c.TokenType.Keyword,$)&&(!((Xt=Ve?.getPreviousKeyword())===null||Xt===void 0)&&Xt.is(c.TokenType.Keyword,"group"))&&(lt?.isIdentifier()||lt?.isDoubleQuotedString()||lt?.is(c.TokenType.Parenthesis,")")||lt?.is(c.TokenType.Parenthesis,"()")))}},{id:c.StatementPosition.SelectAlias,name:c.StatementPosition.SelectAlias,resolve:function(vt,Ve,lt,at){return lt?.value===","&&Ve?.value.toLowerCase()==="as"}},{id:c.StatementPosition.FromKeyword,name:c.StatementPosition.FromKeyword,resolve:function(vt,Ve,lt,at){return!!(Ve?.value.toLowerCase()===q&<?.value!==","||(vt?.isKeyword()||vt?.isIdentifier())&&L.toLowerCase().startsWith(vt.value.toLowerCase()))}},{id:c.StatementPosition.AfterFromKeyword,name:c.StatementPosition.AfterFromKeyword,resolve:function(vt,Ve,lt,at){return!vt?.value.includes(".")&<?.value.toLowerCase()===L}},{id:c.StatementPosition.AfterSchema,name:c.StatementPosition.AfterSchema,resolve:function(vt,Ve,lt,at){return vt?.isWhiteSpace()&&vt?.next&&(lt=(vt=vt?.previous)==null?void 0:vt.getPreviousNonWhiteSpaceToken()),!!(vt?.isIdentifier()&&vt?.value.endsWith(".")&<?.value.toLowerCase()===L)}},{id:c.StatementPosition.AfterFrom,name:c.StatementPosition.AfterFrom,resolve:function(vt,Ve,lt,at){return!!(Ve?.value.toLowerCase()===L&<?.isDoubleQuotedString()||Ve?.value.toLowerCase()===L&<?.isIdentifier()||Ve?.value.toLowerCase()===L&<?.isVariable())}},{id:c.StatementPosition.AfterTable,name:c.StatementPosition.AfterTable,resolve:function(vt,Ve,lt,at){return!!(Ve?.value.toLowerCase()===L&&(lt?.isVariable()||lt?.value!==""&<?.value.toLowerCase()!==L))}},{id:c.StatementPosition.WhereKeyword,name:c.StatementPosition.WhereKeyword,resolve:function(vt,Ve,lt,at){return!!(Ve?.value.toLowerCase()==="where"&&(lt?.isKeyword()||lt?.is(c.TokenType.Parenthesis,"(")||lt?.is(c.TokenType.Operator,"AND")))}},{id:c.StatementPosition.WhereComparisonOperator,name:c.StatementPosition.WhereComparisonOperator,resolve:function(vt,Ve,lt,at){return!!(Ve?.value.toLowerCase()==="where"&&!lt?.getPreviousNonWhiteSpaceToken().isOperator()&&!vt.is(c.TokenType.Delimiter,".")&&!vt.isParenthesis()&&(lt?.isIdentifier()||lt?.isDoubleQuotedString()))}},{id:c.StatementPosition.WhereValue,name:c.StatementPosition.WhereValue,resolve:function(vt,Ve,lt,at){return!!(Ve?.value.toLowerCase()==="where"&<?.isOperator())}},{id:c.StatementPosition.AfterWhereValue,name:c.StatementPosition.AfterWhereValue,resolve:function(vt,Ve,lt,at){var Xt,rt,Rt;return!!(Ve?.value.toLowerCase()==="where"&&(lt.is(c.TokenType.Operator,"and")||lt.is(c.TokenType.Operator,"or")||lt?.isString()||lt?.isNumber()||lt?.is(c.TokenType.Parenthesis,")")||lt?.is(c.TokenType.Parenthesis,"()")||lt?.isTemplateVariable()||lt?.is(c.TokenType.IdentifierQuote)&&(!((Xt=lt.getPreviousNonWhiteSpaceToken())===null||Xt===void 0)&&Xt.is(c.TokenType.Identifier))&&(!((Rt=(rt=lt?.getPreviousNonWhiteSpaceToken())===null||rt===void 0?void 0:rt.getPreviousNonWhiteSpaceToken())===null||Rt===void 0)&&Rt.is(c.TokenType.IdentifierQuote))))}},{id:c.StatementPosition.AfterGroupByKeywords,name:c.StatementPosition.AfterGroupByKeywords,resolve:function(vt,Ve,lt,at){var Xt;return!!(Ve?.is(c.TokenType.Keyword,$)&&(!((Xt=Ve?.getPreviousKeyword())===null||Xt===void 0)&&Xt.is(c.TokenType.Keyword,"group"))&&(lt?.is(c.TokenType.Keyword,$)||lt?.is(c.TokenType.Delimiter,",")))}},{id:c.StatementPosition.AfterGroupByFunctionArgument,name:c.StatementPosition.AfterGroupByFunctionArgument,resolve:function(vt,Ve,lt,at){var Xt;return!!(Ve?.is(c.TokenType.Keyword,$)&&(!((Xt=Ve?.getPreviousKeyword())===null||Xt===void 0)&&Xt.is(c.TokenType.Keyword,"group"))&&(lt?.is(c.TokenType.Parenthesis,"(")||vt?.is(c.TokenType.Parenthesis,"()")))}},{id:c.StatementPosition.AfterOrderByKeywords,name:c.StatementPosition.AfterOrderByKeywords,resolve:function(vt,Ve,lt,at){var Xt;return!!(lt?.is(c.TokenType.Keyword,$)&&(!((Xt=lt?.getPreviousKeyword())===null||Xt===void 0)&&Xt.is(c.TokenType.Keyword,"order")))}},{id:c.StatementPosition.AfterOrderByFunction,name:c.StatementPosition.AfterOrderByFunction,resolve:function(vt,Ve,lt,at){var Xt,rt;return!!(Ve?.is(c.TokenType.Keyword,$)&&(!((Xt=Ve?.getPreviousKeyword())===null||Xt===void 0)&&Xt.is(c.TokenType.Keyword,"order"))&<?.is(c.TokenType.Parenthesis)&&(!((rt=lt?.getPreviousNonWhiteSpaceToken())===null||rt===void 0)&&rt.is(c.TokenType.Function)))}},{id:c.StatementPosition.AfterOrderByDirection,name:c.StatementPosition.AfterOrderByDirection,resolve:function(vt,Ve,lt,at){return!!(Ve?.is(c.TokenType.Keyword,k)||Ve?.is(c.TokenType.Keyword,F))}},{id:c.StatementPosition.AfterIsOperator,name:c.StatementPosition.AfterIsOperator,resolve:function(vt,Ve,lt,at){return!!lt?.is(c.TokenType.Operator,"IS")}},{id:c.StatementPosition.AfterIsNotOperator,name:c.StatementPosition.AfterIsNotOperator,resolve:function(vt,Ve,lt,at){var Xt;return!!(lt?.is(c.TokenType.Operator,"NOT")&&(!((Xt=lt.getPreviousNonWhiteSpaceToken())===null||Xt===void 0)&&Xt.is(c.TokenType.Operator,"IS")))}}]}var Ye={logger:function(){}},qe=function(){};y.attachDebugger&&y.createLogger&&(Ye=y.createLogger("SQLEditor"),qe=Ye.logger,y.attachDebugger("sqleditor",void 0,Ye));var At=[{id:"$__timeFilter(dateColumn)",name:"$__timeFilter(dateColumn)",text:"$__timeFilter",args:["column"],type:c.MacroType.Filter,description:"Will be replaced by a time range filter using the specified column name. For example, dateColumn BETWEEN FROM_UNIXTIME(1494410783) AND FROM_UNIXTIME(1494410983)"},{id:"$__timeFrom()",name:"$__timeFrom()",text:"$__timeFrom",args:[],type:c.MacroType.Filter,description:"Will be replaced by the start of the currently active time selection. For example, FROM_UNIXTIME(1494410783)"},{id:"$__timeTo()",name:"$__timeTo()",text:"$__timeTo",args:[],type:c.MacroType.Filter,description:"Will be replaced by the end of the currently active time selection. For example, FROM_UNIXTIME(1494410983)"},{id:"$__timeGroup(dateColumn, '5m')",name:"$__timeGroup(dateColumn, '5m')",text:"$__timeGroup",args:["column","'5m'"],type:c.MacroType.Value,description:"Will be replaced by an expression usable in GROUP BY clause. For example, *cast(cast(UNIX_TIMESTAMP(dateColumn)/(300) as signed)*300 as signed),*"},{id:"$__table",name:"$__table",text:"$__table",args:[],type:c.MacroType.Table,description:"Will be replaced by the query table."},{id:"$__column",name:"$__column",text:"$__column",args:[],type:c.MacroType.Column,description:"Will be replaced by the query column."}];function It(vt,Ve){var lt,at,Xt,rt={triggerCharacters:["."," ","$",",","(","'"]};Ve?.builtinFunctions.length&&(rt.supportedFunctions=function(){return Ve.builtinFunctions.map(function(rn){return{id:rn,name:rn}})});var Rt=[];return!((lt=Ve?.comparisonOperators)===null||lt===void 0)&<.length&&Rt.push.apply(Rt,K([],N(Ve.comparisonOperators.map(function(rn){return{id:rn.toLocaleLowerCase(),operator:rn,type:c.OperatorType.Comparison}})),!1)),Ve.logicalOperators=(at=Ve.logicalOperators)!==null&&at!==void 0?at:Ve.operators,!((Xt=Ve?.logicalOperators)===null||Xt===void 0)&&Xt.length&&Rt.push.apply(Rt,K([],N(Ve.logicalOperators.map(function(rn){return{id:rn.toLocaleLowerCase(),operator:rn,type:c.OperatorType.Logical}})),!1)),rt.supportedOperators=function(){return Rt},rt.supportedMacros=function(){return At},rt}var Ce={id:"standardSql",extensions:[".sql"],aliases:["sql"],mimetypes:[],loader:function(){return Promise.resolve().then(function(){return ie})},completionProvider:It},Ae=new Map,$e=new Map,tt=function(vt,Ve,lt){return T(void 0,void 0,void 0,function(){var at,Xt,rt,Rt,rn,sn,Jn,ze;return A(this,function(st){switch(st.label){case 0:return[4,(at=function(en,wt){if(wt?.id!=="sql"&&!wt.loader){qe("Loading language '".concat(wt?.id,"' from Monaco registry"),!1);var Ke=en.languages.getLanguages().find(function(Ut){return Ut.id===wt?.id});if(!Ke)throw Error("Unknown Monaco language ".concat(wt?.id));return P(P({completionProvider:It},Ke),wt)}return P(P({},Ce),wt)}(vt,Ve)).loader(vt)];case 1:return Xt=st.sent(),rt=Xt.language,Rt=Xt.conf,vt.languages.register({id:lt}),vt.languages.setMonarchTokensProvider(lt,P({},rt)),vt.languages.setLanguageConfiguration(lt,P({},Rt)),at.formatter&&vt.languages.registerDocumentFormattingEditProvider(lt,{provideDocumentFormattingEdits:function(en){var wt=Ve.formatter(en.getValue());return[{range:en.getFullModelRange(),text:wt}]}}),at.completionProvider&&(rn=at.completionProvider(vt,rt),function(en,wt,Ke){var Ut,on,Tn,An,Zt,ot,We,Ft,it,qt,vn,fn=this;Ae.has(en)||function(xt){Ae.has(xt)||Ae.set(xt,{functions:new S.Registry,operators:new S.Registry,suggestionKinds:new S.Registry(j),positionResolvers:new S.Registry(Me),macros:new S.Registry}),Ae.get(xt)}(en);var Tt=Ae.get(en);$e.has(wt)||$e.set(wt,new S.Registry((dn=Tt.functions,mn=Tt.operators,Kn=Tt.macros,function(){return[{id:c.SuggestionKind.SelectKeyword,name:c.SuggestionKind.SelectKeyword,suggestions:function(xt,On){return Promise.resolve([{label:"SELECT <column>",insertText:"SELECT $0",insertTextRules:c.CompletionItemInsertTextRule.InsertAsSnippet,kind:c.CompletionItemKind.Snippet,command:me,sortText:c.CompletionItemPriority.Medium},{label:"SELECT <column> FROM <table>",insertText:"SELECT $2 FROM $1",insertTextRules:c.CompletionItemInsertTextRule.InsertAsSnippet,kind:c.CompletionItemKind.Snippet,command:me,sortText:c.CompletionItemPriority.Medium}])}},{id:c.SuggestionKind.TemplateVariables,name:c.SuggestionKind.TemplateVariables,suggestions:function(xt,On){var Zn=w.getTemplateSrv();return Zn?Promise.resolve(Zn.getVariables().map(function(Ur){var En="$".concat(Ur.name),ln=Zn.replace(En);return{label:En,detail:"(Template Variable) ".concat(ln),kind:c.CompletionItemKind.Snippet,documentation:"(Template Variable) ".concat(ln),insertText:"\\$".concat(Ur.name," "),insertTextRules:c.CompletionItemInsertTextRule.InsertAsSnippet,command:me,sortText:c.CompletionItemPriority.Low}})):Promise.resolve([])}},{id:c.SuggestionKind.SelectMacro,name:c.SuggestionKind.SelectMacro,suggestions:function(xt,On){return Promise.resolve(K([],N(Kn.list().filter(function(Zn){return Zn.type===c.MacroType.Value||Zn.type===c.MacroType.Column}).map(ae)),!1))}},{id:c.SuggestionKind.TableMacro,name:c.SuggestionKind.TableMacro,suggestions:function(xt,On){return Promise.resolve(K([],N(Kn.list().filter(function(Zn){return Zn.type===c.MacroType.Table}).map(ae)),!1))}},{id:c.SuggestionKind.GroupMacro,name:c.SuggestionKind.GroupMacro,suggestions:function(xt,On){return Promise.resolve(K([],N(Kn.list().filter(function(Zn){return Zn.type===c.MacroType.Group}).map(ae)),!1))}},{id:c.SuggestionKind.FilterMacro,name:c.SuggestionKind.FilterMacro,suggestions:function(xt,On){return Promise.resolve(K([],N(Kn.list().filter(function(Zn){return Zn.type===c.MacroType.Filter}).map(ae)),!1))}},{id:c.SuggestionKind.WithKeyword,name:c.SuggestionKind.WithKeyword,suggestions:function(xt,On){return Promise.resolve([{label:"WITH <alias> AS ( ... )",insertText:"WITH $1 AS ( $2 )",insertTextRules:c.CompletionItemInsertTextRule.InsertAsSnippet,kind:c.CompletionItemKind.Snippet,command:me,sortText:c.CompletionItemPriority.Medium}])}},{id:c.SuggestionKind.StarWildCard,name:c.SuggestionKind.StarWildCard,suggestions:function(xt,On){return Promise.resolve([{label:"*",insertText:"* $0",insertTextRules:c.CompletionItemInsertTextRule.InsertAsSnippet,kind:c.CompletionItemKind.Field,command:me,sortText:c.CompletionItemPriority.High}])}},{id:c.SuggestionKind.FunctionsWithArguments,name:c.SuggestionKind.FunctionsWithArguments,suggestions:function(xt,On){return Promise.resolve(K([],N(dn.list().map(function(Zn){return{label:Zn.name,insertText:"".concat(Zn.name,"($0)"),documentation:Zn.description,insertTextRules:c.CompletionItemInsertTextRule.InsertAsSnippet,kind:c.CompletionItemKind.Function,command:me,sortText:c.CompletionItemPriority.MediumLow}})),!1))}},{id:c.SuggestionKind.FunctionsWithoutArguments,name:c.SuggestionKind.FunctionsWithoutArguments,suggestions:function(xt,On){return Promise.resolve(K([],N(dn.list().map(function(Zn){return{label:Zn.name,insertText:"".concat(Zn.name,"()"),documentation:Zn.description,insertTextRules:c.CompletionItemInsertTextRule.InsertAsSnippet,kind:c.CompletionItemKind.Function,command:me,sortText:c.CompletionItemPriority.MediumHigh}})),!1))}},{id:c.SuggestionKind.FromKeyword,name:c.SuggestionKind.FromKeyword,suggestions:function(xt,On){return Promise.resolve([{label:"FROM",insertText:"FROM $0",command:me,insertTextRules:c.CompletionItemInsertTextRule.InsertAsSnippet,kind:c.CompletionItemKind.Keyword}])}},{id:c.SuggestionKind.Schemas,name:c.SuggestionKind.Schemas,suggestions:function(xt,On){return Promise.resolve([])}},{id:c.SuggestionKind.Tables,name:c.SuggestionKind.Tables,suggestions:function(xt,On){return Promise.resolve([])}},{id:c.SuggestionKind.Columns,name:c.SuggestionKind.Columns,suggestions:function(xt,On){return Promise.resolve([])}},{id:c.SuggestionKind.LogicalOperators,name:c.SuggestionKind.LogicalOperators,suggestions:function(xt,On){return Promise.resolve(mn.list().filter(function(Zn){return Zn.type===c.OperatorType.Logical}).map(function(Zn){return{label:Zn.operator,insertText:"".concat(Zn.operator," "),documentation:Zn.description,command:me,sortText:c.CompletionItemPriority.MediumHigh,kind:c.CompletionItemKind.Operator}}))}},{id:c.SuggestionKind.WhereKeyword,name:c.SuggestionKind.WhereKeyword,suggestions:function(xt,On){return Promise.resolve([{label:"WHERE",insertText:"WHERE ",command:me,sortText:c.CompletionItemPriority.MediumHigh,kind:c.CompletionItemKind.Keyword}])}},{id:c.SuggestionKind.ComparisonOperators,name:c.SuggestionKind.ComparisonOperators,suggestions:function(xt,On){return Promise.resolve(K(K([],N(mn.list().filter(function(Zn){return Zn.type===c.OperatorType.Comparison}).map(function(Zn){return{label:Zn.operator,insertText:"".concat(Zn.operator," "),documentation:Zn.description,command:me,sortText:c.CompletionItemPriority.MediumHigh,kind:c.CompletionItemKind.Operator}})),!1),[{label:"IN (...)",insertText:"IN ( $0 )",command:me,sortText:c.CompletionItemPriority.Medium,kind:c.CompletionItemKind.Operator,insertTextRules:c.CompletionItemInsertTextRule.InsertAsSnippet},{label:"NOT IN (...)",insertText:"NOT IN ( $0 )",command:me,sortText:c.CompletionItemPriority.Medium,kind:c.CompletionItemKind.Operator,insertTextRules:c.CompletionItemInsertTextRule.InsertAsSnippet},{label:"IS",insertText:"IS",command:me,sortText:c.CompletionItemPriority.Medium,kind:c.CompletionItemKind.Operator},{label:"IS NOT",insertText:"IS NOT",command:me,sortText:c.CompletionItemPriority.Medium,kind:c.CompletionItemKind.Operator}],!1))}},{id:c.SuggestionKind.GroupByKeywords,name:c.SuggestionKind.GroupByKeywords,suggestions:function(xt,On){return Promise.resolve([{label:"GROUP BY",insertText:"GROUP BY ",command:me,sortText:c.CompletionItemPriority.MediumHigh,kind:c.CompletionItemKind.Keyword}])}},{id:c.SuggestionKind.OrderByKeywords,name:c.SuggestionKind.OrderByKeywords,suggestions:function(xt,On){return Promise.resolve([{label:"ORDER BY",insertText:"ORDER BY ",command:me,sortText:c.CompletionItemPriority.Medium,kind:c.CompletionItemKind.Keyword},{label:"ORDER BY(ascending)",insertText:"ORDER BY $1 ASC ",command:me,sortText:c.CompletionItemPriority.MediumLow,kind:c.CompletionItemKind.Snippet,insertTextRules:c.CompletionItemInsertTextRule.InsertAsSnippet},{label:"ORDER BY(descending)",insertText:"ORDER BY $1 DESC",command:me,sortText:c.CompletionItemPriority.MediumLow,kind:c.CompletionItemKind.Snippet,insertTextRules:c.CompletionItemInsertTextRule.InsertAsSnippet}])}},{id:c.SuggestionKind.LimitKeyword,name:c.SuggestionKind.LimitKeyword,suggestions:function(xt,On){return Promise.resolve([{label:"LIMIT",insertText:"LIMIT ",command:me,sortText:c.CompletionItemPriority.MediumLow,kind:c.CompletionItemKind.Keyword}])}},{id:c.SuggestionKind.SortOrderDirectionKeyword,name:c.SuggestionKind.SortOrderDirectionKeyword,suggestions:function(xt,On){return Promise.resolve([F,k].map(function(Zn){return{label:Zn,insertText:"".concat(Zn," "),command:me,kind:c.CompletionItemKind.Keyword}}))}},{id:c.SuggestionKind.NotKeyword,name:c.SuggestionKind.NotKeyword,suggestions:function(){return Promise.resolve([{label:"NOT",insertText:"NOT",command:me,kind:c.CompletionItemKind.Keyword,sortText:c.CompletionItemPriority.High}])}},{id:c.SuggestionKind.BoolValues,name:c.SuggestionKind.BoolValues,suggestions:function(){return Promise.resolve(["TRUE","FALSE"].map(function(xt){return{label:xt,insertText:"".concat(xt),command:me,kind:c.CompletionItemKind.Keyword,sortText:c.CompletionItemPriority.Medium}}))}},{id:c.SuggestionKind.NullValue,name:c.SuggestionKind.NullValue,suggestions:function(){return Promise.resolve(["NULL"].map(function(xt){return{label:xt,insertText:"".concat(xt),command:me,kind:c.CompletionItemKind.Keyword,sortText:c.CompletionItemPriority.Low}}))}}]})));var dn,mn,Kn,Dn=$e.get(wt);if(Ke.supportedFunctions)try{for(var Vn=I(Ke.supportedFunctions()),or=Vn.next();!or.done;or=Vn.next()){var Qr=or.value;Tt.functions.getIfExists(Qr.id)||Tt.functions.register(Qr)}}catch(xt){Ut={error:xt}}finally{try{or&&!or.done&&(on=Vn.return)&&on.call(Vn)}finally{if(Ut)throw Ut.error}}if(Ke.supportedOperators)try{for(var ni=I(Ke.supportedOperators()),yr=ni.next();!yr.done;yr=ni.next()){var si=yr.value;Tt.operators.getIfExists(si.id)||Tt.operators.register(P(P({},si),{name:si.id}))}}catch(xt){Tn={error:xt}}finally{try{yr&&!yr.done&&(An=ni.return)&&An.call(ni)}finally{if(Tn)throw Tn.error}}if(Ke.supportedMacros)try{for(var Yr=I(Ke.supportedMacros()),Ci=Yr.next();!Ci.done;Ci=Yr.next()){var Ni=Ci.value;Tt.macros.getIfExists(Ni.id)||Tt.macros.register(P(P({},Ni),{name:Ni.id}))}}catch(xt){Zt={error:xt}}finally{try{Ci&&!Ci.done&&(ot=Yr.return)&&ot.call(Yr)}finally{if(Zt)throw Zt.error}}if(Ke.customStatementPlacement){var fa=function(xt){var On=Tt.positionResolvers.getIfExists(xt.id);if(On){var Zn=On.resolve;On.resolve=function(){for(var Ur=[],En=0;En<arguments.length;En++)Ur[En]=arguments[En];var ln=xt.resolve.apply(xt,K([],N(Ur),!1));if(xt.overrideDefault)return ln;var jn=Zn.apply(void 0,K([],N(Ur),!1));return jn||ln}}else Tt.positionResolvers.register(P(P({},xt),{id:xt.id,name:xt.id})),Tt.suggestionKinds.register({id:xt.id,name:xt.id,kind:[]})};try{for(var ha=I(Ke.customStatementPlacement()),Ca=ha.next();!Ca.done;Ca=ha.next()){var li=Ca.value;fa(li)}}catch(xt){We={error:xt}}finally{try{Ca&&!Ca.done&&(Ft=ha.return)&&Ft.call(ha)}finally{if(We)throw We.error}}}if(Ke.customSuggestionKinds){var la=function(xt){if((vn=xt.applyTo)===null||vn===void 0||vn.forEach(function(Zn){var Ur=Tt.suggestionKinds.getIfExists(Zn);Ur&&Ur.kind.indexOf(xt.id)===-1&&Ur.kind.push(xt.id)}),xt.overrideDefault){var On=Dn.get(xt.id);if(On!==void 0)return On.suggestions=xt.suggestionsResolver,"continue"}Dn.register({id:xt.id,name:xt.id,suggestions:xt.suggestionsResolver})};try{for(var Oa=I(Ke.customSuggestionKinds()),wa=Oa.next();!wa.done;wa=Oa.next()){var vo=wa.value;la(vo)}}catch(xt){it={error:xt}}finally{try{wa&&!wa.done&&(qt=Oa.return)&&qt.call(Oa)}finally{if(it)throw it.error}}}if(Ke.schemas){var Qn=($r=Dn.get(c.SuggestionKind.Schemas)).suggestions;$r.suggestions=function(xt,On){return T(fn,void 0,void 0,function(){var Zn,Ur,En;return A(this,function(ln){switch(ln.label){case 0:return[4,Qn(xt,On)];case 1:return Zn=ln.sent(),[4,Ke.schemas.resolve()];case 2:return Ur=ln.sent(),En=Ur.map(function(jn){var rr;return{label:jn.name,insertText:"".concat((rr=jn.completion)!==null&&rr!==void 0?rr:jn.name,"."),command:me,kind:c.CompletionItemKind.Module,sortText:c.CompletionItemPriority.High}}),[2,K(K([],N(Zn),!1),N(En),!1)]}})})}}if(Ke.tables){var _r=($r=Dn.get(c.SuggestionKind.Tables)).suggestions;$r.suggestions=function(xt,On){return T(fn,void 0,void 0,function(){var Zn,Ur,En,ln,jn,rr,Mr;return A(this,function(Ir){switch(Ir.label){case 0:return[4,_r(xt,On)];case 1:return Zn=Ir.sent(),Ur=Se(xt.currentToken),En=(Mr=(rr=Ke.tables)===null||rr===void 0?void 0:rr.parseName)!==null&&Mr!==void 0?Mr:he,ln=En(Ur),[4,Ke.tables.resolve(ln)];case 2:return jn=Ir.sent().map(function(Zr){var lr;return{label:Zr.name,insertText:"".concat((lr=Zr.completion)!==null&&lr!==void 0?lr:Zr.name).concat(Zr.completion===Zr.name?" $0":""),insertTextRules:c.CompletionItemInsertTextRule.InsertAsSnippet,command:me,kind:c.CompletionItemKind.Field,sortText:c.CompletionItemPriority.MediumHigh}}),[2,K(K([],N(Zn),!1),N(jn),!1)]}})})}}if(Ke.columns){var $r,Ti=($r=Dn.get(c.SuggestionKind.Columns)).suggestions;$r.suggestions=function(xt,On){return T(fn,void 0,void 0,function(){var Zn,Ur,En,ln,jn,rr,Mr,Ir,Zr;return A(this,function(lr){switch(lr.label){case 0:return[4,Ti(xt,On)];case 1:return Zn=lr.sent(),Ur=Se(xt.currentToken),ln=(Ir=(Mr=Ke.tables)===null||Mr===void 0?void 0:Mr.parseName)!==null&&Ir!==void 0?Ir:he,Ur&&Ur.value&&(En=ln(Ur)),jn=[],En?[4,(Zr=Ke.columns)===null||Zr===void 0?void 0:Zr.resolve(En)]:[3,3];case 2:rr=lr.sent(),jn=rr?rr.map(function(Jr){var pi;return{label:Jr.name,insertText:(pi=Jr.completion)!==null&&pi!==void 0?pi:Jr.name,kind:c.CompletionItemKind.Field,sortText:c.CompletionItemPriority.High,detail:Jr.type,documentation:Jr.description}}):[],lr.label=3;case 3:return[2,K(K([],N(Zn),!1),N(jn),!1)]}})})}}}(Ve.id,lt,rn),sn=Ae.get(Ve.id),Jn=$e.get(lt),ze=function(en,wt,Ke,Ut){return T(void 0,void 0,void 0,function(){var on,Tn,An,Zt;return A(this,function(ot){switch(ot.label){case 0:return on=Z(vt,en,wt,lt),Tn=_(on,sn.positionResolvers),An=function(We,Ft){for(var it=[],qt=0;qt<We.length;qt++){var vn=Ft.getIfExists(We[qt]);vn&&(it=it.concat(vn.kind))}return it}(Tn,sn.suggestionKinds),qe("Statement position",!1,Tn),qe("Suggestion kinds",!1,An),Zt={position:wt,currentToken:on,statementPosition:Tn,kind:An,range:vt.Range.fromPositions(wt)},[4,W(vt,on,An,Zt,Jn)];case 1:return[2,{suggestions:ot.sent()}]}})})},vt.languages.registerCompletionItemProvider(lt,P(P({},rn),{provideCompletionItems:ze}))),[2]}})})},ke={testData:Object.freeze({__proto__:null,singleLineFullQuery:{query:'SELECT column1, FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1 DESC LIMIT 10',tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"identifier.sql",language:"sql"},{offset:14,type:"delimiter.sql",language:"sql"},{offset:15,type:"white.sql",language:"sql"},{offset:16,type:"keyword.sql",language:"sql"},{offset:20,type:"white.sql",language:"sql"},{offset:21,type:"identifier.sql",language:"sql"},{offset:27,type:"white.sql",language:"sql"},{offset:28,type:"keyword.sql",language:"sql"},{offset:33,type:"white.sql",language:"sql"},{offset:34,type:"identifier.sql",language:"sql"},{offset:41,type:"white.sql",language:"sql"},{offset:42,type:"operator.sql",language:"sql"},{offset:43,type:"white.sql",language:"sql"},{offset:44,type:"identifier.quote.sql",language:"sql"},{offset:45,type:"identifier.sql",language:"sql"},{offset:51,type:"identifier.quote.sql",language:"sql"},{offset:52,type:"white.sql",language:"sql"},{offset:53,type:"keyword.sql",language:"sql"},{offset:58,type:"white.sql",language:"sql"},{offset:59,type:"keyword.sql",language:"sql"},{offset:61,type:"white.sql",language:"sql"},{offset:62,type:"identifier.sql",language:"sql"},{offset:69,type:"white.sql",language:"sql"},{offset:70,type:"keyword.sql",language:"sql"},{offset:75,type:"white.sql",language:"sql"},{offset:76,type:"keyword.sql",language:"sql"},{offset:78,type:"white.sql",language:"sql"},{offset:79,type:"identifier.sql",language:"sql"},{offset:86,type:"white.sql",language:"sql"},{offset:87,type:"keyword.sql",language:"sql"},{offset:91,type:"white.sql",language:"sql"},{offset:92,type:"keyword.sql",language:"sql"},{offset:97,type:"white.sql",language:"sql"},{offset:98,type:"number.sql",language:"sql"},{offset:100,type:"delimiter.sql",language:"sql"}]]},singleLineFullQueryWithAggregation:{query:'SELECT count(column1), FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1 DESC LIMIT 10;',tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"predefined.sql",language:"sql"},{offset:12,type:"delimiter.parenthesis.sql",language:"sql"},{offset:13,type:"identifier.sql",language:"sql"},{offset:20,type:"delimiter.parenthesis.sql",language:"sql"},{offset:21,type:"delimiter.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"},{offset:23,type:"keyword.sql",language:"sql"},{offset:27,type:"white.sql",language:"sql"},{offset:28,type:"identifier.sql",language:"sql"},{offset:34,type:"white.sql",language:"sql"},{offset:35,type:"keyword.sql",language:"sql"},{offset:40,type:"white.sql",language:"sql"},{offset:41,type:"identifier.sql",language:"sql"},{offset:48,type:"white.sql",language:"sql"},{offset:49,type:"operator.sql",language:"sql"},{offset:50,type:"white.sql",language:"sql"},{offset:51,type:"identifier.quote.sql",language:"sql"},{offset:52,type:"identifier.sql",language:"sql"},{offset:58,type:"identifier.quote.sql",language:"sql"},{offset:59,type:"white.sql",language:"sql"},{offset:60,type:"keyword.sql",language:"sql"},{offset:65,type:"white.sql",language:"sql"},{offset:66,type:"keyword.sql",language:"sql"},{offset:68,type:"white.sql",language:"sql"},{offset:69,type:"identifier.sql",language:"sql"},{offset:76,type:"white.sql",language:"sql"},{offset:77,type:"keyword.sql",language:"sql"},{offset:82,type:"white.sql",language:"sql"},{offset:83,type:"keyword.sql",language:"sql"},{offset:85,type:"white.sql",language:"sql"},{offset:86,type:"identifier.sql",language:"sql"},{offset:93,type:"white.sql",language:"sql"},{offset:94,type:"keyword.sql",language:"sql"},{offset:98,type:"white.sql",language:"sql"},{offset:99,type:"keyword.sql",language:"sql"},{offset:104,type:"white.sql",language:"sql"},{offset:105,type:"number.sql",language:"sql"},{offset:107,type:"delimiter.sql",language:"sql"}]]},multiLineFullQuery:{query:`SELECT column1, FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1 DESC LIMIT 10;`,tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"identifier.sql",language:"sql"},{offset:14,type:"delimiter.sql",language:"sql"},{offset:15,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:4,type:"white.sql",language:"sql"},{offset:5,type:"identifier.sql",language:"sql"},{offset:11,type:"white.sql",language:"sql"}],[{offset:0,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"identifier.sql",language:"sql"},{offset:13,type:"white.sql",language:"sql"},{offset:14,type:"operator.sql",language:"sql"},{offset:15,type:"white.sql",language:"sql"},{offset:16,type:"identifier.quote.sql",language:"sql"},{offset:17,type:"identifier.sql",language:"sql"},{offset:23,type:"identifier.quote.sql",language:"sql"},{offset:24,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"keyword.sql",language:"sql"},{offset:8,type:"white.sql",language:"sql"},{offset:9,type:"identifier.sql",language:"sql"},{offset:16,type:"white.sql",language:"sql"},{offset:17,type:"keyword.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"},{offset:23,type:"keyword.sql",language:"sql"},{offset:25,type:"white.sql",language:"sql"},{offset:26,type:"identifier.sql",language:"sql"},{offset:33,type:"white.sql",language:"sql"},{offset:34,type:"keyword.sql",language:"sql"},{offset:38,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"number.sql",language:"sql"},{offset:8,type:"delimiter.sql",language:"sql"}]]},multiLineFullQueryWithAggregation:{query:`SELECT count(column1), FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1 DESC LIMIT 10;`,tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"predefined.sql",language:"sql"},{offset:12,type:"delimiter.parenthesis.sql",language:"sql"},{offset:13,type:"identifier.sql",language:"sql"},{offset:20,type:"delimiter.parenthesis.sql",language:"sql"},{offset:21,type:"delimiter.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:4,type:"white.sql",language:"sql"},{offset:5,type:"identifier.sql",language:"sql"},{offset:11,type:"white.sql",language:"sql"}],[{offset:0,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"identifier.sql",language:"sql"},{offset:13,type:"white.sql",language:"sql"},{offset:14,type:"operator.sql",language:"sql"},{offset:15,type:"white.sql",language:"sql"},{offset:16,type:"identifier.quote.sql",language:"sql"},{offset:17,type:"identifier.sql",language:"sql"},{offset:23,type:"identifier.quote.sql",language:"sql"},{offset:24,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"keyword.sql",language:"sql"},{offset:8,type:"white.sql",language:"sql"},{offset:9,type:"identifier.sql",language:"sql"},{offset:16,type:"white.sql",language:"sql"},{offset:17,type:"keyword.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"},{offset:23,type:"keyword.sql",language:"sql"},{offset:25,type:"white.sql",language:"sql"},{offset:26,type:"identifier.sql",language:"sql"},{offset:33,type:"white.sql",language:"sql"},{offset:34,type:"keyword.sql",language:"sql"},{offset:38,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"number.sql",language:"sql"},{offset:8,type:"delimiter.sql",language:"sql"}]]},singleLineEmptyQuery:{query:"",tokens:[]},singleLineTwoQueries:{query:'SELECT column1, FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1 DESC LIMIT 10; SELECT column2, FROM table2 WHERE column2 = "value2" GROUP BY column1 ORDER BY column2 DESC LIMIT 10;',tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"identifier.sql",language:"sql"},{offset:14,type:"delimiter.sql",language:"sql"},{offset:15,type:"white.sql",language:"sql"},{offset:16,type:"keyword.sql",language:"sql"},{offset:20,type:"white.sql",language:"sql"},{offset:21,type:"identifier.sql",language:"sql"},{offset:27,type:"white.sql",language:"sql"},{offset:28,type:"keyword.sql",language:"sql"},{offset:33,type:"white.sql",language:"sql"},{offset:34,type:"identifier.sql",language:"sql"},{offset:41,type:"white.sql",language:"sql"},{offset:42,type:"operator.sql",language:"sql"},{offset:43,type:"white.sql",language:"sql"},{offset:44,type:"identifier.quote.sql",language:"sql"},{offset:45,type:"identifier.sql",language:"sql"},{offset:51,type:"identifier.quote.sql",language:"sql"},{offset:52,type:"white.sql",language:"sql"},{offset:53,type:"keyword.sql",language:"sql"},{offset:58,type:"white.sql",language:"sql"},{offset:59,type:"keyword.sql",language:"sql"},{offset:61,type:"white.sql",language:"sql"},{offset:62,type:"identifier.sql",language:"sql"},{offset:69,type:"white.sql",language:"sql"},{offset:70,type:"keyword.sql",language:"sql"},{offset:75,type:"white.sql",language:"sql"},{offset:76,type:"keyword.sql",language:"sql"},{offset:78,type:"white.sql",language:"sql"},{offset:79,type:"identifier.sql",language:"sql"},{offset:86,type:"white.sql",language:"sql"},{offset:87,type:"keyword.sql",language:"sql"},{offset:91,type:"white.sql",language:"sql"},{offset:92,type:"keyword.sql",language:"sql"},{offset:97,type:"white.sql",language:"sql"},{offset:98,type:"number.sql",language:"sql"},{offset:100,type:"delimiter.sql",language:"sql"},{offset:101,type:"white.sql",language:"sql"},{offset:102,type:"keyword.sql",language:"sql"},{offset:108,type:"white.sql",language:"sql"},{offset:109,type:"identifier.sql",language:"sql"},{offset:116,type:"delimiter.sql",language:"sql"},{offset:117,type:"white.sql",language:"sql"},{offset:118,type:"keyword.sql",language:"sql"},{offset:122,type:"white.sql",language:"sql"},{offset:123,type:"identifier.sql",language:"sql"},{offset:129,type:"white.sql",language:"sql"},{offset:130,type:"keyword.sql",language:"sql"},{offset:135,type:"white.sql",language:"sql"},{offset:136,type:"identifier.sql",language:"sql"},{offset:143,type:"white.sql",language:"sql"},{offset:144,type:"operator.sql",language:"sql"},{offset:145,type:"white.sql",language:"sql"},{offset:146,type:"identifier.quote.sql",language:"sql"},{offset:147,type:"identifier.sql",language:"sql"},{offset:153,type:"identifier.quote.sql",language:"sql"},{offset:154,type:"white.sql",language:"sql"},{offset:155,type:"keyword.sql",language:"sql"},{offset:160,type:"white.sql",language:"sql"},{offset:161,type:"keyword.sql",language:"sql"},{offset:163,type:"white.sql",language:"sql"},{offset:164,type:"identifier.sql",language:"sql"},{offset:171,type:"white.sql",language:"sql"},{offset:172,type:"keyword.sql",language:"sql"},{offset:177,type:"white.sql",language:"sql"},{offset:178,type:"keyword.sql",language:"sql"},{offset:180,type:"white.sql",language:"sql"},{offset:181,type:"identifier.sql",language:"sql"},{offset:188,type:"white.sql",language:"sql"},{offset:189,type:"keyword.sql",language:"sql"},{offset:193,type:"white.sql",language:"sql"},{offset:194,type:"keyword.sql",language:"sql"},{offset:199,type:"white.sql",language:"sql"},{offset:200,type:"number.sql",language:"sql"},{offset:202,type:"delimiter.sql",language:"sql"}]]},singleLineTwoQueriesWithAggregation:{query:'SELECT count(column1), FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1 DESC LIMIT 10; SELECT count(column2), FROM table2 WHERE column2 = "value2" GROUP BY column1 ORDER BY column2 DESC LIMIT 10;',tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"predefined.sql",language:"sql"},{offset:12,type:"delimiter.parenthesis.sql",language:"sql"},{offset:13,type:"identifier.sql",language:"sql"},{offset:20,type:"delimiter.parenthesis.sql",language:"sql"},{offset:21,type:"delimiter.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"},{offset:23,type:"keyword.sql",language:"sql"},{offset:27,type:"white.sql",language:"sql"},{offset:28,type:"identifier.sql",language:"sql"},{offset:34,type:"white.sql",language:"sql"},{offset:35,type:"keyword.sql",language:"sql"},{offset:40,type:"white.sql",language:"sql"},{offset:41,type:"identifier.sql",language:"sql"},{offset:48,type:"white.sql",language:"sql"},{offset:49,type:"operator.sql",language:"sql"},{offset:50,type:"white.sql",language:"sql"},{offset:51,type:"identifier.quote.sql",language:"sql"},{offset:52,type:"identifier.sql",language:"sql"},{offset:58,type:"identifier.quote.sql",language:"sql"},{offset:59,type:"white.sql",language:"sql"},{offset:60,type:"keyword.sql",language:"sql"},{offset:65,type:"white.sql",language:"sql"},{offset:66,type:"keyword.sql",language:"sql"},{offset:68,type:"white.sql",language:"sql"},{offset:69,type:"identifier.sql",language:"sql"},{offset:76,type:"white.sql",language:"sql"},{offset:77,type:"keyword.sql",language:"sql"},{offset:82,type:"white.sql",language:"sql"},{offset:83,type:"keyword.sql",language:"sql"},{offset:85,type:"white.sql",language:"sql"},{offset:86,type:"identifier.sql",language:"sql"},{offset:93,type:"white.sql",language:"sql"},{offset:94,type:"keyword.sql",language:"sql"},{offset:98,type:"white.sql",language:"sql"},{offset:99,type:"keyword.sql",language:"sql"},{offset:104,type:"white.sql",language:"sql"},{offset:105,type:"number.sql",language:"sql"},{offset:107,type:"delimiter.sql",language:"sql"},{offset:108,type:"white.sql",language:"sql"},{offset:109,type:"keyword.sql",language:"sql"},{offset:115,type:"white.sql",language:"sql"},{offset:116,type:"predefined.sql",language:"sql"},{offset:121,type:"delimiter.parenthesis.sql",language:"sql"},{offset:122,type:"identifier.sql",language:"sql"},{offset:129,type:"delimiter.parenthesis.sql",language:"sql"},{offset:130,type:"delimiter.sql",language:"sql"},{offset:131,type:"white.sql",language:"sql"},{offset:132,type:"keyword.sql",language:"sql"},{offset:136,type:"white.sql",language:"sql"},{offset:137,type:"identifier.sql",language:"sql"},{offset:143,type:"white.sql",language:"sql"},{offset:144,type:"keyword.sql",language:"sql"},{offset:149,type:"white.sql",language:"sql"},{offset:150,type:"identifier.sql",language:"sql"},{offset:157,type:"white.sql",language:"sql"},{offset:158,type:"operator.sql",language:"sql"},{offset:159,type:"white.sql",language:"sql"},{offset:160,type:"identifier.quote.sql",language:"sql"},{offset:161,type:"identifier.sql",language:"sql"},{offset:167,type:"identifier.quote.sql",language:"sql"},{offset:168,type:"white.sql",language:"sql"},{offset:169,type:"keyword.sql",language:"sql"},{offset:174,type:"white.sql",language:"sql"},{offset:175,type:"keyword.sql",language:"sql"},{offset:177,type:"white.sql",language:"sql"},{offset:178,type:"identifier.sql",language:"sql"},{offset:185,type:"white.sql",language:"sql"},{offset:186,type:"keyword.sql",language:"sql"},{offset:191,type:"white.sql",language:"sql"},{offset:192,type:"keyword.sql",language:"sql"},{offset:194,type:"white.sql",language:"sql"},{offset:195,type:"identifier.sql",language:"sql"},{offset:202,type:"white.sql",language:"sql"},{offset:203,type:"keyword.sql",language:"sql"},{offset:207,type:"white.sql",language:"sql"},{offset:208,type:"keyword.sql",language:"sql"},{offset:213,type:"white.sql",language:"sql"},{offset:214,type:"number.sql",language:"sql"},{offset:216,type:"delimiter.sql",language:"sql"}]]},singleLineMultipleColumns:{query:'SELECT count(column1), column2 FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1, avg(column2) DESC LIMIT 10;',tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"predefined.sql",language:"sql"},{offset:12,type:"delimiter.parenthesis.sql",language:"sql"},{offset:13,type:"identifier.sql",language:"sql"},{offset:20,type:"delimiter.parenthesis.sql",language:"sql"},{offset:21,type:"delimiter.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"},{offset:23,type:"identifier.sql",language:"sql"},{offset:30,type:"white.sql",language:"sql"},{offset:31,type:"keyword.sql",language:"sql"},{offset:35,type:"white.sql",language:"sql"},{offset:36,type:"identifier.sql",language:"sql"},{offset:42,type:"white.sql",language:"sql"},{offset:43,type:"keyword.sql",language:"sql"},{offset:48,type:"white.sql",language:"sql"},{offset:49,type:"identifier.sql",language:"sql"},{offset:56,type:"white.sql",language:"sql"},{offset:57,type:"operator.sql",language:"sql"},{offset:58,type:"white.sql",language:"sql"},{offset:59,type:"identifier.quote.sql",language:"sql"},{offset:60,type:"identifier.sql",language:"sql"},{offset:66,type:"identifier.quote.sql",language:"sql"},{offset:67,type:"white.sql",language:"sql"},{offset:68,type:"keyword.sql",language:"sql"},{offset:73,type:"white.sql",language:"sql"},{offset:74,type:"keyword.sql",language:"sql"},{offset:76,type:"white.sql",language:"sql"},{offset:77,type:"identifier.sql",language:"sql"},{offset:84,type:"white.sql",language:"sql"},{offset:85,type:"keyword.sql",language:"sql"},{offset:90,type:"white.sql",language:"sql"},{offset:91,type:"keyword.sql",language:"sql"},{offset:93,type:"white.sql",language:"sql"},{offset:94,type:"identifier.sql",language:"sql"},{offset:101,type:"delimiter.sql",language:"sql"},{offset:102,type:"white.sql",language:"sql"},{offset:103,type:"predefined.sql",language:"sql"},{offset:106,type:"delimiter.parenthesis.sql",language:"sql"},{offset:107,type:"identifier.sql",language:"sql"},{offset:114,type:"delimiter.parenthesis.sql",language:"sql"},{offset:115,type:"white.sql",language:"sql"},{offset:116,type:"keyword.sql",language:"sql"},{offset:120,type:"white.sql",language:"sql"},{offset:121,type:"keyword.sql",language:"sql"},{offset:126,type:"white.sql",language:"sql"},{offset:127,type:"number.sql",language:"sql"},{offset:129,type:"delimiter.sql",language:"sql"}]]},multiLineMultipleColumns:{query:`SELECT count(column1), column2 FROM table1 WHERE column1 = "value1" GROUP BY column1 ORDER BY column1, avg(column2) DESC LIMIT 10;`,tokens:[[{offset:0,type:"keyword.sql",language:"sql"},{offset:6,type:"white.sql",language:"sql"},{offset:7,type:"predefined.sql",language:"sql"},{offset:12,type:"delimiter.parenthesis.sql",language:"sql"},{offset:13,type:"identifier.sql",language:"sql"},{offset:20,type:"delimiter.parenthesis.sql",language:"sql"},{offset:21,type:"delimiter.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"},{offset:23,type:"identifier.sql",language:"sql"},{offset:30,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:4,type:"white.sql",language:"sql"},{offset:5,type:"identifier.sql",language:"sql"},{offset:11,type:"white.sql",language:"sql"}],[{offset:0,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"identifier.sql",language:"sql"},{offset:13,type:"white.sql",language:"sql"},{offset:14,type:"operator.sql",language:"sql"},{offset:15,type:"white.sql",language:"sql"},{offset:16,type:"identifier.quote.sql",language:"sql"},{offset:17,type:"identifier.sql",language:"sql"},{offset:23,type:"identifier.quote.sql",language:"sql"},{offset:24,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"keyword.sql",language:"sql"},{offset:8,type:"white.sql",language:"sql"},{offset:9,type:"identifier.sql",language:"sql"},{offset:16,type:"white.sql",language:"sql"},{offset:17,type:"keyword.sql",language:"sql"},{offset:22,type:"white.sql",language:"sql"},{offset:23,type:"keyword.sql",language:"sql"},{offset:25,type:"white.sql",language:"sql"},{offset:26,type:"identifier.sql",language:"sql"},{offset:33,type:"delimiter.sql",language:"sql"},{offset:34,type:"white.sql",language:"sql"},{offset:35,type:"predefined.sql",language:"sql"},{offset:38,type:"delimiter.parenthesis.sql",language:"sql"},{offset:39,type:"identifier.sql",language:"sql"},{offset:46,type:"delimiter.parenthesis.sql",language:"sql"},{offset:47,type:"white.sql",language:"sql"},{offset:48,type:"keyword.sql",language:"sql"},{offset:52,type:"white.sql",language:"sql"}],[{offset:0,type:"keyword.sql",language:"sql"},{offset:5,type:"white.sql",language:"sql"},{offset:6,type:"number.sql",language:"sql"},{offset:8,type:"delimiter.sql",language:"sql"}]]}}),testStatementPosition:function(vt,Ve,lt){describe("".concat(vt),function(){var at,Xt;beforeEach(function(){var rt=new Map;Ve.forEach(function(Rt){return rt.set(Rt.query.query,Rt.query.tokens)}),at=function(Rt){return{editor:{tokenize:function(rn,sn){return Rt.get(rn)}},Range:{containsPosition:function(rn,sn){return sn.lineNumber>=rn.startLineNumber&&sn.lineNumber<=rn.endLineNumber&&sn.column>=rn.startColumn&&sn.column<=rn.endColumn}},languages:{CompletionItemKind:{Snippet:2,Function:1,Keyword:3},CompletionItemInsertTextRule:{InsertAsSnippet:2}}}}(rt),Xt=new S.Registry(function(){return lt().map(function(Rt){return{id:Rt.id,name:Rt.name||Rt.id,resolve:Rt.resolve}})})}),Ve.forEach(function(rt){test("".concat(rt.query.query),function(){(function(Rt,rn,sn,Jn,ze){var st,en=_(Z(Jn,(st=Rt,{getValue:function(wt,Ke){return st},getValueInRange:function(wt,Ke){return st.split(` `)[wt.startLineNumber-1].trim().slice(wt.startColumn===0?0:wt.startColumn-1,wt.endColumn-1)},getLineLength:function(wt){return st.split(` `)[wt-1].trim().length}}),rn),ze);expect(en).toContain(sn)})(rt.query.query,{lineNumber:rt.position.line,column:rt.position.column},vt,at,Xt)})})})}},Oe=function(vt){return{button:x.css({paddingLeft:vt.spacing(1.5),paddingRight:vt.spacing(1.5)})}},je=function(vt){var Ve=vt.children,lt=R(vt,["children"]),at=y.useStyles2(b.useCallback(function(Xt){return Et(Xt,lt)},[lt]));return E.createElement("div",{className:at.root},Ve)},Et=function(vt,Ve){var lt,at,Xt;return{root:x.css({display:"flex",flexDirection:(lt=Ve.direction)!==null&<!==void 0?lt:"row",flexWrap:(at=Ve.wrap)===null||at===void 0||at?"wrap":void 0,alignItems:Ve.alignItems,gap:vt.spacing((Xt=Ve.gap)!==null&&Xt!==void 0?Xt:2),flexGrow:Ve.flexGrow})}},ct=function(vt){return{root:x.css({display:"flex",flexWrap:"wrap",alignItems:"center",gap:vt.spacing(3),minHeight:vt.spacing(4)})}},ut=function(vt){var Ve=y.useStyles2(b.useCallback(function(lt){return Ne(lt,vt)},[vt]));return E.createElement("span",{className:x.cx(Ve.wrapper)})};ut.defaultProps={v:0,h:0,layout:"block"};var Ne=function(vt,Ve){var lt,at;return{wrapper:x.css([{paddingRight:vt.spacing((lt=Ve.h)!==null&<!==void 0?lt:0),paddingBottom:vt.spacing((at=Ve.v)!==null&&at!==void 0?at:0)},Ve.layout==="inline"&&{display:"inline-block"},Ve.layout==="block"&&{display:"block"}])}},mt=function(vt,Ve){return{root:x.css({minWidth:vt.spacing(Ve??0)}),label:x.css({fontSize:12,fontWeight:vt.typography.fontWeightMedium}),optional:x.css({fontStyle:"italic",color:vt.colors.text.secondary}),field:x.css({marginBottom:0}),icon:x.css({color:vt.colors.text.secondary,marginLeft:vt.spacing(1),":hover":{color:vt.colors.text.primary}})}},bt=function(vt){return{root:x.css({padding:vt.spacing(1),backgroundColor:vt.colors.background.secondary,borderRadius:vt.shape.borderRadius(1)})}},Gt=E.forwardRef(function(vt,Ve){var lt=vt.items,at=vt.renderItem,Xt=vt.onChange;return E.createElement(je,null,lt.map(function(rt,Rt){return E.createElement("div",{key:Rt},at(rt,function(rn){return function(sn,Jn){var ze=K([],N(lt),!1);ze[sn]=Jn,Xt(ze)}(Rt,rn)},function(){return rn=Rt,(sn=K([],N(lt),!1)).splice(rn,1),void Xt(sn);var rn,sn}))}),E.createElement(y.Button,{ref:Ve,onClick:function(){var rt=K(K([],N(lt),!1),[{}],!1);Xt(rt)},variant:"secondary",size:"md",icon:"plus","aria-label":"Add",type:"button"}))}),hn=function(){return{switch:x.css({display:"flex",alignItems:"center",minHeight:30})}},Yt=function(vt){var Ve=vt.children,lt=y.useStyles2(Lt);return E.createElement(y.SelectContainer,P({},vt,{className:x.cx(vt.className,lt.container)}),Ve)},Bt=function(vt){var Ve=vt.className,lt=vt.children,at=y.useStyles2(Lt);return E.createElement("div",{className:x.cx(Ve,at.valueContainer)},lt)},Lt=function(vt){return{root:x.css({display:"flex",fontSize:12,alignItems:"center"}),label:x.css({color:vt.colors.text.secondary,whiteSpace:"nowrap"}),container:x.css({background:"none",borderColor:"transparent"}),valueContainer:x.css({display:"flex",alignItems:"center",flex:"initial",color:vt.colors.text.secondary,fontSize:12})}},zt=["","base","hovered","invalid","focused"],Kt=function(){return{root:x.css({display:"flex","> *":{"&:not(:first-child)":{marginLeft:-1},"&:first-child":{borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-child":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:first-child):not(:last-child)":{borderRadius:0},position:"relative",zIndex:zt.indexOf("base"),"&:hover":{zIndex:zt.indexOf("hovered")},"&:focus-within":{zIndex:zt.indexOf("focused")}}}),invalidChild:x.css({zIndex:zt.indexOf("invalid")})}};c.AccessoryButton=function(vt){var Ve=vt.className,lt=R(vt,["className"]),at=y.useStyles2(Oe);return E.createElement(y.Button,P({},lt,{className:x.cx(Ve,at.button)}))},c.EditorField=function(vt){var Ve=vt.label,lt=vt.optional,at=vt.tooltip,Xt=vt.tooltipInteractive,rt=vt.children,Rt=vt.width,rn=R(vt,["label","optional","tooltip","tooltipInteractive","children","width"]),sn=y.useStyles2(b.useCallback(function(st){return mt(st,Rt)},[Rt])),Jn=rn?.htmlFor||(y.ReactUtils===null||y.ReactUtils===void 0?void 0:y.ReactUtils.getChildId(rt)),ze=E.createElement(E.Fragment,null,E.createElement("label",{className:sn.label,htmlFor:Jn},Ve,lt&&E.createElement("span",{className:sn.optional}," - optional"),at&&E.createElement(y.Tooltip,{placement:"top",content:at,theme:"info",interactive:Xt},E.createElement(y.Icon,{tabIndex:0,name:"info-circle",size:"sm",className:sn.icon}))),E.createElement(ut,{v:.5}));return E.createElement("div",{className:sn.root},E.createElement(y.Field,P({className:sn.field,label:ze},rn),rt))},c.EditorFieldGroup=function(vt){var Ve=vt.children;return E.createElement(je,{gap:1},Ve)},c.EditorHeader=function(vt){var Ve=vt.children,lt=y.useStyles2(ct);return E.createElement("div",{className:lt.root},Ve)},c.EditorList=Gt,c.EditorRow=function(vt){var Ve=vt.children,lt=y.useStyles2(bt);return E.createElement("div",{className:lt.root},E.createElement(je,{gap:2},Ve))},c.EditorRows=function(vt){var Ve=vt.children;return E.createElement(je,{gap:.5,direction:"column"},Ve)},c.EditorSwitch=function(vt){var Ve=hn();return E.createElement("div",{className:Ve.switch},E.createElement(y.Switch,P({},vt)))},c.FlexItem=function(vt){var Ve=vt.grow,lt=vt.shrink;return E.createElement("div",{style:{display:"block",flexGrow:Ve,flexShrink:lt}})},c.InlineSelect=function(vt){var Ve=vt.label,lt=R(vt,["label"]),at=y.useStyles2(Lt),Xt=N(b.useState(function(){return Math.random().toString(16).slice(2)}),1)[0],rt={SelectContainer:Yt,ValueContainer:Bt,SingleValue:Bt};return E.createElement("div",{className:at.root},Ve&&E.createElement("label",{className:at.label,htmlFor:Xt},Ve,":","\xA0"),E.createElement(y.Select,P({openMenuOnFocus:!0,inputId:Xt},lt,{components:rt})))},c.InputGroup=function(vt){var Ve=vt.children,lt=y.useStyles2(Kt),at=b.Children.map(Ve,function(Xt){return b.isValidElement(Xt)&&Xt.props.invalid?b.cloneElement(Xt,{className:x.cx(Xt.props.className,lt.invalidChild)}):Xt});return E.createElement("div",{className:lt.root},at)},c.LinkedToken=re,c.SQLEditor=function(vt){var Ve=vt.children,lt=vt.onBlur,at=vt.onChange,Xt=vt.query,rt=vt.language,Rt=rt===void 0?{id:"sql"}:rt,rn=vt.width,sn=vt.height,Jn=b.useRef(null),ze=b.useRef(),st=b.useMemo(function(){var wt=ue(),Ke="".concat(Rt.id,"-").concat(wt);return ze.current=Ke,Ke},[Rt.id]);b.useEffect(function(){return function(){$e.delete(ze.current),qe("Removing instance cache ".concat(ze.current),!1,$e)}},[]);var en=b.useCallback(function(){Jn.current&&Jn.current.getAction("editor.action.formatDocument").run()},[]);return E.createElement("div",{style:{width:rn}},E.createElement(y.CodeEditor,{height:sn||"240px",width:rn?"".concat(rn-2,"px"):void 0,language:st,value:Xt,onBlur:function(wt){at&&at(wt,!1),lt&<()},showMiniMap:!1,showLineNumbers:!0,onEditorDidMount:function(wt,Ke){Jn.current=wt,wt.onDidChangeModelContent(function(Ut){var on=wt.getValue();at&&at(on,!1)}),wt.addCommand(Ke.KeyMod.CtrlCmd|Ke.KeyCode.Enter,function(){var Ut=wt.getValue();at&&at(Ut,!0)}),wt.onKeyUp(function(Ut){Ut.keyCode===84&&wt.trigger(me.id,me.id,{})}),tt(Ke,Rt,st)}}),Ve&&Ve({formatQuery:en}))},c.SQLEditorTestUtils=ke,c.Space=ut,c.Stack=je,c.getStandardSQLCompletionProvider=It,c.grafanaStandardSQLLanguage=te,c.grafanaStandardSQLLanguageConf=G},88026:(C,c,t)=>{"use strict";C.exports=t(37030)},36859:(C,c,t)=>{"use strict";t.d(c,{g:()=>Ft});var i=t(27702),s=t(42844),u=t(66310),v=t(28580),l=t(48024),h=t(1128),p=t(64022),d=t(66670),f=Object.defineProperty,g=Object.defineProperties,y=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,w=(it,qt,vn)=>qt in it?f(it,qt,{enumerable:!0,configurable:!0,writable:!0,value:vn}):it[qt]=vn,x=(it,qt)=>{for(var vn in qt||(qt={}))E.call(qt,vn)&&w(it,vn,qt[vn]);if(b)for(var vn of b(qt))S.call(qt,vn)&&w(it,vn,qt[vn]);return it},P=(it,qt)=>g(it,y(qt)),R=(it,qt)=>{var vn={};for(var fn in it)E.call(it,fn)&&qt.indexOf(fn)<0&&(vn[fn]=it[fn]);if(it!=null&&b)for(var fn of b(it))qt.indexOf(fn)<0&&S.call(it,fn)&&(vn[fn]=it[fn]);return vn};const T="configured",A="Reset",I=it=>{var qt=it,{isConfigured:vn,onReset:fn}=qt,Tt=R(qt,["isConfigured","onReset"]);return i.createElement(p.Lh,null,!vn&&i.createElement(h.I,P(x({},Tt),{type:"password"})),vn&&i.createElement(h.I,P(x({},Tt),{type:"text",disabled:!0,value:T})),vn&&i.createElement(d.zx,{onClick:fn,variant:"secondary"},A))},N=()=>({inlineFieldNoMarginRight:(0,s.css)({marginRight:0}),inlineFieldWithSecret:(0,s.css)({'[class$="layoutChildrenWrapper"]:first-child':{flexGrow:1}})}),K=({user:it,passwordConfigured:qt,userTooltip:vn="The username of the data source account",passwordTooltip:fn="The password of the data source account",onUserChange:Tt,onPasswordChange:dn,onPasswordReset:mn,readOnly:Kn})=>{const Dn=N(),Vn={lastInlineField:(0,s.css)({marginBottom:0})};return i.createElement(i.Fragment,null,i.createElement(l._,{className:Dn.inlineFieldNoMarginRight,label:"User",labelWidth:24,tooltip:vn,required:!0,htmlFor:"basic-auth-user-input",interactive:!0,grow:!0,disabled:Kn},i.createElement(h.I,{id:"basic-auth-user-input",placeholder:"User",value:it,onChange:or=>Tt(or.currentTarget.value),required:!0})),i.createElement(l._,{className:(0,s.cx)(Dn.inlineFieldNoMarginRight,Dn.inlineFieldWithSecret,Vn.lastInlineField),label:"Password",labelWidth:24,tooltip:fn,required:!0,htmlFor:"basic-auth-password-input",interactive:!0,grow:!0,disabled:Kn},i.createElement(I,{id:"basic-auth-password-input",isConfigured:qt,onReset:Kn?()=>{}:mn,placeholder:"Password",onChange:or=>dn(or.currentTarget.value),required:!0})))};var _=t(78102),W=t(54211),j=Object.defineProperty,re=Object.defineProperties,X=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,L=(it,qt,vn)=>qt in it?j(it,qt,{enumerable:!0,configurable:!0,writable:!0,value:vn}):it[qt]=vn,$=(it,qt)=>{for(var vn in qt||(qt={}))J.call(qt,vn)&&L(it,vn,qt[vn]);if(Z)for(var vn of Z(qt))q.call(qt,vn)&&L(it,vn,qt[vn]);return it},k=(it,qt)=>re(it,X(qt));const F={[W.H.BasicAuth]:{label:"Basic authentication",value:W.H.BasicAuth,description:"Authenticate with your data source username and password"},[W.H.CrossSiteCredentials]:{label:"Enable cross-site access control requests",value:W.H.CrossSiteCredentials,description:"Allow cross-site Access-Control requests with your existing credentials and cookies. This enables the server to authenticate the user and perform authorized requests on their behalf on other domains."},[W.H.OAuthForward]:{label:"Forward OAuth Identity",value:W.H.OAuthForward,description:"Forward the OAuth access token (and if available: the OIDC ID token) of the user querying to the data source"},[W.H.NoAuth]:{label:"No Authentication",value:W.H.NoAuth,description:"Data source is available without authentication"}},V=({selectedMethod:it,mostCommonMethod:qt,visibleMethods:vn,customMethods:fn,onAuthMethodSelect:Tt,basicAuth:dn,readOnly:mn})=>{var Kn,Dn,Vn,or;const[Qr,ni]=(0,i.useState)(!1),{colors:yr,spacing:si}=(0,u.l4)(),Yr=(0,i.useMemo)(()=>{var Oa;return vn??[W.H.BasicAuth,W.H.OAuthForward,W.H.NoAuth,...(Oa=fn?.map(wa=>wa.id))!=null?Oa:[]]},[fn,vn]),Ci=Yr.length>1,Ni=(0,i.useMemo)(()=>{var Oa;const wa=(Oa=fn?.reduce((Qn,_r)=>(Qn[_r.id]={label:_r.label,value:_r.id,description:_r.description},Qn),{}))!=null?Oa:{},vo=$($({},wa),F);return Yr.filter(Qn=>!!vo[Qn]).map(Qn=>{const _r=vo[Qn];return Qn===qt&&Ci?k($({},_r),{label:`${_r.label} (most common)`}):_r})},[Yr,fn,qt,Ci]);let fa=it;Ci?it===W.H.NoAuth&&qt&&!Qr&&(fa=qt):fa=Yr[0];let ha=null;fa===W.H.BasicAuth&&dn?ha=i.createElement(K,k($({},dn),{readOnly:mn})):fa.startsWith("custom-")&&(ha=(Dn=(Kn=fn?.find(Oa=>Oa.id===fa))==null?void 0:Kn.component)!=null?Dn:null);const Ca=Ci?"Authentication methods":(Vn=Ni[0].label)!=null?Vn:"",li=Ci?"Choose an authentication method to access the data source":(or=Ni[0].description)!=null?or:"",la={authMethods:(0,s.css)($({marginTop:si(2.5)},Ci&&{padding:si(2),border:`1px solid ${yr.border.weak}`})),selectedMethodFields:(0,s.css)({marginTop:si(1.5)})};return i.createElement(_._,{title:Ca,description:li},i.createElement("div",{className:la.authMethods},Ci&&i.createElement(v.Ph,{options:Ni,value:fa,onChange:Oa=>{ni(!0),Tt(Oa.value)},disabled:mn}),ha&&i.createElement("div",{className:la.selectedMethodFields},ha)))};var pe=t(60105),ce=Object.defineProperty,G=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,he=(it,qt,vn)=>qt in it?ce(it,qt,{enumerable:!0,configurable:!0,writable:!0,value:vn}):it[qt]=vn,me=(it,qt)=>{for(var vn in qt||(qt={}))fe.call(qt,vn)&&he(it,vn,qt[vn]);if(ie)for(var vn of ie(qt))Se.call(qt,vn)&&he(it,vn,qt[vn]);return it},_e=(it,qt)=>G(it,te(qt)),we=(it,qt)=>{var vn={};for(var fn in it)fe.call(it,fn)&&qt.indexOf(fn)<0&&(vn[fn]=it[fn]);if(it!=null&&ie)for(var fn of ie(it))qt.indexOf(fn)<0&&Se.call(it,fn)&&(vn[fn]=it[fn]);return vn};const Ge="configured",ht="Reset",nt=it=>({configuredStyle:(0,s.css)` min-height: ${it.spacing(it.components.height.md)}; padding-top: ${it.spacing(.5)}; resize: none; `}),Re=it=>{var qt=it,{isConfigured:vn,onReset:fn}=qt,Tt=we(qt,["isConfigured","onReset"]);const dn=(0,u.wW)(nt);return i.createElement(p.Lh,null,!vn&&i.createElement(pe.K,me({},Tt)),vn&&i.createElement(pe.K,_e(me({},Tt),{rows:1,disabled:!0,value:Ge,className:(0,s.cx)(dn.configuredStyle)})),vn&&i.createElement(d.zx,{onClick:fn,variant:"secondary"},ht))};var ue=t(83967),ae=t(80011),ve=t(73453);const Me=({children:it,enabled:qt,label:vn,tooltipText:fn,onToggle:Tt,readOnly:dn})=>{const{colors:mn,spacing:Kn}=(0,u.l4)(),Dn={container:(0,s.css)({marginTop:3}),checkboxContainer:(0,s.css)({display:"flex",alignItems:"center"}),infoIcon:(0,s.css)({marginTop:-2,marginLeft:5,color:mn.text.secondary}),content:(0,s.css)({margin:Kn(1,0,2,3)})};return i.createElement("div",{className:Dn.container},i.createElement("div",{className:Dn.checkboxContainer},i.createElement(ue.X,{value:qt,label:vn,onChange:()=>Tt(!qt),disabled:dn}),i.createElement(ae.u,{placement:"top",content:fn,interactive:!0},i.createElement(ve.J,{name:"info-circle",className:Dn.infoIcon,size:"sm"}))),qt&&it&&i.createElement("div",{className:Dn.content},it))},Ye=({enabled:it,certificateConfigured:qt,onToggle:vn,onCertificateChange:fn,onCertificateReset:Tt,tooltips:dn,readOnly:mn})=>{var Kn;const Dn=N();return i.createElement(Me,{enabled:it,label:"Add self-signed certificate",tooltipText:"Add your own Certificate Authority (CA) certificate on top of one generated by the certificate authorities for additional security measures",onToggle:Vn=>vn(Vn),readOnly:mn},i.createElement(l._,{label:"CA Certificate",labelWidth:24,tooltip:(Kn=dn?.certificateLabel)!=null?Kn:"Your self-signed certificate",required:!0,htmlFor:"self-signed-certificate-input",interactive:!0,grow:!0,className:(0,s.cx)(Dn.inlineFieldNoMarginRight,Dn.inlineFieldWithSecret),disabled:mn},i.createElement(Re,{id:"self-signed-certificate-input",isConfigured:qt,onChange:Vn=>fn(Vn.currentTarget.value),onReset:mn?()=>{}:Tt,placeholder:"Begins with --- BEGIN CERTIFICATE ---",rows:6,required:!0})))},qe=({enabled:it,serverName:qt,clientCertificateConfigured:vn,clientKeyConfigured:fn,onToggle:Tt,onServerNameChange:dn,onClientCertificateChange:mn,onClientKeyChange:Kn,onClientCertificateReset:Dn,onClientKeyReset:Vn,tooltips:or,readOnly:Qr})=>{var ni,yr,si;const Yr=N();return i.createElement(Me,{enabled:it,label:"TLS Client Authentication",tooltipText:"Validate using TLS client authentication, in which the server authenticates the client",onToggle:Ci=>Tt(Ci),readOnly:Qr},i.createElement(l._,{label:"ServerName",labelWidth:24,tooltip:(ni=or?.serverNameLabel)!=null?ni:"A Servername is used to verify the hostname on the returned certificate",required:!0,htmlFor:"client-auth-servername-input",interactive:!0,grow:!0,className:Yr.inlineFieldNoMarginRight,disabled:Qr},i.createElement(h.I,{id:"client-auth-servername-input",placeholder:"domain.example.com",value:qt,onChange:Ci=>dn(Ci.currentTarget.value),required:!0})),i.createElement(l._,{label:"Client Certificate",labelWidth:24,tooltip:(yr=or?.certificateLabel)!=null?yr:"The client certificate can be generated from a Certificate Authority or be self-signed",required:!0,htmlFor:"client-auth-client-certificate-input",interactive:!0,grow:!0,className:(0,s.cx)(Yr.inlineFieldNoMarginRight,Yr.inlineFieldWithSecret),disabled:Qr},i.createElement(Re,{id:"client-auth-client-certificate-input",isConfigured:vn,onChange:Ci=>mn(Ci.currentTarget.value),onReset:Qr?()=>{}:Dn,placeholder:"Begins with --- BEGIN CERTIFICATE ---",rows:6,required:!0})),i.createElement(l._,{label:"Client Key",labelWidth:24,tooltip:(si=or?.keyLabel)!=null?si:"The client key can be generated from a Certificate Authority or be self-signed",required:!0,htmlFor:"client-auth-client-key-input",interactive:!0,grow:!0,className:(0,s.cx)(Yr.inlineFieldNoMarginRight,Yr.inlineFieldWithSecret),disabled:Qr},i.createElement(Re,{id:"client-auth-client-key-input",isConfigured:fn,onChange:Ci=>Kn(Ci.currentTarget.value),onReset:Qr?()=>{}:Vn,placeholder:"Begins with --- RSA PRIVATE KEY CERTIFICATE ---",rows:6,required:!0})))},At=({enabled:it,onToggle:qt,readOnly:vn})=>i.createElement(Me,{enabled:it,label:"Skip TLS certificate validation",tooltipText:"Skipping TLS certificate validation is not recommended unless absolutely necessary or for testing",onToggle:fn=>qt(fn),readOnly:vn});var It=Object.defineProperty,Ce=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Oe=(it,qt,vn)=>qt in it?It(it,qt,{enumerable:!0,configurable:!0,writable:!0,value:vn}):it[qt]=vn,je=(it,qt)=>{for(var vn in qt||(qt={}))tt.call(qt,vn)&&Oe(it,vn,qt[vn]);if($e)for(var vn of $e(qt))ke.call(qt,vn)&&Oe(it,vn,qt[vn]);return it},Et=(it,qt)=>Ce(it,Ae(qt));const ct=({selfSignedCertificate:it,TLSClientAuth:qt,skipTLSVerification:vn,readOnly:fn})=>{const{spacing:Tt}=(0,u.l4)(),dn={container:(0,s.css)({marginTop:Tt(3)})};return i.createElement(_._,{className:dn.container,title:"TLS settings",description:"Additional security measures that can be applied on top of authentication"},i.createElement(Ye,Et(je({},it),{readOnly:fn})),i.createElement(qe,Et(je({},qt),{readOnly:fn})),i.createElement(At,Et(je({},vn),{readOnly:fn})))};var ut=t(71107),Ne=t(67437),mt=Object.defineProperty,bt=Object.defineProperties,Gt=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Lt=(it,qt,vn)=>qt in it?mt(it,qt,{enumerable:!0,configurable:!0,writable:!0,value:vn}):it[qt]=vn,zt=(it,qt)=>{for(var vn in qt||(qt={}))Yt.call(qt,vn)&&Lt(it,vn,qt[vn]);if(hn)for(var vn of hn(qt))Bt.call(qt,vn)&&Lt(it,vn,qt[vn]);return it},Kt=(it,qt)=>bt(it,Gt(qt));const vt=({header:it,onChange:qt,onBlur:vn,onDelete:fn,readOnly:Tt})=>{const{spacing:dn}=(0,u.l4)(),mn=N(),Kn={container:(0,s.css)({alignItems:"center"}),input:(0,s.css)({minWidth:"100%"}),headerNameField:(0,s.css)({width:"40%",marginRight:0,paddingRight:dn(1)}),headerValueField:(0,s.css)({width:"45%",marginRight:0}),removeHeaderBtn:(0,s.css)({margin:"0 0 3px 10px"})};return i.createElement(i.Fragment,null,i.createElement(ut.Z,{className:Kn.container},i.createElement(l._,{label:"Header",labelWidth:9,grow:!0,className:Kn.headerNameField,htmlFor:`custom-header-${it.id}-name-input`,disabled:Tt},i.createElement(h.I,{id:`custom-header-${it.id}-name-input`,placeholder:"X-Custom-Header",value:it.name,width:12,onChange:Dn=>qt(Kt(zt({},it),{name:Dn.currentTarget.value})),onBlur:vn,className:Kn.input})),i.createElement(l._,{label:"Value",labelWidth:9,grow:!0,className:(0,s.cx)(mn.inlineFieldWithSecret,Kn.headerValueField),htmlFor:`custom-header-${it.id}-value-input`,disabled:Tt},i.createElement(I,{id:`custom-header-${it.id}-value-input`,isConfigured:it.configured,placeholder:"Header value",value:it.value,width:12,onChange:Dn=>qt(Kt(zt({},it),{value:Dn.currentTarget.value})),onReset:Tt?()=>{}:()=>qt(Kt(zt({},it),{configured:!1,value:""})),onBlur:vn,className:Kn.input})),i.createElement(Ne.h,{name:"trash-alt",tooltip:"Remove header",tooltipPlacement:"top",className:Kn.removeHeaderBtn,onClick:fn,type:"button",disabled:Tt})))};var Ve=Object.defineProperty,lt=Object.defineProperties,at=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,rn=(it,qt,vn)=>qt in it?Ve(it,qt,{enumerable:!0,configurable:!0,writable:!0,value:vn}):it[qt]=vn,sn=(it,qt)=>{for(var vn in qt||(qt={}))rt.call(qt,vn)&&rn(it,vn,qt[vn]);if(Xt)for(var vn of Xt(qt))Rt.call(qt,vn)&&rn(it,vn,qt[vn]);return it},Jn=(it,qt)=>lt(it,at(qt));const ze=({headers:it,onChange:qt,readOnly:vn})=>{const{spacing:fn}=(0,u.l4)(),[Tt,dn]=(0,i.useState)(it.map(Qr=>Jn(sn({},Qr),{id:st(),value:""})));(0,i.useEffect)(()=>{dn(Qr=>{let ni=!1;const yr=Qr.map(si=>{var Yr;const Ci=(Yr=it.find(Ni=>Ni.name===si.name))==null?void 0:Yr.configured;return typeof Ci<"u"&&si.configured!==Ci?(ni=!0,Jn(sn({},si),{configured:Ci})):si});return ni?yr:Qr})},[it]);const mn=()=>{dn([...Tt,{id:st(),name:"",value:"",configured:!1}])},Kn=(Qr,ni)=>{dn(Tt.map(yr=>yr.id===Qr?sn({},ni):yr))},Dn=Qr=>{const ni=Tt.findIndex(si=>si.id===Qr);if(ni===-1)return;const yr=[...Tt];yr.splice(ni,1),dn(yr),qt(yr.map(({name:si,value:Yr,configured:Ci})=>({name:si,value:Yr,configured:Ci})))},Vn=()=>{qt(Tt.map(({name:Qr,value:ni,configured:yr})=>({name:Qr,value:ni,configured:yr})))},or={container:(0,s.css)({marginTop:fn(3)}),addHeaderButton:(0,s.css)({marginTop:fn(1.5)})};return i.createElement("div",{className:or.container},i.createElement(_._,{title:"HTTP headers",description:"Pass along additional context and metadata about the request/response",isCollapsible:!0,isInitiallyOpen:Tt.length>0},i.createElement("div",null,Tt.map(Qr=>i.createElement(vt,{key:Qr.id,header:Qr,onChange:ni=>Kn(ni.id,ni),onDelete:()=>Dn(Qr.id),onBlur:Vn,readOnly:vn}))),i.createElement("div",{className:or.addHeaderButton},i.createElement(d.zx,{icon:"plus",variant:"secondary",fill:"outline",onClick:mn,disabled:vn},Tt.length===0?"Add header":"Add another header"))))};function st(){return Math.random().toString(16).slice(2)}var en=t(19010),wt=Object.defineProperty,Ke=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,on=Object.getOwnPropertySymbols,Tn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,Zt=(it,qt,vn)=>qt in it?wt(it,qt,{enumerable:!0,configurable:!0,writable:!0,value:vn}):it[qt]=vn,ot=(it,qt)=>{for(var vn in qt||(qt={}))Tn.call(qt,vn)&&Zt(it,vn,qt[vn]);if(on)for(var vn of on(qt))An.call(qt,vn)&&Zt(it,vn,qt[vn]);return it},We=(it,qt)=>Ke(it,Ut(qt));const Ft=({selectedMethod:it,mostCommonMethod:qt,visibleMethods:vn,customMethods:fn,onAuthMethodSelect:Tt,basicAuth:dn,TLS:mn,customHeaders:Kn,readOnly:Dn=!1})=>{const Vn={container:(0,s.css)({maxWidth:578})};return i.createElement("div",{className:Vn.container},i.createElement(en.K,{title:"Authentication"},i.createElement(V,{selectedMethod:it,mostCommonMethod:qt,customMethods:fn,visibleMethods:vn,onAuthMethodSelect:Tt,basicAuth:dn,readOnly:Dn}),mn&&i.createElement(ct,We(ot({},mn),{readOnly:Dn})),Kn&&i.createElement(ze,We(ot({},Kn),{readOnly:Dn}))))}},54211:(C,c,t)=>{"use strict";t.d(c,{H:()=>i});var i=(s=>(s.NoAuth="NoAuth",s.BasicAuth="BasicAuth",s.OAuthForward="OAuthForward",s.CrossSiteCredentials="CrossSiteCredentials",s))(i||{})},83320:(C,c,t)=>{"use strict";t.d(c,{T2:()=>E});var i=t(54211),s=Object.defineProperty,u=Object.defineProperties,v=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,d=(T,A,I)=>A in T?s(T,A,{enumerable:!0,configurable:!0,writable:!0,value:I}):T[A]=I,f=(T,A)=>{for(var I in A||(A={}))h.call(A,I)&&d(T,I,A[I]);if(l)for(var I of l(A))p.call(A,I)&&d(T,I,A[I]);return T},g=(T,A)=>u(T,v(A));const y="httpHeaderName",b="httpHeaderValue";function E({config:T,onChange:A}){return{selectedMethod:S(T),onAuthMethodSelect:w(T,A),basicAuth:x(T,A),TLS:P(T,A),customHeaders:R(T,A),readOnly:T.readOnly}}function S(T){return T.basicAuth?i.H.BasicAuth:T.withCredentials?i.H.CrossSiteCredentials:T.jsonData.oauthPassThru?i.H.OAuthForward:i.H.NoAuth}function w(T,A){return I=>{A(g(f({},T),{basicAuth:I===i.H.BasicAuth,withCredentials:I===i.H.CrossSiteCredentials,jsonData:g(f({},T.jsonData),{oauthPassThru:I===i.H.OAuthForward})}))}}function x(T,A){return{user:T.basicAuthUser,passwordConfigured:T.secureJsonFields.basicAuthPassword,onUserChange:I=>A(g(f({},T),{basicAuthUser:I})),onPasswordChange:I=>A(g(f({},T),{secureJsonData:g(f({},T.secureJsonData),{basicAuthPassword:I})})),onPasswordReset:()=>A(g(f({},T),{secureJsonData:g(f({},T.secureJsonData),{basicAuthPassword:""}),secureJsonFields:g(f({},T.secureJsonFields),{basicAuthPassword:!1})}))}}function P(T,A){return{selfSignedCertificate:{enabled:!!T.jsonData.tlsAuthWithCACert,certificateConfigured:T.secureJsonFields.tlsCACert,onToggle:I=>A(g(f({},T),{jsonData:g(f({},T.jsonData),{tlsAuthWithCACert:I})})),onCertificateChange:I=>A(g(f({},T),{secureJsonData:g(f({},T.secureJsonData),{tlsCACert:I})})),onCertificateReset:()=>A(g(f({},T),{secureJsonData:g(f({},T.secureJsonData),{tlsCACert:""}),secureJsonFields:g(f({},T.secureJsonFields),{tlsCACert:!1})}))},TLSClientAuth:{enabled:T.jsonData.tlsAuth,serverName:T.jsonData.serverName,clientCertificateConfigured:T.secureJsonFields.tlsClientCert,clientKeyConfigured:T.secureJsonFields.tlsClientKey,onToggle:I=>A(g(f({},T),{jsonData:g(f({},T.jsonData),{tlsAuth:I})})),onServerNameChange:I=>A(g(f({},T),{jsonData:g(f({},T.jsonData),{serverName:I})})),onClientCertificateChange:I=>A(g(f({},T),{secureJsonData:g(f({},T.secureJsonData),{tlsClientCert:I})})),onClientCertificateReset:()=>A(g(f({},T),{secureJsonData:g(f({},T.secureJsonData),{tlsClientCert:""}),secureJsonFields:g(f({},T.secureJsonFields),{tlsClientCert:!1})})),onClientKeyChange:I=>A(g(f({},T),{secureJsonData:g(f({},T.secureJsonData),{tlsClientKey:I})})),onClientKeyReset:()=>A(g(f({},T),{secureJsonData:g(f({},T.secureJsonData),{tlsClientKey:""}),secureJsonFields:g(f({},T.secureJsonFields),{tlsClientKey:!1})}))},skipTLSVerification:{enabled:T.jsonData.tlsSkipVerify,onToggle:I=>A(g(f({},T),{jsonData:g(f({},T.jsonData),{tlsSkipVerify:I})}))}}}function R(T,A){return{headers:Object.keys(T.jsonData).filter(N=>N.startsWith(y)).sort().map(N=>{var K;const _=N.slice(y.length);return{name:T.jsonData[N],configured:(K=T.secureJsonFields[`${b}${_}`])!=null?K:!1}}),onChange:N=>{const K=Object.fromEntries(Object.entries(T.jsonData).filter(([j])=>!j.startsWith(y))),_=Object.fromEntries(Object.entries(T.secureJsonData||{}).filter(([j])=>!j.startsWith(b))),W=Object.fromEntries(Object.entries(T.secureJsonFields).filter(([j])=>!j.startsWith(b)));N.forEach((j,re)=>{K[`${y}${re+1}`]=j.name,j.configured?W[`${b}${re+1}`]=!0:_[`${b}${re+1}`]=j.value}),A(g(f({},T),{jsonData:K,secureJsonData:_,secureJsonFields:W}))}}}},19010:(C,c,t)=>{"use strict";t.d(c,{K:()=>E});var i=t(27702),s=t(18306),u=Object.defineProperty,v=Object.defineProperties,l=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=(S,w,x)=>w in S?u(S,w,{enumerable:!0,configurable:!0,writable:!0,value:x}):S[w]=x,g=(S,w)=>{for(var x in w||(w={}))p.call(w,x)&&f(S,x,w[x]);if(h)for(var x of h(w))d.call(w,x)&&f(S,x,w[x]);return S},y=(S,w)=>v(S,l(w)),b=(S,w)=>{var x={};for(var P in S)p.call(S,P)&&w.indexOf(P)<0&&(x[P]=S[P]);if(S!=null&&h)for(var P of h(S))w.indexOf(P)<0&&d.call(S,P)&&(x[P]=S[P]);return x};const E=S=>{var w=S,{children:x}=w,P=b(w,["children"]);return i.createElement(s.R,y(g({},P),{kind:"section"}),x)}},78102:(C,c,t)=>{"use strict";t.d(c,{_:()=>E});var i=t(27702),s=t(18306),u=Object.defineProperty,v=Object.defineProperties,l=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=(S,w,x)=>w in S?u(S,w,{enumerable:!0,configurable:!0,writable:!0,value:x}):S[w]=x,g=(S,w)=>{for(var x in w||(w={}))p.call(w,x)&&f(S,x,w[x]);if(h)for(var x of h(w))d.call(w,x)&&f(S,x,w[x]);return S},y=(S,w)=>v(S,l(w)),b=(S,w)=>{var x={};for(var P in S)p.call(S,P)&&w.indexOf(P)<0&&(x[P]=S[P]);if(S!=null&&h)for(var P of h(S))w.indexOf(P)<0&&d.call(S,P)&&(x[P]=S[P]);return x};const E=S=>{var w=S,{children:x}=w,P=b(w,["children"]);return i.createElement(s.R,y(g({},P),{kind:"sub-section"}),x)}},18306:(C,c,t)=>{"use strict";t.d(c,{R:()=>S});var i=t(27702),s=t(42844),u=t(66310),v=t(67437),l=Object.defineProperty,h=Object.defineProperties,p=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,y=(w,x,P)=>x in w?l(w,x,{enumerable:!0,configurable:!0,writable:!0,value:P}):w[x]=P,b=(w,x)=>{for(var P in x||(x={}))f.call(x,P)&&y(w,P,x[P]);if(d)for(var P of d(x))g.call(x,P)&&y(w,P,x[P]);return w},E=(w,x)=>h(w,p(x));const S=({children:w,title:x,description:P,isCollapsible:R=!1,isInitiallyOpen:T=!0,kind:A="section",className:I})=>{const{colors:N,typography:K,spacing:_}=(0,u.l4)(),[W,j]=(0,i.useState)(R?T:!0),re=W?"angle-up":"angle-down",X=A==="sub-section",Z=`${W?"Collapse":"Expand"} section ${x}`,J={header:(0,s.css)({display:"flex",justifyContent:"space-between",alignItems:"center"}),title:(0,s.css)({margin:0}),subtitle:(0,s.css)({margin:0,fontWeight:K.fontWeightRegular}),descriptionText:(0,s.css)(E(b({marginTop:_(X?.25:.5),marginBottom:0},K.bodySmall),{color:N.text.secondary})),content:(0,s.css)({marginTop:_(2)})};return i.createElement("div",{className:I},i.createElement("div",{className:J.header},A==="section"?i.createElement("h3",{className:J.title},x):i.createElement("h6",{className:J.subtitle},x),R&&i.createElement(v.h,{name:re,onClick:()=>j(!W),type:"button",size:"xl","aria-label":Z})),P&&i.createElement("p",{className:J.descriptionText},P),W&&i.createElement("div",{className:J.content},w))}},9058:(C,c,t)=>{"use strict";t.d(c,{f:()=>w});var i=t(27702),s=t(42844),u=t(48024),v=t(1128),l=t(19010),h=Object.defineProperty,p=Object.defineProperties,d=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,b=(x,P,R)=>P in x?h(x,P,{enumerable:!0,configurable:!0,writable:!0,value:R}):x[P]=R,E=(x,P)=>{for(var R in P||(P={}))g.call(P,R)&&b(x,R,P[R]);if(f)for(var R of f(P))y.call(P,R)&&b(x,R,P[R]);return x},S=(x,P)=>p(x,d(P));const w=({config:x,onChange:P,description:R,urlPlaceholder:T,urlTooltip:A,urlLabel:I,className:N})=>{const K=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/.test(x.url),_={container:(0,s.css)({maxWidth:578})};return i.createElement(i.Fragment,null,i.createElement(l.K,{title:"Connection",description:R,className:(0,s.cx)(_.container,N)},i.createElement(u._,{htmlFor:"connection-url",label:I||"URL",labelWidth:24,tooltip:A||i.createElement(i.Fragment,null,"Specify a complete HTTP URL",i.createElement("br",null),"(for example https://example.com:8080)"),grow:!0,disabled:x.readOnly,required:!0,invalid:!K&&!x.readOnly,error:K?"":"Please enter a valid URL",interactive:!0},i.createElement(v.I,{id:"connection-url","aria-label":"Data source connection URL",onChange:W=>P(S(E({},x),{url:W.currentTarget.value})),value:x.url||"",placeholder:T||"URL"}))))}},77195:(C,c,t)=>{"use strict";t.d(c,{j:()=>E});var i=t(27702),s=t(42844),u=t(66310),v=Object.defineProperty,l=Object.defineProperties,h=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,g=(S,w,x)=>w in S?v(S,w,{enumerable:!0,configurable:!0,writable:!0,value:x}):S[w]=x,y=(S,w)=>{for(var x in w||(w={}))d.call(w,x)&&g(S,x,w[x]);if(p)for(var x of p(w))f.call(w,x)&&g(S,x,w[x]);return S},b=(S,w)=>l(S,h(w));const E=({dataSourceName:S,docsLink:w,hasRequiredFields:x=!0,className:P})=>{const R=(0,u.l4)(),T={container:(0,s.css)({p:{margin:0},"p + p":{marginTop:R.spacing(2)}}),text:(0,s.css)(b(y({},R.typography.body),{color:R.colors.text.secondary,a:(0,s.css)({color:R.colors.text.link,textDecoration:"underline","&:hover":{textDecoration:"none"}})}))};return i.createElement("div",{className:(0,s.cx)(T.container,P)},i.createElement("p",{className:T.text},"Before you can use the ",S," data source, you must configure it below or in the config file. For detailed instructions,"," ",i.createElement("a",{href:w,target:"_blank",rel:"noreferrer"},"view the documentation"),"."),x&&i.createElement("p",{className:T.text},i.createElement("i",null,"Fields marked in * are required")))}},76715:(C,c,t)=>{"use strict";t.d(c,{_:()=>w});var i=t(42844),s=t(66310),u=t(66670),v=t(27702),l=Object.defineProperty,h=Object.defineProperties,p=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,y=(P,R,T)=>R in P?l(P,R,{enumerable:!0,configurable:!0,writable:!0,value:T}):P[R]=T,b=(P,R)=>{for(var T in R||(R={}))f.call(R,T)&&y(P,T,R[T]);if(d)for(var T of d(R))g.call(R,T)&&y(P,T,R[T]);return P},E=(P,R)=>h(P,p(R)),S=(P,R)=>{var T={};for(var A in P)f.call(P,A)&&R.indexOf(A)<0&&(T[A]=P[A]);if(P!=null&&d)for(var A of d(P))R.indexOf(A)<0&&g.call(P,A)&&(T[A]=P[A]);return T};const w=P=>{var R=P,{className:T}=R,A=S(R,["className"]);const I=(0,s.wW)(x);return v.createElement(u.zx,E(b({},A),{className:(0,i.cx)(T,I.button)}))},x=P=>({button:(0,i.css)({paddingLeft:P.spacing(3/2),paddingRight:P.spacing(3/2)})})},81924:(C,c,t)=>{"use strict";t.d(c,{S:()=>x});var i=t(42844),s=t(27702),u=t(60426),v=t(66310),l=t(66258),h=t(80011),p=t(73453),d=t(22209),f=Object.defineProperty,g=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,E=(R,T,A)=>T in R?f(R,T,{enumerable:!0,configurable:!0,writable:!0,value:A}):R[T]=A,S=(R,T)=>{for(var A in T||(T={}))y.call(T,A)&&E(R,A,T[A]);if(g)for(var A of g(T))b.call(T,A)&&E(R,A,T[A]);return R},w=(R,T)=>{var A={};for(var I in R)y.call(R,I)&&T.indexOf(I)<0&&(A[I]=R[I]);if(R!=null&&g)for(var I of g(R))T.indexOf(I)<0&&b.call(R,I)&&(A[I]=R[I]);return A};const x=R=>{var T;const A=R,{label:I,optional:N,tooltip:K,tooltipInteractive:_,children:W,width:j}=A,re=w(A,["label","optional","tooltip","tooltipInteractive","children","width"]),X=(0,v.wW)((0,s.useCallback)(q=>P(q,j),[j])),Z=re?.htmlFor||((T=l)==null?void 0:T.getChildId(W)),J=s.createElement(s.Fragment,null,s.createElement("label",{className:X.label,htmlFor:Z},I,N&&s.createElement("span",{className:X.optional}," - optional"),K&&s.createElement(h.u,{placement:"top",content:K,theme:"info",interactive:_},s.createElement(p.J,{tabIndex:0,name:"info-circle",size:"sm",className:X.icon}))),s.createElement(u.T,{v:.5}));return s.createElement("div",{className:X.root},s.createElement(d.g,S({className:X.field,label:J},re),W))},P=(R,T)=>({root:(0,i.css)({minWidth:R.spacing(T??0)}),label:(0,i.css)({fontSize:12,fontWeight:R.typography.fontWeightMedium}),optional:(0,i.css)({fontStyle:"italic",color:R.colors.text.secondary}),field:(0,i.css)({marginBottom:0}),icon:(0,i.css)({color:R.colors.text.secondary,marginLeft:R.spacing(1),":hover":{color:R.colors.text.primary}})})},2906:(C,c,t)=>{"use strict";t.d(c,{s:()=>u});var i=t(27702),s=t(23852);const u=({children:v})=>i.createElement(s.K,{gap:1},v)},38162:(C,c,t)=>{"use strict";t.d(c,{k:()=>v});var i=t(66670),s=t(27702),u=t(23852);const v=s.forwardRef(function({items:h,renderItem:p,onChange:d},f){const g=()=>{const E=[...h,{}];d(E)},y=(E,S)=>{const w=[...h];w[E]=S,d(w)},b=E=>{const S=[...h];S.splice(E,1),d(S)};return s.createElement(u.K,null,h.map((E,S)=>s.createElement("div",{key:S},p(E,w=>y(S,w),()=>b(S)))),s.createElement(i.zx,{ref:f,onClick:g,variant:"secondary",size:"md",icon:"plus","aria-label":"Add",type:"button"}))})},57942:(C,c,t)=>{"use strict";t.d(c,{p:()=>l});var i=t(42844),s=t(27702),u=t(23852),v=t(66310);const l=({children:p})=>{const d=(0,v.wW)(h);return s.createElement("div",{className:d.root},s.createElement(u.K,{gap:2},p))},h=p=>({root:(0,i.css)({padding:p.spacing(1),backgroundColor:p.colors.background.secondary,borderRadius:p.shape.borderRadius(1)})})},83788:(C,c,t)=>{"use strict";t.d(c,{_:()=>u});var i=t(27702),s=t(23852);const u=({children:v})=>i.createElement(s.K,{gap:.5,direction:"column"},v)},63201:(C,c,t)=>{"use strict";t.d(c,{r:()=>g});var i=t(42844),s=t(42074),u=t(27702),v=Object.defineProperty,l=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,d=(b,E,S)=>E in b?v(b,E,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[E]=S,f=(b,E)=>{for(var S in E||(E={}))h.call(E,S)&&d(b,S,E[S]);if(l)for(var S of l(E))p.call(E,S)&&d(b,S,E[S]);return b};const g=b=>{const E=y();return u.createElement("div",{className:E.switch},u.createElement(s.r,f({},b)))},y=()=>({switch:(0,i.css)({display:"flex",alignItems:"center",minHeight:30})})},70774:(C,c,t)=>{"use strict";t.d(c,{B:()=>v});var i=t(42844),s=t(66310),u=t(27702);const v=({children:p})=>{const d=(0,s.wW)(h),f=u.Children.map(p,g=>(0,u.isValidElement)(g)&&g.props.invalid?(0,u.cloneElement)(g,{className:(0,i.cx)(g.props.className,d.invalidChild)}):g);return u.createElement("div",{className:d.root},f)},l=["","base","hovered","invalid","focused"],h=()=>({root:(0,i.css)({display:"flex","> *":{"&:not(:first-child)":{marginLeft:-1},"&:first-child":{borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-child":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:first-child):not(:last-child)":{borderRadius:0},position:"relative",zIndex:l.indexOf("base"),"&:hover":{zIndex:l.indexOf("hovered")},"&:focus-within":{zIndex:l.indexOf("focused")}}}),invalidChild:(0,i.css)({zIndex:l.indexOf("invalid")})})},60426:(C,c,t)=>{"use strict";t.d(c,{T:()=>v});var i=t(42844),s=t(27702),u=t(66310);const v=h=>{const p=(0,u.wW)((0,s.useCallback)(d=>l(d,h),[h]));return s.createElement("span",{className:(0,i.cx)(p.wrapper)})};v.defaultProps={v:0,h:0,layout:"block"};const l=(h,p)=>{var d,f;return{wrapper:(0,i.css)([{paddingRight:h.spacing((d=p.h)!=null?d:0),paddingBottom:h.spacing((f=p.v)!=null?f:0)},p.layout==="inline"&&{display:"inline-block"},p.layout==="block"&&{display:"block"}])}}},23852:(C,c,t)=>{"use strict";t.d(c,{K:()=>d});var i=t(42844),s=t(27702),u=t(66310),v=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,p=(g,y)=>{var b={};for(var E in g)l.call(g,E)&&y.indexOf(E)<0&&(b[E]=g[E]);if(g!=null&&v)for(var E of v(g))y.indexOf(E)<0&&h.call(g,E)&&(b[E]=g[E]);return b};const d=g=>{var y=g,{children:b}=y,E=p(y,["children"]);const S=(0,u.wW)((0,s.useCallback)(w=>f(w,E),[E]));return s.createElement("div",{className:S.root},b)},f=(g,y)=>{var b,E,S;return{root:(0,i.css)({display:"flex",flexDirection:(b=y.direction)!=null?b:"row",flexWrap:(E=y.wrap)==null||E?"wrap":void 0,alignItems:y.alignItems,gap:g.spacing((S=y.gap)!=null?S:2),flexGrow:y.flexGrow})}}},80734:(C,c,t)=>{"use strict";t.d(c,{M6:()=>_a,eO:()=>Io,l3:()=>Us,U4:()=>Sr,Gb:()=>sc,wX:()=>Vu,$1:()=>Fo,mt:()=>ld,yH:()=>Pf,$M:()=>Sf,S$:()=>cf,o$:()=>bc,Yt:()=>Gt,bM:()=>ei,fy:()=>Mf,QY:()=>yf,bO:()=>vs,Qh:()=>Cs,I_:()=>Dt,wx:()=>Oe,QI:()=>q,oU:()=>zt,uq:()=>us,vf:()=>Bc,n7:()=>jl,gg:()=>rt,hT:()=>ur,gU:()=>ri,Dm:()=>xn,dn:()=>Uo,Z:()=>kl,e0:()=>$l,Vl:()=>vn,oo:()=>Er,ep:()=>wr});var i=t(27702),s=t(7662),u=t(78968),v=t(26129),l=Object.defineProperty,h=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=(Ze,ge,et)=>ge in Ze?l(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,g=(Ze,ge)=>{for(var et in ge||(ge={}))p.call(ge,et)&&f(Ze,et,ge[et]);if(h)for(var et of h(ge))d.call(ge,et)&&f(Ze,et,ge[et]);return Ze};function y(){const Ze=(0,s.TH)();return(0,v.Ox)(Ze.search||"")}function b(Ze,ge){const et=g({},v.E1.getSearchObject());if(ge)for(const Ln of Object.keys(et))ge.includes(Ln)||delete et[Ln];return u.Cj.renderUrl(Ze,et)}function E(Ze,ge){return i.createElement(Ze.Component,{model:Ze,routeProps:ge})}var S=t(97073),w=Object.defineProperty,x=Object.defineProperties,P=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,I=(Ze,ge,et)=>ge in Ze?w(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,N=(Ze,ge)=>{for(var et in ge||(ge={}))T.call(ge,et)&&I(Ze,et,ge[et]);if(R)for(var et of R(ge))A.call(ge,et)&&I(Ze,et,ge[et]);return Ze},K=(Ze,ge)=>x(Ze,P(ge));const _=new Map;function W({pluginId:Ze,plugin:ge}){if(_.has(Ze))throw new Error(`A runtime panel plugin with id ${Ze} has already been registered`);ge.meta=K(N({},ge.meta),{id:Ze,name:Ze,module:"runtime plugin",baseUrl:"runtime plugin",info:{author:{name:"Runtime plugin "+Ze},description:"",links:[],logos:{large:"",small:""},screenshots:[],updated:"",version:""}}),_.set(Ze,ge)}function j(Ze){var ge;const{getPanelPluginFromCache:et}=(0,S.bP)();return(ge=et(Ze))!=null?ge:_.get(Ze)}class re extends null{constructor(ge,et){super({name:"RuntimeDataSource-"+ge,uid:et,type:ge,id:1,readOnly:!0,jsonData:{},access:"direct",meta:{id:ge,name:"RuntimeDataSource-"+ge,type:PluginType.datasource,info:{author:{name:""},description:"",links:[],logos:{large:"",small:""},screenshots:[],updated:"",version:""},module:"",baseUrl:""}})}testDatasource(){return Promise.resolve({})}}const X=new Map;function Z({dataSource:Ze}){if(X.has(Ze.uid))throw new Error(`A runtime data source with uid ${Ze.uid} has already been registered`);X.set(Ze.uid,Ze)}var J=t(96509);class q extends J.R{}q.type="scene-object-state-change";function L(Ze,ge){const et=ge.state.$variables;if(!et)return ge.parent?L(Ze,ge.parent):null;const Ln=et.getByName(Ze);return Ln||(ge.parent?L(Ze,ge.parent):null)}var $=t(8508),k=t(66805),F=t(19973),V=t(66117),pe=t(62435),ce=Object.defineProperty,G=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,he=(Ze,ge,et)=>ge in Ze?ce(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,me=(Ze,ge)=>{for(var et in ge||(ge={}))fe.call(ge,et)&&he(Ze,et,ge[et]);if(ie)for(var et of ie(ge))Se.call(ge,et)&&he(Ze,et,ge[et]);return Ze},_e=(Ze,ge)=>G(Ze,te(ge)),we=(Ze,ge)=>{var et={};for(var Ln in Ze)fe.call(Ze,Ln)&&ge.indexOf(Ln)<0&&(et[Ln]=Ze[Ln]);if(Ze!=null&&ie)for(var Ln of ie(Ze))ge.indexOf(Ln)<0&&Se.call(Ze,Ln)&&(et[Ln]=Ze[Ln]);return et};function Ge(Ze){var ge=Ze,{model:et}=ge,Ln=we(ge,["model"]),zr;const Ji=(zr=et.constructor.Component)!=null?zr:nt,[Ja,lo]=i.useState(!1);return(0,i.useEffect)(()=>(lo(!0),et.activate()),[et]),Ja?i.createElement(Ji,_e(me({},Ln),{model:et})):null}const ht=i.memo(Ge);function nt(Ze){return null}var Re=Object.defineProperty,ue=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Me=(Ze,ge,et)=>ge in Ze?Re(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Ye=(Ze,ge)=>{for(var et in ge||(ge={}))ae.call(ge,et)&&Me(Ze,et,ge[et]);if(ue)for(var et of ue(ge))ve.call(ge,et)&&Me(Ze,et,ge[et]);return Ze};function qe(Ze,ge){const et=Ye({},Ze.state);for(const Ln in et){const zr=et[Ln];if(zr instanceof Oe&&(et[Ln]=zr.clone()),Array.isArray(zr)){const Ji=[];for(const Ja of zr)Ja instanceof Oe?Ji.push(Ja.clone()):Ji.push(Ja);et[Ln]=Ji}}return Object.assign(et,ge),new Ze.constructor(et)}function At(Ze,ge){let et=Ze,Ln;for(;et&&!Ln;)Ln=ge(et),et=et.parent;return Ln}var It=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,tt=(Ze,ge,et)=>ge in Ze?It(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,ke=(Ze,ge)=>{for(var et in ge||(ge={}))Ae.call(ge,et)&&tt(Ze,et,ge[et]);if(Ce)for(var et of Ce(ge))$e.call(ge,et)&&tt(Ze,et,ge[et]);return Ze};class Oe{constructor(ge){this._isActive=!1,this._events=new pe.F,this._activationHandlers=[],this._deactivationHandlers=[],this._subs=new F.w0,this._refCount=0,ge.key||(ge.key=(0,V.Z)()),this._state=Object.freeze(ge),this._setParent()}get state(){return this._state}get isActive(){return this._isActive}get parent(){return this._parent}get variableDependency(){return this._variableDependency}get urlSync(){return this._urlSync}get Component(){return ht}_setParent(){this.forEachChild(ge=>{ge._parent=this})}subscribeToState(ge){return this._events.subscribe(q,et=>{et.payload.changedObject===this&&ge(et.payload.newState,et.payload.prevState)})}subscribeToEvent(ge,et){return this._events.subscribe(ge,et)}setState(ge){const et=this._state,Ln=ke(ke({},this._state),ge);this._state=Object.freeze(Ln),this._setParent(),this.publishEvent(new q({prevState:et,newState:Ln,partialUpdate:ge,changedObject:this}),!0)}publishEvent(ge,et){this._events.publish(ge),et&&this.parent&&this.parent.publishEvent(ge,et)}getRoot(){return this._parent?this._parent.getRoot():this}_internalActivate(){this._isActive=!0;const{$data:ge,$variables:et,$timeRange:Ln,$behaviors:zr}=this.state;if(Ln&&!Ln.isActive&&this._deactivationHandlers.push(Ln.activate()),et&&!et.isActive&&this._deactivationHandlers.push(et.activate()),ge&&!ge.isActive&&this._deactivationHandlers.push(ge.activate()),zr)for(const Ji of zr)Ji instanceof Oe?this._deactivationHandlers.push(Ji.activate()):typeof Ji=="function"&&Ji(this)&&this._deactivationHandlers.push();this._activationHandlers.forEach(Ji=>{const Ja=Ji();Ja&&this._deactivationHandlers.push(Ja)})}activate(){this.isActive||this._internalActivate(),this._refCount++;let ge=!1;return()=>{if(this._refCount--,ge){const et="SceneObject cancelation handler returned by activate() called a second time";throw console.error(et,this),new Error(et)}ge=!0,this._refCount===0&&this._internalDeactivate()}}_internalDeactivate(){this._isActive=!1,this._deactivationHandlers.forEach(ge=>ge()),this._deactivationHandlers=[],this._events.removeAllListeners(),this._subs.unsubscribe(),this._subs=new F.w0}useState(){return je(this)}forceRender(){this.setState({})}clone(ge){return qe(this,ge)}addActivationHandler(ge){this._activationHandlers.push(ge)}forEachChild(ge){for(const et of Object.values(this.state))if(et instanceof Oe&&ge(et),Array.isArray(et))for(const Ln of et)Ln instanceof Oe&&ge(Ln)}}function je(Ze){const[ge,et]=(0,i.useState)(Ze.state),Ln=Ze.state;return(0,i.useEffect)(()=>{const zr=Ze.subscribeToState(et);return Ze.state!==Ln&&et(Ze.state),()=>zr.unsubscribe()},[Ze]),Ze.state}var Et=Object.defineProperty,ct=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,mt=(Ze,ge,et)=>ge in Ze?Et(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,bt=(Ze,ge)=>{for(var et in ge||(ge={}))ut.call(ge,et)&&mt(Ze,et,ge[et]);if(ct)for(var et of ct(ge))Ne.call(ge,et)&&mt(Ze,et,ge[et]);return Ze};class Gt extends Oe{constructor(ge){super(bt({data:hn},ge))}}const hn={state:k.Gu.Done,series:[],timeRange:(0,$.JK)()};var Yt=t(31317),Bt=t(99633),Lt=t(1726);class zt{constructor(ge,et){this._sceneObject=ge,this._keys=et.keys}getKeys(){return this._keys}getUrlState(){return this._sceneObject.getUrlState()}updateFromUrl(ge){this._sceneObject.updateFromUrl(ge)}}var Kt=Object.defineProperty,vt=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,at=(Ze,ge,et)=>ge in Ze?Kt(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Xt=(Ze,ge)=>{for(var et in ge||(ge={}))Ve.call(ge,et)&&at(Ze,et,ge[et]);if(vt)for(var et of vt(ge))lt.call(ge,et)&&at(Ze,et,ge[et]);return Ze};class rt extends Oe{constructor(ge={}){var et,Ln;const zr=(et=ge.from)!=null?et:"now-6h",Ji=(Ln=ge.to)!=null?Ln:"now",Ja=ge.timeZone,lo=rn(zr,Ji,Ja||(0,Yt.Z)());super(Xt({from:zr,to:Ji,timeZone:Ja,value:lo},ge)),this._urlSync=new zt(this,{keys:["from","to"]}),this._onActivate=()=>{if(!this.state.timeZone){const To=this.getTimeZoneSource();To!==this&&this._subs.add(To.subscribeToState((Xo,mu)=>{Xo.timeZone!==void 0&&Xo.timeZone!==mu.timeZone&&this.setState({value:rn(this.state.from,this.state.to,To.getTimeZone())})}))}},this.onTimeRangeChange=To=>{const Xo={};typeof To.raw.from=="string"?Xo.from=To.raw.from:Xo.from=To.raw.from.toISOString(),typeof To.raw.to=="string"?Xo.to=To.raw.to:Xo.to=To.raw.to.toISOString(),Xo.value=rn(Xo.from,Xo.to,this.getTimeZone()),this.setState(Xo)},this.onTimeZoneChange=To=>{this.setState({timeZone:To})},this.onRefresh=()=>{this.setState({value:rn(this.state.from,this.state.to,this.getTimeZone())})},this.addActivationHandler(this._onActivate)}getTimeZoneSource(){if(!this.parent||!this.parent.parent)return this;const ge=At(this.parent.parent,et=>{if(et.state.$timeRange&&et.state.$timeRange.state.timeZone)return et.state.$timeRange});return ge||this}getTimeZone(){if(this.state.timeZone)return this.state.timeZone;const ge=this.getTimeZoneSource();return ge!==this?ge.state.timeZone:(0,Yt.Z)()}getUrlState(){return{from:this.state.from,to:this.state.to}}updateFromUrl(ge){var et,Ln;if(!ge.to&&!ge.from)return;const zr={},Ji=Rt(ge.from);Ji&&(zr.from=Ji);const Ja=Rt(ge.to);Ja&&(zr.to=Ja),zr.value=rn((et=zr.from)!=null?et:this.state.from,(Ln=zr.to)!=null?Ln:this.state.to,this.getTimeZone()),this.setState(zr)}}function Rt(Ze){if(typeof Ze!="string")return null;if(Ze.indexOf("now")!==-1)return Ze;if(Ze.length===8){const et=(0,Bt.zh)(Ze,"YYYYMMDD");if(et.isValid())return et.toISOString()}else if(Ze.length===15){const et=(0,Bt.zh)(Ze,"YYYYMMDDTHHmmss");if(et.isValid())return et.toISOString()}else if(Ze.length===24)return(0,Bt.zh)(Ze).toISOString();const ge=parseInt(Ze,10);return isNaN(ge)?null:(0,Bt.zh)(ge).toISOString()}function rn(Ze,ge,et,Ln){return{from:Lt.parse(Ze,!1,et,Ln),to:Lt.parse(ge,!0,et,Ln),raw:{from:Ze,to:ge}}}const sn=new Gt,Jn=new rt;class ze extends Oe{constructor(){super({variables:[]})}getByName(ge){}isVariableLoadingOrWaitingToUpdate(ge){return!1}}const st=new ze;function en(Ze){var ge;return(ge=At(Ze,et=>et.state.$timeRange))!=null?ge:Jn}var wt=t(64167);class Ke extends J.R{}Ke.type="scene-variable-changed-value";function Ut(Ze){return typeof Ze=="object"&&"formatter"in Ze}var on=t(89949);let Tn={};function An(Ze){const ge=Tn[Ze];return ge||(Tn[Ze]=(0,on.property)(Ze))}class Zt{constructor(ge,et){this.state={name:ge,value:et,type:"scopedvar"}}getValue(ge){let{value:et}=this.state,Ln=et.value;return ge?Ln=An(ge)(et.value):Ln=et.value,Ln==="string"||Ln==="number"||Ln==="boolean"?Ln:String(Ln)}getValueText(){const{value:ge}=this.state;return ge.text!=null?String(ge.text):String(ge)}}let ot;function We(Ze,ge){return ot?(ot.state.name=Ze,ot.state.value=ge):ot=new Zt(Ze,ge),ot}var Ft=t(25359),it=t(95676),qt=t(48154);const vn=new Ft.B(()=>[{id:wt.b8.Lucene,name:"Lucene",description:"Values are lucene escaped and multi-valued variables generate an OR expression",formatter:ge=>typeof ge=="string"?fn(ge):Array.isArray(ge)?ge.length===0?"__empty__":"("+(0,on.map)(ge,Ln=>'"'+fn(Ln)+'"').join(" OR ")+")":fn(`${ge}`)},{id:wt.b8.Raw,name:"raw",description:"Keep value as is",formatter:ge=>String(ge)},{id:wt.b8.Regex,name:"Regex",description:"Values are regex escaped and multi-valued variables generate a (<value>|<value>) expression",formatter:ge=>{if(typeof ge=="string")return(0,it.yI)(ge);if(Array.isArray(ge)){const et=ge.map(Ln=>typeof Ln=="string"?(0,it.yI)(Ln):(0,it.yI)(String(Ln)));return et.length===1?et[0]:"("+et.join("|")+")"}return(0,it.yI)(`${ge}`)}},{id:wt.b8.Pipe,name:"Pipe",description:"Values are separated by | character",formatter:ge=>typeof ge=="string"?ge:Array.isArray(ge)?ge.join("|"):`${ge}`},{id:wt.b8.Distributed,name:"Distributed",description:"Multiple values are formatted like variable=value",formatter:(ge,et,Ln)=>typeof ge=="string"?ge:Array.isArray(ge)?(ge=(0,on.map)(ge,(zr,Ji)=>Ji!==0?Ln.state.name+"="+zr:zr),ge.join(",")):`${ge}`},{id:wt.b8.CSV,name:"Csv",description:"Comma-separated values",formatter:ge=>typeof ge=="string"?ge:(0,on.isArray)(ge)?ge.join(","):String(ge)},{id:wt.b8.HTML,name:"HTML",description:"HTML escaping of values",formatter:ge=>typeof ge=="string"?qt.QX.escapeHtml(ge):(0,on.isArray)(ge)?qt.QX.escapeHtml(ge.join(", ")):qt.QX.escapeHtml(String(ge))},{id:wt.b8.JSON,name:"JSON",description:"JSON stringify value",formatter:ge=>typeof ge=="string"?ge:JSON.stringify(ge)},{id:wt.b8.PercentEncode,name:"Percent encode",description:"Useful for URL escaping values",formatter:ge=>(0,on.isArray)(ge)?Tt("{"+ge.join(",")+"}"):Tt(ge)},{id:wt.b8.SingleQuote,name:"Single quote",description:"Single quoted values",formatter:ge=>{const et=new RegExp("'","g");if((0,on.isArray)(ge))return(0,on.map)(ge,zr=>`'${(0,on.replace)(zr,et,"\\'")}'`).join(",");let Ln=typeof ge=="string"?ge:String(ge);return`'${(0,on.replace)(Ln,et,"\\'")}'`}},{id:wt.b8.DoubleQuote,name:"Double quote",description:"Double quoted values",formatter:ge=>{const et=new RegExp('"',"g");if((0,on.isArray)(ge))return(0,on.map)(ge,zr=>`"${(0,on.replace)(zr,et,'\\"')}"`).join(",");let Ln=typeof ge=="string"?ge:String(ge);return`"${(0,on.replace)(Ln,et,'\\"')}"`}},{id:wt.b8.SQLString,name:"SQL string",description:"SQL string quoting and commas for use in IN statements and other scenarios",formatter:ge=>{const et=new RegExp("'","g");if((0,on.isArray)(ge))return(0,on.map)(ge,zr=>`'${(0,on.replace)(zr,et,"''")}'`).join(",");let Ln=typeof ge=="string"?ge:String(ge);return`'${(0,on.replace)(Ln,et,"''")}'`}},{id:wt.b8.Date,name:"Date",description:"Format date in different ways",formatter:(ge,et)=>{var Ln;let zr=NaN;if(typeof ge=="number"?zr=ge:typeof ge=="string"&&(zr=parseInt(ge,10)),isNaN(zr))return"NaN";const Ji=(Ln=et[0])!=null?Ln:"iso";switch(Ji){case"ms":return String(ge);case"seconds":return`${Math.round(zr/1e3)}`;case"iso":return(0,Bt.CQ)(zr).toISOString();default:return(et||[]).length>1?(0,Bt.CQ)(zr).format(et.join(":")):(0,Bt.CQ)(zr).format(Ji)}}},{id:wt.b8.Glob,name:"Glob",description:"Format multi-valued variables using glob syntax, example {value1,value2}",formatter:ge=>(0,on.isArray)(ge)&&ge.length>1?"{"+ge.join(",")+"}":String(ge)},{id:wt.b8.Text,name:"Text",description:"Format variables in their text representation. Example in multi-variable scenario A + B + C.",formatter:(ge,et,Ln)=>Ln.getValueText?Ln.getValueText():String(ge)},{id:wt.b8.QueryParam,name:"Query parameter",description:"Format variables as URL parameters. Example in multi-variable scenario A + B + C => var-foo=A&var-foo=B&var-foo=C.",formatter:(ge,et,Ln)=>Array.isArray(ge)?ge.map(zr=>Kn(Ln.state.name,zr)).join("&"):Kn(Ln.state.name,ge)},{id:wt.b8.UriEncode,name:"Percent encode as URI",description:"Useful for URL escaping values, taking into URI syntax characters",formatter:ge=>(0,on.isArray)(ge)?dn("{"+ge.join(",")+"}"):dn(ge)}]);function fn(Ze){return isNaN(+Ze)===!1?Ze:Ze.replace(/([\!\*\+\-\=<>\s\&\|\(\)\[\]\{\}\^\~\?\:\\/"])/g,"\\$1")}function Tt(Ze){return typeof Ze=="object"&&(Ze=String(Ze)),mn(encodeURIComponent(Ze))}const dn=Ze=>mn(encodeURI(String(Ze))),mn=Ze=>Ze.replace(/[!'()*]/g,ge=>"%"+ge.charCodeAt(0).toString(16).toUpperCase());function Kn(Ze,ge){return`var-${Ze}=${Tt(ge)}`}const Dn="All",Vn="$__all",or=/\$(\w+)|\[\[(\w+?)(?::(\w+))?\]\]|\${(\w+)(?:\.([^:^\}]+))?(?::([^\}]+))?}/g;var Qr=t(3569),ni=t(60956);class yr{constructor(ge){this._value=ge}formatter(){return this._value}}class si{constructor(ge,et){this.state={name:ge,type:"url_variable"},this._sceneObject=et}getValue(){var ge;const Ln=(ge=en(this._sceneObject).urlSync)==null?void 0:ge.getUrlState();return new yr(u.Cj.toUrlParams(Ln))}getValueText(){return""}}class Yr{constructor(ge,et){this.state={name:ge,type:"time_macro"},this._sceneObject=et}getValue(){const ge=en(this._sceneObject);return this.state.name==="__from"?ge.state.value.from.valueOf():ge.state.value.to.valueOf()}getValueText(){const ge=en(this._sceneObject);return this.state.name==="__from"?(0,ni.dq)(ge.state.value.from,{timeZone:ge.getTimeZone()}):(0,ni.dq)(ge.state.value.to,{timeZone:ge.getTimeZone()})}}class Ci{constructor(ge,et){this.state={name:ge,type:"time_macro"},this._sceneObject=et}getValue(){return en(this._sceneObject).getTimeZone()}getValueText(){return this.getValue()}}class Ni{constructor(ge,et){this.state={name:ge,type:"url_variable"},this._sceneObject=et}getValue(){const ge=fa(this._sceneObject),et=vn.get(wt.b8.QueryParam),Ln=[];for(const zr of Object.keys(ge)){const Ji=ge[zr],Ja=Ji.getValue();Ja&&(Ut(Ja)?Ln.push(Ja.formatter(wt.b8.QueryParam)):Ln.push(et.formatter(Ja,[],Ji)))}return new yr(Ln.join("&"))}getValueText(){return""}}function fa(Ze,ge={}){if(Ze.state.$variables)for(const et of Ze.state.$variables.state.variables)et.state.skipUrlSync||ge[et.state.name]||(ge[et.state.name]=et);return Ze.parent&&fa(Ze.parent,ge),ge}var ha=t(21609),Ca=t(29241),li=t(61965),la=t(70732),Oa=t(75578),wa=t(14951),vo=Object.defineProperty,Qn=Object.defineProperties,_r=Object.getOwnPropertyDescriptors,$r=Object.getOwnPropertySymbols,Ti=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,On=(Ze,ge,et)=>ge in Ze?vo(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Zn=(Ze,ge)=>{for(var et in ge||(ge={}))Ti.call(ge,et)&&On(Ze,et,ge[et]);if($r)for(var et of $r(ge))xt.call(ge,et)&&On(Ze,et,ge[et]);return Ze},Ur=(Ze,ge)=>Qn(Ze,_r(ge));function En(Ze,ge,et){return new Proxy({},{get:(Ln,zr)=>{if(zr==="name")return Ze.name;if(zr==="displayName")return(0,Oa.CZ)(Ze,ge,et);if(zr==="labels"||zr==="formattedLabels")return Ze.labels?Ur(Zn({},Ze.labels),{__values:Object.values(Ze.labels).sort().join(", "),toString:()=>(0,wa.aA)(Ze.labels,"",!0)}):""}})}class ln{constructor(ge,et,Ln,zr){this._match=Ln,this._scopedVars=zr,this.state={name:ge,type:"__value"}}getValue(ge){var et,Ln;const zr=(et=this._scopedVars)==null?void 0:et.__dataContext;if(!zr)return this._match;const{frame:Ji,rowIndex:Ja,field:lo,calculatedValue:To}=zr.value;if(To)switch(ge){case"numeric":return To.numeric;case"raw":return To.numeric;case"time":return"";case"text":default:return(0,ha.zc)(To)}if(Ja==null)return this._match;if(ge==="time"){const Uu=Ji.fields.find(el=>el.type===Ca.fS.time);return Uu?Uu.values.get(Ja):void 0}if(!lo)return this._match;const Xo=lo.values.get(Ja);if(ge==="raw")return Xo;const ws=((Ln=lo.display)!=null?Ln:jn)(Xo);switch(ge){case"numeric":return ws.numeric;case"text":default:return(0,ha.zc)(ws)}}getValueText(){return""}}const jn=(0,li.U)();class rr{constructor(ge,et,Ln,zr){this._match=Ln,this._scopedVars=zr,this.state={name:ge,type:"__data"}}getValue(ge){var et,Ln;const zr=(et=this._scopedVars)==null?void 0:et.__dataContext;if(!zr||!ge)return this._match;const{frame:Ji,rowIndex:Ja}=zr.value;if(Ja===void 0||ge===void 0)return this._match;const lo={name:Ji.name,refId:Ji.refId,fields:(0,la.z)({frame:Ji,rowIndex:Ja})};return(Ln=An(ge)(lo))!=null?Ln:""}getValueText(){return""}}class Mr{constructor(ge,et,Ln,zr){this._match=Ln,this._scopedVars=zr,this.state={name:ge,type:"__series"}}getValue(ge){var et;const Ln=(et=this._scopedVars)==null?void 0:et.__dataContext;if(!Ln||!ge)return this._match;if(ge!=="name")return this._match;const{frame:zr,frameIndex:Ji}=Ln.value;return(0,Oa.nf)(zr,Ji)}getValueText(){return""}}class Ir{constructor(ge,et,Ln,zr){this._match=Ln,this._scopedVars=zr,this.state={name:ge,type:"__field"}}getValue(ge){var et,Ln;const zr=(et=this._scopedVars)==null?void 0:et.__dataContext;if(!zr||!ge)return this._match;if(ge===void 0||ge==="")return this._match;const{frame:Ji,field:Ja,data:lo}=zr.value,To=En(Ja,Ji,lo);return(Ln=An(ge)(To))!=null?Ln:""}getValueText(){return""}}class Zr{constructor(ge,et){this.state={name:ge,type:"url_macro"}}getValue(ge){const et=v.E1.getLocation();switch(ge??""){case"params":return new lr(et.search);case"path":return et.pathname;case"":default:return et.pathname+et.search}}getValueText(){return""}}class lr{constructor(ge){this._urlQueryParams=ge}formatter(ge){if(!ge)return this._urlQueryParams;const et=ge.split(":");if(et[0]==="exclude"&&et.length>1){const Ln=new URLSearchParams(this._urlQueryParams);for(const zr of et[1].split(","))Ln.delete(zr);return`?${Ln}`}if(et[0]==="include"&&et.length>1){const Ln=new URLSearchParams(this._urlQueryParams),zr=et[1].split(",");for(const Ji of Ln.keys())zr.includes(Ji)||Ln.delete(Ji);return`?${Ln}`}return this._urlQueryParams}}const Jr={[Qr.W.includeVars]:Ni,[Qr.W.keepTime]:si,__value:ln,__data:rr,__series:Mr,__field:Ir,__url:Zr,__from:Yr,__to:Yr,__timezone:Ci};function pi(Ze,ge,et,Ln){return ge?(or.lastIndex=0,ge.replace(or,(zr,Ji,Ja,lo,To,Xo,mu)=>{const ws=Ji||Ja||To,Uu=lo||mu||Ln,el=Ri(ws,zr,et,Ze);return el?Ki(el,el.getValue(Xo),Uu):zr})):ge??""}function Ri(Ze,ge,et,Ln){const zr=et?.[Ze];if(zr)return We(Ze,zr);const Ji=L(Ze,Ln);return Ji||(Jr[Ze]?new Jr[Ze](Ze,Ln,ge,et):null)}function Ki(Ze,ge,et){if(ge==null)return"";if(Ut(ge))return ge.formatter(et);if(!Array.isArray(ge)&&typeof ge=="object"&&(ge=`${ge}`),typeof et=="function")return et(ge,{name:Ze.state.name,type:Ze.state.type,multi:Ze.state.isMulti,includeAll:Ze.state.includeAll});let Ln=[];et?(Ln=et.split(":"),Ln.length>1?(et=Ln[0],Ln=Ln.slice(1)):Ln=[]):et=wt.b8.Glob;let zr=vn.getIfExists(et);return zr||(console.error(`Variable format ${et} not found. Using glob format as fallback.`),zr=vn.get(wt.b8.Glob)),zr.formatter(ge,Ln,Ze)}function ia(Ze){var ge;return(ge=At(Ze,et=>et.state.$variables))!=null?ge:st}function Da(Ze){var ge;return(ge=At(Ze,et=>et.state.$data))!=null?ge:sn}function to(Ze){return"isDraggable"in Ze}function ao(Ze){const ge=At(Ze,et=>to(et)?et:void 0);if(ge)return ge;throw new Error("No layout found in scene tree")}function Bo(Ze,ge,et,Ln){return ge===""||ge==null?"":pi(Ze,ge,et,Ln)}function jo(Ze){if(!Ze.variableDependency)return!1;for(const ge of Ze.variableDependency.getNames()){const et=L(ge,Ze);if(!et)continue;return et.parent.isVariableLoadingOrWaitingToUpdate(et)}return!1}function Jo(Ze,ge,et,Ln){if(ge(Ze))return Ze;let zr=null;return Ze.forEachChild(Ji=>{if(Ji===et)return;let Ja=Jo(Ji,ge);Ja&&(zr=Ja)}),zr||(Ln&&Ze.parent?Jo(Ze.parent,ge,Ze,!0):null)}function Go(Ze,ge){return Jo(Ze,ge,void 0,!0)}const wr={getVariables:ia,getData:Da,getTimeRange:en,getLayout:ao,interpolate:Bo,lookupVariable:L,hasVariableDependencyInLoadingState:jo,findObject:Go};class qi extends null{constructor(){super(...arguments),this._runningEffect=null,this._variableDependency=new VariableDependencyConfig(this,{variableNames:[this.state.variableName],onVariableUpdatesCompleted:this._onVariableChanged.bind(this)})}_onVariableChanged(ge){const et=this.state.onChange;for(const Ln of ge)if(this.state.variableName===Ln.state.name){this._runningEffect&&(this._runningEffect(),this._runningEffect=null);const zr=et(Ln);zr&&(this._runningEffect=zr)}}}var ja=Object.defineProperty,uo=Object.defineProperties,wi=Object.getOwnPropertyDescriptors,ai=Object.getOwnPropertySymbols,za=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Gn=(Ze,ge,et)=>ge in Ze?ja(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,qn=(Ze,ge)=>{for(var et in ge||(ge={}))za.call(ge,et)&&Gn(Ze,et,ge[et]);if(ai)for(var et of ai(ge))Mt.call(ge,et)&&Gn(Ze,et,ge[et]);return Ze},Fr=(Ze,ge)=>uo(Ze,wi(ge));class Ei extends null{constructor(ge){super(Fr(qn({},ge),{timeZone:ge.timeZone,from:"now-6h",to:"now",value:evaluateTimeRange("now-6h","now",ge.timeZone)})),this._activationHandler=()=>{const et=this.getTimeRangeObject(),{from:Ln,to:zr}=et.state;this.setState({from:Ln,to:zr,value:evaluateTimeRange(Ln,zr,this.state.timeZone)}),this._subs.add(et.subscribeToState(Ji=>{this.setState({from:Ji.from,to:Ji.to,value:evaluateTimeRange(Ji.from,Ji.to,this.state.timeZone)})}))},this.addActivationHandler(this._activationHandler)}getTimeRangeObject(){if(!this.parent||!this.parent.parent)throw new Error("SceneTimeZoneOverride must be used within $timeRange scope");return sceneGraph.getTimeRange(this.parent.parent)}getTimeZone(){return this.state.timeZone}onTimeRangeChange(ge){this.getTimeRangeObject().onTimeRangeChange(ge)}onTimeZoneChange(ge){this.setState({timeZone:ge,value:evaluateTimeRange(this.state.from,this.state.to,ge)})}onRefresh(){this.getTimeRangeObject().onRefresh()}}var ii=t(32053),Wi=t(62247),Ya=t(76305),qa=t(89633),se=t(10864);async function ye(Ze,ge){if(Ze?.uid){const et=X.get(Ze.uid);if(et)return et}return Ze&&Ze.query?Ze:await(0,se.F)().get(Ze,ge)}class Xe{constructor(ge,et){this._sceneObject=ge,this._options=et,this._dependencies=new Set,this.scanCount=0,this.defaultHandlerReferencedVariableValueChanged=()=>{this._sceneObject.forceRender()},this._statePaths=et.statePaths}hasDependencyOn(ge){return this.getNames().has(ge)}variableUpdatesCompleted(ge){const et=this.getNames();let Ln=!1;for(const zr of ge)if(et.has(zr.state.name)){Ln=!0;break}if(this._options.onVariableUpdatesCompleted){this._options.onVariableUpdatesCompleted(ge,Ln);return}Ln&&(this._options.onReferencedVariableValueChanged?this._options.onReferencedVariableValueChanged():this.defaultHandlerReferencedVariableValueChanged())}getNames(){const ge=this._state,et=this._state=this._sceneObject.state;if(!ge)return this.scanStateForDependencies(this._state),this._dependencies;if(et!==ge)if(this._statePaths){for(const Ln of this._statePaths)if(et[Ln]!==ge[Ln]){this.scanStateForDependencies(et);break}}else this.scanStateForDependencies(et);return this._dependencies}scanStateForDependencies(ge){if(this._dependencies.clear(),this.scanCount+=1,this._options.variableNames)for(const et of this._options.variableNames)this._dependencies.add(et);else if(this._statePaths)for(const et of this._statePaths){const Ln=ge[et];Ln&&this.extractVariablesFrom(Ln)}else this.extractVariablesFrom(ge)}extractVariablesFrom(ge){or.lastIndex=0;const Ln=(typeof ge!="string"?yt(ge):ge).matchAll(or);if(Ln)for(const zr of Ln){const[,Ji,Ja,,lo]=zr,To=Ji||Ja||lo;this._dependencies.add(To)}}}const yt=Ze=>{try{return JSON.stringify(Ze,null)}catch(ge){console.error(ge)}return""};function Wt(Ze,ge,...et){window.grafanaSceneLogging&&console.log(`${Ze}: `,ge,...et)}function Qt(Ze,ge){return Ze===ge?!0:(0,on.isEqual)(Ze,ge)}class wn{constructor(){this._values=new Map}recordCurrentDependencyValuesForSceneObject(ge){this.clearValues();for(const et of ge.variableDependency.getNames()){const Ln=wr.lookupVariable(et,ge);Ln&&this._values.set(Ln,Ln.getValue())}}clearValues(){this._values.clear()}hasValues(){return!!this._values}recordCurrentValue(ge){this._values.set(ge,ge.getValue())}hasRecordedValue(ge){return this._values.has(ge)}hasValueChanged(ge){if(this._values.has(ge)){const et=this._values.get(ge);if(!Qt(et,ge.getValue()))return!0}return!1}hasDependenciesChanged(ge){if(!this._values)return!1;for(const et of ge.variableDependency.getNames()){const Ln=wr.lookupVariable(et,ge);if(Ln&&this._values.has(Ln)){const zr=this._values.get(Ln);if(!Qt(zr,Ln.getValue()))return!0}}return!1}}var fr=Object.defineProperty,Or=Object.defineProperties,Si=Object.getOwnPropertyDescriptors,Fi=Object.getOwnPropertySymbols,Bi=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,vi=(Ze,ge,et)=>ge in Ze?fr(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Xa=(Ze,ge)=>{for(var et in ge||(ge={}))Bi.call(ge,et)&&vi(Ze,et,ge[et]);if(Fi)for(var et of Fi(ge))Ui.call(ge,et)&&vi(Ze,et,ge[et]);return Ze},Ko=(Ze,ge)=>Or(Ze,Si(ge));let So=100;function Lo(){return"SQR"+So++}class us extends Oe{constructor(ge){super(ge),this._variableValueRecorder=new wn,this._hasFetchedData=!1,this._variableDependency=new Xe(this,{statePaths:["queries","datasource"],onVariableUpdatesCompleted:(et,Ln)=>this.onVariableUpdatesCompleted(et,Ln)}),this.onDataReceived=et=>{const Ln=(0,ii.zR)(et,this.state.data);!this._hasFetchedData&&Ln.state!==k.Gu.Loading&&(this._hasFetchedData=!0),this.setState({data:Ln})},this.addActivationHandler(()=>this._onActivate())}_onActivate(){const ge=wr.getTimeRange(this);return this._subs.add(ge.subscribeToState(()=>{this.runWithTimeRange(ge)})),this.shouldRunQueriesOnActivate()&&this.runQueries(),()=>this._onDeactivate()}onVariableUpdatesCompleted(ge,et){if(this.state.isWaitingForVariables&&this.shouldRunQueriesOnActivate()){this.runQueries();return}et&&this.runQueries()}shouldRunQueriesOnActivate(){return!this.state.maxDataPoints&&this.state.maxDataPointsFromWidth&&!this._containerWidth?!1:this._variableValueRecorder.hasDependenciesChanged(this)?(Wt("SceneQueryRunner","Variable dependency changed while inactive, shouldRunQueriesOnActivate returns true"),!0):!!(!this.state.data||this._isDataTimeRangeStale(this.state.data))}_isDataTimeRangeStale(ge){const et=wr.getTimeRange(this);return ge.timeRange===et.state.value?!1:(Wt("SceneQueryRunner","Data time range is stale"),!0)}_onDeactivate(){this._querySub&&(this._querySub.unsubscribe(),this._querySub=void 0),this._variableValueRecorder.recordCurrentDependencyValuesForSceneObject(this)}setContainerWidth(ge){!this._containerWidth&&ge>0?(this._containerWidth=ge,this.state.maxDataPointsFromWidth&&!this.state.maxDataPoints&&setTimeout(()=>{this.isActive&&!this._querySub&&this.runQueries()},0)):ge>0&&(this._containerWidth=ge)}isDataReadyToDisplay(){return this._hasFetchedData}runQueries(){const ge=wr.getTimeRange(this);this.runWithTimeRange(ge)}getMaxDataPoints(){var ge;return this.state.maxDataPoints?this.state.maxDataPoints:this.state.maxDataPointsFromWidth&&(ge=this._containerWidth)!=null?ge:500}cancelQuery(){var ge;(ge=this._querySub)==null||ge.unsubscribe(),this.setState({data:Ko(Xa({},this.state.data),{state:k.Gu.Done})})}async runWithTimeRange(ge){var et,Ln;if((et=this._querySub)==null||et.unsubscribe(),wr.hasVariableDependencyInLoadingState(this)){Wt("SceneQueryRunner","Variable dependency is in loading state, skipping query execution"),this.setState({isWaitingForVariables:!0});return}this.state.isWaitingForVariables&&this.setState({isWaitingForVariables:!1});const{minInterval:zr,queries:Ji}=this.state,Ja={__sceneObject:{text:"__sceneObject",value:this}};if(!Ji?.length){this._setNoDataState();return}const lo={app:Wi.zj.Dashboard,requestId:Lo(),timezone:ge.getTimeZone(),panelId:1,range:ge.state.value,interval:"1s",intervalMs:1e3,targets:(0,on.cloneDeep)(Ji),maxDataPoints:this.getMaxDataPoints(),scopedVars:Ja,startTime:Date.now(),liveStreaming:this.state.liveStreaming,rangeRaw:{from:ge.state.from,to:ge.state.to}};try{const To=(Ln=this.state.datasource)!=null?Ln:Ee(lo.targets),Xo=await ye(To,lo.scopedVars);lo.targets=lo.targets.map(el=>(el.datasource||(el.datasource=Xo.getRef()),el));const mu=zr||Xo.interval,ws=Ya.calculateInterval(ge.state.value,lo.maxDataPoints,mu);lo.scopedVars=Object.assign({},lo.scopedVars,{__interval:{text:ws.interval,value:ws.interval},__interval_ms:{text:ws.intervalMs.toString(),value:ws.intervalMs}}),lo.interval=ws.interval,lo.intervalMs=ws.intervalMs;const Uu=(0,qa.Pl)();Wt("SceneQueryRunner","Starting runRequest",this.state.key),this._querySub=Uu(Xo,lo).subscribe(this.onDataReceived)}catch(To){console.error("PanelQueryRunner Error",To)}}_setNoDataState(){this.state.data!==hn&&this.setState({data:hn})}}function Ee(Ze){var ge,et;return(et=(ge=Ze.find(Ln=>Ln.datasource!==null))==null?void 0:ge.datasource)!=null?et:void 0}var Y=t(83667),z=t(39343),B=Object.defineProperty,le=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,bn=(Ze,ge,et)=>ge in Ze?B(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Hn=(Ze,ge)=>{for(var et in ge||(ge={}))Ct.call(ge,et)&&bn(Ze,et,ge[et]);if(Je)for(var et of Je(ge))Vt.call(ge,et)&&bn(Ze,et,ge[et]);return Ze},br=(Ze,ge)=>le(Ze,Le(ge));class ei extends Oe{constructor(ge){super(ge),this._variableDependency=new Xe(this,{statePaths:["transformations"],onReferencedVariableValueChanged:()=>this.reprocessTransformations()}),this.addActivationHandler(()=>this.activationHandler())}activationHandler(){const ge=this.getSourceData();return this._subs.add(ge.subscribeToState(et=>this.transform(et.data))),ge.state.data&&this.transform(ge.state.data),()=>{this._transformSub&&this._transformSub.unsubscribe()}}getSourceData(){if(this.state.$data)return this.state.$data;if(!this.parent||!this.parent.parent)throw new Error("SceneDataTransformer must either have $data set on it or have a parent.parent with $data");return wr.getData(this.parent.parent)}setContainerWidth(ge){this.state.$data&&this.state.$data.setContainerWidth&&this.state.$data.setContainerWidth(ge)}isDataReadyToDisplay(){const ge=this.getSourceData();return ge.isDataReadyToDisplay?ge.isDataReadyToDisplay():!0}reprocessTransformations(){this.transform(this.getSourceData().state.data)}cancelQuery(){var ge,et;(et=(ge=this.getSourceData()).cancelQuery)==null||et.call(ge)}transform(ge){const et=this.state.transformations||[];if(et.length===0||!ge){this.setState({data:ge});return}this._transformSub&&this._transformSub.unsubscribe();const Ln={interpolate:zr=>{var Ji;return wr.interpolate(this,zr,(Ji=ge.request)==null?void 0:Ji.scopedVars)}};this._transformSub=(0,Y.H)(et,ge.series,Ln).pipe((0,z.U)(zr=>br(Hn({},ge),{series:zr}))).subscribe(zr=>this.setState({data:zr}))}}var mi=t(82986);const Li={Breadcrumbs:{breadcrumb:Ze=>`data-testid ${Ze} breadcrumb`},TimePicker:{openButton:"data-testid TimePicker Open Button",fromField:"Time Range from field",toField:"Time Range to field",applyTimeRange:"data-testid TimePicker submit button",calendar:{label:"Time Range calendar",openButton:"Open time range calendar",closeButton:"Close time range Calendar"},absoluteTimeRangeTitle:"data-testid-absolute-time-range-narrow"},DataSourcePermissions:{form:()=>'form[name="addPermission"]',roleType:"Role to add new permission to",rolePicker:"Built-in role picker",permissionLevel:"Permission Level"},DataSource:{TestData:{QueryTab:{scenarioSelectContainer:"Test Data Query scenario select container",scenarioSelect:"Test Data Query scenario select",max:"TestData max",min:"TestData min",noise:"TestData noise",seriesCount:"TestData series count",spread:"TestData spread",startValue:"TestData start value",drop:"TestData drop values"}},DataSourceHttpSettings:{urlInput:"Datasource HTTP settings url"},Jaeger:{traceIDInput:"Trace ID"},Prometheus:{configPage:{exemplarsAddButton:"Add exemplar config button",internalLinkSwitch:"Internal link switch"},exemplarMarker:"Exemplar marker"}},Menu:{MenuComponent:Ze=>`${Ze} menu`,MenuGroup:Ze=>`${Ze} menu group`,MenuItem:Ze=>`${Ze} menu item`,SubMenu:{container:"SubMenu container",icon:"SubMenu icon"}},Panels:{Panel:{title:Ze=>`data-testid Panel header ${Ze}`,headerItems:Ze=>`Panel header item ${Ze}`,menuItems:Ze=>`data-testid Panel menu item ${Ze}`,menu:Ze=>`data-testid Panel menu ${Ze}`,containerByTitle:Ze=>`${Ze} panel`,headerCornerInfo:Ze=>`Panel header ${Ze}`,loadingBar:()=>"Panel loading bar",HoverWidget:{container:"data-test-id hover-header-container",dragIcon:"data-testid drag-icon"}},Visualization:{Graph:{container:"Graph container",VisualizationTab:{legendSection:"Legend section"},Legend:{legendItemAlias:Ze=>`gpl alias ${Ze}`,showLegendSwitch:"gpl show legend"},xAxis:{labels:()=>"div.flot-x-axis > div.flot-tick-label"}},BarGauge:{value:"Bar gauge value",valueV2:"data-testid Bar gauge value"},PieChart:{svgSlice:"Pie Chart Slice"},Text:{container:()=>".markdown-html"},Table:{header:"table header",footer:"table-footer"}}},VizLegend:{seriesName:Ze=>`VizLegend series ${Ze}`},Drawer:{General:{title:Ze=>`Drawer title ${Ze}`,expand:"Drawer expand",contract:"Drawer contract",close:"Drawer close",rcContentWrapper:()=>".rc-drawer-content-wrapper"}},PanelEditor:{General:{content:"Panel editor content"},OptionsPane:{content:"Panel editor option pane content",select:"Panel editor option pane select",fieldLabel:Ze=>`${Ze} field property editor`},DataPane:{content:"Panel editor data pane content"},applyButton:"data-testid Apply changes and go back to dashboard",toggleVizPicker:"data-testid toggle-viz-picker",toggleVizOptions:"data-testid toggle-viz-options",toggleTableView:"toggle-table-view",measureButton:"show measure tools"},PanelInspector:{Data:{content:"Panel inspector Data content"},Stats:{content:"Panel inspector Stats content"},Json:{content:"Panel inspector Json content"},Query:{content:"Panel inspector Query content",refreshButton:"Panel inspector Query refresh button",jsonObjectKeys:()=>".json-formatter-key"}},Tab:{title:Ze=>`Tab ${Ze}`,active:()=>'[class*="-activeTabStyle"]'},RefreshPicker:{runButton:"RefreshPicker run button",intervalButton:"RefreshPicker interval button",runButtonV2:"data-testid RefreshPicker run button",intervalButtonV2:"data-testid RefreshPicker interval button"},QueryTab:{content:"Query editor tab content",queryInspectorButton:"Query inspector button",queryHistoryButton:"Rich history button",addQuery:"Query editor add query button"},QueryHistory:{queryText:"Query text"},QueryEditorRows:{rows:"Query editor row"},QueryEditorRow:{actionButton:Ze=>`${Ze}`,title:Ze=>`Query editor row title ${Ze}`,container:Ze=>`Query editor row ${Ze}`},AlertTab:{content:"Alert editor tab content"},Alert:{alert:Ze=>`Alert ${Ze}`,alertV2:Ze=>`data-testid Alert ${Ze}`},TransformTab:{content:"Transform editor tab content",newTransform:Ze=>`New transform ${Ze}`,transformationEditor:Ze=>`Transformation editor ${Ze}`,transformationEditorDebugger:Ze=>`Transformation editor debugger ${Ze}`},Transforms:{card:Ze=>`New transform ${Ze}`,Reduce:{modeLabel:"Transform mode label",calculationsLabel:"Transform calculations label"},SpatialOperations:{actionLabel:"root Action field property editor",locationLabel:"root Location field property editor",location:{autoOption:"Auto location option",coords:{option:"Coords location option",latitudeFieldLabel:"root Latitude field field property editor",longitudeFieldLabel:"root Longitude field field property editor"},geohash:{option:"Geohash location option",geohashFieldLabel:"root Geohash field field property editor"},lookup:{option:"Lookup location option",lookupFieldLabel:"root Lookup field field property editor",gazetteerFieldLabel:"root Gazetteer field property editor"}}},searchInput:"search transformations"},NavBar:{Configuration:{button:"Configuration"},Toggle:{button:"Toggle menu"},Reporting:{button:"Reporting"}},NavMenu:{item:"data-testid Nav menu item"},NavToolbar:{container:"data-testid Nav toolbar"},PageToolbar:{container:()=>".page-toolbar",item:Ze=>`${Ze}`,itemButton:Ze=>`data-testid ${Ze}`},QueryEditorToolbarItem:{button:Ze=>`QueryEditor toolbar item button ${Ze}`},BackButton:{backArrow:"Go Back"},OptionsGroup:{group:Ze=>Ze?`Options group ${Ze}`:"Options group",toggle:Ze=>Ze?`Options group ${Ze} toggle`:"Options group toggle"},PluginVisualization:{item:Ze=>`Plugin visualization item ${Ze}`,current:()=>'[class*="-currentVisualizationItem"]'},Select:{option:"Select option",input:()=>'input[id*="time-options-input"]',singleValue:()=>'div[class*="-singleValue"]'},FieldConfigEditor:{content:"Field config editor content"},OverridesConfigEditor:{content:"Field overrides editor content"},FolderPicker:{container:"Folder picker select container",containerV2:"data-testid Folder picker select container",input:"Select a folder"},ReadonlyFolderPicker:{container:"data-testid Readonly folder picker select container"},DataSourcePicker:{container:"data-testid Data source picker select container",input:()=>'input[id="data-source-picker"]',inputV2:"Select a data source"},TimeZonePicker:{container:"Time zone picker select container",containerV2:"data-testid Time zone picker select container"},WeekStartPicker:{container:"Choose starting day of the week",containerV2:"data-testid Choose starting day of the week",placeholder:"Choose starting day of the week"},TraceViewer:{spanBar:"data-testid SpanBar--wrapper"},QueryField:{container:"Query field"},QueryBuilder:{queryPatterns:"Query patterns",labelSelect:"Select label",valueSelect:"Select value",matchOperatorSelect:"Select match operator"},ValuePicker:{button:Ze=>`Value picker button ${Ze}`,select:Ze=>`Value picker select ${Ze}`},Search:{section:"Search section",sectionV2:"data-testid Search section",items:"Search items",itemsV2:"data-testid Search items",cards:"data-testid Search cards",collapseFolder:Ze=>`data-testid Collapse folder ${Ze}`,expandFolder:Ze=>`data-testid Expand folder ${Ze}`,dashboardItem:Ze=>`${Li.Search.dashboardItems} ${Ze}`,dashboardCard:Ze=>`data-testid Search card ${Ze}`,folderHeader:Ze=>`data-testid Folder header ${Ze}`,folderContent:Ze=>`data-testid Folder content ${Ze}`,dashboardItems:"data-testid Dashboard search item"},DashboardLinks:{container:"data-testid Dashboard link container",dropDown:"data-testid Dashboard link dropdown",link:"data-testid Dashboard link"},LoadingIndicator:{icon:"Loading indicator"},CallToActionCard:{button:Ze=>`Call to action button ${Ze}`,buttonV2:Ze=>`data-testid Call to action button ${Ze}`},DataLinksContextMenu:{singleLink:"Data link"},CodeEditor:{container:"Code editor container"},DashboardImportPage:{textarea:"data-testid-import-dashboard-textarea",submit:"data-testid-load-dashboard"},ImportDashboardForm:{name:"data-testid-import-dashboard-title",submit:"data-testid-import-dashboard-submit"},PanelAlertTabContent:{content:"Unified alert editor tab content"},VisualizationPreview:{card:Ze=>`data-testid suggestion-${Ze}`},ColorSwatch:{name:"data-testid-colorswatch"},DashboardRow:{title:Ze=>`data-testid dashboard-row-title-${Ze}`},UserProfile:{profileSaveButton:"data-testid-user-profile-save",preferencesSaveButton:"data-testid-shared-prefs-save",orgsTable:"data-testid-user-orgs-table",sessionsTable:"data-testid-user-sessions-table"},FileUpload:{inputField:"data-testid-file-upload-input-field",fileNameSpan:"data-testid-file-upload-file-name"},DebugOverlay:{wrapper:"debug-overlay"},OrgRolePicker:{input:"Role"},AnalyticsToolbarButton:{button:"Dashboard insights"},Variables:{variableOption:"data-testid variable-option"},Annotations:{annotationsTypeInput:"annotations-type-input",annotationsChoosePanelInput:"choose-panels-input"}},ji={pages:{Login:{url:"/login",username:"Username input field",password:"Password input field",submit:"Login button",skip:"Skip change password button"},Home:{url:"/"},DataSource:{name:"Data source settings page name input field",delete:"Data source settings page Delete button",readOnly:"Data source settings page read only message",saveAndTest:"data-testid Data source settings page Save and Test button",alert:"Data source settings page Alert"},DataSources:{url:"/datasources",dataSources:Ze=>`Data source list item ${Ze}`},EditDataSource:{url:Ze=>`/datasources/edit/${Ze}`,settings:"Datasource settings page basic settings"},AddDataSource:{url:"/datasources/new",dataSourcePlugins:Ze=>`Data source plugin item ${Ze}`,dataSourcePluginsV2:Ze=>`Add new data source ${Ze}`},ConfirmModal:{delete:"data-testid Confirm Modal Danger Button"},AddDashboard:{url:"/dashboard/new",itemButton:Ze=>`data-testid ${Ze}`,addNewPanel:"Add new panel",addNewRow:"Add new row",addNewPanelLibrary:"Add new panel from panel library"},Dashboard:{url:Ze=>`/d/${Ze}`,DashNav:{nav:"Dashboard navigation",navV2:"data-testid Dashboard navigation",publicDashboardTag:"data-testid public dashboard tag"},SubMenu:{submenu:"Dashboard submenu",submenuItem:"data-testid template variable",submenuItemLabels:Ze=>`data-testid Dashboard template variables submenu Label ${Ze}`,submenuItemValueDropDownValueLinkTexts:Ze=>`data-testid Dashboard template variables Variable Value DropDown value link text ${Ze}`,submenuItemValueDropDownDropDown:"Variable options",submenuItemValueDropDownOptionTexts:Ze=>`data-testid Dashboard template variables Variable Value DropDown option text ${Ze}`,Annotations:{annotationsWrapper:"data-testid annotation-wrapper",annotationLabel:Ze=>`data-testid Dashboard annotations submenu Label ${Ze}`,annotationToggle:Ze=>`data-testid Dashboard annotations submenu Toggle ${Ze}`}},Settings:{Actions:{close:"data-testid dashboard-settings-close"},General:{deleteDashBoard:"Dashboard settings page delete dashboard button",sectionItems:Ze=>`Dashboard settings section item ${Ze}`,saveDashBoard:"Dashboard settings aside actions Save button",saveAsDashBoard:"Dashboard settings aside actions Save As button",timezone:"Time zone picker select container",title:"Tab General"},Annotations:{List:{addAnnotationCTA:Li.CallToActionCard.button("Add annotation query"),addAnnotationCTAV2:Li.CallToActionCard.buttonV2("Add annotation query")},Settings:{name:"Annotations settings name input"},NewAnnotation:{panelFilterSelect:"data-testid annotations-panel-filter",showInLabel:"show-in-label",previewInDashboard:"data-testid annotations-preview"}},Variables:{List:{addVariableCTA:Li.CallToActionCard.button("Add variable"),addVariableCTAV2:Li.CallToActionCard.buttonV2("Add variable"),newButton:"Variable editor New variable button",table:"Variable editor Table",tableRowNameFields:Ze=>`Variable editor Table Name field ${Ze}`,tableRowDefinitionFields:Ze=>`Variable editor Table Definition field ${Ze}`,tableRowArrowUpButtons:Ze=>`Variable editor Table ArrowUp button ${Ze}`,tableRowArrowDownButtons:Ze=>`Variable editor Table ArrowDown button ${Ze}`,tableRowDuplicateButtons:Ze=>`Variable editor Table Duplicate button ${Ze}`,tableRowRemoveButtons:Ze=>`Variable editor Table Remove button ${Ze}`},Edit:{General:{headerLink:"Variable editor Header link",modeLabelNew:"Variable editor Header mode New",modeLabelEdit:"Variable editor Header mode Edit",generalNameInput:"Variable editor Form Name field",generalNameInputV2:"data-testid Variable editor Form Name field",generalTypeSelect:"Variable editor Form Type select",generalTypeSelectV2:"data-testid Variable editor Form Type select",generalLabelInput:"Variable editor Form Label field",generalLabelInputV2:"data-testid Variable editor Form Label field",generalHideSelect:"Variable editor Form Hide select",generalHideSelectV2:"data-testid Variable editor Form Hide select",selectionOptionsMultiSwitch:"Variable editor Form Multi switch",selectionOptionsIncludeAllSwitch:"Variable editor Form IncludeAll switch",selectionOptionsCustomAllInput:"Variable editor Form IncludeAll field",selectionOptionsCustomAllInputV2:"data-testid Variable editor Form IncludeAll field",previewOfValuesOption:"Variable editor Preview of Values option",submitButton:"Variable editor Submit button",applyButton:"data-testid Variable editor Apply button"},QueryVariable:{queryOptionsDataSourceSelect:Li.DataSourcePicker.container,queryOptionsRefreshSelect:"Variable editor Form Query Refresh select",queryOptionsRefreshSelectV2:"data-testid Variable editor Form Query Refresh select",queryOptionsRegExInput:"Variable editor Form Query RegEx field",queryOptionsRegExInputV2:"data-testid Variable editor Form Query RegEx field",queryOptionsSortSelect:"Variable editor Form Query Sort select",queryOptionsSortSelectV2:"data-testid Variable editor Form Query Sort select",queryOptionsQueryInput:"Variable editor Form Default Variable Query Editor textarea",valueGroupsTagsEnabledSwitch:"Variable editor Form Query UseTags switch",valueGroupsTagsTagsQueryInput:"Variable editor Form Query TagsQuery field",valueGroupsTagsTagsValuesQueryInput:"Variable editor Form Query TagsValuesQuery field"},ConstantVariable:{constantOptionsQueryInput:"Variable editor Form Constant Query field",constantOptionsQueryInputV2:"data-testid Variable editor Form Constant Query field"},DatasourceVariable:{datasourceSelect:"data-testid datasource variable datasource type"},TextBoxVariable:{textBoxOptionsQueryInput:"Variable editor Form TextBox Query field",textBoxOptionsQueryInputV2:"data-testid Variable editor Form TextBox Query field"},CustomVariable:{customValueInput:"data-testid custom-variable-input"},IntervalVariable:{intervalsValueInput:"data-testid interval variable intervals input"}}}},Annotations:{marker:"data-testid annotation-marker"}},Dashboards:{url:"/dashboards",dashboards:Ze=>`Dashboard search item ${Ze}`},SaveDashboardAsModal:{newName:"Save dashboard title field",save:"Save dashboard button"},SaveDashboardModal:{save:"Dashboard settings Save Dashboard Modal Save button",saveVariables:"Dashboard settings Save Dashboard Modal Save variables checkbox",saveTimerange:"Dashboard settings Save Dashboard Modal Save timerange checkbox"},SharePanelModal:{linkToRenderedImage:"Link to rendered image"},ShareDashboardModal:{shareButton:"Share dashboard or panel",PublicDashboard:{Tab:"Tab Public dashboard",WillBePublicCheckbox:"data-testid public dashboard will be public checkbox",LimitedDSCheckbox:"data-testid public dashboard limited datasources checkbox",CostIncreaseCheckbox:"data-testid public dashboard cost may increase checkbox",PauseSwitch:"data-testid public dashboard pause switch",EnableAnnotationsSwitch:"data-testid public dashboard on off switch for annotations",CreateButton:"data-testid public dashboard create button",DeleteButton:"data-testid public dashboard delete button",CopyUrlInput:"data-testid public dashboard copy url input",CopyUrlButton:"data-testid public dashboard copy url button",TemplateVariablesWarningAlert:"data-testid public dashboard disabled template variables alert",UnsupportedDataSourcesWarningAlert:"data-testid public dashboard unsupported data sources alert",NoUpsertPermissionsWarningAlert:"data-testid public dashboard no upsert permissions alert",EnableTimeRangeSwitch:"data-testid public dashboard on off switch for time range",EmailSharingConfiguration:{Container:"data-testid email sharing config container",ShareType:"data-testid public dashboard share type",EmailSharingInput:"data-testid public dashboard email sharing input",EmailSharingInviteButton:"data-testid public dashboard email sharing invite button",EmailSharingList:"data-testid public dashboard email sharing list",DeleteEmail:"data-testid public dashboard delete email button",ReshareLink:"data-testid public dashboard reshare link button"}}},PublicDashboard:{page:"public-dashboard-page",NotAvailable:{container:"public-dashboard-not-available",title:"public-dashboard-title",pausedDescription:"public-dashboard-paused-description"}},RequestViewAccess:{form:"request-view-access-form",recipientInput:"request-view-access-recipient-input",submitButton:"request-view-access-submit-button"},Explore:{url:"/explore",General:{container:"data-testid Explore",graph:"Explore Graph",table:"Explore Table",scrollView:"data-testid explorer scroll view"}},SoloPanel:{url:Ze=>`/d-solo/${Ze}`},PluginsList:{page:"Plugins list page",list:"Plugins list",listItem:"Plugins list item",signatureErrorNotice:"Unsigned plugins notice"},PluginPage:{page:"Plugin page",signatureInfo:"Plugin signature info",disabledInfo:"Plugin disabled info"},PlaylistForm:{name:"Playlist name",interval:"Playlist interval",itemDelete:"Delete playlist item"},BrowseDashbards:{table:{row:Ze=>`data-testid ${Ze} row`,checkbox:Ze=>`data-testid ${Ze} checkbox`}},Search:{url:"/?search=openn",FolderView:{url:"/?search=open&layout=folders"}},PublicDashboards:{ListItem:{linkButton:"public-dashboard-link-button",configButton:"public-dashboard-configuration-button",trashcanButton:"public-dashboard-remove-button"}},UserListPage:{tabs:{allUsers:"data-testid all-users-tab",orgUsers:"data-testid org-users-tab",publicDashboardsUsers:"data-testid public-dashboards-users-tab",users:"data-testid users-tab"},org:{url:"/org/users"},admin:{url:"/admin/users"},publicDashboards:{container:"data-testid public-dashboards-users-list"},UserListAdminPage:{container:"data-testid user-list-admin-page"},UsersListPage:{container:"data-testid users-list-page"},UsersListPublicDashboardsPage:{container:"data-testid users-list-public-dashboards-page",DashboardsListModal:{listItem:Ze=>`data-testid dashboards-list-item-${Ze}`}}}},components:Li};var $a=t(66310),Ha=t(80011),Eo=t(42844);class Uo extends Oe{}Uo.Component=Ms;function Ms({model:Ze}){const ge=wr.getVariables(Ze).useState(),et=(0,$a.wW)(Kr);return i.createElement(i.Fragment,null,ge.variables.map(Ln=>i.createElement(er,{key:Ln.state.key,variable:Ln,styles:et})))}function er({variable:Ze,styles:ge}){const et=Ze.useState();return et.hide===mi.bU.hideVariable?null:i.createElement("div",{className:ge.container},i.createElement(Ar,{state:et,styles:ge}),i.createElement(Ze.Component,{model:Ze}))}function Ar({state:Ze,styles:ge}){var et;if(Ze.hide===mi.bU.hideLabel)return null;const Ln=`var-${Ze.key}`,zr=(et=Ze.label)!=null?et:Ze.name;return Ze.description?i.createElement(Ha.u,{content:Ze.description,placement:"bottom"},i.createElement("label",{className:ge.variableLabel,"data-testid":ji.pages.Dashboard.SubMenu.submenuItemLabels(zr),htmlFor:Ln},zr)):i.createElement("label",{className:ge.variableLabel,"data-testid":ji.pages.Dashboard.SubMenu.submenuItemLabels(zr),htmlFor:Ln},zr)}const Kr=Ze=>({container:(0,Eo.css)({display:"flex"}),variableLabel:(0,Eo.css)({background:Ze.isDark?Ze.colors.background.primary:Ze.colors.background.secondary,display:"flex",alignItems:"center",padding:Ze.spacing(0,1),fontWeight:Ze.typography.fontWeightMedium,fontSize:Ze.typography.bodySmall.fontSize,height:Ze.spacing(Ze.components.height.md),lineHeight:Ze.spacing(Ze.components.height.md),borderRadius:Ze.shape.borderRadius(1),border:`1px solid ${Ze.components.input.borderColor}`,position:"relative",right:-1})});class ur extends Oe{constructor(ge){super(ge),this._variablesThatHaveChanged=new Set,this._variablesToUpdate=new Set,this._updating=new Map,this._variableValueRecorder=new wn,this._onActivate=()=>{const et=wr.getTimeRange(this);this._subs.add(this.subscribeToEvent(Ke,Ln=>this._handleVariableValueChanged(Ln.payload))),this._subs.add(et.subscribeToState(()=>{this._refreshTimeRangeBasedVariables()})),this._subs.add(this.subscribeToState(this._onStateChanged)),this._checkForVariablesThatChangedWhileInactive();for(const Ln of this.state.variables)this._variableNeedsUpdate(Ln)&&this._variablesToUpdate.add(Ln);return this._updateNextBatch(),this._onDeactivate},this._onDeactivate=()=>{var et;for(const Ln of this._updating.values())(et=Ln.subscription)==null||et.unsubscribe();for(const Ln of this.state.variables)!this._variablesToUpdate.has(Ln)&&!this._updating.has(Ln)&&this._variableValueRecorder.recordCurrentValue(Ln);this._variablesToUpdate.clear(),this._updating.clear()},this._onStateChanged=(et,Ln)=>{const zr=this._variablesToUpdate.size;for(const Ji of Ln.variables)if(!et.variables.includes(Ji)){const Ja=this._updating.get(Ji);Ja?.subscription&&Ja.subscription.unsubscribe(),this._updating.delete(Ji),this._variablesToUpdate.delete(Ji)}for(const Ji of et.variables)Ln.variables.includes(Ji)||this._variableNeedsUpdate(Ji)&&this._variablesToUpdate.add(Ji);zr===0&&this._variablesToUpdate.size>0&&this._updateNextBatch()},this.addActivationHandler(this._onActivate)}getByName(ge){return this.state.variables.find(et=>et.state.name===ge)}_refreshTimeRangeBasedVariables(){for(const ge of this.state.variables)"refresh"in ge.state&&ge.state.refresh===mi.Bd.onTimeRangeChanged&&this._variablesToUpdate.add(ge);this._updateNextBatch()}_checkForVariablesThatChangedWhileInactive(){if(this._variableValueRecorder.hasValues())for(const ge of this.state.variables)this._variableValueRecorder.hasValueChanged(ge)&&(Gr(ge,"Changed while in-active"),this._addDependentVariablesToUpdateQueue(ge))}_variableNeedsUpdate(ge){return ge.validateAndUpdate?this._variableValueRecorder.hasRecordedValue(ge)?(Gr(ge,"Skipping updateAndValidate current value valid"),!1):!0:!1}_updateNextBatch(){if(this._variablesToUpdate.size===0){this._notifyDependentSceneObjects();return}for(const ge of this._variablesToUpdate){if(!ge.validateAndUpdate)throw new Error("Variable added to variablesToUpdate but does not have validateAndUpdate");if(this._updating.has(ge)||this._hasDependendencyInUpdateQueue(ge))continue;const et={variable:ge};this._updating.set(ge,et),Gr(ge,"updateAndValidate started"),et.subscription=ge.validateAndUpdate().subscribe({next:()=>this._validateAndUpdateCompleted(ge),error:Ln=>this._handleVariableError(ge,Ln)})}}_validateAndUpdateCompleted(ge){var et;const Ln=this._updating.get(ge);(et=Ln?.subscription)==null||et.unsubscribe(),this._updating.delete(ge),this._variablesToUpdate.delete(ge),Gr(ge,"updateAndValidate completed"),this._updateNextBatch()}_handleVariableError(ge,et){var Ln;const zr=this._updating.get(ge);(Ln=zr?.subscription)==null||Ln.unsubscribe(),this._updating.delete(ge),this._variablesToUpdate.delete(ge),ge.setState({loading:!1,error:et}),Gr(ge,"updateAndValidate error",et)}_hasDependendencyInUpdateQueue(ge){var et;if(!ge.variableDependency)return!1;for(const Ln of this._variablesToUpdate.values())if((et=ge.variableDependency)!=null&&et.hasDependencyOn(Ln.state.name))return!0;return!1}_handleVariableValueChanged(ge){this._variablesThatHaveChanged.add(ge),!this._updating.has(ge)&&(this._addDependentVariablesToUpdateQueue(ge),this._updateNextBatch())}_addDependentVariablesToUpdateQueue(ge){for(const et of this.state.variables)et.variableDependency&&et.variableDependency.hasDependencyOn(ge.state.name)&&(Gr(et,"Added to update queue, dependant variable value changed"),this._variablesToUpdate.add(et))}_notifyDependentSceneObjects(){this.parent&&(this._traverseSceneAndNotify(this.parent),this._variablesThatHaveChanged.clear())}_traverseSceneAndNotify(ge){this!==ge&&ge.isActive&&(ge.variableDependency&&ge.variableDependency.variableUpdatesCompleted(this._variablesThatHaveChanged),ge.forEachChild(et=>this._traverseSceneAndNotify(et)))}isVariableLoadingOrWaitingToUpdate(ge){return this.isActive?this._variablesToUpdate.has(ge)||this._updating.has(ge):!0}}function Gr(Ze,ge,et){Wt("SceneVariableSet",`Variable[${Ze.state.name}]: ${ge}`,et)}var Pi=Object.defineProperty,aa=Object.defineProperties,Fa=Object.getOwnPropertyDescriptors,tn=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,ir=(Ze,ge,et)=>ge in Ze?Pi(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Lr=(Ze,ge)=>{for(var et in ge||(ge={}))cn.call(ge,et)&&ir(Ze,et,ge[et]);if(tn)for(var et of tn(ge))nr.call(ge,et)&&ir(Ze,et,ge[et]);return Ze},ua=(Ze,ge)=>aa(Ze,Fa(ge));class _a extends Oe{constructor(ge){super(ua(Lr({type:"constant",value:"",name:""},ge),{skipUrlSync:!0}))}getValue(){return this.state.value}}var Ka=t(45383),yo=t(28580);function Ba({model:Ze}){const{value:ge,key:et,loading:Ln}=Ze.useState();return i.createElement(yo.Ph,{id:et,placeholder:"Select value",width:"auto",value:ge,allowCustomValue:!0,tabSelectsValue:!1,isLoading:Ln,options:Ze.getOptionsForSelect(),onChange:zr=>{Ze.changeValueTo(zr.value,zr.label)}})}function Ma({model:Ze}){const{value:ge,key:et,loading:Ln}=Ze.useState(),zr=(0,on.isArray)(ge)?ge:[ge];return i.createElement(yo.NU,{id:et,placeholder:"Select value",width:"auto",value:zr,tabSelectsValue:!1,allowCustomValue:!0,isLoading:Ln,options:Ze.getOptionsForSelect(),closeMenuOnSelect:!1,isClearable:!0,onOpenMenu:()=>{},onChange:Ji=>{Ze.changeValueTo(Ji.map(Ja=>Ja.value),Ji.map(Ja=>Ja.label))}})}function Mo(Ze){return Ze.state.isMulti?i.createElement(Ma,{model:Ze}):i.createElement(Ba,{model:Ze})}class Nr extends Oe{constructor(){super(...arguments),this._urlSync=new gi(this)}validateAndUpdate(){return this.getValueOptions({}).pipe((0,z.U)(ge=>(this.updateValueGivenNewOptions(ge),{})))}updateValueGivenNewOptions(ge){const et={options:ge,loading:!1,value:this.state.value,text:this.state.text};if(ge.length!==0){if(!this.hasAllValue())if(this.state.isMulti){const Ja=(Array.isArray(this.state.value)?this.state.value:[this.state.value]).filter(lo=>ge.find(To=>To.value===lo));if(Ja.length===0){const lo=this.getDefaultMultiState(ge);et.value=lo.value,et.text=lo.text}else if(!(0,on.isEqual)(Ja,this.state.value)){const lo=Ja.map(To=>ge.find(Xo=>Xo.value===To).label);et.value=Ja,et.text=lo}}else ge.find(Ja=>Ja.value===this.state.value)||(this.state.defaultToAll?(et.value=Vn,et.text=Dn):(et.value=ge[0].value,et.text=ge[0].label))}const{value:Ln,text:zr}=this.state;this.setStateHelper(et),(et.value!==Ln||et.text!==zr||this.hasAllValue())&&this.publishEvent(new Ke(this),!0)}getValue(){return this.hasAllValue()?this.state.allValue?new ea(this.state.allValue,this):this.state.options.map(ge=>ge.value):this.state.value}getValueText(){return this.hasAllValue()?Dn:Array.isArray(this.state.text)?this.state.text.join(" + "):String(this.state.text)}hasAllValue(){const ge=this.state.value;return ge===Vn||Array.isArray(ge)&&ge[0]===Vn}getDefaultMultiState(ge){return this.state.defaultToAll?{value:[Vn],text:[Dn]}:{value:[ge[0].value],text:[ge[0].label]}}changeValueTo(ge,et){if(!(ge===this.state.value&&et===this.state.text)){if(et||(Array.isArray(ge)?et=ge.map(Ln=>this.findLabelTextForValue(Ln)):et=this.findLabelTextForValue(ge)),Array.isArray(ge)){if(ge.length===0){const Ln=this.getDefaultMultiState(this.state.options);ge=Ln.value,et=Ln.text}ge[ge.length-1]===Vn?(ge=[Vn],et=[Dn]):ge[0]===Vn&&ge.length>1&&(ge.shift(),Array.isArray(et)&&et.shift())}this.setStateHelper({value:ge,text:et,loading:!1}),this.publishEvent(new Ke(this),!0)}}findLabelTextForValue(ge){const et=this.state.options.find(zr=>zr.value===ge);if(et)return et.label;const Ln=this.state.options.find(zr=>zr.label===ge);return Ln?Ln.label:ge}setStateHelper(ge){this.setState(ge)}getOptionsForSelect(){let ge=this.state.options;return this.state.includeAll&&(ge=[{value:Vn,label:Dn},...ge]),Array.isArray(this.state.value)||ge.find(Ln=>Ln.value===this.state.value)||(ge=[{value:this.state.value,label:String(this.state.text)},...ge]),ge}}class gi{constructor(ge){this._sceneObject=ge}getKey(){return`var-${this._sceneObject.state.name}`}getKeys(){return[this.getKey()]}getUrlState(){let ge=null,et=this._sceneObject.state.value;return Array.isArray(et)?ge=et.map(String):ge=String(et),{[this.getKey()]:ge}}updateFromUrl(ge){const et=ge[this.getKey()];et!=null&&this._sceneObject.changeValueTo(et)}}class ea{constructor(ge,et){this._value=ge,this._variable=et}formatter(ge){return ge===wt.b8.Text?Dn:ge===wt.b8.PercentEncode?vn.get(wt.b8.PercentEncode).formatter(this._value,[],this._variable):ge===wt.b8.QueryParam?vn.get(wt.b8.QueryParam).formatter(Dn,[],this._variable):this._value}}var dr=Object.defineProperty,ci=Object.getOwnPropertySymbols,yi=Object.prototype.hasOwnProperty,xa=Object.prototype.propertyIsEnumerable,Cr=(Ze,ge,et)=>ge in Ze?dr(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,ka=(Ze,ge)=>{for(var et in ge||(ge={}))yi.call(ge,et)&&Cr(Ze,et,ge[et]);if(ci)for(var et of ci(ge))xa.call(ge,et)&&Cr(Ze,et,ge[et]);return Ze};class Io extends Nr{constructor(ge){super(ka({type:"custom",query:"",value:"",text:"",options:[],name:""},ge)),this._variableDependency=new Xe(this,{statePaths:["query"]})}getValueOptions(ge){var et;const zr=((et=this.state.query.match(/(?:\\,|[^,])+/g))!=null?et:[]).map(Ji=>{var Ja;Ji=Ji.replace(/\\,/g,",");const lo=(Ja=/^(.+)\s:\s(.+)$/g.exec(Ji))!=null?Ja:[];if(lo.length===3){const[,To,Xo]=lo;return{label:To.trim(),value:Xo.trim()}}else return{label:Ji.trim(),value:Ji.trim()}});return(0,Ka.of)(zr)}}Io.Component=({model:Ze})=>Mo(Ze);var Co=Object.defineProperty,_s=Object.getOwnPropertySymbols,Is=Object.prototype.hasOwnProperty,xs=Object.prototype.propertyIsEnumerable,Zs=(Ze,ge,et)=>ge in Ze?Co(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Ns=(Ze,ge)=>{for(var et in ge||(ge={}))Is.call(ge,et)&&Zs(Ze,et,ge[et]);if(_s)for(var et of _s(ge))xs.call(ge,et)&&Zs(Ze,et,ge[et]);return Ze};class Us extends Nr{constructor(ge){super(Ns({type:"datasource",value:"",text:"",options:[],name:"",regex:"",pluginId:""},ge)),this._variableDependency=new Xe(this,{statePaths:["regex"]})}getValueOptions(ge){if(!this.state.pluginId)return(0,Ka.of)([]);const et=this.getDataSourceTypes();let Ln;if(this.state.regex){const Ji=wr.interpolate(this,this.state.regex,void 0,"regex");Ln=(0,it.jO)(Ji)}const zr=[];for(let Ji=0;Ji<et.length;Ji++){const Ja=et[Ji];Ja.meta.id===this.state.pluginId&&(fu(Ja,Ln)&&zr.push({label:Ja.name,value:Ja.name}),bu(Ja,Ln)&&zr.push({label:"default",value:"default"}))}return zr.length===0&&zr.push({label:"No data sources found",value:""}),(0,Ka.of)(zr)}getDataSourceTypes(){return(0,se.F)().getList({metrics:!0,variables:!1})}}Us.Component=({model:Ze})=>Mo(Ze);function fu(Ze,ge){return ge?ge.exec(Ze.name):!0}function bu(Ze,ge){return Ze.isDefault?ge?ge.exec("default"):!0:!1}var Ys=t(91053),Hu=t(22479),Zu=t(56361),ql=t(84677),Sn=t(91826),Wn=t(56469),vr=t(53933),kr=t(79726);const ui=Ze=>!!Ze.metricFindQuery&&!Ze.variables,ta=Ze=>{if(!Ze.variables||Ze.variables.getType()!==kr.j2.Standard)return!1;const ge=Ze.variables;return"toDataQuery"in ge&&!!ge.toDataQuery},St=Ze=>{if(!Ze.variables||Ze.variables.getType()!==kr.j2.Custom)return!1;const ge=Ze.variables;return"query"in ge&&"editor"in ge&&!!ge.query&&!!ge.editor};var pt=Object.defineProperty,kt=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,Mn=Object.getOwnPropertySymbols,Pr=Object.prototype.hasOwnProperty,Hi=Object.prototype.propertyIsEnumerable,jt=(Ze,ge,et)=>ge in Ze?pt(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,$n=(Ze,ge)=>{for(var et in ge||(ge={}))Pr.call(ge,et)&&jt(Ze,et,ge[et]);if(Mn)for(var et of Mn(ge))Hi.call(ge,et)&&jt(Ze,et,ge[et]);return Ze},pn=(Ze,ge)=>kt(Ze,_t(ge));class ee{constructor(ge,et=(0,qa.Pl)()){this.datasource=ge,this._runRequest=et}getTarget(ge){if(ta(this.datasource))return this.datasource.variables.toDataQuery(ge.state.query);throw new Error("Couldn't create a target with supplied arguments.")}runRequest(ge,et){return ta(this.datasource)?this.datasource.variables.query?this._runRequest(this.datasource,et,this.datasource.variables.query):this._runRequest(this.datasource,et):Be()}}class oe{constructor(ge){this.datasource=ge}getTarget(ge){if(ui(this.datasource))return ge.state.query;throw new Error("Couldn't create a target with supplied arguments.")}runRequest({variable:ge},et){return ui(this.datasource)?(0,Ys.D)(this.datasource.metricFindQuery(ge.state.query,pn($n({},et),{variable:{name:ge.state.name,type:ge.state.type}}))).pipe((0,Hu.z)(Ln=>{if(!Ln||!Ln.length)return Be();const zr=Ln;return(0,Ka.of)({series:zr,state:vr.Gu.Done,timeRange:et.range})})):Be()}}class De{constructor(ge,et=(0,qa.Pl)()){this.datasource=ge,this._runRequest=et}getTarget(ge){if(St(this.datasource))return ge.state.query;throw new Error("Couldn't create a target with supplied arguments.")}runRequest(ge,et){return St(this.datasource)?this.datasource.variables.query?this._runRequest(this.datasource,et,this.datasource.variables.query):this._runRequest(this.datasource,et):Be()}}function Be(){return(0,Ka.of)({state:vr.Gu.Done,series:[],timeRange:(0,$.JK)()})}function gt(Ze){if(ta(Ze))return new ee(Ze,(0,qa.Pl)());if(ui(Ze))return new oe(Ze);if(St(Ze))return new De(Ze);throw new Error(`Couldn't create a query runner for datasource ${Ze.type}`)}let Ht=gt;const nn=(Ze,ge,et)=>{var Ln,zr,Ji,Ja,lo,To;let Xo,mu=[];Ze&&(Xo=(0,it.jO)(Ze));for(let ws=0;ws<et.length;ws++){const Uu=et[ws];let el=Uu.text===void 0||Uu.text===null?Uu.value:Uu.text,Gl=Uu.value===void 0||Uu.value===null?Uu.text:Uu.value;if((0,on.isNumber)(Gl)&&(Gl=Gl.toString()),(0,on.isNumber)(el)&&(el=el.toString()),Xo){const Al=Rn(Gl,Xo);if(!Al.length)continue;const ac=Al.find(Su=>Su.groups&&Su.groups.value),Lc=Al.find(Su=>Su.groups&&Su.groups.text),xl=Al.find(Su=>Su.length>1),hl=Al.length>1&&xl;if(ac||Lc)Gl=(Ji=(Ln=ac?.groups)==null?void 0:Ln.value)!=null?Ji:(zr=Lc?.groups)==null?void 0:zr.text,el=(To=(Ja=Lc?.groups)==null?void 0:Ja.text)!=null?To:(lo=ac?.groups)==null?void 0:lo.value;else if(hl){for(let Su=0;Su<Al.length;Su++){const Dc=Al[Su];mu.push({label:Dc[1],value:Dc[1]})}continue}else xl&&(el=xl[1],Gl=xl[1])}mu.push({label:el,value:Gl})}return mu=(0,on.uniqBy)(mu,"value"),Yn(mu,ge)},Rn=(Ze,ge)=>{const et=[];let Ln=null;ge.lastIndex=0;do Ln=ge.exec(Ze),Ln&&et.push(Ln);while(ge.global&&Ln&&Ln[0]!==""&&Ln[0]!==void 0);return et},Yn=(Ze,ge)=>{if(ge===mi.$U.disabled)return Ze;const et=Math.ceil(ge/2),Ln=ge%2===0;return et===1?Ze=(0,on.sortBy)(Ze,"text"):et===2?Ze=(0,on.sortBy)(Ze,zr=>{if(!zr.text)return-1;const Ji=zr.text.match(/.*?(\d+).*/);return!Ji||Ji.length<2?-1:parseInt(Ji[1],10)}):et===3&&(Ze=(0,on.sortBy)(Ze,zr=>(0,on.toLower)(zr.text))),Ln&&(Ze=Ze.reverse()),Ze};function gr(){return Ze=>Ze.pipe((0,z.U)(ge=>{const et=ge.series;if(!et||!et.length)return[];if(Ai(et))return et;const Ln=(0,ii.F9)(et),zr=[];let Ji=-1,Ja=-1,lo=-1,To=-1;for(const Xo of Ln)for(let mu=0;mu<Xo.fields.length;mu++){const ws=Xo.fields[mu],Uu=(0,Oa.CZ)(ws,Xo,et).toLowerCase();ws.type===Ca.fS.string&&lo===-1&&(lo=mu),Uu==="text"&&ws.type===Ca.fS.string&&Ja===-1&&(Ja=mu),Uu==="value"&&ws.type===Ca.fS.string&&Ji===-1&&(Ji=mu),Uu==="expandable"&&(ws.type===Ca.fS.boolean||ws.type===Ca.fS.number)&&To===-1&&(To=mu)}if(lo===-1)throw new Error("Couldn't find any field of type string in the results.");for(const Xo of et)for(let mu=0;mu<Xo.length;mu++){const ws=To!==-1?Xo.fields[To].values.get(mu):void 0,Uu=Xo.fields[lo].values.get(mu),el=Ja!==-1?Xo.fields[Ja].values.get(mu):null,Gl=Ji!==-1?Xo.fields[Ji].values.get(mu):null;if(Ji===-1&&Ja===-1){zr.push({text:Uu,value:Uu,expandable:ws});continue}if(Ji===-1&&Ja!==-1){zr.push({text:el,value:el,expandable:ws});continue}if(Ji!==-1&&Ja===-1){zr.push({text:Gl,value:Gl,expandable:ws});continue}zr.push({text:el,value:Gl,expandable:ws})}return zr}))}function Ai(Ze){if(!Ze)return!1;if(!Ze.length)return!0;const ge=Ze[0];if((0,ii.aY)(ge))return!1;for(const et in ge){if(!ge.hasOwnProperty(et)||ge[et]!==null&&typeof ge[et]!="string"&&typeof ge[et]!="number")continue;const Ln=et.toLowerCase();if(Ln==="text"||Ln==="value")return!0}return!1}var $i=Object.defineProperty,ma=Object.getOwnPropertySymbols,La=Object.prototype.hasOwnProperty,Qa=Object.prototype.propertyIsEnumerable,go=(Ze,ge,et)=>ge in Ze?$i(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Ao=(Ze,ge)=>{for(var et in ge||(ge={}))La.call(ge,et)&&go(Ze,et,ge[et]);if(ma)for(var et of ma(ge))Qa.call(ge,et)&&go(Ze,et,ge[et]);return Ze};class Fo extends Nr{constructor(ge){super(Ao({type:"query",name:"",value:"",text:"",query:"",options:[],datasource:null,regex:"",refresh:mi.Bd.onDashboardLoad,sort:mi.$U.alphabeticalAsc},ge)),this._variableDependency=new Xe(this,{statePaths:["regex","query","datasource"]})}getValueOptions(ge){return this.state.query===""||!this.state.datasource?(0,Ka.of)([]):(this.setState({loading:!0}),(0,Ys.D)(ye(this.state.datasource,{__sceneObject:{text:"__sceneObject",value:this}})).pipe((0,Hu.z)(et=>{const Ln=Ht(et),zr=Ln.getTarget(this),Ji=this.getRequest(zr);return Ln.runRequest({variable:this},Ji).pipe((0,Zu.h)(Ja=>Ja.state===vr.Gu.Done||Ja.state===vr.Gu.Error),(0,ql.q)(1),(0,Hu.z)(Ja=>Ja.state===vr.Gu.Error?(0,Sn._)(()=>Ja.error):(0,Ka.of)(Ja)),gr(),(0,Hu.z)(Ja=>{let lo="";return this.state.regex&&(lo=wr.interpolate(this,this.state.regex,void 0,"regex")),(0,Ka.of)(nn(lo,this.state.sort,Ja))}),(0,Wn.K)(Ja=>Ja.cancelled?(0,Ka.of)([]):(0,Sn._)(()=>Ja)))})))}getRequest(ge){const et={__sceneObject:{text:"__sceneObject",value:this}},Ln=this.state.refresh===mi.Bd.onTimeRangeChanged?wr.getTimeRange(this).state.value:(0,$.JK)();return{app:Wi.zj.Dashboard,requestId:(0,V.Z)(),timezone:"",range:Ln,interval:"",intervalMs:0,targets:[ge],scopedVars:et,startTime:Date.now()}}}Fo.Component=({model:Ze})=>Mo(Ze);var Ho=t(69966),eu=t(48592);function ks(Ze,ge){const et=["A","B","C","D","E","F","G","H"],Ln=[];if(ge>5)return[];for(const zr of et){const Ji=`${Ze}${zr}`;Ln.push({name:Ji,children:ks(Ji,ge+1)})}return Ln}function Gu(Ze,ge,et){if(et>=ge.length||ge[et]==="*")return Ze;const Ln=ge[et];let zr=[],Ji=[Ln];Ln.startsWith("{")&&(Ji=Ln.replace(/\{|\}/g,"").split(","));for(const Ja of Ze)for(const lo of Ji)if(lo.indexOf("*")!==-1){const To=lo.replace("*","");new RegExp(`^${To}.*`,"gi").test(Ja.name)&&(zr=zr.concat(Gu([Ja],ge,et+1)))}else Ja.name===lo&&(zr=zr.concat(Gu(Ja.children,ge,et+1)));return zr}function an(Ze){if(Ze.indexOf("value")===0)return[{name:Ze,children:[]}];const ge=ks("",0);return Gu(ge,Ze.split("."),0)}var Nn=Object.defineProperty,tr=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,oi=(Ze,ge,et)=>ge in Ze?Nn(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,ki=(Ze,ge)=>{for(var et in ge||(ge={}))In.call(ge,et)&&oi(Ze,et,ge[et]);if(tr)for(var et of tr(ge))di.call(ge,et)&&oi(Ze,et,ge[et]);return Ze};class ri extends Nr{constructor(ge){super(ki({type:"custom",name:"Test",value:"Value",text:"Text",query:"Query",options:[],refresh:mi.Bd.onDashboardLoad},ge)),this.completeUpdate=new Ho.x,this.isGettingValues=!0,this.getValueOptionsCount=0,this._variableDependency=new Xe(this,{statePaths:["query"]})}getValueOptions(ge){const{delayMs:et}=this.state;return this.getValueOptionsCount+=1,new eu.y(Ln=>{this.setState({loading:!0});const zr=this.completeUpdate.subscribe({next:()=>{Ln.next(this.issueQuery())}});let Ji;return et&&(Ji=setTimeout(()=>this.signalUpdateCompleted(),et)),this.isGettingValues=!0,()=>{zr.unsubscribe(),clearTimeout(Ji),this.isGettingValues=!1}})}issueQuery(){const ge=wr.interpolate(this,this.state.query),et=an(ge).map(Ln=>({label:Ln.name,value:Ln.name}));return this.setState({issuedQuery:ge,options:et}),et}signalUpdateCompleted(){this.completeUpdate.next(1)}}ri.Component=({model:Ze})=>Mo(Ze);var bi=t(1128);function _n(Ze,ge){ge===void 0&&(ge=0);var et=(0,i.useRef)(!1),Ln=(0,i.useRef)(),zr=(0,i.useRef)(Ze),Ji=(0,i.useCallback)(function(){return et.current},[]),Ja=(0,i.useCallback)(function(){et.current=!1,Ln.current&&clearTimeout(Ln.current),Ln.current=setTimeout(function(){et.current=!0,zr.current()},ge)},[ge]),lo=(0,i.useCallback)(function(){et.current=null,Ln.current&&clearTimeout(Ln.current)},[]);return(0,i.useEffect)(function(){zr.current=Ze},[Ze]),(0,i.useEffect)(function(){return Ja(),lo},[ge]),[Ji,lo,Ja]}function Ua(Ze,ge,et){ge===void 0&&(ge=0),et===void 0&&(et=[]);var Ln=_n(Ze,ge),zr=Ln[0],Ji=Ln[1],Ja=Ln[2];return(0,i.useEffect)(Ja,et),[zr,Ji]}function va({model:Ze}){const{value:ge,key:et,loading:Ln}=Ze.useState(),[zr,Ji]=(0,i.useState)(ge);Ua(()=>{Ze.setValue(zr)},250,[zr]);const Ja=(0,i.useCallback)(lo=>{Ji(lo.target.value)},[Ji]);return i.createElement(bi.I,{id:et,placeholder:"Enter variable value",value:zr,loading:Ln,onChange:Ja})}var Va=Object.defineProperty,Qi=Object.getOwnPropertySymbols,ro=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,Nt=(Ze,ge,et)=>ge in Ze?Va(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,un=(Ze,ge)=>{for(var et in ge||(ge={}))ro.call(ge,et)&&Nt(Ze,et,ge[et]);if(Qi)for(var et of Qi(ge))Pe.call(ge,et)&&Nt(Ze,et,ge[et]);return Ze};class xn extends Oe{constructor(ge){super(un({type:"textbox",value:"",name:""},ge)),this._urlSync=new zt(this,{keys:[this.getKey()]})}getValue(){return this.state.value}setValue(ge){this.setState({value:ge}),this.publishEvent(new Ke(this),!0)}getKey(){return`var-${this.state.name}`}getUrlState(){return{[this.getKey()]:this.state.value}}updateFromUrl(ge){const et={},Ln=ge[this.getKey()];typeof Ln=="string"&&(et.value=Ln),this.setState(et)}}xn.Component=({model:Ze})=>i.createElement(va,{model:Ze});class zn{constructor(){this.urlKeyMapper=new sr,this._stateSub=null,this._locationSub=null,this._onLocationUpdate=ge=>{const et=new URLSearchParams(ge.search);this.urlKeyMapper.rebuldIndex(this._sceneRoot),this._syncSceneStateFromUrl(this._sceneRoot,et)},this._onStateChanged=({payload:ge})=>{const et=ge.changedObject;if(et.urlSync){const Ln=et.urlSync.getUrlState(),zr=v.E1.getSearch(),Ji={};this.urlKeyMapper.rebuldIndex(this._sceneRoot);for(const[Ja,lo]of Object.entries(Ln)){const To=this.urlKeyMapper.getUniqueKey(Ja,et),Xo=zr.getAll(To);Tr(Xo,lo)||(Ji[To]=lo)}Object.keys(Ji).length>0&&v.E1.partial(Ji,!0)}}}initSync(ge){this._locationSub||(Wt("UrlSyncManager","New location listen"),this._locationSub=v.E1.getHistory().listen(this._onLocationUpdate)),this._stateSub&&(Wt("UrlSyncManager","Unregister previous scene state subscription",this._sceneRoot.state.key),this._stateSub.unsubscribe()),this._sceneRoot=ge,this._stateSub=ge.subscribeToEvent(q,this._onStateChanged),this.syncFrom(this._sceneRoot)}cleanUp(ge){this._sceneRoot===ge&&(Wt("UrlSyncManager","Clean up"),this._locationSub&&(this._locationSub(),Wt("UrlSyncManager","Unregister history listen"),this._locationSub=null),this._stateSub&&(this._stateSub.unsubscribe(),this._stateSub=null,Wt("UrlSyncManager","Root deactived, unsub to state","same key",this._sceneRoot.state.key===ge.state.key)))}syncFrom(ge){const et=v.E1.getSearch();this.urlKeyMapper.rebuldIndex(this._sceneRoot),this._syncSceneStateFromUrl(ge,et)}_syncSceneStateFromUrl(ge,et){if(ge.urlSync){const Ln={},zr=ge.urlSync.getUrlState();for(const Ji of ge.urlSync.getKeys()){const Ja=this.urlKeyMapper.getUniqueKey(Ji,ge),lo=et.getAll(Ja),To=zr[Ji];Tr(lo,To)||(lo.length>0?Array.isArray(To)?Ln[Ji]=lo:Ln[Ji]=lo[0]:Ln[Ji]=null)}Object.keys(Ln).length>0&&ge.urlSync.updateFromUrl(Ln)}ge.forEachChild(Ln=>this._syncSceneStateFromUrl(Ln,et))}}class sr{constructor(){this.index=new Map}getUniqueKey(ge,et){const Ln=this.index.get(ge);if(!Ln)throw new Error("Cannot find any scene object that uses the key '"+ge+"'");const zr=Ln.findIndex(Ji=>Ji.sceneObject===et);return zr>0?`${ge}-${zr+1}`:ge}rebuldIndex(ge){this.index.clear(),this.buildIndex(ge,0)}buildIndex(ge,et){if(ge.urlSync)for(const Ln of ge.urlSync.getKeys()){const zr=this.index.get(Ln);zr?(zr.push({sceneObject:ge,depth:et}),zr.sort((Ji,Ja)=>Ji.depth-Ja.depth)):this.index.set(Ln,[{sceneObject:ge,depth:et}])}ge.forEachChild(Ln=>this.buildIndex(Ln,et+1))}}function Tr(Ze,ge){return Ze.length===0&&ge==null?!0:!Array.isArray(ge)&&Ze?.length===1?ge===Ze[0]:ge?.length===0&&Ze===null?!0:(0,on.isEqual)(Ze,ge)}let Br;function Er(){return Br||(Br=new zn),Br}class Sr extends Oe{constructor(ge){super(ge),this.addActivationHandler(()=>()=>Er().cleanUp(this))}initUrlSync(){Er().initSync(this)}}Sr.Component=Vr;function Vr({model:Ze}){const{body:ge,controls:et}=Ze.useState(),Ln=(0,$a.wW)(fi);return i.createElement("div",{className:Ln.container},et&&i.createElement("div",{className:Ln.controls},et.map(zr=>i.createElement(zr.Component,{key:zr.state.key,model:zr}))),i.createElement("div",{className:Ln.body},i.createElement(ge.Component,{model:ge})))}function fi(Ze){return{container:(0,Eo.css)({flexGrow:1,display:"flex",gap:Ze.spacing(2),minHeight:"100%",flexDirection:"column"}),body:(0,Eo.css)({flexGrow:1,display:"flex",gap:"8px"}),controls:(0,Eo.css)({display:"flex",gap:Ze.spacing(1),alignItems:"center",flexWrap:"wrap"})}}var xr=t(79248),Wr=t(83335),ti=t(64987),xi=t(21708),Gi=t(32713),_i=t(34667),da=function(){};function Sa(Ze){for(var ge=[],et=1;et<arguments.length;et++)ge[et-1]=arguments[et];Ze&&Ze.addEventListener&&Ze.addEventListener.apply(Ze,ge)}function Pa(Ze){for(var ge=[],et=1;et<arguments.length;et++)ge[et-1]=arguments[et];Ze&&Ze.removeEventListener&&Ze.removeEventListener.apply(Ze,ge)}var oo=typeof window<"u",mo=typeof navigator<"u",Ga=oo?i.useLayoutEffect:i.useEffect;const no=Ga;var ca={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function co(){var Ze=(0,i.useState)(null),ge=Ze[0],et=Ze[1],Ln=(0,i.useState)(ca),zr=Ln[0],Ji=Ln[1],Ja=(0,i.useMemo)(function(){return new window.ResizeObserver(function(lo){if(lo[0]){var To=lo[0].contentRect,Xo=To.x,mu=To.y,ws=To.width,Uu=To.height,el=To.top,Gl=To.left,Al=To.bottom,ac=To.right;Ji({x:Xo,y:mu,width:ws,height:Uu,top:el,left:Gl,bottom:Al,right:ac})}})},[]);return no(function(){if(ge)return Ja.observe(ge),function(){Ja.disconnect()}},[ge]),[et,zr]}const Yo=oo&&typeof window.ResizeObserver<"u"?co:function(){return[da,ca]};var bo=t(90665),Ea=t(92056),ko=t(37647),Es=t(70823);function Ts(Ze){return Ze.useState!==void 0}var rs=Object.getOwnPropertySymbols,ls=Object.prototype.hasOwnProperty,Ss=Object.prototype.propertyIsEnumerable,cs=(Ze,ge)=>{var et={};for(var Ln in Ze)ls.call(Ze,Ln)&&ge.indexOf(Ln)<0&&(et[Ln]=Ze[Ln]);if(Ze!=null&&rs)for(var Ln of rs(Ze))ge.indexOf(Ln)<0&&Ss.call(Ze,Ln)&&(et[Ln]=Ze[Ln]);return et};function Do({model:Ze}){var ge;const et=Ze.useState(),{title:Ln,description:zr,options:Ji,fieldConfig:Ja,pluginLoadError:lo,$data:To,displayMode:Xo,hoverHeader:mu,menu:ws,headerActions:Uu}=et,el=cs(et,["title","description","options","fieldConfig","pluginLoadError","$data","displayMode","hoverHeader","menu","headerActions"]),[Gl,{width:Al,height:ac}]=Yo(),Lc=Ze.getPlugin(),xl=wr.getLayout(Ze),hl=xl.isDraggable()&&((ge=el.isDraggable)!=null?ge:!0),Su=hl&&xl.getDragClass?xl.getDragClass():"",Dc=hl&&xl.getDragClassCancel?xl.getDragClassCancel():"",Xc=wr.getData(Ze),jc=Xc.useState(),Nc=Ze.applyFieldConfig(jc.data),ad=Ze.interpolate(Ln,void 0,"text"),kf=wr.getTimeRange(Ze).getTimeZone();if(lo)return i.createElement("div",null,"Failed to load plugin: ",lo);if(!Lc)return i.createElement("div",null,"Loading plugin panel...");if(!Lc.panel)return i.createElement("div",null,"Panel plugin has no panel component");const Cf=Lc.panel;To&&To.setContainerWidth&&To.setContainerWidth(Al);const Rd=[];Ze.state.$timeRange&&Rd.push(i.createElement(Ze.state.$timeRange.Component,{model:Ze.state.$timeRange}));let vh;ws&&(vh=i.createElement(ws.Component,{model:ws}));let Vf;Uu&&(Ts(Uu)?Vf=i.createElement(Uu.Component,{model:Uu}):Vf=Uu);const dd=Nc,oc=Xc.isDataReadyToDisplay?Xc.isDataReadyToDisplay():!0;return i.createElement("div",{ref:Gl,style:{position:"absolute",width:"100%",height:"100%"}},Al>0&&ac>0&&i.createElement(Ea.fm,{title:ad,description:zr?()=>Ze.interpolate(zr):"",loadingState:dd.state,statusMessage:fs(dd,lo),width:Al,height:ac,displayMode:Xo,hoverHeader:mu,titleItems:Rd,dragClass:Su,actions:Vf,dragClassCancel:Dc,padding:Lc.noPadding?"none":"md",menu:vh,onCancelQuery:Ze.onCancelQuery},(hd,xf)=>i.createElement(i.Fragment,null,i.createElement(ko.z4,{dependencies:[Lc,dd]},i.createElement(bo.b,{meta:Lc.meta},i.createElement(Es._w,{value:Ze.getPanelContext()},oc&&i.createElement(Cf,{id:1,data:dd,title:Ln,timeRange:dd.timeRange,timeZone:kf,options:Ji,fieldConfig:Ja,transparent:!1,width:hd,height:xf,renderCounter:0,replaceVariables:Ze.interpolate,onOptionsChange:Ze.onOptionsChange,onFieldConfigChange:Ze.onFieldConfigChange,onChangeTimeRange:Ze.onChangeTimeRange,eventBus:(0,Gi.N$)()})))))))}function fs(Ze,ge){return ge||(Ze.error?Ze.error.message:void 0)}var is=t(25587),Os=t(1141),Qs=t(19221),du=t(76178),Yu=t(76761),$u=Object.defineProperty,Xu=Object.defineProperties,su=Object.getOwnPropertyDescriptors,Pu=Object.getOwnPropertySymbols,Lu=Object.prototype.hasOwnProperty,hu=Object.prototype.propertyIsEnumerable,Js=(Ze,ge,et)=>ge in Ze?$u(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,ys=(Ze,ge)=>{for(var et in ge||(ge={}))Lu.call(ge,et)&&Js(Ze,et,ge[et]);if(Pu)for(var et of Pu(ge))hu.call(ge,et)&&Js(Ze,et,ge[et]);return Ze},qo=(Ze,ge)=>Xu(Ze,su(ge));const Ps="hideSeriesFrom",Ws=(0,is.Y4)(Ps);function Qo(Ze,ge,et,Ln){const{overrides:zr}=et,Ji=Ze,Ja=zr.findIndex(Ws);if(Ja<0){if(ge===Yu.R.ToggleSelection){const Uu=ds([Ji,...pu(zr,Ln)]);return qo(ys({},et),{overrides:[...et.overrides,Uu]})}const mu=Hs(Ln,Ji),ws=ds(mu);return qo(ys({},et),{overrides:[...et.overrides,ws]})}const lo=Array.from(zr),[To]=lo.splice(Ja,1);if(ge===Yu.R.ToggleSelection){let mu=tu(To);const ws=pu(lo,Ln);if(ws.length>0&&(mu=mu.filter(el=>ws.indexOf(el)<0)),mu[0]===Ji&&mu.length===1)return qo(ys({},et),{overrides:lo});const Uu=ds([Ji,...ws]);return qo(ys({},et),{overrides:[...lo,Uu]})}const Xo=zu(To,Ji);return Ou(Xo,Ln)?qo(ys({},et),{overrides:lo}):qo(ys({},et),{overrides:[...lo,Xo]})}function ds(Ze,ge=Os.Ys.exclude,et){return et=et??{id:"custom.hideFrom",value:{viz:!0,legend:!1,tooltip:!1}},{__systemRef:Ps,matcher:{id:Qs.mi.byNames,options:{mode:ge,names:Ze,prefix:ge===Os.Ys.exclude?"All except:":void 0,readOnly:!0}},properties:[qo(ys({},et),{value:{viz:!0,legend:!1,tooltip:!1}})]}}const zu=(Ze,ge,et=Os.Ys.exclude)=>{const Ln=Ze.properties.find(Ja=>Ja.id==="custom.hideFrom"),zr=tu(Ze),Ji=zr.findIndex(Ja=>Ja===ge);return Ji<0?zr.push(ge):zr.splice(Ji,1),ds(zr,et,Ln)},tu=Ze=>{var ge;const et=(ge=Ze.matcher.options)==null?void 0:ge.names;return Array.isArray(et)?[...et]:[]},Ou=(Ze,ge)=>tu(Ze).length===Hs(ge).length,Hs=(Ze,ge)=>{const et=new Set;for(const Ln of Ze)for(const zr of Ln.fields){if(zr.type!==Ca.fS.number)continue;const Ji=(0,Oa.CZ)(zr,Ln,Ze);Ji!==ge&&et.add(Ji)}return Array.from(et)},pu=(Ze,ge)=>{var et;let Ln=[];for(const zr of Ze){const Ji=zr.properties.find(Ja=>Ja.id==="custom.hideFrom");if(Ji!==void 0&&((et=Ji.value)==null?void 0:et.legend)===!0){const lo=du.Ls.get(zr.matcher.id).get(zr.matcher.options);for(const To of ge)for(const Xo of To.fields){if(Xo.type!==Ca.fS.number)continue;const mu=(0,Oa.CZ)(Xo,To,ge);lo(Xo,To,ge)&&Ln.push(mu)}}}return Ln};var ku=t(93666),Nu=Object.defineProperty,Fu=Object.defineProperties,Ku=Object.getOwnPropertyDescriptors,sl=Object.getOwnPropertySymbols,lu=Object.prototype.hasOwnProperty,Tu=Object.prototype.propertyIsEnumerable,Vs=(Ze,ge,et)=>ge in Ze?Nu(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Ds=(Ze,ge)=>{for(var et in ge||(ge={}))lu.call(ge,et)&&Vs(Ze,et,ge[et]);if(sl)for(var et of sl(ge))Tu.call(ge,et)&&Vs(Ze,et,ge[et]);return Ze},Ks=(Ze,ge)=>Fu(Ze,Ku(ge));const nu=(Ze,ge,et)=>{const{overrides:Ln}=et,zr=et.overrides.findIndex(Xo=>Xo.matcher.id===Qs.mi.byName&&Xo.matcher.options===Ze);if(zr<0)return Ks(Ds({},et),{overrides:[...et.overrides,Ju(Ze,ge)]});const Ji=Array.from(Ln),Ja=Ji[zr],lo=Ja.properties.findIndex(Xo=>Xo.id==="color");if(lo<0)return Ji[zr]=Ks(Ds({},Ja),{properties:[...Ja.properties,nl(ge)]}),Ks(Ds({},et),{overrides:Ji});const To=Array.from(Ja.properties);return To[lo]=nl(ge),Ji[zr]=Ks(Ds({},Ja),{properties:To}),Ks(Ds({},et),{overrides:Ji})},Ju=(Ze,ge)=>({matcher:{id:Qs.mi.byName,options:Ze},properties:[nl(ge)]}),nl=Ze=>({id:"color",value:{mode:ku.S.Fixed,fixedColor:Ze}});var ec=Object.defineProperty,Mc=Object.defineProperties,hc=Object.getOwnPropertyDescriptors,Ol=Object.getOwnPropertySymbols,Nl=Object.prototype.hasOwnProperty,wl=Object.prototype.propertyIsEnumerable,Fl=(Ze,ge,et)=>ge in Ze?ec(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,rc=(Ze,ge)=>{for(var et in ge||(ge={}))Nl.call(ge,et)&&Fl(Ze,et,ge[et]);if(Ol)for(var et of Ol(ge))wl.call(ge,et)&&Fl(Ze,et,ge[et]);return Ze},Ic=(Ze,ge)=>Mc(Ze,hc(ge));class kl extends Oe{constructor(ge){super(rc({options:{},fieldConfig:{defaults:{},overrides:[]},title:"Title",pluginId:"timeseries"},ge)),this._variableDependency=new Xe(this,{statePaths:["title","options","fieldConfig"]}),this._structureRev=0,this.onChangeTimeRange=et=>{wr.getTimeRange(this).onTimeRangeChange({raw:{from:(0,Bt.zh)(et.from),to:(0,Bt.zh)(et.to)},from:(0,Bt.zh)(et.from),to:(0,Bt.zh)(et.to)})},this.onOptionsChange=et=>{this.setState({options:et})},this.onFieldConfigChange=et=>{this.setState({fieldConfig:et})},this.interpolate=(et,Ln,zr)=>wr.interpolate(this,et,Ln,zr),this.onCancelQuery=()=>{var et;const Ln=wr.getData(this);(et=Ln.cancelQuery)==null||et.call(Ln)},this._onSeriesColorChange=(et,Ln)=>{this.onFieldConfigChange(nu(et,Ln,this.state.fieldConfig))},this._onSeriesVisibilityChange=(et,Ln)=>{this._dataWithFieldConfig&&this.onFieldConfigChange(Qo(et,Ln,this.state.fieldConfig,this._dataWithFieldConfig.series))},this._onInstanceStateChange=et=>{this.setState({pluginInstanceState:et})},this._onToggleLegendSort=et=>{const Ln=this.state.options.legend;if(!Ln)return;let zr=Ln.sortDesc,Ji=Ln.sortBy;et!==Ji&&(zr=void 0),zr===!1?(Ji=void 0,zr=void 0):(zr=!zr,Ji=et),this.onOptionsChange(Ic(rc({},this.state.options),{legend:Ic(rc({},Ln),{sortBy:Ji,sortDesc:zr})}))},this._panelContext={eventBus:(0,Gi.N$)(),app:Wi.zj.Unknown,sync:()=>xr.m.Off,onSeriesColorChange:this._onSeriesColorChange,onToggleSeriesVisibility:this._onSeriesVisibilityChange,onToggleLegendSort:this._onToggleLegendSort,onInstanceStateChange:this._onInstanceStateChange},this.addActivationHandler(()=>{this._onActivate()})}_onActivate(){this._plugin||this._loadPlugin(this.state.pluginId)}_loadPlugin(ge){const et=j(ge);if(et)this._pluginLoaded(et);else{const{importPanelPlugin:Ln}=(0,S.bP)();Ln(ge).then(zr=>this._pluginLoaded(zr)).catch(zr=>{this.setState({pluginLoadError:zr.message})})}}_pluginLoaded(ge){const{options:et,fieldConfig:Ln,title:zr,pluginVersion:Ji}=this.state,Ja={title:zr,options:et,fieldConfig:Ln,id:1,type:ge.meta.id,pluginVersion:Ji},lo=this._getPluginVersion(ge);ge.onPanelMigration&&lo!==this.state.pluginVersion&&(Ja.options=ge.onPanelMigration(Ja));const To=(0,Wr.d4)({plugin:ge,currentOptions:Ja.options,currentFieldConfig:Ja.fieldConfig,isAfterPluginChange:!1});this._plugin=ge,this.setState({options:To.options,fieldConfig:To.fieldConfig,pluginVersion:lo})}_getPluginVersion(ge){return ge&&ge.meta.info.version?ge.meta.info.version:_i.config.buildInfo.version}getPlugin(){return this._plugin}getPanelContext(){return this._panelContext}applyFieldConfig(ge){var et,Ln;const zr=this._plugin;if(!zr||zr.meta.skipDataQuery||!ge)return hn;const Ji=zr.fieldConfigRegistry,Ja=(et=this._prevData)==null?void 0:et.series,lo=ge?.series;return ge.structureRev==null&&lo&&Ja&&!(0,ti.nl)(lo,Ja,ti.Ch)&&this._structureRev++,this._dataWithFieldConfig=Ic(rc({},ge),{structureRev:this._structureRev,series:(0,xi.SM)({data:lo,fieldConfig:this.state.fieldConfig,fieldConfigRegistry:Ji,replaceVariables:this.interpolate,theme:_i.config.theme2,timeZone:(Ln=ge.request)==null?void 0:Ln.timezone})}),this._dataWithFieldConfig}}kl.Component=Do;var Gc=t(89746);class $l extends Oe{addItem(ge){this.setState({items:this.state.items?[...this.state.items,ge]:[ge]})}setItems(ge){this.setState({items:ge})}}$l.Component=Ml;function Ml({model:Ze}){const{items:ge}=Ze.useState(),et=Ln=>Ln.map(zr=>zr.type==="divider"?i.createElement(Gc.v.Divider,{key:zr.text}):i.createElement(Gc.v.Item,{key:zr.text,label:zr.text,icon:zr.iconClassName,childItems:zr.subMenu?et(zr.subMenu):void 0,url:zr.href,onClick:zr.onClick,shortcut:zr.shortcut}));return ge?i.createElement(Gc.v,null,et(ge)):null}var zc=t(30973),tf=t(66670),_c=Object.getOwnPropertySymbols,Cc=Object.prototype.hasOwnProperty,of=Object.prototype.propertyIsEnumerable,Qc=(Ze,ge)=>{var et={};for(var Ln in Ze)Cc.call(Ze,Ln)&&ge.indexOf(Ln)<0&&(et[Ln]=Ze[Ln]);if(Ze!=null&&_c)for(var Ln of _c(Ze))ge.indexOf(Ln)<0&&of.call(Ze,Ln)&&(et[Ln]=Ze[Ln]);return et};class sc extends Oe{constructor(){super(...arguments),this.onToggle=()=>{this.setState({isCollapsed:!this.state.isCollapsed})},this.onRemove=()=>{const ge=this.parent;lf(ge)&&ge.setState({body:void 0})}}}sc.Component=ul;function ul({model:Ze}){const{title:ge,isCollapsed:et,canCollapse:Ln,canRemove:zr,body:Ji,actions:Ja}=Ze.useState(),lo=(0,$a.wW)(fc),To=(Ja??[]).map(Xo=>i.createElement(Xo.Component,{key:Xo.state.key,model:Xo}));return zr&&To.push(i.createElement(zc.h,{icon:"times",variant:"default",onClick:Ze.onRemove,key:"remove-button","aria-label":"Remove scene"})),i.createElement("div",{className:lo.row},i.createElement("div",{className:lo.rowHeader},i.createElement(vc,{gap:0},i.createElement("div",{className:lo.title,role:"heading","aria-level":1},ge),Ln&&i.createElement("div",{className:lo.toggle},i.createElement(tf.zx,{size:"sm",icon:et?"angle-down":"angle-up",fill:"text",variant:"secondary","aria-label":et?"Expand scene":"Collapse scene",onClick:Ze.onToggle}))),i.createElement("div",{className:lo.actions},To)),!et&&i.createElement(Ji.Component,{model:Ji}))}const fc=Ze=>({row:(0,Eo.css)({display:"flex",flexDirection:"column",flexGrow:1,gap:Ze.spacing(1),cursor:"pointer"}),toggle:(0,Eo.css)({}),title:(0,Eo.css)({fontSize:Ze.typography.h5.fontSize}),rowHeader:(0,Eo.css)({display:"flex",alignItems:"center",gap:Ze.spacing(2)}),actions:(0,Eo.css)({display:"flex",alignItems:"center",gap:Ze.spacing(1),justifyContent:"flex-end",flexGrow:1})});function lf(Ze){return"body"in Ze.state}const vc=Ze=>{var ge=Ze,{children:et}=ge,Ln=Qc(ge,["children"]);const zr=(0,$a.wW)((0,i.useCallback)(Ji=>yl(Ji,Ln),[Ln]));return i.createElement("div",{className:zr.root},et)},yl=(Ze,ge)=>{var et,Ln,zr;return{root:(0,Eo.css)({display:"flex",flexDirection:(et=ge.direction)!=null?et:"row",flexWrap:(Ln=ge.wrap)==null||Ln?"wrap":void 0,alignItems:ge.alignItems,gap:Ze.spacing((zr=ge.gap)!=null?zr:2),flexGrow:ge.flexGrow})}};class cf extends Oe{constructor(){super(...arguments),this._variableDependency=new Xe(this,{statePaths:["text"]})}}cf.Component=({model:Ze})=>{const{text:ge,fontSize:et=20,align:Ln="left",key:zr,spacing:Ji}=Ze.useState(),Ja=(0,$a.l4)(),lo=(0,Eo.css)({fontSize:et,display:"flex",flexGrow:1,alignItems:"center",padding:Ji?Ja.spacing(Ji,0):void 0,justifyContent:Ln});return i.createElement("div",{className:lo,"data-testid":zr},wr.interpolate(Ze,ge))};class _l extends Oe{}_l.Component=({model:Ze})=>{const ge=Ze.useState();return i.createElement(zc.h,{onClick:ge.onClick,icon:ge.icon})};class qu extends Oe{}qu.Component=({model:Ze})=>{const ge=Ze.useState();return i.createElement(bi.I,{defaultValue:ge.value,width:8,onBlur:et=>{Ze.state.onChange(parseInt(et.currentTarget.value,10))}})};var ic=t(37424);class jl extends Oe{}jl.Component=lc;function lc({model:Ze}){const{hidePicker:ge,isOnCanvas:et}=Ze.useState(),Ln=wr.getTimeRange(Ze),zr=Ln.getTimeZone(),Ji=Ln.useState();return ge?null:i.createElement(ic.Xc,{isOnCanvas:et??!0,value:Ji.value,onChange:Ln.onTimeRangeChange,timeZone:zr,fiscalYearStartMonth:0,onMoveBackward:()=>{},onMoveForward:()=>{},onZoom:()=>{},onChangeTimeZone:Ln.onTimeZoneChange,onChangeFiscalYearStartMonth:()=>{}})}var Rl=t(26862),al=Object.defineProperty,ll=Object.defineProperties,Wl=Object.getOwnPropertyDescriptors,dc=Object.getOwnPropertySymbols,Bl=Object.prototype.hasOwnProperty,Pl=Object.prototype.propertyIsEnumerable,Ll=(Ze,ge,et)=>ge in Ze?al(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Oc=(Ze,ge)=>{for(var et in ge||(ge={}))Bl.call(ge,et)&&Ll(Ze,et,ge[et]);if(dc)for(var et of dc(ge))Pl.call(ge,et)&&Ll(Ze,et,ge[et]);return Ze},kc=(Ze,ge)=>ll(Ze,Wl(ge));const sf=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"];class Bc extends Oe{constructor(ge){var et;super(kc(Oc({refresh:""},ge),{intervals:(et=ge.intervals)!=null?et:sf})),this._urlSync=new zt(this,{keys:["refresh"]}),this.onRefresh=()=>{const Ln=wr.getTimeRange(this);this._intervalTimer&&clearInterval(this._intervalTimer),Ln.onRefresh(),this.setupIntervalTimer()},this.onIntervalChanged=Ln=>{this.setState({refresh:Ln}),this.setupIntervalTimer()},this.setupIntervalTimer=()=>{const Ln=wr.getTimeRange(this),{refresh:zr,intervals:Ji}=this.state;if((this._intervalTimer||zr==="")&&clearInterval(this._intervalTimer),zr===""||Ji&&!Ji.includes(zr))return;const Ja=Ya.intervalToMs(zr);this._intervalTimer=setInterval(()=>{Ln.onRefresh()},Ja)},this.addActivationHandler(()=>(this.setupIntervalTimer(),()=>{this._intervalTimer&&clearInterval(this._intervalTimer)}))}getUrlState(){return{refresh:this.state.refresh}}updateFromUrl(ge){const et=ge.refresh;et&&typeof et=="string"&&this.setState({refresh:et})}}Bc.Component=Ef;function Ef({model:Ze}){const{refresh:ge,intervals:et,isOnCanvas:Ln}=Ze.useState();return i.createElement(Rl.dP,{value:ge,intervals:et,onRefresh:Ze.onRefresh,onIntervalChanged:Ze.onIntervalChanged,isOnCanvas:Ln??!0})}class Sf extends Oe{constructor(ge){super(ge),this.addActivationHandler(()=>{this._subs.add(wr.getData(this).subscribeToState(et=>{var Ln;((Ln=et.data)==null?void 0:Ln.state)===vr.Gu.Done&&this.performRepeat(et.data)}))})}performRepeat(ge){const et=[];for(let Ln=0;Ln<ge.series.length;Ln++){const zr=this.state.getLayoutChild(ge,ge.series[Ln],Ln);et.push(zr)}this.state.body.setState({children:et})}}Sf.Component=({model:Ze})=>{const{body:ge}=Ze.useState();return i.createElement(ge.Component,{model:ge})};class bc extends Oe{constructor(){super({})}}bc.Component=Ze=>i.createElement("div",{style:{flexGrow:1}});class yf extends Oe{toggleDirection(){this.setState({direction:this.state.direction==="row"?"column":"row"})}isDraggable(){return!1}}yf.Component=xc;function xc({model:Ze,parentState:ge}){const{children:et,isHidden:Ln}=Ze.useState(),zr=Vl(Ze.state,ge);return Ln?null:i.createElement("div",{className:zr},et.map(Ji=>{const Ja=Ji.Component;return i.createElement(Ja,{key:Ji.state.key,model:Ji,parentState:Ze.state})}))}class Mf extends Oe{}Mf.Component=Bu;function Bu({model:Ze,parentState:ge}){if(!ge)throw new Error("SceneFlexItem must be a child of SceneFlexLayout");const{body:et,isHidden:Ln}=Ze.useState(),zr=Qu(Ze.state,ge);return!et||Ln?null:i.createElement("div",{className:zr},i.createElement(et.Component,{model:et}))}function vl(Ze,ge,et){var Ln,zr,Ji;const Ja=(Ln=et.direction)!=null?Ln:"row",{xSizing:lo="fill",ySizing:To="fill"}=ge;return Ze.display="flex",Ze.position="relative",Ze.flexDirection=Ja,Ja==="column"?(ge.height?Ze.height=ge.height:Ze.flexGrow=To==="fill"?1:0,ge.width?Ze.width=ge.width:Ze.alignSelf=lo==="fill"?"stretch":"flex-start"):(ge.height?Ze.height=ge.height:Ze.alignSelf=To==="fill"?"stretch":"flex-start",ge.width?Ze.width=ge.width:Ze.flexGrow=lo==="fill"?1:0),Ze.minWidth=ge.minWidth,Ze.maxWidth=ge.maxWidth,Ze.maxHeight=ge.maxHeight,Ze.minHeight=(zr=ge.minHeight)!=null?zr:et.minHeight,Ze.height=(Ji=ge.height)!=null?Ji:et.height,Ze}function Qu(Ze,ge){return(0,i.useMemo)(()=>{var et,Ln,zr,Ji,Ja,lo,To,Xo,mu,ws;const Uu=_i.config.theme2,el=vl({},Ze,ge);return el[Uu.breakpoints.down("md")]={maxWidth:(Ln=(et=Ze.md)==null?void 0:et.maxWidth)!=null?Ln:"unset",maxHeight:(Ji=(zr=Ze.md)==null?void 0:zr.maxHeight)!=null?Ji:"unset",height:(To=(Ja=Ze.md)==null?void 0:Ja.height)!=null?To:(lo=ge.md)==null?void 0:lo.height,width:(ws=(Xo=Ze.md)==null?void 0:Xo.width)!=null?ws:(mu=ge.md)==null?void 0:mu.width},(0,Eo.css)(el)},[Ze,ge])}function Vl(Ze,ge){return(0,i.useMemo)(()=>{var et,Ln,zr,Ji,Ja,lo,To,Xo,mu,ws;const{direction:Uu="row",wrap:el}=Ze,Gl=_i.config.theme2,Al={};return ge?vl(Al,Ze,ge):(Al.display="flex",Al.flexGrow=1),Al.flexDirection=Uu,Al.gap="8px",Al.flexWrap=el||"nowrap",Al.alignContent="baseline",Al.minHeight=Al.minHeight||0,Al[Gl.breakpoints.down("md")]={flexDirection:(Ln=(et=Ze.md)==null?void 0:et.direction)!=null?Ln:"column",maxWidth:(Ji=(zr=Ze.md)==null?void 0:zr.maxWidth)!=null?Ji:"unset",maxHeight:(lo=(Ja=Ze.md)==null?void 0:Ja.maxHeight)!=null?lo:"unset",height:(Xo=(To=Ze.md)==null?void 0:To.height)!=null?Xo:"unset",width:(ws=(mu=Ze.md)==null?void 0:mu.width)!=null?ws:"unset"},(0,Eo.css)(Al)},[ge,Ze])}const Ul=4,gs=30,pc=8,Hc=24;var bf=t(41966),Kc=t.n(bf),sd=function(Ze,ge){if(!(Ze instanceof ge))throw new TypeError("Cannot call a class as a function")},Ed=function(){function Ze(ge,et){for(var Ln=0;Ln<et.length;Ln++){var zr=et[Ln];zr.enumerable=zr.enumerable||!1,zr.configurable=!0,"value"in zr&&(zr.writable=!0),Object.defineProperty(ge,zr.key,zr)}}return function(ge,et,Ln){return et&&Ze(ge.prototype,et),Ln&&Ze(ge,Ln),ge}}(),Jc=Object.assign||function(Ze){for(var ge=1;ge<arguments.length;ge++){var et=arguments[ge];for(var Ln in et)Object.prototype.hasOwnProperty.call(et,Ln)&&(Ze[Ln]=et[Ln])}return Ze},zs=function(Ze,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);Ze.prototype=Object.create(ge&&ge.prototype,{constructor:{value:Ze,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(Ze,ge):Ze.__proto__=ge)},Of=function(Ze,ge){if(!Ze)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:Ze},nf=function(){function Ze(ge,et){var Ln=[],zr=!0,Ji=!1,Ja=void 0;try{for(var lo=ge[Symbol.iterator](),To;!(zr=(To=lo.next()).done)&&(Ln.push(To.value),!(et&&Ln.length===et));zr=!0);}catch(Xo){Ji=!0,Ja=Xo}finally{try{!zr&&lo.return&&lo.return()}finally{if(Ji)throw Ja}}return Ln}return function(ge,et){if(Array.isArray(ge))return ge;if(Symbol.iterator in Object(ge))return Ze(ge,et);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),df=void 0;typeof window<"u"?df=window:typeof self<"u"?df=self:df=t.g;var Wf=null,td=null,_f=20,ff=df.clearTimeout,Lf=df.setTimeout,Ec=df.cancelAnimationFrame||df.mozCancelAnimationFrame||df.webkitCancelAnimationFrame,Tc=df.requestAnimationFrame||df.mozRequestAnimationFrame||df.webkitRequestAnimationFrame;Ec==null||Tc==null?(Wf=ff,td=function(ge){return Lf(ge,_f)}):(Wf=function(ge){var et=nf(ge,2),Ln=et[0],zr=et[1];Ec(Ln),ff(zr)},td=function(ge){var et=Tc(function(){ff(Ln),ge()}),Ln=Lf(function(){Ec(et),ge()},_f);return[et,Ln]});function md(Ze){var ge=void 0,et=void 0,Ln=void 0,zr=void 0,Ji=void 0,Ja=void 0,lo=void 0,To=typeof document<"u"&&document.attachEvent;if(!To){Ja=function(Su){var Dc=Su.__resizeTriggers__,Xc=Dc.firstElementChild,jc=Dc.lastElementChild,Nc=Xc.firstElementChild;jc.scrollLeft=jc.scrollWidth,jc.scrollTop=jc.scrollHeight,Nc.style.width=Xc.offsetWidth+1+"px",Nc.style.height=Xc.offsetHeight+1+"px",Xc.scrollLeft=Xc.scrollWidth,Xc.scrollTop=Xc.scrollHeight},Ji=function(Su){return Su.offsetWidth!==Su.__resizeLast__.width||Su.offsetHeight!==Su.__resizeLast__.height},lo=function(Su){if(!(Su.target.className&&typeof Su.target.className.indexOf=="function"&&Su.target.className.indexOf("contract-trigger")<0&&Su.target.className.indexOf("expand-trigger")<0)){var Dc=this;Ja(this),this.__resizeRAF__&&Wf(this.__resizeRAF__),this.__resizeRAF__=td(function(){Ji(Dc)&&(Dc.__resizeLast__.width=Dc.offsetWidth,Dc.__resizeLast__.height=Dc.offsetHeight,Dc.__resizeListeners__.forEach(function(Nc){Nc.call(Dc,Su)}))})}};var Xo=!1,mu="";Ln="animationstart";var ws="Webkit Moz O ms".split(" "),Uu="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),el="";{var Gl=document.createElement("fakeelement");if(Gl.style.animationName!==void 0&&(Xo=!0),Xo===!1){for(var Al=0;Al<ws.length;Al++)if(Gl.style[ws[Al]+"AnimationName"]!==void 0){el=ws[Al],mu="-"+el.toLowerCase()+"-",Ln=Uu[Al],Xo=!0;break}}}et="resizeanim",ge="@"+mu+"keyframes "+et+" { from { opacity: 0; } to { opacity: 0; } } ",zr=mu+"animation: 1ms "+et+"; "}var ac=function(Su){if(!Su.getElementById("detectElementResize")){var Dc=(ge||"")+".resize-triggers { "+(zr||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',Xc=Su.head||Su.getElementsByTagName("head")[0],jc=Su.createElement("style");jc.id="detectElementResize",jc.type="text/css",Ze!=null&&jc.setAttribute("nonce",Ze),jc.styleSheet?jc.styleSheet.cssText=Dc:jc.appendChild(Su.createTextNode(Dc)),Xc.appendChild(jc)}},Lc=function(Su,Dc){if(To)Su.attachEvent("onresize",Dc);else{if(!Su.__resizeTriggers__){var Xc=Su.ownerDocument,jc=df.getComputedStyle(Su);jc&&jc.position==="static"&&(Su.style.position="relative"),ac(Xc),Su.__resizeLast__={},Su.__resizeListeners__=[],(Su.__resizeTriggers__=Xc.createElement("div")).className="resize-triggers";var Nc=Xc.createElement("div");Nc.className="expand-trigger",Nc.appendChild(Xc.createElement("div"));var ad=Xc.createElement("div");ad.className="contract-trigger",Su.__resizeTriggers__.appendChild(Nc),Su.__resizeTriggers__.appendChild(ad),Su.appendChild(Su.__resizeTriggers__),Ja(Su),Su.addEventListener("scroll",lo,!0),Ln&&(Su.__resizeTriggers__.__animationListener__=function(Cf){Cf.animationName===et&&Ja(Su)},Su.__resizeTriggers__.addEventListener(Ln,Su.__resizeTriggers__.__animationListener__))}Su.__resizeListeners__.push(Dc)}},xl=function(Su,Dc){if(To)Su.detachEvent("onresize",Dc);else if(Su.__resizeListeners__.splice(Su.__resizeListeners__.indexOf(Dc),1),!Su.__resizeListeners__.length){Su.removeEventListener("scroll",lo,!0),Su.__resizeTriggers__.__animationListener__&&(Su.__resizeTriggers__.removeEventListener(Ln,Su.__resizeTriggers__.__animationListener__),Su.__resizeTriggers__.__animationListener__=null);try{Su.__resizeTriggers__=!Su.removeChild(Su.__resizeTriggers__)}catch{}}};return{addResizeListener:Lc,removeResizeListener:xl}}var Vc=function(Ze){zs(ge,Ze);function ge(){var et,Ln,zr,Ji;sd(this,ge);for(var Ja=arguments.length,lo=Array(Ja),To=0;To<Ja;To++)lo[To]=arguments[To];return Ji=(Ln=(zr=Of(this,(et=ge.__proto__||Object.getPrototypeOf(ge)).call.apply(et,[this].concat(lo))),zr),zr.state={height:zr.props.defaultHeight||0,width:zr.props.defaultWidth||0},zr._onResize=function(){var Xo=zr.props,mu=Xo.disableHeight,ws=Xo.disableWidth,Uu=Xo.onResize;if(zr._parentNode){var el=zr._parentNode.offsetHeight||0,Gl=zr._parentNode.offsetWidth||0,Al=window.getComputedStyle(zr._parentNode)||{},ac=parseInt(Al.paddingLeft,10)||0,Lc=parseInt(Al.paddingRight,10)||0,xl=parseInt(Al.paddingTop,10)||0,hl=parseInt(Al.paddingBottom,10)||0,Su=el-xl-hl,Dc=Gl-ac-Lc;(!mu&&zr.state.height!==Su||!ws&&zr.state.width!==Dc)&&(zr.setState({height:el-xl-hl,width:Gl-ac-Lc}),Uu({height:el,width:Gl}))}},zr._setRef=function(Xo){zr._autoSizer=Xo},Ln),Of(zr,Ji)}return Ed(ge,[{key:"componentDidMount",value:function(){var Ln=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=md(Ln),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var Ln=this.props,zr=Ln.children,Ji=Ln.className,Ja=Ln.disableHeight,lo=Ln.disableWidth,To=Ln.style,Xo=this.state,mu=Xo.height,ws=Xo.width,Uu={overflow:"visible"},el={},Gl=!1;return Ja||(mu===0&&(Gl=!0),Uu.height=0,el.height=mu),lo||(ws===0&&(Gl=!0),Uu.width=0,el.width=ws),(0,i.createElement)("div",{className:Ji,ref:this._setRef,style:Jc({},Uu,To)},!Gl&&zr(el))}}]),ge}(i.PureComponent);Vc.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const $c=Vc;var gc=function(Ze){(0,i.useEffect)(Ze,[])};const qc=gc;var If=Object.defineProperty,Dr=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,Mi=Object.prototype.propertyIsEnumerable,Zi=(Ze,ge,et)=>ge in Ze?If(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Ta=(Ze,ge)=>{for(var et in ge||(ge={}))pr.call(ge,et)&&Zi(Ze,et,ge[et]);if(Dr)for(var et of Dr(ge))Mi.call(ge,et)&&Zi(Ze,et,ge[et]);return Ze},Oo=(Ze,ge)=>{var et={};for(var Ln in Ze)pr.call(Ze,Ln)&&ge.indexOf(Ln)<0&&(et[Ln]=Ze[Ln]);if(Ze!=null&&Dr)for(var Ln of Dr(Ze))ge.indexOf(Ln)<0&&Mi.call(Ze,Ln)&&(et[Ln]=Ze[Ln]);return et};function No(){var Ze;const ge=(0,i.useRef)(void 0);return(Ze=ge.current)!=null||(ge.current=(0,on.uniqueId)()),ge.current}const xo=i.forwardRef((Ze,ge)=>{var et=Ze,{children:Ln,onLoad:zr,onChange:Ji}=et,Ja=Oo(et,["children","onLoad","onChange"]);const lo=No(),[To,Xo]=(0,i.useState)(!1),[mu,ws]=(0,i.useState)(!1),Uu=(0,i.useRef)(null);return(0,i.useImperativeHandle)(ge,()=>Uu.current),qc(()=>{xo.addCallback(lo,Gl=>{!To&&Gl.isIntersecting&&(Xo(!0),zr?.()),ws(Gl.isIntersecting),Ji?.(Gl.isIntersecting)});const el=Uu.current;return el&&xo.observer.observe(el),()=>{delete xo.callbacks[lo],el&&xo.observer.unobserve(el),Object.keys(xo.callbacks).length===0&&xo.observer.disconnect()}}),i.createElement("div",Ta({id:lo,ref:Uu},Ja),To&&(typeof Ln=="function"?Ln({isInView:mu}):Ln))});xo.displayName="LazyLoader",xo.callbacks={},xo.addCallback=(Ze,ge)=>xo.callbacks[Ze]=ge,xo.observer=new IntersectionObserver(Ze=>{for(const ge of Ze)xo.callbacks[ge.target.id](ge)},{rootMargin:"100px"});function Ls({model:Ze}){const{children:ge,isLazy:et,isDraggable:Ln}=Ze.useState();return Fs(ge),i.createElement($c,{disableHeight:!0},({width:zr})=>{if(zr===0)return null;const Ji=Ze.buildGridLayout(zr);return i.createElement("div",{style:{width:`${zr}px`,height:"100%"}},i.createElement(Kc(),{width:zr,isDraggable:Ln&&zr>768,isResizable:!1,containerPadding:[0,0],useCSSTransforms:!1,margin:[pc,pc],cols:Hc,rowHeight:gs,draggableHandle:`.grid-drag-handle-${Ze.state.key}`,draggableCancel:".grid-drag-cancel",layout:Ji,onDragStop:Ze.onDragStop,onResizeStop:Ze.onResizeStop,onLayoutChange:Ze.onLayoutChange,isBounded:!1},Ji.map(Ja=>{const lo=Ze.getSceneLayoutChild(Ja.i);return et?i.createElement(xo,{key:lo.state.key},i.createElement(lo.Component,{model:lo,key:lo.state.key})):i.createElement("div",{key:lo.state.key},i.createElement(lo.Component,{model:lo,key:lo.state.key}))})))})}function Fs(Ze){if(Ze.some(ge=>ge.state.height===void 0||ge.state.width===void 0||ge.state.x===void 0||ge.state.y===void 0))throw new Error("All children must have a size specified")}var As=t(73453);function Cu({className:Ze,dragClass:ge}){return i.createElement("div",{className:`${Ze} ${ge}`,style:{width:"20px",height:"20px",cursor:"move"}},i.createElement(As.J,{name:"draggabledots"}))}var Iu=Object.defineProperty,Tl=Object.defineProperties,Du=Object.getOwnPropertyDescriptors,cl=Object.getOwnPropertySymbols,tl=Object.prototype.hasOwnProperty,Zl=Object.prototype.propertyIsEnumerable,Jl=(Ze,ge,et)=>ge in Ze?Iu(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Fe=(Ze,ge)=>{for(var et in ge||(ge={}))tl.call(ge,et)&&Jl(Ze,et,ge[et]);if(cl)for(var et of cl(ge))Zl.call(ge,et)&&Jl(Ze,et,ge[et]);return Ze},He=(Ze,ge)=>Tl(Ze,Du(ge));class Dt extends Oe{constructor(ge){super(He(Fe({children:ge.children||[],isCollapsible:ge.isCollapsible||!0,title:ge.title||"",isDraggable:ge.isDraggable||!0,isResizable:ge.isResizable||!1},ge),{x:0,height:1,width:Hc})),this._urlSync=new zt(this,{keys:["rowc"]}),this.onCollapseToggle=()=>{this.state.isCollapsible&&this.getGridLayout().toggleRow(this)}}getGridLayout(){const ge=this.parent;if(!ge||!(ge instanceof Cs))throw new Error("SceneGridRow must be a child of SceneGridLayout");return ge}getUrlState(){return{rowc:this.state.isCollapsed?"1":"0"}}updateFromUrl(ge){ge.rowc!=null&&ge.rowc!==this.getUrlState().rowc&&this.onCollapseToggle()}}Dt.Component=gn;function gn({model:Ze}){const ge=(0,$a.wW)(Xn),{isCollapsible:et,isCollapsed:Ln,title:zr,isDraggable:Ji}=Ze.useState(),Ja=i.createElement(Cu,{dragClass:Ze.getGridLayout().getDragClass()});return i.createElement("div",{className:ge.row},i.createElement("div",{className:(0,Eo.cx)(ge.rowHeader,Ln&&ge.rowHeaderCollapsed)},i.createElement("button",{onClick:Ze.onCollapseToggle,className:ge.rowTitleButton},et&&i.createElement(As.J,{name:Ln?"angle-right":"angle-down"}),i.createElement("span",{className:ge.rowTitle},zr)),Ji&&Ln&&i.createElement("div",null,Ja)))}const Xn=Ze=>({row:(0,Eo.css)({width:"100%",height:"100%",position:"relative",zIndex:0,display:"flex",flexDirection:"column"}),rowHeader:(0,Eo.css)({width:"100%",height:"30px",display:"flex",justifyContent:"space-between",marginBottom:"8px",border:"1px solid transparent"}),rowTitleButton:(0,Eo.css)({display:"flex",alignItems:"center",cursor:"pointer",background:"transparent",border:"none",gap:Ze.spacing(1)}),rowHeaderCollapsed:(0,Eo.css)({marginBottom:"0px",background:Ze.colors.background.primary,border:`1px solid ${Ze.colors.border.weak}`,borderRadius:Ze.shape.borderRadius(1)}),rowTitle:(0,Eo.css)({fontSize:Ze.typography.h5.fontSize,fontWeight:Ze.typography.fontWeightMedium})});var cr=Object.defineProperty,jr=Object.defineProperties,Hr=Object.getOwnPropertyDescriptors,sa=Object.getOwnPropertySymbols,Ia=Object.prototype.hasOwnProperty,Aa=Object.prototype.propertyIsEnumerable,pa=(Ze,ge,et)=>ge in Ze?cr(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Yi=(Ze,ge)=>{for(var et in ge||(ge={}))Ia.call(ge,et)&&pa(Ze,et,ge[et]);if(sa)for(var et of sa(ge))Aa.call(ge,et)&&pa(Ze,et,ge[et]);return Ze},eo=(Ze,ge)=>jr(Ze,Hr(ge));const $o=class extends Oe{constructor(Ze){super(eo(Yi({},Ze),{children:_u(Ze.children)})),this._skipOnLayoutChange=!1,this.onLayoutChange=ge=>{if(this._skipOnLayoutChange){this._skipOnLayoutChange=!1;return}for(const et of ge){const Ln=this.getSceneLayoutChild(et.i),zr={x:et.x,y:et.y,width:et.w,height:et.h};Eu(Ln.state,zr)||Ln.setState(Yi({},zr))}this.setState({children:_u(this.state.children)})},this.onResizeStop=(ge,et,Ln)=>{this.getSceneLayoutChild(Ln.i).setState({width:Ln.w,height:Ln.h})},this.onDragStop=(ge,et,Ln)=>{const zr=this.getSceneLayoutChild(Ln.i);ge=ju(ge);for(let To=0;To<ge.length;To++){const Xo=ge[To],mu=this.getSceneLayoutChild(Xo.i),ws=mu.state;(ws?.x!==Xo.x||ws?.y!==Xo.y)&&mu.setState({x:Xo.x,y:Xo.y})}const Ji=ge.findIndex(To=>To.i===Ln.i),Ja=this.findGridItemSceneParent(ge,Ji-1);let lo=this.state.children;Ja!==zr.parent&&(lo=this.moveChildTo(zr,Ja)),this.setState({children:_u(lo)}),this._skipOnLayoutChange=!0}}isDraggable(){var Ze;return(Ze=this.state.isDraggable)!=null?Ze:!1}getDragClass(){return`grid-drag-handle-${this.state.key}`}getDragClassCancel(){return"grid-drag-cancel"}toggleRow(Ze){var ge,et;if(!Ze.state.isCollapsed){Ze.setState({isCollapsed:!0}),this.setState({});return}const zr=Ze.state.children;if(zr.length===0){Ze.setState({isCollapsed:!1}),this.setState({});return}const Ji=Ze.state.y,lo=((ge=zr[0].state.y)!=null?ge:Ji)-(Ji+1);let To=Ji;for(const mu of zr){const ws=Yi({},mu.state);ws.y=(et=ws.y)!=null?et:Ji,ws.y-=lo,ws.y>mu.state.y&&mu.setState(ws),To=Math.max(To,Number(ws.y)+Number(ws.height))}const Xo=To-Ji-1;for(const mu of this.state.children)if(mu.state.y>Ji&&this.pushChildDown(mu,Xo),Cl(mu)&&mu!==Ze)for(const ws of mu.state.children)ws.state.y>Ji&&this.pushChildDown(ws,Xo);Ze.setState({isCollapsed:!1}),this.setState({})}getSceneLayoutChild(Ze){for(const ge of this.state.children){if(ge.state.key===Ze)return ge;if(ge instanceof Dt){for(const et of ge.state.children)if(et.state.key===Ze)return et}}throw new Error("Scene layout child not found for GridItem")}pushChildDown(Ze,ge){Ze.setState({y:Ze.state.y+ge})}findGridItemSceneParent(Ze,ge){for(let et=ge;et>=0;et--){const Ln=Ze[et],zr=this.getSceneLayoutChild(Ln.i);if(zr instanceof Dt)return zr.state.isCollapsed?this:zr}return this}moveChildTo(Ze,ge){const et=Ze.parent;let Ln=this.state.children;const zr=Ze.clone({key:Ze.state.key});if(et instanceof Dt){const Ji=et.clone({children:et.state.children.filter(Ja=>Ja.state.key!==Ze.state.key)});if(Ln=Ln.map(Ja=>Ja===et?Ji:Ja),ge instanceof Dt){const Ja=ge.clone({children:[...ge.state.children,zr]});Ln=Ln.map(lo=>lo===ge?Ja:lo)}else Ln=[...Ln,zr]}else if(!(ge instanceof $o)){Ln=Ln.filter(Ja=>Ja.state.key!==Ze.state.key);const Ji=ge.clone({children:[...ge.state.children,zr]});Ln=Ln.map(Ja=>Ja===ge?Ji:Ja)}return Ln}toGridCell(Ze){var ge,et;const Ln=Ze.state;let zr=(ge=Ln.x)!=null?ge:0,Ji=(et=Ln.y)!=null?et:0;const Ja=Number.isInteger(Number(Ln.width))?Number(Ln.width):Ul,lo=Number.isInteger(Number(Ln.height))?Number(Ln.height):Ul;let To=!!Ze.state.isDraggable,Xo=!!Ze.state.isResizable;return Ze instanceof Dt&&(To=!!Ze.state.isCollapsed,Xo=!1),{i:Ze.state.key,x:zr,y:Ji,h:lo,w:Ja,isResizable:Xo,isDraggable:To}}buildGridLayout(Ze){let ge=[];for(const et of this.state.children)if(ge.push(this.toGridCell(et)),et instanceof Dt&&!et.state.isCollapsed)for(const Ln of et.state.children)ge.push(this.toGridCell(Ln));return ge=ju(ge),Ze<768?(this._skipOnLayoutChange=!0,ge.map(et=>eo(Yi({},et),{w:24}))):(this._skipOnLayoutChange=!1,ge)}};let Cs=$o;Cs.Component=Ls;class vs extends Oe{}vs.Component=Rs;function Rs({model:Ze}){const{body:ge}=Ze.useState(),et=Ze.parent;if(et&&!Yl(et)&&!Cl(et))throw new Error("SceneGridItem must be a child of SceneGridLayout or SceneGridRow");return ge?i.createElement(ge.Component,{model:ge}):null}function Eu(Ze,ge){return Ze.x===ge.x&&Ze.y===ge.y&&Ze.width===ge.width&&Ze.height===ge.height}function _u(Ze){return[...Ze].sort((ge,et)=>ge.state.y-et.state.y||ge.state.x-et.state.x)}function ju(Ze){return[...Ze].sort((ge,et)=>ge.y-et.y||ge.x-et.x)}function Cl(Ze){return Ze instanceof Dt}function Yl(Ze){return Ze instanceof Cs}var cu=Object.defineProperty,bs=Object.getOwnPropertySymbols,wc=Object.prototype.hasOwnProperty,Zc=Object.prototype.propertyIsEnumerable,Af=(Ze,ge,et)=>ge in Ze?cu(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Yc=(Ze,ge)=>{for(var et in ge||(ge={}))wc.call(ge,et)&&Af(Ze,et,ge[et]);if(bs)for(var et of bs(ge))Zc.call(ge,et)&&Af(Ze,et,ge[et]);return Ze};const Yf=.3,Xf=new Set(["ArrowUp","ArrowDown"]),ud=new Set(["ArrowLeft","ArrowRight"]),rf={row:{dim:"width",axis:"clientX",min:"minWidth",max:"maxWidth"},column:{dim:"height",axis:"clientY",min:"minHeight",max:"maxHeight"}};function th({direction:Ze="row",handleSize:ge=32,initialSize:et="auto",primaryPaneStyles:Ln,secondaryPaneStyles:zr,onDragFinished:Ji,children:Ja}){const lo=i.Children.toArray(Ja),To=(0,i.useRef)(null),Xo=(0,i.useRef)(null),mu=(0,i.useRef)(null),ws=(0,i.useRef)(null),Uu=(0,i.useRef)(null),el=(0,i.useRef)("1fr"),Gl=(0,i.useRef)(void 0),Al=(0,i.useRef)(void 0),ac=rf[Ze].dim,Lc=rf[Ze].axis,xl=rf[Ze].min,hl=rf[Ze].max;hf(ws.current,oc=>{for(const hd of oc){if(!hd.target.isSameNode(ws.current))return;const xf=Xo.current.getBoundingClientRect()[ac],Md=Od(Xo.current);To.current.ariaValueNow=`${(0,on.clamp)((xf-Md[xl])/(Md[hl]-Md[xl])*100,0,100)}`}},500,[hl,xl,Ze,ac]);const Su=(0,i.useRef)(null),Dc=(0,i.useCallback)(oc=>{el.current=Xo.current.getBoundingClientRect()[ac],Uu.current=ws.current.getBoundingClientRect()[ac],Su.current=oc[Lc],To.current.setPointerCapture(oc.pointerId),Gl.current=Od(Xo.current),Al.current=void 0},[ac,Lc]),Xc=(0,i.useCallback)(oc=>{if(Su.current!==null&&el.current!=="1fr"){const hd=oc[Lc]-Su.current,xf=Gl.current,Md=(0,on.clamp)(el.current+hd,xf[xl],xf[hl]),Hd=Md/(Uu.current-ge);Xo.current.style.flexGrow=`${Hd}`,mu.current.style.flexGrow=`${1-Hd}`;const Id=(0,on.clamp)((Md-xf[xl])/(xf[hl]-xf[xl])*100,0,100);To.current.ariaValueNow=`${Id}`}},[ge,Lc,xl,hl]),jc=(0,i.useCallback)(oc=>{oc.preventDefault(),oc.stopPropagation(),To.current.releasePointerCapture(oc.pointerId),Su.current=null,Ji?.(parseFloat(Xo.current.style.flexGrow))},[Ji]),Nc=(0,i.useRef)(new Set),ad=(0,i.useRef)(null),kf=(0,i.useCallback)(oc=>{var hd;if(Nc.current.size===0){ad.current=null;return}else if(el.current==="1fr")return;const Hd=(oc-((hd=ad.current)!=null?hd:oc))*Yf;let Id=0;Ze==="row"?(Nc.current.has("ArrowLeft")&&(Id-=Hd),Nc.current.has("ArrowRight")&&(Id+=Hd)):(Nc.current.has("ArrowUp")&&(Id-=Hd),Nc.current.has("ArrowDown")&&(Id+=Hd));const Kd=Gl.current,Ih=Xo.current.getBoundingClientRect()[ac],ch=(0,on.clamp)(Ih+Id,Kd[xl],Kd[hl]),rh=ch/(Uu.current-ge);Xo.current.style.flexGrow=`${rh}`,mu.current.style.flexGrow=`${1-rh}`;const Dh=(ch-Kd[xl])/(Kd[hl]-Kd[xl])*100;To.current.ariaValueNow=`${(0,on.clamp)(Dh,0,100)}`,ad.current=oc,window.requestAnimationFrame(kf)},[Ze,ge,xl,hl,ac]),Cf=(0,i.useCallback)(oc=>{if(oc.key==="Enter"){Al.current===void 0?(Al.current=Xo.current.style.flexGrow,Xo.current.style.flexGrow="0",mu.current.style.flexGrow="1"):(Xo.current.style.flexGrow=Al.current,mu.current.style.flexGrow=`${1-parseFloat(Al.current)}`,Al.current=void 0);return}else if(oc.key==="Home"){Gl.current=Od(Xo.current),Uu.current=ws.current.getBoundingClientRect()[ac];const xf=Gl.current[xl]/(Uu.current-ge);Xo.current.style.flexGrow=`${xf}`,mu.current.style.flexGrow=`${1-xf}`,To.current.ariaValueNow="0";return}else if(oc.key==="End"){Gl.current=Od(Xo.current),Uu.current=ws.current.getBoundingClientRect()[ac];const xf=Gl.current[hl]/(Uu.current-ge);Xo.current.style.flexGrow=`${xf}`,mu.current.style.flexGrow=`${1-xf}`,To.current.ariaValueNow="100";return}if(!(Ze==="column"&&Xf.has(oc.key)||Ze==="row"&&ud.has(oc.key))||Nc.current.has(oc.key))return;if(Al.current=void 0,oc.preventDefault(),oc.stopPropagation(),el.current=Xo.current.getBoundingClientRect()[ac],Uu.current=ws.current.getBoundingClientRect()[ac],Gl.current=Od(Xo.current),!Nc.current.has(oc.key)){const xf=Nc.current.size===0;Nc.current.add(oc.key),xf&&window.requestAnimationFrame(kf)}},[Ze,kf,ge,hl,ac,xl]),Rd=(0,i.useCallback)(oc=>{Ze==="row"&&!ud.has(oc.key)||Ze==="column"&&!Xf.has(oc.key)||(Nc.current.delete(oc.key),Ji?.(parseFloat(Xo.current.style.flexGrow)))},[Ze,Ji]),vh=(0,i.useCallback)(()=>{Xo.current.style.flexGrow="0.5",mu.current.style.flexGrow="0.5";const oc=Od(Xo.current);Gl.current=oc,el.current=Xo.current.getBoundingClientRect()[ac],To.current.ariaValueNow=`${(el.current-oc[xl])/(oc[hl]-oc[xl])*100}`},[hl,ac,xl]),Vf=(0,$a.wW)(Sd),dd=No();return i.createElement("div",{ref:ws,className:Vf.container,style:{flexDirection:Ze}},i.createElement("div",{ref:Xo,className:Vf.panel,style:Yc({flexGrow:et==="auto"?.5:(0,on.clamp)(et,0,1),[xl]:"min-content"},Ln),id:`start-panel-${dd}`},lo[0]),i.createElement("div",{ref:To,style:{[ac]:`${ge}px`},className:(0,Eo.cx)(Vf.handle,{[Vf.handleHorizontal]:Ze==="column"}),onPointerUp:jc,onPointerDown:Dc,onPointerMove:Xc,onKeyDown:Cf,onKeyUp:Rd,onDoubleClick:vh,role:"separator","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":50,"aria-controls":`start-panel-${dd}`,"aria-label":"Pane resize widget",tabIndex:0}),i.createElement("div",{ref:mu,className:Vf.panel,style:Yc({flexGrow:et==="auto"?.5:(0,on.clamp)(1-et,0,1),[xl]:"min-content"},zr),id:`end-panel-${dd}`},lo[1]))}function Sd(Ze){return{handle:(0,Eo.css)({cursor:"col-resize",position:"relative",flexShrink:0,userSelect:"none","&::before":{content:'""',position:"absolute",backgroundColor:Ze.colors.primary.main,left:"50%",transform:"translate(-50%)",top:0,height:"100%",width:"1px",opacity:0,transition:"opacity ease-in-out 0.2s"},"&::after":{content:'""',width:"4px",borderRadius:"4px",backgroundColor:Ze.colors.border.weak,transition:"background-color ease-in-out 0.2s",height:"50%",top:"calc(50% - (50%) / 2)",transform:"translateX(-50%)",position:"absolute",left:"50%"},"&:hover, &:focus-visible":{outline:"none","&::before":{opacity:1},"&::after":{backgroundColor:Ze.colors.primary.main}}}),handleHorizontal:(0,Eo.css)({cursor:"row-resize","&::before":{left:"inherit",transform:"translateY(-50%)",top:"50%",height:"1px",width:"100%"},"&::after":{width:"50%",height:"4px",top:"50%",transform:"translateY(-50%)",left:"calc(50% - (50%) / 2)"}}),container:(0,Eo.css)({display:"flex",width:"100%",flexGrow:1,overflow:"hidden"}),panel:(0,Eo.css)({display:"flex",overflow:"hidden",position:"relative",flexBasis:0})}}function Od(Ze){if(Ze===null)return;const ge=document.body.style.overflow,et=Ze.style.width,Ln=Ze.style.height,zr=Ze.style.flexGrow;document.body.style.overflow="hidden",Ze.style.flexGrow="0";const{width:Ji,height:Ja}=Ze.getBoundingClientRect();Ze.style.flexGrow="100";const{width:lo,height:To}=Ze.getBoundingClientRect();return document.body.style.overflow=ge,Ze.style.width=et,Ze.style.height=Ln,Ze.style.flexGrow=zr,{minWidth:Ji,maxWidth:lo,minHeight:Ja,maxHeight:To}}function hf(Ze,ge,et=0,Ln){const zr=(0,on.throttle)(ge,et);(0,i.useLayoutEffect)(()=>{if(!Ze)return;const Ji=new ResizeObserver(zr);return Ji.observe(Ze,{box:"device-pixel-content-box"}),()=>Ji.disconnect()},Ln)}function vf({model:Ze}){const{primary:ge,secondary:et,direction:Ln,isHidden:zr}=Ze.useState();if(zr)return null;const Ji=ge.Component,Ja=et.Component;return i.createElement(th,{direction:Ln},i.createElement(Ji,{key:ge.state.key,model:ge,parentState:Ze.state}),i.createElement(Ja,{key:et.state.key,model:et,parentState:Ze.state}))}class Nf extends Oe{toggleDirection(){this.setState({direction:this.state.direction==="row"?"column":"row"})}isDraggable(){return!1}}Nf.Component=vf;class ld extends Oe{}ld.Component=({model:Ze})=>{const{pages:ge}=Ze.useState();return i.createElement(s.rs,null,ge.map(et=>i.createElement(s.AW,{key:et.state.url,exact:!1,path:et.state.url,render:Ln=>E(et,Ln)})))};var cd=Object.defineProperty,pf=Object.getOwnPropertySymbols,kd=Object.prototype.hasOwnProperty,nd=Object.prototype.propertyIsEnumerable,wf=(Ze,ge,et)=>ge in Ze?cd(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,Df=(Ze,ge)=>{for(var et in ge||(ge={}))kd.call(ge,et)&&wf(Ze,et,ge[et]);if(pf)for(var et of pf(ge))nd.call(ge,et)&&wf(Ze,et,ge[et]);return Ze};class nh extends Oe{}nh.Component=({model:Ze})=>{const{component:ge,props:et,reactNode:Ln}=Ze.useState();return ge?i.createElement(ge,Df({},et)):Ln||null};var Bd=t(1695);function xd({page:Ze,routeProps:ge}){const et=Th(Ze),Ln=et.useState();y();const zr=Ze.getScene(ge.match),[Ji,Ja]=(0,i.useState)(!1);if((0,i.useLayoutEffect)(()=>{Ji||(et.initializeScene(zr),Ja(!0))},[Ji,zr,et]),!Ji)return null;const lo={text:Ln.title,img:Ln.titleImg,icon:Ln.titleIcon,url:b(Ln.url,Ln.preserveUrlKeys),hideFromBreadcrumbs:Ln.hideFromBreadcrumbs,parentItem:Td(Ln.getParentPage?Ln.getParentPage():et.parent)};Ln.tabs&&(lo.children=Ln.tabs.map(Xo=>({text:Xo.state.title,active:Ze===Xo,url:b(Xo.state.url,Xo.state.preserveUrlKeys),parentItem:lo})));let To;return Ln.controls&&(To=Ln.controls.map(Xo=>i.createElement(Xo.Component,{model:Xo,key:Xo.state.key}))),i.createElement(Bd.T,{pageNav:lo,actions:To,renderTitle:Ln.renderTitle,subTitle:Ln.subTitle},i.createElement(zr.Component,{model:zr}))}function Th(Ze){return Ze.parent instanceof Pf?Ze.parent:Ze}function Td(Ze,ge){if(Ze instanceof Pf)return{text:Ze.state.title,url:b(Ze.state.url,Ze.state.preserveUrlKeys),hideFromBreadcrumbs:Ze.state.hideFromBreadcrumbs,parentItem:Td(Ze.state.getParentPage?Ze.state.getParentPage():Ze.parent)}}function Qf({drilldown:Ze,parent:ge,routeProps:et}){return E(ge.getDrilldownPage(Ze,et.match),et)}class Pf extends Oe{constructor(ge){super(ge),this._sceneCache=new Map,this._drilldownCache=new Map,this.addActivationHandler(()=>()=>Er().cleanUp(this))}initializeScene(ge){this.setState({initializedScene:ge}),Er().initSync(this)}getScene(ge){let et=this._sceneCache.get(ge.url);if(et)return et;if(!this.state.getScene)throw new Error("Missing getScene on SceneAppPage "+this.state.title);return et=this.state.getScene(ge),this._sceneCache.set(ge.url,et),et}getDrilldownPage(ge,et){let Ln=this._drilldownCache.get(et.url);return Ln||(Ln=ge.getPage(et,this),this._drilldownCache.set(et.url,Ln),Ln)}}Pf.Component=mc;function mc({model:Ze,routeProps:ge}){var et,Ln;const{tabs:zr,drilldowns:Ji}=Ze.useState(),Ja=[];if(zr&&zr.length>0)for(let lo=0;lo<zr.length;lo++){const To=zr[lo];if(lo===0&&Ja.push(i.createElement(s.AW,{exact:!0,key:Ze.state.url,path:(et=Ze.state.routePath)!=null?et:Ze.state.url,render:Xo=>E(To,Xo)})),Ja.push(i.createElement(s.AW,{exact:!0,key:To.state.url,path:(Ln=To.state.routePath)!=null?Ln:To.state.url,render:Xo=>E(To,Xo)})),To.state.drilldowns)for(const Xo of To.state.drilldowns)Ja.push(i.createElement(s.AW,{exact:!1,key:Xo.routePath,path:Xo.routePath,render:mu=>i.createElement(Qf,{drilldown:Xo,parent:To,routeProps:mu})}))}if(Ji)for(const lo of Ji)Ja.push(i.createElement(s.AW,{key:lo.routePath,exact:!1,path:lo.routePath,render:To=>i.createElement(Qf,{drilldown:lo,parent:Ze,routeProps:To})}));return!zr&&ef(Ze,ge.match)?i.createElement(xd,{page:Ze,routeProps:ge}):(Ja.push(Ac(Ze,ge)),i.createElement(s.rs,null,Ja))}function Ac(Ze,ge){return i.createElement(s.AW,{key:"fallback route",render:et=>{const Ln=gf();return i.createElement(xd,{page:Ln,routeProps:ge})}})}function ef(Ze,ge){return ge.isExact?ge.url===Ze.state.url||Ze.parent instanceof Pf&&Ze.parent.state.tabs[0]===Ze&&Ze.parent.state.url===ge.url:!1}function gf(){return new Pf({url:"",title:"Not found",subTitle:"The url did not match any page",getScene:()=>new Sr({body:new yf({direction:"column",children:[new Mf({body:new nh({component:()=>i.createElement("div",{"data-testid":"default-fallback-content"},"If you found your way here using a link then there might be a bug in this application.")})})]})})})}var zf=t(8238),Hf=t(84283),mf=t(97067),fd=t(84317),Ad=t(1472),Ah=t(2137),Rh=t(24839),lh=t(69701),Kf=t(93848),Mh=t(73797),rd=t(39973),Ff=t(10484),yd=t(91813),ra=t(37645),_o=t(34094);class es{constructor(){this._overrides=[]}overrideColor(ge){return this._overrides[this._overrides.length-1].properties.push({id:"color",value:ge}),this}overrideDecimals(ge){return this._overrides[this._overrides.length-1].properties.push({id:"decimals",value:ge}),this}overrideDisplayName(ge){return this._overrides[this._overrides.length-1].properties.push({id:"displayName",value:ge}),this}overrideFilterable(ge){return this._overrides[this._overrides.length-1].properties.push({id:"filterable",value:ge}),this}overrideLinks(ge){return this._overrides[this._overrides.length-1].properties.push({id:"links",value:ge}),this}overrideMappings(ge){return this._overrides[this._overrides.length-1].properties.push({id:"mappings",value:ge}),this}overrideMax(ge){return this._overrides[this._overrides.length-1].properties.push({id:"max",value:ge}),this}overrideMin(ge){return this._overrides[this._overrides.length-1].properties.push({id:"min",value:ge}),this}overrideNoValue(ge){return this._overrides[this._overrides.length-1].properties.push({id:"noValue",value:ge}),this}overrideThresholds(ge){return this._overrides[this._overrides.length-1].properties.push({id:"thresholds",value:ge}),this}overrideUnit(ge){return this._overrides[this._overrides.length-1].properties.push({id:"unit",value:ge}),this}}class as extends es{match(ge){return this._overrides.push({matcher:ge,properties:[]}),this}matchFieldsWithName(ge){return this._overrides.push({matcher:{id:Qs.mi.byName,options:ge},properties:[]}),this}matchFieldsWithNameByRegex(ge){return this._overrides.push({matcher:{id:Qs.mi.byRegexp,options:ge},properties:[]}),this}matchFieldsByType(ge){return this._overrides.push({matcher:{id:Qs.mi.byType,options:ge},properties:[]}),this}matchFieldsByQuery(ge){return this._overrides.push({matcher:{id:Qs.mi.byFrameRefID,options:ge},properties:[]}),this}matchFieldsByValue(ge){return this._overrides.push({matcher:{id:Qs.mi.byValue,options:ge},properties:[]}),this}overrideCustomFieldConfig(ge,et){const Ln=`custom.${String(ge)}`;return this._overrides[this._overrides.length-1].properties.push({id:Ln,value:et}),this}build(){return this._overrides}}var Bs=Object.defineProperty,qs=Object.defineProperties,gu=Object.getOwnPropertyDescriptors,vu=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable,rl=(Ze,ge,et)=>ge in Ze?Bs(Ze,ge,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[ge]=et,fl=(Ze,ge)=>{for(var et in ge||(ge={}))ru.call(ge,et)&&rl(Ze,et,ge[et]);if(vu)for(var et of vu(ge))Ru.call(ge,et)&&rl(Ze,et,ge[et]);return Ze},pl=(Ze,ge)=>qs(Ze,gu(ge));class wu{constructor(ge,et,Ln,zr){this._state={},this._overridesBuilder=new as,this._state.title="",this._state.description="",this._state.displayMode="default",this._state.hoverHeader=!1,this._state.isDraggable=!1,this._state.isResizable=!1,this._state.pluginId=ge,this._state.pluginVersion=et;const Ji={defaults:{custom:zr?zr():{}},overrides:[]};this._state.options=Ln?Ln():{},this._state.fieldConfig=Ji}setTitle(ge){return this._state.title=ge,this}setDescription(ge){return this._state.description=ge,this}setDisplayMode(ge){return this._state.displayMode=ge,this}setHoverHeader(ge){return this._state.hoverHeader=ge,this}setIsDraggable(ge){return this._state.isDraggable=ge,this}setIsResizable(ge){return this._state.isResizable=ge,this}setMenu(ge){return this._state.menu=ge,this}setHeaderActions(ge){return this._state.headerActions=ge,this}setColor(ge){return this.setFieldConfigDefaults("color",ge)}setDecimals(ge){return this.setFieldConfigDefaults("decimals",ge)}setDisplayName(ge){return this.setFieldConfigDefaults("displayName",ge)}setFilterable(ge){return this.setFieldConfigDefaults("filterable",ge)}setLinks(ge){return this.setFieldConfigDefaults("links",ge)}setMappings(ge){return this.setFieldConfigDefaults("mappings",ge)}setMax(ge){return this.setFieldConfigDefaults("max",ge)}setMin(ge){return this.setFieldConfigDefaults("min",ge)}setNoValue(ge){return this.setFieldConfigDefaults("noValue",ge)}setThresholds(ge){return this.setFieldConfigDefaults("thresholds",ge)}setUnit(ge){return this.setFieldConfigDefaults("unit",ge)}setOption(ge,et){return this._state.options=(0,on.merge)(this._state.options,{[ge]:et}),this}setCustomFieldConfig(ge,et){return this._state.fieldConfig.defaults=pl(fl({},this._state.fieldConfig.defaults),{custom:(0,on.merge)(this._state.fieldConfig.defaults.custom,{[ge]:et})}),this}setOverrides(ge){return ge(this._overridesBuilder),this}setData(ge){return this._state.$data=ge,this}setTimeRange(ge){return this._state.$timeRange=ge,this}setVariables(ge){return this._state.$variables=ge,this}setBehaviors(ge){return this._state.$behaviors=ge,this}build(){return new kl(pl(fl({},this._state),{fieldConfig:{defaults:this._state.fieldConfig.defaults,overrides:this._overridesBuilder.build()}}))}setFieldConfigDefaults(ge,et){return this._state.fieldConfig.defaults=pl(fl({},this._state.fieldConfig.defaults),{[ge]:et}),this}}const Vu={barchart(){return new wu("barchart","10.0.0",()=>zf.vC,()=>zf.AU)},bargauge(){return new wu("bargauge","10.0.0",()=>Hf.v)},datagrid(){return new wu("datagrid","10.0.0",()=>mf.v)},flamegraph(){return new wu("flamegraph","10.0.0")},gauge(){return new wu("gauge","10.0.0",()=>fd.v)},geomap(){return new wu("geomap","10.0.0",()=>Ad.vC)},heatmap(){return new wu("heatmap","10.0.0",()=>Ah.vC)},histogram(){return new wu("histogram","10.0.0",()=>Rh.vC,()=>Rh.AU)},logs(){return new wu("logs","10.0.0")},news(){return new wu("news","10.0.0",()=>lh.v)},nodegraph(){return new wu("nodeGraph","10.0.0")},piechart(){return new wu("piechart","10.0.0",()=>Kf.vC)},stat(){return new wu("stat","10.0.0",()=>Mh.v)},statetimeline(){return new wu("state-timeline","10.0.0",()=>rd.vC,()=>rd.AU)},statushistory(){return new wu("status-history","10.0.0",()=>Ff.vC,()=>Ff.AU)},table(){return new wu("table","10.0.0",()=>yd.v)},text(){return new wu("text","10.0.0",()=>ra.vC)},timeseries(){return new wu("timeseries","10.0.0")},trend(){return new wu("trend","10.0.0")},traces(){return new wu("traces","10.0.0")},xychart(){return new wu("xychart","10.0.0",()=>_o.vC,()=>_o.defaultScatterFieldConfig)}},zl={getUrlWithAppState:b,registerRuntimePanelPlugin:W,registerRuntimeDataSource:Z}},70246:(C,c,t)=>{"use strict";t.r(c),t.d(c,{Portal:()=>R,Root:()=>T});var i=t(94285),s=t(27702),u=t(27473);function v(A,I){typeof A=="function"?A(I):A!=null&&(A.current=I)}function l(...A){return I=>A.forEach(N=>v(N,I))}function h(...A){return $3vqmr$useCallback(l(...A),A)}const p=(0,s.forwardRef)((A,I)=>{const{children:N,...K}=A,_=s.Children.toArray(N),W=_.find(g);if(W){const j=W.props.children,re=_.map(X=>X===W?s.Children.count(j)>1?s.Children.only(null):(0,s.isValidElement)(j)?j.props.children:null:X);return(0,s.createElement)(d,(0,i.Z)({},K,{ref:I}),(0,s.isValidElement)(j)?(0,s.cloneElement)(j,void 0,re):null)}return(0,s.createElement)(d,(0,i.Z)({},K,{ref:I}),N)});p.displayName="Slot";const d=(0,s.forwardRef)((A,I)=>{const{children:N,...K}=A;return(0,s.isValidElement)(N)?(0,s.cloneElement)(N,{...y(K,N.props),ref:l(I,N.ref)}):s.Children.count(N)>1?s.Children.only(null):null});d.displayName="SlotClone";const f=({children:A})=>(0,s.createElement)(s.Fragment,null,A);function g(A){return(0,s.isValidElement)(A)&&A.type===f}function y(A,I){const N={...I};for(const K in I){const _=A[K],W=I[K];/^on[A-Z]/.test(K)?_&&W?N[K]=(...re)=>{W(...re),_(...re)}:_&&(N[K]=_):K==="style"?N[K]={..._,...W}:K==="className"&&(N[K]=[_,W].filter(Boolean).join(" "))}return{...A,...N}}const b=null,S=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((A,I)=>{const N=(0,s.forwardRef)((K,_)=>{const{asChild:W,...j}=K,re=W?p:I;return(0,s.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,s.createElement)(re,(0,i.Z)({},j,{ref:_}))});return N.displayName=`Primitive.${I}`,{...A,[I]:N}},{});function w(A,I){A&&$4q5Fq$flushSync(()=>A.dispatchEvent(I))}const x=null,P="Portal",R=(0,s.forwardRef)((A,I)=>{var N;const{container:K=globalThis==null||(N=globalThis.document)===null||N===void 0?void 0:N.body,..._}=A;return K?u.createPortal((0,s.createElement)(S.div,(0,i.Z)({},_,{ref:I})),K):null}),T=R},35094:(C,c,t)=>{"use strict";t.d(c,{Z:()=>G});var i=t(32098),s=t(27702),u=t(27473),v=t(55006),l=t(94251),h=t(76875),p=s.createContext(null);const d=p;var f=t(75342),g=t(66145),y=[];function b(te,ie){var fe=s.useState(function(){if(!(0,v.Z)())return null;var ve=document.createElement("div");return ve}),Se=(0,i.Z)(fe,1),he=Se[0],me=s.useRef(!1),_e=s.useContext(d),we=s.useState(y),Ge=(0,i.Z)(we,2),ht=Ge[0],nt=Ge[1],Re=_e||(me.current?void 0:function(ve){nt(function(Me){var Ye=[ve].concat((0,f.Z)(Me));return Ye})});function ue(){he.parentElement||document.body.appendChild(he),me.current=!0}function ae(){var ve;(ve=he.parentElement)===null||ve===void 0||ve.removeChild(he),me.current=!1}return(0,g.Z)(function(){return te?_e?_e(ue):ue():ae(),ae},[te]),(0,g.Z)(function(){ht.length&&(ht.forEach(function(ve){return ve()}),nt(y))},[ht]),[he,Re]}function E(te,ie){if(!te)return!1;if(te.contains)return te.contains(ie);for(var fe=ie;fe;){if(fe===te)return!0;fe=fe.parentNode}return!1}var S="data-rc-order",w="rc-util-key",x=new Map;function P(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ie=te.mark;return ie?ie.startsWith("data-")?ie:"data-".concat(ie):w}function R(te){if(te.attachTo)return te.attachTo;var ie=document.querySelector("head");return ie||document.body}function T(te){return te==="queue"?"prependQueue":te?"prepend":"append"}function A(te){return Array.from((x.get(te)||te).children).filter(function(ie){return ie.tagName==="STYLE"})}function I(te){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,v.Z)())return null;var fe=ie.csp,Se=ie.prepend,he=document.createElement("style");he.setAttribute(S,T(Se)),fe?.nonce&&(he.nonce=fe?.nonce),he.innerHTML=te;var me=R(ie),_e=me.firstChild;if(Se){if(Se==="queue"){var we=A(me).filter(function(Ge){return["prepend","prependQueue"].includes(Ge.getAttribute(S))});if(we.length)return me.insertBefore(he,we[we.length-1].nextSibling),he}me.insertBefore(he,_e)}else me.appendChild(he);return he}function N(te){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=R(ie);return A(fe).find(function(Se){return Se.getAttribute(P(ie))===te})}function K(te){var ie,fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Se=N(te,fe);Se==null||(ie=Se.parentNode)===null||ie===void 0||ie.removeChild(Se)}function _(te,ie){var fe=x.get(te);if(!fe||!E(document,fe)){var Se=I("",ie),he=Se.parentNode;x.set(te,he),he.removeChild(Se)}}function W(te,ie){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=R(fe);_(Se,fe);var he=N(ie,fe);if(he){var me,_e;if(!((me=fe.csp)===null||me===void 0)&&me.nonce&&he.nonce!==((_e=fe.csp)===null||_e===void 0?void 0:_e.nonce)){var we;he.nonce=(we=fe.csp)===null||we===void 0?void 0:we.nonce}return he.innerHTML!==te&&(he.innerHTML=te),he}var Ge=I(te,fe);return Ge.setAttribute(P(fe),ie),Ge}var j;function re(te){if(typeof document>"u")return 0;if(te||j===void 0){var ie=document.createElement("div");ie.style.width="100%",ie.style.height="200px";var fe=document.createElement("div"),Se=fe.style;Se.position="absolute",Se.top="0",Se.left="0",Se.pointerEvents="none",Se.visibility="hidden",Se.width="200px",Se.height="150px",Se.overflow="hidden",fe.appendChild(ie),document.body.appendChild(fe);var he=ie.offsetWidth;fe.style.overflow="scroll";var me=ie.offsetWidth;he===me&&(me=fe.clientWidth),document.body.removeChild(fe),j=he-me}return j}function X(te){var ie=te.match(/^(.*)px$/),fe=Number(ie?.[1]);return Number.isNaN(fe)?re():fe}function Z(te){if(typeof document>"u"||!te||!(te instanceof Element))return{width:0,height:0};var ie=getComputedStyle(te,"::-webkit-scrollbar"),fe=ie.width,Se=ie.height;return{width:X(fe),height:X(Se)}}function J(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var q="rc-util-locker-".concat(Date.now()),L=0;function $(te){var ie=!!te,fe=s.useState(function(){return L+=1,"".concat(q,"_").concat(L)}),Se=(0,i.Z)(fe,1),he=Se[0];(0,g.Z)(function(){if(ie){var me=re(),_e=J();W(` html body { overflow-y: hidden; `.concat(_e?"width: calc(100% - ".concat(me,"px);"):"",` }`),he)}else K(he);return function(){K(he)}},[ie,he])}var k=!1;function F(te){return typeof te=="boolean"&&(k=te),k}var V=function(ie){return ie===!1?!1:!(0,v.Z)()||!ie?null:typeof ie=="string"?document.querySelector(ie):typeof ie=="function"?ie():ie},pe=s.forwardRef(function(te,ie){var fe=te.open,Se=te.autoLock,he=te.getContainer,me=te.debug,_e=te.autoDestroy,we=_e===void 0?!0:_e,Ge=te.children,ht=s.useState(fe),nt=(0,i.Z)(ht,2),Re=nt[0],ue=nt[1],ae=Re||fe;s.useEffect(function(){(we||fe)&&ue(fe)},[fe,we]);var ve=s.useState(function(){return V(he)}),Me=(0,i.Z)(ve,2),Ye=Me[0],qe=Me[1];s.useEffect(function(){var ct=V(he);qe(ct??null)});var At=b(ae&&!Ye,me),It=(0,i.Z)(At,2),Ce=It[0],Ae=It[1],$e=Ye??Ce;$(Se&&fe&&(0,v.Z)()&&($e===Ce||$e===document.body));var tt=null;if(Ge&&(0,h.Yr)(Ge)&&ie){var ke=Ge;tt=ke.ref}var Oe=(0,h.x1)(tt,ie);if(!ae||!(0,v.Z)()||Ye===void 0)return null;var je=$e===!1||F(),Et=Ge;return ie&&(Et=s.cloneElement(Ge,{ref:Oe})),s.createElement(d.Provider,{value:Ae},je?Et:(0,u.createPortal)(Et,$e))});const G=pe},4371:(C,c,t)=>{"use strict";t.d(c,{LC:()=>$});var i=t(41938),s=t(75892),u=t(27702),v=t(27173),l=t(34099),h=function(k,F){for(var V=0,pe=F.length,ce=k.length;V<pe;V++,ce++)k[ce]=F[V];return k},p=Object.defineProperty,d=Object.defineProperties,f=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,E=function(k,F,V){return F in k?p(k,F,{enumerable:!0,configurable:!0,writable:!0,value:V}):k[F]=V},S=function(k,F){for(var V in F||(F={}))y.call(F,V)&&E(k,V,F[V]);if(g)for(var pe=0,ce=g(F);pe<ce.length;pe++){var V=ce[pe];b.call(F,V)&&E(k,V,F[V])}return k},w=function(k,F){return d(k,f(F))};function x(k,F,V,pe){var ce=(0,u.useMemo)(function(){return{queryArgs:k,serialized:typeof k=="object"?F({queryArgs:k,endpointDefinition:V,endpointName:pe}):k}},[k,F,V,pe]),G=(0,u.useRef)(ce);return(0,u.useEffect)(function(){G.current.serialized!==ce.serialized&&(G.current=ce)},[ce]),G.current.serialized===ce.serialized?G.current.queryArgs:k}var P=Symbol();function R(k){var F=(0,u.useRef)(k);return(0,u.useEffect)(function(){(0,v.shallowEqual)(F.current,k)||(F.current=k)},[k]),(0,v.shallowEqual)(F.current,k)?F.current:k}var T=WeakMap?new WeakMap:void 0,A=function(k){var F=k.endpointName,V=k.queryArgs,pe="",ce=T?.get(V);if(typeof ce=="string")pe=ce;else{var G=JSON.stringify(V,function(te,ie){return(0,l.PO)(ie)?Object.keys(ie).sort().reduce(function(fe,Se){return fe[Se]=ie[Se],fe},{}):ie});(0,l.PO)(V)&&T?.set(V,G),pe=G}return F+"("+pe+")"},I=typeof window<"u"&&window.document&&window.document.createElement?u.useLayoutEffect:u.useEffect,N=function(k){return k},K=function(k){return k.isUninitialized?w(S({},k),{isUninitialized:!1,isFetching:!0,isLoading:k.data===void 0,status:i.oZ.pending}):k};function _(k){var F=k.api,V=k.moduleOptions,pe=V.batch,ce=V.useDispatch,G=V.useSelector,te=V.useStore,ie=V.unstable__sideEffectsInRender,fe=k.serializeQueryArgs,Se=k.context,he=ie?function(ht){return ht()}:u.useEffect;return{buildQueryHooks:we,buildMutationHook:Ge,usePrefetch:_e};function me(ht,nt,Re){if(nt?.endpointName&&ht.isUninitialized){var ue=nt.endpointName,ae=Se.endpointDefinitions[ue];fe({queryArgs:nt.originalArgs,endpointDefinition:ae,endpointName:ue})===fe({queryArgs:Re,endpointDefinition:ae,endpointName:ue})&&(nt=void 0)}var ve=ht.isSuccess?ht.data:nt?.data;ve===void 0&&(ve=ht.data);var Me=ve!==void 0,Ye=ht.isLoading,qe=!Me&&Ye,At=ht.isSuccess||Ye&&Me;return w(S({},ht),{data:ve,currentData:ht.data,isFetching:Ye,isLoading:qe,isSuccess:At})}function _e(ht,nt){var Re=ce(),ue=R(nt);return(0,u.useCallback)(function(ae,ve){return Re(F.util.prefetch(ht,ae,S(S({},ue),ve)))},[ht,Re,ue])}function we(ht){var nt=function(ae,ve){var Me=ve===void 0?{}:ve,Ye=Me.refetchOnReconnect,qe=Me.refetchOnFocus,At=Me.refetchOnMountOrArgChange,It=Me.skip,Ce=It===void 0?!1:It,Ae=Me.pollingInterval,$e=Ae===void 0?0:Ae,tt=F.endpoints[ht].initiate,ke=ce(),Oe=x(Ce?i.CN:ae,A,Se.endpointDefinitions[ht],ht),je=R({refetchOnReconnect:Ye,refetchOnFocus:qe,pollingInterval:$e}),Et=(0,u.useRef)(!1),ct=(0,u.useRef)(),ut=ct.current||{},Ne=ut.queryCacheKey,mt=ut.requestId,bt=!1;if(Ne&&mt){var Gt=ke(F.internalActions.internal_probeSubscription({queryCacheKey:Ne,requestId:mt}));bt=!!Gt}var hn=!bt&&Et.current;return he(function(){Et.current=bt}),he(function(){hn&&(ct.current=void 0)},[hn]),he(function(){var Yt,Bt=ct.current;if(typeof process<"u",Oe===i.CN){Bt?.unsubscribe(),ct.current=void 0;return}var Lt=(Yt=ct.current)==null?void 0:Yt.subscriptionOptions;if(!Bt||Bt.arg!==Oe){Bt?.unsubscribe();var zt=ke(tt(Oe,{subscriptionOptions:je,forceRefetch:At}));ct.current=zt}else je!==Lt&&Bt.updateSubscriptionOptions(je)},[ke,tt,At,Oe,je,hn]),(0,u.useEffect)(function(){return function(){var Yt;(Yt=ct.current)==null||Yt.unsubscribe(),ct.current=void 0}},[]),(0,u.useMemo)(function(){return{refetch:function(){var Yt;if(!ct.current)throw new Error("Cannot refetch a query that has not been started yet.");return(Yt=ct.current)==null?void 0:Yt.refetch()}}},[])},Re=function(ae){var ve=ae===void 0?{}:ae,Me=ve.refetchOnReconnect,Ye=ve.refetchOnFocus,qe=ve.pollingInterval,At=qe===void 0?0:qe,It=F.endpoints[ht].initiate,Ce=ce(),Ae=(0,u.useState)(P),$e=Ae[0],tt=Ae[1],ke=(0,u.useRef)(),Oe=R({refetchOnReconnect:Me,refetchOnFocus:Ye,pollingInterval:At});he(function(){var ct,ut,Ne=(ct=ke.current)==null?void 0:ct.subscriptionOptions;Oe!==Ne&&((ut=ke.current)==null||ut.updateSubscriptionOptions(Oe))},[Oe]);var je=(0,u.useRef)(Oe);he(function(){je.current=Oe},[Oe]);var Et=(0,u.useCallback)(function(ct,ut){ut===void 0&&(ut=!1);var Ne;return pe(function(){var mt;(mt=ke.current)==null||mt.unsubscribe(),ke.current=Ne=Ce(It(ct,{subscriptionOptions:je.current,forceRefetch:!ut})),tt(ct)}),Ne},[Ce,It]);return(0,u.useEffect)(function(){return function(){var ct;(ct=ke?.current)==null||ct.unsubscribe()}},[]),(0,u.useEffect)(function(){$e!==P&&!ke.current&&Et($e,!0)},[$e,Et]),(0,u.useMemo)(function(){return[Et,$e]},[Et,$e])},ue=function(ae,ve){var Me=ve===void 0?{}:ve,Ye=Me.skip,qe=Ye===void 0?!1:Ye,At=Me.selectFromResult,It=F.endpoints[ht].select,Ce=x(qe?i.CN:ae,fe,Se.endpointDefinitions[ht],ht),Ae=(0,u.useRef)(),$e=(0,u.useMemo)(function(){return(0,s.P1)([It(Ce),function(Et,ct){return ct},function(Et){return Ce}],me)},[It,Ce]),tt=(0,u.useMemo)(function(){return At?(0,s.P1)([$e],At):$e},[$e,At]),ke=G(function(Et){return tt(Et,Ae.current)},v.shallowEqual),Oe=te(),je=$e(Oe.getState(),Ae.current);return I(function(){Ae.current=je},[je]),ke};return{useQueryState:ue,useQuerySubscription:nt,useLazyQuerySubscription:Re,useLazyQuery:function(ae){var ve=Re(ae),Me=ve[0],Ye=ve[1],qe=ue(Ye,w(S({},ae),{skip:Ye===P})),At=(0,u.useMemo)(function(){return{lastArg:Ye}},[Ye]);return(0,u.useMemo)(function(){return[Me,qe,At]},[Me,qe,At])},useQuery:function(ae,ve){var Me=nt(ae,ve),Ye=ue(ae,S({selectFromResult:ae===i.CN||ve?.skip?void 0:K},ve)),qe=Ye.data,At=Ye.status,It=Ye.isLoading,Ce=Ye.isSuccess,Ae=Ye.isError,$e=Ye.error;return(0,u.useDebugValue)({data:qe,status:At,isLoading:It,isSuccess:Ce,isError:Ae,error:$e}),(0,u.useMemo)(function(){return S(S({},Ye),Me)},[Ye,Me])}}}function Ge(ht){return function(nt){var Re=nt===void 0?{}:nt,ue=Re.selectFromResult,ae=ue===void 0?N:ue,ve=Re.fixedCacheKey,Me=F.endpoints[ht],Ye=Me.select,qe=Me.initiate,At=ce(),It=(0,u.useState)(),Ce=It[0],Ae=It[1];(0,u.useEffect)(function(){return function(){Ce?.arg.fixedCacheKey||Ce?.reset()}},[Ce]);var $e=(0,u.useCallback)(function(Bt){var Lt=At(qe(Bt,{fixedCacheKey:ve}));return Ae(Lt),Lt},[At,qe,ve]),tt=(Ce||{}).requestId,ke=(0,u.useMemo)(function(){return(0,s.P1)([Ye({fixedCacheKey:ve,requestId:Ce?.requestId})],ae)},[Ye,Ce,ae,ve]),Oe=G(ke,v.shallowEqual),je=ve==null?Ce?.arg.originalArgs:void 0,Et=(0,u.useCallback)(function(){pe(function(){Ce&&Ae(void 0),ve&&At(F.internalActions.removeMutationResult({requestId:tt,fixedCacheKey:ve}))})},[At,ve,Ce,tt]),ct=Oe.endpointName,ut=Oe.data,Ne=Oe.status,mt=Oe.isLoading,bt=Oe.isSuccess,Gt=Oe.isError,hn=Oe.error;(0,u.useDebugValue)({endpointName:ct,data:ut,status:Ne,isLoading:mt,isSuccess:bt,isError:Gt,error:hn});var Yt=(0,u.useMemo)(function(){return w(S({},Oe),{originalArgs:je,reset:Et})},[Oe,je,Et]);return(0,u.useMemo)(function(){return[$e,Yt]},[$e,Yt])}}}var W;(function(k){k.query="query",k.mutation="mutation"})(W||(W={}));function j(k){return k.type===W.query}function re(k){return k.type===W.mutation}function X(k){return k.replace(k[0],k[0].toUpperCase())}function Z(k){for(var F=[],V=1;V<arguments.length;V++)F[V-1]=arguments[V];Object.assign.apply(Object,h([k],F))}var J=Symbol(),q=function(k){var F=k===void 0?{}:k,V=F.batch,pe=V===void 0?v.batch:V,ce=F.useDispatch,G=ce===void 0?v.useDispatch:ce,te=F.useSelector,ie=te===void 0?v.useSelector:te,fe=F.useStore,Se=fe===void 0?v.useStore:fe,he=F.unstable__sideEffectsInRender,me=he===void 0?!1:he;return{name:J,init:function(_e,we,Ge){var ht=we.serializeQueryArgs,nt=_e,Re=_({api:_e,moduleOptions:{batch:pe,useDispatch:G,useSelector:ie,useStore:Se,unstable__sideEffectsInRender:me},serializeQueryArgs:ht,context:Ge}),ue=Re.buildQueryHooks,ae=Re.buildMutationHook,ve=Re.usePrefetch;return Z(nt,{usePrefetch:ve}),Z(Ge,{batch:pe}),{injectEndpoint:function(Me,Ye){if(j(Ye)){var qe=ue(Me),At=qe.useQuery,It=qe.useLazyQuery,Ce=qe.useLazyQuerySubscription,Ae=qe.useQueryState,$e=qe.useQuerySubscription;Z(nt.endpoints[Me],{useQuery:At,useLazyQuery:It,useLazyQuerySubscription:Ce,useQueryState:Ae,useQuerySubscription:$e}),_e["use"+X(Me)+"Query"]=At,_e["useLazy"+X(Me)+"Query"]=It}else if(re(Ye)){var tt=ae(Me);Z(nt.endpoints[Me],{useMutation:tt}),_e["use"+X(Me)+"Mutation"]=tt}}}}}};function L(k){var F=React.useState(function(){var V;return configureStore({reducer:(V={},V[k.api.reducerPath]=k.api.reducer,V),middleware:function(pe){return pe().concat(k.api.middleware)}})})[0];return useEffect4(function(){return k.setupListeners===!1?void 0:setupListeners(F.dispatch,k.setupListeners)},[k.setupListeners,F.dispatch]),React.createElement(Provider,{store:F,context:k.context},k.children)}var $=(0,i.Tk)((0,i.hF)(),q())},41938:(C,c,t)=>{"use strict";t.d(c,{CN:()=>Oe,Tk:()=>Gt,hF:()=>en,oZ:()=>T,sj:()=>_e});var i=t(34099),s=t(95583),u=t(75892),v=t(45645),l=t(4033),h=function(Ke,Ut){var on={label:0,sent:function(){if(Zt[0]&1)throw Zt[1];return Zt[1]},trys:[],ops:[]},Tn,An,Zt,ot;return ot={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(ot[Symbol.iterator]=function(){return this}),ot;function We(it){return function(qt){return Ft([it,qt])}}function Ft(it){if(Tn)throw new TypeError("Generator is already executing.");for(;on;)try{if(Tn=1,An&&(Zt=it[0]&2?An.return:it[0]?An.throw||((Zt=An.return)&&Zt.call(An),0):An.next)&&!(Zt=Zt.call(An,it[1])).done)return Zt;switch(An=0,Zt&&(it=[it[0]&2,Zt.value]),it[0]){case 0:case 1:Zt=it;break;case 4:return on.label++,{value:it[1],done:!1};case 5:on.label++,An=it[1],it=[0];continue;case 7:it=on.ops.pop(),on.trys.pop();continue;default:if(Zt=on.trys,!(Zt=Zt.length>0&&Zt[Zt.length-1])&&(it[0]===6||it[0]===2)){on=0;continue}if(it[0]===3&&(!Zt||it[1]>Zt[0]&&it[1]<Zt[3])){on.label=it[1];break}if(it[0]===6&&on.label<Zt[1]){on.label=Zt[1],Zt=it;break}if(Zt&&on.label<Zt[2]){on.label=Zt[2],on.ops.push(it);break}Zt[2]&&on.ops.pop(),on.trys.pop();continue}it=Ut.call(Ke,on)}catch(qt){it=[6,qt],An=0}finally{Tn=Zt=0}if(it[0]&5)throw it[1];return{value:it[0]?it[1]:void 0,done:!0}}},p=function(Ke,Ut){for(var on=0,Tn=Ut.length,An=Ke.length;on<Tn;on++,An++)Ke[An]=Ut[on];return Ke},d=Object.defineProperty,f=Object.defineProperties,g=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,S=function(Ke,Ut,on){return Ut in Ke?d(Ke,Ut,{enumerable:!0,configurable:!0,writable:!0,value:on}):Ke[Ut]=on},w=function(Ke,Ut){for(var on in Ut||(Ut={}))b.call(Ut,on)&&S(Ke,on,Ut[on]);if(y)for(var Tn=0,An=y(Ut);Tn<An.length;Tn++){var on=An[Tn];E.call(Ut,on)&&S(Ke,on,Ut[on])}return Ke},x=function(Ke,Ut){return f(Ke,g(Ut))},P=function(Ke,Ut){var on={};for(var Tn in Ke)b.call(Ke,Tn)&&Ut.indexOf(Tn)<0&&(on[Tn]=Ke[Tn]);if(Ke!=null&&y)for(var An=0,Zt=y(Ke);An<Zt.length;An++){var Tn=Zt[An];Ut.indexOf(Tn)<0&&E.call(Ke,Tn)&&(on[Tn]=Ke[Tn])}return on},R=function(Ke,Ut,on){return new Promise(function(Tn,An){var Zt=function(Ft){try{We(on.next(Ft))}catch(it){An(it)}},ot=function(Ft){try{We(on.throw(Ft))}catch(it){An(it)}},We=function(Ft){return Ft.done?Tn(Ft.value):Promise.resolve(Ft.value).then(Zt,ot)};We((on=on.apply(Ke,Ut)).next())})},T;(function(Ke){Ke.uninitialized="uninitialized",Ke.pending="pending",Ke.fulfilled="fulfilled",Ke.rejected="rejected"})(T||(T={}));function A(Ke){return{status:Ke,isUninitialized:Ke===T.uninitialized,isLoading:Ke===T.pending,isSuccess:Ke===T.fulfilled,isError:Ke===T.rejected}}function I(Ke){return new RegExp("(^|:)//").test(Ke)}var N=function(Ke){return Ke.replace(/\/$/,"")},K=function(Ke){return Ke.replace(/^\//,"")};function _(Ke,Ut){if(!Ke)return Ut;if(!Ut)return Ke;if(I(Ut))return Ut;var on=Ke.endsWith("/")||!Ut.startsWith("?")?"/":"";return Ke=N(Ke),Ut=K(Ut),""+Ke+on+Ut}var W=function(Ke){return[].concat.apply([],Ke)};function j(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function re(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var X=i.PO;function Z(Ke,Ut){if(Ke===Ut||!(X(Ke)&&X(Ut)||Array.isArray(Ke)&&Array.isArray(Ut)))return Ut;for(var on=Object.keys(Ut),Tn=Object.keys(Ke),An=on.length===Tn.length,Zt=Array.isArray(Ut)?[]:{},ot=0,We=on;ot<We.length;ot++){var Ft=We[ot];Zt[Ft]=Z(Ke[Ft],Ut[Ft]),An&&(An=Ke[Ft]===Zt[Ft])}return An?Ke:Zt}var J=function(){for(var Ke=[],Ut=0;Ut<arguments.length;Ut++)Ke[Ut]=arguments[Ut];return fetch.apply(void 0,Ke)},q=function(Ke){return Ke.status>=200&&Ke.status<=299},L=function(Ke){return/ion\/(vnd\.api\+)?json/.test(Ke.get("content-type")||"")};function $(Ke){if(!isPlainObject2(Ke))return Ke;for(var Ut=w({},Ke),on=0,Tn=Object.entries(Ut);on<Tn.length;on++){var An=Tn[on],Zt=An[0],ot=An[1];ot===void 0&&delete Ut[Zt]}return Ut}function k(Ke){var Ut=this;Ke===void 0&&(Ke={});var on=Ke,Tn=on.baseUrl,An=on.prepareHeaders,Zt=An===void 0?function(Vn){return Vn}:An,ot=on.fetchFn,We=ot===void 0?J:ot,Ft=on.paramsSerializer,it=on.isJsonContentType,qt=it===void 0?L:it,vn=on.jsonContentType,fn=vn===void 0?"application/json":vn,Tt=on.jsonReplacer,dn=on.timeout,mn=on.validateStatus,Kn=P(on,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","validateStatus"]);return typeof fetch>"u"&&We===J&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(Vn,or){return R(Ut,null,function(){var Qr,ni,yr,si,Yr,Ci,Ni,fa,ha,Ca,li,la,Oa,wa,vo,Qn,_r,$r,Ti,xt,On,Zn,Ur,En,ln,jn,rr,Mr,Ir,Zr,lr,Jr,pi,Ri,Ki,ia;return h(this,function(Da){switch(Da.label){case 0:return Qr=or.signal,ni=or.getState,yr=or.extra,si=or.endpoint,Yr=or.forced,Ci=or.type,fa=typeof Vn=="string"?{url:Vn}:Vn,ha=fa.url,Ca=fa.headers,li=Ca===void 0?new Headers(Kn.headers):Ca,la=fa.params,Oa=la===void 0?void 0:la,wa=fa.responseHandler,vo=wa===void 0?"json":wa,Qn=fa.validateStatus,_r=Qn===void 0?mn??q:Qn,$r=fa.timeout,Ti=$r===void 0?dn:$r,xt=P(fa,["url","headers","params","responseHandler","validateStatus","timeout"]),On=w(x(w({},Kn),{signal:Qr}),xt),li=new Headers($(li)),Zn=On,[4,Zt(li,{getState:ni,extra:yr,endpoint:si,forced:Yr,type:Ci})];case 1:Zn.headers=Da.sent()||li,Ur=function(to){return typeof to=="object"&&(isPlainObject2(to)||Array.isArray(to)||typeof to.toJSON=="function")},!On.headers.has("content-type")&&Ur(On.body)&&On.headers.set("content-type",fn),Ur(On.body)&&qt(On.headers)&&(On.body=JSON.stringify(On.body,Tt)),Oa&&(En=~ha.indexOf("?")?"&":"?",ln=Ft?Ft(Oa):new URLSearchParams($(Oa)),ha+=En+ln),ha=_(Tn,ha),jn=new Request(ha,On),rr=jn.clone(),Ni={request:rr},Ir=!1,Zr=Ti&&setTimeout(function(){Ir=!0,or.abort()},Ti),Da.label=2;case 2:return Da.trys.push([2,4,5,6]),[4,We(jn)];case 3:return Mr=Da.sent(),[3,6];case 4:return lr=Da.sent(),[2,{error:{status:Ir?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(lr)},meta:Ni}];case 5:return Zr&&clearTimeout(Zr),[7];case 6:Jr=Mr.clone(),Ni.response=Jr,Ri="",Da.label=7;case 7:return Da.trys.push([7,9,,10]),[4,Promise.all([Dn(Mr,vo).then(function(to){return pi=to},function(to){return Ki=to}),Jr.text().then(function(to){return Ri=to},function(){})])];case 8:if(Da.sent(),Ki)throw Ki;return[3,10];case 9:return ia=Da.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:Mr.status,data:Ri,error:String(ia)},meta:Ni}];case 10:return[2,_r(Mr,pi)?{data:pi,meta:Ni}:{error:{status:Mr.status,data:pi},meta:Ni}]}})})};function Dn(Vn,or){return R(this,null,function(){var Qr;return h(this,function(ni){switch(ni.label){case 0:return typeof or=="function"?[2,or(Vn)]:(or==="content-type"&&(or=qt(Vn.headers)?"json":"text"),or!=="json"?[3,2]:[4,Vn.text()]);case 1:return Qr=ni.sent(),[2,Qr.length?JSON.parse(Qr):null];case 2:return[2,Vn.text()]}})})}}var F=function(){function Ke(Ut,on){on===void 0&&(on=void 0),this.value=Ut,this.meta=on}return Ke}();function V(Ke,Ut){return Ke===void 0&&(Ke=0),Ut===void 0&&(Ut=5),R(this,null,function(){var on,Tn;return h(this,function(An){switch(An.label){case 0:return on=Math.min(Ke,Ut),Tn=~~((Math.random()+.4)*(300<<on)),[4,new Promise(function(Zt){return setTimeout(function(ot){return Zt(ot)},Tn)})];case 1:return An.sent(),[2]}})})}function pe(Ke){throw Object.assign(new F({error:Ke}),{throwImmediately:!0})}var ce={},G=function(Ke,Ut){return function(on,Tn,An){return R(void 0,null,function(){var Zt,ot,We,Ft,it,qt,vn;return h(this,function(fn){switch(fn.label){case 0:Zt=[5,(Ut||ce).maxRetries,(An||ce).maxRetries].filter(function(Tt){return Tt!==void 0}),ot=Zt.slice(-1)[0],We=function(Tt,dn,mn){var Kn=mn.attempt;return Kn<=ot},Ft=w(w({maxRetries:ot,backoff:V,retryCondition:We},Ut),An),it=0,fn.label=1;case 1:fn.label=2;case 2:return fn.trys.push([2,4,,6]),[4,Ke(on,Tn,An)];case 3:if(qt=fn.sent(),qt.error)throw new F(qt);return[2,qt];case 4:if(vn=fn.sent(),it++,vn.throwImmediately){if(vn instanceof F)return[2,vn.value];throw vn}return vn instanceof F&&!Ft.retryCondition(vn.value.error,on,{attempt:it,baseQueryApi:Tn,extraOptions:An})?[2,vn.value]:[4,Ft.backoff(it,Ft.maxRetries)];case 5:return fn.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})}},te=Object.assign(G,{fail:pe}),ie=(0,i.PH)("__rtkq/focused"),fe=(0,i.PH)("__rtkq/unfocused"),Se=(0,i.PH)("__rtkq/online"),he=(0,i.PH)("__rtkq/offline"),me=!1;function _e(Ke,Ut){function on(){var Tn=function(){return Ke(ie())},An=function(){return Ke(fe())},Zt=function(){return Ke(Se())},ot=function(){return Ke(he())},We=function(){window.document.visibilityState==="visible"?Tn():An()};me||typeof window<"u"&&window.addEventListener&&(window.addEventListener("visibilitychange",We,!1),window.addEventListener("focus",Tn,!1),window.addEventListener("online",Zt,!1),window.addEventListener("offline",ot,!1),me=!0);var Ft=function(){window.removeEventListener("focus",Tn),window.removeEventListener("visibilitychange",We),window.removeEventListener("online",Zt),window.removeEventListener("offline",ot),me=!1};return Ft}return Ut?Ut(Ke,{onFocus:ie,onFocusLost:fe,onOffline:he,onOnline:Se}):on()}var we;(function(Ke){Ke.query="query",Ke.mutation="mutation"})(we||(we={}));function Ge(Ke){return Ke.type===we.query}function ht(Ke){return Ke.type===we.mutation}function nt(Ke,Ut,on,Tn,An,Zt){return Re(Ke)?Ke(Ut,on,Tn,An).map(ue).map(Zt):Array.isArray(Ke)?Ke.map(ue).map(Zt):[]}function Re(Ke){return typeof Ke=="function"}function ue(Ke){return typeof Ke=="string"?{type:Ke}:Ke}function ae(Ke){return Ke!=null}var ve=Symbol("forceQueryFn"),Me=function(Ke){return typeof Ke[ve]=="function"};function Ye(Ke){var Ut=Ke.serializeQueryArgs,on=Ke.queryThunk,Tn=Ke.mutationThunk,An=Ke.api,Zt=Ke.context,ot=new Map,We=new Map,Ft=An.internalActions,it=Ft.unsubscribeQueryResult,qt=Ft.removeMutationResult,vn=Ft.updateSubscriptionOptions;return{buildInitiateQuery:or,buildInitiateMutation:Qr,getRunningQueryThunk:dn,getRunningMutationThunk:mn,getRunningQueriesThunk:Kn,getRunningMutationsThunk:Dn,getRunningOperationPromises:Tt,removalWarning:fn};function fn(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details. See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function Tt(){typeof process<"u";var ni=function(yr){return Array.from(yr.values()).flatMap(function(si){return si?Object.values(si):[]})};return p(p([],ni(ot)),ni(We)).filter(ae)}function dn(ni,yr){return function(si){var Yr,Ci=Zt.endpointDefinitions[ni],Ni=Ut({queryArgs:yr,endpointDefinition:Ci,endpointName:ni});return(Yr=ot.get(si))==null?void 0:Yr[Ni]}}function mn(ni,yr){return function(si){var Yr;return(Yr=We.get(si))==null?void 0:Yr[yr]}}function Kn(){return function(ni){return Object.values(ot.get(ni)||{}).filter(ae)}}function Dn(){return function(ni){return Object.values(We.get(ni)||{}).filter(ae)}}function Vn(ni){if(!1)var yr}function or(ni,yr){var si=function(Yr,Ci){var Ni=Ci===void 0?{}:Ci,fa=Ni.subscribe,ha=fa===void 0?!0:fa,Ca=Ni.forceRefetch,li=Ni.subscriptionOptions,la=ve,Oa=Ni[la];return function(wa,vo){var Qn,_r,$r=Ut({queryArgs:Yr,endpointDefinition:yr,endpointName:ni}),Ti=on((Qn={type:"query",subscribe:ha,forceRefetch:Ca,subscriptionOptions:li,endpointName:ni,originalArgs:Yr,queryCacheKey:$r},Qn[ve]=Oa,Qn)),xt=An.endpoints[ni].select(Yr),On=wa(Ti),Zn=xt(vo());Vn(wa);var Ur=On.requestId,En=On.abort,ln=Zn.requestId!==Ur,jn=(_r=ot.get(wa))==null?void 0:_r[$r],rr=function(){return xt(vo())},Mr=Object.assign(Oa?On.then(rr):ln&&!jn?Promise.resolve(Zn):Promise.all([jn,On]).then(rr),{arg:Yr,requestId:Ur,subscriptionOptions:li,queryCacheKey:$r,abort:En,unwrap:function(){return R(this,null,function(){var Zr;return h(this,function(lr){switch(lr.label){case 0:return[4,Mr];case 1:if(Zr=lr.sent(),Zr.isError)throw Zr.error;return[2,Zr.data]}})})},refetch:function(){return wa(si(Yr,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){ha&&wa(it({queryCacheKey:$r,requestId:Ur}))},updateSubscriptionOptions:function(Zr){Mr.subscriptionOptions=Zr,wa(vn({endpointName:ni,requestId:Ur,queryCacheKey:$r,options:Zr}))}});if(!jn&&!ln&&!Oa){var Ir=ot.get(wa)||{};Ir[$r]=Mr,ot.set(wa,Ir),Mr.then(function(){delete Ir[$r],Object.keys(Ir).length||ot.delete(wa)})}return Mr}};return si}function Qr(ni){return function(yr,si){var Yr=si===void 0?{}:si,Ci=Yr.track,Ni=Ci===void 0?!0:Ci,fa=Yr.fixedCacheKey;return function(ha,Ca){var li=Tn({type:"mutation",endpointName:ni,originalArgs:yr,track:Ni,fixedCacheKey:fa}),la=ha(li);Vn(ha);var Oa=la.requestId,wa=la.abort,vo=la.unwrap,Qn=la.unwrap().then(function(xt){return{data:xt}}).catch(function(xt){return{error:xt}}),_r=function(){ha(qt({requestId:Oa,fixedCacheKey:fa}))},$r=Object.assign(Qn,{arg:la.arg,requestId:Oa,abort:wa,unwrap:vo,unsubscribe:_r,reset:_r}),Ti=We.get(ha)||{};return We.set(ha,Ti),Ti[Oa]=$r,$r.then(function(){delete Ti[Oa],Object.keys(Ti).length||We.delete(ha)}),fa&&(Ti[fa]=$r,$r.then(function(){Ti[fa]===$r&&(delete Ti[fa],Object.keys(Ti).length||We.delete(ha))})),$r}}}}function qe(Ke){return Ke}function At(Ke){var Ut=this,on=Ke.reducerPath,Tn=Ke.baseQuery,An=Ke.context.endpointDefinitions,Zt=Ke.serializeQueryArgs,ot=Ke.api,We=function(or,Qr,ni){return function(yr){var si=An[or];yr(ot.internalActions.queryResultPatched({queryCacheKey:Zt({queryArgs:Qr,endpointDefinition:si,endpointName:or}),patches:ni}))}},Ft=function(or,Qr,ni){return function(yr,si){var Yr,Ci,Ni=ot.endpoints[or].select(Qr)(si()),fa={patches:[],inversePatches:[],undo:function(){return yr(ot.util.patchQueryData(or,Qr,fa.inversePatches))}};if(Ni.status===T.uninitialized)return fa;if("data"in Ni)if((0,s.o$)(Ni.data)){var ha=(0,s.aS)(Ni.data,ni),Ca=ha[1],li=ha[2];(Yr=fa.patches).push.apply(Yr,Ca),(Ci=fa.inversePatches).push.apply(Ci,li)}else{var la=ni(Ni.data);fa.patches.push({op:"replace",path:[],value:la}),fa.inversePatches.push({op:"replace",path:[],value:Ni.data})}return yr(ot.util.patchQueryData(or,Qr,fa.patches)),fa}},it=function(or,Qr,ni){return function(yr){var si;return yr(ot.endpoints[or].initiate(Qr,(si={subscribe:!1,forceRefetch:!0},si[ve]=function(){return{data:ni}},si)))}},qt=function(or,Qr){return R(Ut,[or,Qr],function(ni,yr){var si,Yr,Ci,Ni,fa,ha,Ca,li,la,Oa,wa,vo,Qn,_r,$r,Ti,xt,On,Zn=yr.signal,Ur=yr.abort,En=yr.rejectWithValue,ln=yr.fulfillWithValue,jn=yr.dispatch,rr=yr.getState,Mr=yr.extra;return h(this,function(Ir){switch(Ir.label){case 0:si=An[ni.endpointName],Ir.label=1;case 1:return Ir.trys.push([1,8,,13]),Yr=qe,Ci=void 0,Ni={signal:Zn,abort:Ur,dispatch:jn,getState:rr,extra:Mr,endpoint:ni.endpointName,type:ni.type,forced:ni.type==="query"?vn(ni,rr()):void 0},fa=ni.type==="query"?ni[ve]:void 0,fa?(Ci=fa(),[3,6]):[3,2];case 2:return si.query?[4,Tn(si.query(ni.originalArgs),Ni,si.extraOptions)]:[3,4];case 3:return Ci=Ir.sent(),si.transformResponse&&(Yr=si.transformResponse),[3,6];case 4:return[4,si.queryFn(ni.originalArgs,Ni,si.extraOptions,function(Zr){return Tn(Zr,Ni,si.extraOptions)})];case 5:Ci=Ir.sent(),Ir.label=6;case 6:if(typeof process<"u",Ci.error)throw new F(Ci.error,Ci.meta);return wa=ln,[4,Yr(Ci.data,Ci.meta,ni.originalArgs)];case 7:return[2,wa.apply(void 0,[Ir.sent(),(xt={fulfilledTimeStamp:Date.now(),baseQueryMeta:Ci.meta},xt[i.s4]=!0,xt)])];case 8:if(vo=Ir.sent(),Qn=vo,!(Qn instanceof F))return[3,12];_r=qe,si.query&&si.transformErrorResponse&&(_r=si.transformErrorResponse),Ir.label=9;case 9:return Ir.trys.push([9,11,,12]),$r=En,[4,_r(Qn.value,Qn.meta,ni.originalArgs)];case 10:return[2,$r.apply(void 0,[Ir.sent(),(On={baseQueryMeta:Qn.meta},On[i.s4]=!0,On)])];case 11:return Ti=Ir.sent(),Qn=Ti,[3,12];case 12:throw typeof process<"u",console.error(Qn),Qn;case 13:return[2]}})})};function vn(or,Qr){var ni,yr,si,Yr,Ci=(yr=(ni=Qr[on])==null?void 0:ni.queries)==null?void 0:yr[or.queryCacheKey],Ni=(si=Qr[on])==null?void 0:si.config.refetchOnMountOrArgChange,fa=Ci?.fulfilledTimeStamp,ha=(Yr=or.forceRefetch)!=null?Yr:or.subscribe&&Ni;return ha?ha===!0||(Number(new Date)-Number(fa))/1e3>=ha:!1}var fn=(0,i.hg)(on+"/executeQuery",qt,{getPendingMeta:function(){var or;return or={startedTimeStamp:Date.now()},or[i.s4]=!0,or},condition:function(or,Qr){var ni=Qr.getState,yr,si,Yr,Ci=ni(),Ni=(si=(yr=Ci[on])==null?void 0:yr.queries)==null?void 0:si[or.queryCacheKey],fa=Ni?.fulfilledTimeStamp,ha=or.originalArgs,Ca=Ni?.originalArgs,li=An[or.endpointName];return Me(or)?!0:Ni?.status==="pending"?!1:vn(or,Ci)||Ge(li)&&((Yr=li?.forceRefetch)!=null&&Yr.call(li,{currentArg:ha,previousArg:Ca,endpointState:Ni,state:Ci}))?!0:!fa},dispatchConditionRejection:!0}),Tt=(0,i.hg)(on+"/executeMutation",qt,{getPendingMeta:function(){var or;return or={startedTimeStamp:Date.now()},or[i.s4]=!0,or}}),dn=function(or){return"force"in or},mn=function(or){return"ifOlderThan"in or},Kn=function(or,Qr,ni){return function(yr,si){var Yr=dn(ni)&&ni.force,Ci=mn(ni)&&ni.ifOlderThan,Ni=function(li){return li===void 0&&(li=!0),ot.endpoints[or].initiate(Qr,{forceRefetch:li})},fa=ot.endpoints[or].select(Qr)(si());if(Yr)yr(Ni());else if(Ci){var ha=fa?.fulfilledTimeStamp;if(!ha){yr(Ni());return}var Ca=(Number(new Date)-Number(new Date(ha)))/1e3>=Ci;Ca&&yr(Ni())}else yr(Ni(!1))}};function Dn(or){return function(Qr){var ni,yr;return((yr=(ni=Qr?.meta)==null?void 0:ni.arg)==null?void 0:yr.endpointName)===or}}function Vn(or,Qr){return{matchPending:(0,i.A6)((0,i.zR)(or),Dn(Qr)),matchFulfilled:(0,i.A6)((0,i.KD)(or),Dn(Qr)),matchRejected:(0,i.A6)((0,i.Iv)(or),Dn(Qr))}}return{queryThunk:fn,mutationThunk:Tt,prefetch:Kn,updateQueryData:Ft,upsertQueryData:it,patchQueryData:We,buildMatchThunkActions:Vn}}function It(Ke,Ut,on,Tn){return nt(on[Ke.meta.arg.endpointName][Ut],(0,i.KD)(Ke)?Ke.payload:void 0,(0,i.h_)(Ke)?Ke.payload:void 0,Ke.meta.arg.originalArgs,"baseQueryMeta"in Ke.meta?Ke.meta.baseQueryMeta:void 0,Tn)}function Ce(Ke,Ut,on){var Tn=Ke[Ut];Tn&&on(Tn)}function Ae(Ke){var Ut;return(Ut="arg"in Ke?Ke.arg.fixedCacheKey:Ke.fixedCacheKey)!=null?Ut:Ke.requestId}function $e(Ke,Ut,on){var Tn=Ke[Ae(Ut)];Tn&&on(Tn)}var tt={};function ke(Ke){var Ut=Ke.reducerPath,on=Ke.queryThunk,Tn=Ke.mutationThunk,An=Ke.context,Zt=An.endpointDefinitions,ot=An.apiUid,We=An.extractRehydrationInfo,Ft=An.hasRehydrationInfo,it=Ke.assertTagType,qt=Ke.config,vn=(0,i.PH)(Ut+"/resetApiState"),fn=(0,i.oM)({name:Ut+"/queries",initialState:tt,reducers:{removeQueryResult:{reducer:function(ni,yr){var si=yr.payload.queryCacheKey;delete ni[si]},prepare:(0,i.cw)()},queryResultPatched:function(ni,yr){var si=yr.payload,Yr=si.queryCacheKey,Ci=si.patches;Ce(ni,Yr,function(Ni){Ni.data=(0,s.QE)(Ni.data,Ci.concat())})}},extraReducers:function(ni){ni.addCase(on.pending,function(yr,si){var Yr=si.meta,Ci=si.meta.arg,Ni,fa,ha=Me(Ci);(Ci.subscribe||ha)&&((fa=yr[Ni=Ci.queryCacheKey])!=null||(yr[Ni]={status:T.uninitialized,endpointName:Ci.endpointName})),Ce(yr,Ci.queryCacheKey,function(Ca){Ca.status=T.pending,Ca.requestId=ha&&Ca.requestId?Ca.requestId:Yr.requestId,Ci.originalArgs!==void 0&&(Ca.originalArgs=Ci.originalArgs),Ca.startedTimeStamp=Yr.startedTimeStamp})}).addCase(on.fulfilled,function(yr,si){var Yr=si.meta,Ci=si.payload;Ce(yr,Yr.arg.queryCacheKey,function(Ni){var fa;if(!(Ni.requestId!==Yr.requestId&&!Me(Yr.arg))){var ha=Zt[Yr.arg.endpointName].merge;if(Ni.status=T.fulfilled,ha)if(Ni.data!==void 0){var Ca=Yr.fulfilledTimeStamp,li=Yr.arg,la=Yr.baseQueryMeta,Oa=Yr.requestId,wa=(0,s.ZP)(Ni.data,function(vo){return ha(vo,Ci,{arg:li.originalArgs,baseQueryMeta:la,fulfilledTimeStamp:Ca,requestId:Oa})});Ni.data=wa}else Ni.data=Ci;else Ni.data=(fa=Zt[Yr.arg.endpointName].structuralSharing)==null||fa?Z(Ni.data,Ci):Ci;delete Ni.error,Ni.fulfilledTimeStamp=Yr.fulfilledTimeStamp}})}).addCase(on.rejected,function(yr,si){var Yr=si.meta,Ci=Yr.condition,Ni=Yr.arg,fa=Yr.requestId,ha=si.error,Ca=si.payload;Ce(yr,Ni.queryCacheKey,function(li){if(!Ci){if(li.requestId!==fa)return;li.status=T.rejected,li.error=Ca??ha}})}).addMatcher(Ft,function(yr,si){for(var Yr=We(si).queries,Ci=0,Ni=Object.entries(Yr);Ci<Ni.length;Ci++){var fa=Ni[Ci],ha=fa[0],Ca=fa[1];(Ca?.status===T.fulfilled||Ca?.status===T.rejected)&&(yr[ha]=Ca)}})}}),Tt=(0,i.oM)({name:Ut+"/mutations",initialState:tt,reducers:{removeMutationResult:{reducer:function(ni,yr){var si=yr.payload,Yr=Ae(si);Yr in ni&&delete ni[Yr]},prepare:(0,i.cw)()}},extraReducers:function(ni){ni.addCase(Tn.pending,function(yr,si){var Yr=si.meta,Ci=si.meta,Ni=Ci.requestId,fa=Ci.arg,ha=Ci.startedTimeStamp;fa.track&&(yr[Ae(Yr)]={requestId:Ni,status:T.pending,endpointName:fa.endpointName,startedTimeStamp:ha})}).addCase(Tn.fulfilled,function(yr,si){var Yr=si.payload,Ci=si.meta;Ci.arg.track&&$e(yr,Ci,function(Ni){Ni.requestId===Ci.requestId&&(Ni.status=T.fulfilled,Ni.data=Yr,Ni.fulfilledTimeStamp=Ci.fulfilledTimeStamp)})}).addCase(Tn.rejected,function(yr,si){var Yr=si.payload,Ci=si.error,Ni=si.meta;Ni.arg.track&&$e(yr,Ni,function(fa){fa.requestId===Ni.requestId&&(fa.status=T.rejected,fa.error=Yr??Ci)})}).addMatcher(Ft,function(yr,si){for(var Yr=We(si).mutations,Ci=0,Ni=Object.entries(Yr);Ci<Ni.length;Ci++){var fa=Ni[Ci],ha=fa[0],Ca=fa[1];(Ca?.status===T.fulfilled||Ca?.status===T.rejected)&&ha!==Ca?.requestId&&(yr[ha]=Ca)}})}}),dn=(0,i.oM)({name:Ut+"/invalidation",initialState:tt,reducers:{},extraReducers:function(ni){ni.addCase(fn.actions.removeQueryResult,function(yr,si){for(var Yr=si.payload.queryCacheKey,Ci=0,Ni=Object.values(yr);Ci<Ni.length;Ci++)for(var fa=Ni[Ci],ha=0,Ca=Object.values(fa);ha<Ca.length;ha++){var li=Ca[ha],la=li.indexOf(Yr);la!==-1&&li.splice(la,1)}}).addMatcher(Ft,function(yr,si){for(var Yr,Ci,Ni,fa,ha=We(si).provided,Ca=0,li=Object.entries(ha);Ca<li.length;Ca++)for(var la=li[Ca],Oa=la[0],wa=la[1],vo=0,Qn=Object.entries(wa);vo<Qn.length;vo++)for(var _r=Qn[vo],$r=_r[0],Ti=_r[1],xt=(fa=(Ci=(Yr=yr[Oa])!=null?Yr:yr[Oa]={})[Ni=$r||"__internal_without_id"])!=null?fa:Ci[Ni]=[],On=0,Zn=Ti;On<Zn.length;On++){var Ur=Zn[On],En=xt.includes(Ur);En||xt.push(Ur)}}).addMatcher((0,i.Q)((0,i.KD)(on),(0,i.h_)(on)),function(yr,si){for(var Yr,Ci,Ni,fa,ha=It(si,"providesTags",Zt,it),Ca=si.meta.arg.queryCacheKey,li=0,la=Object.values(yr);li<la.length;li++)for(var Oa=la[li],wa=0,vo=Object.values(Oa);wa<vo.length;wa++){var Qn=vo[wa],_r=Qn.indexOf(Ca);_r!==-1&&Qn.splice(_r,1)}for(var $r=0,Ti=ha;$r<Ti.length;$r++){var xt=Ti[$r],On=xt.type,Zn=xt.id,Ur=(fa=(Ci=(Yr=yr[On])!=null?Yr:yr[On]={})[Ni=Zn||"__internal_without_id"])!=null?fa:Ci[Ni]=[],En=Ur.includes(Ca);En||Ur.push(Ca)}})}}),mn=(0,i.oM)({name:Ut+"/subscriptions",initialState:tt,reducers:{updateSubscriptionOptions:function(ni,yr){},unsubscribeQueryResult:function(ni,yr){},internal_probeSubscription:function(ni,yr){}}}),Kn=(0,i.oM)({name:Ut+"/internalSubscriptions",initialState:tt,reducers:{subscriptionsUpdated:function(ni,yr){return(0,s.QE)(ni,yr.payload)}}}),Dn=(0,i.oM)({name:Ut+"/config",initialState:w({online:j(),focused:re(),middlewareRegistered:!1},qt),reducers:{middlewareRegistered:function(ni,yr){var si=yr.payload;ni.middlewareRegistered=ni.middlewareRegistered==="conflict"||ot!==si?"conflict":!0}},extraReducers:function(ni){ni.addCase(Se,function(yr){yr.online=!0}).addCase(he,function(yr){yr.online=!1}).addCase(ie,function(yr){yr.focused=!0}).addCase(fe,function(yr){yr.focused=!1}).addMatcher(Ft,function(yr){return w({},yr)})}}),Vn=(0,v.combineReducers)({queries:fn.reducer,mutations:Tt.reducer,provided:dn.reducer,subscriptions:Kn.reducer,config:Dn.reducer}),or=function(ni,yr){return Vn(vn.match(yr)?void 0:ni,yr)},Qr=x(w(w(w(w(w({},Dn.actions),fn.actions),mn.actions),Kn.actions),Tt.actions),{unsubscribeMutationResult:Tt.actions.removeMutationResult,resetApiState:vn});return{reducer:or,actions:Qr}}var Oe=Symbol.for("RTKQ/skipToken"),je=null,Et={status:T.uninitialized},ct=(0,s.ZP)(Et,function(){}),ut=(0,s.ZP)(Et,function(){});function Ne(Ke){var Ut=Ke.serializeQueryArgs,on=Ke.reducerPath,Tn=function(qt){return ct},An=function(qt){return ut};return{buildQuerySelector:We,buildMutationSelector:Ft,selectInvalidatedBy:it};function Zt(qt){return w(w({},qt),A(qt.status))}function ot(qt){var vn=qt[on];return vn}function We(qt,vn){return function(fn){var Tt=Ut({queryArgs:fn,endpointDefinition:vn,endpointName:qt}),dn=function(Kn){var Dn,Vn,or;return(or=(Vn=(Dn=ot(Kn))==null?void 0:Dn.queries)==null?void 0:Vn[Tt])!=null?or:ct},mn=fn===Oe?Tn:dn;return(0,u.P1)(mn,Zt)}}function Ft(){return function(qt){var vn,fn;typeof qt=="object"?fn=(vn=Ae(qt))!=null?vn:Oe:fn=qt;var Tt=function(mn){var Kn,Dn,Vn;return(Vn=(Dn=(Kn=ot(mn))==null?void 0:Kn.mutations)==null?void 0:Dn[fn])!=null?Vn:ut},dn=fn===Oe?An:Tt;return(0,u.P1)(dn,Zt)}}function it(qt,vn){for(var fn,Tt=qt[on],dn=new Set,mn=0,Kn=vn.map(ue);mn<Kn.length;mn++){var Dn=Kn[mn],Vn=Tt.provided[Dn.type];if(Vn)for(var or=(fn=Dn.id!==void 0?Vn[Dn.id]:W(Object.values(Vn)))!=null?fn:[],Qr=0,ni=or;Qr<ni.length;Qr++){var yr=ni[Qr];dn.add(yr)}}return W(Array.from(dn.values()).map(function(si){var Yr=Tt.queries[si];return Yr?[{queryCacheKey:si,endpointName:Yr.endpointName,originalArgs:Yr.originalArgs}]:[]}))}}var mt=WeakMap?new WeakMap:void 0,bt=function(Ke){var Ut=Ke.endpointName,on=Ke.queryArgs,Tn="",An=mt?.get(on);if(typeof An=="string")Tn=An;else{var Zt=JSON.stringify(on,function(ot,We){return(0,i.PO)(We)?Object.keys(We).sort().reduce(function(Ft,it){return Ft[it]=We[it],Ft},{}):We});(0,i.PO)(on)&&mt?.set(on,Zt),Tn=Zt}return Ut+"("+Tn+")"};function Gt(){for(var Ke=[],Ut=0;Ut<arguments.length;Ut++)Ke[Ut]=arguments[Ut];return function(Tn){var An=(0,l.PW)(function(qt){var vn,fn;return(fn=Tn.extractRehydrationInfo)==null?void 0:fn.call(Tn,qt,{reducerPath:(vn=Tn.reducerPath)!=null?vn:"api"})}),Zt=x(w({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},Tn),{extractRehydrationInfo:An,serializeQueryArgs:function(qt){var vn=bt;if("serializeQueryArgs"in qt.endpointDefinition){var fn=qt.endpointDefinition.serializeQueryArgs;vn=function(Tt){var dn=fn(Tt);return typeof dn=="string"?dn:bt(x(w({},Tt),{queryArgs:dn}))}}else Tn.serializeQueryArgs&&(vn=Tn.serializeQueryArgs);return vn(qt)},tagTypes:p([],Tn.tagTypes||[])}),ot={endpointDefinitions:{},batch:function(qt){qt()},apiUid:(0,i.x0)(),extractRehydrationInfo:An,hasRehydrationInfo:(0,l.PW)(function(qt){return An(qt)!=null})},We={injectEndpoints:it,enhanceEndpoints:function(qt){var vn=qt.addTagTypes,fn=qt.endpoints;if(vn)for(var Tt=0,dn=vn;Tt<dn.length;Tt++){var mn=dn[Tt];Zt.tagTypes.includes(mn)||Zt.tagTypes.push(mn)}if(fn)for(var Kn=0,Dn=Object.entries(fn);Kn<Dn.length;Kn++){var Vn=Dn[Kn],or=Vn[0],Qr=Vn[1];typeof Qr=="function"?Qr(ot.endpointDefinitions[or]):Object.assign(ot.endpointDefinitions[or]||{},Qr)}return We}},Ft=Ke.map(function(qt){return qt.init(We,Zt,ot)});function it(qt){for(var vn=qt.endpoints({query:function(Qr){return x(w({},Qr),{type:we.query})},mutation:function(Qr){return x(w({},Qr),{type:we.mutation})}}),fn=0,Tt=Object.entries(vn);fn<Tt.length;fn++){var dn=Tt[fn],mn=dn[0],Kn=dn[1];if(!qt.overrideExisting&&mn in ot.endpointDefinitions){typeof process<"u";continue}ot.endpointDefinitions[mn]=Kn;for(var Dn=0,Vn=Ft;Dn<Vn.length;Dn++){var or=Vn[Dn];or.injectEndpoint(mn,Kn)}}return We}return We.injectEndpoints({endpoints:Tn.endpoints})}}function hn(){return function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")}}function Yt(Ke){for(var Ut in Ke)return!1;return!0}var Bt=2147483647/1e3-1,Lt=function(Ke){var Ut=Ke.reducerPath,on=Ke.api,Tn=Ke.context,An=Ke.internalState,Zt=on.internalActions,ot=Zt.removeQueryResult,We=Zt.unsubscribeQueryResult;function Ft(fn){var Tt=An.currentSubscriptions[fn];return!!Tt&&!Yt(Tt)}var it={},qt=function(fn,Tt,dn){var mn;if(We.match(fn)){var Kn=Tt.getState()[Ut],Dn=fn.payload.queryCacheKey;vn(Dn,(mn=Kn.queries[Dn])==null?void 0:mn.endpointName,Tt,Kn.config)}if(on.util.resetApiState.match(fn))for(var Vn=0,or=Object.entries(it);Vn<or.length;Vn++){var Qr=or[Vn],ni=Qr[0],yr=Qr[1];yr&&clearTimeout(yr),delete it[ni]}if(Tn.hasRehydrationInfo(fn))for(var Kn=Tt.getState()[Ut],si=Tn.extractRehydrationInfo(fn).queries,Yr=0,Ci=Object.entries(si);Yr<Ci.length;Yr++){var Ni=Ci[Yr],Dn=Ni[0],fa=Ni[1];vn(Dn,fa?.endpointName,Tt,Kn.config)}};function vn(fn,Tt,dn,mn){var Kn,Dn=Tn.endpointDefinitions[Tt],Vn=(Kn=Dn?.keepUnusedDataFor)!=null?Kn:mn.keepUnusedDataFor;if(Vn!==1/0){var or=Math.max(0,Math.min(Vn,Bt));if(!Ft(fn)){var Qr=it[fn];Qr&&clearTimeout(Qr),it[fn]=setTimeout(function(){Ft(fn)||dn.dispatch(ot({queryCacheKey:fn})),delete it[fn]},or*1e3)}}}return qt},zt=function(Ke){var Ut=Ke.reducerPath,on=Ke.context,Tn=Ke.context.endpointDefinitions,An=Ke.mutationThunk,Zt=Ke.api,ot=Ke.assertTagType,We=Ke.refetchQuery,Ft=Zt.internalActions.removeQueryResult,it=(0,i.Q)((0,i.KD)(An),(0,i.h_)(An)),qt=function(fn,Tt){it(fn)&&vn(It(fn,"invalidatesTags",Tn,ot),Tt),Zt.util.invalidateTags.match(fn)&&vn(nt(fn.payload,void 0,void 0,void 0,void 0,ot),Tt)};function vn(fn,Tt){var dn=Tt.getState(),mn=dn[Ut],Kn=Zt.util.selectInvalidatedBy(dn,fn);on.batch(function(){for(var Dn,Vn=Array.from(Kn.values()),or=0,Qr=Vn;or<Qr.length;or++){var ni=Qr[or].queryCacheKey,yr=mn.queries[ni],si=(Dn=mn.subscriptions[ni])!=null?Dn:{};yr&&(Object.keys(si).length===0?Tt.dispatch(Ft({queryCacheKey:ni})):yr.status!==T.uninitialized&&Tt.dispatch(We(yr,ni)))}})}return qt},Kt=function(Ke){var Ut=Ke.reducerPath,on=Ke.queryThunk,Tn=Ke.api,An=Ke.refetchQuery,Zt=Ke.internalState,ot={},We=function(Tt,dn){(Tn.internalActions.updateSubscriptionOptions.match(Tt)||Tn.internalActions.unsubscribeQueryResult.match(Tt))&&it(Tt.payload,dn),(on.pending.match(Tt)||on.rejected.match(Tt)&&Tt.meta.condition)&&it(Tt.meta.arg,dn),(on.fulfilled.match(Tt)||on.rejected.match(Tt)&&!Tt.meta.condition)&&Ft(Tt.meta.arg,dn),Tn.util.resetApiState.match(Tt)&&vn()};function Ft(Tt,dn){var mn=Tt.queryCacheKey,Kn=dn.getState()[Ut],Dn=Kn.queries[mn],Vn=Zt.currentSubscriptions[mn];if(!(!Dn||Dn.status===T.uninitialized)){var or=fn(Vn);if(Number.isFinite(or)){var Qr=ot[mn];Qr?.timeout&&(clearTimeout(Qr.timeout),Qr.timeout=void 0);var ni=Date.now()+or,yr=ot[mn]={nextPollTimestamp:ni,pollingInterval:or,timeout:setTimeout(function(){yr.timeout=void 0,dn.dispatch(An(Dn,mn))},or)}}}}function it(Tt,dn){var mn=Tt.queryCacheKey,Kn=dn.getState()[Ut],Dn=Kn.queries[mn],Vn=Zt.currentSubscriptions[mn];if(!(!Dn||Dn.status===T.uninitialized)){var or=fn(Vn);if(!Number.isFinite(or)){qt(mn);return}var Qr=ot[mn],ni=Date.now()+or;(!Qr||ni<Qr.nextPollTimestamp)&&Ft({queryCacheKey:mn},dn)}}function qt(Tt){var dn=ot[Tt];dn?.timeout&&clearTimeout(dn.timeout),delete ot[Tt]}function vn(){for(var Tt=0,dn=Object.keys(ot);Tt<dn.length;Tt++){var mn=dn[Tt];qt(mn)}}function fn(Tt){Tt===void 0&&(Tt={});var dn=Number.POSITIVE_INFINITY;for(var mn in Tt)Tt[mn].pollingInterval&&(dn=Math.min(Tt[mn].pollingInterval,dn));return dn}return We},vt=function(Ke){var Ut=Ke.reducerPath,on=Ke.context,Tn=Ke.api,An=Ke.refetchQuery,Zt=Ke.internalState,ot=Tn.internalActions.removeQueryResult,We=function(it,qt){ie.match(it)&&Ft(qt,"refetchOnFocus"),Se.match(it)&&Ft(qt,"refetchOnReconnect")};function Ft(it,qt){var vn=it.getState()[Ut],fn=vn.queries,Tt=Zt.currentSubscriptions;on.batch(function(){for(var dn=0,mn=Object.keys(Tt);dn<mn.length;dn++){var Kn=mn[dn],Dn=fn[Kn],Vn=Tt[Kn];if(!(!Vn||!Dn)){var or=Object.values(Vn).some(function(Qr){return Qr[qt]===!0})||Object.values(Vn).every(function(Qr){return Qr[qt]===void 0})&&vn.config[qt];or&&(Object.keys(Vn).length===0?it.dispatch(ot({queryCacheKey:Kn})):Dn.status!==T.uninitialized&&it.dispatch(An(Dn,Kn)))}}})}return We},Ve=new Error("Promise never resolved before cacheEntryRemoved."),lt=function(Ke){var Ut=Ke.api,on=Ke.reducerPath,Tn=Ke.context,An=Ke.queryThunk,Zt=Ke.mutationThunk,ot=Ke.internalState,We=(0,i.Gx)(An),Ft=(0,i.Gx)(Zt),it=(0,i.KD)(An,Zt),qt={},vn=function(dn,mn,Kn){var Dn=fn(dn);if(An.pending.match(dn)){var Vn=Kn[on].queries[Dn],or=mn.getState()[on].queries[Dn];!Vn&&or&&Tt(dn.meta.arg.endpointName,dn.meta.arg.originalArgs,Dn,mn,dn.meta.requestId)}else if(Zt.pending.match(dn)){var or=mn.getState()[on].mutations[Dn];or&&Tt(dn.meta.arg.endpointName,dn.meta.arg.originalArgs,Dn,mn,dn.meta.requestId)}else if(it(dn)){var Qr=qt[Dn];Qr?.valueResolved&&(Qr.valueResolved({data:dn.payload,meta:dn.meta.baseQueryMeta}),delete Qr.valueResolved)}else if(Ut.internalActions.removeQueryResult.match(dn)||Ut.internalActions.removeMutationResult.match(dn)){var Qr=qt[Dn];Qr&&(delete qt[Dn],Qr.cacheEntryRemoved())}else if(Ut.util.resetApiState.match(dn))for(var ni=0,yr=Object.entries(qt);ni<yr.length;ni++){var si=yr[ni],Yr=si[0],Qr=si[1];delete qt[Yr],Qr.cacheEntryRemoved()}};function fn(dn){return We(dn)?dn.meta.arg.queryCacheKey:Ft(dn)?dn.meta.requestId:Ut.internalActions.removeQueryResult.match(dn)?dn.payload.queryCacheKey:Ut.internalActions.removeMutationResult.match(dn)?Ae(dn.payload):""}function Tt(dn,mn,Kn,Dn,Vn){var or=Tn.endpointDefinitions[dn],Qr=or?.onCacheEntryAdded;if(Qr){var ni={},yr=new Promise(function(ha){ni.cacheEntryRemoved=ha}),si=Promise.race([new Promise(function(ha){ni.valueResolved=ha}),yr.then(function(){throw Ve})]);si.catch(function(){}),qt[Kn]=ni;var Yr=Ut.endpoints[dn].select(or.type===we.query?mn:Kn),Ci=Dn.dispatch(function(ha,Ca,li){return li}),Ni=x(w({},Dn),{getCacheEntry:function(){return Yr(Dn.getState())},requestId:Vn,extra:Ci,updateCachedData:or.type===we.query?function(ha){return Dn.dispatch(Ut.util.updateQueryData(dn,mn,ha))}:void 0,cacheDataLoaded:si,cacheEntryRemoved:yr}),fa=Qr(mn,Ni);Promise.resolve(fa).catch(function(ha){if(ha!==Ve)throw ha})}}return vn},at=function(Ke){var Ut=Ke.api,on=Ke.context,Tn=Ke.queryThunk,An=Ke.mutationThunk,Zt=(0,i.zR)(Tn,An),ot=(0,i.Iv)(Tn,An),We=(0,i.KD)(Tn,An),Ft={},it=function(qt,vn){var fn,Tt,dn;if(Zt(qt)){var mn=qt.meta,Kn=mn.requestId,Dn=mn.arg,Vn=Dn.endpointName,or=Dn.originalArgs,Qr=on.endpointDefinitions[Vn],ni=Qr?.onQueryStarted;if(ni){var yr={},si=new Promise(function(la,Oa){yr.resolve=la,yr.reject=Oa});si.catch(function(){}),Ft[Kn]=yr;var Yr=Ut.endpoints[Vn].select(Qr.type===we.query?or:Kn),Ci=vn.dispatch(function(la,Oa,wa){return wa}),Ni=x(w({},vn),{getCacheEntry:function(){return Yr(vn.getState())},requestId:Kn,extra:Ci,updateCachedData:Qr.type===we.query?function(la){return vn.dispatch(Ut.util.updateQueryData(Vn,or,la))}:void 0,queryFulfilled:si});ni(or,Ni)}}else if(We(qt)){var fa=qt.meta,Kn=fa.requestId,ha=fa.baseQueryMeta;(fn=Ft[Kn])==null||fn.resolve({data:qt.payload,meta:ha}),delete Ft[Kn]}else if(ot(qt)){var Ca=qt.meta,Kn=Ca.requestId,li=Ca.rejectedWithValue,ha=Ca.baseQueryMeta;(dn=Ft[Kn])==null||dn.reject({error:(Tt=qt.payload)!=null?Tt:qt.error,isUnhandledError:!li,meta:ha}),delete Ft[Kn]}};return it},Xt=function(Ke){var Ut=Ke.api,on=Ke.context.apiUid,Tn=Ke.reducerPath;return function(An,Zt){var ot,We;Ut.util.resetApiState.match(An)&&Zt.dispatch(Ut.internalActions.middlewareRegistered(on)),typeof process<"u"}},rt,Rt=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof t.g<"u"?t.g:globalThis):function(Ke){return(rt||(rt=Promise.resolve())).then(Ke).catch(function(Ut){return setTimeout(function(){throw Ut},0)})},rn=function(Ke){var Ut=Ke.api,on=Ke.queryThunk,Tn=Ke.internalState,An=Ut.reducerPath+"/subscriptions",Zt=null,ot=!1,We=Ut.internalActions,Ft=We.updateSubscriptionOptions,it=We.unsubscribeQueryResult,qt=function(vn,fn){var Tt,dn,mn,Kn,Dn,Vn,or,Qr,ni;if(Ft.match(fn)){var yr=fn.payload,si=yr.queryCacheKey,Yr=yr.requestId,Ci=yr.options;return(Tt=vn?.[si])!=null&&Tt[Yr]&&(vn[si][Yr]=Ci),!0}if(it.match(fn)){var Ni=fn.payload,si=Ni.queryCacheKey,Yr=Ni.requestId;return vn[si]&&delete vn[si][Yr],!0}if(Ut.internalActions.removeQueryResult.match(fn))return delete vn[fn.payload.queryCacheKey],!0;if(on.pending.match(fn)){var fa=fn.meta,ha=fa.arg,Yr=fa.requestId;if(ha.subscribe){var Ca=(mn=vn[dn=ha.queryCacheKey])!=null?mn:vn[dn]={};return Ca[Yr]=(Dn=(Kn=ha.subscriptionOptions)!=null?Kn:Ca[Yr])!=null?Dn:{},!0}}if(on.rejected.match(fn)){var li=fn.meta,la=li.condition,ha=li.arg,Yr=li.requestId;if(la&&ha.subscribe){var Ca=(or=vn[Vn=ha.queryCacheKey])!=null?or:vn[Vn]={};return Ca[Yr]=(ni=(Qr=ha.subscriptionOptions)!=null?Qr:Ca[Yr])!=null?ni:{},!0}}return!1};return function(vn,fn){var Tt,dn;if(Zt||(Zt=JSON.parse(JSON.stringify(Tn.currentSubscriptions))),Ut.internalActions.internal_probeSubscription.match(vn)){var mn=vn.payload,Kn=mn.queryCacheKey,Dn=mn.requestId,Vn=!!((Tt=Tn.currentSubscriptions[Kn])!=null&&Tt[Dn]);return[!1,Vn]}var or=qt(Tn.currentSubscriptions,vn);if(or){ot||(Rt(function(){var si=JSON.parse(JSON.stringify(Tn.currentSubscriptions)),Yr=(0,s.aS)(Zt,function(){return si}),Ci=Yr[1];fn.next(Ut.internalActions.subscriptionsUpdated(Ci)),Zt=si,ot=!1}),ot=!0);var Qr=!!((dn=vn.type)!=null&&dn.startsWith(An)),ni=on.rejected.match(vn)&&vn.meta.condition&&!!vn.meta.arg.subscribe,yr=!Qr&&!ni;return[yr,!1]}return[!0,!1]}};function sn(Ke){var Ut=Ke.reducerPath,on=Ke.queryThunk,Tn=Ke.api,An=Ke.context,Zt=An.apiUid,ot={invalidateTags:(0,i.PH)(Ut+"/invalidateTags")},We=function(vn){return!!vn&&typeof vn.type=="string"&&vn.type.startsWith(Ut+"/")},Ft=[Xt,Lt,zt,Kt,lt,at],it=function(vn){var fn=!1,Tt={currentSubscriptions:{}},dn=x(w({},Ke),{internalState:Tt,refetchQuery:qt}),mn=Ft.map(function(Vn){return Vn(dn)}),Kn=rn(dn),Dn=vt(dn);return function(Vn){return function(or){fn||(fn=!0,vn.dispatch(Tn.internalActions.middlewareRegistered(Zt)));var Qr=x(w({},vn),{next:Vn}),ni=vn.getState(),yr=Kn(or,Qr,ni),si=yr[0],Yr=yr[1],Ci;if(si?Ci=Vn(or):Ci=Yr,vn.getState()[Ut]&&(Dn(or,Qr,ni),We(or)||An.hasRehydrationInfo(or)))for(var Ni=0,fa=mn;Ni<fa.length;Ni++){var ha=fa[Ni];ha(or,Qr,ni)}return Ci}}};return{middleware:it,actions:ot};function qt(vn,fn,Tt){return Tt===void 0&&(Tt={}),on(w({type:"query",endpointName:vn.endpointName,originalArgs:vn.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:fn},Tt))}}function Jn(Ke){}function ze(Ke){for(var Ut=[],on=1;on<arguments.length;on++)Ut[on-1]=arguments[on];Object.assign.apply(Object,p([Ke],Ut))}var st=Symbol(),en=function(){return{name:st,init:function(Ke,Ut,on){var Tn=Ut.baseQuery,An=Ut.tagTypes,Zt=Ut.reducerPath,ot=Ut.serializeQueryArgs,We=Ut.keepUnusedDataFor,Ft=Ut.refetchOnMountOrArgChange,it=Ut.refetchOnFocus,qt=Ut.refetchOnReconnect;(0,s.vI)();var vn=function(xt){return typeof process<"u",xt};Object.assign(Ke,{reducerPath:Zt,endpoints:{},internalActions:{onOnline:Se,onOffline:he,onFocus:ie,onFocusLost:fe},util:{}});var fn=At({baseQuery:Tn,reducerPath:Zt,context:on,api:Ke,serializeQueryArgs:ot}),Tt=fn.queryThunk,dn=fn.mutationThunk,mn=fn.patchQueryData,Kn=fn.updateQueryData,Dn=fn.upsertQueryData,Vn=fn.prefetch,or=fn.buildMatchThunkActions,Qr=ke({context:on,queryThunk:Tt,mutationThunk:dn,reducerPath:Zt,assertTagType:vn,config:{refetchOnFocus:it,refetchOnReconnect:qt,refetchOnMountOrArgChange:Ft,keepUnusedDataFor:We,reducerPath:Zt}}),ni=Qr.reducer,yr=Qr.actions;ze(Ke.util,{patchQueryData:mn,updateQueryData:Kn,upsertQueryData:Dn,prefetch:Vn,resetApiState:yr.resetApiState}),ze(Ke.internalActions,yr);var si=sn({reducerPath:Zt,context:on,queryThunk:Tt,mutationThunk:dn,api:Ke,assertTagType:vn}),Yr=si.middleware,Ci=si.actions;ze(Ke.util,Ci),ze(Ke,{reducer:ni,middleware:Yr});var Ni=Ne({serializeQueryArgs:ot,reducerPath:Zt}),fa=Ni.buildQuerySelector,ha=Ni.buildMutationSelector,Ca=Ni.selectInvalidatedBy;ze(Ke.util,{selectInvalidatedBy:Ca});var li=Ye({queryThunk:Tt,mutationThunk:dn,api:Ke,serializeQueryArgs:ot,context:on}),la=li.buildInitiateQuery,Oa=li.buildInitiateMutation,wa=li.getRunningMutationThunk,vo=li.getRunningMutationsThunk,Qn=li.getRunningQueriesThunk,_r=li.getRunningQueryThunk,$r=li.getRunningOperationPromises,Ti=li.removalWarning;return ze(Ke.util,{getRunningOperationPromises:$r,getRunningOperationPromise:Ti,getRunningMutationThunk:wa,getRunningMutationsThunk:vo,getRunningQueryThunk:_r,getRunningQueriesThunk:Qn}),{name:st,injectEndpoint:function(xt,On){var Zn,Ur,En=Ke;(Ur=(Zn=En.endpoints)[xt])!=null||(Zn[xt]={}),Ge(On)?ze(En.endpoints[xt],{name:xt,select:fa(xt,On),initiate:la(xt,On)},or(Tt,xt)):ht(On)&&ze(En.endpoints[xt],{name:xt,select:ha(),initiate:Oa(xt)},or(dn,xt))}}}}},wt=Gt(en())},34099:(C,c,t)=>{"use strict";t.d(c,{s4:()=>ha,NH:()=>si,xC:()=>me,PH:()=>_e,hg:()=>hn,HF:()=>Et,e:()=>fa,Lq:()=>ae,oM:()=>Ye,A6:()=>vt,Q:()=>Kt,Gx:()=>rn,KD:()=>Rt,zR:()=>at,PO:()=>K,Iv:()=>Xt,h_:()=>rt,x0:()=>ut,cw:()=>Ca});var i=t(95583),s=t(75892),u=t(45645);function v(Qn){var _r=function(Ti){var xt=Ti.dispatch,On=Ti.getState;return function(Zn){return function(Ur){return typeof Ur=="function"?Ur(xt,On,Qn):Zn(Ur)}}};return _r}var l=v();l.withExtraArgument=v;const h=l;var p=function(){var Qn=function(_r,$r){return Qn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ti,xt){Ti.__proto__=xt}||function(Ti,xt){for(var On in xt)Object.prototype.hasOwnProperty.call(xt,On)&&(Ti[On]=xt[On])},Qn(_r,$r)};return function(_r,$r){if(typeof $r!="function"&&$r!==null)throw new TypeError("Class extends value "+String($r)+" is not a constructor or null");Qn(_r,$r);function Ti(){this.constructor=_r}_r.prototype=$r===null?Object.create($r):(Ti.prototype=$r.prototype,new Ti)}}(),d=function(Qn,_r){var $r={label:0,sent:function(){if(On[0]&1)throw On[1];return On[1]},trys:[],ops:[]},Ti,xt,On,Zn;return Zn={next:Ur(0),throw:Ur(1),return:Ur(2)},typeof Symbol=="function"&&(Zn[Symbol.iterator]=function(){return this}),Zn;function Ur(ln){return function(jn){return En([ln,jn])}}function En(ln){if(Ti)throw new TypeError("Generator is already executing.");for(;$r;)try{if(Ti=1,xt&&(On=ln[0]&2?xt.return:ln[0]?xt.throw||((On=xt.return)&&On.call(xt),0):xt.next)&&!(On=On.call(xt,ln[1])).done)return On;switch(xt=0,On&&(ln=[ln[0]&2,On.value]),ln[0]){case 0:case 1:On=ln;break;case 4:return $r.label++,{value:ln[1],done:!1};case 5:$r.label++,xt=ln[1],ln=[0];continue;case 7:ln=$r.ops.pop(),$r.trys.pop();continue;default:if(On=$r.trys,!(On=On.length>0&&On[On.length-1])&&(ln[0]===6||ln[0]===2)){$r=0;continue}if(ln[0]===3&&(!On||ln[1]>On[0]&&ln[1]<On[3])){$r.label=ln[1];break}if(ln[0]===6&&$r.label<On[1]){$r.label=On[1],On=ln;break}if(On&&$r.label<On[2]){$r.label=On[2],$r.ops.push(ln);break}On[2]&&$r.ops.pop(),$r.trys.pop();continue}ln=_r.call(Qn,$r)}catch(jn){ln=[6,jn],xt=0}finally{Ti=On=0}if(ln[0]&5)throw ln[1];return{value:ln[0]?ln[1]:void 0,done:!0}}},f=function(Qn,_r){for(var $r=0,Ti=_r.length,xt=Qn.length;$r<Ti;$r++,xt++)Qn[xt]=_r[$r];return Qn},g=Object.defineProperty,y=Object.defineProperties,b=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,x=function(Qn,_r,$r){return _r in Qn?g(Qn,_r,{enumerable:!0,configurable:!0,writable:!0,value:$r}):Qn[_r]=$r},P=function(Qn,_r){for(var $r in _r||(_r={}))S.call(_r,$r)&&x(Qn,$r,_r[$r]);if(E)for(var Ti=0,xt=E(_r);Ti<xt.length;Ti++){var $r=xt[Ti];w.call(_r,$r)&&x(Qn,$r,_r[$r])}return Qn},R=function(Qn,_r){return y(Qn,b(_r))},T=function(Qn,_r,$r){return new Promise(function(Ti,xt){var On=function(En){try{Ur($r.next(En))}catch(ln){xt(ln)}},Zn=function(En){try{Ur($r.throw(En))}catch(ln){xt(ln)}},Ur=function(En){return En.done?Ti(En.value):Promise.resolve(En.value).then(On,Zn)};Ur(($r=$r.apply(Qn,_r)).next())})},A=function(){for(var Qn=[],_r=0;_r<arguments.length;_r++)Qn[_r]=arguments[_r];var $r=s.P1.apply(void 0,Qn),Ti=function(xt){for(var On=[],Zn=1;Zn<arguments.length;Zn++)On[Zn-1]=arguments[Zn];return $r.apply(void 0,f([(0,i.mv)(xt)?(0,i.Vk)(xt):xt],On))};return Ti},I=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?u.compose:u.compose.apply(null,arguments)},N=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(Qn){return Qn}};function K(Qn){if(typeof Qn!="object"||Qn===null)return!1;var _r=Object.getPrototypeOf(Qn);if(_r===null)return!0;for(var $r=_r;Object.getPrototypeOf($r)!==null;)$r=Object.getPrototypeOf($r);return _r===$r}function _(Qn,_r){var $r=0;return{measureTime:function(Ti){var xt=Date.now();try{return Ti()}finally{var On=Date.now();$r+=On-xt}},warnIfExceeded:function(){$r>Qn&&console.warn(_r+" took "+$r+"ms, which is more than the warning threshold of "+Qn+`ms. If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions. It is disabled in production builds, so you don't need to worry about that.`)}}}var W=function(Qn){p(_r,Qn);function _r(){for(var $r=[],Ti=0;Ti<arguments.length;Ti++)$r[Ti]=arguments[Ti];var xt=Qn.apply(this,$r)||this;return Object.setPrototypeOf(xt,_r.prototype),xt}return Object.defineProperty(_r,Symbol.species,{get:function(){return _r},enumerable:!1,configurable:!0}),_r.prototype.concat=function(){for(var $r=[],Ti=0;Ti<arguments.length;Ti++)$r[Ti]=arguments[Ti];return Qn.prototype.concat.apply(this,$r)},_r.prototype.prepend=function(){for(var $r=[],Ti=0;Ti<arguments.length;Ti++)$r[Ti]=arguments[Ti];return $r.length===1&&Array.isArray($r[0])?new(_r.bind.apply(_r,f([void 0],$r[0].concat(this)))):new(_r.bind.apply(_r,f([void 0],$r.concat(this))))},_r}(Array);function j(Qn){return(0,i.o$)(Qn)?(0,i.ZP)(Qn,function(){}):Qn}var re=null,X="Invariant failed";function Z(Qn,_r){if(!Qn)throw re?new Error(X):new Error(X+": "+(_r||""))}function J(Qn,_r,$r,Ti){return JSON.stringify(Qn,q(_r,Ti),$r)}function q(Qn,_r){var $r=[],Ti=[];return _r||(_r=function(xt,On){return $r[0]===On?"[Circular ~]":"[Circular ~."+Ti.slice(0,$r.indexOf(On)).join(".")+"]"}),function(xt,On){if($r.length>0){var Zn=$r.indexOf(this);~Zn?$r.splice(Zn+1):$r.push(this),~Zn?Ti.splice(Zn,1/0,xt):Ti.push(xt),~$r.indexOf(On)&&(On=_r.call(this,xt,On))}else $r.push(On);return Qn==null?On:Qn.call(this,xt,On)}}function L(Qn){return typeof Qn!="object"||Qn==null||Object.isFrozen(Qn)}function $(Qn,_r,$r){var Ti=k(Qn,_r,$r);return{detectMutations:function(){return F(Qn,_r,Ti,$r)}}}function k(Qn,_r,$r,Ti){_r===void 0&&(_r=[]),Ti===void 0&&(Ti="");var xt={value:$r};if(!Qn($r)){xt.children={};for(var On in $r){var Zn=Ti?Ti+"."+On:On;_r.length&&_r.indexOf(Zn)!==-1||(xt.children[On]=k(Qn,_r,$r[On],Zn))}}return xt}function F(Qn,_r,$r,Ti,xt,On){_r===void 0&&(_r=[]),xt===void 0&&(xt=!1),On===void 0&&(On="");var Zn=$r?$r.value:void 0,Ur=Zn===Ti;if(xt&&!Ur&&!Number.isNaN(Ti))return{wasMutated:!0,path:On};if(Qn(Zn)||Qn(Ti))return{wasMutated:!1};var En={};for(var ln in $r.children)En[ln]=!0;for(var ln in Ti)En[ln]=!0;var jn=_r.length>0,rr=function(Ir){var Zr=On?On+"."+Ir:Ir;if(jn){var lr=_r.some(function(pi){return pi instanceof RegExp?pi.test(Zr):Zr===pi});if(lr)return"continue"}var Jr=F(Qn,_r,$r.children[Ir],Ti[Ir],Ur,Zr);if(Jr.wasMutated)return{value:Jr}};for(var ln in En){var Mr=rr(ln);if(typeof Mr=="object")return Mr.value}return{wasMutated:!1}}function V(Qn){return Qn===void 0&&(Qn={}),function(){return function(En){return function(ln){return En(ln)}}};var _r=Qn.isImmutable,$r=_r===void 0?L:_r,Ti=Qn.ignoredPaths,xt=Qn.warnAfter,On=xt===void 0?32:xt,Zn=Qn.ignore;Ti=Ti||Zn;var Ur=$.bind(null,$r,Ti);return function(En){var ln=En.getState,jn=ln(),rr=Ur(jn),Mr;return function(Ir){return function(Zr){var lr=_(On,"ImmutableStateInvariantMiddleware");lr.measureTime(function(){jn=ln(),Mr=rr.detectMutations(),rr=Ur(jn),Z(!Mr.wasMutated,"A state mutation was detected between dispatches, in the path '"+(Mr.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var Jr=Ir(Zr);return lr.measureTime(function(){jn=ln(),Mr=rr.detectMutations(),rr=Ur(jn),Mr.wasMutated&&Z(!Mr.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(Mr.path||"")+". Take a look at the reducer(s) handling the action "+J(Zr)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),lr.warnIfExceeded(),Jr}}}}function pe(Qn){var _r=typeof Qn;return Qn==null||_r==="string"||_r==="boolean"||_r==="number"||Array.isArray(Qn)||K(Qn)}function ce(Qn,_r,$r,Ti,xt,On){_r===void 0&&(_r=""),$r===void 0&&($r=pe),xt===void 0&&(xt=[]);var Zn;if(!$r(Qn))return{keyPath:_r||"<root>",value:Qn};if(typeof Qn!="object"||Qn===null||On?.has(Qn))return!1;for(var Ur=Ti!=null?Ti(Qn):Object.entries(Qn),En=xt.length>0,ln=function(Jr,pi){var Ri=_r?_r+"."+Jr:Jr;if(En){var Ki=xt.some(function(ia){return ia instanceof RegExp?ia.test(Ri):Ri===ia});if(Ki)return"continue"}if(!$r(pi))return{value:{keyPath:Ri,value:pi}};if(typeof pi=="object"&&(Zn=ce(pi,Ri,$r,Ti,xt,On),Zn))return{value:Zn}},jn=0,rr=Ur;jn<rr.length;jn++){var Mr=rr[jn],Ir=Mr[0],Zr=Mr[1],lr=ln(Ir,Zr);if(typeof lr=="object")return lr.value}return On&&G(Qn)&&On.add(Qn),!1}function G(Qn){if(!Object.isFrozen(Qn))return!1;for(var _r=0,$r=Object.values(Qn);_r<$r.length;_r++){var Ti=$r[_r];if(!(typeof Ti!="object"||Ti===null)&&!G(Ti))return!1}return!0}function te(Qn){return Qn===void 0&&(Qn={}),function(){return function(Ki){return function(ia){return Ki(ia)}}};var _r=Qn.isSerializable,$r=_r===void 0?pe:_r,Ti=Qn.getEntries,xt=Qn.ignoredActions,On=xt===void 0?[]:xt,Zn=Qn.ignoredActionPaths,Ur=Zn===void 0?["meta.arg","meta.baseQueryMeta"]:Zn,En=Qn.ignoredPaths,ln=En===void 0?[]:En,jn=Qn.warnAfter,rr=jn===void 0?32:jn,Mr=Qn.ignoreState,Ir=Mr===void 0?!1:Mr,Zr=Qn.ignoreActions,lr=Zr===void 0?!1:Zr,Jr=Qn.disableCache,pi=Jr===void 0?!1:Jr,Ri=!pi&&WeakSet?new WeakSet:void 0;return function(Ki){return function(ia){return function(Da){var to=ia(Da),ao=_(rr,"SerializableStateInvariantMiddleware");return!lr&&!(On.length&&On.indexOf(Da.type)!==-1)&&ao.measureTime(function(){var Bo=ce(Da,"",$r,Ti,Ur,Ri);if(Bo){var jo=Bo.keyPath,Jo=Bo.value;console.error("A non-serializable value was detected in an action, in the path: `"+jo+"`. Value:",Jo,` Take a look at the logic that dispatched this action: `,Da,` (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,` (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),Ir||(ao.measureTime(function(){var Bo=Ki.getState(),jo=ce(Bo,"",$r,Ti,ln,Ri);if(jo){var Jo=jo.keyPath,Go=jo.value;console.error("A non-serializable value was detected in the state, in the path: `"+Jo+"`. Value:",Go,` Take a look at the reducer(s) handling this action type: `+Da.type+`. (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),ao.warnIfExceeded()),to}}}}function ie(Qn){return typeof Qn=="boolean"}function fe(){return function(_r){return Se(_r)}}function Se(Qn){Qn===void 0&&(Qn={});var _r=Qn.thunk,$r=_r===void 0?!0:_r,Ti=Qn.immutableCheck,xt=Ti===void 0?!0:Ti,On=Qn.serializableCheck,Zn=On===void 0?!0:On,Ur=new W;if($r&&(ie($r)?Ur.push(h):Ur.push(h.withExtraArgument($r.extraArgument))),!1)var En,ln;return Ur}var he=!0;function me(Qn){var _r=fe(),$r=Qn||{},Ti=$r.reducer,xt=Ti===void 0?void 0:Ti,On=$r.middleware,Zn=On===void 0?_r():On,Ur=$r.devTools,En=Ur===void 0?!0:Ur,ln=$r.preloadedState,jn=ln===void 0?void 0:ln,rr=$r.enhancers,Mr=rr===void 0?void 0:rr,Ir;if(typeof xt=="function")Ir=xt;else if(K(xt))Ir=(0,u.combineReducers)(xt);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var Zr=Zn;if(typeof Zr=="function"&&(Zr=Zr(_r),!he&&!Array.isArray(Zr)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!he&&Zr.some(function(Ki){return typeof Ki!="function"}))throw new Error("each middleware provided to configureStore must be a function");var lr=u.applyMiddleware.apply(void 0,Zr),Jr=u.compose;En&&(Jr=I(P({trace:!he},typeof En=="object"&&En)));var pi=[lr];Array.isArray(Mr)?pi=f([lr],Mr):typeof Mr=="function"&&(pi=Mr(pi));var Ri=Jr.apply(void 0,pi);return(0,u.createStore)(Ir,jn,Ri)}function _e(Qn,_r){function $r(){for(var Ti=[],xt=0;xt<arguments.length;xt++)Ti[xt]=arguments[xt];if(_r){var On=_r.apply(void 0,Ti);if(!On)throw new Error("prepareAction did not return an object");return P(P({type:Qn,payload:On.payload},"meta"in On&&{meta:On.meta}),"error"in On&&{error:On.error})}return{type:Qn,payload:Ti[0]}}return $r.toString=function(){return""+Qn},$r.type=Qn,$r.match=function(Ti){return Ti.type===Qn},$r}function we(Qn){return K(Qn)&&typeof Qn.type=="string"&&Object.keys(Qn).every(Ge)}function Ge(Qn){return["type","payload","error","meta"].indexOf(Qn)>-1}function ht(Qn){return""+Qn}function nt(Qn){var _r={},$r=[],Ti,xt={addCase:function(On,Zn){var Ur=typeof On=="string"?On:On.type;if(Ur in _r)throw new Error("addCase cannot be called with two reducers for the same action type");return _r[Ur]=Zn,xt},addMatcher:function(On,Zn){return $r.push({matcher:On,reducer:Zn}),xt},addDefaultCase:function(On){return Ti=On,xt}};return Qn(xt),[_r,$r,Ti]}function Re(Qn){return typeof Qn=="function"}var ue=!1;function ae(Qn,_r,$r,Ti){$r===void 0&&($r=[]);var xt=typeof _r=="function"?nt(_r):[_r,$r,Ti],On=xt[0],Zn=xt[1],Ur=xt[2],En;if(Re(Qn))En=function(){return j(Qn())};else{var ln=j(Qn);En=function(){return ln}}function jn(rr,Mr){rr===void 0&&(rr=En());var Ir=f([On[Mr.type]],Zn.filter(function(Zr){var lr=Zr.matcher;return lr(Mr)}).map(function(Zr){var lr=Zr.reducer;return lr}));return Ir.filter(function(Zr){return!!Zr}).length===0&&(Ir=[Ur]),Ir.reduce(function(Zr,lr){if(lr)if((0,i.mv)(Zr)){var Jr=Zr,pi=lr(Jr,Mr);return pi===void 0?Zr:pi}else{if((0,i.o$)(Zr))return(0,i.ZP)(Zr,function(Ri){return lr(Ri,Mr)});var pi=lr(Zr,Mr);if(pi===void 0){if(Zr===null)return Zr;throw Error("A case reducer on a non-draftable value must not return undefined")}return pi}return Zr},rr)}return jn.getInitialState=En,jn}var ve=!1;function Me(Qn,_r){return Qn+"/"+_r}function Ye(Qn){var _r=Qn.name;if(!_r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var $r=typeof Qn.initialState=="function"?Qn.initialState:j(Qn.initialState),Ti=Qn.reducers||{},xt=Object.keys(Ti),On={},Zn={},Ur={};xt.forEach(function(jn){var rr=Ti[jn],Mr=Me(_r,jn),Ir,Zr;"reducer"in rr?(Ir=rr.reducer,Zr=rr.prepare):Ir=rr,On[jn]=Ir,Zn[Mr]=Ir,Ur[jn]=Zr?_e(Mr,Zr):_e(Mr)});function En(){var jn=typeof Qn.extraReducers=="function"?nt(Qn.extraReducers):[Qn.extraReducers],rr=jn[0],Mr=rr===void 0?{}:rr,Ir=jn[1],Zr=Ir===void 0?[]:Ir,lr=jn[2],Jr=lr===void 0?void 0:lr,pi=P(P({},Mr),Zn);return ae($r,function(Ri){for(var Ki in pi)Ri.addCase(Ki,pi[Ki]);for(var ia=0,Da=Zr;ia<Da.length;ia++){var to=Da[ia];Ri.addMatcher(to.matcher,to.reducer)}Jr&&Ri.addDefaultCase(Jr)})}var ln;return{name:_r,reducer:function(jn,rr){return ln||(ln=En()),ln(jn,rr)},actions:Ur,caseReducers:On,getInitialState:function(){return ln||(ln=En()),ln.getInitialState()}}}function qe(){return{ids:[],entities:{}}}function At(){function Qn(_r){return _r===void 0&&(_r={}),Object.assign(qe(),_r)}return{getInitialState:Qn}}function It(){function Qn(_r){var $r=function(ln){return ln.ids},Ti=function(ln){return ln.entities},xt=A($r,Ti,function(ln,jn){return ln.map(function(rr){return jn[rr]})}),On=function(ln,jn){return jn},Zn=function(ln,jn){return ln[jn]},Ur=A($r,function(ln){return ln.length});if(!_r)return{selectIds:$r,selectEntities:Ti,selectAll:xt,selectTotal:Ur,selectById:A(Ti,On,Zn)};var En=A(_r,Ti);return{selectIds:A(_r,$r),selectEntities:En,selectAll:A(_r,xt),selectTotal:A(_r,Ur),selectById:A(En,On,Zn)}}return{getSelectors:Qn}}function Ce(Qn){var _r=Ae(function($r,Ti){return Qn(Ti)});return function(Ti){return _r(Ti,void 0)}}function Ae(Qn){return function($r,Ti){function xt(Zn){return we(Zn)}var On=function(Zn){xt(Ti)?Qn(Ti.payload,Zn):Qn(Ti,Zn)};return(0,i.mv)($r)?(On($r),$r):(0,i.ZP)($r,On)}}function $e(Qn,_r){var $r=_r(Qn);return $r}function tt(Qn){return Array.isArray(Qn)||(Qn=Object.values(Qn)),Qn}function ke(Qn,_r,$r){Qn=tt(Qn);for(var Ti=[],xt=[],On=0,Zn=Qn;On<Zn.length;On++){var Ur=Zn[On],En=$e(Ur,_r);En in $r.entities?xt.push({id:En,changes:Ur}):Ti.push(Ur)}return[Ti,xt]}function Oe(Qn){function _r(Zr,lr){var Jr=$e(Zr,Qn);Jr in lr.entities||(lr.ids.push(Jr),lr.entities[Jr]=Zr)}function $r(Zr,lr){Zr=tt(Zr);for(var Jr=0,pi=Zr;Jr<pi.length;Jr++){var Ri=pi[Jr];_r(Ri,lr)}}function Ti(Zr,lr){var Jr=$e(Zr,Qn);Jr in lr.entities||lr.ids.push(Jr),lr.entities[Jr]=Zr}function xt(Zr,lr){Zr=tt(Zr);for(var Jr=0,pi=Zr;Jr<pi.length;Jr++){var Ri=pi[Jr];Ti(Ri,lr)}}function On(Zr,lr){Zr=tt(Zr),lr.ids=[],lr.entities={},$r(Zr,lr)}function Zn(Zr,lr){return Ur([Zr],lr)}function Ur(Zr,lr){var Jr=!1;Zr.forEach(function(pi){pi in lr.entities&&(delete lr.entities[pi],Jr=!0)}),Jr&&(lr.ids=lr.ids.filter(function(pi){return pi in lr.entities}))}function En(Zr){Object.assign(Zr,{ids:[],entities:{}})}function ln(Zr,lr,Jr){var pi=Jr.entities[lr.id],Ri=Object.assign({},pi,lr.changes),Ki=$e(Ri,Qn),ia=Ki!==lr.id;return ia&&(Zr[lr.id]=Ki,delete Jr.entities[lr.id]),Jr.entities[Ki]=Ri,ia}function jn(Zr,lr){return rr([Zr],lr)}function rr(Zr,lr){var Jr={},pi={};Zr.forEach(function(ia){ia.id in lr.entities&&(pi[ia.id]={id:ia.id,changes:P(P({},pi[ia.id]?pi[ia.id].changes:null),ia.changes)})}),Zr=Object.values(pi);var Ri=Zr.length>0;if(Ri){var Ki=Zr.filter(function(ia){return ln(Jr,ia,lr)}).length>0;Ki&&(lr.ids=Object.keys(lr.entities))}}function Mr(Zr,lr){return Ir([Zr],lr)}function Ir(Zr,lr){var Jr=ke(Zr,Qn,lr),pi=Jr[0],Ri=Jr[1];rr(Ri,lr),$r(pi,lr)}return{removeAll:Ce(En),addOne:Ae(_r),addMany:Ae($r),setOne:Ae(Ti),setMany:Ae(xt),setAll:Ae(On),updateOne:Ae(jn),updateMany:Ae(rr),upsertOne:Ae(Mr),upsertMany:Ae(Ir),removeOne:Ae(Zn),removeMany:Ae(Ur)}}function je(Qn,_r){var $r=Oe(Qn),Ti=$r.removeOne,xt=$r.removeMany,On=$r.removeAll;function Zn(Ri,Ki){return Ur([Ri],Ki)}function Ur(Ri,Ki){Ri=tt(Ri);var ia=Ri.filter(function(Da){return!($e(Da,Qn)in Ki.entities)});ia.length!==0&&Jr(ia,Ki)}function En(Ri,Ki){return ln([Ri],Ki)}function ln(Ri,Ki){Ri=tt(Ri),Ri.length!==0&&Jr(Ri,Ki)}function jn(Ri,Ki){Ri=tt(Ri),Ki.entities={},Ki.ids=[],Ur(Ri,Ki)}function rr(Ri,Ki){return Mr([Ri],Ki)}function Mr(Ri,Ki){for(var ia=!1,Da=0,to=Ri;Da<to.length;Da++){var ao=to[Da],Bo=Ki.entities[ao.id];if(Bo){ia=!0,Object.assign(Bo,ao.changes);var jo=Qn(Bo);ao.id!==jo&&(delete Ki.entities[ao.id],Ki.entities[jo]=Bo)}}ia&&pi(Ki)}function Ir(Ri,Ki){return Zr([Ri],Ki)}function Zr(Ri,Ki){var ia=ke(Ri,Qn,Ki),Da=ia[0],to=ia[1];Mr(to,Ki),Ur(Da,Ki)}function lr(Ri,Ki){if(Ri.length!==Ki.length)return!1;for(var ia=0;ia<Ri.length&&ia<Ki.length;ia++)if(Ri[ia]!==Ki[ia])return!1;return!0}function Jr(Ri,Ki){Ri.forEach(function(ia){Ki.entities[Qn(ia)]=ia}),pi(Ki)}function pi(Ri){var Ki=Object.values(Ri.entities);Ki.sort(_r);var ia=Ki.map(Qn),Da=Ri.ids;lr(Da,ia)||(Ri.ids=ia)}return{removeOne:Ti,removeMany:xt,removeAll:On,addOne:Ae(Zn),updateOne:Ae(rr),upsertOne:Ae(Ir),setOne:Ae(En),setMany:Ae(ln),setAll:Ae(jn),addMany:Ae(Ur),updateMany:Ae(Mr),upsertMany:Ae(Zr)}}function Et(Qn){Qn===void 0&&(Qn={});var _r=P({sortComparer:!1,selectId:function(Ur){return Ur.id}},Qn),$r=_r.selectId,Ti=_r.sortComparer,xt=At(),On=It(),Zn=Ti?je($r,Ti):Oe($r);return P(P(P({selectId:$r,sortComparer:Ti},xt),On),Zn)}var ct="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ut=function(Qn){Qn===void 0&&(Qn=21);for(var _r="",$r=Qn;$r--;)_r+=ct[Math.random()*64|0];return _r},Ne=["name","message","stack","code"],mt=function(){function Qn(_r,$r){this.payload=_r,this.meta=$r}return Qn}(),bt=function(){function Qn(_r,$r){this.payload=_r,this.meta=$r}return Qn}(),Gt=function(Qn){if(typeof Qn=="object"&&Qn!==null){for(var _r={},$r=0,Ti=Ne;$r<Ti.length;$r++){var xt=Ti[$r];typeof Qn[xt]=="string"&&(_r[xt]=Qn[xt])}return _r}return{message:String(Qn)}},hn=function(){function Qn(_r,$r,Ti){var xt=_e(_r+"/fulfilled",function(jn,rr,Mr,Ir){return{payload:jn,meta:R(P({},Ir||{}),{arg:Mr,requestId:rr,requestStatus:"fulfilled"})}}),On=_e(_r+"/pending",function(jn,rr,Mr){return{payload:void 0,meta:R(P({},Mr||{}),{arg:rr,requestId:jn,requestStatus:"pending"})}}),Zn=_e(_r+"/rejected",function(jn,rr,Mr,Ir,Zr){return{payload:Ir,error:(Ti&&Ti.serializeError||Gt)(jn||"Rejected"),meta:R(P({},Zr||{}),{arg:Mr,requestId:rr,rejectedWithValue:!!Ir,requestStatus:"rejected",aborted:jn?.name==="AbortError",condition:jn?.name==="ConditionError"})}}),Ur=!1,En=typeof AbortController<"u"?AbortController:function(){function jn(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return jn.prototype.abort=function(){},jn}();function ln(jn){return function(rr,Mr,Ir){var Zr=Ti?.idGenerator?Ti.idGenerator(jn):ut(),lr=new En,Jr,pi=!1;function Ri(ia){Jr=ia,lr.abort()}var Ki=function(){return T(this,null,function(){var ia,Da,to,ao,Bo,jo,Jo;return d(this,function(Go){switch(Go.label){case 0:return Go.trys.push([0,4,,5]),ao=(ia=Ti?.condition)==null?void 0:ia.call(Ti,jn,{getState:Mr,extra:Ir}),Bt(ao)?[4,ao]:[3,2];case 1:ao=Go.sent(),Go.label=2;case 2:if(ao===!1||lr.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return pi=!0,Bo=new Promise(function(wr,qi){return lr.signal.addEventListener("abort",function(){return qi({name:"AbortError",message:Jr||"Aborted"})})}),rr(On(Zr,jn,(Da=Ti?.getPendingMeta)==null?void 0:Da.call(Ti,{requestId:Zr,arg:jn},{getState:Mr,extra:Ir}))),[4,Promise.race([Bo,Promise.resolve($r(jn,{dispatch:rr,getState:Mr,extra:Ir,requestId:Zr,signal:lr.signal,abort:Ri,rejectWithValue:function(wr,qi){return new mt(wr,qi)},fulfillWithValue:function(wr,qi){return new bt(wr,qi)}})).then(function(wr){if(wr instanceof mt)throw wr;return wr instanceof bt?xt(wr.payload,Zr,jn,wr.meta):xt(wr,Zr,jn)})])];case 3:return to=Go.sent(),[3,5];case 4:return jo=Go.sent(),to=jo instanceof mt?Zn(null,Zr,jn,jo.payload,jo.meta):Zn(jo,Zr,jn),[3,5];case 5:return Jo=Ti&&!Ti.dispatchConditionRejection&&Zn.match(to)&&to.meta.condition,Jo||rr(to),[2,to]}})})}();return Object.assign(Ki,{abort:Ri,requestId:Zr,arg:jn,unwrap:function(){return Ki.then(Yt)}})}}return Object.assign(ln,{pending:On,rejected:Zn,fulfilled:xt,typePrefix:_r})}return Qn.withTypes=function(){return Qn},Qn}();function Yt(Qn){if(Qn.meta&&Qn.meta.rejectedWithValue)throw Qn.payload;if(Qn.error)throw Qn.error;return Qn.payload}function Bt(Qn){return Qn!==null&&typeof Qn=="object"&&typeof Qn.then=="function"}var Lt=function(Qn){return Qn&&typeof Qn.match=="function"},zt=function(Qn,_r){return Lt(Qn)?Qn.match(_r):Qn(_r)};function Kt(){for(var Qn=[],_r=0;_r<arguments.length;_r++)Qn[_r]=arguments[_r];return function($r){return Qn.some(function(Ti){return zt(Ti,$r)})}}function vt(){for(var Qn=[],_r=0;_r<arguments.length;_r++)Qn[_r]=arguments[_r];return function($r){return Qn.every(function(Ti){return zt(Ti,$r)})}}function Ve(Qn,_r){if(!Qn||!Qn.meta)return!1;var $r=typeof Qn.meta.requestId=="string",Ti=_r.indexOf(Qn.meta.requestStatus)>-1;return $r&&Ti}function lt(Qn){return typeof Qn[0]=="function"&&"pending"in Qn[0]&&"fulfilled"in Qn[0]&&"rejected"in Qn[0]}function at(){for(var Qn=[],_r=0;_r<arguments.length;_r++)Qn[_r]=arguments[_r];return Qn.length===0?function($r){return Ve($r,["pending"])}:lt(Qn)?function($r){var Ti=Qn.map(function(On){return On.pending}),xt=Kt.apply(void 0,Ti);return xt($r)}:at()(Qn[0])}function Xt(){for(var Qn=[],_r=0;_r<arguments.length;_r++)Qn[_r]=arguments[_r];return Qn.length===0?function($r){return Ve($r,["rejected"])}:lt(Qn)?function($r){var Ti=Qn.map(function(On){return On.rejected}),xt=Kt.apply(void 0,Ti);return xt($r)}:Xt()(Qn[0])}function rt(){for(var Qn=[],_r=0;_r<arguments.length;_r++)Qn[_r]=arguments[_r];var $r=function(Ti){return Ti&&Ti.meta&&Ti.meta.rejectedWithValue};return Qn.length===0?function(Ti){var xt=vt(Xt.apply(void 0,Qn),$r);return xt(Ti)}:lt(Qn)?function(Ti){var xt=vt(Xt.apply(void 0,Qn),$r);return xt(Ti)}:rt()(Qn[0])}function Rt(){for(var Qn=[],_r=0;_r<arguments.length;_r++)Qn[_r]=arguments[_r];return Qn.length===0?function($r){return Ve($r,["fulfilled"])}:lt(Qn)?function($r){var Ti=Qn.map(function(On){return On.fulfilled}),xt=Kt.apply(void 0,Ti);return xt($r)}:Rt()(Qn[0])}function rn(){for(var Qn=[],_r=0;_r<arguments.length;_r++)Qn[_r]=arguments[_r];return Qn.length===0?function($r){return Ve($r,["pending","fulfilled","rejected"])}:lt(Qn)?function($r){for(var Ti=[],xt=0,On=Qn;xt<On.length;xt++){var Zn=On[xt];Ti.push(Zn.pending,Zn.rejected,Zn.fulfilled)}var Ur=Kt.apply(void 0,Ti);return Ur($r)}:rn()(Qn[0])}var sn=function(Qn,_r){if(typeof Qn!="function")throw new TypeError(_r+" is not a function")},Jn=function(){},ze=function(Qn,_r){return _r===void 0&&(_r=Jn),Qn.catch(_r),Qn},st=function(Qn,_r){return Qn.addEventListener("abort",_r,{once:!0}),function(){return Qn.removeEventListener("abort",_r)}},en=function(Qn,_r){var $r=Qn.signal;$r.aborted||("reason"in $r||Object.defineProperty($r,"reason",{enumerable:!0,value:_r,configurable:!0,writable:!0}),Qn.abort(_r))},wt="task",Ke="listener",Ut="completed",on="cancelled",Tn="task-"+on,An="task-"+Ut,Zt=Ke+"-"+on,ot=Ke+"-"+Ut,We=function(){function Qn(_r){this.code=_r,this.name="TaskAbortError",this.message=wt+" "+on+" (reason: "+_r+")"}return Qn}(),Ft=function(Qn){if(Qn.aborted)throw new We(Qn.reason)};function it(Qn,_r){var $r=Jn;return new Promise(function(Ti,xt){var On=function(){return xt(new We(Qn.reason))};if(Qn.aborted){On();return}$r=st(Qn,On),_r.finally(function(){return $r()}).then(Ti,xt)}).finally(function(){$r=Jn})}var qt=function(Qn,_r){return T(void 0,null,function(){var $r,Ti;return d(this,function(xt){switch(xt.label){case 0:return xt.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return xt.sent(),[4,Qn()];case 2:return $r=xt.sent(),[2,{status:"ok",value:$r}];case 3:return Ti=xt.sent(),[2,{status:Ti instanceof We?"cancelled":"rejected",error:Ti}];case 4:return _r?.(),[7];case 5:return[2]}})})},vn=function(Qn){return function(_r){return ze(it(Qn,_r).then(function($r){return Ft(Qn),$r}))}},fn=function(Qn){var _r=vn(Qn);return function($r){return _r(new Promise(function(Ti){return setTimeout(Ti,$r)}))}},Tt=Object.assign,dn={},mn="listenerMiddleware",Kn=function(Qn){var _r=function($r){return st(Qn,function(){return en($r,Qn.reason)})};return function($r){sn($r,"taskExecutor");var Ti=new AbortController;_r(Ti);var xt=qt(function(){return T(void 0,null,function(){var On;return d(this,function(Zn){switch(Zn.label){case 0:return Ft(Qn),Ft(Ti.signal),[4,$r({pause:vn(Ti.signal),delay:fn(Ti.signal),signal:Ti.signal})];case 1:return On=Zn.sent(),Ft(Ti.signal),[2,On]}})})},function(){return en(Ti,An)});return{result:vn(Qn)(xt),cancel:function(){en(Ti,Tn)}}}},Dn=function(Qn,_r){var $r=function(Ti,xt){return T(void 0,null,function(){var On,Zn,Ur,En;return d(this,function(ln){switch(ln.label){case 0:Ft(_r),On=function(){},Zn=new Promise(function(jn,rr){var Mr=Qn({predicate:Ti,effect:function(Ir,Zr){Zr.unsubscribe(),jn([Ir,Zr.getState(),Zr.getOriginalState()])}});On=function(){Mr(),rr()}}),Ur=[Zn],xt!=null&&Ur.push(new Promise(function(jn){return setTimeout(jn,xt,null)})),ln.label=1;case 1:return ln.trys.push([1,,3,4]),[4,it(_r,Promise.race(Ur))];case 2:return En=ln.sent(),Ft(_r),[2,En];case 3:return On(),[7];case 4:return[2]}})})};return function(Ti,xt){return ze($r(Ti,xt))}},Vn=function(Qn){var _r=Qn.type,$r=Qn.actionCreator,Ti=Qn.matcher,xt=Qn.predicate,On=Qn.effect;if(_r)xt=_e(_r).match;else if($r)_r=$r.type,xt=$r.match;else if(Ti)xt=Ti;else if(!xt)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return sn(On,"options.listener"),{predicate:xt,type:_r,effect:On}},or=function(Qn){var _r=Vn(Qn),$r=_r.type,Ti=_r.predicate,xt=_r.effect,On=ut(),Zn={id:On,effect:xt,type:$r,predicate:Ti,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return Zn},Qr=function(Qn){Qn.pending.forEach(function(_r){en(_r,Zt)})},ni=function(Qn){return function(){Qn.forEach(Qr),Qn.clear()}},yr=function(Qn,_r,$r){try{Qn(_r,$r)}catch(Ti){setTimeout(function(){throw Ti},0)}},si=_e(mn+"/add"),Yr=_e(mn+"/removeAll"),Ci=_e(mn+"/remove"),Ni=function(){for(var Qn=[],_r=0;_r<arguments.length;_r++)Qn[_r]=arguments[_r];console.error.apply(console,f([mn+"/error"],Qn))};function fa(Qn){var _r=this;Qn===void 0&&(Qn={});var $r=new Map,Ti=Qn.extra,xt=Qn.onError,On=xt===void 0?Ni:xt;sn(On,"onError");var Zn=function(Ir){return Ir.unsubscribe=function(){return $r.delete(Ir.id)},$r.set(Ir.id,Ir),function(Zr){Ir.unsubscribe(),Zr?.cancelActive&&Qr(Ir)}},Ur=function(Ir){for(var Zr=0,lr=Array.from($r.values());Zr<lr.length;Zr++){var Jr=lr[Zr];if(Ir(Jr))return Jr}},En=function(Ir){var Zr=Ur(function(lr){return lr.effect===Ir.effect});return Zr||(Zr=or(Ir)),Zn(Zr)},ln=function(Ir){var Zr=Vn(Ir),lr=Zr.type,Jr=Zr.effect,pi=Zr.predicate,Ri=Ur(function(Ki){var ia=typeof lr=="string"?Ki.type===lr:Ki.predicate===pi;return ia&&Ki.effect===Jr});return Ri&&(Ri.unsubscribe(),Ir.cancelActive&&Qr(Ri)),!!Ri},jn=function(Ir,Zr,lr,Jr){return T(_r,null,function(){var pi,Ri,Ki;return d(this,function(ia){switch(ia.label){case 0:pi=new AbortController,Ri=Dn(En,pi.signal),ia.label=1;case 1:return ia.trys.push([1,3,4,5]),Ir.pending.add(pi),[4,Promise.resolve(Ir.effect(Zr,Tt({},lr,{getOriginalState:Jr,condition:function(Da,to){return Ri(Da,to).then(Boolean)},take:Ri,delay:fn(pi.signal),pause:vn(pi.signal),extra:Ti,signal:pi.signal,fork:Kn(pi.signal),unsubscribe:Ir.unsubscribe,subscribe:function(){$r.set(Ir.id,Ir)},cancelActiveListeners:function(){Ir.pending.forEach(function(Da,to,ao){Da!==pi&&(en(Da,Zt),ao.delete(Da))})}})))];case 2:return ia.sent(),[3,5];case 3:return Ki=ia.sent(),Ki instanceof We||yr(On,Ki,{raisedBy:"effect"}),[3,5];case 4:return en(pi,ot),Ir.pending.delete(pi),[7];case 5:return[2]}})})},rr=ni($r),Mr=function(Ir){return function(Zr){return function(lr){if(si.match(lr))return En(lr.payload);if(Yr.match(lr)){rr();return}if(Ci.match(lr))return ln(lr.payload);var Jr=Ir.getState(),pi=function(){if(Jr===dn)throw new Error(mn+": getOriginalState can only be called synchronously");return Jr},Ri;try{if(Ri=Zr(lr),$r.size>0)for(var Ki=Ir.getState(),ia=Array.from($r.values()),Da=0,to=ia;Da<to.length;Da++){var ao=to[Da],Bo=!1;try{Bo=ao.predicate(lr,Ki,Jr)}catch(jo){Bo=!1,yr(On,jo,{raisedBy:"predicate"})}Bo&&jn(ao,lr,Ir,pi)}}finally{Jr=dn}return Ri}}};return{middleware:Mr,startListening:En,stopListening:ln,clearListeners:rr}}var ha="RTK_autoBatch",Ca=function(){return function(Qn){var _r;return{payload:Qn,meta:(_r={},_r[ha]=!0,_r)}}},li,la=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof t.g<"u"?t.g:globalThis):function(Qn){return(li||(li=Promise.resolve())).then(Qn).catch(function(_r){return setTimeout(function(){throw _r},0)})},Oa=function(Qn){return function(_r){setTimeout(_r,Qn)}},wa=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Oa(10),vo=function(Qn){return Qn===void 0&&(Qn={type:"raf"}),function(_r){return function(){for(var $r=[],Ti=0;Ti<arguments.length;Ti++)$r[Ti]=arguments[Ti];var xt=_r.apply(void 0,$r),On=!0,Zn=!1,Ur=!1,En=new Set,ln=Qn.type==="tick"?la:Qn.type==="raf"?wa:Qn.type==="callback"?Qn.queueNotification:Oa(Qn.timeout),jn=function(){Ur=!1,Zn&&(Zn=!1,En.forEach(function(rr){return rr()}))};return Object.assign({},xt,{subscribe:function(rr){var Mr=function(){return On&&rr()},Ir=xt.subscribe(Mr);return En.add(rr),function(){Ir(),En.delete(rr)}},dispatch:function(rr){var Mr;try{return On=!((Mr=rr?.meta)!=null&&Mr[ha]),Zn=!On,Zn&&(Ur||(Ur=!0,ln(jn))),xt.dispatch(rr)}finally{On=!0}}})}}};(0,i.pV)()},68748:(C,c,t)=>{"use strict";t.d(c,{Z:()=>l});var i=t(27702),s=["children","id","from","to","fromOffset","fromOpacity","toOffset","toOpacity","rotate","transform"];function u(){return u=Object.assign?Object.assign.bind():function(h){for(var p=1;p<arguments.length;p++){var d=arguments[p];for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(h[f]=d[f])}return h},u.apply(this,arguments)}function v(h,p){if(h==null)return{};var d={},f=Object.keys(h),g,y;for(y=0;y<f.length;y++)g=f[y],!(p.indexOf(g)>=0)&&(d[g]=h[g]);return d}function l(h){var p=h.children,d=h.id,f=h.from,g=h.to,y=h.fromOffset,b=y===void 0?"0%":y,E=h.fromOpacity,S=E===void 0?1:E,w=h.toOffset,x=w===void 0?"100%":w,P=h.toOpacity,R=P===void 0?1:P,T=h.rotate,A=h.transform,I=v(h,s);return i.createElement("defs",null,i.createElement("radialGradient",u({id:d,gradientTransform:T?"rotate("+T+")":A},I),!!p&&p,!p&&i.createElement("stop",{offset:b,stopColor:f,stopOpacity:S}),!p&&i.createElement("stop",{offset:x,stopColor:g,stopOpacity:R})))}},10994:(C,c,t)=>{"use strict";t.d(c,{Z:()=>f});var i=t(93415),s=t.n(i),u=t(27702),v=t(28040),l=t.n(v),h=["top","left","transform","className","children","innerRef"];function p(){return p=Object.assign?Object.assign.bind():function(g){for(var y=1;y<arguments.length;y++){var b=arguments[y];for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(g[E]=b[E])}return g},p.apply(this,arguments)}function d(g,y){if(g==null)return{};var b={},E=Object.keys(g),S,w;for(w=0;w<E.length;w++)S=E[w],!(y.indexOf(S)>=0)&&(b[S]=g[S]);return b}function f(g){var y=g.top,b=y===void 0?0:y,E=g.left,S=E===void 0?0:E,w=g.transform,x=g.className,P=g.children,R=g.innerRef,T=d(g,h);return u.createElement("g",p({ref:R,className:l()("visx-group",x),transform:w||"translate("+S+", "+b+")"},T),P)}f.propTypes={top:s().number,left:s().number,transform:s().string,className:s().string,children:s().node,innerRef:s().oneOfType([s().string,s().func,s().object])}},95959:(C,c,t)=>{"use strict";t.r(c),t.d(c,{Group:()=>i.Z});var i=t(10994)},66763:(C,c,t)=>{"use strict";var i;i=!0,c.Z=g;var s=p(t(27702)),u=p(t(28040)),v=t(95959),l=t(59039),h=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function p(y){return y&&y.__esModule?y:{default:y}}function d(){return d=Object.assign?Object.assign.bind():function(y){for(var b=1;b<arguments.length;b++){var E=arguments[b];for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&(y[S]=E[S])}return y},d.apply(this,arguments)}function f(y,b){if(y==null)return{};var E={},S=Object.keys(y),w,x;for(x=0;x<S.length;x++)w=S[x],!(b.indexOf(w)>=0)&&(E[w]=y[w]);return E}function g(y){var b=y.className,E=y.top,S=y.left,w=y.data,x=w===void 0?[]:w,P=y.centroid,R=y.innerRadius,T=R===void 0?0:R,A=y.outerRadius,I=y.cornerRadius,N=y.startAngle,K=y.endAngle,_=y.padAngle,W=y.padRadius,j=y.pieSort,re=y.pieSortValues,X=y.pieValue,Z=y.children,J=y.fill,q=J===void 0?"":J,L=f(y,h),$=(0,l.arc)({innerRadius:T,outerRadius:A,cornerRadius:I,padRadius:W}),k=(0,l.pie)({startAngle:N,endAngle:K,padAngle:_,value:X,sort:j,sortValues:re}),F=k(x);return Z?s.default.createElement(s.default.Fragment,null,Z({arcs:F,path:$,pie:k})):s.default.createElement(v.Group,{className:"visx-pie-arcs-group",top:E,left:S},F.map(function(V,pe){return s.default.createElement("g",{key:"pie-arc-"+pe},s.default.createElement("path",d({className:(0,u.default)("visx-pie-arc",b),d:$(V)||"",fill:q==null||typeof q=="string"?q:q(V)},L)),P?.($.centroid(V),V))}))}},59039:(C,c,t)=>{"use strict";c.__esModule=!0,c.arc=h,c.area=p,c.line=d,c.pie=f,c.radialLine=g,c.stack=y;var i=t(4438),s=l(t(74742)),u=l(t(42691)),v=l(t(59268));function l(b){return b&&b.__esModule?b:{default:b}}function h(b){var E=b===void 0?{}:b,S=E.innerRadius,w=E.outerRadius,x=E.cornerRadius,P=E.startAngle,R=E.endAngle,T=E.padAngle,A=E.padRadius,I=(0,i.arc)();return S!=null&&(0,s.default)(I.innerRadius,S),w!=null&&(0,s.default)(I.outerRadius,w),x!=null&&(0,s.default)(I.cornerRadius,x),P!=null&&(0,s.default)(I.startAngle,P),R!=null&&(0,s.default)(I.endAngle,R),T!=null&&(0,s.default)(I.padAngle,T),A!=null&&(0,s.default)(I.padRadius,A),I}function p(b){var E=b===void 0?{}:b,S=E.x,w=E.x0,x=E.x1,P=E.y,R=E.y0,T=E.y1,A=E.defined,I=E.curve,N=(0,i.area)();return S&&(0,s.default)(N.x,S),w&&(0,s.default)(N.x0,w),x&&(0,s.default)(N.x1,x),P&&(0,s.default)(N.y,P),R&&(0,s.default)(N.y0,R),T&&(0,s.default)(N.y1,T),A&&N.defined(A),I&&N.curve(I),N}function d(b){var E=b===void 0?{}:b,S=E.x,w=E.y,x=E.defined,P=E.curve,R=(0,i.line)();return S&&(0,s.default)(R.x,S),w&&(0,s.default)(R.y,w),x&&R.defined(x),P&&R.curve(P),R}function f(b){var E=b===void 0?{}:b,S=E.startAngle,w=E.endAngle,x=E.padAngle,P=E.value,R=E.sort,T=E.sortValues,A=(0,i.pie)();return(R===null||R!=null)&&A.sort(R),(T===null||T!=null)&&A.sortValues(T),P!=null&&A.value(P),x!=null&&(0,s.default)(A.padAngle,x),S!=null&&(0,s.default)(A.startAngle,S),w!=null&&(0,s.default)(A.endAngle,w),A}function g(b){var E=b===void 0?{}:b,S=E.angle,w=E.radius,x=E.defined,P=E.curve,R=(0,i.radialLine)();return S&&(0,s.default)(R.angle,S),w&&(0,s.default)(R.radius,w),x&&R.defined(x),P&&R.curve(P),R}function y(b){var E=b.keys,S=b.value,w=b.order,x=b.offset,P=(0,i.stack)();return E&&P.keys(E),S&&(0,s.default)(P.value,S),w&&P.order((0,u.default)(w)),x&&P.offset((0,v.default)(x)),P}},74742:(C,c)=>{"use strict";c.__esModule=!0,c.default=t;function t(i,s){i(s)}},59268:(C,c,t)=>{"use strict";c.__esModule=!0,c.STACK_OFFSET_NAMES=c.STACK_OFFSETS=void 0,c.default=v;var i=t(4438),s={expand:i.stackOffsetExpand,diverging:i.stackOffsetDiverging,none:i.stackOffsetNone,silhouette:i.stackOffsetSilhouette,wiggle:i.stackOffsetWiggle};c.STACK_OFFSETS=s;var u=Object.keys(s);c.STACK_OFFSET_NAMES=u;function v(l){return l&&s[l]||s.none}},42691:(C,c,t)=>{"use strict";c.__esModule=!0,c.STACK_ORDER_NAMES=c.STACK_ORDERS=void 0,c.default=v;var i=t(4438),s={ascending:i.stackOrderAscending,descending:i.stackOrderDescending,insideout:i.stackOrderInsideOut,none:i.stackOrderNone,reverse:i.stackOrderReverse};c.STACK_ORDERS=s;var u=Object.keys(s);c.STACK_ORDER_NAMES=u;function v(l){return l&&s[l]||s.none}},3344:(C,c,t)=>{"use strict";t.d(c,{Z:()=>l});var i=t(27702),s=["tooltipOpen"];function u(h,p){if(h==null)return{};var d={},f=Object.keys(h),g,y;for(y=0;y<f.length;y++)g=f[y],!(p.indexOf(g)>=0)&&(d[g]=h[g]);return d}function v(){return v=Object.assign?Object.assign.bind():function(h){for(var p=1;p<arguments.length;p++){var d=arguments[p];for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(h[f]=d[f])}return h},v.apply(this,arguments)}function l(h){var p=(0,i.useState)(v({tooltipOpen:!1},h)),d=p[0],f=p[1],g=(0,i.useCallback)(function(b){return f(typeof b=="function"?function(E){var S=E.tooltipOpen,w=u(E,s);return v({},b(w),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:b.tooltipLeft,tooltipTop:b.tooltipTop,tooltipData:b.tooltipData})},[f]),y=(0,i.useCallback)(function(){return f({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[f]);return{tooltipOpen:d.tooltipOpen,tooltipLeft:d.tooltipLeft,tooltipTop:d.tooltipTop,tooltipData:d.tooltipData,updateTooltip:f,showTooltip:g,hideTooltip:y}}},67692:(C,c,t)=>{"use strict";t.d(c,{Z:()=>Se});var i=t(27702),s=t(22087);function u({debounce:he,scroll:me,polyfill:_e}={debounce:0,scroll:!1}){const we=_e||(typeof window>"u"?class{}:window.ResizeObserver);if(!we)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[Ge,ht]=(0,i.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),nt=(0,i.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:Ge}),Re=he?typeof he=="number"?he:he.scroll:null,ue=he?typeof he=="number"?he:he.resize:null,ae=(0,i.useRef)(!1);(0,i.useEffect)(()=>(ae.current=!0,()=>void(ae.current=!1)));const[ve,Me,Ye]=(0,i.useMemo)(()=>{const Ce=()=>{if(!nt.current.element)return;const{left:Ae,top:$e,width:tt,height:ke,bottom:Oe,right:je,x:Et,y:ct}=nt.current.element.getBoundingClientRect(),ut={left:Ae,top:$e,width:tt,height:ke,bottom:Oe,right:je,x:Et,y:ct};Object.freeze(ut),ae.current&&!d(nt.current.lastBounds,ut)&&ht(nt.current.lastBounds=ut)};return[Ce,ue?(0,s.debounce)(Ce,ue):Ce,Re?(0,s.debounce)(Ce,Re):Ce]},[ht,Re,ue]);function qe(){nt.current.scrollContainers&&(nt.current.scrollContainers.forEach(Ce=>Ce.removeEventListener("scroll",Ye,!0)),nt.current.scrollContainers=null),nt.current.resizeObserver&&(nt.current.resizeObserver.disconnect(),nt.current.resizeObserver=null)}function At(){nt.current.element&&(nt.current.resizeObserver=new we(Ye),nt.current.resizeObserver.observe(nt.current.element),me&&nt.current.scrollContainers&&nt.current.scrollContainers.forEach(Ce=>Ce.addEventListener("scroll",Ye,{capture:!0,passive:!0})))}const It=Ce=>{!Ce||Ce===nt.current.element||(qe(),nt.current.element=Ce,nt.current.scrollContainers=h(Ce),At())};return l(Ye,!!me),v(Me),(0,i.useEffect)(()=>{qe(),At()},[me,Ye,Me]),(0,i.useEffect)(()=>qe,[]),[It,Ge,ve]}function v(he){(0,i.useEffect)(()=>{const me=he;return window.addEventListener("resize",me),()=>void window.removeEventListener("resize",me)},[he])}function l(he,me){(0,i.useEffect)(()=>{if(me){const _e=he;return window.addEventListener("scroll",_e,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",_e,!0)}},[he,me])}function h(he){const me=[];if(!he||he===document.body)return me;const{overflow:_e,overflowX:we,overflowY:Ge}=window.getComputedStyle(he);return[_e,we,Ge].some(ht=>ht==="auto"||ht==="scroll")&&me.push(he),[...me,...h(he.parentElement)]}const p=["x","y","top","bottom","left","right","width","height"],d=(he,me)=>p.every(_e=>he[_e]===me[_e]),f=u;var g=t(93415),y=t.n(g),b=t(27473);function E(he,me){he.prototype=Object.create(me.prototype),he.prototype.constructor=he,S(he,me)}function S(he,me){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(we,Ge){return we.__proto__=Ge,we},S(he,me)}var w=function(he){E(me,he);function me(){return he.apply(this,arguments)||this}var _e=me.prototype;return _e.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},_e.render=function(){return!this.node&&typeof document<"u"&&(this.node=document.createElement("div"),this.props.zIndex!=null&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node?b.createPortal(this.props.children,this.node):null},me}(i.PureComponent);w.propTypes={zIndex:y().oneOfType([y().number,y().string])};var x=t(28040),P=t.n(x),R=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function T(){return T=Object.assign?Object.assign.bind():function(he){for(var me=1;me<arguments.length;me++){var _e=arguments[me];for(var we in _e)Object.prototype.hasOwnProperty.call(_e,we)&&(he[we]=_e[we])}return he},T.apply(this,arguments)}function A(he,me){if(he==null)return{};var _e={},we=Object.keys(he),Ge,ht;for(ht=0;ht<we.length;ht++)Ge=we[ht],!(me.indexOf(Ge)>=0)&&(_e[Ge]=he[Ge]);return _e}var I={position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none"},N=i.forwardRef(function(he,me){var _e=he.className,we=he.top,Ge=he.left,ht=he.offsetLeft,nt=ht===void 0?10:ht,Re=he.offsetTop,ue=Re===void 0?10:Re,ae=he.style,ve=ae===void 0?I:ae,Me=he.children,Ye=he.unstyled,qe=Ye===void 0?!1:Ye,At=he.applyPositionStyle,It=At===void 0?!1:At,Ce=A(he,R);return i.createElement("div",T({ref:me,className:P()("visx-tooltip",_e),style:T({top:we==null||ue==null?we:we+ue,left:Ge==null||nt==null?Ge:Ge+nt},It&&{position:"absolute"},!qe&&ve)},Ce),Me)});N.propTypes={children:y().node,className:y().string,left:y().number,offsetLeft:y().number,offsetTop:y().number,top:y().number,applyPositionStyle:y().bool,unstyled:y().bool},N.displayName="Tooltip";const K=N;function _(){return _=Object.assign?Object.assign.bind():function(he){for(var me=1;me<arguments.length;me++){var _e=arguments[me];for(var we in _e)Object.prototype.hasOwnProperty.call(_e,we)&&(he[we]=_e[we])}return he},_.apply(this,arguments)}function W(he){if(he===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return he}function j(he,me){he.prototype=Object.create(me.prototype),he.prototype.constructor=he,re(he,me)}function re(he,me){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(we,Ge){return we.__proto__=Ge,we},re(he,me)}var X={top:0,right:0,bottom:0,left:0,width:0,height:0};function Z(he){var me;return me=function(_e){j(we,_e);function we(ht){var nt;return nt=_e.call(this,ht)||this,nt.state={rect:void 0,parentRect:void 0},nt.nodeRef=i.createRef(),nt.getRects=nt.getRects.bind(W(nt)),nt}var Ge=we.prototype;return Ge.componentDidMount=function(){var nt,Re=this;this.node=(nt=this.nodeRef)!=null&&nt.current?this.nodeRef.current:b.findDOMNode(this),this.setState(function(){return Re.getRects()})},Ge.getRects=function(){if(!this.node)return this.state;var nt=this.node,Re=nt.parentNode,ue=nt.getBoundingClientRect?nt.getBoundingClientRect():X,ae=Re!=null&&Re.getBoundingClientRect?Re.getBoundingClientRect():X;return{rect:ue,parentRect:ae}},Ge.render=function(){return i.createElement(he,_({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},we}(i.PureComponent),me.displayName="withBoundingRects("+(he.displayName||"")+")",me}var J=(0,i.createContext)({isFlippedVertically:!1,isFlippedHorizontally:!1}),q=J.Provider,L=J.Consumer,$=function(){return useContext(J)},k=["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled","nodeRef"];function F(){return F=Object.assign?Object.assign.bind():function(he){for(var me=1;me<arguments.length;me++){var _e=arguments[me];for(var we in _e)Object.prototype.hasOwnProperty.call(_e,we)&&(he[we]=_e[we])}return he},F.apply(this,arguments)}function V(he,me){if(he==null)return{};var _e={},we=Object.keys(he),Ge,ht;for(ht=0;ht<we.length;ht++)Ge=we[ht],!(me.indexOf(Ge)>=0)&&(_e[Ge]=he[Ge]);return _e}function pe(he){var me=he.children,_e=he.getRects,we=he.left,Ge=we===void 0?0:we,ht=he.offsetLeft,nt=ht===void 0?10:ht,Re=he.offsetTop,ue=Re===void 0?10:Re,ae=he.parentRect,ve=he.rect,Me=he.style,Ye=Me===void 0?I:Me,qe=he.top,At=qe===void 0?0:qe,It=he.unstyled,Ce=It===void 0?!1:It,Ae=he.nodeRef,$e=V(he,k),tt,ke=!1,Oe=!1;if(ve&&ae){var je=Ge,Et=At;if(ae.width){var ct=je+nt+ve.width-ae.width,ut=ve.width-je-nt;ke=ct>0&&ct>ut}else{var Ne=je+nt+ve.width-window.innerWidth,mt=ve.width-je-nt;ke=Ne>0&&Ne>mt}if(ae.height){var bt=Et+ue+ve.height-ae.height,Gt=ve.height-Et-ue;Oe=bt>0&&bt>Gt}else Oe=Et+ue+ve.height>window.innerHeight;je=ke?je-ve.width-nt:je+nt,Et=Oe?Et-ve.height-ue:Et+ue,je=Math.round(je),Et=Math.round(Et),tt="translate("+je+"px, "+Et+"px)"}return i.createElement(K,F({ref:Ae,style:F({left:0,top:0,transform:tt},!Ce&&Ye)},$e),i.createElement(q,{value:{isFlippedVertically:!Oe,isFlippedHorizontally:!ke}},me))}pe.propTypes={nodeRef:y().oneOfType([y().string,y().func,y().object])};const ce=Z(pe);var G=["detectBounds","zIndex"],te=["left","top","detectBounds","zIndex"];function ie(){return ie=Object.assign?Object.assign.bind():function(he){for(var me=1;me<arguments.length;me++){var _e=arguments[me];for(var we in _e)Object.prototype.hasOwnProperty.call(_e,we)&&(he[we]=_e[we])}return he},ie.apply(this,arguments)}function fe(he,me){if(he==null)return{};var _e={},we=Object.keys(he),Ge,ht;for(ht=0;ht<we.length;ht++)Ge=we[ht],!(me.indexOf(Ge)>=0)&&(_e[Ge]=he[Ge]);return _e}function Se(he){var me=he===void 0?{}:he,_e=me.detectBounds,we=_e===void 0?!0:_e,Ge=me.zIndex,ht=fe(me,G),nt=f(ht),Re=nt[0],ue=nt[1],ae=nt[2],ve=(0,i.useState)(!1),Me=ve[0],Ye=ve[1];(0,i.useEffect)(function(){Ye(!1)},[]);var qe=(0,i.useMemo)(function(){return function(At){var It=At.left,Ce=It===void 0?0:It,Ae=At.top,$e=Ae===void 0?0:Ae,tt=At.detectBounds,ke=At.zIndex,Oe=fe(At,te),je=tt??we,Et=ke??Ge,ct=je?ce:K,ut=Me?0:window.scrollX,Ne=Me?0:window.scrollY,mt=Ce+(ue.left||0)+ut,bt=$e+(ue.top||0)+Ne;return i.createElement(w,{zIndex:Et},i.createElement(ct,ie({left:mt,top:bt},Oe)))}},[we,Ge,ue.left,ue.top,Me]);return{containerRef:Re,containerBounds:ue,forceRefreshBounds:ae,TooltipInPortal:qe}}},76511:C=>{"use strict";C.exports=function(c){var t=[];return t.toString=function(){return this.map(function(s){var u="",v=typeof s[5]<"u";return s[4]&&(u+="@supports (".concat(s[4],") {")),s[2]&&(u+="@media ".concat(s[2]," {")),v&&(u+="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {")),u+=c(s),v&&(u+="}"),s[2]&&(u+="}"),s[4]&&(u+="}"),u}).join("")},t.i=function(s,u,v,l,h){typeof s=="string"&&(s=[[null,s,void 0]]);var p={};if(v)for(var d=0;d<this.length;d++){var f=this[d][0];f!=null&&(p[f]=!0)}for(var g=0;g<s.length;g++){var y=[].concat(s[g]);v&&p[y[0]]||(typeof h<"u"&&(typeof y[5]>"u"||(y[1]="@layer".concat(y[5].length>0?" ".concat(y[5]):""," {").concat(y[1],"}")),y[5]=h),u&&(y[2]&&(y[1]="@media ".concat(y[2]," {").concat(y[1],"}")),y[2]=u),l&&(y[4]?(y[1]="@supports (".concat(y[4],") {").concat(y[1],"}"),y[4]=l):y[4]="".concat(l)),t.push(y))}},t}},47150:C=>{"use strict";C.exports=function(c){var t=c[1],i=c[3];if(!i)return t;if(typeof btoa=="function"){var s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),v="/*# ".concat(u," */");return[t].concat([v]).join(` `)}return[t].join(` `)}},63812:(C,c,t)=>{"use strict";t.d(c,{Z:()=>l});var i=t(27702),s=Object.assign||function(h){for(var p=1;p<arguments.length;p++){var d=arguments[p];for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(h[f]=d[f])}return h},u=function(h,p){var d={};for(var f in h)p.indexOf(f)>=0||Object.prototype.hasOwnProperty.call(h,f)&&(d[f]=h[f]);return d};function v(h){var p=h.html,d=u(h,["html"]),f=(0,i.useRef)(null);return(0,i.useEffect)(function(){if(p){var g=document.createRange().createContextualFragment(p);f.current.innerHTML="",f.current.appendChild(g)}},[p]),i.createElement("div",s({},d,{ref:f}))}const l=v},49373:(C,c,t)=>{"use strict";function i(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(y){return typeof y}:i=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},i(f)}c.log=v,c.formatArgs=u,c.save=l,c.load=h,c.useColors=s,c.storage=p(),c.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function s(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function u(f){if(f[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+f[0]+(this.useColors?"%c ":" ")+"+"+C.exports.humanize(this.diff),!!this.useColors){var g="color: "+this.color;f.splice(1,0,g,"color: inherit");var y=0,b=0;f[0].replace(/%[a-zA-Z%]/g,function(E){E!=="%%"&&(y++,E==="%c"&&(b=y))}),f.splice(b,0,g)}}function v(){var f;return(typeof console>"u"?"undefined":i(console))==="object"&&console.log&&(f=console).log.apply(f,arguments)}function l(f){try{f?c.storage.setItem("debug",f):c.storage.removeItem("debug")}catch{}}function h(){var f;try{f=c.storage.getItem("debug")}catch{}return!f&&typeof process<"u"&&"env"in process&&(f=process.env.DEBUG),f}function p(){try{return localStorage}catch{}}C.exports=t(18564)(c);var d=C.exports.formatters;d.j=function(f){try{return JSON.stringify(f)}catch(g){return"[UnexpectedJSONParseError]: "+g.message}}},18564:(C,c,t)=>{"use strict";function i(s){v.debug=v,v.default=v,v.coerce=g,v.disable=d,v.enable=p,v.enabled=f,v.humanize=t(3735),Object.keys(s).forEach(function(y){v[y]=s[y]}),v.instances=[],v.names=[],v.skips=[],v.formatters={};function u(y){for(var b=0,E=0;E<y.length;E++)b=(b<<5)-b+y.charCodeAt(E),b|=0;return v.colors[Math.abs(b)%v.colors.length]}v.selectColor=u;function v(y){var b;function E(){if(E.enabled){for(var S=arguments.length,w=new Array(S),x=0;x<S;x++)w[x]=arguments[x];var P=E,R=Number(new Date),T=R-(b||R);P.diff=T,P.prev=b,P.curr=R,b=R,w[0]=v.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");var A=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,function(N,K){if(N==="%%")return N;A++;var _=v.formatters[K];if(typeof _=="function"){var W=w[A];N=_.call(P,W),w.splice(A,1),A--}return N}),v.formatArgs.call(P,w);var I=P.log||v.log;I.apply(P,w)}}return E.namespace=y,E.enabled=v.enabled(y),E.useColors=v.useColors(),E.color=u(y),E.destroy=l,E.extend=h,typeof v.init=="function"&&v.init(E),v.instances.push(E),E}function l(){var y=v.instances.indexOf(this);return y!==-1?(v.instances.splice(y,1),!0):!1}function h(y,b){return v(this.namespace+(typeof b>"u"?":":b)+y)}function p(y){v.save(y),v.names=[],v.skips=[];var b,E=(typeof y=="string"?y:"").split(/[\s,]+/),S=E.length;for(b=0;b<S;b++)E[b]&&(y=E[b].replace(/\*/g,".*?"),y[0]==="-"?v.skips.push(new RegExp("^"+y.substr(1)+"$")):v.names.push(new RegExp("^"+y+"$")));for(b=0;b<v.instances.length;b++){var w=v.instances[b];w.enabled=v.enabled(w.namespace)}}function d(){v.enable("")}function f(y){if(y[y.length-1]==="*")return!0;var b,E;for(b=0,E=v.skips.length;b<E;b++)if(v.skips[b].test(y))return!1;for(b=0,E=v.names.length;b<E;b++)if(v.names[b].test(y))return!0;return!1}function g(y){return y instanceof Error?y.stack||y.message:y}return v.enable(v.load()),v}C.exports=i},7610:(C,c,t)=>{var i=t(3740),s=t(15884),u=s;typeof u.$>"u"&&(u.$=i),typeof u.jQuery>"u"&&(u.jQuery=i),C.exports=i},15884:(C,c,t)=>{"use strict";C.exports=function(){if(typeof globalThis=="object")return globalThis;var i;try{i=this||new Function("return this")()}catch{if(typeof window=="object")return window;if(typeof self=="object")return self;if(typeof t.g<"u")return t.g}return i}()},8037:function(C,c,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(P,R,T,A){A===void 0&&(A=T),Object.defineProperty(P,A,{enumerable:!0,get:function(){return R[T]}})}:function(P,R,T,A){A===void 0&&(A=T),P[A]=R[T]}),s=this&&this.__setModuleDefault||(Object.create?function(P,R){Object.defineProperty(P,"default",{enumerable:!0,value:R})}:function(P,R){P.default=R}),u=this&&this.__importStar||function(P){if(P&&P.__esModule)return P;var R={};if(P!=null)for(var T in P)T!=="default"&&Object.prototype.hasOwnProperty.call(P,T)&&i(R,P,T);return s(R,P),R},v=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(c,"__esModule",{value:!0}),c.InternalEvents=void 0;var l=u(t(27702)),h=v(t(97095)),p=t(20453),d=t(16177),f=t(53735);function g(){return y(),b(),w(),x(),null}c.InternalEvents=g;function y(){var P,R,T=(0,d.useKBar)(function(j){return{visualState:j.visualState,showing:j.visualState!==p.VisualState.hidden}}),A=T.query,I=T.options,N=T.visualState,K=T.showing;l.useEffect(function(){var j,re=I.toggleShortcut||"$mod+k",X=(0,h.default)(window,(j={},j[re]=function(Z){var J,q,L,$;Z.defaultPrevented||(Z.preventDefault(),A.toggle(),K?(q=(J=I.callbacks)===null||J===void 0?void 0:J.onClose)===null||q===void 0||q.call(J):($=(L=I.callbacks)===null||L===void 0?void 0:L.onOpen)===null||$===void 0||$.call(L))},j.Escape=function(Z){var J,q;K&&(Z.stopPropagation(),Z.preventDefault(),(q=(J=I.callbacks)===null||J===void 0?void 0:J.onClose)===null||q===void 0||q.call(J)),A.setVisualState(function(L){return L===p.VisualState.hidden||L===p.VisualState.animatingOut?L:p.VisualState.animatingOut})},j));return function(){X()}},[I.callbacks,I.toggleShortcut,A,K]);var _=l.useRef(),W=l.useCallback(function(j){var re,X,Z=0;j===p.VisualState.animatingIn&&(Z=((re=I.animations)===null||re===void 0?void 0:re.enterMs)||0),j===p.VisualState.animatingOut&&(Z=((X=I.animations)===null||X===void 0?void 0:X.exitMs)||0),clearTimeout(_.current),_.current=setTimeout(function(){var J=!1;A.setVisualState(function(){var q=j===p.VisualState.animatingIn?p.VisualState.showing:p.VisualState.hidden;return q===p.VisualState.hidden&&(J=!0),q}),J&&A.setCurrentRootAction(null)},Z)},[(P=I.animations)===null||P===void 0?void 0:P.enterMs,(R=I.animations)===null||R===void 0?void 0:R.exitMs,A]);l.useEffect(function(){switch(N){case p.VisualState.animatingIn:case p.VisualState.animatingOut:W(N);break}},[W,N])}function b(){var P=(0,d.useKBar)(function(A){return{visualState:A.visualState}}),R=P.visualState,T=P.options;l.useEffect(function(){if(!T.disableDocumentLock)if(R===p.VisualState.animatingIn){if(document.body.style.overflow="hidden",!T.disableScrollbarManagement){var A=(0,f.getScrollbarWidth)(),I=getComputedStyle(document.body)["margin-right"];I&&(A+=Number(I.replace(/\D/g,""))),document.body.style.marginRight=A+"px"}}else R===p.VisualState.hidden&&(document.body.style.removeProperty("overflow"),T.disableScrollbarManagement||document.body.style.removeProperty("margin-right"))},[T.disableDocumentLock,T.disableScrollbarManagement,R])}var E=new WeakSet;function S(P){return function(R){E.has(R)||(P(R),E.add(R))}}function w(){var P=(0,d.useKBar)(function(N){return{actions:N.actions,open:N.visualState===p.VisualState.showing}}),R=P.actions,T=P.query,A=P.open,I=P.options;l.useEffect(function(){var N;if(!A){for(var K=Object.keys(R).map(function($){return R[$]}),_=[],W=0,j=K;W<j.length;W++){var re=j[W];!((N=re.shortcut)===null||N===void 0)&&N.length&&_.push(re)}_=_.sort(function($,k){return k.shortcut.join(" ").length-$.shortcut.join(" ").length});for(var X={},Z=function($){var k=$.shortcut.join(" ");X[k]=S(function(F){var V,pe,ce,G,te,ie;(0,f.shouldRejectKeystrokes)()||(F.preventDefault(),!((V=$.children)===null||V===void 0)&&V.length?(T.setCurrentRootAction($.id),T.toggle(),(ce=(pe=I.callbacks)===null||pe===void 0?void 0:pe.onOpen)===null||ce===void 0||ce.call(pe)):((G=$.command)===null||G===void 0||G.perform(),(ie=(te=I.callbacks)===null||te===void 0?void 0:te.onSelectAction)===null||ie===void 0||ie.call(te,$)))})},J=0,q=_;J<q.length;J++){var re=q[J];Z(re)}var L=(0,h.default)(window,X,{timeout:400});return function(){L()}}},[R,A,I.callbacks,T])}function x(){var P=l.useRef(!0),R=(0,d.useKBar)(function(N){return{isShowing:N.visualState===p.VisualState.showing||N.visualState===p.VisualState.animatingIn}}),T=R.isShowing,A=R.query,I=l.useRef(null);l.useEffect(function(){if(P.current){P.current=!1;return}if(T){I.current=document.activeElement;return}var N=document.activeElement;N?.tagName.toLowerCase()==="input"&&N.blur();var K=I.current;K&&K!==N&&K.focus()},[T]),l.useEffect(function(){function N(K){var _=A.getInput();K.target!==_&&_.focus()}if(T)return window.addEventListener("keydown",N),function(){window.removeEventListener("keydown",N)}},[T,A])}},87629:function(C,c,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(b){for(var E,S=1,w=arguments.length;S<w;S++){E=arguments[S];for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(b[x]=E[x])}return b},i.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(b,E,S,w){w===void 0&&(w=S),Object.defineProperty(b,w,{enumerable:!0,get:function(){return E[S]}})}:function(b,E,S,w){w===void 0&&(w=S),b[w]=E[S]}),u=this&&this.__setModuleDefault||(Object.create?function(b,E){Object.defineProperty(b,"default",{enumerable:!0,value:E})}:function(b,E){b.default=E}),v=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var E={};if(b!=null)for(var S in b)S!=="default"&&Object.prototype.hasOwnProperty.call(b,S)&&s(E,b,S);return u(E,b),E};Object.defineProperty(c,"__esModule",{value:!0}),c.KBarAnimator=void 0;var l=v(t(27702)),h=t(20453),p=t(16177),d=t(53735),f=[{opacity:0,transform:"scale(.99)"},{opacity:1,transform:"scale(1.01)"},{opacity:1,transform:"scale(1)"}],g=[{transform:"scale(1)"},{transform:"scale(.98)"},{transform:"scale(1)"}],y=function(b){var E,S,w=b.children,x=b.style,P=b.className,R=(0,p.useKBar)(function(Z){return{visualState:Z.visualState,currentRootActionId:Z.currentRootActionId}}),T=R.visualState,A=R.currentRootActionId,I=R.query,N=R.options,K=l.useRef(null),_=l.useRef(null),W=((E=N?.animations)===null||E===void 0?void 0:E.enterMs)||0,j=((S=N?.animations)===null||S===void 0?void 0:S.exitMs)||0;l.useEffect(function(){if(T!==h.VisualState.showing){var Z=T===h.VisualState.animatingIn?W:j,J=K.current;J?.animate(f,{duration:Z,easing:T===h.VisualState.animatingOut?"ease-in":"ease-out",direction:T===h.VisualState.animatingOut?"reverse":"normal",fill:"forwards"})}},[N,T,W,j]);var re=l.useRef();l.useEffect(function(){if(T===h.VisualState.showing){var Z=K.current,J=_.current;if(!Z||!J)return;var q=new ResizeObserver(function(L){for(var $=0,k=L;$<k.length;$++){var F=k[$],V=F.contentRect;re.current||(re.current=V.height),Z.animate([{height:re.current+"px"},{height:V.height+"px"}],{duration:W/2,easing:"ease-out",fill:"forwards"}),re.current=V.height}});return q.observe(J),function(){q.unobserve(J)}}},[T,N,W,j]);var X=l.useRef(!0);return l.useEffect(function(){if(X.current){X.current=!1;return}var Z=K.current;Z&&Z.animate(g,{duration:W,easing:"ease-out"})},[A,W]),(0,d.useOuterClick)(K,function(){var Z,J;I.setVisualState(h.VisualState.animatingOut),(J=(Z=N.callbacks)===null||Z===void 0?void 0:Z.onClose)===null||J===void 0||J.call(Z)}),l.createElement("div",{ref:K,style:i(i(i({},f[0]),x),{pointerEvents:"auto"}),className:P},l.createElement("div",{ref:_},w))};c.KBarAnimator=y},47942:function(C,c,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(d,f,g,y){y===void 0&&(y=g),Object.defineProperty(d,y,{enumerable:!0,get:function(){return f[g]}})}:function(d,f,g,y){y===void 0&&(y=g),d[y]=f[g]}),s=this&&this.__setModuleDefault||(Object.create?function(d,f){Object.defineProperty(d,"default",{enumerable:!0,value:f})}:function(d,f){d.default=f}),u=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var f={};if(d!=null)for(var g in d)g!=="default"&&Object.prototype.hasOwnProperty.call(d,g)&&i(f,d,g);return s(f,d),f};Object.defineProperty(c,"__esModule",{value:!0}),c.KBarProvider=c.KBarContext=void 0;var v=t(62833),l=u(t(27702)),h=t(8037);c.KBarContext=l.createContext({});var p=function(d){var f=(0,v.useStore)(d);return l.createElement(c.KBarContext.Provider,{value:f},l.createElement(h.InternalEvents,null),d.children)};c.KBarProvider=p},29390:function(C,c,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(f,g,y,b){b===void 0&&(b=y),Object.defineProperty(f,b,{enumerable:!0,get:function(){return g[y]}})}:function(f,g,y,b){b===void 0&&(b=y),f[b]=g[y]}),s=this&&this.__setModuleDefault||(Object.create?function(f,g){Object.defineProperty(f,"default",{enumerable:!0,value:g})}:function(f,g){f.default=g}),u=this&&this.__importStar||function(f){if(f&&f.__esModule)return f;var g={};if(f!=null)for(var y in f)y!=="default"&&Object.prototype.hasOwnProperty.call(f,y)&&i(g,f,y);return s(g,f),g};Object.defineProperty(c,"__esModule",{value:!0}),c.KBarPortal=void 0;var v=t(70246),l=u(t(27702)),h=t(20453),p=t(16177);function d(f){var g=(0,p.useKBar)(function(y){return{showing:y.visualState!==h.VisualState.hidden}}).showing;return g?l.createElement(v.Portal,null,f.children):null}c.KBarPortal=d},88713:function(C,c,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(f){for(var g,y=1,b=arguments.length;y<b;y++){g=arguments[y];for(var E in g)Object.prototype.hasOwnProperty.call(g,E)&&(f[E]=g[E])}return f},i.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(f,g,y,b){b===void 0&&(b=y),Object.defineProperty(f,b,{enumerable:!0,get:function(){return g[y]}})}:function(f,g,y,b){b===void 0&&(b=y),f[b]=g[y]}),u=this&&this.__setModuleDefault||(Object.create?function(f,g){Object.defineProperty(f,"default",{enumerable:!0,value:g})}:function(f,g){f.default=g}),v=this&&this.__importStar||function(f){if(f&&f.__esModule)return f;var g={};if(f!=null)for(var y in f)y!=="default"&&Object.prototype.hasOwnProperty.call(f,y)&&s(g,f,y);return u(g,f),g},l=this&&this.__rest||function(f,g){var y={};for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&g.indexOf(b)<0&&(y[b]=f[b]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,b=Object.getOwnPropertySymbols(f);E<b.length;E++)g.indexOf(b[E])<0&&Object.prototype.propertyIsEnumerable.call(f,b[E])&&(y[b[E]]=f[b[E]]);return y};Object.defineProperty(c,"__esModule",{value:!0}),c.KBarPositioner=void 0;var h=v(t(27702)),p={position:"fixed",display:"flex",alignItems:"flex-start",justifyContent:"center",width:"100%",inset:"0px",padding:"14vh 16px 16px"};function d(f){return f?i(i({},p),f):p}c.KBarPositioner=h.forwardRef(function(f,g){var y=f.style,b=f.children,E=l(f,["style","children"]);return h.createElement("div",i({ref:g,style:d(y)},E),b)})},58560:function(C,c,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(b){for(var E,S=1,w=arguments.length;S<w;S++){E=arguments[S];for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(b[x]=E[x])}return b},i.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(b,E,S,w){w===void 0&&(w=S),Object.defineProperty(b,w,{enumerable:!0,get:function(){return E[S]}})}:function(b,E,S,w){w===void 0&&(w=S),b[w]=E[S]}),u=this&&this.__setModuleDefault||(Object.create?function(b,E){Object.defineProperty(b,"default",{enumerable:!0,value:E})}:function(b,E){b.default=E}),v=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var E={};if(b!=null)for(var S in b)S!=="default"&&Object.prototype.hasOwnProperty.call(b,S)&&s(E,b,S);return u(E,b),E};Object.defineProperty(c,"__esModule",{value:!0}),c.KBarResults=void 0;var l=v(t(27702)),h=t(14705),p=t(84566),d=t(16177),f=t(53735),g=0,y=function(b){var E=l.useRef(null),S=l.useRef(null),w=l.useRef(b.items);w.current=b.items;var x=(0,h.useVirtual)({size:w.current.length,parentRef:S}),P=(0,d.useKBar)(function(j){return{search:j.searchQuery,currentRootActionId:j.currentRootActionId,activeIndex:j.activeIndex}}),R=P.query,T=P.search,A=P.currentRootActionId,I=P.activeIndex,N=P.options;l.useEffect(function(){var j=function(re){var X;re.isComposing||(re.key==="ArrowUp"||re.ctrlKey&&re.key==="p"?(re.preventDefault(),R.setActiveIndex(function(Z){var J=Z>g?Z-1:Z;if(typeof w.current[J]=="string"){if(J===0)return Z;J-=1}return J})):re.key==="ArrowDown"||re.ctrlKey&&re.key==="n"?(re.preventDefault(),R.setActiveIndex(function(Z){var J=Z<w.current.length-1?Z+1:Z;if(typeof w.current[J]=="string"){if(J===w.current.length-1)return Z;J+=1}return J})):re.key==="Enter"&&(re.preventDefault(),(X=E.current)===null||X===void 0||X.click()))};return window.addEventListener("keydown",j),function(){return window.removeEventListener("keydown",j)}},[R]);var K=x.scrollToIndex;l.useEffect(function(){K(I,{align:I<=1?"end":"auto"})},[I,K]),l.useEffect(function(){R.setActiveIndex(typeof b.items[g]=="string"?g+1:g)},[T,A,b.items,R]);var _=l.useCallback(function(j){var re,X;typeof j!="string"&&(j.command?(j.command.perform(j),R.toggle()):(R.setSearch(""),R.setCurrentRootAction(j.id)),(X=(re=N.callbacks)===null||re===void 0?void 0:re.onSelectAction)===null||X===void 0||X.call(re,j))},[R,N]),W=(0,f.usePointerMovedSinceMount)();return l.createElement("div",{ref:S,style:{maxHeight:b.maxHeight||400,position:"relative",overflow:"auto"}},l.createElement("div",{role:"listbox",id:p.KBAR_LISTBOX,style:{height:x.totalSize+"px",width:"100%"}},x.virtualItems.map(function(j){var re=w.current[j.index],X=typeof re!="string"&&{onPointerMove:function(){return W&&I!==j.index&&R.setActiveIndex(j.index)},onPointerDown:function(){return R.setActiveIndex(j.index)},onClick:function(){return _(re)}},Z=j.index===I;return l.createElement("div",i({ref:Z?E:null,id:(0,p.getListboxItemId)(j.index),role:"option","aria-selected":Z,key:j.index,style:{position:"absolute",top:0,left:0,width:"100%",transform:"translateY("+j.start+"px)"}},X),l.cloneElement(b.onRender({item:re,active:Z}),{ref:j.measureRef}))})))};c.KBarResults=y},84566:function(C,c,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(y){for(var b,E=1,S=arguments.length;E<S;E++){b=arguments[E];for(var w in b)Object.prototype.hasOwnProperty.call(b,w)&&(y[w]=b[w])}return y},i.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(y,b,E,S){S===void 0&&(S=E),Object.defineProperty(y,S,{enumerable:!0,get:function(){return b[E]}})}:function(y,b,E,S){S===void 0&&(S=E),y[S]=b[E]}),u=this&&this.__setModuleDefault||(Object.create?function(y,b){Object.defineProperty(y,"default",{enumerable:!0,value:b})}:function(y,b){y.default=b}),v=this&&this.__importStar||function(y){if(y&&y.__esModule)return y;var b={};if(y!=null)for(var E in y)E!=="default"&&Object.prototype.hasOwnProperty.call(y,E)&&s(b,y,E);return u(b,y),b},l=this&&this.__rest||function(y,b){var E={};for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&b.indexOf(S)<0&&(E[S]=y[S]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,S=Object.getOwnPropertySymbols(y);w<S.length;w++)b.indexOf(S[w])<0&&Object.prototype.propertyIsEnumerable.call(y,S[w])&&(E[S[w]]=y[S[w]]);return E};Object.defineProperty(c,"__esModule",{value:!0}),c.KBarSearch=c.getListboxItemId=c.KBAR_LISTBOX=void 0;var h=v(t(27702)),p=t(20453),d=t(16177);c.KBAR_LISTBOX="kbar-listbox";var f=function(y){return"kbar-listbox-item-"+y};c.getListboxItemId=f;function g(y){var b=(0,d.useKBar)(function(K){return{search:K.searchQuery,currentRootActionId:K.currentRootActionId,actions:K.actions,activeIndex:K.activeIndex,showing:K.visualState===p.VisualState.showing}}),E=b.query,S=b.search,w=b.actions,x=b.currentRootActionId,P=b.activeIndex,R=b.showing,T=b.options,A=y.defaultPlaceholder,I=l(y,["defaultPlaceholder"]);h.useEffect(function(){return E.setSearch(""),E.getInput().focus(),function(){return E.setSearch("")}},[x,E]);var N=h.useMemo(function(){var K=A??"Type a command or search\u2026";return x&&w[x]?w[x].name:K},[w,x,A]);return h.createElement("input",i({},I,{ref:E.inputRefSetter,autoFocus:!0,autoComplete:"off",role:"combobox",spellCheck:"false","aria-expanded":R,"aria-controls":c.KBAR_LISTBOX,"aria-activedescendant":(0,c.getListboxItemId)(P),value:S,placeholder:N,onChange:function(K){var _,W,j;(_=y.onChange)===null||_===void 0||_.call(y,K),E.setSearch(K.target.value),(j=(W=T?.callbacks)===null||W===void 0?void 0:W.onQueryChange)===null||j===void 0||j.call(W,K.target.value)},onKeyDown:function(K){var _;if((_=y.onKeyDown)===null||_===void 0||_.call(y,K),x&&!S&&K.key==="Backspace"){var W=w[x].parent;E.setCurrentRootAction(W)}}}))}c.KBarSearch=g},88652:function(C,c,t){"use strict";var i=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(c,"__esModule",{value:!0}),c.ActionImpl=void 0;var s=i(t(40151)),u=t(55009),v=t(53735),l=function(p){var d=p.keywords,f=d===void 0?"":d,g=p.section,y=g===void 0?"":g;return(f+" "+(typeof y=="string"?y:y.name)).trim()},h=function(){function p(d,f){var g=this,y;this.priority=v.Priority.NORMAL,this.ancestors=[],this.children=[],Object.assign(this,d),this.id=d.id,this.name=d.name,this.keywords=l(d);var b=d.perform;if(this.command=b&&new u.Command({perform:function(){return b(g)}},{history:f.history}),this.perform=(y=this.command)===null||y===void 0?void 0:y.perform,d.parent){var E=f.store[d.parent];(0,s.default)(E,"attempted to create an action whos parent: "+d.parent+" does not exist in the store."),E.addChild(this)}}return p.prototype.addChild=function(d){d.ancestors.unshift(this);for(var f=this.parentActionImpl;f;)d.ancestors.unshift(f),f=f.parentActionImpl;this.children.push(d)},p.prototype.removeChild=function(d){var f=this,g=this.children.indexOf(d);g!==-1&&this.children.splice(g,1),d.children&&d.children.forEach(function(y){f.removeChild(y)})},Object.defineProperty(p.prototype,"parentActionImpl",{get:function(){return this.ancestors[this.ancestors.length-1]},enumerable:!1,configurable:!0}),p.create=function(d,f){return new p(d,f)},p}();c.ActionImpl=h},2412:function(C,c,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(h){for(var p,d=1,f=arguments.length;d<f;d++){p=arguments[d];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(h[g]=p[g])}return h},i.apply(this,arguments)},s=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(c,"__esModule",{value:!0}),c.ActionInterface=void 0;var u=s(t(40151)),v=t(88652),l=function(){function h(p,d){p===void 0&&(p=[]),d===void 0&&(d={}),this.actions={},this.options=d,this.add(p)}return h.prototype.add=function(p){for(var d=0;d<p.length;d++){var f=p[d];f.parent&&(0,u.default)(this.actions[f.parent],'Attempted to create action "'+f.name+'" without registering its parent "'+f.parent+'" first.'),this.actions[f.id]=v.ActionImpl.create(f,{history:this.options.historyManager,store:this.actions})}return i({},this.actions)},h.prototype.remove=function(p){var d=this;return p.forEach(function(f){var g=d.actions[f.id];if(g){for(var y=g.children;y.length;){var b=y.pop();if(!b)return;delete d.actions[b.id],b.parentActionImpl&&b.parentActionImpl.removeChild(b),b.children&&y.push.apply(y,b.children)}g.parentActionImpl&&g.parentActionImpl.removeChild(g),delete d.actions[f.id]}}),i({},this.actions)},h}();c.ActionInterface=l},55009:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Command=void 0;var t=function(){function i(s,u){var v=this;u===void 0&&(u={}),this.perform=function(){var l=s.perform();if(typeof l=="function"){var h=u.history;h&&(v.historyItem&&h.remove(v.historyItem),v.historyItem=h.add({perform:s.perform,negate:l}),v.history={undo:function(){return h.undo(v.historyItem)},redo:function(){return h.redo(v.historyItem)}})}}}return i}();c.Command=t},58196:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.history=c.HistoryItemImpl=void 0;var i=t(53735),s=function(){function l(h){this.perform=h.perform,this.negate=h.negate}return l.create=function(h){return new l(h)},l}();c.HistoryItemImpl=s;var u=function(){function l(){return this.undoStack=[],this.redoStack=[],l.instance||(l.instance=this,this.init()),l.instance}return l.prototype.init=function(){var h=this;typeof window>"u"||window.addEventListener("keydown",function(p){var d;if(!(!h.redoStack.length&&!h.undoStack.length||(0,i.shouldRejectKeystrokes)())){var f=(d=p.key)===null||d===void 0?void 0:d.toLowerCase();p.metaKey&&f==="z"&&p.shiftKey?h.redo():p.metaKey&&f==="z"&&h.undo()}})},l.prototype.add=function(h){var p=s.create(h);return this.undoStack.push(p),p},l.prototype.remove=function(h){var p=this.undoStack.findIndex(function(f){return f===h});if(p!==-1){this.undoStack.splice(p,1);return}var d=this.redoStack.findIndex(function(f){return f===h});d!==-1&&this.redoStack.splice(d,1)},l.prototype.undo=function(h){if(!h){var p=this.undoStack.pop();return p?(p?.negate(),this.redoStack.push(p),p):void 0}var d=this.undoStack.findIndex(function(f){return f===h});if(d!==-1)return this.undoStack.splice(d,1),h.negate(),this.redoStack.push(h),h},l.prototype.redo=function(h){if(!h){var p=this.redoStack.pop();return p?(p?.perform(),this.undoStack.push(p),p):void 0}var d=this.redoStack.findIndex(function(f){return f===h});if(d!==-1)return this.redoStack.splice(d,1),h.perform(),this.undoStack.push(h),h},l.prototype.reset=function(){this.undoStack.splice(0),this.redoStack.splice(0)},l}(),v=new u;c.history=v,Object.freeze(v)},52991:function(C,c,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(u,v,l,h){h===void 0&&(h=l),Object.defineProperty(u,h,{enumerable:!0,get:function(){return v[l]}})}:function(u,v,l,h){h===void 0&&(h=l),u[h]=v[l]}),s=this&&this.__exportStar||function(u,v){for(var l in u)l!=="default"&&!Object.prototype.hasOwnProperty.call(v,l)&&i(v,u,l)};Object.defineProperty(c,"__esModule",{value:!0}),s(t(2412),c),s(t(88652),c)},55801:function(C,c,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(v,l,h,p){p===void 0&&(p=h),Object.defineProperty(v,p,{enumerable:!0,get:function(){return l[h]}})}:function(v,l,h,p){p===void 0&&(p=h),v[p]=l[h]}),s=this&&this.__exportStar||function(v,l){for(var h in v)h!=="default"&&!Object.prototype.hasOwnProperty.call(l,h)&&i(l,v,h)};Object.defineProperty(c,"__esModule",{value:!0}),c.Priority=c.createAction=void 0;var u=t(53735);Object.defineProperty(c,"createAction",{enumerable:!0,get:function(){return u.createAction}}),Object.defineProperty(c,"Priority",{enumerable:!0,get:function(){return u.Priority}}),s(t(68532),c),s(t(29390),c),s(t(88713),c),s(t(84566),c),s(t(58560),c),s(t(16177),c),s(t(39763),c),s(t(47942),c),s(t(87629),c),s(t(20453),c),s(t(52991),c)},97095:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var t=["Shift","Meta","Alt","Control"],i=1e3,s="keydown",u=typeof navigator=="object"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"Meta":"Control";function v(d,f){return typeof d.getModifierState=="function"?d.getModifierState(f):!1}function l(d){return d.trim().split(" ").map(function(f){var g=f.split(/\b\+/),y=g.pop();return g=g.map(function(b){return b==="$mod"?u:b}),[g,y]})}function h(d,f){return/^[^A-Za-z0-9]$/.test(d.key)&&f[1]===d.key?!0:!(f[1].toUpperCase()!==d.key.toUpperCase()&&f[1]!==d.code||f[0].find(function(g){return!v(d,g)})||t.find(function(g){return!f[0].includes(g)&&f[1]!==g&&v(d,g)}))}function p(d,f,g){var y,b;g===void 0&&(g={});var E=(y=g.timeout)!==null&&y!==void 0?y:i,S=(b=g.event)!==null&&b!==void 0?b:s,w=Object.keys(f).map(function(T){return[l(T),f[T]]}),x=new Map,P=null,R=function(T){T instanceof KeyboardEvent&&(w.forEach(function(A){var I=A[0],N=A[1],K=x.get(I),_=K||I,W=_[0],j=h(T,W);j?_.length>1?x.set(I,_.slice(1)):(x.delete(I),N(T)):v(T,T.key)||x.delete(I)}),P&&clearTimeout(P),P=setTimeout(x.clear.bind(x),E))};return d.addEventListener(S,R),function(){d.removeEventListener(S,R)}}c.default=p},20453:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.VisualState=void 0;var t;(function(i){i.animatingIn="animating-in",i.showing="showing",i.animatingOut="animating-out",i.hidden="hidden"})(t=c.VisualState||(c.VisualState={}))},16177:function(C,c,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(d){for(var f,g=1,y=arguments.length;g<y;g++){f=arguments[g];for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(d[b]=f[b])}return d},i.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(d,f,g,y){y===void 0&&(y=g),Object.defineProperty(d,y,{enumerable:!0,get:function(){return f[g]}})}:function(d,f,g,y){y===void 0&&(y=g),d[y]=f[g]}),u=this&&this.__setModuleDefault||(Object.create?function(d,f){Object.defineProperty(d,"default",{enumerable:!0,value:f})}:function(d,f){d.default=f}),v=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var f={};if(d!=null)for(var g in d)g!=="default"&&Object.prototype.hasOwnProperty.call(d,g)&&s(f,d,g);return u(f,d),f};Object.defineProperty(c,"__esModule",{value:!0}),c.useKBar=void 0;var l=v(t(27702)),h=t(47942);function p(d){var f=l.useContext(h.KBarContext),g=f.query,y=f.getState,b=f.subscribe,E=f.options,S=l.useRef(d?.(y())),w=l.useRef(d),x=l.useCallback(function(A){return i(i({},A),{query:g,options:E})},[g,E]),P=l.useState(x(S.current)),R=P[0],T=P[1];return l.useEffect(function(){var A;return w.current&&(A=b(function(I){return w.current(I)},function(I){return T(x(I))})),function(){A&&A()}},[x,b]),R}c.useKBar=p},68532:function(C,c,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(b,E,S,w){w===void 0&&(w=S),Object.defineProperty(b,w,{enumerable:!0,get:function(){return E[S]}})}:function(b,E,S,w){w===void 0&&(w=S),b[w]=E[S]}),s=this&&this.__setModuleDefault||(Object.create?function(b,E){Object.defineProperty(b,"default",{enumerable:!0,value:E})}:function(b,E){b.default=E}),u=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var E={};if(b!=null)for(var S in b)S!=="default"&&Object.prototype.hasOwnProperty.call(b,S)&&i(E,b,S);return s(E,b),E},v=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(c,"__esModule",{value:!0}),c.useDeepMatches=c.useMatches=c.NO_GROUP=void 0;var l=u(t(27702)),h=t(16177),p=t(53735),d=v(t(7868));c.NO_GROUP={name:"none",priority:p.Priority.NORMAL};function f(b,E){return E.priority-b.priority}function g(){var b=(0,h.useKBar)(function(K){return{search:K.searchQuery,actions:K.actions,rootActionId:K.currentRootActionId}}),E=b.search,S=b.actions,w=b.rootActionId,x=l.useMemo(function(){return Object.keys(S).reduce(function(K,_){var W=S[_];if(!W.parent&&!w&&K.push(W),W.id===w)for(var j=0;j<W.children.length;j++)K.push(W.children[j]);return K},[]).sort(f)},[S,w]),P=l.useCallback(function(K){for(var _=[],W=0;W<K.length;W++)_.push(K[W]);return function j(re,X){X===void 0&&(X=_);for(var Z=0;Z<re.length;Z++)if(re[Z].children.length>0){for(var J=re[Z].children,q=0;q<J.length;q++)X.push(J[q]);j(re[Z].children,X)}return X}(K)},[]),R=!E,T=l.useMemo(function(){return R?x:P(x)},[P,x,R]),A=y(T,E),I=l.useMemo(function(){for(var K,_,W={},j=[],re=[],X=0;X<A.length;X++){var Z=A[X],J=Z.action,q=Z.score||p.Priority.NORMAL,L={name:typeof J.section=="string"?J.section:((K=J.section)===null||K===void 0?void 0:K.name)||c.NO_GROUP.name,priority:typeof J.section=="string"?q:((_=J.section)===null||_===void 0?void 0:_.priority)||0+q};W[L.name]||(W[L.name]=[],j.push(L)),W[L.name].push({priority:J.priority+q,action:J})}re=j.sort(f).map(function(V){return{name:V.name,actions:W[V.name].sort(f).map(function(pe){return pe.action})}});for(var $=[],X=0;X<re.length;X++){var k=re[X];k.name!==c.NO_GROUP.name&&$.push(k.name);for(var F=0;F<k.actions.length;F++)$.push(k.actions[F])}return $},[A]),N=l.useMemo(function(){return w},[I]);return l.useMemo(function(){return{results:I,rootActionId:N}},[N,I])}c.useMatches=g;function y(b,E){var S=l.useMemo(function(){return{filtered:b,search:E}},[b,E]),w=(0,p.useThrottledValue)(S),x=w.filtered,P=w.search;return l.useMemo(function(){if(P.trim()==="")return x.map(function(N){return{score:0,action:N}});for(var R=[],T=0;T<x.length;T++){var A=x[T],I=(0,d.default)([A.name,A.keywords,A.subtitle].join(" "),P);I>0&&R.push({score:I,action:A})}return R},[x,P])}c.useDeepMatches=g},39763:function(C,c,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(p,d,f,g){g===void 0&&(g=f),Object.defineProperty(p,g,{enumerable:!0,get:function(){return d[f]}})}:function(p,d,f,g){g===void 0&&(g=f),p[g]=d[f]}),s=this&&this.__setModuleDefault||(Object.create?function(p,d){Object.defineProperty(p,"default",{enumerable:!0,value:d})}:function(p,d){p.default=d}),u=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var d={};if(p!=null)for(var f in p)f!=="default"&&Object.prototype.hasOwnProperty.call(p,f)&&i(d,p,f);return s(d,p),d};Object.defineProperty(c,"__esModule",{value:!0}),c.useRegisterActions=void 0;var v=u(t(27702)),l=t(16177);function h(p,d){d===void 0&&(d=[]);var f=(0,l.useKBar)().query,g=v.useMemo(function(){return p},d);v.useEffect(function(){if(g.length){var y=f.registerActions(g);return function(){y()}}},[f,g])}c.useRegisterActions=h},62833:function(C,c,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(w){for(var x,P=1,R=arguments.length;P<R;P++){x=arguments[P];for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(w[T]=x[T])}return w},i.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(w,x,P,R){R===void 0&&(R=P),Object.defineProperty(w,R,{enumerable:!0,get:function(){return x[P]}})}:function(w,x,P,R){R===void 0&&(R=P),w[R]=x[P]}),u=this&&this.__setModuleDefault||(Object.create?function(w,x){Object.defineProperty(w,"default",{enumerable:!0,value:x})}:function(w,x){w.default=x}),v=this&&this.__importStar||function(w){if(w&&w.__esModule)return w;var x={};if(w!=null)for(var P in w)P!=="default"&&Object.prototype.hasOwnProperty.call(w,P)&&s(x,w,P);return u(x,w),x},l=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(c,"__esModule",{value:!0}),c.useStore=void 0;var h=t(90277),p=v(t(27702)),d=l(t(40151)),f=t(2412),g=t(58196),y=t(20453);function b(w){var x=p.useRef(i({animations:{enterMs:200,exitMs:100}},w.options)),P=p.useMemo(function(){return new f.ActionInterface(w.actions||[],{historyManager:x.current.enableHistory?g.history:void 0})},[]),R=p.useState({searchQuery:"",currentRootActionId:null,visualState:y.VisualState.hidden,actions:i({},P.actions),activeIndex:0}),T=R[0],A=R[1],I=p.useRef(T);I.current=T;var N=p.useCallback(function(){return I.current},[]),K=p.useMemo(function(){return new E(N)},[N]);p.useEffect(function(){I.current=T,K.notify()},[T,K]);var _=p.useCallback(function(j){return A(function(re){return i(i({},re),{actions:P.add(j)})}),function(){A(function(X){return i(i({},X),{actions:P.remove(j)})})}},[P]),W=p.useRef(null);return p.useMemo(function(){return{getState:N,query:{setCurrentRootAction:function(j){A(function(re){return i(i({},re),{currentRootActionId:j})})},setVisualState:function(j){A(function(re){return i(i({},re),{visualState:typeof j=="function"?j(re.visualState):j})})},setSearch:function(j){return A(function(re){return i(i({},re),{searchQuery:j})})},registerActions:_,toggle:function(){return A(function(j){return i(i({},j),{visualState:[y.VisualState.animatingOut,y.VisualState.hidden].includes(j.visualState)?y.VisualState.animatingIn:y.VisualState.animatingOut})})},setActiveIndex:function(j){return A(function(re){return i(i({},re),{activeIndex:typeof j=="number"?j:j(re.activeIndex)})})},inputRefSetter:function(j){W.current=j},getInput:function(){return(0,d.default)(W.current,"Input is undefined, make sure you apple `query.inputRefSetter` to your search input."),W.current}},options:x.current,subscribe:function(j,re){return K.subscribe(j,re)}}},[N,K,_])}c.useStore=b;var E=function(){function w(x){this.subscribers=[],this.getState=x}return w.prototype.subscribe=function(x,P){var R=this,T=new S(function(){return x(R.getState())},P);return this.subscribers.push(T),this.unsubscribe.bind(this,T)},w.prototype.unsubscribe=function(x){if(this.subscribers.length){var P=this.subscribers.indexOf(x);if(P>-1)return this.subscribers.splice(P,1)}},w.prototype.notify=function(){this.subscribers.forEach(function(x){return x.collect()})},w}(),S=function(){function w(x,P){this.collector=x,this.onChange=P}return w.prototype.collect=function(){try{var x=this.collector();(0,h.deepEqual)(x,this.collected)||(this.collected=x,this.onChange&&this.onChange(this.collected))}catch(P){console.warn(P)}},w}()},53735:function(C,c,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(T){for(var A,I=1,N=arguments.length;I<N;I++){A=arguments[I];for(var K in A)Object.prototype.hasOwnProperty.call(A,K)&&(T[K]=A[K])}return T},i.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(T,A,I,N){N===void 0&&(N=I),Object.defineProperty(T,N,{enumerable:!0,get:function(){return A[I]}})}:function(T,A,I,N){N===void 0&&(N=I),T[N]=A[I]}),u=this&&this.__setModuleDefault||(Object.create?function(T,A){Object.defineProperty(T,"default",{enumerable:!0,value:A})}:function(T,A){T.default=A}),v=this&&this.__importStar||function(T){if(T&&T.__esModule)return T;var A={};if(T!=null)for(var I in T)I!=="default"&&Object.prototype.hasOwnProperty.call(T,I)&&s(A,T,I);return u(A,T),A},l=this&&this.__spreadArray||function(T,A,I){if(I||arguments.length===2)for(var N=0,K=A.length,_;N<K;N++)(_||!(N in A))&&(_||(_=Array.prototype.slice.call(A,0,N)),_[N]=A[N]);return T.concat(_||Array.prototype.slice.call(A))};Object.defineProperty(c,"__esModule",{value:!0}),c.Priority=c.isModKey=c.shouldRejectKeystrokes=c.useThrottledValue=c.getScrollbarWidth=c.useIsomorphicLayout=c.noop=c.createAction=c.randomId=c.usePointerMovedSinceMount=c.useOuterClick=c.swallowEvent=void 0;var h=v(t(27702));function p(T){T.stopPropagation(),T.preventDefault()}c.swallowEvent=p;function d(T,A){var I=h.useRef(A);I.current=A,h.useEffect(function(){function N(K){var _,W;!((_=T.current)===null||_===void 0)&&_.contains(K.target)||K.target===((W=T.current)===null||W===void 0?void 0:W.getRootNode().host)||(K.preventDefault(),K.stopPropagation(),I.current())}return window.addEventListener("pointerdown",N,!0),function(){return window.removeEventListener("pointerdown",N,!0)}},[T])}c.useOuterClick=d;function f(){var T=h.useState(!1),A=T[0],I=T[1];return h.useEffect(function(){function N(){I(!0)}if(!A)return window.addEventListener("pointermove",N),function(){return window.removeEventListener("pointermove",N)}},[A]),A}c.usePointerMovedSinceMount=f;function g(){return Math.random().toString(36).substring(2,9)}c.randomId=g;function y(T){return i({id:g()},T)}c.createAction=y;function b(){}c.noop=b,c.useIsomorphicLayout=typeof window>"u"?b:h.useLayoutEffect;function E(){var T=document.createElement("div");T.style.visibility="hidden",T.style.overflow="scroll",document.body.appendChild(T);var A=document.createElement("div");T.appendChild(A);var I=T.offsetWidth-A.offsetWidth;return T.parentNode.removeChild(T),I}c.getScrollbarWidth=E;function S(T,A){A===void 0&&(A=100);var I=h.useState(T),N=I[0],K=I[1],_=h.useRef(Date.now());return h.useEffect(function(){if(A!==0){var W=setTimeout(function(){K(T),_.current=Date.now()},_.current-(Date.now()-A));return function(){clearTimeout(W)}}},[A,T]),A===0?T:N}c.useThrottledValue=S;function w(T){var A,I,N=T===void 0?{ignoreWhenFocused:[]}:T,K=N.ignoreWhenFocused,_=l(["input","textarea"],K,!0).map(function(re){return re.toLowerCase()}),W=document.activeElement,j=W&&(_.indexOf(W.tagName.toLowerCase())!==-1||((A=W.attributes.getNamedItem("role"))===null||A===void 0?void 0:A.value)==="textbox"||((I=W.attributes.getNamedItem("contenteditable"))===null||I===void 0?void 0:I.value)==="true");return j}c.shouldRejectKeystrokes=w;var x=typeof window>"u",P=!x&&window.navigator.platform==="MacIntel";function R(T){return P?T.metaKey:T.ctrlKey}c.isModKey=R,c.Priority={HIGH:1,NORMAL:0,LOW:-1}},42580:()=>{(function(C){var c={},t=C.prototype.stopCallback;C.prototype.stopCallback=function(i,s,u,v){var l=this;return l.paused?!0:c[u]||c[v]?!1:t.call(l,i,s,u)},C.prototype.bindGlobal=function(i,s,u){var v=this;if(v.bind(i,s,u),i instanceof Array){for(var l=0;l<i.length;l++)c[i[l]]=!0;return}c[i]=!0},C.prototype.unbindGlobal=function(i,s){var u=this;if(u.unbind(i,s),i instanceof Array){for(var v=0;v<i.length;v++)c[i[v]]=!1;return}c[i]=!1},C.init()})(Mousetrap)},63178:(C,c,t)=>{"use strict";t.d(c,{Z:()=>Gu});var i=t(94285),s=t(75342),u=t(32098),v=t(4696),l=t(23190),h=t(48632),p=t(4484),d=t(27702),f=t.t(d,2);function g(an,Nn){var tr=Nn||{},In=tr.defaultValue,di=tr.value,oi=tr.onChange,ki=tr.postState,ri=d.useState(function(){return di!==void 0?di:In!==void 0?typeof In=="function"?In():In:typeof an=="function"?an():an}),bi=(0,u.Z)(ri,2),_n=bi[0],Ua=bi[1],va=di!==void 0?di:_n;ki&&(va=ki(va));var Va=d.useRef(oi);Va.current=oi;var Qi=d.useCallback(function(Pe){Ua(Pe),va!==Pe&&Va.current&&Va.current(Pe,va)},[va,Va]),ro=d.useRef(!0);return d.useEffect(function(){if(ro.current){ro.current=!1;return}di===void 0&&Ua(di)},[di]),[va,Qi]}var y=t(78572),b=t(28040),E=t.n(b),S=t(87460);const w=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var an=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(an)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(an?.substr(0,4)))};var x=t(86588),P=t(69365),R=d.createContext(null);function T(){return d.useContext(R)}function A(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Nn=d.useState(!1),tr=(0,u.Z)(Nn,2),In=tr[0],di=tr[1],oi=d.useRef(null),ki=function(){window.clearTimeout(oi.current)};d.useEffect(function(){return ki},[]);var ri=function(_n,Ua){ki(),oi.current=window.setTimeout(function(){di(_n),Ua&&Ua()},an)};return[In,ri,ki]}function I(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Nn=d.useRef(null),tr=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(tr.current)}},[]);function In(di){(di||Nn.current===null)&&(Nn.current=di),window.clearTimeout(tr.current),tr.current=window.setTimeout(function(){Nn.current=null},an)}return[function(){return Nn.current},In]}function N(an,Nn,tr,In){var di=d.useRef(null);di.current={open:Nn,triggerOpen:tr,customizedTrigger:In},d.useEffect(function(){function oi(ki){var ri;if(!((ri=di.current)!==null&&ri!==void 0&&ri.customizedTrigger)){var bi=ki.target;bi.shadowRoot&&ki.composed&&(bi=ki.composedPath()[0]||bi),di.current.open&&an().filter(function(_n){return _n}).every(function(_n){return!_n.contains(bi)&&_n!==bi})&&di.current.triggerOpen(!1)}}return window.addEventListener("mousedown",oi),function(){return window.removeEventListener("mousedown",oi)}},[])}var K=t(29353),_=t(20585),W=void 0;function j(an,Nn){var tr=an.prefixCls,In=an.invalidate,di=an.item,oi=an.renderItem,ki=an.responsive,ri=an.registerSize,bi=an.itemKey,_n=an.className,Ua=an.style,va=an.children,Va=an.display,Qi=an.order,ro=an.component,Pe=ro===void 0?"div":ro,Nt=(0,v.Z)(an,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","className","style","children","display","order","component"]),un=ki&&!Va;function xn(Er){ri(bi,Er)}d.useEffect(function(){return function(){xn(null)}},[]);var zn=oi&&di!==W?oi(di):va,sr;In||(sr={opacity:un?0:1,height:un?0:W,overflowY:un?"hidden":W,order:ki?Qi:W,pointerEvents:un?"none":W,position:un?"absolute":W});var Tr={};un&&(Tr["aria-hidden"]=!0);var Br=d.createElement(Pe,(0,i.Z)({className:E()(!In&&tr,_n),style:(0,h.Z)((0,h.Z)({},sr),Ua)},Tr,Nt,{ref:Nn}),zn);return ki&&(Br=d.createElement(_.Z,{onResize:function(Sr){var Vr=Sr.offsetWidth;xn(Vr)}},Br)),Br}var re=d.forwardRef(j);re.displayName="Item";const X=re;var Z=t(94792);function J(){var an=(0,d.useState)({}),Nn=(0,u.Z)(an,2),tr=Nn[1],In=(0,d.useRef)([]),di=(0,d.useRef)(!1),oi=0,ki=0;(0,d.useEffect)(function(){return function(){di.current=!0}},[]);function ri(bi){var _n=oi;oi+=1,In.current.length<_n+1&&(In.current[_n]=bi);var Ua=In.current[_n];function va(Va){In.current[_n]=typeof Va=="function"?Va(In.current[_n]):Va,Z.Z.cancel(ki),ki=(0,Z.Z)(function(){di.current||tr({})})}return[Ua,va]}return ri}var q=function(Nn,tr){var In=d.useContext(k);if(!In){var di=Nn.component,oi=di===void 0?"div":di,ki=(0,v.Z)(Nn,["component"]);return d.createElement(oi,(0,i.Z)({},ki,{ref:tr}))}var ri=In.className,bi=(0,v.Z)(In,["className"]),_n=Nn.className,Ua=(0,v.Z)(Nn,["className"]);return d.createElement(k.Provider,{value:null},d.createElement(X,(0,i.Z)({ref:tr,className:E()(ri,_n)},bi,Ua)))},L=d.forwardRef(q);L.displayName="RawItem";const $=L;var k=d.createContext(null),F="responsive",V="invalidate";function pe(an){return"+ ".concat(an.length," ...")}function ce(an,Nn){var tr=an.prefixCls,In=tr===void 0?"rc-overflow":tr,di=an.data,oi=di===void 0?[]:di,ki=an.renderItem,ri=an.renderRawItem,bi=an.itemKey,_n=an.itemWidth,Ua=_n===void 0?10:_n,va=an.ssr,Va=an.style,Qi=an.className,ro=an.maxCount,Pe=an.renderRest,Nt=an.renderRawRest,un=an.suffix,xn=an.component,zn=xn===void 0?"div":xn,sr=an.itemComponent,Tr=an.onVisibleChange,Br=(0,v.Z)(an,["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"]),Er=J(),Sr=va==="full",Vr=Er(null),fi=(0,u.Z)(Vr,2),xr=fi[0],Wr=fi[1],ti=xr||0,xi=Er(new Map),Gi=(0,u.Z)(xi,2),_i=Gi[0],da=Gi[1],Sa=Er(0),Pa=(0,u.Z)(Sa,2),oo=Pa[0],mo=Pa[1],Ga=Er(0),no=(0,u.Z)(Ga,2),ca=no[0],co=no[1],Yo=Er(0),bo=(0,u.Z)(Yo,2),Ea=bo[0],ko=bo[1],Es=(0,d.useState)(null),Ts=(0,u.Z)(Es,2),rs=Ts[0],ls=Ts[1],Ss=(0,d.useState)(null),cs=(0,u.Z)(Ss,2),Do=cs[0],fs=cs[1],is=d.useMemo(function(){return Do===null&&Sr?Number.MAX_SAFE_INTEGER:Do||0},[Do,xr]),Os=(0,d.useState)(!1),Qs=(0,u.Z)(Os,2),du=Qs[0],Yu=Qs[1],$u="".concat(In,"-item"),Xu=Math.max(oo,ca),su=oi.length&&ro===F,Pu=ro===V,Lu=su||typeof ro=="number"&&oi.length>ro,hu=(0,d.useMemo)(function(){var lu=oi;return su?xr===null&&Sr?lu=oi:lu=oi.slice(0,Math.min(oi.length,ti/Ua)):typeof ro=="number"&&(lu=oi.slice(0,ro)),lu},[oi,Ua,xr,ro,su]),Js=(0,d.useMemo)(function(){return su?oi.slice(is+1):oi.slice(hu.length)},[oi,hu,su,is]),ys=(0,d.useCallback)(function(lu,Tu){var Vs;return typeof bi=="function"?bi(lu):(Vs=bi&&lu?.[bi])!==null&&Vs!==void 0?Vs:Tu},[bi]),qo=(0,d.useCallback)(ki||function(lu){return lu},[ki]);function Ps(lu,Tu){fs(lu),Tu||(Yu(lu<oi.length-1),Tr?.(lu))}function Ws(lu,Tu){Wr(Tu.clientWidth)}function Qo(lu,Tu){da(function(Vs){var Ds=new Map(Vs);return Tu===null?Ds.delete(lu):Ds.set(lu,Tu),Ds})}function ds(lu,Tu){co(Tu),mo(ca)}function zu(lu,Tu){ko(Tu)}function tu(lu){return _i.get(ys(hu[lu],lu))}d.useLayoutEffect(function(){if(ti&&Xu&&hu){var lu=Ea,Tu=hu.length,Vs=Tu-1;if(!Tu){Ps(0),ls(null);return}for(var Ds=0;Ds<Tu;Ds+=1){var Ks=tu(Ds);if(Ks===void 0){Ps(Ds-1,!0);break}if(lu+=Ks,Vs===0&&lu<=ti||Ds===Vs-1&&lu+tu(Vs)<=ti){Ps(Vs),ls(null);break}else if(lu+Xu>ti){Ps(Ds-1),ls(lu-Ks-Ea+ca);break}}un&&tu(0)+Ea>ti&&ls(null)}},[ti,_i,ca,Ea,ys,hu]);var Ou=du&&!!Js.length,Hs={};rs!==null&&su&&(Hs={position:"absolute",left:rs,top:0});var pu={prefixCls:$u,responsive:su,component:sr,invalidate:Pu},ku=ri?function(lu,Tu){var Vs=ys(lu,Tu);return d.createElement(k.Provider,{key:Vs,value:(0,h.Z)((0,h.Z)({},pu),{},{order:Tu,item:lu,itemKey:Vs,registerSize:Qo,display:Tu<=is})},ri(lu,Tu))}:function(lu,Tu){var Vs=ys(lu,Tu);return d.createElement(X,(0,i.Z)({},pu,{order:Tu,key:Vs,item:lu,renderItem:qo,itemKey:Vs,registerSize:Qo,display:Tu<=is}))},Nu,Fu={order:Ou?is:Number.MAX_SAFE_INTEGER,className:"".concat($u,"-rest"),registerSize:ds,display:Ou};if(Nt)Nt&&(Nu=d.createElement(k.Provider,{value:(0,h.Z)((0,h.Z)({},pu),Fu)},Nt(Js)));else{var Ku=Pe||pe;Nu=d.createElement(X,(0,i.Z)({},pu,Fu),typeof Ku=="function"?Ku(Js):Ku)}var sl=d.createElement(zn,(0,i.Z)({className:E()(!Pu&&In,Qi),style:Va,ref:Nn},Br),hu.map(ku),Lu?Nu:null,un&&d.createElement(X,(0,i.Z)({},pu,{order:is,className:"".concat($u,"-suffix"),registerSize:zu,display:!0,style:Hs}),un));return su&&(sl=d.createElement(_.Z,{onResize:Ws},sl)),sl}var G=d.forwardRef(ce);G.displayName="Overflow",G.Item=$,G.RESPONSIVE=F,G.INVALIDATE=V;const ie=G;var fe=function(Nn){var tr=Nn.className,In=Nn.customizeIcon,di=Nn.customizeIconProps,oi=Nn.onMouseDown,ki=Nn.onClick,ri=Nn.children,bi;return typeof In=="function"?bi=In(di):bi=In,d.createElement("span",{className:tr,onMouseDown:function(Ua){Ua.preventDefault(),oi&&oi(Ua)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ki,"aria-hidden":!0},bi!==void 0?bi:d.createElement("span",{className:E()(tr.split(/\s+/).map(function(_n){return"".concat(_n,"-icon")}))},ri))};const Se=fe;var he=function(Nn,tr){var In,di,oi=Nn.prefixCls,ki=Nn.id,ri=Nn.inputElement,bi=Nn.disabled,_n=Nn.tabIndex,Ua=Nn.autoFocus,va=Nn.autoComplete,Va=Nn.editable,Qi=Nn.activeDescendantId,ro=Nn.value,Pe=Nn.maxLength,Nt=Nn.onKeyDown,un=Nn.onMouseDown,xn=Nn.onChange,zn=Nn.onPaste,sr=Nn.onCompositionStart,Tr=Nn.onCompositionEnd,Br=Nn.open,Er=Nn.attrs,Sr=ri||d.createElement("input",null),Vr=Sr,fi=Vr.ref,xr=Vr.props,Wr=xr.onKeyDown,ti=xr.onChange,xi=xr.onMouseDown,Gi=xr.onCompositionStart,_i=xr.onCompositionEnd,da=xr.style;return(0,y.Kp)(!("maxLength"in Sr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Sr=d.cloneElement(Sr,(0,h.Z)((0,h.Z)((0,h.Z)({type:"search"},xr),{},{id:ki,ref:(0,P.sQ)(tr,fi),disabled:bi,tabIndex:_n,autoComplete:va||"off",autoFocus:Ua,className:E()("".concat(oi,"-selection-search-input"),(In=Sr)===null||In===void 0||(di=In.props)===null||di===void 0?void 0:di.className),role:"combobox","aria-expanded":Br,"aria-haspopup":"listbox","aria-owns":"".concat(ki,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ki,"_list"),"aria-activedescendant":Qi},Er),{},{value:Va?ro:"",maxLength:Pe,readOnly:!Va,unselectable:Va?null:"on",style:(0,h.Z)((0,h.Z)({},da),{},{opacity:Va?null:0}),onKeyDown:function(Pa){Nt(Pa),Wr&&Wr(Pa)},onMouseDown:function(Pa){un(Pa),xi&&xi(Pa)},onChange:function(Pa){xn(Pa),ti&&ti(Pa)},onCompositionStart:function(Pa){sr(Pa),Gi&&Gi(Pa)},onCompositionEnd:function(Pa){Tr(Pa),_i&&_i(Pa)},onPaste:zn})),Sr},me=d.forwardRef(he);me.displayName="Input";const _e=me;function we(an){return Array.isArray(an)?an:an!==void 0?[an]:[]}var Ge=typeof window<"u"&&window.document&&window.document.documentElement,ht=Ge;function nt(an){return an!=null}function Re(an){return["string","number"].includes((0,p.Z)(an))}function ue(an){var Nn=void 0;return an&&(Re(an.title)?Nn=an.title.toString():Re(an.label)&&(Nn=an.label.toString())),Nn}function ae(an,Nn){ht?d.useLayoutEffect(an,Nn):d.useEffect(an,Nn)}function ve(an){var Nn;return(Nn=an.key)!==null&&Nn!==void 0?Nn:an.value}var Me=function(Nn){Nn.preventDefault(),Nn.stopPropagation()},Ye=function(Nn){var tr=Nn.id,In=Nn.prefixCls,di=Nn.values,oi=Nn.open,ki=Nn.searchValue,ri=Nn.autoClearSearchValue,bi=Nn.inputRef,_n=Nn.placeholder,Ua=Nn.disabled,va=Nn.mode,Va=Nn.showSearch,Qi=Nn.autoFocus,ro=Nn.autoComplete,Pe=Nn.activeDescendantId,Nt=Nn.tabIndex,un=Nn.removeIcon,xn=Nn.maxTagCount,zn=Nn.maxTagTextLength,sr=Nn.maxTagPlaceholder,Tr=sr===void 0?function(ls){return"+ ".concat(ls.length," ...")}:sr,Br=Nn.tagRender,Er=Nn.onToggleOpen,Sr=Nn.onRemove,Vr=Nn.onInputChange,fi=Nn.onInputPaste,xr=Nn.onInputKeyDown,Wr=Nn.onInputMouseDown,ti=Nn.onInputCompositionStart,xi=Nn.onInputCompositionEnd,Gi=d.useRef(null),_i=(0,d.useState)(0),da=(0,u.Z)(_i,2),Sa=da[0],Pa=da[1],oo=(0,d.useState)(!1),mo=(0,u.Z)(oo,2),Ga=mo[0],no=mo[1],ca="".concat(In,"-selection"),co=oi||va==="multiple"&&ri===!1||va==="tags"?ki:"",Yo=va==="tags"||va==="multiple"&&ri===!1||Va&&(oi||Ga);ae(function(){Pa(Gi.current.scrollWidth)},[co]);function bo(ls,Ss,cs,Do,fs){return d.createElement("span",{className:E()("".concat(ca,"-item"),(0,l.Z)({},"".concat(ca,"-item-disabled"),cs)),title:ue(ls)},d.createElement("span",{className:"".concat(ca,"-item-content")},Ss),Do&&d.createElement(Se,{className:"".concat(ca,"-item-remove"),onMouseDown:Me,onClick:fs,customizeIcon:un},"\xD7"))}function Ea(ls,Ss,cs,Do,fs){var is=function(Qs){Me(Qs),Er(!oi)};return d.createElement("span",{onMouseDown:is},Br({label:Ss,value:ls,disabled:cs,closable:Do,onClose:fs}))}function ko(ls){var Ss=ls.disabled,cs=ls.label,Do=ls.value,fs=!Ua&&!Ss,is=cs;if(typeof zn=="number"&&(typeof cs=="string"||typeof cs=="number")){var Os=String(is);Os.length>zn&&(is="".concat(Os.slice(0,zn),"..."))}var Qs=function(Yu){Yu&&Yu.stopPropagation(),Sr(ls)};return typeof Br=="function"?Ea(Do,is,Ss,fs,Qs):bo(ls,is,Ss,fs,Qs)}function Es(ls){var Ss=typeof Tr=="function"?Tr(ls):Tr;return bo({title:Ss},Ss,!1)}var Ts=d.createElement("div",{className:"".concat(ca,"-search"),style:{width:Sa},onFocus:function(){no(!0)},onBlur:function(){no(!1)}},d.createElement(_e,{ref:bi,open:oi,prefixCls:In,id:tr,inputElement:null,disabled:Ua,autoFocus:Qi,autoComplete:ro,editable:Yo,activeDescendantId:Pe,value:co,onKeyDown:xr,onMouseDown:Wr,onChange:Vr,onPaste:fi,onCompositionStart:ti,onCompositionEnd:xi,tabIndex:Nt,attrs:(0,K.Z)(Nn,!0)}),d.createElement("span",{ref:Gi,className:"".concat(ca,"-search-mirror"),"aria-hidden":!0},co,"\xA0")),rs=d.createElement(ie,{prefixCls:"".concat(ca,"-overflow"),data:di,renderItem:ko,renderRest:Es,suffix:Ts,itemKey:ve,maxCount:xn});return d.createElement(d.Fragment,null,rs,!di.length&&!co&&d.createElement("span",{className:"".concat(ca,"-placeholder")},_n))};const qe=Ye;var At=function(Nn){var tr=Nn.inputElement,In=Nn.prefixCls,di=Nn.id,oi=Nn.inputRef,ki=Nn.disabled,ri=Nn.autoFocus,bi=Nn.autoComplete,_n=Nn.activeDescendantId,Ua=Nn.mode,va=Nn.open,Va=Nn.values,Qi=Nn.placeholder,ro=Nn.tabIndex,Pe=Nn.showSearch,Nt=Nn.searchValue,un=Nn.activeValue,xn=Nn.maxLength,zn=Nn.onInputKeyDown,sr=Nn.onInputMouseDown,Tr=Nn.onInputChange,Br=Nn.onInputPaste,Er=Nn.onInputCompositionStart,Sr=Nn.onInputCompositionEnd,Vr=Nn.title,fi=d.useState(!1),xr=(0,u.Z)(fi,2),Wr=xr[0],ti=xr[1],xi=Ua==="combobox",Gi=xi||Pe,_i=Va[0],da=Nt||"";xi&&un&&!Wr&&(da=un),d.useEffect(function(){xi&&ti(!1)},[xi,un]);var Sa=Ua!=="combobox"&&!va&&!Pe?!1:!!da,Pa=Vr===void 0?ue(_i):Vr,oo=function(){if(_i)return null;var Ga=Sa?{visibility:"hidden"}:void 0;return d.createElement("span",{className:"".concat(In,"-selection-placeholder"),style:Ga},Qi)};return d.createElement(d.Fragment,null,d.createElement("span",{className:"".concat(In,"-selection-search")},d.createElement(_e,{ref:oi,prefixCls:In,id:di,open:va,inputElement:tr,disabled:ki,autoFocus:ri,autoComplete:bi,editable:Gi,activeDescendantId:_n,value:da,onKeyDown:zn,onMouseDown:sr,onChange:function(Ga){ti(!0),Tr(Ga)},onPaste:Br,onCompositionStart:Er,onCompositionEnd:Sr,tabIndex:ro,attrs:(0,K.Z)(Nn,!0),maxLength:xi?xn:void 0})),!xi&&_i?d.createElement("span",{className:"".concat(In,"-selection-item"),title:Pa,style:Sa?{visibility:"hidden"}:void 0},_i.label):null,oo())};const It=At;function Ce(an){return![x.Z.ESC,x.Z.SHIFT,x.Z.BACKSPACE,x.Z.TAB,x.Z.WIN_KEY,x.Z.ALT,x.Z.META,x.Z.WIN_KEY_RIGHT,x.Z.CTRL,x.Z.SEMICOLON,x.Z.EQUALS,x.Z.CAPS_LOCK,x.Z.CONTEXT_MENU,x.Z.F1,x.Z.F2,x.Z.F3,x.Z.F4,x.Z.F5,x.Z.F6,x.Z.F7,x.Z.F8,x.Z.F9,x.Z.F10,x.Z.F11,x.Z.F12].includes(an)}var Ae=function(Nn,tr){var In=(0,d.useRef)(null),di=(0,d.useRef)(!1),oi=Nn.prefixCls,ki=Nn.open,ri=Nn.mode,bi=Nn.showSearch,_n=Nn.tokenWithEnter,Ua=Nn.autoClearSearchValue,va=Nn.onSearch,Va=Nn.onSearchSubmit,Qi=Nn.onToggleOpen,ro=Nn.onInputKeyDown,Pe=Nn.domRef;d.useImperativeHandle(tr,function(){return{focus:function(){In.current.focus()},blur:function(){In.current.blur()}}});var Nt=I(0),un=(0,u.Z)(Nt,2),xn=un[0],zn=un[1],sr=function(da){var Sa=da.which;(Sa===x.Z.UP||Sa===x.Z.DOWN)&&da.preventDefault(),ro&&ro(da),Sa===x.Z.ENTER&&ri==="tags"&&!di.current&&!ki&&Va?.(da.target.value),Ce(Sa)&&Qi(!0)},Tr=function(){zn(!0)},Br=(0,d.useRef)(null),Er=function(da){va(da,!0,di.current)!==!1&&Qi(!0)},Sr=function(){di.current=!0},Vr=function(da){di.current=!1,ri!=="combobox"&&Er(da.target.value)},fi=function(da){var Sa=da.target.value;if(_n&&Br.current&&/[\r\n]/.test(Br.current)){var Pa=Br.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Sa=Sa.replace(Pa,Br.current)}Br.current=null,Er(Sa)},xr=function(da){var Sa=da.clipboardData,Pa=Sa.getData("text");Br.current=Pa},Wr=function(da){var Sa=da.target;if(Sa!==In.current){var Pa=document.body.style.msTouchAction!==void 0;Pa?setTimeout(function(){In.current.focus()}):In.current.focus()}},ti=function(da){var Sa=xn();da.target!==In.current&&!Sa&&ri!=="combobox"&&da.preventDefault(),(ri!=="combobox"&&(!bi||!Sa)||!ki)&&(ki&&Ua!==!1&&va("",!0,!1),Qi())},xi={inputRef:In,onInputKeyDown:sr,onInputMouseDown:Tr,onInputChange:fi,onInputPaste:xr,onInputCompositionStart:Sr,onInputCompositionEnd:Vr},Gi=ri==="multiple"||ri==="tags"?d.createElement(qe,(0,i.Z)({},Nn,xi)):d.createElement(It,(0,i.Z)({},Nn,xi));return d.createElement("div",{ref:Pe,className:"".concat(oi,"-selector"),onClick:Wr,onMouseDown:ti},Gi)},$e=d.forwardRef(Ae);$e.displayName="Selector";const tt=$e;var ke=t(35094),Oe=t(89898),je=t.n(Oe),Et=t(79401),ct=t(27473);function ut(an){return an instanceof HTMLElement||an instanceof SVGElement}function Ne(an){return ut(an)?an:an instanceof React.Component?ReactDOM.findDOMNode(an):null}function mt(an){var Nn=d.useRef();Nn.current=an;var tr=d.useCallback(function(){for(var In,di=arguments.length,oi=new Array(di),ki=0;ki<di;ki++)oi[ki]=arguments[ki];return(In=Nn.current)===null||In===void 0?void 0:In.call.apply(In,[Nn].concat(oi))},[]);return tr}function bt(){var an=(0,h.Z)({},f);return an.useId}var Gt=0;function hn(){}function Yt(an){var Nn=d.useState("ssr-id"),tr=(0,u.Z)(Nn,2),In=tr[0],di=tr[1],oi=bt(),ki=oi?.();return d.useEffect(function(){if(!oi){var ri=Gt;Gt+=1,di("rc_unique_".concat(ri))}},[]),an||ki||In}function Bt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Lt=Bt()?d.useLayoutEffect:d.useEffect;const zt=Lt;var Kt=function(Nn,tr){var In=React.useRef(!0);Lt(function(){if(!In.current)return Nn()},tr),Lt(function(){return In.current=!1,function(){In.current=!0}},[])};const vt=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var an=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(an)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(an?.substr(0,4))};var Ve={},lt=[],at=function(Nn){lt.push(Nn)};function Xt(an,Nn){if(!1)var tr}function rt(an,Nn){if(!1)var tr}function Rt(){Ve={}}function rn(an,Nn,tr){!Nn&&!Ve[tr]&&(an(!1,tr),Ve[tr]=!0)}function sn(an,Nn){rn(Xt,an,Nn)}function Jn(an,Nn){rn(rt,an,Nn)}sn.preMessage=at,sn.resetWarned=Rt,sn.noteOnce=Jn;const ze=null;var st=d.createContext(null);const en=st;function wt(an){return an?Array.isArray(an)?an:[an]:[]}function Ke(an,Nn,tr,In){return d.useMemo(function(){var di=wt(tr??Nn),oi=wt(In??Nn),ki=new Set(di),ri=new Set(oi);return an&&(ki.has("hover")&&(ki.delete("hover"),ki.add("click")),ri.has("hover")&&(ri.delete("hover"),ri.add("click"))),[ki,ri]},[an,Nn,tr,In])}const Ut=function(an){if(!an)return!1;if(an instanceof Element){if(an.offsetParent)return!0;if(an.getBBox){var Nn=an.getBBox(),tr=Nn.width,In=Nn.height;if(tr||In)return!0}if(an.getBoundingClientRect){var di=an.getBoundingClientRect(),oi=di.width,ki=di.height;if(oi||ki)return!0}}return!1};function on(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],tr=arguments.length>2?arguments[2]:void 0;return tr?an[0]===Nn[0]:an[0]===Nn[0]&&an[1]===Nn[1]}function Tn(an,Nn,tr,In){for(var di=tr.points,oi=Object.keys(an),ki=0;ki<oi.length;ki+=1){var ri,bi=oi[ki];if(on((ri=an[bi])===null||ri===void 0?void 0:ri.points,di,In))return"".concat(Nn,"-placement-").concat(bi)}return""}function An(an,Nn,tr,In){return Nn||(tr?{motionName:"".concat(an,"-").concat(tr)}:In?{motionName:In}:null)}function Zt(an){return an.ownerDocument.defaultView}function ot(an){for(var Nn=[],tr=an?.parentElement,In=["hidden","scroll","auto"];tr;){var di=Zt(tr).getComputedStyle(tr),oi=di.overflowX,ki=di.overflowY;(In.includes(oi)||In.includes(ki))&&Nn.push(tr),tr=tr.parentElement}return Nn}function We(an){return Number.isNaN(an)?1:an}function Ft(an,Nn){var tr=(0,h.Z)({},an);return(Nn||[]).forEach(function(In){if(!(In instanceof HTMLBodyElement)){var di=Zt(In).getComputedStyle(In),oi=di.position;if(oi!=="static"){var ki=In.getBoundingClientRect(),ri=In.offsetHeight,bi=In.clientHeight,_n=In.offsetWidth,Ua=In.clientWidth,va=We(Math.round(ki.width/_n*1e3)/1e3),Va=We(Math.round(ki.height/ri*1e3)/1e3),Qi=(_n-Ua)*va,ro=(ri-bi)*Va,Pe=ki.x+ki.width-Qi,Nt=ki.y+ki.height-ro;tr.left=Math.max(tr.left,ki.x),tr.top=Math.max(tr.top,ki.y),tr.right=Math.min(tr.right,Pe),tr.bottom=Math.min(tr.bottom,Nt)}}}),tr}function it(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[an[0],an[1]]}function qt(an,Nn){var tr=Nn[0],In=Nn[1],di,oi;return tr==="t"?oi=an.y:tr==="b"?oi=an.y+an.height:oi=an.y+an.height/2,In==="l"?di=an.x:In==="r"?di=an.x+an.width:di=an.x+an.width/2,{x:di,y:oi}}function vn(an,Nn){var tr={t:"b",b:"t",l:"r",r:"l"};return an.map(function(In,di){return di===Nn?tr[In]||"c":In}).join("")}function fn(an,Nn,tr,In,di,oi,ki){var ri=d.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:di[In]||{}}),bi=(0,u.Z)(ri,2),_n=bi[0],Ua=bi[1],va=d.useRef(0),Va=d.useMemo(function(){return Nn?ot(Nn):[]},[Nn]),Qi=d.useRef({}),ro=function(){Qi.current={}};an||ro();var Pe=mt(function(){if(Nn&&tr&&an){let ul=function(lf,vc){var yl=fi.x+lf,cf=fi.y+vc,_l=yl+Ga,qu=cf+mo,ic=Math.max(yl,co.left),jl=Math.max(cf,co.top),lc=Math.min(_l,co.right),Rl=Math.min(qu,co.bottom);return Math.max(0,(lc-ic)*(Rl-jl))},fc=function(){Ku=fi.y+Ps,sl=Ku+mo,lu=fi.x+qo,Tu=lu+Ga};var xn=Nn,zn=xn.style.left,sr=xn.style.top,Tr=xn.ownerDocument,Br=Zt(xn),Er=(0,h.Z)((0,h.Z)({},di[In]),oi);xn.style.left="0",xn.style.top="0";var Sr;if(Array.isArray(tr))Sr={x:tr[0],y:tr[1],width:0,height:0};else{var Vr=tr.getBoundingClientRect();Sr={x:Vr.x,y:Vr.y,width:Vr.width,height:Vr.height}}var fi=xn.getBoundingClientRect(),xr=Br.getComputedStyle(xn),Wr=xr.width,ti=xr.height,xi=Tr.documentElement,Gi=xi.clientWidth,_i=xi.clientHeight,da=xi.scrollWidth,Sa=xi.scrollHeight,Pa=xi.scrollTop,oo=xi.scrollLeft,mo=fi.height,Ga=fi.width,no=Sr.height,ca=Sr.width,co=Er.htmlRegion==="scroll"?{left:-oo,top:-Pa,right:da-oo,bottom:Sa-Pa}:{left:0,top:0,right:Gi,bottom:_i};co=Ft(co,Va),xn.style.left=zn,xn.style.top=sr;var Yo=We(Math.round(Ga/parseFloat(Wr)*1e3)/1e3),bo=We(Math.round(mo/parseFloat(ti)*1e3)/1e3);if(Yo===0||bo===0||ut(tr)&&!Ut(tr))return;var Ea=Er.offset,ko=Er.targetOffset,Es=Ea||[],Ts=(0,u.Z)(Es,2),rs=Ts[0],ls=rs===void 0?0:rs,Ss=Ts[1],cs=Ss===void 0?0:Ss,Do=ko||[],fs=(0,u.Z)(Do,2),is=fs[0],Os=is===void 0?0:is,Qs=fs[1],du=Qs===void 0?0:Qs;Sr.x+=Os,Sr.y+=du;var Yu=Er.points||[],$u=(0,u.Z)(Yu,2),Xu=$u[0],su=$u[1],Pu=it(su),Lu=it(Xu),hu=qt(Sr,Pu),Js=qt(fi,Lu),ys=(0,h.Z)({},Er),qo=hu.x-Js.x+ls,Ps=hu.y-Js.y+cs,Ws=ul(qo,Ps),Qo=qt(Sr,["t","l"]),ds=qt(fi,["t","l"]),zu=qt(Sr,["b","r"]),tu=qt(fi,["b","r"]),Ou=Er.overflow||{},Hs=Ou.adjustX,pu=Ou.adjustY,ku=Ou.shiftX,Nu=Ou.shiftY,Fu=function(vc){return typeof vc=="boolean"?vc:vc>=0},Ku,sl,lu,Tu;fc();var Vs=Fu(pu),Ds=Lu[0]===Pu[0];if(Vs&&Lu[0]==="t"&&(sl>co.bottom||Qi.current.bt)){var Ks=Ps;Ds?Ks-=mo-no:Ks=Qo.y-tu.y-cs,ul(qo,Ks)>=Ws?(Qi.current.bt=!0,Ps=Ks,ys.points=[vn(Lu,0),vn(Pu,0)]):Qi.current.bt=!1}if(Vs&&Lu[0]==="b"&&(Ku<co.top||Qi.current.tb)){var nu=Ps;Ds?nu+=mo-no:nu=zu.y-ds.y-cs,ul(qo,nu)>=Ws?(Qi.current.tb=!0,Ps=nu,ys.points=[vn(Lu,0),vn(Pu,0)]):Qi.current.tb=!1}var Ju=Fu(Hs),nl=Lu[1]===Pu[1];if(Ju&&Lu[1]==="l"&&(Tu>co.right||Qi.current.rl)){var ec=qo;nl?ec-=Ga-ca:ec=Qo.x-tu.x-ls,ul(ec,Ps)>=Ws?(Qi.current.rl=!0,qo=ec,ys.points=[vn(Lu,1),vn(Pu,1)]):Qi.current.rl=!1}if(Ju&&Lu[1]==="r"&&(lu<co.left||Qi.current.lr)){var Mc=qo;nl?Mc+=Ga-ca:Mc=zu.x-ds.x-ls,ul(Mc,Ps)>=Ws?(Qi.current.lr=!0,qo=Mc,ys.points=[vn(Lu,1),vn(Pu,1)]):Qi.current.lr=!1}fc();var hc=ku===!0?0:ku;typeof hc=="number"&&(lu<co.left&&(qo-=lu-co.left,Sr.x+ca<co.left+hc&&(qo+=Sr.x-co.left+ca-hc)),Tu>co.right&&(qo-=Tu-co.right,Sr.x>co.right-hc&&(qo+=Sr.x-co.right+hc)));var Ol=Nu===!0?0:Nu;typeof Ol=="number"&&(Ku<co.top&&(Ps-=Ku-co.top,Sr.y+no<co.top+Ol&&(Ps+=Sr.y-co.top+no-Ol)),sl>co.bottom&&(Ps-=sl-co.bottom,Sr.y>co.bottom-Ol&&(Ps+=Sr.y-co.bottom+Ol)));var Nl=fi.x+qo,wl=Nl+Ga,Fl=fi.y+Ps,rc=Fl+mo,Ic=Sr.x,kl=Ic+ca,Gc=Sr.y,$l=Gc+no,Ml=Math.max(Nl,Ic),zc=Math.min(wl,kl),tf=(Ml+zc)/2,_c=tf-Nl,Cc=Math.max(Fl,Gc),of=Math.min(rc,$l),Qc=(Cc+of)/2,sc=Qc-Fl;ki?.(Nn,ys),Ua({ready:!0,offsetX:qo/Yo,offsetY:Ps/bo,arrowX:_c/Yo,arrowY:sc/bo,scaleX:Yo,scaleY:bo,align:ys})}}),Nt=function(){va.current+=1;var zn=va.current;Promise.resolve().then(function(){va.current===zn&&Pe()})},un=function(){Ua(function(zn){return(0,h.Z)((0,h.Z)({},zn),{},{ready:!1})})};return zt(un,[In]),zt(function(){an||un()},[an]),[_n.ready,_n.offsetX,_n.offsetY,_n.arrowX,_n.arrowY,_n.scaleX,_n.scaleY,_n.align,Nt]}function Tt(an,Nn,tr,In){zt(function(){if(an&&Nn&&tr){let Ua=function(){In()};var di=Nn,oi=tr,ki=ot(di),ri=ot(oi),bi=Zt(oi),_n=new Set([bi].concat((0,s.Z)(ki),(0,s.Z)(ri)));return _n.forEach(function(va){va.addEventListener("scroll",Ua,{passive:!0})}),bi.addEventListener("resize",Ua,{passive:!0}),In(),function(){_n.forEach(function(va){va.removeEventListener("scroll",Ua),bi.removeEventListener("resize",Ua)})}}},[an,Nn,tr])}var dn=t(10357),mn=t(54660);function Kn(an,Nn,tr){var In=d.useRef({});return(!("value"in In.current)||tr(In.current.condition,Nn))&&(In.current.value=an(),In.current.condition=Nn),In.current.value}function Dn(an,Nn){typeof an=="function"?an(Nn):(0,p.Z)(an)==="object"&&an&&"current"in an&&(an.current=Nn)}function Vn(){for(var an=arguments.length,Nn=new Array(an),tr=0;tr<an;tr++)Nn[tr]=arguments[tr];var In=Nn.filter(function(di){return di});return In.length<=1?In[0]:function(di){Nn.forEach(function(oi){Dn(oi,di)})}}function or(){for(var an=arguments.length,Nn=new Array(an),tr=0;tr<an;tr++)Nn[tr]=arguments[tr];return Kn(function(){return Vn.apply(void 0,Nn)},Nn,function(In,di){return In.length===di.length&&In.every(function(oi,ki){return oi===di[ki]})})}function Qr(an){var Nn,tr,In=(0,mn.isMemo)(an)?an.type.type:an.type;return!(typeof In=="function"&&!((Nn=In.prototype)!==null&&Nn!==void 0&&Nn.render)||typeof an=="function"&&!((tr=an.prototype)!==null&&tr!==void 0&&tr.render))}function ni(an){var Nn=an.prefixCls,tr=an.align,In=an.arrowX,di=In===void 0?0:In,oi=an.arrowY,ki=oi===void 0?0:oi,ri=d.useRef();if(!tr||!tr.points)return null;var bi={position:"absolute"};if(tr.autoArrow!==!1){var _n=tr.points[0],Ua=tr.points[1],va=_n[0],Va=_n[1],Qi=Ua[0],ro=Ua[1];va===Qi||!["t","b"].includes(va)?bi.top=ki:va==="t"?bi.top=0:bi.bottom=0,Va===ro||!["l","r"].includes(Va)?bi.left=di:Va==="l"?bi.left=0:bi.right=0}return d.createElement("div",{ref:ri,className:"".concat(Nn,"-arrow"),style:bi})}function yr(an){var Nn=an.prefixCls,tr=an.open,In=an.zIndex,di=an.mask,oi=an.motion;return di?React.createElement(dn.Z,(0,i.Z)({},oi,{motionAppear:!0,visible:tr,removeOnLeave:!0}),function(ki){var ri=ki.className;return React.createElement("div",{style:{zIndex:In},className:je()("".concat(Nn,"-mask"),ri)})}):null}var si=d.memo(function(an){var Nn=an.children;return Nn},function(an,Nn){return Nn.cache});const Yr=si;var Ci=d.forwardRef(function(an,Nn){var tr=an.popup,In=an.className,di=an.prefixCls,oi=an.style,ki=an.target,ri=an.onVisibleChanged,bi=an.open,_n=an.keepDom,Ua=an.onClick,va=an.mask,Va=an.arrow,Qi=an.align,ro=an.arrowX,Pe=an.arrowY,Nt=an.motion,un=an.maskMotion,xn=an.forceRender,zn=an.getPopupContainer,sr=an.autoDestroy,Tr=an.portal,Br=an.zIndex,Er=an.onMouseEnter,Sr=an.onMouseLeave,Vr=an.ready,fi=an.offsetX,xr=an.offsetY,Wr=an.onAlign,ti=an.onPrepare,xi=an.stretch,Gi=an.targetWidth,_i=an.targetHeight,da=typeof tr=="function"?tr():tr,Sa=bi||_n,Pa=zn?.length>0,oo=d.useState(!zn||!Pa),mo=(0,u.Z)(oo,2),Ga=mo[0],no=mo[1];if(zt(function(){!Ga&&Pa&&ki&&no(!0)},[Ga,Pa,ki]),!Ga)return null;var ca=Vr||!bi?{left:fi,top:xr}:{left:"-1000vw",top:"-1000vh"},co={};return xi&&(xi.includes("height")&&_i?co.height=_i:xi.includes("minHeight")&&_i&&(co.minHeight=_i),xi.includes("width")&&Gi?co.width=Gi:xi.includes("minWidth")&&Gi&&(co.minWidth=Gi)),bi||(co.pointerEvents="none"),d.createElement(Tr,{open:xn||Sa,getContainer:zn&&function(){return zn(ki)},autoDestroy:sr},d.createElement(yr,{prefixCls:di,open:bi,zIndex:Br,mask:va,motion:un}),d.createElement(Et.Z,{onResize:Wr,disabled:!bi},function(Yo){return d.createElement(dn.Z,(0,i.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:xn,leavedClassName:"".concat(di,"-hidden")},Nt,{onAppearPrepare:ti,onEnterPrepare:ti,visible:bi,onVisibleChanged:function(Ea){var ko;Nt==null||(ko=Nt.onVisibleChanged)===null||ko===void 0||ko.call(Nt,Ea),ri(Ea)}}),function(bo,Ea){var ko=bo.className,Es=bo.style,Ts=je()(di,ko,In);return d.createElement("div",{ref:Vn(Yo,Nn,Ea),className:Ts,style:(0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)({},ca),co),Es),{},{boxSizing:"border-box",zIndex:Br},oi),onMouseEnter:Er,onMouseLeave:Sr,onClick:Ua},Va&&d.createElement(ni,{prefixCls:di,align:Qi,arrowX:ro,arrowY:Pe}),d.createElement(Yr,{cache:!bi},da))})}))});const Ni=Ci;var fa=d.forwardRef(function(an,Nn){var tr=an.children,In=an.getTriggerDOMNode,di=Qr(tr),oi=d.useCallback(function(ri){Dn(Nn,In?In(ri):ri)},[In]),ki=or(oi,tr.ref);return di?d.cloneElement(tr,{ref:ki}):tr});const ha=fa;var Ca=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function li(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ke.Z,Nn=d.forwardRef(function(tr,In){var di=tr.prefixCls,oi=di===void 0?"rc-trigger-popup":di,ki=tr.children,ri=tr.action,bi=ri===void 0?"hover":ri,_n=tr.showAction,Ua=tr.hideAction,va=tr.popupVisible,Va=tr.defaultPopupVisible,Qi=tr.onPopupVisibleChange,ro=tr.afterPopupVisibleChange,Pe=tr.mouseEnterDelay,Nt=tr.mouseLeaveDelay,un=Nt===void 0?.1:Nt,xn=tr.focusDelay,zn=tr.blurDelay,sr=tr.mask,Tr=tr.maskClosable,Br=Tr===void 0?!0:Tr,Er=tr.getPopupContainer,Sr=tr.forceRender,Vr=tr.autoDestroy,fi=tr.destroyPopupOnHide,xr=tr.popup,Wr=tr.popupClassName,ti=tr.popupStyle,xi=tr.popupPlacement,Gi=tr.builtinPlacements,_i=Gi===void 0?{}:Gi,da=tr.popupAlign,Sa=tr.zIndex,Pa=tr.stretch,oo=tr.getPopupClassNameFromAlign,mo=tr.alignPoint,Ga=tr.onPopupClick,no=tr.onPopupAlign,ca=tr.arrow,co=tr.popupMotion,Yo=tr.maskMotion,bo=tr.popupTransitionName,Ea=tr.popupAnimation,ko=tr.maskTransitionName,Es=tr.maskAnimation,Ts=tr.className,rs=tr.getTriggerDOMNode,ls=(0,v.Z)(tr,Ca),Ss=Vr||fi||!1,cs=d.useState(!1),Do=(0,u.Z)(cs,2),fs=Do[0],is=Do[1];zt(function(){is(vt())},[]);var Os=d.useRef({}),Qs=d.useContext(en),du=d.useMemo(function(){return{registerSubPopup:function(vl,Qu){Os.current[vl]=Qu,Qs?.registerSubPopup(vl,Qu)}}},[Qs]),Yu=Yt(),$u=d.useState(null),Xu=(0,u.Z)($u,2),su=Xu[0],Pu=Xu[1],Lu=mt(function(Bu){ut(Bu)&&su!==Bu&&Pu(Bu),Qs?.registerSubPopup(Yu,Bu)}),hu=d.useState(null),Js=(0,u.Z)(hu,2),ys=Js[0],qo=Js[1],Ps=mt(function(Bu){ut(Bu)&&ys!==Bu&&qo(Bu)}),Ws=d.Children.only(ki),Qo=Ws?.props||{},ds={},zu=mt(function(Bu){var vl,Qu,Vl=ys;return Vl?.contains(Bu)||(Vl==null||(vl=Vl.getRootNode())===null||vl===void 0?void 0:vl.host)===Bu||Bu===Vl||su?.contains(Bu)||(su==null||(Qu=su.getRootNode())===null||Qu===void 0?void 0:Qu.host)===Bu||Bu===su||Object.values(Os.current).some(function(Ul){return Ul?.contains(Bu)||Bu===Ul})}),tu=An(oi,co,Ea,bo),Ou=An(oi,Yo,Es,ko),Hs=d.useState(Va||!1),pu=(0,u.Z)(Hs,2),ku=pu[0],Nu=pu[1],Fu=va??ku,Ku=mt(function(Bu){va===void 0&&Nu(Bu)});zt(function(){Nu(va||!1)},[va]);var sl=d.useRef(Fu);sl.current=Fu;var lu=mt(function(Bu){Fu!==Bu&&(Ku(Bu),Qi?.(Bu))}),Tu=d.useRef(),Vs=function(){clearTimeout(Tu.current)},Ds=function(vl){var Qu=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Vs(),Qu===0?lu(vl):Tu.current=setTimeout(function(){lu(vl)},Qu*1e3)};d.useEffect(function(){return Vs},[]);var Ks=d.useState(!1),nu=(0,u.Z)(Ks,2),Ju=nu[0],nl=nu[1],ec=d.useRef(!0);zt(function(){(!ec.current||Fu)&&nl(!0),ec.current=!0},[Fu]);var Mc=d.useState(null),hc=(0,u.Z)(Mc,2),Ol=hc[0],Nl=hc[1],wl=d.useState([0,0]),Fl=(0,u.Z)(wl,2),rc=Fl[0],Ic=Fl[1],kl=function(vl){Ic([vl.clientX,vl.clientY])},Gc=fn(Fu,su,mo?rc:ys,xi,_i,da,no),$l=(0,u.Z)(Gc,9),Ml=$l[0],zc=$l[1],tf=$l[2],_c=$l[3],Cc=$l[4],of=$l[5],Qc=$l[6],sc=$l[7],ul=$l[8],fc=mt(function(){Ju||ul()});Tt(Fu,ys,su,fc),zt(function(){fc()},[rc]),zt(function(){Fu&&!(_i!=null&&_i[xi])&&fc()},[JSON.stringify(da)]);var lf=d.useMemo(function(){var Bu=Tn(_i,oi,sc,mo);return je()(Bu,oo?.(sc))},[sc,oo,_i,oi,mo]);d.useImperativeHandle(In,function(){return{forceAlign:fc}});var vc=function(vl){nl(!1),ul(),ro?.(vl)},yl=function(){return new Promise(function(vl){Nl(function(){return vl})})};zt(function(){Ol&&(ul(),Ol(),Nl(null))},[Ol]);var cf=d.useState(0),_l=(0,u.Z)(cf,2),qu=_l[0],ic=_l[1],jl=d.useState(0),lc=(0,u.Z)(jl,2),Rl=lc[0],al=lc[1],ll=function(vl,Qu){if(fc(),Pa){var Vl=Qu.getBoundingClientRect();ic(Vl.width),al(Vl.height)}},Wl=Ke(fs,bi,_n,Ua),dc=(0,u.Z)(Wl,2),Bl=dc[0],Pl=dc[1],Ll=function(vl,Qu,Vl,Ul){ds[vl]=function(gs){var pc;Ul?.(gs),Ds(Qu,Vl);for(var Hc=arguments.length,bf=new Array(Hc>1?Hc-1:0),Kc=1;Kc<Hc;Kc++)bf[Kc-1]=arguments[Kc];(pc=Qo[vl])===null||pc===void 0||pc.call.apply(pc,[Qo,gs].concat(bf))}},Oc=Bl.has("click"),kc=Pl.has("click")||Pl.has("contextMenu");(Oc||kc)&&(ds.onClick=function(Bu){var vl;sl.current&&kc?Ds(!1):!sl.current&&Oc&&(kl(Bu),Ds(!0));for(var Qu=arguments.length,Vl=new Array(Qu>1?Qu-1:0),Ul=1;Ul<Qu;Ul++)Vl[Ul-1]=arguments[Ul];(vl=Qo.onClick)===null||vl===void 0||vl.call.apply(vl,[Qo,Bu].concat(Vl))}),d.useEffect(function(){if(kc&&su&&(!sr||Br)){var Bu=function(pc){var Hc=pc.target;sl.current&&!zu(Hc)&&Ds(!1)},vl=Zt(su),Qu=ys?.getRootNode();vl.addEventListener("click",Bu);var Vl=Qu&&Qu!==ys.ownerDocument;if(Vl&&Qu.addEventListener("click",Bu),!1)var Ul;return function(){vl.removeEventListener("click",Bu),Vl&&Qu.removeEventListener("click",Bu)}}},[kc,ys,su,sr,Br]);var sf=Bl.has("hover"),Bc=Pl.has("hover"),Ef,Sf;sf&&(Ll("onMouseEnter",!0,Pe,function(Bu){kl(Bu)}),Ef=function(){Ds(!0,Pe)},mo&&(ds.onMouseMove=function(Bu){var vl;(vl=Qo.onMouseMove)===null||vl===void 0||vl.call(Qo,Bu)})),Bc&&(Ll("onMouseLeave",!1,un),Sf=function(){Ds(!1,un)}),Bl.has("focus")&&Ll("onFocus",!0,xn),Pl.has("focus")&&Ll("onBlur",!1,zn),Bl.has("contextMenu")&&(ds.onContextMenu=function(Bu){var vl;kl(Bu),Ds(!0),Bu.preventDefault();for(var Qu=arguments.length,Vl=new Array(Qu>1?Qu-1:0),Ul=1;Ul<Qu;Ul++)Vl[Ul-1]=arguments[Ul];(vl=Qo.onContextMenu)===null||vl===void 0||vl.call.apply(vl,[Qo,Bu].concat(Vl))}),Ts&&(ds.className=je()(Qo.className,Ts));var bc=(0,h.Z)((0,h.Z)({},Qo),ds),yf={},xc=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];xc.forEach(function(Bu){ls[Bu]&&(yf[Bu]=function(){for(var vl,Qu=arguments.length,Vl=new Array(Qu),Ul=0;Ul<Qu;Ul++)Vl[Ul]=arguments[Ul];(vl=bc[Bu])===null||vl===void 0||vl.call.apply(vl,[bc].concat(Vl)),ls[Bu].apply(ls,Vl)})});var Mf=d.cloneElement(Ws,(0,h.Z)((0,h.Z)({},bc),yf));return d.createElement(d.Fragment,null,d.createElement(Et.Z,{disabled:!Fu,ref:Ps,onResize:ll},d.createElement(ha,{getTriggerDOMNode:rs},Mf)),d.createElement(en.Provider,{value:du},d.createElement(Ni,{portal:an,ref:Lu,prefixCls:oi,popup:xr,className:je()(Wr,lf),style:ti,target:ys,onMouseEnter:Ef,onMouseLeave:Sf,zIndex:Sa,open:Fu,keepDom:Ju,onClick:Ga,mask:sr,motion:tu,maskMotion:Ou,onVisibleChanged:vc,onPrepare:yl,forceRender:Sr,autoDestroy:Ss,getPopupContainer:Er,align:sc,arrow:ca,ready:Ml,offsetX:zc,offsetY:tf,arrowX:_c,arrowY:Cc,onAlign:fc,stretch:Pa,targetWidth:qu/of,targetHeight:Rl/Qc})))});return Nn}const la=li(ke.Z);var Oa=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],wa=function(Nn){var tr=Nn===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:tr,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:tr,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:tr,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:tr,adjustY:1},htmlRegion:"scroll"}}},vo=function(Nn,tr){var In=Nn.prefixCls,di=Nn.disabled,oi=Nn.visible,ki=Nn.children,ri=Nn.popupElement,bi=Nn.containerWidth,_n=Nn.animation,Ua=Nn.transitionName,va=Nn.dropdownStyle,Va=Nn.dropdownClassName,Qi=Nn.direction,ro=Qi===void 0?"ltr":Qi,Pe=Nn.placement,Nt=Nn.builtinPlacements,un=Nn.dropdownMatchSelectWidth,xn=Nn.dropdownRender,zn=Nn.dropdownAlign,sr=Nn.getPopupContainer,Tr=Nn.empty,Br=Nn.getTriggerDOMNode,Er=Nn.onPopupVisibleChange,Sr=Nn.onPopupMouseEnter,Vr=(0,v.Z)(Nn,Oa),fi="".concat(In,"-dropdown"),xr=ri;xn&&(xr=xn(ri));var Wr=d.useMemo(function(){return Nt||wa(un)},[Nt,un]),ti=_n?"".concat(fi,"-").concat(_n):Ua,xi=d.useRef(null);d.useImperativeHandle(tr,function(){return{getPopupElement:function(){return xi.current}}});var Gi=(0,h.Z)({minWidth:bi},va);return typeof un=="number"?Gi.width=un:un&&(Gi.width=bi),d.createElement(la,(0,i.Z)({},Vr,{showAction:Er?["click"]:[],hideAction:Er?["click"]:[],popupPlacement:Pe||(ro==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Wr,prefixCls:fi,popupTransitionName:ti,popup:d.createElement("div",{ref:xi,onMouseEnter:Sr},xr),popupAlign:zn,popupVisible:oi,getPopupContainer:sr,popupClassName:E()(Va,(0,l.Z)({},"".concat(fi,"-empty"),Tr)),popupStyle:Gi,getTriggerDOMNode:Br,onPopupVisibleChange:Er}),ki)},Qn=d.forwardRef(vo);Qn.displayName="SelectTrigger";const _r=Qn;var $r=t(99995);function Ti(an,Nn){var tr=an.key,In;return"value"in an&&(In=an.value),tr??(In!==void 0?In:"rc-index-key-".concat(Nn))}function xt(an,Nn){var tr=an||{},In=tr.label,di=tr.value,oi=tr.options,ki=tr.groupLabel,ri=In||(Nn?"children":"label");return{label:ri,value:di||"value",options:oi||"options",groupLabel:ki||ri}}function On(an){var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tr=Nn.fieldNames,In=Nn.childrenAsData,di=[],oi=xt(tr,!1),ki=oi.label,ri=oi.value,bi=oi.options,_n=oi.groupLabel;function Ua(va,Va){va.forEach(function(Qi){if(Va||!(bi in Qi)){var ro=Qi[ri];di.push({key:Ti(Qi,di.length),groupOption:Va,data:Qi,label:Qi[ki],value:ro})}else{var Pe=Qi[_n];Pe===void 0&&In&&(Pe=Qi.label),di.push({key:Ti(Qi,di.length),group:!0,data:Qi,label:Pe}),Ua(Qi[bi],!0)}})}return Ua(an,!1),di}function Zn(an){var Nn=(0,h.Z)({},an);return"props"in Nn||Object.defineProperty(Nn,"props",{get:function(){return(0,y.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Nn}}),Nn}function Ur(an,Nn){if(!Nn||!Nn.length)return null;var tr=!1;function In(oi,ki){var ri=(0,$r.Z)(ki),bi=ri[0],_n=ri.slice(1);if(!bi)return[oi];var Ua=oi.split(bi);return tr=tr||Ua.length>1,Ua.reduce(function(va,Va){return[].concat((0,s.Z)(va),(0,s.Z)(In(Va,_n)))},[]).filter(function(va){return va})}var di=In(an,Nn);return tr?di:null}var En=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ln=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function jn(an){return an==="tags"||an==="multiple"}var rr=d.forwardRef(function(an,Nn){var tr,In,di=an.id,oi=an.prefixCls,ki=an.className,ri=an.showSearch,bi=an.tagRender,_n=an.direction,Ua=an.omitDomProps,va=an.displayValues,Va=an.onDisplayValuesChange,Qi=an.emptyOptions,ro=an.notFoundContent,Pe=ro===void 0?"Not Found":ro,Nt=an.onClear,un=an.mode,xn=an.disabled,zn=an.loading,sr=an.getInputElement,Tr=an.getRawInputElement,Br=an.open,Er=an.defaultOpen,Sr=an.onDropdownVisibleChange,Vr=an.activeValue,fi=an.onActiveValueChange,xr=an.activeDescendantId,Wr=an.searchValue,ti=an.autoClearSearchValue,xi=an.onSearch,Gi=an.onSearchSplit,_i=an.tokenSeparators,da=an.allowClear,Sa=an.showArrow,Pa=an.inputIcon,oo=an.clearIcon,mo=an.OptionList,Ga=an.animation,no=an.transitionName,ca=an.dropdownStyle,co=an.dropdownClassName,Yo=an.dropdownMatchSelectWidth,bo=an.dropdownRender,Ea=an.dropdownAlign,ko=an.placement,Es=an.builtinPlacements,Ts=an.getPopupContainer,rs=an.showAction,ls=rs===void 0?[]:rs,Ss=an.onFocus,cs=an.onBlur,Do=an.onKeyUp,fs=an.onKeyDown,is=an.onMouseDown,Os=(0,v.Z)(an,En),Qs=jn(un),du=(ri!==void 0?ri:Qs)||un==="combobox",Yu=(0,h.Z)({},Os);ln.forEach(function(al){delete Yu[al]}),Ua?.forEach(function(al){delete Yu[al]});var $u=d.useState(!1),Xu=(0,u.Z)($u,2),su=Xu[0],Pu=Xu[1];d.useEffect(function(){Pu(w())},[]);var Lu=d.useRef(null),hu=d.useRef(null),Js=d.useRef(null),ys=d.useRef(null),qo=d.useRef(null),Ps=A(),Ws=(0,u.Z)(Ps,3),Qo=Ws[0],ds=Ws[1],zu=Ws[2];d.useImperativeHandle(Nn,function(){var al,ll;return{focus:(al=ys.current)===null||al===void 0?void 0:al.focus,blur:(ll=ys.current)===null||ll===void 0?void 0:ll.blur,scrollTo:function(dc){var Bl;return(Bl=qo.current)===null||Bl===void 0?void 0:Bl.scrollTo(dc)}}});var tu=d.useMemo(function(){var al;if(un!=="combobox")return Wr;var ll=(al=va[0])===null||al===void 0?void 0:al.value;return typeof ll=="string"||typeof ll=="number"?String(ll):""},[Wr,un,va]),Ou=un==="combobox"&&typeof sr=="function"&&sr()||null,Hs=typeof Tr=="function"&&Tr(),pu=(0,P.x1)(hu,Hs==null||(tr=Hs.props)===null||tr===void 0?void 0:tr.ref),ku=d.useState(!1),Nu=(0,u.Z)(ku,2),Fu=Nu[0],Ku=Nu[1];(0,S.Z)(function(){Ku(!0)},[]);var sl=g(!1,{defaultValue:Er,value:Br}),lu=(0,u.Z)(sl,2),Tu=lu[0],Vs=lu[1],Ds=Fu?Tu:!1,Ks=!Pe&&Qi;(xn||Ks&&Ds&&un==="combobox")&&(Ds=!1);var nu=Ks?!1:Ds,Ju=d.useCallback(function(al){var ll=al!==void 0?al:!Ds;xn||(Vs(ll),Ds!==ll&&Sr?.(ll))},[xn,Ds,Vs,Sr]),nl=d.useMemo(function(){return(_i||[]).some(function(al){return[` `,`\r `].includes(al)})},[_i]),ec=function(ll,Wl,dc){var Bl=!0,Pl=ll;fi?.(null);var Ll=dc?null:Ur(ll,_i);return un!=="combobox"&&Ll&&(Pl="",Gi?.(Ll),Ju(!1),Bl=!1),xi&&tu!==Pl&&xi(Pl,{source:Wl?"typing":"effect"}),Bl},Mc=function(ll){!ll||!ll.trim()||xi(ll,{source:"submit"})};d.useEffect(function(){!Ds&&!Qs&&un!=="combobox"&&ec("",!1,!1)},[Ds]),d.useEffect(function(){Tu&&xn&&Vs(!1),xn&&ds(!1)},[xn]);var hc=I(),Ol=(0,u.Z)(hc,2),Nl=Ol[0],wl=Ol[1],Fl=function(ll){var Wl=Nl(),dc=ll.which;if(dc===x.Z.ENTER&&(un!=="combobox"&&ll.preventDefault(),Ds||Ju(!0)),wl(!!tu),dc===x.Z.BACKSPACE&&!Wl&&Qs&&!tu&&va.length){for(var Bl=(0,s.Z)(va),Pl=null,Ll=Bl.length-1;Ll>=0;Ll-=1){var Oc=Bl[Ll];if(!Oc.disabled){Bl.splice(Ll,1),Pl=Oc;break}}Pl&&Va(Bl,{type:"remove",values:[Pl]})}for(var kc=arguments.length,sf=new Array(kc>1?kc-1:0),Bc=1;Bc<kc;Bc++)sf[Bc-1]=arguments[Bc];if(Ds&&qo.current){var Ef;(Ef=qo.current).onKeyDown.apply(Ef,[ll].concat(sf))}fs?.apply(void 0,[ll].concat(sf))},rc=function(ll){for(var Wl=arguments.length,dc=new Array(Wl>1?Wl-1:0),Bl=1;Bl<Wl;Bl++)dc[Bl-1]=arguments[Bl];if(Ds&&qo.current){var Pl;(Pl=qo.current).onKeyUp.apply(Pl,[ll].concat(dc))}Do?.apply(void 0,[ll].concat(dc))},Ic=function(ll){var Wl=va.filter(function(dc){return dc!==ll});Va(Wl,{type:"remove",values:[ll]})},kl=d.useRef(!1),Gc=function(){ds(!0),xn||(Ss&&!kl.current&&Ss.apply(void 0,arguments),ls.includes("focus")&&Ju(!0)),kl.current=!0},$l=function(){ds(!1,function(){kl.current=!1,Ju(!1)}),!xn&&(tu&&(un==="tags"?xi(tu,{source:"submit"}):un==="multiple"&&xi("",{source:"blur"})),cs&&cs.apply(void 0,arguments))},Ml=[];d.useEffect(function(){return function(){Ml.forEach(function(al){return clearTimeout(al)}),Ml.splice(0,Ml.length)}},[]);var zc=function(ll){var Wl,dc=ll.target,Bl=(Wl=Js.current)===null||Wl===void 0?void 0:Wl.getPopupElement();if(Bl&&Bl.contains(dc)){var Pl=setTimeout(function(){var sf=Ml.indexOf(Pl);if(sf!==-1&&Ml.splice(sf,1),zu(),!su&&!Bl.contains(document.activeElement)){var Bc;(Bc=ys.current)===null||Bc===void 0||Bc.focus()}});Ml.push(Pl)}for(var Ll=arguments.length,Oc=new Array(Ll>1?Ll-1:0),kc=1;kc<Ll;kc++)Oc[kc-1]=arguments[kc];is?.apply(void 0,[ll].concat(Oc))},tf=d.useState(null),_c=(0,u.Z)(tf,2),Cc=_c[0],of=_c[1],Qc=d.useState({}),sc=(0,u.Z)(Qc,2),ul=sc[1];function fc(){ul({})}(0,S.Z)(function(){if(nu){var al,ll=Math.ceil((al=Lu.current)===null||al===void 0?void 0:al.offsetWidth);Cc!==ll&&!Number.isNaN(ll)&&of(ll)}},[nu]);var lf;Hs&&(lf=function(ll){Ju(ll)}),N(function(){var al;return[Lu.current,(al=Js.current)===null||al===void 0?void 0:al.getPopupElement()]},nu,Ju,!!Hs);var vc=d.useMemo(function(){return(0,h.Z)((0,h.Z)({},an),{},{notFoundContent:Pe,open:Ds,triggerOpen:nu,id:di,showSearch:du,multiple:Qs,toggleOpen:Ju})},[an,Pe,nu,Ds,di,du,Qs,Ju]),yl=Sa!==void 0?Sa:zn||!Qs&&un!=="combobox",cf;yl&&(cf=d.createElement(Se,{className:E()("".concat(oi,"-arrow"),(0,l.Z)({},"".concat(oi,"-arrow-loading"),zn)),customizeIcon:Pa,customizeIconProps:{loading:zn,searchValue:tu,open:Ds,focused:Qo,showSearch:du}}));var _l,qu=function(){var ll;Nt?.(),(ll=ys.current)===null||ll===void 0||ll.focus(),Va([],{type:"clear",values:va}),ec("",!1,!1)};!xn&&da&&(va.length||tu)&&!(un==="combobox"&&tu==="")&&(_l=d.createElement(Se,{className:"".concat(oi,"-clear"),onMouseDown:qu,customizeIcon:oo},"\xD7"));var ic=d.createElement(mo,{ref:qo}),jl=E()(oi,ki,(In={},(0,l.Z)(In,"".concat(oi,"-focused"),Qo),(0,l.Z)(In,"".concat(oi,"-multiple"),Qs),(0,l.Z)(In,"".concat(oi,"-single"),!Qs),(0,l.Z)(In,"".concat(oi,"-allow-clear"),da),(0,l.Z)(In,"".concat(oi,"-show-arrow"),yl),(0,l.Z)(In,"".concat(oi,"-disabled"),xn),(0,l.Z)(In,"".concat(oi,"-loading"),zn),(0,l.Z)(In,"".concat(oi,"-open"),Ds),(0,l.Z)(In,"".concat(oi,"-customize-input"),Ou),(0,l.Z)(In,"".concat(oi,"-show-search"),du),In)),lc=d.createElement(_r,{ref:Js,disabled:xn,prefixCls:oi,visible:nu,popupElement:ic,containerWidth:Cc,animation:Ga,transitionName:no,dropdownStyle:ca,dropdownClassName:co,direction:_n,dropdownMatchSelectWidth:Yo,dropdownRender:bo,dropdownAlign:Ea,placement:ko,builtinPlacements:Es,getPopupContainer:Ts,empty:Qi,getTriggerDOMNode:function(){return hu.current},onPopupVisibleChange:lf,onPopupMouseEnter:fc},Hs?d.cloneElement(Hs,{ref:pu}):d.createElement(tt,(0,i.Z)({},an,{domRef:hu,prefixCls:oi,inputElement:Ou,ref:ys,id:di,showSearch:du,autoClearSearchValue:ti,mode:un,activeDescendantId:xr,tagRender:bi,values:va,open:Ds,onToggleOpen:Ju,activeValue:Vr,searchValue:tu,onSearch:ec,onSearchSubmit:Mc,onRemove:Ic,tokenWithEnter:nl}))),Rl;return Hs?Rl=lc:Rl=d.createElement("div",(0,i.Z)({className:jl},Yu,{ref:Lu,onMouseDown:zc,onKeyDown:Fl,onKeyUp:rc,onFocus:Gc,onBlur:$l}),Qo&&!Ds&&d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(va.map(function(al){var ll=al.label,Wl=al.value;return["number","string"].includes((0,p.Z)(ll))?ll:Wl}).join(", "))),lc,cf,_l),d.createElement(R.Provider,{value:vc},Rl)});const Mr=rr,Ir=function(an,Nn){var tr=d.useRef({values:new Map,options:new Map}),In=d.useMemo(function(){var oi=tr.current,ki=oi.values,ri=oi.options,bi=an.map(function(va){if(va.label===void 0){var Va;return(0,h.Z)((0,h.Z)({},va),{},{label:(Va=ki.get(va.value))===null||Va===void 0?void 0:Va.label})}return va}),_n=new Map,Ua=new Map;return bi.forEach(function(va){_n.set(va.value,va),Ua.set(va.value,Nn.get(va.value)||ri.get(va.value))}),tr.current.values=_n,tr.current.options=Ua,bi},[an,Nn]),di=d.useCallback(function(oi){return Nn.get(oi)||tr.current.options.get(oi)},[Nn]);return[In,di]};function Zr(an,Nn){return we(an).join("").toUpperCase().includes(Nn)}const lr=function(an,Nn,tr,In,di){return d.useMemo(function(){if(!tr||In===!1)return an;var oi=Nn.options,ki=Nn.label,ri=Nn.value,bi=[],_n=typeof In=="function",Ua=tr.toUpperCase(),va=_n?In:function(Qi,ro){return di?Zr(ro[di],Ua):ro[oi]?Zr(ro[ki!=="children"?ki:"label"],Ua):Zr(ro[ri],Ua)},Va=_n?function(Qi){return Zn(Qi)}:function(Qi){return Qi};return an.forEach(function(Qi){if(Qi[oi]){var ro=va(tr,Va(Qi));if(ro)bi.push(Qi);else{var Pe=Qi[oi].filter(function(Nt){return va(tr,Va(Nt))});Pe.length&&bi.push((0,h.Z)((0,h.Z)({},Qi),{},(0,l.Z)({},oi,Pe)))}return}va(tr,Va(Qi))&&bi.push(Qi)}),bi},[an,In,di,tr,Nn])};var Jr=t(42759),pi=0,Ri=(0,Jr.Z)();function Ki(){var an;return Ri?(an=pi,pi+=1):an="TEST_OR_SSR",an}function ia(an){var Nn=d.useState(),tr=(0,u.Z)(Nn,2),In=tr[0],di=tr[1];return d.useEffect(function(){di("rc_select_".concat(Ki()))},[]),an||In}var Da=t(32820),to=["children","value"],ao=["children"];function Bo(an){var Nn=an,tr=Nn.key,In=Nn.props,di=In.children,oi=In.value,ki=(0,v.Z)(In,to);return(0,h.Z)({key:tr,value:oi!==void 0?oi:tr,children:di},ki)}function jo(an){var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Da.Z)(an).map(function(tr,In){if(!d.isValidElement(tr)||!tr.type)return null;var di=tr,oi=di.type.isSelectOptGroup,ki=di.key,ri=di.props,bi=ri.children,_n=(0,v.Z)(ri,ao);return Nn||!oi?Bo(tr):(0,h.Z)((0,h.Z)({key:"__RC_SELECT_GRP__".concat(ki===null?In:ki,"__"),label:ki},_n),{},{options:jo(bi)})}).filter(function(tr){return tr})}function Jo(an,Nn,tr,In,di){return d.useMemo(function(){var oi=an,ki=!an;ki&&(oi=jo(Nn));var ri=new Map,bi=new Map,_n=function(Va,Qi,ro){ro&&typeof ro=="string"&&Va.set(Qi[ro],Qi)};function Ua(va){for(var Va=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qi=0;Qi<va.length;Qi+=1){var ro=va[Qi];!ro[tr.options]||Va?(ri.set(ro[tr.value],ro),_n(bi,ro,tr.label),_n(bi,ro,In),_n(bi,ro,di)):Ua(ro[tr.options],!0)}}return Ua(oi),{options:oi,valueOptions:ri,labelOptions:bi}},[an,Nn,tr,In,di])}function Go(an){var Nn=d.useRef();Nn.current=an;var tr=d.useCallback(function(){return Nn.current.apply(Nn,arguments)},[]);return tr}var wr=function(){return null};wr.isSelectOptGroup=!0;const qi=wr;var ja=function(){return null};ja.isSelectOption=!0;const uo=ja;var wi=t(50975),ai=t(77152),za=d.forwardRef(function(an,Nn){var tr=an.height,In=an.offset,di=an.children,oi=an.prefixCls,ki=an.onInnerResize,ri=an.innerProps,bi={},_n={display:"flex",flexDirection:"column"};return In!==void 0&&(bi={height:tr,position:"relative",overflow:"hidden"},_n=(0,h.Z)((0,h.Z)({},_n),{},{transform:"translateY(".concat(In,"px)"),position:"absolute",left:0,right:0,top:0})),d.createElement("div",{style:bi},d.createElement(_.Z,{onResize:function(va){var Va=va.offsetHeight;Va&&ki&&ki()}},d.createElement("div",(0,i.Z)({style:_n,className:E()((0,l.Z)({},"".concat(oi,"-holder-inner"),oi)),ref:Nn},ri),di)))});za.displayName="Filler";const Mt=za;var Gn=t(87741),qn=t(58585),Fr=t(56804),Ei=t(93870),ii=20;function Wi(an){return"touches"in an?an.touches[0].pageY:an.pageY}var Ya=function(an){(0,Fr.Z)(tr,an);var Nn=(0,Ei.Z)(tr);function tr(){var In;(0,Gn.Z)(this,tr);for(var di=arguments.length,oi=new Array(di),ki=0;ki<di;ki++)oi[ki]=arguments[ki];return In=Nn.call.apply(Nn,[this].concat(oi)),In.moveRaf=null,In.scrollbarRef=d.createRef(),In.thumbRef=d.createRef(),In.visibleTimeout=null,In.state={dragging:!1,pageY:null,startTop:null,visible:!1},In.delayHidden=function(){clearTimeout(In.visibleTimeout),In.setState({visible:!0}),In.visibleTimeout=setTimeout(function(){In.setState({visible:!1})},2e3)},In.onScrollbarTouchStart=function(ri){ri.preventDefault()},In.onContainerMouseDown=function(ri){ri.stopPropagation(),ri.preventDefault()},In.patchEvents=function(){window.addEventListener("mousemove",In.onMouseMove),window.addEventListener("mouseup",In.onMouseUp),In.thumbRef.current.addEventListener("touchmove",In.onMouseMove),In.thumbRef.current.addEventListener("touchend",In.onMouseUp)},In.removeEvents=function(){window.removeEventListener("mousemove",In.onMouseMove),window.removeEventListener("mouseup",In.onMouseUp),In.thumbRef.current&&(In.thumbRef.current.removeEventListener("touchmove",In.onMouseMove),In.thumbRef.current.removeEventListener("touchend",In.onMouseUp)),Z.Z.cancel(In.moveRaf)},In.onMouseDown=function(ri){var bi=In.props.onStartMove;In.setState({dragging:!0,pageY:Wi(ri),startTop:In.getTop()}),bi(),In.patchEvents(),ri.stopPropagation(),ri.preventDefault()},In.onMouseMove=function(ri){var bi=In.state,_n=bi.dragging,Ua=bi.pageY,va=bi.startTop,Va=In.props.onScroll;if(Z.Z.cancel(In.moveRaf),_n){var Qi=Wi(ri)-Ua,ro=va+Qi,Pe=In.getEnableScrollRange(),Nt=In.getEnableHeightRange(),un=Nt?ro/Nt:0,xn=Math.ceil(un*Pe);In.moveRaf=(0,Z.Z)(function(){Va(xn)})}},In.onMouseUp=function(){var ri=In.props.onStopMove;In.setState({dragging:!1}),ri(),In.removeEvents()},In.getSpinHeight=function(){var ri=In.props,bi=ri.height,_n=ri.count,Ua=bi/_n*10;return Ua=Math.max(Ua,ii),Ua=Math.min(Ua,bi/2),Math.floor(Ua)},In.getEnableScrollRange=function(){var ri=In.props,bi=ri.scrollHeight,_n=ri.height;return bi-_n||0},In.getEnableHeightRange=function(){var ri=In.props.height,bi=In.getSpinHeight();return ri-bi||0},In.getTop=function(){var ri=In.props.scrollTop,bi=In.getEnableScrollRange(),_n=In.getEnableHeightRange();if(ri===0||bi===0)return 0;var Ua=ri/bi;return Ua*_n},In.showScroll=function(){var ri=In.props,bi=ri.height,_n=ri.scrollHeight;return _n>bi},In}return(0,qn.Z)(tr,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(di){di.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){var di,oi;this.removeEvents(),(di=this.scrollbarRef.current)===null||di===void 0||di.removeEventListener("touchstart",this.onScrollbarTouchStart),(oi=this.thumbRef.current)===null||oi===void 0||oi.removeEventListener("touchstart",this.onMouseDown),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var di=this.state,oi=di.dragging,ki=di.visible,ri=this.props,bi=ri.prefixCls,_n=ri.direction,Ua=this.getSpinHeight(),va=this.getTop(),Va=this.showScroll(),Qi=Va&&ki,ro=_n==="rtl"?{left:0}:{right:0};return d.createElement("div",{ref:this.scrollbarRef,className:E()("".concat(bi,"-scrollbar"),(0,l.Z)({},"".concat(bi,"-scrollbar-show"),Va)),style:(0,h.Z)((0,h.Z)({width:8,top:0,bottom:0},ro),{},{position:"absolute",display:Qi?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},d.createElement("div",{ref:this.thumbRef,className:E()("".concat(bi,"-scrollbar-thumb"),(0,l.Z)({},"".concat(bi,"-scrollbar-thumb-moving"),oi)),style:{width:"100%",height:Ua,top:va,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),tr}(d.Component);function qa(an){var Nn=an.children,tr=an.setRef,In=d.useCallback(function(di){tr(di)},[]);return d.cloneElement(Nn,{ref:In})}function se(an,Nn,tr,In,di,oi){var ki=oi.getKey;return an.slice(Nn,tr+1).map(function(ri,bi){var _n=Nn+bi,Ua=di(ri,_n,{}),va=ki(ri);return d.createElement(qa,{key:va,setRef:function(Qi){return In(ri,Qi)}},Ua)})}var ye=t(72465),Xe=function(){function an(){(0,Gn.Z)(this,an),this.maps=void 0,this.maps=Object.create(null)}return(0,qn.Z)(an,[{key:"set",value:function(tr,In){this.maps[tr]=In}},{key:"get",value:function(tr){return this.maps[tr]}}]),an}();const yt=Xe;function Wt(an,Nn,tr){var In=d.useState(0),di=(0,u.Z)(In,2),oi=di[0],ki=di[1],ri=(0,d.useRef)(new Map),bi=(0,d.useRef)(new yt),_n=(0,d.useRef)();function Ua(){Z.Z.cancel(_n.current)}function va(){Ua(),_n.current=(0,Z.Z)(function(){ri.current.forEach(function(Qi,ro){if(Qi&&Qi.offsetParent){var Pe=(0,ye.Z)(Qi),Nt=Pe.offsetHeight;bi.current.get(ro)!==Nt&&bi.current.set(ro,Pe.offsetHeight)}}),ki(function(Qi){return Qi+1})})}function Va(Qi,ro){var Pe=an(Qi),Nt=ri.current.get(Pe);ro?(ri.current.set(Pe,ro),va()):ri.current.delete(Pe),!Nt!=!ro&&(ro?Nn?.(Qi):tr?.(Qi))}return(0,d.useEffect)(function(){return Ua},[]),[Va,va,bi.current,oi]}function Qt(an,Nn,tr,In,di,oi,ki,ri){var bi=d.useRef();return function(_n){if(_n==null){ri();return}if(Z.Z.cancel(bi.current),typeof _n=="number")ki(_n);else if(_n&&(0,p.Z)(_n)==="object"){var Ua,va=_n.align;"index"in _n?Ua=_n.index:Ua=Nn.findIndex(function(Pe){return di(Pe)===_n.key});var Va=_n.offset,Qi=Va===void 0?0:Va,ro=function Pe(Nt,un){if(!(Nt<0||!an.current)){var xn=an.current.clientHeight,zn=!1,sr=un;if(xn){for(var Tr=un||va,Br=0,Er=0,Sr=0,Vr=Math.min(Nn.length,Ua),fi=0;fi<=Vr;fi+=1){var xr=di(Nn[fi]);Er=Br;var Wr=tr.get(xr);Sr=Er+(Wr===void 0?In:Wr),Br=Sr,fi===Ua&&Wr===void 0&&(zn=!0)}var ti=null;switch(Tr){case"top":ti=Er-Qi;break;case"bottom":ti=Sr-xn+Qi;break;default:{var xi=an.current.scrollTop,Gi=xi+xn;Er<xi?sr="top":Sr>Gi&&(sr="bottom")}}ti!==null&&ti!==an.current.scrollTop&&ki(ti)}bi.current=(0,Z.Z)(function(){zn&&oi(),Pe(Nt-1,sr)},2)}};ro(3)}}}function wn(an,Nn,tr,In){var di=tr-an,oi=Nn-tr,ki=Math.min(di,oi)*2;if(In<=ki){var ri=Math.floor(In/2);return In%2?tr+ri+1:tr-ri}return di>oi?tr-(In-oi):tr+(In-di)}function fr(an,Nn,tr){var In=an.length,di=Nn.length,oi,ki;if(In===0&&di===0)return null;In<di?(oi=an,ki=Nn):(oi=Nn,ki=an);var ri={__EMPTY_ITEM__:!0};function bi(ro){return ro!==void 0?tr(ro):ri}for(var _n=null,Ua=Math.abs(In-di)!==1,va=0;va<ki.length;va+=1){var Va=bi(oi[va]),Qi=bi(ki[va]);if(Va!==Qi){_n=va,Ua=Ua||Va!==bi(ki[va+1]);break}}return _n===null?null:{index:_n,multiple:Ua}}function Or(an,Nn,tr){var In=d.useState(an),di=(0,u.Z)(In,2),oi=di[0],ki=di[1],ri=d.useState(null),bi=(0,u.Z)(ri,2),_n=bi[0],Ua=bi[1];return d.useEffect(function(){var va=fr(oi||[],an||[],Nn);va?.index!==void 0&&(tr?.(va.index),Ua(an[va.index])),ki(an)},[an]),[_n]}var Si=(typeof navigator>"u"?"undefined":(0,p.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Fi=Si,Bi=function(an,Nn){var tr=(0,d.useRef)(!1),In=(0,d.useRef)(null);function di(){clearTimeout(In.current),tr.current=!0,In.current=setTimeout(function(){tr.current=!1},50)}var oi=(0,d.useRef)({top:an,bottom:Nn});return oi.current.top=an,oi.current.bottom=Nn,function(ki){var ri=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,bi=ki<0&&oi.current.top||ki>0&&oi.current.bottom;return ri&&bi?(clearTimeout(In.current),tr.current=!1):(!bi||tr.current)&&di(),!tr.current&&bi}};function Ui(an,Nn,tr,In){var di=(0,d.useRef)(0),oi=(0,d.useRef)(null),ki=(0,d.useRef)(null),ri=(0,d.useRef)(!1),bi=Bi(Nn,tr);function _n(va){if(an){Z.Z.cancel(oi.current);var Va=va.deltaY;di.current+=Va,ki.current=Va,!bi(Va)&&(Fi||va.preventDefault(),oi.current=(0,Z.Z)(function(){var Qi=ri.current?10:1;In(di.current*Qi),di.current=0}))}}function Ua(va){an&&(ri.current=va.detail===ki.current)}return[_n,Ua]}var vi=14/15;function Xa(an,Nn,tr){var In=(0,d.useRef)(!1),di=(0,d.useRef)(0),oi=(0,d.useRef)(null),ki=(0,d.useRef)(null),ri,bi=function(Va){if(In.current){var Qi=Math.ceil(Va.touches[0].pageY),ro=di.current-Qi;di.current=Qi,tr(ro)&&Va.preventDefault(),clearInterval(ki.current),ki.current=setInterval(function(){ro*=vi,(!tr(ro,!0)||Math.abs(ro)<=.1)&&clearInterval(ki.current)},16)}},_n=function(){In.current=!1,ri()},Ua=function(Va){ri(),Va.touches.length===1&&!In.current&&(In.current=!0,di.current=Math.ceil(Va.touches[0].pageY),oi.current=Va.target,oi.current.addEventListener("touchmove",bi),oi.current.addEventListener("touchend",_n))};ri=function(){oi.current&&(oi.current.removeEventListener("touchmove",bi),oi.current.removeEventListener("touchend",_n))},(0,S.Z)(function(){return an&&Nn.current.addEventListener("touchstart",Ua),function(){var va;(va=Nn.current)===null||va===void 0||va.removeEventListener("touchstart",Ua),ri(),clearInterval(ki.current)}},[an])}var Ko=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],So=[],Lo={overflowY:"auto",overflowAnchor:"none"};function us(an,Nn){var tr=an.prefixCls,In=tr===void 0?"rc-virtual-list":tr,di=an.className,oi=an.height,ki=an.itemHeight,ri=an.fullHeight,bi=ri===void 0?!0:ri,_n=an.style,Ua=an.data,va=an.children,Va=an.itemKey,Qi=an.virtual,ro=an.direction,Pe=an.component,Nt=Pe===void 0?"div":Pe,un=an.onScroll,xn=an.onVisibleChange,zn=an.innerProps,sr=(0,v.Z)(an,Ko),Tr=!!(Qi!==!1&&oi&&ki),Br=Tr&&Ua&&ki*Ua.length>oi,Er=(0,d.useState)(0),Sr=(0,u.Z)(Er,2),Vr=Sr[0],fi=Sr[1],xr=(0,d.useState)(!1),Wr=(0,u.Z)(xr,2),ti=Wr[0],xi=Wr[1],Gi=E()(In,(0,l.Z)({},"".concat(In,"-rtl"),ro==="rtl"),di),_i=Ua||So,da=(0,d.useRef)(),Sa=(0,d.useRef)(),Pa=(0,d.useRef)(),oo=d.useCallback(function(Qo){return typeof Va=="function"?Va(Qo):Qo?.[Va]},[Va]),mo={getKey:oo};function Ga(Qo){fi(function(ds){var zu;typeof Qo=="function"?zu=Qo(ds):zu=Qo;var tu=du(zu);return da.current.scrollTop=tu,tu})}var no=(0,d.useRef)({start:0,end:_i.length}),ca=(0,d.useRef)(),co=Or(_i,oo),Yo=(0,u.Z)(co,1),bo=Yo[0];ca.current=bo;var Ea=Wt(oo,null,null),ko=(0,u.Z)(Ea,4),Es=ko[0],Ts=ko[1],rs=ko[2],ls=ko[3],Ss=d.useMemo(function(){if(!Tr)return{scrollHeight:void 0,start:0,end:_i.length-1,offset:void 0};if(!Br){var Qo;return{scrollHeight:((Qo=Sa.current)===null||Qo===void 0?void 0:Qo.offsetHeight)||0,start:0,end:_i.length-1,offset:void 0}}for(var ds=0,zu,tu,Ou,Hs=_i.length,pu=0;pu<Hs;pu+=1){var ku=_i[pu],Nu=oo(ku),Fu=rs.get(Nu),Ku=ds+(Fu===void 0?ki:Fu);Ku>=Vr&&zu===void 0&&(zu=pu,tu=ds),Ku>Vr+oi&&Ou===void 0&&(Ou=pu),ds=Ku}return zu===void 0&&(zu=0,tu=0,Ou=Math.ceil(oi/ki)),Ou===void 0&&(Ou=_i.length-1),Ou=Math.min(Ou+1,_i.length),{scrollHeight:ds,start:zu,end:Ou,offset:tu}},[Br,Tr,Vr,_i,ls,oi]),cs=Ss.scrollHeight,Do=Ss.start,fs=Ss.end,is=Ss.offset;no.current.start=Do,no.current.end=fs;var Os=cs-oi,Qs=(0,d.useRef)(Os);Qs.current=Os;function du(Qo){var ds=Qo;return Number.isNaN(Qs.current)||(ds=Math.min(ds,Qs.current)),ds=Math.max(ds,0),ds}var Yu=Vr<=0,$u=Vr>=Os,Xu=Bi(Yu,$u);function su(Qo){var ds=Qo;Ga(ds)}function Pu(Qo){var ds=Qo.currentTarget.scrollTop;ds!==Vr&&Ga(ds),un?.(Qo)}var Lu=Ui(Tr,Yu,$u,function(Qo){Ga(function(ds){var zu=ds+Qo;return zu})}),hu=(0,u.Z)(Lu,2),Js=hu[0],ys=hu[1];Xa(Tr,da,function(Qo,ds){return Xu(Qo,ds)?!1:(Js({preventDefault:function(){},deltaY:Qo}),!0)}),(0,S.Z)(function(){function Qo(ds){Tr&&ds.preventDefault()}return da.current.addEventListener("wheel",Js),da.current.addEventListener("DOMMouseScroll",ys),da.current.addEventListener("MozMousePixelScroll",Qo),function(){da.current&&(da.current.removeEventListener("wheel",Js),da.current.removeEventListener("DOMMouseScroll",ys),da.current.removeEventListener("MozMousePixelScroll",Qo))}},[Tr]);var qo=Qt(da,_i,rs,ki,oo,Ts,Ga,function(){var Qo;(Qo=Pa.current)===null||Qo===void 0||Qo.delayHidden()});d.useImperativeHandle(Nn,function(){return{scrollTo:qo}}),(0,S.Z)(function(){if(xn){var Qo=_i.slice(Do,fs+1);xn(Qo,_i)}},[Do,fs,_i]);var Ps=se(_i,Do,fs,Es,va,mo),Ws=null;return oi&&(Ws=(0,h.Z)((0,l.Z)({},bi?"height":"maxHeight",oi),Lo),Tr&&(Ws.overflowY="hidden",ti&&(Ws.pointerEvents="none"))),d.createElement("div",(0,i.Z)({style:(0,h.Z)((0,h.Z)({},_n),{},{position:"relative"}),className:Gi},sr),d.createElement(Nt,{className:"".concat(In,"-holder"),style:Ws,ref:da,onScroll:Pu},d.createElement(Mt,{prefixCls:In,height:cs,offset:is,onInnerResize:Ts,ref:Sa,innerProps:zn},Ps)),Tr&&d.createElement(Ya,{ref:Pa,prefixCls:In,scrollTop:Vr,height:oi,scrollHeight:cs,count:_i.length,direction:ro,onScroll:su,onStartMove:function(){xi(!0)},onStopMove:function(){xi(!1)}}))}var Ee=d.forwardRef(us);Ee.displayName="List";const z=Ee;var B=d.createContext(null);const le=B;function Le(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Je=["disabled","title","children","style","className"];function Ct(an){return typeof an=="string"||typeof an=="number"}var Vt=function(Nn,tr){var In=T(),di=In.prefixCls,oi=In.id,ki=In.open,ri=In.multiple,bi=In.mode,_n=In.searchValue,Ua=In.toggleOpen,va=In.notFoundContent,Va=In.onPopupScroll,Qi=d.useContext(le),ro=Qi.flattenOptions,Pe=Qi.onActiveValue,Nt=Qi.defaultActiveFirstOption,un=Qi.onSelect,xn=Qi.menuItemSelectedIcon,zn=Qi.rawValues,sr=Qi.fieldNames,Tr=Qi.virtual,Br=Qi.direction,Er=Qi.listHeight,Sr=Qi.listItemHeight,Vr="".concat(di,"-item"),fi=(0,wi.Z)(function(){return ro},[ki,ro],function(bo,Ea){return Ea[0]&&bo[1]!==Ea[1]}),xr=d.useRef(null),Wr=function(Ea){Ea.preventDefault()},ti=function(Ea){xr.current&&xr.current.scrollTo(typeof Ea=="number"?{index:Ea}:Ea)},xi=function(Ea){for(var ko=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Es=fi.length,Ts=0;Ts<Es;Ts+=1){var rs=(Ea+Ts*ko+Es)%Es,ls=fi[rs],Ss=ls.group,cs=ls.data;if(!Ss&&!cs.disabled)return rs}return-1},Gi=d.useState(function(){return xi(0)}),_i=(0,u.Z)(Gi,2),da=_i[0],Sa=_i[1],Pa=function(Ea){var ko=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Sa(Ea);var Es={source:ko?"keyboard":"mouse"},Ts=fi[Ea];if(!Ts){Pe(null,-1,Es);return}Pe(Ts.value,Ea,Es)};(0,d.useEffect)(function(){Pa(Nt!==!1?xi(0):-1)},[fi.length,_n]);var oo=d.useCallback(function(bo){return zn.has(bo)&&bi!=="combobox"},[bi,(0,s.Z)(zn).toString(),zn.size]);(0,d.useEffect)(function(){var bo=setTimeout(function(){if(!ri&&ki&&zn.size===1){var ko=Array.from(zn)[0],Es=fi.findIndex(function(Ts){var rs=Ts.data;return rs.value===ko});Es!==-1&&(Pa(Es),ti(Es))}});if(ki){var Ea;(Ea=xr.current)===null||Ea===void 0||Ea.scrollTo(void 0)}return function(){return clearTimeout(bo)}},[ki,_n,ro.length]);var mo=function(Ea){Ea!==void 0&&un(Ea,{selected:!zn.has(Ea)}),ri||Ua(!1)};if(d.useImperativeHandle(tr,function(){return{onKeyDown:function(Ea){var ko=Ea.which,Es=Ea.ctrlKey;switch(ko){case x.Z.N:case x.Z.P:case x.Z.UP:case x.Z.DOWN:{var Ts=0;if(ko===x.Z.UP?Ts=-1:ko===x.Z.DOWN?Ts=1:Le()&&Es&&(ko===x.Z.N?Ts=1:ko===x.Z.P&&(Ts=-1)),Ts!==0){var rs=xi(da+Ts,Ts);ti(rs),Pa(rs,!0)}break}case x.Z.ENTER:{var ls=fi[da];ls&&!ls.data.disabled?mo(ls.value):mo(void 0),ki&&Ea.preventDefault();break}case x.Z.ESC:Ua(!1),ki&&Ea.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ea){ti(Ea)}}}),fi.length===0)return d.createElement("div",{role:"listbox",id:"".concat(oi,"_list"),className:"".concat(Vr,"-empty"),onMouseDown:Wr},va);var Ga=Object.keys(sr).map(function(bo){return sr[bo]}),no=function(Ea){return Ea.label};function ca(bo,Ea){var ko=bo.group;return{role:ko?"presentation":"option",id:"".concat(oi,"_list_").concat(Ea)}}var co=function(Ea){var ko=fi[Ea];if(!ko)return null;var Es=ko.data||{},Ts=Es.value,rs=ko.group,ls=(0,K.Z)(Es,!0),Ss=no(ko);return ko?d.createElement("div",(0,i.Z)({"aria-label":typeof Ss=="string"&&!rs?Ss:null},ls,{key:Ea},ca(ko,Ea),{"aria-selected":oo(Ts)}),Ts):null},Yo={role:"listbox",id:"".concat(oi,"_list")};return d.createElement(d.Fragment,null,Tr&&d.createElement("div",(0,i.Z)({},Yo,{style:{height:0,width:0,overflow:"hidden"}}),co(da-1),co(da),co(da+1)),d.createElement(z,{itemKey:"key",ref:xr,data:fi,height:Er,itemHeight:Sr,fullHeight:!1,onMouseDown:Wr,onScroll:Va,virtual:Tr,direction:Br,innerProps:Tr?null:Yo},function(bo,Ea){var ko,Es=bo.group,Ts=bo.groupOption,rs=bo.data,ls=bo.label,Ss=bo.value,cs=rs.key;if(Es){var Do,fs=(Do=rs.title)!==null&&Do!==void 0?Do:Ct(ls)?ls.toString():void 0;return d.createElement("div",{className:E()(Vr,"".concat(Vr,"-group")),title:fs},ls!==void 0?ls:cs)}var is=rs.disabled,Os=rs.title,Qs=rs.children,du=rs.style,Yu=rs.className,$u=(0,v.Z)(rs,Je),Xu=(0,ai.Z)($u,Ga),su=oo(Ss),Pu="".concat(Vr,"-option"),Lu=E()(Vr,Pu,Yu,(ko={},(0,l.Z)(ko,"".concat(Pu,"-grouped"),Ts),(0,l.Z)(ko,"".concat(Pu,"-active"),da===Ea&&!is),(0,l.Z)(ko,"".concat(Pu,"-disabled"),is),(0,l.Z)(ko,"".concat(Pu,"-selected"),su),ko)),hu=no(bo),Js=!xn||typeof xn=="function"||su,ys=typeof hu=="number"?hu:hu||Ss,qo=Ct(ys)?ys.toString():void 0;return Os!==void 0&&(qo=Os),d.createElement("div",(0,i.Z)({},(0,K.Z)(Xu),Tr?{}:ca(bo,Ea),{"aria-selected":su,className:Lu,title:qo,onMouseMove:function(){da===Ea||is||Pa(Ea)},onClick:function(){is||mo(Ss)},style:du}),d.createElement("div",{className:"".concat(Pu,"-content")},ys),d.isValidElement(xn)||su,Js&&d.createElement(Se,{className:"".concat(Vr,"-option-state"),customizeIcon:xn,customizeIconProps:{isSelected:su}},su?"\u2713":null))}))},bn=d.forwardRef(Vt);bn.displayName="OptionList";const Hn=bn;function br(an){var Nn=an.mode,tr=an.options,In=an.children,di=an.backfill,oi=an.allowClear,ki=an.placeholder,ri=an.getInputElement,bi=an.showSearch,_n=an.onSearch,Ua=an.defaultOpen,va=an.autoFocus,Va=an.labelInValue,Qi=an.value,ro=an.inputValue,Pe=an.optionLabelProp,Nt=isMultiple(Nn),un=bi!==void 0?bi:Nt||Nn==="combobox",xn=tr||convertChildrenToData(In);if(warning(Nn!=="tags"||xn.every(function(Br){return!Br.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Nn==="tags"||Nn==="combobox"){var zn=xn.some(function(Br){return Br.options?Br.options.some(function(Er){return typeof("value"in Er?Er.value:Er.key)=="number"}):typeof("value"in Br?Br.value:Br.key)=="number"});warning(!zn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Nn!=="combobox"||!Pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Nn==="combobox"||!di,"`backfill` only works with `combobox` mode."),warning(Nn==="combobox"||!ri,"`getInputElement` only work with `combobox` mode."),noteOnce(Nn!=="combobox"||!ri||!oi||!ki,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),_n&&!un&&Nn!=="combobox"&&Nn!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ua||va,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Qi!=null){var sr=toArray(Qi);warning(!Va||sr.every(function(Br){return _typeof(Br)==="object"&&("key"in Br||"value"in Br)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Nt||Array.isArray(Qi),"`value` should be array when `mode` is `multiple` or `tags`")}if(In){var Tr=null;toNodeArray(In).some(function(Br){if(!React.isValidElement(Br)||!Br.type)return!1;var Er=Br,Sr=Er.type;if(Sr.isSelectOption)return!1;if(Sr.isSelectOptGroup){var Vr=toNodeArray(Br.props.children).every(function(fi){return!React.isValidElement(fi)||!Br.type||fi.type.isSelectOption?!0:(Tr=fi.type,!1)});return!Vr}return Tr=Sr,!0}),Tr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Tr.displayName||Tr.name||Tr,"`.")),warning(ro===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ei(an,Nn){if(an){var tr=function In(di){for(var oi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ki=0;ki<di.length;ki++){var ri=di[ki];if(ri[Nn?.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!oi&&Array.isArray(ri[Nn?.options])&&In(ri[Nn?.options],!0))break}};tr(an)}}const mi=null;var Li=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],na=["inputValue"];function ji(an){return!an||(0,p.Z)(an)!=="object"}var $a=d.forwardRef(function(an,Nn){var tr=an.id,In=an.mode,di=an.prefixCls,oi=di===void 0?"rc-select":di,ki=an.backfill,ri=an.fieldNames,bi=an.inputValue,_n=an.searchValue,Ua=an.onSearch,va=an.autoClearSearchValue,Va=va===void 0?!0:va,Qi=an.onSelect,ro=an.onDeselect,Pe=an.dropdownMatchSelectWidth,Nt=Pe===void 0?!0:Pe,un=an.filterOption,xn=an.filterSort,zn=an.optionFilterProp,sr=an.optionLabelProp,Tr=an.options,Br=an.children,Er=an.defaultActiveFirstOption,Sr=an.menuItemSelectedIcon,Vr=an.virtual,fi=an.direction,xr=an.listHeight,Wr=xr===void 0?200:xr,ti=an.listItemHeight,xi=ti===void 0?20:ti,Gi=an.value,_i=an.defaultValue,da=an.labelInValue,Sa=an.onChange,Pa=(0,v.Z)(an,Li),oo=ia(tr),mo=jn(In),Ga=!!(!Tr&&Br),no=d.useMemo(function(){return un===void 0&&In==="combobox"?!1:un},[un,In]),ca=d.useMemo(function(){return xt(ri,Ga)},[JSON.stringify(ri),Ga]),co=g("",{value:_n!==void 0?_n:bi,postState:function(Ds){return Ds||""}}),Yo=(0,u.Z)(co,2),bo=Yo[0],Ea=Yo[1],ko=Jo(Tr,Br,ca,zn,sr),Es=ko.valueOptions,Ts=ko.labelOptions,rs=ko.options,ls=d.useCallback(function(Vs){var Ds=we(Vs);return Ds.map(function(Ks){var nu,Ju,nl,ec,Mc;if(ji(Ks))nu=Ks;else{var hc;nl=Ks.key,Ju=Ks.label,nu=(hc=Ks.value)!==null&&hc!==void 0?hc:nl}var Ol=Es.get(nu);if(Ol){var Nl;if(Ju===void 0&&(Ju=Ol?.[sr||ca.label]),nl===void 0&&(nl=(Nl=Ol?.key)!==null&&Nl!==void 0?Nl:nu),ec=Ol?.disabled,Mc=Ol?.title,!1)var wl}return{label:Ju,value:nu,key:nl,disabled:ec,title:Mc}})},[ca,sr,Es]),Ss=g(_i,{value:Gi}),cs=(0,u.Z)(Ss,2),Do=cs[0],fs=cs[1],is=d.useMemo(function(){var Vs,Ds=ls(Do);return In==="combobox"&&!((Vs=Ds[0])!==null&&Vs!==void 0&&Vs.value)?[]:Ds},[Do,ls,In]),Os=Ir(is,Es),Qs=(0,u.Z)(Os,2),du=Qs[0],Yu=Qs[1],$u=d.useMemo(function(){if(!In&&du.length===1){var Vs=du[0];if(Vs.value===null&&(Vs.label===null||Vs.label===void 0))return[]}return du.map(function(Ds){var Ks;return(0,h.Z)((0,h.Z)({},Ds),{},{label:(Ks=Ds.label)!==null&&Ks!==void 0?Ks:Ds.value})})},[In,du]),Xu=d.useMemo(function(){return new Set(du.map(function(Vs){return Vs.value}))},[du]);d.useEffect(function(){if(In==="combobox"){var Vs,Ds=(Vs=du[0])===null||Vs===void 0?void 0:Vs.value;Ea(nt(Ds)?String(Ds):"")}},[du]);var su=Go(function(Vs,Ds){var Ks,nu=Ds??Vs;return Ks={},(0,l.Z)(Ks,ca.value,Vs),(0,l.Z)(Ks,ca.label,nu),Ks}),Pu=d.useMemo(function(){if(In!=="tags")return rs;var Vs=(0,s.Z)(rs),Ds=function(nu){return Es.has(nu)};return(0,s.Z)(du).sort(function(Ks,nu){return Ks.value<nu.value?-1:1}).forEach(function(Ks){var nu=Ks.value;Ds(nu)||Vs.push(su(nu,Ks.label))}),Vs},[su,rs,Es,du,In]),Lu=lr(Pu,ca,bo,no,zn),hu=d.useMemo(function(){return In!=="tags"||!bo||Lu.some(function(Vs){return Vs[zn||"value"]===bo})?Lu:[su(bo)].concat((0,s.Z)(Lu))},[su,zn,In,Lu,bo]),Js=d.useMemo(function(){return xn?(0,s.Z)(hu).sort(function(Vs,Ds){return xn(Vs,Ds)}):hu},[hu,xn]),ys=d.useMemo(function(){return On(Js,{fieldNames:ca,childrenAsData:Ga})},[Js,ca,Ga]),qo=function(Ds){var Ks=ls(Ds);if(fs(Ks),Sa&&(Ks.length!==du.length||Ks.some(function(nl,ec){var Mc;return((Mc=du[ec])===null||Mc===void 0?void 0:Mc.value)!==nl?.value}))){var nu=da?Ks:Ks.map(function(nl){return nl.value}),Ju=Ks.map(function(nl){return Zn(Yu(nl.value))});Sa(mo?nu:nu[0],mo?Ju:Ju[0])}},Ps=d.useState(null),Ws=(0,u.Z)(Ps,2),Qo=Ws[0],ds=Ws[1],zu=d.useState(0),tu=(0,u.Z)(zu,2),Ou=tu[0],Hs=tu[1],pu=Er!==void 0?Er:In!=="combobox",ku=d.useCallback(function(Vs,Ds){var Ks=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nu=Ks.source,Ju=nu===void 0?"keyboard":nu;Hs(Ds),ki&&In==="combobox"&&Vs!==null&&Ju==="keyboard"&&ds(String(Vs))},[ki,In]),Nu=function(Ds,Ks,nu){var Ju=function(){var Ic,kl=Yu(Ds);return[da?{label:kl?.[ca.label],value:Ds,key:(Ic=kl?.key)!==null&&Ic!==void 0?Ic:Ds}:Ds,Zn(kl)]};if(Ks&&Qi){var nl=Ju(),ec=(0,u.Z)(nl,2),Mc=ec[0],hc=ec[1];Qi(Mc,hc)}else if(!Ks&&ro&&nu!=="clear"){var Ol=Ju(),Nl=(0,u.Z)(Ol,2),wl=Nl[0],Fl=Nl[1];ro(wl,Fl)}},Fu=Go(function(Vs,Ds){var Ks,nu=mo?Ds.selected:!0;nu?Ks=mo?[].concat((0,s.Z)(du),[Vs]):[Vs]:Ks=du.filter(function(Ju){return Ju.value!==Vs}),qo(Ks),Nu(Vs,nu),In==="combobox"?ds(""):(!jn||Va)&&(Ea(""),ds(""))}),Ku=function(Ds,Ks){qo(Ds);var nu=Ks.type,Ju=Ks.values;(nu==="remove"||nu==="clear")&&Ju.forEach(function(nl){Nu(nl.value,!1,nu)})},sl=function(Ds,Ks){if(Ea(Ds),ds(null),Ks.source==="submit"){var nu=(Ds||"").trim();if(nu){var Ju=Array.from(new Set([].concat((0,s.Z)(Xu),[nu])));qo(Ju),Nu(nu,!0),Ea("")}return}Ks.source!=="blur"&&(In==="combobox"&&qo(Ds),Ua?.(Ds))},lu=function(Ds){var Ks=Ds;In!=="tags"&&(Ks=Ds.map(function(Ju){var nl=Ts.get(Ju);return nl?.value}).filter(function(Ju){return Ju!==void 0}));var nu=Array.from(new Set([].concat((0,s.Z)(Xu),(0,s.Z)(Ks))));qo(nu),nu.forEach(function(Ju){Nu(Ju,!0)})},Tu=d.useMemo(function(){var Vs=Vr!==!1&&Nt!==!1;return(0,h.Z)((0,h.Z)({},ko),{},{flattenOptions:ys,onActiveValue:ku,defaultActiveFirstOption:pu,onSelect:Fu,menuItemSelectedIcon:Sr,rawValues:Xu,fieldNames:ca,virtual:Vs,direction:fi,listHeight:Wr,listItemHeight:xi,childrenAsData:Ga})},[ko,ys,ku,pu,Fu,Sr,Xu,ca,Vr,Nt,Wr,xi,Ga]);return d.createElement(le.Provider,{value:Tu},d.createElement(Mr,(0,i.Z)({},Pa,{id:oo,prefixCls:oi,ref:Nn,omitDomProps:na,mode:In,displayValues:$u,onDisplayValuesChange:Ku,direction:fi,searchValue:bo,onSearch:sl,autoClearSearchValue:Va,onSearchSplit:lu,dropdownMatchSelectWidth:Nt,OptionList:Hn,emptyOptions:!ys.length,activeValue:Qo,activeDescendantId:"".concat(oo,"_list_").concat(Ou)})))}),Ha=$a;Ha.Option=uo,Ha.OptGroup=qi;const Eo=null,Uo=null;function Ms(an,Nn){var tr=new Set;return an.forEach(function(In){Nn.has(In)||tr.add(In)}),tr}function er(an){var Nn=an||{},tr=Nn.disabled,In=Nn.disableCheckbox,di=Nn.checkable;return!!(tr||In)||di===!1}function Ar(an,Nn,tr,In){for(var di=new Set(an),oi=new Set,ki=0;ki<=tr;ki+=1){var ri=Nn.get(ki)||new Set;ri.forEach(function(va){var Va=va.key,Qi=va.node,ro=va.children,Pe=ro===void 0?[]:ro;di.has(Va)&&!In(Qi)&&Pe.filter(function(Nt){return!In(Nt.node)}).forEach(function(Nt){di.add(Nt.key)})})}for(var bi=new Set,_n=tr;_n>=0;_n-=1){var Ua=Nn.get(_n)||new Set;Ua.forEach(function(va){var Va=va.parent,Qi=va.node;if(!(In(Qi)||!va.parent||bi.has(va.parent.key))){if(In(va.parent.node)){bi.add(Va.key);return}var ro=!0,Pe=!1;(Va.children||[]).filter(function(Nt){return!In(Nt.node)}).forEach(function(Nt){var un=Nt.key,xn=di.has(un);ro&&!xn&&(ro=!1),!Pe&&(xn||oi.has(un))&&(Pe=!0)}),ro&&di.add(Va.key),Pe&&oi.add(Va.key),bi.add(Va.key)}})}return{checkedKeys:Array.from(di),halfCheckedKeys:Array.from(Ms(oi,di))}}function Kr(an,Nn,tr,In,di){for(var oi=new Set(an),ki=new Set(Nn),ri=0;ri<=In;ri+=1){var bi=tr.get(ri)||new Set;bi.forEach(function(Va){var Qi=Va.key,ro=Va.node,Pe=Va.children,Nt=Pe===void 0?[]:Pe;!oi.has(Qi)&&!ki.has(Qi)&&!di(ro)&&Nt.filter(function(un){return!di(un.node)}).forEach(function(un){oi.delete(un.key)})})}ki=new Set;for(var _n=new Set,Ua=In;Ua>=0;Ua-=1){var va=tr.get(Ua)||new Set;va.forEach(function(Va){var Qi=Va.parent,ro=Va.node;if(!(di(ro)||!Va.parent||_n.has(Va.parent.key))){if(di(Va.parent.node)){_n.add(Qi.key);return}var Pe=!0,Nt=!1;(Qi.children||[]).filter(function(un){return!di(un.node)}).forEach(function(un){var xn=un.key,zn=oi.has(xn);Pe&&!zn&&(Pe=!1),!Nt&&(zn||ki.has(xn))&&(Nt=!0)}),Pe||oi.delete(Qi.key),Nt&&ki.add(Qi.key),_n.add(Qi.key)}})}return{checkedKeys:Array.from(oi),halfCheckedKeys:Array.from(Ms(ki,oi))}}function ur(an,Nn,tr,In){var di=[],oi;In?oi=In:oi=er;var ki=new Set(an.filter(function(Ua){var va=!!tr[Ua];return va||di.push(Ua),va})),ri=new Map,bi=0;Object.keys(tr).forEach(function(Ua){var va=tr[Ua],Va=va.level,Qi=ri.get(Va);Qi||(Qi=new Set,ri.set(Va,Qi)),Qi.add(va),bi=Math.max(bi,Va)}),(0,y.ZP)(!di.length,"Tree missing follow keys: ".concat(di.slice(0,100).map(function(Ua){return"'".concat(Ua,"'")}).join(", ")));var _n;return Nn===!0?_n=Ar(ki,ri,bi,oi):_n=Kr(ki,Nn.halfCheckedKeys,ri,bi,oi),_n}var Gr=d.createContext(null);const Pi=Gr;var aa="__rc_cascader_search_mark__",Fa=function(Nn,tr,In){var di=In.label;return tr.some(function(oi){return String(oi[di]).toLowerCase().includes(Nn.toLowerCase())})},tn=function(Nn,tr,In,di){return tr.map(function(oi){return oi[di.label]}).join(" / ")};const cn=function(an,Nn,tr,In,di,oi){var ki=di.filter,ri=ki===void 0?Fa:ki,bi=di.render,_n=bi===void 0?tn:bi,Ua=di.limit,va=Ua===void 0?50:Ua,Va=di.sort;return d.useMemo(function(){var Qi=[];if(!an)return[];function ro(Pe,Nt){Pe.forEach(function(un){if(!(!Va&&va>0&&Qi.length>=va)){var xn=[].concat((0,s.Z)(Nt),[un]),zn=un[tr.children];if((!zn||zn.length===0||oi)&&ri(an,xn,{label:tr.label})){var sr;Qi.push((0,h.Z)((0,h.Z)({},un),{},(sr={},(0,l.Z)(sr,tr.label,_n(an,xn,In,tr)),(0,l.Z)(sr,aa,xn),(0,l.Z)(sr,tr.children,void 0),sr)))}zn&&ro(un[tr.children],xn)}})}return ro(Nn,[]),Va&&Qi.sort(function(Pe,Nt){return Va(Pe[aa],Nt[aa],an,tr)}),va>0?Qi.slice(0,va):Qi},[an,Nn,tr,In,_n,oi,ri,Va,va])};var nr="__RC_CASCADER_SPLIT__",ir="SHOW_PARENT",Lr="SHOW_CHILD";function ua(an){return an.join(nr)}function _a(an){return an.map(ua)}function Ka(an){return an.split(nr)}function yo(an){var Nn=an||{},tr=Nn.label,In=Nn.value,di=Nn.children,oi=In||"value";return{label:tr||"label",value:oi,key:oi,children:di||"children"}}function Ba(an,Nn){var tr,In;return(tr=an.isLeaf)!==null&&tr!==void 0?tr:!((In=an[Nn.children])!==null&&In!==void 0&&In.length)}function Ma(an){var Nn=an.parentElement;if(Nn){var tr=an.offsetTop-Nn.offsetTop;tr-Nn.scrollTop<0?Nn.scrollTo({top:tr}):tr+an.offsetHeight-Nn.scrollTop>Nn.offsetHeight&&Nn.scrollTo({top:tr+an.offsetHeight-Nn.offsetHeight})}}function Mo(an,Nn){return an.map(function(tr){var In;return(In=tr[aa])===null||In===void 0?void 0:In.map(function(di){return di[Nn.value]})})}function Nr(an,Nn,tr){var In=new Set(an),di=Nn();return an.filter(function(oi){var ki=di[oi],ri=ki?ki.parent:null,bi=ki?ki.children:null;return tr===Lr?!(bi&&bi.some(function(_n){return _n.key&&In.has(_n.key)})):!(ri&&!ri.node.disabled&&In.has(ri.key))})}function gi(an,Nn,tr){for(var In=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,di=Nn,oi=[],ki=function(){var _n,Ua,va,Va=an[ri],Qi=(_n=di)===null||_n===void 0?void 0:_n.findIndex(function(Pe){var Nt=Pe[tr.value];return In?String(Nt)===String(Va):Nt===Va}),ro=Qi!==-1?(Ua=di)===null||Ua===void 0?void 0:Ua[Qi]:null;oi.push({value:(va=ro?.[tr.value])!==null&&va!==void 0?va:Va,index:Qi,option:ro}),di=ro?.[tr.children]},ri=0;ri<an.length;ri+=1)ki();return oi}const ea=function(an,Nn,tr,In,di){return d.useMemo(function(){var oi=di||function(ki){var ri=In?ki.slice(-1):ki,bi=" / ";return ri.every(function(_n){return["string","number"].includes((0,p.Z)(_n))})?ri.join(bi):ri.reduce(function(_n,Ua,va){var Va=d.isValidElement(Ua)?d.cloneElement(Ua,{key:va}):Ua;return va===0?[Va]:[].concat((0,s.Z)(_n),[bi,Va])},[])};return an.map(function(ki){var ri,bi,_n=gi(ki,Nn,tr),Ua=oi(_n.map(function(Va){var Qi,ro=Va.option,Pe=Va.value;return(Qi=ro?.[tr.label])!==null&&Qi!==void 0?Qi:Pe}),_n.map(function(Va){var Qi=Va.option;return Qi})),va=ua(ki);return{label:Ua,value:va,key:va,valueCells:ki,disabled:(ri=_n[_n.length-1])===null||ri===void 0||(bi=ri.option)===null||bi===void 0?void 0:bi.disabled}})},[an,Nn,tr,di,In])};var dr=t(32066),ci=d.createContext(null),yi=function(Nn){for(var tr=Nn.prefixCls,In=Nn.level,di=Nn.isStart,oi=Nn.isEnd,ki="".concat(tr,"-indent-unit"),ri=[],bi=0;bi<In;bi+=1){var _n;ri.push(d.createElement("span",{key:bi,className:E()(ki,(_n={},(0,l.Z)(_n,"".concat(ki,"-start"),di[bi]),(0,l.Z)(_n,"".concat(ki,"-end"),oi[bi]),_n))}))}return d.createElement("span",{"aria-hidden":"true",className:"".concat(tr,"-indent")},ri)};const xa=d.memo(yi);var Cr=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ka="open",Io="close",Co="---",_s=function(an){(0,Fr.Z)(tr,an);var Nn=(0,Ei.Z)(tr);function tr(){var In;(0,Gn.Z)(this,tr);for(var di=arguments.length,oi=new Array(di),ki=0;ki<di;ki++)oi[ki]=arguments[ki];return In=Nn.call.apply(Nn,[this].concat(oi)),In.state={dragNodeHighlight:!1},In.selectHandle=void 0,In.onSelectorClick=function(ri){var bi=In.props.context.onNodeClick;bi(ri,pn(In.props)),In.isSelectable()?In.onSelect(ri):In.onCheck(ri)},In.onSelectorDoubleClick=function(ri){var bi=In.props.context.onNodeDoubleClick;bi(ri,pn(In.props))},In.onSelect=function(ri){if(!In.isDisabled()){var bi=In.props.context.onNodeSelect;ri.preventDefault(),bi(ri,pn(In.props))}},In.onCheck=function(ri){if(!In.isDisabled()){var bi=In.props,_n=bi.disableCheckbox,Ua=bi.checked,va=In.props.context.onNodeCheck;if(!(!In.isCheckable()||_n)){ri.preventDefault();var Va=!Ua;va(ri,pn(In.props),Va)}}},In.onMouseEnter=function(ri){var bi=In.props.context.onNodeMouseEnter;bi(ri,pn(In.props))},In.onMouseLeave=function(ri){var bi=In.props.context.onNodeMouseLeave;bi(ri,pn(In.props))},In.onContextMenu=function(ri){var bi=In.props.context.onNodeContextMenu;bi(ri,pn(In.props))},In.onDragStart=function(ri){var bi=In.props.context.onNodeDragStart;ri.stopPropagation(),In.setState({dragNodeHighlight:!0}),bi(ri,(0,dr.Z)(In));try{ri.dataTransfer.setData("text/plain","")}catch{}},In.onDragEnter=function(ri){var bi=In.props.context.onNodeDragEnter;ri.preventDefault(),ri.stopPropagation(),bi(ri,(0,dr.Z)(In))},In.onDragOver=function(ri){var bi=In.props.context.onNodeDragOver;ri.preventDefault(),ri.stopPropagation(),bi(ri,(0,dr.Z)(In))},In.onDragLeave=function(ri){var bi=In.props.context.onNodeDragLeave;ri.stopPropagation(),bi(ri,(0,dr.Z)(In))},In.onDragEnd=function(ri){var bi=In.props.context.onNodeDragEnd;ri.stopPropagation(),In.setState({dragNodeHighlight:!1}),bi(ri,(0,dr.Z)(In))},In.onDrop=function(ri){var bi=In.props.context.onNodeDrop;ri.preventDefault(),ri.stopPropagation(),In.setState({dragNodeHighlight:!1}),bi(ri,(0,dr.Z)(In))},In.onExpand=function(ri){var bi=In.props,_n=bi.loading,Ua=bi.context.onNodeExpand;_n||Ua(ri,pn(In.props))},In.setSelectHandle=function(ri){In.selectHandle=ri},In.getNodeState=function(){var ri=In.props.expanded;return In.isLeaf()?null:ri?ka:Io},In.hasChildren=function(){var ri=In.props.eventKey,bi=In.props.context.keyEntities,_n=bi[ri]||{},Ua=_n.children;return!!(Ua||[]).length},In.isLeaf=function(){var ri=In.props,bi=ri.isLeaf,_n=ri.loaded,Ua=In.props.context.loadData,va=In.hasChildren();return bi===!1?!1:bi||!Ua&&!va||Ua&&_n&&!va},In.isDisabled=function(){var ri=In.props.disabled,bi=In.props.context.disabled;return!!(bi||ri)},In.isCheckable=function(){var ri=In.props.checkable,bi=In.props.context.checkable;return!bi||ri===!1?!1:bi},In.syncLoadData=function(ri){var bi=ri.expanded,_n=ri.loading,Ua=ri.loaded,va=In.props.context,Va=va.loadData,Qi=va.onNodeLoad;_n||Va&&bi&&!In.isLeaf()&&!In.hasChildren()&&!Ua&&Qi(pn(In.props))},In.isDraggable=function(){var ri=In.props,bi=ri.data,_n=ri.context.draggable;return!!(_n&&(!_n.nodeDraggable||_n.nodeDraggable(bi)))},In.renderDragHandler=function(){var ri=In.props.context,bi=ri.draggable,_n=ri.prefixCls;return bi?.icon?d.createElement("span",{className:"".concat(_n,"-draggable-icon")},bi.icon):null},In.renderSwitcherIconDom=function(ri){var bi=In.props.switcherIcon,_n=In.props.context.switcherIcon,Ua=bi||_n;return typeof Ua=="function"?Ua((0,h.Z)((0,h.Z)({},In.props),{},{isLeaf:ri})):Ua},In.renderSwitcher=function(){var ri=In.props.expanded,bi=In.props.context.prefixCls;if(In.isLeaf()){var _n=In.renderSwitcherIconDom(!0);return _n!==!1?d.createElement("span",{className:E()("".concat(bi,"-switcher"),"".concat(bi,"-switcher-noop"))},_n):null}var Ua=E()("".concat(bi,"-switcher"),"".concat(bi,"-switcher_").concat(ri?ka:Io)),va=In.renderSwitcherIconDom(!1);return va!==!1?d.createElement("span",{onClick:In.onExpand,className:Ua},va):null},In.renderCheckbox=function(){var ri=In.props,bi=ri.checked,_n=ri.halfChecked,Ua=ri.disableCheckbox,va=In.props.context.prefixCls,Va=In.isDisabled(),Qi=In.isCheckable();if(!Qi)return null;var ro=typeof Qi!="boolean"?Qi:null;return d.createElement("span",{className:E()("".concat(va,"-checkbox"),bi&&"".concat(va,"-checkbox-checked"),!bi&&_n&&"".concat(va,"-checkbox-indeterminate"),(Va||Ua)&&"".concat(va,"-checkbox-disabled")),onClick:In.onCheck},ro)},In.renderIcon=function(){var ri=In.props.loading,bi=In.props.context.prefixCls;return d.createElement("span",{className:E()("".concat(bi,"-iconEle"),"".concat(bi,"-icon__").concat(In.getNodeState()||"docu"),ri&&"".concat(bi,"-icon_loading"))})},In.renderSelector=function(){var ri=In.state.dragNodeHighlight,bi=In.props,_n=bi.title,Ua=bi.selected,va=bi.icon,Va=bi.loading,Qi=bi.data,ro=In.props.context,Pe=ro.prefixCls,Nt=ro.showIcon,un=ro.icon,xn=ro.loadData,zn=ro.titleRender,sr=In.isDisabled(),Tr="".concat(Pe,"-node-content-wrapper"),Br;if(Nt){var Er=va||un;Br=Er?d.createElement("span",{className:E()("".concat(Pe,"-iconEle"),"".concat(Pe,"-icon__customize"))},typeof Er=="function"?Er(In.props):Er):In.renderIcon()}else xn&&Va&&(Br=In.renderIcon());var Sr;typeof _n=="function"?Sr=_n(Qi):zn?Sr=zn(Qi):Sr=_n;var Vr=d.createElement("span",{className:"".concat(Pe,"-title")},Sr);return d.createElement("span",{ref:In.setSelectHandle,title:typeof _n=="string"?_n:"",className:E()("".concat(Tr),"".concat(Tr,"-").concat(In.getNodeState()||"normal"),!sr&&(Ua||ri)&&"".concat(Pe,"-node-selected")),onMouseEnter:In.onMouseEnter,onMouseLeave:In.onMouseLeave,onContextMenu:In.onContextMenu,onClick:In.onSelectorClick,onDoubleClick:In.onSelectorDoubleClick},Br,Vr,In.renderDropIndicator())},In.renderDropIndicator=function(){var ri=In.props,bi=ri.disabled,_n=ri.eventKey,Ua=In.props.context,va=Ua.draggable,Va=Ua.dropLevelOffset,Qi=Ua.dropPosition,ro=Ua.prefixCls,Pe=Ua.indent,Nt=Ua.dropIndicatorRender,un=Ua.dragOverNodeKey,xn=Ua.direction,zn=va!==!1,sr=!bi&&zn&&un===_n;return sr?Nt({dropPosition:Qi,dropLevelOffset:Va,indent:Pe,prefixCls:ro,direction:xn}):null},In}return(0,qn.Z)(tr,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var di=this.props.selectable,oi=this.props.context.selectable;return typeof di=="boolean"?di:oi}},{key:"render",value:function(){var di,oi=this.props,ki=oi.eventKey,ri=oi.className,bi=oi.style,_n=oi.dragOver,Ua=oi.dragOverGapTop,va=oi.dragOverGapBottom,Va=oi.isLeaf,Qi=oi.isStart,ro=oi.isEnd,Pe=oi.expanded,Nt=oi.selected,un=oi.checked,xn=oi.halfChecked,zn=oi.loading,sr=oi.domRef,Tr=oi.active,Br=oi.data,Er=oi.onMouseMove,Sr=oi.selectable,Vr=(0,v.Z)(oi,Cr),fi=this.props.context,xr=fi.prefixCls,Wr=fi.filterTreeNode,ti=fi.keyEntities,xi=fi.dropContainerKey,Gi=fi.dropTargetKey,_i=fi.draggingNodeKey,da=this.isDisabled(),Sa=(0,K.Z)(Vr,{aria:!0,data:!0}),Pa=ti[ki]||{},oo=Pa.level,mo=ro[ro.length-1],Ga=this.isDraggable(),no=!da&&Ga,ca=_i===ki,co=Sr!==void 0?{"aria-selected":!!Sr}:void 0;return d.createElement("div",(0,i.Z)({ref:sr,className:E()(ri,"".concat(xr,"-treenode"),(di={},(0,l.Z)(di,"".concat(xr,"-treenode-disabled"),da),(0,l.Z)(di,"".concat(xr,"-treenode-switcher-").concat(Pe?"open":"close"),!Va),(0,l.Z)(di,"".concat(xr,"-treenode-checkbox-checked"),un),(0,l.Z)(di,"".concat(xr,"-treenode-checkbox-indeterminate"),xn),(0,l.Z)(di,"".concat(xr,"-treenode-selected"),Nt),(0,l.Z)(di,"".concat(xr,"-treenode-loading"),zn),(0,l.Z)(di,"".concat(xr,"-treenode-active"),Tr),(0,l.Z)(di,"".concat(xr,"-treenode-leaf-last"),mo),(0,l.Z)(di,"".concat(xr,"-treenode-draggable"),Ga),(0,l.Z)(di,"dragging",ca),(0,l.Z)(di,"drop-target",Gi===ki),(0,l.Z)(di,"drop-container",xi===ki),(0,l.Z)(di,"drag-over",!da&&_n),(0,l.Z)(di,"drag-over-gap-top",!da&&Ua),(0,l.Z)(di,"drag-over-gap-bottom",!da&&va),(0,l.Z)(di,"filter-node",Wr&&Wr(pn(this.props))),di)),style:bi,draggable:no,"aria-grabbed":ca,onDragStart:no?this.onDragStart:void 0,onDragEnter:Ga?this.onDragEnter:void 0,onDragOver:Ga?this.onDragOver:void 0,onDragLeave:Ga?this.onDragLeave:void 0,onDrop:Ga?this.onDrop:void 0,onDragEnd:Ga?this.onDragEnd:void 0,onMouseMove:Er},co,Sa),d.createElement(xa,{prefixCls:xr,level:oo,isStart:Qi,isEnd:ro}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),tr}(d.Component),Is=function(Nn){return d.createElement(ci.Consumer,null,function(tr){return d.createElement(_s,(0,i.Z)({},Nn,{context:tr}))})};Is.displayName="TreeNode",Is.defaultProps={title:Co},Is.isTreeNode=1;const xs=null;var Zs=null;function Ns(an,Nn){if(!an)return[];var tr=an.slice(),In=tr.indexOf(Nn);return In>=0&&tr.splice(In,1),tr}function Us(an,Nn){var tr=(an||[]).slice();return tr.indexOf(Nn)===-1&&tr.push(Nn),tr}function fu(an){return an.split("-")}function bu(an,Nn){return"".concat(an,"-").concat(Nn)}function Ys(an){return an&&an.type&&an.type.isTreeNode}function Hu(an,Nn){var tr=[],In=Nn[an];function di(){var oi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];oi.forEach(function(ki){var ri=ki.key,bi=ki.children;tr.push(ri),di(bi)})}return di(In.children),tr}function Zu(an){if(an.parent){var Nn=fu(an.pos);return Number(Nn[Nn.length-1])===an.parent.children.length-1}return!1}function ql(an){var Nn=fu(an.pos);return Number(Nn[Nn.length-1])===0}function Sn(an,Nn,tr,In,di,oi,ki,ri,bi,_n){var Ua,va=an.clientX,Va=an.clientY,Qi=an.target.getBoundingClientRect(),ro=Qi.top,Pe=Qi.height,Nt=(_n==="rtl"?-1:1)*((di?.x||0)-va),un=(Nt-12)/In,xn=ri[tr.props.eventKey];if(Va<ro+Pe/2){var zn=ki.findIndex(function(Gi){return Gi.key===xn.key}),sr=zn<=0?0:zn-1,Tr=ki[sr].key;xn=ri[Tr]}var Br=xn.key,Er=xn,Sr=xn.key,Vr=0,fi=0;if(!bi.includes(Br))for(var xr=0;xr<un&&Zu(xn);xr+=1)xn=xn.parent,fi+=1;var Wr=Nn.props.data,ti=xn.node,xi=!0;return ql(xn)&&xn.level===0&&Va<ro+Pe/2&&oi({dragNode:Wr,dropNode:ti,dropPosition:-1})&&xn.key===tr.props.eventKey?Vr=-1:(Er.children||[]).length&&bi.includes(Sr)?oi({dragNode:Wr,dropNode:ti,dropPosition:0})?Vr=0:xi=!1:fi===0?un>-1.5?oi({dragNode:Wr,dropNode:ti,dropPosition:1})?Vr=1:xi=!1:oi({dragNode:Wr,dropNode:ti,dropPosition:0})?Vr=0:oi({dragNode:Wr,dropNode:ti,dropPosition:1})?Vr=1:xi=!1:oi({dragNode:Wr,dropNode:ti,dropPosition:1})?Vr=1:xi=!1,{dropPosition:Vr,dropLevelOffset:fi,dropTargetKey:xn.key,dropTargetPos:xn.pos,dragOverNodeKey:Sr,dropContainerKey:Vr===0?null:((Ua=xn.parent)===null||Ua===void 0?void 0:Ua.key)||null,dropAllowed:xi}}function Wn(an,Nn){if(an){var tr=Nn.multiple;return tr?an.slice():an.length?[an[0]]:an}}var vr=function(Nn){return Nn};function kr(an,Nn){if(!an)return[];var tr=Nn||{},In=tr.processProps,di=In===void 0?vr:In,oi=Array.isArray(an)?an:[an];return oi.map(function(ki){var ri=ki.children,bi=_objectWithoutProperties(ki,Zs),_n=kr(ri,Nn);return React.createElement(TreeNode,_extends({key:bi.key},di(bi)),_n)})}function ui(an){if(!an)return null;var Nn;if(Array.isArray(an))Nn={checkedKeys:an,halfCheckedKeys:void 0};else if(_typeof(an)==="object")Nn={checkedKeys:an.checked||void 0,halfCheckedKeys:an.halfChecked||void 0};else return warning(!1,"`checkedKeys` is not an array or an object"),null;return Nn}function ta(an,Nn){var tr=new Set;function In(di){if(!tr.has(di)){var oi=Nn[di];if(oi){tr.add(di);var ki=oi.parent,ri=oi.node;ri.disabled||ki&&In(ki.key)}}}return(an||[]).forEach(function(di){In(di)}),_toConsumableArray(tr)}var St=null;function pt(an,Nn){return an??Nn}function kt(an){var Nn=an||{},tr=Nn.title,In=Nn._title,di=Nn.key,oi=Nn.children,ki=tr||"title";return{title:ki,_title:In||[ki],key:di||"key",children:oi||"children"}}function _t(an,Nn){var tr=new Map;function In(di){var oi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(di||[]).forEach(function(ki){var ri=ki[Nn.key],bi=ki[Nn.children];warning(ri!=null,"Tree node must have a certain key: [".concat(oi).concat(ri,"]"));var _n=String(ri);warning(!tr.has(_n)||ri===null||ri===void 0,"Same 'key' exist in the Tree: ".concat(_n)),tr.set(_n,!0),In(bi,"".concat(oi).concat(_n," > "))})}In(an)}function Mn(an){function Nn(tr){var In=toArray(tr);return In.map(function(di){if(!isTreeNode(di))return warning(!di,"Tree/TreeNode can only accept TreeNode as children."),null;var oi=di.key,ki=di.props,ri=ki.children,bi=_objectWithoutProperties(ki,St),_n=_objectSpread({key:oi},bi),Ua=Nn(ri);return Ua.length&&(_n.children=Ua),_n}).filter(function(di){return di})}return Nn(an)}function Pr(an,Nn,tr){var In=kt(tr),di=In._title,oi=In.key,ki=In.children,ri=new Set(Nn===!0?[]:Nn),bi=[];function _n(Ua){var va=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ua.map(function(Va,Qi){for(var ro=getPosition(va?va.pos:"0",Qi),Pe=pt(Va[oi],ro),Nt,un=0;un<di.length;un+=1){var xn=di[un];if(Va[xn]!==void 0){Nt=Va[xn];break}}var zn=_objectSpread(_objectSpread({},omit(Va,[].concat(_toConsumableArray(di),[oi,ki]))),{},{title:Nt,key:Pe,parent:va,pos:ro,children:null,data:Va,isStart:[].concat(_toConsumableArray(va?va.isStart:[]),[Qi===0]),isEnd:[].concat(_toConsumableArray(va?va.isEnd:[]),[Qi===Ua.length-1])});return bi.push(zn),Nn===!0||ri.has(Pe)?zn.children=_n(Va[ki]||[],zn):zn.children=[],zn})}return _n(an),bi}function Hi(an,Nn,tr){var In={};(0,p.Z)(tr)==="object"?In=tr:In={externalGetKey:tr},In=In||{};var di=In,oi=di.childrenPropName,ki=di.externalGetKey,ri=di.fieldNames,bi=kt(ri),_n=bi.key,Ua=bi.children,va=oi||Ua,Va;ki?typeof ki=="string"?Va=function(Pe){return Pe[ki]}:typeof ki=="function"&&(Va=function(Pe){return ki(Pe)}):Va=function(Pe,Nt){return pt(Pe[_n],Nt)};function Qi(ro,Pe,Nt,un){var xn=ro?ro[va]:an,zn=ro?bu(Nt.pos,Pe):"0",sr=ro?[].concat((0,s.Z)(un),[ro]):[];if(ro){var Tr=Va(ro,zn),Br={node:ro,index:Pe,pos:zn,key:Tr,parentPos:Nt.node?Nt.pos:null,level:Nt.level+1,nodes:sr};Nn(Br)}xn&&xn.forEach(function(Er,Sr){Qi(Er,Sr,{node:ro,pos:zn,level:Nt?Nt.level+1:-1},sr)})}Qi(null)}function jt(an){var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tr=Nn.initWrapper,In=Nn.processEntity,di=Nn.onProcessFinished,oi=Nn.externalGetKey,ki=Nn.childrenPropName,ri=Nn.fieldNames,bi=arguments.length>2?arguments[2]:void 0,_n=oi||bi,Ua={},va={},Va={posEntities:Ua,keyEntities:va};return tr&&(Va=tr(Va)||Va),Hi(an,function(Qi){var ro=Qi.node,Pe=Qi.index,Nt=Qi.pos,un=Qi.key,xn=Qi.parentPos,zn=Qi.level,sr=Qi.nodes,Tr={node:ro,nodes:sr,index:Pe,key:un,pos:Nt,level:zn},Br=pt(un,Nt);Ua[Nt]=Tr,va[Br]=Tr,Tr.parent=Ua[xn],Tr.parent&&(Tr.parent.children=Tr.parent.children||[],Tr.parent.children.push(Tr)),In&&In(Tr,Va)},{externalGetKey:_n,childrenPropName:ki,fieldNames:ri}),di&&di(Va),Va}function $n(an,Nn){var tr=Nn.expandedKeys,In=Nn.selectedKeys,di=Nn.loadedKeys,oi=Nn.loadingKeys,ki=Nn.checkedKeys,ri=Nn.halfCheckedKeys,bi=Nn.dragOverNodeKey,_n=Nn.dropPosition,Ua=Nn.keyEntities,va=Ua[an],Va={eventKey:an,expanded:tr.indexOf(an)!==-1,selected:In.indexOf(an)!==-1,loaded:di.indexOf(an)!==-1,loading:oi.indexOf(an)!==-1,checked:ki.indexOf(an)!==-1,halfChecked:ri.indexOf(an)!==-1,pos:String(va?va.pos:""),dragOver:bi===an&&_n===0,dragOverGapTop:bi===an&&_n===-1,dragOverGapBottom:bi===an&&_n===1};return Va}function pn(an){var Nn=an.data,tr=an.expanded,In=an.selected,di=an.checked,oi=an.loaded,ki=an.loading,ri=an.halfChecked,bi=an.dragOver,_n=an.dragOverGapTop,Ua=an.dragOverGapBottom,va=an.pos,Va=an.active,Qi=an.eventKey,ro=(0,h.Z)((0,h.Z)({},Nn),{},{expanded:tr,selected:In,checked:di,loaded:oi,loading:ki,halfChecked:ri,dragOver:bi,dragOverGapTop:_n,dragOverGapBottom:Ua,pos:va,active:Va,key:Qi});return"props"in ro||Object.defineProperty(ro,"props",{get:function(){return(0,y.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),an}}),ro}const ee=function(an,Nn){var tr=d.useRef({options:null,info:null}),In=d.useCallback(function(){return tr.current.options!==an&&(tr.current.options=an,tr.current.info=jt(an,{fieldNames:Nn,initWrapper:function(oi){return(0,h.Z)((0,h.Z)({},oi),{},{pathKeyEntities:{}})},processEntity:function(oi,ki){var ri=oi.nodes.map(function(bi){return bi[Nn.value]}).join(nr);ki.pathKeyEntities[ri]=oi,oi.key=ri}})),tr.current.info.pathKeyEntities},[Nn,an]);return In},oe=function(an,Nn){return d.useCallback(function(tr){var In=[],di=[];return tr.forEach(function(oi){var ki=gi(oi,an,Nn);ki.every(function(ri){return ri.option})?di.push(oi):In.push(oi)}),[di,In]},[an,Nn])};function De(an){var Nn=d.useRef();Nn.current=an;var tr=d.useCallback(function(){return Nn.current.apply(Nn,arguments)},[]);return tr}function Be(an){return d.useMemo(function(){if(!an)return[!1,{}];var Nn={matchInputWidth:!0,limit:50};return an&&(0,p.Z)(an)==="object"&&(Nn=(0,h.Z)((0,h.Z)({},Nn),an)),Nn.limit<=0&&delete Nn.limit,[!0,Nn]},[an])}var gt=d.memo(function(an){var Nn=an.children;return Nn},function(an,Nn){return!Nn.open});const Ht=gt;function nn(an){var Nn,tr=an.prefixCls,In=an.checked,di=an.halfChecked,oi=an.disabled,ki=an.onClick,ri=an.disableCheckbox,bi=d.useContext(Pi),_n=bi.checkable,Ua=typeof _n!="boolean"?_n:null;return d.createElement("span",{className:E()("".concat(tr),(Nn={},(0,l.Z)(Nn,"".concat(tr,"-checked"),In),(0,l.Z)(Nn,"".concat(tr,"-indeterminate"),!In&&di),(0,l.Z)(Nn,"".concat(tr,"-disabled"),oi||ri),Nn)),onClick:ki},Ua)}var Rn="__cascader_fix_label__";function Yn(an){var Nn=an.prefixCls,tr=an.multiple,In=an.options,di=an.activeValue,oi=an.prevValuePath,ki=an.onToggleOpen,ri=an.onSelect,bi=an.onActive,_n=an.checkedSet,Ua=an.halfCheckedSet,va=an.loadingKeys,Va=an.isSelectable,Qi=an.searchValue,ro="".concat(Nn,"-menu"),Pe="".concat(Nn,"-menu-item"),Nt=d.useContext(Pi),un=Nt.fieldNames,xn=Nt.changeOnSelect,zn=Nt.expandTrigger,sr=Nt.expandIcon,Tr=Nt.loadingIcon,Br=Nt.dropdownMenuColumnStyle,Er=zn==="hover",Sr=d.useMemo(function(){return In.map(function(Vr){var fi,xr=Vr.disabled,Wr=Vr.disableCheckbox,ti=Vr[aa],xi=(fi=Vr[Rn])!==null&&fi!==void 0?fi:Vr[un.label],Gi=Vr[un.value],_i=Ba(Vr,un),da=ti?ti.map(function(Ga){return Ga[un.value]}):[].concat((0,s.Z)(oi),[Gi]),Sa=ua(da),Pa=va.includes(Sa),oo=_n.has(Sa),mo=Ua.has(Sa);return{disabled:xr,label:xi,value:Gi,isLeaf:_i,isLoading:Pa,checked:oo,halfChecked:mo,option:Vr,disableCheckbox:Wr,fullPath:da,fullPathKey:Sa}})},[In,_n,un,Ua,va,oi]);return d.createElement("ul",{className:ro,role:"menu"},Sr.map(function(Vr){var fi,xr=Vr.disabled,Wr=Vr.label,ti=Vr.value,xi=Vr.isLeaf,Gi=Vr.isLoading,_i=Vr.checked,da=Vr.halfChecked,Sa=Vr.option,Pa=Vr.fullPath,oo=Vr.fullPathKey,mo=Vr.disableCheckbox,Ga=function(){if(!(xr||Qi)){var Yo=(0,s.Z)(Pa);Er&&xi&&Yo.pop(),bi(Yo)}},no=function(){Va(Sa)&&ri(Pa,xi)},ca;return typeof Sa.title=="string"?ca=Sa.title:typeof Wr=="string"&&(ca=Wr),d.createElement("li",{key:oo,className:E()(Pe,(fi={},(0,l.Z)(fi,"".concat(Pe,"-expand"),!xi),(0,l.Z)(fi,"".concat(Pe,"-active"),di===ti||di===oo),(0,l.Z)(fi,"".concat(Pe,"-disabled"),xr),(0,l.Z)(fi,"".concat(Pe,"-loading"),Gi),fi)),style:Br,role:"menuitemcheckbox",title:ca,"aria-checked":_i,"data-path-key":oo,onClick:function(){Ga(),!mo&&(!tr||xi)&&no()},onDoubleClick:function(){xn&&ki(!1)},onMouseEnter:function(){Er&&Ga()},onMouseDown:function(Yo){Yo.preventDefault()}},tr&&d.createElement(nn,{prefixCls:"".concat(Nn,"-checkbox"),checked:_i,halfChecked:da,disabled:xr||mo,disableCheckbox:mo,onClick:function(Yo){mo||(Yo.stopPropagation(),no())}}),d.createElement("div",{className:"".concat(Pe,"-content")},Wr),!Gi&&sr&&!xi&&d.createElement("div",{className:"".concat(Pe,"-expand-icon")},sr),Gi&&Tr&&d.createElement("div",{className:"".concat(Pe,"-loading-icon")},Tr))}))}const gr=function(){var an=T(),Nn=an.multiple,tr=an.open,In=d.useContext(Pi),di=In.values,oi=d.useState([]),ki=(0,u.Z)(oi,2),ri=ki[0],bi=ki[1];return d.useEffect(function(){if(tr&&!Nn){var _n=di[0];bi(_n||[])}},[tr]),[ri,bi]},Ai=function(an,Nn,tr,In,di,oi){var ki=T(),ri=ki.direction,bi=ki.searchValue,_n=ki.toggleOpen,Ua=ki.open,va=ri==="rtl",Va=d.useMemo(function(){for(var Br=-1,Er=Nn,Sr=[],Vr=[],fi=In.length,xr=Mo(Nn,tr),Wr=function(Sa){var Pa=Er.findIndex(function(oo,mo){return(xr[mo]?ua(xr[mo]):oo[tr.value])===In[Sa]});if(Pa===-1)return"break";Br=Pa,Sr.push(Br),Vr.push(In[Sa]),Er=Er[Br][tr.children]},ti=0;ti<fi&&Er;ti+=1){var xi=Wr(ti);if(xi==="break")break}for(var Gi=Nn,_i=0;_i<Sr.length-1;_i+=1)Gi=Gi[Sr[_i]][tr.children];return[Vr,Br,Gi,xr]},[In,tr,Nn]),Qi=(0,u.Z)(Va,4),ro=Qi[0],Pe=Qi[1],Nt=Qi[2],un=Qi[3],xn=function(Er){di(Er)},zn=function(Er){var Sr=Nt.length,Vr=Pe;Vr===-1&&Er<0&&(Vr=Sr);for(var fi=0;fi<Sr;fi+=1){Vr=(Vr+Er+Sr)%Sr;var xr=Nt[Vr];if(xr&&!xr.disabled){var Wr=ro.slice(0,-1).concat(un[Vr]?ua(un[Vr]):xr[tr.value]);xn(Wr);return}}},sr=function(){if(ro.length>1){var Er=ro.slice(0,-1);xn(Er)}else _n(!1)},Tr=function(){var Er,Sr=((Er=Nt[Pe])===null||Er===void 0?void 0:Er[tr.children])||[],Vr=Sr.find(function(xr){return!xr.disabled});if(Vr){var fi=[].concat((0,s.Z)(ro),[Vr[tr.value]]);xn(fi)}};d.useImperativeHandle(an,function(){return{onKeyDown:function(Er){var Sr=Er.which;switch(Sr){case x.Z.UP:case x.Z.DOWN:{var Vr=0;Sr===x.Z.UP?Vr=-1:Sr===x.Z.DOWN&&(Vr=1),Vr!==0&&zn(Vr);break}case x.Z.LEFT:{if(bi)break;va?Tr():sr();break}case x.Z.RIGHT:{if(bi)break;va?sr():Tr();break}case x.Z.BACKSPACE:{bi||sr();break}case x.Z.ENTER:{if(ro.length){var fi=Nt[Pe],xr=fi?.[aa]||[];xr.length?oi(xr.map(function(Wr){return Wr[tr.value]}),xr[xr.length-1]):oi(ro,Nt[Pe])}break}case x.Z.ESC:_n(!1),Ua&&Er.stopPropagation()}},onKeyUp:function(){}}})};var $i=d.forwardRef(function(an,Nn){var tr,In,di,oi,ki=T(),ri=ki.prefixCls,bi=ki.multiple,_n=ki.searchValue,Ua=ki.toggleOpen,va=ki.notFoundContent,Va=ki.direction,Qi=ki.open,ro=d.useRef(),Pe=Va==="rtl",Nt=d.useContext(Pi),un=Nt.options,xn=Nt.values,zn=Nt.halfValues,sr=Nt.fieldNames,Tr=Nt.changeOnSelect,Br=Nt.onSelect,Er=Nt.searchOptions,Sr=Nt.dropdownPrefixCls,Vr=Nt.loadData,fi=Nt.expandTrigger,xr=Sr||ri,Wr=d.useState([]),ti=(0,u.Z)(Wr,2),xi=ti[0],Gi=ti[1],_i=function(cs){if(!(!Vr||_n)){var Do=gi(cs,un,sr),fs=Do.map(function(Qs){var du=Qs.option;return du}),is=fs[fs.length-1];if(is&&!Ba(is,sr)){var Os=ua(cs);Gi(function(Qs){return[].concat((0,s.Z)(Qs),[Os])}),Vr(fs)}}};d.useEffect(function(){xi.length&&xi.forEach(function(Ss){var cs=Ka(Ss),Do=gi(cs,un,sr,!0).map(function(is){var Os=is.option;return Os}),fs=Do[Do.length-1];(!fs||fs[sr.children]||Ba(fs,sr))&&Gi(function(is){return is.filter(function(Os){return Os!==Ss})})})},[un,xi,sr]);var da=d.useMemo(function(){return new Set(_a(xn))},[xn]),Sa=d.useMemo(function(){return new Set(_a(zn))},[zn]),Pa=gr(),oo=(0,u.Z)(Pa,2),mo=oo[0],Ga=oo[1],no=function(cs){Ga(cs),_i(cs)},ca=function(cs){var Do=cs.disabled,fs=Ba(cs,sr);return!Do&&(fs||Tr||bi)},co=function(cs,Do){var fs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Br(cs),!bi&&(Do||Tr&&(fi==="hover"||fs))&&Ua(!1)},Yo=d.useMemo(function(){return _n?Er:un},[_n,Er,un]),bo=d.useMemo(function(){for(var Ss=[{options:Yo}],cs=Yo,Do=Mo(cs,sr),fs=function(){var du=mo[is],Yu=cs.find(function(Xu,su){return(Do[su]?ua(Do[su]):Xu[sr.value])===du}),$u=Yu?.[sr.children];if(!($u!=null&&$u.length))return"break";cs=$u,Ss.push({options:$u})},is=0;is<mo.length;is+=1){var Os=fs();if(Os==="break")break}return Ss},[Yo,mo,sr]),Ea=function(cs,Do){ca(Do)&&co(cs,Ba(Do,sr),!0)};Ai(Nn,Yo,sr,mo,no,Ea),d.useEffect(function(){for(var Ss=0;Ss<mo.length;Ss+=1){var cs,Do=mo.slice(0,Ss+1),fs=ua(Do),is=(cs=ro.current)===null||cs===void 0?void 0:cs.querySelector('li[data-path-key="'.concat(fs.replace(/\\{0,2}"/g,'\\"'),'"]'));is&&Ma(is)}},[mo]);var ko=!((tr=bo[0])!==null&&tr!==void 0&&(In=tr.options)!==null&&In!==void 0&&In.length),Es=[(di={},(0,l.Z)(di,sr.value,"__EMPTY__"),(0,l.Z)(di,Rn,va),(0,l.Z)(di,"disabled",!0),di)],Ts=(0,h.Z)((0,h.Z)({},an),{},{multiple:!ko&&bi,onSelect:co,onActive:no,onToggleOpen:Ua,checkedSet:da,halfCheckedSet:Sa,loadingKeys:xi,isSelectable:ca}),rs=ko?[{options:Es}]:bo,ls=rs.map(function(Ss,cs){var Do=mo.slice(0,cs),fs=mo[cs];return d.createElement(Yn,(0,i.Z)({key:cs},Ts,{searchValue:_n,prefixCls:xr,options:Ss.options,prevValuePath:Do,activeValue:fs}))});return d.createElement(Ht,{open:Qi},d.createElement("div",{className:E()("".concat(xr,"-menus"),(oi={},(0,l.Z)(oi,"".concat(xr,"-menu-empty"),ko),(0,l.Z)(oi,"".concat(xr,"-rtl"),Pe),oi)),ref:ro},ls))});const ma=$i;function La(an){var Nn=an.onPopupVisibleChange,tr=an.popupVisible,In=an.popupClassName,di=an.popupPlacement;warning(!Nn,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(tr===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(In===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(di===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Qa(an,Nn){if(an){var tr=function In(di){for(var oi=0;oi<di.length;oi++){var ki=di[oi];if(ki[Nn?.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(ki[Nn?.children])&&In(ki[Nn?.children]))return!0}};tr(an)}}const go=null;var Ao=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function Fo(an){return Array.isArray(an)&&Array.isArray(an[0])}function Ho(an){return an?Fo(an)?an:(an.length===0?[]:[an]).map(function(Nn){return Array.isArray(Nn)?Nn:[Nn]}):[]}var eu=d.forwardRef(function(an,Nn){var tr=an.id,In=an.prefixCls,di=In===void 0?"rc-cascader":In,oi=an.fieldNames,ki=an.defaultValue,ri=an.value,bi=an.changeOnSelect,_n=an.onChange,Ua=an.displayRender,va=an.checkable,Va=an.searchValue,Qi=an.onSearch,ro=an.showSearch,Pe=an.expandTrigger,Nt=an.options,un=an.dropdownPrefixCls,xn=an.loadData,zn=an.popupVisible,sr=an.open,Tr=an.popupClassName,Br=an.dropdownClassName,Er=an.dropdownMenuColumnStyle,Sr=an.popupPlacement,Vr=an.placement,fi=an.onDropdownVisibleChange,xr=an.onPopupVisibleChange,Wr=an.expandIcon,ti=Wr===void 0?">":Wr,xi=an.loadingIcon,Gi=an.children,_i=an.dropdownMatchSelectWidth,da=_i===void 0?!1:_i,Sa=an.showCheckedStrategy,Pa=Sa===void 0?ir:Sa,oo=(0,v.Z)(an,Ao),mo=ia(tr),Ga=!!va,no=g(ki,{value:ri,postState:Ho}),ca=(0,u.Z)(no,2),co=ca[0],Yo=ca[1],bo=d.useMemo(function(){return yo(oi)},[JSON.stringify(oi)]),Ea=d.useMemo(function(){return Nt||[]},[Nt]),ko=ee(Ea,bo),Es=d.useCallback(function(Hs){var pu=ko();return Hs.map(function(ku){var Nu=pu[ku].nodes;return Nu.map(function(Fu){return Fu[bo.value]})})},[ko,bo]),Ts=g("",{value:Va,postState:function(pu){return pu||""}}),rs=(0,u.Z)(Ts,2),ls=rs[0],Ss=rs[1],cs=function(pu,ku){Ss(pu),ku.source!=="blur"&&Qi&&Qi(pu)},Do=Be(ro),fs=(0,u.Z)(Do,2),is=fs[0],Os=fs[1],Qs=cn(ls,Ea,bo,un||di,Os,bi),du=oe(Ea,bo),Yu=d.useMemo(function(){var Hs=du(co),pu=(0,u.Z)(Hs,2),ku=pu[0],Nu=pu[1];if(!Ga||!co.length)return[ku,[],Nu];var Fu=_a(ku),Ku=ko(),sl=ur(Fu,!0,Ku),lu=sl.checkedKeys,Tu=sl.halfCheckedKeys;return[Es(lu),Es(Tu),Nu]},[Ga,co,ko,Es,du]),$u=(0,u.Z)(Yu,3),Xu=$u[0],su=$u[1],Pu=$u[2],Lu=d.useMemo(function(){var Hs=_a(Xu),pu=Nr(Hs,ko,Pa);return[].concat((0,s.Z)(Pu),(0,s.Z)(Es(pu)))},[Xu,ko,Es,Pu,Pa]),hu=ea(Lu,Ea,bo,Ga,Ua),Js=De(function(Hs){if(Yo(Hs),_n){var pu=Ho(Hs),ku=pu.map(function(Ku){return gi(Ku,Ea,bo).map(function(sl){return sl.option})}),Nu=Ga?pu:pu[0],Fu=Ga?ku:ku[0];_n(Nu,Fu)}}),ys=De(function(Hs){if(Ss(""),!Ga)Js(Hs);else{var pu=ua(Hs),ku=_a(Xu),Nu=_a(su),Fu=ku.includes(pu),Ku=Pu.some(function(nl){return ua(nl)===pu}),sl=Xu,lu=Pu;if(Ku&&!Fu)lu=Pu.filter(function(nl){return ua(nl)!==pu});else{var Tu=Fu?ku.filter(function(nl){return nl!==pu}):[].concat((0,s.Z)(ku),[pu]),Vs=ko(),Ds;if(Fu){var Ks=ur(Tu,{checked:!1,halfCheckedKeys:Nu},Vs);Ds=Ks.checkedKeys}else{var nu=ur(Tu,!0,Vs);Ds=nu.checkedKeys}var Ju=Nr(Ds,ko,Pa);sl=Es(Ju)}Js([].concat((0,s.Z)(lu),(0,s.Z)(sl)))}}),qo=function(pu,ku){if(ku.type==="clear"){Js([]);return}var Nu=ku.values[0],Fu=Nu.valueCells;ys(Fu)},Ps=sr!==void 0?sr:zn,Ws=Br||Tr,Qo=Vr||Sr,ds=function(pu){fi?.(pu),xr?.(pu)},zu=d.useMemo(function(){return{options:Ea,fieldNames:bo,values:Xu,halfValues:su,changeOnSelect:bi,onSelect:ys,checkable:va,searchOptions:Qs,dropdownPrefixCls:un,loadData:xn,expandTrigger:Pe,expandIcon:ti,loadingIcon:xi,dropdownMenuColumnStyle:Er}},[Ea,bo,Xu,su,bi,ys,va,Qs,un,xn,Pe,ti,xi,Er]),tu=!(ls?Qs:Ea).length,Ou=ls&&Os.matchInputWidth||tu?{}:{minWidth:"auto"};return d.createElement(Pi.Provider,{value:zu},d.createElement(Mr,(0,i.Z)({},oo,{ref:Nn,id:mo,prefixCls:di,dropdownMatchSelectWidth:da,dropdownStyle:Ou,displayValues:hu,onDisplayValuesChange:qo,mode:Ga?"multiple":void 0,searchValue:ls,onSearch:cs,showSearch:is,OptionList:ma,emptyOptions:tu,open:Ps,dropdownClassName:Ws,placement:Qo,onDropdownVisibleChange:ds,getRawInputElement:function(){return Gi}})))});eu.SHOW_PARENT=ir,eu.SHOW_CHILD=Lr;const Gu=eu},63451:(C,c,t)=>{"use strict";t.d(c,{Z:()=>An});var i=t(48632),s=t(32098),u=t(27702),v=t(35094),l=t(66145),h=t(23190),p=t(94285),d=t(28040),f=t.n(d),g=t(4484),y=t(27473);function b(Zt){return Zt instanceof HTMLElement?Zt:y.findDOMNode(Zt)}var E=t(76875),S=t(55006);function w(Zt,ot){var We={};return We[Zt.toLowerCase()]=ot.toLowerCase(),We["Webkit".concat(Zt)]="webkit".concat(ot),We["Moz".concat(Zt)]="moz".concat(ot),We["ms".concat(Zt)]="MS".concat(ot),We["O".concat(Zt)]="o".concat(ot.toLowerCase()),We}function x(Zt,ot){var We={animationend:w("Animation","AnimationEnd"),transitionend:w("Transition","TransitionEnd")};return Zt&&("AnimationEvent"in ot||delete We.animationend.animation,"TransitionEvent"in ot||delete We.transitionend.transition),We}var P=x((0,S.Z)(),typeof window<"u"?window:{}),R={};if((0,S.Z)()){var T=document.createElement("div");R=T.style}var A={};function I(Zt){if(A[Zt])return A[Zt];var ot=P[Zt];if(ot)for(var We=Object.keys(ot),Ft=We.length,it=0;it<Ft;it+=1){var qt=We[it];if(Object.prototype.hasOwnProperty.call(ot,qt)&&qt in R)return A[Zt]=ot[qt],A[Zt]}return""}var N=I("animationend"),K=I("transitionend"),_=!!(N&&K),W=N||"animationend",j=K||"transitionend";function re(Zt,ot){if(!Zt)return null;if((0,g.Z)(Zt)==="object"){var We=ot.replace(/-\w/g,function(Ft){return Ft[1].toUpperCase()});return Zt[We]}return"".concat(Zt,"-").concat(ot)}var X="none",Z="appear",J="enter",q="leave",L="none",$="prepare",k="start",F="active",V="end";function pe(Zt){var ot=u.useRef(!1),We=u.useState(Zt),Ft=(0,s.Z)(We,2),it=Ft[0],qt=Ft[1];u.useEffect(function(){return ot.current=!1,function(){ot.current=!0}},[]);function vn(fn,Tt){Tt&&ot.current||qt(fn)}return[it,vn]}var ce=function(ot){return+setTimeout(ot,16)},G=function(ot){return clearTimeout(ot)};typeof window<"u"&&"requestAnimationFrame"in window&&(ce=function(ot){return window.requestAnimationFrame(ot)},G=function(ot){return window.cancelAnimationFrame(ot)});var te=0,ie=new Map;function fe(Zt){ie.delete(Zt)}function Se(Zt){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;te+=1;var We=te;function Ft(it){if(it===0)fe(We),Zt();else{var qt=ce(function(){Ft(it-1)});ie.set(We,qt)}}return Ft(ot),We}Se.cancel=function(Zt){var ot=ie.get(Zt);return fe(ot),G(ot)};const he=function(){var Zt=u.useRef(null);function ot(){Se.cancel(Zt.current)}function We(Ft){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;ot();var qt=Se(function(){it<=1?Ft({isCanceled:function(){return qt!==Zt.current}}):We(Ft,it-1)});Zt.current=qt}return u.useEffect(function(){return function(){ot()}},[]),[We,ot]};var me=(0,S.Z)()?u.useLayoutEffect:u.useEffect;const _e=me;var we=[$,k,F,V],Ge=!1,ht=!0;function nt(Zt){return Zt===F||Zt===V}const Re=function(Zt,ot){var We=pe(L),Ft=(0,s.Z)(We,2),it=Ft[0],qt=Ft[1],vn=he(),fn=(0,s.Z)(vn,2),Tt=fn[0],dn=fn[1];function mn(){qt($,!0)}return _e(function(){if(it!==L&&it!==V){var Kn=we.indexOf(it),Dn=we[Kn+1],Vn=ot(it);Vn===Ge?qt(Dn,!0):Tt(function(or){function Qr(){or.isCanceled()||qt(Dn,!0)}Vn===!0?Qr():Promise.resolve(Vn).then(Qr)})}},[Zt,it]),u.useEffect(function(){return function(){dn()}},[]),[mn,it]},ue=function(Zt){var ot=(0,u.useRef)(),We=(0,u.useRef)(Zt);We.current=Zt;var Ft=u.useCallback(function(vn){We.current(vn)},[]);function it(vn){vn&&(vn.removeEventListener(j,Ft),vn.removeEventListener(W,Ft))}function qt(vn){ot.current&&ot.current!==vn&&it(ot.current),vn&&vn!==ot.current&&(vn.addEventListener(j,Ft),vn.addEventListener(W,Ft),ot.current=vn)}return u.useEffect(function(){return function(){it(ot.current)}},[]),[qt,it]};function ae(Zt,ot,We,Ft){var it=Ft.motionEnter,qt=it===void 0?!0:it,vn=Ft.motionAppear,fn=vn===void 0?!0:vn,Tt=Ft.motionLeave,dn=Tt===void 0?!0:Tt,mn=Ft.motionDeadline,Kn=Ft.motionLeaveImmediately,Dn=Ft.onAppearPrepare,Vn=Ft.onEnterPrepare,or=Ft.onLeavePrepare,Qr=Ft.onAppearStart,ni=Ft.onEnterStart,yr=Ft.onLeaveStart,si=Ft.onAppearActive,Yr=Ft.onEnterActive,Ci=Ft.onLeaveActive,Ni=Ft.onAppearEnd,fa=Ft.onEnterEnd,ha=Ft.onLeaveEnd,Ca=Ft.onVisibleChanged,li=pe(),la=(0,s.Z)(li,2),Oa=la[0],wa=la[1],vo=pe(X),Qn=(0,s.Z)(vo,2),_r=Qn[0],$r=Qn[1],Ti=pe(null),xt=(0,s.Z)(Ti,2),On=xt[0],Zn=xt[1],Ur=(0,u.useRef)(!1),En=(0,u.useRef)(null);function ln(){return We()}var jn=(0,u.useRef)(!1);function rr(ao){var Bo=ln();if(!(ao&&!ao.deadline&&ao.target!==Bo)){var jo=jn.current,Jo;_r===Z&&jo?Jo=Ni?.(Bo,ao):_r===J&&jo?Jo=fa?.(Bo,ao):_r===q&&jo&&(Jo=ha?.(Bo,ao)),_r!==X&&jo&&Jo!==!1&&($r(X,!0),Zn(null,!0))}}var Mr=ue(rr),Ir=(0,s.Z)(Mr,1),Zr=Ir[0],lr=u.useMemo(function(){var ao,Bo,jo;switch(_r){case Z:return ao={},(0,h.Z)(ao,$,Dn),(0,h.Z)(ao,k,Qr),(0,h.Z)(ao,F,si),ao;case J:return Bo={},(0,h.Z)(Bo,$,Vn),(0,h.Z)(Bo,k,ni),(0,h.Z)(Bo,F,Yr),Bo;case q:return jo={},(0,h.Z)(jo,$,or),(0,h.Z)(jo,k,yr),(0,h.Z)(jo,F,Ci),jo;default:return{}}},[_r]),Jr=Re(_r,function(ao){if(ao===$){var Bo=lr[$];return Bo?Bo(ln()):Ge}if(Ki in lr){var jo;Zn(((jo=lr[Ki])===null||jo===void 0?void 0:jo.call(lr,ln(),null))||null)}return Ki===F&&(Zr(ln()),mn>0&&(clearTimeout(En.current),En.current=setTimeout(function(){rr({deadline:!0})},mn))),ht}),pi=(0,s.Z)(Jr,2),Ri=pi[0],Ki=pi[1],ia=nt(Ki);jn.current=ia,_e(function(){wa(ot);var ao=Ur.current;if(Ur.current=!0,!!Zt){var Bo;!ao&&ot&&fn&&(Bo=Z),ao&&ot&&qt&&(Bo=J),(ao&&!ot&&dn||!ao&&Kn&&!ot&&dn)&&(Bo=q),Bo&&($r(Bo),Ri())}},[ot]),(0,u.useEffect)(function(){(_r===Z&&!fn||_r===J&&!qt||_r===q&&!dn)&&$r(X)},[fn,qt,dn]),(0,u.useEffect)(function(){return function(){Ur.current=!1,clearTimeout(En.current)}},[]);var Da=u.useRef(!1);(0,u.useEffect)(function(){Oa&&(Da.current=!0),Oa!==void 0&&_r===X&&((Da.current||Oa)&&Ca?.(Oa),Da.current=!0)},[Oa,_r]);var to=On;return lr[$]&&Ki===k&&(to=(0,i.Z)({transition:"none"},to)),[_r,Ki,to,Oa??ot]}var ve=t(87741),Me=t(58585),Ye=t(56804),qe=t(93870),At=function(Zt){(0,Ye.Z)(We,Zt);var ot=(0,qe.Z)(We);function We(){return(0,ve.Z)(this,We),ot.apply(this,arguments)}return(0,Me.Z)(We,[{key:"render",value:function(){return this.props.children}}]),We}(u.Component);const It=At;function Ce(Zt){var ot=Zt;(0,g.Z)(Zt)==="object"&&(ot=Zt.transitionSupport);function We(it){return!!(it.motionName&&ot)}var Ft=u.forwardRef(function(it,qt){var vn=it.visible,fn=vn===void 0?!0:vn,Tt=it.removeOnLeave,dn=Tt===void 0?!0:Tt,mn=it.forceRender,Kn=it.children,Dn=it.motionName,Vn=it.leavedClassName,or=it.eventProps,Qr=We(it),ni=(0,u.useRef)(),yr=(0,u.useRef)();function si(){try{return ni.current instanceof HTMLElement?ni.current:b(yr.current)}catch{return null}}var Yr=ae(Qr,fn,si,it),Ci=(0,s.Z)(Yr,4),Ni=Ci[0],fa=Ci[1],ha=Ci[2],Ca=Ci[3],li=u.useRef(Ca);Ca&&(li.current=!0);var la=u.useCallback(function(Ti){ni.current=Ti,(0,E.mH)(qt,Ti)},[qt]),Oa,wa=(0,i.Z)((0,i.Z)({},or),{},{visible:fn});if(!Kn)Oa=null;else if(Ni===X||!We(it))Ca?Oa=Kn((0,i.Z)({},wa),la):!dn&&li.current?Oa=Kn((0,i.Z)((0,i.Z)({},wa),{},{className:Vn}),la):mn?Oa=Kn((0,i.Z)((0,i.Z)({},wa),{},{style:{display:"none"}}),la):Oa=null;else{var vo,Qn;fa===$?Qn="prepare":nt(fa)?Qn="active":fa===k&&(Qn="start"),Oa=Kn((0,i.Z)((0,i.Z)({},wa),{},{className:f()(re(Dn,Ni),(vo={},(0,h.Z)(vo,re(Dn,"".concat(Ni,"-").concat(Qn)),Qn),(0,h.Z)(vo,Dn,typeof Dn=="string"),vo)),style:ha}),la)}if(u.isValidElement(Oa)&&(0,E.Yr)(Oa)){var _r=Oa,$r=_r.ref;$r||(Oa=u.cloneElement(Oa,{ref:la}))}return u.createElement(It,{ref:yr},Oa)});return Ft.displayName="CSSMotion",Ft}const Ae=Ce(_);var $e=t(4696),tt="add",ke="keep",Oe="remove",je="removed";function Et(Zt){var ot;return Zt&&(0,g.Z)(Zt)==="object"&&"key"in Zt?ot=Zt:ot={key:Zt},(0,i.Z)((0,i.Z)({},ot),{},{key:String(ot.key)})}function ct(){var Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Zt.map(Et)}function ut(){var Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],We=[],Ft=0,it=ot.length,qt=ct(Zt),vn=ct(ot);qt.forEach(function(dn){for(var mn=!1,Kn=Ft;Kn<it;Kn+=1){var Dn=vn[Kn];if(Dn.key===dn.key){Ft<Kn&&(We=We.concat(vn.slice(Ft,Kn).map(function(Vn){return(0,i.Z)((0,i.Z)({},Vn),{},{status:tt})})),Ft=Kn),We.push((0,i.Z)((0,i.Z)({},Dn),{},{status:ke})),Ft+=1,mn=!0;break}}mn||We.push((0,i.Z)((0,i.Z)({},dn),{},{status:Oe}))}),Ft<it&&(We=We.concat(vn.slice(Ft).map(function(dn){return(0,i.Z)((0,i.Z)({},dn),{},{status:tt})})));var fn={};We.forEach(function(dn){var mn=dn.key;fn[mn]=(fn[mn]||0)+1});var Tt=Object.keys(fn).filter(function(dn){return fn[dn]>1});return Tt.forEach(function(dn){We=We.filter(function(mn){var Kn=mn.key,Dn=mn.status;return Kn!==dn||Dn!==Oe}),We.forEach(function(mn){mn.key===dn&&(mn.status=ke)})}),We}var Ne=["component","children","onVisibleChanged","onAllRemoved"],mt=["status"],bt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Gt(Zt){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ae,We=function(Ft){(0,Ye.Z)(qt,Ft);var it=(0,qe.Z)(qt);function qt(){var vn;(0,ve.Z)(this,qt);for(var fn=arguments.length,Tt=new Array(fn),dn=0;dn<fn;dn++)Tt[dn]=arguments[dn];return vn=it.call.apply(it,[this].concat(Tt)),vn.state={keyEntities:[]},vn.removeKey=function(mn){var Kn=vn.state.keyEntities,Dn=Kn.map(function(Vn){return Vn.key!==mn?Vn:(0,i.Z)((0,i.Z)({},Vn),{},{status:je})});return vn.setState({keyEntities:Dn}),Dn.filter(function(Vn){var or=Vn.status;return or!==je}).length},vn}return(0,Me.Z)(qt,[{key:"render",value:function(){var fn=this,Tt=this.state.keyEntities,dn=this.props,mn=dn.component,Kn=dn.children,Dn=dn.onVisibleChanged,Vn=dn.onAllRemoved,or=(0,$e.Z)(dn,Ne),Qr=mn||u.Fragment,ni={};return bt.forEach(function(yr){ni[yr]=or[yr],delete or[yr]}),delete or.keys,u.createElement(Qr,or,Tt.map(function(yr){var si=yr.status,Yr=(0,$e.Z)(yr,mt),Ci=si===tt||si===ke;return u.createElement(ot,(0,p.Z)({},ni,{key:Yr.key,visible:Ci,eventProps:Yr,onVisibleChanged:function(fa){if(Dn?.(fa,{key:Yr.key}),!fa){var ha=fn.removeKey(Yr.key);ha===0&&Vn&&Vn()}}}),Kn)}))}}],[{key:"getDerivedStateFromProps",value:function(fn,Tt){var dn=fn.keys,mn=Tt.keyEntities,Kn=ct(dn),Dn=ut(mn,Kn);return{keyEntities:Dn.filter(function(Vn){var or=mn.find(function(Qr){var ni=Qr.key;return Vn.key===ni});return!(or&&or.status===je&&Vn.status===Oe)})}}}]),qt}(u.Component);return We.defaultProps={component:"div"},We}const hn=Gt(_),Yt=Ae;var Bt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ot){var We=ot.keyCode;if(ot.altKey&&!ot.ctrlKey||ot.metaKey||We>=Bt.F1&&We<=Bt.F12)return!1;switch(We){case Bt.ALT:case Bt.CAPS_LOCK:case Bt.CONTEXT_MENU:case Bt.CTRL:case Bt.DOWN:case Bt.END:case Bt.ESC:case Bt.HOME:case Bt.INSERT:case Bt.LEFT:case Bt.MAC_FF_META:case Bt.META:case Bt.NUMLOCK:case Bt.NUM_CENTER:case Bt.PAGE_DOWN:case Bt.PAGE_UP:case Bt.PAUSE:case Bt.PRINT_SCREEN:case Bt.RIGHT:case Bt.SHIFT:case Bt.UP:case Bt.WIN_KEY:case Bt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ot){if(ot>=Bt.ZERO&&ot<=Bt.NINE||ot>=Bt.NUM_ZERO&&ot<=Bt.NUM_MULTIPLY||ot>=Bt.A&&ot<=Bt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ot===0)return!0;switch(ot){case Bt.SPACE:case Bt.QUESTION_MARK:case Bt.NUM_PLUS:case Bt.NUM_MINUS:case Bt.NUM_PERIOD:case Bt.NUM_DIVISION:case Bt.SEMICOLON:case Bt.DASH:case Bt.EQUALS:case Bt.COMMA:case Bt.PERIOD:case Bt.SLASH:case Bt.APOSTROPHE:case Bt.SINGLE_QUOTE:case Bt.OPEN_SQUARE_BRACKET:case Bt.BACKSLASH:case Bt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Lt=Bt;var zt=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,Kt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,vt="".concat(zt," ").concat(Kt).split(/[\s\n]+/),Ve="aria-",lt="data-";function at(Zt,ot){return Zt.indexOf(ot)===0}function Xt(Zt){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,We;ot===!1?We={aria:!0,data:!0,attr:!0}:ot===!0?We={aria:!0}:We=(0,i.Z)({},ot);var Ft={};return Object.keys(Zt).forEach(function(it){(We.aria&&(it==="role"||at(it,Ve))||We.data&&at(it,lt)||We.attr&&vt.includes(it))&&(Ft[it]=Zt[it])}),Ft}var rt=u.createContext(null);const Rt=rt;var rn=function(ot){var We=ot.prefixCls,Ft=ot.className,it=ot.style,qt=ot.children,vn=ot.containerRef,fn=ot.id,Tt=ot.onMouseEnter,dn=ot.onMouseOver,mn=ot.onMouseLeave,Kn=ot.onClick,Dn=ot.onKeyDown,Vn=ot.onKeyUp,or={onMouseEnter:Tt,onMouseOver:dn,onMouseLeave:mn,onClick:Kn,onKeyDown:Dn,onKeyUp:Vn};return u.createElement(u.Fragment,null,u.createElement("div",(0,p.Z)({id:fn,className:f()("".concat(We,"-content"),Ft),style:(0,i.Z)({},it),"aria-modal":"true",role:"dialog",ref:vn},or),qt))};const sn=rn;var Jn=t(94251);function ze(Zt){return typeof Zt=="string"&&String(Number(Zt))===Zt?((0,Jn.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Zt)):Zt}function st(Zt){warning(!("wrapperClassName"in Zt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Zt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var en={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function wt(Zt,ot){var We,Ft,it,qt,vn=Zt.prefixCls,fn=Zt.open,Tt=Zt.placement,dn=Zt.inline,mn=Zt.push,Kn=Zt.forceRender,Dn=Zt.autoFocus,Vn=Zt.keyboard,or=Zt.rootClassName,Qr=Zt.rootStyle,ni=Zt.zIndex,yr=Zt.className,si=Zt.id,Yr=Zt.style,Ci=Zt.motion,Ni=Zt.width,fa=Zt.height,ha=Zt.children,Ca=Zt.contentWrapperStyle,li=Zt.mask,la=Zt.maskClosable,Oa=Zt.maskMotion,wa=Zt.maskClassName,vo=Zt.maskStyle,Qn=Zt.afterOpenChange,_r=Zt.onClose,$r=Zt.onMouseEnter,Ti=Zt.onMouseOver,xt=Zt.onMouseLeave,On=Zt.onClick,Zn=Zt.onKeyDown,Ur=Zt.onKeyUp,En=u.useRef(),ln=u.useRef(),jn=u.useRef();u.useImperativeHandle(ot,function(){return En.current});var rr=function(Go){var wr=Go.keyCode,qi=Go.shiftKey;switch(wr){case Lt.TAB:{if(wr===Lt.TAB){if(!qi&&document.activeElement===jn.current){var ja;(ja=ln.current)===null||ja===void 0||ja.focus({preventScroll:!0})}else if(qi&&document.activeElement===ln.current){var uo;(uo=jn.current)===null||uo===void 0||uo.focus({preventScroll:!0})}}break}case Lt.ESC:{_r&&Vn&&(Go.stopPropagation(),_r(Go));break}}};u.useEffect(function(){if(fn&&Dn){var Jo;(Jo=En.current)===null||Jo===void 0||Jo.focus({preventScroll:!0})}},[fn]);var Mr=u.useState(!1),Ir=(0,s.Z)(Mr,2),Zr=Ir[0],lr=Ir[1],Jr=u.useContext(Rt),pi;mn===!1?pi={distance:0}:mn===!0?pi={}:pi=mn||{};var Ri=(We=(Ft=(it=pi)===null||it===void 0?void 0:it.distance)!==null&&Ft!==void 0?Ft:Jr?.pushDistance)!==null&&We!==void 0?We:180,Ki=u.useMemo(function(){return{pushDistance:Ri,push:function(){lr(!0)},pull:function(){lr(!1)}}},[Ri]);u.useEffect(function(){if(fn){var Jo;Jr==null||(Jo=Jr.push)===null||Jo===void 0||Jo.call(Jr)}else{var Go;Jr==null||(Go=Jr.pull)===null||Go===void 0||Go.call(Jr)}},[fn]),u.useEffect(function(){return function(){var Jo;Jr==null||(Jo=Jr.pull)===null||Jo===void 0||Jo.call(Jr)}},[]);var ia=li&&u.createElement(Yt,(0,p.Z)({key:"mask"},Oa,{visible:fn}),function(Jo,Go){var wr=Jo.className,qi=Jo.style;return u.createElement("div",{className:f()("".concat(vn,"-mask"),wr,wa),style:(0,i.Z)((0,i.Z)({},qi),vo),onClick:la&&fn?_r:void 0,ref:Go})}),Da=typeof Ci=="function"?Ci(Tt):Ci,to={};if(Zr&&Ri)switch(Tt){case"top":to.transform="translateY(".concat(Ri,"px)");break;case"bottom":to.transform="translateY(".concat(-Ri,"px)");break;case"left":to.transform="translateX(".concat(Ri,"px)");break;default:to.transform="translateX(".concat(-Ri,"px)");break}Tt==="left"||Tt==="right"?to.width=ze(Ni):to.height=ze(fa);var ao={onMouseEnter:$r,onMouseOver:Ti,onMouseLeave:xt,onClick:On,onKeyDown:Zn,onKeyUp:Ur},Bo=u.createElement(Yt,(0,p.Z)({key:"panel"},Da,{visible:fn,forceRender:Kn,onVisibleChanged:function(Go){Qn?.(Go)},removeOnLeave:!1,leavedClassName:"".concat(vn,"-content-wrapper-hidden")}),function(Jo,Go){var wr=Jo.className,qi=Jo.style;return u.createElement("div",(0,p.Z)({className:f()("".concat(vn,"-content-wrapper"),wr),style:(0,i.Z)((0,i.Z)((0,i.Z)({},to),qi),Ca)},Xt(Zt,{data:!0})),u.createElement(sn,(0,p.Z)({id:si,containerRef:Go,prefixCls:vn,className:yr,style:Yr},ao),ha))}),jo=(0,i.Z)({},Qr);return ni&&(jo.zIndex=ni),u.createElement(Rt.Provider,{value:Ki},u.createElement("div",{className:f()(vn,"".concat(vn,"-").concat(Tt),or,(qt={},(0,h.Z)(qt,"".concat(vn,"-open"),fn),(0,h.Z)(qt,"".concat(vn,"-inline"),dn),qt)),style:jo,tabIndex:-1,ref:En,onKeyDown:rr},ia,u.createElement("div",{tabIndex:0,ref:ln,style:en,"aria-hidden":"true","data-sentinel":"start"}),Bo,u.createElement("div",{tabIndex:0,ref:jn,style:en,"aria-hidden":"true","data-sentinel":"end"})))}var Ke=u.forwardRef(wt);const Ut=Ke;var on=function(ot){var We=ot.open,Ft=We===void 0?!1:We,it=ot.prefixCls,qt=it===void 0?"rc-drawer":it,vn=ot.placement,fn=vn===void 0?"right":vn,Tt=ot.autoFocus,dn=Tt===void 0?!0:Tt,mn=ot.keyboard,Kn=mn===void 0?!0:mn,Dn=ot.width,Vn=Dn===void 0?378:Dn,or=ot.mask,Qr=or===void 0?!0:or,ni=ot.maskClosable,yr=ni===void 0?!0:ni,si=ot.getContainer,Yr=ot.forceRender,Ci=ot.afterOpenChange,Ni=ot.destroyOnClose,fa=ot.onMouseEnter,ha=ot.onMouseOver,Ca=ot.onMouseLeave,li=ot.onClick,la=ot.onKeyDown,Oa=ot.onKeyUp,wa=u.useState(!1),vo=(0,s.Z)(wa,2),Qn=vo[0],_r=vo[1],$r=u.useState(!1),Ti=(0,s.Z)($r,2),xt=Ti[0],On=Ti[1];(0,l.Z)(function(){On(!0)},[]);var Zn=xt?Ft:!1,Ur=u.useRef(),En=u.useRef();(0,l.Z)(function(){Zn&&(En.current=document.activeElement)},[Zn]);var ln=function(Ir){var Zr;if(_r(Ir),Ci?.(Ir),!Ir&&En.current&&!(!((Zr=Ur.current)===null||Zr===void 0)&&Zr.contains(En.current))){var lr;(lr=En.current)===null||lr===void 0||lr.focus({preventScroll:!0})}};if(!Yr&&!Qn&&!Zn&&Ni)return null;var jn={onMouseEnter:fa,onMouseOver:ha,onMouseLeave:Ca,onClick:li,onKeyDown:la,onKeyUp:Oa},rr=(0,i.Z)((0,i.Z)({},ot),{},{open:Zn,prefixCls:qt,placement:fn,autoFocus:dn,keyboard:Kn,width:Vn,mask:Qr,maskClosable:yr,inline:si===!1,afterOpenChange:ln,ref:Ur},jn);return u.createElement(v.Z,{open:Zn||Yr||Qn,autoDestroy:!1,getContainer:si,autoLock:Qr&&(Zn||Qn)},u.createElement(Ut,rr))};const An=on},10357:(C,c,t)=>{"use strict";t.d(c,{Z:()=>hn});var i=t(23190),s=t(48632),u=t(32098),v=t(4484),l=t(27702),h=t(27473);function p(Yt){return Yt instanceof HTMLElement?Yt:h.findDOMNode(Yt)}var d=t(54660);function f(Yt,Bt){typeof Yt=="function"?Yt(Bt):(0,v.Z)(Yt)==="object"&&Yt&&"current"in Yt&&(Yt.current=Bt)}function g(){for(var Yt=arguments.length,Bt=new Array(Yt),Lt=0;Lt<Yt;Lt++)Bt[Lt]=arguments[Lt];return function(zt){Bt.forEach(function(Kt){f(Kt,zt)})}}function y(Yt){var Bt,Lt,zt=isMemo(Yt)?Yt.type.type:Yt.type;return!(typeof zt=="function"&&!(!((Bt=zt.prototype)===null||Bt===void 0)&&Bt.render)||typeof Yt=="function"&&!(!((Lt=Yt.prototype)===null||Lt===void 0)&&Lt.render))}var b=t(28040),E=t.n(b);function S(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function w(Yt,Bt){var Lt={};return Lt[Yt.toLowerCase()]=Bt.toLowerCase(),Lt["Webkit".concat(Yt)]="webkit".concat(Bt),Lt["Moz".concat(Yt)]="moz".concat(Bt),Lt["ms".concat(Yt)]="MS".concat(Bt),Lt["O".concat(Yt)]="o".concat(Bt.toLowerCase()),Lt}function x(Yt,Bt){var Lt={animationend:w("Animation","AnimationEnd"),transitionend:w("Transition","TransitionEnd")};return Yt&&("AnimationEvent"in Bt||delete Lt.animationend.animation,"TransitionEvent"in Bt||delete Lt.transitionend.transition),Lt}var P=x(S(),typeof window<"u"?window:{}),R={};if(S()){var T=document.createElement("div");R=T.style}var A={};function I(Yt){if(A[Yt])return A[Yt];var Bt=P[Yt];if(Bt)for(var Lt=Object.keys(Bt),zt=Lt.length,Kt=0;Kt<zt;Kt+=1){var vt=Lt[Kt];if(Object.prototype.hasOwnProperty.call(Bt,vt)&&vt in R)return A[Yt]=Bt[vt],A[Yt]}return""}var N=I("animationend"),K=I("transitionend"),_=!!(N&&K),W=N||"animationend",j=K||"transitionend";function re(Yt,Bt){if(!Yt)return null;if((0,v.Z)(Yt)==="object"){var Lt=Bt.replace(/-\w/g,function(zt){return zt[1].toUpperCase()});return Yt[Lt]}return"".concat(Yt,"-").concat(Bt)}var X="none",Z="appear",J="enter",q="leave",L="none",$="prepare",k="start",F="active",V="end";function pe(Yt){var Bt=(0,l.useRef)(!1),Lt=(0,l.useState)(Yt),zt=(0,u.Z)(Lt,2),Kt=zt[0],vt=zt[1];function Ve(lt){Bt.current||vt(lt)}return(0,l.useEffect)(function(){return function(){Bt.current=!0}},[]),[Kt,Ve]}var ce=S()?l.useLayoutEffect:l.useEffect;const G=ce;var te=function(Bt){return+setTimeout(Bt,16)},ie=function(Bt){return clearTimeout(Bt)};typeof window<"u"&&"requestAnimationFrame"in window&&(te=function(Bt){return window.requestAnimationFrame(Bt)},ie=function(Bt){return window.cancelAnimationFrame(Bt)});var fe=0,Se=new Map;function he(Yt){Se.delete(Yt)}function me(Yt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;fe+=1;var Lt=fe;function zt(Kt){if(Kt===0)he(Lt),Yt();else{var vt=te(function(){zt(Kt-1)});Se.set(Lt,vt)}}return zt(Bt),Lt}me.cancel=function(Yt){var Bt=Se.get(Yt);return he(Bt),ie(Bt)};const _e=function(){var Yt=l.useRef(null);function Bt(){me.cancel(Yt.current)}function Lt(zt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Bt();var vt=me(function(){Kt<=1?zt({isCanceled:function(){return vt!==Yt.current}}):Lt(zt,Kt-1)});Yt.current=vt}return l.useEffect(function(){return function(){Bt()}},[]),[Lt,Bt]};var we=[$,k,F,V],Ge=!1,ht=!0;function nt(Yt){return Yt===F||Yt===V}const Re=function(Yt,Bt){var Lt=l.useState(L),zt=(0,u.Z)(Lt,2),Kt=zt[0],vt=zt[1],Ve=_e(),lt=(0,u.Z)(Ve,2),at=lt[0],Xt=lt[1];function rt(){vt($)}return G(function(){if(Kt!==L&&Kt!==V){var Rt=we.indexOf(Kt),rn=we[Rt+1],sn=Bt(Kt);sn===Ge?vt(rn):at(function(Jn){function ze(){Jn.isCanceled()||vt(rn)}sn===!0?ze():Promise.resolve(sn).then(ze)})}},[Yt,Kt]),l.useEffect(function(){return function(){Xt()}},[]),[rt,Kt]},ue=function(Yt){var Bt=(0,l.useRef)(),Lt=(0,l.useRef)(Yt);Lt.current=Yt;var zt=l.useCallback(function(Ve){Lt.current(Ve)},[]);function Kt(Ve){Ve&&(Ve.removeEventListener(j,zt),Ve.removeEventListener(W,zt))}function vt(Ve){Bt.current&&Bt.current!==Ve&&Kt(Bt.current),Ve&&Ve!==Bt.current&&(Ve.addEventListener(j,zt),Ve.addEventListener(W,zt),Bt.current=Ve)}return l.useEffect(function(){return function(){Kt(Bt.current)}},[]),[vt,Kt]};function ae(Yt,Bt,Lt,zt){var Kt=zt.motionEnter,vt=Kt===void 0?!0:Kt,Ve=zt.motionAppear,lt=Ve===void 0?!0:Ve,at=zt.motionLeave,Xt=at===void 0?!0:at,rt=zt.motionDeadline,Rt=zt.motionLeaveImmediately,rn=zt.onAppearPrepare,sn=zt.onEnterPrepare,Jn=zt.onLeavePrepare,ze=zt.onAppearStart,st=zt.onEnterStart,en=zt.onLeaveStart,wt=zt.onAppearActive,Ke=zt.onEnterActive,Ut=zt.onLeaveActive,on=zt.onAppearEnd,Tn=zt.onEnterEnd,An=zt.onLeaveEnd,Zt=zt.onVisibleChanged,ot=pe(),We=(0,u.Z)(ot,2),Ft=We[0],it=We[1],qt=pe(X),vn=(0,u.Z)(qt,2),fn=vn[0],Tt=vn[1],dn=pe(null),mn=(0,u.Z)(dn,2),Kn=mn[0],Dn=mn[1],Vn=(0,l.useRef)(!1),or=(0,l.useRef)(null),Qr=(0,l.useRef)(!1),ni=(0,l.useRef)(null);function yr(){var Qn=Lt();return Qn||ni.current}var si=(0,l.useRef)(!1);function Yr(Qn){var _r=yr();if(!(Qn&&!Qn.deadline&&Qn.target!==_r)){var $r;fn===Z&&si.current?$r=on?.(_r,Qn):fn===J&&si.current?$r=Tn?.(_r,Qn):fn===q&&si.current&&($r=An?.(_r,Qn)),$r!==!1&&!Qr.current&&(Tt(X),Dn(null))}}var Ci=ue(Yr),Ni=(0,u.Z)(Ci,1),fa=Ni[0],ha=l.useMemo(function(){var Qn,_r,$r;switch(fn){case"appear":return Qn={},(0,i.Z)(Qn,$,rn),(0,i.Z)(Qn,k,ze),(0,i.Z)(Qn,F,wt),Qn;case"enter":return _r={},(0,i.Z)(_r,$,sn),(0,i.Z)(_r,k,st),(0,i.Z)(_r,F,Ke),_r;case"leave":return $r={},(0,i.Z)($r,$,Jn),(0,i.Z)($r,k,en),(0,i.Z)($r,F,Ut),$r;default:return{}}},[fn]),Ca=Re(fn,function(Qn){if(Qn===$){var _r=ha[$];return _r?_r(yr()):Ge}if(Oa in ha){var $r;Dn((($r=ha[Oa])===null||$r===void 0?void 0:$r.call(ha,yr(),null))||null)}return Oa===F&&(fa(yr()),rt>0&&(clearTimeout(or.current),or.current=setTimeout(function(){Yr({deadline:!0})},rt))),ht}),li=(0,u.Z)(Ca,2),la=li[0],Oa=li[1],wa=nt(Oa);si.current=wa,G(function(){it(Bt);var Qn=Vn.current;if(Vn.current=!0,!!Yt){var _r;!Qn&&Bt&<&&(_r=Z),Qn&&Bt&&vt&&(_r=J),(Qn&&!Bt&&Xt||!Qn&&Rt&&!Bt&&Xt)&&(_r=q),_r&&(Tt(_r),la())}},[Bt]),(0,l.useEffect)(function(){(fn===Z&&!lt||fn===J&&!vt||fn===q&&!Xt)&&Tt(X)},[lt,vt,Xt]),(0,l.useEffect)(function(){return function(){clearTimeout(or.current),Qr.current=!0}},[]),(0,l.useEffect)(function(){Ft!==void 0&&fn===X&&Zt?.(Ft)},[Ft,fn]);var vo=Kn;return ha[$]&&Oa===k&&(vo=(0,s.Z)({transition:"none"},vo)),[fn,Oa,vo,Ft??Bt]}var ve=t(87741),Me=t(58585),Ye=t(56804),qe=t(93870),At=function(Yt){(0,Ye.Z)(Lt,Yt);var Bt=(0,qe.Z)(Lt);function Lt(){return(0,ve.Z)(this,Lt),Bt.apply(this,arguments)}return(0,Me.Z)(Lt,[{key:"render",value:function(){return this.props.children}}]),Lt}(l.Component);const It=At;function Ce(Yt){var Bt=Yt;(0,v.Z)(Yt)==="object"&&(Bt=Yt.transitionSupport);function Lt(Kt){return!!(Kt.motionName&&Bt)}var zt=l.forwardRef(function(Kt,vt){var Ve=Kt.visible,lt=Ve===void 0?!0:Ve,at=Kt.removeOnLeave,Xt=at===void 0?!0:at,rt=Kt.forceRender,Rt=Kt.children,rn=Kt.motionName,sn=Kt.leavedClassName,Jn=Kt.eventProps,ze=Lt(Kt),st=(0,l.useRef)(),en=(0,l.useRef)();function wt(){try{return p(st.current||en.current)}catch{return null}}var Ke=ae(ze,lt,wt,Kt),Ut=(0,u.Z)(Ke,4),on=Ut[0],Tn=Ut[1],An=Ut[2],Zt=Ut[3],ot=l.useRef(Zt);Zt&&(ot.current=!0);var We=(0,l.useRef)(vt);We.current=vt;var Ft=l.useCallback(function(Tt){st.current=Tt,f(We.current,Tt)},[]),it,qt=(0,s.Z)((0,s.Z)({},Jn),{},{visible:lt});if(!Rt)it=null;else if(on===X||!Lt(Kt))Zt?it=Rt((0,s.Z)({},qt),Ft):!Xt&&ot.current?it=Rt((0,s.Z)((0,s.Z)({},qt),{},{className:sn}),Ft):rt?it=Rt((0,s.Z)((0,s.Z)({},qt),{},{style:{display:"none"}}),Ft):it=null;else{var vn,fn;Tn===$?fn="prepare":nt(Tn)?fn="active":Tn===k&&(fn="start"),it=Rt((0,s.Z)((0,s.Z)({},qt),{},{className:E()(re(rn,on),(vn={},(0,i.Z)(vn,re(rn,"".concat(on,"-").concat(fn)),fn),(0,i.Z)(vn,rn,typeof rn=="string"),vn)),style:An}),Ft)}return l.createElement(It,{ref:en},it)});return zt.displayName="CSSMotion",zt}const Ae=Ce(_);var $e=t(94285),tt=t(4696),ke="add",Oe="keep",je="remove",Et="removed";function ct(Yt){var Bt;return Yt&&(0,v.Z)(Yt)==="object"&&"key"in Yt?Bt=Yt:Bt={key:Yt},(0,s.Z)((0,s.Z)({},Bt),{},{key:String(Bt.key)})}function ut(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Yt.map(ct)}function Ne(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Lt=[],zt=0,Kt=Bt.length,vt=ut(Yt),Ve=ut(Bt);vt.forEach(function(Xt){for(var rt=!1,Rt=zt;Rt<Kt;Rt+=1){var rn=Ve[Rt];if(rn.key===Xt.key){zt<Rt&&(Lt=Lt.concat(Ve.slice(zt,Rt).map(function(sn){return(0,s.Z)((0,s.Z)({},sn),{},{status:ke})})),zt=Rt),Lt.push((0,s.Z)((0,s.Z)({},rn),{},{status:Oe})),zt+=1,rt=!0;break}}rt||Lt.push((0,s.Z)((0,s.Z)({},Xt),{},{status:je}))}),zt<Kt&&(Lt=Lt.concat(Ve.slice(zt).map(function(Xt){return(0,s.Z)((0,s.Z)({},Xt),{},{status:ke})})));var lt={};Lt.forEach(function(Xt){var rt=Xt.key;lt[rt]=(lt[rt]||0)+1});var at=Object.keys(lt).filter(function(Xt){return lt[Xt]>1});return at.forEach(function(Xt){Lt=Lt.filter(function(rt){var Rt=rt.key,rn=rt.status;return Rt!==Xt||rn!==je}),Lt.forEach(function(rt){rt.key===Xt&&(rt.status=Oe)})}),Lt}var mt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function bt(Yt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ae,Lt=function(zt){(0,Ye.Z)(vt,zt);var Kt=(0,qe.Z)(vt);function vt(){var Ve;return(0,ve.Z)(this,vt),Ve=Kt.apply(this,arguments),Ve.state={keyEntities:[]},Ve.removeKey=function(lt){Ve.setState(function(at){var Xt=at.keyEntities;return{keyEntities:Xt.map(function(rt){return rt.key!==lt?rt:(0,s.Z)((0,s.Z)({},rt),{},{status:Et})})}})},Ve}return(0,Me.Z)(vt,[{key:"render",value:function(){var lt=this,at=this.state.keyEntities,Xt=this.props,rt=Xt.component,Rt=Xt.children,rn=Xt.onVisibleChanged,sn=(0,tt.Z)(Xt,["component","children","onVisibleChanged"]),Jn=rt||l.Fragment,ze={};return mt.forEach(function(st){ze[st]=sn[st],delete sn[st]}),delete sn.keys,l.createElement(Jn,sn,at.map(function(st){var en=st.status,wt=(0,tt.Z)(st,["status"]),Ke=en===ke||en===Oe;return l.createElement(Bt,(0,$e.Z)({},ze,{key:wt.key,visible:Ke,eventProps:wt,onVisibleChanged:function(on){rn?.(on,{key:wt.key}),on||lt.removeKey(wt.key)}}),Rt)}))}}],[{key:"getDerivedStateFromProps",value:function(lt,at){var Xt=lt.keys,rt=at.keyEntities,Rt=ut(Xt),rn=Ne(rt,Rt);return{keyEntities:rn.filter(function(sn){var Jn=rt.find(function(ze){var st=ze.key;return sn.key===st});return!(Jn&&Jn.status===Et&&sn.status===je)})}}}]),vt}(l.Component);return Lt.defaultProps={component:"div"},Lt}const Gt=bt(_),hn=Ae},20585:(C,c,t)=>{"use strict";t.d(c,{Z:()=>j});var i=t(94285),s=t(27702),u=t(32820),v=t(78572),l=t(48632),h=t(69365),p=t(72465),d=t(1939),f=new Map;function g(re){re.forEach(function(X){var Z,J=X.target;(Z=f.get(J))===null||Z===void 0||Z.forEach(function(q){return q(J)})})}var y=new d.Z(g),b=null,E=null;function S(re,X){f.has(re)||(f.set(re,new Set),y.observe(re)),f.get(re).add(X)}function w(re,X){f.has(re)&&(f.get(re).delete(X),f.get(re).size||(y.unobserve(re),f.delete(re)))}var x=t(87741),P=t(58585),R=t(56804),T=t(93870),A=function(re){(0,R.Z)(Z,re);var X=(0,T.Z)(Z);function Z(){return(0,x.Z)(this,Z),X.apply(this,arguments)}return(0,P.Z)(Z,[{key:"render",value:function(){return this.props.children}}]),Z}(s.Component),I=s.createContext(null);function N(re){var X=re.children,Z=re.onBatchResize,J=s.useRef(0),q=s.useRef([]),L=s.useContext(I),$=s.useCallback(function(k,F,V){J.current+=1;var pe=J.current;q.current.push({size:k,element:F,data:V}),Promise.resolve().then(function(){pe===J.current&&(Z?.(q.current),q.current=[])}),L?.(k,F,V)},[Z,L]);return s.createElement(I.Provider,{value:$},X)}function K(re){var X=re.children,Z=re.disabled,J=s.useRef(null),q=s.useRef(null),L=s.useContext(I),$=typeof X=="function",k=$?X(J):X,F=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),V=!$&&s.isValidElement(k)&&(0,h.Yr)(k),pe=V?k.ref:null,ce=s.useMemo(function(){return(0,h.sQ)(pe,J)},[pe,J]),G=s.useRef(re);G.current=re;var te=s.useCallback(function(ie){var fe=G.current,Se=fe.onResize,he=fe.data,me=ie.getBoundingClientRect(),_e=me.width,we=me.height,Ge=ie.offsetWidth,ht=ie.offsetHeight,nt=Math.floor(_e),Re=Math.floor(we);if(F.current.width!==nt||F.current.height!==Re||F.current.offsetWidth!==Ge||F.current.offsetHeight!==ht){var ue={width:nt,height:Re,offsetWidth:Ge,offsetHeight:ht};F.current=ue;var ae=Ge===Math.round(_e)?_e:Ge,ve=ht===Math.round(we)?we:ht,Me=(0,l.Z)((0,l.Z)({},ue),{},{offsetWidth:ae,offsetHeight:ve});L?.(Me,ie,he),Se&&Promise.resolve().then(function(){Se(Me,ie)})}},[]);return s.useEffect(function(){var ie=(0,p.Z)(J.current)||(0,p.Z)(q.current);return ie&&!Z&&S(ie,te),function(){return w(ie,te)}},[J.current,Z]),s.createElement(A,{ref:q},V?s.cloneElement(k,{ref:ce}):k)}var _="rc-observer-key";function W(re){var X=re.children,Z=typeof X=="function"?[X]:(0,u.Z)(X);return Z.map(function(J,q){var L=J?.key||"".concat(_,"-").concat(q);return s.createElement(K,(0,i.Z)({},re,{key:L}),J)})}W.Collection=N;const j=W},79401:(C,c,t)=>{"use strict";t.d(c,{Z:()=>V});var i=t(94285),s=t(27702),u=t(54660);function v(pe){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=[];return s.Children.forEach(pe,function(te){te==null&&!ce.keepEmpty||(Array.isArray(te)?G=G.concat(v(te)):(0,u.isFragment)(te)&&te.props?G=G.concat(v(te.props.children,ce)):G.push(te))}),G}var l=t(28641),h=t(48632),p=t(4484);function d(pe,ce,G){var te=React.useRef({});return(!("value"in te.current)||G(te.current.condition,ce))&&(te.current.value=pe(),te.current.condition=ce),te.current.value}function f(pe,ce){typeof pe=="function"?pe(ce):(0,p.Z)(pe)==="object"&&pe&&"current"in pe&&(pe.current=ce)}function g(){for(var pe=arguments.length,ce=new Array(pe),G=0;G<pe;G++)ce[G]=arguments[G];var te=ce.filter(function(ie){return ie});return te.length<=1?te[0]:function(ie){ce.forEach(function(fe){f(fe,ie)})}}function y(){for(var pe=arguments.length,ce=new Array(pe),G=0;G<pe;G++)ce[G]=arguments[G];return useMemo(function(){return g.apply(void 0,ce)},ce,function(te,ie){return te.length===ie.length&&te.every(function(fe,Se){return fe===ie[Se]})})}function b(pe){var ce,G,te=(0,u.isMemo)(pe)?pe.type.type:pe.type;return!(typeof te=="function"&&!((ce=te.prototype)!==null&&ce!==void 0&&ce.render)||typeof pe=="function"&&!((G=pe.prototype)!==null&&G!==void 0&&G.render))}var E=t(27473);function S(pe){return pe instanceof HTMLElement?pe:pe instanceof s.Component?E.findDOMNode(pe):null}var w=t(1939),x=new Map;function P(pe){pe.forEach(function(ce){var G,te=ce.target;(G=x.get(te))===null||G===void 0||G.forEach(function(ie){return ie(te)})})}var R=new w.Z(P),T=null,A=null;function I(pe,ce){x.has(pe)||(x.set(pe,new Set),R.observe(pe)),x.get(pe).add(ce)}function N(pe,ce){x.has(pe)&&(x.get(pe).delete(ce),x.get(pe).size||(R.unobserve(pe),x.delete(pe)))}var K=t(87741),_=t(58585),W=t(56804),j=t(93870),re=function(pe){(0,W.Z)(G,pe);var ce=(0,j.Z)(G);function G(){return(0,K.Z)(this,G),ce.apply(this,arguments)}return(0,_.Z)(G,[{key:"render",value:function(){return this.props.children}}]),G}(s.Component),X=s.createContext(null);function Z(pe){var ce=pe.children,G=pe.onBatchResize,te=s.useRef(0),ie=s.useRef([]),fe=s.useContext(X),Se=s.useCallback(function(he,me,_e){te.current+=1;var we=te.current;ie.current.push({size:he,element:me,data:_e}),Promise.resolve().then(function(){we===te.current&&(G?.(ie.current),ie.current=[])}),fe?.(he,me,_e)},[G,fe]);return s.createElement(X.Provider,{value:Se},ce)}function J(pe,ce){var G=pe.children,te=pe.disabled,ie=s.useRef(null),fe=s.useRef(null),Se=s.useContext(X),he=typeof G=="function",me=he?G(ie):G,_e=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),we=!he&&s.isValidElement(me)&&b(me),Ge=we?me.ref:null,ht=s.useMemo(function(){return g(Ge,ie)},[Ge,ie]),nt=function(){return S(ie.current)||S(fe.current)};s.useImperativeHandle(ce,function(){return nt()});var Re=s.useRef(pe);Re.current=pe;var ue=s.useCallback(function(ae){var ve=Re.current,Me=ve.onResize,Ye=ve.data,qe=ae.getBoundingClientRect(),At=qe.width,It=qe.height,Ce=ae.offsetWidth,Ae=ae.offsetHeight,$e=Math.floor(At),tt=Math.floor(It);if(_e.current.width!==$e||_e.current.height!==tt||_e.current.offsetWidth!==Ce||_e.current.offsetHeight!==Ae){var ke={width:$e,height:tt,offsetWidth:Ce,offsetHeight:Ae};_e.current=ke;var Oe=Ce===Math.round(At)?At:Ce,je=Ae===Math.round(It)?It:Ae,Et=(0,h.Z)((0,h.Z)({},ke),{},{offsetWidth:Oe,offsetHeight:je});Se?.(Et,ae,Ye),Me&&Promise.resolve().then(function(){Me(Et,ae)})}},[]);return s.useEffect(function(){var ae=nt();return ae&&!te&&I(ae,ue),function(){return N(ae,ue)}},[ie.current,te]),s.createElement(re,{ref:fe},we?s.cloneElement(me,{ref:ht}):me)}var q=s.forwardRef(J);const L=q;var $="rc-observer-key";function k(pe,ce){var G=pe.children,te=typeof G=="function"?[G]:v(G);return te.map(function(ie,fe){var Se=ie?.key||"".concat($,"-").concat(fe);return s.createElement(L,(0,i.Z)({},pe,{key:Se,ref:fe===0?ce:void 0}),ie)})}var F=s.forwardRef(k);F.Collection=Z;const V=F},30450:(C,c,t)=>{"use strict";t.d(c,{Z:()=>_e});var i=t(23190),s=t(75342),u=t(32098),v=t(4484),l=t(27702),h=t(28040),p=t.n(h),d=t(28641);function f(we,Ge){var ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,nt=new Set;function Re(ue,ae){var ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Me=nt.has(ue);if((0,d.ZP)(!Me,"Warning: There may be circular references"),Me)return!1;if(ue===ae)return!0;if(ht&&ve>1)return!1;nt.add(ue);var Ye=ve+1;if(Array.isArray(ue)){if(!Array.isArray(ae)||ue.length!==ae.length)return!1;for(var qe=0;qe<ue.length;qe++)if(!Re(ue[qe],ae[qe],Ye))return!1;return!0}if(ue&&ae&&(0,v.Z)(ue)==="object"&&(0,v.Z)(ae)==="object"){var At=Object.keys(ue);return At.length!==Object.keys(ae).length?!1:At.every(function(It){return Re(ue[It],ae[It],Ye)})}return!1}return Re(we,Ge)}const g=f;function y(we){var Ge=l.useRef();Ge.current=we;var ht=l.useCallback(function(){for(var nt,Re=arguments.length,ue=new Array(Re),ae=0;ae<Re;ae++)ue[ae]=arguments[ae];return(nt=Ge.current)===null||nt===void 0?void 0:nt.call.apply(nt,[Ge].concat(ue))},[]);return ht}function b(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var E=b()?l.useLayoutEffect:l.useEffect;const S=null;var w=function(Ge,ht){var nt=l.useRef(!0);E(function(){if(!nt.current)return Ge()},ht),E(function(){return nt.current=!1,function(){nt.current=!0}},[])};function x(we){var Ge=l.useRef(!1),ht=l.useState(we),nt=(0,u.Z)(ht,2),Re=nt[0],ue=nt[1];l.useEffect(function(){return Ge.current=!1,function(){Ge.current=!0}},[]);function ae(ve,Me){Me&&Ge.current||ue(ve)}return[Re,ae]}function P(we){return we!==void 0}function R(we,Ge){var ht=Ge||{},nt=ht.defaultValue,Re=ht.value,ue=ht.onChange,ae=ht.postState,ve=x(function(){return P(Re)?Re:P(nt)?typeof nt=="function"?nt():nt:typeof we=="function"?we():we}),Me=(0,u.Z)(ve,2),Ye=Me[0],qe=Me[1],At=Re!==void 0?Re:Ye,It=ae?ae(At):At,Ce=y(ue),Ae=x([At]),$e=(0,u.Z)(Ae,2),tt=$e[0],ke=$e[1];w(function(){var je=tt[0];Ye!==je&&Ce(Ye,je)},[tt]),w(function(){P(Re)||qe(Re)},[Re]);var Oe=y(function(je,Et){qe(je,Et),ke([At],Et)});return[It,Oe]}var T=t(94285),A=t(4696),I=t(48632),N={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ge){var ht=Ge.keyCode;if(Ge.altKey&&!Ge.ctrlKey||Ge.metaKey||ht>=N.F1&&ht<=N.F12)return!1;switch(ht){case N.ALT:case N.CAPS_LOCK:case N.CONTEXT_MENU:case N.CTRL:case N.DOWN:case N.END:case N.ESC:case N.HOME:case N.INSERT:case N.LEFT:case N.MAC_FF_META:case N.META:case N.NUMLOCK:case N.NUM_CENTER:case N.PAGE_DOWN:case N.PAGE_UP:case N.PAUSE:case N.PRINT_SCREEN:case N.RIGHT:case N.SHIFT:case N.UP:case N.WIN_KEY:case N.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ge){if(Ge>=N.ZERO&&Ge<=N.NINE||Ge>=N.NUM_ZERO&&Ge<=N.NUM_MULTIPLY||Ge>=N.A&&Ge<=N.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ge===0)return!0;switch(Ge){case N.SPACE:case N.QUESTION_MARK:case N.NUM_PLUS:case N.NUM_MINUS:case N.NUM_PERIOD:case N.NUM_DIVISION:case N.SEMICOLON:case N.DASH:case N.EQUALS:case N.COMMA:case N.PERIOD:case N.SLASH:case N.APOSTROPHE:case N.SINGLE_QUOTE:case N.OPEN_SQUARE_BRACKET:case N.BACKSLASH:case N.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const K=N;var _=l.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});const W=_;function j(we,Ge,ht){return(we-Ge)/(ht-Ge)}function re(we,Ge,ht,nt){var Re=j(Ge,ht,nt),ue={};switch(we){case"rtl":ue.right="".concat(Re*100,"%"),ue.transform="translateX(50%)";break;case"btt":ue.bottom="".concat(Re*100,"%"),ue.transform="translateY(50%)";break;case"ttb":ue.top="".concat(Re*100,"%"),ue.transform="translateY(-50%)";break;default:ue.left="".concat(Re*100,"%"),ue.transform="translateX(-50%)";break}return ue}function X(we,Ge){return Array.isArray(we)?we[Ge]:we}var Z=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],J=l.forwardRef(function(we,Ge){var ht,nt,Re=we.prefixCls,ue=we.value,ae=we.valueIndex,ve=we.onStartMove,Me=we.style,Ye=we.render,qe=we.dragging,At=we.onOffsetChange,It=(0,A.Z)(we,Z),Ce=l.useContext(W),Ae=Ce.min,$e=Ce.max,tt=Ce.direction,ke=Ce.disabled,Oe=Ce.keyboard,je=Ce.range,Et=Ce.tabIndex,ct=Ce.ariaLabelForHandle,ut=Ce.ariaLabelledByForHandle,Ne=Ce.ariaValueTextFormatterForHandle,mt="".concat(Re,"-handle"),bt=function(Lt){ke||ve(Lt,ae)},Gt=function(Lt){if(!ke&&Oe){var zt=null;switch(Lt.which||Lt.keyCode){case K.LEFT:zt=tt==="ltr"||tt==="btt"?-1:1;break;case K.RIGHT:zt=tt==="ltr"||tt==="btt"?1:-1;break;case K.UP:zt=tt!=="ttb"?1:-1;break;case K.DOWN:zt=tt!=="ttb"?-1:1;break;case K.HOME:zt="min";break;case K.END:zt="max";break;case K.PAGE_UP:zt=2;break;case K.PAGE_DOWN:zt=-2;break}zt!==null&&(Lt.preventDefault(),At(zt,ae))}},hn=re(tt,ue,Ae,$e),Yt=l.createElement("div",(0,T.Z)({ref:Ge,className:p()(mt,(ht={},(0,i.Z)(ht,"".concat(mt,"-").concat(ae+1),je),(0,i.Z)(ht,"".concat(mt,"-dragging"),qe),ht)),style:(0,I.Z)((0,I.Z)({},hn),Me),onMouseDown:bt,onTouchStart:bt,onKeyDown:Gt,tabIndex:ke?null:X(Et,ae),role:"slider","aria-valuemin":Ae,"aria-valuemax":$e,"aria-valuenow":ue,"aria-disabled":ke,"aria-label":X(ct,ae),"aria-labelledby":X(ut,ae),"aria-valuetext":(nt=X(Ne,ae))===null||nt===void 0?void 0:nt(ue),"aria-orientation":tt==="ltr"||tt==="rtl"?"horizontal":"vertical"},It));return Ye&&(Yt=Ye(Yt,{index:ae,prefixCls:Re,value:ue,dragging:qe})),Yt});const q=J;var L=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],$=l.forwardRef(function(we,Ge){var ht=we.prefixCls,nt=we.style,Re=we.onStartMove,ue=we.onOffsetChange,ae=we.values,ve=we.handleRender,Me=we.draggingIndex,Ye=(0,A.Z)(we,L),qe=l.useRef({});return l.useImperativeHandle(Ge,function(){return{focus:function(It){var Ce;(Ce=qe.current[It])===null||Ce===void 0||Ce.focus()}}}),l.createElement(l.Fragment,null,ae.map(function(At,It){return l.createElement(q,(0,T.Z)({ref:function(Ae){Ae?qe.current[It]=Ae:delete qe.current[It]},dragging:Me===It,prefixCls:ht,style:X(nt,It),key:It,value:At,valueIndex:It,onStartMove:Re,onOffsetChange:ue,render:ve},Ye))}))});const k=$;function F(we){var Ge="touches"in we?we.touches[0]:we;return{pageX:Ge.pageX,pageY:Ge.pageY}}function V(we,Ge,ht,nt,Re,ue,ae,ve,Me){var Ye=l.useState(null),qe=(0,u.Z)(Ye,2),At=qe[0],It=qe[1],Ce=l.useState(-1),Ae=(0,u.Z)(Ce,2),$e=Ae[0],tt=Ae[1],ke=l.useState(ht),Oe=(0,u.Z)(ke,2),je=Oe[0],Et=Oe[1],ct=l.useState(ht),ut=(0,u.Z)(ct,2),Ne=ut[0],mt=ut[1],bt=l.useRef(null),Gt=l.useRef(null);l.useEffect(function(){$e===-1&&Et(ht)},[ht,$e]),l.useEffect(function(){return function(){document.removeEventListener("mousemove",bt.current),document.removeEventListener("mouseup",Gt.current),document.removeEventListener("touchmove",bt.current),document.removeEventListener("touchend",Gt.current)}},[]);var hn=function(vt,Ve){je.some(function(lt,at){return lt!==vt[at]})&&(Ve!==void 0&&It(Ve),Et(vt),ae(vt))},Yt=function(vt,Ve){if(vt===-1){var lt=Ne[0],at=Ne[Ne.length-1],Xt=nt-lt,rt=Re-at,Rt=Ve*(Re-nt);Rt=Math.max(Rt,Xt),Rt=Math.min(Rt,rt);var rn=ue(lt+Rt);Rt=rn-lt;var sn=Ne.map(function(en){return en+Rt});hn(sn)}else{var Jn=(Re-nt)*Ve,ze=(0,s.Z)(je);ze[vt]=Ne[vt];var st=Me(ze,Jn,vt,"dist");hn(st.values,st.value)}},Bt=l.useRef(Yt);Bt.current=Yt;var Lt=function(vt,Ve){vt.stopPropagation();var lt=ht[Ve];tt(Ve),It(lt),mt(ht);var at=F(vt),Xt=at.pageX,rt=at.pageY,Rt=function(Jn){Jn.preventDefault();var ze=F(Jn),st=ze.pageX,en=ze.pageY,wt=st-Xt,Ke=en-rt,Ut=we.current.getBoundingClientRect(),on=Ut.width,Tn=Ut.height,An;switch(Ge){case"btt":An=-Ke/Tn;break;case"ttb":An=Ke/Tn;break;case"rtl":An=-wt/on;break;default:An=wt/on}Bt.current(Ve,An)},rn=function sn(Jn){Jn.preventDefault(),document.removeEventListener("mouseup",sn),document.removeEventListener("mousemove",Rt),document.removeEventListener("touchend",sn),document.removeEventListener("touchmove",Rt),bt.current=null,Gt.current=null,tt(-1),ve()};document.addEventListener("mouseup",rn),document.addEventListener("mousemove",Rt),document.addEventListener("touchend",rn),document.addEventListener("touchmove",Rt),bt.current=Rt,Gt.current=rn},zt=l.useMemo(function(){var Kt=(0,s.Z)(ht).sort(function(Ve,lt){return Ve-lt}),vt=(0,s.Z)(je).sort(function(Ve,lt){return Ve-lt});return Kt.every(function(Ve,lt){return Ve===vt[lt]})?je:ht},[ht,je]);return[$e,At,zt,Lt]}function pe(we){var Ge,ht=we.prefixCls,nt=we.style,Re=we.start,ue=we.end,ae=we.index,ve=we.onStartMove,Me=l.useContext(W),Ye=Me.direction,qe=Me.min,At=Me.max,It=Me.disabled,Ce=Me.range,Ae="".concat(ht,"-track"),$e=j(Re,qe,At),tt=j(ue,qe,At),ke=function(Et){!It&&ve&&ve(Et,-1)},Oe={};switch(Ye){case"rtl":Oe.right="".concat($e*100,"%"),Oe.width="".concat(tt*100-$e*100,"%");break;case"btt":Oe.bottom="".concat($e*100,"%"),Oe.height="".concat(tt*100-$e*100,"%");break;case"ttb":Oe.top="".concat($e*100,"%"),Oe.height="".concat(tt*100-$e*100,"%");break;default:Oe.left="".concat($e*100,"%"),Oe.width="".concat(tt*100-$e*100,"%")}return l.createElement("div",{className:p()(Ae,(Ge={},(0,i.Z)(Ge,"".concat(Ae,"-").concat(ae+1),Ce),(0,i.Z)(Ge,"".concat(ht,"-track-draggable"),ve),Ge)),style:(0,I.Z)((0,I.Z)({},Oe),nt),onMouseDown:ke,onTouchStart:ke})}function ce(we){var Ge=we.prefixCls,ht=we.style,nt=we.values,Re=we.startPoint,ue=we.onStartMove,ae=l.useContext(W),ve=ae.included,Me=ae.range,Ye=ae.min,qe=l.useMemo(function(){if(!Me){if(nt.length===0)return[];var At=Re??Ye,It=nt[0];return[{start:Math.min(At,It),end:Math.max(At,It)}]}for(var Ce=[],Ae=0;Ae<nt.length-1;Ae+=1)Ce.push({start:nt[Ae],end:nt[Ae+1]});return Ce},[nt,Me,Re,Ye]);return ve?qe.map(function(At,It){var Ce=At.start,Ae=At.end;return l.createElement(pe,{index:It,prefixCls:Ge,style:X(ht,It),start:Ce,end:Ae,key:It,onStartMove:ue})}):null}function G(we){var Ge=we.prefixCls,ht=we.style,nt=we.children,Re=we.value,ue=we.onClick,ae=l.useContext(W),ve=ae.min,Me=ae.max,Ye=ae.direction,qe=ae.includedStart,At=ae.includedEnd,It=ae.included,Ce="".concat(Ge,"-text"),Ae=re(Ye,Re,ve,Me);return l.createElement("span",{className:p()(Ce,(0,i.Z)({},"".concat(Ce,"-active"),It&&qe<=Re&&Re<=At)),style:(0,I.Z)((0,I.Z)({},Ae),ht),onMouseDown:function(tt){tt.stopPropagation()},onClick:function(){ue(Re)}},nt)}function te(we){var Ge=we.prefixCls,ht=we.marks,nt=we.onClick,Re="".concat(Ge,"-mark");return ht.length?l.createElement("div",{className:Re},ht.map(function(ue){var ae=ue.value,ve=ue.style,Me=ue.label;return l.createElement(G,{key:ae,prefixCls:Re,style:ve,value:ae,onClick:nt},Me)})):null}function ie(we){var Ge=we.prefixCls,ht=we.value,nt=we.style,Re=we.activeStyle,ue=l.useContext(W),ae=ue.min,ve=ue.max,Me=ue.direction,Ye=ue.included,qe=ue.includedStart,At=ue.includedEnd,It="".concat(Ge,"-dot"),Ce=Ye&&qe<=ht&&ht<=At,Ae=(0,I.Z)((0,I.Z)({},re(Me,ht,ae,ve)),typeof nt=="function"?nt(ht):nt);return Ce&&(Ae=(0,I.Z)((0,I.Z)({},Ae),typeof Re=="function"?Re(ht):Re)),l.createElement("span",{className:p()(It,(0,i.Z)({},"".concat(It,"-active"),Ce)),style:Ae})}function fe(we){var Ge=we.prefixCls,ht=we.marks,nt=we.dots,Re=we.style,ue=we.activeStyle,ae=l.useContext(W),ve=ae.min,Me=ae.max,Ye=ae.step,qe=l.useMemo(function(){var At=new Set;if(ht.forEach(function(Ce){At.add(Ce.value)}),nt&&Ye!==null)for(var It=ve;It<=Me;)At.add(It),It+=Ye;return Array.from(At)},[ve,Me,Ye,nt,ht]);return l.createElement("div",{className:"".concat(Ge,"-step")},qe.map(function(At){return l.createElement(ie,{prefixCls:Ge,key:At,value:At,style:Re,activeStyle:ue})}))}function Se(we,Ge,ht,nt,Re,ue){var ae=l.useCallback(function(Ce){var Ae=isFinite(Ce)?Ce:we;return Ae=Math.min(Ge,Ce),Ae=Math.max(we,Ae),Ae},[we,Ge]),ve=l.useCallback(function(Ce){if(ht!==null){var Ae=we+Math.round((ae(Ce)-we)/ht)*ht,$e=function(je){return(String(je).split(".")[1]||"").length},tt=Math.max($e(ht),$e(Ge),$e(we)),ke=Number(Ae.toFixed(tt));return we<=ke&&ke<=Ge?ke:null}return null},[ht,we,Ge,ae]),Me=l.useCallback(function(Ce){var Ae=ae(Ce),$e=nt.map(function(Oe){return Oe.value});ht!==null&&$e.push(ve(Ce)),$e.push(we,Ge);var tt=$e[0],ke=Ge-we;return $e.forEach(function(Oe){var je=Math.abs(Ae-Oe);je<=ke&&(tt=Oe,ke=je)}),tt},[we,Ge,nt,ht,ae,ve]),Ye=function Ce(Ae,$e,tt){var ke=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof $e=="number"){var Oe,je=Ae[tt],Et=je+$e,ct=[];nt.forEach(function(Gt){ct.push(Gt.value)}),ct.push(we,Ge),ct.push(ve(je));var ut=$e>0?1:-1;ke==="unit"?ct.push(ve(je+ut*ht)):ct.push(ve(Et)),ct=ct.filter(function(Gt){return Gt!==null}).filter(function(Gt){return $e<0?Gt<=je:Gt>=je}),ke==="unit"&&(ct=ct.filter(function(Gt){return Gt!==je}));var Ne=ke==="unit"?je:Et;Oe=ct[0];var mt=Math.abs(Oe-Ne);if(ct.forEach(function(Gt){var hn=Math.abs(Gt-Ne);hn<mt&&(Oe=Gt,mt=hn)}),Oe===void 0)return $e<0?we:Ge;if(ke==="dist")return Oe;if(Math.abs($e)>1){var bt=(0,s.Z)(Ae);return bt[tt]=Oe,Ce(bt,$e-ut,tt,ke)}return Oe}else{if($e==="min")return we;if($e==="max")return Ge}},qe=function(Ae,$e,tt){var ke=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",Oe=Ae[tt],je=Ye(Ae,$e,tt,ke);return{value:je,changed:je!==Oe}},At=function(Ae){return ue===null&&Ae===0||typeof ue=="number"&&Ae<ue},It=function(Ae,$e,tt){var ke=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",Oe=Ae.map(Me),je=Oe[tt],Et=Ye(Oe,$e,tt,ke);if(Oe[tt]=Et,Re===!1){var ct=ue||0;tt>0&&Oe[tt-1]!==je&&(Oe[tt]=Math.max(Oe[tt],Oe[tt-1]+ct)),tt<Oe.length-1&&Oe[tt+1]!==je&&(Oe[tt]=Math.min(Oe[tt],Oe[tt+1]-ct))}else if(typeof ue=="number"||ue===null){for(var ut=tt+1;ut<Oe.length;ut+=1)for(var Ne=!0;At(Oe[ut]-Oe[ut-1])&&Ne;){var mt=qe(Oe,1,ut);Oe[ut]=mt.value,Ne=mt.changed}for(var bt=tt;bt>0;bt-=1)for(var Gt=!0;At(Oe[bt]-Oe[bt-1])&≫){var hn=qe(Oe,-1,bt-1);Oe[bt-1]=hn.value,Gt=hn.changed}for(var Yt=Oe.length-1;Yt>0;Yt-=1)for(var Bt=!0;At(Oe[Yt]-Oe[Yt-1])&&Bt;){var Lt=qe(Oe,-1,Yt-1);Oe[Yt-1]=Lt.value,Bt=Lt.changed}for(var zt=0;zt<Oe.length-1;zt+=1)for(var Kt=!0;At(Oe[zt+1]-Oe[zt])&&Kt;){var vt=qe(Oe,1,zt+1);Oe[zt+1]=vt.value,Kt=vt.changed}}return{value:Oe[tt],values:Oe}};return[Me,It]}var he=l.forwardRef(function(we,Ge){var ht,nt=we.prefixCls,Re=nt===void 0?"rc-slider":nt,ue=we.className,ae=we.style,ve=we.disabled,Me=ve===void 0?!1:ve,Ye=we.keyboard,qe=Ye===void 0?!0:Ye,At=we.autoFocus,It=we.onFocus,Ce=we.onBlur,Ae=we.min,$e=Ae===void 0?0:Ae,tt=we.max,ke=tt===void 0?100:tt,Oe=we.step,je=Oe===void 0?1:Oe,Et=we.value,ct=we.defaultValue,ut=we.range,Ne=we.count,mt=we.onChange,bt=we.onBeforeChange,Gt=we.onAfterChange,hn=we.allowCross,Yt=hn===void 0?!0:hn,Bt=we.pushable,Lt=Bt===void 0?!1:Bt,zt=we.draggableTrack,Kt=we.reverse,vt=we.vertical,Ve=we.included,lt=Ve===void 0?!0:Ve,at=we.startPoint,Xt=we.trackStyle,rt=we.handleStyle,Rt=we.railStyle,rn=we.dotStyle,sn=we.activeDotStyle,Jn=we.marks,ze=we.dots,st=we.handleRender,en=we.tabIndex,wt=en===void 0?0:en,Ke=we.ariaLabelForHandle,Ut=we.ariaLabelledByForHandle,on=we.ariaValueTextFormatterForHandle,Tn=l.useRef(),An=l.useRef(),Zt=l.useMemo(function(){return vt?Kt?"ttb":"btt":Kt?"rtl":"ltr"},[Kt,vt]),ot=l.useMemo(function(){return isFinite($e)?$e:0},[$e]),We=l.useMemo(function(){return isFinite(ke)?ke:100},[ke]),Ft=l.useMemo(function(){return je!==null&&je<=0?1:je},[je]),it=l.useMemo(function(){return typeof Lt=="boolean"?Lt?Ft:!1:Lt>=0?Lt:!1},[Lt,Ft]),qt=l.useMemo(function(){var rr=Object.keys(Jn||{});return rr.map(function(Mr){var Ir=Jn[Mr],Zr={value:Number(Mr)};return Ir&&(0,v.Z)(Ir)==="object"&&!l.isValidElement(Ir)&&("label"in Ir||"style"in Ir)?(Zr.style=Ir.style,Zr.label=Ir.label):Zr.label=Ir,Zr}).filter(function(Mr){var Ir=Mr.label;return Ir||typeof Ir=="number"}).sort(function(Mr,Ir){return Mr.value-Ir.value})},[Jn]),vn=Se(ot,We,Ft,qt,Yt,it),fn=(0,u.Z)(vn,2),Tt=fn[0],dn=fn[1],mn=R(ct,{value:Et}),Kn=(0,u.Z)(mn,2),Dn=Kn[0],Vn=Kn[1],or=l.useMemo(function(){var rr=Dn==null?[]:Array.isArray(Dn)?Dn:[Dn],Mr=(0,u.Z)(rr,1),Ir=Mr[0],Zr=Ir===void 0?ot:Ir,lr=Dn===null?[]:[Zr];if(ut){if(lr=(0,s.Z)(rr),Ne||Dn===void 0){var Jr=Ne>=0?Ne+1:2;for(lr=lr.slice(0,Jr);lr.length<Jr;){var pi;lr.push((pi=lr[lr.length-1])!==null&&pi!==void 0?pi:ot)}}lr.sort(function(Ri,Ki){return Ri-Ki})}return lr.forEach(function(Ri,Ki){lr[Ki]=Tt(Ri)}),lr},[Dn,ut,ot,Ne,Tt]),Qr=l.useRef(or);Qr.current=or;var ni=function(Mr){return ut?Mr:Mr[0]},yr=function(Mr){var Ir=(0,s.Z)(Mr).sort(function(Zr,lr){return Zr-lr});mt&&!g(Ir,Qr.current,!0)&&mt(ni(Ir)),Vn(Ir)},si=function(Mr){if(!Me){var Ir=0,Zr=We-ot;or.forEach(function(Jr,pi){var Ri=Math.abs(Mr-Jr);Ri<=Zr&&(Zr=Ri,Ir=pi)});var lr=(0,s.Z)(or);lr[Ir]=Mr,ut&&!or.length&&Ne===void 0&&lr.push(Mr),bt?.(ni(lr)),yr(lr),Gt?.(ni(lr))}},Yr=function(Mr){Mr.preventDefault();var Ir=An.current.getBoundingClientRect(),Zr=Ir.width,lr=Ir.height,Jr=Ir.left,pi=Ir.top,Ri=Ir.bottom,Ki=Ir.right,ia=Mr.clientX,Da=Mr.clientY,to;switch(Zt){case"btt":to=(Ri-Da)/lr;break;case"ttb":to=(Da-pi)/lr;break;case"rtl":to=(Ki-ia)/Zr;break;default:to=(ia-Jr)/Zr}var ao=ot+to*(We-ot);si(Tt(ao))},Ci=l.useState(null),Ni=(0,u.Z)(Ci,2),fa=Ni[0],ha=Ni[1],Ca=function(Mr,Ir){if(!Me){var Zr=dn(or,Mr,Ir);bt?.(ni(or)),yr(Zr.values),Gt?.(ni(Zr.values)),ha(Zr.value)}};l.useEffect(function(){if(fa!==null){var rr=or.indexOf(fa);rr>=0&&Tn.current.focus(rr)}ha(null)},[fa]);var li=l.useMemo(function(){return zt&&Ft===null?!1:zt},[zt,Ft]),la=function(){Gt?.(ni(Qr.current))},Oa=V(An,Zt,or,ot,We,Tt,yr,la,dn),wa=(0,u.Z)(Oa,4),vo=wa[0],Qn=wa[1],_r=wa[2],$r=wa[3],Ti=function(Mr,Ir){$r(Mr,Ir),bt?.(ni(Qr.current))},xt=vo!==-1;l.useEffect(function(){if(!xt){var rr=or.lastIndexOf(Qn);Tn.current.focus(rr)}},[xt]);var On=l.useMemo(function(){return(0,s.Z)(_r).sort(function(rr,Mr){return rr-Mr})},[_r]),Zn=l.useMemo(function(){return ut?[On[0],On[On.length-1]]:[ot,On[0]]},[On,ut,ot]),Ur=(0,u.Z)(Zn,2),En=Ur[0],ln=Ur[1];l.useImperativeHandle(Ge,function(){return{focus:function(){Tn.current.focus(0)},blur:function(){var Mr=document,Ir=Mr.activeElement;An.current.contains(Ir)&&Ir?.blur()}}}),l.useEffect(function(){At&&Tn.current.focus(0)},[]);var jn=l.useMemo(function(){return{min:ot,max:We,direction:Zt,disabled:Me,keyboard:qe,step:Ft,included:lt,includedStart:En,includedEnd:ln,range:ut,tabIndex:wt,ariaLabelForHandle:Ke,ariaLabelledByForHandle:Ut,ariaValueTextFormatterForHandle:on}},[ot,We,Zt,Me,qe,Ft,lt,En,ln,ut,wt,Ke,Ut,on]);return l.createElement(W.Provider,{value:jn},l.createElement("div",{ref:An,className:p()(Re,ue,(ht={},(0,i.Z)(ht,"".concat(Re,"-disabled"),Me),(0,i.Z)(ht,"".concat(Re,"-vertical"),vt),(0,i.Z)(ht,"".concat(Re,"-horizontal"),!vt),(0,i.Z)(ht,"".concat(Re,"-with-marks"),qt.length),ht)),style:ae,onMouseDown:Yr},l.createElement("div",{className:"".concat(Re,"-rail"),style:Rt}),l.createElement(ce,{prefixCls:Re,style:Xt,values:On,startPoint:at,onStartMove:li?Ti:null}),l.createElement(fe,{prefixCls:Re,marks:qt,dots:ze,style:rn,activeStyle:sn}),l.createElement(k,{ref:Tn,prefixCls:Re,style:rt,values:_r,draggingIndex:vo,onStartMove:Ti,onOffsetChange:Ca,onFocus:It,onBlur:Ce,handleRender:st}),l.createElement(te,{prefixCls:Re,marks:qt,onClick:si})))});const _e=he},76133:(C,c,t)=>{"use strict";t.d(c,{Z:()=>ta});var i=t(27702),s=t(93415),u=t.n(s),v=t(420),l=t(81297),h=t(14451),p=t(17049),d=t(27473),f=t(28434);function g(St,pt){for(var kt=pt;kt;){if(kt===St)return!0;kt=kt.parentNode}return!1}var y=t(65087),b=t.n(y);function E(St,pt,kt,_t){var Mn=d.unstable_batchedUpdates?function(Hi){d.unstable_batchedUpdates(kt,Hi)}:kt;return b()(St,pt,Mn,_t)}function S(St){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(kt){return typeof kt}:S=function(kt){return kt&&typeof Symbol=="function"&&kt.constructor===Symbol&&kt!==Symbol.prototype?"symbol":typeof kt},S(St)}function w(St,pt){if(!(St instanceof pt))throw new TypeError("Cannot call a class as a function")}function x(St,pt){for(var kt=0;kt<pt.length;kt++){var _t=pt[kt];_t.enumerable=_t.enumerable||!1,_t.configurable=!0,"value"in _t&&(_t.writable=!0),Object.defineProperty(St,_t.key,_t)}}function P(St,pt,kt){return pt&&x(St.prototype,pt),kt&&x(St,kt),St}function R(St,pt){if(typeof pt!="function"&&pt!==null)throw new TypeError("Super expression must either be null or a function");St.prototype=Object.create(pt&&pt.prototype,{constructor:{value:St,writable:!0,configurable:!0}}),pt&&T(St,pt)}function T(St,pt){return T=Object.setPrototypeOf||function(_t,Mn){return _t.__proto__=Mn,_t},T(St,pt)}function A(St){var pt=K();return function(){var _t=_(St),Mn;if(pt){var Pr=_(this).constructor;Mn=Reflect.construct(_t,arguments,Pr)}else Mn=_t.apply(this,arguments);return I(this,Mn)}}function I(St,pt){return pt&&(S(pt)==="object"||typeof pt=="function")?pt:N(St)}function N(St){if(St===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St}function K(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(St){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(kt){return kt.__proto__||Object.getPrototypeOf(kt)},_(St)}var W=function(St){R(kt,St);var pt=A(kt);function kt(){var _t;w(this,kt);for(var Mn=arguments.length,Pr=new Array(Mn),Hi=0;Hi<Mn;Hi++)Pr[Hi]=arguments[Hi];return _t=pt.call.apply(pt,[this].concat(Pr)),_t.removeContainer=function(){_t.container&&(d.unmountComponentAtNode(_t.container),_t.container.parentNode.removeChild(_t.container),_t.container=null)},_t.renderComponent=function(jt,$n){var pn=_t.props,ee=pn.visible,oe=pn.getComponent,De=pn.forceRender,Be=pn.getContainer,gt=pn.parent;(ee||gt._component||De)&&(_t.container||(_t.container=Be()),d.unstable_renderSubtreeIntoContainer(gt,oe(jt),_t.container,function(){$n&&$n.call(this)}))},_t}return P(kt,[{key:"componentDidMount",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentDidUpdate",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentWillUnmount",value:function(){this.props.autoDestroy&&this.removeContainer()}},{key:"render",value:function(){return this.props.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}}]),kt}(i.Component);W.propTypes={autoMount:u().bool,autoDestroy:u().bool,visible:u().bool,forceRender:u().bool,parent:u().any,getComponent:u().func.isRequired,getContainer:u().func.isRequired,children:u().func.isRequired},W.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1};function j(St){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?j=function(kt){return typeof kt}:j=function(kt){return kt&&typeof Symbol=="function"&&kt.constructor===Symbol&&kt!==Symbol.prototype?"symbol":typeof kt},j(St)}function re(St,pt){if(!(St instanceof pt))throw new TypeError("Cannot call a class as a function")}function X(St,pt){for(var kt=0;kt<pt.length;kt++){var _t=pt[kt];_t.enumerable=_t.enumerable||!1,_t.configurable=!0,"value"in _t&&(_t.writable=!0),Object.defineProperty(St,_t.key,_t)}}function Z(St,pt,kt){return pt&&X(St.prototype,pt),kt&&X(St,kt),St}function J(St,pt){if(typeof pt!="function"&&pt!==null)throw new TypeError("Super expression must either be null or a function");St.prototype=Object.create(pt&&pt.prototype,{constructor:{value:St,writable:!0,configurable:!0}}),pt&&q(St,pt)}function q(St,pt){return q=Object.setPrototypeOf||function(_t,Mn){return _t.__proto__=Mn,_t},q(St,pt)}function L(St){var pt=F();return function(){var _t=V(St),Mn;if(pt){var Pr=V(this).constructor;Mn=Reflect.construct(_t,arguments,Pr)}else Mn=_t.apply(this,arguments);return $(this,Mn)}}function $(St,pt){return pt&&(j(pt)==="object"||typeof pt=="function")?pt:k(St)}function k(St){if(St===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St}function F(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function V(St){return V=Object.setPrototypeOf?Object.getPrototypeOf:function(kt){return kt.__proto__||Object.getPrototypeOf(kt)},V(St)}var pe=function(St){J(kt,St);var pt=L(kt);function kt(){return re(this,kt),pt.apply(this,arguments)}return Z(kt,[{key:"componentDidMount",value:function(){this.createContainer()}},{key:"componentDidUpdate",value:function(Mn){var Pr=this.props.didUpdate;Pr&&Pr(Mn)}},{key:"componentWillUnmount",value:function(){this.removeContainer()}},{key:"createContainer",value:function(){this._container=this.props.getContainer(),this.forceUpdate()}},{key:"removeContainer",value:function(){this._container&&this._container.parentNode.removeChild(this._container)}},{key:"render",value:function(){return this._container?d.createPortal(this.props.children,this._container):null}}]),kt}(i.Component);pe.propTypes={getContainer:u().func.isRequired,children:u().node.isRequired,didUpdate:u().func};var ce=t(28040),G=t.n(ce);function te(St,pt,kt){return kt?St[0]===pt[0]:St[0]===pt[0]&&St[1]===pt[1]}function ie(St,pt,kt){var _t=St[pt]||{};return(0,v.Z)({},_t,kt)}function fe(St,pt,kt,_t){var Mn=kt.points;for(var Pr in St)if(St.hasOwnProperty(Pr)&&te(St[Pr].points,Mn,_t))return pt+"-placement-"+Pr;return""}function Se(St,pt){this[St]=pt}var he=t(72498);function me(St,pt){var kt=Object.keys(St);if(Object.getOwnPropertySymbols){var _t=Object.getOwnPropertySymbols(St);pt&&(_t=_t.filter(function(Mn){return Object.getOwnPropertyDescriptor(St,Mn).enumerable})),kt.push.apply(kt,_t)}return kt}function _e(St){for(var pt=1;pt<arguments.length;pt++){var kt=arguments[pt]!=null?arguments[pt]:{};pt%2?me(Object(kt),!0).forEach(function(_t){Ge(St,_t,kt[_t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(St,Object.getOwnPropertyDescriptors(kt)):me(Object(kt)).forEach(function(_t){Object.defineProperty(St,_t,Object.getOwnPropertyDescriptor(kt,_t))})}return St}function we(St){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?we=function(pt){return typeof pt}:we=function(pt){return pt&&typeof Symbol=="function"&&pt.constructor===Symbol&&pt!==Symbol.prototype?"symbol":typeof pt},we(St)}function Ge(St,pt,kt){return pt in St?Object.defineProperty(St,pt,{value:kt,enumerable:!0,configurable:!0,writable:!0}):St[pt]=kt,St}var ht,nt={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Re(){if(ht!==void 0)return ht;ht="";var St=document.createElement("p").style,pt="Transform";for(var kt in nt)kt+pt in St&&(ht=kt);return ht}function ue(){return Re()?"".concat(Re(),"TransitionProperty"):"transitionProperty"}function ae(){return Re()?"".concat(Re(),"Transform"):"transform"}function ve(St,pt){var kt=ue();kt&&(St.style[kt]=pt,kt!=="transitionProperty"&&(St.style.transitionProperty=pt))}function Me(St,pt){var kt=ae();kt&&(St.style[kt]=pt,kt!=="transform"&&(St.style.transform=pt))}function Ye(St){return St.style.transitionProperty||St.style[ue()]}function qe(St){var pt=window.getComputedStyle(St,null),kt=pt.getPropertyValue("transform")||pt.getPropertyValue(ae());if(kt&&kt!=="none"){var _t=kt.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(_t[12]||_t[4],0),y:parseFloat(_t[13]||_t[5],0)}}return{x:0,y:0}}var At=/matrix\((.*)\)/,It=/matrix3d\((.*)\)/;function Ce(St,pt){var kt=window.getComputedStyle(St,null),_t=kt.getPropertyValue("transform")||kt.getPropertyValue(ae());if(_t&&_t!=="none"){var Mn,Pr=_t.match(At);if(Pr)Pr=Pr[1],Mn=Pr.split(",").map(function(jt){return parseFloat(jt,10)}),Mn[4]=pt.x,Mn[5]=pt.y,Me(St,"matrix(".concat(Mn.join(","),")"));else{var Hi=_t.match(It)[1];Mn=Hi.split(",").map(function(jt){return parseFloat(jt,10)}),Mn[12]=pt.x,Mn[13]=pt.y,Me(St,"matrix3d(".concat(Mn.join(","),")"))}}else Me(St,"translateX(".concat(pt.x,"px) translateY(").concat(pt.y,"px) translateZ(0)"))}var Ae=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,$e;function tt(St){var pt=St.style.display;St.style.display="none",St.offsetHeight,St.style.display=pt}function ke(St,pt,kt){var _t=kt;if(we(pt)==="object"){for(var Mn in pt)pt.hasOwnProperty(Mn)&&ke(St,Mn,pt[Mn]);return}if(typeof _t<"u"){typeof _t=="number"&&(_t="".concat(_t,"px")),St.style[pt]=_t;return}return $e(St,pt)}function Oe(St){var pt,kt,_t,Mn=St.ownerDocument,Pr=Mn.body,Hi=Mn&&Mn.documentElement;return pt=St.getBoundingClientRect(),kt=pt.left,_t=pt.top,kt-=Hi.clientLeft||Pr.clientLeft||0,_t-=Hi.clientTop||Pr.clientTop||0,{left:kt,top:_t}}function je(St,pt){var kt=St["page".concat(pt?"Y":"X","Offset")],_t="scroll".concat(pt?"Top":"Left");if(typeof kt!="number"){var Mn=St.document;kt=Mn.documentElement[_t],typeof kt!="number"&&(kt=Mn.body[_t])}return kt}function Et(St){return je(St)}function ct(St){return je(St,!0)}function ut(St){var pt=Oe(St),kt=St.ownerDocument,_t=kt.defaultView||kt.parentWindow;return pt.left+=Et(_t),pt.top+=ct(_t),pt}function Ne(St){return St!=null&&St==St.window}function mt(St){return Ne(St)?St.document:St.nodeType===9?St:St.ownerDocument}function bt(St,pt,kt){var _t=kt,Mn="",Pr=mt(St);return _t=_t||Pr.defaultView.getComputedStyle(St,null),_t&&(Mn=_t.getPropertyValue(pt)||_t[pt]),Mn}var Gt=new RegExp("^(".concat(Ae,")(?!px)[a-z%]+$"),"i"),hn=/^(top|right|bottom|left)$/,Yt="currentStyle",Bt="runtimeStyle",Lt="left",zt="px";function Kt(St,pt){var kt=St[Yt]&&St[Yt][pt];if(Gt.test(kt)&&!hn.test(pt)){var _t=St.style,Mn=_t[Lt],Pr=St[Bt][Lt];St[Bt][Lt]=St[Yt][Lt],_t[Lt]=pt==="fontSize"?"1em":kt||0,kt=_t.pixelLeft+zt,_t[Lt]=Mn,St[Bt][Lt]=Pr}return kt===""?"auto":kt}typeof window<"u"&&($e=window.getComputedStyle?bt:Kt);function vt(St,pt){return St==="left"?pt.useCssRight?"right":St:pt.useCssBottom?"bottom":St}function Ve(St){if(St==="left")return"right";if(St==="right")return"left";if(St==="top")return"bottom";if(St==="bottom")return"top"}function lt(St,pt,kt){ke(St,"position")==="static"&&(St.style.position="relative");var _t=-999,Mn=-999,Pr=vt("left",kt),Hi=vt("top",kt),jt=Ve(Pr),$n=Ve(Hi);Pr!=="left"&&(_t=999),Hi!=="top"&&(Mn=999);var pn="",ee=ut(St);("left"in pt||"top"in pt)&&(pn=Ye(St)||"",ve(St,"none")),"left"in pt&&(St.style[jt]="",St.style[Pr]="".concat(_t,"px")),"top"in pt&&(St.style[$n]="",St.style[Hi]="".concat(Mn,"px")),tt(St);var oe=ut(St),De={};for(var Be in pt)if(pt.hasOwnProperty(Be)){var gt=vt(Be,kt),Ht=Be==="left"?_t:Mn,nn=ee[Be]-oe[Be];gt===Be?De[gt]=Ht+nn:De[gt]=Ht-nn}ke(St,De),tt(St),("left"in pt||"top"in pt)&&ve(St,pn);var Rn={};for(var Yn in pt)if(pt.hasOwnProperty(Yn)){var gr=vt(Yn,kt),Ai=pt[Yn]-ee[Yn];Yn===gr?Rn[gr]=De[gr]+Ai:Rn[gr]=De[gr]-Ai}ke(St,Rn)}function at(St,pt){var kt=ut(St),_t=qe(St),Mn={x:_t.x,y:_t.y};"left"in pt&&(Mn.x=_t.x+pt.left-kt.left),"top"in pt&&(Mn.y=_t.y+pt.top-kt.top),Ce(St,Mn)}function Xt(St,pt,kt){if(kt.ignoreShake){var _t=ut(St),Mn=_t.left.toFixed(0),Pr=_t.top.toFixed(0),Hi=pt.left.toFixed(0),jt=pt.top.toFixed(0);if(Mn===Hi&&Pr===jt)return}kt.useCssRight||kt.useCssBottom?lt(St,pt,kt):kt.useCssTransform&&ae()in document.body.style?at(St,pt):lt(St,pt,kt)}function rt(St,pt){for(var kt=0;kt<St.length;kt++)pt(St[kt])}function Rt(St){return $e(St,"boxSizing")==="border-box"}var rn=["margin","border","padding"],sn=-1,Jn=2,ze=1,st=0;function en(St,pt,kt){var _t={},Mn=St.style,Pr;for(Pr in pt)pt.hasOwnProperty(Pr)&&(_t[Pr]=Mn[Pr],Mn[Pr]=pt[Pr]);kt.call(St);for(Pr in pt)pt.hasOwnProperty(Pr)&&(Mn[Pr]=_t[Pr])}function wt(St,pt,kt){var _t=0,Mn,Pr,Hi;for(Pr=0;Pr<pt.length;Pr++)if(Mn=pt[Pr],Mn)for(Hi=0;Hi<kt.length;Hi++){var jt=void 0;Mn==="border"?jt="".concat(Mn).concat(kt[Hi],"Width"):jt=Mn+kt[Hi],_t+=parseFloat($e(St,jt))||0}return _t}var Ke={getParent:function(pt){var kt=pt;do kt.nodeType===11&&kt.host?kt=kt.host:kt=kt.parentNode;while(kt&&kt.nodeType!==1&&kt.nodeType!==9);return kt}};rt(["Width","Height"],function(St){Ke["doc".concat(St)]=function(pt){var kt=pt.document;return Math.max(kt.documentElement["scroll".concat(St)],kt.body["scroll".concat(St)],Ke["viewport".concat(St)](kt))},Ke["viewport".concat(St)]=function(pt){var kt="client".concat(St),_t=pt.document,Mn=_t.body,Pr=_t.documentElement,Hi=Pr[kt];return _t.compatMode==="CSS1Compat"&&Hi||Mn&&Mn[kt]||Hi}});function Ut(St,pt,kt){var _t=kt;if(Ne(St))return pt==="width"?Ke.viewportWidth(St):Ke.viewportHeight(St);if(St.nodeType===9)return pt==="width"?Ke.docWidth(St):Ke.docHeight(St);var Mn=pt==="width"?["Left","Right"]:["Top","Bottom"],Pr=pt==="width"?St.getBoundingClientRect().width:St.getBoundingClientRect().height,Hi=Rt(St),jt=0;(Pr==null||Pr<=0)&&(Pr=void 0,jt=$e(St,pt),(jt==null||Number(jt)<0)&&(jt=St.style[pt]||0),jt=parseFloat(jt)||0),_t===void 0&&(_t=Hi?ze:sn);var $n=Pr!==void 0||Hi,pn=Pr||jt;return _t===sn?$n?pn-wt(St,["border","padding"],Mn):jt:$n?_t===ze?pn:pn+(_t===Jn?-wt(St,["border"],Mn):wt(St,["margin"],Mn)):jt+wt(St,rn.slice(_t),Mn)}var on={position:"absolute",visibility:"hidden",display:"block"};function Tn(){for(var St=arguments.length,pt=new Array(St),kt=0;kt<St;kt++)pt[kt]=arguments[kt];var _t,Mn=pt[0];return Mn.offsetWidth!==0?_t=Ut.apply(void 0,pt):en(Mn,on,function(){_t=Ut.apply(void 0,pt)}),_t}rt(["width","height"],function(St){var pt=St.charAt(0).toUpperCase()+St.slice(1);Ke["outer".concat(pt)]=function(_t,Mn){return _t&&Tn(_t,St,Mn?st:ze)};var kt=St==="width"?["Left","Right"]:["Top","Bottom"];Ke[St]=function(_t,Mn){var Pr=Mn;if(Pr!==void 0){if(_t){var Hi=Rt(_t);return Hi&&(Pr+=wt(_t,["padding","border"],kt)),ke(_t,St,Pr)}return}return _t&&Tn(_t,St,sn)}});function An(St,pt){for(var kt in pt)pt.hasOwnProperty(kt)&&(St[kt]=pt[kt]);return St}var Zt={getWindow:function(pt){if(pt&&pt.document&&pt.setTimeout)return pt;var kt=pt.ownerDocument||pt;return kt.defaultView||kt.parentWindow},getDocument:mt,offset:function(pt,kt,_t){if(typeof kt<"u")Xt(pt,kt,_t||{});else return ut(pt)},isWindow:Ne,each:rt,css:ke,clone:function(pt){var kt,_t={};for(kt in pt)pt.hasOwnProperty(kt)&&(_t[kt]=pt[kt]);var Mn=pt.overflow;if(Mn)for(kt in pt)pt.hasOwnProperty(kt)&&(_t.overflow[kt]=pt.overflow[kt]);return _t},mix:An,getWindowScrollLeft:function(pt){return Et(pt)},getWindowScrollTop:function(pt){return ct(pt)},merge:function(){for(var pt={},kt=0;kt<arguments.length;kt++)Zt.mix(pt,kt<0||arguments.length<=kt?void 0:arguments[kt]);return pt},viewportWidth:0,viewportHeight:0};An(Zt,Ke);var ot=Zt.getParent;function We(St){if(Zt.isWindow(St)||St.nodeType===9)return null;var pt=Zt.getDocument(St),kt=pt.body,_t,Mn=Zt.css(St,"position"),Pr=Mn==="fixed"||Mn==="absolute";if(!Pr)return St.nodeName.toLowerCase()==="html"?null:ot(St);for(_t=ot(St);_t&&_t!==kt&&_t.nodeType!==9;_t=ot(_t))if(Mn=Zt.css(_t,"position"),Mn!=="static")return _t;return null}var Ft=Zt.getParent;function it(St){if(Zt.isWindow(St)||St.nodeType===9)return!1;var pt=Zt.getDocument(St),kt=pt.body,_t=null;for(_t=Ft(St);_t&&_t!==kt&&_t!==pt;_t=Ft(_t)){var Mn=Zt.css(_t,"position");if(Mn==="fixed")return!0}return!1}function qt(St,pt){for(var kt={left:0,right:1/0,top:0,bottom:1/0},_t=We(St),Mn=Zt.getDocument(St),Pr=Mn.defaultView||Mn.parentWindow,Hi=Mn.body,jt=Mn.documentElement;_t;){if((navigator.userAgent.indexOf("MSIE")===-1||_t.clientWidth!==0)&&_t!==Hi&&_t!==jt&&Zt.css(_t,"overflow")!=="visible"){var $n=Zt.offset(_t);$n.left+=_t.clientLeft,$n.top+=_t.clientTop,kt.top=Math.max(kt.top,$n.top),kt.right=Math.min(kt.right,$n.left+_t.clientWidth),kt.bottom=Math.min(kt.bottom,$n.top+_t.clientHeight),kt.left=Math.max(kt.left,$n.left)}else if(_t===Hi||_t===jt)break;_t=We(_t)}var pn=null;if(!Zt.isWindow(St)&&St.nodeType!==9){pn=St.style.position;var ee=Zt.css(St,"position");ee==="absolute"&&(St.style.position="fixed")}var oe=Zt.getWindowScrollLeft(Pr),De=Zt.getWindowScrollTop(Pr),Be=Zt.viewportWidth(Pr),gt=Zt.viewportHeight(Pr),Ht=jt.scrollWidth,nn=jt.scrollHeight,Rn=window.getComputedStyle(Hi);if(Rn.overflowX==="hidden"&&(Ht=Pr.innerWidth),Rn.overflowY==="hidden"&&(nn=Pr.innerHeight),St.style&&(St.style.position=pn),pt||it(St))kt.left=Math.max(kt.left,oe),kt.top=Math.max(kt.top,De),kt.right=Math.min(kt.right,oe+Be),kt.bottom=Math.min(kt.bottom,De+gt);else{var Yn=Math.max(Ht,oe+Be);kt.right=Math.min(kt.right,Yn);var gr=Math.max(nn,De+gt);kt.bottom=Math.min(kt.bottom,gr)}return kt.top>=0&&kt.left>=0&&kt.bottom>kt.top&&kt.right>kt.left?kt:null}function vn(St,pt,kt,_t){var Mn=Zt.clone(St),Pr={width:pt.width,height:pt.height};return _t.adjustX&&Mn.left<kt.left&&(Mn.left=kt.left),_t.resizeWidth&&Mn.left>=kt.left&&Mn.left+Pr.width>kt.right&&(Pr.width-=Mn.left+Pr.width-kt.right),_t.adjustX&&Mn.left+Pr.width>kt.right&&(Mn.left=Math.max(kt.right-Pr.width,kt.left)),_t.adjustY&&Mn.top<kt.top&&(Mn.top=kt.top),_t.resizeHeight&&Mn.top>=kt.top&&Mn.top+Pr.height>kt.bottom&&(Pr.height-=Mn.top+Pr.height-kt.bottom),_t.adjustY&&Mn.top+Pr.height>kt.bottom&&(Mn.top=Math.max(kt.bottom-Pr.height,kt.top)),Zt.mix(Mn,Pr)}function fn(St){var pt,kt,_t;if(!Zt.isWindow(St)&&St.nodeType!==9)pt=Zt.offset(St),kt=Zt.outerWidth(St),_t=Zt.outerHeight(St);else{var Mn=Zt.getWindow(St);pt={left:Zt.getWindowScrollLeft(Mn),top:Zt.getWindowScrollTop(Mn)},kt=Zt.viewportWidth(Mn),_t=Zt.viewportHeight(Mn)}return pt.width=kt,pt.height=_t,pt}function Tt(St,pt){var kt=pt.charAt(0),_t=pt.charAt(1),Mn=St.width,Pr=St.height,Hi=St.left,jt=St.top;return kt==="c"?jt+=Pr/2:kt==="b"&&(jt+=Pr),_t==="c"?Hi+=Mn/2:_t==="r"&&(Hi+=Mn),{left:Hi,top:jt}}function dn(St,pt,kt,_t,Mn){var Pr=Tt(pt,kt[1]),Hi=Tt(St,kt[0]),jt=[Hi.left-Pr.left,Hi.top-Pr.top];return{left:Math.round(St.left-jt[0]+_t[0]-Mn[0]),top:Math.round(St.top-jt[1]+_t[1]-Mn[1])}}function mn(St,pt,kt){return St.left<kt.left||St.left+pt.width>kt.right}function Kn(St,pt,kt){return St.top<kt.top||St.top+pt.height>kt.bottom}function Dn(St,pt,kt){return St.left>kt.right||St.left+pt.width<kt.left}function Vn(St,pt,kt){return St.top>kt.bottom||St.top+pt.height<kt.top}function or(St,pt,kt){var _t=[];return Zt.each(St,function(Mn){_t.push(Mn.replace(pt,function(Pr){return kt[Pr]}))}),_t}function Qr(St,pt){return St[pt]=-St[pt],St}function ni(St,pt){var kt;return/%$/.test(St)?kt=parseInt(St.substring(0,St.length-1),10)/100*pt:kt=parseInt(St,10),kt||0}function yr(St,pt){St[0]=ni(St[0],pt.width),St[1]=ni(St[1],pt.height)}function si(St,pt,kt,_t){var Mn=kt.points,Pr=kt.offset||[0,0],Hi=kt.targetOffset||[0,0],jt=kt.overflow,$n=kt.source||St;Pr=[].concat(Pr),Hi=[].concat(Hi),jt=jt||{};var pn={},ee=0,oe=!!(jt&&jt.alwaysByViewport),De=qt($n,oe),Be=fn($n);yr(Pr,Be),yr(Hi,pt);var gt=dn(Be,pt,Mn,Pr,Hi),Ht=Zt.merge(Be,gt);if(De&&(jt.adjustX||jt.adjustY)&&_t){if(jt.adjustX&&mn(gt,Be,De)){var nn=or(Mn,/[lr]/gi,{l:"r",r:"l"}),Rn=Qr(Pr,0),Yn=Qr(Hi,0),gr=dn(Be,pt,nn,Rn,Yn);Dn(gr,Be,De)||(ee=1,Mn=nn,Pr=Rn,Hi=Yn)}if(jt.adjustY&&Kn(gt,Be,De)){var Ai=or(Mn,/[tb]/gi,{t:"b",b:"t"}),$i=Qr(Pr,1),ma=Qr(Hi,1),La=dn(Be,pt,Ai,$i,ma);Vn(La,Be,De)||(ee=1,Mn=Ai,Pr=$i,Hi=ma)}ee&&(gt=dn(Be,pt,Mn,Pr,Hi),Zt.mix(Ht,gt));var Qa=mn(gt,Be,De),go=Kn(gt,Be,De);if(Qa||go){var Ao=Mn;Qa&&(Ao=or(Mn,/[lr]/gi,{l:"r",r:"l"})),go&&(Ao=or(Mn,/[tb]/gi,{t:"b",b:"t"})),Mn=Ao,Pr=kt.offset||[0,0],Hi=kt.targetOffset||[0,0]}pn.adjustX=jt.adjustX&&Qa,pn.adjustY=jt.adjustY&&go,(pn.adjustX||pn.adjustY)&&(Ht=vn(gt,Be,De,pn))}return Ht.width!==Be.width&&Zt.css($n,"width",Zt.width($n)+Ht.width-Be.width),Ht.height!==Be.height&&Zt.css($n,"height",Zt.height($n)+Ht.height-Be.height),Zt.offset($n,{left:Ht.left,top:Ht.top},{useCssRight:kt.useCssRight,useCssBottom:kt.useCssBottom,useCssTransform:kt.useCssTransform,ignoreShake:kt.ignoreShake}),{points:Mn,offset:Pr,targetOffset:Hi,overflow:pn}}function Yr(St,pt){var kt=qt(St,pt),_t=fn(St);return!kt||_t.left+_t.width<=kt.left||_t.top+_t.height<=kt.top||_t.left>=kt.right||_t.top>=kt.bottom}function Ci(St,pt,kt){var _t=kt.target||pt,Mn=fn(_t),Pr=!Yr(_t,kt.overflow&&kt.overflow.alwaysByViewport);return si(St,Mn,kt,Pr)}Ci.__getOffsetParent=We,Ci.__getVisibleRectForElement=qt;function Ni(St,pt,kt){var _t,Mn,Pr=Zt.getDocument(St),Hi=Pr.defaultView||Pr.parentWindow,jt=Zt.getWindowScrollLeft(Hi),$n=Zt.getWindowScrollTop(Hi),pn=Zt.viewportWidth(Hi),ee=Zt.viewportHeight(Hi);"pageX"in pt?_t=pt.pageX:_t=jt+pt.clientX,"pageY"in pt?Mn=pt.pageY:Mn=$n+pt.clientY;var oe={left:_t,top:Mn,width:0,height:0},De=_t>=0&&_t<=jt+pn&&Mn>=0&&Mn<=$n+ee,Be=[kt.points[0],"cc"];return si(St,oe,_e(_e({},kt),{},{points:Be}),De)}const fa=null;function ha(St,pt){var kt=void 0;function _t(){kt&&(clearTimeout(kt),kt=null)}function Mn(){_t(),kt=setTimeout(St,pt)}return Mn.clear=_t,Mn}function Ca(St,pt){return St===pt?!0:!St||!pt?!1:"pageX"in pt&&"pageY"in pt?St.pageX===pt.pageX&&St.pageY===pt.pageY:"clientX"in pt&&"clientY"in pt?St.clientX===pt.clientX&&St.clientY===pt.clientY:!1}function li(St){return St&&typeof St=="object"&&St.window===St}function la(St,pt){var kt=Math.floor(St),_t=Math.floor(pt);return Math.abs(kt-_t)<=1}function Oa(St,pt){St!==document.activeElement&&g(pt,St)&&St.focus()}function wa(St){return typeof St!="function"||!St?null:St()}function vo(St){return typeof St!="object"||!St?null:St}var Qn=function(St){(0,p.Z)(pt,St);function pt(){var kt,_t,Mn,Pr;(0,l.Z)(this,pt);for(var Hi=arguments.length,jt=Array(Hi),$n=0;$n<Hi;$n++)jt[$n]=arguments[$n];return Pr=(_t=(Mn=(0,h.Z)(this,(kt=pt.__proto__||Object.getPrototypeOf(pt)).call.apply(kt,[this].concat(jt))),Mn),Mn.forceAlign=function(){var pn=Mn.props,ee=pn.disabled,oe=pn.target,De=pn.align,Be=pn.onAlign;if(!ee&&oe){var gt=d.findDOMNode(Mn),Ht=void 0,nn=wa(oe),Rn=vo(oe),Yn=document.activeElement;nn?Ht=Ci(gt,nn,De):Rn&&(Ht=Ni(gt,Rn,De)),Oa(Yn,gt),Be&&Be(gt,Ht)}},_t),(0,h.Z)(Mn,Pr)}return(0,he.Z)(pt,[{key:"componentDidMount",value:function(){var _t=this.props;this.forceAlign(),!_t.disabled&&_t.monitorWindowResize&&this.startMonitorWindowResize()}},{key:"componentDidUpdate",value:function(_t){var Mn=!1,Pr=this.props;if(!Pr.disabled){var Hi=d.findDOMNode(this),jt=Hi?Hi.getBoundingClientRect():null;if(_t.disabled)Mn=!0;else{var $n=wa(_t.target),pn=wa(Pr.target),ee=vo(_t.target),oe=vo(Pr.target);li($n)&&li(pn)?Mn=!1:($n!==pn||$n&&!pn&&oe||ee&&oe&&pn||oe&&!Ca(ee,oe))&&(Mn=!0);var De=this.sourceRect||{};!Mn&&Hi&&(!la(De.width,jt.width)||!la(De.height,jt.height))&&(Mn=!0)}this.sourceRect=jt}Mn&&this.forceAlign(),Pr.monitorWindowResize&&!Pr.disabled?this.startMonitorWindowResize():this.stopMonitorWindowResize()}},{key:"componentWillUnmount",value:function(){this.stopMonitorWindowResize()}},{key:"startMonitorWindowResize",value:function(){this.resizeHandler||(this.bufferMonitor=ha(this.forceAlign,this.props.monitorBufferTime),this.resizeHandler=E(window,"resize",this.bufferMonitor))}},{key:"stopMonitorWindowResize",value:function(){this.resizeHandler&&(this.bufferMonitor.clear(),this.resizeHandler.remove(),this.resizeHandler=null)}},{key:"render",value:function(){var _t=this,Mn=this.props,Pr=Mn.childrenProps,Hi=Mn.children,jt=i.Children.only(Hi);if(Pr){var $n={},pn=Object.keys(Pr);return pn.forEach(function(ee){$n[ee]=_t.props[Pr[ee]]}),i.cloneElement(jt,$n)}return jt}}]),pt}(i.Component);Qn.propTypes={childrenProps:u().object,align:u().object.isRequired,target:u().oneOfType([u().func,u().shape({clientX:u().number,clientY:u().number,pageX:u().number,pageY:u().number})]),onAlign:u().func,monitorBufferTime:u().number,monitorWindowResize:u().bool,disabled:u().bool,children:u().any},Qn.defaultProps={target:function(){return window},monitorBufferTime:50,monitorWindowResize:!1,disabled:!1};const $r=Qn;var Ti=t(92255),xt=function(pt){var kt=pt.prototype;if(!kt||!kt.isReactComponent)throw new Error("Can only polyfill class components");return typeof kt.componentWillReceiveProps!="function"||!i.Profiler||(kt.UNSAFE_componentWillReceiveProps=kt.componentWillReceiveProps,delete kt.componentWillReceiveProps),pt};const On=xt;function Zn(St){var pt=[];return i.Children.forEach(St,function(kt){pt.push(kt)}),pt}function Ur(St,pt){var kt=null;return St&&St.forEach(function(_t){kt||_t&&_t.key===pt&&(kt=_t)}),kt}function En(St,pt,kt){var _t=null;return St&&St.forEach(function(Mn){if(Mn&&Mn.key===pt&&Mn.props[kt]){if(_t)throw new Error("two child with same key for <rc-animate> children");_t=Mn}}),_t}function ln(St,pt,kt){var _t=0;return St&&St.forEach(function(Mn){_t||(_t=Mn&&Mn.key===pt&&!Mn.props[kt])}),_t}function jn(St,pt,kt){var _t=St.length===pt.length;return _t&&St.forEach(function(Mn,Pr){var Hi=pt[Pr];Mn&&Hi&&(Mn&&!Hi||!Mn&&Hi||Mn.key!==Hi.key||kt&&Mn.props[kt]!==Hi.props[kt])&&(_t=!1)}),_t}function rr(St,pt){var kt=[],_t={},Mn=[];return St.forEach(function(Pr){Pr&&Ur(pt,Pr.key)?Mn.length&&(_t[Pr.key]=Mn,Mn=[]):Mn.push(Pr)}),pt.forEach(function(Pr){Pr&&Object.prototype.hasOwnProperty.call(_t,Pr.key)&&(kt=kt.concat(_t[Pr.key])),kt.push(Pr)}),kt=kt.concat(Mn),kt}var Mr=t(42755),Ir={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},Zr={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},lr=[],Jr=[];function pi(){var St=document.createElement("div"),pt=St.style;"AnimationEvent"in window||(delete Ir.animationstart.animation,delete Zr.animationend.animation),"TransitionEvent"in window||(delete Ir.transitionstart.transition,delete Zr.transitionend.transition);function kt(_t,Mn){for(var Pr in _t)if(_t.hasOwnProperty(Pr)){var Hi=_t[Pr];for(var jt in Hi)if(jt in pt){Mn.push(Hi[jt]);break}}}kt(Ir,lr),kt(Zr,Jr)}typeof window<"u"&&typeof document<"u"&&pi();function Ri(St,pt,kt){St.addEventListener(pt,kt,!1)}function Ki(St,pt,kt){St.removeEventListener(pt,kt,!1)}var ia={startEvents:lr,addStartEventListener:function(pt,kt){if(lr.length===0){window.setTimeout(kt,0);return}lr.forEach(function(_t){Ri(pt,_t,kt)})},removeStartEventListener:function(pt,kt){lr.length!==0&&lr.forEach(function(_t){Ki(pt,_t,kt)})},endEvents:Jr,addEndEventListener:function(pt,kt){if(Jr.length===0){window.setTimeout(kt,0);return}Jr.forEach(function(_t){Ri(pt,_t,kt)})},removeEndEventListener:function(pt,kt){Jr.length!==0&&Jr.forEach(function(_t){Ki(pt,_t,kt)})}};const Da=ia;var to=t(20762),ao=t.n(to),Bo=Da.endEvents.length!==0,jo=["Webkit","Moz","O","ms"],Jo=["-webkit-","-moz-","-o-","ms-",""];function Go(St,pt){for(var kt=window.getComputedStyle(St,null),_t="",Mn=0;Mn<Jo.length&&(_t=kt.getPropertyValue(Jo[Mn]+pt),!_t);Mn++);return _t}function wr(St){if(Bo){var pt=parseFloat(Go(St,"transition-delay"))||0,kt=parseFloat(Go(St,"transition-duration"))||0,_t=parseFloat(Go(St,"animation-delay"))||0,Mn=parseFloat(Go(St,"animation-duration"))||0,Pr=Math.max(kt+pt,Mn+_t);St.rcEndAnimTimeout=setTimeout(function(){St.rcEndAnimTimeout=null,St.rcEndListener&&St.rcEndListener()},Pr*1e3+200)}}function qi(St){St.rcEndAnimTimeout&&(clearTimeout(St.rcEndAnimTimeout),St.rcEndAnimTimeout=null)}var ja=function(pt,kt,_t){var Mn=(typeof kt>"u"?"undefined":(0,Mr.default)(kt))==="object",Pr=Mn?kt.name:kt,Hi=Mn?kt.active:kt+"-active",jt=_t,$n=void 0,pn=void 0,ee=ao()(pt);return _t&&Object.prototype.toString.call(_t)==="[object Object]"&&(jt=_t.end,$n=_t.start,pn=_t.active),pt.rcEndListener&&pt.rcEndListener(),pt.rcEndListener=function(oe){oe&&oe.target!==pt||(pt.rcAnimTimeout&&(clearTimeout(pt.rcAnimTimeout),pt.rcAnimTimeout=null),qi(pt),ee.remove(Pr),ee.remove(Hi),Da.removeEndEventListener(pt,pt.rcEndListener),pt.rcEndListener=null,jt&&jt())},Da.addEndEventListener(pt,pt.rcEndListener),$n&&$n(),ee.add(Pr),pt.rcAnimTimeout=setTimeout(function(){pt.rcAnimTimeout=null,ee.add(Hi),pn&&setTimeout(pn,0),wr(pt)},30),{stop:function(){pt.rcEndListener&&pt.rcEndListener()}}};ja.style=function(St,pt,kt){St.rcEndListener&&St.rcEndListener(),St.rcEndListener=function(_t){_t&&_t.target!==St||(St.rcAnimTimeout&&(clearTimeout(St.rcAnimTimeout),St.rcAnimTimeout=null),qi(St),Da.removeEndEventListener(St,St.rcEndListener),St.rcEndListener=null,kt&&kt())},Da.addEndEventListener(St,St.rcEndListener),St.rcAnimTimeout=setTimeout(function(){for(var _t in pt)pt.hasOwnProperty(_t)&&(St.style[_t]=pt[_t]);St.rcAnimTimeout=null,wr(St)},0)},ja.setTransition=function(St,pt,kt){var _t=pt,Mn=kt;kt===void 0&&(Mn=_t,_t=""),_t=_t||"",jo.forEach(function(Pr){St.style[Pr+"Transition"+_t]=Mn})},ja.isCssAnimationSupported=Bo;const uo=ja;var wi={isAppearSupported:function(pt){return pt.transitionName&&pt.transitionAppear||pt.animation.appear},isEnterSupported:function(pt){return pt.transitionName&&pt.transitionEnter||pt.animation.enter},isLeaveSupported:function(pt){return pt.transitionName&&pt.transitionLeave||pt.animation.leave},allowAppearCallback:function(pt){return pt.transitionAppear||pt.animation.appear},allowEnterCallback:function(pt){return pt.transitionEnter||pt.animation.enter},allowLeaveCallback:function(pt){return pt.transitionLeave||pt.animation.leave}};const ai=wi;var za={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},Mt=function(St){(0,p.Z)(pt,St);function pt(){return(0,l.Z)(this,pt),(0,h.Z)(this,(pt.__proto__||Object.getPrototypeOf(pt)).apply(this,arguments))}return(0,he.Z)(pt,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(_t){ai.isEnterSupported(this.props)?this.transition("enter",_t):_t()}},{key:"componentWillAppear",value:function(_t){ai.isAppearSupported(this.props)?this.transition("appear",_t):_t()}},{key:"componentWillLeave",value:function(_t){ai.isLeaveSupported(this.props)?this.transition("leave",_t):_t()}},{key:"transition",value:function(_t,Mn){var Pr=this,Hi=d.findDOMNode(this),jt=this.props,$n=jt.transitionName,pn=typeof $n=="object";this.stop();var ee=function(){Pr.stopper=null,Mn()};if((Bo||!jt.animation[_t])&&$n&&jt[za[_t]]){var oe=pn?$n[_t]:$n+"-"+_t,De=oe+"-active";pn&&$n[_t+"Active"]&&(De=$n[_t+"Active"]),this.stopper=uo(Hi,{name:oe,active:De},ee)}else this.stopper=jt.animation[_t](Hi,ee)}},{key:"stop",value:function(){var _t=this.stopper;_t&&(this.stopper=null,_t.stop())}},{key:"render",value:function(){return this.props.children}}]),pt}(i.Component);Mt.propTypes={children:u().any,animation:u().any,transitionName:u().any};const Gn=Mt;var qn="rc_animate_"+Date.now();function Fr(St){var pt=St.children;return i.isValidElement(pt)&&!pt.key?i.cloneElement(pt,{key:qn}):pt}function Ei(){}var ii=function(St){(0,p.Z)(pt,St);function pt(kt){(0,l.Z)(this,pt);var _t=(0,h.Z)(this,(pt.__proto__||Object.getPrototypeOf(pt)).call(this,kt));return Wi.call(_t),_t.currentlyAnimatingKeys={},_t.keysToEnter=[],_t.keysToLeave=[],_t.state={children:Zn(Fr(kt))},_t.childrenRefs={},_t}return(0,he.Z)(pt,[{key:"componentDidMount",value:function(){var _t=this,Mn=this.props.showProp,Pr=this.state.children;Mn&&(Pr=Pr.filter(function(Hi){return!!Hi.props[Mn]})),Pr.forEach(function(Hi){Hi&&_t.performAppear(Hi.key)})}},{key:"componentWillReceiveProps",value:function(_t){var Mn=this;this.nextProps=_t;var Pr=Zn(Fr(_t)),Hi=this.props;Hi.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(oe){Mn.stop(oe)});var jt=Hi.showProp,$n=this.currentlyAnimatingKeys,pn=Hi.exclusive?Zn(Fr(Hi)):this.state.children,ee=[];jt?(pn.forEach(function(oe){var De=oe&&Ur(Pr,oe.key),Be=void 0;(!De||!De.props[jt])&&oe.props[jt]?Be=i.cloneElement(De||oe,(0,Ti.Z)({},jt,!0)):Be=De,Be&&ee.push(Be)}),Pr.forEach(function(oe){(!oe||!Ur(pn,oe.key))&&ee.push(oe)})):ee=rr(pn,Pr),this.setState({children:ee}),Pr.forEach(function(oe){var De=oe&&oe.key;if(!(oe&&$n[De])){var Be=oe&&Ur(pn,De);if(jt){var gt=oe.props[jt];if(Be){var Ht=En(pn,De,jt);!Ht&>&&Mn.keysToEnter.push(De)}else gt&&Mn.keysToEnter.push(De)}else Be||Mn.keysToEnter.push(De)}}),pn.forEach(function(oe){var De=oe&&oe.key;if(!(oe&&$n[De])){var Be=oe&&Ur(Pr,De);if(jt){var gt=oe.props[jt];if(Be){var Ht=En(Pr,De,jt);!Ht&>&&Mn.keysToLeave.push(De)}else gt&&Mn.keysToLeave.push(De)}else Be||Mn.keysToLeave.push(De)}})}},{key:"componentDidUpdate",value:function(){var _t=this.keysToEnter;this.keysToEnter=[],_t.forEach(this.performEnter);var Mn=this.keysToLeave;this.keysToLeave=[],Mn.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(_t,Mn){var Pr=this.props.showProp;return Pr?En(_t,Mn,Pr):Ur(_t,Mn)}},{key:"stop",value:function(_t){delete this.currentlyAnimatingKeys[_t];var Mn=this.childrenRefs[_t];Mn&&Mn.stop()}},{key:"render",value:function(){var _t=this,Mn=this.props;this.nextProps=Mn;var Pr=this.state.children,Hi=null;Pr&&(Hi=Pr.map(function(pn){if(pn==null)return pn;if(!pn.key)throw new Error("must set key for <rc-animate> children");return i.createElement(Gn,{key:pn.key,ref:function(oe){_t.childrenRefs[pn.key]=oe},animation:Mn.animation,transitionName:Mn.transitionName,transitionEnter:Mn.transitionEnter,transitionAppear:Mn.transitionAppear,transitionLeave:Mn.transitionLeave},pn)}));var jt=Mn.component;if(jt){var $n=Mn;return typeof jt=="string"&&($n=(0,v.Z)({className:Mn.className,style:Mn.style},Mn.componentProps)),i.createElement(jt,$n,Hi)}return Hi[0]||null}}]),pt}(i.Component);ii.isAnimate=!0,ii.propTypes={className:u().string,style:u().object,component:u().any,componentProps:u().object,animation:u().object,transitionName:u().oneOfType([u().string,u().object]),transitionEnter:u().bool,transitionAppear:u().bool,exclusive:u().bool,transitionLeave:u().bool,onEnd:u().func,onEnter:u().func,onLeave:u().func,onAppear:u().func,showProp:u().string,children:u().node},ii.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:Ei,onEnter:Ei,onLeave:Ei,onAppear:Ei};var Wi=function(){var pt=this;this.performEnter=function(kt){pt.childrenRefs[kt]&&(pt.currentlyAnimatingKeys[kt]=!0,pt.childrenRefs[kt].componentWillEnter(pt.handleDoneAdding.bind(pt,kt,"enter")))},this.performAppear=function(kt){pt.childrenRefs[kt]&&(pt.currentlyAnimatingKeys[kt]=!0,pt.childrenRefs[kt].componentWillAppear(pt.handleDoneAdding.bind(pt,kt,"appear")))},this.handleDoneAdding=function(kt,_t){var Mn=pt.props;if(delete pt.currentlyAnimatingKeys[kt],!(Mn.exclusive&&Mn!==pt.nextProps)){var Pr=Zn(Fr(Mn));pt.isValidChildByKey(Pr,kt)?_t==="appear"?ai.allowAppearCallback(Mn)&&(Mn.onAppear(kt),Mn.onEnd(kt,!0)):ai.allowEnterCallback(Mn)&&(Mn.onEnter(kt),Mn.onEnd(kt,!0)):pt.performLeave(kt)}},this.performLeave=function(kt){pt.childrenRefs[kt]&&(pt.currentlyAnimatingKeys[kt]=!0,pt.childrenRefs[kt].componentWillLeave(pt.handleDoneLeaving.bind(pt,kt)))},this.handleDoneLeaving=function(kt){var _t=pt.props;if(delete pt.currentlyAnimatingKeys[kt],!(_t.exclusive&&_t!==pt.nextProps)){var Mn=Zn(Fr(_t));if(pt.isValidChildByKey(Mn,kt))pt.performEnter(kt);else{var Pr=function(){ai.allowLeaveCallback(_t)&&(_t.onLeave(kt),_t.onEnd(kt,!1))};jn(pt.state.children,Mn,_t.showProp)?Pr():pt.setState({children:Mn},Pr)}}}};const Ya=On(ii);var qa=t(93580),se=function(St){(0,p.Z)(pt,St);function pt(){return(0,l.Z)(this,pt),(0,h.Z)(this,St.apply(this,arguments))}return pt.prototype.shouldComponentUpdate=function(_t){return _t.hiddenClassName||_t.visible},pt.prototype.render=function(){var _t=this.props,Mn=_t.hiddenClassName,Pr=_t.visible,Hi=(0,qa.Z)(_t,["hiddenClassName","visible"]);return Mn||i.Children.count(Hi.children)>1?(!Pr&&Mn&&(Hi.className+=" "+Mn),i.createElement("div",Hi)):i.Children.only(Hi.children)},pt}(i.Component);se.propTypes={children:u().any,className:u().string,visible:u().bool,hiddenClassName:u().string};const ye=se;var Xe=function(St){(0,p.Z)(pt,St);function pt(){return(0,l.Z)(this,pt),(0,h.Z)(this,St.apply(this,arguments))}return pt.prototype.render=function(){var _t=this.props,Mn=_t.className;return _t.visible||(Mn+=" "+_t.hiddenClassName),i.createElement("div",{className:Mn,onMouseEnter:_t.onMouseEnter,onMouseLeave:_t.onMouseLeave,onMouseDown:_t.onMouseDown,onTouchStart:_t.onTouchStart,style:_t.style},i.createElement(ye,{className:_t.prefixCls+"-content",visible:_t.visible},_t.children))},pt}(i.Component);Xe.propTypes={hiddenClassName:u().string,className:u().string,prefixCls:u().string,onMouseEnter:u().func,onMouseLeave:u().func,onMouseDown:u().func,onTouchStart:u().func,children:u().any};const yt=Xe;var Wt=function(St){(0,p.Z)(pt,St);function pt(kt){(0,l.Z)(this,pt);var _t=(0,h.Z)(this,St.call(this,kt));return Qt.call(_t),_t.state={stretchChecked:!1,targetWidth:void 0,targetHeight:void 0},_t.savePopupRef=Se.bind(_t,"popupInstance"),_t.saveAlignRef=Se.bind(_t,"alignInstance"),_t}return pt.prototype.componentDidMount=function(){this.rootNode=this.getPopupDomNode(),this.setStretchSize()},pt.prototype.componentDidUpdate=function(){this.setStretchSize()},pt.prototype.getPopupDomNode=function(){return d.findDOMNode(this.popupInstance)},pt.prototype.getMaskTransitionName=function(){var _t=this.props,Mn=_t.maskTransitionName,Pr=_t.maskAnimation;return!Mn&&Pr&&(Mn=_t.prefixCls+"-"+Pr),Mn},pt.prototype.getTransitionName=function(){var _t=this.props,Mn=_t.transitionName;return!Mn&&_t.animation&&(Mn=_t.prefixCls+"-"+_t.animation),Mn},pt.prototype.getClassName=function(_t){return this.props.prefixCls+" "+this.props.className+" "+_t},pt.prototype.getPopupElement=function(){var _t=this,Mn=this.savePopupRef,Pr=this.state,Hi=Pr.stretchChecked,jt=Pr.targetHeight,$n=Pr.targetWidth,pn=this.props,ee=pn.align,oe=pn.visible,De=pn.prefixCls,Be=pn.style,gt=pn.getClassNameFromAlign,Ht=pn.destroyPopupOnHide,nn=pn.stretch,Rn=pn.children,Yn=pn.onMouseEnter,gr=pn.onMouseLeave,Ai=pn.onMouseDown,$i=pn.onTouchStart,ma=this.getClassName(this.currentAlignClassName||gt(ee)),La=De+"-hidden";oe||(this.currentAlignClassName=null);var Qa={};nn&&(nn.indexOf("height")!==-1?Qa.height=jt:nn.indexOf("minHeight")!==-1&&(Qa.minHeight=jt),nn.indexOf("width")!==-1?Qa.width=$n:nn.indexOf("minWidth")!==-1&&(Qa.minWidth=$n),Hi||(Qa.visibility="hidden",setTimeout(function(){_t.alignInstance&&_t.alignInstance.forceAlign()},0)));var go=(0,v.Z)({},Qa,Be,this.getZIndexStyle()),Ao={className:ma,prefixCls:De,ref:Mn,onMouseEnter:Yn,onMouseLeave:gr,onMouseDown:Ai,onTouchStart:$i,style:go};return Ht?i.createElement(Ya,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName()},oe?i.createElement($r,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,align:ee,onAlign:this.onAlign},i.createElement(yt,(0,v.Z)({visible:!0},Ao),Rn)):null):i.createElement(Ya,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:"xVisible"},i.createElement($r,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,xVisible:oe,childrenProps:{visible:"xVisible"},disabled:!oe,align:ee,onAlign:this.onAlign},i.createElement(yt,(0,v.Z)({hiddenClassName:La},Ao),Rn)))},pt.prototype.getZIndexStyle=function(){var _t={},Mn=this.props;return Mn.zIndex!==void 0&&(_t.zIndex=Mn.zIndex),_t},pt.prototype.getMaskElement=function(){var _t=this.props,Mn=void 0;if(_t.mask){var Pr=this.getMaskTransitionName();Mn=i.createElement(ye,{style:this.getZIndexStyle(),key:"mask",className:_t.prefixCls+"-mask",hiddenClassName:_t.prefixCls+"-mask-hidden",visible:_t.visible}),Pr&&(Mn=i.createElement(Ya,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:Pr},Mn))}return Mn},pt.prototype.render=function(){return i.createElement("div",null,this.getMaskElement(),this.getPopupElement())},pt}(i.Component);Wt.propTypes={visible:u().bool,style:u().object,getClassNameFromAlign:u().func,onAlign:u().func,getRootDomNode:u().func,align:u().any,destroyPopupOnHide:u().bool,className:u().string,prefixCls:u().string,onMouseEnter:u().func,onMouseLeave:u().func,onMouseDown:u().func,onTouchStart:u().func,stretch:u().string,children:u().node,point:u().shape({pageX:u().number,pageY:u().number})};var Qt=function(){var pt=this;this.onAlign=function(kt,_t){var Mn=pt.props,Pr=Mn.getClassNameFromAlign(_t);pt.currentAlignClassName!==Pr&&(pt.currentAlignClassName=Pr,kt.className=pt.getClassName(Pr)),Mn.onAlign(kt,_t)},this.setStretchSize=function(){var kt=pt.props,_t=kt.stretch,Mn=kt.getRootDomNode,Pr=kt.visible,Hi=pt.state,jt=Hi.stretchChecked,$n=Hi.targetHeight,pn=Hi.targetWidth;if(!_t||!Pr){jt&&pt.setState({stretchChecked:!1});return}var ee=Mn();if(ee){var oe=ee.offsetHeight,De=ee.offsetWidth;($n!==oe||pn!==De||!jt)&&pt.setState({stretchChecked:!0,targetHeight:oe,targetWidth:De})}},this.getTargetElement=function(){return pt.props.getRootDomNode()},this.getAlignTarget=function(){var kt=pt.props.point;return kt||pt.getTargetElement}};const wn=Wt;function fr(){}function Or(){return""}function Si(){return window.document}var Fi=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],Bi=!!d.createPortal,Ui={rcTrigger:u().shape({onPopupMouseDown:u().func})},vi=function(St){(0,p.Z)(pt,St);function pt(kt){(0,l.Z)(this,pt);var _t=(0,h.Z)(this,St.call(this,kt));Xa.call(_t);var Mn=void 0;return"popupVisible"in kt?Mn=!!kt.popupVisible:Mn=!!kt.defaultPopupVisible,_t.state={prevPopupVisible:Mn,popupVisible:Mn},Fi.forEach(function(Pr){_t["fire"+Pr]=function(Hi){_t.fireEvents(Pr,Hi)}}),_t}return pt.prototype.getChildContext=function(){return{rcTrigger:{onPopupMouseDown:this.onPopupMouseDown}}},pt.prototype.componentDidMount=function(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})},pt.prototype.componentDidUpdate=function(_t,Mn){var Pr=this.props,Hi=this.state,jt=function(){Mn.popupVisible!==Hi.popupVisible&&Pr.afterPopupVisibleChange(Hi.popupVisible)};if(Bi||this.renderComponent(null,jt),Hi.popupVisible){var $n=void 0;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&($n=Pr.getDocument(),this.clickOutsideHandler=E($n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||($n=$n||Pr.getDocument(),this.touchOutsideHandler=E($n,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&($n=$n||Pr.getDocument(),this.contextMenuOutsideHandler1=E($n,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=E(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()},pt.prototype.componentWillUnmount=function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)},pt.getDerivedStateFromProps=function(_t,Mn){var Pr=_t.popupVisible,Hi={};return Pr!==void 0&&Mn.popupVisible!==Pr&&(Hi.popupVisible=Pr,Hi.prevPopupVisible=Mn.popupVisible),Hi},pt.prototype.getPopupDomNode=function(){return this._component&&this._component.getPopupDomNode?this._component.getPopupDomNode():null},pt.prototype.getPopupAlign=function(){var _t=this.props,Mn=_t.popupPlacement,Pr=_t.popupAlign,Hi=_t.builtinPlacements;return Mn&&Hi?ie(Hi,Mn,Pr):Pr},pt.prototype.setPopupVisible=function(_t,Mn){var Pr=this.props.alignPoint,Hi=this.state.popupVisible;this.clearDelayTimer(),Hi!==_t&&("popupVisible"in this.props||this.setState({popupVisible:_t,prevPopupVisible:Hi}),this.props.onPopupVisibleChange(_t)),Pr&&Mn&&this.setPoint(Mn)},pt.prototype.delaySetPopupVisible=function(_t,Mn,Pr){var Hi=this,jt=Mn*1e3;if(this.clearDelayTimer(),jt){var $n=Pr?{pageX:Pr.pageX,pageY:Pr.pageY}:null;this.delayTimer=setTimeout(function(){Hi.setPopupVisible(_t,$n),Hi.clearDelayTimer()},jt)}else this.setPopupVisible(_t,Pr)},pt.prototype.clearDelayTimer=function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},pt.prototype.clearOutsideHandler=function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},pt.prototype.createTwoChains=function(_t){var Mn=this.props.children.props,Pr=this.props;return Mn[_t]&&Pr[_t]?this["fire"+_t]:Mn[_t]||Pr[_t]},pt.prototype.isClickToShow=function(){var _t=this.props,Mn=_t.action,Pr=_t.showAction;return Mn.indexOf("click")!==-1||Pr.indexOf("click")!==-1},pt.prototype.isContextMenuToShow=function(){var _t=this.props,Mn=_t.action,Pr=_t.showAction;return Mn.indexOf("contextMenu")!==-1||Pr.indexOf("contextMenu")!==-1},pt.prototype.isClickToHide=function(){var _t=this.props,Mn=_t.action,Pr=_t.hideAction;return Mn.indexOf("click")!==-1||Pr.indexOf("click")!==-1},pt.prototype.isMouseEnterToShow=function(){var _t=this.props,Mn=_t.action,Pr=_t.showAction;return Mn.indexOf("hover")!==-1||Pr.indexOf("mouseEnter")!==-1},pt.prototype.isMouseLeaveToHide=function(){var _t=this.props,Mn=_t.action,Pr=_t.hideAction;return Mn.indexOf("hover")!==-1||Pr.indexOf("mouseLeave")!==-1},pt.prototype.isFocusToShow=function(){var _t=this.props,Mn=_t.action,Pr=_t.showAction;return Mn.indexOf("focus")!==-1||Pr.indexOf("focus")!==-1},pt.prototype.isBlurToHide=function(){var _t=this.props,Mn=_t.action,Pr=_t.hideAction;return Mn.indexOf("focus")!==-1||Pr.indexOf("blur")!==-1},pt.prototype.forcePopupAlign=function(){this.state.popupVisible&&this._component&&this._component.alignInstance&&this._component.alignInstance.forceAlign()},pt.prototype.fireEvents=function(_t,Mn){var Pr=this.props.children.props[_t];Pr&&Pr(Mn);var Hi=this.props[_t];Hi&&Hi(Mn)},pt.prototype.close=function(){this.setPopupVisible(!1)},pt.prototype.render=function(){var _t=this,Mn=this.state.popupVisible,Pr=this.props,Hi=Pr.children,jt=Pr.forceRender,$n=Pr.alignPoint,pn=Pr.className,ee=i.Children.only(Hi),oe={key:"trigger"};this.isContextMenuToShow()?oe.onContextMenu=this.onContextMenu:oe.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(oe.onClick=this.onClick,oe.onMouseDown=this.onMouseDown,oe.onTouchStart=this.onTouchStart):(oe.onClick=this.createTwoChains("onClick"),oe.onMouseDown=this.createTwoChains("onMouseDown"),oe.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(oe.onMouseEnter=this.onMouseEnter,$n&&(oe.onMouseMove=this.onMouseMove)):oe.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?oe.onMouseLeave=this.onMouseLeave:oe.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(oe.onFocus=this.onFocus,oe.onBlur=this.onBlur):(oe.onFocus=this.createTwoChains("onFocus"),oe.onBlur=this.createTwoChains("onBlur"));var De=G()(ee&&ee.props&&ee.props.className,pn);De&&(oe.className=De);var Be=i.cloneElement(ee,oe);if(!Bi)return i.createElement(W,{parent:this,visible:Mn,autoMount:!1,forceRender:jt,getComponent:this.getComponent,getContainer:this.getContainer},function(Ht){var nn=Ht.renderComponent;return _t.renderComponent=nn,Be});var gt=void 0;return(Mn||this._component||jt)&&(gt=i.createElement(pe,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),[Be,gt]},pt}(i.Component);vi.propTypes={children:u().any,action:u().oneOfType([u().string,u().arrayOf(u().string)]),showAction:u().any,hideAction:u().any,getPopupClassNameFromAlign:u().any,onPopupVisibleChange:u().func,afterPopupVisibleChange:u().func,popup:u().oneOfType([u().node,u().func]).isRequired,popupStyle:u().object,prefixCls:u().string,popupClassName:u().string,className:u().string,popupPlacement:u().string,builtinPlacements:u().object,popupTransitionName:u().oneOfType([u().string,u().object]),popupAnimation:u().any,mouseEnterDelay:u().number,mouseLeaveDelay:u().number,zIndex:u().number,focusDelay:u().number,blurDelay:u().number,getPopupContainer:u().func,getDocument:u().func,forceRender:u().bool,destroyPopupOnHide:u().bool,mask:u().bool,maskClosable:u().bool,onPopupAlign:u().func,popupAlign:u().object,popupVisible:u().bool,defaultPopupVisible:u().bool,maskTransitionName:u().oneOfType([u().string,u().object]),maskAnimation:u().string,stretch:u().string,alignPoint:u().bool},vi.contextTypes=Ui,vi.childContextTypes=Ui,vi.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Or,getDocument:Si,onPopupVisibleChange:fr,afterPopupVisibleChange:fr,onPopupAlign:fr,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[]};var Xa=function(){var pt=this;this.onMouseEnter=function(kt){var _t=pt.props.mouseEnterDelay;pt.fireEvents("onMouseEnter",kt),pt.delaySetPopupVisible(!0,_t,_t?null:kt)},this.onMouseMove=function(kt){pt.fireEvents("onMouseMove",kt),pt.setPoint(kt)},this.onMouseLeave=function(kt){pt.fireEvents("onMouseLeave",kt),pt.delaySetPopupVisible(!1,pt.props.mouseLeaveDelay)},this.onPopupMouseEnter=function(){pt.clearDelayTimer()},this.onPopupMouseLeave=function(kt){kt.relatedTarget&&!kt.relatedTarget.setTimeout&&pt._component&&pt._component.getPopupDomNode&&g(pt._component.getPopupDomNode(),kt.relatedTarget)||pt.delaySetPopupVisible(!1,pt.props.mouseLeaveDelay)},this.onFocus=function(kt){pt.fireEvents("onFocus",kt),pt.clearDelayTimer(),pt.isFocusToShow()&&(pt.focusTime=Date.now(),pt.delaySetPopupVisible(!0,pt.props.focusDelay))},this.onMouseDown=function(kt){pt.fireEvents("onMouseDown",kt),pt.preClickTime=Date.now()},this.onTouchStart=function(kt){pt.fireEvents("onTouchStart",kt),pt.preTouchTime=Date.now()},this.onBlur=function(kt){pt.fireEvents("onBlur",kt),pt.clearDelayTimer(),pt.isBlurToHide()&&pt.delaySetPopupVisible(!1,pt.props.blurDelay)},this.onContextMenu=function(kt){kt.preventDefault(),pt.fireEvents("onContextMenu",kt),pt.setPopupVisible(!0,kt)},this.onContextMenuClose=function(){pt.isContextMenuToShow()&&pt.close()},this.onClick=function(kt){if(pt.fireEvents("onClick",kt),pt.focusTime){var _t=void 0;if(pt.preClickTime&&pt.preTouchTime?_t=Math.min(pt.preClickTime,pt.preTouchTime):pt.preClickTime?_t=pt.preClickTime:pt.preTouchTime&&(_t=pt.preTouchTime),Math.abs(_t-pt.focusTime)<20)return;pt.focusTime=0}pt.preClickTime=0,pt.preTouchTime=0,pt.isClickToShow()&&(pt.isClickToHide()||pt.isBlurToHide())&&kt&&kt.preventDefault&&kt.preventDefault();var Mn=!pt.state.popupVisible;(pt.isClickToHide()&&!Mn||Mn&&pt.isClickToShow())&&pt.setPopupVisible(!pt.state.popupVisible,kt)},this.onPopupMouseDown=function(){var kt=pt.context.rcTrigger,_t=kt===void 0?{}:kt;pt.hasPopupMouseDown=!0,clearTimeout(pt.mouseDownTimeout),pt.mouseDownTimeout=setTimeout(function(){pt.hasPopupMouseDown=!1},0),_t.onPopupMouseDown&&_t.onPopupMouseDown.apply(_t,arguments)},this.onDocumentClick=function(kt){if(!(pt.props.mask&&!pt.props.maskClosable)){var _t=kt.target,Mn=(0,d.findDOMNode)(pt);!g(Mn,_t)&&!pt.hasPopupMouseDown&&pt.close()}},this.getRootDomNode=function(){return(0,d.findDOMNode)(pt)},this.getPopupClassNameFromAlign=function(kt){var _t=[],Mn=pt.props,Pr=Mn.popupPlacement,Hi=Mn.builtinPlacements,jt=Mn.prefixCls,$n=Mn.alignPoint,pn=Mn.getPopupClassNameFromAlign;return Pr&&Hi&&_t.push(fe(Hi,jt,kt,$n)),pn&&_t.push(pn(kt)),_t.join(" ")},this.getComponent=function(){var kt=pt.props,_t=kt.prefixCls,Mn=kt.destroyPopupOnHide,Pr=kt.popupClassName,Hi=kt.action,jt=kt.onPopupAlign,$n=kt.popupAnimation,pn=kt.popupTransitionName,ee=kt.popupStyle,oe=kt.mask,De=kt.maskAnimation,Be=kt.maskTransitionName,gt=kt.zIndex,Ht=kt.popup,nn=kt.stretch,Rn=kt.alignPoint,Yn=pt.state,gr=Yn.popupVisible,Ai=Yn.point,$i=pt.getPopupAlign(),ma={};return pt.isMouseEnterToShow()&&(ma.onMouseEnter=pt.onPopupMouseEnter),pt.isMouseLeaveToHide()&&(ma.onMouseLeave=pt.onPopupMouseLeave),ma.onMouseDown=pt.onPopupMouseDown,ma.onTouchStart=pt.onPopupMouseDown,i.createElement(wn,(0,v.Z)({prefixCls:_t,destroyPopupOnHide:Mn,visible:gr,point:Rn&&Ai,className:Pr,action:Hi,align:$i,onAlign:jt,animation:$n,getClassNameFromAlign:pt.getPopupClassNameFromAlign},ma,{stretch:nn,getRootDomNode:pt.getRootDomNode,style:ee,mask:oe,zIndex:gt,transitionName:pn,maskAnimation:De,maskTransitionName:Be,ref:pt.savePopup}),typeof Ht=="function"?Ht():Ht)},this.getContainer=function(){var kt=pt.props,_t=document.createElement("div");_t.style.position="absolute",_t.style.top="0",_t.style.left="0",_t.style.width="100%";var Mn=kt.getPopupContainer?kt.getPopupContainer((0,d.findDOMNode)(pt)):kt.getDocument().body;return Mn.appendChild(_t),_t},this.setPoint=function(kt){var _t=pt.props.alignPoint;!_t||!kt||pt.setState({point:{pageX:kt.pageX,pageY:kt.pageY}})},this.handlePortalUpdate=function(){pt.state.prevPopupVisible!==pt.state.popupVisible&&pt.props.afterPopupVisibleChange(pt.state.popupVisible)},this.savePopup=function(kt){pt._component=kt}};(0,f.O)(vi);const Ko=vi;var So=t(79913),Lo=t.n(So);function us(St,pt){if(!(St instanceof pt))throw new TypeError("Cannot call a class as a function")}function Ee(St,pt){for(var kt=0;kt<pt.length;kt++){var _t=pt[kt];_t.enumerable=_t.enumerable||!1,_t.configurable=!0,"value"in _t&&(_t.writable=!0),Object.defineProperty(St,_t.key,_t)}}function Y(St,pt,kt){return pt&&Ee(St.prototype,pt),kt&&Ee(St,kt),St}function z(St,pt){return pt&&(typeof pt=="object"||typeof pt=="function")?pt:le(St)}function B(St){return B=Object.setPrototypeOf?Object.getPrototypeOf:function(kt){return kt.__proto__||Object.getPrototypeOf(kt)},B(St)}function le(St){if(St===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St}function Le(St,pt){if(typeof pt!="function"&&pt!==null)throw new TypeError("Super expression must either be null or a function");St.prototype=Object.create(pt&&pt.prototype,{constructor:{value:St,writable:!0,configurable:!0}}),pt&&Je(St,pt)}function Je(St,pt){return Je=Object.setPrototypeOf||function(_t,Mn){return _t.__proto__=Mn,_t},Je(St,pt)}function Ct(St,pt,kt){return pt in St?Object.defineProperty(St,pt,{value:kt,enumerable:!0,configurable:!0,writable:!0}):St[pt]=kt,St}var Vt=function(St){Le(pt,St);function pt(kt){var _t;us(this,pt),_t=z(this,B(pt).call(this,kt)),Ct(le(_t),"onInputChange",function(Hi){var jt=Hi.target.value;_t.setState({str:jt});var $n=_t.props,pn=$n.format,ee=$n.hourOptions,oe=$n.minuteOptions,De=$n.secondOptions,Be=$n.disabledHours,gt=$n.disabledMinutes,Ht=$n.disabledSeconds,nn=$n.onChange;if(jt){var Rn=_t.props.value,Yn=_t.getProtoValue().clone(),gr=Lo()(jt,pn,!0);if(!gr.isValid()){_t.setState({invalid:!0});return}if(Yn.hour(gr.hour()).minute(gr.minute()).second(gr.second()),ee.indexOf(Yn.hour())<0||oe.indexOf(Yn.minute())<0||De.indexOf(Yn.second())<0){_t.setState({invalid:!0});return}var Ai=Be(),$i=gt(Yn.hour()),ma=Ht(Yn.hour(),Yn.minute());if(Ai&&Ai.indexOf(Yn.hour())>=0||$i&&$i.indexOf(Yn.minute())>=0||ma&&ma.indexOf(Yn.second())>=0){_t.setState({invalid:!0});return}if(Rn){if(Rn.hour()!==Yn.hour()||Rn.minute()!==Yn.minute()||Rn.second()!==Yn.second()){var La=Rn.clone();La.hour(Yn.hour()),La.minute(Yn.minute()),La.second(Yn.second()),nn(La)}}else Rn!==Yn&&nn(Yn)}else nn(null);_t.setState({invalid:!1})}),Ct(le(_t),"onKeyDown",function(Hi){var jt=_t.props,$n=jt.onEsc,pn=jt.onKeyDown;Hi.keyCode===27&&$n(),pn(Hi)});var Mn=kt.value,Pr=kt.format;return _t.state={str:Mn&&Mn.format(Pr)||"",invalid:!1},_t}return Y(pt,[{key:"componentDidMount",value:function(){var _t=this,Mn=this.props.focusOnOpen;if(Mn){var Pr=window.requestAnimationFrame||window.setTimeout;Pr(function(){_t.refInput.focus(),_t.refInput.select()})}}},{key:"componentDidUpdate",value:function(_t){var Mn=this.props,Pr=Mn.value,Hi=Mn.format;Pr!==_t.value&&this.setState({str:Pr&&Pr.format(Hi)||"",invalid:!1})}},{key:"getProtoValue",value:function(){var _t=this.props,Mn=_t.value,Pr=_t.defaultOpenValue;return Mn||Pr}},{key:"getInput",value:function(){var _t=this,Mn=this.props,Pr=Mn.prefixCls,Hi=Mn.placeholder,jt=Mn.inputReadOnly,$n=this.state,pn=$n.invalid,ee=$n.str,oe=pn?"".concat(Pr,"-input-invalid"):"";return i.createElement("input",{className:G()("".concat(Pr,"-input"),oe),ref:function(Be){_t.refInput=Be},onKeyDown:this.onKeyDown,value:ee,placeholder:Hi,onChange:this.onInputChange,readOnly:!!jt})}},{key:"render",value:function(){var _t=this.props.prefixCls;return i.createElement("div",{className:"".concat(_t,"-input-wrap")},this.getInput())}}]),pt}(i.Component);Ct(Vt,"propTypes",{format:u().string,prefixCls:u().string,disabledDate:u().func,placeholder:u().string,clearText:u().string,value:u().object,inputReadOnly:u().bool,hourOptions:u().array,minuteOptions:u().array,secondOptions:u().array,disabledHours:u().func,disabledMinutes:u().func,disabledSeconds:u().func,onChange:u().func,onEsc:u().func,defaultOpenValue:u().object,currentSelectPanel:u().string,focusOnOpen:u().bool,onKeyDown:u().func,clearIcon:u().node}),Ct(Vt,"defaultProps",{inputReadOnly:!1});const bn=Vt;var Hn=t(71151),br=t.n(Hn);function ei(St,pt){if(!(St instanceof pt))throw new TypeError("Cannot call a class as a function")}function mi(St,pt){for(var kt=0;kt<pt.length;kt++){var _t=pt[kt];_t.enumerable=_t.enumerable||!1,_t.configurable=!0,"value"in _t&&(_t.writable=!0),Object.defineProperty(St,_t.key,_t)}}function Li(St,pt,kt){return pt&&mi(St.prototype,pt),kt&&mi(St,kt),St}function na(St,pt){return pt&&(typeof pt=="object"||typeof pt=="function")?pt:$a(St)}function ji(St){return ji=Object.setPrototypeOf?Object.getPrototypeOf:function(kt){return kt.__proto__||Object.getPrototypeOf(kt)},ji(St)}function $a(St){if(St===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St}function Ha(St,pt){if(typeof pt!="function"&&pt!==null)throw new TypeError("Super expression must either be null or a function");St.prototype=Object.create(pt&&pt.prototype,{constructor:{value:St,writable:!0,configurable:!0}}),pt&&Eo(St,pt)}function Eo(St,pt){return Eo=Object.setPrototypeOf||function(_t,Mn){return _t.__proto__=Mn,_t},Eo(St,pt)}function Uo(St,pt,kt){return pt in St?Object.defineProperty(St,pt,{value:kt,enumerable:!0,configurable:!0,writable:!0}):St[pt]=kt,St}var Ms=function St(pt,kt,_t){if(_t<=0){br()(function(){pt.scrollTop=kt});return}var Mn=kt-pt.scrollTop,Pr=Mn/_t*10;br()(function(){pt.scrollTop+=Pr,pt.scrollTop!==kt&&St(pt,kt,_t-10)})},er=function(St){Ha(pt,St);function pt(){var kt,_t;ei(this,pt);for(var Mn=arguments.length,Pr=new Array(Mn),Hi=0;Hi<Mn;Hi++)Pr[Hi]=arguments[Hi];return _t=na(this,(kt=ji(pt)).call.apply(kt,[this].concat(Pr))),Uo($a(_t),"state",{active:!1}),Uo($a(_t),"onSelect",function(jt){var $n=_t.props,pn=$n.onSelect,ee=$n.type;pn(ee,jt)}),Uo($a(_t),"handleMouseEnter",function(jt){var $n=_t.props.onMouseEnter;_t.setState({active:!0}),$n(jt)}),Uo($a(_t),"handleMouseLeave",function(){_t.setState({active:!1})}),Uo($a(_t),"saveList",function(jt){_t.list=jt}),_t}return Li(pt,[{key:"componentDidMount",value:function(){this.scrollToSelected(0)}},{key:"componentDidUpdate",value:function(_t){var Mn=this.props.selectedIndex;_t.selectedIndex!==Mn&&this.scrollToSelected(120)}},{key:"getOptions",value:function(){var _t=this,Mn=this.props,Pr=Mn.options,Hi=Mn.selectedIndex,jt=Mn.prefixCls,$n=Mn.onEsc;return Pr.map(function(pn,ee){var oe,De=G()((oe={},Uo(oe,"".concat(jt,"-select-option-selected"),Hi===ee),Uo(oe,"".concat(jt,"-select-option-disabled"),pn.disabled),oe)),Be=pn.disabled?void 0:function(){_t.onSelect(pn.value)},gt=function(nn){nn.keyCode===13?Be():nn.keyCode===27&&$n()};return i.createElement("li",{role:"button",onClick:Be,className:De,key:ee,disabled:pn.disabled,tabIndex:"0",onKeyDown:gt},pn.value)})}},{key:"scrollToSelected",value:function(_t){var Mn=this.props.selectedIndex,Pr=d.findDOMNode(this),Hi=d.findDOMNode(this.list);if(Hi){var jt=Mn;jt<0&&(jt=0);var $n=Hi.children[jt],pn=$n.offsetTop;Ms(Pr,pn,_t)}}},{key:"render",value:function(){var _t=this.props,Mn=_t.prefixCls,Pr=_t.options,Hi=this.state.active;if(Pr.length===0)return null;var jt=G()("".concat(Mn,"-select"),Uo({},"".concat(Mn,"-select-active"),Hi));return i.createElement("div",{className:jt,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},i.createElement("ul",{ref:this.saveList},this.getOptions()))}}]),pt}(i.Component);Uo(er,"propTypes",{prefixCls:u().string,options:u().array,selectedIndex:u().number,type:u().string,onSelect:u().func,onMouseEnter:u().func,onEsc:u().func});const Ar=er;function Kr(St,pt){if(!(St instanceof pt))throw new TypeError("Cannot call a class as a function")}function ur(St,pt){for(var kt=0;kt<pt.length;kt++){var _t=pt[kt];_t.enumerable=_t.enumerable||!1,_t.configurable=!0,"value"in _t&&(_t.writable=!0),Object.defineProperty(St,_t.key,_t)}}function Gr(St,pt,kt){return pt&&ur(St.prototype,pt),kt&&ur(St,kt),St}function Pi(St,pt){return pt&&(typeof pt=="object"||typeof pt=="function")?pt:Fa(St)}function aa(St){return aa=Object.setPrototypeOf?Object.getPrototypeOf:function(kt){return kt.__proto__||Object.getPrototypeOf(kt)},aa(St)}function Fa(St){if(St===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St}function tn(St,pt){if(typeof pt!="function"&&pt!==null)throw new TypeError("Super expression must either be null or a function");St.prototype=Object.create(pt&&pt.prototype,{constructor:{value:St,writable:!0,configurable:!0}}),pt&&cn(St,pt)}function cn(St,pt){return cn=Object.setPrototypeOf||function(_t,Mn){return _t.__proto__=Mn,_t},cn(St,pt)}function nr(St,pt,kt){return pt in St?Object.defineProperty(St,pt,{value:kt,enumerable:!0,configurable:!0,writable:!0}):St[pt]=kt,St}var ir=function(pt,kt){var _t="".concat(pt);pt<10&&(_t="0".concat(pt));var Mn=!1;return kt&&kt.indexOf(pt)>=0&&(Mn=!0),{value:_t,disabled:Mn}},Lr=function(St){tn(pt,St);function pt(){var kt,_t;Kr(this,pt);for(var Mn=arguments.length,Pr=new Array(Mn),Hi=0;Hi<Mn;Hi++)Pr[Hi]=arguments[Hi];return _t=Pi(this,(kt=aa(pt)).call.apply(kt,[this].concat(Pr))),nr(Fa(_t),"onItemChange",function(jt,$n){var pn=_t.props,ee=pn.onChange,oe=pn.defaultOpenValue,De=pn.use12Hours,Be=pn.value,gt=pn.isAM,Ht=pn.onAmPmChange,nn=(Be||oe).clone();if(jt==="hour")De?gt?nn.hour(+$n%12):nn.hour(+$n%12+12):nn.hour(+$n);else if(jt==="minute")nn.minute(+$n);else if(jt==="ampm"){var Rn=$n.toUpperCase();De&&(Rn==="PM"&&nn.hour()<12&&nn.hour(nn.hour()%12+12),Rn==="AM"&&nn.hour()>=12&&nn.hour(nn.hour()-12)),Ht(Rn)}else nn.second(+$n);ee(nn)}),nr(Fa(_t),"onEnterSelectPanel",function(jt){var $n=_t.props.onCurrentSelectPanelChange;$n(jt)}),_t}return Gr(pt,[{key:"getHourSelect",value:function(_t){var Mn=this,Pr=this.props,Hi=Pr.prefixCls,jt=Pr.hourOptions,$n=Pr.disabledHours,pn=Pr.showHour,ee=Pr.use12Hours,oe=Pr.onEsc;if(!pn)return null;var De=$n(),Be,gt;return ee?(Be=[12].concat(jt.filter(function(Ht){return Ht<12&&Ht>0})),gt=_t%12||12):(Be=jt,gt=_t),i.createElement(Ar,{prefixCls:Hi,options:Be.map(function(Ht){return ir(Ht,De)}),selectedIndex:Be.indexOf(gt),type:"hour",onSelect:this.onItemChange,onMouseEnter:function(){return Mn.onEnterSelectPanel("hour")},onEsc:oe})}},{key:"getMinuteSelect",value:function(_t){var Mn=this,Pr=this.props,Hi=Pr.prefixCls,jt=Pr.minuteOptions,$n=Pr.disabledMinutes,pn=Pr.defaultOpenValue,ee=Pr.showMinute,oe=Pr.value,De=Pr.onEsc;if(!ee)return null;var Be=oe||pn,gt=$n(Be.hour());return i.createElement(Ar,{prefixCls:Hi,options:jt.map(function(Ht){return ir(Ht,gt)}),selectedIndex:jt.indexOf(_t),type:"minute",onSelect:this.onItemChange,onMouseEnter:function(){return Mn.onEnterSelectPanel("minute")},onEsc:De})}},{key:"getSecondSelect",value:function(_t){var Mn=this,Pr=this.props,Hi=Pr.prefixCls,jt=Pr.secondOptions,$n=Pr.disabledSeconds,pn=Pr.showSecond,ee=Pr.defaultOpenValue,oe=Pr.value,De=Pr.onEsc;if(!pn)return null;var Be=oe||ee,gt=$n(Be.hour(),Be.minute());return i.createElement(Ar,{prefixCls:Hi,options:jt.map(function(Ht){return ir(Ht,gt)}),selectedIndex:jt.indexOf(_t),type:"second",onSelect:this.onItemChange,onMouseEnter:function(){return Mn.onEnterSelectPanel("second")},onEsc:De})}},{key:"getAMPMSelect",value:function(){var _t=this,Mn=this.props,Pr=Mn.prefixCls,Hi=Mn.use12Hours,jt=Mn.format,$n=Mn.isAM,pn=Mn.onEsc;if(!Hi)return null;var ee=["am","pm"].map(function(De){return jt.match(/\sA/)?De.toUpperCase():De}).map(function(De){return{value:De}}),oe=$n?0:1;return i.createElement(Ar,{prefixCls:Pr,options:ee,selectedIndex:oe,type:"ampm",onSelect:this.onItemChange,onMouseEnter:function(){return _t.onEnterSelectPanel("ampm")},onEsc:pn})}},{key:"render",value:function(){var _t=this.props,Mn=_t.prefixCls,Pr=_t.defaultOpenValue,Hi=_t.value,jt=Hi||Pr;return i.createElement("div",{className:"".concat(Mn,"-combobox")},this.getHourSelect(jt.hour()),this.getMinuteSelect(jt.minute()),this.getSecondSelect(jt.second()),this.getAMPMSelect(jt.hour()))}}]),pt}(i.Component);nr(Lr,"propTypes",{format:u().string,defaultOpenValue:u().object,prefixCls:u().string,value:u().object,onChange:u().func,onAmPmChange:u().func,showHour:u().bool,showMinute:u().bool,showSecond:u().bool,hourOptions:u().array,minuteOptions:u().array,secondOptions:u().array,disabledHours:u().func,disabledMinutes:u().func,disabledSeconds:u().func,onCurrentSelectPanelChange:u().func,use12Hours:u().bool,onEsc:u().func,isAM:u().bool});const ua=Lr;function _a(St,pt){var kt=Object.keys(St);if(Object.getOwnPropertySymbols){var _t=Object.getOwnPropertySymbols(St);pt&&(_t=_t.filter(function(Mn){return Object.getOwnPropertyDescriptor(St,Mn).enumerable})),kt.push.apply(kt,_t)}return kt}function Ka(St){for(var pt=1;pt<arguments.length;pt++){var kt=arguments[pt]!=null?arguments[pt]:{};pt%2?_a(Object(kt),!0).forEach(function(_t){ci(St,_t,kt[_t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(St,Object.getOwnPropertyDescriptors(kt)):_a(Object(kt)).forEach(function(_t){Object.defineProperty(St,_t,Object.getOwnPropertyDescriptor(kt,_t))})}return St}function yo(St,pt){if(!(St instanceof pt))throw new TypeError("Cannot call a class as a function")}function Ba(St,pt){for(var kt=0;kt<pt.length;kt++){var _t=pt[kt];_t.enumerable=_t.enumerable||!1,_t.configurable=!0,"value"in _t&&(_t.writable=!0),Object.defineProperty(St,_t.key,_t)}}function Ma(St,pt,kt){return pt&&Ba(St.prototype,pt),kt&&Ba(St,kt),St}function Mo(St,pt){return pt&&(typeof pt=="object"||typeof pt=="function")?pt:gi(St)}function Nr(St){return Nr=Object.setPrototypeOf?Object.getPrototypeOf:function(kt){return kt.__proto__||Object.getPrototypeOf(kt)},Nr(St)}function gi(St){if(St===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St}function ea(St,pt){if(typeof pt!="function"&&pt!==null)throw new TypeError("Super expression must either be null or a function");St.prototype=Object.create(pt&&pt.prototype,{constructor:{value:St,writable:!0,configurable:!0}}),pt&&dr(St,pt)}function dr(St,pt){return dr=Object.setPrototypeOf||function(_t,Mn){return _t.__proto__=Mn,_t},dr(St,pt)}function ci(St,pt,kt){return pt in St?Object.defineProperty(St,pt,{value:kt,enumerable:!0,configurable:!0,writable:!0}):St[pt]=kt,St}function yi(){}function xa(St,pt,kt){for(var _t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,Mn=[],Pr=0;Pr<St;Pr+=_t)(!pt||pt.indexOf(Pr)<0||!kt)&&Mn.push(Pr);return Mn}function Cr(St,pt,kt,_t){var Mn=pt.slice().sort(function(jt,$n){return Math.abs(St.hour()-jt)-Math.abs(St.hour()-$n)})[0],Pr=kt.slice().sort(function(jt,$n){return Math.abs(St.minute()-jt)-Math.abs(St.minute()-$n)})[0],Hi=_t.slice().sort(function(jt,$n){return Math.abs(St.second()-jt)-Math.abs(St.second()-$n)})[0];return Lo()("".concat(Mn,":").concat(Pr,":").concat(Hi),"HH:mm:ss")}var ka=function(St){ea(pt,St);function pt(){var kt,_t;yo(this,pt);for(var Mn=arguments.length,Pr=new Array(Mn),Hi=0;Hi<Mn;Hi++)Pr[Hi]=arguments[Hi];return _t=Mo(this,(kt=Nr(pt)).call.apply(kt,[this].concat(Pr))),ci(gi(_t),"state",{}),ci(gi(_t),"onChange",function(jt){var $n=_t.props.onChange;_t.setState({value:jt}),$n(jt)}),ci(gi(_t),"onAmPmChange",function(jt){var $n=_t.props.onAmPmChange;$n(jt)}),ci(gi(_t),"onCurrentSelectPanelChange",function(jt){_t.setState({currentSelectPanel:jt})}),ci(gi(_t),"disabledHours",function(){var jt=_t.props,$n=jt.use12Hours,pn=jt.disabledHours,ee=pn();return $n&&Array.isArray(ee)&&(_t.isAM()?ee=ee.filter(function(oe){return oe<12}).map(function(oe){return oe===0?12:oe}):ee=ee.map(function(oe){return oe===12?12:oe-12})),ee}),_t}return Ma(pt,[{key:"close",value:function(){var _t=this.props.onEsc;_t()}},{key:"isAM",value:function(){var _t=this.props.defaultOpenValue,Mn=this.state.value,Pr=Mn||_t;return Pr.hour()>=0&&Pr.hour()<12}},{key:"render",value:function(){var _t=this.props,Mn=_t.prefixCls,Pr=_t.className,Hi=_t.placeholder,jt=_t.disabledMinutes,$n=_t.disabledSeconds,pn=_t.hideDisabledOptions,ee=_t.showHour,oe=_t.showMinute,De=_t.showSecond,Be=_t.format,gt=_t.defaultOpenValue,Ht=_t.clearText,nn=_t.onEsc,Rn=_t.addon,Yn=_t.use12Hours,gr=_t.focusOnOpen,Ai=_t.onKeyDown,$i=_t.hourStep,ma=_t.minuteStep,La=_t.secondStep,Qa=_t.inputReadOnly,go=_t.clearIcon,Ao=this.state,Fo=Ao.value,Ho=Ao.currentSelectPanel,eu=this.disabledHours(),ks=jt(Fo?Fo.hour():null),Gu=$n(Fo?Fo.hour():null,Fo?Fo.minute():null),an=xa(24,eu,pn,$i),Nn=xa(60,ks,pn,ma),tr=xa(60,Gu,pn,La),In=Cr(gt,an,Nn,tr);return i.createElement("div",{className:G()(Pr,"".concat(Mn,"-inner"))},i.createElement(bn,{clearText:Ht,prefixCls:Mn,defaultOpenValue:In,value:Fo,currentSelectPanel:Ho,onEsc:nn,format:Be,placeholder:Hi,hourOptions:an,minuteOptions:Nn,secondOptions:tr,disabledHours:this.disabledHours,disabledMinutes:jt,disabledSeconds:$n,onChange:this.onChange,focusOnOpen:gr,onKeyDown:Ai,inputReadOnly:Qa,clearIcon:go}),i.createElement(ua,{prefixCls:Mn,value:Fo,defaultOpenValue:In,format:Be,onChange:this.onChange,onAmPmChange:this.onAmPmChange,showHour:ee,showMinute:oe,showSecond:De,hourOptions:an,minuteOptions:Nn,secondOptions:tr,disabledHours:this.disabledHours,disabledMinutes:jt,disabledSeconds:$n,onCurrentSelectPanelChange:this.onCurrentSelectPanelChange,use12Hours:Yn,onEsc:nn,isAM:this.isAM()}),Rn(this))}}],[{key:"getDerivedStateFromProps",value:function(_t,Mn){return"value"in _t?Ka({},Mn,{value:_t.value}):null}}]),pt}(i.Component);ci(ka,"propTypes",{clearText:u().string,prefixCls:u().string,className:u().string,defaultOpenValue:u().object,value:u().object,placeholder:u().string,format:u().string,inputReadOnly:u().bool,disabledHours:u().func,disabledMinutes:u().func,disabledSeconds:u().func,hideDisabledOptions:u().bool,onChange:u().func,onAmPmChange:u().func,onEsc:u().func,showHour:u().bool,showMinute:u().bool,showSecond:u().bool,use12Hours:u().bool,hourStep:u().number,minuteStep:u().number,secondStep:u().number,addon:u().func,focusOnOpen:u().bool,onKeyDown:u().func,clearIcon:u().node}),ci(ka,"defaultProps",{prefixCls:"rc-time-picker-panel",onChange:yi,disabledHours:yi,disabledMinutes:yi,disabledSeconds:yi,defaultOpenValue:Lo()(),use12Hours:!1,addon:yi,onKeyDown:yi,onAmPmChange:yi,inputReadOnly:!1}),(0,f.O)(ka);const Io=ka;var Co={adjustX:1,adjustY:1},_s=[0,0],Is={bottomLeft:{points:["tl","tl"],overflow:Co,offset:[0,-3],targetOffset:_s},bottomRight:{points:["tr","tr"],overflow:Co,offset:[0,-3],targetOffset:_s},topRight:{points:["br","br"],overflow:Co,offset:[0,3],targetOffset:_s},topLeft:{points:["bl","bl"],overflow:Co,offset:[0,3],targetOffset:_s}};const xs=Is;function Zs(St,pt){var kt=Object.keys(St);if(Object.getOwnPropertySymbols){var _t=Object.getOwnPropertySymbols(St);pt&&(_t=_t.filter(function(Mn){return Object.getOwnPropertyDescriptor(St,Mn).enumerable})),kt.push.apply(kt,_t)}return kt}function Ns(St){for(var pt=1;pt<arguments.length;pt++){var kt=arguments[pt]!=null?arguments[pt]:{};pt%2?Zs(Object(kt),!0).forEach(function(_t){Wn(St,_t,kt[_t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(St,Object.getOwnPropertyDescriptors(kt)):Zs(Object(kt)).forEach(function(_t){Object.defineProperty(St,_t,Object.getOwnPropertyDescriptor(kt,_t))})}return St}function Us(St,pt){if(!(St instanceof pt))throw new TypeError("Cannot call a class as a function")}function fu(St,pt){for(var kt=0;kt<pt.length;kt++){var _t=pt[kt];_t.enumerable=_t.enumerable||!1,_t.configurable=!0,"value"in _t&&(_t.writable=!0),Object.defineProperty(St,_t.key,_t)}}function bu(St,pt,kt){return pt&&fu(St.prototype,pt),kt&&fu(St,kt),St}function Ys(St,pt){return pt&&(typeof pt=="object"||typeof pt=="function")?pt:Zu(St)}function Hu(St){return Hu=Object.setPrototypeOf?Object.getPrototypeOf:function(kt){return kt.__proto__||Object.getPrototypeOf(kt)},Hu(St)}function Zu(St){if(St===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St}function ql(St,pt){if(typeof pt!="function"&&pt!==null)throw new TypeError("Super expression must either be null or a function");St.prototype=Object.create(pt&&pt.prototype,{constructor:{value:St,writable:!0,configurable:!0}}),pt&&Sn(St,pt)}function Sn(St,pt){return Sn=Object.setPrototypeOf||function(_t,Mn){return _t.__proto__=Mn,_t},Sn(St,pt)}function Wn(St,pt,kt){return pt in St?Object.defineProperty(St,pt,{value:kt,enumerable:!0,configurable:!0,writable:!0}):St[pt]=kt,St}function vr(){}function kr(St,pt){this[St]=pt}var ui=function(St){ql(pt,St);function pt(kt){var _t;Us(this,pt),_t=Ys(this,Hu(pt).call(this,kt)),Wn(Zu(_t),"onPanelChange",function(ee){_t.setValue(ee)}),Wn(Zu(_t),"onAmPmChange",function(ee){var oe=_t.props.onAmPmChange;oe(ee)}),Wn(Zu(_t),"onClear",function(ee){ee.stopPropagation(),_t.setValue(null),_t.setOpen(!1)}),Wn(Zu(_t),"onVisibleChange",function(ee){_t.setOpen(ee)}),Wn(Zu(_t),"onEsc",function(){_t.setOpen(!1),_t.focus()}),Wn(Zu(_t),"onKeyDown",function(ee){ee.keyCode===40&&_t.setOpen(!0)}),_t.saveInputRef=kr.bind(Zu(_t),"picker"),_t.savePanelRef=kr.bind(Zu(_t),"panelInstance");var Mn=kt.defaultOpen,Pr=kt.defaultValue,Hi=kt.open,jt=Hi===void 0?Mn:Hi,$n=kt.value,pn=$n===void 0?Pr:$n;return _t.state={open:jt,value:pn},_t}return bu(pt,[{key:"setValue",value:function(_t){var Mn=this.props.onChange;"value"in this.props||this.setState({value:_t}),Mn(_t)}},{key:"getFormat",value:function(){var _t=this.props,Mn=_t.format,Pr=_t.showHour,Hi=_t.showMinute,jt=_t.showSecond,$n=_t.use12Hours;if(Mn)return Mn;if($n){var pn=[Pr?"h":"",Hi?"mm":"",jt?"ss":""].filter(function(ee){return!!ee}).join(":");return pn.concat(" a")}return[Pr?"HH":"",Hi?"mm":"",jt?"ss":""].filter(function(ee){return!!ee}).join(":")}},{key:"getPanelElement",value:function(){var _t=this.props,Mn=_t.prefixCls,Pr=_t.placeholder,Hi=_t.disabledHours,jt=_t.disabledMinutes,$n=_t.disabledSeconds,pn=_t.hideDisabledOptions,ee=_t.inputReadOnly,oe=_t.showHour,De=_t.showMinute,Be=_t.showSecond,gt=_t.defaultOpenValue,Ht=_t.clearText,nn=_t.addon,Rn=_t.use12Hours,Yn=_t.focusOnOpen,gr=_t.onKeyDown,Ai=_t.hourStep,$i=_t.minuteStep,ma=_t.secondStep,La=_t.clearIcon,Qa=this.state.value;return i.createElement(Io,{clearText:Ht,prefixCls:"".concat(Mn,"-panel"),ref:this.savePanelRef,value:Qa,inputReadOnly:ee,onChange:this.onPanelChange,onAmPmChange:this.onAmPmChange,defaultOpenValue:gt,showHour:oe,showMinute:De,showSecond:Be,onEsc:this.onEsc,format:this.getFormat(),placeholder:Pr,disabledHours:Hi,disabledMinutes:jt,disabledSeconds:$n,hideDisabledOptions:pn,use12Hours:Rn,hourStep:Ai,minuteStep:$i,secondStep:ma,addon:nn,focusOnOpen:Yn,onKeyDown:gr,clearIcon:La})}},{key:"getPopupClassName",value:function(){var _t=this.props,Mn=_t.showHour,Pr=_t.showMinute,Hi=_t.showSecond,jt=_t.use12Hours,$n=_t.prefixCls,pn=_t.popupClassName,ee=0;return Mn&&(ee+=1),Pr&&(ee+=1),Hi&&(ee+=1),jt&&(ee+=1),G()(pn,Wn({},"".concat($n,"-panel-narrow"),(!Mn||!Pr||!Hi)&&!jt),"".concat($n,"-panel-column-").concat(ee))}},{key:"setOpen",value:function(_t){var Mn=this.props,Pr=Mn.onOpen,Hi=Mn.onClose,jt=this.state.open;jt!==_t&&("open"in this.props||this.setState({open:_t}),_t?Pr({open:_t}):Hi({open:_t}))}},{key:"focus",value:function(){this.picker.focus()}},{key:"blur",value:function(){this.picker.blur()}},{key:"renderClearButton",value:function(){var _t=this,Mn=this.state.value,Pr=this.props,Hi=Pr.prefixCls,jt=Pr.allowEmpty,$n=Pr.clearIcon,pn=Pr.clearText,ee=Pr.disabled;if(!jt||!Mn||ee)return null;if(i.isValidElement($n)){var oe=$n.props||{},De=oe.onClick;return i.cloneElement($n,{onClick:function(){De&&De.apply(void 0,arguments),_t.onClear.apply(_t,arguments)}})}return i.createElement("a",{role:"button",className:"".concat(Hi,"-clear"),title:pn,onClick:this.onClear,tabIndex:0},$n||i.createElement("i",{className:"".concat(Hi,"-clear-icon")}))}},{key:"render",value:function(){var _t=this.props,Mn=_t.prefixCls,Pr=_t.placeholder,Hi=_t.placement,jt=_t.align,$n=_t.id,pn=_t.disabled,ee=_t.transitionName,oe=_t.style,De=_t.className,Be=_t.getPopupContainer,gt=_t.name,Ht=_t.autoComplete,nn=_t.onFocus,Rn=_t.onBlur,Yn=_t.autoFocus,gr=_t.inputReadOnly,Ai=_t.inputIcon,$i=_t.popupStyle,ma=this.state,La=ma.open,Qa=ma.value,go=this.getPopupClassName();return i.createElement(Ko,{prefixCls:"".concat(Mn,"-panel"),popupClassName:go,popupStyle:$i,popup:this.getPanelElement(),popupAlign:jt,builtinPlacements:xs,popupPlacement:Hi,action:pn?[]:["click"],destroyPopupOnHide:!0,getPopupContainer:Be,popupTransitionName:ee,popupVisible:La,onPopupVisibleChange:this.onVisibleChange},i.createElement("span",{className:G()(Mn,De),style:oe},i.createElement("input",{className:"".concat(Mn,"-input"),ref:this.saveInputRef,type:"text",placeholder:Pr,name:gt,onKeyDown:this.onKeyDown,disabled:pn,value:Qa&&Qa.format(this.getFormat())||"",autoComplete:Ht,onFocus:nn,onBlur:Rn,autoFocus:Yn,onChange:vr,readOnly:!!gr,id:$n}),Ai||i.createElement("span",{className:"".concat(Mn,"-icon")}),this.renderClearButton()))}}],[{key:"getDerivedStateFromProps",value:function(_t,Mn){var Pr={};return"value"in _t&&(Pr.value=_t.value),_t.open!==void 0&&(Pr.open=_t.open),Object.keys(Pr).length>0?Ns({},Mn,{},Pr):null}}]),pt}(i.Component);Wn(ui,"propTypes",{prefixCls:u().string,clearText:u().string,value:u().object,defaultOpenValue:u().object,inputReadOnly:u().bool,disabled:u().bool,allowEmpty:u().bool,defaultValue:u().object,open:u().bool,defaultOpen:u().bool,align:u().object,placement:u().any,transitionName:u().string,getPopupContainer:u().func,placeholder:u().string,format:u().string,showHour:u().bool,showMinute:u().bool,showSecond:u().bool,style:u().object,className:u().string,popupClassName:u().string,popupStyle:u().object,disabledHours:u().func,disabledMinutes:u().func,disabledSeconds:u().func,hideDisabledOptions:u().bool,onChange:u().func,onAmPmChange:u().func,onOpen:u().func,onClose:u().func,onFocus:u().func,onBlur:u().func,addon:u().func,name:u().string,autoComplete:u().string,use12Hours:u().bool,hourStep:u().number,minuteStep:u().number,secondStep:u().number,focusOnOpen:u().bool,onKeyDown:u().func,autoFocus:u().bool,id:u().string,inputIcon:u().node,clearIcon:u().node}),Wn(ui,"defaultProps",{clearText:"clear",prefixCls:"rc-time-picker",defaultOpen:!1,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{},align:{},defaultOpenValue:Lo()(),allowEmpty:!0,showHour:!0,showMinute:!0,showSecond:!0,disabledHours:vr,disabledMinutes:vr,disabledSeconds:vr,hideDisabledOptions:!1,placement:"bottomLeft",onChange:vr,onAmPmChange:vr,onOpen:vr,onClose:vr,onFocus:vr,onBlur:vr,addon:vr,use12Hours:!1,focusOnOpen:!1,onKeyDown:vr}),(0,f.O)(ui);const ta=ui},92742:(C,c,t)=>{"use strict";t.d(c,{Z:()=>fn});var i=t(94285),s=t(48632),u=t(4696),v=t(32098),l=t(35094),h=t(89898),p=t.n(h),d=t(79401),f=t(27702),g=t.t(f,2),y=t(27473);function b(Tt){return Tt instanceof HTMLElement||Tt instanceof SVGElement}function E(Tt){return b(Tt)?Tt:Tt instanceof React.Component?ReactDOM.findDOMNode(Tt):null}function S(Tt){var dn;return Tt==null||(dn=Tt.getRootNode)===null||dn===void 0?void 0:dn.call(Tt)}function w(Tt){return S(Tt)!==Tt?.ownerDocument}function x(Tt){return w(Tt)?S(Tt):null}function P(Tt){var dn=f.useRef();dn.current=Tt;var mn=f.useCallback(function(){for(var Kn,Dn=arguments.length,Vn=new Array(Dn),or=0;or<Dn;or++)Vn[or]=arguments[or];return(Kn=dn.current)===null||Kn===void 0?void 0:Kn.call.apply(Kn,[dn].concat(Vn))},[]);return mn}function R(){var Tt=(0,s.Z)({},g);return Tt.useId}var T=0;function A(){}function I(Tt){var dn=f.useState("ssr-id"),mn=(0,v.Z)(dn,2),Kn=mn[0],Dn=mn[1],Vn=R(),or=Vn?.();return f.useEffect(function(){if(!Vn){var Qr=T;T+=1,Dn("rc_unique_".concat(Qr))}},[]),Tt||or||Kn}function N(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var K=N()?f.useLayoutEffect:f.useEffect,_=function(dn,mn){var Kn=f.useRef(!0);K(function(){return dn(Kn.current)},mn),K(function(){return Kn.current=!1,function(){Kn.current=!0}},[])},W=function(dn,mn){_(function(Kn){if(!Kn)return dn()},mn)};const j=_,re=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var Tt=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Tt)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Tt?.substr(0,4))};var X=f.createContext(null);const Z=X;function J(Tt){return Tt?Array.isArray(Tt)?Tt:[Tt]:[]}function q(Tt,dn,mn,Kn){return f.useMemo(function(){var Dn=J(mn??dn),Vn=J(Kn??dn),or=new Set(Dn),Qr=new Set(Vn);return Tt&&(or.has("hover")&&(or.delete("hover"),or.add("click")),Qr.has("hover")&&(Qr.delete("hover"),Qr.add("click"))),[or,Qr]},[Tt,dn,mn,Kn])}const L=function(Tt){if(!Tt)return!1;if(Tt instanceof Element){if(Tt.offsetParent)return!0;if(Tt.getBBox){var dn=Tt.getBBox(),mn=dn.width,Kn=dn.height;if(mn||Kn)return!0}if(Tt.getBoundingClientRect){var Dn=Tt.getBoundingClientRect(),Vn=Dn.width,or=Dn.height;if(Vn||or)return!0}}return!1};function $(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],mn=arguments.length>2?arguments[2]:void 0;return mn?Tt[0]===dn[0]:Tt[0]===dn[0]&&Tt[1]===dn[1]}function k(Tt,dn,mn,Kn){for(var Dn=mn.points,Vn=Object.keys(Tt),or=0;or<Vn.length;or+=1){var Qr,ni=Vn[or];if($((Qr=Tt[ni])===null||Qr===void 0?void 0:Qr.points,Dn,Kn))return"".concat(dn,"-placement-").concat(ni)}return""}function F(Tt,dn,mn,Kn){return dn||(mn?{motionName:"".concat(Tt,"-").concat(mn)}:Kn?{motionName:Kn}:null)}function V(Tt){return Tt.ownerDocument.defaultView}function pe(Tt){for(var dn=[],mn=Tt?.parentElement,Kn=["hidden","scroll","clip","auto"];mn;){var Dn=V(mn).getComputedStyle(mn),Vn=Dn.overflowX,or=Dn.overflowY,Qr=Dn.overflow;[Vn,or,Qr].some(function(ni){return Kn.includes(ni)})&&dn.push(mn),mn=mn.parentElement}return dn}function ce(Tt){var dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Tt)?dn:Tt}function G(Tt){return ce(parseFloat(Tt),0)}function te(Tt,dn){var mn=(0,s.Z)({},Tt);return(dn||[]).forEach(function(Kn){if(!(Kn instanceof HTMLBodyElement)){var Dn=V(Kn).getComputedStyle(Kn),Vn=Dn.overflow,or=Dn.overflowClipMargin,Qr=Dn.borderTopWidth,ni=Dn.borderBottomWidth,yr=Dn.borderLeftWidth,si=Dn.borderRightWidth,Yr=Kn.getBoundingClientRect(),Ci=Kn.offsetHeight,Ni=Kn.clientHeight,fa=Kn.offsetWidth,ha=Kn.clientWidth,Ca=G(Qr),li=G(ni),la=G(yr),Oa=G(si),wa=ce(Math.round(Yr.width/fa*1e3)/1e3),vo=ce(Math.round(Yr.height/Ci*1e3)/1e3),Qn=(fa-ha-la-Oa)*wa,_r=(Ci-Ni-Ca-li)*vo,$r=Ca*vo,Ti=li*vo,xt=la*wa,On=Oa*wa,Zn=0,Ur=0;if(Vn==="clip"){var En=G(or);Zn=En*wa,Ur=En*vo}var ln=Yr.x+xt-Zn,jn=Yr.y+$r-Ur,rr=ln+Yr.width+2*Zn-xt-On-Qn,Mr=jn+Yr.height+2*Ur-$r-Ti-_r;mn.left=Math.max(mn.left,ln),mn.top=Math.max(mn.top,jn),mn.right=Math.min(mn.right,rr),mn.bottom=Math.min(mn.bottom,Mr)}}),mn}function ie(Tt){var dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,mn="".concat(dn),Kn=mn.match(/^(.*)\%$/);return Kn?Tt*(parseFloat(Kn[1])/100):parseFloat(mn)}function fe(Tt,dn){var mn=dn||[],Kn=(0,v.Z)(mn,2),Dn=Kn[0],Vn=Kn[1];return[ie(Tt.width,Dn),ie(Tt.height,Vn)]}function Se(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Tt[0],Tt[1]]}function he(Tt,dn){var mn=dn[0],Kn=dn[1],Dn,Vn;return mn==="t"?Vn=Tt.y:mn==="b"?Vn=Tt.y+Tt.height:Vn=Tt.y+Tt.height/2,Kn==="l"?Dn=Tt.x:Kn==="r"?Dn=Tt.x+Tt.width:Dn=Tt.x+Tt.width/2,{x:Dn,y:Vn}}function me(Tt,dn){var mn={t:"b",b:"t",l:"r",r:"l"};return Tt.map(function(Kn,Dn){return Dn===dn?mn[Kn]||"c":Kn}).join("")}function _e(Tt,dn,mn,Kn,Dn,Vn,or){var Qr=f.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Dn[Kn]||{}}),ni=(0,v.Z)(Qr,2),yr=ni[0],si=ni[1],Yr=f.useRef(0),Ci=f.useMemo(function(){return dn?pe(dn):[]},[dn]),Ni=f.useRef({}),fa=function(){Ni.current={}};Tt||fa();var ha=P(function(){if(dn&&mn&&Tt){let ea=function(ci,yi){var xa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qi,Cr=Zn.x+ci,ka=Zn.y+yi,Io=Cr+Ri,Co=ka+pi,_s=Math.max(Cr,xa.left),Is=Math.max(ka,xa.top),xs=Math.min(Io,xa.right),Zs=Math.min(Co,xa.bottom);return Math.max(0,(xs-_s)*(Zs-Is))},dr=function(){le=Zn.y+Fi,Le=le+pi,Je=Zn.x+Si,Ct=Je+Ri};var la=dn,Oa=la.style.left,wa=la.style.top,vo=la.style.right,Qn=la.style.bottom,_r=la.ownerDocument,$r=V(la),Ti=(0,s.Z)((0,s.Z)({},Dn[Kn]),Vn);la.style.left="0",la.style.top="0",la.style.right="auto",la.style.bottom="auto";var xt;if(Array.isArray(mn))xt={x:mn[0],y:mn[1],width:0,height:0};else{var On=mn.getBoundingClientRect();xt={x:On.x,y:On.y,width:On.width,height:On.height}}var Zn=la.getBoundingClientRect(),Ur=$r.getComputedStyle(la),En=Ur.width,ln=Ur.height,jn=_r.documentElement,rr=jn.clientWidth,Mr=jn.clientHeight,Ir=jn.scrollWidth,Zr=jn.scrollHeight,lr=jn.scrollTop,Jr=jn.scrollLeft,pi=Zn.height,Ri=Zn.width,Ki=xt.height,ia=xt.width,Da={left:0,top:0,right:rr,bottom:Mr},to={left:-Jr,top:-lr,right:Ir-Jr,bottom:Zr-lr},ao=Ti.htmlRegion,Bo="visible",jo="visibleFirst";ao!=="scroll"&&ao!==jo&&(ao=Bo);var Jo=ao===jo,Go=te(to,Ci),wr=te(Da,Ci),qi=ao===Bo?wr:Go,ja=Jo?wr:qi;la.style.left="auto",la.style.top="auto",la.style.right="0",la.style.bottom="0";var uo=la.getBoundingClientRect();la.style.left=Oa,la.style.top=wa,la.style.right=vo,la.style.bottom=Qn;var wi=ce(Math.round(Ri/parseFloat(En)*1e3)/1e3),ai=ce(Math.round(pi/parseFloat(ln)*1e3)/1e3);if(wi===0||ai===0||b(mn)&&!L(mn))return;var za=Ti.offset,Mt=Ti.targetOffset,Gn=fe(Zn,za),qn=(0,v.Z)(Gn,2),Fr=qn[0],Ei=qn[1],ii=fe(xt,Mt),Wi=(0,v.Z)(ii,2),Ya=Wi[0],qa=Wi[1];xt.x-=Ya,xt.y-=qa;var se=Ti.points||[],ye=(0,v.Z)(se,2),Xe=ye[0],yt=ye[1],Wt=Se(yt),Qt=Se(Xe),wn=he(xt,Wt),fr=he(Zn,Qt),Or=(0,s.Z)({},Ti),Si=wn.x-fr.x+Fr,Fi=wn.y-fr.y+Ei,Bi=ea(Si,Fi),Ui=ea(Si,Fi,wr),vi=he(xt,["t","l"]),Xa=he(Zn,["t","l"]),Ko=he(xt,["b","r"]),So=he(Zn,["b","r"]),Lo=Ti.overflow||{},us=Lo.adjustX,Ee=Lo.adjustY,Y=Lo.shiftX,z=Lo.shiftY,B=function(yi){return typeof yi=="boolean"?yi:yi>=0},le,Le,Je,Ct;dr();var Vt=B(Ee),bn=Qt[0]===Wt[0];if(Vt&&Qt[0]==="t"&&(Le>ja.bottom||Ni.current.bt)){var Hn=Fi;bn?Hn-=pi-Ki:Hn=vi.y-So.y-Ei;var br=ea(Si,Hn),ei=ea(Si,Hn,wr);br>Bi||br===Bi&&(!Jo||ei>=Ui)?(Ni.current.bt=!0,Fi=Hn,Or.points=[me(Qt,0),me(Wt,0)]):Ni.current.bt=!1}if(Vt&&Qt[0]==="b"&&(le<ja.top||Ni.current.tb)){var mi=Fi;bn?mi+=pi-Ki:mi=Ko.y-Xa.y-Ei;var Li=ea(Si,mi),na=ea(Si,mi,wr);Li>Bi||Li===Bi&&(!Jo||na>=Ui)?(Ni.current.tb=!0,Fi=mi,Or.points=[me(Qt,0),me(Wt,0)]):Ni.current.tb=!1}var ji=B(us),$a=Qt[1]===Wt[1];if(ji&&Qt[1]==="l"&&(Ct>ja.right||Ni.current.rl)){var Ha=Si;$a?Ha-=Ri-ia:Ha=vi.x-So.x-Fr;var Eo=ea(Ha,Fi),Uo=ea(Ha,Fi,wr);Eo>Bi||Eo===Bi&&(!Jo||Uo>=Ui)?(Ni.current.rl=!0,Si=Ha,Or.points=[me(Qt,1),me(Wt,1)]):Ni.current.rl=!1}if(ji&&Qt[1]==="r"&&(Je<ja.left||Ni.current.lr)){var Ms=Si;$a?Ms+=Ri-ia:Ms=Ko.x-Xa.x-Fr;var er=ea(Ms,Fi),Ar=ea(Ms,Fi,wr);er>Bi||er===Bi&&(!Jo||Ar>=Ui)?(Ni.current.lr=!0,Si=Ms,Or.points=[me(Qt,1),me(Wt,1)]):Ni.current.lr=!1}dr();var Kr=Y===!0?0:Y;typeof Kr=="number"&&(Je<wr.left&&(Si-=Je-wr.left,xt.x+ia<wr.left+Kr&&(Si+=xt.x-wr.left+ia-Kr)),Ct>wr.right&&(Si-=Ct-wr.right,xt.x>wr.right-Kr&&(Si+=xt.x-wr.right+Kr)));var ur=z===!0?0:z;typeof ur=="number"&&(le<wr.top&&(Fi-=le-wr.top,xt.y+Ki<wr.top+ur&&(Fi+=xt.y-wr.top+Ki-ur)),Le>wr.bottom&&(Fi-=Le-wr.bottom,xt.y>wr.bottom-ur&&(Fi+=xt.y-wr.bottom+ur)));var Gr=Zn.x+Si,Pi=Gr+Ri,aa=Zn.y+Fi,Fa=aa+pi,tn=xt.x,cn=tn+ia,nr=xt.y,ir=nr+Ki,Lr=Math.max(Gr,tn),ua=Math.min(Pi,cn),_a=(Lr+ua)/2,Ka=_a-Gr,yo=Math.max(aa,nr),Ba=Math.min(Fa,ir),Ma=(yo+Ba)/2,Mo=Ma-aa;or?.(dn,Or);var Nr=uo.right-Zn.x-(Si+Zn.width),gi=uo.bottom-Zn.y-(Fi+Zn.height);si({ready:!0,offsetX:Si/wi,offsetY:Fi/ai,offsetR:Nr/wi,offsetB:gi/ai,arrowX:Ka/wi,arrowY:Mo/ai,scaleX:wi,scaleY:ai,align:Or})}}),Ca=function(){Yr.current+=1;var Oa=Yr.current;Promise.resolve().then(function(){Yr.current===Oa&&ha()})},li=function(){si(function(Oa){return(0,s.Z)((0,s.Z)({},Oa),{},{ready:!1})})};return j(li,[Kn]),j(function(){Tt||li()},[Tt]),[yr.ready,yr.offsetX,yr.offsetY,yr.offsetR,yr.offsetB,yr.arrowX,yr.arrowY,yr.scaleX,yr.scaleY,yr.align,Ca]}var we=t(75342);function Ge(Tt,dn,mn,Kn){j(function(){if(Tt&&dn&&mn){let si=function(){Kn()};var Dn=dn,Vn=mn,or=pe(Dn),Qr=pe(Vn),ni=V(Vn),yr=new Set([ni].concat((0,we.Z)(or),(0,we.Z)(Qr)));return yr.forEach(function(Yr){Yr.addEventListener("scroll",si,{passive:!0})}),ni.addEventListener("resize",si,{passive:!0}),Kn(),function(){yr.forEach(function(Yr){Yr.removeEventListener("scroll",si),ni.removeEventListener("resize",si)})}}},[Tt,dn,mn])}function ht(Tt){var dn=React.useRef(!1),mn=React.useState(Tt),Kn=_slicedToArray(mn,2),Dn=Kn[0],Vn=Kn[1];React.useEffect(function(){return dn.current=!1,function(){dn.current=!0}},[]);function or(Qr,ni){ni&&dn.current||Vn(Qr)}return[Dn,or]}function nt(Tt){return Tt!==void 0}function Re(Tt,dn){var mn=dn||{},Kn=mn.defaultValue,Dn=mn.value,Vn=mn.onChange,or=mn.postState,Qr=useState(function(){return nt(Dn)?Dn:nt(Kn)?typeof Kn=="function"?Kn():Kn:typeof Tt=="function"?Tt():Tt}),ni=_slicedToArray(Qr,2),yr=ni[0],si=ni[1],Yr=Dn!==void 0?Dn:yr,Ci=or?or(Yr):Yr,Ni=useEvent(Vn),fa=useState([Yr]),ha=_slicedToArray(fa,2),Ca=ha[0],li=ha[1];useLayoutUpdateEffect(function(){var Oa=Ca[0];yr!==Oa&&Ni(yr,Oa)},[Ca]),useLayoutUpdateEffect(function(){nt(Dn)||si(Dn)},[Dn]);var la=useEvent(function(Oa,wa){si(Oa,wa),li([Yr],wa)});return[Ci,la]}function ue(Tt,dn,mn,Kn){if(!dn.length)return mn;var Dn=_toArray(dn),Vn=Dn[0],or=Dn.slice(1),Qr;return!Tt&&typeof Vn=="number"?Qr=[]:Array.isArray(Tt)?Qr=_toConsumableArray(Tt):Qr=_objectSpread({},Tt),Kn&&mn===void 0&&or.length===1?delete Qr[Vn][or[0]]:Qr[Vn]=ue(Qr[Vn],or,mn,Kn),Qr}function ae(Tt,dn,mn){var Kn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return dn.length&&Kn&&mn===void 0&&!get(Tt,dn.slice(0,-1))?Tt:ue(Tt,dn,mn,Kn)}function ve(Tt){return _typeof(Tt)==="object"&&Tt!==null&&Object.getPrototypeOf(Tt)===Object.prototype}function Me(Tt){return Array.isArray(Tt)?[]:{}}var Ye=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function qe(){for(var Tt=arguments.length,dn=new Array(Tt),mn=0;mn<Tt;mn++)dn[mn]=arguments[mn];var Kn=Me(dn[0]);return dn.forEach(function(Dn){function Vn(or,Qr){var ni=new Set(Qr),yr=get(Dn,or),si=Array.isArray(yr);if(si||ve(yr)){if(!ni.has(yr)){ni.add(yr);var Yr=get(Kn,or);si?Kn=ae(Kn,or,[]):(!Yr||_typeof(Yr)!=="object")&&(Kn=ae(Kn,or,Me(yr))),Ye(yr).forEach(function(Ci){Vn([].concat(_toConsumableArray(or),[Ci]),ni)})}}else Kn=ae(Kn,or,yr)}Vn([])}),Kn}var At={},It=[],Ce=function(dn){It.push(dn)};function Ae(Tt,dn){if(!1)var mn}function $e(Tt,dn){if(!1)var mn}function tt(){At={}}function ke(Tt,dn,mn){!dn&&!At[mn]&&(Tt(!1,mn),At[mn]=!0)}function Oe(Tt,dn){ke(Ae,Tt,dn)}function je(Tt,dn){ke($e,Tt,dn)}Oe.preMessage=Ce,Oe.resetWarned=tt,Oe.noteOnce=je;const Et=null;var ct=function(dn){return+setTimeout(dn,16)},ut=function(dn){return clearTimeout(dn)};typeof window<"u"&&"requestAnimationFrame"in window&&(ct=function(dn){return window.requestAnimationFrame(dn)},ut=function(dn){return window.cancelAnimationFrame(dn)});var Ne=0,mt=new Map;function bt(Tt){mt.delete(Tt)}var Gt=function(dn){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ne+=1;var Kn=Ne;function Dn(Vn){if(Vn===0)bt(Kn),dn();else{var or=ct(function(){Dn(Vn-1)});mt.set(Kn,or)}}return Dn(mn),Kn};Gt.cancel=function(Tt){var dn=mt.get(Tt);return bt(dn),ut(dn)};const hn=Gt;function Yt(Tt,dn,mn,Kn,Dn,Vn,or,Qr){var ni=f.useRef(Tt),yr=f.useRef(!1);ni.current!==Tt&&(yr.current=!0,ni.current=Tt),f.useEffect(function(){var si=hn(function(){yr.current=!1});return function(){hn.cancel(si)}},[Tt]),f.useEffect(function(){if(dn&&Kn&&(!Dn||Vn)){var si=function(){var xt=!1,On=function(En){var ln=En.target;xt=or(ln)},Zn=function(En){var ln=En.target;!yr.current&&ni.current&&!xt&&!or(ln)&&Qr(!1)};return[On,Zn]},Yr=si(),Ci=(0,v.Z)(Yr,2),Ni=Ci[0],fa=Ci[1],ha=si(),Ca=(0,v.Z)(ha,2),li=Ca[0],la=Ca[1],Oa=V(Kn);Oa.addEventListener("mousedown",Ni),Oa.addEventListener("click",fa),Oa.addEventListener("contextmenu",fa);var wa=x(mn);if(wa&&(wa.addEventListener("mousedown",li),wa.addEventListener("click",la),wa.addEventListener("contextmenu",la)),!1)var vo,Qn,_r,$r;return function(){Oa.removeEventListener("mousedown",Ni),Oa.removeEventListener("click",fa),Oa.removeEventListener("contextmenu",fa),wa&&(wa.removeEventListener("mousedown",li),wa.removeEventListener("click",la),wa.removeEventListener("contextmenu",la))}}},[dn,mn,Kn,Dn,Vn])}var Bt=t(10357),Lt=t(4484),zt=t(54660);function Kt(Tt,dn,mn){var Kn=f.useRef({});return(!("value"in Kn.current)||mn(Kn.current.condition,dn))&&(Kn.current.value=Tt(),Kn.current.condition=dn),Kn.current.value}function vt(Tt,dn){typeof Tt=="function"?Tt(dn):(0,Lt.Z)(Tt)==="object"&&Tt&&"current"in Tt&&(Tt.current=dn)}function Ve(){for(var Tt=arguments.length,dn=new Array(Tt),mn=0;mn<Tt;mn++)dn[mn]=arguments[mn];var Kn=dn.filter(function(Dn){return Dn});return Kn.length<=1?Kn[0]:function(Dn){dn.forEach(function(Vn){vt(Vn,Dn)})}}function lt(){for(var Tt=arguments.length,dn=new Array(Tt),mn=0;mn<Tt;mn++)dn[mn]=arguments[mn];return Kt(function(){return Ve.apply(void 0,dn)},dn,function(Kn,Dn){return Kn.length===Dn.length&&Kn.every(function(Vn,or){return Vn===Dn[or]})})}function at(Tt){var dn,mn,Kn=(0,zt.isMemo)(Tt)?Tt.type.type:Tt.type;return!(typeof Kn=="function"&&!((dn=Kn.prototype)!==null&&dn!==void 0&&dn.render)||typeof Tt=="function"&&!((mn=Tt.prototype)!==null&&mn!==void 0&&mn.render))}function Xt(Tt){var dn=Tt.prefixCls,mn=Tt.align,Kn=Tt.arrow,Dn=Tt.arrowPos,Vn=Kn||{},or=Vn.className,Qr=Vn.content,ni=Dn.x,yr=ni===void 0?0:ni,si=Dn.y,Yr=si===void 0?0:si,Ci=f.useRef();if(!mn||!mn.points)return null;var Ni={position:"absolute"};if(mn.autoArrow!==!1){var fa=mn.points[0],ha=mn.points[1],Ca=fa[0],li=fa[1],la=ha[0],Oa=ha[1];Ca===la||!["t","b"].includes(Ca)?Ni.top=Yr:Ca==="t"?Ni.top=0:Ni.bottom=0,li===Oa||!["l","r"].includes(li)?Ni.left=yr:li==="l"?Ni.left=0:Ni.right=0}return f.createElement("div",{ref:Ci,className:p()("".concat(dn,"-arrow"),or),style:Ni},Qr)}function rt(Tt){var dn=Tt.prefixCls,mn=Tt.open,Kn=Tt.zIndex,Dn=Tt.mask,Vn=Tt.motion;return Dn?f.createElement(Bt.Z,(0,i.Z)({},Vn,{motionAppear:!0,visible:mn,removeOnLeave:!0}),function(or){var Qr=or.className;return f.createElement("div",{style:{zIndex:Kn},className:p()("".concat(dn,"-mask"),Qr)})}):null}var Rt=f.memo(function(Tt){var dn=Tt.children;return dn},function(Tt,dn){return dn.cache});const rn=Rt;var sn=f.forwardRef(function(Tt,dn){var mn=Tt.popup,Kn=Tt.className,Dn=Tt.prefixCls,Vn=Tt.style,or=Tt.target,Qr=Tt.onVisibleChanged,ni=Tt.open,yr=Tt.keepDom,si=Tt.onClick,Yr=Tt.mask,Ci=Tt.arrow,Ni=Tt.arrowPos,fa=Tt.align,ha=Tt.motion,Ca=Tt.maskMotion,li=Tt.forceRender,la=Tt.getPopupContainer,Oa=Tt.autoDestroy,wa=Tt.portal,vo=Tt.zIndex,Qn=Tt.onMouseEnter,_r=Tt.onMouseLeave,$r=Tt.ready,Ti=Tt.offsetX,xt=Tt.offsetY,On=Tt.offsetR,Zn=Tt.offsetB,Ur=Tt.onAlign,En=Tt.onPrepare,ln=Tt.stretch,jn=Tt.targetWidth,rr=Tt.targetHeight,Mr=typeof mn=="function"?mn():mn,Ir=ni||yr,Zr=la?.length>0,lr=f.useState(!la||!Zr),Jr=(0,v.Z)(lr,2),pi=Jr[0],Ri=Jr[1];if(j(function(){!pi&&Zr&&or&&Ri(!0)},[pi,Zr,or]),!pi)return null;var Ki="auto",ia={left:"-1000vw",top:"-1000vh",right:Ki,bottom:Ki};if($r||!ni){var Da=fa.points,to=fa._experimental,ao=to?.dynamicInset,Bo=ao&&Da[0][1]==="r",jo=ao&&Da[0][0]==="b";Bo?(ia.right=On,ia.left=Ki):(ia.left=Ti,ia.right=Ki),jo?(ia.bottom=Zn,ia.top=Ki):(ia.top=xt,ia.bottom=Ki)}var Jo={};return ln&&(ln.includes("height")&&rr?Jo.height=rr:ln.includes("minHeight")&&rr&&(Jo.minHeight=rr),ln.includes("width")&&jn?Jo.width=jn:ln.includes("minWidth")&&jn&&(Jo.minWidth=jn)),ni||(Jo.pointerEvents="none"),f.createElement(wa,{open:li||Ir,getContainer:la&&function(){return la(or)},autoDestroy:Oa},f.createElement(rt,{prefixCls:Dn,open:ni,zIndex:vo,mask:Yr,motion:Ca}),f.createElement(d.Z,{onResize:Ur,disabled:!ni},function(Go){return f.createElement(Bt.Z,(0,i.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:li,leavedClassName:"".concat(Dn,"-hidden")},ha,{onAppearPrepare:En,onEnterPrepare:En,visible:ni,onVisibleChanged:function(qi){var ja;ha==null||(ja=ha.onVisibleChanged)===null||ja===void 0||ja.call(ha,qi),Qr(qi)}}),function(wr,qi){var ja=wr.className,uo=wr.style,wi=p()(Dn,ja,Kn);return f.createElement("div",{ref:Ve(Go,dn,qi),className:wi,style:(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({"--arrow-x":"".concat(Ni.x||0,"px"),"--arrow-y":"".concat(Ni.y||0,"px")},ia),Jo),uo),{},{boxSizing:"border-box",zIndex:vo},Vn),onMouseEnter:Qn,onMouseLeave:_r,onClick:si},Ci&&f.createElement(Xt,{prefixCls:Dn,arrow:Ci,arrowPos:Ni,align:fa}),f.createElement(rn,{cache:!ni},Mr))})}))});const Jn=sn;var ze=f.forwardRef(function(Tt,dn){var mn=Tt.children,Kn=Tt.getTriggerDOMNode,Dn=at(mn),Vn=f.useCallback(function(Qr){vt(dn,Kn?Kn(Qr):Qr)},[Kn]),or=lt(Vn,mn.ref);return Dn?f.cloneElement(mn,{ref:or}):mn});const st=ze;var en=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function wt(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l.Z,dn=f.forwardRef(function(mn,Kn){var Dn=mn.prefixCls,Vn=Dn===void 0?"rc-trigger-popup":Dn,or=mn.children,Qr=mn.action,ni=Qr===void 0?"hover":Qr,yr=mn.showAction,si=mn.hideAction,Yr=mn.popupVisible,Ci=mn.defaultPopupVisible,Ni=mn.onPopupVisibleChange,fa=mn.afterPopupVisibleChange,ha=mn.mouseEnterDelay,Ca=mn.mouseLeaveDelay,li=Ca===void 0?.1:Ca,la=mn.focusDelay,Oa=mn.blurDelay,wa=mn.mask,vo=mn.maskClosable,Qn=vo===void 0?!0:vo,_r=mn.getPopupContainer,$r=mn.forceRender,Ti=mn.autoDestroy,xt=mn.destroyPopupOnHide,On=mn.popup,Zn=mn.popupClassName,Ur=mn.popupStyle,En=mn.popupPlacement,ln=mn.builtinPlacements,jn=ln===void 0?{}:ln,rr=mn.popupAlign,Mr=mn.zIndex,Ir=mn.stretch,Zr=mn.getPopupClassNameFromAlign,lr=mn.alignPoint,Jr=mn.onPopupClick,pi=mn.onPopupAlign,Ri=mn.arrow,Ki=mn.popupMotion,ia=mn.maskMotion,Da=mn.popupTransitionName,to=mn.popupAnimation,ao=mn.maskTransitionName,Bo=mn.maskAnimation,jo=mn.className,Jo=mn.getTriggerDOMNode,Go=(0,u.Z)(mn,en),wr=Ti||xt||!1,qi=f.useState(!1),ja=(0,v.Z)(qi,2),uo=ja[0],wi=ja[1];j(function(){wi(re())},[]);var ai=f.useRef({}),za=f.useContext(Z),Mt=f.useMemo(function(){return{registerSubPopup:function(Us,fu){ai.current[Us]=fu,za?.registerSubPopup(Us,fu)}}},[za]),Gn=I(),qn=f.useState(null),Fr=(0,v.Z)(qn,2),Ei=Fr[0],ii=Fr[1],Wi=P(function(Ns){b(Ns)&&Ei!==Ns&&ii(Ns),za?.registerSubPopup(Gn,Ns)}),Ya=f.useState(null),qa=(0,v.Z)(Ya,2),se=qa[0],ye=qa[1],Xe=P(function(Ns){b(Ns)&&se!==Ns&&ye(Ns)}),yt=f.Children.only(or),Wt=yt?.props||{},Qt={},wn=P(function(Ns){var Us,fu,bu=se;return bu?.contains(Ns)||((Us=x(bu))===null||Us===void 0?void 0:Us.host)===Ns||Ns===bu||Ei?.contains(Ns)||((fu=x(Ei))===null||fu===void 0?void 0:fu.host)===Ns||Ns===Ei||Object.values(ai.current).some(function(Ys){return Ys?.contains(Ns)||Ns===Ys})}),fr=F(Vn,Ki,to,Da),Or=F(Vn,ia,Bo,ao),Si=f.useState(Ci||!1),Fi=(0,v.Z)(Si,2),Bi=Fi[0],Ui=Fi[1],vi=Yr??Bi,Xa=P(function(Ns){Yr===void 0&&Ui(Ns)});j(function(){Ui(Yr||!1)},[Yr]);var Ko=f.useRef(vi);Ko.current=vi;var So=P(function(Ns){vi!==Ns&&(Xa(Ns),Ni?.(Ns))}),Lo=f.useRef(),us=function(){clearTimeout(Lo.current)},Ee=function(Us){var fu=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;us(),fu===0?So(Us):Lo.current=setTimeout(function(){So(Us)},fu*1e3)};f.useEffect(function(){return us},[]);var Y=f.useState(!1),z=(0,v.Z)(Y,2),B=z[0],le=z[1];j(function(Ns){(!Ns||vi)&&le(!0)},[vi]);var Le=f.useState(null),Je=(0,v.Z)(Le,2),Ct=Je[0],Vt=Je[1],bn=f.useState([0,0]),Hn=(0,v.Z)(bn,2),br=Hn[0],ei=Hn[1],mi=function(Us){ei([Us.clientX,Us.clientY])},Li=_e(vi,Ei,lr?br:se,En,jn,rr,pi),na=(0,v.Z)(Li,11),ji=na[0],$a=na[1],Ha=na[2],Eo=na[3],Uo=na[4],Ms=na[5],er=na[6],Ar=na[7],Kr=na[8],ur=na[9],Gr=na[10],Pi=P(function(){B||Gr()});Ge(vi,se,Ei,Pi),j(function(){Pi()},[br,En]),j(function(){vi&&!(jn!=null&&jn[En])&&Pi()},[JSON.stringify(rr)]);var aa=f.useMemo(function(){var Ns=k(jn,Vn,ur,lr);return p()(Ns,Zr?.(ur))},[ur,Zr,jn,Vn,lr]);f.useImperativeHandle(Kn,function(){return{forceAlign:Pi}});var Fa=function(Us){le(!1),Gr(),fa?.(Us)},tn=function(){return new Promise(function(Us){Vt(function(){return Us})})};j(function(){Ct&&(Gr(),Ct(),Vt(null))},[Ct]);var cn=f.useState(0),nr=(0,v.Z)(cn,2),ir=nr[0],Lr=nr[1],ua=f.useState(0),_a=(0,v.Z)(ua,2),Ka=_a[0],yo=_a[1],Ba=function(Us,fu){if(Pi(),Ir){var bu=fu.getBoundingClientRect();Lr(bu.width),yo(bu.height)}},Ma=q(uo,ni,yr,si),Mo=(0,v.Z)(Ma,2),Nr=Mo[0],gi=Mo[1],ea=function(Us,fu,bu,Ys){Qt[Us]=function(Hu){var Zu;Ys?.(Hu),Ee(fu,bu);for(var ql=arguments.length,Sn=new Array(ql>1?ql-1:0),Wn=1;Wn<ql;Wn++)Sn[Wn-1]=arguments[Wn];(Zu=Wt[Us])===null||Zu===void 0||Zu.call.apply(Zu,[Wt,Hu].concat(Sn))}},dr=Nr.has("click"),ci=gi.has("click")||gi.has("contextMenu");(dr||ci)&&(Qt.onClick=function(Ns){var Us;Ko.current&&ci?Ee(!1):!Ko.current&&dr&&(mi(Ns),Ee(!0));for(var fu=arguments.length,bu=new Array(fu>1?fu-1:0),Ys=1;Ys<fu;Ys++)bu[Ys-1]=arguments[Ys];(Us=Wt.onClick)===null||Us===void 0||Us.call.apply(Us,[Wt,Ns].concat(bu))}),Yt(vi,ci,se,Ei,wa,Qn,wn,Ee);var yi=Nr.has("hover"),xa=gi.has("hover"),Cr,ka;yi&&(ea("onMouseEnter",!0,ha,function(Ns){mi(Ns)}),Cr=function(){Ee(!0,ha)},lr&&(Qt.onMouseMove=function(Ns){var Us;(Us=Wt.onMouseMove)===null||Us===void 0||Us.call(Wt,Ns)})),xa&&(ea("onMouseLeave",!1,li),ka=function(){Ee(!1,li)}),Nr.has("focus")&&ea("onFocus",!0,la),gi.has("focus")&&ea("onBlur",!1,Oa),Nr.has("contextMenu")&&(Qt.onContextMenu=function(Ns){var Us;Ko.current&&gi.has("contextMenu")?Ee(!1):(mi(Ns),Ee(!0)),Ns.preventDefault();for(var fu=arguments.length,bu=new Array(fu>1?fu-1:0),Ys=1;Ys<fu;Ys++)bu[Ys-1]=arguments[Ys];(Us=Wt.onContextMenu)===null||Us===void 0||Us.call.apply(Us,[Wt,Ns].concat(bu))}),jo&&(Qt.className=p()(Wt.className,jo));var Io=(0,s.Z)((0,s.Z)({},Wt),Qt),Co={},_s=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];_s.forEach(function(Ns){Go[Ns]&&(Co[Ns]=function(){for(var Us,fu=arguments.length,bu=new Array(fu),Ys=0;Ys<fu;Ys++)bu[Ys]=arguments[Ys];(Us=Io[Ns])===null||Us===void 0||Us.call.apply(Us,[Io].concat(bu)),Go[Ns].apply(Go,bu)})});var Is=f.cloneElement(yt,(0,s.Z)((0,s.Z)({},Io),Co)),xs={x:Ms,y:er},Zs=Ri?(0,s.Z)({},Ri!==!0?Ri:{}):null;return f.createElement(f.Fragment,null,f.createElement(d.Z,{disabled:!vi,ref:Xe,onResize:Ba},f.createElement(st,{getTriggerDOMNode:Jo},Is)),f.createElement(Z.Provider,{value:Mt},f.createElement(Jn,{portal:Tt,ref:Wi,prefixCls:Vn,popup:On,className:p()(Zn,aa),style:Ur,target:se,onMouseEnter:Cr,onMouseLeave:ka,zIndex:Mr,open:vi,keepDom:B,onClick:Jr,mask:wa,motion:fr,maskMotion:Or,onVisibleChanged:Fa,onPrepare:tn,forceRender:$r,autoDestroy:wr,getPopupContainer:_r,align:ur,arrow:Zs,arrowPos:xs,ready:ji,offsetX:$a,offsetY:Ha,offsetR:Eo,offsetB:Uo,onAlign:Pi,stretch:Ir,targetWidth:ir/Ar,targetHeight:Ka/Kr})))});return dn}const Ke=wt(l.Z);var Ut={shiftX:64,adjustY:1},on={adjustX:1,shiftY:!0},Tn=[0,0],An={left:{points:["cr","cl"],overflow:on,offset:[-4,0],targetOffset:Tn},right:{points:["cl","cr"],overflow:on,offset:[4,0],targetOffset:Tn},top:{points:["bc","tc"],overflow:Ut,offset:[0,-4],targetOffset:Tn},bottom:{points:["tc","bc"],overflow:Ut,offset:[0,4],targetOffset:Tn},topLeft:{points:["bl","tl"],overflow:Ut,offset:[0,-4],targetOffset:Tn},leftTop:{points:["tr","tl"],overflow:on,offset:[-4,0],targetOffset:Tn},topRight:{points:["br","tr"],overflow:Ut,offset:[0,-4],targetOffset:Tn},rightTop:{points:["tl","tr"],overflow:on,offset:[4,0],targetOffset:Tn},bottomRight:{points:["tr","br"],overflow:Ut,offset:[0,4],targetOffset:Tn},rightBottom:{points:["bl","br"],overflow:on,offset:[4,0],targetOffset:Tn},bottomLeft:{points:["tl","bl"],overflow:Ut,offset:[0,4],targetOffset:Tn},leftBottom:{points:["br","bl"],overflow:on,offset:[-4,0],targetOffset:Tn}};const Zt=null;var ot=t(28040),We=t.n(ot);function Ft(Tt){var dn=Tt.children,mn=Tt.prefixCls,Kn=Tt.id,Dn=Tt.overlayInnerStyle,Vn=Tt.className,or=Tt.style;return f.createElement("div",{className:We()("".concat(mn,"-content"),Vn),style:or},f.createElement("div",{className:"".concat(mn,"-inner"),id:Kn,role:"tooltip",style:Dn},typeof dn=="function"?dn():dn))}var it=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],qt=function(dn,mn){var Kn=dn.overlayClassName,Dn=dn.trigger,Vn=Dn===void 0?["hover"]:Dn,or=dn.mouseEnterDelay,Qr=or===void 0?0:or,ni=dn.mouseLeaveDelay,yr=ni===void 0?.1:ni,si=dn.overlayStyle,Yr=dn.prefixCls,Ci=Yr===void 0?"rc-tooltip":Yr,Ni=dn.children,fa=dn.onVisibleChange,ha=dn.afterVisibleChange,Ca=dn.transitionName,li=dn.animation,la=dn.motion,Oa=dn.placement,wa=Oa===void 0?"right":Oa,vo=dn.align,Qn=vo===void 0?{}:vo,_r=dn.destroyTooltipOnHide,$r=_r===void 0?!1:_r,Ti=dn.defaultVisible,xt=dn.getTooltipContainer,On=dn.overlayInnerStyle,Zn=dn.arrowContent,Ur=dn.overlay,En=dn.id,ln=dn.showArrow,jn=ln===void 0?!0:ln,rr=(0,u.Z)(dn,it),Mr=(0,f.useRef)(null);(0,f.useImperativeHandle)(mn,function(){return Mr.current});var Ir=(0,s.Z)({},rr);"visible"in dn&&(Ir.popupVisible=dn.visible);var Zr=function(){return f.createElement(Ft,{key:"content",prefixCls:Ci,id:En,overlayInnerStyle:On},Ur)};return f.createElement(Ke,(0,i.Z)({popupClassName:Kn,prefixCls:Ci,popup:Zr,action:Vn,builtinPlacements:An,popupPlacement:wa,ref:Mr,popupAlign:Qn,getPopupContainer:xt,onPopupVisibleChange:fa,afterPopupVisibleChange:ha,popupTransitionName:Ca,popupAnimation:li,popupMotion:la,defaultPopupVisible:Ti,autoDestroy:$r,mouseLeaveDelay:yr,popupStyle:si,mouseEnterDelay:Qr,arrow:jn},Ir),Ni)};const fn=(0,f.forwardRef)(qt)},28641:(C,c,t)=>{"use strict";t.d(c,{ZP:()=>d});var i={};function s(f,g){}function u(f,g){}function v(){i={}}function l(f,g,y){!g&&!i[y]&&(f(!1,y),i[y]=!0)}function h(f,g){l(s,f,g)}function p(f,g){l(u,f,g)}const d=h},32820:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(27702),s=t(54660);function u(v){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=[];return i.Children.forEach(v,function(p){p==null&&!l.keepEmpty||(Array.isArray(p)?h=h.concat(u(p)):(0,s.isFragment)(p)&&p.props?h=h.concat(u(p.props.children,l)):h.push(p))}),h}},42759:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}},72465:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(27473);function s(u){return u instanceof HTMLElement?u:i.findDOMNode(u)}},86588:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(v){var l=v.keyCode;if(v.altKey&&!v.ctrlKey||v.metaKey||l>=i.F1&&l<=i.F12)return!1;switch(l){case i.ALT:case i.CAPS_LOCK:case i.CONTEXT_MENU:case i.CTRL:case i.DOWN:case i.END:case i.ESC:case i.HOME:case i.INSERT:case i.LEFT:case i.MAC_FF_META:case i.META:case i.NUMLOCK:case i.NUM_CENTER:case i.PAGE_DOWN:case i.PAGE_UP:case i.PAUSE:case i.PRINT_SCREEN:case i.RIGHT:case i.SHIFT:case i.UP:case i.WIN_KEY:case i.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(v){if(v>=i.ZERO&&v<=i.NINE||v>=i.NUM_ZERO&&v<=i.NUM_MULTIPLY||v>=i.A&&v<=i.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&v===0)return!0;switch(v){case i.SPACE:case i.QUESTION_MARK:case i.NUM_PLUS:case i.NUM_MINUS:case i.NUM_PERIOD:case i.NUM_DIVISION:case i.SEMICOLON:case i.DASH:case i.EQUALS:case i.COMMA:case i.PERIOD:case i.SLASH:case i.APOSTROPHE:case i.SINGLE_QUOTE:case i.OPEN_SQUARE_BRACKET:case i.BACKSLASH:case i.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const s=i},87460:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(27702),s=t(42759),u=(0,s.Z)()?i.useLayoutEffect:i.useEffect;const v=u},50975:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(27702);function s(u,v,l){var h=i.useRef({});return(!("value"in h.current)||l(h.current.condition,v))&&(h.current.value=u(),h.current.condition=v),h.current.value}},77152:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(48632);function s(u,v){var l=(0,i.Z)({},u);return Array.isArray(v)&&v.forEach(function(h){delete l[h]}),l}},29353:(C,c,t)=>{"use strict";t.d(c,{Z:()=>d});var i=t(48632),s=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,u=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,v="".concat(s," ").concat(u).split(/[\s\n]+/),l="aria-",h="data-";function p(f,g){return f.indexOf(g)===0}function d(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y;g===!1?y={aria:!0,data:!0,attr:!0}:g===!0?y={aria:!0}:y=(0,i.Z)({},g);var b={};return Object.keys(f).forEach(function(E){(y.aria&&(E==="role"||p(E,l))||y.data&&p(E,h)||y.attr&&v.includes(E))&&(b[E]=f[E])}),b}},94792:(C,c,t)=>{"use strict";t.d(c,{Z:()=>h});var i=function(d){return+setTimeout(d,16)},s=function(d){return clearTimeout(d)};typeof window<"u"&&"requestAnimationFrame"in window&&(i=function(d){return window.requestAnimationFrame(d)},s=function(d){return window.cancelAnimationFrame(d)});var u=0,v=new Map;function l(p){v.delete(p)}function h(p){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;u+=1;var f=u;function g(y){if(y===0)l(f),p();else{var b=i(function(){g(y-1)});v.set(f,b)}}return g(d),f}h.cancel=function(p){var d=v.get(p);return l(d),s(d)}},69365:(C,c,t)=>{"use strict";t.d(c,{Yr:()=>p,sQ:()=>l,x1:()=>h});var i=t(4484),s=t(54660),u=t(50975);function v(d,f){typeof d=="function"?d(f):(0,i.Z)(d)==="object"&&d&&"current"in d&&(d.current=f)}function l(){for(var d=arguments.length,f=new Array(d),g=0;g<d;g++)f[g]=arguments[g];var y=f.filter(function(b){return b});return y.length<=1?y[0]:function(b){f.forEach(function(E){v(E,b)})}}function h(){for(var d=arguments.length,f=new Array(d),g=0;g<d;g++)f[g]=arguments[g];return(0,u.Z)(function(){return l.apply(void 0,f)},f,function(y,b){return y.length===b.length&&y.every(function(E,S){return E===b[S]})})}function p(d){var f,g,y=(0,s.isMemo)(d)?d.type.type:d.type;return!(typeof y=="function"&&!(!((f=y.prototype)===null||f===void 0)&&f.render)||typeof d=="function"&&!(!((g=d.prototype)===null||g===void 0)&&g.render))}},78572:(C,c,t)=>{"use strict";t.d(c,{Kp:()=>s,ZP:()=>d});var i={};function s(f,g){}function u(f,g){}function v(){i={}}function l(f,g,y){!g&&!i[y]&&(f(!1,y),i[y]=!0)}function h(f,g){l(s,f,g)}function p(f,g){l(u,f,g)}const d=h},55006:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}},66145:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(27702),s=t(55006),u=(0,s.Z)()?i.useLayoutEffect:i.useEffect;const v=u;var l=function(p,d){var f=React.useRef(!0);u(function(){if(!f.current)return p()},d),u(function(){return f.current=!1,function(){f.current=!0}},[])}},76875:(C,c,t)=>{"use strict";t.d(c,{mH:()=>l,Yr:()=>d,x1:()=>p});var i=t(4484),s=t(54660),u=t(27702);function v(f,g,y){var b=u.useRef({});return(!("value"in b.current)||y(b.current.condition,g))&&(b.current.value=f(),b.current.condition=g),b.current.value}function l(f,g){typeof f=="function"?f(g):(0,i.Z)(f)==="object"&&f&&"current"in f&&(f.current=g)}function h(){for(var f=arguments.length,g=new Array(f),y=0;y<f;y++)g[y]=arguments[y];var b=g.filter(function(E){return E});return b.length<=1?b[0]:function(E){g.forEach(function(S){l(S,E)})}}function p(){for(var f=arguments.length,g=new Array(f),y=0;y<f;y++)g[y]=arguments[y];return v(function(){return h.apply(void 0,g)},g,function(b,E){return b.length===E.length&&b.every(function(S,w){return S===E[w]})})}function d(f){var g,y,b=(0,s.isMemo)(f)?f.type.type:f.type;return!(typeof b=="function"&&!(!((g=b.prototype)===null||g===void 0)&&g.render)||typeof f=="function"&&!(!((y=f.prototype)===null||y===void 0)&&y.render))}},94251:(C,c,t)=>{"use strict";t.d(c,{ZP:()=>d});var i={};function s(f,g){}function u(f,g){}function v(){i={}}function l(f,g,y){!g&&!i[y]&&(f(!1,y),i[y]=!0)}function h(f,g){l(s,f,g)}function p(f,g){l(u,f,g)}const d=h},85532:(C,c,t)=>{"use strict";t.d(c,{Z5:()=>_l,_l:()=>As,bK:()=>Jl});var i=t(27702),s=t(42030),u=t(94285),v=t(48632);function l(Fe){return"Minified Redux error #"+Fe+"; visit https://redux.js.org/Errors?code="+Fe+" for the full message or use the non-minified dev environment for full errors. "}var h=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),p=function(){return Math.random().toString(36).substring(7).split("").join(".")},d={INIT:"@@redux/INIT"+p(),REPLACE:"@@redux/REPLACE"+p(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+p()}};function f(Fe){if(typeof Fe!="object"||Fe===null)return!1;for(var He=Fe;Object.getPrototypeOf(He)!==null;)He=Object.getPrototypeOf(He);return Object.getPrototypeOf(Fe)===He}function g(Fe){if(Fe===void 0)return"undefined";if(Fe===null)return"null";var He=typeof Fe;switch(He){case"boolean":case"string":case"number":case"symbol":case"function":return He}if(Array.isArray(Fe))return"array";if(E(Fe))return"date";if(b(Fe))return"error";var Dt=y(Fe);switch(Dt){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return Dt}return He.slice(8,-1).toLowerCase().replace(/\s/g,"")}function y(Fe){return typeof Fe.constructor=="function"?Fe.constructor.name:null}function b(Fe){return Fe instanceof Error||typeof Fe.message=="string"&&Fe.constructor&&typeof Fe.constructor.stackTraceLimit=="number"}function E(Fe){return Fe instanceof Date?!0:typeof Fe.toDateString=="function"&&typeof Fe.getDate=="function"&&typeof Fe.setDate=="function"}function S(Fe){var He=typeof Fe;return He}function w(Fe,He,Dt){var gn;if(typeof He=="function"&&typeof Dt=="function"||typeof Dt=="function"&&typeof arguments[3]=="function")throw new Error(l(0));if(typeof He=="function"&&typeof Dt>"u"&&(Dt=He,He=void 0),typeof Dt<"u"){if(typeof Dt!="function")throw new Error(l(1));return Dt(w)(Fe,He)}if(typeof Fe!="function")throw new Error(l(2));var Xn=Fe,cr=He,jr=[],Hr=jr,sa=!1;function Ia(){Hr===jr&&(Hr=jr.slice())}function Aa(){if(sa)throw new Error(l(3));return cr}function pa(Cs){if(typeof Cs!="function")throw new Error(l(4));if(sa)throw new Error(l(5));var vs=!0;return Ia(),Hr.push(Cs),function(){if(vs){if(sa)throw new Error(l(6));vs=!1,Ia();var Eu=Hr.indexOf(Cs);Hr.splice(Eu,1),jr=null}}}function Yi(Cs){if(!f(Cs))throw new Error(l(7));if(typeof Cs.type>"u")throw new Error(l(8));if(sa)throw new Error(l(9));try{sa=!0,cr=Xn(cr,Cs)}finally{sa=!1}for(var vs=jr=Hr,Rs=0;Rs<vs.length;Rs++){var Eu=vs[Rs];Eu()}return Cs}function eo(Cs){if(typeof Cs!="function")throw new Error(l(10));Xn=Cs,Yi({type:d.REPLACE})}function $o(){var Cs,vs=pa;return Cs={subscribe:function(Eu){if(typeof Eu!="object"||Eu===null)throw new Error(l(11));function _u(){Eu.next&&Eu.next(Aa())}_u();var ju=vs(_u);return{unsubscribe:ju}}},Cs[h]=function(){return this},Cs}return Yi({type:d.INIT}),gn={dispatch:Yi,subscribe:pa,getState:Aa,replaceReducer:eo},gn[h]=$o,gn}function x(Fe){typeof console<"u"&&typeof console.error=="function"&&console.error(Fe);try{throw new Error(Fe)}catch{}}function P(Fe,He,Dt,gn){var Xn=Object.keys(He),cr=Dt&&Dt.type===d.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(Xn.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!f(Fe))return"The "+cr+' has unexpected type of "'+S(Fe)+'". Expected argument to be an object with the following '+('keys: "'+Xn.join('", "')+'"');var jr=Object.keys(Fe).filter(function(Hr){return!He.hasOwnProperty(Hr)&&!gn[Hr]});if(jr.forEach(function(Hr){gn[Hr]=!0}),!(Dt&&Dt.type===d.REPLACE)&&jr.length>0)return"Unexpected "+(jr.length>1?"keys":"key")+" "+('"'+jr.join('", "')+'" found in '+cr+". ")+"Expected to find one of the known reducer keys instead: "+('"'+Xn.join('", "')+'". Unexpected keys will be ignored.')}function R(Fe){Object.keys(Fe).forEach(function(He){var Dt=Fe[He],gn=Dt(void 0,{type:d.INIT});if(typeof gn>"u")throw new Error(l(12));if(typeof Dt(void 0,{type:d.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(l(13))})}function T(Fe){for(var He=Object.keys(Fe),Dt={},gn=0;gn<He.length;gn++){var Xn=He[gn];typeof Fe[Xn]=="function"&&(Dt[Xn]=Fe[Xn])}var cr=Object.keys(Dt),jr,Hr;try{R(Dt)}catch(sa){Hr=sa}return function(Ia,Aa){if(Ia===void 0&&(Ia={}),Hr)throw Hr;if(!1)var pa;for(var Yi=!1,eo={},$o=0;$o<cr.length;$o++){var Cs=cr[$o],vs=Dt[Cs],Rs=Ia[Cs],Eu=vs(Rs,Aa);if(typeof Eu>"u"){var _u=Aa&&Aa.type;throw new Error(l(14))}eo[Cs]=Eu,Yi=Yi||Eu!==Rs}return Yi=Yi||cr.length!==Object.keys(Ia).length,Yi?eo:Ia}}function A(Fe,He){return function(){return He(Fe.apply(this,arguments))}}function I(Fe,He){if(typeof Fe=="function")return A(Fe,He);if(typeof Fe!="object"||Fe===null)throw new Error(l(16));var Dt={};for(var gn in Fe){var Xn=Fe[gn];typeof Xn=="function"&&(Dt[gn]=A(Xn,He))}return Dt}function N(){for(var Fe=arguments.length,He=new Array(Fe),Dt=0;Dt<Fe;Dt++)He[Dt]=arguments[Dt];return He.length===0?function(gn){return gn}:He.length===1?He[0]:He.reduce(function(gn,Xn){return function(){return gn(Xn.apply(void 0,arguments))}})}function K(){for(var Fe=arguments.length,He=new Array(Fe),Dt=0;Dt<Fe;Dt++)He[Dt]=arguments[Dt];return function(gn){return function(){var Xn=gn.apply(void 0,arguments),cr=function(){throw new Error(l(15))},jr={getState:Xn.getState,dispatch:function(){return cr.apply(void 0,arguments)}},Hr=He.map(function(sa){return sa(jr)});return cr=N.apply(void 0,Hr)(Xn.dispatch),(0,v.Z)((0,v.Z)({},Xn),{},{dispatch:cr})}}}function _(){}var W=t(27173);function j(Fe,He){if(Fe.length!==He.length)return!1;for(var Dt=0;Dt<Fe.length;Dt++)if(Fe[Dt]!==He[Dt])return!1;return!0}function re(Fe,He){var Dt=(0,i.useState)(function(){return{inputs:He,result:Fe()}})[0],gn=(0,i.useRef)(!0),Xn=(0,i.useRef)(Dt),cr=gn.current||!!(He&&Xn.current.inputs&&j(He,Xn.current.inputs)),jr=cr?Xn.current:{inputs:He,result:Fe()};return(0,i.useEffect)(function(){gn.current=!1,Xn.current=jr},[jr]),jr.result}function X(Fe,He){return re(function(){return Fe},He)}var Z=re,J=X,q=t(25726),L=function(He){var Dt=He.top,gn=He.right,Xn=He.bottom,cr=He.left,jr=gn-cr,Hr=Xn-Dt,sa={top:Dt,right:gn,bottom:Xn,left:cr,width:jr,height:Hr,x:cr,y:Dt,center:{x:(gn+cr)/2,y:(Xn+Dt)/2}};return sa},$=function(He,Dt){return{top:He.top-Dt.top,left:He.left-Dt.left,bottom:He.bottom+Dt.bottom,right:He.right+Dt.right}},k=function(He,Dt){return{top:He.top+Dt.top,left:He.left+Dt.left,bottom:He.bottom-Dt.bottom,right:He.right-Dt.right}},F=function(He,Dt){return{top:He.top+Dt.y,left:He.left+Dt.x,bottom:He.bottom+Dt.y,right:He.right+Dt.x}},V={top:0,right:0,bottom:0,left:0},pe=function(He){var Dt=He.borderBox,gn=He.margin,Xn=gn===void 0?V:gn,cr=He.border,jr=cr===void 0?V:cr,Hr=He.padding,sa=Hr===void 0?V:Hr,Ia=L($(Dt,Xn)),Aa=L(k(Dt,jr)),pa=L(k(Aa,sa));return{marginBox:Ia,borderBox:L(Dt),paddingBox:Aa,contentBox:pa,margin:Xn,border:jr,padding:sa}},ce=function(He){var Dt=He.slice(0,-2),gn=He.slice(-2);if(gn!=="px")return 0;var Xn=Number(Dt);return isNaN(Xn)&&(0,q.Z)(!1),Xn},G=function(){return{x:window.pageXOffset,y:window.pageYOffset}},te=function(He,Dt){var gn=He.borderBox,Xn=He.border,cr=He.margin,jr=He.padding,Hr=F(gn,Dt);return pe({borderBox:Hr,border:Xn,margin:cr,padding:jr})},ie=function(He,Dt){return Dt===void 0&&(Dt=G()),te(He,Dt)},fe=function(He,Dt){var gn={top:ce(Dt.marginTop),right:ce(Dt.marginRight),bottom:ce(Dt.marginBottom),left:ce(Dt.marginLeft)},Xn={top:ce(Dt.paddingTop),right:ce(Dt.paddingRight),bottom:ce(Dt.paddingBottom),left:ce(Dt.paddingLeft)},cr={top:ce(Dt.borderTopWidth),right:ce(Dt.borderRightWidth),bottom:ce(Dt.borderBottomWidth),left:ce(Dt.borderLeftWidth)};return pe({borderBox:He,margin:gn,padding:Xn,border:cr})},Se=function(He){var Dt=He.getBoundingClientRect(),gn=window.getComputedStyle(He);return fe(Dt,gn)},he=t(9200),me=function(He){var Dt=[],gn=null,Xn=function(){for(var jr=arguments.length,Hr=new Array(jr),sa=0;sa<jr;sa++)Hr[sa]=arguments[sa];Dt=Hr,!gn&&(gn=requestAnimationFrame(function(){gn=null,He.apply(void 0,Dt)}))};return Xn.cancel=function(){gn&&(cancelAnimationFrame(gn),gn=null)},Xn};const _e=me;var we=t(27473),Ge=!0,ht=/[ \t]{2,}/g,nt=/^[ \t]*/gm,Re=function(He){return He.replace(ht," ").replace(nt,"").trim()},ue=function(He){return Re(` %creact-beautiful-dnd %c`+Re(He)+` %c\u{1F477}\u200D This is a development only message. It will be removed in production builds. `)},ae=function(He){return[ue(He),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},ve="__react-beautiful-dnd-disable-dev-warnings";function Me(Fe,He){var Dt;Ge||typeof window<"u"&&window[ve]||(Dt=console)[Fe].apply(Dt,ae(He))}var Ye=Me.bind(null,"warn"),qe=Me.bind(null,"error");function At(){}function It(Fe,He){return(0,u.Z)({},Fe,{},He)}function Ce(Fe,He,Dt){var gn=He.map(function(Xn){var cr=It(Dt,Xn.options);return Fe.addEventListener(Xn.eventName,Xn.fn,cr),function(){Fe.removeEventListener(Xn.eventName,Xn.fn,cr)}});return function(){gn.forEach(function(cr){cr()})}}var Ae=!0,$e="Invariant failed";function tt(Fe){this.message=Fe}tt.prototype.toString=function(){return this.message};function ke(Fe,He){if(!Fe)throw Ae?new tt($e):new tt($e+": "+(He||""))}var Oe=function(Fe){(0,s.Z)(He,Fe);function He(){for(var gn,Xn=arguments.length,cr=new Array(Xn),jr=0;jr<Xn;jr++)cr[jr]=arguments[jr];return gn=Fe.call.apply(Fe,[this].concat(cr))||this,gn.callbacks=null,gn.unbind=At,gn.onWindowError=function(Hr){var sa=gn.getCallbacks();sa.isDragging()&&sa.tryAbort();var Ia=Hr.error;Ia instanceof tt&&Hr.preventDefault()},gn.getCallbacks=function(){if(!gn.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return gn.callbacks},gn.setCallbacks=function(Hr){gn.callbacks=Hr},gn}var Dt=He.prototype;return Dt.componentDidMount=function(){this.unbind=Ce(window,[{eventName:"error",fn:this.onWindowError}])},Dt.componentDidCatch=function(Xn){if(Xn instanceof tt){this.setState({});return}throw Xn},Dt.componentWillUnmount=function(){this.unbind()},Dt.render=function(){return this.props.children(this.setCallbacks)},He}(i.Component),je=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key `,Et=function(He){return He+1},ct=function(He){return` You have lifted an item in position `+Et(He.source.index)+` `},ut=function(He,Dt){var gn=He.droppableId===Dt.droppableId,Xn=Et(He.index),cr=Et(Dt.index);return gn?` You have moved the item from position `+Xn+` to position `+cr+` `:` You have moved the item from position `+Xn+` in list `+He.droppableId+` to list `+Dt.droppableId+` in position `+cr+` `},Ne=function(He,Dt,gn){var Xn=Dt.droppableId===gn.droppableId;return Xn?` The item `+He+` has been combined with `+gn.draggableId:` The item `+He+` in list `+Dt.droppableId+` has been combined with `+gn.draggableId+` in list `+gn.droppableId+` `},mt=function(He){var Dt=He.destination;if(Dt)return ut(He.source,Dt);var gn=He.combine;return gn?Ne(He.draggableId,He.source,gn):"You are over an area that cannot be dropped on"},bt=function(He){return` The item has returned to its starting position of `+Et(He.index)+` `},Gt=function(He){if(He.reason==="CANCEL")return` Movement cancelled. `+bt(He.source)+` `;var Dt=He.destination,gn=He.combine;return Dt?` You have dropped the item. `+ut(He.source,Dt)+` `:gn?` You have dropped the item. `+Ne(He.draggableId,He.source,gn)+` `:` The item has been dropped while not over a drop area. `+bt(He.source)+` `},hn={dragHandleUsageInstructions:je,onDragStart:ct,onDragUpdate:mt,onDragEnd:Gt},Yt={x:0,y:0},Bt=function(He,Dt){return{x:He.x+Dt.x,y:He.y+Dt.y}},Lt=function(He,Dt){return{x:He.x-Dt.x,y:He.y-Dt.y}},zt=function(He,Dt){return He.x===Dt.x&&He.y===Dt.y},Kt=function(He){return{x:He.x!==0?-He.x:0,y:He.y!==0?-He.y:0}},vt=function(He,Dt,gn){var Xn;return gn===void 0&&(gn=0),Xn={},Xn[He]=Dt,Xn[He==="x"?"y":"x"]=gn,Xn},Ve=function(He,Dt){return Math.sqrt(Math.pow(Dt.x-He.x,2)+Math.pow(Dt.y-He.y,2))},lt=function(He,Dt){return Math.min.apply(Math,Dt.map(function(gn){return Ve(He,gn)}))},at=function(He){return function(Dt){return{x:He(Dt.x),y:He(Dt.y)}}},Xt=function(Fe,He){var Dt=L({top:Math.max(He.top,Fe.top),right:Math.min(He.right,Fe.right),bottom:Math.min(He.bottom,Fe.bottom),left:Math.max(He.left,Fe.left)});return Dt.width<=0||Dt.height<=0?null:Dt},rt=function(He,Dt){return{top:He.top+Dt.y,left:He.left+Dt.x,bottom:He.bottom+Dt.y,right:He.right+Dt.x}},Rt=function(He){return[{x:He.left,y:He.top},{x:He.right,y:He.top},{x:He.left,y:He.bottom},{x:He.right,y:He.bottom}]},rn={top:0,right:0,bottom:0,left:0},sn=function(He,Dt){return Dt?rt(He,Dt.scroll.diff.displacement):He},Jn=function(He,Dt,gn){if(gn&&gn.increasedBy){var Xn;return(0,u.Z)({},He,(Xn={},Xn[Dt.end]=He[Dt.end]+gn.increasedBy[Dt.line],Xn))}return He},ze=function(He,Dt){return Dt&&Dt.shouldClipSubject?Xt(Dt.pageMarginBox,He):L(He)},st=function(Fe){var He=Fe.page,Dt=Fe.withPlaceholder,gn=Fe.axis,Xn=Fe.frame,cr=sn(He.marginBox,Xn),jr=Jn(cr,gn,Dt),Hr=ze(jr,Xn);return{page:He,withPlaceholder:Dt,active:Hr}},en=function(Fe,He){Fe.frame||ke(!1);var Dt=Fe.frame,gn=Lt(He,Dt.scroll.initial),Xn=Kt(gn),cr=(0,u.Z)({},Dt,{scroll:{initial:Dt.scroll.initial,current:He,diff:{value:gn,displacement:Xn},max:Dt.scroll.max}}),jr=st({page:Fe.subject.page,withPlaceholder:Fe.subject.withPlaceholder,axis:Fe.axis,frame:cr}),Hr=(0,u.Z)({},Fe,{frame:cr,subject:jr});return Hr};function wt(Fe){return Number.isInteger?Number.isInteger(Fe):typeof Fe=="number"&&isFinite(Fe)&&Math.floor(Fe)===Fe}function Ke(Fe){return Object.values?Object.values(Fe):Object.keys(Fe).map(function(He){return Fe[He]})}function Ut(Fe,He){if(Fe.findIndex)return Fe.findIndex(He);for(var Dt=0;Dt<Fe.length;Dt++)if(He(Fe[Dt]))return Dt;return-1}function on(Fe,He){if(Fe.find)return Fe.find(He);var Dt=Ut(Fe,He);if(Dt!==-1)return Fe[Dt]}function Tn(Fe){return Array.prototype.slice.call(Fe)}var An=(0,he.default)(function(Fe){return Fe.reduce(function(He,Dt){return He[Dt.descriptor.id]=Dt,He},{})}),Zt=(0,he.default)(function(Fe){return Fe.reduce(function(He,Dt){return He[Dt.descriptor.id]=Dt,He},{})}),ot=(0,he.default)(function(Fe){return Ke(Fe)}),We=(0,he.default)(function(Fe){return Ke(Fe)}),Ft=(0,he.default)(function(Fe,He){var Dt=We(He).filter(function(gn){return Fe===gn.descriptor.droppableId}).sort(function(gn,Xn){return gn.descriptor.index-Xn.descriptor.index});return Dt});function it(Fe){return Fe.at&&Fe.at.type==="REORDER"?Fe.at.destination:null}function qt(Fe){return Fe.at&&Fe.at.type==="COMBINE"?Fe.at.combine:null}var vn=(0,he.default)(function(Fe,He){return He.filter(function(Dt){return Dt.descriptor.id!==Fe.descriptor.id})}),fn=function(Fe){var He=Fe.isMovingForward,Dt=Fe.draggable,gn=Fe.destination,Xn=Fe.insideDestination,cr=Fe.previousImpact;if(!gn.isCombineEnabled)return null;var jr=it(cr);if(!jr)return null;function Hr(Cs){var vs={type:"COMBINE",combine:{draggableId:Cs,droppableId:gn.descriptor.id}};return(0,u.Z)({},cr,{at:vs})}var sa=cr.displaced.all,Ia=sa.length?sa[0]:null;if(He)return Ia?Hr(Ia):null;var Aa=vn(Dt,Xn);if(!Ia){if(!Aa.length)return null;var pa=Aa[Aa.length-1];return Hr(pa.descriptor.id)}var Yi=Ut(Aa,function(Cs){return Cs.descriptor.id===Ia});Yi===-1&&ke(!1);var eo=Yi-1;if(eo<0)return null;var $o=Aa[eo];return Hr($o.descriptor.id)},Tt=function(Fe,He){return Fe.descriptor.droppableId===He.descriptor.id},dn={point:Yt,value:0},mn={invisible:{},visible:{},all:[]},Kn={displaced:mn,displacedBy:dn,at:null},Dn=function(Fe,He){return function(Dt){return Fe<=Dt&&Dt<=He}},Vn=function(Fe){var He=Dn(Fe.top,Fe.bottom),Dt=Dn(Fe.left,Fe.right);return function(gn){var Xn=He(gn.top)&&He(gn.bottom)&&Dt(gn.left)&&Dt(gn.right);if(Xn)return!0;var cr=He(gn.top)||He(gn.bottom),jr=Dt(gn.left)||Dt(gn.right),Hr=cr&&jr;if(Hr)return!0;var sa=gn.top<Fe.top&&gn.bottom>Fe.bottom,Ia=gn.left<Fe.left&&gn.right>Fe.right,Aa=sa&&Ia;if(Aa)return!0;var pa=sa&&jr||Ia&&cr;return pa}},or=function(Fe){var He=Dn(Fe.top,Fe.bottom),Dt=Dn(Fe.left,Fe.right);return function(gn){var Xn=He(gn.top)&&He(gn.bottom)&&Dt(gn.left)&&Dt(gn.right);return Xn}},Qr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ni={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},yr=function(Fe){return function(He){var Dt=Dn(He.top,He.bottom),gn=Dn(He.left,He.right);return function(Xn){return Fe===Qr?Dt(Xn.top)&&Dt(Xn.bottom):gn(Xn.left)&&gn(Xn.right)}}},si=function(He,Dt){var gn=Dt.frame?Dt.frame.scroll.diff.displacement:Yt;return rt(He,gn)},Yr=function(He,Dt,gn){return Dt.subject.active?gn(Dt.subject.active)(He):!1},Ci=function(He,Dt,gn){return gn(Dt)(He)},Ni=function(He){var Dt=He.target,gn=He.destination,Xn=He.viewport,cr=He.withDroppableDisplacement,jr=He.isVisibleThroughFrameFn,Hr=cr?si(Dt,gn):Dt;return Yr(Hr,gn,jr)&&Ci(Hr,Xn,jr)},fa=function(He){return Ni((0,u.Z)({},He,{isVisibleThroughFrameFn:Vn}))},ha=function(He){return Ni((0,u.Z)({},He,{isVisibleThroughFrameFn:or}))},Ca=function(He){return Ni((0,u.Z)({},He,{isVisibleThroughFrameFn:yr(He.destination.axis)}))},li=function(He,Dt,gn){if(typeof gn=="boolean")return gn;if(!Dt)return!0;var Xn=Dt.invisible,cr=Dt.visible;if(Xn[He])return!1;var jr=cr[He];return jr?jr.shouldAnimate:!0};function la(Fe,He){var Dt=Fe.page.marginBox,gn={top:He.point.y,right:0,bottom:0,left:He.point.x};return L($(Dt,gn))}function Oa(Fe){var He=Fe.afterDragging,Dt=Fe.destination,gn=Fe.displacedBy,Xn=Fe.viewport,cr=Fe.forceShouldAnimate,jr=Fe.last;return He.reduce(function(sa,Ia){var Aa=la(Ia,gn),pa=Ia.descriptor.id;sa.all.push(pa);var Yi=fa({target:Aa,destination:Dt,viewport:Xn,withDroppableDisplacement:!0});if(!Yi)return sa.invisible[Ia.descriptor.id]=!0,sa;var eo=li(pa,jr,cr),$o={draggableId:pa,shouldAnimate:eo};return sa.visible[pa]=$o,sa},{all:[],visible:{},invisible:{}})}function wa(Fe,He){if(!Fe.length)return 0;var Dt=Fe[Fe.length-1].descriptor.index;return He.inHomeList?Dt:Dt+1}function vo(Fe){var He=Fe.insideDestination,Dt=Fe.inHomeList,gn=Fe.displacedBy,Xn=Fe.destination,cr=wa(He,{inHomeList:Dt});return{displaced:mn,displacedBy:gn,at:{type:"REORDER",destination:{droppableId:Xn.descriptor.id,index:cr}}}}function Qn(Fe){var He=Fe.draggable,Dt=Fe.insideDestination,gn=Fe.destination,Xn=Fe.viewport,cr=Fe.displacedBy,jr=Fe.last,Hr=Fe.index,sa=Fe.forceShouldAnimate,Ia=Tt(He,gn);if(Hr==null)return vo({insideDestination:Dt,inHomeList:Ia,displacedBy:cr,destination:gn});var Aa=on(Dt,function(Cs){return Cs.descriptor.index===Hr});if(!Aa)return vo({insideDestination:Dt,inHomeList:Ia,displacedBy:cr,destination:gn});var pa=vn(He,Dt),Yi=Dt.indexOf(Aa),eo=pa.slice(Yi),$o=Oa({afterDragging:eo,destination:gn,displacedBy:cr,last:jr,viewport:Xn.frame,forceShouldAnimate:sa});return{displaced:$o,displacedBy:cr,at:{type:"REORDER",destination:{droppableId:gn.descriptor.id,index:Hr}}}}function _r(Fe,He){return!!He.effected[Fe]}var $r=function(Fe){var He=Fe.isMovingForward,Dt=Fe.destination,gn=Fe.draggables,Xn=Fe.combine,cr=Fe.afterCritical;if(!Dt.isCombineEnabled)return null;var jr=Xn.draggableId,Hr=gn[jr],sa=Hr.descriptor.index,Ia=_r(jr,cr);return Ia?He?sa:sa-1:He?sa+1:sa},Ti=function(Fe){var He=Fe.isMovingForward,Dt=Fe.isInHomeList,gn=Fe.insideDestination,Xn=Fe.location;if(!gn.length)return null;var cr=Xn.index,jr=He?cr+1:cr-1,Hr=gn[0].descriptor.index,sa=gn[gn.length-1].descriptor.index,Ia=Dt?sa:sa+1;return jr<Hr||jr>Ia?null:jr},xt=function(Fe){var He=Fe.isMovingForward,Dt=Fe.isInHomeList,gn=Fe.draggable,Xn=Fe.draggables,cr=Fe.destination,jr=Fe.insideDestination,Hr=Fe.previousImpact,sa=Fe.viewport,Ia=Fe.afterCritical,Aa=Hr.at;if(Aa||ke(!1),Aa.type==="REORDER"){var pa=Ti({isMovingForward:He,isInHomeList:Dt,location:Aa.destination,insideDestination:jr});return pa==null?null:Qn({draggable:gn,insideDestination:jr,destination:cr,viewport:sa,last:Hr.displaced,displacedBy:Hr.displacedBy,index:pa})}var Yi=$r({isMovingForward:He,destination:cr,displaced:Hr.displaced,draggables:Xn,combine:Aa.combine,afterCritical:Ia});return Yi==null?null:Qn({draggable:gn,insideDestination:jr,destination:cr,viewport:sa,last:Hr.displaced,displacedBy:Hr.displacedBy,index:Yi})},On=function(Fe){var He=Fe.displaced,Dt=Fe.afterCritical,gn=Fe.combineWith,Xn=Fe.displacedBy,cr=!!(He.visible[gn]||He.invisible[gn]);return _r(gn,Dt)?cr?Yt:Kt(Xn.point):cr?Xn.point:Yt},Zn=function(Fe){var He=Fe.afterCritical,Dt=Fe.impact,gn=Fe.draggables,Xn=qt(Dt);Xn||ke(!1);var cr=Xn.draggableId,jr=gn[cr].page.borderBox.center,Hr=On({displaced:Dt.displaced,afterCritical:He,combineWith:cr,displacedBy:Dt.displacedBy});return Bt(jr,Hr)},Ur=function(He,Dt){return Dt.margin[He.start]+Dt.borderBox[He.size]/2},En=function(He,Dt){return Dt.margin[He.end]+Dt.borderBox[He.size]/2},ln=function(He,Dt,gn){return Dt[He.crossAxisStart]+gn.margin[He.crossAxisStart]+gn.borderBox[He.crossAxisSize]/2},jn=function(He){var Dt=He.axis,gn=He.moveRelativeTo,Xn=He.isMoving;return vt(Dt.line,gn.marginBox[Dt.end]+Ur(Dt,Xn),ln(Dt,gn.marginBox,Xn))},rr=function(He){var Dt=He.axis,gn=He.moveRelativeTo,Xn=He.isMoving;return vt(Dt.line,gn.marginBox[Dt.start]-En(Dt,Xn),ln(Dt,gn.marginBox,Xn))},Mr=function(He){var Dt=He.axis,gn=He.moveInto,Xn=He.isMoving;return vt(Dt.line,gn.contentBox[Dt.start]+Ur(Dt,Xn),ln(Dt,gn.contentBox,Xn))},Ir=function(Fe){var He=Fe.impact,Dt=Fe.draggable,gn=Fe.draggables,Xn=Fe.droppable,cr=Fe.afterCritical,jr=Ft(Xn.descriptor.id,gn),Hr=Dt.page,sa=Xn.axis;if(!jr.length)return Mr({axis:sa,moveInto:Xn.page,isMoving:Hr});var Ia=He.displaced,Aa=He.displacedBy,pa=Ia.all[0];if(pa){var Yi=gn[pa];if(_r(pa,cr))return rr({axis:sa,moveRelativeTo:Yi.page,isMoving:Hr});var eo=te(Yi.page,Aa.point);return rr({axis:sa,moveRelativeTo:eo,isMoving:Hr})}var $o=jr[jr.length-1];if($o.descriptor.id===Dt.descriptor.id)return Hr.borderBox.center;if(_r($o.descriptor.id,cr)){var Cs=te($o.page,Kt(cr.displacedBy.point));return jn({axis:sa,moveRelativeTo:Cs,isMoving:Hr})}return jn({axis:sa,moveRelativeTo:$o.page,isMoving:Hr})},Zr=function(Fe,He){var Dt=Fe.frame;return Dt?Bt(He,Dt.scroll.diff.displacement):He},lr=function(He){var Dt=He.impact,gn=He.draggable,Xn=He.droppable,cr=He.draggables,jr=He.afterCritical,Hr=gn.page.borderBox.center,sa=Dt.at;return!Xn||!sa?Hr:sa.type==="REORDER"?Ir({impact:Dt,draggable:gn,draggables:cr,droppable:Xn,afterCritical:jr}):Zn({impact:Dt,draggables:cr,afterCritical:jr})},Jr=function(Fe){var He=lr(Fe),Dt=Fe.droppable,gn=Dt?Zr(Dt,He):He;return gn},pi=function(Fe,He){var Dt=Lt(He,Fe.scroll.initial),gn=Kt(Dt),Xn=L({top:He.y,bottom:He.y+Fe.frame.height,left:He.x,right:He.x+Fe.frame.width}),cr={frame:Xn,scroll:{initial:Fe.scroll.initial,max:Fe.scroll.max,current:He,diff:{value:Dt,displacement:gn}}};return cr};function Ri(Fe,He){return Fe.map(function(Dt){return He[Dt]})}function Ki(Fe,He){for(var Dt=0;Dt<He.length;Dt++){var gn=He[Dt].visible[Fe];if(gn)return gn}return null}var ia=function(Fe){var He=Fe.impact,Dt=Fe.viewport,gn=Fe.destination,Xn=Fe.draggables,cr=Fe.maxScrollChange,jr=pi(Dt,Bt(Dt.scroll.current,cr)),Hr=gn.frame?en(gn,Bt(gn.frame.scroll.current,cr)):gn,sa=He.displaced,Ia=Oa({afterDragging:Ri(sa.all,Xn),destination:gn,displacedBy:He.displacedBy,viewport:jr.frame,last:sa,forceShouldAnimate:!1}),Aa=Oa({afterDragging:Ri(sa.all,Xn),destination:Hr,displacedBy:He.displacedBy,viewport:Dt.frame,last:sa,forceShouldAnimate:!1}),pa={},Yi={},eo=[sa,Ia,Aa];sa.all.forEach(function(Cs){var vs=Ki(Cs,eo);if(vs){Yi[Cs]=vs;return}pa[Cs]=!0});var $o=(0,u.Z)({},He,{displaced:{all:sa.all,invisible:pa,visible:Yi}});return $o},Da=function(Fe,He){return Bt(Fe.scroll.diff.displacement,He)},to=function(Fe){var He=Fe.pageBorderBoxCenter,Dt=Fe.draggable,gn=Fe.viewport,Xn=Da(gn,He),cr=Lt(Xn,Dt.page.borderBox.center);return Bt(Dt.client.borderBox.center,cr)},ao=function(Fe){var He=Fe.draggable,Dt=Fe.destination,gn=Fe.newPageBorderBoxCenter,Xn=Fe.viewport,cr=Fe.withDroppableDisplacement,jr=Fe.onlyOnMainAxis,Hr=jr===void 0?!1:jr,sa=Lt(gn,He.page.borderBox.center),Ia=rt(He.page.borderBox,sa),Aa={target:Ia,destination:Dt,withDroppableDisplacement:cr,viewport:Xn};return Hr?Ca(Aa):ha(Aa)},Bo=function(Fe){var He=Fe.isMovingForward,Dt=Fe.draggable,gn=Fe.destination,Xn=Fe.draggables,cr=Fe.previousImpact,jr=Fe.viewport,Hr=Fe.previousPageBorderBoxCenter,sa=Fe.previousClientSelection,Ia=Fe.afterCritical;if(!gn.isEnabled)return null;var Aa=Ft(gn.descriptor.id,Xn),pa=Tt(Dt,gn),Yi=fn({isMovingForward:He,draggable:Dt,destination:gn,insideDestination:Aa,previousImpact:cr})||xt({isMovingForward:He,isInHomeList:pa,draggable:Dt,draggables:Xn,destination:gn,insideDestination:Aa,previousImpact:cr,viewport:jr,afterCritical:Ia});if(!Yi)return null;var eo=Jr({impact:Yi,draggable:Dt,droppable:gn,draggables:Xn,afterCritical:Ia}),$o=ao({draggable:Dt,destination:gn,newPageBorderBoxCenter:eo,viewport:jr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if($o){var Cs=to({pageBorderBoxCenter:eo,draggable:Dt,viewport:jr});return{clientSelection:Cs,impact:Yi,scrollJumpRequest:null}}var vs=Lt(eo,Hr),Rs=ia({impact:Yi,viewport:jr,destination:gn,draggables:Xn,maxScrollChange:vs});return{clientSelection:sa,impact:Rs,scrollJumpRequest:vs}},jo=function(He){var Dt=He.subject.active;return Dt||ke(!1),Dt},Jo=function(Fe){var He=Fe.isMovingForward,Dt=Fe.pageBorderBoxCenter,gn=Fe.source,Xn=Fe.droppables,cr=Fe.viewport,jr=gn.subject.active;if(!jr)return null;var Hr=gn.axis,sa=Dn(jr[Hr.start],jr[Hr.end]),Ia=ot(Xn).filter(function(pa){return pa!==gn}).filter(function(pa){return pa.isEnabled}).filter(function(pa){return!!pa.subject.active}).filter(function(pa){return Vn(cr.frame)(jo(pa))}).filter(function(pa){var Yi=jo(pa);return He?jr[Hr.crossAxisEnd]<Yi[Hr.crossAxisEnd]:Yi[Hr.crossAxisStart]<jr[Hr.crossAxisStart]}).filter(function(pa){var Yi=jo(pa),eo=Dn(Yi[Hr.start],Yi[Hr.end]);return sa(Yi[Hr.start])||sa(Yi[Hr.end])||eo(jr[Hr.start])||eo(jr[Hr.end])}).sort(function(pa,Yi){var eo=jo(pa)[Hr.crossAxisStart],$o=jo(Yi)[Hr.crossAxisStart];return He?eo-$o:$o-eo}).filter(function(pa,Yi,eo){return jo(pa)[Hr.crossAxisStart]===jo(eo[0])[Hr.crossAxisStart]});if(!Ia.length)return null;if(Ia.length===1)return Ia[0];var Aa=Ia.filter(function(pa){var Yi=Dn(jo(pa)[Hr.start],jo(pa)[Hr.end]);return Yi(Dt[Hr.line])});return Aa.length===1?Aa[0]:Aa.length>1?Aa.sort(function(pa,Yi){return jo(pa)[Hr.start]-jo(Yi)[Hr.start]})[0]:Ia.sort(function(pa,Yi){var eo=lt(Dt,Rt(jo(pa))),$o=lt(Dt,Rt(jo(Yi)));return eo!==$o?eo-$o:jo(pa)[Hr.start]-jo(Yi)[Hr.start]})[0]},Go=function(He,Dt){var gn=He.page.borderBox.center;return _r(He.descriptor.id,Dt)?Lt(gn,Dt.displacedBy.point):gn},wr=function(He,Dt){var gn=He.page.borderBox;return _r(He.descriptor.id,Dt)?rt(gn,Kt(Dt.displacedBy.point)):gn},qi=function(Fe){var He=Fe.pageBorderBoxCenter,Dt=Fe.viewport,gn=Fe.destination,Xn=Fe.insideDestination,cr=Fe.afterCritical,jr=Xn.filter(function(Hr){return ha({target:wr(Hr,cr),destination:gn,viewport:Dt.frame,withDroppableDisplacement:!0})}).sort(function(Hr,sa){var Ia=Ve(He,Zr(gn,Go(Hr,cr))),Aa=Ve(He,Zr(gn,Go(sa,cr)));return Ia<Aa?-1:Aa<Ia?1:Hr.descriptor.index-sa.descriptor.index});return jr[0]||null},ja=(0,he.default)(function(He,Dt){var gn=Dt[He.line];return{value:gn,point:vt(He.line,gn)}}),uo=function(He,Dt,gn){var Xn=He.axis;if(He.descriptor.mode==="virtual")return vt(Xn.line,Dt[Xn.line]);var cr=He.subject.page.contentBox[Xn.size],jr=Ft(He.descriptor.id,gn),Hr=jr.reduce(function(Aa,pa){return Aa+pa.client.marginBox[Xn.size]},0),sa=Hr+Dt[Xn.line],Ia=sa-cr;return Ia<=0?null:vt(Xn.line,Ia)},wi=function(He,Dt){return(0,u.Z)({},He,{scroll:(0,u.Z)({},He.scroll,{max:Dt})})},ai=function(He,Dt,gn){var Xn=He.frame;Tt(Dt,He)&&ke(!1),He.subject.withPlaceholder&&ke(!1);var cr=ja(He.axis,Dt.displaceBy).point,jr=uo(He,cr,gn),Hr={placeholderSize:cr,increasedBy:jr,oldFrameMaxScroll:He.frame?He.frame.scroll.max:null};if(!Xn){var sa=st({page:He.subject.page,withPlaceholder:Hr,axis:He.axis,frame:He.frame});return(0,u.Z)({},He,{subject:sa})}var Ia=jr?Bt(Xn.scroll.max,jr):Xn.scroll.max,Aa=wi(Xn,Ia),pa=st({page:He.subject.page,withPlaceholder:Hr,axis:He.axis,frame:Aa});return(0,u.Z)({},He,{subject:pa,frame:Aa})},za=function(He){var Dt=He.subject.withPlaceholder;Dt||ke(!1);var gn=He.frame;if(!gn){var Xn=st({page:He.subject.page,axis:He.axis,frame:null,withPlaceholder:null});return(0,u.Z)({},He,{subject:Xn})}var cr=Dt.oldFrameMaxScroll;cr||ke(!1);var jr=wi(gn,cr),Hr=st({page:He.subject.page,axis:He.axis,frame:jr,withPlaceholder:null});return(0,u.Z)({},He,{subject:Hr,frame:jr})},Mt=function(Fe){var He=Fe.previousPageBorderBoxCenter,Dt=Fe.moveRelativeTo,gn=Fe.insideDestination,Xn=Fe.draggable,cr=Fe.draggables,jr=Fe.destination,Hr=Fe.viewport,sa=Fe.afterCritical;if(!Dt){if(gn.length)return null;var Ia={displaced:mn,displacedBy:dn,at:{type:"REORDER",destination:{droppableId:jr.descriptor.id,index:0}}},Aa=Jr({impact:Ia,draggable:Xn,droppable:jr,draggables:cr,afterCritical:sa}),pa=Tt(Xn,jr)?jr:ai(jr,Xn,cr),Yi=ao({draggable:Xn,destination:pa,newPageBorderBoxCenter:Aa,viewport:Hr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Yi?Ia:null}var eo=He[jr.axis.line]<=Dt.page.borderBox.center[jr.axis.line],$o=function(){var vs=Dt.descriptor.index;return Dt.descriptor.id===Xn.descriptor.id||eo?vs:vs+1}(),Cs=ja(jr.axis,Xn.displaceBy);return Qn({draggable:Xn,insideDestination:gn,destination:jr,viewport:Hr,displacedBy:Cs,last:mn,index:$o})},Gn=function(Fe){var He=Fe.isMovingForward,Dt=Fe.previousPageBorderBoxCenter,gn=Fe.draggable,Xn=Fe.isOver,cr=Fe.draggables,jr=Fe.droppables,Hr=Fe.viewport,sa=Fe.afterCritical,Ia=Jo({isMovingForward:He,pageBorderBoxCenter:Dt,source:Xn,droppables:jr,viewport:Hr});if(!Ia)return null;var Aa=Ft(Ia.descriptor.id,cr),pa=qi({pageBorderBoxCenter:Dt,viewport:Hr,destination:Ia,insideDestination:Aa,afterCritical:sa}),Yi=Mt({previousPageBorderBoxCenter:Dt,destination:Ia,draggable:gn,draggables:cr,moveRelativeTo:pa,insideDestination:Aa,viewport:Hr,afterCritical:sa});if(!Yi)return null;var eo=Jr({impact:Yi,draggable:gn,droppable:Ia,draggables:cr,afterCritical:sa}),$o=to({pageBorderBoxCenter:eo,draggable:gn,viewport:Hr});return{clientSelection:$o,impact:Yi,scrollJumpRequest:null}},qn=function(Fe){var He=Fe.at;return He?He.type==="REORDER"?He.destination.droppableId:He.combine.droppableId:null},Fr=function(He,Dt){var gn=qn(He);return gn?Dt[gn]:null},Ei=function(Fe){var He=Fe.state,Dt=Fe.type,gn=Fr(He.impact,He.dimensions.droppables),Xn=!!gn,cr=He.dimensions.droppables[He.critical.droppable.id],jr=gn||cr,Hr=jr.axis.direction,sa=Hr==="vertical"&&(Dt==="MOVE_UP"||Dt==="MOVE_DOWN")||Hr==="horizontal"&&(Dt==="MOVE_LEFT"||Dt==="MOVE_RIGHT");if(sa&&!Xn)return null;var Ia=Dt==="MOVE_DOWN"||Dt==="MOVE_RIGHT",Aa=He.dimensions.draggables[He.critical.draggable.id],pa=He.current.page.borderBoxCenter,Yi=He.dimensions,eo=Yi.draggables,$o=Yi.droppables;return sa?Bo({isMovingForward:Ia,previousPageBorderBoxCenter:pa,draggable:Aa,destination:jr,draggables:eo,viewport:He.viewport,previousClientSelection:He.current.client.selection,previousImpact:He.impact,afterCritical:He.afterCritical}):Gn({isMovingForward:Ia,previousPageBorderBoxCenter:pa,draggable:Aa,isOver:jr,draggables:eo,droppables:$o,viewport:He.viewport,afterCritical:He.afterCritical})};function ii(Fe){return Fe.phase==="DRAGGING"||Fe.phase==="COLLECTING"}function Wi(Fe){var He=Dn(Fe.top,Fe.bottom),Dt=Dn(Fe.left,Fe.right);return function(Xn){return He(Xn.y)&&Dt(Xn.x)}}function Ya(Fe,He){return Fe.left<He.right&&Fe.right>He.left&&Fe.top<He.bottom&&Fe.bottom>He.top}function qa(Fe){var He=Fe.pageBorderBox,Dt=Fe.draggable,gn=Fe.candidates,Xn=Dt.page.borderBox.center,cr=gn.map(function(jr){var Hr=jr.axis,sa=vt(jr.axis.line,He.center[Hr.line],jr.page.borderBox.center[Hr.crossAxisLine]);return{id:jr.descriptor.id,distance:Ve(Xn,sa)}}).sort(function(jr,Hr){return Hr.distance-jr.distance});return cr[0]?cr[0].id:null}function se(Fe){var He=Fe.pageBorderBox,Dt=Fe.draggable,gn=Fe.droppables,Xn=ot(gn).filter(function(cr){if(!cr.isEnabled)return!1;var jr=cr.subject.active;if(!jr||!Ya(He,jr))return!1;if(Wi(jr)(He.center))return!0;var Hr=cr.axis,sa=jr.center[Hr.crossAxisLine],Ia=He[Hr.crossAxisStart],Aa=He[Hr.crossAxisEnd],pa=Dn(jr[Hr.crossAxisStart],jr[Hr.crossAxisEnd]),Yi=pa(Ia),eo=pa(Aa);return!Yi&&!eo?!0:Yi?Ia<sa:Aa>sa});return Xn.length?Xn.length===1?Xn[0].descriptor.id:qa({pageBorderBox:He,draggable:Dt,candidates:Xn}):null}var ye=function(He,Dt){return L(rt(He,Dt))},Xe=function(Fe,He){var Dt=Fe.frame;return Dt?ye(He,Dt.scroll.diff.value):He};function yt(Fe){var He=Fe.displaced,Dt=Fe.id;return!!(He.visible[Dt]||He.invisible[Dt])}function Wt(Fe){var He=Fe.draggable,Dt=Fe.closest,gn=Fe.inHomeList;return Dt?gn&&Dt.descriptor.index>He.descriptor.index?Dt.descriptor.index-1:Dt.descriptor.index:null}var Qt=function(Fe){var He=Fe.pageBorderBoxWithDroppableScroll,Dt=Fe.draggable,gn=Fe.destination,Xn=Fe.insideDestination,cr=Fe.last,jr=Fe.viewport,Hr=Fe.afterCritical,sa=gn.axis,Ia=ja(gn.axis,Dt.displaceBy),Aa=Ia.value,pa=He[sa.start],Yi=He[sa.end],eo=vn(Dt,Xn),$o=on(eo,function(vs){var Rs=vs.descriptor.id,Eu=vs.page.borderBox.center[sa.line],_u=_r(Rs,Hr),ju=yt({displaced:cr,id:Rs});return _u?ju?Yi<=Eu:pa<Eu-Aa:ju?Yi<=Eu+Aa:pa<Eu}),Cs=Wt({draggable:Dt,closest:$o,inHomeList:Tt(Dt,gn)});return Qn({draggable:Dt,insideDestination:Xn,destination:gn,viewport:jr,last:cr,displacedBy:Ia,index:Cs})},wn=4,fr=function(Fe){var He=Fe.draggable,Dt=Fe.pageBorderBoxWithDroppableScroll,gn=Fe.previousImpact,Xn=Fe.destination,cr=Fe.insideDestination,jr=Fe.afterCritical;if(!Xn.isCombineEnabled)return null;var Hr=Xn.axis,sa=ja(Xn.axis,He.displaceBy),Ia=sa.value,Aa=Dt[Hr.start],pa=Dt[Hr.end],Yi=vn(He,cr),eo=on(Yi,function(Cs){var vs=Cs.descriptor.id,Rs=Cs.page.borderBox,Eu=Rs[Hr.size],_u=Eu/wn,ju=_r(vs,jr),Cl=yt({displaced:gn.displaced,id:vs});return ju?Cl?pa>Rs[Hr.start]+_u&&pa<Rs[Hr.end]-_u:Aa>Rs[Hr.start]-Ia+_u&&Aa<Rs[Hr.end]-Ia-_u:Cl?pa>Rs[Hr.start]+Ia+_u&&pa<Rs[Hr.end]+Ia-_u:Aa>Rs[Hr.start]+_u&&Aa<Rs[Hr.end]-_u});if(!eo)return null;var $o={displacedBy:sa,displaced:gn.displaced,at:{type:"COMBINE",combine:{draggableId:eo.descriptor.id,droppableId:Xn.descriptor.id}}};return $o},Or=function(Fe){var He=Fe.pageOffset,Dt=Fe.draggable,gn=Fe.draggables,Xn=Fe.droppables,cr=Fe.previousImpact,jr=Fe.viewport,Hr=Fe.afterCritical,sa=ye(Dt.page.borderBox,He),Ia=se({pageBorderBox:sa,draggable:Dt,droppables:Xn});if(!Ia)return Kn;var Aa=Xn[Ia],pa=Ft(Aa.descriptor.id,gn),Yi=Xe(Aa,sa);return fr({pageBorderBoxWithDroppableScroll:Yi,draggable:Dt,previousImpact:cr,destination:Aa,insideDestination:pa,afterCritical:Hr})||Qt({pageBorderBoxWithDroppableScroll:Yi,draggable:Dt,destination:Aa,insideDestination:pa,last:cr.displaced,viewport:jr,afterCritical:Hr})},Si=function(Fe,He){var Dt;return(0,u.Z)({},Fe,(Dt={},Dt[He.descriptor.id]=He,Dt))},Fi=function(He){var Dt=He.previousImpact,gn=He.impact,Xn=He.droppables,cr=qn(Dt),jr=qn(gn);if(!cr||cr===jr)return Xn;var Hr=Xn[cr];if(!Hr.subject.withPlaceholder)return Xn;var sa=za(Hr);return Si(Xn,sa)},Bi=function(Fe){var He=Fe.draggable,Dt=Fe.draggables,gn=Fe.droppables,Xn=Fe.previousImpact,cr=Fe.impact,jr=Fi({previousImpact:Xn,impact:cr,droppables:gn}),Hr=qn(cr);if(!Hr)return jr;var sa=gn[Hr];if(Tt(He,sa)||sa.subject.withPlaceholder)return jr;var Ia=ai(sa,He,Dt);return Si(jr,Ia)},Ui=function(Fe){var He=Fe.state,Dt=Fe.clientSelection,gn=Fe.dimensions,Xn=Fe.viewport,cr=Fe.impact,jr=Fe.scrollJumpRequest,Hr=Xn||He.viewport,sa=gn||He.dimensions,Ia=Dt||He.current.client.selection,Aa=Lt(Ia,He.initial.client.selection),pa={offset:Aa,selection:Ia,borderBoxCenter:Bt(He.initial.client.borderBoxCenter,Aa)},Yi={selection:Bt(pa.selection,Hr.scroll.current),borderBoxCenter:Bt(pa.borderBoxCenter,Hr.scroll.current),offset:Bt(pa.offset,Hr.scroll.diff.value)},eo={client:pa,page:Yi};if(He.phase==="COLLECTING")return(0,u.Z)({phase:"COLLECTING"},He,{dimensions:sa,viewport:Hr,current:eo});var $o=sa.draggables[He.critical.draggable.id],Cs=cr||Or({pageOffset:Yi.offset,draggable:$o,draggables:sa.draggables,droppables:sa.droppables,previousImpact:He.impact,viewport:Hr,afterCritical:He.afterCritical}),vs=Bi({draggable:$o,impact:Cs,previousImpact:He.impact,draggables:sa.draggables,droppables:sa.droppables}),Rs=(0,u.Z)({},He,{current:eo,dimensions:{draggables:sa.draggables,droppables:vs},impact:Cs,viewport:Hr,scrollJumpRequest:jr||null,forceShouldAnimate:jr?!1:null});return Rs};function vi(Fe,He){return Fe.map(function(Dt){return He[Dt]})}var Xa=function(Fe){var He=Fe.impact,Dt=Fe.viewport,gn=Fe.draggables,Xn=Fe.destination,cr=Fe.forceShouldAnimate,jr=He.displaced,Hr=vi(jr.all,gn),sa=Oa({afterDragging:Hr,destination:Xn,displacedBy:He.displacedBy,viewport:Dt.frame,forceShouldAnimate:cr,last:jr});return(0,u.Z)({},He,{displaced:sa})},Ko=function(Fe){var He=Fe.impact,Dt=Fe.draggable,gn=Fe.droppable,Xn=Fe.draggables,cr=Fe.viewport,jr=Fe.afterCritical,Hr=Jr({impact:He,draggable:Dt,draggables:Xn,droppable:gn,afterCritical:jr});return to({pageBorderBoxCenter:Hr,draggable:Dt,viewport:cr})},So=function(Fe){var He=Fe.state,Dt=Fe.dimensions,gn=Fe.viewport;He.movementMode!=="SNAP"&&ke(!1);var Xn=He.impact,cr=gn||He.viewport,jr=Dt||He.dimensions,Hr=jr.draggables,sa=jr.droppables,Ia=Hr[He.critical.draggable.id],Aa=qn(Xn);Aa||ke(!1);var pa=sa[Aa],Yi=Xa({impact:Xn,viewport:cr,destination:pa,draggables:Hr}),eo=Ko({impact:Yi,draggable:Ia,droppable:pa,draggables:Hr,viewport:cr,afterCritical:He.afterCritical});return Ui({impact:Yi,clientSelection:eo,state:He,dimensions:jr,viewport:cr})},Lo=function(Fe){return{index:Fe.index,droppableId:Fe.droppableId}},us=function(Fe){var He=Fe.draggable,Dt=Fe.home,gn=Fe.draggables,Xn=Fe.viewport,cr=ja(Dt.axis,He.displaceBy),jr=Ft(Dt.descriptor.id,gn),Hr=jr.indexOf(He);Hr===-1&&ke(!1);var sa=jr.slice(Hr+1),Ia=sa.reduce(function(eo,$o){return eo[$o.descriptor.id]=!0,eo},{}),Aa={inVirtualList:Dt.descriptor.mode==="virtual",displacedBy:cr,effected:Ia},pa=Oa({afterDragging:sa,destination:Dt,displacedBy:cr,last:null,viewport:Xn.frame,forceShouldAnimate:!1}),Yi={displaced:pa,displacedBy:cr,at:{type:"REORDER",destination:Lo(He.descriptor)}};return{impact:Yi,afterCritical:Aa}},Ee=function(Fe,He){return{draggables:Fe.draggables,droppables:Si(Fe.droppables,He)}},Y=function(He){},z=function(He){},B=function(Fe){var He=Fe.draggable,Dt=Fe.offset,gn=Fe.initialWindowScroll,Xn=te(He.client,Dt),cr=ie(Xn,gn),jr=(0,u.Z)({},He,{placeholder:(0,u.Z)({},He.placeholder,{client:Xn}),client:Xn,page:cr});return jr},le=function(Fe){var He=Fe.frame;return He||ke(!1),He},Le=function(Fe){var He=Fe.additions,Dt=Fe.updatedDroppables,gn=Fe.viewport,Xn=gn.scroll.diff.value;return He.map(function(cr){var jr=cr.descriptor.droppableId,Hr=Dt[jr],sa=le(Hr),Ia=sa.scroll.diff.value,Aa=Bt(Xn,Ia),pa=B({draggable:cr,offset:Aa,initialWindowScroll:gn.scroll.initial});return pa})},Je=function(Fe){var He=Fe.state,Dt=Fe.published;Y();var gn=Dt.modified.map(function(_u){var ju=He.dimensions.droppables[_u.droppableId],Cl=en(ju,_u.scroll);return Cl}),Xn=(0,u.Z)({},He.dimensions.droppables,{},An(gn)),cr=Zt(Le({additions:Dt.additions,updatedDroppables:Xn,viewport:He.viewport})),jr=(0,u.Z)({},He.dimensions.draggables,{},cr);Dt.removals.forEach(function(_u){delete jr[_u]});var Hr={droppables:Xn,draggables:jr},sa=qn(He.impact),Ia=sa?Hr.droppables[sa]:null,Aa=Hr.draggables[He.critical.draggable.id],pa=Hr.droppables[He.critical.droppable.id],Yi=us({draggable:Aa,home:pa,draggables:jr,viewport:He.viewport}),eo=Yi.impact,$o=Yi.afterCritical,Cs=Ia&&Ia.isCombineEnabled?He.impact:eo,vs=Or({pageOffset:He.current.page.offset,draggable:Hr.draggables[He.critical.draggable.id],draggables:Hr.draggables,droppables:Hr.droppables,previousImpact:Cs,viewport:He.viewport,afterCritical:$o});z();var Rs=(0,u.Z)({phase:"DRAGGING"},He,{phase:"DRAGGING",impact:vs,onLiftImpact:eo,dimensions:Hr,afterCritical:$o,forceShouldAnimate:!1});if(He.phase==="COLLECTING")return Rs;var Eu=(0,u.Z)({phase:"DROP_PENDING"},Rs,{phase:"DROP_PENDING",reason:He.reason,isWaiting:!1});return Eu},Ct=function(He){return He.movementMode==="SNAP"},Vt=function(He,Dt,gn){var Xn=Ee(He.dimensions,Dt);return!Ct(He)||gn?Ui({state:He,dimensions:Xn}):So({state:He,dimensions:Xn})};function bn(Fe){return Fe.isDragging&&Fe.movementMode==="SNAP"?(0,u.Z)({phase:"DRAGGING"},Fe,{scrollJumpRequest:null}):Fe}var Hn={phase:"IDLE",completed:null,shouldFlush:!1},br=function(Fe,He){if(Fe===void 0&&(Fe=Hn),He.type==="FLUSH")return(0,u.Z)({},Hn,{shouldFlush:!0});if(He.type==="INITIAL_PUBLISH"){Fe.phase!=="IDLE"&&ke(!1);var Dt=He.payload,gn=Dt.critical,Xn=Dt.clientSelection,cr=Dt.viewport,jr=Dt.dimensions,Hr=Dt.movementMode,sa=jr.draggables[gn.draggable.id],Ia=jr.droppables[gn.droppable.id],Aa={selection:Xn,borderBoxCenter:sa.client.borderBox.center,offset:Yt},pa={client:Aa,page:{selection:Bt(Aa.selection,cr.scroll.initial),borderBoxCenter:Bt(Aa.selection,cr.scroll.initial),offset:Bt(Aa.selection,cr.scroll.diff.value)}},Yi=ot(jr.droppables).every(function(Bd){return!Bd.isFixedOnPage}),eo=us({draggable:sa,home:Ia,draggables:jr.draggables,viewport:cr}),$o=eo.impact,Cs=eo.afterCritical,vs={phase:"DRAGGING",isDragging:!0,critical:gn,movementMode:Hr,dimensions:jr,initial:pa,current:pa,isWindowScrollAllowed:Yi,impact:$o,afterCritical:Cs,onLiftImpact:$o,viewport:cr,scrollJumpRequest:null,forceShouldAnimate:null};return vs}if(He.type==="COLLECTION_STARTING"){if(Fe.phase==="COLLECTING"||Fe.phase==="DROP_PENDING")return Fe;Fe.phase!=="DRAGGING"&&ke(!1);var Rs=(0,u.Z)({phase:"COLLECTING"},Fe,{phase:"COLLECTING"});return Rs}if(He.type==="PUBLISH_WHILE_DRAGGING")return Fe.phase==="COLLECTING"||Fe.phase==="DROP_PENDING"||ke(!1),Je({state:Fe,published:He.payload});if(He.type==="MOVE"){if(Fe.phase==="DROP_PENDING")return Fe;ii(Fe)||ke(!1);var Eu=He.payload.client;return zt(Eu,Fe.current.client.selection)?Fe:Ui({state:Fe,clientSelection:Eu,impact:Ct(Fe)?Fe.impact:null})}if(He.type==="UPDATE_DROPPABLE_SCROLL"){if(Fe.phase==="DROP_PENDING"||Fe.phase==="COLLECTING")return bn(Fe);ii(Fe)||ke(!1);var _u=He.payload,ju=_u.id,Cl=_u.newScroll,Yl=Fe.dimensions.droppables[ju];if(!Yl)return Fe;var cu=en(Yl,Cl);return Vt(Fe,cu,!1)}if(He.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(Fe.phase==="DROP_PENDING")return Fe;ii(Fe)||ke(!1);var bs=He.payload,wc=bs.id,Zc=bs.isEnabled,Af=Fe.dimensions.droppables[wc];Af||ke(!1),Af.isEnabled===Zc&&ke(!1);var Yc=(0,u.Z)({},Af,{isEnabled:Zc});return Vt(Fe,Yc,!0)}if(He.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(Fe.phase==="DROP_PENDING")return Fe;ii(Fe)||ke(!1);var Yf=He.payload,Xf=Yf.id,ud=Yf.isCombineEnabled,rf=Fe.dimensions.droppables[Xf];rf||ke(!1),rf.isCombineEnabled===ud&&ke(!1);var th=(0,u.Z)({},rf,{isCombineEnabled:ud});return Vt(Fe,th,!0)}if(He.type==="MOVE_BY_WINDOW_SCROLL"){if(Fe.phase==="DROP_PENDING"||Fe.phase==="DROP_ANIMATING")return Fe;ii(Fe)||ke(!1),Fe.isWindowScrollAllowed||ke(!1);var Sd=He.payload.newScroll;if(zt(Fe.viewport.scroll.current,Sd))return bn(Fe);var Od=pi(Fe.viewport,Sd);return Ct(Fe)?So({state:Fe,viewport:Od}):Ui({state:Fe,viewport:Od})}if(He.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!ii(Fe))return Fe;var hf=He.payload.maxScroll;if(zt(hf,Fe.viewport.scroll.max))return Fe;var vf=(0,u.Z)({},Fe.viewport,{scroll:(0,u.Z)({},Fe.viewport.scroll,{max:hf})});return(0,u.Z)({phase:"DRAGGING"},Fe,{viewport:vf})}if(He.type==="MOVE_UP"||He.type==="MOVE_DOWN"||He.type==="MOVE_LEFT"||He.type==="MOVE_RIGHT"){if(Fe.phase==="COLLECTING"||Fe.phase==="DROP_PENDING")return Fe;Fe.phase!=="DRAGGING"&&ke(!1);var Nf=Ei({state:Fe,type:He.type});return Nf?Ui({state:Fe,impact:Nf.impact,clientSelection:Nf.clientSelection,scrollJumpRequest:Nf.scrollJumpRequest}):Fe}if(He.type==="DROP_PENDING"){var ld=He.payload.reason;Fe.phase!=="COLLECTING"&&ke(!1);var cd=(0,u.Z)({phase:"DROP_PENDING"},Fe,{phase:"DROP_PENDING",isWaiting:!0,reason:ld});return cd}if(He.type==="DROP_ANIMATE"){var pf=He.payload,kd=pf.completed,nd=pf.dropDuration,wf=pf.newHomeClientOffset;Fe.phase==="DRAGGING"||Fe.phase==="DROP_PENDING"||ke(!1);var Df={phase:"DROP_ANIMATING",completed:kd,dropDuration:nd,newHomeClientOffset:wf,dimensions:Fe.dimensions};return Df}if(He.type==="DROP_COMPLETE"){var nh=He.payload.completed;return{phase:"IDLE",completed:nh,shouldFlush:!1}}return Fe},ei=function(He){return{type:"BEFORE_INITIAL_CAPTURE",payload:He}},mi=function(He){return{type:"LIFT",payload:He}},Li=function(He){return{type:"INITIAL_PUBLISH",payload:He}},na=function(He){return{type:"PUBLISH_WHILE_DRAGGING",payload:He}},ji=function(){return{type:"COLLECTION_STARTING",payload:null}},$a=function(He){return{type:"UPDATE_DROPPABLE_SCROLL",payload:He}},Ha=function(He){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:He}},Eo=function(He){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:He}},Uo=function(He){return{type:"MOVE",payload:He}},Ms=function(He){return{type:"MOVE_BY_WINDOW_SCROLL",payload:He}},er=function(He){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:He}},Ar=function(){return{type:"MOVE_UP",payload:null}},Kr=function(){return{type:"MOVE_DOWN",payload:null}},ur=function(){return{type:"MOVE_RIGHT",payload:null}},Gr=function(){return{type:"MOVE_LEFT",payload:null}},Pi=function(){return{type:"FLUSH",payload:null}},aa=function(He){return{type:"DROP_ANIMATE",payload:He}},Fa=function(He){return{type:"DROP_COMPLETE",payload:He}},tn=function(He){return{type:"DROP",payload:He}},cn=function(He){return{type:"DROP_PENDING",payload:He}},nr=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function ir(Fe){if(!(Fe.length<=1)){for(var He=Fe.map(function(Hr){return Hr.descriptor.index}),Dt={},gn=1;gn<He.length;gn++){var Xn=He[gn],cr=He[gn-1];Xn!==cr+1&&(Dt[Xn]=!0)}if(Object.keys(Dt).length)var jr=He.map(function(Hr){var sa=!!Dt[Hr];return sa?"[\u{1F525}"+Hr+"]":""+Hr}).join(", ")}}function Lr(Fe,He){if(!1)var Dt}var ua=function(Fe){return function(He){var Dt=He.getState,gn=He.dispatch;return function(Xn){return function(cr){if(cr.type!=="LIFT"){Xn(cr);return}var jr=cr.payload,Hr=jr.id,sa=jr.clientSelection,Ia=jr.movementMode,Aa=Dt();Aa.phase==="DROP_ANIMATING"&&gn(Fa({completed:Aa.completed})),Dt().phase!=="IDLE"&&ke(!1),gn(Pi()),gn(ei({draggableId:Hr,movementMode:Ia}));var pa={shouldPublishImmediately:Ia==="SNAP"},Yi={draggableId:Hr,scrollOptions:pa},eo=Fe.startPublishing(Yi),$o=eo.critical,Cs=eo.dimensions,vs=eo.viewport;Lr($o,Cs),gn(Li({critical:$o,dimensions:Cs,clientSelection:sa,movementMode:Ia,viewport:vs}))}}}},_a=function(Fe){return function(){return function(He){return function(Dt){Dt.type==="INITIAL_PUBLISH"&&Fe.dragging(),Dt.type==="DROP_ANIMATE"&&Fe.dropping(Dt.payload.completed.result.reason),(Dt.type==="FLUSH"||Dt.type==="DROP_COMPLETE")&&Fe.resting(),He(Dt)}}}},Ka={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},yo={opacity:{drop:0,combining:.7},scale:{drop:.75}},Ba={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Ma=Ba.outOfTheWay+"s "+Ka.outOfTheWay,Mo={fluid:"opacity "+Ma,snap:"transform "+Ma+", opacity "+Ma,drop:function(He){var Dt=He+"s "+Ka.drop;return"transform "+Dt+", opacity "+Dt},outOfTheWay:"transform "+Ma,placeholder:"height "+Ma+", width "+Ma+", margin "+Ma},Nr=function(He){return zt(He,Yt)?null:"translate("+He.x+"px, "+He.y+"px)"},gi={moveTo:Nr,drop:function(He,Dt){var gn=Nr(He);return gn?Dt?gn+" scale("+yo.scale.drop+")":gn:null}},ea=Ba.minDropTime,dr=Ba.maxDropTime,ci=dr-ea,yi=1500,xa=.6,Cr=function(Fe){var He=Fe.current,Dt=Fe.destination,gn=Fe.reason,Xn=Ve(He,Dt);if(Xn<=0)return ea;if(Xn>=yi)return dr;var cr=Xn/yi,jr=ea+ci*cr,Hr=gn==="CANCEL"?jr*xa:jr;return Number(Hr.toFixed(2))},ka=function(Fe){var He=Fe.impact,Dt=Fe.draggable,gn=Fe.dimensions,Xn=Fe.viewport,cr=Fe.afterCritical,jr=gn.draggables,Hr=gn.droppables,sa=qn(He),Ia=sa?Hr[sa]:null,Aa=Hr[Dt.descriptor.droppableId],pa=Ko({impact:He,draggable:Dt,draggables:jr,afterCritical:cr,droppable:Ia||Aa,viewport:Xn}),Yi=Lt(pa,Dt.client.borderBox.center);return Yi},Io=function(Fe){var He=Fe.draggables,Dt=Fe.reason,gn=Fe.lastImpact,Xn=Fe.home,cr=Fe.viewport,jr=Fe.onLiftImpact;if(!gn.at||Dt!=="DROP"){var Hr=Xa({draggables:He,impact:jr,destination:Xn,viewport:cr,forceShouldAnimate:!0});return{impact:Hr,didDropInsideDroppable:!1}}if(gn.at.type==="REORDER")return{impact:gn,didDropInsideDroppable:!0};var sa=(0,u.Z)({},gn,{displaced:mn});return{impact:sa,didDropInsideDroppable:!0}},Co=function(Fe){var He=Fe.getState,Dt=Fe.dispatch;return function(gn){return function(Xn){if(Xn.type!=="DROP"){gn(Xn);return}var cr=He(),jr=Xn.payload.reason;if(cr.phase==="COLLECTING"){Dt(cn({reason:jr}));return}if(cr.phase!=="IDLE"){var Hr=cr.phase==="DROP_PENDING"&&cr.isWaiting;Hr&&ke(!1),cr.phase==="DRAGGING"||cr.phase==="DROP_PENDING"||ke(!1);var sa=cr.critical,Ia=cr.dimensions,Aa=Ia.draggables[cr.critical.draggable.id],pa=Io({reason:jr,lastImpact:cr.impact,afterCritical:cr.afterCritical,onLiftImpact:cr.onLiftImpact,home:cr.dimensions.droppables[cr.critical.droppable.id],viewport:cr.viewport,draggables:cr.dimensions.draggables}),Yi=pa.impact,eo=pa.didDropInsideDroppable,$o=eo?it(Yi):null,Cs=eo?qt(Yi):null,vs={index:sa.draggable.index,droppableId:sa.droppable.id},Rs={draggableId:Aa.descriptor.id,type:Aa.descriptor.type,source:vs,reason:jr,mode:cr.movementMode,destination:$o,combine:Cs},Eu=ka({impact:Yi,draggable:Aa,dimensions:Ia,viewport:cr.viewport,afterCritical:cr.afterCritical}),_u={critical:cr.critical,afterCritical:cr.afterCritical,result:Rs,impact:Yi},ju=!zt(cr.current.client.offset,Eu)||!!Rs.combine;if(!ju){Dt(Fa({completed:_u}));return}var Cl=Cr({current:cr.current.client.offset,destination:Eu,reason:jr}),Yl={newHomeClientOffset:Eu,dropDuration:Cl,completed:_u};Dt(aa(Yl))}}}},_s=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Is(Fe){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(Dt){Dt.target!==window&&Dt.target!==window.document||Fe()}}}function xs(Fe){var He=Fe.onWindowScroll;function Dt(){He(_s())}var gn=_e(Dt),Xn=Is(gn),cr=At;function jr(){return cr!==At}function Hr(){jr()&&ke(!1),cr=Ce(window,[Xn])}function sa(){jr()||ke(!1),gn.cancel(),cr(),cr=At}return{start:Hr,stop:sa,isActive:jr}}var Zs=function(He){return He.type==="DROP_COMPLETE"||He.type==="DROP_ANIMATE"||He.type==="FLUSH"},Ns=function(Fe){var He=xs({onWindowScroll:function(gn){Fe.dispatch(Ms({newScroll:gn}))}});return function(Dt){return function(gn){!He.isActive()&&gn.type==="INITIAL_PUBLISH"&&He.start(),He.isActive()&&Zs(gn)&&He.stop(),Dt(gn)}}},Us=function(Fe){var He=!1,Dt=!1,gn=setTimeout(function(){Dt=!0}),Xn=function(jr){He||Dt||(He=!0,Fe(jr),clearTimeout(gn))};return Xn.wasCalled=function(){return He},Xn},fu=function(){var Fe=[],He=function(cr){var jr=Ut(Fe,function(Ia){return Ia.timerId===cr});jr===-1&&ke(!1);var Hr=Fe.splice(jr,1),sa=Hr[0];sa.callback()},Dt=function(cr){var jr=setTimeout(function(){return He(jr)}),Hr={timerId:jr,callback:cr};Fe.push(Hr)},gn=function(){if(Fe.length){var cr=[].concat(Fe);Fe.length=0,cr.forEach(function(jr){clearTimeout(jr.timerId),jr.callback()})}};return{add:Dt,flush:gn}},bu=function(He,Dt){return He==null&&Dt==null?!0:He==null||Dt==null?!1:He.droppableId===Dt.droppableId&&He.index===Dt.index},Ys=function(He,Dt){return He==null&&Dt==null?!0:He==null||Dt==null?!1:He.draggableId===Dt.draggableId&&He.droppableId===Dt.droppableId},Hu=function(He,Dt){if(He===Dt)return!0;var gn=He.draggable.id===Dt.draggable.id&&He.draggable.droppableId===Dt.draggable.droppableId&&He.draggable.type===Dt.draggable.type&&He.draggable.index===Dt.draggable.index,Xn=He.droppable.id===Dt.droppable.id&&He.droppable.type===Dt.droppable.type;return gn&&Xn},Zu=function(He,Dt){Y(),Dt(),z()},ql=function(He,Dt){return{draggableId:He.draggable.id,type:He.droppable.type,source:{droppableId:He.droppable.id,index:He.draggable.index},mode:Dt}},Sn=function(He,Dt,gn,Xn){if(!He){gn(Xn(Dt));return}var cr=Us(gn),jr={announce:cr};He(Dt,jr),cr.wasCalled()||gn(Xn(Dt))},Wn=function(Fe,He){var Dt=fu(),gn=null,Xn=function(Yi,eo){gn&&ke(!1),Zu("onBeforeCapture",function(){var $o=Fe().onBeforeCapture;if($o){var Cs={draggableId:Yi,mode:eo};$o(Cs)}})},cr=function(Yi,eo){gn&&ke(!1),Zu("onBeforeDragStart",function(){var $o=Fe().onBeforeDragStart;$o&&$o(ql(Yi,eo))})},jr=function(Yi,eo){gn&&ke(!1);var $o=ql(Yi,eo);gn={mode:eo,lastCritical:Yi,lastLocation:$o.source,lastCombine:null},Dt.add(function(){Zu("onDragStart",function(){return Sn(Fe().onDragStart,$o,He,hn.onDragStart)})})},Hr=function(Yi,eo){var $o=it(eo),Cs=qt(eo);gn||ke(!1);var vs=!Hu(Yi,gn.lastCritical);vs&&(gn.lastCritical=Yi);var Rs=!bu(gn.lastLocation,$o);Rs&&(gn.lastLocation=$o);var Eu=!Ys(gn.lastCombine,Cs);if(Eu&&(gn.lastCombine=Cs),!(!vs&&!Rs&&!Eu)){var _u=(0,u.Z)({},ql(Yi,gn.mode),{combine:Cs,destination:$o});Dt.add(function(){Zu("onDragUpdate",function(){return Sn(Fe().onDragUpdate,_u,He,hn.onDragUpdate)})})}},sa=function(){gn||ke(!1),Dt.flush()},Ia=function(Yi){gn||ke(!1),gn=null,Zu("onDragEnd",function(){return Sn(Fe().onDragEnd,Yi,He,hn.onDragEnd)})},Aa=function(){if(gn){var Yi=(0,u.Z)({},ql(gn.lastCritical,gn.mode),{combine:null,destination:null,reason:"CANCEL"});Ia(Yi)}};return{beforeCapture:Xn,beforeStart:cr,start:jr,update:Hr,flush:sa,drop:Ia,abort:Aa}},vr=function(Fe,He){var Dt=Wn(Fe,He);return function(gn){return function(Xn){return function(cr){if(cr.type==="BEFORE_INITIAL_CAPTURE"){Dt.beforeCapture(cr.payload.draggableId,cr.payload.movementMode);return}if(cr.type==="INITIAL_PUBLISH"){var jr=cr.payload.critical;Dt.beforeStart(jr,cr.payload.movementMode),Xn(cr),Dt.start(jr,cr.payload.movementMode);return}if(cr.type==="DROP_COMPLETE"){var Hr=cr.payload.completed.result;Dt.flush(),Xn(cr),Dt.drop(Hr);return}if(Xn(cr),cr.type==="FLUSH"){Dt.abort();return}var sa=gn.getState();sa.phase==="DRAGGING"&&Dt.update(sa.critical,sa.impact)}}}},kr=function(Fe){return function(He){return function(Dt){if(Dt.type!=="DROP_ANIMATION_FINISHED"){He(Dt);return}var gn=Fe.getState();gn.phase!=="DROP_ANIMATING"&&ke(!1),Fe.dispatch(Fa({completed:gn.completed}))}}},ui=function(Fe){var He=null,Dt=null;function gn(){Dt&&(cancelAnimationFrame(Dt),Dt=null),He&&(He(),He=null)}return function(Xn){return function(cr){if((cr.type==="FLUSH"||cr.type==="DROP_COMPLETE"||cr.type==="DROP_ANIMATION_FINISHED")&&gn(),Xn(cr),cr.type==="DROP_ANIMATE"){var jr={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var sa=Fe.getState();sa.phase==="DROP_ANIMATING"&&Fe.dispatch(nr())}};Dt=requestAnimationFrame(function(){Dt=null,He=Ce(window,[jr])})}}}},ta=function(Fe){return function(){return function(He){return function(Dt){(Dt.type==="DROP_COMPLETE"||Dt.type==="FLUSH"||Dt.type==="DROP_ANIMATE")&&Fe.stopPublishing(),He(Dt)}}}},St=function(Fe){var He=!1;return function(){return function(Dt){return function(gn){if(gn.type==="INITIAL_PUBLISH"){He=!0,Fe.tryRecordFocus(gn.payload.critical.draggable.id),Dt(gn),Fe.tryRestoreFocusRecorded();return}if(Dt(gn),!!He){if(gn.type==="FLUSH"){He=!1,Fe.tryRestoreFocusRecorded();return}if(gn.type==="DROP_COMPLETE"){He=!1;var Xn=gn.payload.completed.result;Xn.combine&&Fe.tryShiftRecord(Xn.draggableId,Xn.combine.draggableId),Fe.tryRestoreFocusRecorded()}}}}}},pt=function(He){return He.type==="DROP_COMPLETE"||He.type==="DROP_ANIMATE"||He.type==="FLUSH"},kt=function(Fe){return function(He){return function(Dt){return function(gn){if(pt(gn)){Fe.stop(),Dt(gn);return}if(gn.type==="INITIAL_PUBLISH"){Dt(gn);var Xn=He.getState();Xn.phase!=="DRAGGING"&&ke(!1),Fe.start(Xn);return}Dt(gn),Fe.scroll(He.getState())}}}},_t=function(Fe){return function(He){return function(Dt){if(He(Dt),Dt.type==="PUBLISH_WHILE_DRAGGING"){var gn=Fe.getState();gn.phase==="DROP_PENDING"&&(gn.isWaiting||Fe.dispatch(tn({reason:gn.reason})))}}}},Mn=N,Pr=function(Fe){var He=Fe.dimensionMarshal,Dt=Fe.focusMarshal,gn=Fe.styleMarshal,Xn=Fe.getResponders,cr=Fe.announce,jr=Fe.autoScroller;return w(br,Mn(K(_a(gn),ta(He),ua(He),Co,kr,ui,_t,kt(jr),Ns,St(Dt),vr(Xn,cr))))},Hi=function(){return{additions:{},removals:{},modified:{}}};function jt(Fe){var He=Fe.registry,Dt=Fe.callbacks,gn=Hi(),Xn=null,cr=function(){Xn||(Dt.collectionStarting(),Xn=requestAnimationFrame(function(){Xn=null,Y();var Aa=gn,pa=Aa.additions,Yi=Aa.removals,eo=Aa.modified,$o=Object.keys(pa).map(function(Rs){return He.draggable.getById(Rs).getDimension(Yt)}).sort(function(Rs,Eu){return Rs.descriptor.index-Eu.descriptor.index}),Cs=Object.keys(eo).map(function(Rs){var Eu=He.droppable.getById(Rs),_u=Eu.callbacks.getScrollWhileDragging();return{droppableId:Rs,scroll:_u}}),vs={additions:$o,removals:Object.keys(Yi),modified:Cs};gn=Hi(),z(),Dt.publish(vs)}))},jr=function(Aa){var pa=Aa.descriptor.id;gn.additions[pa]=Aa,gn.modified[Aa.descriptor.droppableId]=!0,gn.removals[pa]&&delete gn.removals[pa],cr()},Hr=function(Aa){var pa=Aa.descriptor;gn.removals[pa.id]=!0,gn.modified[pa.droppableId]=!0,gn.additions[pa.id]&&delete gn.additions[pa.id],cr()},sa=function(){Xn&&(cancelAnimationFrame(Xn),Xn=null,gn=Hi())};return{add:jr,remove:Hr,stop:sa}}var $n=function(Fe){var He=Fe.scrollHeight,Dt=Fe.scrollWidth,gn=Fe.height,Xn=Fe.width,cr=Lt({x:Dt,y:He},{x:Xn,y:gn}),jr={x:Math.max(0,cr.x),y:Math.max(0,cr.y)};return jr},pn=function(){var Fe=document.documentElement;return Fe||ke(!1),Fe},ee=function(){var Fe=pn(),He=$n({scrollHeight:Fe.scrollHeight,scrollWidth:Fe.scrollWidth,width:Fe.clientWidth,height:Fe.clientHeight});return He},oe=function(){var Fe=_s(),He=ee(),Dt=Fe.y,gn=Fe.x,Xn=pn(),cr=Xn.clientWidth,jr=Xn.clientHeight,Hr=gn+cr,sa=Dt+jr,Ia=L({top:Dt,left:gn,right:Hr,bottom:sa}),Aa={frame:Ia,scroll:{initial:Fe,current:Fe,max:He,diff:{value:Yt,displacement:Yt}}};return Aa},De=function(Fe){var He=Fe.critical,Dt=Fe.scrollOptions,gn=Fe.registry;Y();var Xn=oe(),cr=Xn.scroll.current,jr=He.droppable,Hr=gn.droppable.getAllByType(jr.type).map(function(pa){return pa.callbacks.getDimensionAndWatchScroll(cr,Dt)}),sa=gn.draggable.getAllByType(He.draggable.type).map(function(pa){return pa.getDimension(cr)}),Ia={draggables:Zt(sa),droppables:An(Hr)};z();var Aa={dimensions:Ia,critical:He,viewport:Xn};return Aa};function Be(Fe,He,Dt){if(Dt.descriptor.id===He.id||Dt.descriptor.type!==He.type)return!1;var gn=Fe.droppable.getById(Dt.descriptor.droppableId);return gn.descriptor.mode==="virtual"}var gt=function(Fe,He){var Dt=null,gn=jt({callbacks:{publish:He.publishWhileDragging,collectionStarting:He.collectionStarting},registry:Fe}),Xn=function(eo,$o){Fe.droppable.exists(eo)||ke(!1),Dt&&He.updateDroppableIsEnabled({id:eo,isEnabled:$o})},cr=function(eo,$o){Dt&&(Fe.droppable.exists(eo)||ke(!1),He.updateDroppableIsCombineEnabled({id:eo,isCombineEnabled:$o}))},jr=function(eo,$o){Dt&&(Fe.droppable.exists(eo)||ke(!1),He.updateDroppableScroll({id:eo,newScroll:$o}))},Hr=function(eo,$o){Dt&&Fe.droppable.getById(eo).callbacks.scroll($o)},sa=function(){if(Dt){gn.stop();var eo=Dt.critical.droppable;Fe.droppable.getAllByType(eo.type).forEach(function($o){return $o.callbacks.dragStopped()}),Dt.unsubscribe(),Dt=null}},Ia=function(eo){Dt||ke(!1);var $o=Dt.critical.draggable;eo.type==="ADDITION"&&Be(Fe,$o,eo.value)&&gn.add(eo.value),eo.type==="REMOVAL"&&Be(Fe,$o,eo.value)&&gn.remove(eo.value)},Aa=function(eo){Dt&&ke(!1);var $o=Fe.draggable.getById(eo.draggableId),Cs=Fe.droppable.getById($o.descriptor.droppableId),vs={draggable:$o.descriptor,droppable:Cs.descriptor},Rs=Fe.subscribe(Ia);return Dt={critical:vs,unsubscribe:Rs},De({critical:vs,registry:Fe,scrollOptions:eo.scrollOptions})},pa={updateDroppableIsEnabled:Xn,updateDroppableIsCombineEnabled:cr,scrollDroppable:Hr,updateDroppableScroll:jr,startPublishing:Aa,stopPublishing:sa};return pa},Ht=function(Fe,He){return Fe.phase==="IDLE"?!0:Fe.phase!=="DROP_ANIMATING"||Fe.completed.result.draggableId===He?!1:Fe.completed.result.reason==="DROP"},nn=function(Fe){window.scrollBy(Fe.x,Fe.y)},Rn=(0,he.default)(function(Fe){return ot(Fe).filter(function(He){return!(!He.isEnabled||!He.frame)})}),Yn=function(He,Dt){var gn=on(Rn(Dt),function(Xn){return Xn.frame||ke(!1),Wi(Xn.frame.pageMarginBox)(He)});return gn},gr=function(Fe){var He=Fe.center,Dt=Fe.destination,gn=Fe.droppables;if(Dt){var Xn=gn[Dt];return Xn.frame?Xn:null}var cr=Yn(He,gn);return cr},Ai={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(He){return Math.pow(He,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},$i=function(Fe,He){var Dt=Fe[He.size]*Ai.startFromPercentage,gn=Fe[He.size]*Ai.maxScrollAtPercentage,Xn={startScrollingFrom:Dt,maxScrollValueAt:gn};return Xn},ma=function(Fe){var He=Fe.startOfRange,Dt=Fe.endOfRange,gn=Fe.current,Xn=Dt-He;if(Xn===0)return 0;var cr=gn-He,jr=cr/Xn;return jr},La=1,Qa=function(Fe,He){if(Fe>He.startScrollingFrom)return 0;if(Fe<=He.maxScrollValueAt)return Ai.maxPixelScroll;if(Fe===He.startScrollingFrom)return La;var Dt=ma({startOfRange:He.maxScrollValueAt,endOfRange:He.startScrollingFrom,current:Fe}),gn=1-Dt,Xn=Ai.maxPixelScroll*Ai.ease(gn);return Math.ceil(Xn)},go=Ai.durationDampening.accelerateAt,Ao=Ai.durationDampening.stopDampeningAt,Fo=function(Fe,He){var Dt=He,gn=Ao,Xn=Date.now(),cr=Xn-Dt;if(cr>=Ao)return Fe;if(cr<go)return La;var jr=ma({startOfRange:go,endOfRange:gn,current:cr}),Hr=Fe*Ai.ease(jr);return Math.ceil(Hr)},Ho=function(Fe){var He=Fe.distanceToEdge,Dt=Fe.thresholds,gn=Fe.dragStartTime,Xn=Fe.shouldUseTimeDampening,cr=Qa(He,Dt);return cr===0?0:Xn?Math.max(Fo(cr,gn),La):cr},eu=function(Fe){var He=Fe.container,Dt=Fe.distanceToEdges,gn=Fe.dragStartTime,Xn=Fe.axis,cr=Fe.shouldUseTimeDampening,jr=$i(He,Xn),Hr=Dt[Xn.end]<Dt[Xn.start];return Hr?Ho({distanceToEdge:Dt[Xn.end],thresholds:jr,dragStartTime:gn,shouldUseTimeDampening:cr}):-1*Ho({distanceToEdge:Dt[Xn.start],thresholds:jr,dragStartTime:gn,shouldUseTimeDampening:cr})},ks=function(Fe){var He=Fe.container,Dt=Fe.subject,gn=Fe.proposedScroll,Xn=Dt.height>He.height,cr=Dt.width>He.width;return!cr&&!Xn?gn:cr&&Xn?null:{x:cr?0:gn.x,y:Xn?0:gn.y}},Gu=at(function(Fe){return Fe===0?0:Fe}),an=function(Fe){var He=Fe.dragStartTime,Dt=Fe.container,gn=Fe.subject,Xn=Fe.center,cr=Fe.shouldUseTimeDampening,jr={top:Xn.y-Dt.top,right:Dt.right-Xn.x,bottom:Dt.bottom-Xn.y,left:Xn.x-Dt.left},Hr=eu({container:Dt,distanceToEdges:jr,dragStartTime:He,axis:Qr,shouldUseTimeDampening:cr}),sa=eu({container:Dt,distanceToEdges:jr,dragStartTime:He,axis:ni,shouldUseTimeDampening:cr}),Ia=Gu({x:sa,y:Hr});if(zt(Ia,Yt))return null;var Aa=ks({container:Dt,subject:gn,proposedScroll:Ia});return Aa?zt(Aa,Yt)?null:Aa:null},Nn=at(function(Fe){return Fe===0?0:Fe>0?1:-1}),tr=function(){var Fe=function(Dt,gn){return Dt<0?Dt:Dt>gn?Dt-gn:0};return function(He){var Dt=He.current,gn=He.max,Xn=He.change,cr=Bt(Dt,Xn),jr={x:Fe(cr.x,gn.x),y:Fe(cr.y,gn.y)};return zt(jr,Yt)?null:jr}}(),In=function(He){var Dt=He.max,gn=He.current,Xn=He.change,cr={x:Math.max(gn.x,Dt.x),y:Math.max(gn.y,Dt.y)},jr=Nn(Xn),Hr=tr({max:cr,current:gn,change:jr});return!Hr||jr.x!==0&&Hr.x===0||jr.y!==0&&Hr.y===0},di=function(He,Dt){return In({current:He.scroll.current,max:He.scroll.max,change:Dt})},oi=function(He,Dt){if(!di(He,Dt))return null;var gn=He.scroll.max,Xn=He.scroll.current;return tr({current:Xn,max:gn,change:Dt})},ki=function(He,Dt){var gn=He.frame;return gn?In({current:gn.scroll.current,max:gn.scroll.max,change:Dt}):!1},ri=function(He,Dt){var gn=He.frame;return!gn||!ki(He,Dt)?null:tr({current:gn.scroll.current,max:gn.scroll.max,change:Dt})},bi=function(Fe){var He=Fe.viewport,Dt=Fe.subject,gn=Fe.center,Xn=Fe.dragStartTime,cr=Fe.shouldUseTimeDampening,jr=an({dragStartTime:Xn,container:He.frame,subject:Dt,center:gn,shouldUseTimeDampening:cr});return jr&&di(He,jr)?jr:null},_n=function(Fe){var He=Fe.droppable,Dt=Fe.subject,gn=Fe.center,Xn=Fe.dragStartTime,cr=Fe.shouldUseTimeDampening,jr=He.frame;if(!jr)return null;var Hr=an({dragStartTime:Xn,container:jr.pageMarginBox,subject:Dt,center:gn,shouldUseTimeDampening:cr});return Hr&&ki(He,Hr)?Hr:null},Ua=function(Fe){var He=Fe.state,Dt=Fe.dragStartTime,gn=Fe.shouldUseTimeDampening,Xn=Fe.scrollWindow,cr=Fe.scrollDroppable,jr=He.current.page.borderBoxCenter,Hr=He.dimensions.draggables[He.critical.draggable.id],sa=Hr.page.marginBox;if(He.isWindowScrollAllowed){var Ia=He.viewport,Aa=bi({dragStartTime:Dt,viewport:Ia,subject:sa,center:jr,shouldUseTimeDampening:gn});if(Aa){Xn(Aa);return}}var pa=gr({center:jr,destination:qn(He.impact),droppables:He.dimensions.droppables});if(pa){var Yi=_n({dragStartTime:Dt,droppable:pa,subject:sa,center:jr,shouldUseTimeDampening:gn});Yi&&cr(pa.descriptor.id,Yi)}},va=function(Fe){var He=Fe.scrollWindow,Dt=Fe.scrollDroppable,gn=_e(He),Xn=_e(Dt),cr=null,jr=function(Aa){cr||ke(!1);var pa=cr,Yi=pa.shouldUseTimeDampening,eo=pa.dragStartTime;Ua({state:Aa,scrollWindow:gn,scrollDroppable:Xn,dragStartTime:eo,shouldUseTimeDampening:Yi})},Hr=function(Aa){Y(),cr&&ke(!1);var pa=Date.now(),Yi=!1,eo=function(){Yi=!0};Ua({state:Aa,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:eo,scrollDroppable:eo}),cr={dragStartTime:pa,shouldUseTimeDampening:Yi},z(),Yi&&jr(Aa)},sa=function(){cr&&(gn.cancel(),Xn.cancel(),cr=null)};return{start:Hr,stop:sa,scroll:jr}},Va=function(Fe){var He=Fe.move,Dt=Fe.scrollDroppable,gn=Fe.scrollWindow,Xn=function(Ia,Aa){var pa=Bt(Ia.current.client.selection,Aa);He({client:pa})},cr=function(Ia,Aa){if(!ki(Ia,Aa))return Aa;var pa=ri(Ia,Aa);if(!pa)return Dt(Ia.descriptor.id,Aa),null;var Yi=Lt(Aa,pa);Dt(Ia.descriptor.id,Yi);var eo=Lt(Aa,Yi);return eo},jr=function(Ia,Aa,pa){if(!Ia||!di(Aa,pa))return pa;var Yi=oi(Aa,pa);if(!Yi)return gn(pa),null;var eo=Lt(pa,Yi);gn(eo);var $o=Lt(pa,eo);return $o},Hr=function(Ia){var Aa=Ia.scrollJumpRequest;if(Aa){var pa=qn(Ia.impact);pa||ke(!1);var Yi=cr(Ia.dimensions.droppables[pa],Aa);if(Yi){var eo=Ia.viewport,$o=jr(Ia.isWindowScrollAllowed,eo,Yi);$o&&Xn(Ia,$o)}}};return Hr},Qi=function(Fe){var He=Fe.scrollDroppable,Dt=Fe.scrollWindow,gn=Fe.move,Xn=va({scrollWindow:Dt,scrollDroppable:He}),cr=Va({move:gn,scrollWindow:Dt,scrollDroppable:He}),jr=function(Ia){if(Ia.phase==="DRAGGING"){if(Ia.movementMode==="FLUID"){Xn.scroll(Ia);return}Ia.scrollJumpRequest&&cr(Ia)}},Hr={scroll:jr,start:Xn.start,stop:Xn.stop};return Hr},ro="data-rbd",Pe=function(){var Fe=ro+"-drag-handle";return{base:Fe,draggableId:Fe+"-draggable-id",contextId:Fe+"-context-id"}}(),Nt=function(){var Fe=ro+"-draggable";return{base:Fe,contextId:Fe+"-context-id",id:Fe+"-id"}}(),un=function(){var Fe=ro+"-droppable";return{base:Fe,contextId:Fe+"-context-id",id:Fe+"-id"}}(),xn={contextId:ro+"-scroll-container-context-id"},zn=function(He){return function(Dt){return"["+Dt+'="'+He+'"]'}},sr=function(He,Dt){return He.map(function(gn){var Xn=gn.styles[Dt];return Xn?gn.selector+" { "+Xn+" }":""}).join(" ")},Tr="pointer-events: none;",Br=function(Fe){var He=zn(Fe),Dt=function(){var Hr=` cursor: -webkit-grab; cursor: grab; `;return{selector:He(Pe.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; `,resting:Hr,dragging:Tr,dropAnimating:Hr}}}(),gn=function(){var Hr=` transition: `+Mo.outOfTheWay+`; `;return{selector:He(Nt.contextId),styles:{dragging:Hr,dropAnimating:Hr,userCancel:Hr}}}(),Xn={selector:He(un.contextId),styles:{always:"overflow-anchor: none;"}},cr={selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; `}},jr=[gn,Dt,Xn,cr];return{always:sr(jr,"always"),resting:sr(jr,"resting"),dragging:sr(jr,"dragging"),dropAnimating:sr(jr,"dropAnimating"),userCancel:sr(jr,"userCancel")}},Er=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?i.useLayoutEffect:i.useEffect,Sr=function(){var He=document.querySelector("head");return He||ke(!1),He},Vr=function(He){var Dt=document.createElement("style");return He&&Dt.setAttribute("nonce",He),Dt.type="text/css",Dt};function fi(Fe,He){var Dt=Z(function(){return Br(Fe)},[Fe]),gn=(0,i.useRef)(null),Xn=(0,i.useRef)(null),cr=J((0,he.default)(function(pa){var Yi=Xn.current;Yi||ke(!1),Yi.textContent=pa}),[]),jr=J(function(pa){var Yi=gn.current;Yi||ke(!1),Yi.textContent=pa},[]);Er(function(){!gn.current&&!Xn.current||ke(!1);var pa=Vr(He),Yi=Vr(He);return gn.current=pa,Xn.current=Yi,pa.setAttribute(ro+"-always",Fe),Yi.setAttribute(ro+"-dynamic",Fe),Sr().appendChild(pa),Sr().appendChild(Yi),jr(Dt.always),cr(Dt.resting),function(){var eo=function(Cs){var vs=Cs.current;vs||ke(!1),Sr().removeChild(vs),Cs.current=null};eo(gn),eo(Xn)}},[He,jr,cr,Dt.always,Dt.resting,Fe]);var Hr=J(function(){return cr(Dt.dragging)},[cr,Dt.dragging]),sa=J(function(pa){if(pa==="DROP"){cr(Dt.dropAnimating);return}cr(Dt.userCancel)},[cr,Dt.dropAnimating,Dt.userCancel]),Ia=J(function(){Xn.current&&cr(Dt.resting)},[cr,Dt.resting]),Aa=Z(function(){return{dragging:Hr,dropping:sa,resting:Ia}},[Hr,sa,Ia]);return Aa}var xr=function(Fe){return Fe&&Fe.ownerDocument?Fe.ownerDocument.defaultView:window};function Wr(Fe){return Fe instanceof xr(Fe).HTMLElement}function ti(Fe,He){var Dt="["+Pe.contextId+'="'+Fe+'"]',gn=Tn(document.querySelectorAll(Dt));if(!gn.length)return null;var Xn=on(gn,function(cr){return cr.getAttribute(Pe.draggableId)===He});return!Xn||!Wr(Xn)?null:Xn}function xi(Fe){var He=(0,i.useRef)({}),Dt=(0,i.useRef)(null),gn=(0,i.useRef)(null),Xn=(0,i.useRef)(!1),cr=J(function(Yi,eo){var $o={id:Yi,focus:eo};return He.current[Yi]=$o,function(){var vs=He.current,Rs=vs[Yi];Rs!==$o&&delete vs[Yi]}},[]),jr=J(function(Yi){var eo=ti(Fe,Yi);eo&&eo!==document.activeElement&&eo.focus()},[Fe]),Hr=J(function(Yi,eo){Dt.current===Yi&&(Dt.current=eo)},[]),sa=J(function(){gn.current||Xn.current&&(gn.current=requestAnimationFrame(function(){gn.current=null;var Yi=Dt.current;Yi&&jr(Yi)}))},[jr]),Ia=J(function(Yi){Dt.current=null;var eo=document.activeElement;eo&&eo.getAttribute(Pe.draggableId)===Yi&&(Dt.current=Yi)},[]);Er(function(){return Xn.current=!0,function(){Xn.current=!1;var Yi=gn.current;Yi&&cancelAnimationFrame(Yi)}},[]);var Aa=Z(function(){return{register:cr,tryRecordFocus:Ia,tryRestoreFocusRecorded:sa,tryShiftRecord:Hr}},[cr,Ia,sa,Hr]);return Aa}function Gi(){var Fe={draggables:{},droppables:{}},He=[];function Dt(pa){return He.push(pa),function(){var eo=He.indexOf(pa);eo!==-1&&He.splice(eo,1)}}function gn(pa){He.length&&He.forEach(function(Yi){return Yi(pa)})}function Xn(pa){return Fe.draggables[pa]||null}function cr(pa){var Yi=Xn(pa);return Yi||ke(!1),Yi}var jr={register:function(Yi){Fe.draggables[Yi.descriptor.id]=Yi,gn({type:"ADDITION",value:Yi})},update:function(Yi,eo){var $o=Fe.draggables[eo.descriptor.id];$o&&$o.uniqueId===Yi.uniqueId&&(delete Fe.draggables[eo.descriptor.id],Fe.draggables[Yi.descriptor.id]=Yi)},unregister:function(Yi){var eo=Yi.descriptor.id,$o=Xn(eo);$o&&Yi.uniqueId===$o.uniqueId&&(delete Fe.draggables[eo],gn({type:"REMOVAL",value:Yi}))},getById:cr,findById:Xn,exists:function(Yi){return!!Xn(Yi)},getAllByType:function(Yi){return Ke(Fe.draggables).filter(function(eo){return eo.descriptor.type===Yi})}};function Hr(pa){return Fe.droppables[pa]||null}function sa(pa){var Yi=Hr(pa);return Yi||ke(!1),Yi}var Ia={register:function(Yi){Fe.droppables[Yi.descriptor.id]=Yi},unregister:function(Yi){var eo=Hr(Yi.descriptor.id);eo&&Yi.uniqueId===eo.uniqueId&&delete Fe.droppables[Yi.descriptor.id]},getById:sa,findById:Hr,exists:function(Yi){return!!Hr(Yi)},getAllByType:function(Yi){return Ke(Fe.droppables).filter(function(eo){return eo.descriptor.type===Yi})}};function Aa(){Fe.draggables={},Fe.droppables={},He.length=0}return{draggable:jr,droppable:Ia,subscribe:Dt,clean:Aa}}function _i(){var Fe=Z(Gi,[]);return(0,i.useEffect)(function(){return function(){requestAnimationFrame(Fe.clean)}},[Fe]),Fe}var da=i.createContext(null),Sa=function(){var Fe=document.body;return Fe||ke(!1),Fe},Pa={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},oo=function(He){return"rbd-announcement-"+He};function mo(Fe){var He=Z(function(){return oo(Fe)},[Fe]),Dt=(0,i.useRef)(null);(0,i.useEffect)(function(){var cr=document.createElement("div");return Dt.current=cr,cr.id=He,cr.setAttribute("aria-live","assertive"),cr.setAttribute("aria-atomic","true"),(0,u.Z)(cr.style,Pa),Sa().appendChild(cr),function(){setTimeout(function(){var sa=Sa();sa.contains(cr)&&sa.removeChild(cr),cr===Dt.current&&(Dt.current=null)})}},[He]);var gn=J(function(Xn){var cr=Dt.current;if(cr){cr.textContent=Xn;return}},[]);return gn}var Ga=0,no={separator:"::"};function ca(){Ga=0}function co(Fe,He){return He===void 0&&(He=no),Z(function(){return""+Fe+He.separator+Ga++},[He.separator,Fe])}function Yo(Fe){var He=Fe.contextId,Dt=Fe.uniqueId;return"rbd-hidden-text-"+He+"-"+Dt}function bo(Fe){var He=Fe.contextId,Dt=Fe.text,gn=co("hidden-text",{separator:"-"}),Xn=Z(function(){return Yo({contextId:He,uniqueId:gn})},[gn,He]);return(0,i.useEffect)(function(){var jr=document.createElement("div");return jr.id=Xn,jr.textContent=Dt,jr.style.display="none",Sa().appendChild(jr),function(){var sa=Sa();sa.contains(jr)&&sa.removeChild(jr)}},[Xn,Dt]),Xn}var Ea=i.createContext(null),ko={react:"^16.8.5 || ^17.0.0 || ^18.0.0","react-dom":"^16.8.5 || ^17.0.0 || ^18.0.0"},Es=/(\d+)\.(\d+)\.(\d+)/,Ts=function(He){var Dt=Es.exec(He);Dt==null&&ke(!1);var gn=Number(Dt[1]),Xn=Number(Dt[2]),cr=Number(Dt[3]);return{major:gn,minor:Xn,patch:cr,raw:He}},rs=function(He,Dt){return Dt.major>He.major?!0:Dt.major<He.major?!1:Dt.minor>He.minor?!0:Dt.minor<He.minor?!1:Dt.patch>=He.patch},ls=function(Fe,He){var Dt=Ts(Fe),gn=Ts(He);rs(Dt,gn)},Ss=` We expect a html5 doctype: <!doctype html> This is to ensure consistent browser layout and measurement More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md `,cs=function(Fe){var He=Fe.doctype;He&&(He.name.toLowerCase(),He.publicId)};function Do(Fe){}function fs(Fe,He){}function is(){fs(function(){ls(ko.react,i.version),cs(document)},[])}function Os(Fe){var He=(0,i.useRef)(Fe);return(0,i.useEffect)(function(){He.current=Fe}),He}function Qs(){var Fe=null;function He(){return!!Fe}function Dt(jr){return jr===Fe}function gn(jr){Fe&&ke(!1);var Hr={abandon:jr};return Fe=Hr,Hr}function Xn(){Fe||ke(!1),Fe=null}function cr(){Fe&&(Fe.abandon(),Xn())}return{isClaimed:He,isActive:Dt,claim:gn,release:Xn,tryAbandon:cr}}var du=9,Yu=13,$u=27,Xu=32,su=33,Pu=34,Lu=35,hu=36,Js=37,ys=38,qo=39,Ps=40,Ws,Qo=(Ws={},Ws[Yu]=!0,Ws[du]=!0,Ws),ds=function(Fe){Qo[Fe.keyCode]&&Fe.preventDefault()},zu=function(){var Fe="visibilitychange";if(typeof document>"u")return Fe;var He=[Fe,"ms"+Fe,"webkit"+Fe,"moz"+Fe,"o"+Fe],Dt=on(He,function(gn){return"on"+gn in document});return Dt||Fe}(),tu=0,Ou=5;function Hs(Fe,He){return Math.abs(He.x-Fe.x)>=Ou||Math.abs(He.y-Fe.y)>=Ou}var pu={type:"IDLE"};function ku(Fe){var He=Fe.cancel,Dt=Fe.completed,gn=Fe.getPhase,Xn=Fe.setPhase;return[{eventName:"mousemove",fn:function(jr){var Hr=jr.button,sa=jr.clientX,Ia=jr.clientY;if(Hr===tu){var Aa={x:sa,y:Ia},pa=gn();if(pa.type==="DRAGGING"){jr.preventDefault(),pa.actions.move(Aa);return}pa.type!=="PENDING"&&ke(!1);var Yi=pa.point;if(Hs(Yi,Aa)){jr.preventDefault();var eo=pa.actions.fluidLift(Aa);Xn({type:"DRAGGING",actions:eo})}}}},{eventName:"mouseup",fn:function(jr){var Hr=gn();if(Hr.type!=="DRAGGING"){He();return}jr.preventDefault(),Hr.actions.drop({shouldBlockNextClick:!0}),Dt()}},{eventName:"mousedown",fn:function(jr){gn().type==="DRAGGING"&&jr.preventDefault(),He()}},{eventName:"keydown",fn:function(jr){var Hr=gn();if(Hr.type==="PENDING"){He();return}if(jr.keyCode===$u){jr.preventDefault(),He();return}ds(jr)}},{eventName:"resize",fn:He},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){gn().type==="PENDING"&&He()}},{eventName:"webkitmouseforcedown",fn:function(jr){var Hr=gn();if(Hr.type==="IDLE"&&ke(!1),Hr.actions.shouldRespectForcePress()){He();return}jr.preventDefault()}},{eventName:zu,fn:He}]}function Nu(Fe){var He=(0,i.useRef)(pu),Dt=(0,i.useRef)(At),gn=Z(function(){return{eventName:"mousedown",fn:function(pa){if(!pa.defaultPrevented&&pa.button===tu&&!(pa.ctrlKey||pa.metaKey||pa.shiftKey||pa.altKey)){var Yi=Fe.findClosestDraggableId(pa);if(Yi){var eo=Fe.tryGetLock(Yi,jr,{sourceEvent:pa});if(eo){pa.preventDefault();var $o={x:pa.clientX,y:pa.clientY};Dt.current(),Ia(eo,$o)}}}}}},[Fe]),Xn=Z(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(pa){if(!pa.defaultPrevented){var Yi=Fe.findClosestDraggableId(pa);if(Yi){var eo=Fe.findOptionsForDraggable(Yi);eo&&(eo.shouldRespectForcePress||Fe.canGetLock(Yi)&&pa.preventDefault())}}}}},[Fe]),cr=J(function(){var pa={passive:!1,capture:!0};Dt.current=Ce(window,[Xn,gn],pa)},[Xn,gn]),jr=J(function(){var Aa=He.current;Aa.type!=="IDLE"&&(He.current=pu,Dt.current(),cr())},[cr]),Hr=J(function(){var Aa=He.current;jr(),Aa.type==="DRAGGING"&&Aa.actions.cancel({shouldBlockNextClick:!0}),Aa.type==="PENDING"&&Aa.actions.abort()},[jr]),sa=J(function(){var pa={capture:!0,passive:!1},Yi=ku({cancel:Hr,completed:jr,getPhase:function(){return He.current},setPhase:function($o){He.current=$o}});Dt.current=Ce(window,Yi,pa)},[Hr,jr]),Ia=J(function(pa,Yi){He.current.type!=="IDLE"&&ke(!1),He.current={type:"PENDING",point:Yi,actions:pa},sa()},[sa]);Er(function(){return cr(),function(){Dt.current()}},[cr])}var Fu;function Ku(){}var sl=(Fu={},Fu[Pu]=!0,Fu[su]=!0,Fu[hu]=!0,Fu[Lu]=!0,Fu);function lu(Fe,He){function Dt(){He(),Fe.cancel()}function gn(){He(),Fe.drop()}return[{eventName:"keydown",fn:function(cr){if(cr.keyCode===$u){cr.preventDefault(),Dt();return}if(cr.keyCode===Xu){cr.preventDefault(),gn();return}if(cr.keyCode===Ps){cr.preventDefault(),Fe.moveDown();return}if(cr.keyCode===ys){cr.preventDefault(),Fe.moveUp();return}if(cr.keyCode===qo){cr.preventDefault(),Fe.moveRight();return}if(cr.keyCode===Js){cr.preventDefault(),Fe.moveLeft();return}if(sl[cr.keyCode]){cr.preventDefault();return}ds(cr)}},{eventName:"mousedown",fn:Dt},{eventName:"mouseup",fn:Dt},{eventName:"click",fn:Dt},{eventName:"touchstart",fn:Dt},{eventName:"resize",fn:Dt},{eventName:"wheel",fn:Dt,options:{passive:!0}},{eventName:zu,fn:Dt}]}function Tu(Fe){var He=(0,i.useRef)(Ku),Dt=Z(function(){return{eventName:"keydown",fn:function(cr){if(cr.defaultPrevented||cr.keyCode!==Xu)return;var jr=Fe.findClosestDraggableId(cr);if(!jr)return;var Hr=Fe.tryGetLock(jr,Aa,{sourceEvent:cr});if(!Hr)return;cr.preventDefault();var sa=!0,Ia=Hr.snapLift();He.current();function Aa(){sa||ke(!1),sa=!1,He.current(),gn()}He.current=Ce(window,lu(Ia,Aa),{capture:!0,passive:!1})}}},[Fe]),gn=J(function(){var cr={passive:!1,capture:!0};He.current=Ce(window,[Dt],cr)},[Dt]);Er(function(){return gn(),function(){He.current()}},[gn])}var Vs={type:"IDLE"},Ds=120,Ks=.15;function nu(Fe){var He=Fe.cancel,Dt=Fe.getPhase;return[{eventName:"orientationchange",fn:He},{eventName:"resize",fn:He},{eventName:"contextmenu",fn:function(Xn){Xn.preventDefault()}},{eventName:"keydown",fn:function(Xn){if(Dt().type!=="DRAGGING"){He();return}Xn.keyCode===$u&&Xn.preventDefault(),He()}},{eventName:zu,fn:He}]}function Ju(Fe){var He=Fe.cancel,Dt=Fe.completed,gn=Fe.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(cr){var jr=gn();if(jr.type!=="DRAGGING"){He();return}jr.hasMoved=!0;var Hr=cr.touches[0],sa=Hr.clientX,Ia=Hr.clientY,Aa={x:sa,y:Ia};cr.preventDefault(),jr.actions.move(Aa)}},{eventName:"touchend",fn:function(cr){var jr=gn();if(jr.type!=="DRAGGING"){He();return}cr.preventDefault(),jr.actions.drop({shouldBlockNextClick:!0}),Dt()}},{eventName:"touchcancel",fn:function(cr){if(gn().type!=="DRAGGING"){He();return}cr.preventDefault(),He()}},{eventName:"touchforcechange",fn:function(cr){var jr=gn();jr.type==="IDLE"&&ke(!1);var Hr=cr.touches[0];if(Hr){var sa=Hr.force>=Ks;if(sa){var Ia=jr.actions.shouldRespectForcePress();if(jr.type==="PENDING"){Ia&&He();return}if(Ia){if(jr.hasMoved){cr.preventDefault();return}He();return}cr.preventDefault()}}}},{eventName:zu,fn:He}]}function nl(Fe){var He=(0,i.useRef)(Vs),Dt=(0,i.useRef)(At),gn=J(function(){return He.current},[]),Xn=J(function(eo){He.current=eo},[]),cr=Z(function(){return{eventName:"touchstart",fn:function(eo){if(!eo.defaultPrevented){var $o=Fe.findClosestDraggableId(eo);if($o){var Cs=Fe.tryGetLock($o,Hr,{sourceEvent:eo});if(Cs){var vs=eo.touches[0],Rs=vs.clientX,Eu=vs.clientY,_u={x:Rs,y:Eu};Dt.current(),pa(Cs,_u)}}}}}},[Fe]),jr=J(function(){var eo={capture:!0,passive:!1};Dt.current=Ce(window,[cr],eo)},[cr]),Hr=J(function(){var Yi=He.current;Yi.type!=="IDLE"&&(Yi.type==="PENDING"&&clearTimeout(Yi.longPressTimerId),Xn(Vs),Dt.current(),jr())},[jr,Xn]),sa=J(function(){var Yi=He.current;Hr(),Yi.type==="DRAGGING"&&Yi.actions.cancel({shouldBlockNextClick:!0}),Yi.type==="PENDING"&&Yi.actions.abort()},[Hr]),Ia=J(function(){var eo={capture:!0,passive:!1},$o={cancel:sa,completed:Hr,getPhase:gn},Cs=Ce(window,Ju($o),eo),vs=Ce(window,nu($o),eo);Dt.current=function(){Cs(),vs()}},[sa,gn,Hr]),Aa=J(function(){var eo=gn();eo.type!=="PENDING"&&ke(!1);var $o=eo.actions.fluidLift(eo.point);Xn({type:"DRAGGING",actions:$o,hasMoved:!1})},[gn,Xn]),pa=J(function(eo,$o){gn().type!=="IDLE"&&ke(!1);var Cs=setTimeout(Aa,Ds);Xn({type:"PENDING",point:$o,actions:eo,longPressTimerId:Cs}),Ia()},[Ia,gn,Xn,Aa]);Er(function(){return jr(),function(){Dt.current();var $o=gn();$o.type==="PENDING"&&(clearTimeout($o.longPressTimerId),Xn(Vs))}},[gn,jr,Xn]),Er(function(){var eo=Ce(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return eo},[])}function ec(Fe){}var Mc={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function hc(Fe,He){if(He==null)return!1;var Dt=!!Mc[He.tagName.toLowerCase()];if(Dt)return!0;var gn=He.getAttribute("contenteditable");return gn==="true"||gn===""?!0:He===Fe?!1:hc(Fe,He.parentElement)}function Ol(Fe,He){var Dt=He.target;return Wr(Dt)?hc(Fe,Dt):!1}var Nl=function(Fe){return L(Fe.getBoundingClientRect()).center};function wl(Fe){return Fe instanceof xr(Fe).Element}var Fl=function(){var Fe="matches";if(typeof document>"u")return Fe;var He=[Fe,"msMatchesSelector","webkitMatchesSelector"],Dt=on(He,function(gn){return gn in Element.prototype});return Dt||Fe}();function rc(Fe,He){return Fe==null?null:Fe[Fl](He)?Fe:rc(Fe.parentElement,He)}function Ic(Fe,He){return Fe.closest?Fe.closest(He):rc(Fe,He)}function kl(Fe){return"["+Pe.contextId+'="'+Fe+'"]'}function Gc(Fe,He){var Dt=He.target;if(!wl(Dt))return null;var gn=kl(Fe),Xn=Ic(Dt,gn);return!Xn||!Wr(Xn)?null:Xn}function $l(Fe,He){var Dt=Gc(Fe,He);return Dt?Dt.getAttribute(Pe.draggableId):null}function Ml(Fe,He){var Dt="["+Nt.contextId+'="'+Fe+'"]',gn=Tn(document.querySelectorAll(Dt)),Xn=on(gn,function(cr){return cr.getAttribute(Nt.id)===He});return!Xn||!Wr(Xn)?null:Xn}function zc(Fe){Fe.preventDefault()}function tf(Fe){var He=Fe.expected,Dt=Fe.phase,gn=Fe.isLockActive,Xn=Fe.shouldWarn;return!(!gn()||He!==Dt)}function _c(Fe){var He=Fe.lockAPI,Dt=Fe.store,gn=Fe.registry,Xn=Fe.draggableId;if(He.isClaimed())return!1;var cr=gn.draggable.findById(Xn);return!(!cr||!cr.options.isEnabled||!Ht(Dt.getState(),Xn))}function Cc(Fe){var He=Fe.lockAPI,Dt=Fe.contextId,gn=Fe.store,Xn=Fe.registry,cr=Fe.draggableId,jr=Fe.forceSensorStop,Hr=Fe.sourceEvent,sa=_c({lockAPI:He,store:gn,registry:Xn,draggableId:cr});if(!sa)return null;var Ia=Xn.draggable.getById(cr),Aa=Ml(Dt,Ia.descriptor.id);if(!Aa||Hr&&!Ia.options.canDragInteractiveElements&&Ol(Aa,Hr))return null;var pa=He.claim(jr||At),Yi="PRE_DRAG";function eo(){return Ia.options.shouldRespectForcePress}function $o(){return He.isActive(pa)}function Cs(Yl,cu){tf({expected:Yl,phase:Yi,isLockActive:$o,shouldWarn:!0})&&gn.dispatch(cu())}var vs=Cs.bind(null,"DRAGGING");function Rs(Yl){function cu(){He.release(),Yi="COMPLETED"}Yi!=="PRE_DRAG"&&(cu(),Yi!=="PRE_DRAG"&&ke(!1)),gn.dispatch(mi(Yl.liftActionArgs)),Yi="DRAGGING";function bs(wc,Zc){if(Zc===void 0&&(Zc={shouldBlockNextClick:!1}),Yl.cleanup(),Zc.shouldBlockNextClick){var Af=Ce(window,[{eventName:"click",fn:zc,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(Af)}cu(),gn.dispatch(tn({reason:wc}))}return(0,u.Z)({isActive:function(){return tf({expected:"DRAGGING",phase:Yi,isLockActive:$o,shouldWarn:!1})},shouldRespectForcePress:eo,drop:function(Zc){return bs("DROP",Zc)},cancel:function(Zc){return bs("CANCEL",Zc)}},Yl.actions)}function Eu(Yl){var cu=_e(function(wc){vs(function(){return Uo({client:wc})})}),bs=Rs({liftActionArgs:{id:cr,clientSelection:Yl,movementMode:"FLUID"},cleanup:function(){return cu.cancel()},actions:{move:cu}});return(0,u.Z)({},bs,{move:cu})}function _u(){var Yl={moveUp:function(){return vs(Ar)},moveRight:function(){return vs(ur)},moveDown:function(){return vs(Kr)},moveLeft:function(){return vs(Gr)}};return Rs({liftActionArgs:{id:cr,clientSelection:Nl(Aa),movementMode:"SNAP"},cleanup:At,actions:Yl})}function ju(){var Yl=tf({expected:"PRE_DRAG",phase:Yi,isLockActive:$o,shouldWarn:!0});Yl&&He.release()}var Cl={isActive:function(){return tf({expected:"PRE_DRAG",phase:Yi,isLockActive:$o,shouldWarn:!1})},shouldRespectForcePress:eo,fluidLift:Eu,snapLift:_u,abort:ju};return Cl}var of=[Nu,Tu,nl];function Qc(Fe){var He=Fe.contextId,Dt=Fe.store,gn=Fe.registry,Xn=Fe.customSensors,cr=Fe.enableDefaultSensors,jr=[].concat(cr?of:[],Xn||[]),Hr=(0,i.useState)(function(){return Qs()})[0],sa=J(function(Eu,_u){Eu.isDragging&&!_u.isDragging&&Hr.tryAbandon()},[Hr]);Er(function(){var Eu=Dt.getState(),_u=Dt.subscribe(function(){var ju=Dt.getState();sa(Eu,ju),Eu=ju});return _u},[Hr,Dt,sa]),Er(function(){return Hr.tryAbandon},[Hr.tryAbandon]);var Ia=J(function(Rs){return _c({lockAPI:Hr,registry:gn,store:Dt,draggableId:Rs})},[Hr,gn,Dt]),Aa=J(function(Rs,Eu,_u){return Cc({lockAPI:Hr,registry:gn,contextId:He,store:Dt,draggableId:Rs,forceSensorStop:Eu,sourceEvent:_u&&_u.sourceEvent?_u.sourceEvent:null})},[He,Hr,gn,Dt]),pa=J(function(Rs){return $l(He,Rs)},[He]),Yi=J(function(Rs){var Eu=gn.draggable.findById(Rs);return Eu?Eu.options:null},[gn.draggable]),eo=J(function(){Hr.isClaimed()&&(Hr.tryAbandon(),Dt.getState().phase!=="IDLE"&&Dt.dispatch(Pi()))},[Hr,Dt]),$o=J(Hr.isClaimed,[Hr]),Cs=Z(function(){return{canGetLock:Ia,tryGetLock:Aa,findClosestDraggableId:pa,findOptionsForDraggable:Yi,tryReleaseLock:eo,isLockClaimed:$o}},[Ia,Aa,pa,Yi,eo,$o]);ec(jr);for(var vs=0;vs<jr.length;vs++)jr[vs](Cs)}var sc=function(He){return{onBeforeCapture:He.onBeforeCapture,onBeforeDragStart:He.onBeforeDragStart,onDragStart:He.onDragStart,onDragEnd:He.onDragEnd,onDragUpdate:He.onDragUpdate}};function ul(Fe){return Fe.current||ke(!1),Fe.current}function fc(Fe){var He=Fe.contextId,Dt=Fe.setCallbacks,gn=Fe.sensors,Xn=Fe.nonce,cr=Fe.dragHandleUsageInstructions,jr=(0,i.useRef)(null);is();var Hr=Os(Fe),sa=J(function(){return sc(Hr.current)},[Hr]),Ia=mo(He),Aa=bo({contextId:He,text:cr}),pa=fi(He,Xn),Yi=J(function(wc){ul(jr).dispatch(wc)},[]),eo=Z(function(){return I({publishWhileDragging:na,updateDroppableScroll:$a,updateDroppableIsEnabled:Ha,updateDroppableIsCombineEnabled:Eo,collectionStarting:ji},Yi)},[Yi]),$o=_i(),Cs=Z(function(){return gt($o,eo)},[$o,eo]),vs=Z(function(){return Qi((0,u.Z)({scrollWindow:nn,scrollDroppable:Cs.scrollDroppable},I({move:Uo},Yi)))},[Cs.scrollDroppable,Yi]),Rs=xi(He),Eu=Z(function(){return Pr({announce:Ia,autoScroller:vs,dimensionMarshal:Cs,focusMarshal:Rs,getResponders:sa,styleMarshal:pa})},[Ia,vs,Cs,Rs,sa,pa]);jr.current=Eu;var _u=J(function(){var wc=ul(jr),Zc=wc.getState();Zc.phase!=="IDLE"&&wc.dispatch(Pi())},[]),ju=J(function(){var wc=ul(jr).getState();return wc.isDragging||wc.phase==="DROP_ANIMATING"},[]),Cl=Z(function(){return{isDragging:ju,tryAbort:_u}},[ju,_u]);Dt(Cl);var Yl=J(function(wc){return Ht(ul(jr).getState(),wc)},[]),cu=J(function(){return ii(ul(jr).getState())},[]),bs=Z(function(){return{marshal:Cs,focus:Rs,contextId:He,canLift:Yl,isMovementAllowed:cu,dragHandleUsageInstructionsId:Aa,registry:$o}},[He,Cs,Aa,Rs,Yl,cu,$o]);return Qc({contextId:He,store:Eu,registry:$o,customSensors:gn,enableDefaultSensors:Fe.enableDefaultSensors!==!1}),(0,i.useEffect)(function(){return _u},[_u]),i.createElement(Ea.Provider,{value:bs},i.createElement(W.Provider,{context:da,store:Eu},Fe.children))}var lf=0;function vc(){lf=0}function yl(){return Z(function(){return""+lf++},[])}function cf(){vc(),ca()}function _l(Fe){var He=yl(),Dt=Fe.dragHandleUsageInstructions||hn.dragHandleUsageInstructions;return i.createElement(Oe,null,function(gn){return i.createElement(fc,{nonce:Fe.nonce,contextId:He,setCallbacks:gn,dragHandleUsageInstructions:Dt,enableDefaultSensors:Fe.enableDefaultSensors,sensors:Fe.sensors,onBeforeCapture:Fe.onBeforeCapture,onBeforeDragStart:Fe.onBeforeDragStart,onDragStart:Fe.onDragStart,onDragUpdate:Fe.onDragUpdate,onDragEnd:Fe.onDragEnd},Fe.children)})}var qu=function(He){return function(Dt){return He===Dt}},ic=qu("scroll"),jl=qu("auto"),lc=qu("visible"),Rl=function(He,Dt){return Dt(He.overflowX)||Dt(He.overflowY)},al=function(He,Dt){return Dt(He.overflowX)&&Dt(He.overflowY)},ll=function(He){var Dt=window.getComputedStyle(He),gn={overflowX:Dt.overflowX,overflowY:Dt.overflowY};return Rl(gn,ic)||Rl(gn,jl)},Wl=function(){return!1;var He,Dt,gn,Xn},dc=function Fe(He){return He==null?null:He===document.body?Wl()?He:null:He===document.documentElement?null:ll(He)?He:Fe(He.parentElement)},Bl=function(Fe){if(Fe)var He=dc(Fe.parentElement)},Pl=function(Fe){return{x:Fe.scrollLeft,y:Fe.scrollTop}},Ll=function Fe(He){if(!He)return!1;var Dt=window.getComputedStyle(He);return Dt.position==="fixed"?!0:Fe(He.parentElement)},Oc=function(Fe){var He=dc(Fe),Dt=Ll(Fe);return{closestScrollable:He,isFixedOnPage:Dt}},kc=function(Fe){var He=Fe.descriptor,Dt=Fe.isEnabled,gn=Fe.isCombineEnabled,Xn=Fe.isFixedOnPage,cr=Fe.direction,jr=Fe.client,Hr=Fe.page,sa=Fe.closest,Ia=function(){if(!sa)return null;var eo=sa.scrollSize,$o=sa.client,Cs=$n({scrollHeight:eo.scrollHeight,scrollWidth:eo.scrollWidth,height:$o.paddingBox.height,width:$o.paddingBox.width});return{pageMarginBox:sa.page.marginBox,frameClient:$o,scrollSize:eo,shouldClipSubject:sa.shouldClipSubject,scroll:{initial:sa.scroll,current:sa.scroll,max:Cs,diff:{value:Yt,displacement:Yt}}}}(),Aa=cr==="vertical"?Qr:ni,pa=st({page:Hr,withPlaceholder:null,axis:Aa,frame:Ia}),Yi={descriptor:He,isCombineEnabled:gn,isFixedOnPage:Xn,axis:Aa,isEnabled:Dt,client:jr,page:Hr,frame:Ia,subject:pa};return Yi},sf=function(He,Dt){var gn=Se(He);if(!Dt||He!==Dt)return gn;var Xn=gn.paddingBox.top-Dt.scrollTop,cr=gn.paddingBox.left-Dt.scrollLeft,jr=Xn+Dt.scrollHeight,Hr=cr+Dt.scrollWidth,sa={top:Xn,right:Hr,bottom:jr,left:cr},Ia=$(sa,gn.border),Aa=pe({borderBox:Ia,margin:gn.margin,border:gn.border,padding:gn.padding});return Aa},Bc=function(Fe){var He=Fe.ref,Dt=Fe.descriptor,gn=Fe.env,Xn=Fe.windowScroll,cr=Fe.direction,jr=Fe.isDropDisabled,Hr=Fe.isCombineEnabled,sa=Fe.shouldClipSubject,Ia=gn.closestScrollable,Aa=sf(He,Ia),pa=ie(Aa,Xn),Yi=function(){if(!Ia)return null;var $o=Se(Ia),Cs={scrollHeight:Ia.scrollHeight,scrollWidth:Ia.scrollWidth};return{client:$o,page:ie($o,Xn),scroll:Pl(Ia),scrollSize:Cs,shouldClipSubject:sa}}(),eo=kc({descriptor:Dt,isEnabled:!jr,isCombineEnabled:Hr,isFixedOnPage:gn.isFixedOnPage,direction:cr,client:Aa,page:pa,closest:Yi});return eo},Ef={passive:!1},Sf={passive:!0},bc=function(Fe){return Fe.shouldPublishImmediately?Ef:Sf};function yf(Fe){var He=(0,i.useContext)(Fe);return He||ke(!1),He}var xc=function(He){return He&&He.env.closestScrollable||null};function Mf(Fe){var He=(0,i.useRef)(null),Dt=yf(Ea),gn=co("droppable"),Xn=Dt.registry,cr=Dt.marshal,jr=Os(Fe),Hr=Z(function(){return{id:Fe.droppableId,type:Fe.type,mode:Fe.mode}},[Fe.droppableId,Fe.mode,Fe.type]),sa=(0,i.useRef)(Hr),Ia=Z(function(){return(0,he.default)(function(ju,Cl){He.current||ke(!1);var Yl={x:ju,y:Cl};cr.updateDroppableScroll(Hr.id,Yl)})},[Hr.id,cr]),Aa=J(function(){var ju=He.current;return!ju||!ju.env.closestScrollable?Yt:Pl(ju.env.closestScrollable)},[]),pa=J(function(){var ju=Aa();Ia(ju.x,ju.y)},[Aa,Ia]),Yi=Z(function(){return _e(pa)},[pa]),eo=J(function(){var ju=He.current,Cl=xc(ju);ju&&Cl||ke(!1);var Yl=ju.scrollOptions;if(Yl.shouldPublishImmediately){pa();return}Yi()},[Yi,pa]),$o=J(function(ju,Cl){He.current&&ke(!1);var Yl=jr.current,cu=Yl.getDroppableRef();cu||ke(!1);var bs=Oc(cu),wc={ref:cu,descriptor:Hr,env:bs,scrollOptions:Cl};He.current=wc;var Zc=Bc({ref:cu,descriptor:Hr,env:bs,windowScroll:ju,direction:Yl.direction,isDropDisabled:Yl.isDropDisabled,isCombineEnabled:Yl.isCombineEnabled,shouldClipSubject:!Yl.ignoreContainerClipping}),Af=bs.closestScrollable;return Af&&(Af.setAttribute(xn.contextId,Dt.contextId),Af.addEventListener("scroll",eo,bc(wc.scrollOptions))),Zc},[Dt.contextId,Hr,eo,jr]),Cs=J(function(){var ju=He.current,Cl=xc(ju);return ju&&Cl||ke(!1),Pl(Cl)},[]),vs=J(function(){var ju=He.current;ju||ke(!1);var Cl=xc(ju);He.current=null,Cl&&(Yi.cancel(),Cl.removeAttribute(xn.contextId),Cl.removeEventListener("scroll",eo,bc(ju.scrollOptions)))},[eo,Yi]),Rs=J(function(ju){var Cl=He.current;Cl||ke(!1);var Yl=xc(Cl);Yl||ke(!1),Yl.scrollTop+=ju.y,Yl.scrollLeft+=ju.x},[]),Eu=Z(function(){return{getDimensionAndWatchScroll:$o,getScrollWhileDragging:Cs,dragStopped:vs,scroll:Rs}},[vs,$o,Cs,Rs]),_u=Z(function(){return{uniqueId:gn,descriptor:Hr,callbacks:Eu}},[Eu,Hr,gn]);Er(function(){return sa.current=_u.descriptor,Xn.droppable.register(_u),function(){He.current&&vs(),Xn.droppable.unregister(_u)}},[Eu,Hr,vs,_u,cr,Xn.droppable]),Er(function(){He.current&&cr.updateDroppableIsEnabled(sa.current.id,!Fe.isDropDisabled)},[Fe.isDropDisabled,cr]),Er(function(){He.current&&cr.updateDroppableIsCombineEnabled(sa.current.id,Fe.isCombineEnabled)},[Fe.isCombineEnabled,cr])}function Bu(){}var vl={width:0,height:0,margin:rn},Qu=function(He){var Dt=He.isAnimatingOpenOnMount,gn=He.placeholder,Xn=He.animate;return Dt||Xn==="close"?vl:{height:gn.client.borderBox.height,width:gn.client.borderBox.width,margin:gn.client.margin}},Vl=function(He){var Dt=He.isAnimatingOpenOnMount,gn=He.placeholder,Xn=He.animate,cr=Qu({isAnimatingOpenOnMount:Dt,placeholder:gn,animate:Xn});return{display:gn.display,boxSizing:"border-box",width:cr.width,height:cr.height,marginTop:cr.margin.top,marginRight:cr.margin.right,marginBottom:cr.margin.bottom,marginLeft:cr.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Xn!=="none"?Mo.placeholder:null}};function Ul(Fe){var He=(0,i.useRef)(null),Dt=J(function(){He.current&&(clearTimeout(He.current),He.current=null)},[]),gn=Fe.animate,Xn=Fe.onTransitionEnd,cr=Fe.onClose,jr=Fe.contextId,Hr=(0,i.useState)(Fe.animate==="open"),sa=Hr[0],Ia=Hr[1];(0,i.useEffect)(function(){return sa?gn!=="open"?(Dt(),Ia(!1),Bu):He.current?Bu:(He.current=setTimeout(function(){He.current=null,Ia(!1)}),Dt):Bu},[gn,sa,Dt]);var Aa=J(function(Yi){Yi.propertyName==="height"&&(Xn(),gn==="close"&&cr())},[gn,cr,Xn]),pa=Vl({isAnimatingOpenOnMount:sa,animate:Fe.animate,placeholder:Fe.placeholder});return i.createElement(Fe.placeholder.tagName,{style:pa,"data-rbd-placeholder-context-id":jr,onTransitionEnd:Aa,ref:Fe.innerRef})}var gs=i.memo(Ul),pc=i.createContext(null);function Hc(Fe){Fe&&Wr(Fe)||ke(!1)}function bf(Fe){return typeof Fe=="boolean"}function Kc(Fe,He){He.forEach(function(Dt){return Dt(Fe)})}var sd=[function(He){var Dt=He.props;Dt.droppableId||ke(!1),typeof Dt.droppableId!="string"&&ke(!1)},function(He){var Dt=He.props;bf(Dt.isDropDisabled)||ke(!1),bf(Dt.isCombineEnabled)||ke(!1),bf(Dt.ignoreContainerClipping)||ke(!1)},function(He){var Dt=He.getDroppableRef;Hc(Dt())}],Ed=[function(He){var Dt=He.props,gn=He.getPlaceholderRef;if(Dt.placeholder)var Xn=gn()}],Jc=[function(He){var Dt=He.props;Dt.renderClone||ke(!1)},function(He){var Dt=He.getPlaceholderRef;Dt()&&ke(!1)}];function zs(Fe){fs(function(){Kc(Fe,sd),Fe.props.mode==="standard"&&Kc(Fe,Ed),Fe.props.mode==="virtual"&&Kc(Fe,Jc)})}var Of=function(Fe){(0,s.Z)(He,Fe);function He(){for(var gn,Xn=arguments.length,cr=new Array(Xn),jr=0;jr<Xn;jr++)cr[jr]=arguments[jr];return gn=Fe.call.apply(Fe,[this].concat(cr))||this,gn.state={isVisible:!!gn.props.on,data:gn.props.on,animate:gn.props.shouldAnimate&&gn.props.on?"open":"none"},gn.onClose=function(){gn.state.animate==="close"&&gn.setState({isVisible:!1})},gn}He.getDerivedStateFromProps=function(Xn,cr){return Xn.shouldAnimate?Xn.on?{isVisible:!0,data:Xn.on,animate:"open"}:cr.isVisible?{isVisible:!0,data:cr.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!Xn.on,data:Xn.on,animate:"none"}};var Dt=He.prototype;return Dt.render=function(){if(!this.state.isVisible)return null;var Xn={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Xn)},He}(i.PureComponent),nf={dragging:5e3,dropAnimating:4500},df=function(He,Dt){return Dt?Mo.drop(Dt.duration):He?Mo.snap:Mo.fluid},Wf=function(He,Dt){return He?Dt?yo.opacity.drop:yo.opacity.combining:null},td=function(He){return He.forceShouldAnimate!=null?He.forceShouldAnimate:He.mode==="SNAP"};function _f(Fe){var He=Fe.dimension,Dt=He.client,gn=Fe.offset,Xn=Fe.combineWith,cr=Fe.dropping,jr=!!Xn,Hr=td(Fe),sa=!!cr,Ia=sa?gi.drop(gn,jr):gi.moveTo(gn),Aa={position:"fixed",top:Dt.marginBox.top,left:Dt.marginBox.left,boxSizing:"border-box",width:Dt.borderBox.width,height:Dt.borderBox.height,transition:df(Hr,cr),transform:Ia,opacity:Wf(jr,sa),zIndex:sa?nf.dropAnimating:nf.dragging,pointerEvents:"none"};return Aa}function ff(Fe){return{transform:gi.moveTo(Fe.offset),transition:Fe.shouldAnimateDisplacement?null:"none"}}function Lf(Fe){return Fe.type==="DRAGGING"?_f(Fe):ff(Fe)}function Ec(Fe,He,Dt){Dt===void 0&&(Dt=Yt);var gn=window.getComputedStyle(He),Xn=He.getBoundingClientRect(),cr=fe(Xn,gn),jr=ie(cr,Dt),Hr={client:cr,tagName:He.tagName.toLowerCase(),display:gn.display},sa={x:cr.marginBox.width,y:cr.marginBox.height},Ia={descriptor:Fe,placeholder:Hr,displaceBy:sa,client:cr,page:jr};return Ia}function Tc(Fe){var He=co("draggable"),Dt=Fe.descriptor,gn=Fe.registry,Xn=Fe.getDraggableRef,cr=Fe.canDragInteractiveElements,jr=Fe.shouldRespectForcePress,Hr=Fe.isEnabled,sa=Z(function(){return{canDragInteractiveElements:cr,shouldRespectForcePress:jr,isEnabled:Hr}},[cr,Hr,jr]),Ia=J(function(eo){var $o=Xn();return $o||ke(!1),Ec(Dt,$o,eo)},[Dt,Xn]),Aa=Z(function(){return{uniqueId:He,descriptor:Dt,options:sa,getDimension:Ia}},[Dt,Ia,sa,He]),pa=(0,i.useRef)(Aa),Yi=(0,i.useRef)(!0);Er(function(){return gn.draggable.register(pa.current),function(){return gn.draggable.unregister(pa.current)}},[gn.draggable]),Er(function(){if(Yi.current){Yi.current=!1;return}var eo=pa.current;pa.current=Aa,gn.draggable.update(Aa,eo)},[Aa,gn.draggable])}function md(Fe,He,Dt){fs(function(){function gn(cr){return"Draggable[id: "+cr+"]: "}var Xn=Fe.draggableId;Xn||ke(!1),typeof Xn!="string"&&ke(!1),wt(Fe.index)||ke(!1),Fe.mapped.type!=="DRAGGING"&&(Hc(Dt()),Fe.isEnabled&&(ti(He,Xn)||ke(!1)))})}function Vc(Fe){}function $c(Fe){Fe.preventDefault()}function gc(Fe){var He=(0,i.useRef)(null),Dt=J(function(wc){He.current=wc},[]),gn=J(function(){return He.current},[]),Xn=yf(Ea),cr=Xn.contextId,jr=Xn.dragHandleUsageInstructionsId,Hr=Xn.registry,sa=yf(pc),Ia=sa.type,Aa=sa.droppableId,pa=Z(function(){return{id:Fe.draggableId,index:Fe.index,type:Ia,droppableId:Aa}},[Fe.draggableId,Fe.index,Ia,Aa]),Yi=Fe.children,eo=Fe.draggableId,$o=Fe.isEnabled,Cs=Fe.shouldRespectForcePress,vs=Fe.canDragInteractiveElements,Rs=Fe.isClone,Eu=Fe.mapped,_u=Fe.dropAnimationFinished;if(md(Fe,cr,gn),Vc(Rs),!Rs){var ju=Z(function(){return{descriptor:pa,registry:Hr,getDraggableRef:gn,canDragInteractiveElements:vs,shouldRespectForcePress:Cs,isEnabled:$o}},[pa,Hr,gn,vs,Cs,$o]);Tc(ju)}var Cl=Z(function(){return $o?{tabIndex:0,role:"button","aria-describedby":jr,"data-rbd-drag-handle-draggable-id":eo,"data-rbd-drag-handle-context-id":cr,draggable:!1,onDragStart:$c}:null},[cr,jr,eo,$o]),Yl=J(function(wc){Eu.type==="DRAGGING"&&Eu.dropping&&wc.propertyName==="transform"&&_u()},[_u,Eu]),cu=Z(function(){var wc=Lf(Eu),Zc=Eu.type==="DRAGGING"&&Eu.dropping?Yl:null,Af={innerRef:Dt,draggableProps:{"data-rbd-draggable-context-id":cr,"data-rbd-draggable-id":eo,style:wc,onTransitionEnd:Zc},dragHandleProps:Cl};return Af},[cr,Cl,eo,Eu,Yl,Dt]),bs=Z(function(){return{draggableId:pa.id,type:pa.type,source:{index:pa.index,droppableId:pa.droppableId}}},[pa.droppableId,pa.id,pa.index,pa.type]);return Yi(cu,Eu.snapshot,bs)}var qc=function(Fe,He){return Fe===He},If=function(Fe){var He=Fe.combine,Dt=Fe.destination;return Dt?Dt.droppableId:He?He.droppableId:null},Dr=function(He){return He.combine?He.combine.draggableId:null},pr=function(He){return He.at&&He.at.type==="COMBINE"?He.at.combine.draggableId:null};function Mi(){var Fe=(0,he.default)(function(Xn,cr){return{x:Xn,y:cr}}),He=(0,he.default)(function(Xn,cr,jr,Hr,sa){return{isDragging:!0,isClone:cr,isDropAnimating:!!sa,dropAnimation:sa,mode:Xn,draggingOver:jr,combineWith:Hr,combineTargetFor:null}}),Dt=(0,he.default)(function(Xn,cr,jr,Hr,sa,Ia,Aa){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:sa,combineWith:Ia,mode:cr,offset:Xn,dimension:jr,forceShouldAnimate:Aa,snapshot:He(cr,Hr,sa,Ia,null)}}}),gn=function(cr,jr){if(cr.isDragging){if(cr.critical.draggable.id!==jr.draggableId)return null;var Hr=cr.current.client.offset,sa=cr.dimensions.draggables[jr.draggableId],Ia=qn(cr.impact),Aa=pr(cr.impact),pa=cr.forceShouldAnimate;return Dt(Fe(Hr.x,Hr.y),cr.movementMode,sa,jr.isClone,Ia,Aa,pa)}if(cr.phase==="DROP_ANIMATING"){var Yi=cr.completed;if(Yi.result.draggableId!==jr.draggableId)return null;var eo=jr.isClone,$o=cr.dimensions.draggables[jr.draggableId],Cs=Yi.result,vs=Cs.mode,Rs=If(Cs),Eu=Dr(Cs),_u=cr.dropDuration,ju={duration:_u,curve:Ka.drop,moveTo:cr.newHomeClientOffset,opacity:Eu?yo.opacity.drop:null,scale:Eu?yo.scale.drop:null};return{mapped:{type:"DRAGGING",offset:cr.newHomeClientOffset,dimension:$o,dropping:ju,draggingOver:Rs,combineWith:Eu,mode:vs,forceShouldAnimate:null,snapshot:He(vs,eo,Rs,Eu,ju)}}}return null};return gn}function Zi(Fe){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Fe,combineWith:null}}var Ta={mapped:{type:"SECONDARY",offset:Yt,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Zi(null)}};function Oo(){var Fe=(0,he.default)(function(jr,Hr){return{x:jr,y:Hr}}),He=(0,he.default)(Zi),Dt=(0,he.default)(function(jr,Hr,sa){return Hr===void 0&&(Hr=null),{mapped:{type:"SECONDARY",offset:jr,combineTargetFor:Hr,shouldAnimateDisplacement:sa,snapshot:He(Hr)}}}),gn=function(Hr){return Hr?Dt(Yt,Hr,!0):null},Xn=function(Hr,sa,Ia,Aa){var pa=Ia.displaced.visible[Hr],Yi=!!(Aa.inVirtualList&&Aa.effected[Hr]),eo=qt(Ia),$o=eo&&eo.draggableId===Hr?sa:null;if(!pa){if(!Yi)return gn($o);if(Ia.displaced.invisible[Hr])return null;var Cs=Kt(Aa.displacedBy.point),vs=Fe(Cs.x,Cs.y);return Dt(vs,$o,!0)}if(Yi)return gn($o);var Rs=Ia.displacedBy.point,Eu=Fe(Rs.x,Rs.y);return Dt(Eu,$o,pa.shouldAnimate)},cr=function(Hr,sa){if(Hr.isDragging)return Hr.critical.draggable.id===sa.draggableId?null:Xn(sa.draggableId,Hr.critical.draggable.id,Hr.impact,Hr.afterCritical);if(Hr.phase==="DROP_ANIMATING"){var Ia=Hr.completed;return Ia.result.draggableId===sa.draggableId?null:Xn(sa.draggableId,Ia.result.draggableId,Ia.impact,Ia.afterCritical)}return null};return cr}var No=function(){var He=Mi(),Dt=Oo(),gn=function(cr,jr){return He(cr,jr)||Dt(cr,jr)||Ta};return gn},xo={dropAnimationFinished:nr},Ls=(0,W.connect)(No,xo,null,{context:da,pure:!0,areStatePropsEqual:qc})(gc);function Fs(Fe){var He=yf(pc),Dt=He.isUsingCloneFor;return Dt===Fe.draggableId&&!Fe.isClone?null:i.createElement(Ls,Fe)}function As(Fe){var He=typeof Fe.isDragDisabled=="boolean"?!Fe.isDragDisabled:!0,Dt=!!Fe.disableInteractiveElementBlocking,gn=!!Fe.shouldRespectForcePress;return i.createElement(Fs,(0,u.Z)({},Fe,{isClone:!1,isEnabled:He,canDragInteractiveElements:Dt,shouldRespectForcePress:gn}))}function Cu(Fe){var He=(0,i.useContext)(Ea);He||ke(!1);var Dt=He.contextId,gn=He.isMovementAllowed,Xn=(0,i.useRef)(null),cr=(0,i.useRef)(null),jr=Fe.children,Hr=Fe.droppableId,sa=Fe.type,Ia=Fe.mode,Aa=Fe.direction,pa=Fe.ignoreContainerClipping,Yi=Fe.isDropDisabled,eo=Fe.isCombineEnabled,$o=Fe.snapshot,Cs=Fe.useClone,vs=Fe.updateViewportMaxScroll,Rs=Fe.getContainerForClone,Eu=J(function(){return Xn.current},[]),_u=J(function(Yc){Xn.current=Yc},[]),ju=J(function(){return cr.current},[]),Cl=J(function(Yc){cr.current=Yc},[]);zs({props:Fe,getDroppableRef:Eu,getPlaceholderRef:ju});var Yl=J(function(){gn()&&vs({maxScroll:ee()})},[gn,vs]);Mf({droppableId:Hr,type:sa,mode:Ia,direction:Aa,isDropDisabled:Yi,isCombineEnabled:eo,ignoreContainerClipping:pa,getDroppableRef:Eu});var cu=i.createElement(Of,{on:Fe.placeholder,shouldAnimate:Fe.shouldAnimatePlaceholder},function(Yc){var Yf=Yc.onClose,Xf=Yc.data,ud=Yc.animate;return i.createElement(gs,{placeholder:Xf,onClose:Yf,innerRef:Cl,animate:ud,contextId:Dt,onTransitionEnd:Yl})}),bs=Z(function(){return{innerRef:_u,placeholder:cu,droppableProps:{"data-rbd-droppable-id":Hr,"data-rbd-droppable-context-id":Dt}}},[Dt,Hr,cu,_u]),wc=Cs?Cs.dragging.draggableId:null,Zc=Z(function(){return{droppableId:Hr,type:sa,isUsingCloneFor:wc}},[Hr,wc,sa]);function Af(){if(!Cs)return null;var Yc=Cs.dragging,Yf=Cs.render,Xf=i.createElement(Fs,{draggableId:Yc.draggableId,index:Yc.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(ud,rf){return Yf(ud,rf,Yc)});return we.createPortal(Xf,Rs())}return i.createElement(pc.Provider,{value:Zc},jr(bs,$o),Af())}var Iu=function(He,Dt){return He===Dt.droppable.type},Tl=function(He,Dt){return Dt.draggables[He.draggable.id]},Du=function(){var He={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},Dt=(0,u.Z)({},He,{shouldAnimatePlaceholder:!1}),gn=(0,he.default)(function(jr){return{draggableId:jr.id,type:jr.type,source:{index:jr.index,droppableId:jr.droppableId}}}),Xn=(0,he.default)(function(jr,Hr,sa,Ia,Aa,pa){var Yi=Aa.descriptor.id,eo=Aa.descriptor.droppableId===jr;if(eo){var $o=pa?{render:pa,dragging:gn(Aa.descriptor)}:null,Cs={isDraggingOver:sa,draggingOverWith:sa?Yi:null,draggingFromThisWith:Yi,isUsingPlaceholder:!0};return{placeholder:Aa.placeholder,shouldAnimatePlaceholder:!1,snapshot:Cs,useClone:$o}}if(!Hr)return Dt;if(!Ia)return He;var vs={isDraggingOver:sa,draggingOverWith:Yi,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Aa.placeholder,shouldAnimatePlaceholder:!0,snapshot:vs,useClone:null}}),cr=function(Hr,sa){var Ia=sa.droppableId,Aa=sa.type,pa=!sa.isDropDisabled,Yi=sa.renderClone;if(Hr.isDragging){var eo=Hr.critical;if(!Iu(Aa,eo))return Dt;var $o=Tl(eo,Hr.dimensions),Cs=qn(Hr.impact)===Ia;return Xn(Ia,pa,Cs,Cs,$o,Yi)}if(Hr.phase==="DROP_ANIMATING"){var vs=Hr.completed;if(!Iu(Aa,vs.critical))return Dt;var Rs=Tl(vs.critical,Hr.dimensions);return Xn(Ia,pa,If(vs.result)===Ia,qn(vs.impact)===Ia,Rs,Yi)}if(Hr.phase==="IDLE"&&Hr.completed&&!Hr.shouldFlush){var Eu=Hr.completed;if(!Iu(Aa,Eu.critical))return Dt;var _u=qn(Eu.impact)===Ia,ju=!!(Eu.impact.at&&Eu.impact.at.type==="COMBINE"),Cl=Eu.critical.droppable.id===Ia;return _u?ju?He:Dt:Cl?He:Dt}return Dt};return cr},cl={updateViewportMaxScroll:er};function tl(){return document.body||ke(!1),document.body}var Zl={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:tl},Jl=(0,W.connect)(Du,cl,null,{context:da,pure:!0,areStatePropsEqual:qc})(Cu);Jl.defaultProps=Zl},33900:(C,c,t)=>{"use strict";t.d(c,{ZP:()=>Fa});var i=t(27702),s=t(93415),u=t.n(s);function v(tn){var cn,nr,ir="";if(typeof tn=="string"||typeof tn=="number")ir+=tn;else if(typeof tn=="object")if(Array.isArray(tn))for(cn=0;cn<tn.length;cn++)tn[cn]&&(nr=v(tn[cn]))&&(ir&&(ir+=" "),ir+=nr);else for(cn in tn)tn[cn]&&(ir&&(ir+=" "),ir+=cn);return ir}function l(){for(var tn,cn,nr=0,ir="";nr<arguments.length;)(tn=arguments[nr++])&&(cn=v(tn))&&(ir&&(ir+=" "),ir+=cn);return ir}const h=l;var p=t(6112);function d(tn){return JSON.stringify(tn)}function f(tn){return typeof tn=="string"}function g(tn,cn,nr){return nr.indexOf(tn)===cn}function y(tn){return tn.toLowerCase()===tn}function b(tn){return tn.indexOf(",")===-1?tn:tn.split(",")}function E(tn){if(!tn)return tn;if(tn==="C"||tn==="posix"||tn==="POSIX")return"en-US";if(tn.indexOf(".")!==-1){var cn=tn.split(".")[0],nr=cn===void 0?"":cn;return E(nr)}if(tn.indexOf("@")!==-1){var ir=tn.split("@")[0],nr=ir===void 0?"":ir;return E(nr)}if(tn.indexOf("-")===-1||!y(tn))return tn;var Lr=tn.split("-"),ua=Lr[0],_a=Lr[1],Ka=_a===void 0?"":_a;return"".concat(ua,"-").concat(Ka.toUpperCase())}function S(tn){var cn=tn===void 0?{}:tn,nr=cn.useFallbackLocale,ir=nr===void 0?!0:nr,Lr=cn.fallbackLocale,ua=Lr===void 0?"en-US":Lr,_a=[];if(typeof navigator<"u"){for(var Ka=navigator.languages||[],yo=[],Ba=0,Ma=Ka;Ba<Ma.length;Ba++){var Mo=Ma[Ba];yo=yo.concat(b(Mo))}var Nr=navigator.language,gi=Nr&&b(Nr);_a=_a.concat(yo,gi)}return ir&&_a.push(ua),_a.filter(f).map(E).filter(g)}var w=p(S,d);function x(tn){return w(tn)[0]||null}var P=p(x,d);const R=P;function T(tn,cn,nr){return function(Lr,ua){ua===void 0&&(ua=nr);var _a=tn(Lr)+ua;return cn(_a)}}function A(tn){return function(nr){return new Date(tn(nr).getTime()-1)}}function I(tn,cn){return function(ir){return[tn(ir),cn(ir)]}}function N(tn){if(tn instanceof Date)return tn.getFullYear();if(typeof tn=="number")return tn;var cn=parseInt(tn,10);if(typeof tn=="string"&&!isNaN(cn))return cn;throw new Error("Failed to get year from date: ".concat(tn,"."))}function K(tn){if(tn instanceof Date)return tn.getMonth();throw new Error("Failed to get month from date: ".concat(tn,"."))}function _(tn){if(tn instanceof Date)return tn.getMonth()+1;throw new Error("Failed to get human-readable month from date: ".concat(tn,"."))}function W(tn){if(tn instanceof Date)return tn.getDate();throw new Error("Failed to get year from date: ".concat(tn,"."))}function j(tn){if(tn instanceof Date)return tn.getHours();if(typeof tn=="string"){var cn=tn.split(":");if(cn.length>=2){var nr=cn[0];if(nr){var ir=parseInt(nr,10);if(!isNaN(ir))return ir}}}throw new Error("Failed to get hours from date: ".concat(tn,"."))}function re(tn){if(tn instanceof Date)return tn.getMinutes();if(typeof tn=="string"){var cn=tn.split(":");if(cn.length>=2){var nr=cn[1]||"0",ir=parseInt(nr,10);if(!isNaN(ir))return ir}}throw new Error("Failed to get minutes from date: ".concat(tn,"."))}function X(tn){if(tn instanceof Date)return tn.getSeconds();if(typeof tn=="string"){var cn=tn.split(":");if(cn.length>=2){var nr=cn[2]||"0",ir=parseInt(nr,10);if(!isNaN(ir))return ir}}throw new Error("Failed to get seconds from date: ".concat(tn,"."))}function Z(tn){var cn=N(tn),nr=cn+(-cn+1)%100,ir=new Date;return ir.setFullYear(nr,0,1),ir.setHours(0,0,0,0),ir}var J=T(N,Z,-100),q=T(N,Z,100),L=A(q),$=T(N,L,-100),k=T(N,L,100),F=I(Z,L);function V(tn){var cn=N(tn),nr=cn+(-cn+1)%10,ir=new Date;return ir.setFullYear(nr,0,1),ir.setHours(0,0,0,0),ir}var pe=T(N,V,-10),ce=T(N,V,10),G=A(ce),te=T(N,G,-10),ie=T(N,G,10),fe=I(V,G);function Se(tn){var cn=N(tn),nr=new Date;return nr.setFullYear(cn,0,1),nr.setHours(0,0,0,0),nr}var he=T(N,Se,-1),me=T(N,Se,1),_e=A(me),we=T(N,_e,-1),Ge=T(N,_e,1),ht=I(Se,_e);function nt(tn,cn){return function(ir,Lr){Lr===void 0&&(Lr=cn);var ua=N(ir),_a=K(ir)+Lr,Ka=new Date;return Ka.setFullYear(ua,_a,1),Ka.setHours(0,0,0,0),tn(Ka)}}function Re(tn){var cn=N(tn),nr=K(tn),ir=new Date;return ir.setFullYear(cn,nr,1),ir.setHours(0,0,0,0),ir}var ue=nt(Re,-1),ae=nt(Re,1),ve=A(ae),Me=nt(ve,-1),Ye=nt(ve,1),qe=I(Re,ve);function At(tn,cn){return function(ir,Lr){Lr===void 0&&(Lr=cn);var ua=N(ir),_a=K(ir),Ka=W(ir)+Lr,yo=new Date;return yo.setFullYear(ua,_a,Ka),yo.setHours(0,0,0,0),tn(yo)}}function It(tn){var cn=N(tn),nr=K(tn),ir=W(tn),Lr=new Date;return Lr.setFullYear(cn,nr,ir),Lr.setHours(0,0,0,0),Lr}var Ce=At(It,-1),Ae=At(It,1),$e=A(Ae),tt=At($e,-1),ke=At($e,1),Oe=I(It,$e);function je(tn){return W(ve(tn))}function Et(tn,cn){cn===void 0&&(cn=2);var nr="".concat(tn);return nr.length>=cn?tn:"0000".concat(nr).slice(-cn)}function ct(tn){var cn=Et(j(tn)),nr=Et(re(tn));return"".concat(cn,":").concat(nr)}function ut(tn){var cn=Et(j(tn)),nr=Et(re(tn)),ir=Et(X(tn));return"".concat(cn,":").concat(nr,":").concat(ir)}function Ne(tn){var cn=Et(N(tn),4),nr=Et(_(tn));return"".concat(cn,"-").concat(nr)}function mt(tn){var cn=Et(N(tn),4),nr=Et(_(tn)),ir=Et(W(tn));return"".concat(cn,"-").concat(nr,"-").concat(ir)}function bt(tn){return"".concat(mt(tn),"T").concat(ut(tn))}var Gt,hn={ARABIC:"Arabic",HEBREW:"Hebrew",ISO_8601:"ISO 8601",US:"US"},Yt=(Gt={},Gt[hn.US]=["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-BR"],Gt[hn.ARABIC]=["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"],Gt[hn.HEBREW]=["he","he-IL"],Gt),Bt=[0,1,2,3,4,5,6],Lt=new Map;function zt(tn){return function(nr,ir){var Lr=nr||R();Lt.has(Lr)||Lt.set(Lr,new Map);var ua=Lt.get(Lr);return ua.has(tn)||ua.set(tn,new Intl.DateTimeFormat(Lr||void 0,tn).format),ua.get(tn)(ir)}}function Kt(tn){var cn=new Date(tn);return new Date(cn.setHours(12))}function vt(tn){return function(cn,nr){return zt(tn)(cn,Kt(nr))}}var Ve={day:"numeric",month:"numeric",year:"numeric"},lt={day:"numeric"},at={day:"numeric",month:"long",year:"numeric"},Xt={month:"long"},rt={month:"long",year:"numeric"},Rt={weekday:"short"},rn={weekday:"long"},sn={year:"numeric"},Jn=vt(Ve),ze=vt(lt),st=vt(at),en=vt(Xt),wt=vt(rt),Ke=vt(Rt),Ut=vt(rn),on=vt(sn),Tn=Bt[0],An=Bt[5],Zt=Bt[6];function ot(tn,cn){cn===void 0&&(cn=hn.ISO_8601);var nr=tn.getDay();switch(cn){case hn.ISO_8601:return(nr+6)%7;case hn.ARABIC:return(nr+1)%7;case hn.HEBREW:case hn.US:return nr;default:throw new Error("Unsupported calendar type.")}}function We(tn){var cn=Z(tn);return N(cn)}function Ft(tn){var cn=V(tn);return N(cn)}function it(tn,cn){cn===void 0&&(cn=hn.ISO_8601);var nr=N(tn),ir=K(tn),Lr=tn.getDate()-ot(tn,cn);return new Date(nr,ir,Lr)}function qt(tn,cn){cn===void 0&&(cn=hn.ISO_8601);var nr=cn===hn.US?hn.US:hn.ISO_8601,ir=it(tn,cn),Lr=N(tn)+1,ua,_a;do ua=new Date(Lr,0,nr===hn.ISO_8601?4:1),_a=it(ua,cn),Lr-=1;while(tn<_a);return Math.round((ir.getTime()-_a.getTime())/(864e5*7))+1}function vn(tn,cn){switch(tn){case"century":return Z(cn);case"decade":return V(cn);case"year":return Se(cn);case"month":return Re(cn);case"day":return It(cn);default:throw new Error("Invalid rangeType: ".concat(tn))}}function fn(tn,cn){switch(tn){case"century":return J(cn);case"decade":return pe(cn);case"year":return he(cn);case"month":return ue(cn);default:throw new Error("Invalid rangeType: ".concat(tn))}}function Tt(tn,cn){switch(tn){case"century":return q(cn);case"decade":return ce(cn);case"year":return me(cn);case"month":return ae(cn);default:throw new Error("Invalid rangeType: ".concat(tn))}}function dn(tn,cn){switch(tn){case"decade":return pe(cn,-100);case"year":return he(cn,-10);case"month":return ue(cn,-12);default:throw new Error("Invalid rangeType: ".concat(tn))}}function mn(tn,cn){switch(tn){case"decade":return ce(cn,100);case"year":return me(cn,10);case"month":return ae(cn,12);default:throw new Error("Invalid rangeType: ".concat(tn))}}function Kn(tn,cn){switch(tn){case"century":return L(cn);case"decade":return G(cn);case"year":return _e(cn);case"month":return ve(cn);case"day":return $e(cn);default:throw new Error("Invalid rangeType: ".concat(tn))}}function Dn(tn,cn){switch(tn){case"century":return $(cn);case"decade":return te(cn);case"year":return we(cn);case"month":return Me(cn);default:throw new Error("Invalid rangeType: ".concat(tn))}}function Vn(tn,cn){switch(tn){case"decade":return te(cn,-100);case"year":return we(cn,-10);case"month":return Me(cn,-12);default:throw new Error("Invalid rangeType: ".concat(tn))}}function or(tn,cn){switch(tn){case"century":return F(cn);case"decade":return fe(cn);case"year":return ht(cn);case"month":return qe(cn);case"day":return Oe(cn);default:throw new Error("Invalid rangeType: ".concat(tn))}}function Qr(tn,cn,nr){var ir=[cn,nr].sort(function(Lr,ua){return Lr.getTime()-ua.getTime()});return[vn(tn,ir[0]),Kn(tn,ir[1])]}function ni(tn,cn,nr){return cn===void 0&&(cn=on),nr.map(function(ir){return cn(tn,ir)}).join(" \u2013 ")}function yr(tn,cn,nr){return ni(tn,cn,F(nr))}function si(tn,cn,nr){return ni(tn,cn,fe(nr))}function Yr(tn){return tn.getDay()===new Date().getDay()}function Ci(tn,cn){cn===void 0&&(cn=hn.ISO_8601);var nr=tn.getDay();switch(cn){case hn.ARABIC:case hn.HEBREW:return nr===An||nr===Zt;case hn.ISO_8601:case hn.US:return nr===Zt||nr===Tn;default:throw new Error("Unsupported calendar type.")}}var Ni=Object.values(hn),fa=["century","decade","year","month"],ha=u().oneOf(Ni),Ca=u().oneOfType([u().string,u().arrayOf(u().string)]),li=function(cn,nr,ir){var Lr=cn,ua=nr,_a=Lr[ua];if(!_a)return null;if(!(_a instanceof Date))return new Error("Invalid prop `".concat(nr,"` of type `").concat(typeof _a,"` supplied to `").concat(ir,"`, expected instance of `Date`."));var Ka=cn.maxDate;return Ka&&_a>Ka?new Error("Invalid prop `".concat(nr,"` of type `").concat(typeof _a,"` supplied to `").concat(ir,"`, minDate cannot be larger than maxDate.")):null},la=function(cn,nr,ir){var Lr=cn,ua=nr,_a=Lr[ua];if(!_a)return null;if(!(_a instanceof Date))return new Error("Invalid prop `".concat(nr,"` of type `").concat(typeof _a,"` supplied to `").concat(ir,"`, expected instance of `Date`."));var Ka=cn.minDate;return Ka&&_a<Ka?new Error("Invalid prop `".concat(nr,"` of type `").concat(typeof _a,"` supplied to `").concat(ir,"`, maxDate cannot be smaller than minDate.")):null},Oa=u().oneOfType([u().func,u().exact({current:u().any})]),wa=u().oneOfType([u().instanceOf(Date),u().arrayOf(u().instanceOf(Date))]),vo=u().arrayOf(u().oneOf(fa)),Qn=function(cn,nr,ir){var Lr=cn,ua=nr,_a=Lr[ua];return _a!==void 0&&(typeof _a!="string"||fa.indexOf(_a)===-1)?new Error("Invalid prop `".concat(nr,"` of value `").concat(_a,"` supplied to `").concat(ir,"`, expected one of [").concat(fa.map(function(Ka){return'"'.concat(Ka,'"')}).join(", "),"].")):null};Qn.isRequired=function(cn,nr,ir,Lr,ua){var _a=cn,Ka=nr,yo=_a[Ka];return yo?Qn(cn,nr,ir,Lr,ua):new Error("The prop `".concat(nr,"` is marked as required in `").concat(ir,"`, but its value is `").concat(yo,"`."))};var _r=function(tn){return u().arrayOf(tn)},$r={activeStartDate:u().instanceOf(Date).isRequired,hover:u().instanceOf(Date),locale:u().string,maxDate:la,minDate:li,onClick:u().func,onMouseOver:u().func,tileClassName:u().oneOfType([u().func,Ca]),tileContent:u().oneOfType([u().func,u().node]),value:wa,valueType:u().string},Ti={activeStartDate:u().instanceOf(Date).isRequired,classes:u().arrayOf(u().string).isRequired,date:u().instanceOf(Date).isRequired,locale:u().string,maxDate:la,minDate:li,onClick:u().func,onMouseOver:u().func,style:u().objectOf(u().oneOfType([u().string,u().number])),tileClassName:u().oneOfType([u().func,Ca]),tileContent:u().oneOfType([u().func,u().node]),tileDisabled:u().func},xt="react-calendar__navigation";function On(tn){var cn=tn.activeStartDate,nr=tn.drillUp,ir=tn.formatMonthYear,Lr=ir===void 0?wt:ir,ua=tn.formatYear,_a=ua===void 0?on:ua,Ka=tn.locale,yo=tn.maxDate,Ba=tn.minDate,Ma=tn.navigationAriaLabel,Mo=Ma===void 0?"":Ma,Nr=tn.navigationAriaLive,gi=tn.navigationLabel,ea=tn.next2AriaLabel,dr=ea===void 0?"":ea,ci=tn.next2Label,yi=ci===void 0?"\xBB":ci,xa=tn.nextAriaLabel,Cr=xa===void 0?"":xa,ka=tn.nextLabel,Io=ka===void 0?"\u203A":ka,Co=tn.prev2AriaLabel,_s=Co===void 0?"":Co,Is=tn.prev2Label,xs=Is===void 0?"\xAB":Is,Zs=tn.prevAriaLabel,Ns=Zs===void 0?"":Zs,Us=tn.prevLabel,fu=Us===void 0?"\u2039":Us,bu=tn.setActiveStartDate,Ys=tn.showDoubleView,Hu=tn.view,Zu=tn.views,ql=Zu.indexOf(Hu)>0,Sn=Hu!=="century",Wn=fn(Hu,cn),vr=Sn?dn(Hu,cn):void 0,kr=Tt(Hu,cn),ui=Sn?mn(Hu,cn):void 0,ta=function(){if(Wn.getFullYear()<0)return!0;var pn=Dn(Hu,cn);return Ba&&Ba>=pn}(),St=Sn&&function(){if(vr.getFullYear()<0)return!0;var pn=Vn(Hu,cn);return Ba&&Ba>=pn}(),pt=yo&&yo<kr,kt=Sn&&yo&&yo<ui;function _t(){bu(Wn,"prev")}function Mn(){bu(vr,"prev2")}function Pr(){bu(kr,"next")}function Hi(){bu(ui,"next2")}function jt(pn){var ee=function(){switch(Hu){case"century":return yr(Ka,_a,pn);case"decade":return si(Ka,_a,pn);case"year":return _a(Ka,pn);case"month":return Lr(Ka,pn);default:throw new Error("Invalid view: ".concat(Hu,"."))}}();return gi?gi({date:pn,label:ee,locale:Ka||P()||void 0,view:Hu}):ee}function $n(){var pn="".concat(xt,"__label");return i.createElement("button",{"aria-label":Mo,"aria-live":Nr,className:pn,disabled:!ql,onClick:nr,style:{flexGrow:1},type:"button"},i.createElement("span",{className:"".concat(pn,"__labelText ").concat(pn,"__labelText--from")},jt(cn)),Ys?i.createElement(i.Fragment,null,i.createElement("span",{className:"".concat(pn,"__divider")}," \u2013 "),i.createElement("span",{className:"".concat(pn,"__labelText ").concat(pn,"__labelText--to")},jt(kr))):null)}return i.createElement("div",{className:xt},xs!==null&&Sn?i.createElement("button",{"aria-label":_s,className:"".concat(xt,"__arrow ").concat(xt,"__prev2-button"),disabled:St,onClick:Mn,type:"button"},xs):null,fu!==null&&i.createElement("button",{"aria-label":Ns,className:"".concat(xt,"__arrow ").concat(xt,"__prev-button"),disabled:ta,onClick:_t,type:"button"},fu),$n(),Io!==null&&i.createElement("button",{"aria-label":Cr,className:"".concat(xt,"__arrow ").concat(xt,"__next-button"),disabled:pt,onClick:Pr,type:"button"},Io),yi!==null&&Sn?i.createElement("button",{"aria-label":dr,className:"".concat(xt,"__arrow ").concat(xt,"__next2-button"),disabled:kt,onClick:Hi,type:"button"},yi):null)}On.propTypes={activeStartDate:u().instanceOf(Date).isRequired,drillUp:u().func.isRequired,formatMonthYear:u().func,formatYear:u().func,locale:u().string,maxDate:u().instanceOf(Date),minDate:u().instanceOf(Date),navigationAriaLabel:u().string,navigationAriaLive:u().string,navigationLabel:u().func,next2AriaLabel:u().string,next2Label:u().node,nextAriaLabel:u().string,nextLabel:u().node,prev2AriaLabel:u().string,prev2Label:u().node,prevAriaLabel:u().string,prevLabel:u().node,setActiveStartDate:u().func.isRequired,showDoubleView:u().bool,view:Qn.isRequired,views:vo.isRequired};var Zn=function(){return Zn=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},Zn.apply(this,arguments)},Ur=function(tn,cn){var nr={};for(var ir in tn)Object.prototype.hasOwnProperty.call(tn,ir)&&cn.indexOf(ir)<0&&(nr[ir]=tn[ir]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,ir=Object.getOwnPropertySymbols(tn);Lr<ir.length;Lr++)cn.indexOf(ir[Lr])<0&&Object.prototype.propertyIsEnumerable.call(tn,ir[Lr])&&(nr[ir[Lr]]=tn[ir[Lr]]);return nr};function En(tn){return"".concat(tn,"%")}function ln(tn){var cn=tn.children,nr=tn.className,ir=tn.count,Lr=tn.direction,ua=tn.offset,_a=tn.style,Ka=tn.wrap,yo=Ur(tn,["children","className","count","direction","offset","style","wrap"]);return i.createElement("div",Zn({className:nr,style:Zn({display:"flex",flexDirection:Lr,flexWrap:Ka?"wrap":"nowrap"},_a)},yo),i.Children.map(cn,function(Ba,Ma){var Mo=ua&&Ma===0?En(100*ua/ir):null;return i.cloneElement(Ba,Zn(Zn({},Ba.props),{style:{flexBasis:En(100/ir),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:Mo,marginInlineStart:Mo,marginInlineEnd:0}}))}))}ln.propTypes={children:u().node,className:u().string,count:u().number.isRequired,direction:u().string,offset:u().number,style:u().objectOf(u().oneOfType([u().string,u().number])),wrap:u().bool};function jn(tn,cn,nr){return cn&&cn>tn?cn:nr&&nr<tn?nr:tn}function rr(tn,cn){return cn[0]<=tn&&cn[1]>=tn}function Mr(tn,cn){return tn[0]<=cn[0]&&tn[1]>=cn[1]}function Ir(tn,cn){return rr(tn[0],cn)||rr(tn[1],cn)}function Zr(tn,cn,nr){var ir=Ir(cn,tn),Lr=[];if(ir){Lr.push(nr);var ua=rr(tn[0],cn),_a=rr(tn[1],cn);ua&&Lr.push("".concat(nr,"Start")),_a&&Lr.push("".concat(nr,"End")),ua&&_a&&Lr.push("".concat(nr,"BothEnds"))}return Lr}function lr(tn){if(!tn)throw new Error("args is required");var cn=tn.value,nr=tn.date,ir=tn.hover,Lr="react-calendar__tile",ua=[Lr];if(!nr)return ua;var _a=new Date,Ka=function(){if(Array.isArray(nr))return nr;var gi=tn.dateType;if(!gi)throw new Error("dateType is required when date is not an array of two dates");return or(gi,nr)}();if(rr(_a,Ka)&&ua.push("".concat(Lr,"--now")),!cn)return ua;var yo=function(){if(Array.isArray(cn))return cn;var gi=tn.valueType;if(!gi)throw new Error("valueType is required when value is not an array of two dates");return or(gi,cn)}();Mr(yo,Ka)?ua.push("".concat(Lr,"--active")):Ir(yo,Ka)&&ua.push("".concat(Lr,"--hasActive"));var Ba=Zr(yo,Ka,"".concat(Lr,"--range"));ua.push.apply(ua,Ba);var Ma=Array.isArray(cn)?cn:[cn];if(ir&&Ma.length===1){var Mo=ir>yo[0]?[yo[0],ir]:[ir,yo[0]],Nr=Zr(Mo,Ka,"".concat(Lr,"--hover"));ua.push.apply(ua,Nr)}return ua}var Jr=function(){return Jr=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},Jr.apply(this,arguments)},pi=function(tn,cn){var nr={};for(var ir in tn)Object.prototype.hasOwnProperty.call(tn,ir)&&cn.indexOf(ir)<0&&(nr[ir]=tn[ir]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,ir=Object.getOwnPropertySymbols(tn);Lr<ir.length;Lr++)cn.indexOf(ir[Lr])<0&&Object.prototype.propertyIsEnumerable.call(tn,ir[Lr])&&(nr[ir[Lr]]=tn[ir[Lr]]);return nr};function Ri(tn){for(var cn=tn.className,nr=tn.count,ir=nr===void 0?3:nr,Lr=tn.dateTransform,ua=tn.dateType,_a=tn.end,Ka=tn.hover,yo=tn.offset,Ba=tn.start,Ma=tn.step,Mo=Ma===void 0?1:Ma,Nr=tn.tile,gi=tn.value,ea=tn.valueType,dr=pi(tn,["className","count","dateTransform","dateType","end","hover","offset","start","step","tile","value","valueType"]),ci=[],yi=Ba;yi<=_a;yi+=Mo){var xa=Lr(yi);ci.push(i.createElement(Nr,Jr({key:xa.getTime(),classes:lr({value:gi,valueType:ea,date:xa,dateType:ua,hover:Ka}),date:xa,point:yi},dr)))}return i.createElement(ln,{className:cn,count:ir,offset:yo,wrap:!0},ci)}Ri.propTypes=Jr(Jr({},$r),{className:u().string,count:u().number,dateTransform:u().func.isRequired,dateType:u().string,end:u().number.isRequired,offset:u().number,step:u().number,start:u().number.isRequired,tile:u().func.isRequired});var Ki=function(){return Ki=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},Ki.apply(this,arguments)};function ia(tn){var cn=tn.activeStartDate,nr=tn.children,ir=tn.classes,Lr=tn.date,ua=tn.formatAbbr,_a=tn.locale,Ka=tn.maxDate,yo=tn.maxDateTransform,Ba=tn.minDate,Ma=tn.minDateTransform,Mo=tn.onClick,Nr=tn.onMouseOver,gi=tn.style,ea=tn.tileClassName,dr=tn.tileContent,ci=tn.tileDisabled,yi=tn.view,xa=(0,i.useMemo)(function(){var ka={activeStartDate:cn,date:Lr,view:yi};return typeof ea=="function"?ea(ka):ea},[cn,Lr,ea,yi]),Cr=(0,i.useMemo)(function(){var ka={activeStartDate:cn,date:Lr,view:yi};return typeof dr=="function"?dr(ka):dr},[cn,Lr,dr,yi]);return i.createElement("button",{className:h(ir,xa),disabled:Ba&&Ma(Ba)>Lr||Ka&&yo(Ka)<Lr||ci&&ci({activeStartDate:cn,date:Lr,view:yi}),onClick:Mo?function(ka){return Mo(Lr,ka)}:void 0,onFocus:Nr?function(){return Nr(Lr)}:void 0,onMouseOver:Nr?function(){return Nr(Lr)}:void 0,style:gi,type:"button"},ua?i.createElement("abbr",{"aria-label":ua(_a,Lr)},nr):nr,Cr)}ia.propTypes=Ki(Ki({},Ti),{children:u().node.isRequired,formatAbbr:u().func,maxDateTransform:u().func.isRequired,minDateTransform:u().func.isRequired});var Da=function(){return Da=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},Da.apply(this,arguments)},to=function(tn,cn){var nr={};for(var ir in tn)Object.prototype.hasOwnProperty.call(tn,ir)&&cn.indexOf(ir)<0&&(nr[ir]=tn[ir]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,ir=Object.getOwnPropertySymbols(tn);Lr<ir.length;Lr++)cn.indexOf(ir[Lr])<0&&Object.prototype.propertyIsEnumerable.call(tn,ir[Lr])&&(nr[ir[Lr]]=tn[ir[Lr]]);return nr},ao=function(tn,cn,nr){if(nr||arguments.length===2)for(var ir=0,Lr=cn.length,ua;ir<Lr;ir++)(ua||!(ir in cn))&&(ua||(ua=Array.prototype.slice.call(cn,0,ir)),ua[ir]=cn[ir]);return tn.concat(ua||Array.prototype.slice.call(cn))},Bo="react-calendar__century-view__decades__decade";function jo(tn){var cn=tn.classes,nr=cn===void 0?[]:cn,ir=tn.formatYear,Lr=ir===void 0?on:ir,ua=to(tn,["classes","formatYear"]),_a=ua.date,Ka=ua.locale;return i.createElement(ia,Da({},ua,{classes:ao(ao([],nr,!0),[Bo],!1),maxDateTransform:G,minDateTransform:V,view:"century"}),si(Ka,Lr,_a))}jo.propTypes=Da(Da({},Ti),{formatYear:u().func});var Jo=function(){return Jo=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},Jo.apply(this,arguments)};function Go(tn){var cn=tn.activeStartDate,nr=We(cn),ir=nr+99;return i.createElement(Ri,Jo({},tn,{className:"react-calendar__century-view__decades",dateTransform:V,dateType:"decade",end:ir,start:nr,step:10,tile:jo}))}Go.propTypes=Jo({},$r);var wr=function(){return wr=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},wr.apply(this,arguments)};function qi(tn){function cn(){return i.createElement(Go,wr({},tn))}return i.createElement("div",{className:"react-calendar__century-view"},cn())}var ja=function(){return ja=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},ja.apply(this,arguments)},uo=function(tn,cn){var nr={};for(var ir in tn)Object.prototype.hasOwnProperty.call(tn,ir)&&cn.indexOf(ir)<0&&(nr[ir]=tn[ir]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,ir=Object.getOwnPropertySymbols(tn);Lr<ir.length;Lr++)cn.indexOf(ir[Lr])<0&&Object.prototype.propertyIsEnumerable.call(tn,ir[Lr])&&(nr[ir[Lr]]=tn[ir[Lr]]);return nr},wi=function(tn,cn,nr){if(nr||arguments.length===2)for(var ir=0,Lr=cn.length,ua;ir<Lr;ir++)(ua||!(ir in cn))&&(ua||(ua=Array.prototype.slice.call(cn,0,ir)),ua[ir]=cn[ir]);return tn.concat(ua||Array.prototype.slice.call(cn))},ai="react-calendar__decade-view__years__year";function za(tn){var cn=tn.classes,nr=cn===void 0?[]:cn,ir=tn.formatYear,Lr=ir===void 0?on:ir,ua=uo(tn,["classes","formatYear"]),_a=ua.date,Ka=ua.locale;return i.createElement(ia,ja({},ua,{classes:wi(wi([],nr,!0),[ai],!1),maxDateTransform:_e,minDateTransform:Se,view:"decade"}),Lr(Ka,_a))}za.propTypes=ja(ja({},Ti),{formatYear:u().func});var Mt=function(){return Mt=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},Mt.apply(this,arguments)};function Gn(tn){var cn=tn.activeStartDate,nr=Ft(cn),ir=nr+9;return i.createElement(Ri,Mt({},tn,{className:"react-calendar__decade-view__years",dateTransform:function(Lr){var ua=new Date;return ua.setFullYear(Lr,0,1),ua.setHours(0,0,0,0),ua},dateType:"year",end:ir,start:nr,tile:za}))}Gn.propTypes=Mt({},$r);var qn=function(){return qn=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},qn.apply(this,arguments)};function Fr(tn){function cn(){return i.createElement(Gn,qn({},tn))}return i.createElement("div",{className:"react-calendar__decade-view"},cn())}var Ei=function(){return Ei=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},Ei.apply(this,arguments)},ii=function(tn,cn){var nr={};for(var ir in tn)Object.prototype.hasOwnProperty.call(tn,ir)&&cn.indexOf(ir)<0&&(nr[ir]=tn[ir]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,ir=Object.getOwnPropertySymbols(tn);Lr<ir.length;Lr++)cn.indexOf(ir[Lr])<0&&Object.prototype.propertyIsEnumerable.call(tn,ir[Lr])&&(nr[ir[Lr]]=tn[ir[Lr]]);return nr},Wi=function(tn,cn,nr){if(nr||arguments.length===2)for(var ir=0,Lr=cn.length,ua;ir<Lr;ir++)(ua||!(ir in cn))&&(ua||(ua=Array.prototype.slice.call(cn,0,ir)),ua[ir]=cn[ir]);return tn.concat(ua||Array.prototype.slice.call(cn))},Ya="react-calendar__year-view__months__month";function qa(tn){var cn=tn.classes,nr=cn===void 0?[]:cn,ir=tn.formatMonth,Lr=ir===void 0?en:ir,ua=tn.formatMonthYear,_a=ua===void 0?wt:ua,Ka=ii(tn,["classes","formatMonth","formatMonthYear"]),yo=Ka.date,Ba=Ka.locale;return i.createElement(ia,Ei({},Ka,{classes:Wi(Wi([],nr,!0),[Ya],!1),formatAbbr:_a,maxDateTransform:ve,minDateTransform:Re,view:"year"}),Lr(Ba,yo))}qa.propTypes=Ei(Ei({},Ti),{formatMonth:u().func,formatMonthYear:u().func});var se=function(){return se=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},se.apply(this,arguments)};function ye(tn){var cn=tn.activeStartDate,nr=0,ir=11,Lr=N(cn);return i.createElement(Ri,se({},tn,{className:"react-calendar__year-view__months",dateTransform:function(ua){var _a=new Date;return _a.setFullYear(Lr,ua,1),_a.setHours(0,0,0,0),_a},dateType:"month",end:ir,start:nr,tile:qa}))}ye.propTypes=se(se({},$r),{locale:u().string});var Xe=function(){return Xe=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},Xe.apply(this,arguments)};function yt(tn){function cn(){return i.createElement(ye,Xe({},tn))}return i.createElement("div",{className:"react-calendar__year-view"},cn())}var Wt=function(){return Wt=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},Wt.apply(this,arguments)},Qt=function(tn,cn){var nr={};for(var ir in tn)Object.prototype.hasOwnProperty.call(tn,ir)&&cn.indexOf(ir)<0&&(nr[ir]=tn[ir]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,ir=Object.getOwnPropertySymbols(tn);Lr<ir.length;Lr++)cn.indexOf(ir[Lr])<0&&Object.prototype.propertyIsEnumerable.call(tn,ir[Lr])&&(nr[ir[Lr]]=tn[ir[Lr]]);return nr},wn="react-calendar__month-view__days__day";function fr(tn){var cn=tn.calendarType,nr=tn.classes,ir=nr===void 0?[]:nr,Lr=tn.currentMonthIndex,ua=tn.formatDay,_a=ua===void 0?ze:ua,Ka=tn.formatLongDate,yo=Ka===void 0?st:Ka,Ba=Qt(tn,["calendarType","classes","currentMonthIndex","formatDay","formatLongDate"]),Ma=Ba.date,Mo=Ba.locale,Nr=[];return ir&&Nr.push.apply(Nr,ir),wn&&Nr.push(wn),Ci(Ma,cn)&&Nr.push("".concat(wn,"--weekend")),Ma.getMonth()!==Lr&&Nr.push("".concat(wn,"--neighboringMonth")),i.createElement(ia,Wt({},Ba,{classes:Nr,formatAbbr:yo,maxDateTransform:$e,minDateTransform:It,view:"month"}),_a(Mo,Ma))}fr.propTypes=Wt(Wt({},Ti),{currentMonthIndex:u().number.isRequired,formatDay:u().func,formatLongDate:u().func});var Or=function(){return Or=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},Or.apply(this,arguments)},Si=function(tn,cn){var nr={};for(var ir in tn)Object.prototype.hasOwnProperty.call(tn,ir)&&cn.indexOf(ir)<0&&(nr[ir]=tn[ir]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,ir=Object.getOwnPropertySymbols(tn);Lr<ir.length;Lr++)cn.indexOf(ir[Lr])<0&&Object.prototype.propertyIsEnumerable.call(tn,ir[Lr])&&(nr[ir[Lr]]=tn[ir[Lr]]);return nr};function Fi(tn){var cn=tn.activeStartDate,nr=tn.calendarType,ir=tn.showFixedNumberOfWeeks,Lr=tn.showNeighboringMonth,ua=Si(tn,["showFixedNumberOfWeeks","showNeighboringMonth"]),_a=N(cn),Ka=K(cn),yo=ir||Lr,Ba=ot(cn,nr),Ma=yo?0:Ba,Mo=(yo?-Ba:0)+1,Nr=function(){if(ir)return Mo+6*7-1;var gi=je(cn);if(Lr){var ea=new Date;ea.setFullYear(_a,Ka,gi),ea.setHours(0,0,0,0);var dr=7-ot(ea,nr)-1;return gi+dr}return gi}();return i.createElement(Ri,Or({},ua,{className:"react-calendar__month-view__days",count:7,currentMonthIndex:Ka,dateTransform:function(gi){var ea=new Date;return ea.setFullYear(_a,Ka,gi),ea.setHours(0,0,0,0),ea},dateType:"day",end:Nr,offset:Ma,start:Mo,tile:fr}))}Fi.propTypes=Or({calendarType:ha,showFixedNumberOfWeeks:u().bool,showNeighboringMonth:u().bool},$r);var Bi="react-calendar__month-view__weekdays",Ui="".concat(Bi,"__weekday");function vi(tn){for(var cn=tn.calendarType,nr=tn.formatShortWeekday,ir=nr===void 0?Ke:nr,Lr=tn.formatWeekday,ua=Lr===void 0?Ut:Lr,_a=tn.locale,Ka=tn.onMouseLeave,yo=new Date,Ba=Re(yo),Ma=N(Ba),Mo=K(Ba),Nr=[],gi=1;gi<=7;gi+=1){var ea=new Date(Ma,Mo,gi-ot(Ba,cn)),dr=ua(_a,ea);Nr.push(i.createElement("div",{key:gi,className:h(Ui,Yr(ea)&&"".concat(Ui,"--current"),Ci(ea,cn)&&"".concat(Ui,"--weekend"))},i.createElement("abbr",{"aria-label":dr,title:dr},ir(_a,ea).replace(".",""))))}return i.createElement(ln,{className:Bi,count:7,onFocus:Ka,onMouseOver:Ka},Nr)}vi.propTypes={calendarType:ha,formatShortWeekday:u().func,formatWeekday:u().func,locale:u().string,onMouseLeave:u().func};var Xa=function(){return Xa=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},Xa.apply(this,arguments)},Ko=function(tn,cn){var nr={};for(var ir in tn)Object.prototype.hasOwnProperty.call(tn,ir)&&cn.indexOf(ir)<0&&(nr[ir]=tn[ir]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,ir=Object.getOwnPropertySymbols(tn);Lr<ir.length;Lr++)cn.indexOf(ir[Lr])<0&&Object.prototype.propertyIsEnumerable.call(tn,ir[Lr])&&(nr[ir[Lr]]=tn[ir[Lr]]);return nr},So="react-calendar__tile";function Lo(tn){var cn=tn.onClickWeekNumber,nr=tn.weekNumber,ir=i.createElement("span",null,nr);if(cn){var Lr=tn.date,ua=tn.onClickWeekNumber,_a=tn.weekNumber,Ka=Ko(tn,["date","onClickWeekNumber","weekNumber"]);return i.createElement("button",Xa({},Ka,{className:So,onClick:function(Mo){return ua(_a,Lr,Mo)},type:"button"}),ir)}else{var yo=tn.date,Ba=tn.onClickWeekNumber,Ma=tn.weekNumber,Ka=Ko(tn,["date","onClickWeekNumber","weekNumber"]);return i.createElement("div",Xa({},Ka,{className:So}),ir)}}Lo.propTypes={date:u().instanceOf(Date).isRequired,onClickWeekNumber:u().func,weekNumber:u().node.isRequired};function us(tn){var cn=tn.activeStartDate,nr=tn.calendarType,ir=tn.onClickWeekNumber,Lr=tn.onMouseLeave,ua=tn.showFixedNumberOfWeeks,_a=function(){if(ua)return 6;var Ba=je(cn),Ma=ot(cn,nr),Mo=Ba-(7-Ma);return 1+Math.ceil(Mo/7)}(),Ka=function(){for(var Ba=N(cn),Ma=K(cn),Mo=W(cn),Nr=[],gi=0;gi<_a;gi+=1)Nr.push(it(new Date(Ba,Ma,Mo+gi*7),nr));return Nr}(),yo=Ka.map(function(Ba){return qt(Ba,nr)});return i.createElement(ln,{className:"react-calendar__month-view__weekNumbers",count:_a,direction:"column",onFocus:Lr,onMouseOver:Lr,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0}},yo.map(function(Ba,Ma){var Mo=Ka[Ma];if(!Mo)throw new Error("date is not defined");return i.createElement(Lo,{key:Ba,date:Mo,onClickWeekNumber:ir,weekNumber:Ba})}))}us.propTypes={activeStartDate:u().instanceOf(Date).isRequired,calendarType:ha,onClickWeekNumber:u().func,onMouseLeave:u().func,showFixedNumberOfWeeks:u().bool};var Ee=function(){return Ee=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},Ee.apply(this,arguments)},Y=function(tn,cn){var nr={};for(var ir in tn)Object.prototype.hasOwnProperty.call(tn,ir)&&cn.indexOf(ir)<0&&(nr[ir]=tn[ir]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,ir=Object.getOwnPropertySymbols(tn);Lr<ir.length;Lr++)cn.indexOf(ir[Lr])<0&&Object.prototype.propertyIsEnumerable.call(tn,ir[Lr])&&(nr[ir[Lr]]=tn[ir[Lr]]);return nr};function z(tn){for(var cn=0,nr=Object.entries(Yt);cn<nr.length;cn++){var ir=nr[cn],Lr=ir[0],ua=ir[1];if(ua.includes(tn))return Lr}return hn.ISO_8601}function B(tn){var cn=tn.activeStartDate,nr=tn.locale,ir=tn.onMouseLeave,Lr=tn.showFixedNumberOfWeeks,ua=tn.calendarType,_a=ua===void 0?z(nr):ua,Ka=tn.formatShortWeekday,yo=tn.formatWeekday,Ba=tn.onClickWeekNumber,Ma=tn.showWeekNumbers,Mo=Y(tn,["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"]);function Nr(){return i.createElement(vi,{calendarType:_a,formatShortWeekday:Ka,formatWeekday:yo,locale:nr,onMouseLeave:ir})}function gi(){return Ma?i.createElement(us,{activeStartDate:cn,calendarType:_a,onClickWeekNumber:Ba,onMouseLeave:ir,showFixedNumberOfWeeks:Lr}):null}function ea(){return i.createElement(Fi,Ee({calendarType:_a},Mo))}var dr="react-calendar__month-view";return i.createElement("div",{className:h(dr,Ma?"".concat(dr,"--weekNumbers"):"")},i.createElement("div",{style:{display:"flex",alignItems:"flex-end"}},gi(),i.createElement("div",{style:{flexGrow:1,width:"100%"}},Nr(),ea())))}B.propTypes=Ee(Ee({},$r),{calendarType:ha,formatDay:u().func,formatLongDate:u().func,formatShortWeekday:u().func,formatWeekday:u().func,onClickWeekNumber:u().func,onMouseLeave:u().func,showFixedNumberOfWeeks:u().bool,showNeighboringMonth:u().bool,showWeekNumbers:u().bool});var le=function(){return le=Object.assign||function(tn){for(var cn,nr=1,ir=arguments.length;nr<ir;nr++){cn=arguments[nr];for(var Lr in cn)Object.prototype.hasOwnProperty.call(cn,Lr)&&(tn[Lr]=cn[Lr])}return tn},le.apply(this,arguments)},Le="react-calendar",Je=["century","decade","year","month"],Ct=["decade","year","month","day"],Vt=new Date;Vt.setFullYear(1,0,1),Vt.setHours(0,0,0,0);var bn=new Date(864e13);function Hn(tn){return tn instanceof Date?tn:new Date(tn)}function br(tn,cn){return Je.slice(Je.indexOf(tn),Je.indexOf(cn)+1)}function ei(tn,cn,nr){var ir=br(cn,nr);return ir.indexOf(tn)!==-1}function mi(tn,cn,nr){return tn&&ei(tn,cn,nr)?tn:nr}function Li(tn){var cn=Je.indexOf(tn);return Ct[cn]}function na(tn,cn){var nr=Array.isArray(tn)?tn[cn]:tn;if(!nr)return null;var ir=Hn(nr);if(isNaN(ir.getTime()))throw new Error("Invalid date: ".concat(tn));return ir}function ji(tn,cn){var nr=tn.value,ir=tn.minDate,Lr=tn.maxDate,ua=tn.maxDetail,_a=na(nr,cn);if(!_a)return null;var Ka=Li(ua),yo=function(){switch(cn){case 0:return vn(Ka,_a);case 1:return Kn(Ka,_a);default:throw new Error("Invalid index value: ".concat(cn))}}();return jn(yo,ir,Lr)}var $a=function(tn){return ji(tn,0)},Ha=function(tn){return ji(tn,1)},Eo=function(tn){return[$a,Ha].map(function(cn){return cn(tn)})};function Uo(tn){var cn=tn.maxDate,nr=tn.maxDetail,ir=tn.minDate,Lr=tn.minDetail,ua=tn.value,_a=tn.view,Ka=mi(_a,Lr,nr),yo=$a({value:ua,minDate:ir,maxDate:cn,maxDetail:nr})||new Date;return vn(Ka,yo)}function Ms(tn){var cn=tn.activeStartDate,nr=tn.defaultActiveStartDate,ir=tn.defaultValue,Lr=tn.defaultView,ua=tn.maxDate,_a=tn.maxDetail,Ka=tn.minDate,yo=tn.minDetail,Ba=tn.value,Ma=tn.view,Mo=mi(Ma,yo,_a),Nr=cn||nr;return Nr?vn(Mo,Nr):Uo({maxDate:ua,maxDetail:_a,minDate:Ka,minDetail:yo,value:Ba||ir,view:Ma||Lr})}function er(tn){return tn&&(!Array.isArray(tn)||tn.length===1)}function Ar(tn,cn){return tn instanceof Date&&cn instanceof Date&&tn.getTime()===cn.getTime()}var Kr=(0,i.forwardRef)(function(cn,nr){var ir=cn.activeStartDate,Lr=cn.allowPartialRange,ua=cn.calendarType,_a=cn.className,Ka=cn.defaultActiveStartDate,yo=cn.defaultValue,Ba=cn.defaultView,Ma=cn.formatDay,Mo=cn.formatLongDate,Nr=cn.formatMonth,gi=cn.formatMonthYear,ea=cn.formatShortWeekday,dr=cn.formatWeekday,ci=cn.formatYear,yi=cn.goToRangeStartOnSelect,xa=yi===void 0?!0:yi,Cr=cn.inputRef,ka=cn.locale,Io=cn.maxDate,Co=Io===void 0?bn:Io,_s=cn.maxDetail,Is=_s===void 0?"month":_s,xs=cn.minDate,Zs=xs===void 0?Vt:xs,Ns=cn.minDetail,Us=Ns===void 0?"century":Ns,fu=cn.navigationAriaLabel,bu=cn.navigationAriaLive,Ys=cn.navigationLabel,Hu=cn.next2AriaLabel,Zu=cn.next2Label,ql=cn.nextAriaLabel,Sn=cn.nextLabel,Wn=cn.onActiveStartDateChange,vr=cn.onChange,kr=cn.onClickDay,ui=cn.onClickDecade,ta=cn.onClickMonth,St=cn.onClickWeekNumber,pt=cn.onClickYear,kt=cn.onDrillDown,_t=cn.onDrillUp,Mn=cn.onViewChange,Pr=cn.prev2AriaLabel,Hi=cn.prev2Label,jt=cn.prevAriaLabel,$n=cn.prevLabel,pn=cn.returnValue,ee=pn===void 0?"start":pn,oe=cn.selectRange,De=cn.showDoubleView,Be=cn.showFixedNumberOfWeeks,gt=cn.showNavigation,Ht=gt===void 0?!0:gt,nn=cn.showNeighboringMonth,Rn=nn===void 0?!0:nn,Yn=cn.showWeekNumbers,gr=cn.tileClassName,Ai=cn.tileContent,$i=cn.tileDisabled,ma=cn.value,La=cn.view,Qa=(0,i.useState)(Ka),go=Qa[0],Ao=Qa[1],Fo=(0,i.useState)(null),Ho=Fo[0],eu=Fo[1],ks=(0,i.useState)(Array.isArray(yo)?yo.map(function(Er){return Er!==null?Hn(Er):Er}):yo!=null?Hn(yo):yo),Gu=ks[0],an=ks[1],Nn=(0,i.useState)(Ba),tr=Nn[0],In=Nn[1],di=ir||go||Ms({activeStartDate:ir,defaultActiveStartDate:Ka,defaultValue:yo,defaultView:Ba,maxDate:Co,maxDetail:Is,minDate:Zs,minDetail:Us,value:ma,view:La}),oi=function(){var Er=function(){return oe&&er(Gu)?Gu:ma!==void 0?ma:Gu}();return Er?Array.isArray(Er)?Er.map(function(Sr){return Sr!==null?Hn(Sr):Sr}):Er!==null?Hn(Er):Er:null}(),ki=Li(Is),ri=mi(La||tr,Us,Is),bi=br(Us,Is),_n=oe?Ho:null,Ua=bi.indexOf(ri)<bi.length-1,va=bi.indexOf(ri)>0,Va=(0,i.useCallback)(function(Er){var Sr=function(){switch(ee){case"start":return $a;case"end":return Ha;case"range":return Eo;default:throw new Error("Invalid returnValue.")}}();return Sr({maxDate:Co,maxDetail:Is,minDate:Zs,value:Er})},[Co,Is,Zs,ee]),Qi=(0,i.useCallback)(function(Er,Sr){Ao(Er);var Vr={action:Sr,activeStartDate:Er,value:oi,view:ri};Wn&&!Ar(di,Er)&&Wn(Vr)},[di,Wn,oi,ri]),ro=(0,i.useCallback)(function(Er,Sr){var Vr=function(){switch(ri){case"century":return ui;case"decade":return pt;case"year":return ta;case"month":return kr;default:throw new Error("Invalid view: ".concat(ri,"."))}}();Vr&&Vr(Er,Sr)},[kr,ui,ta,pt,ri]),Pe=(0,i.useCallback)(function(Er,Sr){if(Ua){ro(Er,Sr);var Vr=bi[bi.indexOf(ri)+1];if(!Vr)throw new Error("Attempted to drill down from the lowest view.");Ao(Er),In(Vr);var fi={action:"drillDown",activeStartDate:Er,value:oi,view:Vr};Wn&&!Ar(di,Er)&&Wn(fi),Mn&&ri!==Vr&&Mn(fi),kt&&kt(fi)}},[di,Ua,Wn,ro,kt,Mn,oi,ri,bi]),Nt=(0,i.useCallback)(function(){if(va){var Er=bi[bi.indexOf(ri)-1];if(!Er)throw new Error("Attempted to drill up from the highest view.");var Sr=vn(Er,di);Ao(Sr),In(Er);var Vr={action:"drillUp",activeStartDate:Sr,value:oi,view:Er};Wn&&!Ar(di,Sr)&&Wn(Vr),Mn&&ri!==Er&&Mn(Vr),_t&&_t(Vr)}},[di,va,Wn,_t,Mn,oi,ri,bi]),un=(0,i.useCallback)(function(Er,Sr){var Vr=oi;ro(Er,Sr);var fi=oe&&!er(Vr),xr;if(oe)if(fi)xr=vn(ki,Er);else{if(!Vr)throw new Error("previousValue is required");if(Array.isArray(Vr))throw new Error("previousValue must not be an array");xr=Qr(ki,Vr,Er)}else xr=Va(Er);var Wr=!oe||fi||xa?Uo({maxDate:Co,maxDetail:Is,minDate:Zs,minDetail:Us,value:xr,view:ri}):null;Sr.persist(),Ao(Wr),an(xr);var ti={action:"onChange",activeStartDate:Wr,value:xr,view:ri};if(Wn&&!Ar(di,Wr)&&Wn(ti),vr)if(oe){var xi=er(xr);if(!xi)vr(xr||null,Sr);else if(Lr){if(Array.isArray(xr))throw new Error("value must not be an array");vr([xr||null,null],Sr)}}else vr(xr||null,Sr)},[di,Lr,Va,xa,Co,Is,Zs,Us,Wn,vr,ro,oe,oi,ki,ri]);function xn(Er){eu(Er)}function zn(){eu(null)}(0,i.useImperativeHandle)(nr,function(){return{activeStartDate:di,drillDown:Pe,drillUp:Nt,onChange:un,setActiveStartDate:Qi,value:oi,view:ri}},[di,Pe,Nt,un,Qi,oi,ri]);function sr(Er){var Sr=Er?Tt(ri,di):vn(ri,di),Vr=Ua?Pe:un,fi={activeStartDate:Sr,hover:_n,locale:ka,maxDate:Co,minDate:Zs,onClick:Vr,onMouseOver:oe?xn:null,tileClassName:gr,tileContent:Ai,tileDisabled:$i,value:oi,valueType:ki};switch(ri){case"century":return i.createElement(qi,le({formatYear:ci},fi));case"decade":return i.createElement(Fr,le({formatYear:ci},fi));case"year":return i.createElement(yt,le({formatMonth:Nr,formatMonthYear:gi},fi));case"month":return i.createElement(B,le({calendarType:ua,formatDay:Ma,formatLongDate:Mo,formatShortWeekday:ea,formatWeekday:dr,onClickWeekNumber:St,onMouseLeave:oe?zn:null,showFixedNumberOfWeeks:typeof Be<"u"?Be:De,showNeighboringMonth:Rn,showWeekNumbers:Yn},fi));default:throw new Error("Invalid view: ".concat(ri,"."))}}function Tr(){return Ht?i.createElement(On,{activeStartDate:di,drillUp:Nt,formatMonthYear:gi,formatYear:ci,locale:ka,maxDate:Co,minDate:Zs,navigationAriaLabel:fu,navigationAriaLive:bu,navigationLabel:Ys,next2AriaLabel:Hu,next2Label:Zu,nextAriaLabel:ql,nextLabel:Sn,prev2AriaLabel:Pr,prev2Label:Hi,prevAriaLabel:jt,prevLabel:$n,setActiveStartDate:Qi,showDoubleView:De,view:ri,views:bi}):null}var Br=Array.isArray(oi)?oi:[oi];return i.createElement("div",{className:h(Le,oe&&Br.length===1&&"".concat(Le,"--selectRange"),De&&"".concat(Le,"--doubleView"),_a),ref:Cr},Tr(),i.createElement("div",{className:"".concat(Le,"__viewContainer"),onBlur:oe?zn:void 0,onMouseLeave:oe?zn:void 0},sr(),De?sr(!0):null))}),ur=u().instanceOf(Date),Gr=u().oneOfType([u().string,u().instanceOf(Date)]),Pi=u().oneOfType([Gr,_r(Gr)]);Kr.propTypes={activeStartDate:ur,allowPartialRange:u().bool,calendarType:ha,className:Ca,defaultActiveStartDate:ur,defaultValue:Pi,defaultView:Qn,formatDay:u().func,formatLongDate:u().func,formatMonth:u().func,formatMonthYear:u().func,formatShortWeekday:u().func,formatWeekday:u().func,formatYear:u().func,goToRangeStartOnSelect:u().bool,inputRef:Oa,locale:u().string,maxDate:la,maxDetail:u().oneOf(Je),minDate:li,minDetail:u().oneOf(Je),navigationAriaLabel:u().string,navigationAriaLive:u().oneOf(["off","polite","assertive"]),navigationLabel:u().func,next2AriaLabel:u().string,next2Label:u().node,nextAriaLabel:u().string,nextLabel:u().node,onActiveStartDateChange:u().func,onChange:u().func,onClickDay:u().func,onClickDecade:u().func,onClickMonth:u().func,onClickWeekNumber:u().func,onClickYear:u().func,onDrillDown:u().func,onDrillUp:u().func,onViewChange:u().func,prev2AriaLabel:u().string,prev2Label:u().node,prevAriaLabel:u().string,prevLabel:u().node,returnValue:u().oneOf(["start","end","range"]),selectRange:u().bool,showDoubleView:u().bool,showFixedNumberOfWeeks:u().bool,showNavigation:u().bool,showNeighboringMonth:u().bool,showWeekNumbers:u().bool,tileClassName:u().oneOfType([u().func,Ca]),tileContent:u().oneOfType([u().func,u().node]),tileDisabled:u().func,value:Pi,view:Qn};const Fa=Kr},60441:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var i=Object.assign||function(y){for(var b=1;b<arguments.length;b++){var E=arguments[b];for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&(y[S]=E[S])}return y};c.renderViewDefault=h,c.renderTrackHorizontalDefault=p,c.renderTrackVerticalDefault=d,c.renderThumbHorizontalDefault=f,c.renderThumbVerticalDefault=g;var s=t(27702),u=v(s);function v(y){return y&&y.__esModule?y:{default:y}}function l(y,b){var E={};for(var S in y)b.indexOf(S)>=0||Object.prototype.hasOwnProperty.call(y,S)&&(E[S]=y[S]);return E}function h(y){return u.default.createElement("div",y)}function p(y){var b=y.style,E=l(y,["style"]),S=i({},b,{right:2,bottom:2,left:2,borderRadius:3});return u.default.createElement("div",i({style:S},E))}function d(y){var b=y.style,E=l(y,["style"]),S=i({},b,{right:2,bottom:2,top:2,borderRadius:3});return u.default.createElement("div",i({style:S},E))}function f(y){var b=y.style,E=l(y,["style"]),S=i({},b,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return u.default.createElement("div",i({style:S},E))}function g(y){var b=y.style,E=l(y,["style"]),S=i({},b,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return u.default.createElement("div",i({style:S},E))}},29672:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var i=Object.assign||function(X){for(var Z=1;Z<arguments.length;Z++){var J=arguments[Z];for(var q in J)Object.prototype.hasOwnProperty.call(J,q)&&(X[q]=J[q])}return X},s=function(){function X(Z,J){for(var q=0;q<J.length;q++){var L=J[q];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(Z,L.key,L)}}return function(Z,J,q){return J&&X(Z.prototype,J),q&&X(Z,q),Z}}(),u=t(71151),v=N(u),l=t(63570),h=N(l),p=t(27702),d=t(93415),f=N(d),g=t(41559),y=N(g),b=t(37246),E=N(b),S=t(99284),w=N(S),x=t(28658),P=N(x),R=t(60305),T=N(R),A=t(78339),I=t(60441);function N(X){return X&&X.__esModule?X:{default:X}}function K(X,Z){var J={};for(var q in X)Z.indexOf(q)>=0||Object.prototype.hasOwnProperty.call(X,q)&&(J[q]=X[q]);return J}function _(X,Z){if(!(X instanceof Z))throw new TypeError("Cannot call a class as a function")}function W(X,Z){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z&&(typeof Z=="object"||typeof Z=="function")?Z:X}function j(X,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Z);X.prototype=Object.create(Z&&Z.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),Z&&(Object.setPrototypeOf?Object.setPrototypeOf(X,Z):X.__proto__=Z)}var re=function(X){j(Z,X);function Z(J){var q;_(this,Z);for(var L=arguments.length,$=Array(L>1?L-1:0),k=1;k<L;k++)$[k-1]=arguments[k];var F=W(this,(q=Z.__proto__||Object.getPrototypeOf(Z)).call.apply(q,[this,J].concat($)));return F.getScrollLeft=F.getScrollLeft.bind(F),F.getScrollTop=F.getScrollTop.bind(F),F.getScrollWidth=F.getScrollWidth.bind(F),F.getScrollHeight=F.getScrollHeight.bind(F),F.getClientWidth=F.getClientWidth.bind(F),F.getClientHeight=F.getClientHeight.bind(F),F.getValues=F.getValues.bind(F),F.getThumbHorizontalWidth=F.getThumbHorizontalWidth.bind(F),F.getThumbVerticalHeight=F.getThumbVerticalHeight.bind(F),F.getScrollLeftForOffset=F.getScrollLeftForOffset.bind(F),F.getScrollTopForOffset=F.getScrollTopForOffset.bind(F),F.scrollLeft=F.scrollLeft.bind(F),F.scrollTop=F.scrollTop.bind(F),F.scrollToLeft=F.scrollToLeft.bind(F),F.scrollToTop=F.scrollToTop.bind(F),F.scrollToRight=F.scrollToRight.bind(F),F.scrollToBottom=F.scrollToBottom.bind(F),F.handleTrackMouseEnter=F.handleTrackMouseEnter.bind(F),F.handleTrackMouseLeave=F.handleTrackMouseLeave.bind(F),F.handleHorizontalTrackMouseDown=F.handleHorizontalTrackMouseDown.bind(F),F.handleVerticalTrackMouseDown=F.handleVerticalTrackMouseDown.bind(F),F.handleHorizontalThumbMouseDown=F.handleHorizontalThumbMouseDown.bind(F),F.handleVerticalThumbMouseDown=F.handleVerticalThumbMouseDown.bind(F),F.handleWindowResize=F.handleWindowResize.bind(F),F.handleScroll=F.handleScroll.bind(F),F.handleDrag=F.handleDrag.bind(F),F.handleDragEnd=F.handleDragEnd.bind(F),F.state={didMountUniversal:!1},F}return s(Z,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var q=this.props.universal;q&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,u.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var q=this.view||{},L=q.scrollLeft,$=L===void 0?0:L,k=q.scrollTop,F=k===void 0?0:k,V=q.scrollWidth,pe=V===void 0?0:V,ce=q.scrollHeight,G=ce===void 0?0:ce,te=q.clientWidth,ie=te===void 0?0:te,fe=q.clientHeight,Se=fe===void 0?0:fe;return{left:$/(pe-ie)||0,top:F/(G-Se)||0,scrollLeft:$,scrollTop:F,scrollWidth:pe,scrollHeight:G,clientWidth:ie,clientHeight:Se}}},{key:"getThumbHorizontalWidth",value:function(){var q=this.props,L=q.thumbSize,$=q.thumbMinSize,k=this.view,F=k.scrollWidth,V=k.clientWidth,pe=(0,P.default)(this.trackHorizontal),ce=Math.ceil(V/F*pe);return pe<=ce?0:L||Math.max(ce,$)}},{key:"getThumbVerticalHeight",value:function(){var q=this.props,L=q.thumbSize,$=q.thumbMinSize,k=this.view,F=k.scrollHeight,V=k.clientHeight,pe=(0,T.default)(this.trackVertical),ce=Math.ceil(V/F*pe);return pe<=ce?0:L||Math.max(ce,$)}},{key:"getScrollLeftForOffset",value:function(q){var L=this.view,$=L.scrollWidth,k=L.clientWidth,F=(0,P.default)(this.trackHorizontal),V=this.getThumbHorizontalWidth();return q/(F-V)*($-k)}},{key:"getScrollTopForOffset",value:function(q){var L=this.view,$=L.scrollHeight,k=L.clientHeight,F=(0,T.default)(this.trackVertical),V=this.getThumbVerticalHeight();return q/(F-V)*($-k)}},{key:"scrollLeft",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=q)}},{key:"scrollTop",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=q)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var q=this.view,L=this.trackHorizontal,$=this.trackVertical,k=this.thumbHorizontal,F=this.thumbVertical;q.addEventListener("scroll",this.handleScroll),(0,E.default)()&&(L.addEventListener("mouseenter",this.handleTrackMouseEnter),L.addEventListener("mouseleave",this.handleTrackMouseLeave),L.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),$.addEventListener("mouseenter",this.handleTrackMouseEnter),$.addEventListener("mouseleave",this.handleTrackMouseLeave),$.addEventListener("mousedown",this.handleVerticalTrackMouseDown),k.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),F.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var q=this.view,L=this.trackHorizontal,$=this.trackVertical,k=this.thumbHorizontal,F=this.thumbVertical;q.removeEventListener("scroll",this.handleScroll),(0,E.default)()&&(L.removeEventListener("mouseenter",this.handleTrackMouseEnter),L.removeEventListener("mouseleave",this.handleTrackMouseLeave),L.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),$.removeEventListener("mouseenter",this.handleTrackMouseEnter),$.removeEventListener("mouseleave",this.handleTrackMouseLeave),$.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),k.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),F.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(q){var L=this,$=this.props,k=$.onScroll,F=$.onScrollFrame;k&&k(q),this.update(function(V){var pe=V.scrollLeft,ce=V.scrollTop;L.viewScrollLeft=pe,L.viewScrollTop=ce,F&&F(V)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var q=this.props.onScrollStart;q&&q(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var q=this.props.autoHide;q&&this.showTracks()}},{key:"handleScrollStop",value:function(){var q=this.props.onScrollStop;q&&q(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var q=this.props.autoHide;q&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,E.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(q){q.preventDefault();var L=q.target,$=q.clientX,k=L.getBoundingClientRect(),F=k.left,V=this.getThumbHorizontalWidth(),pe=Math.abs(F-$)-V/2;this.view.scrollLeft=this.getScrollLeftForOffset(pe)}},{key:"handleVerticalTrackMouseDown",value:function(q){q.preventDefault();var L=q.target,$=q.clientY,k=L.getBoundingClientRect(),F=k.top,V=this.getThumbVerticalHeight(),pe=Math.abs(F-$)-V/2;this.view.scrollTop=this.getScrollTopForOffset(pe)}},{key:"handleHorizontalThumbMouseDown",value:function(q){q.preventDefault(),this.handleDragStart(q);var L=q.target,$=q.clientX,k=L.offsetWidth,F=L.getBoundingClientRect(),V=F.left;this.prevPageX=k-($-V)}},{key:"handleVerticalThumbMouseDown",value:function(q){q.preventDefault(),this.handleDragStart(q);var L=q.target,$=q.clientY,k=L.offsetHeight,F=L.getBoundingClientRect(),V=F.top;this.prevPageY=k-($-V)}},{key:"setupDragging",value:function(){(0,h.default)(document.body,A.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=w.default}},{key:"teardownDragging",value:function(){(0,h.default)(document.body,A.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(q){this.dragging=!0,q.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(q){if(this.prevPageX){var L=q.clientX,$=this.trackHorizontal.getBoundingClientRect(),k=$.left,F=this.getThumbHorizontalWidth(),V=F-this.prevPageX,pe=-k+L-V;this.view.scrollLeft=this.getScrollLeftForOffset(pe)}if(this.prevPageY){var ce=q.clientY,G=this.trackVertical.getBoundingClientRect(),te=G.top,ie=this.getThumbVerticalHeight(),fe=ie-this.prevPageY,Se=-te+ce-fe;this.view.scrollTop=this.getScrollTopForOffset(Se)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var q=this.props.autoHide;q&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var q=this.props.autoHide;q&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var q=this.props.autoHide;q&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,h.default)(this.trackHorizontal,{opacity:1}),(0,h.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var q=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var L=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,h.default)(q.trackHorizontal,{opacity:0}),(0,h.default)(q.trackVertical,{opacity:0})},L)}}},{key:"detectScrolling",value:function(){var q=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){q.lastViewScrollLeft===q.viewScrollLeft&&q.lastViewScrollTop===q.viewScrollTop&&(clearInterval(q.detectScrollingInterval),q.scrolling=!1,q.handleScrollStop()),q.lastViewScrollLeft=q.viewScrollLeft,q.lastViewScrollTop=q.viewScrollTop},100))}},{key:"raf",value:function(q){var L=this;this.requestFrame&&v.default.cancel(this.requestFrame),this.requestFrame=(0,v.default)(function(){L.requestFrame=void 0,q()})}},{key:"update",value:function(q){var L=this;this.raf(function(){return L._update(q)})}},{key:"_update",value:function(q){var L=this.props,$=L.onUpdate,k=L.hideTracksWhenNotNeeded,F=this.getValues();if((0,E.default)()){var V=F.scrollLeft,pe=F.clientWidth,ce=F.scrollWidth,G=(0,P.default)(this.trackHorizontal),te=this.getThumbHorizontalWidth(),ie=V/(ce-pe)*(G-te),fe={width:te,transform:"translateX("+ie+"px)"},Se=F.scrollTop,he=F.clientHeight,me=F.scrollHeight,_e=(0,T.default)(this.trackVertical),we=this.getThumbVerticalHeight(),Ge=Se/(me-he)*(_e-we),ht={height:we,transform:"translateY("+Ge+"px)"};if(k){var nt={visibility:ce>pe?"visible":"hidden"},Re={visibility:me>he?"visible":"hidden"};(0,h.default)(this.trackHorizontal,nt),(0,h.default)(this.trackVertical,Re)}(0,h.default)(this.thumbHorizontal,fe),(0,h.default)(this.thumbVertical,ht)}$&&$(F),typeof q=="function"&&q(F)}},{key:"render",value:function(){var q=this,L=(0,E.default)(),$=this.props,k=$.onScroll,F=$.onScrollFrame,V=$.onScrollStart,pe=$.onScrollStop,ce=$.onUpdate,G=$.renderView,te=$.renderTrackHorizontal,ie=$.renderTrackVertical,fe=$.renderThumbHorizontal,Se=$.renderThumbVertical,he=$.tagName,me=$.hideTracksWhenNotNeeded,_e=$.autoHide,we=$.autoHideTimeout,Ge=$.autoHideDuration,ht=$.thumbSize,nt=$.thumbMinSize,Re=$.universal,ue=$.autoHeight,ae=$.autoHeightMin,ve=$.autoHeightMax,Me=$.style,Ye=$.children,qe=K($,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),At=this.state.didMountUniversal,It=i({},A.containerStyleDefault,ue&&i({},A.containerStyleAutoHeight,{minHeight:ae,maxHeight:ve}),Me),Ce=i({},A.viewStyleDefault,{marginRight:L?-L:0,marginBottom:L?-L:0},ue&&i({},A.viewStyleAutoHeight,{minHeight:(0,y.default)(ae)?"calc("+ae+" + "+L+"px)":ae+L,maxHeight:(0,y.default)(ve)?"calc("+ve+" + "+L+"px)":ve+L}),ue&&Re&&!At&&{minHeight:ae,maxHeight:ve},Re&&!At&&A.viewStyleUniversalInitial),Ae={transition:"opacity "+Ge+"ms",opacity:0},$e=i({},A.trackHorizontalStyleDefault,_e&&Ae,(!L||Re&&!At)&&{display:"none"}),tt=i({},A.trackVerticalStyleDefault,_e&&Ae,(!L||Re&&!At)&&{display:"none"});return(0,p.createElement)(he,i({},qe,{style:It,ref:function(Oe){q.container=Oe}}),[(0,p.cloneElement)(G({style:Ce}),{key:"view",ref:function(Oe){q.view=Oe}},Ye),(0,p.cloneElement)(te({style:$e}),{key:"trackHorizontal",ref:function(Oe){q.trackHorizontal=Oe}},(0,p.cloneElement)(fe({style:A.thumbHorizontalStyleDefault}),{ref:function(Oe){q.thumbHorizontal=Oe}})),(0,p.cloneElement)(ie({style:tt}),{key:"trackVertical",ref:function(Oe){q.trackVertical=Oe}},(0,p.cloneElement)(Se({style:A.thumbVerticalStyleDefault}),{ref:function(Oe){q.thumbVertical=Oe}}))])}}]),Z}(p.Component);c.default=re,re.propTypes={onScroll:f.default.func,onScrollFrame:f.default.func,onScrollStart:f.default.func,onScrollStop:f.default.func,onUpdate:f.default.func,renderView:f.default.func,renderTrackHorizontal:f.default.func,renderTrackVertical:f.default.func,renderThumbHorizontal:f.default.func,renderThumbVertical:f.default.func,tagName:f.default.string,thumbSize:f.default.number,thumbMinSize:f.default.number,hideTracksWhenNotNeeded:f.default.bool,autoHide:f.default.bool,autoHideTimeout:f.default.number,autoHideDuration:f.default.number,autoHeight:f.default.bool,autoHeightMin:f.default.oneOfType([f.default.number,f.default.string]),autoHeightMax:f.default.oneOfType([f.default.number,f.default.string]),universal:f.default.bool,style:f.default.object,children:f.default.node},re.defaultProps={renderView:I.renderViewDefault,renderTrackHorizontal:I.renderTrackHorizontalDefault,renderTrackVertical:I.renderTrackVerticalDefault,renderThumbHorizontal:I.renderThumbHorizontalDefault,renderThumbVertical:I.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},78339:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var t=c.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},i=c.containerStyleAutoHeight={height:"auto"},s=c.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},u=c.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},v=c.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},l=c.trackHorizontalStyleDefault={position:"absolute",height:6},h=c.trackVerticalStyleDefault={position:"absolute",width:6},p=c.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},d=c.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},f=c.disableSelectStyle={userSelect:"none"},g=c.disableSelectStyleReset={userSelect:""}},37381:(C,c,t)=>{"use strict";var i;i={value:!0},i=void 0;var s=t(29672),u=v(s);function v(l){return l&&l.__esModule?l:{default:l}}c.ZP=u.default,i=u.default},60305:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=t;function t(i){var s=i.clientHeight,u=getComputedStyle(i),v=u.paddingTop,l=u.paddingBottom;return s-parseFloat(v)-parseFloat(l)}},28658:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=t;function t(i){var s=i.clientWidth,u=getComputedStyle(i),v=u.paddingLeft,l=u.paddingRight;return s-parseFloat(v)-parseFloat(l)}},37246:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=l;var i=t(63570),s=u(i);function u(h){return h&&h.__esModule?h:{default:h}}var v=!1;function l(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(h&&v!==!1)return v;if(typeof document<"u"){var p=document.createElement("div");(0,s.default)(p,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(p),v=p.offsetWidth-p.clientWidth,document.body.removeChild(p)}else v=0;return v||0}},41559:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=t;function t(i){return typeof i=="string"}},99284:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=t;function t(){return!1}},5655:function(C,c,t){"use strict";var i=this&&this.__read||function(g,y){var b=typeof Symbol=="function"&&g[Symbol.iterator];if(!b)return g;var E=b.call(g),S,w=[],x;try{for(;(y===void 0||y-- >0)&&!(S=E.next()).done;)w.push(S.value)}catch(P){x={error:P}}finally{try{S&&!S.done&&(b=E.return)&&b.call(E)}finally{if(x)throw x.error}}return w},s=this&&this.__spread||function(){for(var g=[],y=0;y<arguments.length;y++)g=g.concat(i(arguments[y]));return g};Object.defineProperty(c,"__esModule",{value:!0});var u=t(59397),v=u,l;(function(g){g[g.DEFAULT=0]="DEFAULT",g[g.ADDED=1]="ADDED",g[g.REMOVED=2]="REMOVED"})(l=c.DiffType||(c.DiffType={}));var h;(function(g){g.CHARS="diffChars",g.WORDS="diffWords",g.WORDS_WITH_SPACE="diffWordsWithSpace",g.LINES="diffLines",g.TRIMMED_LINES="diffTrimmedLines",g.SENTENCES="diffSentences",g.CSS="diffCss"})(h=c.DiffMethod||(c.DiffMethod={}));var p=function(g){var y=g.split(` `),b=y.every(function(w){return!w});if(b)return y.length===2?[]:(y.pop(),y);var E=y[y.length-1],S=y[0];return E||y.pop(),S||y.shift(),y},d=function(g,y,b){b===void 0&&(b=h.CHARS);var E=v[b](g,y),S={left:[],right:[]};return E.forEach(function(w){var x=w.added,P=w.removed,R=w.value,T={};return x&&(T.type=l.ADDED,T.value=R,S.right.push(T)),P&&(T.type=l.REMOVED,T.value=R,S.left.push(T)),!P&&!x&&(T.type=l.DEFAULT,T.value=R,S.right.push(T),S.left.push(T)),T}),S},f=function(g,y,b,E,S){b===void 0&&(b=!1),E===void 0&&(E=h.CHARS),S===void 0&&(S=0);var w=u.diffLines(g.trimRight(),y.trimRight(),{newlineIsToken:!0,ignoreWhitespace:!1,ignoreCase:!1}),x=S,P=S,R=[],T=0,A=[],I=[],N=function(K,_,W,j,re){var X=p(K);return X.map(function(Z,J){var q={},L={};if(!(I.includes(_+"-"+J)||re&&J!==0)){if(W||j)if(A.includes(T)||A.push(T),j){P+=1,q.lineNumber=P,q.type=l.REMOVED,q.value=Z||" ";var $=w[_+1];if($&&$.added){var k=p($.value)[J];if(k){var F=N($.value,_,!0,!1,!0)[0].right,V=F.value,pe=F.lineNumber,ce=F.type;if(I.push(_+1+"-"+J),L.lineNumber=pe,L.type=ce,b)L.value=V;else{var G=d(Z,V,E);L.value=G.right,q.value=G.left}}}}else x+=1,L.lineNumber=x,L.type=l.ADDED,L.value=Z;else P+=1,x+=1,q.lineNumber=P,q.type=l.DEFAULT,q.value=Z,L.lineNumber=x,L.type=l.DEFAULT,L.value=Z;return T+=1,{right:L,left:q}}}).filter(Boolean)};return w.forEach(function(K,_){var W=K.added,j=K.removed,re=K.value;R=s(R,N(re,_,W,j))}),{lineInformation:R,diffLines:A}};c.computeLineInformation=f},7698:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var y=function(b,E){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,w){S.__proto__=w}||function(S,w){for(var x in w)w.hasOwnProperty(x)&&(S[x]=w[x])},y(b,E)};return function(b,E){y(b,E);function S(){this.constructor=b}b.prototype=E===null?Object.create(E):(S.prototype=E.prototype,new S)}}();Object.defineProperty(c,"__esModule",{value:!0});var s=t(27702),u=t(93415),v=t(28040),l=t(5655);c.DiffMethod=l.DiffMethod;var h=t(57229),p=t(9200),d=p.default||p,f;(function(y){y.LEFT="L",y.RIGHT="R"})(f=c.LineNumberPrefix||(c.LineNumberPrefix={}));var g=function(y){i(b,y);function b(E){var S=y.call(this,E)||this;return S.resetCodeBlocks=function(){return S.state.expandedBlocks.length>0?(S.setState({expandedBlocks:[]}),!0):!1},S.onBlockExpand=function(w){var x=S.state.expandedBlocks.slice();x.push(w),S.setState({expandedBlocks:x})},S.computeStyles=d(h.default),S.onLineNumberClickProxy=function(w){return S.props.onLineNumberClick?function(x){return S.props.onLineNumberClick(w,x)}:function(){}},S.renderWordDiff=function(w,x){return w.map(function(P,R){var T;return s.createElement("span",{key:R,className:v.default(S.styles.wordDiff,(T={},T[S.styles.wordAdded]=P.type===l.DiffType.ADDED,T[S.styles.wordRemoved]=P.type===l.DiffType.REMOVED,T))},x?x(P.value):P.value)})},S.renderLine=function(w,x,P,R,T,A){var I,N,K,_,W=P+"-"+w,j=A+"-"+T,re=S.props.highlightLines.includes(W)||S.props.highlightLines.includes(j),X=x===l.DiffType.ADDED,Z=x===l.DiffType.REMOVED,J;return Array.isArray(R)?J=S.renderWordDiff(R,S.props.renderContent):S.props.renderContent?J=S.props.renderContent(R):J=R,s.createElement(s.Fragment,null,!S.props.hideLineNumbers&&s.createElement("td",{onClick:w&&S.onLineNumberClickProxy(W),className:v.default(S.styles.gutter,(I={},I[S.styles.emptyGutter]=!w,I[S.styles.diffAdded]=X,I[S.styles.diffRemoved]=Z,I[S.styles.highlightedGutter]=re,I))},s.createElement("pre",{className:S.styles.lineNumber},w)),!S.props.splitView&&!S.props.hideLineNumbers&&s.createElement("td",{onClick:T&&S.onLineNumberClickProxy(j),className:v.default(S.styles.gutter,(N={},N[S.styles.emptyGutter]=!T,N[S.styles.diffAdded]=X,N[S.styles.diffRemoved]=Z,N[S.styles.highlightedGutter]=re,N))},s.createElement("pre",{className:S.styles.lineNumber},T)),s.createElement("td",{className:v.default(S.styles.marker,(K={},K[S.styles.emptyLine]=!J,K[S.styles.diffAdded]=X,K[S.styles.diffRemoved]=Z,K[S.styles.highlightedLine]=re,K))},s.createElement("pre",null,X&&"+",Z&&"-")),s.createElement("td",{className:v.default(S.styles.content,(_={},_[S.styles.emptyLine]=!J,_[S.styles.diffAdded]=X,_[S.styles.diffRemoved]=Z,_[S.styles.highlightedLine]=re,_))},s.createElement("pre",{className:S.styles.contentText},J)))},S.renderSplitView=function(w,x){var P=w.left,R=w.right;return s.createElement("tr",{key:x,className:S.styles.line},S.renderLine(P.lineNumber,P.type,f.LEFT,P.value),S.renderLine(R.lineNumber,R.type,f.RIGHT,R.value))},S.renderInlineView=function(w,x){var P=w.left,R=w.right,T;return P.type===l.DiffType.REMOVED&&R.type===l.DiffType.ADDED?s.createElement(s.Fragment,{key:x},s.createElement("tr",{className:S.styles.line},S.renderLine(P.lineNumber,P.type,f.LEFT,P.value,null)),s.createElement("tr",{className:S.styles.line},S.renderLine(null,R.type,f.RIGHT,R.value,R.lineNumber))):(P.type===l.DiffType.REMOVED&&(T=S.renderLine(P.lineNumber,P.type,f.LEFT,P.value,null)),P.type===l.DiffType.DEFAULT&&(T=S.renderLine(P.lineNumber,P.type,f.LEFT,P.value,R.lineNumber,f.RIGHT)),R.type===l.DiffType.ADDED&&(T=S.renderLine(null,R.type,f.RIGHT,R.value,R.lineNumber)),s.createElement("tr",{key:x,className:S.styles.line},T))},S.onBlockClickProxy=function(w){return function(){return S.onBlockExpand(w)}},S.renderSkippedLineIndicator=function(w,x,P,R){var T,A=S.props,I=A.hideLineNumbers,N=A.splitView,K=S.props.codeFoldMessageRenderer?S.props.codeFoldMessageRenderer(w,P,R):s.createElement("pre",{className:S.styles.codeFoldContent},"Expand ",w," lines ..."),_=s.createElement("td",null,s.createElement("a",{onClick:S.onBlockClickProxy(x),tabIndex:0},K)),W=!N&&!I;return s.createElement("tr",{key:P+"-"+R,className:S.styles.codeFold},!I&&s.createElement("td",{className:S.styles.codeFoldGutter}),s.createElement("td",{className:v.default((T={},T[S.styles.codeFoldGutter]=W,T))}),W?s.createElement(s.Fragment,null,s.createElement("td",null),_):s.createElement(s.Fragment,null,_,s.createElement("td",null)),s.createElement("td",null),s.createElement("td",null))},S.renderDiff=function(){var w=S.props,x=w.oldValue,P=w.newValue,R=w.splitView,T=w.disableWordDiff,A=w.compareMethod,I=w.linesOffset,N=l.computeLineInformation(x,P,T,A,I),K=N.lineInformation,_=N.diffLines,W=S.props.extraLinesSurroundingDiff<0?0:S.props.extraLinesSurroundingDiff,j=[];return K.map(function(re,X){var Z=_[0],J=Z-X;if(S.props.showDiffOnly&&(J===-W&&(j=[],_.shift()),re.left.type===l.DiffType.DEFAULT&&(J>W||typeof Z>"u")&&!S.state.expandedBlocks.includes(Z)))return j.push(X+1),X===K.length-1&&j.length>1?S.renderSkippedLineIndicator(j.length,Z,re.left.lineNumber,re.right.lineNumber):null;var q=R?S.renderSplitView(re,X):S.renderInlineView(re,X);if(J===W&&j.length>0){var L=j.length;return j=[],s.createElement(s.Fragment,{key:X},S.renderSkippedLineIndicator(L,Z,re.left.lineNumber,re.right.lineNumber),q)}return q})},S.render=function(){var w,x=S.props,P=x.oldValue,R=x.newValue,T=x.useDarkTheme,A=x.leftTitle,I=x.rightTitle,N=x.splitView,K=x.hideLineNumbers;if(typeof P!="string"||typeof R!="string")throw Error('"oldValue" and "newValue" should be strings');S.styles=S.computeStyles(S.props.styles,T);var _=S.renderDiff(),W=K?2:3,j=K?2:4,re=(A||I)&&s.createElement("tr",null,s.createElement("td",{colSpan:N?W:j,className:S.styles.titleBlock},s.createElement("pre",{className:S.styles.contentText},A)),N&&s.createElement("td",{colSpan:W,className:S.styles.titleBlock},s.createElement("pre",{className:S.styles.contentText},I)));return s.createElement("table",{className:v.default(S.styles.diffContainer,(w={},w[S.styles.splitView]=N,w))},s.createElement("tbody",null,re,_))},S.state={expandedBlocks:[]},S}return b.defaultProps={oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:l.DiffMethod.CHARS,styles:{},hideLineNumbers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0},b.propTypes={oldValue:u.string.isRequired,newValue:u.string.isRequired,splitView:u.bool,disableWordDiff:u.bool,compareMethod:u.oneOf(Object.values(l.DiffMethod)),renderContent:u.func,onLineNumberClick:u.func,extraLinesSurroundingDiff:u.number,styles:u.object,hideLineNumbers:u.bool,showDiffOnly:u.bool,highlightLines:u.arrayOf(u.string),leftTitle:u.oneOfType([u.string,u.element]),rightTitle:u.oneOfType([u.string,u.element]),linesOffset:u.number},b}(s.Component);c.default=g},57229:function(C,c,t){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(v){for(var l,h=1,p=arguments.length;h<p;h++){l=arguments[h];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(v[d]=l[d])}return v},i.apply(this,arguments)},s=this&&this.__rest||function(v,l){var h={};for(var p in v)Object.prototype.hasOwnProperty.call(v,p)&&l.indexOf(p)<0&&(h[p]=v[p]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,p=Object.getOwnPropertySymbols(v);d<p.length;d++)l.indexOf(p[d])<0&&Object.prototype.propertyIsEnumerable.call(v,p[d])&&(h[p[d]]=v[p[d]]);return h};Object.defineProperty(c,"__esModule",{value:!0});var u=t(95611);c.default=function(v,l){var h,p,d,f,g,y,b;l===void 0&&(l=!1);var E=v.variables,S=E===void 0?{}:E,w=s(v,["variables"]),x={light:i({diffViewerBackground:"#fff",diffViewerColor:"212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee"},S.light||{}),dark:i({diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#044B53",addedColor:"white",removedBackground:"#632F34",removedColor:"white",wordAddedBackground:"#055d67",wordRemovedBackground:"#7d383f",addedGutterBackground:"#034148",removedGutterBackground:"#632b30",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#21232b",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#464c67",addedGutterColor:"#8c8c8c",removedGutterColor:"#8c8c8c",codeFoldContentColor:"#555a7b",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#555a7b",diffViewerTitleBorderColor:"#353846"},S.dark||{})},P=l?x.dark:x.light,R=u.css({width:"100%",label:"content"}),T=u.css((h={},h["."+R]={width:"50%"},h.label="split-view",h)),A=u.css({width:"100%",background:P.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"25px"},label:"diff-container",borderCollapse:"collapse"}),I=u.css({color:P.codeFoldContentColor,label:"code-fold-content"}),N=u.css({color:P.diffViewerColor,label:"content-text"}),K=u.css((p={background:P.diffViewerTitleBackground,padding:10,borderBottom:"1px solid "+P.diffViewerTitleBorderColor,label:"title-block",":last-child":{borderLeft:"1px solid "+P.diffViewerTitleBorderColor}},p["."+N]={color:P.diffViewerTitleColor},p)),_=u.css({color:P.gutterColor,label:"line-number"}),W=u.css((d={background:P.removedBackground,color:P.removedColor,pre:{color:P.removedColor}},d["."+_]={color:P.removedGutterColor},d.label="diff-removed",d)),j=u.css((f={background:P.addedBackground,color:P.addedColor,pre:{color:P.addedColor}},f["."+_]={color:P.addedGutterColor},f.label="diff-added",f)),re=u.css({padding:2,display:"inline-flex",borderRadius:1,label:"word-diff"}),X=u.css({background:P.wordAddedBackground,label:"word-added"}),Z=u.css({background:P.wordRemovedBackground,label:"word-removed"}),J=u.css({backgroundColor:P.codeFoldGutterBackground,label:"code-fold-gutter"}),q=u.css({backgroundColor:P.codeFoldBackground,height:40,fontSize:14,fontWeight:700,label:"code-fold",a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),L=u.css({backgroundColor:P.emptyLineBackground,label:"empty-line"}),$=u.css((g={width:25,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker"},g["&."+j]={pre:{color:P.addedColor}},g["&."+W]={pre:{color:P.removedColor}},g)),k=u.css((y={background:P.highlightBackground,label:"highlighted-line"},y["."+X+", ."+Z]={backgroundColor:"initial"},y)),F=u.css({label:"highlighted-gutter"}),V=u.css((b={userSelect:"none",minWidth:50,padding:"0 10px",label:"gutter",textAlign:"right",background:P.gutterBackground,"&:hover":{cursor:"pointer",background:P.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5}},b["&."+j]={background:P.addedGutterBackground},b["&."+W]={background:P.removedGutterBackground},b["&."+F]={background:P.highlightGutterBackground,"&:hover":{background:P.highlightGutterBackground}},b)),pe=u.css({"&:hover":{background:P.gutterBackground,cursor:"initial"},label:"empty-gutter"}),ce=u.css({verticalAlign:"baseline",label:"line"}),G={diffContainer:A,diffRemoved:W,diffAdded:j,splitView:T,marker:$,highlightedGutter:F,highlightedLine:k,gutter:V,line:ce,wordDiff:re,wordAdded:X,wordRemoved:Z,codeFoldGutter:J,codeFold:q,emptyGutter:pe,emptyLine:L,lineNumber:_,contentText:N,content:R,codeFoldContent:I,titleBlock:K},te=Object.keys(w).reduce(function(ie,fe){var Se;return i({},ie,(Se={},Se[fe]=u.css(w[fe]),Se))},{});return Object.keys(G).reduce(function(ie,fe){var Se;return i({},ie,(Se={},Se[fe]=te[fe]?u.cx(G[fe],te[fe]):G[fe],Se))},{})}},80989:(C,c,t)=>{"use strict";/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=t(27702),s=t(71869);function u(D){for(var H="https://reactjs.org/docs/error-decoder.html?invariant="+D,Te=1;Te<arguments.length;Te++)H+="&args[]="+encodeURIComponent(arguments[Te]);return"Minified React error #"+D+"; visit "+H+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v=new Set,l={};function h(D,H){p(D,H),p(D+"Capture",H)}function p(D,H){for(l[D]=H,D=0;D<H.length;D++)v.add(H[D])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},b={};function E(D){return f.call(b,D)?!0:f.call(y,D)?!1:g.test(D)?b[D]=!0:(y[D]=!0,!1)}function S(D,H,Te,ft){if(Te!==null&&Te.type===0)return!1;switch(typeof H){case"function":case"symbol":return!0;case"boolean":return ft?!1:Te!==null?!Te.acceptsBooleans:(D=D.toLowerCase().slice(0,5),D!=="data-"&&D!=="aria-");default:return!1}}function w(D,H,Te,ft){if(H===null||typeof H>"u"||S(D,H,Te,ft))return!0;if(ft)return!1;if(Te!==null)switch(Te.type){case 3:return!H;case 4:return H===!1;case 5:return isNaN(H);case 6:return isNaN(H)||1>H}return!1}function x(D,H,Te,ft,yn,kn,hi){this.acceptsBooleans=H===2||H===3||H===4,this.attributeName=ft,this.attributeNamespace=yn,this.mustUseProperty=Te,this.propertyName=D,this.type=H,this.sanitizeURL=kn,this.removeEmptyString=hi}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(D){P[D]=new x(D,0,!1,D,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(D){var H=D[0];P[H]=new x(H,1,!1,D[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(D){P[D]=new x(D,2,!1,D.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(D){P[D]=new x(D,2,!1,D,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(D){P[D]=new x(D,3,!1,D.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(D){P[D]=new x(D,3,!0,D,null,!1,!1)}),["capture","download"].forEach(function(D){P[D]=new x(D,4,!1,D,null,!1,!1)}),["cols","rows","size","span"].forEach(function(D){P[D]=new x(D,6,!1,D,null,!1,!1)}),["rowSpan","start"].forEach(function(D){P[D]=new x(D,5,!1,D.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function T(D){return D[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(D){var H=D.replace(R,T);P[H]=new x(H,1,!1,D,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(D){var H=D.replace(R,T);P[H]=new x(H,1,!1,D,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(D){var H=D.replace(R,T);P[H]=new x(H,1,!1,D,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(D){P[D]=new x(D,1,!1,D.toLowerCase(),null,!1,!1)}),P.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(D){P[D]=new x(D,1,!1,D.toLowerCase(),null,!0,!0)});function A(D,H,Te,ft){var yn=P.hasOwnProperty(H)?P[H]:null;(yn!==null?yn.type!==0:ft||!(2<H.length)||H[0]!=="o"&&H[0]!=="O"||H[1]!=="n"&&H[1]!=="N")&&(w(H,Te,yn,ft)&&(Te=null),ft||yn===null?E(H)&&(Te===null?D.removeAttribute(H):D.setAttribute(H,""+Te)):yn.mustUseProperty?D[yn.propertyName]=Te===null?yn.type===3?!1:"":Te:(H=yn.attributeName,ft=yn.attributeNamespace,Te===null?D.removeAttribute(H):(yn=yn.type,Te=yn===3||yn===4&&Te===!0?"":""+Te,ft?D.setAttributeNS(ft,H,Te):D.setAttribute(H,Te))))}var I=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=Symbol.for("react.element"),K=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),re=Symbol.for("react.provider"),X=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),$=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var k=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var F=Symbol.iterator;function V(D){return D===null||typeof D!="object"?null:(D=F&&D[F]||D["@@iterator"],typeof D=="function"?D:null)}var pe=Object.assign,ce;function G(D){if(ce===void 0)try{throw Error()}catch(Te){var H=Te.stack.trim().match(/\n( *(at )?)/);ce=H&&H[1]||""}return` `+ce+D}var te=!1;function ie(D,H){if(!D||te)return"";te=!0;var Te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(H)if(H=function(){throw Error()},Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(os){var ft=os}Reflect.construct(D,[],H)}else{try{H.call()}catch(os){ft=os}D.call(H.prototype)}else{try{throw Error()}catch(os){ft=os}D()}}catch(os){if(os&&ft&&typeof os.stack=="string"){for(var yn=os.stack.split(` `),kn=ft.stack.split(` `),hi=yn.length-1,Wa=kn.length-1;1<=hi&&0<=Wa&&yn[hi]!==kn[Wa];)Wa--;for(;1<=hi&&0<=Wa;hi--,Wa--)if(yn[hi]!==kn[Wa]){if(hi!==1||Wa!==1)do if(hi--,Wa--,0>Wa||yn[hi]!==kn[Wa]){var ho=` `+yn[hi].replace(" at new "," at ");return D.displayName&&ho.includes("<anonymous>")&&(ho=ho.replace("<anonymous>",D.displayName)),ho}while(1<=hi&&0<=Wa);break}}}finally{te=!1,Error.prepareStackTrace=Te}return(D=D?D.displayName||D.name:"")?G(D):""}function fe(D){switch(D.tag){case 5:return G(D.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return D=ie(D.type,!1),D;case 11:return D=ie(D.type.render,!1),D;case 1:return D=ie(D.type,!0),D;default:return""}}function Se(D){if(D==null)return null;if(typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case _:return"Fragment";case K:return"Portal";case j:return"Profiler";case W:return"StrictMode";case J:return"Suspense";case q:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case X:return(D.displayName||"Context")+".Consumer";case re:return(D._context.displayName||"Context")+".Provider";case Z:var H=D.render;return D=D.displayName,D||(D=H.displayName||H.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case L:return H=D.displayName||null,H!==null?H:Se(D.type)||"Memo";case $:H=D._payload,D=D._init;try{return Se(D(H))}catch{}}return null}function he(D){var H=D.type;switch(D.tag){case 24:return"Cache";case 9:return(H.displayName||"Context")+".Consumer";case 10:return(H._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return D=H.render,D=D.displayName||D.name||"",H.displayName||(D!==""?"ForwardRef("+D+")":"ForwardRef");case 7:return"Fragment";case 5:return H;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Se(H);case 8:return H===W?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof H=="function")return H.displayName||H.name||null;if(typeof H=="string")return H}return null}function me(D){switch(typeof D){case"boolean":case"number":case"string":case"undefined":return D;case"object":return D;default:return""}}function _e(D){var H=D.type;return(D=D.nodeName)&&D.toLowerCase()==="input"&&(H==="checkbox"||H==="radio")}function we(D){var H=_e(D)?"checked":"value",Te=Object.getOwnPropertyDescriptor(D.constructor.prototype,H),ft=""+D[H];if(!D.hasOwnProperty(H)&&typeof Te<"u"&&typeof Te.get=="function"&&typeof Te.set=="function"){var yn=Te.get,kn=Te.set;return Object.defineProperty(D,H,{configurable:!0,get:function(){return yn.call(this)},set:function(hi){ft=""+hi,kn.call(this,hi)}}),Object.defineProperty(D,H,{enumerable:Te.enumerable}),{getValue:function(){return ft},setValue:function(hi){ft=""+hi},stopTracking:function(){D._valueTracker=null,delete D[H]}}}}function Ge(D){D._valueTracker||(D._valueTracker=we(D))}function ht(D){if(!D)return!1;var H=D._valueTracker;if(!H)return!0;var Te=H.getValue(),ft="";return D&&(ft=_e(D)?D.checked?"true":"false":D.value),D=ft,D!==Te?(H.setValue(D),!0):!1}function nt(D){if(D=D||(typeof document<"u"?document:void 0),typeof D>"u")return null;try{return D.activeElement||D.body}catch{return D.body}}function Re(D,H){var Te=H.checked;return pe({},H,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:Te??D._wrapperState.initialChecked})}function ue(D,H){var Te=H.defaultValue==null?"":H.defaultValue,ft=H.checked!=null?H.checked:H.defaultChecked;Te=me(H.value!=null?H.value:Te),D._wrapperState={initialChecked:ft,initialValue:Te,controlled:H.type==="checkbox"||H.type==="radio"?H.checked!=null:H.value!=null}}function ae(D,H){H=H.checked,H!=null&&A(D,"checked",H,!1)}function ve(D,H){ae(D,H);var Te=me(H.value),ft=H.type;if(Te!=null)ft==="number"?(Te===0&&D.value===""||D.value!=Te)&&(D.value=""+Te):D.value!==""+Te&&(D.value=""+Te);else if(ft==="submit"||ft==="reset"){D.removeAttribute("value");return}H.hasOwnProperty("value")?Ye(D,H.type,Te):H.hasOwnProperty("defaultValue")&&Ye(D,H.type,me(H.defaultValue)),H.checked==null&&H.defaultChecked!=null&&(D.defaultChecked=!!H.defaultChecked)}function Me(D,H,Te){if(H.hasOwnProperty("value")||H.hasOwnProperty("defaultValue")){var ft=H.type;if(!(ft!=="submit"&&ft!=="reset"||H.value!==void 0&&H.value!==null))return;H=""+D._wrapperState.initialValue,Te||H===D.value||(D.value=H),D.defaultValue=H}Te=D.name,Te!==""&&(D.name=""),D.defaultChecked=!!D._wrapperState.initialChecked,Te!==""&&(D.name=Te)}function Ye(D,H,Te){(H!=="number"||nt(D.ownerDocument)!==D)&&(Te==null?D.defaultValue=""+D._wrapperState.initialValue:D.defaultValue!==""+Te&&(D.defaultValue=""+Te))}var qe=Array.isArray;function At(D,H,Te,ft){if(D=D.options,H){H={};for(var yn=0;yn<Te.length;yn++)H["$"+Te[yn]]=!0;for(Te=0;Te<D.length;Te++)yn=H.hasOwnProperty("$"+D[Te].value),D[Te].selected!==yn&&(D[Te].selected=yn),yn&&ft&&(D[Te].defaultSelected=!0)}else{for(Te=""+me(Te),H=null,yn=0;yn<D.length;yn++){if(D[yn].value===Te){D[yn].selected=!0,ft&&(D[yn].defaultSelected=!0);return}H!==null||D[yn].disabled||(H=D[yn])}H!==null&&(H.selected=!0)}}function It(D,H){if(H.dangerouslySetInnerHTML!=null)throw Error(u(91));return pe({},H,{value:void 0,defaultValue:void 0,children:""+D._wrapperState.initialValue})}function Ce(D,H){var Te=H.value;if(Te==null){if(Te=H.children,H=H.defaultValue,Te!=null){if(H!=null)throw Error(u(92));if(qe(Te)){if(1<Te.length)throw Error(u(93));Te=Te[0]}H=Te}H==null&&(H=""),Te=H}D._wrapperState={initialValue:me(Te)}}function Ae(D,H){var Te=me(H.value),ft=me(H.defaultValue);Te!=null&&(Te=""+Te,Te!==D.value&&(D.value=Te),H.defaultValue==null&&D.defaultValue!==Te&&(D.defaultValue=Te)),ft!=null&&(D.defaultValue=""+ft)}function $e(D){var H=D.textContent;H===D._wrapperState.initialValue&&H!==""&&H!==null&&(D.value=H)}function tt(D){switch(D){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ke(D,H){return D==null||D==="http://www.w3.org/1999/xhtml"?tt(H):D==="http://www.w3.org/2000/svg"&&H==="foreignObject"?"http://www.w3.org/1999/xhtml":D}var Oe,je=function(D){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(H,Te,ft,yn){MSApp.execUnsafeLocalFunction(function(){return D(H,Te,ft,yn)})}:D}(function(D,H){if(D.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in D)D.innerHTML=H;else{for(Oe=Oe||document.createElement("div"),Oe.innerHTML="<svg>"+H.valueOf().toString()+"</svg>",H=Oe.firstChild;D.firstChild;)D.removeChild(D.firstChild);for(;H.firstChild;)D.appendChild(H.firstChild)}});function Et(D,H){if(H){var Te=D.firstChild;if(Te&&Te===D.lastChild&&Te.nodeType===3){Te.nodeValue=H;return}}D.textContent=H}var ct={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ut=["Webkit","ms","Moz","O"];Object.keys(ct).forEach(function(D){ut.forEach(function(H){H=H+D.charAt(0).toUpperCase()+D.substring(1),ct[H]=ct[D]})});function Ne(D,H,Te){return H==null||typeof H=="boolean"||H===""?"":Te||typeof H!="number"||H===0||ct.hasOwnProperty(D)&&ct[D]?(""+H).trim():H+"px"}function mt(D,H){D=D.style;for(var Te in H)if(H.hasOwnProperty(Te)){var ft=Te.indexOf("--")===0,yn=Ne(Te,H[Te],ft);Te==="float"&&(Te="cssFloat"),ft?D.setProperty(Te,yn):D[Te]=yn}}var bt=pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gt(D,H){if(H){if(bt[D]&&(H.children!=null||H.dangerouslySetInnerHTML!=null))throw Error(u(137,D));if(H.dangerouslySetInnerHTML!=null){if(H.children!=null)throw Error(u(60));if(typeof H.dangerouslySetInnerHTML!="object"||!("__html"in H.dangerouslySetInnerHTML))throw Error(u(61))}if(H.style!=null&&typeof H.style!="object")throw Error(u(62))}}function hn(D,H){if(D.indexOf("-")===-1)return typeof H.is=="string";switch(D){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yt=null;function Bt(D){return D=D.target||D.srcElement||window,D.correspondingUseElement&&(D=D.correspondingUseElement),D.nodeType===3?D.parentNode:D}var Lt=null,zt=null,Kt=null;function vt(D){if(D=Qi(D)){if(typeof Lt!="function")throw Error(u(280));var H=D.stateNode;H&&(H=Pe(H),Lt(D.stateNode,D.type,H))}}function Ve(D){zt?Kt?Kt.push(D):Kt=[D]:zt=D}function lt(){if(zt){var D=zt,H=Kt;if(Kt=zt=null,vt(D),H)for(D=0;D<H.length;D++)vt(H[D])}}function at(D,H){return D(H)}function Xt(){}var rt=!1;function Rt(D,H,Te){if(rt)return D(H,Te);rt=!0;try{return at(D,H,Te)}finally{rt=!1,(zt!==null||Kt!==null)&&(Xt(),lt())}}function rn(D,H){var Te=D.stateNode;if(Te===null)return null;var ft=Pe(Te);if(ft===null)return null;Te=ft[H];e:switch(H){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(ft=!ft.disabled)||(D=D.type,ft=!(D==="button"||D==="input"||D==="select"||D==="textarea")),D=!ft;break e;default:D=!1}if(D)return null;if(Te&&typeof Te!="function")throw Error(u(231,H,typeof Te));return Te}var sn=!1;if(d)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){sn=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{sn=!1}function ze(D,H,Te,ft,yn,kn,hi,Wa,ho){var os=Array.prototype.slice.call(arguments,3);try{H.apply(Te,os)}catch(uu){this.onError(uu)}}var st=!1,en=null,wt=!1,Ke=null,Ut={onError:function(D){st=!0,en=D}};function on(D,H,Te,ft,yn,kn,hi,Wa,ho){st=!1,en=null,ze.apply(Ut,arguments)}function Tn(D,H,Te,ft,yn,kn,hi,Wa,ho){if(on.apply(this,arguments),st){if(st){var os=en;st=!1,en=null}else throw Error(u(198));wt||(wt=!0,Ke=os)}}function An(D){var H=D,Te=D;if(D.alternate)for(;H.return;)H=H.return;else{D=H;do H=D,H.flags&4098&&(Te=H.return),D=H.return;while(D)}return H.tag===3?Te:null}function Zt(D){if(D.tag===13){var H=D.memoizedState;if(H===null&&(D=D.alternate,D!==null&&(H=D.memoizedState)),H!==null)return H.dehydrated}return null}function ot(D){if(An(D)!==D)throw Error(u(188))}function We(D){var H=D.alternate;if(!H){if(H=An(D),H===null)throw Error(u(188));return H!==D?null:D}for(var Te=D,ft=H;;){var yn=Te.return;if(yn===null)break;var kn=yn.alternate;if(kn===null){if(ft=yn.return,ft!==null){Te=ft;continue}break}if(yn.child===kn.child){for(kn=yn.child;kn;){if(kn===Te)return ot(yn),D;if(kn===ft)return ot(yn),H;kn=kn.sibling}throw Error(u(188))}if(Te.return!==ft.return)Te=yn,ft=kn;else{for(var hi=!1,Wa=yn.child;Wa;){if(Wa===Te){hi=!0,Te=yn,ft=kn;break}if(Wa===ft){hi=!0,ft=yn,Te=kn;break}Wa=Wa.sibling}if(!hi){for(Wa=kn.child;Wa;){if(Wa===Te){hi=!0,Te=kn,ft=yn;break}if(Wa===ft){hi=!0,ft=kn,Te=yn;break}Wa=Wa.sibling}if(!hi)throw Error(u(189))}}if(Te.alternate!==ft)throw Error(u(190))}if(Te.tag!==3)throw Error(u(188));return Te.stateNode.current===Te?D:H}function Ft(D){return D=We(D),D!==null?it(D):null}function it(D){if(D.tag===5||D.tag===6)return D;for(D=D.child;D!==null;){var H=it(D);if(H!==null)return H;D=D.sibling}return null}var qt=s.unstable_scheduleCallback,vn=s.unstable_cancelCallback,fn=s.unstable_shouldYield,Tt=s.unstable_requestPaint,dn=s.unstable_now,mn=s.unstable_getCurrentPriorityLevel,Kn=s.unstable_ImmediatePriority,Dn=s.unstable_UserBlockingPriority,Vn=s.unstable_NormalPriority,or=s.unstable_LowPriority,Qr=s.unstable_IdlePriority,ni=null,yr=null;function si(D){if(yr&&typeof yr.onCommitFiberRoot=="function")try{yr.onCommitFiberRoot(ni,D,void 0,(D.current.flags&128)===128)}catch{}}var Yr=Math.clz32?Math.clz32:fa,Ci=Math.log,Ni=Math.LN2;function fa(D){return D>>>=0,D===0?32:31-(Ci(D)/Ni|0)|0}var ha=64,Ca=4194304;function li(D){switch(D&-D){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return D&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return D&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return D}}function la(D,H){var Te=D.pendingLanes;if(Te===0)return 0;var ft=0,yn=D.suspendedLanes,kn=D.pingedLanes,hi=Te&268435455;if(hi!==0){var Wa=hi&~yn;Wa!==0?ft=li(Wa):(kn&=hi,kn!==0&&(ft=li(kn)))}else hi=Te&~yn,hi!==0?ft=li(hi):kn!==0&&(ft=li(kn));if(ft===0)return 0;if(H!==0&&H!==ft&&!(H&yn)&&(yn=ft&-ft,kn=H&-H,yn>=kn||yn===16&&(kn&4194240)!==0))return H;if(ft&4&&(ft|=Te&16),H=D.entangledLanes,H!==0)for(D=D.entanglements,H&=ft;0<H;)Te=31-Yr(H),yn=1<<Te,ft|=D[Te],H&=~yn;return ft}function Oa(D,H){switch(D){case 1:case 2:case 4:return H+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return H+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wa(D,H){for(var Te=D.suspendedLanes,ft=D.pingedLanes,yn=D.expirationTimes,kn=D.pendingLanes;0<kn;){var hi=31-Yr(kn),Wa=1<<hi,ho=yn[hi];ho===-1?(!(Wa&Te)||Wa&ft)&&(yn[hi]=Oa(Wa,H)):ho<=H&&(D.expiredLanes|=Wa),kn&=~Wa}}function vo(D){return D=D.pendingLanes&-1073741825,D!==0?D:D&1073741824?1073741824:0}function Qn(){var D=ha;return ha<<=1,!(ha&4194240)&&(ha=64),D}function _r(D){for(var H=[],Te=0;31>Te;Te++)H.push(D);return H}function $r(D,H,Te){D.pendingLanes|=H,H!==536870912&&(D.suspendedLanes=0,D.pingedLanes=0),D=D.eventTimes,H=31-Yr(H),D[H]=Te}function Ti(D,H){var Te=D.pendingLanes&~H;D.pendingLanes=H,D.suspendedLanes=0,D.pingedLanes=0,D.expiredLanes&=H,D.mutableReadLanes&=H,D.entangledLanes&=H,H=D.entanglements;var ft=D.eventTimes;for(D=D.expirationTimes;0<Te;){var yn=31-Yr(Te),kn=1<<yn;H[yn]=0,ft[yn]=-1,D[yn]=-1,Te&=~kn}}function xt(D,H){var Te=D.entangledLanes|=H;for(D=D.entanglements;Te;){var ft=31-Yr(Te),yn=1<<ft;yn&H|D[ft]&H&&(D[ft]|=H),Te&=~yn}}var On=0;function Zn(D){return D&=-D,1<D?4<D?D&268435455?16:536870912:4:1}var Ur,En,ln,jn,rr,Mr=!1,Ir=[],Zr=null,lr=null,Jr=null,pi=new Map,Ri=new Map,Ki=[],ia="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Da(D,H){switch(D){case"focusin":case"focusout":Zr=null;break;case"dragenter":case"dragleave":lr=null;break;case"mouseover":case"mouseout":Jr=null;break;case"pointerover":case"pointerout":pi.delete(H.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ri.delete(H.pointerId)}}function to(D,H,Te,ft,yn,kn){return D===null||D.nativeEvent!==kn?(D={blockedOn:H,domEventName:Te,eventSystemFlags:ft,nativeEvent:kn,targetContainers:[yn]},H!==null&&(H=Qi(H),H!==null&&En(H)),D):(D.eventSystemFlags|=ft,H=D.targetContainers,yn!==null&&H.indexOf(yn)===-1&&H.push(yn),D)}function ao(D,H,Te,ft,yn){switch(H){case"focusin":return Zr=to(Zr,D,H,Te,ft,yn),!0;case"dragenter":return lr=to(lr,D,H,Te,ft,yn),!0;case"mouseover":return Jr=to(Jr,D,H,Te,ft,yn),!0;case"pointerover":var kn=yn.pointerId;return pi.set(kn,to(pi.get(kn)||null,D,H,Te,ft,yn)),!0;case"gotpointercapture":return kn=yn.pointerId,Ri.set(kn,to(Ri.get(kn)||null,D,H,Te,ft,yn)),!0}return!1}function Bo(D){var H=Va(D.target);if(H!==null){var Te=An(H);if(Te!==null){if(H=Te.tag,H===13){if(H=Zt(Te),H!==null){D.blockedOn=H,rr(D.priority,function(){ln(Te)});return}}else if(H===3&&Te.stateNode.current.memoizedState.isDehydrated){D.blockedOn=Te.tag===3?Te.stateNode.containerInfo:null;return}}}D.blockedOn=null}function jo(D){if(D.blockedOn!==null)return!1;for(var H=D.targetContainers;0<H.length;){var Te=Gn(D.domEventName,D.eventSystemFlags,H[0],D.nativeEvent);if(Te===null){Te=D.nativeEvent;var ft=new Te.constructor(Te.type,Te);Yt=ft,Te.target.dispatchEvent(ft),Yt=null}else return H=Qi(Te),H!==null&&En(H),D.blockedOn=Te,!1;H.shift()}return!0}function Jo(D,H,Te){jo(D)&&Te.delete(H)}function Go(){Mr=!1,Zr!==null&&jo(Zr)&&(Zr=null),lr!==null&&jo(lr)&&(lr=null),Jr!==null&&jo(Jr)&&(Jr=null),pi.forEach(Jo),Ri.forEach(Jo)}function wr(D,H){D.blockedOn===H&&(D.blockedOn=null,Mr||(Mr=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Go)))}function qi(D){function H(yn){return wr(yn,D)}if(0<Ir.length){wr(Ir[0],D);for(var Te=1;Te<Ir.length;Te++){var ft=Ir[Te];ft.blockedOn===D&&(ft.blockedOn=null)}}for(Zr!==null&&wr(Zr,D),lr!==null&&wr(lr,D),Jr!==null&&wr(Jr,D),pi.forEach(H),Ri.forEach(H),Te=0;Te<Ki.length;Te++)ft=Ki[Te],ft.blockedOn===D&&(ft.blockedOn=null);for(;0<Ki.length&&(Te=Ki[0],Te.blockedOn===null);)Bo(Te),Te.blockedOn===null&&Ki.shift()}var ja=I.ReactCurrentBatchConfig,uo=!0;function wi(D,H,Te,ft){var yn=On,kn=ja.transition;ja.transition=null;try{On=1,za(D,H,Te,ft)}finally{On=yn,ja.transition=kn}}function ai(D,H,Te,ft){var yn=On,kn=ja.transition;ja.transition=null;try{On=4,za(D,H,Te,ft)}finally{On=yn,ja.transition=kn}}function za(D,H,Te,ft){if(uo){var yn=Gn(D,H,Te,ft);if(yn===null)nn(D,H,ft,Mt,Te),Da(D,ft);else if(ao(yn,D,H,Te,ft))ft.stopPropagation();else if(Da(D,ft),H&4&&-1<ia.indexOf(D)){for(;yn!==null;){var kn=Qi(yn);if(kn!==null&&Ur(kn),kn=Gn(D,H,Te,ft),kn===null&&nn(D,H,ft,Mt,Te),kn===yn)break;yn=kn}yn!==null&&ft.stopPropagation()}else nn(D,H,ft,null,Te)}}var Mt=null;function Gn(D,H,Te,ft){if(Mt=null,D=Bt(ft),D=Va(D),D!==null)if(H=An(D),H===null)D=null;else if(Te=H.tag,Te===13){if(D=Zt(H),D!==null)return D;D=null}else if(Te===3){if(H.stateNode.current.memoizedState.isDehydrated)return H.tag===3?H.stateNode.containerInfo:null;D=null}else H!==D&&(D=null);return Mt=D,null}function qn(D){switch(D){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(mn()){case Kn:return 1;case Dn:return 4;case Vn:case or:return 16;case Qr:return 536870912;default:return 16}default:return 16}}var Fr=null,Ei=null,ii=null;function Wi(){if(ii)return ii;var D,H=Ei,Te=H.length,ft,yn="value"in Fr?Fr.value:Fr.textContent,kn=yn.length;for(D=0;D<Te&&H[D]===yn[D];D++);var hi=Te-D;for(ft=1;ft<=hi&&H[Te-ft]===yn[kn-ft];ft++);return ii=yn.slice(D,1<ft?1-ft:void 0)}function Ya(D){var H=D.keyCode;return"charCode"in D?(D=D.charCode,D===0&&H===13&&(D=13)):D=H,D===10&&(D=13),32<=D||D===13?D:0}function qa(){return!0}function se(){return!1}function ye(D){function H(Te,ft,yn,kn,hi){this._reactName=Te,this._targetInst=yn,this.type=ft,this.nativeEvent=kn,this.target=hi,this.currentTarget=null;for(var Wa in D)D.hasOwnProperty(Wa)&&(Te=D[Wa],this[Wa]=Te?Te(kn):kn[Wa]);return this.isDefaultPrevented=(kn.defaultPrevented!=null?kn.defaultPrevented:kn.returnValue===!1)?qa:se,this.isPropagationStopped=se,this}return pe(H.prototype,{preventDefault:function(){this.defaultPrevented=!0;var Te=this.nativeEvent;Te&&(Te.preventDefault?Te.preventDefault():typeof Te.returnValue!="unknown"&&(Te.returnValue=!1),this.isDefaultPrevented=qa)},stopPropagation:function(){var Te=this.nativeEvent;Te&&(Te.stopPropagation?Te.stopPropagation():typeof Te.cancelBubble!="unknown"&&(Te.cancelBubble=!0),this.isPropagationStopped=qa)},persist:function(){},isPersistent:qa}),H}var Xe={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(D){return D.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yt=ye(Xe),Wt=pe({},Xe,{view:0,detail:0}),Qt=ye(Wt),wn,fr,Or,Si=pe({},Wt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Je,button:0,buttons:0,relatedTarget:function(D){return D.relatedTarget===void 0?D.fromElement===D.srcElement?D.toElement:D.fromElement:D.relatedTarget},movementX:function(D){return"movementX"in D?D.movementX:(D!==Or&&(Or&&D.type==="mousemove"?(wn=D.screenX-Or.screenX,fr=D.screenY-Or.screenY):fr=wn=0,Or=D),wn)},movementY:function(D){return"movementY"in D?D.movementY:fr}}),Fi=ye(Si),Bi=pe({},Si,{dataTransfer:0}),Ui=ye(Bi),vi=pe({},Wt,{relatedTarget:0}),Xa=ye(vi),Ko=pe({},Xe,{animationName:0,elapsedTime:0,pseudoElement:0}),So=ye(Ko),Lo=pe({},Xe,{clipboardData:function(D){return"clipboardData"in D?D.clipboardData:window.clipboardData}}),us=ye(Lo),Ee=pe({},Xe,{data:0}),Y=ye(Ee),z={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},B={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},le={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Le(D){var H=this.nativeEvent;return H.getModifierState?H.getModifierState(D):(D=le[D])?!!H[D]:!1}function Je(){return Le}var Ct=pe({},Wt,{key:function(D){if(D.key){var H=z[D.key]||D.key;if(H!=="Unidentified")return H}return D.type==="keypress"?(D=Ya(D),D===13?"Enter":String.fromCharCode(D)):D.type==="keydown"||D.type==="keyup"?B[D.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Je,charCode:function(D){return D.type==="keypress"?Ya(D):0},keyCode:function(D){return D.type==="keydown"||D.type==="keyup"?D.keyCode:0},which:function(D){return D.type==="keypress"?Ya(D):D.type==="keydown"||D.type==="keyup"?D.keyCode:0}}),Vt=ye(Ct),bn=pe({},Si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hn=ye(bn),br=pe({},Wt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Je}),ei=ye(br),mi=pe({},Xe,{propertyName:0,elapsedTime:0,pseudoElement:0}),Li=ye(mi),na=pe({},Si,{deltaX:function(D){return"deltaX"in D?D.deltaX:"wheelDeltaX"in D?-D.wheelDeltaX:0},deltaY:function(D){return"deltaY"in D?D.deltaY:"wheelDeltaY"in D?-D.wheelDeltaY:"wheelDelta"in D?-D.wheelDelta:0},deltaZ:0,deltaMode:0}),ji=ye(na),$a=[9,13,27,32],Ha=d&&"CompositionEvent"in window,Eo=null;d&&"documentMode"in document&&(Eo=document.documentMode);var Uo=d&&"TextEvent"in window&&!Eo,Ms=d&&(!Ha||Eo&&8<Eo&&11>=Eo),er=String.fromCharCode(32),Ar=!1;function Kr(D,H){switch(D){case"keyup":return $a.indexOf(H.keyCode)!==-1;case"keydown":return H.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ur(D){return D=D.detail,typeof D=="object"&&"data"in D?D.data:null}var Gr=!1;function Pi(D,H){switch(D){case"compositionend":return ur(H);case"keypress":return H.which!==32?null:(Ar=!0,er);case"textInput":return D=H.data,D===er&&Ar?null:D;default:return null}}function aa(D,H){if(Gr)return D==="compositionend"||!Ha&&Kr(D,H)?(D=Wi(),ii=Ei=Fr=null,Gr=!1,D):null;switch(D){case"paste":return null;case"keypress":if(!(H.ctrlKey||H.altKey||H.metaKey)||H.ctrlKey&&H.altKey){if(H.char&&1<H.char.length)return H.char;if(H.which)return String.fromCharCode(H.which)}return null;case"compositionend":return Ms&&H.locale!=="ko"?null:H.data;default:return null}}var Fa={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tn(D){var H=D&&D.nodeName&&D.nodeName.toLowerCase();return H==="input"?!!Fa[D.type]:H==="textarea"}function cn(D,H,Te,ft){Ve(ft),H=Yn(H,"onChange"),0<H.length&&(Te=new yt("onChange","change",null,Te,ft),D.push({event:Te,listeners:H}))}var nr=null,ir=null;function Lr(D){ee(D,0)}function ua(D){var H=ro(D);if(ht(H))return D}function _a(D,H){if(D==="change")return H}var Ka=!1;if(d){var yo;if(d){var Ba="oninput"in document;if(!Ba){var Ma=document.createElement("div");Ma.setAttribute("oninput","return;"),Ba=typeof Ma.oninput=="function"}yo=Ba}else yo=!1;Ka=yo&&(!document.documentMode||9<document.documentMode)}function Mo(){nr&&(nr.detachEvent("onpropertychange",Nr),ir=nr=null)}function Nr(D){if(D.propertyName==="value"&&ua(ir)){var H=[];cn(H,ir,D,Bt(D)),Rt(Lr,H)}}function gi(D,H,Te){D==="focusin"?(Mo(),nr=H,ir=Te,nr.attachEvent("onpropertychange",Nr)):D==="focusout"&&Mo()}function ea(D){if(D==="selectionchange"||D==="keyup"||D==="keydown")return ua(ir)}function dr(D,H){if(D==="click")return ua(H)}function ci(D,H){if(D==="input"||D==="change")return ua(H)}function yi(D,H){return D===H&&(D!==0||1/D===1/H)||D!==D&&H!==H}var xa=typeof Object.is=="function"?Object.is:yi;function Cr(D,H){if(xa(D,H))return!0;if(typeof D!="object"||D===null||typeof H!="object"||H===null)return!1;var Te=Object.keys(D),ft=Object.keys(H);if(Te.length!==ft.length)return!1;for(ft=0;ft<Te.length;ft++){var yn=Te[ft];if(!f.call(H,yn)||!xa(D[yn],H[yn]))return!1}return!0}function ka(D){for(;D&&D.firstChild;)D=D.firstChild;return D}function Io(D,H){var Te=ka(D);D=0;for(var ft;Te;){if(Te.nodeType===3){if(ft=D+Te.textContent.length,D<=H&&ft>=H)return{node:Te,offset:H-D};D=ft}e:{for(;Te;){if(Te.nextSibling){Te=Te.nextSibling;break e}Te=Te.parentNode}Te=void 0}Te=ka(Te)}}function Co(D,H){return D&&H?D===H?!0:D&&D.nodeType===3?!1:H&&H.nodeType===3?Co(D,H.parentNode):"contains"in D?D.contains(H):D.compareDocumentPosition?!!(D.compareDocumentPosition(H)&16):!1:!1}function _s(){for(var D=window,H=nt();H instanceof D.HTMLIFrameElement;){try{var Te=typeof H.contentWindow.location.href=="string"}catch{Te=!1}if(Te)D=H.contentWindow;else break;H=nt(D.document)}return H}function Is(D){var H=D&&D.nodeName&&D.nodeName.toLowerCase();return H&&(H==="input"&&(D.type==="text"||D.type==="search"||D.type==="tel"||D.type==="url"||D.type==="password")||H==="textarea"||D.contentEditable==="true")}function xs(D){var H=_s(),Te=D.focusedElem,ft=D.selectionRange;if(H!==Te&&Te&&Te.ownerDocument&&Co(Te.ownerDocument.documentElement,Te)){if(ft!==null&&Is(Te)){if(H=ft.start,D=ft.end,D===void 0&&(D=H),"selectionStart"in Te)Te.selectionStart=H,Te.selectionEnd=Math.min(D,Te.value.length);else if(D=(H=Te.ownerDocument||document)&&H.defaultView||window,D.getSelection){D=D.getSelection();var yn=Te.textContent.length,kn=Math.min(ft.start,yn);ft=ft.end===void 0?kn:Math.min(ft.end,yn),!D.extend&&kn>ft&&(yn=ft,ft=kn,kn=yn),yn=Io(Te,kn);var hi=Io(Te,ft);yn&&hi&&(D.rangeCount!==1||D.anchorNode!==yn.node||D.anchorOffset!==yn.offset||D.focusNode!==hi.node||D.focusOffset!==hi.offset)&&(H=H.createRange(),H.setStart(yn.node,yn.offset),D.removeAllRanges(),kn>ft?(D.addRange(H),D.extend(hi.node,hi.offset)):(H.setEnd(hi.node,hi.offset),D.addRange(H)))}}for(H=[],D=Te;D=D.parentNode;)D.nodeType===1&&H.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof Te.focus=="function"&&Te.focus(),Te=0;Te<H.length;Te++)D=H[Te],D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}var Zs=d&&"documentMode"in document&&11>=document.documentMode,Ns=null,Us=null,fu=null,bu=!1;function Ys(D,H,Te){var ft=Te.window===Te?Te.document:Te.nodeType===9?Te:Te.ownerDocument;bu||Ns==null||Ns!==nt(ft)||(ft=Ns,"selectionStart"in ft&&Is(ft)?ft={start:ft.selectionStart,end:ft.selectionEnd}:(ft=(ft.ownerDocument&&ft.ownerDocument.defaultView||window).getSelection(),ft={anchorNode:ft.anchorNode,anchorOffset:ft.anchorOffset,focusNode:ft.focusNode,focusOffset:ft.focusOffset}),fu&&Cr(fu,ft)||(fu=ft,ft=Yn(Us,"onSelect"),0<ft.length&&(H=new yt("onSelect","select",null,H,Te),D.push({event:H,listeners:ft}),H.target=Ns)))}function Hu(D,H){var Te={};return Te[D.toLowerCase()]=H.toLowerCase(),Te["Webkit"+D]="webkit"+H,Te["Moz"+D]="moz"+H,Te}var Zu={animationend:Hu("Animation","AnimationEnd"),animationiteration:Hu("Animation","AnimationIteration"),animationstart:Hu("Animation","AnimationStart"),transitionend:Hu("Transition","TransitionEnd")},ql={},Sn={};d&&(Sn=document.createElement("div").style,"AnimationEvent"in window||(delete Zu.animationend.animation,delete Zu.animationiteration.animation,delete Zu.animationstart.animation),"TransitionEvent"in window||delete Zu.transitionend.transition);function Wn(D){if(ql[D])return ql[D];if(!Zu[D])return D;var H=Zu[D],Te;for(Te in H)if(H.hasOwnProperty(Te)&&Te in Sn)return ql[D]=H[Te];return D}var vr=Wn("animationend"),kr=Wn("animationiteration"),ui=Wn("animationstart"),ta=Wn("transitionend"),St=new Map,pt="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function kt(D,H){St.set(D,H),h(H,[D])}for(var _t=0;_t<pt.length;_t++){var Mn=pt[_t],Pr=Mn.toLowerCase(),Hi=Mn[0].toUpperCase()+Mn.slice(1);kt(Pr,"on"+Hi)}kt(vr,"onAnimationEnd"),kt(kr,"onAnimationIteration"),kt(ui,"onAnimationStart"),kt("dblclick","onDoubleClick"),kt("focusin","onFocus"),kt("focusout","onBlur"),kt(ta,"onTransitionEnd"),p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),$n=new Set("cancel close invalid load scroll toggle".split(" ").concat(jt));function pn(D,H,Te){var ft=D.type||"unknown-event";D.currentTarget=Te,Tn(ft,H,void 0,D),D.currentTarget=null}function ee(D,H){H=(H&4)!==0;for(var Te=0;Te<D.length;Te++){var ft=D[Te],yn=ft.event;ft=ft.listeners;e:{var kn=void 0;if(H)for(var hi=ft.length-1;0<=hi;hi--){var Wa=ft[hi],ho=Wa.instance,os=Wa.currentTarget;if(Wa=Wa.listener,ho!==kn&&yn.isPropagationStopped())break e;pn(yn,Wa,os),kn=ho}else for(hi=0;hi<ft.length;hi++){if(Wa=ft[hi],ho=Wa.instance,os=Wa.currentTarget,Wa=Wa.listener,ho!==kn&&yn.isPropagationStopped())break e;pn(yn,Wa,os),kn=ho}}}if(wt)throw D=Ke,wt=!1,Ke=null,D}function oe(D,H){var Te=H[_n];Te===void 0&&(Te=H[_n]=new Set);var ft=D+"__bubble";Te.has(ft)||(Ht(H,D,2,!1),Te.add(ft))}function De(D,H,Te){var ft=0;H&&(ft|=4),Ht(Te,D,ft,H)}var Be="_reactListening"+Math.random().toString(36).slice(2);function gt(D){if(!D[Be]){D[Be]=!0,v.forEach(function(Te){Te!=="selectionchange"&&($n.has(Te)||De(Te,!1,D),De(Te,!0,D))});var H=D.nodeType===9?D:D.ownerDocument;H===null||H[Be]||(H[Be]=!0,De("selectionchange",!1,H))}}function Ht(D,H,Te,ft){switch(qn(H)){case 1:var yn=wi;break;case 4:yn=ai;break;default:yn=za}Te=yn.bind(null,H,Te,D),yn=void 0,!sn||H!=="touchstart"&&H!=="touchmove"&&H!=="wheel"||(yn=!0),ft?yn!==void 0?D.addEventListener(H,Te,{capture:!0,passive:yn}):D.addEventListener(H,Te,!0):yn!==void 0?D.addEventListener(H,Te,{passive:yn}):D.addEventListener(H,Te,!1)}function nn(D,H,Te,ft,yn){var kn=ft;if(!(H&1)&&!(H&2)&&ft!==null)e:for(;;){if(ft===null)return;var hi=ft.tag;if(hi===3||hi===4){var Wa=ft.stateNode.containerInfo;if(Wa===yn||Wa.nodeType===8&&Wa.parentNode===yn)break;if(hi===4)for(hi=ft.return;hi!==null;){var ho=hi.tag;if((ho===3||ho===4)&&(ho=hi.stateNode.containerInfo,ho===yn||ho.nodeType===8&&ho.parentNode===yn))return;hi=hi.return}for(;Wa!==null;){if(hi=Va(Wa),hi===null)return;if(ho=hi.tag,ho===5||ho===6){ft=kn=hi;continue e}Wa=Wa.parentNode}}ft=ft.return}Rt(function(){var os=kn,uu=Bt(Te),yu=[];e:{var iu=St.get(D);if(iu!==void 0){var il=yt,gl=D;switch(D){case"keypress":if(Ya(Te)===0)break e;case"keydown":case"keyup":il=Vt;break;case"focusin":gl="focus",il=Xa;break;case"focusout":gl="blur",il=Xa;break;case"beforeblur":case"afterblur":il=Xa;break;case"click":if(Te.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":il=Fi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":il=Ui;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":il=ei;break;case vr:case kr:case ui:il=So;break;case ta:il=Li;break;case"scroll":il=Qt;break;case"wheel":il=ji;break;case"copy":case"cut":case"paste":il=us;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":il=Hn}var bl=(H&4)!==0,Bf=!bl&&D==="scroll",Vo=bl?iu!==null?iu+"Capture":null:iu;bl=[];for(var Po=os,ns;Po!==null;){ns=Po;var Mu=ns.stateNode;if(ns.tag===5&&Mu!==null&&(ns=Mu,Vo!==null&&(Mu=rn(Po,Vo),Mu!=null&&bl.push(Rn(Po,Mu,ns)))),Bf)break;Po=Po.return}0<bl.length&&(iu=new il(iu,gl,null,Te,uu),yu.push({event:iu,listeners:bl}))}}if(!(H&7)){e:{if(iu=D==="mouseover"||D==="pointerover",il=D==="mouseout"||D==="pointerout",iu&&Te!==Yt&&(gl=Te.relatedTarget||Te.fromElement)&&(Va(gl)||gl[bi]))break e;if((il||iu)&&(iu=uu.window===uu?uu:(iu=uu.ownerDocument)?iu.defaultView||iu.parentWindow:window,il?(gl=Te.relatedTarget||Te.toElement,il=os,gl=gl?Va(gl):null,gl!==null&&(Bf=An(gl),gl!==Bf||gl.tag!==5&&gl.tag!==6)&&(gl=null)):(il=null,gl=os),il!==gl)){if(bl=Fi,Mu="onMouseLeave",Vo="onMouseEnter",Po="mouse",(D==="pointerout"||D==="pointerover")&&(bl=Hn,Mu="onPointerLeave",Vo="onPointerEnter",Po="pointer"),Bf=il==null?iu:ro(il),ns=gl==null?iu:ro(gl),iu=new bl(Mu,Po+"leave",il,Te,uu),iu.target=Bf,iu.relatedTarget=ns,Mu=null,Va(uu)===os&&(bl=new bl(Vo,Po+"enter",gl,Te,uu),bl.target=ns,bl.relatedTarget=Bf,Mu=bl),Bf=Mu,il&&gl)t:{for(bl=il,Vo=gl,Po=0,ns=bl;ns;ns=gr(ns))Po++;for(ns=0,Mu=Vo;Mu;Mu=gr(Mu))ns++;for(;0<Po-ns;)bl=gr(bl),Po--;for(;0<ns-Po;)Vo=gr(Vo),ns--;for(;Po--;){if(bl===Vo||Vo!==null&&bl===Vo.alternate)break t;bl=gr(bl),Vo=gr(Vo)}bl=null}else bl=null;il!==null&&Ai(yu,iu,il,bl,!1),gl!==null&&Bf!==null&&Ai(yu,Bf,gl,bl,!0)}}e:{if(iu=os?ro(os):window,il=iu.nodeName&&iu.nodeName.toLowerCase(),il==="select"||il==="input"&&iu.type==="file")var ml=_a;else if(tn(iu))if(Ka)ml=ci;else{ml=ea;var Il=gi}else(il=iu.nodeName)&&il.toLowerCase()==="input"&&(iu.type==="checkbox"||iu.type==="radio")&&(ml=dr);if(ml&&(ml=ml(D,os))){cn(yu,ml,Te,uu);break e}Il&&Il(D,iu,os),D==="focusout"&&(Il=iu._wrapperState)&&Il.controlled&&iu.type==="number"&&Ye(iu,"number",iu.value)}switch(Il=os?ro(os):window,D){case"focusin":(tn(Il)||Il.contentEditable==="true")&&(Ns=Il,Us=os,fu=null);break;case"focusout":fu=Us=Ns=null;break;case"mousedown":bu=!0;break;case"contextmenu":case"mouseup":case"dragend":bu=!1,Ys(yu,Te,uu);break;case"selectionchange":if(Zs)break;case"keydown":case"keyup":Ys(yu,Te,uu)}var Hl;if(Ha)e:{switch(D){case"compositionstart":var tc="onCompositionStart";break e;case"compositionend":tc="onCompositionEnd";break e;case"compositionupdate":tc="onCompositionUpdate";break e}tc=void 0}else Gr?Kr(D,Te)&&(tc="onCompositionEnd"):D==="keydown"&&Te.keyCode===229&&(tc="onCompositionStart");tc&&(Ms&&Te.locale!=="ko"&&(Gr||tc!=="onCompositionStart"?tc==="onCompositionEnd"&&Gr&&(Hl=Wi()):(Fr=uu,Ei="value"in Fr?Fr.value:Fr.textContent,Gr=!0)),Il=Yn(os,tc),0<Il.length&&(tc=new Y(tc,D,null,Te,uu),yu.push({event:tc,listeners:Il}),Hl?tc.data=Hl:(Hl=ur(Te),Hl!==null&&(tc.data=Hl)))),(Hl=Uo?Pi(D,Te):aa(D,Te))&&(os=Yn(os,"onBeforeInput"),0<os.length&&(uu=new Y("onBeforeInput","beforeinput",null,Te,uu),yu.push({event:uu,listeners:os}),uu.data=Hl))}ee(yu,H)})}function Rn(D,H,Te){return{instance:D,listener:H,currentTarget:Te}}function Yn(D,H){for(var Te=H+"Capture",ft=[];D!==null;){var yn=D,kn=yn.stateNode;yn.tag===5&&kn!==null&&(yn=kn,kn=rn(D,Te),kn!=null&&ft.unshift(Rn(D,kn,yn)),kn=rn(D,H),kn!=null&&ft.push(Rn(D,kn,yn))),D=D.return}return ft}function gr(D){if(D===null)return null;do D=D.return;while(D&&D.tag!==5);return D||null}function Ai(D,H,Te,ft,yn){for(var kn=H._reactName,hi=[];Te!==null&&Te!==ft;){var Wa=Te,ho=Wa.alternate,os=Wa.stateNode;if(ho!==null&&ho===ft)break;Wa.tag===5&&os!==null&&(Wa=os,yn?(ho=rn(Te,kn),ho!=null&&hi.unshift(Rn(Te,ho,Wa))):yn||(ho=rn(Te,kn),ho!=null&&hi.push(Rn(Te,ho,Wa)))),Te=Te.return}hi.length!==0&&D.push({event:H,listeners:hi})}var $i=/\r\n?/g,ma=/\u0000|\uFFFD/g;function La(D){return(typeof D=="string"?D:""+D).replace($i,` `).replace(ma,"")}function Qa(D,H,Te){if(H=La(H),La(D)!==H&&Te)throw Error(u(425))}function go(){}var Ao=null,Fo=null;function Ho(D,H){return D==="textarea"||D==="noscript"||typeof H.children=="string"||typeof H.children=="number"||typeof H.dangerouslySetInnerHTML=="object"&&H.dangerouslySetInnerHTML!==null&&H.dangerouslySetInnerHTML.__html!=null}var eu=typeof setTimeout=="function"?setTimeout:void 0,ks=typeof clearTimeout=="function"?clearTimeout:void 0,Gu=typeof Promise=="function"?Promise:void 0,an=typeof queueMicrotask=="function"?queueMicrotask:typeof Gu<"u"?function(D){return Gu.resolve(null).then(D).catch(Nn)}:eu;function Nn(D){setTimeout(function(){throw D})}function tr(D,H){var Te=H,ft=0;do{var yn=Te.nextSibling;if(D.removeChild(Te),yn&&yn.nodeType===8)if(Te=yn.data,Te==="/$"){if(ft===0){D.removeChild(yn),qi(H);return}ft--}else Te!=="$"&&Te!=="$?"&&Te!=="$!"||ft++;Te=yn}while(Te);qi(H)}function In(D){for(;D!=null;D=D.nextSibling){var H=D.nodeType;if(H===1||H===3)break;if(H===8){if(H=D.data,H==="$"||H==="$!"||H==="$?")break;if(H==="/$")return null}}return D}function di(D){D=D.previousSibling;for(var H=0;D;){if(D.nodeType===8){var Te=D.data;if(Te==="$"||Te==="$!"||Te==="$?"){if(H===0)return D;H--}else Te==="/$"&&H++}D=D.previousSibling}return null}var oi=Math.random().toString(36).slice(2),ki="__reactFiber$"+oi,ri="__reactProps$"+oi,bi="__reactContainer$"+oi,_n="__reactEvents$"+oi,Ua="__reactListeners$"+oi,va="__reactHandles$"+oi;function Va(D){var H=D[ki];if(H)return H;for(var Te=D.parentNode;Te;){if(H=Te[bi]||Te[ki]){if(Te=H.alternate,H.child!==null||Te!==null&&Te.child!==null)for(D=di(D);D!==null;){if(Te=D[ki])return Te;D=di(D)}return H}D=Te,Te=D.parentNode}return null}function Qi(D){return D=D[ki]||D[bi],!D||D.tag!==5&&D.tag!==6&&D.tag!==13&&D.tag!==3?null:D}function ro(D){if(D.tag===5||D.tag===6)return D.stateNode;throw Error(u(33))}function Pe(D){return D[ri]||null}var Nt=[],un=-1;function xn(D){return{current:D}}function zn(D){0>un||(D.current=Nt[un],Nt[un]=null,un--)}function sr(D,H){un++,Nt[un]=D.current,D.current=H}var Tr={},Br=xn(Tr),Er=xn(!1),Sr=Tr;function Vr(D,H){var Te=D.type.contextTypes;if(!Te)return Tr;var ft=D.stateNode;if(ft&&ft.__reactInternalMemoizedUnmaskedChildContext===H)return ft.__reactInternalMemoizedMaskedChildContext;var yn={},kn;for(kn in Te)yn[kn]=H[kn];return ft&&(D=D.stateNode,D.__reactInternalMemoizedUnmaskedChildContext=H,D.__reactInternalMemoizedMaskedChildContext=yn),yn}function fi(D){return D=D.childContextTypes,D!=null}function xr(){zn(Er),zn(Br)}function Wr(D,H,Te){if(Br.current!==Tr)throw Error(u(168));sr(Br,H),sr(Er,Te)}function ti(D,H,Te){var ft=D.stateNode;if(H=H.childContextTypes,typeof ft.getChildContext!="function")return Te;ft=ft.getChildContext();for(var yn in ft)if(!(yn in H))throw Error(u(108,he(D)||"Unknown",yn));return pe({},Te,ft)}function xi(D){return D=(D=D.stateNode)&&D.__reactInternalMemoizedMergedChildContext||Tr,Sr=Br.current,sr(Br,D),sr(Er,Er.current),!0}function Gi(D,H,Te){var ft=D.stateNode;if(!ft)throw Error(u(169));Te?(D=ti(D,H,Sr),ft.__reactInternalMemoizedMergedChildContext=D,zn(Er),zn(Br),sr(Br,D)):zn(Er),sr(Er,Te)}var _i=null,da=!1,Sa=!1;function Pa(D){_i===null?_i=[D]:_i.push(D)}function oo(D){da=!0,Pa(D)}function mo(){if(!Sa&&_i!==null){Sa=!0;var D=0,H=On;try{var Te=_i;for(On=1;D<Te.length;D++){var ft=Te[D];do ft=ft(!0);while(ft!==null)}_i=null,da=!1}catch(yn){throw _i!==null&&(_i=_i.slice(D+1)),qt(Kn,mo),yn}finally{On=H,Sa=!1}}return null}var Ga=[],no=0,ca=null,co=0,Yo=[],bo=0,Ea=null,ko=1,Es="";function Ts(D,H){Ga[no++]=co,Ga[no++]=ca,ca=D,co=H}function rs(D,H,Te){Yo[bo++]=ko,Yo[bo++]=Es,Yo[bo++]=Ea,Ea=D;var ft=ko;D=Es;var yn=32-Yr(ft)-1;ft&=~(1<<yn),Te+=1;var kn=32-Yr(H)+yn;if(30<kn){var hi=yn-yn%5;kn=(ft&(1<<hi)-1).toString(32),ft>>=hi,yn-=hi,ko=1<<32-Yr(H)+yn|Te<<yn|ft,Es=kn+D}else ko=1<<kn|Te<<yn|ft,Es=D}function ls(D){D.return!==null&&(Ts(D,1),rs(D,1,0))}function Ss(D){for(;D===ca;)ca=Ga[--no],Ga[no]=null,co=Ga[--no],Ga[no]=null;for(;D===Ea;)Ea=Yo[--bo],Yo[bo]=null,Es=Yo[--bo],Yo[bo]=null,ko=Yo[--bo],Yo[bo]=null}var cs=null,Do=null,fs=!1,is=null;function Os(D,H){var Te=Cf(5,null,null,0);Te.elementType="DELETED",Te.stateNode=H,Te.return=D,H=D.deletions,H===null?(D.deletions=[Te],D.flags|=16):H.push(Te)}function Qs(D,H){switch(D.tag){case 5:var Te=D.type;return H=H.nodeType!==1||Te.toLowerCase()!==H.nodeName.toLowerCase()?null:H,H!==null?(D.stateNode=H,cs=D,Do=In(H.firstChild),!0):!1;case 6:return H=D.pendingProps===""||H.nodeType!==3?null:H,H!==null?(D.stateNode=H,cs=D,Do=null,!0):!1;case 13:return H=H.nodeType!==8?null:H,H!==null?(Te=Ea!==null?{id:ko,overflow:Es}:null,D.memoizedState={dehydrated:H,treeContext:Te,retryLane:1073741824},Te=Cf(18,null,null,0),Te.stateNode=H,Te.return=D,D.child=Te,cs=D,Do=null,!0):!1;default:return!1}}function du(D){return(D.mode&1)!==0&&(D.flags&128)===0}function Yu(D){if(fs){var H=Do;if(H){var Te=H;if(!Qs(D,H)){if(du(D))throw Error(u(418));H=In(Te.nextSibling);var ft=cs;H&&Qs(D,H)?Os(ft,Te):(D.flags=D.flags&-4097|2,fs=!1,cs=D)}}else{if(du(D))throw Error(u(418));D.flags=D.flags&-4097|2,fs=!1,cs=D}}}function $u(D){for(D=D.return;D!==null&&D.tag!==5&&D.tag!==3&&D.tag!==13;)D=D.return;cs=D}function Xu(D){if(D!==cs)return!1;if(!fs)return $u(D),fs=!0,!1;var H;if((H=D.tag!==3)&&!(H=D.tag!==5)&&(H=D.type,H=H!=="head"&&H!=="body"&&!Ho(D.type,D.memoizedProps)),H&&(H=Do)){if(du(D))throw su(),Error(u(418));for(;H;)Os(D,H),H=In(H.nextSibling)}if($u(D),D.tag===13){if(D=D.memoizedState,D=D!==null?D.dehydrated:null,!D)throw Error(u(317));e:{for(D=D.nextSibling,H=0;D;){if(D.nodeType===8){var Te=D.data;if(Te==="/$"){if(H===0){Do=In(D.nextSibling);break e}H--}else Te!=="$"&&Te!=="$!"&&Te!=="$?"||H++}D=D.nextSibling}Do=null}}else Do=cs?In(D.stateNode.nextSibling):null;return!0}function su(){for(var D=Do;D;)D=In(D.nextSibling)}function Pu(){Do=cs=null,fs=!1}function Lu(D){is===null?is=[D]:is.push(D)}var hu=I.ReactCurrentBatchConfig;function Js(D,H){if(D&&D.defaultProps){H=pe({},H),D=D.defaultProps;for(var Te in D)H[Te]===void 0&&(H[Te]=D[Te]);return H}return H}var ys=xn(null),qo=null,Ps=null,Ws=null;function Qo(){Ws=Ps=qo=null}function ds(D){var H=ys.current;zn(ys),D._currentValue=H}function zu(D,H,Te){for(;D!==null;){var ft=D.alternate;if((D.childLanes&H)!==H?(D.childLanes|=H,ft!==null&&(ft.childLanes|=H)):ft!==null&&(ft.childLanes&H)!==H&&(ft.childLanes|=H),D===Te)break;D=D.return}}function tu(D,H){qo=D,Ws=Ps=null,D=D.dependencies,D!==null&&D.firstContext!==null&&(D.lanes&H&&(xo=!0),D.firstContext=null)}function Ou(D){var H=D._currentValue;if(Ws!==D)if(D={context:D,memoizedValue:H,next:null},Ps===null){if(qo===null)throw Error(u(308));Ps=D,qo.dependencies={lanes:0,firstContext:D}}else Ps=Ps.next=D;return H}var Hs=null;function pu(D){Hs===null?Hs=[D]:Hs.push(D)}function ku(D,H,Te,ft){var yn=H.interleaved;return yn===null?(Te.next=Te,pu(H)):(Te.next=yn.next,yn.next=Te),H.interleaved=Te,Nu(D,ft)}function Nu(D,H){D.lanes|=H;var Te=D.alternate;for(Te!==null&&(Te.lanes|=H),Te=D,D=D.return;D!==null;)D.childLanes|=H,Te=D.alternate,Te!==null&&(Te.childLanes|=H),Te=D,D=D.return;return Te.tag===3?Te.stateNode:null}var Fu=!1;function Ku(D){D.updateQueue={baseState:D.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sl(D,H){D=D.updateQueue,H.updateQueue===D&&(H.updateQueue={baseState:D.baseState,firstBaseUpdate:D.firstBaseUpdate,lastBaseUpdate:D.lastBaseUpdate,shared:D.shared,effects:D.effects})}function lu(D,H){return{eventTime:D,lane:H,tag:0,payload:null,callback:null,next:null}}function Tu(D,H,Te){var ft=D.updateQueue;if(ft===null)return null;if(ft=ft.shared,mc&2){var yn=ft.pending;return yn===null?H.next=H:(H.next=yn.next,yn.next=H),ft.pending=H,Nu(D,Te)}return yn=ft.interleaved,yn===null?(H.next=H,pu(ft)):(H.next=yn.next,yn.next=H),ft.interleaved=H,Nu(D,Te)}function Vs(D,H,Te){if(H=H.updateQueue,H!==null&&(H=H.shared,(Te&4194240)!==0)){var ft=H.lanes;ft&=D.pendingLanes,Te|=ft,H.lanes=Te,xt(D,Te)}}function Ds(D,H){var Te=D.updateQueue,ft=D.alternate;if(ft!==null&&(ft=ft.updateQueue,Te===ft)){var yn=null,kn=null;if(Te=Te.firstBaseUpdate,Te!==null){do{var hi={eventTime:Te.eventTime,lane:Te.lane,tag:Te.tag,payload:Te.payload,callback:Te.callback,next:null};kn===null?yn=kn=hi:kn=kn.next=hi,Te=Te.next}while(Te!==null);kn===null?yn=kn=H:kn=kn.next=H}else yn=kn=H;Te={baseState:ft.baseState,firstBaseUpdate:yn,lastBaseUpdate:kn,shared:ft.shared,effects:ft.effects},D.updateQueue=Te;return}D=Te.lastBaseUpdate,D===null?Te.firstBaseUpdate=H:D.next=H,Te.lastBaseUpdate=H}function Ks(D,H,Te,ft){var yn=D.updateQueue;Fu=!1;var kn=yn.firstBaseUpdate,hi=yn.lastBaseUpdate,Wa=yn.shared.pending;if(Wa!==null){yn.shared.pending=null;var ho=Wa,os=ho.next;ho.next=null,hi===null?kn=os:hi.next=os,hi=ho;var uu=D.alternate;uu!==null&&(uu=uu.updateQueue,Wa=uu.lastBaseUpdate,Wa!==hi&&(Wa===null?uu.firstBaseUpdate=os:Wa.next=os,uu.lastBaseUpdate=ho))}if(kn!==null){var yu=yn.baseState;hi=0,uu=os=ho=null,Wa=kn;do{var iu=Wa.lane,il=Wa.eventTime;if((ft&iu)===iu){uu!==null&&(uu=uu.next={eventTime:il,lane:0,tag:Wa.tag,payload:Wa.payload,callback:Wa.callback,next:null});e:{var gl=D,bl=Wa;switch(iu=H,il=Te,bl.tag){case 1:if(gl=bl.payload,typeof gl=="function"){yu=gl.call(il,yu,iu);break e}yu=gl;break e;case 3:gl.flags=gl.flags&-65537|128;case 0:if(gl=bl.payload,iu=typeof gl=="function"?gl.call(il,yu,iu):gl,iu==null)break e;yu=pe({},yu,iu);break e;case 2:Fu=!0}}Wa.callback!==null&&Wa.lane!==0&&(D.flags|=64,iu=yn.effects,iu===null?yn.effects=[Wa]:iu.push(Wa))}else il={eventTime:il,lane:iu,tag:Wa.tag,payload:Wa.payload,callback:Wa.callback,next:null},uu===null?(os=uu=il,ho=yu):uu=uu.next=il,hi|=iu;if(Wa=Wa.next,Wa===null){if(Wa=yn.shared.pending,Wa===null)break;iu=Wa,Wa=iu.next,iu.next=null,yn.lastBaseUpdate=iu,yn.shared.pending=null}}while(1);if(uu===null&&(ho=yu),yn.baseState=ho,yn.firstBaseUpdate=os,yn.lastBaseUpdate=uu,H=yn.shared.interleaved,H!==null){yn=H;do hi|=yn.lane,yn=yn.next;while(yn!==H)}else kn===null&&(yn.shared.lanes=0);Ad|=hi,D.lanes=hi,D.memoizedState=yu}}function nu(D,H,Te){if(D=H.effects,H.effects=null,D!==null)for(H=0;H<D.length;H++){var ft=D[H],yn=ft.callback;if(yn!==null){if(ft.callback=null,ft=Te,typeof yn!="function")throw Error(u(191,yn));yn.call(ft)}}}var Ju=new i.Component().refs;function nl(D,H,Te,ft){H=D.memoizedState,Te=Te(ft,H),Te=Te==null?H:pe({},H,Te),D.memoizedState=Te,D.lanes===0&&(D.updateQueue.baseState=Te)}var ec={isMounted:function(D){return(D=D._reactInternals)?An(D)===D:!1},enqueueSetState:function(D,H,Te){D=D._reactInternals;var ft=Ru(),yn=rl(D),kn=lu(ft,yn);kn.payload=H,Te!=null&&(kn.callback=Te),H=Tu(D,kn,yn),H!==null&&(fl(H,D,yn,ft),Vs(H,D,yn))},enqueueReplaceState:function(D,H,Te){D=D._reactInternals;var ft=Ru(),yn=rl(D),kn=lu(ft,yn);kn.tag=1,kn.payload=H,Te!=null&&(kn.callback=Te),H=Tu(D,kn,yn),H!==null&&(fl(H,D,yn,ft),Vs(H,D,yn))},enqueueForceUpdate:function(D,H){D=D._reactInternals;var Te=Ru(),ft=rl(D),yn=lu(Te,ft);yn.tag=2,H!=null&&(yn.callback=H),H=Tu(D,yn,ft),H!==null&&(fl(H,D,ft,Te),Vs(H,D,ft))}};function Mc(D,H,Te,ft,yn,kn,hi){return D=D.stateNode,typeof D.shouldComponentUpdate=="function"?D.shouldComponentUpdate(ft,kn,hi):H.prototype&&H.prototype.isPureReactComponent?!Cr(Te,ft)||!Cr(yn,kn):!0}function hc(D,H,Te){var ft=!1,yn=Tr,kn=H.contextType;return typeof kn=="object"&&kn!==null?kn=Ou(kn):(yn=fi(H)?Sr:Br.current,ft=H.contextTypes,kn=(ft=ft!=null)?Vr(D,yn):Tr),H=new H(Te,kn),D.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,H.updater=ec,D.stateNode=H,H._reactInternals=D,ft&&(D=D.stateNode,D.__reactInternalMemoizedUnmaskedChildContext=yn,D.__reactInternalMemoizedMaskedChildContext=kn),H}function Ol(D,H,Te,ft){D=H.state,typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps(Te,ft),typeof H.UNSAFE_componentWillReceiveProps=="function"&&H.UNSAFE_componentWillReceiveProps(Te,ft),H.state!==D&&ec.enqueueReplaceState(H,H.state,null)}function Nl(D,H,Te,ft){var yn=D.stateNode;yn.props=Te,yn.state=D.memoizedState,yn.refs=Ju,Ku(D);var kn=H.contextType;typeof kn=="object"&&kn!==null?yn.context=Ou(kn):(kn=fi(H)?Sr:Br.current,yn.context=Vr(D,kn)),yn.state=D.memoizedState,kn=H.getDerivedStateFromProps,typeof kn=="function"&&(nl(D,H,kn,Te),yn.state=D.memoizedState),typeof H.getDerivedStateFromProps=="function"||typeof yn.getSnapshotBeforeUpdate=="function"||typeof yn.UNSAFE_componentWillMount!="function"&&typeof yn.componentWillMount!="function"||(H=yn.state,typeof yn.componentWillMount=="function"&&yn.componentWillMount(),typeof yn.UNSAFE_componentWillMount=="function"&&yn.UNSAFE_componentWillMount(),H!==yn.state&&ec.enqueueReplaceState(yn,yn.state,null),Ks(D,Te,yn,ft),yn.state=D.memoizedState),typeof yn.componentDidMount=="function"&&(D.flags|=4194308)}function wl(D,H,Te){if(D=Te.ref,D!==null&&typeof D!="function"&&typeof D!="object"){if(Te._owner){if(Te=Te._owner,Te){if(Te.tag!==1)throw Error(u(309));var ft=Te.stateNode}if(!ft)throw Error(u(147,D));var yn=ft,kn=""+D;return H!==null&&H.ref!==null&&typeof H.ref=="function"&&H.ref._stringRef===kn?H.ref:(H=function(hi){var Wa=yn.refs;Wa===Ju&&(Wa=yn.refs={}),hi===null?delete Wa[kn]:Wa[kn]=hi},H._stringRef=kn,H)}if(typeof D!="string")throw Error(u(284));if(!Te._owner)throw Error(u(290,D))}return D}function Fl(D,H){throw D=Object.prototype.toString.call(H),Error(u(31,D==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":D))}function rc(D){var H=D._init;return H(D._payload)}function Ic(D){function H(Vo,Po){if(D){var ns=Vo.deletions;ns===null?(Vo.deletions=[Po],Vo.flags|=16):ns.push(Po)}}function Te(Vo,Po){if(!D)return null;for(;Po!==null;)H(Vo,Po),Po=Po.sibling;return null}function ft(Vo,Po){for(Vo=new Map;Po!==null;)Po.key!==null?Vo.set(Po.key,Po):Vo.set(Po.index,Po),Po=Po.sibling;return Vo}function yn(Vo,Po){return Vo=Vf(Vo,Po),Vo.index=0,Vo.sibling=null,Vo}function kn(Vo,Po,ns){return Vo.index=ns,D?(ns=Vo.alternate,ns!==null?(ns=ns.index,ns<Po?(Vo.flags|=2,Po):ns):(Vo.flags|=2,Po)):(Vo.flags|=1048576,Po)}function hi(Vo){return D&&Vo.alternate===null&&(Vo.flags|=2),Vo}function Wa(Vo,Po,ns,Mu){return Po===null||Po.tag!==6?(Po=xf(ns,Vo.mode,Mu),Po.return=Vo,Po):(Po=yn(Po,ns),Po.return=Vo,Po)}function ho(Vo,Po,ns,Mu){var ml=ns.type;return ml===_?uu(Vo,Po,ns.props.children,Mu,ns.key):Po!==null&&(Po.elementType===ml||typeof ml=="object"&&ml!==null&&ml.$$typeof===$&&rc(ml)===Po.type)?(Mu=yn(Po,ns.props),Mu.ref=wl(Vo,Po,ns),Mu.return=Vo,Mu):(Mu=dd(ns.type,ns.key,ns.props,null,Vo.mode,Mu),Mu.ref=wl(Vo,Po,ns),Mu.return=Vo,Mu)}function os(Vo,Po,ns,Mu){return Po===null||Po.tag!==4||Po.stateNode.containerInfo!==ns.containerInfo||Po.stateNode.implementation!==ns.implementation?(Po=Md(ns,Vo.mode,Mu),Po.return=Vo,Po):(Po=yn(Po,ns.children||[]),Po.return=Vo,Po)}function uu(Vo,Po,ns,Mu,ml){return Po===null||Po.tag!==7?(Po=oc(ns,Vo.mode,Mu,ml),Po.return=Vo,Po):(Po=yn(Po,ns),Po.return=Vo,Po)}function yu(Vo,Po,ns){if(typeof Po=="string"&&Po!==""||typeof Po=="number")return Po=xf(""+Po,Vo.mode,ns),Po.return=Vo,Po;if(typeof Po=="object"&&Po!==null){switch(Po.$$typeof){case N:return ns=dd(Po.type,Po.key,Po.props,null,Vo.mode,ns),ns.ref=wl(Vo,null,Po),ns.return=Vo,ns;case K:return Po=Md(Po,Vo.mode,ns),Po.return=Vo,Po;case $:var Mu=Po._init;return yu(Vo,Mu(Po._payload),ns)}if(qe(Po)||V(Po))return Po=oc(Po,Vo.mode,ns,null),Po.return=Vo,Po;Fl(Vo,Po)}return null}function iu(Vo,Po,ns,Mu){var ml=Po!==null?Po.key:null;if(typeof ns=="string"&&ns!==""||typeof ns=="number")return ml!==null?null:Wa(Vo,Po,""+ns,Mu);if(typeof ns=="object"&&ns!==null){switch(ns.$$typeof){case N:return ns.key===ml?ho(Vo,Po,ns,Mu):null;case K:return ns.key===ml?os(Vo,Po,ns,Mu):null;case $:return ml=ns._init,iu(Vo,Po,ml(ns._payload),Mu)}if(qe(ns)||V(ns))return ml!==null?null:uu(Vo,Po,ns,Mu,null);Fl(Vo,ns)}return null}function il(Vo,Po,ns,Mu,ml){if(typeof Mu=="string"&&Mu!==""||typeof Mu=="number")return Vo=Vo.get(ns)||null,Wa(Po,Vo,""+Mu,ml);if(typeof Mu=="object"&&Mu!==null){switch(Mu.$$typeof){case N:return Vo=Vo.get(Mu.key===null?ns:Mu.key)||null,ho(Po,Vo,Mu,ml);case K:return Vo=Vo.get(Mu.key===null?ns:Mu.key)||null,os(Po,Vo,Mu,ml);case $:var Il=Mu._init;return il(Vo,Po,ns,Il(Mu._payload),ml)}if(qe(Mu)||V(Mu))return Vo=Vo.get(ns)||null,uu(Po,Vo,Mu,ml,null);Fl(Po,Mu)}return null}function gl(Vo,Po,ns,Mu){for(var ml=null,Il=null,Hl=Po,tc=Po=0,Jf=null;Hl!==null&&tc<ns.length;tc++){Hl.index>tc?(Jf=Hl,Hl=null):Jf=Hl.sibling;var Rc=iu(Vo,Hl,ns[tc],Mu);if(Rc===null){Hl===null&&(Hl=Jf);break}D&&Hl&&Rc.alternate===null&&H(Vo,Hl),Po=kn(Rc,Po,tc),Il===null?ml=Rc:Il.sibling=Rc,Il=Rc,Hl=Jf}if(tc===ns.length)return Te(Vo,Hl),fs&&Ts(Vo,tc),ml;if(Hl===null){for(;tc<ns.length;tc++)Hl=yu(Vo,ns[tc],Mu),Hl!==null&&(Po=kn(Hl,Po,tc),Il===null?ml=Hl:Il.sibling=Hl,Il=Hl);return fs&&Ts(Vo,tc),ml}for(Hl=ft(Vo,Hl);tc<ns.length;tc++)Jf=il(Hl,Vo,tc,ns[tc],Mu),Jf!==null&&(D&&Jf.alternate!==null&&Hl.delete(Jf.key===null?tc:Jf.key),Po=kn(Jf,Po,tc),Il===null?ml=Jf:Il.sibling=Jf,Il=Jf);return D&&Hl.forEach(function(ih){return H(Vo,ih)}),fs&&Ts(Vo,tc),ml}function bl(Vo,Po,ns,Mu){var ml=V(ns);if(typeof ml!="function")throw Error(u(150));if(ns=ml.call(ns),ns==null)throw Error(u(151));for(var Il=ml=null,Hl=Po,tc=Po=0,Jf=null,Rc=ns.next();Hl!==null&&!Rc.done;tc++,Rc=ns.next()){Hl.index>tc?(Jf=Hl,Hl=null):Jf=Hl.sibling;var ih=iu(Vo,Hl,Rc.value,Mu);if(ih===null){Hl===null&&(Hl=Jf);break}D&&Hl&&ih.alternate===null&&H(Vo,Hl),Po=kn(ih,Po,tc),Il===null?ml=ih:Il.sibling=ih,Il=ih,Hl=Jf}if(Rc.done)return Te(Vo,Hl),fs&&Ts(Vo,tc),ml;if(Hl===null){for(;!Rc.done;tc++,Rc=ns.next())Rc=yu(Vo,Rc.value,Mu),Rc!==null&&(Po=kn(Rc,Po,tc),Il===null?ml=Rc:Il.sibling=Rc,Il=Rc);return fs&&Ts(Vo,tc),ml}for(Hl=ft(Vo,Hl);!Rc.done;tc++,Rc=ns.next())Rc=il(Hl,Vo,tc,Rc.value,Mu),Rc!==null&&(D&&Rc.alternate!==null&&Hl.delete(Rc.key===null?tc:Rc.key),Po=kn(Rc,Po,tc),Il===null?ml=Rc:Il.sibling=Rc,Il=Rc);return D&&Hl.forEach(function($v){return H(Vo,$v)}),fs&&Ts(Vo,tc),ml}function Bf(Vo,Po,ns,Mu){if(typeof ns=="object"&&ns!==null&&ns.type===_&&ns.key===null&&(ns=ns.props.children),typeof ns=="object"&&ns!==null){switch(ns.$$typeof){case N:e:{for(var ml=ns.key,Il=Po;Il!==null;){if(Il.key===ml){if(ml=ns.type,ml===_){if(Il.tag===7){Te(Vo,Il.sibling),Po=yn(Il,ns.props.children),Po.return=Vo,Vo=Po;break e}}else if(Il.elementType===ml||typeof ml=="object"&&ml!==null&&ml.$$typeof===$&&rc(ml)===Il.type){Te(Vo,Il.sibling),Po=yn(Il,ns.props),Po.ref=wl(Vo,Il,ns),Po.return=Vo,Vo=Po;break e}Te(Vo,Il);break}else H(Vo,Il);Il=Il.sibling}ns.type===_?(Po=oc(ns.props.children,Vo.mode,Mu,ns.key),Po.return=Vo,Vo=Po):(Mu=dd(ns.type,ns.key,ns.props,null,Vo.mode,Mu),Mu.ref=wl(Vo,Po,ns),Mu.return=Vo,Vo=Mu)}return hi(Vo);case K:e:{for(Il=ns.key;Po!==null;){if(Po.key===Il)if(Po.tag===4&&Po.stateNode.containerInfo===ns.containerInfo&&Po.stateNode.implementation===ns.implementation){Te(Vo,Po.sibling),Po=yn(Po,ns.children||[]),Po.return=Vo,Vo=Po;break e}else{Te(Vo,Po);break}else H(Vo,Po);Po=Po.sibling}Po=Md(ns,Vo.mode,Mu),Po.return=Vo,Vo=Po}return hi(Vo);case $:return Il=ns._init,Bf(Vo,Po,Il(ns._payload),Mu)}if(qe(ns))return gl(Vo,Po,ns,Mu);if(V(ns))return bl(Vo,Po,ns,Mu);Fl(Vo,ns)}return typeof ns=="string"&&ns!==""||typeof ns=="number"?(ns=""+ns,Po!==null&&Po.tag===6?(Te(Vo,Po.sibling),Po=yn(Po,ns),Po.return=Vo,Vo=Po):(Te(Vo,Po),Po=xf(ns,Vo.mode,Mu),Po.return=Vo,Vo=Po),hi(Vo)):Te(Vo,Po)}return Bf}var kl=Ic(!0),Gc=Ic(!1),$l={},Ml=xn($l),zc=xn($l),tf=xn($l);function _c(D){if(D===$l)throw Error(u(174));return D}function Cc(D,H){switch(sr(tf,H),sr(zc,D),sr(Ml,$l),D=H.nodeType,D){case 9:case 11:H=(H=H.documentElement)?H.namespaceURI:ke(null,"");break;default:D=D===8?H.parentNode:H,H=D.namespaceURI||null,D=D.tagName,H=ke(H,D)}zn(Ml),sr(Ml,H)}function of(){zn(Ml),zn(zc),zn(tf)}function Qc(D){_c(tf.current);var H=_c(Ml.current),Te=ke(H,D.type);H!==Te&&(sr(zc,D),sr(Ml,Te))}function sc(D){zc.current===D&&(zn(Ml),zn(zc))}var ul=xn(0);function fc(D){for(var H=D;H!==null;){if(H.tag===13){var Te=H.memoizedState;if(Te!==null&&(Te=Te.dehydrated,Te===null||Te.data==="$?"||Te.data==="$!"))return H}else if(H.tag===19&&H.memoizedProps.revealOrder!==void 0){if(H.flags&128)return H}else if(H.child!==null){H.child.return=H,H=H.child;continue}if(H===D)break;for(;H.sibling===null;){if(H.return===null||H.return===D)return null;H=H.return}H.sibling.return=H.return,H=H.sibling}return null}var lf=[];function vc(){for(var D=0;D<lf.length;D++)lf[D]._workInProgressVersionPrimary=null;lf.length=0}var yl=I.ReactCurrentDispatcher,cf=I.ReactCurrentBatchConfig,_l=0,qu=null,ic=null,jl=null,lc=!1,Rl=!1,al=0,ll=0;function Wl(){throw Error(u(321))}function dc(D,H){if(H===null)return!1;for(var Te=0;Te<H.length&&Te<D.length;Te++)if(!xa(D[Te],H[Te]))return!1;return!0}function Bl(D,H,Te,ft,yn,kn){if(_l=kn,qu=H,H.memoizedState=null,H.updateQueue=null,H.lanes=0,yl.current=D===null||D.memoizedState===null?md:Vc,D=Te(ft,yn),Rl){kn=0;do{if(Rl=!1,al=0,25<=kn)throw Error(u(301));kn+=1,jl=ic=null,H.updateQueue=null,yl.current=$c,D=Te(ft,yn)}while(Rl)}if(yl.current=Tc,H=ic!==null&&ic.next!==null,_l=0,jl=ic=qu=null,lc=!1,H)throw Error(u(300));return D}function Pl(){var D=al!==0;return al=0,D}function Ll(){var D={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jl===null?qu.memoizedState=jl=D:jl=jl.next=D,jl}function Oc(){if(ic===null){var D=qu.alternate;D=D!==null?D.memoizedState:null}else D=ic.next;var H=jl===null?qu.memoizedState:jl.next;if(H!==null)jl=H,ic=D;else{if(D===null)throw Error(u(310));ic=D,D={memoizedState:ic.memoizedState,baseState:ic.baseState,baseQueue:ic.baseQueue,queue:ic.queue,next:null},jl===null?qu.memoizedState=jl=D:jl=jl.next=D}return jl}function kc(D,H){return typeof H=="function"?H(D):H}function sf(D){var H=Oc(),Te=H.queue;if(Te===null)throw Error(u(311));Te.lastRenderedReducer=D;var ft=ic,yn=ft.baseQueue,kn=Te.pending;if(kn!==null){if(yn!==null){var hi=yn.next;yn.next=kn.next,kn.next=hi}ft.baseQueue=yn=kn,Te.pending=null}if(yn!==null){kn=yn.next,ft=ft.baseState;var Wa=hi=null,ho=null,os=kn;do{var uu=os.lane;if((_l&uu)===uu)ho!==null&&(ho=ho.next={lane:0,action:os.action,hasEagerState:os.hasEagerState,eagerState:os.eagerState,next:null}),ft=os.hasEagerState?os.eagerState:D(ft,os.action);else{var yu={lane:uu,action:os.action,hasEagerState:os.hasEagerState,eagerState:os.eagerState,next:null};ho===null?(Wa=ho=yu,hi=ft):ho=ho.next=yu,qu.lanes|=uu,Ad|=uu}os=os.next}while(os!==null&&os!==kn);ho===null?hi=ft:ho.next=Wa,xa(ft,H.memoizedState)||(xo=!0),H.memoizedState=ft,H.baseState=hi,H.baseQueue=ho,Te.lastRenderedState=ft}if(D=Te.interleaved,D!==null){yn=D;do kn=yn.lane,qu.lanes|=kn,Ad|=kn,yn=yn.next;while(yn!==D)}else yn===null&&(Te.lanes=0);return[H.memoizedState,Te.dispatch]}function Bc(D){var H=Oc(),Te=H.queue;if(Te===null)throw Error(u(311));Te.lastRenderedReducer=D;var ft=Te.dispatch,yn=Te.pending,kn=H.memoizedState;if(yn!==null){Te.pending=null;var hi=yn=yn.next;do kn=D(kn,hi.action),hi=hi.next;while(hi!==yn);xa(kn,H.memoizedState)||(xo=!0),H.memoizedState=kn,H.baseQueue===null&&(H.baseState=kn),Te.lastRenderedState=kn}return[kn,ft]}function Ef(){}function Sf(D,H){var Te=qu,ft=Oc(),yn=H(),kn=!xa(ft.memoizedState,yn);if(kn&&(ft.memoizedState=yn,xo=!0),ft=ft.queue,Hc(xc.bind(null,Te,ft,D),[D]),ft.getSnapshot!==H||kn||jl!==null&&jl.memoizedState.tag&1){if(Te.flags|=2048,Qu(9,yf.bind(null,Te,ft,yn,H),void 0,null),Ac===null)throw Error(u(349));_l&30||bc(Te,H,yn)}return yn}function bc(D,H,Te){D.flags|=16384,D={getSnapshot:H,value:Te},H=qu.updateQueue,H===null?(H={lastEffect:null,stores:null},qu.updateQueue=H,H.stores=[D]):(Te=H.stores,Te===null?H.stores=[D]:Te.push(D))}function yf(D,H,Te,ft){H.value=Te,H.getSnapshot=ft,Mf(H)&&Bu(D)}function xc(D,H,Te){return Te(function(){Mf(H)&&Bu(D)})}function Mf(D){var H=D.getSnapshot;D=D.value;try{var Te=H();return!xa(D,Te)}catch{return!0}}function Bu(D){var H=Nu(D,1);H!==null&&fl(H,D,1,-1)}function vl(D){var H=Ll();return typeof D=="function"&&(D=D()),H.memoizedState=H.baseState=D,D={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:kc,lastRenderedState:D},H.queue=D,D=D.dispatch=_f.bind(null,qu,D),[H.memoizedState,D]}function Qu(D,H,Te,ft){return D={tag:D,create:H,destroy:Te,deps:ft,next:null},H=qu.updateQueue,H===null?(H={lastEffect:null,stores:null},qu.updateQueue=H,H.lastEffect=D.next=D):(Te=H.lastEffect,Te===null?H.lastEffect=D.next=D:(ft=Te.next,Te.next=D,D.next=ft,H.lastEffect=D)),D}function Vl(){return Oc().memoizedState}function Ul(D,H,Te,ft){var yn=Ll();qu.flags|=D,yn.memoizedState=Qu(1|H,Te,void 0,ft===void 0?null:ft)}function gs(D,H,Te,ft){var yn=Oc();ft=ft===void 0?null:ft;var kn=void 0;if(ic!==null){var hi=ic.memoizedState;if(kn=hi.destroy,ft!==null&&dc(ft,hi.deps)){yn.memoizedState=Qu(H,Te,kn,ft);return}}qu.flags|=D,yn.memoizedState=Qu(1|H,Te,kn,ft)}function pc(D,H){return Ul(8390656,8,D,H)}function Hc(D,H){return gs(2048,8,D,H)}function bf(D,H){return gs(4,2,D,H)}function Kc(D,H){return gs(4,4,D,H)}function sd(D,H){if(typeof H=="function")return D=D(),H(D),function(){H(null)};if(H!=null)return D=D(),H.current=D,function(){H.current=null}}function Ed(D,H,Te){return Te=Te!=null?Te.concat([D]):null,gs(4,4,sd.bind(null,H,D),Te)}function Jc(){}function zs(D,H){var Te=Oc();H=H===void 0?null:H;var ft=Te.memoizedState;return ft!==null&&H!==null&&dc(H,ft[1])?ft[0]:(Te.memoizedState=[D,H],D)}function Of(D,H){var Te=Oc();H=H===void 0?null:H;var ft=Te.memoizedState;return ft!==null&&H!==null&&dc(H,ft[1])?ft[0]:(D=D(),Te.memoizedState=[D,H],D)}function nf(D,H,Te){return _l&21?(xa(Te,H)||(Te=Qn(),qu.lanes|=Te,Ad|=Te,D.baseState=!0),H):(D.baseState&&(D.baseState=!1,xo=!0),D.memoizedState=Te)}function df(D,H){var Te=On;On=Te!==0&&4>Te?Te:4,D(!0);var ft=cf.transition;cf.transition={};try{D(!1),H()}finally{On=Te,cf.transition=ft}}function Wf(){return Oc().memoizedState}function td(D,H,Te){var ft=rl(D);if(Te={lane:ft,action:Te,hasEagerState:!1,eagerState:null,next:null},ff(D))Lf(H,Te);else if(Te=ku(D,H,Te,ft),Te!==null){var yn=Ru();fl(Te,D,ft,yn),Ec(Te,H,ft)}}function _f(D,H,Te){var ft=rl(D),yn={lane:ft,action:Te,hasEagerState:!1,eagerState:null,next:null};if(ff(D))Lf(H,yn);else{var kn=D.alternate;if(D.lanes===0&&(kn===null||kn.lanes===0)&&(kn=H.lastRenderedReducer,kn!==null))try{var hi=H.lastRenderedState,Wa=kn(hi,Te);if(yn.hasEagerState=!0,yn.eagerState=Wa,xa(Wa,hi)){var ho=H.interleaved;ho===null?(yn.next=yn,pu(H)):(yn.next=ho.next,ho.next=yn),H.interleaved=yn;return}}catch{}finally{}Te=ku(D,H,yn,ft),Te!==null&&(yn=Ru(),fl(Te,D,ft,yn),Ec(Te,H,ft))}}function ff(D){var H=D.alternate;return D===qu||H!==null&&H===qu}function Lf(D,H){Rl=lc=!0;var Te=D.pending;Te===null?H.next=H:(H.next=Te.next,Te.next=H),D.pending=H}function Ec(D,H,Te){if(Te&4194240){var ft=H.lanes;ft&=D.pendingLanes,Te|=ft,H.lanes=Te,xt(D,Te)}}var Tc={readContext:Ou,useCallback:Wl,useContext:Wl,useEffect:Wl,useImperativeHandle:Wl,useInsertionEffect:Wl,useLayoutEffect:Wl,useMemo:Wl,useReducer:Wl,useRef:Wl,useState:Wl,useDebugValue:Wl,useDeferredValue:Wl,useTransition:Wl,useMutableSource:Wl,useSyncExternalStore:Wl,useId:Wl,unstable_isNewReconciler:!1},md={readContext:Ou,useCallback:function(D,H){return Ll().memoizedState=[D,H===void 0?null:H],D},useContext:Ou,useEffect:pc,useImperativeHandle:function(D,H,Te){return Te=Te!=null?Te.concat([D]):null,Ul(4194308,4,sd.bind(null,H,D),Te)},useLayoutEffect:function(D,H){return Ul(4194308,4,D,H)},useInsertionEffect:function(D,H){return Ul(4,2,D,H)},useMemo:function(D,H){var Te=Ll();return H=H===void 0?null:H,D=D(),Te.memoizedState=[D,H],D},useReducer:function(D,H,Te){var ft=Ll();return H=Te!==void 0?Te(H):H,ft.memoizedState=ft.baseState=H,D={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:D,lastRenderedState:H},ft.queue=D,D=D.dispatch=td.bind(null,qu,D),[ft.memoizedState,D]},useRef:function(D){var H=Ll();return D={current:D},H.memoizedState=D},useState:vl,useDebugValue:Jc,useDeferredValue:function(D){return Ll().memoizedState=D},useTransition:function(){var D=vl(!1),H=D[0];return D=df.bind(null,D[1]),Ll().memoizedState=D,[H,D]},useMutableSource:function(){},useSyncExternalStore:function(D,H,Te){var ft=qu,yn=Ll();if(fs){if(Te===void 0)throw Error(u(407));Te=Te()}else{if(Te=H(),Ac===null)throw Error(u(349));_l&30||bc(ft,H,Te)}yn.memoizedState=Te;var kn={value:Te,getSnapshot:H};return yn.queue=kn,pc(xc.bind(null,ft,kn,D),[D]),ft.flags|=2048,Qu(9,yf.bind(null,ft,kn,Te,H),void 0,null),Te},useId:function(){var D=Ll(),H=Ac.identifierPrefix;if(fs){var Te=Es,ft=ko;Te=(ft&~(1<<32-Yr(ft)-1)).toString(32)+Te,H=":"+H+"R"+Te,Te=al++,0<Te&&(H+="H"+Te.toString(32)),H+=":"}else Te=ll++,H=":"+H+"r"+Te.toString(32)+":";return D.memoizedState=H},unstable_isNewReconciler:!1},Vc={readContext:Ou,useCallback:zs,useContext:Ou,useEffect:Hc,useImperativeHandle:Ed,useInsertionEffect:bf,useLayoutEffect:Kc,useMemo:Of,useReducer:sf,useRef:Vl,useState:function(){return sf(kc)},useDebugValue:Jc,useDeferredValue:function(D){var H=Oc();return nf(H,ic.memoizedState,D)},useTransition:function(){var D=sf(kc)[0],H=Oc().memoizedState;return[D,H]},useMutableSource:Ef,useSyncExternalStore:Sf,useId:Wf,unstable_isNewReconciler:!1},$c={readContext:Ou,useCallback:zs,useContext:Ou,useEffect:Hc,useImperativeHandle:Ed,useInsertionEffect:bf,useLayoutEffect:Kc,useMemo:Of,useReducer:Bc,useRef:Vl,useState:function(){return Bc(kc)},useDebugValue:Jc,useDeferredValue:function(D){var H=Oc();return ic===null?H.memoizedState=D:nf(H,ic.memoizedState,D)},useTransition:function(){var D=Bc(kc)[0],H=Oc().memoizedState;return[D,H]},useMutableSource:Ef,useSyncExternalStore:Sf,useId:Wf,unstable_isNewReconciler:!1};function gc(D,H){try{var Te="",ft=H;do Te+=fe(ft),ft=ft.return;while(ft);var yn=Te}catch(kn){yn=` Error generating stack: `+kn.message+` `+kn.stack}return{value:D,source:H,stack:yn,digest:null}}function qc(D,H,Te){return{value:D,source:null,stack:Te??null,digest:H??null}}function If(D,H){try{console.error(H.value)}catch(Te){setTimeout(function(){throw Te})}}var Dr=typeof WeakMap=="function"?WeakMap:Map;function pr(D,H,Te){Te=lu(-1,Te),Te.tag=3,Te.payload={element:null};var ft=H.value;return Te.callback=function(){yd||(yd=!0,ra=ft),If(D,H)},Te}function Mi(D,H,Te){Te=lu(-1,Te),Te.tag=3;var ft=D.type.getDerivedStateFromError;if(typeof ft=="function"){var yn=H.value;Te.payload=function(){return ft(yn)},Te.callback=function(){If(D,H)}}var kn=D.stateNode;return kn!==null&&typeof kn.componentDidCatch=="function"&&(Te.callback=function(){If(D,H),typeof ft!="function"&&(_o===null?_o=new Set([this]):_o.add(this));var hi=H.stack;this.componentDidCatch(H.value,{componentStack:hi!==null?hi:""})}),Te}function Zi(D,H,Te){var ft=D.pingCache;if(ft===null){ft=D.pingCache=new Dr;var yn=new Set;ft.set(H,yn)}else yn=ft.get(H),yn===void 0&&(yn=new Set,ft.set(H,yn));yn.has(Te)||(yn.add(Te),D=Su.bind(null,D,H,Te),H.then(D,D))}function Ta(D){do{var H;if((H=D.tag===13)&&(H=D.memoizedState,H=H!==null?H.dehydrated!==null:!0),H)return D;D=D.return}while(D!==null);return null}function Oo(D,H,Te,ft,yn){return D.mode&1?(D.flags|=65536,D.lanes=yn,D):(D===H?D.flags|=65536:(D.flags|=128,Te.flags|=131072,Te.flags&=-52805,Te.tag===1&&(Te.alternate===null?Te.tag=17:(H=lu(-1,1),H.tag=2,Tu(Te,H,1))),Te.lanes|=1),D)}var No=I.ReactCurrentOwner,xo=!1;function Ls(D,H,Te,ft){H.child=D===null?Gc(H,null,Te,ft):kl(H,D.child,Te,ft)}function Fs(D,H,Te,ft,yn){Te=Te.render;var kn=H.ref;return tu(H,yn),ft=Bl(D,H,Te,ft,kn,yn),Te=Pl(),D!==null&&!xo?(H.updateQueue=D.updateQueue,H.flags&=-2053,D.lanes&=~yn,Aa(D,H,yn)):(fs&&Te&&ls(H),H.flags|=1,Ls(D,H,ft,yn),H.child)}function As(D,H,Te,ft,yn){if(D===null){var kn=Te.type;return typeof kn=="function"&&!Rd(kn)&&kn.defaultProps===void 0&&Te.compare===null&&Te.defaultProps===void 0?(H.tag=15,H.type=kn,Cu(D,H,kn,ft,yn)):(D=dd(Te.type,null,ft,H,H.mode,yn),D.ref=H.ref,D.return=H,H.child=D)}if(kn=D.child,!(D.lanes&yn)){var hi=kn.memoizedProps;if(Te=Te.compare,Te=Te!==null?Te:Cr,Te(hi,ft)&&D.ref===H.ref)return Aa(D,H,yn)}return H.flags|=1,D=Vf(kn,ft),D.ref=H.ref,D.return=H,H.child=D}function Cu(D,H,Te,ft,yn){if(D!==null){var kn=D.memoizedProps;if(Cr(kn,ft)&&D.ref===H.ref)if(xo=!1,H.pendingProps=ft=kn,(D.lanes&yn)!==0)D.flags&131072&&(xo=!0);else return H.lanes=D.lanes,Aa(D,H,yn)}return Du(D,H,Te,ft,yn)}function Iu(D,H,Te){var ft=H.pendingProps,yn=ft.children,kn=D!==null?D.memoizedState:null;if(ft.mode==="hidden")if(!(H.mode&1))H.memoizedState={baseLanes:0,cachePool:null,transitions:null},sr(Hf,zf),zf|=Te;else{if(!(Te&1073741824))return D=kn!==null?kn.baseLanes|Te:Te,H.lanes=H.childLanes=1073741824,H.memoizedState={baseLanes:D,cachePool:null,transitions:null},H.updateQueue=null,sr(Hf,zf),zf|=D,null;H.memoizedState={baseLanes:0,cachePool:null,transitions:null},ft=kn!==null?kn.baseLanes:Te,sr(Hf,zf),zf|=ft}else kn!==null?(ft=kn.baseLanes|Te,H.memoizedState=null):ft=Te,sr(Hf,zf),zf|=ft;return Ls(D,H,yn,Te),H.child}function Tl(D,H){var Te=H.ref;(D===null&&Te!==null||D!==null&&D.ref!==Te)&&(H.flags|=512,H.flags|=2097152)}function Du(D,H,Te,ft,yn){var kn=fi(Te)?Sr:Br.current;return kn=Vr(H,kn),tu(H,yn),Te=Bl(D,H,Te,ft,kn,yn),ft=Pl(),D!==null&&!xo?(H.updateQueue=D.updateQueue,H.flags&=-2053,D.lanes&=~yn,Aa(D,H,yn)):(fs&&ft&&ls(H),H.flags|=1,Ls(D,H,Te,yn),H.child)}function cl(D,H,Te,ft,yn){if(fi(Te)){var kn=!0;xi(H)}else kn=!1;if(tu(H,yn),H.stateNode===null)Ia(D,H),hc(H,Te,ft),Nl(H,Te,ft,yn),ft=!0;else if(D===null){var hi=H.stateNode,Wa=H.memoizedProps;hi.props=Wa;var ho=hi.context,os=Te.contextType;typeof os=="object"&&os!==null?os=Ou(os):(os=fi(Te)?Sr:Br.current,os=Vr(H,os));var uu=Te.getDerivedStateFromProps,yu=typeof uu=="function"||typeof hi.getSnapshotBeforeUpdate=="function";yu||typeof hi.UNSAFE_componentWillReceiveProps!="function"&&typeof hi.componentWillReceiveProps!="function"||(Wa!==ft||ho!==os)&&Ol(H,hi,ft,os),Fu=!1;var iu=H.memoizedState;hi.state=iu,Ks(H,ft,hi,yn),ho=H.memoizedState,Wa!==ft||iu!==ho||Er.current||Fu?(typeof uu=="function"&&(nl(H,Te,uu,ft),ho=H.memoizedState),(Wa=Fu||Mc(H,Te,Wa,ft,iu,ho,os))?(yu||typeof hi.UNSAFE_componentWillMount!="function"&&typeof hi.componentWillMount!="function"||(typeof hi.componentWillMount=="function"&&hi.componentWillMount(),typeof hi.UNSAFE_componentWillMount=="function"&&hi.UNSAFE_componentWillMount()),typeof hi.componentDidMount=="function"&&(H.flags|=4194308)):(typeof hi.componentDidMount=="function"&&(H.flags|=4194308),H.memoizedProps=ft,H.memoizedState=ho),hi.props=ft,hi.state=ho,hi.context=os,ft=Wa):(typeof hi.componentDidMount=="function"&&(H.flags|=4194308),ft=!1)}else{hi=H.stateNode,sl(D,H),Wa=H.memoizedProps,os=H.type===H.elementType?Wa:Js(H.type,Wa),hi.props=os,yu=H.pendingProps,iu=hi.context,ho=Te.contextType,typeof ho=="object"&&ho!==null?ho=Ou(ho):(ho=fi(Te)?Sr:Br.current,ho=Vr(H,ho));var il=Te.getDerivedStateFromProps;(uu=typeof il=="function"||typeof hi.getSnapshotBeforeUpdate=="function")||typeof hi.UNSAFE_componentWillReceiveProps!="function"&&typeof hi.componentWillReceiveProps!="function"||(Wa!==yu||iu!==ho)&&Ol(H,hi,ft,ho),Fu=!1,iu=H.memoizedState,hi.state=iu,Ks(H,ft,hi,yn);var gl=H.memoizedState;Wa!==yu||iu!==gl||Er.current||Fu?(typeof il=="function"&&(nl(H,Te,il,ft),gl=H.memoizedState),(os=Fu||Mc(H,Te,os,ft,iu,gl,ho)||!1)?(uu||typeof hi.UNSAFE_componentWillUpdate!="function"&&typeof hi.componentWillUpdate!="function"||(typeof hi.componentWillUpdate=="function"&&hi.componentWillUpdate(ft,gl,ho),typeof hi.UNSAFE_componentWillUpdate=="function"&&hi.UNSAFE_componentWillUpdate(ft,gl,ho)),typeof hi.componentDidUpdate=="function"&&(H.flags|=4),typeof hi.getSnapshotBeforeUpdate=="function"&&(H.flags|=1024)):(typeof hi.componentDidUpdate!="function"||Wa===D.memoizedProps&&iu===D.memoizedState||(H.flags|=4),typeof hi.getSnapshotBeforeUpdate!="function"||Wa===D.memoizedProps&&iu===D.memoizedState||(H.flags|=1024),H.memoizedProps=ft,H.memoizedState=gl),hi.props=ft,hi.state=gl,hi.context=ho,ft=os):(typeof hi.componentDidUpdate!="function"||Wa===D.memoizedProps&&iu===D.memoizedState||(H.flags|=4),typeof hi.getSnapshotBeforeUpdate!="function"||Wa===D.memoizedProps&&iu===D.memoizedState||(H.flags|=1024),ft=!1)}return tl(D,H,Te,ft,kn,yn)}function tl(D,H,Te,ft,yn,kn){Tl(D,H);var hi=(H.flags&128)!==0;if(!ft&&!hi)return yn&&Gi(H,Te,!1),Aa(D,H,kn);ft=H.stateNode,No.current=H;var Wa=hi&&typeof Te.getDerivedStateFromError!="function"?null:ft.render();return H.flags|=1,D!==null&&hi?(H.child=kl(H,D.child,null,kn),H.child=kl(H,null,Wa,kn)):Ls(D,H,Wa,kn),H.memoizedState=ft.state,yn&&Gi(H,Te,!0),H.child}function Zl(D){var H=D.stateNode;H.pendingContext?Wr(D,H.pendingContext,H.pendingContext!==H.context):H.context&&Wr(D,H.context,!1),Cc(D,H.containerInfo)}function Jl(D,H,Te,ft,yn){return Pu(),Lu(yn),H.flags|=256,Ls(D,H,Te,ft),H.child}var Fe={dehydrated:null,treeContext:null,retryLane:0};function He(D){return{baseLanes:D,cachePool:null,transitions:null}}function Dt(D,H,Te){var ft=H.pendingProps,yn=ul.current,kn=!1,hi=(H.flags&128)!==0,Wa;if((Wa=hi)||(Wa=D!==null&&D.memoizedState===null?!1:(yn&2)!==0),Wa?(kn=!0,H.flags&=-129):(D===null||D.memoizedState!==null)&&(yn|=1),sr(ul,yn&1),D===null)return Yu(H),D=H.memoizedState,D!==null&&(D=D.dehydrated,D!==null)?(H.mode&1?D.data==="$!"?H.lanes=8:H.lanes=1073741824:H.lanes=1,null):(hi=ft.children,D=ft.fallback,kn?(ft=H.mode,kn=H.child,hi={mode:"hidden",children:hi},!(ft&1)&&kn!==null?(kn.childLanes=0,kn.pendingProps=hi):kn=hd(hi,ft,0,null),D=oc(D,ft,Te,null),kn.return=H,D.return=H,kn.sibling=D,H.child=kn,H.child.memoizedState=He(Te),H.memoizedState=Fe,D):gn(H,hi));if(yn=D.memoizedState,yn!==null&&(Wa=yn.dehydrated,Wa!==null))return cr(D,H,hi,ft,Wa,yn,Te);if(kn){kn=ft.fallback,hi=H.mode,yn=D.child,Wa=yn.sibling;var ho={mode:"hidden",children:ft.children};return!(hi&1)&&H.child!==yn?(ft=H.child,ft.childLanes=0,ft.pendingProps=ho,H.deletions=null):(ft=Vf(yn,ho),ft.subtreeFlags=yn.subtreeFlags&14680064),Wa!==null?kn=Vf(Wa,kn):(kn=oc(kn,hi,Te,null),kn.flags|=2),kn.return=H,ft.return=H,ft.sibling=kn,H.child=ft,ft=kn,kn=H.child,hi=D.child.memoizedState,hi=hi===null?He(Te):{baseLanes:hi.baseLanes|Te,cachePool:null,transitions:hi.transitions},kn.memoizedState=hi,kn.childLanes=D.childLanes&~Te,H.memoizedState=Fe,ft}return kn=D.child,D=kn.sibling,ft=Vf(kn,{mode:"visible",children:ft.children}),!(H.mode&1)&&(ft.lanes=Te),ft.return=H,ft.sibling=null,D!==null&&(Te=H.deletions,Te===null?(H.deletions=[D],H.flags|=16):Te.push(D)),H.child=ft,H.memoizedState=null,ft}function gn(D,H){return H=hd({mode:"visible",children:H},D.mode,0,null),H.return=D,D.child=H}function Xn(D,H,Te,ft){return ft!==null&&Lu(ft),kl(H,D.child,null,Te),D=gn(H,H.pendingProps.children),D.flags|=2,H.memoizedState=null,D}function cr(D,H,Te,ft,yn,kn,hi){if(Te)return H.flags&256?(H.flags&=-257,ft=qc(Error(u(422))),Xn(D,H,hi,ft)):H.memoizedState!==null?(H.child=D.child,H.flags|=128,null):(kn=ft.fallback,yn=H.mode,ft=hd({mode:"visible",children:ft.children},yn,0,null),kn=oc(kn,yn,hi,null),kn.flags|=2,ft.return=H,kn.return=H,ft.sibling=kn,H.child=ft,H.mode&1&&kl(H,D.child,null,hi),H.child.memoizedState=He(hi),H.memoizedState=Fe,kn);if(!(H.mode&1))return Xn(D,H,hi,null);if(yn.data==="$!"){if(ft=yn.nextSibling&&yn.nextSibling.dataset,ft)var Wa=ft.dgst;return ft=Wa,kn=Error(u(419)),ft=qc(kn,ft,void 0),Xn(D,H,hi,ft)}if(Wa=(hi&D.childLanes)!==0,xo||Wa){if(ft=Ac,ft!==null){switch(hi&-hi){case 4:yn=2;break;case 16:yn=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:yn=32;break;case 536870912:yn=268435456;break;default:yn=0}yn=yn&(ft.suspendedLanes|hi)?0:yn,yn!==0&&yn!==kn.retryLane&&(kn.retryLane=yn,Nu(D,yn),fl(ft,D,yn,-1))}return Xo(),ft=qc(Error(u(421))),Xn(D,H,hi,ft)}return yn.data==="$?"?(H.flags|=128,H.child=D.child,H=Xc.bind(null,D),yn._reactRetry=H,null):(D=kn.treeContext,Do=In(yn.nextSibling),cs=H,fs=!0,is=null,D!==null&&(Yo[bo++]=ko,Yo[bo++]=Es,Yo[bo++]=Ea,ko=D.id,Es=D.overflow,Ea=H),H=gn(H,ft.children),H.flags|=4096,H)}function jr(D,H,Te){D.lanes|=H;var ft=D.alternate;ft!==null&&(ft.lanes|=H),zu(D.return,H,Te)}function Hr(D,H,Te,ft,yn){var kn=D.memoizedState;kn===null?D.memoizedState={isBackwards:H,rendering:null,renderingStartTime:0,last:ft,tail:Te,tailMode:yn}:(kn.isBackwards=H,kn.rendering=null,kn.renderingStartTime=0,kn.last=ft,kn.tail=Te,kn.tailMode=yn)}function sa(D,H,Te){var ft=H.pendingProps,yn=ft.revealOrder,kn=ft.tail;if(Ls(D,H,ft.children,Te),ft=ul.current,ft&2)ft=ft&1|2,H.flags|=128;else{if(D!==null&&D.flags&128)e:for(D=H.child;D!==null;){if(D.tag===13)D.memoizedState!==null&&jr(D,Te,H);else if(D.tag===19)jr(D,Te,H);else if(D.child!==null){D.child.return=D,D=D.child;continue}if(D===H)break e;for(;D.sibling===null;){if(D.return===null||D.return===H)break e;D=D.return}D.sibling.return=D.return,D=D.sibling}ft&=1}if(sr(ul,ft),!(H.mode&1))H.memoizedState=null;else switch(yn){case"forwards":for(Te=H.child,yn=null;Te!==null;)D=Te.alternate,D!==null&&fc(D)===null&&(yn=Te),Te=Te.sibling;Te=yn,Te===null?(yn=H.child,H.child=null):(yn=Te.sibling,Te.sibling=null),Hr(H,!1,yn,Te,kn);break;case"backwards":for(Te=null,yn=H.child,H.child=null;yn!==null;){if(D=yn.alternate,D!==null&&fc(D)===null){H.child=yn;break}D=yn.sibling,yn.sibling=Te,Te=yn,yn=D}Hr(H,!0,Te,null,kn);break;case"together":Hr(H,!1,null,null,void 0);break;default:H.memoizedState=null}return H.child}function Ia(D,H){!(H.mode&1)&&D!==null&&(D.alternate=null,H.alternate=null,H.flags|=2)}function Aa(D,H,Te){if(D!==null&&(H.dependencies=D.dependencies),Ad|=H.lanes,!(Te&H.childLanes))return null;if(D!==null&&H.child!==D.child)throw Error(u(153));if(H.child!==null){for(D=H.child,Te=Vf(D,D.pendingProps),H.child=Te,Te.return=H;D.sibling!==null;)D=D.sibling,Te=Te.sibling=Vf(D,D.pendingProps),Te.return=H;Te.sibling=null}return H.child}function pa(D,H,Te){switch(H.tag){case 3:Zl(H),Pu();break;case 5:Qc(H);break;case 1:fi(H.type)&&xi(H);break;case 4:Cc(H,H.stateNode.containerInfo);break;case 10:var ft=H.type._context,yn=H.memoizedProps.value;sr(ys,ft._currentValue),ft._currentValue=yn;break;case 13:if(ft=H.memoizedState,ft!==null)return ft.dehydrated!==null?(sr(ul,ul.current&1),H.flags|=128,null):Te&H.child.childLanes?Dt(D,H,Te):(sr(ul,ul.current&1),D=Aa(D,H,Te),D!==null?D.sibling:null);sr(ul,ul.current&1);break;case 19:if(ft=(Te&H.childLanes)!==0,D.flags&128){if(ft)return sa(D,H,Te);H.flags|=128}if(yn=H.memoizedState,yn!==null&&(yn.rendering=null,yn.tail=null,yn.lastEffect=null),sr(ul,ul.current),ft)break;return null;case 22:case 23:return H.lanes=0,Iu(D,H,Te)}return Aa(D,H,Te)}var Yi,eo,$o,Cs;Yi=function(D,H){for(var Te=H.child;Te!==null;){if(Te.tag===5||Te.tag===6)D.appendChild(Te.stateNode);else if(Te.tag!==4&&Te.child!==null){Te.child.return=Te,Te=Te.child;continue}if(Te===H)break;for(;Te.sibling===null;){if(Te.return===null||Te.return===H)return;Te=Te.return}Te.sibling.return=Te.return,Te=Te.sibling}},eo=function(){},$o=function(D,H,Te,ft){var yn=D.memoizedProps;if(yn!==ft){D=H.stateNode,_c(Ml.current);var kn=null;switch(Te){case"input":yn=Re(D,yn),ft=Re(D,ft),kn=[];break;case"select":yn=pe({},yn,{value:void 0}),ft=pe({},ft,{value:void 0}),kn=[];break;case"textarea":yn=It(D,yn),ft=It(D,ft),kn=[];break;default:typeof yn.onClick!="function"&&typeof ft.onClick=="function"&&(D.onclick=go)}Gt(Te,ft);var hi;Te=null;for(os in yn)if(!ft.hasOwnProperty(os)&&yn.hasOwnProperty(os)&&yn[os]!=null)if(os==="style"){var Wa=yn[os];for(hi in Wa)Wa.hasOwnProperty(hi)&&(Te||(Te={}),Te[hi]="")}else os!=="dangerouslySetInnerHTML"&&os!=="children"&&os!=="suppressContentEditableWarning"&&os!=="suppressHydrationWarning"&&os!=="autoFocus"&&(l.hasOwnProperty(os)?kn||(kn=[]):(kn=kn||[]).push(os,null));for(os in ft){var ho=ft[os];if(Wa=yn?.[os],ft.hasOwnProperty(os)&&ho!==Wa&&(ho!=null||Wa!=null))if(os==="style")if(Wa){for(hi in Wa)!Wa.hasOwnProperty(hi)||ho&&ho.hasOwnProperty(hi)||(Te||(Te={}),Te[hi]="");for(hi in ho)ho.hasOwnProperty(hi)&&Wa[hi]!==ho[hi]&&(Te||(Te={}),Te[hi]=ho[hi])}else Te||(kn||(kn=[]),kn.push(os,Te)),Te=ho;else os==="dangerouslySetInnerHTML"?(ho=ho?ho.__html:void 0,Wa=Wa?Wa.__html:void 0,ho!=null&&Wa!==ho&&(kn=kn||[]).push(os,ho)):os==="children"?typeof ho!="string"&&typeof ho!="number"||(kn=kn||[]).push(os,""+ho):os!=="suppressContentEditableWarning"&&os!=="suppressHydrationWarning"&&(l.hasOwnProperty(os)?(ho!=null&&os==="onScroll"&&oe("scroll",D),kn||Wa===ho||(kn=[])):(kn=kn||[]).push(os,ho))}Te&&(kn=kn||[]).push("style",Te);var os=kn;(H.updateQueue=os)&&(H.flags|=4)}},Cs=function(D,H,Te,ft){Te!==ft&&(H.flags|=4)};function vs(D,H){if(!fs)switch(D.tailMode){case"hidden":H=D.tail;for(var Te=null;H!==null;)H.alternate!==null&&(Te=H),H=H.sibling;Te===null?D.tail=null:Te.sibling=null;break;case"collapsed":Te=D.tail;for(var ft=null;Te!==null;)Te.alternate!==null&&(ft=Te),Te=Te.sibling;ft===null?H||D.tail===null?D.tail=null:D.tail.sibling=null:ft.sibling=null}}function Rs(D){var H=D.alternate!==null&&D.alternate.child===D.child,Te=0,ft=0;if(H)for(var yn=D.child;yn!==null;)Te|=yn.lanes|yn.childLanes,ft|=yn.subtreeFlags&14680064,ft|=yn.flags&14680064,yn.return=D,yn=yn.sibling;else for(yn=D.child;yn!==null;)Te|=yn.lanes|yn.childLanes,ft|=yn.subtreeFlags,ft|=yn.flags,yn.return=D,yn=yn.sibling;return D.subtreeFlags|=ft,D.childLanes=Te,H}function Eu(D,H,Te){var ft=H.pendingProps;switch(Ss(H),H.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rs(H),null;case 1:return fi(H.type)&&xr(),Rs(H),null;case 3:return ft=H.stateNode,of(),zn(Er),zn(Br),vc(),ft.pendingContext&&(ft.context=ft.pendingContext,ft.pendingContext=null),(D===null||D.child===null)&&(Xu(H)?H.flags|=4:D===null||D.memoizedState.isDehydrated&&!(H.flags&256)||(H.flags|=1024,is!==null&&(zl(is),is=null))),eo(D,H),Rs(H),null;case 5:sc(H);var yn=_c(tf.current);if(Te=H.type,D!==null&&H.stateNode!=null)$o(D,H,Te,ft,yn),D.ref!==H.ref&&(H.flags|=512,H.flags|=2097152);else{if(!ft){if(H.stateNode===null)throw Error(u(166));return Rs(H),null}if(D=_c(Ml.current),Xu(H)){ft=H.stateNode,Te=H.type;var kn=H.memoizedProps;switch(ft[ki]=H,ft[ri]=kn,D=(H.mode&1)!==0,Te){case"dialog":oe("cancel",ft),oe("close",ft);break;case"iframe":case"object":case"embed":oe("load",ft);break;case"video":case"audio":for(yn=0;yn<jt.length;yn++)oe(jt[yn],ft);break;case"source":oe("error",ft);break;case"img":case"image":case"link":oe("error",ft),oe("load",ft);break;case"details":oe("toggle",ft);break;case"input":ue(ft,kn),oe("invalid",ft);break;case"select":ft._wrapperState={wasMultiple:!!kn.multiple},oe("invalid",ft);break;case"textarea":Ce(ft,kn),oe("invalid",ft)}Gt(Te,kn),yn=null;for(var hi in kn)if(kn.hasOwnProperty(hi)){var Wa=kn[hi];hi==="children"?typeof Wa=="string"?ft.textContent!==Wa&&(kn.suppressHydrationWarning!==!0&&Qa(ft.textContent,Wa,D),yn=["children",Wa]):typeof Wa=="number"&&ft.textContent!==""+Wa&&(kn.suppressHydrationWarning!==!0&&Qa(ft.textContent,Wa,D),yn=["children",""+Wa]):l.hasOwnProperty(hi)&&Wa!=null&&hi==="onScroll"&&oe("scroll",ft)}switch(Te){case"input":Ge(ft),Me(ft,kn,!0);break;case"textarea":Ge(ft),$e(ft);break;case"select":case"option":break;default:typeof kn.onClick=="function"&&(ft.onclick=go)}ft=yn,H.updateQueue=ft,ft!==null&&(H.flags|=4)}else{hi=yn.nodeType===9?yn:yn.ownerDocument,D==="http://www.w3.org/1999/xhtml"&&(D=tt(Te)),D==="http://www.w3.org/1999/xhtml"?Te==="script"?(D=hi.createElement("div"),D.innerHTML="<script><\/script>",D=D.removeChild(D.firstChild)):typeof ft.is=="string"?D=hi.createElement(Te,{is:ft.is}):(D=hi.createElement(Te),Te==="select"&&(hi=D,ft.multiple?hi.multiple=!0:ft.size&&(hi.size=ft.size))):D=hi.createElementNS(D,Te),D[ki]=H,D[ri]=ft,Yi(D,H,!1,!1),H.stateNode=D;e:{switch(hi=hn(Te,ft),Te){case"dialog":oe("cancel",D),oe("close",D),yn=ft;break;case"iframe":case"object":case"embed":oe("load",D),yn=ft;break;case"video":case"audio":for(yn=0;yn<jt.length;yn++)oe(jt[yn],D);yn=ft;break;case"source":oe("error",D),yn=ft;break;case"img":case"image":case"link":oe("error",D),oe("load",D),yn=ft;break;case"details":oe("toggle",D),yn=ft;break;case"input":ue(D,ft),yn=Re(D,ft),oe("invalid",D);break;case"option":yn=ft;break;case"select":D._wrapperState={wasMultiple:!!ft.multiple},yn=pe({},ft,{value:void 0}),oe("invalid",D);break;case"textarea":Ce(D,ft),yn=It(D,ft),oe("invalid",D);break;default:yn=ft}Gt(Te,yn),Wa=yn;for(kn in Wa)if(Wa.hasOwnProperty(kn)){var ho=Wa[kn];kn==="style"?mt(D,ho):kn==="dangerouslySetInnerHTML"?(ho=ho?ho.__html:void 0,ho!=null&&je(D,ho)):kn==="children"?typeof ho=="string"?(Te!=="textarea"||ho!=="")&&Et(D,ho):typeof ho=="number"&&Et(D,""+ho):kn!=="suppressContentEditableWarning"&&kn!=="suppressHydrationWarning"&&kn!=="autoFocus"&&(l.hasOwnProperty(kn)?ho!=null&&kn==="onScroll"&&oe("scroll",D):ho!=null&&A(D,kn,ho,hi))}switch(Te){case"input":Ge(D),Me(D,ft,!1);break;case"textarea":Ge(D),$e(D);break;case"option":ft.value!=null&&D.setAttribute("value",""+me(ft.value));break;case"select":D.multiple=!!ft.multiple,kn=ft.value,kn!=null?At(D,!!ft.multiple,kn,!1):ft.defaultValue!=null&&At(D,!!ft.multiple,ft.defaultValue,!0);break;default:typeof yn.onClick=="function"&&(D.onclick=go)}switch(Te){case"button":case"input":case"select":case"textarea":ft=!!ft.autoFocus;break e;case"img":ft=!0;break e;default:ft=!1}}ft&&(H.flags|=4)}H.ref!==null&&(H.flags|=512,H.flags|=2097152)}return Rs(H),null;case 6:if(D&&H.stateNode!=null)Cs(D,H,D.memoizedProps,ft);else{if(typeof ft!="string"&&H.stateNode===null)throw Error(u(166));if(Te=_c(tf.current),_c(Ml.current),Xu(H)){if(ft=H.stateNode,Te=H.memoizedProps,ft[ki]=H,(kn=ft.nodeValue!==Te)&&(D=cs,D!==null))switch(D.tag){case 3:Qa(ft.nodeValue,Te,(D.mode&1)!==0);break;case 5:D.memoizedProps.suppressHydrationWarning!==!0&&Qa(ft.nodeValue,Te,(D.mode&1)!==0)}kn&&(H.flags|=4)}else ft=(Te.nodeType===9?Te:Te.ownerDocument).createTextNode(ft),ft[ki]=H,H.stateNode=ft}return Rs(H),null;case 13:if(zn(ul),ft=H.memoizedState,D===null||D.memoizedState!==null&&D.memoizedState.dehydrated!==null){if(fs&&Do!==null&&H.mode&1&&!(H.flags&128))su(),Pu(),H.flags|=98560,kn=!1;else if(kn=Xu(H),ft!==null&&ft.dehydrated!==null){if(D===null){if(!kn)throw Error(u(318));if(kn=H.memoizedState,kn=kn!==null?kn.dehydrated:null,!kn)throw Error(u(317));kn[ki]=H}else Pu(),!(H.flags&128)&&(H.memoizedState=null),H.flags|=4;Rs(H),kn=!1}else is!==null&&(zl(is),is=null),kn=!0;if(!kn)return H.flags&65536?H:null}return H.flags&128?(H.lanes=Te,H):(ft=ft!==null,ft!==(D!==null&&D.memoizedState!==null)&&ft&&(H.child.flags|=8192,H.mode&1&&(D===null||ul.current&1?mf===0&&(mf=3):Xo())),H.updateQueue!==null&&(H.flags|=4),Rs(H),null);case 4:return of(),eo(D,H),D===null&>(H.stateNode.containerInfo),Rs(H),null;case 10:return ds(H.type._context),Rs(H),null;case 17:return fi(H.type)&&xr(),Rs(H),null;case 19:if(zn(ul),kn=H.memoizedState,kn===null)return Rs(H),null;if(ft=(H.flags&128)!==0,hi=kn.rendering,hi===null)if(ft)vs(kn,!1);else{if(mf!==0||D!==null&&D.flags&128)for(D=H.child;D!==null;){if(hi=fc(D),hi!==null){for(H.flags|=128,vs(kn,!1),ft=hi.updateQueue,ft!==null&&(H.updateQueue=ft,H.flags|=4),H.subtreeFlags=0,ft=Te,Te=H.child;Te!==null;)kn=Te,D=ft,kn.flags&=14680066,hi=kn.alternate,hi===null?(kn.childLanes=0,kn.lanes=D,kn.child=null,kn.subtreeFlags=0,kn.memoizedProps=null,kn.memoizedState=null,kn.updateQueue=null,kn.dependencies=null,kn.stateNode=null):(kn.childLanes=hi.childLanes,kn.lanes=hi.lanes,kn.child=hi.child,kn.subtreeFlags=0,kn.deletions=null,kn.memoizedProps=hi.memoizedProps,kn.memoizedState=hi.memoizedState,kn.updateQueue=hi.updateQueue,kn.type=hi.type,D=hi.dependencies,kn.dependencies=D===null?null:{lanes:D.lanes,firstContext:D.firstContext}),Te=Te.sibling;return sr(ul,ul.current&1|2),H.child}D=D.sibling}kn.tail!==null&&dn()>rd&&(H.flags|=128,ft=!0,vs(kn,!1),H.lanes=4194304)}else{if(!ft)if(D=fc(hi),D!==null){if(H.flags|=128,ft=!0,Te=D.updateQueue,Te!==null&&(H.updateQueue=Te,H.flags|=4),vs(kn,!0),kn.tail===null&&kn.tailMode==="hidden"&&!hi.alternate&&!fs)return Rs(H),null}else 2*dn()-kn.renderingStartTime>rd&&Te!==1073741824&&(H.flags|=128,ft=!0,vs(kn,!1),H.lanes=4194304);kn.isBackwards?(hi.sibling=H.child,H.child=hi):(Te=kn.last,Te!==null?Te.sibling=hi:H.child=hi,kn.last=hi)}return kn.tail!==null?(H=kn.tail,kn.rendering=H,kn.tail=H.sibling,kn.renderingStartTime=dn(),H.sibling=null,Te=ul.current,sr(ul,ft?Te&1|2:Te&1),H):(Rs(H),null);case 22:case 23:return Ji(),ft=H.memoizedState!==null,D!==null&&D.memoizedState!==null!==ft&&(H.flags|=8192),ft&&H.mode&1?zf&1073741824&&(Rs(H),H.subtreeFlags&6&&(H.flags|=8192)):Rs(H),null;case 24:return null;case 25:return null}throw Error(u(156,H.tag))}function _u(D,H){switch(Ss(H),H.tag){case 1:return fi(H.type)&&xr(),D=H.flags,D&65536?(H.flags=D&-65537|128,H):null;case 3:return of(),zn(Er),zn(Br),vc(),D=H.flags,D&65536&&!(D&128)?(H.flags=D&-65537|128,H):null;case 5:return sc(H),null;case 13:if(zn(ul),D=H.memoizedState,D!==null&&D.dehydrated!==null){if(H.alternate===null)throw Error(u(340));Pu()}return D=H.flags,D&65536?(H.flags=D&-65537|128,H):null;case 19:return zn(ul),null;case 4:return of(),null;case 10:return ds(H.type._context),null;case 22:case 23:return Ji(),null;case 24:return null;default:return null}}var ju=!1,Cl=!1,Yl=typeof WeakSet=="function"?WeakSet:Set,cu=null;function bs(D,H){var Te=D.ref;if(Te!==null)if(typeof Te=="function")try{Te(null)}catch(ft){hl(D,H,ft)}else Te.current=null}function wc(D,H,Te){try{Te()}catch(ft){hl(D,H,ft)}}var Zc=!1;function Af(D,H){if(Ao=uo,D=_s(),Is(D)){if("selectionStart"in D)var Te={start:D.selectionStart,end:D.selectionEnd};else e:{Te=(Te=D.ownerDocument)&&Te.defaultView||window;var ft=Te.getSelection&&Te.getSelection();if(ft&&ft.rangeCount!==0){Te=ft.anchorNode;var yn=ft.anchorOffset,kn=ft.focusNode;ft=ft.focusOffset;try{Te.nodeType,kn.nodeType}catch{Te=null;break e}var hi=0,Wa=-1,ho=-1,os=0,uu=0,yu=D,iu=null;t:for(;;){for(var il;yu!==Te||yn!==0&&yu.nodeType!==3||(Wa=hi+yn),yu!==kn||ft!==0&&yu.nodeType!==3||(ho=hi+ft),yu.nodeType===3&&(hi+=yu.nodeValue.length),(il=yu.firstChild)!==null;)iu=yu,yu=il;for(;;){if(yu===D)break t;if(iu===Te&&++os===yn&&(Wa=hi),iu===kn&&++uu===ft&&(ho=hi),(il=yu.nextSibling)!==null)break;yu=iu,iu=yu.parentNode}yu=il}Te=Wa===-1||ho===-1?null:{start:Wa,end:ho}}else Te=null}Te=Te||{start:0,end:0}}else Te=null;for(Fo={focusedElem:D,selectionRange:Te},uo=!1,cu=H;cu!==null;)if(H=cu,D=H.child,(H.subtreeFlags&1028)!==0&&D!==null)D.return=H,cu=D;else for(;cu!==null;){H=cu;try{var gl=H.alternate;if(H.flags&1024)switch(H.tag){case 0:case 11:case 15:break;case 1:if(gl!==null){var bl=gl.memoizedProps,Bf=gl.memoizedState,Vo=H.stateNode,Po=Vo.getSnapshotBeforeUpdate(H.elementType===H.type?bl:Js(H.type,bl),Bf);Vo.__reactInternalSnapshotBeforeUpdate=Po}break;case 3:var ns=H.stateNode.containerInfo;ns.nodeType===1?ns.textContent="":ns.nodeType===9&&ns.documentElement&&ns.removeChild(ns.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(u(163))}}catch(Mu){hl(H,H.return,Mu)}if(D=H.sibling,D!==null){D.return=H.return,cu=D;break}cu=H.return}return gl=Zc,Zc=!1,gl}function Yc(D,H,Te){var ft=H.updateQueue;if(ft=ft!==null?ft.lastEffect:null,ft!==null){var yn=ft=ft.next;do{if((yn.tag&D)===D){var kn=yn.destroy;yn.destroy=void 0,kn!==void 0&&wc(H,Te,kn)}yn=yn.next}while(yn!==ft)}}function Yf(D,H){if(H=H.updateQueue,H=H!==null?H.lastEffect:null,H!==null){var Te=H=H.next;do{if((Te.tag&D)===D){var ft=Te.create;Te.destroy=ft()}Te=Te.next}while(Te!==H)}}function Xf(D){var H=D.ref;if(H!==null){var Te=D.stateNode;switch(D.tag){case 5:D=Te;break;default:D=Te}typeof H=="function"?H(D):H.current=D}}function ud(D){var H=D.alternate;H!==null&&(D.alternate=null,ud(H)),D.child=null,D.deletions=null,D.sibling=null,D.tag===5&&(H=D.stateNode,H!==null&&(delete H[ki],delete H[ri],delete H[_n],delete H[Ua],delete H[va])),D.stateNode=null,D.return=null,D.dependencies=null,D.memoizedProps=null,D.memoizedState=null,D.pendingProps=null,D.stateNode=null,D.updateQueue=null}function rf(D){return D.tag===5||D.tag===3||D.tag===4}function th(D){e:for(;;){for(;D.sibling===null;){if(D.return===null||rf(D.return))return null;D=D.return}for(D.sibling.return=D.return,D=D.sibling;D.tag!==5&&D.tag!==6&&D.tag!==18;){if(D.flags&2||D.child===null||D.tag===4)continue e;D.child.return=D,D=D.child}if(!(D.flags&2))return D.stateNode}}function Sd(D,H,Te){var ft=D.tag;if(ft===5||ft===6)D=D.stateNode,H?Te.nodeType===8?Te.parentNode.insertBefore(D,H):Te.insertBefore(D,H):(Te.nodeType===8?(H=Te.parentNode,H.insertBefore(D,Te)):(H=Te,H.appendChild(D)),Te=Te._reactRootContainer,Te!=null||H.onclick!==null||(H.onclick=go));else if(ft!==4&&(D=D.child,D!==null))for(Sd(D,H,Te),D=D.sibling;D!==null;)Sd(D,H,Te),D=D.sibling}function Od(D,H,Te){var ft=D.tag;if(ft===5||ft===6)D=D.stateNode,H?Te.insertBefore(D,H):Te.appendChild(D);else if(ft!==4&&(D=D.child,D!==null))for(Od(D,H,Te),D=D.sibling;D!==null;)Od(D,H,Te),D=D.sibling}var hf=null,vf=!1;function Nf(D,H,Te){for(Te=Te.child;Te!==null;)ld(D,H,Te),Te=Te.sibling}function ld(D,H,Te){if(yr&&typeof yr.onCommitFiberUnmount=="function")try{yr.onCommitFiberUnmount(ni,Te)}catch{}switch(Te.tag){case 5:Cl||bs(Te,H);case 6:var ft=hf,yn=vf;hf=null,Nf(D,H,Te),hf=ft,vf=yn,hf!==null&&(vf?(D=hf,Te=Te.stateNode,D.nodeType===8?D.parentNode.removeChild(Te):D.removeChild(Te)):hf.removeChild(Te.stateNode));break;case 18:hf!==null&&(vf?(D=hf,Te=Te.stateNode,D.nodeType===8?tr(D.parentNode,Te):D.nodeType===1&&tr(D,Te),qi(D)):tr(hf,Te.stateNode));break;case 4:ft=hf,yn=vf,hf=Te.stateNode.containerInfo,vf=!0,Nf(D,H,Te),hf=ft,vf=yn;break;case 0:case 11:case 14:case 15:if(!Cl&&(ft=Te.updateQueue,ft!==null&&(ft=ft.lastEffect,ft!==null))){yn=ft=ft.next;do{var kn=yn,hi=kn.destroy;kn=kn.tag,hi!==void 0&&(kn&2||kn&4)&&wc(Te,H,hi),yn=yn.next}while(yn!==ft)}Nf(D,H,Te);break;case 1:if(!Cl&&(bs(Te,H),ft=Te.stateNode,typeof ft.componentWillUnmount=="function"))try{ft.props=Te.memoizedProps,ft.state=Te.memoizedState,ft.componentWillUnmount()}catch(Wa){hl(Te,H,Wa)}Nf(D,H,Te);break;case 21:Nf(D,H,Te);break;case 22:Te.mode&1?(Cl=(ft=Cl)||Te.memoizedState!==null,Nf(D,H,Te),Cl=ft):Nf(D,H,Te);break;default:Nf(D,H,Te)}}function cd(D){var H=D.updateQueue;if(H!==null){D.updateQueue=null;var Te=D.stateNode;Te===null&&(Te=D.stateNode=new Yl),H.forEach(function(ft){var yn=jc.bind(null,D,ft);Te.has(ft)||(Te.add(ft),ft.then(yn,yn))})}}function pf(D,H){var Te=H.deletions;if(Te!==null)for(var ft=0;ft<Te.length;ft++){var yn=Te[ft];try{var kn=D,hi=H,Wa=hi;e:for(;Wa!==null;){switch(Wa.tag){case 5:hf=Wa.stateNode,vf=!1;break e;case 3:hf=Wa.stateNode.containerInfo,vf=!0;break e;case 4:hf=Wa.stateNode.containerInfo,vf=!0;break e}Wa=Wa.return}if(hf===null)throw Error(u(160));ld(kn,hi,yn),hf=null,vf=!1;var ho=yn.alternate;ho!==null&&(ho.return=null),yn.return=null}catch(os){hl(yn,H,os)}}if(H.subtreeFlags&12854)for(H=H.child;H!==null;)kd(H,D),H=H.sibling}function kd(D,H){var Te=D.alternate,ft=D.flags;switch(D.tag){case 0:case 11:case 14:case 15:if(pf(H,D),nd(D),ft&4){try{Yc(3,D,D.return),Yf(3,D)}catch(bl){hl(D,D.return,bl)}try{Yc(5,D,D.return)}catch(bl){hl(D,D.return,bl)}}break;case 1:pf(H,D),nd(D),ft&512&&Te!==null&&bs(Te,Te.return);break;case 5:if(pf(H,D),nd(D),ft&512&&Te!==null&&bs(Te,Te.return),D.flags&32){var yn=D.stateNode;try{Et(yn,"")}catch(bl){hl(D,D.return,bl)}}if(ft&4&&(yn=D.stateNode,yn!=null)){var kn=D.memoizedProps,hi=Te!==null?Te.memoizedProps:kn,Wa=D.type,ho=D.updateQueue;if(D.updateQueue=null,ho!==null)try{Wa==="input"&&kn.type==="radio"&&kn.name!=null&&ae(yn,kn),hn(Wa,hi);var os=hn(Wa,kn);for(hi=0;hi<ho.length;hi+=2){var uu=ho[hi],yu=ho[hi+1];uu==="style"?mt(yn,yu):uu==="dangerouslySetInnerHTML"?je(yn,yu):uu==="children"?Et(yn,yu):A(yn,uu,yu,os)}switch(Wa){case"input":ve(yn,kn);break;case"textarea":Ae(yn,kn);break;case"select":var iu=yn._wrapperState.wasMultiple;yn._wrapperState.wasMultiple=!!kn.multiple;var il=kn.value;il!=null?At(yn,!!kn.multiple,il,!1):iu!==!!kn.multiple&&(kn.defaultValue!=null?At(yn,!!kn.multiple,kn.defaultValue,!0):At(yn,!!kn.multiple,kn.multiple?[]:"",!1))}yn[ri]=kn}catch(bl){hl(D,D.return,bl)}}break;case 6:if(pf(H,D),nd(D),ft&4){if(D.stateNode===null)throw Error(u(162));yn=D.stateNode,kn=D.memoizedProps;try{yn.nodeValue=kn}catch(bl){hl(D,D.return,bl)}}break;case 3:if(pf(H,D),nd(D),ft&4&&Te!==null&&Te.memoizedState.isDehydrated)try{qi(H.containerInfo)}catch(bl){hl(D,D.return,bl)}break;case 4:pf(H,D),nd(D);break;case 13:pf(H,D),nd(D),yn=D.child,yn.flags&8192&&(kn=yn.memoizedState!==null,yn.stateNode.isHidden=kn,!kn||yn.alternate!==null&&yn.alternate.memoizedState!==null||(Mh=dn())),ft&4&&cd(D);break;case 22:if(uu=Te!==null&&Te.memoizedState!==null,D.mode&1?(Cl=(os=Cl)||uu,pf(H,D),Cl=os):pf(H,D),nd(D),ft&8192){if(os=D.memoizedState!==null,(D.stateNode.isHidden=os)&&!uu&&D.mode&1)for(cu=D,uu=D.child;uu!==null;){for(yu=cu=uu;cu!==null;){switch(iu=cu,il=iu.child,iu.tag){case 0:case 11:case 14:case 15:Yc(4,iu,iu.return);break;case 1:bs(iu,iu.return);var gl=iu.stateNode;if(typeof gl.componentWillUnmount=="function"){ft=iu,Te=iu.return;try{H=ft,gl.props=H.memoizedProps,gl.state=H.memoizedState,gl.componentWillUnmount()}catch(bl){hl(ft,Te,bl)}}break;case 5:bs(iu,iu.return);break;case 22:if(iu.memoizedState!==null){Bd(yu);continue}}il!==null?(il.return=iu,cu=il):Bd(yu)}uu=uu.sibling}e:for(uu=null,yu=D;;){if(yu.tag===5){if(uu===null){uu=yu;try{yn=yu.stateNode,os?(kn=yn.style,typeof kn.setProperty=="function"?kn.setProperty("display","none","important"):kn.display="none"):(Wa=yu.stateNode,ho=yu.memoizedProps.style,hi=ho!=null&&ho.hasOwnProperty("display")?ho.display:null,Wa.style.display=Ne("display",hi))}catch(bl){hl(D,D.return,bl)}}}else if(yu.tag===6){if(uu===null)try{yu.stateNode.nodeValue=os?"":yu.memoizedProps}catch(bl){hl(D,D.return,bl)}}else if((yu.tag!==22&&yu.tag!==23||yu.memoizedState===null||yu===D)&&yu.child!==null){yu.child.return=yu,yu=yu.child;continue}if(yu===D)break e;for(;yu.sibling===null;){if(yu.return===null||yu.return===D)break e;uu===yu&&(uu=null),yu=yu.return}uu===yu&&(uu=null),yu.sibling.return=yu.return,yu=yu.sibling}}break;case 19:pf(H,D),nd(D),ft&4&&cd(D);break;case 21:break;default:pf(H,D),nd(D)}}function nd(D){var H=D.flags;if(H&2){try{e:{for(var Te=D.return;Te!==null;){if(rf(Te)){var ft=Te;break e}Te=Te.return}throw Error(u(160))}switch(ft.tag){case 5:var yn=ft.stateNode;ft.flags&32&&(Et(yn,""),ft.flags&=-33);var kn=th(D);Od(D,kn,yn);break;case 3:case 4:var hi=ft.stateNode.containerInfo,Wa=th(D);Sd(D,Wa,hi);break;default:throw Error(u(161))}}catch(ho){hl(D,D.return,ho)}D.flags&=-3}H&4096&&(D.flags&=-4097)}function wf(D,H,Te){cu=D,Df(D,H,Te)}function Df(D,H,Te){for(var ft=(D.mode&1)!==0;cu!==null;){var yn=cu,kn=yn.child;if(yn.tag===22&&ft){var hi=yn.memoizedState!==null||ju;if(!hi){var Wa=yn.alternate,ho=Wa!==null&&Wa.memoizedState!==null||Cl;Wa=ju;var os=Cl;if(ju=hi,(Cl=ho)&&!os)for(cu=yn;cu!==null;)hi=cu,ho=hi.child,hi.tag===22&&hi.memoizedState!==null?xd(yn):ho!==null?(ho.return=hi,cu=ho):xd(yn);for(;kn!==null;)cu=kn,Df(kn,H,Te),kn=kn.sibling;cu=yn,ju=Wa,Cl=os}nh(D,H,Te)}else yn.subtreeFlags&8772&&kn!==null?(kn.return=yn,cu=kn):nh(D,H,Te)}}function nh(D){for(;cu!==null;){var H=cu;if(H.flags&8772){var Te=H.alternate;try{if(H.flags&8772)switch(H.tag){case 0:case 11:case 15:Cl||Yf(5,H);break;case 1:var ft=H.stateNode;if(H.flags&4&&!Cl)if(Te===null)ft.componentDidMount();else{var yn=H.elementType===H.type?Te.memoizedProps:Js(H.type,Te.memoizedProps);ft.componentDidUpdate(yn,Te.memoizedState,ft.__reactInternalSnapshotBeforeUpdate)}var kn=H.updateQueue;kn!==null&&nu(H,kn,ft);break;case 3:var hi=H.updateQueue;if(hi!==null){if(Te=null,H.child!==null)switch(H.child.tag){case 5:Te=H.child.stateNode;break;case 1:Te=H.child.stateNode}nu(H,hi,Te)}break;case 5:var Wa=H.stateNode;if(Te===null&&H.flags&4){Te=Wa;var ho=H.memoizedProps;switch(H.type){case"button":case"input":case"select":case"textarea":ho.autoFocus&&Te.focus();break;case"img":ho.src&&(Te.src=ho.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(H.memoizedState===null){var os=H.alternate;if(os!==null){var uu=os.memoizedState;if(uu!==null){var yu=uu.dehydrated;yu!==null&&qi(yu)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(u(163))}Cl||H.flags&512&&Xf(H)}catch(iu){hl(H,H.return,iu)}}if(H===D){cu=null;break}if(Te=H.sibling,Te!==null){Te.return=H.return,cu=Te;break}cu=H.return}}function Bd(D){for(;cu!==null;){var H=cu;if(H===D){cu=null;break}var Te=H.sibling;if(Te!==null){Te.return=H.return,cu=Te;break}cu=H.return}}function xd(D){for(;cu!==null;){var H=cu;try{switch(H.tag){case 0:case 11:case 15:var Te=H.return;try{Yf(4,H)}catch(ho){hl(H,Te,ho)}break;case 1:var ft=H.stateNode;if(typeof ft.componentDidMount=="function"){var yn=H.return;try{ft.componentDidMount()}catch(ho){hl(H,yn,ho)}}var kn=H.return;try{Xf(H)}catch(ho){hl(H,kn,ho)}break;case 5:var hi=H.return;try{Xf(H)}catch(ho){hl(H,hi,ho)}}}catch(ho){hl(H,H.return,ho)}if(H===D){cu=null;break}var Wa=H.sibling;if(Wa!==null){Wa.return=H.return,cu=Wa;break}cu=H.return}}var Th=Math.ceil,Td=I.ReactCurrentDispatcher,Qf=I.ReactCurrentOwner,Pf=I.ReactCurrentBatchConfig,mc=0,Ac=null,ef=null,gf=0,zf=0,Hf=xn(0),mf=0,fd=null,Ad=0,Ah=0,Rh=0,lh=null,Kf=null,Mh=0,rd=1/0,Ff=null,yd=!1,ra=null,_o=null,es=!1,as=null,Bs=0,qs=0,gu=null,vu=-1,ru=0;function Ru(){return mc&6?dn():vu!==-1?vu:vu=dn()}function rl(D){return D.mode&1?mc&2&&gf!==0?gf&-gf:hu.transition!==null?(ru===0&&(ru=Qn()),ru):(D=On,D!==0||(D=window.event,D=D===void 0?16:qn(D.type)),D):1}function fl(D,H,Te,ft){if(50<qs)throw qs=0,gu=null,Error(u(185));$r(D,Te,ft),(!(mc&2)||D!==Ac)&&(D===Ac&&(!(mc&2)&&(Ah|=Te),mf===4&&ge(D,gf)),pl(D,ft),Te===1&&mc===0&&!(H.mode&1)&&(rd=dn()+500,da&&mo()))}function pl(D,H){var Te=D.callbackNode;wa(D,H);var ft=la(D,D===Ac?gf:0);if(ft===0)Te!==null&&vn(Te),D.callbackNode=null,D.callbackPriority=0;else if(H=ft&-ft,D.callbackPriority!==H){if(Te!=null&&vn(Te),H===1)D.tag===0?oo(et.bind(null,D)):Pa(et.bind(null,D)),an(function(){!(mc&6)&&mo()}),Te=null;else{switch(Zn(ft)){case 1:Te=Kn;break;case 4:Te=Dn;break;case 16:Te=Vn;break;case 536870912:Te=Qr;break;default:Te=Vn}Te=ad(Te,wu.bind(null,D))}D.callbackPriority=H,D.callbackNode=Te}}function wu(D,H){if(vu=-1,ru=0,mc&6)throw Error(u(327));var Te=D.callbackNode;if(Lc()&&D.callbackNode!==Te)return null;var ft=la(D,D===Ac?gf:0);if(ft===0)return null;if(ft&30||ft&D.expiredLanes||H)H=mu(D,ft);else{H=ft;var yn=mc;mc|=2;var kn=To();(Ac!==D||gf!==H)&&(Ff=null,rd=dn()+500,Ja(D,H));do try{Uu();break}catch(Wa){lo(D,Wa)}while(1);Qo(),Td.current=kn,mc=yn,ef!==null?H=0:(Ac=null,gf=0,H=mf)}if(H!==0){if(H===2&&(yn=vo(D),yn!==0&&(ft=yn,H=Vu(D,yn))),H===1)throw Te=fd,Ja(D,0),ge(D,ft),pl(D,dn()),Te;if(H===6)ge(D,ft);else{if(yn=D.current.alternate,!(ft&30)&&!Ze(yn)&&(H=mu(D,ft),H===2&&(kn=vo(D),kn!==0&&(ft=kn,H=Vu(D,kn))),H===1))throw Te=fd,Ja(D,0),ge(D,ft),pl(D,dn()),Te;switch(D.finishedWork=yn,D.finishedLanes=ft,H){case 0:case 1:throw Error(u(345));case 2:Al(D,Kf,Ff);break;case 3:if(ge(D,ft),(ft&130023424)===ft&&(H=Mh+500-dn(),10<H)){if(la(D,0)!==0)break;if(yn=D.suspendedLanes,(yn&ft)!==ft){Ru(),D.pingedLanes|=D.suspendedLanes&yn;break}D.timeoutHandle=eu(Al.bind(null,D,Kf,Ff),H);break}Al(D,Kf,Ff);break;case 4:if(ge(D,ft),(ft&4194240)===ft)break;for(H=D.eventTimes,yn=-1;0<ft;){var hi=31-Yr(ft);kn=1<<hi,hi=H[hi],hi>yn&&(yn=hi),ft&=~kn}if(ft=yn,ft=dn()-ft,ft=(120>ft?120:480>ft?480:1080>ft?1080:1920>ft?1920:3e3>ft?3e3:4320>ft?4320:1960*Th(ft/1960))-ft,10<ft){D.timeoutHandle=eu(Al.bind(null,D,Kf,Ff),ft);break}Al(D,Kf,Ff);break;case 5:Al(D,Kf,Ff);break;default:throw Error(u(329))}}}return pl(D,dn()),D.callbackNode===Te?wu.bind(null,D):null}function Vu(D,H){var Te=lh;return D.current.memoizedState.isDehydrated&&(Ja(D,H).flags|=256),D=mu(D,H),D!==2&&(H=Kf,Kf=Te,H!==null&&zl(H)),D}function zl(D){Kf===null?Kf=D:Kf.push.apply(Kf,D)}function Ze(D){for(var H=D;;){if(H.flags&16384){var Te=H.updateQueue;if(Te!==null&&(Te=Te.stores,Te!==null))for(var ft=0;ft<Te.length;ft++){var yn=Te[ft],kn=yn.getSnapshot;yn=yn.value;try{if(!xa(kn(),yn))return!1}catch{return!1}}}if(Te=H.child,H.subtreeFlags&16384&&Te!==null)Te.return=H,H=Te;else{if(H===D)break;for(;H.sibling===null;){if(H.return===null||H.return===D)return!0;H=H.return}H.sibling.return=H.return,H=H.sibling}}return!0}function ge(D,H){for(H&=~Rh,H&=~Ah,D.suspendedLanes|=H,D.pingedLanes&=~H,D=D.expirationTimes;0<H;){var Te=31-Yr(H),ft=1<<Te;D[Te]=-1,H&=~ft}}function et(D){if(mc&6)throw Error(u(327));Lc();var H=la(D,0);if(!(H&1))return pl(D,dn()),null;var Te=mu(D,H);if(D.tag!==0&&Te===2){var ft=vo(D);ft!==0&&(H=ft,Te=Vu(D,ft))}if(Te===1)throw Te=fd,Ja(D,0),ge(D,H),pl(D,dn()),Te;if(Te===6)throw Error(u(345));return D.finishedWork=D.current.alternate,D.finishedLanes=H,Al(D,Kf,Ff),pl(D,dn()),null}function Ln(D,H){var Te=mc;mc|=1;try{return D(H)}finally{mc=Te,mc===0&&(rd=dn()+500,da&&mo())}}function zr(D){as!==null&&as.tag===0&&!(mc&6)&&Lc();var H=mc;mc|=1;var Te=Pf.transition,ft=On;try{if(Pf.transition=null,On=1,D)return D()}finally{On=ft,Pf.transition=Te,mc=H,!(mc&6)&&mo()}}function Ji(){zf=Hf.current,zn(Hf)}function Ja(D,H){D.finishedWork=null,D.finishedLanes=0;var Te=D.timeoutHandle;if(Te!==-1&&(D.timeoutHandle=-1,ks(Te)),ef!==null)for(Te=ef.return;Te!==null;){var ft=Te;switch(Ss(ft),ft.tag){case 1:ft=ft.type.childContextTypes,ft!=null&&xr();break;case 3:of(),zn(Er),zn(Br),vc();break;case 5:sc(ft);break;case 4:of();break;case 13:zn(ul);break;case 19:zn(ul);break;case 10:ds(ft.type._context);break;case 22:case 23:Ji()}Te=Te.return}if(Ac=D,ef=D=Vf(D.current,null),gf=zf=H,mf=0,fd=null,Rh=Ah=Ad=0,Kf=lh=null,Hs!==null){for(H=0;H<Hs.length;H++)if(Te=Hs[H],ft=Te.interleaved,ft!==null){Te.interleaved=null;var yn=ft.next,kn=Te.pending;if(kn!==null){var hi=kn.next;kn.next=yn,ft.next=hi}Te.pending=ft}Hs=null}return D}function lo(D,H){do{var Te=ef;try{if(Qo(),yl.current=Tc,lc){for(var ft=qu.memoizedState;ft!==null;){var yn=ft.queue;yn!==null&&(yn.pending=null),ft=ft.next}lc=!1}if(_l=0,jl=ic=qu=null,Rl=!1,al=0,Qf.current=null,Te===null||Te.return===null){mf=1,fd=H,ef=null;break}e:{var kn=D,hi=Te.return,Wa=Te,ho=H;if(H=gf,Wa.flags|=32768,ho!==null&&typeof ho=="object"&&typeof ho.then=="function"){var os=ho,uu=Wa,yu=uu.tag;if(!(uu.mode&1)&&(yu===0||yu===11||yu===15)){var iu=uu.alternate;iu?(uu.updateQueue=iu.updateQueue,uu.memoizedState=iu.memoizedState,uu.lanes=iu.lanes):(uu.updateQueue=null,uu.memoizedState=null)}var il=Ta(hi);if(il!==null){il.flags&=-257,Oo(il,hi,Wa,kn,H),il.mode&1&&Zi(kn,os,H),H=il,ho=os;var gl=H.updateQueue;if(gl===null){var bl=new Set;bl.add(ho),H.updateQueue=bl}else gl.add(ho);break e}else{if(!(H&1)){Zi(kn,os,H),Xo();break e}ho=Error(u(426))}}else if(fs&&Wa.mode&1){var Bf=Ta(hi);if(Bf!==null){!(Bf.flags&65536)&&(Bf.flags|=256),Oo(Bf,hi,Wa,kn,H),Lu(gc(ho,Wa));break e}}kn=ho=gc(ho,Wa),mf!==4&&(mf=2),lh===null?lh=[kn]:lh.push(kn),kn=hi;do{switch(kn.tag){case 3:kn.flags|=65536,H&=-H,kn.lanes|=H;var Vo=pr(kn,ho,H);Ds(kn,Vo);break e;case 1:Wa=ho;var Po=kn.type,ns=kn.stateNode;if(!(kn.flags&128)&&(typeof Po.getDerivedStateFromError=="function"||ns!==null&&typeof ns.componentDidCatch=="function"&&(_o===null||!_o.has(ns)))){kn.flags|=65536,H&=-H,kn.lanes|=H;var Mu=Mi(kn,Wa,H);Ds(kn,Mu);break e}}kn=kn.return}while(kn!==null)}Gl(Te)}catch(ml){H=ml,ef===Te&&Te!==null&&(ef=Te=Te.return);continue}break}while(1)}function To(){var D=Td.current;return Td.current=Tc,D===null?Tc:D}function Xo(){(mf===0||mf===3||mf===2)&&(mf=4),Ac===null||!(Ad&268435455)&&!(Ah&268435455)||ge(Ac,gf)}function mu(D,H){var Te=mc;mc|=2;var ft=To();(Ac!==D||gf!==H)&&(Ff=null,Ja(D,H));do try{ws();break}catch(yn){lo(D,yn)}while(1);if(Qo(),mc=Te,Td.current=ft,ef!==null)throw Error(u(261));return Ac=null,gf=0,mf}function ws(){for(;ef!==null;)el(ef)}function Uu(){for(;ef!==null&&!fn();)el(ef)}function el(D){var H=Nc(D.alternate,D,zf);D.memoizedProps=D.pendingProps,H===null?Gl(D):ef=H,Qf.current=null}function Gl(D){var H=D;do{var Te=H.alternate;if(D=H.return,H.flags&32768){if(Te=_u(Te,H),Te!==null){Te.flags&=32767,ef=Te;return}if(D!==null)D.flags|=32768,D.subtreeFlags=0,D.deletions=null;else{mf=6,ef=null;return}}else if(Te=Eu(Te,H,zf),Te!==null){ef=Te;return}if(H=H.sibling,H!==null){ef=H;return}ef=H=D}while(H!==null);mf===0&&(mf=5)}function Al(D,H,Te){var ft=On,yn=Pf.transition;try{Pf.transition=null,On=1,ac(D,H,Te,ft)}finally{Pf.transition=yn,On=ft}return null}function ac(D,H,Te,ft){do Lc();while(as!==null);if(mc&6)throw Error(u(327));Te=D.finishedWork;var yn=D.finishedLanes;if(Te===null)return null;if(D.finishedWork=null,D.finishedLanes=0,Te===D.current)throw Error(u(177));D.callbackNode=null,D.callbackPriority=0;var kn=Te.lanes|Te.childLanes;if(Ti(D,kn),D===Ac&&(ef=Ac=null,gf=0),!(Te.subtreeFlags&2064)&&!(Te.flags&2064)||es||(es=!0,ad(Vn,function(){return Lc(),null})),kn=(Te.flags&15990)!==0,Te.subtreeFlags&15990||kn){kn=Pf.transition,Pf.transition=null;var hi=On;On=1;var Wa=mc;mc|=4,Qf.current=null,Af(D,Te),kd(Te,D),xs(Fo),uo=!!Ao,Fo=Ao=null,D.current=Te,wf(Te,D,yn),Tt(),mc=Wa,On=hi,Pf.transition=kn}else D.current=Te;if(es&&(es=!1,as=D,Bs=yn),kn=D.pendingLanes,kn===0&&(_o=null),si(Te.stateNode,ft),pl(D,dn()),H!==null)for(ft=D.onRecoverableError,Te=0;Te<H.length;Te++)yn=H[Te],ft(yn.value,{componentStack:yn.stack,digest:yn.digest});if(yd)throw yd=!1,D=ra,ra=null,D;return Bs&1&&D.tag!==0&&Lc(),kn=D.pendingLanes,kn&1?D===gu?qs++:(qs=0,gu=D):qs=0,mo(),null}function Lc(){if(as!==null){var D=Zn(Bs),H=Pf.transition,Te=On;try{if(Pf.transition=null,On=16>D?16:D,as===null)var ft=!1;else{if(D=as,as=null,Bs=0,mc&6)throw Error(u(331));var yn=mc;for(mc|=4,cu=D.current;cu!==null;){var kn=cu,hi=kn.child;if(cu.flags&16){var Wa=kn.deletions;if(Wa!==null){for(var ho=0;ho<Wa.length;ho++){var os=Wa[ho];for(cu=os;cu!==null;){var uu=cu;switch(uu.tag){case 0:case 11:case 15:Yc(8,uu,kn)}var yu=uu.child;if(yu!==null)yu.return=uu,cu=yu;else for(;cu!==null;){uu=cu;var iu=uu.sibling,il=uu.return;if(ud(uu),uu===os){cu=null;break}if(iu!==null){iu.return=il,cu=iu;break}cu=il}}}var gl=kn.alternate;if(gl!==null){var bl=gl.child;if(bl!==null){gl.child=null;do{var Bf=bl.sibling;bl.sibling=null,bl=Bf}while(bl!==null)}}cu=kn}}if(kn.subtreeFlags&2064&&hi!==null)hi.return=kn,cu=hi;else e:for(;cu!==null;){if(kn=cu,kn.flags&2048)switch(kn.tag){case 0:case 11:case 15:Yc(9,kn,kn.return)}var Vo=kn.sibling;if(Vo!==null){Vo.return=kn.return,cu=Vo;break e}cu=kn.return}}var Po=D.current;for(cu=Po;cu!==null;){hi=cu;var ns=hi.child;if(hi.subtreeFlags&2064&&ns!==null)ns.return=hi,cu=ns;else e:for(hi=Po;cu!==null;){if(Wa=cu,Wa.flags&2048)try{switch(Wa.tag){case 0:case 11:case 15:Yf(9,Wa)}}catch(ml){hl(Wa,Wa.return,ml)}if(Wa===hi){cu=null;break e}var Mu=Wa.sibling;if(Mu!==null){Mu.return=Wa.return,cu=Mu;break e}cu=Wa.return}}if(mc=yn,mo(),yr&&typeof yr.onPostCommitFiberRoot=="function")try{yr.onPostCommitFiberRoot(ni,D)}catch{}ft=!0}return ft}finally{On=Te,Pf.transition=H}}return!1}function xl(D,H,Te){H=gc(Te,H),H=pr(D,H,1),D=Tu(D,H,1),H=Ru(),D!==null&&($r(D,1,H),pl(D,H))}function hl(D,H,Te){if(D.tag===3)xl(D,D,Te);else for(;H!==null;){if(H.tag===3){xl(H,D,Te);break}else if(H.tag===1){var ft=H.stateNode;if(typeof H.type.getDerivedStateFromError=="function"||typeof ft.componentDidCatch=="function"&&(_o===null||!_o.has(ft))){D=gc(Te,D),D=Mi(H,D,1),H=Tu(H,D,1),D=Ru(),H!==null&&($r(H,1,D),pl(H,D));break}}H=H.return}}function Su(D,H,Te){var ft=D.pingCache;ft!==null&&ft.delete(H),H=Ru(),D.pingedLanes|=D.suspendedLanes&Te,Ac===D&&(gf&Te)===Te&&(mf===4||mf===3&&(gf&130023424)===gf&&500>dn()-Mh?Ja(D,0):Rh|=Te),pl(D,H)}function Dc(D,H){H===0&&(D.mode&1?(H=Ca,Ca<<=1,!(Ca&130023424)&&(Ca=4194304)):H=1);var Te=Ru();D=Nu(D,H),D!==null&&($r(D,H,Te),pl(D,Te))}function Xc(D){var H=D.memoizedState,Te=0;H!==null&&(Te=H.retryLane),Dc(D,Te)}function jc(D,H){var Te=0;switch(D.tag){case 13:var ft=D.stateNode,yn=D.memoizedState;yn!==null&&(Te=yn.retryLane);break;case 19:ft=D.stateNode;break;default:throw Error(u(314))}ft!==null&&ft.delete(H),Dc(D,Te)}var Nc;Nc=function(D,H,Te){if(D!==null)if(D.memoizedProps!==H.pendingProps||Er.current)xo=!0;else{if(!(D.lanes&Te)&&!(H.flags&128))return xo=!1,pa(D,H,Te);xo=!!(D.flags&131072)}else xo=!1,fs&&H.flags&1048576&&rs(H,co,H.index);switch(H.lanes=0,H.tag){case 2:var ft=H.type;Ia(D,H),D=H.pendingProps;var yn=Vr(H,Br.current);tu(H,Te),yn=Bl(null,H,ft,D,yn,Te);var kn=Pl();return H.flags|=1,typeof yn=="object"&&yn!==null&&typeof yn.render=="function"&&yn.$$typeof===void 0?(H.tag=1,H.memoizedState=null,H.updateQueue=null,fi(ft)?(kn=!0,xi(H)):kn=!1,H.memoizedState=yn.state!==null&&yn.state!==void 0?yn.state:null,Ku(H),yn.updater=ec,H.stateNode=yn,yn._reactInternals=H,Nl(H,ft,D,Te),H=tl(null,H,ft,!0,kn,Te)):(H.tag=0,fs&&kn&&ls(H),Ls(null,H,yn,Te),H=H.child),H;case 16:ft=H.elementType;e:{switch(Ia(D,H),D=H.pendingProps,yn=ft._init,ft=yn(ft._payload),H.type=ft,yn=H.tag=vh(ft),D=Js(ft,D),yn){case 0:H=Du(null,H,ft,D,Te);break e;case 1:H=cl(null,H,ft,D,Te);break e;case 11:H=Fs(null,H,ft,D,Te);break e;case 14:H=As(null,H,ft,Js(ft.type,D),Te);break e}throw Error(u(306,ft,""))}return H;case 0:return ft=H.type,yn=H.pendingProps,yn=H.elementType===ft?yn:Js(ft,yn),Du(D,H,ft,yn,Te);case 1:return ft=H.type,yn=H.pendingProps,yn=H.elementType===ft?yn:Js(ft,yn),cl(D,H,ft,yn,Te);case 3:e:{if(Zl(H),D===null)throw Error(u(387));ft=H.pendingProps,kn=H.memoizedState,yn=kn.element,sl(D,H),Ks(H,ft,null,Te);var hi=H.memoizedState;if(ft=hi.element,kn.isDehydrated)if(kn={element:ft,isDehydrated:!1,cache:hi.cache,pendingSuspenseBoundaries:hi.pendingSuspenseBoundaries,transitions:hi.transitions},H.updateQueue.baseState=kn,H.memoizedState=kn,H.flags&256){yn=gc(Error(u(423)),H),H=Jl(D,H,ft,Te,yn);break e}else if(ft!==yn){yn=gc(Error(u(424)),H),H=Jl(D,H,ft,Te,yn);break e}else for(Do=In(H.stateNode.containerInfo.firstChild),cs=H,fs=!0,is=null,Te=Gc(H,null,ft,Te),H.child=Te;Te;)Te.flags=Te.flags&-3|4096,Te=Te.sibling;else{if(Pu(),ft===yn){H=Aa(D,H,Te);break e}Ls(D,H,ft,Te)}H=H.child}return H;case 5:return Qc(H),D===null&&Yu(H),ft=H.type,yn=H.pendingProps,kn=D!==null?D.memoizedProps:null,hi=yn.children,Ho(ft,yn)?hi=null:kn!==null&&Ho(ft,kn)&&(H.flags|=32),Tl(D,H),Ls(D,H,hi,Te),H.child;case 6:return D===null&&Yu(H),null;case 13:return Dt(D,H,Te);case 4:return Cc(H,H.stateNode.containerInfo),ft=H.pendingProps,D===null?H.child=kl(H,null,ft,Te):Ls(D,H,ft,Te),H.child;case 11:return ft=H.type,yn=H.pendingProps,yn=H.elementType===ft?yn:Js(ft,yn),Fs(D,H,ft,yn,Te);case 7:return Ls(D,H,H.pendingProps,Te),H.child;case 8:return Ls(D,H,H.pendingProps.children,Te),H.child;case 12:return Ls(D,H,H.pendingProps.children,Te),H.child;case 10:e:{if(ft=H.type._context,yn=H.pendingProps,kn=H.memoizedProps,hi=yn.value,sr(ys,ft._currentValue),ft._currentValue=hi,kn!==null)if(xa(kn.value,hi)){if(kn.children===yn.children&&!Er.current){H=Aa(D,H,Te);break e}}else for(kn=H.child,kn!==null&&(kn.return=H);kn!==null;){var Wa=kn.dependencies;if(Wa!==null){hi=kn.child;for(var ho=Wa.firstContext;ho!==null;){if(ho.context===ft){if(kn.tag===1){ho=lu(-1,Te&-Te),ho.tag=2;var os=kn.updateQueue;if(os!==null){os=os.shared;var uu=os.pending;uu===null?ho.next=ho:(ho.next=uu.next,uu.next=ho),os.pending=ho}}kn.lanes|=Te,ho=kn.alternate,ho!==null&&(ho.lanes|=Te),zu(kn.return,Te,H),Wa.lanes|=Te;break}ho=ho.next}}else if(kn.tag===10)hi=kn.type===H.type?null:kn.child;else if(kn.tag===18){if(hi=kn.return,hi===null)throw Error(u(341));hi.lanes|=Te,Wa=hi.alternate,Wa!==null&&(Wa.lanes|=Te),zu(hi,Te,H),hi=kn.sibling}else hi=kn.child;if(hi!==null)hi.return=kn;else for(hi=kn;hi!==null;){if(hi===H){hi=null;break}if(kn=hi.sibling,kn!==null){kn.return=hi.return,hi=kn;break}hi=hi.return}kn=hi}Ls(D,H,yn.children,Te),H=H.child}return H;case 9:return yn=H.type,ft=H.pendingProps.children,tu(H,Te),yn=Ou(yn),ft=ft(yn),H.flags|=1,Ls(D,H,ft,Te),H.child;case 14:return ft=H.type,yn=Js(ft,H.pendingProps),yn=Js(ft.type,yn),As(D,H,ft,yn,Te);case 15:return Cu(D,H,H.type,H.pendingProps,Te);case 17:return ft=H.type,yn=H.pendingProps,yn=H.elementType===ft?yn:Js(ft,yn),Ia(D,H),H.tag=1,fi(ft)?(D=!0,xi(H)):D=!1,tu(H,Te),hc(H,ft,yn),Nl(H,ft,yn,Te),tl(null,H,ft,!0,D,Te);case 19:return sa(D,H,Te);case 22:return Iu(D,H,Te)}throw Error(u(156,H.tag))};function ad(D,H){return qt(D,H)}function kf(D,H,Te,ft){this.tag=D,this.key=Te,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=H,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=ft,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cf(D,H,Te,ft){return new kf(D,H,Te,ft)}function Rd(D){return D=D.prototype,!(!D||!D.isReactComponent)}function vh(D){if(typeof D=="function")return Rd(D)?1:0;if(D!=null){if(D=D.$$typeof,D===Z)return 11;if(D===L)return 14}return 2}function Vf(D,H){var Te=D.alternate;return Te===null?(Te=Cf(D.tag,H,D.key,D.mode),Te.elementType=D.elementType,Te.type=D.type,Te.stateNode=D.stateNode,Te.alternate=D,D.alternate=Te):(Te.pendingProps=H,Te.type=D.type,Te.flags=0,Te.subtreeFlags=0,Te.deletions=null),Te.flags=D.flags&14680064,Te.childLanes=D.childLanes,Te.lanes=D.lanes,Te.child=D.child,Te.memoizedProps=D.memoizedProps,Te.memoizedState=D.memoizedState,Te.updateQueue=D.updateQueue,H=D.dependencies,Te.dependencies=H===null?null:{lanes:H.lanes,firstContext:H.firstContext},Te.sibling=D.sibling,Te.index=D.index,Te.ref=D.ref,Te}function dd(D,H,Te,ft,yn,kn){var hi=2;if(ft=D,typeof D=="function")Rd(D)&&(hi=1);else if(typeof D=="string")hi=5;else e:switch(D){case _:return oc(Te.children,yn,kn,H);case W:hi=8,yn|=8;break;case j:return D=Cf(12,Te,H,yn|2),D.elementType=j,D.lanes=kn,D;case J:return D=Cf(13,Te,H,yn),D.elementType=J,D.lanes=kn,D;case q:return D=Cf(19,Te,H,yn),D.elementType=q,D.lanes=kn,D;case k:return hd(Te,yn,kn,H);default:if(typeof D=="object"&&D!==null)switch(D.$$typeof){case re:hi=10;break e;case X:hi=9;break e;case Z:hi=11;break e;case L:hi=14;break e;case $:hi=16,ft=null;break e}throw Error(u(130,D==null?D:typeof D,""))}return H=Cf(hi,Te,H,yn),H.elementType=D,H.type=ft,H.lanes=kn,H}function oc(D,H,Te,ft){return D=Cf(7,D,ft,H),D.lanes=Te,D}function hd(D,H,Te,ft){return D=Cf(22,D,ft,H),D.elementType=k,D.lanes=Te,D.stateNode={isHidden:!1},D}function xf(D,H,Te){return D=Cf(6,D,null,H),D.lanes=Te,D}function Md(D,H,Te){return H=Cf(4,D.children!==null?D.children:[],D.key,H),H.lanes=Te,H.stateNode={containerInfo:D.containerInfo,pendingChildren:null,implementation:D.implementation},H}function Hd(D,H,Te,ft,yn){this.tag=H,this.containerInfo=D,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_r(0),this.expirationTimes=_r(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_r(0),this.identifierPrefix=ft,this.onRecoverableError=yn,this.mutableSourceEagerHydrationData=null}function Id(D,H,Te,ft,yn,kn,hi,Wa,ho){return D=new Hd(D,H,Te,Wa,ho),H===1?(H=1,kn===!0&&(H|=8)):H=0,kn=Cf(3,null,null,H),D.current=kn,kn.stateNode=D,kn.memoizedState={element:ft,isDehydrated:Te,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ku(kn),D}function Kd(D,H,Te){var ft=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:K,key:ft==null?null:""+ft,children:D,containerInfo:H,implementation:Te}}function Ih(D){if(!D)return Tr;D=D._reactInternals;e:{if(An(D)!==D||D.tag!==1)throw Error(u(170));var H=D;do{switch(H.tag){case 3:H=H.stateNode.context;break e;case 1:if(fi(H.type)){H=H.stateNode.__reactInternalMemoizedMergedChildContext;break e}}H=H.return}while(H!==null);throw Error(u(171))}if(D.tag===1){var Te=D.type;if(fi(Te))return ti(D,Te,H)}return H}function ch(D,H,Te,ft,yn,kn,hi,Wa,ho){return D=Id(Te,ft,!0,D,yn,kn,hi,Wa,ho),D.context=Ih(null),Te=D.current,ft=Ru(),yn=rl(Te),kn=lu(ft,yn),kn.callback=H??null,Tu(Te,kn,yn),D.current.lanes=yn,$r(D,yn,ft),pl(D,ft),D}function rh(D,H,Te,ft){var yn=H.current,kn=Ru(),hi=rl(yn);return Te=Ih(Te),H.context===null?H.context=Te:H.pendingContext=Te,H=lu(kn,hi),H.payload={element:D},ft=ft===void 0?null:ft,ft!==null&&(H.callback=ft),D=Tu(yn,H,hi),D!==null&&(fl(D,yn,hi,kn),Vs(D,yn,hi)),hi}function Dh(D){if(D=D.current,!D.child)return null;switch(D.child.tag){case 5:return D.child.stateNode;default:return D.child.stateNode}}function iv(D,H){if(D=D.memoizedState,D!==null&&D.dehydrated!==null){var Te=D.retryLane;D.retryLane=Te!==0&&Te<H?Te:H}}function Vh(D,H){iv(D,H),(D=D.alternate)&&iv(D,H)}function Pv(){return null}var av=typeof reportError=="function"?reportError:function(D){console.error(D)};function ov(D){this._internalRoot=D}Gh.prototype.render=ov.prototype.render=function(D){var H=this._internalRoot;if(H===null)throw Error(u(409));rh(D,H,null,null)},Gh.prototype.unmount=ov.prototype.unmount=function(){var D=this._internalRoot;if(D!==null){this._internalRoot=null;var H=D.containerInfo;zr(function(){rh(null,D,null,null)}),H[bi]=null}};function Gh(D){this._internalRoot=D}Gh.prototype.unstable_scheduleHydration=function(D){if(D){var H=jn();D={blockedOn:null,target:D,priority:H};for(var Te=0;Te<Ki.length&&H!==0&&H<Ki[Te].priority;Te++);Ki.splice(Te,0,D),Te===0&&Bo(D)}};function sv(D){return!(!D||D.nodeType!==1&&D.nodeType!==9&&D.nodeType!==11)}function uv(D){return!(!D||D.nodeType!==1&&D.nodeType!==9&&D.nodeType!==11&&(D.nodeType!==8||D.nodeValue!==" react-mount-point-unstable "))}function ph(){}function gh(D,H,Te,ft,yn){if(yn){if(typeof ft=="function"){var kn=ft;ft=function(){var os=Dh(hi);kn.call(os)}}var hi=ch(H,ft,D,0,null,!1,!1,"",ph);return D._reactRootContainer=hi,D[bi]=hi.current,gt(D.nodeType===8?D.parentNode:D),zr(),hi}for(;yn=D.lastChild;)D.removeChild(yn);if(typeof ft=="function"){var Wa=ft;ft=function(){var os=Dh(ho);Wa.call(os)}}var ho=Id(D,0,!1,null,null,!1,!1,"",ph);return D._reactRootContainer=ho,D[bi]=ho.current,gt(D.nodeType===8?D.parentNode:D),zr(function(){rh(H,ho,Te,ft)}),ho}function Nh(D,H,Te,ft,yn){var kn=Te._reactRootContainer;if(kn){var hi=kn;if(typeof yn=="function"){var Wa=yn;yn=function(){var ho=Dh(hi);Wa.call(ho)}}rh(H,hi,D,yn)}else hi=gh(Te,H,D,yn,ft);return Dh(hi)}Ur=function(D){switch(D.tag){case 3:var H=D.stateNode;if(H.current.memoizedState.isDehydrated){var Te=li(H.pendingLanes);Te!==0&&(xt(H,Te|1),pl(H,dn()),!(mc&6)&&(rd=dn()+500,mo()))}break;case 13:zr(function(){var ft=Nu(D,1);if(ft!==null){var yn=Ru();fl(ft,D,1,yn)}}),Vh(D,1)}},En=function(D){if(D.tag===13){var H=Nu(D,134217728);if(H!==null){var Te=Ru();fl(H,D,134217728,Te)}Vh(D,134217728)}},ln=function(D){if(D.tag===13){var H=rl(D),Te=Nu(D,H);if(Te!==null){var ft=Ru();fl(Te,D,H,ft)}Vh(D,H)}},jn=function(){return On},rr=function(D,H){var Te=On;try{return On=D,H()}finally{On=Te}},Lt=function(D,H,Te){switch(H){case"input":if(ve(D,Te),H=Te.name,Te.type==="radio"&&H!=null){for(Te=D;Te.parentNode;)Te=Te.parentNode;for(Te=Te.querySelectorAll("input[name="+JSON.stringify(""+H)+'][type="radio"]'),H=0;H<Te.length;H++){var ft=Te[H];if(ft!==D&&ft.form===D.form){var yn=Pe(ft);if(!yn)throw Error(u(90));ht(ft),ve(ft,yn)}}}break;case"textarea":Ae(D,Te);break;case"select":H=Te.value,H!=null&&At(D,!!Te.multiple,H,!1)}},at=Ln,Xt=zr;var lv={usingClientEntryPoint:!1,Events:[Qi,ro,Pe,Ve,lt,Ln]},Vd={findFiberByHostInstance:Va,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Bv={bundleType:Vd.bundleType,version:Vd.version,rendererPackageName:Vd.rendererPackageName,rendererConfig:Vd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(D){return D=Ft(D),D===null?null:D.stateNode},findFiberByHostInstance:Vd.findFiberByHostInstance||Pv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zh.isDisabled&&Zh.supportsFiber)try{ni=Zh.inject(Bv),yr=Zh}catch{}}c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lv,c.createPortal=function(D,H){var Te=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!sv(H))throw Error(u(200));return Kd(D,H,null,Te)},c.createRoot=function(D,H){if(!sv(D))throw Error(u(299));var Te=!1,ft="",yn=av;return H!=null&&(H.unstable_strictMode===!0&&(Te=!0),H.identifierPrefix!==void 0&&(ft=H.identifierPrefix),H.onRecoverableError!==void 0&&(yn=H.onRecoverableError)),H=Id(D,1,!1,null,null,Te,!1,ft,yn),D[bi]=H.current,gt(D.nodeType===8?D.parentNode:D),new ov(H)},c.findDOMNode=function(D){if(D==null)return null;if(D.nodeType===1)return D;var H=D._reactInternals;if(H===void 0)throw typeof D.render=="function"?Error(u(188)):(D=Object.keys(D).join(","),Error(u(268,D)));return D=Ft(H),D=D===null?null:D.stateNode,D},c.flushSync=function(D){return zr(D)},c.hydrate=function(D,H,Te){if(!uv(H))throw Error(u(200));return Nh(null,D,H,!0,Te)},c.hydrateRoot=function(D,H,Te){if(!sv(D))throw Error(u(405));var ft=Te!=null&&Te.hydratedSources||null,yn=!1,kn="",hi=av;if(Te!=null&&(Te.unstable_strictMode===!0&&(yn=!0),Te.identifierPrefix!==void 0&&(kn=Te.identifierPrefix),Te.onRecoverableError!==void 0&&(hi=Te.onRecoverableError)),H=ch(H,null,D,1,Te??null,yn,!1,kn,hi),D[bi]=H.current,gt(D),ft)for(D=0;D<ft.length;D++)Te=ft[D],yn=Te._getVersion,yn=yn(Te._source),H.mutableSourceEagerHydrationData==null?H.mutableSourceEagerHydrationData=[Te,yn]:H.mutableSourceEagerHydrationData.push(Te,yn);return new Gh(H)},c.render=function(D,H,Te){if(!uv(H))throw Error(u(200));return Nh(null,D,H,!1,Te)},c.unmountComponentAtNode=function(D){if(!uv(D))throw Error(u(40));return D._reactRootContainer?(zr(function(){Nh(null,null,D,!1,function(){D._reactRootContainer=null,D[bi]=null})}),!0):!1},c.unstable_batchedUpdates=Ln,c.unstable_renderSubtreeIntoContainer=function(D,H,Te,ft){if(!uv(Te))throw Error(u(200));if(D==null||D._reactInternals===void 0)throw Error(u(38));return Nh(D,H,Te,!1,ft)},c.version="18.2.0-next-9e3b772b8-20220608"},68249:(C,c,t)=>{"use strict";var i,s=t(27473);if(!0)c.s=s.createRoot,i=s.hydrateRoot;else var u},27473:(C,c,t)=>{"use strict";function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}i(),C.exports=t(80989)},73859:(C,c,t)=>{"use strict";function i(ce){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(te){return typeof te}:i=function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},i(ce)}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),c.default=void 0;var s=S(t(27702)),u=b(t(93415)),v=b(t(27473)),l=b(t(95047)),h=t(33319),p=t(92434),d=t(4552),f=b(t(67315)),g=b(t(35528)),y=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function b(ce){return ce&&ce.__esModule?ce:{default:ce}}function E(ce){if(typeof WeakMap!="function")return null;var G=new WeakMap,te=new WeakMap;return(E=function(fe){return fe?te:G})(ce)}function S(ce,G){if(!G&&ce&&ce.__esModule)return ce;if(ce===null||i(ce)!=="object"&&typeof ce!="function")return{default:ce};var te=E(G);if(te&&te.has(ce))return te.get(ce);var ie={},fe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Se in ce)if(Se!=="default"&&Object.prototype.hasOwnProperty.call(ce,Se)){var he=fe?Object.getOwnPropertyDescriptor(ce,Se):null;he&&(he.get||he.set)?Object.defineProperty(ie,Se,he):ie[Se]=ce[Se]}return ie.default=ce,te&&te.set(ce,ie),ie}function w(){return w=Object.assign||function(ce){for(var G=1;G<arguments.length;G++){var te=arguments[G];for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&(ce[ie]=te[ie])}return ce},w.apply(this,arguments)}function x(ce,G){if(ce==null)return{};var te=P(ce,G),ie,fe;if(Object.getOwnPropertySymbols){var Se=Object.getOwnPropertySymbols(ce);for(fe=0;fe<Se.length;fe++)ie=Se[fe],!(G.indexOf(ie)>=0)&&Object.prototype.propertyIsEnumerable.call(ce,ie)&&(te[ie]=ce[ie])}return te}function P(ce,G){if(ce==null)return{};var te={},ie=Object.keys(ce),fe,Se;for(Se=0;Se<ie.length;Se++)fe=ie[Se],!(G.indexOf(fe)>=0)&&(te[fe]=ce[fe]);return te}function R(ce,G){var te=Object.keys(ce);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(ce);G&&(ie=ie.filter(function(fe){return Object.getOwnPropertyDescriptor(ce,fe).enumerable})),te.push.apply(te,ie)}return te}function T(ce){for(var G=1;G<arguments.length;G++){var te=arguments[G]!=null?arguments[G]:{};G%2?R(Object(te),!0).forEach(function(ie){V(ce,ie,te[ie])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ce,Object.getOwnPropertyDescriptors(te)):R(Object(te)).forEach(function(ie){Object.defineProperty(ce,ie,Object.getOwnPropertyDescriptor(te,ie))})}return ce}function A(ce,G){return W(ce)||_(ce,G)||N(ce,G)||I()}function I(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N(ce,G){if(ce){if(typeof ce=="string")return K(ce,G);var te=Object.prototype.toString.call(ce).slice(8,-1);if(te==="Object"&&ce.constructor&&(te=ce.constructor.name),te==="Map"||te==="Set")return Array.from(ce);if(te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return K(ce,G)}}function K(ce,G){(G==null||G>ce.length)&&(G=ce.length);for(var te=0,ie=new Array(G);te<G;te++)ie[te]=ce[te];return ie}function _(ce,G){var te=ce==null?null:typeof Symbol<"u"&&ce[Symbol.iterator]||ce["@@iterator"];if(te!=null){var ie=[],fe=!0,Se=!1,he,me;try{for(te=te.call(ce);!(fe=(he=te.next()).done)&&(ie.push(he.value),!(G&&ie.length===G));fe=!0);}catch(_e){Se=!0,me=_e}finally{try{!fe&&te.return!=null&&te.return()}finally{if(Se)throw me}}return ie}}function W(ce){if(Array.isArray(ce))return ce}function j(ce,G){if(!(ce instanceof G))throw new TypeError("Cannot call a class as a function")}function re(ce,G){for(var te=0;te<G.length;te++){var ie=G[te];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(ce,ie.key,ie)}}function X(ce,G,te){return G&&re(ce.prototype,G),te&&re(ce,te),ce}function Z(ce,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");ce.prototype=Object.create(G&&G.prototype,{constructor:{value:ce,writable:!0,configurable:!0}}),G&&J(ce,G)}function J(ce,G){return J=Object.setPrototypeOf||function(ie,fe){return ie.__proto__=fe,ie},J(ce,G)}function q(ce){var G=k();return function(){var ie=F(ce),fe;if(G){var Se=F(this).constructor;fe=Reflect.construct(ie,arguments,Se)}else fe=ie.apply(this,arguments);return L(this,fe)}}function L(ce,G){if(G&&(i(G)==="object"||typeof G=="function"))return G;if(G!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $(ce)}function $(ce){if(ce===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce}function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function F(ce){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(te){return te.__proto__||Object.getPrototypeOf(te)},F(ce)}function V(ce,G,te){return G in ce?Object.defineProperty(ce,G,{value:te,enumerable:!0,configurable:!0,writable:!0}):ce[G]=te,ce}var pe=function(ce){Z(te,ce);var G=q(te);function te(ie){var fe;return j(this,te),fe=G.call(this,ie),V($(fe),"onDragStart",function(Se,he){(0,g.default)("Draggable: onDragStart: %j",he);var me=fe.props.onStart(Se,(0,p.createDraggableData)($(fe),he));if(me===!1)return!1;fe.setState({dragging:!0,dragged:!0})}),V($(fe),"onDrag",function(Se,he){if(!fe.state.dragging)return!1;(0,g.default)("Draggable: onDrag: %j",he);var me=(0,p.createDraggableData)($(fe),he),_e={x:me.x,y:me.y};if(fe.props.bounds){var we=_e.x,Ge=_e.y;_e.x+=fe.state.slackX,_e.y+=fe.state.slackY;var ht=(0,p.getBoundPosition)($(fe),_e.x,_e.y),nt=A(ht,2),Re=nt[0],ue=nt[1];_e.x=Re,_e.y=ue,_e.slackX=fe.state.slackX+(we-_e.x),_e.slackY=fe.state.slackY+(Ge-_e.y),me.x=_e.x,me.y=_e.y,me.deltaX=_e.x-fe.state.x,me.deltaY=_e.y-fe.state.y}var ae=fe.props.onDrag(Se,me);if(ae===!1)return!1;fe.setState(_e)}),V($(fe),"onDragStop",function(Se,he){if(!fe.state.dragging)return!1;var me=fe.props.onStop(Se,(0,p.createDraggableData)($(fe),he));if(me===!1)return!1;(0,g.default)("Draggable: onDragStop: %j",he);var _e={dragging:!1,slackX:0,slackY:0},we=!!fe.props.position;if(we){var Ge=fe.props.position,ht=Ge.x,nt=Ge.y;_e.x=ht,_e.y=nt}fe.setState(_e)}),fe.state={dragging:!1,dragged:!1,x:ie.position?ie.position.x:ie.defaultPosition.x,y:ie.position?ie.position.y:ie.defaultPosition.y,prevPropsPosition:T({},ie.position),slackX:0,slackY:0,isElementSVG:!1},ie.position&&!(ie.onDrag||ie.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),fe}return X(te,[{key:"componentDidMount",value:function(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var fe,Se,he;return(fe=(Se=this.props)===null||Se===void 0||(he=Se.nodeRef)===null||he===void 0?void 0:he.current)!==null&&fe!==void 0?fe:v.default.findDOMNode(this)}},{key:"render",value:function(){var fe,Se=this.props,he=Se.axis,me=Se.bounds,_e=Se.children,we=Se.defaultPosition,Ge=Se.defaultClassName,ht=Se.defaultClassNameDragging,nt=Se.defaultClassNameDragged,Re=Se.position,ue=Se.positionOffset,ae=Se.scale,ve=x(Se,y),Me={},Ye=null,qe=!!Re,At=!qe||this.state.dragging,It=Re||we,Ce={x:(0,p.canDragX)(this)&&At?this.state.x:It.x,y:(0,p.canDragY)(this)&&At?this.state.y:It.y};this.state.isElementSVG?Ye=(0,h.createSVGTransform)(Ce,ue):Me=(0,h.createCSSTransform)(Ce,ue);var Ae=(0,l.default)(_e.props.className||"",Ge,(fe={},V(fe,ht,this.state.dragging),V(fe,nt,this.state.dragged),fe));return s.createElement(f.default,w({},ve,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),s.cloneElement(s.Children.only(_e),{className:Ae,style:T(T({},_e.props.style),Me),transform:Ye}))}}],[{key:"getDerivedStateFromProps",value:function(fe,Se){var he=fe.position,me=Se.prevPropsPosition;return he&&(!me||he.x!==me.x||he.y!==me.y)?((0,g.default)("Draggable: getDerivedStateFromProps %j",{position:he,prevPropsPosition:me}),{x:he.x,y:he.y,prevPropsPosition:T({},he)}):null}}]),te}(s.Component);c.default=pe,V(pe,"displayName","Draggable"),V(pe,"propTypes",T(T({},f.default.propTypes),{},{axis:u.default.oneOf(["both","x","y","none"]),bounds:u.default.oneOfType([u.default.shape({left:u.default.number,right:u.default.number,top:u.default.number,bottom:u.default.number}),u.default.string,u.default.oneOf([!1])]),defaultClassName:u.default.string,defaultClassNameDragging:u.default.string,defaultClassNameDragged:u.default.string,defaultPosition:u.default.shape({x:u.default.number,y:u.default.number}),positionOffset:u.default.shape({x:u.default.oneOfType([u.default.number,u.default.string]),y:u.default.oneOfType([u.default.number,u.default.string])}),position:u.default.shape({x:u.default.number,y:u.default.number}),className:d.dontSetMe,style:d.dontSetMe,transform:d.dontSetMe})),V(pe,"defaultProps",T(T({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},67315:(C,c,t)=>{"use strict";function i(L){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(k){return typeof k}:i=function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},i(L)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var s=y(t(27702)),u=f(t(93415)),v=f(t(27473)),l=t(33319),h=t(92434),p=t(4552),d=f(t(35528));function f(L){return L&&L.__esModule?L:{default:L}}function g(L){if(typeof WeakMap!="function")return null;var $=new WeakMap,k=new WeakMap;return(g=function(V){return V?k:$})(L)}function y(L,$){if(!$&&L&&L.__esModule)return L;if(L===null||i(L)!=="object"&&typeof L!="function")return{default:L};var k=g($);if(k&&k.has(L))return k.get(L);var F={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var pe in L)if(pe!=="default"&&Object.prototype.hasOwnProperty.call(L,pe)){var ce=V?Object.getOwnPropertyDescriptor(L,pe):null;ce&&(ce.get||ce.set)?Object.defineProperty(F,pe,ce):F[pe]=L[pe]}return F.default=L,k&&k.set(L,F),F}function b(L,$){return P(L)||x(L,$)||S(L,$)||E()}function E(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S(L,$){if(L){if(typeof L=="string")return w(L,$);var k=Object.prototype.toString.call(L).slice(8,-1);if(k==="Object"&&L.constructor&&(k=L.constructor.name),k==="Map"||k==="Set")return Array.from(L);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return w(L,$)}}function w(L,$){($==null||$>L.length)&&($=L.length);for(var k=0,F=new Array($);k<$;k++)F[k]=L[k];return F}function x(L,$){var k=L==null?null:typeof Symbol<"u"&&L[Symbol.iterator]||L["@@iterator"];if(k!=null){var F=[],V=!0,pe=!1,ce,G;try{for(k=k.call(L);!(V=(ce=k.next()).done)&&(F.push(ce.value),!($&&F.length===$));V=!0);}catch(te){pe=!0,G=te}finally{try{!V&&k.return!=null&&k.return()}finally{if(pe)throw G}}return F}}function P(L){if(Array.isArray(L))return L}function R(L,$){if(!(L instanceof $))throw new TypeError("Cannot call a class as a function")}function T(L,$){for(var k=0;k<$.length;k++){var F=$[k];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(L,F.key,F)}}function A(L,$,k){return $&&T(L.prototype,$),k&&T(L,k),L}function I(L,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create($&&$.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),$&&N(L,$)}function N(L,$){return N=Object.setPrototypeOf||function(F,V){return F.__proto__=V,F},N(L,$)}function K(L){var $=j();return function(){var F=re(L),V;if($){var pe=re(this).constructor;V=Reflect.construct(F,arguments,pe)}else V=F.apply(this,arguments);return _(this,V)}}function _(L,$){if($&&(i($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W(L)}function W(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function j(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function re(L){return re=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)},re(L)}function X(L,$,k){return $ in L?Object.defineProperty(L,$,{value:k,enumerable:!0,configurable:!0,writable:!0}):L[$]=k,L}var Z={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},J=Z.mouse,q=function(L){I(k,L);var $=K(k);function k(){var F;R(this,k);for(var V=arguments.length,pe=new Array(V),ce=0;ce<V;ce++)pe[ce]=arguments[ce];return F=$.call.apply($,[this].concat(pe)),X(W(F),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),X(W(F),"mounted",!1),X(W(F),"handleDragStart",function(G){if(F.props.onMouseDown(G),!F.props.allowAnyClick&&typeof G.button=="number"&&G.button!==0)return!1;var te=F.findDOMNode();if(!te||!te.ownerDocument||!te.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var ie=te.ownerDocument;if(!(F.props.disabled||!(G.target instanceof ie.defaultView.Node)||F.props.handle&&!(0,l.matchesSelectorAndParentsTo)(G.target,F.props.handle,te)||F.props.cancel&&(0,l.matchesSelectorAndParentsTo)(G.target,F.props.cancel,te))){G.type==="touchstart"&&G.preventDefault();var fe=(0,l.getTouchIdentifier)(G);F.setState({touchIdentifier:fe});var Se=(0,h.getControlPosition)(G,fe,W(F));if(Se!=null){var he=Se.x,me=Se.y,_e=(0,h.createCoreData)(W(F),he,me);(0,d.default)("DraggableCore: handleDragStart: %j",_e),(0,d.default)("calling",F.props.onStart);var we=F.props.onStart(G,_e);we===!1||F.mounted===!1||(F.props.enableUserSelectHack&&(0,l.addUserSelectStyles)(ie),F.setState({dragging:!0,lastX:he,lastY:me}),(0,l.addEvent)(ie,J.move,F.handleDrag),(0,l.addEvent)(ie,J.stop,F.handleDragStop))}}}),X(W(F),"handleDrag",function(G){var te=(0,h.getControlPosition)(G,F.state.touchIdentifier,W(F));if(te!=null){var ie=te.x,fe=te.y;if(Array.isArray(F.props.grid)){var Se=ie-F.state.lastX,he=fe-F.state.lastY,me=(0,h.snapToGrid)(F.props.grid,Se,he),_e=b(me,2);if(Se=_e[0],he=_e[1],!Se&&!he)return;ie=F.state.lastX+Se,fe=F.state.lastY+he}var we=(0,h.createCoreData)(W(F),ie,fe);(0,d.default)("DraggableCore: handleDrag: %j",we);var Ge=F.props.onDrag(G,we);if(Ge===!1||F.mounted===!1){try{F.handleDragStop(new MouseEvent("mouseup"))}catch{var ht=document.createEvent("MouseEvents");ht.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),F.handleDragStop(ht)}return}F.setState({lastX:ie,lastY:fe})}}),X(W(F),"handleDragStop",function(G){if(F.state.dragging){var te=(0,h.getControlPosition)(G,F.state.touchIdentifier,W(F));if(te!=null){var ie=te.x,fe=te.y,Se=(0,h.createCoreData)(W(F),ie,fe),he=F.props.onStop(G,Se);if(he===!1||F.mounted===!1)return!1;var me=F.findDOMNode();me&&F.props.enableUserSelectHack&&(0,l.removeUserSelectStyles)(me.ownerDocument),(0,d.default)("DraggableCore: handleDragStop: %j",Se),F.setState({dragging:!1,lastX:NaN,lastY:NaN}),me&&((0,d.default)("DraggableCore: Removing handlers"),(0,l.removeEvent)(me.ownerDocument,J.move,F.handleDrag),(0,l.removeEvent)(me.ownerDocument,J.stop,F.handleDragStop))}}}),X(W(F),"onMouseDown",function(G){return J=Z.mouse,F.handleDragStart(G)}),X(W(F),"onMouseUp",function(G){return J=Z.mouse,F.handleDragStop(G)}),X(W(F),"onTouchStart",function(G){return J=Z.touch,F.handleDragStart(G)}),X(W(F),"onTouchEnd",function(G){return J=Z.touch,F.handleDragStop(G)}),F}return A(k,[{key:"componentDidMount",value:function(){this.mounted=!0;var V=this.findDOMNode();V&&(0,l.addEvent)(V,Z.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var V=this.findDOMNode();if(V){var pe=V.ownerDocument;(0,l.removeEvent)(pe,Z.mouse.move,this.handleDrag),(0,l.removeEvent)(pe,Z.touch.move,this.handleDrag),(0,l.removeEvent)(pe,Z.mouse.stop,this.handleDragStop),(0,l.removeEvent)(pe,Z.touch.stop,this.handleDragStop),(0,l.removeEvent)(V,Z.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,l.removeUserSelectStyles)(pe)}}},{key:"findDOMNode",value:function(){var V,pe,ce;return(V=(pe=this.props)===null||pe===void 0||(ce=pe.nodeRef)===null||ce===void 0?void 0:ce.current)!==null&&V!==void 0?V:v.default.findDOMNode(this)}},{key:"render",value:function(){return s.cloneElement(s.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),k}(s.Component);c.default=q,X(q,"displayName","DraggableCore"),X(q,"propTypes",{allowAnyClick:u.default.bool,disabled:u.default.bool,enableUserSelectHack:u.default.bool,offsetParent:function($,k){if($[k]&&$[k].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:u.default.arrayOf(u.default.number),handle:u.default.string,cancel:u.default.string,nodeRef:u.default.object,onStart:u.default.func,onDrag:u.default.func,onStop:u.default.func,onMouseDown:u.default.func,scale:u.default.number,className:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe}),X(q,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},94618:(C,c,t)=>{"use strict";var i=t(73859),s=i.default,u=i.DraggableCore;C.exports=s,C.exports.default=s,C.exports.DraggableCore=u},33319:(C,c,t)=>{"use strict";function i(X){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(J){return typeof J}:i=function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},i(X)}Object.defineProperty(c,"__esModule",{value:!0}),c.matchesSelector=g,c.matchesSelectorAndParentsTo=y,c.addEvent=b,c.removeEvent=E,c.outerHeight=S,c.outerWidth=w,c.innerHeight=x,c.innerWidth=P,c.offsetXYFromParent=R,c.createCSSTransform=T,c.createSVGTransform=A,c.getTranslation=I,c.getTouch=N,c.getTouchIdentifier=K,c.addUserSelectStyles=_,c.removeUserSelectStyles=W,c.addClassName=j,c.removeClassName=re;var s=t(4552),u=l(t(85412));function v(X){if(typeof WeakMap!="function")return null;var Z=new WeakMap,J=new WeakMap;return(v=function(L){return L?J:Z})(X)}function l(X,Z){if(!Z&&X&&X.__esModule)return X;if(X===null||i(X)!=="object"&&typeof X!="function")return{default:X};var J=v(Z);if(J&&J.has(X))return J.get(X);var q={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in X)if($!=="default"&&Object.prototype.hasOwnProperty.call(X,$)){var k=L?Object.getOwnPropertyDescriptor(X,$):null;k&&(k.get||k.set)?Object.defineProperty(q,$,k):q[$]=X[$]}return q.default=X,J&&J.set(X,q),q}function h(X,Z){var J=Object.keys(X);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(X);Z&&(q=q.filter(function(L){return Object.getOwnPropertyDescriptor(X,L).enumerable})),J.push.apply(J,q)}return J}function p(X){for(var Z=1;Z<arguments.length;Z++){var J=arguments[Z]!=null?arguments[Z]:{};Z%2?h(Object(J),!0).forEach(function(q){d(X,q,J[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(J)):h(Object(J)).forEach(function(q){Object.defineProperty(X,q,Object.getOwnPropertyDescriptor(J,q))})}return X}function d(X,Z,J){return Z in X?Object.defineProperty(X,Z,{value:J,enumerable:!0,configurable:!0,writable:!0}):X[Z]=J,X}var f="";function g(X,Z){return f||(f=(0,s.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(J){return(0,s.isFunction)(X[J])})),(0,s.isFunction)(X[f])?X[f](Z):!1}function y(X,Z,J){var q=X;do{if(g(q,Z))return!0;if(q===J)return!1;q=q.parentNode}while(q);return!1}function b(X,Z,J,q){if(X){var L=p({capture:!0},q);X.addEventListener?X.addEventListener(Z,J,L):X.attachEvent?X.attachEvent("on"+Z,J):X["on"+Z]=J}}function E(X,Z,J,q){if(X){var L=p({capture:!0},q);X.removeEventListener?X.removeEventListener(Z,J,L):X.detachEvent?X.detachEvent("on"+Z,J):X["on"+Z]=null}}function S(X){var Z=X.clientHeight,J=X.ownerDocument.defaultView.getComputedStyle(X);return Z+=(0,s.int)(J.borderTopWidth),Z+=(0,s.int)(J.borderBottomWidth),Z}function w(X){var Z=X.clientWidth,J=X.ownerDocument.defaultView.getComputedStyle(X);return Z+=(0,s.int)(J.borderLeftWidth),Z+=(0,s.int)(J.borderRightWidth),Z}function x(X){var Z=X.clientHeight,J=X.ownerDocument.defaultView.getComputedStyle(X);return Z-=(0,s.int)(J.paddingTop),Z-=(0,s.int)(J.paddingBottom),Z}function P(X){var Z=X.clientWidth,J=X.ownerDocument.defaultView.getComputedStyle(X);return Z-=(0,s.int)(J.paddingLeft),Z-=(0,s.int)(J.paddingRight),Z}function R(X,Z,J){var q=Z===Z.ownerDocument.body,L=q?{left:0,top:0}:Z.getBoundingClientRect(),$=(X.clientX+Z.scrollLeft-L.left)/J,k=(X.clientY+Z.scrollTop-L.top)/J;return{x:$,y:k}}function T(X,Z){var J=I(X,Z,"px");return d({},(0,u.browserPrefixToKey)("transform",u.default),J)}function A(X,Z){var J=I(X,Z,"");return J}function I(X,Z,J){var q=X.x,L=X.y,$="translate(".concat(q).concat(J,",").concat(L).concat(J,")");if(Z){var k="".concat(typeof Z.x=="string"?Z.x:Z.x+J),F="".concat(typeof Z.y=="string"?Z.y:Z.y+J);$="translate(".concat(k,", ").concat(F,")")+$}return $}function N(X,Z){return X.targetTouches&&(0,s.findInArray)(X.targetTouches,function(J){return Z===J.identifier})||X.changedTouches&&(0,s.findInArray)(X.changedTouches,function(J){return Z===J.identifier})}function K(X){if(X.targetTouches&&X.targetTouches[0])return X.targetTouches[0].identifier;if(X.changedTouches&&X.changedTouches[0])return X.changedTouches[0].identifier}function _(X){if(X){var Z=X.getElementById("react-draggable-style-el");Z||(Z=X.createElement("style"),Z.type="text/css",Z.id="react-draggable-style-el",Z.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} `,Z.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} `,X.getElementsByTagName("head")[0].appendChild(Z)),X.body&&j(X.body,"react-draggable-transparent-selection")}}function W(X){if(X)try{if(X.body&&re(X.body,"react-draggable-transparent-selection"),X.selection)X.selection.empty();else{var Z=(X.defaultView||window).getSelection();Z&&Z.type!=="Caret"&&Z.removeAllRanges()}}catch{}}function j(X,Z){X.classList?X.classList.add(Z):X.className.match(new RegExp("(?:^|\\s)".concat(Z,"(?!\\S)")))||(X.className+=" ".concat(Z))}function re(X,Z){X.classList?X.classList.remove(Z):X.className=X.className.replace(new RegExp("(?:^|\\s)".concat(Z,"(?!\\S)"),"g"),"")}},85412:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.getPrefix=i,c.browserPrefixToKey=s,c.browserPrefixToStyle=u,c.default=void 0;var t=["Moz","Webkit","O","ms"];function i(){var h,p,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";var f=(h=window.document)===null||h===void 0||(p=h.documentElement)===null||p===void 0?void 0:p.style;if(!f||d in f)return"";for(var g=0;g<t.length;g++)if(s(d,t[g])in f)return t[g];return""}function s(h,p){return p?"".concat(p).concat(v(h)):h}function u(h,p){return p?"-".concat(p.toLowerCase(),"-").concat(h):h}function v(h){for(var p="",d=!0,f=0;f<h.length;f++)d?(p+=h[f].toUpperCase(),d=!1):h[f]==="-"?d=!0:p+=h[f];return p}var l=i();c.default=l},35528:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=t;function t(){var i}},92434:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.getBoundPosition=u,c.snapToGrid=v,c.canDragX=l,c.canDragY=h,c.getControlPosition=p,c.createCoreData=d,c.createDraggableData=f;var i=t(4552),s=t(33319);function u(b,E,S){if(!b.props.bounds)return[E,S];var w=b.props.bounds;w=typeof w=="string"?w:g(w);var x=y(b);if(typeof w=="string"){var P=x.ownerDocument,R=P.defaultView,T;if(w==="parent"?T=x.parentNode:T=P.querySelector(w),!(T instanceof R.HTMLElement))throw new Error('Bounds selector "'+w+'" could not find an element.');var A=T,I=R.getComputedStyle(x),N=R.getComputedStyle(A);w={left:-x.offsetLeft+(0,i.int)(N.paddingLeft)+(0,i.int)(I.marginLeft),top:-x.offsetTop+(0,i.int)(N.paddingTop)+(0,i.int)(I.marginTop),right:(0,s.innerWidth)(A)-(0,s.outerWidth)(x)-x.offsetLeft+(0,i.int)(N.paddingRight)-(0,i.int)(I.marginRight),bottom:(0,s.innerHeight)(A)-(0,s.outerHeight)(x)-x.offsetTop+(0,i.int)(N.paddingBottom)-(0,i.int)(I.marginBottom)}}return(0,i.isNum)(w.right)&&(E=Math.min(E,w.right)),(0,i.isNum)(w.bottom)&&(S=Math.min(S,w.bottom)),(0,i.isNum)(w.left)&&(E=Math.max(E,w.left)),(0,i.isNum)(w.top)&&(S=Math.max(S,w.top)),[E,S]}function v(b,E,S){var w=Math.round(E/b[0])*b[0],x=Math.round(S/b[1])*b[1];return[w,x]}function l(b){return b.props.axis==="both"||b.props.axis==="x"}function h(b){return b.props.axis==="both"||b.props.axis==="y"}function p(b,E,S){var w=typeof E=="number"?(0,s.getTouch)(b,E):null;if(typeof E=="number"&&!w)return null;var x=y(S),P=S.props.offsetParent||x.offsetParent||x.ownerDocument.body;return(0,s.offsetXYFromParent)(w||b,P,S.props.scale)}function d(b,E,S){var w=b.state,x=!(0,i.isNum)(w.lastX),P=y(b);return x?{node:P,deltaX:0,deltaY:0,lastX:E,lastY:S,x:E,y:S}:{node:P,deltaX:E-w.lastX,deltaY:S-w.lastY,lastX:w.lastX,lastY:w.lastY,x:E,y:S}}function f(b,E){var S=b.props.scale;return{node:E.node,x:b.state.x+E.deltaX/S,y:b.state.y+E.deltaY/S,deltaX:E.deltaX/S,deltaY:E.deltaY/S,lastX:b.state.x,lastY:b.state.y}}function g(b){return{left:b.left,top:b.top,right:b.right,bottom:b.bottom}}function y(b){var E=b.findDOMNode();if(!E)throw new Error("<DraggableCore>: Unmounted during event!");return E}},4552:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.findInArray=t,c.isFunction=i,c.isNum=s,c.int=u,c.dontSetMe=v;function t(l,h){for(var p=0,d=l.length;p<d;p++)if(h.apply(h,[l[p],p,l]))return l[p]}function i(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Function]"}function s(l){return typeof l=="number"&&!isNaN(l)}function u(l){return parseInt(l,10)}function v(l,h,p){if(l[h])return new Error("Invalid prop ".concat(h," passed to ").concat(p," - do not set this, set it on the child."))}},69463:(C,c,t)=>{"use strict";function i(ce){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},i(ce)}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),c.default=void 0;var s=S(t(27702)),u=b(t(51616)),v=b(t(27473)),l=b(t(95047)),h=t(37283),p=t(87396),d=t(63528),f=b(t(32296)),g=b(t(92965)),y=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function b(ce){return ce&&ce.__esModule?ce:{default:ce}}function E(ce){if(typeof WeakMap!="function")return null;var G=new WeakMap,te=new WeakMap;return(E=function(fe){return fe?te:G})(ce)}function S(ce,G){if(!G&&ce&&ce.__esModule)return ce;if(ce===null||i(ce)!=="object"&&typeof ce!="function")return{default:ce};var te=E(G);if(te&&te.has(ce))return te.get(ce);var ie={},fe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Se in ce)if(Se!=="default"&&Object.prototype.hasOwnProperty.call(ce,Se)){var he=fe?Object.getOwnPropertyDescriptor(ce,Se):null;he&&(he.get||he.set)?Object.defineProperty(ie,Se,he):ie[Se]=ce[Se]}return ie.default=ce,te&&te.set(ce,ie),ie}function w(){return w=Object.assign||function(ce){for(var G=1;G<arguments.length;G++){var te=arguments[G];for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&(ce[ie]=te[ie])}return ce},w.apply(this,arguments)}function x(ce,G){if(ce==null)return{};var te=P(ce,G),ie,fe;if(Object.getOwnPropertySymbols){var Se=Object.getOwnPropertySymbols(ce);for(fe=0;fe<Se.length;fe++)ie=Se[fe],!(G.indexOf(ie)>=0)&&Object.prototype.propertyIsEnumerable.call(ce,ie)&&(te[ie]=ce[ie])}return te}function P(ce,G){if(ce==null)return{};var te={},ie=Object.keys(ce),fe,Se;for(Se=0;Se<ie.length;Se++)fe=ie[Se],!(G.indexOf(fe)>=0)&&(te[fe]=ce[fe]);return te}function R(ce,G){var te=Object.keys(ce);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(ce);G&&(ie=ie.filter(function(fe){return Object.getOwnPropertyDescriptor(ce,fe).enumerable})),te.push.apply(te,ie)}return te}function T(ce){for(var G=1;G<arguments.length;G++){var te=arguments[G]!=null?arguments[G]:{};G%2?R(Object(te),!0).forEach(function(ie){V(ce,ie,te[ie])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ce,Object.getOwnPropertyDescriptors(te)):R(Object(te)).forEach(function(ie){Object.defineProperty(ce,ie,Object.getOwnPropertyDescriptor(te,ie))})}return ce}function A(ce,G){return W(ce)||_(ce,G)||N(ce,G)||I()}function I(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N(ce,G){if(ce){if(typeof ce=="string")return K(ce,G);var te=Object.prototype.toString.call(ce).slice(8,-1);if(te==="Object"&&ce.constructor&&(te=ce.constructor.name),te==="Map"||te==="Set")return Array.from(ce);if(te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return K(ce,G)}}function K(ce,G){(G==null||G>ce.length)&&(G=ce.length);for(var te=0,ie=new Array(G);te<G;te++)ie[te]=ce[te];return ie}function _(ce,G){var te=ce==null?null:typeof Symbol<"u"&&ce[Symbol.iterator]||ce["@@iterator"];if(te!=null){var ie=[],fe=!0,Se=!1,he,me;try{for(te=te.call(ce);!(fe=(he=te.next()).done)&&(ie.push(he.value),!(G&&ie.length===G));fe=!0);}catch(_e){Se=!0,me=_e}finally{try{!fe&&te.return!=null&&te.return()}finally{if(Se)throw me}}return ie}}function W(ce){if(Array.isArray(ce))return ce}function j(ce,G){if(!(ce instanceof G))throw new TypeError("Cannot call a class as a function")}function re(ce,G){for(var te=0;te<G.length;te++){var ie=G[te];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(ce,ie.key,ie)}}function X(ce,G,te){return G&&re(ce.prototype,G),te&&re(ce,te),Object.defineProperty(ce,"prototype",{writable:!1}),ce}function Z(ce,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");ce.prototype=Object.create(G&&G.prototype,{constructor:{value:ce,writable:!0,configurable:!0}}),Object.defineProperty(ce,"prototype",{writable:!1}),G&&J(ce,G)}function J(ce,G){return J=Object.setPrototypeOf||function(ie,fe){return ie.__proto__=fe,ie},J(ce,G)}function q(ce){var G=k();return function(){var ie=F(ce),fe;if(G){var Se=F(this).constructor;fe=Reflect.construct(ie,arguments,Se)}else fe=ie.apply(this,arguments);return L(this,fe)}}function L(ce,G){if(G&&(i(G)==="object"||typeof G=="function"))return G;if(G!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $(ce)}function $(ce){if(ce===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce}function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function F(ce){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(te){return te.__proto__||Object.getPrototypeOf(te)},F(ce)}function V(ce,G,te){return G in ce?Object.defineProperty(ce,G,{value:te,enumerable:!0,configurable:!0,writable:!0}):ce[G]=te,ce}var pe=function(ce){Z(te,ce);var G=q(te);function te(ie){var fe;return j(this,te),fe=G.call(this,ie),V($(fe),"onDragStart",function(Se,he){(0,g.default)("Draggable: onDragStart: %j",he);var me=fe.props.onStart(Se,(0,p.createDraggableData)($(fe),he));if(me===!1)return!1;fe.setState({dragging:!0,dragged:!0})}),V($(fe),"onDrag",function(Se,he){if(!fe.state.dragging)return!1;(0,g.default)("Draggable: onDrag: %j",he);var me=(0,p.createDraggableData)($(fe),he),_e={x:me.x,y:me.y};if(fe.props.bounds){var we=_e.x,Ge=_e.y;_e.x+=fe.state.slackX,_e.y+=fe.state.slackY;var ht=(0,p.getBoundPosition)($(fe),_e.x,_e.y),nt=A(ht,2),Re=nt[0],ue=nt[1];_e.x=Re,_e.y=ue,_e.slackX=fe.state.slackX+(we-_e.x),_e.slackY=fe.state.slackY+(Ge-_e.y),me.x=_e.x,me.y=_e.y,me.deltaX=_e.x-fe.state.x,me.deltaY=_e.y-fe.state.y}var ae=fe.props.onDrag(Se,me);if(ae===!1)return!1;fe.setState(_e)}),V($(fe),"onDragStop",function(Se,he){if(!fe.state.dragging)return!1;var me=fe.props.onStop(Se,(0,p.createDraggableData)($(fe),he));if(me===!1)return!1;(0,g.default)("Draggable: onDragStop: %j",he);var _e={dragging:!1,slackX:0,slackY:0},we=!!fe.props.position;if(we){var Ge=fe.props.position,ht=Ge.x,nt=Ge.y;_e.x=ht,_e.y=nt}fe.setState(_e)}),fe.state={dragging:!1,dragged:!1,x:ie.position?ie.position.x:ie.defaultPosition.x,y:ie.position?ie.position.y:ie.defaultPosition.y,prevPropsPosition:T({},ie.position),slackX:0,slackY:0,isElementSVG:!1},ie.position&&!(ie.onDrag||ie.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),fe}return X(te,[{key:"componentDidMount",value:function(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var fe,Se,he;return(fe=(Se=this.props)===null||Se===void 0||(he=Se.nodeRef)===null||he===void 0?void 0:he.current)!==null&&fe!==void 0?fe:v.default.findDOMNode(this)}},{key:"render",value:function(){var fe,Se=this.props,he=Se.axis,me=Se.bounds,_e=Se.children,we=Se.defaultPosition,Ge=Se.defaultClassName,ht=Se.defaultClassNameDragging,nt=Se.defaultClassNameDragged,Re=Se.position,ue=Se.positionOffset,ae=Se.scale,ve=x(Se,y),Me={},Ye=null,qe=!!Re,At=!qe||this.state.dragging,It=Re||we,Ce={x:(0,p.canDragX)(this)&&At?this.state.x:It.x,y:(0,p.canDragY)(this)&&At?this.state.y:It.y};this.state.isElementSVG?Ye=(0,h.createSVGTransform)(Ce,ue):Me=(0,h.createCSSTransform)(Ce,ue);var Ae=(0,l.default)(_e.props.className||"",Ge,(fe={},V(fe,ht,this.state.dragging),V(fe,nt,this.state.dragged),fe));return s.createElement(f.default,w({},ve,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),s.cloneElement(s.Children.only(_e),{className:Ae,style:T(T({},_e.props.style),Me),transform:Ye}))}}],[{key:"getDerivedStateFromProps",value:function(fe,Se){var he=fe.position,me=Se.prevPropsPosition;return he&&(!me||he.x!==me.x||he.y!==me.y)?((0,g.default)("Draggable: getDerivedStateFromProps %j",{position:he,prevPropsPosition:me}),{x:he.x,y:he.y,prevPropsPosition:T({},he)}):null}}]),te}(s.Component);c.default=pe,V(pe,"displayName","Draggable"),V(pe,"propTypes",T(T({},f.default.propTypes),{},{axis:u.default.oneOf(["both","x","y","none"]),bounds:u.default.oneOfType([u.default.shape({left:u.default.number,right:u.default.number,top:u.default.number,bottom:u.default.number}),u.default.string,u.default.oneOf([!1])]),defaultClassName:u.default.string,defaultClassNameDragging:u.default.string,defaultClassNameDragged:u.default.string,defaultPosition:u.default.shape({x:u.default.number,y:u.default.number}),positionOffset:u.default.shape({x:u.default.oneOfType([u.default.number,u.default.string]),y:u.default.oneOfType([u.default.number,u.default.string])}),position:u.default.shape({x:u.default.number,y:u.default.number}),className:d.dontSetMe,style:d.dontSetMe,transform:d.dontSetMe})),V(pe,"defaultProps",T(T({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},32296:(C,c,t)=>{"use strict";function i(L){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},i(L)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var s=y(t(27702)),u=f(t(51616)),v=f(t(27473)),l=t(37283),h=t(87396),p=t(63528),d=f(t(92965));function f(L){return L&&L.__esModule?L:{default:L}}function g(L){if(typeof WeakMap!="function")return null;var $=new WeakMap,k=new WeakMap;return(g=function(V){return V?k:$})(L)}function y(L,$){if(!$&&L&&L.__esModule)return L;if(L===null||i(L)!=="object"&&typeof L!="function")return{default:L};var k=g($);if(k&&k.has(L))return k.get(L);var F={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var pe in L)if(pe!=="default"&&Object.prototype.hasOwnProperty.call(L,pe)){var ce=V?Object.getOwnPropertyDescriptor(L,pe):null;ce&&(ce.get||ce.set)?Object.defineProperty(F,pe,ce):F[pe]=L[pe]}return F.default=L,k&&k.set(L,F),F}function b(L,$){return P(L)||x(L,$)||S(L,$)||E()}function E(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S(L,$){if(L){if(typeof L=="string")return w(L,$);var k=Object.prototype.toString.call(L).slice(8,-1);if(k==="Object"&&L.constructor&&(k=L.constructor.name),k==="Map"||k==="Set")return Array.from(L);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return w(L,$)}}function w(L,$){($==null||$>L.length)&&($=L.length);for(var k=0,F=new Array($);k<$;k++)F[k]=L[k];return F}function x(L,$){var k=L==null?null:typeof Symbol<"u"&&L[Symbol.iterator]||L["@@iterator"];if(k!=null){var F=[],V=!0,pe=!1,ce,G;try{for(k=k.call(L);!(V=(ce=k.next()).done)&&(F.push(ce.value),!($&&F.length===$));V=!0);}catch(te){pe=!0,G=te}finally{try{!V&&k.return!=null&&k.return()}finally{if(pe)throw G}}return F}}function P(L){if(Array.isArray(L))return L}function R(L,$){if(!(L instanceof $))throw new TypeError("Cannot call a class as a function")}function T(L,$){for(var k=0;k<$.length;k++){var F=$[k];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(L,F.key,F)}}function A(L,$,k){return $&&T(L.prototype,$),k&&T(L,k),Object.defineProperty(L,"prototype",{writable:!1}),L}function I(L,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create($&&$.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),$&&N(L,$)}function N(L,$){return N=Object.setPrototypeOf||function(F,V){return F.__proto__=V,F},N(L,$)}function K(L){var $=j();return function(){var F=re(L),V;if($){var pe=re(this).constructor;V=Reflect.construct(F,arguments,pe)}else V=F.apply(this,arguments);return _(this,V)}}function _(L,$){if($&&(i($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W(L)}function W(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function j(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function re(L){return re=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)},re(L)}function X(L,$,k){return $ in L?Object.defineProperty(L,$,{value:k,enumerable:!0,configurable:!0,writable:!0}):L[$]=k,L}var Z={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},J=Z.mouse,q=function(L){I(k,L);var $=K(k);function k(){var F;R(this,k);for(var V=arguments.length,pe=new Array(V),ce=0;ce<V;ce++)pe[ce]=arguments[ce];return F=$.call.apply($,[this].concat(pe)),X(W(F),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),X(W(F),"mounted",!1),X(W(F),"handleDragStart",function(G){if(F.props.onMouseDown(G),!F.props.allowAnyClick&&typeof G.button=="number"&&G.button!==0)return!1;var te=F.findDOMNode();if(!te||!te.ownerDocument||!te.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var ie=te.ownerDocument;if(!(F.props.disabled||!(G.target instanceof ie.defaultView.Node)||F.props.handle&&!(0,l.matchesSelectorAndParentsTo)(G.target,F.props.handle,te)||F.props.cancel&&(0,l.matchesSelectorAndParentsTo)(G.target,F.props.cancel,te))){G.type==="touchstart"&&G.preventDefault();var fe=(0,l.getTouchIdentifier)(G);F.setState({touchIdentifier:fe});var Se=(0,h.getControlPosition)(G,fe,W(F));if(Se!=null){var he=Se.x,me=Se.y,_e=(0,h.createCoreData)(W(F),he,me);(0,d.default)("DraggableCore: handleDragStart: %j",_e),(0,d.default)("calling",F.props.onStart);var we=F.props.onStart(G,_e);we===!1||F.mounted===!1||(F.props.enableUserSelectHack&&(0,l.addUserSelectStyles)(ie),F.setState({dragging:!0,lastX:he,lastY:me}),(0,l.addEvent)(ie,J.move,F.handleDrag),(0,l.addEvent)(ie,J.stop,F.handleDragStop))}}}),X(W(F),"handleDrag",function(G){var te=(0,h.getControlPosition)(G,F.state.touchIdentifier,W(F));if(te!=null){var ie=te.x,fe=te.y;if(Array.isArray(F.props.grid)){var Se=ie-F.state.lastX,he=fe-F.state.lastY,me=(0,h.snapToGrid)(F.props.grid,Se,he),_e=b(me,2);if(Se=_e[0],he=_e[1],!Se&&!he)return;ie=F.state.lastX+Se,fe=F.state.lastY+he}var we=(0,h.createCoreData)(W(F),ie,fe);(0,d.default)("DraggableCore: handleDrag: %j",we);var Ge=F.props.onDrag(G,we);if(Ge===!1||F.mounted===!1){try{F.handleDragStop(new MouseEvent("mouseup"))}catch{var ht=document.createEvent("MouseEvents");ht.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),F.handleDragStop(ht)}return}F.setState({lastX:ie,lastY:fe})}}),X(W(F),"handleDragStop",function(G){if(F.state.dragging){var te=(0,h.getControlPosition)(G,F.state.touchIdentifier,W(F));if(te!=null){var ie=te.x,fe=te.y;if(Array.isArray(F.props.grid)){var Se=ie-F.state.lastX||0,he=fe-F.state.lastY||0,me=(0,h.snapToGrid)(F.props.grid,Se,he),_e=b(me,2);Se=_e[0],he=_e[1],ie=F.state.lastX+Se,fe=F.state.lastY+he}var we=(0,h.createCoreData)(W(F),ie,fe),Ge=F.props.onStop(G,we);if(Ge===!1||F.mounted===!1)return!1;var ht=F.findDOMNode();ht&&F.props.enableUserSelectHack&&(0,l.removeUserSelectStyles)(ht.ownerDocument),(0,d.default)("DraggableCore: handleDragStop: %j",we),F.setState({dragging:!1,lastX:NaN,lastY:NaN}),ht&&((0,d.default)("DraggableCore: Removing handlers"),(0,l.removeEvent)(ht.ownerDocument,J.move,F.handleDrag),(0,l.removeEvent)(ht.ownerDocument,J.stop,F.handleDragStop))}}}),X(W(F),"onMouseDown",function(G){return J=Z.mouse,F.handleDragStart(G)}),X(W(F),"onMouseUp",function(G){return J=Z.mouse,F.handleDragStop(G)}),X(W(F),"onTouchStart",function(G){return J=Z.touch,F.handleDragStart(G)}),X(W(F),"onTouchEnd",function(G){return J=Z.touch,F.handleDragStop(G)}),F}return A(k,[{key:"componentDidMount",value:function(){this.mounted=!0;var V=this.findDOMNode();V&&(0,l.addEvent)(V,Z.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var V=this.findDOMNode();if(V){var pe=V.ownerDocument;(0,l.removeEvent)(pe,Z.mouse.move,this.handleDrag),(0,l.removeEvent)(pe,Z.touch.move,this.handleDrag),(0,l.removeEvent)(pe,Z.mouse.stop,this.handleDragStop),(0,l.removeEvent)(pe,Z.touch.stop,this.handleDragStop),(0,l.removeEvent)(V,Z.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,l.removeUserSelectStyles)(pe)}}},{key:"findDOMNode",value:function(){var V,pe,ce;return(V=this.props)!==null&&V!==void 0&&V.nodeRef?(pe=this.props)===null||pe===void 0||(ce=pe.nodeRef)===null||ce===void 0?void 0:ce.current:v.default.findDOMNode(this)}},{key:"render",value:function(){return s.cloneElement(s.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),k}(s.Component);c.default=q,X(q,"displayName","DraggableCore"),X(q,"propTypes",{allowAnyClick:u.default.bool,disabled:u.default.bool,enableUserSelectHack:u.default.bool,offsetParent:function($,k){if($[k]&&$[k].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:u.default.arrayOf(u.default.number),handle:u.default.string,cancel:u.default.string,nodeRef:u.default.object,onStart:u.default.func,onDrag:u.default.func,onStop:u.default.func,onMouseDown:u.default.func,scale:u.default.number,className:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe}),X(q,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},13334:(C,c,t)=>{"use strict";var i=t(69463),s=i.default,u=i.DraggableCore;C.exports=s,C.exports.default=s,C.exports.DraggableCore=u},37283:(C,c,t)=>{"use strict";function i(X){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},i(X)}Object.defineProperty(c,"__esModule",{value:!0}),c.addClassName=j,c.addEvent=b,c.addUserSelectStyles=_,c.createCSSTransform=T,c.createSVGTransform=A,c.getTouch=N,c.getTouchIdentifier=K,c.getTranslation=I,c.innerHeight=x,c.innerWidth=P,c.matchesSelector=g,c.matchesSelectorAndParentsTo=y,c.offsetXYFromParent=R,c.outerHeight=S,c.outerWidth=w,c.removeClassName=re,c.removeEvent=E,c.removeUserSelectStyles=W;var s=t(63528),u=l(t(74655));function v(X){if(typeof WeakMap!="function")return null;var Z=new WeakMap,J=new WeakMap;return(v=function(L){return L?J:Z})(X)}function l(X,Z){if(!Z&&X&&X.__esModule)return X;if(X===null||i(X)!=="object"&&typeof X!="function")return{default:X};var J=v(Z);if(J&&J.has(X))return J.get(X);var q={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in X)if($!=="default"&&Object.prototype.hasOwnProperty.call(X,$)){var k=L?Object.getOwnPropertyDescriptor(X,$):null;k&&(k.get||k.set)?Object.defineProperty(q,$,k):q[$]=X[$]}return q.default=X,J&&J.set(X,q),q}function h(X,Z){var J=Object.keys(X);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(X);Z&&(q=q.filter(function(L){return Object.getOwnPropertyDescriptor(X,L).enumerable})),J.push.apply(J,q)}return J}function p(X){for(var Z=1;Z<arguments.length;Z++){var J=arguments[Z]!=null?arguments[Z]:{};Z%2?h(Object(J),!0).forEach(function(q){d(X,q,J[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(J)):h(Object(J)).forEach(function(q){Object.defineProperty(X,q,Object.getOwnPropertyDescriptor(J,q))})}return X}function d(X,Z,J){return Z in X?Object.defineProperty(X,Z,{value:J,enumerable:!0,configurable:!0,writable:!0}):X[Z]=J,X}var f="";function g(X,Z){return f||(f=(0,s.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(J){return(0,s.isFunction)(X[J])})),(0,s.isFunction)(X[f])?X[f](Z):!1}function y(X,Z,J){var q=X;do{if(g(q,Z))return!0;if(q===J)return!1;q=q.parentNode}while(q);return!1}function b(X,Z,J,q){if(X){var L=p({capture:!0},q);X.addEventListener?X.addEventListener(Z,J,L):X.attachEvent?X.attachEvent("on"+Z,J):X["on"+Z]=J}}function E(X,Z,J,q){if(X){var L=p({capture:!0},q);X.removeEventListener?X.removeEventListener(Z,J,L):X.detachEvent?X.detachEvent("on"+Z,J):X["on"+Z]=null}}function S(X){var Z=X.clientHeight,J=X.ownerDocument.defaultView.getComputedStyle(X);return Z+=(0,s.int)(J.borderTopWidth),Z+=(0,s.int)(J.borderBottomWidth),Z}function w(X){var Z=X.clientWidth,J=X.ownerDocument.defaultView.getComputedStyle(X);return Z+=(0,s.int)(J.borderLeftWidth),Z+=(0,s.int)(J.borderRightWidth),Z}function x(X){var Z=X.clientHeight,J=X.ownerDocument.defaultView.getComputedStyle(X);return Z-=(0,s.int)(J.paddingTop),Z-=(0,s.int)(J.paddingBottom),Z}function P(X){var Z=X.clientWidth,J=X.ownerDocument.defaultView.getComputedStyle(X);return Z-=(0,s.int)(J.paddingLeft),Z-=(0,s.int)(J.paddingRight),Z}function R(X,Z,J){var q=Z===Z.ownerDocument.body,L=q?{left:0,top:0}:Z.getBoundingClientRect(),$=(X.clientX+Z.scrollLeft-L.left)/J,k=(X.clientY+Z.scrollTop-L.top)/J;return{x:$,y:k}}function T(X,Z){var J=I(X,Z,"px");return d({},(0,u.browserPrefixToKey)("transform",u.default),J)}function A(X,Z){var J=I(X,Z,"");return J}function I(X,Z,J){var q=X.x,L=X.y,$="translate(".concat(q).concat(J,",").concat(L).concat(J,")");if(Z){var k="".concat(typeof Z.x=="string"?Z.x:Z.x+J),F="".concat(typeof Z.y=="string"?Z.y:Z.y+J);$="translate(".concat(k,", ").concat(F,")")+$}return $}function N(X,Z){return X.targetTouches&&(0,s.findInArray)(X.targetTouches,function(J){return Z===J.identifier})||X.changedTouches&&(0,s.findInArray)(X.changedTouches,function(J){return Z===J.identifier})}function K(X){if(X.targetTouches&&X.targetTouches[0])return X.targetTouches[0].identifier;if(X.changedTouches&&X.changedTouches[0])return X.changedTouches[0].identifier}function _(X){if(X){var Z=X.getElementById("react-draggable-style-el");Z||(Z=X.createElement("style"),Z.type="text/css",Z.id="react-draggable-style-el",Z.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} `,Z.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} `,X.getElementsByTagName("head")[0].appendChild(Z)),X.body&&j(X.body,"react-draggable-transparent-selection")}}function W(X){if(X)try{if(X.body&&re(X.body,"react-draggable-transparent-selection"),X.selection)X.selection.empty();else{var Z=(X.defaultView||window).getSelection();Z&&Z.type!=="Caret"&&Z.removeAllRanges()}}catch{}}function j(X,Z){X.classList?X.classList.add(Z):X.className.match(new RegExp("(?:^|\\s)".concat(Z,"(?!\\S)")))||(X.className+=" ".concat(Z))}function re(X,Z){X.classList?X.classList.remove(Z):X.className=X.className.replace(new RegExp("(?:^|\\s)".concat(Z,"(?!\\S)"),"g"),"")}},74655:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.browserPrefixToKey=s,c.browserPrefixToStyle=u,c.default=void 0,c.getPrefix=i;var t=["Moz","Webkit","O","ms"];function i(){var h,p,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";var f=(h=window.document)===null||h===void 0||(p=h.documentElement)===null||p===void 0?void 0:p.style;if(!f||d in f)return"";for(var g=0;g<t.length;g++)if(s(d,t[g])in f)return t[g];return""}function s(h,p){return p?"".concat(p).concat(v(h)):h}function u(h,p){return p?"-".concat(p.toLowerCase(),"-").concat(h):h}function v(h){for(var p="",d=!0,f=0;f<h.length;f++)d?(p+=h[f].toUpperCase(),d=!1):h[f]==="-"?d=!0:p+=h[f];return p}var l=i();c.default=l},92965:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=t;function t(){var i}},87396:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.canDragX=l,c.canDragY=h,c.createCoreData=d,c.createDraggableData=f,c.getBoundPosition=u,c.getControlPosition=p,c.snapToGrid=v;var i=t(63528),s=t(37283);function u(b,E,S){if(!b.props.bounds)return[E,S];var w=b.props.bounds;w=typeof w=="string"?w:g(w);var x=y(b);if(typeof w=="string"){var P=x.ownerDocument,R=P.defaultView,T;if(w==="parent"?T=x.parentNode:T=P.querySelector(w),!(T instanceof R.HTMLElement))throw new Error('Bounds selector "'+w+'" could not find an element.');var A=T,I=R.getComputedStyle(x),N=R.getComputedStyle(A);w={left:-x.offsetLeft+(0,i.int)(N.paddingLeft)+(0,i.int)(I.marginLeft),top:-x.offsetTop+(0,i.int)(N.paddingTop)+(0,i.int)(I.marginTop),right:(0,s.innerWidth)(A)-(0,s.outerWidth)(x)-x.offsetLeft+(0,i.int)(N.paddingRight)-(0,i.int)(I.marginRight),bottom:(0,s.innerHeight)(A)-(0,s.outerHeight)(x)-x.offsetTop+(0,i.int)(N.paddingBottom)-(0,i.int)(I.marginBottom)}}return(0,i.isNum)(w.right)&&(E=Math.min(E,w.right)),(0,i.isNum)(w.bottom)&&(S=Math.min(S,w.bottom)),(0,i.isNum)(w.left)&&(E=Math.max(E,w.left)),(0,i.isNum)(w.top)&&(S=Math.max(S,w.top)),[E,S]}function v(b,E,S){var w=Math.round(E/b[0])*b[0],x=Math.round(S/b[1])*b[1];return[w,x]}function l(b){return b.props.axis==="both"||b.props.axis==="x"}function h(b){return b.props.axis==="both"||b.props.axis==="y"}function p(b,E,S){var w=typeof E=="number"?(0,s.getTouch)(b,E):null;if(typeof E=="number"&&!w)return null;var x=y(S),P=S.props.offsetParent||x.offsetParent||x.ownerDocument.body;return(0,s.offsetXYFromParent)(w||b,P,S.props.scale)}function d(b,E,S){var w=b.state,x=!(0,i.isNum)(w.lastX),P=y(b);return x?{node:P,deltaX:0,deltaY:0,lastX:E,lastY:S,x:E,y:S}:{node:P,deltaX:E-w.lastX,deltaY:S-w.lastY,lastX:w.lastX,lastY:w.lastY,x:E,y:S}}function f(b,E){var S=b.props.scale;return{node:E.node,x:b.state.x+E.deltaX/S,y:b.state.y+E.deltaY/S,deltaX:E.deltaX/S,deltaY:E.deltaY/S,lastX:b.state.x,lastY:b.state.y}}function g(b){return{left:b.left,top:b.top,right:b.right,bottom:b.bottom}}function y(b){var E=b.findDOMNode();if(!E)throw new Error("<DraggableCore>: Unmounted during event!");return E}},63528:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.dontSetMe=v,c.findInArray=t,c.int=u,c.isFunction=i,c.isNum=s;function t(l,h){for(var p=0,d=l.length;p<d;p++)if(h.apply(h,[l[p],p,l]))return l[p]}function i(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Function]"}function s(l){return typeof l=="number"&&!isNaN(l)}function u(l){return parseInt(l,10)}function v(l,h,p){if(l[h])return new Error("Invalid prop ".concat(h," passed to ").concat(p," - do not set this, set it on the child."))}},32335:(C,c,t)=>{"use strict";t.d(c,{uI:()=>hn});var i=t(27702),s=t(51616),u=t.n(s),v=function(Lt,zt){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Kt,vt){Kt.__proto__=vt}||function(Kt,vt){for(var Ve in vt)Object.prototype.hasOwnProperty.call(vt,Ve)&&(Kt[Ve]=vt[Ve])},v(Lt,zt)};function l(Lt,zt){if(typeof zt!="function"&&zt!==null)throw new TypeError("Class extends value "+String(zt)+" is not a constructor or null");v(Lt,zt);function Kt(){this.constructor=Lt}Lt.prototype=zt===null?Object.create(zt):(Kt.prototype=zt.prototype,new Kt)}var h=function(){return h=Object.assign||function(zt){for(var Kt,vt=1,Ve=arguments.length;vt<Ve;vt++){Kt=arguments[vt];for(var lt in Kt)Object.prototype.hasOwnProperty.call(Kt,lt)&&(zt[lt]=Kt[lt])}return zt},h.apply(this,arguments)};function p(Lt,zt){var Kt={};for(var vt in Lt)Object.prototype.hasOwnProperty.call(Lt,vt)&&zt.indexOf(vt)<0&&(Kt[vt]=Lt[vt]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,vt=Object.getOwnPropertySymbols(Lt);Ve<vt.length;Ve++)zt.indexOf(vt[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Lt,vt[Ve])&&(Kt[vt[Ve]]=Lt[vt[Ve]]);return Kt}function d(Lt,zt,Kt,vt){var Ve=arguments.length,lt=Ve<3?zt:vt===null?vt=Object.getOwnPropertyDescriptor(zt,Kt):vt,at;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")lt=Reflect.decorate(Lt,zt,Kt,vt);else for(var Xt=Lt.length-1;Xt>=0;Xt--)(at=Lt[Xt])&&(lt=(Ve<3?at(lt):Ve>3?at(zt,Kt,lt):at(zt,Kt))||lt);return Ve>3&<&&Object.defineProperty(zt,Kt,lt),lt}function f(Lt,zt){return function(Kt,vt){zt(Kt,vt,Lt)}}function g(Lt,zt){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Lt,zt)}function y(Lt,zt,Kt,vt){function Ve(lt){return lt instanceof Kt?lt:new Kt(function(at){at(lt)})}return new(Kt||(Kt=Promise))(function(lt,at){function Xt(rn){try{Rt(vt.next(rn))}catch(sn){at(sn)}}function rt(rn){try{Rt(vt.throw(rn))}catch(sn){at(sn)}}function Rt(rn){rn.done?lt(rn.value):Ve(rn.value).then(Xt,rt)}Rt((vt=vt.apply(Lt,zt||[])).next())})}function b(Lt,zt){var Kt={label:0,sent:function(){if(lt[0]&1)throw lt[1];return lt[1]},trys:[],ops:[]},vt,Ve,lt,at;return at={next:Xt(0),throw:Xt(1),return:Xt(2)},typeof Symbol=="function"&&(at[Symbol.iterator]=function(){return this}),at;function Xt(Rt){return function(rn){return rt([Rt,rn])}}function rt(Rt){if(vt)throw new TypeError("Generator is already executing.");for(;Kt;)try{if(vt=1,Ve&&(lt=Rt[0]&2?Ve.return:Rt[0]?Ve.throw||((lt=Ve.return)&<.call(Ve),0):Ve.next)&&!(lt=lt.call(Ve,Rt[1])).done)return lt;switch(Ve=0,lt&&(Rt=[Rt[0]&2,lt.value]),Rt[0]){case 0:case 1:lt=Rt;break;case 4:return Kt.label++,{value:Rt[1],done:!1};case 5:Kt.label++,Ve=Rt[1],Rt=[0];continue;case 7:Rt=Kt.ops.pop(),Kt.trys.pop();continue;default:if(lt=Kt.trys,!(lt=lt.length>0&<[lt.length-1])&&(Rt[0]===6||Rt[0]===2)){Kt=0;continue}if(Rt[0]===3&&(!lt||Rt[1]>lt[0]&&Rt[1]<lt[3])){Kt.label=Rt[1];break}if(Rt[0]===6&&Kt.label<lt[1]){Kt.label=lt[1],lt=Rt;break}if(lt&&Kt.label<lt[2]){Kt.label=lt[2],Kt.ops.push(Rt);break}lt[2]&&Kt.ops.pop(),Kt.trys.pop();continue}Rt=zt.call(Lt,Kt)}catch(rn){Rt=[6,rn],Ve=0}finally{vt=lt=0}if(Rt[0]&5)throw Rt[1];return{value:Rt[0]?Rt[1]:void 0,done:!0}}}var E=Object.create?function(Lt,zt,Kt,vt){vt===void 0&&(vt=Kt);var Ve=Object.getOwnPropertyDescriptor(zt,Kt);(!Ve||("get"in Ve?!zt.__esModule:Ve.writable||Ve.configurable))&&(Ve={enumerable:!0,get:function(){return zt[Kt]}}),Object.defineProperty(Lt,vt,Ve)}:function(Lt,zt,Kt,vt){vt===void 0&&(vt=Kt),Lt[vt]=zt[Kt]};function S(Lt,zt){for(var Kt in Lt)Kt!=="default"&&!Object.prototype.hasOwnProperty.call(zt,Kt)&&E(zt,Lt,Kt)}function w(Lt){var zt=typeof Symbol=="function"&&Symbol.iterator,Kt=zt&&Lt[zt],vt=0;if(Kt)return Kt.call(Lt);if(Lt&&typeof Lt.length=="number")return{next:function(){return Lt&&vt>=Lt.length&&(Lt=void 0),{value:Lt&&Lt[vt++],done:!Lt}}};throw new TypeError(zt?"Object is not iterable.":"Symbol.iterator is not defined.")}function x(Lt,zt){var Kt=typeof Symbol=="function"&&Lt[Symbol.iterator];if(!Kt)return Lt;var vt=Kt.call(Lt),Ve,lt=[],at;try{for(;(zt===void 0||zt-- >0)&&!(Ve=vt.next()).done;)lt.push(Ve.value)}catch(Xt){at={error:Xt}}finally{try{Ve&&!Ve.done&&(Kt=vt.return)&&Kt.call(vt)}finally{if(at)throw at.error}}return lt}function P(){for(var Lt=[],zt=0;zt<arguments.length;zt++)Lt=Lt.concat(x(arguments[zt]));return Lt}function R(){for(var Lt=0,zt=0,Kt=arguments.length;zt<Kt;zt++)Lt+=arguments[zt].length;for(var vt=Array(Lt),Ve=0,zt=0;zt<Kt;zt++)for(var lt=arguments[zt],at=0,Xt=lt.length;at<Xt;at++,Ve++)vt[Ve]=lt[at];return vt}function T(Lt,zt,Kt){if(Kt||arguments.length===2)for(var vt=0,Ve=zt.length,lt;vt<Ve;vt++)(lt||!(vt in zt))&&(lt||(lt=Array.prototype.slice.call(zt,0,vt)),lt[vt]=zt[vt]);return Lt.concat(lt||Array.prototype.slice.call(zt))}function A(Lt){return this instanceof A?(this.v=Lt,this):new A(Lt)}function I(Lt,zt,Kt){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var vt=Kt.apply(Lt,zt||[]),Ve,lt=[];return Ve={},at("next"),at("throw"),at("return"),Ve[Symbol.asyncIterator]=function(){return this},Ve;function at(Jn){vt[Jn]&&(Ve[Jn]=function(ze){return new Promise(function(st,en){lt.push([Jn,ze,st,en])>1||Xt(Jn,ze)})})}function Xt(Jn,ze){try{rt(vt[Jn](ze))}catch(st){sn(lt[0][3],st)}}function rt(Jn){Jn.value instanceof A?Promise.resolve(Jn.value.v).then(Rt,rn):sn(lt[0][2],Jn)}function Rt(Jn){Xt("next",Jn)}function rn(Jn){Xt("throw",Jn)}function sn(Jn,ze){Jn(ze),lt.shift(),lt.length&&Xt(lt[0][0],lt[0][1])}}function N(Lt){var zt,Kt;return zt={},vt("next"),vt("throw",function(Ve){throw Ve}),vt("return"),zt[Symbol.iterator]=function(){return this},zt;function vt(Ve,lt){zt[Ve]=Lt[Ve]?function(at){return(Kt=!Kt)?{value:A(Lt[Ve](at)),done:Ve==="return"}:lt?lt(at):at}:lt}}function K(Lt){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var zt=Lt[Symbol.asyncIterator],Kt;return zt?zt.call(Lt):(Lt=typeof w=="function"?w(Lt):Lt[Symbol.iterator](),Kt={},vt("next"),vt("throw"),vt("return"),Kt[Symbol.asyncIterator]=function(){return this},Kt);function vt(lt){Kt[lt]=Lt[lt]&&function(at){return new Promise(function(Xt,rt){at=Lt[lt](at),Ve(Xt,rt,at.done,at.value)})}}function Ve(lt,at,Xt,rt){Promise.resolve(rt).then(function(Rt){lt({value:Rt,done:Xt})},at)}}function _(Lt,zt){return Object.defineProperty?Object.defineProperty(Lt,"raw",{value:zt}):Lt.raw=zt,Lt}var W=Object.create?function(Lt,zt){Object.defineProperty(Lt,"default",{enumerable:!0,value:zt})}:function(Lt,zt){Lt.default=zt};function j(Lt){if(Lt&&Lt.__esModule)return Lt;var zt={};if(Lt!=null)for(var Kt in Lt)Kt!=="default"&&Object.prototype.hasOwnProperty.call(Lt,Kt)&&E(zt,Lt,Kt);return W(zt,Lt),zt}function re(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}function X(Lt,zt,Kt,vt){if(Kt==="a"&&!vt)throw new TypeError("Private accessor was defined without a getter");if(typeof zt=="function"?Lt!==zt||!vt:!zt.has(Lt))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Kt==="m"?vt:Kt==="a"?vt.call(Lt):vt?vt.value:zt.get(Lt)}function Z(Lt,zt,Kt,vt,Ve){if(vt==="m")throw new TypeError("Private method is not writable");if(vt==="a"&&!Ve)throw new TypeError("Private accessor was defined without a setter");if(typeof zt=="function"?Lt!==zt||!Ve:!zt.has(Lt))throw new TypeError("Cannot write private member to an object whose class did not declare it");return vt==="a"?Ve.call(Lt,Kt):Ve?Ve.value=Kt:zt.set(Lt,Kt),Kt}function J(Lt,zt){if(zt===null||typeof zt!="object"&&typeof zt!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof Lt=="function"?zt===Lt:Lt.has(zt)}var q=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function L(Lt,zt){var Kt=$(Lt);if(typeof Kt.path!="string"){var vt=Lt.webkitRelativePath;Object.defineProperty(Kt,"path",{value:typeof zt=="string"?zt:typeof vt=="string"&&vt.length>0?vt:Lt.name,writable:!1,configurable:!1,enumerable:!0})}return Kt}function $(Lt){var zt=Lt.name,Kt=zt&&zt.lastIndexOf(".")!==-1;if(Kt&&!Lt.type){var vt=zt.split(".").pop().toLowerCase(),Ve=q.get(vt);Ve&&Object.defineProperty(Lt,"type",{value:Ve,writable:!1,configurable:!1,enumerable:!0})}return Lt}var k=[".DS_Store","Thumbs.db"];function F(Lt){return y(this,void 0,void 0,function(){return b(this,function(zt){return ce(Lt)&&V(Lt.dataTransfer)?[2,ie(Lt.dataTransfer,Lt.type)]:pe(Lt)?[2,G(Lt)]:Array.isArray(Lt)&&Lt.every(function(Kt){return"getFile"in Kt&&typeof Kt.getFile=="function"})?[2,te(Lt)]:[2,[]]})})}function V(Lt){return ce(Lt)}function pe(Lt){return ce(Lt)&&ce(Lt.target)}function ce(Lt){return typeof Lt=="object"&&Lt!==null}function G(Lt){return Se(Lt.target.files).map(function(zt){return L(zt)})}function te(Lt){return y(this,void 0,void 0,function(){var zt;return b(this,function(Kt){switch(Kt.label){case 0:return[4,Promise.all(Lt.map(function(vt){return vt.getFile()}))];case 1:return zt=Kt.sent(),[2,zt.map(function(vt){return L(vt)})]}})})}function ie(Lt,zt){return y(this,void 0,void 0,function(){var Kt,vt;return b(this,function(Ve){switch(Ve.label){case 0:return Lt.items?(Kt=Se(Lt.items).filter(function(lt){return lt.kind==="file"}),zt!=="drop"?[2,Kt]:[4,Promise.all(Kt.map(he))]):[3,2];case 1:return vt=Ve.sent(),[2,fe(me(vt))];case 2:return[2,fe(Se(Lt.files).map(function(lt){return L(lt)}))]}})})}function fe(Lt){return Lt.filter(function(zt){return k.indexOf(zt.name)===-1})}function Se(Lt){if(Lt===null)return[];for(var zt=[],Kt=0;Kt<Lt.length;Kt++){var vt=Lt[Kt];zt.push(vt)}return zt}function he(Lt){if(typeof Lt.webkitGetAsEntry!="function")return _e(Lt);var zt=Lt.webkitGetAsEntry();return zt&&zt.isDirectory?Ge(zt):_e(Lt)}function me(Lt){return Lt.reduce(function(zt,Kt){return T(T([],x(zt),!1),x(Array.isArray(Kt)?me(Kt):[Kt]),!1)},[])}function _e(Lt){var zt=Lt.getAsFile();if(!zt)return Promise.reject("".concat(Lt," is not a File"));var Kt=L(zt);return Promise.resolve(Kt)}function we(Lt){return y(this,void 0,void 0,function(){return b(this,function(zt){return[2,Lt.isDirectory?Ge(Lt):ht(Lt)]})})}function Ge(Lt){var zt=Lt.createReader();return new Promise(function(Kt,vt){var Ve=[];function lt(){var at=this;zt.readEntries(function(Xt){return y(at,void 0,void 0,function(){var rt,Rt,rn;return b(this,function(sn){switch(sn.label){case 0:if(Xt.length)return[3,5];sn.label=1;case 1:return sn.trys.push([1,3,,4]),[4,Promise.all(Ve)];case 2:return rt=sn.sent(),Kt(rt),[3,4];case 3:return Rt=sn.sent(),vt(Rt),[3,4];case 4:return[3,6];case 5:rn=Promise.all(Xt.map(we)),Ve.push(rn),lt(),sn.label=6;case 6:return[2]}})})},function(Xt){vt(Xt)})}lt()})}function ht(Lt){return y(this,void 0,void 0,function(){return b(this,function(zt){return[2,new Promise(function(Kt,vt){Lt.file(function(Ve){var lt=L(Ve,Lt.fullPath);Kt(lt)},function(Ve){vt(Ve)})})]})})}var nt=t(42079),Re=["children"],ue=["open"],ae=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],ve=["refKey","onChange","onClick"];function Me(Lt){return At(Lt)||qe(Lt)||Ae(Lt)||Ye()}function Ye(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qe(Lt){if(typeof Symbol<"u"&&Lt[Symbol.iterator]!=null||Lt["@@iterator"]!=null)return Array.from(Lt)}function At(Lt){if(Array.isArray(Lt))return $e(Lt)}function It(Lt,zt){return ke(Lt)||tt(Lt,zt)||Ae(Lt,zt)||Ce()}function Ce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ae(Lt,zt){if(Lt){if(typeof Lt=="string")return $e(Lt,zt);var Kt=Object.prototype.toString.call(Lt).slice(8,-1);if(Kt==="Object"&&Lt.constructor&&(Kt=Lt.constructor.name),Kt==="Map"||Kt==="Set")return Array.from(Lt);if(Kt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Kt))return $e(Lt,zt)}}function $e(Lt,zt){(zt==null||zt>Lt.length)&&(zt=Lt.length);for(var Kt=0,vt=new Array(zt);Kt<zt;Kt++)vt[Kt]=Lt[Kt];return vt}function tt(Lt,zt){var Kt=Lt==null?null:typeof Symbol<"u"&&Lt[Symbol.iterator]||Lt["@@iterator"];if(Kt!=null){var vt=[],Ve=!0,lt=!1,at,Xt;try{for(Kt=Kt.call(Lt);!(Ve=(at=Kt.next()).done)&&(vt.push(at.value),!(zt&&vt.length===zt));Ve=!0);}catch(rt){lt=!0,Xt=rt}finally{try{!Ve&&Kt.return!=null&&Kt.return()}finally{if(lt)throw Xt}}return vt}}function ke(Lt){if(Array.isArray(Lt))return Lt}function Oe(Lt,zt){var Kt=Object.keys(Lt);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(Lt);zt&&(vt=vt.filter(function(Ve){return Object.getOwnPropertyDescriptor(Lt,Ve).enumerable})),Kt.push.apply(Kt,vt)}return Kt}function je(Lt){for(var zt=1;zt<arguments.length;zt++){var Kt=arguments[zt]!=null?arguments[zt]:{};zt%2?Oe(Object(Kt),!0).forEach(function(vt){Et(Lt,vt,Kt[vt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Lt,Object.getOwnPropertyDescriptors(Kt)):Oe(Object(Kt)).forEach(function(vt){Object.defineProperty(Lt,vt,Object.getOwnPropertyDescriptor(Kt,vt))})}return Lt}function Et(Lt,zt,Kt){return zt in Lt?Object.defineProperty(Lt,zt,{value:Kt,enumerable:!0,configurable:!0,writable:!0}):Lt[zt]=Kt,Lt}function ct(Lt,zt){if(Lt==null)return{};var Kt=ut(Lt,zt),vt,Ve;if(Object.getOwnPropertySymbols){var lt=Object.getOwnPropertySymbols(Lt);for(Ve=0;Ve<lt.length;Ve++)vt=lt[Ve],!(zt.indexOf(vt)>=0)&&Object.prototype.propertyIsEnumerable.call(Lt,vt)&&(Kt[vt]=Lt[vt])}return Kt}function ut(Lt,zt){if(Lt==null)return{};var Kt={},vt=Object.keys(Lt),Ve,lt;for(lt=0;lt<vt.length;lt++)Ve=vt[lt],!(zt.indexOf(Ve)>=0)&&(Kt[Ve]=Lt[Ve]);return Kt}var Ne=(0,i.forwardRef)(function(Lt,zt){var Kt=Lt.children,vt=ct(Lt,Re),Ve=hn(vt),lt=Ve.open,at=ct(Ve,ue);return(0,i.useImperativeHandle)(zt,function(){return{open:lt}},[lt]),i.createElement(i.Fragment,null,Kt(je(je({},at),{},{open:lt})))});Ne.displayName="Dropzone";var mt={disabled:!1,getFilesFromEvent:F,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Ne.defaultProps=mt,Ne.propTypes={children:u().func,accept:u().objectOf(u().arrayOf(u().string)),multiple:u().bool,preventDropOnDocument:u().bool,noClick:u().bool,noKeyboard:u().bool,noDrag:u().bool,noDragEventsBubbling:u().bool,minSize:u().number,maxSize:u().number,maxFiles:u().number,disabled:u().bool,getFilesFromEvent:u().func,onFileDialogCancel:u().func,onFileDialogOpen:u().func,useFsAccessApi:u().bool,autoFocus:u().bool,onDragEnter:u().func,onDragLeave:u().func,onDragOver:u().func,onDrop:u().func,onDropAccepted:u().func,onDropRejected:u().func,onError:u().func,validator:u().func};const bt=null;var Gt={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function hn(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},zt=je(je({},mt),Lt),Kt=zt.accept,vt=zt.disabled,Ve=zt.getFilesFromEvent,lt=zt.maxSize,at=zt.minSize,Xt=zt.multiple,rt=zt.maxFiles,Rt=zt.onDragEnter,rn=zt.onDragLeave,sn=zt.onDragOver,Jn=zt.onDrop,ze=zt.onDropAccepted,st=zt.onDropRejected,en=zt.onFileDialogCancel,wt=zt.onFileDialogOpen,Ke=zt.useFsAccessApi,Ut=zt.autoFocus,on=zt.preventDropOnDocument,Tn=zt.noClick,An=zt.noKeyboard,Zt=zt.noDrag,ot=zt.noDragEventsBubbling,We=zt.onError,Ft=zt.validator,it=(0,i.useMemo)(function(){return(0,nt.gS)(Kt)},[Kt]),qt=(0,i.useMemo)(function(){return(0,nt.zO)(Kt)},[Kt]),vn=(0,i.useMemo)(function(){return typeof wt=="function"?wt:Bt},[wt]),fn=(0,i.useMemo)(function(){return typeof en=="function"?en:Bt},[en]),Tt=(0,i.useRef)(null),dn=(0,i.useRef)(null),mn=(0,i.useReducer)(Yt,Gt),Kn=It(mn,2),Dn=Kn[0],Vn=Kn[1],or=Dn.isFocused,Qr=Dn.isFileDialogActive,ni=(0,i.useRef)(typeof window<"u"&&window.isSecureContext&&Ke&&(0,nt.fV)()),yr=function(){!ni.current&&Qr&&setTimeout(function(){if(dn.current){var ln=dn.current.files;ln.length||(Vn({type:"closeDialog"}),fn())}},300)};(0,i.useEffect)(function(){return window.addEventListener("focus",yr,!1),function(){window.removeEventListener("focus",yr,!1)}},[dn,Qr,fn,ni]);var si=(0,i.useRef)([]),Yr=function(ln){Tt.current&&Tt.current.contains(ln.target)||(ln.preventDefault(),si.current=[])};(0,i.useEffect)(function(){return on&&(document.addEventListener("dragover",nt.w0,!1),document.addEventListener("drop",Yr,!1)),function(){on&&(document.removeEventListener("dragover",nt.w0),document.removeEventListener("drop",Yr))}},[Tt,on]),(0,i.useEffect)(function(){return!vt&&Ut&&Tt.current&&Tt.current.focus(),function(){}},[Tt,Ut,vt]);var Ci=(0,i.useCallback)(function(En){We?We(En):console.error(En)},[We]),Ni=(0,i.useCallback)(function(En){En.preventDefault(),En.persist(),xt(En),si.current=[].concat(Me(si.current),[En.target]),(0,nt.Vq)(En)&&Promise.resolve(Ve(En)).then(function(ln){if(!((0,nt.np)(En)&&!ot)){var jn=ln.length,rr=jn>0&&(0,nt.zo)({files:ln,accept:it,minSize:at,maxSize:lt,multiple:Xt,maxFiles:rt,validator:Ft}),Mr=jn>0&&!rr;Vn({isDragAccept:rr,isDragReject:Mr,isDragActive:!0,type:"setDraggedFiles"}),Rt&&Rt(En)}}).catch(function(ln){return Ci(ln)})},[Ve,Rt,Ci,ot,it,at,lt,Xt,rt,Ft]),fa=(0,i.useCallback)(function(En){En.preventDefault(),En.persist(),xt(En);var ln=(0,nt.Vq)(En);if(ln&&En.dataTransfer)try{En.dataTransfer.dropEffect="copy"}catch{}return ln&&sn&&sn(En),!1},[sn,ot]),ha=(0,i.useCallback)(function(En){En.preventDefault(),En.persist(),xt(En);var ln=si.current.filter(function(rr){return Tt.current&&Tt.current.contains(rr)}),jn=ln.indexOf(En.target);jn!==-1&&ln.splice(jn,1),si.current=ln,!(ln.length>0)&&(Vn({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),(0,nt.Vq)(En)&&rn&&rn(En))},[Tt,rn,ot]),Ca=(0,i.useCallback)(function(En,ln){var jn=[],rr=[];En.forEach(function(Mr){var Ir=(0,nt.dR)(Mr,it),Zr=It(Ir,2),lr=Zr[0],Jr=Zr[1],pi=(0,nt.XT)(Mr,at,lt),Ri=It(pi,2),Ki=Ri[0],ia=Ri[1],Da=Ft?Ft(Mr):null;if(lr&&Ki&&!Da)jn.push(Mr);else{var to=[Jr,ia];Da&&(to=to.concat(Da)),rr.push({file:Mr,errors:to.filter(function(ao){return ao})})}}),(!Xt&&jn.length>1||Xt&&rt>=1&&jn.length>rt)&&(jn.forEach(function(Mr){rr.push({file:Mr,errors:[nt.dX]})}),jn.splice(0)),Vn({acceptedFiles:jn,fileRejections:rr,type:"setFiles"}),Jn&&Jn(jn,rr,ln),rr.length>0&&st&&st(rr,ln),jn.length>0&&ze&&ze(jn,ln)},[Vn,Xt,it,at,lt,rt,Jn,ze,st,Ft]),li=(0,i.useCallback)(function(En){En.preventDefault(),En.persist(),xt(En),si.current=[],(0,nt.Vq)(En)&&Promise.resolve(Ve(En)).then(function(ln){(0,nt.np)(En)&&!ot||Ca(ln,En)}).catch(function(ln){return Ci(ln)}),Vn({type:"reset"})},[Ve,Ca,Ci,ot]),la=(0,i.useCallback)(function(){if(ni.current){Vn({type:"openDialog"}),vn();var En={multiple:Xt,types:qt};window.showOpenFilePicker(En).then(function(ln){return Ve(ln)}).then(function(ln){Ca(ln,null),Vn({type:"closeDialog"})}).catch(function(ln){(0,nt.PQ)(ln)?(fn(ln),Vn({type:"closeDialog"})):(0,nt.c_)(ln)?(ni.current=!1,dn.current?(dn.current.value=null,dn.current.click()):Ci(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):Ci(ln)});return}dn.current&&(Vn({type:"openDialog"}),vn(),dn.current.value=null,dn.current.click())},[Vn,vn,fn,Ke,Ca,Ci,qt,Xt]),Oa=(0,i.useCallback)(function(En){!Tt.current||!Tt.current.isEqualNode(En.target)||(En.key===" "||En.key==="Enter"||En.keyCode===32||En.keyCode===13)&&(En.preventDefault(),la())},[Tt,la]),wa=(0,i.useCallback)(function(){Vn({type:"focus"})},[]),vo=(0,i.useCallback)(function(){Vn({type:"blur"})},[]),Qn=(0,i.useCallback)(function(){Tn||((0,nt.DF)()?setTimeout(la,0):la())},[Tn,la]),_r=function(ln){return vt?null:ln},$r=function(ln){return An?null:_r(ln)},Ti=function(ln){return Zt?null:_r(ln)},xt=function(ln){ot&&ln.stopPropagation()},On=(0,i.useMemo)(function(){return function(){var En=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ln=En.refKey,jn=ln===void 0?"ref":ln,rr=En.role,Mr=En.onKeyDown,Ir=En.onFocus,Zr=En.onBlur,lr=En.onClick,Jr=En.onDragEnter,pi=En.onDragOver,Ri=En.onDragLeave,Ki=En.onDrop,ia=ct(En,ae);return je(je(Et({onKeyDown:$r((0,nt.Mj)(Mr,Oa)),onFocus:$r((0,nt.Mj)(Ir,wa)),onBlur:$r((0,nt.Mj)(Zr,vo)),onClick:_r((0,nt.Mj)(lr,Qn)),onDragEnter:Ti((0,nt.Mj)(Jr,Ni)),onDragOver:Ti((0,nt.Mj)(pi,fa)),onDragLeave:Ti((0,nt.Mj)(Ri,ha)),onDrop:Ti((0,nt.Mj)(Ki,li)),role:typeof rr=="string"&&rr!==""?rr:"presentation"},jn,Tt),!vt&&!An?{tabIndex:0}:{}),ia)}},[Tt,Oa,wa,vo,Qn,Ni,fa,ha,li,An,Zt,vt]),Zn=(0,i.useCallback)(function(En){En.stopPropagation()},[]),Ur=(0,i.useMemo)(function(){return function(){var En=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ln=En.refKey,jn=ln===void 0?"ref":ln,rr=En.onChange,Mr=En.onClick,Ir=ct(En,ve),Zr=Et({accept:it,multiple:Xt,type:"file",style:{display:"none"},onChange:_r((0,nt.Mj)(rr,li)),onClick:_r((0,nt.Mj)(Mr,Zn)),tabIndex:-1},jn,dn);return je(je({},Zr),Ir)}},[dn,Kt,Xt,li,vt]);return je(je({},Dn),{},{isFocused:or&&!vt,getRootProps:On,getInputProps:Ur,rootRef:Tt,inputRef:dn,open:_r(la)})}function Yt(Lt,zt){switch(zt.type){case"focus":return je(je({},Lt),{},{isFocused:!0});case"blur":return je(je({},Lt),{},{isFocused:!1});case"openDialog":return je(je({},Gt),{},{isFileDialogActive:!0});case"closeDialog":return je(je({},Lt),{},{isFileDialogActive:!1});case"setDraggedFiles":return je(je({},Lt),{},{isDragActive:zt.isDragActive,isDragAccept:zt.isDragAccept,isDragReject:zt.isDragReject});case"setFiles":return je(je({},Lt),{},{acceptedFiles:zt.acceptedFiles,fileRejections:zt.fileRejections});case"reset":return je({},Gt);default:return Lt}}function Bt(){}},42079:(C,c,t)=>{"use strict";t.d(c,{DF:()=>F,Mj:()=>V,PQ:()=>te,Vq:()=>J,XT:()=>j,c_:()=>ie,dR:()=>W,dX:()=>_,fV:()=>pe,gS:()=>G,jK:()=>A,np:()=>Z,w0:()=>L,zO:()=>ce,zo:()=>X});var i=t(22944);function s(he){return l(he)||v(he)||b(he)||u()}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(he){if(typeof Symbol<"u"&&he[Symbol.iterator]!=null||he["@@iterator"]!=null)return Array.from(he)}function l(he){if(Array.isArray(he))return E(he)}function h(he,me){var _e=Object.keys(he);if(Object.getOwnPropertySymbols){var we=Object.getOwnPropertySymbols(he);me&&(we=we.filter(function(Ge){return Object.getOwnPropertyDescriptor(he,Ge).enumerable})),_e.push.apply(_e,we)}return _e}function p(he){for(var me=1;me<arguments.length;me++){var _e=arguments[me]!=null?arguments[me]:{};me%2?h(Object(_e),!0).forEach(function(we){d(he,we,_e[we])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(_e)):h(Object(_e)).forEach(function(we){Object.defineProperty(he,we,Object.getOwnPropertyDescriptor(_e,we))})}return he}function d(he,me,_e){return me in he?Object.defineProperty(he,me,{value:_e,enumerable:!0,configurable:!0,writable:!0}):he[me]=_e,he}function f(he){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(me){return typeof me}:function(me){return me&&typeof Symbol=="function"&&me.constructor===Symbol&&me!==Symbol.prototype?"symbol":typeof me},f(he)}function g(he,me){return w(he)||S(he,me)||b(he,me)||y()}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(he,me){if(he){if(typeof he=="string")return E(he,me);var _e=Object.prototype.toString.call(he).slice(8,-1);if(_e==="Object"&&he.constructor&&(_e=he.constructor.name),_e==="Map"||_e==="Set")return Array.from(he);if(_e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_e))return E(he,me)}}function E(he,me){(me==null||me>he.length)&&(me=he.length);for(var _e=0,we=new Array(me);_e<me;_e++)we[_e]=he[_e];return we}function S(he,me){var _e=he==null?null:typeof Symbol<"u"&&he[Symbol.iterator]||he["@@iterator"];if(_e!=null){var we=[],Ge=!0,ht=!1,nt,Re;try{for(_e=_e.call(he);!(Ge=(nt=_e.next()).done)&&(we.push(nt.value),!(me&&we.length===me));Ge=!0);}catch(ue){ht=!0,Re=ue}finally{try{!Ge&&_e.return!=null&&_e.return()}finally{if(ht)throw Re}}return we}}function w(he){if(Array.isArray(he))return he}var x="file-invalid-type",P="file-too-large",R="file-too-small",T="too-many-files",A={FileInvalidType:x,FileTooLarge:P,FileTooSmall:R,TooManyFiles:T},I=function(me){me=Array.isArray(me)&&me.length===1?me[0]:me;var _e=Array.isArray(me)?"one of ".concat(me.join(", ")):me;return{code:x,message:"File type must be ".concat(_e)}},N=function(me){return{code:P,message:"File is larger than ".concat(me," ").concat(me===1?"byte":"bytes")}},K=function(me){return{code:R,message:"File is smaller than ".concat(me," ").concat(me===1?"byte":"bytes")}},_={code:T,message:"Too many files"};function W(he,me){var _e=he.type==="application/x-moz-file"||(0,i.Z)(he,me);return[_e,_e?null:I(me)]}function j(he,me,_e){if(re(he.size))if(re(me)&&re(_e)){if(he.size>_e)return[!1,N(_e)];if(he.size<me)return[!1,K(me)]}else{if(re(me)&&he.size<me)return[!1,K(me)];if(re(_e)&&he.size>_e)return[!1,N(_e)]}return[!0,null]}function re(he){return he!=null}function X(he){var me=he.files,_e=he.accept,we=he.minSize,Ge=he.maxSize,ht=he.multiple,nt=he.maxFiles,Re=he.validator;return!ht&&me.length>1||ht&&nt>=1&&me.length>nt?!1:me.every(function(ue){var ae=W(ue,_e),ve=g(ae,1),Me=ve[0],Ye=j(ue,we,Ge),qe=g(Ye,1),At=qe[0],It=Re?Re(ue):null;return Me&&At&&!It})}function Z(he){return typeof he.isPropagationStopped=="function"?he.isPropagationStopped():typeof he.cancelBubble<"u"?he.cancelBubble:!1}function J(he){return he.dataTransfer?Array.prototype.some.call(he.dataTransfer.types,function(me){return me==="Files"||me==="application/x-moz-file"}):!!he.target&&!!he.target.files}function q(he){return f(he)==="object"&&he!==null&&he.kind==="file"}function L(he){he.preventDefault()}function $(he){return he.indexOf("MSIE")!==-1||he.indexOf("Trident/")!==-1}function k(he){return he.indexOf("Edge/")!==-1}function F(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return $(he)||k(he)}function V(){for(var he=arguments.length,me=new Array(he),_e=0;_e<he;_e++)me[_e]=arguments[_e];return function(we){for(var Ge=arguments.length,ht=new Array(Ge>1?Ge-1:0),nt=1;nt<Ge;nt++)ht[nt-1]=arguments[nt];return me.some(function(Re){return!Z(we)&&Re&&Re.apply(void 0,[we].concat(ht)),Z(we)})}}function pe(){return"showOpenFilePicker"in window}function ce(he){if(re(he)){var me=Object.entries(he).filter(function(_e){var we=g(_e,2),Ge=we[0],ht=we[1],nt=!0;return fe(Ge)||(console.warn('Skipped "'.concat(Ge,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),nt=!1),(!Array.isArray(ht)||!ht.every(Se))&&(console.warn('Skipped "'.concat(Ge,'" because an invalid file extension was provided.')),nt=!1),nt}).reduce(function(_e,we){var Ge=g(we,2),ht=Ge[0],nt=Ge[1];return p(p({},_e),{},d({},ht,nt))},{});return[{description:"Files",accept:me}]}return he}function G(he){if(re(he))return Object.entries(he).reduce(function(me,_e){var we=g(_e,2),Ge=we[0],ht=we[1];return[].concat(s(me),[Ge],s(ht))},[]).filter(function(me){return fe(me)||Se(me)}).join(",")}function te(he){return he instanceof DOMException&&(he.name==="AbortError"||he.code===he.ABORT_ERR)}function ie(he){return he instanceof DOMException&&(he.name==="SecurityError"||he.code===he.SECURITY_ERR)}function fe(he){return he==="audio/*"||he==="video/*"||he==="image/*"||he==="text/*"||/\w+\/[-+.\w]+/g.test(he)}function Se(he){return/^.*\.[\w]+$/.test(he)}},54661:(C,c,t)=>{"use strict";function i(W){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},i(W)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var s=g(t(27702)),u=g(t(51616)),v=t(94618),l=t(65325),h=t(91764),p=t(27297),d=t(30468),f=g(t(95047));function g(W){return W&&W.__esModule?W:{default:W}}function y(W,j){var re=Object.keys(W);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(W);j&&(X=X.filter(function(Z){return Object.getOwnPropertyDescriptor(W,Z).enumerable})),re.push.apply(re,X)}return re}function b(W){for(var j=1;j<arguments.length;j++){var re=arguments[j]!=null?arguments[j]:{};j%2?y(Object(re),!0).forEach(function(X){K(W,X,re[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(re)):y(Object(re)).forEach(function(X){Object.defineProperty(W,X,Object.getOwnPropertyDescriptor(re,X))})}return W}function E(W,j){if(!(W instanceof j))throw new TypeError("Cannot call a class as a function")}function S(W,j){for(var re=0;re<j.length;re++){var X=j[re];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(W,X.key,X)}}function w(W,j,re){return j&&S(W.prototype,j),re&&S(W,re),Object.defineProperty(W,"prototype",{writable:!1}),W}function x(W,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(j&&j.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),Object.defineProperty(W,"prototype",{writable:!1}),j&&P(W,j)}function P(W,j){return P=Object.setPrototypeOf||function(X,Z){return X.__proto__=Z,X},P(W,j)}function R(W){var j=I();return function(){var X=N(W),Z;if(j){var J=N(this).constructor;Z=Reflect.construct(X,arguments,J)}else Z=X.apply(this,arguments);return T(this,Z)}}function T(W,j){if(j&&(i(j)==="object"||typeof j=="function"))return j;if(j!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(W)}function A(W){if(W===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}function I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N(W){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(re){return re.__proto__||Object.getPrototypeOf(re)},N(W)}function K(W,j,re){return j in W?Object.defineProperty(W,j,{value:re,enumerable:!0,configurable:!0,writable:!0}):W[j]=re,W}var _=function(W){x(re,W);var j=R(re);function re(){var X;E(this,re);for(var Z=arguments.length,J=new Array(Z),q=0;q<Z;q++)J[q]=arguments[q];return X=j.call.apply(j,[this].concat(J)),K(A(X),"state",{resizing:null,dragging:null,className:""}),K(A(X),"elementRef",s.default.createRef()),K(A(X),"onDragStart",function(L,$){var k=$.node,F=X.props,V=F.onDragStart,pe=F.transformScale;if(V){var ce={top:0,left:0},G=k.offsetParent;if(G){var te=G.getBoundingClientRect(),ie=k.getBoundingClientRect(),fe=ie.left/pe,Se=te.left/pe,he=ie.top/pe,me=te.top/pe;ce.left=fe-Se+G.scrollLeft,ce.top=he-me+G.scrollTop,X.setState({dragging:ce});var _e=(0,p.calcXY)(X.getPositionParams(),ce.top,ce.left,X.props.w,X.props.h),we=_e.x,Ge=_e.y;return V.call(A(X),X.props.i,we,Ge,{e:L,node:k,newPosition:ce})}}}),K(A(X),"onDrag",function(L,$){var k=$.node,F=$.deltaX,V=$.deltaY,pe=X.props.onDrag;if(pe){if(!X.state.dragging)throw new Error("onDrag called before onDragStart.");var ce=X.state.dragging.top+V,G=X.state.dragging.left+F,te=X.props,ie=te.isBounded,fe=te.i,Se=te.w,he=te.h,me=te.containerWidth,_e=X.getPositionParams();if(ie){var we=k.offsetParent;if(we){var Ge=X.props,ht=Ge.margin,nt=Ge.rowHeight,Re=we.clientHeight-(0,p.calcGridItemWHPx)(he,nt,ht[1]);ce=(0,p.clamp)(ce,0,Re);var ue=(0,p.calcGridColWidth)(_e),ae=me-(0,p.calcGridItemWHPx)(Se,ue,ht[0]);G=(0,p.clamp)(G,0,ae)}}var ve={top:ce,left:G};X.setState({dragging:ve});var Me=(0,p.calcXY)(_e,ce,G,Se,he),Ye=Me.x,qe=Me.y;return pe.call(A(X),fe,Ye,qe,{e:L,node:k,newPosition:ve})}}),K(A(X),"onDragStop",function(L,$){var k=$.node,F=X.props.onDragStop;if(F){if(!X.state.dragging)throw new Error("onDragEnd called before onDragStart.");var V=X.props,pe=V.w,ce=V.h,G=V.i,te=X.state.dragging,ie=te.left,fe=te.top,Se={top:fe,left:ie};X.setState({dragging:null});var he=(0,p.calcXY)(X.getPositionParams(),fe,ie,pe,ce),me=he.x,_e=he.y;return F.call(A(X),G,me,_e,{e:L,node:k,newPosition:Se})}}),K(A(X),"onResizeStop",function(L,$){X.onResizeHandler(L,$,"onResizeStop")}),K(A(X),"onResizeStart",function(L,$){X.onResizeHandler(L,$,"onResizeStart")}),K(A(X),"onResize",function(L,$){X.onResizeHandler(L,$,"onResize")}),X}return w(re,[{key:"shouldComponentUpdate",value:function(Z,J){if(this.props.children!==Z.children||this.props.droppingPosition!==Z.droppingPosition)return!0;var q=(0,p.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),L=(0,p.calcGridItemPosition)(this.getPositionParams(Z),Z.x,Z.y,Z.w,Z.h,J);return!(0,h.fastPositionEqual)(q,L)||this.props.useCSSTransforms!==Z.useCSSTransforms}},{key:"componentDidMount",value:function(){this.moveDroppingItem({})}},{key:"componentDidUpdate",value:function(Z){this.moveDroppingItem(Z)}},{key:"moveDroppingItem",value:function(Z){var J=this.props.droppingPosition;if(J){var q=this.elementRef.current;if(q){var L=Z.droppingPosition||{left:0,top:0},$=this.state.dragging,k=$&&J.left!==L.left||J.top!==L.top;if(!$)this.onDragStart(J.e,{node:q,deltaX:J.left,deltaY:J.top});else if(k){var F=J.left-$.left,V=J.top-$.top;this.onDrag(J.e,{node:q,deltaX:F,deltaY:V})}}}}},{key:"getPositionParams",value:function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:Z.cols,containerPadding:Z.containerPadding,containerWidth:Z.containerWidth,margin:Z.margin,maxRows:Z.maxRows,rowHeight:Z.rowHeight}}},{key:"createStyle",value:function(Z){var J=this.props,q=J.usePercentages,L=J.containerWidth,$=J.useCSSTransforms,k;return $?k=(0,h.setTransform)(Z):(k=(0,h.setTopLeft)(Z),q&&(k.left=(0,h.perc)(Z.left/L),k.width=(0,h.perc)(Z.width/L))),k}},{key:"mixinDraggable",value:function(Z,J){return s.default.createElement(v.DraggableCore,{disabled:!J,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},Z)}},{key:"mixinResizable",value:function(Z,J,q){var L=this.props,$=L.cols,k=L.x,F=L.minW,V=L.minH,pe=L.maxW,ce=L.maxH,G=L.transformScale,te=L.resizeHandles,ie=L.resizeHandle,fe=this.getPositionParams(),Se=(0,p.calcGridItemPosition)(fe,0,0,$-k,0).width,he=(0,p.calcGridItemPosition)(fe,0,0,F,V),me=(0,p.calcGridItemPosition)(fe,0,0,pe,ce),_e=[he.width,he.height],we=[Math.min(me.width,Se),Math.min(me.height,1/0)];return s.default.createElement(l.Resizable,{draggableOpts:{disabled:!q},className:q?void 0:"react-resizable-hide",width:J.width,height:J.height,minConstraints:_e,maxConstraints:we,onResizeStop:this.onResizeStop,onResizeStart:this.onResizeStart,onResize:this.onResize,transformScale:G,resizeHandles:te,handle:ie},Z)}},{key:"onResizeHandler",value:function(Z,J,q){var L=J.node,$=J.size,k=this.props[q];if(k){var F=this.props,V=F.cols,pe=F.x,ce=F.y,G=F.i,te=F.maxH,ie=F.minH,fe=this.props,Se=fe.minW,he=fe.maxW,me=(0,p.calcWH)(this.getPositionParams(),$.width,$.height,pe,ce),_e=me.w,we=me.h;Se=Math.max(Se,1),he=Math.min(he,V-pe),_e=(0,p.clamp)(_e,Se,he),we=(0,p.clamp)(we,ie,te),this.setState({resizing:q==="onResizeStop"?null:$}),k.call(this,G,_e,we,{e:Z,node:L,size:$})}}},{key:"render",value:function(){var Z=this.props,J=Z.x,q=Z.y,L=Z.w,$=Z.h,k=Z.isDraggable,F=Z.isResizable,V=Z.droppingPosition,pe=Z.useCSSTransforms,ce=(0,p.calcGridItemPosition)(this.getPositionParams(),J,q,L,$,this.state),G=s.default.Children.only(this.props.children),te=s.default.cloneElement(G,{ref:this.elementRef,className:(0,f.default)("react-grid-item",G.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":k,"react-draggable-dragging":!!this.state.dragging,dropping:!!V,cssTransforms:pe}),style:b(b(b({},this.props.style),G.props.style),this.createStyle(ce))});return te=this.mixinResizable(te,ce,F),te=this.mixinDraggable(te,k),te}}]),re}(s.default.Component);c.default=_,K(_,"propTypes",{children:u.default.element,cols:u.default.number.isRequired,containerWidth:u.default.number.isRequired,rowHeight:u.default.number.isRequired,margin:u.default.array.isRequired,maxRows:u.default.number.isRequired,containerPadding:u.default.array.isRequired,x:u.default.number.isRequired,y:u.default.number.isRequired,w:u.default.number.isRequired,h:u.default.number.isRequired,minW:function(j,re){var X=j[re];if(typeof X!="number")return new Error("minWidth not Number");if(X>j.w||X>j.maxW)return new Error("minWidth larger than item width/maxWidth")},maxW:function(j,re){var X=j[re];if(typeof X!="number")return new Error("maxWidth not Number");if(X<j.w||X<j.minW)return new Error("maxWidth smaller than item width/minWidth")},minH:function(j,re){var X=j[re];if(typeof X!="number")return new Error("minHeight not Number");if(X>j.h||X>j.maxH)return new Error("minHeight larger than item height/maxHeight")},maxH:function(j,re){var X=j[re];if(typeof X!="number")return new Error("maxHeight not Number");if(X<j.h||X<j.minH)return new Error("maxHeight smaller than item height/minHeight")},i:u.default.string.isRequired,resizeHandles:d.resizeHandleAxesType,resizeHandle:d.resizeHandleType,onDragStop:u.default.func,onDragStart:u.default.func,onDrag:u.default.func,onResizeStop:u.default.func,onResizeStart:u.default.func,onResize:u.default.func,isDraggable:u.default.bool.isRequired,isResizable:u.default.bool.isRequired,isBounded:u.default.bool.isRequired,static:u.default.bool,useCSSTransforms:u.default.bool.isRequired,transformScale:u.default.number,className:u.default.string,handle:u.default.string,cancel:u.default.string,droppingPosition:u.default.shape({e:u.default.object.isRequired,left:u.default.number.isRequired,top:u.default.number.isRequired})}),K(_,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1})},46336:(C,c,t)=>{"use strict";function i(ce){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},i(ce)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var s=y(t(27702)),u=f(t(20049)),v=f(t(95047)),l=t(91764),h=t(27297),p=f(t(54661)),d=f(t(30468));function f(ce){return ce&&ce.__esModule?ce:{default:ce}}function g(ce){if(typeof WeakMap!="function")return null;var G=new WeakMap,te=new WeakMap;return(g=function(fe){return fe?te:G})(ce)}function y(ce,G){if(!G&&ce&&ce.__esModule)return ce;if(ce===null||i(ce)!=="object"&&typeof ce!="function")return{default:ce};var te=g(G);if(te&&te.has(ce))return te.get(ce);var ie={},fe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Se in ce)if(Se!=="default"&&Object.prototype.hasOwnProperty.call(ce,Se)){var he=fe?Object.getOwnPropertyDescriptor(ce,Se):null;he&&(he.get||he.set)?Object.defineProperty(ie,Se,he):ie[Se]=ce[Se]}return ie.default=ce,te&&te.set(ce,ie),ie}function b(ce){return w(ce)||S(ce)||A(ce)||E()}function E(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S(ce){if(typeof Symbol<"u"&&ce[Symbol.iterator]!=null||ce["@@iterator"]!=null)return Array.from(ce)}function w(ce){if(Array.isArray(ce))return I(ce)}function x(ce,G){var te=Object.keys(ce);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(ce);G&&(ie=ie.filter(function(fe){return Object.getOwnPropertyDescriptor(ce,fe).enumerable})),te.push.apply(te,ie)}return te}function P(ce){for(var G=1;G<arguments.length;G++){var te=arguments[G]!=null?arguments[G]:{};G%2?x(Object(te),!0).forEach(function(ie){k(ce,ie,te[ie])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ce,Object.getOwnPropertyDescriptors(te)):x(Object(te)).forEach(function(ie){Object.defineProperty(ce,ie,Object.getOwnPropertyDescriptor(te,ie))})}return ce}function R(ce,G){return K(ce)||N(ce,G)||A(ce,G)||T()}function T(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(ce,G){if(ce){if(typeof ce=="string")return I(ce,G);var te=Object.prototype.toString.call(ce).slice(8,-1);if(te==="Object"&&ce.constructor&&(te=ce.constructor.name),te==="Map"||te==="Set")return Array.from(ce);if(te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return I(ce,G)}}function I(ce,G){(G==null||G>ce.length)&&(G=ce.length);for(var te=0,ie=new Array(G);te<G;te++)ie[te]=ce[te];return ie}function N(ce,G){var te=ce==null?null:typeof Symbol<"u"&&ce[Symbol.iterator]||ce["@@iterator"];if(te!=null){var ie=[],fe=!0,Se=!1,he,me;try{for(te=te.call(ce);!(fe=(he=te.next()).done)&&(ie.push(he.value),!(G&&ie.length===G));fe=!0);}catch(_e){Se=!0,me=_e}finally{try{!fe&&te.return!=null&&te.return()}finally{if(Se)throw me}}return ie}}function K(ce){if(Array.isArray(ce))return ce}function _(ce,G){if(!(ce instanceof G))throw new TypeError("Cannot call a class as a function")}function W(ce,G){for(var te=0;te<G.length;te++){var ie=G[te];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(ce,ie.key,ie)}}function j(ce,G,te){return G&&W(ce.prototype,G),te&&W(ce,te),Object.defineProperty(ce,"prototype",{writable:!1}),ce}function re(ce,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");ce.prototype=Object.create(G&&G.prototype,{constructor:{value:ce,writable:!0,configurable:!0}}),Object.defineProperty(ce,"prototype",{writable:!1}),G&&X(ce,G)}function X(ce,G){return X=Object.setPrototypeOf||function(ie,fe){return ie.__proto__=fe,ie},X(ce,G)}function Z(ce){var G=L();return function(){var ie=$(ce),fe;if(G){var Se=$(this).constructor;fe=Reflect.construct(ie,arguments,Se)}else fe=ie.apply(this,arguments);return J(this,fe)}}function J(ce,G){if(G&&(i(G)==="object"||typeof G=="function"))return G;if(G!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q(ce)}function q(ce){if(ce===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce}function L(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $(ce){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(te){return te.__proto__||Object.getPrototypeOf(te)},$(ce)}function k(ce,G,te){return G in ce?Object.defineProperty(ce,G,{value:te,enumerable:!0,configurable:!0,writable:!0}):ce[G]=te,ce}var F="react-grid-layout",V=!1;try{V=/firefox/i.test(navigator.userAgent)}catch{}var pe=function(ce){re(te,ce);var G=Z(te);function te(){var ie;_(this,te);for(var fe=arguments.length,Se=new Array(fe),he=0;he<fe;he++)Se[he]=arguments[he];return ie=G.call.apply(G,[this].concat(Se)),k(q(ie),"state",{activeDrag:null,layout:(0,l.synchronizeLayoutWithChildren)(ie.props.layout,ie.props.children,ie.props.cols,(0,l.compactType)(ie.props),ie.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,droppingDOMNode:null,children:[]}),k(q(ie),"dragEnterCounter",0),k(q(ie),"onDragStart",function(me,_e,we,Ge){var ht=Ge.e,nt=Ge.node,Re=ie.state.layout,ue=(0,l.getLayoutItem)(Re,me);if(ue)return ie.setState({oldDragItem:(0,l.cloneLayoutItem)(ue),oldLayout:Re}),ie.props.onDragStart(Re,ue,ue,null,ht,nt)}),k(q(ie),"onDrag",function(me,_e,we,Ge){var ht=Ge.e,nt=Ge.node,Re=ie.state.oldDragItem,ue=ie.state.layout,ae=ie.props,ve=ae.cols,Me=ae.allowOverlap,Ye=ae.preventCollision,qe=(0,l.getLayoutItem)(ue,me);if(qe){var At={w:qe.w,h:qe.h,x:qe.x,y:qe.y,placeholder:!0,i:me},It=!0;ue=(0,l.moveElement)(ue,qe,_e,we,It,Ye,(0,l.compactType)(ie.props),ve,Me),ie.props.onDrag(ue,Re,qe,At,ht,nt),ie.setState({layout:Me?ue:(0,l.compact)(ue,(0,l.compactType)(ie.props),ve),activeDrag:At})}}),k(q(ie),"onDragStop",function(me,_e,we,Ge){var ht=Ge.e,nt=Ge.node;if(ie.state.activeDrag){var Re=ie.state.oldDragItem,ue=ie.state.layout,ae=ie.props,ve=ae.cols,Me=ae.preventCollision,Ye=ae.allowOverlap,qe=(0,l.getLayoutItem)(ue,me);if(qe){var At=!0;ue=(0,l.moveElement)(ue,qe,_e,we,At,Me,(0,l.compactType)(ie.props),ve,Ye),ie.props.onDragStop(ue,Re,qe,null,ht,nt);var It=Ye?ue:(0,l.compact)(ue,(0,l.compactType)(ie.props),ve),Ce=ie.state.oldLayout;ie.setState({activeDrag:null,layout:It,oldDragItem:null,oldLayout:null}),ie.onLayoutMaybeChanged(It,Ce)}}}),k(q(ie),"onResizeStart",function(me,_e,we,Ge){var ht=Ge.e,nt=Ge.node,Re=ie.state.layout,ue=(0,l.getLayoutItem)(Re,me);ue&&(ie.setState({oldResizeItem:(0,l.cloneLayoutItem)(ue),oldLayout:ie.state.layout}),ie.props.onResizeStart(Re,ue,ue,null,ht,nt))}),k(q(ie),"onResize",function(me,_e,we,Ge){var ht=Ge.e,nt=Ge.node,Re=ie.state,ue=Re.layout,ae=Re.oldResizeItem,ve=ie.props,Me=ve.cols,Ye=ve.preventCollision,qe=ve.allowOverlap,At=(0,l.withLayoutItem)(ue,me,function(tt){var ke;if(Ye&&!qe){var Oe=(0,l.getAllCollisions)(ue,P(P({},tt),{},{w:_e,h:we})).filter(function(ct){return ct.i!==tt.i});if(ke=Oe.length>0,ke){var je=1/0,Et=1/0;Oe.forEach(function(ct){ct.x>tt.x&&(je=Math.min(je,ct.x)),ct.y>tt.y&&(Et=Math.min(Et,ct.y))}),Number.isFinite(je)&&(tt.w=je-tt.x),Number.isFinite(Et)&&(tt.h=Et-tt.y)}}return ke||(tt.w=_e,tt.h=we),tt}),It=R(At,2),Ce=It[0],Ae=It[1];if(Ae){var $e={w:Ae.w,h:Ae.h,x:Ae.x,y:Ae.y,static:!0,i:me};ie.props.onResize(Ce,ae,Ae,$e,ht,nt),ie.setState({layout:qe?Ce:(0,l.compact)(Ce,(0,l.compactType)(ie.props),Me),activeDrag:$e})}}),k(q(ie),"onResizeStop",function(me,_e,we,Ge){var ht=Ge.e,nt=Ge.node,Re=ie.state,ue=Re.layout,ae=Re.oldResizeItem,ve=ie.props,Me=ve.cols,Ye=ve.allowOverlap,qe=(0,l.getLayoutItem)(ue,me);ie.props.onResizeStop(ue,ae,qe,null,ht,nt);var At=Ye?ue:(0,l.compact)(ue,(0,l.compactType)(ie.props),Me),It=ie.state.oldLayout;ie.setState({activeDrag:null,layout:At,oldResizeItem:null,oldLayout:null}),ie.onLayoutMaybeChanged(At,It)}),k(q(ie),"onDragOver",function(me){var _e;if(me.preventDefault(),me.stopPropagation(),V&&!((_e=me.nativeEvent.target)!==null&&_e!==void 0&&_e.classList.contains(F)))return!1;var we=ie.props,Ge=we.droppingItem,ht=we.onDropDragOver,nt=we.margin,Re=we.cols,ue=we.rowHeight,ae=we.maxRows,ve=we.width,Me=we.containerPadding,Ye=we.transformScale,qe=ht?.(me);if(qe===!1)return ie.state.droppingDOMNode&&ie.removeDroppingPlaceholder(),!1;var At=P(P({},Ge),qe),It=ie.state.layout,Ce=me.nativeEvent,Ae=Ce.layerX,$e=Ce.layerY,tt={left:Ae/Ye,top:$e/Ye,e:me};if(ie.state.droppingDOMNode){if(ie.state.droppingPosition){var je=ie.state.droppingPosition,Et=je.left,ct=je.top,ut=Et!=Ae||ct!=$e;ut&&ie.setState({droppingPosition:tt})}}else{var ke={cols:Re,margin:nt,maxRows:ae,rowHeight:ue,containerWidth:ve,containerPadding:Me||nt},Oe=(0,h.calcXY)(ke,$e,Ae,At.w,At.h);ie.setState({droppingDOMNode:s.createElement("div",{key:At.i}),droppingPosition:tt,layout:[].concat(b(It),[P(P({},At),{},{x:Oe.x,y:Oe.y,static:!1,isDraggable:!0})])})}}),k(q(ie),"removeDroppingPlaceholder",function(){var me=ie.props,_e=me.droppingItem,we=me.cols,Ge=ie.state.layout,ht=(0,l.compact)(Ge.filter(function(nt){return nt.i!==_e.i}),(0,l.compactType)(ie.props),we);ie.setState({layout:ht,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),k(q(ie),"onDragLeave",function(me){me.preventDefault(),me.stopPropagation(),ie.dragEnterCounter--,ie.dragEnterCounter===0&&ie.removeDroppingPlaceholder()}),k(q(ie),"onDragEnter",function(me){me.preventDefault(),me.stopPropagation(),ie.dragEnterCounter++}),k(q(ie),"onDrop",function(me){me.preventDefault(),me.stopPropagation();var _e=ie.props.droppingItem,we=ie.state.layout,Ge=we.find(function(ht){return ht.i===_e.i});ie.dragEnterCounter=0,ie.removeDroppingPlaceholder(),ie.props.onDrop(we,Ge,me)}),ie}return j(te,[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}},{key:"shouldComponentUpdate",value:function(fe,Se){return this.props.children!==fe.children||!(0,l.fastRGLPropsEqual)(this.props,fe,u.default)||this.state.activeDrag!==Se.activeDrag||this.state.mounted!==Se.mounted||this.state.droppingPosition!==Se.droppingPosition}},{key:"componentDidUpdate",value:function(fe,Se){if(!this.state.activeDrag){var he=this.state.layout,me=Se.layout;this.onLayoutMaybeChanged(he,me)}}},{key:"containerHeight",value:function(){if(this.props.autoSize){var fe=(0,l.bottom)(this.state.layout),Se=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return fe*this.props.rowHeight+(fe-1)*this.props.margin[1]+Se*2+"px"}}},{key:"onLayoutMaybeChanged",value:function(fe,Se){Se||(Se=this.state.layout),(0,u.default)(Se,fe)||this.props.onLayoutChange(fe)}},{key:"placeholder",value:function(){var fe=this.state.activeDrag;if(!fe)return null;var Se=this.props,he=Se.width,me=Se.cols,_e=Se.margin,we=Se.containerPadding,Ge=Se.rowHeight,ht=Se.maxRows,nt=Se.useCSSTransforms,Re=Se.transformScale;return s.createElement(p.default,{w:fe.w,h:fe.h,x:fe.x,y:fe.y,i:fe.i,className:"react-grid-placeholder",containerWidth:he,cols:me,margin:_e,containerPadding:we||_e,maxRows:ht,rowHeight:Ge,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:nt,transformScale:Re},s.createElement("div",null))}},{key:"processGridItem",value:function(fe,Se){if(!(!fe||!fe.key)){var he=(0,l.getLayoutItem)(this.state.layout,String(fe.key));if(!he)return null;var me=this.props,_e=me.width,we=me.cols,Ge=me.margin,ht=me.containerPadding,nt=me.rowHeight,Re=me.maxRows,ue=me.isDraggable,ae=me.isResizable,ve=me.isBounded,Me=me.useCSSTransforms,Ye=me.transformScale,qe=me.draggableCancel,At=me.draggableHandle,It=me.resizeHandles,Ce=me.resizeHandle,Ae=this.state,$e=Ae.mounted,tt=Ae.droppingPosition,ke=typeof he.isDraggable=="boolean"?he.isDraggable:!he.static&&ue,Oe=typeof he.isResizable=="boolean"?he.isResizable:!he.static&&ae,je=he.resizeHandles||It,Et=ke&&ve&&he.isBounded!==!1;return s.createElement(p.default,{containerWidth:_e,cols:we,margin:Ge,containerPadding:ht||Ge,maxRows:Re,rowHeight:nt,cancel:qe,handle:At,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:ke,isResizable:Oe,isBounded:Et,useCSSTransforms:Me&&$e,usePercentages:!$e,transformScale:Ye,w:he.w,h:he.h,x:he.x,y:he.y,i:he.i,minH:he.minH,minW:he.minW,maxH:he.maxH,maxW:he.maxW,static:he.static,droppingPosition:Se?tt:void 0,resizeHandles:je,resizeHandle:Ce},fe)}}},{key:"render",value:function(){var fe=this,Se=this.props,he=Se.className,me=Se.style,_e=Se.isDroppable,we=Se.innerRef,Ge=(0,v.default)(F,he),ht=P({height:this.containerHeight()},me);return s.createElement("div",{ref:we,className:Ge,style:ht,onDrop:_e?this.onDrop:l.noop,onDragLeave:_e?this.onDragLeave:l.noop,onDragEnter:_e?this.onDragEnter:l.noop,onDragOver:_e?this.onDragOver:l.noop},s.Children.map(this.props.children,function(nt){return fe.processGridItem(nt)}),_e&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}],[{key:"getDerivedStateFromProps",value:function(fe,Se){var he;if(Se.activeDrag)return null;if(!(0,u.default)(fe.layout,Se.propsLayout)||fe.compactType!==Se.compactType?he=fe.layout:(0,l.childrenEqual)(fe.children,Se.children)||(he=Se.layout),he){var me=(0,l.synchronizeLayoutWithChildren)(he,fe.children,fe.cols,(0,l.compactType)(fe),fe.allowOverlap);return{layout:me,compactType:fe.compactType,children:fe.children,propsLayout:fe.layout}}return null}}]),te}(s.Component);c.default=pe,k(pe,"displayName","ReactGridLayout"),k(pe,"propTypes",d.default),k(pe,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:l.noop,onDragStart:l.noop,onDrag:l.noop,onDragStop:l.noop,onResizeStart:l.noop,onResize:l.noop,onResizeStop:l.noop,onDrop:l.noop,onDropDragOver:l.noop})},30468:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.resizeHandleType=c.resizeHandleAxesType=c.default=void 0;var i=u(t(51616)),s=u(t(27702));function u(p){return p&&p.__esModule?p:{default:p}}var v=i.default.arrayOf(i.default.oneOf(["s","w","e","n","sw","nw","se","ne"]));c.resizeHandleAxesType=v;var l=i.default.oneOfType([i.default.node,i.default.func]);c.resizeHandleType=l;var h={className:i.default.string,style:i.default.object,width:i.default.number,autoSize:i.default.bool,cols:i.default.number,draggableCancel:i.default.string,draggableHandle:i.default.string,verticalCompact:function(d){d.verticalCompact},compactType:i.default.oneOf(["vertical","horizontal"]),layout:function(d){var f=d.layout;f!==void 0&&t(91764).validateLayout(f,"layout")},margin:i.default.arrayOf(i.default.number),containerPadding:i.default.arrayOf(i.default.number),rowHeight:i.default.number,maxRows:i.default.number,isBounded:i.default.bool,isDraggable:i.default.bool,isResizable:i.default.bool,allowOverlap:i.default.bool,preventCollision:i.default.bool,useCSSTransforms:i.default.bool,transformScale:i.default.number,isDroppable:i.default.bool,resizeHandles:v,resizeHandle:l,onLayoutChange:i.default.func,onDragStart:i.default.func,onDrag:i.default.func,onDragStop:i.default.func,onResizeStart:i.default.func,onResize:i.default.func,onResizeStop:i.default.func,onDrop:i.default.func,droppingItem:i.default.shape({i:i.default.string.isRequired,w:i.default.number.isRequired,h:i.default.number.isRequired}),children:function(d,f){var g=d[f],y={};s.default.Children.forEach(g,function(b){if(b?.key!=null){if(y[b.key])throw new Error('Duplicate child key "'+b.key+'" found! This will cause problems in ReactGridLayout.');y[b.key]=!0}})},innerRef:i.default.any};c.default=h},30080:(C,c,t)=>{"use strict";var i;function s(L){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},s(L)}i={value:!0},c.default=void 0;var u=b(t(27702)),v=g(t(51616)),l=g(t(20049)),h=t(91764),p=t(70430),d=g(t(46336)),f=["breakpoint","breakpoints","cols","layouts","margin","containerPadding","onBreakpointChange","onLayoutChange","onWidthChange"];function g(L){return L&&L.__esModule?L:{default:L}}function y(L){if(typeof WeakMap!="function")return null;var $=new WeakMap,k=new WeakMap;return(y=function(V){return V?k:$})(L)}function b(L,$){if(!$&&L&&L.__esModule)return L;if(L===null||s(L)!=="object"&&typeof L!="function")return{default:L};var k=y($);if(k&&k.has(L))return k.get(L);var F={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var pe in L)if(pe!=="default"&&Object.prototype.hasOwnProperty.call(L,pe)){var ce=V?Object.getOwnPropertyDescriptor(L,pe):null;ce&&(ce.get||ce.set)?Object.defineProperty(F,pe,ce):F[pe]=L[pe]}return F.default=L,k&&k.set(L,F),F}function E(){return E=Object.assign||function(L){for(var $=1;$<arguments.length;$++){var k=arguments[$];for(var F in k)Object.prototype.hasOwnProperty.call(k,F)&&(L[F]=k[F])}return L},E.apply(this,arguments)}function S(L,$){if(L==null)return{};var k=w(L,$),F,V;if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(L);for(V=0;V<pe.length;V++)F=pe[V],!($.indexOf(F)>=0)&&Object.prototype.propertyIsEnumerable.call(L,F)&&(k[F]=L[F])}return k}function w(L,$){if(L==null)return{};var k={},F=Object.keys(L),V,pe;for(pe=0;pe<F.length;pe++)V=F[pe],!($.indexOf(V)>=0)&&(k[V]=L[V]);return k}function x(L,$){var k=Object.keys(L);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(L);$&&(F=F.filter(function(V){return Object.getOwnPropertyDescriptor(L,V).enumerable})),k.push.apply(k,F)}return k}function P(L){for(var $=1;$<arguments.length;$++){var k=arguments[$]!=null?arguments[$]:{};$%2?x(Object(k),!0).forEach(function(F){X(L,F,k[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(k)):x(Object(k)).forEach(function(F){Object.defineProperty(L,F,Object.getOwnPropertyDescriptor(k,F))})}return L}function R(L,$){if(!(L instanceof $))throw new TypeError("Cannot call a class as a function")}function T(L,$){for(var k=0;k<$.length;k++){var F=$[k];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(L,F.key,F)}}function A(L,$,k){return $&&T(L.prototype,$),k&&T(L,k),Object.defineProperty(L,"prototype",{writable:!1}),L}function I(L,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create($&&$.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),$&&N(L,$)}function N(L,$){return N=Object.setPrototypeOf||function(F,V){return F.__proto__=V,F},N(L,$)}function K(L){var $=j();return function(){var F=re(L),V;if($){var pe=re(this).constructor;V=Reflect.construct(F,arguments,pe)}else V=F.apply(this,arguments);return _(this,V)}}function _(L,$){if($&&(s($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W(L)}function W(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function j(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function re(L){return re=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)},re(L)}function X(L,$,k){return $ in L?Object.defineProperty(L,$,{value:k,enumerable:!0,configurable:!0,writable:!0}):L[$]=k,L}var Z=function($){return Object.prototype.toString.call($)};function J(L,$){return L==null?null:Array.isArray(L)?L:L[$]}var q=function(L){I(k,L);var $=K(k);function k(){var F;R(this,k);for(var V=arguments.length,pe=new Array(V),ce=0;ce<V;ce++)pe[ce]=arguments[ce];return F=$.call.apply($,[this].concat(pe)),X(W(F),"state",F.generateInitialState()),X(W(F),"onLayoutChange",function(G){F.props.onLayoutChange(G,P(P({},F.props.layouts),{},X({},F.state.breakpoint,G)))}),F}return A(k,[{key:"generateInitialState",value:function(){var V=this.props,pe=V.width,ce=V.breakpoints,G=V.layouts,te=V.cols,ie=(0,p.getBreakpointFromWidth)(ce,pe),fe=(0,p.getColsFromBreakpoint)(ie,te),Se=this.props.verticalCompact===!1?null:this.props.compactType,he=(0,p.findOrGenerateResponsiveLayout)(G,ce,ie,ie,fe,Se);return{layout:he,breakpoint:ie,cols:fe}}},{key:"componentDidUpdate",value:function(V){(this.props.width!=V.width||this.props.breakpoint!==V.breakpoint||!(0,l.default)(this.props.breakpoints,V.breakpoints)||!(0,l.default)(this.props.cols,V.cols))&&this.onWidthChange(V)}},{key:"onWidthChange",value:function(V){var pe=this.props,ce=pe.breakpoints,G=pe.cols,te=pe.layouts,ie=pe.compactType,fe=this.props.breakpoint||(0,p.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),Se=this.state.breakpoint,he=(0,p.getColsFromBreakpoint)(fe,G),me=P({},te);if(Se!==fe||V.breakpoints!==ce||V.cols!==G){Se in me||(me[Se]=(0,h.cloneLayout)(this.state.layout));var _e=(0,p.findOrGenerateResponsiveLayout)(me,ce,fe,Se,he,ie);_e=(0,h.synchronizeLayoutWithChildren)(_e,this.props.children,he,ie,this.props.allowOverlap),me[fe]=_e,this.props.onLayoutChange(_e,me),this.props.onBreakpointChange(fe,he),this.setState({breakpoint:fe,layout:_e,cols:he})}var we=J(this.props.margin,fe),Ge=J(this.props.containerPadding,fe);this.props.onWidthChange(this.props.width,we,he,Ge)}},{key:"render",value:function(){var V=this.props,pe=V.breakpoint,ce=V.breakpoints,G=V.cols,te=V.layouts,ie=V.margin,fe=V.containerPadding,Se=V.onBreakpointChange,he=V.onLayoutChange,me=V.onWidthChange,_e=S(V,f);return u.createElement(d.default,E({},_e,{margin:J(ie,this.state.breakpoint),containerPadding:J(fe,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}],[{key:"getDerivedStateFromProps",value:function(V,pe){if(!(0,l.default)(V.layouts,pe.layouts)){var ce=pe.breakpoint,G=pe.cols,te=(0,p.findOrGenerateResponsiveLayout)(V.layouts,V.breakpoints,ce,ce,G,V.compactType);return{layout:te,layouts:V.layouts}}return null}}]),k}(u.Component);c.default=q,X(q,"propTypes",{breakpoint:v.default.string,breakpoints:v.default.object,allowOverlap:v.default.bool,cols:v.default.object,margin:v.default.oneOfType([v.default.array,v.default.object]),containerPadding:v.default.oneOfType([v.default.array,v.default.object]),layouts:function($,k){if(Z($[k])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+Z($[k]));Object.keys($[k]).forEach(function(F){if(!(F in $.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,h.validateLayout)($.layouts[F],"layouts."+F)})},width:v.default.number.isRequired,onBreakpointChange:v.default.func,onLayoutChange:v.default.func,onWidthChange:v.default.func}),X(q,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:h.noop,onLayoutChange:h.noop,onWidthChange:h.noop})},27297:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.calcGridColWidth=t,c.calcGridItemPosition=s,c.calcGridItemWHPx=i,c.calcWH=v,c.calcXY=u,c.clamp=l;function t(h){var p=h.margin,d=h.containerPadding,f=h.containerWidth,g=h.cols;return(f-p[0]*(g-1)-d[0]*2)/g}function i(h,p,d){return Number.isFinite(h)?Math.round(p*h+Math.max(0,h-1)*d):h}function s(h,p,d,f,g,y){var b=h.margin,E=h.containerPadding,S=h.rowHeight,w=t(h),x={};return y&&y.resizing?(x.width=Math.round(y.resizing.width),x.height=Math.round(y.resizing.height)):(x.width=i(f,w,b[0]),x.height=i(g,S,b[1])),y&&y.dragging?(x.top=Math.round(y.dragging.top),x.left=Math.round(y.dragging.left)):(x.top=Math.round((S+b[1])*d+E[1]),x.left=Math.round((w+b[0])*p+E[0])),x}function u(h,p,d,f,g){var y=h.margin,b=h.cols,E=h.rowHeight,S=h.maxRows,w=t(h),x=Math.round((d-y[0])/(w+y[0])),P=Math.round((p-y[1])/(E+y[1]));return x=l(x,0,b-f),P=l(P,0,S-g),{x,y:P}}function v(h,p,d,f,g){var y=h.margin,b=h.maxRows,E=h.cols,S=h.rowHeight,w=t(h),x=Math.round((p+y[0])/(w+y[0])),P=Math.round((d+y[1])/(S+y[1]));return x=l(x,0,E-f),P=l(P,0,b-g),{w:x,h:P}}function l(h,p,d){return Math.max(Math.min(h,d),p)}},30802:(C,c,t)=>{"use strict";var i;function s(j){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(re){return typeof re}:function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re},s(j)}i={value:!0},c.default=W;var u=f(t(27702)),v=p(t(51616)),l=p(t(95047)),h=["measureBeforeMount"];function p(j){return j&&j.__esModule?j:{default:j}}function d(j){if(typeof WeakMap!="function")return null;var re=new WeakMap,X=new WeakMap;return(d=function(J){return J?X:re})(j)}function f(j,re){if(!re&&j&&j.__esModule)return j;if(j===null||s(j)!=="object"&&typeof j!="function")return{default:j};var X=d(re);if(X&&X.has(j))return X.get(j);var Z={},J=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in j)if(q!=="default"&&Object.prototype.hasOwnProperty.call(j,q)){var L=J?Object.getOwnPropertyDescriptor(j,q):null;L&&(L.get||L.set)?Object.defineProperty(Z,q,L):Z[q]=j[q]}return Z.default=j,X&&X.set(j,Z),Z}function g(){return g=Object.assign||function(j){for(var re=1;re<arguments.length;re++){var X=arguments[re];for(var Z in X)Object.prototype.hasOwnProperty.call(X,Z)&&(j[Z]=X[Z])}return j},g.apply(this,arguments)}function y(j,re){if(j==null)return{};var X=b(j,re),Z,J;if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(j);for(J=0;J<q.length;J++)Z=q[J],!(re.indexOf(Z)>=0)&&Object.prototype.propertyIsEnumerable.call(j,Z)&&(X[Z]=j[Z])}return X}function b(j,re){if(j==null)return{};var X={},Z=Object.keys(j),J,q;for(q=0;q<Z.length;q++)J=Z[q],!(re.indexOf(J)>=0)&&(X[J]=j[J]);return X}function E(j,re){if(!(j instanceof re))throw new TypeError("Cannot call a class as a function")}function S(j,re){for(var X=0;X<re.length;X++){var Z=re[X];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(j,Z.key,Z)}}function w(j,re,X){return re&&S(j.prototype,re),X&&S(j,X),Object.defineProperty(j,"prototype",{writable:!1}),j}function x(j,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(re&&re.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),re&&P(j,re)}function P(j,re){return P=Object.setPrototypeOf||function(Z,J){return Z.__proto__=J,Z},P(j,re)}function R(j){var re=I();return function(){var Z=N(j),J;if(re){var q=N(this).constructor;J=Reflect.construct(Z,arguments,q)}else J=Z.apply(this,arguments);return T(this,J)}}function T(j,re){if(re&&(s(re)==="object"||typeof re=="function"))return re;if(re!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(j)}function A(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N(j){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(X){return X.__proto__||Object.getPrototypeOf(X)},N(j)}function K(j,re,X){return re in j?Object.defineProperty(j,re,{value:X,enumerable:!0,configurable:!0,writable:!0}):j[re]=X,j}var _="react-grid-layout";function W(j){var re;return re=function(X){x(J,X);var Z=R(J);function J(){var q;E(this,J);for(var L=arguments.length,$=new Array(L),k=0;k<L;k++)$[k]=arguments[k];return q=Z.call.apply(Z,[this].concat($)),K(A(q),"state",{width:1280}),K(A(q),"elementRef",u.createRef()),K(A(q),"mounted",!1),K(A(q),"onWindowResize",function(){if(q.mounted){var F=q.elementRef.current;F instanceof HTMLElement&&F.offsetWidth&&q.setState({width:F.offsetWidth})}}),q}return w(J,[{key:"componentDidMount",value:function(){this.mounted=!0,window.addEventListener("resize",this.onWindowResize),this.onWindowResize()}},{key:"componentWillUnmount",value:function(){this.mounted=!1,window.removeEventListener("resize",this.onWindowResize)}},{key:"render",value:function(){var L=this.props,$=L.measureBeforeMount,k=y(L,h);return $&&!this.mounted?u.createElement("div",{className:(0,l.default)(this.props.className,_),style:this.props.style,ref:this.elementRef}):u.createElement(j,g({innerRef:this.elementRef},k,this.state))}}]),J}(u.Component),K(re,"defaultProps",{measureBeforeMount:!1}),K(re,"propTypes",{measureBeforeMount:v.default.bool}),re}},86077:C=>{C.exports=function(t,i,s){return t===i?!0:t.className===i.className&&s(t.style,i.style)&&t.width===i.width&&t.autoSize===i.autoSize&&t.cols===i.cols&&t.draggableCancel===i.draggableCancel&&t.draggableHandle===i.draggableHandle&&s(t.verticalCompact,i.verticalCompact)&&s(t.compactType,i.compactType)&&s(t.layout,i.layout)&&s(t.margin,i.margin)&&s(t.containerPadding,i.containerPadding)&&t.rowHeight===i.rowHeight&&t.maxRows===i.maxRows&&t.isBounded===i.isBounded&&t.isDraggable===i.isDraggable&&t.isResizable===i.isResizable&&t.allowOverlap===i.allowOverlap&&t.preventCollision===i.preventCollision&&t.useCSSTransforms===i.useCSSTransforms&&t.transformScale===i.transformScale&&t.isDroppable===i.isDroppable&&s(t.resizeHandles,i.resizeHandles)&&s(t.resizeHandle,i.resizeHandle)&&t.onLayoutChange===i.onLayoutChange&&t.onDragStart===i.onDragStart&&t.onDrag===i.onDrag&&t.onDragStop===i.onDragStop&&t.onResizeStart===i.onResizeStart&&t.onResize===i.onResize&&t.onResizeStop===i.onResizeStop&&t.onDrop===i.onDrop&&s(t.droppingItem,i.droppingItem)&&s(t.innerRef,i.innerRef)}},70430:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.findOrGenerateResponsiveLayout=v,c.getBreakpointFromWidth=s,c.getColsFromBreakpoint=u,c.sortBreakpoints=l;var i=t(91764);function s(h,p){for(var d=l(h),f=d[0],g=1,y=d.length;g<y;g++){var b=d[g];p>h[b]&&(f=b)}return f}function u(h,p){if(!p[h])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+h+" is missing!");return p[h]}function v(h,p,d,f,g,y){if(h[d])return(0,i.cloneLayout)(h[d]);for(var b=h[f],E=l(p),S=E.slice(E.indexOf(d)),w=0,x=S.length;w<x;w++){var P=S[w];if(h[P]){b=h[P];break}}return b=(0,i.cloneLayout)(b||[]),(0,i.compact)((0,i.correctBounds)(b,{cols:g}),y,g)}function l(h){var p=Object.keys(h);return p.sort(function(d,f){return h[d]-h[f]})}},91764:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.bottom=f,c.childrenEqual=S,c.cloneLayout=g,c.cloneLayoutItem=E,c.collides=P,c.compact=R,c.compactItem=I,c.compactType=pe,c.correctBounds=N,c.fastPositionEqual=x,c.fastRGLPropsEqual=void 0,c.getAllCollisions=W,c.getFirstCollision=_,c.getLayoutItem=K,c.getStatics=j,c.modifyLayout=y,c.moveElement=re,c.moveElementAwayFromCollision=X,c.noop=void 0,c.perc=Z,c.setTopLeft=q,c.setTransform=J,c.sortLayoutItems=L,c.sortLayoutItemsByColRow=k,c.sortLayoutItemsByRowCol=$,c.synchronizeLayoutWithChildren=F,c.validateLayout=V,c.withLayoutItem=b;var i=u(t(20049)),s=u(t(27702));function u(te){return te&&te.__esModule?te:{default:te}}function v(te,ie){var fe=Object.keys(te);if(Object.getOwnPropertySymbols){var Se=Object.getOwnPropertySymbols(te);ie&&(Se=Se.filter(function(he){return Object.getOwnPropertyDescriptor(te,he).enumerable})),fe.push.apply(fe,Se)}return fe}function l(te){for(var ie=1;ie<arguments.length;ie++){var fe=arguments[ie]!=null?arguments[ie]:{};ie%2?v(Object(fe),!0).forEach(function(Se){h(te,Se,fe[Se])}):Object.getOwnPropertyDescriptors?Object.defineProperties(te,Object.getOwnPropertyDescriptors(fe)):v(Object(fe)).forEach(function(Se){Object.defineProperty(te,Se,Object.getOwnPropertyDescriptor(fe,Se))})}return te}function h(te,ie,fe){return ie in te?Object.defineProperty(te,ie,{value:fe,enumerable:!0,configurable:!0,writable:!0}):te[ie]=fe,te}var p=!0,d=!1;function f(te){for(var ie=0,fe,Se=0,he=te.length;Se<he;Se++)fe=te[Se].y+te[Se].h,fe>ie&&(ie=fe);return ie}function g(te){for(var ie=Array(te.length),fe=0,Se=te.length;fe<Se;fe++)ie[fe]=E(te[fe]);return ie}function y(te,ie){for(var fe=Array(te.length),Se=0,he=te.length;Se<he;Se++)ie.i===te[Se].i?fe[Se]=ie:fe[Se]=te[Se];return fe}function b(te,ie,fe){var Se=K(te,ie);return Se?(Se=fe(E(Se)),te=y(te,Se),[te,Se]):[te,null]}function E(te){return{w:te.w,h:te.h,x:te.x,y:te.y,i:te.i,minW:te.minW,maxW:te.maxW,minH:te.minH,maxH:te.maxH,moved:!!te.moved,static:!!te.static,isDraggable:te.isDraggable,isResizable:te.isResizable,resizeHandles:te.resizeHandles,isBounded:te.isBounded}}function S(te,ie){return(0,i.default)(s.default.Children.map(te,function(fe){return fe?.key}),s.default.Children.map(ie,function(fe){return fe?.key}))}var w=t(86077);c.fastRGLPropsEqual=w;function x(te,ie){return te.left===ie.left&&te.top===ie.top&&te.width===ie.width&&te.height===ie.height}function P(te,ie){return!(te.i===ie.i||te.x+te.w<=ie.x||te.x>=ie.x+ie.w||te.y+te.h<=ie.y||te.y>=ie.y+ie.h)}function R(te,ie,fe){for(var Se=j(te),he=L(te,ie),me=Array(te.length),_e=0,we=he.length;_e<we;_e++){var Ge=E(he[_e]);Ge.static||(Ge=I(Se,Ge,ie,fe,he),Se.push(Ge)),me[te.indexOf(he[_e])]=Ge,Ge.moved=!1}return me}var T={x:"w",y:"h"};function A(te,ie,fe,Se){var he=T[Se];ie[Se]+=1;for(var me=te.map(function(Ge){return Ge.i}).indexOf(ie.i),_e=me+1;_e<te.length;_e++){var we=te[_e];if(!we.static){if(we.y>ie.y+ie.h)break;P(ie,we)&&A(te,we,fe+ie[he],Se)}}ie[Se]=fe}function I(te,ie,fe,Se,he){var me=fe==="vertical",_e=fe==="horizontal";if(me)for(ie.y=Math.min(f(te),ie.y);ie.y>0&&!_(te,ie);)ie.y--;else if(_e)for(;ie.x>0&&!_(te,ie);)ie.x--;for(var we;we=_(te,ie);)_e?A(he,ie,we.x+we.w,"x"):A(he,ie,we.y+we.h,"y"),_e&&ie.x+ie.w>Se&&(ie.x=Se-ie.w,ie.y++);return ie.y=Math.max(ie.y,0),ie.x=Math.max(ie.x,0),ie}function N(te,ie){for(var fe=j(te),Se=0,he=te.length;Se<he;Se++){var me=te[Se];if(me.x+me.w>ie.cols&&(me.x=ie.cols-me.w),me.x<0&&(me.x=0,me.w=ie.cols),!me.static)fe.push(me);else for(;_(fe,me);)me.y++}return te}function K(te,ie){for(var fe=0,Se=te.length;fe<Se;fe++)if(te[fe].i===ie)return te[fe]}function _(te,ie){for(var fe=0,Se=te.length;fe<Se;fe++)if(P(te[fe],ie))return te[fe]}function W(te,ie){return te.filter(function(fe){return P(fe,ie)})}function j(te){return te.filter(function(ie){return ie.static})}function re(te,ie,fe,Se,he,me,_e,we,Ge){if(ie.static&&ie.isDraggable!==!0||ie.y===Se&&ie.x===fe)return te;ce("Moving element ".concat(ie.i," to [").concat(String(fe),",").concat(String(Se),"] from [").concat(ie.x,",").concat(ie.y,"]"));var ht=ie.x,nt=ie.y;typeof fe=="number"&&(ie.x=fe),typeof Se=="number"&&(ie.y=Se),ie.moved=!0;var Re=L(te,_e),ue=_e==="vertical"&&typeof Se=="number"?nt>=Se:_e==="horizontal"&&typeof fe=="number"?ht>=fe:!1;ue&&(Re=Re.reverse());var ae=W(Re,ie),ve=ae.length>0;if(ve&&Ge)return g(te);if(ve&&me)return ce("Collision prevented on ".concat(ie.i,", reverting.")),ie.x=ht,ie.y=nt,ie.moved=!1,te;for(var Me=0,Ye=ae.length;Me<Ye;Me++){var qe=ae[Me];ce("Resolving collision between ".concat(ie.i," at [").concat(ie.x,",").concat(ie.y,"] and ").concat(qe.i," at [").concat(qe.x,",").concat(qe.y,"]")),!qe.moved&&(qe.static?te=X(te,qe,ie,he,_e,we):te=X(te,ie,qe,he,_e,we))}return te}function X(te,ie,fe,Se,he,me){var _e=he==="horizontal",we=he!=="horizontal",Ge=ie.static;if(Se){Se=!1;var ht={x:_e?Math.max(ie.x-fe.w,0):fe.x,y:we?Math.max(ie.y-fe.h,0):fe.y,w:fe.w,h:fe.h,i:"-1"};if(!_(te,ht))return ce("Doing reverse collision on ".concat(fe.i," up to [").concat(ht.x,",").concat(ht.y,"].")),re(te,fe,_e?ht.x:void 0,we?ht.y:void 0,Se,Ge,he,me)}return re(te,fe,_e?fe.x+1:void 0,we?fe.y+1:void 0,Se,Ge,he,me)}function Z(te){return te*100+"%"}function J(te){var ie=te.top,fe=te.left,Se=te.width,he=te.height,me="translate(".concat(fe,"px,").concat(ie,"px)");return{transform:me,WebkitTransform:me,MozTransform:me,msTransform:me,OTransform:me,width:"".concat(Se,"px"),height:"".concat(he,"px"),position:"absolute"}}function q(te){var ie=te.top,fe=te.left,Se=te.width,he=te.height;return{top:"".concat(ie,"px"),left:"".concat(fe,"px"),width:"".concat(Se,"px"),height:"".concat(he,"px"),position:"absolute"}}function L(te,ie){return ie==="horizontal"?k(te):ie==="vertical"?$(te):te}function $(te){return te.slice(0).sort(function(ie,fe){return ie.y>fe.y||ie.y===fe.y&&ie.x>fe.x?1:ie.y===fe.y&&ie.x===fe.x?0:-1})}function k(te){return te.slice(0).sort(function(ie,fe){return ie.x>fe.x||ie.x===fe.x&&ie.y>fe.y?1:-1})}function F(te,ie,fe,Se,he){te=te||[];var me=[];s.default.Children.forEach(ie,function(we){if(we?.key!=null){var Ge=K(te,String(we.key));if(Ge)me.push(E(Ge));else{!p&&we.props._grid&&console.warn("`_grid` properties on children have been deprecated as of React 15.2. Please use `data-grid` or add your properties directly to the `layout`.");var ht=we.props["data-grid"]||we.props._grid;ht?(p||V([ht],"ReactGridLayout.children"),me.push(E(l(l({},ht),{},{i:we.key})))):me.push(E({w:1,h:1,x:0,y:f(me),i:String(we.key)}))}}});var _e=N(me,{cols:fe});return he?_e:R(_e,Se,fe)}function V(te){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout",fe=["x","y","w","h"];if(!Array.isArray(te))throw new Error(ie+" must be an array!");for(var Se=0,he=te.length;Se<he;Se++)for(var me=te[Se],_e=0;_e<fe.length;_e++)if(typeof me[fe[_e]]!="number")throw new Error("ReactGridLayout: "+ie+"["+Se+"]."+fe[_e]+" must be a number!")}function pe(te){var ie=te||{},fe=ie.verticalCompact,Se=ie.compactType;return fe===!1?null:Se}function ce(){var te;d&&(te=console).log.apply(te,arguments)}var G=function(){};c.noop=G},41966:(C,c,t)=>{C.exports=t(46336).default,C.exports.utils=t(91764),C.exports.Responsive=t(30080).default,C.exports.Responsive.utils=t(70430),C.exports.WidthProvider=t(30802).default},3819:(C,c,t)=>{C.exports=function(i){var s={};function u(v){if(s[v])return s[v].exports;var l=s[v]={exports:{},id:v,loaded:!1};return i[v].call(l.exports,l,l.exports,u),l.loaded=!0,l.exports}return u.m=i,u.c=s,u.p="",u(0)}([function(i,s,u){i.exports=u(1)},function(i,s,u){"use strict";Object.defineProperty(s,"__esModule",{value:!0});function v(p){return p&&p.__esModule?p:{default:p}}var l=u(2),h=v(l);s.default=h.default,i.exports=s.default},function(i,s,u){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var v=Object.assign||function(S){for(var w=1;w<arguments.length;w++){var x=arguments[w];for(var P in x)Object.prototype.hasOwnProperty.call(x,P)&&(S[P]=x[P])}return S};s.default=E;function l(S){return S&&S.__esModule?S:{default:S}}function h(S,w){var x={};for(var P in S)w.indexOf(P)>=0||Object.prototype.hasOwnProperty.call(S,P)&&(x[P]=S[P]);return x}var p=u(3),d=u(4),f=l(d),g=u(14),y=u(15),b=l(y);E.propTypes={activeClassName:f.default.string,activeIndex:f.default.number,activeStyle:f.default.object,autoEscape:f.default.bool,className:f.default.string,findChunks:f.default.func,highlightClassName:f.default.oneOfType([f.default.object,f.default.string]),highlightStyle:f.default.object,highlightTag:f.default.oneOfType([f.default.node,f.default.func,f.default.string]),sanitize:f.default.func,searchWords:f.default.arrayOf(f.default.oneOfType([f.default.string,f.default.instanceOf(RegExp)])).isRequired,textToHighlight:f.default.string.isRequired,unhighlightTag:f.default.oneOfType([f.default.node,f.default.func,f.default.string]),unhighlightClassName:f.default.string,unhighlightStyle:f.default.object};function E(S){var w=S.activeClassName,x=w===void 0?"":w,P=S.activeIndex,R=P===void 0?-1:P,T=S.activeStyle,A=S.autoEscape,I=S.caseSensitive,N=I===void 0?!1:I,K=S.className,_=S.findChunks,W=S.highlightClassName,j=W===void 0?"":W,re=S.highlightStyle,X=re===void 0?{}:re,Z=S.highlightTag,J=Z===void 0?"mark":Z,q=S.sanitize,L=S.searchWords,$=S.textToHighlight,k=S.unhighlightTag,F=k===void 0?"span":k,V=S.unhighlightClassName,pe=V===void 0?"":V,ce=S.unhighlightStyle,G=h(S,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),te=(0,p.findAll)({autoEscape:A,caseSensitive:N,findChunks:_,sanitize:q,searchWords:L,textToHighlight:$}),ie=J,fe=-1,Se="",he=void 0,me=function(Ge){var ht={};for(var nt in Ge)ht[nt.toLowerCase()]=Ge[nt];return ht},_e=(0,b.default)(me);return(0,g.createElement)("span",v({className:K},G,{children:te.map(function(we,Ge){var ht=$.substr(we.start,we.end-we.start);if(we.highlight){fe++;var nt=void 0;typeof j=="object"?N?nt=j[ht]:(j=_e(j),nt=j[ht.toLowerCase()]):nt=j;var Re=fe===+R;Se=nt+" "+(Re?x:""),he=Re===!0&&T!=null?Object.assign({},X,T):X;var ue={children:ht,className:Se,key:Ge,style:he};return typeof ie!="string"&&(ue.highlightIndex=fe),(0,g.createElement)(ie,ue)}else return(0,g.createElement)(F,{children:ht,className:pe,key:Ge,style:ce})})}))}i.exports=s.default},function(i,s){i.exports=function(u){var v={};function l(h){if(v[h])return v[h].exports;var p=v[h]={exports:{},id:h,loaded:!1};return u[h].call(p.exports,p,p.exports,l),p.loaded=!0,p.exports}return l.m=u,l.c=v,l.p="",l(0)}([function(u,v,l){u.exports=l(1)},function(u,v,l){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var h=l(2);Object.defineProperty(v,"combineChunks",{enumerable:!0,get:function(){return h.combineChunks}}),Object.defineProperty(v,"fillInChunks",{enumerable:!0,get:function(){return h.fillInChunks}}),Object.defineProperty(v,"findAll",{enumerable:!0,get:function(){return h.findAll}}),Object.defineProperty(v,"findChunks",{enumerable:!0,get:function(){return h.findChunks}})},function(u,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var l=v.findAll=function(b){var E=b.autoEscape,S=b.caseSensitive,w=S===void 0?!1:S,x=b.findChunks,P=x===void 0?p:x,R=b.sanitize,T=b.searchWords,A=b.textToHighlight;return d({chunksToHighlight:h({chunks:P({autoEscape:E,caseSensitive:w,sanitize:R,searchWords:T,textToHighlight:A})}),totalLength:A?A.length:0})},h=v.combineChunks=function(b){var E=b.chunks;return E=E.sort(function(S,w){return S.start-w.start}).reduce(function(S,w){if(S.length===0)return[w];var x=S.pop();if(w.start<=x.end){var P=Math.max(x.end,w.end);S.push({start:x.start,end:P})}else S.push(x,w);return S},[]),E},p=function(b){var E=b.autoEscape,S=b.caseSensitive,w=b.sanitize,x=w===void 0?f:w,P=b.searchWords,R=b.textToHighlight;return R=x(R),P.filter(function(T){return T}).reduce(function(T,A){A=x(A),E&&(A=g(A));for(var I=new RegExp(A,S?"g":"gi"),N=void 0;N=I.exec(R);){var K=N.index,_=I.lastIndex;_>K&&T.push({start:K,end:_}),N.index==I.lastIndex&&I.lastIndex++}return T},[])};v.findChunks=p;var d=v.fillInChunks=function(b){var E=b.chunksToHighlight,S=b.totalLength,w=[],x=function(T,A,I){A-T>0&&w.push({start:T,end:A,highlight:I})};if(E.length===0)x(0,S,!1);else{var P=0;E.forEach(function(R){x(P,R.start,!1),x(R.start,R.end,!0),P=R.end}),x(P,S,!1)}return w};function f(y){return y}function g(y){return y.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(i,s,u){(function(v){if(v.env.NODE_ENV!=="production"){var l=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,h=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===l},p=!0;i.exports=u(6)(h,p)}else i.exports=u(13)()}).call(s,u(5))},function(i,s){var u=i.exports={},v,l;function h(){throw new Error("setTimeout has not been defined")}function p(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?v=setTimeout:v=h}catch{v=h}try{typeof clearTimeout=="function"?l=clearTimeout:l=p}catch{l=p}})();function d(R){if(v===setTimeout)return setTimeout(R,0);if((v===h||!v)&&setTimeout)return v=setTimeout,setTimeout(R,0);try{return v(R,0)}catch{try{return v.call(null,R,0)}catch{return v.call(this,R,0)}}}function f(R){if(l===clearTimeout)return clearTimeout(R);if((l===p||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(R);try{return l(R)}catch{try{return l.call(null,R)}catch{return l.call(this,R)}}}var g=[],y=!1,b,E=-1;function S(){!y||!b||(y=!1,b.length?g=b.concat(g):E=-1,g.length&&w())}function w(){if(!y){var R=d(S);y=!0;for(var T=g.length;T;){for(b=g,g=[];++E<T;)b&&b[E].run();E=-1,T=g.length}b=null,y=!1,f(R)}}u.nextTick=function(R){var T=new Array(arguments.length-1);if(arguments.length>1)for(var A=1;A<arguments.length;A++)T[A-1]=arguments[A];g.push(new x(R,T)),g.length===1&&!y&&d(w)};function x(R,T){this.fun=R,this.array=T}x.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={};function P(){}u.on=P,u.addListener=P,u.once=P,u.off=P,u.removeListener=P,u.removeAllListeners=P,u.emit=P,u.prependListener=P,u.prependOnceListener=P,u.listeners=function(R){return[]},u.binding=function(R){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(R){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},function(i,s,u){(function(v){"use strict";var l=u(7),h=u(8),p=u(9),d=u(10),f=u(11),g=u(12);i.exports=function(y,b){var E=typeof Symbol=="function"&&Symbol.iterator,S="@@iterator";function w(ce){var G=ce&&(E&&ce[E]||ce[S]);if(typeof G=="function")return G}var x="<<anonymous>>",P={array:I("array"),bool:I("boolean"),func:I("function"),number:I("number"),object:I("object"),string:I("string"),symbol:I("symbol"),any:N(),arrayOf:K,element:_(),instanceOf:W,node:Z(),objectOf:re,oneOf:j,oneOfType:X,shape:J,exact:q};function R(ce,G){return ce===G?ce!==0||1/ce===1/G:ce!==ce&&G!==G}function T(ce){this.message=ce,this.stack=""}T.prototype=Error.prototype;function A(ce){if(v.env.NODE_ENV!=="production")var G={},te=0;function ie(Se,he,me,_e,we,Ge,ht){if(_e=_e||x,Ge=Ge||me,ht!==f){if(b)h(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if(v.env.NODE_ENV!=="production"&&typeof console<"u"){var nt=_e+":"+me;!G[nt]&&te<3&&(p(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",Ge,_e),G[nt]=!0,te++)}}return he[me]==null?Se?he[me]===null?new T("The "+we+" `"+Ge+"` is marked as required "+("in `"+_e+"`, but its value is `null`.")):new T("The "+we+" `"+Ge+"` is marked as required in "+("`"+_e+"`, but its value is `undefined`.")):null:ce(he,me,_e,we,Ge)}var fe=ie.bind(null,!1);return fe.isRequired=ie.bind(null,!0),fe}function I(ce){function G(te,ie,fe,Se,he,me){var _e=te[ie],we=k(_e);if(we!==ce){var Ge=F(_e);return new T("Invalid "+Se+" `"+he+"` of type "+("`"+Ge+"` supplied to `"+fe+"`, expected ")+("`"+ce+"`."))}return null}return A(G)}function N(){return A(l.thatReturnsNull)}function K(ce){function G(te,ie,fe,Se,he){if(typeof ce!="function")return new T("Property `"+he+"` of component `"+fe+"` has invalid PropType notation inside arrayOf.");var me=te[ie];if(!Array.isArray(me)){var _e=k(me);return new T("Invalid "+Se+" `"+he+"` of type "+("`"+_e+"` supplied to `"+fe+"`, expected an array."))}for(var we=0;we<me.length;we++){var Ge=ce(me,we,fe,Se,he+"["+we+"]",f);if(Ge instanceof Error)return Ge}return null}return A(G)}function _(){function ce(G,te,ie,fe,Se){var he=G[te];if(!y(he)){var me=k(he);return new T("Invalid "+fe+" `"+Se+"` of type "+("`"+me+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return A(ce)}function W(ce){function G(te,ie,fe,Se,he){if(!(te[ie]instanceof ce)){var me=ce.name||x,_e=pe(te[ie]);return new T("Invalid "+Se+" `"+he+"` of type "+("`"+_e+"` supplied to `"+fe+"`, expected ")+("instance of `"+me+"`."))}return null}return A(G)}function j(ce){if(!Array.isArray(ce))return v.env.NODE_ENV!=="production"&&p(!1,"Invalid argument supplied to oneOf, expected an instance of array."),l.thatReturnsNull;function G(te,ie,fe,Se,he){for(var me=te[ie],_e=0;_e<ce.length;_e++)if(R(me,ce[_e]))return null;var we=JSON.stringify(ce);return new T("Invalid "+Se+" `"+he+"` of value `"+me+"` "+("supplied to `"+fe+"`, expected one of "+we+"."))}return A(G)}function re(ce){function G(te,ie,fe,Se,he){if(typeof ce!="function")return new T("Property `"+he+"` of component `"+fe+"` has invalid PropType notation inside objectOf.");var me=te[ie],_e=k(me);if(_e!=="object")return new T("Invalid "+Se+" `"+he+"` of type "+("`"+_e+"` supplied to `"+fe+"`, expected an object."));for(var we in me)if(me.hasOwnProperty(we)){var Ge=ce(me,we,fe,Se,he+"."+we,f);if(Ge instanceof Error)return Ge}return null}return A(G)}function X(ce){if(!Array.isArray(ce))return v.env.NODE_ENV!=="production"&&p(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),l.thatReturnsNull;for(var G=0;G<ce.length;G++){var te=ce[G];if(typeof te!="function")return p(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",V(te),G),l.thatReturnsNull}function ie(fe,Se,he,me,_e){for(var we=0;we<ce.length;we++){var Ge=ce[we];if(Ge(fe,Se,he,me,_e,f)==null)return null}return new T("Invalid "+me+" `"+_e+"` supplied to "+("`"+he+"`."))}return A(ie)}function Z(){function ce(G,te,ie,fe,Se){return L(G[te])?null:new T("Invalid "+fe+" `"+Se+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return A(ce)}function J(ce){function G(te,ie,fe,Se,he){var me=te[ie],_e=k(me);if(_e!=="object")return new T("Invalid "+Se+" `"+he+"` of type `"+_e+"` "+("supplied to `"+fe+"`, expected `object`."));for(var we in ce){var Ge=ce[we];if(Ge){var ht=Ge(me,we,fe,Se,he+"."+we,f);if(ht)return ht}}return null}return A(G)}function q(ce){function G(te,ie,fe,Se,he){var me=te[ie],_e=k(me);if(_e!=="object")return new T("Invalid "+Se+" `"+he+"` of type `"+_e+"` "+("supplied to `"+fe+"`, expected `object`."));var we=d({},te[ie],ce);for(var Ge in we){var ht=ce[Ge];if(!ht)return new T("Invalid "+Se+" `"+he+"` key `"+Ge+"` supplied to `"+fe+"`.\nBad object: "+JSON.stringify(te[ie],null," ")+` Valid keys: `+JSON.stringify(Object.keys(ce),null," "));var nt=ht(me,Ge,fe,Se,he+"."+Ge,f);if(nt)return nt}return null}return A(G)}function L(ce){switch(typeof ce){case"number":case"string":case"undefined":return!0;case"boolean":return!ce;case"object":if(Array.isArray(ce))return ce.every(L);if(ce===null||y(ce))return!0;var G=w(ce);if(G){var te=G.call(ce),ie;if(G!==ce.entries){for(;!(ie=te.next()).done;)if(!L(ie.value))return!1}else for(;!(ie=te.next()).done;){var fe=ie.value;if(fe&&!L(fe[1]))return!1}}else return!1;return!0;default:return!1}}function $(ce,G){return ce==="symbol"||G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol}function k(ce){var G=typeof ce;return Array.isArray(ce)?"array":ce instanceof RegExp?"object":$(G,ce)?"symbol":G}function F(ce){if(typeof ce>"u"||ce===null)return""+ce;var G=k(ce);if(G==="object"){if(ce instanceof Date)return"date";if(ce instanceof RegExp)return"regexp"}return G}function V(ce){var G=F(ce);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function pe(ce){return!ce.constructor||!ce.constructor.name?x:ce.constructor.name}return P.checkPropTypes=g,P.PropTypes=P,P}}).call(s,u(5))},function(i,s){"use strict";function u(l){return function(){return l}}var v=function(){};v.thatReturns=u,v.thatReturnsFalse=u(!1),v.thatReturnsTrue=u(!0),v.thatReturnsNull=u(null),v.thatReturnsThis=function(){return this},v.thatReturnsArgument=function(l){return l},i.exports=v},function(i,s,u){(function(v){"use strict";var l=function(d){};v.env.NODE_ENV!=="production"&&(l=function(d){if(d===void 0)throw new Error("invariant requires an error message argument")});function h(p,d,f,g,y,b,E,S){if(l(d),!p){var w;if(d===void 0)w=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var x=[f,g,y,b,E,S],P=0;w=new Error(d.replace(/%s/g,function(){return x[P++]})),w.name="Invariant Violation"}throw w.framesToPop=1,w}}i.exports=h}).call(s,u(5))},function(i,s,u){(function(v){"use strict";var l=u(7),h=l;if(v.env.NODE_ENV!=="production"){var p=function(f){for(var g=arguments.length,y=Array(g>1?g-1:0),b=1;b<g;b++)y[b-1]=arguments[b];var E=0,S="Warning: "+f.replace(/%s/g,function(){return y[E++]});typeof console<"u"&&console.error(S);try{throw new Error(S)}catch{}};h=function(f,g){if(g===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(g.indexOf("Failed Composite propType: ")!==0&&!f){for(var y=arguments.length,b=Array(y>2?y-2:0),E=2;E<y;E++)b[E-2]=arguments[E];p.apply(void 0,[g].concat(b))}}}i.exports=h}).call(s,u(5))},function(i,s){/* object-assign (c) Sindre Sorhus @license MIT */"use strict";var u=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function h(d){if(d==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(d)}function p(){try{if(!Object.assign)return!1;var d=new String("abc");if(d[5]="de",Object.getOwnPropertyNames(d)[0]==="5")return!1;for(var f={},g=0;g<10;g++)f["_"+String.fromCharCode(g)]=g;var y=Object.getOwnPropertyNames(f).map(function(E){return f[E]});if(y.join("")!=="0123456789")return!1;var b={};return"abcdefghijklmnopqrst".split("").forEach(function(E){b[E]=E}),Object.keys(Object.assign({},b)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}i.exports=p()?Object.assign:function(d,f){for(var g,y=h(d),b,E=1;E<arguments.length;E++){g=Object(arguments[E]);for(var S in g)v.call(g,S)&&(y[S]=g[S]);if(u){b=u(g);for(var w=0;w<b.length;w++)l.call(g,b[w])&&(y[b[w]]=g[b[w]])}}return y}},function(i,s){"use strict";var u="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";i.exports=u},function(i,s,u){(function(v){"use strict";if(v.env.NODE_ENV!=="production")var l=u(8),h=u(9),p=u(11),d={};function f(g,y,b,E,S){if(v.env.NODE_ENV!=="production"){for(var w in g)if(g.hasOwnProperty(w)){var x;try{l(typeof g[w]=="function","%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",E||"React class",b,w,typeof g[w]),x=g[w](y,w,E,b,null,p)}catch(R){x=R}if(h(!x||x instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",E||"React class",b,w,typeof x),x instanceof Error&&!(x.message in d)){d[x.message]=!0;var P=S?S():"";h(!1,"Failed %s type: %s%s",b,x.message,P??"")}}}}i.exports=f}).call(s,u(5))},function(i,s,u){"use strict";var v=u(7),l=u(8),h=u(11);i.exports=function(){function p(g,y,b,E,S,w){w!==h&&l(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}p.isRequired=p;function d(){return p}var f={array:p,bool:p,func:p,number:p,object:p,string:p,symbol:p,any:p,arrayOf:d,element:p,instanceOf:d,node:p,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d};return f.checkPropTypes=v,f.PropTypes=f,f}},function(i,s){i.exports=t(27702)},function(i,s){"use strict";var u=function(h,p){return h===p};function v(l){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,p=void 0,d=[],f=void 0,g=!1,y=function(S,w){return h(S,d[w])},b=function(){for(var S=arguments.length,w=Array(S),x=0;x<S;x++)w[x]=arguments[x];return g&&p===this&&w.length===d.length&&w.every(y)||(g=!0,p=this,d=w,f=l.apply(this,w)),f};return b}i.exports=v}])},46089:(C,c,t)=>{"use strict";t.d(c,{Dq:()=>ve,Gc:()=>T,Qr:()=>Z,RV:()=>A,bc:()=>X,cI:()=>at,qo:()=>Xt});var i=t(27702),s=rt=>rt.type==="checkbox",u=rt=>rt==null;const v=rt=>typeof rt=="object";var l=rt=>!u(rt)&&!Array.isArray(rt)&&v(rt)&&!(rt instanceof Date),h=rt=>l(rt)&&rt.target?s(rt.target)?rt.target.checked:rt.target.value:rt,p=rt=>rt.substring(0,rt.search(/.\d/))||rt,d=(rt,Rt)=>[...rt].some(rn=>p(Rt)===rn),f=rt=>rt.filter(Boolean),g=rt=>rt===void 0,y=(rt={},Rt,rn)=>{const sn=f(Rt.split(/[,[\].]+?/)).reduce((Jn,ze)=>u(Jn)?Jn:Jn[ze],rt);return g(sn)||sn===rt?g(rt[Rt])?rn:rt[Rt]:sn};const b={BLUR:"blur",CHANGE:"change"},E={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},S="select",w="undefined",x={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};var P=(rt,Rt)=>{const rn=Object.assign({},rt);return delete rn[Rt],rn};const R=i.createContext(null);R.displayName="RHFContext";const T=()=>i.useContext(R),A=rt=>i.createElement(R.Provider,{value:P(rt,"children")},rt.children);var I=(rt,Rt,rn,sn,Jn=!0)=>rt?new Proxy(Rt,{get:(ze,st)=>{if(st in ze)return rn.current[st]!==E.all&&(rn.current[st]=Jn?E.all:!0),sn&&(sn.current[st]=!0),ze[st]}}):Rt,N=rt=>l(rt)&&!Object.keys(rt).length,K=(rt,Rt,rn)=>{const sn=P(rt,"name");return N(sn)||Object.keys(sn).length>=Object.keys(Rt).length||Object.keys(sn).find(Jn=>Rt[Jn]===(rn?E.all:!0))},_=rt=>Array.isArray(rt)?rt:[rt],W=typeof window!==w&&typeof window.HTMLElement!==w&&typeof document!==w;const j=W?"Proxy"in window:typeof Proxy!==w;function re(rt){const{control:Rt,name:rn}=rt||{},sn=T(),{formStateRef:Jn,formStateSubjectRef:ze,readFormStateRef:st}=Rt||sn.control,en=i.useRef(rn);en.current=rn;const[wt,Ke]=i.useState(Jn.current),Ut=i.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1});return i.useEffect(()=>{const on=ze.current.subscribe({next:Tn=>(!en.current||!Tn.name||_(en.current).includes(Tn.name))&&K(Tn,Ut.current)&&Ke(Object.assign(Object.assign({},Jn.current),Tn))});return()=>on.unsubscribe()},[]),I(j,wt,st,Ut,!1)}function X({name:rt,rules:Rt,defaultValue:rn,control:sn,shouldUnregister:Jn}){const ze=T(),{defaultValuesRef:st,register:en,fieldsRef:wt,unregister:Ke,fieldArrayNamesRef:Ut,controllerSubjectRef:on,shouldUnmountUnregister:Tn,inFieldArrayActionRef:An}=sn||ze.control,{onChange:Zt,onBlur:ot,ref:We}=en(rt,Rt),Ft=d(Ut.current,rt),[it,qt]=i.useState(g(y(wt.current,rt)._f.value)||Ft?g(rn)?y(st.current,rt):rn:y(wt.current,rt)._f.value),vn=re({control:sn||ze.control,name:rt});return y(wt.current,rt)._f.value=it,i.useEffect(()=>{const fn=on.current.subscribe({next:Tt=>(!Tt.name||rt===Tt.name)&&qt(y(Tt.values,rt))});return()=>{fn.unsubscribe();const Tt=Tn||Jn;(Ft?Tt&&!An.current:Tt)?Ke(rt):y(wt.current,rt)&&(y(wt.current,rt)._f.mount=!1)}},[rt]),{field:{onChange:fn=>{const Tt=h(fn);qt(Tt),Zt({target:{value:Tt,name:rt},type:b.CHANGE})},onBlur:()=>{ot({target:{name:rt},type:b.BLUR})},name:rt,value:it,ref:fn=>fn&&We(fn)},formState:vn,fieldState:Object.defineProperties({},{invalid:{get(){return!!y(vn.errors,rt)}},isDirty:{get(){return!!y(vn.dirtyFields,rt)}},isTouched:{get(){return!!y(vn.touchedFields,rt)}},error:{get(){return y(vn.errors,rt)}}})}}const Z=rt=>rt.render(X(rt));var J=(rt,Rt,rn,sn,Jn)=>Rt?Object.assign(Object.assign({},rn[rt]),{types:Object.assign(Object.assign({},rn[rt]&&rn[rt].types?rn[rt].types:{}),{[sn]:Jn||!0})}):{},q=rt=>/^\w*$/.test(rt),L=rt=>f(rt.replace(/["|']|\]/g,"").split(/\.|\[/));function $(rt,Rt,rn){let sn=-1;const Jn=q(Rt)?[Rt]:L(Rt),ze=Jn.length,st=ze-1;for(;++sn<ze;){const en=Jn[sn];let wt=rn;if(sn!==st){const Ke=rt[en];wt=l(Ke)||Array.isArray(Ke)?Ke:isNaN(+Jn[sn+1])?{}:[]}rt[en]=wt,rt=rt[en]}return rt}const k=(rt,Rt,rn)=>{for(const sn of rn||Object.keys(rt)){const Jn=y(rt,sn);if(Jn){const ze=Jn._f,st=P(Jn,"_f");if(ze&&Rt(ze.name)){if(ze.ref.focus&&g(ze.ref.focus()))break;if(ze.refs){ze.refs[0].focus();break}}else l(st)&&k(st,Rt)}}},F=(rt,Rt,rn={})=>{for(const sn in rt.current){const Jn=rt.current[sn];if(Jn){const ze=Jn._f,st=P(Jn,"_f");$(rn,sn,ze?ze.ref.disabled||ze.refs&&ze.refs.every(en=>en.disabled)?void 0:ze.value:Array.isArray(Jn)?[]:{}),st&&F({current:st},Rt,rn[sn])}}return Object.assign(Object.assign({},Rt),rn)};var V=()=>{const rt=typeof performance===w?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,Rt=>{const rn=(Math.random()*16+rt)%16|0;return(Rt=="x"?rn:rn&3|8).toString(16)})},pe=(rt=[],Rt)=>rt.map(rn=>Object.assign({[Rt]:rn&&rn[Rt]||V()},rn)),ce=rt=>u(rt)||!v(rt);function G(rt,Rt,rn){if(ce(rt)||ce(Rt)||rt instanceof Date||Rt instanceof Date)return rt===Rt;if(!i.isValidElement(rt)){const sn=Object.keys(rt),Jn=Object.keys(Rt);if(sn.length!==Jn.length)return!1;for(const ze of sn){const st=rt[ze];if(!(rn&&ze==="ref")){const en=Rt[ze];if((l(st)||Array.isArray(st))&&(l(en)||Array.isArray(en))?!G(st,en,rn):st!==en)return!1}}}return!0}function te(rt,Rt){if(ce(rt)||ce(Rt))return Rt;for(const rn in Rt){const sn=rt[rn],Jn=Rt[rn];try{rt[rn]=l(sn)&&l(Jn)||Array.isArray(sn)&&Array.isArray(Jn)?te(sn,Jn):Jn}catch{}}return rt}function ie(rt,Rt,rn,sn,Jn){let ze=-1;for(;++ze<rt.length;){for(const st in rt[ze])Array.isArray(rt[ze][st])?(!rn[ze]&&(rn[ze]={}),rn[ze][st]=[],ie(rt[ze][st],y(Rt[ze]||{},st,[]),rn[ze][st],rn[ze],st)):G(y(Rt[ze]||{},st),rt[ze][st])?$(rn[ze]||{},st):rn[ze]=Object.assign(Object.assign({},rn[ze]),{[st]:!0});sn&&!rn.length&&delete sn[Jn]}return rn}var fe=(rt,Rt,rn)=>te(ie(rt,Rt,rn.slice(0,rt.length)),ie(Rt,rt,rn.slice(0,rt.length)));function Se(rt,Rt){return[...rt,..._(Rt)]}var he=rt=>Array.isArray(rt)?Array(rt.length).fill(void 0):void 0;function me(rt,Rt,rn){return[...rt.slice(0,Rt),..._(rn),...rt.slice(Rt)]}var _e=(rt,Rt,rn)=>Array.isArray(rt)?(g(rt[rn])&&(rt[rn]=void 0),rt.splice(rn,0,rt.splice(Rt,1)[0]),rt):[];function we(rt,Rt){return[..._(Rt),...rt]}function Ge(rt,Rt){let rn=0;const sn=[...rt];for(const Jn of Rt)sn.splice(Jn-rn,1),rn++;return f(sn).length?sn:[]}var ht=(rt,Rt)=>g(Rt)?[]:Ge(rt,_(Rt).sort((rn,sn)=>rn-sn)),nt=(rt,Rt,rn)=>{rt[Rt]=[rt[rn],rt[rn]=rt[Rt]][0]},Re=rt=>typeof rt=="boolean";function ue(rt,Rt){const rn=Rt.slice(0,-1).length;let sn=0;for(;sn<rn;)rt=g(rt)?sn++:rt[Rt[sn++]];return rt}function ae(rt,Rt){const rn=q(Rt)?[Rt]:L(Rt),sn=rn.length==1?rt:ue(rt,rn),Jn=rn[rn.length-1];let ze;sn&&delete sn[Jn];for(let st=0;st<rn.slice(0,-1).length;st++){let en=-1,wt;const Ke=rn.slice(0,-(st+1)),Ut=Ke.length-1;for(st>0&&(ze=rt);++en<Ke.length;){const on=Ke[en];wt=wt?wt[on]:rt[on],Ut===en&&(l(wt)&&N(wt)||Array.isArray(wt)&&!wt.filter(Tn=>l(Tn)&&!N(Tn)||Re(Tn)).length)&&(ze?delete ze[on]:delete rt[on]),ze=wt}}return rt}const ve=({control:rt,name:Rt,keyName:rn="id",shouldUnregister:sn})=>{const Jn=T(),ze=i.useRef(""),{isWatchAllRef:st,watchFieldsRef:en,getIsDirty:wt,watchSubjectRef:Ke,fieldArraySubjectRef:Ut,fieldArrayNamesRef:on,fieldsRef:Tn,defaultValuesRef:An,formStateRef:Zt,formStateSubjectRef:ot,readFormStateRef:We,validFieldsRef:Ft,fieldsWithValidationRef:it,fieldArrayDefaultValuesRef:qt,unregister:vn,shouldUnmountUnregister:fn,inFieldArrayActionRef:Tt}=rt||Jn.control,[dn,mn]=i.useState(pe(y(Tn.current,Rt)?y(F(Tn),Rt):y(qt.current,p(Rt))?y(qt.current,Rt,[]):y(An.current,Rt,[]),rn));$(qt.current,Rt,[...dn]),on.current.add(Rt);const Kn=la=>la.map(Oa=>P(Oa||{},rn)),Dn=()=>{const la=y(F(Tn,An.current),Rt,[]);return pe(y(qt.current,Rt,[]).map((Oa,wa)=>Object.assign(Object.assign({},Oa),la[wa])),rn)},Vn=(la,Oa)=>Oa?g(Oa.focusIndex)?Oa.focusName?Oa.focusName:Oa.shouldFocus?`${Rt}.${la}`:"":`${Rt}.${Oa.focusIndex}`:`${Rt}.${la}`,or=la=>_(la).forEach(Oa=>$(Tn.current,`${Rt}${g(Oa)?"":`.${Oa}`}`,g(Oa)?[]:void 0)),Qr=(la=[])=>mn(pe(la,rn)),ni=la=>!f(y(la,Rt,[])).length&&ae(la,Rt),yr=la=>la&&$(Zt.current.dirtyFields,Rt,fe(Kn(la),y(An.current,Rt,[]),y(Zt.current.dirtyFields,Rt,[]))),si=(la,Oa,wa=[],vo=!0)=>{if(Tt.current=!0,y(Tn.current,Rt)){const Qn=la(y(Tn.current,Rt),Oa.argA,Oa.argB);vo&&$(Tn.current,Rt,Qn)}if(Array.isArray(y(Zt.current.errors,Rt))){const Qn=la(y(Zt.current.errors,Rt),Oa.argA,Oa.argB);vo&&$(Zt.current.errors,Rt,Qn),ni(Zt.current.errors)}if(We.current.touchedFields&&y(Zt.current.touchedFields,Rt)){const Qn=la(y(Zt.current.touchedFields,Rt),Oa.argA,Oa.argB);vo&&$(Zt.current.touchedFields,Rt,Qn),ni(Zt.current.touchedFields)}(We.current.dirtyFields||We.current.isDirty)&&($(Zt.current.dirtyFields,Rt,fe(Kn(wa),y(An.current,Rt,[]),y(Zt.current.dirtyFields,Rt,[]))),yr(wa),ni(Zt.current.dirtyFields)),We.current.isValid&&($(Ft.current,Rt,la(y(Ft.current,Rt,[]),Oa.argA)),ni(Ft.current),$(it.current,Rt,la(y(it.current,Rt,[]),Oa.argA)),ni(it.current)),ot.current.next({isDirty:wt(Rt,Kn(wa)),errors:Zt.current.errors,isValid:Zt.current.isValid})},Yr=(la,Oa=0,wa="")=>la.forEach((vo,Qn)=>!ce(vo)&&Object.entries(vo).forEach(([_r,$r])=>{const Ti=`${wa||Rt}.${wa?Qn:Oa+Qn}.${_r}`;Array.isArray($r)?Yr($r,Qn,Ti):$(Tn.current,Ti,{_f:{ref:{name:Ti},name:Ti,value:$r}})})),Ci=(la,Oa)=>{const wa=_(la),vo=Se(Dn(),wa),Qn=vo.length-wa.length;Qr(vo),si(Se,{argA:he(la)},vo,!1),Yr(wa,Qn),ze.current=Vn(Qn,Oa)},Ni=(la,Oa)=>{const wa=_(la),vo=we(Dn(),wa);Qr(vo),si(we,{argA:he(la)},vo),Yr(wa),ze.current=Vn(0,Oa)},fa=la=>{const Oa=ht(Dn(),la);or(la),Qr(Oa),si(ht,{argA:la},Oa)},ha=(la,Oa,wa)=>{const vo=_(Oa),Qn=me(Dn(),la,vo);Qr(Qn),si(me,{argA:la,argB:he(Oa)},Qn),Yr(vo,la),ze.current=Vn(la,wa)},Ca=(la,Oa)=>{const wa=Dn();nt(wa,la,Oa),si(nt,{argA:la,argB:Oa},wa,!1),Qr(wa)},li=(la,Oa)=>{const wa=Dn();_e(wa,la,Oa),Qr(wa),si(_e,{argA:la,argB:Oa},wa,!1)};return i.useEffect(()=>{if(Tt.current=!1,st.current)ot.current.next({});else for(const la of en.current)if(Rt.startsWith(la)){ot.current.next({});break}Ke.current.next({name:Rt,value:y(F(Tn,An.current),Rt,[])}),ze.current&&k(Tn.current,la=>la.startsWith(ze.current)),ze.current="",Ut.current.next({name:Rt,fields:Kn([...dn])})},[dn,Rt]),i.useEffect(()=>{const la=Ut.current.subscribe({next({name:Oa,fields:wa,isReset:vo}){vo&&(ae(Tn.current,Oa||Rt),Oa?$(qt.current,Oa,wa):qt.current=wa,Qr(y(qt.current,Rt)))}});return!y(Tn.current,Rt)&&$(Tn.current,Rt,[]),()=>{la.unsubscribe(),(fn||sn)&&vn(Rt)}},[]),{swap:i.useCallback(Ca,[Rt]),move:i.useCallback(li,[Rt]),prepend:i.useCallback(Ni,[Rt]),append:i.useCallback(Ci,[Rt]),remove:i.useCallback(fa,[Rt]),insert:i.useCallback(ha,[Rt]),fields:dn}};function Me(rt,Rt){const rn={};for(const sn of rt){const Jn=y(Rt,sn);Jn&&(q(sn)?rn[sn]=Jn._f:$(rn,sn,Jn._f))}return rn}var Ye=rt=>rt.type==="file",qe=rt=>rt.type===`${S}-multiple`,At=rt=>rt.type==="radio";const It={value:!1,isValid:!1},Ce={value:!0,isValid:!0};var Ae=rt=>{if(Array.isArray(rt)){if(rt.length>1){const Rt=rt.filter(rn=>rn&&rn.checked&&!rn.disabled).map(rn=>rn.value);return{value:Rt,isValid:!!Rt.length}}return rt[0].checked&&!rt[0].disabled?rt[0].attributes&&!g(rt[0].attributes.value)?g(rt[0].value)||rt[0].value===""?Ce:{value:rt[0].value,isValid:!0}:Ce:It}return It},$e=(rt,{valueAsNumber:Rt,valueAsDate:rn,setValueAs:sn})=>Rt?rt===""?NaN:+rt:rn?new Date(rt):sn?sn(rt):rt,tt=rt=>[...rt].filter(({selected:Rt})=>Rt).map(({value:Rt})=>Rt);const ke={isValid:!1,value:null};var Oe=rt=>Array.isArray(rt)?rt.reduce((Rt,rn)=>rn&&rn.checked&&!rn.disabled?{isValid:!0,value:rn.value}:Rt,ke):ke;function je(rt){if(rt&&rt._f){const Rt=rt._f.ref;return Rt.disabled?void 0:Ye(Rt)?Rt.files:At(Rt)?Oe(rt._f.refs).value:qe(Rt)?tt(Rt.options):s(Rt)?Ae(rt._f.refs).value:$e(g(Rt.value)?rt._f.ref.value:Rt.value,rt._f)}}var Et=(rt,Rt)=>rt&&Rt&&(rt.required||rt.min||rt.max||rt.maxLength||rt.minLength||rt.pattern||rt.validate),ct=({isOnBlur:rt,isOnChange:Rt,isOnTouch:rn,isTouched:sn,isReValidateOnBlur:Jn,isReValidateOnChange:ze,isBlurEvent:st,isSubmitted:en,isOnAll:wt})=>wt?!1:!en&&rn?!(sn||st):(en?Jn:rt)?!st:(en?ze:Rt)?st:!0,ut=rt=>typeof rt=="function",Ne=rt=>typeof rt=="string",mt=rt=>Ne(rt)||i.isValidElement(rt),bt=rt=>rt instanceof RegExp;function Gt(rt,Rt,rn="validate"){if(mt(rt)||Array.isArray(rt)&&rt.every(mt)||Re(rt)&&!rt)return{type:rn,message:mt(rt)?rt:"",ref:Rt}}var hn=rt=>l(rt)&&!bt(rt)?rt:{value:rt,message:""},Yt=async({_f:{ref:rt,refs:Rt,required:rn,maxLength:sn,minLength:Jn,min:ze,max:st,pattern:en,validate:wt,name:Ke,value:Ut,valueAsNumber:on,mount:Tn}},An)=>{if(!Tn)return{};const Zt={},ot=At(rt),We=s(rt),Ft=ot||We,it=(on||Ye(rt))&&!rt.value||Ut===""||Array.isArray(Ut)&&!Ut.length,qt=J.bind(null,Ke,An,Zt),vn=(fn,Tt,dn,mn=x.maxLength,Kn=x.minLength)=>{const Dn=fn?Tt:dn;Zt[Ke]=Object.assign({type:fn?mn:Kn,message:Dn,ref:rt},qt(fn?mn:Kn,Dn))};if(rn&&(!ot&&!We&&(it||u(Ut))||Re(Ut)&&!Ut||We&&!Ae(Rt).isValid||ot&&!Oe(Rt).isValid)){const{value:fn,message:Tt}=mt(rn)?{value:!!rn,message:rn}:hn(rn);if(fn&&(Zt[Ke]=Object.assign({type:x.required,message:Tt,ref:Ft?(Rt||[])[0]||{}:rt},qt(x.required,Tt)),!An))return Zt}if((!u(ze)||!u(st))&&Ut!==""){let fn,Tt;const dn=hn(st),mn=hn(ze);if(isNaN(Ut)){const Kn=rt.valueAsDate||new Date(Ut);Ne(dn.value)&&(fn=Kn>new Date(dn.value)),Ne(mn.value)&&(Tt=Kn<new Date(mn.value))}else{const Kn=rt.valueAsNumber||parseFloat(Ut);u(dn.value)||(fn=Kn>dn.value),u(mn.value)||(Tt=Kn<mn.value)}if((fn||Tt)&&(vn(!!fn,dn.message,mn.message,x.max,x.min),!An))return Zt}if(Ne(Ut)&&!it&&(sn||Jn)){const fn=hn(sn),Tt=hn(Jn),dn=!u(fn.value)&&Ut.length>fn.value,mn=!u(Tt.value)&&Ut.length<Tt.value;if((dn||mn)&&(vn(dn,fn.message,Tt.message),!An))return Zt}if(Ne(Ut)&&en&&!it){const{value:fn,message:Tt}=hn(en);if(bt(fn)&&!Ut.match(fn)&&(Zt[Ke]=Object.assign({type:x.pattern,message:Tt,ref:rt},qt(x.pattern,Tt)),!An))return Zt}if(wt){const fn=Ft&&Rt?Rt[0]:rt;if(ut(wt)){const Tt=await wt(Ut),dn=Gt(Tt,fn);if(dn&&(Zt[Ke]=Object.assign(Object.assign({},dn),qt(x.validate,dn.message)),!An))return Zt}else if(l(wt)){let Tt={};for(const[dn,mn]of Object.entries(wt)){if(!N(Tt)&&!An)break;const Kn=await mn(Ut),Dn=Gt(Kn,fn,dn);Dn&&(Tt=Object.assign(Object.assign({},Dn),qt(dn,Dn.message)),An&&(Zt[Ke]=Tt))}if(!N(Tt)&&(Zt[Ke]=Object.assign({ref:fn},Tt),!An))return Zt}}return Zt},Bt=rt=>({isOnSubmit:!rt||rt===E.onSubmit,isOnBlur:rt===E.onBlur,isOnChange:rt===E.onChange,isOnAll:rt===E.all,isOnTouch:rt===E.onTouched}),Lt=rt=>rt instanceof HTMLElement,zt=rt=>At(rt)||s(rt);class Kt{constructor(){this.tearDowns=[]}add(Rt){this.tearDowns.push(Rt)}unsubscribe(){for(const Rt of this.tearDowns)Rt();this.tearDowns=[]}}class vt{constructor(Rt,rn){this.observer=Rt,this.closed=!1,rn.add(()=>this.closed=!0)}next(Rt){this.closed||this.observer.next(Rt)}}class Ve{constructor(){this.observers=[]}next(Rt){for(const rn of this.observers)rn.next(Rt)}subscribe(Rt){const rn=new Kt,sn=new vt(Rt,rn);return this.observers.push(sn),rn}unsubscribe(){this.observers=[]}}const lt=typeof window===w;function at({mode:rt=E.onSubmit,reValidateMode:Rt=E.onChange,resolver:rn,context:sn,defaultValues:Jn={},shouldFocusError:ze=!0,shouldUnregister:st,criteriaMode:en}={}){const wt=i.useRef({}),Ke=i.useRef(new Set),Ut=i.useRef(new Ve),on=i.useRef(new Set),Tn=i.useRef(new Ve),An=i.useRef(new Ve),Zt=i.useRef(new Ve),ot=i.useRef({}),We=i.useRef(!1),Ft=i.useRef(new Set),it=i.useRef(!1),qt=i.useRef({}),vn=i.useRef({}),fn=i.useRef(Jn),Tt=i.useRef(!1),dn=i.useRef(sn),mn=i.useRef(rn),Kn=i.useRef(new Set),Dn=Bt(rt),Vn=en===E.all,[or,Qr]=i.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!Dn.isOnSubmit,errors:{}}),ni=i.useRef({isDirty:!j,dirtyFields:!j,touchedFields:!j,isValidating:!j,isValid:!j,errors:!j}),yr=i.useRef(or);dn.current=sn,mn.current=rn;const si=()=>yr.current.isValid=G(vn.current,qt.current)&&N(yr.current.errors),Yr=i.useCallback((lr,Jr,pi=!1,Ri={},Ki,ia)=>{const Da=y(yr.current.errors,lr);let to=pi||!G(Da,Jr,!0)||ni.current.isValid&&g(Jr)&&y(qt.current,lr)&&!y(vn.current,lr);if(Jr?(ae(vn.current,lr),to=to||!Da||!G(Da,Jr,!0),$(yr.current.errors,lr,Jr)):((y(qt.current,lr)||mn.current)&&($(vn.current,lr,!0),to=to||Da),ae(yr.current.errors,lr)),to&&!u(pi)||!N(Ri)||ia){const ao=Object.assign(Object.assign({},Ri),{isValid:mn.current?!!Ki:si(),errors:yr.current.errors,name:lr});yr.current=Object.assign(Object.assign({},yr.current),ao),Ut.current.next(ia?{name:lr}:ao)}Ut.current.next({isValidating:!1})},[]),Ci=i.useCallback((lr,Jr,pi={},Ri,Ki)=>{Ki&&jn(lr);const ia=y(wt.current,lr,{})._f;if(ia){const Da=W&&Lt(ia.ref)&&u(Jr)?"":Jr;if(ia.value=$e(Jr,ia),At(ia.ref)?(ia.refs||[]).forEach(to=>to.checked=to.value===Da):Ye(ia.ref)&&!Ne(Da)?ia.ref.files=Da:qe(ia.ref)?[...ia.ref.options].forEach(to=>to.selected=Da.includes(to.value)):s(ia.ref)&&ia.refs?ia.refs.length>1?ia.refs.forEach(to=>to.checked=Array.isArray(Da)?!!Da.find(ao=>ao===to.value):Da===to.value):ia.refs[0].checked=!!Da:ia.ref.value=Da,Ri){const to=F(wt);$(to,lr,Jr),An.current.next({values:Object.assign(Object.assign({},fn.current),to),name:lr})}pi.shouldDirty&&fa(lr,Da),pi.shouldValidate&&la(lr)}},[]),Ni=i.useCallback((lr,Jr)=>{const pi=F(wt);return lr&&Jr&&$(pi,lr,Jr),!G(pi,fn.current)},[]),fa=i.useCallback((lr,Jr,pi=!0)=>{if(ni.current.isDirty||ni.current.dirtyFields){const Ri=!G(y(fn.current,lr),Jr),Ki=y(yr.current.dirtyFields,lr),ia=yr.current.isDirty;Ri?$(yr.current.dirtyFields,lr,!0):ae(yr.current.dirtyFields,lr),yr.current.isDirty=Ni();const Da={isDirty:yr.current.isDirty,dirtyFields:yr.current.dirtyFields,name:lr},to=ni.current.isDirty&&ia!==Da.isDirty||ni.current.dirtyFields&&Ki!==y(yr.current.dirtyFields,lr);return to&&pi&&Ut.current.next(Da),to?Da:{}}return{}},[]),ha=i.useCallback(async(lr,Jr)=>{const pi=(await Yt(y(wt.current,lr),Vn))[lr];return Yr(lr,pi,Jr),g(pi)},[Vn]),Ca=i.useCallback(async(lr,Jr=[])=>{const{errors:pi}=await mn.current(F(wt,st?{}:fn.current),dn.current,{criteriaMode:en,names:Jr,fields:Me(Ke.current,wt.current)});for(const Ri of lr){const Ki=y(pi,Ri);Ki?$(yr.current.errors,Ri,Ki):ae(yr.current.errors,Ri)}return pi},[en]),li=async lr=>{let Jr=!0;for(const pi in lr){const Ri=lr[pi];if(Ri){const Ki=Ri._f,ia=P(Ri,"_f");if(Ki){const Da=await Yt(Ri,Vn);Da[Ki.name]?(Jr=!1,$(yr.current.errors,Ki.name,Da[Ki.name]),ae(vn.current,Ki.name)):y(qt.current,Ki.name)&&($(vn.current,Ki.name,!0),ae(yr.current.errors,Ki.name))}ia&&await li(ia)}}return Jr},la=i.useCallback(async lr=>{const Jr=g(lr)?Object.keys(wt.current):_(lr);let pi,Ri={};return Ut.current.next({isValidating:!0}),mn.current?(Ri=await Ca(Jr,g(lr)?void 0:Jr),pi=Jr.every(Ki=>!y(Ri,Ki))):pi=g(lr)?await li(wt.current):(await Promise.all(Jr.filter(Ki=>y(wt.current,Ki)).map(async Ki=>await ha(Ki,null)))).every(Boolean),Ut.current.next(Object.assign(Object.assign({},Ne(lr)?{name:lr}:{}),{errors:yr.current.errors,isValidating:!1,isValid:mn.current?N(Ri):si()})),pi},[Ca,ha]),Oa=i.useCallback((lr,Jr,pi)=>Object.entries(Jr).forEach(([Ri,Ki])=>{const ia=`${lr}.${Ri}`,Da=y(wt.current,ia);Kn.current.has(lr)||Da&&!Da._f?Oa(ia,Ki,pi):Ci(ia,Ki,pi,!0,!Da)}),[la]),wa=lr=>Tt.current||Ft.current.has(lr)||Ft.current.has((lr.match(/\w+/)||[])[0]),vo=(lr,Jr,pi,Ri)=>{const Ki=y(wt.current,lr),ia=g(Ki._f.value)?y(fn.current,lr):Ki._f.value;return Ki&&!g(ia)&&(pi&&pi.defaultChecked?Ki._f.value=je(Ki):d(Kn.current,lr)?Ki._f.value=ia:Ci(lr,ia)),(!g(ia)||Ri)&&Et(Jr,Ki._f.mount)&&!Dn.isOnSubmit&&Ki&&ni.current.isValid&&Yt(Ki,Vn).then(Da=>{N(Da)?$(vn.current,lr,!0):ae(vn.current,lr),yr.current.isValid!==si()&&Qr(Object.assign(Object.assign({},yr.current),{isValid:si()}))}),ia},Qn=(lr,Jr,pi={})=>{const Ri=y(wt.current,lr),Ki=Kn.current.has(lr);Ki&&(Zt.current.next({fields:Jr,name:lr,isReset:!0}),(ni.current.isDirty||ni.current.dirtyFields)&&pi.shouldDirty&&($(yr.current.dirtyFields,lr,fe(Jr,y(fn.current,lr,[]),y(yr.current.dirtyFields,lr,[]))),Ut.current.next({name:lr,dirtyFields:yr.current.dirtyFields,isDirty:Ni(lr,Jr)})),!Jr.length&&$(wt.current,lr,[])&&$(ot.current,lr,[])),Ri&&!Ri._f||Ki?Oa(lr,Jr,Ki?{}:pi):Ci(lr,Jr,pi,!0,!Ri),wa(lr)&&Ut.current.next({}),Tn.current.next({name:lr,value:Jr})},_r=i.useCallback(async({type:lr,target:Jr,target:{value:pi,type:Ri}})=>{let Ki=Jr.name,ia,Da;const to=y(wt.current,Ki);if(to){let ao=Ri?je(to):void 0;ao=g(ao)?pi:ao;const Bo=lr===b.BLUR,{isOnBlur:jo,isOnChange:Jo}=Bt(Rt),Go=!Et(to._f,to._f.mount)&&!mn.current&&!y(yr.current.errors,Ki)||ct(Object.assign({isBlurEvent:Bo,isTouched:!!y(yr.current.touchedFields,Ki),isSubmitted:yr.current.isSubmitted,isReValidateOnBlur:jo,isReValidateOnChange:Jo},Dn)),wr=!Bo&&wa(Ki);g(ao)||(to._f.value=ao);const qi=fa(Ki,to._f.value,!1);Bo&&!y(yr.current.touchedFields,Ki)&&($(yr.current.touchedFields,Ki,!0),ni.current.touchedFields&&(qi.touchedFields=yr.current.touchedFields));let ja=!N(qi)||wr;if(Go)return!Bo&&Tn.current.next({name:Ki,type:lr,value:ao}),ja&&Ut.current.next(wr?{name:Ki}:Object.assign(Object.assign({},qi),{name:Ki}));if(Ut.current.next({isValidating:!0}),mn.current){const{errors:uo}=await mn.current(F(wt,st?{}:fn.current),dn.current,{criteriaMode:en,fields:Me([Ki],wt.current),names:[Ki]}),wi=yr.current.isValid;if(ia=y(uo,Ki),s(Jr)&&!ia){const ai=p(Ki),za=y(uo,ai,{});za.type&&za.message&&(ia=za),(za||y(yr.current.errors,ai))&&(Ki=ai)}Da=N(uo),wi!==Da&&(ja=!0)}else ia=(await Yt(to,Vn))[Ki];!Bo&&Tn.current.next({name:Ki,type:lr,value:ao}),Yr(Ki,ia,ja,qi,Da,wr)}},[]),$r=lr=>{const Jr=it.current?F(wt,st?{}:fn.current):fn.current;return g(lr)?Jr:Ne(lr)?y(Jr,lr):lr.map(pi=>y(Jr,pi))},Ti=i.useCallback(async(lr={})=>{const Jr=yr.current.isValid;if(rn){const{errors:pi}=await mn.current(Object.assign(Object.assign({},F(wt,st?{}:fn.current)),lr),dn.current,{criteriaMode:en,fields:Me(Ke.current,wt.current)});yr.current.isValid=N(pi)}else si();Jr!==yr.current.isValid&&Ut.current.next({isValid:yr.current.isValid})},[en]),xt=lr=>{lr?_(lr).forEach(Jr=>ae(yr.current.errors,Jr)):yr.current.errors={},Ut.current.next({errors:yr.current.errors})},On=(lr,Jr,pi)=>{const Ri=((y(wt.current,lr)||{_f:{}})._f||{}).ref;$(yr.current.errors,lr,Object.assign(Object.assign({},Jr),{ref:Ri})),Ut.current.next({name:lr,errors:yr.current.errors,isValid:!1}),pi&&pi.shouldFocus&&Ri&&Ri.focus&&Ri.focus()},Zn=i.useCallback((lr,Jr,pi)=>{const Ri=Array.isArray(lr),Ki=it.current?F(wt,fn.current):g(Jr)?fn.current:Ri?Jr||{}:{[lr]:Jr};if(g(lr))return pi&&(Tt.current=!0),Ki;const ia=[];for(const Da of Ri?lr:[lr])pi&&Ft.current.add(Da),ia.push(y(Ki,Da));return Ri?ia:ia[0]},[]),Ur=(lr,Jr)=>ut(lr)?Tn.current.subscribe({next:pi=>lr(Zn(void 0,Jr),pi)}):Zn(lr,Jr,!0),En=(lr,Jr={})=>{for(const pi of lr?_(lr):Object.keys(Ke.current))Ke.current.delete(pi),Kn.current.delete(pi),y(wt.current,pi)&&(Jr.keepIsValid||(ae(qt.current,pi),ae(vn.current,pi)),!Jr.keepError&&ae(yr.current.errors,pi),!Jr.keepValue&&ae(wt.current,pi),!Jr.keepDirty&&ae(yr.current.dirtyFields,pi),!Jr.keepTouched&&ae(yr.current.touchedFields,pi),!st&&!Jr.keepDefaultValue&&ae(fn.current,pi),Tn.current.next({name:pi}));Ut.current.next(Object.assign(Object.assign(Object.assign({},yr.current),Jr.keepDirty?{isDirty:Ni()}:{}),mn.current?{}:{isValid:si()})),!Jr.keepIsValid&&Ti()},ln=(lr,Jr,pi)=>{jn(lr,pi);let Ri=y(wt.current,lr);const Ki=zt(Jr);if(Jr===Ri._f.ref||W&&Lt(Ri._f.ref)&&!Lt(Jr)||Ki&&Array.isArray(Ri._f.refs)&&f(Ri._f.refs).find(Da=>Da===Jr))return;Ri={_f:Ki?Object.assign(Object.assign({},Ri._f),{refs:[...f(Ri._f.refs||[]).filter(Da=>Lt(Da)&&document.contains(Da)),Jr],ref:{type:Jr.type,name:lr}}):Object.assign(Object.assign({},Ri._f),{ref:Jr})},$(wt.current,lr,Ri);const ia=vo(lr,pi,Jr,!0);(Ki&&Array.isArray(ia)?!G(y(wt.current,lr)._f.value,ia):g(y(wt.current,lr)._f.value))&&(y(wt.current,lr)._f.value=je(y(wt.current,lr)))},jn=i.useCallback((lr,Jr)=>{const pi=!y(wt.current,lr);return $(wt.current,lr,{_f:Object.assign(Object.assign(Object.assign({},pi?{ref:{name:lr}}:Object.assign({ref:(y(wt.current,lr)._f||{}).ref},y(wt.current,lr)._f)),{name:lr,mount:!0}),Jr)}),Et(Jr,!0)&&$(qt.current,lr,!0),Ke.current.add(lr),pi&&vo(lr,Jr),lt?{name:lr}:{name:lr,onChange:_r,onBlur:_r,ref:Ri=>{if(Ri)ln(lr,Ri,Jr);else{const Ki=y(wt.current,lr),ia=st||Jr&&Jr.shouldUnregister;Ki&&(Ki._f.mount=!1),W&&(d(Kn.current,lr)?ia&&!We.current:ia)&&on.current.add(lr)}}}},[fn.current]),rr=i.useCallback((lr,Jr)=>async pi=>{pi&&(pi.preventDefault&&pi.preventDefault(),pi.persist&&pi.persist());let Ri=!0,Ki=F(wt,st?{}:fn.current);Ut.current.next({isSubmitting:!0});try{if(mn.current){const{errors:ia,values:Da}=await mn.current(Ki,dn.current,{criteriaMode:en,fields:Me(Ke.current,wt.current)});yr.current.errors=ia,Ki=Da}else await li(wt.current);N(yr.current.errors)&&Object.keys(yr.current.errors).every(ia=>y(Ki,ia))?(Ut.current.next({errors:{},isSubmitting:!0}),await lr(Ki,pi)):(Jr&&await Jr(yr.current.errors,pi),ze&&k(wt.current,ia=>y(yr.current.errors,ia),Ke.current))}catch{Ri=!1}finally{yr.current.isSubmitted=!0,Ut.current.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:N(yr.current.errors)&&Ri,submitCount:yr.current.submitCount+1,errors:yr.current.errors})}},[ze,Vn,en]),Mr=i.useCallback(({keepErrors:lr,keepDirty:Jr,keepIsSubmitted:pi,keepTouched:Ri,keepDefaultValues:Ki,keepIsValid:ia,keepSubmitCount:Da},to)=>{ia||(vn.current={},qt.current={}),Ft.current=new Set,Tt.current=!1,Ut.current.next({submitCount:Da?yr.current.submitCount:0,isDirty:Jr?yr.current.isDirty:Ki?G(to,fn.current):!1,isSubmitted:pi?yr.current.isSubmitted:!1,isValid:ia?yr.current.isValid:!!Ti(to),dirtyFields:Jr?yr.current.dirtyFields:{},touchedFields:Ri?yr.current.touchedFields:{},errors:lr?yr.current.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},[]),Ir=(lr,Jr={})=>{const pi=lr||fn.current;if(W&&!Jr.keepValues)for(const Ri of Ke.current){const Ki=y(wt.current,Ri);if(Ki&&Ki._f){const ia=Array.isArray(Ki._f.refs)?Ki._f.refs[0]:Ki._f.ref;if(Lt(ia))try{ia.closest("form").reset();break}catch{}}}!Jr.keepDefaultValues&&(fn.current=Object.assign({},pi)),Jr.keepValues||(wt.current={},An.current.next({values:Object.assign({},pi)}),Tn.current.next({value:Object.assign({},pi)}),Zt.current.next({fields:Object.assign({},pi),isReset:!0})),Mr(Jr,lr),it.current=!1},Zr=lr=>y(wt.current,lr)._f.ref.focus();return i.useEffect(()=>{const lr=Ut.current.subscribe({next(pi){K(pi,ni.current,!0)&&(yr.current=Object.assign(Object.assign({},yr.current),pi),Qr(yr.current))}}),Jr=Zt.current.subscribe({next(pi){if(pi.fields&&pi.name&&ni.current.isValid){const Ri=F(wt);$(Ri,pi.name,pi.fields),Ti(Ri)}}});return mn.current&&ni.current.isValid&&Ti(),()=>{Tn.current.unsubscribe(),lr.unsubscribe(),Jr.unsubscribe()}},[]),i.useEffect(()=>{const lr=Jr=>!Lt(Jr)||!document.contains(Jr);it.current=!0,on.current.forEach(Jr=>{const pi=y(wt.current,Jr);pi&&(pi._f.refs?pi._f.refs.every(lr):lr(pi._f.ref))&&En(Jr)}),on.current=new Set}),{control:i.useMemo(()=>({register:jn,isWatchAllRef:Tt,inFieldArrayActionRef:We,watchFieldsRef:Ft,getIsDirty:Ni,formStateSubjectRef:Ut,fieldArraySubjectRef:Zt,controllerSubjectRef:An,watchSubjectRef:Tn,watchInternal:Zn,fieldsRef:wt,validFieldsRef:vn,fieldsWithValidationRef:qt,fieldArrayNamesRef:Kn,readFormStateRef:ni,formStateRef:yr,defaultValuesRef:fn,fieldArrayDefaultValuesRef:ot,unregister:En,shouldUnmountUnregister:st}),[]),formState:I(j,or,ni),trigger:la,register:jn,handleSubmit:rr,watch:i.useCallback(Ur,[]),setValue:i.useCallback(Qn,[Oa]),getValues:i.useCallback($r,[]),reset:i.useCallback(Ir,[]),clearErrors:i.useCallback(xt,[]),unregister:i.useCallback(En,[]),setError:i.useCallback(On,[]),setFocus:i.useCallback(Zr,[])}}function Xt(rt){const{control:Rt,name:rn,defaultValue:sn}=rt||{},Jn=T(),ze=i.useRef(rn);ze.current=rn;const{watchInternal:st,watchSubjectRef:en}=Rt||Jn.control,[wt,Ke]=i.useState(g(sn)?st(rn):sn);return i.useEffect(()=>{st(rn);const Ut=en.current.subscribe({next:({name:on,value:Tn})=>(!ze.current||!on||_(ze.current).some(An=>on&&An&&(An.startsWith(on)||on.startsWith(An))))&&Ke(Ne(on)&&ze.current===on&&!g(Tn)?Tn:st(ze.current,sn))});return()=>Ut.unsubscribe()},[]),wt}},92046:(C,c,t)=>{"use strict";t.d(c,{c:()=>k});var i=t(4696),s=t(4484),u=t(23190),v=t(27702),l=t(75022),h=t.n(l),p=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function d(F){var V={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},pe=F.match(/<\/?([^\s]+?)[/\s>]/);if(pe&&(V.name=pe[1],(h()[pe[1]]||F.charAt(F.length-2)==="/")&&(V.voidElement=!0),V.name.startsWith("!--"))){var ce=F.indexOf("-->");return{type:"comment",comment:ce!==-1?F.slice(4,ce):""}}for(var G=new RegExp(p),te=null;(te=G.exec(F))!==null;)if(te[0].trim())if(te[1]){var ie=te[1].trim(),fe=[ie,""];ie.indexOf("=")>-1&&(fe=ie.split("=")),V.attrs[fe[0]]=fe[1],G.lastIndex--}else te[2]&&(V.attrs[te[2]]=te[3].trim().substring(1,te[3].length-1));return V}var f=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,g=/^\s*$/,y=Object.create(null);function b(F,V){switch(V.type){case"text":return F+V.content;case"tag":return F+="<"+V.name+(V.attrs?function(pe){var ce=[];for(var G in pe)ce.push(G+'="'+pe[G]+'"');return ce.length?" "+ce.join(" "):""}(V.attrs):"")+(V.voidElement?"/>":">"),V.voidElement?F:F+V.children.reduce(b,"")+"</"+V.name+">";case"comment":return F+"<!--"+V.comment+"-->"}}var E={parse:function(F,V){V||(V={}),V.components||(V.components=y);var pe,ce=[],G=[],te=-1,ie=!1;if(F.indexOf("<")!==0){var fe=F.indexOf("<");ce.push({type:"text",content:fe===-1?F:F.substring(0,fe)})}return F.replace(f,function(Se,he){if(ie){if(Se!=="</"+pe.name+">")return;ie=!1}var me,_e=Se.charAt(1)!=="/",we=Se.startsWith("<!--"),Ge=he+Se.length,ht=F.charAt(Ge);if(we){var nt=d(Se);return te<0?(ce.push(nt),ce):((me=G[te]).children.push(nt),ce)}if(_e&&(te++,(pe=d(Se)).type==="tag"&&V.components[pe.name]&&(pe.type="component",ie=!0),pe.voidElement||ie||!ht||ht==="<"||pe.children.push({type:"text",content:F.slice(Ge,F.indexOf("<",Ge))}),te===0&&ce.push(pe),(me=G[te-1])&&me.children.push(pe),G[te]=pe),(!_e||pe.voidElement)&&(te>-1&&(pe.voidElement||pe.name===Se.slice(2,-1))&&(te--,pe=te===-1?ce:G[te]),!ie&&ht!=="<"&&ht)){me=te===-1?ce:G[te].children;var Re=F.indexOf("<",Ge),ue=F.slice(Ge,Re===-1?void 0:Re);g.test(ue)&&(ue=" "),(Re>-1&&te+me.length>=0||ue!==" ")&&me.push({type:"text",content:ue})}}),ce},stringify:function(F){return F.reduce(function(V,pe){return V+b("",pe)},"")}};const S=E;var w=t(83399);function x(){if(console&&console.warn){for(var F,V=arguments.length,pe=new Array(V),ce=0;ce<V;ce++)pe[ce]=arguments[ce];typeof pe[0]=="string"&&(pe[0]="react-i18next:: ".concat(pe[0])),(F=console).warn.apply(F,pe)}}var P={};function R(){for(var F=arguments.length,V=new Array(F),pe=0;pe<F;pe++)V[pe]=arguments[pe];typeof V[0]=="string"&&P[V[0]]||(typeof V[0]=="string"&&(P[V[0]]=new Date),x.apply(void 0,V))}function T(F,V,pe){F.loadNamespaces(V,function(){if(F.isInitialized)pe();else{var ce=function G(){setTimeout(function(){F.off("initialized",G)},0),pe()};F.on("initialized",ce)}})}function A(F,V){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ce=V.languages[0],G=V.options?V.options.fallbackLng:!1,te=V.languages[V.languages.length-1];if(ce.toLowerCase()==="cimode")return!0;var ie=function(Se,he){var me=V.services.backendConnector.state["".concat(Se,"|").concat(he)];return me===-1||me===2};return pe.bindI18n&&pe.bindI18n.indexOf("languageChanging")>-1&&V.services.backendConnector.backend&&V.isLanguageChangingTo&&!ie(V.isLanguageChangingTo,F)?!1:!!(V.hasResourceBundle(ce,F)||!V.services.backendConnector.backend||V.options.resources&&!V.options.partialBundledLanguages||ie(ce,F)&&(!G||ie(te,F)))}function I(F,V){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!V.languages||!V.languages.length)return R("i18n.languages were undefined or empty",V.languages),!0;var ce=V.options.ignoreJSONStructure!==void 0;return ce?V.hasLoadedNamespace(F,{precheck:function(te,ie){if(pe.bindI18n&&pe.bindI18n.indexOf("languageChanging")>-1&&te.services.backendConnector.backend&&te.isLanguageChangingTo&&!ie(te.isLanguageChangingTo,F))return!1}}):A(F,V,pe)}function N(F){return F.displayName||F.name||(typeof F=="string"&&F.length>0?F:"Unknown")}var K=["format"],_=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function W(F,V){var pe=Object.keys(F);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(F);V&&(ce=ce.filter(function(G){return Object.getOwnPropertyDescriptor(F,G).enumerable})),pe.push.apply(pe,ce)}return pe}function j(F){for(var V=1;V<arguments.length;V++){var pe=arguments[V]!=null?arguments[V]:{};V%2?W(Object(pe),!0).forEach(function(ce){(0,u.Z)(F,ce,pe[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(pe)):W(Object(pe)).forEach(function(ce){Object.defineProperty(F,ce,Object.getOwnPropertyDescriptor(pe,ce))})}return F}function re(F,V){if(!F)return!1;var pe=F.props?F.props.children:F.children;return V?pe.length>0:!!pe}function X(F){return F?F.props?F.props.children:F.children:[]}function Z(F){return Object.prototype.toString.call(F)!=="[object Array]"?!1:F.every(function(V){return(0,v.isValidElement)(V)})}function J(F){return Array.isArray(F)?F:[F]}function q(F,V){var pe=j({},V);return pe.props=Object.assign(F.props,V.props),pe}function L(F,V){if(!F)return"";var pe="",ce=J(F),G=V.transSupportBasicHtmlNodes&&V.transKeepBasicHtmlNodesFor?V.transKeepBasicHtmlNodesFor:[];return ce.forEach(function(te,ie){if(typeof te=="string")pe+="".concat(te);else if((0,v.isValidElement)(te)){var fe=Object.keys(te.props).length,Se=G.indexOf(te.type)>-1,he=te.props.children;if(!he&&Se&&fe===0)pe+="<".concat(te.type,"/>");else if(!he&&(!Se||fe!==0))pe+="<".concat(ie,"></").concat(ie,">");else if(te.props.i18nIsDynamicList)pe+="<".concat(ie,"></").concat(ie,">");else if(Se&&fe===1&&typeof he=="string")pe+="<".concat(te.type,">").concat(he,"</").concat(te.type,">");else{var me=L(he,V);pe+="<".concat(ie,">").concat(me,"</").concat(ie,">")}}else if(te===null)x("Trans: the passed in value is invalid - seems you passed in a null child.");else if((0,s.Z)(te)==="object"){var _e=te.format,we=(0,i.Z)(te,K),Ge=Object.keys(we);if(Ge.length===1){var ht=_e?"".concat(Ge[0],", ").concat(_e):Ge[0];pe+="{{".concat(ht,"}}")}else x("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",te)}else x("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",te)}),pe}function $(F,V,pe,ce,G,te){if(V==="")return[];var ie=ce.transKeepBasicHtmlNodesFor||[],fe=V&&new RegExp(ie.join("|")).test(V);if(!F&&!fe)return[V];var Se={};function he(Re){var ue=J(Re);ue.forEach(function(ae){typeof ae!="string"&&(re(ae)?he(X(ae)):(0,s.Z)(ae)==="object"&&!(0,v.isValidElement)(ae)&&Object.assign(Se,ae))})}he(F);var me=S.parse("<0>".concat(V,"</0>")),_e=j(j({},Se),G);function we(Re,ue,ae){var ve=X(Re),Me=ht(ve,ue.children,ae);return Z(ve)&&Me.length===0?ve:Me}function Ge(Re,ue,ae,ve,Me){Re.dummy&&(Re.children=ue),ae.push((0,v.cloneElement)(Re,j(j({},Re.props),{},{key:ve}),Me?void 0:ue))}function ht(Re,ue,ae){var ve=J(Re),Me=J(ue);return Me.reduce(function(Ye,qe,At){var It=qe.children&&qe.children[0]&&qe.children[0].content&&pe.services.interpolator.interpolate(qe.children[0].content,_e,pe.language);if(qe.type==="tag"){var Ce=ve[parseInt(qe.name,10)];!Ce&&ae.length===1&&ae[0][qe.name]&&(Ce=ae[0][qe.name]),Ce||(Ce={});var Ae=Object.keys(qe.attrs).length!==0?q({props:qe.attrs},Ce):Ce,$e=(0,v.isValidElement)(Ae),tt=$e&&re(qe,!0)&&!qe.voidElement,ke=fe&&(0,s.Z)(Ae)==="object"&&Ae.dummy&&!$e,Oe=(0,s.Z)(F)==="object"&&F!==null&&Object.hasOwnProperty.call(F,qe.name);if(typeof Ae=="string"){var je=pe.services.interpolator.interpolate(Ae,_e,pe.language);Ye.push(je)}else if(re(Ae)||tt){var Et=we(Ae,qe,ae);Ge(Ae,Et,Ye,At)}else if(ke){var ct=ht(ve,qe.children,ae);Ye.push((0,v.cloneElement)(Ae,j(j({},Ae.props),{},{key:At}),ct))}else if(Number.isNaN(parseFloat(qe.name)))if(Oe){var ut=we(Ae,qe,ae);Ge(Ae,ut,Ye,At,qe.voidElement)}else if(ce.transSupportBasicHtmlNodes&&ie.indexOf(qe.name)>-1)if(qe.voidElement)Ye.push((0,v.createElement)(qe.name,{key:"".concat(qe.name,"-").concat(At)}));else{var Ne=ht(ve,qe.children,ae);Ye.push((0,v.createElement)(qe.name,{key:"".concat(qe.name,"-").concat(At)},Ne))}else if(qe.voidElement)Ye.push("<".concat(qe.name," />"));else{var mt=ht(ve,qe.children,ae);Ye.push("<".concat(qe.name,">").concat(mt,"</").concat(qe.name,">"))}else if((0,s.Z)(Ae)==="object"&&!$e){var bt=qe.children[0]?It:null;bt&&Ye.push(bt)}else qe.children.length===1&&It?Ye.push((0,v.cloneElement)(Ae,j(j({},Ae.props),{},{key:At}),It)):Ye.push((0,v.cloneElement)(Ae,j(j({},Ae.props),{},{key:At})))}else if(qe.type==="text"){var Gt=ce.transWrapTextNodes,hn=te?ce.unescape(pe.services.interpolator.interpolate(qe.content,_e,pe.language)):pe.services.interpolator.interpolate(qe.content,_e,pe.language);Gt?Ye.push((0,v.createElement)(Gt,{key:"".concat(qe.name,"-").concat(At)},hn)):Ye.push(hn)}return Ye},[])}var nt=ht([{dummy:!0,children:F||[]}],me,J(F||[]));return X(nt[0])}function k(F){var V=F.children,pe=F.count,ce=F.parent,G=F.i18nKey,te=F.context,ie=F.tOptions,fe=ie===void 0?{}:ie,Se=F.values,he=F.defaults,me=F.components,_e=F.ns,we=F.i18n,Ge=F.t,ht=F.shouldUnescape,nt=(0,i.Z)(F,_),Re=(0,v.useContext)(w.OO)||{},ue=Re.i18n,ae=Re.defaultNS,ve=we||ue||(0,w.nI)();if(!ve)return R("You will need to pass in an i18next instance by using i18nextReactModule"),V;var Me=Ge||ve.t.bind(ve)||function(je){return je};te&&(fe.context=te);var Ye=j(j({},(0,w.JP)()),ve.options&&ve.options.react),qe=_e||Me.ns||ae||ve.options&&ve.options.defaultNS;qe=typeof qe=="string"?[qe]:qe||["translation"];var At=he||L(V,Ye)||Ye.transEmptyNodeValue||G,It=Ye.hashTransKey,Ce=G||(It?It(At):At),Ae=Se?fe.interpolation:{interpolation:j(j({},fe.interpolation),{},{prefix:"#$?",suffix:"?$#"})},$e=j(j(j(j({},fe),{},{count:pe},Se),Ae),{},{defaultValue:At,ns:qe}),tt=Ce?Me(Ce,$e):At,ke=$(me||V,tt,ve,Ye,$e,ht),Oe=ce!==void 0?ce:Ye.defaultTransParent;return Oe?(0,v.createElement)(Oe,nt,ke):ke}},83399:(C,c,t)=>{"use strict";t.d(c,{OO:()=>E,JP:()=>w,nI:()=>R,Db:()=>T});var i=t(87741),s=t(58585),u=t(23190),v=t(27702),l=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,h={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},p=function(K){return h[K]},d=function(K){return K.replace(l,p)};function f(N,K){var _=Object.keys(N);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(N);K&&(W=W.filter(function(j){return Object.getOwnPropertyDescriptor(N,j).enumerable})),_.push.apply(_,W)}return _}function g(N){for(var K=1;K<arguments.length;K++){var _=arguments[K]!=null?arguments[K]:{};K%2?f(Object(_),!0).forEach(function(W){(0,u.Z)(N,W,_[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(_)):f(Object(_)).forEach(function(W){Object.defineProperty(N,W,Object.getOwnPropertyDescriptor(_,W))})}return N}var y={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:d},b,E=(0,v.createContext)();function S(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};y=g(g({},y),N)}function w(){return y}var x=function(){function N(){(0,i.Z)(this,N),this.usedNamespaces={}}return(0,s.Z)(N,[{key:"addUsedNamespaces",value:function(_){var W=this;_.forEach(function(j){W.usedNamespaces[j]||(W.usedNamespaces[j]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),N}();function P(N){b=N}function R(){return b}var T={type:"3rdParty",init:function(K){S(K.options.react),P(K)}};function A(N){return function(K){return new Promise(function(_){var W=I();N.getInitialProps?N.getInitialProps(K).then(function(j){_(g(g({},j),W))}):_(W)})}}function I(){var N=R(),K=N.reportNamespaces?N.reportNamespaces.getUsedNamespaces():[],_={},W={};return N.languages.forEach(function(j){W[j]={},K.forEach(function(re){W[j][re]=N.getResourceBundle(j,re)||{}})}),_.initialI18nStore=W,_.initialLanguage=N.language,_}},49658:(C,c,t)=>{"use strict";var i=t(77592),s="<<anonymous>>",u,v=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};v.isRequired=v;var l=function(){return v};u={listOf:l,mapOf:l,orderedMapOf:l,setOf:l,orderedSetOf:l,stackOf:l,iterableOf:l,recordOf:l,shape:l,contains:l,mapContains:l,orderedMapContains:l,list:v,map:v,orderedMap:v,set:v,orderedSet:v,stack:v,seq:v,record:v,iterable:v},u.iterable.indexed=f("Indexed",i.Iterable.isIndexed),u.iterable.keyed=f("Keyed",i.Iterable.isKeyed);function h(W){var j=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":W instanceof i.Iterable?"Immutable."+W.toSource().split(" ")[0]:j}function p(W){function j(X,Z,J,q,L,$){for(var k=arguments.length,F=Array(k>6?k-6:0),V=6;V<k;V++)F[V-6]=arguments[V];if($=$||J,q=q||s,Z[J]==null){var pe=L;if(X)return new Error("Required "+pe+" `"+$+"` was not specified in "+("`"+q+"`."))}else return W.apply(void 0,[Z,J,q,L,$].concat(F))}var re=j.bind(null,!1);return re.isRequired=j.bind(null,!0),re}function d(W,j){function re(X,Z,J,q,L){var $=X[Z];if(!j($)){var k=h($);return new Error("Invalid "+q+" `"+L+"` of type `"+k+"` "+("supplied to `"+J+"`, expected `"+W+"`."))}return null}return p(re)}function f(W,j){return d("Iterable."+W,function(re){return i.Iterable.isIterable(re)&&j(re)})}function g(W,j,re){function X(Z,J,q,L,$){for(var k=arguments.length,F=Array(k>5?k-5:0),V=5;V<k;V++)F[V-5]=arguments[V];var pe=Z[J];if(!re(pe)){var ce=L,G=h(pe);return new Error("Invalid "+ce+" `"+$+"` of type "+("`"+G+"` supplied to `"+q+"`, expected an Immutable.js "+j+"."))}if(typeof W!="function")return new Error("Invalid typeChecker supplied to `"+q+"` "+("for propType `"+$+"`, expected a function."));for(var te=pe.valueSeq().toArray(),ie=0,fe=te.length;ie<fe;ie++){var Se=W.apply(void 0,[te,ie,q,L,""+$+"["+ie+"]"].concat(F));if(Se instanceof Error)return Se}}return p(X)}function y(W){function j(re,X,Z,J,q){for(var L=arguments.length,$=Array(L>5?L-5:0),k=5;k<L;k++)$[k-5]=arguments[k];var F=re[X];if(typeof W!="function")return new Error("Invalid keysTypeChecker (optional second argument) supplied to `"+Z+"` "+("for propType `"+q+"`, expected a function."));for(var V=F.keySeq().toArray(),pe=0,ce=V.length;pe<ce;pe++){var G=W.apply(void 0,[V,pe,Z,J,""+q+" -> key("+V[pe]+")"].concat($));if(G instanceof Error)return G}}return p(j)}function b(W){return g(W,"List",i.List.isList)}function E(W,j,re,X){function Z(){for(var J=arguments.length,q=Array(J),L=0;L<J;L++)q[L]=arguments[L];return g(W,re,X).apply(void 0,q)||j&&y(j).apply(void 0,q)}return p(Z)}function S(W,j){return E(W,j,"Map",i.Map.isMap)}function w(W,j){return E(W,j,"OrderedMap",i.OrderedMap.isOrderedMap)}function x(W){return g(W,"Set",i.Set.isSet)}function P(W){return g(W,"OrderedSet",i.OrderedSet.isOrderedSet)}function R(W){return g(W,"Stack",i.Stack.isStack)}function T(W){return g(W,"Iterable",i.Iterable.isIterable)}function A(W){function j(re,X,Z,J,q){for(var L=arguments.length,$=Array(L>5?L-5:0),k=5;k<L;k++)$[k-5]=arguments[k];var F=re[X];if(!(F instanceof i.Record)){var V=h(F),pe=J;return new Error("Invalid "+pe+" `"+q+"` of type `"+V+"` "+("supplied to `"+Z+"`, expected an Immutable.js Record."))}for(var ce in W){var G=W[ce];if(G){var te=F.toObject(),ie=G.apply(void 0,[te,ce,Z,J,""+q+"."+ce].concat($));if(ie)return ie}}}return p(j)}function I(W){var j=arguments[1]===void 0?"Iterable":arguments[1],re=arguments[2]===void 0?i.Iterable.isIterable:arguments[2];function X(Z,J,q,L,$){for(var k=arguments.length,F=Array(k>5?k-5:0),V=5;V<k;V++)F[V-5]=arguments[V];var pe=Z[J];if(!re(pe)){var ce=h(pe),G=L;return new Error("Invalid "+G+" `"+$+"` of type `"+ce+"` "+("supplied to `"+q+"`, expected an Immutable.js "+j+"."))}var te=pe.toObject();for(var ie in W){var fe=W[ie];if(fe){var Se=fe.apply(void 0,[te,ie,q,L,""+$+"."+ie].concat(F));if(Se)return Se}}}return p(X)}function N(W){return I(W)}function K(W){return I(W,"Map",i.Map.isMap)}function _(W){return I(W,"OrderedMap",i.OrderedMap.isOrderedMap)}C.exports=u},98432:(C,c,t)=>{"use strict";t.d(c,{V:()=>X,Z:()=>J});var i=t(27702),s=function(q,L){var $=typeof Symbol=="function"&&q[Symbol.iterator];if(!$)return q;var k=$.call(q),F,V=[],pe;try{for(;(L===void 0||L-- >0)&&!(F=k.next()).done;)V.push(F.value)}catch(ce){pe={error:ce}}finally{try{F&&!F.done&&($=k.return)&&$.call(k)}finally{if(pe)throw pe.error}}return V},u=function(q){var L=q.split(/ ?; ?/);return L.reduce(function($,k){var F=s(k.split(/ ?: ?/),2),V=F[0],pe=F[1];return V&&pe&&($[V.replace(/-(\w)/g,function(ce,G){return G.toUpperCase()})]=Number.isNaN(Number(pe))?pe:Number(pe)),$},{})};function v(q){q===void 0&&(q=6);for(var L="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",$="",k=q;k>0;--k)$+=L[Math.round(Math.random()*(L.length-1))];return $}var l=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],h={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"},p=function(){return p=Object.assign||function(q){for(var L,$=1,k=arguments.length;$<k;$++){L=arguments[$];for(var F in L)Object.prototype.hasOwnProperty.call(L,F)&&(q[F]=L[F])}return q},p.apply(this,arguments)},d=function(q,L){var $=typeof Symbol=="function"&&q[Symbol.iterator];if(!$)return q;var k=$.call(q),F,V=[],pe;try{for(;(L===void 0||L-- >0)&&!(F=k.next()).done;)V.push(F.value)}catch(ce){pe={error:ce}}finally{try{F&&!F.done&&($=k.return)&&$.call(k)}finally{if(pe)throw pe.error}}return V},f=function(q,L,$){if($||arguments.length===2)for(var k=0,F=L.length,V;k<F;k++)(V||!(k in L))&&(V||(V=Array.prototype.slice.call(L,0,k)),V[k]=L[k]);return q.concat(V||Array.prototype.slice.call(L))};function g(q,L){var $={key:L};if(q instanceof Element){var k=q.getAttribute("class");k&&($.className=k),f([],d(q.attributes),!1).forEach(function(F){switch(F.name){case"class":break;case"style":$[F.name]=u(F.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":$[h[F.name]||F.name]=!0;break;default:$[h[F.name]||F.name]=F.value}})}return $}function y(q,L,$){var k=f([],d(q),!1).map(function(F,V){return E(F,p(p({},$),{index:V,level:L+1}))}).filter(Boolean);return k.length?k:null}function b(q){return/[a-z]+[A-Z]+[a-z]+/.test(q)?q:q.toLowerCase()}function E(q,L){var $;if(L===void 0&&(L={}),!q||!(q instanceof Node))return null;var k=L.actions,F=k===void 0?[]:k,V=L.index,pe=V===void 0?0:V,ce=L.level,G=ce===void 0?0:ce,te=L.randomKey,ie=q,fe="".concat(G,"-").concat(pe),Se=[];if(te&&G===0&&(fe="".concat(v(),"-").concat(fe)),Array.isArray(F)&&F.forEach(function(_e){_e.condition(ie,fe,G)&&(typeof _e.pre=="function"&&(ie=_e.pre(ie,fe,G),ie instanceof Node||(ie=q)),typeof _e.post=="function"&&Se.push(_e.post(ie,fe,G)))}),Se.length)return Se;switch(ie.nodeType){case 1:return i.createElement(b(ie.nodeName),g(ie,fe),y(ie.childNodes,G,L));case 3:{var he=(($=ie.nodeValue)===null||$===void 0?void 0:$.toString())||"";if(/^\s+$/.test(he)&&!/[\u00A0\u202F]/.test(he))return null;if(!ie.parentNode)return he;var me=ie.parentNode.nodeName.toLowerCase();return l.includes(me)?(/\S/.test(he)&&console.warn("A textNode is not allowed inside '".concat(me,`'. Your text "`).concat(he,'" will be ignored')),null):he}case 8:return null;default:return null}}function S(q,L){if(L===void 0&&(L={}),!q||typeof q!="string")return null;var $=L.nodeOnly,k=$===void 0?!1:$,F=L.selector,V=F===void 0?"body > *":F,pe=L.type,ce=pe===void 0?"text/html":pe;try{var G=new DOMParser,te=G.parseFromString(q,ce),ie=te.querySelector(V);if(!(ie instanceof Node))throw new TypeError("Error parsing input");return k?ie:E(ie,L)}catch{}return null}function w(q,L){return L===void 0&&(L={}),typeof q=="string"?S(q,L):q instanceof Node?E(q,L):null}var x=t(80888),P={FAILED:"failed",LOADED:"loaded",LOADING:"loading",PENDING:"pending",READY:"ready",UNSUPPORTED:"unsupported"};function R(){return x.canUseDOM}function T(){return A()&&typeof window<"u"&&window!==null}function A(){if(!document)return!1;var q=document.createElement("div");q.innerHTML="<svg />";var L=q.firstChild;return!!L&&L.namespaceURI==="http://www.w3.org/2000/svg"}function I(q){return q[Math.floor(Math.random()*q.length)]}function N(q){for(var L="abcdefghijklmnopqrstuvwxyz",$="1234567890",k="".concat(L).concat(L.toUpperCase()).concat($),F="",V=0;V<q;V++)F+=I(k);return F}function K(q){for(var L=[],$=1;$<arguments.length;$++)L[$-1]=arguments[$];var k={};for(var F in q)({}).hasOwnProperty.call(q,F)&&(L.includes(F)||(k[F]=q[F]));return k}var _=function(){var q=function(L,$){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,F){k.__proto__=F}||function(k,F){for(var V in F)Object.prototype.hasOwnProperty.call(F,V)&&(k[V]=F[V])},q(L,$)};return function(L,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");q(L,$);function k(){this.constructor=L}L.prototype=$===null?Object.create($):(k.prototype=$.prototype,new k)}}(),W=function(){return W=Object.assign||function(q){for(var L,$=1,k=arguments.length;$<k;$++){L=arguments[$];for(var F in L)Object.prototype.hasOwnProperty.call(L,F)&&(q[F]=L[F])}return q},W.apply(this,arguments)},j=function(q,L){var $=typeof Symbol=="function"&&q[Symbol.iterator];if(!$)return q;var k=$.call(q),F,V=[],pe;try{for(;(L===void 0||L-- >0)&&!(F=k.next()).done;)V.push(F.value)}catch(ce){pe={error:ce}}finally{try{F&&!F.done&&($=k.return)&&$.call(k)}finally{if(pe)throw pe.error}}return V},re=function(q,L,$){if($||arguments.length===2)for(var k=0,F=L.length,V;k<F;k++)(V||!(k in L))&&(V||(V=Array.prototype.slice.call(L,0,k)),V[k]=L[k]);return q.concat(V||Array.prototype.slice.call(L))},X=Object.create(null),Z=function(q){_(L,q);function L($){var k=q.call(this,$)||this;return Object.defineProperty(k,"isInitialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(k,"isActive",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(k,"hash",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(k,"handleLoad",{enumerable:!0,configurable:!0,writable:!0,value:function(F,V){V===void 0&&(V=!1),k.isActive&&k.setState({content:F,hasCache:V,status:P.LOADED},k.getElement)}}),Object.defineProperty(k,"handleError",{enumerable:!0,configurable:!0,writable:!0,value:function(F){var V=k.props.onError,pe=F.message==="Browser does not support SVG"?P.UNSUPPORTED:P.FAILED;k.isActive&&k.setState({status:pe},function(){typeof V=="function"&&V(F)})}}),Object.defineProperty(k,"request",{enumerable:!0,configurable:!0,writable:!0,value:function(){var F=k.props,V=F.cacheRequests,pe=F.fetchOptions,ce=F.src;try{return V&&(X[ce]={content:"",status:P.LOADING}),fetch(ce,pe).then(function(G){var te=G.headers.get("content-type"),ie=j((te||"").split(/ ?; ?/),1),fe=ie[0];if(G.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(function(Se){return fe.includes(Se)}))throw new Error("Content type isn't valid: ".concat(fe));return G.text()}).then(function(G){var te=k.props.src;if(ce!==te){X[ce].status===P.LOADING&&delete X[ce];return}if(k.handleLoad(G),V){var ie=X[ce];ie&&(ie.content=G,ie.status=P.LOADED)}}).catch(function(G){if(k.handleError(G),V){var te=X[ce];te&&delete X[ce]}})}catch(G){return k.handleError(new Error(G.message))}}}),k.state={content:"",element:null,hasCache:!!$.cacheRequests&&!!X[$.src],status:P.PENDING},k.hash=$.uniqueHash||N(8),k}return Object.defineProperty(L.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.isActive=!0,!(!R()||this.isInitialized)){var $=this.state.status,k=this.props.src;try{if($===P.PENDING){if(!T())throw new Error("Browser does not support SVG");if(!k)throw new Error("Missing src");this.load()}}catch(F){this.handleError(F)}this.isInitialized=!0}}}),Object.defineProperty(L.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function($,k){if(R()){var F=this.state,V=F.hasCache,pe=F.status,ce=this.props,G=ce.onLoad,te=ce.src;if(k.status!==P.READY&&pe===P.READY&&G&&G(te,V),$.src!==te){if(!te){this.handleError(new Error("Missing src"));return}this.load()}}}}),Object.defineProperty(L.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isActive=!1}}),Object.defineProperty(L.prototype,"getNode",{enumerable:!1,configurable:!0,writable:!0,value:function(){var $=this.props,k=$.description,F=$.title;try{var V=this.processSVG(),pe=w(V,{nodeOnly:!0});if(!pe||!(pe instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");var ce=this.updateSVGAttributes(pe);if(k){var G=ce.querySelector("desc");G&&G.parentNode&&G.parentNode.removeChild(G);var te=document.createElementNS("http://www.w3.org/2000/svg","desc");te.innerHTML=k,ce.prepend(te)}if(typeof F<"u"){var ie=ce.querySelector("title");if(ie&&ie.parentNode&&ie.parentNode.removeChild(ie),F){var fe=document.createElementNS("http://www.w3.org/2000/svg","title");fe.innerHTML=F,ce.prepend(fe)}}return ce}catch(Se){return this.handleError(Se)}}}),Object.defineProperty(L.prototype,"getElement",{enumerable:!1,configurable:!0,writable:!0,value:function(){try{var $=this.getNode(),k=w($);if(!k||!i.isValidElement(k))throw new Error("Could not convert the src to a React element");this.setState({element:k,status:P.READY})}catch(F){this.handleError(new Error(F.message))}}}),Object.defineProperty(L.prototype,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(){var $=this;this.isActive&&this.setState({content:"",element:null,hasCache:!1,status:P.LOADING},function(){var k=$.props,F=k.cacheRequests,V=k.src,pe=F&&X[V];if(pe&&pe.status===P.LOADED){$.handleLoad(pe.content,!0);return}var ce=V.match(/data:image\/svg[^,]*?(;base64)?,(.*)/),G;if(ce?G=ce[1]?window.atob(ce[2]):decodeURIComponent(ce[2]):V.includes("<svg")&&(G=V),G){$.handleLoad(G);return}$.request()})}}),Object.defineProperty(L.prototype,"updateSVGAttributes",{enumerable:!1,configurable:!0,writable:!0,value:function($){var k=this,F=this.props,V=F.baseURL,pe=V===void 0?"":V,ce=F.uniquifyIDs,G=["id","href","xlink:href","xlink:role","xlink:arcrole"],te=["href","xlink:href"],ie=function(fe,Se){return te.includes(fe)&&(Se?!Se.includes("#"):!1)};return ce&&re([],j($.children),!1).map(function(fe){if(fe.attributes&&fe.attributes.length){var Se=Object.values(fe.attributes).map(function(he){var me=he,_e=he.value.match(/url\((.*?)\)/);return _e&&_e[1]&&(me.value=he.value.replace(_e[0],"url(".concat(pe).concat(_e[1],"__").concat(k.hash,")"))),me});G.forEach(function(he){var me=Se.find(function(_e){return _e.name===he});me&&!ie(he,me.value)&&(me.value="".concat(me.value,"__").concat(k.hash))})}return fe.children.length?k.updateSVGAttributes(fe):fe}),$}}),Object.defineProperty(L.prototype,"processSVG",{enumerable:!1,configurable:!0,writable:!0,value:function(){var $=this.state.content,k=this.props.preProcessor;return k?k($):$}}),Object.defineProperty(L.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var $=this.state,k=$.element,F=$.status,V=this.props,pe=V.children,ce=pe===void 0?null:pe,G=V.innerRef,te=V.loader,ie=te===void 0?null:te,fe=K(this.props,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return R()?k?i.cloneElement(k,W({ref:G},fe)):[P.UNSUPPORTED,P.FAILED].includes(F)?ce:ie:ie}}),Object.defineProperty(L,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{cacheRequests:!0,uniquifyIDs:!1}}),L}(i.PureComponent);const J=Z},66609:(C,c,t)=>{"use strict";t.d(c,{O:()=>Ur});var i=t(46340),s=t(94285),u=t(27702),v=t(27473);function l(En){if(En==null)return window;if(En.toString()!=="[object Window]"){var ln=En.ownerDocument;return ln&&ln.defaultView||window}return En}function h(En){var ln=l(En).Element;return En instanceof ln||En instanceof Element}function p(En){var ln=l(En).HTMLElement;return En instanceof ln||En instanceof HTMLElement}function d(En){if(typeof ShadowRoot>"u")return!1;var ln=l(En).ShadowRoot;return En instanceof ln||En instanceof ShadowRoot}var f=Math.max,g=Math.min,y=Math.round;function b(En,ln){ln===void 0&&(ln=!1);var jn=En.getBoundingClientRect(),rr=1,Mr=1;if(p(En)&&ln){var Ir=En.offsetHeight,Zr=En.offsetWidth;Zr>0&&(rr=y(jn.width)/Zr||1),Ir>0&&(Mr=y(jn.height)/Ir||1)}return{width:jn.width/rr,height:jn.height/Mr,top:jn.top/Mr,right:jn.right/rr,bottom:jn.bottom/Mr,left:jn.left/rr,x:jn.left/rr,y:jn.top/Mr}}function E(En){var ln=l(En),jn=ln.pageXOffset,rr=ln.pageYOffset;return{scrollLeft:jn,scrollTop:rr}}function S(En){return{scrollLeft:En.scrollLeft,scrollTop:En.scrollTop}}function w(En){return En===l(En)||!p(En)?E(En):S(En)}function x(En){return En?(En.nodeName||"").toLowerCase():null}function P(En){return((h(En)?En.ownerDocument:En.document)||window.document).documentElement}function R(En){return b(P(En)).left+E(En).scrollLeft}function T(En){return l(En).getComputedStyle(En)}function A(En){var ln=T(En),jn=ln.overflow,rr=ln.overflowX,Mr=ln.overflowY;return/auto|scroll|overlay|hidden/.test(jn+Mr+rr)}function I(En){var ln=En.getBoundingClientRect(),jn=y(ln.width)/En.offsetWidth||1,rr=y(ln.height)/En.offsetHeight||1;return jn!==1||rr!==1}function N(En,ln,jn){jn===void 0&&(jn=!1);var rr=p(ln),Mr=p(ln)&&I(ln),Ir=P(ln),Zr=b(En,Mr),lr={scrollLeft:0,scrollTop:0},Jr={x:0,y:0};return(rr||!rr&&!jn)&&((x(ln)!=="body"||A(Ir))&&(lr=w(ln)),p(ln)?(Jr=b(ln,!0),Jr.x+=ln.clientLeft,Jr.y+=ln.clientTop):Ir&&(Jr.x=R(Ir))),{x:Zr.left+lr.scrollLeft-Jr.x,y:Zr.top+lr.scrollTop-Jr.y,width:Zr.width,height:Zr.height}}function K(En){var ln=b(En),jn=En.offsetWidth,rr=En.offsetHeight;return Math.abs(ln.width-jn)<=1&&(jn=ln.width),Math.abs(ln.height-rr)<=1&&(rr=ln.height),{x:En.offsetLeft,y:En.offsetTop,width:jn,height:rr}}function _(En){return x(En)==="html"?En:En.assignedSlot||En.parentNode||(d(En)?En.host:null)||P(En)}function W(En){return["html","body","#document"].indexOf(x(En))>=0?En.ownerDocument.body:p(En)&&A(En)?En:W(_(En))}function j(En,ln){var jn;ln===void 0&&(ln=[]);var rr=W(En),Mr=rr===((jn=En.ownerDocument)==null?void 0:jn.body),Ir=l(rr),Zr=Mr?[Ir].concat(Ir.visualViewport||[],A(rr)?rr:[]):rr,lr=ln.concat(Zr);return Mr?lr:lr.concat(j(_(Zr)))}function re(En){return["table","td","th"].indexOf(x(En))>=0}function X(En){return!p(En)||T(En).position==="fixed"?null:En.offsetParent}function Z(En){var ln=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,jn=navigator.userAgent.indexOf("Trident")!==-1;if(jn&&p(En)){var rr=T(En);if(rr.position==="fixed")return null}var Mr=_(En);for(d(Mr)&&(Mr=Mr.host);p(Mr)&&["html","body"].indexOf(x(Mr))<0;){var Ir=T(Mr);if(Ir.transform!=="none"||Ir.perspective!=="none"||Ir.contain==="paint"||["transform","perspective"].indexOf(Ir.willChange)!==-1||ln&&Ir.willChange==="filter"||ln&&Ir.filter&&Ir.filter!=="none")return Mr;Mr=Mr.parentNode}return null}function J(En){for(var ln=l(En),jn=X(En);jn&&re(jn)&&T(jn).position==="static";)jn=X(jn);return jn&&(x(jn)==="html"||x(jn)==="body"&&T(jn).position==="static")?ln:jn||Z(En)||ln}var q="top",L="bottom",$="right",k="left",F="auto",V=[q,L,$,k],pe="start",ce="end",G="clippingParents",te="viewport",ie="popper",fe="reference",Se=V.reduce(function(En,ln){return En.concat([ln+"-"+pe,ln+"-"+ce])},[]),he=[].concat(V,[F]).reduce(function(En,ln){return En.concat([ln,ln+"-"+pe,ln+"-"+ce])},[]),me="beforeRead",_e="read",we="afterRead",Ge="beforeMain",ht="main",nt="afterMain",Re="beforeWrite",ue="write",ae="afterWrite",ve=[me,_e,we,Ge,ht,nt,Re,ue,ae];function Me(En){var ln=new Map,jn=new Set,rr=[];En.forEach(function(Ir){ln.set(Ir.name,Ir)});function Mr(Ir){jn.add(Ir.name);var Zr=[].concat(Ir.requires||[],Ir.requiresIfExists||[]);Zr.forEach(function(lr){if(!jn.has(lr)){var Jr=ln.get(lr);Jr&&Mr(Jr)}}),rr.push(Ir)}return En.forEach(function(Ir){jn.has(Ir.name)||Mr(Ir)}),rr}function Ye(En){var ln=Me(En);return ve.reduce(function(jn,rr){return jn.concat(ln.filter(function(Mr){return Mr.phase===rr}))},[])}function qe(En){var ln;return function(){return ln||(ln=new Promise(function(jn){Promise.resolve().then(function(){ln=void 0,jn(En())})})),ln}}function At(En){var ln=En.reduce(function(jn,rr){var Mr=jn[rr.name];return jn[rr.name]=Mr?Object.assign({},Mr,rr,{options:Object.assign({},Mr.options,rr.options),data:Object.assign({},Mr.data,rr.data)}):rr,jn},{});return Object.keys(ln).map(function(jn){return ln[jn]})}var It="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ce="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Ae={placement:"bottom",modifiers:[],strategy:"absolute"};function $e(){for(var En=arguments.length,ln=new Array(En),jn=0;jn<En;jn++)ln[jn]=arguments[jn];return!ln.some(function(rr){return!(rr&&typeof rr.getBoundingClientRect=="function")})}function tt(En){En===void 0&&(En={});var ln=En,jn=ln.defaultModifiers,rr=jn===void 0?[]:jn,Mr=ln.defaultOptions,Ir=Mr===void 0?Ae:Mr;return function(lr,Jr,pi){pi===void 0&&(pi=Ir);var Ri={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ae,Ir),modifiersData:{},elements:{reference:lr,popper:Jr},attributes:{},styles:{}},Ki=[],ia=!1,Da={state:Ri,setOptions:function(jo){var Jo=typeof jo=="function"?jo(Ri.options):jo;ao(),Ri.options=Object.assign({},Ir,Ri.options,Jo),Ri.scrollParents={reference:h(lr)?j(lr):lr.contextElement?j(lr.contextElement):[],popper:j(Jr)};var Go=Ye(At([].concat(rr,Ri.options.modifiers)));if(Ri.orderedModifiers=Go.filter(function(Mt){return Mt.enabled}),!1)var wr,qi,ja,uo,wi,ai,za;return to(),Da.update()},forceUpdate:function(){if(!ia){var jo=Ri.elements,Jo=jo.reference,Go=jo.popper;if($e(Jo,Go)){Ri.rects={reference:N(Jo,J(Go),Ri.options.strategy==="fixed"),popper:K(Go)},Ri.reset=!1,Ri.placement=Ri.options.placement,Ri.orderedModifiers.forEach(function(Mt){return Ri.modifiersData[Mt.name]=Object.assign({},Mt.data)});for(var wr=0,qi=0;qi<Ri.orderedModifiers.length;qi++){if(Ri.reset===!0){Ri.reset=!1,qi=-1;continue}var ja=Ri.orderedModifiers[qi],uo=ja.fn,wi=ja.options,ai=wi===void 0?{}:wi,za=ja.name;typeof uo=="function"&&(Ri=uo({state:Ri,options:ai,name:za,instance:Da})||Ri)}}}},update:qe(function(){return new Promise(function(Bo){Da.forceUpdate(),Bo(Ri)})}),destroy:function(){ao(),ia=!0}};if(!$e(lr,Jr))return Da;Da.setOptions(pi).then(function(Bo){!ia&&pi.onFirstUpdate&&pi.onFirstUpdate(Bo)});function to(){Ri.orderedModifiers.forEach(function(Bo){var jo=Bo.name,Jo=Bo.options,Go=Jo===void 0?{}:Jo,wr=Bo.effect;if(typeof wr=="function"){var qi=wr({state:Ri,name:jo,instance:Da,options:Go}),ja=function(){};Ki.push(qi||ja)}})}function ao(){Ki.forEach(function(Bo){return Bo()}),Ki=[]}return Da}}var ke=null,Oe={passive:!0};function je(En){var ln=En.state,jn=En.instance,rr=En.options,Mr=rr.scroll,Ir=Mr===void 0?!0:Mr,Zr=rr.resize,lr=Zr===void 0?!0:Zr,Jr=l(ln.elements.popper),pi=[].concat(ln.scrollParents.reference,ln.scrollParents.popper);return Ir&&pi.forEach(function(Ri){Ri.addEventListener("scroll",jn.update,Oe)}),lr&&Jr.addEventListener("resize",jn.update,Oe),function(){Ir&&pi.forEach(function(Ri){Ri.removeEventListener("scroll",jn.update,Oe)}),lr&&Jr.removeEventListener("resize",jn.update,Oe)}}const Et={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:je,data:{}};function ct(En){return En.split("-")[0]}function ut(En){return En.split("-")[1]}function Ne(En){return["top","bottom"].indexOf(En)>=0?"x":"y"}function mt(En){var ln=En.reference,jn=En.element,rr=En.placement,Mr=rr?ct(rr):null,Ir=rr?ut(rr):null,Zr=ln.x+ln.width/2-jn.width/2,lr=ln.y+ln.height/2-jn.height/2,Jr;switch(Mr){case q:Jr={x:Zr,y:ln.y-jn.height};break;case L:Jr={x:Zr,y:ln.y+ln.height};break;case $:Jr={x:ln.x+ln.width,y:lr};break;case k:Jr={x:ln.x-jn.width,y:lr};break;default:Jr={x:ln.x,y:ln.y}}var pi=Mr?Ne(Mr):null;if(pi!=null){var Ri=pi==="y"?"height":"width";switch(Ir){case pe:Jr[pi]=Jr[pi]-(ln[Ri]/2-jn[Ri]/2);break;case ce:Jr[pi]=Jr[pi]+(ln[Ri]/2-jn[Ri]/2);break;default:}}return Jr}function bt(En){var ln=En.state,jn=En.name;ln.modifiersData[jn]=mt({reference:ln.rects.reference,element:ln.rects.popper,strategy:"absolute",placement:ln.placement})}const Gt={name:"popperOffsets",enabled:!0,phase:"read",fn:bt,data:{}};var hn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yt(En){var ln=En.x,jn=En.y,rr=window,Mr=rr.devicePixelRatio||1;return{x:y(ln*Mr)/Mr||0,y:y(jn*Mr)/Mr||0}}function Bt(En){var ln,jn=En.popper,rr=En.popperRect,Mr=En.placement,Ir=En.variation,Zr=En.offsets,lr=En.position,Jr=En.gpuAcceleration,pi=En.adaptive,Ri=En.roundOffsets,Ki=En.isFixed,ia=Zr.x,Da=ia===void 0?0:ia,to=Zr.y,ao=to===void 0?0:to,Bo=typeof Ri=="function"?Ri({x:Da,y:ao}):{x:Da,y:ao};Da=Bo.x,ao=Bo.y;var jo=Zr.hasOwnProperty("x"),Jo=Zr.hasOwnProperty("y"),Go=k,wr=q,qi=window;if(pi){var ja=J(jn),uo="clientHeight",wi="clientWidth";if(ja===l(jn)&&(ja=P(jn),T(ja).position!=="static"&&lr==="absolute"&&(uo="scrollHeight",wi="scrollWidth")),ja=ja,Mr===q||(Mr===k||Mr===$)&&Ir===ce){wr=L;var ai=Ki&&ja===qi&&qi.visualViewport?qi.visualViewport.height:ja[uo];ao-=ai-rr.height,ao*=Jr?1:-1}if(Mr===k||(Mr===q||Mr===L)&&Ir===ce){Go=$;var za=Ki&&ja===qi&&qi.visualViewport?qi.visualViewport.width:ja[wi];Da-=za-rr.width,Da*=Jr?1:-1}}var Mt=Object.assign({position:lr},pi&&hn),Gn=Ri===!0?Yt({x:Da,y:ao}):{x:Da,y:ao};if(Da=Gn.x,ao=Gn.y,Jr){var qn;return Object.assign({},Mt,(qn={},qn[wr]=Jo?"0":"",qn[Go]=jo?"0":"",qn.transform=(qi.devicePixelRatio||1)<=1?"translate("+Da+"px, "+ao+"px)":"translate3d("+Da+"px, "+ao+"px, 0)",qn))}return Object.assign({},Mt,(ln={},ln[wr]=Jo?ao+"px":"",ln[Go]=jo?Da+"px":"",ln.transform="",ln))}function Lt(En){var ln=En.state,jn=En.options,rr=jn.gpuAcceleration,Mr=rr===void 0?!0:rr,Ir=jn.adaptive,Zr=Ir===void 0?!0:Ir,lr=jn.roundOffsets,Jr=lr===void 0?!0:lr;if(!1)var pi;var Ri={placement:ct(ln.placement),variation:ut(ln.placement),popper:ln.elements.popper,popperRect:ln.rects.popper,gpuAcceleration:Mr,isFixed:ln.options.strategy==="fixed"};ln.modifiersData.popperOffsets!=null&&(ln.styles.popper=Object.assign({},ln.styles.popper,Bt(Object.assign({},Ri,{offsets:ln.modifiersData.popperOffsets,position:ln.options.strategy,adaptive:Zr,roundOffsets:Jr})))),ln.modifiersData.arrow!=null&&(ln.styles.arrow=Object.assign({},ln.styles.arrow,Bt(Object.assign({},Ri,{offsets:ln.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Jr})))),ln.attributes.popper=Object.assign({},ln.attributes.popper,{"data-popper-placement":ln.placement})}const zt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Lt,data:{}};function Kt(En){var ln=En.state;Object.keys(ln.elements).forEach(function(jn){var rr=ln.styles[jn]||{},Mr=ln.attributes[jn]||{},Ir=ln.elements[jn];!p(Ir)||!x(Ir)||(Object.assign(Ir.style,rr),Object.keys(Mr).forEach(function(Zr){var lr=Mr[Zr];lr===!1?Ir.removeAttribute(Zr):Ir.setAttribute(Zr,lr===!0?"":lr)}))})}function vt(En){var ln=En.state,jn={popper:{position:ln.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(ln.elements.popper.style,jn.popper),ln.styles=jn,ln.elements.arrow&&Object.assign(ln.elements.arrow.style,jn.arrow),function(){Object.keys(ln.elements).forEach(function(rr){var Mr=ln.elements[rr],Ir=ln.attributes[rr]||{},Zr=Object.keys(ln.styles.hasOwnProperty(rr)?ln.styles[rr]:jn[rr]),lr=Zr.reduce(function(Jr,pi){return Jr[pi]="",Jr},{});!p(Mr)||!x(Mr)||(Object.assign(Mr.style,lr),Object.keys(Ir).forEach(function(Jr){Mr.removeAttribute(Jr)}))})}}const Ve={name:"applyStyles",enabled:!0,phase:"write",fn:Kt,effect:vt,requires:["computeStyles"]};function lt(En,ln,jn){var rr=ct(En),Mr=[k,q].indexOf(rr)>=0?-1:1,Ir=typeof jn=="function"?jn(Object.assign({},ln,{placement:En})):jn,Zr=Ir[0],lr=Ir[1];return Zr=Zr||0,lr=(lr||0)*Mr,[k,$].indexOf(rr)>=0?{x:lr,y:Zr}:{x:Zr,y:lr}}function at(En){var ln=En.state,jn=En.options,rr=En.name,Mr=jn.offset,Ir=Mr===void 0?[0,0]:Mr,Zr=he.reduce(function(Ri,Ki){return Ri[Ki]=lt(Ki,ln.rects,Ir),Ri},{}),lr=Zr[ln.placement],Jr=lr.x,pi=lr.y;ln.modifiersData.popperOffsets!=null&&(ln.modifiersData.popperOffsets.x+=Jr,ln.modifiersData.popperOffsets.y+=pi),ln.modifiersData[rr]=Zr}const Xt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:at};var rt={left:"right",right:"left",bottom:"top",top:"bottom"};function Rt(En){return En.replace(/left|right|bottom|top/g,function(ln){return rt[ln]})}var rn={start:"end",end:"start"};function sn(En){return En.replace(/start|end/g,function(ln){return rn[ln]})}function Jn(En){var ln=l(En),jn=P(En),rr=ln.visualViewport,Mr=jn.clientWidth,Ir=jn.clientHeight,Zr=0,lr=0;return rr&&(Mr=rr.width,Ir=rr.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(Zr=rr.offsetLeft,lr=rr.offsetTop)),{width:Mr,height:Ir,x:Zr+R(En),y:lr}}function ze(En){var ln,jn=P(En),rr=E(En),Mr=(ln=En.ownerDocument)==null?void 0:ln.body,Ir=f(jn.scrollWidth,jn.clientWidth,Mr?Mr.scrollWidth:0,Mr?Mr.clientWidth:0),Zr=f(jn.scrollHeight,jn.clientHeight,Mr?Mr.scrollHeight:0,Mr?Mr.clientHeight:0),lr=-rr.scrollLeft+R(En),Jr=-rr.scrollTop;return T(Mr||jn).direction==="rtl"&&(lr+=f(jn.clientWidth,Mr?Mr.clientWidth:0)-Ir),{width:Ir,height:Zr,x:lr,y:Jr}}function st(En,ln){var jn=ln.getRootNode&&ln.getRootNode();if(En.contains(ln))return!0;if(jn&&d(jn)){var rr=ln;do{if(rr&&En.isSameNode(rr))return!0;rr=rr.parentNode||rr.host}while(rr)}return!1}function en(En){return Object.assign({},En,{left:En.x,top:En.y,right:En.x+En.width,bottom:En.y+En.height})}function wt(En){var ln=b(En);return ln.top=ln.top+En.clientTop,ln.left=ln.left+En.clientLeft,ln.bottom=ln.top+En.clientHeight,ln.right=ln.left+En.clientWidth,ln.width=En.clientWidth,ln.height=En.clientHeight,ln.x=ln.left,ln.y=ln.top,ln}function Ke(En,ln){return ln===te?en(Jn(En)):h(ln)?wt(ln):en(ze(P(En)))}function Ut(En){var ln=j(_(En)),jn=["absolute","fixed"].indexOf(T(En).position)>=0,rr=jn&&p(En)?J(En):En;return h(rr)?ln.filter(function(Mr){return h(Mr)&&st(Mr,rr)&&x(Mr)!=="body"}):[]}function on(En,ln,jn){var rr=ln==="clippingParents"?Ut(En):[].concat(ln),Mr=[].concat(rr,[jn]),Ir=Mr[0],Zr=Mr.reduce(function(lr,Jr){var pi=Ke(En,Jr);return lr.top=f(pi.top,lr.top),lr.right=g(pi.right,lr.right),lr.bottom=g(pi.bottom,lr.bottom),lr.left=f(pi.left,lr.left),lr},Ke(En,Ir));return Zr.width=Zr.right-Zr.left,Zr.height=Zr.bottom-Zr.top,Zr.x=Zr.left,Zr.y=Zr.top,Zr}function Tn(){return{top:0,right:0,bottom:0,left:0}}function An(En){return Object.assign({},Tn(),En)}function Zt(En,ln){return ln.reduce(function(jn,rr){return jn[rr]=En,jn},{})}function ot(En,ln){ln===void 0&&(ln={});var jn=ln,rr=jn.placement,Mr=rr===void 0?En.placement:rr,Ir=jn.boundary,Zr=Ir===void 0?G:Ir,lr=jn.rootBoundary,Jr=lr===void 0?te:lr,pi=jn.elementContext,Ri=pi===void 0?ie:pi,Ki=jn.altBoundary,ia=Ki===void 0?!1:Ki,Da=jn.padding,to=Da===void 0?0:Da,ao=An(typeof to!="number"?to:Zt(to,V)),Bo=Ri===ie?fe:ie,jo=En.rects.popper,Jo=En.elements[ia?Bo:Ri],Go=on(h(Jo)?Jo:Jo.contextElement||P(En.elements.popper),Zr,Jr),wr=b(En.elements.reference),qi=mt({reference:wr,element:jo,strategy:"absolute",placement:Mr}),ja=en(Object.assign({},jo,qi)),uo=Ri===ie?ja:wr,wi={top:Go.top-uo.top+ao.top,bottom:uo.bottom-Go.bottom+ao.bottom,left:Go.left-uo.left+ao.left,right:uo.right-Go.right+ao.right},ai=En.modifiersData.offset;if(Ri===ie&&ai){var za=ai[Mr];Object.keys(wi).forEach(function(Mt){var Gn=[$,L].indexOf(Mt)>=0?1:-1,qn=[q,L].indexOf(Mt)>=0?"y":"x";wi[Mt]+=za[qn]*Gn})}return wi}function We(En,ln){ln===void 0&&(ln={});var jn=ln,rr=jn.placement,Mr=jn.boundary,Ir=jn.rootBoundary,Zr=jn.padding,lr=jn.flipVariations,Jr=jn.allowedAutoPlacements,pi=Jr===void 0?he:Jr,Ri=ut(rr),Ki=Ri?lr?Se:Se.filter(function(to){return ut(to)===Ri}):V,ia=Ki.filter(function(to){return pi.indexOf(to)>=0});ia.length===0&&(ia=Ki);var Da=ia.reduce(function(to,ao){return to[ao]=ot(En,{placement:ao,boundary:Mr,rootBoundary:Ir,padding:Zr})[ct(ao)],to},{});return Object.keys(Da).sort(function(to,ao){return Da[to]-Da[ao]})}function Ft(En){if(ct(En)===F)return[];var ln=Rt(En);return[sn(En),ln,sn(ln)]}function it(En){var ln=En.state,jn=En.options,rr=En.name;if(!ln.modifiersData[rr]._skip){for(var Mr=jn.mainAxis,Ir=Mr===void 0?!0:Mr,Zr=jn.altAxis,lr=Zr===void 0?!0:Zr,Jr=jn.fallbackPlacements,pi=jn.padding,Ri=jn.boundary,Ki=jn.rootBoundary,ia=jn.altBoundary,Da=jn.flipVariations,to=Da===void 0?!0:Da,ao=jn.allowedAutoPlacements,Bo=ln.options.placement,jo=ct(Bo),Jo=jo===Bo,Go=Jr||(Jo||!to?[Rt(Bo)]:Ft(Bo)),wr=[Bo].concat(Go).reduce(function(Wt,Qt){return Wt.concat(ct(Qt)===F?We(ln,{placement:Qt,boundary:Ri,rootBoundary:Ki,padding:pi,flipVariations:to,allowedAutoPlacements:ao}):Qt)},[]),qi=ln.rects.reference,ja=ln.rects.popper,uo=new Map,wi=!0,ai=wr[0],za=0;za<wr.length;za++){var Mt=wr[za],Gn=ct(Mt),qn=ut(Mt)===pe,Fr=[q,L].indexOf(Gn)>=0,Ei=Fr?"width":"height",ii=ot(ln,{placement:Mt,boundary:Ri,rootBoundary:Ki,altBoundary:ia,padding:pi}),Wi=Fr?qn?$:k:qn?L:q;qi[Ei]>ja[Ei]&&(Wi=Rt(Wi));var Ya=Rt(Wi),qa=[];if(Ir&&qa.push(ii[Gn]<=0),lr&&qa.push(ii[Wi]<=0,ii[Ya]<=0),qa.every(function(Wt){return Wt})){ai=Mt,wi=!1;break}uo.set(Mt,qa)}if(wi)for(var se=to?3:1,ye=function(Qt){var wn=wr.find(function(fr){var Or=uo.get(fr);if(Or)return Or.slice(0,Qt).every(function(Si){return Si})});if(wn)return ai=wn,"break"},Xe=se;Xe>0;Xe--){var yt=ye(Xe);if(yt==="break")break}ln.placement!==ai&&(ln.modifiersData[rr]._skip=!0,ln.placement=ai,ln.reset=!0)}}const qt={name:"flip",enabled:!0,phase:"main",fn:it,requiresIfExists:["offset"],data:{_skip:!1}};function vn(En){return En==="x"?"y":"x"}function fn(En,ln,jn){return f(En,g(ln,jn))}function Tt(En,ln,jn){var rr=fn(En,ln,jn);return rr>jn?jn:rr}function dn(En){var ln=En.state,jn=En.options,rr=En.name,Mr=jn.mainAxis,Ir=Mr===void 0?!0:Mr,Zr=jn.altAxis,lr=Zr===void 0?!1:Zr,Jr=jn.boundary,pi=jn.rootBoundary,Ri=jn.altBoundary,Ki=jn.padding,ia=jn.tether,Da=ia===void 0?!0:ia,to=jn.tetherOffset,ao=to===void 0?0:to,Bo=ot(ln,{boundary:Jr,rootBoundary:pi,padding:Ki,altBoundary:Ri}),jo=ct(ln.placement),Jo=ut(ln.placement),Go=!Jo,wr=Ne(jo),qi=vn(wr),ja=ln.modifiersData.popperOffsets,uo=ln.rects.reference,wi=ln.rects.popper,ai=typeof ao=="function"?ao(Object.assign({},ln.rects,{placement:ln.placement})):ao,za=typeof ai=="number"?{mainAxis:ai,altAxis:ai}:Object.assign({mainAxis:0,altAxis:0},ai),Mt=ln.modifiersData.offset?ln.modifiersData.offset[ln.placement]:null,Gn={x:0,y:0};if(ja){if(Ir){var qn,Fr=wr==="y"?q:k,Ei=wr==="y"?L:$,ii=wr==="y"?"height":"width",Wi=ja[wr],Ya=Wi+Bo[Fr],qa=Wi-Bo[Ei],se=Da?-wi[ii]/2:0,ye=Jo===pe?uo[ii]:wi[ii],Xe=Jo===pe?-wi[ii]:-uo[ii],yt=ln.elements.arrow,Wt=Da&&yt?K(yt):{width:0,height:0},Qt=ln.modifiersData["arrow#persistent"]?ln.modifiersData["arrow#persistent"].padding:Tn(),wn=Qt[Fr],fr=Qt[Ei],Or=fn(0,uo[ii],Wt[ii]),Si=Go?uo[ii]/2-se-Or-wn-za.mainAxis:ye-Or-wn-za.mainAxis,Fi=Go?-uo[ii]/2+se+Or+fr+za.mainAxis:Xe+Or+fr+za.mainAxis,Bi=ln.elements.arrow&&J(ln.elements.arrow),Ui=Bi?wr==="y"?Bi.clientTop||0:Bi.clientLeft||0:0,vi=(qn=Mt?.[wr])!=null?qn:0,Xa=Wi+Si-vi-Ui,Ko=Wi+Fi-vi,So=fn(Da?g(Ya,Xa):Ya,Wi,Da?f(qa,Ko):qa);ja[wr]=So,Gn[wr]=So-Wi}if(lr){var Lo,us=wr==="x"?q:k,Ee=wr==="x"?L:$,Y=ja[qi],z=qi==="y"?"height":"width",B=Y+Bo[us],le=Y-Bo[Ee],Le=[q,k].indexOf(jo)!==-1,Je=(Lo=Mt?.[qi])!=null?Lo:0,Ct=Le?B:Y-uo[z]-wi[z]-Je+za.altAxis,Vt=Le?Y+uo[z]+wi[z]-Je-za.altAxis:le,bn=Da&&Le?Tt(Ct,Y,Vt):fn(Da?Ct:B,Y,Da?Vt:le);ja[qi]=bn,Gn[qi]=bn-Y}ln.modifiersData[rr]=Gn}}const mn={name:"preventOverflow",enabled:!0,phase:"main",fn:dn,requiresIfExists:["offset"]};var Kn=function(ln,jn){return ln=typeof ln=="function"?ln(Object.assign({},jn.rects,{placement:jn.placement})):ln,An(typeof ln!="number"?ln:Zt(ln,V))};function Dn(En){var ln,jn=En.state,rr=En.name,Mr=En.options,Ir=jn.elements.arrow,Zr=jn.modifiersData.popperOffsets,lr=ct(jn.placement),Jr=Ne(lr),pi=[k,$].indexOf(lr)>=0,Ri=pi?"height":"width";if(!(!Ir||!Zr)){var Ki=Kn(Mr.padding,jn),ia=K(Ir),Da=Jr==="y"?q:k,to=Jr==="y"?L:$,ao=jn.rects.reference[Ri]+jn.rects.reference[Jr]-Zr[Jr]-jn.rects.popper[Ri],Bo=Zr[Jr]-jn.rects.reference[Jr],jo=J(Ir),Jo=jo?Jr==="y"?jo.clientHeight||0:jo.clientWidth||0:0,Go=ao/2-Bo/2,wr=Ki[Da],qi=Jo-ia[Ri]-Ki[to],ja=Jo/2-ia[Ri]/2+Go,uo=fn(wr,ja,qi),wi=Jr;jn.modifiersData[rr]=(ln={},ln[wi]=uo,ln.centerOffset=uo-ja,ln)}}function Vn(En){var ln=En.state,jn=En.options,rr=jn.element,Mr=rr===void 0?"[data-popper-arrow]":rr;Mr!=null&&(typeof Mr=="string"&&(Mr=ln.elements.popper.querySelector(Mr),!Mr)||st(ln.elements.popper,Mr)&&(ln.elements.arrow=Mr))}const or={name:"arrow",enabled:!0,phase:"main",fn:Dn,effect:Vn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qr(En,ln,jn){return jn===void 0&&(jn={x:0,y:0}),{top:En.top-ln.height-jn.y,right:En.right-ln.width+jn.x,bottom:En.bottom-ln.height+jn.y,left:En.left-ln.width-jn.x}}function ni(En){return[q,$,L,k].some(function(ln){return En[ln]>=0})}function yr(En){var ln=En.state,jn=En.name,rr=ln.rects.reference,Mr=ln.rects.popper,Ir=ln.modifiersData.preventOverflow,Zr=ot(ln,{elementContext:"reference"}),lr=ot(ln,{altBoundary:!0}),Jr=Qr(Zr,rr),pi=Qr(lr,Mr,Ir),Ri=ni(Jr),Ki=ni(pi);ln.modifiersData[jn]={referenceClippingOffsets:Jr,popperEscapeOffsets:pi,isReferenceHidden:Ri,hasPopperEscaped:Ki},ln.attributes.popper=Object.assign({},ln.attributes.popper,{"data-popper-reference-hidden":Ri,"data-popper-escaped":Ki})}var Yr=[Et,Gt,zt,Ve,Xt,qt,mn,or,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yr}],Ci=tt({defaultModifiers:Yr}),Ni=t(45089),fa=t.n(Ni),ha=function(ln){return Array.isArray(ln)?ln[0]:ln},Ca=function(ln){if(typeof ln=="function"){for(var jn=arguments.length,rr=new Array(jn>1?jn-1:0),Mr=1;Mr<jn;Mr++)rr[Mr-1]=arguments[Mr];return ln.apply(void 0,rr)}},li=function(ln,jn){if(typeof ln=="function")return Ca(ln,jn);ln!=null&&(ln.current=jn)},la=function(ln){return ln.reduce(function(jn,rr){var Mr=rr[0],Ir=rr[1];return jn[Mr]=Ir,jn},{})},Oa=typeof window<"u"&&window.document&&window.document.createElement?u.useLayoutEffect:u.useEffect,wa=[],vo=function(ln,jn,rr){rr===void 0&&(rr={});var Mr=u.useRef(null),Ir={onFirstUpdate:rr.onFirstUpdate,placement:rr.placement||"bottom",strategy:rr.strategy||"absolute",modifiers:rr.modifiers||wa},Zr=u.useState({styles:{popper:{position:Ir.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),lr=Zr[0],Jr=Zr[1],pi=u.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(Da){var to=Da.state,ao=Object.keys(to.elements);v.flushSync(function(){Jr({styles:la(ao.map(function(Bo){return[Bo,to.styles[Bo]||{}]})),attributes:la(ao.map(function(Bo){return[Bo,to.attributes[Bo]]}))})})},requires:["computeStyles"]}},[]),Ri=u.useMemo(function(){var ia={onFirstUpdate:Ir.onFirstUpdate,placement:Ir.placement,strategy:Ir.strategy,modifiers:[].concat(Ir.modifiers,[pi,{name:"applyStyles",enabled:!1}])};return fa()(Mr.current,ia)?Mr.current||ia:(Mr.current=ia,ia)},[Ir.onFirstUpdate,Ir.placement,Ir.strategy,Ir.modifiers,pi]),Ki=u.useRef();return Oa(function(){Ki.current&&Ki.current.setOptions(Ri)},[Ri]),Oa(function(){if(!(ln==null||jn==null)){var ia=rr.createPopper||Ci,Da=ia(ln,jn,Ri);return Ki.current=Da,function(){Da.destroy(),Ki.current=null}}},[ln,jn,rr.createPopper]),{state:Ki.current?Ki.current.state:null,styles:lr.styles,attributes:lr.attributes,update:Ki.current?Ki.current.update:null,forceUpdate:Ki.current?Ki.current.forceUpdate:null}};function Qn(En){var ln=u.useRef(En);return ln.current=En,u.useCallback(function(){return ln.current},[])}var _r=function(){};function $r(En){var ln=En.initial,jn=En.value,rr=En.onChange,Mr=rr===void 0?_r:rr;if(ln===void 0&&jn===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var Ir=u.useState(ln),Zr=Ir[0],lr=Ir[1],Jr=Qn(Zr),pi=u.useCallback(function(Ki){var ia=Jr(),Da=typeof Ki=="function"?Ki(ia):Ki;typeof Da.persist=="function"&&Da.persist(),lr(Da),typeof Mr=="function"&&Mr(Da)},[Jr,Mr]),Ri=jn!==void 0;return[Ri?jn:Zr,Ri?Mr:pi]}function Ti(En,ln){return En===void 0&&(En=0),ln===void 0&&(ln=0),function(){return{width:0,height:0,top:ln,right:En,bottom:ln,left:En,x:0,y:0,toJSON:function(){return null}}}}var xt=["styles","attributes"],On={getBoundingClientRect:Ti()},Zn={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function Ur(En,ln){var jn,rr,Mr;En===void 0&&(En={}),ln===void 0&&(ln={});var Ir=Object.keys(Zn).reduce(function(Ei,ii){var Wi;return(0,s.Z)({},Ei,(Wi={},Wi[ii]=Ei[ii]!==void 0?Ei[ii]:Zn[ii],Wi))},En),Zr=u.useMemo(function(){return[{name:"offset",options:{offset:Ir.offset}}]},Array.isArray(Ir.offset)?Ir.offset:[]),lr=(0,s.Z)({},ln,{placement:ln.placement||Ir.placement,modifiers:ln.modifiers||Zr}),Jr=u.useState(null),pi=Jr[0],Ri=Jr[1],Ki=u.useState(null),ia=Ki[0],Da=Ki[1],to=$r({initial:Ir.defaultVisible,value:Ir.visible,onChange:Ir.onVisibleChange}),ao=to[0],Bo=to[1],jo=u.useRef();u.useEffect(function(){return function(){return clearTimeout(jo.current)}},[]);var Jo=vo(Ir.followCursor?On:pi,ia,lr),Go=Jo.styles,wr=Jo.attributes,qi=(0,i.Z)(Jo,xt),ja=qi.update,uo=Qn({visible:ao,triggerRef:pi,tooltipRef:ia,finalConfig:Ir}),wi=u.useCallback(function(Ei){return Array.isArray(Ir.trigger)?Ir.trigger.includes(Ei):Ir.trigger===Ei},Array.isArray(Ir.trigger)?Ir.trigger:[Ir.trigger]),ai=u.useCallback(function(){clearTimeout(jo.current),jo.current=window.setTimeout(function(){return Bo(!1)},Ir.delayHide)},[Ir.delayHide,Bo]),za=u.useCallback(function(){clearTimeout(jo.current),jo.current=window.setTimeout(function(){return Bo(!0)},Ir.delayShow)},[Ir.delayShow,Bo]),Mt=u.useCallback(function(){uo().visible?ai():za()},[uo,ai,za]);u.useEffect(function(){if(uo().finalConfig.closeOnOutsideClick){var Ei=function(Wi){var Ya,qa=uo(),se=qa.tooltipRef,ye=qa.triggerRef,Xe=(Wi.composedPath==null||(Ya=Wi.composedPath())==null?void 0:Ya[0])||Wi.target;Xe instanceof Node&&se!=null&&ye!=null&&!se.contains(Xe)&&!ye.contains(Xe)&&ai()};return document.addEventListener("mousedown",Ei),function(){return document.removeEventListener("mousedown",Ei)}}},[uo,ai]),u.useEffect(function(){if(!(pi==null||!wi("click")))return pi.addEventListener("click",Mt),function(){return pi.removeEventListener("click",Mt)}},[pi,wi,Mt]),u.useEffect(function(){if(!(pi==null||!wi("double-click")))return pi.addEventListener("dblclick",Mt),function(){return pi.removeEventListener("dblclick",Mt)}},[pi,wi,Mt]),u.useEffect(function(){if(!(pi==null||!wi("right-click"))){var Ei=function(Wi){Wi.preventDefault(),Mt()};return pi.addEventListener("contextmenu",Ei),function(){return pi.removeEventListener("contextmenu",Ei)}}},[pi,wi,Mt]),u.useEffect(function(){if(!(pi==null||!wi("focus")))return pi.addEventListener("focus",za),pi.addEventListener("blur",ai),function(){pi.removeEventListener("focus",za),pi.removeEventListener("blur",ai)}},[pi,wi,za,ai]),u.useEffect(function(){if(!(pi==null||!wi("hover")))return pi.addEventListener("mouseenter",za),pi.addEventListener("mouseleave",ai),function(){pi.removeEventListener("mouseenter",za),pi.removeEventListener("mouseleave",ai)}},[pi,wi,za,ai]),u.useEffect(function(){if(!(ia==null||!wi("hover")||!uo().finalConfig.interactive))return ia.addEventListener("mouseenter",za),ia.addEventListener("mouseleave",ai),function(){ia.removeEventListener("mouseenter",za),ia.removeEventListener("mouseleave",ai)}},[ia,wi,za,ai,uo]);var Gn=qi==null||(jn=qi.state)==null||(rr=jn.modifiersData)==null||(Mr=rr.hide)==null?void 0:Mr.isReferenceHidden;u.useEffect(function(){Ir.closeOnTriggerHidden&&Gn&&ai()},[Ir.closeOnTriggerHidden,ai,Gn]),u.useEffect(function(){if(!Ir.followCursor||pi==null)return;function Ei(ii){var Wi=ii.clientX,Ya=ii.clientY;On.getBoundingClientRect=Ti(Wi,Ya),ja?.()}return pi.addEventListener("mousemove",Ei),function(){return pi.removeEventListener("mousemove",Ei)}},[Ir.followCursor,pi,ja]),u.useEffect(function(){if(!(ia==null||ja==null||Ir.mutationObserverOptions==null)){var Ei=new MutationObserver(ja);return Ei.observe(ia,Ir.mutationObserverOptions),function(){return Ei.disconnect()}}},[Ir.mutationObserverOptions,ia,ja]);var qn=function(ii){return ii===void 0&&(ii={}),(0,s.Z)({},ii,{style:(0,s.Z)({},ii.style,Go.popper)},wr.popper,{"data-popper-interactive":Ir.interactive})},Fr=function(ii){return ii===void 0&&(ii={}),(0,s.Z)({},ii,wr.arrow,{style:(0,s.Z)({},ii.style,Go.arrow),"data-popper-arrow":!0})};return(0,s.Z)({getArrowProps:Fr,getTooltipProps:qn,setTooltipRef:Da,setTriggerRef:Ri,tooltipRef:ia,triggerRef:pi,visible:ao},qi)}},7734:(C,c,t)=>{"use strict";t.d(c,{C8:()=>s,dK:()=>v});var i=t(27702),s=i.createContext(),u=i.createContext();function v(l){var h=l.children,p=i.useState(null),d=p[0],f=p[1],g=i.useRef(!1);i.useEffect(function(){return function(){g.current=!0}},[]);var y=i.useCallback(function(b){g.current||f(b)},[]);return i.createElement(s.Provider,{value:d},i.createElement(u.Provider,{value:y},h))}},7965:(C,c,t)=>{"use strict";t.d(c,{r:()=>d});var i=t(27702),s=t(7734),u=t(46318),v=t(76566),l=function(){},h=function(){return Promise.resolve(null)},p=[];function d(f){var g=f.placement,y=g===void 0?"bottom":g,b=f.strategy,E=b===void 0?"absolute":b,S=f.modifiers,w=S===void 0?p:S,x=f.referenceElement,P=f.onFirstUpdate,R=f.innerRef,T=f.children,A=i.useContext(s.C8),I=i.useState(null),N=I[0],K=I[1],_=i.useState(null),W=_[0],j=_[1];i.useEffect(function(){(0,u.k$)(R,N)},[R,N]);var re=i.useMemo(function(){return{placement:y,strategy:E,onFirstUpdate:P,modifiers:[].concat(w,[{name:"arrow",enabled:W!=null,options:{element:W}}])}},[y,E,P,w,W]),X=(0,v.D)(x||A,N,re),Z=X.state,J=X.styles,q=X.forceUpdate,L=X.update,$=i.useMemo(function(){return{ref:K,style:J.popper,placement:Z?Z.placement:y,hasPopperEscaped:Z&&Z.modifiersData.hide?Z.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:Z&&Z.modifiersData.hide?Z.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:J.arrow,ref:j},forceUpdate:q||l,update:L||h}},[K,j,y,Z,J,L,q]);return(0,u.$p)(T)($)}},76566:(C,c,t)=>{"use strict";t.d(c,{D:()=>at});var i=t(27702),s=t(27473),u=t(90929),v=t(71270),l=t(22583),h=t(80354);function p(Xt){return{scrollLeft:Xt.scrollLeft,scrollTop:Xt.scrollTop}}function d(Xt){return Xt===(0,l.Z)(Xt)||!(0,h.Re)(Xt)?(0,v.Z)(Xt):p(Xt)}var f=t(33356),g=t(20760),y=t(55536),b=t(64738),E=t(63575);function S(Xt){var rt=Xt.getBoundingClientRect(),Rt=(0,E.NM)(rt.width)/Xt.offsetWidth||1,rn=(0,E.NM)(rt.height)/Xt.offsetHeight||1;return Rt!==1||rn!==1}function w(Xt,rt,Rt){Rt===void 0&&(Rt=!1);var rn=(0,h.Re)(rt),sn=(0,h.Re)(rt)&&S(rt),Jn=(0,y.Z)(rt),ze=(0,u.Z)(Xt,sn,Rt),st={scrollLeft:0,scrollTop:0},en={x:0,y:0};return(rn||!rn&&!Rt)&&(((0,f.Z)(rt)!=="body"||(0,b.Z)(Jn))&&(st=d(rt)),(0,h.Re)(rt)?(en=(0,u.Z)(rt,!0),en.x+=rt.clientLeft,en.y+=rt.clientTop):Jn&&(en.x=(0,g.Z)(Jn))),{x:ze.left+st.scrollLeft-en.x,y:ze.top+st.scrollTop-en.y,width:ze.width,height:ze.height}}function x(Xt){var rt=(0,u.Z)(Xt),Rt=Xt.offsetWidth,rn=Xt.offsetHeight;return Math.abs(rt.width-Rt)<=1&&(Rt=rt.width),Math.abs(rt.height-rn)<=1&&(rn=rt.height),{x:Xt.offsetLeft,y:Xt.offsetTop,width:Rt,height:rn}}var P=t(95737),R=t(84517),T=t(6947);function A(Xt){var rt=new Map,Rt=new Set,rn=[];Xt.forEach(function(Jn){rt.set(Jn.name,Jn)});function sn(Jn){Rt.add(Jn.name);var ze=[].concat(Jn.requires||[],Jn.requiresIfExists||[]);ze.forEach(function(st){if(!Rt.has(st)){var en=rt.get(st);en&&sn(en)}}),rn.push(Jn)}return Xt.forEach(function(Jn){Rt.has(Jn.name)||sn(Jn)}),rn}function I(Xt){var rt=A(Xt);return T.xs.reduce(function(Rt,rn){return Rt.concat(rt.filter(function(sn){return sn.phase===rn}))},[])}function N(Xt){var rt;return function(){return rt||(rt=new Promise(function(Rt){Promise.resolve().then(function(){rt=void 0,Rt(Xt())})})),rt}}function K(Xt){var rt=Xt.reduce(function(Rt,rn){var sn=Rt[rn.name];return Rt[rn.name]=sn?Object.assign({},sn,rn,{options:Object.assign({},sn.options,rn.options),data:Object.assign({},sn.data,rn.data)}):rn,Rt},{});return Object.keys(rt).map(function(Rt){return rt[Rt]})}var _="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",W="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",j={placement:"bottom",modifiers:[],strategy:"absolute"};function re(){for(var Xt=arguments.length,rt=new Array(Xt),Rt=0;Rt<Xt;Rt++)rt[Rt]=arguments[Rt];return!rt.some(function(rn){return!(rn&&typeof rn.getBoundingClientRect=="function")})}function X(Xt){Xt===void 0&&(Xt={});var rt=Xt,Rt=rt.defaultModifiers,rn=Rt===void 0?[]:Rt,sn=rt.defaultOptions,Jn=sn===void 0?j:sn;return function(st,en,wt){wt===void 0&&(wt=Jn);var Ke={placement:"bottom",orderedModifiers:[],options:Object.assign({},j,Jn),modifiersData:{},elements:{reference:st,popper:en},attributes:{},styles:{}},Ut=[],on=!1,Tn={state:Ke,setOptions:function(We){var Ft=typeof We=="function"?We(Ke.options):We;Zt(),Ke.options=Object.assign({},Jn,Ke.options,Ft),Ke.scrollParents={reference:(0,h.kK)(st)?(0,P.Z)(st):st.contextElement?(0,P.Z)(st.contextElement):[],popper:(0,P.Z)(en)};var it=I(K([].concat(rn,Ke.options.modifiers)));if(Ke.orderedModifiers=it.filter(function(Dn){return Dn.enabled}),!1)var qt,vn,fn,Tt,dn,mn,Kn;return An(),Tn.update()},forceUpdate:function(){if(!on){var We=Ke.elements,Ft=We.reference,it=We.popper;if(re(Ft,it)){Ke.rects={reference:w(Ft,(0,R.Z)(it),Ke.options.strategy==="fixed"),popper:x(it)},Ke.reset=!1,Ke.placement=Ke.options.placement,Ke.orderedModifiers.forEach(function(Dn){return Ke.modifiersData[Dn.name]=Object.assign({},Dn.data)});for(var qt=0,vn=0;vn<Ke.orderedModifiers.length;vn++){if(Ke.reset===!0){Ke.reset=!1,vn=-1;continue}var fn=Ke.orderedModifiers[vn],Tt=fn.fn,dn=fn.options,mn=dn===void 0?{}:dn,Kn=fn.name;typeof Tt=="function"&&(Ke=Tt({state:Ke,options:mn,name:Kn,instance:Tn})||Ke)}}}},update:N(function(){return new Promise(function(ot){Tn.forceUpdate(),ot(Ke)})}),destroy:function(){Zt(),on=!0}};if(!re(st,en))return Tn;Tn.setOptions(wt).then(function(ot){!on&&wt.onFirstUpdate&&wt.onFirstUpdate(ot)});function An(){Ke.orderedModifiers.forEach(function(ot){var We=ot.name,Ft=ot.options,it=Ft===void 0?{}:Ft,qt=ot.effect;if(typeof qt=="function"){var vn=qt({state:Ke,name:We,instance:Tn,options:it}),fn=function(){};Ut.push(vn||fn)}})}function Zt(){Ut.forEach(function(ot){return ot()}),Ut=[]}return Tn}}var Z=null,J={passive:!0};function q(Xt){var rt=Xt.state,Rt=Xt.instance,rn=Xt.options,sn=rn.scroll,Jn=sn===void 0?!0:sn,ze=rn.resize,st=ze===void 0?!0:ze,en=(0,l.Z)(rt.elements.popper),wt=[].concat(rt.scrollParents.reference,rt.scrollParents.popper);return Jn&&wt.forEach(function(Ke){Ke.addEventListener("scroll",Rt.update,J)}),st&&en.addEventListener("resize",Rt.update,J),function(){Jn&&wt.forEach(function(Ke){Ke.removeEventListener("scroll",Rt.update,J)}),st&&en.removeEventListener("resize",Rt.update,J)}}const L={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:q,data:{}};var $=t(63849);function k(Xt){var rt=Xt.state,Rt=Xt.name;rt.modifiersData[Rt]=(0,$.Z)({reference:rt.rects.reference,element:rt.rects.popper,strategy:"absolute",placement:rt.placement})}const F={name:"popperOffsets",enabled:!0,phase:"read",fn:k,data:{}};var V=t(37656),pe=t(10575),ce=t(30342),G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(Xt){var rt=Xt.x,Rt=Xt.y,rn=window,sn=rn.devicePixelRatio||1;return{x:(0,E.NM)(rt*sn)/sn||0,y:(0,E.NM)(Rt*sn)/sn||0}}function ie(Xt){var rt,Rt=Xt.popper,rn=Xt.popperRect,sn=Xt.placement,Jn=Xt.variation,ze=Xt.offsets,st=Xt.position,en=Xt.gpuAcceleration,wt=Xt.adaptive,Ke=Xt.roundOffsets,Ut=Xt.isFixed,on=ze.x,Tn=on===void 0?0:on,An=ze.y,Zt=An===void 0?0:An,ot=typeof Ke=="function"?Ke({x:Tn,y:Zt}):{x:Tn,y:Zt};Tn=ot.x,Zt=ot.y;var We=ze.hasOwnProperty("x"),Ft=ze.hasOwnProperty("y"),it=T.t$,qt=T.we,vn=window;if(wt){var fn=(0,R.Z)(Rt),Tt="clientHeight",dn="clientWidth";if(fn===(0,l.Z)(Rt)&&(fn=(0,y.Z)(Rt),(0,V.Z)(fn).position!=="static"&&st==="absolute"&&(Tt="scrollHeight",dn="scrollWidth")),fn=fn,sn===T.we||(sn===T.t$||sn===T.F2)&&Jn===T.ut){qt=T.I;var mn=Ut&&fn===vn&&vn.visualViewport?vn.visualViewport.height:fn[Tt];Zt-=mn-rn.height,Zt*=en?1:-1}if(sn===T.t$||(sn===T.we||sn===T.I)&&Jn===T.ut){it=T.F2;var Kn=Ut&&fn===vn&&vn.visualViewport?vn.visualViewport.width:fn[dn];Tn-=Kn-rn.width,Tn*=en?1:-1}}var Dn=Object.assign({position:st},wt&&G),Vn=Ke===!0?te({x:Tn,y:Zt}):{x:Tn,y:Zt};if(Tn=Vn.x,Zt=Vn.y,en){var or;return Object.assign({},Dn,(or={},or[qt]=Ft?"0":"",or[it]=We?"0":"",or.transform=(vn.devicePixelRatio||1)<=1?"translate("+Tn+"px, "+Zt+"px)":"translate3d("+Tn+"px, "+Zt+"px, 0)",or))}return Object.assign({},Dn,(rt={},rt[qt]=Ft?Zt+"px":"",rt[it]=We?Tn+"px":"",rt.transform="",rt))}function fe(Xt){var rt=Xt.state,Rt=Xt.options,rn=Rt.gpuAcceleration,sn=rn===void 0?!0:rn,Jn=Rt.adaptive,ze=Jn===void 0?!0:Jn,st=Rt.roundOffsets,en=st===void 0?!0:st;if(!1)var wt;var Ke={placement:(0,pe.Z)(rt.placement),variation:(0,ce.Z)(rt.placement),popper:rt.elements.popper,popperRect:rt.rects.popper,gpuAcceleration:sn,isFixed:rt.options.strategy==="fixed"};rt.modifiersData.popperOffsets!=null&&(rt.styles.popper=Object.assign({},rt.styles.popper,ie(Object.assign({},Ke,{offsets:rt.modifiersData.popperOffsets,position:rt.options.strategy,adaptive:ze,roundOffsets:en})))),rt.modifiersData.arrow!=null&&(rt.styles.arrow=Object.assign({},rt.styles.arrow,ie(Object.assign({},Ke,{offsets:rt.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:en})))),rt.attributes.popper=Object.assign({},rt.attributes.popper,{"data-popper-placement":rt.placement})}const Se={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fe,data:{}};function he(Xt){var rt=Xt.state;Object.keys(rt.elements).forEach(function(Rt){var rn=rt.styles[Rt]||{},sn=rt.attributes[Rt]||{},Jn=rt.elements[Rt];!(0,h.Re)(Jn)||!(0,f.Z)(Jn)||(Object.assign(Jn.style,rn),Object.keys(sn).forEach(function(ze){var st=sn[ze];st===!1?Jn.removeAttribute(ze):Jn.setAttribute(ze,st===!0?"":st)}))})}function me(Xt){var rt=Xt.state,Rt={popper:{position:rt.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(rt.elements.popper.style,Rt.popper),rt.styles=Rt,rt.elements.arrow&&Object.assign(rt.elements.arrow.style,Rt.arrow),function(){Object.keys(rt.elements).forEach(function(rn){var sn=rt.elements[rn],Jn=rt.attributes[rn]||{},ze=Object.keys(rt.styles.hasOwnProperty(rn)?rt.styles[rn]:Rt[rn]),st=ze.reduce(function(en,wt){return en[wt]="",en},{});!(0,h.Re)(sn)||!(0,f.Z)(sn)||(Object.assign(sn.style,st),Object.keys(Jn).forEach(function(en){sn.removeAttribute(en)}))})}}const _e={name:"applyStyles",enabled:!0,phase:"write",fn:he,effect:me,requires:["computeStyles"]};function we(Xt,rt,Rt){var rn=(0,pe.Z)(Xt),sn=[T.t$,T.we].indexOf(rn)>=0?-1:1,Jn=typeof Rt=="function"?Rt(Object.assign({},rt,{placement:Xt})):Rt,ze=Jn[0],st=Jn[1];return ze=ze||0,st=(st||0)*sn,[T.t$,T.F2].indexOf(rn)>=0?{x:st,y:ze}:{x:ze,y:st}}function Ge(Xt){var rt=Xt.state,Rt=Xt.options,rn=Xt.name,sn=Rt.offset,Jn=sn===void 0?[0,0]:sn,ze=T.Ct.reduce(function(Ke,Ut){return Ke[Ut]=we(Ut,rt.rects,Jn),Ke},{}),st=ze[rt.placement],en=st.x,wt=st.y;rt.modifiersData.popperOffsets!=null&&(rt.modifiersData.popperOffsets.x+=en,rt.modifiersData.popperOffsets.y+=wt),rt.modifiersData[rn]=ze}const ht={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ge};var nt={left:"right",right:"left",bottom:"top",top:"bottom"};function Re(Xt){return Xt.replace(/left|right|bottom|top/g,function(rt){return nt[rt]})}var ue={start:"end",end:"start"};function ae(Xt){return Xt.replace(/start|end/g,function(rt){return ue[rt]})}var ve=t(77696);function Me(Xt,rt){rt===void 0&&(rt={});var Rt=rt,rn=Rt.placement,sn=Rt.boundary,Jn=Rt.rootBoundary,ze=Rt.padding,st=Rt.flipVariations,en=Rt.allowedAutoPlacements,wt=en===void 0?T.Ct:en,Ke=(0,ce.Z)(rn),Ut=Ke?st?T.bw:T.bw.filter(function(An){return(0,ce.Z)(An)===Ke}):T.mv,on=Ut.filter(function(An){return wt.indexOf(An)>=0});on.length===0&&(on=Ut);var Tn=on.reduce(function(An,Zt){return An[Zt]=(0,ve.Z)(Xt,{placement:Zt,boundary:sn,rootBoundary:Jn,padding:ze})[(0,pe.Z)(Zt)],An},{});return Object.keys(Tn).sort(function(An,Zt){return Tn[An]-Tn[Zt]})}function Ye(Xt){if((0,pe.Z)(Xt)===T.d7)return[];var rt=Re(Xt);return[ae(Xt),rt,ae(rt)]}function qe(Xt){var rt=Xt.state,Rt=Xt.options,rn=Xt.name;if(!rt.modifiersData[rn]._skip){for(var sn=Rt.mainAxis,Jn=sn===void 0?!0:sn,ze=Rt.altAxis,st=ze===void 0?!0:ze,en=Rt.fallbackPlacements,wt=Rt.padding,Ke=Rt.boundary,Ut=Rt.rootBoundary,on=Rt.altBoundary,Tn=Rt.flipVariations,An=Tn===void 0?!0:Tn,Zt=Rt.allowedAutoPlacements,ot=rt.options.placement,We=(0,pe.Z)(ot),Ft=We===ot,it=en||(Ft||!An?[Re(ot)]:Ye(ot)),qt=[ot].concat(it).reduce(function(li,la){return li.concat((0,pe.Z)(la)===T.d7?Me(rt,{placement:la,boundary:Ke,rootBoundary:Ut,padding:wt,flipVariations:An,allowedAutoPlacements:Zt}):la)},[]),vn=rt.rects.reference,fn=rt.rects.popper,Tt=new Map,dn=!0,mn=qt[0],Kn=0;Kn<qt.length;Kn++){var Dn=qt[Kn],Vn=(0,pe.Z)(Dn),or=(0,ce.Z)(Dn)===T.BL,Qr=[T.we,T.I].indexOf(Vn)>=0,ni=Qr?"width":"height",yr=(0,ve.Z)(rt,{placement:Dn,boundary:Ke,rootBoundary:Ut,altBoundary:on,padding:wt}),si=Qr?or?T.F2:T.t$:or?T.I:T.we;vn[ni]>fn[ni]&&(si=Re(si));var Yr=Re(si),Ci=[];if(Jn&&Ci.push(yr[Vn]<=0),st&&Ci.push(yr[si]<=0,yr[Yr]<=0),Ci.every(function(li){return li})){mn=Dn,dn=!1;break}Tt.set(Dn,Ci)}if(dn)for(var Ni=An?3:1,fa=function(la){var Oa=qt.find(function(wa){var vo=Tt.get(wa);if(vo)return vo.slice(0,la).every(function(Qn){return Qn})});if(Oa)return mn=Oa,"break"},ha=Ni;ha>0;ha--){var Ca=fa(ha);if(Ca==="break")break}rt.placement!==mn&&(rt.modifiersData[rn]._skip=!0,rt.placement=mn,rt.reset=!0)}}const At={name:"flip",enabled:!0,phase:"main",fn:qe,requiresIfExists:["offset"],data:{_skip:!1}};var It=t(70606);function Ce(Xt){return Xt==="x"?"y":"x"}function Ae(Xt,rt,Rt){return(0,E.Fp)(Xt,(0,E.VV)(rt,Rt))}function $e(Xt,rt,Rt){var rn=Ae(Xt,rt,Rt);return rn>Rt?Rt:rn}var tt=t(98385);function ke(Xt){var rt=Xt.state,Rt=Xt.options,rn=Xt.name,sn=Rt.mainAxis,Jn=sn===void 0?!0:sn,ze=Rt.altAxis,st=ze===void 0?!1:ze,en=Rt.boundary,wt=Rt.rootBoundary,Ke=Rt.altBoundary,Ut=Rt.padding,on=Rt.tether,Tn=on===void 0?!0:on,An=Rt.tetherOffset,Zt=An===void 0?0:An,ot=(0,ve.Z)(rt,{boundary:en,rootBoundary:wt,padding:Ut,altBoundary:Ke}),We=(0,pe.Z)(rt.placement),Ft=(0,ce.Z)(rt.placement),it=!Ft,qt=(0,It.Z)(We),vn=Ce(qt),fn=rt.modifiersData.popperOffsets,Tt=rt.rects.reference,dn=rt.rects.popper,mn=typeof Zt=="function"?Zt(Object.assign({},rt.rects,{placement:rt.placement})):Zt,Kn=typeof mn=="number"?{mainAxis:mn,altAxis:mn}:Object.assign({mainAxis:0,altAxis:0},mn),Dn=rt.modifiersData.offset?rt.modifiersData.offset[rt.placement]:null,Vn={x:0,y:0};if(fn){if(Jn){var or,Qr=qt==="y"?T.we:T.t$,ni=qt==="y"?T.I:T.F2,yr=qt==="y"?"height":"width",si=fn[qt],Yr=si+ot[Qr],Ci=si-ot[ni],Ni=Tn?-dn[yr]/2:0,fa=Ft===T.BL?Tt[yr]:dn[yr],ha=Ft===T.BL?-dn[yr]:-Tt[yr],Ca=rt.elements.arrow,li=Tn&&Ca?x(Ca):{width:0,height:0},la=rt.modifiersData["arrow#persistent"]?rt.modifiersData["arrow#persistent"].padding:(0,tt.Z)(),Oa=la[Qr],wa=la[ni],vo=Ae(0,Tt[yr],li[yr]),Qn=it?Tt[yr]/2-Ni-vo-Oa-Kn.mainAxis:fa-vo-Oa-Kn.mainAxis,_r=it?-Tt[yr]/2+Ni+vo+wa+Kn.mainAxis:ha+vo+wa+Kn.mainAxis,$r=rt.elements.arrow&&(0,R.Z)(rt.elements.arrow),Ti=$r?qt==="y"?$r.clientTop||0:$r.clientLeft||0:0,xt=(or=Dn?.[qt])!=null?or:0,On=si+Qn-xt-Ti,Zn=si+_r-xt,Ur=Ae(Tn?(0,E.VV)(Yr,On):Yr,si,Tn?(0,E.Fp)(Ci,Zn):Ci);fn[qt]=Ur,Vn[qt]=Ur-si}if(st){var En,ln=qt==="x"?T.we:T.t$,jn=qt==="x"?T.I:T.F2,rr=fn[vn],Mr=vn==="y"?"height":"width",Ir=rr+ot[ln],Zr=rr-ot[jn],lr=[T.we,T.t$].indexOf(We)!==-1,Jr=(En=Dn?.[vn])!=null?En:0,pi=lr?Ir:rr-Tt[Mr]-dn[Mr]-Jr+Kn.altAxis,Ri=lr?rr+Tt[Mr]+dn[Mr]-Jr-Kn.altAxis:Zr,Ki=Tn&&lr?$e(pi,rr,Ri):Ae(Tn?pi:Ir,rr,Tn?Ri:Zr);fn[vn]=Ki,Vn[vn]=Ki-rr}rt.modifiersData[rn]=Vn}}const Oe={name:"preventOverflow",enabled:!0,phase:"main",fn:ke,requiresIfExists:["offset"]};var je=t(867),Et=t(93197),ct=t(14005),ut=function(rt,Rt){return rt=typeof rt=="function"?rt(Object.assign({},Rt.rects,{placement:Rt.placement})):rt,(0,Et.Z)(typeof rt!="number"?rt:(0,ct.Z)(rt,T.mv))};function Ne(Xt){var rt,Rt=Xt.state,rn=Xt.name,sn=Xt.options,Jn=Rt.elements.arrow,ze=Rt.modifiersData.popperOffsets,st=(0,pe.Z)(Rt.placement),en=(0,It.Z)(st),wt=[T.t$,T.F2].indexOf(st)>=0,Ke=wt?"height":"width";if(!(!Jn||!ze)){var Ut=ut(sn.padding,Rt),on=x(Jn),Tn=en==="y"?T.we:T.t$,An=en==="y"?T.I:T.F2,Zt=Rt.rects.reference[Ke]+Rt.rects.reference[en]-ze[en]-Rt.rects.popper[Ke],ot=ze[en]-Rt.rects.reference[en],We=(0,R.Z)(Jn),Ft=We?en==="y"?We.clientHeight||0:We.clientWidth||0:0,it=Zt/2-ot/2,qt=Ut[Tn],vn=Ft-on[Ke]-Ut[An],fn=Ft/2-on[Ke]/2+it,Tt=Ae(qt,fn,vn),dn=en;Rt.modifiersData[rn]=(rt={},rt[dn]=Tt,rt.centerOffset=Tt-fn,rt)}}function mt(Xt){var rt=Xt.state,Rt=Xt.options,rn=Rt.element,sn=rn===void 0?"[data-popper-arrow]":rn;sn!=null&&(typeof sn=="string"&&(sn=rt.elements.popper.querySelector(sn),!sn)||(0,je.Z)(rt.elements.popper,sn)&&(rt.elements.arrow=sn))}const bt={name:"arrow",enabled:!0,phase:"main",fn:Ne,effect:mt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gt(Xt,rt,Rt){return Rt===void 0&&(Rt={x:0,y:0}),{top:Xt.top-rt.height-Rt.y,right:Xt.right-rt.width+Rt.x,bottom:Xt.bottom-rt.height+Rt.y,left:Xt.left-rt.width-Rt.x}}function hn(Xt){return[T.we,T.F2,T.I,T.t$].some(function(rt){return Xt[rt]>=0})}function Yt(Xt){var rt=Xt.state,Rt=Xt.name,rn=rt.rects.reference,sn=rt.rects.popper,Jn=rt.modifiersData.preventOverflow,ze=(0,ve.Z)(rt,{elementContext:"reference"}),st=(0,ve.Z)(rt,{altBoundary:!0}),en=Gt(ze,rn),wt=Gt(st,sn,Jn),Ke=hn(en),Ut=hn(wt);rt.modifiersData[Rt]={referenceClippingOffsets:en,popperEscapeOffsets:wt,isReferenceHidden:Ke,hasPopperEscaped:Ut},rt.attributes.popper=Object.assign({},rt.attributes.popper,{"data-popper-reference-hidden":Ke,"data-popper-escaped":Ut})}var Lt=[L,F,Se,_e,ht,At,Oe,bt,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yt}],zt=X({defaultModifiers:Lt}),Kt=t(45089),vt=t.n(Kt),Ve=t(46318),lt=[],at=function(rt,Rt,rn){rn===void 0&&(rn={});var sn=i.useRef(null),Jn={onFirstUpdate:rn.onFirstUpdate,placement:rn.placement||"bottom",strategy:rn.strategy||"absolute",modifiers:rn.modifiers||lt},ze=i.useState({styles:{popper:{position:Jn.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),st=ze[0],en=ze[1],wt=i.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(Tn){var An=Tn.state,Zt=Object.keys(An.elements);s.flushSync(function(){en({styles:(0,Ve.sq)(Zt.map(function(ot){return[ot,An.styles[ot]||{}]})),attributes:(0,Ve.sq)(Zt.map(function(ot){return[ot,An.attributes[ot]]}))})})},requires:["computeStyles"]}},[]),Ke=i.useMemo(function(){var on={onFirstUpdate:Jn.onFirstUpdate,placement:Jn.placement,strategy:Jn.strategy,modifiers:[].concat(Jn.modifiers,[wt,{name:"applyStyles",enabled:!1}])};return vt()(sn.current,on)?sn.current||on:(sn.current=on,on)},[Jn.onFirstUpdate,Jn.placement,Jn.strategy,Jn.modifiers,wt]),Ut=i.useRef();return(0,Ve.LI)(function(){Ut.current&&Ut.current.setOptions(Ke)},[Ke]),(0,Ve.LI)(function(){if(!(rt==null||Rt==null)){var on=rn.createPopper||zt,Tn=on(rt,Rt,Ke);return Ut.current=Tn,function(){Tn.destroy(),Ut.current=null}}},[rt,Rt,rn.createPopper]),{state:Ut.current?Ut.current.state:null,styles:st.styles,attributes:st.attributes,update:Ut.current?Ut.current.update:null,forceUpdate:Ut.current?Ut.current.forceUpdate:null}}},46318:(C,c,t)=>{"use strict";t.d(c,{$p:()=>s,LI:()=>h,k$:()=>v,sq:()=>l});var i=t(27702),s=function(d){return Array.isArray(d)?d[0]:d},u=function(d){if(typeof d=="function"){for(var f=arguments.length,g=new Array(f>1?f-1:0),y=1;y<f;y++)g[y-1]=arguments[y];return d.apply(void 0,g)}},v=function(d,f){if(typeof d=="function")return u(d,f);d!=null&&(d.current=f)},l=function(d){return d.reduce(function(f,g){var y=g[0],b=g[1];return f[y]=b,f},{})},h=typeof window<"u"&&window.document&&window.document.createElement?i.useLayoutEffect:i.useEffect},27173:(C,c,t)=>{"use strict";t.r(c),t.d(c,{Provider:()=>S,ReactReduxContext:()=>u,batch:()=>Et.unstable_batchedUpdates,connect:()=>qe,connectAdvanced:()=>J,createDispatchHook:()=>Ae,createSelectorHook:()=>Oe,createStoreHook:()=>It,shallowEqual:()=>L,useDispatch:()=>$e,useSelector:()=>je,useStore:()=>Ce});var i=t(27702),s=t(93415),u=i.createContext(null);const v=null;function l(ct){ct()}var h=l,p=function(ut){return h=ut},d=function(){return h};function f(){var ct=d(),ut=null,Ne=null;return{clear:function(){ut=null,Ne=null},notify:function(){ct(function(){for(var bt=ut;bt;)bt.callback(),bt=bt.next})},get:function(){for(var bt=[],Gt=ut;Gt;)bt.push(Gt),Gt=Gt.next;return bt},subscribe:function(bt){var Gt=!0,hn=Ne={callback:bt,next:null,prev:Ne};return hn.prev?hn.prev.next=hn:ut=hn,function(){!Gt||ut===null||(Gt=!1,hn.next?hn.next.prev=hn.prev:Ne=hn.prev,hn.prev?hn.prev.next=hn.next:ut=hn.next)}}}}var g={notify:function(){},get:function(){return[]}};function y(ct,ut){var Ne,mt=g;function bt(Kt){return Bt(),mt.subscribe(Kt)}function Gt(){mt.notify()}function hn(){zt.onStateChange&&zt.onStateChange()}function Yt(){return!!Ne}function Bt(){Ne||(Ne=ut?ut.addNestedSub(hn):ct.subscribe(hn),mt=f())}function Lt(){Ne&&(Ne(),Ne=void 0,mt.clear(),mt=g)}var zt={addNestedSub:bt,notifyNestedSubs:Gt,handleChangeWrapper:hn,isSubscribed:Yt,trySubscribe:Bt,tryUnsubscribe:Lt,getListeners:function(){return mt}};return zt}var b=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?i.useLayoutEffect:i.useEffect;function E(ct){var ut=ct.store,Ne=ct.context,mt=ct.children,bt=(0,i.useMemo)(function(){var Yt=y(ut);return Yt.onStateChange=Yt.notifyNestedSubs,{store:ut,subscription:Yt}},[ut]),Gt=(0,i.useMemo)(function(){return ut.getState()},[ut]);b(function(){var Yt=bt.subscription;return Yt.trySubscribe(),Gt!==ut.getState()&&Yt.notifyNestedSubs(),function(){Yt.tryUnsubscribe(),Yt.onStateChange=null}},[bt,Gt]);var hn=Ne||u;return i.createElement(hn.Provider,{value:bt},mt)}const S=E;var w=t(94285),x=t(46340),P=t(43313),R=t.n(P),T=t(15713),A=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],I=["reactReduxForwardedRef"],N=[],K=[null,null],_=function(ut){try{return JSON.stringify(ut)}catch{return String(ut)}};function W(ct,ut){var Ne=ct[1];return[ut.payload,Ne+1]}function j(ct,ut,Ne){b(function(){return ct.apply(void 0,ut)},Ne)}function re(ct,ut,Ne,mt,bt,Gt,hn){ct.current=mt,ut.current=bt,Ne.current=!1,Gt.current&&(Gt.current=null,hn())}function X(ct,ut,Ne,mt,bt,Gt,hn,Yt,Bt,Lt){if(ct){var zt=!1,Kt=null,vt=function(){if(!zt){var at=ut.getState(),Xt,rt;try{Xt=mt(at,bt.current)}catch(Rt){rt=Rt,Kt=Rt}rt||(Kt=null),Xt===Gt.current?hn.current||Bt():(Gt.current=Xt,Yt.current=Xt,hn.current=!0,Lt({type:"STORE_UPDATED",payload:{error:rt}}))}};Ne.onStateChange=vt,Ne.trySubscribe(),vt();var Ve=function(){if(zt=!0,Ne.tryUnsubscribe(),Ne.onStateChange=null,Kt)throw Kt};return Ve}}var Z=function(){return[null,0]};function J(ct,ut){ut===void 0&&(ut={});var Ne=ut,mt=Ne.getDisplayName,bt=mt===void 0?function(ze){return"ConnectAdvanced("+ze+")"}:mt,Gt=Ne.methodName,hn=Gt===void 0?"connectAdvanced":Gt,Yt=Ne.renderCountProp,Bt=Yt===void 0?void 0:Yt,Lt=Ne.shouldHandleStateChanges,zt=Lt===void 0?!0:Lt,Kt=Ne.storeKey,vt=Kt===void 0?"store":Kt,Ve=Ne.withRef,lt=Ve===void 0?!1:Ve,at=Ne.forwardRef,Xt=at===void 0?!1:at,rt=Ne.context,Rt=rt===void 0?u:rt,rn=(0,x.Z)(Ne,A);if(!1)var sn;var Jn=Rt;return function(st){var en=st.displayName||st.name||"Component",wt=bt(en),Ke=(0,w.Z)({},rn,{getDisplayName:bt,methodName:hn,renderCountProp:Bt,shouldHandleStateChanges:zt,storeKey:vt,displayName:wt,wrappedComponentName:en,WrappedComponent:st}),Ut=rn.pure;function on(We){return ct(We.dispatch,Ke)}var Tn=Ut?i.useMemo:function(We){return We()};function An(We){var Ft=(0,i.useMemo)(function(){var wa=We.reactReduxForwardedRef,vo=(0,x.Z)(We,I);return[We.context,wa,vo]},[We]),it=Ft[0],qt=Ft[1],vn=Ft[2],fn=(0,i.useMemo)(function(){return it&&it.Consumer&&(0,T.isContextConsumer)(i.createElement(it.Consumer,null))?it:Jn},[it,Jn]),Tt=(0,i.useContext)(fn),dn=!!We.store&&!!We.store.getState&&!!We.store.dispatch,mn=!!Tt&&!!Tt.store,Kn=dn?We.store:Tt.store,Dn=(0,i.useMemo)(function(){return on(Kn)},[Kn]),Vn=(0,i.useMemo)(function(){if(!zt)return K;var wa=y(Kn,dn?null:Tt.subscription),vo=wa.notifyNestedSubs.bind(wa);return[wa,vo]},[Kn,dn,Tt]),or=Vn[0],Qr=Vn[1],ni=(0,i.useMemo)(function(){return dn?Tt:(0,w.Z)({},Tt,{subscription:or})},[dn,Tt,or]),yr=(0,i.useReducer)(W,N,Z),si=yr[0],Yr=si[0],Ci=yr[1];if(Yr&&Yr.error)throw Yr.error;var Ni=(0,i.useRef)(),fa=(0,i.useRef)(vn),ha=(0,i.useRef)(),Ca=(0,i.useRef)(!1),li=Tn(function(){return ha.current&&vn===fa.current?ha.current:Dn(Kn.getState(),vn)},[Kn,Yr,vn]);j(re,[fa,Ni,Ca,vn,li,ha,Qr]),j(X,[zt,Kn,or,Dn,fa,Ni,Ca,ha,Qr,Ci],[Kn,or,Dn]);var la=(0,i.useMemo)(function(){return i.createElement(st,(0,w.Z)({},li,{ref:qt}))},[qt,st,li]),Oa=(0,i.useMemo)(function(){return zt?i.createElement(fn.Provider,{value:ni},la):la},[fn,la,ni]);return Oa}var Zt=Ut?i.memo(An):An;if(Zt.WrappedComponent=st,Zt.displayName=An.displayName=wt,Xt){var ot=i.forwardRef(function(Ft,it){return i.createElement(Zt,(0,w.Z)({},Ft,{reactReduxForwardedRef:it}))});return ot.displayName=wt,ot.WrappedComponent=st,R()(ot,st)}return R()(Zt,st)}}function q(ct,ut){return ct===ut?ct!==0||ut!==0||1/ct===1/ut:ct!==ct&&ut!==ut}function L(ct,ut){if(q(ct,ut))return!0;if(typeof ct!="object"||ct===null||typeof ut!="object"||ut===null)return!1;var Ne=Object.keys(ct),mt=Object.keys(ut);if(Ne.length!==mt.length)return!1;for(var bt=0;bt<Ne.length;bt++)if(!Object.prototype.hasOwnProperty.call(ut,Ne[bt])||!q(ct[Ne[bt]],ut[Ne[bt]]))return!1;return!0}function $(ct,ut){var Ne={},mt=function(hn){var Yt=ct[hn];typeof Yt=="function"&&(Ne[hn]=function(){return ut(Yt.apply(void 0,arguments))})};for(var bt in ct)mt(bt);return Ne}function k(ct){return function(Ne,mt){var bt=ct(Ne,mt);function Gt(){return bt}return Gt.dependsOnOwnProps=!1,Gt}}function F(ct){return ct.dependsOnOwnProps!==null&&ct.dependsOnOwnProps!==void 0?!!ct.dependsOnOwnProps:ct.length!==1}function V(ct,ut){return function(mt,bt){var Gt=bt.displayName,hn=function(Bt,Lt){return hn.dependsOnOwnProps?hn.mapToProps(Bt,Lt):hn.mapToProps(Bt)};return hn.dependsOnOwnProps=!0,hn.mapToProps=function(Bt,Lt){hn.mapToProps=ct,hn.dependsOnOwnProps=F(ct);var zt=hn(Bt,Lt);return typeof zt=="function"&&(hn.mapToProps=zt,hn.dependsOnOwnProps=F(zt),zt=hn(Bt,Lt)),zt},hn}}function pe(ct){return typeof ct=="function"?V(ct,"mapDispatchToProps"):void 0}function ce(ct){return ct?void 0:k(function(ut){return{dispatch:ut}})}function G(ct){return ct&&typeof ct=="object"?k(function(ut){return $(ct,ut)}):void 0}const te=[pe,ce,G];function ie(ct){return typeof ct=="function"?V(ct,"mapStateToProps"):void 0}function fe(ct){return ct?void 0:k(function(){return{}})}const Se=[ie,fe];function he(ct,ut,Ne){return(0,w.Z)({},Ne,ct,ut)}function me(ct){return function(Ne,mt){var bt=mt.displayName,Gt=mt.pure,hn=mt.areMergedPropsEqual,Yt=!1,Bt;return function(zt,Kt,vt){var Ve=ct(zt,Kt,vt);return Yt?(!Gt||!hn(Ve,Bt))&&(Bt=Ve):(Yt=!0,Bt=Ve),Bt}}}function _e(ct){return typeof ct=="function"?me(ct):void 0}function we(ct){return ct?void 0:function(){return he}}const Ge=[_e,we];var ht=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function nt(ct,ut,Ne,mt){return function(Gt,hn){return Ne(ct(Gt,hn),ut(mt,hn),hn)}}function Re(ct,ut,Ne,mt,bt){var Gt=bt.areStatesEqual,hn=bt.areOwnPropsEqual,Yt=bt.areStatePropsEqual,Bt=!1,Lt,zt,Kt,vt,Ve;function lt(rn,sn){return Lt=rn,zt=sn,Kt=ct(Lt,zt),vt=ut(mt,zt),Ve=Ne(Kt,vt,zt),Bt=!0,Ve}function at(){return Kt=ct(Lt,zt),ut.dependsOnOwnProps&&(vt=ut(mt,zt)),Ve=Ne(Kt,vt,zt),Ve}function Xt(){return ct.dependsOnOwnProps&&(Kt=ct(Lt,zt)),ut.dependsOnOwnProps&&(vt=ut(mt,zt)),Ve=Ne(Kt,vt,zt),Ve}function rt(){var rn=ct(Lt,zt),sn=!Yt(rn,Kt);return Kt=rn,sn&&(Ve=Ne(Kt,vt,zt)),Ve}function Rt(rn,sn){var Jn=!hn(sn,zt),ze=!Gt(rn,Lt);return Lt=rn,zt=sn,Jn&&ze?at():Jn?Xt():ze?rt():Ve}return function(sn,Jn){return Bt?Rt(sn,Jn):lt(sn,Jn)}}function ue(ct,ut){var Ne=ut.initMapStateToProps,mt=ut.initMapDispatchToProps,bt=ut.initMergeProps,Gt=(0,x.Z)(ut,ht),hn=Ne(ct,Gt),Yt=mt(ct,Gt),Bt=bt(ct,Gt),Lt=Gt.pure?Re:nt;return Lt(hn,Yt,Bt,ct,Gt)}var ae=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function ve(ct,ut,Ne){for(var mt=ut.length-1;mt>=0;mt--){var bt=ut[mt](ct);if(bt)return bt}return function(Gt,hn){throw new Error("Invalid value of type "+typeof ct+" for "+Ne+" argument when connecting component "+hn.wrappedComponentName+".")}}function Me(ct,ut){return ct===ut}function Ye(ct){var ut=ct===void 0?{}:ct,Ne=ut.connectHOC,mt=Ne===void 0?J:Ne,bt=ut.mapStateToPropsFactories,Gt=bt===void 0?Se:bt,hn=ut.mapDispatchToPropsFactories,Yt=hn===void 0?te:hn,Bt=ut.mergePropsFactories,Lt=Bt===void 0?Ge:Bt,zt=ut.selectorFactory,Kt=zt===void 0?ue:zt;return function(Ve,lt,at,Xt){Xt===void 0&&(Xt={});var rt=Xt,Rt=rt.pure,rn=Rt===void 0?!0:Rt,sn=rt.areStatesEqual,Jn=sn===void 0?Me:sn,ze=rt.areOwnPropsEqual,st=ze===void 0?L:ze,en=rt.areStatePropsEqual,wt=en===void 0?L:en,Ke=rt.areMergedPropsEqual,Ut=Ke===void 0?L:Ke,on=(0,x.Z)(rt,ae),Tn=ve(Ve,Gt,"mapStateToProps"),An=ve(lt,Yt,"mapDispatchToProps"),Zt=ve(at,Lt,"mergeProps");return mt(Kt,(0,w.Z)({methodName:"connect",getDisplayName:function(We){return"Connect("+We+")"},shouldHandleStateChanges:!!Ve,initMapStateToProps:Tn,initMapDispatchToProps:An,initMergeProps:Zt,pure:rn,areStatesEqual:Jn,areOwnPropsEqual:st,areStatePropsEqual:wt,areMergedPropsEqual:Ut},on))}}const qe=Ye();function At(){var ct=(0,i.useContext)(u);return ct}function It(ct){ct===void 0&&(ct=u);var ut=ct===u?At:function(){return(0,i.useContext)(ct)};return function(){var mt=ut(),bt=mt.store;return bt}}var Ce=It();function Ae(ct){ct===void 0&&(ct=u);var ut=ct===u?Ce:It(ct);return function(){var mt=ut();return mt.dispatch}}var $e=Ae(),tt=function(ut,Ne){return ut===Ne};function ke(ct,ut,Ne,mt){var bt=(0,i.useReducer)(function(lt){return lt+1},0),Gt=bt[1],hn=(0,i.useMemo)(function(){return y(Ne,mt)},[Ne,mt]),Yt=(0,i.useRef)(),Bt=(0,i.useRef)(),Lt=(0,i.useRef)(),zt=(0,i.useRef)(),Kt=Ne.getState(),vt;try{if(ct!==Bt.current||Kt!==Lt.current||Yt.current){var Ve=ct(Kt);zt.current===void 0||!ut(Ve,zt.current)?vt=Ve:vt=zt.current}else vt=zt.current}catch(lt){throw Yt.current&&(lt.message+=` The error may be correlated with this previous error: `+Yt.current.stack+` `),lt}return b(function(){Bt.current=ct,Lt.current=Kt,zt.current=vt,Yt.current=void 0}),b(function(){function lt(){try{var at=Ne.getState();if(at===Lt.current)return;var Xt=Bt.current(at);if(ut(Xt,zt.current))return;zt.current=Xt,Lt.current=at}catch(rt){Yt.current=rt}Gt()}return hn.onStateChange=lt,hn.trySubscribe(),lt(),function(){return hn.tryUnsubscribe()}},[Ne,hn]),vt}function Oe(ct){ct===void 0&&(ct=u);var ut=ct===u?At:function(){return(0,i.useContext)(ct)};return function(mt,bt){bt===void 0&&(bt=tt);var Gt=ut(),hn=Gt.store,Yt=Gt.subscription,Bt=ke(mt,bt,hn,Yt);return(0,i.useDebugValue)(Bt),Bt}}var je=Oe(),Et=t(27473);p(Et.unstable_batchedUpdates)},13224:(C,c,t)=>{"use strict";c.__esModule=!0,c.default=void 0;var i=p(t(27702)),s=t(94618),u=t(70514),v=t(18599),l=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function h(x){if(typeof WeakMap!="function")return null;var P=new WeakMap,R=new WeakMap;return(h=function(A){return A?R:P})(x)}function p(x,P){if(!P&&x&&x.__esModule)return x;if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var R=h(P);if(R&&R.has(x))return R.get(x);var T={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in x)if(I!=="default"&&Object.prototype.hasOwnProperty.call(x,I)){var N=A?Object.getOwnPropertyDescriptor(x,I):null;N&&(N.get||N.set)?Object.defineProperty(T,I,N):T[I]=x[I]}return T.default=x,R&&R.set(x,T),T}function d(){return d=Object.assign||function(x){for(var P=1;P<arguments.length;P++){var R=arguments[P];for(var T in R)Object.prototype.hasOwnProperty.call(R,T)&&(x[T]=R[T])}return x},d.apply(this,arguments)}function f(x,P){if(x==null)return{};var R={},T=Object.keys(x),A,I;for(I=0;I<T.length;I++)A=T[I],!(P.indexOf(A)>=0)&&(R[A]=x[A]);return R}function g(x,P){var R=Object.keys(x);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(x);P&&(T=T.filter(function(A){return Object.getOwnPropertyDescriptor(x,A).enumerable})),R.push.apply(R,T)}return R}function y(x){for(var P=1;P<arguments.length;P++){var R=arguments[P]!=null?arguments[P]:{};P%2?g(Object(R),!0).forEach(function(T){b(x,T,R[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(R)):g(Object(R)).forEach(function(T){Object.defineProperty(x,T,Object.getOwnPropertyDescriptor(R,T))})}return x}function b(x,P,R){return P in x?Object.defineProperty(x,P,{value:R,enumerable:!0,configurable:!0,writable:!0}):x[P]=R,x}function E(x,P){x.prototype=Object.create(P.prototype),x.prototype.constructor=x,S(x,P)}function S(x,P){return S=Object.setPrototypeOf||function(T,A){return T.__proto__=A,T},S(x,P)}var w=function(x){E(P,x);function P(){for(var T,A=arguments.length,I=new Array(A),N=0;N<A;N++)I[N]=arguments[N];return T=x.call.apply(x,[this].concat(I))||this,T.handleRefs={},T.lastHandleRect=null,T.slack=null,T}var R=P.prototype;return R.componentWillUnmount=function(){this.resetData()},R.resetData=function(){this.lastHandleRect=this.slack=null},R.runConstraints=function(A,I){var N=this.props,K=N.minConstraints,_=N.maxConstraints,W=N.lockAspectRatio;if(!K&&!_&&!W)return[A,I];if(W){var j=this.props.width/this.props.height,re=A-this.props.width,X=I-this.props.height;Math.abs(re)>Math.abs(X*j)?I=A/j:A=I*j}var Z=A,J=I,q=this.slack||[0,0],L=q[0],$=q[1];return A+=L,I+=$,K&&(A=Math.max(K[0],A),I=Math.max(K[1],I)),_&&(A=Math.min(_[0],A),I=Math.min(_[1],I)),this.slack=[L+(Z-A),$+(J-I)],[A,I]},R.resizeHandler=function(A,I){var N=this;return function(K,_){var W=_.node,j=_.deltaX,re=_.deltaY;A==="onResizeStart"&&N.resetData();var X=(N.props.axis==="both"||N.props.axis==="x")&&I!=="n"&&I!=="s",Z=(N.props.axis==="both"||N.props.axis==="y")&&I!=="e"&&I!=="w";if(!(!X&&!Z)){var J=I[0],q=I[I.length-1],L=W.getBoundingClientRect();if(N.lastHandleRect!=null){if(q==="w"){var $=L.left-N.lastHandleRect.left;j+=$}if(J==="n"){var k=L.top-N.lastHandleRect.top;re+=k}}N.lastHandleRect=L,q==="w"&&(j=-j),J==="n"&&(re=-re);var F=N.props.width+(X?j/N.props.transformScale:0),V=N.props.height+(Z?re/N.props.transformScale:0),pe=N.runConstraints(F,V);F=pe[0],V=pe[1];var ce=F!==N.props.width||V!==N.props.height,G=typeof N.props[A]=="function"?N.props[A]:null,te=A==="onResize"&&!ce;G&&!te&&(K.persist==null||K.persist(),G(K,{node:W,size:{width:F,height:V},handle:I})),A==="onResizeStop"&&N.resetData()}}},R.renderResizeHandle=function(A,I){var N=this.props.handle;if(!N)return i.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+A,ref:I});if(typeof N=="function")return N(A,I);var K=typeof N.type=="string",_=y({ref:I},K?{}:{handleAxis:A});return i.cloneElement(N,_)},R.render=function(){var A=this,I=this.props,N=I.children,K=I.className,_=I.draggableOpts,W=I.width,j=I.height,re=I.handle,X=I.handleSize,Z=I.lockAspectRatio,J=I.axis,q=I.minConstraints,L=I.maxConstraints,$=I.onResize,k=I.onResizeStop,F=I.onResizeStart,V=I.resizeHandles,pe=I.transformScale,ce=f(I,l);return(0,u.cloneElement)(N,y(y({},ce),{},{className:(K?K+" ":"")+"react-resizable",children:[].concat(N.props.children,V.map(function(G){var te,ie=(te=A.handleRefs[G])!=null?te:A.handleRefs[G]=i.createRef();return i.createElement(s.DraggableCore,d({},_,{nodeRef:ie,key:"resizableHandle-"+G,onStop:A.resizeHandler("onResizeStop",G),onStart:A.resizeHandler("onResizeStart",G),onDrag:A.resizeHandler("onResize",G)}),A.renderResizeHandle(G,ie))}))}))},P}(i.Component);c.default=w,w.propTypes=v.resizableProps,w.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}},57376:(C,c,t)=>{"use strict";var i;i=!0,c.default=void 0;var s=f(t(27702)),u=p(t(93415)),v=p(t(13224)),l=t(18599),h=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function p(R){return R&&R.__esModule?R:{default:R}}function d(R){if(typeof WeakMap!="function")return null;var T=new WeakMap,A=new WeakMap;return(d=function(N){return N?A:T})(R)}function f(R,T){if(!T&&R&&R.__esModule)return R;if(R===null||typeof R!="object"&&typeof R!="function")return{default:R};var A=d(T);if(A&&A.has(R))return A.get(R);var I={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var K in R)if(K!=="default"&&Object.prototype.hasOwnProperty.call(R,K)){var _=N?Object.getOwnPropertyDescriptor(R,K):null;_&&(_.get||_.set)?Object.defineProperty(I,K,_):I[K]=R[K]}return I.default=R,A&&A.set(R,I),I}function g(){return g=Object.assign||function(R){for(var T=1;T<arguments.length;T++){var A=arguments[T];for(var I in A)Object.prototype.hasOwnProperty.call(A,I)&&(R[I]=A[I])}return R},g.apply(this,arguments)}function y(R,T){var A=Object.keys(R);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(R);T&&(I=I.filter(function(N){return Object.getOwnPropertyDescriptor(R,N).enumerable})),A.push.apply(A,I)}return A}function b(R){for(var T=1;T<arguments.length;T++){var A=arguments[T]!=null?arguments[T]:{};T%2?y(Object(A),!0).forEach(function(I){E(R,I,A[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(A)):y(Object(A)).forEach(function(I){Object.defineProperty(R,I,Object.getOwnPropertyDescriptor(A,I))})}return R}function E(R,T,A){return T in R?Object.defineProperty(R,T,{value:A,enumerable:!0,configurable:!0,writable:!0}):R[T]=A,R}function S(R,T){if(R==null)return{};var A={},I=Object.keys(R),N,K;for(K=0;K<I.length;K++)N=I[K],!(T.indexOf(N)>=0)&&(A[N]=R[N]);return A}function w(R,T){R.prototype=Object.create(T.prototype),R.prototype.constructor=R,x(R,T)}function x(R,T){return x=Object.setPrototypeOf||function(I,N){return I.__proto__=N,I},x(R,T)}var P=function(R){w(T,R);function T(){for(var I,N=arguments.length,K=new Array(N),_=0;_<N;_++)K[_]=arguments[_];return I=R.call.apply(R,[this].concat(K))||this,I.state={width:I.props.width,height:I.props.height,propsWidth:I.props.width,propsHeight:I.props.height},I.onResize=function(W,j){var re=j.size;I.props.onResize?(W.persist==null||W.persist(),I.setState(re,function(){return I.props.onResize&&I.props.onResize(W,j)})):I.setState(re)},I}T.getDerivedStateFromProps=function(N,K){return K.propsWidth!==N.width||K.propsHeight!==N.height?{width:N.width,height:N.height,propsWidth:N.width,propsHeight:N.height}:null};var A=T.prototype;return A.render=function(){var N=this.props,K=N.handle,_=N.handleSize,W=N.onResize,j=N.onResizeStart,re=N.onResizeStop,X=N.draggableOpts,Z=N.minConstraints,J=N.maxConstraints,q=N.lockAspectRatio,L=N.axis,$=N.width,k=N.height,F=N.resizeHandles,V=N.style,pe=N.transformScale,ce=S(N,h);return s.createElement(v.default,{axis:L,draggableOpts:X,handle:K,handleSize:_,height:this.state.height,lockAspectRatio:q,maxConstraints:J,minConstraints:Z,onResizeStart:j,onResize:this.onResize,onResizeStop:re,resizeHandles:F,transformScale:pe,width:this.state.width},s.createElement("div",g({},ce,{style:b(b({},V),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},T}(s.Component);c.default=P,P.propTypes=b(b({},l.resizableProps),{},{children:u.default.element})},18599:(C,c,t)=>{"use strict";c.__esModule=!0,c.resizableProps=void 0;var i=u(t(93415)),s=t(94618);function u(l){return l&&l.__esModule?l:{default:l}}var v={axis:i.default.oneOf(["both","x","y","none"]),className:i.default.string,children:i.default.element.isRequired,draggableOpts:i.default.shape({allowAnyClick:i.default.bool,cancel:i.default.string,children:i.default.node,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:i.default.node,grid:i.default.arrayOf(i.default.number),handle:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number}),height:i.default.number.isRequired,handle:i.default.oneOfType([i.default.node,i.default.func]),handleSize:i.default.arrayOf(i.default.number),lockAspectRatio:i.default.bool,maxConstraints:i.default.arrayOf(i.default.number),minConstraints:i.default.arrayOf(i.default.number),onResizeStop:i.default.func,onResizeStart:i.default.func,onResize:i.default.func,resizeHandles:i.default.arrayOf(i.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:i.default.number,width:i.default.number.isRequired};c.resizableProps=v},70514:(C,c,t)=>{"use strict";c.__esModule=!0,c.cloneElement=h;var i=s(t(27702));function s(p){return p&&p.__esModule?p:{default:p}}function u(p,d){var f=Object.keys(p);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(p);d&&(g=g.filter(function(y){return Object.getOwnPropertyDescriptor(p,y).enumerable})),f.push.apply(f,g)}return f}function v(p){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?u(Object(f),!0).forEach(function(g){l(p,g,f[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(f)):u(Object(f)).forEach(function(g){Object.defineProperty(p,g,Object.getOwnPropertyDescriptor(f,g))})}return p}function l(p,d,f){return d in p?Object.defineProperty(p,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):p[d]=f,p}function h(p,d){return d.style&&p.props.style&&(d.style=v(v({},p.props.style),d.style)),d.className&&p.props.className&&(d.className=p.props.className+" "+d.className),i.default.cloneElement(p,d)}},65325:(C,c,t)=>{"use strict";C.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},C.exports.Resizable=t(13224).default,C.exports.ResizableBox=t(57376).default},66920:(C,c,t)=>{"use strict";t.r(c),t.d(c,{AbortedDeferredError:()=>ue,Await:()=>Wt,BrowserRouter:()=>tn,CompatRoute:()=>bu,CompatRouter:()=>Zu,Form:()=>Ka,HashRouter:()=>cn,Link:()=>ua,MemoryRouter:()=>Ya,NavLink:()=>_a,Navigate:()=>qa,NavigationType:()=>v,Outlet:()=>se,Route:()=>ye,Router:()=>Xe,RouterProvider:()=>Wi,Routes:()=>yt,ScrollRestoration:()=>Ba,StaticRouter:()=>ql,UNSAFE_DataRouterContext:()=>Oa,UNSAFE_DataRouterStateContext:()=>wa,UNSAFE_LocationContext:()=>_r,UNSAFE_NavigationContext:()=>Qn,UNSAFE_RouteContext:()=>$r,UNSAFE_useScrollRestoration:()=>Zs,createBrowserRouter:()=>Gr,createHashRouter:()=>Pi,createMemoryRouter:()=>Ui,createPath:()=>S,createRoutesFromChildren:()=>Si,createRoutesFromElements:()=>Si,createSearchParams:()=>Uo,defer:()=>Ye,generatePath:()=>F,isRouteErrorResponse:()=>It,json:()=>Re,matchPath:()=>V,matchRoutes:()=>I,parsePath:()=>w,redirect:()=>qe,renderMatches:()=>Fi,resolvePath:()=>ie,unstable_HistoryRouter:()=>nr,unstable_useBlocker:()=>Fr,unstable_usePrompt:()=>fu,useActionData:()=>ai,useAsyncError:()=>Gn,useAsyncValue:()=>Mt,useBeforeUnload:()=>Ns,useFetcher:()=>Co,useFetchers:()=>_s,useFormAction:()=>Cr,useHref:()=>On,useInRouterContext:()=>Zn,useLinkClickHandler:()=>dr,useLoaderData:()=>uo,useLocation:()=>Ur,useMatch:()=>ln,useMatches:()=>ja,useNavigate:()=>jn,useNavigation:()=>wr,useNavigationType:()=>En,useOutlet:()=>Ir,useOutletContext:()=>Mr,useParams:()=>Zr,useResolvedPath:()=>lr,useRevalidator:()=>qi,useRouteError:()=>za,useRouteLoaderData:()=>wi,useRoutes:()=>Jr,useSearchParams:()=>ci,useSubmit:()=>yi});var i=t(27702),s=t.t(i,2);/** * @remix-run/router v1.5.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function u(){return u=Object.assign?Object.assign.bind():function(Sn){for(var Wn=1;Wn<arguments.length;Wn++){var vr=arguments[Wn];for(var kr in vr)Object.prototype.hasOwnProperty.call(vr,kr)&&(Sn[kr]=vr[kr])}return Sn},u.apply(this,arguments)}var v;(function(Sn){Sn.Pop="POP",Sn.Push="PUSH",Sn.Replace="REPLACE"})(v||(v={}));const l="popstate";function h(Sn){Sn===void 0&&(Sn={});let{initialEntries:Wn=["/"],initialIndex:vr,v5Compat:kr=!1}=Sn,ui;ui=Wn.map((jt,$n)=>Mn(jt,typeof jt=="string"?null:jt.state,$n===0?"default":void 0));let ta=kt(vr??ui.length-1),St=v.Pop,pt=null;function kt(jt){return Math.min(Math.max(jt,0),ui.length-1)}function _t(){return ui[ta]}function Mn(jt,$n,pn){$n===void 0&&($n=null);let ee=E(ui?_t().pathname:"/",jt,$n,pn);return g(ee.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(jt)),ee}function Pr(jt){return typeof jt=="string"?jt:S(jt)}return{get index(){return ta},get action(){return St},get location(){return _t()},createHref:Pr,createURL(jt){return new URL(Pr(jt),"http://localhost")},encodeLocation(jt){let $n=typeof jt=="string"?w(jt):jt;return{pathname:$n.pathname||"",search:$n.search||"",hash:$n.hash||""}},push(jt,$n){St=v.Push;let pn=Mn(jt,$n);ta+=1,ui.splice(ta,ui.length,pn),kr&&pt&&pt({action:St,location:pn,delta:1})},replace(jt,$n){St=v.Replace;let pn=Mn(jt,$n);ui[ta]=pn,kr&&pt&&pt({action:St,location:pn,delta:0})},go(jt){St=v.Pop;let $n=kt(ta+jt),pn=ui[$n];ta=$n,pt&&pt({action:St,location:pn,delta:jt})},listen(jt){return pt=jt,()=>{pt=null}}}}function p(Sn){Sn===void 0&&(Sn={});function Wn(kr,ui){let{pathname:ta,search:St,hash:pt}=kr.location;return E("",{pathname:ta,search:St,hash:pt},ui.state&&ui.state.usr||null,ui.state&&ui.state.key||"default")}function vr(kr,ui){return typeof ui=="string"?ui:S(ui)}return x(Wn,vr,null,Sn)}function d(Sn){Sn===void 0&&(Sn={});function Wn(ui,ta){let{pathname:St="/",search:pt="",hash:kt=""}=w(ui.location.hash.substr(1));return E("",{pathname:St,search:pt,hash:kt},ta.state&&ta.state.usr||null,ta.state&&ta.state.key||"default")}function vr(ui,ta){let St=ui.document.querySelector("base"),pt="";if(St&&St.getAttribute("href")){let kt=ui.location.href,_t=kt.indexOf("#");pt=_t===-1?kt:kt.slice(0,_t)}return pt+"#"+(typeof ta=="string"?ta:S(ta))}function kr(ui,ta){g(ui.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(ta)+")")}return x(Wn,vr,kr,Sn)}function f(Sn,Wn){if(Sn===!1||Sn===null||typeof Sn>"u")throw new Error(Wn)}function g(Sn,Wn){if(!Sn){typeof console<"u"&&console.warn(Wn);try{throw new Error(Wn)}catch{}}}function y(){return Math.random().toString(36).substr(2,8)}function b(Sn,Wn){return{usr:Sn.state,key:Sn.key,idx:Wn}}function E(Sn,Wn,vr,kr){return vr===void 0&&(vr=null),u({pathname:typeof Sn=="string"?Sn:Sn.pathname,search:"",hash:""},typeof Wn=="string"?w(Wn):Wn,{state:vr,key:Wn&&Wn.key||kr||y()})}function S(Sn){let{pathname:Wn="/",search:vr="",hash:kr=""}=Sn;return vr&&vr!=="?"&&(Wn+=vr.charAt(0)==="?"?vr:"?"+vr),kr&&kr!=="#"&&(Wn+=kr.charAt(0)==="#"?kr:"#"+kr),Wn}function w(Sn){let Wn={};if(Sn){let vr=Sn.indexOf("#");vr>=0&&(Wn.hash=Sn.substr(vr),Sn=Sn.substr(0,vr));let kr=Sn.indexOf("?");kr>=0&&(Wn.search=Sn.substr(kr),Sn=Sn.substr(0,kr)),Sn&&(Wn.pathname=Sn)}return Wn}function x(Sn,Wn,vr,kr){kr===void 0&&(kr={});let{window:ui=document.defaultView,v5Compat:ta=!1}=kr,St=ui.history,pt=v.Pop,kt=null,_t=Mn();_t==null&&(_t=0,St.replaceState(u({},St.state,{idx:_t}),""));function Mn(){return(St.state||{idx:null}).idx}function Pr(){pt=v.Pop;let ee=Mn(),oe=ee==null?null:ee-_t;_t=ee,kt&&kt({action:pt,location:pn.location,delta:oe})}function Hi(ee,oe){pt=v.Push;let De=E(pn.location,ee,oe);vr&&vr(De,ee),_t=Mn()+1;let Be=b(De,_t),gt=pn.createHref(De);try{St.pushState(Be,"",gt)}catch{ui.location.assign(gt)}ta&&kt&&kt({action:pt,location:pn.location,delta:1})}function jt(ee,oe){pt=v.Replace;let De=E(pn.location,ee,oe);vr&&vr(De,ee),_t=Mn();let Be=b(De,_t),gt=pn.createHref(De);St.replaceState(Be,"",gt),ta&&kt&&kt({action:pt,location:pn.location,delta:0})}function $n(ee){let oe=ui.location.origin!=="null"?ui.location.origin:ui.location.href,De=typeof ee=="string"?ee:S(ee);return f(oe,"No window.location.(origin|href) available to create URL for href: "+De),new URL(De,oe)}let pn={get action(){return pt},get location(){return Sn(ui,St)},listen(ee){if(kt)throw new Error("A history only accepts one active listener");return ui.addEventListener(l,Pr),kt=ee,()=>{ui.removeEventListener(l,Pr),kt=null}},createHref(ee){return Wn(ui,ee)},createURL:$n,encodeLocation(ee){let oe=$n(ee);return{pathname:oe.pathname,search:oe.search,hash:oe.hash}},push:Hi,replace:jt,go(ee){return St.go(ee)}};return pn}var P;(function(Sn){Sn.data="data",Sn.deferred="deferred",Sn.redirect="redirect",Sn.error="error"})(P||(P={}));const R=new Set(["lazy","caseSensitive","path","id","index","children"]);function T(Sn){return Sn.index===!0}function A(Sn,Wn,vr,kr){return vr===void 0&&(vr=[]),kr===void 0&&(kr={}),Sn.map((ui,ta)=>{let St=[...vr,ta],pt=typeof ui.id=="string"?ui.id:St.join("-");if(f(ui.index!==!0||!ui.children,"Cannot specify children on an index route"),f(!kr[pt],'Found a route id collision on id "'+pt+`". Route id's must be globally unique within Data Router usages`),T(ui)){let kt=u({},ui,{hasErrorBoundary:Wn(ui),id:pt});return kr[pt]=kt,kt}else{let kt=u({},ui,{id:pt,hasErrorBoundary:Wn(ui),children:void 0});return kr[pt]=kt,ui.children&&(kt.children=A(ui.children,Wn,St,kr)),kt}})}function I(Sn,Wn,vr){vr===void 0&&(vr="/");let kr=typeof Wn=="string"?w(Wn):Wn,ui=te(kr.pathname||"/",vr);if(ui==null)return null;let ta=N(Sn);_(ta);let St=null;for(let pt=0;St==null&&pt<ta.length;++pt)St=k(ta[pt],ce(ui));return St}function N(Sn,Wn,vr,kr){Wn===void 0&&(Wn=[]),vr===void 0&&(vr=[]),kr===void 0&&(kr="");let ui=(ta,St,pt)=>{let kt={relativePath:pt===void 0?ta.path||"":pt,caseSensitive:ta.caseSensitive===!0,childrenIndex:St,route:ta};kt.relativePath.startsWith("/")&&(f(kt.relativePath.startsWith(kr),'Absolute route path "'+kt.relativePath+'" nested under path '+('"'+kr+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),kt.relativePath=kt.relativePath.slice(kr.length));let _t=we([kr,kt.relativePath]),Mn=vr.concat(kt);ta.children&&ta.children.length>0&&(f(ta.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+_t+'".')),N(ta.children,Wn,Mn,_t)),!(ta.path==null&&!ta.index)&&Wn.push({path:_t,score:L(_t,ta.index),routesMeta:Mn})};return Sn.forEach((ta,St)=>{var pt;if(ta.path===""||!((pt=ta.path)!=null&&pt.includes("?")))ui(ta,St);else for(let kt of K(ta.path))ui(ta,St,kt)}),Wn}function K(Sn){let Wn=Sn.split("/");if(Wn.length===0)return[];let[vr,...kr]=Wn,ui=vr.endsWith("?"),ta=vr.replace(/\?$/,"");if(kr.length===0)return ui?[ta,""]:[ta];let St=K(kr.join("/")),pt=[];return pt.push(...St.map(kt=>kt===""?ta:[ta,kt].join("/"))),ui&&pt.push(...St),pt.map(kt=>Sn.startsWith("/")&&kt===""?"/":kt)}function _(Sn){Sn.sort((Wn,vr)=>Wn.score!==vr.score?vr.score-Wn.score:$(Wn.routesMeta.map(kr=>kr.childrenIndex),vr.routesMeta.map(kr=>kr.childrenIndex)))}const W=/^:\w+$/,j=3,re=2,X=1,Z=10,J=-2,q=Sn=>Sn==="*";function L(Sn,Wn){let vr=Sn.split("/"),kr=vr.length;return vr.some(q)&&(kr+=J),Wn&&(kr+=re),vr.filter(ui=>!q(ui)).reduce((ui,ta)=>ui+(W.test(ta)?j:ta===""?X:Z),kr)}function $(Sn,Wn){return Sn.length===Wn.length&&Sn.slice(0,-1).every((kr,ui)=>kr===Wn[ui])?Sn[Sn.length-1]-Wn[Wn.length-1]:0}function k(Sn,Wn){let{routesMeta:vr}=Sn,kr={},ui="/",ta=[];for(let St=0;St<vr.length;++St){let pt=vr[St],kt=St===vr.length-1,_t=ui==="/"?Wn:Wn.slice(ui.length)||"/",Mn=V({path:pt.relativePath,caseSensitive:pt.caseSensitive,end:kt},_t);if(!Mn)return null;Object.assign(kr,Mn.params);let Pr=pt.route;ta.push({params:kr,pathname:we([ui,Mn.pathname]),pathnameBase:Ge(we([ui,Mn.pathnameBase])),route:Pr}),Mn.pathnameBase!=="/"&&(ui=we([ui,Mn.pathnameBase]))}return ta}function F(Sn,Wn){Wn===void 0&&(Wn={});let vr=Sn;vr.endsWith("*")&&vr!=="*"&&!vr.endsWith("/*")&&(g(!1,'Route path "'+vr+'" will be treated as if it were '+('"'+vr.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+vr.replace(/\*$/,"/*")+'".')),vr=vr.replace(/\*$/,"/*"));const kr=vr.startsWith("/")?"/":"",ui=vr.split(/\/+/).map((ta,St,pt)=>{if(St===pt.length-1&&ta==="*")return Wn["*"];const _t=ta.match(/^:(\w+)(\??)$/);if(_t){const[,Mn,Pr]=_t;let Hi=Wn[Mn];return Pr==="?"?Hi??"":(Hi==null&&f(!1,'Missing ":'+Mn+'" param'),Hi)}return ta.replace(/\?$/g,"")}).filter(ta=>!!ta);return kr+ui.join("/")}function V(Sn,Wn){typeof Sn=="string"&&(Sn={path:Sn,caseSensitive:!1,end:!0});let[vr,kr]=pe(Sn.path,Sn.caseSensitive,Sn.end),ui=Wn.match(vr);if(!ui)return null;let ta=ui[0],St=ta.replace(/(.)\/+$/,"$1"),pt=ui.slice(1);return{params:kr.reduce((_t,Mn,Pr)=>{if(Mn==="*"){let Hi=pt[Pr]||"";St=ta.slice(0,ta.length-Hi.length).replace(/(.)\/+$/,"$1")}return _t[Mn]=G(pt[Pr]||"",Mn),_t},{}),pathname:ta,pathnameBase:St,pattern:Sn}}function pe(Sn,Wn,vr){Wn===void 0&&(Wn=!1),vr===void 0&&(vr=!0),g(Sn==="*"||!Sn.endsWith("*")||Sn.endsWith("/*"),'Route path "'+Sn+'" will be treated as if it were '+('"'+Sn.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+Sn.replace(/\*$/,"/*")+'".'));let kr=[],ui="^"+Sn.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(St,pt)=>(kr.push(pt),"/([^\\/]+)"));return Sn.endsWith("*")?(kr.push("*"),ui+=Sn==="*"||Sn==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):vr?ui+="\\/*$":Sn!==""&&Sn!=="/"&&(ui+="(?:(?=\\/|$))"),[new RegExp(ui,Wn?void 0:"i"),kr]}function ce(Sn){try{return decodeURI(Sn)}catch(Wn){return g(!1,'The URL path "'+Sn+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+Wn+").")),Sn}}function G(Sn,Wn){try{return decodeURIComponent(Sn)}catch(vr){return g(!1,'The value for the URL param "'+Wn+'" will not be decoded because'+(' the string "'+Sn+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+vr+").")),Sn}}function te(Sn,Wn){if(Wn==="/")return Sn;if(!Sn.toLowerCase().startsWith(Wn.toLowerCase()))return null;let vr=Wn.endsWith("/")?Wn.length-1:Wn.length,kr=Sn.charAt(vr);return kr&&kr!=="/"?null:Sn.slice(vr)||"/"}function ie(Sn,Wn){Wn===void 0&&(Wn="/");let{pathname:vr,search:kr="",hash:ui=""}=typeof Sn=="string"?w(Sn):Sn;return{pathname:vr?vr.startsWith("/")?vr:fe(vr,Wn):Wn,search:ht(kr),hash:nt(ui)}}function fe(Sn,Wn){let vr=Wn.replace(/\/+$/,"").split("/");return Sn.split("/").forEach(ui=>{ui===".."?vr.length>1&&vr.pop():ui!=="."&&vr.push(ui)}),vr.length>1?vr.join("/"):"/"}function Se(Sn,Wn,vr,kr){return"Cannot include a '"+Sn+"' character in a manually specified "+("`to."+Wn+"` field ["+JSON.stringify(kr)+"]. Please separate it out to the ")+("`to."+vr+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function he(Sn){return Sn.filter((Wn,vr)=>vr===0||Wn.route.path&&Wn.route.path.length>0)}function me(Sn,Wn,vr,kr){kr===void 0&&(kr=!1);let ui;typeof Sn=="string"?ui=w(Sn):(ui=u({},Sn),f(!ui.pathname||!ui.pathname.includes("?"),Se("?","pathname","search",ui)),f(!ui.pathname||!ui.pathname.includes("#"),Se("#","pathname","hash",ui)),f(!ui.search||!ui.search.includes("#"),Se("#","search","hash",ui)));let ta=Sn===""||ui.pathname==="",St=ta?"/":ui.pathname,pt;if(kr||St==null)pt=vr;else{let Pr=Wn.length-1;if(St.startsWith("..")){let Hi=St.split("/");for(;Hi[0]==="..";)Hi.shift(),Pr-=1;ui.pathname=Hi.join("/")}pt=Pr>=0?Wn[Pr]:"/"}let kt=ie(ui,pt),_t=St&&St!=="/"&&St.endsWith("/"),Mn=(ta||St===".")&&vr.endsWith("/");return!kt.pathname.endsWith("/")&&(_t||Mn)&&(kt.pathname+="/"),kt}function _e(Sn){return Sn===""||Sn.pathname===""?"/":typeof Sn=="string"?w(Sn).pathname:Sn.pathname}const we=Sn=>Sn.join("/").replace(/\/\/+/g,"/"),Ge=Sn=>Sn.replace(/\/+$/,"").replace(/^\/*/,"/"),ht=Sn=>!Sn||Sn==="?"?"":Sn.startsWith("?")?Sn:"?"+Sn,nt=Sn=>!Sn||Sn==="#"?"":Sn.startsWith("#")?Sn:"#"+Sn,Re=function(Wn,vr){vr===void 0&&(vr={});let kr=typeof vr=="number"?{status:vr}:vr,ui=new Headers(kr.headers);return ui.has("Content-Type")||ui.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(Wn),u({},kr,{headers:ui}))};class ue extends Error{}class ae{constructor(Wn,vr){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],f(Wn&&typeof Wn=="object"&&!Array.isArray(Wn),"defer() only accepts plain objects");let kr;this.abortPromise=new Promise((ta,St)=>kr=St),this.controller=new AbortController;let ui=()=>kr(new ue("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",ui),this.controller.signal.addEventListener("abort",ui),this.data=Object.entries(Wn).reduce((ta,St)=>{let[pt,kt]=St;return Object.assign(ta,{[pt]:this.trackPromise(pt,kt)})},{}),this.done&&this.unlistenAbortSignal(),this.init=vr}trackPromise(Wn,vr){if(!(vr instanceof Promise))return vr;this.deferredKeys.push(Wn),this.pendingKeysSet.add(Wn);let kr=Promise.race([vr,this.abortPromise]).then(ui=>this.onSettle(kr,Wn,null,ui),ui=>this.onSettle(kr,Wn,ui));return kr.catch(()=>{}),Object.defineProperty(kr,"_tracked",{get:()=>!0}),kr}onSettle(Wn,vr,kr,ui){return this.controller.signal.aborted&&kr instanceof ue?(this.unlistenAbortSignal(),Object.defineProperty(Wn,"_error",{get:()=>kr}),Promise.reject(kr)):(this.pendingKeysSet.delete(vr),this.done&&this.unlistenAbortSignal(),kr?(Object.defineProperty(Wn,"_error",{get:()=>kr}),this.emit(!1,vr),Promise.reject(kr)):(Object.defineProperty(Wn,"_data",{get:()=>ui}),this.emit(!1,vr),ui))}emit(Wn,vr){this.subscribers.forEach(kr=>kr(Wn,vr))}subscribe(Wn){return this.subscribers.add(Wn),()=>this.subscribers.delete(Wn)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((Wn,vr)=>this.pendingKeysSet.delete(vr)),this.emit(!0)}async resolveData(Wn){let vr=!1;if(!this.done){let kr=()=>this.cancel();Wn.addEventListener("abort",kr),vr=await new Promise(ui=>{this.subscribe(ta=>{Wn.removeEventListener("abort",kr),(ta||this.done)&&ui(ta)})})}return vr}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return f(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((Wn,vr)=>{let[kr,ui]=vr;return Object.assign(Wn,{[kr]:Me(ui)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function ve(Sn){return Sn instanceof Promise&&Sn._tracked===!0}function Me(Sn){if(!ve(Sn))return Sn;if(Sn._error)throw Sn._error;return Sn._data}const Ye=function(Wn,vr){vr===void 0&&(vr={});let kr=typeof vr=="number"?{status:vr}:vr;return new ae(Wn,kr)},qe=function(Wn,vr){vr===void 0&&(vr=302);let kr=vr;typeof kr=="number"?kr={status:kr}:typeof kr.status>"u"&&(kr.status=302);let ui=new Headers(kr.headers);return ui.set("Location",Wn),new Response(null,u({},kr,{headers:ui}))};class At{constructor(Wn,vr,kr,ui){ui===void 0&&(ui=!1),this.status=Wn,this.statusText=vr||"",this.internal=ui,kr instanceof Error?(this.data=kr.toString(),this.error=kr):this.data=kr}}function It(Sn){return Sn!=null&&typeof Sn.status=="number"&&typeof Sn.statusText=="string"&&typeof Sn.internal=="boolean"&&"data"in Sn}const Ce=["post","put","patch","delete"],Ae=new Set(Ce),$e=["get",...Ce],tt=new Set($e),ke=new Set([301,302,303,307,308]),Oe=new Set([307,308]),je={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Et={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},ct={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ut=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ne=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mt=!Ne,bt=Sn=>!!Sn.hasErrorBoundary;function Gt(Sn){f(Sn.routes.length>0,"You must provide a non-empty routes array to createRouter");let Wn=Sn.detectErrorBoundary||bt,vr={},kr=A(Sn.routes,Wn,void 0,vr),ui,ta=u({v7_normalizeFormMethod:!1},Sn.future),St=null,pt=new Set,kt=null,_t=null,Mn=null,Pr=Sn.hydrationData!=null,Hi=I(kr,Sn.history.location,Sn.basename),jt=null;if(Hi==null){let xr=wt(404,{pathname:Sn.history.location.pathname}),{matches:Wr,route:ti}=en(kr);Hi=Wr,jt={[ti.id]:xr}}let $n=!Hi.some(xr=>xr.route.lazy)&&(!Hi.some(xr=>xr.route.loader)||Sn.hydrationData!=null),pn,ee={historyAction:Sn.history.action,location:Sn.history.location,matches:Hi,initialized:$n,navigation:je,restoreScrollPosition:Sn.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:Sn.hydrationData&&Sn.hydrationData.loaderData||{},actionData:Sn.hydrationData&&Sn.hydrationData.actionData||null,errors:Sn.hydrationData&&Sn.hydrationData.errors||jt,fetchers:new Map,blockers:new Map},oe=v.Pop,De=!1,Be,gt=!1,Ht=!1,nn=[],Rn=[],Yn=new Map,gr=0,Ai=-1,$i=new Map,ma=new Set,La=new Map,Qa=new Map,go=new Map,Ao=!1;function Fo(){return St=Sn.history.listen(xr=>{let{action:Wr,location:ti,delta:xi}=xr;if(Ao){Ao=!1;return}g(go.size===0||xi!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Gi=Tr({currentLocation:ee.location,nextLocation:ti,historyAction:Wr});if(Gi&&xi!=null){Ao=!0,Sn.history.go(xi*-1),sr(Gi,{state:"blocked",location:ti,proceed(){sr(Gi,{state:"proceeding",proceed:void 0,reset:void 0,location:ti}),Sn.history.go(xi)},reset(){zn(Gi),ks({blockers:new Map(pn.state.blockers)})}});return}return tr(Wr,ti)}),ee.initialized||tr(v.Pop,ee.location),pn}function Ho(){St&&St(),pt.clear(),Be&&Be.abort(),ee.fetchers.forEach((xr,Wr)=>Qi(Wr)),ee.blockers.forEach((xr,Wr)=>zn(Wr))}function eu(xr){return pt.add(xr),()=>pt.delete(xr)}function ks(xr){ee=u({},ee,xr),pt.forEach(Wr=>Wr(ee))}function Gu(xr,Wr){var ti,xi;let Gi=ee.actionData!=null&&ee.navigation.formMethod!=null&&vn(ee.navigation.formMethod)&&ee.navigation.state==="loading"&&((ti=xr.state)==null?void 0:ti._isRedirect)!==!0,_i;Wr.actionData?Object.keys(Wr.actionData).length>0?_i=Wr.actionData:_i=null:Gi?_i=ee.actionData:_i=null;let da=Wr.loaderData?ze(ee.loaderData,Wr.loaderData,Wr.matches||[],Wr.errors):ee.loaderData;for(let[Pa]of go)zn(Pa);let Sa=De===!0||ee.navigation.formMethod!=null&&vn(ee.navigation.formMethod)&&((xi=xr.state)==null?void 0:xi._isRedirect)!==!0;ui&&(kr=ui,ui=void 0),ks(u({},Wr,{actionData:_i,loaderData:da,historyAction:oe,location:xr,initialized:!0,navigation:je,revalidation:"idle",restoreScrollPosition:Vr(xr,Wr.matches||ee.matches),preventScrollReset:Sa,blockers:new Map(ee.blockers)})),gt||oe===v.Pop||(oe===v.Push?Sn.history.push(xr,xr.state):oe===v.Replace&&Sn.history.replace(xr,xr.state)),oe=v.Pop,De=!1,gt=!1,Ht=!1,nn=[],Rn=[]}async function an(xr,Wr){if(typeof xr=="number"){Sn.history.go(xr);return}let{path:ti,submission:xi,error:Gi}=zt(xr,ta,Wr),_i=ee.location,da=E(ee.location,ti,Wr&&Wr.state);da=u({},da,Sn.history.encodeLocation(da));let Sa=Wr&&Wr.replace!=null?Wr.replace:void 0,Pa=v.Push;Sa===!0?Pa=v.Replace:Sa===!1||xi!=null&&vn(xi.formMethod)&&xi.formAction===ee.location.pathname+ee.location.search&&(Pa=v.Replace);let oo=Wr&&"preventScrollReset"in Wr?Wr.preventScrollReset===!0:void 0,mo=Tr({currentLocation:_i,nextLocation:da,historyAction:Pa});if(mo){sr(mo,{state:"blocked",location:da,proceed(){sr(mo,{state:"proceeding",proceed:void 0,reset:void 0,location:da}),an(xr,Wr)},reset(){zn(mo),ks({blockers:new Map(ee.blockers)})}});return}return await tr(Pa,da,{submission:xi,pendingError:Gi,preventScrollReset:oo,replace:Wr&&Wr.replace})}function Nn(){if(va(),ks({revalidation:"loading"}),ee.navigation.state!=="submitting"){if(ee.navigation.state==="idle"){tr(ee.historyAction,ee.location,{startUninterruptedRevalidation:!0});return}tr(oe||ee.historyAction,ee.navigation.location,{overrideNavigation:ee.navigation})}}async function tr(xr,Wr,ti){Be&&Be.abort(),Be=null,oe=xr,gt=(ti&&ti.startUninterruptedRevalidation)===!0,Sr(ee.location,ee.matches),De=(ti&&ti.preventScrollReset)===!0;let xi=ui||kr,Gi=ti&&ti.overrideNavigation,_i=I(xi,Wr,Sn.basename);if(!_i){let no=wt(404,{pathname:Wr.pathname}),{matches:ca,route:co}=en(xi);Br(),Gu(Wr,{matches:ca,loaderData:{},errors:{[co.id]:no}});return}if(on(ee.location,Wr)&&!(ti&&ti.submission&&vn(ti.submission.formMethod))){Gu(Wr,{matches:_i});return}Be=new AbortController;let da=Rt(Sn.history,Wr,Be.signal,ti&&ti.submission),Sa,Pa;if(ti&&ti.pendingError)Pa={[st(_i).route.id]:ti.pendingError};else if(ti&&ti.submission&&vn(ti.submission.formMethod)){let no=await In(da,Wr,ti.submission,_i,{replace:ti.replace});if(no.shortCircuited)return;Sa=no.pendingActionData,Pa=no.pendingActionError,Gi=u({state:"loading",location:Wr},ti.submission),da=new Request(da.url,{signal:da.signal})}let{shortCircuited:oo,loaderData:mo,errors:Ga}=await di(da,Wr,_i,Gi,ti&&ti.submission,ti&&ti.fetcherSubmission,ti&&ti.replace,Sa,Pa);oo||(Be=null,Gu(Wr,u({matches:_i},Sa?{actionData:Sa}:{},{loaderData:mo,errors:Ga})))}async function In(xr,Wr,ti,xi,Gi){va();let _i=u({state:"submitting",location:Wr},ti);ks({navigation:_i});let da,Sa=Kn(xi,Wr);if(!Sa.route.action&&!Sa.route.lazy)da={type:P.error,error:wt(405,{method:xr.method,pathname:Wr.pathname,routeId:Sa.route.id})};else if(da=await rt("action",xr,Sa,xi,vr,Wn,pn.basename),xr.signal.aborted)return{shortCircuited:!0};if(Zt(da)){let Pa;return Gi&&Gi.replace!=null?Pa=Gi.replace:Pa=da.location===ee.location.pathname+ee.location.search,await _n(ee,da,{submission:ti,replace:Pa}),{shortCircuited:!0}}if(An(da)){let Pa=st(xi,Sa.route.id);return(Gi&&Gi.replace)!==!0&&(oe=v.Push),{pendingActionData:{},pendingActionError:{[Pa.route.id]:da.error}}}if(Tn(da))throw wt(400,{type:"defer-action"});return{pendingActionData:{[Sa.route.id]:da.data}}}async function di(xr,Wr,ti,xi,Gi,_i,da,Sa,Pa){let oo=xi;oo||(oo=u({state:"loading",location:Wr,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Gi));let mo=Gi||_i?Gi||_i:oo.formMethod&&oo.formAction&&oo.formData&&oo.formEncType?{formMethod:oo.formMethod,formAction:oo.formAction,formData:oo.formData,formEncType:oo.formEncType}:void 0,Ga=ui||kr,[no,ca]=vt(Sn.history,ee,ti,mo,Wr,Ht,nn,Rn,La,Ga,Sn.basename,Sa,Pa);if(Br(rs=>!(ti&&ti.some(ls=>ls.route.id===rs))||no&&no.some(ls=>ls.route.id===rs)),no.length===0&&ca.length===0)return Gu(Wr,u({matches:ti,loaderData:{},errors:Pa||null},Sa?{actionData:Sa}:{})),{shortCircuited:!0};if(!gt){ca.forEach(ls=>{let Ss=ee.fetchers.get(ls.key),cs={state:"loading",data:Ss&&Ss.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};ee.fetchers.set(ls.key,cs)});let rs=Sa||ee.actionData;ks(u({navigation:oo},rs?Object.keys(rs).length===0?{actionData:null}:{actionData:rs}:{},ca.length>0?{fetchers:new Map(ee.fetchers)}:{}))}Ai=++gr,ca.forEach(rs=>Yn.set(rs.key,Be));let{results:co,loaderResults:Yo,fetcherResults:bo}=await Ua(ee.matches,ti,no,ca,xr);if(xr.signal.aborted)return{shortCircuited:!0};ca.forEach(rs=>Yn.delete(rs.key));let Ea=Ke(co);if(Ea)return await _n(ee,Ea,{replace:da}),{shortCircuited:!0};let{loaderData:ko,errors:Es}=Jn(ee,ti,no,Yo,Pa,ca,bo,Qa);Qa.forEach((rs,ls)=>{rs.subscribe(Ss=>{(Ss||rs.done)&&Qa.delete(ls)})}),Nt();let Ts=un(Ai);return u({loaderData:ko,errors:Es},Ts||ca.length>0?{fetchers:new Map(ee.fetchers)}:{})}function oi(xr){return ee.fetchers.get(xr)||Et}function ki(xr,Wr,ti,xi){if(mt)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Yn.has(xr)&&ro(xr);let _i=I(ui||kr,ti,Sn.basename);if(!_i){Va(xr,Wr,wt(404,{pathname:ti}));return}let{path:da,submission:Sa}=zt(ti,ta,xi,!0),Pa=Kn(_i,da);if(De=(xi&&xi.preventScrollReset)===!0,Sa&&vn(Sa.formMethod)){ri(xr,Wr,da,Pa,_i,Sa);return}La.set(xr,{routeId:Wr,path:da}),bi(xr,Wr,da,Pa,_i,Sa)}async function ri(xr,Wr,ti,xi,Gi,_i){if(va(),La.delete(xr),!xi.route.action&&!xi.route.lazy){let is=wt(405,{method:_i.formMethod,pathname:ti,routeId:Wr});Va(xr,Wr,is);return}let da=ee.fetchers.get(xr),Sa=u({state:"submitting"},_i,{data:da&&da.data," _hasFetcherDoneAnything ":!0});ee.fetchers.set(xr,Sa),ks({fetchers:new Map(ee.fetchers)});let Pa=new AbortController,oo=Rt(Sn.history,ti,Pa.signal,_i);Yn.set(xr,Pa);let mo=await rt("action",oo,xi,Gi,vr,Wn,pn.basename);if(oo.signal.aborted){Yn.get(xr)===Pa&&Yn.delete(xr);return}if(Zt(mo)){Yn.delete(xr),ma.add(xr);let is=u({state:"loading"},_i,{data:void 0," _hasFetcherDoneAnything ":!0});return ee.fetchers.set(xr,is),ks({fetchers:new Map(ee.fetchers)}),_n(ee,mo,{submission:_i,isFetchActionRedirect:!0})}if(An(mo)){Va(xr,Wr,mo.error);return}if(Tn(mo))throw wt(400,{type:"defer-action"});let Ga=ee.navigation.location||ee.location,no=Rt(Sn.history,Ga,Pa.signal),ca=ui||kr,co=ee.navigation.state!=="idle"?I(ca,ee.navigation.location,Sn.basename):ee.matches;f(co,"Didn't find any matches after fetcher action");let Yo=++gr;$i.set(xr,Yo);let bo=u({state:"loading",data:mo.data},_i,{" _hasFetcherDoneAnything ":!0});ee.fetchers.set(xr,bo);let[Ea,ko]=vt(Sn.history,ee,co,_i,Ga,Ht,nn,Rn,La,ca,Sn.basename,{[xi.route.id]:mo.data},void 0);ko.filter(is=>is.key!==xr).forEach(is=>{let Os=is.key,Qs=ee.fetchers.get(Os),du={state:"loading",data:Qs&&Qs.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};ee.fetchers.set(Os,du),Yn.set(Os,Pa)}),ks({fetchers:new Map(ee.fetchers)});let{results:Es,loaderResults:Ts,fetcherResults:rs}=await Ua(ee.matches,co,Ea,ko,no);if(Pa.signal.aborted)return;$i.delete(xr),Yn.delete(xr),ko.forEach(is=>Yn.delete(is.key));let ls=Ke(Es);if(ls)return _n(ee,ls);let{loaderData:Ss,errors:cs}=Jn(ee,ee.matches,Ea,Ts,void 0,ko,rs,Qa),Do={state:"idle",data:mo.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};ee.fetchers.set(xr,Do);let fs=un(Yo);ee.navigation.state==="loading"&&Yo>Ai?(f(oe,"Expected pending action"),Be&&Be.abort(),Gu(ee.navigation.location,{matches:co,loaderData:Ss,errors:cs,fetchers:new Map(ee.fetchers)})):(ks(u({errors:cs,loaderData:ze(ee.loaderData,Ss,co,cs)},fs?{fetchers:new Map(ee.fetchers)}:{})),Ht=!1)}async function bi(xr,Wr,ti,xi,Gi,_i){let da=ee.fetchers.get(xr),Sa=u({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},_i,{data:da&&da.data," _hasFetcherDoneAnything ":!0});ee.fetchers.set(xr,Sa),ks({fetchers:new Map(ee.fetchers)});let Pa=new AbortController,oo=Rt(Sn.history,ti,Pa.signal);Yn.set(xr,Pa);let mo=await rt("loader",oo,xi,Gi,vr,Wn,pn.basename);if(Tn(mo)&&(mo=await Tt(mo,oo.signal,!0)||mo),Yn.get(xr)===Pa&&Yn.delete(xr),oo.signal.aborted)return;if(Zt(mo)){await _n(ee,mo);return}if(An(mo)){let no=st(ee.matches,Wr);ee.fetchers.delete(xr),ks({fetchers:new Map(ee.fetchers),errors:{[no.route.id]:mo.error}});return}f(!Tn(mo),"Unhandled fetcher deferred data");let Ga={state:"idle",data:mo.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};ee.fetchers.set(xr,Ga),ks({fetchers:new Map(ee.fetchers)})}async function _n(xr,Wr,ti){var xi;let{submission:Gi,replace:_i,isFetchActionRedirect:da}=ti===void 0?{}:ti;Wr.revalidate&&(Ht=!0);let Sa=E(xr.location,Wr.location,u({_isRedirect:!0},da?{_isFetchActionRedirect:!0}:{}));if(f(Sa,"Expected a location on the redirect navigation"),ut.test(Wr.location)&&Ne&&typeof((xi=window)==null?void 0:xi.location)<"u"){let ca=Sn.history.createURL(Wr.location),co=te(ca.pathname,Sn.basename||"/")==null;if(window.location.origin!==ca.origin||co){_i?window.location.replace(Wr.location):window.location.assign(Wr.location);return}}Be=null;let Pa=_i===!0?v.Replace:v.Push,{formMethod:oo,formAction:mo,formEncType:Ga,formData:no}=xr.navigation;!Gi&&oo&&mo&&no&&Ga&&(Gi={formMethod:oo,formAction:mo,formEncType:Ga,formData:no}),Oe.has(Wr.status)&&Gi&&vn(Gi.formMethod)?await tr(Pa,Sa,{submission:u({},Gi,{formAction:Wr.location}),preventScrollReset:De}):da?await tr(Pa,Sa,{overrideNavigation:{state:"loading",location:Sa,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:Gi,preventScrollReset:De}):await tr(Pa,Sa,{overrideNavigation:{state:"loading",location:Sa,formMethod:Gi?Gi.formMethod:void 0,formAction:Gi?Gi.formAction:void 0,formEncType:Gi?Gi.formEncType:void 0,formData:Gi?Gi.formData:void 0},preventScrollReset:De})}async function Ua(xr,Wr,ti,xi,Gi){let _i=await Promise.all([...ti.map(Pa=>rt("loader",Gi,Pa,Wr,vr,Wn,pn.basename)),...xi.map(Pa=>Pa.matches&&Pa.match?rt("loader",Rt(Sn.history,Pa.path,Gi.signal),Pa.match,Pa.matches,vr,Wn,pn.basename):{type:P.error,error:wt(404,{pathname:Pa.path})})]),da=_i.slice(0,ti.length),Sa=_i.slice(ti.length);return await Promise.all([fn(xr,ti,da,Gi.signal,!1,ee.loaderData),fn(xr,xi.map(Pa=>Pa.match),Sa,Gi.signal,!0)]),{results:_i,loaderResults:da,fetcherResults:Sa}}function va(){Ht=!0,nn.push(...Br()),La.forEach((xr,Wr)=>{Yn.has(Wr)&&(Rn.push(Wr),ro(Wr))})}function Va(xr,Wr,ti){let xi=st(ee.matches,Wr);Qi(xr),ks({errors:{[xi.route.id]:ti},fetchers:new Map(ee.fetchers)})}function Qi(xr){Yn.has(xr)&&ro(xr),La.delete(xr),$i.delete(xr),ma.delete(xr),ee.fetchers.delete(xr)}function ro(xr){let Wr=Yn.get(xr);f(Wr,"Expected fetch controller: "+xr),Wr.abort(),Yn.delete(xr)}function Pe(xr){for(let Wr of xr){let xi={state:"idle",data:oi(Wr).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};ee.fetchers.set(Wr,xi)}}function Nt(){let xr=[];for(let Wr of ma){let ti=ee.fetchers.get(Wr);f(ti,"Expected fetcher: "+Wr),ti.state==="loading"&&(ma.delete(Wr),xr.push(Wr))}Pe(xr)}function un(xr){let Wr=[];for(let[ti,xi]of $i)if(xi<xr){let Gi=ee.fetchers.get(ti);f(Gi,"Expected fetcher: "+ti),Gi.state==="loading"&&(ro(ti),$i.delete(ti),Wr.push(ti))}return Pe(Wr),Wr.length>0}function xn(xr,Wr){let ti=ee.blockers.get(xr)||ct;return go.get(xr)!==Wr&&go.set(xr,Wr),ti}function zn(xr){ee.blockers.delete(xr),go.delete(xr)}function sr(xr,Wr){let ti=ee.blockers.get(xr)||ct;f(ti.state==="unblocked"&&Wr.state==="blocked"||ti.state==="blocked"&&Wr.state==="blocked"||ti.state==="blocked"&&Wr.state==="proceeding"||ti.state==="blocked"&&Wr.state==="unblocked"||ti.state==="proceeding"&&Wr.state==="unblocked","Invalid blocker state transition: "+ti.state+" -> "+Wr.state),ee.blockers.set(xr,Wr),ks({blockers:new Map(ee.blockers)})}function Tr(xr){let{currentLocation:Wr,nextLocation:ti,historyAction:xi}=xr;if(go.size===0)return;go.size>1&&g(!1,"A router only supports one blocker at a time");let Gi=Array.from(go.entries()),[_i,da]=Gi[Gi.length-1],Sa=ee.blockers.get(_i);if(!(Sa&&Sa.state==="proceeding")&&da({currentLocation:Wr,nextLocation:ti,historyAction:xi}))return _i}function Br(xr){let Wr=[];return Qa.forEach((ti,xi)=>{(!xr||xr(xi))&&(ti.cancel(),Wr.push(xi),Qa.delete(xi))}),Wr}function Er(xr,Wr,ti){if(kt=xr,Mn=Wr,_t=ti||(xi=>xi.key),!Pr&&ee.navigation===je){Pr=!0;let xi=Vr(ee.location,ee.matches);xi!=null&&ks({restoreScrollPosition:xi})}return()=>{kt=null,Mn=null,_t=null}}function Sr(xr,Wr){if(kt&&_t&&Mn){let ti=Wr.map(Gi=>mn(Gi,ee.loaderData)),xi=_t(xr,ti)||xr.key;kt[xi]=Mn()}}function Vr(xr,Wr){if(kt&&_t&&Mn){let ti=Wr.map(_i=>mn(_i,ee.loaderData)),xi=_t(xr,ti)||xr.key,Gi=kt[xi];if(typeof Gi=="number")return Gi}return null}function fi(xr){ui=xr}return pn={get basename(){return Sn.basename},get state(){return ee},get routes(){return kr},initialize:Fo,subscribe:eu,enableScrollRestoration:Er,navigate:an,fetch:ki,revalidate:Nn,createHref:xr=>Sn.history.createHref(xr),encodeLocation:xr=>Sn.history.encodeLocation(xr),getFetcher:oi,deleteFetcher:Qi,dispose:Ho,getBlocker:xn,deleteBlocker:zn,_internalFetchControllers:Yn,_internalActiveDeferreds:Qa,_internalSetRoutes:fi},pn}const hn=Symbol("deferred");function Yt(Sn,Wn){f(Sn.length>0,"You must provide a non-empty routes array to createStaticHandler");let vr={},kr=Wn?.detectErrorBoundary||bt,ui=A(Sn,kr,void 0,vr),ta=(Wn?Wn.basename:null)||"/";async function St(Pr,Hi){let{requestContext:jt}=Hi===void 0?{}:Hi,$n=new URL(Pr.url),pn=Pr.method,ee=E("",S($n),null,"default"),oe=I(ui,ee,ta);if(!qt(pn)&&pn!=="HEAD"){let Be=wt(405,{method:pn}),{matches:gt,route:Ht}=en(ui);return{basename:ta,location:ee,matches:gt,loaderData:{},actionData:null,errors:{[Ht.id]:Be},statusCode:Be.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}else if(!oe){let Be=wt(404,{pathname:ee.pathname}),{matches:gt,route:Ht}=en(ui);return{basename:ta,location:ee,matches:gt,loaderData:{},actionData:null,errors:{[Ht.id]:Be},statusCode:Be.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let De=await kt(Pr,ee,oe,jt);return We(De)?De:u({location:ee,basename:ta},De)}async function pt(Pr,Hi){let{routeId:jt,requestContext:$n}=Hi===void 0?{}:Hi,pn=new URL(Pr.url),ee=Pr.method,oe=E("",S(pn),null,"default"),De=I(ui,oe,ta);if(!qt(ee)&&ee!=="HEAD"&&ee!=="OPTIONS")throw wt(405,{method:ee});if(!De)throw wt(404,{pathname:oe.pathname});let Be=jt?De.find(Rn=>Rn.route.id===jt):Kn(De,oe);if(jt&&!Be)throw wt(403,{pathname:oe.pathname,routeId:jt});if(!Be)throw wt(404,{pathname:oe.pathname});let gt=await kt(Pr,oe,De,$n,Be);if(We(gt))return gt;let Ht=gt.errors?Object.values(gt.errors)[0]:void 0;if(Ht!==void 0)throw Ht;if(gt.actionData)return Object.values(gt.actionData)[0];if(gt.loaderData){var nn;let Rn=Object.values(gt.loaderData)[0];return(nn=gt.activeDeferreds)!=null&&nn[Be.route.id]&&(Rn[hn]=gt.activeDeferreds[Be.route.id]),Rn}}async function kt(Pr,Hi,jt,$n,pn){f(Pr.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(vn(Pr.method.toLowerCase()))return await _t(Pr,jt,pn||Kn(jt,Hi),$n,pn!=null);let ee=await Mn(Pr,jt,$n,pn);return We(ee)?ee:u({},ee,{actionData:null,actionHeaders:{}})}catch(ee){if(it(ee)){if(ee.type===P.error&&!Ft(ee.response))throw ee.response;return ee.response}if(Ft(ee))return ee;throw ee}}async function _t(Pr,Hi,jt,$n,pn){let ee;if(!jt.route.action&&!jt.route.lazy){let Be=wt(405,{method:Pr.method,pathname:new URL(Pr.url).pathname,routeId:jt.route.id});if(pn)throw Be;ee={type:P.error,error:Be}}else if(ee=await rt("action",Pr,jt,Hi,vr,kr,ta,!0,pn,$n),Pr.signal.aborted){let Be=pn?"queryRoute":"query";throw new Error(Be+"() call aborted")}if(Zt(ee))throw new Response(null,{status:ee.status,headers:{Location:ee.location}});if(Tn(ee)){let Be=wt(400,{type:"defer-action"});if(pn)throw Be;ee={type:P.error,error:Be}}if(pn){if(An(ee))throw ee.error;return{matches:[jt],loaderData:{},actionData:{[jt.route.id]:ee.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}if(An(ee)){let Be=st(Hi,jt.route.id),gt=await Mn(Pr,Hi,$n,void 0,{[Be.route.id]:ee.error});return u({},gt,{statusCode:It(ee.error)?ee.error.status:500,actionData:null,actionHeaders:u({},ee.headers?{[jt.route.id]:ee.headers}:{})})}let oe=new Request(Pr.url,{headers:Pr.headers,redirect:Pr.redirect,signal:Pr.signal}),De=await Mn(oe,Hi,$n);return u({},De,ee.statusCode?{statusCode:ee.statusCode}:{},{actionData:{[jt.route.id]:ee.data},actionHeaders:u({},ee.headers?{[jt.route.id]:ee.headers}:{})})}async function Mn(Pr,Hi,jt,$n,pn){let ee=$n!=null;if(ee&&!($n!=null&&$n.route.loader)&&!($n!=null&&$n.route.lazy))throw wt(400,{method:Pr.method,pathname:new URL(Pr.url).pathname,routeId:$n?.route.id});let De=($n?[$n]:Kt(Hi,Object.keys(pn||{})[0])).filter(Rn=>Rn.route.loader||Rn.route.lazy);if(De.length===0)return{matches:Hi,loaderData:Hi.reduce((Rn,Yn)=>Object.assign(Rn,{[Yn.route.id]:null}),{}),errors:pn||null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let Be=await Promise.all([...De.map(Rn=>rt("loader",Pr,Rn,Hi,vr,kr,ta,!0,ee,jt))]);if(Pr.signal.aborted){let Rn=ee?"queryRoute":"query";throw new Error(Rn+"() call aborted")}let gt=new Map,Ht=sn(Hi,De,Be,pn,gt),nn=new Set(De.map(Rn=>Rn.route.id));return Hi.forEach(Rn=>{nn.has(Rn.route.id)||(Ht.loaderData[Rn.route.id]=null)}),u({},Ht,{matches:Hi,activeDeferreds:gt.size>0?Object.fromEntries(gt.entries()):null})}return{dataRoutes:ui,query:St,queryRoute:pt}}function Bt(Sn,Wn,vr){return u({},Wn,{statusCode:500,errors:{[Wn._deepestRenderedBoundaryId||Sn[0].id]:vr}})}function Lt(Sn){return Sn!=null&&"formData"in Sn}function zt(Sn,Wn,vr,kr){kr===void 0&&(kr=!1);let ui=typeof Sn=="string"?Sn:S(Sn);if(!vr||!Lt(vr))return{path:ui};if(vr.formMethod&&!qt(vr.formMethod))return{path:ui,error:wt(405,{method:vr.formMethod})};let ta;if(vr.formData){let kt=vr.formMethod||"get";if(ta={formMethod:Wn.v7_normalizeFormMethod?kt.toUpperCase():kt.toLowerCase(),formAction:Ut(ui),formEncType:vr&&vr.formEncType||"application/x-www-form-urlencoded",formData:vr.formData},vn(ta.formMethod))return{path:ui,submission:ta}}let St=w(ui),pt=rn(vr.formData);return kr&&St.search&&dn(St.search)&&pt.append("index",""),St.search="?"+pt,{path:S(St),submission:ta}}function Kt(Sn,Wn){let vr=Sn;if(Wn){let kr=Sn.findIndex(ui=>ui.route.id===Wn);kr>=0&&(vr=Sn.slice(0,kr))}return vr}function vt(Sn,Wn,vr,kr,ui,ta,St,pt,kt,_t,Mn,Pr,Hi){let jt=Hi?Object.values(Hi)[0]:Pr?Object.values(Pr)[0]:void 0,$n=Sn.createURL(Wn.location),pn=Sn.createURL(ui),ee=ta||$n.toString()===pn.toString()||$n.search!==pn.search,oe=Hi?Object.keys(Hi)[0]:void 0,Be=Kt(vr,oe).filter((Ht,nn)=>{if(Ht.route.lazy)return!0;if(Ht.route.loader==null)return!1;if(Ve(Wn.loaderData,Wn.matches[nn],Ht)||St.some(gr=>gr===Ht.route.id))return!0;let Rn=Wn.matches[nn],Yn=Ht;return at(Ht,u({currentUrl:$n,currentParams:Rn.params,nextUrl:pn,nextParams:Yn.params},kr,{actionResult:jt,defaultShouldRevalidate:ee||lt(Rn,Yn)}))}),gt=[];return kt.forEach((Ht,nn)=>{if(!vr.some(Ai=>Ai.route.id===Ht.routeId))return;let Rn=I(_t,Ht.path,Mn);if(!Rn){gt.push(u({key:nn},Ht,{matches:null,match:null}));return}let Yn=Kn(Rn,Ht.path);if(pt.includes(nn)){gt.push(u({key:nn,matches:Rn,match:Yn},Ht));return}at(Yn,u({currentUrl:$n,currentParams:Wn.matches[Wn.matches.length-1].params,nextUrl:pn,nextParams:vr[vr.length-1].params},kr,{actionResult:jt,defaultShouldRevalidate:ee}))&>.push(u({key:nn,matches:Rn,match:Yn},Ht))}),[Be,gt]}function Ve(Sn,Wn,vr){let kr=!Wn||vr.route.id!==Wn.route.id,ui=Sn[vr.route.id]===void 0;return kr||ui}function lt(Sn,Wn){let vr=Sn.route.path;return Sn.pathname!==Wn.pathname||vr!=null&&vr.endsWith("*")&&Sn.params["*"]!==Wn.params["*"]}function at(Sn,Wn){if(Sn.route.shouldRevalidate){let vr=Sn.route.shouldRevalidate(Wn);if(typeof vr=="boolean")return vr}return Wn.defaultShouldRevalidate}async function Xt(Sn,Wn,vr){if(!Sn.lazy)return;let kr=await Sn.lazy();if(!Sn.lazy)return;let ui=vr[Sn.id];f(ui,"No route found in manifest");let ta={};for(let St in kr){let kt=ui[St]!==void 0&&St!=="hasErrorBoundary";g(!kt,'Route "'+ui.id+'" has a static property "'+St+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+St+'" will be ignored.')),!kt&&!R.has(St)&&(ta[St]=kr[St])}Object.assign(ui,ta),Object.assign(ui,{hasErrorBoundary:Wn(u({},ui)),lazy:void 0})}async function rt(Sn,Wn,vr,kr,ui,ta,St,pt,kt,_t){St===void 0&&(St="/"),pt===void 0&&(pt=!1),kt===void 0&&(kt=!1);let Mn,Pr,Hi,jt=ee=>{let oe,De=new Promise((Be,gt)=>oe=gt);return Hi=()=>oe(),Wn.signal.addEventListener("abort",Hi),Promise.race([ee({request:Wn,params:vr.params,context:_t}),De])};try{let ee=vr.route[Sn];if(vr.route.lazy)if(ee)Pr=(await Promise.all([jt(ee),Xt(vr.route,ta,ui)]))[0];else if(await Xt(vr.route,ta,ui),ee=vr.route[Sn],ee)Pr=await jt(ee);else{if(Sn==="action")throw wt(405,{method:Wn.method,pathname:new URL(Wn.url).pathname,routeId:vr.route.id});return{type:P.data,data:void 0}}else f(ee,"Could not find the "+Sn+' to run on the "'+vr.route.id+'" route'),Pr=await jt(ee);f(Pr!==void 0,"You defined "+(Sn==="action"?"an action":"a loader")+" for route "+('"'+vr.route.id+"\" but didn't return anything from your `"+Sn+"` ")+"function. Please return a value or `null`.")}catch(ee){Mn=P.error,Pr=ee}finally{Hi&&Wn.signal.removeEventListener("abort",Hi)}if(We(Pr)){let ee=Pr.status;if(ke.has(ee)){let Be=Pr.headers.get("Location");if(f(Be,"Redirects returned/thrown from loaders/actions must have a Location header"),ut.test(Be)){if(!pt){let gt=new URL(Wn.url),Ht=Be.startsWith("//")?new URL(gt.protocol+Be):new URL(Be),nn=te(Ht.pathname,St)!=null;Ht.origin===gt.origin&&nn&&(Be=Ht.pathname+Ht.search+Ht.hash)}}else{let gt=kr.slice(0,kr.indexOf(vr)+1),Ht=he(gt).map(Rn=>Rn.pathnameBase),nn=me(Be,Ht,new URL(Wn.url).pathname);if(f(S(nn),"Unable to resolve redirect location: "+Be),St){let Rn=nn.pathname;nn.pathname=Rn==="/"?St:we([St,Rn])}Be=S(nn)}if(pt)throw Pr.headers.set("Location",Be),Pr;return{type:P.redirect,status:ee,location:Be,revalidate:Pr.headers.get("X-Remix-Revalidate")!==null}}if(kt)throw{type:Mn||P.data,response:Pr};let oe,De=Pr.headers.get("Content-Type");return De&&/\bapplication\/json\b/.test(De)?oe=await Pr.json():oe=await Pr.text(),Mn===P.error?{type:Mn,error:new At(ee,Pr.statusText,oe),headers:Pr.headers}:{type:P.data,data:oe,statusCode:Pr.status,headers:Pr.headers}}if(Mn===P.error)return{type:Mn,error:Pr};if(ot(Pr)){var $n,pn;return{type:P.deferred,deferredData:Pr,statusCode:($n=Pr.init)==null?void 0:$n.status,headers:((pn=Pr.init)==null?void 0:pn.headers)&&new Headers(Pr.init.headers)}}return{type:P.data,data:Pr}}function Rt(Sn,Wn,vr,kr){let ui=Sn.createURL(Ut(Wn)).toString(),ta={signal:vr};if(kr&&vn(kr.formMethod)){let{formMethod:St,formEncType:pt,formData:kt}=kr;ta.method=St.toUpperCase(),ta.body=pt==="application/x-www-form-urlencoded"?rn(kt):kt}return new Request(ui,ta)}function rn(Sn){let Wn=new URLSearchParams;for(let[vr,kr]of Sn.entries())Wn.append(vr,kr instanceof File?kr.name:kr);return Wn}function sn(Sn,Wn,vr,kr,ui){let ta={},St=null,pt,kt=!1,_t={};return vr.forEach((Mn,Pr)=>{let Hi=Wn[Pr].route.id;if(f(!Zt(Mn),"Cannot handle redirect results in processLoaderData"),An(Mn)){let jt=st(Sn,Hi),$n=Mn.error;kr&&($n=Object.values(kr)[0],kr=void 0),St=St||{},St[jt.route.id]==null&&(St[jt.route.id]=$n),ta[Hi]=void 0,kt||(kt=!0,pt=It(Mn.error)?Mn.error.status:500),Mn.headers&&(_t[Hi]=Mn.headers)}else Tn(Mn)?(ui.set(Hi,Mn.deferredData),ta[Hi]=Mn.deferredData.data):ta[Hi]=Mn.data,Mn.statusCode!=null&&Mn.statusCode!==200&&!kt&&(pt=Mn.statusCode),Mn.headers&&(_t[Hi]=Mn.headers)}),kr&&(St=kr,ta[Object.keys(kr)[0]]=void 0),{loaderData:ta,errors:St,statusCode:pt||200,loaderHeaders:_t}}function Jn(Sn,Wn,vr,kr,ui,ta,St,pt){let{loaderData:kt,errors:_t}=sn(Wn,vr,kr,ui,pt);for(let Mn=0;Mn<ta.length;Mn++){let{key:Pr,match:Hi}=ta[Mn];f(St!==void 0&&St[Mn]!==void 0,"Did not find corresponding fetcher result");let jt=St[Mn];if(An(jt)){let $n=st(Sn.matches,Hi?.route.id);_t&&_t[$n.route.id]||(_t=u({},_t,{[$n.route.id]:jt.error})),Sn.fetchers.delete(Pr)}else if(Zt(jt))f(!1,"Unhandled fetcher revalidation redirect");else if(Tn(jt))f(!1,"Unhandled fetcher deferred data");else{let $n={state:"idle",data:jt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};Sn.fetchers.set(Pr,$n)}}return{loaderData:kt,errors:_t}}function ze(Sn,Wn,vr,kr){let ui=u({},Wn);for(let ta of vr){let St=ta.route.id;if(Wn.hasOwnProperty(St)?Wn[St]!==void 0&&(ui[St]=Wn[St]):Sn[St]!==void 0&&ta.route.loader&&(ui[St]=Sn[St]),kr&&kr.hasOwnProperty(St))break}return ui}function st(Sn,Wn){return(Wn?Sn.slice(0,Sn.findIndex(kr=>kr.route.id===Wn)+1):[...Sn]).reverse().find(kr=>kr.route.hasErrorBoundary===!0)||Sn[0]}function en(Sn){let Wn=Sn.find(vr=>vr.index||!vr.path||vr.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:Wn}],route:Wn}}function wt(Sn,Wn){let{pathname:vr,routeId:kr,method:ui,type:ta}=Wn===void 0?{}:Wn,St="Unknown Server Error",pt="Unknown @remix-run/router error";return Sn===400?(St="Bad Request",ui&&vr&&kr?pt="You made a "+ui+' request to "'+vr+'" but '+('did not provide a `loader` for route "'+kr+'", ')+"so there is no way to handle the request.":ta==="defer-action"&&(pt="defer() is not supported in actions")):Sn===403?(St="Forbidden",pt='Route "'+kr+'" does not match URL "'+vr+'"'):Sn===404?(St="Not Found",pt='No route matches URL "'+vr+'"'):Sn===405&&(St="Method Not Allowed",ui&&vr&&kr?pt="You made a "+ui.toUpperCase()+' request to "'+vr+'" but '+('did not provide an `action` for route "'+kr+'", ')+"so there is no way to handle the request.":ui&&(pt='Invalid request method "'+ui.toUpperCase()+'"')),new At(Sn||500,St,new Error(pt),!0)}function Ke(Sn){for(let Wn=Sn.length-1;Wn>=0;Wn--){let vr=Sn[Wn];if(Zt(vr))return vr}}function Ut(Sn){let Wn=typeof Sn=="string"?w(Sn):Sn;return S(u({},Wn,{hash:""}))}function on(Sn,Wn){return Sn.pathname===Wn.pathname&&Sn.search===Wn.search&&Sn.hash!==Wn.hash}function Tn(Sn){return Sn.type===P.deferred}function An(Sn){return Sn.type===P.error}function Zt(Sn){return(Sn&&Sn.type)===P.redirect}function ot(Sn){let Wn=Sn;return Wn&&typeof Wn=="object"&&typeof Wn.data=="object"&&typeof Wn.subscribe=="function"&&typeof Wn.cancel=="function"&&typeof Wn.resolveData=="function"}function We(Sn){return Sn!=null&&typeof Sn.status=="number"&&typeof Sn.statusText=="string"&&typeof Sn.headers=="object"&&typeof Sn.body<"u"}function Ft(Sn){if(!We(Sn))return!1;let Wn=Sn.status,vr=Sn.headers.get("Location");return Wn>=300&&Wn<=399&&vr!=null}function it(Sn){return Sn&&We(Sn.response)&&(Sn.type===P.data||P.error)}function qt(Sn){return tt.has(Sn.toLowerCase())}function vn(Sn){return Ae.has(Sn.toLowerCase())}async function fn(Sn,Wn,vr,kr,ui,ta){for(let St=0;St<vr.length;St++){let pt=vr[St],kt=Wn[St];if(!kt)continue;let _t=Sn.find(Pr=>Pr.route.id===kt.route.id),Mn=_t!=null&&!lt(_t,kt)&&(ta&&ta[kt.route.id])!==void 0;Tn(pt)&&(ui||Mn)&&await Tt(pt,kr,ui).then(Pr=>{Pr&&(vr[St]=Pr||vr[St])})}}async function Tt(Sn,Wn,vr){if(vr===void 0&&(vr=!1),!await Sn.deferredData.resolveData(Wn)){if(vr)try{return{type:P.data,data:Sn.deferredData.unwrappedData}}catch(ui){return{type:P.error,error:ui}}return{type:P.data,data:Sn.deferredData.data}}}function dn(Sn){return new URLSearchParams(Sn).getAll("index").some(Wn=>Wn==="")}function mn(Sn,Wn){let{route:vr,pathname:kr,params:ui}=Sn;return{id:vr.id,pathname:kr,params:ui,data:Wn[vr.id],handle:vr.handle}}function Kn(Sn,Wn){let vr=typeof Wn=="string"?w(Wn).search:Wn.search;if(Sn[Sn.length-1].route.index&&dn(vr||""))return Sn[Sn.length-1];let kr=he(Sn);return kr[kr.length-1]}/** * React Router v6.10.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Dn(Sn,Wn){return Sn===Wn&&(Sn!==0||1/Sn===1/Wn)||Sn!==Sn&&Wn!==Wn}const Vn=typeof Object.is=="function"?Object.is:Dn,{useState:or,useEffect:Qr,useLayoutEffect:ni,useDebugValue:yr}=s;let si=!1,Yr=!1;function Ci(Sn,Wn,vr){const kr=Wn(),[{inst:ui},ta]=or({inst:{value:kr,getSnapshot:Wn}});return ni(()=>{ui.value=kr,ui.getSnapshot=Wn,Ni(ui)&&ta({inst:ui})},[Sn,kr,Wn]),Qr(()=>(Ni(ui)&&ta({inst:ui}),Sn(()=>{Ni(ui)&&ta({inst:ui})})),[Sn]),yr(kr),kr}function Ni(Sn){const Wn=Sn.getSnapshot,vr=Sn.value;try{const kr=Wn();return!Vn(vr,kr)}catch{return!0}}function fa(Sn,Wn,vr){return Wn()}const li=!(typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u")?fa:Ci,la=(Sn=>Sn.useSyncExternalStore)(s),Oa=i.createContext(null),wa=i.createContext(null),vo=i.createContext(null),Qn=i.createContext(null),_r=i.createContext(null),$r=i.createContext({outlet:null,matches:[]}),Ti=i.createContext(null);function xt(){return xt=Object.assign?Object.assign.bind():function(Sn){for(var Wn=1;Wn<arguments.length;Wn++){var vr=arguments[Wn];for(var kr in vr)Object.prototype.hasOwnProperty.call(vr,kr)&&(Sn[kr]=vr[kr])}return Sn},xt.apply(this,arguments)}function On(Sn,Wn){let{relative:vr}=Wn===void 0?{}:Wn;Zn()||f(!1);let{basename:kr,navigator:ui}=i.useContext(Qn),{hash:ta,pathname:St,search:pt}=lr(Sn,{relative:vr}),kt=St;return kr!=="/"&&(kt=St==="/"?kr:we([kr,St])),ui.createHref({pathname:kt,search:pt,hash:ta})}function Zn(){return i.useContext(_r)!=null}function Ur(){return Zn()||f(!1),i.useContext(_r).location}function En(){return i.useContext(_r).navigationType}function ln(Sn){Zn()||f(!1);let{pathname:Wn}=Ur();return i.useMemo(()=>V(Sn,Wn),[Wn,Sn])}function jn(){Zn()||f(!1);let{basename:Sn,navigator:Wn}=i.useContext(Qn),{matches:vr}=i.useContext($r),{pathname:kr}=Ur(),ui=JSON.stringify(he(vr).map(pt=>pt.pathnameBase)),ta=i.useRef(!1);return i.useEffect(()=>{ta.current=!0}),i.useCallback(function(pt,kt){if(kt===void 0&&(kt={}),!ta.current)return;if(typeof pt=="number"){Wn.go(pt);return}let _t=me(pt,JSON.parse(ui),kr,kt.relative==="path");Sn!=="/"&&(_t.pathname=_t.pathname==="/"?Sn:we([Sn,_t.pathname])),(kt.replace?Wn.replace:Wn.push)(_t,kt.state,kt)},[Sn,Wn,ui,kr])}const rr=i.createContext(null);function Mr(){return i.useContext(rr)}function Ir(Sn){let Wn=i.useContext($r).outlet;return Wn&&i.createElement(rr.Provider,{value:Sn},Wn)}function Zr(){let{matches:Sn}=i.useContext($r),Wn=Sn[Sn.length-1];return Wn?Wn.params:{}}function lr(Sn,Wn){let{relative:vr}=Wn===void 0?{}:Wn,{matches:kr}=i.useContext($r),{pathname:ui}=Ur(),ta=JSON.stringify(he(kr).map(St=>St.pathnameBase));return i.useMemo(()=>me(Sn,JSON.parse(ta),ui,vr==="path"),[Sn,ta,ui,vr])}function Jr(Sn,Wn){Zn()||f(!1);let{navigator:vr}=i.useContext(Qn),kr=i.useContext(wa),{matches:ui}=i.useContext($r),ta=ui[ui.length-1],St=ta?ta.params:{},pt=ta?ta.pathname:"/",kt=ta?ta.pathnameBase:"/",_t=ta&&ta.route,Mn=Ur(),Pr;if(Wn){var Hi;let oe=typeof Wn=="string"?w(Wn):Wn;kt==="/"||(Hi=oe.pathname)!=null&&Hi.startsWith(kt)||f(!1),Pr=oe}else Pr=Mn;let jt=Pr.pathname||"/",$n=kt==="/"?jt:jt.slice(kt.length)||"/",pn=I(Sn,{pathname:$n}),ee=ia(pn&&pn.map(oe=>Object.assign({},oe,{params:Object.assign({},St,oe.params),pathname:we([kt,vr.encodeLocation?vr.encodeLocation(oe.pathname).pathname:oe.pathname]),pathnameBase:oe.pathnameBase==="/"?kt:we([kt,vr.encodeLocation?vr.encodeLocation(oe.pathnameBase).pathname:oe.pathnameBase])})),ui,kr||void 0);return Wn&&ee?i.createElement(_r.Provider,{value:{location:xt({pathname:"/",search:"",hash:"",state:null,key:"default"},Pr),navigationType:v.Pop}},ee):ee}function pi(){let Sn=za(),Wn=It(Sn)?Sn.status+" "+Sn.statusText:Sn instanceof Error?Sn.message:JSON.stringify(Sn),vr=Sn instanceof Error?Sn.stack:null,kr="rgba(200,200,200, 0.5)",ui={padding:"0.5rem",backgroundColor:kr},ta={padding:"2px 4px",backgroundColor:kr},St=null;return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},Wn),vr?i.createElement("pre",{style:ui},vr):null,St)}class Ri extends i.Component{constructor(Wn){super(Wn),this.state={location:Wn.location,error:Wn.error}}static getDerivedStateFromError(Wn){return{error:Wn}}static getDerivedStateFromProps(Wn,vr){return vr.location!==Wn.location?{error:Wn.error,location:Wn.location}:{error:Wn.error||vr.error,location:vr.location}}componentDidCatch(Wn,vr){console.error("React Router caught the following error during render",Wn,vr)}render(){return this.state.error?i.createElement($r.Provider,{value:this.props.routeContext},i.createElement(Ti.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ki(Sn){let{routeContext:Wn,match:vr,children:kr}=Sn,ui=i.useContext(Oa);return ui&&ui.static&&ui.staticContext&&(vr.route.errorElement||vr.route.ErrorBoundary)&&(ui.staticContext._deepestRenderedBoundaryId=vr.route.id),i.createElement($r.Provider,{value:Wn},kr)}function ia(Sn,Wn,vr){if(Wn===void 0&&(Wn=[]),Sn==null)if(vr!=null&&vr.errors)Sn=vr.matches;else return null;let kr=Sn,ui=vr?.errors;if(ui!=null){let ta=kr.findIndex(St=>St.route.id&&ui?.[St.route.id]);ta>=0||f(!1),kr=kr.slice(0,Math.min(kr.length,ta+1))}return kr.reduceRight((ta,St,pt)=>{let kt=St.route.id?ui?.[St.route.id]:null,_t=null;vr&&(St.route.ErrorBoundary?_t=i.createElement(St.route.ErrorBoundary,null):St.route.errorElement?_t=St.route.errorElement:_t=i.createElement(pi,null));let Mn=Wn.concat(kr.slice(0,pt+1)),Pr=()=>{let Hi=ta;return kt?Hi=_t:St.route.Component?Hi=i.createElement(St.route.Component,null):St.route.element&&(Hi=St.route.element),i.createElement(Ki,{match:St,routeContext:{outlet:ta,matches:Mn},children:Hi})};return vr&&(St.route.ErrorBoundary||St.route.errorElement||pt===0)?i.createElement(Ri,{location:vr.location,component:_t,error:kt,children:Pr(),routeContext:{outlet:null,matches:Mn}}):Pr()},null)}var Da;(function(Sn){Sn.UseBlocker="useBlocker",Sn.UseRevalidator="useRevalidator"})(Da||(Da={}));var to;(function(Sn){Sn.UseBlocker="useBlocker",Sn.UseLoaderData="useLoaderData",Sn.UseActionData="useActionData",Sn.UseRouteError="useRouteError",Sn.UseNavigation="useNavigation",Sn.UseRouteLoaderData="useRouteLoaderData",Sn.UseMatches="useMatches",Sn.UseRevalidator="useRevalidator"})(to||(to={}));function ao(Sn){return Sn+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Bo(Sn){let Wn=i.useContext(Oa);return Wn||f(!1),Wn}function jo(Sn){let Wn=i.useContext(wa);return Wn||f(!1),Wn}function Jo(Sn){let Wn=i.useContext($r);return Wn||f(!1),Wn}function Go(Sn){let Wn=Jo(Sn),vr=Wn.matches[Wn.matches.length-1];return vr.route.id||f(!1),vr.route.id}function wr(){return jo(to.UseNavigation).navigation}function qi(){let Sn=Bo(Da.UseRevalidator),Wn=jo(to.UseRevalidator);return{revalidate:Sn.router.revalidate,state:Wn.revalidation}}function ja(){let{matches:Sn,loaderData:Wn}=jo(to.UseMatches);return i.useMemo(()=>Sn.map(vr=>{let{pathname:kr,params:ui}=vr;return{id:vr.route.id,pathname:kr,params:ui,data:Wn[vr.route.id],handle:vr.route.handle}}),[Sn,Wn])}function uo(){let Sn=jo(to.UseLoaderData),Wn=Go(to.UseLoaderData);if(Sn.errors&&Sn.errors[Wn]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+Wn+")");return}return Sn.loaderData[Wn]}function wi(Sn){return jo(to.UseRouteLoaderData).loaderData[Sn]}function ai(){let Sn=jo(to.UseActionData);return i.useContext($r)||f(!1),Object.values(Sn?.actionData||{})[0]}function za(){var Sn;let Wn=i.useContext(Ti),vr=jo(to.UseRouteError),kr=Go(to.UseRouteError);return Wn||((Sn=vr.errors)==null?void 0:Sn[kr])}function Mt(){let Sn=i.useContext(vo);return Sn?._data}function Gn(){let Sn=i.useContext(vo);return Sn?._error}let qn=0;function Fr(Sn){let{router:Wn}=Bo(Da.UseBlocker),vr=jo(to.UseBlocker),[kr]=i.useState(()=>String(++qn)),ui=i.useCallback(St=>typeof Sn=="function"?!!Sn(St):!!Sn,[Sn]),ta=Wn.getBlocker(kr,ui);return i.useEffect(()=>()=>Wn.deleteBlocker(kr),[Wn,kr]),vr.blockers.get(kr)||ta}const Ei={};function ii(Sn,Wn,vr){!Wn&&!Ei[Sn]&&(Ei[Sn]=!0)}function Wi(Sn){let{fallbackElement:Wn,router:vr}=Sn,kr=i.useCallback(()=>vr.state,[vr]),ui=la(vr.subscribe,kr,kr),ta=i.useMemo(()=>({createHref:vr.createHref,encodeLocation:vr.encodeLocation,go:kt=>vr.navigate(kt),push:(kt,_t,Mn)=>vr.navigate(kt,{state:_t,preventScrollReset:Mn?.preventScrollReset}),replace:(kt,_t,Mn)=>vr.navigate(kt,{replace:!0,state:_t,preventScrollReset:Mn?.preventScrollReset})}),[vr]),St=vr.basename||"/",pt=i.useMemo(()=>({router:vr,navigator:ta,static:!1,basename:St}),[vr,ta,St]);return i.createElement(i.Fragment,null,i.createElement(Oa.Provider,{value:pt},i.createElement(wa.Provider,{value:ui},i.createElement(Xe,{basename:vr.basename,location:vr.state.location,navigationType:vr.state.historyAction,navigator:ta},vr.state.initialized?i.createElement(yt,null):Wn))),null)}function Ya(Sn){let{basename:Wn,children:vr,initialEntries:kr,initialIndex:ui}=Sn,ta=i.useRef();ta.current==null&&(ta.current=h({initialEntries:kr,initialIndex:ui,v5Compat:!0}));let St=ta.current,[pt,kt]=i.useState({action:St.action,location:St.location});return i.useLayoutEffect(()=>St.listen(kt),[St]),i.createElement(Xe,{basename:Wn,children:vr,location:pt.location,navigationType:pt.action,navigator:St})}function qa(Sn){let{to:Wn,replace:vr,state:kr,relative:ui}=Sn;Zn()||f(!1);let ta=i.useContext(wa),St=jn();return i.useEffect(()=>{ta&&ta.navigation.state!=="idle"||St(Wn,{replace:vr,state:kr,relative:ui})}),null}function se(Sn){return Ir(Sn.context)}function ye(Sn){f(!1)}function Xe(Sn){let{basename:Wn="/",children:vr=null,location:kr,navigationType:ui=v.Pop,navigator:ta,static:St=!1}=Sn;Zn()&&f(!1);let pt=Wn.replace(/^\/*/,"/"),kt=i.useMemo(()=>({basename:pt,navigator:ta,static:St}),[pt,ta,St]);typeof kr=="string"&&(kr=w(kr));let{pathname:_t="/",search:Mn="",hash:Pr="",state:Hi=null,key:jt="default"}=kr,$n=i.useMemo(()=>{let pn=te(_t,pt);return pn==null?null:{location:{pathname:pn,search:Mn,hash:Pr,state:Hi,key:jt},navigationType:ui}},[pt,_t,Mn,Pr,Hi,jt,ui]);return $n==null?null:i.createElement(Qn.Provider,{value:kt},i.createElement(_r.Provider,{children:vr,value:$n}))}function yt(Sn){let{children:Wn,location:vr}=Sn,kr=i.useContext(Oa),ui=kr&&!Wn?kr.router.routes:Si(Wn);return Jr(ui,vr)}function Wt(Sn){let{children:Wn,errorElement:vr,resolve:kr}=Sn;return i.createElement(fr,{resolve:kr,errorElement:vr},i.createElement(Or,null,Wn))}var Qt;(function(Sn){Sn[Sn.pending=0]="pending",Sn[Sn.success=1]="success",Sn[Sn.error=2]="error"})(Qt||(Qt={}));const wn=new Promise(()=>{});class fr extends i.Component{constructor(Wn){super(Wn),this.state={error:null}}static getDerivedStateFromError(Wn){return{error:Wn}}componentDidCatch(Wn,vr){console.error("<Await> caught the following error during render",Wn,vr)}render(){let{children:Wn,errorElement:vr,resolve:kr}=this.props,ui=null,ta=Qt.pending;if(!(kr instanceof Promise))ta=Qt.success,ui=Promise.resolve(),Object.defineProperty(ui,"_tracked",{get:()=>!0}),Object.defineProperty(ui,"_data",{get:()=>kr});else if(this.state.error){ta=Qt.error;let St=this.state.error;ui=Promise.reject().catch(()=>{}),Object.defineProperty(ui,"_tracked",{get:()=>!0}),Object.defineProperty(ui,"_error",{get:()=>St})}else kr._tracked?(ui=kr,ta=ui._error!==void 0?Qt.error:ui._data!==void 0?Qt.success:Qt.pending):(ta=Qt.pending,Object.defineProperty(kr,"_tracked",{get:()=>!0}),ui=kr.then(St=>Object.defineProperty(kr,"_data",{get:()=>St}),St=>Object.defineProperty(kr,"_error",{get:()=>St})));if(ta===Qt.error&&ui._error instanceof ue)throw wn;if(ta===Qt.error&&!vr)throw ui._error;if(ta===Qt.error)return i.createElement(vo.Provider,{value:ui,children:vr});if(ta===Qt.success)return i.createElement(vo.Provider,{value:ui,children:Wn});throw ui}}function Or(Sn){let{children:Wn}=Sn,vr=Mt(),kr=typeof Wn=="function"?Wn(vr):Wn;return i.createElement(i.Fragment,null,kr)}function Si(Sn,Wn){Wn===void 0&&(Wn=[]);let vr=[];return i.Children.forEach(Sn,(kr,ui)=>{if(!i.isValidElement(kr))return;let ta=[...Wn,ui];if(kr.type===i.Fragment){vr.push.apply(vr,Si(kr.props.children,ta));return}kr.type!==ye&&f(!1),!kr.props.index||!kr.props.children||f(!1);let St={id:kr.props.id||ta.join("-"),caseSensitive:kr.props.caseSensitive,element:kr.props.element,Component:kr.props.Component,index:kr.props.index,path:kr.props.path,loader:kr.props.loader,action:kr.props.action,errorElement:kr.props.errorElement,ErrorBoundary:kr.props.ErrorBoundary,hasErrorBoundary:kr.props.ErrorBoundary!=null||kr.props.errorElement!=null,shouldRevalidate:kr.props.shouldRevalidate,handle:kr.props.handle,lazy:kr.props.lazy};kr.props.children&&(St.children=Si(kr.props.children,ta)),vr.push(St)}),vr}function Fi(Sn){return ia(Sn)}function Bi(Sn){return!!Sn.ErrorBoundary||!!Sn.errorElement}function Ui(Sn,Wn){return Gt({basename:Wn?.basename,future:Wn?.future,history:h({initialEntries:Wn?.initialEntries,initialIndex:Wn?.initialIndex}),hydrationData:Wn?.hydrationData,routes:Sn,detectErrorBoundary:Bi}).initialize()}var vi;(function(Sn){Sn.Pop="POP",Sn.Push="PUSH",Sn.Replace="REPLACE"})(vi||(vi={}));var Xa=null;function Ko(Sn,Wn){if(!Sn){typeof console<"u"&&console.warn(Wn);try{throw new Error(Wn)}catch{}}}var So="beforeunload",Lo="hashchange",us="popstate";function Ee(Sn){Sn===void 0&&(Sn={});var Wn=Sn,vr=Wn.window,kr=vr===void 0?document.defaultView:vr,ui=kr.history;function ta(){var Rn=kr.location,Yn=Rn.pathname,gr=Rn.search,Ai=Rn.hash,$i=ui.state||{};return[$i.idx,Xa({pathname:Yn,search:gr,hash:Ai,state:$i.usr||null,key:$i.key||"default"})]}var St=null;function pt(){if(St)jt.call(St),St=null;else{var Rn=vi.Pop,Yn=ta(),gr=Yn[0],Ai=Yn[1];if(jt.length){if(gr!=null){var $i=Mn-gr;$i&&(St={action:Rn,location:Ai,retry:function(){Ht($i*-1)}},Ht($i))}}else De(Rn)}}kr.addEventListener(us,pt);var kt=vi.Pop,_t=ta(),Mn=_t[0],Pr=_t[1],Hi=Le(),jt=Le();Mn==null&&(Mn=0,ui.replaceState(_extends({},ui.state,{idx:Mn}),""));function $n(Rn){return typeof Rn=="string"?Rn:Ct(Rn)}function pn(Rn,Yn){return Yn===void 0&&(Yn=null),Xa(_extends({pathname:Pr.pathname,hash:"",search:""},typeof Rn=="string"?Vt(Rn):Rn,{state:Yn,key:Je()}))}function ee(Rn,Yn){return[{usr:Rn.state,key:Rn.key,idx:Yn},$n(Rn)]}function oe(Rn,Yn,gr){return!jt.length||(jt.call({action:Rn,location:Yn,retry:gr}),!1)}function De(Rn){kt=Rn;var Yn=ta();Mn=Yn[0],Pr=Yn[1],Hi.call({action:kt,location:Pr})}function Be(Rn,Yn){var gr=vi.Push,Ai=pn(Rn,Yn);function $i(){Be(Rn,Yn)}if(oe(gr,Ai,$i)){var ma=ee(Ai,Mn+1),La=ma[0],Qa=ma[1];try{ui.pushState(La,"",Qa)}catch{kr.location.assign(Qa)}De(gr)}}function gt(Rn,Yn){var gr=vi.Replace,Ai=pn(Rn,Yn);function $i(){gt(Rn,Yn)}if(oe(gr,Ai,$i)){var ma=ee(Ai,Mn),La=ma[0],Qa=ma[1];ui.replaceState(La,"",Qa),De(gr)}}function Ht(Rn){ui.go(Rn)}var nn={get action(){return kt},get location(){return Pr},createHref:$n,push:Be,replace:gt,go:Ht,back:function(){Ht(-1)},forward:function(){Ht(1)},listen:function(Yn){return Hi.push(Yn)},block:function(Yn){var gr=jt.push(Yn);return jt.length===1&&kr.addEventListener(So,le),function(){gr(),jt.length||kr.removeEventListener(So,le)}}};return nn}function Y(Sn){Sn===void 0&&(Sn={});var Wn=Sn,vr=Wn.window,kr=vr===void 0?document.defaultView:vr,ui=kr.history;function ta(){var Yn=Vt(kr.location.hash.substr(1)),gr=Yn.pathname,Ai=gr===void 0?"/":gr,$i=Yn.search,ma=$i===void 0?"":$i,La=Yn.hash,Qa=La===void 0?"":La,go=ui.state||{};return[go.idx,Xa({pathname:Ai,search:ma,hash:Qa,state:go.usr||null,key:go.key||"default"})]}var St=null;function pt(){if(St)jt.call(St),St=null;else{var Yn=vi.Pop,gr=ta(),Ai=gr[0],$i=gr[1];if(jt.length){if(Ai!=null){var ma=Mn-Ai;ma&&(St={action:Yn,location:$i,retry:function(){nn(ma*-1)}},nn(ma))}}else Be(Yn)}}kr.addEventListener(us,pt),kr.addEventListener(Lo,function(){var Yn=ta(),gr=Yn[1];Ct(gr)!==Ct(Pr)&&pt()});var kt=vi.Pop,_t=ta(),Mn=_t[0],Pr=_t[1],Hi=Le(),jt=Le();Mn==null&&(Mn=0,ui.replaceState(_extends({},ui.state,{idx:Mn}),""));function $n(){var Yn=document.querySelector("base"),gr="";if(Yn&&Yn.getAttribute("href")){var Ai=kr.location.href,$i=Ai.indexOf("#");gr=$i===-1?Ai:Ai.slice(0,$i)}return gr}function pn(Yn){return $n()+"#"+(typeof Yn=="string"?Yn:Ct(Yn))}function ee(Yn,gr){return gr===void 0&&(gr=null),Xa(_extends({pathname:Pr.pathname,hash:"",search:""},typeof Yn=="string"?Vt(Yn):Yn,{state:gr,key:Je()}))}function oe(Yn,gr){return[{usr:Yn.state,key:Yn.key,idx:gr},pn(Yn)]}function De(Yn,gr,Ai){return!jt.length||(jt.call({action:Yn,location:gr,retry:Ai}),!1)}function Be(Yn){kt=Yn;var gr=ta();Mn=gr[0],Pr=gr[1],Hi.call({action:kt,location:Pr})}function gt(Yn,gr){var Ai=vi.Push,$i=ee(Yn,gr);function ma(){gt(Yn,gr)}if(De(Ai,$i,ma)){var La=oe($i,Mn+1),Qa=La[0],go=La[1];try{ui.pushState(Qa,"",go)}catch{kr.location.assign(go)}Be(Ai)}}function Ht(Yn,gr){var Ai=vi.Replace,$i=ee(Yn,gr);function ma(){Ht(Yn,gr)}if(De(Ai,$i,ma)){var La=oe($i,Mn),Qa=La[0],go=La[1];ui.replaceState(Qa,"",go),Be(Ai)}}function nn(Yn){ui.go(Yn)}var Rn={get action(){return kt},get location(){return Pr},createHref:pn,push:gt,replace:Ht,go:nn,back:function(){nn(-1)},forward:function(){nn(1)},listen:function(gr){return Hi.push(gr)},block:function(gr){var Ai=jt.push(gr);return jt.length===1&&kr.addEventListener(So,le),function(){Ai(),jt.length||kr.removeEventListener(So,le)}}};return Rn}function z(Sn){Sn===void 0&&(Sn={});var Wn=Sn,vr=Wn.initialEntries,kr=vr===void 0?["/"]:vr,ui=Wn.initialIndex,ta=kr.map(function(Be){var gt=Xa(_extends({pathname:"/",search:"",hash:"",state:null,key:Je()},typeof Be=="string"?Vt(Be):Be));return gt}),St=B(ui??ta.length-1,0,ta.length-1),pt=vi.Pop,kt=ta[St],_t=Le(),Mn=Le();function Pr(Be){return typeof Be=="string"?Be:Ct(Be)}function Hi(Be,gt){return gt===void 0&&(gt=null),Xa(_extends({pathname:kt.pathname,search:"",hash:""},typeof Be=="string"?Vt(Be):Be,{state:gt,key:Je()}))}function jt(Be,gt,Ht){return!Mn.length||(Mn.call({action:Be,location:gt,retry:Ht}),!1)}function $n(Be,gt){pt=Be,kt=gt,_t.call({action:pt,location:kt})}function pn(Be,gt){var Ht=vi.Push,nn=Hi(Be,gt);function Rn(){pn(Be,gt)}jt(Ht,nn,Rn)&&(St+=1,ta.splice(St,ta.length,nn),$n(Ht,nn))}function ee(Be,gt){var Ht=vi.Replace,nn=Hi(Be,gt);function Rn(){ee(Be,gt)}jt(Ht,nn,Rn)&&(ta[St]=nn,$n(Ht,nn))}function oe(Be){var gt=B(St+Be,0,ta.length-1),Ht=vi.Pop,nn=ta[gt];function Rn(){oe(Be)}jt(Ht,nn,Rn)&&(St=gt,$n(Ht,nn))}var De={get index(){return St},get action(){return pt},get location(){return kt},createHref:Pr,push:pn,replace:ee,go:oe,back:function(){oe(-1)},forward:function(){oe(1)},listen:function(gt){return _t.push(gt)},block:function(gt){return Mn.push(gt)}};return De}function B(Sn,Wn,vr){return Math.min(Math.max(Sn,Wn),vr)}function le(Sn){Sn.preventDefault(),Sn.returnValue=""}function Le(){var Sn=[];return{get length(){return Sn.length},push:function(vr){return Sn.push(vr),function(){Sn=Sn.filter(function(kr){return kr!==vr})}},call:function(vr){Sn.forEach(function(kr){return kr&&kr(vr)})}}}function Je(){return Math.random().toString(36).substr(2,8)}function Ct(Sn){var Wn=Sn.pathname,vr=Wn===void 0?"/":Wn,kr=Sn.search,ui=kr===void 0?"":kr,ta=Sn.hash,St=ta===void 0?"":ta;return ui&&ui!=="?"&&(vr+=ui.charAt(0)==="?"?ui:"?"+ui),St&&St!=="#"&&(vr+=St.charAt(0)==="#"?St:"#"+St),vr}function Vt(Sn){var Wn={};if(Sn){var vr=Sn.indexOf("#");vr>=0&&(Wn.hash=Sn.substr(vr),Sn=Sn.substr(0,vr));var kr=Sn.indexOf("?");kr>=0&&(Wn.search=Sn.substr(kr),Sn=Sn.substr(0,kr)),Sn&&(Wn.pathname=Sn)}return Wn}var bn=t(7662);/** * React Router DOM v5 Compat v6.10.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Hn(){return Hn=Object.assign?Object.assign.bind():function(Sn){for(var Wn=1;Wn<arguments.length;Wn++){var vr=arguments[Wn];for(var kr in vr)Object.prototype.hasOwnProperty.call(vr,kr)&&(Sn[kr]=vr[kr])}return Sn},Hn.apply(this,arguments)}function br(Sn,Wn){if(Sn==null)return{};var vr={},kr=Object.keys(Sn),ui,ta;for(ta=0;ta<kr.length;ta++)ui=kr[ta],!(Wn.indexOf(ui)>=0)&&(vr[ui]=Sn[ui]);return vr}const ei="get",mi="application/x-www-form-urlencoded";function Li(Sn){return Sn!=null&&typeof Sn.tagName=="string"}function na(Sn){return Li(Sn)&&Sn.tagName.toLowerCase()==="button"}function ji(Sn){return Li(Sn)&&Sn.tagName.toLowerCase()==="form"}function $a(Sn){return Li(Sn)&&Sn.tagName.toLowerCase()==="input"}function Ha(Sn){return!!(Sn.metaKey||Sn.altKey||Sn.ctrlKey||Sn.shiftKey)}function Eo(Sn,Wn){return Sn.button===0&&(!Wn||Wn==="_self")&&!Ha(Sn)}function Uo(Sn){return Sn===void 0&&(Sn=""),new URLSearchParams(typeof Sn=="string"||Array.isArray(Sn)||Sn instanceof URLSearchParams?Sn:Object.keys(Sn).reduce((Wn,vr)=>{let kr=Sn[vr];return Wn.concat(Array.isArray(kr)?kr.map(ui=>[vr,ui]):[[vr,kr]])},[]))}function Ms(Sn,Wn){let vr=Uo(Sn);if(Wn)for(let kr of Wn.keys())vr.has(kr)||Wn.getAll(kr).forEach(ui=>{vr.append(kr,ui)});return vr}function er(Sn,Wn,vr){let kr,ui,ta,St;if(ji(Sn)){let Mn=vr.submissionTrigger;kr=vr.method||Sn.getAttribute("method")||ei,ui=vr.action||Sn.getAttribute("action")||Wn,ta=vr.encType||Sn.getAttribute("enctype")||mi,St=new FormData(Sn),Mn&&Mn.name&&St.append(Mn.name,Mn.value)}else if(na(Sn)||$a(Sn)&&(Sn.type==="submit"||Sn.type==="image")){let Mn=Sn.form;if(Mn==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');kr=vr.method||Sn.getAttribute("formmethod")||Mn.getAttribute("method")||ei,ui=vr.action||Sn.getAttribute("formaction")||Mn.getAttribute("action")||Wn,ta=vr.encType||Sn.getAttribute("formenctype")||Mn.getAttribute("enctype")||mi,St=new FormData(Mn),Sn.name&&St.append(Sn.name,Sn.value)}else{if(Li(Sn))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');if(kr=vr.method||ei,ui=vr.action||Wn,ta=vr.encType||mi,Sn instanceof FormData)St=Sn;else if(St=new FormData,Sn instanceof URLSearchParams)for(let[Mn,Pr]of Sn)St.append(Mn,Pr);else if(Sn!=null)for(let Mn of Object.keys(Sn))St.append(Mn,Sn[Mn])}let{protocol:pt,host:kt}=window.location;return{url:new URL(ui,pt+"//"+kt),method:kr.toLowerCase(),encType:ta,formData:St}}const Ar=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Kr=["aria-current","caseSensitive","className","end","style","to","children"],ur=["reloadDocument","replace","method","action","onSubmit","fetcherKey","routeId","relative","preventScrollReset"];function Gr(Sn,Wn){return Gt({basename:Wn?.basename,future:Wn?.future,history:p({window:Wn?.window}),hydrationData:Wn?.hydrationData||aa(),routes:Sn,detectErrorBoundary:Bi}).initialize()}function Pi(Sn,Wn){return Gt({basename:Wn?.basename,future:Wn?.future,history:d({window:Wn?.window}),hydrationData:Wn?.hydrationData||aa(),routes:Sn,detectErrorBoundary:Bi}).initialize()}function aa(){var Sn;let Wn=(Sn=window)==null?void 0:Sn.__staticRouterHydrationData;return Wn&&Wn.errors&&(Wn=Hn({},Wn,{errors:Fa(Wn.errors)})),Wn}function Fa(Sn){if(!Sn)return null;let Wn=Object.entries(Sn),vr={};for(let[kr,ui]of Wn)if(ui&&ui.__type==="RouteErrorResponse")vr[kr]=new At(ui.status,ui.statusText,ui.data,ui.internal===!0);else if(ui&&ui.__type==="Error"){let ta=new Error(ui.message);ta.stack="",vr[kr]=ta}else vr[kr]=ui;return vr}function tn(Sn){let{basename:Wn,children:vr,window:kr}=Sn,ui=i.useRef();ui.current==null&&(ui.current=p({window:kr,v5Compat:!0}));let ta=ui.current,[St,pt]=i.useState({action:ta.action,location:ta.location});return i.useLayoutEffect(()=>ta.listen(pt),[ta]),i.createElement(Xe,{basename:Wn,children:vr,location:St.location,navigationType:St.action,navigator:ta})}function cn(Sn){let{basename:Wn,children:vr,window:kr}=Sn,ui=i.useRef();ui.current==null&&(ui.current=d({window:kr,v5Compat:!0}));let ta=ui.current,[St,pt]=i.useState({action:ta.action,location:ta.location});return i.useLayoutEffect(()=>ta.listen(pt),[ta]),i.createElement(Xe,{basename:Wn,children:vr,location:St.location,navigationType:St.action,navigator:ta})}function nr(Sn){let{basename:Wn,children:vr,history:kr}=Sn;const[ui,ta]=i.useState({action:kr.action,location:kr.location});return i.useLayoutEffect(()=>kr.listen(ta),[kr]),i.createElement(Xe,{basename:Wn,children:vr,location:ui.location,navigationType:ui.action,navigator:kr})}const ir=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Lr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ua=i.forwardRef(function(Wn,vr){let{onClick:kr,relative:ui,reloadDocument:ta,replace:St,state:pt,target:kt,to:_t,preventScrollReset:Mn}=Wn,Pr=br(Wn,Ar),{basename:Hi}=i.useContext(Qn),jt,$n=!1;if(typeof _t=="string"&&Lr.test(_t)&&(jt=_t,ir)){let De=new URL(window.location.href),Be=_t.startsWith("//")?new URL(De.protocol+_t):new URL(_t),gt=te(Be.pathname,Hi);Be.origin===De.origin&>!=null?_t=gt+Be.search+Be.hash:$n=!0}let pn=On(_t,{relative:ui}),ee=dr(_t,{replace:St,state:pt,target:kt,preventScrollReset:Mn,relative:ui});function oe(De){kr&&kr(De),De.defaultPrevented||ee(De)}return i.createElement("a",Hn({},Pr,{href:jt||pn,onClick:$n||ta?kr:oe,ref:vr,target:kt}))}),_a=i.forwardRef(function(Wn,vr){let{"aria-current":kr="page",caseSensitive:ui=!1,className:ta="",end:St=!1,style:pt,to:kt,children:_t}=Wn,Mn=br(Wn,Kr),Pr=lr(kt,{relative:Mn.relative}),Hi=Ur(),jt=i.useContext(wa),{navigator:$n}=i.useContext(Qn),pn=$n.encodeLocation?$n.encodeLocation(Pr).pathname:Pr.pathname,ee=Hi.pathname,oe=jt&&jt.navigation&&jt.navigation.location?jt.navigation.location.pathname:null;ui||(ee=ee.toLowerCase(),oe=oe?oe.toLowerCase():null,pn=pn.toLowerCase());let De=ee===pn||!St&&ee.startsWith(pn)&&ee.charAt(pn.length)==="/",Be=oe!=null&&(oe===pn||!St&&oe.startsWith(pn)&&oe.charAt(pn.length)==="/"),gt=De?kr:void 0,Ht;typeof ta=="function"?Ht=ta({isActive:De,isPending:Be}):Ht=[ta,De?"active":null,Be?"pending":null].filter(Boolean).join(" ");let nn=typeof pt=="function"?pt({isActive:De,isPending:Be}):pt;return i.createElement(ua,Hn({},Mn,{"aria-current":gt,className:Ht,ref:vr,style:nn,to:kt}),typeof _t=="function"?_t({isActive:De,isPending:Be}):_t)}),Ka=i.forwardRef((Sn,Wn)=>i.createElement(yo,Hn({},Sn,{ref:Wn}))),yo=i.forwardRef((Sn,Wn)=>{let{reloadDocument:vr,replace:kr,method:ui=ei,action:ta,onSubmit:St,fetcherKey:pt,routeId:kt,relative:_t,preventScrollReset:Mn}=Sn,Pr=br(Sn,ur),Hi=xa(pt,kt),jt=ui.toLowerCase()==="get"?"get":"post",$n=Cr(ta,{relative:_t}),pn=ee=>{if(St&&St(ee),ee.defaultPrevented)return;ee.preventDefault();let oe=ee.nativeEvent.submitter,De=oe?.getAttribute("formmethod")||ui;Hi(oe||ee.currentTarget,{method:De,replace:kr,relative:_t,preventScrollReset:Mn})};return i.createElement("form",Hn({ref:Wn,method:jt,action:$n,onSubmit:vr?St:pn},Pr))});function Ba(Sn){let{getKey:Wn,storageKey:vr}=Sn;return Zs({getKey:Wn,storageKey:vr}),null}var Ma;(function(Sn){Sn.UseScrollRestoration="useScrollRestoration",Sn.UseSubmitImpl="useSubmitImpl",Sn.UseFetcher="useFetcher"})(Ma||(Ma={}));var Mo;(function(Sn){Sn.UseFetchers="useFetchers",Sn.UseScrollRestoration="useScrollRestoration"})(Mo||(Mo={}));function Nr(Sn){return Sn+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function gi(Sn){let Wn=i.useContext(Oa);return Wn||f(!1),Wn}function ea(Sn){let Wn=i.useContext(wa);return Wn||f(!1),Wn}function dr(Sn,Wn){let{target:vr,replace:kr,state:ui,preventScrollReset:ta,relative:St}=Wn===void 0?{}:Wn,pt=jn(),kt=Ur(),_t=lr(Sn,{relative:St});return i.useCallback(Mn=>{if(Eo(Mn,vr)){Mn.preventDefault();let Pr=kr!==void 0?kr:S(kt)===S(_t);pt(Sn,{replace:Pr,state:ui,preventScrollReset:ta,relative:St})}},[kt,pt,_t,kr,ui,vr,Sn,ta,St])}function ci(Sn){let Wn=i.useRef(Uo(Sn)),vr=i.useRef(!1),kr=Ur(),ui=i.useMemo(()=>Ms(kr.search,vr.current?null:Wn.current),[kr.search]),ta=jn(),St=i.useCallback((pt,kt)=>{const _t=Uo(typeof pt=="function"?pt(ui):pt);vr.current=!0,ta("?"+_t,kt)},[ta,ui]);return[ui,St]}function yi(){return xa()}function xa(Sn,Wn){let{router:vr}=gi(Ma.UseSubmitImpl),kr=Cr();return i.useCallback(function(ui,ta){if(ta===void 0&&(ta={}),typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{method:St,encType:pt,formData:kt,url:_t}=er(ui,kr,ta),Mn=_t.pathname+_t.search,Pr={replace:ta.replace,preventScrollReset:ta.preventScrollReset,formData:kt,formMethod:St,formEncType:pt};Sn?(Wn==null&&f(!1),vr.fetch(Sn,Wn,Mn,Pr)):vr.navigate(Mn,Pr)},[kr,vr,Sn,Wn])}function Cr(Sn,Wn){let{relative:vr}=Wn===void 0?{}:Wn,{basename:kr}=i.useContext(Qn),ui=i.useContext($r);ui||f(!1);let[ta]=ui.matches.slice(-1),St=Hn({},lr(Sn||".",{relative:vr})),pt=Ur();if(Sn==null&&(St.search=pt.search,St.hash=pt.hash,ta.route.index)){let kt=new URLSearchParams(St.search);kt.delete("index"),St.search=kt.toString()?"?"+kt.toString():""}return(!Sn||Sn===".")&&ta.route.index&&(St.search=St.search?St.search.replace(/^\?/,"?index&"):"?index"),kr!=="/"&&(St.pathname=St.pathname==="/"?kr:we([kr,St.pathname])),S(St)}function ka(Sn,Wn){return i.forwardRef((kr,ui)=>i.createElement(yo,Hn({},kr,{ref:ui,fetcherKey:Sn,routeId:Wn})))}let Io=0;function Co(){var Sn;let{router:Wn}=gi(Ma.UseFetcher),vr=i.useContext($r);vr||f(!1);let kr=(Sn=vr.matches[vr.matches.length-1])==null?void 0:Sn.route.id;kr==null&&f(!1);let[ui]=i.useState(()=>String(++Io)),[ta]=i.useState(()=>(kr||f(!1),ka(ui,kr))),[St]=i.useState(()=>Mn=>{Wn||f(!1),kr||f(!1),Wn.fetch(ui,kr,Mn)}),pt=xa(ui,kr),kt=Wn.getFetcher(ui),_t=i.useMemo(()=>Hn({Form:ta,submit:pt,load:St},kt),[kt,ta,pt,St]);return i.useEffect(()=>()=>{if(!Wn){console.warn("No fetcher available to clean up from useFetcher()");return}Wn.deleteFetcher(ui)},[Wn,ui]),_t}function _s(){return[...ea(Mo.UseFetchers).fetchers.values()]}const Is="react-router-scroll-positions";let xs={};function Zs(Sn){let{getKey:Wn,storageKey:vr}=Sn===void 0?{}:Sn,{router:kr}=gi(Ma.UseScrollRestoration),{restoreScrollPosition:ui,preventScrollReset:ta}=ea(Mo.UseScrollRestoration),St=Ur(),pt=ja(),kt=wr();i.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Us(i.useCallback(()=>{if(kt.state==="idle"){let _t=(Wn?Wn(St,pt):null)||St.key;xs[_t]=window.scrollY}sessionStorage.setItem(vr||Is,JSON.stringify(xs)),window.history.scrollRestoration="auto"},[vr,Wn,kt.state,St,pt])),typeof document<"u"&&(i.useLayoutEffect(()=>{try{let _t=sessionStorage.getItem(vr||Is);_t&&(xs=JSON.parse(_t))}catch{}},[vr]),i.useLayoutEffect(()=>{let _t=kr?.enableScrollRestoration(xs,()=>window.scrollY,Wn);return()=>_t&&_t()},[kr,Wn]),i.useLayoutEffect(()=>{if(ui!==!1){if(typeof ui=="number"){window.scrollTo(0,ui);return}if(St.hash){let _t=document.getElementById(St.hash.slice(1));if(_t){_t.scrollIntoView();return}}ta!==!0&&window.scrollTo(0,0)}},[St,ui,ta]))}function Ns(Sn,Wn){let{capture:vr}=Wn||{};i.useEffect(()=>{let kr=vr!=null?{capture:vr}:void 0;return window.addEventListener("beforeunload",Sn,kr),()=>{window.removeEventListener("beforeunload",Sn,kr)}},[Sn,vr])}function Us(Sn,Wn){let{capture:vr}=Wn||{};i.useEffect(()=>{let kr=vr!=null?{capture:vr}:void 0;return window.addEventListener("pagehide",Sn,kr),()=>{window.removeEventListener("pagehide",Sn,kr)}},[Sn,vr])}function fu(Sn){let{when:Wn,message:vr}=Sn,kr=Fr(Wn);i.useEffect(()=>{kr.state==="blocked"&&!Wn&&kr.reset()},[kr,Wn]),i.useEffect(()=>{kr.state==="blocked"&&(window.confirm(vr)?setTimeout(kr.proceed,0):kr.reset())},[kr,vr])}function bu(Sn){let{location:Wn,path:vr}=Sn;return Sn.exact||(vr+="/*"),i.createElement(yt,{location:Wn},i.createElement(ye,{path:vr,element:i.createElement(bn.AW,Hn({},Sn))}))}const Hu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?i.useLayoutEffect:()=>{};function Zu(Sn){let{children:Wn}=Sn,vr=(0,bn.k6)(),[kr,ui]=i.useState(()=>({location:vr.location,action:vr.action}));return Hu(()=>{vr.listen((ta,St)=>ui({location:ta,action:St}))},[vr]),i.createElement(Xe,{navigationType:kr.action,location:kr.location,navigator:vr},i.createElement(yt,null,i.createElement(ye,{path:"*",element:Wn})))}function ql(Sn){let{basename:Wn,children:vr,location:kr="/"}=Sn;typeof kr=="string"&&(kr=Vt(kr));let ui=vi.Pop,ta={pathname:kr.pathname||"/",search:kr.search||"",hash:kr.hash||"",state:kr.state||null,key:kr.key||"default"},St={createHref(pt){return typeof pt=="string"?pt:Ct(pt)},encodeLocation(pt){let kt=typeof pt=="string"?Vt(pt):pt;return{pathname:kt.pathname||"",search:kt.search||"",hash:kt.hash||""}},push(pt){throw new Error("You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a "+("`navigate("+JSON.stringify(pt)+")` somewhere in your app."))},replace(pt){throw new Error("You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a "+("`navigate("+JSON.stringify(pt)+", { replace: true })` somewhere ")+"in your app.")},go(pt){throw new Error("You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a "+("`navigate("+pt+")` somewhere in your app."))},back(){throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.")},forward(){throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.")}};return i.createElement(Xe,{basename:Wn,children:vr,location:ta,navigationType:ui,navigator:St,static:!0})}},85014:(C,c,t)=>{"use strict";t.r(c),t.d(c,{BrowserRouter:()=>g,HashRouter:()=>y,Link:()=>R,MemoryRouter:()=>i.VA,NavLink:()=>_,Prompt:()=>i.NL,Redirect:()=>i.l_,Route:()=>i.AW,Router:()=>i.F0,StaticRouter:()=>i.gx,Switch:()=>i.rs,generatePath:()=>i.Gn,matchPath:()=>i.LX,useHistory:()=>i.k6,useLocation:()=>i.TH,useParams:()=>i.UO,useRouteMatch:()=>i.$B,withRouter:()=>i.EN});var i=t(7662),s=t(42030),u=t(27702),v=t(10075),l=t(93415),h=t.n(l),p=t(94285),d=t(46340),f=t(25726),g=function(j){(0,s.Z)(re,j);function re(){for(var Z,J=arguments.length,q=new Array(J),L=0;L<J;L++)q[L]=arguments[L];return Z=j.call.apply(j,[this].concat(q))||this,Z.history=(0,v.lX)(Z.props),Z}var X=re.prototype;return X.render=function(){return u.createElement(i.F0,{history:this.history,children:this.props.children})},re}(u.Component),y=function(j){(0,s.Z)(re,j);function re(){for(var Z,J=arguments.length,q=new Array(J),L=0;L<J;L++)q[L]=arguments[L];return Z=j.call.apply(j,[this].concat(q))||this,Z.history=(0,v.q_)(Z.props),Z}var X=re.prototype;return X.render=function(){return u.createElement(i.F0,{history:this.history,children:this.props.children})},re}(u.Component),b=function(re,X){return typeof re=="function"?re(X):re},E=function(re,X){return typeof re=="string"?(0,v.ob)(re,null,null,X):re},S=function(re){return re},w=u.forwardRef;typeof w>"u"&&(w=S);function x(j){return!!(j.metaKey||j.altKey||j.ctrlKey||j.shiftKey)}var P=w(function(j,re){var X=j.innerRef,Z=j.navigate,J=j.onClick,q=(0,d.Z)(j,["innerRef","navigate","onClick"]),L=q.target,$=(0,p.Z)({},q,{onClick:function(F){try{J&&J(F)}catch(V){throw F.preventDefault(),V}!F.defaultPrevented&&F.button===0&&(!L||L==="_self")&&!x(F)&&(F.preventDefault(),Z())}});return S!==w?$.ref=re||X:$.ref=X,u.createElement("a",$)}),R=w(function(j,re){var X=j.component,Z=X===void 0?P:X,J=j.replace,q=j.to,L=j.innerRef,$=(0,d.Z)(j,["component","replace","to","innerRef"]);return u.createElement(i.s6.Consumer,null,function(k){k||(0,f.Z)(!1);var F=k.history,V=E(b(q,k.location),k.location),pe=V?F.createHref(V):"",ce=(0,p.Z)({},$,{href:pe,navigate:function(){var te=b(q,k.location),ie=(0,v.Ep)(k.location)===(0,v.Ep)(E(te)),fe=J||ie?F.replace:F.push;fe(te)}});return S!==w?ce.ref=re||L:ce.innerRef=L,u.createElement(Z,ce)})});if(!1)var T,A;var I=function(re){return re},N=u.forwardRef;typeof N>"u"&&(N=I);function K(){for(var j=arguments.length,re=new Array(j),X=0;X<j;X++)re[X]=arguments[X];return re.filter(function(Z){return Z}).join(" ")}var _=N(function(j,re){var X=j["aria-current"],Z=X===void 0?"page":X,J=j.activeClassName,q=J===void 0?"active":J,L=j.activeStyle,$=j.className,k=j.exact,F=j.isActive,V=j.location,pe=j.sensitive,ce=j.strict,G=j.style,te=j.to,ie=j.innerRef,fe=(0,d.Z)(j,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return u.createElement(i.s6.Consumer,null,function(Se){Se||(0,f.Z)(!1);var he=V||Se.location,me=E(b(te,he),he),_e=me.pathname,we=_e&&_e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),Ge=we?(0,i.LX)(he.pathname,{path:we,exact:k,sensitive:pe,strict:ce}):null,ht=!!(F?F(Ge,he):Ge),nt=typeof $=="function"?$(ht):$,Re=typeof G=="function"?G(ht):G;ht&&(nt=K(nt,q),Re=(0,p.Z)({},Re,L));var ue=(0,p.Z)({"aria-current":ht&&Z||null,className:nt,style:Re,to:me},fe);return I!==N?ue.ref=re||ie:ue.innerRef=ie,u.createElement(R,ue)})});if(!1)var W},7662:(C,c,t)=>{"use strict";t.d(c,{VA:()=>re,NL:()=>Z,l_:()=>V,AW:()=>he,F0:()=>j,gx:()=>Re,rs:()=>ue,s6:()=>W,Gn:()=>F,LX:()=>ie,k6:()=>Me,TH:()=>Ye,UO:()=>qe,$B:()=>At,EN:()=>ae});var i=t(42030),s=t(27702),u=t(93415),v=t.n(u),l=t(10075),h=1073741823,p=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof t.g<"u"?t.g:{};function d(){var ke="__global_unique_id__";return p[ke]=(p[ke]||0)+1}function f(ke,Oe){return ke===Oe?ke!==0||1/ke===1/Oe:ke!==ke&&Oe!==Oe}function g(ke){var Oe=[];return{on:function(Et){Oe.push(Et)},off:function(Et){Oe=Oe.filter(function(ct){return ct!==Et})},get:function(){return ke},set:function(Et,ct){ke=Et,Oe.forEach(function(ut){return ut(ke,ct)})}}}function y(ke){return Array.isArray(ke)?ke[0]:ke}function b(ke,Oe){var je,Et,ct="__create-react-context-"+d()+"__",ut=function(mt){(0,i.Z)(bt,mt);function bt(){var hn;return hn=mt.apply(this,arguments)||this,hn.emitter=g(hn.props.value),hn}var Gt=bt.prototype;return Gt.getChildContext=function(){var Yt;return Yt={},Yt[ct]=this.emitter,Yt},Gt.componentWillReceiveProps=function(Yt){if(this.props.value!==Yt.value){var Bt=this.props.value,Lt=Yt.value,zt;f(Bt,Lt)?zt=0:(zt=typeof Oe=="function"?Oe(Bt,Lt):h,zt|=0,zt!==0&&this.emitter.set(Yt.value,zt))}},Gt.render=function(){return this.props.children},bt}(s.Component);ut.childContextTypes=(je={},je[ct]=v().object.isRequired,je);var Ne=function(mt){(0,i.Z)(bt,mt);function bt(){var hn;return hn=mt.apply(this,arguments)||this,hn.state={value:hn.getValue()},hn.onUpdate=function(Yt,Bt){var Lt=hn.observedBits|0;Lt&Bt&&hn.setState({value:hn.getValue()})},hn}var Gt=bt.prototype;return Gt.componentWillReceiveProps=function(Yt){var Bt=Yt.observedBits;this.observedBits=Bt??h},Gt.componentDidMount=function(){this.context[ct]&&this.context[ct].on(this.onUpdate);var Yt=this.props.observedBits;this.observedBits=Yt??h},Gt.componentWillUnmount=function(){this.context[ct]&&this.context[ct].off(this.onUpdate)},Gt.getValue=function(){return this.context[ct]?this.context[ct].get():ke},Gt.render=function(){return y(this.props.children)(this.state.value)},bt}(s.Component);return Ne.contextTypes=(Et={},Et[ct]=v().object,Et),{Provider:ut,Consumer:Ne}}var E=s.createContext||b;const S=E;var w=t(25726),x=t(94285),P=t(56955),R=t.n(P),T=t(54660),A=t(46340),I=t(43313),N=t.n(I),K=function(Oe){var je=S();return je.displayName=Oe,je},_=K("Router-History"),W=K("Router"),j=function(ke){(0,i.Z)(Oe,ke),Oe.computeRootMatch=function(ct){return{path:"/",url:"/",params:{},isExact:ct==="/"}};function Oe(Et){var ct;return ct=ke.call(this,Et)||this,ct.state={location:Et.history.location},ct._isMounted=!1,ct._pendingLocation=null,Et.staticContext||(ct.unlisten=Et.history.listen(function(ut){ct._pendingLocation=ut})),ct}var je=Oe.prototype;return je.componentDidMount=function(){var ct=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(ut){ct._isMounted&&ct.setState({location:ut})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},je.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},je.render=function(){return s.createElement(W.Provider,{value:{history:this.props.history,location:this.state.location,match:Oe.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},s.createElement(_.Provider,{children:this.props.children||null,value:this.props.history}))},Oe}(s.Component),re=function(ke){(0,i.Z)(Oe,ke);function Oe(){for(var Et,ct=arguments.length,ut=new Array(ct),Ne=0;Ne<ct;Ne++)ut[Ne]=arguments[Ne];return Et=ke.call.apply(ke,[this].concat(ut))||this,Et.history=(0,l.PP)(Et.props),Et}var je=Oe.prototype;return je.render=function(){return s.createElement(j,{history:this.history,children:this.props.children})},Oe}(s.Component),X=function(ke){(0,i.Z)(Oe,ke);function Oe(){return ke.apply(this,arguments)||this}var je=Oe.prototype;return je.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},je.componentDidUpdate=function(ct){this.props.onUpdate&&this.props.onUpdate.call(this,this,ct)},je.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},je.render=function(){return null},Oe}(s.Component);function Z(ke){var Oe=ke.message,je=ke.when,Et=je===void 0?!0:je;return s.createElement(W.Consumer,null,function(ct){if(ct||(0,w.Z)(!1),!Et||ct.staticContext)return null;var ut=ct.history.block;return s.createElement(X,{onMount:function(mt){mt.release=ut(Oe)},onUpdate:function(mt,bt){bt.message!==Oe&&(mt.release(),mt.release=ut(Oe))},onUnmount:function(mt){mt.release()},message:Oe})})}if(!1)var J;var q={},L=1e4,$=0;function k(ke){if(q[ke])return q[ke];var Oe=R().compile(ke);return $<L&&(q[ke]=Oe,$++),Oe}function F(ke,Oe){return ke===void 0&&(ke="/"),Oe===void 0&&(Oe={}),ke==="/"?ke:k(ke)(Oe,{pretty:!0})}function V(ke){var Oe=ke.computedMatch,je=ke.to,Et=ke.push,ct=Et===void 0?!1:Et;return s.createElement(W.Consumer,null,function(ut){ut||(0,w.Z)(!1);var Ne=ut.history,mt=ut.staticContext,bt=ct?Ne.push:Ne.replace,Gt=(0,l.ob)(Oe?typeof je=="string"?F(je,Oe.params):(0,x.Z)({},je,{pathname:F(je.pathname,Oe.params)}):je);return mt?(bt(Gt),null):s.createElement(X,{onMount:function(){bt(Gt)},onUpdate:function(Yt,Bt){var Lt=(0,l.ob)(Bt.to);(0,l.Hp)(Lt,(0,x.Z)({},Gt,{key:Lt.key}))||bt(Gt)},to:je})})}var pe={},ce=1e4,G=0;function te(ke,Oe){var je=""+Oe.end+Oe.strict+Oe.sensitive,Et=pe[je]||(pe[je]={});if(Et[ke])return Et[ke];var ct=[],ut=R()(ke,ct,Oe),Ne={regexp:ut,keys:ct};return G<ce&&(Et[ke]=Ne,G++),Ne}function ie(ke,Oe){Oe===void 0&&(Oe={}),(typeof Oe=="string"||Array.isArray(Oe))&&(Oe={path:Oe});var je=Oe,Et=je.path,ct=je.exact,ut=ct===void 0?!1:ct,Ne=je.strict,mt=Ne===void 0?!1:Ne,bt=je.sensitive,Gt=bt===void 0?!1:bt,hn=[].concat(Et);return hn.reduce(function(Yt,Bt){if(!Bt&&Bt!=="")return null;if(Yt)return Yt;var Lt=te(Bt,{end:ut,strict:mt,sensitive:Gt}),zt=Lt.regexp,Kt=Lt.keys,vt=zt.exec(ke);if(!vt)return null;var Ve=vt[0],lt=vt.slice(1),at=ke===Ve;return ut&&!at?null:{path:Bt,url:Bt==="/"&&Ve===""?"/":Ve,isExact:at,params:Kt.reduce(function(Xt,rt,Rt){return Xt[rt.name]=lt[Rt],Xt},{})}},null)}function fe(ke){return s.Children.count(ke)===0}function Se(ke,Oe,je){var Et=ke(Oe);return Et||null}var he=function(ke){(0,i.Z)(Oe,ke);function Oe(){return ke.apply(this,arguments)||this}var je=Oe.prototype;return je.render=function(){var ct=this;return s.createElement(W.Consumer,null,function(ut){ut||(0,w.Z)(!1);var Ne=ct.props.location||ut.location,mt=ct.props.computedMatch?ct.props.computedMatch:ct.props.path?ie(Ne.pathname,ct.props):ut.match,bt=(0,x.Z)({},ut,{location:Ne,match:mt}),Gt=ct.props,hn=Gt.children,Yt=Gt.component,Bt=Gt.render;return Array.isArray(hn)&&fe(hn)&&(hn=null),s.createElement(W.Provider,{value:bt},bt.match?hn?typeof hn=="function"?hn(bt):hn:Yt?s.createElement(Yt,bt):Bt?Bt(bt):null:typeof hn=="function"?hn(bt):null)})},Oe}(s.Component);function me(ke){return ke.charAt(0)==="/"?ke:"/"+ke}function _e(ke,Oe){return ke?(0,x.Z)({},Oe,{pathname:me(ke)+Oe.pathname}):Oe}function we(ke,Oe){if(!ke)return Oe;var je=me(ke);return Oe.pathname.indexOf(je)!==0?Oe:(0,x.Z)({},Oe,{pathname:Oe.pathname.substr(je.length)})}function Ge(ke){return typeof ke=="string"?ke:(0,l.Ep)(ke)}function ht(ke){return function(){(0,w.Z)(!1)}}function nt(){}var Re=function(ke){(0,i.Z)(Oe,ke);function Oe(){for(var Et,ct=arguments.length,ut=new Array(ct),Ne=0;Ne<ct;Ne++)ut[Ne]=arguments[Ne];return Et=ke.call.apply(ke,[this].concat(ut))||this,Et.handlePush=function(mt){return Et.navigateTo(mt,"PUSH")},Et.handleReplace=function(mt){return Et.navigateTo(mt,"REPLACE")},Et.handleListen=function(){return nt},Et.handleBlock=function(){return nt},Et}var je=Oe.prototype;return je.navigateTo=function(ct,ut){var Ne=this.props,mt=Ne.basename,bt=mt===void 0?"":mt,Gt=Ne.context,hn=Gt===void 0?{}:Gt;hn.action=ut,hn.location=_e(bt,(0,l.ob)(ct)),hn.url=Ge(hn.location)},je.render=function(){var ct=this.props,ut=ct.basename,Ne=ut===void 0?"":ut,mt=ct.context,bt=mt===void 0?{}:mt,Gt=ct.location,hn=Gt===void 0?"/":Gt,Yt=(0,A.Z)(ct,["basename","context","location"]),Bt={createHref:function(zt){return me(Ne+Ge(zt))},action:"POP",location:we(Ne,(0,l.ob)(hn)),push:this.handlePush,replace:this.handleReplace,go:ht("go"),goBack:ht("goBack"),goForward:ht("goForward"),listen:this.handleListen,block:this.handleBlock};return s.createElement(j,(0,x.Z)({},Yt,{history:Bt,staticContext:bt}))},Oe}(s.Component),ue=function(ke){(0,i.Z)(Oe,ke);function Oe(){return ke.apply(this,arguments)||this}var je=Oe.prototype;return je.render=function(){var ct=this;return s.createElement(W.Consumer,null,function(ut){ut||(0,w.Z)(!1);var Ne=ct.props.location||ut.location,mt,bt;return s.Children.forEach(ct.props.children,function(Gt){if(bt==null&&s.isValidElement(Gt)){mt=Gt;var hn=Gt.props.path||Gt.props.from;bt=hn?ie(Ne.pathname,(0,x.Z)({},Gt.props,{path:hn})):ut.match}}),bt?s.cloneElement(mt,{location:Ne,computedMatch:bt}):null})},Oe}(s.Component);function ae(ke){var Oe="withRouter("+(ke.displayName||ke.name)+")",je=function(ct){var ut=ct.wrappedComponentRef,Ne=(0,A.Z)(ct,["wrappedComponentRef"]);return s.createElement(W.Consumer,null,function(mt){return mt||(0,w.Z)(!1),s.createElement(ke,(0,x.Z)({},Ne,mt,{ref:ut}))})};return je.displayName=Oe,je.WrappedComponent=ke,N()(je,ke)}var ve=s.useContext;function Me(){return ve(_)}function Ye(){return ve(W).location}function qe(){var ke=ve(W).match;return ke?ke.params:{}}function At(ke){var Oe=Ye(),je=ve(W).match;return ke?ie(Oe.pathname,ke):je}if(!1)var It,Ce,Ae,$e,tt},55794:(C,c,t)=>{"use strict";t.d(c,{Z:()=>g});var i=t(94285),s=t(27702),u=t(65890),v=t(72248),l=t(90621),h=t(3559),p=t(27473),d=t(75786),f=(0,s.forwardRef)(function(y,b){var E=(0,v.u)(y),S=(0,l.u)(E),w=(0,h.u)(S);return s.createElement(u.S,(0,i.Z)({ref:b},w))});const g=f},19590:(C,c,t)=>{"use strict";t.d(c,{Z:()=>f});var i=t(94285),s=t(27702),u=t(65890),v=t(90621),l=t(72248),h=t(27473),p=t(75786),d=(0,s.forwardRef)(function(g,y){var b=(0,l.u)(g),E=(0,v.u)(b);return s.createElement(u.S,(0,i.Z)({ref:y},E))});const f=d},2004:(C,c,t)=>{"use strict";t.d(c,{Z:()=>f});var i=t(94285),s=t(27702),u=t(65890),v=t(90621),l=t(3559),h=t(27473),p=t(75786),d=(0,s.forwardRef)(function(g,y){var b=(0,v.u)(g),E=(0,l.u)(b);return s.createElement(u.S,(0,i.Z)({ref:y},E))});const f=d},65890:(C,c,t)=>{"use strict";t.d(c,{S:()=>zt,b:()=>Re,c:()=>X,g:()=>ue});var i=t(94285),s=t(48632),u=t(87741),v=t(58585),l=t(56804),h=t(93870),p=t(75342),d=t(27702),f=t(38581),g=t(76808),y=t(82152),b=t(4696);function E(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var S={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},w=function(vt){return(0,g.jsx)("span",(0,i.Z)({css:S},vt))},x={guidance:function(vt){var Ve=vt.isSearchable,lt=vt.isMulti,at=vt.isDisabled,Xt=vt.tabSelectsValue,rt=vt.context;switch(rt){case"menu":return"Use Up and Down to choose options".concat(at?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(Xt?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(vt["aria-label"]||"Select"," is focused ").concat(Ve?",type to refine list":"",", press Down to open the menu, ").concat(lt?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(vt){var Ve=vt.action,lt=vt.label,at=lt===void 0?"":lt,Xt=vt.labels,rt=vt.isDisabled;switch(Ve){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(at,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(Xt.length>1?"s":""," ").concat(Xt.join(","),", selected.");case"select-option":return rt?"option ".concat(at," is disabled. Select another option."):"option ".concat(at,", selected.");default:return""}},onFocus:function(vt){var Ve=vt.context,lt=vt.focused,at=vt.options,Xt=vt.label,rt=Xt===void 0?"":Xt,Rt=vt.selectValue,rn=vt.isDisabled,sn=vt.isSelected,Jn=function(wt,Ke){return wt&&wt.length?"".concat(wt.indexOf(Ke)+1," of ").concat(wt.length):""};if(Ve==="value"&&Rt)return"value ".concat(rt," focused, ").concat(Jn(Rt,lt),".");if(Ve==="menu"){var ze=rn?" disabled":"",st="".concat(sn?"selected":"focused").concat(ze);return"option ".concat(rt," ").concat(st,", ").concat(Jn(at,lt),".")}return""},onFilter:function(vt){var Ve=vt.inputValue,lt=vt.resultsMessage;return"".concat(lt).concat(Ve?" for search term "+Ve:"",".")}},P=function(vt){var Ve=vt.ariaSelection,lt=vt.focusedOption,at=vt.focusedValue,Xt=vt.focusableOptions,rt=vt.isFocused,Rt=vt.selectValue,rn=vt.selectProps,sn=vt.id,Jn=rn.ariaLiveMessages,ze=rn.getOptionLabel,st=rn.inputValue,en=rn.isMulti,wt=rn.isOptionDisabled,Ke=rn.isSearchable,Ut=rn.menuIsOpen,on=rn.options,Tn=rn.screenReaderStatus,An=rn.tabSelectsValue,Zt=rn["aria-label"],ot=rn["aria-live"],We=(0,d.useMemo)(function(){return(0,s.Z)((0,s.Z)({},x),Jn||{})},[Jn]),Ft=(0,d.useMemo)(function(){var mn="";if(Ve&&We.onChange){var Kn=Ve.option,Dn=Ve.options,Vn=Ve.removedValue,or=Ve.removedValues,Qr=Ve.value,ni=function(ha){return Array.isArray(ha)?null:ha},yr=Vn||Kn||ni(Qr),si=yr?ze(yr):"",Yr=Dn||or||void 0,Ci=Yr?Yr.map(ze):[],Ni=(0,s.Z)({isDisabled:yr&&wt(yr,Rt),label:si,labels:Ci},Ve);mn=We.onChange(Ni)}return mn},[Ve,We,wt,Rt,ze]),it=(0,d.useMemo)(function(){var mn="",Kn=lt||at,Dn=!!(lt&&Rt&&Rt.includes(lt));if(Kn&&We.onFocus){var Vn={focused:Kn,label:ze(Kn),isDisabled:wt(Kn,Rt),isSelected:Dn,options:Xt,context:Kn===lt?"menu":"value",selectValue:Rt};mn=We.onFocus(Vn)}return mn},[lt,at,ze,wt,We,Xt,Rt]),qt=(0,d.useMemo)(function(){var mn="";if(Ut&&on.length&&We.onFilter){var Kn=Tn({count:Xt.length});mn=We.onFilter({inputValue:st,resultsMessage:Kn})}return mn},[Xt,st,Ut,We,on,Tn]),vn=(0,d.useMemo)(function(){var mn="";if(We.guidance){var Kn=at?"value":Ut?"menu":"input";mn=We.guidance({"aria-label":Zt,context:Kn,isDisabled:lt&&wt(lt,Rt),isMulti:en,isSearchable:Ke,tabSelectsValue:An})}return mn},[Zt,lt,at,en,wt,Ke,Ut,We,Rt,An]),fn="".concat(it," ").concat(qt," ").concat(vn),Tt=(0,g.jsx)(d.Fragment,null,(0,g.jsx)("span",{id:"aria-selection"},Ft),(0,g.jsx)("span",{id:"aria-context"},fn)),dn=Ve?.action==="initial-input-focus";return(0,g.jsx)(d.Fragment,null,(0,g.jsx)(w,{id:sn},dn&&Tt),(0,g.jsx)(w,{"aria-live":ot,"aria-atomic":"false","aria-relevant":"additions text"},rt&&!dn&&Tt))},R=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],T=new RegExp("["+R.map(function(Kt){return Kt.letters}).join("")+"]","g"),A={},I=0;I<R.length;I++)for(var N=R[I],K=0;K<N.letters.length;K++)A[N.letters[K]]=N.base;var _=function(vt){return vt.replace(T,function(Ve){return A[Ve]})},W=(0,y.Z)(_),j=function(vt){return vt.replace(/^\s+|\s+$/g,"")},re=function(vt){return"".concat(vt.label," ").concat(vt.value)},X=function(vt){return function(Ve,lt){if(Ve.data.__isNew__)return!0;var at=(0,s.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:re,trim:!0,matchFrom:"any"},vt),Xt=at.ignoreCase,rt=at.ignoreAccents,Rt=at.stringify,rn=at.trim,sn=at.matchFrom,Jn=rn?j(lt):lt,ze=rn?j(Rt(Ve)):Rt(Ve);return Xt&&(Jn=Jn.toLowerCase(),ze=ze.toLowerCase()),rt&&(Jn=W(Jn),ze=_(ze)),sn==="start"?ze.substr(0,Jn.length)===Jn:ze.indexOf(Jn)>-1}},Z=["innerRef"];function J(Kt){var vt=Kt.innerRef,Ve=(0,b.Z)(Kt,Z),lt=(0,f.r)(Ve,"onExited","in","enter","exit","appear");return(0,g.jsx)("input",(0,i.Z)({ref:vt},lt,{css:(0,g.css)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var q=function(vt){vt.preventDefault(),vt.stopPropagation()};function L(Kt){var vt=Kt.isEnabled,Ve=Kt.onBottomArrive,lt=Kt.onBottomLeave,at=Kt.onTopArrive,Xt=Kt.onTopLeave,rt=(0,d.useRef)(!1),Rt=(0,d.useRef)(!1),rn=(0,d.useRef)(0),sn=(0,d.useRef)(null),Jn=(0,d.useCallback)(function(Ut,on){if(sn.current!==null){var Tn=sn.current,An=Tn.scrollTop,Zt=Tn.scrollHeight,ot=Tn.clientHeight,We=sn.current,Ft=on>0,it=Zt-ot-An,qt=!1;it>on&&rt.current&&(lt&<(Ut),rt.current=!1),Ft&&Rt.current&&(Xt&&Xt(Ut),Rt.current=!1),Ft&&on>it?(Ve&&!rt.current&&Ve(Ut),We.scrollTop=Zt,qt=!0,rt.current=!0):!Ft&&-on>An&&(at&&!Rt.current&&at(Ut),We.scrollTop=0,qt=!0,Rt.current=!0),qt&&q(Ut)}},[Ve,lt,at,Xt]),ze=(0,d.useCallback)(function(Ut){Jn(Ut,Ut.deltaY)},[Jn]),st=(0,d.useCallback)(function(Ut){rn.current=Ut.changedTouches[0].clientY},[]),en=(0,d.useCallback)(function(Ut){var on=rn.current-Ut.changedTouches[0].clientY;Jn(Ut,on)},[Jn]),wt=(0,d.useCallback)(function(Ut){if(Ut){var on=f.s?{passive:!1}:!1;Ut.addEventListener("wheel",ze,on),Ut.addEventListener("touchstart",st,on),Ut.addEventListener("touchmove",en,on)}},[en,st,ze]),Ke=(0,d.useCallback)(function(Ut){Ut&&(Ut.removeEventListener("wheel",ze,!1),Ut.removeEventListener("touchstart",st,!1),Ut.removeEventListener("touchmove",en,!1))},[en,st,ze]);return(0,d.useEffect)(function(){if(vt){var Ut=sn.current;return wt(Ut),function(){Ke(Ut)}}},[vt,wt,Ke]),function(Ut){sn.current=Ut}}var $=["boxSizing","height","overflow","paddingRight","position"],k={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function F(Kt){Kt.preventDefault()}function V(Kt){Kt.stopPropagation()}function pe(){var Kt=this.scrollTop,vt=this.scrollHeight,Ve=Kt+this.offsetHeight;Kt===0?this.scrollTop=1:Ve===vt&&(this.scrollTop=Kt-1)}function ce(){return"ontouchstart"in window||navigator.maxTouchPoints}var G=!!(typeof window<"u"&&window.document&&window.document.createElement),te=0,ie={capture:!1,passive:!1};function fe(Kt){var vt=Kt.isEnabled,Ve=Kt.accountForScrollbars,lt=Ve===void 0?!0:Ve,at=(0,d.useRef)({}),Xt=(0,d.useRef)(null),rt=(0,d.useCallback)(function(rn){if(G){var sn=document.body,Jn=sn&&sn.style;if(lt&&$.forEach(function(wt){var Ke=Jn&&Jn[wt];at.current[wt]=Ke}),lt&&te<1){var ze=parseInt(at.current.paddingRight,10)||0,st=document.body?document.body.clientWidth:0,en=window.innerWidth-st+ze||0;Object.keys(k).forEach(function(wt){var Ke=k[wt];Jn&&(Jn[wt]=Ke)}),Jn&&(Jn.paddingRight="".concat(en,"px"))}sn&&ce()&&(sn.addEventListener("touchmove",F,ie),rn&&(rn.addEventListener("touchstart",pe,ie),rn.addEventListener("touchmove",V,ie))),te+=1}},[lt]),Rt=(0,d.useCallback)(function(rn){if(G){var sn=document.body,Jn=sn&&sn.style;te=Math.max(te-1,0),lt&&te<1&&$.forEach(function(ze){var st=at.current[ze];Jn&&(Jn[ze]=st)}),sn&&ce()&&(sn.removeEventListener("touchmove",F,ie),rn&&(rn.removeEventListener("touchstart",pe,ie),rn.removeEventListener("touchmove",V,ie)))}},[lt]);return(0,d.useEffect)(function(){if(vt){var rn=Xt.current;return rt(rn),function(){Rt(rn)}}},[vt,rt,Rt]),function(rn){Xt.current=rn}}function Se(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var he=function(){return document.activeElement&&document.activeElement.blur()},me={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function _e(Kt){var vt=Kt.children,Ve=Kt.lockEnabled,lt=Kt.captureEnabled,at=lt===void 0?!0:lt,Xt=Kt.onBottomArrive,rt=Kt.onBottomLeave,Rt=Kt.onTopArrive,rn=Kt.onTopLeave,sn=L({isEnabled:at,onBottomArrive:Xt,onBottomLeave:rt,onTopArrive:Rt,onTopLeave:rn}),Jn=fe({isEnabled:Ve}),ze=function(en){sn(en),Jn(en)};return(0,g.jsx)(d.Fragment,null,Ve&&(0,g.jsx)("div",{onClick:he,css:me}),vt(ze))}function we(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Ge={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ht=function(vt){var Ve=vt.name,lt=vt.onFocus;return(0,g.jsx)("input",{required:!0,name:Ve,tabIndex:-1,onFocus:lt,css:Ge,value:"",onChange:function(){}})},nt=function(vt){return vt.label},Re=function(vt){return vt.label},ue=function(vt){return vt.value},ae=function(vt){return!!vt.isDisabled},ve={clearIndicator:f.a,container:f.b,control:f.d,dropdownIndicator:f.e,group:f.g,groupHeading:f.f,indicatorsContainer:f.i,indicatorSeparator:f.h,input:f.j,loadingIndicator:f.l,loadingMessage:f.k,menu:f.m,menuList:f.n,menuPortal:f.o,multiValue:f.p,multiValueLabel:f.q,multiValueRemove:f.t,noOptionsMessage:f.u,option:f.v,placeholder:f.w,singleValue:f.x,valueContainer:f.y};function Me(Kt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ve=_objectSpread({},Kt);return Object.keys(vt).forEach(function(lt){var at=lt;Kt[at]?Ve[at]=function(Xt,rt){return vt[at](Kt[at](Xt,rt),rt)}:Ve[at]=vt[at]}),Ve}var Ye={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},qe=4,At=4,It=38,Ce=At*2,Ae={baseUnit:At,controlHeight:It,menuGutter:Ce},$e={borderRadius:qe,colors:Ye,spacing:Ae},tt={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,f.z)(),captureMenuScroll:!(0,f.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:X(),formatGroupLabel:nt,getOptionLabel:Re,getOptionValue:ue,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ae,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,f.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(vt){var Ve=vt.count;return"".concat(Ve," result").concat(Ve!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ke(Kt,vt,Ve,lt){var at=Gt(Kt,vt,Ve),Xt=hn(Kt,vt,Ve),rt=mt(Kt,vt),Rt=bt(Kt,vt);return{type:"option",data:vt,isDisabled:at,isSelected:Xt,label:rt,value:Rt,index:lt}}function Oe(Kt,vt){return Kt.options.map(function(Ve,lt){if("options"in Ve){var at=Ve.options.map(function(rt,Rt){return ke(Kt,rt,vt,Rt)}).filter(function(rt){return ct(Kt,rt)});return at.length>0?{type:"group",data:Ve,options:at,index:lt}:void 0}var Xt=ke(Kt,Ve,vt,lt);return ct(Kt,Xt)?Xt:void 0}).filter(f.G)}function je(Kt){return Kt.reduce(function(vt,Ve){return Ve.type==="group"?vt.push.apply(vt,(0,p.Z)(Ve.options.map(function(lt){return lt.data}))):vt.push(Ve.data),vt},[])}function Et(Kt,vt){return je(Oe(Kt,vt))}function ct(Kt,vt){var Ve=Kt.inputValue,lt=Ve===void 0?"":Ve,at=vt.data,Xt=vt.isSelected,rt=vt.label,Rt=vt.value;return(!Bt(Kt)||!Xt)&&Yt(Kt,{label:rt,value:Rt,data:at},lt)}function ut(Kt,vt){var Ve=Kt.focusedValue,lt=Kt.selectValue,at=lt.indexOf(Ve);if(at>-1){var Xt=vt.indexOf(Ve);if(Xt>-1)return Ve;if(at<vt.length)return vt[at]}return null}function Ne(Kt,vt){var Ve=Kt.focusedOption;return Ve&&vt.indexOf(Ve)>-1?Ve:vt[0]}var mt=function(vt,Ve){return vt.getOptionLabel(Ve)},bt=function(vt,Ve){return vt.getOptionValue(Ve)};function Gt(Kt,vt,Ve){return typeof Kt.isOptionDisabled=="function"?Kt.isOptionDisabled(vt,Ve):!1}function hn(Kt,vt,Ve){if(Ve.indexOf(vt)>-1)return!0;if(typeof Kt.isOptionSelected=="function")return Kt.isOptionSelected(vt,Ve);var lt=bt(Kt,vt);return Ve.some(function(at){return bt(Kt,at)===lt})}function Yt(Kt,vt,Ve){return Kt.filterOption?Kt.filterOption(vt,Ve):!0}var Bt=function(vt){var Ve=vt.hideSelectedOptions,lt=vt.isMulti;return Ve===void 0?lt:Ve},Lt=1,zt=function(Kt){(0,l.Z)(Ve,Kt);var vt=(0,h.Z)(Ve);function Ve(lt){var at;if((0,u.Z)(this,Ve),at=vt.call(this,lt),at.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},at.blockOptionHover=!1,at.isComposing=!1,at.commonProps=void 0,at.initialTouchX=0,at.initialTouchY=0,at.instancePrefix="",at.openAfterFocus=!1,at.scrollToFocusedOptionOnUpdate=!1,at.userIsDragging=void 0,at.controlRef=null,at.getControlRef=function(Rt){at.controlRef=Rt},at.focusedOptionRef=null,at.getFocusedOptionRef=function(Rt){at.focusedOptionRef=Rt},at.menuListRef=null,at.getMenuListRef=function(Rt){at.menuListRef=Rt},at.inputRef=null,at.getInputRef=function(Rt){at.inputRef=Rt},at.focus=at.focusInput,at.blur=at.blurInput,at.onChange=function(Rt,rn){var sn=at.props,Jn=sn.onChange,ze=sn.name;rn.name=ze,at.ariaOnChange(Rt,rn),Jn(Rt,rn)},at.setValue=function(Rt,rn,sn){var Jn=at.props,ze=Jn.closeMenuOnSelect,st=Jn.isMulti,en=Jn.inputValue;at.onInputChange("",{action:"set-value",prevInputValue:en}),ze&&(at.setState({inputIsHiddenAfterUpdate:!st}),at.onMenuClose()),at.setState({clearFocusValueOnUpdate:!0}),at.onChange(Rt,{action:rn,option:sn})},at.selectOption=function(Rt){var rn=at.props,sn=rn.blurInputOnSelect,Jn=rn.isMulti,ze=rn.name,st=at.state.selectValue,en=Jn&&at.isOptionSelected(Rt,st),wt=at.isOptionDisabled(Rt,st);if(en){var Ke=at.getOptionValue(Rt);at.setValue((0,f.B)(st.filter(function(Ut){return at.getOptionValue(Ut)!==Ke})),"deselect-option",Rt)}else if(!wt)Jn?at.setValue((0,f.B)([].concat((0,p.Z)(st),[Rt])),"select-option",Rt):at.setValue((0,f.C)(Rt),"select-option");else{at.ariaOnChange((0,f.C)(Rt),{action:"select-option",option:Rt,name:ze});return}sn&&at.blurInput()},at.removeValue=function(Rt){var rn=at.props.isMulti,sn=at.state.selectValue,Jn=at.getOptionValue(Rt),ze=sn.filter(function(en){return at.getOptionValue(en)!==Jn}),st=(0,f.D)(rn,ze,ze[0]||null);at.onChange(st,{action:"remove-value",removedValue:Rt}),at.focusInput()},at.clearValue=function(){var Rt=at.state.selectValue;at.onChange((0,f.D)(at.props.isMulti,[],null),{action:"clear",removedValues:Rt})},at.popValue=function(){var Rt=at.props.isMulti,rn=at.state.selectValue,sn=rn[rn.length-1],Jn=rn.slice(0,rn.length-1),ze=(0,f.D)(Rt,Jn,Jn[0]||null);at.onChange(ze,{action:"pop-value",removedValue:sn})},at.getValue=function(){return at.state.selectValue},at.cx=function(){for(var Rt=arguments.length,rn=new Array(Rt),sn=0;sn<Rt;sn++)rn[sn]=arguments[sn];return f.E.apply(void 0,[at.props.classNamePrefix].concat(rn))},at.getOptionLabel=function(Rt){return mt(at.props,Rt)},at.getOptionValue=function(Rt){return bt(at.props,Rt)},at.getStyles=function(Rt,rn){var sn=at.props.unstyled,Jn=ve[Rt](rn,sn);Jn.boxSizing="border-box";var ze=at.props.styles[Rt];return ze?ze(Jn,rn):Jn},at.getClassNames=function(Rt,rn){var sn,Jn;return(sn=(Jn=at.props.classNames)[Rt])===null||sn===void 0?void 0:sn.call(Jn,rn)},at.getElementId=function(Rt){return"".concat(at.instancePrefix,"-").concat(Rt)},at.getComponents=function(){return(0,f.F)(at.props)},at.buildCategorizedOptions=function(){return Oe(at.props,at.state.selectValue)},at.getCategorizedOptions=function(){return at.props.menuIsOpen?at.buildCategorizedOptions():[]},at.buildFocusableOptions=function(){return je(at.buildCategorizedOptions())},at.getFocusableOptions=function(){return at.props.menuIsOpen?at.buildFocusableOptions():[]},at.ariaOnChange=function(Rt,rn){at.setState({ariaSelection:(0,s.Z)({value:Rt},rn)})},at.onMenuMouseDown=function(Rt){Rt.button===0&&(Rt.stopPropagation(),Rt.preventDefault(),at.focusInput())},at.onMenuMouseMove=function(Rt){at.blockOptionHover=!1},at.onControlMouseDown=function(Rt){if(!Rt.defaultPrevented){var rn=at.props.openMenuOnClick;at.state.isFocused?at.props.menuIsOpen?Rt.target.tagName!=="INPUT"&&Rt.target.tagName!=="TEXTAREA"&&at.onMenuClose():rn&&at.openMenu("first"):(rn&&(at.openAfterFocus=!0),at.focusInput()),Rt.target.tagName!=="INPUT"&&Rt.target.tagName!=="TEXTAREA"&&Rt.preventDefault()}},at.onDropdownIndicatorMouseDown=function(Rt){if(!(Rt&&Rt.type==="mousedown"&&Rt.button!==0)&&!at.props.isDisabled){var rn=at.props,sn=rn.isMulti,Jn=rn.menuIsOpen;at.focusInput(),Jn?(at.setState({inputIsHiddenAfterUpdate:!sn}),at.onMenuClose()):at.openMenu("first"),Rt.preventDefault()}},at.onClearIndicatorMouseDown=function(Rt){Rt&&Rt.type==="mousedown"&&Rt.button!==0||(at.clearValue(),Rt.preventDefault(),at.openAfterFocus=!1,Rt.type==="touchend"?at.focusInput():setTimeout(function(){return at.focusInput()}))},at.onScroll=function(Rt){typeof at.props.closeMenuOnScroll=="boolean"?Rt.target instanceof HTMLElement&&(0,f.H)(Rt.target)&&at.props.onMenuClose():typeof at.props.closeMenuOnScroll=="function"&&at.props.closeMenuOnScroll(Rt)&&at.props.onMenuClose()},at.onCompositionStart=function(){at.isComposing=!0},at.onCompositionEnd=function(){at.isComposing=!1},at.onTouchStart=function(Rt){var rn=Rt.touches,sn=rn&&rn.item(0);sn&&(at.initialTouchX=sn.clientX,at.initialTouchY=sn.clientY,at.userIsDragging=!1)},at.onTouchMove=function(Rt){var rn=Rt.touches,sn=rn&&rn.item(0);if(sn){var Jn=Math.abs(sn.clientX-at.initialTouchX),ze=Math.abs(sn.clientY-at.initialTouchY),st=5;at.userIsDragging=Jn>st||ze>st}},at.onTouchEnd=function(Rt){at.userIsDragging||(at.controlRef&&!at.controlRef.contains(Rt.target)&&at.menuListRef&&!at.menuListRef.contains(Rt.target)&&at.blurInput(),at.initialTouchX=0,at.initialTouchY=0)},at.onControlTouchEnd=function(Rt){at.userIsDragging||at.onControlMouseDown(Rt)},at.onClearIndicatorTouchEnd=function(Rt){at.userIsDragging||at.onClearIndicatorMouseDown(Rt)},at.onDropdownIndicatorTouchEnd=function(Rt){at.userIsDragging||at.onDropdownIndicatorMouseDown(Rt)},at.handleInputChange=function(Rt){var rn=at.props.inputValue,sn=Rt.currentTarget.value;at.setState({inputIsHiddenAfterUpdate:!1}),at.onInputChange(sn,{action:"input-change",prevInputValue:rn}),at.props.menuIsOpen||at.onMenuOpen()},at.onInputFocus=function(Rt){at.props.onFocus&&at.props.onFocus(Rt),at.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(at.openAfterFocus||at.props.openMenuOnFocus)&&at.openMenu("first"),at.openAfterFocus=!1},at.onInputBlur=function(Rt){var rn=at.props.inputValue;if(at.menuListRef&&at.menuListRef.contains(document.activeElement)){at.inputRef.focus();return}at.props.onBlur&&at.props.onBlur(Rt),at.onInputChange("",{action:"input-blur",prevInputValue:rn}),at.onMenuClose(),at.setState({focusedValue:null,isFocused:!1})},at.onOptionHover=function(Rt){at.blockOptionHover||at.state.focusedOption===Rt||at.setState({focusedOption:Rt})},at.shouldHideSelectedOptions=function(){return Bt(at.props)},at.onValueInputFocus=function(Rt){Rt.preventDefault(),Rt.stopPropagation(),at.focus()},at.onKeyDown=function(Rt){var rn=at.props,sn=rn.isMulti,Jn=rn.backspaceRemovesValue,ze=rn.escapeClearsValue,st=rn.inputValue,en=rn.isClearable,wt=rn.isDisabled,Ke=rn.menuIsOpen,Ut=rn.onKeyDown,on=rn.tabSelectsValue,Tn=rn.openMenuOnFocus,An=at.state,Zt=An.focusedOption,ot=An.focusedValue,We=An.selectValue;if(!wt&&!(typeof Ut=="function"&&(Ut(Rt),Rt.defaultPrevented))){switch(at.blockOptionHover=!0,Rt.key){case"ArrowLeft":if(!sn||st)return;at.focusValue("previous");break;case"ArrowRight":if(!sn||st)return;at.focusValue("next");break;case"Delete":case"Backspace":if(st)return;if(ot)at.removeValue(ot);else{if(!Jn)return;sn?at.popValue():en&&at.clearValue()}break;case"Tab":if(at.isComposing||Rt.shiftKey||!Ke||!on||!Zt||Tn&&at.isOptionSelected(Zt,We))return;at.selectOption(Zt);break;case"Enter":if(Rt.keyCode===229)break;if(Ke){if(!Zt||at.isComposing)return;at.selectOption(Zt);break}return;case"Escape":Ke?(at.setState({inputIsHiddenAfterUpdate:!1}),at.onInputChange("",{action:"menu-close",prevInputValue:st}),at.onMenuClose()):en&&ze&&at.clearValue();break;case" ":if(st)return;if(!Ke){at.openMenu("first");break}if(!Zt)return;at.selectOption(Zt);break;case"ArrowUp":Ke?at.focusOption("up"):at.openMenu("last");break;case"ArrowDown":Ke?at.focusOption("down"):at.openMenu("first");break;case"PageUp":if(!Ke)return;at.focusOption("pageup");break;case"PageDown":if(!Ke)return;at.focusOption("pagedown");break;case"Home":if(!Ke)return;at.focusOption("first");break;case"End":if(!Ke)return;at.focusOption("last");break;default:return}Rt.preventDefault()}},at.instancePrefix="react-select-"+(at.props.instanceId||++Lt),at.state.selectValue=(0,f.I)(lt.value),lt.menuIsOpen&&at.state.selectValue.length){var Xt=at.buildFocusableOptions(),rt=Xt.indexOf(at.state.selectValue[0]);at.state.focusedOption=Xt[rt]}return at}return(0,v.Z)(Ve,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,f.J)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(at){var Xt=this.props,rt=Xt.isDisabled,Rt=Xt.menuIsOpen,rn=this.state.isFocused;(rn&&!rt&&at.isDisabled||rn&&Rt&&!at.menuIsOpen)&&this.focusInput(),rn&&rt&&!at.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!rn&&!rt&&at.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,f.J)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(at,Xt){this.props.onInputChange(at,Xt)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(at){var Xt=this,rt=this.state,Rt=rt.selectValue,rn=rt.isFocused,sn=this.buildFocusableOptions(),Jn=at==="first"?0:sn.length-1;if(!this.props.isMulti){var ze=sn.indexOf(Rt[0]);ze>-1&&(Jn=ze)}this.scrollToFocusedOptionOnUpdate=!(rn&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:sn[Jn]},function(){return Xt.onMenuOpen()})}},{key:"focusValue",value:function(at){var Xt=this.state,rt=Xt.selectValue,Rt=Xt.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var rn=rt.indexOf(Rt);Rt||(rn=-1);var sn=rt.length-1,Jn=-1;if(rt.length){switch(at){case"previous":rn===0?Jn=0:rn===-1?Jn=sn:Jn=rn-1;break;case"next":rn>-1&&rn<sn&&(Jn=rn+1);break}this.setState({inputIsHidden:Jn!==-1,focusedValue:rt[Jn]})}}}},{key:"focusOption",value:function(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",Xt=this.props.pageSize,rt=this.state.focusedOption,Rt=this.getFocusableOptions();if(Rt.length){var rn=0,sn=Rt.indexOf(rt);rt||(sn=-1),at==="up"?rn=sn>0?sn-1:Rt.length-1:at==="down"?rn=(sn+1)%Rt.length:at==="pageup"?(rn=sn-Xt,rn<0&&(rn=0)):at==="pagedown"?(rn=sn+Xt,rn>Rt.length-1&&(rn=Rt.length-1)):at==="last"&&(rn=Rt.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:Rt[rn],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme($e):(0,s.Z)((0,s.Z)({},$e),this.props.theme):$e}},{key:"getCommonProps",value:function(){var at=this.clearValue,Xt=this.cx,rt=this.getStyles,Rt=this.getClassNames,rn=this.getValue,sn=this.selectOption,Jn=this.setValue,ze=this.props,st=ze.isMulti,en=ze.isRtl,wt=ze.options,Ke=this.hasValue();return{clearValue:at,cx:Xt,getStyles:rt,getClassNames:Rt,getValue:rn,hasValue:Ke,isMulti:st,isRtl:en,options:wt,selectOption:sn,selectProps:ze,setValue:Jn,theme:this.getTheme()}}},{key:"hasValue",value:function(){var at=this.state.selectValue;return at.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var at=this.props,Xt=at.isClearable,rt=at.isMulti;return Xt===void 0?rt:Xt}},{key:"isOptionDisabled",value:function(at,Xt){return Gt(this.props,at,Xt)}},{key:"isOptionSelected",value:function(at,Xt){return hn(this.props,at,Xt)}},{key:"filterOption",value:function(at,Xt){return Yt(this.props,at,Xt)}},{key:"formatOptionLabel",value:function(at,Xt){if(typeof this.props.formatOptionLabel=="function"){var rt=this.props.inputValue,Rt=this.state.selectValue;return this.props.formatOptionLabel(at,{context:Xt,inputValue:rt,selectValue:Rt})}else return this.getOptionLabel(at)}},{key:"formatGroupLabel",value:function(at){return this.props.formatGroupLabel(at)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var at=this.props,Xt=at.isDisabled,rt=at.isSearchable,Rt=at.inputId,rn=at.inputValue,sn=at.tabIndex,Jn=at.form,ze=at.menuIsOpen,st=at.required,en=this.getComponents(),wt=en.Input,Ke=this.state,Ut=Ke.inputIsHidden,on=Ke.ariaSelection,Tn=this.commonProps,An=Rt||this.getElementId("input"),Zt=(0,s.Z)((0,s.Z)((0,s.Z)({"aria-autocomplete":"list","aria-expanded":ze,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":st,role:"combobox"},ze&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!rt&&{"aria-readonly":!0}),this.hasValue()?on?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return rt?d.createElement(wt,(0,i.Z)({},Tn,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:An,innerRef:this.getInputRef,isDisabled:Xt,isHidden:Ut,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:sn,form:Jn,type:"text",value:rn},Zt)):d.createElement(J,(0,i.Z)({id:An,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:f.K,onFocus:this.onInputFocus,disabled:Xt,tabIndex:sn,inputMode:"none",form:Jn,value:""},Zt))}},{key:"renderPlaceholderOrValue",value:function(){var at=this,Xt=this.getComponents(),rt=Xt.MultiValue,Rt=Xt.MultiValueContainer,rn=Xt.MultiValueLabel,sn=Xt.MultiValueRemove,Jn=Xt.SingleValue,ze=Xt.Placeholder,st=this.commonProps,en=this.props,wt=en.controlShouldRenderValue,Ke=en.isDisabled,Ut=en.isMulti,on=en.inputValue,Tn=en.placeholder,An=this.state,Zt=An.selectValue,ot=An.focusedValue,We=An.isFocused;if(!this.hasValue()||!wt)return on?null:d.createElement(ze,(0,i.Z)({},st,{key:"placeholder",isDisabled:Ke,isFocused:We,innerProps:{id:this.getElementId("placeholder")}}),Tn);if(Ut)return Zt.map(function(it,qt){var vn=it===ot,fn="".concat(at.getOptionLabel(it),"-").concat(at.getOptionValue(it));return d.createElement(rt,(0,i.Z)({},st,{components:{Container:Rt,Label:rn,Remove:sn},isFocused:vn,isDisabled:Ke,key:fn,index:qt,removeProps:{onClick:function(){return at.removeValue(it)},onTouchEnd:function(){return at.removeValue(it)},onMouseDown:function(dn){dn.preventDefault()}},data:it}),at.formatOptionLabel(it,"value"))});if(on)return null;var Ft=Zt[0];return d.createElement(Jn,(0,i.Z)({},st,{data:Ft,isDisabled:Ke}),this.formatOptionLabel(Ft,"value"))}},{key:"renderClearIndicator",value:function(){var at=this.getComponents(),Xt=at.ClearIndicator,rt=this.commonProps,Rt=this.props,rn=Rt.isDisabled,sn=Rt.isLoading,Jn=this.state.isFocused;if(!this.isClearable()||!Xt||rn||!this.hasValue()||sn)return null;var ze={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return d.createElement(Xt,(0,i.Z)({},rt,{innerProps:ze,isFocused:Jn}))}},{key:"renderLoadingIndicator",value:function(){var at=this.getComponents(),Xt=at.LoadingIndicator,rt=this.commonProps,Rt=this.props,rn=Rt.isDisabled,sn=Rt.isLoading,Jn=this.state.isFocused;if(!Xt||!sn)return null;var ze={"aria-hidden":"true"};return d.createElement(Xt,(0,i.Z)({},rt,{innerProps:ze,isDisabled:rn,isFocused:Jn}))}},{key:"renderIndicatorSeparator",value:function(){var at=this.getComponents(),Xt=at.DropdownIndicator,rt=at.IndicatorSeparator;if(!Xt||!rt)return null;var Rt=this.commonProps,rn=this.props.isDisabled,sn=this.state.isFocused;return d.createElement(rt,(0,i.Z)({},Rt,{isDisabled:rn,isFocused:sn}))}},{key:"renderDropdownIndicator",value:function(){var at=this.getComponents(),Xt=at.DropdownIndicator;if(!Xt)return null;var rt=this.commonProps,Rt=this.props.isDisabled,rn=this.state.isFocused,sn={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return d.createElement(Xt,(0,i.Z)({},rt,{innerProps:sn,isDisabled:Rt,isFocused:rn}))}},{key:"renderMenu",value:function(){var at=this,Xt=this.getComponents(),rt=Xt.Group,Rt=Xt.GroupHeading,rn=Xt.Menu,sn=Xt.MenuList,Jn=Xt.MenuPortal,ze=Xt.LoadingMessage,st=Xt.NoOptionsMessage,en=Xt.Option,wt=this.commonProps,Ke=this.state.focusedOption,Ut=this.props,on=Ut.captureMenuScroll,Tn=Ut.inputValue,An=Ut.isLoading,Zt=Ut.loadingMessage,ot=Ut.minMenuHeight,We=Ut.maxMenuHeight,Ft=Ut.menuIsOpen,it=Ut.menuPlacement,qt=Ut.menuPosition,vn=Ut.menuPortalTarget,fn=Ut.menuShouldBlockScroll,Tt=Ut.menuShouldScrollIntoView,dn=Ut.noOptionsMessage,mn=Ut.onMenuScrollToTop,Kn=Ut.onMenuScrollToBottom;if(!Ft)return null;var Dn=function(Yr,Ci){var Ni=Yr.type,fa=Yr.data,ha=Yr.isDisabled,Ca=Yr.isSelected,li=Yr.label,la=Yr.value,Oa=Ke===fa,wa=ha?void 0:function(){return at.onOptionHover(fa)},vo=ha?void 0:function(){return at.selectOption(fa)},Qn="".concat(at.getElementId("option"),"-").concat(Ci),_r={id:Qn,onClick:vo,onMouseMove:wa,onMouseOver:wa,tabIndex:-1};return d.createElement(en,(0,i.Z)({},wt,{innerProps:_r,data:fa,isDisabled:ha,isSelected:Ca,key:Qn,label:li,type:Ni,value:la,isFocused:Oa,innerRef:Oa?at.getFocusedOptionRef:void 0}),at.formatOptionLabel(Yr.data,"menu"))},Vn;if(this.hasOptions())Vn=this.getCategorizedOptions().map(function(si){if(si.type==="group"){var Yr=si.data,Ci=si.options,Ni=si.index,fa="".concat(at.getElementId("group"),"-").concat(Ni),ha="".concat(fa,"-heading");return d.createElement(rt,(0,i.Z)({},wt,{key:fa,data:Yr,options:Ci,Heading:Rt,headingProps:{id:ha,data:si.data},label:at.formatGroupLabel(si.data)}),si.options.map(function(Ca){return Dn(Ca,"".concat(Ni,"-").concat(Ca.index))}))}else if(si.type==="option")return Dn(si,"".concat(si.index))});else if(An){var or=Zt({inputValue:Tn});if(or===null)return null;Vn=d.createElement(ze,wt,or)}else{var Qr=dn({inputValue:Tn});if(Qr===null)return null;Vn=d.createElement(st,wt,Qr)}var ni={minMenuHeight:ot,maxMenuHeight:We,menuPlacement:it,menuPosition:qt,menuShouldScrollIntoView:Tt},yr=d.createElement(f.M,(0,i.Z)({},wt,ni),function(si){var Yr=si.ref,Ci=si.placerProps,Ni=Ci.placement,fa=Ci.maxHeight;return d.createElement(rn,(0,i.Z)({},wt,ni,{innerRef:Yr,innerProps:{onMouseDown:at.onMenuMouseDown,onMouseMove:at.onMenuMouseMove,id:at.getElementId("listbox")},isLoading:An,placement:Ni}),d.createElement(_e,{captureEnabled:on,onTopArrive:mn,onBottomArrive:Kn,lockEnabled:fn},function(ha){return d.createElement(sn,(0,i.Z)({},wt,{innerRef:function(li){at.getMenuListRef(li),ha(li)},isLoading:An,maxHeight:fa,focusedOption:Ke}),Vn)}))});return vn||qt==="fixed"?d.createElement(Jn,(0,i.Z)({},wt,{appendTo:vn,controlElement:this.controlRef,menuPlacement:it,menuPosition:qt}),yr):yr}},{key:"renderFormField",value:function(){var at=this,Xt=this.props,rt=Xt.delimiter,Rt=Xt.isDisabled,rn=Xt.isMulti,sn=Xt.name,Jn=Xt.required,ze=this.state.selectValue;if(!(!sn||Rt)){if(Jn&&!this.hasValue())return d.createElement(ht,{name:sn,onFocus:this.onValueInputFocus});if(rn)if(rt){var st=ze.map(function(Ke){return at.getOptionValue(Ke)}).join(rt);return d.createElement("input",{name:sn,type:"hidden",value:st})}else{var en=ze.length>0?ze.map(function(Ke,Ut){return d.createElement("input",{key:"i-".concat(Ut),name:sn,type:"hidden",value:at.getOptionValue(Ke)})}):d.createElement("input",{name:sn,type:"hidden",value:""});return d.createElement("div",null,en)}else{var wt=ze[0]?this.getOptionValue(ze[0]):"";return d.createElement("input",{name:sn,type:"hidden",value:wt})}}}},{key:"renderLiveRegion",value:function(){var at=this.commonProps,Xt=this.state,rt=Xt.ariaSelection,Rt=Xt.focusedOption,rn=Xt.focusedValue,sn=Xt.isFocused,Jn=Xt.selectValue,ze=this.getFocusableOptions();return d.createElement(P,(0,i.Z)({},at,{id:this.getElementId("live-region"),ariaSelection:rt,focusedOption:Rt,focusedValue:rn,isFocused:sn,selectValue:Jn,focusableOptions:ze}))}},{key:"render",value:function(){var at=this.getComponents(),Xt=at.Control,rt=at.IndicatorsContainer,Rt=at.SelectContainer,rn=at.ValueContainer,sn=this.props,Jn=sn.className,ze=sn.id,st=sn.isDisabled,en=sn.menuIsOpen,wt=this.state.isFocused,Ke=this.commonProps=this.getCommonProps();return d.createElement(Rt,(0,i.Z)({},Ke,{className:Jn,innerProps:{id:ze,onKeyDown:this.onKeyDown},isDisabled:st,isFocused:wt}),this.renderLiveRegion(),d.createElement(Xt,(0,i.Z)({},Ke,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:st,isFocused:wt,menuIsOpen:en}),d.createElement(rn,(0,i.Z)({},Ke,{isDisabled:st}),this.renderPlaceholderOrValue(),this.renderInput()),d.createElement(rt,(0,i.Z)({},Ke,{isDisabled:st}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(at,Xt){var rt=Xt.prevProps,Rt=Xt.clearFocusValueOnUpdate,rn=Xt.inputIsHiddenAfterUpdate,sn=Xt.ariaSelection,Jn=Xt.isFocused,ze=Xt.prevWasFocused,st=at.options,en=at.value,wt=at.menuIsOpen,Ke=at.inputValue,Ut=at.isMulti,on=(0,f.I)(en),Tn={};if(rt&&(en!==rt.value||st!==rt.options||wt!==rt.menuIsOpen||Ke!==rt.inputValue)){var An=wt?Et(at,on):[],Zt=Rt?ut(Xt,on):null,ot=Ne(Xt,An);Tn={selectValue:on,focusedOption:ot,focusedValue:Zt,clearFocusValueOnUpdate:!1}}var We=rn!=null&&at!==rt?{inputIsHidden:rn,inputIsHiddenAfterUpdate:void 0}:{},Ft=sn,it=Jn&&ze;return Jn&&!it&&(Ft={value:(0,f.D)(Ut,on,on[0]||null),options:on,action:"initial-input-focus"},it=!ze),sn?.action==="initial-input-focus"&&(Ft=null),(0,s.Z)((0,s.Z)((0,s.Z)({},Tn),We),{},{prevProps:at,ariaSelection:Ft,prevWasFocused:it})}}]),Ve}(d.Component);zt.defaultProps=tt},38581:(C,c,t)=>{"use strict";t.d(c,{A:()=>wt,B:()=>Ft,C:()=>We,D:()=>ot,E:()=>zt,F:()=>qa,G:()=>An,H:()=>at,I:()=>Kt,J:()=>ze,K:()=>Bt,L:()=>lt,M:()=>mn,a:()=>Ur,b:()=>Ni,c:()=>Ya,d:()=>lr,e:()=>On,f:()=>ia,g:()=>Ri,h:()=>ln,i:()=>li,j:()=>ao,k:()=>ni,l:()=>Mr,m:()=>Tt,n:()=>Dn,o:()=>Yr,p:()=>wr,q:()=>qi,r:()=>it,s:()=>Tn,t:()=>ja,u:()=>Qr,v:()=>Gn,w:()=>Fr,x:()=>ii,y:()=>ha,z:()=>en});var i=t(48632),s=t(94285),u=t(76808),v=t(32098),l=t(4696),h=t(4484);function p(se,ye){return ye||(ye=se.slice(0)),Object.freeze(Object.defineProperties(se,{raw:{value:Object.freeze(ye)}}))}var d=t(23190),f=t(27702),g=t(27473);function y(se){return se.split("-")[0]}function b(se){return se.split("-")[1]}function E(se){return["top","bottom"].includes(y(se))?"x":"y"}function S(se){return se==="y"?"height":"width"}function w(se,ye,Xe){let{reference:yt,floating:Wt}=se;const Qt=yt.x+yt.width/2-Wt.width/2,wn=yt.y+yt.height/2-Wt.height/2,fr=E(ye),Or=S(fr),Si=yt[Or]/2-Wt[Or]/2,Fi=fr==="x";let Bi;switch(y(ye)){case"top":Bi={x:Qt,y:yt.y-Wt.height};break;case"bottom":Bi={x:Qt,y:yt.y+yt.height};break;case"right":Bi={x:yt.x+yt.width,y:wn};break;case"left":Bi={x:yt.x-Wt.width,y:wn};break;default:Bi={x:yt.x,y:yt.y}}switch(b(ye)){case"start":Bi[fr]-=Si*(Xe&&Fi?-1:1);break;case"end":Bi[fr]+=Si*(Xe&&Fi?-1:1)}return Bi}const x=async(se,ye,Xe)=>{const{placement:yt="bottom",strategy:Wt="absolute",middleware:Qt=[],platform:wn}=Xe,fr=await(wn.isRTL==null?void 0:wn.isRTL(ye));let Or=await wn.getElementRects({reference:se,floating:ye,strategy:Wt}),{x:Si,y:Fi}=w(Or,yt,fr),Bi=yt,Ui={},vi=0;for(let Xa=0;Xa<Qt.length;Xa++){const{name:Ko,fn:So}=Qt[Xa],{x:Lo,y:us,data:Ee,reset:Y}=await So({x:Si,y:Fi,initialPlacement:yt,placement:Bi,strategy:Wt,middlewareData:Ui,rects:Or,platform:wn,elements:{reference:se,floating:ye}});Si=Lo??Si,Fi=us??Fi,Ui={...Ui,[Ko]:{...Ui[Ko],...Ee}},Y&&vi<=50&&(vi++,typeof Y=="object"&&(Y.placement&&(Bi=Y.placement),Y.rects&&(Or=Y.rects===!0?await wn.getElementRects({reference:se,floating:ye,strategy:Wt}):Y.rects),{x:Si,y:Fi}=w(Or,Bi,fr)),Xa=-1)}return{x:Si,y:Fi,placement:Bi,strategy:Wt,middlewareData:Ui}};function P(se){return typeof se!="number"?function(ye){return{top:0,right:0,bottom:0,left:0,...ye}}(se):{top:se,right:se,bottom:se,left:se}}function R(se){return{...se,top:se.y,left:se.x,right:se.x+se.width,bottom:se.y+se.height}}async function T(se,ye){var Xe;ye===void 0&&(ye={});const{x:yt,y:Wt,platform:Qt,rects:wn,elements:fr,strategy:Or}=se,{boundary:Si="clippingAncestors",rootBoundary:Fi="viewport",elementContext:Bi="floating",altBoundary:Ui=!1,padding:vi=0}=ye,Xa=P(vi),Ko=fr[Ui?Bi==="floating"?"reference":"floating":Bi],So=R(await Qt.getClippingRect({element:(Xe=await(Qt.isElement==null?void 0:Qt.isElement(Ko)))==null||Xe?Ko:Ko.contextElement||await(Qt.getDocumentElement==null?void 0:Qt.getDocumentElement(fr.floating)),boundary:Si,rootBoundary:Fi,strategy:Or})),Lo=R(Qt.convertOffsetParentRelativeRectToViewportRelativeRect?await Qt.convertOffsetParentRelativeRectToViewportRelativeRect({rect:Bi==="floating"?{...wn.floating,x:yt,y:Wt}:wn.reference,offsetParent:await(Qt.getOffsetParent==null?void 0:Qt.getOffsetParent(fr.floating)),strategy:Or}):wn[Bi]);return{top:So.top-Lo.top+Xa.top,bottom:Lo.bottom-So.bottom+Xa.bottom,left:So.left-Lo.left+Xa.left,right:Lo.right-So.right+Xa.right}}const A=Math.min,I=Math.max;function N(se,ye,Xe){return I(se,A(ye,Xe))}const K=se=>({name:"arrow",options:se,async fn(ye){const{element:Xe,padding:yt=0}=se??{},{x:Wt,y:Qt,placement:wn,rects:fr,platform:Or}=ye;if(Xe==null)return{};const Si=P(yt),Fi={x:Wt,y:Qt},Bi=E(wn),Ui=b(wn),vi=S(Bi),Xa=await Or.getDimensions(Xe),Ko=Bi==="y"?"top":"left",So=Bi==="y"?"bottom":"right",Lo=fr.reference[vi]+fr.reference[Bi]-Fi[Bi]-fr.floating[vi],us=Fi[Bi]-fr.reference[Bi],Ee=await(Or.getOffsetParent==null?void 0:Or.getOffsetParent(Xe));let Y=Ee?Bi==="y"?Ee.clientHeight||0:Ee.clientWidth||0:0;Y===0&&(Y=fr.floating[vi]);const z=Lo/2-us/2,B=Si[Ko],le=Y-Xa[vi]-Si[So],Le=Y/2-Xa[vi]/2+z,Je=N(B,Le,le),Ct=(Ui==="start"?Si[Ko]:Si[So])>0&&Le!==Je&&fr.reference[vi]<=fr.floating[vi];return{[Bi]:Fi[Bi]-(Ct?Le<B?B-Le:le-Le:0),data:{[Bi]:Je,centerOffset:Le-Je}}}}),_={left:"right",right:"left",bottom:"top",top:"bottom"};function W(se){return se.replace(/left|right|bottom|top/g,ye=>_[ye])}function j(se,ye,Xe){Xe===void 0&&(Xe=!1);const yt=b(se),Wt=E(se),Qt=S(Wt);let wn=Wt==="x"?yt===(Xe?"end":"start")?"right":"left":yt==="start"?"bottom":"top";return ye.reference[Qt]>ye.floating[Qt]&&(wn=W(wn)),{main:wn,cross:W(wn)}}const re={start:"end",end:"start"};function X(se){return se.replace(/start|end/g,ye=>re[ye])}const Z=["top","right","bottom","left"],J=Z.reduce((se,ye)=>se.concat(ye,ye+"-start",ye+"-end"),[]),q=function(se){return se===void 0&&(se={}),{name:"autoPlacement",options:se,async fn(ye){var Xe,yt,Wt,Qt,wn;const{x:fr,y:Or,rects:Si,middlewareData:Fi,placement:Bi,platform:Ui,elements:vi}=ye,{alignment:Xa=null,allowedPlacements:Ko=J,autoAlignment:So=!0,...Lo}=se,us=function(br,ei,mi){return(br?[...mi.filter(Li=>b(Li)===br),...mi.filter(Li=>b(Li)!==br)]:mi.filter(Li=>y(Li)===Li)).filter(Li=>!br||b(Li)===br||!!ei&&X(Li)!==Li)}(Xa,So,Ko),Ee=await T(ye,Lo),Y=(Xe=(yt=Fi.autoPlacement)==null?void 0:yt.index)!=null?Xe:0,z=us[Y];if(z==null)return{};const{main:B,cross:le}=j(z,Si,await(Ui.isRTL==null?void 0:Ui.isRTL(vi.floating)));if(Bi!==z)return{x:fr,y:Or,reset:{placement:us[0]}};const Le=[Ee[y(z)],Ee[B],Ee[le]],Je=[...(Wt=(Qt=Fi.autoPlacement)==null?void 0:Qt.overflows)!=null?Wt:[],{placement:z,overflows:Le}],Ct=us[Y+1];if(Ct)return{data:{index:Y+1,overflows:Je},reset:{placement:Ct}};const Vt=Je.slice().sort((br,ei)=>br.overflows[0]-ei.overflows[0]),bn=(wn=Vt.find(br=>{let{overflows:ei}=br;return ei.every(mi=>mi<=0)}))==null?void 0:wn.placement,Hn=bn??Vt[0].placement;return Hn!==Bi?{data:{index:Y+1,overflows:Je},reset:{placement:Hn}}:{}}}},L=function(se){return se===void 0&&(se={}),{name:"flip",options:se,async fn(ye){var Xe;const{placement:yt,middlewareData:Wt,rects:Qt,initialPlacement:wn,platform:fr,elements:Or}=ye,{mainAxis:Si=!0,crossAxis:Fi=!0,fallbackPlacements:Bi,fallbackStrategy:Ui="bestFit",flipAlignment:vi=!0,...Xa}=se,Ko=y(yt),So=Bi||(Ko===wn||!vi?[W(wn)]:function(Le){const Je=W(Le);return[X(Le),Je,X(Je)]}(wn)),Lo=[wn,...So],us=await T(ye,Xa),Ee=[];let Y=((Xe=Wt.flip)==null?void 0:Xe.overflows)||[];if(Si&&Ee.push(us[Ko]),Fi){const{main:Le,cross:Je}=j(yt,Qt,await(fr.isRTL==null?void 0:fr.isRTL(Or.floating)));Ee.push(us[Le],us[Je])}if(Y=[...Y,{placement:yt,overflows:Ee}],!Ee.every(Le=>Le<=0)){var z,B;const Le=((z=(B=Wt.flip)==null?void 0:B.index)!=null?z:0)+1,Je=Lo[Le];if(Je)return{data:{index:Le,overflows:Y},reset:{placement:Je}};let Ct="bottom";switch(Ui){case"bestFit":{var le;const Vt=(le=Y.map(bn=>[bn,bn.overflows.filter(Hn=>Hn>0).reduce((Hn,br)=>Hn+br,0)]).sort((bn,Hn)=>bn[1]-Hn[1])[0])==null?void 0:le[0].placement;Vt&&(Ct=Vt);break}case"initialPlacement":Ct=wn}if(yt!==Ct)return{reset:{placement:Ct}}}return{}}}};function $(se,ye){return{top:se.top-ye.height,right:se.right-ye.width,bottom:se.bottom-ye.height,left:se.left-ye.width}}function k(se){return Z.some(ye=>se[ye]>=0)}const F=function(se){let{strategy:ye="referenceHidden",...Xe}=se===void 0?{}:se;return{name:"hide",async fn(yt){const{rects:Wt}=yt;switch(ye){case"referenceHidden":{const Qt=$(await T(yt,{...Xe,elementContext:"reference"}),Wt.reference);return{data:{referenceHiddenOffsets:Qt,referenceHidden:k(Qt)}}}case"escaped":{const Qt=$(await T(yt,{...Xe,altBoundary:!0}),Wt.floating);return{data:{escapedOffsets:Qt,escaped:k(Qt)}}}default:return{}}}}},V=function(se){return se===void 0&&(se=0),{name:"offset",options:se,async fn(ye){const{x:Xe,y:yt}=ye,Wt=await async function(Qt,wn){const{placement:fr,platform:Or,elements:Si}=Qt,Fi=await(Or.isRTL==null?void 0:Or.isRTL(Si.floating)),Bi=y(fr),Ui=b(fr),vi=E(fr)==="x",Xa=["left","top"].includes(Bi)?-1:1,Ko=Fi&&vi?-1:1,So=typeof wn=="function"?wn(Qt):wn;let{mainAxis:Lo,crossAxis:us,alignmentAxis:Ee}=typeof So=="number"?{mainAxis:So,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...So};return Ui&&typeof Ee=="number"&&(us=Ui==="end"?-1*Ee:Ee),vi?{x:us*Ko,y:Lo*Xa}:{x:Lo*Xa,y:us*Ko}}(ye,se);return{x:Xe+Wt.x,y:yt+Wt.y,data:Wt}}}};function pe(se){return se==="x"?"y":"x"}const ce=function(se){return se===void 0&&(se={}),{name:"shift",options:se,async fn(ye){const{x:Xe,y:yt,placement:Wt}=ye,{mainAxis:Qt=!0,crossAxis:wn=!1,limiter:fr={fn:So=>{let{x:Lo,y:us}=So;return{x:Lo,y:us}}},...Or}=se,Si={x:Xe,y:yt},Fi=await T(ye,Or),Bi=E(y(Wt)),Ui=pe(Bi);let vi=Si[Bi],Xa=Si[Ui];if(Qt){const So=Bi==="y"?"bottom":"right";vi=N(vi+Fi[Bi==="y"?"top":"left"],vi,vi-Fi[So])}if(wn){const So=Ui==="y"?"bottom":"right";Xa=N(Xa+Fi[Ui==="y"?"top":"left"],Xa,Xa-Fi[So])}const Ko=fr.fn({...ye,[Bi]:vi,[Ui]:Xa});return{...Ko,data:{x:Ko.x-Xe,y:Ko.y-yt}}}}},G=function(se){return se===void 0&&(se={}),{options:se,fn(ye){const{x:Xe,y:yt,placement:Wt,rects:Qt,middlewareData:wn}=ye,{offset:fr=0,mainAxis:Or=!0,crossAxis:Si=!0}=se,Fi={x:Xe,y:yt},Bi=E(Wt),Ui=pe(Bi);let vi=Fi[Bi],Xa=Fi[Ui];const Ko=typeof fr=="function"?fr(ye):fr,So=typeof Ko=="number"?{mainAxis:Ko,crossAxis:0}:{mainAxis:0,crossAxis:0,...Ko};if(Or){const z=Bi==="y"?"height":"width",B=Qt.reference[Bi]-Qt.floating[z]+So.mainAxis,le=Qt.reference[Bi]+Qt.reference[z]-So.mainAxis;vi<B?vi=B:vi>le&&(vi=le)}if(Si){var Lo,us,Ee,Y;const z=Bi==="y"?"width":"height",B=["top","left"].includes(y(Wt)),le=Qt.reference[Ui]-Qt.floating[z]+(B&&(Lo=(us=wn.offset)==null?void 0:us[Ui])!=null?Lo:0)+(B?0:So.crossAxis),Le=Qt.reference[Ui]+Qt.reference[z]+(B?0:(Ee=(Y=wn.offset)==null?void 0:Y[Ui])!=null?Ee:0)-(B?So.crossAxis:0);Xa<le?Xa=le:Xa>Le&&(Xa=Le)}return{[Bi]:vi,[Ui]:Xa}}}},te=function(se){return se===void 0&&(se={}),{name:"size",options:se,async fn(ye){const{placement:Xe,rects:yt,platform:Wt,elements:Qt}=ye,{apply:wn=()=>{},...fr}=se,Or=await T(ye,fr),Si=y(Xe),Fi=b(Xe);let Bi,Ui;Si==="top"||Si==="bottom"?(Bi=Si,Ui=Fi===(await(Wt.isRTL==null?void 0:Wt.isRTL(Qt.floating))?"start":"end")?"left":"right"):(Ui=Si,Bi=Fi==="end"?"top":"bottom");const vi=I(Or.left,0),Xa=I(Or.right,0),Ko=I(Or.top,0),So=I(Or.bottom,0),Lo={availableHeight:yt.floating.height-(["left","right"].includes(Xe)?2*(Ko!==0||So!==0?Ko+So:I(Or.top,Or.bottom)):Or[Bi]),availableWidth:yt.floating.width-(["top","bottom"].includes(Xe)?2*(vi!==0||Xa!==0?vi+Xa:I(Or.left,Or.right)):Or[Ui])};await wn({...ye,...Lo});const us=await Wt.getDimensions(Qt.floating);return yt.floating.width!==us.width||yt.floating.height!==us.height?{reset:{rects:!0}}:{}}}},ie=function(se){return se===void 0&&(se={}),{name:"inline",options:se,async fn(ye){var Xe;const{placement:yt,elements:Wt,rects:Qt,platform:wn,strategy:fr}=ye,{padding:Or=2,x:Si,y:Fi}=se,Bi=R(wn.convertOffsetParentRelativeRectToViewportRelativeRect?await wn.convertOffsetParentRelativeRectToViewportRelativeRect({rect:Qt.reference,offsetParent:await(wn.getOffsetParent==null?void 0:wn.getOffsetParent(Wt.floating)),strategy:fr}):Qt.reference),Ui=(Xe=await(wn.getClientRects==null?void 0:wn.getClientRects(Wt.reference)))!=null?Xe:[],vi=P(Or),Xa=await wn.getElementRects({reference:{getBoundingClientRect:function(){var Ko;if(Ui.length===2&&Ui[0].left>Ui[1].right&&Si!=null&&Fi!=null)return(Ko=Ui.find(So=>Si>So.left-vi.left&&Si<So.right+vi.right&&Fi>So.top-vi.top&&Fi<So.bottom+vi.bottom))!=null?Ko:Bi;if(Ui.length>=2){if(E(yt)==="x"){const B=Ui[0],le=Ui[Ui.length-1],Le=y(yt)==="top",Je=B.top,Ct=le.bottom,Vt=Le?B.left:le.left,bn=Le?B.right:le.right;return{top:Je,bottom:Ct,left:Vt,right:bn,width:bn-Vt,height:Ct-Je,x:Vt,y:Je}}const So=y(yt)==="left",Lo=I(...Ui.map(B=>B.right)),us=A(...Ui.map(B=>B.left)),Ee=Ui.filter(B=>So?B.left===us:B.right===Lo),Y=Ee[0].top,z=Ee[Ee.length-1].bottom;return{top:Y,bottom:z,left:us,right:Lo,width:Lo-us,height:z-Y,x:us,y:Y}}return Bi}},floating:Wt.floating,strategy:fr});return Qt.reference.x!==Xa.reference.x||Qt.reference.y!==Xa.reference.y||Qt.reference.width!==Xa.reference.width||Qt.reference.height!==Xa.reference.height?{reset:{rects:Xa}}:{}}}};function fe(se){return se&&se.document&&se.location&&se.alert&&se.setInterval}function Se(se){if(se==null)return window;if(!fe(se)){const ye=se.ownerDocument;return ye&&ye.defaultView||window}return se}function he(se){return Se(se).getComputedStyle(se)}function me(se){return fe(se)?"":se?(se.nodeName||"").toLowerCase():""}function _e(){const se=navigator.userAgentData;return se!=null&&se.brands?se.brands.map(ye=>ye.brand+"/"+ye.version).join(" "):navigator.userAgent}function we(se){return se instanceof Se(se).HTMLElement}function Ge(se){return se instanceof Se(se).Element}function ht(se){return typeof ShadowRoot>"u"?!1:se instanceof Se(se).ShadowRoot||se instanceof ShadowRoot}function nt(se){const{overflow:ye,overflowX:Xe,overflowY:yt,display:Wt}=he(se);return/auto|scroll|overlay|hidden/.test(ye+yt+Xe)&&!["inline","contents"].includes(Wt)}function Re(se){return["table","td","th"].includes(me(se))}function ue(se){const ye=/firefox/i.test(_e()),Xe=he(se);return Xe.transform!=="none"||Xe.perspective!=="none"||ye&&Xe.willChange==="filter"||ye&&!!Xe.filter&&Xe.filter!=="none"||["transform","perspective"].some(yt=>Xe.willChange.includes(yt))||["paint","layout","strict","content"].some(yt=>{const Wt=Xe.contain;return Wt!=null&&Wt.includes(yt)})}function ae(){return!/^((?!chrome|android).)*safari/i.test(_e())}function ve(se){return["html","body","#document"].includes(me(se))}const Me=Math.min,Ye=Math.max,qe=Math.round;function At(se,ye,Xe){var yt,Wt,Qt,wn;ye===void 0&&(ye=!1),Xe===void 0&&(Xe=!1);const fr=se.getBoundingClientRect();let Or=1,Si=1;ye&&we(se)&&(Or=se.offsetWidth>0&&qe(fr.width)/se.offsetWidth||1,Si=se.offsetHeight>0&&qe(fr.height)/se.offsetHeight||1);const Fi=Ge(se)?Se(se):window,Bi=!ae()&&Xe,Ui=(fr.left+(Bi&&(yt=(Wt=Fi.visualViewport)==null?void 0:Wt.offsetLeft)!=null?yt:0))/Or,vi=(fr.top+(Bi&&(Qt=(wn=Fi.visualViewport)==null?void 0:wn.offsetTop)!=null?Qt:0))/Si,Xa=fr.width/Or,Ko=fr.height/Si;return{width:Xa,height:Ko,top:vi,right:Ui+Xa,bottom:vi+Ko,left:Ui,x:Ui,y:vi}}function It(se){return(ye=se,(ye instanceof Se(ye).Node?se.ownerDocument:se.document)||window.document).documentElement;var ye}function Ce(se){return Ge(se)?{scrollLeft:se.scrollLeft,scrollTop:se.scrollTop}:{scrollLeft:se.pageXOffset,scrollTop:se.pageYOffset}}function Ae(se){return At(It(se)).left+Ce(se).scrollLeft}function $e(se,ye,Xe){const yt=we(ye),Wt=It(ye),Qt=At(se,yt&&function(Or){const Si=At(Or);return qe(Si.width)!==Or.offsetWidth||qe(Si.height)!==Or.offsetHeight}(ye),Xe==="fixed");let wn={scrollLeft:0,scrollTop:0};const fr={x:0,y:0};if(yt||!yt&&Xe!=="fixed")if((me(ye)!=="body"||nt(Wt))&&(wn=Ce(ye)),we(ye)){const Or=At(ye,!0);fr.x=Or.x+ye.clientLeft,fr.y=Or.y+ye.clientTop}else Wt&&(fr.x=Ae(Wt));return{x:Qt.left+wn.scrollLeft-fr.x,y:Qt.top+wn.scrollTop-fr.y,width:Qt.width,height:Qt.height}}function tt(se){return me(se)==="html"?se:se.assignedSlot||se.parentNode||(ht(se)?se.host:null)||It(se)}function ke(se){return we(se)&&he(se).position!=="fixed"?se.offsetParent:null}function Oe(se){const ye=Se(se);let Xe=ke(se);for(;Xe&&Re(Xe)&&he(Xe).position==="static";)Xe=ke(Xe);return Xe&&(me(Xe)==="html"||me(Xe)==="body"&&he(Xe).position==="static"&&!ue(Xe))?ye:Xe||function(yt){let Wt=tt(yt);for(ht(Wt)&&(Wt=Wt.host);we(Wt)&&!ve(Wt);){if(ue(Wt))return Wt;{const Qt=Wt.parentNode;Wt=ht(Qt)?Qt.host:Qt}}return null}(se)||ye}function je(se){if(we(se))return{width:se.offsetWidth,height:se.offsetHeight};const ye=At(se);return{width:ye.width,height:ye.height}}function Et(se){const ye=tt(se);return ve(ye)?se.ownerDocument.body:we(ye)&&nt(ye)?ye:Et(ye)}function ct(se,ye){var Xe;ye===void 0&&(ye=[]);const yt=Et(se),Wt=yt===((Xe=se.ownerDocument)==null?void 0:Xe.body),Qt=Se(yt),wn=Wt?[Qt].concat(Qt.visualViewport||[],nt(yt)?yt:[]):yt,fr=ye.concat(wn);return Wt?fr:fr.concat(ct(wn))}function ut(se,ye,Xe){return ye==="viewport"?R(function(yt,Wt){const Qt=Se(yt),wn=It(yt),fr=Qt.visualViewport;let Or=wn.clientWidth,Si=wn.clientHeight,Fi=0,Bi=0;if(fr){Or=fr.width,Si=fr.height;const Ui=ae();(Ui||!Ui&&Wt==="fixed")&&(Fi=fr.offsetLeft,Bi=fr.offsetTop)}return{width:Or,height:Si,x:Fi,y:Bi}}(se,Xe)):Ge(ye)?function(yt,Wt){const Qt=At(yt,!1,Wt==="fixed"),wn=Qt.top+yt.clientTop,fr=Qt.left+yt.clientLeft;return{top:wn,left:fr,x:fr,y:wn,right:fr+yt.clientWidth,bottom:wn+yt.clientHeight,width:yt.clientWidth,height:yt.clientHeight}}(ye,Xe):R(function(yt){var Wt;const Qt=It(yt),wn=Ce(yt),fr=(Wt=yt.ownerDocument)==null?void 0:Wt.body,Or=Ye(Qt.scrollWidth,Qt.clientWidth,fr?fr.scrollWidth:0,fr?fr.clientWidth:0),Si=Ye(Qt.scrollHeight,Qt.clientHeight,fr?fr.scrollHeight:0,fr?fr.clientHeight:0);let Fi=-wn.scrollLeft+Ae(yt);const Bi=-wn.scrollTop;return he(fr||Qt).direction==="rtl"&&(Fi+=Ye(Qt.clientWidth,fr?fr.clientWidth:0)-Or),{width:Or,height:Si,x:Fi,y:Bi}}(It(se)))}function Ne(se){const ye=ct(se),Xe=function(Wt,Qt){let wn=Wt;for(;wn&&!ve(wn)&&!Qt.includes(wn)&&(!Ge(wn)||!["absolute","fixed"].includes(he(wn).position));){const fr=tt(wn);wn=ht(fr)?fr.host:fr}return wn}(se,ye);let yt=null;if(Xe&&we(Xe)){const Wt=Oe(Xe);nt(Xe)?yt=Xe:we(Wt)&&(yt=Wt)}return Ge(yt)?ye.filter(Wt=>yt&&Ge(Wt)&&function(Qt,wn){const fr=wn.getRootNode==null?void 0:wn.getRootNode();if(Qt.contains(wn))return!0;if(fr&&ht(fr)){let Or=wn;do{if(Or&&Qt===Or)return!0;Or=Or.parentNode||Or.host}while(Or)}return!1}(Wt,yt)&&me(Wt)!=="body"):[]}const mt={getClippingRect:function(se){let{element:ye,boundary:Xe,rootBoundary:yt,strategy:Wt}=se;const Qt=[...Xe==="clippingAncestors"?Ne(ye):[].concat(Xe),yt],wn=Qt[0],fr=Qt.reduce((Or,Si)=>{const Fi=ut(ye,Si,Wt);return Or.top=Ye(Fi.top,Or.top),Or.right=Me(Fi.right,Or.right),Or.bottom=Me(Fi.bottom,Or.bottom),Or.left=Ye(Fi.left,Or.left),Or},ut(ye,wn,Wt));return{width:fr.right-fr.left,height:fr.bottom-fr.top,x:fr.left,y:fr.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(se){let{rect:ye,offsetParent:Xe,strategy:yt}=se;const Wt=we(Xe),Qt=It(Xe);if(Xe===Qt)return ye;let wn={scrollLeft:0,scrollTop:0};const fr={x:0,y:0};if((Wt||!Wt&&yt!=="fixed")&&((me(Xe)!=="body"||nt(Qt))&&(wn=Ce(Xe)),we(Xe))){const Or=At(Xe,!0);fr.x=Or.x+Xe.clientLeft,fr.y=Or.y+Xe.clientTop}return{...ye,x:ye.x-wn.scrollLeft+fr.x,y:ye.y-wn.scrollTop+fr.y}},isElement:Ge,getDimensions:je,getOffsetParent:Oe,getDocumentElement:It,getElementRects:se=>{let{reference:ye,floating:Xe,strategy:yt}=se;return{reference:$e(ye,Oe(Xe),yt),floating:{...je(Xe),x:0,y:0}}},getClientRects:se=>Array.from(se.getClientRects()),isRTL:se=>he(se).direction==="rtl"};function bt(se,ye,Xe,yt){yt===void 0&&(yt={});const{ancestorScroll:Wt=!0,ancestorResize:Qt=!0,elementResize:wn=!0,animationFrame:fr=!1}=yt,Or=Wt&&!fr,Si=Or||Qt?[...Ge(se)?ct(se):se.contextElement?ct(se.contextElement):[],...ct(ye)]:[];Si.forEach(vi=>{Or&&vi.addEventListener("scroll",Xe,{passive:!0}),Qt&&vi.addEventListener("resize",Xe)});let Fi,Bi=null;if(wn){let vi=!0;Bi=new ResizeObserver(()=>{vi||Xe(),vi=!1}),Ge(se)&&!fr&&Bi.observe(se),Ge(se)||!se.contextElement||fr||Bi.observe(se.contextElement),Bi.observe(ye)}let Ui=fr?At(se):null;return fr&&function vi(){const Xa=At(se);!Ui||Xa.x===Ui.x&&Xa.y===Ui.y&&Xa.width===Ui.width&&Xa.height===Ui.height||Xe(),Ui=Xa,Fi=requestAnimationFrame(vi)}(),Xe(),()=>{var vi;Si.forEach(Xa=>{Or&&Xa.removeEventListener("scroll",Xe),Qt&&Xa.removeEventListener("resize",Xe)}),(vi=Bi)==null||vi.disconnect(),Bi=null,fr&&cancelAnimationFrame(Fi)}}const Gt=(se,ye,Xe)=>e(se,ye,{platform:mt,...Xe});var hn=t(75786),Yt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Bt=function(){};function Lt(se,ye){return ye?ye[0]==="-"?se+ye:se+"__"+ye:se}function zt(se,ye){for(var Xe=arguments.length,yt=new Array(Xe>2?Xe-2:0),Wt=2;Wt<Xe;Wt++)yt[Wt-2]=arguments[Wt];var Qt=[].concat(yt);if(ye&&se)for(var wn in ye)ye.hasOwnProperty(wn)&&ye[wn]&&Qt.push("".concat(Lt(se,wn)));return Qt.filter(function(fr){return fr}).map(function(fr){return String(fr).trim()}).join(" ")}var Kt=function(ye){return Zt(ye)?ye.filter(Boolean):(0,h.Z)(ye)==="object"&&ye!==null?[ye]:[]},vt=function(ye){ye.className,ye.clearValue,ye.cx,ye.getStyles,ye.getClassNames,ye.getValue,ye.hasValue,ye.isMulti,ye.isRtl,ye.options,ye.selectOption,ye.selectProps,ye.setValue,ye.theme;var Xe=(0,l.Z)(ye,Yt);return(0,i.Z)({},Xe)},Ve=function(ye,Xe,yt){var Wt=ye.cx,Qt=ye.getStyles,wn=ye.getClassNames,fr=ye.className;return{css:Qt(Xe,ye),className:Wt(yt??{},wn(Xe,ye),fr)}};function lt(se,ye,Xe){if(Xe){var yt=Xe(se,ye);if(typeof yt=="string")return yt}return se}function at(se){return[document.documentElement,document.body,window].indexOf(se)>-1}function Xt(se){return at(se)?window.innerHeight:se.clientHeight}function rt(se){return at(se)?window.pageYOffset:se.scrollTop}function Rt(se,ye){if(at(se)){window.scrollTo(0,ye);return}se.scrollTop=ye}function rn(se){var ye=getComputedStyle(se),Xe=ye.position==="absolute",yt=/(auto|scroll)/;if(ye.position==="fixed")return document.documentElement;for(var Wt=se;Wt=Wt.parentElement;)if(ye=getComputedStyle(Wt),!(Xe&&ye.position==="static")&&yt.test(ye.overflow+ye.overflowY+ye.overflowX))return Wt;return document.documentElement}function sn(se,ye,Xe,yt){return Xe*((se=se/yt-1)*se*se+1)+ye}function Jn(se,ye){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,yt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Bt,Wt=rt(se),Qt=ye-Wt,wn=10,fr=0;function Or(){fr+=wn;var Si=sn(fr,Wt,Qt,Xe);Rt(se,Si),fr<Xe?window.requestAnimationFrame(Or):yt(se)}Or()}function ze(se,ye){var Xe=se.getBoundingClientRect(),yt=ye.getBoundingClientRect(),Wt=ye.offsetHeight/3;yt.bottom+Wt>Xe.bottom?Rt(se,Math.min(ye.offsetTop+ye.clientHeight-se.offsetHeight+Wt,se.scrollHeight)):yt.top-Wt<Xe.top&&Rt(se,Math.max(ye.offsetTop-Wt,0))}function st(se){var ye=se.getBoundingClientRect();return{bottom:ye.bottom,height:ye.height,left:ye.left,right:ye.right,top:ye.top,width:ye.width}}function en(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function wt(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Ke=!1,Ut={get passive(){return Ke=!0}},on=typeof window<"u"?window:{};on.addEventListener&&on.removeEventListener&&(on.addEventListener("p",Bt,Ut),on.removeEventListener("p",Bt,!1));var Tn=Ke;function An(se){return se!=null}function Zt(se){return Array.isArray(se)}function ot(se,ye,Xe){return se?ye:Xe}function We(se){return se}function Ft(se){return se}var it=function(ye){for(var Xe=arguments.length,yt=new Array(Xe>1?Xe-1:0),Wt=1;Wt<Xe;Wt++)yt[Wt-1]=arguments[Wt];var Qt=Object.entries(ye).filter(function(wn){var fr=(0,v.Z)(wn,1),Or=fr[0];return!yt.includes(Or)});return Qt.reduce(function(wn,fr){var Or=(0,v.Z)(fr,2),Si=Or[0],Fi=Or[1];return wn[Si]=Fi,wn},{})};function qt(se){var ye=se.maxHeight,Xe=se.menuEl,yt=se.minHeight,Wt=se.placement,Qt=se.shouldScroll,wn=se.isFixedPosition,fr=se.controlHeight,Or=rn(Xe),Si={placement:"bottom",maxHeight:ye};if(!Xe||!Xe.offsetParent)return Si;var Fi=Or.getBoundingClientRect(),Bi=Fi.height,Ui=Xe.getBoundingClientRect(),vi=Ui.bottom,Xa=Ui.height,Ko=Ui.top,So=Xe.offsetParent.getBoundingClientRect(),Lo=So.top,us=wn?window.innerHeight:Xt(Or),Ee=rt(Or),Y=parseInt(getComputedStyle(Xe).marginBottom,10),z=parseInt(getComputedStyle(Xe).marginTop,10),B=Lo-z,le=us-Ko,Le=B+Ee,Je=Bi-Ee-Ko,Ct=vi-us+Ee+Y,Vt=Ee+Ko-z,bn=160;switch(Wt){case"auto":case"bottom":if(le>=Xa)return{placement:"bottom",maxHeight:ye};if(Je>=Xa&&!wn)return Qt&&Jn(Or,Ct,bn),{placement:"bottom",maxHeight:ye};if(!wn&&Je>=yt||wn&&le>=yt){Qt&&Jn(Or,Ct,bn);var Hn=wn?le-Y:Je-Y;return{placement:"bottom",maxHeight:Hn}}if(Wt==="auto"||wn){var br=ye,ei=wn?B:Le;return ei>=yt&&(br=Math.min(ei-Y-fr,ye)),{placement:"top",maxHeight:br}}if(Wt==="bottom")return Qt&&Rt(Or,Ct),{placement:"bottom",maxHeight:ye};break;case"top":if(B>=Xa)return{placement:"top",maxHeight:ye};if(Le>=Xa&&!wn)return Qt&&Jn(Or,Vt,bn),{placement:"top",maxHeight:ye};if(!wn&&Le>=yt||wn&&B>=yt){var mi=ye;return(!wn&&Le>=yt||wn&&B>=yt)&&(mi=wn?B-z:Le-z),Qt&&Jn(Or,Vt,bn),{placement:"top",maxHeight:mi}}return{placement:"bottom",maxHeight:ye};default:throw new Error('Invalid placement provided "'.concat(Wt,'".'))}return Si}function vn(se){var ye={bottom:"top",top:"bottom"};return se?ye[se]:"bottom"}var fn=function(ye){return ye==="auto"?"bottom":ye},Tt=function(ye,Xe){var yt,Wt=ye.placement,Qt=ye.theme,wn=Qt.borderRadius,fr=Qt.spacing,Or=Qt.colors;return(0,i.Z)((yt={label:"menu"},(0,d.Z)(yt,vn(Wt),"100%"),(0,d.Z)(yt,"position","absolute"),(0,d.Z)(yt,"width","100%"),(0,d.Z)(yt,"zIndex",1),yt),Xe?{}:{backgroundColor:Or.neutral0,borderRadius:wn,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:fr.menuGutter,marginTop:fr.menuGutter})},dn=(0,f.createContext)(null),mn=function(ye){var Xe=ye.children,yt=ye.minMenuHeight,Wt=ye.maxMenuHeight,Qt=ye.menuPlacement,wn=ye.menuPosition,fr=ye.menuShouldScrollIntoView,Or=ye.theme,Si=(0,f.useContext)(dn)||{},Fi=Si.setPortalPlacement,Bi=(0,f.useRef)(null),Ui=(0,f.useState)(Wt),vi=(0,v.Z)(Ui,2),Xa=vi[0],Ko=vi[1],So=(0,f.useState)(null),Lo=(0,v.Z)(So,2),us=Lo[0],Ee=Lo[1],Y=Or.spacing.controlHeight;return(0,hn.Z)(function(){var z=Bi.current;if(z){var B=wn==="fixed",le=fr&&!B,Le=qt({maxHeight:Wt,menuEl:z,minHeight:yt,placement:Qt,shouldScroll:le,isFixedPosition:B,controlHeight:Y});Ko(Le.maxHeight),Ee(Le.placement),Fi?.(Le.placement)}},[Wt,Qt,wn,fr,yt,Fi,Y]),Xe({ref:Bi,placerProps:(0,i.Z)((0,i.Z)({},ye),{},{placement:us||fn(Qt),maxHeight:Xa})})},Kn=function(ye){var Xe=ye.children,yt=ye.innerRef,Wt=ye.innerProps;return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"menu",{menu:!0}),{ref:yt},Wt),Xe)},Dn=function(ye,Xe){var yt=ye.maxHeight,Wt=ye.theme.spacing.baseUnit;return(0,i.Z)({maxHeight:yt,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Xe?{}:{paddingBottom:Wt,paddingTop:Wt})},Vn=function(ye){var Xe=ye.children,yt=ye.innerProps,Wt=ye.innerRef,Qt=ye.isMulti;return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"menuList",{"menu-list":!0,"menu-list--is-multi":Qt}),{ref:Wt},yt),Xe)},or=function(ye,Xe){var yt=ye.theme,Wt=yt.spacing.baseUnit,Qt=yt.colors;return(0,i.Z)({textAlign:"center"},Xe?{}:{color:Qt.neutral40,padding:"".concat(Wt*2,"px ").concat(Wt*3,"px")})},Qr=or,ni=or,yr=function(ye){var Xe=ye.children,yt=ye.innerProps;return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),yt),Xe)};yr.defaultProps={children:"No options"};var si=function(ye){var Xe=ye.children,yt=ye.innerProps;return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),yt),Xe)};si.defaultProps={children:"Loading..."};var Yr=function(ye){var Xe=ye.rect,yt=ye.offset,Wt=ye.position;return{left:Xe.left,position:Wt,top:yt,width:Xe.width,zIndex:1}},Ci=function(ye){var Xe=ye.appendTo,yt=ye.children,Wt=ye.controlElement,Qt=ye.innerProps,wn=ye.menuPlacement,fr=ye.menuPosition,Or=(0,f.useRef)(null),Si=(0,f.useRef)(null),Fi=(0,f.useState)(fn(wn)),Bi=(0,v.Z)(Fi,2),Ui=Bi[0],vi=Bi[1],Xa=(0,f.useMemo)(function(){return{setPortalPlacement:vi}},[]),Ko=(0,f.useState)(null),So=(0,v.Z)(Ko,2),Lo=So[0],us=So[1],Ee=(0,f.useCallback)(function(){if(Wt){var le=st(Wt),Le=fr==="fixed"?0:window.pageYOffset,Je=le[Ui]+Le;(Je!==Lo?.offset||le.left!==Lo?.rect.left||le.width!==Lo?.rect.width)&&us({offset:Je,rect:le})}},[Wt,fr,Ui,Lo?.offset,Lo?.rect.left,Lo?.rect.width]);(0,hn.Z)(function(){Ee()},[Ee]);var Y=(0,f.useCallback)(function(){typeof Si.current=="function"&&(Si.current(),Si.current=null),Wt&&Or.current&&(Si.current=bt(Wt,Or.current,Ee,{elementResize:"ResizeObserver"in window}))},[Wt,Ee]);(0,hn.Z)(function(){Y()},[Y]);var z=(0,f.useCallback)(function(le){Or.current=le,Y()},[Y]);if(!Xe&&fr!=="fixed"||!Lo)return null;var B=(0,u.jsx)("div",(0,s.Z)({ref:z},Ve((0,i.Z)((0,i.Z)({},ye),{},{offset:Lo.offset,position:fr,rect:Lo.rect}),"menuPortal",{"menu-portal":!0}),Qt),yt);return(0,u.jsx)(dn.Provider,{value:Xa},Xe?(0,g.createPortal)(B,Xe):B)},Ni=function(ye){var Xe=ye.isDisabled,yt=ye.isRtl;return{label:"container",direction:yt?"rtl":void 0,pointerEvents:Xe?"none":void 0,position:"relative"}},fa=function(ye){var Xe=ye.children,yt=ye.innerProps,Wt=ye.isDisabled,Qt=ye.isRtl;return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"container",{"--is-disabled":Wt,"--is-rtl":Qt}),yt),Xe)},ha=function(ye,Xe){var yt=ye.theme.spacing,Wt=ye.isMulti,Qt=ye.hasValue,wn=ye.selectProps.controlShouldRenderValue;return(0,i.Z)({alignItems:"center",display:Wt&&Qt&&wn?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},Xe?{}:{padding:"".concat(yt.baseUnit/2,"px ").concat(yt.baseUnit*2,"px")})},Ca=function(ye){var Xe=ye.children,yt=ye.innerProps,Wt=ye.isMulti,Qt=ye.hasValue;return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"valueContainer",{"value-container":!0,"value-container--is-multi":Wt,"value-container--has-value":Qt}),yt),Xe)},li=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},la=function(ye){var Xe=ye.children,yt=ye.innerProps;return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"indicatorsContainer",{indicators:!0}),yt),Xe)},Oa,wa=["size"];function vo(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Qn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},_r=function(ye){var Xe=ye.size,yt=(0,l.Z)(ye,wa);return(0,u.jsx)("svg",(0,s.Z)({height:Xe,width:Xe,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Qn},yt))},$r=function(ye){return(0,u.jsx)(_r,(0,s.Z)({size:20},ye),(0,u.jsx)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ti=function(ye){return(0,u.jsx)(_r,(0,s.Z)({size:20},ye),(0,u.jsx)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},xt=function(ye,Xe){var yt=ye.isFocused,Wt=ye.theme,Qt=Wt.spacing.baseUnit,wn=Wt.colors;return(0,i.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},Xe?{}:{color:yt?wn.neutral60:wn.neutral20,padding:Qt*2,":hover":{color:yt?wn.neutral80:wn.neutral40}})},On=xt,Zn=function(ye){var Xe=ye.children,yt=ye.innerProps;return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),yt),Xe||(0,u.jsx)(Ti,null))},Ur=xt,En=function(ye){var Xe=ye.children,yt=ye.innerProps;return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"clearIndicator",{indicator:!0,"clear-indicator":!0}),yt),Xe||(0,u.jsx)($r,null))},ln=function(ye,Xe){var yt=ye.isDisabled,Wt=ye.theme,Qt=Wt.spacing.baseUnit,wn=Wt.colors;return(0,i.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},Xe?{}:{backgroundColor:yt?wn.neutral10:wn.neutral20,marginBottom:Qt*2,marginTop:Qt*2})},jn=function(ye){var Xe=ye.innerProps;return(0,u.jsx)("span",(0,s.Z)({},Xe,Ve(ye,"indicatorSeparator",{"indicator-separator":!0})))},rr=(0,u.keyframes)(Oa||(Oa=p([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } `]))),Mr=function(ye,Xe){var yt=ye.isFocused,Wt=ye.size,Qt=ye.theme,wn=Qt.colors,fr=Qt.spacing.baseUnit;return(0,i.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:Wt,lineHeight:1,marginRight:Wt,textAlign:"center",verticalAlign:"middle"},Xe?{}:{color:yt?wn.neutral60:wn.neutral20,padding:fr*2})},Ir=function(ye){var Xe=ye.delay,yt=ye.offset;return(0,u.jsx)("span",{css:(0,u.css)({animation:"".concat(rr," 1s ease-in-out ").concat(Xe,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:yt?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Zr=function(ye){var Xe=ye.innerProps,yt=ye.isRtl;return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),Xe),(0,u.jsx)(Ir,{delay:0,offset:yt}),(0,u.jsx)(Ir,{delay:160,offset:!0}),(0,u.jsx)(Ir,{delay:320,offset:!yt}))};Zr.defaultProps={size:4};var lr=function(ye,Xe){var yt=ye.isDisabled,Wt=ye.isFocused,Qt=ye.theme,wn=Qt.colors,fr=Qt.borderRadius,Or=Qt.spacing;return(0,i.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:Or.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},Xe?{}:{backgroundColor:yt?wn.neutral5:wn.neutral0,borderColor:yt?wn.neutral10:Wt?wn.primary:wn.neutral20,borderRadius:fr,borderStyle:"solid",borderWidth:1,boxShadow:Wt?"0 0 0 1px ".concat(wn.primary):void 0,"&:hover":{borderColor:Wt?wn.primary:wn.neutral30}})},Jr=function(ye){var Xe=ye.children,yt=ye.isDisabled,Wt=ye.isFocused,Qt=ye.innerRef,wn=ye.innerProps,fr=ye.menuIsOpen;return(0,u.jsx)("div",(0,s.Z)({ref:Qt},Ve(ye,"control",{control:!0,"control--is-disabled":yt,"control--is-focused":Wt,"control--menu-is-open":fr}),wn),Xe)},pi=["data"],Ri=function(ye,Xe){var yt=ye.theme.spacing;return Xe?{}:{paddingBottom:yt.baseUnit*2,paddingTop:yt.baseUnit*2}},Ki=function(ye){var Xe=ye.children,yt=ye.cx,Wt=ye.getStyles,Qt=ye.getClassNames,wn=ye.Heading,fr=ye.headingProps,Or=ye.innerProps,Si=ye.label,Fi=ye.theme,Bi=ye.selectProps;return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"group",{group:!0}),Or),(0,u.jsx)(wn,(0,s.Z)({},fr,{selectProps:Bi,theme:Fi,getStyles:Wt,getClassNames:Qt,cx:yt}),Si),(0,u.jsx)("div",null,Xe))},ia=function(ye,Xe){var yt=ye.theme,Wt=yt.colors,Qt=yt.spacing;return(0,i.Z)({label:"group",cursor:"default",display:"block"},Xe?{}:{color:Wt.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:Qt.baseUnit*3,paddingRight:Qt.baseUnit*3,textTransform:"uppercase"})},Da=function(ye){var Xe=vt(ye);Xe.data;var yt=(0,l.Z)(Xe,pi);return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"groupHeading",{"group-heading":!0}),yt))},to=["innerRef","isDisabled","isHidden","inputClassName"],ao=function(ye,Xe){var yt=ye.isDisabled,Wt=ye.value,Qt=ye.theme,wn=Qt.spacing,fr=Qt.colors;return(0,i.Z)((0,i.Z)({visibility:yt?"hidden":"visible",transform:Wt?"translateZ(0)":""},jo),Xe?{}:{margin:wn.baseUnit/2,paddingBottom:wn.baseUnit/2,paddingTop:wn.baseUnit/2,color:fr.neutral80})},Bo={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},jo={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,i.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Bo)},Jo=function(ye){return(0,i.Z)({label:"input",color:"inherit",background:0,opacity:ye?0:1,width:"100%"},Bo)},Go=function(ye){var Xe=ye.cx,yt=ye.value,Wt=vt(ye),Qt=Wt.innerRef,wn=Wt.isDisabled,fr=Wt.isHidden,Or=Wt.inputClassName,Si=(0,l.Z)(Wt,to);return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"input",{"input-container":!0}),{"data-value":yt||""}),(0,u.jsx)("input",(0,s.Z)({className:Xe({input:!0},Or),ref:Qt,style:Jo(fr),disabled:wn},Si)))},wr=function(ye,Xe){var yt=ye.theme,Wt=yt.spacing,Qt=yt.borderRadius,wn=yt.colors;return(0,i.Z)({label:"multiValue",display:"flex",minWidth:0},Xe?{}:{backgroundColor:wn.neutral10,borderRadius:Qt/2,margin:Wt.baseUnit/2})},qi=function(ye,Xe){var yt=ye.theme,Wt=yt.borderRadius,Qt=yt.colors,wn=ye.cropWithEllipsis;return(0,i.Z)({overflow:"hidden",textOverflow:wn||wn===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},Xe?{}:{borderRadius:Wt/2,color:Qt.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},ja=function(ye,Xe){var yt=ye.theme,Wt=yt.spacing,Qt=yt.borderRadius,wn=yt.colors,fr=ye.isFocused;return(0,i.Z)({alignItems:"center",display:"flex"},Xe?{}:{borderRadius:Qt/2,backgroundColor:fr?wn.dangerLight:void 0,paddingLeft:Wt.baseUnit,paddingRight:Wt.baseUnit,":hover":{backgroundColor:wn.dangerLight,color:wn.danger}})},uo=function(ye){var Xe=ye.children,yt=ye.innerProps;return(0,u.jsx)("div",yt,Xe)},wi=uo,ai=uo;function za(se){var ye=se.children,Xe=se.innerProps;return(0,u.jsx)("div",(0,s.Z)({role:"button"},Xe),ye||(0,u.jsx)($r,{size:14}))}var Mt=function(ye){var Xe=ye.children,yt=ye.components,Wt=ye.data,Qt=ye.innerProps,wn=ye.isDisabled,fr=ye.removeProps,Or=ye.selectProps,Si=yt.Container,Fi=yt.Label,Bi=yt.Remove;return(0,u.jsx)(Si,{data:Wt,innerProps:(0,i.Z)((0,i.Z)({},Ve(ye,"multiValue",{"multi-value":!0,"multi-value--is-disabled":wn})),Qt),selectProps:Or},(0,u.jsx)(Fi,{data:Wt,innerProps:(0,i.Z)({},Ve(ye,"multiValueLabel",{"multi-value__label":!0})),selectProps:Or},Xe),(0,u.jsx)(Bi,{data:Wt,innerProps:(0,i.Z)((0,i.Z)({},Ve(ye,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(Xe||"option")},fr),selectProps:Or}))},Gn=function(ye,Xe){var yt=ye.isDisabled,Wt=ye.isFocused,Qt=ye.isSelected,wn=ye.theme,fr=wn.spacing,Or=wn.colors;return(0,i.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},Xe?{}:{backgroundColor:Qt?Or.primary:Wt?Or.primary25:"transparent",color:yt?Or.neutral20:Qt?Or.neutral0:"inherit",padding:"".concat(fr.baseUnit*2,"px ").concat(fr.baseUnit*3,"px"),":active":{backgroundColor:yt?void 0:Qt?Or.primary:Or.primary50}})},qn=function(ye){var Xe=ye.children,yt=ye.isDisabled,Wt=ye.isFocused,Qt=ye.isSelected,wn=ye.innerRef,fr=ye.innerProps;return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"option",{option:!0,"option--is-disabled":yt,"option--is-focused":Wt,"option--is-selected":Qt}),{ref:wn,"aria-disabled":yt},fr),Xe)},Fr=function(ye,Xe){var yt=ye.theme,Wt=yt.spacing,Qt=yt.colors;return(0,i.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},Xe?{}:{color:Qt.neutral50,marginLeft:Wt.baseUnit/2,marginRight:Wt.baseUnit/2})},Ei=function(ye){var Xe=ye.children,yt=ye.innerProps;return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"placeholder",{placeholder:!0}),yt),Xe)},ii=function(ye,Xe){var yt=ye.isDisabled,Wt=ye.theme,Qt=Wt.spacing,wn=Wt.colors;return(0,i.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Xe?{}:{color:yt?wn.neutral40:wn.neutral80,marginLeft:Qt.baseUnit/2,marginRight:Qt.baseUnit/2})},Wi=function(ye){var Xe=ye.children,yt=ye.isDisabled,Wt=ye.innerProps;return(0,u.jsx)("div",(0,s.Z)({},Ve(ye,"singleValue",{"single-value":!0,"single-value--is-disabled":yt}),Wt),Xe)},Ya={ClearIndicator:En,Control:Jr,DropdownIndicator:Zn,DownChevron:Ti,CrossIcon:$r,Group:Ki,GroupHeading:Da,IndicatorsContainer:la,IndicatorSeparator:jn,Input:Go,LoadingIndicator:Zr,Menu:Kn,MenuList:Vn,MenuPortal:Ci,LoadingMessage:si,NoOptionsMessage:yr,MultiValue:Mt,MultiValueContainer:wi,MultiValueLabel:ai,MultiValueRemove:za,Option:qn,Placeholder:Ei,SelectContainer:fa,SingleValue:Wi,ValueContainer:Ca},qa=function(ye){return(0,i.Z)((0,i.Z)({},Ya),ye.components)}},98330:(C,c,t)=>{"use strict";t.d(c,{ZP:()=>Jn});var i=t(90621),s=t(94285),u=t(27702),v=t(65890),l="-ms-",h="-moz-",p="-webkit-",d="comm",f="rule",g="decl",y="@page",b="@media",E="@import",S="@charset",w="@viewport",x="@supports",P="@document",R="@namespace",T="@keyframes",A="@font-face",I="@counter-style",N="@font-feature-values",K=Math.abs,_=String.fromCharCode;function W(ze,st){return(((st<<2^J(ze,0))<<2^J(ze,1))<<2^J(ze,2))<<2^J(ze,3)}function j(ze){return ze.trim()}function re(ze,st){return(ze=st.exec(ze))?ze[0]:ze}function X(ze,st,en){return ze.replace(st,en)}function Z(ze,st){return ze.indexOf(st)}function J(ze,st){return ze.charCodeAt(st)|0}function q(ze,st,en){return ze.slice(st,en)}function L(ze){return ze.length}function $(ze){return ze.length}function k(ze,st){return st.push(ze),ze}function F(ze,st){return ze.map(st).join("")}var V=1,pe=1,ce=0,G=0,te=0,ie="";function fe(ze,st,en,wt,Ke,Ut,on){return{value:ze,root:st,parent:en,type:wt,props:Ke,children:Ut,line:V,column:pe,length:on,return:""}}function Se(ze,st,en){return fe(ze,st.root,st.parent,en,st.props,st.children,0)}function he(){return te}function me(){return te=G>0?charat(ie,--G):0,pe--,te===10&&(pe=1,V--),te}function _e(){return te=G<ce?charat(ie,G++):0,pe++,te===10&&(pe=1,V++),te}function we(){return charat(ie,G)}function Ge(){return G}function ht(ze,st){return substr(ie,ze,st)}function nt(ze){switch(ze){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Re(ze){return V=pe=1,ce=strlen(ie=ze),G=0,[]}function ue(ze){return ie="",ze}function ae(ze){return trim(ht(G-1,At(ze===91?ze+2:ze===40?ze+1:ze)))}function ve(ze){return ue(Ye(Re(ze)))}function Me(ze){for(;(te=we())&&te<33;)_e();return nt(ze)>2||nt(te)>3?"":" "}function Ye(ze){for(;_e();)switch(nt(te)){case 0:append(Ce(G-1),ze);break;case 2:append(ae(te),ze);break;default:append(from(te),ze)}return ze}function qe(ze,st){for(;--st&&_e()&&!(te<48||te>102||te>57&&te<65||te>70&&te<97););return ht(ze,Ge()+(st<6&&we()==32&&_e()==32))}function At(ze){for(;_e();)switch(te){case ze:return G;case 34:case 39:return At(ze===34||ze===39?ze:te);case 40:ze===41&&At(ze);break;case 92:_e();break}return G}function It(ze,st){for(;_e()&&ze+te!==47+10;)if(ze+te===42+42&&we()===47)break;return"/*"+ht(st,G-1)+"*"+from(ze===47?ze:_e())}function Ce(ze){for(;!nt(we());)_e();return ht(ze,G)}function Ae(ze,st){for(var en="",wt=$(ze),Ke=0;Ke<wt;Ke++)en+=st(ze[Ke],Ke,ze,st)||"";return en}function $e(ze,st,en,wt){switch(ze.type){case IMPORT:case DECLARATION:return ze.return=ze.return||ze.value;case COMMENT:return"";case RULESET:ze.value=ze.props.join(",")}return strlen(en=Ae(ze.children,wt))?ze.return=ze.value+"{"+en+"}":""}function tt(ze,st){switch(W(ze,st)){case 5103:return p+"print-"+ze+ze;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return p+ze+ze;case 5349:case 4246:case 4810:case 6968:case 2756:return p+ze+h+ze+l+ze+ze;case 6828:case 4268:return p+ze+l+ze+ze;case 6165:return p+ze+l+"flex-"+ze+ze;case 5187:return p+ze+X(ze,/(\w+).+(:[^]+)/,p+"box-$1$2"+l+"flex-$1$2")+ze;case 5443:return p+ze+l+"flex-item-"+X(ze,/flex-|-self/,"")+ze;case 4675:return p+ze+l+"flex-line-pack"+X(ze,/align-content|flex-|-self/,"")+ze;case 5548:return p+ze+l+X(ze,"shrink","negative")+ze;case 5292:return p+ze+l+X(ze,"basis","preferred-size")+ze;case 6060:return p+"box-"+X(ze,"-grow","")+p+ze+l+X(ze,"grow","positive")+ze;case 4554:return p+X(ze,/([^-])(transform)/g,"$1"+p+"$2")+ze;case 6187:return X(X(X(ze,/(zoom-|grab)/,p+"$1"),/(image-set)/,p+"$1"),ze,"")+ze;case 5495:case 3959:return X(ze,/(image-set\([^]*)/,p+"$1$`$1");case 4968:return X(X(ze,/(.+:)(flex-)?(.*)/,p+"box-pack:$3"+l+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+p+ze+ze;case 4095:case 3583:case 4068:case 2532:return X(ze,/(.+)-inline(.+)/,p+"$1$2")+ze;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(L(ze)-1-st>6)switch(J(ze,st+1)){case 109:if(J(ze,st+4)!==45)break;case 102:return X(ze,/(.+:)(.+)-([^]+)/,"$1"+p+"$2-$3$1"+h+(J(ze,st+3)==108?"$3":"$2-$3"))+ze;case 115:return~Z(ze,"stretch")?tt(X(ze,"stretch","fill-available"),st)+ze:ze}break;case 4949:if(J(ze,st+1)!==115)break;case 6444:switch(J(ze,L(ze)-3-(~Z(ze,"!important")&&10))){case 107:return X(ze,":",":"+p)+ze;case 101:return X(ze,/(.+:)([^;!]+)(;|!.+)?/,"$1"+p+(J(ze,14)===45?"inline-":"")+"box$3$1"+p+"$2$3$1"+l+"$2box$3")+ze}break;case 5936:switch(J(ze,st+11)){case 114:return p+ze+l+X(ze,/[svh]\w+-[tblr]{2}/,"tb")+ze;case 108:return p+ze+l+X(ze,/[svh]\w+-[tblr]{2}/,"tb-rl")+ze;case 45:return p+ze+l+X(ze,/[svh]\w+-[tblr]{2}/,"lr")+ze}return p+ze+l+ze+ze}return ze}function ke(ze){var st=sizeof(ze);return function(en,wt,Ke,Ut){for(var on="",Tn=0;Tn<st;Tn++)on+=ze[Tn](en,wt,Ke,Ut)||"";return on}}function Oe(ze){return function(st){st.root||(st=st.return)&&ze(st)}}function je(ze,st,en,wt){if(!ze.return)switch(ze.type){case g:ze.return=tt(ze.value,ze.length);break;case T:return Ae([Se(X(ze.value,"@","@"+p),ze,"")],wt);case f:if(ze.length)return F(ze.props,function(Ke){switch(re(Ke,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ae([Se(X(Ke,/:(read-\w+)/,":"+h+"$1"),ze,"")],wt);case"::placeholder":return Ae([Se(X(Ke,/:(plac\w+)/,":"+p+"input-$1"),ze,""),Se(X(Ke,/:(plac\w+)/,":"+h+"$1"),ze,""),Se(X(Ke,/:(plac\w+)/,l+"input-$1"),ze,"")],wt)}return""})}}function Et(ze){switch(ze.type){case RULESET:ze.props=ze.props.map(function(st){return combine(tokenize(st),function(en,wt,Ke){switch(charat(en,0)){case 12:return substr(en,1,strlen(en));case 0:case 40:case 43:case 62:case 126:return en;case 58:Ke[++wt]==="global"&&(Ke[wt]="",Ke[++wt]="\f"+substr(Ke[wt],wt=1,-1));case 32:return wt===1?"":en;default:switch(wt){case 0:return ze=en,sizeof(Ke)>1?"":en;case(wt=sizeof(Ke)-1):case 2:return wt===2?en+ze+ze:en+ze;default:return en}}})})}}var ct=function(st){return st.length?st[st.length-1]:null},ut=function(st,en,wt){for(var Ke=0,Ut=0;Ke=Ut,Ut=peek(),Ke===38&&Ut===12&&(en[wt]=1),!token(Ut);)next();return slice(st,position)},Ne=function(st,en){var wt=-1,Ke=44;do switch(token(Ke)){case 0:Ke===38&&peek()===12&&(en[wt]=1),st[wt]+=ut(position-1,en,wt);break;case 2:st[wt]+=delimit(Ke);break;case 4:if(Ke===44){st[++wt]=peek()===58?"&\f":"",en[wt]=st[wt].length;break}default:st[wt]+=from(Ke)}while(Ke=next());return st},mt=function(st,en){return dealloc(Ne(alloc(st),en))},bt=new WeakMap,Gt=function(st){if(!(st.type!=="rule"||!st.parent||!st.length)){for(var en=st.value,wt=st.parent,Ke=st.column===wt.column&&st.line===wt.line;wt.type!=="rule";)if(wt=wt.parent,!wt)return;if(!(st.props.length===1&&en.charCodeAt(0)!==58&&!bt.get(wt))&&!Ke){bt.set(st,!0);for(var Ut=[],on=mt(en,Ut),Tn=wt.props,An=0,Zt=0;An<on.length;An++)for(var ot=0;ot<Tn.length;ot++,Zt++)st.props[Zt]=Ut[An]?on[An].replace(/&\f/g,Tn[ot]):Tn[ot]+" "+on[An]}}},hn=function(st){if(st.type==="decl"){var en=st.value;en.charCodeAt(0)===108&&en.charCodeAt(2)===98&&(st.return="",st.value="")}},Yt="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Bt=function(st){return!!st&&st.type==="comm"&&st.children.indexOf(Yt)>-1},Lt=function(st){return function(en,wt,Ke){if(en.type==="rule"){var Ut=en.value.match(/(:first|:nth|:nth-last)-child/g);if(Ut&&st.compat!==!0){var on=wt>0?Ke[wt-1]:null;if(on&&Bt(ct(on.children)))return;Ut.forEach(function(Tn){console.error('The pseudo class "'+Tn+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+Tn.split("-child")[0]+'-of-type".')})}}}},zt=function(st){return st.type.charCodeAt(1)===105&&st.type.charCodeAt(0)===64},Kt=function(st,en){for(var wt=st-1;wt>=0;wt--)if(!zt(en[wt]))return!0;return!1},vt=function(st){st.type="",st.value="",st.return="",st.children="",st.props=""},Ve=function(st,en,wt){zt(st)&&(st.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),vt(st)):Kt(en,wt)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),vt(st)))},lt=[je],at=function(st){var en=st.key;if(en==="css"){var wt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(wt,function(vn){var fn=vn.getAttribute("data-emotion");fn.indexOf(" ")!==-1&&(document.head.appendChild(vn),vn.setAttribute("data-s",""))})}var Ke=st.stylisPlugins||lt,Ut={},on,Tn=[];on=st.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+en+' "]'),function(vn){for(var fn=vn.getAttribute("data-emotion").split(" "),Tt=1;Tt<fn.length;Tt++)Ut[fn[Tt]]=!0;Tn.push(vn)});var An,Zt=[Gt,hn];{var ot,We=[stringify,rulesheet(function(vn){ot.insert(vn)})],Ft=middleware(Zt.concat(Ke,We)),it=function(fn){return serialize(compile(fn),Ft)};An=function(fn,Tt,dn,mn){ot=dn,it(fn?fn+"{"+Tt.styles+"}":Tt.styles),mn&&(qt.inserted[Tt.name]=!0)}}var qt={key:en,sheet:new StyleSheet({key:en,container:on,nonce:st.nonce,speedy:st.speedy,prepend:st.prepend}),nonce:st.nonce,inserted:Ut,registered:{},insert:An};return qt.sheet.hydrate(Tn),qt};const Xt=null;var rt=t(27473),Rt=t(75786),rn=(0,u.forwardRef)(function(ze,st){var en=(0,i.u)(ze);return u.createElement(v.S,(0,s.Z)({ref:st},en))}),sn=function(ze){var st=ze.nonce,en=ze.children,wt=ze.cacheKey,Ke=useMemo(function(){return createCache({key:wt,nonce:st})},[wt,st]);return React.createElement(CacheProvider,{value:Ke},en)};const Jn=rn},72248:(C,c,t)=>{"use strict";t.d(c,{u:()=>d});var i=t(23190),s=t(48632),u=t(32098),v=t(4696),l=t(27702),h=t(38581),p=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function d(f){var g=f.defaultOptions,y=g===void 0?!1:g,b=f.cacheOptions,E=b===void 0?!1:b,S=f.loadOptions;f.options;var w=f.isLoading,x=w===void 0?!1:w,P=f.onInputChange,R=f.filterOption,T=R===void 0?null:R,A=(0,v.Z)(f,p),I=A.inputValue,N=(0,l.useRef)(void 0),K=(0,l.useRef)(!1),_=(0,l.useState)(Array.isArray(y)?y:void 0),W=(0,u.Z)(_,2),j=W[0],re=W[1],X=(0,l.useState)(typeof I<"u"?I:""),Z=(0,u.Z)(X,2),J=Z[0],q=Z[1],L=(0,l.useState)(y===!0),$=(0,u.Z)(L,2),k=$[0],F=$[1],V=(0,l.useState)(void 0),pe=(0,u.Z)(V,2),ce=pe[0],G=pe[1],te=(0,l.useState)([]),ie=(0,u.Z)(te,2),fe=ie[0],Se=ie[1],he=(0,l.useState)(!1),me=(0,u.Z)(he,2),_e=me[0],we=me[1],Ge=(0,l.useState)({}),ht=(0,u.Z)(Ge,2),nt=ht[0],Re=ht[1],ue=(0,l.useState)(void 0),ae=(0,u.Z)(ue,2),ve=ae[0],Me=ae[1],Ye=(0,l.useState)(void 0),qe=(0,u.Z)(Ye,2),At=qe[0],It=qe[1];E!==At&&(Re({}),It(E)),y!==ve&&(re(Array.isArray(y)?y:void 0),Me(y)),(0,l.useEffect)(function(){return K.current=!0,function(){K.current=!1}},[]);var Ce=(0,l.useCallback)(function(tt,ke){if(!S)return ke();var Oe=S(tt,ke);Oe&&typeof Oe.then=="function"&&Oe.then(ke,function(){return ke()})},[S]);(0,l.useEffect)(function(){y===!0&&Ce(J,function(tt){K.current&&(re(tt||[]),F(!!N.current))})},[]);var Ae=(0,l.useCallback)(function(tt,ke){var Oe=(0,h.L)(tt,ke,P);if(!Oe){N.current=void 0,q(""),G(""),Se([]),F(!1),we(!1);return}if(E&&nt[Oe])q(Oe),G(Oe),Se(nt[Oe]),F(!1),we(!1);else{var je=N.current={};q(Oe),F(!0),we(!ce),Ce(Oe,function(Et){K&&je===N.current&&(N.current=void 0,F(!1),G(Oe),Se(Et||[]),we(!1),Re(Et?(0,s.Z)((0,s.Z)({},nt),{},(0,i.Z)({},Oe,Et)):nt))})}},[E,Ce,ce,nt,P]),$e=_e?[]:J&&ce?fe:j||[];return(0,s.Z)((0,s.Z)({},A),{},{options:$e,isLoading:k||x,onInputChange:Ae,filterOption:T})}},3559:(C,c,t)=>{"use strict";t.d(c,{u:()=>g});var i=t(48632),s=t(75342),u=t(4696),v=t(27702),l=t(38581),h=t(65890),p=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],d=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",E=arguments.length>1?arguments[1]:void 0,S=arguments.length>2?arguments[2]:void 0,w=String(b).toLowerCase(),x=String(S.getOptionValue(E)).toLowerCase(),P=String(S.getOptionLabel(E)).toLowerCase();return x===w||P===w},f={formatCreateLabel:function(b){return'Create "'.concat(b,'"')},isValidNewOption:function(b,E,S,w){return!(!b||E.some(function(x){return d(b,x,w)})||S.some(function(x){return d(b,x,w)}))},getNewOptionData:function(b,E){return{label:E,value:b,__isNew__:!0}}};function g(y){var b=y.allowCreateWhileLoading,E=b===void 0?!1:b,S=y.createOptionPosition,w=S===void 0?"last":S,x=y.formatCreateLabel,P=x===void 0?f.formatCreateLabel:x,R=y.isValidNewOption,T=R===void 0?f.isValidNewOption:R,A=y.getNewOptionData,I=A===void 0?f.getNewOptionData:A,N=y.onCreateOption,K=y.options,_=K===void 0?[]:K,W=y.onChange,j=(0,u.Z)(y,p),re=j.getOptionValue,X=re===void 0?h.g:re,Z=j.getOptionLabel,J=Z===void 0?h.b:Z,q=j.inputValue,L=j.isLoading,$=j.isMulti,k=j.value,F=j.name,V=(0,v.useMemo)(function(){return T(q,(0,l.I)(k),_,{getOptionValue:X,getOptionLabel:J})?I(q,P(q)):void 0},[P,I,J,X,q,T,_,k]),pe=(0,v.useMemo)(function(){return(E||!L)&&V?w==="first"?[V].concat((0,s.Z)(_)):[].concat((0,s.Z)(_),[V]):_},[E,w,L,V,_]),ce=(0,v.useCallback)(function(G,te){if(te.action!=="select-option")return W(G,te);var ie=Array.isArray(G)?G:[G];if(ie[ie.length-1]===V){if(N)N(q);else{var fe=I(q,q),Se={action:"create-option",name:F,option:fe};W((0,l.D)($,[].concat((0,s.Z)((0,l.I)(k)),[fe]),fe),Se)}return}W(G,te)},[I,q,$,F,V,N,W,k]);return(0,i.Z)((0,i.Z)({},j),{},{options:pe,onChange:ce})}},90621:(C,c,t)=>{"use strict";t.d(c,{u:()=>h});var i=t(48632),s=t(32098),u=t(4696),v=t(27702),l=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function h(p){var d=p.defaultInputValue,f=d===void 0?"":d,g=p.defaultMenuIsOpen,y=g===void 0?!1:g,b=p.defaultValue,E=b===void 0?null:b,S=p.inputValue,w=p.menuIsOpen,x=p.onChange,P=p.onInputChange,R=p.onMenuClose,T=p.onMenuOpen,A=p.value,I=(0,u.Z)(p,l),N=(0,v.useState)(S!==void 0?S:f),K=(0,s.Z)(N,2),_=K[0],W=K[1],j=(0,v.useState)(w!==void 0?w:y),re=(0,s.Z)(j,2),X=re[0],Z=re[1],J=(0,v.useState)(A!==void 0?A:E),q=(0,s.Z)(J,2),L=q[0],$=q[1],k=(0,v.useCallback)(function(ie,fe){typeof x=="function"&&x(ie,fe),$(ie)},[x]),F=(0,v.useCallback)(function(ie,fe){var Se;typeof P=="function"&&(Se=P(ie,fe)),W(Se!==void 0?Se:ie)},[P]),V=(0,v.useCallback)(function(){typeof T=="function"&&T(),Z(!0)},[T]),pe=(0,v.useCallback)(function(){typeof R=="function"&&R(),Z(!1)},[R]),ce=S!==void 0?S:_,G=w!==void 0?w:X,te=A!==void 0?A:L;return(0,i.Z)((0,i.Z)({},I),{},{inputValue:ce,menuIsOpen:G,onChange:k,onInputChange:F,onMenuClose:pe,onMenuOpen:V,value:te})}},51448:function(C,c,t){(function(i,s){s(c,t(27702))})(this,function(i,s){"use strict";function u(Mt,Gn,qn,Fr,Ei,ii,Wi){try{var Ya=Mt[ii](Wi),qa=Ya.value}catch(se){return void qn(se)}Ya.done?Gn(qa):Promise.resolve(qa).then(Fr,Ei)}function v(Mt){return function(){var Gn=this,qn=arguments;return new Promise(function(Fr,Ei){var ii=Mt.apply(Gn,qn);function Wi(qa){u(ii,Fr,Ei,Wi,Ya,"next",qa)}function Ya(qa){u(ii,Fr,Ei,Wi,Ya,"throw",qa)}Wi(void 0)})}}function l(){return(l=Object.assign||function(Mt){for(var Gn=1;Gn<arguments.length;Gn++){var qn=arguments[Gn];for(var Fr in qn)Object.prototype.hasOwnProperty.call(qn,Fr)&&(Mt[Fr]=qn[Fr])}return Mt}).apply(this,arguments)}function h(Mt,Gn){if(Mt==null)return{};var qn,Fr,Ei={},ii=Object.keys(Mt);for(Fr=0;Fr<ii.length;Fr++)qn=ii[Fr],Gn.indexOf(qn)>=0||(Ei[qn]=Mt[qn]);return Ei}function p(Mt){var Gn=function(qn,Fr){if(typeof qn!="object"||qn===null)return qn;var Ei=qn[Symbol.toPrimitive];if(Ei!==void 0){var ii=Ei.call(qn,Fr||"default");if(typeof ii!="object")return ii;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Fr==="string"?String:Number)(qn)}(Mt,"string");return typeof Gn=="symbol"?Gn:String(Gn)}s=s&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s;var d={init:"init"},f=function(Mt){var Gn=Mt.value;return Gn===void 0?"":Gn},g=function(){return s.createElement(s.Fragment,null,"\xA0")},y={Cell:f,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function b(){for(var Mt=arguments.length,Gn=new Array(Mt),qn=0;qn<Mt;qn++)Gn[qn]=arguments[qn];return Gn.reduce(function(Fr,Ei){var ii=Ei.style,Wi=Ei.className;return Fr=l({},Fr,{},h(Ei,["style","className"])),ii&&(Fr.style=Fr.style?l({},Fr.style||{},{},ii||{}):ii),Wi&&(Fr.className=Fr.className?Fr.className+" "+Wi:Wi),Fr.className===""&&delete Fr.className,Fr},{})}var E=function(Mt,Gn){return Gn===void 0&&(Gn={}),function(qn){return qn===void 0&&(qn={}),[].concat(Mt,[qn]).reduce(function(Fr,Ei){return function ii(Wi,Ya,qa){return typeof Ya=="function"?ii({},Ya(Wi,qa)):Array.isArray(Ya)?b.apply(void 0,[Wi].concat(Ya)):b(Wi,Ya)}(Fr,Ei,l({},Gn,{userProps:qn}))},{})}},S=function(Mt,Gn,qn,Fr){return qn===void 0&&(qn={}),Mt.reduce(function(Ei,ii){return ii(Ei,qn)},Gn)},w=function(Mt,Gn,qn){return qn===void 0&&(qn={}),Mt.forEach(function(Fr){Fr(Gn,qn)})};function x(Mt,Gn,qn,Fr){Mt.findIndex(function(Ei){return Ei.pluginName===qn}),Gn.forEach(function(Ei){Mt.findIndex(function(ii){return ii.pluginName===Ei})})}function P(Mt,Gn){return typeof Mt=="function"?Mt(Gn):Mt}function R(Mt){var Gn=s.useRef();return Gn.current=Mt,s.useCallback(function(){return Gn.current},[])}var T=typeof document<"u"?s.useLayoutEffect:s.useEffect;function A(Mt,Gn){var qn=s.useRef(!1);T(function(){qn.current&&Mt(),qn.current=!0},Gn)}function I(Mt,Gn,qn){return qn===void 0&&(qn={}),function(Fr,Ei){Ei===void 0&&(Ei={});var ii=typeof Fr=="string"?Gn[Fr]:Fr;if(ii===void 0)throw console.info(Gn),new Error("Renderer Error \u261D\uFE0F");return N(ii,l({},Mt,{column:Gn},qn,{},Ei))}}function N(Mt,Gn){return function(Fr){return typeof Fr=="function"&&(Ei=Object.getPrototypeOf(Fr)).prototype&&Ei.prototype.isReactComponent;var Ei}(qn=Mt)||typeof qn=="function"||function(Fr){return typeof Fr=="object"&&typeof Fr.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(Fr.$$typeof.description)}(qn)?s.createElement(Mt,Gn):Mt;var qn}function K(Mt,Gn,qn){return qn===void 0&&(qn=0),Mt.map(function(Fr){return W(Fr=l({},Fr,{parent:Gn,depth:qn})),Fr.columns&&(Fr.columns=K(Fr.columns,Fr,qn+1)),Fr})}function _(Mt){return q(Mt,"columns")}function W(Mt){var Gn=Mt.id,qn=Mt.accessor,Fr=Mt.Header;if(typeof qn=="string"){Gn=Gn||qn;var Ei=qn.split(".");qn=function(ii){return function(Wi,Ya,qa){if(!Ya)return Wi;var se,ye=typeof Ya=="function"?Ya:JSON.stringify(Ya),Xe=X.get(ye)||function(){var yt=function(Wt){return function Qt(wn,fr){if(fr===void 0&&(fr=[]),Array.isArray(wn))for(var Or=0;Or<wn.length;Or+=1)Qt(wn[Or],fr);else fr.push(wn);return fr}(Wt).map(function(Qt){return String(Qt).replace(".","_")}).join(".").replace(pe,".").replace(ce,"").split(".")}(Ya);return X.set(ye,yt),yt}();try{se=Xe.reduce(function(yt,Wt){return yt[Wt]},Wi)}catch{}return se!==void 0?se:qa}(ii,Ei)}}if(!Gn&&typeof Fr=="string"&&Fr&&(Gn=Fr),!Gn&&Mt.columns)throw console.error(Mt),new Error('A column ID (or unique "Header" value) is required!');if(!Gn)throw console.error(Mt),new Error("A column ID (or string accessor) is required!");return Object.assign(Mt,{id:Gn,accessor:qn}),Mt}function j(Mt,Gn){if(!Gn)throw new Error;return Object.assign(Mt,l({Header:g,Footer:g},y,{},Gn,{},Mt)),Object.assign(Mt,{originalWidth:Mt.width}),Mt}function re(Mt,Gn,qn){qn===void 0&&(qn=function(){return{}});for(var Fr=[],Ei=Mt,ii=0,Wi=function(){return ii++},Ya=function(){var qa={headers:[]},se=[],ye=Ei.some(function(Xe){return Xe.parent});Ei.forEach(function(Xe){var yt,Wt=[].concat(se).reverse()[0];ye&&(Xe.parent?yt=l({},Xe.parent,{originalId:Xe.parent.id,id:Xe.parent.id+"_"+Wi(),headers:[Xe]},qn(Xe)):yt=j(l({originalId:Xe.id+"_placeholder",id:Xe.id+"_placeholder_"+Wi(),placeholderOf:Xe,headers:[Xe]},qn(Xe)),Gn),Wt&&Wt.originalId===yt.originalId?Wt.headers.push(Xe):se.push(yt)),qa.headers.push(Xe)}),Fr.push(qa),Ei=se};Ei.length;)Ya();return Fr.reverse()}var X=new Map;function Z(){for(var Mt=arguments.length,Gn=new Array(Mt),qn=0;qn<Mt;qn++)Gn[qn]=arguments[qn];for(var Fr=0;Fr<Gn.length;Fr+=1)if(Gn[Fr]!==void 0)return Gn[Fr]}function J(Mt){if(typeof Mt=="function")return Mt}function q(Mt,Gn){var qn=[];return function Fr(Ei){Ei.forEach(function(ii){ii[Gn]?Fr(ii[Gn]):qn.push(ii)})}(Mt),qn}function L(Mt,Gn){var qn=Gn.manualExpandedKey,Fr=Gn.expanded,Ei=Gn.expandSubRows,ii=Ei===void 0||Ei,Wi=[];return Mt.forEach(function(Ya){return function qa(se,ye){ye===void 0&&(ye=!0),se.isExpanded=se.original&&se.original[qn]||Fr[se.id],se.canExpand=se.subRows&&!!se.subRows.length,ye&&Wi.push(se),se.subRows&&se.subRows.length&&se.isExpanded&&se.subRows.forEach(function(Xe){return qa(Xe,ii)})}(Ya)}),Wi}function $(Mt,Gn,qn){return J(Mt)||Gn[Mt]||qn[Mt]||qn.text}function k(Mt,Gn,qn){return Mt?Mt(Gn,qn):Gn===void 0}function F(){throw new Error("React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.")}var V=null,pe=/\[/g,ce=/\]/g,G=function(Mt){return l({role:"table"},Mt)},te=function(Mt){return l({role:"rowgroup"},Mt)},ie=function(Mt,Gn){var qn=Gn.column;return l({key:"header_"+qn.id,colSpan:qn.totalVisibleHeaderCount,role:"columnheader"},Mt)},fe=function(Mt,Gn){var qn=Gn.column;return l({key:"footer_"+qn.id,colSpan:qn.totalVisibleHeaderCount},Mt)},Se=function(Mt,Gn){return l({key:"headerGroup_"+Gn.index,role:"row"},Mt)},he=function(Mt,Gn){return l({key:"footerGroup_"+Gn.index},Mt)},me=function(Mt,Gn){return l({key:"row_"+Gn.row.id,role:"row"},Mt)},_e=function(Mt,Gn){var qn=Gn.cell;return l({key:"cell_"+qn.row.id+"_"+qn.column.id,role:"cell"},Mt)};function we(){return{useOptions:[],stateReducers:[],useControlledState:[],columns:[],columnsDeps:[],allColumns:[],allColumnsDeps:[],accessValue:[],materializedColumns:[],materializedColumnsDeps:[],useInstanceAfterData:[],visibleColumns:[],visibleColumnsDeps:[],headerGroups:[],headerGroupsDeps:[],useInstanceBeforeDimensions:[],useInstance:[],prepareRow:[],getTableProps:[G],getTableBodyProps:[te],getHeaderGroupProps:[Se],getFooterGroupProps:[he],getHeaderProps:[ie],getFooterProps:[fe],getRowProps:[me],getCellProps:[_e],useFinalInstance:[]}}d.resetHiddenColumns="resetHiddenColumns",d.toggleHideColumn="toggleHideColumn",d.setHiddenColumns="setHiddenColumns",d.toggleHideAllColumns="toggleHideAllColumns";var Ge=function(Mt){Mt.getToggleHiddenProps=[ht],Mt.getToggleHideAllColumnsProps=[nt],Mt.stateReducers.push(Re),Mt.useInstanceBeforeDimensions.push(ue),Mt.headerGroupsDeps.push(function(Gn,qn){var Fr=qn.instance;return[].concat(Gn,[Fr.state.hiddenColumns])}),Mt.useInstance.push(ae)};Ge.pluginName="useColumnVisibility";var ht=function(Mt,Gn){var qn=Gn.column;return[Mt,{onChange:function(Fr){qn.toggleHidden(!Fr.target.checked)},style:{cursor:"pointer"},checked:qn.isVisible,title:"Toggle Column Visible"}]},nt=function(Mt,Gn){var qn=Gn.instance;return[Mt,{onChange:function(Fr){qn.toggleHideAllColumns(!Fr.target.checked)},style:{cursor:"pointer"},checked:!qn.allColumnsHidden&&!qn.state.hiddenColumns.length,title:"Toggle All Columns Hidden",indeterminate:!qn.allColumnsHidden&&qn.state.hiddenColumns.length}]};function Re(Mt,Gn,qn,Fr){if(Gn.type===d.init)return l({hiddenColumns:[]},Mt);if(Gn.type===d.resetHiddenColumns)return l({},Mt,{hiddenColumns:Fr.initialState.hiddenColumns||[]});if(Gn.type===d.toggleHideColumn){var Ei=(Gn.value!==void 0?Gn.value:!Mt.hiddenColumns.includes(Gn.columnId))?[].concat(Mt.hiddenColumns,[Gn.columnId]):Mt.hiddenColumns.filter(function(ii){return ii!==Gn.columnId});return l({},Mt,{hiddenColumns:Ei})}return Gn.type===d.setHiddenColumns?l({},Mt,{hiddenColumns:P(Gn.value,Mt.hiddenColumns)}):Gn.type===d.toggleHideAllColumns?l({},Mt,{hiddenColumns:(Gn.value!==void 0?Gn.value:!Mt.hiddenColumns.length)?Fr.allColumns.map(function(ii){return ii.id}):[]}):void 0}function ue(Mt){var Gn=Mt.headers,qn=Mt.state.hiddenColumns;s.useRef(!1).current;var Fr=0;Gn.forEach(function(Ei){return Fr+=function ii(Wi,Ya){Wi.isVisible=Ya&&!qn.includes(Wi.id);var qa=0;return Wi.headers&&Wi.headers.length?Wi.headers.forEach(function(se){return qa+=ii(se,Wi.isVisible)}):qa=Wi.isVisible?1:0,Wi.totalVisibleHeaderCount=qa,qa}(Ei,!0)})}function ae(Mt){var Gn=Mt.columns,qn=Mt.flatHeaders,Fr=Mt.dispatch,Ei=Mt.allColumns,ii=Mt.getHooks,Wi=Mt.state.hiddenColumns,Ya=Mt.autoResetHiddenColumns,qa=Ya===void 0||Ya,se=R(Mt),ye=Ei.length===Wi.length,Xe=s.useCallback(function(fr,Or){return Fr({type:d.toggleHideColumn,columnId:fr,value:Or})},[Fr]),yt=s.useCallback(function(fr){return Fr({type:d.setHiddenColumns,value:fr})},[Fr]),Wt=s.useCallback(function(fr){return Fr({type:d.toggleHideAllColumns,value:fr})},[Fr]),Qt=E(ii().getToggleHideAllColumnsProps,{instance:se()});qn.forEach(function(fr){fr.toggleHidden=function(Or){Fr({type:d.toggleHideColumn,columnId:fr.id,value:Or})},fr.getToggleHiddenProps=E(ii().getToggleHiddenProps,{instance:se(),column:fr})});var wn=R(qa);A(function(){wn()&&Fr({type:d.resetHiddenColumns})},[Fr,Gn]),Object.assign(Mt,{allColumnsHidden:ye,toggleHideColumn:Xe,setHiddenColumns:yt,toggleHideAllColumns:Wt,getToggleHideAllColumnsProps:Qt})}var ve={},Me={},Ye=function(Mt,Gn,qn){return Mt},qe=function(Mt,Gn){return Mt.subRows||[]},At=function(Mt,Gn,qn){return""+(qn?[qn.id,Gn].join("."):Gn)},It=function(Mt){return Mt};function Ce(Mt){var Gn=Mt.initialState,qn=Gn===void 0?ve:Gn,Fr=Mt.defaultColumn,Ei=Fr===void 0?Me:Fr,ii=Mt.getSubRows,Wi=ii===void 0?qe:ii,Ya=Mt.getRowId,qa=Ya===void 0?At:Ya,se=Mt.stateReducer,ye=se===void 0?Ye:se,Xe=Mt.useControlledState,yt=Xe===void 0?It:Xe;return l({},h(Mt,["initialState","defaultColumn","getSubRows","getRowId","stateReducer","useControlledState"]),{initialState:qn,defaultColumn:Ei,getSubRows:Wi,getRowId:qa,stateReducer:ye,useControlledState:yt})}function Ae(Mt,Gn){Gn===void 0&&(Gn=0);var qn=0,Fr=0,Ei=0,ii=0;return Mt.forEach(function(Wi){var Ya=Wi.headers;if(Wi.totalLeft=Gn,Ya&&Ya.length){var qa=Ae(Ya,Gn),se=qa[0],ye=qa[1],Xe=qa[2],yt=qa[3];Wi.totalMinWidth=se,Wi.totalWidth=ye,Wi.totalMaxWidth=Xe,Wi.totalFlexWidth=yt}else Wi.totalMinWidth=Wi.minWidth,Wi.totalWidth=Math.min(Math.max(Wi.minWidth,Wi.width),Wi.maxWidth),Wi.totalMaxWidth=Wi.maxWidth,Wi.totalFlexWidth=Wi.canResize?Wi.totalWidth:0;Wi.isVisible&&(Gn+=Wi.totalWidth,qn+=Wi.totalMinWidth,Fr+=Wi.totalWidth,Ei+=Wi.totalMaxWidth,ii+=Wi.totalFlexWidth)}),[qn,Fr,Ei,ii]}function $e(Mt){var Gn=Mt.data,qn=Mt.rows,Fr=Mt.flatRows,Ei=Mt.rowsById,ii=Mt.column,Wi=Mt.getRowId,Ya=Mt.getSubRows,qa=Mt.accessValueHooks,se=Mt.getInstance;Gn.forEach(function(ye,Xe){return function yt(Wt,Qt,wn,fr,Or){wn===void 0&&(wn=0);var Si=Wt,Fi=Wi(Wt,Qt,fr),Bi=Ei[Fi];if(Bi)Bi.subRows&&Bi.originalSubRows.forEach(function(vi,Xa){return yt(vi,Xa,wn+1,Bi)});else if((Bi={id:Fi,original:Si,index:Qt,depth:wn,cells:[{}]}).cells.map=F,Bi.cells.filter=F,Bi.cells.forEach=F,Bi.cells[0].getCellProps=F,Bi.values={},Or.push(Bi),Fr.push(Bi),Ei[Fi]=Bi,Bi.originalSubRows=Ya(Wt,Qt),Bi.originalSubRows){var Ui=[];Bi.originalSubRows.forEach(function(vi,Xa){return yt(vi,Xa,wn+1,Bi,Ui)}),Bi.subRows=Ui}ii.accessor&&(Bi.values[ii.id]=ii.accessor(Wt,Qt,Bi,Or,Gn)),Bi.values[ii.id]=S(qa,Bi.values[ii.id],{row:Bi,column:ii,instance:se()})}(ye,Xe,0,void 0,qn)})}d.resetExpanded="resetExpanded",d.toggleRowExpanded="toggleRowExpanded",d.toggleAllRowsExpanded="toggleAllRowsExpanded";var tt=function(Mt){Mt.getToggleAllRowsExpandedProps=[ke],Mt.getToggleRowExpandedProps=[Oe],Mt.stateReducers.push(je),Mt.useInstance.push(Et),Mt.prepareRow.push(ct)};tt.pluginName="useExpanded";var ke=function(Mt,Gn){var qn=Gn.instance;return[Mt,{onClick:function(Fr){qn.toggleAllRowsExpanded()},style:{cursor:"pointer"},title:"Toggle All Rows Expanded"}]},Oe=function(Mt,Gn){var qn=Gn.row;return[Mt,{onClick:function(){qn.toggleRowExpanded()},style:{cursor:"pointer"},title:"Toggle Row Expanded"}]};function je(Mt,Gn,qn,Fr){if(Gn.type===d.init)return l({expanded:{}},Mt);if(Gn.type===d.resetExpanded)return l({},Mt,{expanded:Fr.initialState.expanded||{}});if(Gn.type===d.toggleAllRowsExpanded){var Ei=Gn.value,ii=Fr.rowsById,Wi=Object.keys(ii).length===Object.keys(Mt.expanded).length;if(Ei!==void 0?Ei:!Wi){var Ya={};return Object.keys(ii).forEach(function(Qt){Ya[Qt]=!0}),l({},Mt,{expanded:Ya})}return l({},Mt,{expanded:{}})}if(Gn.type===d.toggleRowExpanded){var qa,se=Gn.id,ye=Gn.value,Xe=Mt.expanded[se],yt=ye!==void 0?ye:!Xe;if(!Xe&&yt)return l({},Mt,{expanded:l({},Mt.expanded,(qa={},qa[se]=!0,qa))});if(Xe&&!yt){var Wt=Mt.expanded;return Wt[se],l({},Mt,{expanded:h(Wt,[se].map(p))})}return Mt}}function Et(Mt){var Gn=Mt.data,qn=Mt.rows,Fr=Mt.rowsById,Ei=Mt.manualExpandedKey,ii=Ei===void 0?"expanded":Ei,Wi=Mt.paginateExpandedRows,Ya=Wi===void 0||Wi,qa=Mt.expandSubRows,se=qa===void 0||qa,ye=Mt.autoResetExpanded,Xe=ye===void 0||ye,yt=Mt.getHooks,Wt=Mt.plugins,Qt=Mt.state.expanded,wn=Mt.dispatch;x(Wt,["useSortBy","useGroupBy","usePivotColumns","useGlobalFilter"],"useExpanded");var fr=R(Xe),Or=!!(Object.keys(Fr).length&&Object.keys(Qt).length);Or&&Object.keys(Fr).some(function(Ko){return!Qt[Ko]})&&(Or=!1),A(function(){fr()&&wn({type:d.resetExpanded})},[wn,Gn]);var Si=s.useCallback(function(Ko,So){wn({type:d.toggleRowExpanded,id:Ko,value:So})},[wn]),Fi=s.useCallback(function(Ko){return wn({type:d.toggleAllRowsExpanded,value:Ko})},[wn]),Bi=s.useMemo(function(){return Ya?L(qn,{manualExpandedKey:ii,expanded:Qt,expandSubRows:se}):qn},[Ya,qn,ii,Qt,se]),Ui=s.useMemo(function(){return function(Ko){var So=0;return Object.keys(Ko).forEach(function(Lo){var us=Lo.split(".");So=Math.max(So,us.length)}),So}(Qt)},[Qt]),vi=R(Mt),Xa=E(yt().getToggleAllRowsExpandedProps,{instance:vi()});Object.assign(Mt,{preExpandedRows:qn,expandedRows:Bi,rows:Bi,expandedDepth:Ui,isAllRowsExpanded:Or,toggleRowExpanded:Si,toggleAllRowsExpanded:Fi,getToggleAllRowsExpandedProps:Xa})}function ct(Mt,Gn){var qn=Gn.instance.getHooks,Fr=Gn.instance;Mt.toggleRowExpanded=function(Ei){return Fr.toggleRowExpanded(Mt.id,Ei)},Mt.getToggleRowExpandedProps=E(qn().getToggleRowExpandedProps,{instance:Fr,row:Mt})}var ut=function(Mt,Gn,qn){return Mt=Mt.filter(function(Fr){return Gn.some(function(Ei){var ii=Fr.values[Ei];return String(ii).toLowerCase().includes(String(qn).toLowerCase())})})};ut.autoRemove=function(Mt){return!Mt};var Ne=function(Mt,Gn,qn){return Mt.filter(function(Fr){return Gn.some(function(Ei){var ii=Fr.values[Ei];return ii===void 0||String(ii).toLowerCase()===String(qn).toLowerCase()})})};Ne.autoRemove=function(Mt){return!Mt};var mt=function(Mt,Gn,qn){return Mt.filter(function(Fr){return Gn.some(function(Ei){var ii=Fr.values[Ei];return ii===void 0||String(ii)===String(qn)})})};mt.autoRemove=function(Mt){return!Mt};var bt=function(Mt,Gn,qn){return Mt.filter(function(Fr){return Gn.some(function(Ei){return Fr.values[Ei].includes(qn)})})};bt.autoRemove=function(Mt){return!Mt||!Mt.length};var Gt=function(Mt,Gn,qn){return Mt.filter(function(Fr){return Gn.some(function(Ei){var ii=Fr.values[Ei];return ii&&ii.length&&qn.every(function(Wi){return ii.includes(Wi)})})})};Gt.autoRemove=function(Mt){return!Mt||!Mt.length};var hn=function(Mt,Gn,qn){return Mt.filter(function(Fr){return Gn.some(function(Ei){var ii=Fr.values[Ei];return ii&&ii.length&&qn.some(function(Wi){return ii.includes(Wi)})})})};hn.autoRemove=function(Mt){return!Mt||!Mt.length};var Yt=function(Mt,Gn,qn){return Mt.filter(function(Fr){return Gn.some(function(Ei){var ii=Fr.values[Ei];return qn.includes(ii)})})};Yt.autoRemove=function(Mt){return!Mt||!Mt.length};var Bt=function(Mt,Gn,qn){return Mt.filter(function(Fr){return Gn.some(function(Ei){return Fr.values[Ei]===qn})})};Bt.autoRemove=function(Mt){return Mt===void 0};var Lt=function(Mt,Gn,qn){return Mt.filter(function(Fr){return Gn.some(function(Ei){return Fr.values[Ei]==qn})})};Lt.autoRemove=function(Mt){return Mt==null};var zt=function(Mt,Gn,qn){var Fr=qn||[],Ei=Fr[0],ii=Fr[1];if((Ei=typeof Ei=="number"?Ei:-1/0)>(ii=typeof ii=="number"?ii:1/0)){var Wi=Ei;Ei=ii,ii=Wi}return Mt.filter(function(Ya){return Gn.some(function(qa){var se=Ya.values[qa];return se>=Ei&&se<=ii})})};zt.autoRemove=function(Mt){return!Mt||typeof Mt[0]!="number"&&typeof Mt[1]!="number"};var Kt=Object.freeze({__proto__:null,text:ut,exactText:Ne,exactTextCase:mt,includes:bt,includesAll:Gt,includesSome:hn,includesValue:Yt,exact:Bt,equals:Lt,between:zt});d.resetFilters="resetFilters",d.setFilter="setFilter",d.setAllFilters="setAllFilters";var vt=function(Mt){Mt.stateReducers.push(Ve),Mt.useInstance.push(lt)};function Ve(Mt,Gn,qn,Fr){if(Gn.type===d.init)return l({filters:[]},Mt);if(Gn.type===d.resetFilters)return l({},Mt,{filters:Fr.initialState.filters||[]});if(Gn.type===d.setFilter){var Ei=Gn.columnId,ii=Gn.filterValue,Wi=Fr.allColumns,Ya=Fr.filterTypes,qa=Wi.find(function(wn){return wn.id===Ei});if(!qa)throw new Error("React-Table: Could not find a column with id: "+Ei);var se=$(qa.filter,Ya||{},Kt),ye=Mt.filters.find(function(wn){return wn.id===Ei}),Xe=P(ii,ye&&ye.value);return k(se.autoRemove,Xe,qa)?l({},Mt,{filters:Mt.filters.filter(function(wn){return wn.id!==Ei})}):l({},Mt,ye?{filters:Mt.filters.map(function(wn){return wn.id===Ei?{id:Ei,value:Xe}:wn})}:{filters:[].concat(Mt.filters,[{id:Ei,value:Xe}])})}if(Gn.type===d.setAllFilters){var yt=Gn.filters,Wt=Fr.allColumns,Qt=Fr.filterTypes;return l({},Mt,{filters:P(yt,Mt.filters).filter(function(wn){var fr=Wt.find(function(Or){return Or.id===wn.id});return!k($(fr.filter,Qt||{},Kt).autoRemove,wn.value,fr)})})}}function lt(Mt){var Gn=Mt.data,qn=Mt.rows,Fr=Mt.flatRows,Ei=Mt.rowsById,ii=Mt.allColumns,Wi=Mt.filterTypes,Ya=Mt.manualFilters,qa=Mt.defaultCanFilter,se=qa!==void 0&&qa,ye=Mt.disableFilters,Xe=Mt.state.filters,yt=Mt.dispatch,Wt=Mt.autoResetFilters,Qt=Wt===void 0||Wt,wn=s.useCallback(function(vi,Xa){yt({type:d.setFilter,columnId:vi,filterValue:Xa})},[yt]),fr=s.useCallback(function(vi){yt({type:d.setAllFilters,filters:vi})},[yt]);ii.forEach(function(vi){var Xa=vi.id,Ko=vi.accessor,So=vi.defaultCanFilter,Lo=vi.disableFilters;vi.canFilter=Ko?Z(Lo!==!0&&void 0,ye!==!0&&void 0,!0):Z(So,se,!1),vi.setFilter=function(Ee){return wn(vi.id,Ee)};var us=Xe.find(function(Ee){return Ee.id===Xa});vi.filterValue=us&&us.value});var Or=s.useMemo(function(){if(Ya||!Xe.length)return[qn,Fr,Ei];var vi=[],Xa={};return[function Ko(So,Lo){Lo===void 0&&(Lo=0);var us=So;return(us=Xe.reduce(function(Ee,Y){var z=Y.id,B=Y.value,le=ii.find(function(Je){return Je.id===z});if(!le)return Ee;Lo===0&&(le.preFilteredRows=Ee);var Le=$(le.filter,Wi||{},Kt);return Le?(le.filteredRows=Le(Ee,[z],B),le.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+le.id+"."),Ee)},So)).forEach(function(Ee){vi.push(Ee),Xa[Ee.id]=Ee,Ee.subRows&&(Ee.subRows=Ee.subRows&&Ee.subRows.length>0?Ko(Ee.subRows,Lo+1):Ee.subRows)}),us}(qn),vi,Xa]},[Ya,Xe,qn,Fr,Ei,ii,Wi]),Si=Or[0],Fi=Or[1],Bi=Or[2];s.useMemo(function(){ii.filter(function(vi){return!Xe.find(function(Xa){return Xa.id===vi.id})}).forEach(function(vi){vi.preFilteredRows=Si,vi.filteredRows=Si})},[Si,Xe,ii]);var Ui=R(Qt);A(function(){Ui()&&yt({type:d.resetFilters})},[yt,Ya?null:Gn]),Object.assign(Mt,{preFilteredRows:qn,preFilteredFlatRows:Fr,preFilteredRowsById:Ei,filteredRows:Si,filteredFlatRows:Fi,filteredRowsById:Bi,rows:Si,flatRows:Fi,rowsById:Bi,setFilter:wn,setAllFilters:fr})}vt.pluginName="useFilters",d.resetGlobalFilter="resetGlobalFilter",d.setGlobalFilter="setGlobalFilter";var at=function(Mt){Mt.stateReducers.push(Xt),Mt.useInstance.push(rt)};function Xt(Mt,Gn,qn,Fr){if(Gn.type===d.resetGlobalFilter)return l({},Mt,{globalFilter:Fr.initialState.globalFilter||void 0});if(Gn.type===d.setGlobalFilter){var Ei=Gn.filterValue,ii=Fr.userFilterTypes,Wi=$(Fr.globalFilter,ii||{},Kt),Ya=P(Ei,Mt.globalFilter);return k(Wi.autoRemove,Ya)?(Mt.globalFilter,h(Mt,["globalFilter"])):l({},Mt,{globalFilter:Ya})}}function rt(Mt){var Gn=Mt.data,qn=Mt.rows,Fr=Mt.flatRows,Ei=Mt.rowsById,ii=Mt.allColumns,Wi=Mt.filterTypes,Ya=Mt.globalFilter,qa=Mt.manualGlobalFilter,se=Mt.state.globalFilter,ye=Mt.dispatch,Xe=Mt.autoResetGlobalFilter,yt=Xe===void 0||Xe,Wt=Mt.disableGlobalFilter,Qt=s.useCallback(function(Bi){ye({type:d.setGlobalFilter,filterValue:Bi})},[ye]),wn=s.useMemo(function(){if(qa||se===void 0)return[qn,Fr,Ei];var Bi=[],Ui={},vi=$(Ya,Wi||{},Kt);if(!vi)return console.warn("Could not find a valid 'globalFilter' option."),qn;ii.forEach(function(Ko){var So=Ko.disableGlobalFilter;Ko.canFilter=Z(So!==!0&&void 0,Wt!==!0&&void 0,!0)});var Xa=ii.filter(function(Ko){return Ko.canFilter===!0});return[function Ko(So){return(So=vi(So,Xa.map(function(Lo){return Lo.id}),se)).forEach(function(Lo){Bi.push(Lo),Ui[Lo.id]=Lo,Lo.subRows=Lo.subRows&&Lo.subRows.length?Ko(Lo.subRows):Lo.subRows}),So}(qn),Bi,Ui]},[qa,se,Ya,Wi,ii,qn,Fr,Ei,Wt]),fr=wn[0],Or=wn[1],Si=wn[2],Fi=R(yt);A(function(){Fi()&&ye({type:d.resetGlobalFilter})},[ye,qa?null:Gn]),Object.assign(Mt,{preGlobalFilteredRows:qn,preGlobalFilteredFlatRows:Fr,preGlobalFilteredRowsById:Ei,globalFilteredRows:fr,globalFilteredFlatRows:Or,globalFilteredRowsById:Si,rows:fr,flatRows:Or,rowsById:Si,setGlobalFilter:Qt,disableGlobalFilter:Wt})}function Rt(Mt,Gn){return Gn.reduce(function(qn,Fr){return qn+(typeof Fr=="number"?Fr:0)},0)}at.pluginName="useGlobalFilter";var rn=Object.freeze({__proto__:null,sum:Rt,min:function(Mt){var Gn=Mt[0]||0;return Mt.forEach(function(qn){typeof qn=="number"&&(Gn=Math.min(Gn,qn))}),Gn},max:function(Mt){var Gn=Mt[0]||0;return Mt.forEach(function(qn){typeof qn=="number"&&(Gn=Math.max(Gn,qn))}),Gn},minMax:function(Mt){var Gn=Mt[0]||0,qn=Mt[0]||0;return Mt.forEach(function(Fr){typeof Fr=="number"&&(Gn=Math.min(Gn,Fr),qn=Math.max(qn,Fr))}),Gn+".."+qn},average:function(Mt){return Rt(0,Mt)/Mt.length},median:function(Mt){if(!Mt.length)return null;var Gn=Math.floor(Mt.length/2),qn=[].concat(Mt).sort(function(Fr,Ei){return Fr-Ei});return Mt.length%2!=0?qn[Gn]:(qn[Gn-1]+qn[Gn])/2},unique:function(Mt){return Array.from(new Set(Mt).values())},uniqueCount:function(Mt){return new Set(Mt).size},count:function(Mt){return Mt.length}}),sn=[],Jn={};d.resetGroupBy="resetGroupBy",d.setGroupBy="setGroupBy",d.toggleGroupBy="toggleGroupBy";var ze=function(Mt){Mt.getGroupByToggleProps=[st],Mt.stateReducers.push(en),Mt.visibleColumnsDeps.push(function(Gn,qn){var Fr=qn.instance;return[].concat(Gn,[Fr.state.groupBy])}),Mt.visibleColumns.push(wt),Mt.useInstance.push(Ut),Mt.prepareRow.push(on)};ze.pluginName="useGroupBy";var st=function(Mt,Gn){var qn=Gn.header;return[Mt,{onClick:qn.canGroupBy?function(Fr){Fr.persist(),qn.toggleGroupBy()}:void 0,style:{cursor:qn.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function en(Mt,Gn,qn,Fr){if(Gn.type===d.init)return l({groupBy:[]},Mt);if(Gn.type===d.resetGroupBy)return l({},Mt,{groupBy:Fr.initialState.groupBy||[]});if(Gn.type===d.setGroupBy)return l({},Mt,{groupBy:Gn.value});if(Gn.type===d.toggleGroupBy){var Ei=Gn.columnId,ii=Gn.value,Wi=ii!==void 0?ii:!Mt.groupBy.includes(Ei);return l({},Mt,Wi?{groupBy:[].concat(Mt.groupBy,[Ei])}:{groupBy:Mt.groupBy.filter(function(Ya){return Ya!==Ei})})}}function wt(Mt,Gn){var qn=Gn.instance.state.groupBy,Fr=qn.map(function(ii){return Mt.find(function(Wi){return Wi.id===ii})}).filter(Boolean),Ei=Mt.filter(function(ii){return!qn.includes(ii.id)});return(Mt=[].concat(Fr,Ei)).forEach(function(ii){ii.isGrouped=qn.includes(ii.id),ii.groupedIndex=qn.indexOf(ii.id)}),Mt}var Ke={};function Ut(Mt){var Gn=Mt.data,qn=Mt.rows,Fr=Mt.flatRows,Ei=Mt.rowsById,ii=Mt.allColumns,Wi=Mt.flatHeaders,Ya=Mt.groupByFn,qa=Ya===void 0?Tn:Ya,se=Mt.manualGroupBy,ye=Mt.aggregations,Xe=ye===void 0?Ke:ye,yt=Mt.plugins,Wt=Mt.state.groupBy,Qt=Mt.dispatch,wn=Mt.autoResetGroupBy,fr=wn===void 0||wn,Or=Mt.disableGroupBy,Si=Mt.defaultCanGroupBy,Fi=Mt.getHooks;x(yt,["useColumnOrder","useFilters"],"useGroupBy");var Bi=R(Mt);ii.forEach(function(le){var Le=le.accessor,Je=le.defaultGroupBy,Ct=le.disableGroupBy;le.canGroupBy=Le?Z(le.canGroupBy,Ct!==!0&&void 0,Or!==!0&&void 0,!0):Z(le.canGroupBy,Je,Si,!1),le.canGroupBy&&(le.toggleGroupBy=function(){return Mt.toggleGroupBy(le.id)}),le.Aggregated=le.Aggregated||le.Cell});var Ui=s.useCallback(function(le,Le){Qt({type:d.toggleGroupBy,columnId:le,value:Le})},[Qt]),vi=s.useCallback(function(le){Qt({type:d.setGroupBy,value:le})},[Qt]);Wi.forEach(function(le){le.getGroupByToggleProps=E(Fi().getGroupByToggleProps,{instance:Bi(),header:le})});var Xa=s.useMemo(function(){if(se||!Wt.length)return[qn,Fr,Ei,sn,Jn,Fr,Ei];var le=Wt.filter(function(ei){return ii.find(function(mi){return mi.id===ei})}),Le=[],Je={},Ct=[],Vt={},bn=[],Hn={},br=function ei(mi,Li,na){if(Li===void 0&&(Li=0),Li===le.length)return mi.map(function(Ha){return l({},Ha,{depth:Li})});var ji=le[Li],$a=qa(mi,ji);return Object.entries($a).map(function(Ha,Eo){var Uo=Ha[0],Ms=Ha[1],er=ji+":"+Uo,Ar=ei(Ms,Li+1,er=na?na+">"+er:er),Kr=Li?q(Ms,"leafRows"):Ms,ur=function(Pi,aa,Fa){var tn={};return ii.forEach(function(cn){if(le.includes(cn.id))tn[cn.id]=aa[0]?aa[0].values[cn.id]:null;else{var nr=typeof cn.aggregate=="function"?cn.aggregate:Xe[cn.aggregate]||rn[cn.aggregate];if(nr){var ir=aa.map(function(ua){return ua.values[cn.id]}),Lr=Pi.map(function(ua){var _a=ua.values[cn.id];if(!Fa&&cn.aggregateValue){var Ka=typeof cn.aggregateValue=="function"?cn.aggregateValue:Xe[cn.aggregateValue]||rn[cn.aggregateValue];if(!Ka)throw console.info({column:cn}),new Error("React Table: Invalid column.aggregateValue option for column listed above");_a=Ka(_a,ua,cn)}return _a});tn[cn.id]=nr(Lr,ir)}else{if(cn.aggregate)throw console.info({column:cn}),new Error("React Table: Invalid column.aggregate option for column listed above");tn[cn.id]=null}}}),tn}(Kr,Ms,Li),Gr={id:er,isGrouped:!0,groupByID:ji,groupByVal:Uo,values:ur,subRows:Ar,leafRows:Kr,depth:Li,index:Eo};return Ar.forEach(function(Pi){Le.push(Pi),Je[Pi.id]=Pi,Pi.isGrouped?(Ct.push(Pi),Vt[Pi.id]=Pi):(bn.push(Pi),Hn[Pi.id]=Pi)}),Gr})}(qn);return br.forEach(function(ei){Le.push(ei),Je[ei.id]=ei,ei.isGrouped?(Ct.push(ei),Vt[ei.id]=ei):(bn.push(ei),Hn[ei.id]=ei)}),[br,Le,Je,Ct,Vt,bn,Hn]},[se,Wt,qn,Fr,Ei,ii,Xe,qa]),Ko=Xa[0],So=Xa[1],Lo=Xa[2],us=Xa[3],Ee=Xa[4],Y=Xa[5],z=Xa[6],B=R(fr);A(function(){B()&&Qt({type:d.resetGroupBy})},[Qt,se?null:Gn]),Object.assign(Mt,{preGroupedRows:qn,preGroupedFlatRow:Fr,preGroupedRowsById:Ei,groupedRows:Ko,groupedFlatRows:So,groupedRowsById:Lo,onlyGroupedFlatRows:us,onlyGroupedRowsById:Ee,nonGroupedFlatRows:Y,nonGroupedRowsById:z,rows:Ko,flatRows:So,rowsById:Lo,toggleGroupBy:Ui,setGroupBy:vi})}function on(Mt){Mt.allCells.forEach(function(Gn){var qn;Gn.isGrouped=Gn.column.isGrouped&&Gn.column.id===Mt.groupByID,Gn.isPlaceholder=!Gn.isGrouped&&Gn.column.isGrouped,Gn.isAggregated=!Gn.isGrouped&&!Gn.isPlaceholder&&((qn=Mt.subRows)==null?void 0:qn.length)})}function Tn(Mt,Gn){return Mt.reduce(function(qn,Fr,Ei){var ii=""+Fr.values[Gn];return qn[ii]=Array.isArray(qn[ii])?qn[ii]:[],qn[ii].push(Fr),qn},{})}var An=/([0-9]+)/gm;function Zt(Mt,Gn){return Mt===Gn?0:Mt>Gn?1:-1}function ot(Mt,Gn,qn){return[Mt.values[qn],Gn.values[qn]]}function We(Mt){return typeof Mt=="number"?isNaN(Mt)||Mt===1/0||Mt===-1/0?"":String(Mt):typeof Mt=="string"?Mt:""}var Ft=Object.freeze({__proto__:null,alphanumeric:function(Mt,Gn,qn){var Fr=ot(Mt,Gn,qn),Ei=Fr[0],ii=Fr[1];for(Ei=We(Ei),ii=We(ii),Ei=Ei.split(An).filter(Boolean),ii=ii.split(An).filter(Boolean);Ei.length&&ii.length;){var Wi=Ei.shift(),Ya=ii.shift(),qa=parseInt(Wi,10),se=parseInt(Ya,10),ye=[qa,se].sort();if(isNaN(ye[0])){if(Wi>Ya)return 1;if(Ya>Wi)return-1}else{if(isNaN(ye[1]))return isNaN(qa)?-1:1;if(qa>se)return 1;if(se>qa)return-1}}return Ei.length-ii.length},datetime:function(Mt,Gn,qn){var Fr=ot(Mt,Gn,qn),Ei=Fr[0],ii=Fr[1];return Zt(Ei=Ei.getTime(),ii=ii.getTime())},basic:function(Mt,Gn,qn){var Fr=ot(Mt,Gn,qn);return Zt(Fr[0],Fr[1])},string:function(Mt,Gn,qn){var Fr=ot(Mt,Gn,qn),Ei=Fr[0],ii=Fr[1];for(Ei=Ei.split("").filter(Boolean),ii=ii.split("").filter(Boolean);Ei.length&&ii.length;){var Wi=Ei.shift(),Ya=ii.shift(),qa=Wi.toLowerCase(),se=Ya.toLowerCase();if(qa>se)return 1;if(se>qa)return-1;if(Wi>Ya)return 1;if(Ya>Wi)return-1}return Ei.length-ii.length},number:function(Mt,Gn,qn){var Fr=ot(Mt,Gn,qn),Ei=Fr[0],ii=Fr[1],Wi=/[^0-9.]/gi;return Zt(Ei=Number(String(Ei).replace(Wi,"")),ii=Number(String(ii).replace(Wi,"")))}});d.resetSortBy="resetSortBy",d.setSortBy="setSortBy",d.toggleSortBy="toggleSortBy",d.clearSortBy="clearSortBy",y.sortType="alphanumeric",y.sortDescFirst=!1;var it=function(Mt){Mt.getSortByToggleProps=[qt],Mt.stateReducers.push(vn),Mt.useInstance.push(fn)};it.pluginName="useSortBy";var qt=function(Mt,Gn){var qn=Gn.instance,Fr=Gn.column,Ei=qn.isMultiSortEvent,ii=Ei===void 0?function(Wi){return Wi.shiftKey}:Ei;return[Mt,{onClick:Fr.canSort?function(Wi){Wi.persist(),Fr.toggleSortBy(void 0,!qn.disableMultiSort&&ii(Wi))}:void 0,style:{cursor:Fr.canSort?"pointer":void 0},title:Fr.canSort?"Toggle SortBy":void 0}]};function vn(Mt,Gn,qn,Fr){if(Gn.type===d.init)return l({sortBy:[]},Mt);if(Gn.type===d.resetSortBy)return l({},Mt,{sortBy:Fr.initialState.sortBy||[]});if(Gn.type===d.clearSortBy)return l({},Mt,{sortBy:Mt.sortBy.filter(function(Bi){return Bi.id!==Gn.columnId})});if(Gn.type===d.setSortBy)return l({},Mt,{sortBy:Gn.sortBy});if(Gn.type===d.toggleSortBy){var Ei,ii=Gn.columnId,Wi=Gn.desc,Ya=Gn.multi,qa=Fr.allColumns,se=Fr.disableMultiSort,ye=Fr.disableSortRemove,Xe=Fr.disableMultiRemove,yt=Fr.maxMultiSortColCount,Wt=yt===void 0?Number.MAX_SAFE_INTEGER:yt,Qt=Mt.sortBy,wn=qa.find(function(Bi){return Bi.id===ii}).sortDescFirst,fr=Qt.find(function(Bi){return Bi.id===ii}),Or=Qt.findIndex(function(Bi){return Bi.id===ii}),Si=Wi!=null,Fi=[];return(Ei=!se&&Ya?fr?"toggle":"add":Or!==Qt.length-1||Qt.length!==1?"replace":fr?"toggle":"replace")!="toggle"||ye||Si||Ya&&Xe||!(fr&&fr.desc&&!wn||!fr.desc&&wn)||(Ei="remove"),Ei==="replace"?Fi=[{id:ii,desc:Si?Wi:wn}]:Ei==="add"?(Fi=[].concat(Qt,[{id:ii,desc:Si?Wi:wn}])).splice(0,Fi.length-Wt):Ei==="toggle"?Fi=Qt.map(function(Bi){return Bi.id===ii?l({},Bi,{desc:Si?Wi:!fr.desc}):Bi}):Ei==="remove"&&(Fi=Qt.filter(function(Bi){return Bi.id!==ii})),l({},Mt,{sortBy:Fi})}}function fn(Mt){var Gn=Mt.data,qn=Mt.rows,Fr=Mt.flatRows,Ei=Mt.allColumns,ii=Mt.orderByFn,Wi=ii===void 0?Tt:ii,Ya=Mt.sortTypes,qa=Mt.manualSortBy,se=Mt.defaultCanSort,ye=Mt.disableSortBy,Xe=Mt.flatHeaders,yt=Mt.state.sortBy,Wt=Mt.dispatch,Qt=Mt.plugins,wn=Mt.getHooks,fr=Mt.autoResetSortBy,Or=fr===void 0||fr;x(Qt,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var Si=s.useCallback(function(So){Wt({type:d.setSortBy,sortBy:So})},[Wt]),Fi=s.useCallback(function(So,Lo,us){Wt({type:d.toggleSortBy,columnId:So,desc:Lo,multi:us})},[Wt]),Bi=R(Mt);Xe.forEach(function(So){var Lo=So.accessor,us=So.canSort,Ee=So.disableSortBy,Y=So.id,z=Lo?Z(Ee!==!0&&void 0,ye!==!0&&void 0,!0):Z(se,us,!1);So.canSort=z,So.canSort&&(So.toggleSortBy=function(le,Le){return Fi(So.id,le,Le)},So.clearSortBy=function(){Wt({type:d.clearSortBy,columnId:So.id})}),So.getSortByToggleProps=E(wn().getSortByToggleProps,{instance:Bi(),column:So});var B=yt.find(function(le){return le.id===Y});So.isSorted=!!B,So.sortedIndex=yt.findIndex(function(le){return le.id===Y}),So.isSortedDesc=So.isSorted?B.desc:void 0});var Ui=s.useMemo(function(){if(qa||!yt.length)return[qn,Fr];var So=[],Lo=yt.filter(function(us){return Ei.find(function(Ee){return Ee.id===us.id})});return[function us(Ee){var Y=Wi(Ee,Lo.map(function(z){var B=Ei.find(function(Je){return Je.id===z.id});if(!B)throw new Error("React-Table: Could not find a column with id: "+z.id+" while sorting");var le=B.sortType,Le=J(le)||(Ya||{})[le]||Ft[le];if(!Le)throw new Error("React-Table: Could not find a valid sortType of '"+le+"' for column '"+z.id+"'.");return function(Je,Ct){return Le(Je,Ct,z.id,z.desc)}}),Lo.map(function(z){var B=Ei.find(function(le){return le.id===z.id});return B&&B.sortInverted?z.desc:!z.desc}));return Y.forEach(function(z){So.push(z),z.subRows&&z.subRows.length!==0&&(z.subRows=us(z.subRows))}),Y}(qn),So]},[qa,yt,qn,Fr,Ei,Wi,Ya]),vi=Ui[0],Xa=Ui[1],Ko=R(Or);A(function(){Ko()&&Wt({type:d.resetSortBy})},[qa?null:Gn]),Object.assign(Mt,{preSortedRows:qn,preSortedFlatRows:Fr,sortedRows:vi,sortedFlatRows:Xa,rows:vi,flatRows:Xa,setSortBy:Si,toggleSortBy:Fi})}function Tt(Mt,Gn,qn){return[].concat(Mt).sort(function(Fr,Ei){for(var ii=0;ii<Gn.length;ii+=1){var Wi=Gn[ii],Ya=qn[ii]===!1||qn[ii]==="desc",qa=Wi(Fr,Ei);if(qa!==0)return Ya?-qa:qa}return qn[0]?Fr.index-Ei.index:Ei.index-Fr.index})}d.resetPage="resetPage",d.gotoPage="gotoPage",d.setPageSize="setPageSize";var dn=function(Mt){Mt.stateReducers.push(mn),Mt.useInstance.push(Kn)};function mn(Mt,Gn,qn,Fr){if(Gn.type===d.init)return l({pageSize:10,pageIndex:0},Mt);if(Gn.type===d.resetPage)return l({},Mt,{pageIndex:Fr.initialState.pageIndex||0});if(Gn.type===d.gotoPage){var Ei=Fr.pageCount,ii=Fr.page,Wi=P(Gn.pageIndex,Mt.pageIndex),Ya=!1;return Wi>Mt.pageIndex?Ya=Ei===-1?ii.length>=Mt.pageSize:Wi<Ei:Wi<Mt.pageIndex&&(Ya=Wi>-1),Ya?l({},Mt,{pageIndex:Wi}):Mt}if(Gn.type===d.setPageSize){var qa=Gn.pageSize,se=Mt.pageSize*Mt.pageIndex;return l({},Mt,{pageIndex:Math.floor(se/qa),pageSize:qa})}}function Kn(Mt){var Gn=Mt.rows,qn=Mt.autoResetPage,Fr=qn===void 0||qn,Ei=Mt.manualExpandedKey,ii=Ei===void 0?"expanded":Ei,Wi=Mt.plugins,Ya=Mt.pageCount,qa=Mt.paginateExpandedRows,se=qa===void 0||qa,ye=Mt.expandSubRows,Xe=ye===void 0||ye,yt=Mt.state,Wt=yt.pageSize,Qt=yt.pageIndex,wn=yt.expanded,fr=yt.globalFilter,Or=yt.filters,Si=yt.groupBy,Fi=yt.sortBy,Bi=Mt.dispatch,Ui=Mt.data,vi=Mt.manualPagination;x(Wi,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var Xa=R(Fr);A(function(){Xa()&&Bi({type:d.resetPage})},[Bi,vi?null:Ui,fr,Or,Si,Fi]);var Ko=vi?Ya:Math.ceil(Gn.length/Wt),So=s.useMemo(function(){return Ko>0?[].concat(new Array(Ko)).fill(null).map(function(Le,Je){return Je}):[]},[Ko]),Lo=s.useMemo(function(){var Le;if(vi)Le=Gn;else{var Je=Wt*Qt,Ct=Je+Wt;Le=Gn.slice(Je,Ct)}return se?Le:L(Le,{manualExpandedKey:ii,expanded:wn,expandSubRows:Xe})},[Xe,wn,ii,vi,Qt,Wt,se,Gn]),us=Qt>0,Ee=Ko===-1?Lo.length>=Wt:Qt<Ko-1,Y=s.useCallback(function(Le){Bi({type:d.gotoPage,pageIndex:Le})},[Bi]),z=s.useCallback(function(){return Y(function(Le){return Le-1})},[Y]),B=s.useCallback(function(){return Y(function(Le){return Le+1})},[Y]),le=s.useCallback(function(Le){Bi({type:d.setPageSize,pageSize:Le})},[Bi]);Object.assign(Mt,{pageOptions:So,pageCount:Ko,page:Lo,canPreviousPage:us,canNextPage:Ee,gotoPage:Y,previousPage:z,nextPage:B,setPageSize:le})}dn.pluginName="usePagination",d.resetPivot="resetPivot",d.togglePivot="togglePivot";var Dn=function(Mt){Mt.getPivotToggleProps=[or],Mt.stateReducers.push(Qr),Mt.useInstanceAfterData.push(ni),Mt.allColumns.push(yr),Mt.accessValue.push(si),Mt.materializedColumns.push(Yr),Mt.materializedColumnsDeps.push(Ci),Mt.visibleColumns.push(Ni),Mt.visibleColumnsDeps.push(fa),Mt.useInstance.push(ha),Mt.prepareRow.push(Ca)};Dn.pluginName="usePivotColumns";var Vn=[],or=function(Mt,Gn){var qn=Gn.header;return[Mt,{onClick:qn.canPivot?function(Fr){Fr.persist(),qn.togglePivot()}:void 0,style:{cursor:qn.canPivot?"pointer":void 0},title:"Toggle Pivot"}]};function Qr(Mt,Gn,qn,Fr){if(Gn.type===d.init)return l({pivotColumns:Vn},Mt);if(Gn.type===d.resetPivot)return l({},Mt,{pivotColumns:Fr.initialState.pivotColumns||Vn});if(Gn.type===d.togglePivot){var Ei=Gn.columnId,ii=Gn.value,Wi=ii!==void 0?ii:!Mt.pivotColumns.includes(Ei);return l({},Mt,Wi?{pivotColumns:[].concat(Mt.pivotColumns,[Ei])}:{pivotColumns:Mt.pivotColumns.filter(function(Ya){return Ya!==Ei})})}}function ni(Mt){Mt.allColumns.forEach(function(Gn){Gn.isPivotSource=Mt.state.pivotColumns.includes(Gn.id)})}function yr(Mt,Gn){var qn=Gn.instance;return Mt.forEach(function(Fr){Fr.isPivotSource=qn.state.pivotColumns.includes(Fr.id),Fr.uniqueValues=new Set}),Mt}function si(Mt,Gn){var qn=Gn.column;return qn.uniqueValues&&Mt!==void 0&&qn.uniqueValues.add(Mt),Mt}function Yr(Mt,Gn){var qn=Gn.instance,Fr=qn.allColumns,Ei=qn.state;if(!Ei.pivotColumns.length||!Ei.groupBy||!Ei.groupBy.length)return Mt;var ii=Ei.pivotColumns.map(function(qa){return Fr.find(function(se){return se.id===qa})}).filter(Boolean),Wi=Fr.filter(function(qa){return!qa.isPivotSource&&!Ei.groupBy.includes(qa.id)&&!Ei.pivotColumns.includes(qa.id)}),Ya=_(function qa(se,ye,Xe){se===void 0&&(se=0),Xe===void 0&&(Xe=[]);var yt=ii[se];return yt?Array.from(yt.uniqueValues).sort().map(function(Wt){var Qt=l({},yt,{Header:yt.PivotHeader||typeof yt.header=="string"?yt.Header+": "+Wt:Wt,isPivotGroup:!0,parent:ye,depth:se,id:ye?ye.id+"."+yt.id+"."+Wt:yt.id+"."+Wt,pivotValue:Wt});return Qt.columns=qa(se+1,Qt,[].concat(Xe,[function(wn){return wn.values[yt.id]===Wt}])),Qt}):Wi.map(function(Wt){return l({},Wt,{canPivot:!1,isPivoted:!0,parent:ye,depth:se,id:""+(ye?ye.id+"."+Wt.id:Wt.id),accessor:function(Qt,wn,fr){if(Xe.every(function(Or){return Or(fr)}))return fr.values[Wt.id]}})})}());return[].concat(Mt,Ya)}function Ci(Mt,Gn){var qn=Gn.instance.state,Fr=qn.pivotColumns,Ei=qn.groupBy;return[].concat(Mt,[Fr,Ei])}function Ni(Mt,Gn){var qn=Gn.instance.state;return Mt=Mt.filter(function(Fr){return!Fr.isPivotSource}),qn.pivotColumns.length&&qn.groupBy&&qn.groupBy.length&&(Mt=Mt.filter(function(Fr){return Fr.isGrouped||Fr.isPivoted})),Mt}function fa(Mt,Gn){var qn=Gn.instance;return[].concat(Mt,[qn.state.pivotColumns,qn.state.groupBy])}function ha(Mt){var Gn=Mt.columns,qn=Mt.allColumns,Fr=Mt.flatHeaders,Ei=Mt.getHooks,ii=Mt.plugins,Wi=Mt.dispatch,Ya=Mt.autoResetPivot,qa=Ya===void 0||Ya,se=Mt.manaulPivot,ye=Mt.disablePivot,Xe=Mt.defaultCanPivot;x(ii,["useGroupBy"],"usePivotColumns");var yt=R(Mt);qn.forEach(function(Qt){var wn=Qt.accessor,fr=Qt.defaultPivot,Or=Qt.disablePivot;Qt.canPivot=wn?Z(Qt.canPivot,Or!==!0&&void 0,ye!==!0&&void 0,!0):Z(Qt.canPivot,fr,Xe,!1),Qt.canPivot&&(Qt.togglePivot=function(){return Mt.togglePivot(Qt.id)}),Qt.Aggregated=Qt.Aggregated||Qt.Cell}),Fr.forEach(function(Qt){Qt.getPivotToggleProps=E(Ei().getPivotToggleProps,{instance:yt(),header:Qt})});var Wt=R(qa);A(function(){Wt()&&Wi({type:d.resetPivot})},[Wi,se?null:Gn]),Object.assign(Mt,{togglePivot:function(Qt,wn){Wi({type:d.togglePivot,columnId:Qt,value:wn})}})}function Ca(Mt){Mt.allCells.forEach(function(Gn){Gn.isPivoted=Gn.column.isPivoted})}d.resetSelectedRows="resetSelectedRows",d.toggleAllRowsSelected="toggleAllRowsSelected",d.toggleRowSelected="toggleRowSelected",d.toggleAllPageRowsSelected="toggleAllPageRowsSelected";var li=function(Mt){Mt.getToggleRowSelectedProps=[la],Mt.getToggleAllRowsSelectedProps=[Oa],Mt.getToggleAllPageRowsSelectedProps=[wa],Mt.stateReducers.push(vo),Mt.useInstance.push(Qn),Mt.prepareRow.push(_r)};li.pluginName="useRowSelect";var la=function(Mt,Gn){var qn=Gn.instance,Fr=Gn.row,Ei=qn.manualRowSelectedKey,ii=Ei===void 0?"isSelected":Ei;return[Mt,{onChange:function(Wi){Fr.toggleRowSelected(Wi.target.checked)},style:{cursor:"pointer"},checked:!(!Fr.original||!Fr.original[ii])||Fr.isSelected,title:"Toggle Row Selected",indeterminate:Fr.isSomeSelected}]},Oa=function(Mt,Gn){var qn=Gn.instance;return[Mt,{onChange:function(Fr){qn.toggleAllRowsSelected(Fr.target.checked)},style:{cursor:"pointer"},checked:qn.isAllRowsSelected,title:"Toggle All Rows Selected",indeterminate:!!(!qn.isAllRowsSelected&&Object.keys(qn.state.selectedRowIds).length)}]},wa=function(Mt,Gn){var qn=Gn.instance;return[Mt,{onChange:function(Fr){qn.toggleAllPageRowsSelected(Fr.target.checked)},style:{cursor:"pointer"},checked:qn.isAllPageRowsSelected,title:"Toggle All Current Page Rows Selected",indeterminate:!!(!qn.isAllPageRowsSelected&&qn.page.some(function(Fr){var Ei=Fr.id;return qn.state.selectedRowIds[Ei]}))}]};function vo(Mt,Gn,qn,Fr){if(Gn.type===d.init)return l({selectedRowIds:{}},Mt);if(Gn.type===d.resetSelectedRows)return l({},Mt,{selectedRowIds:Fr.initialState.selectedRowIds||{}});if(Gn.type===d.toggleAllRowsSelected){var Ei=Gn.value,ii=Fr.isAllRowsSelected,Wi=Fr.rowsById,Ya=Fr.nonGroupedRowsById,qa=Ya===void 0?Wi:Ya,se=Ei!==void 0?Ei:!ii,ye=Object.assign({},Mt.selectedRowIds);return se?Object.keys(qa).forEach(function(Y){ye[Y]=!0}):Object.keys(qa).forEach(function(Y){delete ye[Y]}),l({},Mt,{selectedRowIds:ye})}if(Gn.type===d.toggleRowSelected){var Xe=Gn.id,yt=Gn.value,Wt=Fr.rowsById,Qt=Fr.selectSubRows,wn=Qt===void 0||Qt,fr=Fr.getSubRows,Or=Mt.selectedRowIds[Xe],Si=yt!==void 0?yt:!Or;if(Or===Si)return Mt;var Fi=l({},Mt.selectedRowIds);return function Y(z){var B=Wt[z];if(B&&(B.isGrouped||(Si?Fi[z]=!0:delete Fi[z]),wn&&fr(B)))return fr(B).forEach(function(le){return Y(le.id)})}(Xe),l({},Mt,{selectedRowIds:Fi})}if(Gn.type===d.toggleAllPageRowsSelected){var Bi=Gn.value,Ui=Fr.page,vi=Fr.rowsById,Xa=Fr.selectSubRows,Ko=Xa===void 0||Xa,So=Fr.isAllPageRowsSelected,Lo=Fr.getSubRows,us=Bi!==void 0?Bi:!So,Ee=l({},Mt.selectedRowIds);return Ui.forEach(function(Y){return function z(B){var le=vi[B];if(le.isGrouped||(us?Ee[B]=!0:delete Ee[B]),Ko&&Lo(le))return Lo(le).forEach(function(Le){return z(Le.id)})}(Y.id)}),l({},Mt,{selectedRowIds:Ee})}return Mt}function Qn(Mt){var Gn=Mt.data,qn=Mt.rows,Fr=Mt.getHooks,Ei=Mt.plugins,ii=Mt.rowsById,Wi=Mt.nonGroupedRowsById,Ya=Wi===void 0?ii:Wi,qa=Mt.autoResetSelectedRows,se=qa===void 0||qa,ye=Mt.state.selectedRowIds,Xe=Mt.selectSubRows,yt=Xe===void 0||Xe,Wt=Mt.dispatch,Qt=Mt.page,wn=Mt.getSubRows;x(Ei,["useFilters","useGroupBy","useSortBy","useExpanded","usePagination"],"useRowSelect");var fr=s.useMemo(function(){var Lo=[];return qn.forEach(function(us){var Ee=yt?function Y(z,B,le){if(B[z.id])return!0;var Le=le(z);if(Le&&Le.length){var Je=!0,Ct=!1;return Le.forEach(function(Vt){Ct&&!Je||(Y(Vt,B,le)?Ct=!0:Je=!1)}),!!Je||!!Ct&&null}return!1}(us,ye,wn):!!ye[us.id];us.isSelected=!!Ee,us.isSomeSelected=Ee===null,Ee&&Lo.push(us)}),Lo},[qn,yt,ye,wn]),Or=!!(Object.keys(Ya).length&&Object.keys(ye).length),Si=Or;Or&&Object.keys(Ya).some(function(Lo){return!ye[Lo]})&&(Or=!1),Or||Qt&&Qt.length&&Qt.some(function(Lo){var us=Lo.id;return!ye[us]})&&(Si=!1);var Fi=R(se);A(function(){Fi()&&Wt({type:d.resetSelectedRows})},[Wt,Gn]);var Bi=s.useCallback(function(Lo){return Wt({type:d.toggleAllRowsSelected,value:Lo})},[Wt]),Ui=s.useCallback(function(Lo){return Wt({type:d.toggleAllPageRowsSelected,value:Lo})},[Wt]),vi=s.useCallback(function(Lo,us){return Wt({type:d.toggleRowSelected,id:Lo,value:us})},[Wt]),Xa=R(Mt),Ko=E(Fr().getToggleAllRowsSelectedProps,{instance:Xa()}),So=E(Fr().getToggleAllPageRowsSelectedProps,{instance:Xa()});Object.assign(Mt,{selectedFlatRows:fr,isAllRowsSelected:Or,isAllPageRowsSelected:Si,toggleRowSelected:vi,toggleAllRowsSelected:Bi,getToggleAllRowsSelectedProps:Ko,getToggleAllPageRowsSelectedProps:So,toggleAllPageRowsSelected:Ui})}function _r(Mt,Gn){var qn=Gn.instance;Mt.toggleRowSelected=function(Fr){return qn.toggleRowSelected(Mt.id,Fr)},Mt.getToggleRowSelectedProps=E(qn.getHooks().getToggleRowSelectedProps,{instance:qn,row:Mt})}var $r=function(Mt){return{}},Ti=function(Mt){return{}};d.setRowState="setRowState",d.setCellState="setCellState",d.resetRowState="resetRowState";var xt=function(Mt){Mt.stateReducers.push(On),Mt.useInstance.push(Zn),Mt.prepareRow.push(Ur)};function On(Mt,Gn,qn,Fr){var Ei=Fr.initialRowStateAccessor,ii=Ei===void 0?$r:Ei,Wi=Fr.initialCellStateAccessor,Ya=Wi===void 0?Ti:Wi,qa=Fr.rowsById;if(Gn.type===d.init)return l({rowState:{}},Mt);if(Gn.type===d.resetRowState)return l({},Mt,{rowState:Fr.initialState.rowState||{}});if(Gn.type===d.setRowState){var se,ye=Gn.rowId,Xe=Gn.value,yt=Mt.rowState[ye]!==void 0?Mt.rowState[ye]:ii(qa[ye]);return l({},Mt,{rowState:l({},Mt.rowState,(se={},se[ye]=P(Xe,yt),se))})}if(Gn.type===d.setCellState){var Wt,Qt,wn,fr,Or,Si=Gn.rowId,Fi=Gn.columnId,Bi=Gn.value,Ui=Mt.rowState[Si]!==void 0?Mt.rowState[Si]:ii(qa[Si]),vi=(Ui==null||(Wt=Ui.cellState)==null?void 0:Wt[Fi])!==void 0?Ui.cellState[Fi]:Ya((Qt=qa[Si])==null||(wn=Qt.cells)==null?void 0:wn.find(function(Xa){return Xa.column.id===Fi}));return l({},Mt,{rowState:l({},Mt.rowState,(Or={},Or[Si]=l({},Ui,{cellState:l({},Ui.cellState||{},(fr={},fr[Fi]=P(Bi,vi),fr))}),Or))})}}function Zn(Mt){var Gn=Mt.autoResetRowState,qn=Gn===void 0||Gn,Fr=Mt.data,Ei=Mt.dispatch,ii=s.useCallback(function(qa,se){return Ei({type:d.setRowState,rowId:qa,value:se})},[Ei]),Wi=s.useCallback(function(qa,se,ye){return Ei({type:d.setCellState,rowId:qa,columnId:se,value:ye})},[Ei]),Ya=R(qn);A(function(){Ya()&&Ei({type:d.resetRowState})},[Fr]),Object.assign(Mt,{setRowState:ii,setCellState:Wi})}function Ur(Mt,Gn){var qn=Gn.instance,Fr=qn.initialRowStateAccessor,Ei=Fr===void 0?$r:Fr,ii=qn.initialCellStateAccessor,Wi=ii===void 0?Ti:ii,Ya=qn.state.rowState;Mt&&(Mt.state=Ya[Mt.id]!==void 0?Ya[Mt.id]:Ei(Mt),Mt.setState=function(qa){return qn.setRowState(Mt.id,qa)},Mt.cells.forEach(function(qa){Mt.state.cellState||(Mt.state.cellState={}),qa.state=Mt.state.cellState[qa.column.id]!==void 0?Mt.state.cellState[qa.column.id]:Wi(qa),qa.setState=function(se){return qn.setCellState(Mt.id,qa.column.id,se)}}))}xt.pluginName="useRowState",d.resetColumnOrder="resetColumnOrder",d.setColumnOrder="setColumnOrder";var En=function(Mt){Mt.stateReducers.push(ln),Mt.visibleColumnsDeps.push(function(Gn,qn){var Fr=qn.instance;return[].concat(Gn,[Fr.state.columnOrder])}),Mt.visibleColumns.push(jn),Mt.useInstance.push(rr)};function ln(Mt,Gn,qn,Fr){return Gn.type===d.init?l({columnOrder:[]},Mt):Gn.type===d.resetColumnOrder?l({},Mt,{columnOrder:Fr.initialState.columnOrder||[]}):Gn.type===d.setColumnOrder?l({},Mt,{columnOrder:P(Gn.columnOrder,Mt.columnOrder)}):void 0}function jn(Mt,Gn){var qn=Gn.instance.state.columnOrder;if(!qn||!qn.length)return Mt;for(var Fr=[].concat(qn),Ei=[].concat(Mt),ii=[],Wi=function(){var Ya=Fr.shift(),qa=Ei.findIndex(function(se){return se.id===Ya});qa>-1&&ii.push(Ei.splice(qa,1)[0])};Ei.length&&Fr.length;)Wi();return[].concat(ii,Ei)}function rr(Mt){var Gn=Mt.dispatch;Mt.setColumnOrder=s.useCallback(function(qn){return Gn({type:d.setColumnOrder,columnOrder:qn})},[Gn])}En.pluginName="useColumnOrder",y.canResize=!0,d.columnStartResizing="columnStartResizing",d.columnResizing="columnResizing",d.columnDoneResizing="columnDoneResizing",d.resetResize="resetResize";var Mr=function(Mt){Mt.getResizerProps=[Ir],Mt.getHeaderProps.push({style:{position:"relative"}}),Mt.stateReducers.push(Zr),Mt.useInstance.push(Jr),Mt.useInstanceBeforeDimensions.push(lr)},Ir=function(Mt,Gn){var qn=Gn.instance,Fr=Gn.header,Ei=qn.dispatch,ii=function(Wi,Ya){var qa=!1;if(Wi.type==="touchstart"){if(Wi.touches&&Wi.touches.length>1)return;qa=!0}var se,ye,Xe=function(Fi){var Bi=[];return function Ui(vi){vi.columns&&vi.columns.length&&vi.columns.map(Ui),Bi.push(vi)}(Fi),Bi}(Ya).map(function(Fi){return[Fi.id,Fi.totalWidth]}),yt=qa?Math.round(Wi.touches[0].clientX):Wi.clientX,Wt=function(){window.cancelAnimationFrame(se),se=null,Ei({type:d.columnDoneResizing})},Qt=function(){window.cancelAnimationFrame(se),se=null,Ei({type:d.columnResizing,clientX:ye})},wn=function(Fi){ye=Fi,se||(se=window.requestAnimationFrame(Qt))},fr={mouse:{moveEvent:"mousemove",moveHandler:function(Fi){return wn(Fi.clientX)},upEvent:"mouseup",upHandler:function(Fi){document.removeEventListener("mousemove",fr.mouse.moveHandler),document.removeEventListener("mouseup",fr.mouse.upHandler),Wt()}},touch:{moveEvent:"touchmove",moveHandler:function(Fi){return Fi.cancelable&&(Fi.preventDefault(),Fi.stopPropagation()),wn(Fi.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(Fi){document.removeEventListener(fr.touch.moveEvent,fr.touch.moveHandler),document.removeEventListener(fr.touch.upEvent,fr.touch.moveHandler),Wt()}}},Or=qa?fr.touch:fr.mouse,Si=!!function(){if(typeof V=="boolean")return V;var Fi=!1;try{var Bi={get passive(){return Fi=!0,!1}};window.addEventListener("test",null,Bi),window.removeEventListener("test",null,Bi)}catch{Fi=!1}return V=Fi}()&&{passive:!1};document.addEventListener(Or.moveEvent,Or.moveHandler,Si),document.addEventListener(Or.upEvent,Or.upHandler,Si),Ei({type:d.columnStartResizing,columnId:Ya.id,columnWidth:Ya.totalWidth,headerIdWidths:Xe,clientX:yt})};return[Mt,{onMouseDown:function(Wi){return Wi.persist()||ii(Wi,Fr)},onTouchStart:function(Wi){return Wi.persist()||ii(Wi,Fr)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function Zr(Mt,Gn){if(Gn.type===d.init)return l({columnResizing:{columnWidths:{}}},Mt);if(Gn.type===d.resetResize)return l({},Mt,{columnResizing:{columnWidths:{}}});if(Gn.type===d.columnStartResizing){var qn=Gn.clientX,Fr=Gn.columnId,Ei=Gn.columnWidth,ii=Gn.headerIdWidths;return l({},Mt,{columnResizing:l({},Mt.columnResizing,{startX:qn,headerIdWidths:ii,columnWidth:Ei,isResizingColumn:Fr})})}if(Gn.type===d.columnResizing){var Wi=Gn.clientX,Ya=Mt.columnResizing,qa=Ya.startX,se=Ya.columnWidth,ye=Ya.headerIdWidths,Xe=(Wi-qa)/se,yt={};return(ye===void 0?[]:ye).forEach(function(Wt){var Qt=Wt[0],wn=Wt[1];yt[Qt]=Math.max(wn+wn*Xe,0)}),l({},Mt,{columnResizing:l({},Mt.columnResizing,{columnWidths:l({},Mt.columnResizing.columnWidths,{},yt)})})}return Gn.type===d.columnDoneResizing?l({},Mt,{columnResizing:l({},Mt.columnResizing,{startX:null,isResizingColumn:null})}):void 0}Mr.pluginName="useResizeColumns";var lr=function(Mt){var Gn=Mt.flatHeaders,qn=Mt.disableResizing,Fr=Mt.getHooks,Ei=Mt.state.columnResizing,ii=R(Mt);Gn.forEach(function(Wi){var Ya=Z(Wi.disableResizing!==!0&&void 0,qn!==!0&&void 0,!0);Wi.canResize=Ya,Wi.width=Ei.columnWidths[Wi.id]||Wi.originalWidth||Wi.width,Wi.isResizing=Ei.isResizingColumn===Wi.id,Ya&&(Wi.getResizerProps=E(Fr().getResizerProps,{instance:ii(),header:Wi}))})};function Jr(Mt){var Gn=Mt.plugins,qn=Mt.dispatch,Fr=Mt.autoResetResize,Ei=Fr===void 0||Fr,ii=Mt.columns;x(Gn,["useAbsoluteLayout"],"useResizeColumns");var Wi=R(Ei);A(function(){Wi()&&qn({type:d.resetResize})},[ii]);var Ya=s.useCallback(function(){return qn({type:d.resetResize})},[qn]);Object.assign(Mt,{resetResizing:Ya})}var pi={position:"absolute",top:0},Ri=function(Mt){Mt.getTableBodyProps.push(Ki),Mt.getRowProps.push(Ki),Mt.getHeaderGroupProps.push(Ki),Mt.getFooterGroupProps.push(Ki),Mt.getHeaderProps.push(function(Gn,qn){var Fr=qn.column;return[Gn,{style:l({},pi,{left:Fr.totalLeft+"px",width:Fr.totalWidth+"px"})}]}),Mt.getCellProps.push(function(Gn,qn){var Fr=qn.cell;return[Gn,{style:l({},pi,{left:Fr.column.totalLeft+"px",width:Fr.column.totalWidth+"px"})}]}),Mt.getFooterProps.push(function(Gn,qn){var Fr=qn.column;return[Gn,{style:l({},pi,{left:Fr.totalLeft+"px",width:Fr.totalWidth+"px"})}]})};Ri.pluginName="useAbsoluteLayout";var Ki=function(Mt,Gn){return[Mt,{style:{position:"relative",width:Gn.instance.totalColumnsWidth+"px"}}]},ia={display:"inline-block",boxSizing:"border-box"},Da=function(Mt,Gn){return[Mt,{style:{display:"flex",width:Gn.instance.totalColumnsWidth+"px"}}]},to=function(Mt){Mt.getRowProps.push(Da),Mt.getHeaderGroupProps.push(Da),Mt.getFooterGroupProps.push(Da),Mt.getHeaderProps.push(function(Gn,qn){var Fr=qn.column;return[Gn,{style:l({},ia,{width:Fr.totalWidth+"px"})}]}),Mt.getCellProps.push(function(Gn,qn){var Fr=qn.cell;return[Gn,{style:l({},ia,{width:Fr.column.totalWidth+"px"})}]}),Mt.getFooterProps.push(function(Gn,qn){var Fr=qn.column;return[Gn,{style:l({},ia,{width:Fr.totalWidth+"px"})}]})};function ao(Mt){Mt.getTableProps.push(Bo),Mt.getRowProps.push(jo),Mt.getHeaderGroupProps.push(jo),Mt.getFooterGroupProps.push(jo),Mt.getHeaderProps.push(Jo),Mt.getCellProps.push(Go),Mt.getFooterProps.push(wr)}to.pluginName="useBlockLayout",ao.pluginName="useFlexLayout";var Bo=function(Mt,Gn){return[Mt,{style:{minWidth:Gn.instance.totalColumnsMinWidth+"px"}}]},jo=function(Mt,Gn){return[Mt,{style:{display:"flex",flex:"1 0 auto",minWidth:Gn.instance.totalColumnsMinWidth+"px"}}]},Jo=function(Mt,Gn){var qn=Gn.column;return[Mt,{style:{boxSizing:"border-box",flex:qn.totalFlexWidth?qn.totalFlexWidth+" 0 auto":void 0,minWidth:qn.totalMinWidth+"px",width:qn.totalWidth+"px"}}]},Go=function(Mt,Gn){var qn=Gn.cell;return[Mt,{style:{boxSizing:"border-box",flex:qn.column.totalFlexWidth+" 0 auto",minWidth:qn.column.totalMinWidth+"px",width:qn.column.totalWidth+"px"}}]},wr=function(Mt,Gn){var qn=Gn.column;return[Mt,{style:{boxSizing:"border-box",flex:qn.totalFlexWidth?qn.totalFlexWidth+" 0 auto":void 0,minWidth:qn.totalMinWidth+"px",width:qn.totalWidth+"px"}}]};function qi(Mt){Mt.stateReducers.push(ai),Mt.getTableProps.push(ja),Mt.getHeaderProps.push(uo),Mt.getRowProps.push(wi)}d.columnStartResizing="columnStartResizing",d.columnResizing="columnResizing",d.columnDoneResizing="columnDoneResizing",d.resetResize="resetResize",qi.pluginName="useGridLayout";var ja=function(Mt,Gn){var qn=Gn.instance;return[Mt,{style:{display:"grid",gridTemplateColumns:qn.visibleColumns.map(function(Fr){var Ei;return qn.state.gridLayout.columnWidths[Fr.id]?qn.state.gridLayout.columnWidths[Fr.id]+"px":(Ei=qn.state.columnResizing)!=null&&Ei.isResizingColumn?qn.state.gridLayout.startWidths[Fr.id]+"px":typeof Fr.width=="number"?Fr.width+"px":Fr.width}).join(" ")}}]},uo=function(Mt,Gn){var qn=Gn.column;return[Mt,{id:"header-cell-"+qn.id,style:{position:"sticky",gridColumn:"span "+qn.totalVisibleHeaderCount}}]},wi=function(Mt,Gn){var qn=Gn.row;return qn.isExpanded?[Mt,{style:{gridColumn:"1 / "+(qn.cells.length+1)}}]:[Mt,{}]};function ai(Mt,Gn,qn,Fr){if(Gn.type===d.init)return l({gridLayout:{columnWidths:{}}},Mt);if(Gn.type===d.resetResize)return l({},Mt,{gridLayout:{columnWidths:{}}});if(Gn.type===d.columnStartResizing){var Ei=Gn.columnId,ii=Gn.headerIdWidths,Wi=za(Ei);if(Wi!==void 0){var Ya=Fr.visibleColumns.reduce(function(Bi,Ui){var vi;return l({},Bi,((vi={})[Ui.id]=za(Ui.id),vi))},{}),qa=Fr.visibleColumns.reduce(function(Bi,Ui){var vi;return l({},Bi,((vi={})[Ui.id]=Ui.minWidth,vi))},{}),se=Fr.visibleColumns.reduce(function(Bi,Ui){var vi;return l({},Bi,((vi={})[Ui.id]=Ui.maxWidth,vi))},{}),ye=ii.map(function(Bi){var Ui=Bi[0];return[Ui,za(Ui)]});return l({},Mt,{gridLayout:l({},Mt.gridLayout,{startWidths:Ya,minWidths:qa,maxWidths:se,headerIdGridWidths:ye,columnWidth:Wi})})}return Mt}if(Gn.type===d.columnResizing){var Xe=Gn.clientX,yt=Mt.columnResizing.startX,Wt=Mt.gridLayout,Qt=Wt.columnWidth,wn=Wt.minWidths,fr=Wt.maxWidths,Or=Wt.headerIdGridWidths,Si=(Xe-yt)/Qt,Fi={};return(Or===void 0?[]:Or).forEach(function(Bi){var Ui=Bi[0],vi=Bi[1];Fi[Ui]=Math.min(Math.max(wn[Ui],vi+vi*Si),fr[Ui])}),l({},Mt,{gridLayout:l({},Mt.gridLayout,{columnWidths:l({},Mt.gridLayout.columnWidths,{},Fi)})})}return Gn.type===d.columnDoneResizing?l({},Mt,{gridLayout:l({},Mt.gridLayout,{startWidths:{},minWidths:{},maxWidths:{}})}):void 0}function za(Mt){var Gn,qn=(Gn=document.getElementById("header-cell-"+Mt))==null?void 0:Gn.offsetWidth;if(qn!==void 0)return qn}i._UNSTABLE_usePivotColumns=Dn,i.actions=d,i.defaultColumn=y,i.defaultGroupByFn=Tn,i.defaultOrderByFn=Tt,i.defaultRenderer=f,i.emptyRenderer=g,i.ensurePluginOrder=x,i.flexRender=N,i.functionalUpdate=P,i.loopHooks=w,i.makePropGetter=E,i.makeRenderer=I,i.reduceHooks=S,i.safeUseLayoutEffect=T,i.useAbsoluteLayout=Ri,i.useAsyncDebounce=function(Mt,Gn){Gn===void 0&&(Gn=0);var qn=s.useRef({}),Fr=R(Mt),Ei=R(Gn);return s.useCallback(function(){var ii=v(regeneratorRuntime.mark(function Wi(){var Ya,qa,se,ye=arguments;return regeneratorRuntime.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:for(Ya=ye.length,qa=new Array(Ya),se=0;se<Ya;se++)qa[se]=ye[se];return qn.current.promise||(qn.current.promise=new Promise(function(yt,Wt){qn.current.resolve=yt,qn.current.reject=Wt})),qn.current.timeout&&clearTimeout(qn.current.timeout),qn.current.timeout=setTimeout(v(regeneratorRuntime.mark(function yt(){return regeneratorRuntime.wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:return delete qn.current.timeout,Wt.prev=1,Wt.t0=qn.current,Wt.next=5,Fr().apply(void 0,qa);case 5:Wt.t1=Wt.sent,Wt.t0.resolve.call(Wt.t0,Wt.t1),Wt.next=12;break;case 9:Wt.prev=9,Wt.t2=Wt.catch(1),qn.current.reject(Wt.t2);case 12:return Wt.prev=12,delete qn.current.promise,Wt.finish(12);case 15:case"end":return Wt.stop()}},yt,null,[[1,9,12,15]])})),Ei()),Xe.abrupt("return",qn.current.promise);case 5:case"end":return Xe.stop()}},Wi)}));return function(){return ii.apply(this,arguments)}}(),[Fr,Ei])},i.useBlockLayout=to,i.useColumnOrder=En,i.useExpanded=tt,i.useFilters=vt,i.useFlexLayout=ao,i.useGetLatest=R,i.useGlobalFilter=at,i.useGridLayout=qi,i.useGroupBy=ze,i.useMountedLayoutEffect=A,i.usePagination=dn,i.useResizeColumns=Mr,i.useRowSelect=li,i.useRowState=xt,i.useSortBy=it,i.useTable=function(Mt){for(var Gn=arguments.length,qn=new Array(Gn>1?Gn-1:0),Fr=1;Fr<Gn;Fr++)qn[Fr-1]=arguments[Fr];Mt=Ce(Mt),qn=[Ge].concat(qn);var Ei=s.useRef({}),ii=R(Ei.current);Object.assign(ii(),l({},Mt,{plugins:qn,hooks:we()})),qn.filter(Boolean).forEach(function(Vt){Vt(ii().hooks)});var Wi=R(ii().hooks);ii().getHooks=Wi,delete ii().hooks,Object.assign(ii(),S(Wi().useOptions,Ce(Mt)));var Ya=ii(),qa=Ya.data,se=Ya.columns,ye=Ya.initialState,Xe=Ya.defaultColumn,yt=Ya.getSubRows,Wt=Ya.getRowId,Qt=Ya.stateReducer,wn=Ya.useControlledState,fr=R(Qt),Or=s.useCallback(function(Vt,bn){if(!bn.type)throw console.info({action:bn}),new Error("Unknown Action \u{1F446}");return[].concat(Wi().stateReducers,Array.isArray(fr())?fr():[fr()]).reduce(function(Hn,br){return br(Hn,bn,Vt,ii())||Hn},Vt)},[Wi,fr,ii]),Si=s.useReducer(Or,void 0,function(){return Or(ye,{type:d.init})}),Fi=Si[0],Bi=Si[1],Ui=S([].concat(Wi().useControlledState,[wn]),Fi,{instance:ii()});Object.assign(ii(),{state:Ui,dispatch:Bi});var vi=s.useMemo(function(){return K(S(Wi().columns,se,{instance:ii()}))},[Wi,ii,se].concat(S(Wi().columnsDeps,[],{instance:ii()})));ii().columns=vi;var Xa=s.useMemo(function(){return S(Wi().allColumns,_(vi),{instance:ii()}).map(W)},[vi,Wi,ii].concat(S(Wi().allColumnsDeps,[],{instance:ii()})));ii().allColumns=Xa;var Ko=s.useMemo(function(){for(var Vt=[],bn=[],Hn={},br=[].concat(Xa);br.length;){var ei=br.shift();$e({data:qa,rows:Vt,flatRows:bn,rowsById:Hn,column:ei,getRowId:Wt,getSubRows:yt,accessValueHooks:Wi().accessValue,getInstance:ii})}return[Vt,bn,Hn]},[Xa,qa,Wt,yt,Wi,ii]),So=Ko[0],Lo=Ko[1],us=Ko[2];Object.assign(ii(),{rows:So,initialRows:[].concat(So),flatRows:Lo,rowsById:us}),w(Wi().useInstanceAfterData,ii());var Ee=s.useMemo(function(){return S(Wi().visibleColumns,Xa,{instance:ii()}).map(function(Vt){return j(Vt,Xe)})},[Wi,Xa,ii,Xe].concat(S(Wi().visibleColumnsDeps,[],{instance:ii()})));Xa=s.useMemo(function(){var Vt=[].concat(Ee);return Xa.forEach(function(bn){Vt.find(function(Hn){return Hn.id===bn.id})||Vt.push(bn)}),Vt},[Xa,Ee]),ii().allColumns=Xa;var Y=s.useMemo(function(){return S(Wi().headerGroups,re(Ee,Xe),ii())},[Wi,Ee,Xe,ii].concat(S(Wi().headerGroupsDeps,[],{instance:ii()})));ii().headerGroups=Y;var z=s.useMemo(function(){return Y.length?Y[0].headers:[]},[Y]);ii().headers=z,ii().flatHeaders=Y.reduce(function(Vt,bn){return[].concat(Vt,bn.headers)},[]),w(Wi().useInstanceBeforeDimensions,ii());var B=Ee.filter(function(Vt){return Vt.isVisible}).map(function(Vt){return Vt.id}).sort().join("_");Ee=s.useMemo(function(){return Ee.filter(function(Vt){return Vt.isVisible})},[Ee,B]),ii().visibleColumns=Ee;var le=Ae(z),Le=le[0],Je=le[1],Ct=le[2];return ii().totalColumnsMinWidth=Le,ii().totalColumnsWidth=Je,ii().totalColumnsMaxWidth=Ct,w(Wi().useInstance,ii()),[].concat(ii().flatHeaders,ii().allColumns).forEach(function(Vt){Vt.render=I(ii(),Vt),Vt.getHeaderProps=E(Wi().getHeaderProps,{instance:ii(),column:Vt}),Vt.getFooterProps=E(Wi().getFooterProps,{instance:ii(),column:Vt})}),ii().headerGroups=s.useMemo(function(){return Y.filter(function(Vt,bn){return Vt.headers=Vt.headers.filter(function(Hn){return Hn.headers?function br(ei){return ei.filter(function(mi){return mi.headers?br(mi.headers):mi.isVisible}).length}(Hn.headers):Hn.isVisible}),!!Vt.headers.length&&(Vt.getHeaderGroupProps=E(Wi().getHeaderGroupProps,{instance:ii(),headerGroup:Vt,index:bn}),Vt.getFooterGroupProps=E(Wi().getFooterGroupProps,{instance:ii(),headerGroup:Vt,index:bn}),!0)})},[Y,ii,Wi]),ii().footerGroups=[].concat(ii().headerGroups).reverse(),ii().prepareRow=s.useCallback(function(Vt){Vt.getRowProps=E(Wi().getRowProps,{instance:ii(),row:Vt}),Vt.allCells=Xa.map(function(bn){var Hn=Vt.values[bn.id],br={column:bn,row:Vt,value:Hn};return br.getCellProps=E(Wi().getCellProps,{instance:ii(),cell:br}),br.render=I(ii(),bn,{row:Vt,cell:br,value:Hn}),br}),Vt.cells=Ee.map(function(bn){return Vt.allCells.find(function(Hn){return Hn.column.id===bn.id})}),w(Wi().prepareRow,Vt,{instance:ii()})},[Wi,ii,Xa,Ee]),ii().getTableProps=E(Wi().getTableProps,{instance:ii()}),ii().getTableBodyProps=E(Wi().getTableBodyProps,{instance:ii()}),w(Wi().useFinalInstance,ii()),ii()},Object.defineProperty(i,"__esModule",{value:!0})})},10350:(C,c,t)=>{C.exports=t(51448)},42358:(C,c,t)=>{"use strict";t.d(c,{Z:()=>w});var i=t(94285),s=t(46340),u=t(42030),v=t(93415);function l(x,P){return x.classList?!!P&&x.classList.contains(P):(" "+(x.className.baseVal||x.className)+" ").indexOf(" "+P+" ")!==-1}function h(x,P){x.classList?x.classList.add(P):l(x,P)||(typeof x.className=="string"?x.className=x.className+" "+P:x.setAttribute("class",(x.className&&x.className.baseVal||"")+" "+P))}function p(x,P){return x.replace(new RegExp("(^|\\s)"+P+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function d(x,P){x.classList?x.classList.remove(P):typeof x.className=="string"?x.className=p(x.className,P):x.setAttribute("class",p(x.className&&x.className.baseVal||"",P))}var f=t(27702),g=t(39330),y=t(91576),b=function(P,R){return P&&R&&R.split(" ").forEach(function(T){return h(P,T)})},E=function(P,R){return P&&R&&R.split(" ").forEach(function(T){return d(P,T)})},S=function(x){(0,u.Z)(P,x);function P(){for(var T,A=arguments.length,I=new Array(A),N=0;N<A;N++)I[N]=arguments[N];return T=x.call.apply(x,[this].concat(I))||this,T.appliedClasses={appear:{},enter:{},exit:{}},T.onEnter=function(K,_){var W=T.resolveArguments(K,_),j=W[0],re=W[1];T.removeClasses(j,"exit"),T.addClass(j,re?"appear":"enter","base"),T.props.onEnter&&T.props.onEnter(K,_)},T.onEntering=function(K,_){var W=T.resolveArguments(K,_),j=W[0],re=W[1],X=re?"appear":"enter";T.addClass(j,X,"active"),T.props.onEntering&&T.props.onEntering(K,_)},T.onEntered=function(K,_){var W=T.resolveArguments(K,_),j=W[0],re=W[1],X=re?"appear":"enter";T.removeClasses(j,X),T.addClass(j,X,"done"),T.props.onEntered&&T.props.onEntered(K,_)},T.onExit=function(K){var _=T.resolveArguments(K),W=_[0];T.removeClasses(W,"appear"),T.removeClasses(W,"enter"),T.addClass(W,"exit","base"),T.props.onExit&&T.props.onExit(K)},T.onExiting=function(K){var _=T.resolveArguments(K),W=_[0];T.addClass(W,"exit","active"),T.props.onExiting&&T.props.onExiting(K)},T.onExited=function(K){var _=T.resolveArguments(K),W=_[0];T.removeClasses(W,"exit"),T.addClass(W,"exit","done"),T.props.onExited&&T.props.onExited(K)},T.resolveArguments=function(K,_){return T.props.nodeRef?[T.props.nodeRef.current,K]:[K,_]},T.getClassNames=function(K){var _=T.props.classNames,W=typeof _=="string",j=W&&_?_+"-":"",re=W?""+j+K:_[K],X=W?re+"-active":_[K+"Active"],Z=W?re+"-done":_[K+"Done"];return{baseClassName:re,activeClassName:X,doneClassName:Z}},T}var R=P.prototype;return R.addClass=function(A,I,N){var K=this.getClassNames(I)[N+"ClassName"],_=this.getClassNames("enter"),W=_.doneClassName;I==="appear"&&N==="done"&&W&&(K+=" "+W),N==="active"&&A&&(0,y.Q)(A),K&&(this.appliedClasses[I][N]=K,b(A,K))},R.removeClasses=function(A,I){var N=this.appliedClasses[I],K=N.base,_=N.active,W=N.done;this.appliedClasses[I]={},K&&E(A,K),_&&E(A,_),W&&E(A,W)},R.render=function(){var A=this.props,I=A.classNames,N=(0,s.Z)(A,["classNames"]);return f.createElement(g.ZP,(0,i.Z)({},N,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},P}(f.Component);S.defaultProps={classNames:""},S.propTypes={};const w=S},39330:(C,c,t)=>{"use strict";t.d(c,{ZP:()=>x});var i=t(46340),s=t(42030),u=t(93415),v=t(27702),l=t(27473);const h={disabled:!1},p=v.createContext(null);var d=t(91576),f="unmounted",g="exited",y="entering",b="entered",E="exiting",S=function(P){(0,s.Z)(R,P);function R(A,I){var N;N=P.call(this,A,I)||this;var K=I,_=K&&!K.isMounting?A.enter:A.appear,W;return N.appearStatus=null,A.in?_?(W=g,N.appearStatus=y):W=b:A.unmountOnExit||A.mountOnEnter?W=f:W=g,N.state={status:W},N.nextCallback=null,N}R.getDerivedStateFromProps=function(I,N){var K=I.in;return K&&N.status===f?{status:g}:null};var T=R.prototype;return T.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},T.componentDidUpdate=function(I){var N=null;if(I!==this.props){var K=this.state.status;this.props.in?K!==y&&K!==b&&(N=y):(K===y||K===b)&&(N=E)}this.updateStatus(!1,N)},T.componentWillUnmount=function(){this.cancelNextCallback()},T.getTimeouts=function(){var I=this.props.timeout,N,K,_;return N=K=_=I,I!=null&&typeof I!="number"&&(N=I.exit,K=I.enter,_=I.appear!==void 0?I.appear:K),{exit:N,enter:K,appear:_}},T.updateStatus=function(I,N){if(I===void 0&&(I=!1),N!==null)if(this.cancelNextCallback(),N===y){if(this.props.unmountOnExit||this.props.mountOnEnter){var K=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this);K&&(0,d.Q)(K)}this.performEnter(I)}else this.performExit();else this.props.unmountOnExit&&this.state.status===g&&this.setState({status:f})},T.performEnter=function(I){var N=this,K=this.props.enter,_=this.context?this.context.isMounting:I,W=this.props.nodeRef?[_]:[l.findDOMNode(this),_],j=W[0],re=W[1],X=this.getTimeouts(),Z=_?X.appear:X.enter;if(!I&&!K||h.disabled){this.safeSetState({status:b},function(){N.props.onEntered(j)});return}this.props.onEnter(j,re),this.safeSetState({status:y},function(){N.props.onEntering(j,re),N.onTransitionEnd(Z,function(){N.safeSetState({status:b},function(){N.props.onEntered(j,re)})})})},T.performExit=function(){var I=this,N=this.props.exit,K=this.getTimeouts(),_=this.props.nodeRef?void 0:l.findDOMNode(this);if(!N||h.disabled){this.safeSetState({status:g},function(){I.props.onExited(_)});return}this.props.onExit(_),this.safeSetState({status:E},function(){I.props.onExiting(_),I.onTransitionEnd(K.exit,function(){I.safeSetState({status:g},function(){I.props.onExited(_)})})})},T.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},T.safeSetState=function(I,N){N=this.setNextCallback(N),this.setState(I,N)},T.setNextCallback=function(I){var N=this,K=!0;return this.nextCallback=function(_){K&&(K=!1,N.nextCallback=null,I(_))},this.nextCallback.cancel=function(){K=!1},this.nextCallback},T.onTransitionEnd=function(I,N){this.setNextCallback(N);var K=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),_=I==null&&!this.props.addEndListener;if(!K||_){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var W=this.props.nodeRef?[this.nextCallback]:[K,this.nextCallback],j=W[0],re=W[1];this.props.addEndListener(j,re)}I!=null&&setTimeout(this.nextCallback,I)},T.render=function(){var I=this.state.status;if(I===f)return null;var N=this.props,K=N.children,_=N.in,W=N.mountOnEnter,j=N.unmountOnExit,re=N.appear,X=N.enter,Z=N.exit,J=N.timeout,q=N.addEndListener,L=N.onEnter,$=N.onEntering,k=N.onEntered,F=N.onExit,V=N.onExiting,pe=N.onExited,ce=N.nodeRef,G=(0,i.Z)(N,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(p.Provider,{value:null},typeof K=="function"?K(I,G):v.cloneElement(v.Children.only(K),G))},R}(v.Component);S.contextType=p,S.propTypes={};function w(){}S.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:w,onEntering:w,onEntered:w,onExit:w,onExiting:w,onExited:w},S.UNMOUNTED=f,S.EXITED=g,S.ENTERING=y,S.ENTERED=b,S.EXITING=E;const x=S},91576:(C,c,t)=>{"use strict";t.d(c,{Q:()=>i});var i=function(u){return u.scrollTop}},23025:(C,c,t)=>{"use strict";t.d(c,{S1:()=>u,ZT:()=>i,jU:()=>v,on:()=>s});var i=function(){};function s(h){for(var p=[],d=1;d<arguments.length;d++)p[d-1]=arguments[d];h&&h.addEventListener&&h.addEventListener.apply(h,p)}function u(h){for(var p=[],d=1;d<arguments.length;d++)p[d-1]=arguments[d];h&&h.removeEventListener&&h.removeEventListener.apply(h,p)}var v=typeof window<"u",l=typeof navigator<"u"},25111:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(27702),s=t(26811);function u(v,l){l===void 0&&(l=[]);var h=(0,s.Z)(v,l,{loading:!0}),p=h[0],d=h[1];return(0,i.useEffect)(function(){d()},[d]),p}},26811:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(48314),s=t(27702),u=t(93562);function v(l,h,p){h===void 0&&(h=[]),p===void 0&&(p={loading:!1});var d=(0,s.useRef)(0),f=(0,u.Z)(),g=(0,s.useState)(p),y=g[0],b=g[1],E=(0,s.useCallback)(function(){for(var S=[],w=0;w<arguments.length;w++)S[w]=arguments[w];var x=++d.current;return y.loading||b(function(P){return(0,i.__assign)((0,i.__assign)({},P),{loading:!0})}),l.apply(void 0,S).then(function(P){return f()&&x===d.current&&b({value:P,loading:!1}),P},function(P){return f()&&x===d.current&&b({error:P,loading:!1}),P})},h);return[y,E]}},78089:(C,c,t)=>{"use strict";t.d(c,{Z:()=>l});var i=t(27702),s=t(23025),u=["mousedown","touchstart"],v=function(h,p,d){d===void 0&&(d=u);var f=(0,i.useRef)(p);(0,i.useEffect)(function(){f.current=p},[p]),(0,i.useEffect)(function(){for(var g=function(S){var w=h.current;w&&!w.contains(S.target)&&f.current(S)},y=0,b=d;y<b.length;y++){var E=b[y];(0,s.on)(document,E,g)}return function(){for(var S=0,w=d;S<w.length;S++){var x=w[S];(0,s.S1)(document,x,g)}}},[d,h])};const l=v},1277:(C,c,t)=>{"use strict";t.d(c,{Z:()=>d});var i=t(41795),s=t.n(i),u=t(27702),v=t(93562),l=function(f){f===void 0&&(f={});var g=(0,u.useState)(f),y=g[0],b=g[1],E=(0,u.useCallback)(function(S){b(function(w){return Object.assign({},w,S instanceof Function?S(w):S)})},[]);return[y,E]};const h=l;var p=function(){var f=(0,v.Z)(),g=h({value:void 0,error:void 0,noUserInteraction:!0}),y=g[0],b=g[1],E=(0,u.useCallback)(function(S){if(f()){var w,x;try{if(typeof S!="string"&&typeof S!="number"){var P=new Error("Cannot copy typeof "+typeof S+" to clipboard, must be a string");b({value:S,error:P,noUserInteraction:!0});return}else if(S===""){var P=new Error("Cannot copy empty string to clipboard.");b({value:S,error:P,noUserInteraction:!0});return}x=S.toString(),w=s()(x),b({value:x,error:void 0,noUserInteraction:w})}catch(R){b({value:x,error:R,noUserInteraction:w})}}},[]);return[y,E]};const d=p},29956:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(27702);function s(v,l){l===void 0&&(l=0);var h=(0,i.useRef)(!1),p=(0,i.useRef)(),d=(0,i.useRef)(v),f=(0,i.useCallback)(function(){return h.current},[]),g=(0,i.useCallback)(function(){h.current=!1,p.current&&clearTimeout(p.current),p.current=setTimeout(function(){h.current=!0,d.current()},l)},[l]),y=(0,i.useCallback)(function(){h.current=null,p.current&&clearTimeout(p.current)},[]);return(0,i.useEffect)(function(){d.current=v},[v]),(0,i.useEffect)(function(){return g(),y},[l]),[f,y,g]}function u(v,l,h){l===void 0&&(l=0),h===void 0&&(h=[]);var p=s(v,l),d=p[0],f=p[1],g=p[2];return(0,i.useEffect)(g,h),[d,f]}},19559:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(27702),s=function(v){(0,i.useEffect)(v,[])};const u=s},12515:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(27702),s=t(23025),u=s.jU?i.useLayoutEffect:i.useEffect;const v=u},84789:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(27702),s=t(23025),u=function(l,h,p){if(!s.jU)return[h,s.ZT,s.ZT];if(!l)throw new Error("useLocalStorage key may not be falsy");var d=p?p.raw?function(w){return w}:p.deserializer:JSON.parse,f=(0,i.useRef)(function(w){try{var x=p?p.raw?String:p.serializer:JSON.stringify,P=localStorage.getItem(w);return P!==null?d(P):(h&&localStorage.setItem(w,x(h)),h)}catch{return h}}),g=(0,i.useState)(function(){return f.current(l)}),y=g[0],b=g[1];(0,i.useLayoutEffect)(function(){return b(f.current(l))},[l]);var E=(0,i.useCallback)(function(w){try{var x=typeof w=="function"?w(y):w;if(typeof x>"u")return;var P=void 0;p?p.raw?typeof x=="string"?P=x:P=JSON.stringify(x):p.serializer?P=p.serializer(x):P=JSON.stringify(x):P=JSON.stringify(x),localStorage.setItem(l,P),b(d(P))}catch{}},[l,b]),S=(0,i.useCallback)(function(){try{localStorage.removeItem(l),b(void 0)}catch{}},[l,b]);return[y,E,S]};const v=u},75136:(C,c,t)=>{"use strict";t.d(c,{Z:()=>d});var i=t(27702),s=t(23025),u=function(f){var g=window.history,y=g[f];g[f]=function(b){var E=y.apply(this,arguments),S=new Event(f.toLowerCase());return S.state=b,window.dispatchEvent(S),E}};s.jU&&(u("pushState"),u("replaceState"));var v=function(){return{trigger:"load",length:1}},l=function(f){var g=window.history,y=g.state,b=g.length,E=window.location,S=E.hash,w=E.host,x=E.hostname,P=E.href,R=E.origin,T=E.pathname,A=E.port,I=E.protocol,N=E.search;return{trigger:f,state:y,length:b,hash:S,host:w,hostname:x,href:P,origin:R,pathname:T,port:A,protocol:I,search:N}},h=function(){var f=(0,i.useState)(l("load")),g=f[0],y=f[1];return(0,i.useEffect)(function(){var b=function(){return y(l("popstate"))},E=function(){return y(l("pushstate"))},S=function(){return y(l("replacestate"))};return(0,s.on)(window,"popstate",b),(0,s.on)(window,"pushstate",E),(0,s.on)(window,"replacestate",S),function(){(0,s.S1)(window,"popstate",b),(0,s.S1)(window,"pushstate",E),(0,s.S1)(window,"replacestate",S)}},[]),g},p=typeof Event=="function";const d=s.jU&&p?h:v},96284:(C,c,t)=>{"use strict";t.d(c,{Z:()=>h});var i=t(27702),s=t(12515),u=t(23025),v={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function l(){var p=(0,i.useState)(null),d=p[0],f=p[1],g=(0,i.useState)(v),y=g[0],b=g[1],E=(0,i.useMemo)(function(){return new window.ResizeObserver(function(S){if(S[0]){var w=S[0].contentRect,x=w.x,P=w.y,R=w.width,T=w.height,A=w.top,I=w.left,N=w.bottom,K=w.right;b({x,y:P,width:R,height:T,top:A,left:I,bottom:N,right:K})}})},[]);return(0,s.Z)(function(){if(d)return E.observe(d),function(){E.disconnect()}},[d]),[f,y]}const h=u.jU&&typeof window.ResizeObserver<"u"?l:function(){return[u.ZT,v]}},24352:(C,c,t)=>{"use strict";t.d(c,{Z:()=>l});var i=t(27702),s=t(23025),u=function(h,p){return p!==void 0?p:s.jU?window.matchMedia(h).matches:!1},v=function(h,p){var d=(0,i.useState)(u(h,p)),f=d[0],g=d[1];return(0,i.useEffect)(function(){var y=!0,b=window.matchMedia(h),E=function(){y&&g(!!b.matches)};return b.addListener(E),g(b.matches),function(){y=!1,b.removeListener(E)}},[h]),f};const l=v},93562:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(27702);function s(){var u=(0,i.useRef)(!1),v=(0,i.useCallback)(function(){return u.current},[]);return(0,i.useEffect)(function(){return u.current=!0,function(){u.current=!1}},[]),v}},65217:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(27702),s=t(12515);function u(l,h){var p=(0,i.useState)(h),d=p[0],f=p[1];return(0,s.Z)(function(){var g=l.subscribe(f);return function(){return g.unsubscribe()}},[l]),d}const v=u},24077:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(27702);function s(u){var v=(0,i.useRef)();return(0,i.useEffect)(function(){v.current=u}),v.current}},9393:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(27702),s=t(97780),u=function(l,h,p){h===void 0&&(h=200);var d=(0,i.useState)(null),f=d[0],g=d[1],y=(0,i.useRef)(),b=(0,i.useRef)();return(0,i.useEffect)(function(){if(y.current)b.current=p;else{g(l.apply(void 0,p));var E=function(){b.current?(g(l.apply(void 0,b.current)),b.current=void 0,y.current=setTimeout(E,h)):y.current=void 0};y.current=setTimeout(E,h)}},p),(0,s.Z)(function(){y.current&&clearTimeout(y.current)}),f};const v=u},73195:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(27702),s=function(l,h){return typeof h=="boolean"?h:!l},u=function(l){return(0,i.useReducer)(s,l)};const v=u},97780:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(27702),s=t(19559),u=function(l){var h=(0,i.useRef)(l);h.current=l,(0,s.Z)(function(){return function(){return h.current()}})};const v=u},96073:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(27702);function s(){var l=(0,i.useRef)(!0);return l.current?(l.current=!1,!0):l.current}var u=function(l,h){var p=s();(0,i.useEffect)(function(){if(!p)return l()},h)};const v=u},46917:(C,c,t)=>{"use strict";t.d(c,{Z:()=>p});var i=t(27702),s=t(97780),u=function(d){var f=(0,i.useRef)(0),g=(0,i.useState)(d),y=g[0],b=g[1],E=(0,i.useCallback)(function(S){cancelAnimationFrame(f.current),f.current=requestAnimationFrame(function(){b(S)})},[]);return(0,s.Z)(function(){cancelAnimationFrame(f.current)}),[y,E]};const v=u;var l=t(23025),h=function(d,f){d===void 0&&(d=1/0),f===void 0&&(f=1/0);var g=v({width:l.jU?window.innerWidth:d,height:l.jU?window.innerHeight:f}),y=g[0],b=g[1];return(0,i.useEffect)(function(){if(l.jU){var E=function(){b({width:window.innerWidth,height:window.innerHeight})};return(0,l.on)(window,"resize",E),function(){(0,l.S1)(window,"resize",E)}}},[]),y};const p=h},26923:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isNavigator=c.isBrowser=c.off=c.on=c.noop=void 0;var t=function(){};c.noop=t;function i(u){for(var v=[],l=1;l<arguments.length;l++)v[l-1]=arguments[l];u&&u.addEventListener&&u.addEventListener.apply(u,v)}c.on=i;function s(u){for(var v=[],l=1;l<arguments.length;l++)v[l-1]=arguments[l];u&&u.removeEventListener&&u.removeEventListener.apply(u,v)}c.off=s,c.isBrowser=typeof window<"u",c.isNavigator=typeof navigator<"u"},58281:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var i=t(48314),s=t(27702),u=i.__importDefault(t(8227));function v(l,h,p){h===void 0&&(h=[]),p===void 0&&(p={loading:!1});var d=s.useRef(0),f=u.default(),g=s.useState(p),y=g[0],b=g[1],E=s.useCallback(function(){for(var S=[],w=0;w<arguments.length;w++)S[w]=arguments[w];var x=++d.current;return y.loading||b(function(P){return i.__assign(i.__assign({},P),{loading:!0})}),l.apply(void 0,S).then(function(P){return f()&&x===d.current&&b({value:P,loading:!1}),P},function(P){return f()&&x===d.current&&b({error:P,loading:!1}),P})},h);return[y,E]}c.default=v},79812:(C,c,t)=>{"use strict";var i;i={value:!0};var s=t(27702),u=t(26923),v=["mousedown","touchstart"],l=function(h,p,d){d===void 0&&(d=v);var f=s.useRef(p);s.useEffect(function(){f.current=p},[p]),s.useEffect(function(){for(var g=function(S){var w=h.current;w&&!w.contains(S.target)&&f.current(S)},y=0,b=d;y<b.length;y++){var E=b[y];u.on(document,E,g)}return function(){for(var S=0,w=d;S<w.length;S++){var x=w[S];u.off(document,x,g)}}},[d,h])};c.Z=l},46961:(C,c,t)=>{"use strict";var i;i={value:!0};var s=t(48314),u=t(27702),v=s.__importDefault(t(25045));function l(h,p,d){p===void 0&&(p=0),d===void 0&&(d=[]);var f=v.default(h,p),g=f[0],y=f[1],b=f[2];return u.useEffect(b,d),[g,y]}c.Z=l},4047:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var i=t(27702),s=t(26923),u=s.isBrowser?i.useLayoutEffect:i.useEffect;c.default=u},17236:(C,c,t)=>{"use strict";var i;i={value:!0};var s=t(48314),u=t(27702),v=s.__importDefault(t(4047)),l=t(26923),h={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function p(){var d=u.useState(null),f=d[0],g=d[1],y=u.useState(h),b=y[0],E=y[1],S=u.useMemo(function(){return new window.ResizeObserver(function(w){if(w[0]){var x=w[0].contentRect,P=x.x,R=x.y,T=x.width,A=x.height,I=x.top,N=x.left,K=x.bottom,_=x.right;E({x:P,y:R,width:T,height:A,top:I,left:N,bottom:K,right:_})}})},[]);return v.default(function(){if(f)return S.observe(f),function(){S.disconnect()}},[f]),[g,b]}c.Z=l.isBrowser&&typeof window.ResizeObserver<"u"?p:function(){return[l.noop,h]}},8227:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var i=t(27702);function s(){var u=i.useRef(!1),v=i.useCallback(function(){return u.current},[]);return i.useEffect(function(){return u.current=!0,function(){u.current=!1}},[]),v}c.default=s},35719:(C,c,t)=>{"use strict";var i;i={value:!0};var s=t(27702);function u(v){var l=s.useRef();return s.useEffect(function(){l.current=v}),l.current}c.Z=u},25045:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var i=t(27702);function s(u,v){v===void 0&&(v=0);var l=i.useRef(!1),h=i.useRef(),p=i.useRef(u),d=i.useCallback(function(){return l.current},[]),f=i.useCallback(function(){l.current=!1,h.current&&clearTimeout(h.current),h.current=setTimeout(function(){l.current=!0,p.current()},v)},[v]),g=i.useCallback(function(){l.current=null,h.current&&clearTimeout(h.current)},[]);return i.useEffect(function(){p.current=u},[u]),i.useEffect(function(){return f(),g},[v]),[d,g,f]}c.default=s},55925:(C,c,t)=>{"use strict";t.d(c,{Z:()=>R});var i=t(27702),s=function(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")},u=function(){function T(A,I){for(var N=0;N<I.length;N++){var K=I[N];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(A,K.key,K)}}return function(A,I,N){return I&&T(A.prototype,I),N&&T(A,N),A}}(),v=Object.assign||function(T){for(var A=1;A<arguments.length;A++){var I=arguments[A];for(var N in I)Object.prototype.hasOwnProperty.call(I,N)&&(T[N]=I[N])}return T},l=function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);T.prototype=Object.create(A&&A.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(T,A):T.__proto__=A)},h=function(T,A){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:T},p=function(){function T(A,I){var N=[],K=!0,_=!1,W=void 0;try{for(var j=A[Symbol.iterator](),re;!(K=(re=j.next()).done)&&(N.push(re.value),!(I&&N.length===I));K=!0);}catch(X){_=!0,W=X}finally{try{!K&&j.return&&j.return()}finally{if(_)throw W}}return N}return function(A,I){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return T(A,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=void 0;typeof window<"u"?d=window:typeof self<"u"?d=self:d=t.g;var f=null,g=null,y=20,b=d.clearTimeout,E=d.setTimeout,S=d.cancelAnimationFrame||d.mozCancelAnimationFrame||d.webkitCancelAnimationFrame,w=d.requestAnimationFrame||d.mozRequestAnimationFrame||d.webkitRequestAnimationFrame;S==null||w==null?(f=b,g=function(A){return E(A,y)}):(f=function(A){var I=p(A,2),N=I[0],K=I[1];S(N),b(K)},g=function(A){var I=w(function(){b(N),A()}),N=E(function(){S(I),A()},y);return[I,N]});function x(T){var A=void 0,I=void 0,N=void 0,K=void 0,_=void 0,W=void 0,j=void 0,re=typeof document<"u"&&document.attachEvent;if(!re){W=function(G){var te=G.__resizeTriggers__,ie=te.firstElementChild,fe=te.lastElementChild,Se=ie.firstElementChild;fe.scrollLeft=fe.scrollWidth,fe.scrollTop=fe.scrollHeight,Se.style.width=ie.offsetWidth+1+"px",Se.style.height=ie.offsetHeight+1+"px",ie.scrollLeft=ie.scrollWidth,ie.scrollTop=ie.scrollHeight},_=function(G){return G.offsetWidth!==G.__resizeLast__.width||G.offsetHeight!==G.__resizeLast__.height},j=function(G){if(!(G.target.className&&typeof G.target.className.indexOf=="function"&&G.target.className.indexOf("contract-trigger")<0&&G.target.className.indexOf("expand-trigger")<0)){var te=this;W(this),this.__resizeRAF__&&f(this.__resizeRAF__),this.__resizeRAF__=g(function(){_(te)&&(te.__resizeLast__.width=te.offsetWidth,te.__resizeLast__.height=te.offsetHeight,te.__resizeListeners__.forEach(function(Se){Se.call(te,G)}))})}};var X=!1,Z="";N="animationstart";var J="Webkit Moz O ms".split(" "),q="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),L="";{var $=document.createElement("fakeelement");if($.style.animationName!==void 0&&(X=!0),X===!1){for(var k=0;k<J.length;k++)if($.style[J[k]+"AnimationName"]!==void 0){L=J[k],Z="-"+L.toLowerCase()+"-",N=q[k],X=!0;break}}}I="resizeanim",A="@"+Z+"keyframes "+I+" { from { opacity: 0; } to { opacity: 0; } } ",K=Z+"animation: 1ms "+I+"; "}var F=function(G){if(!G.getElementById("detectElementResize")){var te=(A||"")+".resize-triggers { "+(K||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',ie=G.head||G.getElementsByTagName("head")[0],fe=G.createElement("style");fe.id="detectElementResize",fe.type="text/css",T!=null&&fe.setAttribute("nonce",T),fe.styleSheet?fe.styleSheet.cssText=te:fe.appendChild(G.createTextNode(te)),ie.appendChild(fe)}},V=function(G,te){if(re)G.attachEvent("onresize",te);else{if(!G.__resizeTriggers__){var ie=G.ownerDocument,fe=d.getComputedStyle(G);fe&&fe.position==="static"&&(G.style.position="relative"),F(ie),G.__resizeLast__={},G.__resizeListeners__=[],(G.__resizeTriggers__=ie.createElement("div")).className="resize-triggers";var Se=ie.createElement("div");Se.className="expand-trigger",Se.appendChild(ie.createElement("div"));var he=ie.createElement("div");he.className="contract-trigger",G.__resizeTriggers__.appendChild(Se),G.__resizeTriggers__.appendChild(he),G.appendChild(G.__resizeTriggers__),W(G),G.addEventListener("scroll",j,!0),N&&(G.__resizeTriggers__.__animationListener__=function(_e){_e.animationName===I&&W(G)},G.__resizeTriggers__.addEventListener(N,G.__resizeTriggers__.__animationListener__))}G.__resizeListeners__.push(te)}},pe=function(G,te){if(re)G.detachEvent("onresize",te);else if(G.__resizeListeners__.splice(G.__resizeListeners__.indexOf(te),1),!G.__resizeListeners__.length){G.removeEventListener("scroll",j,!0),G.__resizeTriggers__.__animationListener__&&(G.__resizeTriggers__.removeEventListener(N,G.__resizeTriggers__.__animationListener__),G.__resizeTriggers__.__animationListener__=null);try{G.__resizeTriggers__=!G.removeChild(G.__resizeTriggers__)}catch{}}};return{addResizeListener:V,removeResizeListener:pe}}var P=function(T){l(A,T);function A(){var I,N,K,_;s(this,A);for(var W=arguments.length,j=Array(W),re=0;re<W;re++)j[re]=arguments[re];return _=(N=(K=h(this,(I=A.__proto__||Object.getPrototypeOf(A)).call.apply(I,[this].concat(j))),K),K.state={height:K.props.defaultHeight||0,width:K.props.defaultWidth||0},K._onResize=function(){var X=K.props,Z=X.disableHeight,J=X.disableWidth,q=X.onResize;if(K._parentNode){var L=K._parentNode.offsetHeight||0,$=K._parentNode.offsetWidth||0,k=window.getComputedStyle(K._parentNode)||{},F=parseInt(k.paddingLeft,10)||0,V=parseInt(k.paddingRight,10)||0,pe=parseInt(k.paddingTop,10)||0,ce=parseInt(k.paddingBottom,10)||0,G=L-pe-ce,te=$-F-V;(!Z&&K.state.height!==G||!J&&K.state.width!==te)&&(K.setState({height:L-pe-ce,width:$-F-V}),q({height:L,width:$}))}},K._setRef=function(X){K._autoSizer=X},N),h(K,_)}return u(A,[{key:"componentDidMount",value:function(){var N=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=x(N),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var N=this.props,K=N.children,_=N.className,W=N.disableHeight,j=N.disableWidth,re=N.style,X=this.state,Z=X.height,J=X.width,q={overflow:"visible"},L={},$=!1;return W||(Z===0&&($=!0),q.height=0,L.height=Z),j||(J===0&&($=!0),q.width=0,L.width=J),(0,i.createElement)("div",{className:_,ref:this._setRef,style:v({},q,re)},!$&&K(L))}}]),A}(i.PureComponent);P.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const R=P},56365:(C,c,t)=>{"use strict";t.d(c,{Z:()=>g});var i=t(27702);function s(y){return typeof y=="number"&&isFinite(y)&&Math.floor(y)===y}function u(y){var b=y.lastRenderedStartIndex,E=y.lastRenderedStopIndex,S=y.startIndex,w=y.stopIndex;return!(S>E||w<b)}function v(y){for(var b=y.isItemLoaded,E=y.itemCount,S=y.minimumBatchSize,w=y.startIndex,x=y.stopIndex,P=[],R=null,T=null,A=w;A<=x;A++){var I=b(A);I?T!==null&&(P.push(R,T),R=T=null):(T=A,R===null&&(R=A))}if(T!==null){for(var N=Math.min(Math.max(T,R+S-1),E-1),K=T+1;K<=N&&!b(K);K++)T=K;P.push(R,T)}if(P.length)for(;P[1]-P[0]+1<S&&P[0]>0;){var _=P[0]-1;if(!b(_))P[0]=_;else break}return P}var l=function(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")},h=function(){function y(b,E){for(var S=0;S<E.length;S++){var w=E[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,E,S){return E&&y(b.prototype,E),S&&y(b,S),b}}(),p=function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)},d=function(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y},f=function(y){p(b,y);function b(){var E,S,w,x;l(this,b);for(var P=arguments.length,R=Array(P),T=0;T<P;T++)R[T]=arguments[T];return x=(S=(w=d(this,(E=b.__proto__||Object.getPrototypeOf(b)).call.apply(E,[this].concat(R))),w),w._lastRenderedStartIndex=-1,w._lastRenderedStopIndex=-1,w._memoizedUnloadedRanges=[],w._onItemsRendered=function(A){var I=A.visibleStartIndex,N=A.visibleStopIndex;w._lastRenderedStartIndex=I,w._lastRenderedStopIndex=N,w._ensureRowsLoaded(I,N)},w._setRef=function(A){w._listRef=A},S),d(w,x)}return h(b,[{key:"resetloadMoreItemsCache",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],S&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var S=this.props.children;return S({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(S,w){var x=this.props,P=x.isItemLoaded,R=x.itemCount,T=x.minimumBatchSize,A=T===void 0?10:T,I=x.threshold,N=I===void 0?15:I,K=v({isItemLoaded:P,itemCount:R,minimumBatchSize:A,startIndex:Math.max(0,S-N),stopIndex:Math.min(R-1,w+N)});(this._memoizedUnloadedRanges.length!==K.length||this._memoizedUnloadedRanges.some(function(_,W){return K[W]!==_}))&&(this._memoizedUnloadedRanges=K,this._loadUnloadedRanges(K))}},{key:"_loadUnloadedRanges",value:function(S){for(var w=this,x=this.props.loadMoreItems||this.props.loadMoreRows,P=function(A){var I=S[A],N=S[A+1],K=x(I,N);K?.then(function(){if(u({lastRenderedStartIndex:w._lastRenderedStartIndex,lastRenderedStopIndex:w._lastRenderedStopIndex,startIndex:I,stopIndex:N})){if(w._listRef==null)return;typeof w._listRef.resetAfterIndex=="function"?w._listRef.resetAfterIndex(I,!0):(typeof w._listRef._getItemStyleCache=="function"&&w._listRef._getItemStyleCache(-1),w._listRef.forceUpdate())}})},R=0;R<S.length;R+=2)P(R)}}]),b}(i.PureComponent);const g=f},25472:(C,c,t)=>{"use strict";t.d(c,{S_:()=>Se,Ym:()=>he,t7:()=>me,wy:()=>ht});var i=t(94285),s=t(32066),u=t(42030),v=t(9200),l=t(27702),h=t(46340),p=typeof performance=="object"&&typeof performance.now=="function",d=p?function(){return performance.now()}:function(){return Date.now()};function f(Re){cancelAnimationFrame(Re.id)}function g(Re,ue){var ae=d();function ve(){d()-ae>=ue?Re.call(null):Me.id=requestAnimationFrame(ve)}var Me={id:requestAnimationFrame(ve)};return Me}var y=-1;function b(Re){if(Re===void 0&&(Re=!1),y===-1||Re){var ue=document.createElement("div"),ae=ue.style;ae.width="50px",ae.height="50px",ae.overflow="scroll",document.body.appendChild(ue),y=ue.offsetWidth-ue.clientWidth,document.body.removeChild(ue)}return y}var E=null;function S(Re){if(Re===void 0&&(Re=!1),E===null||Re){var ue=document.createElement("div"),ae=ue.style;ae.width="50px",ae.height="50px",ae.overflow="scroll",ae.direction="rtl";var ve=document.createElement("div"),Me=ve.style;return Me.width="100px",Me.height="100px",ue.appendChild(ve),document.body.appendChild(ue),ue.scrollLeft>0?E="positive-descending":(ue.scrollLeft=1,ue.scrollLeft===0?E="negative":E="positive-ascending"),document.body.removeChild(ue),E}return E}var w=150,x=function(ue){var ae=ue.columnIndex,ve=ue.data,Me=ue.rowIndex;return Me+":"+ae},P=null,R=null,T=null;function A(Re){var ue,ae=Re.getColumnOffset,ve=Re.getColumnStartIndexForOffset,Me=Re.getColumnStopIndexForStartIndex,Ye=Re.getColumnWidth,qe=Re.getEstimatedTotalHeight,At=Re.getEstimatedTotalWidth,It=Re.getOffsetForColumnAndAlignment,Ce=Re.getOffsetForRowAndAlignment,Ae=Re.getRowHeight,$e=Re.getRowOffset,tt=Re.getRowStartIndexForOffset,ke=Re.getRowStopIndexForStartIndex,Oe=Re.initInstanceProps,je=Re.shouldResetStyleCacheOnItemSizeChange,Et=Re.validateProps;return ue=function(ct){(0,u.Z)(ut,ct);function ut(mt){var bt;return bt=ct.call(this,mt)||this,bt._instanceProps=Oe(bt.props,(0,s.Z)(bt)),bt._resetIsScrollingTimeoutId=null,bt._outerRef=void 0,bt.state={instance:(0,s.Z)(bt),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:typeof bt.props.initialScrollLeft=="number"?bt.props.initialScrollLeft:0,scrollTop:typeof bt.props.initialScrollTop=="number"?bt.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},bt._callOnItemsRendered=void 0,bt._callOnItemsRendered=(0,v.default)(function(Gt,hn,Yt,Bt,Lt,zt,Kt,vt){return bt.props.onItemsRendered({overscanColumnStartIndex:Gt,overscanColumnStopIndex:hn,overscanRowStartIndex:Yt,overscanRowStopIndex:Bt,visibleColumnStartIndex:Lt,visibleColumnStopIndex:zt,visibleRowStartIndex:Kt,visibleRowStopIndex:vt})}),bt._callOnScroll=void 0,bt._callOnScroll=(0,v.default)(function(Gt,hn,Yt,Bt,Lt){return bt.props.onScroll({horizontalScrollDirection:Yt,scrollLeft:Gt,scrollTop:hn,verticalScrollDirection:Bt,scrollUpdateWasRequested:Lt})}),bt._getItemStyle=void 0,bt._getItemStyle=function(Gt,hn){var Yt=bt.props,Bt=Yt.columnWidth,Lt=Yt.direction,zt=Yt.rowHeight,Kt=bt._getItemStyleCache(je&&Bt,je&&Lt,je&&zt),vt=Gt+":"+hn,Ve;if(Kt.hasOwnProperty(vt))Ve=Kt[vt];else{var lt=ae(bt.props,hn,bt._instanceProps),at=Lt==="rtl";Kt[vt]=Ve={position:"absolute",left:at?void 0:lt,right:at?lt:void 0,top:$e(bt.props,Gt,bt._instanceProps),height:Ae(bt.props,Gt,bt._instanceProps),width:Ye(bt.props,hn,bt._instanceProps)}}return Ve},bt._getItemStyleCache=void 0,bt._getItemStyleCache=(0,v.default)(function(Gt,hn,Yt){return{}}),bt._onScroll=function(Gt){var hn=Gt.currentTarget,Yt=hn.clientHeight,Bt=hn.clientWidth,Lt=hn.scrollLeft,zt=hn.scrollTop,Kt=hn.scrollHeight,vt=hn.scrollWidth;bt.setState(function(Ve){if(Ve.scrollLeft===Lt&&Ve.scrollTop===zt)return null;var lt=bt.props.direction,at=Lt;if(lt==="rtl")switch(S()){case"negative":at=-Lt;break;case"positive-descending":at=vt-Bt-Lt;break}at=Math.max(0,Math.min(at,vt-Bt));var Xt=Math.max(0,Math.min(zt,Kt-Yt));return{isScrolling:!0,horizontalScrollDirection:Ve.scrollLeft<Lt?"forward":"backward",scrollLeft:at,scrollTop:Xt,verticalScrollDirection:Ve.scrollTop<zt?"forward":"backward",scrollUpdateWasRequested:!1}},bt._resetIsScrollingDebounced)},bt._outerRefSetter=function(Gt){var hn=bt.props.outerRef;bt._outerRef=Gt,typeof hn=="function"?hn(Gt):hn!=null&&typeof hn=="object"&&hn.hasOwnProperty("current")&&(hn.current=Gt)},bt._resetIsScrollingDebounced=function(){bt._resetIsScrollingTimeoutId!==null&&f(bt._resetIsScrollingTimeoutId),bt._resetIsScrollingTimeoutId=g(bt._resetIsScrolling,w)},bt._resetIsScrolling=function(){bt._resetIsScrollingTimeoutId=null,bt.setState({isScrolling:!1},function(){bt._getItemStyleCache(-1)})},bt}ut.getDerivedStateFromProps=function(bt,Gt){return I(bt,Gt),Et(bt),null};var Ne=ut.prototype;return Ne.scrollTo=function(bt){var Gt=bt.scrollLeft,hn=bt.scrollTop;Gt!==void 0&&(Gt=Math.max(0,Gt)),hn!==void 0&&(hn=Math.max(0,hn)),this.setState(function(Yt){return Gt===void 0&&(Gt=Yt.scrollLeft),hn===void 0&&(hn=Yt.scrollTop),Yt.scrollLeft===Gt&&Yt.scrollTop===hn?null:{horizontalScrollDirection:Yt.scrollLeft<Gt?"forward":"backward",scrollLeft:Gt,scrollTop:hn,scrollUpdateWasRequested:!0,verticalScrollDirection:Yt.scrollTop<hn?"forward":"backward"}},this._resetIsScrollingDebounced)},Ne.scrollToItem=function(bt){var Gt=bt.align,hn=Gt===void 0?"auto":Gt,Yt=bt.columnIndex,Bt=bt.rowIndex,Lt=this.props,zt=Lt.columnCount,Kt=Lt.height,vt=Lt.rowCount,Ve=Lt.width,lt=this.state,at=lt.scrollLeft,Xt=lt.scrollTop,rt=b();Yt!==void 0&&(Yt=Math.max(0,Math.min(Yt,zt-1))),Bt!==void 0&&(Bt=Math.max(0,Math.min(Bt,vt-1)));var Rt=qe(this.props,this._instanceProps),rn=At(this.props,this._instanceProps),sn=rn>Ve?rt:0,Jn=Rt>Kt?rt:0;this.scrollTo({scrollLeft:Yt!==void 0?It(this.props,Yt,hn,at,this._instanceProps,Jn):at,scrollTop:Bt!==void 0?Ce(this.props,Bt,hn,Xt,this._instanceProps,sn):Xt})},Ne.componentDidMount=function(){var bt=this.props,Gt=bt.initialScrollLeft,hn=bt.initialScrollTop;if(this._outerRef!=null){var Yt=this._outerRef;typeof Gt=="number"&&(Yt.scrollLeft=Gt),typeof hn=="number"&&(Yt.scrollTop=hn)}this._callPropsCallbacks()},Ne.componentDidUpdate=function(){var bt=this.props.direction,Gt=this.state,hn=Gt.scrollLeft,Yt=Gt.scrollTop,Bt=Gt.scrollUpdateWasRequested;if(Bt&&this._outerRef!=null){var Lt=this._outerRef;if(bt==="rtl")switch(S()){case"negative":Lt.scrollLeft=-hn;break;case"positive-ascending":Lt.scrollLeft=hn;break;default:var zt=Lt.clientWidth,Kt=Lt.scrollWidth;Lt.scrollLeft=Kt-zt-hn;break}else Lt.scrollLeft=Math.max(0,hn);Lt.scrollTop=Math.max(0,Yt)}this._callPropsCallbacks()},Ne.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&f(this._resetIsScrollingTimeoutId)},Ne.render=function(){var bt=this.props,Gt=bt.children,hn=bt.className,Yt=bt.columnCount,Bt=bt.direction,Lt=bt.height,zt=bt.innerRef,Kt=bt.innerElementType,vt=bt.innerTagName,Ve=bt.itemData,lt=bt.itemKey,at=lt===void 0?x:lt,Xt=bt.outerElementType,rt=bt.outerTagName,Rt=bt.rowCount,rn=bt.style,sn=bt.useIsScrolling,Jn=bt.width,ze=this.state.isScrolling,st=this._getHorizontalRangeToRender(),en=st[0],wt=st[1],Ke=this._getVerticalRangeToRender(),Ut=Ke[0],on=Ke[1],Tn=[];if(Yt>0&&Rt)for(var An=Ut;An<=on;An++)for(var Zt=en;Zt<=wt;Zt++)Tn.push((0,l.createElement)(Gt,{columnIndex:Zt,data:Ve,isScrolling:sn?ze:void 0,key:at({columnIndex:Zt,data:Ve,rowIndex:An}),rowIndex:An,style:this._getItemStyle(An,Zt)}));var ot=qe(this.props,this._instanceProps),We=At(this.props,this._instanceProps);return(0,l.createElement)(Xt||rt||"div",{className:hn,onScroll:this._onScroll,ref:this._outerRefSetter,style:(0,i.Z)({position:"relative",height:Lt,width:Jn,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:Bt},rn)},(0,l.createElement)(Kt||vt||"div",{children:Tn,ref:zt,style:{height:ot,pointerEvents:ze?"none":void 0,width:We}}))},Ne._callPropsCallbacks=function(){var bt=this.props,Gt=bt.columnCount,hn=bt.onItemsRendered,Yt=bt.onScroll,Bt=bt.rowCount;if(typeof hn=="function"&&Gt>0&&Bt>0){var Lt=this._getHorizontalRangeToRender(),zt=Lt[0],Kt=Lt[1],vt=Lt[2],Ve=Lt[3],lt=this._getVerticalRangeToRender(),at=lt[0],Xt=lt[1],rt=lt[2],Rt=lt[3];this._callOnItemsRendered(zt,Kt,at,Xt,vt,Ve,rt,Rt)}if(typeof Yt=="function"){var rn=this.state,sn=rn.horizontalScrollDirection,Jn=rn.scrollLeft,ze=rn.scrollTop,st=rn.scrollUpdateWasRequested,en=rn.verticalScrollDirection;this._callOnScroll(Jn,ze,sn,en,st)}},Ne._getHorizontalRangeToRender=function(){var bt=this.props,Gt=bt.columnCount,hn=bt.overscanColumnCount,Yt=bt.overscanColumnsCount,Bt=bt.overscanCount,Lt=bt.rowCount,zt=this.state,Kt=zt.horizontalScrollDirection,vt=zt.isScrolling,Ve=zt.scrollLeft,lt=hn||Yt||Bt||1;if(Gt===0||Lt===0)return[0,0,0,0];var at=ve(this.props,Ve,this._instanceProps),Xt=Me(this.props,at,Ve,this._instanceProps),rt=!vt||Kt==="backward"?Math.max(1,lt):1,Rt=!vt||Kt==="forward"?Math.max(1,lt):1;return[Math.max(0,at-rt),Math.max(0,Math.min(Gt-1,Xt+Rt)),at,Xt]},Ne._getVerticalRangeToRender=function(){var bt=this.props,Gt=bt.columnCount,hn=bt.overscanCount,Yt=bt.overscanRowCount,Bt=bt.overscanRowsCount,Lt=bt.rowCount,zt=this.state,Kt=zt.isScrolling,vt=zt.verticalScrollDirection,Ve=zt.scrollTop,lt=Yt||Bt||hn||1;if(Gt===0||Lt===0)return[0,0,0,0];var at=tt(this.props,Ve,this._instanceProps),Xt=ke(this.props,at,Ve,this._instanceProps),rt=!Kt||vt==="backward"?Math.max(1,lt):1,Rt=!Kt||vt==="forward"?Math.max(1,lt):1;return[Math.max(0,at-rt),Math.max(0,Math.min(Lt-1,Xt+Rt)),at,Xt]},ut}(l.PureComponent),ue.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},ue}var I=function(ue,ae){var ve=ue.children,Me=ue.direction,Ye=ue.height,qe=ue.innerTagName,At=ue.outerTagName,It=ue.overscanColumnsCount,Ce=ue.overscanCount,Ae=ue.overscanRowsCount,$e=ue.width,tt=ae.instance},N=50,K=function(ue,ae){var ve=ue.rowCount,Me=ae.rowMetadataMap,Ye=ae.estimatedRowHeight,qe=ae.lastMeasuredRowIndex,At=0;if(qe>=ve&&(qe=ve-1),qe>=0){var It=Me[qe];At=It.offset+It.size}var Ce=ve-qe-1,Ae=Ce*Ye;return At+Ae},_=function(ue,ae){var ve=ue.columnCount,Me=ae.columnMetadataMap,Ye=ae.estimatedColumnWidth,qe=ae.lastMeasuredColumnIndex,At=0;if(qe>=ve&&(qe=ve-1),qe>=0){var It=Me[qe];At=It.offset+It.size}var Ce=ve-qe-1,Ae=Ce*Ye;return At+Ae},W=function(ue,ae,ve,Me){var Ye,qe,At;if(ue==="column"?(Ye=Me.columnMetadataMap,qe=ae.columnWidth,At=Me.lastMeasuredColumnIndex):(Ye=Me.rowMetadataMap,qe=ae.rowHeight,At=Me.lastMeasuredRowIndex),ve>At){var It=0;if(At>=0){var Ce=Ye[At];It=Ce.offset+Ce.size}for(var Ae=At+1;Ae<=ve;Ae++){var $e=qe(Ae);Ye[Ae]={offset:It,size:$e},It+=$e}ue==="column"?Me.lastMeasuredColumnIndex=ve:Me.lastMeasuredRowIndex=ve}return Ye[ve]},j=function(ue,ae,ve,Me){var Ye,qe;ue==="column"?(Ye=ve.columnMetadataMap,qe=ve.lastMeasuredColumnIndex):(Ye=ve.rowMetadataMap,qe=ve.lastMeasuredRowIndex);var At=qe>0?Ye[qe].offset:0;return At>=Me?re(ue,ae,ve,qe,0,Me):X(ue,ae,ve,Math.max(0,qe),Me)},re=function(ue,ae,ve,Me,Ye,qe){for(;Ye<=Me;){var At=Ye+Math.floor((Me-Ye)/2),It=W(ue,ae,At,ve).offset;if(It===qe)return At;It<qe?Ye=At+1:It>qe&&(Me=At-1)}return Ye>0?Ye-1:0},X=function(ue,ae,ve,Me,Ye){for(var qe=ue==="column"?ae.columnCount:ae.rowCount,At=1;Me<qe&&W(ue,ae,Me,ve).offset<Ye;)Me+=At,At*=2;return re(ue,ae,ve,Math.min(Me,qe-1),Math.floor(Me/2),Ye)},Z=function(ue,ae,ve,Me,Ye,qe,At){var It=ue==="column"?ae.width:ae.height,Ce=W(ue,ae,ve,qe),Ae=ue==="column"?_(ae,qe):K(ae,qe),$e=Math.max(0,Math.min(Ae-It,Ce.offset)),tt=Math.max(0,Ce.offset-It+At+Ce.size);switch(Me==="smart"&&(Ye>=tt-It&&Ye<=$e+It?Me="auto":Me="center"),Me){case"start":return $e;case"end":return tt;case"center":return Math.round(tt+($e-tt)/2);case"auto":default:return Ye>=tt&&Ye<=$e?Ye:tt>$e||Ye<tt?tt:$e}},J=A({getColumnOffset:function(ue,ae,ve){return W("column",ue,ae,ve).offset},getColumnStartIndexForOffset:function(ue,ae,ve){return j("column",ue,ve,ae)},getColumnStopIndexForStartIndex:function(ue,ae,ve,Me){for(var Ye=ue.columnCount,qe=ue.width,At=W("column",ue,ae,Me),It=ve+qe,Ce=At.offset+At.size,Ae=ae;Ae<Ye-1&&Ce<It;)Ae++,Ce+=W("column",ue,Ae,Me).size;return Ae},getColumnWidth:function(ue,ae,ve){return ve.columnMetadataMap[ae].size},getEstimatedTotalHeight:K,getEstimatedTotalWidth:_,getOffsetForColumnAndAlignment:function(ue,ae,ve,Me,Ye,qe){return Z("column",ue,ae,ve,Me,Ye,qe)},getOffsetForRowAndAlignment:function(ue,ae,ve,Me,Ye,qe){return Z("row",ue,ae,ve,Me,Ye,qe)},getRowOffset:function(ue,ae,ve){return W("row",ue,ae,ve).offset},getRowHeight:function(ue,ae,ve){return ve.rowMetadataMap[ae].size},getRowStartIndexForOffset:function(ue,ae,ve){return j("row",ue,ve,ae)},getRowStopIndexForStartIndex:function(ue,ae,ve,Me){for(var Ye=ue.rowCount,qe=ue.height,At=W("row",ue,ae,Me),It=ve+qe,Ce=At.offset+At.size,Ae=ae;Ae<Ye-1&&Ce<It;)Ae++,Ce+=W("row",ue,Ae,Me).size;return Ae},initInstanceProps:function(ue,ae){var ve=ue,Me=ve.estimatedColumnWidth,Ye=ve.estimatedRowHeight,qe={columnMetadataMap:{},estimatedColumnWidth:Me||N,estimatedRowHeight:Ye||N,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return ae.resetAfterColumnIndex=function(At,It){It===void 0&&(It=!0),ae.resetAfterIndices({columnIndex:At,shouldForceUpdate:It})},ae.resetAfterRowIndex=function(At,It){It===void 0&&(It=!0),ae.resetAfterIndices({rowIndex:At,shouldForceUpdate:It})},ae.resetAfterIndices=function(At){var It=At.columnIndex,Ce=At.rowIndex,Ae=At.shouldForceUpdate,$e=Ae===void 0?!0:Ae;typeof It=="number"&&(qe.lastMeasuredColumnIndex=Math.min(qe.lastMeasuredColumnIndex,It-1)),typeof Ce=="number"&&(qe.lastMeasuredRowIndex=Math.min(qe.lastMeasuredRowIndex,Ce-1)),ae._getItemStyleCache(-1),$e&&ae.forceUpdate()},qe},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(ue){var ae=ue.columnWidth,ve=ue.rowHeight}}),q=150,L=function(ue,ae){return ue},$=null,k=null;function F(Re){var ue,ae=Re.getItemOffset,ve=Re.getEstimatedTotalSize,Me=Re.getItemSize,Ye=Re.getOffsetForIndexAndAlignment,qe=Re.getStartIndexForOffset,At=Re.getStopIndexForStartIndex,It=Re.initInstanceProps,Ce=Re.shouldResetStyleCacheOnItemSizeChange,Ae=Re.validateProps;return ue=function($e){(0,u.Z)(tt,$e);function tt(Oe){var je;return je=$e.call(this,Oe)||this,je._instanceProps=It(je.props,(0,s.Z)(je)),je._outerRef=void 0,je._resetIsScrollingTimeoutId=null,je.state={instance:(0,s.Z)(je),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof je.props.initialScrollOffset=="number"?je.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},je._callOnItemsRendered=void 0,je._callOnItemsRendered=(0,v.default)(function(Et,ct,ut,Ne){return je.props.onItemsRendered({overscanStartIndex:Et,overscanStopIndex:ct,visibleStartIndex:ut,visibleStopIndex:Ne})}),je._callOnScroll=void 0,je._callOnScroll=(0,v.default)(function(Et,ct,ut){return je.props.onScroll({scrollDirection:Et,scrollOffset:ct,scrollUpdateWasRequested:ut})}),je._getItemStyle=void 0,je._getItemStyle=function(Et){var ct=je.props,ut=ct.direction,Ne=ct.itemSize,mt=ct.layout,bt=je._getItemStyleCache(Ce&&Ne,Ce&&mt,Ce&&ut),Gt;if(bt.hasOwnProperty(Et))Gt=bt[Et];else{var hn=ae(je.props,Et,je._instanceProps),Yt=Me(je.props,Et,je._instanceProps),Bt=ut==="horizontal"||mt==="horizontal",Lt=ut==="rtl",zt=Bt?hn:0;bt[Et]=Gt={position:"absolute",left:Lt?void 0:zt,right:Lt?zt:void 0,top:Bt?0:hn,height:Bt?"100%":Yt,width:Bt?Yt:"100%"}}return Gt},je._getItemStyleCache=void 0,je._getItemStyleCache=(0,v.default)(function(Et,ct,ut){return{}}),je._onScrollHorizontal=function(Et){var ct=Et.currentTarget,ut=ct.clientWidth,Ne=ct.scrollLeft,mt=ct.scrollWidth;je.setState(function(bt){if(bt.scrollOffset===Ne)return null;var Gt=je.props.direction,hn=Ne;if(Gt==="rtl")switch(S()){case"negative":hn=-Ne;break;case"positive-descending":hn=mt-ut-Ne;break}return hn=Math.max(0,Math.min(hn,mt-ut)),{isScrolling:!0,scrollDirection:bt.scrollOffset<Ne?"forward":"backward",scrollOffset:hn,scrollUpdateWasRequested:!1}},je._resetIsScrollingDebounced)},je._onScrollVertical=function(Et){var ct=Et.currentTarget,ut=ct.clientHeight,Ne=ct.scrollHeight,mt=ct.scrollTop;je.setState(function(bt){if(bt.scrollOffset===mt)return null;var Gt=Math.max(0,Math.min(mt,Ne-ut));return{isScrolling:!0,scrollDirection:bt.scrollOffset<Gt?"forward":"backward",scrollOffset:Gt,scrollUpdateWasRequested:!1}},je._resetIsScrollingDebounced)},je._outerRefSetter=function(Et){var ct=je.props.outerRef;je._outerRef=Et,typeof ct=="function"?ct(Et):ct!=null&&typeof ct=="object"&&ct.hasOwnProperty("current")&&(ct.current=Et)},je._resetIsScrollingDebounced=function(){je._resetIsScrollingTimeoutId!==null&&f(je._resetIsScrollingTimeoutId),je._resetIsScrollingTimeoutId=g(je._resetIsScrolling,q)},je._resetIsScrolling=function(){je._resetIsScrollingTimeoutId=null,je.setState({isScrolling:!1},function(){je._getItemStyleCache(-1,null)})},je}tt.getDerivedStateFromProps=function(je,Et){return V(je,Et),Ae(je),null};var ke=tt.prototype;return ke.scrollTo=function(je){je=Math.max(0,je),this.setState(function(Et){return Et.scrollOffset===je?null:{scrollDirection:Et.scrollOffset<je?"forward":"backward",scrollOffset:je,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},ke.scrollToItem=function(je,Et){Et===void 0&&(Et="auto");var ct=this.props,ut=ct.itemCount,Ne=ct.layout,mt=this.state.scrollOffset;je=Math.max(0,Math.min(je,ut-1));var bt=0;if(this._outerRef){var Gt=this._outerRef;Ne==="vertical"?bt=Gt.scrollWidth>Gt.clientWidth?b():0:bt=Gt.scrollHeight>Gt.clientHeight?b():0}this.scrollTo(Ye(this.props,je,Et,mt,this._instanceProps,bt))},ke.componentDidMount=function(){var je=this.props,Et=je.direction,ct=je.initialScrollOffset,ut=je.layout;if(typeof ct=="number"&&this._outerRef!=null){var Ne=this._outerRef;Et==="horizontal"||ut==="horizontal"?Ne.scrollLeft=ct:Ne.scrollTop=ct}this._callPropsCallbacks()},ke.componentDidUpdate=function(){var je=this.props,Et=je.direction,ct=je.layout,ut=this.state,Ne=ut.scrollOffset,mt=ut.scrollUpdateWasRequested;if(mt&&this._outerRef!=null){var bt=this._outerRef;if(Et==="horizontal"||ct==="horizontal")if(Et==="rtl")switch(S()){case"negative":bt.scrollLeft=-Ne;break;case"positive-ascending":bt.scrollLeft=Ne;break;default:var Gt=bt.clientWidth,hn=bt.scrollWidth;bt.scrollLeft=hn-Gt-Ne;break}else bt.scrollLeft=Ne;else bt.scrollTop=Ne}this._callPropsCallbacks()},ke.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&f(this._resetIsScrollingTimeoutId)},ke.render=function(){var je=this.props,Et=je.children,ct=je.className,ut=je.direction,Ne=je.height,mt=je.innerRef,bt=je.innerElementType,Gt=je.innerTagName,hn=je.itemCount,Yt=je.itemData,Bt=je.itemKey,Lt=Bt===void 0?L:Bt,zt=je.layout,Kt=je.outerElementType,vt=je.outerTagName,Ve=je.style,lt=je.useIsScrolling,at=je.width,Xt=this.state.isScrolling,rt=ut==="horizontal"||zt==="horizontal",Rt=rt?this._onScrollHorizontal:this._onScrollVertical,rn=this._getRangeToRender(),sn=rn[0],Jn=rn[1],ze=[];if(hn>0)for(var st=sn;st<=Jn;st++)ze.push((0,l.createElement)(Et,{data:Yt,key:Lt(st,Yt),index:st,isScrolling:lt?Xt:void 0,style:this._getItemStyle(st)}));var en=ve(this.props,this._instanceProps);return(0,l.createElement)(Kt||vt||"div",{className:ct,onScroll:Rt,ref:this._outerRefSetter,style:(0,i.Z)({position:"relative",height:Ne,width:at,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:ut},Ve)},(0,l.createElement)(bt||Gt||"div",{children:ze,ref:mt,style:{height:rt?"100%":en,pointerEvents:Xt?"none":void 0,width:rt?en:"100%"}}))},ke._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var je=this.props.itemCount;if(je>0){var Et=this._getRangeToRender(),ct=Et[0],ut=Et[1],Ne=Et[2],mt=Et[3];this._callOnItemsRendered(ct,ut,Ne,mt)}}if(typeof this.props.onScroll=="function"){var bt=this.state,Gt=bt.scrollDirection,hn=bt.scrollOffset,Yt=bt.scrollUpdateWasRequested;this._callOnScroll(Gt,hn,Yt)}},ke._getRangeToRender=function(){var je=this.props,Et=je.itemCount,ct=je.overscanCount,ut=this.state,Ne=ut.isScrolling,mt=ut.scrollDirection,bt=ut.scrollOffset;if(Et===0)return[0,0,0,0];var Gt=qe(this.props,bt,this._instanceProps),hn=At(this.props,Gt,bt,this._instanceProps),Yt=!Ne||mt==="backward"?Math.max(1,ct):1,Bt=!Ne||mt==="forward"?Math.max(1,ct):1;return[Math.max(0,Gt-Yt),Math.max(0,Math.min(Et-1,hn+Bt)),Gt,hn]},tt}(l.PureComponent),ue.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},ue}var V=function(ue,ae){var ve=ue.children,Me=ue.direction,Ye=ue.height,qe=ue.layout,At=ue.innerTagName,It=ue.outerTagName,Ce=ue.width,Ae=ae.instance;if(!1)var $e},pe=50,ce=function(ue,ae,ve){var Me=ue,Ye=Me.itemSize,qe=ve.itemMetadataMap,At=ve.lastMeasuredIndex;if(ae>At){var It=0;if(At>=0){var Ce=qe[At];It=Ce.offset+Ce.size}for(var Ae=At+1;Ae<=ae;Ae++){var $e=Ye(Ae);qe[Ae]={offset:It,size:$e},It+=$e}ve.lastMeasuredIndex=ae}return qe[ae]},G=function(ue,ae,ve){var Me=ae.itemMetadataMap,Ye=ae.lastMeasuredIndex,qe=Ye>0?Me[Ye].offset:0;return qe>=ve?te(ue,ae,Ye,0,ve):ie(ue,ae,Math.max(0,Ye),ve)},te=function(ue,ae,ve,Me,Ye){for(;Me<=ve;){var qe=Me+Math.floor((ve-Me)/2),At=ce(ue,qe,ae).offset;if(At===Ye)return qe;At<Ye?Me=qe+1:At>Ye&&(ve=qe-1)}return Me>0?Me-1:0},ie=function(ue,ae,ve,Me){for(var Ye=ue.itemCount,qe=1;ve<Ye&&ce(ue,ve,ae).offset<Me;)ve+=qe,qe*=2;return te(ue,ae,Math.min(ve,Ye-1),Math.floor(ve/2),Me)},fe=function(ue,ae){var ve=ue.itemCount,Me=ae.itemMetadataMap,Ye=ae.estimatedItemSize,qe=ae.lastMeasuredIndex,At=0;if(qe>=ve&&(qe=ve-1),qe>=0){var It=Me[qe];At=It.offset+It.size}var Ce=ve-qe-1,Ae=Ce*Ye;return At+Ae},Se=F({getItemOffset:function(ue,ae,ve){return ce(ue,ae,ve).offset},getItemSize:function(ue,ae,ve){return ve.itemMetadataMap[ae].size},getEstimatedTotalSize:fe,getOffsetForIndexAndAlignment:function(ue,ae,ve,Me,Ye,qe){var At=ue.direction,It=ue.height,Ce=ue.layout,Ae=ue.width,$e=At==="horizontal"||Ce==="horizontal",tt=$e?Ae:It,ke=ce(ue,ae,Ye),Oe=fe(ue,Ye),je=Math.max(0,Math.min(Oe-tt,ke.offset)),Et=Math.max(0,ke.offset-tt+ke.size+qe);switch(ve==="smart"&&(Me>=Et-tt&&Me<=je+tt?ve="auto":ve="center"),ve){case"start":return je;case"end":return Et;case"center":return Math.round(Et+(je-Et)/2);case"auto":default:return Me>=Et&&Me<=je?Me:Me<Et?Et:je}},getStartIndexForOffset:function(ue,ae,ve){return G(ue,ve,ae)},getStopIndexForStartIndex:function(ue,ae,ve,Me){for(var Ye=ue.direction,qe=ue.height,At=ue.itemCount,It=ue.layout,Ce=ue.width,Ae=Ye==="horizontal"||It==="horizontal",$e=Ae?Ce:qe,tt=ce(ue,ae,Me),ke=ve+$e,Oe=tt.offset+tt.size,je=ae;je<At-1&&Oe<ke;)je++,Oe+=ce(ue,je,Me).size;return je},initInstanceProps:function(ue,ae){var ve=ue,Me=ve.estimatedItemSize,Ye={itemMetadataMap:{},estimatedItemSize:Me||pe,lastMeasuredIndex:-1};return ae.resetAfterIndex=function(qe,At){At===void 0&&(At=!0),Ye.lastMeasuredIndex=Math.min(Ye.lastMeasuredIndex,qe-1),ae._getItemStyleCache(-1),At&&ae.forceUpdate()},Ye},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(ue){var ae=ue.itemSize}}),he=A({getColumnOffset:function(ue,ae){var ve=ue.columnWidth;return ae*ve},getColumnWidth:function(ue,ae){var ve=ue.columnWidth;return ve},getRowOffset:function(ue,ae){var ve=ue.rowHeight;return ae*ve},getRowHeight:function(ue,ae){var ve=ue.rowHeight;return ve},getEstimatedTotalHeight:function(ue){var ae=ue.rowCount,ve=ue.rowHeight;return ve*ae},getEstimatedTotalWidth:function(ue){var ae=ue.columnCount,ve=ue.columnWidth;return ve*ae},getOffsetForColumnAndAlignment:function(ue,ae,ve,Me,Ye,qe){var At=ue.columnCount,It=ue.columnWidth,Ce=ue.width,Ae=Math.max(0,At*It-Ce),$e=Math.min(Ae,ae*It),tt=Math.max(0,ae*It-Ce+qe+It);switch(ve==="smart"&&(Me>=tt-Ce&&Me<=$e+Ce?ve="auto":ve="center"),ve){case"start":return $e;case"end":return tt;case"center":var ke=Math.round(tt+($e-tt)/2);return ke<Math.ceil(Ce/2)?0:ke>Ae+Math.floor(Ce/2)?Ae:ke;case"auto":default:return Me>=tt&&Me<=$e?Me:tt>$e||Me<tt?tt:$e}},getOffsetForRowAndAlignment:function(ue,ae,ve,Me,Ye,qe){var At=ue.rowHeight,It=ue.height,Ce=ue.rowCount,Ae=Math.max(0,Ce*At-It),$e=Math.min(Ae,ae*At),tt=Math.max(0,ae*At-It+qe+At);switch(ve==="smart"&&(Me>=tt-It&&Me<=$e+It?ve="auto":ve="center"),ve){case"start":return $e;case"end":return tt;case"center":var ke=Math.round(tt+($e-tt)/2);return ke<Math.ceil(It/2)?0:ke>Ae+Math.floor(It/2)?Ae:ke;case"auto":default:return Me>=tt&&Me<=$e?Me:tt>$e||Me<tt?tt:$e}},getColumnStartIndexForOffset:function(ue,ae){var ve=ue.columnWidth,Me=ue.columnCount;return Math.max(0,Math.min(Me-1,Math.floor(ae/ve)))},getColumnStopIndexForStartIndex:function(ue,ae,ve){var Me=ue.columnWidth,Ye=ue.columnCount,qe=ue.width,At=ae*Me,It=Math.ceil((qe+ve-At)/Me);return Math.max(0,Math.min(Ye-1,ae+It-1))},getRowStartIndexForOffset:function(ue,ae){var ve=ue.rowHeight,Me=ue.rowCount;return Math.max(0,Math.min(Me-1,Math.floor(ae/ve)))},getRowStopIndexForStartIndex:function(ue,ae,ve){var Me=ue.rowHeight,Ye=ue.rowCount,qe=ue.height,At=ae*Me,It=Math.ceil((qe+ve-At)/Me);return Math.max(0,Math.min(Ye-1,ae+It-1))},initInstanceProps:function(ue){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(ue){var ae=ue.columnWidth,ve=ue.rowHeight}}),me=F({getItemOffset:function(ue,ae){var ve=ue.itemSize;return ae*ve},getItemSize:function(ue,ae){var ve=ue.itemSize;return ve},getEstimatedTotalSize:function(ue){var ae=ue.itemCount,ve=ue.itemSize;return ve*ae},getOffsetForIndexAndAlignment:function(ue,ae,ve,Me,Ye,qe){var At=ue.direction,It=ue.height,Ce=ue.itemCount,Ae=ue.itemSize,$e=ue.layout,tt=ue.width,ke=At==="horizontal"||$e==="horizontal",Oe=ke?tt:It,je=Math.max(0,Ce*Ae-Oe),Et=Math.min(je,ae*Ae),ct=Math.max(0,ae*Ae-Oe+Ae+qe);switch(ve==="smart"&&(Me>=ct-Oe&&Me<=Et+Oe?ve="auto":ve="center"),ve){case"start":return Et;case"end":return ct;case"center":{var ut=Math.round(ct+(Et-ct)/2);return ut<Math.ceil(Oe/2)?0:ut>je+Math.floor(Oe/2)?je:ut}case"auto":default:return Me>=ct&&Me<=Et?Me:Me<ct?ct:Et}},getStartIndexForOffset:function(ue,ae){var ve=ue.itemCount,Me=ue.itemSize;return Math.max(0,Math.min(ve-1,Math.floor(ae/Me)))},getStopIndexForStartIndex:function(ue,ae,ve){var Me=ue.direction,Ye=ue.height,qe=ue.itemCount,At=ue.itemSize,It=ue.layout,Ce=ue.width,Ae=Me==="horizontal"||It==="horizontal",$e=ae*At,tt=Ae?Ce:Ye,ke=Math.ceil((tt+ve-$e)/At);return Math.max(0,Math.min(qe-1,ae+ke-1))},initInstanceProps:function(ue){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(ue){var ae=ue.itemSize}});function _e(Re,ue){for(var ae in Re)if(!(ae in ue))return!0;for(var ve in ue)if(Re[ve]!==ue[ve])return!0;return!1}var we=["style"],Ge=["style"];function ht(Re,ue){var ae=Re.style,ve=(0,h.Z)(Re,we),Me=ue.style,Ye=(0,h.Z)(ue,Ge);return!_e(ae,Me)&&!_e(ve,Ye)}function nt(Re,ue){return!ht(this.props,Re)||_e(this.state,ue)}},10418:(C,c,t)=>{"use strict";t.d(c,{Z:()=>d});var i=t(45273),s=t(77592),u=Object.assign||function(f){for(var g=1;g<arguments.length;g++){var y=arguments[g];for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(f[b]=y[b])}return f};function v(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=g.defaultBlock,b=y===void 0?"line":y,E=g.defaultMarks,S=E===void 0?[]:E,w=g.delimiter,x=w===void 0?` `:w,P=g.toJSON,R=P===void 0?!1:P;s.Set.isSet(S)&&(S=S.toArray()),b=i.NB.createProperties(b),S=S.map(i.vc.createProperties);var T={object:"value",document:{object:"document",data:{},nodes:f.split(x).map(function(I){return u({},b,{object:"block",data:{},nodes:[{object:"text",text:I,marks:S}]})})}},A=R?T:i.B4.fromJSON(T);return A}function l(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h(f.document,g)}function h(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=g.delimiter,b=y===void 0?` `:y;return f.object==="document"||f.object==="block"&&i.gO.isBlockList(f.nodes)?f.nodes.map(h).join(b):f.text}var p={deserialize:v,serialize:l};const d=p},73817:(C,c,t)=>{"use strict";t.d(c,{ML:()=>bn,ZP:()=>Ms});var i=t(27702),s=t(93415),u=t.n(s),v=t(45273);function l(er,Ar){function Kr(Gr,Pi,aa,Fa,tn){var cn=Pi[aa];return cn==null&&!Gr?null:cn==null&&Gr?new Error("The "+tn+" `"+aa+"` is marked as required in `"+Fa+"`, but it was not supplied."):Ar(cn)?null:new Error("Invalid "+tn+" `"+aa+"` supplied to `"+Fa+"`, expected a Slate `"+er+"` but received: "+cn)}function ur(){for(var Gr=arguments.length,Pi=Array(Gr),aa=0;aa<Gr;aa++)Pi[aa]=arguments[aa];return Kr.apply(void 0,[!1].concat(Pi))}return ur.isRequired=function(){for(var Gr=arguments.length,Pi=Array(Gr),aa=0;aa<Gr;aa++)Pi[aa]=arguments[aa];return Kr.apply(void 0,[!0].concat(Pi))},ur}var h={block:l("Block",function(er){return v.gO.isBlock(er)}),blocks:l("List<Block>",function(er){return v.gO.isBlockList(er)}),change:l("Change",function(er){return v.RI.isChange(er)}),data:l("Data",function(er){return v.Vw.isData(er)}),document:l("Document",function(er){return v.BB.isDocument(er)}),inline:l("Inline",function(er){return v.gF.isInline(er)}),inlines:l("Inline",function(er){return v.gF.isInlineList(er)}),leaf:l("Leaf",function(er){return v.B3.isLeaf(er)}),leaves:l("List<Leaf>",function(er){return v.B3.isLeafList(er)}),mark:l("Mark",function(er){return v.vc.isMark(er)}),marks:l("Set<Mark>",function(er){return v.vc.isMarkSet(er)}),node:l("Node",function(er){return v.NB.isNode(er)}),nodes:l("List<Node>",function(er){return v.NB.isNodeList(er)}),range:l("Range",function(er){return v.e6.isRange(er)}),ranges:l("List<Range>",function(er){return v.e6.isRangeList(er)}),selection:l("Selection",function(er){return v.Y1.isSelection(er)}),value:l("Value",function(er){return v.B4.isValue(er)}),text:l("Text",function(er){return v.xv.isText(er)}),texts:l("List<Text>",function(er){return v.xv.isTextList(er)})};const p=h;var d=t(49658),f=t.n(d),g=t(49373),y=t.n(g),b=t(93425),E=t(77551),S=t.n(E),w=t(77746),x=t.n(w),P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(er){return typeof er}:function(er){return er&&typeof Symbol=="function"&&er.constructor===Symbol&&er!==Symbol.prototype?"symbol":typeof er},R=(typeof window>"u"?"undefined":P(window))==="object"&&(typeof document>"u"?"undefined":P(document))==="object"&&document.nodeType===9;const T=R;var A=function(){function er(Ar,Kr){var ur=[],Gr=!0,Pi=!1,aa=void 0;try{for(var Fa=Ar[Symbol.iterator](),tn;!(Gr=(tn=Fa.next()).done)&&(ur.push(tn.value),!(Kr&&ur.length===Kr));Gr=!0);}catch(cn){Pi=!0,aa=cn}finally{try{!Gr&&Fa.return&&Fa.return()}finally{if(Pi)throw aa}}return ur}return function(Ar,Kr){if(Array.isArray(Ar))return Ar;if(Symbol.iterator in Object(Ar))return er(Ar,Kr);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),I=[["edge",/Edge\/([0-9\._]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["android",/Android\s([0-9\.]+)/],["safari",/Version\/([0-9\._]+).*Safari/]],N=void 0;if(T){var K=!0,_=!1,W=void 0;try{for(var j=I[Symbol.iterator](),re;!(K=(re=j.next()).done);K=!0){var X=re.value,Z=A(X,2),J=Z[0],q=Z[1];if(q.test(window.navigator.userAgent)){N=J;break}}}catch(er){_=!0,W=er}finally{try{!K&&j.return&&j.return()}finally{if(_)throw W}}}var L=[["ios",/os ([\.\_\d]+) like mac os/i],["macos",/mac os x/i],["android",/android/i],["firefoxos",/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/i],["windows",/windows\s*(?:nt)?\s*([\.\_\d]+)/i]],$=void 0;if(T){var k=!0,F=!1,V=void 0;try{for(var pe=L[Symbol.iterator](),ce;!(k=(ce=pe.next()).done);k=!0){var G=ce.value,te=A(G,2),ie=te[0],fe=te[1];if(fe.test(window.navigator.userAgent)){$=ie;break}}}catch(er){F=!0,V=er}finally{try{!k&&pe.return&&pe.return()}finally{if(F)throw V}}}var Se=[["inputeventslevel1",function(er){var Ar=er.InputEvent?new er.InputEvent("input"):{},Kr="inputType"in Ar;return Kr}],["inputeventslevel2",function(er){return!1}]],he=[];if(T){var me=!0,_e=!1,we=void 0;try{for(var Ge=Se[Symbol.iterator](),ht;!(me=(ht=Ge.next()).done);me=!0){var nt=ht.value,Re=A(nt,2),ue=Re[0],ae=Re[1];ae(window)&&he.push(ue)}}catch(er){_e=!0,we=er}finally{try{!me&&Ge.return&&Ge.return()}finally{if(_e)throw we}}}var ve=[[/^9([.]0|)/,28],[/^8[.]1/,27],[/^8([.]0|)/,26],[/^7[.]1/,25],[/^7([.]0|)/,24],[/^6([.]0|)/,23],[/^5[.]1/,22],[/^5([.]0|)/,21],[/^4[.]4/,20]];function Me(){if($!=="android")return null;var er=window.navigator.userAgent,Ar=er.match(/Android\s([0-9\.]+)/);if(Ar==null)return null;var Kr=Ar[1],ur=!0,Gr=!1,Pi=void 0;try{for(var aa=ve[Symbol.iterator](),Fa;!(ur=(Fa=aa.next()).done);ur=!0){var tn=Fa.value,cn=A(tn,2),nr=cn[0],ir=cn[1];if(Kr.match(nr))return ir}}catch(Lr){Gr=!0,Pi=Lr}finally{try{!ur&&aa.return&&aa.return()}finally{if(Gr)throw Pi}}return null}var Ye=N==="chrome",qe=N==="opera",At=N==="firefox",It=N==="safari",Ce=N==="ie",Ae=N==="edge",$e=$==="android",tt=$==="ios",ke=$==="macos",Oe=$==="windows",je=Me(),Et=he.includes("inputeventslevel1"),ct=he.includes("inputeventslevel2")||$e&&(je===28||je===null),ut=t(44401),Ne=t.n(ut),mt=t(58517),bt=t.n(mt),Gt=t(77592),hn=t(53266),Yt={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z"},Bt={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Lt={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:"ctrl+y"},zt={},Kt=tt||ke,vt=!Kt,Ve=[].concat(Object.keys(Yt)).concat(Object.keys(Bt)).concat(Object.keys(Lt));Ve.forEach(function(er){var Ar="is"+er[0].toUpperCase()+er.slice(1);if(!zt[Ar]){var Kr=Yt[er],ur=Bt[er],Gr=Lt[er],Pi=Kr&&(0,hn.TB)(Kr),aa=ur&&(0,hn.TB)(ur),Fa=Gr&&(0,hn.TB)(Gr);zt[Ar]=function(tn){return!!(Pi&&Pi(tn)||Kt&&aa&&aa(tn)||vt&&Fa&&Fa(tn))}}});const lt=zt;var at=t(27473),Xt=t(88593);function rt(er){var Ar=JSON.stringify(er),Kr=(0,Xt.r)(encodeURIComponent(Ar));return Kr}function Rt(er){var Ar=decodeURIComponent((0,Xt.t)(er)),Kr=JSON.parse(Ar);return Kr}function rn(er,Ar){var Kr=Rt(er),ur=v.B4.fromJSON(Kr,Ar);return ur}function sn(er,Ar){var Kr=Rt(er),ur=v.NB.fromJSON(Kr,Ar);return ur}function Jn(er,Ar){var Kr=er.toJSON(Ar),ur=rt(Kr);return ur}function ze(er,Ar){var Kr=er.toJSON(Ar),ur=rt(Kr);return ur}var st={deserialize:rn,deserializeNode:sn,serialize:Jn,serializeNode:ze};const en=st;var wt=t(10418),Ke=t(25726),Ut=!1,on="Invariant failed",Tn=function(er,Ar){if(!er)throw Ut?new Error(on):new Error(on+": "+(Ar||""))},An=Object.assign||function(er){for(var Ar=1;Ar<arguments.length;Ar++){var Kr=arguments[Ar];for(var ur in Kr)Object.prototype.hasOwnProperty.call(Kr,ur)&&(er[ur]=Kr[ur])}return er},Zt=function(){function er(Ar,Kr){var ur=[],Gr=!0,Pi=!1,aa=void 0;try{for(var Fa=Ar[Symbol.iterator](),tn;!(Gr=(tn=Fa.next()).done)&&(ur.push(tn.value),!(Kr&&ur.length===Kr));Gr=!0);}catch(cn){Pi=!0,aa=cn}finally{try{!Gr&&Fa.return&&Fa.return()}finally{if(Pi)throw aa}}return ur}return function(Ar,Kr){if(Array.isArray(Ar))return Ar;if(Symbol.iterator in Object(Ar))return er(Ar,Kr);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ot=function(er){if(Array.isArray(er)){for(var Ar=0,Kr=Array(er.length);Ar<er.length;Ar++)Kr[Ar]=er[Ar];return Kr}else return Array.from(er)},We=0;function Ft(){var er=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ar=We++,Kr=er.placeholder,ur=er.when,Gr=er.style,Pi=Gr===void 0?{}:Gr;Tn(typeof Kr=="string","You must pass `SlateReactPlaceholder` an `options.placeholder` string."),Tn(typeof ur=="string"||typeof ur=="function","You must pass `SlateReactPlaceholder` an `options.when` query.");function aa(tn,cn,nr){if(!cn.query(ur,tn))return nr();var ir=nr(),Lr=tn.texts(),ua=Zt(Lr,1),_a=ua[0],Ka=tn.texts({direction:"backward"}),yo=Zt(Ka,1),Ba=yo[0],Ma=Zt(_a,2),Mo=Ma[0],Nr=Ma[1],gi=Zt(Ba,2),ea=gi[0],dr=gi[1],ci={type:"placeholder",data:{key:Ar},anchor:{key:Mo.key,offset:0,path:Nr},focus:{key:ea.key,offset:ea.text.length,path:dr}};return[].concat(ot(ir),[ci])}function Fa(tn,cn,nr){var ir=tn.children,Lr=tn.decoration;if(Lr.type==="placeholder"&&Lr.data.get("key")===Ar){var ua=An({pointerEvents:"none",display:"inline-block",width:"0",maxWidth:"100%",whiteSpace:"nowrap",opacity:"0.333",verticalAlign:"text-top"},Pi);return i.createElement("span",null,i.createElement("span",{contentEditable:!1,style:ua},Kr),ir)}return nr()}return{decorateNode:aa,renderDecoration:Fa}}const it=Ft;var qt=function(Ar,Kr){return Ar===Kr};function vn(er,Ar){Ar===void 0&&(Ar=qt);var Kr,ur=[],Gr,Pi=!1,aa=function(cn,nr){return Ar(cn,ur[nr])},Fa=function(){for(var cn=arguments.length,nr=new Array(cn),ir=0;ir<cn;ir++)nr[ir]=arguments[ir];return Pi&&Kr===this&&nr.length===ur.length&&nr.every(aa)||(Gr=er.apply(this,nr),Pi=!0,Kr=this,ur=nr),Gr};return Fa}const fn=vn;var Tt=["onBeforeInput","onBlur","onClick","onContextMenu","onCompositionEnd","onCompositionStart","onCopy","onCut","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onInput","onFocus","onKeyDown","onKeyUp","onMouseDown","onMouseUp","onPaste","onSelect"],dn=["decorateNode","renderAnnotation","renderBlock","renderDecoration","renderDocument","renderEditor","renderInline","renderMark"],mn={EDITOR:"data-slate-editor",FRAGMENT:"data-slate-fragment",KEY:"data-key",LEAF:"data-slate-leaf",LENGTH:"data-slate-length",OBJECT:"data-slate-object",OFFSET_KEY:"data-offset-key",SPACER:"data-slate-spacer",STRING:"data-slate-string",TEXT:"data-slate-object",VOID:"data-slate-void",ZERO_WIDTH:"data-slate-zero-width"},Kn={BLOCK:"["+mn.OBJECT+'="block"]',EDITOR:"["+mn.EDITOR+"]",INLINE:"["+mn.OBJECT+'="inline"]',KEY:"["+mn.KEY+"]",LEAF:"["+mn.LEAF+"]",OBJECT:"["+mn.OBJECT+"]",STRING:"["+mn.STRING+"]",TEXT:"["+mn.OBJECT+'="text"]',VOID:"["+mn.VOID+"]",ZERO_WIDTH:"["+mn.ZERO_WIDTH+"]"},Dn=function(er,Ar){if(!(er instanceof Ar))throw new TypeError("Cannot call a class as a function")},Vn=function(){function er(Ar,Kr){for(var ur=0;ur<Kr.length;ur++){var Gr=Kr[ur];Gr.enumerable=Gr.enumerable||!1,Gr.configurable=!0,"value"in Gr&&(Gr.writable=!0),Object.defineProperty(Ar,Gr.key,Gr)}}return function(Ar,Kr,ur){return Kr&&er(Ar.prototype,Kr),ur&&er(Ar,ur),Ar}}(),or=function(er,Ar,Kr){return Ar in er?Object.defineProperty(er,Ar,{value:Kr,enumerable:!0,configurable:!0,writable:!0}):er[Ar]=Kr,er},Qr=Object.assign||function(er){for(var Ar=1;Ar<arguments.length;Ar++){var Kr=arguments[Ar];for(var ur in Kr)Object.prototype.hasOwnProperty.call(Kr,ur)&&(er[ur]=Kr[ur])}return er},ni=function(er,Ar){if(typeof Ar!="function"&&Ar!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ar);er.prototype=Object.create(Ar&&Ar.prototype,{constructor:{value:er,enumerable:!1,writable:!0,configurable:!0}}),Ar&&(Object.setPrototypeOf?Object.setPrototypeOf(er,Ar):er.__proto__=Ar)},yr=function(er,Ar){if(!er)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ar&&(typeof Ar=="object"||typeof Ar=="function")?Ar:er},si=function(){function er(Ar,Kr){var ur=[],Gr=!0,Pi=!1,aa=void 0;try{for(var Fa=Ar[Symbol.iterator](),tn;!(Gr=(tn=Fa.next()).done)&&(ur.push(tn.value),!(Kr&&ur.length===Kr));Gr=!0);}catch(cn){Pi=!0,aa=cn}finally{try{!Gr&&Fa.return&&Fa.return()}finally{if(Pi)throw aa}}return ur}return function(Ar,Kr){if(Array.isArray(Ar))return Ar;if(Symbol.iterator in Object(Ar))return er(Ar,Kr);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Yr=function(er){if(Array.isArray(er)){for(var Ar=0,Kr=Array(er.length);Ar<er.length;Ar++)Kr[Ar]=er[Ar];return Kr}else return Array.from(er)},Ci=/^([\w-]+)(?::(\d+))?$/;function Ni(er){var Ar=Ci.exec(er);if(!Ar)throw new Error('Invalid offset key string "'+er+'".');var Kr=si(Ar,3),ur=Kr[0],Gr=Kr[1],Pi=Kr[2];return{key:Gr,index:parseInt(Pi,10)}}function fa(er){return er.key+":"+er.index}var ha={parse:Ni,stringify:fa},Ca=function(Ar){var Kr=Ar.text,ur=Kr===void 0?"":Kr,Gr=Ar.isTrailing,Pi=Gr===void 0?!1:Gr;return i.createElement("span",or({},mn.STRING,!0),ur,Pi?` `:null)},li=function(Ar){var Kr,ur=Ar.length,Gr=ur===void 0?0:ur,Pi=Ar.isLineBreak,aa=Pi===void 0?!1:Pi;return i.createElement("span",(Kr={},or(Kr,mn.ZERO_WIDTH,aa?"n":"z"),or(Kr,mn.LENGTH,Gr),Kr),"\uFEFF",aa?i.createElement("br",null):null)},la=function(Ar){var Kr,ur=Ar.marks,Gr=Ar.annotations,Pi=Ar.decorations,aa=Ar.node,Fa=Ar.index,tn=Ar.offset,cn=Ar.text,nr=Ar.editor,ir=Ar.parent,Lr=Ar.block,ua=Ar.leaves,_a=ha.stringify({key:aa.key,index:Fa}),Ka=void 0;if(nr.query("isVoid",ir))Ka=i.createElement(li,{length:ir.text.length});else if(cn===""&&ir.object==="block"&&ir.text===""&&ir.nodes.last()===aa)Ka=i.createElement(li,{isLineBreak:!0});else if(cn==="")Ka=i.createElement(li,null);else{var yo=Lr.getLastText(),Ba=cn.charAt(cn.length-1),Ma=aa===yo,Mo=Fa===ua.size-1;Ma&&Mo&&Ba===` `?Ka=i.createElement(Ca,{isTrailing:!0,text:cn}):Ka=i.createElement(Ca,{text:cn})}var Nr={editor:nr,marks:ur,annotations:Gr,decorations:Pi,node:aa,offset:tn,text:cn},gi=!0,ea=!1,dr=void 0;try{for(var ci=ur[Symbol.iterator](),yi;!(gi=(yi=ci.next()).done);gi=!0){var xa=yi.value,Cr=nr.run("renderMark",Qr({},Nr,{mark:xa,children:Ka,attributes:or({},mn.OBJECT,"mark")}));Cr&&(Ka=Cr)}}catch(Zu){ea=!0,dr=Zu}finally{try{!gi&&ci.return&&ci.return()}finally{if(ea)throw dr}}var ka=!0,Io=!1,Co=void 0;try{for(var _s=Pi[Symbol.iterator](),Is;!(ka=(Is=_s.next()).done);ka=!0){var xs=Is.value,Cr=nr.run("renderDecoration",Qr({},Nr,{decoration:xs,children:Ka,attributes:or({},mn.OBJECT,"decoration")}));Cr&&(Ka=Cr)}}catch(Zu){Io=!0,Co=Zu}finally{try{!ka&&_s.return&&_s.return()}finally{if(Io)throw Co}}var Zs=!0,Ns=!1,Us=void 0;try{for(var fu=Gr[Symbol.iterator](),bu;!(Zs=(bu=fu.next()).done);Zs=!0){var Ys=bu.value,Cr=nr.run("renderAnnotation",Qr({},Nr,{annotation:Ys,children:Ka,attributes:or({},mn.OBJECT,"annotation")}));Cr&&(Ka=Cr)}}catch(Zu){Ns=!0,Us=Zu}finally{try{!Zs&&fu.return&&fu.return()}finally{if(Ns)throw Us}}var Hu=(Kr={},or(Kr,mn.LEAF,!0),or(Kr,mn.OFFSET_KEY,_a),Kr);return i.createElement("span",Hu,Ka)};la.propTypes={annotations:f().list.isRequired,block:p.block.isRequired,decorations:f().list.isRequired,editor:u().object.isRequired,index:u().number.isRequired,leaves:u().object.isRequired,marks:p.marks.isRequired,node:p.node.isRequired,offset:u().number.isRequired,parent:p.node.isRequired,text:u().string.isRequired};var Oa=i.memo(la,function(er,Ar){return Ar.block===er.block&&Ar.index===er.index&&Ar.marks===er.marks&&Ar.parent===er.parent&&Ar.text===er.text&&Ar.annotations.equals(er.annotations)&&Ar.decorations.equals(er.decorations)}),wa=i.forwardRef(function(er,Ar){var Kr,ur=er.annotations,Gr=er.block,Pi=er.decorations,aa=er.node,Fa=er.parent,tn=er.editor,cn=er.style,nr=aa.key,ir=aa.getLeaves(ur,Pi),Lr=0;return i.createElement("span",Qr({ref:Ar,style:cn},(Kr={},or(Kr,mn.OBJECT,aa.object),or(Kr,mn.KEY,nr),Kr)),ir.map(function(ua,_a){var Ka=ua.text,yo=Lr;return Lr+=Ka.length,i.createElement(Oa,{key:aa.key+"-"+_a,block:Gr,editor:tn,index:_a,annotations:ua.annotations,decorations:ua.decorations,marks:ua.marks,node:aa,offset:yo,parent:Fa,leaves:ir,text:Ka})}))});wa.propTypes={annotations:f().map.isRequired,block:p.block,decorations:f().list.isRequired,editor:u().object.isRequired,node:p.node.isRequired,parent:p.node.isRequired,style:u().object};var vo=i.memo(wa,function(er,Ar){return Ar.node===er.node&&Ar.parent.object==="block"&&er.parent.nodes.last()===er.node&&Ar.parent.nodes.last()!==Ar.node&&Ar.annotations.equals(er.annotations)&&Ar.decorations.equals(er.decorations)}),Qn=y()("slate:void"),_r=function(er){ni(Ar,er);function Ar(){var Kr,ur,Gr,Pi;Dn(this,Ar);for(var aa=arguments.length,Fa=Array(aa),tn=0;tn<aa;tn++)Fa[tn]=arguments[tn];return Pi=(ur=(Gr=yr(this,(Kr=Ar.__proto__||Object.getPrototypeOf(Ar)).call.apply(Kr,[this].concat(Fa))),Gr),$r.call(Gr),ur),yr(Gr,Pi)}return Vn(Ar,[{key:"render",value:function(){var ur,Gr=this.props,Pi=Gr.children,aa=Gr.node,Fa=Gr.readOnly,tn=aa.object==="block"?"div":"span",cn={height:"0",color:"transparent",outline:"none",position:"absolute"},nr=or({},mn.SPACER,!0),ir=i.createElement(tn,Qr({style:cn},nr),this.renderText()),Lr=i.createElement(tn,{contentEditable:Fa?null:!1},Pi);this.debug("render",{props:Gr});var ua=(ur={},or(ur,mn.VOID,!0),or(ur,mn.KEY,aa.key),ur);return i.createElement(tn,Qr({contentEditable:Fa||aa.object==="block"?null:!1},ua),Fa?null:ir,Lr)}}]),Ar}(i.Component);_r.propTypes={block:p.block,children:u().any.isRequired,editor:u().object.isRequired,node:p.node.isRequired,parent:p.node.isRequired,readOnly:u().bool.isRequired};var $r=function(){var Ar=this;this.debug=function(Kr){for(var ur=arguments.length,Gr=Array(ur>1?ur-1:0),Pi=1;Pi<ur;Pi++)Gr[Pi-1]=arguments[Pi];var aa=Ar.props.node,Fa=aa.key,tn=aa.type,cn=Fa+" ("+tn+")";Qn.apply(void 0,[Kr,""+cn].concat(Gr))},this.renderText=function(){var Kr=Ar.props,ur=Kr.annotations,Gr=Kr.block,Pi=Kr.decorations,aa=Kr.node,Fa=Kr.readOnly,tn=Kr.editor,cn=Kr.textRef,nr=aa.getFirstText();return i.createElement(vo,{ref:cn,annotations:ur,block:aa.object==="block"?aa:Gr,decorations:Pi,editor:tn,key:nr.key,node:nr,parent:aa,readOnly:Fa})}},Ti=y()("slate:node"),xt=function(er){ni(Ar,er);function Ar(){var Kr,ur,Gr,Pi;Dn(this,Ar);for(var aa=arguments.length,Fa=Array(aa),tn=0;tn<aa;tn++)Fa[tn]=arguments[tn];return Pi=(ur=(Gr=yr(this,(Kr=Ar.__proto__||Object.getPrototypeOf(Ar)).call.apply(Kr,[this].concat(Fa))),Gr),On.call(Gr),ur),yr(Gr,Pi)}return Vn(Ar,[{key:"shouldComponentUpdate",value:function(ur){var Gr=this.props,Pi=Gr.editor,aa=Pi.run("shouldNodeComponentUpdate",Gr,ur),Fa=ur,tn=Gr;if(aa!=null){if((0,b.Z)(!1,'As of slate-react@0.22 the `shouldNodeComponentUpdate` middleware is deprecated. You can pass specific values down the tree using React\'s built-in "context" construct instead.'),aa)return!0;(0,b.Z)(aa!==!1,"Returning false in `shouldNodeComponentUpdate` does not disable Slate's internal `shouldComponentUpdate` logic. If you want to prevent updates, use React's `shouldComponentUpdate` instead.")}return!!(Fa.readOnly!==tn.readOnly||Fa.node!==tn.node||!Fa.selection&&tn.selection||Fa.selection&&!tn.selection||Fa.selection&&tn.selection&&!Fa.selection.equals(tn.selection)||!Fa.annotations.equals(tn.annotations)||!Fa.decorations.equals(tn.decorations))}},{key:"render",value:function(){var ur=this,Gr;this.debug("render",this);var Pi=this.props,aa=Pi.annotations,Fa=Pi.block,tn=Pi.decorations,cn=Pi.editor,nr=Pi.node,ir=Pi.parent,Lr=Pi.readOnly,ua=Pi.selection,_a=nr.getDecorations(cn),Ka=nr.nodes.toArray().map(function(Nr,gi){var ea=Nr.object==="text"?vo:Ar,dr=ua&&Zn(nr,gi,ua),ci=_a.concat(tn).map(function(xa){return Zn(nr,gi,xa)}).filter(function(xa){return xa}),yi=aa.map(function(xa){return Zn(nr,gi,xa)}).filter(function(xa){return xa});return i.createElement(ea,{block:nr.object==="block"?nr:Fa,editor:cn,annotations:yi,decorations:ci,selection:dr,key:Nr.key,node:Nr,parent:nr,readOnly:Lr,ref:function(Cr){Cr?ur.tmp.nodeRefs[gi]=Cr:delete ur.tmp.nodeRefs[gi]}})}),yo=(Gr={},or(Gr,mn.OBJECT,nr.object),or(Gr,mn.KEY,nr.key),or(Gr,"ref",this.ref),Gr);if(nr.isLeafBlock()){var Ba=nr.getTextDirection();Ba==="rtl"&&(yo.dir="rtl")}var Ma=void 0;nr.object==="block"?Ma="renderBlock":nr.object==="document"?Ma="renderDocument":nr.object==="inline"&&(Ma="renderInline");var Mo=cn.run(Ma,{attributes:yo,children:Ka,editor:cn,isFocused:!!ua&&ua.isFocused,isSelected:!!ua,node:nr,parent:ir,readOnly:Lr});return cn.isVoid(nr)?i.createElement(_r,Qr({},this.props,{textRef:function(gi){gi?ur.tmp.nodeRefs[0]=gi:delete ur.tmp.nodeRefs[0]}}),Mo):Mo}}]),Ar}(i.Component);xt.propTypes={annotations:f().map.isRequired,block:p.block,decorations:f().list.isRequired,editor:u().object.isRequired,node:p.node.isRequired,parent:p.node,readOnly:u().bool.isRequired,selection:p.selection};var On=function(){var Ar=this;this.tmp={nodeRefs:{}},this.ref=i.createRef(),this.debug=function(Kr){for(var ur=arguments.length,Gr=Array(ur>1?ur-1:0),Pi=1;Pi<ur;Pi++)Gr[Pi-1]=arguments[Pi];var aa=Ar.props.node,Fa=aa.key,tn=aa.type;Ti.apply(void 0,[Kr,Fa+" ("+tn+")"].concat(Gr))}};function Zn(er,Ar,Kr){if(Kr.isUnset)return null;var ur=er.nodes.get(Ar),Gr=Kr,Pi=Gr.start,aa=Gr.end,Fa=Pi,tn=Fa.path,cn=aa,nr=cn.path,ir=tn.first(),Lr=nr.first();if(ir===Ar)Pi=Pi.setPath(tn.rest());else if(ir<Ar&&Ar<=Lr)if(ur.object==="text")Pi=Pi.moveTo(v.C0.create([Ar]),0).setKey(ur.key);else{var ua=ur.texts(),_a=si(ua,1),Ka=_a[0],yo=si(Ka,2),Ba=yo[0],Ma=yo[1];Pi=Pi.moveTo(Ma,0).setKey(Ba.key)}else Pi=null;if(Lr===Ar)aa=aa.setPath(nr.rest());else if(ir<=Ar&&Ar<Lr)if(ur.object==="text"){var Mo=ur.text.length;aa=aa.moveTo(v.C0.create([Ar]),Mo).setKey(ur.key)}else{var Nr=ur.texts({direction:"backward"}),gi=si(Nr,1),ea=gi[0],dr=si(ea,2),ci=dr[0],yi=dr[1];aa=aa.moveTo(yi,ci.text.length).setKey(ci.key)}else aa=null;return!Pi||!aa?null:(Kr=Kr.setAnchor(Pi),Kr=Kr.setFocus(aa),Kr)}var Ur=["auto","overlay","scroll"],En=tt&&!!window.navigator.userAgent.match(/os 11_/i);function ln(er,Ar){for(var Kr=er.parentNode,ur=void 0;!ur&&Kr.parentNode;){var Gr=Ar.getComputedStyle(Kr),Pi=Gr.overflowY;if(Ur.includes(Pi)){ur=Kr;break}Kr=Kr.parentNode}return ur||Ar.document.body}function jn(er){if(!En&&er.anchorNode){var Ar=S()(er.anchorNode),Kr=ln(er.anchorNode,Ar),ur=Kr===Ar.document.body||Kr===Ar.document.documentElement,Gr=x()(er),Pi=er.getRangeAt(0).cloneRange();Pi.collapse(Gr);var aa=Pi.getBoundingClientRect();It&&Pi.collapsed&&aa.top===0&&aa.height===0&&(Pi.startOffset===0?Pi.setEnd(Pi.endContainer,1):Pi.setStart(Pi.startContainer,Pi.startOffset-1),aa=Pi.getBoundingClientRect(),aa.top===0&&aa.height===0&&Pi.getClientRects().length&&(aa=Pi.getClientRects()[0]));var Fa=void 0,tn=void 0,cn=void 0,nr=void 0,ir=0,Lr=0,ua=0,_a=0,Ka=0,yo=0,Ba=0,Ma=0;if(ur){var Mo=Ar.innerWidth,Nr=Ar.innerHeight,gi=Ar.pageYOffset,ea=Ar.pageXOffset;Fa=Mo,tn=Nr,cn=gi,nr=ea}else{var dr=Kr.offsetWidth,ci=Kr.offsetHeight,yi=Kr.scrollTop,xa=Kr.scrollLeft,Cr=Ar.getComputedStyle(Kr),ka=Cr.borderTopWidth,Io=Cr.borderBottomWidth,Co=Cr.borderLeftWidth,_s=Cr.borderRightWidth,Is=Cr.paddingTop,xs=Cr.paddingBottom,Zs=Cr.paddingLeft,Ns=Cr.paddingRight,Us=Kr.getBoundingClientRect();Fa=dr,tn=ci,ir=Us.top+parseInt(ka,10),Lr=Us.left+parseInt(Co,10),ua=parseInt(ka,10)+parseInt(Io,10),_a=parseInt(Co,10)+parseInt(_s,10),Ka=parseInt(Is,10),yo=parseInt(xs,10),Ba=parseInt(Zs,10),Ma=parseInt(Ns,10),cn=yi,nr=xa}var fu=aa.top+cn-ir,bu=aa.left+nr-Lr,Ys=nr,Hu=cn;bu<nr?Ys=bu-Ba:bu+aa.width+_a>nr+Fa&&(Ys=bu+_a+Ma-Fa),fu<cn?Hu=fu-Ka:fu+aa.height+ua>cn+tn&&(Hu=fu+ua+yo+aa.height-tn),ur?Ar.scrollTo(Ys,Hu):(Kr.scrollTop=Hu,Kr.scrollLeft=Ys)}}function rr(er){if(Ce){var Ar=window.document.body.createTextRange();Ar.collapse(),Ar.select()}else er.removeAllRanges()}var Mr=/Permission denied to access property "nodeType"/,Ir=y()("slate:content");Ir.update=y()("slate:update");var Zr=function(er){ni(Ar,er);function Ar(){var Kr,ur,Gr,Pi;Dn(this,Ar);for(var aa=arguments.length,Fa=Array(aa),tn=0;tn<aa;tn++)Fa[tn]=arguments[tn];return Pi=(ur=(Gr=yr(this,(Kr=Ar.__proto__||Object.getPrototypeOf(Ar)).call.apply(Kr,[this].concat(Fa))),Gr),Gr.tmp={isUpdatingSelection:!1,nodeRef:i.createRef(),nodeRefs:{},contentKey:0,nativeSelection:{}},Gr.ref=i.createRef(),Gr.setRef=function(cn){Gr.ref.current=cn,Gr.props.editor.el=cn},Gr.handlers=Tt.reduce(function(cn,nr){return cn[nr]=function(ir){return Gr.onEvent(nr,ir)},cn},{}),Gr.updateSelection=function(){var cn=Gr.props.editor,nr=cn.value,ir=nr.selection,Lr=ir.isBackward,ua=S()(Gr.ref.current),_a=ua.getSelection(),Ka=ua.document.activeElement;if(Ir.update.enabled&&Ir.update("updateSelection",{selection:ir.toJSON()}),!!_a){var yo=_a.rangeCount,Ba=_a.anchorNode,Ma=!1;ir.isBlurred&&Ka===Gr.ref.current&&(Gr.ref.current.blur(),Ma=!0);var Mo=["anchorNode","anchorOffset","focusNode","focusOffset","isCollapsed","rangeCount","type"],Nr=!0,gi=!0,ea=!1,dr=void 0;try{for(var ci=Mo[Symbol.iterator](),yi;!(gi=(yi=ci.next()).done);gi=!0){var xa=yi.value;Gr.tmp.nativeSelection[xa]!==_a[xa]&&(Nr=!1)}}catch(xs){ea=!0,dr=xs}finally{try{!gi&&ci.return&&ci.return()}finally{if(ea)throw dr}}if(ir.isUnset&&yo&&Gr.isInEditor(Ba)&&Nr&&(rr(_a),Ma=!0),ir.isFocused&&Ka!==Gr.ref.current&&(Gr.ref.current.focus({preventScroll:!0}),Ma=!0),ir.isFocused&&ir.isSet){var Cr=!!_a.rangeCount&&_a.getRangeAt(0),ka=cn.findDOMRange(ir);if(!ka){(0,b.Z)(!1,"Unable to find a native DOM range from the current selection.");return}var Io=ka.startContainer,Co=ka.startOffset,_s=ka.endContainer,Is=ka.endOffset;if(Cr&&(Io===Cr.startContainer&&Co===Cr.startOffset&&_s===Cr.endContainer&&Is===Cr.endOffset||Io===Cr.endContainer&&Co===Cr.endOffset&&_s===Cr.startContainer&&Is===Cr.startOffset))return;Ma=!0,Gr.tmp.isUpdatingSelection=!0,rr(_a),_a.setBaseAndExtent?Lr?_a.setBaseAndExtent(ka.endContainer,ka.endOffset,ka.startContainer,ka.startOffset):_a.setBaseAndExtent(ka.startContainer,ka.startOffset,ka.endContainer,ka.endOffset):_a.addRange(ka),cn.userActionPerformed()===!0&&jn(_a),setTimeout(function(){At&&Gr.ref.current&&Gr.ref.current.focus(),Gr.tmp.isUpdatingSelection=!1,Ir.update("updateSelection:setTimeout",{anchorOffset:ua.getSelection().anchorOffset})})}Ma&&(Ir.enabled||Ir.update.enabled)&&(Ir("updateSelection",{selection:ir,native:_a,activeElement:Ka}),Ir.update("updateSelection:applied",{selection:ir.toJSON(),native:{anchorOffset:_a.anchorOffset,focusOffset:_a.focusOffset}}))}},Gr.isInEditor=function(cn){var nr=void 0;try{if(cn.nodeType===8)return!1;nr=cn.nodeType===3?cn.parentNode:cn}catch(ir){if(At&&Mr.test(ir.message))return!1;throw ir}return nr.isContentEditable&&(nr===Gr.ref.current||nr.closest(Kn.EDITOR)===Gr.ref.current)},Gr.onNativeSelectionChange=Ne()(function(cn){if(!Gr.props.readOnly){var nr=S()(cn.target),ir=nr.document.activeElement,Lr=nr.getSelection();Ir.update("onNativeSelectionChange",{anchorOffset:Lr.anchorOffset}),ir===Gr.ref.current&&(Gr.tmp.nativeSelection={anchorNode:Lr.anchorNode,anchorOffset:Lr.anchorOffset,focusNode:Lr.focusNode,focusOffset:Lr.focusOffset,isCollapsed:Lr.isCollapsed,rangeCount:Lr.rangeCount,type:Lr.type},Gr.props.onEvent("onSelect",cn))}},100),ur),yr(Gr,Pi)}return Vn(Ar,[{key:"componentDidCatch",value:function(ur,Gr){Ir("componentDidCatch",{error:ur,info:Gr}),this.setState({})}},{key:"componentDidMount",value:function(){var ur=S()(this.ref.current);ur.document.addEventListener("selectionchange",this.onNativeSelectionChange),ct&&this.ref.current.addEventListener("beforeinput",this.handlers.onBeforeInput),this.updateSelection(),this.props.onEvent("onComponentDidMount")}},{key:"componentWillUnmount",value:function(){var ur=S()(this.ref.current);ur&&ur.document.removeEventListener("selectionchange",this.onNativeSelectionChange),ct&&this.ref.current.removeEventListener("beforeinput",this.handlers.onBeforeInput),this.props.onEvent("onComponentWillUnmount")}},{key:"componentDidUpdate",value:function(){Ir.update("componentDidUpdate"),this.updateSelection(),this.props.editor.clearUserActionPerformed(),this.props.onEvent("onComponentDidUpdate")}},{key:"onEvent",value:function(ur,Gr){Ir("onEvent",ur);var Pi=Gr.nativeEvent||Gr,aa=Gr.type==="keydown"&&(lt.isUndo(Pi)||lt.isRedo(Pi));if(!((this.tmp.isUpdatingSelection||aa)&&(ur==="onSelect"||ur==="onBlur"||ur==="onFocus"))){if(!$e&&ur==="onSelect"){var Fa=this.props.editor,tn=Fa.value,cn=tn.selection,nr=S()(Gr.target),ir=nr.getSelection(),Lr=Fa.findRange(ir);if(Lr&&Lr.equals(cn.toRange())){this.updateSelection();return}}if(ur==="onDragEnd"||ur==="onDragEnter"||ur==="onDragExit"||ur==="onDragLeave"||ur==="onDragOver"||ur==="onDragStart"||ur==="onDrop"){var ua=Gr.target.closest(Kn.EDITOR);if(ua!==this.ref.current)return}(ur==="onBeforeInput"||ur==="onBlur"||ur==="onCompositionEnd"||ur==="onCompositionStart"||ur==="onCopy"||ur==="onCut"||ur==="onFocus"||ur==="onInput"||ur==="onKeyDown"||ur==="onKeyUp"||ur==="onPaste"||ur==="onSelect")&&!this.isInEditor(Gr.target)||this.props.onEvent(ur,Gr)}}},{key:"render",value:function(){var ur,Gr=this.props,Pi=this.handlers,aa=Gr.id,Fa=Gr.className,tn=Gr.readOnly,cn=Gr.editor,nr=Gr.tabIndex,ir=Gr.role,Lr=Gr.tagName,ua=Gr.spellCheck,_a=cn.value,Ka=Lr,yo=_a.document,Ba=_a.selection,Ma=Qr({outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},tn?{}:{WebkitUserModify:"read-write-plaintext-only"},Gr.style);Ir("render",{props:Gr}),Ir.update("render",this.tmp.contentKey,yo.text),this.props.onEvent("onRender");var Mo=(ur={},or(ur,mn.EDITOR,!0),or(ur,mn.KEY,yo.key),ur),Nr=bt()(this.props,Object.keys(Ar.propTypes));return i.createElement(Ka,Qr({},Nr,{key:this.tmp.contentKey},Pi,Mo,{ref:this.setRef,contentEditable:tn?null:!0,suppressContentEditableWarning:!0,id:aa,className:Fa,autoCorrect:Gr.autoCorrect?"on":"off",spellCheck:ua,style:Ma,role:tn?null:ir||"textbox",tabIndex:nr,"data-gramm":Nr["data-gramm"]?void 0:!1}),i.createElement(xt,{annotations:_a.annotations,block:null,decorations:(0,Gt.List)(),editor:cn,node:yo,parent:null,readOnly:tn,selection:Ba,ref:this.tmp.nodeRef}))}}]),Ar}(i.Component);Zr.propTypes={autoCorrect:u().bool.isRequired,className:u().string,contentKey:u().number,editor:u().object.isRequired,id:u().string,onEvent:u().func.isRequired,readOnly:u().bool.isRequired,role:u().string,spellCheck:u().bool.isRequired,style:u().object,tabIndex:u().number,tagName:u().string},Zr.defaultProps={style:{},tagName:"div"};var lr=[].concat(Yr(Tt),["commands","decorateNode","queries","renderAnnotation","renderBlock","renderDecoration","renderDocument","renderEditor","renderInline","renderMark","schema"]);function Jr(){var er=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ar=lr.reduce(function(Kr,ur){return ur in er&&(Kr[ur]=er[ur]),Kr},{});return Ar}function pi(){return{decorateNode:function(){return[]},renderAnnotation:function(Ar){var Kr=Ar.attributes,ur=Ar.children;return i.createElement("span",Kr,ur)},renderBlock:function(Ar){var Kr=Ar.attributes,ur=Ar.children;return i.createElement("div",Qr({},Kr,{style:{position:"relative"}}),ur)},renderDecoration:function(Ar){var Kr=Ar.attributes,ur=Ar.children;return i.createElement("span",Kr,ur)},renderDocument:function(Ar){var Kr=Ar.children;return Kr},renderEditor:function(Ar){var Kr=Ar.children;return Kr},renderInline:function(Ar){var Kr=Ar.attributes,ur=Ar.children;return i.createElement("span",Qr({},Kr,{style:{position:"relative"}}),ur)},renderMark:function(Ar){var Kr=Ar.attributes,ur=Ar.children;return i.createElement("span",Kr,ur)}}}function Ri(){function er(Kr,ur){var Gr=Kr.value,Pi=Gr.document,aa=Gr.selection,Fa=Pi.getPath(ur.key),tn=Kr.findDOMNode(Fa),cn=Pi.getClosestBlock(Fa),nr=ur.text,ir=tn.textContent,Lr=cn.nodes.last()===ur,ua=ir.charAt(ir.length-1);if(Lr&&ua===` `&&(ir=ir.slice(0,-1)),nr!==ir){var _a=aa.moveAnchorTo(Fa,0).moveFocusTo(Fa,nr.length);_a=Pi.resolveRange(_a),Kr.insertTextAtRange(_a,ir,ur.marks)}}function Ar(Kr,ur){var Gr=ur.parentElement.closest("[data-key]"),Pi=Kr.findNode(Gr);Kr.reconcileNode(Pi)}return{commands:{reconcileNode:er,reconcileDOMNode:Ar}}}function Ki(){function er(cn,nr){nr=v.C0.create(nr);var ir=cn.tmp.contentRef.current;if(!ir)return null;if(!nr.size)return ir.ref.current||null;var Lr=function Ka(yo,Ba){if(!yo)return null;if(!Ba.size)return yo.ref?yo.ref.current||null:yo||null;var Ma=Ba.first(),Mo=Ba.rest(),Nr=yo.tmp.nodeRefs[Ma];return Ka(Nr,Mo)},ua=ir.tmp.nodeRef.current,_a=Lr(ua,nr);return _a}function Ar(cn,nr){var ir=cn.findDOMNode(nr.path),Lr=0;if(!ir)return null;var ua=Array.from(ir.querySelectorAll(Kn.STRING+", "+Kn.ZERO_WIDTH)),_a=!0,Ka=!1,yo=void 0;try{for(var Ba=ua[Symbol.iterator](),Ma;!(_a=(Ma=Ba.next()).done);_a=!0){var Mo=Ma.value,Nr=Mo.childNodes[0],gi=Nr.textContent.length,ea=gi;Mo.hasAttribute(mn.LENGTH)&&(ea=parseInt(Mo.getAttribute(mn.LENGTH),10));var dr=Lr+ea;if(nr.offset<=dr){var ci=Math.min(gi,Math.max(0,nr.offset-Lr));return{node:Nr,offset:ci}}Lr=dr}}catch(yi){Ka=!0,yo=yi}finally{try{!_a&&Ba.return&&Ba.return()}finally{if(Ka)throw yo}}return null}function Kr(cn,nr){var ir=nr.anchor,Lr=nr.focus,ua=nr.isBackward,_a=nr.isCollapsed,Ka=cn.findDOMPoint(ir),yo=_a?Ka:cn.findDOMPoint(Lr);if(!Ka||!yo)return null;var Ba=S()(Ka.node),Ma=Ba.document.createRange(),Mo=ua?yo:Ka,Nr=ua?Ka:yo;return Ma.setStart(Mo.node,Mo.offset),Ma.setEnd(Nr.node,Nr.offset),Ma}function ur(cn,nr){var ir=cn.findPath(nr);if(!ir)return null;var Lr=cn.value,ua=Lr.document,_a=ua.getNode(ir);return _a}function Gr(cn,nr){nr.nativeEvent&&(nr=nr.nativeEvent);var ir=nr,Lr=ir.clientX,ua=ir.clientY,_a=ir.target;if(Lr==null||ua==null)return null;var Ka=cn.value,yo=Ka.document,Ba=cn.findPath(nr.target);if(!Ba)return null;var Ma=yo.getNode(Ba);if(cn.isVoid(Ma)){var Mo=_a.getBoundingClientRect(),Nr=Ma.object==="inline"?Lr-Mo.left<Mo.left+Mo.width-Lr:ua-Mo.top<Mo.top+Mo.height-ua,gi=yo.createRange(),ea=Nr?"moveToEndOfNode":"moveToStartOfNode",dr=yo[Nr?"getPreviousText":"getNextText"](Ba);return dr?gi[ea](dr):null}var ci=S()(_a),yi=void 0;if(ci.document.caretRangeFromPoint)yi=ci.document.caretRangeFromPoint(Lr,ua);else if(ci.document.caretPositionFromPoint){var xa=ci.document.caretPositionFromPoint(Lr,ua);yi=ci.document.createRange(),yi.setStart(xa.offsetNode,xa.offset),yi.setEnd(xa.offsetNode,xa.offset)}else if(ci.document.body.createTextRange){yi=ci.document.body.createTextRange();try{yi.moveToPoint(Lr,ua)}catch{return null}}var Cr=cn.findRange(yi);return Cr}function Pi(cn,nr){var ir=cn.tmp.contentRef.current,Lr=nr;if(Lr.hasAttribute(mn.KEY)||(Lr=Lr.closest(Kn.KEY)),!Lr||!Lr.getAttribute(mn.KEY))return null;if(Lr===ir.ref.current)return v.C0.create([]);var ua=function yo(Ba,Ma){if(Lr===Ba)return Ma;if(!Ba.ref)return null;if(Lr===Ba.ref.current)return Ma;if(!Ba.tmp)return null;var Mo=Ba.tmp.nodeRefs,Nr=Object.keys(Mo),gi=!0,ea=!1,dr=void 0;try{for(var ci=Nr[Symbol.iterator](),yi;!(gi=(yi=ci.next()).done);gi=!0){var xa=yi.value,Cr=Mo[xa],ka=parseInt(xa,10),Io=yo(Cr,[].concat(Yr(Ma),[ka]));if(Io)return Io}}catch(Co){ea=!0,dr=Co}finally{try{!gi&&ci.return&&ci.return()}finally{if(ea)throw dr}}return null},_a=ir.tmp.nodeRef.current,Ka=ua(_a,[]);return Ka?v.C0.create(Ka):null}function aa(cn,nr,ir){var Lr=ia(nr,ir),ua=Lr.node,_a=Lr.offset,Ka=S()(nr),yo=ua.parentNode,Ba=yo.closest(Kn.LEAF),Ma=void 0,Mo=void 0,Nr=void 0;if(Ba){Ma=Ba.closest(Kn.TEXT);var gi=Ka.document.createRange();gi.setStart(Ma,0),gi.setEnd(ua,_a);var ea=gi.cloneContents(),dr=ea.querySelectorAll(Kn.ZERO_WIDTH);Array.from(dr).forEach(function(Io){Io.parentNode.removeChild(Io)}),Mo=ea.textContent.length,Nr=Ma}else{var ci=yo.closest(Kn.VOID);if(!ci||(Ba=ci.querySelector(Kn.LEAF),!Ba))return null;Ma=Ba.closest(Kn.TEXT),Nr=Ba,Mo=Nr.textContent.length}Mo===Nr.textContent.length&&yo.hasAttribute(mn.ZERO_WIDTH)&&Mo--;var yi=cn.findPath(Ma);if(!yi)return null;var xa=cn.value,Cr=xa.document,ka=Cr.createPoint({path:yi,offset:Mo});return ka}function Fa(cn,nr){var ir=nr.anchorNode||nr.startContainer;if(!ir)return null;var Lr=S()(ir);(nr instanceof Lr.Range||Lr.StaticRange&&nr instanceof Lr.StaticRange)&&(nr={anchorNode:nr.startContainer,anchorOffset:nr.startOffset,focusNode:nr.endContainer,focusOffset:nr.endOffset});var ua=nr,_a=ua.anchorNode,Ka=ua.anchorOffset,yo=ua.focusNode,Ba=ua.focusOffset,Ma=ua.isCollapsed,Mo=cn.value,Nr=cn.findPoint(_a,Ka),gi=Ma?Nr:cn.findPoint(yo,Ba);if(!Nr||!gi)return null;var ea=Mo.document,dr=ea.createRange({anchor:Nr,focus:gi});return dr}function tn(cn,nr){var ir=cn.value,Lr=ir.document;if(!nr.rangeCount)return null;var ua=cn.findRange(nr);if(!ua)return null;var _a=ua,Ka=_a.anchor,yo=_a.focus,Ba=Lr.getNode(Ka.path),Ma=Lr.getNode(yo.path),Mo=Lr.getClosestInline(Ka.path),Nr=Lr.getClosestInline(yo.path),gi=Lr.getClosestBlock(yo.path),ea=Lr.getClosestBlock(Ka.path);if(ea&&!cn.isVoid(ea)&&Ka.offset===0&&gi&&cn.isVoid(gi)&&yo.offset!==0&&(ua=ua.setFocus(yo.setOffset(0))),Mo&&!cn.isVoid(Mo)&&Ka.offset===Ba.text.length){var dr=Lr.getClosestBlock(Ka.path),ci=Lr.getDepth(dr.key),yi=v.C0.drop(Ka.path,ci),xa=dr.texts({path:yi}),Cr=si(xa,1),ka=Cr[0];if(ka){var Io=si(ka,2),Co=Io[1],_s=Ka.path.slice(0,ci).concat(Co);ua=ua.moveAnchorTo(_s,0)}}if(Nr&&!cn.isVoid(Nr)&&yo.offset===Ma.text.length){var Is=Lr.getClosestBlock(yo.path),xs=Lr.getDepth(Is.key),Zs=v.C0.drop(yo.path,xs),Ns=Is.texts({path:Zs}),Us=si(Ns,1),fu=Us[0];if(fu){var bu=si(fu,2),Ys=bu[1],Hu=yo.path.slice(0,xs).concat(Ys);ua=ua.moveFocusTo(Hu,0)}}var Zu=Lr.createSelection(ua);return Zu=Zu.setIsFocused(!0),Zu=Zu.set("marks",ir.selection.marks),Zu}return{queries:{findDOMNode:er,findDOMPoint:Ar,findDOMRange:Kr,findEventRange:Gr,findNode:ur,findPath:Pi,findPoint:aa,findRange:Fa,findSelection:tn}}}function ia(er,Ar){if(er.nodeType===1&&er.childNodes.length){var Kr=Ar===er.childNodes.length,ur=Kr?"backward":"forward",Gr=Kr?Ar-1:Ar;for(er=Da(er,Gr,ur);er.nodeType===1&&er.childNodes.length;){var Pi=Kr?er.childNodes.length-1:0;er=Da(er,Pi,ur)}Ar=Kr?er.textContent.length:0}return{node:er,offset:Ar}}function Da(er,Ar,Kr){for(var ur=er.childNodes,Gr=ur[Ar],Pi=Ar,aa=!1,Fa=!1;(Gr.nodeType===8||Gr.nodeType===1&&Gr.childNodes.length===0||Gr.nodeType===1&&Gr.getAttribute("contenteditable")==="false")&&!(aa&&Fa);){if(Pi>=ur.length){aa=!0,Pi=Ar-1,Kr="backward";continue}if(Pi<0){Fa=!0,Pi=Ar+1,Kr="forward";continue}Gr=ur[Pi],Kr==="forward"&&Pi++,Kr==="backward"&&Pi--}return Gr||null}function to(er,Ar){for(var Kr=Math.min(er.length,Ar.length),ur=0;ur<Kr;ur++)if(er.charAt(ur)!==Ar.charAt(ur))return ur;return er.length!==Ar.length?Kr:null}function ao(er,Ar,Kr){for(var ur=er.length,Gr=Ar.length,Pi=Math.min(ur,Gr,Kr),aa=0;aa<Pi;aa++){var Fa=er.charAt(ur-aa-1),tn=Ar.charAt(Gr-aa-1);if(Fa!==tn)return aa}return er.length!==Ar.length?Pi:null}function Bo(er,Ar){if(er===Ar)return null;var Kr=to(er,Ar),ur=Math.min(er.length-Kr,Ar.length-Kr),Gr=ao(er,Ar,ur);return{start:Kr,end:Gr,total:Kr+Gr}}function jo(er,Ar){return er.slice(Ar.start,er.length-Ar.end)}function Jo(er,Ar){var Kr=Bo(er,Ar);if(Kr==null)return null;var ur=jo(Ar,Kr),Gr=jo(er,Kr);return{start:Kr.start,end:er.length-Kr.end,cursor:Kr.start+ur.length,insertText:ur,removeText:Gr}}var Go=y()("slate:composition-manager"),wr=String.fromCharCode(65279),qi=at.unstable_flushControlled;function ja(er,Ar){qi(function(){Ar(),er.controller.flush()})}function uo(er){for(var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Kr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ur=Ar,Gr=er,Pi=0;Pi!==-1&&(Pi=Gr.indexOf(wr,Pi),Pi!==-1);)ur>Pi&&ur--,Gr=""+Gr.slice(0,Pi)+Gr.slice(Pi+1);var aa=Gr.charAt(Gr.length-1);Kr&&aa===` `&&(Gr=Gr.slice(0,-1));var Fa=Gr.length;return ur>Fa&&(ur=Fa),{text:Gr,offset:ur}}function wi(er){var Ar=new window.MutationObserver(yo),Kr=null,ur={rootEl:null,diff:null,range:null,domNode:null};function Gr(){Go("connect",{rootEl:dr});var dr=er.findDOMNode([]);ur.rootEl!==dr&&(Go("connect:run"),Kr=S()(dr),Ar.observe(dr,{childList:!0,characterData:!0,attributes:!0,subtree:!0,characterDataOldValue:!0}))}function Pi(){Go("disconnect"),Ar.disconnect(),ur.rootEl=null}function aa(){Go("clearDIff"),ur.diff=null}function Fa(){Go("clearAction"),ur.diff=null,ur.domNode=null}function tn(){Go("applyDiff");var dr=ur.diff;if(dr!=null){Go("applyDiff:run");var ci=er.value.document,yi=er.value.selection.moveAnchorTo(dr.path,dr.start).moveFocusTo(dr.path,dr.end);yi=ci.resolveRange(yi),er.insertTextAtRange(yi,dr.insertText)}}function cn(){Go("splitBlock"),ja(er,function(){tn(),ur.range?er.select(ur.range):Go("splitBlock:NO-SELECTION"),er.splitBlock().focus().restoreDOM(),Fa()})}function nr(){Go("mergeBlock"),Kr.requestAnimationFrame(function(){ja(er,function(){tn(),er.select(ur.range).deleteBackward().focus().restoreDOM(),Fa()})})}var ir=null,Lr=[],ua=null,_a=!1;function Ka(){ir&&(window.cancelAnimationFrame(ir),ir=null),_a=!0,ua&&window.cancelAnimationFrame(ua),ua=window.requestAnimationFrame(function(){Lr.length>0&&Ba(Lr),ua=null,Lr=[],_a=!1})}function yo(dr){var ci;Go("flush"),(ci=Lr).push.apply(ci,Yr(dr)),Ka()}function Ba(dr){if(Go("flushAction",dr.length,dr),ur.range&&!ur.range.isCollapsed){ja(er,function(){er.select(ur.range).deleteBackward().focus().restoreDOM()});return}if(dr.length>1){var ci=dr.find(function(xa){if(xa.type!=="childList"||xa.addedNodes.length===0)return!1;var Cr=xa.addedNodes[0];if(Cr.nodeType===window.Node.TEXT_NODE&&Cr.textContent===` `)return!0;if(Cr.nodeType!==window.Node.ELEMENT_NODE)return!1;var ka=Cr.dataset,Io=ka.key;if(Io==null)return!1;var Co=er.value.document.getClosestBlock(Io);return!!Co});if(ci){cn();return}}var yi=dr[0];yi.type==="characterData"?Ma(yi.target.parentNode):yi.type==="childList"&&(yi.removedNodes.length>0?dr.length===1?Mo(yi.removedNodes[0]):nr():yi.addedNodes.length>0&&cn())}function Ma(dr){Go("resolveDOMNode");var ci=er.value,yi=ci.document,xa=dr.closest("[data-key]"),Cr=xa.dataset.key,ka=yi.getPath(Cr),Io=yi.getClosestBlock(Cr),Co=yi.getDescendant(Cr),_s=Co.text,Is=Io.nodes.last()===Co,xs=uo(dr.textContent,0,Is),Zs=xs.text;if(Zs===_s){ur.diff=null;return}var Ns=Jo(_s,Zs);ur.diff={path:ka,start:Ns.start,end:Ns.end,insertText:Ns.insertText},Go("resolveDOMNode:diff",ur.diff)}function Mo(dr){if(Go("removeNode"),dr.nodeType===window.Node.ELEMENT_NODE){var ci=er.value,yi=ci.document,xa=ci.selection,Cr=er.findNode(dr),ka=yi.resolveRange(xa.moveToRangeOfNode(Cr));ja(er,function(){er.select(ka).delete().restoreDOM()})}}function Nr(){Go("onCompositionStart")}function gi(){Go("onCompositionEnd"),window.setTimeout(function(){ur.diff&&(Go("onCompositionEnd:applyDiff"),ja(er,function(){tn();var dr=Kr.getSelection().getRangeAt(0),ci=dr.startContainer.textContent,yi=dr.startOffset,xa=uo(ci,yi),Cr=er.findRange({anchorNode:dr.startContainer,anchorOffset:0,focusNode:dr.startContainer,focusOffset:0,isCollapsed:!0}).moveTo(xa.offset);er.select(Cr).focus().restoreDOM()})),Fa()},20)}function ea(dr){Go("onSelect:try"),dr=dr.nativeEvent?dr.nativeEvent:dr,window.cancelAnimationFrame(ir),ir=null,!_a&&(ir=window.requestAnimationFrame(function(){Go("onSelect:save-selection");var ci=S()(dr.target).getSelection(),yi=er.findRange(ci),xa=uo(ci.anchorNode.textContent,ci.anchorOffset),Cr=uo(ci.focusNode.textContent,ci.focusOffset);yi.anchor.offset!==xa.offset&&(yi=yi.set("anchor",yi.anchor.set("offset",xa.offset))),yi.focus.offset!==Cr.offset&&(yi=yi.set("focus",yi.focus.set("offset",Cr.offset))),Go("onSelect:save-data",{domSelection:ai(ci),range:yi.toJS()}),ci.isCollapsed&&ur.node!==ci.anchorNode&&ur.diff!=null&&(Go("onSelect:applyDiff",ur.diff),tn(),er.select(yi),Fa()),ur.range=yi,ur.node=ci.anchorNode}))}return{clearDiff:aa,connect:Gr,disconnect:Pi,onKeyDown:Ka,onCompositionStart:Nr,onCompositionEnd:gi,onSelect:ea}}function ai(er){return{anchorNode:er.anchorNode,anchorOffset:er.anchorOffset,focusNode:er.focusNode,focusOffset:er.focusOffset}}function za(er){var Ar=er.getSelection(),Kr=Ar.anchorNode;if(Kr!=null){var ur=Kr.parentElement.dataset,Gr=ur?ur.slateZeroWidth==="n":!1;if(Gr&&Kr.textContent.length===1&&Ar.anchorOffset!==0){var Pi=er.document.createRange();Pi.setStart(Kr,0),Pi.setEnd(Kr,0),Ar.removeAllRanges(),Ar.addRange(Pi)}}}function Mt(er){var Ar=er.editor,Kr=new wi(Ar);function ur(){Kr.onCompositionStart()}function Gr(){Kr.onCompositionEnd()}function Pi(nr){var ir=S()(nr.target);za(ir),Kr.onSelect(nr)}function aa(){Kr.connect()}function Fa(){Kr.connect()}function tn(){Kr.disconnect()}function cn(){Kr.disconnect(),Kr.clearDiff()}return{onComponentDidMount:aa,onComponentDidUpdate:Fa,onComponentWillUnmount:tn,onCompositionEnd:Gr,onCompositionStart:ur,onRender:cn,onSelect:Pi}}function Gn(){var er={},Ar=!0,Kr=!1,ur=void 0;try{for(var Gr=Tt[Symbol.iterator](),Pi;!(Ar=(Pi=Gr.next()).done);Ar=!0){var aa=Pi.value;er[aa]=function(Fa,tn,cn){}}}catch(Fa){Kr=!0,ur=Fa}finally{try{!Ar&&Gr.return&&Gr.return()}finally{if(Kr)throw ur}}return er}var qn={FRAGMENT:"application/x-slate-fragment",HTML:"text/html",NODE:"application/x-slate-node",RICH:"text/rtf",TEXT:"text/plain"},Fr=qn.FRAGMENT,Ei=qn.HTML,ii=qn.TEXT;function Wi(er,Ar){var Kr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};(0,Ke.Z)(!v.B4.isValue(Ar),"As of Slate 0.42.0, the `cloneFragment` utility takes an `editor` instead of a `value`.");var ur=S()(er.target),Gr=ur.getSelection(),Pi=Ar.value,aa=Pi.document,Fa=Pi.fragment,tn=Pi.selection,cn=tn.start,nr=tn.end,ir=aa.getClosestVoid(cn.path,Ar),Lr=aa.getClosestVoid(nr.path,Ar);if(!(Gr.isCollapsed&&!ir)){var ua=en.serializeNode(Fa),_a=Gr.getRangeAt(0),Ka=_a.cloneContents(),yo=Ka.childNodes[0];if(Ka.childNodes.forEach(function(yi){yi.textContent&&yi.textContent.trim()!==""&&(yo=yi)}),Lr){var Ba=_a.cloneRange(),Ma=aa.getPath(Lr.key);if(Ma){var Mo=Ar.findDOMNode(Ma);Ba.setEndAfter(Mo),Ka=Ba.cloneContents()}}if(ir&&(yo=Ka.childNodes[0].childNodes[1].firstChild),[].slice.call(Ka.querySelectorAll(Kn.ZERO_WIDTH)).forEach(function(yi){var xa=yi.getAttribute(mn.ZERO_WIDTH)==="n";yi.textContent=xa?` `:""}),yo.nodeType===3){var Nr=ur.document.createElement("span");Nr.style.whiteSpace="pre",Nr.appendChild(yo),Ka.appendChild(Nr),yo=Nr}yo.setAttribute(mn.FRAGMENT,ua);var gi=v.B4.create({document:Fa}),ea=wt.Z.serialize(gi),dr=ur.document.createElement("div");if(dr.appendChild(Ka),er.clipboardData&&er.clipboardData.setData&&!Ce){er.preventDefault(),er.clipboardData.setData(ii,ea),er.clipboardData.setData(Fr,ua),er.clipboardData.setData(Ei,dr.innerHTML),Kr();return}var ci=er.target.closest(Kn.EDITOR);dr.setAttribute("contenteditable",!0),dr.style.position="absolute",dr.style.left="-9999px",ci.appendChild(dr),Gr.selectAllChildren(dr),ur.requestAnimationFrame(function(){ci.removeChild(dr),rr(Gr),Gr.addRange(_a),Kr()})}}var Ya=qn.FRAGMENT,qa=qn.HTML,se=qn.NODE,ye=qn.RICH,Xe=qn.TEXT,yt=/ data-slate-fragment="([^\s"]+)"/;function Wt(er){!Ce&&er.nativeEvent&&(er=er.nativeEvent);var Ar=er.dataTransfer||er.clipboardData,Kr=fr(Ar,Ya),ur=fr(Ar,se),Gr=fr(Ar,qa),Pi=fr(Ar,ye),aa=fr(Ar,Xe),Fa=void 0;if(!Kr&&Gr&&~Gr.indexOf(" "+mn.FRAGMENT+'="')){var tn=yt.exec(Gr),cn=si(tn,2),nr=cn[0],ir=cn[1];ir&&(Kr=ir)}if(aa){var Lr=Qt(aa);Lr[Ya]&&(Kr=Lr[Ya]),Lr[se]&&(ur=Lr[se]),Lr[Xe]&&(aa=Lr[Xe])}Kr&&(Kr=en.deserializeNode(Kr)),ur&&(ur=en.deserializeNode(ur));try{Ar.items&&Ar.items.length?Fa=Array.from(Ar.items).map(function(_a){return _a.kind==="file"?_a.getAsFile():null}).filter(function(_a){return _a}):Ar.files&&Ar.files.length&&(Fa=Array.from(Ar.files))}catch{Ar.files&&Ar.files.length&&(Fa=Array.from(Ar.files))}var ua={files:Fa,fragment:Kr,html:Gr,node:ur,rich:Pi,text:aa};return ua.type=wn(ua),ua}function Qt(er){var Ar="SLATE-DATA-EMBED::";if(er.substring(0,Ar.length)!==Ar)return{TEXT:er};try{return JSON.parse(er.substring(Ar.length))}catch{throw new Error("Unable to parse custom Slate drag event data.")}}function wn(er){return er.fragment?"fragment":er.node?"node":er.rich&&er.html?"html":er.rich&&er.text?"text":er.files&&er.files.length?"files":er.html?"html":er.text?"text":"unknown"}function fr(er,Ar){if(!er.types||!er.types.length)return Ar===Xe&&er.getData("Text")||null;var Kr=Array.from(er.types);return Kr.indexOf(Ar)!==-1&&er.getData(Ar)||null}var Or=qn.TEXT;function Si(er,Ar,Kr){var ur=qn[Ar.toUpperCase()];if(!ur)throw new Error('Cannot set unknown transfer type "'+ur+'".');er.nativeEvent&&(er=er.nativeEvent);var Gr=er.dataTransfer||er.clipboardData;try{Gr.setData(ur,Kr),Gr.setData("text",Gr.getData("text"))}catch{var Pi="SLATE-DATA-EMBED::",aa=Gr.getData(Or),Fa={};if(aa.substring(0,Pi.length)===Pi)try{Fa=JSON.parse(aa.substring(Pi.length))}catch{throw new Error("Failed to parse Slate data from `DataTransfer` object.")}else Fa[Or]=aa;Fa[ur]=Kr;var tn=""+Pi+JSON.stringify(Fa);Gr.setData(Or,tn)}}var Fi=y()("slate:after");function Bi(){var er=null,Ar=!1;function Kr(Ba,Ma,Mo){var Nr=Ma.value,gi=!!Ba.nativeEvent;if(gi)return Ba.preventDefault(),Ma.insertText(Ba.data),Mo();var ea=Ba.getTargetRanges(),dr=si(ea,1),ci=dr[0];if(!ci)return Mo();Fi("onBeforeInput",{event:Ba}),Ba.preventDefault();var yi=Nr.document,xa=Nr.selection,Cr=Ma.findRange(ci);switch(Ba.inputType){case"deleteByDrag":case"deleteByCut":case"deleteContent":case"deleteContentBackward":case"deleteContentForward":{Ma.deleteAtRange(Cr);break}case"deleteWordBackward":{Ma.deleteWordBackwardAtRange(Cr);break}case"deleteWordForward":{Ma.deleteWordForwardAtRange(Cr);break}case"deleteSoftLineBackward":case"deleteHardLineBackward":{Ma.deleteLineBackwardAtRange(Cr);break}case"deleteSoftLineForward":case"deleteHardLineForward":{Ma.deleteLineForwardAtRange(Cr);break}case"insertLineBreak":case"insertParagraph":{var ka=yi.hasVoidParent(xa.start.path,Ma);ka?Ma.moveToStartOfNextText():Ma.splitBlockAtRange(Cr);break}case"insertFromYank":case"insertReplacementText":case"insertText":{var Io=Ba.data==null?Ba.dataTransfer.getData("text/plain"):Ba.data;if(Io==null)break;Ma.insertTextAtRange(Cr,Io,xa.marks),xa.marks&&Nr.document!==Ma.value.document&&Ma.select({marks:null});break}}Mo()}function ur(Ba,Ma,Mo){Fi("onBlur",{event:Ba}),Ma.blur(),Mo()}function Gr(Ba,Ma,Mo){if(Ma.readOnly)return Mo();var Nr=Ma.value,gi=Nr.document,ea=Ma.findPath(Ba.target);if(!ea)return Mo();Fi("onClick",{event:Ba});var dr=gi.getNode(ea),ci=gi.getAncestors(ea),yi=dr&&(Ma.isVoid(dr)||ci.some(function(xa){return Ma.isVoid(xa)}));yi&&Ma.focus().moveToEndOfNode(dr),Mo()}function Pi(Ba,Ma,Mo){Fi("onCopy",{event:Ba}),Wi(Ba,Ma),Mo()}function aa(Ba,Ma,Mo){Fi("onCut",{event:Ba}),Wi(Ba,Ma,function(){var Nr=Ma.value,gi=Nr.document,ea=Nr.selection,dr=ea.end,ci=ea.isCollapsed,yi=void 0;if(ci){var xa=!0,Cr=!1,ka=void 0;try{for(var Io=gi.ancestors(dr.path)[Symbol.iterator](),Co;!(xa=(Co=Io.next()).done);xa=!0){var _s=Co.value,Is=si(_s,2),xs=Is[0],Zs=Is[1];if(Ma.isVoid(xs)){yi=Zs;break}}}catch(Ns){Cr=!0,ka=Ns}finally{try{!xa&&Io.return&&Io.return()}finally{if(Cr)throw ka}}}yi?Ma.removeNodeByKey(yi):Ma.delete()}),Mo()}function Fa(Ba,Ma,Mo){Fi("onDragEnd",{event:Ba}),er=null,Mo()}function tn(Ba,Ma,Mo){Fi("onDragStart",{event:Ba}),er=!0;var Nr=Ma.value,gi=Nr.document,ea=Ma.findPath(Ba.target),dr=gi.getNode(ea),ci=gi.getAncestors(ea),yi=dr&&(Ma.isVoid(dr)||ci.some(function(Io){return Ma.isVoid(Io)})),xa=Nr.blocks.some(function(Io){return Io===dr});yi&&!xa&&Ma.moveToRangeOfNode(dr);var Cr=Ma.value.fragment,ka=en.serializeNode(Cr);Si(Ba,"fragment",ka),Mo()}function cn(Ba,Ma,Mo){var Nr=Ma.value,gi=Nr.document,ea=Nr.selection,dr=S()(Ba.target),ci=Ma.findEventRange(Ba);if(!ci)return Mo();Fi("onDrop",{event:Ba});var yi=Wt(Ba),xa=yi.type,Cr=yi.fragment,ka=yi.text;Ma.focus();var Io=Ma.findDOMNode(ci.focus.path);Io&&Io.dispatchEvent(new MouseEvent("mouseup",{view:dr,bubbles:!0,cancelable:!0}));var Co=ea;if(Ma.select(ci),er&&Ma.deleteAtRange(Co),xa==="text"||xa==="html"){var _s=ci.anchor,Is=gi.hasVoidParent(_s.path,Ma);if(Is){for(var xs=_s.path,Zs=gi.getNode(_s.path);Is;){var Ns=gi.texts({path:xs}),Us=si(Ns,1),fu=Us[0];if(!fu)break;var bu=si(fu,2);Zs=bu[0],xs=bu[1],Is=gi.hasVoidParent(xs,Ma)}Zs&&Ma.moveToStartOfNode(Zs)}ka&&ka.split(` `).forEach(function(Ys,Hu){Hu>0&&Ma.splitBlock(),Ma.insertText(Ys)})}xa==="fragment"&&Ma.insertFragment(Cr),Mo()}function nr(Ba,Ma,Mo){Fi("onFocus",{event:Ba}),Ar&&!Ce&&!Ae?Ma.deselect().focus():Ma.focus(),Mo()}function ir(Ba,Ma,Mo){Fi("onInput");var Nr=S()(Ba.target),gi=Nr.getSelection(),ea=Ma.findSelection(gi);ea?Ma.select(ea):Ma.blur();var dr=gi.anchorNode;Ma.reconcileDOMNode(dr),Mo()}function Lr(Ba,Ma,Mo){Fi("onKeyDown",{event:Ba});var Nr=Ma.value,gi=Nr.document,ea=Nr.selection,dr=ea.start,ci=gi.hasVoidParent(dr.path,Ma);if(lt.isSplitBlock(Ba)&&!tt)return ci?Ma.moveToStartOfNextText():Ma.splitBlock();if(lt.isDeleteBackward(Ba)&&!tt)return Ma.deleteCharBackward();if(lt.isDeleteForward(Ba)&&!tt)return Ma.deleteCharForward();if(lt.isDeleteLineBackward(Ba))return Ma.deleteLineBackward();if(lt.isDeleteLineForward(Ba))return Ma.deleteLineForward();if(lt.isDeleteWordBackward(Ba))return Ma.deleteWordBackward();if(lt.isDeleteWordForward(Ba))return Ma.deleteWordForward();if(lt.isRedo(Ba))return Ma.redo();if(lt.isUndo(Ba))return Ma.undo();if(lt.isMoveLineBackward(Ba))return Ba.preventDefault(),Ma.moveToStartOfBlock();if(lt.isMoveLineForward(Ba))return Ba.preventDefault(),Ma.moveToEndOfBlock();if(lt.isExtendLineBackward(Ba))return Ba.preventDefault(),Ma.moveFocusToStartOfBlock();if(lt.isExtendLineForward(Ba))return Ba.preventDefault(),Ma.moveFocusToEndOfBlock();if(lt.isMoveBackward(Ba))return Ba.preventDefault(),ea.isCollapsed?Ma.moveBackward():Ma.moveToStart();if(lt.isMoveForward(Ba))return Ba.preventDefault(),ea.isCollapsed?Ma.moveForward():Ma.moveToEnd();if(lt.isMoveWordBackward(Ba))return Ba.preventDefault(),Ma.moveWordBackward();if(lt.isMoveWordForward(Ba))return Ba.preventDefault(),Ma.moveWordForward();if(lt.isExtendBackward(Ba)){var yi=gi.getNode(dr.path),xa=gi.texts({path:dr.path,direction:"backward"}),Cr=si(xa,1),ka=Cr[0],Io=!1;if(ka){var Co=si(ka,2),_s=Co[1];Io=gi.hasVoidParent(_s,Ma)}if(ci||Io||yi.text==="")return Ba.preventDefault(),Ma.moveFocusBackward()}if(lt.isExtendForward(Ba)){var Is=gi.getNode(dr.path),xs=gi.texts({path:dr.path}),Zs=si(xs,1),Ns=Zs[0],Us=!1;if(Ns){var fu=si(Ns,2),bu=fu[1];Us=gi.hasVoidParent(bu,Ma)}if(ci||Us||Is.text==="")return Ba.preventDefault(),Ma.moveFocusForward()}Mo()}function ua(Ba,Ma,Mo){Fi("onMouseDown",{event:Ba}),Ar=!0,Mo()}function _a(Ba,Ma,Mo){Fi("onMouseUp",{event:Ba}),Ar=!1,Mo()}function Ka(Ba,Ma,Mo){Fi("onPaste",{event:Ba});var Nr=Ma.value,gi=Wt(Ba),ea=gi.type,dr=gi.fragment,ci=gi.text;if(ea==="fragment"&&Ma.insertFragment(dr),ea==="text"||ea==="html"){if(!ci)return Mo();var yi=Nr.document,xa=Nr.selection,Cr=Nr.startBlock;if(Ma.isVoid(Cr))return Mo();var ka=Cr,Io=yi.getInsertMarksAtRange(xa),Co=wt.Z.deserialize(ci,{defaultBlock:ka,defaultMarks:Io}).document;Ma.insertFragment(Co)}Mo()}function yo(Ba,Ma,Mo){Fi("onSelect",{event:Ba});var Nr=S()(Ba.target),gi=Nr.getSelection(),ea=Ma.findSelection(gi);ea?Ma.select(ea):Ma.blur(),Ar=!1,Mo()}return{onBeforeInput:Kr,onBlur:ur,onClick:Gr,onCopy:Pi,onCut:aa,onDragEnd:Fa,onDragStart:tn,onDrop:cn,onFocus:nr,onInput:ir,onKeyDown:Lr,onMouseDown:ua,onMouseUp:_a,onPaste:Ka,onSelect:yo}}var Ui=y()("slate:before");function vi(){var er=null,Ar=0,Kr=!1,ur=!1,Gr=!1,Pi=!1;function aa(Cr,ka,Io){var Co=!!Cr.nativeEvent;ka.readOnly||(Pi=!0,!(Co&&ct)&&(Ui("onBeforeInput",{event:Cr}),Io()))}function Fa(Cr,ka,Io){if(!ur&&!ka.readOnly){var Co=Cr.relatedTarget,_s=Cr.target,Is=S()(_s);if(er!==Is.document.activeElement){if(Co){var xs=ka.findDOMNode([]);if(Co===xs||Co.hasAttribute(mn.SPACER))return;var Zs=ka.findNode(Co);if(xs.contains(Co)&&Zs&&!ka.isVoid(Zs))return}Ui("onBlur",{event:Cr}),Io()}}}function tn(Cr,ka,Io){var Co=Ar;Pi=!0,window.requestAnimationFrame(function(){Ar>Co||(Kr=!1)}),Ui("onCompositionEnd",{event:Cr}),Io()}function cn(Cr,ka,Io){Ui("onClick",{event:Cr}),Pi=!0,Io()}function nr(Cr,ka,Io){Kr=!0,Ar++;var Co=ka.value,_s=Co.selection;Pi=!0,_s.isCollapsed||ka.delete(),Ui("onCompositionStart",{event:Cr}),Io()}function ir(Cr,ka,Io){var Co=S()(Cr.target);ur=!0,Co.requestAnimationFrame(function(){return ur=!1}),Ui("onCopy",{event:Cr}),Io()}function Lr(Cr,ka,Io){if(!ka.readOnly){var Co=S()(Cr.target);ur=!0,Co.requestAnimationFrame(function(){return ur=!1}),Ui("onCut",{event:Cr}),Io()}}function ua(Cr,ka,Io){Gr=!1,Ui("onDragEnd",{event:Cr}),Io()}function _a(Cr,ka,Io){Ui("onDragEnter",{event:Cr}),Io()}function Ka(Cr,ka,Io){Ui("onDragExit",{event:Cr}),Io()}function yo(Cr,ka,Io){Ui("onDragLeave",{event:Cr}),Io()}function Ba(Cr,ka,Io){var Co=ka.findNode(Cr.target);(!Co||ka.isVoid(Co))&&Cr.preventDefault(),Ce&&Cr.preventDefault(),Gr||(Gr=!0,Ce||(Cr.nativeEvent.dataTransfer.dropEffect="move")),Ui("onDragOver",{event:Cr}),Io()}function Ma(Cr,ka,Io){Gr=!0,Ui("onDragStart",{event:Cr}),Io()}function Mo(Cr,ka,Io){ka.readOnly||(Pi=!0,Cr.preventDefault(),Ui("onDrop",{event:Cr}),Io())}function Nr(Cr,ka,Io){if(!ur&&!ka.readOnly){var Co=ka.findDOMNode([]),_s=S()(Cr.target);if(er=_s.document.activeElement,At&&Cr.target!==Co){Co.focus();return}Ui("onFocus",{event:Cr}),Io()}}function gi(Cr,ka,Io){Kr||ka.value.selection.isBlurred||(Pi=!0,Ui("onInput",{event:Cr}),Io())}function ea(Cr,ka,Io){if(!ka.readOnly){if(Kr){lt.isCompose(Cr)&&Cr.preventDefault();return}!tt&&(lt.isBold(Cr)||lt.isDeleteBackward(Cr)||lt.isDeleteForward(Cr)||lt.isDeleteLineBackward(Cr)||lt.isDeleteLineForward(Cr)||lt.isDeleteWordBackward(Cr)||lt.isDeleteWordForward(Cr)||lt.isItalic(Cr)||lt.isRedo(Cr)||lt.isSplitBlock(Cr)||lt.isTransposeCharacter(Cr)||lt.isUndo(Cr))&&Cr.preventDefault(),Pi=!0,Ui("onKeyDown",{event:Cr}),Io()}}function dr(Cr,ka,Io){ka.readOnly||(Pi=!0,Cr.preventDefault(),Ui("onPaste",{event:Cr}),Io())}function ci(Cr,ka,Io){if(!ur&&!Kr&&!ka.readOnly){var Co=S()(Cr.target);er=Co.document.activeElement,Pi=!0,Ui("onSelect",{event:Cr}),Io()}}function yi(){return Pi}function xa(){return Pi=!1,null}return{onBeforeInput:aa,onBlur:Fa,onClick:cn,onCompositionEnd:tn,onCompositionStart:nr,onCopy:ir,onCut:Lr,onDragEnd:ua,onDragEnter:_a,onDragExit:Ka,onDragLeave:yo,onDragOver:Ba,onDragStart:Ma,onDrop:Mo,onFocus:Nr,onInput:gi,onKeyDown:ea,onPaste:dr,onSelect:ci,queries:{userActionPerformed:yi},commands:{clearUserActionPerformed:xa}}}function Xa(){var er=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ar=er.plugins,Kr=Ar===void 0?[]:Ar,ur=vi(),Gr=Bi(),Pi=$e?[Mt(er),Gn(er)]:[];return[].concat(Pi,[ur],Yr(Kr),[Gr])}function Ko(){function er(Ar){var Kr=Ar.tmp.contentRef.current.tmp;Kr.contentKey=Kr.contentKey+1}return{commands:{restoreDOM:er}}}function So(er){var Ar=er.nativeEvent||er;switch(Ar.type){case"keydown":return Ar.type+" "+JSON.stringify(Ar.key);case"input":case"beforeinput":case"textInput":return Ar.type+":"+Ar.inputType+" "+JSON.stringify(Ar.data);default:return Ar.type}}var Lo=y()("slate:events");function us(){var er={},Ar=!0,Kr=!1,ur=void 0;try{for(var Gr=Tt[Symbol.iterator](),Pi;!(Ar=(Pi=Gr.next()).done);Ar=!0){var aa=Pi.value;er[aa]=function(Fa,tn,cn){var nr=So(Fa);Lo(nr),cn()}}}catch(Fa){Kr=!0,ur=Fa}finally{try{!Ar&&Gr.return&&Gr.return()}finally{if(Kr)throw ur}}return er}var Ee=2e3,Y=y()("slate:batch-events");function z(){var er=null,Ar=null,Kr=[];function ur(){Y(` `+Kr.join(` `)),Kr.length=0}function Gr(Lr){Kr.length===0&&(er=new Date);var ua=So(Lr),_a=new Date;Kr.push("- "+(_a-er)+" - "+ua),clearTimeout(Ar),Ar=setTimeout(ur,Ee)}var Pi={},aa=!0,Fa=!1,tn=void 0;try{for(var cn=Tt[Symbol.iterator](),nr;!(aa=(nr=cn.next()).done);aa=!0){var ir=nr.value;Pi[ir]=function(Lr,ua,_a){Gr(Lr),_a()}}}catch(Lr){Fa=!0,tn=Lr}finally{try{!aa&&cn.return&&cn.return()}finally{if(Fa)throw tn}}return Pi}var B=y()("slate:mutations"),le=["type","oldValue","target","addedNodes","removedNodes","attributeName","attributeNamespace","nextSibling","previousSibling"];function Le(er){if(er.nodeType===window.Node.TEXT_NODE)return er.textContent;if(er.nodeType===window.Node.ELEMENT_NODE){var Ar=er.outerHTML,Kr=er.innerHTML;return Ar==null?JSON.stringify(er.textContent):Ar.slice(0,Ar.indexOf(Kr))}else return"Node(type="+er.nodeType}function Je(){var er=new window.MutationObserver(function(Gr){var Pi=Array.from(Gr).map(function(aa){var Fa={};return le.forEach(function(tn){var cn=aa[tn];if(cn!=null){if(cn instanceof window.NodeList){if(cn.length===0)return;Fa[tn]=Array.from(cn).map(Le).join(", ");return}cn instanceof window.Node&&(cn=Le(cn)),Fa[tn]=cn}}),Fa});B.apply(void 0,[Pi.length+" Mutations"].concat(Yr(Pi)))}),Ar=null;function Kr(Gr,Pi,aa){var Fa=Pi.findDOMNode([]);if(Fa===Ar)return aa();B("start"),er.observe(Fa,{childList:!0,characterData:!0,attributes:!0,subtree:!0,characterDataOldValue:!0}),Ar=Fa,aa()}function ur(Gr,Pi,aa){B("stop"),er.disconnect(),Ar=null,aa()}return{onComponentDidMount:Kr,onComponentDidUpdate:Kr,onComponentWillUnmount:ur}}function Ct(){var er=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ar=er.placeholder,Kr=Ar===void 0?"":Ar,ur=y().enabled("slate:events")?us(er):null,Gr=y().enabled("slate:batch-events")?z(er):null,Pi=y().enabled("slate:mutations")?Je(er):null,aa=pi(er),Fa=Ri(er),tn=Ki(er),cn=Jr(er),nr=Xa(er),ir=Ko(),Lr=$e?null:it({placeholder:Kr,when:function(_a,Ka){return Ka.object==="document"&&Ka.text===""&&Ka.nodes.size===1&&Array.from(Ka.texts()).length===1}});return[ur,Gr,Pi,cn,nr,ir,Lr,aa,Fa,tn]}var Vt=y()("slate:editor"),bn=function(er){ni(Ar,er);function Ar(){var Kr,ur,Gr,Pi;Dn(this,Ar);for(var aa=arguments.length,Fa=Array(aa),tn=0;tn<aa;tn++)Fa[tn]=arguments[tn];return Pi=(ur=(Gr=yr(this,(Kr=Ar.__proto__||Object.getPrototypeOf(Ar)).call.apply(Kr,[this].concat(Fa))),Gr),Gr.state={value:Gr.props.defaultValue,contentKey:0},Gr.tmp={mounted:!1,change:null,resolves:0,updates:0,contentRef:i.createRef()},Gr.resolveController=fn(function(){var cn=arguments[5];(0,b.Z)(Gr.tmp.resolves<5||Gr.tmp.resolves!==Gr.tmp.updates,"A Slate <Editor> component is re-resolving the `plugins`, `schema`, `commands`, `queries` or `placeholder` prop on each update, which leads to poor performance. This is often due to passing in a new references for these props with each render by declaring them inline in your render function. Do not do this! Declare them outside your render function, or memoize them instead."),Gr.tmp.resolves++;var nr=cn(Qr({},Gr.props,{editor:Gr,value:Gr.props.value||Gr.state.value})),ir=function(ua){Gr.tmp.mounted?Gr.handleChange(ua):Gr.tmp.change=ua};Gr.controller=new v.ML({plugins:[nr],onChange:ir},{controller:Gr,construct:!1}),Gr.controller.run("onConstruct")}),ur),yr(Gr,Pi)}return Vn(Ar,[{key:"componentDidMount",value:function(){this.tmp.mounted=!0,this.tmp.updates++,this.props.autoFocus&&this.focus(),this.tmp.change&&(this.handleChange(this.tmp.change),this.tmp.change=null)}},{key:"componentDidUpdate",value:function(){this.tmp.updates++,this.tmp.change&&(this.handleChange(this.tmp.change),this.tmp.change=null)}},{key:"componentWillUnmount",value:function(){this.tmp.mounted=!1}},{key:"render",value:function(){var ur=this;Vt("render",this);var Gr=this.props,Pi=Gr.commands,aa=Gr.placeholder,Fa=Gr.plugins,tn=Gr.queries,cn=Gr.schema;this.resolveController(Fa,cn,Pi,tn,aa,Ct);var nr=this.props,ir=nr.options,Lr=nr.readOnly,ua=nr.value,_a=this.state.value,Ka=ua||_a,yo=this.state.contentKey;this.controller.setReadOnly(Lr),this.controller.setValue(Ka,ir);var Ba=this.props,Ma=Ba.autoCorrect,Mo=Ba.className,Nr=Ba.id,gi=Ba.role,ea=Ba.spellCheck,dr=Ba.tabIndex,ci=Ba.style,yi=Ba.tagName,xa=bt()(this.props,Object.keys(Ar.propTypes)),Cr=i.createElement(Zr,Qr({},xa,{ref:this.tmp.contentRef,autoCorrect:Ma,className:Mo,contentKey:yo,editor:this,id:Nr,onEvent:function(Co,_s){return ur.run(Co,_s)},readOnly:Lr,role:gi,spellCheck:ea,style:ci,tabIndex:dr,tagName:yi})),ka=this.controller.run("renderEditor",Qr({},this.props,{editor:this,children:Cr}));return ka}},{key:"handleChange",value:function(ur){var Gr=this.props.onChange,Pi=this.state.value;Pi&&this.setState({value:ur.value}),Gr(ur)}},{key:"applyOperation",value:function(){var ur;return(ur=this.controller).applyOperation.apply(ur,arguments)}},{key:"command",value:function(){var ur;return(ur=this.controller).command.apply(ur,arguments)}},{key:"hasCommand",value:function(){var ur;return(ur=this.controller).hasCommand.apply(ur,arguments)}},{key:"hasQuery",value:function(){var ur;return(ur=this.controller).hasQuery.apply(ur,arguments)}},{key:"normalize",value:function(){var ur;return(ur=this.controller).normalize.apply(ur,arguments)}},{key:"query",value:function(){var ur;return(ur=this.controller).query.apply(ur,arguments)}},{key:"registerCommand",value:function(){var ur;return(ur=this.controller).registerCommand.apply(ur,arguments)}},{key:"registerQuery",value:function(){var ur;return(ur=this.controller).registerQuery.apply(ur,arguments)}},{key:"run",value:function(){var ur;return(ur=this.controller).run.apply(ur,arguments)}},{key:"withoutNormalizing",value:function(){var ur;return(ur=this.controller).withoutNormalizing.apply(ur,arguments)}},{key:"call",value:function(){var ur;return(ur=this.controller).call.apply(ur,arguments)}},{key:"change",value:function(){var ur;return(ur=this.controller).change.apply(ur,arguments)}},{key:"onChange",value:function(){var ur;return(ur=this.controller).onChange.apply(ur,arguments)}},{key:"applyOperations",value:function(){var ur;return(ur=this.controller).applyOperations.apply(ur,arguments)}},{key:"setOperationFlag",value:function(){var ur;return(ur=this.controller).setOperationFlag.apply(ur,arguments)}},{key:"getFlag",value:function(){var ur;return(ur=this.controller).getFlag.apply(ur,arguments)}},{key:"unsetOperationFlag",value:function(){var ur;return(ur=this.controller).unsetOperationFlag.apply(ur,arguments)}},{key:"withoutNormalization",value:function(){var ur;return(ur=this.controller).withoutNormalization.apply(ur,arguments)}},{key:"operations",get:function(){return this.controller.operations}},{key:"readOnly",get:function(){return this.controller.readOnly}},{key:"value",get:function(){return this.controller.value}},{key:"editor",get:function(){return this.controller.editor}},{key:"schema",get:function(){(0,Ke.Z)(!1,"As of Slate 0.42, the `editor.schema` property no longer exists, and its functionality has been folded into the editor itself. Use the `editor` instead.")}},{key:"stack",get:function(){(0,Ke.Z)(!1,"As of Slate 0.42, the `editor.stack` property no longer exists, and its functionality has been folded into the editor itself. Use the `editor` instead.")}}]),Ar}(i.Component);bn.propTypes=Qr({autoCorrect:u().bool,autoFocus:u().bool,className:u().string,defaultValue:p.value,id:u().string,onChange:u().func,options:u().object,placeholder:u().any,plugins:u().array,readOnly:u().bool,role:u().string,schema:u().object,spellCheck:u().bool,style:u().object,tabIndex:u().number,value:p.value},Tt.reduce(function(er,Ar){return er[Ar]=u().func,er},{}),dn.reduce(function(er,Ar){return er[Ar]=u().func,er},{})),bn.defaultProps={autoFocus:!1,autoCorrect:!0,onChange:function(){},options:{},placeholder:"",plugins:[],readOnly:!1,schema:{},spellCheck:!0};function Hn(er){var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;(0,b.Z)(!1,"As of slate-react@0.22 the `findDOMNode(key)` helper is deprecated in favor of `editor.findDOMNode(path)`."),v.NB.isNode(er)&&(er=er.key);var Kr=Ar.document.querySelector("["+mn.KEY+'="'+er+'"]');if(!Kr)throw new Error('Unable to find a DOM node for "'+er+'". This is often because of forgetting to add `props.attributes` to a custom component.');return Kr}function br(er){var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;(0,b.Z)(!1,"As of slate-react@0.22 the `findDOMPoint(point)` helper is deprecated in favor of `editor.findDOMPoint(point)`.");var Kr=Hn(er.key,Ar),ur=0,Gr=Array.from(Kr.querySelectorAll(Kn.STRING+", "+Kn.ZERO_WIDTH)),Pi=!0,aa=!1,Fa=void 0;try{for(var tn=Gr[Symbol.iterator](),cn;!(Pi=(cn=tn.next()).done);Pi=!0){var nr=cn.value,ir=nr.childNodes[0],Lr=ir.textContent.length,ua=Lr;nr.hasAttribute(mn.LENGTH)&&(ua=parseInt(nr.getAttribute(mn.LENGTH),10));var _a=ur+ua;if(er.offset<=_a){var Ka=Math.min(Lr,Math.max(0,er.offset-ur));return{node:ir,offset:Ka}}ur=_a}}catch(yo){aa=!0,Fa=yo}finally{try{!Pi&&tn.return&&tn.return()}finally{if(aa)throw Fa}}return null}function ei(er){var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;(0,b.Z)(!1,"As of slate-react@0.22 the `findDOMRange(range)` helper is deprecated in favor of `editor.findDOMRange(range)`.");var Kr=er.anchor,ur=er.focus,Gr=er.isBackward,Pi=er.isCollapsed,aa=br(Kr,Ar),Fa=Pi?aa:br(ur,Ar);if(!aa||!Fa)return null;var tn=Ar.document.createRange(),cn=Gr?Fa:aa,nr=Gr?aa:Fa;return tn.setStart(cn.node,cn.offset),tn.setEnd(nr.node,nr.offset),tn}function mi(er,Ar){(0,b.Z)(!1,"As of slate-react@0.22 the `findNode(element)` helper is deprecated in favor of `editor.findNode(element)`."),(0,Ke.Z)(!v.B4.isValue(Ar),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`.");var Kr=er.closest(Kn.KEY);if(!Kr)return null;var ur=Kr.getAttribute(mn.KEY);if(!ur)return null;var Gr=Ar.value,Pi=Gr.document,aa=Pi.getNode(ur);return aa||null}function Li(er,Ar){(0,b.Z)(!1,"As of slate-react@0.22 the `findPath(element)` helper is deprecated in favor of `editor.findPath(element)`.");var Kr=mi(er,Ar);if(!Kr)return null;var ur=Ar.value,Gr=ur.document,Pi=Gr.getPath(Kr);return Pi}function na(er,Ar,Kr){(0,b.Z)(!1,"As of slate-react@0.22 the `findPoint(node, offset)` helper is deprecated in favor of `editor.findPoint(node, offset)`."),(0,Ke.Z)(!v.B4.isValue(Kr),"As of Slate 0.42.0, the `findPoint` utility takes an `editor` instead of a `value`.");var ur=ji(er,Ar),Gr=ur.node,Pi=ur.offset,aa=S()(er),Fa=Gr.parentNode,tn=Fa.closest(Kn.LEAF),cn=void 0,nr=void 0;if(tn){var ir=aa.document.createRange(),Lr=tn.closest(Kn.TEXT);ir.setStart(Lr,0),ir.setEnd(Gr,Pi),nr=Lr;var ua=ir.cloneContents(),_a=ua.querySelectorAll("["+mn.ZERO_WIDTH+"]");cn=ua.textContent.length-_a.length}else{var Ka=Fa.closest(Kn.VOID);if(!Ka||(tn=Ka.querySelector(Kn.LEAF),!tn))return null;nr=tn,cn=nr.textContent.length}cn===nr.textContent.length&&Fa.hasAttribute(mn.ZERO_WIDTH)&&cn--;var yo=tn.getAttribute(mn.OFFSET_KEY);if(!yo)return null;var Ba=ha.parse(yo),Ma=Ba.key,Mo=Kr.value;if(!Mo.document.hasDescendant(Ma))return null;var Nr=Mo.document.createPoint({key:Ma,offset:cn});return Nr}function ji(er,Ar){if(er.nodeType===1&&er.childNodes.length){var Kr=Ar===er.childNodes.length,ur=Kr?"backward":"forward",Gr=Kr?Ar-1:Ar;for(er=$a(er,Gr,ur);er.nodeType===1&&er.childNodes.length;){var Pi=Kr?er.childNodes.length-1:0;er=$a(er,Pi,ur)}Ar=Kr?er.textContent.length:0}return{node:er,offset:Ar}}function $a(er,Ar,Kr){for(var ur=er.childNodes,Gr=ur[Ar],Pi=Ar,aa=!1,Fa=!1;(Gr.nodeType===8||Gr.nodeType===1&&Gr.childNodes.length===0||Gr.nodeType===1&&Gr.getAttribute("contenteditable")==="false")&&!(aa&&Fa);){if(Pi>=ur.length){aa=!0,Pi=Ar-1,Kr="backward";continue}if(Pi<0){Fa=!0,Pi=Ar+1,Kr="forward";continue}Gr=ur[Pi],Kr==="forward"&&Pi++,Kr==="backward"&&Pi--}return Gr||null}function Ha(er,Ar){(0,b.Z)(!1,"As of slate-react@0.22 the `findRange(selection)` helper is deprecated in favor of `editor.findRange(selection)`."),(0,Ke.Z)(!v.B4.isValue(Ar),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`.");var Kr=er.anchorNode||er.startContainer;if(!Kr)return null;var ur=S()(Kr);(er instanceof ur.Range||ur.StaticRange&&er instanceof ur.StaticRange)&&(er={anchorNode:er.startContainer,anchorOffset:er.startOffset,focusNode:er.endContainer,focusOffset:er.endOffset});var Gr=er,Pi=Gr.anchorNode,aa=Gr.anchorOffset,Fa=Gr.focusNode,tn=Gr.focusOffset,cn=Gr.isCollapsed,nr=Ar.value,ir=na(Pi,aa,Ar),Lr=cn?ir:na(Fa,tn,Ar);if(!ir||!Lr)return null;var ua=nr.document,_a=ua.createRange({anchor:ir,focus:Lr});return _a}function Eo(er,Ar){(0,b.Z)(!1,"As of slate-react@0.22 the `getEventRange(event, editor)` helper is deprecated in favor of `editor.findEventRange(event)`."),(0,Ke.Z)(!v.B4.isValue(Ar),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`."),er.nativeEvent&&(er=er.nativeEvent);var Kr=er,ur=Kr.clientX,Gr=Kr.clientY,Pi=Kr.target;if(ur==null||Gr==null)return null;var aa=Ar.value,Fa=aa.document,tn=Li(er.target,Ar);if(!tn)return null;var cn=Fa.getNode(tn);if(Ar.isVoid(cn)){var nr=Pi.getBoundingClientRect(),ir=cn.object==="inline"?ur-nr.left<nr.left+nr.width-ur:Gr-nr.top<nr.top+nr.height-Gr,Lr=Fa.createRange(),ua=ir?"moveToEndOfNode":"moveToStartOfNode",_a=Fa[ir?"getPreviousText":"getNextText"](tn);return _a?Lr[ua](_a):null}var Ka=S()(Pi),yo=void 0;if(Ka.document.caretRangeFromPoint)yo=Ka.document.caretRangeFromPoint(ur,Gr);else if(Ka.document.caretPositionFromPoint){var Ba=Ka.document.caretPositionFromPoint(ur,Gr);yo=Ka.document.createRange(),yo.setStart(Ba.offsetNode,Ba.offset),yo.setEnd(Ba.offsetNode,Ba.offset)}else if(Ka.document.body.createTextRange){yo=Ka.document.body.createTextRange();try{yo.moveToPoint(ur,Gr)}catch{return null}}var Ma=Ha(yo,Ar);return Ma||null}var Uo={Editor:bn,cloneFragment:Wi,findDOMNode:Hn,findDOMPoint:br,findDOMRange:ei,findNode:mi,findPath:Li,findPoint:na,findRange:Ha,getEventRange:Eo,getEventTransfer:Wt,setEventTransfer:Si,ReactPlugin:Ct};const Ms=Uo},45273:(C,c,t)=>{"use strict";t.d(c,{B3:()=>wi,B4:()=>Kt,BB:()=>ut,C0:()=>ue,ML:()=>Jo,NB:()=>Yt,RI:()=>sn,Vw:()=>Me,Y1:()=>Ae,ZP:()=>us,e6:()=>Oe,gF:()=>mt,gO:()=>Lt,vc:()=>qe,xv:()=>hn});var i=t(77592),s=t(53881),u=t.n(s),v=t(93425),l=t(25726),h=t(49373),p=t.n(h),d=t(59269),f=t.n(d),g=t(75123),y=t.n(g),b=t(58517),E=t.n(b),S=t(6660),w=t.n(S),x=void 0,P=void 0;function R(Ee){if(Ee==null)return P();if(typeof Ee=="string")return Ee;throw new Error("Keys must be strings, but you passed: "+Ee)}function T(Ee){P=Ee}function A(){x=0,P=function(){return""+x++}}A();var I={create:R,setGenerator:T,resetGenerator:A},N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ee){return typeof Ee}:function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},K=function(Ee,Y){if(!(Ee instanceof Y))throw new TypeError("Cannot call a class as a function")},_=function(){function Ee(Y,z){for(var B=0;B<z.length;B++){var le=z[B];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(Y,le.key,le)}}return function(Y,z,B){return z&&Ee(Y.prototype,z),B&&Ee(Y,B),Y}}(),W=function(Ee,Y,z){return Y in Ee?Object.defineProperty(Ee,Y,{value:z,enumerable:!0,configurable:!0,writable:!0}):Ee[Y]=z,Ee},j=Object.assign||function(Ee){for(var Y=1;Y<arguments.length;Y++){var z=arguments[Y];for(var B in z)Object.prototype.hasOwnProperty.call(z,B)&&(Ee[B]=z[B])}return Ee},re=function(Ee,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);Ee.prototype=Object.create(Y&&Y.prototype,{constructor:{value:Ee,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(Ee,Y):Ee.__proto__=Y)},X=function(Ee,Y){var z={};for(var B in Ee)Y.indexOf(B)>=0||Object.prototype.hasOwnProperty.call(Ee,B)&&(z[B]=Ee[B]);return z},Z=function(Ee,Y){if(!Ee)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:Ee},J=function(){function Ee(Y,z){var B=[],le=!0,Le=!1,Je=void 0;try{for(var Ct=Y[Symbol.iterator](),Vt;!(le=(Vt=Ct.next()).done)&&(B.push(Vt.value),!(z&&B.length===z));le=!0);}catch(bn){Le=!0,Je=bn}finally{try{!le&&Ct.return&&Ct.return()}finally{if(Le)throw Je}}return B}return function(Y,z){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return Ee(Y,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),q=function(Ee){if(Array.isArray(Ee)){for(var Y=0,z=Array(Ee.length);Y<Ee.length;Y++)z[Y]=Ee[Y];return z}else return Array.from(Ee)};function L(Ee,Y){for(var z=ht(Ee,Y),B=0;B<z;B++){var le=Ee.get(B),Le=Y.get(B);if(le<Le)return-1;if(le>Le)return 1}return Ee.size===Y.size?0:null}function $(Ee){if(Ee==null)return null;if(i.List.isList(Ee))return Ee;if(Array.isArray(Ee))return(0,i.List)(Ee);throw new Error("Paths can only be created from arrays or lists, but you passed: "+Ee)}function k(Ee,Y){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ht(Ee,Y),B=Ee.slice(0,z),le=Y.slice(0,z);return[B,le]}function F(Ee){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ee.size-1;return pe(Ee,0-Y,z)}function V(Ee){var Y=(0,i.List)().withMutations(function(z){for(var B=0;B<Ee.size;B++)z.push(Ee.slice(0,B))});return Y}function pe(Ee){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ee.size-1,B=Ee.get(z),le=B+Y,Le=Ee.set(z,le);return Le}function ce(Ee,Y){var z=k(Ee,Y),B=J(z,2),le=B[0],Le=B[1];return Ee.size<Y.size&&L(le,Le)===0}function G(Ee,Y){var z=k(Ee,Y),B=J(z,2),le=B[0],Le=B[1];return L(le,Le)===1}function te(Ee,Y){var z=k(Ee,Y),B=J(z,2),le=B[0],Le=B[1];return L(le,Le)===-1}function ie(Ee,Y){return Ee.equals(Y)}function fe(Ee,Y){var z=Ee.size-1,B=k(Ee,Y,z),le=J(B,2),Le=le[0],Je=le[1],Ct=Ee.get(z),Vt=Y.get(z);return ie(Le,Je)&&Ct>Vt}function Se(Ee){return(i.List.isList(Ee)||Array.isArray(Ee))&&Ee.every(function(Y){return typeof Y=="number"})}function he(Ee,Y){if(Ee.size!==Y.size)return!1;var z=Ee.butLast(),B=Y.butLast();return z.equals(B)}function me(Ee,Y){var z=Ee.size-1,B=k(Ee,Y,z),le=J(B,2),Le=le[0],Je=le[1],Ct=Ee.get(z),Vt=Y.get(z);return ie(Le,Je)&&Ct<Vt}function _e(Ee){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=Ee.slice(0,-1*Y);return z}function we(Ee){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=Ee.slice(Y);return z}function Ge(Ee,Y){var z=Math.max(Ee.size,Y.size);return z}function ht(Ee,Y){var z=Math.min(Ee.size,Y.size);return z}function nt(Ee,Y){for(var z=[],B=0;B<Ee.size&&B<Y.size;B++){var le=Ee.get(B),Le=Y.get(B);if(le!==Le)break;z.push(le)}var Je=$(z);return Je}function Re(Ee,Y){var z=Y.type,B=Y.position,le=Y.path;if(z==="add_mark"||z==="insert_text"||z==="remove_mark"||z==="remove_text"||z==="set_mark"||z==="set_node"||z==="set_selection"||z==="set_value"||z==="add_annotation"||z==="remove_annotation"||z==="set_annotation"||Ee.size===0)return(0,i.List)([Ee]);var Le=le.size-1,Je=ie(le,Ee),Ct=me(le,Ee),Vt=ce(le,Ee);if(z==="insert_node"&&(Je||Ct||Vt)&&(Ee=pe(Ee,1,Le)),z==="remove_node"&&(Ct?Ee=F(Ee,1,Le):(Je||Vt)&&(Ee=[])),z==="merge_node"&&(Je||Ct?Ee=F(Ee,1,Le):Vt&&(Ee=F(Ee,1,Le),Ee=pe(Ee,B,Le+1))),z==="split_node"&&(Je?Ee=[Ee,pe(Ee)]:Ct?Ee=pe(Ee,1,Le):Vt&&Ee.get(Le+1)>=B&&(Ee=pe(Ee,1,Le),Ee=F(Ee,B,Le+1))),z==="move_node"){var bn=Y.newPath;if(ie(le,bn))return(0,i.List)([Ee]);Vt||Je?me(le,bn)&&le.size<bn.size?Ee=F(bn,1,ht(bn,le)-1).concat(Ee.slice(le.size)):Ee=bn.concat(Ee.slice(le.size)):(Ct&&(Ee=F(Ee,1,Le)),(me(bn,Ee)||ie(bn,Ee)||ce(bn,Ee))&&(Ee=pe(Ee,1,bn.size-1)))}var Hn=Array.isArray(Ee)?Ee:[Ee];return(0,i.List)(Hn)}var ue={compare:L,create:$,crop:k,decrement:F,getAncestors:V,increment:pe,isAbove:ce,isAfter:G,isBefore:te,isEqual:ie,isOlder:fe,isPath:Se,isSibling:he,isYounger:me,lift:_e,drop:we,max:Ge,min:ht,relate:nt,transform:Re},ae={key:void 0,offset:void 0,path:void 0},ve=function(Ee){re(Y,Ee);function Y(){return K(this,Y),Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return _(Y,[{key:"isAfterPoint",value:function(B){if(this.isUnset)return!1;var le=this.key===B.key&&this.offset>B.offset||ue.compare(this.path,B.path)===1;return le}},{key:"isAfterRange",value:function(B){if(this.isUnset)return!1;var le=this.isAfterPoint(B.end);return le}},{key:"isAtEndOfRange",value:function(B){if(this.isUnset)return!1;var le=this.equals(B.end);return le}},{key:"isAtStartOfRange",value:function(B){if(this.isUnset)return!1;var le=this.equals(B.start);return le}},{key:"isBeforePoint",value:function(B){if(this.isUnset)return!1;var le=this.key===B.key&&this.offset<B.offset||ue.compare(this.path,B.path)===-1;return le}},{key:"isBeforeRange",value:function(B){if(this.isUnset)return!1;var le=this.isBeforePoint(B.start);return le}},{key:"isInRange",value:function(B){if(this.isUnset)return!1;var le=this.equals(B.start)||this.equals(B.end)||this.isAfterPoint(B.start)&&this.isBeforePoint(B.end);return le}},{key:"isAtEndOfNode",value:function(B){if(this.isUnset)return!1;var le=B.getLastText(),Le=this.key===le.key&&this.offset===le.text.length;return Le}},{key:"isAtStartOfNode",value:function(B){if(this.isUnset||this.offset!==0)return!1;var le=B.getFirstText(),Le=this.key===le.key;return Le}},{key:"isInNode",value:function(B){return this.isUnset?!1:!!(B.object==="text"&&B.key===this.key||B.hasNode(this.key))}},{key:"moveBackward",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;if(B===0)return this;if(B<0)return this.moveForward(-B);var le=this.setOffset(this.offset-B);return le}},{key:"moveForward",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;if(B===0)return this;if(B<0)return this.moveBackward(-B);var le=this.setOffset(this.offset+B);return le}},{key:"moveTo",value:function(B){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Le=this.key;typeof B=="number"?(le=B,B=this.path):typeof B=="string"?(Le=B,B=Le===this.key?this.path:null):Le=B.equals(this.path)?this.key:null;var Je=this.merge({key:Le,path:B,offset:le});return Je}},{key:"moveToStartOfNode",value:function(B){var le=B.getFirstText(),Le=this.moveTo(le.key,0);return Le}},{key:"moveToEndOfNode",value:function(B){var le=B.getLastText(),Le=this.moveTo(le.key,le.text.length);return Le}},{key:"normalize",value:function(B){if(this.key==null&&this.path==null)return this.setOffset(null);var le=this.key,Le=this.offset,Je=this.path,Ct=Je&&B.getNode(Je);if(!Ct&&(Ct=B.getNode(le),Ct)){var Vt=this.merge({path:B.getPath(le)});return Vt}if(!Ct){(0,v.Z)(!1,"A point's `path` or `key` invalid and was reset!");var bn=B.getFirstText();if(!bn)return Y.create();var Hn=this.merge({key:bn.key,offset:0,path:B.getPath(bn.key)});return Hn}if(Ct.object!=="text"){(0,v.Z)(!1,"A point should not reference a non-text node!");var br=Ct.getTextAtOffset(Le),ei=Ct.getOffset(br.key),mi=this.merge({offset:Le-ei,key:br.key,path:B.getPath(br.key)});return mi}Ct&&Je&&le&&le!==Ct.key&&(0,v.Z)(!1,"A point's `key` did not match its `path`!");var Li=this.merge({key:Ct.key,path:Je??B.getPath(Ct.key),offset:Le==null?0:Math.min(Le,Ct.text.length)});if(Li.offset===Ct.text.length){var na=B.getClosestBlock(Li.path),ji=na.getNextText();ji&&(Li=Li.merge({key:ji.key,path:B.getPath(ji.key),offset:0}))}return Li}},{key:"setKey",value:function(B){B!=null&&(B=I.create(B));var le=this.set("key",B);return le}},{key:"setOffset",value:function(B){var le=this.set("offset",B);return le}},{key:"setPath",value:function(B){B!=null&&(B=ue.create(B));var le=this.set("path",B);return le}},{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={object:this.object,key:this.key,offset:this.offset,path:this.path&&this.path.toArray()};return B.preserveKeys||delete le.key,le}},{key:"unset",value:function(){return this.merge({key:null,offset:null,path:null})}},{key:"isSet",get:function(){return this.key!=null&&this.offset!=null&&this.path!=null}},{key:"isUnset",get:function(){return!this.isSet}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isPoint(B))return B;if(u()(B))return Y.fromJSON(B);throw new Error("`Point.create` only accepts objects or points, but you passed it: "+B)}},{key:"createProperties",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isPoint(B))return{key:B.key,offset:B.offset,path:B.path};if(u()(B)){var le={};return"key"in B&&(le.key=B.key),"offset"in B&&(le.offset=B.offset),"path"in B&&(le.path=ue.create(B.path)),"path"in B&&!("key"in B)&&(le.key=null),"key"in B&&!("path"in B)&&(le.path=null),le}throw new Error("`Point.createProperties` only accepts objects or points, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var le=B.key,Le=le===void 0?null:le,Je=B.offset,Ct=Je===void 0?null:Je,Vt=B.path,bn=Vt===void 0?null:Vt,Hn=new Y({key:Le,offset:Ct,path:ue.create(bn)});return Hn}}]),Y}((0,i.Record)(ae)),Me=function(){function Ee(){K(this,Ee)}return _(Ee,null,[{key:"create",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(i.Map.isMap(z))return z;if(u()(z))return Ee.fromJSON(z);throw new Error("`Data.create` only accepts objects or maps, but you passed it: "+z)}},{key:"fromJSON",value:function(z){return new i.Map(z)}}]),Ee}();Me.fromJS=Me.fromJSON;var Ye={data:void 0,type:void 0},qe=function(Ee){re(Y,Ee);function Y(){return K(this,Y),Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return _(Y,[{key:"toJSON",value:function(){var B={object:this.object,type:this.type,data:this.data.toJSON()};return B}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isMark(B))return B;if(typeof B=="string"&&(B={type:B}),u()(B))return Y.fromJSON(B);throw new Error("`Mark.create` only accepts objects, strings or marks, but you passed it: "+B)}},{key:"createSet",value:function(B){if(i.Set.isSet(B)||Array.isArray(B)){var le=new i.Set(B.map(Y.create));return le}if(B==null)return(0,i.Set)();throw new Error("`Mark.createSet` only accepts sets, arrays or null, but you passed it: "+B)}},{key:"createProperties",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isMark(B))return{data:B.data,type:B.type};if(typeof B=="string")return{type:B};if(u()(B)){var le={};return"type"in B&&(le.type=B.type),"data"in B&&(le.data=Me.create(B.data)),le}throw new Error("`Mark.createProperties` only accepts objects, strings or marks, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var le=B.data,Le=le===void 0?{}:le,Je=B.type;if(typeof Je!="string")throw new Error("`Mark.fromJS` requires a `type` string.");var Ct=new Y({type:Je,data:new i.Map(Le)});return Ct}},{key:"isMarkSet",value:function(B){return i.Set.isSet(B)&&B.every(function(le){return Y.isMark(le)})}}]),Y}((0,i.Record)(Ye)),At={type:void 0,data:void 0,anchor:void 0,focus:void 0},It=function(Ee){re(Y,Ee);function Y(){return K(this,Y),Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return _(Y,[{key:"setProperties",value:function(B){B=Y.createProperties(B);var le=this.merge(B);return le}},{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={object:this.object,type:this.type,data:this.data.toJSON(),anchor:this.anchor.toJSON(B),focus:this.focus.toJSON(B)};return le}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isDecoration(B))return B;if(Oe.isRange(B))return Y.fromJSON(Oe.createProperties(B));if(u()(B))return Y.fromJSON(B);throw new Error("`Decoration.create` only accepts objects or decorations, but you passed it: "+B)}},{key:"createList",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(B)||Array.isArray(B)){var le=new i.List(B.map(Y.create));return le}throw new Error("`Decoration.createList` only accepts arrays or lists, but you passed it: "+B)}},{key:"createProperties",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isDecoration(B))return{type:B.type,data:B.data,anchor:ve.createProperties(B.anchor),focus:ve.createProperties(B.focus),mark:qe.create(B.mark)};if(u()(B)){var le={};return"type"in B&&(le.type=B.type),"data"in B&&(le.data=Me.create(B.data)),"anchor"in B&&(le.anchor=ve.create(B.anchor)),"focus"in B&&(le.focus=ve.create(B.focus)),le}throw new Error("`Decoration.createProperties` only accepts objects or decorations, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var le=B.anchor,Le=B.focus,Je=B.type,Ct=B.data;if(B.mark&&!Je&&((0,v.Z)(!1,"As of slate@0.47 the `decoration.mark` property has been changed to `decoration.type` and `decoration.data` directly."),Je=B.mark.type,Ct=B.mark.data),!Je)throw new Error("Decorations must be created with a `type`, but you passed: "+JSON.stringify(B));var Vt=new Y({type:Je,data:Me.create(Ct||{}),anchor:ve.fromJSON(le||{}),focus:ve.fromJSON(Le||{})});return Vt}}]),Y}((0,i.Record)(At)),Ce={anchor:void 0,focus:void 0,isFocused:void 0,marks:void 0},Ae=function(Ee){re(Y,Ee);function Y(){return K(this,Y),Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return _(Y,[{key:"setIsFocused",value:function(B){var le=this.set("isFocused",B);return le}},{key:"setMarks",value:function(B){var le=this.set("marks",B);return le}},{key:"setProperties",value:function(B){B=Y.createProperties(B);var le=B,Le=le.anchor,Je=le.focus,Ct=X(le,["anchor","focus"]);Le&&(Ct.anchor=ve.create(Le)),Je&&(Ct.focus=ve.create(Je));var Vt=this.merge(Ct);return Vt}},{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={object:this.object,anchor:this.anchor.toJSON(B),focus:this.focus.toJSON(B),isFocused:this.isFocused,marks:this.marks==null?null:this.marks.toArray().map(function(Le){return Le.toJSON()})};return le}},{key:"isBlurred",get:function(){return!this.isFocused}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isSelection(B))return B;if(Oe.isRange(B))return Y.fromJSON(Oe.createProperties(B));if(u()(B))return Y.fromJSON(B);throw new Error("`Selection.create` only accepts objects, ranges or selections, but you passed it: "+B)}},{key:"createProperties",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isSelection(B))return{anchor:ve.createProperties(B.anchor),focus:ve.createProperties(B.focus),isFocused:B.isFocused,marks:B.marks};if(Oe.isRange(B))return{anchor:ve.createProperties(B.anchor),focus:ve.createProperties(B.focus)};if(u()(B)){var le={};return"anchor"in B&&(le.anchor=ve.create(B.anchor)),"focus"in B&&(le.focus=ve.create(B.focus)),"isFocused"in B&&(le.isFocused=B.isFocused),"marks"in B&&(le.marks=B.marks==null?null:qe.createSet(B.marks)),le}throw new Error("`Selection.createProperties` only accepts objects, ranges or selections, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var le=B.anchor,Le=B.focus,Je=B.isFocused,Ct=Je===void 0?!1:Je,Vt=B.marks,bn=Vt===void 0?null:Vt,Hn=new Y({anchor:ve.fromJSON(le||{}),focus:ve.fromJSON(Le||{}),isFocused:Ct,marks:bn==null?null:new i.Set(bn.map(qe.fromJSON))});return Hn}}]),Y}((0,i.Record)(Ce)),$e={annotation:"@@__SLATE_ANNOTATION__@@",block:"@@__SLATE_BLOCK__@@",change:"@@__SLATE_CHANGE__@@",decoration:"@@__SLATE_DECORATION__@@",document:"@@__SLATE_DOCUMENT__@@",editor:"@@__SLATE_EDITOR__@@",inline:"@@__SLATE_INLINE__@@",leaf:"@@__SLATE_LEAF__@@",mark:"@@__SLATE_MARK__@@",operation:"@@__SLATE_OPERATION__@@",point:"@@__SLATE_POINT__@@",range:"@@__SLATE_RANGE__@@",selection:"@@__SLATE_SELECTION__@@",text:"@@__SLATE_TEXT__@@",value:"@@__SLATE_VALUE__@@"};function tt(Ee,Y){return!!(Y&&Y[$e[Ee]])}var ke={anchor:void 0,focus:void 0},Oe=function(Ee){re(Y,Ee);function Y(){return K(this,Y),Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return _(Y,[{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={object:this.object,anchor:this.anchor.toJSON(B),focus:this.focus.toJSON(B)};return le}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isRange(B))return B.object==="range"?B:Y.fromJSON(Y.createProperties(B));if(u()(B))return Y.fromJSON(B);throw new Error("`Range.create` only accepts objects or ranges, but you passed it: "+B)}},{key:"createList",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(B)||Array.isArray(B)){var le=new i.List(B.map(Y.create));return le}throw new Error("`Range.createList` only accepts arrays or lists, but you passed it: "+B)}},{key:"createProperties",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isRange(B))return{anchor:ve.createProperties(B.anchor),focus:ve.createProperties(B.focus)};if(u()(B)){var le={};return"anchor"in B&&(le.anchor=ve.create(B.anchor)),"focus"in B&&(le.focus=ve.create(B.focus)),le}throw new Error("`Range.createProperties` only accepts objects, annotations, decorations, ranges or selections, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var le=B.anchor,Le=B.focus,Je=new Y({anchor:ve.fromJSON(le||{}),focus:ve.fromJSON(Le||{})});return Je}},{key:"isRange",value:function(B){return tt("range",B)||It.isDecoration(B)||Ae.isSelection(B)}}]),Y}((0,i.Record)(ke)),je={key:void 0,type:void 0,data:void 0,anchor:void 0,focus:void 0},Et=function(Ee){re(Y,Ee);function Y(){return K(this,Y),Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return _(Y,[{key:"setProperties",value:function(B){B=Y.createProperties(B);var le=this.merge(B);return le}},{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={object:this.object,key:this.key,type:this.type,data:this.data.toJSON(),anchor:this.anchor.toJSON(B),focus:this.focus.toJSON(B)};return le}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isAnnotation(B))return B;if(Oe.isRange(B))return Y.fromJSON(Oe.createProperties(B));if(u()(B))return Y.fromJSON(B);throw new Error("`Annotation.create` only accepts objects or annotations, but you passed it: "+B)}},{key:"createMap",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.Map.isMap(B))return B;if(u()(B)){var le={};for(var Le in B){var Je=B[Le],Ct=Y.create(Je);le[Le]=Ct}return(0,i.Map)(le)}throw new Error("`Annotation.createMap` only accepts arrays or lists, but you passed it: "+B)}},{key:"createProperties",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isAnnotation(B))return{key:B.key,type:B.type,data:B.data,anchor:ve.createProperties(B.anchor),focus:ve.createProperties(B.focus)};if(u()(B)){var le={};return"key"in B&&(le.key=B.key),"type"in B&&(le.type=B.type),"data"in B&&(le.data=Me.create(B.data)),"anchor"in B&&(le.anchor=ve.create(B.anchor)),"focus"in B&&(le.focus=ve.create(B.focus)),le}throw new Error("`Annotation.createProperties` only accepts objects or annotations, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var le=B.key,Le=B.type,Je=B.data,Ct=B.anchor,Vt=B.focus;if(!le)throw new Error("Annotations must be created with a `key`, but you passed: "+JSON.stringify(B));if(!Le)throw new Error("Annotations must be created with a `type`, but you passed: "+JSON.stringify(B));var bn=new Y({key:le,type:Le,data:Me.create(Je||{}),anchor:ve.fromJSON(Ct||{}),focus:ve.fromJSON(Vt||{})});return bn}}]),Y}((0,i.Record)(je)),ct={data:void 0,key:void 0,nodes:void 0},ut=function(Ee){re(Y,Ee);function Y(){return K(this,Y),Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return _(Y,[{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={object:this.object,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(Le){return Le.toJSON(B)})};return B.preserveKeys&&(le.key=this.key),le}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isDocument(B))return B;if((i.List.isList(B)||Array.isArray(B))&&(B={nodes:B}),u()(B))return Y.fromJSON(B);throw new Error("`Document.create` only accepts objects, arrays, lists or documents, but you passed it: "+B)}},{key:"fromJSON",value:function(B){if(Y.isDocument(B))return B;var le=B.data,Le=le===void 0?{}:le,Je=B.key,Ct=Je===void 0?I.create():Je,Vt=B.nodes,bn=Vt===void 0?[]:Vt,Hn=new Y({key:Ct,data:new i.Map(Le),nodes:Yt.createList(bn)});return Hn}}]),Y}((0,i.Record)(ct)),Ne={data:void 0,key:void 0,nodes:void 0,type:void 0},mt=function(Ee){re(Y,Ee);function Y(){return K(this,Y),Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return _(Y,[{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={object:this.object,type:this.type,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(Le){return Le.toJSON(B)})};return B.preserveKeys&&(le.key=this.key),le}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isInline(B))return B;if(typeof B=="string"&&(B={type:B}),u()(B))return Y.fromJSON(B);throw new Error("`Inline.create` only accepts objects, strings or inlines, but you passed it: "+B)}},{key:"createList",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(B)||Array.isArray(B)){var le=new i.List(B.map(Y.create));return le}throw new Error("`Inline.createList` only accepts arrays or lists, but you passed it: "+B)}},{key:"fromJSON",value:function(B){if(Y.isInline(B))return B;var le=B.data,Le=le===void 0?{}:le,Je=B.key,Ct=Je===void 0?I.create():Je,Vt=B.nodes,bn=Vt===void 0?[]:Vt,Hn=B.type;if(typeof Hn!="string")throw new Error("`Inline.fromJS` requires a `type` string.");var br=new Y({key:Ct,type:Hn,data:new i.Map(Le),nodes:Yt.createList(bn)});return br}},{key:"isInlineList",value:function(B){return i.List.isList(B)&&B.every(function(le){return Y.isInline(le)})}}]),Y}((0,i.Record)(Ne)),bt={key:void 0,marks:void 0,text:void 0},Gt=(0,i.Record)({text:void 0,marks:void 0,annotations:void 0,decorations:void 0}),hn=function(Ee){re(Y,Ee);function Y(){return K(this,Y),Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return _(Y,[{key:"addMark",value:function(B){B=qe.create(B);var le=this.marks,Le=le.add(B),Je=this.set("marks",Le);return Je}},{key:"addMarks",value:function(B){B=qe.createSet(B);var le=this.set("marks",this.marks.union(B));return le}},{key:"getLeaves",value:function(B,le){var Le=this.text,Je=this.marks,Ct=[{text:Le,marks:Je,annotations:[],decorations:[]}],Vt=function(ei,mi){return[{text:ei.text.slice(0,mi),marks:ei.marks,annotations:[].concat(q(ei.annotations)),decorations:[].concat(q(ei.decorations))},{text:ei.text.slice(mi),marks:ei.marks,annotations:[].concat(q(ei.annotations)),decorations:[].concat(q(ei.decorations))}]},bn=function(ei){var mi=ei==="annotations"?B.values():le,Li=!0,na=!1,ji=void 0;try{for(var $a=mi[Symbol.iterator](),Ha;!(Li=(Ha=$a.next()).done);Li=!0){var Eo=Ha.value,Uo=Eo.start,Ms=Eo.end,er=[],Ar=0,Kr=!0,ur=!1,Gr=void 0;try{for(var Pi=Ct[Symbol.iterator](),aa;!(Kr=(aa=Pi.next()).done);Kr=!0){var Fa=aa.value,tn=Fa.text.length,cn=Ar;if(Ar+=tn,Uo.offset<=cn&&Ms.offset>=cn+tn){Fa[ei].push(Eo),er.push(Fa);continue}if(Uo.offset>cn+tn||Ms.offset<cn||Ms.offset===cn&&cn!==0){er.push(Fa);continue}var nr=Fa,ir=void 0,Lr=void 0;if(Ms.offset<cn+tn){var ua=Vt(nr,Ms.offset-cn),_a=J(ua,2);nr=_a[0],Lr=_a[1]}if(Uo.offset>cn){var Ka=Vt(nr,Uo.offset-cn),yo=J(Ka,2);ir=yo[0],nr=yo[1]}nr[ei].push(Eo),ir&&er.push(ir),er.push(nr),Lr&&er.push(Lr)}}catch(Ba){ur=!0,Gr=Ba}finally{try{!Kr&&Pi.return&&Pi.return()}finally{if(ur)throw Gr}}Ct=er}}catch(Ba){na=!0,ji=Ba}finally{try{!Li&&$a.return&&$a.return()}finally{if(na)throw ji}}};bn("annotations"),bn("decorations"),Ct=Ct.map(function(br){return new Gt(j({},br,{annotations:(0,i.List)(br.annotations),decorations:(0,i.List)(br.decorations)}))});var Hn=(0,i.List)(Ct);return Hn}},{key:"insertText",value:function(B,le){var Le=this.text,Je=Le.slice(0,B)+le+Le.slice(B),Ct=this.set("text",Je);return Ct}},{key:"removeMark",value:function(B){B=qe.create(B);var le=this.marks,Le=le.remove(B),Je=this.set("marks",Le);return Je}},{key:"removeText",value:function(B,le){var Le=this.text,Je=Le.slice(0,B)+Le.slice(B+le),Ct=this.set("text",Je);return Ct}},{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={object:this.object,text:this.text,marks:this.marks.toArray().map(function(Le){return Le.toJSON()})};return B.preserveKeys&&(le.key=this.key),le}},{key:"setMark",value:function(B,le){var Le=this.marks,Je=qe.create(B),Ct=Je.merge(le),Vt=Le.remove(Je).add(Ct),bn=this.set("marks",Vt);return bn}},{key:"splitText",value:function(B){var le=this.text,Le=this.set("text",le.slice(0,B)),Je=this.set("text",le.slice(B)).regenerateKey();return[Le,Je]}},{key:"mergeText",value:function(B){var le=this.text+B.text,Le=this.set("text",le);return Le}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Y.isText(B))return B;if(typeof B=="string"&&(B={text:B}),u()(B))return Y.fromJSON(B);throw new Error("`Text.create` only accepts objects, arrays, strings or texts, but you passed it: "+B)}},{key:"createList",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(B)||Array.isArray(B)){var le=new i.List(B.map(Y.create));return le}throw new Error("`Text.createList` only accepts arrays or lists, but you passed it: "+B)}},{key:"fromJSON",value:function(B){if(Y.isText(B))return B;(0,l.Z)(B.leaves==null,"As of slate@0.46, the `leaves` property of text nodes has been removed! Each individual leaf should be created as a text node instead.");var le=B.text,Le=le===void 0?"":le,Je=B.marks,Ct=Je===void 0?[]:Je,Vt=B.key,bn=Vt===void 0?I.create():Vt,Hn=new Y({key:bn,text:Le,marks:qe.createSet(Ct)});return Hn}},{key:"isTextList",value:function(B){return i.List.isList(B)&&B.every(function(le){return Y.isText(le)})}}]),Y}((0,i.Record)(bt)),Yt=function(){function Ee(){K(this,Ee)}return _(Ee,null,[{key:"create",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ee.isNode(z))return z;if(u()(z)){var B=z.object;switch(!B&&z.kind&&((0,v.Z)(!1,"As of slate@0.32.0, the `kind` property of Slate objects has been renamed to `object`."),B=z.kind),B){case"block":return Lt.create(z);case"document":return ut.create(z);case"inline":return mt.create(z);case"text":return hn.create(z);default:throw new Error("`Node.create` requires a `object` string.")}}throw new Error("`Node.create` only accepts objects or nodes but you passed it: "+z)}},{key:"createList",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(z)||Array.isArray(z)){var B=[];z.forEach(function(Le){if(Le&&Le.object==="text"&&Le.leaves&&Array.isArray(Le.leaves)){(0,v.Z)(!1,"As of slate@0.46, the `leaves` property of Text nodes has been removed. Instead, each text node contains a string of text and a unique set of marks and leaves are unnecessary.");var Je=hn.createList(Le.leaves).toArray();B=B.concat(Je);return}var Ct=Ee.create(Le);B.push(Ct)});var le=(0,i.List)(B);return le}throw new Error("`Node.createList` only accepts lists or arrays, but you passed it: "+z)}},{key:"createProperties",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Lt.isBlock(z)||mt.isInline(z))return{data:z.data,type:z.type};if(typeof z=="string")return{type:z};if(u()(z)){var B={};return"type"in z&&(B.type=z.type),"data"in z&&(B.data=Me.create(z.data)),B}throw new Error("`Node.createProperties` only accepts objects, strings, blocks or inlines, but you passed it: "+z)}},{key:"fromJSON",value:function(z){var B=z.object;switch(!B&&z.kind&&((0,v.Z)(!1,"As of slate@0.32.0, the `kind` property of Slate objects has been renamed to `object`."),B=z.kind),B){case"block":return Lt.fromJSON(z);case"document":return ut.fromJSON(z);case"inline":return mt.fromJSON(z);case"text":return hn.fromJSON(z);default:throw new Error("`Node.fromJSON` requires an `object` of either 'block', 'document', 'inline' or 'text', but you passed: "+z)}}},{key:"isNode",value:function(z){return Lt.isBlock(z)||ut.isDocument(z)||mt.isInline(z)||hn.isText(z)}},{key:"isNodeList",value:function(z){return i.List.isList(z)&&z.every(function(B){return Ee.isNode(B)})}}]),Ee}(),Bt={data:void 0,key:void 0,nodes:void 0,type:void 0},Lt=function(Ee){re(Y,Ee);function Y(){return K(this,Y),Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return _(Y,[{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={object:this.object,type:this.type,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(Le){return Le.toJSON(B)})};return B.preserveKeys&&(le.key=this.key),le}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isBlock(B))return B;if(typeof B=="string"&&(B={type:B}),u()(B))return Y.fromJSON(B);throw new Error("`Block.create` only accepts objects, strings or blocks, but you passed it: "+B)}},{key:"createList",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(B)||Array.isArray(B)){var le=new i.List(B.map(Y.create));return le}throw new Error("`Block.createList` only accepts arrays or lists, but you passed it: "+B)}},{key:"fromJSON",value:function(B){if(Y.isBlock(B))return B;var le=B.data,Le=le===void 0?{}:le,Je=B.key,Ct=Je===void 0?I.create():Je,Vt=B.nodes,bn=Vt===void 0?[]:Vt,Hn=B.type;if(typeof Hn!="string")throw new Error("`Block.fromJSON` requires a `type` string.");var br=new Y({key:Ct,type:Hn,data:(0,i.Map)(Le),nodes:Yt.createList(bn)});return br}},{key:"isBlockList",value:function(B){return i.List.isList(B)&&B.every(function(le){return Y.isBlock(le)})}}]),Y}((0,i.Record)(Bt)),zt={annotations:void 0,data:void 0,document:void 0,selection:void 0},Kt=function(Ee){re(Y,Ee);function Y(){return K(this,Y),Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return _(Y,[{key:"addAnnotation",value:function(B){B=Et.create(B);var le=this,Le=le,Je=Le.annotations,Ct=Le.document,Vt=B,bn=Vt.key;return B=B.updatePoints(function(Hn){return Hn.normalize(Ct)}),Je=Je.set(bn,B),le=le.set("annotations",Je),le}},{key:"addMark",value:function(B,le){le=qe.create(le);var Le=this,Je=Le,Ct=Je.document;return Ct=Ct.addMark(B,le),Le=Le.set("document",Ct),Le}},{key:"insertNode",value:function(B,le){var Le=this,Je=Le,Ct=Je.document;return Ct=Ct.insertNode(B,le),Le=Le.set("document",Ct),Le=Le.mapRanges(function(Vt){return Vt.updatePoints(function(bn){return bn.setPath(null)})}),Le}},{key:"insertText",value:function(B,le,Le){var Je=this,Ct=Je,Vt=Ct.document,bn=Vt.assertNode(B);return Vt=Vt.insertText(B,le,Le),bn=Vt.assertNode(B),Je=Je.set("document",Vt),Je=Je.mapPoints(function(Hn){return Hn.key===bn.key&&Hn.offset>=le?Hn.setOffset(Hn.offset+Le.length):Hn}),Je}},{key:"mergeNode",value:function(B){var le=this,Le=le,Je=Le.document,Ct=Je.mergeNode(B);B=Je.resolvePath(B);var Vt=ue.decrement(B),bn=Je.getNode(Vt),Hn=Je.getNode(B);return le=le.set("document",Ct),le=le.mapRanges(function(br){if(Hn.object==="text"){var ei=bn.text.length;br.anchor.key===Hn.key&&(br=br.moveAnchorTo(bn.key,ei+br.anchor.offset)),br.focus.key===Hn.key&&(br=br.moveFocusTo(bn.key,ei+br.focus.offset))}return br=br.updatePoints(function(mi){return mi.setPath(null)}),br}),le}},{key:"moveNode",value:function(B,le){var Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Je=this,Ct=Je,Vt=Ct.document;return ue.isEqual(B,le)||(Vt=Vt.moveNode(B,le,Le),Je=Je.set("document",Vt),Je=Je.mapPoints(function(bn){return bn.setPath(null)})),Je}},{key:"removeAnnotation",value:function(B){B=Et.create(B);var le=this,Le=le,Je=Le.annotations,Ct=B,Vt=Ct.key;return Je=Je.delete(Vt),le=le.set("annotations",Je),le}},{key:"removeMark",value:function(B,le){le=qe.create(le);var Le=this,Je=Le,Ct=Je.document;return Ct=Ct.removeMark(B,le),Le=Le.set("document",Ct),Le}},{key:"removeNode",value:function(B){var le=this,Le=le,Je=Le.document,Ct=Je.assertNode(B),Vt=Ct.object==="text"?Ct:Ct.getFirstText()||Ct,bn=Ct.object==="text"?Ct:Ct.getLastText()||Ct,Hn=Je.getPreviousText(Vt.key),br=Je.getNextText(bn.key);return Je=Je.removeNode(B),le=le.set("document",Je),le=le.mapRanges(function(ei){var mi=ei,Li=mi.anchor,na=mi.focus;return Ct.hasNode(Li.key)&&(ei=Hn?ei.moveAnchorTo(Hn.key,Hn.text.length):br?ei.moveAnchorTo(br.key,0):ei.unset()),Ct.hasNode(na.key)&&(ei=Hn?ei.moveFocusTo(Hn.key,Hn.text.length):br?ei.moveFocusTo(br.key,0):ei.unset()),ei=ei.updatePoints(function(ji){return ji.setPath(null)}),ei}),le}},{key:"removeText",value:function(B,le,Le){var Je=this,Ct=Je,Vt=Ct.document,bn=Vt.assertNode(B);Vt=Vt.removeText(B,le,Le),Je=Je.set("document",Vt);var Hn=Le.length,br=le,ei=le+Hn;return Je=Je.mapPoints(function(mi){return mi.key!==bn.key?mi:mi.offset>=ei?mi.setOffset(mi.offset-Hn):mi.offset>br?mi.setOffset(br):mi}),Je}},{key:"setAnnotation",value:function(B,le){le=Et.createProperties(le);var Le=Et.create(B),Je=Le.merge(le),Ct=this,Vt=Ct,bn=Vt.annotations,Hn=Le.key;return bn=bn.set(Hn,Je),Ct=Ct.set("annotations",bn),Ct}},{key:"setNode",value:function(B,le){var Le=this,Je=Le,Ct=Je.document;return Ct=Ct.setNode(B,le),Le=Le.set("document",Ct),Le}},{key:"setMark",value:function(B,le,Le){var Je=this,Ct=Je,Vt=Ct.document;return Vt=Vt.setMark(B,le,Le),Je=Je.set("document",Vt),Je}},{key:"setProperties",value:function(B){var le=this,Le=le,Je=Le.document,Ct=B.data,Vt=B.annotations,bn={};return Ct&&(bn.data=Ct),Vt&&(bn.annotations=Vt.map(function(Hn){return Hn.isSet?Hn:Je.resolveAnnotation(Hn)})),le=le.merge(bn),le}},{key:"setSelection",value:function(B){var le=this,Le=le,Je=Le.document,Ct=Le.selection,Vt=Ct.setProperties(B);return Ct=Je.resolveSelection(Vt),le=le.set("selection",Ct),le}},{key:"splitNode",value:function(B,le,Le){var Je=this,Ct=Je,Vt=Ct.document,bn=Vt.splitNode(B,le,Le),Hn=Vt.assertNode(B);return Je=Je.set("document",bn),Je=Je.mapRanges(function(br){var ei=bn.getNextText(Hn.key),mi=br,Li=mi.anchor,na=mi.focus;return Hn.key===Li.key&&le<=Li.offset&&(br=br.moveAnchorTo(ei.key,Li.offset-le)),Hn.key===na.key&&le<=na.offset&&(br=br.moveFocusTo(ei.key,na.offset-le)),br=br.updatePoints(function(ji){return ji.setPath(null)}),br}),Je}},{key:"mapRanges",value:function(B){var le=this,Le=le,Je=Le.document,Ct=Le.selection,Vt=Le.annotations,bn=Ct.isSet?B(Ct):Ct;bn||(bn=Ct.unset()),bn!==Ct&&(bn=Je.createSelection(bn)),le=le.set("selection",bn);var Hn=Vt.map(function(br){var ei=br.isSet?B(br):br;return ei&&ei!==br&&(ei=Je.createAnnotation(ei)),ei});return Hn=Hn.filter(function(br){return!!br}),le=le.set("annotations",Hn),le}},{key:"mapPoints",value:function(B){return this.mapRanges(function(le){return le.updatePoints(B)})}},{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={object:this.object,document:this.document.toJSON(B)};return B.preserveData&&(le.data=this.data.toJSON(B)),B.preserveAnnotations&&(le.annotations=this.annotations.map(function(Le){return Le.toJSON(B)}).toObject()),B.preserveSelection&&(le.selection=this.selection.toJSON(B)),le}},{key:"change",value:function(){(0,l.Z)(!1,"As of Slate 0.42.0, value object are no longer schema-aware, and the `value.change()` method is no longer available. Use the `editor.change()` method on the new `Editor` controller instead.")}},{key:"startBlock",get:function(){return this.selection.start.key&&this.document.getClosestBlock(this.selection.start.key)}},{key:"endBlock",get:function(){return this.selection.end.key&&this.document.getClosestBlock(this.selection.end.key)}},{key:"anchorBlock",get:function(){return this.selection.anchor.key&&this.document.getClosestBlock(this.selection.anchor.key)}},{key:"focusBlock",get:function(){return this.selection.focus.key&&this.document.getClosestBlock(this.selection.focus.key)}},{key:"startInline",get:function(){return this.selection.start.key&&this.document.getClosestInline(this.selection.start.key)}},{key:"endInline",get:function(){return this.selection.end.key&&this.document.getClosestInline(this.selection.end.key)}},{key:"anchorInline",get:function(){return this.selection.anchor.key&&this.document.getClosestInline(this.selection.anchor.key)}},{key:"focusInline",get:function(){return this.selection.focus.key&&this.document.getClosestInline(this.selection.focus.key)}},{key:"startText",get:function(){return this.selection.start.key&&this.document.getDescendant(this.selection.start.key)}},{key:"endText",get:function(){return this.selection.end.key&&this.document.getDescendant(this.selection.end.key)}},{key:"anchorText",get:function(){return this.selection.anchor.key&&this.document.getDescendant(this.selection.anchor.key)}},{key:"focusText",get:function(){return this.selection.focus.key&&this.document.getDescendant(this.selection.focus.key)}},{key:"nextBlock",get:function(){return this.selection.end.key&&this.document.getNextBlock(this.selection.end.key)}},{key:"previousBlock",get:function(){return this.selection.start.key&&this.document.getPreviousBlock(this.selection.start.key)}},{key:"nextInline",get:function(){return this.selection.end.key&&this.document.getNextInline(this.selection.end.key)}},{key:"previousInline",get:function(){return this.selection.start.key&&this.document.getPreviousInline(this.selection.start.key)}},{key:"nextText",get:function(){return this.selection.end.key&&this.document.getNextText(this.selection.end.key)}},{key:"previousText",get:function(){return this.selection.start.key&&this.document.getPreviousText(this.selection.start.key)}},{key:"marks",get:function(){return this.selection.isUnset?new i.Set:this.selection.marks||this.document.getMarksAtRange(this.selection)}},{key:"activeMarks",get:function(){return this.selection.isUnset?new i.Set:this.selection.marks||this.document.getActiveMarksAtRange(this.selection)}},{key:"blocks",get:function(){return this.selection.isUnset?new i.List:this.document.getLeafBlocksAtRange(this.selection)}},{key:"fragment",get:function(){return this.selection.isUnset?ut.create():this.document.getFragmentAtRange(this.selection)}},{key:"inlines",get:function(){return this.selection.isUnset?new i.List:this.document.getLeafInlinesAtRange(this.selection)}},{key:"texts",get:function(){return this.selection.isUnset?new i.List:this.document.getTextsAtRange(this.selection)}},{key:"history",get:function(){(0,l.Z)(!1,"As of Slate 0.42.0, the `value.history` model no longer exists, and the history is stored in `value.data` instead using plugins.")}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Y.isValue(B))return B;if(u()(B))return Y.fromJSON(B,le);throw new Error("`Value.create` only accepts objects or values, but you passed it: "+B)}},{key:"createProperties",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isValue(B))return{annotations:B.annotations,data:B.data};if(u()(B)){var le={};return"annotations"in B&&(le.annotations=Et.createMap(B.annotations)),"data"in B&&(le.data=Me.create(B.data)),le}throw new Error("`Value.createProperties` only accepts objects or values, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var le=B.data,Le=le===void 0?{}:le,Je=B.annotations,Ct=Je===void 0?{}:Je,Vt=B.document,bn=Vt===void 0?{}:Vt,Hn=B.selection,br=Hn===void 0?{}:Hn;if(Le=Me.fromJSON(Le),bn=ut.fromJSON(bn),br=bn.createSelection(br),Ct=Et.createMap(Ct),br.isUnset){var ei=bn.getFirstText();ei&&(br=br.moveToStartOfNode(ei)),br=bn.createSelection(br)}var mi=new Y({annotations:Ct,data:Le,document:bn,selection:br});return mi}}]),Y}((0,i.Record)(zt)),vt=p()("slate:operation:apply");function Ve(Ee,Y){Y=Rt.create(Y);var z=Y,B=z.type;switch(vt(B,Y),B){case"add_annotation":{var le=Y,Le=le.annotation,Je=Ee.addAnnotation(Le);return Je}case"add_mark":{var Ct=Y,Vt=Ct.path,bn=Ct.mark,Hn=Ee.addMark(Vt,bn);return Hn}case"insert_node":{var br=Y,ei=br.path,mi=br.node,Li=Ee.insertNode(ei,mi);return Li}case"insert_text":{var na=Y,ji=na.path,$a=na.offset,Ha=na.text,Eo=na.marks,Uo=Ee.insertText(ji,$a,Ha,Eo);return Uo}case"merge_node":{var Ms=Y,er=Ms.path,Ar=Ee.mergeNode(er);return Ar}case"move_node":{var Kr=Y,ur=Kr.path,Gr=Kr.newPath,Pi=Ee.moveNode(ur,Gr);return Pi}case"remove_annotation":{var aa=Y,Fa=aa.annotation,tn=Ee.removeAnnotation(Fa);return tn}case"remove_mark":{var cn=Y,nr=cn.path,ir=cn.mark,Lr=Ee.removeMark(nr,ir);return Lr}case"remove_node":{var ua=Y,_a=ua.path,Ka=Ee.removeNode(_a);return Ka}case"remove_text":{var yo=Y,Ba=yo.path,Ma=yo.offset,Mo=yo.text,Nr=Ee.removeText(Ba,Ma,Mo);return Nr}case"set_annotation":{var gi=Y,ea=gi.properties,dr=gi.newProperties,ci=Ee.setAnnotation(ea,dr);return ci}case"set_mark":{var yi=Y,xa=yi.path,Cr=yi.properties,ka=yi.newProperties,Io=Ee.setMark(xa,Cr,ka);return Io}case"set_node":{var Co=Y,_s=Co.path,Is=Co.newProperties,xs=Ee.setNode(_s,Is);return xs}case"set_selection":{var Zs=Y,Ns=Zs.newProperties,Us=Ee.setSelection(Ns);return Us}case"set_value":{var fu=Y,bu=fu.newProperties,Ys=Ee.setProperties(bu);return Ys}case"split_node":{var Hu=Y,Zu=Hu.path,ql=Hu.position,Sn=Hu.properties,Wn=Ee.splitNode(Zu,ql,Sn);return Wn}default:throw new Error('Unknown operation type: "'+B+'".')}}var lt=p()("slate:operation:invert");function at(Ee){Ee=Rt.create(Ee);var Y=Ee,z=Y.type;switch(lt(z,Ee),z){case"move_node":{var B=Ee,le=B.newPath,Le=B.path;if(ue.isEqual(le,Le))return Ee;var Je=ue.transform(Le,Ee).first(),Ct=ue.transform(ue.increment(Le),Ee).first(),Vt=Ee.set("path",Je).set("newPath",Ct);return Vt}case"merge_node":{var bn=Ee,Hn=bn.path,br=ue.decrement(Hn),ei=Ee.set("type","split_node").set("path",br);return ei}case"split_node":{var mi=Ee,Li=mi.path,na=ue.increment(Li),ji=Ee.set("type","merge_node").set("path",na);return ji}case"set_annotation":case"set_node":case"set_value":case"set_selection":case"set_mark":{var $a=Ee,Ha=$a.properties,Eo=$a.newProperties,Uo=Ee.set("properties",Eo).set("newProperties",Ha);return Uo}case"insert_node":case"insert_text":{var Ms=Ee.set("type",z.replace("insert_","remove_"));return Ms}case"remove_node":case"remove_text":{var er=Ee.set("type",z.replace("remove_","insert_"));return er}case"add_annotation":case"add_mark":{var Ar=Ee.set("type",z.replace("add_","remove_"));return Ar}case"remove_annotation":case"remove_mark":{var Kr=Ee.set("type",z.replace("remove_","add_"));return Kr}default:throw new Error('Unknown operation type: "'+z+'".')}}var Xt={add_mark:["path","mark","data"],add_annotation:["annotation","data"],insert_node:["path","node","data"],insert_text:["path","offset","text","data"],merge_node:["path","position","properties","target","data"],move_node:["path","newPath","data"],remove_annotation:["annotation","data"],remove_mark:["path","mark","data"],remove_node:["path","node","data"],remove_text:["path","offset","text","data"],set_annotation:["properties","newProperties","data"],set_mark:["path","properties","newProperties","data"],set_node:["path","properties","newProperties","data"],set_selection:["properties","newProperties","data"],set_value:["properties","newProperties","data"],split_node:["path","position","properties","target","data"]},rt={annotation:void 0,data:void 0,length:void 0,mark:void 0,marks:void 0,newPath:void 0,newProperties:void 0,node:void 0,offset:void 0,path:void 0,position:void 0,properties:void 0,target:void 0,text:void 0,type:void 0},Rt=function(Ee){re(Y,Ee);function Y(){return K(this,Y),Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return _(Y,[{key:"apply",value:function(B){var le=Ve(B,this);return le}},{key:"invert",value:function(){var B=at(this);return B}},{key:"toJSON",value:function(){var B=this.object,le=this.type,Le={object:B,type:le},Je=Xt[le],Ct=!0,Vt=!1,bn=void 0;try{for(var Hn=Je[Symbol.iterator](),br;!(Ct=(br=Hn.next()).done);Ct=!0){var ei=br.value,mi=this[ei];if((ei==="annotation"||ei==="mark"||ei==="marks"||ei==="node"||ei==="path"||ei==="newPath")&&(mi=mi.toJSON()),ei==="properties"&&le==="merge_node"){var Li={};"data"in mi&&(Li.data=mi.data.toJS()),"type"in mi&&(Li.type=mi.type),mi=Li}if((ei==="properties"||ei==="newProperties")&&le==="set_annotation"){var na={};"anchor"in mi&&(na.anchor=mi.anchor.toJS()),"focus"in mi&&(na.focus=mi.focus.toJS()),"key"in mi&&(na.key=mi.key),"data"in mi&&(na.data=mi.data.toJS()),"type"in mi&&(na.type=mi.type),mi=na}if((ei==="properties"||ei==="newProperties")&&le==="set_mark"){var ji={};"data"in mi&&(ji.data=mi.data.toJS()),"type"in mi&&(ji.type=mi.type),mi=ji}if((ei==="properties"||ei==="newProperties")&&le==="set_node"){var $a={};"data"in mi&&($a.data=mi.data.toJS()),"type"in mi&&($a.type=mi.type),mi=$a}if((ei==="properties"||ei==="newProperties")&&le==="set_selection"){var Ha={};"anchor"in mi&&(Ha.anchor=mi.anchor.toJSON()),"focus"in mi&&(Ha.focus=mi.focus.toJSON()),"isFocused"in mi&&(Ha.isFocused=mi.isFocused),"marks"in mi&&(Ha.marks=mi.marks&&mi.marks.toJSON()),mi=Ha}if((ei==="properties"||ei==="newProperties")&&le==="set_value"){var Eo={};"data"in mi&&(Eo.data=mi.data.toJS()),mi=Eo}if(ei==="properties"&&le==="split_node"){var Uo={};"data"in mi&&(Uo.data=mi.data.toJS()),"type"in mi&&(Uo.type=mi.type),mi=Uo}ei==="data"&&(mi=mi.toJSON()),Le[ei]=mi}}catch(Ms){Vt=!0,bn=Ms}finally{try{!Ct&&Hn.return&&Hn.return()}finally{if(Vt)throw bn}}return Le}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isOperation(B))return B;if(u()(B))return Y.fromJSON(B);throw new Error("`Operation.create` only accepts objects or operations, but you passed it: "+B)}},{key:"createList",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(B)||Array.isArray(B)){var le=new i.List(B.map(Y.create));return le}throw new Error("`Operation.createList` only accepts arrays or lists, but you passed it: "+B)}},{key:"fromJSON",value:function(B){if(Y.isOperation(B))return B;var le=B.type,Le=Xt[le],Je={type:le};if(!Le)throw new Error('`Operation.fromJSON` was passed an unrecognized operation type: "'+le+'"');var Ct=!0,Vt=!1,bn=void 0;try{for(var Hn=Le[Symbol.iterator](),br;!(Ct=(br=Hn.next()).done);Ct=!0){var ei=br.value,mi=B[ei];if(ei==="data"&&mi===void 0&&(mi={}),mi===void 0)throw new Error('`Operation.fromJSON` was passed a "'+le+'" operation without the required "'+ei+'" attribute.');ei==="annotation"&&(mi=Et.create(mi)),(ei==="path"||ei==="newPath")&&(mi=ue.create(mi)),ei==="mark"&&(mi=qe.create(mi)),ei==="node"&&(mi=Yt.create(mi)),(ei==="properties"||ei==="newProperties")&&le==="set_annotation"&&(mi=Et.createProperties(mi)),(ei==="properties"||ei==="newProperties")&&le==="set_mark"&&(mi=qe.createProperties(mi)),(ei==="properties"||ei==="newProperties")&&(le==="set_node"||le==="merge_node"||le==="split_node")&&(mi=Yt.createProperties(mi)),(ei==="properties"||ei==="newProperties")&&le==="set_selection"&&(mi=Ae.createProperties(mi)),(ei==="properties"||ei==="newProperties")&&le==="set_value"&&(mi=Kt.createProperties(mi)),ei==="data"&&(mi=(0,i.Map)(mi)),Je[ei]=mi}}catch(na){Vt=!0,bn=na}finally{try{!Ct&&Hn.return&&Hn.return()}finally{if(Vt)throw bn}}var Li=new Y(Je);return Li}},{key:"isOperationList",value:function(B){return i.List.isList(B)&&B.every(function(le){return Y.isOperation(le)})}}]),Y}((0,i.Record)(rt)),rn={operations:void 0,value:void 0},sn=function(Ee){re(Y,Ee);function Y(){return K(this,Y),Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return _(Y,[{key:"toJSON",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={object:this.object,value:this.value.toJSON(B),operations:this.operations.toArray().map(function(Le){return Le.toJSON(B)})};return le}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isChange(B))return B;if(u()(B))return Y.fromJSON(B);throw new Error("`Change.create` only accepts objects or changes, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var le=B.value,Le=B.operations,Je=Le===void 0?[]:Le,Ct=new Y({value:Kt.create(le),operations:Rt.createList(Je)});return Ct}}]),Y}((0,i.Record)(rn));function Jn(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function Y(B,le,Le){var Je=B.type,Ct=B.args,Vt=Ee[Je];if(!Vt)return Le();le.command.apply(le,[Vt].concat(q(Ct)))}function z(B,le){for(var Le in Ee)B.registerCommand(Le);return le()}return{onCommand:Y,onConstruct:z}}var ze=55296,st=57343,en=/\s/,wt=/['\u2018\u2019]/,Ke=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;function Ut(Ee){return ze<=Ee&&Ee<=st}function on(Ee,Y,z){if(Ee===55356){var B=Y.charCodeAt(z+1);return B<=57343&&B>=57339}return!1}function Tn(Ee){return Ee<=65039&&Ee>=65024}function An(Ee){return Ee===10084||Ee===9794||Ee===9792||Ee===9760||Ee===9877||Ee===9992||Ee===9711}function Zt(Ee,Y){if(en.test(Ee))return!1;if(wt.test(Ee)){var z=Y.charAt(0),B=ot(z);z=Y.slice(0,B);var le=Y.slice(B);if(Zt(z,le))return!0}return!Ke.test(Ee)}function ot(Ee){return Ut(Ee.charCodeAt(0))?2:1}function We(Ee,Y,z){var B=0;if(Ee==="")return 1;for(var le=0;le<Y;le++)for(var Le=null,Je=Ee.charCodeAt(B);Je;){if(Ut(Je)){var Ct=on(Je,Ee,B);if(z){if(!Ct&&Le&&Le!=="ZWJ"||Ct&&Le&&Le!=="SURR")break}else if(Le==="SURR"||Le==="BMP")break;B+=2,Le=Ct?"MOD":"SURR",Je=Ee.charCodeAt(B);continue}if(Je===8205){B+=1,Le="ZWJ",Je=Ee.charCodeAt(B);continue}if(An(Je)){if(z&&Le==="VAR"||Le&&Le!=="ZWJ"&&Le!=="VAR")break;B+=1,Le="BMP",Je=Ee.charCodeAt(B);continue}if(Tn(Je)){if(!z&&Le&&Le!=="ZWJ")break;B+=1,Le="VAR",Je=Ee.charCodeAt(B);continue}if(z){var Vt=Ee.charCodeAt(B+1);if(on(Vt,Ee,B+1)){B+=3,Le="MOD",Je=Ee.charCodeAt(B);continue}}else if(Le==="MOD"){B+=1;break}Le===null&&(B+=1);break}return B}function Ft(Ee,Y){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Ee=Ee.slice(0,Y),Ee=(0,d.reverse)(Ee),We(Ee,z)}function it(Ee,Y){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Ee=Ee.slice(Y),We(Ee,z,!0)}function qt(Ee){for(var Y=0,z=0,B=!1,le=void 0;le=Ee.charAt(z);){var Le=ot(le);le=Ee.slice(z,z+Le);var Je=Ee.slice(z+Le);if(Zt(le,Je))B=!0,Y+=Le;else if(!B)Y+=Le;else break;z+=Le}return Y}function vn(Ee,Y){Ee=Ee.slice(0,Y),Ee=(0,d.reverse)(Ee);var z=qt(Ee);return z}function fn(Ee,Y){Ee=Ee.slice(Y);var z=qt(Ee);return z}var Tt={getCharLength:ot,getCharOffset:We,getCharOffsetBackward:Ft,getCharOffsetForward:it,getWordOffset:qt,getWordOffsetBackward:vn,getWordOffsetForward:fn,isSurrogate:Ut,isWord:Zt};function dn(Ee,Y){Y.isExpanded&&Ee.deleteAtRange(Y);var z=Ee.value,B=z.document,le=Y,Le=le.start,Je=le.end;return B.hasDescendant(Le.path)?Y=Y.moveToStart():Y=Y.moveTo(Je.path,0).normalize(B),Y}var mn={};mn.addMarkAtRange=function(Ee,Y,z){if(!Y.isCollapsed){var B=Ee.value,le=B.document,Le=Y.start,Je=Y.end,Ct=le.getTextsAtRange(Y);Ee.withoutNormalizing(function(){Ct.forEach(function(Vt){var bn=Vt.key,Hn=0,br=Vt.text.length;bn===Le.key&&(Hn=Le.offset),bn===Je.key&&(br=Je.offset),bn===Le.key&&bn===Je.key&&(br=Je.offset-Le.offset),Ee.addMarkByKey(bn,Hn,br,z)})})}},mn.addMarksAtRange=function(Ee,Y,z){z.forEach(function(B){return Ee.addMarkAtRange(Y,B)})},mn.deleteAtRange=function(Ee,Y){Ee.snapshotSelection();var z=Ee.value,B=Y.start,le=Y.end,Le=B.key,Je=B.offset,Ct=le.key,Vt=le.offset,bn=z.document,Hn=bn.hasVoidParent(Le,Ee),br=bn.hasVoidParent(Ct,Ee),ei=bn.getClosestBlock(Le),mi=bn.getClosestBlock(Ct),Li=Je===0&&Vt===0&&Hn===!1&&Le===ei.getFirstText().key&&Ct===mi.getFirstText().key&&Le!==Ct;if(Li&&br){var na=bn.getPreviousText(Ct);Ct=na.key,Vt=na.text.length,br=bn.hasVoidParent(Ct,Ee)}Ee.withoutNormalizing(function(){for(;Hn;){var ji=bn.getClosestVoid(Le,Ee),$a=bn.getNextText(Le);if(Ee.removeNodeByKey(ji.key),Le===Ct||!$a)return;bn=Ee.value.document,Le=$a.key,Je=0,Hn=bn.hasVoidParent(Le,Ee)}for(;br;){var Ha=bn.getClosestVoid(Ct,Ee),Eo=bn.getPreviousText(Ct);Ee.removeNodeByKey(Ha.key),bn=Ee.value.document,Ct=Eo.key,Vt=Eo.text.length,br=bn.hasVoidParent(Ct,Ee)}if(Le===Ct&&Li){Ee.removeNodeByKey(ei.key);return}else if(Le===Ct){var Uo=Je,Ms=Vt-Je;Ee.removeTextByKey(Le,Uo,Ms);return}else{ei=bn.getClosestBlock(Le),mi=bn.getClosestBlock(Ct);var er=bn.getNode(Le),Ar=bn.getNode(Ct),Kr=er.text.length-Je,ur=Vt,Gr=bn.getCommonAncestor(Le,Ct),Pi=Gr.getFurthestChild(Le),aa=Gr.getFurthestChild(Ct),Fa=bn.getParent(ei.key),tn=Fa.nodes.indexOf(ei),cn=Fa.nodes.indexOf(mi),nr=void 0;for(nr=er;nr.key!==Pi.key;){var ir=bn.getParent(nr.key),Lr=ir.nodes.indexOf(nr),ua=ir.nodes.slice(Lr+1);ua.reverse().forEach(function(Io){Ee.removeNodeByKey(Io.key)}),nr=ir}var _a=Gr.nodes.indexOf(Pi),Ka=Gr.nodes.indexOf(aa),yo=Gr.nodes.slice(_a+1,Ka);for(yo.reverse().forEach(function(Io){Ee.removeNodeByKey(Io.key)}),nr=Ar;nr.key!==aa.key;){var Ba=bn.getParent(nr.key),Ma=Ba.nodes.indexOf(nr),Mo=Ba.nodes.slice(0,Ma);Mo.reverse().forEach(function(Io){Ee.removeNodeByKey(Io.key)}),nr=Ba}if(Kr!==0&&Ee.removeTextByKey(Le,Je,Kr),ur!==0&&Ee.removeTextByKey(Ct,0,Vt),ei.key!==mi.key){bn=Ee.value.document;var Nr=void 0,gi=!0,ea=!1,dr=void 0;try{for(var ci=bn.ancestors(mi.key)[Symbol.iterator](),yi;!(gi=(yi=ci.next()).done);gi=!0){var xa=yi.value,Cr=J(xa,1),ka=Cr[0];if(ka.nodes.size>1)break;Nr=ka}}catch(Io){ea=!0,dr=Io}finally{try{!gi&&ci.return&&ci.return()}finally{if(ea)throw dr}}cn!==tn+1&&Ee.moveNodeByKey(mi.key,Fa.key,tn+1),Li?Ee.removeNodeByKey(ei.key):Ee.mergeNodeByKey(mi.key),Nr&&Ee.removeNodeByKey(Nr.key)}}})},mn.deleteBackwardAtRange=function(Ee,Y){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(z!==0){var B=Ee.value,le=B.document,Le=Y,Je=Le.start,Ct=Le.focus;if(Y.isExpanded){Ee.deleteAtRange(Y);return}var Vt=le.getClosestVoid(Je.path,Ee);if(Vt){Ee.removeNodeByKey(Vt.key);return}if(!Je.isAtStartOfNode(le)){var bn=le.getClosestBlock(Je.path);if(le.nodes.size!==1&&bn&&bn.text===""&&bn.nodes.size===1){Ee.removeNodeByKey(bn.key);return}var Hn=le.getDescendant(Je.path);if(Je.isAtStartOfNode(Hn)){var br=le.getPreviousText(Hn.key),ei=le.getClosestInline(Hn.key);ei&&br.text===""&&(br=le.getPreviousText(br.key));var mi=le.getClosestBlock(br.key),Li=le.getClosestVoid(br.key,Ee);if(Li){Ee.removeNodeByKey(Li.key);return}if(z===1&&mi!==bn){Y=Y.moveAnchorTo(br.key,br.text.length),Ee.deleteAtRange(Y);return}}if(z<=Ct.offset){Y=Y.moveFocusBackward(z),Ee.deleteAtRange(Y);return}for(var na=Hn,ji=0,$a=Ct.offset;z>$a;){na=le.getPreviousText(na.key);var Ha=$a+na.text.length;if(z<=Ha){ji=Ha-z;break}else $a=Ha}Y=Y.moveAnchorTo(na.key,ji),Ee.deleteAtRange(Y)}}},mn.deleteCharBackwardAtRange=function(Ee,Y){if(Y.isExpanded){Ee.deleteAtRange(Y);return}var z=Ee.value,B=z.document,le=Y.start,Le=B.getClosestBlock(le.path),Je=Le.getOffset(le.key),Ct=Je+le.offset,Vt=Le.text,bn=Tt.getCharOffsetBackward(Vt,Ct);Ee.deleteBackwardAtRange(Y,bn)},mn.deleteCharForwardAtRange=function(Ee,Y){if(Y.isExpanded){Ee.deleteAtRange(Y);return}var z=Ee.value,B=z.document,le=Y.start,Le=B.getClosestBlock(le.path),Je=Le.getOffset(le.key),Ct=Je+le.offset,Vt=Le.text,bn=Tt.getCharOffsetForward(Vt,Ct);Ee.deleteForwardAtRange(Y,bn)},mn.deleteForwardAtRange=function(Ee,Y){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(z!==0){var B=Ee.value,le=B.document,Le=Y,Je=Le.start,Ct=Le.focus;if(Y.isExpanded){Ee.deleteAtRange(Y);return}var Vt=le.getClosestVoid(Je.path,Ee);if(Vt){Ee.removeNodeByKey(Vt.key);return}var bn=le.getClosestBlock(Je.path);if(bn&&!Ee.isVoid(bn)&&bn.text===""&&le.nodes.size!==1){var Hn=le.getNextBlock(bn.key);Ee.removeNodeByKey(bn.key),Hn&&Hn.key&&Ee.moveToStartOfNode(Hn);return}if(!Je.isAtEndOfNode(le)){var br=le.getDescendant(Je.path);if(Je.isAtEndOfNode(br)){var ei=le.getNextText(br.key),mi=le.getClosestBlock(ei.key),Li=le.getClosestVoid(ei.key,Ee);if(Li){Ee.removeNodeByKey(Li.key);return}if(z===1&&mi!==bn){Y=Y.moveFocusTo(ei.key,0),Ee.deleteAtRange(Y);return}}if(z<=br.text.length-Ct.offset){Y=Y.moveFocusForward(z),Ee.deleteAtRange(Y);return}for(var na=br,ji=Ct.offset,$a=br.text.length-Ct.offset;z>$a;){na=le.getNextText(na.key);var Ha=$a+na.text.length;if(z<=Ha){ji=z-$a;break}else $a=Ha}Y=Y.moveFocusTo(na.key,ji),Ee.deleteAtRange(Y)}}},mn.deleteLineBackwardAtRange=function(Ee,Y){if(Y.isExpanded){Ee.deleteAtRange(Y);return}var z=Ee.value,B=z.document,le=Y.start,Le=B.getClosestBlock(le.path),Je=Le.getOffset(le.key),Ct=Je+le.offset;Ee.deleteBackwardAtRange(Y,Ct)},mn.deleteLineForwardAtRange=function(Ee,Y){if(Y.isExpanded){Ee.deleteAtRange(Y);return}var z=Ee.value,B=z.document,le=Y.start,Le=B.getClosestBlock(le.path),Je=Le.getOffset(le.key),Ct=Je+le.offset;Ee.deleteForwardAtRange(Y,Le.text.length-Ct)},mn.deleteWordBackwardAtRange=function(Ee,Y){if(Y.isExpanded){Ee.deleteAtRange(Y);return}var z=Ee.value,B=z.document,le=Y.start,Le=B.getClosestBlock(le.path),Je=Le.getOffset(le.key),Ct=Je+le.offset,Vt=Le.text,bn=Ct===0?1:Tt.getWordOffsetBackward(Vt,Ct);Ee.deleteBackwardAtRange(Y,bn)},mn.deleteWordForwardAtRange=function(Ee,Y){if(Y.isExpanded){Ee.deleteAtRange(Y);return}var z=Ee.value,B=z.document,le=Y.start,Le=B.getClosestBlock(le.path),Je=Le.getOffset(le.key),Ct=Je+le.offset,Vt=Le.text,bn=Tt.getWordOffsetForward(Vt,Ct),Hn=bn===0?1:bn;Ee.deleteForwardAtRange(Y,Hn)},mn.insertBlockAtRange=function(Ee,Y,z){Y=dn(Ee,Y),z=Lt.create(z);var B=Ee.value,le=B.document,Le=Y,Je=Le.start,Ct=Je.key,Vt=Je.offset,bn=le.getClosestBlock(Ct),Hn=le.getClosestInline(Ct),br=le.getParent(bn.key),ei=br.nodes.indexOf(bn),mi=Kn(Ee,Y);if(mi==="before")Ee.insertNodeByKey(br.key,ei,z);else if(mi==="behind")Ee.insertNodeByKey(br.key,ei+1,z);else{if(Hn&&Ee.isVoid(Hn)){var Li=Je.isAtEndOfNode(Hn),na=Li?le.getNextText(Ct):le.getPreviousText(Ct),ji=Li?Y.moveToStartOfNode(na):Y.moveToEndOfNode(na);Ct=ji.start.key,Vt=ji.start.offset}Ee.withoutNormalizing(function(){Ee.splitDescendantsByKey(bn.key,Ct,Vt),Ee.insertNodeByKey(br.key,ei+1,z)})}};var Kn=function(Y,z){var B=Y.value,le=B.document,Le=z.start,Je=Le.key,Ct=le.getClosestBlock(Je),Vt=le.getClosestInline(Je);return Y.isVoid(Ct)?Le.isAtEndOfNode(Ct)?"behind":"before":!Vt&&Ct.text===""?"behind":Le.isAtStartOfNode(Ct)?"before":Le.isAtEndOfNode(Ct)?"behind":"split"};mn.insertFragmentAtRange=function(Ee,Y,z){Ee.withoutNormalizing(function(){if(Y=dn(Ee,Y),!!z.nodes.size){z=z.mapDescendants(function(tn){return tn.regenerateKey()});var B=Y,le=B.start,Le=Ee.value,Je=Le.document,Ct=Je.getDescendant(le.path),Vt=Je.getClosestBlock(Ct.key),bn=Vt.getFurthestChild(Ct.key),Hn=le.isAtStartOfNode(Vt),br=Je.getParent(Vt.key),ei=br.nodes.indexOf(Vt),mi=z.getBlocks(),Li=z.nodes.first(),na=z.nodes.last(),ji=mi.first(),$a=mi.last(),Ha=Dn(z,Je,Vt.key);if(ji===$a&&Ee.isVoid(ji)){Ee.insertBlockAtRange(Y,ji);return}if(Ha===z&&(Li.hasBlockChildren()||na.hasBlockChildren())){var Eo=Kn(Ee,Y),Uo=Eo==="before"?z.nodes:z.nodes.reverse();Uo.forEach(function(tn){Ee.insertBlockAtRange(Y,tn)});return}if(ji!==$a){var Ms=Ha.getFurthest(ji.key,function(tn){return tn.nodes.size===1}),er=Ms||ji,Ar=br.nodes.indexOf(Vt),Kr=Ha.removeNode(er.key);Kr.nodes.forEach(function(tn,cn){var nr=Ar+cn+1;Ee.insertNodeByKey(br.key,nr,tn)})}if(le.offset!==0&&Ee.splitDescendantsByKey(bn.key,le.key,le.offset),Je=Ee.value.document,Ct=Je.getDescendant(le.key),Vt=Je.getClosestBlock(le.key),bn=Vt.getFurthestChild(Ct.key),ji!==$a){var ur=Hn?bn:Vt.getNextSibling(bn.key),Gr=ur?Vt.nodes.skipUntil(function(tn){return tn.key===ur.key}):(0,i.List)(),Pi=$a.nodes.size;Gr.forEach(function(tn,cn){var nr=Pi+cn;Ee.moveNodeByKey(tn.key,$a.key,nr)})}if(!Ee.isVoid(Vt)&&Vt.text===""&&!Vt.findDescendant(function(tn){return Ee.isVoid(tn)}))Ee.removeNodeByKey(Vt.key),Ee.insertNodeByKey(br.key,ei,ji);else{var aa=Vt.getFurthestChild(Ct.key),Fa=Vt.nodes.indexOf(aa);ji.nodes.forEach(function(tn,cn){var nr=le.offset===0?0:1,ir=Fa+cn+nr;Ee.insertNodeByKey(Vt.key,ir,tn)})}}})};var Dn=function(Y,z,B){var le=function(ei){for(var mi=ei;mi.nodes.size===1&&mi.nodes.first().object==="block";)mi=mi.nodes.first();return mi===ei?null:mi},Le=function(ei,mi){return mi.size>=ei.size&&ei.every(function(Li,na){return mi.get(na).type===Li.type})},Je=function(ei,mi){var Li=ei.size-mi.size;if(Li<0)return Y;for(var na=0;na<mi.size;na++)for(var ji=0;ji<=Li;ji++)if(Le(mi.slice(na),ei.slice(ji)))return mi.get(na);return Y},Ct=function(ei,mi){return ei.getAncestors(mi).slice(1).push(ei.getNode(mi)).reverse()},Vt=le(Y);if(!Vt)return Y;var bn=Ct(z,B),Hn=Ct(Y,Vt.key);return Je(bn,Hn)};mn.insertInlineAtRange=function(Ee,Y,z){z=mt.create(z),Ee.withoutNormalizing(function(){Y=dn(Ee,Y);var B=Ee.value,le=B.document,Le=Y,Je=Le.start,Ct=le.getParent(Je.path),Vt=le.assertDescendant(Je.path),bn=Ct.nodes.indexOf(Vt);Ee.isVoid(Ct)||(Ee.splitNodeByPath(Je.path,Je.offset),Ee.insertNodeByKey(Ct.key,bn+1,z))})},mn.insertTextAtRange=function(Ee,Y,z,B){Ee.withoutNormalizing(function(){Y=dn(Ee,Y);var le=Ee.value,Le=le.document,Je=Y,Ct=Je.start,Vt=Ct.offset,bn=Le.getParent(Ct.path);Ee.isVoid(bn)||Ee.insertTextByPath(Ct.path,Vt,z,B)})},mn.removeMarkAtRange=function(Ee,Y,z){if(!Y.isCollapsed){var B=Ee.value,le=B.document,Le=le.getTextsAtRange(Y),Je=Y.start,Ct=Y.end;Ee.withoutNormalizing(function(){Le.forEach(function(Vt){var bn=Vt.key,Hn=0,br=Vt.text.length;bn===Je.key&&(Hn=Je.offset),bn===Ct.key&&(br=Ct.offset),bn===Je.key&&bn===Ct.key&&(br=Ct.offset-Je.offset),Ee.removeMarkByKey(bn,Hn,br,z)})})}},mn.setBlocksAtRange=function(Ee,Y,z){var B=Ee.value,le=B.document,Le=le.getLeafBlocksAtRange(Y),Je=Y.start,Ct=Y.end,Vt=Y.isCollapsed,bn=le.hasVoidParent(Je.path,Ee),Hn=le.getClosestBlock(Je.path),br=le.getClosestBlock(Ct.key),ei=Vt===!1&&Je.offset===0&&Ct.offset===0&&bn===!1&&Je.key===Hn.getFirstText().key&&Ct.key===br.getFirstText().key,mi=ei?Le.slice(0,-1):Le;Ee.withoutNormalizing(function(){mi.forEach(function(Li){Ee.setNodeByKey(Li.key,z)})})},mn.setInlinesAtRange=function(Ee,Y,z){var B=Ee.value,le=B.document,Le=le.getLeafInlinesAtRange(Y);Ee.withoutNormalizing(function(){Le.forEach(function(Je){Ee.setNodeByKey(Je.key,z)})})},mn.splitBlockAtRange=function(Ee,Y){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;Y=dn(Ee,Y);for(var B=Y,le=B.start,Le=B.end,Je=Ee.value,Ct=Je,Vt=Ct.document,bn=Vt.assertDescendant(le.path),Hn=Vt.getClosestBlock(bn.key),br=0;Hn&&Hn.object==="block"&&br<z;)bn=Hn,Hn=Vt.getClosestBlock(Hn.key),br++;Ee.withoutNormalizing(function(){if(Ee.splitDescendantsByKey(bn.key,le.path,le.offset),Je=Ee.value,Vt=Je.document,Y.isExpanded){Y.isBackward&&(Y=Y.flip());var ei=Vt.getNextBlock(bn.key);Y=Y.moveAnchorToStartOfNode(ei),Y=Y.setFocus(Y.focus.setPath(null)),le.path.equals(Le.path)&&(Y=Y.moveFocusTo(Y.anchor.key,Le.offset-le.offset)),Y=Vt.resolveRange(Y),Ee.deleteAtRange(Y)}})},mn.splitInlineAtRange=function(Ee,Y){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1/0;Y=dn(Ee,Y);for(var B=Y,le=B.start,Le=Ee.value,Je=Le.document,Ct=Je.assertDescendant(le.path),Vt=Je.getClosestInline(Ct.key),bn=0;Vt&&Vt.object==="inline"&&bn<z;)Ct=Vt,Vt=Je.getClosestInline(Vt.key),bn++;Ee.splitDescendantsByKey(Ct.key,le.path,le.offset)},mn.toggleMarkAtRange=function(Ee,Y,z){if(!Y.isCollapsed){z=qe.create(z);var B=Ee.value,le=B.document,Le=le.getActiveMarksAtRange(Y),Je=Le.some(function(Ct){return Ct.equals(z)});Je?Ee.removeMarkAtRange(Y,z):Ee.addMarkAtRange(Y,z)}},mn.unwrapBlockAtRange=function(Ee,Y,z){z=Yt.createProperties(z);var B=Ee.value,le=B.document,Le=le.getLeafBlocksAtRange(Y),Je=Le.map(function(Ct){return le.getClosest(Ct.key,function(Vt){return!(Vt.object!=="block"||z.type!=null&&Vt.type!==z.type||z.data!=null&&!Vt.data.isSuperset(z.data))})}).filter(function(Ct){return Ct}).toOrderedSet().toList();Ee.withoutNormalizing(function(){Je.forEach(function(Ct){var Vt=Ct.nodes.first(),bn=Ct.nodes.last(),Hn=Ee.value.document.getParent(Ct.key),br=Hn.nodes.indexOf(Ct),ei=Ct.nodes.filter(function(ji){return Le.some(function($a){return ji===$a||ji.hasDescendant($a.key)})}),mi=ei.first(),Li=ei.last();if(Vt===mi&&bn===Li)Ct.nodes.forEach(function(ji,$a){Ee.moveNodeByKey(ji.key,Hn.key,br+$a)}),Ee.removeNodeByKey(Ct.key);else if(bn===Li)Ct.nodes.skipUntil(function(ji){return ji===mi}).forEach(function(ji,$a){Ee.moveNodeByKey(ji.key,Hn.key,br+1+$a)});else if(Vt===mi)Ct.nodes.takeUntil(function(ji){return ji===Li}).push(Li).forEach(function(ji,$a){Ee.moveNodeByKey(ji.key,Hn.key,br+$a)});else{var na=mi.getFirstText();Ee.splitDescendantsByKey(Ct.key,na.key,0),le=Ee.value.document,ei.forEach(function(ji,$a){if($a===0){var Ha=ji;ji=le.getNextBlock(ji.key),Ee.removeNodeByKey(Ha.key)}Ee.moveNodeByKey(ji.key,Hn.key,br+1+$a)})}})})},mn.unwrapInlineAtRange=function(Ee,Y,z){z=Yt.createProperties(z);var B=Ee.value,le=B.document,Le=le.getTextsAtRange(Y),Je=Le.map(function(Ct){return le.getClosest(Ct.key,function(Vt){return!(Vt.object!=="inline"||z.type!=null&&Vt.type!==z.type||z.data!=null&&!Vt.data.isSuperset(z.data))})}).filter(function(Ct){return Ct}).toOrderedSet().toList();Ee.withoutNormalizing(function(){Je.forEach(function(Ct){var Vt=Ee.value.document.getParent(Ct.key),bn=Vt.nodes.indexOf(Ct);Ct.nodes.forEach(function(Hn,br){Ee.moveNodeByKey(Hn.key,Vt.key,bn+br)}),Ee.removeNodeByKey(Ct.key)})})},mn.wrapBlockAtRange=function(Ee,Y,z){z=Lt.create(z),z=z.set("nodes",z.nodes.clear());var B=Ee.value,le=B.document,Le=le.getLeafBlocksAtRange(Y),Je=Le.first(),Ct=Le.last(),Vt=void 0,bn=void 0,Hn=void 0;if(Le.length===1?(Vt=le.getParent(Je.key),bn=Le):Vt=le.getClosest(Je.key,function(ei){return!!le.getClosest(Ct.key,function(mi){return ei===mi})}),Vt==null&&(Vt=le),bn==null){var br=Vt.nodes.reduce(function(ei,mi,Li){return(mi===Je||mi.hasDescendant(Je.key))&&(ei[0]=Li),(mi===Ct||mi.hasDescendant(Ct.key))&&(ei[1]=Li),ei},[]);Hn=br[0],bn=Vt.nodes.slice(br[0],br[1]+1)}Hn==null&&(Hn=Vt.nodes.indexOf(bn.first())),Ee.withoutNormalizing(function(){Ee.insertNodeByKey(Vt.key,Hn,z),bn.forEach(function(ei,mi){Ee.moveNodeByKey(ei.key,z.key,mi)})})},mn.wrapInlineAtRange=function(Ee,Y,z){var B=Ee.value,le=B.document,Le=Y.start,Je=Y.end;if(Y.isCollapsed){var Ct=le.getClosestInline(Le.path);return!Ct||!Ee.isVoid(Ct)?void 0:Ee.wrapInlineByKey(Ct.key,z)}z=mt.create(z),z=z.set("nodes",z.nodes.clear());var Vt=le.getLeafBlocksAtRange(Y),bn=le.getClosestBlock(Le.path),Hn=le.getClosestBlock(Je.path),br=le.getClosestInline(Le.path),ei=le.getClosestInline(Je.path),mi=bn.getFurthestChild(Le.key),Li=Hn.getFurthestChild(Je.key);Ee.withoutNormalizing(function(){(!br||br!==ei)&&(Ee.splitDescendantsByKey(Li.key,Je.key,Je.offset),Ee.splitDescendantsByKey(mi.key,Le.key,Le.offset)),le=Ee.value.document,bn=le.getDescendant(bn.key),Hn=le.getDescendant(Hn.key),mi=bn.getFurthestChild(Le.key),Li=Hn.getFurthestChild(Je.key);var na=bn.nodes.indexOf(mi),ji=Hn.nodes.indexOf(Li);if(br&&br===ei){var $a=bn.getTextsAtRange(Y).map(function(Pi){return Le.key===Pi.key&&Je.key===Pi.key?Pi.splitText(Le.offset)[1].splitText(Je.offset-Le.offset)[0].regenerateKey():Le.key===Pi.key?Pi.splitText(Le.offset)[1].regenerateKey():Je.key===Pi.key?Pi.splitText(Je.offset)[0].regenerateKey():Pi.regenerateKey()});z=z.set("nodes",$a),Ee.insertInlineAtRange(Y,z)}else if(bn===Hn){le=Ee.value.document,bn=le.getClosestBlock(Le.key),mi=bn.getFurthestChild(Le.key);var Ha=le.getNextSibling(mi.key),Eo=bn.nodes.indexOf(Ha),Uo=Le.key===Je.key?Ha:bn.getFurthestChild(Je.key),Ms=bn.nodes.skipUntil(function(Pi){return Pi===Ha}).takeUntil(function(Pi){return Pi===Uo}).push(Uo),er=z.regenerateKey();Ee.insertNodeByKey(bn.key,Eo,er),Ms.forEach(function(Pi,aa){Ee.moveNodeByKey(Pi.key,er.key,aa)})}else{var Ar=bn.nodes.slice(na+1),Kr=Hn.nodes.slice(0,ji+1),ur=z.regenerateKey(),Gr=z.regenerateKey();Ee.insertNodeByKey(bn.key,na+1,ur),Ee.insertNodeByKey(Hn.key,ji,Gr),Ar.forEach(function(Pi,aa){Ee.moveNodeByKey(Pi.key,ur.key,aa)}),Kr.forEach(function(Pi,aa){Ee.moveNodeByKey(Pi.key,Gr.key,aa)}),Vt.slice(1,-1).forEach(function(Pi){var aa=z.regenerateKey();Ee.insertNodeByKey(Pi.key,0,aa),Pi.nodes.forEach(function(Fa,tn){Ee.moveNodeByKey(Fa.key,aa.key,tn)})})}})},mn.wrapTextAtRange=function(Ee,Y,z){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:z,le=Y.start,Le=Y.end,Je=Y.moveToStart(),Ct=Y.moveToEnd();le.path.equals(Le.path)&&(Ct=Ct.moveForward(z.length)),Ee.withoutNormalizing(function(){Ee.insertTextAtRange(Je,z),Ee.insertTextAtRange(Ct,B)})};var Vn={};Vn.addMarkByPath=function(Ee,Y,z,B,le){le=qe.create(le),Ee.addMarksByPath(Y,z,B,[le])},Vn.addMarksByPath=function(Ee,Y,z,B,le){if(le=qe.createSet(le),!!le.size){var Le=Ee.value,Je=Le.document,Ct=Je.assertNode(Y);Ee.withoutNormalizing(function(){z+B<Ct.text.length&&Ee.splitNodeByPath(Y,z+B),z>0&&(Ee.splitNodeByPath(Y,z),Y=ue.increment(Y),z=0),le.forEach(function(Vt){Ee.applyOperation({type:"add_mark",path:Y,mark:qe.create(Vt)})})})}},Vn.replaceMarksByPath=function(Ee,Y,z,B,le){var Le=qe.createSet(le),Je=Ee.value,Ct=Je.document,Vt=Ct.assertNode(Y);Vt.marks.equals(Le)||Ee.withoutNormalizing(function(){z+B<Vt.text.length&&Ee.splitNodeByPath(Y,z+B),z>0&&(Ee.splitNodeByPath(Y,z),Y=ue.increment(Y),z=0);var bn=Le.subtract(Vt.marks),Hn=Vt.marks.subtract(Le);Hn.forEach(function(br){Ee.applyOperation({type:"remove_mark",path:Y,mark:qe.create(br)})}),bn.forEach(function(br){Ee.applyOperation({type:"add_mark",path:Y,mark:qe.create(br)})})})},Vn.insertFragmentByPath=function(Ee,Y,z,B){B.nodes.forEach(function(le,Le){Ee.insertNodeByPath(Y,z+Le,le)})},Vn.insertNodeByPath=function(Ee,Y,z,B){Ee.applyOperation({type:"insert_node",path:Y.concat(z),node:B})},Vn.insertTextByPath=function(Ee,Y,z,B,le){var Le=Ee.value,Je=Le.annotations,Ct=Le.document;Ct.assertNode(Y),Ee.withoutNormalizing(function(){var Vt=!0,bn=!1,Hn=void 0;try{for(var br=Je.values()[Symbol.iterator](),ei;!(Vt=(ei=br.next()).done);Vt=!0){var mi=ei.value,Li=mi.start,na=mi.end,ji=Ee.isAtomic(mi);ji&&Li.path.equals(Y)&&Li.offset<z&&(!na.path.equals(Y)||na.offset>z)&&Ee.removeAnnotation(mi)}}catch($a){bn=!0,Hn=$a}finally{try{!Vt&&br.return&&br.return()}finally{if(bn)throw Hn}}Ee.applyOperation({type:"insert_text",path:Y,offset:z,text:B}),le&&Ee.replaceMarksByPath(Y,z,B.length,le)})},Vn.mergeNodeByPath=function(Ee,Y){var z=Ee.value,B=z.document,le=B.getDescendant(Y),Le=B.getPreviousSibling(Y);if(!Le)throw new Error('Unable to merge node with path "'+Y+'", because it has no previous sibling.');var Je=Le.object==="text"?Le.text.length:Le.nodes.size;Ee.applyOperation({type:"merge_node",path:Y,position:Je,properties:{type:le.type,data:le.data},target:null})},Vn.moveNodeByPath=function(Ee,Y,z,B){if(ue.isEqual(Y,z))return Ee;var le=z.concat(B);if(ue.isEqual(Y,le))return Ee;Ee.applyOperation({type:"move_node",path:Y,newPath:le})},Vn.removeMarkByPath=function(Ee,Y,z,B,le){le=qe.create(le),Ee.removeMarksByPath(Y,z,B,[le])},Vn.removeMarksByPath=function(Ee,Y,z,B,le){if(le=qe.createSet(le),!!le.size){var Le=Ee.value,Je=Le.document,Ct=Je.assertNode(Y);le.intersect(Ct.marks).isEmpty()||Ee.withoutNormalizing(function(){z+B<Ct.text.length&&Ee.splitNodeByPath(Y,z+B),z>0&&(Ee.splitNodeByPath(Y,z),Y=ue.increment(Y),z=0),le.forEach(function(Vt){Ee.applyOperation({type:"remove_mark",path:Y,offset:z,length:B,mark:Vt})})})}},Vn.removeAllMarksByPath=function(Ee,Y){var z=Ee.state,B=z.document,le=B.assertNode(Y);Ee.withoutNormalizing(function(){if(le.object==="text"){Ee.removeMarksByPath(Y,0,le.text.length,le.marks);return}var Le=!0,Je=!1,Ct=void 0;try{for(var Vt=le.texts()[Symbol.iterator](),bn;!(Le=(bn=Vt.next()).done);Le=!0){var Hn=bn.value,br=J(Hn,2),ei=br[0],mi=br[1],Li=Y.concat(mi);Ee.removeMarksByPath(Li,0,ei.text.length,ei.marks)}}catch(na){Je=!0,Ct=na}finally{try{!Le&&Vt.return&&Vt.return()}finally{if(Je)throw Ct}}})},Vn.removeNodeByPath=function(Ee,Y){var z=Ee.value,B=z.document,le=B.assertNode(Y);Ee.applyOperation({type:"remove_node",path:Y,node:le})},Vn.removeTextByPath=function(Ee,Y,z,B){var le=Ee.value,Le=le.document,Je=le.annotations,Ct=Le.assertNode(Y),Vt=Ct.text.slice(z,z+B);Ee.withoutNormalizing(function(){var bn=!0,Hn=!1,br=void 0;try{for(var ei=Je.values()[Symbol.iterator](),mi;!(bn=(mi=ei.next()).done);bn=!0){var Li=mi.value,na=Li.start,ji=Li.end,$a=Ee.isAtomic(Li);$a&&na.path.equals(Y)&&na.offset<z&&(!ji.path.equals(Y)||ji.offset>z)&&Ee.removeAnnotation(Li)}}catch(Ha){Hn=!0,br=Ha}finally{try{!bn&&ei.return&&ei.return()}finally{if(Hn)throw br}}Ee.applyOperation({type:"remove_text",path:Y,offset:z,text:Vt})})},Vn.replaceNodeByPath=function(Ee,Y,z){z=Yt.create(z);var B=Y.last(),le=ue.lift(Y);Ee.withoutNormalizing(function(){Ee.removeNodeByPath(Y),Ee.insertNodeByPath(le,B,z)})},Vn.replaceTextByPath=function(Ee,Y,z,B,le,Le){Ee.withoutNormalizing(function(){Ee.removeTextByPath(Y,z,B),Ee.insertTextByPath(Y,z,le,Le)})},Vn.setMarkByPath=function(Ee,Y,z,B,le,Le){le=qe.create(le),Le=qe.createProperties(Le);var Je=Ee.value,Ct=Je.document,Vt=Ct.assertNode(Y);Ee.withoutNormalizing(function(){z+B<Vt.text.length&&Ee.splitNodeByPath(Y,z+B),z>0&&(Ee.splitNodeByPath(Y,z),Y=ue.increment(Y),z=0),Ee.applyOperation({type:"set_mark",path:Y,properties:le,newProperties:Le})})},Vn.setNodeByPath=function(Ee,Y,z){var B=Ee.value,le=B.document,Le=le.assertNode(Y);z=Yt.createProperties(z);var Je=y()(Le,Object.keys(z));Ee.applyOperation({type:"set_node",path:Y,properties:Je,newProperties:z})},Vn.setTextByPath=function(Ee,Y,z,B){var le=Ee.value,Le=le.document,Je=Le.assertNode(Y),Ct=Je.text.length;Ee.replaceTextByPath(Y,0,Ct,z,B)},Vn.splitNodeByPath=function(Ee,Y,z){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},le=B.target,Le=le===void 0?null:le,Je=Ee.value,Ct=Je.document,Vt=Ct.getDescendant(Y);Ee.applyOperation({type:"split_node",path:Y,position:z,target:Le,properties:{type:Vt.type,data:Vt.data}})},Vn.splitDescendantsByPath=function(Ee,Y,z,B){if(Y.equals(z)){Ee.splitNodeByPath(z,B);return}var le=Ee.value,Le=le.document,Je=B,Ct=z;Ee.withoutNormalizing(function(){Ee.splitNodeByKey(z,B);var Vt=!0,bn=!1,Hn=void 0;try{for(var br=Le.ancestors(z)[Symbol.iterator](),ei;!(Vt=(ei=br.next()).done);Vt=!0){var mi=ei.value,Li=J(mi,2),na=Li[1],ji=Je;if(Je=Ct.last()+1,Ct=na,Ee.splitNodeByPath(na,Je,{target:ji}),na.equals(Y))break}}catch($a){bn=!0,Hn=$a}finally{try{!Vt&&br.return&&br.return()}finally{if(bn)throw Hn}}})},Vn.unwrapInlineByPath=function(Ee,Y,z){var B=Ee.value,le=B.document,Le=B.selection,Je=le.assertNode(Y),Ct=Je.getFirstText(),Vt=Je.getLastText(),bn=Le.moveToRangeOfNode(Ct,Vt);Ee.unwrapInlineAtRange(bn,z)},Vn.unwrapBlockByPath=function(Ee,Y,z){var B=Ee.value,le=B.document,Le=B.selection,Je=le.assertNode(Y),Ct=Je.getFirstText(),Vt=Je.getLastText(),bn=Le.moveToRangeOfNode(Ct,Vt);Ee.unwrapBlockAtRange(bn,z)},Vn.unwrapNodeByPath=function(Ee,Y){var z=Ee.value,B=z.document;B.assertNode(Y);var le=ue.lift(Y),Le=B.assertNode(le),Je=Y.last(),Ct=le.last(),Vt=ue.lift(le),bn=Je===0,Hn=Je===Le.nodes.size-1;Ee.withoutNormalizing(function(){if(Le.nodes.size===1)Ee.moveNodeByPath(Y,Vt,Ct+1),Ee.removeNodeByPath(le);else if(bn)Ee.moveNodeByPath(Y,Vt,Ct);else if(Hn)Ee.moveNodeByPath(Y,Vt,Ct+1);else{var br=ue.increment(Y,1,le.size-1);br=br.set(br.size-1,0),Ee.splitNodeByPath(le,Je),Ee.moveNodeByPath(br,Vt,Ct+1)}})},Vn.unwrapChildrenByPath=function(Ee,Y){Y=ue.create(Y);var z=Ee.value,B=z.document,le=B.assertNode(Y),Le=ue.lift(Y),Je=Y.last(),Ct=le.nodes;Ee.withoutNormalizing(function(){Ct.reverse().forEach(function(Vt,bn){var Hn=Ct.size-bn-1,br=Y.push(Hn);Ee.moveNodeByPath(br,Le,Je+1)}),Ee.removeNodeByPath(Y)})},Vn.wrapBlockByPath=function(Ee,Y,z){z=Lt.create(z),z=z.set("nodes",z.nodes.clear());var B=ue.lift(Y),le=Y.last(),Le=ue.increment(Y);Ee.withoutNormalizing(function(){Ee.insertNodeByPath(B,le,z),Ee.moveNodeByPath(Le,Y,0)})},Vn.wrapInlineByPath=function(Ee,Y,z){z=mt.create(z),z=z.set("nodes",z.nodes.clear());var B=ue.lift(Y),le=Y.last(),Le=ue.increment(Y);Ee.withoutNormalizing(function(){Ee.insertNodeByPath(B,le,z),Ee.moveNodeByPath(Le,Y,0)})},Vn.wrapNodeByPath=function(Ee,Y,z){z=Yt.create(z),z.object==="block"?Ee.wrapBlockByPath(Y,z):z.object==="inline"&&Ee.wrapInlineByPath(Y,z)};var or=["addMark","insertFragment","insertNode","insertText","mergeNode","removeAllMarks","removeMark","removeNode","removeText","replaceMarks","replaceNode","replaceText","setMark","setNode","setText","splitNode","unwrapBlock","unwrapChildren","unwrapInline","unwrapNode","wrapBlock","wrapInline","wrapNode"],Qr=function(Y){Vn[Y+"ByKey"]=function(z,B){for(var le=arguments.length,Le=Array(le>2?le-2:0),Je=2;Je<le;Je++)Le[Je-2]=arguments[Je];var Ct=z.value,Vt=Ct.document,bn=Vt.assertPath(B);z[Y+"ByPath"].apply(z,[bn].concat(Le))}},ni=!0,yr=!1,si=void 0;try{for(var Yr=or[Symbol.iterator](),Ci;!(ni=(Ci=Yr.next()).done);ni=!0){var Ni=Ci.value;Qr(Ni)}}catch(Ee){yr=!0,si=Ee}finally{try{!ni&&Yr.return&&Yr.return()}finally{if(yr)throw si}}Vn.moveNodeByKey=function(Ee,Y,z){for(var B=arguments.length,le=Array(B>3?B-3:0),Le=3;Le<B;Le++)le[Le-3]=arguments[Le];var Je=Ee.value,Ct=Je.document,Vt=Ct.assertPath(Y),bn=Ct.assertPath(z);Ee.moveNodeByPath.apply(Ee,[Vt,bn].concat(le))},Vn.splitDescendantsByKey=function(Ee,Y,z){for(var B=arguments.length,le=Array(B>3?B-3:0),Le=3;Le<B;Le++)le[Le-3]=arguments[Le];var Je=Ee.value,Ct=Je.document,Vt=Ct.assertPath(Y),bn=Ct.assertPath(z);Ee.splitDescendantsByPath.apply(Ee,[Vt,bn].concat(le))};var fa={};fa.save=function(Ee,Y){var z=Ee.operations,B=Ee.value,le=B.data,Le=Ee.tmp,Je=Le.save,Ct=Le.merge;if(!(Je===!1||!Ca(Y))){var Vt=le.get("undos")||(0,i.List)(),bn=Vt.last(),Hn=bn&&bn.last();if(Ct==null&&(z.size!==0?Ct=!0:Ct=ha(Y,Hn)),Ct&&bn){var br=bn.push(Y);Vt=Vt.pop(),Vt=Vt.push(br)}else{var ei=(0,i.List)([Y]);Vt=Vt.push(ei)}Vt.size>100&&(Vt=Vt.takeLast(100)),Ee.withoutSaving(function(){var mi=(0,i.List)(),Li=le.set("undos",Vt).set("redos",mi);Ee.setData(Li)})}},fa.redo=function(Ee){var Y=Ee.value,z=Y.data,B=z.get("redos")||(0,i.List)(),le=z.get("undos")||(0,i.List)(),Le=B.last();Le&&Ee.withoutSaving(function(){Ee.withoutNormalizing(function(){Le.forEach(function(Ct){var Vt=Ct,bn=Vt.type,Hn=Vt.newProperties;bn==="set_selection"&&(Ct=Ct.set("newProperties",E()(Hn,"isFocused"))),Ee.applyOperation(Ct)}),B=B.pop(),le=le.push(Le);var Je=z.set("undos",le).set("redos",B);Ee.setData(Je)})})},fa.undo=function(Ee){var Y=Ee.value,z=Y.data,B=z.get("redos")||(0,i.List)(),le=z.get("undos")||(0,i.List)(),Le=le.last();Le&&Ee.withoutSaving(function(){Ee.withoutNormalizing(function(){Le.slice().reverse().map(function(Ct){return Ct.invert()}).forEach(function(Ct){var Vt=Ct,bn=Vt.type,Hn=Vt.newProperties;bn==="set_selection"&&(Ct=Ct.set("newProperties",E()(Hn,"isFocused"))),Ee.applyOperation(Ct)}),B=B.push(Le),le=le.pop();var Je=z.set("undos",le).set("redos",B);Ee.setData(Je)})})},fa.withoutMerging=function(Ee,Y){var z=Ee.tmp.merge;Ee.tmp.merge=!1,Y(Ee),Ee.tmp.merge=z},fa.withoutSaving=function(Ee,Y){var z=Ee.tmp.save;Ee.tmp.save=!1,Y(Ee),Ee.tmp.save=z};function ha(Ee,Y){if(!Y)return!1;var z=Ee.type==="set_selection"&&Y.type==="set_selection"||Ee.type==="insert_text"&&Y.type==="insert_text"&&Ee.offset===Y.offset+Y.text.length&&Ee.path.equals(Y.path)||Ee.type==="remove_text"&&Y.type==="remove_text"&&Ee.offset+Ee.text.length===Y.offset&&Ee.path.equals(Y.path);return z}function Ca(Ee){if(Ee.type==="set_selection"){var Y=Ee.newProperties,z=Y.isFocused,B=Y.anchor,le=Y.focus;if(z!==void 0&&!B&&!le)return!1}return!0}var li={};li.blur=function(Ee){Ee.select({isFocused:!1})},li.deselect=function(Ee){var Y=Ae.create();Ee.select(Y)},li.focus=function(Ee){Ee.select({isFocused:!0})},li.flip=function(Ee){Ee.command(la,"flip")},li.moveAnchorBackward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[vo,"anchor"].concat(z))},li.moveAnchorWordBackward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[_r,"anchor"].concat(z))},li.moveAnchorForward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[Qn,"anchor"].concat(z))},li.moveAnchorWordForward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[$r,"anchor"].concat(z))},li.moveAnchorTo=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveAnchorTo"].concat(z))},li.moveAnchorToEndOfBlock=function(Ee){Ee.command(Oa,"anchor","end","block")},li.moveAnchorToEndOfInline=function(Ee){Ee.command(Oa,"anchor","end","inline")},li.moveAnchorToEndOfDocument=function(Ee){Ee.moveAnchorToEndOfNode(Ee.value.document).moveToAnchor()},li.moveAnchorToEndOfNextBlock=function(Ee){Ee.command(wa,"anchor","end","next","block")},li.moveAnchorToEndOfNextInline=function(Ee){Ee.command(wa,"anchor","end","next","inline")},li.moveAnchorToEndOfNextText=function(Ee){Ee.command(wa,"anchor","end","next","text")},li.moveAnchorToEndOfNode=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveAnchorToEndOfNode"].concat(z))},li.moveAnchorToEndOfPreviousBlock=function(Ee){Ee.command(wa,"anchor","end","previous","block")},li.moveAnchorToEndOfPreviousInline=function(Ee){Ee.command(wa,"anchor","end","previous","inline")},li.moveAnchorToEndOfPreviousText=function(Ee){Ee.command(wa,"anchor","end","previous","text")},li.moveAnchorToEndOfText=function(Ee){Ee.command(Oa,"anchor","end","text")},li.moveAnchorToStartOfBlock=function(Ee){Ee.command(Oa,"anchor","start","block")},li.moveAnchorToStartOfDocument=function(Ee){Ee.moveAnchorToStartOfNode(Ee.value.document).moveToAnchor()},li.moveAnchorToStartOfInline=function(Ee){Ee.command(Oa,"anchor","start","inline")},li.moveAnchorToStartOfNextBlock=function(Ee){Ee.command(wa,"anchor","start","next","block")},li.moveAnchorToStartOfNextInline=function(Ee){Ee.command(wa,"anchor","start","next","inline")},li.moveAnchorToStartOfNextText=function(Ee){Ee.command(wa,"anchor","start","next","text")},li.moveAnchorToStartOfNode=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveAnchorToStartOfNode"].concat(z))},li.moveAnchorToStartOfPreviousBlock=function(Ee){Ee.command(wa,"anchor","start","previous","block")},li.moveAnchorToStartOfPreviousInline=function(Ee){Ee.command(wa,"anchor","start","previous","inline")},li.moveAnchorToStartOfPreviousText=function(Ee){Ee.command(wa,"anchor","start","previous","text")},li.moveAnchorToStartOfText=function(Ee){Ee.command(Oa,"anchor","start","text")},li.moveBackward=function(Ee){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(Y!==0){var z=Ee.value,B=z.document,le=z.selection,Le=le.start,Je=B.getClosestBlock(Le.key),Ct=Je.getOffset(Le.key),Vt=Ct+Le.offset,bn=Je.text,Hn=Tt.getCharOffsetBackward(bn,Vt,Y);Ee.moveAnchorBackward(Hn).moveFocusBackward(Hn)}},li.moveWordBackward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.moveFocusWordBackward.apply(Ee,z).moveToFocus()},li.moveEndBackward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[vo,"end"].concat(z))},li.moveEndWordBackward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[_r,"end"].concat(z))},li.moveEndForward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[Qn,"end"].concat(z))},li.moveEndWordForward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[$r,"end"].concat(z))},li.moveEndTo=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveEndTo"].concat(z))},li.moveEndToEndOfBlock=function(Ee){Ee.command(Oa,"end","end","block")},li.moveEndToEndOfDocument=function(Ee){Ee.moveEndToEndOfNode(Ee.value.document).moveToEnd()},li.moveEndToEndOfInline=function(Ee){Ee.command(Oa,"end","end","inline")},li.moveEndToEndOfNextBlock=function(Ee){Ee.command(wa,"end","end","next","block")},li.moveEndToEndOfNextInline=function(Ee){Ee.command(wa,"end","end","next","inline")},li.moveEndToEndOfNextText=function(Ee){Ee.command(wa,"end","end","next","text")},li.moveEndToEndOfNode=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveEndToEndOfNode"].concat(z))},li.moveEndToEndOfPreviousBlock=function(Ee){Ee.command(wa,"end","end","previous","block")},li.moveEndToEndOfPreviousInline=function(Ee){Ee.command(wa,"end","end","previous","inline")},li.moveEndToEndOfPreviousText=function(Ee){Ee.command(wa,"end","end","previous","text")},li.moveEndToEndOfText=function(Ee){Ee.command(Oa,"end","end","text")},li.moveEndToStartOfBlock=function(Ee){Ee.command(Oa,"end","start","block")},li.moveEndToStartOfDocument=function(Ee){Ee.moveEndToStartOfNode(Ee.value.document).moveToEnd()},li.moveEndToStartOfInline=function(Ee){Ee.command(Oa,"end","start","inline")},li.moveEndToStartOfNextBlock=function(Ee){Ee.command(wa,"end","start","next","block")},li.moveEndToStartOfNextInline=function(Ee){Ee.command(wa,"end","start","next","inline")},li.moveEndToStartOfNextText=function(Ee){Ee.command(wa,"end","start","next","text")},li.moveEndToStartOfNode=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveEndToStartOfNode"].concat(z))},li.moveEndToStartOfPreviousBlock=function(Ee){Ee.command(wa,"end","start","previous","block")},li.moveEndToStartOfPreviousInline=function(Ee){Ee.command(wa,"end","start","previous","inline")},li.moveEndToStartOfPreviousText=function(Ee){Ee.command(wa,"end","start","previous","text")},li.moveEndToStartOfText=function(Ee){Ee.command(Oa,"end","start","text")},li.moveFocusBackward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[vo,"focus"].concat(z))},li.moveFocusWordBackward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[_r,"focus"].concat(z))},li.moveFocusForward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[Qn,"focus"].concat(z))},li.moveFocusWordForward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[$r,"focus"].concat(z))},li.moveFocusTo=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveFocusTo"].concat(z))},li.moveFocusToEndOfBlock=function(Ee){Ee.command(Oa,"focus","end","block")},li.moveFocusToEndOfDocument=function(Ee){Ee.moveFocusToEndOfNode(Ee.value.document).moveToFocus()},li.moveFocusToEndOfInline=function(Ee){Ee.command(Oa,"focus","end","inline")},li.moveFocusToEndOfNextBlock=function(Ee){Ee.command(wa,"focus","end","next","block")},li.moveFocusToEndOfNextInline=function(Ee){Ee.command(wa,"focus","end","next","inline")},li.moveFocusToEndOfNextText=function(Ee){Ee.command(wa,"focus","end","next","text")},li.moveFocusToEndOfNode=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveFocusToEndOfNode"].concat(z))},li.moveFocusToEndOfPreviousBlock=function(Ee){Ee.command(wa,"focus","end","previous","block")},li.moveFocusToEndOfPreviousInline=function(Ee){Ee.command(wa,"focus","end","previous","inline")},li.moveFocusToEndOfPreviousText=function(Ee){Ee.command(wa,"focus","end","previous","text")},li.moveFocusToEndOfText=function(Ee){Ee.command(Oa,"focus","end","text")},li.moveFocusToStartOfBlock=function(Ee){Ee.command(Oa,"focus","start","block")},li.moveFocusToStartOfDocument=function(Ee){Ee.moveFocusToStartOfNode(Ee.value.document).moveToFocus()},li.moveFocusToStartOfInline=function(Ee){Ee.command(Oa,"focus","start","inline")},li.moveFocusToStartOfNextBlock=function(Ee){Ee.command(wa,"focus","start","next","block")},li.moveFocusToStartOfNextInline=function(Ee){Ee.command(wa,"focus","start","next","inline")},li.moveFocusToStartOfNextText=function(Ee){Ee.command(wa,"focus","start","next","text")},li.moveFocusToStartOfNode=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveFocusToStartOfNode"].concat(z))},li.moveFocusToStartOfPreviousBlock=function(Ee){Ee.command(wa,"focus","start","previous","block")},li.moveFocusToStartOfPreviousInline=function(Ee){Ee.command(wa,"focus","start","previous","inline")},li.moveFocusToStartOfPreviousText=function(Ee){Ee.command(wa,"focus","start","previous","text")},li.moveFocusToStartOfText=function(Ee){Ee.command(Oa,"focus","start","text")},li.moveForward=function(Ee){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(Y!==0){var z=Ee.value,B=z.document,le=z.selection,Le=le.start,Je=B.getClosestBlock(Le.path),Ct=Je.getOffset(Le.key),Vt=Ct+Le.offset,bn=Je.text,Hn=Tt.getCharOffsetForward(bn,Vt,Y);Ee.moveAnchorForward(Hn).moveFocusForward(Hn)}},li.moveWordForward=function(Ee){for(var Y,z=arguments.length,B=Array(z>1?z-1:0),le=1;le<z;le++)B[le-1]=arguments[le];(Y=Ee.moveFocusWordForward.apply(Ee,B)).moveToFocus.apply(Y,B)},li.moveStartBackward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[vo,"start"].concat(z))},li.moveStartWordBackward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[_r,"start"].concat(z))},li.moveStartForward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[Qn,"start"].concat(z))},li.moveStartWordForward=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[$r,"start"].concat(z))},li.moveStartTo=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveStartTo"].concat(z))},li.moveStartToEndOfBlock=function(Ee){Ee.command(Oa,"start","end","block")},li.moveStartToEndOfDocument=function(Ee){Ee.moveStartToEndOfNode(Ee.value.document).moveToStart()},li.moveStartToEndOfInline=function(Ee){Ee.command(Oa,"start","end","inline")},li.moveStartToEndOfNextBlock=function(Ee){Ee.command(wa,"start","end","next","block")},li.moveStartToEndOfNextInline=function(Ee){Ee.command(wa,"start","end","next","inline")},li.moveStartToEndOfNextText=function(Ee){Ee.command(wa,"start","end","next","text")},li.moveStartToEndOfNode=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveStartToEndOfNode"].concat(z))},li.moveStartToEndOfPreviousBlock=function(Ee){Ee.command(wa,"start","end","previous","block")},li.moveStartToEndOfPreviousInline=function(Ee){Ee.command(wa,"start","end","previous","inline")},li.moveStartToEndOfPreviousText=function(Ee){Ee.command(wa,"start","end","previous","text")},li.moveStartToEndOfText=function(Ee){Ee.command(Oa,"start","end","text")},li.moveStartToStartOfBlock=function(Ee){Ee.command(Oa,"start","start","block")},li.moveStartToStartOfDocument=function(Ee){Ee.moveStartToStartOfNode(Ee.value.document).moveToStart()},li.moveStartToStartOfInline=function(Ee){Ee.command(Oa,"start","start","inline")},li.moveStartToStartOfNextBlock=function(Ee){Ee.command(wa,"start","start","next","block")},li.moveStartToStartOfNextInline=function(Ee){Ee.command(wa,"start","start","next","inline")},li.moveStartToStartOfNextText=function(Ee){Ee.command(wa,"start","start","next","text")},li.moveStartToStartOfNode=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveStartToStartOfNode"].concat(z))},li.moveStartToStartOfPreviousBlock=function(Ee){Ee.command(wa,"start","start","previous","block")},li.moveStartToStartOfPreviousInline=function(Ee){Ee.command(wa,"start","start","previous","inline")},li.moveStartToStartOfPreviousText=function(Ee){Ee.command(wa,"start","start","previous","text")},li.moveStartToStartOfText=function(Ee){Ee.command(Oa,"start","start","text")},li.moveTo=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveTo"].concat(z))},li.moveToAnchor=function(Ee){Ee.command(la,"moveToAnchor")},li.moveToEnd=function(Ee){Ee.command(la,"moveToEnd")},li.moveToEndOfBlock=function(Ee){Ee.moveEndToEndOfBlock().moveToEnd()},li.moveToEndOfDocument=function(Ee){Ee.moveEndToEndOfNode(Ee.value.document).moveToEnd()},li.moveToEndOfInline=function(Ee){Ee.moveEndToEndOfInline().moveToEnd()},li.moveToEndOfNextBlock=function(Ee){Ee.moveEndToEndOfNextBlock().moveToEnd()},li.moveToEndOfNextInline=function(Ee){Ee.moveEndToEndOfNextInline().moveToEnd()},li.moveToEndOfNextText=function(Ee){Ee.moveEndToEndOfNextText().moveToEnd()},li.moveToEndOfNode=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveToEndOfNode"].concat(z))},li.moveToEndOfPreviousBlock=function(Ee){Ee.moveStartToEndOfPreviousBlock().moveToStart()},li.moveToEndOfPreviousInline=function(Ee){Ee.moveStartToEndOfPreviousInline().moveToStart()},li.moveToEndOfPreviousText=function(Ee){Ee.moveStartToEndOfPreviousText().moveToStart()},li.moveToEndOfText=function(Ee){Ee.moveEndToEndOfText().moveToEnd()},li.moveToFocus=function(Ee){Ee.command(la,"moveToFocus")},li.moveToRangeOfDocument=function(Ee){Ee.moveToRangeOfNode(Ee.value.document)},li.moveToRangeOfNode=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveToRangeOfNode"].concat(z))},li.moveToStart=function(Ee){Ee.command(la,"moveToStart")},li.moveToStartOfBlock=function(Ee){Ee.moveStartToStartOfBlock().moveToStart()},li.moveToStartOfDocument=function(Ee){Ee.moveStartToStartOfNode(Ee.value.document).moveToStart()},li.moveToStartOfInline=function(Ee){Ee.moveStartToStartOfInline().moveToStart()},li.moveToStartOfNextBlock=function(Ee){Ee.moveEndToStartOfNextBlock().moveToEnd()},li.moveToStartOfNextInline=function(Ee){Ee.moveEndToStartOfNextInline().moveToEnd()},li.moveToStartOfNextText=function(Ee){Ee.moveEndToStartOfNextText().moveToEnd()},li.moveToStartOfNode=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"moveToStartOfNode"].concat(z))},li.moveToStartOfPreviousBlock=function(Ee){Ee.moveStartToStartOfPreviousBlock().moveToStart()},li.moveToStartOfPreviousInline=function(Ee){Ee.moveStartToStartOfPreviousInline().moveToStart()},li.moveToStartOfPreviousText=function(Ee){Ee.moveStartToStartOfPreviousText().moveToStart()},li.moveToStartOfText=function(Ee){Ee.moveStartToStartOfText().moveToStart()},li.select=function(Ee,Y){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Y=Ae.createProperties(Y);var B=z.snapshot,le=B===void 0?!1:B,Le=Ee.value,Je=Le.document,Ct=Le.selection,Vt={},bn=Ct.setProperties(Y);bn=Je.resolveSelection(bn),Y=y()(bn,Object.keys(Y));for(var Hn in Y)(le===!0||!(0,i.is)(Y[Hn],Ct[Hn]))&&(Vt[Hn]=Y[Hn]);if(Ct.marks&&!Vt.marks&&(Vt.anchor||Vt.focus)&&(Vt.marks=null),Object.keys(Vt).length!==0){var br=y()(Ct.toJSON(),Object.keys(Vt));Ee.applyOperation({type:"set_selection",value:Le,properties:br,newProperties:Vt},le?{skip:!1,merge:!1}:{})}},li.setAnchor=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"setAnchor"].concat(z))},li.setEnd=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"setEnd"].concat(z))},li.setFocus=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"setFocus"].concat(z))},li.setStart=function(Ee){for(var Y=arguments.length,z=Array(Y>1?Y-1:0),B=1;B<Y;B++)z[B-1]=arguments[B];Ee.command.apply(Ee,[la,"setStart"].concat(z))},li.snapshotSelection=function(Ee){Ee.withoutMerging(function(){Ee.select(Ee.value.selection,{snapshot:!0})})};function la(Ee,Y){for(var z,B=arguments.length,le=Array(B>2?B-2:0),Le=2;Le<B;Le++)le[Le-2]=arguments[Le];var Je=(z=Ee.value.selection)[Y].apply(z,le);Ee.select(Je)}function Oa(Ee,Y,z,B){var le=Y.slice(0,1).toUpperCase()+Y.slice(1),Le=z.slice(0,1).toUpperCase()+z.slice(1),Je=B.slice(0,1).toUpperCase()+B.slice(1),Ct="move"+le+"To"+Le+"OfNode",Vt=B==="text"?"getNode":"getClosest"+Je,bn=Ee.value,Hn=bn.document,br=bn.selection,ei=br[Y],mi=Hn[Vt](ei.key);mi&&Ee[Ct](mi)}function wa(Ee,Y,z,B,le){var Le=Y.slice(0,1).toUpperCase()+Y.slice(1),Je=z.slice(0,1).toUpperCase()+z.slice(1),Ct=B.slice(0,1).toUpperCase()+B.slice(1),Vt=le.slice(0,1).toUpperCase()+le.slice(1),bn="move"+Le+"To"+Je+"OfNode",Hn=le==="text"?"getNode":"getClosest"+Vt,br="get"+Ct+Vt,ei=Ee.value,mi=ei.document,Li=ei.selection,na=Li[Y],ji=mi[Hn](na.key);if(ji){var $a=mi[br](ji.key);$a&&Ee[bn]($a)}}function vo(Ee,Y){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(z!==0){if(z<0)return Qn(Ee,Y,-z);var B=Y.slice(0,1).toUpperCase()+Y.slice(1),le=Ee.value,Le=le.document,Je=le.selection,Ct=Je[Y],Vt=Le.hasVoidParent(Ct.path,Ee);if(!Vt&&Ct.offset-z>=0){var bn=Je["move"+B+"Backward"](z);Ee.select(bn);return}var Hn=Le.getPreviousText(Ct.path);if(Hn){var br=Le.getClosestBlock(Ct.path),ei=br.hasNode(Hn.key),mi=Hn&&Le.hasVoidParent(Hn.key,Ee);if(Ee["move"+B+"ToEndOfNode"](Hn),!Vt&&!mi&&ei){var Li=Ee.value.selection["move"+B+"Backward"](z);Ee.select(Li)}}}}function Qn(Ee,Y){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(z!==0){if(z<0)return vo(Ee,Y,-z);var B=Y.slice(0,1).toUpperCase()+Y.slice(1),le=Ee.value,Le=le.document,Je=le.selection,Ct=Je[Y],Vt=Le.getNode(Ct.path),bn=Le.hasVoidParent(Ct.path,Ee);if(!bn&&Ct.offset+z<=Vt.text.length){var Hn=Je["move"+B+"Forward"](z);Ee.select(Hn);return}var br=Le.getNextText(Ct.path);if(br){var ei=Le.getClosestBlock(Ct.path),mi=ei.hasNode(br.key),Li=Le.hasVoidParent(br.key,Ee);if(Ee["move"+B+"ToStartOfNode"](br),!bn&&!Li&&mi){var na=Ee.value.selection["move"+B+"Forward"](z);Ee.select(na)}}}}function _r(Ee,Y){var z=Ee.value,B=z.document,le=z.selection,Le=le[Y],Je=B.getClosestBlock(Le.key),Ct=Je.getOffset(Le.key),Vt=Ct+Le.offset,bn=Je.text,Hn=Tt.getWordOffsetBackward(bn,Vt);Ee.command(vo,Y,Hn>0?Hn:1)}function $r(Ee,Y){var z=Ee.value,B=z.document,le=z.selection,Le=le[Y],Je=B.getClosestBlock(Le.key),Ct=Je.getOffset(Le.key),Vt=Ct+Le.offset,bn=Je.text,Hn=Tt.getWordOffsetForward(bn,Vt);Ee.command(Qn,Y,Hn>0?Hn:1)}var Ti={};Ti.setData=function(Ee){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=Ee.value,B=Kt.createProperties({data:Y}),le=y()(z,Object.keys(B));Ee.applyOperation({type:"set_value",properties:le,newProperties:B})},Ti.addAnnotation=function(Ee,Y){Y=Et.create(Y),Ee.applyOperation({type:"add_annotation",annotation:Y})},Ti.removeAnnotation=function(Ee,Y){Y=Et.create(Y),Ee.applyOperation({type:"remove_annotation",annotation:Y})},Ti.setAnnotation=function(Ee,Y,z){Y=Et.create(Y),z=Et.createProperties(z),Ee.applyOperation({type:"set_annotation",properties:Y,newProperties:z})},Ti.setAnnotations=function(Ee){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=Ee.value,B=Kt.createProperties({annotations:Y}),le=y()(z,Object.keys(B));Ee.applyOperation({type:"set_value",properties:le,newProperties:B})};function xt(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function Y(B,le){for(var Le in Ee)B.registerQuery(Le);return le()}function z(B,le,Le){var Je=B.type,Ct=B.args,Vt=Ee[Je];if(!Vt)return Le();var bn=Vt.apply(void 0,[le].concat(q(Ct)));return bn===void 0?Le():bn}return{onConstruct:Y,onQuery:z}}var On=function(Ee){re(Y,Ee);function Y(z){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};K(this,Y);var le=Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,z));le.code=z;for(var Le in B)le[Le]=B[Le];return Error.captureStackTrace?Error.captureStackTrace(le,le.constructor):le.stack=new Error().stack,le}return Y}(Error);function Zn(Ee){var Y=Ee.rules,z=Ee.document,B=Ee.blocks,le=Ee.inlines,Le=Ee.marks,Je=Ee.annotations,Ct=Ee.decorations,Vt=[];if(Y&&(Vt=Vt.concat(Y)),z&&Vt.push(j({match:[{object:"document"}]},z)),B)for(var bn in B)Vt.push(j({match:[{object:"block",type:bn}]},B[bn]));if(le)for(var Hn in le)Vt.push(j({match:[{object:"inline",type:Hn}]},le[Hn]));if(Le)for(var br in Le)Vt.push(j({match:[{object:"mark",type:br}]},Le[br]));if(Je)for(var ei in Je)Vt.push(j({match:[{object:"annotation",type:ei}]},Je[ei]));if(Ct)for(var mi in Ct)Vt.push(j({match:[{object:"decoration",type:mi}]},Ct[mi]));function Li(Eo,Uo){var Ms=Vt.find(function(er){return"isAtomic"in er&&En(Uo,er.match)});return Ms&&Ms.isAtomic}function na(Eo,Uo){var Ms=Vt.find(function(er){return"isVoid"in er&&En(Uo,er.match)});return Ms&&Ms.isVoid}function ji(Eo,Uo,Ms){var er=$a(Eo,Uo,function(){});return er?function(){var Ar=er.rule,Kr=Uo.operations.size;Ar.normalize&&Ar.normalize(Uo,er),Uo.operations.size===Kr&&Ur(Uo,er)}:Ms()}function $a(Eo,Uo,Ms){var er=Vt.filter(function(ur){return En(Eo,ur.match)}),Ar=ln(Eo,er,Vt,{every:!0});if(!Ar)return Ms();var Kr=new On(Ar.code,Ar);return Kr}var Ha=xt({isAtomic:Li,isVoid:na});return[{normalizeNode:ji,validateNode:$a},Ha]}function Ur(Ee,Y){var z=Y.code,B=Y.node,le=Y.child,Le=Y.next,Je=Y.previous,Ct=Y.key,Vt=Y.mark;switch(z){case"child_max_invalid":case"child_object_invalid":case"child_type_invalid":case"child_unknown":case"first_child_object_invalid":case"first_child_type_invalid":case"last_child_object_invalid":case"last_child_type_invalid":return le.object==="text"&&B.object==="block"&&B.nodes.size===1?Ee.removeNodeByKey(B.key):Ee.removeNodeByKey(le.key);case"previous_sibling_object_invalid":case"previous_sibling_type_invalid":return Je.object==="text"&&B.object==="block"&&B.nodes.size===1?Ee.removeNodeByKey(B.key):Ee.removeNodeByKey(Je.key);case"next_sibling_object_invalid":case"next_sibling_type_invalid":return Le.object==="text"&&B.object==="block"&&B.nodes.size===1?Ee.removeNodeByKey(B.key):Ee.removeNodeByKey(Le.key);case"child_min_invalid":case"node_text_invalid":case"parent_object_invalid":case"parent_type_invalid":return B.object==="document"?B.nodes.forEach(function(bn){return Ee.removeNodeByKey(bn.key)}):Ee.removeNodeByKey(B.key);case"node_data_invalid":return B.data.get(Ct)===void 0&&B.object!=="document"?Ee.removeNodeByKey(B.key):Ee.setNodeByKey(B.key,{data:B.data.delete(Ct)});case"node_mark_invalid":return B.getTexts().forEach(function(bn){return Ee.removeMarkByKey(bn.key,0,bn.text.length,Vt)});default:return Ee.removeNodeByKey(B.key)}}function En(Ee,Y){var z=ln(Ee,Y);return!z}function ln(Ee,Y,z){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},le=B.every,Le=le===void 0?!1:le,Je=B.match,Ct=Je===void 0?null:Je;if(typeof Y=="function"){var Vt=Y(Ee,Ct);return Vt?null:Da("node_invalid",{rule:Y,node:Ee})}if(Array.isArray(Y)){var bn=Y.length?Y:[{}],Hn=void 0,br=!0,ei=!1,mi=void 0;try{for(var Li=bn[Symbol.iterator](),na;!(br=(na=Li.next()).done);br=!0){var ji=na.value,$a=ln(Ee,ji,z);if(Hn=Hn||$a,Le&&$a)return $a;if(!Le&&!$a)return}}catch(Eo){ei=!0,mi=Eo}finally{try{!br&&Li.return&&Li.return()}finally{if(ei)throw mi}}return Hn}var Ha=jn(Ee,Y)||rr(Ee,Y)||Mr(Ee,Y)||Ir(Ee,Y)||Zr(Ee,Y)||lr(Ee,Y)||Jr(Ee,Y)||pi(Ee,Y,z);return Ha}function jn(Ee,Y){if(Y.object!=null&&Y.object!==Ee.object&&!(typeof Y.object=="function"&&Y.object(Ee.object)))return Da("node_object_invalid",{rule:Y,node:Ee})}function rr(Ee,Y){if(Y.type!=null&&Y.type!==Ee.type&&!(typeof Y.type=="function"&&Y.type(Ee.type)))return Da("node_type_invalid",{rule:Y,node:Ee})}function Mr(Ee,Y){if(Y.data!=null&&Ee.data!=null){if(typeof Y.data=="function")return Y.data(Ee.data)?void 0:Da("node_data_invalid",{rule:Y,node:Ee});for(var z in Y.data){var B=Y.data[z],le=Ee.data&&Ee.data.get(z),Le=typeof B=="function"?B(le):B===le;if(!Le)return Da("node_data_invalid",{rule:Y,node:Ee,key:z,value:le})}}}function Ir(Ee,Y){if(Y.marks!=null){var z=Ee.object==="text"?Ee.marks.toArray():Ee.getMarks().toArray(),B=function(ei){var mi=Y.marks.some(function(Li){return typeof Li.type=="function"?Li.type(ei.type):Li.type===ei.type});return mi?"continue":{v:Da("node_mark_invalid",{rule:Y,node:Ee,mark:ei})}},le=!0,Le=!1,Je=void 0;try{for(var Ct=z[Symbol.iterator](),Vt;!(le=(Vt=Ct.next()).done);le=!0){var bn=Vt.value,Hn=B(bn);switch(Hn){case"continue":continue;default:if((typeof Hn>"u"?"undefined":N(Hn))==="object")return Hn.v}}}catch(br){Le=!0,Je=br}finally{try{!le&&Ct.return&&Ct.return()}finally{if(Le)throw Je}}}}function Zr(Ee,Y){if(Y.text!=null){var z=Ee.text,B=typeof Y.text=="function"?Y.text(z):Y.text.test(z);if(!B)return Da("node_text_invalid",{rule:Y,node:Ee,text:z})}}function lr(Ee,Y){if(Y.first!=null){var z=Ee.nodes.first();if(z){var B=ln(z,Y.first);if(B)return B.rule=Y,B.node=Ee,B.child=z,B.code=B.code.replace("node_","first_child_"),B}}}function Jr(Ee,Y){if(Y.last!=null){var z=Ee.nodes.last();if(z){var B=ln(z,Y.last);if(B)return B.rule=Y,B.node=Ee,B.child=z,B.code=B.code.replace("node_","last_child_"),B}}}function pi(Ee,Y){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(Ee.nodes==null)return;var B=Ee.nodes,le=Y.nodes!=null?Y.nodes.slice():[],Le=0,Je=0,Ct=null,Vt=-1,bn=null,Hn=null,br=null,ei=null,mi=null;function Li(){return le.length===0?!1:(bn=le.shift(),Je=Le,Le=0,Ct=bn.min||null,Hn=bn.max||null,!0)}function na(){return Vt+=1,ei=Vt?B.get(Vt-1):null,br=B.get(Vt),mi=B.get(Vt+1),br?(Je=Le,Le+=1,!0):!1}function ji(){Vt>0&&(Vt-=1,Le=Je)}for(Y.nodes!=null&&Li();na();){var $a=Ri(Ee,br,z)||Ki(Ee,br,ei,Vt,z)||ia(Ee,br,mi,Vt,z);if($a)return $a;if(Y.nodes!=null){if(!bn)return Da("child_unknown",{rule:Y,node:Ee,child:br,index:Vt});if(bn.match){var Ha=ln(br,bn.match);if(Ha){if(Hn!=null&&Le-1>Hn)return ji(),Da("child_max_invalid",{rule:Y,node:Ee,index:Vt,child:B.get(Vt),count:Le,limit:Hn});var Eo=Ct;if(Li()){if(Je-1>=Eo){Vt-=1;continue}return ln(br,bn.match)==null?(ji(),Da("child_min_invalid",{rule:Y,node:Ee,index:Vt,count:Je-1,limit:Eo})):(Ha.rule=Y,Ha.node=Ee,Ha.child=br,Ha.index=Vt,Ha.code=Ha.code.replace("node_","child_"),Ha)}return Hn!=null&&Le>Hn?Da("child_unknown",{rule:Y,node:Ee,child:br,index:Vt}):(Ha.rule=Y,Ha.node=Ee,Ha.child=br,Ha.index=Vt,Ha.code=Ha.code.replace("node_","child_"),Ha)}}}}if(Hn!=null&&Le>Hn)return Da("child_max_invalid",{rule:Y,node:Ee,index:Vt-1,count:Le,child:B.get(Vt-1),limit:Hn});if(Y.nodes!=null)do if(Le<Ct)return Da("child_min_invalid",{rule:Y,node:Ee,index:Vt,count:Le,limit:Ct});while(Li())}function Ri(Ee,Y,z){var B=!0,le=!1,Le=void 0;try{for(var Je=z[Symbol.iterator](),Ct;!(B=(Ct=Je.next()).done);B=!0){var Vt=Ct.value;if(Vt.parent!=null&&En(Y,Vt.match)){var bn=ln(Ee,Vt.parent);if(bn)return bn.rule=Vt,bn.parent=Ee,bn.node=Y,bn.code=bn.code.replace("node_","parent_"),bn}}}catch(Hn){le=!0,Le=Hn}finally{try{!B&&Je.return&&Je.return()}finally{if(le)throw Le}}}function Ki(Ee,Y,z,B,le){if(z){var Le=!0,Je=!1,Ct=void 0;try{for(var Vt=le[Symbol.iterator](),bn;!(Le=(bn=Vt.next()).done);Le=!0){var Hn=bn.value;if(Hn.previous!=null&&En(Y,Hn.match)){var br=ln(z,Hn.previous);if(br)return br.rule=Hn,br.node=Ee,br.child=Y,br.index=B,br.previous=z,br.code=br.code.replace("node_","previous_sibling_"),br}}}catch(ei){Je=!0,Ct=ei}finally{try{!Le&&Vt.return&&Vt.return()}finally{if(Je)throw Ct}}}}function ia(Ee,Y,z,B,le){if(z){var Le=!0,Je=!1,Ct=void 0;try{for(var Vt=le[Symbol.iterator](),bn;!(Le=(bn=Vt.next()).done);Le=!0){var Hn=bn.value;if(Hn.next!=null&&En(Y,Hn.match)){var br=ln(z,Hn.next,[],{match:Y});if(br)return br.rule=Hn,br.node=Ee,br.child=Y,br.index=B,br.next=z,br.code=br.code.replace("node_","next_sibling_"),br}}}catch(ei){Je=!0,Ct=ei}finally{try{!Le&&Vt.return&&Vt.return()}finally{if(Je)throw Ct}}}}function Da(Ee,Y){return j({code:Ee},Y)}function to(Ee){var Y=Ee.value,z=Y.selection;z.isExpanded&&Ee.delete()}var ao={};ao.addMark=function(Ee,Y){Y=qe.create(Y);var z=Ee.value,B=z.document,le=z.selection;if(le.isExpanded)Ee.addMarkAtRange(le,Y);else if(le.marks){var Le=le.marks.add(Y),Je=le.set("marks",Le);Ee.select(Je)}else{var Ct=B.getActiveMarksAtRange(le).add(Y),Vt=le.set("marks",Ct);Ee.select(Vt)}},ao.addMarks=function(Ee,Y){Y.forEach(function(z){return Ee.addMark(z)})},ao.delete=function(Ee){var Y=Ee.value,z=Y.selection;Ee.deleteAtRange(z),Ee.moveToFocus()},ao.deleteBackward=function(Ee){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=Ee.value,B=z.selection;B.isExpanded?Ee.delete():Ee.deleteBackwardAtRange(B,Y)},ao.deleteCharBackward=function(Ee){var Y=Ee.value,z=Y.selection;z.isExpanded?Ee.delete():Ee.deleteCharBackwardAtRange(z)},ao.deleteLineBackward=function(Ee){var Y=Ee.value,z=Y.selection;z.isExpanded?Ee.delete():Ee.deleteLineBackwardAtRange(z)},ao.deleteWordBackward=function(Ee){var Y=Ee.value,z=Y.selection;z.isExpanded?Ee.delete():Ee.deleteWordBackwardAtRange(z)},ao.deleteForward=function(Ee){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=Ee.value,B=z.selection;B.isExpanded?Ee.delete():Ee.deleteForwardAtRange(B,Y)},ao.deleteCharForward=function(Ee){var Y=Ee.value,z=Y.selection;z.isExpanded?Ee.delete():Ee.deleteCharForwardAtRange(z)},ao.deleteLineForward=function(Ee){var Y=Ee.value,z=Y.selection;z.isExpanded?Ee.delete():Ee.deleteLineForwardAtRange(z)},ao.deleteWordForward=function(Ee){var Y=Ee.value,z=Y.selection;z.isExpanded?Ee.delete():Ee.deleteWordForwardAtRange(z)},ao.insertBlock=function(Ee,Y){to(Ee),Y=Lt.create(Y);var z=Ee.value,B=z.selection;Ee.insertBlockAtRange(B,Y);var le=Ee.value.document.getNode(Y.key);le&&Ee.moveToEndOfNode(le)},ao.insertFragment=function(Ee,Y){if(Y.nodes.size){to(Ee);var z=Ee.value,B=z,le=B.document,Le=B.selection,Je=Le.start,Ct=Array.from(le.texts(),function(Li){var na=J(Li,1),ji=na[0];return ji.key});Ee.insertFragmentAtRange(Le,Y),z=Ee.value,le=z.document;var Vt=le.getTexts().filter(function(Li){return!Ct.includes(Li.key)});if(Vt.size!==0){var bn=Y.text.length,Hn=le.getNode(Je.key)||Vt.first(),br=Vt.last()||Hn;if(Hn===br){Ee.moveTo(br.key,bn);return}var ei=le.getCommonAncestor(Hn.key,br.key),mi=ei.getOffset(Hn.key)+(Je.key===Hn.key?Je.offset:0);br=ei.getTextAtOffset(mi+bn-1)||br,Ee.moveTo(br.key,mi+bn-ei.getOffset(br.key))}}},ao.insertInline=function(Ee,Y){to(Ee),Y=mt.create(Y);var z=Ee.value,B=z.selection;Ee.insertInlineAtRange(B,Y);var le=Ee.value.document.getNode(Y.key);le&&Ee.moveToEndOfNode(le)},ao.insertText=function(Ee,Y,z){to(Ee);var B=Ee.value,le=B.document,Le=B.selection;z=z||Le.marks||le.getInsertMarksAtRange(Le),Ee.withoutNormalizing(function(){Ee.insertTextAtRange(Le,Y,z),Le.marks&&le!==Ee.value.document&&Ee.select({marks:null})})},ao.removeMark=function(Ee,Y){Y=qe.create(Y);var z=Ee.value,B=z.document,le=z.selection;if(le.isExpanded)Ee.removeMarkAtRange(le,Y);else if(le.marks){var Le=le.marks.remove(Y),Je=le.set("marks",Le);Ee.select(Je)}else{var Ct=B.getActiveMarksAtRange(le).remove(Y),Vt=le.set("marks",Ct);Ee.select(Vt)}},ao.replaceMark=function(Ee,Y,z){Ee.removeMark(Y),Ee.addMark(z)},ao.setBlocks=function(Ee,Y){var z=Ee.value,B=z.selection;Ee.setBlocksAtRange(B,Y)},ao.setInlines=function(Ee,Y){var z=Ee.value,B=z.selection;Ee.setInlinesAtRange(B,Y)},ao.splitBlock=function(Ee){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;to(Ee);var z=Ee.value,B=z.selection,le=z.document,Le=B.marks||le.getInsertMarksAtRange(B);Ee.splitBlockAtRange(B,Y).moveToEnd(),Le&&Le.size!==0&&Ee.select({marks:Le})},ao.splitInline=function(Ee,Y){to(Ee);var z=Ee.value,B=z.selection;Ee.splitInlineAtRange(B,Y)},ao.toggleMark=function(Ee,Y){Y=qe.create(Y);var z=Ee.value,B=z.activeMarks.has(Y);B?Ee.removeMark(Y):Ee.addMark(Y)},ao.unwrapBlock=function(Ee,Y){var z=Ee.value,B=z.selection;Ee.unwrapBlockAtRange(B,Y)},ao.unwrapInline=function(Ee,Y){var z=Ee.value,B=z.selection;Ee.unwrapInlineAtRange(B,Y)},ao.wrapBlock=function(Ee,Y){var z=Ee.value,B=z.selection;Ee.wrapBlockAtRange(B,Y)},ao.wrapInline=function(Ee,Y){var z=Ee.value,B=z.selection;Ee.wrapInlineAtRange(B,Y)},ao.wrapText=function(Ee,Y){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Y,B=Ee.value,le=B.selection;Ee.wrapTextAtRange(le,Y,z),le.isCollapsed&&Ee.moveStartBackward(Y.length),Ee.moveEndBackward(z.length),le.isForward!==Ee.value.selection.isForward&&Ee.flip()};function Bo(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Y=Ee.plugins,z=Y===void 0?[]:Y,B=Jn(j({},mn,Vn,fa,li,Ti,ao)),le=xt({isAtomic:function(){return!1},isVoid:function(){return!1}}),Le=Zn({rules:[{match:{object:"document"},nodes:[{match:{object:"block"}}]},{match:{object:"block",first:{object:"block"}},nodes:[{match:{object:"block"}}]},{match:{object:"block",first:[{object:"inline"},{object:"text"}]},nodes:[{match:[{object:"inline"},{object:"text"}]}]},{match:{object:"inline"},nodes:[{match:[{object:"inline"},{object:"text"}]}]},{match:[{object:"block"},{object:"inline"}],nodes:[{min:1}],normalize:function(Ct,Vt){var bn=Vt.code,Hn=Vt.node;bn==="child_min_invalid"&&Hn.nodes.isEmpty()&&Ct.insertNodeByKey(Hn.key,0,hn.create())}},{match:{object:"block"},first:[{object:"block"},{object:"text"}],last:[{object:"block"},{object:"text"}],normalize:function(Ct,Vt){var bn=Vt.code,Hn=Vt.node,br=hn.create(),ei=void 0;if(bn==="first_child_object_invalid")ei=0;else if(bn==="last_child_object_invalid")ei=Hn.nodes.size;else return;Ct.insertNodeByKey(Hn.key,ei,br)}},{match:{object:"inline"},first:[{object:"block"},{object:"text"}],last:[{object:"block"},{object:"text"}],previous:[{object:"block"},{object:"text"}],next:[{object:"block"},{object:"text"}],normalize:function(Ct,Vt){var bn=Vt.code,Hn=Vt.node,br=Vt.index,ei=hn.create(),mi=void 0;if(bn==="first_child_object_invalid")mi=0;else if(bn==="last_child_object_invalid")mi=Hn.nodes.size;else if(bn==="previous_sibling_object_invalid")mi=br;else if(bn==="next_sibling_object_invalid")mi=br+1;else return;Ct.insertNodeByKey(Hn.key,mi,ei)}},{match:{object:"text"},next:function(Ct,Vt){return Ct.object!=="text"||!Vt.marks.equals(Ct.marks)},normalize:function(Ct,Vt){var bn=Vt.code,Hn=Vt.next;bn==="next_sibling_invalid"&&Ct.mergeNodeByKey(Hn.key)}},{match:{object:"text"},previous:function(Ct){return Ct.object!=="text"||Ct.text!==""},next:function(Ct){return Ct.object!=="text"||Ct.text!==""},normalize:function(Ct,Vt){var bn=Vt.code,Hn=Vt.next,br=Vt.previous;bn==="next_sibling_invalid"?Ct.removeNodeByKey(Hn.key):bn==="previous_sibling_invalid"&&Ct.removeNodeByKey(br.key)}}]});return[Le].concat(q(z),[B,le])}var jo=p()("slate:editor"),Jo=function(){function Ee(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};K(this,Ee);var B=z.controller,le=B===void 0?this:B,Le=z.construct,Je=Le===void 0?!0:Le,Ct=Y.onChange,Vt=Ct===void 0?function(){}:Ct,bn=Y.plugins,Hn=bn===void 0?[]:bn,br=Y.readOnly,ei=br===void 0?!1:br,mi=Y.value,Li=mi===void 0?Kt.create():mi;this.controller=le,this.middleware={},this.onChange=Vt,this.operations=(0,i.List)(),this.readOnly=null,this.value=null,this.tmp={dirty:[],flushing:!1,merge:null,normalize:!0,save:!0};var na=Bo({plugins:Hn});ja(this,na),Je&&(this.run("onConstruct"),this.setReadOnly(ei),this.setValue(Li,z))}return _(Ee,[{key:"applyOperation",value:function(z){var B=this,le=this.operations,Le=this.controller,Je=this.value;u()(z)&&(z=j({},z,{value:Je})),z=Rt.create(z),this.withoutNormalizing(function(){Le.save(z),Je=B.value}),jo("apply",{operation:z}),this.value=z.apply(Je),this.operations=le.push(z);var Ct=Go(z),Vt=this.tmp.dirty.map(function(br){br=ue.create(br);var ei=ue.transform(br,z);return ei.toArray()}),bn={},Hn=Array.prototype.concat.apply(Ct,Vt);return this.tmp.dirty=[],Hn.forEach(function(br){var ei=br.join(",");bn[ei]||B.tmp.dirty.push(br),bn[ei]=!0}),this.tmp.flushing||(this.tmp.flushing=!0,Promise.resolve().then(function(){return B.flush()})),Le}},{key:"flush",value:function(){this.run("onChange");var z=this.value,B=this.operations,le=this.controller,Le={value:z,operations:B};return this.operations=(0,i.List)(),this.tmp.flushing=!1,this.onChange(Le),le}},{key:"command",value:function(z){for(var B=arguments.length,le=Array(B>1?B-1:0),Le=1;Le<B;Le++)le[Le-1]=arguments[Le];var Je=this.controller;if(typeof z=="function")return z.apply(void 0,[Je].concat(le)),wr(this),Je;jo("command",{type:z,args:le});var Ct={type:z,args:le};return this.run("onCommand",Ct),wr(this),Je}},{key:"hasCommand",value:function(z){var B=this.controller,le=z in B&&B[z].__command;return le}},{key:"hasQuery",value:function(z){var B=this.controller,le=z in B&&B[z].__query;return le}},{key:"normalize",value:function(){var z=this.value,B=this.controller,le=z.document,Le=le.getKeysToPathsTable(),Je=Object.values(Le).map(ue.create);this.tmp.dirty=this.tmp.dirty.concat(Je),wr(this);var Ct=z.selection;return le=z.document,Ct.isUnset&&le.nodes.size&&B.moveToStartOfDocument(),B}},{key:"query",value:function(z){for(var B=arguments.length,le=Array(B>1?B-1:0),Le=1;Le<B;Le++)le[Le-1]=arguments[Le];var Je=this.controller;if(typeof z=="function")return z.apply(void 0,[Je].concat(le));jo("query",{type:z,args:le});var Ct={type:z,args:le};return this.run("onQuery",Ct)}},{key:"registerCommand",value:function(z){var B=this,le=this.controller;if(z in le&&le[z].__command)return le;(0,l.Z)(!(z in le),"You cannot register a `"+z+"` command because it would overwrite an existing property of the `Editor`.");var Le=function(){for(var Ct=arguments.length,Vt=Array(Ct),bn=0;bn<Ct;bn++)Vt[bn]=arguments[bn];return B.command.apply(B,[z].concat(Vt))};return le[z]=Le,Le.__command=!0,le}},{key:"registerQuery",value:function(z){var B=this,le=this.controller;if(z in le&&le[z].__query)return le;(0,l.Z)(!(z in le),"You cannot register a `"+z+"` query because it would overwrite an existing property of the `Editor`.");var Le=function(){for(var Ct=arguments.length,Vt=Array(Ct),bn=0;bn<Ct;bn++)Vt[bn]=arguments[bn];return B.query.apply(B,[z].concat(Vt))};return le[z]=Le,Le.__query=!0,le}},{key:"run",value:function(z){for(var B=arguments.length,le=Array(B>1?B-1:0),Le=1;Le<B;Le++)le[Le-1]=arguments[Le];var Je=this.controller,Ct=this.middleware,Vt=Ct[z]||[],bn=0;function Hn(){var br=Vt[bn++];if(br){for(var ei=arguments.length,mi=Array(ei),Li=0;Li<ei;Li++)mi[Li]=arguments[Li];mi.length&&(le=mi);var na=br.apply(void 0,q(le).concat([Je,Hn]));return na}}return Object.defineProperty(Hn,"change",{get:function(){(0,l.Z)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(Hn,"onChange",{get:function(){(0,l.Z)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(Hn,"props",{get:function(){(0,l.Z)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(Hn,"schema",{get:function(){(0,l.Z)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(Hn,"stack",{get:function(){(0,l.Z)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Hn()}},{key:"setReadOnly",value:function(z){return this.readOnly=z,this}},{key:"setValue",value:function(z){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},le=B.normalize,Le=le===void 0?z!==this.value:le;return this.value=z,Le&&this.normalize(),this}},{key:"withoutNormalizing",value:function(z){var B=this.controller,le=this.tmp.normalize;return this.tmp.normalize=!1,z(B),this.tmp.normalize=le,wr(this),B}},{key:"change",value:function(z){(0,v.Z)(!1,"As of Slate 0.43 the `change` object has been replaced with `editor`, so the `editor.change()` method is deprecated.`");for(var B=arguments.length,le=Array(B>1?B-1:0),Le=1;Le<B;Le++)le[Le-1]=arguments[Le];z.apply(void 0,[this.controller].concat(le))}},{key:"call",value:function(z){(0,v.Z)(!1,"As of Slate 0.43 the `editor.call(fn)` method has been deprecated, please use `editor.command(fn)` instead.");for(var B=arguments.length,le=Array(B>1?B-1:0),Le=1;Le<B;Le++)le[Le-1]=arguments[Le];return z.apply(void 0,[this.controller].concat(le)),this.controller}},{key:"applyOperations",value:function(z){var B=this;return(0,v.Z)(!1,"As of Slate 0.43 the `applyOperations` method is deprecated, please apply each operation in a loop instead."),z.forEach(function(le){return B.applyOperation(le)}),this.controller}},{key:"setOperationFlag",value:function(z,B){return(0,v.Z)(!1,"As of slate@0.41 the `change.setOperationFlag` method has been deprecated."),this.tmp[z]=B,this}},{key:"getFlag",value:function(z){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,v.Z)(!1,"As of slate@0.41 the `change.getFlag` method has been deprecated."),B[z]!==void 0?B[z]:this.tmp[z]}},{key:"unsetOperationFlag",value:function(z){return(0,v.Z)(!1,"As of slate@0.41 the `change.unsetOperationFlag` method has been deprecated."),delete this.tmp[z],this}},{key:"withoutNormalization",value:function(z){return(0,v.Z)(!1,"As of slate@0.41 the `change.withoutNormalization` helper has been renamed to `change.withoutNormalizing`."),this.withoutNormalizing(z)}},{key:"editor",get:function(){return(0,v.Z)(!1,"As of Slate 0.43 the `change` object has been replaced with `editor`, so you don't need to access `change.editor`."),this.controller}}]),Ee}();function Go(Ee){var Y=Ee.type,z=Ee.node,B=Ee.path,le=Ee.newPath;switch(Y){case"add_mark":case"insert_text":case"remove_mark":case"remove_text":case"set_mark":case"set_node":{var Le=ue.getAncestors(B).toArray();return[].concat(q(Le),[B])}case"insert_node":{var Je=z.getKeysToPathsTable(),Ct=Object.values(Je).map(function(ji){return B.concat(ji)}),Vt=ue.getAncestors(B).toArray();return[].concat(q(Vt),[B],q(Ct))}case"split_node":{var bn=ue.getAncestors(B).toArray(),Hn=ue.increment(B);return[].concat(q(bn),[B,Hn])}case"merge_node":{var br=ue.getAncestors(B).toArray(),ei=ue.decrement(B);return[].concat(q(br),[ei])}case"move_node":{if(ue.isEqual(B,le))return[];var mi=ue.getAncestors(B).reduce(function(ji,$a){return ji.push.apply(ji,q(ue.transform($a,Ee).toArray())),ji},[]),Li=ue.getAncestors(le).reduce(function(ji,$a){return ji.push.apply(ji,q(ue.transform($a,Ee).toArray())),ji},[]);return[].concat(q(mi),q(Li))}case"remove_node":{var na=ue.getAncestors(B).toArray();return[].concat(q(na))}default:return[]}}function wr(Ee){Ee.tmp.normalize&&Ee.tmp.dirty.length&&Ee.withoutNormalizing(function(){for(;Ee.tmp.dirty.length;){var Y=Ee.tmp.dirty.pop();qi(Ee,Y)}})}function qi(Ee,Y){for(var z=Ee.controller,B=Ee.value,le=B,Le=le.document,Je=Le.assertNode(Y),Ct=0,Vt=100+(Je.object==="text"?1:Je.nodes.size);Je;){var bn=Je.normalize(z);if(!bn)break;bn(z),B=Ee.value,Le=B.document;var Hn=Je,br=Hn.key,ei=Le.getDescendant(Y);if(ei&&ei.key===br)Je=ei;else if(ei=Le.getDescendant(br),ei)Je=ei,Y=Le.getPath(br);else break;if(Ct++,Ct>Vt)throw new Error("A schema rule could not be normalized after sufficient iterations. This is usually due to a `rule.normalize` or `plugin.normalizeNode` function of a schema being incorrectly written, causing an infinite loop.")}}function ja(Ee,Y){if(Array.isArray(Y)){Y.forEach(function(ei){return ja(Ee,ei)});return}if(Y!=null){var z=Y.commands,B=Y.queries,le=Y.schema,Le=X(Y,["commands","queries","schema"]);if(z){var Je=Jn(z);ja(Ee,Je)}if(B){var Ct=xt(B);ja(Ee,Ct)}if(le){var Vt=Zn(le);ja(Ee,Vt)}for(var bn in Le){var Hn=Le[bn],br=Ee.middleware[bn]=Ee.middleware[bn]||[];br.push(Hn)}}}var uo={marks:void 0,text:void 0},wi=function(Ee){re(Y,Ee);function Y(){return K(this,Y),Z(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return _(Y,[{key:"updateMark",value:function(B,le){var Le=this.marks;if(le.equals(B))return this;if(!Le.has(B))return this;var Je=Le.withMutations(function(Ct){Ct.remove(B).add(le)});return this.set("marks",Je)}},{key:"addMark",value:function(B){var le=this.marks;return this.set("marks",le.add(B))}},{key:"addMarks",value:function(B){var le=this.marks;return this.set("marks",le.union(B))}},{key:"insertText",value:function(B,le){var Le=this.text,Je=Le.slice(0,B)+le+Le.slice(B);return this.set("text",Je)}},{key:"removeMark",value:function(B){var le=this.marks;return this.set("marks",le.remove(B))}},{key:"toJSON",value:function(){var B={object:this.object,text:this.text,marks:this.marks.toArray().map(function(le){return le.toJSON()})};return B}}],[{key:"create",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if((0,v.Z)(!1,"As of slate@0.47 the `Leaf` model is deprecated."),Y.isLeaf(B))return B;if(typeof B=="string"&&(B={text:B}),u()(B))return Y.fromJSON(B);throw new Error("`Leaf.create` only accepts objects, strings or leaves, but you passed it: "+B)}},{key:"createLeaves",value:function(B){if(B.size<=1)return B;var le=!1,Le=(0,i.List)().withMutations(function(Je){B.findLast(function(Ct,Vt){var bn=Je.first();if(bn){if(bn.marks.equals(Ct.marks)){le=!0,Je.set(0,bn.set("text",""+Ct.text+bn.text));return}if(bn.text===""){le=!0,Je.set(0,Ct);return}if(Ct.text===""){le=!0;return}}Je.unshift(Ct)})});return le?Le:B}},{key:"splitLeaves",value:function(B,le){if(le<0)return[(0,i.List)(),B];if(B.size===0)return[(0,i.List)(),(0,i.List)()];var Le=0,Je=-1,Ct=void 0,Vt=void 0;return B.find(function(bn){Je++;var Hn=Le,br=bn.text;if(Le+=br.length,Le<le||Hn>le)return!1;var ei=le-Hn;return Ct=bn.set("text",br.slice(0,ei)),Vt=bn.set("text",br.slice(ei)),!0}),Ct?Ct.text===""?Je===0?[i.List.of(Ct),B]:[B.take(Je),B.skip(Je)]:Vt.text===""?Je===B.size-1?[B,i.List.of(Vt)]:[B.take(Je+1),B.skip(Je+1)]:[B.take(Je).push(Ct),B.skip(Je+1).unshift(Vt)]:[B,(0,i.List)()]}},{key:"createList",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i.List.isList(B)||Array.isArray(B)){var le=new i.List(B.map(Y.create));return le}throw new Error("`Leaf.createList` only accepts arrays or lists, but you passed it: "+B)}},{key:"fromJSON",value:function(B){var le=B.text,Le=le===void 0?"":le,Je=B.marks,Ct=Je===void 0?[]:Je,Vt=new Y({text:Le,marks:(0,i.Set)(Ct.map(qe.fromJSON))});return Vt}},{key:"isLeafList",value:function(B){return i.List.isList(B)&&B.every(function(le){return Y.isLeaf(le)})}}]),Y}((0,i.Record)(uo));function ai(Ee,Y){var z=!0,B=!1,le=void 0;try{for(var Le=Y[Symbol.iterator](),Je;!(z=(Je=Le.next()).done);z=!0){var Ct=Je.value,Vt=!0,bn=!1,Hn=void 0;try{for(var br=Object.getOwnPropertyNames(Ee)[Symbol.iterator](),ei;!(Vt=(ei=br.next()).done);Vt=!0){var mi=ei.value;if(!Ct.hasOwnProperty(mi)){var Li=Object.getOwnPropertyDescriptor(Ee,mi);Object.defineProperty(Ct,mi,Li)}}}catch(Ms){bn=!0,Hn=Ms}finally{try{!Vt&&br.return&&br.return()}finally{if(bn)throw Hn}}var na=!0,ji=!1,$a=void 0;try{for(var Ha=Object.getOwnPropertyNames(Ee.prototype)[Symbol.iterator](),Eo;!(na=(Eo=Ha.next()).done);na=!0){var Uo=Eo.value;if(!Ct.prototype.hasOwnProperty(Uo)){var Li=Object.getOwnPropertyDescriptor(Ee.prototype,Uo);Object.defineProperty(Ct.prototype,Uo,Li)}}}catch(Ms){ji=!0,$a=Ms}finally{try{!na&&Ha.return&&Ha.return()}finally{if(ji)throw $a}}}}catch(Ms){B=!0,le=Ms}finally{try{!z&&Le.return&&Le.return()}finally{if(B)throw le}}}function za(Ee){var Y=$e[Ee],z=""+Ee.charAt(0).toUpperCase()+Ee.slice(1),B="is"+z,le=function(){function Le(){K(this,Le)}return _(Le,[{key:"object",get:function(){return Ee}}]),Le}();return le[B]=tt.bind(null,Ee),le.prototype[Y]=!0,le}Object.entries({Annotation:Et,Block:Lt,Change:sn,Decoration:It,Document:ut,Editor:Jo,Inline:mt,Leaf:wi,Mark:qe,Node:Yt,Operation:Rt,Point:ve,Range:Oe,Selection:Ae,Text:hn,Value:Kt}).forEach(function(Ee){var Y=J(Ee,2),z=Y[0],B=Y[1];return ai(za(z.toLowerCase()),[B])});var Mt=function(){function Ee(){K(this,Ee)}return _(Ee,[{key:"toJS",value:function(){return this.toJSON.apply(this,arguments)}}],[{key:"fromJS",value:function(){return this.fromJSON.apply(this,arguments)}}]),Ee}();ai(Mt,[Et,Lt,It,ut,mt,wi,qe,Yt,Rt,ve,Oe,Ae,hn,Kt]);var Gn=!0,qn=Symbol("LEAF"),Fr=Symbol("STORE_KEY"),Ei=Symbol("undefined"),ii=Symbol("null"),Wi=void 0,Ya=new WeakMap;function qa(Ee,Y){var z=function(Hn){var br=Ee[Hn];if(!br)throw new Error('Object does not have a property named "'+Hn+'".');Ee[Hn]=function(){for(var ei=arguments.length,mi=Array(ei),Li=0;Li<ei;Li++)mi[Li]=arguments[Li];if(!Gn)return br.apply(this,mi);Ya.has(this)||Ya.set(this,{noArgs:{},hasArgs:{}});var na=Ya.get(this),ji=na.noArgs,$a=na.hasArgs,Ha=mi.length!==0,Eo=void 0,Uo=void 0;if(Ha?(Uo=[Hn].concat(mi),Eo=se($a,Uo)):Eo=ji[Hn],Eo!==Wi)return Eo===Ei?void 0:Eo;var Ms=br.apply(this,mi),er=Ms===void 0?Ei:Ms;return Ha?ye($a,Uo,er):ji[Hn]=er,Ms}},B=!0,le=!1,Le=void 0;try{for(var Je=Y[Symbol.iterator](),Ct;!(B=(Ct=Je.next()).done);B=!0){var Vt=Ct.value;z(Vt)}}catch(bn){le=!0,Le=bn}finally{try{!B&&Je.return&&Je.return()}finally{if(le)throw Le}}}function se(Ee,Y){var z=!0,B=!1,le=void 0;try{for(var Le=Y[Symbol.iterator](),Je;!(z=(Je=Le.next()).done);z=!0){var Ct=Je.value;if(Ct===void 0?Ct=Ei:Ct==null&&(Ct=ii),(typeof Ct>"u"?"undefined":N(Ct))==="object"?Ee=Ee[Fr]&&Ee[Fr].get(Ct):Ee=Ee[Ct],Ee===Wi)return Wi}}catch(Vt){B=!0,le=Vt}finally{try{!z&&Le.return&&Le.return()}finally{if(B)throw le}}return Ee[qn]}function ye(Ee,Y,z){var B=Ee,le=!0,Le=!1,Je=void 0;try{for(var Ct=Y[Symbol.iterator](),Vt;!(le=(Vt=Ct.next()).done);le=!0){var bn=Vt.value;if(bn===void 0?bn=Ei:bn==null&&(bn=ii),(typeof bn>"u"?"undefined":N(bn))!=="object"){B[bn]||(B[bn]={}),B=B[bn];continue}if(B[Fr]||(B[Fr]=new WeakMap),!B[Fr].has(bn)){var Hn={};B[Fr].set(bn,Hn),B=Hn;continue}B=B[Fr].get(bn)}}catch(br){Le=!0,Je=br}finally{try{!le&&Ct.return&&Ct.return()}finally{if(Le)throw Je}}return B[qn]=z,Ee}function Xe(){Ya=new WeakMap}function yt(Ee){Gn=Ee}var Wt=function(){function Ee(){K(this,Ee)}return _(Ee,[{key:"getFirstText",value:function(){if(this.object==="text")return this;var z=null,B=this.nodes.find(function(le){return le.object==="text"?!0:(z=le.getFirstText(),!!z)});return z||B}},{key:"getKeysToPathsTable",value:function(){var z=W({},this.key,[]);return this.nodes&&this.nodes.forEach(function(B,le){var Le=B.getKeysToPathsTable();for(var Je in Le){var Ct=Le[Je];(0,v.Z)(!(Je in z),'A node with a duplicate key of "'+Je+'" was found! Duplicate keys are not allowed, you should use `node.regenerateKey` before inserting if you are reusing an existing node.'),z[Je]=[le].concat(q(Ct))}}),z}},{key:"getLastText",value:function(){if(this.object==="text")return this;var z=null,B=this.nodes.findLast(function(le){return le.object==="text"?!0:(z=le.getLastText(),z)});return z||B}},{key:"getNode",value:function(z){if(z=this.resolvePath(z),!z||this.object==="text"&&z.size)return null;var B=z.size?this.getDescendant(z):this;return B}},{key:"getPath",value:function(z){if(i.List.isList(z))return z;if(Yt.isNode(z)&&this.descendants){var B=!0,le=!1,Le=void 0;try{for(var Je=this.descendants()[Symbol.iterator](),Ct;!(B=(Ct=Je.next()).done);B=!0){var Vt=Ct.value,bn=J(Vt,2),Hn=bn[0],br=bn[1];if(z===Hn)return br}}catch(Li){le=!0,Le=Li}finally{try{!B&&Je.return&&Je.return()}finally{if(le)throw Le}}}var ei=this.getKeysToPathsTable(),mi=ei[z];return mi?(0,i.List)(mi):null}},{key:"getText",value:function(){if(this.object==="text")return this.text;var z=this.nodes.reduce(function(B,le){return B+le.text},"");return z}},{key:"hasNode",value:function(z){var B=this.getNode(z);return!!B}},{key:"normalize",value:function(z){var B=z.run("normalizeNode",this);return B}},{key:"regenerateKey",value:function(){var z=I.create(),B=this.set("key",z);return B}},{key:"resolvePath",value:function(z,B){return typeof z=="string"?(z=this.getPath(z),B!=null&&(z=z.concat(B))):z=ue.create(z),z}},{key:"validate",value:function(z){var B=z.run("validateNode",this);return B}}]),Ee}();qa(Wt.prototype,["getFirstText","getKeysToPathsTable","getLastText","getText","normalize","validate"]),ai(Wt,[Lt,ut,mt,hn]);var Qt=typeof t.g<"u"?t.g:typeof self<"u"?self:typeof window<"u"?window:{};function wn(){return!0}var fr=function(){function Ee(){K(this,Ee)}return _(Ee,[{key:"addMark",value:function(z,B){z=this.resolvePath(z);var le=this.assertDescendant(z);le=le.addMark(B);var Le=this.replaceNode(z,le);return Le}},{key:"ancestors",value:function(z){var B=this.createIterable({path:z,direction:null,downward:!1,includeTargetAncestors:!0,includeRoot:!0});return B}},{key:"blocks",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=z.onlyLeaves,le=z.onlyRoots,Le=z.onlyTypes,Je=z.match,Ct=X(z,["onlyLeaves","onlyRoots","onlyTypes","match"]),Vt=this.descendants(j({includeDocument:!1,includeInlines:!1,includeTexts:!1},Ct,{match:function(Hn,br){return Le&&!Le.includes(Hn.type)||le&&br.size!==1||B&&!Hn.isLeafBlock()?!1:!(Je&&!Je(Hn,br))}}));return Vt}},{key:"createAnnotation",value:function(z){z=Et.createProperties(z);var B=this.resolveAnnotation(z);return B}},{key:"createDecoration",value:function(z){z=It.createProperties(z);var B=this.resolveDecoration(z);return B}},{key:"createIterable",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=z.direction,le=B===void 0?"forward":B,Le=z.downward,Je=Le===void 0?!0:Le,Ct=z.upward,Vt=Ct===void 0?!0:Ct,bn=z.includeBlocks,Hn=bn===void 0?!0:bn,br=z.includeDocument,ei=br===void 0?!0:br,mi=z.includeInlines,Li=mi===void 0?!0:mi,na=z.includeRoot,ji=na===void 0?!1:na,$a=z.includeTarget,Ha=$a===void 0?!!z.range:$a,Eo=z.includeTargetAncestors,Uo=Eo===void 0?!1:Eo,Ms=z.includeTexts,er=Ms===void 0?!0:Ms,Ar=z.match,Kr=Ar===void 0?null:Ar,ur=this,Gr=null,Pi=null;z.range?(Pi=ur.resolveRange(z.range),Gr=ur.resolvePath(Pi.start.path)):z.path&&(Gr=ur.resolvePath(z.path));var aa=Gr&&ur.assertNode(Gr),Fa=typeof window>"u"?Qt.Set:window.Set;return W({},Symbol.iterator,function(){var tn=new Fa,cn=Pi&&Pi.start.path,nr=Pi&&Pi.end.path,ir=Gr,Lr=aa,ua=!1,_a=!1,Ka=!1,yo=function(){return!ir||!Lr?{done:!0}:!ji&&Lr===ur||!Hn&&Lr.object==="block"||!ei&&Lr.object==="document"||!Li&&Lr.object==="inline"||!er&&Lr.object==="text"||Kr&&!Kr(Lr,ir)?Ba():{value:[Lr,ir],done:!1}},Ba=function Ma(){if(!ir||!Lr)return yo();if(cn&&!_a)return Ka?ir.size===cn.size-1?(_a=!0,ir=Gr,Lr=aa,Ma()):(ir=cn.slice(0,ir.size+1),Lr=ur.assertNode(ir),yo()):(Ka=!0,ir=ue.create([]),Lr=ur,yo());if(Ha&&!ua)return ua=!0,yo();if(nr&&ir.equals(nr))return Lr=null,ir=null,Ma();if(Je&&Lr.nodes&&Lr.nodes.size&&!tn.has(Lr)){tn.add(Lr);var Mo=le==="forward"?0:Lr.nodes.size-1;return ir=ir.push(Mo),Lr=ur.assertNode(ir),yo()}if(le==="forward"){var Nr=ue.increment(ir),gi=ur.getNode(Nr);if(gi)return ir=Nr,Lr=gi,yo()}if(le==="backward"&&ir.last()!==0){var ea=ue.decrement(ir),dr=ur.getNode(ea);if(dr)return ir=ea,Lr=dr,yo()}return Vt&&ir.size?(ir=ue.lift(ir),Lr=ur.assertNode(ir),tn.has(Lr)?Ma():(tn.add(Lr),Uo?yo():Ma())):(ir=null,Lr=null,Ma())};return{next:Ba}})}},{key:"createPoint",value:function(z){z=ve.createProperties(z);var B=this.resolvePoint(z);return B}},{key:"createRange",value:function(z){z=Oe.createProperties(z);var B=this.resolveRange(z);return B}},{key:"createSelection",value:function(z){z=Ae.createProperties(z);var B=this.resolveSelection(z);return B}},{key:"descendants",value:function(z){var B=this.createIterable(j({path:[]},z));return B}},{key:"filterDescendants",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wn,B=[],le=!0,Le=!1,Je=void 0;try{for(var Ct=this.descendants()[Symbol.iterator](),Vt;!(le=(Vt=Ct.next()).done);le=!0){var bn=Vt.value,Hn=J(bn,2),br=Hn[0],ei=Hn[1];z(br,ei)&&B.push(br)}}catch(mi){Le=!0,Je=mi}finally{try{!le&&Ct.return&&Ct.return()}finally{if(Le)throw Je}}return(0,i.List)(B)}},{key:"findDescendant",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wn,B=!0,le=!1,Le=void 0;try{for(var Je=this.descendants()[Symbol.iterator](),Ct;!(B=(Ct=Je.next()).done);B=!0){var Vt=Ct.value,bn=J(Vt,2),Hn=bn[0],br=bn[1];if(z(Hn,br))return Hn}}catch(ei){le=!0,Le=ei}finally{try{!B&&Je.return&&Je.return()}finally{if(le)throw Le}}return null}},{key:"forEachDescendant",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wn,B=!0,le=!1,Le=void 0;try{for(var Je=this.descendants()[Symbol.iterator](),Ct;!(B=(Ct=Je.next()).done);B=!0){var Vt=Ct.value,bn=z.apply(void 0,q(Vt));if(bn===!1)return}}catch(Hn){le=!0,Le=Hn}finally{try{!B&&Je.return&&Je.return()}finally{if(le)throw Le}}}},{key:"getActiveMarksAtRange",value:function(z){if(z=this.resolveRange(z),z.isUnset)return(0,i.Set)();if(z.isCollapsed){var B=z,le=B.start;return this.getInsertMarksAtPoint(le)}var Le=z,Je=Le.start,Ct=Le.end,Vt=Je.path,bn=Je.offset,Hn=Ct.path,br=Ct.offset,ei=this.getDescendant(Vt),mi=this.getDescendant(Hn);if(!Vt.equals(Hn)){for(;!Vt.equals(Hn)&&br===0;){var Li=this.texts({path:Hn,direction:"backward"}),na=J(Li,1),ji=J(na[0],2);mi=ji[0],Hn=ji[1],br=mi.text.length}for(;!Vt.equals(Hn)&&bn===ei.text.length;){var $a=this.texts({path:Vt}),Ha=J($a,1),Eo=J(Ha[0],2);ei=Eo[0],Vt=Eo[1],bn=0}}if(Vt.equals(Hn))return ei.marks;var Uo=ei.marks;if(Uo.size===0)return(0,i.Set)();var Ms=mi.marks,er=Uo.intersect(Ms);if(er.size===0)return er;var Ar=this.texts({path:Vt}),Kr=J(Ar,1),ur=J(Kr[0],2);for(ei=ur[0],Vt=ur[1];!Vt.equals(Hn);){if(ei.text.length!==0&&(er=er.intersect(ei.marks),er.size===0))return(0,i.Set)();var Gr=this.texts({path:Vt}),Pi=J(Gr,1),aa=J(Pi[0],2);ei=aa[0],Vt=aa[1]}return er}},{key:"getAncestors",value:function(z){var B=this.ancestors(z),le=Array.from(B,function(Je){var Ct=J(Je,1),Vt=Ct[0];return Vt}).reverse(),Le=(0,i.List)(le);return Le}},{key:"getBlocks",value:function(){var z=this.blocks({onlyLeaves:!0}),B=Array.from(z,function(Le){var Je=J(Le,1),Ct=Je[0];return Ct}),le=(0,i.List)(B);return le}},{key:"getBlocksByType",value:function(z){var B=this.blocks({onlyLeaves:!0,onlyTypes:[z]}),le=Array.from(B,function(Je){var Ct=J(Je,1),Vt=Ct[0];return Vt}),Le=(0,i.List)(le);return Le}},{key:"getChild",value:function(z){if(z=this.resolvePath(z),!z||z.size>1)return null;var B=this.nodes.get(z.first());return B}},{key:"getClosest",value:function(z,B){var le=!0,Le=!1,Je=void 0;try{for(var Ct=this.ancestors(z)[Symbol.iterator](),Vt;!(le=(Vt=Ct.next()).done);le=!0){var bn=Vt.value,Hn=J(bn,2),br=Hn[0],ei=Hn[1];if(B(br,ei))return br}}catch(mi){Le=!0,Je=mi}finally{try{!le&&Ct.return&&Ct.return()}finally{if(Le)throw Je}}return null}},{key:"getClosestBlock",value:function(z){var B=this.getClosest(z,function(le){return le.object==="block"});return B}},{key:"getClosestInline",value:function(z){var B=this.getClosest(z,function(le){return le.object==="inline"});return B}},{key:"getClosestVoid",value:function(z,B){(0,l.Z)(!Kt.isValue(B),"As of Slate 0.42.0, the `node.getClosestVoid` method takes an `editor` instead of a `value`.");var le=this.getClosest(z,function(Le){return B.isVoid(Le)});return le}},{key:"getCommonAncestor",value:function(z,B){if(z=this.resolvePath(z),B=this.resolvePath(B),!z||!B)return null;var le=ue.relate(z,B),Le=this.getNode(le);return Le}},{key:"getDecorations",value:function(z){var B=z.run("decorateNode",this);return B=It.createList(B),B}},{key:"getDepth",value:function(z){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(z=this.resolvePath(z),!z)return null;var le=this.getNode(z),Le=le?z.size-1+B:null;return Le}},{key:"getDescendant",value:function(z){if(z=this.resolvePath(z),!z||!z.size)return null;var B=this;return z.forEach(function(le){return B=B.getIn(["nodes",le]),!!B}),B}},{key:"getDescendantsAtRange",value:function(z){var B=this.descendants({range:z}),le=Array.from(B,function(Je){var Ct=J(Je,1),Vt=Ct[0];return Vt}),Le=(0,i.List)(le);return Le}},{key:"getFragmentAtRange",value:function(z){if(z=this.resolveRange(z),z.isUnset)return ut.create();for(var B=z,le=B.start,Le=B.end,Je=this,Ct=Le.path,Vt=Le.offset,bn="end";Ct.size;){var Hn=Ct.last();Je=Je.splitNode(Ct,Vt),Vt=Hn+1,Ct=ue.lift(Ct),!Ct.size&&bn==="end"&&(Ct=le.path,Vt=le.offset,bn="start")}var br=le.path.first()+1,ei=Le.path.first()+2,mi=Je.nodes.slice(br,ei),Li=ut.create({nodes:mi});return Li}},{key:"getFurthest",value:function(z){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wn,le=this.ancestors(z),Le=Array.from(le).reverse(),Je=!0,Ct=!1,Vt=void 0;try{for(var bn=Le[Symbol.iterator](),Hn;!(Je=(Hn=bn.next()).done);Je=!0){var br=Hn.value,ei=J(br,2),mi=ei[0],Li=ei[1];if(B(mi,Li))return mi}}catch(na){Ct=!0,Vt=na}finally{try{!Je&&bn.return&&bn.return()}finally{if(Ct)throw Vt}}return null}},{key:"getFurthestBlock",value:function(z){var B=this.getFurthest(z,function(le){return le.object==="block"});return B}},{key:"getFurthestChild",value:function(z){if(z=this.resolvePath(z),!z||!z.size)return null;var B=this.nodes.get(z.first());return B}},{key:"getFurthestInline",value:function(z){var B=this.getFurthest(z,function(le){return le.object==="inline"});return B}},{key:"getInlines",value:function(){var z=this.inlines({onlyLeaves:!0}),B=Array.from(z,function(Le){var Je=J(Le,1),Ct=Je[0];return Ct}),le=(0,i.List)(B);return le}},{key:"getInlinesByType",value:function(z){var B=this.inlines({onlyLeaves:!0,onlyTypes:[z]}),le=Array.from(B,function(Je){var Ct=J(Je,1),Vt=Ct[0];return Vt}),Le=(0,i.List)(le);return Le}},{key:"getInsertMarksAtPoint",value:function(z){z=this.resolvePoint(z);var B=z,le=B.path,Le=B.offset,Je=this.getDescendant(le);if(Le!==0)return Je.marks;var Ct=void 0,Vt=void 0,bn=!0,Hn=!1,br=void 0;try{for(var ei=this.ancestors(le)[Symbol.iterator](),mi;!(bn=(mi=ei.next()).done);bn=!0){var Li=mi.value,na=J(Li,2),ji=na[0],$a=na[1];ji.object==="block"&&(Ct=ji,Vt=$a)}}catch(Kr){Hn=!0,br=Kr}finally{try{!bn&&ei.return&&ei.return()}finally{if(Hn)throw br}}var Ha=ue.drop(le,Vt.size),Eo=Ct.texts({path:Ha,direction:"backward"}),Uo=J(Eo,1),Ms=Uo[0];if(!Ms)return Je.marks;var er=J(Ms,1),Ar=er[0];return Ar.marks}},{key:"getInsertMarksAtRange",value:function(z){z=this.resolveRange(z);var B=z,le=B.start;if(z.isUnset)return(0,i.Set)();if(z.isCollapsed)return this.getInsertMarksAtPoint(le);var Le=this.getDescendant(le.path);return Le.marks}},{key:"getLeafBlocksAtRange",value:function(z){var B=this.blocks({range:z,onlyLeaves:!0}),le=Array.from(B,function(Je){var Ct=J(Je,1),Vt=Ct[0];return Vt}),Le=(0,i.List)(le);return Le}},{key:"getLeafInlinesAtRange",value:function(z){var B=this.inlines({range:z,onlyLeaves:!0}),le=Array.from(B,function(Je){var Ct=J(Je,1),Vt=Ct[0];return Vt}),Le=(0,i.List)(le);return Le}},{key:"getNodesToPathsMap",value:function(){var z=this,B=typeof window>"u"?new Qt.Map:new window.Map;return B.set(z,ue.create([])),z.forEachDescendant(function(le,Le){B.set(le,Le)}),B}},{key:"getMarks",value:function(){var z=this.marks(),B=Array.from(z,function(le){var Le=J(le,1),Je=Le[0];return Je});return(0,i.OrderedSet)(B)}},{key:"getMarksAtRange",value:function(z){var B=this.marks({range:z}),le=Array.from(B,function(Le){var Je=J(Le,1),Ct=Je[0];return Ct});return(0,i.OrderedSet)(le)}},{key:"getMarksByType",value:function(z){var B=this.marks({onlyTypes:[z]}),le=Array.from(B,function(Le){var Je=J(Le,1),Ct=Je[0];return Ct});return(0,i.OrderedSet)(le)}},{key:"getNextBlock",value:function(z){var B=this.blocks({path:z,onlyLeaves:!0}),le=J(B,1),Le=le[0],Je=Le?Le[0]:null;return Je}},{key:"getNextNode",value:function(z){var B=this.createIterable({path:z,downward:!1}),le=J(B,1),Le=le[0],Je=Le?Le[0]:null;return Je}},{key:"getNextSibling",value:function(z){var B=this.siblings(z),le=J(B,1),Le=le[0],Je=Le?Le[0]:null;return Je}},{key:"getNextText",value:function(z){var B=this.texts({path:z}),le=J(B,1),Le=le[0],Je=Le?Le[0]:null;return Je}},{key:"getOffset",value:function(z){z=this.resolvePath(z),this.assertDescendant(z);var B=z.first(),le=this.nodes.slice(0,B).reduce(function(Je,Ct){return Je+Ct.text.length},0),Le=z.size===1?le:le+this.nodes.get(B).getOffset(ue.drop(z));return Le}},{key:"getOffsetAtRange",value:function(z){if(z=this.resolveRange(z),z.isUnset)throw new Error("The range cannot be unset to calculcate its offset.");if(z.isExpanded)throw new Error("The range must be collapsed to calculcate its offset.");var B=z,le=B.start,Le=this.getOffset(le.path)+le.offset;return Le}},{key:"getParent",value:function(z){if(z=this.resolvePath(z),!z||!z.size)return null;var B=ue.lift(z),le=this.getNode(B);return le}},{key:"getPreviousBlock",value:function(z){var B=this.blocks({path:z,onlyLeaves:!0,direction:"backward"}),le=J(B,1),Le=le[0],Je=Le?Le[0]:null;return Je}},{key:"getPreviousNode",value:function(z){var B=this.createIterable({path:z,downward:!1,direction:"backward"}),le=J(B,1),Le=le[0],Je=Le?Le[0]:null;return Je}},{key:"getPreviousSibling",value:function(z){var B=this.siblings(z,{direction:"backward"}),le=J(B,1),Le=le[0],Je=Le?Le[0]:null;return Je}},{key:"getPreviousText",value:function(z){var B=this.texts({path:z,direction:"backward"}),le=J(B,1),Le=le[0],Je=Le?Le[0]:null;return Je}},{key:"getRootBlocksAtRange",value:function(z){var B=this.blocks({range:z,onlyRoots:!0}),le=Array.from(B,function(Je){var Ct=J(Je,1),Vt=Ct[0];return Vt}),Le=(0,i.List)(le);return Le}},{key:"getRootInlinesAtRange",value:function(z){var B=this.inlines({range:z,onlyRoots:!0}),le=Array.from(B,function(Je){var Ct=J(Je,1),Vt=Ct[0];return Vt}),Le=(0,i.List)(le);return Le}},{key:"getTextAtOffset",value:function(z){if(z===0)return this.getFirstText();if(z===this.text.length)return this.getLastText();if(z<0||z>this.text.length)return null;var B=0,le=!0,Le=!1,Je=void 0;try{for(var Ct=this.texts()[Symbol.iterator](),Vt;!(le=(Vt=Ct.next()).done);le=!0){var bn=Vt.value,Hn=J(bn,1),br=Hn[0];if(B+=br.text.length,B>z)return br}}catch(ei){Le=!0,Je=ei}finally{try{!le&&Ct.return&&Ct.return()}finally{if(Le)throw Je}}return null}},{key:"getTextDirection",value:function(){var z=w()(this.text);return z==="neutral"?null:z}},{key:"getTexts",value:function(){var z=this.texts(),B=Array.from(z,function(Le){var Je=J(Le,1),Ct=Je[0];return Ct}),le=(0,i.List)(B);return le}},{key:"getTextsAtRange",value:function(z){var B=this.texts({range:z}),le=Array.from(B,function(Je){var Ct=J(Je,1),Vt=Ct[0];return Vt}),Le=(0,i.List)(le);return Le}},{key:"hasBlockChildren",value:function(){return!!(this.nodes&&this.nodes.find(function(z){return z.object==="block"}))}},{key:"hasChild",value:function(z){var B=this.getChild(z);return!!B}},{key:"hasInlineChildren",value:function(){return!!(this.nodes&&this.nodes.find(function(z){return z.object==="inline"||z.object==="text"}))}},{key:"hasDescendant",value:function(z){var B=this.getDescendant(z);return!!B}},{key:"hasVoidParent",value:function(z,B){(0,l.Z)(!Kt.isValue(B),"As of Slate 0.42.0, the `node.hasVoidParent` method takes an `editor` instead of a `value`.");var le=this.getClosestVoid(z,B);return!!le}},{key:"inlines",value:function(){var z=this,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=B.onlyLeaves,Le=B.onlyRoots,Je=B.onlyTypes,Ct=B.match,Vt=X(B,["onlyLeaves","onlyRoots","onlyTypes","match"]),bn=this.descendants(j({includeBlocks:!1,includeTexts:!1,includeDocument:!1},Vt,{match:function(br,ei){return Je&&!Je.includes(br.type)||le&&!br.isLeafInline()||Le&&z.getParent(ei).object!=="block"?!1:!(Ct&&!Ct(br,ei))}}));return bn}},{key:"insertNode",value:function(z,B){z=this.resolvePath(z);var le=z.last(),Le=ue.lift(z),Je=this.assertNode(Le),Ct=Je.nodes.splice(le,0,B);Je=Je.set("nodes",Ct);var Vt=this.replaceNode(Le,Je);return Vt}},{key:"insertText",value:function(z,B,le){z=this.resolvePath(z);var Le=this.assertDescendant(z);Le=Le.insertText(B,le);var Je=this.replaceNode(z,Le);return Je}},{key:"isLeafBlock",value:function(){return!(this.object!=="block"||this.nodes.some(function(z){return z.object==="block"}))}},{key:"isLeafInline",value:function(){return!(this.object!=="inline"||this.nodes.some(function(z){return z.object==="inline"}))}},{key:"isInRange",value:function(z,B){if(z=this.resolvePath(z),B=this.resolveRange(B),B.isUnset)return!1;var le=ue.compare(z,B.start.path),Le=ue.compare(z,B.end.path),Je=le!==-1&&Le!==1;return Je}},{key:"mapChildren",value:function(){var z=this,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wn,le=this.nodes;le.forEach(function(Je,Ct){var Vt=B(Je,Ct,z.nodes);Vt!==Je&&(le=le.set(Vt.key,Vt))});var Le=this.set("nodes",le);return Le}},{key:"mapDescendants",value:function(){var z=this,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wn,le=this.nodes;le.forEach(function(Je,Ct){var Vt=Je;Vt.object!=="text"&&(Vt=Vt.mapDescendants(B)),Vt=B(Vt,Ct,z.nodes),Vt!==Je&&(le=le.set(Ct,Vt))});var Le=this.set("nodes",le);return Le}},{key:"marks",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=z.onlyTypes,le=B===void 0?null:B,Le=z.match,Je=X(z,["onlyTypes","match"]),Ct=this.texts(Je);return W({},Symbol.iterator,function(){var Vt=Ct[Symbol.iterator](),bn=null,Hn=null,br=[],ei=function mi(){if(br.length){var Li=br.shift();return le&&!le.includes(Li.type)||Le&&!Le(Li,bn,Hn)?mi():{value:[Li,bn,Hn],done:!1}}var na=Vt.next(),ji=na.value,$a=na.done;if($a)return{done:!0};var Ha=J(ji,2);return bn=Ha[0],Hn=Ha[1],br=bn.marks.toArray(),mi()};return{next:ei}})}},{key:"mergeNode",value:function(z){var B=this.assertNode(z);if(z=this.resolvePath(z),z.last()===0)throw new Error("Unable to merge node because it has no previous sibling: "+B);var le=ue.decrement(z),Le=this.assertNode(le);if(Le.object!==B.object)throw new Error("Unable to merge two different kinds of nodes: "+Le+" and "+B);var Je=Le.object==="text"?Le.mergeText(B):Le.set("nodes",Le.nodes.concat(B.nodes)),Ct=this;return Ct=Ct.removeNode(z),Ct=Ct.removeNode(le),Ct=Ct.insertNode(le,Je),Ct}},{key:"moveNode",value:function(z,B){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Le=this.assertNode(z);z=this.resolvePath(z),B=this.resolvePath(B,le);var Je=ue.lift(B);this.assertNode(Je);var Ct=Rt.create({type:"move_node",path:z,newPath:B});B=ue.transform(z,Ct).first();var Vt=this;return Vt=Vt.removeNode(z),Vt=Vt.insertNode(B,Le),Vt}},{key:"removeMark",value:function(z,B){z=this.resolvePath(z);var le=this.assertDescendant(z);le=le.removeMark(B);var Le=this.replaceNode(z,le);return Le}},{key:"removeNode",value:function(z){this.assertDescendant(z),z=this.resolvePath(z);var B=z.flatMap(function(Le){return["nodes",Le]}),le=this.deleteIn(B);return le}},{key:"removeText",value:function(z,B,le){var Le=this.assertDescendant(z);Le=Le.removeText(B,le.length);var Je=this.replaceNode(z,Le);return Je}},{key:"replaceNode",value:function(z,B){if(z=this.resolvePath(z),!z)throw new Error("Unable to replace a node because it could not be found in the first place: "+z);if(!z.size)return B;this.assertNode(z);var le=z.flatMap(function(Je){return["nodes",Je]}),Le=this.setIn(le,B);return Le}},{key:"resolveAnnotation",value:function(z){return z=Et.create(z),z=z.normalize(this),z}},{key:"resolveDecoration",value:function(z){return z=It.create(z),z=z.normalize(this),z}},{key:"resolvePoint",value:function(z){return z=ve.create(z),z=z.normalize(this),z}},{key:"resolveRange",value:function(z){return z=Oe.create(z),z=z.normalize(this),z}},{key:"resolveSelection",value:function(z){return z=Ae.create(z),z=z.normalize(this),z}},{key:"setNode",value:function(z,B){var le=this.assertNode(z);le=le.merge(B);var Le=this.replaceNode(z,le);return Le}},{key:"setMark",value:function(z,B,le){z=this.resolvePath(z);var Le=this.assertDescendant(z);Le=Le.setMark(B,le);var Je=this.replaceNode(z,Le);return Je}},{key:"siblings",value:function(z,B){var le=this.createIterable(j({path:z,upward:!1,downward:!1},B));return le}},{key:"splitNode",value:function(z,B,le){var Le=this.assertNode(z);z=this.resolvePath(z);var Je=void 0,Ct=void 0;if(Le.object==="text"){var Vt=Le.splitText(B),bn=J(Vt,2);Je=bn[0],Ct=bn[1]}else{var Hn=Le.nodes.take(B),br=Le.nodes.skip(B);Je=Le.set("nodes",Hn),Ct=Le.set("nodes",br).regenerateKey()}le&&Le.object!=="text"&&(Ct=Ct.merge(le));var ei=this;return ei=ei.removeNode(z),ei=ei.insertNode(z,Ct),ei=ei.insertNode(z,Je),ei}},{key:"texts",value:function(z){var B=this.descendants(j({includeBlocks:!1,includeInlines:!1,includeDocument:!1},z));return B}},{key:"getBlocksAtRange",value:function(z){return(0,v.Z)(!1,"As of slate@0.44 the `node.getBlocksAtRange` method has been renamed to `getLeafBlocksAtRange`."),this.getLeafBlocksAtRange(z)}},{key:"getBlocksAtRangeAsArray",value:function(z){return(0,v.Z)(!1,"As of slate@0.44 the `node.getBlocksAtRangeAsArray` method has been renamed to `getLeafBlocksAtRangeAsArray`."),this.getLeafBlocksAtRangeAsArray(z)}},{key:"getInlinesAtRange",value:function(z){return(0,v.Z)(!1,"As of slate@0.44 the `node.getInlinesAtRange` method has been renamed to `getLeafInlinesAtRange`."),this.getLeafInlinesAtRange(z)}},{key:"getInlinesAtRangeAsArray",value:function(z){return(0,v.Z)(!1,"As of slate@0.44 the `node.getInlinesAtRangeAsArray` method has been renamed to `getLeafInlinesAtRangeAsArray`."),this.getLeafInlinesAtRangeAsArray(z)}},{key:"getNextTextAndPath",value:function(z){return(0,v.Z)(!1,"As of slate@0.47, the `getNextTextAndPath` method has been renamed to `getNextTextEntry`."),this.getNextTextEntry(z)}},{key:"getNextDeepMatchingNodeAndPath",value:function(z){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0};(0,v.Z)(!1,"As of slate@0.47, the `getNextDeepMatchingNodeAndPath` method is deprecated.");var le=this.getNextMatchingNodeAndPath(z);if(!le)return null;for(var Le=J(le,2),Je=Le[0],Ct=Le[1],Vt=void 0,bn=function(){return Vt=Je.object!=="text"&&Je.findFirstDescendantAndPath(B,Ct),Vt};bn(Vt);){var Hn=Vt,br=J(Hn,2);Je=br[0],Ct=br[1]}return Je?B(Je)?[Je,Ct]:this.getNextDeepMatchingNodeAndPath(le[1],B):null}},{key:"getPreviousTextAndPath",value:function(z){return(0,v.Z)(!1,"As of slate@0.47, the `getPreviousTextAndPath` method has been renamed to `getPreviousTextEntry`."),this.getPreviousTextEntry(z)}},{key:"findFirstDescendantAndPath",value:function(z,B){return(0,v.Z)(!1,"As of slate@0.47, the `findFirstDescendantAndPath` method is deprecated."),this.findDescendantAndPath(z,B,!1)}},{key:"getPreviousMatchingNodeAndPath",value:function(z){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0};if((0,v.Z)(!1,"As of slate@0.47, the `getPreviousMatchingNodeAndPath` method is deprecated."),!z)return null;for(var le=z.size;le>0;le--){var Le=z.slice(0,le);if(Le.last()!==0){for(var Je=ue.decrement(Le),Ct=this.getNode(Je);Ct&&!B(Ct);)Je=ue.decrement(Je),Ct=this.getNode(Je);if(Ct)return[Ct,Je]}}return null}},{key:"getPreviousDeepMatchingNodeAndPath",value:function(z){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0};(0,v.Z)(!1,"As of slate@0.47, the `getPreviousDeepMatchingNodeAndPath` method is deprecated.");var le=this.getPreviousMatchingNodeAndPath(z);if(!le)return null;for(var Le=J(le,2),Je=Le[0],Ct=Le[1],Vt=void 0,bn=function(){return Vt=Je.object!=="text"&&Je.findLastDescendantAndPath(B,Ct),Vt};bn(Vt);){var Hn=Vt,br=J(Hn,2);Je=br[0],Ct=br[1]}return Je?B(Je)?[Je,Ct]:this.getPreviousDeepMatchingNodeAndPath(le[1],B):null}},{key:"findLastDescendantAndPath",value:function(z,B){return(0,v.Z)(!1,"As of slate@0.47, the `findLastDescendantAndPath` method is deprecated."),this.findDescendantAndPath(z,B,!0)}},{key:"findDescendantAndPath",value:function(z){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ue.create([]),le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(0,v.Z)(!1,"As of slate@0.47, the `findDescendantAndPath` method is deprecated.");var Le=void 0,Je=void 0;return this.forEachDescendantWithPath(function(Ct,Vt,bn){if(z(Ct,Vt,bn))return Le=Ct,Je=Vt,!1},B,le),Le?[Le,Je]:null}},{key:"forEachDescendantWithPath",value:function(z){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ue.create([]),le=arguments[2];(0,v.Z)(!1,"As of slate@0.47, the `forEachDescendantWithPath` method is deprecated.");var Le=this.nodes,Je=void 0;return le&&(Le=Le.reverse()),Le.forEach(function(Ct,Vt){var bn=B.concat(Vt);if(z(Ct,bn,Le)===!1)return Je=!1,!1;if(Ct.object!=="text")return Je=Ct.forEachDescendantWithPath(z,bn,le),Je}),Je}},{key:"getNextMatchingNodeAndPath",value:function(z){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0};if((0,v.Z)(!1,"As of slate@0.47, the `getNextMatchingNodeAndPath` method is deprecated."),!z)return null;for(var le=z.size;le>0;le--){for(var Le=z.slice(0,le),Je=ue.increment(Le),Ct=this.getNode(Je);Ct&&!B(Ct);)Je=ue.increment(Je),Ct=this.getNode(Je);if(Ct)return[Ct,Je]}return null}},{key:"getSelectionIndexes",value:function(z){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;(0,v.Z)(!1,"As of slate@0.47, the `getSelectionIndexes` method is deprecated.");var le=z.start,Le=z.end;if(!B||z.isUnset)return null;if(le.path.equals(Le.path)){var Je=this.getFurthestAncestor(le.path),Ct=Je?this.nodes.indexOf(Je):null;return{start:Ct,end:Ct+1}}var Vt=null,bn=null;return this.nodes.forEach(function(Hn,br){return Hn.object==="text"?(Vt==null&&Hn.key===le.key&&(Vt=br),bn==null&&Hn.key===Le.key&&(bn=br+1)):(Vt==null&&Hn.hasDescendant(le.key)&&(Vt=br),bn==null&&Hn.hasDescendant(Le.key)&&(bn=br+1)),Vt==null||bn==null}),B&&Vt==null&&(Vt=0),B&&bn==null&&(bn=this.nodes.size),Vt==null?null:{start:Vt,end:bn}}},{key:"getTextsBetweenPositionsAsArray",value:function(z,B){return(0,v.Z)(!1,"As of slate@0.47, the `getTextsBetweenPositionsAsArray` method is deprecated."),z=this.resolvePath(z),B=this.resolvePath(B),this.getTextsBetweenPathPositionsAsArray(z,B)}},{key:"getOrderedMarksBetweenPositions",value:function(z,B,le,Le){(0,v.Z)(!1,"As of slate@0.47, the `getOrderedMarksBetweenPositions` method is deprecated."),z=this.resolvePath(z),le=this.resolvePath(le);var Je=this.getDescendant(z);if(ue.isEqual(z,le))return Je.marks;var Ct=this.getTextsBetweenPathPositionsAsArray(z,le);return(0,i.OrderedSet)().withMutations(function(Vt){Ct.forEach(function(bn){Vt.union(bn.marks)})})}},{key:"getTextsBetweenPathPositionsAsArray",value:function(z,B){if((0,v.Z)(!1,"As of slate@0.47, the `getTextsBetweenPathPositionsAsArray` method is deprecated."),z&&B&&ue.isEqual(z,B))return[this.getDescendant(z)];if(!z&&!B)return this.getTextsAsArray();var le=z?z.get(0,0):0,Le=B?B.get(0,this.nodes.size-1):this.nodes.size-1,Je=[];return this.nodes.slice(le,Le+1).forEach(function(Ct,Vt){if(Ct.object==="text")Je.push(Ct);else{var bn=z&&Vt===0?ue.drop(z):null,Hn=B&&Vt===Le-le?ue.drop(B):null;Je=Je.concat(Ct.getTextsBetweenPathPositionsAsArray(bn,Hn))}}),Je}},{key:"getFurthestAncestor",value:function(z){return(0,v.Z)(!1,"As of slate@0.47, the `getFurthestAncestor` method has been renamed to `getFurthestChild`."),this.getFurthestChild(z)}},{key:"getLeafBlocksAtRangeAsArray",value:function(z){if((0,v.Z)(!1,"As of slate@0.47, the `getLeafBlocksAtRangeAsArray` method is deprecated."),z=this.resolveRange(z),z.isUnset)return[];var B=z,le=B.start,Le=B.end;return this.getLeafBlocksBetweenPathPositionsAsArray(le.path,Le.path)}},{key:"getLeafBlocksBetweenPathPositionsAsArray",value:function(z,B){if((0,v.Z)(!1,"As of slate@0.47, the `getLeafBlocksBetweenPathPositionsAsArray` method is deprecated."),z&&B&&ue.isEqual(z,B))return[this.getClosestBlock(z)];if(!z&&!B)return this.getBlocksAsArray();var le=z?z.get(0,0):0,Le=B?B.get(0,this.nodes.size-1):this.nodes.size-1,Je=[];return this.nodes.slice(le,Le+1).forEach(function(Ct,Vt){if(Ct.object==="block")if(Ct.isLeafBlock())Je.push(Ct);else{var bn=z&&Vt===0?ue.drop(z):null,Hn=B&&Vt===Le-le?ue.drop(B):null;Je=Je.concat(Ct.getLeafBlocksBetweenPathPositionsAsArray(bn,Hn))}}),Je}},{key:"getBlocksAsArray",value:function(){(0,v.Z)(!1,"As of slate@0.47, the `getBlocksAsArray` method is deprecated.");var z=this.blocks({onlyLeaves:!0}),B=Array.from(z,function(le){var Le=J(le,1),Je=Le[0];return Je});return B}},{key:"getBlocksByTypeAsArray",value:function(z){(0,v.Z)(!1,"As of slate@0.47, the `getBlocksByTypeAsArray` method is deprecated.");var B=this.blocks({onlyLeaves:!0,onlyTypes:[z]}),le=Array.from(B,function(Le){var Je=J(Le,1),Ct=Je[0];return Ct});return le}},{key:"getFurthestOnlyChildAncestor",value:function(z){(0,v.Z)(!1,"As of slate@0.47, the `getFurthestOnlyChildAncestor` method is deprecated.");var B=this.getAncestors(z);if(!B)return null;var le=B.rest().reverse().takeUntil(function(Le){return Le.nodes.size>1}).last();return le||null}},{key:"getInlinesAsArray",value:function(){(0,v.Z)(!1,"As of slate@0.47, the `getInlinesAsArray` method is deprecated.");var z=Array.from(this.inlines({onlyLeaves:!0}),function(B){var le=J(B,1),Le=le[0];return Le});return z}},{key:"getInlinesByTypeAsArray",value:function(z){(0,v.Z)(!1,"As of slate@0.47, the `getInlinesByTypeAsArray` method is deprecated.");var B=Array.from(this.inlines({onlyLeaves:!0,onlyTypes:[z]}),function(le){var Le=J(le,1),Je=Le[0];return Je});return B}},{key:"getLeafInlinesAtRangeAsArray",value:function(z){var B=this;if((0,v.Z)(!1,"As of slate@0.47, the `getLeafInlinesAtRangeAsArray` method is deprecated."),z=this.resolveRange(z),z.isUnset)return[];var le=this.getTextsAtRangeAsArray(z).map(function(Le){return B.getClosestInline(Le.key)}).filter(function(Le){return Le});return le}},{key:"getOrderedMarks",value:function(){return(0,v.Z)(!1,"As of slate@0.47, the `getOrderedMarks` method has been folded into `getMarks`, which will now return an ordered set."),this.getMarks()}},{key:"getOrderedMarksAtRange",value:function(z){return(0,v.Z)(!1,"As of slate@0.47, the `getOrderedMarksAtRange` method has been folded into `getMarksAtRange`, which will now return an ordered set."),this.getMarksAtRange(z)}},{key:"getOrderedMarksByType",value:function(z){return(0,v.Z)(!1,"As of slate@0.47, the `getOrderedMarksByType` method has been folded into `getMarksByType`, which will now return an ordered set."),this.getMarksByType(z)}},{key:"getMarksByTypeAsArray",value:function(z){(0,v.Z)(!1,"As of slate@0.47, the `getMarksByTypeAsArray` method is deprecated.");var B=this.nodes.reduce(function(le,Le){return Le.object==="text"?le.concat(Le.marks.filter(function(Je){return Je.type===z})):le.concat(Le.getMarksByTypeAsArray(z))},[]);return B}},{key:"getMarksAsArray",value:function(){var z;(0,v.Z)(!1,"As of slate@0.47, the `getMarksAsArray` method is deprecated.");var B=[],le=!0,Le=!1,Je=void 0;try{for(var Ct=this.texts()[Symbol.iterator](),Vt;!(le=(Vt=Ct.next()).done);le=!0){var bn=Vt.value,Hn=J(bn,1),br=Hn[0];B.push(br.marks.toArray())}}catch(mi){Le=!0,Je=mi}finally{try{!le&&Ct.return&&Ct.return()}finally{if(Le)throw Je}}var ei=(z=[]).concat.apply(z,B);return ei}},{key:"getRootInlinesAtRangeAsArray",value:function(z){var B=this;if((0,v.Z)(!1,"As of slate@0.47, the `getRootInlinesAtRangeAsArray` method is deprecated."),z=this.resolveRange(z),z.isUnset)return(0,i.List)();var le=this.getTextsAtRangeAsArray(z).map(function(Le){return B.getFurthestInline(Le.key)}).filter(function(Le){return Le});return le}},{key:"getTextsAsArray",value:function(){(0,v.Z)(!1,"As of slate@0.47, the `getTextsAsArray` method is deprecated.");var z=this.texts(),B=Array.from(z,function(le){var Le=J(le,1),Je=Le[0];return Je});return B}},{key:"getTextsAtRangeAsArray",value:function(z){(0,v.Z)(!1,"As of slate@0.47, the `getTextsAtRangeAsArray` method is deprecated.");var B=this.texts({range:z}),le=Array.from(B,function(Le){var Je=J(Le,1),Ct=Je[0];return Ct});return le}},{key:"getMarksAtPosition",value:function(z,B){(0,v.Z)(!1,"As of slate@0.47, the `getMarksAtPosition` method is deprecated."),z=this.resolvePath(z);var le=this.getDescendant(z),Le=le.marks;if(B!==0)return(0,i.OrderedSet)(Le);var Je=this.getClosestBlock(z);if(Je.text==="")return(0,i.OrderedSet)(Le);var Ct=this.texts({path:z,direction:"backward"}),Vt=J(Ct,1),bn=Vt[0];if(!bn)return(0,i.OrderedSet)();var Hn=J(bn,2),br=Hn[0],ei=Hn[1];return Je.hasDescendant(ei)?(0,i.OrderedSet)(br.marks):(0,i.OrderedSet)(Le)}},{key:"getNodesAtRange",value:function(z){(0,v.Z)(!1,"As of slate@0.47, the `getNodesAtRange` method has been renamed to `getDescendantsAtRange`.");var B=this.descendants({range:z}),le=Array.from(B,function(Je){var Ct=J(Je,1),Vt=Ct[0];return Vt}),Le=(0,i.List)(le);return Le}},{key:"isNodeInRange",value:function(z,B){return(0,v.Z)(!1,"As of slate@0.47, the `isNodeInRange` method has been renamed to `isInRange`."),this.isInRange(z,B)}},{key:"text",get:function(){return this.getText()}}]),Ee}(),Or=["Child","Depth","Descendant","Node","Parent","Path"],Si=function(Y){fr.prototype["assert"+Y]=function(z){for(var B=arguments.length,le=Array(B>1?B-1:0),Le=1;Le<B;Le++)le[Le-1]=arguments[Le];var Je=this["get"+Y].apply(this,[z].concat(le));if(Je==null)throw new Error("`Node.assert"+Y+"` could not find node with path or key: "+z);return Je}},Fi=!0,Bi=!1,Ui=void 0;try{for(var vi=Or[Symbol.iterator](),Xa;!(Fi=(Xa=vi.next()).done);Fi=!0){var Ko=Xa.value;Si(Ko)}}catch(Ee){Bi=!0,Ui=Ee}finally{try{!Fi&&vi.return&&vi.return()}finally{if(Bi)throw Ui}}qa(fr.prototype,["getBlocksAsArray","getBlocksByTypeAsArray","getDecorations","getFragmentAtRange","getInlinesAsArray","getInlinesByTypeAsArray","getInsertMarksAtRange","getLeafBlocksAtRangeAsArray","getLeafBlocksAtRangeAsArray","getLeafInlinesAtRangeAsArray","getMarksAsArray","getMarksAtPosition","getMarksByTypeAsArray","getNextBlock","getNodesAtRange","getNodesToPathsMap","getOffset","getOffsetAtRange","getOrderedMarksBetweenPositions","getPreviousBlock","getRootBlocksAtRange","getRootInlinesAtRangeAsArray","getTextAtOffset","getTextDirection","getTextsAsArray","getTextsBetweenPathPositionsAsArray"]),ai(fr,[Lt,ut,mt]);var So=function(){function Ee(){K(this,Ee)}return _(Ee,[{key:"flip",value:function(){var z=this.setPoints([this.focus,this.anchor]);return z}},{key:"moveForward",value:function(z){return this.updatePoints(function(B){return B.moveForward(z)})}},{key:"moveBackward",value:function(z){return this.updatePoints(function(B){return B.moveBackward(z)})}},{key:"moveAnchorBackward",value:function(z){var B=this.setAnchor(this.anchor.moveBackward(z));return B}},{key:"moveAnchorForward",value:function(z){var B=this.setAnchor(this.anchor.moveForward(z));return B}},{key:"moveAnchorTo",value:function(z,B){var le=this.setAnchor(this.anchor.moveTo(z,B));return le}},{key:"moveAnchorToStartOfNode",value:function(z){var B=this.setAnchor(this.anchor.moveToStartOfNode(z));return B}},{key:"moveAnchorToEndOfNode",value:function(z){var B=this.setAnchor(this.anchor.moveToEndOfNode(z));return B}},{key:"moveEndBackward",value:function(z){var B=this.setEnd(this.end.moveBackward(z));return B}},{key:"moveEndForward",value:function(z){var B=this.setEnd(this.end.moveForward(z));return B}},{key:"moveEndTo",value:function(z,B){var le=this.setEnd(this.end.moveTo(z,B));return le}},{key:"moveEndToStartOfNode",value:function(z){var B=this.setEnd(this.end.moveToStartOfNode(z));return B}},{key:"moveEndToEndOfNode",value:function(z){var B=this.setEnd(this.end.moveToEndOfNode(z));return B}},{key:"moveFocusBackward",value:function(z){var B=this.setFocus(this.focus.moveBackward(z));return B}},{key:"moveFocusForward",value:function(z){var B=this.setFocus(this.focus.moveForward(z));return B}},{key:"moveFocusTo",value:function(z,B){var le=this.setFocus(this.focus.moveTo(z,B));return le}},{key:"moveFocusToStartOfNode",value:function(z){var B=this.setFocus(this.focus.moveToStartOfNode(z));return B}},{key:"moveFocusToEndOfNode",value:function(z){var B=this.setFocus(this.focus.moveToEndOfNode(z));return B}},{key:"moveStartBackward",value:function(z){var B=this.setStart(this.start.moveBackward(z));return B}},{key:"moveStartForward",value:function(z){var B=this.setStart(this.start.moveForward(z));return B}},{key:"moveStartTo",value:function(z,B){var le=this.setStart(this.start.moveTo(z,B));return le}},{key:"moveStartToStartOfNode",value:function(z){var B=this.setStart(this.start.moveToStartOfNode(z));return B}},{key:"moveStartToEndOfNode",value:function(z){var B=this.setStart(this.start.moveToEndOfNode(z));return B}},{key:"moveTo",value:function(z,B){return this.updatePoints(function(le){return le.moveTo(z,B)})}},{key:"moveToAnchor",value:function(){var z=this.setFocus(this.anchor);return z}},{key:"moveToEnd",value:function(){var z=this.setStart(this.end);return z}},{key:"moveToEndOfNode",value:function(z){return this.updatePoints(function(B){return B.moveToEndOfNode(z)})}},{key:"moveToFocus",value:function(){var z=this.setAnchor(this.focus);return z}},{key:"moveToRangeOfNode",value:function(z){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z,le=this.setPoints([this.anchor.moveToStartOfNode(z),this.focus.moveToEndOfNode(B)]);return le}},{key:"moveToStart",value:function(){var z=this.setEnd(this.start);return z}},{key:"moveToStartOfNode",value:function(z){return this.updatePoints(function(B){return B.moveToStartOfNode(z)})}},{key:"normalize",value:function(z){return this.updatePoints(function(B){return B.normalize(z)})}},{key:"setAnchor",value:function(z){var B=this.set("anchor",z);return B}},{key:"setEnd",value:function(z){var B=this.isBackward?this.setAnchor(z):this.setFocus(z);return B}},{key:"setFocus",value:function(z){var B=this.set("focus",z);return B}},{key:"setPoints",value:function(z){var B=J(z,2),le=B[0],Le=B[1],Je=this.set("anchor",le).set("focus",Le);return Je}},{key:"updatePoints",value:function(z){var B=this.anchor,le=this.focus;return B=z(B),le=z(le),this.merge({anchor:B,focus:le})}},{key:"setStart",value:function(z){var B=this.isBackward?this.setFocus(z):this.setAnchor(z);return B}},{key:"setProperties",value:function(z){z=Oe.createProperties(z);var B=z,le=B.anchor,Le=B.focus,Je=X(B,["anchor","focus"]);le&&(Je.anchor=ve.create(le)),Le&&(Je.focus=ve.create(Le));var Ct=this.merge(Je);return Ct}},{key:"toJSON",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B={object:this.object,anchor:this.anchor.toJSON(z),focus:this.focus.toJSON(z)};return B}},{key:"toRange",value:function(){var z=Oe.createProperties(this),B=Oe.create(z);return B}},{key:"unset",value:function(){var z=this.updatePoints(function(B){return B.unset()});return z}},{key:"isCollapsed",get:function(){return this.anchor===this.focus||this.anchor.key===this.focus.key&&this.anchor.offset===this.focus.offset}},{key:"isExpanded",get:function(){return!this.isCollapsed}},{key:"isBackward",get:function(){var z=this.isUnset,B=this.anchor,le=this.focus;if(z)return null;if(B.key===le.key)return B.offset>le.offset;var Le=ue.isBefore(le.path,B.path);return Le}},{key:"isForward",get:function(){var z=this.isBackward,B=z==null?null:!z;return B}},{key:"isUnset",get:function(){var z=this.anchor,B=this.focus,le=z.isUnset||B.isUnset;return le}},{key:"isSet",get:function(){return!this.isUnset}},{key:"start",get:function(){return this.isBackward?this.focus:this.anchor}},{key:"end",get:function(){return this.isBackward?this.anchor:this.focus}}]),Ee}();ai(So,[Et,It,Oe,Ae]);var Lo={Annotation:Et,Block:Lt,Change:sn,Data:Me,Decoration:It,Document:ut,Editor:Jo,Inline:mt,KeyUtils:I,Leaf:wi,Mark:qe,Node:Yt,Operation:Rt,PathUtils:ue,Point:ve,Range:Oe,resetMemoization:Xe,Selection:Ae,Text:hn,TextUtils:Tt,useMemoization:yt,Value:Kt};const us=Lo},65345:C=>{"use strict";var c=[];function t(u){for(var v=-1,l=0;l<c.length;l++)if(c[l].identifier===u){v=l;break}return v}function i(u,v){for(var l={},h=[],p=0;p<u.length;p++){var d=u[p],f=v.base?d[0]+v.base:d[0],g=l[f]||0,y="".concat(f," ").concat(g);l[f]=g+1;var b=t(y),E={css:d[1],media:d[2],sourceMap:d[3],supports:d[4],layer:d[5]};if(b!==-1)c[b].references++,c[b].updater(E);else{var S=s(E,v);v.byIndex=p,c.splice(p,0,{identifier:y,updater:S,references:1})}h.push(y)}return h}function s(u,v){var l=v.domAPI(v);l.update(u);var h=function(d){if(d){if(d.css===u.css&&d.media===u.media&&d.sourceMap===u.sourceMap&&d.supports===u.supports&&d.layer===u.layer)return;l.update(u=d)}else l.remove()};return h}C.exports=function(u,v){v=v||{},u=u||[];var l=i(u,v);return function(p){p=p||[];for(var d=0;d<l.length;d++){var f=l[d],g=t(f);c[g].references--}for(var y=i(p,v),b=0;b<l.length;b++){var E=l[b],S=t(E);c[S].references===0&&(c[S].updater(),c.splice(S,1))}l=y}}},30320:C=>{"use strict";var c={};function t(s){if(typeof c[s]>"u"){var u=document.querySelector(s);if(window.HTMLIFrameElement&&u instanceof window.HTMLIFrameElement)try{u=u.contentDocument.head}catch{u=null}c[s]=u}return c[s]}function i(s,u){var v=t(s);if(!v)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");v.appendChild(u)}C.exports=i},65729:C=>{"use strict";function c(t){var i=document.createElement("style");return t.setAttributes(i,t.attributes),t.insert(i,t.options),i}C.exports=c},56050:(C,c,t)=>{"use strict";function i(s){var u=t.nc;u&&s.setAttribute("nonce",u)}C.exports=i},24384:C=>{"use strict";function c(s,u,v){var l="";v.supports&&(l+="@supports (".concat(v.supports,") {")),v.media&&(l+="@media ".concat(v.media," {"));var h=typeof v.layer<"u";h&&(l+="@layer".concat(v.layer.length>0?" ".concat(v.layer):""," {")),l+=v.css,h&&(l+="}"),v.media&&(l+="}"),v.supports&&(l+="}");var p=v.sourceMap;p&&typeof btoa<"u"&&(l+=` /*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(p))))," */")),u.styleTagTransform(l,s,u.options)}function t(s){if(s.parentNode===null)return!1;s.parentNode.removeChild(s)}function i(s){var u=s.insertStyleElement(s);return{update:function(l){c(u,s,l)},remove:function(){t(u)}}}C.exports=i},89106:C=>{"use strict";function c(t,i){if(i.styleSheet)i.styleSheet.cssText=t;else{for(;i.firstChild;)i.removeChild(i.firstChild);i.appendChild(document.createTextNode(t))}}C.exports=c},75786:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(27702),s=i.useLayoutEffect;const u=s},3293:(C,c,t)=>{t(56241),C.exports=t(86453).Object.assign},44459:(C,c,t)=>{t(49701);var i=t(86453).Object;C.exports=function(u,v){return i.create(u,v)}},14262:(C,c,t)=>{t(74283);var i=t(86453).Object;C.exports=function(u,v,l){return i.defineProperty(u,v,l)}},48547:(C,c,t)=>{t(1605),C.exports=t(86453).Object.setPrototypeOf},32219:(C,c,t)=>{t(89573),t(27683),t(17767),t(23688),C.exports=t(86453).Symbol},65534:(C,c,t)=>{t(29677),t(30288),C.exports=t(13621).f("iterator")},91600:C=>{C.exports=function(c){if(typeof c!="function")throw TypeError(c+" is not a function!");return c}},92029:C=>{C.exports=function(){}},34919:(C,c,t)=>{var i=t(94192);C.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},31763:(C,c,t)=>{var i=t(56465),s=t(73147),u=t(21363);C.exports=function(v){return function(l,h,p){var d=i(l),f=s(d.length),g=u(p,f),y;if(v&&h!=h){for(;f>g;)if(y=d[g++],y!=y)return!0}else for(;f>g;g++)if((v||g in d)&&d[g]===h)return v||g||0;return!v&&-1}}},5599:C=>{var c={}.toString;C.exports=function(t){return c.call(t).slice(8,-1)}},86453:C=>{var c=C.exports={version:"2.6.12"};typeof __e=="number"&&(__e=c)},89516:(C,c,t)=>{var i=t(91600);C.exports=function(s,u,v){if(i(s),u===void 0)return s;switch(v){case 1:return function(l){return s.call(u,l)};case 2:return function(l,h){return s.call(u,l,h)};case 3:return function(l,h,p){return s.call(u,l,h,p)}}return function(){return s.apply(u,arguments)}}},40775:C=>{C.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},2676:(C,c,t)=>{C.exports=!t(26628)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},64414:(C,c,t)=>{var i=t(94192),s=t(44229).document,u=i(s)&&i(s.createElement);C.exports=function(v){return u?s.createElement(v):{}}},98685:C=>{C.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},48944:(C,c,t)=>{var i=t(55699),s=t(99700),u=t(49132);C.exports=function(v){var l=i(v),h=s.f;if(h)for(var p=h(v),d=u.f,f=0,g;p.length>f;)d.call(v,g=p[f++])&&l.push(g);return l}},66861:(C,c,t)=>{var i=t(44229),s=t(86453),u=t(89516),v=t(89709),l=t(82034),h="prototype",p=function(d,f,g){var y=d&p.F,b=d&p.G,E=d&p.S,S=d&p.P,w=d&p.B,x=d&p.W,P=b?s:s[f]||(s[f]={}),R=P[h],T=b?i:E?i[f]:(i[f]||{})[h],A,I,N;b&&(g=f);for(A in g)I=!y&&T&&T[A]!==void 0,!(I&&l(P,A))&&(N=I?T[A]:g[A],P[A]=b&&typeof T[A]!="function"?g[A]:w&&I?u(N,i):x&&T[A]==N?function(K){var _=function(W,j,re){if(this instanceof K){switch(arguments.length){case 0:return new K;case 1:return new K(W);case 2:return new K(W,j)}return new K(W,j,re)}return K.apply(this,arguments)};return _[h]=K[h],_}(N):S&&typeof N=="function"?u(Function.call,N):N,S&&((P.virtual||(P.virtual={}))[A]=N,d&p.R&&R&&!R[A]&&v(R,A,N)))};p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,C.exports=p},26628:C=>{C.exports=function(c){try{return!!c()}catch{return!0}}},44229:C=>{var c=C.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=c)},82034:C=>{var c={}.hasOwnProperty;C.exports=function(t,i){return c.call(t,i)}},89709:(C,c,t)=>{var i=t(4521),s=t(80863);C.exports=t(2676)?function(u,v,l){return i.f(u,v,s(1,l))}:function(u,v,l){return u[v]=l,u}},34985:(C,c,t)=>{var i=t(44229).document;C.exports=i&&i.documentElement},46271:(C,c,t)=>{C.exports=!t(2676)&&!t(26628)(function(){return Object.defineProperty(t(64414)("div"),"a",{get:function(){return 7}}).a!=7})},76031:(C,c,t)=>{var i=t(5599);C.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},72853:(C,c,t)=>{var i=t(5599);C.exports=Array.isArray||function(u){return i(u)=="Array"}},94192:C=>{C.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},51237:(C,c,t)=>{"use strict";var i=t(96566),s=t(80863),u=t(30520),v={};t(89709)(v,t(5660)("iterator"),function(){return this}),C.exports=function(l,h,p){l.prototype=i(v,{next:s(1,p)}),u(l,h+" Iterator")}},67752:(C,c,t)=>{"use strict";var i=t(37606),s=t(66861),u=t(87340),v=t(89709),l=t(85143),h=t(51237),p=t(30520),d=t(97034),f=t(5660)("iterator"),g=!([].keys&&"next"in[].keys()),y="@@iterator",b="keys",E="values",S=function(){return this};C.exports=function(w,x,P,R,T,A,I){h(P,x,R);var N=function(k){if(!g&&k in j)return j[k];switch(k){case b:return function(){return new P(this,k)};case E:return function(){return new P(this,k)}}return function(){return new P(this,k)}},K=x+" Iterator",_=T==E,W=!1,j=w.prototype,re=j[f]||j[y]||T&&j[T],X=re||N(T),Z=T?_?N("entries"):X:void 0,J=x=="Array"&&j.entries||re,q,L,$;if(J&&($=d(J.call(new w)),$!==Object.prototype&&$.next&&(p($,K,!0),!i&&typeof $[f]!="function"&&v($,f,S))),_&&re&&re.name!==E&&(W=!0,X=function(){return re.call(this)}),(!i||I)&&(g||W||!j[f])&&v(j,f,X),l[x]=X,l[K]=S,T)if(q={values:_?X:N(E),keys:A?X:N(b),entries:Z},I)for(L in q)L in j||u(j,L,q[L]);else s(s.P+s.F*(g||W),x,q);return q}},72166:C=>{C.exports=function(c,t){return{value:t,done:!!c}}},85143:C=>{C.exports={}},37606:C=>{C.exports=!0},67481:(C,c,t)=>{var i=t(43802)("meta"),s=t(94192),u=t(82034),v=t(4521).f,l=0,h=Object.isExtensible||function(){return!0},p=!t(26628)(function(){return h(Object.preventExtensions({}))}),d=function(E){v(E,i,{value:{i:"O"+ ++l,w:{}}})},f=function(E,S){if(!s(E))return typeof E=="symbol"?E:(typeof E=="string"?"S":"P")+E;if(!u(E,i)){if(!h(E))return"F";if(!S)return"E";d(E)}return E[i].i},g=function(E,S){if(!u(E,i)){if(!h(E))return!0;if(!S)return!1;d(E)}return E[i].w},y=function(E){return p&&b.NEED&&h(E)&&!u(E,i)&&d(E),E},b=C.exports={KEY:i,NEED:!1,fastKey:f,getWeak:g,onFreeze:y}},6601:(C,c,t)=>{"use strict";var i=t(2676),s=t(55699),u=t(99700),v=t(49132),l=t(22908),h=t(76031),p=Object.assign;C.exports=!p||t(26628)(function(){var d={},f={},g=Symbol(),y="abcdefghijklmnopqrst";return d[g]=7,y.split("").forEach(function(b){f[b]=b}),p({},d)[g]!=7||Object.keys(p({},f)).join("")!=y})?function(f,g){for(var y=l(f),b=arguments.length,E=1,S=u.f,w=v.f;b>E;)for(var x=h(arguments[E++]),P=S?s(x).concat(S(x)):s(x),R=P.length,T=0,A;R>T;)A=P[T++],(!i||w.call(x,A))&&(y[A]=x[A]);return y}:p},96566:(C,c,t)=>{var i=t(34919),s=t(7206),u=t(98685),v=t(15260)("IE_PROTO"),l=function(){},h="prototype",p=function(){var d=t(64414)("iframe"),f=u.length,g="<",y=">",b;for(d.style.display="none",t(34985).appendChild(d),d.src="javascript:",b=d.contentWindow.document,b.open(),b.write(g+"script"+y+"document.F=Object"+g+"/script"+y),b.close(),p=b.F;f--;)delete p[h][u[f]];return p()};C.exports=Object.create||function(f,g){var y;return f!==null?(l[h]=i(f),y=new l,l[h]=null,y[v]=f):y=p(),g===void 0?y:s(y,g)}},4521:(C,c,t)=>{var i=t(34919),s=t(46271),u=t(88253),v=Object.defineProperty;c.f=t(2676)?Object.defineProperty:function(h,p,d){if(i(h),p=u(p,!0),i(d),s)try{return v(h,p,d)}catch{}if("get"in d||"set"in d)throw TypeError("Accessors not supported!");return"value"in d&&(h[p]=d.value),h}},7206:(C,c,t)=>{var i=t(4521),s=t(34919),u=t(55699);C.exports=t(2676)?Object.defineProperties:function(l,h){s(l);for(var p=u(h),d=p.length,f=0,g;d>f;)i.f(l,g=p[f++],h[g]);return l}},96709:(C,c,t)=>{var i=t(49132),s=t(80863),u=t(56465),v=t(88253),l=t(82034),h=t(46271),p=Object.getOwnPropertyDescriptor;c.f=t(2676)?p:function(f,g){if(f=u(f),g=v(g,!0),h)try{return p(f,g)}catch{}if(l(f,g))return s(!i.f.call(f,g),f[g])}},51724:(C,c,t)=>{var i=t(56465),s=t(22767).f,u={}.toString,v=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(h){try{return s(h)}catch{return v.slice()}};C.exports.f=function(p){return v&&u.call(p)=="[object Window]"?l(p):s(i(p))}},22767:(C,c,t)=>{var i=t(39725),s=t(98685).concat("length","prototype");c.f=Object.getOwnPropertyNames||function(v){return i(v,s)}},99700:(C,c)=>{c.f=Object.getOwnPropertySymbols},97034:(C,c,t)=>{var i=t(82034),s=t(22908),u=t(15260)("IE_PROTO"),v=Object.prototype;C.exports=Object.getPrototypeOf||function(l){return l=s(l),i(l,u)?l[u]:typeof l.constructor=="function"&&l instanceof l.constructor?l.constructor.prototype:l instanceof Object?v:null}},39725:(C,c,t)=>{var i=t(82034),s=t(56465),u=t(31763)(!1),v=t(15260)("IE_PROTO");C.exports=function(l,h){var p=s(l),d=0,f=[],g;for(g in p)g!=v&&i(p,g)&&f.push(g);for(;h.length>d;)i(p,g=h[d++])&&(~u(f,g)||f.push(g));return f}},55699:(C,c,t)=>{var i=t(39725),s=t(98685);C.exports=Object.keys||function(v){return i(v,s)}},49132:(C,c)=>{c.f={}.propertyIsEnumerable},80863:C=>{C.exports=function(c,t){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:t}}},87340:(C,c,t)=>{C.exports=t(89709)},55306:(C,c,t)=>{var i=t(94192),s=t(34919),u=function(v,l){if(s(v),!i(l)&&l!==null)throw TypeError(l+": can't set as prototype!")};C.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(v,l,h){try{h=t(89516)(Function.call,t(96709).f(Object.prototype,"__proto__").set,2),h(v,[]),l=!(v instanceof Array)}catch{l=!0}return function(d,f){return u(d,f),l?d.__proto__=f:h(d,f),d}}({},!1):void 0),check:u}},30520:(C,c,t)=>{var i=t(4521).f,s=t(82034),u=t(5660)("toStringTag");C.exports=function(v,l,h){v&&!s(v=h?v:v.prototype,u)&&i(v,u,{configurable:!0,value:l})}},15260:(C,c,t)=>{var i=t(38498)("keys"),s=t(43802);C.exports=function(u){return i[u]||(i[u]=s(u))}},38498:(C,c,t)=>{var i=t(86453),s=t(44229),u="__core-js_shared__",v=s[u]||(s[u]={});(C.exports=function(l,h){return v[l]||(v[l]=h!==void 0?h:{})})("versions",[]).push({version:i.version,mode:t(37606)?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},16720:(C,c,t)=>{var i=t(12714),s=t(40775);C.exports=function(u){return function(v,l){var h=String(s(v)),p=i(l),d=h.length,f,g;return p<0||p>=d?u?"":void 0:(f=h.charCodeAt(p),f<55296||f>56319||p+1===d||(g=h.charCodeAt(p+1))<56320||g>57343?u?h.charAt(p):f:u?h.slice(p,p+2):(f-55296<<10)+(g-56320)+65536)}}},21363:(C,c,t)=>{var i=t(12714),s=Math.max,u=Math.min;C.exports=function(v,l){return v=i(v),v<0?s(v+l,0):u(v,l)}},12714:C=>{var c=Math.ceil,t=Math.floor;C.exports=function(i){return isNaN(i=+i)?0:(i>0?t:c)(i)}},56465:(C,c,t)=>{var i=t(76031),s=t(40775);C.exports=function(u){return i(s(u))}},73147:(C,c,t)=>{var i=t(12714),s=Math.min;C.exports=function(u){return u>0?s(i(u),9007199254740991):0}},22908:(C,c,t)=>{var i=t(40775);C.exports=function(s){return Object(i(s))}},88253:(C,c,t)=>{var i=t(94192);C.exports=function(s,u){if(!i(s))return s;var v,l;if(u&&typeof(v=s.toString)=="function"&&!i(l=v.call(s))||typeof(v=s.valueOf)=="function"&&!i(l=v.call(s))||!u&&typeof(v=s.toString)=="function"&&!i(l=v.call(s)))return l;throw TypeError("Can't convert object to primitive value")}},43802:C=>{var c=0,t=Math.random();C.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++c+t).toString(36))}},9387:(C,c,t)=>{var i=t(44229),s=t(86453),u=t(37606),v=t(13621),l=t(4521).f;C.exports=function(h){var p=s.Symbol||(s.Symbol=u?{}:i.Symbol||{});h.charAt(0)!="_"&&!(h in p)&&l(p,h,{value:v.f(h)})}},13621:(C,c,t)=>{c.f=t(5660)},5660:(C,c,t)=>{var i=t(38498)("wks"),s=t(43802),u=t(44229).Symbol,v=typeof u=="function",l=C.exports=function(h){return i[h]||(i[h]=v&&u[h]||(v?u:s)("Symbol."+h))};l.store=i},1252:(C,c,t)=>{"use strict";var i=t(92029),s=t(72166),u=t(85143),v=t(56465);C.exports=t(67752)(Array,"Array",function(l,h){this._t=v(l),this._i=0,this._k=h},function(){var l=this._t,h=this._k,p=this._i++;return!l||p>=l.length?(this._t=void 0,s(1)):h=="keys"?s(0,p):h=="values"?s(0,l[p]):s(0,[p,l[p]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},56241:(C,c,t)=>{var i=t(66861);i(i.S+i.F,"Object",{assign:t(6601)})},49701:(C,c,t)=>{var i=t(66861);i(i.S,"Object",{create:t(96566)})},74283:(C,c,t)=>{var i=t(66861);i(i.S+i.F*!t(2676),"Object",{defineProperty:t(4521).f})},1605:(C,c,t)=>{var i=t(66861);i(i.S,"Object",{setPrototypeOf:t(55306).set})},27683:()=>{},29677:(C,c,t)=>{"use strict";var i=t(16720)(!0);t(67752)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s=this._t,u=this._i,v;return u>=s.length?{value:void 0,done:!0}:(v=i(s,u),this._i+=v.length,{value:v,done:!1})})},89573:(C,c,t)=>{"use strict";var i=t(44229),s=t(82034),u=t(2676),v=t(66861),l=t(87340),h=t(67481).KEY,p=t(26628),d=t(38498),f=t(30520),g=t(43802),y=t(5660),b=t(13621),E=t(9387),S=t(48944),w=t(72853),x=t(34919),P=t(94192),R=t(22908),T=t(56465),A=t(88253),I=t(80863),N=t(96566),K=t(51724),_=t(96709),W=t(99700),j=t(4521),re=t(55699),X=_.f,Z=j.f,J=K.f,q=i.Symbol,L=i.JSON,$=L&&L.stringify,k="prototype",F=y("_hidden"),V=y("toPrimitive"),pe={}.propertyIsEnumerable,ce=d("symbol-registry"),G=d("symbols"),te=d("op-symbols"),ie=Object[k],fe=typeof q=="function"&&!!W.f,Se=i.QObject,he=!Se||!Se[k]||!Se[k].findChild,me=u&&p(function(){return N(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a!=7})?function(Ce,Ae,$e){var tt=X(ie,Ae);tt&&delete ie[Ae],Z(Ce,Ae,$e),tt&&Ce!==ie&&Z(ie,Ae,tt)}:Z,_e=function(Ce){var Ae=G[Ce]=N(q[k]);return Ae._k=Ce,Ae},we=fe&&typeof q.iterator=="symbol"?function(Ce){return typeof Ce=="symbol"}:function(Ce){return Ce instanceof q},Ge=function(Ae,$e,tt){return Ae===ie&&Ge(te,$e,tt),x(Ae),$e=A($e,!0),x(tt),s(G,$e)?(tt.enumerable?(s(Ae,F)&&Ae[F][$e]&&(Ae[F][$e]=!1),tt=N(tt,{enumerable:I(0,!1)})):(s(Ae,F)||Z(Ae,F,I(1,{})),Ae[F][$e]=!0),me(Ae,$e,tt)):Z(Ae,$e,tt)},ht=function(Ae,$e){x(Ae);for(var tt=S($e=T($e)),ke=0,Oe=tt.length,je;Oe>ke;)Ge(Ae,je=tt[ke++],$e[je]);return Ae},nt=function(Ae,$e){return $e===void 0?N(Ae):ht(N(Ae),$e)},Re=function(Ae){var $e=pe.call(this,Ae=A(Ae,!0));return this===ie&&s(G,Ae)&&!s(te,Ae)?!1:$e||!s(this,Ae)||!s(G,Ae)||s(this,F)&&this[F][Ae]?$e:!0},ue=function(Ae,$e){if(Ae=T(Ae),$e=A($e,!0),!(Ae===ie&&s(G,$e)&&!s(te,$e))){var tt=X(Ae,$e);return tt&&s(G,$e)&&!(s(Ae,F)&&Ae[F][$e])&&(tt.enumerable=!0),tt}},ae=function(Ae){for(var $e=J(T(Ae)),tt=[],ke=0,Oe;$e.length>ke;)!s(G,Oe=$e[ke++])&&Oe!=F&&Oe!=h&&tt.push(Oe);return tt},ve=function(Ae){for(var $e=Ae===ie,tt=J($e?te:T(Ae)),ke=[],Oe=0,je;tt.length>Oe;)s(G,je=tt[Oe++])&&(!$e||s(ie,je))&&ke.push(G[je]);return ke};fe||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor!");var Ae=g(arguments.length>0?arguments[0]:void 0),$e=function(tt){this===ie&&$e.call(te,tt),s(this,F)&&s(this[F],Ae)&&(this[F][Ae]=!1),me(this,Ae,I(1,tt))};return u&&he&&me(ie,Ae,{configurable:!0,set:$e}),_e(Ae)},l(q[k],"toString",function(){return this._k}),_.f=ue,j.f=Ge,t(22767).f=K.f=ae,t(49132).f=Re,W.f=ve,u&&!t(37606)&&l(ie,"propertyIsEnumerable",Re,!0),b.f=function(Ce){return _e(y(Ce))}),v(v.G+v.W+v.F*!fe,{Symbol:q});for(var Me="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Ye=0;Me.length>Ye;)y(Me[Ye++]);for(var qe=re(y.store),At=0;qe.length>At;)E(qe[At++]);v(v.S+v.F*!fe,"Symbol",{for:function(Ce){return s(ce,Ce+="")?ce[Ce]:ce[Ce]=q(Ce)},keyFor:function(Ae){if(!we(Ae))throw TypeError(Ae+" is not a symbol!");for(var $e in ce)if(ce[$e]===Ae)return $e},useSetter:function(){he=!0},useSimple:function(){he=!1}}),v(v.S+v.F*!fe,"Object",{create:nt,defineProperty:Ge,defineProperties:ht,getOwnPropertyDescriptor:ue,getOwnPropertyNames:ae,getOwnPropertySymbols:ve});var It=p(function(){W.f(1)});v(v.S+v.F*It,"Object",{getOwnPropertySymbols:function(Ae){return W.f(R(Ae))}}),L&&v(v.S+v.F*(!fe||p(function(){var Ce=q();return $([Ce])!="[null]"||$({a:Ce})!="{}"||$(Object(Ce))!="{}"})),"JSON",{stringify:function(Ae){for(var $e=[Ae],tt=1,ke,Oe;arguments.length>tt;)$e.push(arguments[tt++]);if(Oe=ke=$e[1],!(!P(ke)&&Ae===void 0||we(Ae)))return w(ke)||(ke=function(je,Et){if(typeof Oe=="function"&&(Et=Oe.call(this,je,Et)),!we(Et))return Et}),$e[1]=ke,$.apply(L,$e)}}),q[k][V]||t(89709)(q[k],V,q[k].valueOf),f(q,"Symbol"),f(Math,"Math",!0),f(i.JSON,"JSON",!0)},17767:(C,c,t)=>{t(9387)("asyncIterator")},23688:(C,c,t)=>{t(9387)("observable")},30288:(C,c,t)=>{t(1252);for(var i=t(44229),s=t(89709),u=t(85143),v=t(5660)("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),h=0;h<l.length;h++){var p=l[h],d=i[p],f=d&&d.prototype;f&&!f[v]&&s(f,v,p),u[p]=u.Array}},13650:(C,c,t)=>{t(40150),t(47101),t(97847),t(70669),t(34007),t(73472),t(43910),t(34680),t(50344),t(18778),t(25190),t(87054),t(68641),t(22523),t(30115),t(53191),t(60486),t(98023),t(58747),t(8846),t(56480),t(1186),t(98592),t(30913),t(86922),t(30346),t(49726),t(14979),t(38958),t(93123),t(14098),t(90786),t(601),t(20002),t(25285),t(14352),t(71322),t(1700),t(74364),t(35167),t(10252),t(51708),t(91232),t(45288),t(33047),t(83402),t(69779),t(80422),t(87484),t(94632),t(20878),t(25520),t(42695),t(91170),t(24109),t(5016),t(75685),t(76650),t(33850),t(33186),t(81239),t(45209),t(12754),t(52676),t(67844),t(22563),t(87039),t(35207),t(95113),t(23681),t(89074),t(62767),t(28441),t(55153),t(34939),t(76585),t(38392),t(8497),t(72681),t(55614),t(37926),t(17575),t(60461),t(67036),t(10104),t(25963),t(89844),t(18037),t(59262),t(23386),t(9992),t(5945),t(36638),t(16026),t(35498),t(59085),t(28774),t(46525),t(47493),t(36707),t(46166),t(74702),t(78734),t(66062),t(57593),t(62626),t(7815),t(47416),t(81869),t(31732),t(25894),t(23213),t(45341),t(94837),t(1497),t(31296),t(58978),t(12761),t(66847),t(90428),t(17980),t(7009),t(93394),t(8596),t(50029),t(36872),t(66782),t(3415),t(61282),t(96268),t(54688),t(78856),t(40210),t(21876),t(30886),t(92628),t(55486),t(84146),t(34117),t(92810),t(72695),t(84863),t(38486),t(6779),t(51344),t(47069),t(62816),t(78208),t(99034),t(19073),t(77459),t(46590),t(39321),t(12407),t(50780),t(64984),t(99662),t(92298),t(28036),t(68937),t(84638),t(43407),t(1877),t(19199),t(1810),t(18861),t(84562),t(89920),t(26299),t(74526),t(74607),t(94809),t(21136),t(47412),t(94128),t(93698),t(67592),t(10487),t(63445),t(94725),t(65213),t(4462),t(184),t(2536),t(87430),t(1412),t(58460),t(9096),t(28461),t(41740),t(44494),t(62016),t(38713),t(83544),t(16237),t(36825),t(24038),t(79804),t(50194),t(61454),t(31887),t(93059),t(46582),t(70661),t(65962),t(46406),t(39723),t(34782),t(25186),t(21725),t(48794),t(16007),t(90244),t(87124),t(51901),t(89626),t(25288),t(98761),t(77255),t(20912),t(9616),t(62008),t(64972),t(44601),t(34243),t(33422),t(98499),t(1512),t(57298),t(18329),t(8006),t(31882),t(71036),t(22958),t(11373),t(60689),t(52506),t(20031),t(12371),t(96074),t(56894),t(48481),t(36681),t(47828),t(53671),t(12885),t(62500),t(74989),t(55686),t(35846),t(501),t(972),t(68242),t(97003),t(11780),t(94780),t(78745),t(83678),t(66186),t(39515),t(81798),t(71127),t(96514),t(15797),t(57251),t(85702),t(66049),t(66824),t(90550),t(69803),t(38370),t(93273),t(43257),t(85298),t(95477),t(97812),t(97247),t(39088),t(26809),t(14728),t(10581),t(21689),t(52267),t(17911),t(61569),t(2618),t(9962),t(24111),t(37585),t(80965),t(55878),t(2750),t(46478),t(89149),t(49009),t(15078),t(45697),t(96550),t(10317),t(11634),t(205),t(38405),t(20309),t(7183),t(46305),t(16792),t(10463),t(78024),t(87155),t(81669),t(87722),t(19538),t(77550),t(19521),t(96054),t(32775),t(58869),t(81434),t(85395),t(32681),t(19485),t(92674),t(46267),t(81485),t(28698),t(70211),t(15102),t(42870),t(30833),t(45294),t(82966),t(11502),t(63603),t(25547),t(15660),t(7308),t(70428),t(7785),t(4587),t(47161),t(70107),t(76091),t(71735),t(58202),t(5901),t(493),t(7581),t(34841),t(55184),t(99952),t(96269),t(60037),t(94002),t(18719),t(82250),t(21718),t(92185),t(56572),t(72093),t(12959),t(75945),t(48821),t(70424),t(84097),t(54177),t(91222),t(24044),t(84894),t(40994),t(5401),t(92795),t(17194),t(11135),t(7119),t(1663),t(10711),t(49635),t(14385),t(48499),t(13290),t(22930),t(74593),t(1055),t(99714),t(98049),t(99213),t(64938),t(22156),t(33498),t(60319),t(60339),t(2568),t(47797),t(24278),t(27021),t(71265),t(36813),t(28216),t(84392),t(15617),t(4498),t(80615),t(41543),t(63661),t(28873),t(43378),t(85601),t(16763),t(44181),t(74124),t(44017),t(39301),t(54972),t(32177),t(36398),t(20038),t(18310),t(16146),t(42814),t(2306),t(90154),t(30867),t(66704),t(22515),t(34407),t(66161),t(67735),t(98028),t(9229),t(20431),t(76245),t(18100),t(29298),t(88780),t(9465),t(69810),t(74970),t(18066),t(57745),t(26152),t(89687),t(32738),t(20025),t(65334),t(96806),t(36453),t(99950),t(50171),t(77899),t(28489),t(59419),t(63894),t(95061)},3728:(C,c,t)=>{t(13650)},7319:(C,c,t)=>{var i=t(2714),s=t(70369),u=TypeError;C.exports=function(v){if(i(v))return v;throw u(s(v)+" is not a function")}},3897:(C,c,t)=>{var i=t(53582),s=t(70369),u=TypeError;C.exports=function(v){if(i(v))return v;throw u(s(v)+" is not a constructor")}},16098:(C,c,t)=>{var i=t(53033).has;C.exports=function(s){return i(s),s}},4829:(C,c,t)=>{var i=t(2714),s=String,u=TypeError;C.exports=function(v){if(typeof v=="object"||i(v))return v;throw u("Can't set "+s(v)+" as a prototype")}},75522:(C,c,t)=>{var i=t(2955).has;C.exports=function(s){return i(s),s}},67808:(C,c,t)=>{var i=t(957).has;C.exports=function(s){return i(s),s}},79470:(C,c,t)=>{var i=t(53286).has;C.exports=function(s){return i(s),s}},93050:(C,c,t)=>{var i=t(55740),s=t(31642),u=t(4630),v=t(67213),l=t(83735),h=t(70330),p=h("asyncDispose"),d=h("dispose"),f=i([].push),g=function(b,E){return E=="async-dispose"&&l(b,p)||l(b,d)},y=function(b,E,S){return s(S||g(b,E),b)};C.exports=function(b,E,S,w){var x;if(w)x=y(void 0,S,w);else{if(v(E))return;x=y(u(E),S)}f(b.stack,x)}},60596:(C,c,t)=>{var i=t(70330),s=t(69735),u=t(56768).f,v=i("unscopables"),l=Array.prototype;l[v]==null&&u(l,v,{configurable:!0,value:s(null)}),C.exports=function(h){l[v][h]=!0}},83563:(C,c,t)=>{"use strict";var i=t(56491).charAt;C.exports=function(s,u,v){return u+(v?i(s,u).length:1)}},99385:(C,c,t)=>{var i=t(720),s=TypeError;C.exports=function(u,v){if(i(v,u))return u;throw s("Incorrect invocation")}},4630:(C,c,t)=>{var i=t(73091),s=String,u=TypeError;C.exports=function(v){if(i(v))return v;throw u(s(v)+" is not an object")}},37376:C=>{C.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},32772:(C,c,t)=>{var i=t(68281),s=t(53882),u=TypeError;C.exports=i(ArrayBuffer.prototype,"byteLength","get")||function(v){if(s(v)!="ArrayBuffer")throw u("ArrayBuffer expected");return v.byteLength}},51734:(C,c,t)=>{var i=t(55740),s=t(32772),u=i(ArrayBuffer.prototype.slice);C.exports=function(v){if(s(v)!==0)return!1;try{return u(v,0,0),!1}catch{return!0}}},55563:(C,c,t)=>{var i=t(97898);C.exports=i(function(){if(typeof ArrayBuffer=="function"){var s=new ArrayBuffer(8);Object.isExtensible(s)&&Object.defineProperty(s,"a",{value:8})}})},65967:(C,c,t)=>{var i=t(75866),s=t(55740),u=t(68281),v=t(95764),l=t(51734),h=t(32772),p=t(33562),d=i.TypeError,f=i.structuredClone,g=i.ArrayBuffer,y=i.DataView,b=Math.min,E=g.prototype,S=y.prototype,w=s(E.slice),x=u(E,"resizable","get"),P=u(E,"maxByteLength","get"),R=s(S.getInt8),T=s(S.setInt8);C.exports=p&&function(A,I,N){var K=h(A),_=I===void 0?K:v(I),W=!x||!x(A);if(l(A))throw d("ArrayBuffer is detached");var j=f(A,{transfer:[A]});if(K==_&&(N||W))return j;if(K>=_&&(!N||W))return w(j,0,_);for(var re=N&&!W&&P?{maxByteLength:P(j)}:void 0,X=new g(_,re),Z=new y(j),J=new y(X),q=b(_,K),L=0;L<q;L++)T(J,L,R(Z,L));return X}},91390:(C,c,t)=>{"use strict";var i=t(37376),s=t(77022),u=t(75866),v=t(2714),l=t(73091),h=t(15275),p=t(17766),d=t(70369),f=t(37651),g=t(76156),y=t(74066),b=t(720),E=t(52839),S=t(39869),w=t(70330),x=t(8499),P=t(45699),R=P.enforce,T=P.get,A=u.Int8Array,I=A&&A.prototype,N=u.Uint8ClampedArray,K=N&&N.prototype,_=A&&E(A),W=I&&E(I),j=Object.prototype,re=u.TypeError,X=w("toStringTag"),Z=x("TYPED_ARRAY_TAG"),J="TypedArrayConstructor",q=i&&!!S&&p(u.opera)!=="Opera",L=!1,$,k,F,V={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},pe={BigInt64Array:8,BigUint64Array:8},ce=function(_e){if(!l(_e))return!1;var we=p(_e);return we==="DataView"||h(V,we)||h(pe,we)},G=function(me){var _e=E(me);if(l(_e)){var we=T(_e);return we&&h(we,J)?we[J]:G(_e)}},te=function(me){if(!l(me))return!1;var _e=p(me);return h(V,_e)||h(pe,_e)},ie=function(me){if(te(me))return me;throw re("Target is not a typed array")},fe=function(me){if(v(me)&&(!S||b(_,me)))return me;throw re(d(me)+" is not a typed array constructor")},Se=function(me,_e,we,Ge){if(s){if(we)for(var ht in V){var nt=u[ht];if(nt&&h(nt.prototype,me))try{delete nt.prototype[me]}catch{try{nt.prototype[me]=_e}catch{}}}(!W[me]||we)&&g(W,me,we?_e:q&&I[me]||_e,Ge)}},he=function(me,_e,we){var Ge,ht;if(s){if(S){if(we){for(Ge in V)if(ht=u[Ge],ht&&h(ht,me))try{delete ht[me]}catch{}}if(!_[me]||we)try{return g(_,me,we?_e:q&&_[me]||_e)}catch{}else return}for(Ge in V)ht=u[Ge],ht&&(!ht[me]||we)&&g(ht,me,_e)}};for($ in V)k=u[$],F=k&&k.prototype,F?R(F)[J]=k:q=!1;for($ in pe)k=u[$],F=k&&k.prototype,F&&(R(F)[J]=k);if((!q||!v(_)||_===Function.prototype)&&(_=function(){throw re("Incorrect invocation")},q))for($ in V)u[$]&&S(u[$],_);if((!q||!W||W===j)&&(W=_.prototype,q))for($ in V)u[$]&&S(u[$].prototype,W);if(q&&E(K)!==W&&S(K,W),s&&!h(W,X)){L=!0,y(W,X,{configurable:!0,get:function(){return l(this)?this[Z]:void 0}});for($ in V)u[$]&&f(u[$],Z,$)}C.exports={NATIVE_ARRAY_BUFFER_VIEWS:q,TYPED_ARRAY_TAG:L&&Z,aTypedArray:ie,aTypedArrayConstructor:fe,exportTypedArrayMethod:Se,exportTypedArrayStaticMethod:he,getTypedArrayConstructor:G,isView:ce,isTypedArray:te,TypedArray:_,TypedArrayPrototype:W}},48951:(C,c,t)=>{"use strict";var i=t(75866),s=t(55740),u=t(77022),v=t(37376),l=t(18551),h=t(37651),p=t(74066),d=t(24372),f=t(97898),g=t(99385),y=t(46226),b=t(90161),E=t(95764),S=t(57699),w=t(52839),x=t(39869),P=t(74757).f,R=t(43691),T=t(26970),A=t(61817),I=t(45699),N=l.PROPER,K=l.CONFIGURABLE,_="ArrayBuffer",W="DataView",j="prototype",re="Wrong length",X="Wrong index",Z=I.getterFor(_),J=I.getterFor(W),q=I.set,L=i[_],$=L,k=$&&$[j],F=i[W],V=F&&F[j],pe=Object.prototype,ce=i.Array,G=i.RangeError,te=s(R),ie=s([].reverse),fe=S.pack,Se=S.unpack,he=function(It){return[It&255]},me=function(It){return[It&255,It>>8&255]},_e=function(It){return[It&255,It>>8&255,It>>16&255,It>>24&255]},we=function(It){return It[3]<<24|It[2]<<16|It[1]<<8|It[0]},Ge=function(It){return fe(It,23,4)},ht=function(It){return fe(It,52,8)},nt=function(It,Ce,Ae){p(It[j],Ce,{configurable:!0,get:function(){return Ae(this)[Ce]}})},Re=function(It,Ce,Ae,$e){var tt=E(Ae),ke=J(It);if(tt+Ce>ke.byteLength)throw G(X);var Oe=ke.bytes,je=tt+ke.byteOffset,Et=T(Oe,je,je+Ce);return $e?Et:ie(Et)},ue=function(It,Ce,Ae,$e,tt,ke){var Oe=E(Ae),je=J(It);if(Oe+Ce>je.byteLength)throw G(X);for(var Et=je.bytes,ct=Oe+je.byteOffset,ut=$e(+tt),Ne=0;Ne<Ce;Ne++)Et[ct+Ne]=ut[ke?Ne:Ce-Ne-1]};if(!v)$=function(Ce){g(this,k);var Ae=E(Ce);q(this,{type:_,bytes:te(ce(Ae),0),byteLength:Ae}),u||(this.byteLength=Ae,this.detached=!1)},k=$[j],F=function(Ce,Ae,$e){g(this,V),g(Ce,k);var tt=Z(Ce),ke=tt.byteLength,Oe=y(Ae);if(Oe<0||Oe>ke)throw G("Wrong offset");if($e=$e===void 0?ke-Oe:b($e),Oe+$e>ke)throw G(re);q(this,{type:W,buffer:Ce,byteLength:$e,byteOffset:Oe,bytes:tt.bytes}),u||(this.buffer=Ce,this.byteLength=$e,this.byteOffset=Oe)},V=F[j],u&&(nt($,"byteLength",Z),nt(F,"buffer",J),nt(F,"byteLength",J),nt(F,"byteOffset",J)),d(V,{getInt8:function(Ce){return Re(this,1,Ce)[0]<<24>>24},getUint8:function(Ce){return Re(this,1,Ce)[0]},getInt16:function(Ce){var Ae=Re(this,2,Ce,arguments.length>1?arguments[1]:void 0);return(Ae[1]<<8|Ae[0])<<16>>16},getUint16:function(Ce){var Ae=Re(this,2,Ce,arguments.length>1?arguments[1]:void 0);return Ae[1]<<8|Ae[0]},getInt32:function(Ce){return we(Re(this,4,Ce,arguments.length>1?arguments[1]:void 0))},getUint32:function(Ce){return we(Re(this,4,Ce,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Ce){return Se(Re(this,4,Ce,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Ce){return Se(Re(this,8,Ce,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Ce,Ae){ue(this,1,Ce,he,Ae)},setUint8:function(Ce,Ae){ue(this,1,Ce,he,Ae)},setInt16:function(Ce,Ae){ue(this,2,Ce,me,Ae,arguments.length>2?arguments[2]:void 0)},setUint16:function(Ce,Ae){ue(this,2,Ce,me,Ae,arguments.length>2?arguments[2]:void 0)},setInt32:function(Ce,Ae){ue(this,4,Ce,_e,Ae,arguments.length>2?arguments[2]:void 0)},setUint32:function(Ce,Ae){ue(this,4,Ce,_e,Ae,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Ce,Ae){ue(this,4,Ce,Ge,Ae,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Ce,Ae){ue(this,8,Ce,ht,Ae,arguments.length>2?arguments[2]:void 0)}});else{var ae=N&&L.name!==_;if(!f(function(){L(1)})||!f(function(){new L(-1)})||f(function(){return new L,new L(1.5),new L(NaN),L.length!=1||ae&&!K})){$=function(Ce){return g(this,k),new L(E(Ce))},$[j]=k;for(var ve=P(L),Me=0,Ye;ve.length>Me;)(Ye=ve[Me++])in $||h($,Ye,L[Ye]);k.constructor=$}else ae&&K&&h(L,"name",_);x&&w(V)!==pe&&x(V,pe);var qe=new F(new $(2)),At=s(V.setInt8);qe.setInt8(0,2147483648),qe.setInt8(1,2147483649),(qe.getInt8(0)||!qe.getInt8(1))&&d(V,{setInt8:function(Ce,Ae){At(this,Ce,Ae<<24>>24)},setUint8:function(Ce,Ae){At(this,Ce,Ae<<24>>24)}},{unsafe:!0})}A($,_),A(F,W),C.exports={ArrayBuffer:$,DataView:F}},91824:(C,c,t)=>{"use strict";var i=t(9376),s=t(49717),u=t(84349),v=t(1003),l=Math.min;C.exports=[].copyWithin||function(p,d){var f=i(this),g=u(f),y=s(p,g),b=s(d,g),E=arguments.length>2?arguments[2]:void 0,S=l((E===void 0?g:s(E,g))-b,g-y),w=1;for(b<y&&y<b+S&&(w=-1,b+=S-1,y+=S-1);S-- >0;)b in f?f[y]=f[b]:v(f,y),y+=w,b+=w;return f}},43691:(C,c,t)=>{"use strict";var i=t(9376),s=t(49717),u=t(84349);C.exports=function(l){for(var h=i(this),p=u(h),d=arguments.length,f=s(d>1?arguments[1]:void 0,p),g=d>2?arguments[2]:void 0,y=g===void 0?p:s(g,p);y>f;)h[f++]=l;return h}},93129:(C,c,t)=>{"use strict";var i=t(45742).forEach,s=t(57999),u=s("forEach");C.exports=u?[].forEach:function(l){return i(this,l,arguments.length>1?arguments[1]:void 0)}},25643:(C,c,t)=>{"use strict";var i=t(31642),s=t(55740),u=t(9376),v=t(53582),l=t(87785),h=t(73543),p=t(21548),d=t(788),f=t(83735),g=t(30357),y=t(90731),b=t(70330),E=t(73247),S=t(8992).toArray,w=b("asyncIterator"),x=s(g("Array").values),P=s(x([]).next),R=function(){return new T(this)},T=function(A){this.iterator=x(A)};T.prototype.next=function(){return P(this.iterator)},C.exports=function(I){var N=this,K=arguments.length,_=K>1?arguments[1]:void 0,W=K>2?arguments[2]:void 0;return new(y("Promise"))(function(j){var re=u(I);_!==void 0&&(_=i(_,W));var X=f(re,w),Z=X?void 0:d(re)||R,J=v(N)?new N:[],q=X?l(re,X):new E(p(h(re,Z)));j(S(q,_,J))})}},60925:(C,c,t)=>{var i=t(84349);C.exports=function(s,u){for(var v=0,l=i(u),h=new s(l);l>v;)h[v]=u[v++];return h}},33006:(C,c,t)=>{"use strict";var i=t(31642),s=t(99760),u=t(9376),v=t(19939),l=t(23145),h=t(53582),p=t(84349),d=t(50932),f=t(73543),g=t(788),y=Array;C.exports=function(E){var S=u(E),w=h(this),x=arguments.length,P=x>1?arguments[1]:void 0,R=P!==void 0;R&&(P=i(P,x>2?arguments[2]:void 0));var T=g(S),A=0,I,N,K,_,W,j;if(T&&!(this===y&&l(T)))for(_=f(S,T),W=_.next,N=w?new this:[];!(K=s(W,_)).done;A++)j=R?v(_,P,[K.value,A],!0):K.value,d(N,A,j);else for(I=p(S),N=w?new this(I):y(I);I>A;A++)j=R?P(S[A],A):S[A],d(N,A,j);return N.length=A,N}},54977:(C,c,t)=>{"use strict";var i=t(31642),s=t(55740),u=t(46496),v=t(9376),l=t(84349),h=t(53033),p=h.Map,d=h.get,f=h.has,g=h.set,y=s([].push);C.exports=function(E){for(var S=v(this),w=u(S),x=i(E,arguments.length>1?arguments[1]:void 0),P=new p,R=l(w),T=0,A,I;R>T;T++)I=w[T],A=x(I,T,S),f(P,A)?y(d(P,A),I):g(P,A,[I]);return P}},77377:(C,c,t)=>{var i=t(31642),s=t(55740),u=t(46496),v=t(9376),l=t(6618),h=t(84349),p=t(69735),d=t(60925),f=Array,g=s([].push);C.exports=function(y,b,E,S){for(var w=v(y),x=u(w),P=i(b,E),R=p(null),T=h(x),A=0,I,N,K;T>A;A++)K=x[A],N=l(P(K,A,w)),N in R?g(R[N],K):R[N]=[K];if(S&&(I=S(w),I!==f))for(N in R)R[N]=d(I,R[N]);return R}},66309:(C,c,t)=>{var i=t(55339),s=t(49717),u=t(84349),v=function(l){return function(h,p,d){var f=i(h),g=u(f),y=s(d,g),b;if(l&&p!=p){for(;g>y;)if(b=f[y++],b!=b)return!0}else for(;g>y;y++)if((l||y in f)&&f[y]===p)return l||y||0;return!l&&-1}};C.exports={includes:v(!0),indexOf:v(!1)}},60924:(C,c,t)=>{var i=t(31642),s=t(46496),u=t(9376),v=t(84349),l=function(h){var p=h==1;return function(d,f,g){for(var y=u(d),b=s(y),E=i(f,g),S=v(b),w,x;S-- >0;)if(w=b[S],x=E(w,S,y),x)switch(h){case 0:return w;case 1:return S}return p?-1:void 0}};C.exports={findLast:l(0),findLastIndex:l(1)}},45742:(C,c,t)=>{var i=t(31642),s=t(55740),u=t(46496),v=t(9376),l=t(84349),h=t(85598),p=s([].push),d=function(f){var g=f==1,y=f==2,b=f==3,E=f==4,S=f==6,w=f==7,x=f==5||S;return function(P,R,T,A){for(var I=v(P),N=u(I),K=i(R,T),_=l(N),W=0,j=A||h,re=g?j(P,_):y||w?j(P,0):void 0,X,Z;_>W;W++)if((x||W in N)&&(X=N[W],Z=K(X,W,I),f))if(g)re[W]=Z;else if(Z)switch(f){case 3:return!0;case 5:return X;case 6:return W;case 2:p(re,X)}else switch(f){case 4:return!1;case 7:p(re,X)}return S?-1:b||E?E:re}};C.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},53693:(C,c,t)=>{"use strict";var i=t(27630),s=t(55339),u=t(46226),v=t(84349),l=t(57999),h=Math.min,p=[].lastIndexOf,d=!!p&&1/[1].lastIndexOf(1,-0)<0,f=l("lastIndexOf"),g=d||!f;C.exports=g?function(b){if(d)return i(p,this,arguments)||0;var E=s(this),S=v(E),w=S-1;for(arguments.length>1&&(w=h(w,u(arguments[1]))),w<0&&(w=S+w);w>=0;w--)if(w in E&&E[w]===b)return w||0;return-1}:p},87697:(C,c,t)=>{var i=t(97898),s=t(70330),u=t(76440),v=s("species");C.exports=function(l){return u>=51||!i(function(){var h=[],p=h.constructor={};return p[v]=function(){return{foo:1}},h[l](Boolean).foo!==1})}},57999:(C,c,t)=>{"use strict";var i=t(97898);C.exports=function(s,u){var v=[][s];return!!v&&i(function(){v.call(null,u||function(){return 1},1)})}},81542:(C,c,t)=>{var i=t(7319),s=t(9376),u=t(46496),v=t(84349),l=TypeError,h=function(p){return function(d,f,g,y){i(f);var b=s(d),E=u(b),S=v(b),w=p?S-1:0,x=p?-1:1;if(g<2)for(;;){if(w in E){y=E[w],w+=x;break}if(w+=x,p?w<0:S<=w)throw l("Reduce of empty array with no initial value")}for(;p?w>=0:S>w;w+=x)w in E&&(y=f(y,E[w],w,b));return y}};C.exports={left:h(!1),right:h(!0)}},25961:(C,c,t)=>{"use strict";var i=t(77022),s=t(7356),u=TypeError,v=Object.getOwnPropertyDescriptor,l=i&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(h){return h instanceof TypeError}}();C.exports=l?function(h,p){if(s(h)&&!v(h,"length").writable)throw u("Cannot set read only .length");return h.length=p}:function(h,p){return h.length=p}},26970:(C,c,t)=>{var i=t(49717),s=t(84349),u=t(50932),v=Array,l=Math.max;C.exports=function(h,p,d){for(var f=s(h),g=i(p,f),y=i(d===void 0?f:d,f),b=v(l(y-g,0)),E=0;g<y;g++,E++)u(b,E,h[g]);return b.length=E,b}},1723:(C,c,t)=>{var i=t(55740);C.exports=i([].slice)},31293:(C,c,t)=>{var i=t(26970),s=Math.floor,u=function(h,p){var d=h.length,f=s(d/2);return d<8?v(h,p):l(h,u(i(h,0,f),p),u(i(h,f),p),p)},v=function(h,p){for(var d=h.length,f=1,g,y;f<d;){for(y=f,g=h[f];y&&p(h[y-1],g)>0;)h[y]=h[--y];y!==f++&&(h[y]=g)}return h},l=function(h,p,d,f){for(var g=p.length,y=d.length,b=0,E=0;b<g||E<y;)h[b+E]=b<g&&E<y?f(p[b],d[E])<=0?p[b++]:d[E++]:b<g?p[b++]:d[E++];return h};C.exports=u},96947:(C,c,t)=>{var i=t(7356),s=t(53582),u=t(73091),v=t(70330),l=v("species"),h=Array;C.exports=function(p){var d;return i(p)&&(d=p.constructor,s(d)&&(d===h||i(d.prototype))?d=void 0:u(d)&&(d=d[l],d===null&&(d=void 0))),d===void 0?h:d}},85598:(C,c,t)=>{var i=t(96947);C.exports=function(s,u){return new(i(s))(u===0?0:u)}},96612:(C,c,t)=>{var i=t(84349);C.exports=function(s,u){for(var v=i(s),l=new u(v),h=0;h<v;h++)l[h]=s[v-h-1];return l}},62081:(C,c,t)=>{"use strict";var i=t(55740),s=t(7319),u=t(67213),v=t(84349),l=t(9376),h=t(53033),p=t(58448),d=h.Map,f=h.has,g=h.set,y=i([].push);C.exports=function(E){var S=l(this),w=v(S),x=[],P=new d,R=u(E)?function(N){return N}:s(E),T,A,I;for(T=0;T<w;T++)A=S[T],I=R(A),f(P,I)||g(P,I,A);return p(P,function(N){y(x,N)}),x}},72632:(C,c,t)=>{var i=t(84349),s=t(46226),u=RangeError;C.exports=function(v,l,h,p){var d=i(v),f=s(h),g=f<0?d+f:f;if(g>=d||g<0)throw u("Incorrect index");for(var y=new l(d),b=0;b<d;b++)y[b]=b===g?p:v[b];return y}},73247:(C,c,t)=>{"use strict";var i=t(99760),s=t(4630),u=t(69735),v=t(83735),l=t(24372),h=t(45699),p=t(90731),d=t(58013),f=t(14373),g=p("Promise"),y="AsyncFromSyncIterator",b=h.set,E=h.getterFor(y),S=function(x,P,R){var T=x.done;g.resolve(x.value).then(function(A){P(f(A,T))},R)},w=function(P){P.type=y,b(this,P)};w.prototype=l(u(d),{next:function(){var P=E(this);return new g(function(R,T){var A=s(i(P.next,P.iterator));S(A,R,T)})},return:function(){var x=E(this).iterator;return new g(function(P,R){var T=v(x,"return");if(T===void 0)return P(f(void 0,!0));var A=s(i(T,x));S(A,P,R)})}}),C.exports=w},55337:(C,c,t)=>{var i=t(99760),s=t(90731),u=t(83735);C.exports=function(v,l,h,p){try{var d=u(v,"return");if(d)return s("Promise").resolve(i(d,v)).then(function(){l(h)},function(f){p(f)})}catch(f){return p(f)}l(h)}},91509:(C,c,t)=>{"use strict";var i=t(99760),s=t(69297),u=t(4630),v=t(69735),l=t(37651),h=t(24372),p=t(70330),d=t(45699),f=t(90731),g=t(83735),y=t(58013),b=t(14373),E=t(74765),S=f("Promise"),w=p("toStringTag"),x="AsyncIteratorHelper",P="WrapForValidAsyncIterator",R=d.set,T=function(N){var K=!N,_=d.getterFor(N?P:x),W=function(j){var re=s(function(){return _(j)}),X=re.error,Z=re.value;return X||K&&Z.done?{exit:!0,value:X?S.reject(Z):S.resolve(b(void 0,!0))}:{exit:!1,value:Z}};return h(v(y),{next:function(){var re=W(this),X=re.value;if(re.exit)return X;var Z=s(function(){return u(X.nextHandler(S))}),J=Z.error,q=Z.value;return J&&(X.done=!0),J?S.reject(q):S.resolve(q)},return:function(){var j=W(this),re=j.value;if(j.exit)return re;re.done=!0;var X=re.iterator,Z,J,q=s(function(){if(re.inner)try{E(re.inner.iterator,"normal")}catch(L){return E(X,"throw",L)}return g(X,"return")});return Z=J=q.value,q.error?S.reject(J):Z===void 0?S.resolve(b(void 0,!0)):(q=s(function(){return i(Z,X)}),J=q.value,q.error?S.reject(J):N?S.resolve(J):S.resolve(J).then(function(L){return u(L),b(void 0,!0)}))}})},A=T(!0),I=T(!1);l(I,w,"Async Iterator Helper"),C.exports=function(N,K){var _=function(j,re){re?(re.iterator=j.iterator,re.next=j.next):re=j,re.type=K?P:x,re.nextHandler=N,re.counter=0,re.done=!1,R(this,re)};return _.prototype=K?A:I,_}},69553:(C,c,t)=>{"use strict";var i=t(99760),s=t(580),u=function(v,l){return[l,v]};C.exports=function(){return i(s,this,u)}},8992:(C,c,t)=>{"use strict";var i=t(99760),s=t(7319),u=t(4630),v=t(73091),l=t(72021),h=t(90731),p=t(21548),d=t(55337),f=function(g){var y=g==0,b=g==1,E=g==2,S=g==3;return function(w,x,P){u(w);var R=x!==void 0;(R||!y)&&s(x);var T=p(w),A=h("Promise"),I=T.iterator,N=T.next,K=0;return new A(function(_,W){var j=function(X){d(I,W,X,W)},re=function(){try{if(R)try{l(K)}catch(X){j(X)}A.resolve(u(i(N,I))).then(function(X){try{if(u(X).done)y?(P.length=K,_(P)):_(S?!1:E||void 0);else{var Z=X.value;try{if(R){var J=x(Z,K),q=function(L){if(b)re();else if(E)L?re():d(I,_,!1,W);else if(y)try{P[K++]=L,re()}catch($){j($)}else L?d(I,_,S||Z,W):re()};v(J)?A.resolve(J).then(q,j):q(J)}else P[K++]=Z,re()}catch(L){j(L)}}}catch(L){W(L)}},W)}catch(X){W(X)}};re()})}};C.exports={toArray:f(0),forEach:f(1),every:f(2),some:f(3),find:f(4)}},580:(C,c,t)=>{"use strict";var i=t(99760),s=t(7319),u=t(4630),v=t(73091),l=t(21548),h=t(91509),p=t(14373),d=t(55337),f=h(function(g){var y=this,b=y.iterator,E=y.mapper;return new g(function(S,w){var x=function(R){y.done=!0,w(R)},P=function(R){d(b,x,R,x)};g.resolve(u(i(y.next,b))).then(function(R){try{if(u(R).done)y.done=!0,S(p(void 0,!0));else{var T=R.value;try{var A=E(T,y.counter++),I=function(N){S(p(N,!1))};v(A)?g.resolve(A).then(I,P):I(A)}catch(N){P(N)}}}catch(N){x(N)}},x)})});C.exports=function(y){return u(this),s(y),new f(l(this),{mapper:y})}},58013:(C,c,t)=>{var i=t(75866),s=t(16314),u=t(2714),v=t(69735),l=t(52839),h=t(76156),p=t(70330),d=t(65259),f="USE_FUNCTION_CONSTRUCTOR",g=p("asyncIterator"),y=i.AsyncIterator,b=s.AsyncIteratorPrototype,E,S;if(b)E=b;else if(u(y))E=y.prototype;else if(s[f]||i[f])try{S=l(l(l(Function("return async function*(){}()")()))),l(S)===Object.prototype&&(E=S)}catch{}E?d&&(E=v(E)):E={},u(E[g])||h(E,g,function(){return this}),C.exports=E},13400:(C,c,t)=>{var i=t(99760),s=t(91509);C.exports=s(function(){return i(this.next,this.iterator)},!0)},48346:C=>{for(var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t={},i=0;i<66;i++)t[c.charAt(i)]=i;C.exports={itoc:c,ctoi:t}},19939:(C,c,t)=>{var i=t(4630),s=t(74765);C.exports=function(u,v,l,h){try{return h?v(i(l)[0],l[1]):v(l)}catch(p){s(u,"throw",p)}}},35505:(C,c,t)=>{var i=t(70330),s=i("iterator"),u=!1;try{var v=0,l={next:function(){return{done:!!v++}},return:function(){u=!0}};l[s]=function(){return this},Array.from(l,function(){throw 2})}catch{}C.exports=function(h,p){if(!p&&!u)return!1;var d=!1;try{var f={};f[s]=function(){return{next:function(){return{done:d=!0}}}},h(f)}catch{}return d}},53882:(C,c,t)=>{var i=t(55740),s=i({}.toString),u=i("".slice);C.exports=function(v){return u(s(v),8,-1)}},17766:(C,c,t)=>{var i=t(45075),s=t(2714),u=t(53882),v=t(70330),l=v("toStringTag"),h=Object,p=u(function(){return arguments}())=="Arguments",d=function(f,g){try{return f[g]}catch{}};C.exports=i?u:function(f){var g,y,b;return f===void 0?"Undefined":f===null?"Null":typeof(y=d(g=h(f),l))=="string"?y:p?u(g):(b=u(g))=="Object"&&s(g.callee)?"Arguments":b}},54890:(C,c,t)=>{"use strict";var i=t(31642),s=t(99760),u=t(7319),v=t(3897),l=t(67213),h=t(86543),p=[].push;C.exports=function(f){var g=arguments.length,y=g>1?arguments[1]:void 0,b,E,S,w;return v(this),b=y!==void 0,b&&u(y),l(f)?new this:(E=[],b?(S=0,w=i(y,g>2?arguments[2]:void 0),h(f,function(x){s(p,E,w(x,S++))})):h(f,p,{that:E}),new this(E))}},34781:(C,c,t)=>{"use strict";var i=t(1723);C.exports=function(){return new this(i(arguments))}},6933:(C,c,t)=>{"use strict";var i=t(69735),s=t(74066),u=t(24372),v=t(31642),l=t(99385),h=t(67213),p=t(86543),d=t(95548),f=t(14373),g=t(87735),y=t(77022),b=t(62947).fastKey,E=t(45699),S=E.set,w=E.getterFor;C.exports={getConstructor:function(x,P,R,T){var A=x(function(W,j){l(W,I),S(W,{type:P,index:i(null),first:void 0,last:void 0,size:0}),y||(W.size=0),h(j)||p(j,W[T],{that:W,AS_ENTRIES:R})}),I=A.prototype,N=w(P),K=function(W,j,re){var X=N(W),Z=_(W,j),J,q;return Z?Z.value=re:(X.last=Z={index:q=b(j,!0),key:j,value:re,previous:J=X.last,next:void 0,removed:!1},X.first||(X.first=Z),J&&(J.next=Z),y?X.size++:W.size++,q!=="F"&&(X.index[q]=Z)),W},_=function(W,j){var re=N(W),X=b(j),Z;if(X!=="F")return re.index[X];for(Z=re.first;Z;Z=Z.next)if(Z.key==j)return Z};return u(I,{clear:function(){for(var j=this,re=N(j),X=re.index,Z=re.first;Z;)Z.removed=!0,Z.previous&&(Z.previous=Z.previous.next=void 0),delete X[Z.index],Z=Z.next;re.first=re.last=void 0,y?re.size=0:j.size=0},delete:function(W){var j=this,re=N(j),X=_(j,W);if(X){var Z=X.next,J=X.previous;delete re.index[X.index],X.removed=!0,J&&(J.next=Z),Z&&(Z.previous=J),re.first==X&&(re.first=Z),re.last==X&&(re.last=J),y?re.size--:j.size--}return!!X},forEach:function(j){for(var re=N(this),X=v(j,arguments.length>1?arguments[1]:void 0),Z;Z=Z?Z.next:re.first;)for(X(Z.value,Z.key,this);Z&&Z.removed;)Z=Z.previous},has:function(j){return!!_(this,j)}}),u(I,R?{get:function(j){var re=_(this,j);return re&&re.value},set:function(j,re){return K(this,j===0?0:j,re)}}:{add:function(j){return K(this,j=j===0?0:j,j)}}),y&&s(I,"size",{configurable:!0,get:function(){return N(this).size}}),A},setStrong:function(x,P,R){var T=P+" Iterator",A=w(P),I=w(T);d(x,P,function(N,K){S(this,{type:T,target:N,state:A(N),kind:K,last:void 0})},function(){for(var N=I(this),K=N.kind,_=N.last;_&&_.removed;)_=_.previous;return!N.target||!(N.last=_=_?_.next:N.state.first)?(N.target=void 0,f(void 0,!0)):K=="keys"?f(_.key,!1):K=="values"?f(_.value,!1):f([_.key,_.value],!1)},R?"entries":"values",!R,!0),g(P)}}},70341:(C,c,t)=>{"use strict";var i=t(55740),s=t(24372),u=t(62947).getWeakData,v=t(99385),l=t(4630),h=t(67213),p=t(73091),d=t(86543),f=t(45742),g=t(15275),y=t(45699),b=y.set,E=y.getterFor,S=f.find,w=f.findIndex,x=i([].splice),P=0,R=function(I){return I.frozen||(I.frozen=new T)},T=function(){this.entries=[]},A=function(I,N){return S(I.entries,function(K){return K[0]===N})};T.prototype={get:function(I){var N=A(this,I);if(N)return N[1]},has:function(I){return!!A(this,I)},set:function(I,N){var K=A(this,I);K?K[1]=N:this.entries.push([I,N])},delete:function(I){var N=w(this.entries,function(K){return K[0]===I});return~N&&x(this.entries,N,1),!!~N}},C.exports={getConstructor:function(I,N,K,_){var W=I(function(Z,J){v(Z,j),b(Z,{type:N,id:P++,frozen:void 0}),h(J)||d(J,Z[_],{that:Z,AS_ENTRIES:K})}),j=W.prototype,re=E(N),X=function(Z,J,q){var L=re(Z),$=u(l(J),!0);return $===!0?R(L).set(J,q):$[L.id]=q,Z};return s(j,{delete:function(Z){var J=re(this);if(!p(Z))return!1;var q=u(Z);return q===!0?R(J).delete(Z):q&&g(q,J.id)&&delete q[J.id]},has:function(J){var q=re(this);if(!p(J))return!1;var L=u(J);return L===!0?R(q).has(J):L&&g(L,q.id)}}),s(j,K?{get:function(J){var q=re(this);if(p(J)){var L=u(J);return L===!0?R(q).get(J):L?L[q.id]:void 0}},set:function(J,q){return X(this,J,q)}}:{add:function(J){return X(this,J,!0)}}),W}}},73199:(C,c,t)=>{"use strict";var i=t(83846),s=t(75866),u=t(55740),v=t(40042),l=t(76156),h=t(62947),p=t(86543),d=t(99385),f=t(2714),g=t(67213),y=t(73091),b=t(97898),E=t(35505),S=t(61817),w=t(83108);C.exports=function(x,P,R){var T=x.indexOf("Map")!==-1,A=x.indexOf("Weak")!==-1,I=T?"set":"add",N=s[x],K=N&&N.prototype,_=N,W={},j=function($){var k=u(K[$]);l(K,$,$=="add"?function(V){return k(this,V===0?0:V),this}:$=="delete"?function(F){return A&&!y(F)?!1:k(this,F===0?0:F)}:$=="get"?function(V){return A&&!y(V)?void 0:k(this,V===0?0:V)}:$=="has"?function(V){return A&&!y(V)?!1:k(this,V===0?0:V)}:function(V,pe){return k(this,V===0?0:V,pe),this})},re=v(x,!f(N)||!(A||K.forEach&&!b(function(){new N().entries().next()})));if(re)_=R.getConstructor(P,x,T,I),h.enable();else if(v(x,!0)){var X=new _,Z=X[I](A?{}:-0,1)!=X,J=b(function(){X.has(1)}),q=E(function($){new N($)}),L=!A&&b(function(){for(var $=new N,k=5;k--;)$[I](k,k);return!$.has(-0)});q||(_=P(function($,k){d($,K);var F=w(new N,$,_);return g(k)||p(k,F[I],{that:F,AS_ENTRIES:T}),F}),_.prototype=K,K.constructor=_),(J||L)&&(j("delete"),j("has"),T&&j("get")),(L||Z)&&j(I),A&&K.clear&&delete K.clear}return W[x]=_,i({global:!0,constructor:!0,forced:_!=N},W),S(_,x),A||R.setStrong(_,x,T),_}},43726:(C,c,t)=>{t(38392),t(56894);var i=t(90731),s=t(69735),u=t(73091),v=Object,l=TypeError,h=i("Map"),p=i("WeakMap"),d=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=s(null)};d.prototype.get=function(g,y){return this[g]||(this[g]=y())},d.prototype.next=function(g,y,b){var E=b?this.objectsByIndex[g]||(this.objectsByIndex[g]=new p):this.primitives||(this.primitives=new h),S=E.get(y);return S||E.set(y,S=new d),S};var f=new d;C.exports=function(){var g=f,y=arguments.length,b,E;for(b=0;b<y;b++)u(E=arguments[b])&&(g=g.next(b,E,!0));if(this===v&&g===f)throw l("Composite keys must contain a non-primitive component");for(b=0;b<y;b++)u(E=arguments[b])||(g=g.next(b,E,!1));return g}},11599:(C,c,t)=>{var i=t(15275),s=t(765),u=t(61560),v=t(56768);C.exports=function(l,h,p){for(var d=s(h),f=v.f,g=u.f,y=0;y<d.length;y++){var b=d[y];!i(l,b)&&!(p&&i(p,b))&&f(l,b,g(h,b))}}},81275:(C,c,t)=>{var i=t(70330),s=i("match");C.exports=function(u){var v=/./;try{"/./"[u](v)}catch{try{return v[s]=!1,"/./"[u](v)}catch{}}return!1}},28715:(C,c,t)=>{var i=t(97898);C.exports=!i(function(){function s(){}return s.prototype.constructor=null,Object.getPrototypeOf(new s)!==s.prototype})},21118:(C,c,t)=>{var i=t(55740),s=t(38213),u=t(36722),v=/"/g,l=i("".replace);C.exports=function(h,p,d,f){var g=u(s(h)),y="<"+p;return d!==""&&(y+=" "+d+'="'+l(u(f),v,""")+'"'),y+">"+g+"</"+p+">"}},14373:C=>{C.exports=function(c,t){return{value:c,done:t}}},37651:(C,c,t)=>{var i=t(77022),s=t(56768),u=t(33091);C.exports=i?function(v,l,h){return s.f(v,l,u(1,h))}:function(v,l,h){return v[l]=h,v}},33091:C=>{C.exports=function(c,t){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:t}}},50932:(C,c,t)=>{"use strict";var i=t(6618),s=t(56768),u=t(33091);C.exports=function(v,l,h){var p=i(l);p in v?s.f(v,p,u(0,h)):v[p]=h}},39180:(C,c,t)=>{"use strict";var i=t(55740),s=t(97898),u=t(22925).start,v=RangeError,l=isFinite,h=Math.abs,p=Date.prototype,d=p.toISOString,f=i(p.getTime),g=i(p.getUTCDate),y=i(p.getUTCFullYear),b=i(p.getUTCHours),E=i(p.getUTCMilliseconds),S=i(p.getUTCMinutes),w=i(p.getUTCMonth),x=i(p.getUTCSeconds);C.exports=s(function(){return d.call(new Date(-5e13-1))!="0385-07-25T07:06:39.999Z"})||!s(function(){d.call(new Date(NaN))})?function(){if(!l(f(this)))throw v("Invalid time value");var R=this,T=y(R),A=E(R),I=T<0?"-":T>9999?"+":"";return I+u(h(T),I?6:4,0)+"-"+u(w(R)+1,2,0)+"-"+u(g(R),2,0)+"T"+u(b(R),2,0)+":"+u(S(R),2,0)+":"+u(x(R),2,0)+"."+u(A,3,0)+"Z"}:d},55424:(C,c,t)=>{"use strict";var i=t(4630),s=t(54369),u=TypeError;C.exports=function(v){if(i(this),v==="string"||v==="default")v="string";else if(v!=="number")throw u("Incorrect hint");return s(this,v)}},74066:(C,c,t)=>{var i=t(20894),s=t(56768);C.exports=function(u,v,l){return l.get&&i(l.get,v,{getter:!0}),l.set&&i(l.set,v,{setter:!0}),s.f(u,v,l)}},76156:(C,c,t)=>{var i=t(2714),s=t(56768),u=t(20894),v=t(5453);C.exports=function(l,h,p,d){d||(d={});var f=d.enumerable,g=d.name!==void 0?d.name:h;if(i(p)&&u(p,g,d),d.global)f?l[h]=p:v(h,p);else{try{d.unsafe?l[h]&&(f=!0):delete l[h]}catch{}f?l[h]=p:s.f(l,h,{value:p,enumerable:!1,configurable:!d.nonConfigurable,writable:!d.nonWritable})}return l}},24372:(C,c,t)=>{var i=t(76156);C.exports=function(s,u,v){for(var l in u)i(s,l,u[l],v);return s}},5453:(C,c,t)=>{var i=t(75866),s=Object.defineProperty;C.exports=function(u,v){try{s(i,u,{value:v,configurable:!0,writable:!0})}catch{i[u]=v}return v}},1003:(C,c,t)=>{"use strict";var i=t(70369),s=TypeError;C.exports=function(u,v){if(!delete u[v])throw s("Cannot delete property "+i(v)+" of "+i(u))}},77022:(C,c,t)=>{var i=t(97898);C.exports=!i(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},81104:C=>{var c=typeof document=="object"&&document.all,t=typeof c>"u"&&c!==void 0;C.exports={all:c,IS_HTMLDDA:t}},35166:(C,c,t)=>{var i=t(75866),s=t(73091),u=i.document,v=s(u)&&s(u.createElement);C.exports=function(l){return v?u.createElement(l):{}}},72021:C=>{var c=TypeError,t=9007199254740991;C.exports=function(i){if(i>t)throw c("Maximum allowed index exceeded");return i}},187:C=>{C.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},30224:C=>{C.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},46350:(C,c,t)=>{var i=t(35166),s=i("span").classList,u=s&&s.constructor&&s.constructor.prototype;C.exports=u===Object.prototype?void 0:u},68734:(C,c,t)=>{var i=t(80994),s=i.match(/firefox\/(\d+)/i);C.exports=!!s&&+s[1]},39727:(C,c,t)=>{var i=t(84534),s=t(82768);C.exports=!i&&!s&&typeof window=="object"&&typeof document=="object"},29288:C=>{C.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},84534:C=>{C.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},82952:(C,c,t)=>{var i=t(80994);C.exports=/MSIE|Trident/.test(i)},57569:(C,c,t)=>{var i=t(80994);C.exports=/ipad|iphone|ipod/i.test(i)&&typeof Pebble<"u"},95458:(C,c,t)=>{var i=t(80994);C.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},82768:(C,c,t)=>{var i=t(53882);C.exports=typeof process<"u"&&i(process)=="process"},69695:(C,c,t)=>{var i=t(80994);C.exports=/web0s(?!.*chrome)/i.test(i)},80994:C=>{C.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},76440:(C,c,t)=>{var i=t(75866),s=t(80994),u=i.process,v=i.Deno,l=u&&u.versions||v&&v.version,h=l&&l.v8,p,d;h&&(p=h.split("."),d=p[0]>0&&p[0]<4?1:+(p[0]+p[1])),!d&&s&&(p=s.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=s.match(/Chrome\/(\d+)/),p&&(d=+p[1]))),C.exports=d},35401:(C,c,t)=>{var i=t(80994),s=i.match(/AppleWebKit\/(\d+)\./);C.exports=!!s&&+s[1]},30357:(C,c,t)=>{var i=t(75866);C.exports=function(s){return i[s].prototype}},40506:C=>{C.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},93568:(C,c,t)=>{var i=t(55740),s=Error,u=i("".replace),v=function(p){return String(s(p).stack)}("zxcasd"),l=/\n\s*at [^:]*:[^\n]*/,h=l.test(v);C.exports=function(p,d){if(h&&typeof p=="string"&&!s.prepareStackTrace)for(;d--;)p=u(p,l,"");return p}},25410:(C,c,t)=>{var i=t(37651),s=t(93568),u=t(29075),v=Error.captureStackTrace;C.exports=function(l,h,p,d){u&&(v?v(l,h):i(l,"stack",s(p,d)))}},29075:(C,c,t)=>{var i=t(97898),s=t(33091);C.exports=!i(function(){var u=Error("a");return"stack"in u?(Object.defineProperty(u,"stack",s(1,7)),u.stack!==7):!0})},13864:(C,c,t)=>{"use strict";var i=t(77022),s=t(97898),u=t(4630),v=t(69735),l=t(46001),h=Error.prototype.toString,p=s(function(){if(i){var d=v(Object.defineProperty({},"name",{get:function(){return this===d}}));if(h.call(d)!=="true")return!0}return h.call({message:1,name:2})!=="2: 1"||h.call({})!=="Error"});C.exports=p?function(){var f=u(this),g=l(f.name,"Error"),y=l(f.message);return g?y?g+": "+y:g:y}:h},83846:(C,c,t)=>{var i=t(75866),s=t(61560).f,u=t(37651),v=t(76156),l=t(5453),h=t(11599),p=t(40042);C.exports=function(d,f){var g=d.target,y=d.global,b=d.stat,E,S,w,x,P,R;if(y?S=i:b?S=i[g]||l(g,{}):S=(i[g]||{}).prototype,S)for(w in f){if(P=f[w],d.dontCallGetSet?(R=s(S,w),x=R&&R.value):x=S[w],E=p(y?w:g+(b?".":"#")+w,d.forced),!E&&x!==void 0){if(typeof P==typeof x)continue;h(P,x)}(d.sham||x&&x.sham)&&u(P,"sham",!0),v(S,w,P,d)}}},97898:C=>{C.exports=function(c){try{return!!c()}catch{return!0}}},91833:(C,c,t)=>{"use strict";t(92298);var i=t(42716),s=t(76156),u=t(56144),v=t(97898),l=t(70330),h=t(37651),p=l("species"),d=RegExp.prototype;C.exports=function(f,g,y,b){var E=l(f),S=!v(function(){var R={};return R[E]=function(){return 7},""[f](R)!=7}),w=S&&!v(function(){var R=!1,T=/a/;return f==="split"&&(T={},T.constructor={},T.constructor[p]=function(){return T},T.flags="",T[E]=/./[E]),T.exec=function(){return R=!0,null},T[E](""),!R});if(!S||!w||y){var x=i(/./[E]),P=g(E,""[f],function(R,T,A,I,N){var K=i(R),_=T.exec;return _===u||_===d.exec?S&&!N?{done:!0,value:x(T,A,I)}:{done:!0,value:K(A,T,I)}:{done:!1}});s(String.prototype,f,P[0]),s(d,E,P[1])}b&&h(d[E],"sham",!0)}},94120:(C,c,t)=>{"use strict";var i=t(7356),s=t(84349),u=t(72021),v=t(31642),l=function(h,p,d,f,g,y,b,E){for(var S=g,w=0,x=b?v(b,E):!1,P,R;w<f;)w in d&&(P=x?x(d[w],w,p):d[w],y>0&&i(P)?(R=s(P),S=l(h,p,P,R,S,y-1)-1):(u(S+1),h[S]=P),S++),w++;return S};C.exports=l},36781:(C,c,t)=>{var i=t(97898);C.exports=!i(function(){return Object.isExtensible(Object.preventExtensions({}))})},27630:(C,c,t)=>{var i=t(84558),s=Function.prototype,u=s.apply,v=s.call;C.exports=typeof Reflect=="object"&&Reflect.apply||(i?v.bind(u):function(){return v.apply(u,arguments)})},31642:(C,c,t)=>{var i=t(42716),s=t(7319),u=t(84558),v=i(i.bind);C.exports=function(l,h){return s(l),h===void 0?l:u?v(l,h):function(){return l.apply(h,arguments)}}},84558:(C,c,t)=>{var i=t(97898);C.exports=!i(function(){var s=function(){}.bind();return typeof s!="function"||s.hasOwnProperty("prototype")})},31497:(C,c,t)=>{"use strict";var i=t(55740),s=t(7319),u=t(73091),v=t(15275),l=t(1723),h=t(84558),p=Function,d=i([].concat),f=i([].join),g={},y=function(b,E,S){if(!v(g,E)){for(var w=[],x=0;x<E;x++)w[x]="a["+x+"]";g[E]=p("C,a","return new C("+f(w,",")+")")}return g[E](b,S)};C.exports=h?p.bind:function(E){var S=s(this),w=S.prototype,x=l(arguments,1),P=function(){var T=d(x,l(arguments));return this instanceof P?y(S,T.length,T):S.apply(E,T)};return u(w)&&(P.prototype=w),P}},99760:(C,c,t)=>{var i=t(84558),s=Function.prototype.call;C.exports=i?s.bind(s):function(){return s.apply(s,arguments)}},34352:(C,c,t)=>{"use strict";var i=t(55740),s=t(7319);C.exports=function(){return i(s(this))}},18551:(C,c,t)=>{var i=t(77022),s=t(15275),u=Function.prototype,v=i&&Object.getOwnPropertyDescriptor,l=s(u,"name"),h=l&&function(){}.name==="something",p=l&&(!i||i&&v(u,"name").configurable);C.exports={EXISTS:l,PROPER:h,CONFIGURABLE:p}},68281:(C,c,t)=>{var i=t(55740),s=t(7319);C.exports=function(u,v,l){try{return i(s(Object.getOwnPropertyDescriptor(u,v)[l]))}catch{}}},42716:(C,c,t)=>{var i=t(53882),s=t(55740);C.exports=function(u){if(i(u)==="Function")return s(u)}},55740:(C,c,t)=>{var i=t(84558),s=Function.prototype,u=s.call,v=i&&s.bind.bind(u,u);C.exports=i?v:function(l){return function(){return u.apply(l,arguments)}}},99168:(C,c,t)=>{var i=t(99760),s=t(2714),u=t(4630),v=t(21548),l=t(788),h=t(83735),p=t(70330),d=t(73247),f=p("asyncIterator");C.exports=function(y){var b=u(y),E=!0,S=h(b,f),w;return s(S)||(S=l(b),E=!1),S!==void 0?w=i(S,b):(w=b,E=!0),u(w),v(E?w:new d(v(w)))}},87785:(C,c,t)=>{var i=t(99760),s=t(73247),u=t(4630),v=t(73543),l=t(21548),h=t(83735),p=t(70330),d=p("asyncIterator");C.exports=function(f,g){var y=arguments.length<2?h(f,d):g;return y?u(i(y,f)):new s(l(v(f)))}},90731:(C,c,t)=>{var i=t(75866),s=t(2714),u=function(v){return s(v)?v:void 0};C.exports=function(v,l){return arguments.length<2?u(i[v]):i[v]&&i[v][l]}},21548:C=>{C.exports=function(c){return{iterator:c,next:c.next,done:!1}}},89118:(C,c,t)=>{var i=t(99760),s=t(4630),u=t(21548),v=t(788);C.exports=function(l){var h=s(l),p=v(h);return u(s(p!==void 0?i(p,h):h))}},788:(C,c,t)=>{var i=t(17766),s=t(83735),u=t(67213),v=t(15201),l=t(70330),h=l("iterator");C.exports=function(p){if(!u(p))return s(p,h)||s(p,"@@iterator")||v[i(p)]}},73543:(C,c,t)=>{var i=t(99760),s=t(7319),u=t(4630),v=t(70369),l=t(788),h=TypeError;C.exports=function(p,d){var f=arguments.length<2?l(p):d;if(s(f))return u(i(f,p));throw h(v(p)+" is not iterable")}},22961:(C,c,t)=>{var i=t(55740),s=t(7356),u=t(2714),v=t(53882),l=t(36722),h=i([].push);C.exports=function(p){if(u(p))return p;if(s(p)){for(var d=p.length,f=[],g=0;g<d;g++){var y=p[g];typeof y=="string"?h(f,y):(typeof y=="number"||v(y)=="Number"||v(y)=="String")&&h(f,l(y))}var b=f.length,E=!0;return function(S,w){if(E)return E=!1,w;if(s(this))return w;for(var x=0;x<b;x++)if(f[x]===S)return w}}}},83735:(C,c,t)=>{var i=t(7319),s=t(67213);C.exports=function(u,v){var l=u[v];return s(l)?void 0:i(l)}},67e3:(C,c,t)=>{var i=t(7319),s=t(4630),u=t(99760),v=t(46226),l=TypeError,h=Math.max,p=function(d,f,g,y){this.set=d,this.size=f,this.has=g,this.keys=y};p.prototype={getIterator:function(){return s(u(this.keys,this.set))},includes:function(d){return u(this.has,this.set,d)}},C.exports=function(d){s(d);var f=+d.size;if(f!=f)throw l("Invalid size");return new p(d,h(v(f),0),i(d.has),i(d.keys))}},59227:(C,c,t)=>{var i=t(55740),s=t(9376),u=Math.floor,v=i("".charAt),l=i("".replace),h=i("".slice),p=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d=/\$([$&'`]|\d{1,2})/g;C.exports=function(f,g,y,b,E,S){var w=y+f.length,x=b.length,P=d;return E!==void 0&&(E=s(E),P=p),l(S,P,function(R,T){var A;switch(v(T,0)){case"$":return"$";case"&":return f;case"`":return h(g,0,y);case"'":return h(g,w);case"<":A=E[h(T,1,-1)];break;default:var I=+T;if(I===0)return R;if(I>x){var N=u(I/10);return N===0?R:N<=x?b[N-1]===void 0?v(T,1):b[N-1]+v(T,1):R}A=b[I-1]}return A===void 0?"":A})}},75866:function(C,c,t){var i=function(s){return s&&s.Math==Math&&s};C.exports=i(typeof globalThis=="object"&&globalThis)||i(typeof window=="object"&&window)||i(typeof self=="object"&&self)||i(typeof t.g=="object"&&t.g)||function(){return this}()||this||Function("return this")()},15275:(C,c,t)=>{var i=t(55740),s=t(9376),u=i({}.hasOwnProperty);C.exports=Object.hasOwn||function(l,h){return u(s(l),h)}},4811:C=>{C.exports={}},67870:C=>{C.exports=function(c,t){try{arguments.length==1?console.error(c):console.error(c,t)}catch{}}},12446:(C,c,t)=>{var i=t(90731);C.exports=i("document","documentElement")},73914:(C,c,t)=>{var i=t(77022),s=t(97898),u=t(35166);C.exports=!i&&!s(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},57699:C=>{var c=Array,t=Math.abs,i=Math.pow,s=Math.floor,u=Math.log,v=Math.LN2,l=function(p,d,f){var g=c(f),y=f*8-d-1,b=(1<<y)-1,E=b>>1,S=d===23?i(2,-24)-i(2,-77):0,w=p<0||p===0&&1/p<0?1:0,x=0,P,R,T;for(p=t(p),p!=p||p===1/0?(R=p!=p?1:0,P=b):(P=s(u(p)/v),T=i(2,-P),p*T<1&&(P--,T*=2),P+E>=1?p+=S/T:p+=S*i(2,1-E),p*T>=2&&(P++,T/=2),P+E>=b?(R=0,P=b):P+E>=1?(R=(p*T-1)*i(2,d),P=P+E):(R=p*i(2,E-1)*i(2,d),P=0));d>=8;)g[x++]=R&255,R/=256,d-=8;for(P=P<<d|R,y+=d;y>0;)g[x++]=P&255,P/=256,y-=8;return g[--x]|=w*128,g},h=function(p,d){var f=p.length,g=f*8-d-1,y=(1<<g)-1,b=y>>1,E=g-7,S=f-1,w=p[S--],x=w&127,P;for(w>>=7;E>0;)x=x*256+p[S--],E-=8;for(P=x&(1<<-E)-1,x>>=-E,E+=d;E>0;)P=P*256+p[S--],E-=8;if(x===0)x=1-b;else{if(x===y)return P?NaN:w?-1/0:1/0;P=P+i(2,d),x=x-b}return(w?-1:1)*P*i(2,x-d)};C.exports={pack:l,unpack:h}},46496:(C,c,t)=>{var i=t(55740),s=t(97898),u=t(53882),v=Object,l=i("".split);C.exports=s(function(){return!v("z").propertyIsEnumerable(0)})?function(h){return u(h)=="String"?l(h,""):v(h)}:v},83108:(C,c,t)=>{var i=t(2714),s=t(73091),u=t(39869);C.exports=function(v,l,h){var p,d;return u&&i(p=l.constructor)&&p!==h&&s(d=p.prototype)&&d!==h.prototype&&u(v,d),v}},46107:(C,c,t)=>{var i=t(55740),s=t(2714),u=t(16314),v=i(Function.toString);s(u.inspectSource)||(u.inspectSource=function(l){return v(l)}),C.exports=u.inspectSource},45391:(C,c,t)=>{var i=t(73091),s=t(37651);C.exports=function(u,v){i(v)&&"cause"in v&&s(u,"cause",v.cause)}},62947:(C,c,t)=>{var i=t(83846),s=t(55740),u=t(4811),v=t(73091),l=t(15275),h=t(56768).f,p=t(74757),d=t(93292),f=t(71772),g=t(8499),y=t(36781),b=!1,E=g("meta"),S=0,w=function(I){h(I,E,{value:{objectID:"O"+S++,weakData:{}}})},x=function(I,N){if(!v(I))return typeof I=="symbol"?I:(typeof I=="string"?"S":"P")+I;if(!l(I,E)){if(!f(I))return"F";if(!N)return"E";w(I)}return I[E].objectID},P=function(I,N){if(!l(I,E)){if(!f(I))return!0;if(!N)return!1;w(I)}return I[E].weakData},R=function(I){return y&&b&&f(I)&&!l(I,E)&&w(I),I},T=function(){A.enable=function(){},b=!0;var I=p.f,N=s([].splice),K={};K[E]=1,I(K).length&&(p.f=function(_){for(var W=I(_),j=0,re=W.length;j<re;j++)if(W[j]===E){N(W,j,1);break}return W},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f}))},A=C.exports={enable:T,fastKey:x,getWeakData:P,onFreeze:R};u[E]=!0},45699:(C,c,t)=>{var i=t(73917),s=t(75866),u=t(73091),v=t(37651),l=t(15275),h=t(16314),p=t(37893),d=t(4811),f="Object already initialized",g=s.TypeError,y=s.WeakMap,b,E,S,w=function(T){return S(T)?E(T):b(T,{})},x=function(T){return function(A){var I;if(!u(A)||(I=E(A)).type!==T)throw g("Incompatible receiver, "+T+" required");return I}};if(i||h.state){var P=h.state||(h.state=new y);P.get=P.get,P.has=P.has,P.set=P.set,b=function(T,A){if(P.has(T))throw g(f);return A.facade=T,P.set(T,A),A},E=function(T){return P.get(T)||{}},S=function(T){return P.has(T)}}else{var R=p("state");d[R]=!0,b=function(T,A){if(l(T,R))throw g(f);return A.facade=T,v(T,R,A),A},E=function(T){return l(T,R)?T[R]:{}},S=function(T){return l(T,R)}}C.exports={set:b,get:E,has:S,enforce:w,getterFor:x}},23145:(C,c,t)=>{var i=t(70330),s=t(15201),u=i("iterator"),v=Array.prototype;C.exports=function(l){return l!==void 0&&(s.Array===l||v[u]===l)}},7356:(C,c,t)=>{var i=t(53882);C.exports=Array.isArray||function(u){return i(u)=="Array"}},74054:(C,c,t)=>{var i=t(17766);C.exports=function(s){var u=i(s);return u=="BigInt64Array"||u=="BigUint64Array"}},2714:(C,c,t)=>{var i=t(81104),s=i.all;C.exports=i.IS_HTMLDDA?function(u){return typeof u=="function"||u===s}:function(u){return typeof u=="function"}},53582:(C,c,t)=>{var i=t(55740),s=t(97898),u=t(2714),v=t(17766),l=t(90731),h=t(46107),p=function(){},d=[],f=l("Reflect","construct"),g=/^\s*(?:class|function)\b/,y=i(g.exec),b=!g.exec(p),E=function(x){if(!u(x))return!1;try{return f(p,d,x),!0}catch{return!1}},S=function(x){if(!u(x))return!1;switch(v(x)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return b||!!y(g,h(x))}catch{return!0}};S.sham=!0,C.exports=!f||s(function(){var w;return E(E.call)||!E(Object)||!E(function(){w=!0})||w})?S:E},35445:(C,c,t)=>{var i=t(15275);C.exports=function(s){return s!==void 0&&(i(s,"value")||i(s,"writable"))}},40042:(C,c,t)=>{var i=t(97898),s=t(2714),u=/#|\.prototype\./,v=function(f,g){var y=h[l(f)];return y==d?!0:y==p?!1:s(g)?i(g):!!g},l=v.normalize=function(f){return String(f).replace(u,".").toLowerCase()},h=v.data={},p=v.NATIVE="N",d=v.POLYFILL="P";C.exports=v},76660:(C,c,t)=>{var i=t(73091),s=Math.floor;C.exports=Number.isInteger||function(v){return!i(v)&&isFinite(v)&&s(v)===v}},71468:(C,c,t)=>{var i=t(17766),s=t(15275),u=t(67213),v=t(70330),l=t(15201),h=v("iterator"),p=Object;C.exports=function(d){if(u(d))return!1;var f=p(d);return f[h]!==void 0||"@@iterator"in f||s(l,i(f))}},67213:C=>{C.exports=function(c){return c==null}},73091:(C,c,t)=>{var i=t(2714),s=t(81104),u=s.all;C.exports=s.IS_HTMLDDA?function(v){return typeof v=="object"?v!==null:i(v)||v===u}:function(v){return typeof v=="object"?v!==null:i(v)}},65259:C=>{C.exports=!1},99888:(C,c,t)=>{var i=t(73091),s=t(45699).get;C.exports=function(v){if(!i(v))return!1;var l=s(v);return!!l&&l.type==="RawJSON"}},52974:(C,c,t)=>{var i=t(73091),s=t(53882),u=t(70330),v=u("match");C.exports=function(l){var h;return i(l)&&((h=l[v])!==void 0?!!h:s(l)=="RegExp")}},14566:(C,c,t)=>{var i=t(90731),s=t(2714),u=t(720),v=t(92092),l=Object;C.exports=v?function(h){return typeof h=="symbol"}:function(h){var p=i("Symbol");return s(p)&&u(p.prototype,l(h))}},48228:(C,c,t)=>{var i=t(99760);C.exports=function(s,u,v){for(var l=v||s.next,h,p;!(h=i(l,s)).done;)if(p=u(h.value),p!==void 0)return p}},86543:(C,c,t)=>{var i=t(31642),s=t(99760),u=t(4630),v=t(70369),l=t(23145),h=t(84349),p=t(720),d=t(73543),f=t(788),g=t(74765),y=TypeError,b=function(S,w){this.stopped=S,this.result=w},E=b.prototype;C.exports=function(S,w,x){var P=x&&x.that,R=!!(x&&x.AS_ENTRIES),T=!!(x&&x.IS_RECORD),A=!!(x&&x.IS_ITERATOR),I=!!(x&&x.INTERRUPTED),N=i(w,P),K,_,W,j,re,X,Z,J=function(L){return K&&g(K,"normal",L),new b(!0,L)},q=function(L){return R?(u(L),I?N(L[0],L[1],J):N(L[0],L[1])):I?N(L,J):N(L)};if(T)K=S.iterator;else if(A)K=S;else{if(_=f(S),!_)throw y(v(S)+" is not iterable");if(l(_)){for(W=0,j=h(S);j>W;W++)if(re=q(S[W]),re&&p(E,re))return re;return new b(!1)}K=d(S,_)}for(X=T?S.next:K.next;!(Z=s(X,K)).done;){try{re=q(Z.value)}catch(L){g(K,"throw",L)}if(typeof re=="object"&&re&&p(E,re))return re}return new b(!1)}},74765:(C,c,t)=>{var i=t(99760),s=t(4630),u=t(83735);C.exports=function(v,l,h){var p,d;s(v);try{if(p=u(v,"return"),!p){if(l==="throw")throw h;return h}p=i(p,v)}catch(f){d=!0,p=f}if(l==="throw")throw h;if(d)throw p;return s(p),h}},56561:(C,c,t)=>{"use strict";var i=t(7244).IteratorPrototype,s=t(69735),u=t(33091),v=t(61817),l=t(15201),h=function(){return this};C.exports=function(p,d,f,g){var y=d+" Iterator";return p.prototype=s(i,{next:u(+!g,f)}),v(p,y,!1,!0),l[y]=h,p}},28688:(C,c,t)=>{"use strict";var i=t(99760),s=t(69735),u=t(37651),v=t(24372),l=t(70330),h=t(45699),p=t(83735),d=t(7244).IteratorPrototype,f=t(14373),g=t(74765),y=l("toStringTag"),b="IteratorHelper",E="WrapForValidIterator",S=h.set,w=function(R){var T=h.getterFor(R?E:b);return v(s(d),{next:function(){var I=T(this);if(R)return I.nextHandler();try{var N=I.done?void 0:I.nextHandler();return f(N,I.done)}catch(K){throw I.done=!0,K}},return:function(){var A=T(this),I=A.iterator;if(A.done=!0,R){var N=p(I,"return");return N?i(N,I):f(void 0,!0)}if(A.inner)try{g(A.inner.iterator,"normal")}catch(K){return g(I,"throw",K)}return g(I,"normal"),f(void 0,!0)}})},x=w(!0),P=w(!1);u(P,y,"Iterator Helper"),C.exports=function(R,T){var A=function(N,K){K?(K.iterator=N.iterator,K.next=N.next):K=N,K.type=T?E:b,K.nextHandler=R,K.counter=0,K.done=!1,S(this,K)};return A.prototype=T?x:P,A}},95548:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(65259),v=t(18551),l=t(2714),h=t(56561),p=t(52839),d=t(39869),f=t(61817),g=t(37651),y=t(76156),b=t(70330),E=t(15201),S=t(7244),w=v.PROPER,x=v.CONFIGURABLE,P=S.IteratorPrototype,R=S.BUGGY_SAFARI_ITERATORS,T=b("iterator"),A="keys",I="values",N="entries",K=function(){return this};C.exports=function(_,W,j,re,X,Z,J){h(j,W,re);var q=function(ie){if(ie===X&&V)return V;if(!R&&ie in k)return k[ie];switch(ie){case A:return function(){return new j(this,ie)};case I:return function(){return new j(this,ie)};case N:return function(){return new j(this,ie)}}return function(){return new j(this)}},L=W+" Iterator",$=!1,k=_.prototype,F=k[T]||k["@@iterator"]||X&&k[X],V=!R&&F||q(X),pe=W=="Array"&&k.entries||F,ce,G,te;if(pe&&(ce=p(pe.call(new _)),ce!==Object.prototype&&ce.next&&(!u&&p(ce)!==P&&(d?d(ce,P):l(ce[T])||y(ce,T,K)),f(ce,L,!0,!0),u&&(E[L]=K))),w&&X==I&&F&&F.name!==I&&(!u&&x?g(k,"name",I):($=!0,V=function(){return s(F,this)})),X)if(G={values:q(I),keys:Z?V:q(A),entries:q(N)},J)for(te in G)(R||$||!(te in k))&&y(k,te,G[te]);else i({target:W,proto:!0,forced:R||$},G);return(!u||J)&&k[T]!==V&&y(k,T,V,{name:X}),E[W]=V,G}},81840:(C,c,t)=>{"use strict";var i=t(99760),s=t(27013),u=function(v,l){return[l,v]};C.exports=function(){return i(s,this,u)}},27013:(C,c,t)=>{"use strict";var i=t(99760),s=t(7319),u=t(4630),v=t(21548),l=t(28688),h=t(19939),p=l(function(){var d=this.iterator,f=u(i(this.next,d)),g=this.done=!!f.done;if(!g)return h(d,this.mapper,[f.value,this.counter++],!0)});C.exports=function(f){return u(this),s(f),new p(v(this),{mapper:f})}},7244:(C,c,t)=>{"use strict";var i=t(97898),s=t(2714),u=t(73091),v=t(69735),l=t(52839),h=t(76156),p=t(70330),d=t(65259),f=p("iterator"),g=!1,y,b,E;[].keys&&(E=[].keys(),"next"in E?(b=l(l(E)),b!==Object.prototype&&(y=b)):g=!0);var S=!u(y)||i(function(){var w={};return y[f].call(w)!==w});S?y={}:d&&(y=v(y)),s(y[f])||h(y,f,function(){return this}),C.exports={IteratorPrototype:y,BUGGY_SAFARI_ITERATORS:g}},15201:C=>{C.exports={}},84349:(C,c,t)=>{var i=t(90161);C.exports=function(s){return i(s.length)}},20894:(C,c,t)=>{var i=t(55740),s=t(97898),u=t(2714),v=t(15275),l=t(77022),h=t(18551).CONFIGURABLE,p=t(46107),d=t(45699),f=d.enforce,g=d.get,y=String,b=Object.defineProperty,E=i("".slice),S=i("".replace),w=i([].join),x=l&&!s(function(){return b(function(){},"length",{value:8}).length!==8}),P=String(String).split("String"),R=C.exports=function(T,A,I){E(y(A),0,7)==="Symbol("&&(A="["+S(y(A),/^Symbol\(([^)]*)\)/,"$1")+"]"),I&&I.getter&&(A="get "+A),I&&I.setter&&(A="set "+A),(!v(T,"name")||h&&T.name!==A)&&(l?b(T,"name",{value:A,configurable:!0}):T.name=A),x&&I&&v(I,"arity")&&T.length!==I.arity&&b(T,"length",{value:I.arity});try{I&&v(I,"constructor")&&I.constructor?l&&b(T,"prototype",{writable:!1}):T.prototype&&(T.prototype=void 0)}catch{}var N=f(T);return v(N,"source")||(N.source=w(P,typeof A=="string"?A:"")),T};Function.prototype.toString=R(function(){return u(this)&&g(this).source||p(this)},"toString")},53033:(C,c,t)=>{var i=t(55740),s=Map.prototype;C.exports={Map,set:i(s.set),get:i(s.get),has:i(s.has),remove:i(s.delete),proto:s}},58448:(C,c,t)=>{var i=t(55740),s=t(48228),u=t(53033),v=u.Map,l=u.proto,h=i(l.forEach),p=i(l.entries),d=p(new v).next;C.exports=function(f,g,y){return y?s(p(f),function(b){return g(b[1],b[0])},d):h(f,g)}},28241:(C,c,t)=>{"use strict";var i=t(99760),s=t(7319),u=t(2714),v=t(4630),l=TypeError;C.exports=function(p,d){var f=v(this),g=s(f.get),y=s(f.has),b=s(f.set),E=arguments.length>2?arguments[2]:void 0,S;if(!u(d)&&!u(E))throw l("At least one callback required");return i(y,f,p)?(S=i(g,f,p),u(d)&&(S=d(S),i(b,f,p,S))):u(E)&&(S=E(),i(b,f,p,S)),S}},53728:C=>{var c=Math.expm1,t=Math.exp;C.exports=!c||c(10)>22025.465794806718||c(10)<22025.465794806718||c(-2e-17)!=-2e-17?function(s){var u=+s;return u==0?u:u>-1e-6&&u<1e-6?u+u*u/2:t(u)-1}:c},57488:(C,c,t)=>{var i=t(96471),s=Math.abs,u=Math.pow,v=u(2,-52),l=u(2,-23),h=u(2,127)*(2-l),p=u(2,-126),d=function(f){return f+1/v-1/v};C.exports=Math.fround||function(g){var y=+g,b=s(y),E=i(y),S,w;return b<p?E*d(b/p/l)*p*l:(S=(1+l/v)*b,w=S-(S-b),w>h||w!=w?E*(1/0):E*w)}},31794:C=>{var c=Math.log,t=Math.LOG10E;C.exports=Math.log10||function(s){return c(s)*t}},83820:C=>{var c=Math.log;C.exports=Math.log1p||function(i){var s=+i;return s>-1e-8&&s<1e-8?s-s*s/2:c(1+s)}},76373:C=>{C.exports=Math.scale||function(t,i,s,u,v){var l=+t,h=+i,p=+s,d=+u,f=+v;return l!=l||h!=h||p!=p||d!=d||f!=f?NaN:l===1/0||l===-1/0?l:(l-h)*(f-d)/(p-h)+d}},96471:C=>{C.exports=Math.sign||function(t){var i=+t;return i==0||i!=i?i:i<0?-1:1}},21582:C=>{var c=Math.ceil,t=Math.floor;C.exports=Math.trunc||function(s){var u=+s;return(u>0?t:c)(u)}},16560:(C,c,t)=>{var i=t(75866),s=t(31642),u=t(61560).f,v=t(79790).set,l=t(77425),h=t(95458),p=t(57569),d=t(69695),f=t(82768),g=i.MutationObserver||i.WebKitMutationObserver,y=i.document,b=i.process,E=i.Promise,S=u(i,"queueMicrotask"),w=S&&S.value,x,P,R,T,A;if(!w){var I=new l,N=function(){var K,_;for(f&&(K=b.domain)&&K.exit();_=I.get();)try{_()}catch(W){throw I.head&&x(),W}K&&K.enter()};!h&&!f&&!d&&g&&y?(P=!0,R=y.createTextNode(""),new g(N).observe(R,{characterData:!0}),x=function(){R.data=P=!P}):!p&&E&&E.resolve?(T=E.resolve(void 0),T.constructor=E,A=s(T.then,T),x=function(){A(N)}):f?x=function(){b.nextTick(N)}:(v=s(v,i),x=function(){v(N)}),w=function(K){I.head||x(),I.add(K)}}C.exports=w},90133:(C,c,t)=>{var i=t(97898);C.exports=!i(function(){var s="9007199254740993",u=JSON.rawJSON(s);return!JSON.isRawJSON(u)||JSON.stringify(u)!==s})},445:(C,c,t)=>{"use strict";var i=t(7319),s=TypeError,u=function(v){var l,h;this.promise=new v(function(p,d){if(l!==void 0||h!==void 0)throw s("Bad Promise constructor");l=p,h=d}),this.resolve=i(l),this.reject=i(h)};C.exports.f=function(v){return new u(v)}},46001:(C,c,t)=>{var i=t(36722);C.exports=function(s,u){return s===void 0?arguments.length<2?"":u:i(s)}},32091:C=>{var c=RangeError;C.exports=function(t){if(t===t)return t;throw c("NaN is not allowed")}},49501:(C,c,t)=>{var i=t(52974),s=TypeError;C.exports=function(u){if(i(u))throw s("The method doesn't accept regular expressions");return u}},30640:(C,c,t)=>{var i=t(75866),s=i.isFinite;C.exports=Number.isFinite||function(v){return typeof v=="number"&&s(v)}},72072:(C,c,t)=>{var i=t(75866),s=t(97898),u=t(55740),v=t(36722),l=t(78528).trim,h=t(38714),p=u("".charAt),d=i.parseFloat,f=i.Symbol,g=f&&f.iterator,y=1/d(h+"-0")!==-1/0||g&&!s(function(){d(Object(g))});C.exports=y?function(E){var S=l(v(E)),w=d(S);return w===0&&p(S,0)=="-"?-0:w}:d},44524:(C,c,t)=>{var i=t(75866),s=t(97898),u=t(55740),v=t(36722),l=t(78528).trim,h=t(38714),p=i.parseInt,d=i.Symbol,f=d&&d.iterator,g=/^[+-]?0x/i,y=u(g.exec),b=p(h+"08")!==8||p(h+"0x16")!==22||f&&!s(function(){p(Object(f))});C.exports=b?function(S,w){var x=l(v(S));return p(x,w>>>0||(y(g,x)?16:10))}:p},80359:(C,c,t)=>{"use strict";var i=t(45699),s=t(56561),u=t(14373),v=t(67213),l=t(73091),h=t(74066),p=t(77022),d="Incorrect Iterator.range arguments",f="NumericRangeIterator",g=i.set,y=i.getterFor(f),b=RangeError,E=TypeError,S=s(function(P,R,T,A,I,N){if(typeof P!=A||R!==1/0&&R!==-1/0&&typeof R!=A)throw E(d);if(P===1/0||P===-1/0)throw b(d);var K=R>P,_=!1,W;if(T===void 0)W=void 0;else if(l(T))W=T.step,_=!!T.inclusive;else if(typeof T==A)W=T;else throw E(d);if(v(W)&&(W=K?N:-N),typeof W!=A)throw E(d);if(W===1/0||W===-1/0||W===I&&P!==R)throw b(d);var j=P!=P||R!=R||W!=W||R>P!=W>I;g(this,{type:f,start:P,end:R,step:W,inclusive:_,hitsEnd:j,currentCount:I,zero:I}),p||(this.start=P,this.end=R,this.step=W,this.inclusive=_)},f,function(){var P=y(this);if(P.hitsEnd)return u(void 0,!0);var R=P.start,T=P.end,A=P.step,I=R+A*P.currentCount++;I===T&&(P.hitsEnd=!0);var N=P.inclusive,K;return T>R?K=N?I>T:I>=T:K=N?T>I:T>=I,K?(P.hitsEnd=!0,u(void 0,!0)):u(I,!1)}),w=function(x){h(S.prototype,x,{get:function(){return y(this)[x]},set:function(){},configurable:!0,enumerable:!1})};p&&(w("start"),w("end"),w("inclusive"),w("step")),C.exports=S},49976:(C,c,t)=>{"use strict";var i=t(77022),s=t(55740),u=t(99760),v=t(97898),l=t(64386),h=t(83166),p=t(92705),d=t(9376),f=t(46496),g=Object.assign,y=Object.defineProperty,b=s([].concat);C.exports=!g||v(function(){if(i&&g({b:1},g(y({},"a",{enumerable:!0,get:function(){y(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var E={},S={},w=Symbol(),x="abcdefghijklmnopqrst";return E[w]=7,x.split("").forEach(function(P){S[P]=P}),g({},E)[w]!=7||l(g({},S)).join("")!=x})?function(S,w){for(var x=d(S),P=arguments.length,R=1,T=h.f,A=p.f;P>R;)for(var I=f(arguments[R++]),N=T?b(l(I),T(I)):l(I),K=N.length,_=0,W;K>_;)W=N[_++],(!i||u(A,I,W))&&(x[W]=I[W]);return x}:g},69735:(C,c,t)=>{var i=t(4630),s=t(27370),u=t(40506),v=t(4811),l=t(12446),h=t(35166),p=t(37893),d=">",f="<",g="prototype",y="script",b=p("IE_PROTO"),E=function(){},S=function(T){return f+y+d+T+f+"/"+y+d},w=function(T){T.write(S("")),T.close();var A=T.parentWindow.Object;return T=null,A},x=function(){var T=h("iframe"),A="java"+y+":",I;return T.style.display="none",l.appendChild(T),T.src=String(A),I=T.contentWindow.document,I.open(),I.write(S("document.F=Object")),I.close(),I.F},P,R=function(){try{P=new ActiveXObject("htmlfile")}catch{}R=typeof document<"u"?document.domain&&P?w(P):x():w(P);for(var T=u.length;T--;)delete R[g][u[T]];return R()};v[b]=!0,C.exports=Object.create||function(A,I){var N;return A!==null?(E[g]=i(A),N=new E,E[g]=null,N[b]=A):N=R(),I===void 0?N:s.f(N,I)}},27370:(C,c,t)=>{var i=t(77022),s=t(72449),u=t(56768),v=t(4630),l=t(55339),h=t(64386);c.f=i&&!s?Object.defineProperties:function(d,f){v(d);for(var g=l(f),y=h(f),b=y.length,E=0,S;b>E;)u.f(d,S=y[E++],g[S]);return d}},56768:(C,c,t)=>{var i=t(77022),s=t(73914),u=t(72449),v=t(4630),l=t(6618),h=TypeError,p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f="enumerable",g="configurable",y="writable";c.f=i?u?function(E,S,w){if(v(E),S=l(S),v(w),typeof E=="function"&&S==="prototype"&&"value"in w&&y in w&&!w[y]){var x=d(E,S);x&&x[y]&&(E[S]=w.value,w={configurable:g in w?w[g]:x[g],enumerable:f in w?w[f]:x[f],writable:!1})}return p(E,S,w)}:p:function(E,S,w){if(v(E),S=l(S),v(w),s)try{return p(E,S,w)}catch{}if("get"in w||"set"in w)throw h("Accessors not supported");return"value"in w&&(E[S]=w.value),E}},61560:(C,c,t)=>{var i=t(77022),s=t(99760),u=t(92705),v=t(33091),l=t(55339),h=t(6618),p=t(15275),d=t(73914),f=Object.getOwnPropertyDescriptor;c.f=i?f:function(y,b){if(y=l(y),b=h(b),d)try{return f(y,b)}catch{}if(p(y,b))return v(!s(u.f,y,b),y[b])}},93292:(C,c,t)=>{var i=t(53882),s=t(55339),u=t(74757).f,v=t(26970),l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=function(p){try{return u(p)}catch{return v(l)}};C.exports.f=function(d){return l&&i(d)=="Window"?h(d):u(s(d))}},74757:(C,c,t)=>{var i=t(27421),s=t(40506),u=s.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(l){return i(l,u)}},83166:(C,c)=>{c.f=Object.getOwnPropertySymbols},52839:(C,c,t)=>{var i=t(15275),s=t(2714),u=t(9376),v=t(37893),l=t(28715),h=v("IE_PROTO"),p=Object,d=p.prototype;C.exports=l?p.getPrototypeOf:function(f){var g=u(f);if(i(g,h))return g[h];var y=g.constructor;return s(y)&&g instanceof y?y.prototype:g instanceof p?d:null}},71772:(C,c,t)=>{var i=t(97898),s=t(73091),u=t(53882),v=t(55563),l=Object.isExtensible,h=i(function(){l(1)});C.exports=h||v?function(d){return!s(d)||v&&u(d)=="ArrayBuffer"?!1:l?l(d):!0}:l},720:(C,c,t)=>{var i=t(55740);C.exports=i({}.isPrototypeOf)},5874:(C,c,t)=>{"use strict";var i=t(45699),s=t(56561),u=t(14373),v=t(15275),l=t(64386),h=t(9376),p="Object Iterator",d=i.set,f=i.getterFor(p);C.exports=s(function(y,b){var E=h(y);d(this,{type:p,mode:b,object:E,keys:l(E),index:0})},"Object",function(){for(var y=f(this),b=y.keys;;){if(b===null||y.index>=b.length)return y.object=y.keys=null,u(void 0,!0);var E=b[y.index++],S=y.object;if(v(S,E)){switch(y.mode){case"keys":return u(E,!1);case"values":return u(S[E],!1)}return u([E,S[E]],!1)}}})},27421:(C,c,t)=>{var i=t(55740),s=t(15275),u=t(55339),v=t(66309).indexOf,l=t(4811),h=i([].push);C.exports=function(p,d){var f=u(p),g=0,y=[],b;for(b in f)!s(l,b)&&s(f,b)&&h(y,b);for(;d.length>g;)s(f,b=d[g++])&&(~v(y,b)||h(y,b));return y}},64386:(C,c,t)=>{var i=t(27421),s=t(40506);C.exports=Object.keys||function(v){return i(v,s)}},92705:(C,c)=>{"use strict";var t={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!t.call({1:2},1);c.f=s?function(v){var l=i(this,v);return!!l&&l.enumerable}:t},9299:(C,c,t)=>{"use strict";var i=t(65259),s=t(75866),u=t(97898),v=t(35401);C.exports=i||!u(function(){if(!(v&&v<535)){var l=Math.random();__defineSetter__.call(null,l,function(){}),delete s[l]}})},39869:(C,c,t)=>{var i=t(68281),s=t(4630),u=t(4829);C.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var v=!1,l={},h;try{h=i(Object.prototype,"__proto__","set"),h(l,[]),v=l instanceof Array}catch{}return function(d,f){return s(d),u(f),v?h(d,f):d.__proto__=f,d}}():void 0)},21678:(C,c,t)=>{var i=t(77022),s=t(97898),u=t(55740),v=t(52839),l=t(64386),h=t(55339),p=t(92705).f,d=u(p),f=u([].push),g=i&&s(function(){var b=Object.create(null);return b[2]=2,!d(b,2)}),y=function(b){return function(E){for(var S=h(E),w=l(S),x=g&&v(S)===null,P=w.length,R=0,T=[],A;P>R;)A=w[R++],(!i||(x?A in S:d(S,A)))&&f(T,b?[A,S[A]]:S[A]);return T}};C.exports={entries:y(!0),values:y(!1)}},52309:(C,c,t)=>{"use strict";var i=t(45075),s=t(17766);C.exports=i?{}.toString:function(){return"[object "+s(this)+"]"}},42128:(C,c,t)=>{var i=t(75866),s=t(2714),u=t(70330),v=u("observable"),l=i.Observable,h=l&&l.prototype;C.exports=!s(l)||!s(l.from)||!s(l.of)||!s(h.subscribe)||!s(h[v])},54369:(C,c,t)=>{var i=t(99760),s=t(2714),u=t(73091),v=TypeError;C.exports=function(l,h){var p,d;if(h==="string"&&s(p=l.toString)&&!u(d=i(p,l))||s(p=l.valueOf)&&!u(d=i(p,l))||h!=="string"&&s(p=l.toString)&&!u(d=i(p,l)))return d;throw v("Can't convert object to primitive value")}},765:(C,c,t)=>{var i=t(90731),s=t(55740),u=t(74757),v=t(83166),l=t(4630),h=s([].concat);C.exports=i("Reflect","ownKeys")||function(d){var f=u.f(l(d)),g=v.f;return g?h(f,g(d)):f}},77676:(C,c,t)=>{var i=t(55740),s=t(15275),u=SyntaxError,v=parseInt,l=String.fromCharCode,h=i("".charAt),p=i("".slice),d=i(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":` `,"\\r":"\r","\\t":" "},g=/^[\da-f]{4}$/i,y=/^[\u0000-\u001F]$/;C.exports=function(b,E){for(var S=!0,w="";E<b.length;){var x=h(b,E);if(x=="\\"){var P=p(b,E,E+2);if(s(f,P))w+=f[P],E+=2;else if(P=="\\u"){E+=2;var R=p(b,E,E+4);if(!d(g,R))throw u("Bad Unicode escape at: "+E);w+=l(v(R,16)),E+=4}else throw u('Unknown escape sequence: "'+P+'"')}else if(x=='"'){S=!1,E++;break}else{if(d(y,x))throw u("Bad control character in string literal at: "+E);w+=x,E++}}if(S)throw u("Unterminated string at: "+E);return{value:w,end:E}}},95061:(C,c,t)=>{var i=t(75866);C.exports=i},69297:C=>{C.exports=function(c){try{return{error:!1,value:c()}}catch(t){return{error:!0,value:t}}}},14146:(C,c,t)=>{var i=t(75866),s=t(85985),u=t(2714),v=t(40042),l=t(46107),h=t(70330),p=t(39727),d=t(84534),f=t(65259),g=t(76440),y=s&&s.prototype,b=h("species"),E=!1,S=u(i.PromiseRejectionEvent),w=v("Promise",function(){var x=l(s),P=x!==String(s);if(!P&&g===66||f&&!(y.catch&&y.finally))return!0;if(!g||g<51||!/native code/.test(x)){var R=new s(function(I){I(1)}),T=function(I){I(function(){},function(){})},A=R.constructor={};if(A[b]=T,E=R.then(function(){})instanceof T,!E)return!0}return!P&&(p||d)&&!S});C.exports={CONSTRUCTOR:w,REJECTION_EVENT:S,SUBCLASSING:E}},85985:(C,c,t)=>{var i=t(75866);C.exports=i.Promise},30312:(C,c,t)=>{var i=t(4630),s=t(73091),u=t(445);C.exports=function(v,l){if(i(v),s(l)&&l.constructor===v)return l;var h=u.f(v),p=h.resolve;return p(l),h.promise}},33891:(C,c,t)=>{var i=t(85985),s=t(35505),u=t(14146).CONSTRUCTOR;C.exports=u||!s(function(v){i.all(v).then(void 0,function(){})})},36775:(C,c,t)=>{var i=t(56768).f;C.exports=function(s,u,v){v in s||i(s,v,{configurable:!0,get:function(){return u[v]},set:function(l){u[v]=l}})}},77425:C=>{var c=function(){this.head=null,this.tail=null};c.prototype={add:function(t){var i={item:t,next:null},s=this.tail;s?s.next=i:this.head=i,this.tail=i},get:function(){var t=this.head;if(t){var i=this.head=t.next;return i===null&&(this.tail=null),t.item}}},C.exports=c},6531:(C,c,t)=>{t(38392),t(56894);var i=t(90731),s=t(55740),u=t(14232),v=i("Map"),l=i("WeakMap"),h=s([].push),p=u("metadata"),d=p.store||(p.store=new l),f=function(w,x,P){var R=d.get(w);if(!R){if(!P)return;d.set(w,R=new v)}var T=R.get(x);if(!T){if(!P)return;R.set(x,T=new v)}return T},g=function(w,x,P){var R=f(x,P,!1);return R===void 0?!1:R.has(w)},y=function(w,x,P){var R=f(x,P,!1);return R===void 0?void 0:R.get(w)},b=function(w,x,P,R){f(P,R,!0).set(w,x)},E=function(w,x){var P=f(w,x,!1),R=[];return P&&P.forEach(function(T,A){h(R,A)}),R},S=function(w){return w===void 0||typeof w=="symbol"?w:String(w)};C.exports={store:d,getMap:f,has:g,get:y,set:b,keys:E,toKey:S}},41917:(C,c,t)=>{var i=t(99760),s=t(4630),u=t(2714),v=t(53882),l=t(56144),h=TypeError;C.exports=function(p,d){var f=p.exec;if(u(f)){var g=i(f,p,d);return g!==null&&s(g),g}if(v(p)==="RegExp")return i(l,p,d);throw h("RegExp#exec called on incompatible receiver")}},56144:(C,c,t)=>{"use strict";var i=t(99760),s=t(55740),u=t(36722),v=t(73286),l=t(56404),h=t(14232),p=t(69735),d=t(45699).get,f=t(10197),g=t(80480),y=h("native-string-replace",String.prototype.replace),b=RegExp.prototype.exec,E=b,S=s("".charAt),w=s("".indexOf),x=s("".replace),P=s("".slice),R=function(){var N=/a/,K=/b*/g;return i(b,N,"a"),i(b,K,"a"),N.lastIndex!==0||K.lastIndex!==0}(),T=l.BROKEN_CARET,A=/()??/.exec("")[1]!==void 0,I=R||A||T||f||g;I&&(E=function(K){var _=this,W=d(_),j=u(K),re=W.raw,X,Z,J,q,L,$,k;if(re)return re.lastIndex=_.lastIndex,X=i(E,re,j),_.lastIndex=re.lastIndex,X;var F=W.groups,V=T&&_.sticky,pe=i(v,_),ce=_.source,G=0,te=j;if(V&&(pe=x(pe,"y",""),w(pe,"g")===-1&&(pe+="g"),te=P(j,_.lastIndex),_.lastIndex>0&&(!_.multiline||_.multiline&&S(j,_.lastIndex-1)!==` `)&&(ce="(?: "+ce+")",te=" "+te,G++),Z=new RegExp("^(?:"+ce+")",pe)),A&&(Z=new RegExp("^"+ce+"$(?!\\s)",pe)),R&&(J=_.lastIndex),q=i(b,V?Z:_,te),V?q?(q.input=P(q.input,G),q[0]=P(q[0],G),q.index=_.lastIndex,_.lastIndex+=q[0].length):_.lastIndex=0:R&&q&&(_.lastIndex=_.global?q.index+q[0].length:J),A&&q&&q.length>1&&i(y,q[0],Z,function(){for(L=1;L<arguments.length-2;L++)arguments[L]===void 0&&(q[L]=void 0)}),q&&F)for(q.groups=$=p(null),L=0;L<F.length;L++)k=F[L],$[k[0]]=q[k[1]];return q}),C.exports=E},73286:(C,c,t)=>{"use strict";var i=t(4630);C.exports=function(){var s=i(this),u="";return s.hasIndices&&(u+="d"),s.global&&(u+="g"),s.ignoreCase&&(u+="i"),s.multiline&&(u+="m"),s.dotAll&&(u+="s"),s.unicode&&(u+="u"),s.unicodeSets&&(u+="v"),s.sticky&&(u+="y"),u}},59261:(C,c,t)=>{var i=t(99760),s=t(15275),u=t(720),v=t(73286),l=RegExp.prototype;C.exports=function(h){var p=h.flags;return p===void 0&&!("flags"in l)&&!s(h,"flags")&&u(l,h)?i(v,h):p}},56404:(C,c,t)=>{var i=t(97898),s=t(75866),u=s.RegExp,v=i(function(){var p=u("a","y");return p.lastIndex=2,p.exec("abcd")!=null}),l=v||i(function(){return!u("a","y").sticky}),h=v||i(function(){var p=u("^r","gy");return p.lastIndex=2,p.exec("str")!=null});C.exports={BROKEN_CARET:h,MISSED_STICKY:l,UNSUPPORTED_Y:v}},10197:(C,c,t)=>{var i=t(97898),s=t(75866),u=s.RegExp;C.exports=i(function(){var v=u(".","s");return!(v.dotAll&&v.exec(` `)&&v.flags==="s")})},80480:(C,c,t)=>{var i=t(97898),s=t(75866),u=s.RegExp;C.exports=i(function(){var v=u("(?<a>b)","g");return v.exec("b").groups.a!=="b"||"b".replace(v,"$<a>c")!=="bc"})},38213:(C,c,t)=>{var i=t(67213),s=TypeError;C.exports=function(u){if(i(u))throw s("Can't call method on "+u);return u}},8046:C=>{C.exports=function(c,t){return c===t||c!=c&&t!=t}},82536:C=>{C.exports=Object.is||function(t,i){return t===i?t!==0||1/t===1/i:t!=t&&i!=i}},27673:(C,c,t)=>{"use strict";var i=t(75866),s=t(27630),u=t(2714),v=t(29288),l=t(80994),h=t(1723),p=t(69033),d=i.Function,f=/MSIE .\./.test(l)||v&&function(){var g=i.Bun.version.split(".");return g.length<3||g[0]==0&&(g[1]<3||g[1]==3&&g[2]==0)}();C.exports=function(g,y){var b=y?2:1;return f?function(E,S){var w=p(arguments.length,1)>b,x=u(E)?E:d(E),P=w?h(arguments,b):[],R=w?function(){s(x,this,P)}:x;return y?g(R,S):g(R)}:g}},46786:(C,c,t)=>{var i=t(2955),s=t(17203),u=i.Set,v=i.add;C.exports=function(l){var h=new u;return s(l,function(p){v(h,p)}),h}},1210:(C,c,t)=>{"use strict";var i=t(75522),s=t(2955),u=t(46786),v=t(89910),l=t(67e3),h=t(17203),p=t(48228),d=s.has,f=s.remove;C.exports=function(y){var b=i(this),E=l(y),S=u(b);return v(b)<=E.size?h(b,function(w){E.includes(w)&&f(S,w)}):p(E.getIterator(),function(w){d(b,w)&&f(S,w)}),S}},2955:(C,c,t)=>{var i=t(55740),s=Set.prototype;C.exports={Set,add:i(s.add),has:i(s.has),remove:i(s.delete),proto:s}},43818:(C,c,t)=>{"use strict";var i=t(75522),s=t(2955),u=t(89910),v=t(67e3),l=t(17203),h=t(48228),p=s.Set,d=s.add,f=s.has;C.exports=function(y){var b=i(this),E=v(y),S=new p;return u(b)>E.size?h(E.getIterator(),function(w){f(b,w)&&d(S,w)}):l(b,function(w){E.includes(w)&&d(S,w)}),S}},46698:(C,c,t)=>{"use strict";var i=t(75522),s=t(2955).has,u=t(89910),v=t(67e3),l=t(17203),h=t(48228),p=t(74765);C.exports=function(f){var g=i(this),y=v(f);if(u(g)<=y.size)return l(g,function(E){if(y.includes(E))return!1},!0)!==!1;var b=y.getIterator();return h(b,function(E){if(s(g,E))return p(b,"normal",!1)})!==!1}},28419:(C,c,t)=>{"use strict";var i=t(75522),s=t(89910),u=t(17203),v=t(67e3);C.exports=function(h){var p=i(this),d=v(h);return s(p)>d.size?!1:u(p,function(f){if(!d.includes(f))return!1},!0)!==!1}},33909:(C,c,t)=>{"use strict";var i=t(75522),s=t(2955).has,u=t(89910),v=t(67e3),l=t(48228),h=t(74765);C.exports=function(d){var f=i(this),g=v(d);if(u(f)<g.size)return!1;var y=g.getIterator();return l(y,function(b){if(!s(f,b))return h(y,"normal",!1)})!==!1}},17203:(C,c,t)=>{var i=t(55740),s=t(48228),u=t(2955),v=u.Set,l=u.proto,h=i(l.forEach),p=i(l.keys),d=p(new v).next;C.exports=function(f,g,y){return y?s(p(f),g,d):h(f,g)}},44088:(C,c,t)=>{var i=t(90731),s=function(){return{size:0,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};C.exports=function(u){try{var v=i("Set");return new v()[u](s()),!0}catch{return!1}}},89910:(C,c,t)=>{var i=t(68281),s=t(2955);C.exports=i(s.proto,"size","get")||function(u){return u.size}},87735:(C,c,t)=>{"use strict";var i=t(90731),s=t(74066),u=t(70330),v=t(77022),l=u("species");C.exports=function(h){var p=i(h);v&&p&&!p[l]&&s(p,l,{configurable:!0,get:function(){return this}})}},29342:(C,c,t)=>{"use strict";var i=t(75522),s=t(2955),u=t(46786),v=t(67e3),l=t(48228),h=s.add,p=s.has,d=s.remove;C.exports=function(g){var y=i(this),b=v(g).getIterator(),E=u(y);return l(b,function(S){p(y,S)?d(E,S):h(E,S)}),E}},61817:(C,c,t)=>{var i=t(56768).f,s=t(15275),u=t(70330),v=u("toStringTag");C.exports=function(l,h,p){l&&!p&&(l=l.prototype),l&&!s(l,v)&&i(l,v,{configurable:!0,value:h})}},84353:(C,c,t)=>{"use strict";var i=t(75522),s=t(2955).add,u=t(46786),v=t(67e3),l=t(48228);C.exports=function(p){var d=i(this),f=v(p).getIterator(),g=u(d);return l(f,function(y){s(g,y)}),g}},37893:(C,c,t)=>{var i=t(14232),s=t(8499),u=i("keys");C.exports=function(v){return u[v]||(u[v]=s(v))}},16314:(C,c,t)=>{var i=t(75866),s=t(5453),u="__core-js_shared__",v=i[u]||s(u,{});C.exports=v},14232:(C,c,t)=>{var i=t(65259),s=t(16314);(C.exports=function(u,v){return s[u]||(s[u]=v!==void 0?v:{})})("versions",[]).push({version:"3.31.0",mode:i?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"})},14773:(C,c,t)=>{var i=t(4630),s=t(3897),u=t(67213),v=t(70330),l=v("species");C.exports=function(h,p){var d=i(h).constructor,f;return d===void 0||u(f=i(d)[l])?p:s(f)}},51299:(C,c,t)=>{var i=t(55740),s=t(55339),u=t(36722),v=t(84349),l=TypeError,h=i([].push),p=i([].join);C.exports=function(f){var g=s(f),y=v(g);if(!y)return"";for(var b=arguments.length,E=[],S=0;;){var w=g[S++];if(w===void 0)throw l("Incorrect template");if(h(E,u(w)),S===y)return p(E,"");S<b&&h(E,u(arguments[S]))}}},69370:(C,c,t)=>{var i=t(97898);C.exports=function(s){return i(function(){var u=""[s]('"');return u!==u.toLowerCase()||u.split('"').length>3})}},56491:(C,c,t)=>{var i=t(55740),s=t(46226),u=t(36722),v=t(38213),l=i("".charAt),h=i("".charCodeAt),p=i("".slice),d=function(f){return function(g,y){var b=u(v(g)),E=s(y),S=b.length,w,x;return E<0||E>=S?f?"":void 0:(w=h(b,E),w<55296||w>56319||E+1===S||(x=h(b,E+1))<56320||x>57343?f?l(b,E):w:f?p(b,E,E+2):(w-55296<<10)+(x-56320)+65536)}};C.exports={codeAt:d(!1),charAt:d(!0)}},61424:(C,c,t)=>{var i=t(80994);C.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(i)},22925:(C,c,t)=>{var i=t(55740),s=t(90161),u=t(36722),v=t(73531),l=t(38213),h=i(v),p=i("".slice),d=Math.ceil,f=function(g){return function(y,b,E){var S=u(l(y)),w=s(b),x=S.length,P=E===void 0?" ":u(E),R,T;return w<=x||P==""?S:(R=w-x,T=h(P,d(R/P.length)),T.length>R&&(T=p(T,0,R)),g?S+T:T+S)}};C.exports={start:f(!1),end:f(!0)}},86797:(C,c,t)=>{var i=t(90731),s=t(55740),u=String.fromCharCode,v=i("String","fromCodePoint"),l=s("".charAt),h=s("".charCodeAt),p=s("".indexOf),d=s("".slice),f=48,g=57,y=97,b=102,E=65,S=70,w=function(R,T){var A=h(R,T);return A>=f&&A<=g},x=function(R,T,A){if(A>=R.length)return-1;for(var I=0;T<A;T++){var N=P(h(R,T));if(N===-1)return-1;I=I*16+N}return I},P=function(R){return R>=f&&R<=g?R-f:R>=y&&R<=b?R-y+10:R>=E&&R<=S?R-E+10:-1};C.exports=function(R){for(var T="",A=0,I=0,N;(I=p(R,"\\",I))>-1;){if(T+=d(R,A,I),++I===R.length)return;var K=l(R,I++);switch(K){case"b":T+="\b";break;case"t":T+=" ";break;case"n":T+=` `;break;case"v":T+="\v";break;case"f":T+="\f";break;case"r":T+="\r";break;case"\r":I<R.length&&l(R,I)===` `&&++I;case` `:case"\u2028":case"\u2029":break;case"0":if(w(R,I))return;T+="\0";break;case"x":if(N=x(R,I,I+2),N===-1)return;I+=2,T+=u(N);break;case"u":if(I<R.length&&l(R,I)==="{"){var _=p(R,"}",++I);if(_===-1)return;N=x(R,I,_),I=_+1}else N=x(R,I,I+4),I+=4;if(N===-1||N>1114111)return;T+=v(N);break;default:if(w(K,0))return;T+=K}A=I}return T+d(R,A)}},38865:(C,c,t)=>{var i=t(55740),s=2147483647,u=36,v=1,l=26,h=38,p=700,d=72,f=128,g="-",y=/[^\0-\u007E]/,b=/[.\u3002\uFF0E\uFF61]/g,E="Overflow: input needs wider integers to process",S=u-v,w=RangeError,x=i(b.exec),P=Math.floor,R=String.fromCharCode,T=i("".charCodeAt),A=i([].join),I=i([].push),N=i("".replace),K=i("".split),_=i("".toLowerCase),W=function(Z){for(var J=[],q=0,L=Z.length;q<L;){var $=T(Z,q++);if($>=55296&&$<=56319&&q<L){var k=T(Z,q++);(k&64512)==56320?I(J,(($&1023)<<10)+(k&1023)+65536):(I(J,$),q--)}else I(J,$)}return J},j=function(Z){return Z+22+75*(Z<26)},re=function(Z,J,q){var L=0;for(Z=q?P(Z/p):Z>>1,Z+=P(Z/J);Z>S*l>>1;)Z=P(Z/S),L+=u;return P(L+(S+1)*Z/(Z+h))},X=function(Z){var J=[];Z=W(Z);var q=Z.length,L=f,$=0,k=d,F,V;for(F=0;F<Z.length;F++)V=Z[F],V<128&&I(J,R(V));var pe=J.length,ce=pe;for(pe&&I(J,g);ce<q;){var G=s;for(F=0;F<Z.length;F++)V=Z[F],V>=L&&V<G&&(G=V);var te=ce+1;if(G-L>P((s-$)/te))throw w(E);for($+=(G-L)*te,L=G,F=0;F<Z.length;F++){if(V=Z[F],V<L&&++$>s)throw w(E);if(V==L){for(var ie=$,fe=u;;){var Se=fe<=k?v:fe>=k+l?l:fe-k;if(ie<Se)break;var he=ie-Se,me=u-Se;I(J,R(j(Se+he%me))),ie=P(he/me),fe+=u}I(J,R(j(ie))),k=re($,te,ce==pe),$=0,ce++}}$++,L++}return A(J,"")};C.exports=function(Z){var J=[],q=K(N(_(Z),b,"."),"."),L,$;for(L=0;L<q.length;L++)$=q[L],I(J,x(y,$)?"xn--"+X($):$);return A(J,".")}},73531:(C,c,t)=>{"use strict";var i=t(46226),s=t(36722),u=t(38213),v=RangeError;C.exports=function(h){var p=s(u(this)),d="",f=i(h);if(f<0||f==1/0)throw v("Wrong number of repetitions");for(;f>0;(f>>>=1)&&(p+=p))f&1&&(d+=p);return d}},18713:(C,c,t)=>{"use strict";var i=t(78528).end,s=t(79276);C.exports=s("trimEnd")?function(){return i(this)}:"".trimEnd},79276:(C,c,t)=>{var i=t(18551).PROPER,s=t(97898),u=t(38714),v="\u200B\x85\u180E";C.exports=function(l){return s(function(){return!!u[l]()||v[l]()!==v||i&&u[l].name!==l})}},74001:(C,c,t)=>{"use strict";var i=t(78528).start,s=t(79276);C.exports=s("trimStart")?function(){return i(this)}:"".trimStart},78528:(C,c,t)=>{var i=t(55740),s=t(38213),u=t(36722),v=t(38714),l=i("".replace),h=RegExp("^["+v+"]+"),p=RegExp("(^|[^"+v+"])["+v+"]+$"),d=function(f){return function(g){var y=u(s(g));return f&1&&(y=l(y,h,"")),f&2&&(y=l(y,p,"$1")),y}};C.exports={start:d(1),end:d(2),trim:d(3)}},33562:(C,c,t)=>{var i=t(75866),s=t(97898),u=t(76440),v=t(39727),l=t(84534),h=t(82768),p=i.structuredClone;C.exports=!!p&&!s(function(){if(l&&u>92||h&&u>94||v&&u>97)return!1;var d=new ArrayBuffer(8),f=p(d,{transfer:[d]});return d.byteLength!=0||f.byteLength!=8})},48726:(C,c,t)=>{var i=t(76440),s=t(97898),u=t(75866),v=u.String;C.exports=!!Object.getOwnPropertySymbols&&!s(function(){var l=Symbol();return!v(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&i&&i<41})},48594:(C,c,t)=>{var i=t(99760),s=t(90731),u=t(70330),v=t(76156);C.exports=function(){var l=s("Symbol"),h=l&&l.prototype,p=h&&h.valueOf,d=u("toPrimitive");h&&!h[d]&&v(h,d,function(f){return i(p,this)},{arity:1})}},90899:(C,c,t)=>{var i=t(90731),s=t(55740),u=i("Symbol"),v=u.keyFor,l=s(u.prototype.valueOf);C.exports=u.isRegisteredSymbol||function(p){try{return v(l(p))!==void 0}catch{return!1}}},1297:(C,c,t)=>{for(var i=t(14232),s=t(90731),u=t(55740),v=t(14566),l=t(70330),h=s("Symbol"),p=h.isWellKnownSymbol,d=s("Object","getOwnPropertyNames"),f=u(h.prototype.valueOf),g=i("wks"),y=0,b=d(h),E=b.length;y<E;y++)try{var S=b[y];v(h[S])&&l(S)}catch{}C.exports=function(x){if(p&&p(x))return!0;try{for(var P=f(x),R=0,T=d(g),A=T.length;R<A;R++)if(g[T[R]]==P)return!0}catch{}return!1}},47009:(C,c,t)=>{var i=t(48726);C.exports=i&&!!Symbol.for&&!!Symbol.keyFor},79790:(C,c,t)=>{var i=t(75866),s=t(27630),u=t(31642),v=t(2714),l=t(15275),h=t(97898),p=t(12446),d=t(1723),f=t(35166),g=t(69033),y=t(95458),b=t(82768),E=i.setImmediate,S=i.clearImmediate,w=i.process,x=i.Dispatch,P=i.Function,R=i.MessageChannel,T=i.String,A=0,I={},N="onreadystatechange",K,_,W,j;h(function(){K=i.location});var re=function(q){if(l(I,q)){var L=I[q];delete I[q],L()}},X=function(q){return function(){re(q)}},Z=function(q){re(q.data)},J=function(q){i.postMessage(T(q),K.protocol+"//"+K.host)};(!E||!S)&&(E=function(L){g(arguments.length,1);var $=v(L)?L:P(L),k=d(arguments,1);return I[++A]=function(){s($,void 0,k)},_(A),A},S=function(L){delete I[L]},b?_=function(q){w.nextTick(X(q))}:x&&x.now?_=function(q){x.now(X(q))}:R&&!y?(W=new R,j=W.port2,W.port1.onmessage=Z,_=u(j.postMessage,j)):i.addEventListener&&v(i.postMessage)&&!i.importScripts&&K&&K.protocol!=="file:"&&!h(J)?(_=J,i.addEventListener("message",Z,!1)):N in f("script")?_=function(q){p.appendChild(f("script"))[N]=function(){p.removeChild(this),re(q)}}:_=function(q){setTimeout(X(q),0)}),C.exports={set:E,clear:S}},55821:(C,c,t)=>{var i=t(55740);C.exports=i(1 .valueOf)},49717:(C,c,t)=>{var i=t(46226),s=Math.max,u=Math.min;C.exports=function(v,l){var h=i(v);return h<0?s(h+l,0):u(h,l)}},30962:(C,c,t)=>{var i=t(9260),s=TypeError;C.exports=function(u){var v=i(u,"number");if(typeof v=="number")throw s("Can't convert number to bigint");return BigInt(v)}},95764:(C,c,t)=>{var i=t(46226),s=t(90161),u=RangeError;C.exports=function(v){if(v===void 0)return 0;var l=i(v),h=s(l);if(l!==h)throw u("Wrong length or index");return h}},55339:(C,c,t)=>{var i=t(46496),s=t(38213);C.exports=function(u){return i(s(u))}},46226:(C,c,t)=>{var i=t(21582);C.exports=function(s){var u=+s;return u!==u||u===0?0:i(u)}},90161:(C,c,t)=>{var i=t(46226),s=Math.min;C.exports=function(u){return u>0?s(i(u),9007199254740991):0}},9376:(C,c,t)=>{var i=t(38213),s=Object;C.exports=function(u){return s(i(u))}},22398:(C,c,t)=>{var i=t(32157),s=RangeError;C.exports=function(u,v){var l=i(u);if(l%v)throw s("Wrong offset");return l}},32157:(C,c,t)=>{var i=t(46226),s=RangeError;C.exports=function(u){var v=i(u);if(v<0)throw s("The argument can't be less than 0");return v}},9260:(C,c,t)=>{var i=t(99760),s=t(73091),u=t(14566),v=t(83735),l=t(54369),h=t(70330),p=TypeError,d=h("toPrimitive");C.exports=function(f,g){if(!s(f)||u(f))return f;var y=v(f,d),b;if(y){if(g===void 0&&(g="default"),b=i(y,f,g),!s(b)||u(b))return b;throw p("Can't convert object to primitive value")}return g===void 0&&(g="number"),l(f,g)}},6618:(C,c,t)=>{var i=t(9260),s=t(14566);C.exports=function(u){var v=i(u,"string");return s(v)?v:v+""}},24582:(C,c,t)=>{var i=t(90731),s=t(2714),u=t(71468),v=t(73091),l=i("Set"),h=function(p){return v(p)&&typeof p.size=="number"&&s(p.has)&&s(p.keys)};C.exports=function(p){return h(p)?p:u(p)?new l(p):p}},45075:(C,c,t)=>{var i=t(70330),s=i("toStringTag"),u={};u[s]="z",C.exports=String(u)==="[object z]"},36722:(C,c,t)=>{var i=t(17766),s=String;C.exports=function(u){if(i(u)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return s(u)}},79950:(C,c,t)=>{var i=t(82768);C.exports=function(s){try{if(i)return Function('return require("'+s+'")')()}catch{}}},70369:C=>{var c=String;C.exports=function(t){try{return c(t)}catch{return"Object"}}},30677:(C,c,t)=>{"use strict";var i=t(83846),s=t(75866),u=t(99760),v=t(77022),l=t(74118),h=t(91390),p=t(48951),d=t(99385),f=t(33091),g=t(37651),y=t(76660),b=t(90161),E=t(95764),S=t(22398),w=t(6618),x=t(15275),P=t(17766),R=t(73091),T=t(14566),A=t(69735),I=t(720),N=t(39869),K=t(74757).f,_=t(49811),W=t(45742).forEach,j=t(87735),re=t(74066),X=t(56768),Z=t(61560),J=t(45699),q=t(83108),L=J.get,$=J.set,k=J.enforce,F=X.f,V=Z.f,pe=Math.round,ce=s.RangeError,G=p.ArrayBuffer,te=G.prototype,ie=p.DataView,fe=h.NATIVE_ARRAY_BUFFER_VIEWS,Se=h.TYPED_ARRAY_TAG,he=h.TypedArray,me=h.TypedArrayPrototype,_e=h.aTypedArrayConstructor,we=h.isTypedArray,Ge="BYTES_PER_ELEMENT",ht="Wrong length",nt=function(Ye,qe){_e(Ye);for(var At=0,It=qe.length,Ce=new Ye(It);It>At;)Ce[At]=qe[At++];return Ce},Re=function(Ye,qe){re(Ye,qe,{configurable:!0,get:function(){return L(this)[qe]}})},ue=function(Ye){var qe;return I(te,Ye)||(qe=P(Ye))=="ArrayBuffer"||qe=="SharedArrayBuffer"},ae=function(Ye,qe){return we(Ye)&&!T(qe)&&qe in Ye&&y(+qe)&&qe>=0},ve=function(qe,At){return At=w(At),ae(qe,At)?f(2,qe[At]):V(qe,At)},Me=function(qe,At,It){return At=w(At),ae(qe,At)&&R(It)&&x(It,"value")&&!x(It,"get")&&!x(It,"set")&&!It.configurable&&(!x(It,"writable")||It.writable)&&(!x(It,"enumerable")||It.enumerable)?(qe[At]=It.value,qe):F(qe,At,It)};v?(fe||(Z.f=ve,X.f=Me,Re(me,"buffer"),Re(me,"byteOffset"),Re(me,"byteLength"),Re(me,"length")),i({target:"Object",stat:!0,forced:!fe},{getOwnPropertyDescriptor:ve,defineProperty:Me}),C.exports=function(Ye,qe,At){var It=Ye.match(/\d+/)[0]/8,Ce=Ye+(At?"Clamped":"")+"Array",Ae="get"+Ye,$e="set"+Ye,tt=s[Ce],ke=tt,Oe=ke&&ke.prototype,je={},Et=function(mt,bt){var Gt=L(mt);return Gt.view[Ae](bt*It+Gt.byteOffset,!0)},ct=function(mt,bt,Gt){var hn=L(mt);At&&(Gt=(Gt=pe(Gt))<0?0:Gt>255?255:Gt&255),hn.view[$e](bt*It+hn.byteOffset,Gt,!0)},ut=function(mt,bt){F(mt,bt,{get:function(){return Et(this,bt)},set:function(Gt){return ct(this,bt,Gt)},enumerable:!0})};fe?l&&(ke=qe(function(mt,bt,Gt,hn){return d(mt,Oe),q(function(){return R(bt)?ue(bt)?hn!==void 0?new tt(bt,S(Gt,It),hn):Gt!==void 0?new tt(bt,S(Gt,It)):new tt(bt):we(bt)?nt(ke,bt):u(_,ke,bt):new tt(E(bt))}(),mt,ke)}),N&&N(ke,he),W(K(tt),function(mt){mt in ke||g(ke,mt,tt[mt])}),ke.prototype=Oe):(ke=qe(function(mt,bt,Gt,hn){d(mt,Oe);var Yt=0,Bt=0,Lt,zt,Kt;if(!R(bt))Kt=E(bt),zt=Kt*It,Lt=new G(zt);else if(ue(bt)){Lt=bt,Bt=S(Gt,It);var vt=bt.byteLength;if(hn===void 0){if(vt%It||(zt=vt-Bt,zt<0))throw ce(ht)}else if(zt=b(hn)*It,zt+Bt>vt)throw ce(ht);Kt=zt/It}else return we(bt)?nt(ke,bt):u(_,ke,bt);for($(mt,{buffer:Lt,byteOffset:Bt,byteLength:zt,length:Kt,view:new ie(Lt)});Yt<Kt;)ut(mt,Yt++)}),N&&N(ke,he),Oe=ke.prototype=A(me)),Oe.constructor!==ke&&g(Oe,"constructor",ke),k(Oe).TypedArrayConstructor=ke,Se&&g(Oe,Se,Ce);var Ne=ke!=tt;je[Ce]=ke,i({global:!0,constructor:!0,forced:Ne,sham:!fe},je),Ge in ke||g(ke,Ge,It),Ge in Oe||g(Oe,Ge,It),j(Ce)}):C.exports=function(){}},74118:(C,c,t)=>{var i=t(75866),s=t(97898),u=t(35505),v=t(91390).NATIVE_ARRAY_BUFFER_VIEWS,l=i.ArrayBuffer,h=i.Int8Array;C.exports=!v||!s(function(){h(1)})||!s(function(){new h(-1)})||!u(function(p){new h,new h(null),new h(1.5),new h(p)},!0)||s(function(){return new h(new l(2),1,void 0).length!==1})},87045:(C,c,t)=>{var i=t(60925),s=t(15399);C.exports=function(u,v){return i(s(u),v)}},49811:(C,c,t)=>{var i=t(31642),s=t(99760),u=t(3897),v=t(9376),l=t(84349),h=t(73543),p=t(788),d=t(23145),f=t(74054),g=t(91390).aTypedArrayConstructor,y=t(30962);C.exports=function(E){var S=u(this),w=v(E),x=arguments.length,P=x>1?arguments[1]:void 0,R=P!==void 0,T=p(w),A,I,N,K,_,W,j,re;if(T&&!d(T))for(j=h(w,T),re=j.next,w=[];!(W=s(re,j)).done;)w.push(W.value);for(R&&x>2&&(P=i(P,arguments[2])),I=l(w),N=new(g(S))(I),K=f(N),A=0;I>A;A++)_=R?P(w[A],A):w[A],N[A]=K?y(_):+_;return N}},15399:(C,c,t)=>{var i=t(91390),s=t(14773),u=i.aTypedArrayConstructor,v=i.getTypedArrayConstructor;C.exports=function(l){return u(s(l,v(l)))}},8499:(C,c,t)=>{var i=t(55740),s=0,u=Math.random(),v=i(1 .toString);C.exports=function(l){return"Symbol("+(l===void 0?"":l)+")_"+v(++s+u,36)}},2592:(C,c,t)=>{var i=t(97898),s=t(70330),u=t(77022),v=t(65259),l=s("iterator");C.exports=!i(function(){var h=new URL("b?a=1&b=2&c=3","http://a"),p=h.searchParams,d=new URLSearchParams("a=1&a=2"),f="";return h.pathname="c%20d",p.forEach(function(g,y){p.delete("b"),f+=y+g}),d.delete("a",2),v&&(!h.toJSON||!d.has("a",1)||d.has("a",2))||!p.size&&(v||!u)||!p.sort||h.href!=="http://a/c%20d?a=1&c=3"||p.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!p[l]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||f!=="a1c3"||new URL("http://x",void 0).host!=="x"})},92092:(C,c,t)=>{var i=t(48726);C.exports=i&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},72449:(C,c,t)=>{var i=t(77022),s=t(97898);C.exports=i&&s(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},69033:C=>{var c=TypeError;C.exports=function(t,i){if(t<i)throw c("Not enough arguments");return t}},73917:(C,c,t)=>{var i=t(75866),s=t(2714),u=i.WeakMap;C.exports=s(u)&&/native code/.test(String(u))},957:(C,c,t)=>{var i=t(55740),s=WeakMap.prototype;C.exports={WeakMap,set:i(s.set),get:i(s.get),has:i(s.has),remove:i(s.delete)}},53286:(C,c,t)=>{var i=t(55740),s=WeakSet.prototype;C.exports={WeakSet,add:i(s.add),has:i(s.has),remove:i(s.delete)}},34729:(C,c,t)=>{var i=t(95061),s=t(15275),u=t(31585),v=t(56768).f;C.exports=function(l){var h=i.Symbol||(i.Symbol={});s(h,l)||v(h,l,{value:u.f(l)})}},31585:(C,c,t)=>{var i=t(70330);c.f=i},70330:(C,c,t)=>{var i=t(75866),s=t(14232),u=t(15275),v=t(8499),l=t(48726),h=t(92092),p=i.Symbol,d=s("wks"),f=h?p.for||p:p&&p.withoutSetter||v;C.exports=function(g){return u(d,g)||(d[g]=l&&u(p,g)?p[g]:f("Symbol."+g)),d[g]}},38714:C=>{C.exports=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},57122:(C,c,t)=>{"use strict";var i=t(90731),s=t(15275),u=t(37651),v=t(720),l=t(39869),h=t(11599),p=t(36775),d=t(83108),f=t(46001),g=t(45391),y=t(25410),b=t(77022),E=t(65259);C.exports=function(S,w,x,P){var R="stackTraceLimit",T=P?2:1,A=S.split("."),I=A[A.length-1],N=i.apply(null,A);if(N){var K=N.prototype;if(!E&&s(K,"cause")&&delete K.cause,!x)return N;var _=i("Error"),W=w(function(j,re){var X=f(P?re:j,void 0),Z=P?new N(j):new N;return X!==void 0&&u(Z,"message",X),y(Z,W,Z.stack,2),this&&v(K,this)&&d(Z,this,W),arguments.length>T&&g(Z,arguments[T]),Z});if(W.prototype=K,I!=="Error"?l?l(W,_):h(W,_,{name:!0}):b&&R in N&&(p(W,N,R),p(W,N,"prepareStackTrace")),h(W,N),!E)try{K.name!==I&&u(K,"name",I),K.constructor=W}catch{}return W}}},58747:(C,c,t)=>{var i=t(83846),s=t(90731),u=t(27630),v=t(97898),l=t(57122),h="AggregateError",p=s(h),d=!v(function(){return p([1]).errors[0]!==1})&&v(function(){return p([1],h,{cause:7}).cause!==7});i({global:!0,constructor:!0,arity:2,forced:d},{AggregateError:l(h,function(f){return function(y,b){return u(f,this,arguments)}},d,!0)})},75299:(C,c,t)=>{"use strict";var i=t(83846),s=t(720),u=t(52839),v=t(39869),l=t(11599),h=t(69735),p=t(37651),d=t(33091),f=t(45391),g=t(25410),y=t(86543),b=t(46001),E=t(70330),S=E("toStringTag"),w=Error,x=[].push,P=function(A,I){var N=s(R,this),K;v?K=v(w(),N?u(this):R):(K=N?this:h(R),p(K,S,"Error")),I!==void 0&&p(K,"message",b(I)),g(K,P,K.stack,1),arguments.length>2&&f(K,arguments[2]);var _=[];return y(A,x,{that:_}),p(K,"errors",_),K};v?v(P,w):l(P,w,{name:!0});var R=P.prototype=h(w.prototype,{constructor:d(1,P),message:d(1,""),name:d(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:P})},98023:(C,c,t)=>{t(75299)},76650:(C,c,t)=>{"use strict";var i=t(83846),s=t(75866),u=t(48951),v=t(87735),l="ArrayBuffer",h=u[l],p=s[l];i({global:!0,constructor:!0,forced:p!==h},{ArrayBuffer:h}),v(l)},33850:(C,c,t)=>{var i=t(83846),s=t(91390),u=s.NATIVE_ARRAY_BUFFER_VIEWS;i({target:"ArrayBuffer",stat:!0,forced:!u},{isView:s.isView})},33186:(C,c,t)=>{"use strict";var i=t(83846),s=t(42716),u=t(97898),v=t(48951),l=t(4630),h=t(49717),p=t(90161),d=t(14773),f=v.ArrayBuffer,g=v.DataView,y=g.prototype,b=s(f.prototype.slice),E=s(y.getUint8),S=s(y.setUint8),w=u(function(){return!new f(2).slice(1,void 0).byteLength});i({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:w},{slice:function(P,R){if(b&&R===void 0)return b(l(this),P);for(var T=l(this).byteLength,A=h(P,T),I=h(R===void 0?T:R,T),N=new(d(this,f))(p(I-A)),K=new g(this),_=new g(N),W=0;A<I;)S(_,W++,E(K,A++));return N}})},8846:(C,c,t)=>{"use strict";var i=t(83846),s=t(9376),u=t(84349),v=t(46226),l=t(60596);i({target:"Array",proto:!0},{at:function(p){var d=s(this),f=u(d),g=v(p),y=g>=0?g:f+g;return y<0||y>=f?void 0:d[y]}}),l("at")},56480:(C,c,t)=>{"use strict";var i=t(83846),s=t(97898),u=t(7356),v=t(73091),l=t(9376),h=t(84349),p=t(72021),d=t(50932),f=t(85598),g=t(87697),y=t(70330),b=t(76440),E=y("isConcatSpreadable"),S=b>=51||!s(function(){var P=[];return P[E]=!1,P.concat()[0]!==P}),w=function(P){if(!v(P))return!1;var R=P[E];return R!==void 0?!!R:u(P)},x=!S||!g("concat");i({target:"Array",proto:!0,arity:1,forced:x},{concat:function(R){var T=l(this),A=f(T,0),I=0,N,K,_,W,j;for(N=-1,_=arguments.length;N<_;N++)if(j=N===-1?T:arguments[N],w(j))for(W=h(j),p(I+W),K=0;K<W;K++,I++)K in j&&d(A,I,j[K]);else p(I+1),d(A,I++,j);return A.length=I,A}})},1186:(C,c,t)=>{var i=t(83846),s=t(91824),u=t(60596);i({target:"Array",proto:!0},{copyWithin:s}),u("copyWithin")},98592:(C,c,t)=>{"use strict";var i=t(83846),s=t(45742).every,u=t(57999),v=u("every");i({target:"Array",proto:!0,forced:!v},{every:function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}})},30913:(C,c,t)=>{var i=t(83846),s=t(43691),u=t(60596);i({target:"Array",proto:!0},{fill:s}),u("fill")},86922:(C,c,t)=>{"use strict";var i=t(83846),s=t(45742).filter,u=t(87697),v=u("filter");i({target:"Array",proto:!0,forced:!v},{filter:function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}})},49726:(C,c,t)=>{"use strict";var i=t(83846),s=t(45742).findIndex,u=t(60596),v="findIndex",l=!0;v in[]&&Array(1)[v](function(){l=!1}),i({target:"Array",proto:!0,forced:l},{findIndex:function(p){return s(this,p,arguments.length>1?arguments[1]:void 0)}}),u(v)},38958:(C,c,t)=>{"use strict";var i=t(83846),s=t(60924).findLastIndex,u=t(60596);i({target:"Array",proto:!0},{findLastIndex:function(l){return s(this,l,arguments.length>1?arguments[1]:void 0)}}),u("findLastIndex")},14979:(C,c,t)=>{"use strict";var i=t(83846),s=t(60924).findLast,u=t(60596);i({target:"Array",proto:!0},{findLast:function(l){return s(this,l,arguments.length>1?arguments[1]:void 0)}}),u("findLast")},30346:(C,c,t)=>{"use strict";var i=t(83846),s=t(45742).find,u=t(60596),v="find",l=!0;v in[]&&Array(1)[v](function(){l=!1}),i({target:"Array",proto:!0,forced:l},{find:function(p){return s(this,p,arguments.length>1?arguments[1]:void 0)}}),u(v)},14098:(C,c,t)=>{"use strict";var i=t(83846),s=t(94120),u=t(7319),v=t(9376),l=t(84349),h=t(85598);i({target:"Array",proto:!0},{flatMap:function(d){var f=v(this),g=l(f),y;return u(d),y=h(f,0),y.length=s(y,f,f,g,0,1,d,arguments.length>1?arguments[1]:void 0),y}})},93123:(C,c,t)=>{"use strict";var i=t(83846),s=t(94120),u=t(9376),v=t(84349),l=t(46226),h=t(85598);i({target:"Array",proto:!0},{flat:function(){var d=arguments.length?arguments[0]:void 0,f=u(this),g=v(f),y=h(f,0);return y.length=s(y,f,f,g,0,d===void 0?1:l(d)),y}})},90786:(C,c,t)=>{"use strict";var i=t(83846),s=t(93129);i({target:"Array",proto:!0,forced:[].forEach!=s},{forEach:s})},601:(C,c,t)=>{var i=t(83846),s=t(33006),u=t(35505),v=!u(function(l){Array.from(l)});i({target:"Array",stat:!0,forced:v},{from:s})},20002:(C,c,t)=>{"use strict";var i=t(83846),s=t(66309).includes,u=t(97898),v=t(60596),l=u(function(){return!Array(1).includes()});i({target:"Array",proto:!0,forced:l},{includes:function(p){return s(this,p,arguments.length>1?arguments[1]:void 0)}}),v("includes")},25285:(C,c,t)=>{"use strict";var i=t(83846),s=t(42716),u=t(66309).indexOf,v=t(57999),l=s([].indexOf),h=!!l&&1/l([1],1,-0)<0,p=h||!v("indexOf");i({target:"Array",proto:!0,forced:p},{indexOf:function(f){var g=arguments.length>1?arguments[1]:void 0;return h?l(this,f,g)||0:u(this,f,g)}})},14352:(C,c,t)=>{var i=t(83846),s=t(7356);i({target:"Array",stat:!0},{isArray:s})},71322:(C,c,t)=>{"use strict";var i=t(55339),s=t(60596),u=t(15201),v=t(45699),l=t(56768).f,h=t(95548),p=t(14373),d=t(65259),f=t(77022),g="Array Iterator",y=v.set,b=v.getterFor(g);C.exports=h(Array,"Array",function(S,w){y(this,{type:g,target:i(S),index:0,kind:w})},function(){var S=b(this),w=S.target,x=S.kind,P=S.index++;return!w||P>=w.length?(S.target=void 0,p(void 0,!0)):x=="keys"?p(P,!1):x=="values"?p(w[P],!1):p([P,w[P]],!1)},"values");var E=u.Arguments=u.Array;if(s("keys"),s("values"),s("entries"),!d&&f&&E.name!=="values")try{l(E,"name",{value:"values"})}catch{}},1700:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(46496),v=t(55339),l=t(57999),h=s([].join),p=u!=Object,d=p||!l("join",",");i({target:"Array",proto:!0,forced:d},{join:function(g){return h(v(this),g===void 0?",":g)}})},74364:(C,c,t)=>{var i=t(83846),s=t(53693);i({target:"Array",proto:!0,forced:s!==[].lastIndexOf},{lastIndexOf:s})},35167:(C,c,t)=>{"use strict";var i=t(83846),s=t(45742).map,u=t(87697),v=u("map");i({target:"Array",proto:!0,forced:!v},{map:function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}})},10252:(C,c,t)=>{"use strict";var i=t(83846),s=t(97898),u=t(53582),v=t(50932),l=Array,h=s(function(){function p(){}return!(l.of.call(p)instanceof p)});i({target:"Array",stat:!0,forced:h},{of:function(){for(var d=0,f=arguments.length,g=new(u(this)?this:l)(f);f>d;)v(g,d,arguments[d++]);return g.length=f,g}})},51708:(C,c,t)=>{"use strict";var i=t(83846),s=t(9376),u=t(84349),v=t(25961),l=t(72021),h=t(97898),p=h(function(){return[].push.call({length:4294967296},1)!==4294967297}),d=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(g){return g instanceof TypeError}},f=p||!d();i({target:"Array",proto:!0,arity:1,forced:f},{push:function(y){var b=s(this),E=u(b),S=arguments.length;l(E+S);for(var w=0;w<S;w++)b[E]=arguments[w],E++;return v(b,E),E}})},45288:(C,c,t)=>{"use strict";var i=t(83846),s=t(81542).right,u=t(57999),v=t(76440),l=t(82768),h=!l&&v>79&&v<83,p=h||!u("reduceRight");i({target:"Array",proto:!0,forced:p},{reduceRight:function(f){return s(this,f,arguments.length,arguments.length>1?arguments[1]:void 0)}})},91232:(C,c,t)=>{"use strict";var i=t(83846),s=t(81542).left,u=t(57999),v=t(76440),l=t(82768),h=!l&&v>79&&v<83,p=h||!u("reduce");i({target:"Array",proto:!0,forced:p},{reduce:function(f){var g=arguments.length;return s(this,f,g,g>1?arguments[1]:void 0)}})},33047:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(7356),v=s([].reverse),l=[1,2];i({target:"Array",proto:!0,forced:String(l)===String(l.reverse())},{reverse:function(){return u(this)&&(this.length=this.length),v(this)}})},83402:(C,c,t)=>{"use strict";var i=t(83846),s=t(7356),u=t(53582),v=t(73091),l=t(49717),h=t(84349),p=t(55339),d=t(50932),f=t(70330),g=t(87697),y=t(1723),b=g("slice"),E=f("species"),S=Array,w=Math.max;i({target:"Array",proto:!0,forced:!b},{slice:function(P,R){var T=p(this),A=h(T),I=l(P,A),N=l(R===void 0?A:R,A),K,_,W;if(s(T)&&(K=T.constructor,u(K)&&(K===S||s(K.prototype))?K=void 0:v(K)&&(K=K[E],K===null&&(K=void 0)),K===S||K===void 0))return y(T,I,N);for(_=new(K===void 0?S:K)(w(N-I,0)),W=0;I<N;I++,W++)I in T&&d(_,W,T[I]);return _.length=W,_}})},69779:(C,c,t)=>{"use strict";var i=t(83846),s=t(45742).some,u=t(57999),v=u("some");i({target:"Array",proto:!0,forced:!v},{some:function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}})},80422:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(7319),v=t(9376),l=t(84349),h=t(1003),p=t(36722),d=t(97898),f=t(31293),g=t(57999),y=t(68734),b=t(82952),E=t(76440),S=t(35401),w=[],x=s(w.sort),P=s(w.push),R=d(function(){w.sort(void 0)}),T=d(function(){w.sort(null)}),A=g("sort"),I=!d(function(){if(E)return E<70;if(!(y&&y>3)){if(b)return!0;if(S)return S<603;var _="",W,j,re,X;for(W=65;W<76;W++){switch(j=String.fromCharCode(W),W){case 66:case 69:case 70:case 72:re=3;break;case 68:case 71:re=4;break;default:re=2}for(X=0;X<47;X++)w.push({k:j+X,v:re})}for(w.sort(function(Z,J){return J.v-Z.v}),X=0;X<w.length;X++)j=w[X].k.charAt(0),_.charAt(_.length-1)!==j&&(_+=j);return _!=="DGBEFHACIJK"}}),N=R||!T||!A||!I,K=function(_){return function(W,j){return j===void 0?-1:W===void 0?1:_!==void 0?+_(W,j)||0:p(W)>p(j)?1:-1}};i({target:"Array",proto:!0,forced:N},{sort:function(W){W!==void 0&&u(W);var j=v(this);if(I)return W===void 0?x(j):x(j,W);var re=[],X=l(j),Z,J;for(J=0;J<X;J++)J in j&&P(re,j[J]);for(f(re,K(W)),Z=l(re),J=0;J<Z;)j[J]=re[J++];for(;J<X;)h(j,J++);return j}})},87484:(C,c,t)=>{var i=t(87735);i("Array")},94632:(C,c,t)=>{"use strict";var i=t(83846),s=t(9376),u=t(49717),v=t(46226),l=t(84349),h=t(25961),p=t(72021),d=t(85598),f=t(50932),g=t(1003),y=t(87697),b=y("splice"),E=Math.max,S=Math.min;i({target:"Array",proto:!0,forced:!b},{splice:function(x,P){var R=s(this),T=l(R),A=u(x,T),I=arguments.length,N,K,_,W,j,re;for(I===0?N=K=0:I===1?(N=0,K=T-A):(N=I-2,K=S(E(v(P),0),T-A)),p(T+N-K),_=d(R,K),W=0;W<K;W++)j=A+W,j in R&&f(_,W,R[j]);if(_.length=K,N<K){for(W=A;W<T-K;W++)j=W+K,re=W+N,j in R?R[re]=R[j]:g(R,re);for(W=T;W>T-K+N;W--)g(R,W-1)}else if(N>K)for(W=T-K;W>A;W--)j=W+K-1,re=W+N-1,j in R?R[re]=R[j]:g(R,re);for(W=0;W<N;W++)R[W+A]=arguments[W+2];return h(R,T-K+N),_}})},20878:(C,c,t)=>{"use strict";var i=t(83846),s=t(96612),u=t(55339),v=t(60596),l=Array;i({target:"Array",proto:!0},{toReversed:function(){return s(u(this),l)}}),v("toReversed")},25520:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(7319),v=t(55339),l=t(60925),h=t(30357),p=t(60596),d=Array,f=s(h("Array").sort);i({target:"Array",proto:!0},{toSorted:function(y){y!==void 0&&u(y);var b=v(this),E=l(d,b);return f(E,y)}}),p("toSorted")},42695:(C,c,t)=>{"use strict";var i=t(83846),s=t(60596),u=t(72021),v=t(84349),l=t(49717),h=t(55339),p=t(46226),d=Array,f=Math.max,g=Math.min;i({target:"Array",proto:!0},{toSpliced:function(b,E){var S=h(this),w=v(S),x=l(b,w),P=arguments.length,R=0,T,A,I,N;for(P===0?T=A=0:P===1?(T=0,A=w-x):(T=P-2,A=g(f(p(E),0),w-x)),I=u(w+T-A),N=d(I);R<x;R++)N[R]=S[R];for(;R<x+T;R++)N[R]=arguments[R-x+2];for(;R<I;R++)N[R]=S[R+A-T];return N}}),s("toSpliced")},24109:(C,c,t)=>{var i=t(60596);i("flatMap")},91170:(C,c,t)=>{var i=t(60596);i("flat")},5016:(C,c,t)=>{"use strict";var i=t(83846),s=t(9376),u=t(84349),v=t(25961),l=t(1003),h=t(72021),p=[].unshift(0)!==1,d=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(g){return g instanceof TypeError}},f=p||!d();i({target:"Array",proto:!0,arity:1,forced:f},{unshift:function(y){var b=s(this),E=u(b),S=arguments.length;if(S){h(E+S);for(var w=E;w--;){var x=w+S;w in b?b[x]=b[w]:l(b,x)}for(var P=0;P<S;P++)b[P]=arguments[P]}return v(b,E+S)}})},75685:(C,c,t)=>{"use strict";var i=t(83846),s=t(72632),u=t(55339),v=Array;i({target:"Array",proto:!0},{with:function(l,h){return s(u(this),v,l,h)}})},66810:(C,c,t)=>{var i=t(83846),s=t(48951),u=t(37376);i({global:!0,constructor:!0,forced:!u},{DataView:s.DataView})},81239:(C,c,t)=>{t(66810)},45209:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(97898),v=u(function(){return new Date(16e11).getYear()!==120}),l=s(Date.prototype.getFullYear);i({target:"Date",proto:!0,forced:v},{getYear:function(){return l(this)-1900}})},12754:(C,c,t)=>{var i=t(83846),s=t(55740),u=Date,v=s(u.prototype.getTime);i({target:"Date",stat:!0},{now:function(){return v(new u)}})},52676:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(46226),v=Date.prototype,l=s(v.getTime),h=s(v.setFullYear);i({target:"Date",proto:!0},{setYear:function(d){l(this);var f=u(d),g=0<=f&&f<=99?f+1900:f;return h(this,g)}})},67844:(C,c,t)=>{var i=t(83846);i({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},22563:(C,c,t)=>{var i=t(83846),s=t(39180);i({target:"Date",proto:!0,forced:Date.prototype.toISOString!==s},{toISOString:s})},87039:(C,c,t)=>{"use strict";var i=t(83846),s=t(97898),u=t(9376),v=t(9260),l=s(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});i({target:"Date",proto:!0,arity:1,forced:l},{toJSON:function(p){var d=u(this),f=v(d,"number");return typeof f=="number"&&!isFinite(f)?null:d.toISOString()}})},35207:(C,c,t)=>{var i=t(15275),s=t(76156),u=t(55424),v=t(70330),l=v("toPrimitive"),h=Date.prototype;i(h,l)||s(h,l,u)},95113:(C,c,t)=>{var i=t(55740),s=t(76156),u=Date.prototype,v="Invalid Date",l="toString",h=i(u[l]),p=i(u.getTime);String(new Date(NaN))!=v&&s(u,l,function(){var f=p(this);return f===f?h(this):v})},53191:(C,c,t)=>{var i=t(83846),s=t(75866),u=t(27630),v=t(57122),l="WebAssembly",h=s[l],p=Error("e",{cause:7}).cause!==7,d=function(g,y){var b={};b[g]=v(g,y,p),i({global:!0,constructor:!0,arity:1,forced:p},b)},f=function(g,y){if(h&&h[g]){var b={};b[g]=v(l+"."+g,y,p),i({target:l,stat:!0,constructor:!0,arity:1,forced:p},b)}};d("Error",function(g){return function(b){return u(g,this,arguments)}}),d("EvalError",function(g){return function(b){return u(g,this,arguments)}}),d("RangeError",function(g){return function(b){return u(g,this,arguments)}}),d("ReferenceError",function(g){return function(b){return u(g,this,arguments)}}),d("SyntaxError",function(g){return function(b){return u(g,this,arguments)}}),d("TypeError",function(g){return function(b){return u(g,this,arguments)}}),d("URIError",function(g){return function(b){return u(g,this,arguments)}}),f("CompileError",function(g){return function(b){return u(g,this,arguments)}}),f("LinkError",function(g){return function(b){return u(g,this,arguments)}}),f("RuntimeError",function(g){return function(b){return u(g,this,arguments)}})},60486:(C,c,t)=>{var i=t(76156),s=t(13864),u=Error.prototype;u.toString!==s&&i(u,"toString",s)},23681:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(36722),v=s("".charAt),l=s("".charCodeAt),h=s(/./.exec),p=s(1 .toString),d=s("".toUpperCase),f=/[\w*+\-./@]/,g=function(y,b){for(var E=p(y,16);E.length<b;)E="0"+E;return E};i({global:!0},{escape:function(b){for(var E=u(b),S="",w=E.length,x=0,P,R;x<w;)P=v(E,x++),h(f,P)?S+=P:(R=l(P,0),R<256?S+="%"+g(R,2):S+="%u"+d(g(R,4)));return S}})},89074:(C,c,t)=>{var i=t(83846),s=t(31497);i({target:"Function",proto:!0,forced:Function.bind!==s},{bind:s})},62767:(C,c,t)=>{"use strict";var i=t(2714),s=t(73091),u=t(56768),v=t(52839),l=t(70330),h=t(20894),p=l("hasInstance"),d=Function.prototype;p in d||u.f(d,p,{value:h(function(f){if(!i(this)||!s(f))return!1;var g=this.prototype;if(!s(g))return f instanceof this;for(;f=v(f);)if(g===f)return!0;return!1},p)})},28441:(C,c,t)=>{var i=t(77022),s=t(18551).EXISTS,u=t(55740),v=t(74066),l=Function.prototype,h=u(l.toString),p=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,d=u(p.exec),f="name";i&&!s&&v(l,f,{configurable:!0,get:function(){try{return d(p,h(this))[1]}catch{return""}}})},55153:(C,c,t)=>{var i=t(83846),s=t(75866);i({global:!0,forced:s.globalThis!==s},{globalThis:s})},34939:(C,c,t)=>{var i=t(83846),s=t(90731),u=t(27630),v=t(99760),l=t(55740),h=t(97898),p=t(2714),d=t(14566),f=t(1723),g=t(22961),y=t(48726),b=String,E=s("JSON","stringify"),S=l(/./.exec),w=l("".charAt),x=l("".charCodeAt),P=l("".replace),R=l(1 .toString),T=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,I=/^[\uDC00-\uDFFF]$/,N=!y||h(function(){var j=s("Symbol")();return E([j])!="[null]"||E({a:j})!="{}"||E(Object(j))!="{}"}),K=h(function(){return E("\uDF06\uD834")!=='"\\udf06\\ud834"'||E("\uDEAD")!=='"\\udead"'}),_=function(j,re){var X=f(arguments),Z=g(re);if(!(!p(Z)&&(j===void 0||d(j))))return X[1]=function(J,q){if(p(Z)&&(q=v(Z,this,b(J),q)),!d(q))return q},u(E,null,X)},W=function(j,re,X){var Z=w(X,re-1),J=w(X,re+1);return S(A,j)&&!S(I,J)||S(I,j)&&!S(A,Z)?"\\u"+R(x(j,0),16):j};E&&i({target:"JSON",stat:!0,arity:3,forced:N||K},{stringify:function(re,X,Z){var J=f(arguments),q=u(N?_:E,null,J);return K&&typeof q=="string"?P(q,T,W):q}})},76585:(C,c,t)=>{var i=t(75866),s=t(61817);s(i.JSON,"JSON",!0)},99920:(C,c,t)=>{"use strict";var i=t(73199),s=t(6933);i("Map",function(u){return function(){return u(this,arguments.length?arguments[0]:void 0)}},s)},38392:(C,c,t)=>{t(99920)},8497:(C,c,t)=>{var i=t(83846),s=t(83820),u=Math.acosh,v=Math.log,l=Math.sqrt,h=Math.LN2,p=!u||Math.floor(u(Number.MAX_VALUE))!=710||u(1/0)!=1/0;i({target:"Math",stat:!0,forced:p},{acosh:function(f){var g=+f;return g<1?NaN:g>9490626562425156e-8?v(g)+h:s(g-1+l(g-1)*l(g+1))}})},72681:(C,c,t)=>{var i=t(83846),s=Math.asinh,u=Math.log,v=Math.sqrt;function l(p){var d=+p;return!isFinite(d)||d==0?d:d<0?-l(-d):u(d+v(d*d+1))}var h=!(s&&1/s(0)>0);i({target:"Math",stat:!0,forced:h},{asinh:l})},55614:(C,c,t)=>{var i=t(83846),s=Math.atanh,u=Math.log,v=!(s&&1/s(-0)<0);i({target:"Math",stat:!0,forced:v},{atanh:function(h){var p=+h;return p==0?p:u((1+p)/(1-p))/2}})},37926:(C,c,t)=>{var i=t(83846),s=t(96471),u=Math.abs,v=Math.pow;i({target:"Math",stat:!0},{cbrt:function(h){var p=+h;return s(p)*v(u(p),1/3)}})},17575:(C,c,t)=>{var i=t(83846),s=Math.floor,u=Math.log,v=Math.LOG2E;i({target:"Math",stat:!0},{clz32:function(h){var p=h>>>0;return p?31-s(u(p+.5)*v):32}})},60461:(C,c,t)=>{var i=t(83846),s=t(53728),u=Math.cosh,v=Math.abs,l=Math.E,h=!u||u(710)===1/0;i({target:"Math",stat:!0,forced:h},{cosh:function(d){var f=s(v(d)-1)+1;return(f+1/(f*l*l))*(l/2)}})},67036:(C,c,t)=>{var i=t(83846),s=t(53728);i({target:"Math",stat:!0,forced:s!=Math.expm1},{expm1:s})},10104:(C,c,t)=>{var i=t(83846),s=t(57488);i({target:"Math",stat:!0},{fround:s})},25963:(C,c,t)=>{var i=t(83846),s=Math.hypot,u=Math.abs,v=Math.sqrt,l=!!s&&s(1/0,NaN)!==1/0;i({target:"Math",stat:!0,arity:2,forced:l},{hypot:function(p,d){for(var f=0,g=0,y=arguments.length,b=0,E,S;g<y;)E=u(arguments[g++]),b<E?(S=b/E,f=f*S*S+1,b=E):E>0?(S=E/b,f+=S*S):f+=E;return b===1/0?1/0:b*v(f)}})},89844:(C,c,t)=>{var i=t(83846),s=t(97898),u=Math.imul,v=s(function(){return u(4294967295,5)!=-5||u.length!=2});i({target:"Math",stat:!0,forced:v},{imul:function(h,p){var d=65535,f=+h,g=+p,y=d&f,b=d&g;return 0|y*b+((d&f>>>16)*b+y*(d&g>>>16)<<16>>>0)}})},18037:(C,c,t)=>{var i=t(83846),s=t(31794);i({target:"Math",stat:!0},{log10:s})},59262:(C,c,t)=>{var i=t(83846),s=t(83820);i({target:"Math",stat:!0},{log1p:s})},23386:(C,c,t)=>{var i=t(83846),s=Math.log,u=Math.LN2;i({target:"Math",stat:!0},{log2:function(l){return s(l)/u}})},9992:(C,c,t)=>{var i=t(83846),s=t(96471);i({target:"Math",stat:!0},{sign:s})},5945:(C,c,t)=>{var i=t(83846),s=t(97898),u=t(53728),v=Math.abs,l=Math.exp,h=Math.E,p=s(function(){return Math.sinh(-2e-17)!=-2e-17});i({target:"Math",stat:!0,forced:p},{sinh:function(f){var g=+f;return v(g)<1?(u(g)-u(-g))/2:(l(g-1)-l(-g-1))*(h/2)}})},36638:(C,c,t)=>{var i=t(83846),s=t(53728),u=Math.exp;i({target:"Math",stat:!0},{tanh:function(l){var h=+l,p=s(h),d=s(-h);return p==1/0?1:d==1/0?-1:(p-d)/(u(h)+u(-h))}})},16026:(C,c,t)=>{var i=t(61817);i(Math,"Math",!0)},35498:(C,c,t)=>{var i=t(83846),s=t(21582);i({target:"Math",stat:!0},{trunc:s})},59085:(C,c,t)=>{"use strict";var i=t(83846),s=t(65259),u=t(77022),v=t(75866),l=t(95061),h=t(55740),p=t(40042),d=t(15275),f=t(83108),g=t(720),y=t(14566),b=t(9260),E=t(97898),S=t(74757).f,w=t(61560).f,x=t(56768).f,P=t(55821),R=t(78528).trim,T="Number",A=v[T],I=l[T],N=A.prototype,K=v.TypeError,_=h("".slice),W=h("".charCodeAt),j=function(L){var $=b(L,"number");return typeof $=="bigint"?$:re($)},re=function(L){var $=b(L,"number"),k,F,V,pe,ce,G,te,ie;if(y($))throw K("Cannot convert a Symbol value to a number");if(typeof $=="string"&&$.length>2){if($=R($),k=W($,0),k===43||k===45){if(F=W($,2),F===88||F===120)return NaN}else if(k===48){switch(W($,1)){case 66:case 98:V=2,pe=49;break;case 79:case 111:V=8,pe=55;break;default:return+$}for(ce=_($,2),G=ce.length,te=0;te<G;te++)if(ie=W(ce,te),ie<48||ie>pe)return NaN;return parseInt(ce,V)}}return+$},X=p(T,!A(" 0o1")||!A("0b1")||A("+0x1")),Z=function(L){return g(N,L)&&E(function(){P(L)})},J=function($){var k=arguments.length<1?0:A(j($));return Z(this)?f(Object(k),this,J):k};J.prototype=N,X&&!s&&(N.constructor=J),i({global:!0,constructor:!0,wrap:!0,forced:X},{Number:J});var q=function(L,$){for(var k=u?S($):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),F=0,V;k.length>F;F++)d($,V=k[F])&&!d(L,V)&&x(L,V,w($,V))};s&&I&&q(l[T],I),(X||s)&&q(l[T],A)},28774:(C,c,t)=>{var i=t(83846);i({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},46525:(C,c,t)=>{var i=t(83846),s=t(30640);i({target:"Number",stat:!0},{isFinite:s})},47493:(C,c,t)=>{var i=t(83846),s=t(76660);i({target:"Number",stat:!0},{isInteger:s})},36707:(C,c,t)=>{var i=t(83846);i({target:"Number",stat:!0},{isNaN:function(u){return u!=u}})},46166:(C,c,t)=>{var i=t(83846),s=t(76660),u=Math.abs;i({target:"Number",stat:!0},{isSafeInteger:function(l){return s(l)&&u(l)<=9007199254740991}})},74702:(C,c,t)=>{var i=t(83846);i({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},78734:(C,c,t)=>{var i=t(83846);i({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},66062:(C,c,t)=>{var i=t(83846),s=t(72072);i({target:"Number",stat:!0,forced:Number.parseFloat!=s},{parseFloat:s})},57593:(C,c,t)=>{var i=t(83846),s=t(44524);i({target:"Number",stat:!0,forced:Number.parseInt!=s},{parseInt:s})},62626:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(46226),v=t(55821),l=t(73531),h=t(31794),p=t(97898),d=RangeError,f=String,g=isFinite,y=Math.abs,b=Math.floor,E=Math.pow,S=Math.round,w=s(1 .toExponential),x=s(l),P=s("".slice),R=w(-69e-12,4)==="-6.9000e-11"&&w(1.255,2)==="1.25e+0"&&w(12345,3)==="1.235e+4"&&w(25,0)==="3e+1",T=function(){return p(function(){w(1,1/0)})&&p(function(){w(1,-1/0)})},A=function(){return!p(function(){w(1/0,1/0),w(NaN,1/0)})},I=!R||!T()||!A();i({target:"Number",proto:!0,forced:I},{toExponential:function(K){var _=v(this);if(K===void 0)return w(_);var W=u(K);if(!g(_))return String(_);if(W<0||W>20)throw d("Incorrect fraction digits");if(R)return w(_,W);var j="",re="",X=0,Z="",J="";if(_<0&&(j="-",_=-_),_===0)X=0,re=x("0",W+1);else{var q=h(_);X=b(q);var L=0,$=E(10,X-W);L=S(_/$),2*_>=(2*L+1)*$&&(L+=1),L>=E(10,W+1)&&(L/=10,X+=1),re=f(L)}return W!==0&&(re=P(re,0,1)+"."+P(re,1)),X===0?(Z="+",J="0"):(Z=X>0?"+":"-",J=f(y(X))),re+="e"+Z+J,j+re}})},7815:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(46226),v=t(55821),l=t(73531),h=t(97898),p=RangeError,d=String,f=Math.floor,g=s(l),y=s("".slice),b=s(1 .toFixed),E=function(T,A,I){return A===0?I:A%2===1?E(T,A-1,I*T):E(T*T,A/2,I)},S=function(T){for(var A=0,I=T;I>=4096;)A+=12,I/=4096;for(;I>=2;)A+=1,I/=2;return A},w=function(T,A,I){for(var N=-1,K=I;++N<6;)K+=A*T[N],T[N]=K%1e7,K=f(K/1e7)},x=function(T,A){for(var I=6,N=0;--I>=0;)N+=T[I],T[I]=f(N/A),N=N%A*1e7},P=function(T){for(var A=6,I="";--A>=0;)if(I!==""||A===0||T[A]!==0){var N=d(T[A]);I=I===""?N:I+g("0",7-N.length)+N}return I},R=h(function(){return b(8e-5,3)!=="0.000"||b(.9,0)!=="1"||b(1.255,2)!=="1.25"||b(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!h(function(){b({})});i({target:"Number",proto:!0,forced:R},{toFixed:function(A){var I=v(this),N=u(A),K=[0,0,0,0,0,0],_="",W="0",j,re,X,Z;if(N<0||N>20)throw p("Incorrect fraction digits");if(I!=I)return"NaN";if(I<=-1e21||I>=1e21)return d(I);if(I<0&&(_="-",I=-I),I>1e-21)if(j=S(I*E(2,69,1))-69,re=j<0?I*E(2,-j,1):I/E(2,j,1),re*=4503599627370496,j=52-j,j>0){for(w(K,0,re),X=N;X>=7;)w(K,1e7,0),X-=7;for(w(K,E(10,X,1),0),X=j-1;X>=23;)x(K,1<<23),X-=23;x(K,1<<X),w(K,1,1),x(K,2),W=P(K)}else w(K,0,re),w(K,1<<-j,0),W=P(K)+g("0",N);return N>0?(Z=W.length,W=_+(Z<=N?"0."+g("0",N-Z)+W:y(W,0,Z-N)+"."+y(W,Z-N))):W=_+W,W}})},47416:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(97898),v=t(55821),l=s(1 .toPrecision),h=u(function(){return l(1,void 0)!=="1"})||!u(function(){l({})});i({target:"Number",proto:!0,forced:h},{toPrecision:function(d){return d===void 0?l(v(this)):l(v(this),d)}})},81869:(C,c,t)=>{var i=t(83846),s=t(49976);i({target:"Object",stat:!0,arity:2,forced:Object.assign!==s},{assign:s})},31732:(C,c,t)=>{var i=t(83846),s=t(77022),u=t(69735);i({target:"Object",stat:!0,sham:!s},{create:u})},25894:(C,c,t)=>{"use strict";var i=t(83846),s=t(77022),u=t(9299),v=t(7319),l=t(9376),h=t(56768);s&&i({target:"Object",proto:!0,forced:u},{__defineGetter__:function(d,f){h.f(l(this),d,{get:v(f),enumerable:!0,configurable:!0})}})},23213:(C,c,t)=>{var i=t(83846),s=t(77022),u=t(27370).f;i({target:"Object",stat:!0,forced:Object.defineProperties!==u,sham:!s},{defineProperties:u})},45341:(C,c,t)=>{var i=t(83846),s=t(77022),u=t(56768).f;i({target:"Object",stat:!0,forced:Object.defineProperty!==u,sham:!s},{defineProperty:u})},94837:(C,c,t)=>{"use strict";var i=t(83846),s=t(77022),u=t(9299),v=t(7319),l=t(9376),h=t(56768);s&&i({target:"Object",proto:!0,forced:u},{__defineSetter__:function(d,f){h.f(l(this),d,{set:v(f),enumerable:!0,configurable:!0})}})},1497:(C,c,t)=>{var i=t(83846),s=t(21678).entries;i({target:"Object",stat:!0},{entries:function(v){return s(v)}})},31296:(C,c,t)=>{var i=t(83846),s=t(36781),u=t(97898),v=t(73091),l=t(62947).onFreeze,h=Object.freeze,p=u(function(){h(1)});i({target:"Object",stat:!0,forced:p,sham:!s},{freeze:function(f){return h&&v(f)?h(l(f)):f}})},58978:(C,c,t)=>{var i=t(83846),s=t(86543),u=t(50932);i({target:"Object",stat:!0},{fromEntries:function(l){var h={};return s(l,function(p,d){u(h,p,d)},{AS_ENTRIES:!0}),h}})},12761:(C,c,t)=>{var i=t(83846),s=t(97898),u=t(55339),v=t(61560).f,l=t(77022),h=!l||s(function(){v(1)});i({target:"Object",stat:!0,forced:h,sham:!l},{getOwnPropertyDescriptor:function(d,f){return v(u(d),f)}})},66847:(C,c,t)=>{var i=t(83846),s=t(77022),u=t(765),v=t(55339),l=t(61560),h=t(50932);i({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(d){for(var f=v(d),g=l.f,y=u(f),b={},E=0,S,w;y.length>E;)w=g(f,S=y[E++]),w!==void 0&&h(b,S,w);return b}})},90428:(C,c,t)=>{var i=t(83846),s=t(97898),u=t(93292).f,v=s(function(){return!Object.getOwnPropertyNames(1)});i({target:"Object",stat:!0,forced:v},{getOwnPropertyNames:u})},6928:(C,c,t)=>{var i=t(83846),s=t(48726),u=t(97898),v=t(83166),l=t(9376),h=!s||u(function(){v.f(1)});i({target:"Object",stat:!0,forced:h},{getOwnPropertySymbols:function(d){var f=v.f;return f?f(l(d)):[]}})},17980:(C,c,t)=>{var i=t(83846),s=t(97898),u=t(9376),v=t(52839),l=t(28715),h=s(function(){v(1)});i({target:"Object",stat:!0,forced:h,sham:!l},{getPrototypeOf:function(d){return v(u(d))}})},7009:(C,c,t)=>{var i=t(83846),s=t(15275);i({target:"Object",stat:!0},{hasOwn:s})},8596:(C,c,t)=>{var i=t(83846),s=t(71772);i({target:"Object",stat:!0,forced:Object.isExtensible!==s},{isExtensible:s})},50029:(C,c,t)=>{var i=t(83846),s=t(97898),u=t(73091),v=t(53882),l=t(55563),h=Object.isFrozen,p=l||s(function(){h(1)});i({target:"Object",stat:!0,forced:p},{isFrozen:function(f){return!u(f)||l&&v(f)=="ArrayBuffer"?!0:h?h(f):!1}})},36872:(C,c,t)=>{var i=t(83846),s=t(97898),u=t(73091),v=t(53882),l=t(55563),h=Object.isSealed,p=l||s(function(){h(1)});i({target:"Object",stat:!0,forced:p},{isSealed:function(f){return!u(f)||l&&v(f)=="ArrayBuffer"?!0:h?h(f):!1}})},93394:(C,c,t)=>{var i=t(83846),s=t(82536);i({target:"Object",stat:!0},{is:s})},66782:(C,c,t)=>{var i=t(83846),s=t(9376),u=t(64386),v=t(97898),l=v(function(){u(1)});i({target:"Object",stat:!0,forced:l},{keys:function(p){return u(s(p))}})},3415:(C,c,t)=>{"use strict";var i=t(83846),s=t(77022),u=t(9299),v=t(9376),l=t(6618),h=t(52839),p=t(61560).f;s&&i({target:"Object",proto:!0,forced:u},{__lookupGetter__:function(f){var g=v(this),y=l(f),b;do if(b=p(g,y))return b.get;while(g=h(g))}})},61282:(C,c,t)=>{"use strict";var i=t(83846),s=t(77022),u=t(9299),v=t(9376),l=t(6618),h=t(52839),p=t(61560).f;s&&i({target:"Object",proto:!0,forced:u},{__lookupSetter__:function(f){var g=v(this),y=l(f),b;do if(b=p(g,y))return b.set;while(g=h(g))}})},96268:(C,c,t)=>{var i=t(83846),s=t(73091),u=t(62947).onFreeze,v=t(36781),l=t(97898),h=Object.preventExtensions,p=l(function(){h(1)});i({target:"Object",stat:!0,forced:p,sham:!v},{preventExtensions:function(f){return h&&s(f)?h(u(f)):f}})},54688:(C,c,t)=>{"use strict";var i=t(77022),s=t(74066),u=t(73091),v=t(9376),l=t(38213),h=Object.getPrototypeOf,p=Object.setPrototypeOf,d=Object.prototype,f="__proto__";if(i&&h&&p&&!(f in d))try{s(d,f,{configurable:!0,get:function(){return h(v(this))},set:function(y){var b=l(this);!u(y)&&y!==null||!u(b)||p(b,y)}})}catch{}},78856:(C,c,t)=>{var i=t(83846),s=t(73091),u=t(62947).onFreeze,v=t(36781),l=t(97898),h=Object.seal,p=l(function(){h(1)});i({target:"Object",stat:!0,forced:p,sham:!v},{seal:function(f){return h&&s(f)?h(u(f)):f}})},40210:(C,c,t)=>{var i=t(83846),s=t(39869);i({target:"Object",stat:!0},{setPrototypeOf:s})},21876:(C,c,t)=>{var i=t(45075),s=t(76156),u=t(52309);i||s(Object.prototype,"toString",u,{unsafe:!0})},30886:(C,c,t)=>{var i=t(83846),s=t(21678).values;i({target:"Object",stat:!0},{values:function(v){return s(v)}})},92628:(C,c,t)=>{var i=t(83846),s=t(72072);i({global:!0,forced:parseFloat!=s},{parseFloat:s})},55486:(C,c,t)=>{var i=t(83846),s=t(44524);i({global:!0,forced:parseInt!=s},{parseInt:s})},34117:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(7319),v=t(445),l=t(69297),h=t(86543),p=t(33891);i({target:"Promise",stat:!0,forced:p},{allSettled:function(f){var g=this,y=v.f(g),b=y.resolve,E=y.reject,S=l(function(){var w=u(g.resolve),x=[],P=0,R=1;h(f,function(T){var A=P++,I=!1;R++,s(w,g,T).then(function(N){I||(I=!0,x[A]={status:"fulfilled",value:N},--R||b(x))},function(N){I||(I=!0,x[A]={status:"rejected",reason:N},--R||b(x))})}),--R||b(x)});return S.error&&E(S.value),y.promise}})},4361:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(7319),v=t(445),l=t(69297),h=t(86543),p=t(33891);i({target:"Promise",stat:!0,forced:p},{all:function(f){var g=this,y=v.f(g),b=y.resolve,E=y.reject,S=l(function(){var w=u(g.resolve),x=[],P=0,R=1;h(f,function(T){var A=P++,I=!1;R++,s(w,g,T).then(function(N){I||(I=!0,x[A]=N,--R||b(x))},E)}),--R||b(x)});return S.error&&E(S.value),y.promise}})},92810:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(7319),v=t(90731),l=t(445),h=t(69297),p=t(86543),d=t(33891),f="No one promise resolved";i({target:"Promise",stat:!0,forced:d},{any:function(y){var b=this,E=v("AggregateError"),S=l.f(b),w=S.resolve,x=S.reject,P=h(function(){var R=u(b.resolve),T=[],A=0,I=1,N=!1;p(y,function(K){var _=A++,W=!1;I++,s(R,b,K).then(function(j){W||N||(N=!0,w(j))},function(j){W||N||(W=!0,T[_]=j,--I||x(new E(T,f)))})}),--I||x(new E(T,f))});return P.error&&x(P.value),S.promise}})},9078:(C,c,t)=>{"use strict";var i=t(83846),s=t(65259),u=t(14146).CONSTRUCTOR,v=t(85985),l=t(90731),h=t(2714),p=t(76156),d=v&&v.prototype;if(i({target:"Promise",proto:!0,forced:u,real:!0},{catch:function(g){return this.then(void 0,g)}}),!s&&h(v)){var f=l("Promise").prototype.catch;d.catch!==f&&p(d,"catch",f,{unsafe:!0})}},33268:(C,c,t)=>{"use strict";var i=t(83846),s=t(65259),u=t(82768),v=t(75866),l=t(99760),h=t(76156),p=t(39869),d=t(61817),f=t(87735),g=t(7319),y=t(2714),b=t(73091),E=t(99385),S=t(14773),w=t(79790).set,x=t(16560),P=t(67870),R=t(69297),T=t(77425),A=t(45699),I=t(85985),N=t(14146),K=t(445),_="Promise",W=N.CONSTRUCTOR,j=N.REJECTION_EVENT,re=N.SUBCLASSING,X=A.getterFor(_),Z=A.set,J=I&&I.prototype,q=I,L=J,$=v.TypeError,k=v.document,F=v.process,V=K.f,pe=V,ce=!!(k&&k.createEvent&&v.dispatchEvent),G="unhandledrejection",te="rejectionhandled",ie=0,fe=1,Se=2,he=1,me=2,_e,we,Ge,ht,nt=function(Ce){var Ae;return b(Ce)&&y(Ae=Ce.then)?Ae:!1},Re=function(Ce,Ae){var $e=Ae.value,tt=Ae.state==fe,ke=tt?Ce.ok:Ce.fail,Oe=Ce.resolve,je=Ce.reject,Et=Ce.domain,ct,ut,Ne;try{ke?(tt||(Ae.rejection===me&&Ye(Ae),Ae.rejection=he),ke===!0?ct=$e:(Et&&Et.enter(),ct=ke($e),Et&&(Et.exit(),Ne=!0)),ct===Ce.promise?je($("Promise-chain cycle")):(ut=nt(ct))?l(ut,ct,Oe,je):Oe(ct)):je($e)}catch(mt){Et&&!Ne&&Et.exit(),je(mt)}},ue=function(Ce,Ae){Ce.notified||(Ce.notified=!0,x(function(){for(var $e=Ce.reactions,tt;tt=$e.get();)Re(tt,Ce);Ce.notified=!1,Ae&&!Ce.rejection&&ve(Ce)}))},ae=function(Ce,Ae,$e){var tt,ke;ce?(tt=k.createEvent("Event"),tt.promise=Ae,tt.reason=$e,tt.initEvent(Ce,!1,!0),v.dispatchEvent(tt)):tt={promise:Ae,reason:$e},!j&&(ke=v["on"+Ce])?ke(tt):Ce===G&&P("Unhandled promise rejection",$e)},ve=function(Ce){l(w,v,function(){var Ae=Ce.facade,$e=Ce.value,tt=Me(Ce),ke;if(tt&&(ke=R(function(){u?F.emit("unhandledRejection",$e,Ae):ae(G,Ae,$e)}),Ce.rejection=u||Me(Ce)?me:he,ke.error))throw ke.value})},Me=function(Ce){return Ce.rejection!==he&&!Ce.parent},Ye=function(Ce){l(w,v,function(){var Ae=Ce.facade;u?F.emit("rejectionHandled",Ae):ae(te,Ae,Ce.value)})},qe=function(Ce,Ae,$e){return function(tt){Ce(Ae,tt,$e)}},At=function(Ce,Ae,$e){Ce.done||(Ce.done=!0,$e&&(Ce=$e),Ce.value=Ae,Ce.state=Se,ue(Ce,!0))},It=function(Ce,Ae,$e){if(!Ce.done){Ce.done=!0,$e&&(Ce=$e);try{if(Ce.facade===Ae)throw $("Promise can't be resolved itself");var tt=nt(Ae);tt?x(function(){var ke={done:!1};try{l(tt,Ae,qe(It,ke,Ce),qe(At,ke,Ce))}catch(Oe){At(ke,Oe,Ce)}}):(Ce.value=Ae,Ce.state=fe,ue(Ce,!1))}catch(ke){At({done:!1},ke,Ce)}}};if(W&&(q=function(Ae){E(this,L),g(Ae),l(_e,this);var $e=X(this);try{Ae(qe(It,$e),qe(At,$e))}catch(tt){At($e,tt)}},L=q.prototype,_e=function(Ae){Z(this,{type:_,done:!1,notified:!1,parent:!1,reactions:new T,rejection:!1,state:ie,value:void 0})},_e.prototype=h(L,"then",function(Ae,$e){var tt=X(this),ke=V(S(this,q));return tt.parent=!0,ke.ok=y(Ae)?Ae:!0,ke.fail=y($e)&&$e,ke.domain=u?F.domain:void 0,tt.state==ie?tt.reactions.add(ke):x(function(){Re(ke,tt)}),ke.promise}),we=function(){var Ce=new _e,Ae=X(Ce);this.promise=Ce,this.resolve=qe(It,Ae),this.reject=qe(At,Ae)},K.f=V=function(Ce){return Ce===q||Ce===Ge?new we(Ce):pe(Ce)},!s&&y(I)&&J!==Object.prototype)){ht=J.then,re||h(J,"then",function(Ae,$e){var tt=this;return new q(function(ke,Oe){l(ht,tt,ke,Oe)}).then(Ae,$e)},{unsafe:!0});try{delete J.constructor}catch{}p&&p(J,L)}i({global:!0,constructor:!0,wrap:!0,forced:W},{Promise:q}),d(q,_,!1,!0),f(_)},72695:(C,c,t)=>{"use strict";var i=t(83846),s=t(65259),u=t(85985),v=t(97898),l=t(90731),h=t(2714),p=t(14773),d=t(30312),f=t(76156),g=u&&u.prototype,y=!!u&&v(function(){g.finally.call({then:function(){}},function(){})});if(i({target:"Promise",proto:!0,real:!0,forced:y},{finally:function(E){var S=p(this,l("Promise")),w=h(E);return this.then(w?function(x){return d(S,E()).then(function(){return x})}:E,w?function(x){return d(S,E()).then(function(){throw x})}:E)}}),!s&&h(u)){var b=l("Promise").prototype.finally;g.finally!==b&&f(g,"finally",b,{unsafe:!0})}},84146:(C,c,t)=>{t(33268),t(4361),t(9078),t(45988),t(4388),t(92635)},45988:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(7319),v=t(445),l=t(69297),h=t(86543),p=t(33891);i({target:"Promise",stat:!0,forced:p},{race:function(f){var g=this,y=v.f(g),b=y.reject,E=l(function(){var S=u(g.resolve);h(f,function(w){s(S,g,w).then(y.resolve,b)})});return E.error&&b(E.value),y.promise}})},4388:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(445),v=t(14146).CONSTRUCTOR;i({target:"Promise",stat:!0,forced:v},{reject:function(h){var p=u.f(this);return s(p.reject,void 0,h),p.promise}})},92635:(C,c,t)=>{"use strict";var i=t(83846),s=t(90731),u=t(65259),v=t(85985),l=t(14146).CONSTRUCTOR,h=t(30312),p=s("Promise"),d=u&&!l;i({target:"Promise",stat:!0,forced:u||l},{resolve:function(g){return h(d&&this===p?v:this,g)}})},84863:(C,c,t)=>{var i=t(83846),s=t(27630),u=t(7319),v=t(4630),l=t(97898),h=!l(function(){Reflect.apply(function(){})});i({target:"Reflect",stat:!0,forced:h},{apply:function(d,f,g){return s(u(d),f,v(g))}})},38486:(C,c,t)=>{var i=t(83846),s=t(90731),u=t(27630),v=t(31497),l=t(3897),h=t(4630),p=t(73091),d=t(69735),f=t(97898),g=s("Reflect","construct"),y=Object.prototype,b=[].push,E=f(function(){function x(){}return!(g(function(){},[],x)instanceof x)}),S=!f(function(){g(function(){})}),w=E||S;i({target:"Reflect",stat:!0,forced:w,sham:w},{construct:function(P,R){l(P),h(R);var T=arguments.length<3?P:l(arguments[2]);if(S&&!E)return g(P,R,T);if(P==T){switch(R.length){case 0:return new P;case 1:return new P(R[0]);case 2:return new P(R[0],R[1]);case 3:return new P(R[0],R[1],R[2]);case 4:return new P(R[0],R[1],R[2],R[3])}var A=[null];return u(b,A,R),new(u(v,P,A))}var I=T.prototype,N=d(p(I)?I:y),K=u(P,N,R);return p(K)?K:N}})},6779:(C,c,t)=>{var i=t(83846),s=t(77022),u=t(4630),v=t(6618),l=t(56768),h=t(97898),p=h(function(){Reflect.defineProperty(l.f({},1,{value:1}),1,{value:2})});i({target:"Reflect",stat:!0,forced:p,sham:!s},{defineProperty:function(f,g,y){u(f);var b=v(g);u(y);try{return l.f(f,b,y),!0}catch{return!1}}})},51344:(C,c,t)=>{var i=t(83846),s=t(4630),u=t(61560).f;i({target:"Reflect",stat:!0},{deleteProperty:function(l,h){var p=u(s(l),h);return p&&!p.configurable?!1:delete l[h]}})},62816:(C,c,t)=>{var i=t(83846),s=t(77022),u=t(4630),v=t(61560);i({target:"Reflect",stat:!0,sham:!s},{getOwnPropertyDescriptor:function(h,p){return v.f(u(h),p)}})},78208:(C,c,t)=>{var i=t(83846),s=t(4630),u=t(52839),v=t(28715);i({target:"Reflect",stat:!0,sham:!v},{getPrototypeOf:function(h){return u(s(h))}})},47069:(C,c,t)=>{var i=t(83846),s=t(99760),u=t(73091),v=t(4630),l=t(35445),h=t(61560),p=t(52839);function d(f,g){var y=arguments.length<3?f:arguments[2],b,E;if(v(f)===y)return f[g];if(b=h.f(f,g),b)return l(b)?b.value:b.get===void 0?void 0:s(b.get,y);if(u(E=p(f)))return d(E,g,y)}i({target:"Reflect",stat:!0},{get:d})},99034:(C,c,t)=>{var i=t(83846);i({target:"Reflect",stat:!0},{has:function(u,v){return v in u}})},19073:(C,c,t)=>{var i=t(83846),s=t(4630),u=t(71772);i({target:"Reflect",stat:!0},{isExtensible:function(l){return s(l),u(l)}})},77459:(C,c,t)=>{var i=t(83846),s=t(765);i({target:"Reflect",stat:!0},{ownKeys:s})},46590:(C,c,t)=>{var i=t(83846),s=t(90731),u=t(4630),v=t(36781);i({target:"Reflect",stat:!0,sham:!v},{preventExtensions:function(h){u(h);try{var p=s("Object","preventExtensions");return p&&p(h),!0}catch{return!1}}})},12407:(C,c,t)=>{var i=t(83846),s=t(4630),u=t(4829),v=t(39869);v&&i({target:"Reflect",stat:!0},{setPrototypeOf:function(h,p){s(h),u(p);try{return v(h,p),!0}catch{return!1}}})},39321:(C,c,t)=>{var i=t(83846),s=t(99760),u=t(4630),v=t(73091),l=t(35445),h=t(97898),p=t(56768),d=t(61560),f=t(52839),g=t(33091);function y(E,S,w){var x=arguments.length<4?E:arguments[3],P=d.f(u(E),S),R,T,A;if(!P){if(v(T=f(E)))return y(T,S,w,x);P=g(0)}if(l(P)){if(P.writable===!1||!v(x))return!1;if(R=d.f(x,S)){if(R.get||R.set||R.writable===!1)return!1;R.value=w,p.f(x,S,R)}else p.f(x,S,g(0,w))}else{if(A=P.set,A===void 0)return!1;s(A,x,w)}return!0}var b=h(function(){var E=function(){},S=p.f(new E,"a",{configurable:!0});return Reflect.set(E.prototype,"a",1,S)!==!1});i({target:"Reflect",stat:!0,forced:b},{set:y})},50780:(C,c,t)=>{var i=t(83846),s=t(75866),u=t(61817);i({global:!0},{Reflect:{}}),u(s.Reflect,"Reflect",!0)},64984:(C,c,t)=>{var i=t(77022),s=t(75866),u=t(55740),v=t(40042),l=t(83108),h=t(37651),p=t(74757).f,d=t(720),f=t(52974),g=t(36722),y=t(59261),b=t(56404),E=t(36775),S=t(76156),w=t(97898),x=t(15275),P=t(45699).enforce,R=t(87735),T=t(70330),A=t(10197),I=t(80480),N=T("match"),K=s.RegExp,_=K.prototype,W=s.SyntaxError,j=u(_.exec),re=u("".charAt),X=u("".replace),Z=u("".indexOf),J=u("".slice),q=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,$=/a/g,k=new K(L)!==L,F=b.MISSED_STICKY,V=b.UNSUPPORTED_Y,pe=i&&(!k||F||A||I||w(function(){return $[N]=!1,K(L)!=L||K($)==$||K(L,"i")!="/a/i"})),ce=function(Se){for(var he=Se.length,me=0,_e="",we=!1,Ge;me<=he;me++){if(Ge=re(Se,me),Ge==="\\"){_e+=Ge+re(Se,++me);continue}!we&&Ge==="."?_e+="[\\s\\S]":(Ge==="["?we=!0:Ge==="]"&&(we=!1),_e+=Ge)}return _e},G=function(Se){for(var he=Se.length,me=0,_e="",we=[],Ge={},ht=!1,nt=!1,Re=0,ue="",ae;me<=he;me++){if(ae=re(Se,me),ae==="\\")ae=ae+re(Se,++me);else if(ae==="]")ht=!1;else if(!ht)switch(!0){case ae==="[":ht=!0;break;case ae==="(":j(q,J(Se,me+1))&&(me+=2,nt=!0),_e+=ae,Re++;continue;case(ae===">"&&nt):if(ue===""||x(Ge,ue))throw new W("Invalid capture group name");Ge[ue]=!0,we[we.length]=[ue,Re],nt=!1,ue="";continue}nt?ue+=ae:_e+=ae}return[_e,we]};if(v("RegExp",pe)){for(var te=function(he,me){var _e=d(_,this),we=f(he),Ge=me===void 0,ht=[],nt=he,Re,ue,ae,ve,Me,Ye;if(!_e&&we&&Ge&&he.constructor===te)return he;if((we||d(_,he))&&(he=he.source,Ge&&(me=y(nt))),he=he===void 0?"":g(he),me=me===void 0?"":g(me),nt=he,A&&"dotAll"in L&&(ue=!!me&&Z(me,"s")>-1,ue&&(me=X(me,/s/g,""))),Re=me,F&&"sticky"in L&&(ae=!!me&&Z(me,"y")>-1,ae&&V&&(me=X(me,/y/g,""))),I&&(ve=G(he),he=ve[0],ht=ve[1]),Me=l(K(he,me),_e?this:_,te),(ue||ae||ht.length)&&(Ye=P(Me),ue&&(Ye.dotAll=!0,Ye.raw=te(ce(he),Re)),ae&&(Ye.sticky=!0),ht.length&&(Ye.groups=ht)),he!==nt)try{h(Me,"source",nt===""?"(?:)":nt)}catch{}return Me},ie=p(K),fe=0;ie.length>fe;)E(te,K,ie[fe++]);_.constructor=te,te.prototype=_,S(s,"RegExp",te,{constructor:!0})}R("RegExp")},99662:(C,c,t)=>{var i=t(77022),s=t(10197),u=t(53882),v=t(74066),l=t(45699).get,h=RegExp.prototype,p=TypeError;i&&s&&v(h,"dotAll",{configurable:!0,get:function(){if(this!==h){if(u(this)==="RegExp")return!!l(this).dotAll;throw p("Incompatible receiver, RegExp required")}}})},92298:(C,c,t)=>{"use strict";var i=t(83846),s=t(56144);i({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},28036:(C,c,t)=>{var i=t(75866),s=t(77022),u=t(74066),v=t(73286),l=t(97898),h=i.RegExp,p=h.prototype,d=s&&l(function(){var f=!0;try{h(".","d")}catch{f=!1}var g={},y="",b=f?"dgimsy":"gimsy",E=function(P,R){Object.defineProperty(g,P,{get:function(){return y+=R,!0}})},S={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};f&&(S.hasIndices="d");for(var w in S)E(w,S[w]);var x=Object.getOwnPropertyDescriptor(p,"flags").get.call(g);return x!==b||y!==b});d&&u(p,"flags",{configurable:!0,get:v})},68937:(C,c,t)=>{var i=t(77022),s=t(56404).MISSED_STICKY,u=t(53882),v=t(74066),l=t(45699).get,h=RegExp.prototype,p=TypeError;i&&s&&v(h,"sticky",{configurable:!0,get:function(){if(this!==h){if(u(this)==="RegExp")return!!l(this).sticky;throw p("Incompatible receiver, RegExp required")}}})},84638:(C,c,t)=>{"use strict";t(92298);var i=t(83846),s=t(99760),u=t(2714),v=t(4630),l=t(36722),h=function(){var d=!1,f=/[ac]/;return f.exec=function(){return d=!0,/./.exec.apply(this,arguments)},f.test("abc")===!0&&d}(),p=/./.test;i({target:"RegExp",proto:!0,forced:!h},{test:function(d){var f=v(this),g=l(d),y=f.exec;if(!u(y))return s(p,f,g);var b=s(y,f,g);return b===null?!1:(v(b),!0)}})},43407:(C,c,t)=>{"use strict";var i=t(18551).PROPER,s=t(76156),u=t(4630),v=t(36722),l=t(97898),h=t(59261),p="toString",d=RegExp.prototype,f=d[p],g=l(function(){return f.call({source:"a",flags:"b"})!="/a/b"}),y=i&&f.name!=p;(g||y)&&s(RegExp.prototype,p,function(){var E=u(this),S=v(E.source),w=v(h(E));return"/"+S+"/"+w},{unsafe:!0})},23098:(C,c,t)=>{"use strict";var i=t(73199),s=t(6933);i("Set",function(u){return function(){return u(this,arguments.length?arguments[0]:void 0)}},s)},1877:(C,c,t)=>{t(23098)},58460:(C,c,t)=>{"use strict";var i=t(83846),s=t(21118),u=t(69370);i({target:"String",proto:!0,forced:u("anchor")},{anchor:function(l){return s(this,"a","name",l)}})},19199:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(38213),v=t(46226),l=t(36722),h=t(97898),p=s("".charAt),d=h(function(){return"\u{20BB7}".at(-2)!=="\uD842"});i({target:"String",proto:!0,forced:d},{at:function(g){var y=l(u(this)),b=y.length,E=v(g),S=E>=0?E:b+E;return S<0||S>=b?void 0:p(y,S)}})},9096:(C,c,t)=>{"use strict";var i=t(83846),s=t(21118),u=t(69370);i({target:"String",proto:!0,forced:u("big")},{big:function(){return s(this,"big","","")}})},28461:(C,c,t)=>{"use strict";var i=t(83846),s=t(21118),u=t(69370);i({target:"String",proto:!0,forced:u("blink")},{blink:function(){return s(this,"blink","","")}})},41740:(C,c,t)=>{"use strict";var i=t(83846),s=t(21118),u=t(69370);i({target:"String",proto:!0,forced:u("bold")},{bold:function(){return s(this,"b","","")}})},1810:(C,c,t)=>{"use strict";var i=t(83846),s=t(56491).codeAt;i({target:"String",proto:!0},{codePointAt:function(v){return s(this,v)}})},18861:(C,c,t)=>{"use strict";var i=t(83846),s=t(42716),u=t(61560).f,v=t(90161),l=t(36722),h=t(49501),p=t(38213),d=t(81275),f=t(65259),g=s("".endsWith),y=s("".slice),b=Math.min,E=d("endsWith"),S=!f&&!E&&!!function(){var w=u(String.prototype,"endsWith");return w&&!w.writable}();i({target:"String",proto:!0,forced:!S&&!E},{endsWith:function(x){var P=l(p(this));h(x);var R=arguments.length>1?arguments[1]:void 0,T=P.length,A=R===void 0?T:b(v(R),T),I=l(x);return g?g(P,I,A):y(P,A-I.length,A)===I}})},44494:(C,c,t)=>{"use strict";var i=t(83846),s=t(21118),u=t(69370);i({target:"String",proto:!0,forced:u("fixed")},{fixed:function(){return s(this,"tt","","")}})},62016:(C,c,t)=>{"use strict";var i=t(83846),s=t(21118),u=t(69370);i({target:"String",proto:!0,forced:u("fontcolor")},{fontcolor:function(l){return s(this,"font","color",l)}})},38713:(C,c,t)=>{"use strict";var i=t(83846),s=t(21118),u=t(69370);i({target:"String",proto:!0,forced:u("fontsize")},{fontsize:function(l){return s(this,"font","size",l)}})},84562:(C,c,t)=>{var i=t(83846),s=t(55740),u=t(49717),v=RangeError,l=String.fromCharCode,h=String.fromCodePoint,p=s([].join),d=!!h&&h.length!=1;i({target:"String",stat:!0,arity:1,forced:d},{fromCodePoint:function(g){for(var y=[],b=arguments.length,E=0,S;b>E;){if(S=+arguments[E++],u(S,1114111)!==S)throw v(S+" is not a valid code point");y[E]=S<65536?l(S):l(((S-=65536)>>10)+55296,S%1024+56320)}return p(y,"")}})},89920:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(49501),v=t(38213),l=t(36722),h=t(81275),p=s("".indexOf);i({target:"String",proto:!0,forced:!h("includes")},{includes:function(f){return!!~p(l(v(this)),l(u(f)),arguments.length>1?arguments[1]:void 0)}})},26299:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(38213),v=t(36722),l=s("".charCodeAt);i({target:"String",proto:!0},{isWellFormed:function(){for(var p=v(u(this)),d=p.length,f=0;f<d;f++){var g=l(p,f);if((g&63488)==55296&&(g>=56320||++f>=d||(l(p,f)&64512)!=56320))return!1}return!0}})},83544:(C,c,t)=>{"use strict";var i=t(83846),s=t(21118),u=t(69370);i({target:"String",proto:!0,forced:u("italics")},{italics:function(){return s(this,"i","","")}})},74526:(C,c,t)=>{"use strict";var i=t(56491).charAt,s=t(36722),u=t(45699),v=t(95548),l=t(14373),h="String Iterator",p=u.set,d=u.getterFor(h);v(String,"String",function(f){p(this,{type:h,string:s(f),index:0})},function(){var g=d(this),y=g.string,b=g.index,E;return b>=y.length?l(void 0,!0):(E=i(y,b),g.index+=E.length,l(E,!1))})},16237:(C,c,t)=>{"use strict";var i=t(83846),s=t(21118),u=t(69370);i({target:"String",proto:!0,forced:u("link")},{link:function(l){return s(this,"a","href",l)}})},94809:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(42716),v=t(56561),l=t(14373),h=t(38213),p=t(90161),d=t(36722),f=t(4630),g=t(67213),y=t(53882),b=t(52974),E=t(59261),S=t(83735),w=t(76156),x=t(97898),P=t(70330),R=t(14773),T=t(83563),A=t(41917),I=t(45699),N=t(65259),K=P("matchAll"),_="RegExp String",W=_+" Iterator",j=I.set,re=I.getterFor(W),X=RegExp.prototype,Z=TypeError,J=u("".indexOf),q=u("".matchAll),L=!!q&&!x(function(){q("a",/./)}),$=v(function(V,pe,ce,G){j(this,{type:W,regexp:V,string:pe,global:ce,unicode:G,done:!1})},_,function(){var V=re(this);if(V.done)return l(void 0,!0);var pe=V.regexp,ce=V.string,G=A(pe,ce);return G===null?(V.done=!0,l(void 0,!0)):V.global?(d(G[0])===""&&(pe.lastIndex=T(ce,p(pe.lastIndex),V.unicode)),l(G,!1)):(V.done=!0,l(G,!1))}),k=function(F){var V=f(this),pe=d(F),ce=R(V,RegExp),G=d(E(V)),te,ie,fe;return te=new ce(ce===RegExp?V.source:V,G),ie=!!~J(G,"g"),fe=!!~J(G,"u"),te.lastIndex=p(V.lastIndex),new $(te,pe,ie,fe)};i({target:"String",proto:!0,forced:L},{matchAll:function(V){var pe=h(this),ce,G,te,ie;if(g(V)){if(L)return q(pe,V)}else{if(b(V)&&(ce=d(h(E(V))),!~J(ce,"g")))throw Z("`.matchAll` does not allow non-global regexes");if(L)return q(pe,V);if(te=S(V,K),te===void 0&&N&&y(V)=="RegExp"&&(te=k),te)return s(te,V,pe)}return G=d(pe),ie=new RegExp(V,"g"),N?s(k,ie,G):ie[K](G)}}),N||K in X||w(X,K,k)},74607:(C,c,t)=>{"use strict";var i=t(99760),s=t(91833),u=t(4630),v=t(67213),l=t(90161),h=t(36722),p=t(38213),d=t(83735),f=t(83563),g=t(41917);s("match",function(y,b,E){return[function(w){var x=p(this),P=v(w)?void 0:d(w,y);return P?i(P,w,x):new RegExp(w)[y](h(x))},function(S){var w=u(this),x=h(S),P=E(b,w,x);if(P.done)return P.value;if(!w.global)return g(w,x);var R=w.unicode;w.lastIndex=0;for(var T=[],A=0,I;(I=g(w,x))!==null;){var N=h(I[0]);T[A]=N,N===""&&(w.lastIndex=f(x,l(w.lastIndex),R)),A++}return A===0?null:T}]})},21136:(C,c,t)=>{"use strict";var i=t(83846),s=t(22925).end,u=t(61424);i({target:"String",proto:!0,forced:u},{padEnd:function(l){return s(this,l,arguments.length>1?arguments[1]:void 0)}})},47412:(C,c,t)=>{"use strict";var i=t(83846),s=t(22925).start,u=t(61424);i({target:"String",proto:!0,forced:u},{padStart:function(l){return s(this,l,arguments.length>1?arguments[1]:void 0)}})},94128:(C,c,t)=>{var i=t(83846),s=t(55740),u=t(55339),v=t(9376),l=t(36722),h=t(84349),p=s([].push),d=s([].join);i({target:"String",stat:!0},{raw:function(g){var y=u(v(g).raw),b=h(y);if(!b)return"";for(var E=arguments.length,S=[],w=0;;){if(p(S,l(y[w++])),w===b)return d(S,"");w<E&&p(S,l(arguments[w]))}}})},93698:(C,c,t)=>{var i=t(83846),s=t(73531);i({target:"String",proto:!0},{repeat:s})},10487:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(55740),v=t(38213),l=t(2714),h=t(67213),p=t(52974),d=t(36722),f=t(83735),g=t(59261),y=t(59227),b=t(70330),E=t(65259),S=b("replace"),w=TypeError,x=u("".indexOf),P=u("".replace),R=u("".slice),T=Math.max,A=function(I,N,K){return K>I.length?-1:N===""?K:x(I,N,K)};i({target:"String",proto:!0},{replaceAll:function(N,K){var _=v(this),W,j,re,X,Z,J,q,L,$,k=0,F=0,V="";if(!h(N)){if(W=p(N),W&&(j=d(v(g(N))),!~x(j,"g")))throw w("`.replaceAll` does not allow non-global regexes");if(re=f(N,S),re)return s(re,N,_,K);if(E&&W)return P(d(_),N,K)}for(X=d(_),Z=d(N),J=l(K),J||(K=d(K)),q=Z.length,L=T(1,q),k=A(X,Z,0);k!==-1;)$=J?d(K(Z,k,X)):y(Z,X,k,[],void 0,K),V+=R(X,F,k)+$,F=k+q,k=A(X,Z,k+L);return F<X.length&&(V+=R(X,F)),V}})},67592:(C,c,t)=>{"use strict";var i=t(27630),s=t(99760),u=t(55740),v=t(91833),l=t(97898),h=t(4630),p=t(2714),d=t(67213),f=t(46226),g=t(90161),y=t(36722),b=t(38213),E=t(83563),S=t(83735),w=t(59227),x=t(41917),P=t(70330),R=P("replace"),T=Math.max,A=Math.min,I=u([].concat),N=u([].push),K=u("".indexOf),_=u("".slice),W=function(Z){return Z===void 0?Z:String(Z)},j=function(){return"a".replace(/./,"$0")==="$0"}(),re=function(){return/./[R]?/./[R]("a","$0")==="":!1}(),X=!l(function(){var Z=/./;return Z.exec=function(){var J=[];return J.groups={a:"7"},J},"".replace(Z,"$<a>")!=="7"});v("replace",function(Z,J,q){var L=re?"$":"$0";return[function(k,F){var V=b(this),pe=d(k)?void 0:S(k,R);return pe?s(pe,k,V,F):s(J,y(V),k,F)},function($,k){var F=h(this),V=y($);if(typeof k=="string"&&K(k,L)===-1&&K(k,"$<")===-1){var pe=q(J,F,V,k);if(pe.done)return pe.value}var ce=p(k);ce||(k=y(k));var G=F.global;if(G){var te=F.unicode;F.lastIndex=0}for(var ie=[];;){var fe=x(F,V);if(fe===null||(N(ie,fe),!G))break;var Se=y(fe[0]);Se===""&&(F.lastIndex=E(V,g(F.lastIndex),te))}for(var he="",me=0,_e=0;_e<ie.length;_e++){fe=ie[_e];for(var we=y(fe[0]),Ge=T(A(f(fe.index),V.length),0),ht=[],nt=1;nt<fe.length;nt++)N(ht,W(fe[nt]));var Re=fe.groups;if(ce){var ue=I([we],ht,Ge,V);Re!==void 0&&N(ue,Re);var ae=y(i(k,void 0,ue))}else ae=w(we,V,Ge,ht,Re,k);Ge>=me&&(he+=_(V,me,Ge)+ae,me=Ge+we.length)}return he+_(V,me)}]},!X||!j||re)},63445:(C,c,t)=>{"use strict";var i=t(99760),s=t(91833),u=t(4630),v=t(67213),l=t(38213),h=t(82536),p=t(36722),d=t(83735),f=t(41917);s("search",function(g,y,b){return[function(S){var w=l(this),x=v(S)?void 0:d(S,g);return x?i(x,S,w):new RegExp(S)[g](p(w))},function(E){var S=u(this),w=p(E),x=b(y,S,w);if(x.done)return x.value;var P=S.lastIndex;h(P,0)||(S.lastIndex=0);var R=f(S,w);return h(S.lastIndex,P)||(S.lastIndex=P),R===null?-1:R.index}]})},36825:(C,c,t)=>{"use strict";var i=t(83846),s=t(21118),u=t(69370);i({target:"String",proto:!0,forced:u("small")},{small:function(){return s(this,"small","","")}})},94725:(C,c,t)=>{"use strict";var i=t(27630),s=t(99760),u=t(55740),v=t(91833),l=t(4630),h=t(67213),p=t(52974),d=t(38213),f=t(14773),g=t(83563),y=t(90161),b=t(36722),E=t(83735),S=t(26970),w=t(41917),x=t(56144),P=t(56404),R=t(97898),T=P.UNSUPPORTED_Y,A=4294967295,I=Math.min,N=[].push,K=u(/./.exec),_=u(N),W=u("".slice),j=!R(function(){var re=/(?:)/,X=re.exec;re.exec=function(){return X.apply(this,arguments)};var Z="ab".split(re);return Z.length!==2||Z[0]!=="a"||Z[1]!=="b"});v("split",function(re,X,Z){var J;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?J=function(q,L){var $=b(d(this)),k=L===void 0?A:L>>>0;if(k===0)return[];if(q===void 0)return[$];if(!p(q))return s(X,$,q,k);for(var F=[],V=(q.ignoreCase?"i":"")+(q.multiline?"m":"")+(q.unicode?"u":"")+(q.sticky?"y":""),pe=0,ce=new RegExp(q.source,V+"g"),G,te,ie;(G=s(x,ce,$))&&(te=ce.lastIndex,!(te>pe&&(_(F,W($,pe,G.index)),G.length>1&&G.index<$.length&&i(N,F,S(G,1)),ie=G[0].length,pe=te,F.length>=k)));)ce.lastIndex===G.index&&ce.lastIndex++;return pe===$.length?(ie||!K(ce,""))&&_(F,""):_(F,W($,pe)),F.length>k?S(F,0,k):F}:"0".split(void 0,0).length?J=function(q,L){return q===void 0&&L===0?[]:s(X,this,q,L)}:J=X,[function(L,$){var k=d(this),F=h(L)?void 0:E(L,re);return F?s(F,L,k,$):s(J,b(k),L,$)},function(q,L){var $=l(this),k=b(q),F=Z(J,$,k,L,J!==X);if(F.done)return F.value;var V=f($,RegExp),pe=$.unicode,ce=($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")+(T?"g":"y"),G=new V(T?"^(?:"+$.source+")":$,ce),te=L===void 0?A:L>>>0;if(te===0)return[];if(k.length===0)return w(G,k)===null?[k]:[];for(var ie=0,fe=0,Se=[];fe<k.length;){G.lastIndex=T?0:fe;var he=w(G,T?W(k,fe):k),me;if(he===null||(me=I(y(G.lastIndex+(T?fe:0)),k.length))===ie)fe=g(k,fe,pe);else{if(_(Se,W(k,ie,fe)),Se.length===te)return Se;for(var _e=1;_e<=he.length-1;_e++)if(_(Se,he[_e]),Se.length===te)return Se;fe=ie=me}}return _(Se,W(k,ie)),Se}]},!j,T)},65213:(C,c,t)=>{"use strict";var i=t(83846),s=t(42716),u=t(61560).f,v=t(90161),l=t(36722),h=t(49501),p=t(38213),d=t(81275),f=t(65259),g=s("".startsWith),y=s("".slice),b=Math.min,E=d("startsWith"),S=!f&&!E&&!!function(){var w=u(String.prototype,"startsWith");return w&&!w.writable}();i({target:"String",proto:!0,forced:!S&&!E},{startsWith:function(x){var P=l(p(this));h(x);var R=v(b(arguments.length>1?arguments[1]:void 0,P.length)),T=l(x);return g?g(P,T,R):y(P,R,R+T.length)===T}})},24038:(C,c,t)=>{"use strict";var i=t(83846),s=t(21118),u=t(69370);i({target:"String",proto:!0,forced:u("strike")},{strike:function(){return s(this,"strike","","")}})},79804:(C,c,t)=>{"use strict";var i=t(83846),s=t(21118),u=t(69370);i({target:"String",proto:!0,forced:u("sub")},{sub:function(){return s(this,"sub","","")}})},4462:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(38213),v=t(46226),l=t(36722),h=s("".slice),p=Math.max,d=Math.min,f=!"".substr||"ab".substr(-1)!=="b";i({target:"String",proto:!0,forced:f},{substr:function(y,b){var E=l(u(this)),S=E.length,w=v(y),x,P;return w===1/0&&(w=0),w<0&&(w=p(S+w,0)),x=b===void 0?S:v(b),x<=0||x===1/0?"":(P=d(w+x,S),w>=P?"":h(E,w,P))}})},50194:(C,c,t)=>{"use strict";var i=t(83846),s=t(21118),u=t(69370);i({target:"String",proto:!0,forced:u("sup")},{sup:function(){return s(this,"sup","","")}})},184:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(55740),v=t(38213),l=t(36722),h=t(97898),p=Array,d=u("".charAt),f=u("".charCodeAt),g=u([].join),y="".toWellFormed,b="\uFFFD",E=y&&h(function(){return s(y,1)!=="1"});i({target:"String",proto:!0,forced:E},{toWellFormed:function(){var w=l(v(this));if(E)return s(y,w);for(var x=w.length,P=p(x),R=0;R<x;R++){var T=f(w,R);(T&63488)!=55296?P[R]=d(w,R):T>=56320||R+1>=x||(f(w,R+1)&64512)!=56320?P[R]=b:(P[R]=d(w,R),P[++R]=d(w,R))}return g(P,"")}})},87430:(C,c,t)=>{t(6463);var i=t(83846),s=t(18713);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==s},{trimEnd:s})},75662:(C,c,t)=>{var i=t(83846),s=t(74001);i({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==s},{trimLeft:s})},6463:(C,c,t)=>{var i=t(83846),s=t(18713);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==s},{trimRight:s})},1412:(C,c,t)=>{t(75662);var i=t(83846),s=t(74001);i({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==s},{trimStart:s})},2536:(C,c,t)=>{"use strict";var i=t(83846),s=t(78528).trim,u=t(79276);i({target:"String",proto:!0,forced:u("trim")},{trim:function(){return s(this)}})},97847:(C,c,t)=>{var i=t(34729);i("asyncIterator")},67410:(C,c,t)=>{"use strict";var i=t(83846),s=t(75866),u=t(99760),v=t(55740),l=t(65259),h=t(77022),p=t(48726),d=t(97898),f=t(15275),g=t(720),y=t(4630),b=t(55339),E=t(6618),S=t(36722),w=t(33091),x=t(69735),P=t(64386),R=t(74757),T=t(93292),A=t(83166),I=t(61560),N=t(56768),K=t(27370),_=t(92705),W=t(76156),j=t(74066),re=t(14232),X=t(37893),Z=t(4811),J=t(8499),q=t(70330),L=t(31585),$=t(34729),k=t(48594),F=t(61817),V=t(45699),pe=t(45742).forEach,ce=X("hidden"),G="Symbol",te="prototype",ie=V.set,fe=V.getterFor(G),Se=Object[te],he=s.Symbol,me=he&&he[te],_e=s.TypeError,we=s.QObject,Ge=I.f,ht=N.f,nt=T.f,Re=_.f,ue=v([].push),ae=re("symbols"),ve=re("op-symbols"),Me=re("wks"),Ye=!we||!we[te]||!we[te].findChild,qe=h&&d(function(){return x(ht({},"a",{get:function(){return ht(this,"a",{value:7}).a}})).a!=7})?function(je,Et,ct){var ut=Ge(Se,Et);ut&&delete Se[Et],ht(je,Et,ct),ut&&je!==Se&&ht(Se,Et,ut)}:ht,At=function(je,Et){var ct=ae[je]=x(me);return ie(ct,{type:G,tag:je,description:Et}),h||(ct.description=Et),ct},It=function(Et,ct,ut){Et===Se&&It(ve,ct,ut),y(Et);var Ne=E(ct);return y(ut),f(ae,Ne)?(ut.enumerable?(f(Et,ce)&&Et[ce][Ne]&&(Et[ce][Ne]=!1),ut=x(ut,{enumerable:w(0,!1)})):(f(Et,ce)||ht(Et,ce,w(1,{})),Et[ce][Ne]=!0),qe(Et,Ne,ut)):ht(Et,Ne,ut)},Ce=function(Et,ct){y(Et);var ut=b(ct),Ne=P(ut).concat(Oe(ut));return pe(Ne,function(mt){(!h||u($e,ut,mt))&&It(Et,mt,ut[mt])}),Et},Ae=function(Et,ct){return ct===void 0?x(Et):Ce(x(Et),ct)},$e=function(Et){var ct=E(Et),ut=u(Re,this,ct);return this===Se&&f(ae,ct)&&!f(ve,ct)?!1:ut||!f(this,ct)||!f(ae,ct)||f(this,ce)&&this[ce][ct]?ut:!0},tt=function(Et,ct){var ut=b(Et),Ne=E(ct);if(!(ut===Se&&f(ae,Ne)&&!f(ve,Ne))){var mt=Ge(ut,Ne);return mt&&f(ae,Ne)&&!(f(ut,ce)&&ut[ce][Ne])&&(mt.enumerable=!0),mt}},ke=function(Et){var ct=nt(b(Et)),ut=[];return pe(ct,function(Ne){!f(ae,Ne)&&!f(Z,Ne)&&ue(ut,Ne)}),ut},Oe=function(je){var Et=je===Se,ct=nt(Et?ve:b(je)),ut=[];return pe(ct,function(Ne){f(ae,Ne)&&(!Et||f(Se,Ne))&&ue(ut,ae[Ne])}),ut};p||(he=function(){if(g(me,this))throw _e("Symbol is not a constructor");var Et=!arguments.length||arguments[0]===void 0?void 0:S(arguments[0]),ct=J(Et),ut=function(Ne){this===Se&&u(ut,ve,Ne),f(this,ce)&&f(this[ce],ct)&&(this[ce][ct]=!1),qe(this,ct,w(1,Ne))};return h&&Ye&&qe(Se,ct,{configurable:!0,set:ut}),At(ct,Et)},me=he[te],W(me,"toString",function(){return fe(this).tag}),W(he,"withoutSetter",function(je){return At(J(je),je)}),_.f=$e,N.f=It,K.f=Ce,I.f=tt,R.f=T.f=ke,A.f=Oe,L.f=function(je){return At(q(je),je)},h&&(j(me,"description",{configurable:!0,get:function(){return fe(this).description}}),l||W(Se,"propertyIsEnumerable",$e,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!p,sham:!p},{Symbol:he}),pe(P(Me),function(je){$(je)}),i({target:G,stat:!0,forced:!p},{useSetter:function(){Ye=!0},useSimple:function(){Ye=!1}}),i({target:"Object",stat:!0,forced:!p,sham:!h},{create:Ae,defineProperty:It,defineProperties:Ce,getOwnPropertyDescriptor:tt}),i({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:ke}),k(),F(he,G),Z[ce]=!0},47101:(C,c,t)=>{"use strict";var i=t(83846),s=t(77022),u=t(75866),v=t(55740),l=t(15275),h=t(2714),p=t(720),d=t(36722),f=t(74066),g=t(11599),y=u.Symbol,b=y&&y.prototype;if(s&&h(y)&&(!("description"in b)||y().description!==void 0)){var E={},S=function(){var N=arguments.length<1||arguments[0]===void 0?void 0:d(arguments[0]),K=p(b,this)?new y(N):N===void 0?y():y(N);return N===""&&(E[K]=!0),K};g(S,y),S.prototype=b,b.constructor=S;var w=String(y("test"))=="Symbol(test)",x=v(b.valueOf),P=v(b.toString),R=/^Symbol\((.*)\)[^)]+$/,T=v("".replace),A=v("".slice);f(b,"description",{configurable:!0,get:function(){var N=x(this);if(l(E,N))return"";var K=P(N),_=w?A(K,7,-1):T(K,R,"$1");return _===""?void 0:_}}),i({global:!0,constructor:!0,forced:!0},{Symbol:S})}},84326:(C,c,t)=>{var i=t(83846),s=t(90731),u=t(15275),v=t(36722),l=t(14232),h=t(47009),p=l("string-to-symbol-registry"),d=l("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!h},{for:function(f){var g=v(f);if(u(p,g))return p[g];var y=s("Symbol")(g);return p[g]=y,d[y]=g,y}})},70669:(C,c,t)=>{var i=t(34729);i("hasInstance")},34007:(C,c,t)=>{var i=t(34729);i("isConcatSpreadable")},73472:(C,c,t)=>{var i=t(34729);i("iterator")},40150:(C,c,t)=>{t(67410),t(84326),t(71843),t(34939),t(6928)},71843:(C,c,t)=>{var i=t(83846),s=t(15275),u=t(14566),v=t(70369),l=t(14232),h=t(47009),p=l("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!h},{keyFor:function(f){if(!u(f))throw TypeError(v(f)+" is not a symbol");if(s(p,f))return p[f]}})},34680:(C,c,t)=>{var i=t(34729);i("matchAll")},43910:(C,c,t)=>{var i=t(34729);i("match")},50344:(C,c,t)=>{var i=t(34729);i("replace")},18778:(C,c,t)=>{var i=t(34729);i("search")},25190:(C,c,t)=>{var i=t(34729);i("species")},87054:(C,c,t)=>{var i=t(34729);i("split")},68641:(C,c,t)=>{var i=t(34729),s=t(48594);i("toPrimitive"),s()},22523:(C,c,t)=>{var i=t(90731),s=t(34729),u=t(61817);s("toStringTag"),u(i("Symbol"),"Symbol")},30115:(C,c,t)=>{var i=t(34729);i("unscopables")},25186:(C,c,t)=>{"use strict";var i=t(91390),s=t(84349),u=t(46226),v=i.aTypedArray,l=i.exportTypedArrayMethod;l("at",function(p){var d=v(this),f=s(d),g=u(p),y=g>=0?g:f+g;return y<0||y>=f?void 0:d[y]})},21725:(C,c,t)=>{"use strict";var i=t(55740),s=t(91390),u=t(91824),v=i(u),l=s.aTypedArray,h=s.exportTypedArrayMethod;h("copyWithin",function(d,f){return v(l(this),d,f,arguments.length>2?arguments[2]:void 0)})},48794:(C,c,t)=>{"use strict";var i=t(91390),s=t(45742).every,u=i.aTypedArray,v=i.exportTypedArrayMethod;v("every",function(h){return s(u(this),h,arguments.length>1?arguments[1]:void 0)})},16007:(C,c,t)=>{"use strict";var i=t(91390),s=t(43691),u=t(30962),v=t(17766),l=t(99760),h=t(55740),p=t(97898),d=i.aTypedArray,f=i.exportTypedArrayMethod,g=h("".slice),y=p(function(){var b=0;return new Int8Array(2).fill({valueOf:function(){return b++}}),b!==1});f("fill",function(E){var S=arguments.length;d(this);var w=g(v(this),0,3)==="Big"?u(E):+E;return l(s,this,w,S>1?arguments[1]:void 0,S>2?arguments[2]:void 0)},y)},90244:(C,c,t)=>{"use strict";var i=t(91390),s=t(45742).filter,u=t(87045),v=i.aTypedArray,l=i.exportTypedArrayMethod;l("filter",function(p){var d=s(v(this),p,arguments.length>1?arguments[1]:void 0);return u(this,d)})},51901:(C,c,t)=>{"use strict";var i=t(91390),s=t(45742).findIndex,u=i.aTypedArray,v=i.exportTypedArrayMethod;v("findIndex",function(h){return s(u(this),h,arguments.length>1?arguments[1]:void 0)})},25288:(C,c,t)=>{"use strict";var i=t(91390),s=t(60924).findLastIndex,u=i.aTypedArray,v=i.exportTypedArrayMethod;v("findLastIndex",function(h){return s(u(this),h,arguments.length>1?arguments[1]:void 0)})},89626:(C,c,t)=>{"use strict";var i=t(91390),s=t(60924).findLast,u=i.aTypedArray,v=i.exportTypedArrayMethod;v("findLast",function(h){return s(u(this),h,arguments.length>1?arguments[1]:void 0)})},87124:(C,c,t)=>{"use strict";var i=t(91390),s=t(45742).find,u=i.aTypedArray,v=i.exportTypedArrayMethod;v("find",function(h){return s(u(this),h,arguments.length>1?arguments[1]:void 0)})},61454:(C,c,t)=>{var i=t(30677);i("Float32",function(s){return function(v,l,h){return s(this,v,l,h)}})},31887:(C,c,t)=>{var i=t(30677);i("Float64",function(s){return function(v,l,h){return s(this,v,l,h)}})},98761:(C,c,t)=>{"use strict";var i=t(91390),s=t(45742).forEach,u=i.aTypedArray,v=i.exportTypedArrayMethod;v("forEach",function(h){s(u(this),h,arguments.length>1?arguments[1]:void 0)})},77255:(C,c,t)=>{"use strict";var i=t(74118),s=t(91390).exportTypedArrayStaticMethod,u=t(49811);s("from",u,i)},20912:(C,c,t)=>{"use strict";var i=t(91390),s=t(66309).includes,u=i.aTypedArray,v=i.exportTypedArrayMethod;v("includes",function(h){return s(u(this),h,arguments.length>1?arguments[1]:void 0)})},9616:(C,c,t)=>{"use strict";var i=t(91390),s=t(66309).indexOf,u=i.aTypedArray,v=i.exportTypedArrayMethod;v("indexOf",function(h){return s(u(this),h,arguments.length>1?arguments[1]:void 0)})},46582:(C,c,t)=>{var i=t(30677);i("Int16",function(s){return function(v,l,h){return s(this,v,l,h)}})},70661:(C,c,t)=>{var i=t(30677);i("Int32",function(s){return function(v,l,h){return s(this,v,l,h)}})},93059:(C,c,t)=>{var i=t(30677);i("Int8",function(s){return function(v,l,h){return s(this,v,l,h)}})},62008:(C,c,t)=>{"use strict";var i=t(75866),s=t(97898),u=t(55740),v=t(91390),l=t(71322),h=t(70330),p=h("iterator"),d=i.Uint8Array,f=u(l.values),g=u(l.keys),y=u(l.entries),b=v.aTypedArray,E=v.exportTypedArrayMethod,S=d&&d.prototype,w=!s(function(){S[p].call([1])}),x=!!S&&S.values&&S[p]===S.values&&S.values.name==="values",P=function(){return f(b(this))};E("entries",function(){return y(b(this))},w),E("keys",function(){return g(b(this))},w),E("values",P,w||!x,{name:"values"}),E(p,P,w||!x,{name:"values"})},64972:(C,c,t)=>{"use strict";var i=t(91390),s=t(55740),u=i.aTypedArray,v=i.exportTypedArrayMethod,l=s([].join);v("join",function(p){return l(u(this),p)})},44601:(C,c,t)=>{"use strict";var i=t(91390),s=t(27630),u=t(53693),v=i.aTypedArray,l=i.exportTypedArrayMethod;l("lastIndexOf",function(p){var d=arguments.length;return s(u,v(this),d>1?[p,arguments[1]]:[p])})},34243:(C,c,t)=>{"use strict";var i=t(91390),s=t(45742).map,u=t(15399),v=i.aTypedArray,l=i.exportTypedArrayMethod;l("map",function(p){return s(v(this),p,arguments.length>1?arguments[1]:void 0,function(d,f){return new(u(d))(f)})})},33422:(C,c,t)=>{"use strict";var i=t(91390),s=t(74118),u=i.aTypedArrayConstructor,v=i.exportTypedArrayStaticMethod;v("of",function(){for(var h=0,p=arguments.length,d=new(u(this))(p);p>h;)d[h]=arguments[h++];return d},s)},1512:(C,c,t)=>{"use strict";var i=t(91390),s=t(81542).right,u=i.aTypedArray,v=i.exportTypedArrayMethod;v("reduceRight",function(h){var p=arguments.length;return s(u(this),h,p,p>1?arguments[1]:void 0)})},98499:(C,c,t)=>{"use strict";var i=t(91390),s=t(81542).left,u=i.aTypedArray,v=i.exportTypedArrayMethod;v("reduce",function(h){var p=arguments.length;return s(u(this),h,p,p>1?arguments[1]:void 0)})},57298:(C,c,t)=>{"use strict";var i=t(91390),s=i.aTypedArray,u=i.exportTypedArrayMethod,v=Math.floor;u("reverse",function(){for(var h=this,p=s(h).length,d=v(p/2),f=0,g;f<d;)g=h[f],h[f++]=h[--p],h[p]=g;return h})},18329:(C,c,t)=>{"use strict";var i=t(75866),s=t(99760),u=t(91390),v=t(84349),l=t(22398),h=t(9376),p=t(97898),d=i.RangeError,f=i.Int8Array,g=f&&f.prototype,y=g&&g.set,b=u.aTypedArray,E=u.exportTypedArrayMethod,S=!p(function(){var x=new Uint8ClampedArray(2);return s(y,x,{length:1,0:3},1),x[1]!==3}),w=S&&u.NATIVE_ARRAY_BUFFER_VIEWS&&p(function(){var x=new f(2);return x.set(1),x.set("2",1),x[0]!==0||x[1]!==2});E("set",function(P){b(this);var R=l(arguments.length>1?arguments[1]:void 0,1),T=h(P);if(S)return s(y,this,T,R);var A=this.length,I=v(T),N=0;if(I+R>A)throw d("Wrong length");for(;N<I;)this[R+N]=T[N++]},!S||w)},8006:(C,c,t)=>{"use strict";var i=t(91390),s=t(15399),u=t(97898),v=t(1723),l=i.aTypedArray,h=i.exportTypedArrayMethod,p=u(function(){new Int8Array(1).slice()});h("slice",function(f,g){for(var y=v(l(this),f,g),b=s(this),E=0,S=y.length,w=new b(S);S>E;)w[E]=y[E++];return w},p)},31882:(C,c,t)=>{"use strict";var i=t(91390),s=t(45742).some,u=i.aTypedArray,v=i.exportTypedArrayMethod;v("some",function(h){return s(u(this),h,arguments.length>1?arguments[1]:void 0)})},71036:(C,c,t)=>{"use strict";var i=t(75866),s=t(42716),u=t(97898),v=t(7319),l=t(31293),h=t(91390),p=t(68734),d=t(82952),f=t(76440),g=t(35401),y=h.aTypedArray,b=h.exportTypedArrayMethod,E=i.Uint16Array,S=E&&s(E.prototype.sort),w=!!S&&!(u(function(){S(new E(2),null)})&&u(function(){S(new E(2),{})})),x=!!S&&!u(function(){if(f)return f<74;if(p)return p<67;if(d)return!0;if(g)return g<602;var R=new E(516),T=Array(516),A,I;for(A=0;A<516;A++)I=A%4,R[A]=515-A,T[A]=A-2*I+3;for(S(R,function(N,K){return(N/4|0)-(K/4|0)}),A=0;A<516;A++)if(R[A]!==T[A])return!0}),P=function(R){return function(T,A){return R!==void 0?+R(T,A)||0:A!==A?-1:T!==T?1:T===0&&A===0?1/T>0&&1/A<0?1:-1:T>A}};b("sort",function(T){return T!==void 0&&v(T),x?S(this,T):l(y(this),P(T))},!x||w)},22958:(C,c,t)=>{"use strict";var i=t(91390),s=t(90161),u=t(49717),v=t(15399),l=i.aTypedArray,h=i.exportTypedArrayMethod;h("subarray",function(d,f){var g=l(this),y=g.length,b=u(d,y),E=v(g);return new E(g.buffer,g.byteOffset+b*g.BYTES_PER_ELEMENT,s((f===void 0?y:u(f,y))-b))})},11373:(C,c,t)=>{"use strict";var i=t(75866),s=t(27630),u=t(91390),v=t(97898),l=t(1723),h=i.Int8Array,p=u.aTypedArray,d=u.exportTypedArrayMethod,f=[].toLocaleString,g=!!h&&v(function(){f.call(new h(1))}),y=v(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!v(function(){h.prototype.toLocaleString.call([1,2])});d("toLocaleString",function(){return s(f,g?l(p(this)):p(this),l(arguments))},y)},60689:(C,c,t)=>{"use strict";var i=t(96612),s=t(91390),u=s.aTypedArray,v=s.exportTypedArrayMethod,l=s.getTypedArrayConstructor;v("toReversed",function(){return i(u(this),l(this))})},52506:(C,c,t)=>{"use strict";var i=t(91390),s=t(55740),u=t(7319),v=t(60925),l=i.aTypedArray,h=i.getTypedArrayConstructor,p=i.exportTypedArrayMethod,d=s(i.TypedArrayPrototype.sort);p("toSorted",function(g){g!==void 0&&u(g);var y=l(this),b=v(h(y),y);return d(b,g)})},20031:(C,c,t)=>{"use strict";var i=t(91390).exportTypedArrayMethod,s=t(97898),u=t(75866),v=t(55740),l=u.Uint8Array,h=l&&l.prototype||{},p=[].toString,d=v([].join);s(function(){p.call({})})&&(p=function(){return d(this)});var f=h.toString!=p;i("toString",p,f)},39723:(C,c,t)=>{var i=t(30677);i("Uint16",function(s){return function(v,l,h){return s(this,v,l,h)}})},34782:(C,c,t)=>{var i=t(30677);i("Uint32",function(s){return function(v,l,h){return s(this,v,l,h)}})},65962:(C,c,t)=>{var i=t(30677);i("Uint8",function(s){return function(v,l,h){return s(this,v,l,h)}})},46406:(C,c,t)=>{var i=t(30677);i("Uint8",function(s){return function(v,l,h){return s(this,v,l,h)}},!0)},12371:(C,c,t)=>{"use strict";var i=t(72632),s=t(91390),u=t(74054),v=t(46226),l=t(30962),h=s.aTypedArray,p=s.getTypedArrayConstructor,d=s.exportTypedArrayMethod,f=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(g){return g===8}}();d("with",function(g,y){var b=h(this),E=v(g),S=u(b)?l(y):+y;return i(b,p(b),E,S)},!f)},96074:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(36722),v=String.fromCharCode,l=s("".charAt),h=s(/./.exec),p=s("".slice),d=/^[\da-f]{2}$/i,f=/^[\da-f]{4}$/i;i({global:!0},{unescape:function(y){for(var b=u(y),E="",S=b.length,w=0,x,P;w<S;){if(x=l(b,w++),x==="%"){if(l(b,w)==="u"){if(P=p(b,w+1,w+5),h(f,P)){E+=v(parseInt(P,16)),w+=5;continue}}else if(P=p(b,w,w+2),h(d,P)){E+=v(parseInt(P,16)),w+=2;continue}}E+=x}return E}})},17252:(C,c,t)=>{"use strict";var i=t(36781),s=t(75866),u=t(55740),v=t(24372),l=t(62947),h=t(73199),p=t(70341),d=t(73091),f=t(45699).enforce,g=t(97898),y=t(73917),b=Object,E=Array.isArray,S=b.isExtensible,w=b.isFrozen,x=b.isSealed,P=b.freeze,R=b.seal,T={},A={},I=!s.ActiveXObject&&"ActiveXObject"in s,N,K=function(q){return function(){return q(this,arguments.length?arguments[0]:void 0)}},_=h("WeakMap",K,p),W=_.prototype,j=u(W.set),re=function(){return i&&g(function(){var q=P([]);return j(new _,q,1),!w(q)})};if(y)if(I){N=p.getConstructor(K,"WeakMap",!0),l.enable();var X=u(W.delete),Z=u(W.has),J=u(W.get);v(W,{delete:function(q){if(d(q)&&!S(q)){var L=f(this);return L.frozen||(L.frozen=new N),X(this,q)||L.frozen.delete(q)}return X(this,q)},has:function(L){if(d(L)&&!S(L)){var $=f(this);return $.frozen||($.frozen=new N),Z(this,L)||$.frozen.has(L)}return Z(this,L)},get:function(L){if(d(L)&&!S(L)){var $=f(this);return $.frozen||($.frozen=new N),Z(this,L)?J(this,L):$.frozen.get(L)}return J(this,L)},set:function(L,$){if(d(L)&&!S(L)){var k=f(this);k.frozen||(k.frozen=new N),Z(this,L)?j(this,L,$):k.frozen.set(L,$)}else j(this,L,$);return this}})}else re()&&v(W,{set:function(L,$){var k;return E(L)&&(w(L)?k=T:x(L)&&(k=A)),j(this,L,$),k==T&&P(L),k==A&&R(L),this}})},56894:(C,c,t)=>{t(17252)},91660:(C,c,t)=>{"use strict";var i=t(73199),s=t(70341);i("WeakSet",function(u){return function(){return u(this,arguments.length?arguments[0]:void 0)}},s)},48481:(C,c,t)=>{t(91660)},36681:(C,c,t)=>{t(98023)},96514:(C,c,t)=>{"use strict";var i=t(77022),s=t(74066),u=t(51734),v=ArrayBuffer.prototype;i&&!("detached"in v)&&s(v,"detached",{configurable:!0,get:function(){return u(this)}})},57251:(C,c,t)=>{"use strict";var i=t(83846),s=t(65967);s&&i({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return s(this,arguments.length?arguments[0]:void 0,!1)}})},15797:(C,c,t)=>{"use strict";var i=t(83846),s=t(65967);s&&i({target:"ArrayBuffer",proto:!0},{transfer:function(){return s(this,arguments.length?arguments[0]:void 0,!0)}})},12885:(C,c,t)=>{t(8846)},62500:(C,c,t)=>{"use strict";var i=t(83846),s=t(45742).filterReject,u=t(60596);i({target:"Array",proto:!0,forced:!0},{filterOut:function(l){return s(this,l,arguments.length>1?arguments[1]:void 0)}}),u("filterOut")},74989:(C,c,t)=>{"use strict";var i=t(83846),s=t(45742).filterReject,u=t(60596);i({target:"Array",proto:!0,forced:!0},{filterReject:function(l){return s(this,l,arguments.length>1?arguments[1]:void 0)}}),u("filterReject")},35846:(C,c,t)=>{t(38958)},55686:(C,c,t)=>{t(14979)},53671:(C,c,t)=>{var i=t(83846),s=t(25643);i({target:"Array",stat:!0},{fromAsync:s})},68242:(C,c,t)=>{var i=t(83846),s=t(57999),u=t(60596),v=t(54977),l=t(65259);i({target:"Array",proto:!0,name:"groupToMap",forced:l||!s("groupByToMap")},{groupByToMap:v}),u("groupByToMap")},972:(C,c,t)=>{"use strict";var i=t(83846),s=t(77377),u=t(57999),v=t(60596);i({target:"Array",proto:!0,forced:!u("groupBy")},{groupBy:function(h){var p=arguments.length>1?arguments[1]:void 0;return s(this,h,p)}}),v("groupBy")},97003:(C,c,t)=>{var i=t(83846),s=t(60596),u=t(54977),v=t(65259);i({target:"Array",proto:!0,forced:v},{groupToMap:u}),s("groupToMap")},501:(C,c,t)=>{"use strict";var i=t(83846),s=t(77377),u=t(60596);i({target:"Array",proto:!0},{group:function(l){var h=arguments.length>1?arguments[1]:void 0;return s(this,l,h)}}),u("group")},11780:(C,c,t)=>{var i=t(83846),s=t(7356),u=Object.isFrozen,v=function(l,h){if(!u||!s(l)||!u(l))return!1;for(var p=0,d=l.length,f;p<d;)if(f=l[p++],!(typeof f=="string"||h&&f===void 0))return!1;return d!==0};i({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(h){if(!v(h,!0))return!1;var p=h.raw;return p.length===h.length&&v(p,!1)}})},94780:(C,c,t)=>{"use strict";var i=t(77022),s=t(60596),u=t(9376),v=t(84349),l=t(74066);i&&(l(Array.prototype,"lastIndex",{configurable:!0,get:function(){var p=u(this),d=v(p);return d==0?0:d-1}}),s("lastIndex"))},78745:(C,c,t)=>{"use strict";var i=t(77022),s=t(60596),u=t(9376),v=t(84349),l=t(74066);i&&(l(Array.prototype,"lastItem",{configurable:!0,get:function(){var p=u(this),d=v(p);return d==0?void 0:p[d-1]},set:function(p){var d=u(this),f=v(d);return d[f==0?0:f-1]=p}}),s("lastItem"))},83678:(C,c,t)=>{t(20878)},66186:(C,c,t)=>{t(25520)},39515:(C,c,t)=>{t(42695)},81798:(C,c,t)=>{"use strict";var i=t(83846),s=t(60596),u=t(62081);i({target:"Array",proto:!0,forced:!0},{uniqueBy:u}),s("uniqueBy")},71127:(C,c,t)=>{t(75685)},85702:(C,c,t)=>{"use strict";var i=t(83846),s=t(77022),u=t(90731),v=t(7319),l=t(99385),h=t(76156),p=t(24372),d=t(74066),f=t(70330),g=t(45699),y=t(93050),b=u("Promise"),E=u("SuppressedError"),S=ReferenceError,w=f("asyncDispose"),x=f("toStringTag"),P="AsyncDisposableStack",R=g.set,T=g.getterFor(P),A="async-dispose",I="disposed",N="pending",K=function(j){var re=T(j);if(re.state==I)throw S(P+" already disposed");return re},_=function(){R(l(this,W),{type:P,state:N,stack:[]}),s||(this.disposed=!1)},W=_.prototype;p(W,{disposeAsync:function(){var re=this;return new b(function(X,Z){var J=T(re);if(J.state==I)return X(void 0);J.state=I,s||(re.disposed=!0);var q=J.stack,L=q.length,$=!1,k,F=function(pe){$?k=new E(pe,k):($=!0,k=pe),V()},V=function(){if(L){var pe=q[--L];q[L]=null;try{b.resolve(pe()).then(V,F)}catch(ce){F(ce)}}else J.stack=null,$?Z(k):X(void 0)};V()})},use:function(re){return y(K(this),re,A),re},adopt:function(re,X){var Z=K(this);return v(X),y(Z,void 0,A,function(){return X(re)}),re},defer:function(re){var X=K(this);v(re),y(X,void 0,A,re)},move:function(){var re=K(this),X=new _;return T(X).stack=re.stack,re.stack=[],re.state=I,s||(this.disposed=!0),X}}),s&&d(W,"disposed",{configurable:!0,get:function(){return T(this).state==I}}),h(W,w,W.disposeAsync,{name:"disposeAsync"}),h(W,x,P,{nonWritable:!0}),i({global:!0,constructor:!0,forced:!0},{AsyncDisposableStack:_})},66824:(C,c,t)=>{var i=t(83846),s=t(69553);i({target:"AsyncIterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:s})},90550:(C,c,t)=>{"use strict";var i=t(99760),s=t(76156),u=t(90731),v=t(83735),l=t(15275),h=t(70330),p=t(58013),d=h("asyncDispose"),f=u("Promise");l(p,d)||s(p,d,function(){var g=this;return new f(function(y,b){var E=v(g,"return");E?f.resolve(i(E,g)).then(function(){y(void 0)},b):y(void 0)})})},66049:(C,c,t)=>{"use strict";var i=t(83846),s=t(99385),u=t(37651),v=t(15275),l=t(70330),h=t(58013),p=t(65259),d=l("toStringTag"),f=function(){s(this,h)};f.prototype=h,v(h,d)||u(h,d,"AsyncIterator"),(p||!v(h,"constructor")||h.constructor===Object)&&u(h,"constructor",f),i({global:!0,constructor:!0,forced:p},{AsyncIterator:f})},69803:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(4630),v=t(21548),l=t(32091),h=t(32157),p=t(91509),d=t(14373),f=p(function(g){var y=this;return new g(function(b,E){var S=function(x){y.done=!0,E(x)},w=function(){try{g.resolve(u(s(y.next,y.iterator))).then(function(x){try{u(x).done?(y.done=!0,b(d(void 0,!0))):y.remaining?(y.remaining--,w()):b(d(x.value,!1))}catch(P){S(P)}},S)}catch(x){S(x)}};w()})});i({target:"AsyncIterator",proto:!0,real:!0},{drop:function(y){u(this);var b=h(l(+y));return new f(v(this),{remaining:b})}})},38370:(C,c,t)=>{"use strict";var i=t(83846),s=t(8992).every;i({target:"AsyncIterator",proto:!0,real:!0},{every:function(v){return s(this,v)}})},93273:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(7319),v=t(4630),l=t(73091),h=t(21548),p=t(91509),d=t(14373),f=t(55337),g=p(function(y){var b=this,E=b.iterator,S=b.predicate;return new y(function(w,x){var P=function(A){b.done=!0,x(A)},R=function(A){f(E,P,A,P)},T=function(){try{y.resolve(v(s(b.next,E))).then(function(A){try{if(v(A).done)b.done=!0,w(d(void 0,!0));else{var I=A.value;try{var N=S(I,b.counter++),K=function(_){_?w(d(I,!1)):T()};l(N)?y.resolve(N).then(K,R):K(N)}catch(_){R(_)}}}catch(_){P(_)}},P)}catch(A){P(A)}};T()})});i({target:"AsyncIterator",proto:!0,real:!0},{filter:function(b){return v(this),u(b),new g(h(this),{predicate:b})}})},43257:(C,c,t)=>{"use strict";var i=t(83846),s=t(8992).find;i({target:"AsyncIterator",proto:!0,real:!0},{find:function(v){return s(this,v)}})},85298:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(7319),v=t(4630),l=t(73091),h=t(21548),p=t(91509),d=t(14373),f=t(99168),g=t(55337),y=p(function(b){var E=this,S=E.iterator,w=E.mapper;return new b(function(x,P){var R=function(N){E.done=!0,P(N)},T=function(N){g(S,R,N,R)},A=function(){try{b.resolve(v(s(E.next,S))).then(function(N){try{if(v(N).done)E.done=!0,x(d(void 0,!0));else{var K=N.value;try{var _=w(K,E.counter++),W=function(j){try{E.inner=f(j),I()}catch(re){T(re)}};l(_)?b.resolve(_).then(W,T):W(_)}catch(j){T(j)}}}catch(j){R(j)}},R)}catch(N){R(N)}},I=function(){var N=E.inner;if(N)try{b.resolve(v(s(N.next,N.iterator))).then(function(K){try{v(K).done?(E.inner=null,A()):x(d(K.value,!1))}catch(_){T(_)}},T)}catch(K){T(K)}else A()};I()})});i({target:"AsyncIterator",proto:!0,real:!0},{flatMap:function(E){return v(this),u(E),new y(h(this),{mapper:E,inner:null})}})},95477:(C,c,t)=>{"use strict";var i=t(83846),s=t(8992).forEach;i({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(v){return s(this,v)}})},97812:(C,c,t)=>{var i=t(83846),s=t(9376),u=t(720),v=t(99168),l=t(58013),h=t(13400);i({target:"AsyncIterator",stat:!0},{from:function(d){var f=v(typeof d=="string"?s(d):d);return u(l,f.iterator)?f.iterator:new h(f)}})},97247:(C,c,t)=>{var i=t(83846),s=t(69553);i({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{indexed:s})},39088:(C,c,t)=>{var i=t(83846),s=t(580);i({target:"AsyncIterator",proto:!0,real:!0},{map:s})},26809:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(7319),v=t(4630),l=t(73091),h=t(90731),p=t(21548),d=t(55337),f=h("Promise"),g=TypeError;i({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(b){v(this),u(b);var E=p(this),S=E.iterator,w=E.next,x=arguments.length<2,P=x?void 0:arguments[1],R=0;return new f(function(T,A){var I=function(K){d(S,A,K,A)},N=function(){try{f.resolve(v(s(w,S))).then(function(K){try{if(v(K).done)x?A(g("Reduce of empty iterator with no initial value")):T(P);else{var _=K.value;if(x)x=!1,P=_,N();else try{var W=b(P,_,R),j=function(re){P=re,N()};l(W)?f.resolve(W).then(j,I):j(W)}catch(re){I(re)}}R++}catch(re){A(re)}},A)}catch(K){A(K)}};N()})}})},14728:(C,c,t)=>{"use strict";var i=t(83846),s=t(8992).some;i({target:"AsyncIterator",proto:!0,real:!0},{some:function(v){return s(this,v)}})},10581:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(4630),v=t(21548),l=t(32091),h=t(32157),p=t(91509),d=t(14373),f=p(function(g){var y=this,b=y.iterator,E;if(!y.remaining--){var S=d(void 0,!0);return y.done=!0,E=b.return,E!==void 0?g.resolve(s(E,b,void 0)).then(function(){return S}):S}return g.resolve(s(y.next,b)).then(function(w){return u(w).done?(y.done=!0,d(void 0,!0)):d(w.value,!1)}).then(null,function(w){throw y.done=!0,w})});i({target:"AsyncIterator",proto:!0,real:!0},{take:function(y){u(this);var b=h(l(+y));return new f(v(this),{remaining:b})}})},21689:(C,c,t)=>{"use strict";var i=t(83846),s=t(8992).toArray;i({target:"AsyncIterator",proto:!0,real:!0},{toArray:function(){return s(this,void 0,[])}})},52267:(C,c,t)=>{"use strict";var i=t(83846),s=t(80359);typeof BigInt=="function"&&i({target:"BigInt",stat:!0,forced:!0},{range:function(v,l,h){return new s(v,l,h,"bigint",BigInt(0),BigInt(1))}})},17911:(C,c,t)=>{var i=t(83846),s=t(27630),u=t(43726),v=t(90731),l=t(69735),h=Object,p=function(){var d=v("Object","freeze");return d?d(l(null)):l(null)};i({global:!0,forced:!0},{compositeKey:function(){return s(u,h,arguments).get("object",p)}})},61569:(C,c,t)=>{var i=t(83846),s=t(43726),u=t(90731),v=t(27630);i({global:!0,forced:!0},{compositeSymbol:function(){return arguments.length==1&&typeof arguments[0]=="string"?u("Symbol").for(arguments[0]):v(s,null,arguments).get("symbol",u("Symbol"))}})},2618:(C,c,t)=>{"use strict";var i=t(83846),s=t(77022),u=t(90731),v=t(7319),l=t(99385),h=t(76156),p=t(24372),d=t(74066),f=t(70330),g=t(45699),y=t(93050),b=u("SuppressedError"),E=ReferenceError,S=f("dispose"),w=f("toStringTag"),x="DisposableStack",P=g.set,R=g.getterFor(x),T="sync-dispose",A="disposed",I="pending",N=function(W){var j=R(W);if(j.state==A)throw E(x+" already disposed");return j},K=function(){P(l(this,_),{type:x,state:I,stack:[]}),s||(this.disposed=!1)},_=K.prototype;p(_,{dispose:function(){var j=R(this);if(j.state!=A){j.state=A,s||(this.disposed=!0);for(var re=j.stack,X=re.length,Z=!1,J;X;){var q=re[--X];re[X]=null;try{q()}catch(L){Z?J=new b(L,J):(Z=!0,J=L)}}if(j.stack=null,Z)throw J}},use:function(j){return y(N(this),j,T),j},adopt:function(j,re){var X=N(this);return v(re),y(X,void 0,T,function(){re(j)}),j},defer:function(j){var re=N(this);v(j),y(re,void 0,T,j)},move:function(){var j=N(this),re=new K;return R(re).stack=j.stack,j.stack=[],j.state=A,s||(this.disposed=!0),re}}),s&&d(_,"disposed",{configurable:!0,get:function(){return R(this).state==A}}),h(_,S,_.dispose,{name:"dispose"}),h(_,w,x,{nonWritable:!0}),i({global:!0,constructor:!0},{DisposableStack:K})},9962:(C,c,t)=>{var i=t(83846),s=t(34352);i({target:"Function",proto:!0,forced:!0},{demethodize:s})},24111:(C,c,t)=>{var i=t(83846),s=t(55740),u=t(2714),v=t(46107),l=t(15275),h=t(77022),p=Object.getOwnPropertyDescriptor,d=/^\s*class\b/,f=s(d.exec),g=function(y){try{if(!h||!f(d,v(y)))return!1}catch{}var b=p(y,"prototype");return!!b&&l(b,"writable")&&!b.writable};i({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(b){return u(b)&&!g(b)}})},37585:(C,c,t)=>{var i=t(83846),s=t(53582);i({target:"Function",stat:!0,forced:!0},{isConstructor:s})},80965:(C,c,t)=>{var i=t(70330),s=t(56768).f,u=i("metadata"),v=Function.prototype;v[u]===void 0&&s(v,u,{value:null})},55878:(C,c,t)=>{var i=t(83846),s=t(34352);i({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:s})},2750:(C,c,t)=>{t(55153)},89149:(C,c,t)=>{var i=t(83846),s=t(81840);i({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:s})},46478:(C,c,t)=>{"use strict";var i=t(83846),s=t(75866),u=t(99385),v=t(2714),l=t(37651),h=t(97898),p=t(15275),d=t(70330),f=t(7244).IteratorPrototype,g=t(65259),y=d("toStringTag"),b=s.Iterator,E=g||!v(b)||b.prototype!==f||!h(function(){b({})}),S=function(){u(this,f)};p(f,y)||l(f,y,"Iterator"),(E||!p(f,"constructor")||f.constructor===Object)&&l(f,"constructor",S),S.prototype=f,i({global:!0,constructor:!0,forced:E},{Iterator:S})},49009:(C,c,t)=>{"use strict";var i=t(99760),s=t(76156),u=t(83735),v=t(15275),l=t(70330),h=t(7244).IteratorPrototype,p=l("dispose");v(h,p)||s(h,p,function(){var d=u(this,"return");d&&i(d,this)})},15078:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(4630),v=t(21548),l=t(32091),h=t(32157),p=t(28688),d=p(function(){for(var f=this.iterator,g=this.next,y,b;this.remaining;)if(this.remaining--,y=u(s(g,f)),b=this.done=!!y.done,b)return;if(y=u(s(g,f)),b=this.done=!!y.done,!b)return y.value});i({target:"Iterator",proto:!0,real:!0},{drop:function(g){u(this);var y=h(l(+g));return new d(v(this),{remaining:y})}})},45697:(C,c,t)=>{"use strict";var i=t(83846),s=t(86543),u=t(7319),v=t(4630),l=t(21548);i({target:"Iterator",proto:!0,real:!0},{every:function(p){v(this),u(p);var d=l(this),f=0;return!s(d,function(g,y){if(!p(g,f++))return y()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},96550:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(7319),v=t(4630),l=t(21548),h=t(28688),p=t(19939),d=h(function(){for(var f=this.iterator,g=this.predicate,y=this.next,b,E,S;;){if(b=v(s(y,f)),E=this.done=!!b.done,E)return;if(S=b.value,p(f,g,[S,this.counter++],!0))return S}});i({target:"Iterator",proto:!0,real:!0},{filter:function(g){return v(this),u(g),new d(l(this),{predicate:g})}})},10317:(C,c,t)=>{"use strict";var i=t(83846),s=t(86543),u=t(7319),v=t(4630),l=t(21548);i({target:"Iterator",proto:!0,real:!0},{find:function(p){v(this),u(p);var d=l(this),f=0;return s(d,function(g,y){if(p(g,f++))return y(g)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},11634:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(7319),v=t(4630),l=t(21548),h=t(89118),p=t(28688),d=t(74765),f=p(function(){for(var g=this.iterator,y=this.mapper,b,E;;){if(E=this.inner)try{if(b=v(s(E.next,E.iterator)),!b.done)return b.value;this.inner=null}catch(S){d(g,"throw",S)}if(b=v(s(this.next,g)),this.done=!!b.done)return;try{this.inner=h(y(b.value,this.counter++))}catch(S){d(g,"throw",S)}}});i({target:"Iterator",proto:!0,real:!0},{flatMap:function(y){return v(this),u(y),new f(l(this),{mapper:y,inner:null})}})},205:(C,c,t)=>{"use strict";var i=t(83846),s=t(86543),u=t(7319),v=t(4630),l=t(21548);i({target:"Iterator",proto:!0,real:!0},{forEach:function(p){v(this),u(p);var d=l(this),f=0;s(d,function(g){p(g,f++)},{IS_RECORD:!0})}})},38405:(C,c,t)=>{var i=t(83846),s=t(99760),u=t(9376),v=t(720),l=t(7244).IteratorPrototype,h=t(28688),p=t(89118),d=h(function(){return s(this.next,this.iterator)},!0);i({target:"Iterator",stat:!0},{from:function(g){var y=p(typeof g=="string"?u(g):g);return v(l,y.iterator)?y.iterator:new d(y)}})},20309:(C,c,t)=>{var i=t(83846),s=t(81840);i({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:s})},7183:(C,c,t)=>{var i=t(83846),s=t(27013);i({target:"Iterator",proto:!0,real:!0},{map:s})},46305:(C,c,t)=>{"use strict";var i=t(83846),s=t(80359),u=TypeError;i({target:"Iterator",stat:!0,forced:!0},{range:function(l,h,p){if(typeof l=="number")return new s(l,h,p,"number",0,1);if(typeof l=="bigint")return new s(l,h,p,"bigint",BigInt(0),BigInt(1));throw u("Incorrect Iterator.range arguments")}})},16792:(C,c,t)=>{"use strict";var i=t(83846),s=t(86543),u=t(7319),v=t(4630),l=t(21548),h=TypeError;i({target:"Iterator",proto:!0,real:!0},{reduce:function(d){v(this),u(d);var f=l(this),g=arguments.length<2,y=g?void 0:arguments[1],b=0;if(s(f,function(E){g?(g=!1,y=E):y=d(y,E,b),b++},{IS_RECORD:!0}),g)throw h("Reduce of empty iterator with no initial value");return y}})},10463:(C,c,t)=>{"use strict";var i=t(83846),s=t(86543),u=t(7319),v=t(4630),l=t(21548);i({target:"Iterator",proto:!0,real:!0},{some:function(p){v(this),u(p);var d=l(this),f=0;return s(d,function(g,y){if(p(g,f++))return y()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},78024:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(4630),v=t(21548),l=t(32091),h=t(32157),p=t(28688),d=t(74765),f=p(function(){var g=this.iterator;if(!this.remaining--)return this.done=!0,d(g,"normal",void 0);var y=u(s(this.next,g)),b=this.done=!!y.done;if(!b)return y.value});i({target:"Iterator",proto:!0,real:!0},{take:function(y){u(this);var b=h(l(+y));return new f(v(this),{remaining:b})}})},87155:(C,c,t)=>{"use strict";var i=t(83846),s=t(4630),u=t(86543),v=t(21548),l=[].push;i({target:"Iterator",proto:!0,real:!0},{toArray:function(){var p=[];return u(v(s(this)),l,{that:p,IS_RECORD:!0}),p}})},81669:(C,c,t)=>{"use strict";var i=t(83846),s=t(4630),u=t(73247),v=t(13400),l=t(21548);i({target:"Iterator",proto:!0,real:!0},{toAsync:function(){return new v(l(new u(l(s(this)))))}})},87722:(C,c,t)=>{var i=t(83846),s=t(90133),u=t(99888);i({target:"JSON",stat:!0,forced:!s},{isRawJSON:u})},19538:(C,c,t)=>{"use strict";var i=t(83846),s=t(77022),u=t(75866),v=t(90731),l=t(55740),h=t(99760),p=t(2714),d=t(73091),f=t(7356),g=t(15275),y=t(36722),b=t(84349),E=t(50932),S=t(97898),w=t(77676),x=t(48726),P=u.JSON,R=u.Number,T=u.SyntaxError,A=P&&P.parse,I=v("Object","keys"),N=Object.getOwnPropertyDescriptor,K=l("".charAt),_=l("".slice),W=l(/./.exec),j=l([].push),re=/^\d$/,X=/^[1-9]$/,Z=/^(-|\d)$/,J=/^[\t\n\r ]$/,q=0,L=1,$=function(te,ie){te=y(te);var fe=new pe(te,0,""),Se=fe.parse(),he=Se.value,me=fe.skip(J,Se.end);if(me<te.length)throw T('Unexpected extra character: "'+K(te,me)+'" after the parsed data at: '+me);return p(ie)?k({"":he},"",ie,Se):he},k=function(te,ie,fe,Se){var he=te[ie],me=Se&&he===Se.value,_e=me&&typeof Se.source=="string"?{source:Se.source}:{},we,Ge,ht,nt,Re;if(d(he)){var ue=f(he),ae=me?Se.nodes:ue?[]:{};if(ue)for(we=ae.length,ht=b(he),nt=0;nt<ht;nt++)F(he,nt,k(he,""+nt,fe,nt<we?ae[nt]:void 0));else for(Ge=I(he),ht=b(Ge),nt=0;nt<ht;nt++)Re=Ge[nt],F(he,Re,k(he,Re,fe,g(ae,Re)?ae[Re]:void 0))}return h(fe,te,ie,he,_e)},F=function(te,ie,fe){if(s){var Se=N(te,ie);if(Se&&!Se.configurable)return}fe===void 0?delete te[ie]:E(te,ie,fe)},V=function(te,ie,fe,Se){this.value=te,this.end=ie,this.source=fe,this.nodes=Se},pe=function(te,ie){this.source=te,this.index=ie};pe.prototype={fork:function(te){return new pe(this.source,te)},parse:function(){var te=this.source,ie=this.skip(J,this.index),fe=this.fork(ie),Se=K(te,ie);if(W(Z,Se))return fe.number();switch(Se){case"{":return fe.object();case"[":return fe.array();case'"':return fe.string();case"t":return fe.keyword(!0);case"f":return fe.keyword(!1);case"n":return fe.keyword(null)}throw T('Unexpected character: "'+Se+'" at: '+ie)},node:function(te,ie,fe,Se,he){return new V(ie,Se,te?null:_(this.source,fe,Se),he)},object:function(){for(var te=this.source,ie=this.index+1,fe=!1,Se={},he={};ie<te.length;){if(ie=this.until(['"',"}"],ie),K(te,ie)=="}"&&!fe){ie++;break}var me=this.fork(ie).string(),_e=me.value;ie=me.end,ie=this.until([":"],ie)+1,ie=this.skip(J,ie),me=this.fork(ie).parse(),E(he,_e,me),E(Se,_e,me.value),ie=this.until([",","}"],me.end);var we=K(te,ie);if(we==",")fe=!0,ie++;else if(we=="}"){ie++;break}}return this.node(L,Se,this.index,ie,he)},array:function(){for(var te=this.source,ie=this.index+1,fe=!1,Se=[],he=[];ie<te.length;){if(ie=this.skip(J,ie),K(te,ie)=="]"&&!fe){ie++;break}var me=this.fork(ie).parse();if(j(he,me),j(Se,me.value),ie=this.until([",","]"],me.end),K(te,ie)==",")fe=!0,ie++;else if(K(te,ie)=="]"){ie++;break}}return this.node(L,Se,this.index,ie,he)},string:function(){var te=this.index,ie=w(this.source,this.index+1);return this.node(q,ie.value,te,ie.end)},number:function(){var te=this.source,ie=this.index,fe=ie;if(K(te,fe)=="-"&&fe++,K(te,fe)=="0")fe++;else if(W(X,K(te,fe)))fe=this.skip(re,++fe);else throw T("Failed to parse number at: "+fe);if(K(te,fe)=="."&&(fe=this.skip(re,++fe)),K(te,fe)=="e"||K(te,fe)=="E"){fe++,(K(te,fe)=="+"||K(te,fe)=="-")&&fe++;var Se=fe;if(fe=this.skip(re,fe),Se==fe)throw T("Failed to parse number's exponent value at: "+fe)}return this.node(q,R(_(te,ie,fe)),ie,fe)},keyword:function(te){var ie=""+te,fe=this.index,Se=fe+ie.length;if(_(this.source,fe,Se)!=ie)throw T("Failed to parse value at: "+fe);return this.node(q,te,fe,Se)},skip:function(te,ie){for(var fe=this.source;ie<fe.length&&W(te,K(fe,ie));ie++);return ie},until:function(te,ie){ie=this.skip(J,ie);for(var fe=K(this.source,ie),Se=0;Se<te.length;Se++)if(te[Se]==fe)return ie;throw T('Unexpected character: "'+fe+'" at: '+ie)}};var ce=S(function(){var te="9007199254740993",ie;return A(te,function(fe,Se,he){ie=he.source}),ie!==te}),G=x&&!S(function(){return 1/A("-0 ")!==-1/0});i({target:"JSON",stat:!0,forced:ce},{parse:function(ie,fe){return G&&!p(fe)?A(ie):$(ie,fe)}})},77550:(C,c,t)=>{"use strict";var i=t(83846),s=t(36781),u=t(90133),v=t(90731),l=t(99760),h=t(55740),p=t(2714),d=t(99888),f=t(36722),g=t(50932),y=t(77676),b=t(22961),E=t(8499),S=t(45699).set,w=String,x=SyntaxError,P=v("JSON","parse"),R=v("JSON","stringify"),T=v("Object","create"),A=v("Object","freeze"),I=h("".charAt),N=h("".slice),K=h(/./.exec),_=h([].push),W=E(),j=W.length,re="Unacceptable as raw JSON",X=/^[\t\n\r ]$/;i({target:"JSON",stat:!0,forced:!u},{rawJSON:function(J){var q=f(J);if(q==""||K(X,I(q,0))||K(X,I(q,q.length-1)))throw x(re);var L=P(q);if(typeof L=="object"&&L!==null)throw x(re);var $=T(null);return S($,{type:"RawJSON"}),g($,"rawJSON",q),s?A($):$}}),R&&i({target:"JSON",stat:!0,arity:3,forced:!u},{stringify:function(J,q,L){var $=b(q),k=[],F=R(J,function(fe,Se){var he=p($)?l($,this,w(fe),Se):Se;return d(he)?W+(_(k,he.rawJSON)-1):he},L);if(typeof F!="string")return F;for(var V="",pe=F.length,ce=0;ce<pe;ce++){var G=I(F,ce);if(G=='"'){var te=y(F,++ce).end-1,ie=N(F,ce,te);V+=N(ie,0,j)==W?k[N(ie,j)]:'"'+ie+'"',ce=te}else V+=G}return V}})},19521:(C,c,t)=>{"use strict";var i=t(83846),s=t(16098),u=t(53033).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var l=s(this),h=!0,p,d=0,f=arguments.length;d<f;d++)p=u(l,arguments[d]),h=h&&p;return!!h}})},96054:(C,c,t)=>{"use strict";var i=t(83846),s=t(16098),u=t(53033),v=u.get,l=u.has,h=u.set;i({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(d,f){var g=s(this),y,b;return l(g,d)?(y=v(g,d),"update"in f&&(y=f.update(y,d,g),h(g,d,y)),y):(b=f.insert(d,g),h(g,d,b),b)}})},32775:(C,c,t)=>{"use strict";var i=t(83846),s=t(31642),u=t(16098),v=t(58448);i({target:"Map",proto:!0,real:!0,forced:!0},{every:function(h){var p=u(this),d=s(h,arguments.length>1?arguments[1]:void 0);return v(p,function(f,g){if(!d(f,g,p))return!1},!0)!==!1}})},58869:(C,c,t)=>{"use strict";var i=t(83846),s=t(31642),u=t(16098),v=t(53033),l=t(58448),h=v.Map,p=v.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(f){var g=u(this),y=s(f,arguments.length>1?arguments[1]:void 0),b=new h;return l(g,function(E,S){y(E,S,g)&&p(b,S,E)}),b}})},85395:(C,c,t)=>{"use strict";var i=t(83846),s=t(31642),u=t(16098),v=t(58448);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(h){var p=u(this),d=s(h,arguments.length>1?arguments[1]:void 0),f=v(p,function(g,y){if(d(g,y,p))return{key:y}},!0);return f&&f.key}})},81434:(C,c,t)=>{"use strict";var i=t(83846),s=t(31642),u=t(16098),v=t(58448);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(h){var p=u(this),d=s(h,arguments.length>1?arguments[1]:void 0),f=v(p,function(g,y){if(d(g,y,p))return{value:g}},!0);return f&&f.value}})},32681:(C,c,t)=>{var i=t(83846),s=t(54890);i({target:"Map",stat:!0,forced:!0},{from:s})},19485:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(7319),v=t(38213),l=t(86543),h=t(53033),p=h.Map,d=h.has,f=h.get,g=h.set,y=s([].push);i({target:"Map",stat:!0,forced:!0},{groupBy:function(E,S){v(E),u(S);var w=new p,x=0;return l(E,function(P){var R=S(P,x++);d(w,R)?y(f(w,R),P):g(w,R,[P])}),w}})},92674:(C,c,t)=>{"use strict";var i=t(83846),s=t(8046),u=t(16098),v=t(58448);i({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(h){return v(u(this),function(p){if(s(p,h))return!0},!0)===!0}})},46267:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(86543),v=t(2714),l=t(7319),h=t(53033).Map;i({target:"Map",stat:!0,forced:!0},{keyBy:function(d,f){var g=v(this)?this:h,y=new g;l(f);var b=l(y.set);return u(d,function(E){s(b,y,f(E),E)}),y}})},81485:(C,c,t)=>{"use strict";var i=t(83846),s=t(16098),u=t(58448);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(l){var h=u(s(this),function(p,d){if(p===l)return{key:d}},!0);return h&&h.key}})},28698:(C,c,t)=>{"use strict";var i=t(83846),s=t(31642),u=t(16098),v=t(53033),l=t(58448),h=v.Map,p=v.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(f){var g=u(this),y=s(f,arguments.length>1?arguments[1]:void 0),b=new h;return l(g,function(E,S){p(b,y(E,S,g),E)}),b}})},70211:(C,c,t)=>{"use strict";var i=t(83846),s=t(31642),u=t(16098),v=t(53033),l=t(58448),h=v.Map,p=v.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(f){var g=u(this),y=s(f,arguments.length>1?arguments[1]:void 0),b=new h;return l(g,function(E,S){p(b,S,y(E,S,g))}),b}})},15102:(C,c,t)=>{"use strict";var i=t(83846),s=t(16098),u=t(86543),v=t(53033).set;i({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(h){for(var p=s(this),d=arguments.length,f=0;f<d;)u(arguments[f++],function(g,y){v(p,g,y)},{AS_ENTRIES:!0});return p}})},42870:(C,c,t)=>{var i=t(83846),s=t(34781);i({target:"Map",stat:!0,forced:!0},{of:s})},30833:(C,c,t)=>{"use strict";var i=t(83846),s=t(7319),u=t(16098),v=t(58448),l=TypeError;i({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(p){var d=u(this),f=arguments.length<2,g=f?void 0:arguments[1];if(s(p),v(d,function(y,b){f?(f=!1,g=y):g=p(g,y,b,d)}),f)throw l("Reduce of empty map with no initial value");return g}})},45294:(C,c,t)=>{"use strict";var i=t(83846),s=t(31642),u=t(16098),v=t(58448);i({target:"Map",proto:!0,real:!0,forced:!0},{some:function(h){var p=u(this),d=s(h,arguments.length>1?arguments[1]:void 0);return v(p,function(f,g){if(d(f,g,p))return!0},!0)===!0}})},11502:(C,c,t)=>{"use strict";var i=t(83846),s=t(28241);i({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:s})},82966:(C,c,t)=>{"use strict";var i=t(83846),s=t(7319),u=t(16098),v=t(53033),l=TypeError,h=v.get,p=v.has,d=v.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(g,y){var b=u(this),E=arguments.length;s(y);var S=p(b,g);if(!S&&E<3)throw l("Updating absent value");var w=S?h(b,g):s(E>2?arguments[2]:void 0)(g,b);return d(b,g,y(w,g,b)),b}})},63603:(C,c,t)=>{"use strict";var i=t(83846),s=t(28241);i({target:"Map",proto:!0,real:!0,forced:!0},{upsert:s})},25547:(C,c,t)=>{var i=t(83846),s=Math.min,u=Math.max;i({target:"Math",stat:!0,forced:!0},{clamp:function(l,h,p){return s(p,u(h,l))}})},15660:(C,c,t)=>{var i=t(83846);i({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},7308:(C,c,t)=>{var i=t(83846),s=180/Math.PI;i({target:"Math",stat:!0,forced:!0},{degrees:function(v){return v*s}})},70428:(C,c,t)=>{var i=t(83846),s=t(76373),u=t(57488);i({target:"Math",stat:!0,forced:!0},{fscale:function(l,h,p,d,f){return u(s(l,h,p,d,f))}})},7785:(C,c,t)=>{var i=t(83846);i({target:"Math",stat:!0,forced:!0},{iaddh:function(u,v,l,h){var p=u>>>0,d=v>>>0,f=l>>>0;return d+(h>>>0)+((p&f|(p|f)&~(p+f>>>0))>>>31)|0}})},4587:(C,c,t)=>{var i=t(83846);i({target:"Math",stat:!0,forced:!0},{imulh:function(u,v){var l=65535,h=+u,p=+v,d=h&l,f=p&l,g=h>>16,y=p>>16,b=(g*f>>>0)+(d*f>>>16);return g*y+(b>>16)+((d*y>>>0)+(b&l)>>16)}})},47161:(C,c,t)=>{var i=t(83846);i({target:"Math",stat:!0,forced:!0},{isubh:function(u,v,l,h){var p=u>>>0,d=v>>>0,f=l>>>0;return d-(h>>>0)-((~p&f|~(p^f)&p-f>>>0)>>>31)|0}})},70107:(C,c,t)=>{var i=t(83846);i({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},76091:(C,c,t)=>{var i=t(83846),s=Math.PI/180;i({target:"Math",stat:!0,forced:!0},{radians:function(v){return v*s}})},71735:(C,c,t)=>{var i=t(83846),s=t(76373);i({target:"Math",stat:!0,forced:!0},{scale:s})},58202:(C,c,t)=>{var i=t(83846),s=t(4630),u=t(30640),v=t(56561),l=t(14373),h=t(45699),p="Seeded Random",d=p+" Generator",f='Math.seededPRNG() argument should have a "seed" field with a finite value.',g=h.set,y=h.getterFor(d),b=TypeError,E=v(function(w){g(this,{type:d,seed:w%2147483647})},p,function(){var w=y(this),x=w.seed=(w.seed*1103515245+12345)%2147483647;return l((x&1073741823)/1073741823,!1)});i({target:"Math",stat:!0,forced:!0},{seededPRNG:function(w){var x=s(w).seed;if(!u(x))throw b(f);return new E(x)}})},5901:(C,c,t)=>{var i=t(83846);i({target:"Math",stat:!0,forced:!0},{signbit:function(u){var v=+u;return v==v&&v==0?1/v==-1/0:v<0}})},493:(C,c,t)=>{var i=t(83846);i({target:"Math",stat:!0,forced:!0},{umulh:function(u,v){var l=65535,h=+u,p=+v,d=h&l,f=p&l,g=h>>>16,y=p>>>16,b=(g*f>>>0)+(d*f>>>16);return g*y+(b>>>16)+((d*y>>>0)+(b&l)>>>16)}})},7581:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(46226),v=t(44524),l="Invalid number representation",h="Invalid radix",p=RangeError,d=SyntaxError,f=TypeError,g=/^[\da-z]+$/,y=s("".charAt),b=s(g.exec),E=s(1 .toString),S=s("".slice);i({target:"Number",stat:!0,forced:!0},{fromString:function(x,P){var R=1,T,A;if(typeof x!="string")throw f(l);if(!x.length||y(x,0)=="-"&&(R=-1,x=S(x,1),!x.length))throw d(l);if(T=P===void 0?10:u(P),T<2||T>36)throw p(h);if(!b(g,x)||E(A=v(x,T),T)!==x)throw d(l);return R*A}})},34841:(C,c,t)=>{"use strict";var i=t(83846),s=t(80359);i({target:"Number",stat:!0,forced:!0},{range:function(v,l,h){return new s(v,l,h,"number",0,1)}})},94002:(C,c,t)=>{"use strict";var i=t(83846),s=t(90731),u=t(55740),v=t(7319),l=t(38213),h=t(6618),p=t(86543),d=s("Object","create"),f=u([].push);i({target:"Object",stat:!0,forced:!0},{groupBy:function(y,b){l(y),v(b);var E=d(null),S=0;return p(y,function(w){var x=h(b(w,S++));x in E?f(E[x],w):E[x]=[w]}),E}})},55184:(C,c,t)=>{t(7009)},99952:(C,c,t)=>{"use strict";var i=t(83846),s=t(5874);i({target:"Object",stat:!0,forced:!0},{iterateEntries:function(v){return new s(v,"entries")}})},96269:(C,c,t)=>{"use strict";var i=t(83846),s=t(5874);i({target:"Object",stat:!0,forced:!0},{iterateKeys:function(v){return new s(v,"keys")}})},60037:(C,c,t)=>{"use strict";var i=t(83846),s=t(5874);i({target:"Object",stat:!0,forced:!0},{iterateValues:function(v){return new s(v,"values")}})},68049:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(77022),v=t(87735),l=t(7319),h=t(4630),p=t(99385),d=t(2714),f=t(67213),g=t(73091),y=t(83735),b=t(76156),E=t(24372),S=t(74066),w=t(67870),x=t(70330),P=t(45699),R=t(42128),T=x("observable"),A="Observable",I="Subscription",N="SubscriptionObserver",K=P.getterFor,_=P.set,W=K(A),j=K(I),re=K(N),X=function($){this.observer=h($),this.cleanup=void 0,this.subscriptionObserver=void 0};X.prototype={type:I,clean:function(){var $=this.cleanup;if($){this.cleanup=void 0;try{$()}catch(k){w(k)}}},close:function(){if(!u){var $=this.facade,k=this.subscriptionObserver;$.closed=!0,k&&(k.closed=!0)}this.observer=void 0},isClosed:function(){return this.observer===void 0}};var Z=function($,k){var F=_(this,new X($)),V;u||(this.closed=!1);try{(V=y($,"start"))&&s(V,$,this)}catch(te){w(te)}if(!F.isClosed()){var pe=F.subscriptionObserver=new J(F);try{var ce=k(pe),G=ce;f(ce)||(F.cleanup=d(ce.unsubscribe)?function(){G.unsubscribe()}:l(ce))}catch(te){pe.error(te);return}F.isClosed()&&F.clean()}};Z.prototype=E({},{unsubscribe:function(){var k=j(this);k.isClosed()||(k.close(),k.clean())}}),u&&S(Z.prototype,"closed",{configurable:!0,get:function(){return j(this).isClosed()}});var J=function($){_(this,{type:N,subscriptionState:$}),u||(this.closed=!1)};J.prototype=E({},{next:function(k){var F=re(this).subscriptionState;if(!F.isClosed()){var V=F.observer;try{var pe=y(V,"next");pe&&s(pe,V,k)}catch(ce){w(ce)}}},error:function(k){var F=re(this).subscriptionState;if(!F.isClosed()){var V=F.observer;F.close();try{var pe=y(V,"error");pe?s(pe,V,k):w(k)}catch(ce){w(ce)}F.clean()}},complete:function(){var k=re(this).subscriptionState;if(!k.isClosed()){var F=k.observer;k.close();try{var V=y(F,"complete");V&&s(V,F)}catch(pe){w(pe)}k.clean()}}}),u&&S(J.prototype,"closed",{configurable:!0,get:function(){return re(this).subscriptionState.isClosed()}});var q=function(k){p(this,L),_(this,{type:A,subscriber:l(k)})},L=q.prototype;E(L,{subscribe:function(k){var F=arguments.length;return new Z(d(k)?{next:k,error:F>1?arguments[1]:void 0,complete:F>2?arguments[2]:void 0}:g(k)?k:{},W(this).subscriber)}}),b(L,T,function(){return this}),i({global:!0,constructor:!0,forced:R},{Observable:q}),v(A)},9312:(C,c,t)=>{"use strict";var i=t(83846),s=t(90731),u=t(99760),v=t(4630),l=t(53582),h=t(73543),p=t(83735),d=t(86543),f=t(70330),g=t(42128),y=f("observable");i({target:"Observable",stat:!0,forced:g},{from:function(E){var S=l(this)?this:s("Observable"),w=p(v(E),y);if(w){var x=v(u(w,E));return x.constructor===S?x:new S(function(R){return x.subscribe(R)})}var P=h(E);return new S(function(R){d(P,function(T,A){if(R.next(T),R.closed)return A()},{IS_ITERATOR:!0,INTERRUPTED:!0}),R.complete()})}})},18719:(C,c,t)=>{t(68049),t(9312),t(80139)},80139:(C,c,t)=>{"use strict";var i=t(83846),s=t(90731),u=t(53582),v=t(42128),l=s("Array");i({target:"Observable",stat:!0,forced:v},{of:function(){for(var p=u(this)?this:s("Observable"),d=arguments.length,f=l(d),g=0;g<d;)f[g]=arguments[g++];return new p(function(y){for(var b=0;b<d;b++)if(y.next(f[b]),y.closed)return;y.complete()})}})},82250:(C,c,t)=>{t(34117)},21718:(C,c,t)=>{t(92810)},92185:(C,c,t)=>{"use strict";var i=t(83846),s=t(445),u=t(69297);i({target:"Promise",stat:!0,forced:!0},{try:function(v){var l=s.f(this),h=u(v);return(h.error?l.reject:l.resolve)(h.value),l.promise}})},56572:(C,c,t)=>{"use strict";var i=t(83846),s=t(445);i({target:"Promise",stat:!0,forced:!0},{withResolvers:function(){var v=s.f(this);return{promise:v.promise,resolve:v.resolve,reject:v.reject}}})},72093:(C,c,t)=>{var i=t(83846),s=t(6531),u=t(4630),v=s.toKey,l=s.set;i({target:"Reflect",stat:!0},{defineMetadata:function(p,d,f){var g=arguments.length<4?void 0:v(arguments[3]);l(p,d,u(f),g)}})},12959:(C,c,t)=>{var i=t(83846),s=t(6531),u=t(4630),v=s.toKey,l=s.getMap,h=s.store;i({target:"Reflect",stat:!0},{deleteMetadata:function(d,f){var g=arguments.length<3?void 0:v(arguments[2]),y=l(u(f),g,!1);if(y===void 0||!y.delete(d))return!1;if(y.size)return!0;var b=h.get(f);return b.delete(g),!!b.size||h.delete(f)}})},48821:(C,c,t)=>{var i=t(83846),s=t(55740),u=t(6531),v=t(4630),l=t(52839),h=t(62081),p=s(h),d=s([].concat),f=u.keys,g=u.toKey,y=function(b,E){var S=f(b,E),w=l(b);if(w===null)return S;var x=y(w,E);return x.length?S.length?p(d(S,x)):x:S};i({target:"Reflect",stat:!0},{getMetadataKeys:function(E){var S=arguments.length<2?void 0:g(arguments[1]);return y(v(E),S)}})},75945:(C,c,t)=>{var i=t(83846),s=t(6531),u=t(4630),v=t(52839),l=s.has,h=s.get,p=s.toKey,d=function(f,g,y){var b=l(f,g,y);if(b)return h(f,g,y);var E=v(g);return E!==null?d(f,E,y):void 0};i({target:"Reflect",stat:!0},{getMetadata:function(g,y){var b=arguments.length<3?void 0:p(arguments[2]);return d(g,u(y),b)}})},84097:(C,c,t)=>{var i=t(83846),s=t(6531),u=t(4630),v=s.keys,l=s.toKey;i({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(p){var d=arguments.length<2?void 0:l(arguments[1]);return v(u(p),d)}})},70424:(C,c,t)=>{var i=t(83846),s=t(6531),u=t(4630),v=s.get,l=s.toKey;i({target:"Reflect",stat:!0},{getOwnMetadata:function(p,d){var f=arguments.length<3?void 0:l(arguments[2]);return v(p,u(d),f)}})},54177:(C,c,t)=>{var i=t(83846),s=t(6531),u=t(4630),v=t(52839),l=s.has,h=s.toKey,p=function(d,f,g){var y=l(d,f,g);if(y)return!0;var b=v(f);return b!==null?p(d,b,g):!1};i({target:"Reflect",stat:!0},{hasMetadata:function(f,g){var y=arguments.length<3?void 0:h(arguments[2]);return p(f,u(g),y)}})},91222:(C,c,t)=>{var i=t(83846),s=t(6531),u=t(4630),v=s.has,l=s.toKey;i({target:"Reflect",stat:!0},{hasOwnMetadata:function(p,d){var f=arguments.length<3?void 0:l(arguments[2]);return v(p,u(d),f)}})},24044:(C,c,t)=>{var i=t(83846),s=t(6531),u=t(4630),v=s.toKey,l=s.set;i({target:"Reflect",stat:!0},{metadata:function(p,d){return function(g,y){l(p,d,u(g),v(y))}}})},84894:(C,c,t)=>{"use strict";var i=t(83846),s=t(75522),u=t(2955).add;i({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var l=s(this),h=0,p=arguments.length;h<p;h++)u(l,arguments[h]);return l}})},40994:(C,c,t)=>{"use strict";var i=t(83846),s=t(75522),u=t(2955).remove;i({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var l=s(this),h=!0,p,d=0,f=arguments.length;d<f;d++)p=u(l,arguments[d]),h=h&&p;return!!h}})},92795:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(24582),v=t(1210);i({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(h){return s(v,this,u(h))}})},5401:(C,c,t)=>{var i=t(83846),s=t(1210),u=t(44088);i({target:"Set",proto:!0,real:!0,forced:!u("difference")},{difference:s})},17194:(C,c,t)=>{"use strict";var i=t(83846),s=t(31642),u=t(75522),v=t(17203);i({target:"Set",proto:!0,real:!0,forced:!0},{every:function(h){var p=u(this),d=s(h,arguments.length>1?arguments[1]:void 0);return v(p,function(f){if(!d(f,f,p))return!1},!0)!==!1}})},11135:(C,c,t)=>{"use strict";var i=t(83846),s=t(31642),u=t(75522),v=t(2955),l=t(17203),h=v.Set,p=v.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(f){var g=u(this),y=s(f,arguments.length>1?arguments[1]:void 0),b=new h;return l(g,function(E){y(E,E,g)&&p(b,E)}),b}})},7119:(C,c,t)=>{"use strict";var i=t(83846),s=t(31642),u=t(75522),v=t(17203);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(h){var p=u(this),d=s(h,arguments.length>1?arguments[1]:void 0),f=v(p,function(g){if(d(g,g,p))return{value:g}},!0);return f&&f.value}})},1663:(C,c,t)=>{var i=t(83846),s=t(54890);i({target:"Set",stat:!0,forced:!0},{from:s})},49635:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(24582),v=t(43818);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(h){return s(v,this,u(h))}})},10711:(C,c,t)=>{var i=t(83846),s=t(97898),u=t(43818),v=t(44088),l=!v("intersection")||s(function(){return Array.from(new Set([1,2,3]).intersection(new Set([3,2])))!="3,2"});i({target:"Set",proto:!0,real:!0,forced:l},{intersection:u})},48499:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(24582),v=t(46698);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(h){return s(v,this,u(h))}})},14385:(C,c,t)=>{var i=t(83846),s=t(46698),u=t(44088);i({target:"Set",proto:!0,real:!0,forced:!u("isDisjointFrom")},{isDisjointFrom:s})},22930:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(24582),v=t(28419);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(h){return s(v,this,u(h))}})},13290:(C,c,t)=>{var i=t(83846),s=t(28419),u=t(44088);i({target:"Set",proto:!0,real:!0,forced:!u("isSubsetOf")},{isSubsetOf:s})},1055:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(24582),v=t(33909);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(h){return s(v,this,u(h))}})},74593:(C,c,t)=>{var i=t(83846),s=t(33909),u=t(44088);i({target:"Set",proto:!0,real:!0,forced:!u("isSupersetOf")},{isSupersetOf:s})},99714:(C,c,t)=>{"use strict";var i=t(83846),s=t(55740),u=t(75522),v=t(17203),l=t(36722),h=s([].join),p=s([].push);i({target:"Set",proto:!0,real:!0,forced:!0},{join:function(f){var g=u(this),y=f===void 0?",":l(f),b=[];return v(g,function(E){p(b,E)}),h(b,y)}})},98049:(C,c,t)=>{"use strict";var i=t(83846),s=t(31642),u=t(75522),v=t(2955),l=t(17203),h=v.Set,p=v.add;i({target:"Set",proto:!0,real:!0,forced:!0},{map:function(f){var g=u(this),y=s(f,arguments.length>1?arguments[1]:void 0),b=new h;return l(g,function(E){p(b,y(E,E,g))}),b}})},99213:(C,c,t)=>{var i=t(83846),s=t(34781);i({target:"Set",stat:!0,forced:!0},{of:s})},64938:(C,c,t)=>{"use strict";var i=t(83846),s=t(7319),u=t(75522),v=t(17203),l=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(p){var d=u(this),f=arguments.length<2,g=f?void 0:arguments[1];if(s(p),v(d,function(y){f?(f=!1,g=y):g=p(g,y,y,d)}),f)throw l("Reduce of empty set with no initial value");return g}})},22156:(C,c,t)=>{"use strict";var i=t(83846),s=t(31642),u=t(75522),v=t(17203);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(h){var p=u(this),d=s(h,arguments.length>1?arguments[1]:void 0);return v(p,function(f){if(d(f,f,p))return!0},!0)===!0}})},60319:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(24582),v=t(29342);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(h){return s(v,this,u(h))}})},33498:(C,c,t)=>{var i=t(83846),s=t(29342),u=t(44088);i({target:"Set",proto:!0,real:!0,forced:!u("symmetricDifference")},{symmetricDifference:s})},2568:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760),u=t(24582),v=t(84353);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(h){return s(v,this,u(h))}})},60339:(C,c,t)=>{var i=t(83846),s=t(84353),u=t(44088);i({target:"Set",proto:!0,real:!0,forced:!u("union")},{union:s})},47797:(C,c,t)=>{"use strict";var i=t(83846),s=t(56491).charAt,u=t(38213),v=t(46226),l=t(36722);i({target:"String",proto:!0,forced:!0},{at:function(p){var d=l(u(this)),f=d.length,g=v(p),y=g>=0?g:f+g;return y<0||y>=f?void 0:s(d,y)}})},27021:(C,c,t)=>{"use strict";var i=t(83846),s=t(56561),u=t(14373),v=t(38213),l=t(36722),h=t(45699),p=t(56491),d=p.codeAt,f=p.charAt,g="String Iterator",y=h.set,b=h.getterFor(g),E=s(function(w){y(this,{type:g,string:w,index:0})},"String",function(){var w=b(this),x=w.string,P=w.index,R;return P>=x.length?u(void 0,!0):(R=f(x,P),w.index+=R.length,u({codePoint:d(R,0),position:P},!1))});i({target:"String",proto:!0,forced:!0},{codePoints:function(){return new E(l(v(this)))}})},24278:(C,c,t)=>{var i=t(83846),s=t(51299);i({target:"String",stat:!0,forced:!0},{cooked:s})},71265:(C,c,t)=>{"use strict";var i=t(36781),s=t(83846),u=t(14232),v=t(90731),l=t(20894),h=t(55740),p=t(27630),d=t(4630),f=t(9376),g=t(2714),y=t(84349),b=t(56768).f,E=t(26970),S=t(51299),w=t(86797),x=t(38714),P=v("WeakMap"),R=u("GlobalDedentRegistry",new P);R.has=R.has,R.get=R.get,R.set=R.set;var T=Array,A=TypeError,I=Object.freeze||Object,N=Object.isFrozen,K=Math.min,_=h("".charAt),W=h("".slice),j=h("".split),re=h(/./.exec),X=/([\n\u2028\u2029]|\r\n?)/g,Z=RegExp("^["+x+"]*"),J=RegExp("[^"+x+"]"),q="Invalid tag",L="Invalid opening line",$="Invalid closing line",k=function(te){var ie=te.raw;if(i&&!N(ie))throw A("Raw template should be frozen");if(R.has(ie))return R.get(ie);var fe=F(ie),Se=pe(fe);return b(Se,"raw",{value:I(fe)}),I(Se),R.set(ie,Se),Se},F=function(te){var ie=f(te),fe=y(ie),Se=T(fe),he=T(fe),me=0,_e,we;if(!fe)throw A(q);for(;me<fe;me++){var Ge=ie[me];if(typeof Ge=="string")Se[me]=j(Ge,X);else throw A(q)}for(me=0;me<fe;me++){var ht=me+1===fe;if(_e=Se[me],me===0){if(_e.length===1||_e[0].length>0)throw A(L);_e[1]=""}if(ht){if(_e.length===1||re(J,_e[_e.length-1]))throw A($);_e[_e.length-2]="",_e[_e.length-1]=""}for(var nt=2;nt<_e.length;nt+=2){var Re=_e[nt],ue=nt+1===_e.length&&!ht,ae=re(Z,Re)[0];if(!ue&&ae.length===Re.length){_e[nt]="";continue}we=V(ae,we)}}var ve=we?we.length:0;for(me=0;me<fe;me++){_e=Se[me];for(var Me=_e[0],Ye=1;Ye<_e.length;Ye+=2)Me+=_e[Ye]+W(_e[Ye+1],ve);he[me]=Me}return he},V=function(te,ie){if(ie===void 0||te===ie)return te;for(var fe=0,Se=K(te.length,ie.length);fe<Se&&_(te,fe)===_(ie,fe);fe++);return W(te,0,fe)},pe=function(te){for(var ie=0,fe=te.length,Se=T(fe);ie<fe;ie++)Se[ie]=w(te[ie]);return Se},ce=function(te){return l(function(ie){var fe=E(arguments);return fe[0]=k(d(ie)),p(te,this,fe)},"")},G=ce(S);s({target:"String",stat:!0,forced:!0},{dedent:function(ie){return d(ie),g(ie)?ce(ie):p(G,this,arguments)}})},59419:(C,c,t)=>{t(26299)},36813:(C,c,t)=>{t(94809)},28216:(C,c,t)=>{t(10487)},63894:(C,c,t)=>{t(184)},47828:(C,c,t)=>{"use strict";var i=t(83846),s=t(720),u=t(52839),v=t(39869),l=t(11599),h=t(69735),p=t(37651),d=t(33091),f=t(25410),g=t(46001),y=t(70330),b=y("toStringTag"),E=Error,S=function(P,R,T){var A=s(w,this),I;return v?I=v(E(),A?u(this):w):(I=A?this:h(w),p(I,b,"Error")),T!==void 0&&p(I,"message",g(T)),f(I,S,I.stack,1),p(I,"error",P),p(I,"suppressed",R),I};v?v(S,E):l(S,E,{name:!0});var w=S.prototype=h(E.prototype,{constructor:d(1,S),message:d(1,""),name:d(1,"SuppressedError")});i({global:!0,constructor:!0,arity:3},{SuppressedError:S})},84392:(C,c,t)=>{var i=t(34729);i("asyncDispose")},15617:(C,c,t)=>{var i=t(34729);i("dispose")},4498:(C,c,t)=>{var i=t(83846),s=t(90899);i({target:"Symbol",stat:!0},{isRegisteredSymbol:s})},80615:(C,c,t)=>{var i=t(83846),s=t(90899);i({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:s})},41543:(C,c,t)=>{var i=t(83846),s=t(1297);i({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:s})},63661:(C,c,t)=>{var i=t(83846),s=t(1297);i({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:s})},28873:(C,c,t)=>{var i=t(34729);i("matcher")},85601:(C,c,t)=>{var i=t(34729);i("metadataKey")},43378:(C,c,t)=>{var i=t(34729);i("metadata")},16763:(C,c,t)=>{var i=t(34729);i("observable")},44181:(C,c,t)=>{var i=t(34729);i("patternMatch")},74124:(C,c,t)=>{var i=t(34729);i("replaceAll")},39301:(C,c,t)=>{t(25186)},54972:(C,c,t)=>{"use strict";var i=t(91390),s=t(45742).filterReject,u=t(87045),v=i.aTypedArray,l=i.exportTypedArrayMethod;l("filterOut",function(p){var d=s(v(this),p,arguments.length>1?arguments[1]:void 0);return u(this,d)},!0)},32177:(C,c,t)=>{"use strict";var i=t(91390),s=t(45742).filterReject,u=t(87045),v=i.aTypedArray,l=i.exportTypedArrayMethod;l("filterReject",function(p){var d=s(v(this),p,arguments.length>1?arguments[1]:void 0);return u(this,d)},!0)},20038:(C,c,t)=>{t(25288)},36398:(C,c,t)=>{t(89626)},44017:(C,c,t)=>{"use strict";var i=t(90731),s=t(3897),u=t(25643),v=t(91390),l=t(60925),h=v.aTypedArrayConstructor,p=v.exportTypedArrayStaticMethod;p("fromAsync",function(f){var g=this,y=arguments.length,b=y>1?arguments[1]:void 0,E=y>2?arguments[2]:void 0;return new(i("Promise"))(function(S){s(g),S(u(f,b,E))}).then(function(S){return l(h(g),S)})},!0)},18310:(C,c,t)=>{"use strict";var i=t(91390),s=t(77377),u=t(15399),v=i.aTypedArray,l=i.exportTypedArrayMethod;l("groupBy",function(p){var d=arguments.length>1?arguments[1]:void 0;return s(v(this),p,d,u)},!0)},16146:(C,c,t)=>{t(60689)},42814:(C,c,t)=>{t(52506)},2306:(C,c,t)=>{"use strict";var i=t(91390),s=t(84349),u=t(74054),v=t(49717),l=t(30962),h=t(46226),p=t(97898),d=i.aTypedArray,f=i.getTypedArrayConstructor,g=i.exportTypedArrayMethod,y=Math.max,b=Math.min,E=!p(function(){var S=new Int8Array([1]),w=S.toSpliced(1,0,{valueOf:function(){return S[0]=2,3}});return w[0]!==2||w[1]!==3});g("toSpliced",function(w,x){var P=d(this),R=f(P),T=s(P),A=v(w,T),I=arguments.length,N=0,K,_,W,j,re,X,Z;if(I===0)K=_=0;else if(I===1)K=0,_=T-A;else if(_=b(y(h(x),0),T-A),K=I-2,K){j=new R(K),W=u(j);for(var J=2;J<I;J++)re=arguments[J],j[J-2]=W?l(re):+re}for(X=T+K-_,Z=new R(X);N<A;N++)Z[N]=P[N];for(;N<A+K;N++)Z[N]=j[N-A];for(;N<X;N++)Z[N]=P[N+_-K];return Z},!E)},90154:(C,c,t)=>{"use strict";var i=t(55740),s=t(91390),u=t(60925),v=t(62081),l=s.aTypedArray,h=s.getTypedArrayConstructor,p=s.exportTypedArrayMethod,d=i(v);p("uniqueBy",function(g){return l(this),u(h(this),d(this,g))},!0)},30867:(C,c,t)=>{t(12371)},66704:(C,c,t)=>{"use strict";var i=t(83846),s=t(67808),u=t(957).remove;i({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var l=s(this),h=!0,p,d=0,f=arguments.length;d<f;d++)p=u(l,arguments[d]),h=h&&p;return!!h}})},66161:(C,c,t)=>{"use strict";var i=t(83846),s=t(67808),u=t(957),v=u.get,l=u.has,h=u.set;i({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:function(d,f){var g=s(this),y,b;return l(g,d)?(y=v(g,d),"update"in f&&(y=f.update(y,d,g),h(g,d,y)),y):(b=f.insert(d,g),h(g,d,b),b)}})},22515:(C,c,t)=>{var i=t(83846),s=t(54890);i({target:"WeakMap",stat:!0,forced:!0},{from:s})},34407:(C,c,t)=>{var i=t(83846),s=t(34781);i({target:"WeakMap",stat:!0,forced:!0},{of:s})},67735:(C,c,t)=>{"use strict";var i=t(83846),s=t(28241);i({target:"WeakMap",proto:!0,real:!0,forced:!0},{upsert:s})},98028:(C,c,t)=>{"use strict";var i=t(83846),s=t(79470),u=t(53286).add;i({target:"WeakSet",proto:!0,real:!0,forced:!0},{addAll:function(){for(var l=s(this),h=0,p=arguments.length;h<p;h++)u(l,arguments[h]);return l}})},9229:(C,c,t)=>{"use strict";var i=t(83846),s=t(79470),u=t(53286).remove;i({target:"WeakSet",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var l=s(this),h=!0,p,d=0,f=arguments.length;d<f;d++)p=u(l,arguments[d]),h=h&&p;return!!h}})},20431:(C,c,t)=>{var i=t(83846),s=t(54890);i({target:"WeakSet",stat:!0,forced:!0},{from:s})},76245:(C,c,t)=>{var i=t(83846),s=t(34781);i({target:"WeakSet",stat:!0,forced:!0},{of:s})},18100:(C,c,t)=>{var i=t(83846),s=t(75866),u=t(90731),v=t(55740),l=t(99760),h=t(97898),p=t(36722),d=t(15275),f=t(69033),g=t(48346).ctoi,y=/[^\d+/a-z]/i,b=/[\t\n\f\r ]+/g,E=/[=]{1,2}$/,S=u("atob"),w=String.fromCharCode,x=v("".charAt),P=v("".replace),R=v(y.exec),T=h(function(){return S(" ")!==""}),A=!h(function(){S("a")}),I=!T&&!A&&!h(function(){S()}),N=!T&&!A&&S.length!==1;i({global:!0,bind:!0,enumerable:!0,forced:T||A||I||N},{atob:function(_){if(f(arguments.length,1),I||N)return l(S,s,_);var W=P(p(_),b,""),j="",re=0,X=0,Z,J;if(W.length%4==0&&(W=P(W,E,"")),W.length%4==1||R(y,W))throw new(u("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;Z=x(W,re++);)d(g,Z)&&(J=X%4?J*64+g[Z]:g[Z],X++%4&&(j+=w(255&J>>(-2*X&6))));return j}})},29298:(C,c,t)=>{var i=t(83846),s=t(75866),u=t(90731),v=t(55740),l=t(99760),h=t(97898),p=t(36722),d=t(69033),f=t(48346).itoc,g=u("btoa"),y=v("".charAt),b=v("".charCodeAt),E=!!g&&!h(function(){g()}),S=!!g&&h(function(){return g(null)!=="bnVsbA=="}),w=!!g&&g.length!==1;i({global:!0,bind:!0,enumerable:!0,forced:E||S||w},{btoa:function(P){if(d(arguments.length,1),E||S||w)return l(g,s,p(P));for(var R=p(P),T="",A=0,I=f,N,K;y(R,A)||(I="=",A%1);){if(K=b(R,A+=3/4),K>255)throw new(u("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");N=N<<8|K,T+=y(I,63&N>>8-A%1*8)}return T}})},49497:(C,c,t)=>{var i=t(83846),s=t(75866),u=t(79790).clear;i({global:!0,bind:!0,enumerable:!0,forced:s.clearImmediate!==u},{clearImmediate:u})},88780:(C,c,t)=>{var i=t(75866),s=t(30224),u=t(46350),v=t(93129),l=t(37651),h=function(d){if(d&&d.forEach!==v)try{l(d,"forEach",v)}catch{d.forEach=v}};for(var p in s)s[p]&&h(i[p]&&i[p].prototype);h(u)},9465:(C,c,t)=>{var i=t(75866),s=t(30224),u=t(46350),v=t(71322),l=t(37651),h=t(70330),p=h("iterator"),d=h("toStringTag"),f=v.values,g=function(b,E){if(b){if(b[p]!==f)try{l(b,p,f)}catch{b[p]=f}if(b[d]||l(b,d,E),s[E]){for(var S in v)if(b[S]!==v[S])try{l(b,S,v[S])}catch{b[S]=v[S]}}}};for(var y in s)g(i[y]&&i[y].prototype,y);g(u,"DOMTokenList")},69810:(C,c,t)=>{"use strict";var i=t(83846),s=t(79950),u=t(90731),v=t(97898),l=t(69735),h=t(33091),p=t(56768).f,d=t(76156),f=t(74066),g=t(15275),y=t(99385),b=t(4630),E=t(13864),S=t(46001),w=t(187),x=t(93568),P=t(45699),R=t(77022),T=t(65259),A="DOMException",I="DATA_CLONE_ERR",N=u("Error"),K=u(A)||function(){try{var me=u("MessageChannel")||s("worker_threads").MessageChannel;new me().port1.postMessage(new WeakMap)}catch(_e){if(_e.name==I&&_e.code==25)return _e.constructor}}(),_=K&&K.prototype,W=N.prototype,j=P.set,re=P.getterFor(A),X="stack"in N(A),Z=function(me){return g(w,me)&&w[me].m?w[me].c:0},J=function(){y(this,q);var _e=arguments.length,we=S(_e<1?void 0:arguments[0]),Ge=S(_e<2?void 0:arguments[1],"Error"),ht=Z(Ge);if(j(this,{type:A,name:Ge,message:we,code:ht}),R||(this.name=Ge,this.message=we,this.code=ht),X){var nt=N(we);nt.name=A,p(this,"stack",h(1,x(nt.stack,1)))}},q=J.prototype=l(W),L=function(me){return{enumerable:!0,configurable:!0,get:me}},$=function(me){return L(function(){return re(this)[me]})};R&&(f(q,"code",$("code")),f(q,"message",$("message")),f(q,"name",$("name"))),p(q,"constructor",h(1,J));var k=v(function(){return!(new K instanceof N)}),F=k||v(function(){return W.toString!==E||String(new K(1,2))!=="2: 1"}),V=k||v(function(){return new K(1,"DataCloneError").code!==25}),pe=k||K[I]!==25||_[I]!==25,ce=T?F||V||pe:k;i({global:!0,constructor:!0,forced:ce},{DOMException:ce?J:K});var G=u(A),te=G.prototype;F&&(T||K===G)&&d(te,"toString",E),V&&R&&K===G&&f(te,"code",L(function(){return Z(b(this).name)}));for(var ie in w)if(g(w,ie)){var fe=w[ie],Se=fe.s,he=h(6,fe.c);g(G,Se)||p(G,Se,he),g(te,Se)||p(te,Se,he)}},74970:(C,c,t)=>{"use strict";var i=t(83846),s=t(75866),u=t(90731),v=t(33091),l=t(56768).f,h=t(15275),p=t(99385),d=t(83108),f=t(46001),g=t(187),y=t(93568),b=t(77022),E=t(65259),S="DOMException",w=u("Error"),x=u(S),P=function(){p(this,R);var J=arguments.length,q=f(J<1?void 0:arguments[0]),L=f(J<2?void 0:arguments[1],"Error"),$=new x(q,L),k=w(q);return k.name=S,l($,"stack",v(1,y(k.stack,1))),d($,this,P),$},R=P.prototype=x.prototype,T="stack"in w(S),A="stack"in new x(1,2),I=x&&b&&Object.getOwnPropertyDescriptor(s,S),N=!!I&&!(I.writable&&I.configurable),K=T&&!N&&!A;i({global:!0,constructor:!0,forced:E||K},{DOMException:K?P:x});var _=u(S),W=_.prototype;if(W.constructor!==_){E||l(W,"constructor",v(1,_));for(var j in g)if(h(g,j)){var re=g[j],X=re.s;h(_,X)||l(_,X,v(6,re.c))}}},18066:(C,c,t)=>{var i=t(90731),s=t(61817),u="DOMException";s(i(u),u)},57745:(C,c,t)=>{t(49497),t(61299)},26152:(C,c,t)=>{var i=t(83846),s=t(75866),u=t(16560),v=t(7319),l=t(69033),h=t(82768),p=s.process;i({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(f){l(arguments.length,1),v(f);var g=h&&p.domain;u(g?g.bind(f):f)}})},89687:(C,c,t)=>{"use strict";var i=t(83846),s=t(75866),u=t(74066),v=t(77022),l=TypeError,h=Object.defineProperty,p=s.self!==s;try{if(v){var d=Object.getOwnPropertyDescriptor(s,"self");(p||!d||!d.get||!d.enumerable)&&u(s,"self",{get:function(){return s},set:function(g){if(this!==s)throw l("Illegal invocation");h(s,"self",{value:g,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else i({global:!0,simple:!0,forced:p},{self:s})}catch{}},61299:(C,c,t)=>{var i=t(83846),s=t(75866),u=t(79790).set,v=t(27673),l=s.setImmediate?v(u,!1):u;i({global:!0,bind:!0,enumerable:!0,forced:s.setImmediate!==l},{setImmediate:l})},84918:(C,c,t)=>{var i=t(83846),s=t(75866),u=t(27673),v=u(s.setInterval,!0);i({global:!0,bind:!0,forced:s.setInterval!==v},{setInterval:v})},83888:(C,c,t)=>{var i=t(83846),s=t(75866),u=t(27673),v=u(s.setTimeout,!0);i({global:!0,bind:!0,forced:s.setTimeout!==v},{setTimeout:v})},32738:(C,c,t)=>{var i=t(65259),s=t(83846),u=t(75866),v=t(90731),l=t(55740),h=t(97898),p=t(8499),d=t(2714),f=t(53582),g=t(67213),y=t(73091),b=t(14566),E=t(86543),S=t(4630),w=t(17766),x=t(15275),P=t(50932),R=t(37651),T=t(84349),A=t(69033),I=t(59261),N=t(53033),K=t(2955),_=t(29075),W=t(33562),j=u.Object,re=u.Array,X=u.Date,Z=u.Error,J=u.EvalError,q=u.RangeError,L=u.ReferenceError,$=u.SyntaxError,k=u.TypeError,F=u.URIError,V=u.PerformanceMark,pe=u.WebAssembly,ce=pe&&pe.CompileError||Z,G=pe&&pe.LinkError||Z,te=pe&&pe.RuntimeError||Z,ie=v("DOMException"),fe=N.Map,Se=N.has,he=N.get,me=N.set,_e=K.Set,we=K.add,Ge=v("Object","keys"),ht=l([].push),nt=l((!0).valueOf),Re=l(1 .valueOf),ue=l("".valueOf),ae=l(X.prototype.getTime),ve=p("structuredClone"),Me="DataCloneError",Ye="Transferring",qe=function(Ne){return!h(function(){var mt=new u.Set([7]),bt=Ne(mt),Gt=Ne(j(7));return bt==mt||!bt.has(7)||typeof Gt!="object"||Gt!=7})&&Ne},At=function(Ne,mt){return!h(function(){var bt=new mt,Gt=Ne({a:bt,b:bt});return!(Gt&&Gt.a===Gt.b&&Gt.a instanceof mt&&Gt.a.stack===bt.stack)})},It=function(Ne){return!h(function(){var mt=Ne(new u.AggregateError([1],ve,{cause:3}));return mt.name!="AggregateError"||mt.errors[0]!=1||mt.message!=ve||mt.cause!=3})},Ce=u.structuredClone,Ae=i||!At(Ce,Z)||!At(Ce,ie)||!It(Ce),$e=!Ce&&qe(function(Ne){return new V(ve,{detail:Ne}).detail}),tt=qe(Ce)||$e,ke=function(Ne){throw new ie("Uncloneable type: "+Ne,Me)},Oe=function(Ne,mt){throw new ie((mt||"Cloning")+" of "+Ne+" cannot be properly polyfilled in this engine",Me)},je=function(Ne,mt){return tt||Oe(mt),tt(Ne)},Et=function(){var Ne;try{Ne=new u.DataTransfer}catch{try{Ne=new u.ClipboardEvent("").clipboardData}catch{}}return Ne&&Ne.items&&Ne.files?Ne:null},ct=function(Ne,mt){if(b(Ne)&&ke("Symbol"),!y(Ne))return Ne;if(mt){if(Se(mt,Ne))return he(mt,Ne)}else mt=new fe;var bt=w(Ne),Gt=!1,hn,Yt,Bt,Lt,zt,Kt,vt,Ve,lt,at,Xt;switch(bt){case"Array":Bt=re(T(Ne)),Gt=!0;break;case"Object":Bt={},Gt=!0;break;case"Map":Bt=new fe,Gt=!0;break;case"Set":Bt=new _e,Gt=!0;break;case"RegExp":Bt=new RegExp(Ne.source,I(Ne));break;case"Error":switch(Yt=Ne.name,Yt){case"AggregateError":Bt=v("AggregateError")([]);break;case"EvalError":Bt=J();break;case"RangeError":Bt=q();break;case"ReferenceError":Bt=L();break;case"SyntaxError":Bt=$();break;case"TypeError":Bt=k();break;case"URIError":Bt=F();break;case"CompileError":Bt=ce();break;case"LinkError":Bt=G();break;case"RuntimeError":Bt=te();break;default:Bt=Z()}Gt=!0;break;case"DOMException":Bt=new ie(Ne.message,Ne.name),Gt=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":hn=u[bt],y(hn)||Oe(bt),Bt=new hn(ct(Ne.buffer,mt),Ne.byteOffset,bt==="DataView"?Ne.byteLength:Ne.length);break;case"DOMQuad":try{Bt=new DOMQuad(ct(Ne.p1,mt),ct(Ne.p2,mt),ct(Ne.p3,mt),ct(Ne.p4,mt))}catch{Bt=je(Ne,bt)}break;case"File":if(tt)try{Bt=tt(Ne),w(Bt)!==bt&&(Bt=void 0)}catch{}if(!Bt)try{Bt=new File([Ne],Ne.name,Ne)}catch{}Bt||Oe(bt);break;case"FileList":if(Lt=Et(),Lt){for(zt=0,Kt=T(Ne);zt<Kt;zt++)Lt.items.add(ct(Ne[zt],mt));Bt=Lt.files}else Bt=je(Ne,bt);break;case"ImageData":try{Bt=new ImageData(ct(Ne.data,mt),Ne.width,Ne.height,{colorSpace:Ne.colorSpace})}catch{Bt=je(Ne,bt)}break;default:if(tt)Bt=tt(Ne);else switch(bt){case"BigInt":Bt=j(Ne.valueOf());break;case"Boolean":Bt=j(nt(Ne));break;case"Number":Bt=j(Re(Ne));break;case"String":Bt=j(ue(Ne));break;case"Date":Bt=new X(ae(Ne));break;case"ArrayBuffer":hn=u.DataView,!hn&&typeof Ne.slice!="function"&&Oe(bt);try{if(typeof Ne.slice=="function"&&!Ne.resizable)Bt=Ne.slice(0);else for(Kt=Ne.byteLength,Xt=("maxByteLength"in Ne)?{maxByteLength:Ne.maxByteLength}:void 0,Bt=new ArrayBuffer(Kt,Xt),lt=new hn(Ne),at=new hn(Bt),zt=0;zt<Kt;zt++)at.setUint8(zt,lt.getUint8(zt))}catch{throw new ie("ArrayBuffer is detached",Me)}break;case"SharedArrayBuffer":Bt=Ne;break;case"Blob":try{Bt=Ne.slice(0,Ne.size,Ne.type)}catch{Oe(bt)}break;case"DOMPoint":case"DOMPointReadOnly":hn=u[bt];try{Bt=hn.fromPoint?hn.fromPoint(Ne):new hn(Ne.x,Ne.y,Ne.z,Ne.w)}catch{Oe(bt)}break;case"DOMRect":case"DOMRectReadOnly":hn=u[bt];try{Bt=hn.fromRect?hn.fromRect(Ne):new hn(Ne.x,Ne.y,Ne.width,Ne.height)}catch{Oe(bt)}break;case"DOMMatrix":case"DOMMatrixReadOnly":hn=u[bt];try{Bt=hn.fromMatrix?hn.fromMatrix(Ne):new hn(Ne)}catch{Oe(bt)}break;case"AudioData":case"VideoFrame":d(Ne.clone)||Oe(bt);try{Bt=Ne.clone()}catch{ke(bt)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":Oe(bt);default:ke(bt)}}if(me(mt,Ne,Bt),Gt)switch(bt){case"Array":case"Object":for(vt=Ge(Ne),zt=0,Kt=T(vt);zt<Kt;zt++)Ve=vt[zt],P(Bt,Ve,ct(Ne[Ve],mt));break;case"Map":Ne.forEach(function(rt,Rt){me(Bt,ct(Rt,mt),ct(rt,mt))});break;case"Set":Ne.forEach(function(rt){we(Bt,ct(rt,mt))});break;case"Error":R(Bt,"message",ct(Ne.message,mt)),x(Ne,"cause")&&R(Bt,"cause",ct(Ne.cause,mt)),Yt=="AggregateError"&&(Bt.errors=ct(Ne.errors,mt));case"DOMException":_&&R(Bt,"stack",ct(Ne.stack,mt))}return Bt},ut=function(Ne,mt){if(!y(Ne))throw k("Transfer option cannot be converted to a sequence");var bt=[];E(Ne,function(lt){ht(bt,S(lt))});var Gt=0,hn=T(bt),Yt,Bt,Lt,zt,Kt,vt,Ve;if(W)for(zt=Ce(bt,{transfer:bt});Gt<hn;)me(mt,bt[Gt],zt[Gt++]);else for(;Gt<hn;){if(Yt=bt[Gt++],Se(mt,Yt))throw new ie("Duplicate transferable",Me);switch(Bt=w(Yt),Bt){case"ImageBitmap":Lt=u.OffscreenCanvas,f(Lt)||Oe(Bt,Ye);try{vt=new Lt(Yt.width,Yt.height),Ve=vt.getContext("bitmaprenderer"),Ve.transferFromImageBitmap(Yt),Kt=vt.transferToImageBitmap()}catch{}break;case"AudioData":case"VideoFrame":(!d(Yt.clone)||!d(Yt.close))&&Oe(Bt,Ye);try{Kt=Yt.clone(),Yt.close()}catch{}break;case"ArrayBuffer":d(Yt.transfer)||Oe(Bt,Ye),Kt=Yt.transfer();break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":Oe(Bt,Ye)}if(Kt===void 0)throw new ie("This object cannot be transferred: "+Bt,Me);me(mt,Yt,Kt)}};s({global:!0,enumerable:!0,sham:!W,forced:Ae},{structuredClone:function(mt){var bt=A(arguments.length,1)>1&&!g(arguments[1])?S(arguments[1]):void 0,Gt=bt?bt.transfer:void 0,hn;return Gt!==void 0&&(hn=new fe,ut(Gt,hn)),ct(mt,hn)}})},20025:(C,c,t)=>{t(84918),t(83888)},64640:(C,c,t)=>{"use strict";t(71322);var i=t(83846),s=t(75866),u=t(99760),v=t(55740),l=t(77022),h=t(2592),p=t(76156),d=t(74066),f=t(24372),g=t(61817),y=t(56561),b=t(45699),E=t(99385),S=t(2714),w=t(15275),x=t(31642),P=t(17766),R=t(4630),T=t(73091),A=t(36722),I=t(69735),N=t(33091),K=t(73543),_=t(788),W=t(69033),j=t(70330),re=t(31293),X=j("iterator"),Z="URLSearchParams",J=Z+"Iterator",q=b.set,L=b.getterFor(Z),$=b.getterFor(J),k=Object.getOwnPropertyDescriptor,F=function(Ne){if(!l)return s[Ne];var mt=k(s,Ne);return mt&&mt.value},V=F("fetch"),pe=F("Request"),ce=F("Headers"),G=pe&&pe.prototype,te=ce&&ce.prototype,ie=s.RegExp,fe=s.TypeError,Se=s.decodeURIComponent,he=s.encodeURIComponent,me=v("".charAt),_e=v([].join),we=v([].push),Ge=v("".replace),ht=v([].shift),nt=v([].splice),Re=v("".split),ue=v("".slice),ae=/\+/g,ve=Array(4),Me=function(Ne){return ve[Ne-1]||(ve[Ne-1]=ie("((?:%[\\da-f]{2}){"+Ne+"})","gi"))},Ye=function(Ne){try{return Se(Ne)}catch{return Ne}},qe=function(Ne){var mt=Ge(Ne,ae," "),bt=4;try{return Se(mt)}catch{for(;bt;)mt=Ge(mt,Me(bt--),Ye);return mt}},At=/[!'()~]|%20/g,It={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Ce=function(Ne){return It[Ne]},Ae=function(Ne){return Ge(he(Ne),At,Ce)},$e=y(function(mt,bt){q(this,{type:J,iterator:K(L(mt).entries),kind:bt})},"Iterator",function(){var mt=$(this),bt=mt.kind,Gt=mt.iterator.next(),hn=Gt.value;return Gt.done||(Gt.value=bt==="keys"?hn.key:bt==="values"?hn.value:[hn.key,hn.value]),Gt},!0),tt=function(Ne){this.entries=[],this.url=null,Ne!==void 0&&(T(Ne)?this.parseObject(Ne):this.parseQuery(typeof Ne=="string"?me(Ne,0)==="?"?ue(Ne,1):Ne:A(Ne)))};tt.prototype={type:Z,bindURL:function(Ne){this.url=Ne,this.update()},parseObject:function(Ne){var mt=_(Ne),bt,Gt,hn,Yt,Bt,Lt,zt;if(mt)for(bt=K(Ne,mt),Gt=bt.next;!(hn=u(Gt,bt)).done;){if(Yt=K(R(hn.value)),Bt=Yt.next,(Lt=u(Bt,Yt)).done||(zt=u(Bt,Yt)).done||!u(Bt,Yt).done)throw fe("Expected sequence with length 2");we(this.entries,{key:A(Lt.value),value:A(zt.value)})}else for(var Kt in Ne)w(Ne,Kt)&&we(this.entries,{key:Kt,value:A(Ne[Kt])})},parseQuery:function(Ne){if(Ne)for(var mt=Re(Ne,"&"),bt=0,Gt,hn;bt<mt.length;)Gt=mt[bt++],Gt.length&&(hn=Re(Gt,"="),we(this.entries,{key:qe(ht(hn)),value:qe(_e(hn,"="))}))},serialize:function(){for(var Ne=this.entries,mt=[],bt=0,Gt;bt<Ne.length;)Gt=Ne[bt++],we(mt,Ae(Gt.key)+"="+Ae(Gt.value));return _e(mt,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ke=function(){E(this,Oe);var mt=arguments.length>0?arguments[0]:void 0,bt=q(this,new tt(mt));l||(this.size=bt.entries.length)},Oe=ke.prototype;if(f(Oe,{append:function(mt,bt){var Gt=L(this);W(arguments.length,2),we(Gt.entries,{key:A(mt),value:A(bt)}),l||this.length++,Gt.updateURL()},delete:function(Ne){for(var mt=L(this),bt=W(arguments.length,1),Gt=mt.entries,hn=A(Ne),Yt=bt<2?void 0:arguments[1],Bt=Yt===void 0?Yt:A(Yt),Lt=0;Lt<Gt.length;){var zt=Gt[Lt];if(zt.key===hn&&(Bt===void 0||zt.value===Bt)){if(nt(Gt,Lt,1),Bt!==void 0)break}else Lt++}l||(this.size=Gt.length),mt.updateURL()},get:function(mt){var bt=L(this).entries;W(arguments.length,1);for(var Gt=A(mt),hn=0;hn<bt.length;hn++)if(bt[hn].key===Gt)return bt[hn].value;return null},getAll:function(mt){var bt=L(this).entries;W(arguments.length,1);for(var Gt=A(mt),hn=[],Yt=0;Yt<bt.length;Yt++)bt[Yt].key===Gt&&we(hn,bt[Yt].value);return hn},has:function(mt){for(var bt=L(this).entries,Gt=W(arguments.length,1),hn=A(mt),Yt=Gt<2?void 0:arguments[1],Bt=Yt===void 0?Yt:A(Yt),Lt=0;Lt<bt.length;){var zt=bt[Lt++];if(zt.key===hn&&(Bt===void 0||zt.value===Bt))return!0}return!1},set:function(mt,bt){var Gt=L(this);W(arguments.length,1);for(var hn=Gt.entries,Yt=!1,Bt=A(mt),Lt=A(bt),zt=0,Kt;zt<hn.length;zt++)Kt=hn[zt],Kt.key===Bt&&(Yt?nt(hn,zt--,1):(Yt=!0,Kt.value=Lt));Yt||we(hn,{key:Bt,value:Lt}),l||(this.size=hn.length),Gt.updateURL()},sort:function(){var mt=L(this);re(mt.entries,function(bt,Gt){return bt.key>Gt.key?1:-1}),mt.updateURL()},forEach:function(mt){for(var bt=L(this).entries,Gt=x(mt,arguments.length>1?arguments[1]:void 0),hn=0,Yt;hn<bt.length;)Yt=bt[hn++],Gt(Yt.value,Yt.key,this)},keys:function(){return new $e(this,"keys")},values:function(){return new $e(this,"values")},entries:function(){return new $e(this,"entries")}},{enumerable:!0}),p(Oe,X,Oe.entries,{name:"entries"}),p(Oe,"toString",function(){return L(this).serialize()},{enumerable:!0}),l&&d(Oe,"size",{get:function(){return L(this).entries.length},configurable:!0,enumerable:!0}),g(ke,Z),i({global:!0,constructor:!0,forced:!h},{URLSearchParams:ke}),!h&&S(ce)){var je=v(te.has),Et=v(te.set),ct=function(Ne){if(T(Ne)){var mt=Ne.body,bt;if(P(mt)===Z)return bt=Ne.headers?new ce(Ne.headers):new ce,je(bt,"content-type")||Et(bt,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),I(Ne,{body:N(0,A(mt)),headers:N(0,bt)})}return Ne};if(S(V)&&i({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(mt){return V(mt,arguments.length>1?ct(arguments[1]):{})}}),S(pe)){var ut=function(mt){return E(this,G),new pe(mt,arguments.length>1?ct(arguments[1]):{})};G.constructor=ut,ut.prototype=G,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ut})}}C.exports={URLSearchParams:ke,getState:L}},50171:(C,c,t)=>{"use strict";var i=t(76156),s=t(55740),u=t(36722),v=t(69033),l=URLSearchParams,h=l.prototype,p=s(h.append),d=s(h.delete),f=s(h.forEach),g=s([].push),y=new l("a=1&a=2");y.delete("a",1),y+""!="a=2"&&i(h,"delete",function(b){var E=arguments.length,S=E<2?void 0:arguments[1];if(E&&S===void 0)return d(this,b);var w=[];f(this,function(K,_){g(w,{key:_,value:K})}),v(E,1);for(var x=u(b),P=u(S),R=0,T=0,A=!1,I=w.length,N;R<I;)N=w[R++],A||N.key===x?(A=!0,d(this,N.key)):T++;for(;T<I;)N=w[T++],N.key===x&&N.value===P||p(this,N.key,N.value)},{enumerable:!0,unsafe:!0})},77899:(C,c,t)=>{"use strict";var i=t(76156),s=t(55740),u=t(36722),v=t(69033),l=URLSearchParams,h=l.prototype,p=s(h.getAll),d=s(h.has),f=new l("a=1");f.has("a",2)&&i(h,"has",function(y){var b=arguments.length,E=b<2?void 0:arguments[1];if(b&&E===void 0)return d(this,y);var S=p(this,y);v(b,1);for(var w=u(E),x=0;x<S.length;)if(S[x++]===w)return!0;return!1},{enumerable:!0,unsafe:!0})},99950:(C,c,t)=>{t(64640)},28489:(C,c,t)=>{"use strict";var i=t(77022),s=t(55740),u=t(74066),v=URLSearchParams.prototype,l=s(v.forEach);i&&!("size"in v)&&u(v,"size",{get:function(){var p=0;return l(this,function(){p++}),p},configurable:!0,enumerable:!0})},96806:(C,c,t)=>{var i=t(83846),s=t(90731),u=t(97898),v=t(69033),l=t(36722),h=t(2592),p=s("URL"),d=h&&u(function(){p.canParse()});i({target:"URL",stat:!0,forced:!d},{canParse:function(g){var y=v(arguments.length,1),b=l(g),E=y<2||arguments[1]===void 0?void 0:l(arguments[1]);try{return!!new p(b,E)}catch{return!1}}})},49871:(C,c,t)=>{"use strict";t(74526);var i=t(83846),s=t(77022),u=t(2592),v=t(75866),l=t(31642),h=t(55740),p=t(76156),d=t(74066),f=t(99385),g=t(15275),y=t(49976),b=t(33006),E=t(26970),S=t(56491).codeAt,w=t(38865),x=t(36722),P=t(61817),R=t(69033),T=t(64640),A=t(45699),I=A.set,N=A.getterFor("URL"),K=T.URLSearchParams,_=T.getState,W=v.URL,j=v.TypeError,re=v.parseInt,X=Math.floor,Z=Math.pow,J=h("".charAt),q=h(/./.exec),L=h([].join),$=h(1 .toString),k=h([].pop),F=h([].push),V=h("".replace),pe=h([].shift),ce=h("".split),G=h("".slice),te=h("".toLowerCase),ie=h([].unshift),fe="Invalid authority",Se="Invalid scheme",he="Invalid host",me="Invalid port",_e=/[a-z]/i,we=/[\d+-.a-z]/i,Ge=/\d/,ht=/^0x/i,nt=/^[0-7]+$/,Re=/^\d+$/,ue=/^[\da-f]+$/i,ae=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ve=/[\0\t\n\r #/:<>?@[\\\]^|]/,Me=/^[\u0000-\u0020]+/,Ye=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,qe=/[\t\n\r]/g,At,It=function(ot){var We=ce(ot,"."),Ft,it,qt,vn,fn,Tt,dn;if(We.length&&We[We.length-1]==""&&We.length--,Ft=We.length,Ft>4)return ot;for(it=[],qt=0;qt<Ft;qt++){if(vn=We[qt],vn=="")return ot;if(fn=10,vn.length>1&&J(vn,0)=="0"&&(fn=q(ht,vn)?16:8,vn=G(vn,fn==8?1:2)),vn==="")Tt=0;else{if(!q(fn==10?Re:fn==8?nt:ue,vn))return ot;Tt=re(vn,fn)}F(it,Tt)}for(qt=0;qt<Ft;qt++)if(Tt=it[qt],qt==Ft-1){if(Tt>=Z(256,5-Ft))return null}else if(Tt>255)return null;for(dn=k(it),qt=0;qt<it.length;qt++)dn+=it[qt]*Z(256,3-qt);return dn},Ce=function(ot){var We=[0,0,0,0,0,0,0,0],Ft=0,it=null,qt=0,vn,fn,Tt,dn,mn,Kn,Dn,Vn=function(){return J(ot,qt)};if(Vn()==":"){if(J(ot,1)!=":")return;qt+=2,Ft++,it=Ft}for(;Vn();){if(Ft==8)return;if(Vn()==":"){if(it!==null)return;qt++,Ft++,it=Ft;continue}for(vn=fn=0;fn<4&&q(ue,Vn());)vn=vn*16+re(Vn(),16),qt++,fn++;if(Vn()=="."){if(fn==0||(qt-=fn,Ft>6))return;for(Tt=0;Vn();){if(dn=null,Tt>0)if(Vn()=="."&&Tt<4)qt++;else return;if(!q(Ge,Vn()))return;for(;q(Ge,Vn());){if(mn=re(Vn(),10),dn===null)dn=mn;else{if(dn==0)return;dn=dn*10+mn}if(dn>255)return;qt++}We[Ft]=We[Ft]*256+dn,Tt++,(Tt==2||Tt==4)&&Ft++}if(Tt!=4)return;break}else if(Vn()==":"){if(qt++,!Vn())return}else if(Vn())return;We[Ft++]=vn}if(it!==null)for(Kn=Ft-it,Ft=7;Ft!=0&&Kn>0;)Dn=We[Ft],We[Ft--]=We[it+Kn-1],We[it+--Kn]=Dn;else if(Ft!=8)return;return We},Ae=function(ot){for(var We=null,Ft=1,it=null,qt=0,vn=0;vn<8;vn++)ot[vn]!==0?(qt>Ft&&(We=it,Ft=qt),it=null,qt=0):(it===null&&(it=vn),++qt);return qt>Ft&&(We=it,Ft=qt),We},$e=function(ot){var We,Ft,it,qt;if(typeof ot=="number"){for(We=[],Ft=0;Ft<4;Ft++)ie(We,ot%256),ot=X(ot/256);return L(We,".")}else if(typeof ot=="object"){for(We="",it=Ae(ot),Ft=0;Ft<8;Ft++)qt&&ot[Ft]===0||(qt&&(qt=!1),it===Ft?(We+=Ft?":":"::",qt=!0):(We+=$(ot[Ft],16),Ft<7&&(We+=":")));return"["+We+"]"}return ot},tt={},ke=y({},tt,{" ":1,'"':1,"<":1,">":1,"`":1}),Oe=y({},ke,{"#":1,"?":1,"{":1,"}":1}),je=y({},Oe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Et=function(ot,We){var Ft=S(ot,0);return Ft>32&&Ft<127&&!g(We,ot)?ot:encodeURIComponent(ot)},ct={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ut=function(ot,We){var Ft;return ot.length==2&&q(_e,J(ot,0))&&((Ft=J(ot,1))==":"||!We&&Ft=="|")},Ne=function(ot){var We;return ot.length>1&&ut(G(ot,0,2))&&(ot.length==2||(We=J(ot,2))==="/"||We==="\\"||We==="?"||We==="#")},mt=function(ot){return ot==="."||te(ot)==="%2e"},bt=function(ot){return ot=te(ot),ot===".."||ot==="%2e."||ot===".%2e"||ot==="%2e%2e"},Gt={},hn={},Yt={},Bt={},Lt={},zt={},Kt={},vt={},Ve={},lt={},at={},Xt={},rt={},Rt={},rn={},sn={},Jn={},ze={},st={},en={},wt={},Ke=function(ot,We,Ft){var it=x(ot),qt,vn,fn;if(We){if(vn=this.parse(it),vn)throw j(vn);this.searchParams=null}else{if(Ft!==void 0&&(qt=new Ke(Ft,!0)),vn=this.parse(it,null,qt),vn)throw j(vn);fn=_(new K),fn.bindURL(this),this.searchParams=fn}};Ke.prototype={type:"URL",parse:function(ot,We,Ft){var it=this,qt=We||Gt,vn=0,fn="",Tt=!1,dn=!1,mn=!1,Kn,Dn,Vn,or;for(ot=x(ot),We||(it.scheme="",it.username="",it.password="",it.host=null,it.port=null,it.path=[],it.query=null,it.fragment=null,it.cannotBeABaseURL=!1,ot=V(ot,Me,""),ot=V(ot,Ye,"$1")),ot=V(ot,qe,""),Kn=b(ot);vn<=Kn.length;){switch(Dn=Kn[vn],qt){case Gt:if(Dn&&q(_e,Dn))fn+=te(Dn),qt=hn;else{if(We)return Se;qt=Yt;continue}break;case hn:if(Dn&&(q(we,Dn)||Dn=="+"||Dn=="-"||Dn=="."))fn+=te(Dn);else if(Dn==":"){if(We&&(it.isSpecial()!=g(ct,fn)||fn=="file"&&(it.includesCredentials()||it.port!==null)||it.scheme=="file"&&!it.host))return;if(it.scheme=fn,We){it.isSpecial()&&ct[it.scheme]==it.port&&(it.port=null);return}fn="",it.scheme=="file"?qt=Rt:it.isSpecial()&&Ft&&Ft.scheme==it.scheme?qt=Bt:it.isSpecial()?qt=vt:Kn[vn+1]=="/"?(qt=Lt,vn++):(it.cannotBeABaseURL=!0,F(it.path,""),qt=st)}else{if(We)return Se;fn="",qt=Yt,vn=0;continue}break;case Yt:if(!Ft||Ft.cannotBeABaseURL&&Dn!="#")return Se;if(Ft.cannotBeABaseURL&&Dn=="#"){it.scheme=Ft.scheme,it.path=E(Ft.path),it.query=Ft.query,it.fragment="",it.cannotBeABaseURL=!0,qt=wt;break}qt=Ft.scheme=="file"?Rt:zt;continue;case Bt:if(Dn=="/"&&Kn[vn+1]=="/")qt=Ve,vn++;else{qt=zt;continue}break;case Lt:if(Dn=="/"){qt=lt;break}else{qt=ze;continue}case zt:if(it.scheme=Ft.scheme,Dn==At)it.username=Ft.username,it.password=Ft.password,it.host=Ft.host,it.port=Ft.port,it.path=E(Ft.path),it.query=Ft.query;else if(Dn=="/"||Dn=="\\"&&it.isSpecial())qt=Kt;else if(Dn=="?")it.username=Ft.username,it.password=Ft.password,it.host=Ft.host,it.port=Ft.port,it.path=E(Ft.path),it.query="",qt=en;else if(Dn=="#")it.username=Ft.username,it.password=Ft.password,it.host=Ft.host,it.port=Ft.port,it.path=E(Ft.path),it.query=Ft.query,it.fragment="",qt=wt;else{it.username=Ft.username,it.password=Ft.password,it.host=Ft.host,it.port=Ft.port,it.path=E(Ft.path),it.path.length--,qt=ze;continue}break;case Kt:if(it.isSpecial()&&(Dn=="/"||Dn=="\\"))qt=Ve;else if(Dn=="/")qt=lt;else{it.username=Ft.username,it.password=Ft.password,it.host=Ft.host,it.port=Ft.port,qt=ze;continue}break;case vt:if(qt=Ve,Dn!="/"||J(fn,vn+1)!="/")continue;vn++;break;case Ve:if(Dn!="/"&&Dn!="\\"){qt=lt;continue}break;case lt:if(Dn=="@"){Tt&&(fn="%40"+fn),Tt=!0,Vn=b(fn);for(var Qr=0;Qr<Vn.length;Qr++){var ni=Vn[Qr];if(ni==":"&&!mn){mn=!0;continue}var yr=Et(ni,je);mn?it.password+=yr:it.username+=yr}fn=""}else if(Dn==At||Dn=="/"||Dn=="?"||Dn=="#"||Dn=="\\"&&it.isSpecial()){if(Tt&&fn=="")return fe;vn-=b(fn).length+1,fn="",qt=at}else fn+=Dn;break;case at:case Xt:if(We&&it.scheme=="file"){qt=sn;continue}else if(Dn==":"&&!dn){if(fn=="")return he;if(or=it.parseHost(fn),or)return or;if(fn="",qt=rt,We==Xt)return}else if(Dn==At||Dn=="/"||Dn=="?"||Dn=="#"||Dn=="\\"&&it.isSpecial()){if(it.isSpecial()&&fn=="")return he;if(We&&fn==""&&(it.includesCredentials()||it.port!==null))return;if(or=it.parseHost(fn),or)return or;if(fn="",qt=Jn,We)return;continue}else Dn=="["?dn=!0:Dn=="]"&&(dn=!1),fn+=Dn;break;case rt:if(q(Ge,Dn))fn+=Dn;else if(Dn==At||Dn=="/"||Dn=="?"||Dn=="#"||Dn=="\\"&&it.isSpecial()||We){if(fn!=""){var si=re(fn,10);if(si>65535)return me;it.port=it.isSpecial()&&si===ct[it.scheme]?null:si,fn=""}if(We)return;qt=Jn;continue}else return me;break;case Rt:if(it.scheme="file",Dn=="/"||Dn=="\\")qt=rn;else if(Ft&&Ft.scheme=="file")if(Dn==At)it.host=Ft.host,it.path=E(Ft.path),it.query=Ft.query;else if(Dn=="?")it.host=Ft.host,it.path=E(Ft.path),it.query="",qt=en;else if(Dn=="#")it.host=Ft.host,it.path=E(Ft.path),it.query=Ft.query,it.fragment="",qt=wt;else{Ne(L(E(Kn,vn),""))||(it.host=Ft.host,it.path=E(Ft.path),it.shortenPath()),qt=ze;continue}else{qt=ze;continue}break;case rn:if(Dn=="/"||Dn=="\\"){qt=sn;break}Ft&&Ft.scheme=="file"&&!Ne(L(E(Kn,vn),""))&&(ut(Ft.path[0],!0)?F(it.path,Ft.path[0]):it.host=Ft.host),qt=ze;continue;case sn:if(Dn==At||Dn=="/"||Dn=="\\"||Dn=="?"||Dn=="#"){if(!We&&ut(fn))qt=ze;else if(fn==""){if(it.host="",We)return;qt=Jn}else{if(or=it.parseHost(fn),or)return or;if(it.host=="localhost"&&(it.host=""),We)return;fn="",qt=Jn}continue}else fn+=Dn;break;case Jn:if(it.isSpecial()){if(qt=ze,Dn!="/"&&Dn!="\\")continue}else if(!We&&Dn=="?")it.query="",qt=en;else if(!We&&Dn=="#")it.fragment="",qt=wt;else if(Dn!=At&&(qt=ze,Dn!="/"))continue;break;case ze:if(Dn==At||Dn=="/"||Dn=="\\"&&it.isSpecial()||!We&&(Dn=="?"||Dn=="#")){if(bt(fn)?(it.shortenPath(),Dn!="/"&&!(Dn=="\\"&&it.isSpecial())&&F(it.path,"")):mt(fn)?Dn!="/"&&!(Dn=="\\"&&it.isSpecial())&&F(it.path,""):(it.scheme=="file"&&!it.path.length&&ut(fn)&&(it.host&&(it.host=""),fn=J(fn,0)+":"),F(it.path,fn)),fn="",it.scheme=="file"&&(Dn==At||Dn=="?"||Dn=="#"))for(;it.path.length>1&&it.path[0]==="";)pe(it.path);Dn=="?"?(it.query="",qt=en):Dn=="#"&&(it.fragment="",qt=wt)}else fn+=Et(Dn,Oe);break;case st:Dn=="?"?(it.query="",qt=en):Dn=="#"?(it.fragment="",qt=wt):Dn!=At&&(it.path[0]+=Et(Dn,tt));break;case en:!We&&Dn=="#"?(it.fragment="",qt=wt):Dn!=At&&(Dn=="'"&&it.isSpecial()?it.query+="%27":Dn=="#"?it.query+="%23":it.query+=Et(Dn,tt));break;case wt:Dn!=At&&(it.fragment+=Et(Dn,ke));break}vn++}},parseHost:function(ot){var We,Ft,it;if(J(ot,0)=="["){if(J(ot,ot.length-1)!="]"||(We=Ce(G(ot,1,-1)),!We))return he;this.host=We}else if(this.isSpecial()){if(ot=w(ot),q(ae,ot)||(We=It(ot),We===null))return he;this.host=We}else{if(q(ve,ot))return he;for(We="",Ft=b(ot),it=0;it<Ft.length;it++)We+=Et(Ft[it],tt);this.host=We}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme=="file"},includesCredentials:function(){return this.username!=""||this.password!=""},isSpecial:function(){return g(ct,this.scheme)},shortenPath:function(){var ot=this.path,We=ot.length;We&&(this.scheme!="file"||We!=1||!ut(ot[0],!0))&&ot.length--},serialize:function(){var ot=this,We=ot.scheme,Ft=ot.username,it=ot.password,qt=ot.host,vn=ot.port,fn=ot.path,Tt=ot.query,dn=ot.fragment,mn=We+":";return qt!==null?(mn+="//",ot.includesCredentials()&&(mn+=Ft+(it?":"+it:"")+"@"),mn+=$e(qt),vn!==null&&(mn+=":"+vn)):We=="file"&&(mn+="//"),mn+=ot.cannotBeABaseURL?fn[0]:fn.length?"/"+L(fn,"/"):"",Tt!==null&&(mn+="?"+Tt),dn!==null&&(mn+="#"+dn),mn},setHref:function(ot){var We=this.parse(ot);if(We)throw j(We);this.searchParams.update()},getOrigin:function(){var ot=this.scheme,We=this.port;if(ot=="blob")try{return new Ut(ot.path[0]).origin}catch{return"null"}return ot=="file"||!this.isSpecial()?"null":ot+"://"+$e(this.host)+(We!==null?":"+We:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(ot){this.parse(x(ot)+":",Gt)},getUsername:function(){return this.username},setUsername:function(ot){var We=b(x(ot));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var Ft=0;Ft<We.length;Ft++)this.username+=Et(We[Ft],je)}},getPassword:function(){return this.password},setPassword:function(ot){var We=b(x(ot));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var Ft=0;Ft<We.length;Ft++)this.password+=Et(We[Ft],je)}},getHost:function(){var ot=this.host,We=this.port;return ot===null?"":We===null?$e(ot):$e(ot)+":"+We},setHost:function(ot){this.cannotBeABaseURL||this.parse(ot,at)},getHostname:function(){var ot=this.host;return ot===null?"":$e(ot)},setHostname:function(ot){this.cannotBeABaseURL||this.parse(ot,Xt)},getPort:function(){var ot=this.port;return ot===null?"":x(ot)},setPort:function(ot){this.cannotHaveUsernamePasswordPort()||(ot=x(ot),ot==""?this.port=null:this.parse(ot,rt))},getPathname:function(){var ot=this.path;return this.cannotBeABaseURL?ot[0]:ot.length?"/"+L(ot,"/"):""},setPathname:function(ot){this.cannotBeABaseURL||(this.path=[],this.parse(ot,Jn))},getSearch:function(){var ot=this.query;return ot?"?"+ot:""},setSearch:function(ot){ot=x(ot),ot==""?this.query=null:(J(ot,0)=="?"&&(ot=G(ot,1)),this.query="",this.parse(ot,en)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var ot=this.fragment;return ot?"#"+ot:""},setHash:function(ot){if(ot=x(ot),ot==""){this.fragment=null;return}J(ot,0)=="#"&&(ot=G(ot,1)),this.fragment="",this.parse(ot,wt)},update:function(){this.query=this.searchParams.serialize()||null}};var Ut=function(We){var Ft=f(this,on),it=R(arguments.length,1)>1?arguments[1]:void 0,qt=I(Ft,new Ke(We,!1,it));s||(Ft.href=qt.serialize(),Ft.origin=qt.getOrigin(),Ft.protocol=qt.getProtocol(),Ft.username=qt.getUsername(),Ft.password=qt.getPassword(),Ft.host=qt.getHost(),Ft.hostname=qt.getHostname(),Ft.port=qt.getPort(),Ft.pathname=qt.getPathname(),Ft.search=qt.getSearch(),Ft.searchParams=qt.getSearchParams(),Ft.hash=qt.getHash())},on=Ut.prototype,Tn=function(ot,We){return{get:function(){return N(this)[ot]()},set:We&&function(Ft){return N(this)[We](Ft)},configurable:!0,enumerable:!0}};if(s&&(d(on,"href",Tn("serialize","setHref")),d(on,"origin",Tn("getOrigin")),d(on,"protocol",Tn("getProtocol","setProtocol")),d(on,"username",Tn("getUsername","setUsername")),d(on,"password",Tn("getPassword","setPassword")),d(on,"host",Tn("getHost","setHost")),d(on,"hostname",Tn("getHostname","setHostname")),d(on,"port",Tn("getPort","setPort")),d(on,"pathname",Tn("getPathname","setPathname")),d(on,"search",Tn("getSearch","setSearch")),d(on,"searchParams",Tn("getSearchParams")),d(on,"hash",Tn("getHash","setHash"))),p(on,"toJSON",function(){return N(this).serialize()},{enumerable:!0}),p(on,"toString",function(){return N(this).serialize()},{enumerable:!0}),W){var An=W.createObjectURL,Zt=W.revokeObjectURL;An&&p(Ut,"createObjectURL",l(An,W)),Zt&&p(Ut,"revokeObjectURL",l(Zt,W))}P(Ut,"URL"),i({global:!0,constructor:!0,forced:!u,sham:!s},{URL:Ut})},65334:(C,c,t)=>{t(49871)},36453:(C,c,t)=>{"use strict";var i=t(83846),s=t(99760);i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return s(URL.prototype.toString,this)}})},54852:(C,c)=>{"use strict";var t;t={value:!0},c.N=void 0;var i=/^([^\w]*)(javascript|data|vbscript)/im,s=/&#(\w+)(^\w|;)?/g,u=/&(newline|tab);/gi,v=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,l=/^.+(:|:)/gim,h=[".","/"];function p(g){return h.indexOf(g[0])>-1}function d(g){return g.replace(s,function(y,b){return String.fromCharCode(b)})}function f(g){var y=d(g||"").replace(u,"").replace(v,"").trim();if(!y)return"about:blank";if(p(y))return y;var b=y.match(l);if(!b)return y;var E=b[0];return i.test(E)?"about:blank":y}c.N=f},22114:(C,c,t)=>{"use strict";t.r(c),t.d(c,{default:()=>Jn});function i(ze){if(ze.sheet)return ze.sheet;for(var st=0;st<document.styleSheets.length;st++)if(document.styleSheets[st].ownerNode===ze)return document.styleSheets[st]}function s(ze){var st=document.createElement("style");return st.setAttribute("data-emotion",ze.key),ze.nonce!==void 0&&st.setAttribute("nonce",ze.nonce),st.appendChild(document.createTextNode("")),st.setAttribute("data-s",""),st}var u=function(){function ze(en){var wt=this;this._insertTag=function(Ke){var Ut;wt.tags.length===0?wt.insertionPoint?Ut=wt.insertionPoint.nextSibling:wt.prepend?Ut=wt.container.firstChild:Ut=wt.before:Ut=wt.tags[wt.tags.length-1].nextSibling,wt.container.insertBefore(Ke,Ut),wt.tags.push(Ke)},this.isSpeedy=en.speedy===void 0?!0:en.speedy,this.tags=[],this.ctr=0,this.nonce=en.nonce,this.key=en.key,this.container=en.container,this.prepend=en.prepend,this.insertionPoint=en.insertionPoint,this.before=null}var st=ze.prototype;return st.hydrate=function(wt){wt.forEach(this._insertTag)},st.insert=function(wt){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(s(this));var Ke=this.tags[this.tags.length-1];if(!1)var Ut;if(this.isSpeedy){var on=i(Ke);try{on.insertRule(wt,on.cssRules.length)}catch{}}else Ke.appendChild(document.createTextNode(wt));this.ctr++},st.flush=function(){this.tags.forEach(function(wt){return wt.parentNode&&wt.parentNode.removeChild(wt)}),this.tags=[],this.ctr=0},ze}(),v=Math.abs,l=String.fromCharCode,h=Object.assign;function p(ze,st){return b(ze,0)^45?(((st<<2^b(ze,0))<<2^b(ze,1))<<2^b(ze,2))<<2^b(ze,3):0}function d(ze){return ze.trim()}function f(ze,st){return(ze=st.exec(ze))?ze[0]:ze}function g(ze,st,en){return ze.replace(st,en)}function y(ze,st){return ze.indexOf(st)}function b(ze,st){return ze.charCodeAt(st)|0}function E(ze,st,en){return ze.slice(st,en)}function S(ze){return ze.length}function w(ze){return ze.length}function x(ze,st){return st.push(ze),ze}function P(ze,st){return ze.map(st).join("")}var R=1,T=1,A=0,I=0,N=0,K="";function _(ze,st,en,wt,Ke,Ut,on){return{value:ze,root:st,parent:en,type:wt,props:Ke,children:Ut,line:R,column:T,length:on,return:""}}function W(ze,st){return h(_("",null,null,"",null,null,0),ze,{length:-ze.length},st)}function j(){return N}function re(){return N=I>0?b(K,--I):0,T--,N===10&&(T=1,R--),N}function X(){return N=I<A?b(K,I++):0,T++,N===10&&(T=1,R++),N}function Z(){return b(K,I)}function J(){return I}function q(ze,st){return E(K,ze,st)}function L(ze){switch(ze){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $(ze){return R=T=1,A=S(K=ze),I=0,[]}function k(ze){return K="",ze}function F(ze){return d(q(I-1,te(ze===91?ze+2:ze===40?ze+1:ze)))}function V(ze){return k(ce($(ze)))}function pe(ze){for(;(N=Z())&&N<33;)X();return L(ze)>2||L(N)>3?"":" "}function ce(ze){for(;X();)switch(L(N)){case 0:append(fe(I-1),ze);break;case 2:append(F(N),ze);break;default:append(from(N),ze)}return ze}function G(ze,st){for(;--st&&X()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return q(ze,J()+(st<6&&Z()==32&&X()==32))}function te(ze){for(;X();)switch(N){case ze:return I;case 34:case 39:ze!==34&&ze!==39&&te(N);break;case 40:ze===41&&te(ze);break;case 92:X();break}return I}function ie(ze,st){for(;X()&&ze+N!==47+10;)if(ze+N===42+42&&Z()===47)break;return"/*"+q(st,I-1)+"*"+l(ze===47?ze:X())}function fe(ze){for(;!L(Z());)X();return q(ze,I)}var Se="-ms-",he="-moz-",me="-webkit-",_e="comm",we="rule",Ge="decl",ht="@page",nt="@media",Re="@import",ue="@charset",ae="@viewport",ve="@supports",Me="@document",Ye="@namespace",qe="@keyframes",At="@font-face",It="@counter-style",Ce="@font-feature-values",Ae="@layer";function $e(ze,st){for(var en="",wt=w(ze),Ke=0;Ke<wt;Ke++)en+=st(ze[Ke],Ke,ze,st)||"";return en}function tt(ze,st,en,wt){switch(ze.type){case Ae:if(ze.children.length)break;case Re:case Ge:return ze.return=ze.return||ze.value;case _e:return"";case qe:return ze.return=ze.value+"{"+$e(ze.children,wt)+"}";case we:ze.value=ze.props.join(",")}return S(en=$e(ze.children,wt))?ze.return=ze.value+"{"+en+"}":""}function ke(ze){var st=w(ze);return function(en,wt,Ke,Ut){for(var on="",Tn=0;Tn<st;Tn++)on+=ze[Tn](en,wt,Ke,Ut)||"";return on}}function Oe(ze){return function(st){st.root||(st=st.return)&&ze(st)}}function je(ze,st,en,wt){if(ze.length>-1&&!ze.return)switch(ze.type){case DECLARATION:ze.return=prefix(ze.value,ze.length,en);return;case KEYFRAMES:return serialize([copy(ze,{value:replace(ze.value,"@","@"+WEBKIT)})],wt);case RULESET:if(ze.length)return combine(ze.props,function(Ke){switch(match(Ke,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(ze,{props:[replace(Ke,/:(read-\w+)/,":"+MOZ+"$1")]})],wt);case"::placeholder":return serialize([copy(ze,{props:[replace(Ke,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(ze,{props:[replace(Ke,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(ze,{props:[replace(Ke,/:(plac\w+)/,MS+"input-$1")]})],wt)}return""})}}function Et(ze){switch(ze.type){case RULESET:ze.props=ze.props.map(function(st){return combine(tokenize(st),function(en,wt,Ke){switch(charat(en,0)){case 12:return substr(en,1,strlen(en));case 0:case 40:case 43:case 62:case 126:return en;case 58:Ke[++wt]==="global"&&(Ke[wt]="",Ke[++wt]="\f"+substr(Ke[wt],wt=1,-1));case 32:return wt===1?"":en;default:switch(wt){case 0:return ze=en,sizeof(Ke)>1?"":en;case(wt=sizeof(Ke)-1):case 2:return wt===2?en+ze+ze:en+ze;default:return en}}})})}}function ct(ze){return k(ut("",null,null,null,[""],ze=$(ze),0,[0],ze))}function ut(ze,st,en,wt,Ke,Ut,on,Tn,An){for(var Zt=0,ot=0,We=on,Ft=0,it=0,qt=0,vn=1,fn=1,Tt=1,dn=0,mn="",Kn=Ke,Dn=Ut,Vn=wt,or=mn;fn;)switch(qt=dn,dn=X()){case 40:if(qt!=108&&b(or,We-1)==58){y(or+=g(F(dn),"&","&\f"),"&\f")!=-1&&(Tt=-1);break}case 34:case 39:case 91:or+=F(dn);break;case 9:case 10:case 13:case 32:or+=pe(qt);break;case 92:or+=G(J()-1,7);continue;case 47:switch(Z()){case 42:case 47:x(mt(ie(X(),J()),st,en),An);break;default:or+="/"}break;case 123*vn:Tn[Zt++]=S(or)*Tt;case 125*vn:case 59:case 0:switch(dn){case 0:case 125:fn=0;case 59+ot:Tt==-1&&(or=g(or,/\f/g,"")),it>0&&S(or)-We&&x(it>32?bt(or+";",wt,en,We-1):bt(g(or," ","")+";",wt,en,We-2),An);break;case 59:or+=";";default:if(x(Vn=Ne(or,st,en,Zt,ot,Ke,Tn,mn,Kn=[],Dn=[],We),Ut),dn===123)if(ot===0)ut(or,st,Vn,Vn,Kn,Ut,We,Tn,Dn);else switch(Ft===99&&b(or,3)===110?100:Ft){case 100:case 108:case 109:case 115:ut(ze,Vn,Vn,wt&&x(Ne(ze,Vn,Vn,0,0,Ke,Tn,mn,Ke,Kn=[],We),Dn),Ke,Dn,We,Tn,wt?Kn:Dn);break;default:ut(or,Vn,Vn,Vn,[""],Dn,0,Tn,Dn)}}Zt=ot=it=0,vn=Tt=1,mn=or="",We=on;break;case 58:We=1+S(or),it=qt;default:if(vn<1){if(dn==123)--vn;else if(dn==125&&vn++==0&&re()==125)continue}switch(or+=l(dn),dn*vn){case 38:Tt=ot>0?1:(or+="\f",-1);break;case 44:Tn[Zt++]=(S(or)-1)*Tt,Tt=1;break;case 64:Z()===45&&(or+=F(X())),Ft=Z(),ot=We=S(mn=or+=fe(J())),dn++;break;case 45:qt===45&&S(or)==2&&(vn=0)}}return Ut}function Ne(ze,st,en,wt,Ke,Ut,on,Tn,An,Zt,ot){for(var We=Ke-1,Ft=Ke===0?Ut:[""],it=w(Ft),qt=0,vn=0,fn=0;qt<wt;++qt)for(var Tt=0,dn=E(ze,We+1,We=v(vn=on[qt])),mn=ze;Tt<it;++Tt)(mn=d(vn>0?Ft[Tt]+" "+dn:g(dn,/&\f/g,Ft[Tt])))&&(An[fn++]=mn);return _(ze,st,en,Ke===0?we:Tn,An,Zt,ot)}function mt(ze,st,en){return _(ze,st,en,_e,l(j()),E(ze,2,-2),0)}function bt(ze,st,en,wt){return _(ze,st,en,Ge,E(ze,0,wt),E(ze,wt+1,-1),wt)}var Gt=function(st,en,wt){for(var Ke=0,Ut=0;Ke=Ut,Ut=Z(),Ke===38&&Ut===12&&(en[wt]=1),!L(Ut);)X();return q(st,I)},hn=function(st,en){var wt=-1,Ke=44;do switch(L(Ke)){case 0:Ke===38&&Z()===12&&(en[wt]=1),st[wt]+=Gt(I-1,en,wt);break;case 2:st[wt]+=F(Ke);break;case 4:if(Ke===44){st[++wt]=Z()===58?"&\f":"",en[wt]=st[wt].length;break}default:st[wt]+=l(Ke)}while(Ke=X());return st},Yt=function(st,en){return k(hn($(st),en))},Bt=new WeakMap,Lt=function(st){if(!(st.type!=="rule"||!st.parent||st.length<1)){for(var en=st.value,wt=st.parent,Ke=st.column===wt.column&&st.line===wt.line;wt.type!=="rule";)if(wt=wt.parent,!wt)return;if(!(st.props.length===1&&en.charCodeAt(0)!==58&&!Bt.get(wt))&&!Ke){Bt.set(st,!0);for(var Ut=[],on=Yt(en,Ut),Tn=wt.props,An=0,Zt=0;An<on.length;An++)for(var ot=0;ot<Tn.length;ot++,Zt++)st.props[Zt]=Ut[An]?on[An].replace(/&\f/g,Tn[ot]):Tn[ot]+" "+on[An]}}},zt=function(st){if(st.type==="decl"){var en=st.value;en.charCodeAt(0)===108&&en.charCodeAt(2)===98&&(st.return="",st.value="")}},Kt="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",vt=function(st){return st.type==="comm"&&st.children.indexOf(Kt)>-1},Ve=function(st){return function(en,wt,Ke){if(!(en.type!=="rule"||st.compat)){var Ut=en.value.match(/(:first|:nth|:nth-last)-child/g);if(Ut){for(var on=!!en.parent,Tn=on?en.parent.children:Ke,An=Tn.length-1;An>=0;An--){var Zt=Tn[An];if(Zt.line<en.line)break;if(Zt.column<en.column){if(vt(Zt))return;break}}Ut.forEach(function(ot){console.error('The pseudo class "'+ot+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+ot.split("-child")[0]+'-of-type".')})}}}},lt=function(st){return st.type.charCodeAt(1)===105&&st.type.charCodeAt(0)===64},at=function(st,en){for(var wt=st-1;wt>=0;wt--)if(!lt(en[wt]))return!0;return!1},Xt=function(st){st.type="",st.value="",st.return="",st.children="",st.props=""},rt=function(st,en,wt){lt(st)&&(st.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Xt(st)):at(en,wt)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Xt(st)))};function Rt(ze,st){switch(p(ze,st)){case 5103:return me+"print-"+ze+ze;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return me+ze+ze;case 5349:case 4246:case 4810:case 6968:case 2756:return me+ze+he+ze+Se+ze+ze;case 6828:case 4268:return me+ze+Se+ze+ze;case 6165:return me+ze+Se+"flex-"+ze+ze;case 5187:return me+ze+g(ze,/(\w+).+(:[^]+)/,me+"box-$1$2"+Se+"flex-$1$2")+ze;case 5443:return me+ze+Se+"flex-item-"+g(ze,/flex-|-self/,"")+ze;case 4675:return me+ze+Se+"flex-line-pack"+g(ze,/align-content|flex-|-self/,"")+ze;case 5548:return me+ze+Se+g(ze,"shrink","negative")+ze;case 5292:return me+ze+Se+g(ze,"basis","preferred-size")+ze;case 6060:return me+"box-"+g(ze,"-grow","")+me+ze+Se+g(ze,"grow","positive")+ze;case 4554:return me+g(ze,/([^-])(transform)/g,"$1"+me+"$2")+ze;case 6187:return g(g(g(ze,/(zoom-|grab)/,me+"$1"),/(image-set)/,me+"$1"),ze,"")+ze;case 5495:case 3959:return g(ze,/(image-set\([^]*)/,me+"$1$`$1");case 4968:return g(g(ze,/(.+:)(flex-)?(.*)/,me+"box-pack:$3"+Se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+me+ze+ze;case 4095:case 3583:case 4068:case 2532:return g(ze,/(.+)-inline(.+)/,me+"$1$2")+ze;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(S(ze)-1-st>6)switch(b(ze,st+1)){case 109:if(b(ze,st+4)!==45)break;case 102:return g(ze,/(.+:)(.+)-([^]+)/,"$1"+me+"$2-$3$1"+he+(b(ze,st+3)==108?"$3":"$2-$3"))+ze;case 115:return~y(ze,"stretch")?Rt(g(ze,"stretch","fill-available"),st)+ze:ze}break;case 4949:if(b(ze,st+1)!==115)break;case 6444:switch(b(ze,S(ze)-3-(~y(ze,"!important")&&10))){case 107:return g(ze,":",":"+me)+ze;case 101:return g(ze,/(.+:)([^;!]+)(;|!.+)?/,"$1"+me+(b(ze,14)===45?"inline-":"")+"box$3$1"+me+"$2$3$1"+Se+"$2box$3")+ze}break;case 5936:switch(b(ze,st+11)){case 114:return me+ze+Se+g(ze,/[svh]\w+-[tblr]{2}/,"tb")+ze;case 108:return me+ze+Se+g(ze,/[svh]\w+-[tblr]{2}/,"tb-rl")+ze;case 45:return me+ze+Se+g(ze,/[svh]\w+-[tblr]{2}/,"lr")+ze}return me+ze+Se+ze+ze}return ze}var rn=function(st,en,wt,Ke){if(st.length>-1&&!st.return)switch(st.type){case Ge:st.return=Rt(st.value,st.length);break;case qe:return $e([W(st,{value:g(st.value,"@","@"+me)})],Ke);case we:if(st.length)return P(st.props,function(Ut){switch(f(Ut,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $e([W(st,{props:[g(Ut,/:(read-\w+)/,":"+he+"$1")]})],Ke);case"::placeholder":return $e([W(st,{props:[g(Ut,/:(plac\w+)/,":"+me+"input-$1")]}),W(st,{props:[g(Ut,/:(plac\w+)/,":"+he+"$1")]}),W(st,{props:[g(Ut,/:(plac\w+)/,Se+"input-$1")]})],Ke)}return""})}},sn=[rn],Jn=function(st){var en=st.key;if(en==="css"){var wt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(wt,function(vn){var fn=vn.getAttribute("data-emotion");fn.indexOf(" ")!==-1&&(document.head.appendChild(vn),vn.setAttribute("data-s",""))})}var Ke=st.stylisPlugins||sn,Ut={},on,Tn=[];on=st.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+en+' "]'),function(vn){for(var fn=vn.getAttribute("data-emotion").split(" "),Tt=1;Tt<fn.length;Tt++)Ut[fn[Tt]]=!0;Tn.push(vn)});var An,Zt=[Lt,zt];{var ot,We=[tt,Oe(function(vn){ot.insert(vn)})],Ft=ke(Zt.concat(Ke,We)),it=function(fn){return $e(ct(fn),Ft)};An=function(fn,Tt,dn,mn){ot=dn,it(fn?fn+"{"+Tt.styles+"}":Tt.styles),mn&&(qt.inserted[Tt.name]=!0)}}var qt={key:en,sheet:new u({key:en,container:on,nonce:st.nonce,speedy:st.speedy,prepend:st.prepend,insertionPoint:st.insertionPoint}),nonce:st.nonce,inserted:Ut,registered:{},insert:An};return qt.sheet.hydrate(Tn),qt}},42844:(C,c,t)=>{"use strict";t.r(c),t.d(c,{cache:()=>R,css:()=>x,cx:()=>y,flush:()=>f,getRegisteredStyles:()=>E,hydrate:()=>g,injectGlobal:()=>S,keyframes:()=>w,merge:()=>b,sheet:()=>P});var i=t(22114),s=t(64054),u=t(10683);function v(T,A){if(T.inserted[A.name]===void 0)return T.insert("",A,T.sheet,!0)}function l(T,A,I){var N=[],K=(0,u.getRegisteredStyles)(T,N,I);return N.length<2?I:K+A(N)}var h=function(A){var I=(0,i.default)(A);I.sheet.speedy=function(j){this.isSpeedy=j},I.compat=!0;var N=function(){for(var re=arguments.length,X=new Array(re),Z=0;Z<re;Z++)X[Z]=arguments[Z];var J=(0,s.serializeStyles)(X,I.registered,void 0);return(0,u.insertStyles)(I,J,!1),I.key+"-"+J.name},K=function(){for(var re=arguments.length,X=new Array(re),Z=0;Z<re;Z++)X[Z]=arguments[Z];var J=(0,s.serializeStyles)(X,I.registered),q="animation-"+J.name;return v(I,{name:J.name,styles:"@keyframes "+q+"{"+J.styles+"}"}),q},_=function(){for(var re=arguments.length,X=new Array(re),Z=0;Z<re;Z++)X[Z]=arguments[Z];var J=(0,s.serializeStyles)(X,I.registered);v(I,J)},W=function(){for(var re=arguments.length,X=new Array(re),Z=0;Z<re;Z++)X[Z]=arguments[Z];return l(I.registered,N,p(X))};return{css:N,cx:W,injectGlobal:_,keyframes:K,hydrate:function(re){re.forEach(function(X){I.inserted[X]=!0})},flush:function(){I.registered={},I.inserted={},I.sheet.flush()},sheet:I.sheet,cache:I,getRegisteredStyles:u.getRegisteredStyles.bind(null,I.registered),merge:l.bind(null,I.registered,N)}},p=function T(A){for(var I="",N=0;N<A.length;N++){var K=A[N];if(K!=null){var _=void 0;switch(typeof K){case"boolean":break;case"object":{if(Array.isArray(K))_=T(K);else{_="";for(var W in K)K[W]&&W&&(_&&(_+=" "),_+=W)}break}default:_=K}_&&(I&&(I+=" "),I+=_)}}return I},d=h({key:"css"}),f=d.flush,g=d.hydrate,y=d.cx,b=d.merge,E=d.getRegisteredStyles,S=d.injectGlobal,w=d.keyframes,x=d.css,P=d.sheet,R=d.cache},64054:(C,c,t)=>{"use strict";t.r(c),t.d(c,{serializeStyles:()=>_});function i(W){for(var j=0,re,X=0,Z=W.length;Z>=4;++X,Z-=4)re=W.charCodeAt(X)&255|(W.charCodeAt(++X)&255)<<8|(W.charCodeAt(++X)&255)<<16|(W.charCodeAt(++X)&255)<<24,re=(re&65535)*1540483477+((re>>>16)*59797<<16),re^=re>>>24,j=(re&65535)*1540483477+((re>>>16)*59797<<16)^(j&65535)*1540483477+((j>>>16)*59797<<16);switch(Z){case 3:j^=(W.charCodeAt(X+2)&255)<<16;case 2:j^=(W.charCodeAt(X+1)&255)<<8;case 1:j^=W.charCodeAt(X)&255,j=(j&65535)*1540483477+((j>>>16)*59797<<16)}return j^=j>>>13,j=(j&65535)*1540483477+((j>>>16)*59797<<16),((j^j>>>15)>>>0).toString(36)}var s={animationIterationCount:1,aspectRatio: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};function u(W){var j=Object.create(null);return function(re){return j[re]===void 0&&(j[re]=W(re)),j[re]}}var v=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,l="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",h=/[A-Z]|^ms/g,p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,d=function(j){return j.charCodeAt(1)===45},f=function(j){return j!=null&&typeof j!="boolean"},g=u(function(W){return d(W)?W:W.replace(h,"-$&").toLowerCase()}),y=function(j,re){switch(j){case"animation":case"animationName":if(typeof re=="string")return re.replace(p,function(X,Z,J){return K={name:Z,styles:J,next:K},Z})}return s[j]!==1&&!d(j)&&typeof re=="number"&&re!==0?re+"px":re};if(!1)var b,E,S,w,x,P;var R=null;function T(W,j,re){if(re==null)return"";if(re.__emotion_styles!==void 0)return re;switch(typeof re){case"boolean":return"";case"object":{if(re.anim===1)return K={name:re.name,styles:re.styles,next:K},re.name;if(re.styles!==void 0){var X=re.next;if(X!==void 0)for(;X!==void 0;)K={name:X.name,styles:X.styles,next:K},X=X.next;var Z=re.styles+";";return Z}return A(W,j,re)}case"function":{if(W!==void 0){var J=K,q=re(W);return K=J,T(W,j,q)}break}case"string":if(!1)var L,$;break}if(j==null)return re;var k=j[re];return k!==void 0?k:re}function A(W,j,re){var X="";if(Array.isArray(re))for(var Z=0;Z<re.length;Z++)X+=T(W,j,re[Z])+";";else for(var J in re){var q=re[J];if(typeof q!="object")j!=null&&j[q]!==void 0?X+=J+"{"+j[q]+"}":f(q)&&(X+=g(J)+":"+y(J,q)+";");else if(Array.isArray(q)&&typeof q[0]=="string"&&(j==null||j[q[0]]===void 0))for(var L=0;L<q.length;L++)f(q[L])&&(X+=g(J)+":"+y(J,q[L])+";");else{var $=T(W,j,q);switch(J){case"animation":case"animationName":{X+=g(J)+":"+$+";";break}default:X+=J+"{"+$+"}"}}}return X}var I=/label:\s*([^\s;\n{]+)\s*(;|$)/g,N,K,_=function(j,re,X){if(j.length===1&&typeof j[0]=="object"&&j[0]!==null&&j[0].styles!==void 0)return j[0];var Z=!0,J="";K=void 0;var q=j[0];q==null||q.raw===void 0?(Z=!1,J+=T(X,re,q)):J+=q[0];for(var L=1;L<j.length;L++)J+=T(X,re,j[L]),Z&&(J+=q[L]);var $;I.lastIndex=0;for(var k="",F;(F=I.exec(J))!==null;)k+="-"+F[1];var V=i(J)+k;return{name:V,styles:J,next:K}}},10683:(C,c,t)=>{"use strict";t.r(c),t.d(c,{getRegisteredStyles:()=>s,insertStyles:()=>v,registerStyles:()=>u});var i=!0;function s(l,h,p){var d="";return p.split(" ").forEach(function(f){l[f]!==void 0?h.push(l[f]+";"):d+=f+" "}),d}var u=function(h,p,d){var f=h.key+"-"+p.name;(d===!1||i===!1)&&h.registered[f]===void 0&&(h.registered[f]=p.styles)},v=function(h,p,d){u(h,p,d);var f=h.key+"-"+p.name;if(h.inserted[p.name]===void 0){var g=p;do h.insert(p===g?"."+f:"",g,h.sheet,!0),g=g.next;while(g!==void 0)}}},17265:(C,c,t)=>{"use strict";t.r(c),t.d(c,{default:()=>i});var i=function(u){var v=new WeakMap;return function(l){if(v.has(l))return v.get(l);var h=u(l);return v.set(l,h),h}}},26406:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var i=t(80549),s=t(98778),u=t(13597),v=t(71140),l=t(27702),h=t(65469);function p(qe){return qe&&typeof qe=="object"&&"default"in qe?qe:{default:qe}}var d=p(l);function f(qe){return typeof qe=="function"}function g(qe){return f(qe?.lift)}function y(qe){return function(At){if(g(At))return At.lift(function(It){try{return qe(It,this)}catch(Ce){this.error(Ce)}});throw new TypeError("Unable to lift unknown Observable type")}}function b(qe){var At=function(Ce){Error.call(Ce),Ce.stack=new Error().stack},It=qe(At);return It.prototype=Object.create(Error.prototype),It.prototype.constructor=It,It}var E=b(function(qe){return function(It){qe(this),this.message=It?It.length+` errors occurred during unsubscription: `+It.map(function(Ce,Ae){return Ae+1+") "+Ce.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=It}});function S(qe,At){if(qe){var It=qe.indexOf(At);0<=It&&qe.splice(It,1)}}var w=function(){function qe(At){this.initialTeardown=At,this.closed=!1,this._parentage=null,this._finalizers=null}return qe.prototype.unsubscribe=function(){var At,It,Ce,Ae,$e;if(!this.closed){this.closed=!0;var tt=this._parentage;if(tt)if(this._parentage=null,Array.isArray(tt))try{for(var ke=v.__values(tt),Oe=ke.next();!Oe.done;Oe=ke.next()){var je=Oe.value;je.remove(this)}}catch(bt){At={error:bt}}finally{try{Oe&&!Oe.done&&(It=ke.return)&&It.call(ke)}finally{if(At)throw At.error}}else tt.remove(this);var Et=this.initialTeardown;if(f(Et))try{Et()}catch(bt){$e=bt instanceof E?bt.errors:[bt]}var ct=this._finalizers;if(ct){this._finalizers=null;try{for(var ut=v.__values(ct),Ne=ut.next();!Ne.done;Ne=ut.next()){var mt=Ne.value;try{P(mt)}catch(bt){$e=$e??[],bt instanceof E?$e=v.__spreadArray(v.__spreadArray([],v.__read($e)),v.__read(bt.errors)):$e.push(bt)}}}catch(bt){Ce={error:bt}}finally{try{Ne&&!Ne.done&&(Ae=ut.return)&&Ae.call(ut)}finally{if(Ce)throw Ce.error}}}if($e)throw new E($e)}},qe.prototype.add=function(At){var It;if(At&&At!==this)if(this.closed)P(At);else{if(At instanceof qe){if(At.closed||At._hasParent(this))return;At._addParent(this)}(this._finalizers=(It=this._finalizers)!==null&&It!==void 0?It:[]).push(At)}},qe.prototype._hasParent=function(At){var It=this._parentage;return It===At||Array.isArray(It)&&It.includes(At)},qe.prototype._addParent=function(At){var It=this._parentage;this._parentage=Array.isArray(It)?(It.push(At),It):It?[It,At]:At},qe.prototype._removeParent=function(At){var It=this._parentage;It===At?this._parentage=null:Array.isArray(It)&&S(It,At)},qe.prototype.remove=function(At){var It=this._finalizers;It&&S(It,At),At instanceof qe&&At._removeParent(this)},qe.EMPTY=function(){var At=new qe;return At.closed=!0,At}(),qe}();w.EMPTY;function x(qe){return qe instanceof w||qe&&"closed"in qe&&f(qe.remove)&&f(qe.add)&&f(qe.unsubscribe)}function P(qe){f(qe)?qe():qe.unsubscribe()}var R={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},T={setTimeout:function(qe,At){for(var It=[],Ce=2;Ce<arguments.length;Ce++)It[Ce-2]=arguments[Ce];return setTimeout.apply(void 0,v.__spreadArray([qe,At],v.__read(It)))},clearTimeout:function(qe){return clearTimeout(qe)},delegate:void 0};function A(qe){T.setTimeout(function(){throw qe})}function I(){}var N=function(qe){v.__extends(At,qe);function At(It){var Ce=qe.call(this)||this;return Ce.isStopped=!1,It?(Ce.destination=It,x(It)&&It.add(Ce)):Ce.destination=Z,Ce}return At.create=function(It,Ce,Ae){return new j(It,Ce,Ae)},At.prototype.next=function(It){this.isStopped||this._next(It)},At.prototype.error=function(It){this.isStopped||(this.isStopped=!0,this._error(It))},At.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},At.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,qe.prototype.unsubscribe.call(this),this.destination=null)},At.prototype._next=function(It){this.destination.next(It)},At.prototype._error=function(It){try{this.destination.error(It)}finally{this.unsubscribe()}},At.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},At}(w),K=Function.prototype.bind;function _(qe,At){return K.call(qe,At)}var W=function(){function qe(At){this.partialObserver=At}return qe.prototype.next=function(At){var It=this.partialObserver;if(It.next)try{It.next(At)}catch(Ce){re(Ce)}},qe.prototype.error=function(At){var It=this.partialObserver;if(It.error)try{It.error(At)}catch(Ce){re(Ce)}else re(At)},qe.prototype.complete=function(){var At=this.partialObserver;if(At.complete)try{At.complete()}catch(It){re(It)}},qe}(),j=function(qe){v.__extends(At,qe);function At(It,Ce,Ae){var $e=qe.call(this)||this,tt;if(f(It)||!It)tt={next:It??void 0,error:Ce??void 0,complete:Ae??void 0};else{var ke;$e&&R.useDeprecatedNextContext?(ke=Object.create(It),ke.unsubscribe=function(){return $e.unsubscribe()},tt={next:It.next&&_(It.next,ke),error:It.error&&_(It.error,ke),complete:It.complete&&_(It.complete,ke)}):tt=It}return $e.destination=new W(tt),$e}return At}(N);function re(qe){A(qe)}function X(qe){throw qe}var Z={closed:!0,next:I,error:X,complete:I};function J(qe,At,It,Ce,Ae){return new q(qe,At,It,Ce,Ae)}var q=function(qe){v.__extends(At,qe);function At(It,Ce,Ae,$e,tt,ke){var Oe=qe.call(this,It)||this;return Oe.onFinalize=tt,Oe.shouldUnsubscribe=ke,Oe._next=Ce?function(je){try{Ce(je)}catch(Et){It.error(Et)}}:qe.prototype._next,Oe._error=$e?function(je){try{$e(je)}catch(Et){It.error(Et)}finally{this.unsubscribe()}}:qe.prototype._error,Oe._complete=Ae?function(){try{Ae()}catch(je){It.error(je)}finally{this.unsubscribe()}}:qe.prototype._complete,Oe}return At.prototype.unsubscribe=function(){var It;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var Ce=this.closed;qe.prototype.unsubscribe.call(this),!Ce&&((It=this.onFinalize)===null||It===void 0||It.call(this))}},At}(N);function L(qe,At){return y(function(It,Ce){var Ae=0;It.subscribe(J(Ce,function($e){Ce.next(qe.call(At,$e,Ae++))}))})}var $=Object.defineProperty,k=Object.defineProperties,F=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,G=(qe,At,It)=>At in qe?$(qe,At,{enumerable:!0,configurable:!0,writable:!0,value:It}):qe[At]=It,te=(qe,At)=>{for(var It in At||(At={}))pe.call(At,It)&&G(qe,It,At[It]);if(V)for(var It of V(At))ce.call(At,It)&&G(qe,It,At[It]);return qe},ie=(qe,At)=>k(qe,F(At));function fe(qe,At){return new s.Observable(It=>{let Ce,Ae,$e=u.LoadingState.Loading,tt=1,ke=1,Oe=!1;const je={next:Et=>{$e=Et.state;let ct=!1;if($e!==u.LoadingState.Error){Ce=At.getNextQuery(Et);const Ne=At.shouldCancel();Ce&&Ne&&(Oe=Ne,Ce=void 0),ct=!0}const ut=At.process(Et.data);ct&&(Ce?(ut.length&&ut[0].length?$e=u.LoadingState.Streaming:$e=u.LoadingState.Loading,tt=tt*2>10?10:tt*2):($e=u.LoadingState.Done,tt=0)),It.next(ie(te({},Et),{data:ut,state:$e,key:qe.requestId}))},error:Et=>{It.error(Et)},complete:()=>{if(Ae&&(Ae.unsubscribe(),Ae=void 0),Ce){const Et=Ce;setTimeout(()=>{Ae=At.query(ie(te({},qe),{requestId:`${qe.requestId}.${++ke}`,targets:[Et]})).subscribe(je),Ce=void 0},tt*1e3)}else It.complete()}};return Ae=At.query(qe).subscribe(je),function(){je.complete(),(Ce||Oe)&&At.onCancel(),Ce=void 0}})}var Se=Object.defineProperty,he=Object.defineProperties,me=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,ht=(qe,At,It)=>At in qe?Se(qe,At,{enumerable:!0,configurable:!0,writable:!0,value:It}):qe[At]=It,nt=(qe,At)=>{for(var It in At||(At={}))we.call(At,It)&&ht(qe,It,At[It]);if(_e)for(var It of _e(At))Ge.call(At,It)&&ht(qe,It,At[It]);return qe},Re=(qe,At)=>he(qe,me(At));const ue=["started","submitted","running"],ae=(qe="")=>ue.includes(qe),ve=qe=>!!(typeof qe=="object"&&qe?.hasOwnProperty("queryID")&&qe?.hasOwnProperty("status"));class Me extends i.DataSourceWithBackend{constructor(At,It=!1){super(At),this.runningQueries={},this.requestCounter=100,this.cancel=Ce=>{this.storeQuery(Ce,{shouldCancel:!0})},this.asyncQueryDataSupport=It}query(At){if(this.asyncQueryDataSupport){const It=this.filterQuery?At.targets.filter(this.filterQuery):At.targets;if(!It.length)return s.of({data:[]});const Ce=[];for(let Ae of It)Ae.hide||Ce.push(this.doSingle(Ae,At));return s.merge(...Ce)}else return super.query(At)}storeQuery(At,It){const Ce=JSON.stringify(At),Ae=this.runningQueries[Ce]||{};this.runningQueries[Ce]=nt(nt({},Ae),It)}getQuery(At){const It=JSON.stringify(At);return this.runningQueries[It]||{}}removeQuery(At){const It=JSON.stringify(At);delete this.runningQueries[It]}doSingle(At,It){let Ce,Ae,$e=[];return fe(Re(nt({},It),{targets:[At],requestId:`aws_ts_${this.requestCounter++}`}),{getNextQuery:tt=>{var ke,Oe;if((ke=tt.data)!=null&&ke.length){const Et=(Oe=tt.data[0].meta)==null?void 0:Oe.custom;if(ve(Et)&&ae(Et.status))return Ce=Et.queryID,Ae=Et.status,this.storeQuery(At,{queryID:Ce}),Re(nt({},At),{queryID:Ce})}this.removeQuery(At)},query:tt=>{const{range:ke,targets:Oe,requestId:je,intervalMs:Et,maxDataPoints:ct}=tt,[ut]=Oe,Ne=nt(nt({},ut),this.asyncQueryDataSupport?{meta:{queryFlow:"async"}}:{}),mt={queries:[nt(Re(nt({},Ne),{intervalMs:Et,maxDataPoints:ct,datasource:this==null?void 0:this.getRef(),datasourceId:this.id}),this.applyTemplateVariables(Ne,tt.scopedVars))],range:ke,from:ke.from.valueOf().toString(),to:ke.to.valueOf().toString()};let bt={};ae(Ae)&&(bt={"X-Cache-Skip":!0});const Gt={method:"POST",url:"/api/ds/query",data:mt,requestId:je,headers:bt};return i.getBackendSrv().fetch(Gt).pipe(L(hn=>({data:i.toDataQueryResponse(hn).data})))},process:tt=>{for(const ke of tt)ke.fields.length>0&&$e.push(ke);return $e},shouldCancel:()=>{const{shouldCancel:tt}=this.getQuery(At);return!!tt},onCancel:()=>{Ce&&(this.removeQuery(At),this.postResource("cancel",{queryId:Ce}).catch(tt=>{tt.isHandled=!0,console.error(`error cancelling query ID: ${Ce}`,tt)}))}})}}const Ye=qe=>{const{state:At}=qe,[It,Ce]=l.useState(!1),[Ae,$e]=l.useState(!1),[tt,ke]=l.useState(At),[Oe,je]=l.useState(qe.query);l.useEffect(()=>{At&&tt!==At&&At!==u.LoadingState.Loading&&(Ce(!1),$e(!1)),ke(At)},[At,tt]);const Et=()=>{Ce(!0),je(qe.query),qe.onRunQuery()},ct=qe.onCancelQuery?()=>{var ut;(ut=qe.onCancelQuery)==null||ut.call(qe,Oe),$e(!0)}:void 0;return d.default.createElement(d.default.Fragment,null,d.default.createElement(h.Button,{variant:qe.enableRun?"primary":"secondary",size:"sm",onClick:Et,icon:It&&!Ae?"fa fa-spinner":void 0,disabled:At===u.LoadingState.Loading||!qe.enableRun},"Run query"),ct&&d.default.createElement(h.Button,{variant:It&&!Ae?"primary":"secondary",size:"sm",disabled:!It||Ae,icon:Ae?"fa fa-spinner":void 0,onClick:ct},"Stop query"))};c.DatasourceWithAsyncBackend=Me,c.RunQueryButtons=Ye},84923:(C,c,t)=>{"use strict";var i;i={value:!0};var s=t(27702),u=t(65469),v=t(13597),l=t(89949),h=t(88026),p=t(26406);function d(We){return We&&typeof We=="object"&&"default"in We?We:{default:We}}var f=d(s);const g=["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ca-central-1","cn-north-1","cn-northwest-1","eu-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-gov-east-1","us-gov-west-1","us-iso-east-1","us-isob-east-1","us-west-1","us-west-2"];var y=(We=>(We.Keys="keys",We.Credentials="credentials",We.Default="default",We.EC2IAMRole="ec2_iam_role",We.ARN="arn",We))(y||{});const b=[{label:"Workspace IAM Role",value:y.EC2IAMRole},{label:"AWS SDK Default",value:y.Default},{label:"Access & secret key",value:y.Keys},{label:"Credentials file",value:y.Credentials}];var E=Object.defineProperty,S=Object.defineProperties,w=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,T=(We,Ft,it)=>Ft in We?E(We,Ft,{enumerable:!0,configurable:!0,writable:!0,value:it}):We[Ft]=it,A=(We,Ft)=>{for(var it in Ft||(Ft={}))P.call(Ft,it)&&T(We,it,Ft[it]);if(x)for(var it of x(Ft))R.call(Ft,it)&&T(We,it,Ft[it]);return We},I=(We,Ft)=>S(We,w(Ft));const N=28,K=We=>({value:We,label:We}),_=We=>{var Ft,it,qt,vn,fn,Tt,dn,mn;const[Kn,Dn]=s.useState((We.standardRegions||g).map(K)),{loadRegions:Vn,onOptionsChange:or,skipHeader:Qr=!1,skipEndpoint:ni=!1}=We,{labelWidth:yr=N,options:si}=We;let Yr=si.jsonData.profile;Yr===void 0&&(Yr=si.database);const Ci=window.grafanaBootData.settings,Ni=s.useMemo(()=>{var Ca;return(Ca=Ci.awsAllowedAuthProviders)!=null?Ca:[y.Default,y.Keys,y.Credentials]},[Ci.awsAllowedAuthProviders]),fa=(Ft=Ci.awsAssumeRoleEnabled)!=null?Ft:!0,ha=b.find(Ca=>Ca.value===si.jsonData.authType);return s.useEffect(()=>{!ha&&Ni.length&&or(I(A({},si),{jsonData:I(A({},si.jsonData),{authType:Ni[0]})}))},[ha,si,or,Ni]),s.useEffect(()=>{Vn&&Vn().then(Ca=>Dn(Ca.map(K)))},[Vn]),f.default.createElement(u.FieldSet,{label:Qr?"":"Connection Details","data-testid":"connection-config"},f.default.createElement(u.InlineField,{label:"Authentication Provider",labelWidth:yr,tooltip:"Specify which AWS credentials chain to use."},f.default.createElement(u.Select,{"aria-label":"Authentication Provider",className:"width-30",value:ha,options:b.filter(Ca=>Ni.includes(Ca.value)),defaultValue:si.jsonData.authType,onChange:Ca=>{v.onUpdateDatasourceJsonDataOptionSelect(We,"authType")(Ca)},menuShouldPortal:!0})),si.jsonData.authType==="credentials"&&f.default.createElement(u.InlineField,{label:"Credentials Profile Name",labelWidth:yr,tooltip:"Credentials profile name, as specified in ~/.aws/credentials, leave blank for default."},f.default.createElement(u.Input,{"aria-label":"Credentials Profile Name",className:"width-30",placeholder:"default",value:Yr,onChange:v.onUpdateDatasourceJsonDataOption(We,"profile")})),si.jsonData.authType==="keys"&&f.default.createElement(f.default.Fragment,null,f.default.createElement(u.InlineField,{label:"Access Key ID",labelWidth:yr},(it=We.options.secureJsonFields)!=null&&it.accessKey?f.default.createElement(u.ButtonGroup,{className:"width-30"},f.default.createElement(u.Input,{disabled:!0,placeholder:"Configured"}),f.default.createElement(u.ToolbarButton,{icon:"edit",tooltip:"Edit Access Key ID",type:"button",onClick:v.onUpdateDatasourceResetOption(We,"accessKey")})):f.default.createElement(u.Input,{"aria-label":"Access Key ID",className:"width-30",value:(vn=(qt=si.secureJsonData)==null?void 0:qt.accessKey)!=null?vn:"",onChange:v.onUpdateDatasourceSecureJsonDataOption(We,"accessKey")})),f.default.createElement(u.InlineField,{label:"Secret Access Key",labelWidth:yr},(fn=We.options.secureJsonFields)!=null&&fn.secretKey?f.default.createElement(u.ButtonGroup,{className:"width-30"},f.default.createElement(u.Input,{disabled:!0,placeholder:"Configured"}),f.default.createElement(u.ToolbarButton,{icon:"edit",type:"button",tooltip:"Edit Secret Access Key",onClick:v.onUpdateDatasourceResetOption(We,"secretKey")})):f.default.createElement(u.Input,{"aria-label":"Secret Access Key",className:"width-30",value:(dn=(Tt=si.secureJsonData)==null?void 0:Tt.secretKey)!=null?dn:"",onChange:v.onUpdateDatasourceSecureJsonDataOption(We,"secretKey")}))),fa&&f.default.createElement(f.default.Fragment,null,f.default.createElement(u.InlineField,{label:"Assume Role ARN",labelWidth:yr,tooltip:"Optionally, specify the ARN of a role to assume. Specifying a role here will ensure that the selected authentication provider is used to assume the specified role rather than using the credentials directly. Leave blank if you don't need to assume a role at all"},f.default.createElement(u.Input,{"aria-label":"Assume Role ARN",className:"width-30",placeholder:"arn:aws:iam:*",value:si.jsonData.assumeRoleArn||"",onChange:v.onUpdateDatasourceJsonDataOption(We,"assumeRoleArn")})),f.default.createElement(u.InlineField,{label:"External ID",labelWidth:yr,tooltip:"If you are assuming a role in another account, that has been created with an external ID, specify the external ID here."},f.default.createElement(u.Input,{"aria-label":"External ID",className:"width-30",placeholder:"External ID",value:si.jsonData.externalId||"",onChange:v.onUpdateDatasourceJsonDataOption(We,"externalId")}))),!ni&&f.default.createElement(u.InlineField,{label:"Endpoint",labelWidth:yr,tooltip:"Optionally, specify a custom endpoint for the service"},f.default.createElement(u.Input,{"aria-label":"Endpoint",className:"width-30",placeholder:(mn=We.defaultEndpoint)!=null?mn:"https://{service}.{region}.amazonaws.com",value:si.jsonData.endpoint||"",onChange:v.onUpdateDatasourceJsonDataOption(We,"endpoint")})),f.default.createElement(u.InlineField,{label:"Default Region",labelWidth:yr,tooltip:"Specify the region, such as for US West (Oregon) use ` us-west-2 ` as the region."},f.default.createElement(u.Select,{"aria-label":"Default Region",className:"width-30",value:Kn.find(Ca=>Ca.value===si.jsonData.defaultRegion),options:Kn,defaultValue:si.jsonData.defaultRegion,allowCustomValue:!0,onChange:v.onUpdateDatasourceJsonDataOptionSelect(We,"defaultRegion"),formatCreateLabel:Ca=>`Use region: ${Ca}`,menuShouldPortal:!0})),We.children)};var W=Object.defineProperty,j=Object.defineProperties,re=Object.getOwnPropertyDescriptors,X=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,q=(We,Ft,it)=>Ft in We?W(We,Ft,{enumerable:!0,configurable:!0,writable:!0,value:it}):We[Ft]=it,L=(We,Ft)=>{for(var it in Ft||(Ft={}))Z.call(Ft,it)&&q(We,it,Ft[it]);if(X)for(var it of X(Ft))J.call(Ft,it)&&q(We,it,Ft[it]);return We},$=(We,Ft)=>j(We,re(Ft));const k=We=>{var Ft,it,qt,vn;const{onOptionsChange:fn,options:Tt}=We,dn={onOptionsChange:mn=>{var Kn,Dn,Vn,or;const Qr=$(L({},Tt),{jsonData:$(L({},Tt.jsonData),{sigV4AuthType:mn.jsonData.authType,sigV4Profile:mn.jsonData.profile,sigV4AssumeRoleArn:mn.jsonData.assumeRoleArn,sigV4ExternalId:mn.jsonData.externalId,sigV4Region:mn.jsonData.defaultRegion,sigV4Endpoint:mn.jsonData.endpoint}),secureJsonFields:{sigV4AccessKey:(Kn=mn.secureJsonFields)==null?void 0:Kn.accessKey,sigV4SecretKey:(Dn=mn.secureJsonFields)==null?void 0:Dn.secretKey},secureJsonData:{sigV4AccessKey:(Vn=mn.secureJsonData)==null?void 0:Vn.accessKey,sigV4SecretKey:(or=mn.secureJsonData)==null?void 0:or.secretKey}});fn(Qr)},options:$(L({},Tt),{jsonData:$(L({},Tt.jsonData),{authType:Tt.jsonData.sigV4AuthType,profile:Tt.jsonData.sigV4Profile,assumeRoleArn:Tt.jsonData.sigV4AssumeRoleArn,externalId:Tt.jsonData.sigV4ExternalId,defaultRegion:Tt.jsonData.sigV4Region,endpoint:Tt.jsonData.sigV4Endpoint}),secureJsonFields:{accessKey:(Ft=Tt.secureJsonFields)==null?void 0:Ft.sigV4AccessKey,secretKey:(it=Tt.secureJsonFields)==null?void 0:it.sigV4SecretKey},secureJsonData:{accessKey:(qt=Tt.secureJsonData)==null?void 0:qt.sigV4AccessKey,secretKey:(vn=Tt.secureJsonData)==null?void 0:vn.sigV4SecretKey}})};return f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:"gf-form"},f.default.createElement("h6",null,"SigV4 Auth Details")),f.default.createElement(_,$(L({},dn),{skipHeader:!0,skipEndpoint:!0})))},F="__default";var V=Object.defineProperty,pe=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,fe=(We,Ft,it)=>Ft in We?V(We,Ft,{enumerable:!0,configurable:!0,writable:!0,value:it}):We[Ft]=it,Se=(We,Ft)=>{for(var it in Ft||(Ft={}))te.call(Ft,it)&&fe(We,it,Ft[it]);if(G)for(var it of G(Ft))ie.call(Ft,it)&&fe(We,it,Ft[it]);return We},he=(We,Ft)=>pe(We,ce(Ft));function me(We){const[Ft,it]=s.useState(We.value||We.default||null),[qt,vn]=s.useState(Ft?[Ft]:[]),[fn,Tt]=s.useState(We.dependencies),[dn,mn]=s.useState(!1),[Kn,Dn]=s.useState(!1),Vn=s.useMemo(()=>{const Yr=[{label:`default (${We.default})`,value:F,description:"Default value set in the data source"}];return We.value&&We.value!==F&&Yr.push({label:We.value,value:We.value}),Yr},[We.default,We.value]),[or,Qr]=s.useState(We.default?Vn:[]);s.useEffect(()=>{We.resources!==void 0&&vn(We.resources)},[We.resources]),s.useEffect(()=>{const Yr=We.default?Vn:[];qt.length?(qt.forEach(Ci=>{const Ni=typeof Ci=="string"?Ci:Ci.value;Yr.find(fa=>fa.value===Ni)||(typeof Ci=="string"?Yr.push({label:Ci,value:Ci}):Yr.push(Ci))}),Qr(Yr)):Qr([])},[qt,Vn,We.default]),s.useEffect(()=>{l.isEqual(We.dependencies,fn)||(Dn(!1),it(null),We.onChange(null),Tt(We.dependencies))},[We,fn]);const ni=async()=>{var Yr;if(!Kn){We.saveOptions&&await We.saveOptions();try{const Ci=await((Yr=We.fetch)==null?void 0:Yr.call(We))||[];vn(Ci)}finally{Dn(!0)}}},yr=Yr=>{We.onChange(Yr),Yr.value&&it(Yr.value)},si=async()=>{mn(!0);try{await ni()}finally{mn(!1)}};return f.default.createElement(u.InlineField,{label:We.label,labelWidth:We.labelWidth,tooltip:We.tooltip,hidden:We.hidden},f.default.createElement("div",{"data-testid":We["data-testid"],title:We.title},f.default.createElement(u.Select,he(Se({},We),{"aria-label":We.label,options:or,onChange:yr,isLoading:dn,className:We.className||"min-width-6",onOpenMenu:()=>We.fetch&&si(),menuShouldPortal:!0}))))}var _e=Object.defineProperty,we=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,nt=(We,Ft,it)=>Ft in We?_e(We,Ft,{enumerable:!0,configurable:!0,writable:!0,value:it}):We[Ft]=it,Re=(We,Ft)=>{for(var it in Ft||(Ft={}))Ge.call(Ft,it)&&nt(We,it,Ft[it]);if(we)for(var it of we(Ft))ht.call(Ft,it)&&nt(We,it,Ft[it]);return We};function ue(We){var Ft,it,qt;const{jsonData:vn}=We.options,fn={title:vn.defaultRegion?"":"select a default region",labelWidth:(Ft=We.labelWidth)!=null?Ft:N,className:"width-30"},Tt=[We.options.jsonData.assumeRoleArn,We.options.jsonData.authType,We.options.jsonData.defaultRegion,We.options.jsonData.endpoint,We.options.jsonData.externalId,We.options.jsonData.profile,(it=We.options.secureJsonData)==null?void 0:it.accessKey,(qt=We.options.secureJsonData)==null?void 0:qt.secretKey].concat(We.dependencies);return f.default.createElement(me,Re({label:We.label,"data-testid":We["data-testid"],onChange:We.onChange,fetch:We.fetch,value:We.value,saveOptions:We.saveOptions,dependencies:Tt,hidden:We.hidden,disabled:We.disabled||!vn.defaultRegion,allowCustomValue:We.allowCustomValue,autoFocus:We.autoFocus,backspaceRemovesValue:We.backspaceRemovesValue,invalid:We.invalid,isClearable:We.isClearable,isMulti:We.isMulti,inputId:We.inputId,showAllSelectedWhenOpen:We.showAllSelectedWhenOpen,maxMenuHeight:We.maxMenuHeight,minMenuHeight:We.minMenuHeight,maxVisibleValues:We.maxVisibleValues,menuPlacement:We.menuPlacement,menuPosition:We.menuPosition,noOptionsMessage:We.noOptionsMessage,onBlur:We.onBlur,onCreateOption:We.onCreateOption,onInputChange:We.onInputChange,placeholder:We.placeholder,width:We.width,isOptionDisabled:We.isOptionDisabled},fn))}function ae(We){var Ft;return f.default.createElement(u.InlineField,{label:We.label,labelWidth:(Ft=We.labelWidth)!=null?Ft:N,tooltip:We.tooltip,hidden:We.hidden,disabled:We.disabled},f.default.createElement(u.Input,{"data-testid":We["data-testid"],className:"width-30",value:We.value,onChange:We.onChange,placeholder:We.placeholder,disabled:We.disabled}))}var ve=Object.defineProperty,Me=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Ce=(We,Ft,it)=>Ft in We?ve(We,Ft,{enumerable:!0,configurable:!0,writable:!0,value:it}):We[Ft]=it,Ae=(We,Ft)=>{for(var it in Ft||(Ft={}))At.call(Ft,it)&&Ce(We,it,Ft[it]);if(qe)for(var it of qe(Ft))It.call(Ft,it)&&Ce(We,it,Ft[it]);return We},$e=(We,Ft)=>Me(We,Ye(Ft));function tt(We){const{getSuggestions:Ft,query:it}=We,{rawSQL:qt}=l.defaults(We.query,{rawSQL:""}),vn=Tt=>{const dn=$e(Ae({},We.query),{rawSQL:Tt});We.onChange(dn),We.onRunQuery()},fn=s.useRef([]);return s.useEffect(()=>{fn.current=Ft(it)},[Ft,it]),f.default.createElement(u.CodeEditor,Ae({language:We.language,value:qt,onBlur:vn,showMiniMap:!1,showLineNumbers:!0,getSuggestions:()=>fn.current,height:"240px"},We.editorProps))}function ke({query:We,showAsyncQueryButtons:Ft,extraHeaderElementLeft:it,extraHeaderElementRight:qt,enableRunButton:vn,onRunQuery:fn,data:Tt,cancel:dn}){return f.default.createElement(h.EditorHeader,null,it,f.default.createElement(h.FlexItem,{grow:1}),Ft?f.default.createElement(p.RunQueryButtons,{onRunQuery:fn,enableRun:vn,query:We,onCancelQuery:dn,state:Tt?.state}):f.default.createElement(u.Button,{variant:vn?"primary":"secondary",size:"sm",onClick:fn,icon:Tt?.state===v.LoadingState.Loading?"fa fa-spinner":void 0,disabled:Tt?.state===v.LoadingState.Loading||!vn},"Run query"),qt)}var Oe=Object.defineProperty,je=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,mt=(We,Ft,it)=>Ft in We?Oe(We,Ft,{enumerable:!0,configurable:!0,writable:!0,value:it}):We[Ft]=it,bt=(We,Ft)=>{for(var it in Ft||(Ft={}))ut.call(Ft,it)&&mt(We,it,Ft[it]);if(ct)for(var it of ct(Ft))Ne.call(Ft,it)&&mt(We,it,Ft[it]);return We},Gt=(We,Ft)=>je(We,Et(Ft));function hn(We){const Ft=it=>{var qt;We.onChange(Gt(bt({},We.query),{format:it.value||0})),(qt=We.onRunQuery)==null||qt.call(We)};return f.default.createElement(u.InlineField,{label:"Format as",labelWidth:11},f.default.createElement(u.Select,{"aria-label":"Format as",options:We.options,value:We.query.format,onChange:Ft,className:"width-12",menuShouldPortal:!0}))}var Yt=Object.defineProperty,Bt=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Ve=(We,Ft,it)=>Ft in We?Yt(We,Ft,{enumerable:!0,configurable:!0,writable:!0,value:it}):We[Ft]=it,lt=(We,Ft)=>{for(var it in Ft||(Ft={}))Kt.call(Ft,it)&&Ve(We,it,Ft[it]);if(zt)for(var it of zt(Ft))vt.call(Ft,it)&&Ve(We,it,Ft[it]);return We},at=(We,Ft)=>Bt(We,Lt(Ft)),Xt=(We=>(We[We.Previous=0]="Previous",We[We.Null=1]="Null",We[We.Value=2]="Value",We))(Xt||{});const rt=[{label:"Previous Value",value:0},{label:"NULL",value:1},{label:"Value",value:2}];function Rt(We){var Ft,it,qt;return f.default.createElement(f.default.Fragment,null,f.default.createElement(u.InlineField,{label:"Fill value",tooltip:"value to fill missing points"},f.default.createElement(u.Select,{"aria-label":"Fill value",options:rt,value:(it=(Ft=We.query.fillMode)==null?void 0:Ft.mode)!=null?it:0,onChange:({value:vn})=>{var fn;We.onChange(at(lt({},We.query),{fillMode:at(lt({},We.query.fillMode),{mode:vn})})),(fn=We.onRunQuery)==null||fn.call(We)},className:"width-12",menuShouldPortal:!0})),((qt=We.query.fillMode)==null?void 0:qt.mode)===2&&f.default.createElement(u.InlineField,{label:"Value",labelWidth:11},f.default.createElement(u.Input,{type:"number","aria-label":"Value",value:We.query.fillMode.value,onChange:({currentTarget:vn})=>We.onChange(at(lt({},We.query),{fillMode:{mode:2,value:vn.valueAsNumber}})),onBlur:()=>{var vn;return(vn=We.onRunQuery)==null?void 0:vn.call(We)}})))}var rn=Object.defineProperty,sn=Object.defineProperties,Jn=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,wt=(We,Ft,it)=>Ft in We?rn(We,Ft,{enumerable:!0,configurable:!0,writable:!0,value:it}):We[Ft]=it,Ke=(We,Ft)=>{for(var it in Ft||(Ft={}))st.call(Ft,it)&&wt(We,it,Ft[it]);if(ze)for(var it of ze(Ft))en.call(Ft,it)&&wt(We,it,Ft[it]);return We},Ut=(We,Ft)=>sn(We,Jn(Ft));function on(We){return!!We.rawSQL}function Tn(We,Ft,it){const qt=it();return Ut(Ke({},We),{rawSQL:qt.replace(We.rawSQL,Ft,An)})}function An(We){return typeof We=="string"?We:We.map(it=>Zt(it)).join(",")}function Zt(We){return"'"+String(We).replace(/'/g,"''")+"'"}const ot=(We,Ft)=>{const it=We(),qt=[];return it.getVariables().forEach(vn=>{const fn="$"+vn.name;let Tt=it.replace(fn);Tt===fn&&(Tt=""),qt.push({label:fn,kind:u.CodeEditorSuggestionItemKind.Text,detail:`(Template Variable) ${Tt}`})}),Ft.concat(qt)};i=y,i=ue,c.mO=_,i=N,i=Xt,i=Rt,i=hn,i=ae,i=tt,i=ke,i=me,c.IW=k,i=ot,i=Tn,i=b,i=on,i=g},7402:(C,c,t)=>{"use strict";t.d(c,{A:()=>i});const i="Error"},3773:(C,c,t)=>{"use strict";t.d(c,{j:()=>u});var i=t(80030),s=t(97687);class u{constructor(){this.unpatchedConsole=s.L,this.internalLogger=i.sF,this.config={},this.metas={}}logDebug(...l){this.internalLogger.debug(`${this.name} `,...l)}logInfo(...l){this.internalLogger.info(`${this.name} `,...l)}logWarn(...l){this.internalLogger.warn(`${this.name} `,...l)}logError(...l){this.internalLogger.error(`${this.name} `,...l)}}},98198:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});const i=typeof globalThis<"u"?globalThis:typeof t.g<"u"?t.g:typeof self<"u"?self:void 0},90709:(C,c,t)=>{"use strict";t.d(c,{F:()=>s});var i=t(3773);class s extends i.j{constructor(){super(...arguments),this.api={},this.transports={}}}},80030:(C,c,t)=>{"use strict";t.d(c,{AR:()=>s,hQ:()=>l,sF:()=>v});var i=t(59031),s;(function(h){h[h.OFF=0]="OFF",h[h.ERROR=1]="ERROR",h[h.WARN=2]="WARN",h[h.INFO=3]="INFO",h[h.VERBOSE=4]="VERBOSE"})(s||(s={}));const u="Faro",v={debug:i.Z,error:i.Z,info:i.Z,prefix:u,warn:i.Z},l=s.ERROR},5916:(C,c,t)=>{"use strict";t.d(c,{T_:()=>l,B:()=>v});var i=t(98198);const s="_faroInternal";function u(){return globalObject[internalGlobalObjectKey]}function v(h){h.config.isolate?h.internalLogger.debug("Skipping registering internal Faro instance on global object"):(h.internalLogger.debug("Registering internal Faro instance on global object"),Object.defineProperty(i.Z,s,{configurable:!1,enumerable:!1,writable:!1,value:h}))}function l(){return s in i.Z}},75308:(C,c,t)=>{"use strict";t.d(c,{s:()=>v,W:()=>l});var i=t(98198);function s(h){if(h.config.preventGlobalExposure)h.internalLogger.debug("Skipping registering public Faro instance in the global scope");else{if(h.internalLogger.debug(`Registering public faro reference in the global scope using "${h.config.globalObjectKey}" key`),h.config.globalObjectKey in i.Z){h.internalLogger.warn(`Skipping global registration due to key "${h.config.globalObjectKey}" being used already. Please set "globalObjectKey" to something else or set "preventGlobalExposure" to "true"`);return}Object.defineProperty(i.Z,h.config.globalObjectKey,{configurable:!1,writable:!1,value:h})}}var u=t(5916);let v={};function l(h,p,d,f,g,y,b){return p.debug("Initializing Faro"),v={api:y,config:d,instrumentations:b,internalLogger:p,metas:f,pause:g.pause,transports:g,unpatchedConsole:h,unpause:g.unpause},(0,u.B)(v),s(v),v}},95392:(C,c,t)=>{"use strict";t.d(c,{d:()=>s});var i=t(3773);class s extends i.j{isBatched(){return!1}getIgnoreUrls(){return[]}}},70220:(C,c,t)=>{"use strict";t.d(c,{E:()=>i,p:()=>s});var i;(function(u){u.EXCEPTION="exception",u.LOG="log",u.MEASUREMENT="measurement",u.TRACE="trace",u.EVENT="event"})(i||(i={}));const s={[i.EXCEPTION]:"exceptions",[i.LOG]:"logs",[i.MEASUREMENT]:"measurements",[i.TRACE]:"traces",[i.EVENT]:"events"}},97687:(C,c,t)=>{"use strict";t.d(c,{L:()=>i});const i=Object.assign({},console)},90288:(C,c,t)=>{"use strict";t.d(c,{Ft:()=>l,HD:()=>h,Kn:()=>y,VW:()=>I,VZ:()=>A,YZ:()=>N,Ym:()=>i,cO:()=>R,fq:()=>K,hj:()=>p,kJ:()=>E,mf:()=>b,pt:()=>x});function i(Z,J){return typeof Z===J}function s(Z,J){return Object.prototype.toString.call(Z)===`[object ${J}]`}function u(Z,J){try{return Z instanceof J}catch{return!1}}const v=Z=>i(Z,"undefined"),l=Z=>i(Z,"null"),h=Z=>i(Z,"string"),p=Z=>i(Z,"number")&&!isNaN(Z)||i(Z,"bigint"),d=Z=>p(Z)&&Number.isInteger(Z),f=Z=>i(Z,"boolean"),g=Z=>i(Z,"symbol"),y=Z=>!l(Z)&&i(Z,"object"),b=Z=>i(Z,"function"),E=Z=>s(Z,"Array"),S=Z=>s(Z,"RegExp"),w=Z=>b(Z?.then),x=Z=>!y(Z)&&!b(Z),P=!v(Event),R=Z=>P&&u(Z,Event),T=typeof Error<"u",A=Z=>T&&u(Z,Error),I=Z=>s(Z,"ErrorEvent"),N=Z=>s(Z,"DOMError"),K=Z=>s(Z,"DOMException"),_=typeof Element<"u",W=Z=>_&&u(Z,Element),j=typeof Map<"u",re=Z=>j&&u(Z,Map),X=Z=>y(Z)&&"nativeEvent"in Z&&"preventDefault"in Z&&"stopPropagation"in Z},91712:(C,c,t)=>{"use strict";t.d(c,{N8:()=>u,g9:()=>s,in:()=>i});var i;(function(v){v.TRACE="trace",v.DEBUG="debug",v.INFO="info",v.LOG="log",v.WARN="warn",v.ERROR="error"})(i||(i={}));const s=i.LOG,u=[i.TRACE,i.DEBUG,i.INFO,i.LOG,i.WARN,i.ERROR]},59031:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(){}},5163:(C,c,t)=>{"use strict";t.d(c,{q:()=>i});const i="1.1.0"},52201:(C,c,t)=>{"use strict";t.d(c,{p:()=>It});var i=t(70220);function s(){return new Date().toISOString()}var u=t(90288);function v(Ce,Ae){if(Ce===Ae)return!0;if((0,u.Ym)(Ce,"number")&&isNaN(Ce))return(0,u.Ym)(Ae,"number")&&isNaN(Ae);const $e=(0,u.kJ)(Ce),tt=(0,u.kJ)(Ae);if($e!==tt)return!1;if($e&&tt){const je=Ce.length;if(je!==Ae.length)return!1;for(let Et=je;Et--!==0;)if(!v(Ce[Et],Ae[Et]))return!1;return!0}const ke=(0,u.Kn)(Ce),Oe=(0,u.Kn)(Ae);if(ke!==Oe)return!1;if(Ce&&Ae&&ke&&Oe){const je=Object.keys(Ce),Et=Object.keys(Ae),ct=je.length,ut=Et.length;if(ct!==ut)return!1;for(let Ne of je)if(!Et.includes(Ne))return!1;for(let Ne of je)if(!v(Ce[Ne],Ae[Ne]))return!1;return!0}return!1}function l(Ce,Ae,$e,tt,ke,Oe){let je=null;return{pushEvent:(ct,ut,Ne,{skipDedupe:mt}={})=>{try{const bt={meta:tt.value,payload:{name:ct,domain:Ne??$e.eventDomain,attributes:ut,timestamp:s(),trace:Oe.getTraceContext()},type:i.E.EVENT},Gt={name:bt.payload.name,attributes:bt.payload.attributes,domain:bt.payload.domain};if(!mt&&$e.dedupe&&!(0,u.Ft)(je)&&v(Gt,je)){Ae.debug(`Skipping event push because it is the same as the last one `,bt.payload);return}je=Gt,Ae.debug(`Pushing event `,bt),ke.execute(bt)}catch(bt){Ae.error("Error pushing event",bt)}}}}var h=t(7402);let p;function d(Ce,Ae,$e,tt,ke,Oe){var je;Ae.debug("Initializing exceptions API");let Et=null;p=(je=$e.parseStacktrace)!==null&&je!==void 0?je:p;const ct=mt=>{Ae.debug("Changing stacktrace parser"),p=mt??p},ut=()=>p,Ne=(mt,{skipDedupe:bt,stackFrames:Gt,type:hn,context:Yt}={})=>{hn=hn||mt.name||h.A;const Bt={meta:tt.value,payload:{type:hn,value:mt.message,timestamp:s(),trace:Oe.getTraceContext(),context:Yt??{}},type:i.E.EXCEPTION};Gt=Gt??(mt.stack?p?.(mt).frames:void 0),Gt?.length&&(Bt.payload.stacktrace={frames:Gt});const Lt={type:Bt.payload.type,value:Bt.payload.value,stackTrace:Bt.payload.stacktrace,context:Bt.payload.context};if(!bt&&$e.dedupe&&!(0,u.Ft)(Et)&&v(Lt,Et)){Ae.debug(`Skipping error push because it is the same as the last one `,Bt.payload);return}Et=Lt,Ae.debug(`Pushing exception `,Bt),ke.execute(Bt)};return ct($e.parseStacktrace),{changeStacktraceParser:ct,getStacktraceParser:ut,pushError:Ne}}var f=t(91712);function g(Ce,Ae,$e,tt,ke,Oe){Ae.debug("Initializing logs API");let je=null;return{pushLog:(ct,{context:ut,level:Ne,skipDedupe:mt}={})=>{try{const bt={type:i.E.LOG,payload:{message:ct.map(hn=>{try{return String(hn)}catch{return""}}).join(" "),level:Ne??f.g9,context:ut??{},timestamp:s(),trace:Oe.getTraceContext()},meta:tt.value},Gt={message:bt.payload.message,level:bt.payload.level,context:bt.payload.context};if(!mt&&$e.dedupe&&!(0,u.Ft)(je)&&v(Gt,je)){Ae.debug(`Skipping log push because it is the same as the last one `,bt.payload);return}je=Gt,Ae.debug(`Pushing log `,bt),ke.execute(bt)}catch(bt){Ae.error(`Error pushing log `,bt)}}}}function y(Ce,Ae,$e,tt,ke,Oe){Ae.debug("Initializing measurements API");let je=null;return{pushMeasurement:(ct,{skipDedupe:ut}={})=>{var Ne;try{const mt={type:i.E.MEASUREMENT,payload:Object.assign(Object.assign({},ct),{trace:Oe.getTraceContext(),timestamp:(Ne=ct.timestamp)!==null&&Ne!==void 0?Ne:s()}),meta:tt.value},bt={type:mt.payload.type,values:mt.payload.values};if(!ut&&$e.dedupe&&!(0,u.Ft)(je)&&v(bt,je)){Ae.debug(`Skipping measurement push because it is the same as the last one `,mt.payload);return}je=bt,Ae.debug(`Pushing measurement `,mt),ke.execute(mt)}catch(mt){Ae.error(`Error pushing measurement `,mt)}}}}function b(Ce,Ae,$e,tt,ke){Ae.debug("Initializing meta API");let Oe,je,Et;const ct=Gt=>{je&&tt.remove(je),je={user:Gt},tt.add(je)},ut=Gt=>{Oe&&tt.remove(Oe),Oe={session:Gt},tt.add(Oe)};return{setUser:ct,resetUser:ct,setSession:ut,resetSession:ut,getSession:()=>tt.value.session,setView:Gt=>{Et&&tt.remove(Et),Et={view:Gt},tt.add(Et)},getView:()=>tt.value.view}}function E(Ce,Ae,$e,tt,ke){Ae.debug("Initializing traces API");let Oe;return{getOTEL:()=>Oe,getTraceContext:()=>{const mt=Oe?.trace.getSpanContext(Oe.context.active());return mt?{trace_id:mt.traceId,span_id:mt.spanId}:void 0},initOTEL:(mt,bt)=>{Ae.debug("Initializing OpenTelemetry"),Oe={trace:mt,context:bt}},isOTELInitialized:()=>!!Oe,pushTraces:mt=>{try{const bt={type:i.E.TRACE,payload:mt,meta:tt.value};Ae.debug(`Pushing trace `,bt),ke.execute(bt)}catch(bt){Ae.error(`Error pushing trace `,bt)}}}}function S(Ce,Ae,$e,tt,ke){Ae.debug("Initializing API");const Oe=E(Ce,Ae,$e,tt,ke);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oe),d(Ce,Ae,$e,tt,ke,Oe)),b(Ce,Ae,$e,tt,ke)),g(Ce,Ae,$e,tt,ke,Oe)),y(Ce,Ae,$e,tt,ke,Oe)),l(Ce,Ae,$e,tt,ke,Oe))}function w(Ce,Ae,$e,tt,ke,Oe){Ae.debug("Initializing instrumentations");const je=[];return{add:(...ut)=>{Ae.debug("Adding instrumentations"),ut.forEach(Ne=>{if(Ae.debug(`Adding "${Ne.name}" instrumentation`),je.some(bt=>bt.name===Ne.name)){Ae.warn(`Instrumentation ${Ne.name} is already added`);return}Ne.unpatchedConsole=Ce,Ne.internalLogger=Ae,Ne.config=$e,Ne.metas=tt,Ne.transports=ke,Ne.api=Oe,je.push(Ne),Ne.initialize()})},get instrumentations(){return[...je]},remove:(...ut)=>{Ae.debug("Removing instrumentations"),ut.forEach(Ne=>{var mt,bt;Ae.debug(`Removing "${Ne.name}" instrumentation`);const Gt=je.reduce((hn,Yt,Bt)=>hn===null&&Yt.name===Ne.name?Bt:null,null);if(!Gt){Ae.warn(`Instrumentation "${Ne.name}" is not added`);return}(bt=(mt=je[Gt]).destroy)===null||bt===void 0||bt.call(mt),je.splice(Gt,1)})}}}function x(Ce){Ce.instrumentations.add(...Ce.config.instrumentations)}var P=t(80030),R=t(97687),T=t(59031);function A(Ce=R.L,Ae=P.hQ){const $e=P.sF;return Ae>P.AR.OFF&&($e.error=Ae>=P.AR.ERROR?function(...tt){Ce.error(`${$e.prefix} `,...tt)}:T.Z,$e.warn=Ae>=P.AR.WARN?function(...tt){Ce.warn(`${$e.prefix} `,...tt)}:T.Z,$e.info=Ae>=P.AR.INFO?function(...tt){Ce.info(`${$e.prefix} `,...tt)}:T.Z,$e.debug=Ae>=P.AR.VERBOSE?function(...tt){Ce.debug(`${$e.prefix} `,...tt)}:T.Z),$e}let I=P.sF;function N(Ce,Ae){return I=A(Ce,Ae.internalLoggerLevel),I}function K(Ce,Ae,$e){let tt=[],ke=[];const Oe=()=>tt.reduce((mt,bt)=>Object.assign(mt,(0,u.mf)(bt)?bt():bt),{}),je=()=>{if(ke.length){const mt=Oe();ke.forEach(bt=>bt(mt))}};return{add:(...mt)=>{Ae.debug(`Adding metas `,mt),tt.push(...mt),je()},remove:(...mt)=>{Ae.debug(`Removing metas `,mt),tt=tt.filter(bt=>!mt.includes(bt)),je()},addListener:mt=>{Ae.debug(`Adding metas listener `,mt),ke.push(mt)},removeListener:mt=>{Ae.debug(`Removing metas listener `,mt),ke=ke.filter(bt=>bt!==mt)},get value(){return Oe()}}}var _=t(5163);function W(Ce){var Ae;const $e={sdk:{name:"@grafana/faro-core",version:_.q,integrations:Ce.config.instrumentations.map(({name:tt,version:ke})=>({name:tt,version:ke}))}};Ce.config.session&&Ce.api.setSession(Ce.config.session),Ce.config.app&&($e.app=Ce.config.app),Ce.config.user&&($e.user=Ce.config.user),Ce.config.view&&($e.view=Ce.config.view),Ce.metas.add($e,...(Ae=Ce.config.metas)!==null&&Ae!==void 0?Ae:[])}var j=t(5916),re=t(75308),X=t(27943);const Z=250,J=50;class q{constructor(Ae,$e){var tt,ke;this.signalBuffer=[],this.itemLimit=(tt=$e?.itemLimit)!==null&&tt!==void 0?tt:J,this.sendTimeout=(ke=$e?.sendTimeout)!==null&&ke!==void 0?ke:Z,this.paused=$e?.paused||!1,this.sendFn=Ae,this.flushInterval=-1,this.paused||this.start(),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&this.flush()})}addItem(Ae){this.paused||(this.signalBuffer.push(Ae),this.signalBuffer.length>=this.itemLimit&&this.flush())}start(){this.paused=!1,this.sendTimeout>0&&(this.flushInterval=window.setInterval(()=>this.flush(),this.sendTimeout))}pause(){this.paused=!0,clearInterval(this.flushInterval)}groupItems(Ae){const $e=new Map;return Ae.forEach(tt=>{const ke=(0,X.murmur3)(JSON.stringify(tt.meta));let Oe=$e.get(ke);Oe===void 0?Oe=[tt]:Oe=[...Oe,tt],$e.set(ke,Oe)}),Array.from($e.values())}flush(){if(this.paused||this.signalBuffer.length===0)return;this.groupItems(this.signalBuffer).forEach(this.sendFn),this.signalBuffer=[]}}function L(Ce,Ae){return Ce.some($e=>(0,u.HD)($e)?Ae.includes($e):!!Ae.match($e))}function $(Ce){return Ae=>{if(Ae.type===i.E.EXCEPTION&&Ae.payload){const $e=Ae.payload,tt=`${$e.type}: ${$e.value}`;if(L(Ce,tt))return null}return Ae}}function k(Ce,Ae,$e,tt){var ke;Ae.debug("Initializing transports");const Oe=[];let je=$e.paused,Et=[];const ct=(...lt)=>{Ae.debug("Adding transports"),lt.forEach(at=>{if(Ae.debug(`Adding "${at.name}" transport`),Oe.some(rt=>rt===at)){Ae.warn(`Transport ${at.name} is already added`);return}at.unpatchedConsole=Ce,at.internalLogger=Ae,at.config=$e,at.metas=tt,Oe.push(at)})},ut=(...lt)=>{Ae.debug(`Adding beforeSendHooks `,Et),lt.forEach(at=>{at&&Et.push(at)})},Ne=(...lt)=>{Ae.debug(`Adding ignoreErrorsPatterns `,lt),lt.forEach(at=>{at&&Et.push($(at))})},mt=lt=>{let at=lt;for(const Xt of Et){const rt=at.map(Xt).filter(Boolean);if(rt.length===0)return[];at=rt}return at},bt=lt=>{const at=mt(lt);if(at.length!==0)for(const Xt of Oe)Ae.debug(`Transporting item using ${Xt.name} `,at),Xt.isBatched()&&Xt.send(at)},Gt=lt=>{var at;const[Xt]=mt([lt]);if(Xt!==void 0)for(const rt of Oe)Ae.debug(`Transporting item using ${rt.name} `,Xt),rt.isBatched()?!((at=$e.batching)===null||at===void 0)&&at.enabled||rt.send([Xt]):rt.send(Xt)};let hn;return!((ke=$e.batching)===null||ke===void 0)&&ke.enabled&&(hn=new q(bt,{sendTimeout:$e.batching.sendTimeout,itemLimit:$e.batching.itemLimit,paused:je})),{add:ct,addBeforeSendHooks:ut,addIgnoreErrorsPatterns:Ne,getBeforeSendHooks:()=>[...Et],execute:lt=>{var at;if(!je){if(!(!((at=$e.batching)===null||at===void 0)&&at.enabled)){Gt(lt);return}hn?.addItem(lt),Gt(lt)}},isPaused:()=>je,pause:()=>{Ae.debug("Pausing transports"),hn?.pause(),je=!0},remove:(...lt)=>{Ae.debug("Removing transports"),lt.forEach(at=>{Ae.debug(`Removing "${at.name}" transport`);const Xt=Oe.indexOf(at);if(Xt===-1){Ae.warn(`Transport "${at.name}" is not added`);return}Oe.splice(Xt,1)})},removeBeforeSendHooks:(...lt)=>{Et.filter(at=>!lt.includes(at))},get transports(){return[...Oe]},unpause:()=>{Ae.debug("Unpausing transports"),hn?.start(),je=!1}}}function F(Ce){Ce.transports.add(...Ce.config.transports),Ce.transports.addBeforeSendHooks(Ce.config.beforeSend),Ce.transports.addIgnoreErrorsPatterns(Ce.config.ignoreErrors)}let V=R.L;function pe(Ce){var Ae;return V=(Ae=Ce.unpatchedConsole)!==null&&Ae!==void 0?Ae:V,V}function ce(Ce){const Ae=pe(Ce),$e=N(Ae,Ce);if((0,j.T_)()&&!Ce.isolate){$e.error('Faro is already registered. Either add instrumentations, transports etc. to the global faro instance or use the "isolate" property');return}$e.debug("Initializing");const tt=K(Ae,$e,Ce),ke=k(Ae,$e,Ce,tt),Oe=S(Ae,$e,Ce,tt,ke),je=w(Ae,$e,Ce,tt,ke,Oe),Et=(0,re.W)(Ae,$e,Ce,tt,ke,Oe,je);return W(Et),F(Et),x(Et),Et}const G="faro",te={enabled:!0,sendTimeout:250,itemLimit:50},ie="browser";var fe=t(18801);function Se(Ce){return{frames:(0,fe.E)(Ce)}}var he=t(24680);const me="abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789";function _e(Ce=10){return Array.from(Array(Ce)).map(()=>me[Math.floor(Math.random()*me.length)]).join("")}function we(Ce){return{id:_e(),attributes:Ce}}const Ge={name:"default"};var ht=t(96991),nt=t(2513),Re=t(53826),ue=t(90709);const ae={EventNames:{CLICK:"click",NAVIGATION:"navigation",SESSION_START:"session_start",VIEW_CHANGED:"view_changed"}};class ve extends ue.F{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-session",this.version=_.q}sendSessionStartEvent(Ae){const $e=Ae.session;$e&&$e!==this.notifiedSession&&(this.notifiedSession=$e,this.api.pushEvent(ae.EventNames.SESSION_START,{},void 0,{skipDedupe:!0}))}initialize(){this.sendSessionStartEvent(this.metas.value),this.metas.addListener(this.sendSessionStartEvent.bind(this))}}class Me extends ue.F{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-view",this.version=_.q}sendViewChangedEvent(Ae){const $e=Ae.view;$e&&$e!==this.notifiedView&&(this.notifiedView=$e,this.api.pushEvent(ae.EventNames.VIEW_CHANGED,{},void 0,{skipDedupe:!0}))}initialize(){this.sendViewChangedEvent(this.metas.value),this.metas.addListener(this.sendViewChangedEvent.bind(this))}}var Ye=t(31581);function qe(Ce={}){const Ae=[new nt.w,new Re.P,new ve,new Me];return Ce.captureConsole!==!1&&Ae.push(new Ye.J({disabledLevels:Ce.captureConsoleDisabledLevels})),Ae}function At(Ce){var Ae,$e,tt,ke,Oe,je,Et,ct,ut,Ne,mt;const bt=[],Gt=A(Ce.unpatchedConsole,Ce.internalLoggerLevel);return Ce.transports?((Ce.url||Ce.apiKey)&&Gt.error('if "transports" is defined, "url" and "apiKey" should not be defined'),bt.push(...Ce.transports)):Ce.url?bt.push(new ht.V({url:Ce.url,apiKey:Ce.apiKey})):Gt.error('either "url" or "transports" must be defined'),{app:Ce.app,batching:Object.assign(Object.assign({},te),Ce.batching),dedupe:(Ae=Ce.dedupe)!==null&&Ae!==void 0?Ae:!0,globalObjectKey:Ce.globalObjectKey||G,instrumentations:($e=Ce.instrumentations)!==null&&$e!==void 0?$e:qe(),internalLoggerLevel:(tt=Ce.internalLoggerLevel)!==null&&tt!==void 0?tt:P.hQ,isolate:(ke=Ce.isolate)!==null&&ke!==void 0?ke:!1,metas:(Oe=Ce.metas)!==null&&Oe!==void 0?Oe:he.i,parseStacktrace:Se,paused:(je=Ce.paused)!==null&&je!==void 0?je:!1,preventGlobalExposure:(Et=Ce.preventGlobalExposure)!==null&&Et!==void 0?Et:!1,transports:bt,unpatchedConsole:(ct=Ce.unpatchedConsole)!==null&&ct!==void 0?ct:R.L,beforeSend:Ce.beforeSend,eventDomain:(ut=Ce.eventDomain)!==null&&ut!==void 0?ut:ie,ignoreErrors:Ce.ignoreErrors,session:(Ne=Ce.session)!==null&&Ne!==void 0?Ne:we(),user:Ce.user,view:(mt=Ce.view)!==null&&mt!==void 0?mt:Ge}}function It(Ce){const Ae=At(Ce);if(Ae)return ce(Ae)}},31581:(C,c,t)=>{"use strict";t.d(c,{J:()=>v});var i=t(90709),s=t(5163),u=t(91712);class v extends i.F{constructor(h={}){super(),this.options=h,this.name="@grafana/faro-web-sdk:instrumentation-console",this.version=s.q}initialize(){this.logDebug(`Initializing `,this.options),u.N8.filter(h=>{var p;return!((p=this.options.disabledLevels)!==null&&p!==void 0?p:v.defaultDisabledLevels).includes(h)}).forEach(h=>{console[h]=(...p)=>{try{this.api.pushLog(p,{level:h})}catch(d){this.logError(d)}finally{this.unpatchedConsole[h](...p)}}})}}v.defaultDisabledLevels=[u.in.DEBUG,u.in.TRACE,u.in.LOG]},2513:(C,c,t)=>{"use strict";t.d(c,{w:()=>R});var i=t(90709),s=t(5163),u=t(90288);const v="Non-Error promise rejection captured with value:",l="UnhandledRejection",h="DOMError",p="DOMException",d="Non-Error exception captured with keys:",f="?",g=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;var y=t(18801);function b(T){let A,I,N=[],K,_;if((0,u.VW)(T)&&T.error)A=T.error.message,I=T.error.name,N=(0,y.E)(T.error);else if((K=(0,u.YZ)(T))||(0,u.fq)(T)){const{name:W,message:j}=T;I=W??(K?h:p),A=j?`${I}: ${j}`:I}else(0,u.VZ)(T)?(A=T.message,N=(0,y.E)(T)):((0,u.Kn)(T)||(_=(0,u.cO)(T)))&&(I=_?T.constructor.name:void 0,A=`${d} ${Object.keys(T)}`);return[A,I,N]}var E=t(7402);function S(T){var A,I;const N=T.match(g),K=(A=N?.[1])!==null&&A!==void 0?A:E.A;return[(I=N?.[2])!==null&&I!==void 0?I:T,K]}var w=t(33815);function x(T){const A=window.onerror;window.onerror=(...I)=>{try{const[N,K,_,W,j]=I;let re,X,Z=[];const J=(0,u.HD)(N),q=(0,w.H)(K,f,_,W);j||!J?([re,X,Z]=b(j??N),Z.length===0&&(Z=[q])):J&&([re,X]=S(N),Z=[q]),re&&T.pushError(new Error(re),{type:X,stackFrames:Z})}finally{A?.apply(window,I)}}}function P(T){window.addEventListener("unhandledrejection",A=>{var I,N;let K=A;K.reason?K=A.reason:!((I=A.detail)===null||I===void 0)&&I.reason&&(K=(N=A.detail)===null||N===void 0?void 0:N.reason);let _,W,j=[];(0,u.pt)(K)?(_=`${v} ${String(K)}`,W=l):[_,W,j]=b(K),_&&T.pushError(new Error(_),{type:W,stackFrames:j})})}class R extends i.F{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-errors",this.version=s.q}initialize(){this.logDebug("Initializing"),x(this.api),P(this.api)}}},33815:(C,c,t)=>{"use strict";t.d(c,{H:()=>s});var i=t(87290);function s(u,v,l,h){const p={filename:u||document.location.href,function:v||i.hg};return l!==void 0&&(p.lineno=l),h!==void 0&&(p.colno=h),p}},87290:(C,c,t)=>{"use strict";t.d(c,{BI:()=>s,DV:()=>h,Ds:()=>b,GF:()=>S,Sh:()=>f,YJ:()=>y,dl:()=>i,eP:()=>g,eS:()=>d,hg:()=>u,i7:()=>E,iS:()=>w,oM:()=>l,u5:()=>v,ze:()=>p});const i=` `,s="eval",u="?",v="@",l=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,h=/\((\S*)(?::(\d+))(?::(\d+))\)/,p="eval",d="address at ",f=d.length,g=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,y=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,b=" > eval",E="safari-extension",S="safari-web-extension",w=/Minified React error #\d+;/i},18801:(C,c,t)=>{"use strict";t.d(c,{E:()=>l});var i=t(90288),s=t(33815),u=t(87290);function v(h,p){const d=h?.includes(u.i7),f=!d&&h?.includes(u.GF);return!d&&!f?[h,p]:[h?.includes(u.u5)?h.split(u.u5)[0]:h,d?`${u.i7}:${p}`:`${u.GF}:${p}`]}function l(h){let p=[];h.stacktrace?p=h.stacktrace.split(u.dl).filter((f,g)=>g%2===0):h.stack&&(p=h.stack.split(u.dl));const d=p.reduce((f,g,y)=>{let b,E,S,w,x;if(b=u.oM.exec(g)){if(E=b[1],S=b[2],w=b[3],x=b[4],S?.startsWith(u.ze)){const P=u.DV.exec(S);P&&(S=P[1],w=P[2],x=P[3])}S=S?.startsWith(u.eS)?S.substring(u.Sh):S,[E,S]=v(E,S)}else if(b=u.eP.exec(g)){if(E=b[1],S=b[3],w=b[4],x=b[5],S&&S.includes(u.Ds)){const P=u.YJ.exec(S);P&&(E=E||u.BI,S=P[1],w=P[2])}else y===0&&!x&&(0,i.hj)(h.columnNumber)&&(x=String(h.columnNumber+1));[E,S]=v(E,S)}return(S||E)&&f.push((0,s.H)(S,E,w?Number(w):void 0,x?Number(x):void 0)),f},[]);return u.iS.test(h.message)?d.slice(1):d}},53826:(C,c,t)=>{"use strict";t.d(c,{P:()=>nt});var i,s,u,v,l,h=-1,p=function(Re){addEventListener("pageshow",function(ue){ue.persisted&&(h=ue.timeStamp,Re(ue))},!0)},d=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},f=function(){var Re=d();return Re&&Re.activationStart||0},g=function(Re,ue){var ae=d(),ve="navigate";return h>=0?ve="back-forward-cache":ae&&(ve=document.prerendering||f()>0?"prerender":document.wasDiscarded?"restore":ae.type.replace(/_/g,"-")),{name:Re,value:ue===void 0?-1:ue,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:ve}},y=function(Re,ue,ae){try{if(PerformanceObserver.supportedEntryTypes.includes(Re)){var ve=new PerformanceObserver(function(Me){Promise.resolve().then(function(){ue(Me.getEntries())})});return ve.observe(Object.assign({type:Re,buffered:!0},ae||{})),ve}}catch{}},b=function(Re,ue,ae,ve){var Me,Ye;return function(qe){ue.value>=0&&(qe||ve)&&((Ye=ue.value-(Me||0))||Me===void 0)&&(Me=ue.value,ue.delta=Ye,ue.rating=function(At,It){return At>It[1]?"poor":At>It[0]?"needs-improvement":"good"}(ue.value,ae),Re(ue))}},E=function(Re){requestAnimationFrame(function(){return requestAnimationFrame(function(){return Re()})})},S=function(Re){var ue=function(ae){ae.type!=="pagehide"&&document.visibilityState!=="hidden"||Re(ae)};addEventListener("visibilitychange",ue,!0),addEventListener("pagehide",ue,!0)},w=function(Re){var ue=!1;return function(ae){ue||(Re(ae),ue=!0)}},x=-1,P=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},R=function(Re){document.visibilityState==="hidden"&&x>-1&&(x=Re.type==="visibilitychange"?Re.timeStamp:0,A())},T=function(){addEventListener("visibilitychange",R,!0),addEventListener("prerenderingchange",R,!0)},A=function(){removeEventListener("visibilitychange",R,!0),removeEventListener("prerenderingchange",R,!0)},I=function(){return x<0&&(x=P(),T(),p(function(){setTimeout(function(){x=P(),T()},0)})),{get firstHiddenTime(){return x}}},N=function(Re){document.prerendering?addEventListener("prerenderingchange",function(){return Re()},!0):Re()},K=function(Re,ue){ue=ue||{},N(function(){var ae,ve=[1800,3e3],Me=I(),Ye=g("FCP"),qe=y("paint",function(At){At.forEach(function(It){It.name==="first-contentful-paint"&&(qe.disconnect(),It.startTime<Me.firstHiddenTime&&(Ye.value=Math.max(It.startTime-f(),0),Ye.entries.push(It),ae(!0)))})});qe&&(ae=b(Re,Ye,ve,ue.reportAllChanges),p(function(At){Ye=g("FCP"),ae=b(Re,Ye,ve,ue.reportAllChanges),E(function(){Ye.value=performance.now()-At.timeStamp,ae(!0)})}))})},_=function(Re,ue){ue=ue||{},K(w(function(){var ae,ve=[.1,.25],Me=g("CLS",0),Ye=0,qe=[],At=function(Ce){Ce.forEach(function(Ae){if(!Ae.hadRecentInput){var $e=qe[0],tt=qe[qe.length-1];Ye&&Ae.startTime-tt.startTime<1e3&&Ae.startTime-$e.startTime<5e3?(Ye+=Ae.value,qe.push(Ae)):(Ye=Ae.value,qe=[Ae])}}),Ye>Me.value&&(Me.value=Ye,Me.entries=qe,ae())},It=y("layout-shift",At);It&&(ae=b(Re,Me,ve,ue.reportAllChanges),S(function(){At(It.takeRecords()),ae(!0)}),p(function(){Ye=0,Me=g("CLS",0),ae=b(Re,Me,ve,ue.reportAllChanges),E(function(){return ae()})}),setTimeout(ae,0))}))},W={passive:!0,capture:!0},j=new Date,re=function(Re,ue){i||(i=ue,s=Re,u=new Date,J(removeEventListener),X())},X=function(){if(s>=0&&s<u-j){var Re={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+s};v.forEach(function(ue){ue(Re)}),v=[]}},Z=function(Re){if(Re.cancelable){var ue=(Re.timeStamp>1e12?new Date:performance.now())-Re.timeStamp;Re.type=="pointerdown"?function(ae,ve){var Me=function(){re(ae,ve),qe()},Ye=function(){qe()},qe=function(){removeEventListener("pointerup",Me,W),removeEventListener("pointercancel",Ye,W)};addEventListener("pointerup",Me,W),addEventListener("pointercancel",Ye,W)}(ue,Re):re(ue,Re)}},J=function(Re){["mousedown","keydown","touchstart","pointerdown"].forEach(function(ue){return Re(ue,Z,W)})},q=function(Re,ue){ue=ue||{},N(function(){var ae,ve=[100,300],Me=I(),Ye=g("FID"),qe=function(Ce){Ce.startTime<Me.firstHiddenTime&&(Ye.value=Ce.processingStart-Ce.startTime,Ye.entries.push(Ce),ae(!0))},At=function(Ce){Ce.forEach(qe)},It=y("first-input",At);ae=b(Re,Ye,ve,ue.reportAllChanges),It&&S(w(function(){At(It.takeRecords()),It.disconnect()})),It&&p(function(){var Ce;Ye=g("FID"),ae=b(Re,Ye,ve,ue.reportAllChanges),v=[],s=-1,i=null,J(addEventListener),Ce=qe,v.push(Ce),X()})})},L=0,$=1/0,k=0,F=function(Re){Re.forEach(function(ue){ue.interactionId&&($=Math.min($,ue.interactionId),k=Math.max(k,ue.interactionId),L=k?(k-$)/7+1:0)})},V=function(){return l?L:performance.interactionCount||0},pe=function(){"interactionCount"in performance||l||(l=y("event",F,{type:"event",buffered:!0,durationThreshold:0}))},ce=0,G=function(){return V()-ce},te=[],ie={},fe=function(Re){var ue=te[te.length-1],ae=ie[Re.interactionId];if(ae||te.length<10||Re.duration>ue.latency){if(ae)ae.entries.push(Re),ae.latency=Math.max(ae.latency,Re.duration);else{var ve={id:Re.interactionId,latency:Re.duration,entries:[Re]};ie[ve.id]=ve,te.push(ve)}te.sort(function(Me,Ye){return Ye.latency-Me.latency}),te.splice(10).forEach(function(Me){delete ie[Me.id]})}},Se=function(Re,ue){ue=ue||{},N(function(){var ae=[200,500];pe();var ve,Me=g("INP"),Ye=function(At){At.forEach(function(Ae){Ae.interactionId&&fe(Ae),Ae.entryType==="first-input"&&!te.some(function($e){return $e.entries.some(function(tt){return Ae.duration===tt.duration&&Ae.startTime===tt.startTime})})&&fe(Ae)});var It,Ce=(It=Math.min(te.length-1,Math.floor(G()/50)),te[It]);Ce&&Ce.latency!==Me.value&&(Me.value=Ce.latency,Me.entries=Ce.entries,ve())},qe=y("event",Ye,{durationThreshold:ue.durationThreshold||40});ve=b(Re,Me,ae,ue.reportAllChanges),qe&&(qe.observe({type:"first-input",buffered:!0}),S(function(){Ye(qe.takeRecords()),Me.value<0&&G()>0&&(Me.value=0,Me.entries=[]),ve(!0)}),p(function(){te=[],ce=V(),Me=g("INP"),ve=b(Re,Me,ae,ue.reportAllChanges)}))})},he={},me=function(Re,ue){ue=ue||{},N(function(){var ae,ve=[2500,4e3],Me=I(),Ye=g("LCP"),qe=function(Ce){var Ae=Ce[Ce.length-1];if(Ae){var $e=Math.max(Ae.startTime-f(),0);$e<Me.firstHiddenTime&&(Ye.value=$e,Ye.entries=[Ae],ae())}},At=y("largest-contentful-paint",qe);if(At){ae=b(Re,Ye,ve,ue.reportAllChanges);var It=w(function(){he[Ye.id]||(qe(At.takeRecords()),At.disconnect(),he[Ye.id]=!0,ae(!0))});["keydown","click"].forEach(function(Ce){addEventListener(Ce,It,!0)}),S(It),p(function(Ce){Ye=g("LCP"),ae=b(Re,Ye,ve,ue.reportAllChanges),E(function(){Ye.value=performance.now()-Ce.timeStamp,he[Ye.id]=!0,ae(!0)})})}})},_e=function Re(ue){document.prerendering?N(function(){return Re(ue)}):document.readyState!=="complete"?addEventListener("load",function(){return Re(ue)},!0):setTimeout(ue,0)},we=function(Re,ue){ue=ue||{};var ae=[800,1800],ve=g("TTFB"),Me=b(Re,ve,ae,ue.reportAllChanges);_e(function(){var Ye=d();if(Ye){var qe=Ye.responseStart;if(qe<=0||qe>performance.now())return;ve.value=Math.max(qe-f(),0),ve.entries=[Ye],Me(!0),p(function(){ve=g("TTFB",0),(Me=b(Re,ve,ae,ue.reportAllChanges))(!0)})}})},Ge=t(90709),ht=t(5163);class nt extends Ge.F{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-web-vitals",this.version=ht.q}initialize(){this.logDebug("Initializing"),Object.entries(nt.mapping).forEach(([ue,ae])=>{ae(ve=>{this.api.pushMeasurement({type:"web-vitals",values:{[ue]:ve.value}})})})}}nt.mapping={cls:_,fcp:K,fid:q,inp:Se,lcp:me,ttfb:we}},24680:(C,c,t)=>{"use strict";t.d(c,{i:()=>v});var i=t(22036);const v=[()=>{const l=new i.UAParser,{name:h,version:p}=l.getBrowser(),{name:d,version:f}=l.getOS(),g=l.getUA(),y=navigator.language,b=navigator.userAgent.includes("Mobi"),E=w(),S="unknown";return{browser:{name:h??S,version:p??S,os:`${d??S} ${f??S}`,userAgent:g??S,language:y??S,mobile:b,brands:E??S}};function w(){if(!(!h||!p)&&"userAgentData"in navigator)return navigator.userAgentData.brands}},()=>({page:{url:location.href}})]},96991:(C,c,t)=>{"use strict";t.d(c,{V:()=>E});var i=t(95392),s=t(5163);function u(S){const{size:w,concurrency:x}=S,P=[];let R=0;const T=()=>{if(R<x&&P.length){const{producer:I,resolve:N,reject:K}=P.shift();R++,I().then(_=>{R--,T(),N(_)},_=>{R--,T(),K(_)})}};return{add:I=>{if(P.length+R>=w)throw new Error("Task buffer full");return new Promise((N,K)=>{P.push({producer:I,resolve:N,reject:K}),T()})}}}var v=t(70220);function l(S,w){var x,P;if(w===void 0)return S;if(S===void 0)return{resourceSpans:w};const R=(x=S.resourceSpans)===null||x===void 0?void 0:x[0];if(R===void 0)return S;const T=R?.scopeSpans||[],A=((P=w?.[0])===null||P===void 0?void 0:P.scopeSpans)||[];return Object.assign(Object.assign({},S),{resourceSpans:[Object.assign(Object.assign({},R),{scopeSpans:[...T,...A]})]})}function h(S){let w={meta:{}};return S[0]!==void 0&&(w.meta=S[0].meta),S.forEach(x=>{switch(x.type){case v.E.LOG:case v.E.EVENT:case v.E.EXCEPTION:case v.E.MEASUREMENT:const P=v.p[x.type],R=w[P];w=Object.assign(Object.assign({},w),{[P]:R===void 0?[x.payload]:[...R,x.payload]});break;case v.E.TRACE:w=Object.assign(Object.assign({},w),{traces:l(w.traces,x.payload.resourceSpans)});break}}),w}var p=t(59031),d=function(S,w,x,P){function R(T){return T instanceof x?T:new x(function(A){A(T)})}return new(x||(x=Promise))(function(T,A){function I(_){try{K(P.next(_))}catch(W){A(W)}}function N(_){try{K(P.throw(_))}catch(W){A(W)}}function K(_){_.done?T(_.value):R(_.value).then(I,N)}K((P=P.apply(S,w||[])).next())})},f=function(S,w){var x={};for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&w.indexOf(P)<0&&(x[P]=S[P]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,P=Object.getOwnPropertySymbols(S);R<P.length;R++)w.indexOf(P[R])<0&&Object.prototype.propertyIsEnumerable.call(S,P[R])&&(x[P[R]]=S[P[R]]);return x};const g=30,y=5,b=5e3;class E extends i.d{constructor(w){var x,P,R,T;super(),this.options=w,this.name="@grafana/faro-web-sdk:transport-fetch",this.version=s.q,this.disabledUntil=new Date,this.rateLimitBackoffMs=(x=w.defaultRateLimitBackoffMs)!==null&&x!==void 0?x:b,this.getNow=(P=w.getNow)!==null&&P!==void 0?P:()=>Date.now(),this.promiseBuffer=u({size:(R=w.bufferSize)!==null&&R!==void 0?R:g,concurrency:(T=w.concurrency)!==null&&T!==void 0?T:y})}send(w){return d(this,void 0,void 0,function*(){try{if(this.disabledUntil>new Date(this.getNow()))return this.logWarn(`Dropping transport item due to too many requests. Backoff until ${this.disabledUntil}`),Promise.resolve();yield this.promiseBuffer.add(()=>{const x=JSON.stringify(h(w)),{url:P,requestOptions:R,apiKey:T}=this.options,A=R??{},{headers:I}=A,N=f(A,["headers"]);return fetch(P,Object.assign({method:"POST",headers:Object.assign(Object.assign({"Content-Type":"application/json"},I??{}),T?{"x-api-key":T}:{}),body:x,keepalive:!0},N??{})).then(K=>(K.status===429&&(this.disabledUntil=this.getRetryAfterDate(K),this.logWarn(`Too many requests, backing off until ${this.disabledUntil}`)),K.text().catch(p.Z),K)).catch(K=>{this.logError(`Failed sending payload to the receiver `,JSON.parse(x),K)})})}catch(x){this.logError(x)}})}getIgnoreUrls(){return[this.options.url]}isBatched(){return!0}getRetryAfterDate(w){const x=this.getNow(),P=w.headers.get("Retry-After");if(P){const R=Number(P);if(!isNaN(R))return new Date(R*1e3+x);const T=Date.parse(P);if(!isNaN(T))return new Date(T)}return new Date(x+this.rateLimitBackoffMs)}}},12354:(C,c,t)=>{"use strict";t.d(c,{Z:()=>y});const i=new Intl.Collator("en").compare,s=1/0,u=P=>P.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),v="eexxaacctt",l="A-Z",h="a-z",p=(P,R,T)=>P.replace(l,R).replace(h,T),d={unicode:!1,letters:null,interSplit:"[^A-Za-z\\d']+",intraSplit:"[a-z][A-Z]",intraBound:"[A-Za-z]\\d|\\d[A-Za-z]|[a-z][A-Z]",interLft:0,interRgt:0,interChars:".",interIns:s,intraChars:"[a-z\\d']",intraIns:0,intraContr:"'[a-z]{1,2}\\b",intraMode:0,intraSlice:[1,s],intraSub:0,intraTrn:0,intraDel:0,intraFilt:(P,R,T)=>!0,sort:(P,R,T)=>{let{idx:A,chars:I,terms:N,interLft2:K,interLft1:_,start:W,intraIns:j,interIns:re}=P;return A.map((X,Z)=>Z).sort((X,Z)=>I[Z]-I[X]||j[X]-j[Z]||N[Z]+K[Z]+.5*_[Z]-(N[X]+K[X]+.5*_[X])||re[X]-re[Z]||W[X]-W[Z]||i(R[A[X]],R[A[Z]]))}},f=(P,R)=>R==0?"":R==1?P+"??":R==s?P+"*?":P+`{0,${R}}?`,g="(?:\\b|_)";function y(P){P=Object.assign({},d,P);let{unicode:R,interLft:T,interRgt:A,intraMode:I,intraSlice:N,intraIns:K,intraSub:_,intraTrn:W,intraDel:j,intraContr:re,intraSplit:X,interSplit:Z,intraBound:J,intraChars:q}=P,L=P.letters;if(L!=null){let Re=L.toUpperCase(),ue=L.toLowerCase();Z=p(Z,Re,ue),X=p(X,Re,ue),J=p(J,Re,ue),q=p(q,Re,ue),re=p(re,Re,ue)}let $=R?"u":"";const k=new RegExp('".+?"',"gi"+$),F=new RegExp(`(?:\\s+|^)-${q}+`,"gi"+$);let{intraRules:V}=P;V==null&&(V=Re=>{let ue=d.intraSlice,ae=0,ve=0,Me=0,Ye=0,qe=Re.length;return qe<=4?qe>=3&&(Me=Math.min(W,1),qe==4&&(ae=Math.min(K,1))):(ue=N,ae=K,ve=_,Me=W,Ye=j),{intraSlice:ue,intraIns:ae,intraSub:ve,intraTrn:Me,intraDel:Ye}});let pe=!!X,ce=new RegExp(X,"g"+$),G=new RegExp(Z,"g"+$),te=new RegExp("^"+Z+"|"+Z+"$","g"+$),ie=new RegExp(re,"gi"+$);const fe=Re=>{let ue=[];Re=Re.replace(k,ve=>(ue.push(ve),v)),Re=Re.replace(te,"").toLowerCase(),pe&&(Re=Re.replace(ce,ve=>ve[0]+" "+ve[1]));let ae=0;return Re.split(G).filter(ve=>ve!="").map(ve=>ve===v?ue[ae++]:ve)},Se=(Re,ue=0,ae=!1)=>{let ve=fe(Re);if(ve.length==0)return[];let Me=Array(ve.length).fill("");ve=ve.map((Ce,Ae)=>Ce.replace(ie,$e=>(Me[Ae]=$e,"")));let Ye;if(I==1)Ye=ve.map((Ce,Ae)=>{let{intraSlice:$e,intraIns:tt,intraSub:ke,intraTrn:Oe,intraDel:je}=V(Ce);if(tt+ke+Oe+je==0)return Ce+Me[Ae];if(Ce[0]==='"')return u(Ce.slice(1,-1));let[Et,ct]=$e,ut=Ce.slice(0,Et),Ne=Ce.slice(ct),mt=Ce.slice(Et,ct);tt==1&&ut.length==1&&ut!=mt[0]&&(ut+="(?!"+ut+")");let bt=mt.length,Gt=[Ce];if(ke)for(let Yt=0;Yt<bt;Yt++)Gt.push(ut+mt.slice(0,Yt)+q+mt.slice(Yt+1)+Ne);if(Oe)for(let Yt=0;Yt<bt-1;Yt++)mt[Yt]!=mt[Yt+1]&&Gt.push(ut+mt.slice(0,Yt)+mt[Yt+1]+mt[Yt]+mt.slice(Yt+2)+Ne);if(je)for(let Yt=0;Yt<bt;Yt++)Gt.push(ut+mt.slice(0,Yt+1)+"?"+mt.slice(Yt+1)+Ne);if(tt){let Yt=f(q,1);for(let Bt=0;Bt<bt;Bt++)Gt.push(ut+mt.slice(0,Bt)+Yt+mt.slice(Bt)+Ne)}return"(?:"+Gt.join("|")+")"+Me[Ae]});else{let Ce=f(q,K);ue==2&&K>0&&(Ce=")("+Ce+")("),Ye=ve.map((Ae,$e)=>Ae[0]==='"'?u(Ae.slice(1,-1)):Ae.split("").map((tt,ke,Oe)=>(K==1&&ke==0&&Oe.length>1&&tt!=Oe[ke+1]&&(tt+="(?!"+tt+")"),tt)).join(Ce)+Me[$e])}let qe=T==2?g:"",At=A==2?g:"",It=At+f(P.interChars,P.interIns)+qe;return ue>0?ae?Ye=qe+"("+Ye.join(")"+At+"|"+qe+"(")+")"+At:(Ye="("+Ye.join(")("+It+")(")+")",Ye="(.??"+qe+")"+Ye+"("+At+".*)"):(Ye=Ye.join(It),Ye=qe+Ye+At),[new RegExp(Ye,"i"+$),ve,Me]},he=(Re,ue,ae)=>{let[ve]=Se(ue);if(ve==null)return null;let Me=[];if(ae!=null)for(let Ye=0;Ye<ae.length;Ye++){let qe=ae[Ye];ve.test(Re[qe])&&Me.push(qe)}else for(let Ye=0;Ye<Re.length;Ye++)ve.test(Re[Ye])&&Me.push(Ye);return Me};let me=!!J,_e=new RegExp(Z,$),we=new RegExp(J,$);const Ge=(Re,ue,ae)=>{let[ve,Me,Ye]=Se(ae,1),[qe]=Se(ae,2),At=Me.length,It=Re.length,Ce=Array(It).fill(0),Ae={idx:Array(It),start:Ce.slice(),chars:Ce.slice(),terms:Ce.slice(),interIns:Ce.slice(),intraIns:Ce.slice(),interLft2:Ce.slice(),interRgt2:Ce.slice(),interLft1:Ce.slice(),interRgt1:Ce.slice(),ranges:Array(It)},$e=T==1||A==1,tt=0;for(let ke=0;ke<Re.length;ke++){let Oe=ue[Re[ke]],je=Oe.match(ve),Et=je.index+je[1].length,ct=Et,ut=!1,Ne=0,mt=0,bt=0,Gt=0,hn=0,Yt=0,Bt=0,Lt=0,zt=[];for(let Kt=0,vt=2;Kt<At;Kt++,vt+=2){let Ve=je[vt].toLowerCase(),lt=Me[Kt],at=lt[0]=='"'?lt.slice(1,-1):lt+Ye[Kt],Xt=at.length,rt=Ve.length,Rt=Ve==at;if(!Rt&&je[vt+1].length>=Xt){let rn=je[vt+1].toLowerCase().indexOf(at);rn>-1&&(zt.push(ct,rn,Xt),ct+=ht(je,vt,rn,Xt),Ve=at,rt=Xt,Rt=!0,Kt==0&&(Et=ct))}if($e||Rt){let rn=ct-1,sn=ct+rt,Jn=!1,ze=!1;if(rn==-1||_e.test(Oe[rn]))Rt&&Ne++,Jn=!0;else{if(T==2){ut=!0;break}if(me&&we.test(Oe[rn]+Oe[rn+1]))Rt&&mt++,Jn=!0;else if(T==1){let st=je[vt+1],en=ct+rt;if(st.length>=Xt){let wt=0,Ke=!1,Ut=new RegExp(at,"ig"+$),on;for(;on=Ut.exec(st);){wt=on.index;let Tn=en+wt,An=Tn-1;if(An==-1||_e.test(Oe[An])){Ne++,Ke=!0;break}else if(we.test(Oe[An]+Oe[Tn])){mt++,Ke=!0;break}}Ke&&(Jn=!0,zt.push(ct,wt,Xt),ct+=ht(je,vt,wt,Xt),Ve=at,rt=Xt,Rt=!0,Kt==0&&(Et=ct))}if(!Jn){ut=!0;break}}}if(sn==Oe.length||_e.test(Oe[sn]))Rt&&bt++,ze=!0;else{if(A==2){ut=!0;break}if(me&&we.test(Oe[sn-1]+Oe[sn]))Rt&&Gt++,ze=!0;else if(A==1){ut=!0;break}}Rt&&(hn+=Xt,Jn&&ze&&Yt++)}if(rt>Xt&&(Lt+=rt-Xt),Kt>0&&(Bt+=je[vt-1].length),!P.intraFilt(at,Ve,ct)){ut=!0;break}Kt<At-1&&(ct+=rt+je[vt+1].length)}if(!ut){Ae.idx[tt]=Re[ke],Ae.interLft2[tt]=Ne,Ae.interLft1[tt]=mt,Ae.interRgt2[tt]=bt,Ae.interRgt1[tt]=Gt,Ae.chars[tt]=hn,Ae.terms[tt]=Yt,Ae.interIns[tt]=Bt,Ae.intraIns[tt]=Lt,Ae.start[tt]=Et;let Kt=Oe.match(qe),vt=Ae.ranges[tt]=[],Ve=Kt.index+Kt[1].length,lt=Ve,at=Ve,Xt=zt.length,rt=Xt>0?0:1/0,Rt=Xt-3;for(let rn=2;rn<Kt.length;rn++){let sn=Kt[rn].length;if(rt<=Rt&&zt[rt]==Ve){let Jn=zt[rt+1],ze=zt[rt+2],st=Jn+ze;Ve+=sn+st,lt=Ve-ze,Kt[rn+1]=Kt[rn+1].slice(st),rt+=3}else Ve+=sn;rn%2==0?at=Ve:sn>0&&(vt.push(lt,at),lt=at=Ve)}at>lt&&vt.push(lt,at),tt++}}if(tt<Re.length)for(let ke in Ae)Ae[ke]=Ae[ke].slice(0,tt);return Ae},ht=(Re,ue,ae,ve)=>{let Me=Re[ue]+Re[ue+1].slice(0,ae);return Re[ue-1]+=Me,Re[ue]=Re[ue+1].slice(ae,ae+ve),Re[ue+1]=Re[ue+1].slice(ae+ve),Me.length},nt=(Re,ue,ae=!1,ve=1e3,Me)=>{let Ye=null,qe=null,At=[];ue=ue.replace(F,ke=>(At.push(ke.trim().slice(1)),""));let It=fe(ue),Ce;if(At.length>0){if(Ce=new RegExp(At.join("|"),"i"+$),It.length==0){let ke=[];for(let Oe=0;Oe<Re.length;Oe++)Ce.test(Re[Oe])||ke.push(Oe);return[ke,null,null]}}else if(It.length==0)return[null,null,null];if(ae){let ke=fe(ue);if(ke.length>1){let Oe=ke.slice().sort((Et,ct)=>ct.length-Et.length);for(let Et=0;Et<Oe.length;Et++){if(Me?.length==0)return[[],null,null];Me=he(Re,Oe[Et],Me)}Ye=E(ke).map(Et=>Et.join(" ")),qe=[];let je=new Set;for(let Et=0;Et<Ye.length;Et++)if(je.size<Me.length){let ct=Me.filter(Ne=>!je.has(Ne)),ut=he(Re,Ye[Et],ct);for(let Ne=0;Ne<ut.length;Ne++)je.add(ut[Ne]);qe.push(ut)}else qe.push([])}}Ye==null&&(Ye=[ue],qe=[Me?.length>0?Me:he(Re,ue)]);let Ae=null,$e=null;if(At.length>0&&(qe=qe.map(ke=>ke.filter(Oe=>!Ce.test(Re[Oe])))),qe.reduce((ke,Oe)=>ke+Oe.length,0)<=ve){Ae={},$e=[];for(let ke=0;ke<qe.length;ke++){let Oe=qe[ke];if(Oe==null||Oe.length==0)continue;let je=Ye[ke],Et=Ge(Oe,Re,je),ct=P.sort(Et,Re,je);if(ke>0)for(let ut=0;ut<ct.length;ut++)ct[ut]+=$e.length;for(let ut in Et)Ae[ut]=(Ae[ut]??[]).concat(Et[ut]);$e=$e.concat(ct)}}return[[].concat(...qe),Ae,$e]};return{search:(...Re)=>nt(...Re),split:fe,filter:he,info:Ge,sort:P.sort}}const b=(()=>{let P={A:"\xC1\xC0\xC3\xC2\xC4\u0104",a:"\xE1\xE0\xE3\xE2\xE4\u0105",E:"\xC9\xC8\xCA\xCB\u0116",e:"\xE9\xE8\xEA\xEB\u0119",I:"\xCD\xCC\xCE\xCF\u012E",i:"\xED\xEC\xEE\xEF\u012F",O:"\xD3\xD2\xD4\xD5\xD6",o:"\xF3\xF2\xF4\xF5\xF6",U:"\xDA\xD9\xDB\xDC\u016A\u0172",u:"\xFA\xF9\xFB\xFC\u016B\u0173",C:"\xC7\u010C",c:"\xE7\u010D",N:"\xD1",n:"\xF1",S:"\u0160",s:"\u0161"},R=new Map,T="";for(let N in P)P[N].split("").forEach(K=>{T+=K,R.set(K,N)});let A=new RegExp(`[${T}]`,"g"),I=N=>R.get(N);return N=>{if(typeof N=="string")return N.replace(A,I);let K=Array(N.length);for(let _=0;_<N.length;_++)K[_]=N[_].replace(A,I);return K}})();function E(P){P=P.slice();let R=P.length,T=[P.slice()],A=new Array(R).fill(0),I=1,N,K;for(;I<R;)A[I]<I?(N=I%2&&A[I],K=P[I],P[I]=P[N],P[N]=K,++A[I],I=1,T.push(P.slice())):(A[I]=0,++I);return T}const S=(P,R)=>R?`<mark>${P}</mark>`:P,w=(P,R)=>P+R;function x(P,R,T=S,A="",I=w){A=I(A,T(P.substring(0,R[0]),!1))??A;for(let N=0;N<R.length;N+=2){let K=R[N],_=R[N+1];A=I(A,T(P.substring(K,_),!0))??A,N<R.length-3&&(A=I(A,T(P.substring(R[N+1],R[N+2]),!1))??A)}return A=I(A,T(P.substring(R[R.length-1]),!1))??A,A}y.latinize=b,y.permute=P=>E([...Array(P.length).keys()]).sort((T,A)=>{for(let I=0;I<T.length;I++)if(T[I]!=A[I])return T[I]-A[I];return 0}).map(T=>T.map(A=>P[A])),y.highlight=x},55403:(C,c,t)=>{"use strict";t.d(c,{Z:()=>nt});var i=t(99723);const s=(0,i.bs)(new i.ir);function u(ue){var ae,ve,Me,Ye,qe;const At=Array,It=ArrayBuffer,Ce=Error,Ae=Number,$e=Object,tt=Proxy,ke=Reflect,Oe=RegExp,je=String,Et=Symbol,ct=TypeError,ut=WeakMap,Ne=WeakSet,{for:mt,toStringTag:bt}=Et,{apply:Gt,construct:hn,defineProperty:Yt,deleteProperty:Bt,get:Lt,getOwnPropertyDescriptor:zt,getPrototypeOf:Kt,has:vt,isExtensible:Ve,ownKeys:lt,preventExtensions:at,set:Xt,setPrototypeOf:rt}=ke,{assign:Rt,defineProperties:rn,freeze:sn,getOwnPropertyDescriptor:Jn,getOwnPropertyDescriptors:ze,isFrozen:st,isSealed:en,keys:wt,prototype:Ke,seal:Ut}=$e,{hasOwnProperty:on,propertyIsEnumerable:Tn,toString:An}=Ke,{hasOwn:Zt}=$e,{__defineGetter__:ot,__defineSetter__:We,__lookupGetter__:Ft,__lookupSetter__:it}=Ke,qt=typeof Zt=="function"?Zt:(vi,Xa)=>Gt(on,vi,[Xa]),vn=(ae=(ve=ue??(typeof globalThis<"u"?globalThis:void 0))!=null?ve:typeof self<"u"?self:void 0)!=null?ae:(Yt(Ke,"globalThis",{__proto__:null,configurable:!0,get(){return Bt(Ke,"globalThis"),this!=null?this:self}}),globalThis),fn=typeof ue!="object"||ue===null,Tt=!fn,dn=Tt?mt("@@lockerDebugMode"):void 0,mn="$LWS",Kn=Tt?mt("@@lockerNearMembraneSerializedValue"):void 0,Dn=Tt?mt("@@lockerNearMembrane"):void 0,Vn=mt("@@lockerNearMembraneUndefinedValue"),or=20,Qr=`${function vi(){return vi.name}()}`.includes("LOCKER_UNMINIFIED_FLAG"),ni=Qr&&Tt,yr="Illegal property access.",si=fn?/\w*$/:void 0;let Yr;const Ci=typeof BigInt=="function",{isArray:Ni}=At,{includes:fa,indexOf:ha,slice:Ca}=At.prototype,{isView:li}=It,la=Ci?BigInt.prototype.valueOf:void 0,{valueOf:Oa}=Boolean.prototype,{toString:wa}=Ce.prototype,{bind:vo,toString:Qn}=Function.prototype,{stringify:_r}=JSON,{isInteger:$r}=Ae,{valueOf:Ti}=Ae.prototype,{revocable:xt}=tt,{prototype:On}=Oe,{exec:Zn,test:Ur,toString:En}=On,ln=fn?(Me=Gt(Ft,On,["flags"]))!=null?Me:function(){const Xa=Gt(En,this,[]);return Gt(Zn,si,[Xa])[0]}:void 0,jn=Gt(Ft,On,["source"]),{replace:rr,slice:Mr,valueOf:Ir}=je.prototype,{toString:Zr,valueOf:lr}=Et.prototype,Jr=(Ye=vn.BigInt64Array)==null?void 0:Ye.prototype,pi=(qe=vn.BigUint64Array)==null?void 0:qe.prototype,{prototype:Ri}=Float32Array,{prototype:Ki}=Float64Array,{prototype:ia}=Int8Array,{prototype:Da}=Int16Array,{prototype:to}=Int32Array,{prototype:ao}=Uint8Array,{prototype:Bo}=Uint16Array,{prototype:jo}=Uint32Array,Jo=ao.__proto__,Go=Gt(Ft,Jo,["length"]),{prototype:wr}=ut,{delete:qi,has:ja,set:uo,[bt]:wi}=wr,{prototype:ai}=Ne,{add:za,has:Mt,delete:Gn,[bt]:qn}=ai,Fr=Tt&&typeof console=="object"&&console!==null?console:void 0,Ei=Fr?.info,ii=fn?eval:void 0;let Wi=!1,Ya=!1;function qa(){return!1}const se=Qr?()=>{if(Wi)return;Wi=!0;const vi=(()=>{try{var Ee;Ce.prepareStackTrace=(z,B)=>B;const Y=new Ce().stack;return Bt(Ce,"prepareStackTrace"),Ni(Y)&&Y.length>0?(Ee=Y[0])==null?void 0:Ee.constructor:void 0}catch{}})();if(typeof vi!="function")return;const{getEvalOrigin:Xa,getFunctionName:Ko,toString:So}=vi.prototype,Lo=new Oe(`${Gt(rr,mn,[/[\\^$.*+?()[\]{}|]/g,"\\$&"])}(?=\\.|$)`),us=function(Y,z){let B="";try{B=Gt(wa,Y,[])}catch{B="<error>"}let le=!1;for(let Le=0,{length:Je}=z;Le<Je;Le+=1){const Ct=z[Le],Vt=Gt(Ko,Ct,[]);let bn=!1;if(typeof Vt=="string"&&Vt!=="eval"&&Gt(Ur,Lo,[Vt])&&(bn=!0),!bn){const Hn=Gt(Xa,Ct,[]);typeof Hn=="string"&&Gt(Ur,Lo,[Hn])&&(bn=!0)}if(bn){le||(le=!0,B+=` at LWS`);continue}else le=!1;try{B+=` at ${Gt(So,Ct,[])}`}catch{}}return B};try{Ce.prepareStackTrace=function(Y,z){return us(Y,z)}}catch{}try{const{stackTraceLimit:Ee}=Ce;(typeof Ee!="number"||Ee<or)&&(Ce.stackTraceLimit=or)}catch{}}:ye;function ye(){}const Xe=fn?vi=>Gt(la,vi,[]):ye,yt=fn?vi=>Gt(Oa,vi,[]):ye,Wt=fn?vi=>Gt(Ti,vi,[]):ye,Qt=fn?vi=>{if(vi!==On){const Xa=Gt(jn,vi,[]);return _r({__proto__:null,flags:Gt(ln,vi,[]),source:Xa})}}:ye,wn=fn?vi=>Gt(Ir,vi,[]):ye,fr=fn?vi=>Gt(lr,vi,[]):ye,Or=fn?vi=>{switch(Gt(An,vi,[])){case"[object Boolean]":return yt(vi);case"[object Number]":return Wt(vi);case"[object RegExp]":return Qt(vi);case"[object String]":return wn(vi);case"[object Object]":try{return fr(vi)}catch{}if(Ci)try{return Xe(vi)}catch{}default:return}}:ye,Si=fn?vi=>{try{return fr(vi)}catch{}if(Ci)try{return Xe(vi)}catch{}try{return yt(vi)}catch{}try{return Wt(vi)}catch{}try{return Qt(vi)}catch{}try{return wn(vi)}catch{}}:ye;function Fi(vi){if(typeof vi=="string")return vi;try{if(typeof vi=="object"&&vi!==null){const Xa=Gt(An,vi,[]);return Xa==="[object Symbol]"?Gt(Zr,vi,[]):Xa}return typeof vi=="function"?Gt(Qn,vi,[]):je(vi)}catch{}return"[Object Unknown]"}function Bi(vi){return rt(vi,null),vi.delete=qi,vi.has=ja,vi.set=uo,vi[bt]=wi,rt(vi,wr),vi}function Ui(vi){return rt(vi,null),vi.add=za,vi.delete=Gn,vi.has=Mt,vi[bt]=qn,rt(vi,ai),vi}return function(Xa,Ko,So){fn&&(So=void 0);const{distortionCallback:Lo,instrumentation:us,liveTargetCallback:Ee,revokedProxyCallback:Y}=Rt({__proto__:null},So),z=Tt&&typeof us=="object"&&us!==null,B={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},le={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},Le=Bi(new ut),Je=Bi(new ut),Ct=z?us.startActivity:void 0;let Vt,bn,Hn,br,ei,mi,Li,na,ji,$a,Ha,Eo,Uo,Ms,er,Ar,Kr,ur,Gr,Pi,aa,Fa,tn,cn,nr,ir,Lr,ua,_a,Ka,yo,Ba,Ma,Mo,Nr,gi,ea,dr,ci,yi,xa,Cr,ka=0,Io=!1,Co=fn,_s=fn;const Is=fn?(pn,ee,oe)=>{oe[ee]=!1;const De=St(pn);let Be;try{na(De,ee,(Ht,nn,Rn,Yn,gr,Ai,$i)=>{Be=Sn(nn,Rn,Yn,gr,Ai,$i)})}catch(Ht){var gt;const nn=(gt=Cr)!=null?gt:Ht;throw Cr=void 0,nn}Be?Yt(pn,ee,Be):Bt(pn,ee)}:ye;let xs=ni?()=>{try{qt(vn,dn)&&(xs=()=>!0,se(),aa())}catch{xs=qa}return!1}:qa;const Zs=fn?()=>{_a=Ui(new Ne)}:ye;function Ns(pn,ee){let oe;z&&(oe=Ct("copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget"));let De;try{De=ir(pn,(...Ht)=>{const nn={};for(let Rn=0,{length:Yn}=Ht;Rn<Yn;Rn+=7){const gr=Ht[Rn];nn[gr]=Sn(Ht[Rn+1],Ht[Rn+2],Ht[Rn+3],Ht[Rn+4],Ht[Rn+5],Ht[Rn+6])}rn(ee,nn)})}catch(Ht){var Be;const nn=(Be=Cr)!=null?Be:Ht;throw Cr=void 0,z&&oe.error(nn),nn}let gt;typeof De=="function"?(De(),gt=Cr,Cr=void 0):gt=null,rt(ee,gt),z&&oe.stop()}function Us(pn){const ee=pn&1,oe=`Reflect.${ee?"apply":"construct"}()`,De=ee?B:le,Be=ee?Hn:br;return function(Ht,nn,Rn){ka=pn;const Yn=ee?Rn:nn,{length:gr}=Yn;if(gr!==0){var Ai;return this[(Ai=De[gr])!=null?Ai:De.n](Ht,nn,Rn)}let $i;z&&($i=Ct(oe));const{foreignTargetPointer:ma}=this,La=ee?nn:Rn;let Qa;try{Qa=Be(ma,typeof La=="object"&&La!==null||typeof La=="function"?St(La):typeof La>"u"?void 0:La)}catch(Fo){var go;const Ho=(go=Cr)!=null?go:Fo;throw Cr=void 0,z&&$i.error(Ho),Ho}let Ao;return typeof Qa=="function"?(Qa(),Ao=Cr,Cr=void 0):Ao=Qa,z&&$i.stop(),Ao}}function fu(pn){const ee=pn&1,oe=`Reflect.${ee?"apply":"construct"}(1)`,De=ee?B:le,Be=ee?Hn:br;return function(Ht,nn,Rn){ka=pn;const Yn=ee?Rn:nn,{length:gr}=Yn;if(gr!==1){var Ai;return this[(Ai=De[gr])!=null?Ai:De.n](Ht,nn,Rn)}let $i;z&&($i=Ct(oe));const{foreignTargetPointer:ma}=this,La=ee?nn:Rn;let Qa;try{const{0:Fo}=Yn;Qa=Be(ma,typeof La=="object"&&La!==null||typeof La=="function"?St(La):typeof La>"u"?void 0:La,typeof Fo=="object"&&Fo!==null||typeof Fo=="function"?St(Fo):typeof Fo>"u"?void 0:Fo)}catch(Fo){var go;const Ho=(go=Cr)!=null?go:Fo;throw Cr=void 0,z&&$i.error(Ho),Ho}let Ao;return typeof Qa=="function"?(Qa(),Ao=Cr,Cr=void 0):Ao=Qa,z&&$i.stop(),Ao}}function bu(pn){const ee=pn&1,oe=`Reflect.${ee?"apply":"construct"}(2)`,De=ee?B:le,Be=ee?Hn:br;return function(Ht,nn,Rn){ka=pn;const Yn=ee?Rn:nn,{length:gr}=Yn;if(gr!==2){var Ai;return this[(Ai=De[gr])!=null?Ai:De.n](Ht,nn,Rn)}let $i;z&&($i=Ct(oe));const{foreignTargetPointer:ma}=this,La=ee?nn:Rn;let Qa;try{const{0:Fo,1:Ho}=Yn;Qa=Be(ma,typeof La=="object"&&La!==null||typeof La=="function"?St(La):typeof La>"u"?void 0:La,typeof Fo=="object"&&Fo!==null||typeof Fo=="function"?St(Fo):typeof Fo>"u"?void 0:Fo,typeof Ho=="object"&&Ho!==null||typeof Ho=="function"?St(Ho):typeof Ho>"u"?void 0:Ho)}catch(Fo){var go;const Ho=(go=Cr)!=null?go:Fo;throw Cr=void 0,z&&$i.error(Ho),Ho}let Ao;return typeof Qa=="function"?(Qa(),Ao=Cr,Cr=void 0):Ao=Qa,z&&$i.stop(),Ao}}function Ys(pn){const ee=pn&1,oe=`Reflect.${ee?"apply":"construct"}(3)`,De=ee?B:le,Be=ee?Hn:br;return function(Ht,nn,Rn){ka=pn;const Yn=ee?Rn:nn,{length:gr}=Yn;if(gr!==3){var Ai;return this[(Ai=De[gr])!=null?Ai:De.n](Ht,nn,Rn)}let $i;z&&($i=Ct(oe));const{foreignTargetPointer:ma}=this,La=ee?nn:Rn;let Qa;try{const{0:Fo,1:Ho,2:eu}=Yn;Qa=Be(ma,typeof La=="object"&&La!==null||typeof La=="function"?St(La):typeof La>"u"?void 0:La,typeof Fo=="object"&&Fo!==null||typeof Fo=="function"?St(Fo):typeof Fo>"u"?void 0:Fo,typeof Ho=="object"&&Ho!==null||typeof Ho=="function"?St(Ho):typeof Ho>"u"?void 0:Ho,typeof eu=="object"&&eu!==null||typeof eu=="function"?St(eu):typeof eu>"u"?void 0:eu)}catch(Fo){var go;const Ho=(go=Cr)!=null?go:Fo;throw Cr=void 0,z&&$i.error(Ho),Ho}let Ao;return typeof Qa=="function"?(Qa(),Ao=Cr,Cr=void 0):Ao=Qa,z&&$i.stop(),Ao}}function Hu(pn){const ee=pn&1,oe=`Reflect.${ee?"apply":"construct"}(4)`,De=ee?B:le,Be=ee?Hn:br;return function(Ht,nn,Rn){ka=pn;const Yn=ee?Rn:nn,{length:gr}=Yn;if(gr!==4){var Ai;return this[(Ai=De[gr])!=null?Ai:De.n](Ht,nn,Rn)}let $i;z&&($i=Ct(oe));const{foreignTargetPointer:ma}=this,La=ee?nn:Rn;let Qa;try{const{0:Fo,1:Ho,2:eu,3:ks}=Yn;Qa=Be(ma,typeof La=="object"&&La!==null||typeof La=="function"?St(La):typeof La>"u"?void 0:La,typeof Fo=="object"&&Fo!==null||typeof Fo=="function"?St(Fo):typeof Fo>"u"?void 0:Fo,typeof Ho=="object"&&Ho!==null||typeof Ho=="function"?St(Ho):typeof Ho>"u"?void 0:Ho,typeof eu=="object"&&eu!==null||typeof eu=="function"?St(eu):typeof eu>"u"?void 0:eu,typeof ks=="object"&&ks!==null||typeof ks=="function"?St(ks):typeof ks>"u"?void 0:ks)}catch(Fo){var go;const Ho=(go=Cr)!=null?go:Fo;throw Cr=void 0,z&&$i.error(Ho),Ho}let Ao;return typeof Qa=="function"?(Qa(),Ao=Cr,Cr=void 0):Ao=Qa,z&&$i.stop(),Ao}}function Zu(pn){const ee=pn&1,oe=`Reflect.${ee?"apply":"construct"}(5)`,De=ee?B:le,Be=ee?Hn:br;return function(Ht,nn,Rn){ka=pn;const Yn=ee?Rn:nn,{length:gr}=Yn;if(gr!==5){var Ai;return this[(Ai=De[gr])!=null?Ai:De.n](Ht,nn,Rn)}let $i;z&&($i=Ct(oe));const{foreignTargetPointer:ma}=this,La=ee?nn:Rn;let Qa;try{const{0:Fo,1:Ho,2:eu,3:ks,4:Gu}=Yn;Qa=Be(ma,typeof La=="object"&&La!==null||typeof La=="function"?St(La):typeof La>"u"?void 0:La,typeof Fo=="object"&&Fo!==null||typeof Fo=="function"?St(Fo):typeof Fo>"u"?void 0:Fo,typeof Ho=="object"&&Ho!==null||typeof Ho=="function"?St(Ho):typeof Ho>"u"?void 0:Ho,typeof eu=="object"&&eu!==null||typeof eu=="function"?St(eu):typeof eu>"u"?void 0:eu,typeof ks=="object"&&ks!==null||typeof ks=="function"?St(ks):typeof ks>"u"?void 0:ks,typeof Gu=="object"&&Gu!==null||typeof Gu=="function"?St(Gu):typeof Gu>"u"?void 0:Gu)}catch(Fo){var go;const Ho=(go=Cr)!=null?go:Fo;throw Cr=void 0,z&&$i.error(Ho),Ho}let Ao;return typeof Qa=="function"?(Qa(),Ao=Cr,Cr=void 0):Ao=Qa,z&&$i.stop(),Ao}}function ql(pn){const ee=pn&1,oe=ee?"apply":"construct",De=ee?Hn:br;return function(gt,Ht,nn){ka=pn;const{foreignTargetPointer:Rn}=this,Yn=ee?nn:Ht,{length:gr}=Yn;let Ai;z&&(Ai=Ct(`Reflect.${oe}(${gr})`));const $i=ee?Ht:nn;let ma=2;const La=new At(gr+ma);La[0]=Rn;let Qa;try{La[1]=typeof $i=="object"&&$i!==null||typeof $i=="function"?St($i):typeof $i>"u"?void 0:$i;for(let Fo=0;Fo<gr;Fo+=1){const Ho=Yn[Fo];La[ma++]=typeof Ho=="object"&&Ho!==null||typeof Ho=="function"?St(Ho):typeof Ho>"u"?void 0:Ho}Qa=Gt(De,void 0,La)}catch(Fo){var go;const Ho=(go=Cr)!=null?go:Fo;throw Cr=void 0,z&&Ai.error(Ho),Ho}let Ao;return typeof Qa=="function"?(Qa(),Ao=Cr,Cr=void 0):Ao=Qa,z&&Ai.stop(),Ao}}function Sn(pn,ee,oe,De,Be,gt){const Ht={__proto__:null};return pn!==Vn&&(Ht.configurable=pn),ee!==Vn&&(Ht.enumerable=ee),oe!==Vn&&(Ht.writable=oe),Be!==Vn&&(typeof Be=="function"?(Be(),Ht.get=Cr,Cr=void 0):Ht.get=void 0),gt!==Vn&&(typeof gt=="function"?(gt(),Ht.set=Cr,Cr=void 0):Ht.set=void 0),De!==Vn&&(typeof De=="function"?(De(),Ht.value=Cr,Cr=void 0):Ht.value=De),Ht}function Wn(pn){return()=>{Cr=pn}}const vr=fn?()=>{Co=!1,_s=!1,Zs()}:ye,kr=fn?pn=>{let ee=Le.get(pn);if(ee===void 0){const oe=ur(St(pn));typeof oe=="function"&&(oe(),ee=Cr,Cr=void 0,ee&&Le.set(pn,ee))}return ee}:ye,ui=fn?pn=>pn===(ea===void 0?ea=St(Ke):ea):qa,ta=fn?pn=>pn===(Ba===void 0?Ba=St(Ri):Ba)||pn===(Ma===void 0?Ma=St(Ki):Ma)||pn===(Mo===void 0?Mo=St(ia):Mo)||pn===(Nr===void 0?Nr=St(Da):Nr)||pn===(gi===void 0?gi=St(to):gi)||pn===(ci===void 0?ci=St(ao):ci)||pn===(yi===void 0?yi=St(Bo):yi)||pn===(xa===void 0?xa=St(jo):xa)||pn===(dr===void 0?dr=St(Jo):dr)||pn===(Ka===void 0?Ka=Jr?St(Jr):ye:Ka)||pn===(yo===void 0?yo=pi?St(pi):ye:yo):qa;function St(pn,ee=bn){let oe=Je.get(pn);if(oe)return oe;let De=0,Be="",gt=0;if(Y&&Y(pn))return oe=ee(Wn(pn),64,De,Be,gt),Je.set(pn,oe),oe;let Ht,nn=16;if(Lo){if(Ht=Lo(pn),Ht!==pn&&typeof Ht!=typeof pn)throw new ct(`Invalid distortion ${Fi(pn)}.`)}else Ht=pn;let Rn=!0;if(typeof Ht=="function"){Rn=!1,De=0,nn=4;try{"prototype"in Ht||(nn|=8);const Yn=zt(pn,"length");if(Yn){rt(Yn,null);const{value:Ai}=Yn;typeof Ai=="number"&&(De=Ai)}const gr=void 0}catch{Rn=!0}}else if(li(Ht)){Rn=!1,nn=2;try{gt=Gt(Go,Ht,[]),nn|=32}catch{Rn=!0}}if(Rn)try{Ni(Ht)&&(nn=1)}catch{nn=64}return oe=ee(Wn(Ht),nn,De,Be,gt),Je.set(pn,oe),oe}const pt=fn?pn=>{if(Ya)return;Ya=!0;const ee=Ni(pn)&&pn.length>0,oe=ee?{__proto__:null}:void 0,De=ee?($i,ma)=>Gt(fa,pn,[ma])?{configurable:!1,enumerable:Gt(Tn,$i,[ma]),get:Be(ma),set:void 0}:zt($i,ma):void 0,Be=ee?$i=>{let ma=oe[$i];return ma===void 0&&(ma=Gt(vo,nn,[]),oe[$i]=ma),ma}:void 0,gt=ee?($i,ma)=>Gt(fa,pn,[ma])?Be(ma):Gt(Ft,$i,[ma]):void 0,Ht=ee?($i,ma)=>Gt(fa,pn,[ma])?void 0:Gt(it,$i,[ma]):void 0,nn=ee?()=>vn:void 0,Rn=$i=>{const{length:ma}=$i,La=ma===2;return new tt($i,{apply(Qa,go,Ao){if(Ao.length>=ma){const Fo=La?go:Ao[0];if(typeof Fo=="object"&&Fo!==null||typeof Fo=="function"){const Ho=La?Ao[0]:Ao[1],eu=kr(Fo);eu!=null&&eu[Ho]&&Fo[Ho]}}return Gt($i,go,Ao)}})},Yn=($i,ma)=>new tt($i,{apply(La,Qa,go){if(go.length&&(typeof Qa=="object"&&Qa!==null||typeof Qa=="function")){const{0:Ao}=go,Fo=kr(Qa);if(Fo!=null&&Fo[Ao]&&Qa[Ao],ee&&Qa===vn)return ma(Qa,Ao)}return Gt($i,Qa,go)}}),gr=$i=>new tt($i,{apply(ma,La,Qa){if(Qa.length>1){const{0:go,1:Ao}=Qa;if(typeof go=="object"&&go!==null||typeof go=="function"){const Fo=kr(go);if(Fo!=null&&Fo[Ao]&&go[Ao],ee&&go===vn)return De(go,Ao)}}return Gt($i,La,Qa)}}),Ai=$i=>new tt($i,{apply(ma,La,Qa){const go=Qa.length?Qa[0]:void 0;if(!(typeof go=="object"&&go!==null||typeof go=="function"))return Gt($i,La,Qa);const Ao=kr(go),Fo=go===vn&&ee,Ho=Fo?{}:Gt($i,La,Qa);if(!Fo&&Ao===void 0)return Ho;const eu=lt(Fo?go:Ho);for(let ks=0,{length:Gu}=eu;ks<Gu;ks+=1){const an=eu[ks],Nn=!!(Ao!=null&&Ao[an]);if(Nn&&go[an],Nn||Fo){const tr=Fo?De(go,an):zt(go,an);tr?Ho[an]=tr:Fo||Bt(Ho,an)}}return Ho}});try{ke.defineProperty=Rn(Yt)}catch{}try{ke.getOwnPropertyDescriptor=gr(zt)}catch{}try{$e.getOwnPropertyDescriptor=gr(Jn)}catch{}try{$e.getOwnPropertyDescriptors=Ai(ze)}catch{}try{Ke.__defineGetter__=Rn(ot)}catch{}try{Ke.__defineSetter__=Rn(We)}catch{}try{Ke.__lookupGetter__=Yn(Ft,gt)}catch{}try{Ke.__lookupSetter__=Yn(it,Ht)}catch{}}:ye;function kt(pn,ee,oe){let De;z&&(De=Ct("lookupForeignDescriptor"));let Be,gt;try{Be=ua(pn,oe,(Rn,Yn,gr,Ai,$i,ma,La)=>{gt={__proto__:null,foreign:!0},Yn!==Vn&&(gt.configurable=Yn),gr!==Vn&&(gt.enumerable=gr),Ai!==Vn&&(gt.writable=Ai),ma!==Vn&&(typeof ma=="function"?(ma(),gt.get=Cr,Cr=void 0):gt.get=void 0),La!==Vn&&(typeof La=="function"?(La(),gt.set=Cr,Cr=void 0):gt.set=void 0),$i!==Vn&&(typeof $i=="function"?($i(),gt.value=Cr,Cr=void 0):gt.value=$i),Yn===!1&&Yt(ee,oe,gt)})}catch(Rn){var Ht;const Yn=(Ht=Cr)!=null?Ht:Rn;throw Cr=void 0,z&&De.error(Yn),Yn}if(gt===void 0){let Rn;for(typeof Be=="function"?(Be(),Rn=Cr,Cr=void 0):Rn=null;Rn;){if(gt=zt(Rn,oe),gt){rt(gt,null);break}Rn=Kt(Rn)}if(gt){var nn;const{get:Yn,set:gr,value:Ai}=gt,$i=(nn=Yn??gr)!=null?nn:Ai;gt.foreign=(typeof $i=="object"&&$i!==null||typeof $i=="function")&&Je.get($i)!==void 0}}return z&&De.stop(),gt}function _t(pn,ee,oe,De,Be){const gt=kt(pn,ee,oe);if(gt){if("get"in gt||"set"in gt){const{set:nn}=gt;return nn?(gt.foreign?Hn(St(nn),typeof Be=="object"&&Be!==null||typeof Be=="function"?St(Be):typeof Be>"u"?void 0:Be,typeof De=="object"&&De!==null||typeof De=="function"?St(De):typeof De>"u"?void 0:De):Gt(nn,Be,[De]),!0):!1}if(gt.writable===!1)return!1}if(!(typeof Be=="object"&&Be!==null||typeof Be=="function"))return!1;const Ht=zt(Be,oe);return Ht?(rt(Ht,null),"get"in Ht||"set"in Ht||Ht.writable===!1?!1:(Yt(Be,oe,{__proto__:null,value:De}),!0)):Yt(Be,oe,{__proto__:null,configurable:!0,enumerable:!0,value:De,writable:!0})}function Mn(pn){return ni&&xs(),(typeof pn=="object"&&pn!==null||typeof pn=="function")&&St(pn,Vt)(),pn}function Pr(pn,ee,oe,De,Be){const{proxy:gt}=new jt(pn,ee,oe,De,Be);return Je.set(gt,pn),Wn(gt)}const Hi=fn?(pn,ee)=>{Le.set(pn,ee),nr(St(pn),St(ee))}:ye;class jt{constructor(ee,oe,De,Be,gt){this.makeProxyLive=fn?function(){this.deleteProperty=jt.passthruDeletePropertyTrap,this.defineProperty=jt.passthruDefinePropertyTrap,this.preventExtensions=jt.passthruPreventExtensionsTrap,this.set=jt.passthruSetTrap,this.setPrototypeOf=jt.passthruSetPrototypeOfTrap}:ye,this.makeProxyStatic=fn?function(){this.defineProperty=jt.staticDefinePropertyTrap,this.deleteProperty=jt.staticDeletePropertyTrap,this.get=jt.staticGetTrap,this.getOwnPropertyDescriptor=jt.staticGetOwnPropertyDescriptorTrap,this.getPrototypeOf=jt.staticGetPrototypeOfTrap,this.has=jt.staticHasTrap,this.isExtensible=jt.staticIsExtensibleTrap,this.ownKeys=jt.staticOwnKeysTrap,this.preventExtensions=jt.staticPreventExtensionsTrap,this.set=jt.staticSetTrap,this.setPrototypeOf=jt.staticSetPrototypeOfTrap;const{foreignTargetPointer:ma,foreignTargetTraits:La,shadowTarget:Qa}=this;Co&&_a.delete(ma);const go=Gr(ma);if(go&8){this.revoke();return}try{Ns(ma,Qa)}catch{if(tn(ma)){this.revoke();return}}if(La&16&&!(bt in Qa)){let Ao="Object";try{Ao=Pi(ma)}catch{}this.staticToStringTag=Ao}go&4?sn(Qa):(go&2?Ut(Qa):go&1&&at(Qa),Qr&&Ar("Mutations on the membrane of an object originating outside of the sandbox will not be reflected on the object itself:",ma))}:ye;let Ht;const nn=oe&1,Rn=oe&4;Rn?Ht=oe&8?()=>{}:function(){}:nn?Ht=[]:Ht={};const{proxy:Yn,revoke:gr}=xt(Ht,this);if(this.foreignTargetPointer=ee,this.foreignTargetTraits=oe,this.foreignTargetTypedArrayLength=gt,this.nonConfigurableDescriptorCallback=(ma,La,Qa,go,Ao,Fo,Ho)=>{Yt(this.shadowTarget,ma,Sn(La,Qa,go,Ao,Fo,Ho))},this.proxy=Yn,this.revoke=gr,this.serialize=ye,this.shadowTarget=Ht,this.staticToStringTag="Object",Rn){var Ai,$i;this.apply=this[(Ai=B[De])!=null?Ai:B.n],this.construct=this[($i=le[De])!=null?$i:le.n]}if(this.defineProperty=jt.defaultDefinePropertyTrap,this.deleteProperty=jt.defaultDeletePropertyTrap,this.isExtensible=jt.defaultIsExtensibleTrap,this.getOwnPropertyDescriptor=jt.defaultGetOwnPropertyDescriptorTrap,this.getPrototypeOf=jt.defaultGetPrototypeOfTrap,this.get=oe&32?jt.hybridGetTrapForTypedArray:jt.defaultGetTrap,this.has=jt.defaultHasTrap,this.ownKeys=jt.defaultOwnKeysTrap,this.preventExtensions=jt.defaultPreventExtensionsTrap,this.setPrototypeOf=jt.defaultSetPrototypeOfTrap,this.set=jt.defaultSetTrap,oe&64)this.revoke();else if(fn)(nn||oe&2)&&this.makeProxyLive();else if(oe&16){let ma=Vn;this.serialize=()=>(ma===Vn&&(ma=cn(this.foreignTargetPointer)),ma)}}static passthruDefinePropertyTrap(ee,oe,De){ka=4;let Be;z&&(Be=Ct("Reflect.defineProperty"));const{foreignTargetPointer:gt,nonConfigurableDescriptorCallback:Ht}=this,nn=De;rt(nn,null);const{get:Rn,set:Yn,value:gr}=nn,Ai="value"in nn?typeof gr=="object"&&gr!==null||typeof gr=="function"?St(gr):typeof gr>"u"?void 0:gr:Vn,$i="get"in nn?typeof Rn=="function"?St(Rn):Rn:Vn,ma="set"in nn?typeof Yn=="function"?St(Yn):Yn:Vn;let La=!1;try{La=ei(gt,oe,"configurable"in nn?!!nn.configurable:Vn,"enumerable"in nn?!!nn.enumerable:Vn,"writable"in nn?!!nn.writable:Vn,Ai,$i,ma,Ht)}catch(go){var Qa;const Ao=(Qa=Cr)!=null?Qa:go;throw Cr=void 0,z&&Be.error(Ao),Ao}return z&&Be.stop(),Co&&La&&(typeof $i=="function"||typeof ma=="function")&&_a.delete(gt),La}static passthruDeletePropertyTrap(ee,oe){ka=8;let De;z&&(De=Ct("Reflect.deleteProperty"));let Be=!1;try{Be=mi(this.foreignTargetPointer,oe)}catch(Ht){var gt;const nn=(gt=Cr)!=null?gt:Ht;throw Cr=void 0,z&&De.error(nn),nn}return z&&De.stop(),Be}static passthruGetPrototypeOfTrap(ee){ka=64;let oe;z&&(oe=Ct("Reflect.getPrototypeOf"));let De;try{De=ji(this.foreignTargetPointer)}catch(Ht){var Be;const nn=(Be=Cr)!=null?Be:Ht;throw Cr=void 0,z&&oe.error(nn),nn}let gt;return typeof De=="function"?(De(),gt=Cr,Cr=void 0):gt=null,z&&oe.stop(),gt}static passthruIsExtensibleTrap(ee){ka=256;let oe;z&&(oe=Ct("Reflect.isExtensible"));const{shadowTarget:De}=this;let Be=!1;if(Ve(De)){const{foreignTargetPointer:Ht}=this;try{Be=Ha(Ht)}catch(nn){var gt;const Rn=(gt=Cr)!=null?gt:nn;throw Cr=void 0,z&&oe.error(Rn),Rn}Be||(Ns(Ht,De),at(De))}return z&&oe.stop(),Be}static passthruOwnKeysTrap(ee){ka=512;let oe;z&&(oe=Ct("Reflect.ownKeys"));let De;try{Eo(this.foreignTargetPointer,(...gt)=>{De=gt})}catch(gt){var Be;const Ht=(Be=Cr)!=null?Be:gt;throw Cr=void 0,z&&oe.error(Ht),Ht}return z&&oe.stop(),De||[]}static passthruGetOwnPropertyDescriptorTrap(ee,oe){ka=32;let De;z&&(De=Ct("Reflect.getOwnPropertyDescriptor"));const{foreignTargetPointer:Be,shadowTarget:gt}=this;let Ht;try{na(Be,oe,(Rn,Yn,gr,Ai,$i,ma,La)=>{Ht=Sn(Yn,gr,Ai,$i,ma,La),Ht.configurable===!1&&Yt(gt,oe,Ht)})}catch(Rn){var nn;const Yn=(nn=Cr)!=null?nn:Rn;throw Cr=void 0,z&&De.error(Yn),Yn}if(z&&De.stop(),Tt&&Ht&&(oe===Dn||oe===Kn))throw new ct(yr);return Ht}static passthruPreventExtensionsTrap(ee){ka=1024;let oe;z&&(oe=Ct("Reflect.preventExtensions"));const{foreignTargetPointer:De,shadowTarget:Be}=this;let gt=!0;if(Ve(Be)){let nn=0;try{nn=Uo(De)}catch(Rn){var Ht;const Yn=(Ht=Cr)!=null?Ht:Rn;throw Cr=void 0,z&&oe.error(Yn),Yn}nn&1||(Ns(De,Be),at(Be)),gt=!(nn&2)}return z&&oe.stop(),gt}static passthruSetPrototypeOfTrap(ee,oe){ka=4096;let De;z&&(De=Ct("Reflect.setPrototypeOf"));const{foreignTargetPointer:Be}=this,gt=oe&&St(oe);let Ht=!1;try{Ht=er(Be,gt)}catch(Rn){var nn;const Yn=(nn=Cr)!=null?nn:Rn;throw Cr=void 0,z&&De.error(Yn),Yn}return z&&De.stop(),Co&&Ht&&_a.delete(Be),Ht}static passthruSetTrap(ee,oe,De,Be){ka=2048;const{foreignTargetPointer:gt,proxy:Ht,shadowTarget:nn}=this;if(typeof De>"u"&&(De=void 0),typeof Be>"u"&&(Be=Ht),Tt&&(oe===Dn||oe===Kn))throw new ct(yr);const Rn=Ht===Be;let Yn;z&&(Yn=Ct(Rn?"Reflect.set":"passthruForeignTraversedSet"));let gr=!1;try{gr=Rn?Ms(gt,oe,typeof De=="object"&&De!==null||typeof De=="function"?St(De):De,Vn):_t(gt,nn,oe,De,Be)}catch($i){var Ai;const ma=(Ai=Cr)!=null?Ai:$i;throw Cr=void 0,z&&Yn.error(ma),ma}return z&&Yn.stop(),gr}}jt.hybridGetTrap=fn?function(pn,ee,oe){let De;z&&(De=Ct("hybridGetTrap"));const{foreignTargetPointer:Be,foreignTargetTraits:gt,proxy:Ht,shadowTarget:nn}=this;let Rn,Yn;if(Co&&_a.has(Be)){let La;try{La=Kr(Be,ee)}catch(Qa){var gr;const go=(gr=Cr)!=null?gr:Qa;throw Cr=void 0,z&&De.error(go),go}typeof La=="function"?(La(),Yn=Cr,Cr=void 0):Yn=La}else if(Rn=kt(Be,nn,ee),Rn){const{get:La,value:Qa}=Rn;if(La)if(Rn.foreign){const go=St(La),Ao=Ht===oe?Be:typeof oe=="object"&&oe!==null||typeof oe=="function"?St(oe):oe;let Fo;try{Fo=Hn(go,Ao)}catch(Ho){var Ai;const eu=(Ai=Cr)!=null?Ai:Ho;throw Cr=void 0,z&&De.error(eu),eu}typeof Fo=="function"?(Fo(),Yn=Cr,Cr=void 0):Yn=Fo}else Yn=Gt(La,oe,[]);else Yn=Qa}else{const La=Ht===oe?Be:typeof oe=="object"&&oe!==null||typeof oe=="function"?St(oe):oe;let Qa;try{Qa=Li(Be,gt,ee,La)}catch(go){var $i;const Ao=($i=Cr)!=null?$i:go;throw Cr=void 0,z&&De.error(Ao),Ao}typeof Qa=="function"?(Qa(),Yn=Cr,Cr=void 0):Yn=Qa}if(Rn===void 0&&Yn===void 0&&ee===bt&>&16){let La;try{La=Pi(Be)}catch(Qa){var ma;const go=(ma=Cr)!=null?ma:Qa;throw Cr=void 0,z&&De.error(go),go}La!=="Object"&&(Yn=La)}return z&&De.stop(),Yn}:ye,jt.hybridGetTrapForTypedArray=fn?function(pn,ee,oe){let De;z&&(De=Ct("hybridGetTrapForTypedArray"));const{foreignTargetPointer:Be,foreignTargetTypedArrayLength:gt,proxy:Ht,shadowTarget:nn}=this;let Rn=_s;if(!Rn&&typeof ee=="string"){const $i=+ee;Rn=$i>-1&&$i<gt&&$r($i)}let Yn;if(Rn){let $i;try{$i=Kr(Be,ee)}catch(ma){var gr;const La=(gr=Cr)!=null?gr:ma;throw Cr=void 0,z&&De.error(La),La}typeof $i=="function"?($i(),Yn=Cr,Cr=void 0):Yn=$i}else{const $i=kt(Be,nn,ee);if($i){const{get:ma,value:La}=$i;if(ma)if($i.foreign){const Qa=St(ma),go=Ht===oe?Be:typeof oe=="object"&&oe!==null||typeof oe=="function"?St(oe):oe;let Ao;try{Ao=Hn(Qa,go)}catch(Fo){var Ai;const Ho=(Ai=Cr)!=null?Ai:Fo;throw Cr=void 0,z&&De.error(Ho),Ho}typeof Ao=="function"?(Ao(),Yn=Cr,Cr=void 0):Yn=Ao}else Yn=Gt(ma,oe,[]);else Yn=La}}return z&&De.stop(),Yn}:ye,jt.hybridHasTrap=fn?function(pn,ee){let oe;z&&(oe=Ct("hybridHasTrap"));let De;try{De=Lr(this.foreignTargetPointer,ee)}catch(Ht){var Be;const nn=(Be=Cr)!=null?Be:Ht;throw Cr=void 0,z&&oe.error(nn),nn}let gt=!1;if(De===!0)gt=!0;else{let Ht;for(typeof De=="function"?(De(),Ht=Cr,Cr=void 0):Ht=null;Ht;){if(qt(Ht,ee)){gt=!0;break}Ht=Kt(Ht)}}return z&&oe.stop(),gt}:qa,jt.passthruGetTrap=Tt?function(pn,ee,oe){Io&&(Io=ka===128),ka=16;const De=ee===Dn,Be=ee===Kn;if(Io){if(De)return!0;if(Be)return this.serialize()}let gt;z&&(gt=Ct("Reflect.get"));const{foreignTargetPointer:Ht,foreignTargetTraits:nn,proxy:Rn}=this;typeof oe>"u"&&(oe=Rn);const Yn=Rn===oe?Vn:typeof oe=="object"&&oe!==null||typeof oe=="function"?St(oe):oe;let gr;try{gr=Li(Ht,nn,ee,Yn)}catch(ma){var Ai;const La=(Ai=Cr)!=null?Ai:ma;throw Cr=void 0,z&>.error(La),La}let $i;if(typeof gr=="function"?(gr(),$i=Cr,Cr=void 0):$i=gr,z&>.stop(),$i!==void 0&&(De||Be))throw new ct(yr);return $i}:ye,jt.passthruHasTrap=Tt?function(pn,ee){ka=128;let oe;z&&(oe=Ct("Reflect.has"));let De;try{De=$a(this.foreignTargetPointer,ee)}catch(nn){var Be;const Rn=(Be=Cr)!=null?Be:nn;throw Cr=void 0,z&&oe.error(Rn),Rn}const gt=ee===Dn,Ht=ee===Kn;if(De){if(Io=!1,gt||Ht)throw new ct(yr)}else Io=gt||Ht;return z&&oe.stop(),De}:qa,jt.pendingDefinePropertyTrap=fn?function(pn,ee,oe){const{foreignTargetPointer:De,foreignTargetTraits:Be}=this;return Fa(De,Be)?this.makeProxyLive():(Co&&(ui(De)?vr():ta(De)&&(_s=!1)),this.makeProxyStatic()),this.defineProperty(pn,ee,oe)}:qa,jt.pendingDeletePropertyTrap=fn?function(pn,ee){return Fa(this.foreignTargetPointer,this.foreignTargetTraits)?this.makeProxyLive():this.makeProxyStatic(),this.deleteProperty(pn,ee)}:qa,jt.pendingPreventExtensionsTrap=fn?function(pn){return Fa(this.foreignTargetPointer,this.foreignTargetTraits)?this.makeProxyLive():this.makeProxyStatic(),this.preventExtensions(pn)}:qa,jt.pendingSetPrototypeOfTrap=fn?function(pn,ee){const{foreignTargetPointer:oe,foreignTargetTraits:De}=this;return Fa(oe,De)?this.makeProxyLive():(Co&&(ui(oe)?vr():ta(oe)&&(_s=!1)),this.makeProxyStatic()),this.setPrototypeOf(pn,ee)}:qa,jt.pendingSetTrap=fn?function(pn,ee,oe,De){const{foreignTargetPointer:Be,foreignTargetTraits:gt}=this;return Fa(Be,gt)?this.makeProxyLive():(Co&&(ui(Be)?vr():ta(Be)&&(_s=!1)),this.makeProxyStatic()),this.set(pn,ee,oe,De)}:qa,jt.staticDefinePropertyTrap=fn?Yt:qa,jt.staticDeletePropertyTrap=fn?Bt:qa,jt.staticGetOwnPropertyDescriptorTrap=fn?zt:ye,jt.staticGetPrototypeOfTrap=fn?Kt:()=>null,jt.staticGetTrap=fn?function(pn,ee,oe){const{foreignTargetTraits:De,staticToStringTag:Be}=this,gt=Lt(pn,ee,oe);return gt===void 0&&ee===bt&&De&16&&Be!=="Object"&&!(ee in pn)?Be:gt}:ye,jt.staticHasTrap=fn?vt:qa,jt.staticIsExtensibleTrap=fn?Ve:qa,jt.staticOwnKeysTrap=fn?lt:()=>[],jt.staticPreventExtensionsTrap=fn?at:qa,jt.staticSetPrototypeOfTrap=fn?rt:qa,jt.staticSetTrap=fn?Xt:qa,jt.defaultDefinePropertyTrap=fn?jt.pendingDefinePropertyTrap:jt.passthruDefinePropertyTrap,jt.defaultDeletePropertyTrap=fn?jt.pendingDeletePropertyTrap:jt.passthruDeletePropertyTrap,jt.defaultGetOwnPropertyDescriptorTrap=jt.passthruGetOwnPropertyDescriptorTrap,jt.defaultGetPrototypeOfTrap=jt.passthruGetPrototypeOfTrap,jt.defaultGetTrap=fn?jt.hybridGetTrap:jt.passthruGetTrap,jt.defaultHasTrap=fn?jt.hybridHasTrap:jt.passthruHasTrap,jt.defaultIsExtensibleTrap=jt.passthruIsExtensibleTrap,jt.defaultOwnKeysTrap=jt.passthruOwnKeysTrap,jt.defaultPreventExtensionsTrap=fn?jt.pendingPreventExtensionsTrap:jt.passthruPreventExtensionsTrap,jt.defaultSetTrap=fn?jt.pendingSetTrap:jt.passthruSetTrap,jt.defaultSetPrototypeOfTrap=fn?jt.pendingSetPrototypeOfTrap:jt.passthruSetPrototypeOfTrap,fn&&Zs(),Ko(Wn(vn),Tt?()=>{const pn=Cr;return Cr=void 0,pn}:ye,pn=>typeof pn=="object"&&pn!==null||typeof pn=="function"?St(pn):typeof pn>"u"?void 0:pn,(pn,ee)=>{pn();const oe=Cr;Cr=void 0;const De=oe?.[ee];return Wn(typeof De>"u"?void 0:De)},fn?pn=>{let ee;try{ee=ii(pn)}catch(oe){throw Mn(oe)}return typeof ee=="object"&&ee!==null||typeof ee=="function"?St(ee):ee}:ye,(pn,ee)=>{pn();const oe=Cr;Cr=void 0,(typeof oe=="object"&&oe!==null||typeof oe=="function")&&Je.set(oe,ee)},ni?(pn,ee,oe,De,Be)=>{const gt=Pr(pn,ee,oe,De,Be);return()=>(xs(),gt())}:Pr,Pr,(pn,ee,...oe)=>{pn();const De=Cr;Cr=void 0;let Be;typeof ee=="function"&&(ee(),Be=Cr,Cr=void 0);for(let Ht=0,{length:nn}=oe;Ht<nn;Ht+=1){const Rn=oe[Ht];typeof Rn=="function"&&(Rn(),oe[Ht]=Cr,Cr=void 0)}let gt;try{gt=Gt(De,Be,oe)}catch(Ht){throw Mn(Ht)}return typeof gt=="object"&>!==null||typeof gt=="function"?St(gt):typeof gt>"u"?void 0:gt},(pn,ee,...oe)=>{pn();const De=Cr;Cr=void 0;let Be;typeof ee=="function"&&(ee(),Be=Cr,Cr=void 0);for(let Ht=0,{length:nn}=oe;Ht<nn;Ht+=1){const Rn=oe[Ht];typeof Rn=="function"&&(Rn(),oe[Ht]=Cr,Cr=void 0)}let gt;try{gt=hn(De,oe,Be)}catch(Ht){throw Mn(Ht)}return typeof gt=="object"&>!==null||typeof gt=="function"?St(gt):typeof gt>"u"?void 0:gt},(pn,ee,oe,De,Be,gt,Ht,nn,Rn)=>{pn();const Yn=Cr;Cr=void 0;const gr=Sn(oe,De,Be,gt,Ht,nn);let Ai=!1;try{Ai=Yt(Yn,ee,gr)}catch($i){throw Mn($i)}if(Ai&&oe===!1){let $i;try{$i=zt(Yn,ee)}catch(ma){throw Mn(ma)}if($i&&(rt($i,null),$i.configurable===!1)){const{get:ma,set:La,value:Qa}=$i;Rn(ee,!1,"enumerable"in $i?$i.enumerable:Vn,"writable"in $i?$i.writable:Vn,"value"in $i?typeof Qa=="object"&&Qa!==null||typeof Qa=="function"?St(Qa):Qa:Vn,"get"in $i?typeof ma=="function"?St(ma):ma:Vn,"set"in $i?typeof La=="function"?St(La):La:Vn)}}return Ai},(pn,ee)=>{pn();const oe=Cr;Cr=void 0;try{return Bt(oe,ee)}catch(De){throw Mn(De)}},(pn,ee,oe,De)=>{pn();const Be=Cr;Cr=void 0;let gt;typeof De=="function"?(De(),gt=Cr,Cr=void 0):gt=De===Vn?Be:De;let Ht;try{Ht=Lt(Be,oe,gt)}catch(nn){throw Mn(nn)}if(typeof Ht=="object"&&Ht!==null||typeof Ht=="function")return St(Ht);if(Ht===void 0&&oe===bt&&ee&16)try{if(!(oe in Be)){const nn=Gt(An,Be,[]);nn!=="[object Object]"&&(Ht=Gt(Mr,nn,[8,-1]))}}catch(nn){throw Mn(nn)}return typeof Ht>"u"?void 0:Ht},(pn,ee,oe)=>{pn();const De=Cr;Cr=void 0;let Be;try{Be=zt(De,ee)}catch(gt){throw Mn(gt)}if(Be){rt(Be,null);const{get:gt,set:Ht,value:nn}=Be;oe(ee,"configurable"in Be?Be.configurable:Vn,"enumerable"in Be?Be.enumerable:Vn,"writable"in Be?Be.writable:Vn,"value"in Be?typeof nn=="object"&&nn!==null||typeof nn=="function"?St(nn):typeof nn>"u"?void 0:nn:Vn,"get"in Be?typeof gt=="function"?St(gt):gt:Vn,"set"in Be?typeof Ht=="function"?St(Ht):Ht:Vn)}},pn=>{pn();const ee=Cr;Cr=void 0;let oe;try{oe=Kt(ee)}catch(De){throw Mn(De)}return typeof oe>"u"?null:oe&&St(oe)},(pn,ee)=>{pn();const oe=Cr;Cr=void 0;try{return ee in oe}catch(De){throw Mn(De)}},pn=>{pn();const ee=Cr;Cr=void 0;try{return Ve(ee)}catch(oe){throw Mn(oe)}},(pn,ee)=>{pn();const oe=Cr;Cr=void 0;let De;try{De=lt(oe)}catch(Be){throw Mn(Be)}Gt(ee,void 0,De)},pn=>{pn();const ee=Cr;Cr=void 0;let oe=2;try{at(ee)?oe=4:Ve(ee)&&(oe|=1)}catch(De){throw Mn(De)}return oe},(pn,ee,oe,De)=>{pn();const Be=Cr;Cr=void 0;let gt;typeof oe=="function"?(oe(),gt=Cr,Cr=void 0):gt=oe;let Ht;typeof De=="function"?(De(),Ht=Cr,Cr=void 0):Ht=De===Vn?Be:De;try{return Xt(Be,ee,gt,Ht)}catch(nn){throw Mn(nn)}},(pn,ee=null)=>{pn();const oe=Cr;Cr=void 0;let De;typeof ee=="function"?(ee(),De=Cr,Cr=void 0):De=null;try{return rt(oe,De)}catch(Be){throw Mn(Be)}},ni?(...pn)=>{if(xs()){for(let ee=0,{length:oe}=pn;ee<oe;ee+=1){const De=pn[ee];typeof De=="function"&&(De(),pn[ee]=Cr,Cr=void 0)}try{Gt(Ei,Fr,pn)}catch{}}}:ye,fn?(pn,...ee)=>{pn();const oe=Cr;Cr=void 0;for(let De=0,{length:Be}=ee;De<Be;De+=7)Yt(oe,ee[De],Sn(ee[De+1],ee[De+2],ee[De+3],ee[De+4],ee[De+5],ee[De+6]))}:ye,Tt?pn=>{pn();const ee=Cr;Cr=void 0;const oe=s.get(ee);return oe&&St(oe)}:ye,Tt?(pn,ee)=>{pn();const oe=Cr;Cr=void 0;let De;try{De=oe[ee]}catch(Be){throw Mn(Be)}return typeof De=="object"&&De!==null||typeof De=="function"?St(De):De}:ye,Tt?pn=>{pn();const ee=Cr;Cr=void 0;try{if(!Ve(ee))return st(ee)||en(ee)?0:1}catch{try{Ni(ee)}catch{return 8}}return 0}:()=>0,pn=>{pn();const ee=Cr;Cr=void 0;try{const oe=Gt(An,ee,[]);return oe==="[object Object]"?"Object":Gt(Mr,oe,[8,-1])}catch(oe){throw Mn(oe)}},se,fn?(pn,...ee)=>{const oe=Gt(ha,ee,[Vn]);let De,Be;oe===-1?De=ee:(De=Gt(Ca,ee,[0,oe]),Be=Gt(Ca,ee,[oe+1])),pn();const gt=Cr;Cr=void 0;let Ht=kr(gt);Ht===void 0&&(Ht={__proto__:null},Hi(gt,Ht));for(let nn=0,{length:Rn}=De;nn<Rn;nn+=1){const Yn=De[nn];Ht[Yn]=!0,Yt(gt,Yn,{__proto__:null,configurable:!0,get(){return Is(gt,Yn,Ht),gt[Yn]},set(gr){Is(gt,Yn,Ht),Xt(gt,Yn,gr)}})}pt(Be)}:ye,Tt&&Ee?(pn,ee)=>{pn();const oe=Cr;if(Cr=void 0,oe!==Ke&&oe!==On)try{return Ee(oe,ee)}catch{}return!1}:qa,Tt?pn=>{pn();const ee=Cr;Cr=void 0;try{return Ni(ee),!1}catch{}return!0}:qa,fn?pn=>{pn();const ee=Cr;Cr=void 0;try{return bt in ee?Si(ee):Or(ee)}catch{}}:ye,Tt?(pn,ee)=>{pn();const oe=Cr;Cr=void 0,ee();const De=Cr;Cr=void 0,s.set(oe,De)}:ye,fn?pn=>{pn();const ee=Cr;Cr=void 0,Co&&_a.add(St(ee))}:ye,(pn,ee)=>{pn();const oe=Cr;Cr=void 0;let De;try{De=ze(oe)}catch(Rn){throw Mn(Rn)}const Be=lt(De),{length:gt}=Be,Ht=new At(gt*7);for(let Rn=0,Yn=0;Rn<gt;Rn+=1,Yn+=7){const gr=Be[Rn],Ai=De[gr];rt(Ai,null);const{get:$i,set:ma,value:La}=Ai;Ht[Yn]=gr,Ht[Yn+1]="configurable"in Ai?Ai.configurable:Vn,Ht[Yn+2]="enumerable"in Ai?Ai.enumerable:Vn,Ht[Yn+3]="writable"in Ai?Ai.writable:Vn,Ht[Yn+4]="value"in Ai?typeof La=="object"&&La!==null||typeof La=="function"?St(La):La:Vn,Ht[Yn+5]="get"in Ai?typeof $i=="function"?St($i):$i:Vn,Ht[Yn+6]="set"in Ai?typeof ma=="function"?St(ma):ma:Vn}Gt(ee,void 0,Ht);let nn;try{nn=Kt(oe)}catch(Rn){throw Mn(Rn)}return typeof nn>"u"?null:nn&&St(nn)},(pn,ee)=>{pn();const oe=Cr;Cr=void 0;let De;try{if(qt(oe,ee))return!0;De=Kt(oe)}catch(Be){throw Mn(Be)}return typeof De>"u"?null:De&&St(De)},(pn,ee,oe)=>{pn();const De=Cr;Cr=void 0;let Be;try{Be=zt(De,ee)}catch(Ht){throw Mn(Ht)}if(Be){rt(Be,null);const{get:Ht,set:nn,value:Rn}=Be;oe(ee,"configurable"in Be?Be.configurable:Vn,"enumerable"in Be?Be.enumerable:Vn,"writable"in Be?Be.writable:Vn,"value"in Be?typeof Rn=="object"&&Rn!==null||typeof Rn=="function"?St(Rn):typeof Rn>"u"?void 0:Rn:Vn,"get"in Be?typeof Ht=="function"?St(Ht):Ht:Vn,"set"in Be?typeof nn=="function"?St(nn):nn:Vn);return}let gt;try{gt=Kt(De)}catch(Ht){throw Mn(Ht)}return typeof gt>"u"?null:gt&&St(gt)});let $n=!1;return(...pn)=>{if($n)return;$n=!0,{6:Vt,7:bn,8:Hn,9:br,10:ei,11:mi,12:Li,13:na,14:ji,15:$a,16:Ha,17:Eo,18:Uo,19:Ms,20:er,21:Ar,23:ur,24:Kr,25:Gr,26:Pi,27:aa,29:Fa,30:tn,31:cn,32:nr,34:ir,35:Lr,36:ua}=pn;const ee=Us(1),oe=fu(1),De=bu(1),Be=Ys(1),gt=Hu(1),Ht=Zu(1),nn=ql(1),Rn=Us(2),Yn=fu(2),gr=bu(2),Ai=Ys(2),$i=Hu(2),ma=Zu(2),La=ql(2);Yr===void 0&&(Yr=wt({applyTrapForZeroOrMoreArgs:ee,applyTrapForOneOrMoreArgs:oe,applyTrapForTwoOrMoreArgs:De,applyTrapForThreeOrMoreArgs:Be,applyTrapForFourOrMoreArgs:gt,applyTrapForFiveOrMoreArgs:Ht,applyTrapForAnyNumberOfArgs:nn,constructTrapForZeroOrMoreArgs:Rn,constructTrapForOneOrMoreArgs:Yn,constructTrapForTwoOrMoreArgs:gr,constructTrapForThreeOrMoreArgs:Ai,constructTrapForFourOrMoreArgs:$i,constructTrapForFiveOrMoreArgs:ma,constructTrapForAnyNumberOfArgs:La})),B[0]=Yr[0],B[1]=Yr[1],B[2]=Yr[2],B[3]=Yr[3],B[4]=Yr[4],B[5]=Yr[5],B.n=Yr[6],le[0]=Yr[7],le[1]=Yr[8],le[2]=Yr[9],le[3]=Yr[10],le[4]=Yr[11],le[5]=Yr[12],le.n=Yr[13];const{prototype:Qa}=jt;Qa[B[0]]=ee,Qa[B[1]]=oe,Qa[B[2]]=De,Qa[B[3]]=Be,Qa[B[4]]=gt,Qa[B[5]]=Ht,Qa[B.n]=nn,Qa[le[0]]=Rn,Qa[le[1]]=Yn,Qa[le[2]]=gr,Qa[le[3]]=Ai,Qa[le[4]]=$i,Qa[le[5]]=ma,Qa[le.n]=La,rt(Qa,null)}}}const v=` 'use strict'; (${u})`;function l(ue){if(typeof ue!="object"||ue===null)throw new i.z3("Missing globalObject.");return u(ue)}function h(ue){if(typeof ue!="function")throw new i.z3("Missing evaluator function.");return ue(v)()}const p=(0,i.wk)("@@lockerNearMembraneUndefinedValue");class d{constructor(ae){if(ae===void 0)throw new i.hw("Missing required VirtualEnvironment options.");const{blueConnector:ve,redConnector:Me,distortionCallback:Ye,instrumentation:qe,liveTargetCallback:At,revokedProxyCallback:It,signSourceCallback:Ce}=(0,i.MN)({__proto__:null},ae);let Ae;const $e=ve("blue",(...vo)=>{Ae=vo},{distortionCallback:Ye,instrumentation:qe,liveTargetCallback:At,revokedProxyCallback:It}),{0:tt,1:ke,2:Oe,3:je,5:Et,6:ct,7:ut,8:Ne,9:mt,10:bt,11:Gt,12:hn,13:Yt,14:Bt,15:Lt,16:zt,17:Kt,18:vt,19:Ve,20:lt,23:at,24:Xt,25:rt,26:Rt,27:rn,29:sn,32:Jn,34:ze,35:st,36:en}=Ae;let wt;const Ke=Me("red",(...vo)=>{wt=vo}),{0:Ut,3:on,4:Tn,5:An,6:Zt,7:ot,8:We,9:Ft,10:it,11:qt,12:vn,13:fn,14:Tt,15:dn,16:mn,17:Kn,18:Dn,19:Vn,20:or,21:Qr,22:ni,23:yr,25:si,26:Yr,27:Ci,28:Ni,30:fa,31:ha,32:Ca,33:li,34:la,35:Oa,36:wa}=wt;$e(i.ZT,i.ZT,i.ZT,i.ZT,i.ZT,i.ZT,Zt,ot,We,Ft,it,qt,vn,fn,Tt,dn,mn,Kn,Dn,Vn,or,Qr,i.ZT,yr,i.ZT,si,Yr,Ci,i.ZT,i.ZT,fa,ha,Ca,li,la,Oa,wa),Ke(i.ZT,i.ZT,i.ZT,i.ZT,i.ZT,i.ZT,ct,ut,Ne,mt,bt,Gt,hn,Yt,Bt,Lt,zt,Kt,vt,Ve,lt,i.ZT,i.ZT,at,Xt,rt,Rt,rn,i.ZT,sn,i.ZT,i.ZT,Jn,i.ZT,ze,st,en),this.blueGlobalThisPointer=tt,this.blueGetSelectedTarget=ke,this.blueGetTransferableValue=Oe,this.blueCallableGetPropertyValuePointer=je,this.blueCallableLinkPointers=Et,this.redGlobalThisPointer=()=>Ut(),this.redCallableGetPropertyValuePointer=(vo,Qn)=>on(vo,Qn),this.redCallableEvaluate=Ce?vo=>Tn(Ce(vo)):vo=>Tn(vo),this.redCallableLinkPointers=(vo,Qn)=>An(vo,Qn),this.redCallableSetPrototypeOf=(vo,Qn)=>or(vo,Qn),this.redCallableDefineProperties=(vo,...Qn)=>{const{length:_r}=Qn,$r=new i.gd(_r+1);$r[0]=vo;for(let Ti=0;Ti<_r;Ti+=1)$r[Ti+1]=Qn[Ti];(0,i.Yb)(ni,void 0,$r)},this.redCallableInstallLazyPropertyDescriptors=(vo,...Qn)=>{const{length:_r}=Qn,$r=new i.gd(_r+1);$r[0]=vo;for(let Ti=0;Ti<_r;Ti+=1)$r[Ti+1]=Qn[Ti];(0,i.Yb)(Ni,void 0,$r)},this.redCallableTrackAsFastTarget=vo=>li(vo)}evaluate(ae){try{const Me=this.redCallableEvaluate(ae);return typeof Me=="function"?(Me(),this.blueGetSelectedTarget()):Me}catch(Me){var ve;throw(ve=this.blueGetSelectedTarget())!=null?ve:Me}}lazyRemapProperties(ae,ve,Me){if(typeof ae=="object"&&ae!==null||typeof ae=="function"){const Ye=[this.blueGetTransferableValue(ae)];(0,i.Yb)(i.aF,Ye,ve),Me!=null&&Me.length&&(Ye[Ye.length]=p,(0,i.Yb)(i.aF,Ye,Me)),(0,i.Yb)(this.redCallableInstallLazyPropertyDescriptors,void 0,Ye)}}link(...ae){let ve=this.blueGlobalThisPointer,Me=this.redGlobalThisPointer;for(let Ye=0,{length:qe}=ae;Ye<qe;Ye+=1){const At=ae[Ye];ve=this.blueCallableGetPropertyValuePointer(ve,At),Me=this.redCallableGetPropertyValuePointer(Me,At),this.redCallableLinkPointers(Me,ve),this.blueCallableLinkPointers(ve,Me)}}remapProperties(ae,ve){if(typeof ae=="object"&&ae!==null||typeof ae=="function"){const Me=this.blueGetTransferableValue(ae),Ye=(0,i.U_)(ve),{length:qe}=Ye,At=new i.gd(1+qe*7);At[0]=Me;for(let It=0,Ce=1;It<qe;It+=1,Ce+=7){const Ae=Ye[It],$e=ve[Ae],tt=(0,i.MN)({__proto__:null},$e);At[Ce]=Ae,At[Ce+1]="configurable"in tt?!!tt.configurable:p,At[Ce+2]="enumerable"in tt?!!tt.enumerable:p,At[Ce+3]="writable"in tt?!!tt.writable:p,At[Ce+4]="value"in tt?this.blueGetTransferableValue(tt.value):p,At[Ce+5]="get"in tt?this.blueGetTransferableValue(tt.get):p,At[Ce+6]="set"in tt?this.blueGetTransferableValue(tt.set):p}(0,i.Yb)(this.redCallableDefineProperties,this,At)}}remapProto(ae,ve){if(typeof ae=="object"&&ae!==null||typeof ae=="function"){const Me=this.blueGetTransferableValue(ae),Ye=ve&&this.blueGetTransferableValue(ve);this.redCallableSetPrototypeOf(Me,Ye)}}trackAsFastTarget(ae){(typeof ae=="object"&&ae!==null||typeof ae=="function")&&this.redCallableTrackAsFastTarget(this.blueGetTransferableValue(ae))}}const f=["globalThis","Infinity","NaN","undefined","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","BigInt","Boolean","FinalizationRegistry","Number","RegExp","String","Symbol","WeakRef","JSON","Math","Reflect","escape","unescape"],g=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval","globalThis"],y=(0,i.Zv)([...f,...g]);function b(ue){const ae=(0,i.U_)(ue);return(0,i.Mf)(ue,"webkit")&&!(0,i.Yb)(i.Ct,ae,["webkit"])&&(ae[ae.length]="webkit"),ae}function E(ue,ae){const ve=b(ae);for(let Me=0,{length:Ye}=ve;Me<Ye;Me+=1){const qe=ve[Me];if(!y.includes(qe)){const At=ae[qe];At&&(ue[qe]=(0,i.MN)({__proto__:null},At))}}return ue}function S(ue){const ae=[];let ve=0;const Me=b(ue);for(let Ye=0,{length:qe}=Me;Ye<qe;Ye+=1){const At=Me[Ye];y.includes(At)||(ae[ve++]=At)}return ae}function w(ue,ae){for(let ve=0,{length:Me}=g;ve<Me;ve+=1){const Ye=g[ve],qe=ae[Ye];qe&&(qe.prototype?ue.link(Ye,"prototype"):ue.link(Ye))}}const x=window,{navigator:P,navigator:{userAgentData:R}}=x,T=R?.brands,A=/ (?:Headless)?Chrome\/\d+/;let I;function N(){return I===void 0&&(I=P.userAgent),I}const K=(0,i.TQ)(T)&&T.length?(0,i.Yb)(i.jz,T,[ue=>ue?.brand==="Chromium"])!==void 0:(0,i.Yb)(i.WI,A,[N()]),_=K&&R===void 0,{prototype:W}=Document,{close:j,createElement:re,open:X}=W,Z=(0,i.LX)(W,"body"),J=DOMException,{DATA_CLONE_ERR:q}=J,L=(0,i.LX)(J.prototype,"code"),{remove:$,setAttribute:k}=Element.prototype,F=(0,i.LX)(HTMLElement.prototype,"style"),V=(0,i.LX)(HTMLIFrameElement.prototype,"contentWindow"),{prototype:pe}=Node,{appendChild:ce}=pe,G=(0,i.LX)(pe,"lastChild"),te=(0,i.bs)(new WeakMap),ie=K?["window"]:void 0;function fe(ue){const{window:ae}=ue;let ve,Me;try{({document:Me}=ue),ve=te.get(Me)}catch{return}if(ve)return ve;const Ye=(0,i.g_)(ae),qe=(0,i.g_)(Ye),At=(0,i.g_)(qe);return ve={document:Me,DocumentProto:(0,i.g_)(Me),window:ae,WindowProto:(0,i.g_)(ae),WindowPropertiesProto:(0,i.g_)(Ye),EventTargetProto:At,EventTargetProtoOwnKeys:At?(0,i.U_)(At):[]},te.set(Me,ve),ve}function Se(ue){const ae=[];let ve=0;for(let Me=0,{length:Ye}=ue;Me<Ye;Me+=1){const qe=ue[Me];qe!=="document"&&qe!=="location "&&qe!=="top"&&qe!=="window"&&qe!=="chrome"&&(ae[ve++]=qe)}return ae}function he(ue){return(0,i.iw)(ue,"document"),(0,i.iw)(ue,"location"),(0,i.iw)(ue,"top"),(0,i.iw)(ue,"window"),(0,i.iw)(ue,"chrome"),ue}fe(x);const me="allow-same-origin allow-scripts",_e=(0,i.nX)(new i.Lp),we=(0,i.bs)(new i.ir);let Ge=null;function ht(ue){var ae;const ve=(0,i.Yb)(re,ue,["iframe"]),Me=(ae=(0,i.Yb)(Z,ue,[]))!=null?ae:(0,i.Yb)(G,ue,[]),Ye=(0,i.Yb)(F,ve,[]);return Ye.display="none",(0,i.Yb)(k,ve,["sandbox",me]),(0,i.Yb)(ce,Me,[ve]),ve}function nt(ue,ae){if(typeof ue!="object"||ue===null)throw new i.z3("Missing global object virtualization target.");const ve=fe(ue);if(typeof ve!="object"||ve===null)throw new i.z3("Invalid virtualization target.");const{distortionCallback:Me,defaultPolicy:Ye,endowments:qe,globalObjectShape:At,instrumentation:It,keepAlive:Ce=!0,liveTargetCallback:Ae,signSourceCallback:$e}=(0,i.MN)({__proto__:null},ae),tt=ht(ve.document),ke=(0,i.Yb)(V,tt,[]),Oe=typeof At!="object"||At===null;Oe&&Ge===null&&(Ge=Se(S(ke)));let je=we.get(ve.document);je===void 0&&(je=l(ue),we.set(ve.document,je)),typeof ke.trustedTypes<"u"&&(0,i.Kn)(Ye)&&ke.trustedTypes.createPolicy("default",Ye);const{eval:Et}=ke,ct=new d({blueConnector:je,redConnector:h($e?ut=>Et($e(ut)):Et),distortionCallback:Me,instrumentation:It,liveTargetCallback:Ae,revokedProxyCallback:Ce?Re:void 0,signSourceCallback:$e});if(w(ct,ue),typeof globalThis>"u"?ct.link("window","document"):ct.link("document"),ct.link("__proto__","__proto__","__proto__"),ct.remapProto(ve.document,ve.DocumentProto),ct.lazyRemapProperties(ve.window,Oe?Ge:Se(S(At)),Ce?void 0:ie),qe){const ut={};E(ut,qe),he(ut),ct.remapProperties(ve.window,ut)}if(ct.lazyRemapProperties(ve.EventTargetProto,ve.EventTargetProtoOwnKeys),Ce){const{document:ut}=ke;_e.add(ut),_e.add(ke),(0,i.Yb)(X,ut,[]),(0,i.Yb)(j,ut,[])}else _&&Et("window"),(0,i.Yb)($,tt,[]);return ct}function Re(ue){return _e.has(ue)}},99723:(C,c,t)=>{"use strict";t.d(c,{Ct:()=>At,Kn:()=>R,LX:()=>T,Lp:()=>On,MN:()=>d,Mf:()=>x,TQ:()=>tt,U_:()=>l,WI:()=>ni,Yb:()=>i,ZT:()=>qi,Zv:()=>ke,aF:()=>$e,bs:()=>xt,g_:()=>v,gd:()=>re,hw:()=>Go,ir:()=>Oa,iw:()=>u,jz:()=>qe,nX:()=>rr,qD:()=>Ri,wk:()=>N,z3:()=>wr});const{apply:i,defineProperty:s,deleteProperty:u,getPrototypeOf:v,ownKeys:l,setPrototypeOf:h}=Reflect,p=Object,{assign:d,freeze:f,keys:g,prototype:y}=p,{hasOwn:b}=p,{__lookupGetter__:E,__lookupSetter__:S,hasOwnProperty:w}=y,x=typeof b=="function"?b:function(ai,za){return i(w,ai,[za])},{toString:P}=y;function R(wi){return typeof wi=="object"&&wi!==null}function T(wi,ai){return wi==null||!x(wi,ai)?void 0:i(E,wi,[ai])}function A(wi,ai){return wi==null||!x(wi,ai)?void 0:i(S,wi,[ai])}const I=Symbol,{for:N,iterator:K,toStringTag:_,unscopables:W}=I,{valueOf:j}=I.prototype,re=Array,{prototype:X}=re,{at:Z,concat:J,copyWithin:q,entries:L,every:$,fill:k,findIndex:F,flat:V,flatMap:pe,forEach:ce,indexOf:G,join:te,keys:ie,lastIndexOf:fe,map:Se,pop:he,reduce:me,reduceRight:_e,reverse:we,slice:Ge,some:ht,splice:nt,toLocaleString:Re,toString:ue,values:ae,[K]:ve}=X,Me=f(d({__proto__:null},X[W])),{filter:Ye,find:qe,includes:At,shift:It,sort:Ce,unshift:Ae}=X,{push:$e}=X,{isArray:tt}=re;function ke(wi){return h(wi,null),wi.at=Z,wi.concat=J,wi.copyWithin=q,wi.entries=L,wi.every=$,wi.fill=k,wi.filter=Ye,wi.find=qe,wi.findIndex=F,wi.flat=V,wi.flatMap=pe,wi.forEach=ce,wi.includes=At,wi.indexOf=G,wi.join=te,wi.keys=ie,wi.lastIndexOf=fe,wi.map=Se,wi.pop=he,wi.push=$e,wi.reduce=me,wi.reduceRight=_e,wi.reverse=we,wi.shift=It,wi.slice=Ge,wi.some=ht,wi.sort=Ce,wi.splice=nt,wi.toLocaleString=Re,wi.toString=ue,wi.unshift=Ae,wi.values=ae,wi[K]=ve,wi[W]=Me,h(wi,X),wi}const Oe=T(ArrayBuffer.prototype,"byteLength"),je=typeof BigInt=="function",Et=je?BigInt.prototype.valueOf:void 0,{valueOf:ct}=Boolean.prototype,ut="$LWS",Ne=`${function wi(){return wi.name}()}`.includes("LOCKER_UNMINIFIED_FLAG"),mt="\u2026",bt="Illegal property access.",Gt=N("@@lockerNearMembraneSerializedValue"),hn=N("@@lockerNearMembrane"),Yt=N("@@lockerLiveValue"),Bt="[object Array]",Lt="[object ArrayBuffer]",zt="[object BigInt]",Kt="[object Boolean]",vt="[object Date]",Ve="[object Function]",lt="[object Map]",at="[object Null]",Xt="[object Number]",rt="[object Object]",Rt="[object RegExp]",rn="[object Set]",sn="[object String]",Jn="[object Symbol]",ze="[object Undefined]",st="[object WeakMap]",en="[object WeakSet]",{valueOf:wt}=Date.prototype,Ke=Map,{prototype:Ut}=Ke,{clear:on,delete:Tn,forEach:An,get:Zt,has:ot,keys:We,values:Ft,[K]:it,[_]:qt}=Ut,{entries:vn,set:fn}=Ut,Tt=T(Ut,"size");function dn(wi){return h(wi,null),wi.clear=on,wi.delete=Tn,wi.entries=vn,wi.forEach=An,wi.get=Zt,wi.has=ot,wi.keys=We,wi.set=fn,s(wi,"size",{__proto__:null,configurable:!0,enumerable:!0,get:Tt,set:void 0}),wi.values=Ft,wi[K]=it,wi[_]=qt,h(wi,Ut),wi}const mn=Number,{isFinite:Kn,isInteger:Dn}=mn,{valueOf:Vn}=mn.prototype,or=RegExp,{prototype:Qr}=or,{test:ni}=Qr,yr=T(Qr,"source"),si=Set,{prototype:Yr}=si,{add:Ci,values:Ni}=Yr,fa=T(Yr,"size"),ha=String,{prototype:Ca}=ha,{slice:li,valueOf:la}=Ca,Oa=WeakMap,{prototype:wa}=Oa,{has:vo}=wa,{delete:Qn,get:_r,set:$r,[_]:Ti}=wa;function xt(wi){return h(wi,null),wi.delete=Qn,wi.get=_r,wi.has=vo,wi.set=$r,wi[_]=Ti,h(wi,wa),wi}const On=WeakSet,{prototype:Zn}=On,{has:Ur}=Zn,{add:En,delete:ln,[_]:jn}=Zn;function rr(wi){return h(wi,null),wi.add=En,wi.delete=ln,wi.has=Ur,wi[_]=jn,h(wi,Zn),wi}const{toStringTag:Mr}=Symbol;function Ir(wi){try{if("byteLength"in wi)return i(Oe,wi,[]),Lt}catch{}try{if("toLocaleDateString"in wi)return i(wt,wi,[]),vt}catch{}try{if("get"in wi&&"size"in wi)return i(Tt,wi,[]),lt}catch{}try{if("add"in wi&&"size"in wi)return i(fa,wi,[]),rn}catch{}try{if("get"in wi&&!("size"in wi))return i(vo,wi,[]),st}catch{}try{if("add"in wi&&!("size"in wi))return i(Ur,wi,[]),en}catch{}try{if("toPrecision"in wi)return i(Vn,wi,[]),Xt}catch{}try{if("description"in wi)return i(j,wi,[]),Jn}catch{}try{if(x(wi,"lastIndex"))return i(yr,wi,[]),Rt}catch{}try{if(x(wi,"length"))return i(la,wi,[]),sn}catch{}try{return i(ct,wi,[]),Kt}catch{}if(je)try{return i(Et,wi,[]),zt}catch{}return rt}function Zr(wi){if(wi===null)return at;if(wi===void 0)return ze;switch(typeof wi){case"bigint":return zt;case"boolean":return Kt;case"function":return Ve;case"number":return Xt;case"string":return sn;case"symbol":return Jn}return tt(wi)?Bt:Mr in wi?Ir(wi):i(P,wi,[])}const{parse:lr}=JSON,{stringify:Jr}=JSON;function pi(wi){if(typeof wi=="object"&&wi!==null||typeof wi=="function")return Gt in wi?void 0:wi[Gt]}function Ri(wi){return typeof wi=="object"&&wi!==null||typeof wi=="function"?!(hn in wi)&&wi[hn]===!0:!1}const Ki=dn(new Ke);function ia(wi){return p(pi(wi))}function Da(wi,ai){const za=new Ke,Mt=i(vn,wi,[]);let{length:Gn}=ai;for(;;){const{done:qn,value:Fr}=Mt.next();if(qn)break;const{0:Ei,1:ii}=Fr;let Wi;ai[Gn++]=[Ya=>{Wi=Ya},Ei],ai[Gn++]=[Ya=>{i(fn,za,[Wi,Ya])},ii]}return za}function to(wi){const{flags:ai,source:za}=lr(pi(wi));return new or(za,ai)}function ao(wi,ai){const za=new si,Mt=i(Ni,wi,[]);let{length:Gn}=ai;for(;;){const{done:qn,value:Fr}=Mt.next();if(qn)break;ai[Gn++]=[Ei=>{i(Ci,za,[Ei])},Fr]}return za}function Bo(wi,ai,za){const Mt=g(ai);let{length:Gn}=wi;for(let qn=0,{length:Fr}=Mt;qn<Fr;qn+=1){const Ei=Mt[qn],ii=ai[Ei];wi[Gn++]=[Wi=>{za[Ei]=Wi},ii]}}function jo(wi){let ai;const za=[[Mt=>{ai=Mt},wi]];e:for(;za.length;){const{0:Mt,1:Gn}=i(It,za,[]);if(Gn==null||typeof Gn=="boolean"||typeof Gn=="number"||typeof Gn=="string"||typeof Gn=="bigint"){Mt(Gn);continue e}if(typeof Gn=="symbol"){Mt(Gn);break e}let qn=Ki.get(Gn);if(qn){Mt(qn);continue e}const Fr=Zr(Gn);switch(Fr){case rt:{const Ei=v(Gn);(Ei===y||Ei===null||v(Ei)===null)&&(qn={},Bo(za,Gn,qn));break}case Bt:qn=re(Gn.length),Bo(za,Gn,qn);break;case lt:qn=Da(Gn,za);break;case rn:qn=ao(Gn,za);break}if(qn===void 0){if(!Ri(Gn)){Ki.set(Gn,Gn),Mt(Gn);continue e}switch(Fr){case Rt:qn=to(Gn);break;case Kt:case Xt:case zt:case sn:qn=ia(Gn);break}}if(qn===void 0){Mt(Gn);break e}Ki.set(Gn,qn),Mt(qn)}return ai}function Jo(wi){let ai=wi;try{ai=jo(wi)}catch{}return Ki.clear(),ai}const Go=Error,wr=TypeError;function qi(){}const{min:ja}=Math,uo=null},37391:(C,c,t)=>{"use strict";t.d(c,{Q:()=>i});var i;(function(s){s[s.UNSET=0]="UNSET",s[s.OK=1]="OK",s[s.ERROR=2]="ERROR"})(i||(i={}))},65518:(C,c,t)=>{"use strict";t.d(c,{R9:()=>i});var i={CLOUD_PROVIDER:"cloud.provider",CLOUD_ACCOUNT_ID:"cloud.account.id",CLOUD_REGION:"cloud.region",CLOUD_AVAILABILITY_ZONE:"cloud.availability_zone",CLOUD_PLATFORM:"cloud.platform",AWS_ECS_CONTAINER_ARN:"aws.ecs.container.arn",AWS_ECS_CLUSTER_ARN:"aws.ecs.cluster.arn",AWS_ECS_LAUNCHTYPE:"aws.ecs.launchtype",AWS_ECS_TASK_ARN:"aws.ecs.task.arn",AWS_ECS_TASK_FAMILY:"aws.ecs.task.family",AWS_ECS_TASK_REVISION:"aws.ecs.task.revision",AWS_EKS_CLUSTER_ARN:"aws.eks.cluster.arn",AWS_LOG_GROUP_NAMES:"aws.log.group.names",AWS_LOG_GROUP_ARNS:"aws.log.group.arns",AWS_LOG_STREAM_NAMES:"aws.log.stream.names",AWS_LOG_STREAM_ARNS:"aws.log.stream.arns",CONTAINER_NAME:"container.name",CONTAINER_ID:"container.id",CONTAINER_RUNTIME:"container.runtime",CONTAINER_IMAGE_NAME:"container.image.name",CONTAINER_IMAGE_TAG:"container.image.tag",DEPLOYMENT_ENVIRONMENT:"deployment.environment",DEVICE_ID:"device.id",DEVICE_MODEL_IDENTIFIER:"device.model.identifier",DEVICE_MODEL_NAME:"device.model.name",FAAS_NAME:"faas.name",FAAS_ID:"faas.id",FAAS_VERSION:"faas.version",FAAS_INSTANCE:"faas.instance",FAAS_MAX_MEMORY:"faas.max_memory",HOST_ID:"host.id",HOST_NAME:"host.name",HOST_TYPE:"host.type",HOST_ARCH:"host.arch",HOST_IMAGE_NAME:"host.image.name",HOST_IMAGE_ID:"host.image.id",HOST_IMAGE_VERSION:"host.image.version",K8S_CLUSTER_NAME:"k8s.cluster.name",K8S_NODE_NAME:"k8s.node.name",K8S_NODE_UID:"k8s.node.uid",K8S_NAMESPACE_NAME:"k8s.namespace.name",K8S_POD_UID:"k8s.pod.uid",K8S_POD_NAME:"k8s.pod.name",K8S_CONTAINER_NAME:"k8s.container.name",K8S_REPLICASET_UID:"k8s.replicaset.uid",K8S_REPLICASET_NAME:"k8s.replicaset.name",K8S_DEPLOYMENT_UID:"k8s.deployment.uid",K8S_DEPLOYMENT_NAME:"k8s.deployment.name",K8S_STATEFULSET_UID:"k8s.statefulset.uid",K8S_STATEFULSET_NAME:"k8s.statefulset.name",K8S_DAEMONSET_UID:"k8s.daemonset.uid",K8S_DAEMONSET_NAME:"k8s.daemonset.name",K8S_JOB_UID:"k8s.job.uid",K8S_JOB_NAME:"k8s.job.name",K8S_CRONJOB_UID:"k8s.cronjob.uid",K8S_CRONJOB_NAME:"k8s.cronjob.name",OS_TYPE:"os.type",OS_DESCRIPTION:"os.description",OS_NAME:"os.name",OS_VERSION:"os.version",PROCESS_PID:"process.pid",PROCESS_EXECUTABLE_NAME:"process.executable.name",PROCESS_EXECUTABLE_PATH:"process.executable.path",PROCESS_COMMAND:"process.command",PROCESS_COMMAND_LINE:"process.command_line",PROCESS_COMMAND_ARGS:"process.command_args",PROCESS_OWNER:"process.owner",PROCESS_RUNTIME_NAME:"process.runtime.name",PROCESS_RUNTIME_VERSION:"process.runtime.version",PROCESS_RUNTIME_DESCRIPTION:"process.runtime.description",SERVICE_NAME:"service.name",SERVICE_NAMESPACE:"service.namespace",SERVICE_INSTANCE_ID:"service.instance.id",SERVICE_VERSION:"service.version",TELEMETRY_SDK_NAME:"telemetry.sdk.name",TELEMETRY_SDK_LANGUAGE:"telemetry.sdk.language",TELEMETRY_SDK_VERSION:"telemetry.sdk.version",TELEMETRY_AUTO_VERSION:"telemetry.auto.version",WEBENGINE_NAME:"webengine.name",WEBENGINE_VERSION:"webengine.version",WEBENGINE_DESCRIPTION:"webengine.description"},s={ALIBABA_CLOUD:"alibaba_cloud",AWS:"aws",AZURE:"azure",GCP:"gcp"},u={ALIBABA_CLOUD_ECS:"alibaba_cloud_ecs",ALIBABA_CLOUD_FC:"alibaba_cloud_fc",AWS_EC2:"aws_ec2",AWS_ECS:"aws_ecs",AWS_EKS:"aws_eks",AWS_LAMBDA:"aws_lambda",AWS_ELASTIC_BEANSTALK:"aws_elastic_beanstalk",AZURE_VM:"azure_vm",AZURE_CONTAINER_INSTANCES:"azure_container_instances",AZURE_AKS:"azure_aks",AZURE_FUNCTIONS:"azure_functions",AZURE_APP_SERVICE:"azure_app_service",GCP_COMPUTE_ENGINE:"gcp_compute_engine",GCP_CLOUD_RUN:"gcp_cloud_run",GCP_KUBERNETES_ENGINE:"gcp_kubernetes_engine",GCP_CLOUD_FUNCTIONS:"gcp_cloud_functions",GCP_APP_ENGINE:"gcp_app_engine"},v={EC2:"ec2",FARGATE:"fargate"},l={AMD64:"amd64",ARM32:"arm32",ARM64:"arm64",IA64:"ia64",PPC32:"ppc32",PPC64:"ppc64",X86:"x86"},h={WINDOWS:"windows",LINUX:"linux",DARWIN:"darwin",FREEBSD:"freebsd",NETBSD:"netbsd",OPENBSD:"openbsd",DRAGONFLYBSD:"dragonflybsd",HPUX:"hpux",AIX:"aix",SOLARIS:"solaris",Z_OS:"z_os"},p={CPP:"cpp",DOTNET:"dotnet",ERLANG:"erlang",GO:"go",JAVA:"java",NODEJS:"nodejs",PHP:"php",PYTHON:"python",RUBY:"ruby",WEBJS:"webjs"}},867:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(80354);function s(u,v){var l=v.getRootNode&&v.getRootNode();if(u.contains(v))return!0;if(l&&(0,i.Zq)(l)){var h=v;do{if(h&&u.isSameNode(h))return!0;h=h.parentNode||h.host}while(h)}return!1}},90929:(C,c,t)=>{"use strict";t.d(c,{Z:()=>l});var i=t(80354),s=t(63575),u=t(22583),v=t(82503);function l(h,p,d){p===void 0&&(p=!1),d===void 0&&(d=!1);var f=h.getBoundingClientRect(),g=1,y=1;p&&(0,i.Re)(h)&&(g=h.offsetWidth>0&&(0,s.NM)(f.width)/h.offsetWidth||1,y=h.offsetHeight>0&&(0,s.NM)(f.height)/h.offsetHeight||1);var b=(0,i.kK)(h)?(0,u.Z)(h):window,E=b.visualViewport,S=!(0,v.Z)()&&d,w=(f.left+(S&&E?E.offsetLeft:0))/g,x=(f.top+(S&&E?E.offsetTop:0))/y,P=f.width/g,R=f.height/y;return{width:P,height:R,top:x,right:w+P,bottom:x+R,left:w,x:w,y:x}}},37656:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(22583);function s(u){return(0,i.Z)(u).getComputedStyle(u)}},55536:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(80354);function s(u){return(((0,i.kK)(u)?u.ownerDocument:u.document)||window.document).documentElement}},33356:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s){return s?(s.nodeName||"").toLowerCase():null}},84517:(C,c,t)=>{"use strict";t.d(c,{Z:()=>g});var i=t(22583),s=t(33356),u=t(37656),v=t(80354);function l(y){return["table","td","th"].indexOf((0,s.Z)(y))>=0}var h=t(99710),p=t(84492);function d(y){return!(0,v.Re)(y)||(0,u.Z)(y).position==="fixed"?null:y.offsetParent}function f(y){var b=/firefox/i.test((0,p.Z)()),E=/Trident/i.test((0,p.Z)());if(E&&(0,v.Re)(y)){var S=(0,u.Z)(y);if(S.position==="fixed")return null}var w=(0,h.Z)(y);for((0,v.Zq)(w)&&(w=w.host);(0,v.Re)(w)&&["html","body"].indexOf((0,s.Z)(w))<0;){var x=(0,u.Z)(w);if(x.transform!=="none"||x.perspective!=="none"||x.contain==="paint"||["transform","perspective"].indexOf(x.willChange)!==-1||b&&x.willChange==="filter"||b&&x.filter&&x.filter!=="none")return w;w=w.parentNode}return null}function g(y){for(var b=(0,i.Z)(y),E=d(y);E&&l(E)&&(0,u.Z)(E).position==="static";)E=d(E);return E&&((0,s.Z)(E)==="html"||(0,s.Z)(E)==="body"&&(0,u.Z)(E).position==="static")?b:E||f(y)||b}},99710:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(33356),s=t(55536),u=t(80354);function v(l){return(0,i.Z)(l)==="html"?l:l.assignedSlot||l.parentNode||((0,u.Zq)(l)?l.host:null)||(0,s.Z)(l)}},22583:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var u=s.ownerDocument;return u&&u.defaultView||window}return s}},71270:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(22583);function s(u){var v=(0,i.Z)(u),l=v.pageXOffset,h=v.pageYOffset;return{scrollLeft:l,scrollTop:h}}},20760:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(90929),s=t(55536),u=t(71270);function v(l){return(0,i.Z)((0,s.Z)(l)).left+(0,u.Z)(l).scrollLeft}},80354:(C,c,t)=>{"use strict";t.d(c,{Re:()=>u,Zq:()=>v,kK:()=>s});var i=t(22583);function s(l){var h=(0,i.Z)(l).Element;return l instanceof h||l instanceof Element}function u(l){var h=(0,i.Z)(l).HTMLElement;return l instanceof h||l instanceof HTMLElement}function v(l){if(typeof ShadowRoot>"u")return!1;var h=(0,i.Z)(l).ShadowRoot;return l instanceof h||l instanceof ShadowRoot}},82503:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(84492);function s(){return!/^((?!chrome|android).)*safari/i.test((0,i.Z)())}},64738:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(37656);function s(u){var v=(0,i.Z)(u),l=v.overflow,h=v.overflowX,p=v.overflowY;return/auto|scroll|overlay|hidden/.test(l+p+h)}},95737:(C,c,t)=>{"use strict";t.d(c,{Z:()=>p});var i=t(99710),s=t(64738),u=t(33356),v=t(80354);function l(d){return["html","body","#document"].indexOf((0,u.Z)(d))>=0?d.ownerDocument.body:(0,v.Re)(d)&&(0,s.Z)(d)?d:l((0,i.Z)(d))}var h=t(22583);function p(d,f){var g;f===void 0&&(f=[]);var y=l(d),b=y===((g=d.ownerDocument)==null?void 0:g.body),E=(0,h.Z)(y),S=b?[E].concat(E.visualViewport||[],(0,s.Z)(y)?y:[]):y,w=f.concat(S);return b?w:w.concat(p((0,i.Z)(S)))}},6947:(C,c,t)=>{"use strict";t.d(c,{BL:()=>p,Ct:()=>S,F2:()=>u,I:()=>s,Pj:()=>g,YP:()=>b,bw:()=>E,d7:()=>l,k5:()=>y,mv:()=>h,t$:()=>v,ut:()=>d,we:()=>i,xs:()=>_,zV:()=>f});var i="top",s="bottom",u="right",v="left",l="auto",h=[i,s,u,v],p="start",d="end",f="clippingParents",g="viewport",y="popper",b="reference",E=h.reduce(function(W,j){return W.concat([j+"-"+p,j+"-"+d])},[]),S=[].concat(h,[l]).reduce(function(W,j){return W.concat([j,j+"-"+p,j+"-"+d])},[]),w="beforeRead",x="read",P="afterRead",R="beforeMain",T="main",A="afterMain",I="beforeWrite",N="write",K="afterWrite",_=[w,x,P,R,T,A,I,N,K]},63849:(C,c,t)=>{"use strict";t.d(c,{Z:()=>l});var i=t(10575),s=t(30342),u=t(70606),v=t(6947);function l(h){var p=h.reference,d=h.element,f=h.placement,g=f?(0,i.Z)(f):null,y=f?(0,s.Z)(f):null,b=p.x+p.width/2-d.width/2,E=p.y+p.height/2-d.height/2,S;switch(g){case v.we:S={x:b,y:p.y-d.height};break;case v.I:S={x:b,y:p.y+p.height};break;case v.F2:S={x:p.x+p.width,y:E};break;case v.t$:S={x:p.x-d.width,y:E};break;default:S={x:p.x,y:p.y}}var w=g?(0,u.Z)(g):null;if(w!=null){var x=w==="y"?"height":"width";switch(y){case v.BL:S[w]=S[w]-(p[x]/2-d[x]/2);break;case v.ut:S[w]=S[w]+(p[x]/2-d[x]/2);break;default:}}return S}},77696:(C,c,t)=>{"use strict";t.d(c,{Z:()=>j});var i=t(6947),s=t(22583),u=t(55536),v=t(20760),l=t(82503);function h(re,X){var Z=(0,s.Z)(re),J=(0,u.Z)(re),q=Z.visualViewport,L=J.clientWidth,$=J.clientHeight,k=0,F=0;if(q){L=q.width,$=q.height;var V=(0,l.Z)();(V||!V&&X==="fixed")&&(k=q.offsetLeft,F=q.offsetTop)}return{width:L,height:$,x:k+(0,v.Z)(re),y:F}}var p=t(37656),d=t(71270),f=t(63575);function g(re){var X,Z=(0,u.Z)(re),J=(0,d.Z)(re),q=(X=re.ownerDocument)==null?void 0:X.body,L=(0,f.Fp)(Z.scrollWidth,Z.clientWidth,q?q.scrollWidth:0,q?q.clientWidth:0),$=(0,f.Fp)(Z.scrollHeight,Z.clientHeight,q?q.scrollHeight:0,q?q.clientHeight:0),k=-J.scrollLeft+(0,v.Z)(re),F=-J.scrollTop;return(0,p.Z)(q||Z).direction==="rtl"&&(k+=(0,f.Fp)(Z.clientWidth,q?q.clientWidth:0)-L),{width:L,height:$,x:k,y:F}}var y=t(95737),b=t(84517),E=t(80354),S=t(90929),w=t(99710),x=t(867),P=t(33356);function R(re){return Object.assign({},re,{left:re.x,top:re.y,right:re.x+re.width,bottom:re.y+re.height})}function T(re,X){var Z=(0,S.Z)(re,!1,X==="fixed");return Z.top=Z.top+re.clientTop,Z.left=Z.left+re.clientLeft,Z.bottom=Z.top+re.clientHeight,Z.right=Z.left+re.clientWidth,Z.width=re.clientWidth,Z.height=re.clientHeight,Z.x=Z.left,Z.y=Z.top,Z}function A(re,X,Z){return X===i.Pj?R(h(re,Z)):(0,E.kK)(X)?T(X,Z):R(g((0,u.Z)(re)))}function I(re){var X=(0,y.Z)((0,w.Z)(re)),Z=["absolute","fixed"].indexOf((0,p.Z)(re).position)>=0,J=Z&&(0,E.Re)(re)?(0,b.Z)(re):re;return(0,E.kK)(J)?X.filter(function(q){return(0,E.kK)(q)&&(0,x.Z)(q,J)&&(0,P.Z)(q)!=="body"}):[]}function N(re,X,Z,J){var q=X==="clippingParents"?I(re):[].concat(X),L=[].concat(q,[Z]),$=L[0],k=L.reduce(function(F,V){var pe=A(re,V,J);return F.top=(0,f.Fp)(pe.top,F.top),F.right=(0,f.VV)(pe.right,F.right),F.bottom=(0,f.VV)(pe.bottom,F.bottom),F.left=(0,f.Fp)(pe.left,F.left),F},A(re,$,J));return k.width=k.right-k.left,k.height=k.bottom-k.top,k.x=k.left,k.y=k.top,k}var K=t(63849),_=t(93197),W=t(14005);function j(re,X){X===void 0&&(X={});var Z=X,J=Z.placement,q=J===void 0?re.placement:J,L=Z.strategy,$=L===void 0?re.strategy:L,k=Z.boundary,F=k===void 0?i.zV:k,V=Z.rootBoundary,pe=V===void 0?i.Pj:V,ce=Z.elementContext,G=ce===void 0?i.k5:ce,te=Z.altBoundary,ie=te===void 0?!1:te,fe=Z.padding,Se=fe===void 0?0:fe,he=(0,_.Z)(typeof Se!="number"?Se:(0,W.Z)(Se,i.mv)),me=G===i.k5?i.YP:i.k5,_e=re.rects.popper,we=re.elements[ie?me:G],Ge=N((0,E.kK)(we)?we:we.contextElement||(0,u.Z)(re.elements.popper),F,pe,$),ht=(0,S.Z)(re.elements.reference),nt=(0,K.Z)({reference:ht,element:_e,strategy:"absolute",placement:q}),Re=R(Object.assign({},_e,nt)),ue=G===i.k5?Re:ht,ae={top:Ge.top-ue.top+he.top,bottom:ue.bottom-Ge.bottom+he.bottom,left:Ge.left-ue.left+he.left,right:ue.right-Ge.right+he.right},ve=re.modifiersData.offset;if(G===i.k5&&ve){var Me=ve[q];Object.keys(ae).forEach(function(Ye){var qe=[i.F2,i.I].indexOf(Ye)>=0?1:-1,At=[i.we,i.I].indexOf(Ye)>=0?"y":"x";ae[Ye]+=Me[At]*qe})}return ae}},14005:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s,u){return u.reduce(function(v,l){return v[l]=s,v},{})}},10575:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s){return s.split("-")[0]}},98385:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(){return{top:0,right:0,bottom:0,left:0}}},70606:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}},30342:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s){return s.split("-")[1]}},63575:(C,c,t)=>{"use strict";t.d(c,{Fp:()=>i,NM:()=>u,VV:()=>s});var i=Math.max,s=Math.min,u=Math.round},93197:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(98385);function s(u){return Object.assign({},(0,i.Z)(),u)}},84492:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(){var s=navigator.userAgentData;return s!=null&&s.brands?s.brands.map(function(u){return u.brand+"/"+u.version}).join(" "):navigator.userAgent}},58061:(C,c,t)=>{"use strict";t.d(c,{Z:()=>E});var i=function(){function S(x){var P=x.x,R=P===void 0?0:P,T=x.y,A=T===void 0?0:T;this.x=0,this.y=0,this.x=R,this.y=A}var w=S.prototype;return w.value=function(){return{x:this.x,y:this.y}},w.toArray=function(){return[this.x,this.y]},S}();function s(S){return!!S&&S instanceof Element}function u(S){return!!S&&(S instanceof SVGElement||"ownerSVGElement"in S)}function v(S){return!!S&&"createSVGPoint"in S}function l(S){return!!S&&"getScreenCTM"in S}function h(S){return!!S&&"changedTouches"in S}function p(S){return!!S&&"clientX"in S}function d(S){return!!S&&(S instanceof Event||"nativeEvent"in S&&S.nativeEvent instanceof Event)}function f(){return f=Object.assign?Object.assign.bind():function(S){for(var w=1;w<arguments.length;w++){var x=arguments[w];for(var P in x)Object.prototype.hasOwnProperty.call(x,P)&&(S[P]=x[P])}return S},f.apply(this,arguments)}var g={x:0,y:0};function y(S){if(!S)return f({},g);if(h(S))return S.changedTouches.length>0?{x:S.changedTouches[0].clientX,y:S.changedTouches[0].clientY}:f({},g);if(p(S))return{x:S.clientX,y:S.clientY};var w=S?.target,x=w&&"getBoundingClientRect"in w?w.getBoundingClientRect():null;return x?{x:x.x+x.width/2,y:x.y+x.height/2}:f({},g)}function b(S,w){if(!S||!w)return null;var x=y(w),P=u(S)?S.ownerSVGElement:S,R=l(P)?P.getScreenCTM():null;if(v(P)&&R){var T=P.createSVGPoint();return T.x=x.x,T.y=x.y,T=T.matrixTransform(R.inverse()),new i({x:T.x,y:T.y})}var A=S.getBoundingClientRect();return new i({x:x.x-A.left-S.clientLeft,y:x.y-A.top-S.clientTop})}function E(S,w){if(s(S)&&w)return b(S,w);if(d(S)){var x=S,P=x.target;if(P)return b(P,x)}return null}},2212:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});function t(){return!1}function i(){return!0}function s(){this.timeStamp=Date.now(),this.target=void 0,this.currentTarget=void 0}s.prototype={isEventObject:1,constructor:s,isDefaultPrevented:t,isPropagationStopped:t,isImmediatePropagationStopped:t,preventDefault:function(){this.isDefaultPrevented=i},stopPropagation:function(){this.isPropagationStopped=i},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=i,this.stopPropagation()},halt:function(v){v?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}},c.default=s,C.exports=c.default},81610:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});function i(w){return w&&w.__esModule?w:{default:w}}var s=t(2212),u=i(s),v=t(96677),l=i(v),h=!0,p=!1,d=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","shiftKey","target","timeStamp","view","type"];function f(w){return w==null}var g=[{reg:/^key/,props:["char","charCode","key","keyCode","which"],fix:function(x,P){f(x.which)&&(x.which=f(P.charCode)?P.keyCode:P.charCode),x.metaKey===void 0&&(x.metaKey=x.ctrlKey)}},{reg:/^touch/,props:["touches","changedTouches","targetTouches"]},{reg:/^hashchange$/,props:["newURL","oldURL"]},{reg:/^gesturechange$/i,props:["rotation","scale"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(x,P){var R=void 0,T=void 0,A=void 0,I=P.wheelDelta,N=P.axis,K=P.wheelDeltaY,_=P.wheelDeltaX,W=P.detail;I&&(A=I/120),W&&(A=0-(W%3===0?W/3:W)),N!==void 0&&(N===x.HORIZONTAL_AXIS?(T=0,R=0-A):N===x.VERTICAL_AXIS&&(R=0,T=A)),K!==void 0&&(T=K/120),_!==void 0&&(R=-1*_/120),!R&&!T&&(T=A),R!==void 0&&(x.deltaX=R),T!==void 0&&(x.deltaY=T),A!==void 0&&(x.delta=A)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:["buttons","clientX","clientY","button","offsetX","relatedTarget","which","fromElement","toElement","offsetY","pageX","pageY","screenX","screenY"],fix:function(x,P){var R=void 0,T=void 0,A=void 0,I=x.target,N=P.button;return I&&f(x.pageX)&&!f(P.clientX)&&(R=I.ownerDocument||document,T=R.documentElement,A=R.body,x.pageX=P.clientX+(T&&T.scrollLeft||A&&A.scrollLeft||0)-(T&&T.clientLeft||A&&A.clientLeft||0),x.pageY=P.clientY+(T&&T.scrollTop||A&&A.scrollTop||0)-(T&&T.clientTop||A&&A.clientTop||0)),!x.which&&N!==void 0&&(N&1?x.which=1:N&2?x.which=3:N&4?x.which=2:x.which=0),!x.relatedTarget&&x.fromElement&&(x.relatedTarget=x.fromElement===I?x.toElement:x.fromElement),x}}];function y(){return h}function b(){return p}function E(w){var x=w.type,P=typeof w.stopPropagation=="function"||typeof w.cancelBubble=="boolean";u.default.call(this),this.nativeEvent=w;var R=b;"defaultPrevented"in w?R=w.defaultPrevented?y:b:"getPreventDefault"in w?R=w.getPreventDefault()?y:b:"returnValue"in w&&(R=w.returnValue===p?y:b),this.isDefaultPrevented=R;var T=[],A=void 0,I=void 0,N=void 0,K=d.concat();for(g.forEach(function(_){x.match(_.reg)&&(K=K.concat(_.props),_.fix&&T.push(_.fix))}),I=K.length;I;)N=K[--I],this[N]=w[N];for(!this.target&&P&&(this.target=w.srcElement||document),this.target&&this.target.nodeType===3&&(this.target=this.target.parentNode),I=T.length;I;)A=T[--I],A(this,w);this.timeStamp=w.timeStamp||Date.now()}var S=u.default.prototype;(0,l.default)(E.prototype,S,{constructor:E,preventDefault:function(){var x=this.nativeEvent;x.preventDefault?x.preventDefault():x.returnValue=p,S.preventDefault.call(this)},stopPropagation:function(){var x=this.nativeEvent;x.stopPropagation?x.stopPropagation():x.cancelBubble=h,S.stopPropagation.call(this)}}),c.default=E,C.exports=c.default},65087:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=v;function i(l){return l&&l.__esModule?l:{default:l}}var s=t(81610),u=i(s);function v(l,h,p,d){function f(y){var b=new u.default(y);p.call(l,b)}if(l.addEventListener){var g=function(){var y=!1;return typeof d=="object"?y=d.capture||!1:typeof d=="boolean"&&(y=d),l.addEventListener(h,f,d||!1),{v:{remove:function(){l.removeEventListener(h,f,y)}}}}();if(typeof g=="object")return g.v}else if(l.attachEvent)return l.attachEvent("on"+h,f),{remove:function(){l.detachEvent("on"+h,f)}}}C.exports=c.default},39791:C=>{var c={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};C.exports=function(t,i){return typeof i=="number"&&!c[t]?i+"px":i}},89688:C=>{"use strict";var c=function(){function W(j,re){var X=[],Z=!0,J=!1,q=void 0;try{for(var L=j[Symbol.iterator](),$;!(Z=($=L.next()).done)&&(X.push($.value),!(re&&X.length===re));Z=!0);}catch(k){J=!0,q=k}finally{try{!Z&&L.return&&L.return()}finally{if(J)throw q}}return X}return function(j,re){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return W(j,re);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),t=function(){function W(j,re){for(var X=0;X<re.length;X++){var Z=re[X];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(j,Z.key,Z)}}return function(j,re,X){return re&&W(j.prototype,re),X&&W(j,X),j}}();function i(W){if(Array.isArray(W)){for(var j=0,re=Array(W.length);j<W.length;j++)re[j]=W[j];return re}else return Array.from(W)}function s(W,j){if(!(W instanceof j))throw new TypeError("Cannot call a class as a function")}var u=Object,v=["black","red","green","yellow","blue","magenta","cyan","lightGray","","default"],l=["darkGray","lightRed","lightGreen","lightYellow","lightBlue","lightMagenta","lightCyan","white",""],h=["","bright","dim","italic","underline","","","inverse"],p={red:"lightRed",green:"lightGreen",yellow:"lightYellow",blue:"lightBlue",magenta:"lightMagenta",cyan:"lightCyan",black:"darkGray",lightGray:"white"},d={0:"style",2:"unstyle",3:"color",9:"colorLight",4:"bgColor",10:"bgColorLight"},f={color:v,colorLight:l,bgColor:v,bgColorLight:l,style:h,unstyle:h},g=function(j){for(var re in j)j[re]||delete j[re];return u.keys(j).length===0?void 0:j},y=function(){function W(j,re,X){s(this,W),this.background=j,this.name=re,this.brightness=X}return t(W,[{key:"defaultBrightness",value:function(re){return new W(this.background,this.name,this.brightness||re)}},{key:"css",value:function(re){var X=re?this.inverse:this,Z=X.brightness===b.bright&&p[X.name]||X.name,J=X.background?"background:":"color:",q=_.rgb[Z],L=this.brightness===b.dim?.5:1;return q?J+"rgba("+[].concat(i(q),[L]).join(",")+");":!X.background&&L<1?"color:rgba(0,0,0,0.5);":""}},{key:"inverse",get:function(){return new W(!this.background,this.name||(this.background?"black":"white"),this.brightness)}},{key:"clean",get:function(){return g({name:this.name==="default"?"":this.name,bright:this.brightness===b.bright,dim:this.brightness===b.dim})}}]),W}(),b=function(){function W(j){s(this,W),j!==void 0&&(this.value=Number(j))}return t(W,[{key:"type",get:function(){return d[Math.floor(this.value/10)]}},{key:"subtype",get:function(){return f[this.type][this.value%10]}},{key:"str",get:function(){return this.value?"\x1B["+this.value+"m":""}},{key:"isBrightness",get:function(){return this.value===W.noBrightness||this.value===W.bright||this.value===W.dim}}],[{key:"str",value:function(re){return new W(re).str}}]),W}();u.assign(b,{reset:0,bright:1,dim:2,inverse:7,noBrightness:22,noItalic:23,noUnderline:24,noInverse:27,noColor:39,noBgColor:49});var E=function(j,re,X){return j.split(re).join(X)},S=function(j){return j.replace(/(\u001b\[(1|2)m)/g,"\x1B[22m$1")},w=function(j){return j.replace(/\u001b\[22m(\u001b\[(1|2)m)/g,"$1")},x=function(j,re,X){var Z=b.str(re),J=b.str(X);return String(j).split(` `).map(function(q){return S(Z+E(w(q),J,Z)+J)}).join(` `)},P=function(j,re){return j+re.charAt(0).toUpperCase()+re.slice(1)},R=function(){return[].concat(i(v.map(function(W,j){return W?[[W,30+j,b.noColor],[P("bg",W),40+j,b.noBgColor]]:[]})),i(l.map(function(W,j){return W?[[W,90+j,b.noColor],[P("bg",W),100+j,b.noBgColor]]:[]})),i(["","BrightRed","BrightGreen","BrightYellow","BrightBlue","BrightMagenta","BrightCyan"].map(function(W,j){return W?[["bg"+W,100+j,b.noBgColor]]:[]})),i(h.map(function(W,j){return W?[[W,j,W==="bright"||W==="dim"?b.noBrightness:20+j]]:[]}))).reduce(function(W,j){return W.concat(j)})}(),T=function W(j){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j;return R.reduce(function(X,Z){var J=c(Z,3),q=J[0],L=J[1],$=J[2];return u.defineProperty(X,q,{get:function(){return W(function(F){return re(x(F,L,$))})}})},j)},A=0,I=1,N=2;function K(W){for(var j=A,re="",X="",Z="",J=[],q=[],L=0,$=W.length;L<$;L++){var k=W[L];switch(re+=k,j){case A:k==="\x1B"?(j=I,re=k):X+=k;break;case I:k==="["?(j=N,Z="",J=[]):(j=A,X+=re);break;case N:if(k>="0"&&k<="9")Z+=k;else if(k===";")J.push(new b(Z)),Z="";else if(k==="m"){Z=Z||"0",J.push(new b(Z));var F=!0,V=!1,pe=void 0;try{for(var ce=J[Symbol.iterator](),G;!(F=(G=ce.next()).done);F=!0){var te=G.value;q.push({text:X,code:te}),X=""}}catch(ie){V=!0,pe=ie}finally{try{!F&&ce.return&&ce.return()}finally{if(V)throw pe}}j=A}else j=A,X+=re}}return j!==A&&(X+=re),X&&q.push({text:X,code:new b}),q}var _=function(){function W(j){s(this,W),this.spans=j?K(j):[]}return t(W,[{key:Symbol.iterator,value:function(){return this.spans[Symbol.iterator]()}},{key:"str",get:function(){return this.spans.reduce(function(re,X){return re+X.text+X.code.str},"")}},{key:"parsed",get:function(){var re=void 0,X=void 0,Z=void 0,J=void 0;function q(){re=new y,X=new y(!0),Z=void 0,J=new Set}return q(),u.assign(new W,{spans:this.spans.map(function(L){var $=L.code,k=J.has("inverse"),F=J.has("underline")?"text-decoration: underline;":"",V=J.has("italic")?"font-style: italic;":"",pe=Z===b.bright?"font-weight: bold;":"",ce=re.defaultBrightness(Z),G=u.assign({css:pe+V+F+ce.css(k)+X.css(k)},g({bold:!!pe,color:ce.clean,bgColor:X.clean}),L),te=!0,ie=!1,fe=void 0;try{for(var Se=J[Symbol.iterator](),he;!(te=(he=Se.next()).done);te=!0){var me=he.value;G[me]=!0}}catch(_e){ie=!0,fe=_e}finally{try{!te&&Se.return&&Se.return()}finally{if(ie)throw fe}}if($.isBrightness)Z=$.value;else if(L.code.value!==void 0)if(L.code.value===b.reset)q();else switch(L.code.type){case"color":case"colorLight":re=new y(!1,$.subtype);break;case"bgColor":case"bgColorLight":X=new y(!0,$.subtype);break;case"style":J.add($.subtype);break;case"unstyle":J.delete($.subtype);break}return G}).filter(function(L){return L.text.length>0})})}},{key:"asChromeConsoleLogArguments",get:function(){var re=this.parsed.spans;return[re.map(function(X){return"%c"+X.text}).join("")].concat(i(re.map(function(X){return X.css})))}},{key:"browserConsoleArguments",get:function(){return this.asChromeConsoleLogArguments}}],[{key:"parse",value:function(re){return new W(re).parsed}},{key:"strip",value:function(re){return re.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g,"")}},{key:"isEscaped",value:function(re){return re=String(re),W.strip(re)!==re}},{key:"nice",get:function(){return W.names.forEach(function(re){re in String.prototype||u.defineProperty(String.prototype,re,{get:function(){return W[re](this)}})}),W}},{key:"ansicolor",get:function(){return W}}]),W}();T(_,function(W){return W}),_.names=R.map(function(W){var j=c(W,1),re=j[0];return re}),_.rgb={black:[0,0,0],darkGray:[100,100,100],lightGray:[200,200,200],white:[255,255,255],red:[204,0,0],lightRed:[255,51,0],green:[0,204,0],lightGreen:[51,204,51],yellow:[204,102,0],lightYellow:[255,153,51],blue:[0,0,255],lightBlue:[26,140,255],magenta:[204,0,204],lightMagenta:[255,0,255],cyan:[0,153,255],lightCyan:[0,204,255]},C.exports=_},22944:(C,c)=>{"use strict";var t;t=!0,c.Z=function(i,s){if(i&&s){var u=Array.isArray(s)?s:s.split(","),v=i.name||"",l=(i.type||"").toLowerCase(),h=l.replace(/\/.*$/,"");return u.some(function(p){var d=p.trim().toLowerCase();return d.charAt(0)==="."?v.toLowerCase().endsWith(d):d.endsWith("/*")?h===d.replace(/\/.*$/,""):l===d})}return!0}},43625:(C,c,t)=>{C.exports={default:t(3293),__esModule:!0}},34024:(C,c,t)=>{C.exports={default:t(44459),__esModule:!0}},53106:(C,c,t)=>{C.exports={default:t(14262),__esModule:!0}},59055:(C,c,t)=>{C.exports={default:t(48547),__esModule:!0}},4127:(C,c,t)=>{C.exports={default:t(32219),__esModule:!0}},62253:(C,c,t)=>{C.exports={default:t(65534),__esModule:!0}},81297:(C,c)=>{"use strict";var t;t=!0,c.Z=function(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}},72498:(C,c,t)=>{"use strict";var i;i=!0;var s=t(53106),u=v(s);function v(l){return l&&l.__esModule?l:{default:l}}c.Z=function(){function l(h,p){for(var d=0;d<p.length;d++){var f=p[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),(0,u.default)(h,f.key,f)}}return function(h,p,d){return p&&l(h.prototype,p),d&&l(h,d),h}}()},92255:(C,c,t)=>{"use strict";var i;i=!0;var s=t(53106),u=v(s);function v(l){return l&&l.__esModule?l:{default:l}}c.Z=function(l,h,p){return h in l?(0,u.default)(l,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):l[h]=p,l}},420:(C,c,t)=>{"use strict";var i;i=!0;var s=t(43625),u=v(s);function v(l){return l&&l.__esModule?l:{default:l}}c.Z=u.default||function(l){for(var h=1;h<arguments.length;h++){var p=arguments[h];for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&(l[d]=p[d])}return l}},17049:(C,c,t)=>{"use strict";var i;i=!0;var s=t(59055),u=d(s),v=t(34024),l=d(v),h=t(42755),p=d(h);function d(f){return f&&f.__esModule?f:{default:f}}c.Z=function(f,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof g>"u"?"undefined":(0,p.default)(g)));f.prototype=(0,l.default)(g&&g.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),g&&(u.default?(0,u.default)(f,g):f.__proto__=g)}},93580:(C,c)=>{"use strict";var t;t=!0,c.Z=function(i,s){var u={};for(var v in i)s.indexOf(v)>=0||Object.prototype.hasOwnProperty.call(i,v)&&(u[v]=i[v]);return u}},14451:(C,c,t)=>{"use strict";var i;i=!0;var s=t(42755),u=v(s);function v(l){return l&&l.__esModule?l:{default:l}}c.Z=function(l,h){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&((typeof h>"u"?"undefined":(0,u.default)(h))==="object"||typeof h=="function")?h:l}},42755:(C,c,t)=>{"use strict";c.__esModule=!0;var i=t(62253),s=h(i),u=t(4127),v=h(u),l=typeof v.default=="function"&&typeof s.default=="symbol"?function(p){return typeof p}:function(p){return p&&typeof v.default=="function"&&p.constructor===v.default&&p!==v.default.prototype?"symbol":typeof p};function h(p){return p&&p.__esModule?p:{default:p}}c.default=typeof v.default=="function"&&l(s.default)==="symbol"?function(p){return typeof p>"u"?"undefined":l(p)}:function(p){return p&&typeof v.default=="function"&&p.constructor===v.default&&p!==v.default.prototype?"symbol":typeof p>"u"?"undefined":l(p)}},60494:(C,c)=>{"use strict";var t;function i(v,l){var h=document.createElement("div"),p=document.createTextNode(v);return h.appendChild(p),h.style.fontFamily=l.font,h.style.fontSize=l.fontSize,h.style.fontWeight=l.fontWeight,h.style.position="absolute",h.style.visibility="hidden",h.style.left="-999px",h.style.top="-999px",h.style.width=l.width,h.style.height="auto",document.body.appendChild(h),h}function s(v){v.parentNode.removeChild(v)}var u={};t={value:!0},c.Z=function(v,l){l===void 0&&(l={});var h=JSON.stringify({text:v,options:l});if(u[h])return u[h];l.font=l.font||"Times",l.fontSize=l.fontSize||"16px",l.fontWeight=l.fontWeight||"normal",l.width=l.width||"auto";var p=i(v,l),d={width:p.offsetWidth,height:p.offsetHeight};return s(p),u[h]=d,d}},25222:function(C,c,t){"use strict";var i=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(c,"__esModule",{value:!0}),c.Centrifuge=c.UnauthorizedError=void 0;const s=t(90368),u=t(55033),v=t(20662),l=t(6027),h=t(874),p=t(12347),d=t(33747),f=t(57493),g=t(89556),y=t(62727),b=i(t(23779)),E={protocol:"json",token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null};class S extends Error{constructor(P){super(P),this.name=this.constructor.name}}c.UnauthorizedError=S;class w extends b.default{constructor(P,R){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=y.State.Disconnected,this._endpoint=P,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._encoder=null,this._decoder=null,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},E),R),this._configure(),this._debugEnabled?(this.on("state",T=>{this._debug("client state",T.oldState,"->",T.newState)}),this.on("error",T=>{this._debug("client error",T)})):this.on("error",function(){Function.prototype()})}newSubscription(P,R){if(this.getSubscription(P)!==null)throw new Error("Subscription to the channel "+P+" already exists");const T=new s.Subscription(this,P,R);return this._subs[P]=T,T}getSubscription(P){return this._getSub(P)}removeSubscription(P){P&&(P.state!==y.SubscriptionState.Unsubscribed&&P.unsubscribe(),this._removeSubscription(P))}subscriptions(){return this._subs}ready(P){return this.state===y.State.Disconnected?Promise.reject({code:u.errorCodes.clientDisconnected,message:"client disconnected"}):this.state===y.State.Connected?Promise.resolve():new Promise((R,T)=>{const A={resolve:R,reject:T};P&&(A.timeout=setTimeout(function(){T({code:u.errorCodes.timeout,message:"timeout"})},P)),this._promises[this._nextPromiseId()]=A})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(u.disconnectedCodes.disconnectCalled,"disconnect called",!1)}setToken(P){this._token=P}send(P){const R={send:{data:P}},T=this;return this._methodCall().then(function(){return T._transportSendCommands([R])?Promise.resolve():Promise.reject(T._createErrorObject(u.errorCodes.transportWriteError,"transport write error"))})}rpc(P,R){const T={rpc:{method:P,data:R}},A=this;return this._methodCall().then(function(){return A._callPromise(T,function(I){return{data:I.rpc.data}})})}publish(P,R){const T={publish:{channel:P,data:R}},A=this;return this._methodCall().then(function(){return A._callPromise(T,function(){return{}})})}history(P,R){const T={history:this._getHistoryRequest(P,R)},A=this;return this._methodCall().then(function(){return A._callPromise(T,function(I){const N=I.history,K=[];if(N.publications)for(let _=0;_<N.publications.length;_++)K.push(A._getPublicationContext(P,N.publications[_]));return{publications:K,epoch:N.epoch||"",offset:N.offset||0}})})}presence(P){const R={presence:{channel:P}},T=this;return this._methodCall().then(function(){return T._callPromise(R,function(A){const I=A.presence.presence;for(const N in I)if(I.hasOwnProperty(N)){const K=I[N].conn_info,_=I[N].chan_info;K&&(I[N].connInfo=K),_&&(I[N].chanInfo=_)}return{clients:I}})})}presenceStats(P){const R={presence_stats:{channel:P}},T=this;return this._methodCall().then(function(){return T._callPromise(R,function(A){const I=A.presence_stats;return{numUsers:I.num_users,numClients:I.num_clients}})})}startBatching(){this._batching=!0}stopBatching(){const P=this;Promise.resolve().then(function(){Promise.resolve().then(function(){P._batching=!1,P._flush()})})}_debug(...P){this._debugEnabled&&(0,g.log)("debug",P)}_setFormat(P){if(!this._formatOverride(P)){if(P==="protobuf")throw new Error("not implemented by JSON-only Centrifuge client, use client with Protobuf support");this._encoder=new f.JsonEncoder,this._decoder=new f.JsonDecoder}}_formatOverride(P){return!1}_configure(){if(!("Promise"in globalThis))throw new Error("Promise polyfill required");if(!this._endpoint)throw new Error("endpoint configuration required");if(this._config.protocol!=="json"&&this._config.protocol!=="protobuf")throw new Error("unsupported protocol "+this._config.protocol);if(this._config.token!==null&&(this._token=this._config.token),this._config.data!==null&&(this._data=this._config.data),this._setFormat("json"),this._config.protocol==="protobuf"&&this._setFormat("protobuf"),(this._config.debug===!0||typeof localStorage<"u"&&localStorage.getItem("centrifuge.debug"))&&(this._debugEnabled=!0),this._debug("config",this._config),typeof this._endpoint!="string")if(typeof this._endpoint=="object"&&this._endpoint instanceof Array){this._transports=this._endpoint,this._emulation=!0;for(const P in this._transports){const R=this._transports[P];if(!R.endpoint||!R.transport)throw new Error("malformed transport configuration");const T=R.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(T)<0)throw new Error("unsupported transport name: "+T)}}else throw new Error("unsupported url configuration type: only string or array of objects are supported")}_setState(P){if(this.state!==P){this._reconnecting=!1;const R=this.state;return this.state=P,this.emit("state",{newState:P,oldState:R}),!0}return!1}_isDisconnected(){return this.state===y.State.Disconnected}_isConnecting(){return this.state===y.State.Connecting}_isConnected(){return this.state===y.State.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let P=null;this._config.networkEventTarget!==null?P=this._config.networkEventTarget:typeof globalThis.addEventListener<"u"&&(P=globalThis),P&&(P.addEventListener("offline",()=>{this._debug("offline event triggered"),(this.state===y.State.Connected||this.state===y.State.Connecting)&&(this._disconnect(u.connectingCodes.transportClosed,"transport closed",!0),this._deviceWentOffline=!0)}),P.addEventListener("online",()=>{this._debug("online event triggered"),this.state===y.State.Connecting&&(this._deviceWentOffline&&!this._transportClosed&&(this._deviceWentOffline=!1,this._transportClosed=!0),this._clearReconnectTimeout(),this._startReconnecting())}),this._networkEventsSet=!0)}_getReconnectDelay(){const P=(0,g.backoff)(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,P}_clearOutgoingRequests(){for(const P in this._callbacks)if(this._callbacks.hasOwnProperty(P)){const R=this._callbacks[P];clearTimeout(R.timeout);const T=R.errback;if(!T)continue;T({error:this._createErrorObject(u.errorCodes.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(const P in this._subs){if(!this._subs.hasOwnProperty(P))continue;const R=this._subs[P];R.state===y.SubscriptionState.Subscribed&&R._setSubscribing(u.subscribingCodes.transportClosed,"transport closed")}for(const P in this._serverSubs)this._serverSubs.hasOwnProperty(P)&&this.emit("subscribing",{channel:P})}_handleWriteError(P){for(const R of P){const T=R.id;if(!(T in this._callbacks))continue;const A=this._callbacks[T];clearTimeout(this._callbacks[T].timeout),delete this._callbacks[T];const I=A.errback;I({error:this._createErrorObject(u.errorCodes.transportWriteError,"transport write error")})}}_transportSendCommands(P){if(!P.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._encoder.encodeCommands(P),this._session,this._node)}catch(R){return this._debug("error writing commands",R),this._handleWriteError(P),!1}return!0}_initializeTransport(){let P;this._config.websocket!==null?P=this._config.websocket:typeof globalThis.WebSocket!="function"&&typeof globalThis.WebSocket!="object"||(P=globalThis.WebSocket);let R=null;this._config.sockjs!==null?R=this._config.sockjs:typeof globalThis.SockJS<"u"&&(R=globalThis.SockJS);let T=null;this._config.eventsource!==null?T=this._config.eventsource:typeof globalThis.EventSource<"u"&&(T=globalThis.EventSource);let A=null;this._config.fetch!==null?A=this._config.fetch:typeof globalThis.fetch<"u"&&(A=globalThis.fetch);let I=null;if(this._config.readableStream!==null?I=this._config.readableStream:typeof globalThis.ReadableStream<"u"&&(I=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0);let J=0;for(;;){if(J>=this._transports.length)throw new Error("no supported transport found");const q=this._transports[this._currentTransportIndex],L=q.transport,$=q.endpoint;if(L==="websocket"){if(this._debug("trying websocket transport"),this._transport=new l.WebsocketTransport($,{websocket:P}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,J++;continue}}else if(L==="webtransport"){if(this._debug("trying webtransport transport"),this._transport=new d.WebtransportTransport($,{webtransport:globalThis.WebTransport,decoder:this._decoder,encoder:this._encoder}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,J++;continue}}else if(L==="http_stream"){if(this._debug("trying http_stream transport"),this._transport=new h.HttpStreamTransport($,{fetch:A,readableStream:I,emulationEndpoint:this._config.emulationEndpoint,decoder:this._decoder,encoder:this._encoder}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,J++;continue}}else if(L==="sse"){if(this._debug("trying sse transport"),this._transport=new p.SseTransport($,{eventsource:T,fetch:A,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,J++;continue}}else if(L==="sockjs"){if(this._debug("trying sockjs"),this._transport=new v.SockjsTransport($,{sockjs:R,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,J++;continue}}else throw new Error("unknown transport "+L);break}}else{if((0,g.startsWith)(this._endpoint,"http"))throw new Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new l.WebsocketTransport(this._endpoint,{websocket:P}),!this._transport.supported())throw new Error("WebSocket not available")}const N=this,K=this._transport,_=this._nextTransportId();N._debug("id of transport",_);let W=!1,j=!0;this._transport.name()==="sse"&&(j=!1);const re=[];if(this._transport.emulation()){const J=N._sendConnect(!0);if(re.push(J),j){const q=N._sendSubscribeCommands(!0,!0);for(const L in q)re.push(q[L])}}this._setNetworkEvents();const X=this._encoder.encodeCommands(re);this._transportClosed=!1;let Z;Z=setTimeout(function(){K.close()},this._config.timeout),this._transport.initialize(this._config.protocol,{onOpen:function(){if(Z&&(clearTimeout(Z),Z=null),N._transportId!=_){N._debug("open callback from non-actual transport"),K.close();return}W=!0,N._debug(K.subName(),"transport open"),N._transportWasOpen=!0,!K.emulation()&&(N.startBatching(),N._sendConnect(!1),j&&N._sendSubscribeCommands(!0,!1),N.stopBatching())},onError:function(J){if(N._transportId!=_){N._debug("error callback from non-actual transport");return}N._debug("transport level error",J)},onClose:function(J){if(Z&&(clearTimeout(Z),Z=null),N._transportId!=_){N._debug("close callback from non-actual transport");return}N._debug(K.subName(),"transport closed"),N._transportClosed=!0;let q="connection closed",L=!0,$=0;if(J&&"code"in J&&J.code&&($=J.code),J&&J.reason)try{const k=JSON.parse(J.reason);q=k.reason,L=k.reconnect}catch{q=J.reason,($>=3500&&$<4e3||$>=4500&&$<5e3)&&(L=!1)}$<3e3?($===1009?($=u.disconnectedCodes.messageSizeLimit,q="message size limit exceeded",L=!1):($=u.connectingCodes.transportClosed,q="transport closed"),N._emulation&&!N._transportWasOpen&&(N._currentTransportIndex++,N._currentTransportIndex>=N._transports.length&&(N._triedAllTransports=!0,N._currentTransportIndex=0))):N._transportWasOpen=!0,N._isConnecting()&&!W&&N.emit("error",{type:"transport",error:{code:u.errorCodes.transportClosed,message:"transport closed"},transport:K.name()}),N._reconnecting=!1,N._disconnect($,q,L)},onMessage:function(J){N._dataReceived(J)}},X)}_sendConnect(P){const R=this._constructConnectCommand(),T=this;return this._call(R,P).then(A=>{const I=A.reply.connect;T._connectResponse(I),A.next&&A.next()},A=>{T._connectError(A.error),A.next&&A.next()}),R}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(this._transportClosed===!1){this._debug("waiting for transport close");return}this._reconnecting=!0;const P=this,R=this._token==="";if(!(this._refreshRequired||R&&this._config.getToken!==null)){this._config.getData?this._config.getData().then(function(A){P._isConnecting()&&(P._data=A,P._initializeTransport())}):this._initializeTransport();return}this._getToken().then(function(A){if(P._isConnecting()){if(A==null||A==null){P._failUnauthorized();return}P._token=A,P._debug("connection token refreshed"),P._config.getData?P._config.getData().then(function(I){P._isConnecting()&&(P._data=I,P._initializeTransport())}):P._initializeTransport()}}).catch(function(A){if(!P._isConnecting())return;if(A instanceof S){P._failUnauthorized();return}P.emit("error",{type:"connectToken",error:{code:u.errorCodes.clientConnectToken,message:A!==void 0?A.toString():""}});const I=P._getReconnectDelay();P._debug("error on connection token refresh, reconnect after "+I+" milliseconds",A),P._reconnecting=!1,P._reconnectTimeout=setTimeout(()=>{P._startReconnecting()},I)})}_connectError(P){this.state===y.State.Connecting&&(P.code===109&&(this._refreshRequired=!0),P.code<100||P.temporary===!0||P.code===109?(this.emit("error",{type:"connect",error:P}),this._debug("closing transport due to connect error"),this._reconnecting=!1,this._disconnect(P.code,P.message,!0)):this._disconnect(P.code,P.message,!1))}_scheduleReconnect(){if(!this._isConnecting())return;let P=!1;this._emulation&&!this._transportWasOpen&&!this._triedAllTransports&&(P=!0);let R=this._getReconnectDelay();P&&(R=0),this._debug("reconnect after "+R+" milliseconds"),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},R)}_constructConnectCommand(){const P={};this._token&&(P.token=this._token),this._data&&(P.data=this._data),this._config.name&&(P.name=this._config.name),this._config.version&&(P.version=this._config.version);const R={};let T=!1;for(const A in this._serverSubs)if(this._serverSubs.hasOwnProperty(A)&&this._serverSubs[A].recoverable){T=!0;const I={recover:!0};this._serverSubs[A].offset&&(I.offset=this._serverSubs[A].offset),this._serverSubs[A].epoch&&(I.epoch=this._serverSubs[A].epoch),R[A]=I}return T&&(P.subs=R),{connect:P}}_getHistoryRequest(P,R){const T={channel:P};return R!==void 0&&(R.since&&(T.since={offset:R.since.offset},R.since.epoch&&(T.since.epoch=R.since.epoch)),R.limit!==void 0&&(T.limit=R.limit),R.reverse===!0&&(T.reverse=!0)),T}_methodCall(){return this._isConnected()?Promise.resolve():new Promise((P,R)=>{const T=setTimeout(function(){R({code:u.errorCodes.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:T,resolve:P,reject:R}})}_callPromise(P,R){return new Promise((T,A)=>{this._call(P,!1).then(I=>{T(R(I.reply)),I.next&&I.next()},I=>{A(I.error),I.next&&I.next()})})}_dataReceived(P){this._serverPing>0&&this._waitServerPing();const R=this._decoder.decodeReplies(P);this._dispatchPromise=this._dispatchPromise.then(()=>{let T;this._dispatchPromise=new Promise(A=>{T=A}),this._dispatchSynchronized(R,T)})}_dispatchSynchronized(P,R){let T=Promise.resolve();for(const A in P)P.hasOwnProperty(A)&&(T=T.then(()=>this._dispatchReply(P[A])));T=T.then(()=>{R()})}_dispatchReply(P){let R;const T=new Promise(I=>{R=I});if(P==null)return this._debug("dispatch: got undefined or null reply"),R(),T;const A=P.id;return A&&A>0?this._handleReply(P,R):P.push?this._handlePush(P.push,R):this._handleServerPing(R),T}_call(P,R){return new Promise((T,A)=>{P.id=this._nextCommandId(),this._registerCall(P.id,T,A),R||this._addCommand(P)})}_startConnecting(){this._debug("start connecting"),this._setState(y.State.Connecting)&&this.emit("connecting",{code:u.connectingCodes.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting()}_disconnect(P,R,T){if(this._isDisconnected())return;const A=this.state,I={code:P,reason:R};let N=!1;if(T?N=this._setState(y.State.Connecting):(N=this._setState(y.State.Disconnected),this._rejectPromises({code:u.errorCodes.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),A===y.State.Connecting&&this._clearReconnectTimeout(),A===y.State.Connected&&this._clearConnectedState(),N&&(this._isConnecting()?this.emit("connecting",I):this.emit("disconnected",I)),this._transport){this._debug("closing existing transport");const K=this._transport;this._transport=null,K.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(u.disconnectedCodes.unauthorized,"unauthorized",!1)}_getToken(){if(this._debug("get connection token"),!this._config.getToken)throw this.emit("error",{type:"configuration",error:{code:u.errorCodes.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),new S("");return this._config.getToken({})}_refresh(){const P=this._client,R=this;this._getToken().then(function(T){if(P!==R._client)return;if(!T){R._failUnauthorized();return}if(R._token=T,R._debug("connection token refreshed"),!R._isConnected())return;const A={refresh:{token:R._token}};R._call(A,!1).then(I=>{const N=I.reply.refresh;R._refreshResponse(N),I.next&&I.next()},I=>{R._refreshError(I.error),I.next&&I.next()})}).catch(function(T){if(R._isConnected()){if(T instanceof S){R._failUnauthorized();return}R.emit("error",{type:"refreshToken",error:{code:u.errorCodes.clientRefreshToken,message:T!==void 0?T.toString():""}}),R._refreshTimeout=setTimeout(()=>R._refresh(),R._getRefreshRetryDelay())}})}_refreshError(P){P.code<100||P.temporary===!0?(this.emit("error",{type:"refresh",error:P}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._disconnect(P.code,P.message,!1)}_getRefreshRetryDelay(){return(0,g.backoff)(0,5e3,1e4)}_refreshResponse(P){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),P.expires&&(this._client=P.client,this._refreshTimeout=setTimeout(()=>this._refresh(),(0,g.ttlMilliseconds)(P.ttl)))}_removeSubscription(P){P!==null&&delete this._subs[P.channel]}_unsubscribe(P){if(!this._isConnected())return;const T={unsubscribe:{channel:P.channel}},A=this;this._call(T,!1).then(I=>{I.next&&I.next()},I=>{I.next&&I.next(),A._disconnect(u.connectingCodes.unsubscribeError,"unsubscribe error",!0)})}_getSub(P){const R=this._subs[P];return R||null}_isServerSub(P){return this._serverSubs[P]!==void 0}_sendSubscribeCommands(P,R){const T=[];for(const A in this._subs){if(!this._subs.hasOwnProperty(A))continue;const I=this._subs[A];if(I._inflight!==!0&&I.state===y.SubscriptionState.Subscribing){const N=I._subscribe(P,R);N&&T.push(N)}}return T}_connectResponse(P){if(this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;this._client=P.client,this._setState(y.State.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),P.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),(0,g.ttlMilliseconds)(P.ttl))),this._session=P.session,this._node=P.node,this.startBatching(),this._sendSubscribeCommands(!1,!1),this.stopBatching();const R={client:P.client,transport:this._transport.subName()};P.data&&(R.data=P.data),this.emit("connected",R),this._resolvePromises(),this._processServerSubs(P.subs||{}),P.ping&&P.ping>0?(this._serverPing=P.ping*1e3,this._sendPong=P.pong===!0,this._waitServerPing()):this._serverPing=0}_processServerSubs(P){for(const R in P){if(!P.hasOwnProperty(R))continue;const T=P[R];this._serverSubs[R]={offset:T.offset,epoch:T.epoch,recoverable:T.recoverable||!1};const A=this._getSubscribeContext(R,T);this.emit("subscribed",A)}for(const R in P){if(!P.hasOwnProperty(R))continue;const T=P[R];if(T.recovered){const A=T.publications;if(A&&A.length>0)for(const I in A)A.hasOwnProperty(I)&&this._handlePublication(R,A[I])}}for(const R in this._serverSubs)this._serverSubs.hasOwnProperty(R)&&(P[R]||(this.emit("unsubscribed",{channel:R}),delete this._serverSubs[R]))}_clearRefreshTimeout(){this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearReconnectTimeout(){this._reconnectTimeout!==null&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null)}_clearServerPingTimeout(){this._serverPingTimeout!==null&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null)}_waitServerPing(){this._config.maxServerPingDelay!==0&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{this._isConnected()&&this._disconnect(u.connectingCodes.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay))}_getSubscribeContext(P,R){const T={channel:P,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1};R.recovered&&(T.recovered=!0),R.positioned&&(T.positioned=!0),R.recoverable&&(T.recoverable=!0),R.was_recovering&&(T.wasRecovering=!0);let A="";"epoch"in R&&(A=R.epoch);let I=0;return"offset"in R&&(I=R.offset),(T.positioned||T.recoverable)&&(T.streamPosition={offset:I,epoch:A}),R.data&&(T.data=R.data),T}_handleReply(P,R){const T=P.id;if(!(T in this._callbacks)){R();return}const A=this._callbacks[T];if(clearTimeout(this._callbacks[T].timeout),delete this._callbacks[T],(0,g.errorExists)(P)){const I=A.errback;if(!I){R();return}const N=P.error;I({error:N,next:R})}else{const I=A.callback;if(!I)return;I({reply:P,next:R})}}_handleJoin(P,R){const T=this._getSub(P);if(!T){if(this._isServerSub(P)){const A={channel:P,info:this._getJoinLeaveContext(R.info)};this.emit("join",A)}return}T._handleJoin(R)}_handleLeave(P,R){const T=this._getSub(P);if(!T){if(this._isServerSub(P)){const A={channel:P,info:this._getJoinLeaveContext(R.info)};this.emit("leave",A)}return}T._handleLeave(R)}_handleUnsubscribe(P,R){const T=this._getSub(P);if(!T){this._isServerSub(P)&&(delete this._serverSubs[P],this.emit("unsubscribed",{channel:P}));return}R.code<2500?T._setUnsubscribed(R.code,R.reason,!1):T._setSubscribing(R.code,R.reason)}_handleSubscribe(P,R){this._serverSubs[P]={offset:R.offset,epoch:R.epoch,recoverable:R.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(P,R))}_handleDisconnect(P){const R=P.code;let T=!0;(R>=3500&&R<4e3||R>=4500&&R<5e3)&&(T=!1),this._disconnect(R,P.reason,T)}_getPublicationContext(P,R){const T={channel:P,data:R.data};return R.offset&&(T.offset=R.offset),R.info&&(T.info=this._getJoinLeaveContext(R.info)),R.tags&&(T.tags=R.tags),T}_getJoinLeaveContext(P){const R={client:P.client,user:P.user};return P.conn_info&&(R.connInfo=P.conn_info),P.chan_info&&(R.chanInfo=P.chan_info),R}_handlePublication(P,R){const T=this._getSub(P);if(!T){if(this._isServerSub(P)){const A=this._getPublicationContext(P,R);this.emit("publication",A),R.offset!==void 0&&(this._serverSubs[P].offset=R.offset)}return}T._handlePublication(R)}_handleMessage(P){this.emit("message",{data:P.data})}_handleServerPing(P){if(this._sendPong){const R={};this._transportSendCommands([R])}P()}_handlePush(P,R){const T=P.channel;P.pub?this._handlePublication(T,P.pub):P.message?this._handleMessage(P.message):P.join?this._handleJoin(T,P.join):P.leave?this._handleLeave(T,P.leave):P.unsubscribe?this._handleUnsubscribe(T,P.unsubscribe):P.subscribe?this._handleSubscribe(T,P.subscribe):P.disconnect&&this._handleDisconnect(P.disconnect),R()}_flush(){const P=this._commands.slice(0);this._commands=[],this._transportSendCommands(P)}_createErrorObject(P,R,T){const A={code:P,message:R};return T&&(A.temporary=!0),A}_registerCall(P,R,T){this._callbacks[P]={callback:R,errback:T,timeout:null},this._callbacks[P].timeout=setTimeout(()=>{delete this._callbacks[P],(0,g.isFunction)(T)&&T({error:this._createErrorObject(u.errorCodes.timeout,"timeout")})},this._config.timeout)}_addCommand(P){this._batching?this._commands.push(P):this._transportSendCommands([P])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(const P in this._promises)this._promises[P].timeout&&clearTimeout(this._promises[P].timeout),this._promises[P].resolve(),delete this._promises[P]}_rejectPromises(P){for(const R in this._promises)this._promises[R].timeout&&clearTimeout(this._promises[R].timeout),this._promises[R].reject(P),delete this._promises[R]}}c.Centrifuge=w,w.SubscriptionState=y.SubscriptionState,w.State=y.State,w.UnauthorizedError=S},55033:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.unsubscribedCodes=c.subscribingCodes=c.disconnectedCodes=c.connectingCodes=c.errorCodes=void 0,c.errorCodes={timeout:1,transportClosed:2,clientDisconnected:3,clientClosed:4,clientConnectToken:5,clientRefreshToken:6,subscriptionUnsubscribed:7,subscriptionSubscribeToken:8,subscriptionRefreshToken:9,transportWriteError:10,connectionClosed:11,badConfiguration:12},c.connectingCodes={connectCalled:0,transportClosed:1,noPing:2,subscribeTimeout:3,unsubscribeError:4},c.disconnectedCodes={disconnectCalled:0,unauthorized:1,badProtocol:2,messageSizeLimit:3},c.subscribingCodes={subscribeCalled:0,transportClosed:1},c.unsubscribedCodes={unsubscribeCalled:0,unauthorized:1,clientClosed:2}},12544:function(C,c,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(l,h,p,d){d===void 0&&(d=p);var f=Object.getOwnPropertyDescriptor(h,p);(!f||("get"in f?!h.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return h[p]}}),Object.defineProperty(l,d,f)}:function(l,h,p,d){d===void 0&&(d=p),l[d]=h[p]}),s=this&&this.__exportStar||function(l,h){for(var p in l)p!=="default"&&!Object.prototype.hasOwnProperty.call(h,p)&&i(h,l,p)};Object.defineProperty(c,"__esModule",{value:!0}),c.Subscription=c.Centrifuge=void 0;const u=t(25222);Object.defineProperty(c,"Centrifuge",{enumerable:!0,get:function(){return u.Centrifuge}});const v=t(90368);Object.defineProperty(c,"Subscription",{enumerable:!0,get:function(){return v.Subscription}}),s(t(62727),c)},57493:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.JsonDecoder=c.JsonEncoder=void 0;class t{encodeCommands(u){return u.map(v=>JSON.stringify(v)).join(` `)}}c.JsonEncoder=t;class i{decodeReplies(u){return u.trim().split(` `).map(v=>JSON.parse(v))}}c.JsonDecoder=i},90368:function(C,c,t){"use strict";var i=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(c,"__esModule",{value:!0}),c.Subscription=void 0;const s=i(t(23779)),u=t(25222),v=t(55033),l=t(62727),h=t(89556);class p extends s.default{constructor(f,g,y){super(),this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=g,this.state=l.SubscriptionState.Unsubscribed,this._centrifuge=f,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=2e4,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._setOptions(y),this._centrifuge._debugEnabled?(this.on("state",b=>{this._centrifuge._debug("subscription state",g,b.oldState,"->",b.newState)}),this.on("error",b=>{this._centrifuge._debug("subscription error",g,b)})):this.on("error",function(){Function.prototype()})}ready(f){return this.state===l.SubscriptionState.Unsubscribed?Promise.reject({code:v.errorCodes.subscriptionUnsubscribed,message:this.state}):this.state===l.SubscriptionState.Subscribed?Promise.resolve():new Promise((g,y)=>{const b={resolve:g,reject:y};f&&(b.timeout=setTimeout(function(){y({code:v.errorCodes.timeout,message:"timeout"})},f)),this._promises[this._nextPromiseId()]=b})}subscribe(){this._isSubscribed()||(this._resubscribeAttempts=0,this._setSubscribing(v.subscribingCodes.subscribeCalled,"subscribe called"))}unsubscribe(){this._setUnsubscribed(v.unsubscribedCodes.unsubscribeCalled,"unsubscribe called",!0)}publish(f){const g=this;return this._methodCall().then(function(){return g._centrifuge.publish(g.channel,f)})}presence(){const f=this;return this._methodCall().then(function(){return f._centrifuge.presence(f.channel)})}presenceStats(){const f=this;return this._methodCall().then(function(){return f._centrifuge.presenceStats(f.channel)})}history(f){const g=this;return this._methodCall().then(function(){return g._centrifuge.history(g.channel,f)})}_methodCall(){return this._isSubscribed()?Promise.resolve():this._isUnsubscribed()?Promise.reject({code:v.errorCodes.subscriptionUnsubscribed,message:this.state}):new Promise((f,g)=>{const y=setTimeout(function(){g({code:v.errorCodes.timeout,message:"timeout"})},this._centrifuge._config.timeout);this._promises[this._nextPromiseId()]={timeout:y,resolve:f,reject:g}})}_nextPromiseId(){return++this._promiseId}_needRecover(){return this._recover===!0}_isUnsubscribed(){return this.state===l.SubscriptionState.Unsubscribed}_isSubscribing(){return this.state===l.SubscriptionState.Subscribing}_isSubscribed(){return this.state===l.SubscriptionState.Subscribed}_setState(f){if(this.state!==f){const g=this.state;return this.state=f,this.emit("state",{newState:f,oldState:g,channel:this.channel}),!0}return!1}_usesToken(){return this._token!==""||this._getToken!==null}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(f){if(!this._isSubscribing())return;this._clearSubscribingState(),f.recoverable&&(this._recover=!0,this._offset=f.offset||0,this._epoch=f.epoch||""),this._setState(l.SubscriptionState.Subscribed);const g=this._centrifuge._getSubscribeContext(this.channel,f);this.emit("subscribed",g),this._resolvePromises();const y=f.publications;if(y&&y.length>0)for(const b in y)y.hasOwnProperty(b)&&this._handlePublication(y[b]);f.expires===!0&&(this._refreshTimeout=setTimeout(()=>this._refresh(),(0,h.ttlMilliseconds)(f.ttl)))}_setSubscribing(f,g){this._isSubscribing()||(this._isSubscribed()&&this._clearSubscribedState(),this._setState(l.SubscriptionState.Subscribing)&&this.emit("subscribing",{channel:this.channel,code:f,reason:g}),this._subscribe(!1,!1))}_subscribe(f,g){if(this._centrifuge._debug("subscribing on",this.channel),this._centrifuge.state!==l.State.Connected&&!f)return this._centrifuge._debug("delay subscribe on",this.channel,"till connected"),null;const y=this,b={channel:y.channel};return!this._usesToken()||this._token?y._getData?(y._getData(b).then(function(E){y._isSubscribing()&&(y._data=E,y._sendSubscribe(y._token,!1))}),null):y._sendSubscribe(y._token,g):(f||this._getSubscriptionToken().then(function(E){if(y._isSubscribing()){if(!E){y._failUnauthorized();return}y._token=E,y._getData?y._getData(b).then(function(S){y._isSubscribing()&&(y._data=S,y._sendSubscribe(E,!1))}):y._sendSubscribe(E,!1)}}).catch(function(E){if(y._isSubscribing()){if(E instanceof u.UnauthorizedError){y._failUnauthorized();return}y.emit("error",{type:"subscribeToken",channel:y.channel,error:{code:v.errorCodes.subscriptionSubscribeToken,message:E!==void 0?E.toString():""}}),y._scheduleResubscribe()}}),null)}_sendSubscribe(f,g){const b={channel:this.channel};if(f&&(b.token=f),this._data&&(b.data=this._data),this._positioned&&(b.positioned=!0),this._recoverable&&(b.recoverable=!0),this._joinLeave&&(b.join_leave=!0),this._needRecover()){b.recover=!0;const S=this._getOffset();S&&(b.offset=S);const w=this._getEpoch();w&&(b.epoch=w)}const E={subscribe:b};return this._inflight=!0,this._centrifuge._call(E,g).then(S=>{this._inflight=!1;const w=S.reply.subscribe;this._handleSubscribeResponse(w),S.next&&S.next()},S=>{this._inflight=!1,this._handleSubscribeError(S.error),S.next&&S.next()}),E}_handleSubscribeError(f){if(this._isSubscribing()){if(f.code===v.errorCodes.timeout){this._centrifuge._disconnect(v.connectingCodes.subscribeTimeout,"subscribe timeout",!0);return}this._subscribeError(f)}}_handleSubscribeResponse(f){this._isSubscribing()&&this._setSubscribed(f)}_setUnsubscribed(f,g,y){this._isUnsubscribed()||(this._isSubscribed()&&(y&&this._centrifuge._unsubscribe(this),this._clearSubscribedState()),this._isSubscribing()&&(this._inflight&&y&&this._centrifuge._unsubscribe(this),this._clearSubscribingState()),this._setState(l.SubscriptionState.Unsubscribed)&&this.emit("unsubscribed",{channel:this.channel,code:f,reason:g}),this._rejectPromises({code:v.errorCodes.subscriptionUnsubscribed,message:this.state}))}_handlePublication(f){const g=this._centrifuge._getPublicationContext(this.channel,f);this.emit("publication",g),f.offset&&(this._offset=f.offset)}_handleJoin(f){const g=this._centrifuge._getJoinLeaveContext(f.info);this.emit("join",{channel:this.channel,info:g})}_handleLeave(f){const g=this._centrifuge._getJoinLeaveContext(f.info);this.emit("leave",{channel:this.channel,info:g})}_resolvePromises(){for(const f in this._promises)this._promises[f].timeout&&clearTimeout(this._promises[f].timeout),this._promises[f].resolve(),delete this._promises[f]}_rejectPromises(f){for(const g in this._promises)this._promises[g].timeout&&clearTimeout(this._promises[g].timeout),this._promises[g].reject(f),delete this._promises[g]}_scheduleResubscribe(){const f=this,g=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){f._isSubscribing()&&f._subscribe(!1,!1)},g)}_subscribeError(f){if(this._isSubscribing())if(f.code<100||f.code===109||f.temporary===!0){f.code===109&&(this._token="");const g={channel:this.channel,type:"subscribe",error:f};this._centrifuge.state===l.State.Connected&&this.emit("error",g),this._scheduleResubscribe()}else this._setUnsubscribed(f.code,f.message,!1)}_getResubscribeDelay(){const f=(0,h.backoff)(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,f}_setOptions(f){f&&(f.since&&(this._offset=f.since.offset,this._epoch=f.since.epoch,this._recover=!0),f.data&&(this._data=f.data),f.getData&&(this._getData=f.getData),f.minResubscribeDelay!==void 0&&(this._minResubscribeDelay=f.minResubscribeDelay),f.maxResubscribeDelay!==void 0&&(this._maxResubscribeDelay=f.maxResubscribeDelay),f.token&&(this._token=f.token),f.getToken&&(this._getToken=f.getToken),f.positioned===!0&&(this._positioned=!0),f.recoverable===!0&&(this._recoverable=!0),f.joinLeave===!0&&(this._joinLeave=!0))}_getOffset(){const f=this._offset;return f!==null?f:0}_getEpoch(){const f=this._epoch;return f!==null?f:""}_clearRefreshTimeout(){this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearResubscribeTimeout(){this._resubscribeTimeout!==null&&(clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null)}_getSubscriptionToken(){this._centrifuge._debug("get subscription token for channel",this.channel);const f={channel:this.channel},g=this._getToken;if(g===null)throw this.emit("error",{type:"configuration",channel:this.channel,error:{code:v.errorCodes.badConfiguration,message:"provide a function to get channel subscription token"}}),new u.UnauthorizedError("");return g(f)}_refresh(){this._clearRefreshTimeout();const f=this;this._getSubscriptionToken().then(function(g){if(!f._isSubscribed())return;if(!g){f._failUnauthorized();return}f._token=g;const b={sub_refresh:{channel:f.channel,token:g}};f._centrifuge._call(b).then(E=>{const S=E.reply.sub_refresh;f._refreshResponse(S),E.next&&E.next()},E=>{f._refreshError(E.error),E.next&&E.next()})}).catch(function(g){if(g instanceof u.UnauthorizedError){f._failUnauthorized();return}f.emit("error",{type:"refreshToken",channel:f.channel,error:{code:v.errorCodes.subscriptionRefreshToken,message:g!==void 0?g.toString():""}}),f._refreshTimeout=setTimeout(()=>f._refresh(),f._getRefreshRetryDelay())})}_refreshResponse(f){this._isSubscribed()&&(this._centrifuge._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),f.expires===!0&&(this._refreshTimeout=setTimeout(()=>this._refresh(),(0,h.ttlMilliseconds)(f.ttl))))}_refreshError(f){this._isSubscribed()&&(f.code<100||f.temporary===!0?(this.emit("error",{type:"refresh",channel:this.channel,error:f}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._setUnsubscribed(f.code,f.message,!0))}_getRefreshRetryDelay(){return(0,h.backoff)(0,1e4,2e4)}_failUnauthorized(){this._setUnsubscribed(v.unsubscribedCodes.unauthorized,"unauthorized",!0)}}c.Subscription=p},874:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.HttpStreamTransport=void 0;class t{constructor(s,u){this.endpoint=s,this.options=u,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(s){if(!s.ok)throw new Error(s.status);return s}_fetchEventTarget(s,u,v){const l=new EventTarget,h=s.options.fetch;return h(u,v).then(s._handleErrors).then(p=>{l.dispatchEvent(new Event("open"));let d="",f=0,g=new Uint8Array;const y=p.body.getReader();return new s.options.readableStream({start(b){function E(){return y.read().then(({done:S,value:w})=>{if(S){l.dispatchEvent(new Event("close")),b.close();return}try{if(s._protocol==="json")for(d+=s._utf8decoder.decode(w);f<d.length;)if(d[f]===` `){const x=d.substring(0,f);l.dispatchEvent(new MessageEvent("message",{data:x})),d=d.substring(f+1),f=0}else++f;else{const x=new Uint8Array(g.length+w.length);for(x.set(g),x.set(w,g.length),g=x;;){const P=s.options.decoder.decodeReply(g);if(P.ok){const R=g.slice(0,P.pos);l.dispatchEvent(new MessageEvent("message",{data:R})),g=g.slice(P.pos);continue}break}}}catch(x){l.dispatchEvent(new Event("error",{detail:x})),l.dispatchEvent(new Event("close")),b.close();return}E()}).catch(function(S){l.dispatchEvent(new Event("error",{detail:S})),l.dispatchEvent(new Event("close")),b.close()})}return E()}})}).catch(p=>{l.dispatchEvent(new Event("error",{detail:p})),l.dispatchEvent(new Event("close"))}),l}supported(){return this.options.fetch!==null&&this.options.readableStream!==null&&typeof TextDecoder<"u"&&typeof AbortController<"u"&&typeof EventTarget<"u"&&typeof Event<"u"&&typeof MessageEvent<"u"&&typeof Error<"u"}initialize(s,u,v){this._protocol=s,this._abortController=new AbortController;let l,h;s==="json"?(l={Accept:"application/json","Content-Type":"application/json"},h=v):(l={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},h=v);const p={method:"POST",headers:l,body:h,mode:"cors",credentials:"same-origin",cache:"no-cache",signal:this._abortController.signal},d=this._fetchEventTarget(this,this.endpoint,p);d.addEventListener("open",()=>{u.onOpen()}),d.addEventListener("error",f=>{this._abortController.abort(),u.onError(f)}),d.addEventListener("close",()=>{this._abortController.abort(),u.onClose({code:4,reason:"connection closed"})}),d.addEventListener("message",f=>{u.onMessage(f.data)})}close(){this._abortController.abort()}send(s,u,v){let l,h;const p={session:u,node:v,data:s};this._protocol==="json"?(l={"Content-Type":"application/json"},h=JSON.stringify(p)):(l={"Content-Type":"application/octet-stream"},h=this.options.encoder.encodeEmulationRequest(p));const d=this.options.fetch,f={method:"POST",headers:l,body:h,mode:"cors",credentials:"same-origin",cache:"no-cache"};d(this.options.emulationEndpoint,f)}}c.HttpStreamTransport=t},20662:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SockjsTransport=void 0;class t{constructor(s,u){this.endpoint=s,this.options=u,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return this.options.sockjs!==null}initialize(s,u){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{u.onOpen()},this._transport.onerror=v=>{u.onError(v)},this._transport.onclose=v=>{u.onClose(v)},this._transport.onmessage=v=>{u.onMessage(v.data)}}close(){this._transport.close()}send(s){this._transport.send(s)}}c.SockjsTransport=t},12347:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SseTransport=void 0;class t{constructor(s,u){this.endpoint=s,this.options=u,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return this.options.eventsource!==null&&this.options.fetch!==null}initialize(s,u,v){let l;globalThis&&globalThis.document&&globalThis.document.baseURI?l=new URL(this.endpoint,globalThis.document.baseURI):l=new URL(this.endpoint),l.searchParams.append("cf_connect",v);const h={},p=new this.options.eventsource(l.toString(),h);this._transport=p;const d=this;p.onopen=function(){u.onOpen()},p.onerror=function(f){p.close(),u.onError(f),u.onClose({code:4,reason:"connection closed"})},p.onmessage=function(f){u.onMessage(f.data)},d._onClose=function(){u.onClose({code:4,reason:"connection closed"})}}close(){this._transport.close(),this._onClose!==null&&this._onClose()}send(s,u,v){const l={session:u,node:v,data:s},h={"Content-Type":"application/json"},p=JSON.stringify(l),d=this.options.fetch,f={method:"POST",headers:h,body:p,mode:"cors",credentials:"same-origin",cache:"no-cache"};d(this.options.emulationEndpoint,f)}}c.SseTransport=t},6027:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.WebsocketTransport=void 0;class t{constructor(s,u){this.endpoint=s,this.options=u,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return this.options.websocket!==void 0&&this.options.websocket!==null}initialize(s,u){let v="";s==="protobuf"&&(v="centrifuge-protobuf"),v!==""?this._transport=new this.options.websocket(this.endpoint,v):this._transport=new this.options.websocket(this.endpoint),s==="protobuf"&&(this._transport.binaryType="arraybuffer"),this._transport.onopen=()=>{u.onOpen()},this._transport.onerror=l=>{u.onError(l)},this._transport.onclose=l=>{u.onClose(l)},this._transport.onmessage=l=>{u.onMessage(l.data)}}close(){this._transport.close()}send(s){this._transport.send(s)}}c.WebsocketTransport=t},33747:function(C,c){"use strict";var t=this&&this.__awaiter||function(s,u,v,l){function h(p){return p instanceof v?p:new v(function(d){d(p)})}return new(v||(v=Promise))(function(p,d){function f(b){try{y(l.next(b))}catch(E){d(E)}}function g(b){try{y(l.throw(b))}catch(E){d(E)}}function y(b){b.done?p(b.value):h(b.value).then(f,g)}y((l=l.apply(s,u||[])).next())})};Object.defineProperty(c,"__esModule",{value:!0}),c.WebtransportTransport=void 0;class i{constructor(u,v){this.endpoint=u,this.options=v,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return this.options.webtransport!==void 0&&this.options.webtransport!==null}initialize(u,v){return t(this,void 0,void 0,function*(){let l;globalThis&&globalThis.document&&globalThis.document.baseURI?l=new URL(this.endpoint,globalThis.document.baseURI):l=new URL(this.endpoint),u==="protobuf"&&l.searchParams.append("cf_protocol","protobuf"),this._protocol=u;const h=new EventTarget;this._transport=new this.options.webtransport(l.toString()),this._transport.closed.then(()=>{v.onClose({code:4,reason:"connection closed"})}).catch(()=>{v.onClose({code:4,reason:"connection closed"})});try{yield this._transport.ready}catch{this.close();return}let p;try{p=yield this._transport.createBidirectionalStream()}catch{this.close();return}this._stream=p,this._writer=this._stream.writable.getWriter(),h.addEventListener("close",()=>{v.onClose({code:4,reason:"connection closed"})}),h.addEventListener("message",d=>{v.onMessage(d.data)}),this._startReading(h),v.onOpen()})}_startReading(u){return t(this,void 0,void 0,function*(){const v=this._stream.readable.getReader();let l="",h=0,p=new Uint8Array;try{for(;;){const{done:d,value:f}=yield v.read();if(f.length>0)if(this._protocol==="json")for(l+=this._utf8decoder.decode(f);h<l.length;)if(l[h]===` `){const g=l.substring(0,h);u.dispatchEvent(new MessageEvent("message",{data:g})),l=l.substring(h+1),h=0}else++h;else{const g=new Uint8Array(p.length+f.length);for(g.set(p),g.set(f,p.length),p=g;;){const y=this.options.decoder.decodeReply(p);if(y.ok){const b=p.slice(0,y.pos);u.dispatchEvent(new MessageEvent("message",{data:b})),p=p.slice(y.pos);continue}break}}if(d)break}}catch{u.dispatchEvent(new Event("close"))}})}close(){return t(this,void 0,void 0,function*(){try{this._writer&&(yield this._writer.close()),this._transport.close()}catch{}})}send(u){return t(this,void 0,void 0,function*(){let v;this._protocol==="json"?v=new TextEncoder().encode(u+` `):v=u;try{yield this._writer.write(v)}catch{this.close()}})}}c.WebtransportTransport=i},62727:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SubscriptionState=c.State=void 0;var t;(function(s){s.Disconnected="disconnected",s.Connecting="connecting",s.Connected="connected"})(t=c.State||(c.State={}));var i;(function(s){s.Unsubscribed="unsubscribed",s.Subscribing="subscribing",s.Subscribed="subscribed"})(i=c.SubscriptionState||(c.SubscriptionState={}))},89556:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.ttlMilliseconds=c.errorExists=c.backoff=c.log=c.isFunction=c.startsWith=void 0;function t(p,d){return p.lastIndexOf(d,0)===0}c.startsWith=t;function i(p){return p==null?!1:typeof p=="function"}c.isFunction=i;function s(p,d){if(globalThis.console){const f=globalThis.console[p];i(f)&&f.apply(globalThis.console,d)}}c.log=s;function u(p,d){return Math.floor(Math.random()*(d-p+1)+p)}function v(p,d,f){p>31&&(p=31);const g=u(0,Math.min(f,d*Math.pow(2,p)));return Math.min(f,d+g)}c.backoff=v;function l(p){return"error"in p&&p.error!==null}c.errorExists=l;function h(p){return Math.min(p*1e3,2147483647)}c.ttlMilliseconds=h},28040:(C,c)=>{var t,i;/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(){"use strict";var s={}.hasOwnProperty;function u(){for(var v=[],l=0;l<arguments.length;l++){var h=arguments[l];if(h){var p=typeof h;if(p==="string"||p==="number")v.push(h);else if(Array.isArray(h)){if(h.length){var d=u.apply(null,h);d&&v.push(d)}}else if(p==="object")if(h.toString===Object.prototype.toString)for(var f in h)s.call(h,f)&&h[f]&&v.push(f);else v.push(h.toString())}}return v.join(" ")}C.exports?(u.default=u,C.exports=u):(t=[],i=function(){return u}.apply(c,t),i!==void 0&&(C.exports=i))})()},89898:(C,c)=>{var t,i;/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(){"use strict";var s={}.hasOwnProperty,u="[native code]";function v(){for(var l=[],h=0;h<arguments.length;h++){var p=arguments[h];if(p){var d=typeof p;if(d==="string"||d==="number")l.push(p);else if(Array.isArray(p)){if(p.length){var f=v.apply(null,p);f&&l.push(f)}}else if(d==="object"){if(p.toString!==Object.prototype.toString&&!p.toString.toString().includes("[native code]")){l.push(p.toString());continue}for(var g in p)s.call(p,g)&&p[g]&&l.push(g)}}}return l.join(" ")}C.exports?(v.default=v,C.exports=v):(t=[],i=function(){return v}.apply(c,t),i!==void 0&&(C.exports=i))})()},95047:(C,c,t)=>{"use strict";t.r(c),t.d(c,{default:()=>s});function i(u){var v,l,h="";if(typeof u=="string"||typeof u=="number")h+=u;else if(typeof u=="object")if(Array.isArray(u))for(v=0;v<u.length;v++)u[v]&&(l=i(u[v]))&&(h&&(h+=" "),h+=l);else for(v in u)u[v]&&(h&&(h+=" "),h+=v);return h}function s(){for(var u=0,v,l,h="";u<arguments.length;)(v=arguments[u++])&&(l=i(v))&&(h&&(h+=" "),h+=l);return h}},42185:(C,c,t)=>{"use strict";C.exports=function(i,s){var u=this,v=u.constructor;return u.options=Object.assign({storeInstancesGlobally:!0},s||{}),u.callbacks={},u.directMap={},u.sequenceLevels={},u.resetTimer=null,u.ignoreNextKeyup=!1,u.ignoreNextKeypress=!1,u.nextExpectedAction=!1,u.element=i,u.addEvents(),u.options.storeInstancesGlobally&&v.instances.push(u),u},C.exports.prototype.bind=t(96955),C.exports.prototype.bindMultiple=t(9641),C.exports.prototype.unbind=t(93465),C.exports.prototype.trigger=t(71111),C.exports.prototype.reset=t(78964),C.exports.prototype.stopCallback=t(4826),C.exports.prototype.handleKey=t(83467),C.exports.prototype.addEvents=t(79741),C.exports.prototype.bindSingle=t(91445),C.exports.prototype.getKeyInfo=t(2113),C.exports.prototype.pickBestAction=t(94089),C.exports.prototype.getReverseMap=t(22185),C.exports.prototype.getMatches=t(41486),C.exports.prototype.resetSequences=t(47466),C.exports.prototype.fireCallback=t(53081),C.exports.prototype.bindSequence=t(63264),C.exports.prototype.resetSequenceTimer=t(71521),C.exports.prototype.detach=t(19282),C.exports.instances=[],C.exports.reset=t(62147),C.exports.REVERSE_MAP=null},79741:(C,c,t)=>{"use strict";C.exports=function(){var i=this,s=t(84852),u=i.element;i.eventHandler=t(93328).bind(i),s(u,"keypress",i.eventHandler),s(u,"keydown",i.eventHandler),s(u,"keyup",i.eventHandler)}},96955:C=>{"use strict";C.exports=function(c,t,i){var s=this;return c=c instanceof Array?c:[c],s.bindMultiple(c,t,i),s}},9641:C=>{"use strict";C.exports=function(c,t,i){for(var s=this,u=0;u<c.length;++u)s.bindSingle(c[u],t,i)}},63264:(C,c,t)=>{"use strict";C.exports=function(i,s,u,v){var l=this;l.sequenceLevels[i]=0;function h(y){return function(){l.nextExpectedAction=y,++l.sequenceLevels[i],l.resetSequenceTimer()}}function p(y){var b;l.fireCallback(u,y,i),v!=="keyup"&&(b=t(97227),l.ignoreNextKeyup=b(y)),setTimeout(function(){l.resetSequences()},10)}for(var d=0;d<s.length;++d){var f=d+1===s.length,g=f?p:h(v||l.getKeyInfo(s[d+1]).action);l.bindSingle(s[d],g,v,i,d)}}},91445:C=>{"use strict";C.exports=function(c,t,i,s,u){var v=this;v.directMap[c+":"+i]=t,c=c.replace(/\s+/g," ");var l=c.split(" "),h;if(l.length>1){v.bindSequence(c,l,t,i);return}h=v.getKeyInfo(c,i),v.callbacks[h.key]=v.callbacks[h.key]||[],v.getMatches(h.key,h.modifiers,{type:h.action},s,c,u),v.callbacks[h.key][s?"unshift":"push"]({callback:t,modifiers:h.modifiers,action:h.action,seq:s,level:u,combo:c})}},19282:(C,c,t)=>{var i=t(84852).off;C.exports=function(){var s=this,u=s.element;i(u,"keypress",s.eventHandler),i(u,"keydown",s.eventHandler),i(u,"keyup",s.eventHandler)}},84852:C=>{C.exports=c,C.exports.on=c,C.exports.off=t;function c(i,s,u,v){return!i.addEventListener&&(s="on"+s),(i.addEventListener||i.attachEvent).call(i,s,u,v),u}function t(i,s,u,v){return!i.removeEventListener&&(s="on"+s),(i.removeEventListener||i.detachEvent).call(i,s,u,v),u}},53081:(C,c,t)=>{"use strict";C.exports=function(i,s,u,v){var l=this,h,p;l.stopCallback(s,s.target||s.srcElement,u,v)||i(s,u)===!1&&(h=t(810),h(s),p=t(39506),p(s))}},2113:(C,c,t)=>{"use strict";C.exports=function(i,s){var u=this,v,l,h,p,d=[],f,g,y;for(v=t(86430),l=v(i),f=t(53916),g=t(69578),y=t(36620),p=0;p<l.length;++p)h=l[p],f[h]&&(h=f[h]),s&&s!=="keypress"&&g[h]&&(h=g[h],d.push("shift")),y(h)&&d.push(h);return s=u.pickBestAction(h,d,s),{key:h,modifiers:d,action:s}}},41486:(C,c,t)=>{"use strict";C.exports=function(i,s,u,v,l,h){var p=this,d,f,g=[],y=u.type,b,E;if(y==="keypress"&&!(u.code&&u.code.slice(0,5)==="Arrow")){var S=p.callbacks["any-character"]||[];S.forEach(function(P){g.push(P)})}if(!p.callbacks[i])return g;for(b=t(36620),y==="keyup"&&b(i)&&(s=[i]),d=0;d<p.callbacks[i].length;++d)if(f=p.callbacks[i][d],!(!v&&f.seq&&p.sequenceLevels[f.seq]!==f.level)&&y===f.action&&(E=t(94907),y==="keypress"&&!u.metaKey&&!u.ctrlKey||E(s,f.modifiers))){var w=!v&&f.combo===l,x=v&&f.seq===v&&f.level===h;(w||x)&&p.callbacks[i].splice(d,1),g.push(f)}return g}},22185:(C,c,t)=>{"use strict";C.exports=function(){var i=this,s=i.constructor,u;if(!s.REVERSE_MAP){s.REVERSE_MAP={},u=t(38687);for(var v in u)v>95&&v<112||u.hasOwnProperty(v)&&(s.REVERSE_MAP[u[v]]=v)}return s.REVERSE_MAP}},83467:(C,c,t)=>{"use strict";C.exports=function(i,s,u){var v=this,l,h,p={},d=0,f=!1,g,y;for(l=v.getMatches(i,s,u),h=0;h<l.length;++h)l[h].seq&&(d=Math.max(d,l[h].level));for(h=0;h<l.length;++h){if(l[h].seq){if(l[h].level!==d)continue;f=!0,p[l[h].seq]=1,v.fireCallback(l[h].callback,u,l[h].combo,l[h].seq);continue}f||v.fireCallback(l[h].callback,u,l[h].combo)}y=u.type==="keypress"&&v.ignoreNextKeypress,g=t(36620),u.type===v.nextExpectedAction&&!g(i)&&!y&&v.resetSequences(p),v.ignoreNextKeypress=f&&u.type==="keydown"}},93328:(C,c,t)=>{"use strict";C.exports=function(i){var s=this,u,v;typeof i.which!="number"&&(i.which=i.keyCode),u=t(97227);var l=u(i);if(l!==void 0){if(i.type==="keyup"&&s.ignoreNextKeyup===l){s.ignoreNextKeyup=!1;return}v=t(89041),s.handleKey(l,v(i),i)}}},94907:C=>{"use strict";C.exports=function(c,t){return c.sort().join(",")===t.sort().join(",")}},94089:C=>{"use strict";C.exports=function(c,t,i){var s=this;return i||(i=s.getReverseMap()[c]?"keydown":"keypress"),i==="keypress"&&t.length&&(i="keydown"),i}},78964:C=>{"use strict";C.exports=function(){var c=this;return c.callbacks={},c.directMap={},this}},71521:C=>{"use strict";C.exports=function(){var c=this;clearTimeout(c.resetTimer),c.resetTimer=setTimeout(function(){c.resetSequences()},1e3)}},47466:C=>{"use strict";C.exports=function(c){var t=this;c=c||{};var i=!1,s;for(s in t.sequenceLevels){if(c[s]){i=!0;continue}t.sequenceLevels[s]=0}i||(t.nextExpectedAction=!1)}},4826:C=>{"use strict";C.exports=function(c,t){if((" "+t.className+" ").indexOf(" combokeys ")>-1)return!1;var i=t.tagName.toLowerCase();return i==="input"||i==="select"||i==="textarea"||t.isContentEditable}},71111:C=>{"use strict";C.exports=function(c,t){var i=this;return i.directMap[c+":"+t]&&i.directMap[c+":"+t]({},c),this}},93465:C=>{"use strict";C.exports=function(c,t){var i=this;return i.bind(c,function(){},t)}},62147:C=>{"use strict";C.exports=function(){var c=this;c.instances.forEach(function(t){t.reset()})}},97227:(C,c,t)=>{"use strict";C.exports=function(i){var s,u;if(s=t(38687),u=t(87823),i.type==="keypress"){var v=String.fromCharCode(i.which);return i.shiftKey||(v=v.toLowerCase()),v}return s[i.which]!==void 0?s[i.which]:u[i.which]!==void 0?u[i.which]:String.fromCharCode(i.which).toLowerCase()}},89041:C=>{"use strict";C.exports=function(c){var t=[];return c.shiftKey&&t.push("shift"),c.altKey&&t.push("alt"),c.ctrlKey&&t.push("ctrl"),c.metaKey&&t.push("meta"),t}},36620:C=>{"use strict";C.exports=function(c){return c==="shift"||c==="ctrl"||c==="alt"||c==="meta"}},86430:C=>{"use strict";C.exports=function(c){return c==="+"?["+"]:c.split("+")}},810:C=>{"use strict";C.exports=function(c){if(c.preventDefault){c.preventDefault();return}c.returnValue=!1}},69578:C=>{"use strict";C.exports={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"}},53916:C=>{"use strict";C.exports={option:"alt",command:"meta",return:"enter",escape:"esc",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"}},87823:C=>{"use strict";C.exports={106:"*",107:"plus",109:"minus",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}},38687:C=>{"use strict";C.exports={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",173:"minus",187:"plus",189:"minus",224:"meta"};for(var c=1;c<20;++c)C.exports[111+c]="f"+c;for(c=0;c<=9;++c)C.exports[c+96]=c},39506:C=>{"use strict";C.exports=function(c){if(c.stopPropagation){c.stopPropagation();return}c.cancelBubble=!0}},7868:C=>{var c=1,t=.9,i=.3,s=.1,u=0,v=.999,l=.9999,h=.99,p=/[\\\/\-_+.# \t"@\[\(\{&]/,d=/[\\\/\-_+.# \t"@\[\(\{&]/g;function f(y,b,E,S,w,x){if(x===b.length)return w===y.length?c:h;for(var P=S.charAt(x),R=E.indexOf(P,w),T=0,A,I,N;R>=0;)A=f(y,b,E,S,R+1,x+1),A>T&&(R===w?A*=c:p.test(y.charAt(R-1))?(A*=t,N=y.slice(w,R-1).match(d),N&&w>0&&(A*=Math.pow(v,N.length))):p.test(y.slice(w,R-1))?(A*=u,w>0&&(A*=Math.pow(v,R-w))):(A*=i,w>0&&(A*=Math.pow(v,R-w))),y.charAt(R)!==b.charAt(x)&&(A*=l)),A<s&&E.charAt(R-1)===S.charAt(x+1)&&E.charAt(R-1)!==S.charAt(x)&&(I=f(y,b,E,S,R+1,x+2),I*s>A&&(A=I*s)),A>T&&(T=A),R=E.indexOf(P,R+1);return T}function g(y,b){return f(y,b,y.toLowerCase(),b.toLowerCase(),0,0)}C.exports=g},20762:(C,c,t)=>{try{var i=t(5715)}catch{var i=t(5715)}var s=/\s+/,u=Object.prototype.toString;C.exports=function(l){return new v(l)};function v(l){if(!l||!l.nodeType)throw new Error("A DOM element reference is required");this.el=l,this.list=l.classList}v.prototype.add=function(l){if(this.list)return this.list.add(l),this;var h=this.array(),p=i(h,l);return~p||h.push(l),this.el.className=h.join(" "),this},v.prototype.remove=function(l){if(u.call(l)=="[object RegExp]")return this.removeMatching(l);if(this.list)return this.list.remove(l),this;var h=this.array(),p=i(h,l);return~p&&h.splice(p,1),this.el.className=h.join(" "),this},v.prototype.removeMatching=function(l){for(var h=this.array(),p=0;p<h.length;p++)l.test(h[p])&&this.remove(h[p]);return this},v.prototype.toggle=function(l,h){return this.list?(typeof h<"u"?h!==this.list.toggle(l,h)&&this.list.toggle(l):this.list.toggle(l),this):(typeof h<"u"?h?this.add(l):this.remove(l):this.has(l)?this.remove(l):this.add(l),this)},v.prototype.array=function(){var l=this.el.getAttribute("class")||"",h=l.replace(/^\s+|\s+$/g,""),p=h.split(s);return p[0]===""&&p.shift(),p},v.prototype.has=v.prototype.contains=function(l){return this.list?this.list.contains(l):!!~i(this.array(),l)}},5715:C=>{C.exports=function(c,t){if(c.indexOf)return c.indexOf(t);for(var i=0;i<c.length;++i)if(c[i]===t)return i;return-1}},41795:(C,c,t)=>{"use strict";var i=t(28829),s={"text/plain":"Text","text/html":"Url",default:"Text"},u="Copy to clipboard: #{key}, Enter";function v(h){var p=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return h.replace(/#{\s*key\s*}/g,p)}function l(h,p){var d,f,g,y,b,E,S=!1;p||(p={}),d=p.debug||!1;try{g=i(),y=document.createRange(),b=document.getSelection(),E=document.createElement("span"),E.textContent=h,E.style.all="unset",E.style.position="fixed",E.style.top=0,E.style.clip="rect(0, 0, 0, 0)",E.style.whiteSpace="pre",E.style.webkitUserSelect="text",E.style.MozUserSelect="text",E.style.msUserSelect="text",E.style.userSelect="text",E.addEventListener("copy",function(x){if(x.stopPropagation(),p.format)if(x.preventDefault(),typeof x.clipboardData>"u"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var P=s[p.format]||s.default;window.clipboardData.setData(P,h)}else x.clipboardData.clearData(),x.clipboardData.setData(p.format,h);p.onCopy&&(x.preventDefault(),p.onCopy(x.clipboardData))}),document.body.appendChild(E),y.selectNodeContents(E),b.addRange(y);var w=document.execCommand("copy");if(!w)throw new Error("copy command was unsuccessful");S=!0}catch(x){d&&console.error("unable to copy using execCommand: ",x),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(p.format||"text",h),p.onCopy&&p.onCopy(window.clipboardData),S=!0}catch(P){d&&console.error("unable to copy using clipboardData: ",P),d&&console.error("falling back to prompt"),f=v("message"in p?p.message:u),window.prompt(f,h)}}finally{b&&(typeof b.removeRange=="function"?b.removeRange(y):b.removeAllRanges()),E&&document.body.removeChild(E),g()}return S}C.exports=l},24581:(C,c,t)=>{var i=t(33129),s=t(89585),u=t(46848);function v(p){return p==null}function l(p){var d={};for(var f in p)d[f]=p[f];return d}function h(p){p=l(p||{}),p.whiteList=p.whiteList||i.whiteList,p.onAttr=p.onAttr||i.onAttr,p.onIgnoreAttr=p.onIgnoreAttr||i.onIgnoreAttr,p.safeAttrValue=p.safeAttrValue||i.safeAttrValue,this.options=p}h.prototype.process=function(p){if(p=p||"",p=p.toString(),!p)return"";var d=this,f=d.options,g=f.whiteList,y=f.onAttr,b=f.onIgnoreAttr,E=f.safeAttrValue,S=s(p,function(w,x,P,R,T){var A=g[P],I=!1;if(A===!0?I=A:typeof A=="function"?I=A(R):A instanceof RegExp&&(I=A.test(R)),I!==!0&&(I=!1),R=E(P,R),!!R){var N={position:x,sourcePosition:w,source:T,isWhite:I};if(I){var K=y(P,R,N);return v(K)?P+":"+R:K}else{var K=b(P,R,N);if(!v(K))return K}}});return S},C.exports=h},33129:(C,c)=>{function t(){var l={};return l["align-content"]=!1,l["align-items"]=!1,l["align-self"]=!1,l["alignment-adjust"]=!1,l["alignment-baseline"]=!1,l.all=!1,l["anchor-point"]=!1,l.animation=!1,l["animation-delay"]=!1,l["animation-direction"]=!1,l["animation-duration"]=!1,l["animation-fill-mode"]=!1,l["animation-iteration-count"]=!1,l["animation-name"]=!1,l["animation-play-state"]=!1,l["animation-timing-function"]=!1,l.azimuth=!1,l["backface-visibility"]=!1,l.background=!0,l["background-attachment"]=!0,l["background-clip"]=!0,l["background-color"]=!0,l["background-image"]=!0,l["background-origin"]=!0,l["background-position"]=!0,l["background-repeat"]=!0,l["background-size"]=!0,l["baseline-shift"]=!1,l.binding=!1,l.bleed=!1,l["bookmark-label"]=!1,l["bookmark-level"]=!1,l["bookmark-state"]=!1,l.border=!0,l["border-bottom"]=!0,l["border-bottom-color"]=!0,l["border-bottom-left-radius"]=!0,l["border-bottom-right-radius"]=!0,l["border-bottom-style"]=!0,l["border-bottom-width"]=!0,l["border-collapse"]=!0,l["border-color"]=!0,l["border-image"]=!0,l["border-image-outset"]=!0,l["border-image-repeat"]=!0,l["border-image-slice"]=!0,l["border-image-source"]=!0,l["border-image-width"]=!0,l["border-left"]=!0,l["border-left-color"]=!0,l["border-left-style"]=!0,l["border-left-width"]=!0,l["border-radius"]=!0,l["border-right"]=!0,l["border-right-color"]=!0,l["border-right-style"]=!0,l["border-right-width"]=!0,l["border-spacing"]=!0,l["border-style"]=!0,l["border-top"]=!0,l["border-top-color"]=!0,l["border-top-left-radius"]=!0,l["border-top-right-radius"]=!0,l["border-top-style"]=!0,l["border-top-width"]=!0,l["border-width"]=!0,l.bottom=!1,l["box-decoration-break"]=!0,l["box-shadow"]=!0,l["box-sizing"]=!0,l["box-snap"]=!0,l["box-suppress"]=!0,l["break-after"]=!0,l["break-before"]=!0,l["break-inside"]=!0,l["caption-side"]=!1,l.chains=!1,l.clear=!0,l.clip=!1,l["clip-path"]=!1,l["clip-rule"]=!1,l.color=!0,l["color-interpolation-filters"]=!0,l["column-count"]=!1,l["column-fill"]=!1,l["column-gap"]=!1,l["column-rule"]=!1,l["column-rule-color"]=!1,l["column-rule-style"]=!1,l["column-rule-width"]=!1,l["column-span"]=!1,l["column-width"]=!1,l.columns=!1,l.contain=!1,l.content=!1,l["counter-increment"]=!1,l["counter-reset"]=!1,l["counter-set"]=!1,l.crop=!1,l.cue=!1,l["cue-after"]=!1,l["cue-before"]=!1,l.cursor=!1,l.direction=!1,l.display=!0,l["display-inside"]=!0,l["display-list"]=!0,l["display-outside"]=!0,l["dominant-baseline"]=!1,l.elevation=!1,l["empty-cells"]=!1,l.filter=!1,l.flex=!1,l["flex-basis"]=!1,l["flex-direction"]=!1,l["flex-flow"]=!1,l["flex-grow"]=!1,l["flex-shrink"]=!1,l["flex-wrap"]=!1,l.float=!1,l["float-offset"]=!1,l["flood-color"]=!1,l["flood-opacity"]=!1,l["flow-from"]=!1,l["flow-into"]=!1,l.font=!0,l["font-family"]=!0,l["font-feature-settings"]=!0,l["font-kerning"]=!0,l["font-language-override"]=!0,l["font-size"]=!0,l["font-size-adjust"]=!0,l["font-stretch"]=!0,l["font-style"]=!0,l["font-synthesis"]=!0,l["font-variant"]=!0,l["font-variant-alternates"]=!0,l["font-variant-caps"]=!0,l["font-variant-east-asian"]=!0,l["font-variant-ligatures"]=!0,l["font-variant-numeric"]=!0,l["font-variant-position"]=!0,l["font-weight"]=!0,l.grid=!1,l["grid-area"]=!1,l["grid-auto-columns"]=!1,l["grid-auto-flow"]=!1,l["grid-auto-rows"]=!1,l["grid-column"]=!1,l["grid-column-end"]=!1,l["grid-column-start"]=!1,l["grid-row"]=!1,l["grid-row-end"]=!1,l["grid-row-start"]=!1,l["grid-template"]=!1,l["grid-template-areas"]=!1,l["grid-template-columns"]=!1,l["grid-template-rows"]=!1,l["hanging-punctuation"]=!1,l.height=!0,l.hyphens=!1,l.icon=!1,l["image-orientation"]=!1,l["image-resolution"]=!1,l["ime-mode"]=!1,l["initial-letters"]=!1,l["inline-box-align"]=!1,l["justify-content"]=!1,l["justify-items"]=!1,l["justify-self"]=!1,l.left=!1,l["letter-spacing"]=!0,l["lighting-color"]=!0,l["line-box-contain"]=!1,l["line-break"]=!1,l["line-grid"]=!1,l["line-height"]=!1,l["line-snap"]=!1,l["line-stacking"]=!1,l["line-stacking-ruby"]=!1,l["line-stacking-shift"]=!1,l["line-stacking-strategy"]=!1,l["list-style"]=!0,l["list-style-image"]=!0,l["list-style-position"]=!0,l["list-style-type"]=!0,l.margin=!0,l["margin-bottom"]=!0,l["margin-left"]=!0,l["margin-right"]=!0,l["margin-top"]=!0,l["marker-offset"]=!1,l["marker-side"]=!1,l.marks=!1,l.mask=!1,l["mask-box"]=!1,l["mask-box-outset"]=!1,l["mask-box-repeat"]=!1,l["mask-box-slice"]=!1,l["mask-box-source"]=!1,l["mask-box-width"]=!1,l["mask-clip"]=!1,l["mask-image"]=!1,l["mask-origin"]=!1,l["mask-position"]=!1,l["mask-repeat"]=!1,l["mask-size"]=!1,l["mask-source-type"]=!1,l["mask-type"]=!1,l["max-height"]=!0,l["max-lines"]=!1,l["max-width"]=!0,l["min-height"]=!0,l["min-width"]=!0,l["move-to"]=!1,l["nav-down"]=!1,l["nav-index"]=!1,l["nav-left"]=!1,l["nav-right"]=!1,l["nav-up"]=!1,l["object-fit"]=!1,l["object-position"]=!1,l.opacity=!1,l.order=!1,l.orphans=!1,l.outline=!1,l["outline-color"]=!1,l["outline-offset"]=!1,l["outline-style"]=!1,l["outline-width"]=!1,l.overflow=!1,l["overflow-wrap"]=!1,l["overflow-x"]=!1,l["overflow-y"]=!1,l.padding=!0,l["padding-bottom"]=!0,l["padding-left"]=!0,l["padding-right"]=!0,l["padding-top"]=!0,l.page=!1,l["page-break-after"]=!1,l["page-break-before"]=!1,l["page-break-inside"]=!1,l["page-policy"]=!1,l.pause=!1,l["pause-after"]=!1,l["pause-before"]=!1,l.perspective=!1,l["perspective-origin"]=!1,l.pitch=!1,l["pitch-range"]=!1,l["play-during"]=!1,l.position=!1,l["presentation-level"]=!1,l.quotes=!1,l["region-fragment"]=!1,l.resize=!1,l.rest=!1,l["rest-after"]=!1,l["rest-before"]=!1,l.richness=!1,l.right=!1,l.rotation=!1,l["rotation-point"]=!1,l["ruby-align"]=!1,l["ruby-merge"]=!1,l["ruby-position"]=!1,l["shape-image-threshold"]=!1,l["shape-outside"]=!1,l["shape-margin"]=!1,l.size=!1,l.speak=!1,l["speak-as"]=!1,l["speak-header"]=!1,l["speak-numeral"]=!1,l["speak-punctuation"]=!1,l["speech-rate"]=!1,l.stress=!1,l["string-set"]=!1,l["tab-size"]=!1,l["table-layout"]=!1,l["text-align"]=!0,l["text-align-last"]=!0,l["text-combine-upright"]=!0,l["text-decoration"]=!0,l["text-decoration-color"]=!0,l["text-decoration-line"]=!0,l["text-decoration-skip"]=!0,l["text-decoration-style"]=!0,l["text-emphasis"]=!0,l["text-emphasis-color"]=!0,l["text-emphasis-position"]=!0,l["text-emphasis-style"]=!0,l["text-height"]=!0,l["text-indent"]=!0,l["text-justify"]=!0,l["text-orientation"]=!0,l["text-overflow"]=!0,l["text-shadow"]=!0,l["text-space-collapse"]=!0,l["text-transform"]=!0,l["text-underline-position"]=!0,l["text-wrap"]=!0,l.top=!1,l.transform=!1,l["transform-origin"]=!1,l["transform-style"]=!1,l.transition=!1,l["transition-delay"]=!1,l["transition-duration"]=!1,l["transition-property"]=!1,l["transition-timing-function"]=!1,l["unicode-bidi"]=!1,l["vertical-align"]=!1,l.visibility=!1,l["voice-balance"]=!1,l["voice-duration"]=!1,l["voice-family"]=!1,l["voice-pitch"]=!1,l["voice-range"]=!1,l["voice-rate"]=!1,l["voice-stress"]=!1,l["voice-volume"]=!1,l.volume=!1,l["white-space"]=!1,l.widows=!1,l.width=!0,l["will-change"]=!1,l["word-break"]=!0,l["word-spacing"]=!0,l["word-wrap"]=!0,l["wrap-flow"]=!1,l["wrap-through"]=!1,l["writing-mode"]=!1,l["z-index"]=!1,l}function i(l,h,p){}function s(l,h,p){}var u=/javascript\s*\:/img;function v(l,h){return u.test(h)?"":h}c.whiteList=t(),c.getDefaultWhiteList=t,c.onAttr=i,c.onIgnoreAttr=s,c.safeAttrValue=v},40182:(C,c,t)=>{var i=t(33129),s=t(24581);function u(l,h){var p=new s(h);return p.process(l)}c=C.exports=u,c.FilterCSS=s;for(var v in i)c[v]=i[v];typeof window<"u"&&(window.filterCSS=C.exports)},89585:(C,c,t)=>{var i=t(46848);function s(u,v){u=i.trimRight(u),u[u.length-1]!==";"&&(u+=";");var l=u.length,h=!1,p=0,d=0,f="";function g(){if(!h){var E=i.trim(u.slice(p,d)),S=E.indexOf(":");if(S!==-1){var w=i.trim(E.slice(0,S)),x=i.trim(E.slice(S+1));if(w){var P=v(p,f.length,w,x,E);P&&(f+=P+"; ")}}}p=d+1}for(;d<l;d++){var y=u[d];if(y==="/"&&u[d+1]==="*"){var b=u.indexOf("*/",d+2);if(b===-1)break;d=b+1,p=d+1,h=!1}else y==="("?h=!0:y===")"?h=!1:y===";"?h||g():y===` `&&g()}return i.trim(f)}C.exports=s},46848:C=>{C.exports={indexOf:function(c,t){var i,s;if(Array.prototype.indexOf)return c.indexOf(t);for(i=0,s=c.length;i<s;i++)if(c[i]===t)return i;return-1},forEach:function(c,t,i){var s,u;if(Array.prototype.forEach)return c.forEach(t,i);for(s=0,u=c.length;s<u;s++)t.call(i,c[s],s,c)},trim:function(c){return String.prototype.trim?c.trim():c.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(c){return String.prototype.trimRight?c.trimRight():c.replace(/(\s*$)/g,"")}}},4438:(C,c,t)=>{"use strict";t.r(c),t.d(c,{arc:()=>Z,area:()=>F,areaRadial:()=>he,curveBasis:()=>Kt,curveBasisClosed:()=>Ve,curveBasisOpen:()=>at,curveBundle:()=>rt,curveCardinal:()=>sn,curveCardinalClosed:()=>ze,curveCardinalOpen:()=>en,curveCatmullRom:()=>Ut,curveCatmullRomClosed:()=>Tn,curveCatmullRomOpen:()=>Zt,curveLinear:()=>q,curveLinearClosed:()=>We,curveMonotoneX:()=>mn,curveMonotoneY:()=>Kn,curveNatural:()=>or,curveStep:()=>ni,curveStepAfter:()=>si,curveStepBefore:()=>yr,line:()=>k,lineRadial:()=>Se,linkHorizontal:()=>ae,linkRadial:()=>Me,linkVertical:()=>ve,pie:()=>ce,pointRadial:()=>me,radialArea:()=>he,radialLine:()=>Se,stack:()=>fa,stackOffsetDiverging:()=>Ca,stackOffsetExpand:()=>ha,stackOffsetNone:()=>Yr,stackOffsetSilhouette:()=>li,stackOffsetWiggle:()=>la,stackOrderAppearance:()=>Oa,stackOrderAscending:()=>vo,stackOrderDescending:()=>_r,stackOrderInsideOut:()=>$r,stackOrderNone:()=>Ci,stackOrderReverse:()=>Ti,symbol:()=>Yt,symbolCircle:()=>Ye,symbolCross:()=>qe,symbolDiamond:()=>Ce,symbolSquare:()=>je,symbolStar:()=>Oe,symbolTriangle:()=>ct,symbolWye:()=>Gt,symbols:()=>hn});var i=Math.PI,s=2*i,u=1e-6,v=s-u;function l(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function h(){return new l}l.prototype=h.prototype={constructor:l,moveTo:function(xt,On){this._+="M"+(this._x0=this._x1=+xt)+","+(this._y0=this._y1=+On)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(xt,On){this._+="L"+(this._x1=+xt)+","+(this._y1=+On)},quadraticCurveTo:function(xt,On,Zn,Ur){this._+="Q"+ +xt+","+ +On+","+(this._x1=+Zn)+","+(this._y1=+Ur)},bezierCurveTo:function(xt,On,Zn,Ur,En,ln){this._+="C"+ +xt+","+ +On+","+ +Zn+","+ +Ur+","+(this._x1=+En)+","+(this._y1=+ln)},arcTo:function(xt,On,Zn,Ur,En){xt=+xt,On=+On,Zn=+Zn,Ur=+Ur,En=+En;var ln=this._x1,jn=this._y1,rr=Zn-xt,Mr=Ur-On,Ir=ln-xt,Zr=jn-On,lr=Ir*Ir+Zr*Zr;if(En<0)throw new Error("negative radius: "+En);if(this._x1===null)this._+="M"+(this._x1=xt)+","+(this._y1=On);else if(lr>u)if(!(Math.abs(Zr*rr-Mr*Ir)>u)||!En)this._+="L"+(this._x1=xt)+","+(this._y1=On);else{var Jr=Zn-ln,pi=Ur-jn,Ri=rr*rr+Mr*Mr,Ki=Jr*Jr+pi*pi,ia=Math.sqrt(Ri),Da=Math.sqrt(lr),to=En*Math.tan((i-Math.acos((Ri+lr-Ki)/(2*ia*Da)))/2),ao=to/Da,Bo=to/ia;Math.abs(ao-1)>u&&(this._+="L"+(xt+ao*Ir)+","+(On+ao*Zr)),this._+="A"+En+","+En+",0,0,"+ +(Zr*Jr>Ir*pi)+","+(this._x1=xt+Bo*rr)+","+(this._y1=On+Bo*Mr)}},arc:function(xt,On,Zn,Ur,En,ln){xt=+xt,On=+On,Zn=+Zn,ln=!!ln;var jn=Zn*Math.cos(Ur),rr=Zn*Math.sin(Ur),Mr=xt+jn,Ir=On+rr,Zr=1^ln,lr=ln?Ur-En:En-Ur;if(Zn<0)throw new Error("negative radius: "+Zn);this._x1===null?this._+="M"+Mr+","+Ir:(Math.abs(this._x1-Mr)>u||Math.abs(this._y1-Ir)>u)&&(this._+="L"+Mr+","+Ir),Zn&&(lr<0&&(lr=lr%s+s),lr>v?this._+="A"+Zn+","+Zn+",0,1,"+Zr+","+(xt-jn)+","+(On-rr)+"A"+Zn+","+Zn+",0,1,"+Zr+","+(this._x1=Mr)+","+(this._y1=Ir):lr>u&&(this._+="A"+Zn+","+Zn+",0,"+ +(lr>=i)+","+Zr+","+(this._x1=xt+Zn*Math.cos(En))+","+(this._y1=On+Zn*Math.sin(En))))},rect:function(xt,On,Zn,Ur){this._+="M"+(this._x0=this._x1=+xt)+","+(this._y0=this._y1=+On)+"h"+ +Zn+"v"+ +Ur+"h"+-Zn+"Z"},toString:function(){return this._}};const p=h;function d(xt){return function(){return xt}}var f=Math.abs,g=Math.atan2,y=Math.cos,b=Math.max,E=Math.min,S=Math.sin,w=Math.sqrt,x=1e-12,P=Math.PI,R=P/2,T=2*P;function A(xt){return xt>1?0:xt<-1?P:Math.acos(xt)}function I(xt){return xt>=1?R:xt<=-1?-R:Math.asin(xt)}function N(xt){return xt.innerRadius}function K(xt){return xt.outerRadius}function _(xt){return xt.startAngle}function W(xt){return xt.endAngle}function j(xt){return xt&&xt.padAngle}function re(xt,On,Zn,Ur,En,ln,jn,rr){var Mr=Zn-xt,Ir=Ur-On,Zr=jn-En,lr=rr-ln,Jr=lr*Mr-Zr*Ir;if(!(Jr*Jr<x))return Jr=(Zr*(On-ln)-lr*(xt-En))/Jr,[xt+Jr*Mr,On+Jr*Ir]}function X(xt,On,Zn,Ur,En,ln,jn){var rr=xt-Zn,Mr=On-Ur,Ir=(jn?ln:-ln)/w(rr*rr+Mr*Mr),Zr=Ir*Mr,lr=-Ir*rr,Jr=xt+Zr,pi=On+lr,Ri=Zn+Zr,Ki=Ur+lr,ia=(Jr+Ri)/2,Da=(pi+Ki)/2,to=Ri-Jr,ao=Ki-pi,Bo=to*to+ao*ao,jo=En-ln,Jo=Jr*Ki-Ri*pi,Go=(ao<0?-1:1)*w(b(0,jo*jo*Bo-Jo*Jo)),wr=(Jo*ao-to*Go)/Bo,qi=(-Jo*to-ao*Go)/Bo,ja=(Jo*ao+to*Go)/Bo,uo=(-Jo*to+ao*Go)/Bo,wi=wr-ia,ai=qi-Da,za=ja-ia,Mt=uo-Da;return wi*wi+ai*ai>za*za+Mt*Mt&&(wr=ja,qi=uo),{cx:wr,cy:qi,x01:-Zr,y01:-lr,x11:wr*(En/jo-1),y11:qi*(En/jo-1)}}function Z(){var xt=N,On=K,Zn=d(0),Ur=null,En=_,ln=W,jn=j,rr=null;function Mr(){var Ir,Zr,lr=+xt.apply(this,arguments),Jr=+On.apply(this,arguments),pi=En.apply(this,arguments)-R,Ri=ln.apply(this,arguments)-R,Ki=f(Ri-pi),ia=Ri>pi;if(rr||(rr=Ir=p()),Jr<lr&&(Zr=Jr,Jr=lr,lr=Zr),!(Jr>x))rr.moveTo(0,0);else if(Ki>T-x)rr.moveTo(Jr*y(pi),Jr*S(pi)),rr.arc(0,0,Jr,pi,Ri,!ia),lr>x&&(rr.moveTo(lr*y(Ri),lr*S(Ri)),rr.arc(0,0,lr,Ri,pi,ia));else{var Da=pi,to=Ri,ao=pi,Bo=Ri,jo=Ki,Jo=Ki,Go=jn.apply(this,arguments)/2,wr=Go>x&&(Ur?+Ur.apply(this,arguments):w(lr*lr+Jr*Jr)),qi=E(f(Jr-lr)/2,+Zn.apply(this,arguments)),ja=qi,uo=qi,wi,ai;if(wr>x){var za=I(wr/lr*S(Go)),Mt=I(wr/Jr*S(Go));(jo-=za*2)>x?(za*=ia?1:-1,ao+=za,Bo-=za):(jo=0,ao=Bo=(pi+Ri)/2),(Jo-=Mt*2)>x?(Mt*=ia?1:-1,Da+=Mt,to-=Mt):(Jo=0,Da=to=(pi+Ri)/2)}var Gn=Jr*y(Da),qn=Jr*S(Da),Fr=lr*y(Bo),Ei=lr*S(Bo);if(qi>x){var ii=Jr*y(to),Wi=Jr*S(to),Ya=lr*y(ao),qa=lr*S(ao),se;if(Ki<P&&(se=re(Gn,qn,Ya,qa,ii,Wi,Fr,Ei))){var ye=Gn-se[0],Xe=qn-se[1],yt=ii-se[0],Wt=Wi-se[1],Qt=1/S(A((ye*yt+Xe*Wt)/(w(ye*ye+Xe*Xe)*w(yt*yt+Wt*Wt)))/2),wn=w(se[0]*se[0]+se[1]*se[1]);ja=E(qi,(lr-wn)/(Qt-1)),uo=E(qi,(Jr-wn)/(Qt+1))}}Jo>x?uo>x?(wi=X(Ya,qa,Gn,qn,Jr,uo,ia),ai=X(ii,Wi,Fr,Ei,Jr,uo,ia),rr.moveTo(wi.cx+wi.x01,wi.cy+wi.y01),uo<qi?rr.arc(wi.cx,wi.cy,uo,g(wi.y01,wi.x01),g(ai.y01,ai.x01),!ia):(rr.arc(wi.cx,wi.cy,uo,g(wi.y01,wi.x01),g(wi.y11,wi.x11),!ia),rr.arc(0,0,Jr,g(wi.cy+wi.y11,wi.cx+wi.x11),g(ai.cy+ai.y11,ai.cx+ai.x11),!ia),rr.arc(ai.cx,ai.cy,uo,g(ai.y11,ai.x11),g(ai.y01,ai.x01),!ia))):(rr.moveTo(Gn,qn),rr.arc(0,0,Jr,Da,to,!ia)):rr.moveTo(Gn,qn),!(lr>x)||!(jo>x)?rr.lineTo(Fr,Ei):ja>x?(wi=X(Fr,Ei,ii,Wi,lr,-ja,ia),ai=X(Gn,qn,Ya,qa,lr,-ja,ia),rr.lineTo(wi.cx+wi.x01,wi.cy+wi.y01),ja<qi?rr.arc(wi.cx,wi.cy,ja,g(wi.y01,wi.x01),g(ai.y01,ai.x01),!ia):(rr.arc(wi.cx,wi.cy,ja,g(wi.y01,wi.x01),g(wi.y11,wi.x11),!ia),rr.arc(0,0,lr,g(wi.cy+wi.y11,wi.cx+wi.x11),g(ai.cy+ai.y11,ai.cx+ai.x11),ia),rr.arc(ai.cx,ai.cy,ja,g(ai.y11,ai.x11),g(ai.y01,ai.x01),!ia))):rr.arc(0,0,lr,Bo,ao,ia)}if(rr.closePath(),Ir)return rr=null,Ir+""||null}return Mr.centroid=function(){var Ir=(+xt.apply(this,arguments)+ +On.apply(this,arguments))/2,Zr=(+En.apply(this,arguments)+ +ln.apply(this,arguments))/2-P/2;return[y(Zr)*Ir,S(Zr)*Ir]},Mr.innerRadius=function(Ir){return arguments.length?(xt=typeof Ir=="function"?Ir:d(+Ir),Mr):xt},Mr.outerRadius=function(Ir){return arguments.length?(On=typeof Ir=="function"?Ir:d(+Ir),Mr):On},Mr.cornerRadius=function(Ir){return arguments.length?(Zn=typeof Ir=="function"?Ir:d(+Ir),Mr):Zn},Mr.padRadius=function(Ir){return arguments.length?(Ur=Ir==null?null:typeof Ir=="function"?Ir:d(+Ir),Mr):Ur},Mr.startAngle=function(Ir){return arguments.length?(En=typeof Ir=="function"?Ir:d(+Ir),Mr):En},Mr.endAngle=function(Ir){return arguments.length?(ln=typeof Ir=="function"?Ir:d(+Ir),Mr):ln},Mr.padAngle=function(Ir){return arguments.length?(jn=typeof Ir=="function"?Ir:d(+Ir),Mr):jn},Mr.context=function(Ir){return arguments.length?(rr=Ir??null,Mr):rr},Mr}function J(xt){this._context=xt}J.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(xt,On){switch(xt=+xt,On=+On,this._point){case 0:this._point=1,this._line?this._context.lineTo(xt,On):this._context.moveTo(xt,On);break;case 1:this._point=2;default:this._context.lineTo(xt,On);break}}};function q(xt){return new J(xt)}function L(xt){return xt[0]}function $(xt){return xt[1]}function k(){var xt=L,On=$,Zn=d(!0),Ur=null,En=q,ln=null;function jn(rr){var Mr,Ir=rr.length,Zr,lr=!1,Jr;for(Ur==null&&(ln=En(Jr=p())),Mr=0;Mr<=Ir;++Mr)!(Mr<Ir&&Zn(Zr=rr[Mr],Mr,rr))===lr&&((lr=!lr)?ln.lineStart():ln.lineEnd()),lr&&ln.point(+xt(Zr,Mr,rr),+On(Zr,Mr,rr));if(Jr)return ln=null,Jr+""||null}return jn.x=function(rr){return arguments.length?(xt=typeof rr=="function"?rr:d(+rr),jn):xt},jn.y=function(rr){return arguments.length?(On=typeof rr=="function"?rr:d(+rr),jn):On},jn.defined=function(rr){return arguments.length?(Zn=typeof rr=="function"?rr:d(!!rr),jn):Zn},jn.curve=function(rr){return arguments.length?(En=rr,Ur!=null&&(ln=En(Ur)),jn):En},jn.context=function(rr){return arguments.length?(rr==null?Ur=ln=null:ln=En(Ur=rr),jn):Ur},jn}function F(){var xt=L,On=null,Zn=d(0),Ur=$,En=d(!0),ln=null,jn=q,rr=null;function Mr(Zr){var lr,Jr,pi,Ri=Zr.length,Ki,ia=!1,Da,to=new Array(Ri),ao=new Array(Ri);for(ln==null&&(rr=jn(Da=p())),lr=0;lr<=Ri;++lr){if(!(lr<Ri&&En(Ki=Zr[lr],lr,Zr))===ia)if(ia=!ia)Jr=lr,rr.areaStart(),rr.lineStart();else{for(rr.lineEnd(),rr.lineStart(),pi=lr-1;pi>=Jr;--pi)rr.point(to[pi],ao[pi]);rr.lineEnd(),rr.areaEnd()}ia&&(to[lr]=+xt(Ki,lr,Zr),ao[lr]=+Zn(Ki,lr,Zr),rr.point(On?+On(Ki,lr,Zr):to[lr],Ur?+Ur(Ki,lr,Zr):ao[lr]))}if(Da)return rr=null,Da+""||null}function Ir(){return k().defined(En).curve(jn).context(ln)}return Mr.x=function(Zr){return arguments.length?(xt=typeof Zr=="function"?Zr:d(+Zr),On=null,Mr):xt},Mr.x0=function(Zr){return arguments.length?(xt=typeof Zr=="function"?Zr:d(+Zr),Mr):xt},Mr.x1=function(Zr){return arguments.length?(On=Zr==null?null:typeof Zr=="function"?Zr:d(+Zr),Mr):On},Mr.y=function(Zr){return arguments.length?(Zn=typeof Zr=="function"?Zr:d(+Zr),Ur=null,Mr):Zn},Mr.y0=function(Zr){return arguments.length?(Zn=typeof Zr=="function"?Zr:d(+Zr),Mr):Zn},Mr.y1=function(Zr){return arguments.length?(Ur=Zr==null?null:typeof Zr=="function"?Zr:d(+Zr),Mr):Ur},Mr.lineX0=Mr.lineY0=function(){return Ir().x(xt).y(Zn)},Mr.lineY1=function(){return Ir().x(xt).y(Ur)},Mr.lineX1=function(){return Ir().x(On).y(Zn)},Mr.defined=function(Zr){return arguments.length?(En=typeof Zr=="function"?Zr:d(!!Zr),Mr):En},Mr.curve=function(Zr){return arguments.length?(jn=Zr,ln!=null&&(rr=jn(ln)),Mr):jn},Mr.context=function(Zr){return arguments.length?(Zr==null?ln=rr=null:rr=jn(ln=Zr),Mr):ln},Mr}function V(xt,On){return On<xt?-1:On>xt?1:On>=xt?0:NaN}function pe(xt){return xt}function ce(){var xt=pe,On=V,Zn=null,Ur=d(0),En=d(T),ln=d(0);function jn(rr){var Mr,Ir=rr.length,Zr,lr,Jr=0,pi=new Array(Ir),Ri=new Array(Ir),Ki=+Ur.apply(this,arguments),ia=Math.min(T,Math.max(-T,En.apply(this,arguments)-Ki)),Da,to=Math.min(Math.abs(ia)/Ir,ln.apply(this,arguments)),ao=to*(ia<0?-1:1),Bo;for(Mr=0;Mr<Ir;++Mr)(Bo=Ri[pi[Mr]=Mr]=+xt(rr[Mr],Mr,rr))>0&&(Jr+=Bo);for(On!=null?pi.sort(function(jo,Jo){return On(Ri[jo],Ri[Jo])}):Zn!=null&&pi.sort(function(jo,Jo){return Zn(rr[jo],rr[Jo])}),Mr=0,lr=Jr?(ia-Ir*ao)/Jr:0;Mr<Ir;++Mr,Ki=Da)Zr=pi[Mr],Bo=Ri[Zr],Da=Ki+(Bo>0?Bo*lr:0)+ao,Ri[Zr]={data:rr[Zr],index:Mr,value:Bo,startAngle:Ki,endAngle:Da,padAngle:to};return Ri}return jn.value=function(rr){return arguments.length?(xt=typeof rr=="function"?rr:d(+rr),jn):xt},jn.sortValues=function(rr){return arguments.length?(On=rr,Zn=null,jn):On},jn.sort=function(rr){return arguments.length?(Zn=rr,On=null,jn):Zn},jn.startAngle=function(rr){return arguments.length?(Ur=typeof rr=="function"?rr:d(+rr),jn):Ur},jn.endAngle=function(rr){return arguments.length?(En=typeof rr=="function"?rr:d(+rr),jn):En},jn.padAngle=function(rr){return arguments.length?(ln=typeof rr=="function"?rr:d(+rr),jn):ln},jn}var G=ie(q);function te(xt){this._curve=xt}te.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(xt,On){this._curve.point(On*Math.sin(xt),On*-Math.cos(xt))}};function ie(xt){function On(Zn){return new te(xt(Zn))}return On._curve=xt,On}function fe(xt){var On=xt.curve;return xt.angle=xt.x,delete xt.x,xt.radius=xt.y,delete xt.y,xt.curve=function(Zn){return arguments.length?On(ie(Zn)):On()._curve},xt}function Se(){return fe(k().curve(G))}function he(){var xt=F().curve(G),On=xt.curve,Zn=xt.lineX0,Ur=xt.lineX1,En=xt.lineY0,ln=xt.lineY1;return xt.angle=xt.x,delete xt.x,xt.startAngle=xt.x0,delete xt.x0,xt.endAngle=xt.x1,delete xt.x1,xt.radius=xt.y,delete xt.y,xt.innerRadius=xt.y0,delete xt.y0,xt.outerRadius=xt.y1,delete xt.y1,xt.lineStartAngle=function(){return fe(Zn())},delete xt.lineX0,xt.lineEndAngle=function(){return fe(Ur())},delete xt.lineX1,xt.lineInnerRadius=function(){return fe(En())},delete xt.lineY0,xt.lineOuterRadius=function(){return fe(ln())},delete xt.lineY1,xt.curve=function(jn){return arguments.length?On(ie(jn)):On()._curve},xt}function me(xt,On){return[(On=+On)*Math.cos(xt-=Math.PI/2),On*Math.sin(xt)]}var _e=Array.prototype.slice;function we(xt){return xt.source}function Ge(xt){return xt.target}function ht(xt){var On=we,Zn=Ge,Ur=L,En=$,ln=null;function jn(){var rr,Mr=_e.call(arguments),Ir=On.apply(this,Mr),Zr=Zn.apply(this,Mr);if(ln||(ln=rr=p()),xt(ln,+Ur.apply(this,(Mr[0]=Ir,Mr)),+En.apply(this,Mr),+Ur.apply(this,(Mr[0]=Zr,Mr)),+En.apply(this,Mr)),rr)return ln=null,rr+""||null}return jn.source=function(rr){return arguments.length?(On=rr,jn):On},jn.target=function(rr){return arguments.length?(Zn=rr,jn):Zn},jn.x=function(rr){return arguments.length?(Ur=typeof rr=="function"?rr:d(+rr),jn):Ur},jn.y=function(rr){return arguments.length?(En=typeof rr=="function"?rr:d(+rr),jn):En},jn.context=function(rr){return arguments.length?(ln=rr??null,jn):ln},jn}function nt(xt,On,Zn,Ur,En){xt.moveTo(On,Zn),xt.bezierCurveTo(On=(On+Ur)/2,Zn,On,En,Ur,En)}function Re(xt,On,Zn,Ur,En){xt.moveTo(On,Zn),xt.bezierCurveTo(On,Zn=(Zn+En)/2,Ur,Zn,Ur,En)}function ue(xt,On,Zn,Ur,En){var ln=me(On,Zn),jn=me(On,Zn=(Zn+En)/2),rr=me(Ur,Zn),Mr=me(Ur,En);xt.moveTo(ln[0],ln[1]),xt.bezierCurveTo(jn[0],jn[1],rr[0],rr[1],Mr[0],Mr[1])}function ae(){return ht(nt)}function ve(){return ht(Re)}function Me(){var xt=ht(ue);return xt.angle=xt.x,delete xt.x,xt.radius=xt.y,delete xt.y,xt}const Ye={draw:function(xt,On){var Zn=Math.sqrt(On/P);xt.moveTo(Zn,0),xt.arc(0,0,Zn,0,T)}},qe={draw:function(xt,On){var Zn=Math.sqrt(On/5)/2;xt.moveTo(-3*Zn,-Zn),xt.lineTo(-Zn,-Zn),xt.lineTo(-Zn,-3*Zn),xt.lineTo(Zn,-3*Zn),xt.lineTo(Zn,-Zn),xt.lineTo(3*Zn,-Zn),xt.lineTo(3*Zn,Zn),xt.lineTo(Zn,Zn),xt.lineTo(Zn,3*Zn),xt.lineTo(-Zn,3*Zn),xt.lineTo(-Zn,Zn),xt.lineTo(-3*Zn,Zn),xt.closePath()}};var At=Math.sqrt(1/3),It=At*2;const Ce={draw:function(xt,On){var Zn=Math.sqrt(On/It),Ur=Zn*At;xt.moveTo(0,-Zn),xt.lineTo(Ur,0),xt.lineTo(0,Zn),xt.lineTo(-Ur,0),xt.closePath()}};var Ae=.8908130915292852,$e=Math.sin(P/10)/Math.sin(7*P/10),tt=Math.sin(T/10)*$e,ke=-Math.cos(T/10)*$e;const Oe={draw:function(xt,On){var Zn=Math.sqrt(On*Ae),Ur=tt*Zn,En=ke*Zn;xt.moveTo(0,-Zn),xt.lineTo(Ur,En);for(var ln=1;ln<5;++ln){var jn=T*ln/5,rr=Math.cos(jn),Mr=Math.sin(jn);xt.lineTo(Mr*Zn,-rr*Zn),xt.lineTo(rr*Ur-Mr*En,Mr*Ur+rr*En)}xt.closePath()}},je={draw:function(xt,On){var Zn=Math.sqrt(On),Ur=-Zn/2;xt.rect(Ur,Ur,Zn,Zn)}};var Et=Math.sqrt(3);const ct={draw:function(xt,On){var Zn=-Math.sqrt(On/(Et*3));xt.moveTo(0,Zn*2),xt.lineTo(-Et*Zn,-Zn),xt.lineTo(Et*Zn,-Zn),xt.closePath()}};var ut=-.5,Ne=Math.sqrt(3)/2,mt=1/Math.sqrt(12),bt=(mt/2+1)*3;const Gt={draw:function(xt,On){var Zn=Math.sqrt(On/bt),Ur=Zn/2,En=Zn*mt,ln=Ur,jn=Zn*mt+Zn,rr=-ln,Mr=jn;xt.moveTo(Ur,En),xt.lineTo(ln,jn),xt.lineTo(rr,Mr),xt.lineTo(ut*Ur-Ne*En,Ne*Ur+ut*En),xt.lineTo(ut*ln-Ne*jn,Ne*ln+ut*jn),xt.lineTo(ut*rr-Ne*Mr,Ne*rr+ut*Mr),xt.lineTo(ut*Ur+Ne*En,ut*En-Ne*Ur),xt.lineTo(ut*ln+Ne*jn,ut*jn-Ne*ln),xt.lineTo(ut*rr+Ne*Mr,ut*Mr-Ne*rr),xt.closePath()}};var hn=[Ye,qe,Ce,je,Oe,ct,Gt];function Yt(){var xt=d(Ye),On=d(64),Zn=null;function Ur(){var En;if(Zn||(Zn=En=p()),xt.apply(this,arguments).draw(Zn,+On.apply(this,arguments)),En)return Zn=null,En+""||null}return Ur.type=function(En){return arguments.length?(xt=typeof En=="function"?En:d(En),Ur):xt},Ur.size=function(En){return arguments.length?(On=typeof En=="function"?En:d(+En),Ur):On},Ur.context=function(En){return arguments.length?(Zn=En??null,Ur):Zn},Ur}function Bt(){}function Lt(xt,On,Zn){xt._context.bezierCurveTo((2*xt._x0+xt._x1)/3,(2*xt._y0+xt._y1)/3,(xt._x0+2*xt._x1)/3,(xt._y0+2*xt._y1)/3,(xt._x0+4*xt._x1+On)/6,(xt._y0+4*xt._y1+Zn)/6)}function zt(xt){this._context=xt}zt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Lt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(xt,On){switch(xt=+xt,On=+On,this._point){case 0:this._point=1,this._line?this._context.lineTo(xt,On):this._context.moveTo(xt,On);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Lt(this,xt,On);break}this._x0=this._x1,this._x1=xt,this._y0=this._y1,this._y1=On}};function Kt(xt){return new zt(xt)}function vt(xt){this._context=xt}vt.prototype={areaStart:Bt,areaEnd:Bt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(xt,On){switch(xt=+xt,On=+On,this._point){case 0:this._point=1,this._x2=xt,this._y2=On;break;case 1:this._point=2,this._x3=xt,this._y3=On;break;case 2:this._point=3,this._x4=xt,this._y4=On,this._context.moveTo((this._x0+4*this._x1+xt)/6,(this._y0+4*this._y1+On)/6);break;default:Lt(this,xt,On);break}this._x0=this._x1,this._x1=xt,this._y0=this._y1,this._y1=On}};function Ve(xt){return new vt(xt)}function lt(xt){this._context=xt}lt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(xt,On){switch(xt=+xt,On=+On,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Zn=(this._x0+4*this._x1+xt)/6,Ur=(this._y0+4*this._y1+On)/6;this._line?this._context.lineTo(Zn,Ur):this._context.moveTo(Zn,Ur);break;case 3:this._point=4;default:Lt(this,xt,On);break}this._x0=this._x1,this._x1=xt,this._y0=this._y1,this._y1=On}};function at(xt){return new lt(xt)}function Xt(xt,On){this._basis=new zt(xt),this._beta=On}Xt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var xt=this._x,On=this._y,Zn=xt.length-1;if(Zn>0)for(var Ur=xt[0],En=On[0],ln=xt[Zn]-Ur,jn=On[Zn]-En,rr=-1,Mr;++rr<=Zn;)Mr=rr/Zn,this._basis.point(this._beta*xt[rr]+(1-this._beta)*(Ur+Mr*ln),this._beta*On[rr]+(1-this._beta)*(En+Mr*jn));this._x=this._y=null,this._basis.lineEnd()},point:function(xt,On){this._x.push(+xt),this._y.push(+On)}};const rt=function xt(On){function Zn(Ur){return On===1?new zt(Ur):new Xt(Ur,On)}return Zn.beta=function(Ur){return xt(+Ur)},Zn}(.85);function Rt(xt,On,Zn){xt._context.bezierCurveTo(xt._x1+xt._k*(xt._x2-xt._x0),xt._y1+xt._k*(xt._y2-xt._y0),xt._x2+xt._k*(xt._x1-On),xt._y2+xt._k*(xt._y1-Zn),xt._x2,xt._y2)}function rn(xt,On){this._context=xt,this._k=(1-On)/6}rn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Rt(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(xt,On){switch(xt=+xt,On=+On,this._point){case 0:this._point=1,this._line?this._context.lineTo(xt,On):this._context.moveTo(xt,On);break;case 1:this._point=2,this._x1=xt,this._y1=On;break;case 2:this._point=3;default:Rt(this,xt,On);break}this._x0=this._x1,this._x1=this._x2,this._x2=xt,this._y0=this._y1,this._y1=this._y2,this._y2=On}};const sn=function xt(On){function Zn(Ur){return new rn(Ur,On)}return Zn.tension=function(Ur){return xt(+Ur)},Zn}(0);function Jn(xt,On){this._context=xt,this._k=(1-On)/6}Jn.prototype={areaStart:Bt,areaEnd:Bt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(xt,On){switch(xt=+xt,On=+On,this._point){case 0:this._point=1,this._x3=xt,this._y3=On;break;case 1:this._point=2,this._context.moveTo(this._x4=xt,this._y4=On);break;case 2:this._point=3,this._x5=xt,this._y5=On;break;default:Rt(this,xt,On);break}this._x0=this._x1,this._x1=this._x2,this._x2=xt,this._y0=this._y1,this._y1=this._y2,this._y2=On}};const ze=function xt(On){function Zn(Ur){return new Jn(Ur,On)}return Zn.tension=function(Ur){return xt(+Ur)},Zn}(0);function st(xt,On){this._context=xt,this._k=(1-On)/6}st.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(xt,On){switch(xt=+xt,On=+On,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Rt(this,xt,On);break}this._x0=this._x1,this._x1=this._x2,this._x2=xt,this._y0=this._y1,this._y1=this._y2,this._y2=On}};const en=function xt(On){function Zn(Ur){return new st(Ur,On)}return Zn.tension=function(Ur){return xt(+Ur)},Zn}(0);function wt(xt,On,Zn){var Ur=xt._x1,En=xt._y1,ln=xt._x2,jn=xt._y2;if(xt._l01_a>x){var rr=2*xt._l01_2a+3*xt._l01_a*xt._l12_a+xt._l12_2a,Mr=3*xt._l01_a*(xt._l01_a+xt._l12_a);Ur=(Ur*rr-xt._x0*xt._l12_2a+xt._x2*xt._l01_2a)/Mr,En=(En*rr-xt._y0*xt._l12_2a+xt._y2*xt._l01_2a)/Mr}if(xt._l23_a>x){var Ir=2*xt._l23_2a+3*xt._l23_a*xt._l12_a+xt._l12_2a,Zr=3*xt._l23_a*(xt._l23_a+xt._l12_a);ln=(ln*Ir+xt._x1*xt._l23_2a-On*xt._l12_2a)/Zr,jn=(jn*Ir+xt._y1*xt._l23_2a-Zn*xt._l12_2a)/Zr}xt._context.bezierCurveTo(Ur,En,ln,jn,xt._x2,xt._y2)}function Ke(xt,On){this._context=xt,this._alpha=On}Ke.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(xt,On){if(xt=+xt,On=+On,this._point){var Zn=this._x2-xt,Ur=this._y2-On;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Zn*Zn+Ur*Ur,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(xt,On):this._context.moveTo(xt,On);break;case 1:this._point=2;break;case 2:this._point=3;default:wt(this,xt,On);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=xt,this._y0=this._y1,this._y1=this._y2,this._y2=On}};const Ut=function xt(On){function Zn(Ur){return On?new Ke(Ur,On):new rn(Ur,0)}return Zn.alpha=function(Ur){return xt(+Ur)},Zn}(.5);function on(xt,On){this._context=xt,this._alpha=On}on.prototype={areaStart:Bt,areaEnd:Bt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(xt,On){if(xt=+xt,On=+On,this._point){var Zn=this._x2-xt,Ur=this._y2-On;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Zn*Zn+Ur*Ur,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=xt,this._y3=On;break;case 1:this._point=2,this._context.moveTo(this._x4=xt,this._y4=On);break;case 2:this._point=3,this._x5=xt,this._y5=On;break;default:wt(this,xt,On);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=xt,this._y0=this._y1,this._y1=this._y2,this._y2=On}};const Tn=function xt(On){function Zn(Ur){return On?new on(Ur,On):new Jn(Ur,0)}return Zn.alpha=function(Ur){return xt(+Ur)},Zn}(.5);function An(xt,On){this._context=xt,this._alpha=On}An.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(xt,On){if(xt=+xt,On=+On,this._point){var Zn=this._x2-xt,Ur=this._y2-On;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Zn*Zn+Ur*Ur,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wt(this,xt,On);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=xt,this._y0=this._y1,this._y1=this._y2,this._y2=On}};const Zt=function xt(On){function Zn(Ur){return On?new An(Ur,On):new st(Ur,0)}return Zn.alpha=function(Ur){return xt(+Ur)},Zn}(.5);function ot(xt){this._context=xt}ot.prototype={areaStart:Bt,areaEnd:Bt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(xt,On){xt=+xt,On=+On,this._point?this._context.lineTo(xt,On):(this._point=1,this._context.moveTo(xt,On))}};function We(xt){return new ot(xt)}function Ft(xt){return xt<0?-1:1}function it(xt,On,Zn){var Ur=xt._x1-xt._x0,En=On-xt._x1,ln=(xt._y1-xt._y0)/(Ur||En<0&&-0),jn=(Zn-xt._y1)/(En||Ur<0&&-0),rr=(ln*En+jn*Ur)/(Ur+En);return(Ft(ln)+Ft(jn))*Math.min(Math.abs(ln),Math.abs(jn),.5*Math.abs(rr))||0}function qt(xt,On){var Zn=xt._x1-xt._x0;return Zn?(3*(xt._y1-xt._y0)/Zn-On)/2:On}function vn(xt,On,Zn){var Ur=xt._x0,En=xt._y0,ln=xt._x1,jn=xt._y1,rr=(ln-Ur)/3;xt._context.bezierCurveTo(Ur+rr,En+rr*On,ln-rr,jn-rr*Zn,ln,jn)}function fn(xt){this._context=xt}fn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:vn(this,this._t0,qt(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(xt,On){var Zn=NaN;if(xt=+xt,On=+On,!(xt===this._x1&&On===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(xt,On):this._context.moveTo(xt,On);break;case 1:this._point=2;break;case 2:this._point=3,vn(this,qt(this,Zn=it(this,xt,On)),Zn);break;default:vn(this,this._t0,Zn=it(this,xt,On));break}this._x0=this._x1,this._x1=xt,this._y0=this._y1,this._y1=On,this._t0=Zn}}};function Tt(xt){this._context=new dn(xt)}(Tt.prototype=Object.create(fn.prototype)).point=function(xt,On){fn.prototype.point.call(this,On,xt)};function dn(xt){this._context=xt}dn.prototype={moveTo:function(xt,On){this._context.moveTo(On,xt)},closePath:function(){this._context.closePath()},lineTo:function(xt,On){this._context.lineTo(On,xt)},bezierCurveTo:function(xt,On,Zn,Ur,En,ln){this._context.bezierCurveTo(On,xt,Ur,Zn,ln,En)}};function mn(xt){return new fn(xt)}function Kn(xt){return new Tt(xt)}function Dn(xt){this._context=xt}Dn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var xt=this._x,On=this._y,Zn=xt.length;if(Zn)if(this._line?this._context.lineTo(xt[0],On[0]):this._context.moveTo(xt[0],On[0]),Zn===2)this._context.lineTo(xt[1],On[1]);else for(var Ur=Vn(xt),En=Vn(On),ln=0,jn=1;jn<Zn;++ln,++jn)this._context.bezierCurveTo(Ur[0][ln],En[0][ln],Ur[1][ln],En[1][ln],xt[jn],On[jn]);(this._line||this._line!==0&&Zn===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(xt,On){this._x.push(+xt),this._y.push(+On)}};function Vn(xt){var On,Zn=xt.length-1,Ur,En=new Array(Zn),ln=new Array(Zn),jn=new Array(Zn);for(En[0]=0,ln[0]=2,jn[0]=xt[0]+2*xt[1],On=1;On<Zn-1;++On)En[On]=1,ln[On]=4,jn[On]=4*xt[On]+2*xt[On+1];for(En[Zn-1]=2,ln[Zn-1]=7,jn[Zn-1]=8*xt[Zn-1]+xt[Zn],On=1;On<Zn;++On)Ur=En[On]/ln[On-1],ln[On]-=Ur,jn[On]-=Ur*jn[On-1];for(En[Zn-1]=jn[Zn-1]/ln[Zn-1],On=Zn-2;On>=0;--On)En[On]=(jn[On]-En[On+1])/ln[On];for(ln[Zn-1]=(xt[Zn]+En[Zn-1])/2,On=0;On<Zn-1;++On)ln[On]=2*xt[On+1]-En[On+1];return[En,ln]}function or(xt){return new Dn(xt)}function Qr(xt,On){this._context=xt,this._t=On}Qr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(xt,On){switch(xt=+xt,On=+On,this._point){case 0:this._point=1,this._line?this._context.lineTo(xt,On):this._context.moveTo(xt,On);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,On),this._context.lineTo(xt,On);else{var Zn=this._x*(1-this._t)+xt*this._t;this._context.lineTo(Zn,this._y),this._context.lineTo(Zn,On)}break}}this._x=xt,this._y=On}};function ni(xt){return new Qr(xt,.5)}function yr(xt){return new Qr(xt,0)}function si(xt){return new Qr(xt,1)}function Yr(xt,On){if((jn=xt.length)>1)for(var Zn=1,Ur,En,ln=xt[On[0]],jn,rr=ln.length;Zn<jn;++Zn)for(En=ln,ln=xt[On[Zn]],Ur=0;Ur<rr;++Ur)ln[Ur][1]+=ln[Ur][0]=isNaN(En[Ur][1])?En[Ur][0]:En[Ur][1]}function Ci(xt){for(var On=xt.length,Zn=new Array(On);--On>=0;)Zn[On]=On;return Zn}function Ni(xt,On){return xt[On]}function fa(){var xt=d([]),On=Ci,Zn=Yr,Ur=Ni;function En(ln){var jn=xt.apply(this,arguments),rr,Mr=ln.length,Ir=jn.length,Zr=new Array(Ir),lr;for(rr=0;rr<Ir;++rr){for(var Jr=jn[rr],pi=Zr[rr]=new Array(Mr),Ri=0,Ki;Ri<Mr;++Ri)pi[Ri]=Ki=[0,+Ur(ln[Ri],Jr,Ri,ln)],Ki.data=ln[Ri];pi.key=Jr}for(rr=0,lr=On(Zr);rr<Ir;++rr)Zr[lr[rr]].index=rr;return Zn(Zr,lr),Zr}return En.keys=function(ln){return arguments.length?(xt=typeof ln=="function"?ln:d(_e.call(ln)),En):xt},En.value=function(ln){return arguments.length?(Ur=typeof ln=="function"?ln:d(+ln),En):Ur},En.order=function(ln){return arguments.length?(On=ln==null?Ci:typeof ln=="function"?ln:d(_e.call(ln)),En):On},En.offset=function(ln){return arguments.length?(Zn=ln??Yr,En):Zn},En}function ha(xt,On){if((Ur=xt.length)>0){for(var Zn,Ur,En=0,ln=xt[0].length,jn;En<ln;++En){for(jn=Zn=0;Zn<Ur;++Zn)jn+=xt[Zn][En][1]||0;if(jn)for(Zn=0;Zn<Ur;++Zn)xt[Zn][En][1]/=jn}Yr(xt,On)}}function Ca(xt,On){if((Mr=xt.length)>0)for(var Zn,Ur=0,En,ln,jn,rr,Mr,Ir=xt[On[0]].length;Ur<Ir;++Ur)for(jn=rr=0,Zn=0;Zn<Mr;++Zn)(ln=(En=xt[On[Zn]][Ur])[1]-En[0])>0?(En[0]=jn,En[1]=jn+=ln):ln<0?(En[1]=rr,En[0]=rr+=ln):(En[0]=0,En[1]=ln)}function li(xt,On){if((En=xt.length)>0){for(var Zn=0,Ur=xt[On[0]],En,ln=Ur.length;Zn<ln;++Zn){for(var jn=0,rr=0;jn<En;++jn)rr+=xt[jn][Zn][1]||0;Ur[Zn][1]+=Ur[Zn][0]=-rr/2}Yr(xt,On)}}function la(xt,On){if(!(!((jn=xt.length)>0)||!((ln=(En=xt[On[0]]).length)>0))){for(var Zn=0,Ur=1,En,ln,jn;Ur<ln;++Ur){for(var rr=0,Mr=0,Ir=0;rr<jn;++rr){for(var Zr=xt[On[rr]],lr=Zr[Ur][1]||0,Jr=Zr[Ur-1][1]||0,pi=(lr-Jr)/2,Ri=0;Ri<rr;++Ri){var Ki=xt[On[Ri]],ia=Ki[Ur][1]||0,Da=Ki[Ur-1][1]||0;pi+=ia-Da}Mr+=lr,Ir+=pi*lr}En[Ur-1][1]+=En[Ur-1][0]=Zn,Mr&&(Zn-=Ir/Mr)}En[Ur-1][1]+=En[Ur-1][0]=Zn,Yr(xt,On)}}function Oa(xt){var On=xt.map(wa);return Ci(xt).sort(function(Zn,Ur){return On[Zn]-On[Ur]})}function wa(xt){for(var On=-1,Zn=0,Ur=xt.length,En,ln=-1/0;++On<Ur;)(En=+xt[On][1])>ln&&(ln=En,Zn=On);return Zn}function vo(xt){var On=xt.map(Qn);return Ci(xt).sort(function(Zn,Ur){return On[Zn]-On[Ur]})}function Qn(xt){for(var On=0,Zn=-1,Ur=xt.length,En;++Zn<Ur;)(En=+xt[Zn][1])&&(On+=En);return On}function _r(xt){return vo(xt).reverse()}function $r(xt){var On=xt.length,Zn,Ur,En=xt.map(Qn),ln=Oa(xt),jn=0,rr=0,Mr=[],Ir=[];for(Zn=0;Zn<On;++Zn)Ur=ln[Zn],jn<rr?(jn+=En[Ur],Mr.push(Ur)):(rr+=En[Ur],Ir.push(Ur));return Ir.reverse().concat(Mr)}function Ti(xt){return Ci(xt).reverse()}},56702:(C,c,t)=>{"use strict";t.d(c,{Z:()=>Se});var i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},s=function(me,_e,we){var Ge,ht=i[me];return typeof ht=="string"?Ge=ht:_e===1?Ge=ht.one:Ge=ht.other.replace("{{count}}",_e.toString()),we!=null&&we.addSuffix?we.comparison&&we.comparison>0?"in "+Ge:Ge+" ago":Ge};const u=s;function v(he){return function(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_e=me.width?String(me.width):he.defaultWidth,we=he.formats[_e]||he.formats[he.defaultWidth];return we}}var l={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},h={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},p={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},d={date:v({formats:l,defaultWidth:"full"}),time:v({formats:h,defaultWidth:"full"}),dateTime:v({formats:p,defaultWidth:"full"})};const f=d;var g={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},y=function(me,_e,we,Ge){return g[me]};const b=y;function E(he){return function(me,_e){var we=_e!=null&&_e.context?String(_e.context):"standalone",Ge;if(we==="formatting"&&he.formattingValues){var ht=he.defaultFormattingWidth||he.defaultWidth,nt=_e!=null&&_e.width?String(_e.width):ht;Ge=he.formattingValues[nt]||he.formattingValues[ht]}else{var Re=he.defaultWidth,ue=_e!=null&&_e.width?String(_e.width):he.defaultWidth;Ge=he.values[ue]||he.values[Re]}var ae=he.argumentCallback?he.argumentCallback(me):me;return Ge[ae]}}var S={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},w={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},x={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},P={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},R={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},T={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},A=function(me,_e){var we=Number(me),Ge=we%100;if(Ge>20||Ge<10)switch(Ge%10){case 1:return we+"st";case 2:return we+"nd";case 3:return we+"rd"}return we+"th"},I={ordinalNumber:A,era:E({values:S,defaultWidth:"wide"}),quarter:E({values:w,defaultWidth:"wide",argumentCallback:function(me){return me-1}}),month:E({values:x,defaultWidth:"wide"}),day:E({values:P,defaultWidth:"wide"}),dayPeriod:E({values:R,defaultWidth:"wide",formattingValues:T,defaultFormattingWidth:"wide"})};const N=I;function K(he){return function(me){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we=_e.width,Ge=we&&he.matchPatterns[we]||he.matchPatterns[he.defaultMatchWidth],ht=me.match(Ge);if(!ht)return null;var nt=ht[0],Re=we&&he.parsePatterns[we]||he.parsePatterns[he.defaultParseWidth],ue=Array.isArray(Re)?W(Re,function(Me){return Me.test(nt)}):_(Re,function(Me){return Me.test(nt)}),ae;ae=he.valueCallback?he.valueCallback(ue):ue,ae=_e.valueCallback?_e.valueCallback(ae):ae;var ve=me.slice(nt.length);return{value:ae,rest:ve}}}function _(he,me){for(var _e in he)if(he.hasOwnProperty(_e)&&me(he[_e]))return _e}function W(he,me){for(var _e=0;_e<he.length;_e++)if(me(he[_e]))return _e}function j(he){return function(me){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we=me.match(he.matchPattern);if(!we)return null;var Ge=we[0],ht=me.match(he.parsePattern);if(!ht)return null;var nt=he.valueCallback?he.valueCallback(ht[0]):ht[0];nt=_e.valueCallback?_e.valueCallback(nt):nt;var Re=me.slice(Ge.length);return{value:nt,rest:Re}}}var re=/^(\d+)(th|st|nd|rd)?/i,X=/\d+/i,Z={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},J={any:[/^b/i,/^(a|c)/i]},q={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},L={any:[/1/i,/2/i,/3/i,/4/i]},$={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},k={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},F={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},V={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},pe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ce={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},G={ordinalNumber:j({matchPattern:re,parsePattern:X,valueCallback:function(me){return parseInt(me,10)}}),era:K({matchPatterns:Z,defaultMatchWidth:"wide",parsePatterns:J,defaultParseWidth:"any"}),quarter:K({matchPatterns:q,defaultMatchWidth:"wide",parsePatterns:L,defaultParseWidth:"any",valueCallback:function(me){return me+1}}),month:K({matchPatterns:$,defaultMatchWidth:"wide",parsePatterns:k,defaultParseWidth:"any"}),day:K({matchPatterns:F,defaultMatchWidth:"wide",parsePatterns:V,defaultParseWidth:"any"}),dayPeriod:K({matchPatterns:pe,defaultMatchWidth:"any",parsePatterns:ce,defaultParseWidth:"any"})},ie={code:"en-US",formatDistance:u,formatLong:f,formatRelative:b,localize:N,match:G,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Se=ie},35097:(C,c,t)=>{"use strict";t.d(c,{j:()=>s});var i={};function s(){return i}function u(v){i=v}},19040:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s){var u=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()));return u.setUTCFullYear(s.getFullYear()),s.getTime()-u.getTime()}},55434:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s,u){if(u.length<s)throw new TypeError(s+" argument"+(s>1?"s":"")+" required, but only "+u.length+" present")}},69754:(C,c,t)=>{"use strict";t.d(c,{u:()=>u});var i={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(l){return l<0?Math.ceil(l):Math.floor(l)}},s="trunc";function u(v){return v?i[v]:i[s]}},48335:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s){if(s===null||s===!0||s===!1)return NaN;var u=Number(s);return isNaN(u)?u:u<0?Math.ceil(u):Math.floor(u)}},71213:(C,c,t)=>{"use strict";t.d(c,{Z:()=>p});var i=t(25713),s=t(84925),u=t(48335),v=t(2629),l=t(55434);function h(d,f){(0,l.Z)(2,arguments);var g=(0,v.Z)(d),y=(0,u.Z)(f);if(isNaN(y))return new Date(NaN);if(!y)return g;var b=g.getDate(),E=new Date(g.getTime());E.setMonth(g.getMonth()+y+1,0);var S=E.getDate();return b>=S?E:(g.setFullYear(E.getFullYear(),E.getMonth(),b),g)}function p(d,f){if((0,l.Z)(2,arguments),!f||(0,i.Z)(f)!=="object")return new Date(NaN);var g=f.years?(0,u.Z)(f.years):0,y=f.months?(0,u.Z)(f.months):0,b=f.weeks?(0,u.Z)(f.weeks):0,E=f.days?(0,u.Z)(f.days):0,S=f.hours?(0,u.Z)(f.hours):0,w=f.minutes?(0,u.Z)(f.minutes):0,x=f.seconds?(0,u.Z)(f.seconds):0,P=(0,v.Z)(d),R=y||g?h(P,y+g*12):P,T=E||b?(0,s.Z)(R,E+b*7):R,A=w+S*60,I=x+A*60,N=I*1e3,K=new Date(T.getTime()+N);return K}},84925:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(48335),s=t(2629),u=t(55434);function v(l,h){(0,u.Z)(2,arguments);var p=(0,s.Z)(l),d=(0,i.Z)(h);return isNaN(d)?new Date(NaN):(d&&p.setDate(p.getDate()+d),p)}},27008:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(2629),s=t(55434);function u(v,l){(0,s.Z)(2,arguments);var h=(0,i.Z)(v),p=(0,i.Z)(l),d=h.getTime()-p.getTime();return d<0?-1:d>0?1:d}},78651:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(2629),s=t(55434);function u(v,l){return(0,s.Z)(2,arguments),(0,i.Z)(v).getTime()-(0,i.Z)(l).getTime()}},33143:(C,c,t)=>{"use strict";t.d(c,{Z:()=>d});var i=t(2629),s=t(55434);function u(f,g){(0,s.Z)(2,arguments);var y=(0,i.Z)(f),b=(0,i.Z)(g),E=y.getFullYear()-b.getFullYear(),S=y.getMonth()-b.getMonth();return E*12+S}var v=t(27008);function l(f){(0,s.Z)(1,arguments);var g=(0,i.Z)(f);return g.setHours(23,59,59,999),g}function h(f){(0,s.Z)(1,arguments);var g=(0,i.Z)(f),y=g.getMonth();return g.setFullYear(g.getFullYear(),y+1,0),g.setHours(23,59,59,999),g}function p(f){(0,s.Z)(1,arguments);var g=(0,i.Z)(f);return l(g).getTime()===h(g).getTime()}function d(f,g){(0,s.Z)(2,arguments);var y=(0,i.Z)(f),b=(0,i.Z)(g),E=(0,v.Z)(y,b),S=Math.abs(u(y,b)),w;if(S<1)w=0;else{y.getMonth()===1&&y.getDate()>27&&y.setDate(30),y.setMonth(y.getMonth()-E*S);var x=(0,v.Z)(y,b)===-E;p((0,i.Z)(f))&&S===1&&(0,v.Z)(f,b)===1&&(x=!1),w=E*(S-Number(x))}return w===0?0:w}},34310:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(78651),s=t(55434),u=t(69754);function v(l,h,p){(0,s.Z)(2,arguments);var d=(0,i.Z)(l,h)/1e3;return(0,u.u)(p?.roundingMethod)(d)}},81205:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(35097),s=t(56702),u=["years","months","weeks","days","hours","minutes","seconds"];function v(l,h){var p,d,f,g,y;if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var b=(0,i.j)(),E=(p=(d=h?.locale)!==null&&d!==void 0?d:b.locale)!==null&&p!==void 0?p:s.Z,S=(f=h?.format)!==null&&f!==void 0?f:u,w=(g=h?.zero)!==null&&g!==void 0?g:!1,x=(y=h?.delimiter)!==null&&y!==void 0?y:" ";if(!E.formatDistance)return"";var P=S.reduce(function(R,T){var A="x".concat(T.replace(/(^.)/,function(N){return N.toUpperCase()})),I=l[T];return typeof I=="number"&&(w||l[T])?R.concat(E.formatDistance(A,I)):R},[]).join(x);return P}},72124:(C,c,t)=>{"use strict";t.d(c,{Z:()=>pe});var i=t(27008),s=t(71213),u=t(2629),v=t(19040),l=t(55434);function h(ce){(0,l.Z)(1,arguments);var G=(0,u.Z)(ce);return G.setHours(0,0,0,0),G}var p=864e5;function d(ce,G){(0,l.Z)(2,arguments);var te=h(ce),ie=h(G),fe=te.getTime()-(0,v.Z)(te),Se=ie.getTime()-(0,v.Z)(ie);return Math.round((fe-Se)/p)}function f(ce,G){var te=ce.getFullYear()-G.getFullYear()||ce.getMonth()-G.getMonth()||ce.getDate()-G.getDate()||ce.getHours()-G.getHours()||ce.getMinutes()-G.getMinutes()||ce.getSeconds()-G.getSeconds()||ce.getMilliseconds()-G.getMilliseconds();return te<0?-1:te>0?1:te}function g(ce,G){(0,l.Z)(2,arguments);var te=(0,u.Z)(ce),ie=(0,u.Z)(G),fe=f(te,ie),Se=Math.abs(d(te,ie));te.setDate(te.getDate()-fe*Se);var he=+(f(te,ie)===-fe),me=fe*(Se-he);return me===0?0:me}var y=7,b=365.2425,E=Math.pow(10,8)*24*60*60*1e3,S=6e4,w=36e5,x=1e3,P=-E,R=60,T=3,A=12,I=4,N=3600,K=60,_=N*24,W=_*7,j=_*b,re=j/12,X=re*3,Z=t(78651),J=t(69754);function q(ce,G,te){(0,l.Z)(2,arguments);var ie=(0,Z.Z)(ce,G)/w;return(0,J.u)(te?.roundingMethod)(ie)}function L(ce,G,te){(0,l.Z)(2,arguments);var ie=(0,Z.Z)(ce,G)/S;return(0,J.u)(te?.roundingMethod)(ie)}var $=t(33143),k=t(34310);function F(ce,G){(0,l.Z)(2,arguments);var te=(0,u.Z)(ce),ie=(0,u.Z)(G);return te.getFullYear()-ie.getFullYear()}function V(ce,G){(0,l.Z)(2,arguments);var te=(0,u.Z)(ce),ie=(0,u.Z)(G),fe=(0,i.Z)(te,ie),Se=Math.abs(F(te,ie));te.setFullYear(1584),ie.setFullYear(1584);var he=(0,i.Z)(te,ie)===-fe,me=fe*(Se-Number(he));return me===0?0:me}function pe(ce){(0,l.Z)(1,arguments);var G=(0,u.Z)(ce.start),te=(0,u.Z)(ce.end);if(isNaN(G.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(te.getTime()))throw new RangeError("End Date is invalid");var ie={};ie.years=Math.abs(V(te,G));var fe=(0,i.Z)(te,G),Se=(0,s.Z)(G,{years:fe*ie.years});ie.months=Math.abs((0,$.Z)(te,Se));var he=(0,s.Z)(Se,{months:fe*ie.months});ie.days=Math.abs(g(te,he));var me=(0,s.Z)(he,{days:fe*ie.days});ie.hours=Math.abs(q(te,me));var _e=(0,s.Z)(me,{hours:fe*ie.hours});ie.minutes=Math.abs(L(te,_e));var we=(0,s.Z)(_e,{minutes:fe*ie.minutes});return ie.seconds=Math.abs((0,k.Z)(te,we)),ie}},25430:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(2629),s=t(55434);function u(v,l){(0,s.Z)(2,arguments);var h=(0,i.Z)(v),p=(0,i.Z)(l);return h.getTime()>p.getTime()}},2629:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(25713),s=t(55434);function u(v){(0,s.Z)(1,arguments);var l=Object.prototype.toString.call(v);return v instanceof Date||(0,i.Z)(v)==="object"&&l==="[object Date]"?new Date(v.getTime()):typeof v=="number"||l==="[object Number]"?new Date(v):((typeof v=="string"||l==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}},22087:C=>{function c(t,i,s){var u,v,l,h,p;i==null&&(i=100);function d(){var g=Date.now()-h;g<i&&g>=0?u=setTimeout(d,i-g):(u=null,s||(p=t.apply(l,v),l=v=null))}var f=function(){l=this,v=arguments,h=Date.now();var g=s&&!u;return u||(u=setTimeout(d,i)),g&&(p=t.apply(l,v),l=v=null),p};return f.clear=function(){u&&(clearTimeout(u),u=null)},f.flush=function(){u&&(p=t.apply(l,v),l=v=null,clearTimeout(u),u=null)},f}c.debounce=c,C.exports=c},56027:C=>{"use strict";C.exports=function(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=void 0,h=void 0,p=void 0,d=[];return function(){var y=c(u),b=new Date().getTime(),E=!l||b-l>y;l=b;for(var S=arguments.length,w=Array(S),x=0;x<S;x++)w[x]=arguments[x];if(E&&v.leading)return v.accumulate?Promise.resolve(s.call(this,[w])).then(function(R){return R[0]}):Promise.resolve(s.call.apply(s,[this].concat(w)));if(h?clearTimeout(p):h=t(),d.push(w),p=setTimeout(f.bind(this),y),v.accumulate){var P=d.length-1;return h.promise.then(function(R){return R[P]})}return h.promise};function f(){var g=h;clearTimeout(p),Promise.resolve(v.accumulate?s.call(this,d):s.apply(this,d[d.length-1])).then(g.resolve,g.reject),d=[],h=null}};function c(i){return typeof i=="function"?i():i}function t(){var i={};return i.promise=new Promise(function(s,u){i.resolve=s,i.reject=u}),i}},59397:function(C,c){/*! diff v4.0.1 Software License Agreement (BSD License) Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com> All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Kevin Decker nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. @license */(function(t,i){i(c)})(this,function(t){"use strict";function i(){}i.prototype={diff:function(Ae,$e){var tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ke=tt.callback;typeof tt=="function"&&(ke=tt,tt={}),this.options=tt;var Oe=this;function je(Yt){return ke?(setTimeout(function(){ke(void 0,Yt)},0),!0):Yt}Ae=this.castInput(Ae),$e=this.castInput($e),Ae=this.removeEmpty(this.tokenize(Ae)),$e=this.removeEmpty(this.tokenize($e));var Et=$e.length,ct=Ae.length,ut=1,Ne=Et+ct,mt=[{newPos:-1,components:[]}],bt=this.extractCommon(mt[0],$e,Ae,0);if(mt[0].newPos+1>=Et&&bt+1>=ct)return je([{value:this.join($e),count:$e.length}]);function Gt(){for(var Yt=-1*ut;Yt<=ut;Yt+=2){var Bt=void 0,Lt=mt[Yt-1],zt=mt[Yt+1],Kt=(zt?zt.newPos:0)-Yt;Lt&&(mt[Yt-1]=void 0);var vt=Lt&&Lt.newPos+1<Et,Ve=zt&&0<=Kt&&Kt<ct;if(!vt&&!Ve){mt[Yt]=void 0;continue}if(!vt||Ve&&Lt.newPos<zt.newPos?(Bt=u(zt),Oe.pushComponent(Bt.components,void 0,!0)):(Bt=Lt,Bt.newPos++,Oe.pushComponent(Bt.components,!0,void 0)),Kt=Oe.extractCommon(Bt,$e,Ae,Yt),Bt.newPos+1>=Et&&Kt+1>=ct)return je(s(Oe,Bt.components,$e,Ae,Oe.useLongestToken));mt[Yt]=Bt}ut++}if(ke)(function Yt(){setTimeout(function(){if(ut>Ne)return ke();Gt()||Yt()},0)})();else for(;ut<=Ne;){var hn=Gt();if(hn)return hn}},pushComponent:function(Ae,$e,tt){var ke=Ae[Ae.length-1];ke&&ke.added===$e&&ke.removed===tt?Ae[Ae.length-1]={count:ke.count+1,added:$e,removed:tt}:Ae.push({count:1,added:$e,removed:tt})},extractCommon:function(Ae,$e,tt,ke){for(var Oe=$e.length,je=tt.length,Et=Ae.newPos,ct=Et-ke,ut=0;Et+1<Oe&&ct+1<je&&this.equals($e[Et+1],tt[ct+1]);)Et++,ct++,ut++;return ut&&Ae.components.push({count:ut}),Ae.newPos=Et,ct},equals:function(Ae,$e){return this.options.comparator?this.options.comparator(Ae,$e):Ae===$e||this.options.ignoreCase&&Ae.toLowerCase()===$e.toLowerCase()},removeEmpty:function(Ae){for(var $e=[],tt=0;tt<Ae.length;tt++)Ae[tt]&&$e.push(Ae[tt]);return $e},castInput:function(Ae){return Ae},tokenize:function(Ae){return Ae.split("")},join:function(Ae){return Ae.join("")}};function s(Ce,Ae,$e,tt,ke){for(var Oe=0,je=Ae.length,Et=0,ct=0;Oe<je;Oe++){var ut=Ae[Oe];if(ut.removed){if(ut.value=Ce.join(tt.slice(ct,ct+ut.count)),ct+=ut.count,Oe&&Ae[Oe-1].added){var mt=Ae[Oe-1];Ae[Oe-1]=Ae[Oe],Ae[Oe]=mt}}else{if(!ut.added&&ke){var Ne=$e.slice(Et,Et+ut.count);Ne=Ne.map(function(Gt,hn){var Yt=tt[ct+hn];return Yt.length>Gt.length?Yt:Gt}),ut.value=Ce.join(Ne)}else ut.value=Ce.join($e.slice(Et,Et+ut.count));Et+=ut.count,ut.added||(ct+=ut.count)}}var bt=Ae[je-1];return je>1&&typeof bt.value=="string"&&(bt.added||bt.removed)&&Ce.equals("",bt.value)&&(Ae[je-2].value+=bt.value,Ae.pop()),Ae}function u(Ce){return{newPos:Ce.newPos,components:Ce.components.slice(0)}}var v=new i;function l(Ce,Ae,$e){return v.diff(Ce,Ae,$e)}function h(Ce,Ae){if(typeof Ce=="function")Ae.callback=Ce;else if(Ce)for(var $e in Ce)Ce.hasOwnProperty($e)&&(Ae[$e]=Ce[$e]);return Ae}var p=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,d=/\S/,f=new i;f.equals=function(Ce,Ae){return this.options.ignoreCase&&(Ce=Ce.toLowerCase(),Ae=Ae.toLowerCase()),Ce===Ae||this.options.ignoreWhitespace&&!d.test(Ce)&&!d.test(Ae)},f.tokenize=function(Ce){for(var Ae=Ce.split(/(\s+|[()[\]{}'"]|\b)/),$e=0;$e<Ae.length-1;$e++)!Ae[$e+1]&&Ae[$e+2]&&p.test(Ae[$e])&&p.test(Ae[$e+2])&&(Ae[$e]+=Ae[$e+2],Ae.splice($e+1,2),$e--);return Ae};function g(Ce,Ae,$e){return $e=h($e,{ignoreWhitespace:!0}),f.diff(Ce,Ae,$e)}function y(Ce,Ae,$e){return f.diff(Ce,Ae,$e)}var b=new i;b.tokenize=function(Ce){var Ae=[],$e=Ce.split(/(\n|\r\n)/);$e[$e.length-1]||$e.pop();for(var tt=0;tt<$e.length;tt++){var ke=$e[tt];tt%2&&!this.options.newlineIsToken?Ae[Ae.length-1]+=ke:(this.options.ignoreWhitespace&&(ke=ke.trim()),Ae.push(ke))}return Ae};function E(Ce,Ae,$e){return b.diff(Ce,Ae,$e)}function S(Ce,Ae,$e){var tt=h($e,{ignoreWhitespace:!0});return b.diff(Ce,Ae,tt)}var w=new i;w.tokenize=function(Ce){return Ce.split(/(\S.+?[.!?])(?=\s+|$)/)};function x(Ce,Ae,$e){return w.diff(Ce,Ae,$e)}var P=new i;P.tokenize=function(Ce){return Ce.split(/([{}:;,]|\s+)/)};function R(Ce,Ae,$e){return P.diff(Ce,Ae,$e)}function T(Ce){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(Ae){return typeof Ae}:T=function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},T(Ce)}function A(Ce){return I(Ce)||N(Ce)||K()}function I(Ce){if(Array.isArray(Ce)){for(var Ae=0,$e=new Array(Ce.length);Ae<Ce.length;Ae++)$e[Ae]=Ce[Ae];return $e}}function N(Ce){if(Symbol.iterator in Object(Ce)||Object.prototype.toString.call(Ce)==="[object Arguments]")return Array.from(Ce)}function K(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var _=Object.prototype.toString,W=new i;W.useLongestToken=!0,W.tokenize=b.tokenize,W.castInput=function(Ce){var Ae=this.options,$e=Ae.undefinedReplacement,tt=Ae.stringifyReplacer,ke=tt===void 0?function(Oe,je){return typeof je>"u"?$e:je}:tt;return typeof Ce=="string"?Ce:JSON.stringify(re(Ce,null,null,ke),ke," ")},W.equals=function(Ce,Ae){return i.prototype.equals.call(W,Ce.replace(/,([\r\n])/g,"$1"),Ae.replace(/,([\r\n])/g,"$1"))};function j(Ce,Ae,$e){return W.diff(Ce,Ae,$e)}function re(Ce,Ae,$e,tt,ke){Ae=Ae||[],$e=$e||[],tt&&(Ce=tt(ke,Ce));var Oe;for(Oe=0;Oe<Ae.length;Oe+=1)if(Ae[Oe]===Ce)return $e[Oe];var je;if(_.call(Ce)==="[object Array]"){for(Ae.push(Ce),je=new Array(Ce.length),$e.push(je),Oe=0;Oe<Ce.length;Oe+=1)je[Oe]=re(Ce[Oe],Ae,$e,tt,ke);return Ae.pop(),$e.pop(),je}if(Ce&&Ce.toJSON&&(Ce=Ce.toJSON()),T(Ce)==="object"&&Ce!==null){Ae.push(Ce),je={},$e.push(je);var Et=[],ct;for(ct in Ce)Ce.hasOwnProperty(ct)&&Et.push(ct);for(Et.sort(),Oe=0;Oe<Et.length;Oe+=1)ct=Et[Oe],je[ct]=re(Ce[ct],Ae,$e,tt,ct);Ae.pop(),$e.pop()}else je=Ce;return je}var X=new i;X.tokenize=function(Ce){return Ce.slice()},X.join=X.removeEmpty=function(Ce){return Ce};function Z(Ce,Ae,$e){return X.diff(Ce,Ae,$e)}function J(Ce){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$e=Ce.split(/\r\n|[\n\v\f\r\x85]/),tt=Ce.match(/\r\n|[\n\v\f\r\x85]/g)||[],ke=[],Oe=0;function je(){var ut={};for(ke.push(ut);Oe<$e.length;){var Ne=$e[Oe];if(/^(\-\-\-|\+\+\+|@@)\s/.test(Ne))break;var mt=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(Ne);mt&&(ut.index=mt[1]),Oe++}for(Et(ut),Et(ut),ut.hunks=[];Oe<$e.length;){var bt=$e[Oe];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(bt))break;if(/^@@/.test(bt))ut.hunks.push(ct());else{if(bt&&Ae.strict)throw new Error("Unknown line "+(Oe+1)+" "+JSON.stringify(bt));Oe++}}}function Et(ut){var Ne=/^(---|\+\+\+)\s+(.*)$/.exec($e[Oe]);if(Ne){var mt=Ne[1]==="---"?"old":"new",bt=Ne[2].split(" ",2),Gt=bt[0].replace(/\\\\/g,"\\");/^".*"$/.test(Gt)&&(Gt=Gt.substr(1,Gt.length-2)),ut[mt+"FileName"]=Gt,ut[mt+"Header"]=(bt[1]||"").trim(),Oe++}}function ct(){for(var ut=Oe,Ne=$e[Oe++],mt=Ne.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),bt={oldStart:+mt[1],oldLines:+mt[2]||1,newStart:+mt[3],newLines:+mt[4]||1,lines:[],linedelimiters:[]},Gt=0,hn=0;Oe<$e.length&&!($e[Oe].indexOf("--- ")===0&&Oe+2<$e.length&&$e[Oe+1].indexOf("+++ ")===0&&$e[Oe+2].indexOf("@@")===0);Oe++){var Yt=$e[Oe].length==0&&Oe!=$e.length-1?" ":$e[Oe][0];if(Yt==="+"||Yt==="-"||Yt===" "||Yt==="\\")bt.lines.push($e[Oe]),bt.linedelimiters.push(tt[Oe]||` `),Yt==="+"?Gt++:Yt==="-"?hn++:Yt===" "&&(Gt++,hn++);else break}if(!Gt&&bt.newLines===1&&(bt.newLines=0),!hn&&bt.oldLines===1&&(bt.oldLines=0),Ae.strict){if(Gt!==bt.newLines)throw new Error("Added line count did not match for hunk at line "+(ut+1));if(hn!==bt.oldLines)throw new Error("Removed line count did not match for hunk at line "+(ut+1))}return bt}for(;Oe<$e.length;)je();return ke}function q(Ce,Ae,$e){var tt=!0,ke=!1,Oe=!1,je=1;return function Et(){if(tt&&!Oe){if(ke?je++:tt=!1,Ce+je<=$e)return je;Oe=!0}if(!ke)return Oe||(tt=!0),Ae<=Ce-je?-je++:(ke=!0,Et())}}function L(Ce,Ae){var $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof Ae=="string"&&(Ae=J(Ae)),Array.isArray(Ae)){if(Ae.length>1)throw new Error("applyPatch only works with a single input.");Ae=Ae[0]}var tt=Ce.split(/\r\n|[\n\v\f\r\x85]/),ke=Ce.match(/\r\n|[\n\v\f\r\x85]/g)||[],Oe=Ae.hunks,je=$e.compareLine||function(st,en,wt,Ke){return en===Ke},Et=0,ct=$e.fuzzFactor||0,ut=0,Ne=0,mt,bt;function Gt(st,en){for(var wt=0;wt<st.lines.length;wt++){var Ke=st.lines[wt],Ut=Ke.length>0?Ke[0]:" ",on=Ke.length>0?Ke.substr(1):Ke;if(Ut===" "||Ut==="-"){if(!je(en+1,tt[en],Ut,on)&&(Et++,Et>ct))return!1;en++}}return!0}for(var hn=0;hn<Oe.length;hn++){for(var Yt=Oe[hn],Bt=tt.length-Yt.oldLines,Lt=0,zt=Ne+Yt.oldStart-1,Kt=q(zt,ut,Bt);Lt!==void 0;Lt=Kt())if(Gt(Yt,zt+Lt)){Yt.offset=Ne+=Lt;break}if(Lt===void 0)return!1;ut=Yt.offset+Yt.oldStart+Yt.oldLines}for(var vt=0,Ve=0;Ve<Oe.length;Ve++){var lt=Oe[Ve],at=lt.oldStart+lt.offset+vt-1;vt+=lt.newLines-lt.oldLines,at<0&&(at=0);for(var Xt=0;Xt<lt.lines.length;Xt++){var rt=lt.lines[Xt],Rt=rt.length>0?rt[0]:" ",rn=rt.length>0?rt.substr(1):rt,sn=lt.linedelimiters[Xt];if(Rt===" ")at++;else if(Rt==="-")tt.splice(at,1),ke.splice(at,1);else if(Rt==="+")tt.splice(at,0,rn),ke.splice(at,0,sn),at++;else if(Rt==="\\"){var Jn=lt.lines[Xt-1]?lt.lines[Xt-1][0]:null;Jn==="+"?mt=!0:Jn==="-"&&(bt=!0)}}}if(mt)for(;!tt[tt.length-1];)tt.pop(),ke.pop();else bt&&(tt.push(""),ke.push(` `));for(var ze=0;ze<tt.length-1;ze++)tt[ze]=tt[ze]+ke[ze];return tt.join("")}function $(Ce,Ae){typeof Ce=="string"&&(Ce=J(Ce));var $e=0;function tt(){var ke=Ce[$e++];if(!ke)return Ae.complete();Ae.loadFile(ke,function(Oe,je){if(Oe)return Ae.complete(Oe);var Et=L(je,ke,Ae);Ae.patched(ke,Et,function(ct){if(ct)return Ae.complete(ct);tt()})})}tt()}function k(Ce,Ae,$e,tt,ke,Oe,je){je||(je={}),typeof je.context>"u"&&(je.context=4);var Et=E($e,tt,je);Et.push({value:"",lines:[]});function ct(Lt){return Lt.map(function(zt){return" "+zt})}for(var ut=[],Ne=0,mt=0,bt=[],Gt=1,hn=1,Yt=function(zt){var Kt=Et[zt],vt=Kt.lines||Kt.value.replace(/\n$/,"").split(` `);if(Kt.lines=vt,Kt.added||Kt.removed){var Ve;if(!Ne){var lt=Et[zt-1];Ne=Gt,mt=hn,lt&&(bt=je.context>0?ct(lt.lines.slice(-je.context)):[],Ne-=bt.length,mt-=bt.length)}(Ve=bt).push.apply(Ve,A(vt.map(function(ze){return(Kt.added?"+":"-")+ze}))),Kt.added?hn+=vt.length:Gt+=vt.length}else{if(Ne)if(vt.length<=je.context*2&&zt<Et.length-2){var at;(at=bt).push.apply(at,A(ct(vt)))}else{var Xt,rt=Math.min(vt.length,je.context);(Xt=bt).push.apply(Xt,A(ct(vt.slice(0,rt))));var Rt={oldStart:Ne,oldLines:Gt-Ne+rt,newStart:mt,newLines:hn-mt+rt,lines:bt};if(zt>=Et.length-2&&vt.length<=je.context){var rn=/\n$/.test($e),sn=/\n$/.test(tt),Jn=vt.length==0&&bt.length>Rt.oldLines;!rn&&Jn&&bt.splice(Rt.oldLines,0,"\\ No newline at end of file"),(!rn&&!Jn||!sn)&&bt.push("\\ No newline at end of file")}ut.push(Rt),Ne=0,mt=0,bt=[]}Gt+=vt.length,hn+=vt.length}},Bt=0;Bt<Et.length;Bt++)Yt(Bt);return{oldFileName:Ce,newFileName:Ae,oldHeader:ke,newHeader:Oe,hunks:ut}}function F(Ce,Ae,$e,tt,ke,Oe,je){var Et=k(Ce,Ae,$e,tt,ke,Oe,je),ct=[];Ce==Ae&&ct.push("Index: "+Ce),ct.push("==================================================================="),ct.push("--- "+Et.oldFileName+(typeof Et.oldHeader>"u"?"":" "+Et.oldHeader)),ct.push("+++ "+Et.newFileName+(typeof Et.newHeader>"u"?"":" "+Et.newHeader));for(var ut=0;ut<Et.hunks.length;ut++){var Ne=Et.hunks[ut];ct.push("@@ -"+Ne.oldStart+","+Ne.oldLines+" +"+Ne.newStart+","+Ne.newLines+" @@"),ct.push.apply(ct,Ne.lines)}return ct.join(` `)+` `}function V(Ce,Ae,$e,tt,ke,Oe){return F(Ce,Ce,Ae,$e,tt,ke,Oe)}function pe(Ce,Ae){return Ce.length!==Ae.length?!1:ce(Ce,Ae)}function ce(Ce,Ae){if(Ae.length>Ce.length)return!1;for(var $e=0;$e<Ae.length;$e++)if(Ae[$e]!==Ce[$e])return!1;return!0}function G(Ce){var Ae=Ye(Ce.lines),$e=Ae.oldLines,tt=Ae.newLines;$e!==void 0?Ce.oldLines=$e:delete Ce.oldLines,tt!==void 0?Ce.newLines=tt:delete Ce.newLines}function te(Ce,Ae,$e){Ce=ie(Ce,$e),Ae=ie(Ae,$e);var tt={};(Ce.index||Ae.index)&&(tt.index=Ce.index||Ae.index),(Ce.newFileName||Ae.newFileName)&&(fe(Ce)?fe(Ae)?(tt.oldFileName=Se(tt,Ce.oldFileName,Ae.oldFileName),tt.newFileName=Se(tt,Ce.newFileName,Ae.newFileName),tt.oldHeader=Se(tt,Ce.oldHeader,Ae.oldHeader),tt.newHeader=Se(tt,Ce.newHeader,Ae.newHeader)):(tt.oldFileName=Ce.oldFileName,tt.newFileName=Ce.newFileName,tt.oldHeader=Ce.oldHeader,tt.newHeader=Ce.newHeader):(tt.oldFileName=Ae.oldFileName||Ce.oldFileName,tt.newFileName=Ae.newFileName||Ce.newFileName,tt.oldHeader=Ae.oldHeader||Ce.oldHeader,tt.newHeader=Ae.newHeader||Ce.newHeader)),tt.hunks=[];for(var ke=0,Oe=0,je=0,Et=0;ke<Ce.hunks.length||Oe<Ae.hunks.length;){var ct=Ce.hunks[ke]||{oldStart:1/0},ut=Ae.hunks[Oe]||{oldStart:1/0};if(he(ct,ut))tt.hunks.push(me(ct,je)),ke++,Et+=ct.newLines-ct.oldLines;else if(he(ut,ct))tt.hunks.push(me(ut,Et)),Oe++,je+=ut.newLines-ut.oldLines;else{var Ne={oldStart:Math.min(ct.oldStart,ut.oldStart),oldLines:0,newStart:Math.min(ct.newStart+je,ut.oldStart+Et),newLines:0,lines:[]};_e(Ne,ct.oldStart,ct.lines,ut.oldStart,ut.lines),Oe++,ke++,tt.hunks.push(Ne)}}return tt}function ie(Ce,Ae){if(typeof Ce=="string"){if(/^@@/m.test(Ce)||/^Index:/m.test(Ce))return J(Ce)[0];if(!Ae)throw new Error("Must provide a base reference or pass in a patch");return k(void 0,void 0,Ae,Ce)}return Ce}function fe(Ce){return Ce.newFileName&&Ce.newFileName!==Ce.oldFileName}function Se(Ce,Ae,$e){return Ae===$e?Ae:(Ce.conflict=!0,{mine:Ae,theirs:$e})}function he(Ce,Ae){return Ce.oldStart<Ae.oldStart&&Ce.oldStart+Ce.oldLines<Ae.oldStart}function me(Ce,Ae){return{oldStart:Ce.oldStart,oldLines:Ce.oldLines,newStart:Ce.newStart+Ae,newLines:Ce.newLines,lines:Ce.lines}}function _e(Ce,Ae,$e,tt,ke){var Oe={offset:Ae,lines:$e,index:0},je={offset:tt,lines:ke,index:0};for(nt(Ce,Oe,je),nt(Ce,je,Oe);Oe.index<Oe.lines.length&&je.index<je.lines.length;){var Et=Oe.lines[Oe.index],ct=je.lines[je.index];if((Et[0]==="-"||Et[0]==="+")&&(ct[0]==="-"||ct[0]==="+"))we(Ce,Oe,je);else if(Et[0]==="+"&&ct[0]===" "){var ut;(ut=Ce.lines).push.apply(ut,A(ue(Oe)))}else if(ct[0]==="+"&&Et[0]===" "){var Ne;(Ne=Ce.lines).push.apply(Ne,A(ue(je)))}else Et[0]==="-"&&ct[0]===" "?Ge(Ce,Oe,je):ct[0]==="-"&&Et[0]===" "?Ge(Ce,je,Oe,!0):Et===ct?(Ce.lines.push(Et),Oe.index++,je.index++):ht(Ce,ue(Oe),ue(je))}Re(Ce,Oe),Re(Ce,je),G(Ce)}function we(Ce,Ae,$e){var tt=ue(Ae),ke=ue($e);if(ve(tt)&&ve(ke)){if(ce(tt,ke)&&Me($e,tt,tt.length-ke.length)){var Oe;(Oe=Ce.lines).push.apply(Oe,A(tt));return}else if(ce(ke,tt)&&Me(Ae,ke,ke.length-tt.length)){var je;(je=Ce.lines).push.apply(je,A(ke));return}}else if(pe(tt,ke)){var Et;(Et=Ce.lines).push.apply(Et,A(tt));return}ht(Ce,tt,ke)}function Ge(Ce,Ae,$e,tt){var ke=ue(Ae),Oe=ae($e,ke);if(Oe.merged){var je;(je=Ce.lines).push.apply(je,A(Oe.merged))}else ht(Ce,tt?Oe:ke,tt?ke:Oe)}function ht(Ce,Ae,$e){Ce.conflict=!0,Ce.lines.push({conflict:!0,mine:Ae,theirs:$e})}function nt(Ce,Ae,$e){for(;Ae.offset<$e.offset&&Ae.index<Ae.lines.length;){var tt=Ae.lines[Ae.index++];Ce.lines.push(tt),Ae.offset++}}function Re(Ce,Ae){for(;Ae.index<Ae.lines.length;){var $e=Ae.lines[Ae.index++];Ce.lines.push($e)}}function ue(Ce){for(var Ae=[],$e=Ce.lines[Ce.index][0];Ce.index<Ce.lines.length;){var tt=Ce.lines[Ce.index];if($e==="-"&&tt[0]==="+"&&($e="+"),$e===tt[0])Ae.push(tt),Ce.index++;else break}return Ae}function ae(Ce,Ae){for(var $e=[],tt=[],ke=0,Oe=!1,je=!1;ke<Ae.length&&Ce.index<Ce.lines.length;){var Et=Ce.lines[Ce.index],ct=Ae[ke];if(ct[0]==="+")break;if(Oe=Oe||Et[0]!==" ",tt.push(ct),ke++,Et[0]==="+")for(je=!0;Et[0]==="+";)$e.push(Et),Et=Ce.lines[++Ce.index];ct.substr(1)===Et.substr(1)?($e.push(Et),Ce.index++):je=!0}if((Ae[ke]||"")[0]==="+"&&Oe&&(je=!0),je)return $e;for(;ke<Ae.length;)tt.push(Ae[ke++]);return{merged:tt,changes:$e}}function ve(Ce){return Ce.reduce(function(Ae,$e){return Ae&&$e[0]==="-"},!0)}function Me(Ce,Ae,$e){for(var tt=0;tt<$e;tt++){var ke=Ae[Ae.length-$e+tt].substr(1);if(Ce.lines[Ce.index+tt]!==" "+ke)return!1}return Ce.index+=$e,!0}function Ye(Ce){var Ae=0,$e=0;return Ce.forEach(function(tt){if(typeof tt!="string"){var ke=Ye(tt.mine),Oe=Ye(tt.theirs);Ae!==void 0&&(ke.oldLines===Oe.oldLines?Ae+=ke.oldLines:Ae=void 0),$e!==void 0&&(ke.newLines===Oe.newLines?$e+=ke.newLines:$e=void 0)}else $e!==void 0&&(tt[0]==="+"||tt[0]===" ")&&$e++,Ae!==void 0&&(tt[0]==="-"||tt[0]===" ")&&Ae++}),{oldLines:Ae,newLines:$e}}function qe(Ce){for(var Ae=[],$e,tt,ke=0;ke<Ce.length;ke++)$e=Ce[ke],$e.added?tt=1:$e.removed?tt=-1:tt=0,Ae.push([tt,$e.value]);return Ae}function At(Ce){for(var Ae=[],$e=0;$e<Ce.length;$e++){var tt=Ce[$e];tt.added?Ae.push("<ins>"):tt.removed&&Ae.push("<del>"),Ae.push(It(tt.value)),tt.added?Ae.push("</ins>"):tt.removed&&Ae.push("</del>")}return Ae.join("")}function It(Ce){var Ae=Ce;return Ae=Ae.replace(/&/g,"&"),Ae=Ae.replace(/</g,"<"),Ae=Ae.replace(/>/g,">"),Ae=Ae.replace(/"/g,"""),Ae}t.Diff=i,t.diffChars=l,t.diffWords=g,t.diffWordsWithSpace=y,t.diffLines=E,t.diffTrimmedLines=S,t.diffSentences=x,t.diffCss=R,t.diffJson=j,t.diffArrays=Z,t.structuredPatch=k,t.createTwoFilesPatch=F,t.createPatch=V,t.applyPatch=L,t.applyPatches=$,t.parsePatch=J,t.merge=te,t.convertChangesToDMP=qe,t.convertChangesToXML=At,t.canonicalize=re,Object.defineProperty(t,"__esModule",{value:!0})})},6660:C=>{"use strict";var c,t,i,s;c="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",t="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",i=new RegExp("^[^"+t+"]*["+c+"]"),s=new RegExp("^[^"+c+"]*["+t+"]");function u(v){return v=v.toString(),s.test(v)?"rtl":i.test(v)?"ltr":"neutral"}C.exports=u},63570:(C,c,t)=>{var i=t(63310),s=t(51661),u={float:"cssFloat"},v=t(39791);function l(f,g,y){var b=u[g];if(typeof b>"u"&&(b=p(g)),b){if(y===void 0)return f.style[b];f.style[b]=v(b,y)}}function h(f,g){for(var y in g)g.hasOwnProperty(y)&&l(f,y,g[y])}function p(f){var g=s(f),y=i(g);return u[g]=u[f]=u[y]=y,y}function d(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:h(arguments[0],arguments[1]):l(arguments[0],arguments[1],arguments[2])}C.exports=d,C.exports.set=d,C.exports.get=function(f,g){return Array.isArray(g)?g.reduce(function(y,b){return y[b]=l(f,b||""),y},{}):l(f,g||"")}},17032:function(C){/*! @license DOMPurify 2.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.5/LICENSE */(function(c,t){C.exports=t()})(this,function(){"use strict";function c(Ce){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ae){return typeof Ae}:function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},c(Ce)}function t(Ce,Ae){return t=Object.setPrototypeOf||function(tt,ke){return tt.__proto__=ke,tt},t(Ce,Ae)}function i(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function s(Ce,Ae,$e){return i()?s=Reflect.construct:s=function(ke,Oe,je){var Et=[null];Et.push.apply(Et,Oe);var ct=Function.bind.apply(ke,Et),ut=new ct;return je&&t(ut,je.prototype),ut},s.apply(null,arguments)}function u(Ce){return v(Ce)||l(Ce)||h(Ce)||d()}function v(Ce){if(Array.isArray(Ce))return p(Ce)}function l(Ce){if(typeof Symbol<"u"&&Ce[Symbol.iterator]!=null||Ce["@@iterator"]!=null)return Array.from(Ce)}function h(Ce,Ae){if(Ce){if(typeof Ce=="string")return p(Ce,Ae);var $e=Object.prototype.toString.call(Ce).slice(8,-1);if($e==="Object"&&Ce.constructor&&($e=Ce.constructor.name),$e==="Map"||$e==="Set")return Array.from(Ce);if($e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($e))return p(Ce,Ae)}}function p(Ce,Ae){(Ae==null||Ae>Ce.length)&&(Ae=Ce.length);for(var $e=0,tt=new Array(Ae);$e<Ae;$e++)tt[$e]=Ce[$e];return tt}function d(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=Object.hasOwnProperty,g=Object.setPrototypeOf,y=Object.isFrozen,b=Object.getPrototypeOf,E=Object.getOwnPropertyDescriptor,S=Object.freeze,w=Object.seal,x=Object.create,P=typeof Reflect<"u"&&Reflect,R=P.apply,T=P.construct;R||(R=function(Ae,$e,tt){return Ae.apply($e,tt)}),S||(S=function(Ae){return Ae}),w||(w=function(Ae){return Ae}),T||(T=function(Ae,$e){return s(Ae,u($e))});var A=q(Array.prototype.forEach),I=q(Array.prototype.pop),N=q(Array.prototype.push),K=q(String.prototype.toLowerCase),_=q(String.prototype.toString),W=q(String.prototype.match),j=q(String.prototype.replace),re=q(String.prototype.indexOf),X=q(String.prototype.trim),Z=q(RegExp.prototype.test),J=L(TypeError);function q(Ce){return function(Ae){for(var $e=arguments.length,tt=new Array($e>1?$e-1:0),ke=1;ke<$e;ke++)tt[ke-1]=arguments[ke];return R(Ce,Ae,tt)}}function L(Ce){return function(){for(var Ae=arguments.length,$e=new Array(Ae),tt=0;tt<Ae;tt++)$e[tt]=arguments[tt];return T(Ce,$e)}}function $(Ce,Ae,$e){$e=$e||K,g&&g(Ce,null);for(var tt=Ae.length;tt--;){var ke=Ae[tt];if(typeof ke=="string"){var Oe=$e(ke);Oe!==ke&&(y(Ae)||(Ae[tt]=Oe),ke=Oe)}Ce[ke]=!0}return Ce}function k(Ce){var Ae=x(null),$e;for($e in Ce)R(f,Ce,[$e])===!0&&(Ae[$e]=Ce[$e]);return Ae}function F(Ce,Ae){for(;Ce!==null;){var $e=E(Ce,Ae);if($e){if($e.get)return q($e.get);if(typeof $e.value=="function")return q($e.value)}Ce=b(Ce)}function tt(ke){return console.warn("fallback value for",ke),null}return tt}var V=S(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),pe=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ce=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),G=S(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),te=S(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),ie=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fe=S(["#text"]),Se=S(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),he=S(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),me=S(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),_e=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),we=w(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ge=w(/<%[\w\W]*|[\w\W]*%>/gm),ht=w(/\${[\w\W]*}/gm),nt=w(/^data-[\-\w.\u00B7-\uFFFF]/),Re=w(/^aria-[\-\w]+$/),ue=w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ae=w(/^(?:\w+script|data):/i),ve=w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Me=w(/^html$/i),Ye=function(){return typeof window>"u"?null:window},qe=function(Ae,$e){if(c(Ae)!=="object"||typeof Ae.createPolicy!="function")return null;var tt=null,ke="data-tt-policy-suffix";$e.currentScript&&$e.currentScript.hasAttribute(ke)&&(tt=$e.currentScript.getAttribute(ke));var Oe="dompurify"+(tt?"#"+tt:"");try{return Ae.createPolicy(Oe,{createHTML:function(Et){return Et},createScriptURL:function(Et){return Et}})}catch{return console.warn("TrustedTypes policy "+Oe+" could not be created."),null}};function At(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ye(),Ae=function(ai){return At(ai)};if(Ae.version="2.4.5",Ae.removed=[],!Ce||!Ce.document||Ce.document.nodeType!==9)return Ae.isSupported=!1,Ae;var $e=Ce.document,tt=Ce.document,ke=Ce.DocumentFragment,Oe=Ce.HTMLTemplateElement,je=Ce.Node,Et=Ce.Element,ct=Ce.NodeFilter,ut=Ce.NamedNodeMap,Ne=ut===void 0?Ce.NamedNodeMap||Ce.MozNamedAttrMap:ut,mt=Ce.HTMLFormElement,bt=Ce.DOMParser,Gt=Ce.trustedTypes,hn=Et.prototype,Yt=F(hn,"cloneNode"),Bt=F(hn,"nextSibling"),Lt=F(hn,"childNodes"),zt=F(hn,"parentNode");if(typeof Oe=="function"){var Kt=tt.createElement("template");Kt.content&&Kt.content.ownerDocument&&(tt=Kt.content.ownerDocument)}var vt=qe(Gt,$e),Ve=vt?vt.createHTML(""):"",lt=tt,at=lt.implementation,Xt=lt.createNodeIterator,rt=lt.createDocumentFragment,Rt=lt.getElementsByTagName,rn=$e.importNode,sn={};try{sn=k(tt).documentMode?tt.documentMode:{}}catch{}var Jn={};Ae.isSupported=typeof zt=="function"&&at&&typeof at.createHTMLDocument<"u"&&sn!==9;var ze=we,st=Ge,en=ht,wt=nt,Ke=Re,Ut=ae,on=ve,Tn=ue,An=null,Zt=$({},[].concat(u(V),u(pe),u(ce),u(te),u(fe))),ot=null,We=$({},[].concat(u(Se),u(he),u(me),u(_e))),Ft=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),it=null,qt=null,vn=!0,fn=!0,Tt=!1,dn=!0,mn=!1,Kn=!1,Dn=!1,Vn=!1,or=!1,Qr=!1,ni=!1,yr=!0,si=!1,Yr="user-content-",Ci=!0,Ni=!1,fa={},ha=null,Ca=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),li=null,la=$({},["audio","video","img","source","image","track"]),Oa=null,wa=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vo="http://www.w3.org/1998/Math/MathML",Qn="http://www.w3.org/2000/svg",_r="http://www.w3.org/1999/xhtml",$r=_r,Ti=!1,xt=null,On=$({},[vo,Qn,_r],_),Zn,Ur=["application/xhtml+xml","text/html"],En="text/html",ln,jn=null,rr=tt.createElement("form"),Mr=function(ai){return ai instanceof RegExp||ai instanceof Function},Ir=function(ai){jn&&jn===ai||((!ai||c(ai)!=="object")&&(ai={}),ai=k(ai),Zn=Ur.indexOf(ai.PARSER_MEDIA_TYPE)===-1?Zn=En:Zn=ai.PARSER_MEDIA_TYPE,ln=Zn==="application/xhtml+xml"?_:K,An="ALLOWED_TAGS"in ai?$({},ai.ALLOWED_TAGS,ln):Zt,ot="ALLOWED_ATTR"in ai?$({},ai.ALLOWED_ATTR,ln):We,xt="ALLOWED_NAMESPACES"in ai?$({},ai.ALLOWED_NAMESPACES,_):On,Oa="ADD_URI_SAFE_ATTR"in ai?$(k(wa),ai.ADD_URI_SAFE_ATTR,ln):wa,li="ADD_DATA_URI_TAGS"in ai?$(k(la),ai.ADD_DATA_URI_TAGS,ln):la,ha="FORBID_CONTENTS"in ai?$({},ai.FORBID_CONTENTS,ln):Ca,it="FORBID_TAGS"in ai?$({},ai.FORBID_TAGS,ln):{},qt="FORBID_ATTR"in ai?$({},ai.FORBID_ATTR,ln):{},fa="USE_PROFILES"in ai?ai.USE_PROFILES:!1,vn=ai.ALLOW_ARIA_ATTR!==!1,fn=ai.ALLOW_DATA_ATTR!==!1,Tt=ai.ALLOW_UNKNOWN_PROTOCOLS||!1,dn=ai.ALLOW_SELF_CLOSE_IN_ATTR!==!1,mn=ai.SAFE_FOR_TEMPLATES||!1,Kn=ai.WHOLE_DOCUMENT||!1,or=ai.RETURN_DOM||!1,Qr=ai.RETURN_DOM_FRAGMENT||!1,ni=ai.RETURN_TRUSTED_TYPE||!1,Vn=ai.FORCE_BODY||!1,yr=ai.SANITIZE_DOM!==!1,si=ai.SANITIZE_NAMED_PROPS||!1,Ci=ai.KEEP_CONTENT!==!1,Ni=ai.IN_PLACE||!1,Tn=ai.ALLOWED_URI_REGEXP||Tn,$r=ai.NAMESPACE||_r,Ft=ai.CUSTOM_ELEMENT_HANDLING||{},ai.CUSTOM_ELEMENT_HANDLING&&Mr(ai.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ft.tagNameCheck=ai.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ai.CUSTOM_ELEMENT_HANDLING&&Mr(ai.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ft.attributeNameCheck=ai.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ai.CUSTOM_ELEMENT_HANDLING&&typeof ai.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ft.allowCustomizedBuiltInElements=ai.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),mn&&(fn=!1),Qr&&(or=!0),fa&&(An=$({},u(fe)),ot=[],fa.html===!0&&($(An,V),$(ot,Se)),fa.svg===!0&&($(An,pe),$(ot,he),$(ot,_e)),fa.svgFilters===!0&&($(An,ce),$(ot,he),$(ot,_e)),fa.mathMl===!0&&($(An,te),$(ot,me),$(ot,_e))),ai.ADD_TAGS&&(An===Zt&&(An=k(An)),$(An,ai.ADD_TAGS,ln)),ai.ADD_ATTR&&(ot===We&&(ot=k(ot)),$(ot,ai.ADD_ATTR,ln)),ai.ADD_URI_SAFE_ATTR&&$(Oa,ai.ADD_URI_SAFE_ATTR,ln),ai.FORBID_CONTENTS&&(ha===Ca&&(ha=k(ha)),$(ha,ai.FORBID_CONTENTS,ln)),Ci&&(An["#text"]=!0),Kn&&$(An,["html","head","body"]),An.table&&($(An,["tbody"]),delete it.tbody),S&&S(ai),jn=ai)},Zr=$({},["mi","mo","mn","ms","mtext"]),lr=$({},["foreignobject","desc","title","annotation-xml"]),Jr=$({},["title","style","font","a","script"]),pi=$({},pe);$(pi,ce),$(pi,G);var Ri=$({},te);$(Ri,ie);var Ki=function(ai){var za=zt(ai);(!za||!za.tagName)&&(za={namespaceURI:$r,tagName:"template"});var Mt=K(ai.tagName),Gn=K(za.tagName);return xt[ai.namespaceURI]?ai.namespaceURI===Qn?za.namespaceURI===_r?Mt==="svg":za.namespaceURI===vo?Mt==="svg"&&(Gn==="annotation-xml"||Zr[Gn]):!!pi[Mt]:ai.namespaceURI===vo?za.namespaceURI===_r?Mt==="math":za.namespaceURI===Qn?Mt==="math"&&lr[Gn]:!!Ri[Mt]:ai.namespaceURI===_r?za.namespaceURI===Qn&&!lr[Gn]||za.namespaceURI===vo&&!Zr[Gn]?!1:!Ri[Mt]&&(Jr[Mt]||!pi[Mt]):!!(Zn==="application/xhtml+xml"&&xt[ai.namespaceURI]):!1},ia=function(ai){N(Ae.removed,{element:ai});try{ai.parentNode.removeChild(ai)}catch{try{ai.outerHTML=Ve}catch{ai.remove()}}},Da=function(ai,za){try{N(Ae.removed,{attribute:za.getAttributeNode(ai),from:za})}catch{N(Ae.removed,{attribute:null,from:za})}if(za.removeAttribute(ai),ai==="is"&&!ot[ai])if(or||Qr)try{ia(za)}catch{}else try{za.setAttribute(ai,"")}catch{}},to=function(ai){var za,Mt;if(Vn)ai="<remove></remove>"+ai;else{var Gn=W(ai,/^[\r\n\t ]+/);Mt=Gn&&Gn[0]}Zn==="application/xhtml+xml"&&$r===_r&&(ai='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ai+"</body></html>");var qn=vt?vt.createHTML(ai):ai;if($r===_r)try{za=new bt().parseFromString(qn,Zn)}catch{}if(!za||!za.documentElement){za=at.createDocument($r,"template",null);try{za.documentElement.innerHTML=Ti?Ve:qn}catch{}}var Fr=za.body||za.documentElement;return ai&&Mt&&Fr.insertBefore(tt.createTextNode(Mt),Fr.childNodes[0]||null),$r===_r?Rt.call(za,Kn?"html":"body")[0]:Kn?za.documentElement:Fr},ao=function(ai){return Xt.call(ai.ownerDocument||ai,ai,ct.SHOW_ELEMENT|ct.SHOW_COMMENT|ct.SHOW_TEXT,null,!1)},Bo=function(ai){return ai instanceof mt&&(typeof ai.nodeName!="string"||typeof ai.textContent!="string"||typeof ai.removeChild!="function"||!(ai.attributes instanceof Ne)||typeof ai.removeAttribute!="function"||typeof ai.setAttribute!="function"||typeof ai.namespaceURI!="string"||typeof ai.insertBefore!="function"||typeof ai.hasChildNodes!="function")},jo=function(ai){return c(je)==="object"?ai instanceof je:ai&&c(ai)==="object"&&typeof ai.nodeType=="number"&&typeof ai.nodeName=="string"},Jo=function(ai,za,Mt){Jn[ai]&&A(Jn[ai],function(Gn){Gn.call(Ae,za,Mt,jn)})},Go=function(ai){var za;if(Jo("beforeSanitizeElements",ai,null),Bo(ai)||Z(/[\u0080-\uFFFF]/,ai.nodeName))return ia(ai),!0;var Mt=ln(ai.nodeName);if(Jo("uponSanitizeElement",ai,{tagName:Mt,allowedTags:An}),ai.hasChildNodes()&&!jo(ai.firstElementChild)&&(!jo(ai.content)||!jo(ai.content.firstElementChild))&&Z(/<[/\w]/g,ai.innerHTML)&&Z(/<[/\w]/g,ai.textContent)||Mt==="select"&&Z(/<template/i,ai.innerHTML))return ia(ai),!0;if(!An[Mt]||it[Mt]){if(!it[Mt]&&qi(Mt)&&(Ft.tagNameCheck instanceof RegExp&&Z(Ft.tagNameCheck,Mt)||Ft.tagNameCheck instanceof Function&&Ft.tagNameCheck(Mt)))return!1;if(Ci&&!ha[Mt]){var Gn=zt(ai)||ai.parentNode,qn=Lt(ai)||ai.childNodes;if(qn&&Gn)for(var Fr=qn.length,Ei=Fr-1;Ei>=0;--Ei)Gn.insertBefore(Yt(qn[Ei],!0),Bt(ai))}return ia(ai),!0}return ai instanceof Et&&!Ki(ai)||(Mt==="noscript"||Mt==="noembed")&&Z(/<\/no(script|embed)/i,ai.innerHTML)?(ia(ai),!0):(mn&&ai.nodeType===3&&(za=ai.textContent,za=j(za,ze," "),za=j(za,st," "),za=j(za,en," "),ai.textContent!==za&&(N(Ae.removed,{element:ai.cloneNode()}),ai.textContent=za)),Jo("afterSanitizeElements",ai,null),!1)},wr=function(ai,za,Mt){if(yr&&(za==="id"||za==="name")&&(Mt in tt||Mt in rr))return!1;if(!(fn&&!qt[za]&&Z(wt,za))){if(!(vn&&Z(Ke,za))){if(!ot[za]||qt[za]){if(!(qi(ai)&&(Ft.tagNameCheck instanceof RegExp&&Z(Ft.tagNameCheck,ai)||Ft.tagNameCheck instanceof Function&&Ft.tagNameCheck(ai))&&(Ft.attributeNameCheck instanceof RegExp&&Z(Ft.attributeNameCheck,za)||Ft.attributeNameCheck instanceof Function&&Ft.attributeNameCheck(za))||za==="is"&&Ft.allowCustomizedBuiltInElements&&(Ft.tagNameCheck instanceof RegExp&&Z(Ft.tagNameCheck,Mt)||Ft.tagNameCheck instanceof Function&&Ft.tagNameCheck(Mt))))return!1}else if(!Oa[za]){if(!Z(Tn,j(Mt,on,""))){if(!((za==="src"||za==="xlink:href"||za==="href")&&ai!=="script"&&re(Mt,"data:")===0&&li[ai])){if(!(Tt&&!Z(Ut,j(Mt,on,"")))){if(Mt)return!1}}}}}}return!0},qi=function(ai){return ai.indexOf("-")>0},ja=function(ai){var za,Mt,Gn,qn;Jo("beforeSanitizeAttributes",ai,null);var Fr=ai.attributes;if(Fr){var Ei={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ot};for(qn=Fr.length;qn--;){za=Fr[qn];var ii=za,Wi=ii.name,Ya=ii.namespaceURI;if(Mt=Wi==="value"?za.value:X(za.value),Gn=ln(Wi),Ei.attrName=Gn,Ei.attrValue=Mt,Ei.keepAttr=!0,Ei.forceKeepAttr=void 0,Jo("uponSanitizeAttribute",ai,Ei),Mt=Ei.attrValue,!Ei.forceKeepAttr&&(Da(Wi,ai),!!Ei.keepAttr)){if(!dn&&Z(/\/>/i,Mt)){Da(Wi,ai);continue}mn&&(Mt=j(Mt,ze," "),Mt=j(Mt,st," "),Mt=j(Mt,en," "));var qa=ln(ai.nodeName);if(wr(qa,Gn,Mt)){if(si&&(Gn==="id"||Gn==="name")&&(Da(Wi,ai),Mt=Yr+Mt),vt&&c(Gt)==="object"&&typeof Gt.getAttributeType=="function"&&!Ya)switch(Gt.getAttributeType(qa,Gn)){case"TrustedHTML":Mt=vt.createHTML(Mt);break;case"TrustedScriptURL":Mt=vt.createScriptURL(Mt);break}try{Ya?ai.setAttributeNS(Ya,Wi,Mt):ai.setAttribute(Wi,Mt),I(Ae.removed)}catch{}}}}Jo("afterSanitizeAttributes",ai,null)}},uo=function wi(ai){var za,Mt=ao(ai);for(Jo("beforeSanitizeShadowDOM",ai,null);za=Mt.nextNode();)Jo("uponSanitizeShadowNode",za,null),!Go(za)&&(za.content instanceof ke&&wi(za.content),ja(za));Jo("afterSanitizeShadowDOM",ai,null)};return Ae.sanitize=function(wi){var ai=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},za,Mt,Gn,qn,Fr;if(Ti=!wi,Ti&&(wi="<!-->"),typeof wi!="string"&&!jo(wi)){if(typeof wi.toString!="function")throw J("toString is not a function");if(wi=wi.toString(),typeof wi!="string")throw J("dirty is not a string, aborting")}if(!Ae.isSupported){if(c(Ce.toStaticHTML)==="object"||typeof Ce.toStaticHTML=="function"){if(typeof wi=="string")return Ce.toStaticHTML(wi);if(jo(wi))return Ce.toStaticHTML(wi.outerHTML)}return wi}if(Dn||Ir(ai),Ae.removed=[],typeof wi=="string"&&(Ni=!1),Ni){if(wi.nodeName){var Ei=ln(wi.nodeName);if(!An[Ei]||it[Ei])throw J("root node is forbidden and cannot be sanitized in-place")}}else if(wi instanceof je)za=to("<!---->"),Mt=za.ownerDocument.importNode(wi,!0),Mt.nodeType===1&&Mt.nodeName==="BODY"||Mt.nodeName==="HTML"?za=Mt:za.appendChild(Mt);else{if(!or&&!mn&&!Kn&&wi.indexOf("<")===-1)return vt&&ni?vt.createHTML(wi):wi;if(za=to(wi),!za)return or?null:ni?Ve:""}za&&Vn&&ia(za.firstChild);for(var ii=ao(Ni?wi:za);Gn=ii.nextNode();)Gn.nodeType===3&&Gn===qn||Go(Gn)||(Gn.content instanceof ke&&uo(Gn.content),ja(Gn),qn=Gn);if(qn=null,Ni)return wi;if(or){if(Qr)for(Fr=rt.call(za.ownerDocument);za.firstChild;)Fr.appendChild(za.firstChild);else Fr=za;return(ot.shadowroot||ot.shadowrootmod)&&(Fr=rn.call($e,Fr,!0)),Fr}var Wi=Kn?za.outerHTML:za.innerHTML;return Kn&&An["!doctype"]&&za.ownerDocument&&za.ownerDocument.doctype&&za.ownerDocument.doctype.name&&Z(Me,za.ownerDocument.doctype.name)&&(Wi="<!DOCTYPE "+za.ownerDocument.doctype.name+`> `+Wi),mn&&(Wi=j(Wi,ze," "),Wi=j(Wi,st," "),Wi=j(Wi,en," ")),vt&&ni?vt.createHTML(Wi):Wi},Ae.setConfig=function(wi){Ir(wi),Dn=!0},Ae.clearConfig=function(){jn=null,Dn=!1},Ae.isValidAttribute=function(wi,ai,za){jn||Ir({});var Mt=ln(wi),Gn=ln(ai);return wr(Mt,Gn,za)},Ae.addHook=function(wi,ai){typeof ai=="function"&&(Jn[wi]=Jn[wi]||[],N(Jn[wi],ai))},Ae.removeHook=function(wi){if(Jn[wi])return I(Jn[wi])},Ae.removeHooks=function(wi){Jn[wi]&&(Jn[wi]=[])},Ae.removeAllHooks=function(){Jn={}},Ae}var It=At();return It})},95611:(C,c,t)=>{"use strict";t.r(c),t.d(c,{cache:()=>At,css:()=>Ye,cx:()=>Re,flush:()=>ht,getRegisteredStyles:()=>ae,hydrate:()=>nt,injectGlobal:()=>ve,keyframes:()=>Me,merge:()=>ue,sheet:()=>qe});function i(It){if(It.sheet)return It.sheet;for(var Ce=0;Ce<document.styleSheets.length;Ce++)if(document.styleSheets[Ce].ownerNode===It)return document.styleSheets[Ce]}function s(It){var Ce=document.createElement("style");return Ce.setAttribute("data-emotion",It.key),It.nonce!==void 0&&Ce.setAttribute("nonce",It.nonce),Ce.appendChild(document.createTextNode("")),Ce}var u=function(){function It(Ae){this.isSpeedy=Ae.speedy===void 0?!0:Ae.speedy,this.tags=[],this.ctr=0,this.nonce=Ae.nonce,this.key=Ae.key,this.container=Ae.container,this.before=null}var Ce=It.prototype;return Ce.insert=function($e){if(this.ctr%(this.isSpeedy?65e3:1)===0){var tt=s(this),ke;this.tags.length===0?ke=this.before:ke=this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(tt,ke),this.tags.push(tt)}var Oe=this.tags[this.tags.length-1];if(this.isSpeedy){var je=i(Oe);try{var Et=$e.charCodeAt(1)===105&&$e.charCodeAt(0)===64;je.insertRule($e,Et?0:je.cssRules.length)}catch{}}else Oe.appendChild(document.createTextNode($e));this.ctr++},Ce.flush=function(){this.tags.forEach(function($e){return $e.parentNode.removeChild($e)}),this.tags=[],this.ctr=0},It}();function v(It){function Ce(Tn,An,Zt,ot,We){for(var Ft=0,it=0,qt=0,vn=0,fn,Tt,dn=0,mn=0,Kn,Dn=Kn=fn=0,Vn=0,or=0,Qr=0,ni=0,yr=Zt.length,si=yr-1,Yr,Ci="",Ni="",fa="",ha="",Ca;Vn<yr;){if(Tt=Zt.charCodeAt(Vn),Vn===si&&it+vn+qt+Ft!==0&&(it!==0&&(Tt=it===47?10:47),vn=qt=Ft=0,yr++,si++),it+vn+qt+Ft===0){if(Vn===si&&(0<or&&(Ci=Ci.replace(mt,"")),0<Ci.trim().length)){switch(Tt){case 32:case 9:case 59:case 13:case 10:break;default:Ci+=Zt.charAt(Vn)}Tt=59}switch(Tt){case 123:for(Ci=Ci.trim(),fn=Ci.charCodeAt(0),Kn=1,ni=++Vn;Vn<yr;){switch(Tt=Zt.charCodeAt(Vn)){case 123:Kn++;break;case 125:Kn--;break;case 47:switch(Tt=Zt.charCodeAt(Vn+1)){case 42:case 47:e:{for(Dn=Vn+1;Dn<si;++Dn)switch(Zt.charCodeAt(Dn)){case 47:if(Tt===42&&Zt.charCodeAt(Dn-1)===42&&Vn+2!==Dn){Vn=Dn+1;break e}break;case 10:if(Tt===47){Vn=Dn+1;break e}}Vn=Dn}}break;case 91:Tt++;case 40:Tt++;case 34:case 39:for(;Vn++<si&&Zt.charCodeAt(Vn)!==Tt;);}if(Kn===0)break;Vn++}switch(Kn=Zt.substring(ni,Vn),fn===0&&(fn=(Ci=Ci.replace(Ne,"").trim()).charCodeAt(0)),fn){case 64:switch(0<or&&(Ci=Ci.replace(mt,"")),Tt=Ci.charCodeAt(1),Tt){case 100:case 109:case 115:case 45:or=An;break;default:or=st}if(Kn=Ce(An,or,Kn,Tt,We+1),ni=Kn.length,0<wt&&(or=Ae(st,Ci,Qr),Ca=je(3,Kn,or,An,sn,rn,ni,Tt,We,ot),Ci=or.join(""),Ca!==void 0&&(ni=(Kn=Ca.trim()).length)===0&&(Tt=0,Kn="")),0<ni)switch(Tt){case 115:Ci=Ci.replace(Ve,Oe);case 100:case 109:case 45:Kn=Ci+"{"+Kn+"}";break;case 107:Ci=Ci.replace(Lt,"$1 $2"),Kn=Ci+"{"+Kn+"}",Kn=ze===1||ze===2&&ke("@"+Kn,3)?"@-webkit-"+Kn+"@"+Kn:"@"+Kn;break;default:Kn=Ci+Kn,ot===112&&(Kn=(Ni+=Kn,""))}else Kn="";break;default:Kn=Ce(An,Ae(An,Ci,Qr),Kn,ot,We+1)}fa+=Kn,Kn=Qr=or=Dn=fn=0,Ci="",Tt=Zt.charCodeAt(++Vn);break;case 125:case 59:if(Ci=(0<or?Ci.replace(mt,""):Ci).trim(),1<(ni=Ci.length))switch(Dn===0&&(fn=Ci.charCodeAt(0),fn===45||96<fn&&123>fn)&&(ni=(Ci=Ci.replace(" ",":")).length),0<wt&&(Ca=je(1,Ci,An,Tn,sn,rn,Ni.length,ot,We,ot))!==void 0&&(ni=(Ci=Ca.trim()).length)===0&&(Ci="\0\0"),fn=Ci.charCodeAt(0),Tt=Ci.charCodeAt(1),fn){case 0:break;case 64:if(Tt===105||Tt===99){ha+=Ci+Zt.charAt(Vn);break}default:Ci.charCodeAt(ni-1)!==58&&(Ni+=tt(Ci,fn,Tt,Ci.charCodeAt(2)))}Qr=or=Dn=fn=0,Ci="",Tt=Zt.charCodeAt(++Vn)}}switch(Tt){case 13:case 10:it===47?it=0:1+fn===0&&ot!==107&&0<Ci.length&&(or=1,Ci+="\0"),0<wt*Ut&&je(0,Ci,An,Tn,sn,rn,Ni.length,ot,We,ot),rn=1,sn++;break;case 59:case 125:if(it+vn+qt+Ft===0){rn++;break}default:switch(rn++,Yr=Zt.charAt(Vn),Tt){case 9:case 32:if(vn+Ft+it===0)switch(dn){case 44:case 58:case 9:case 32:Yr="";break;default:Tt!==32&&(Yr=" ")}break;case 0:Yr="\\0";break;case 12:Yr="\\f";break;case 11:Yr="\\v";break;case 38:vn+it+Ft===0&&(or=Qr=1,Yr="\f"+Yr);break;case 108:if(vn+it+Ft+Jn===0&&0<Dn)switch(Vn-Dn){case 2:dn===112&&Zt.charCodeAt(Vn-3)===58&&(Jn=dn);case 8:mn===111&&(Jn=mn)}break;case 58:vn+it+Ft===0&&(Dn=Vn);break;case 44:it+qt+vn+Ft===0&&(or=1,Yr+="\r");break;case 34:case 39:it===0&&(vn=vn===Tt?0:vn===0?Tt:vn);break;case 91:vn+it+qt===0&&Ft++;break;case 93:vn+it+qt===0&&Ft--;break;case 41:vn+it+Ft===0&&qt--;break;case 40:if(vn+it+Ft===0){if(fn===0)switch(2*dn+3*mn){case 533:break;default:fn=1}qt++}break;case 64:it+qt+vn+Ft+Dn+Kn===0&&(Kn=1);break;case 42:case 47:if(!(0<vn+Ft+qt))switch(it){case 0:switch(2*Tt+3*Zt.charCodeAt(Vn+1)){case 235:it=47;break;case 220:ni=Vn,it=42}break;case 42:Tt===47&&dn===42&&ni+2!==Vn&&(Zt.charCodeAt(ni+2)===33&&(Ni+=Zt.substring(ni,Vn+1)),Yr="",it=0)}}it===0&&(Ci+=Yr)}mn=dn,dn=Tt,Vn++}if(ni=Ni.length,0<ni){if(or=An,0<wt&&(Ca=je(2,Ni,or,Tn,sn,rn,ni,ot,We,ot),Ca!==void 0&&(Ni=Ca).length===0))return ha+Ni+fa;if(Ni=or.join(",")+"{"+Ni+"}",ze*Jn!==0){switch(ze!==2||ke(Ni,2)||(Jn=0),Jn){case 111:Ni=Ni.replace(Kt,":-moz-$1")+Ni;break;case 112:Ni=Ni.replace(zt,"::-webkit-input-$1")+Ni.replace(zt,"::-moz-$1")+Ni.replace(zt,":-ms-input-$1")+Ni}Jn=0}}return ha+Ni+fa}function Ae(Tn,An,Zt){var ot=An.trim().split(Yt);An=ot;var We=ot.length,Ft=Tn.length;switch(Ft){case 0:case 1:var it=0;for(Tn=Ft===0?"":Tn[0]+" ";it<We;++it)An[it]=$e(Tn,An[it],Zt).trim();break;default:var qt=it=0;for(An=[];it<We;++it)for(var vn=0;vn<Ft;++vn)An[qt++]=$e(Tn[vn]+" ",ot[it],Zt).trim()}return An}function $e(Tn,An,Zt){var ot=An.charCodeAt(0);switch(33>ot&&(ot=(An=An.trim()).charCodeAt(0)),ot){case 38:return An.replace(Bt,"$1"+Tn.trim());case 58:return Tn.trim()+An.replace(Bt,"$1"+Tn.trim());default:if(0<1*Zt&&0<An.indexOf("\f"))return An.replace(Bt,(Tn.charCodeAt(0)===58?"":"$1")+Tn.trim())}return Tn+An}function tt(Tn,An,Zt,ot){var We=Tn+";",Ft=2*An+3*Zt+4*ot;if(Ft===944){Tn=We.indexOf(":",9)+1;var it=We.substring(Tn,We.length-1).trim();return it=We.substring(0,Tn).trim()+it+";",ze===1||ze===2&&ke(it,1)?"-webkit-"+it+it:it}if(ze===0||ze===2&&!ke(We,1))return We;switch(Ft){case 1015:return We.charCodeAt(10)===97?"-webkit-"+We+We:We;case 951:return We.charCodeAt(3)===116?"-webkit-"+We+We:We;case 963:return We.charCodeAt(5)===110?"-webkit-"+We+We:We;case 1009:if(We.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+We+We;case 978:return"-webkit-"+We+"-moz-"+We+We;case 1019:case 983:return"-webkit-"+We+"-moz-"+We+"-ms-"+We+We;case 883:if(We.charCodeAt(8)===45)return"-webkit-"+We+We;if(0<We.indexOf("image-set(",11))return We.replace(Rt,"$1-webkit-$2")+We;break;case 932:if(We.charCodeAt(4)===45)switch(We.charCodeAt(5)){case 103:return"-webkit-box-"+We.replace("-grow","")+"-webkit-"+We+"-ms-"+We.replace("grow","positive")+We;case 115:return"-webkit-"+We+"-ms-"+We.replace("shrink","negative")+We;case 98:return"-webkit-"+We+"-ms-"+We.replace("basis","preferred-size")+We}return"-webkit-"+We+"-ms-"+We+We;case 964:return"-webkit-"+We+"-ms-flex-"+We+We;case 1023:if(We.charCodeAt(8)!==99)break;return it=We.substring(We.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+it+"-webkit-"+We+"-ms-flex-pack"+it+We;case 1005:return Gt.test(We)?We.replace(bt,":-webkit-")+We.replace(bt,":-moz-")+We:We;case 1e3:switch(it=We.substring(13).trim(),An=it.indexOf("-")+1,it.charCodeAt(0)+it.charCodeAt(An)){case 226:it=We.replace(vt,"tb");break;case 232:it=We.replace(vt,"tb-rl");break;case 220:it=We.replace(vt,"lr");break;default:return We}return"-webkit-"+We+"-ms-"+it+We;case 1017:if(We.indexOf("sticky",9)===-1)break;case 975:switch(An=(We=Tn).length-10,it=(We.charCodeAt(An)===33?We.substring(0,An):We).substring(Tn.indexOf(":",7)+1).trim(),Ft=it.charCodeAt(0)+(it.charCodeAt(7)|0)){case 203:if(111>it.charCodeAt(8))break;case 115:We=We.replace(it,"-webkit-"+it)+";"+We;break;case 207:case 102:We=We.replace(it,"-webkit-"+(102<Ft?"inline-":"")+"box")+";"+We.replace(it,"-webkit-"+it)+";"+We.replace(it,"-ms-"+it+"box")+";"+We}return We+";";case 938:if(We.charCodeAt(5)===45)switch(We.charCodeAt(6)){case 105:return it=We.replace("-items",""),"-webkit-"+We+"-webkit-box-"+it+"-ms-flex-"+it+We;case 115:return"-webkit-"+We+"-ms-flex-item-"+We.replace(at,"")+We;default:return"-webkit-"+We+"-ms-flex-line-pack"+We.replace("align-content","").replace(at,"")+We}break;case 973:case 989:if(We.charCodeAt(3)!==45||We.charCodeAt(4)===122)break;case 931:case 953:if(rt.test(Tn)===!0)return(it=Tn.substring(Tn.indexOf(":")+1)).charCodeAt(0)===115?tt(Tn.replace("stretch","fill-available"),An,Zt,ot).replace(":fill-available",":stretch"):We.replace(it,"-webkit-"+it)+We.replace(it,"-moz-"+it.replace("fill-",""))+We;break;case 962:if(We="-webkit-"+We+(We.charCodeAt(5)===102?"-ms-"+We:"")+We,Zt+ot===211&&We.charCodeAt(13)===105&&0<We.indexOf("transform",10))return We.substring(0,We.indexOf(";",27)+1).replace(hn,"$1-webkit-$2")+We}return We}function ke(Tn,An){var Zt=Tn.indexOf(An===1?":":"{"),ot=Tn.substring(0,An!==3?Zt:10);return Zt=Tn.substring(Zt+1,Tn.length-1),Ke(An!==2?ot:ot.replace(Xt,"$1"),Zt,An)}function Oe(Tn,An){var Zt=tt(An,An.charCodeAt(0),An.charCodeAt(1),An.charCodeAt(2));return Zt!==An+";"?Zt.replace(lt," or ($1)").substring(4):"("+An+")"}function je(Tn,An,Zt,ot,We,Ft,it,qt,vn,fn){for(var Tt=0,dn=An,mn;Tt<wt;++Tt)switch(mn=en[Tt].call(ut,Tn,dn,Zt,ot,We,Ft,it,qt,vn,fn)){case void 0:case!1:case!0:case null:break;default:dn=mn}if(dn!==An)return dn}function Et(Tn){switch(Tn){case void 0:case null:wt=en.length=0;break;default:if(typeof Tn=="function")en[wt++]=Tn;else if(typeof Tn=="object")for(var An=0,Zt=Tn.length;An<Zt;++An)Et(Tn[An]);else Ut=!!Tn|0}return Et}function ct(Tn){return Tn=Tn.prefix,Tn!==void 0&&(Ke=null,Tn?typeof Tn!="function"?ze=1:(ze=2,Ke=Tn):ze=0),ct}function ut(Tn,An){var Zt=Tn;if(33>Zt.charCodeAt(0)&&(Zt=Zt.trim()),on=Zt,Zt=[on],0<wt){var ot=je(-1,An,Zt,Zt,sn,rn,0,0,0,0);ot!==void 0&&typeof ot=="string"&&(An=ot)}var We=Ce(st,Zt,An,0,0);return 0<wt&&(ot=je(-2,We,Zt,Zt,sn,rn,We.length,0,0,0),ot!==void 0&&(We=ot)),on="",Jn=0,rn=sn=1,We}var Ne=/^\0+/g,mt=/[\0\r\f]/g,bt=/: */g,Gt=/zoo|gra/,hn=/([,: ])(transform)/g,Yt=/,\r+?/g,Bt=/([\t\r\n ])*\f?&/g,Lt=/@(k\w+)\s*(\S*)\s*/,zt=/::(place)/g,Kt=/:(read-only)/g,vt=/[svh]\w+-[tblr]{2}/,Ve=/\(\s*(.*)\s*\)/g,lt=/([\s\S]*?);/g,at=/-self|flex-/g,Xt=/[^]*?(:[rp][el]a[\w-]+)[^]*/,rt=/stretch|:\s*\w+\-(?:conte|avail)/,Rt=/([^-])(image-set\()/,rn=1,sn=1,Jn=0,ze=1,st=[],en=[],wt=0,Ke=null,Ut=0,on="";return ut.use=Et,ut.set=ct,It!==void 0&&ct(It),ut}const l=v;var h="/*|*/",p=h+"}";function d(It){It&&f.current.insert(It+"}")}var f={current:null},g=function(Ce,Ae,$e,tt,ke,Oe,je,Et,ct,ut){switch(Ce){case 1:{switch(Ae.charCodeAt(0)){case 64:return f.current.insert(Ae+";"),"";case 108:if(Ae.charCodeAt(2)===98)return""}break}case 2:{if(Et===0)return Ae+h;break}case 3:switch(Et){case 102:case 112:return f.current.insert($e[0]+Ae),"";default:return Ae+(ut===0?h:"")}case-2:Ae.split(p).forEach(d)}},y=function(Ce){Ce===void 0&&(Ce={});var Ae=Ce.key||"css",$e;Ce.prefix!==void 0&&($e={prefix:Ce.prefix});var tt=new l($e),ke={},Oe;{Oe=Ce.container||document.head;var je=document.querySelectorAll("style[data-emotion-"+Ae+"]");Array.prototype.forEach.call(je,function(mt){var bt=mt.getAttribute("data-emotion-"+Ae);bt.split(" ").forEach(function(Gt){ke[Gt]=!0}),mt.parentNode!==Oe&&Oe.appendChild(mt)})}var Et;if(tt.use(Ce.stylisPlugins)(g),Et=function(bt,Gt,hn,Yt){var Bt=Gt.name;if(f.current=hn,!1)var Lt;tt(bt,Gt.styles),Yt&&(Ne.inserted[Bt]=!0)},!1)var ct,ut;var Ne={key:Ae,sheet:new u({key:Ae,container:Oe,nonce:Ce.nonce,speedy:Ce.speedy}),nonce:Ce.nonce,inserted:ke,registered:{},insert:Et};return Ne};const b=y;function E(It){for(var Ce=0,Ae,$e=0,tt=It.length;tt>=4;++$e,tt-=4)Ae=It.charCodeAt($e)&255|(It.charCodeAt(++$e)&255)<<8|(It.charCodeAt(++$e)&255)<<16|(It.charCodeAt(++$e)&255)<<24,Ae=(Ae&65535)*1540483477+((Ae>>>16)*59797<<16),Ae^=Ae>>>24,Ce=(Ae&65535)*1540483477+((Ae>>>16)*59797<<16)^(Ce&65535)*1540483477+((Ce>>>16)*59797<<16);switch(tt){case 3:Ce^=(It.charCodeAt($e+2)&255)<<16;case 2:Ce^=(It.charCodeAt($e+1)&255)<<8;case 1:Ce^=It.charCodeAt($e)&255,Ce=(Ce&65535)*1540483477+((Ce>>>16)*59797<<16)}return Ce^=Ce>>>13,Ce=(Ce&65535)*1540483477+((Ce>>>16)*59797<<16),((Ce^Ce>>>15)>>>0).toString(36)}const S=E;var w={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 x=w;function P(It){var Ce={};return function(Ae){return Ce[Ae]===void 0&&(Ce[Ae]=It(Ae)),Ce[Ae]}}const R=P;var T=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,A="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",I=/[A-Z]|^ms/g,N=/_EMO_([^_]+?)_([^]*?)_EMO_/g,K=function(Ce){return Ce.charCodeAt(1)===45},_=function(Ce){return Ce!=null&&typeof Ce!="boolean"},W=R(function(It){return K(It)?It:It.replace(I,"-$&").toLowerCase()}),j=function(Ce,Ae){switch(Ce){case"animation":case"animationName":if(typeof Ae=="string")return Ae.replace(N,function($e,tt,ke){return ce={name:tt,styles:ke,next:ce},tt})}return x[Ce]!==1&&!K(Ce)&&typeof Ae=="number"&&Ae!==0?Ae+"px":Ae};if(!1)var re,X,Z,J,q,L;var $=!0;function k(It,Ce,Ae,$e){if(Ae==null)return"";if(Ae.__emotion_styles!==void 0)return Ae;switch(typeof Ae){case"boolean":return"";case"object":{if(Ae.anim===1)return ce={name:Ae.name,styles:Ae.styles,next:ce},Ae.name;if(Ae.styles!==void 0){var tt=Ae.next;if(tt!==void 0)for(;tt!==void 0;)ce={name:tt.name,styles:tt.styles,next:ce},tt=tt.next;var ke=Ae.styles+";";return ke}return F(It,Ce,Ae)}case"function":{if(It!==void 0){var Oe=ce,je=Ae(It);return ce=Oe,k(It,Ce,je,$e)}break}case"string":if(!1)var Et,ct;break}if(Ce==null)return Ae;var ut=Ce[Ae];return ut!==void 0&&!$e?ut:Ae}function F(It,Ce,Ae){var $e="";if(Array.isArray(Ae))for(var tt=0;tt<Ae.length;tt++)$e+=k(It,Ce,Ae[tt],!1);else for(var ke in Ae){var Oe=Ae[ke];if(typeof Oe!="object")Ce!=null&&Ce[Oe]!==void 0?$e+=ke+"{"+Ce[Oe]+"}":_(Oe)&&($e+=W(ke)+":"+j(ke,Oe)+";");else if(Array.isArray(Oe)&&typeof Oe[0]=="string"&&(Ce==null||Ce[Oe[0]]===void 0))for(var je=0;je<Oe.length;je++)_(Oe[je])&&($e+=W(ke)+":"+j(ke,Oe[je])+";");else{var Et=k(It,Ce,Oe,!1);switch(ke){case"animation":case"animationName":{$e+=W(ke)+":"+Et+";";break}default:$e+=ke+"{"+Et+"}"}}}return $e}var V=/label:\s*([^\s;\n{]+)\s*;/g,pe,ce,G=function(Ce,Ae,$e){if(Ce.length===1&&typeof Ce[0]=="object"&&Ce[0]!==null&&Ce[0].styles!==void 0)return Ce[0];var tt=!0,ke="";ce=void 0;var Oe=Ce[0];Oe==null||Oe.raw===void 0?(tt=!1,ke+=k($e,Ae,Oe,!1)):ke+=Oe[0];for(var je=1;je<Ce.length;je++)ke+=k($e,Ae,Ce[je],ke.charCodeAt(ke.length-1)===46),tt&&(ke+=Oe[je]);var Et;V.lastIndex=0;for(var ct="",ut;(ut=V.exec(ke))!==null;)ct+="-"+ut[1];var Ne=S(ke)+ct;return{name:Ne,styles:ke,next:ce}},te=!0;function ie(It,Ce,Ae){var $e="";return Ae.split(" ").forEach(function(tt){It[tt]!==void 0?Ce.push(It[tt]):$e+=tt+" "}),$e}var fe=function(Ce,Ae,$e){var tt=Ce.key+"-"+Ae.name;if(($e===!1||te===!1&&Ce.compat!==void 0)&&Ce.registered[tt]===void 0&&(Ce.registered[tt]=Ae.styles),Ce.inserted[Ae.name]===void 0){var ke=Ae;do{var Oe=Ce.insert("."+tt,ke,Ce.sheet,!0);ke=ke.next}while(ke!==void 0)}};function Se(It,Ce){if(It.inserted[Ce.name]===void 0)return It.insert("",Ce,It.sheet,!0)}function he(It,Ce,Ae){var $e=[],tt=ie(It,$e,Ae);return $e.length<2?Ae:tt+Ce($e)}var me=function(Ce){var Ae=b(Ce);Ae.sheet.speedy=function(je){this.isSpeedy=je},Ae.compat=!0;var $e=function(){for(var Et=arguments.length,ct=new Array(Et),ut=0;ut<Et;ut++)ct[ut]=arguments[ut];var Ne=G(ct,Ae.registered,void 0);return fe(Ae,Ne,!1),Ae.key+"-"+Ne.name},tt=function(){for(var Et=arguments.length,ct=new Array(Et),ut=0;ut<Et;ut++)ct[ut]=arguments[ut];var Ne=G(ct,Ae.registered),mt="animation-"+Ne.name;return Se(Ae,{name:Ne.name,styles:"@keyframes "+mt+"{"+Ne.styles+"}"}),mt},ke=function(){for(var Et=arguments.length,ct=new Array(Et),ut=0;ut<Et;ut++)ct[ut]=arguments[ut];var Ne=G(ct,Ae.registered);Se(Ae,Ne)},Oe=function(){for(var Et=arguments.length,ct=new Array(Et),ut=0;ut<Et;ut++)ct[ut]=arguments[ut];return he(Ae.registered,$e,_e(ct))};return{css:$e,cx:Oe,injectGlobal:ke,keyframes:tt,hydrate:function(Et){Et.forEach(function(ct){Ae.inserted[ct]=!0})},flush:function(){Ae.registered={},Ae.inserted={},Ae.sheet.flush()},sheet:Ae.sheet,cache:Ae,getRegisteredStyles:ie.bind(null,Ae.registered),merge:he.bind(null,Ae.registered,$e)}},_e=function It(Ce){for(var Ae="",$e=0;$e<Ce.length;$e++){var tt=Ce[$e];if(tt!=null){var ke=void 0;switch(typeof tt){case"boolean":break;case"object":{if(Array.isArray(tt))ke=It(tt);else{ke="";for(var Oe in tt)tt[Oe]&&Oe&&(ke&&(ke+=" "),ke+=Oe)}break}default:ke=tt}ke&&(Ae&&(Ae+=" "),Ae+=ke)}}return Ae},Ge=me(),ht=Ge.flush,nt=Ge.hydrate,Re=Ge.cx,ue=Ge.merge,ae=Ge.getRegisteredStyles,ve=Ge.injectGlobal,Me=Ge.keyframes,Ye=Ge.css,qe=Ge.sheet,At=Ge.cache},59269:function(C,c,t){C=t.nmd(C);var i;/*! https://mths.be/esrever v0.2.0 by @mathias */(function(s){var u=c,v=C&&C.exports==u&&C,l=typeof t.g=="object"&&t.g;(l.global===l||l.window===l)&&(s=l);var h=/([\0-\u02FF\u0370-\u1AAF\u1B00-\u1DBF\u1E00-\u20CF\u2100-\uD7FF\uE000-\uFE1F\uFE30-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])([\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]+)/g,p=/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g,d=function(y){y=y.replace(h,function(S,w,x){return d(x)+w}).replace(p,"$2$1");for(var b="",E=y.length;E--;)b+=y.charAt(E);return b},f={version:"0.2.0",reverse:d};if(!0)i=function(){return f}.call(c,t,c,C),i!==void 0&&(C.exports=i);else var g})(this)},24769:C=>{"use strict";var c=Object.prototype.hasOwnProperty,t="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(t=!1));function s(h,p,d){this.fn=h,this.context=p,this.once=d||!1}function u(h,p,d,f,g){if(typeof d!="function")throw new TypeError("The listener must be a function");var y=new s(d,f||h,g),b=t?t+p:p;return h._events[b]?h._events[b].fn?h._events[b]=[h._events[b],y]:h._events[b].push(y):(h._events[b]=y,h._eventsCount++),h}function v(h,p){--h._eventsCount===0?h._events=new i:delete h._events[p]}function l(){this._events=new i,this._eventsCount=0}l.prototype.eventNames=function(){var p=[],d,f;if(this._eventsCount===0)return p;for(f in d=this._events)c.call(d,f)&&p.push(t?f.slice(1):f);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(d)):p},l.prototype.listeners=function(p){var d=t?t+p:p,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var g=0,y=f.length,b=new Array(y);g<y;g++)b[g]=f[g].fn;return b},l.prototype.listenerCount=function(p){var d=t?t+p:p,f=this._events[d];return f?f.fn?1:f.length:0},l.prototype.emit=function(p,d,f,g,y,b){var E=t?t+p:p;if(!this._events[E])return!1;var S=this._events[E],w=arguments.length,x,P;if(S.fn){switch(S.once&&this.removeListener(p,S.fn,void 0,!0),w){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,d),!0;case 3:return S.fn.call(S.context,d,f),!0;case 4:return S.fn.call(S.context,d,f,g),!0;case 5:return S.fn.call(S.context,d,f,g,y),!0;case 6:return S.fn.call(S.context,d,f,g,y,b),!0}for(P=1,x=new Array(w-1);P<w;P++)x[P-1]=arguments[P];S.fn.apply(S.context,x)}else{var R=S.length,T;for(P=0;P<R;P++)switch(S[P].once&&this.removeListener(p,S[P].fn,void 0,!0),w){case 1:S[P].fn.call(S[P].context);break;case 2:S[P].fn.call(S[P].context,d);break;case 3:S[P].fn.call(S[P].context,d,f);break;case 4:S[P].fn.call(S[P].context,d,f,g);break;default:if(!x)for(T=1,x=new Array(w-1);T<w;T++)x[T-1]=arguments[T];S[P].fn.apply(S[P].context,x)}}return!0},l.prototype.on=function(p,d,f){return u(this,p,d,f,!1)},l.prototype.once=function(p,d,f){return u(this,p,d,f,!0)},l.prototype.removeListener=function(p,d,f,g){var y=t?t+p:p;if(!this._events[y])return this;if(!d)return v(this,y),this;var b=this._events[y];if(b.fn)b.fn===d&&(!g||b.once)&&(!f||b.context===f)&&v(this,y);else{for(var E=0,S=[],w=b.length;E<w;E++)(b[E].fn!==d||g&&!b[E].once||f&&b[E].context!==f)&&S.push(b[E]);S.length?this._events[y]=S.length===1?S[0]:S:v(this,y)}return this},l.prototype.removeAllListeners=function(p){var d;return p?(d=t?t+p:p,this._events[d]&&v(this,d)):(this._events=new i,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=t,l.EventEmitter=l,C.exports=l},23779:C=>{"use strict";var c=typeof Reflect=="object"?Reflect:null,t=c&&typeof c.apply=="function"?c.apply:function(A,I,N){return Function.prototype.apply.call(A,I,N)},i;c&&typeof c.ownKeys=="function"?i=c.ownKeys:Object.getOwnPropertySymbols?i=function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))}:i=function(A){return Object.getOwnPropertyNames(A)};function s(T){console&&console.warn&&console.warn(T)}var u=Number.isNaN||function(A){return A!==A};function v(){v.init.call(this)}C.exports=v,C.exports.once=x,v.EventEmitter=v,v.prototype._events=void 0,v.prototype._eventsCount=0,v.prototype._maxListeners=void 0;var l=10;function h(T){if(typeof T!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof T)}Object.defineProperty(v,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(T){if(typeof T!="number"||T<0||u(T))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+T+".");l=T}}),v.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},v.prototype.setMaxListeners=function(A){if(typeof A!="number"||A<0||u(A))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this};function p(T){return T._maxListeners===void 0?v.defaultMaxListeners:T._maxListeners}v.prototype.getMaxListeners=function(){return p(this)},v.prototype.emit=function(A){for(var I=[],N=1;N<arguments.length;N++)I.push(arguments[N]);var K=A==="error",_=this._events;if(_!==void 0)K=K&&_.error===void 0;else if(!K)return!1;if(K){var W;if(I.length>0&&(W=I[0]),W instanceof Error)throw W;var j=new Error("Unhandled error."+(W?" ("+W.message+")":""));throw j.context=W,j}var re=_[A];if(re===void 0)return!1;if(typeof re=="function")t(re,this,I);else for(var X=re.length,Z=E(re,X),N=0;N<X;++N)t(Z[N],this,I);return!0};function d(T,A,I,N){var K,_,W;if(h(I),_=T._events,_===void 0?(_=T._events=Object.create(null),T._eventsCount=0):(_.newListener!==void 0&&(T.emit("newListener",A,I.listener?I.listener:I),_=T._events),W=_[A]),W===void 0)W=_[A]=I,++T._eventsCount;else if(typeof W=="function"?W=_[A]=N?[I,W]:[W,I]:N?W.unshift(I):W.push(I),K=p(T),K>0&&W.length>K&&!W.warned){W.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+W.length+" "+String(A)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=T,j.type=A,j.count=W.length,s(j)}return T}v.prototype.addListener=function(A,I){return d(this,A,I,!1)},v.prototype.on=v.prototype.addListener,v.prototype.prependListener=function(A,I){return d(this,A,I,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function g(T,A,I){var N={fired:!1,wrapFn:void 0,target:T,type:A,listener:I},K=f.bind(N);return K.listener=I,N.wrapFn=K,K}v.prototype.once=function(A,I){return h(I),this.on(A,g(this,A,I)),this},v.prototype.prependOnceListener=function(A,I){return h(I),this.prependListener(A,g(this,A,I)),this},v.prototype.removeListener=function(A,I){var N,K,_,W,j;if(h(I),K=this._events,K===void 0)return this;if(N=K[A],N===void 0)return this;if(N===I||N.listener===I)--this._eventsCount===0?this._events=Object.create(null):(delete K[A],K.removeListener&&this.emit("removeListener",A,N.listener||I));else if(typeof N!="function"){for(_=-1,W=N.length-1;W>=0;W--)if(N[W]===I||N[W].listener===I){j=N[W].listener,_=W;break}if(_<0)return this;_===0?N.shift():S(N,_),N.length===1&&(K[A]=N[0]),K.removeListener!==void 0&&this.emit("removeListener",A,j||I)}return this},v.prototype.off=v.prototype.removeListener,v.prototype.removeAllListeners=function(A){var I,N,K;if(N=this._events,N===void 0)return this;if(N.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):N[A]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete N[A]),this;if(arguments.length===0){var _=Object.keys(N),W;for(K=0;K<_.length;++K)W=_[K],W!=="removeListener"&&this.removeAllListeners(W);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(I=N[A],typeof I=="function")this.removeListener(A,I);else if(I!==void 0)for(K=I.length-1;K>=0;K--)this.removeListener(A,I[K]);return this};function y(T,A,I){var N=T._events;if(N===void 0)return[];var K=N[A];return K===void 0?[]:typeof K=="function"?I?[K.listener||K]:[K]:I?w(K):E(K,K.length)}v.prototype.listeners=function(A){return y(this,A,!0)},v.prototype.rawListeners=function(A){return y(this,A,!1)},v.listenerCount=function(T,A){return typeof T.listenerCount=="function"?T.listenerCount(A):b.call(T,A)},v.prototype.listenerCount=b;function b(T){var A=this._events;if(A!==void 0){var I=A[T];if(typeof I=="function")return 1;if(I!==void 0)return I.length}return 0}v.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function E(T,A){for(var I=new Array(A),N=0;N<A;++N)I[N]=T[N];return I}function S(T,A){for(;A+1<T.length;A++)T[A]=T[A+1];T.pop()}function w(T){for(var A=new Array(T.length),I=0;I<A.length;++I)A[I]=T[I].listener||T[I];return A}function x(T,A){return new Promise(function(I,N){function K(W){T.removeListener(A,_),N(W)}function _(){typeof T.removeListener=="function"&&T.removeListener("error",K),I([].slice.call(arguments))}R(T,A,_,{once:!0}),A!=="error"&&P(T,K,{once:!0})})}function P(T,A,I){typeof T.on=="function"&&R(T,"error",A,I)}function R(T,A,I,N){if(typeof T.on=="function")N.once?T.once(A,I):T.on(A,I);else if(typeof T.addEventListener=="function")T.addEventListener(A,function K(_){N.once&&T.removeEventListener(A,K),I(_)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof T)}},80888:(C,c,t)=>{var i;/*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. */(function(){"use strict";var s=!!(typeof window<"u"&&window.document&&window.document.createElement),u={canUseDOM:s,canUseWorkers:typeof Worker<"u",canUseEventListeners:s&&!!(window.addEventListener||window.attachEvent),canUseViewport:s&&!!window.screen};i=function(){return u}.call(c,t,c,C),i!==void 0&&(C.exports=i)})()},52131:C=>{"use strict";C.exports=function c(t,i){if(t===i)return!0;if(t&&i&&typeof t=="object"&&typeof i=="object"){if(t.constructor!==i.constructor)return!1;var s,u,v;if(Array.isArray(t)){if(s=t.length,s!=i.length)return!1;for(u=s;u--!==0;)if(!c(t[u],i[u]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if(v=Object.keys(t),s=v.length,s!==Object.keys(i).length)return!1;for(u=s;u--!==0;)if(!Object.prototype.hasOwnProperty.call(i,v[u]))return!1;for(u=s;u--!==0;){var l=v[u];if(!c(t[l],i[l]))return!1}return!0}return t!==t&&i!==i}},90277:function(C,c){(function(t,i){i(c)})(this,function(t){"use strict";var i=typeof WeakSet=="function",s=Object.keys;function u(_,W){return _===W||_!==_&&W!==W}function v(_){return _.constructor===Object||_.constructor==null}function l(_){return!!_&&typeof _.then=="function"}function h(_){return!!(_&&_.$$typeof)}function p(){var _=[];return{add:function(W){_.push(W)},has:function(W){return _.indexOf(W)!==-1}}}var d=function(_){return _?function(){return new WeakSet}:p}(i);function f(_){return function(j){var re=_||j;return function(Z,J,q){q===void 0&&(q=d());var L=!!Z&&typeof Z=="object",$=!!J&&typeof J=="object";if(L||$){var k=L&&q.has(Z),F=$&&q.has(J);if(k||F)return k&&F;L&&q.add(Z),$&&q.add(J)}return re(Z,J,q)}}}function g(_,W,j,re){var X=_.length;if(W.length!==X)return!1;for(;X-- >0;)if(!j(_[X],W[X],re))return!1;return!0}function y(_,W,j,re){var X=_.size===W.size;if(X&&_.size){var Z={};_.forEach(function(J,q){if(X){var L=!1,$=0;W.forEach(function(k,F){!L&&!Z[$]&&(L=j(q,F,re)&&j(J,k,re),L&&(Z[$]=!0)),$++}),X=L}})}return X}var b="_owner",E=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function S(_,W,j,re){var X=s(_),Z=X.length;if(s(W).length!==Z)return!1;if(Z)for(var J=void 0;Z-- >0;){if(J=X[Z],J===b){var q=h(_),L=h(W);if((q||L)&&q!==L)return!1}if(!E(W,J)||!j(_[J],W[J],re))return!1}return!0}function w(_,W){return _.source===W.source&&_.global===W.global&&_.ignoreCase===W.ignoreCase&&_.multiline===W.multiline&&_.unicode===W.unicode&&_.sticky===W.sticky&&_.lastIndex===W.lastIndex}function x(_,W,j,re){var X=_.size===W.size;if(X&&_.size){var Z={};_.forEach(function(J){if(X){var q=!1,L=0;W.forEach(function($){!q&&!Z[L]&&(q=j(J,$,re),q&&(Z[L]=!0)),L++}),X=q}})}return X}var P=typeof Map=="function",R=typeof Set=="function";function T(_){var W=typeof _=="function"?_(j):j;function j(re,X,Z){if(re===X)return!0;if(re&&X&&typeof re=="object"&&typeof X=="object"){if(v(re)&&v(X))return S(re,X,W,Z);var J=Array.isArray(re),q=Array.isArray(X);return J||q?J===q&&g(re,X,W,Z):(J=re instanceof Date,q=X instanceof Date,J||q?J===q&&u(re.getTime(),X.getTime()):(J=re instanceof RegExp,q=X instanceof RegExp,J||q?J===q&&w(re,X):l(re)||l(X)?re===X:P&&(J=re instanceof Map,q=X instanceof Map,J||q)?J===q&&y(re,X,W,Z):R&&(J=re instanceof Set,q=X instanceof Set,J||q)?J===q&&x(re,X,W,Z):S(re,X,W,Z)))}return re!==re&&X!==X}return j}var A=T(),I=T(function(){return u}),N=T(f()),K=T(f(u));t.circularDeepEqual=N,t.circularShallowEqual=K,t.createCustomEqual=T,t.deepEqual=A,t.sameValueZeroEqual=u,t.shallowEqual=I,Object.defineProperty(t,"__esModule",{value:!0})})},12008:(C,c)=>{"use strict";var t;t={value:!0};function i(u){return u}function s(u,v=i){if(u.length===0)return[];for(let h=1;h<u.length;h++)if(u[h].length<u[0].length){let p=u[0];u[0]=u[h],u[h]=p}const l=new Map;for(const h of u[0])l.set(v(h),1);for(let h=1;h<u.length;h++){let p=0;for(const d of u[h]){const f=v(d),g=l.get(f);g===h&&(l.set(f,g+1),p++)}if(p===0)return[]}return u[0].filter(h=>{const p=v(h),d=l.get(p);return d!==void 0&&l.set(p,0),d===u.length})}c.Z=s},49086:function(C,c,t){var i,s,u;(function(v,l){s=[],i=l,u=typeof i=="function"?i.apply(c,s):i,u!==void 0&&(C.exports=u)})(this,function(){"use strict";function v(y,b){return typeof b>"u"?b={autoBom:!1}:typeof b!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(y.type)?new Blob(["\uFEFF",y],{type:y.type}):y}function l(y,b,E){var S=new XMLHttpRequest;S.open("GET",y),S.responseType="blob",S.onload=function(){g(S.response,b,E)},S.onerror=function(){console.error("could not download file")},S.send()}function h(y){var b=new XMLHttpRequest;b.open("HEAD",y,!1);try{b.send()}catch{}return 200<=b.status&&299>=b.status}function p(y){try{y.dispatchEvent(new MouseEvent("click"))}catch{var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(b)}}var d=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof t.g=="object"&&t.g.global===t.g?t.g:void 0,f=d.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=d.saveAs||(typeof window!="object"||window!==d?function(){}:"download"in HTMLAnchorElement.prototype&&!f?function(y,b,E){var S=d.URL||d.webkitURL,w=document.createElement("a");b=b||y.name||"download",w.download=b,w.rel="noopener",typeof y=="string"?(w.href=y,w.origin===location.origin?p(w):h(w.href)?l(y,b,E):p(w,w.target="_blank")):(w.href=S.createObjectURL(y),setTimeout(function(){S.revokeObjectURL(w.href)},4e4),setTimeout(function(){p(w)},0))}:"msSaveOrOpenBlob"in navigator?function(y,b,E){if(b=b||y.name||"download",typeof y!="string")navigator.msSaveOrOpenBlob(v(y,E),b);else if(h(y))l(y,b,E);else{var S=document.createElement("a");S.href=y,S.target="_blank",setTimeout(function(){p(S)})}}:function(y,b,E,S){if(S=S||open("","_blank"),S&&(S.document.title=S.document.body.innerText="downloading..."),typeof y=="string")return l(y,b,E);var w=y.type==="application/octet-stream",x=/constructor/i.test(d.HTMLElement)||d.safari,P=/CriOS\/[\d]+/.test(navigator.userAgent);if((P||w&&x||f)&&typeof FileReader<"u"){var R=new FileReader;R.onloadend=function(){var I=R.result;I=P?I:I.replace(/^data:[^;]*;/,"data:attachment/file;"),S?S.location.href=I:location=I,S=null},R.readAsDataURL(y)}else{var T=d.URL||d.webkitURL,A=T.createObjectURL(y);S?S.location=A:location.href=A,S=null,setTimeout(function(){T.revokeObjectURL(A)},4e4)}});d.saveAs=g.saveAs=g,C.exports=g})},97423:C=>{C.exports=i;var c=9;function t(s){return s&&s.nodeType===c}function i(s){if(t(s))return s;if(t(s.ownerDocument))return s.ownerDocument;if(t(s.document))return s.document;if(s.parentNode)return i(s.parentNode);if(s.commonAncestorContainer)return i(s.commonAncestorContainer);if(s.startContainer)return i(s.startContainer);if(s.anchorNode)return i(s.anchorNode)}},77551:(C,c,t)=>{var i=t(97423);C.exports=v;var s=t(41566);function u(l){return l&&l.window===l}function v(l){if(u(l))return l;var h=i(l);if(s){h.parentWindow.execScript("document._parentWindow = window;","Javascript");var p=h._parentWindow;return h._parentWindow=null,p}else return h.defaultView||h.parentWindow}},41566:C=>{C.exports=!!document.attachEvent&&window!==document.parentWindow},10075:(C,c,t)=>{"use strict";t.d(c,{lX:()=>Z,q_:()=>V,ob:()=>P,PP:()=>ce,Ep:()=>x,Hp:()=>R});var i=t(94285);function s(G){return G.charAt(0)==="/"}function u(G,te){for(var ie=te,fe=ie+1,Se=G.length;fe<Se;ie+=1,fe+=1)G[ie]=G[fe];G.pop()}function v(G,te){te===void 0&&(te="");var ie=G&&G.split("/")||[],fe=te&&te.split("/")||[],Se=G&&s(G),he=te&&s(te),me=Se||he;if(G&&s(G)?fe=ie:ie.length&&(fe.pop(),fe=fe.concat(ie)),!fe.length)return"/";var _e;if(fe.length){var we=fe[fe.length-1];_e=we==="."||we===".."||we===""}else _e=!1;for(var Ge=0,ht=fe.length;ht>=0;ht--){var nt=fe[ht];nt==="."?u(fe,ht):nt===".."?(u(fe,ht),Ge++):Ge&&(u(fe,ht),Ge--)}if(!me)for(;Ge--;Ge)fe.unshift("..");me&&fe[0]!==""&&(!fe[0]||!s(fe[0]))&&fe.unshift("");var Re=fe.join("/");return _e&&Re.substr(-1)!=="/"&&(Re+="/"),Re}const l=v;function h(G){return G.valueOf?G.valueOf():Object.prototype.valueOf.call(G)}function p(G,te){if(G===te)return!0;if(G==null||te==null)return!1;if(Array.isArray(G))return Array.isArray(te)&&G.length===te.length&&G.every(function(Se,he){return p(Se,te[he])});if(typeof G=="object"||typeof te=="object"){var ie=h(G),fe=h(te);return ie!==G||fe!==te?p(ie,fe):Object.keys(Object.assign({},G,te)).every(function(Se){return p(G[Se],te[Se])})}return!1}const d=p;var f=t(25726);function g(G){return G.charAt(0)==="/"?G:"/"+G}function y(G){return G.charAt(0)==="/"?G.substr(1):G}function b(G,te){return G.toLowerCase().indexOf(te.toLowerCase())===0&&"/?#".indexOf(G.charAt(te.length))!==-1}function E(G,te){return b(G,te)?G.substr(te.length):G}function S(G){return G.charAt(G.length-1)==="/"?G.slice(0,-1):G}function w(G){var te=G||"/",ie="",fe="",Se=te.indexOf("#");Se!==-1&&(fe=te.substr(Se),te=te.substr(0,Se));var he=te.indexOf("?");return he!==-1&&(ie=te.substr(he),te=te.substr(0,he)),{pathname:te,search:ie==="?"?"":ie,hash:fe==="#"?"":fe}}function x(G){var te=G.pathname,ie=G.search,fe=G.hash,Se=te||"/";return ie&&ie!=="?"&&(Se+=ie.charAt(0)==="?"?ie:"?"+ie),fe&&fe!=="#"&&(Se+=fe.charAt(0)==="#"?fe:"#"+fe),Se}function P(G,te,ie,fe){var Se;typeof G=="string"?(Se=w(G),Se.state=te):(Se=(0,i.Z)({},G),Se.pathname===void 0&&(Se.pathname=""),Se.search?Se.search.charAt(0)!=="?"&&(Se.search="?"+Se.search):Se.search="",Se.hash?Se.hash.charAt(0)!=="#"&&(Se.hash="#"+Se.hash):Se.hash="",te!==void 0&&Se.state===void 0&&(Se.state=te));try{Se.pathname=decodeURI(Se.pathname)}catch(he){throw he instanceof URIError?new URIError('Pathname "'+Se.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):he}return ie&&(Se.key=ie),fe?Se.pathname?Se.pathname.charAt(0)!=="/"&&(Se.pathname=l(Se.pathname,fe.pathname)):Se.pathname=fe.pathname:Se.pathname||(Se.pathname="/"),Se}function R(G,te){return G.pathname===te.pathname&&G.search===te.search&&G.hash===te.hash&&G.key===te.key&&d(G.state,te.state)}function T(){var G=null;function te(me){return G=me,function(){G===me&&(G=null)}}function ie(me,_e,we,Ge){if(G!=null){var ht=typeof G=="function"?G(me,_e):G;typeof ht=="string"?typeof we=="function"?we(ht,Ge):Ge(!0):Ge(ht!==!1)}else Ge(!0)}var fe=[];function Se(me){var _e=!0;function we(){_e&&me.apply(void 0,arguments)}return fe.push(we),function(){_e=!1,fe=fe.filter(function(Ge){return Ge!==we})}}function he(){for(var me=arguments.length,_e=new Array(me),we=0;we<me;we++)_e[we]=arguments[we];fe.forEach(function(Ge){return Ge.apply(void 0,_e)})}return{setPrompt:te,confirmTransitionTo:ie,appendListener:Se,notifyListeners:he}}var A=!!(typeof window<"u"&&window.document&&window.document.createElement);function I(G,te){te(window.confirm(G))}function N(){var G=window.navigator.userAgent;return(G.indexOf("Android 2.")!==-1||G.indexOf("Android 4.0")!==-1)&&G.indexOf("Mobile Safari")!==-1&&G.indexOf("Chrome")===-1&&G.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function K(){return window.navigator.userAgent.indexOf("Trident")===-1}function _(){return window.navigator.userAgent.indexOf("Firefox")===-1}function W(G){return G.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var j="popstate",re="hashchange";function X(){try{return window.history.state||{}}catch{return{}}}function Z(G){G===void 0&&(G={}),A||(0,f.Z)(!1);var te=window.history,ie=N(),fe=!K(),Se=G,he=Se.forceRefresh,me=he===void 0?!1:he,_e=Se.getUserConfirmation,we=_e===void 0?I:_e,Ge=Se.keyLength,ht=Ge===void 0?6:Ge,nt=G.basename?S(g(G.basename)):"";function Re(hn){var Yt=hn||{},Bt=Yt.key,Lt=Yt.state,zt=window.location,Kt=zt.pathname,vt=zt.search,Ve=zt.hash,lt=Kt+vt+Ve;return nt&&(lt=E(lt,nt)),P(lt,Lt,Bt)}function ue(){return Math.random().toString(36).substr(2,ht)}var ae=T();function ve(hn){(0,i.Z)(Gt,hn),Gt.length=te.length,ae.notifyListeners(Gt.location,Gt.action)}function Me(hn){W(hn)||At(Re(hn.state))}function Ye(){At(Re(X()))}var qe=!1;function At(hn){if(qe)qe=!1,ve();else{var Yt="POP";ae.confirmTransitionTo(hn,Yt,we,function(Bt){Bt?ve({action:Yt,location:hn}):It(hn)})}}function It(hn){var Yt=Gt.location,Bt=Ae.indexOf(Yt.key);Bt===-1&&(Bt=0);var Lt=Ae.indexOf(hn.key);Lt===-1&&(Lt=0);var zt=Bt-Lt;zt&&(qe=!0,Oe(zt))}var Ce=Re(X()),Ae=[Ce.key];function $e(hn){return nt+x(hn)}function tt(hn,Yt){var Bt="PUSH",Lt=P(hn,Yt,ue(),Gt.location);ae.confirmTransitionTo(Lt,Bt,we,function(zt){if(zt){var Kt=$e(Lt),vt=Lt.key,Ve=Lt.state;if(ie)if(te.pushState({key:vt,state:Ve},null,Kt),me)window.location.href=Kt;else{var lt=Ae.indexOf(Gt.location.key),at=Ae.slice(0,lt+1);at.push(Lt.key),Ae=at,ve({action:Bt,location:Lt})}else window.location.href=Kt}})}function ke(hn,Yt){var Bt="REPLACE",Lt=P(hn,Yt,ue(),Gt.location);ae.confirmTransitionTo(Lt,Bt,we,function(zt){if(zt){var Kt=$e(Lt),vt=Lt.key,Ve=Lt.state;if(ie)if(te.replaceState({key:vt,state:Ve},null,Kt),me)window.location.replace(Kt);else{var lt=Ae.indexOf(Gt.location.key);lt!==-1&&(Ae[lt]=Lt.key),ve({action:Bt,location:Lt})}else window.location.replace(Kt)}})}function Oe(hn){te.go(hn)}function je(){Oe(-1)}function Et(){Oe(1)}var ct=0;function ut(hn){ct+=hn,ct===1&&hn===1?(window.addEventListener(j,Me),fe&&window.addEventListener(re,Ye)):ct===0&&(window.removeEventListener(j,Me),fe&&window.removeEventListener(re,Ye))}var Ne=!1;function mt(hn){hn===void 0&&(hn=!1);var Yt=ae.setPrompt(hn);return Ne||(ut(1),Ne=!0),function(){return Ne&&(Ne=!1,ut(-1)),Yt()}}function bt(hn){var Yt=ae.appendListener(hn);return ut(1),function(){ut(-1),Yt()}}var Gt={length:te.length,action:"POP",location:Ce,createHref:$e,push:tt,replace:ke,go:Oe,goBack:je,goForward:Et,block:mt,listen:bt};return Gt}var J="hashchange",q={hashbang:{encodePath:function(te){return te.charAt(0)==="!"?te:"!/"+y(te)},decodePath:function(te){return te.charAt(0)==="!"?te.substr(1):te}},noslash:{encodePath:y,decodePath:g},slash:{encodePath:g,decodePath:g}};function L(G){var te=G.indexOf("#");return te===-1?G:G.slice(0,te)}function $(){var G=window.location.href,te=G.indexOf("#");return te===-1?"":G.substring(te+1)}function k(G){window.location.hash=G}function F(G){window.location.replace(L(window.location.href)+"#"+G)}function V(G){G===void 0&&(G={}),A||(0,f.Z)(!1);var te=window.history,ie=_(),fe=G,Se=fe.getUserConfirmation,he=Se===void 0?I:Se,me=fe.hashType,_e=me===void 0?"slash":me,we=G.basename?S(g(G.basename)):"",Ge=q[_e],ht=Ge.encodePath,nt=Ge.decodePath;function Re(){var Bt=nt($());return we&&(Bt=E(Bt,we)),P(Bt)}var ue=T();function ae(Bt){(0,i.Z)(Yt,Bt),Yt.length=te.length,ue.notifyListeners(Yt.location,Yt.action)}var ve=!1,Me=null;function Ye(Bt,Lt){return Bt.pathname===Lt.pathname&&Bt.search===Lt.search&&Bt.hash===Lt.hash}function qe(){var Bt=$(),Lt=ht(Bt);if(Bt!==Lt)F(Lt);else{var zt=Re(),Kt=Yt.location;if(!ve&&Ye(Kt,zt)||Me===x(zt))return;Me=null,At(zt)}}function At(Bt){if(ve)ve=!1,ae();else{var Lt="POP";ue.confirmTransitionTo(Bt,Lt,he,function(zt){zt?ae({action:Lt,location:Bt}):It(Bt)})}}function It(Bt){var Lt=Yt.location,zt=tt.lastIndexOf(x(Lt));zt===-1&&(zt=0);var Kt=tt.lastIndexOf(x(Bt));Kt===-1&&(Kt=0);var vt=zt-Kt;vt&&(ve=!0,Et(vt))}var Ce=$(),Ae=ht(Ce);Ce!==Ae&&F(Ae);var $e=Re(),tt=[x($e)];function ke(Bt){var Lt=document.querySelector("base"),zt="";return Lt&&Lt.getAttribute("href")&&(zt=L(window.location.href)),zt+"#"+ht(we+x(Bt))}function Oe(Bt,Lt){var zt="PUSH",Kt=P(Bt,void 0,void 0,Yt.location);ue.confirmTransitionTo(Kt,zt,he,function(vt){if(vt){var Ve=x(Kt),lt=ht(we+Ve),at=$()!==lt;if(at){Me=Ve,k(lt);var Xt=tt.lastIndexOf(x(Yt.location)),rt=tt.slice(0,Xt+1);rt.push(Ve),tt=rt,ae({action:zt,location:Kt})}else ae()}})}function je(Bt,Lt){var zt="REPLACE",Kt=P(Bt,void 0,void 0,Yt.location);ue.confirmTransitionTo(Kt,zt,he,function(vt){if(vt){var Ve=x(Kt),lt=ht(we+Ve),at=$()!==lt;at&&(Me=Ve,F(lt));var Xt=tt.indexOf(x(Yt.location));Xt!==-1&&(tt[Xt]=Ve),ae({action:zt,location:Kt})}})}function Et(Bt){te.go(Bt)}function ct(){Et(-1)}function ut(){Et(1)}var Ne=0;function mt(Bt){Ne+=Bt,Ne===1&&Bt===1?window.addEventListener(J,qe):Ne===0&&window.removeEventListener(J,qe)}var bt=!1;function Gt(Bt){Bt===void 0&&(Bt=!1);var Lt=ue.setPrompt(Bt);return bt||(mt(1),bt=!0),function(){return bt&&(bt=!1,mt(-1)),Lt()}}function hn(Bt){var Lt=ue.appendListener(Bt);return mt(1),function(){mt(-1),Lt()}}var Yt={length:te.length,action:"POP",location:$e,createHref:ke,push:Oe,replace:je,go:Et,goBack:ct,goForward:ut,block:Gt,listen:hn};return Yt}function pe(G,te,ie){return Math.min(Math.max(G,te),ie)}function ce(G){G===void 0&&(G={});var te=G,ie=te.getUserConfirmation,fe=te.initialEntries,Se=fe===void 0?["/"]:fe,he=te.initialIndex,me=he===void 0?0:he,_e=te.keyLength,we=_e===void 0?6:_e,Ge=T();function ht(tt){(0,i.Z)($e,tt),$e.length=$e.entries.length,Ge.notifyListeners($e.location,$e.action)}function nt(){return Math.random().toString(36).substr(2,we)}var Re=pe(me,0,Se.length-1),ue=Se.map(function(tt){return typeof tt=="string"?P(tt,void 0,nt()):P(tt,void 0,tt.key||nt())}),ae=x;function ve(tt,ke){var Oe="PUSH",je=P(tt,ke,nt(),$e.location);Ge.confirmTransitionTo(je,Oe,ie,function(Et){if(Et){var ct=$e.index,ut=ct+1,Ne=$e.entries.slice(0);Ne.length>ut?Ne.splice(ut,Ne.length-ut,je):Ne.push(je),ht({action:Oe,location:je,index:ut,entries:Ne})}})}function Me(tt,ke){var Oe="REPLACE",je=P(tt,ke,nt(),$e.location);Ge.confirmTransitionTo(je,Oe,ie,function(Et){Et&&($e.entries[$e.index]=je,ht({action:Oe,location:je}))})}function Ye(tt){var ke=pe($e.index+tt,0,$e.entries.length-1),Oe="POP",je=$e.entries[ke];Ge.confirmTransitionTo(je,Oe,ie,function(Et){Et?ht({action:Oe,location:je,index:ke}):ht()})}function qe(){Ye(-1)}function At(){Ye(1)}function It(tt){var ke=$e.index+tt;return ke>=0&&ke<$e.entries.length}function Ce(tt){return tt===void 0&&(tt=!1),Ge.setPrompt(tt)}function Ae(tt){return Ge.appendListener(tt)}var $e={length:ue.length,action:"POP",location:ue[Re],index:Re,entries:ue,createHref:ae,push:ve,replace:Me,go:Ye,goBack:qe,goForward:At,canGo:It,block:Ce,listen:Ae};return $e}},43313:(C,c,t)=>{"use strict";var i=t(54660),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},u={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},v={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},h={};h[i.ForwardRef]=v,h[i.Memo]=l;function p(w){return i.isMemo(w)?l:h[w.$$typeof]||s}var d=Object.defineProperty,f=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,E=Object.prototype;function S(w,x,P){if(typeof x!="string"){if(E){var R=b(x);R&&R!==E&&S(w,R,P)}var T=f(x);g&&(T=T.concat(g(x)));for(var A=p(w),I=p(x),N=0;N<T.length;++N){var K=T[N];if(!u[K]&&!(P&&P[K])&&!(I&&I[K])&&!(A&&A[K])){var _=y(x,K);try{d(w,K,_)}catch{}}}}return w}C.exports=S},77592:(C,c,t)=>{"use strict";t.r(c),t.d(c,{Collection:()=>_,Iterable:()=>$n,List:()=>Ee,Map:()=>za,OrderedMap:()=>Li,OrderedSet:()=>fu,PairSorting:()=>ql,Range:()=>yo,Record:()=>Wn,Repeat:()=>pt,Seq:()=>ue,Set:()=>nr,Stack:()=>Ms,default:()=>pn,fromJS:()=>_t,get:()=>$r,getIn:()=>Ma,has:()=>_r,hasIn:()=>Nr,hash:()=>Gt,is:()=>ut,isAssociative:()=>K,isCollection:()=>R,isImmutable:()=>L,isIndexed:()=>N,isKeyed:()=>A,isList:()=>us,isMap:()=>je,isOrdered:()=>k,isOrderedMap:()=>Et,isOrderedSet:()=>aa,isPlainObject:()=>wa,isRecord:()=>q,isSeq:()=>Z,isSet:()=>Pi,isStack:()=>Uo,isValueObject:()=>ct,merge:()=>Ri,mergeDeep:()=>ia,mergeDeepWith:()=>Da,mergeWith:()=>Ki,remove:()=>xt,removeIn:()=>jn,set:()=>On,setIn:()=>En,update:()=>Mr,updateIn:()=>Zn,version:()=>Hi});var i="delete",s=5,u=1<<s,v=u-1,l={};function h(){return{value:!1}}function p(ee){ee&&(ee.value=!0)}function d(){}function f(ee){return ee.size===void 0&&(ee.size=ee.__iterate(y)),ee.size}function g(ee,oe){if(typeof oe!="number"){var De=oe>>>0;if(""+De!==oe||De===4294967295)return NaN;oe=De}return oe<0?f(ee)+oe:oe}function y(){return!0}function b(ee,oe,De){return(ee===0&&!x(ee)||De!==void 0&&ee<=-De)&&(oe===void 0||De!==void 0&&oe>=De)}function E(ee,oe){return w(ee,oe,0)}function S(ee,oe){return w(ee,oe,oe)}function w(ee,oe,De){return ee===void 0?De:x(ee)?oe===1/0?oe:Math.max(0,oe+ee)|0:oe===void 0||oe===ee?ee:Math.min(oe,ee)|0}function x(ee){return ee<0||ee===0&&1/ee===-1/0}var P="@@__IMMUTABLE_ITERABLE__@@";function R(ee){return!!(ee&&ee[P])}var T="@@__IMMUTABLE_KEYED__@@";function A(ee){return!!(ee&&ee[T])}var I="@@__IMMUTABLE_INDEXED__@@";function N(ee){return!!(ee&&ee[I])}function K(ee){return A(ee)||N(ee)}var _=function(oe){return R(oe)?oe:ue(oe)},W=function(ee){function oe(De){return A(De)?De:ae(De)}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe}(_),j=function(ee){function oe(De){return N(De)?De:ve(De)}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe}(_),re=function(ee){function oe(De){return R(De)&&!K(De)?De:Me(De)}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe}(_);_.Keyed=W,_.Indexed=j,_.Set=re;var X="@@__IMMUTABLE_SEQ__@@";function Z(ee){return!!(ee&&ee[X])}var J="@@__IMMUTABLE_RECORD__@@";function q(ee){return!!(ee&&ee[J])}function L(ee){return R(ee)||q(ee)}var $="@@__IMMUTABLE_ORDERED__@@";function k(ee){return!!(ee&&ee[$])}var F=0,V=1,pe=2,ce=typeof Symbol=="function"&&Symbol.iterator,G="@@iterator",te=ce||G,ie=function(oe){this.next=oe};ie.prototype.toString=function(){return"[Iterator]"},ie.KEYS=F,ie.VALUES=V,ie.ENTRIES=pe,ie.prototype.inspect=ie.prototype.toSource=function(){return this.toString()},ie.prototype[te]=function(){return this};function fe(ee,oe,De,Be){var gt=ee===0?oe:ee===1?De:[oe,De];return Be?Be.value=gt:Be={value:gt,done:!1},Be}function Se(){return{value:void 0,done:!0}}function he(ee){return Array.isArray(ee)?!0:!!we(ee)}function me(ee){return ee&&typeof ee.next=="function"}function _e(ee){var oe=we(ee);return oe&&oe.call(ee)}function we(ee){var oe=ee&&(ce&&ee[ce]||ee[G]);if(typeof oe=="function")return oe}function Ge(ee){var oe=we(ee);return oe&&oe===ee.entries}function ht(ee){var oe=we(ee);return oe&&oe===ee.keys}var nt=Object.prototype.hasOwnProperty;function Re(ee){return Array.isArray(ee)||typeof ee=="string"?!0:ee&&typeof ee=="object"&&Number.isInteger(ee.length)&&ee.length>=0&&(ee.length===0?Object.keys(ee).length===1:ee.hasOwnProperty(ee.length-1))}var ue=function(ee){function oe(De){return De==null?Ce():L(De)?De.toSeq():tt(De)}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.prototype.toSeq=function(){return this},oe.prototype.toString=function(){return this.__toString("Seq {","}")},oe.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},oe.prototype.__iterate=function(Be,gt){var Ht=this._cache;if(Ht){for(var nn=Ht.length,Rn=0;Rn!==nn;){var Yn=Ht[gt?nn-++Rn:Rn++];if(Be(Yn[1],Yn[0],this)===!1)break}return Rn}return this.__iterateUncached(Be,gt)},oe.prototype.__iterator=function(Be,gt){var Ht=this._cache;if(Ht){var nn=Ht.length,Rn=0;return new ie(function(){if(Rn===nn)return Se();var Yn=Ht[gt?nn-++Rn:Rn++];return fe(Be,Yn[0],Yn[1])})}return this.__iteratorUncached(Be,gt)},oe}(_),ae=function(ee){function oe(De){return De==null?Ce().toKeyedSeq():R(De)?A(De)?De.toSeq():De.fromEntrySeq():q(De)?De.toSeq():Ae(De)}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.prototype.toKeyedSeq=function(){return this},oe}(ue),ve=function(ee){function oe(De){return De==null?Ce():R(De)?A(De)?De.entrySeq():De.toIndexedSeq():q(De)?De.toSeq().entrySeq():$e(De)}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.of=function(){return oe(arguments)},oe.prototype.toIndexedSeq=function(){return this},oe.prototype.toString=function(){return this.__toString("Seq [","]")},oe}(ue),Me=function(ee){function oe(De){return(R(De)&&!K(De)?De:ve(De)).toSetSeq()}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.of=function(){return oe(arguments)},oe.prototype.toSetSeq=function(){return this},oe}(ue);ue.isSeq=Z,ue.Keyed=ae,ue.Set=Me,ue.Indexed=ve,ue.prototype[X]=!0;var Ye=function(ee){function oe(De){this._array=De,this.size=De.length}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.prototype.get=function(Be,gt){return this.has(Be)?this._array[g(this,Be)]:gt},oe.prototype.__iterate=function(Be,gt){for(var Ht=this._array,nn=Ht.length,Rn=0;Rn!==nn;){var Yn=gt?nn-++Rn:Rn++;if(Be(Ht[Yn],Yn,this)===!1)break}return Rn},oe.prototype.__iterator=function(Be,gt){var Ht=this._array,nn=Ht.length,Rn=0;return new ie(function(){if(Rn===nn)return Se();var Yn=gt?nn-++Rn:Rn++;return fe(Be,Yn,Ht[Yn])})},oe}(ve),qe=function(ee){function oe(De){var Be=Object.keys(De).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(De):[]);this._object=De,this._keys=Be,this.size=Be.length}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.prototype.get=function(Be,gt){return gt!==void 0&&!this.has(Be)?gt:this._object[Be]},oe.prototype.has=function(Be){return nt.call(this._object,Be)},oe.prototype.__iterate=function(Be,gt){for(var Ht=this._object,nn=this._keys,Rn=nn.length,Yn=0;Yn!==Rn;){var gr=nn[gt?Rn-++Yn:Yn++];if(Be(Ht[gr],gr,this)===!1)break}return Yn},oe.prototype.__iterator=function(Be,gt){var Ht=this._object,nn=this._keys,Rn=nn.length,Yn=0;return new ie(function(){if(Yn===Rn)return Se();var gr=nn[gt?Rn-++Yn:Yn++];return fe(Be,gr,Ht[gr])})},oe}(ae);qe.prototype[$]=!0;var At=function(ee){function oe(De){this._collection=De,this.size=De.length||De.size}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.prototype.__iterateUncached=function(Be,gt){if(gt)return this.cacheResult().__iterate(Be,gt);var Ht=this._collection,nn=_e(Ht),Rn=0;if(me(nn))for(var Yn;!(Yn=nn.next()).done&&Be(Yn.value,Rn++,this)!==!1;);return Rn},oe.prototype.__iteratorUncached=function(Be,gt){if(gt)return this.cacheResult().__iterator(Be,gt);var Ht=this._collection,nn=_e(Ht);if(!me(nn))return new ie(Se);var Rn=0;return new ie(function(){var Yn=nn.next();return Yn.done?Yn:fe(Be,Rn++,Yn.value)})},oe}(ve),It;function Ce(){return It||(It=new Ye([]))}function Ae(ee){var oe=ke(ee);if(oe)return oe.fromEntrySeq();if(typeof ee=="object")return new qe(ee);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+ee)}function $e(ee){var oe=ke(ee);if(oe)return oe;throw new TypeError("Expected Array or collection object of values: "+ee)}function tt(ee){var oe=ke(ee);if(oe)return Ge(ee)?oe.fromEntrySeq():ht(ee)?oe.toSetSeq():oe;if(typeof ee=="object")return new qe(ee);throw new TypeError("Expected Array or collection object of values, or keyed object: "+ee)}function ke(ee){return Re(ee)?new Ye(ee):he(ee)?new At(ee):void 0}var Oe="@@__IMMUTABLE_MAP__@@";function je(ee){return!!(ee&&ee[Oe])}function Et(ee){return je(ee)&&k(ee)}function ct(ee){return!!(ee&&typeof ee.equals=="function"&&typeof ee.hashCode=="function")}function ut(ee,oe){if(ee===oe||ee!==ee&&oe!==oe)return!0;if(!ee||!oe)return!1;if(typeof ee.valueOf=="function"&&typeof oe.valueOf=="function"){if(ee=ee.valueOf(),oe=oe.valueOf(),ee===oe||ee!==ee&&oe!==oe)return!0;if(!ee||!oe)return!1}return!!(ct(ee)&&ct(oe)&&ee.equals(oe))}var Ne=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(oe,De){oe|=0,De|=0;var Be=oe&65535,gt=De&65535;return Be*gt+((oe>>>16)*gt+Be*(De>>>16)<<16>>>0)|0};function mt(ee){return ee>>>1&1073741824|ee&3221225471}var bt=Object.prototype.valueOf;function Gt(ee){if(ee==null)return hn(ee);if(typeof ee.hashCode=="function")return mt(ee.hashCode(ee));var oe=at(ee);if(oe==null)return hn(oe);switch(typeof oe){case"boolean":return oe?1108378657:1108378656;case"number":return Yt(oe);case"string":return oe.length>ze?Bt(oe):Lt(oe);case"object":case"function":return Kt(oe);case"symbol":return zt(oe);default:if(typeof oe.toString=="function")return Lt(oe.toString());throw new Error("Value type "+typeof oe+" cannot be hashed.")}}function hn(ee){return ee===null?1108378658:1108378659}function Yt(ee){if(ee!==ee||ee===1/0)return 0;var oe=ee|0;for(oe!==ee&&(oe^=ee*4294967295);ee>4294967295;)ee/=4294967295,oe^=ee;return mt(oe)}function Bt(ee){var oe=wt[ee];return oe===void 0&&(oe=Lt(ee),en===st&&(en=0,wt={}),en++,wt[ee]=oe),oe}function Lt(ee){for(var oe=0,De=0;De<ee.length;De++)oe=31*oe+ee.charCodeAt(De)|0;return mt(oe)}function zt(ee){var oe=rn[ee];return oe!==void 0||(oe=Xt(),rn[ee]=oe),oe}function Kt(ee){var oe;if(rt&&(oe=Rt.get(ee),oe!==void 0)||(oe=ee[Jn],oe!==void 0)||!Ve&&(oe=ee.propertyIsEnumerable&&ee.propertyIsEnumerable[Jn],oe!==void 0||(oe=lt(ee),oe!==void 0)))return oe;if(oe=Xt(),rt)Rt.set(ee,oe);else{if(vt!==void 0&&vt(ee)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Ve)Object.defineProperty(ee,Jn,{enumerable:!1,configurable:!1,writable:!1,value:oe});else if(ee.propertyIsEnumerable!==void 0&&ee.propertyIsEnumerable===ee.constructor.prototype.propertyIsEnumerable)ee.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},ee.propertyIsEnumerable[Jn]=oe;else if(ee.nodeType!==void 0)ee[Jn]=oe;else throw new Error("Unable to set a non-enumerable property on object.")}return oe}var vt=Object.isExtensible,Ve=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function lt(ee){if(ee&&ee.nodeType>0)switch(ee.nodeType){case 1:return ee.uniqueID;case 9:return ee.documentElement&&ee.documentElement.uniqueID}}function at(ee){return ee.valueOf!==bt&&typeof ee.valueOf=="function"?ee.valueOf(ee):ee}function Xt(){var ee=++sn;return sn&1073741824&&(sn=0),ee}var rt=typeof WeakMap=="function",Rt;rt&&(Rt=new WeakMap);var rn=Object.create(null),sn=0,Jn="__immutablehash__";typeof Symbol=="function"&&(Jn=Symbol(Jn));var ze=16,st=255,en=0,wt={},Ke=function(ee){function oe(De,Be){this._iter=De,this._useKeys=Be,this.size=De.size}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.prototype.get=function(Be,gt){return this._iter.get(Be,gt)},oe.prototype.has=function(Be){return this._iter.has(Be)},oe.prototype.valueSeq=function(){return this._iter.valueSeq()},oe.prototype.reverse=function(){var Be=this,gt=ot(this,!0);return this._useKeys||(gt.valueSeq=function(){return Be._iter.toSeq().reverse()}),gt},oe.prototype.map=function(Be,gt){var Ht=this,nn=Zt(this,Be,gt);return this._useKeys||(nn.valueSeq=function(){return Ht._iter.toSeq().map(Be,gt)}),nn},oe.prototype.__iterate=function(Be,gt){var Ht=this;return this._iter.__iterate(function(nn,Rn){return Be(nn,Rn,Ht)},gt)},oe.prototype.__iterator=function(Be,gt){return this._iter.__iterator(Be,gt)},oe}(ae);Ke.prototype[$]=!0;var Ut=function(ee){function oe(De){this._iter=De,this.size=De.size}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.prototype.includes=function(Be){return this._iter.includes(Be)},oe.prototype.__iterate=function(Be,gt){var Ht=this,nn=0;return gt&&f(this),this._iter.__iterate(function(Rn){return Be(Rn,gt?Ht.size-++nn:nn++,Ht)},gt)},oe.prototype.__iterator=function(Be,gt){var Ht=this,nn=this._iter.__iterator(V,gt),Rn=0;return gt&&f(this),new ie(function(){var Yn=nn.next();return Yn.done?Yn:fe(Be,gt?Ht.size-++Rn:Rn++,Yn.value,Yn)})},oe}(ve),on=function(ee){function oe(De){this._iter=De,this.size=De.size}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.prototype.has=function(Be){return this._iter.includes(Be)},oe.prototype.__iterate=function(Be,gt){var Ht=this;return this._iter.__iterate(function(nn){return Be(nn,nn,Ht)},gt)},oe.prototype.__iterator=function(Be,gt){var Ht=this._iter.__iterator(V,gt);return new ie(function(){var nn=Ht.next();return nn.done?nn:fe(Be,nn.value,nn.value,nn)})},oe}(Me),Tn=function(ee){function oe(De){this._iter=De,this.size=De.size}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.prototype.entrySeq=function(){return this._iter.toSeq()},oe.prototype.__iterate=function(Be,gt){var Ht=this;return this._iter.__iterate(function(nn){if(nn){si(nn);var Rn=R(nn);return Be(Rn?nn.get(1):nn[1],Rn?nn.get(0):nn[0],Ht)}},gt)},oe.prototype.__iterator=function(Be,gt){var Ht=this._iter.__iterator(V,gt);return new ie(function(){for(;;){var nn=Ht.next();if(nn.done)return nn;var Rn=nn.value;if(Rn){si(Rn);var Yn=R(Rn);return fe(Be,Yn?Rn.get(0):Rn[0],Yn?Rn.get(1):Rn[1],nn)}}})},oe}(ae);Ut.prototype.cacheResult=Ke.prototype.cacheResult=on.prototype.cacheResult=Tn.prototype.cacheResult=Ni;function An(ee){var oe=Ci(ee);return oe._iter=ee,oe.size=ee.size,oe.flip=function(){return ee},oe.reverse=function(){var De=ee.reverse.apply(this);return De.flip=function(){return ee.reverse()},De},oe.has=function(De){return ee.includes(De)},oe.includes=function(De){return ee.has(De)},oe.cacheResult=Ni,oe.__iterateUncached=function(De,Be){var gt=this;return ee.__iterate(function(Ht,nn){return De(nn,Ht,gt)!==!1},Be)},oe.__iteratorUncached=function(De,Be){if(De===pe){var gt=ee.__iterator(De,Be);return new ie(function(){var Ht=gt.next();if(!Ht.done){var nn=Ht.value[0];Ht.value[0]=Ht.value[1],Ht.value[1]=nn}return Ht})}return ee.__iterator(De===V?F:V,Be)},oe}function Zt(ee,oe,De){var Be=Ci(ee);return Be.size=ee.size,Be.has=function(gt){return ee.has(gt)},Be.get=function(gt,Ht){var nn=ee.get(gt,l);return nn===l?Ht:oe.call(De,nn,gt,ee)},Be.__iterateUncached=function(gt,Ht){var nn=this;return ee.__iterate(function(Rn,Yn,gr){return gt(oe.call(De,Rn,Yn,gr),Yn,nn)!==!1},Ht)},Be.__iteratorUncached=function(gt,Ht){var nn=ee.__iterator(pe,Ht);return new ie(function(){var Rn=nn.next();if(Rn.done)return Rn;var Yn=Rn.value,gr=Yn[0];return fe(gt,gr,oe.call(De,Yn[1],gr,ee),Rn)})},Be}function ot(ee,oe){var De=this,Be=Ci(ee);return Be._iter=ee,Be.size=ee.size,Be.reverse=function(){return ee},ee.flip&&(Be.flip=function(){var gt=An(ee);return gt.reverse=function(){return ee.flip()},gt}),Be.get=function(gt,Ht){return ee.get(oe?gt:-1-gt,Ht)},Be.has=function(gt){return ee.has(oe?gt:-1-gt)},Be.includes=function(gt){return ee.includes(gt)},Be.cacheResult=Ni,Be.__iterate=function(gt,Ht){var nn=this,Rn=0;return Ht&&f(ee),ee.__iterate(function(Yn,gr){return gt(Yn,oe?gr:Ht?nn.size-++Rn:Rn++,nn)},!Ht)},Be.__iterator=function(gt,Ht){var nn=0;Ht&&f(ee);var Rn=ee.__iterator(pe,!Ht);return new ie(function(){var Yn=Rn.next();if(Yn.done)return Yn;var gr=Yn.value;return fe(gt,oe?gr[0]:Ht?De.size-++nn:nn++,gr[1],Yn)})},Be}function We(ee,oe,De,Be){var gt=Ci(ee);return Be&&(gt.has=function(Ht){var nn=ee.get(Ht,l);return nn!==l&&!!oe.call(De,nn,Ht,ee)},gt.get=function(Ht,nn){var Rn=ee.get(Ht,l);return Rn!==l&&oe.call(De,Rn,Ht,ee)?Rn:nn}),gt.__iterateUncached=function(Ht,nn){var Rn=this,Yn=0;return ee.__iterate(function(gr,Ai,$i){if(oe.call(De,gr,Ai,$i))return Yn++,Ht(gr,Be?Ai:Yn-1,Rn)},nn),Yn},gt.__iteratorUncached=function(Ht,nn){var Rn=ee.__iterator(pe,nn),Yn=0;return new ie(function(){for(;;){var gr=Rn.next();if(gr.done)return gr;var Ai=gr.value,$i=Ai[0],ma=Ai[1];if(oe.call(De,ma,$i,ee))return fe(Ht,Be?$i:Yn++,ma,gr)}})},gt}function Ft(ee,oe,De){var Be=za().asMutable();return ee.__iterate(function(gt,Ht){Be.update(oe.call(De,gt,Ht,ee),0,function(nn){return nn+1})}),Be.asImmutable()}function it(ee,oe,De){var Be=A(ee),gt=(k(ee)?Li():za()).asMutable();ee.__iterate(function(nn,Rn){gt.update(oe.call(De,nn,Rn,ee),function(Yn){return Yn=Yn||[],Yn.push(Be?[Rn,nn]:nn),Yn})});var Ht=Yr(ee);return gt.map(function(nn){return yr(ee,Ht(nn))}).asImmutable()}function qt(ee,oe,De){var Be=A(ee),gt=[[],[]];ee.__iterate(function(nn,Rn){gt[oe.call(De,nn,Rn,ee)?1:0].push(Be?[Rn,nn]:nn)});var Ht=Yr(ee);return gt.map(function(nn){return yr(ee,Ht(nn))})}function vn(ee,oe,De,Be){var gt=ee.size;if(b(oe,De,gt))return ee;var Ht=E(oe,gt),nn=S(De,gt);if(Ht!==Ht||nn!==nn)return vn(ee.toSeq().cacheResult(),oe,De,Be);var Rn=nn-Ht,Yn;Rn===Rn&&(Yn=Rn<0?0:Rn);var gr=Ci(ee);return gr.size=Yn===0?Yn:ee.size&&Yn||void 0,!Be&&Z(ee)&&Yn>=0&&(gr.get=function(Ai,$i){return Ai=g(this,Ai),Ai>=0&&Ai<Yn?ee.get(Ai+Ht,$i):$i}),gr.__iterateUncached=function(Ai,$i){var ma=this;if(Yn===0)return 0;if($i)return this.cacheResult().__iterate(Ai,$i);var La=0,Qa=!0,go=0;return ee.__iterate(function(Ao,Fo){if(!(Qa&&(Qa=La++<Ht)))return go++,Ai(Ao,Be?Fo:go-1,ma)!==!1&&go!==Yn}),go},gr.__iteratorUncached=function(Ai,$i){if(Yn!==0&&$i)return this.cacheResult().__iterator(Ai,$i);if(Yn===0)return new ie(Se);var ma=ee.__iterator(Ai,$i),La=0,Qa=0;return new ie(function(){for(;La++<Ht;)ma.next();if(++Qa>Yn)return Se();var go=ma.next();return Be||Ai===V||go.done?go:Ai===F?fe(Ai,Qa-1,void 0,go):fe(Ai,Qa-1,go.value[1],go)})},gr}function fn(ee,oe,De){var Be=Ci(ee);return Be.__iterateUncached=function(gt,Ht){var nn=this;if(Ht)return this.cacheResult().__iterate(gt,Ht);var Rn=0;return ee.__iterate(function(Yn,gr,Ai){return oe.call(De,Yn,gr,Ai)&&++Rn&>(Yn,gr,nn)}),Rn},Be.__iteratorUncached=function(gt,Ht){var nn=this;if(Ht)return this.cacheResult().__iterator(gt,Ht);var Rn=ee.__iterator(pe,Ht),Yn=!0;return new ie(function(){if(!Yn)return Se();var gr=Rn.next();if(gr.done)return gr;var Ai=gr.value,$i=Ai[0],ma=Ai[1];return oe.call(De,ma,$i,nn)?gt===pe?gr:fe(gt,$i,ma,gr):(Yn=!1,Se())})},Be}function Tt(ee,oe,De,Be){var gt=Ci(ee);return gt.__iterateUncached=function(Ht,nn){var Rn=this;if(nn)return this.cacheResult().__iterate(Ht,nn);var Yn=!0,gr=0;return ee.__iterate(function(Ai,$i,ma){if(!(Yn&&(Yn=oe.call(De,Ai,$i,ma))))return gr++,Ht(Ai,Be?$i:gr-1,Rn)}),gr},gt.__iteratorUncached=function(Ht,nn){var Rn=this;if(nn)return this.cacheResult().__iterator(Ht,nn);var Yn=ee.__iterator(pe,nn),gr=!0,Ai=0;return new ie(function(){var $i,ma,La;do{if($i=Yn.next(),$i.done)return Be||Ht===V?$i:Ht===F?fe(Ht,Ai++,void 0,$i):fe(Ht,Ai++,$i.value[1],$i);var Qa=$i.value;ma=Qa[0],La=Qa[1],gr&&(gr=oe.call(De,La,ma,Rn))}while(gr);return Ht===pe?$i:fe(Ht,ma,La,$i)})},gt}function dn(ee,oe){var De=A(ee),Be=[ee].concat(oe).map(function(nn){return R(nn)?De&&(nn=W(nn)):nn=De?Ae(nn):$e(Array.isArray(nn)?nn:[nn]),nn}).filter(function(nn){return nn.size!==0});if(Be.length===0)return ee;if(Be.length===1){var gt=Be[0];if(gt===ee||De&&A(gt)||N(ee)&&N(gt))return gt}var Ht=new Ye(Be);return De?Ht=Ht.toKeyedSeq():N(ee)||(Ht=Ht.toSetSeq()),Ht=Ht.flatten(!0),Ht.size=Be.reduce(function(nn,Rn){if(nn!==void 0){var Yn=Rn.size;if(Yn!==void 0)return nn+Yn}},0),Ht}function mn(ee,oe,De){var Be=Ci(ee);return Be.__iterateUncached=function(gt,Ht){if(Ht)return this.cacheResult().__iterate(gt,Ht);var nn=0,Rn=!1;function Yn(gr,Ai){gr.__iterate(function($i,ma){return(!oe||Ai<oe)&&R($i)?Yn($i,Ai+1):(nn++,gt($i,De?ma:nn-1,Be)===!1&&(Rn=!0)),!Rn},Ht)}return Yn(ee,0),nn},Be.__iteratorUncached=function(gt,Ht){if(Ht)return this.cacheResult().__iterator(gt,Ht);var nn=ee.__iterator(gt,Ht),Rn=[],Yn=0;return new ie(function(){for(;nn;){var gr=nn.next();if(gr.done!==!1){nn=Rn.pop();continue}var Ai=gr.value;if(gt===pe&&(Ai=Ai[1]),(!oe||Rn.length<oe)&&R(Ai))Rn.push(nn),nn=Ai.__iterator(gt,Ht);else return De?gr:fe(gt,Yn++,Ai,gr)}return Se()})},Be}function Kn(ee,oe,De){var Be=Yr(ee);return ee.toSeq().map(function(gt,Ht){return Be(oe.call(De,gt,Ht,ee))}).flatten(!0)}function Dn(ee,oe){var De=Ci(ee);return De.size=ee.size&&ee.size*2-1,De.__iterateUncached=function(Be,gt){var Ht=this,nn=0;return ee.__iterate(function(Rn){return(!nn||Be(oe,nn++,Ht)!==!1)&&Be(Rn,nn++,Ht)!==!1},gt),nn},De.__iteratorUncached=function(Be,gt){var Ht=ee.__iterator(V,gt),nn=0,Rn;return new ie(function(){return(!Rn||nn%2)&&(Rn=Ht.next(),Rn.done)?Rn:nn%2?fe(Be,nn++,oe):fe(Be,nn++,Rn.value,Rn)})},De}function Vn(ee,oe,De){oe||(oe=fa);var Be=A(ee),gt=0,Ht=ee.toSeq().map(function(nn,Rn){return[Rn,nn,gt++,De?De(nn,Rn,ee):nn]}).valueSeq().toArray();return Ht.sort(function(nn,Rn){return oe(nn[3],Rn[3])||nn[2]-Rn[2]}).forEach(Be?function(nn,Rn){Ht[Rn].length=2}:function(nn,Rn){Ht[Rn]=nn[1]}),Be?ae(Ht):N(ee)?ve(Ht):Me(Ht)}function or(ee,oe,De){if(oe||(oe=fa),De){var Be=ee.toSeq().map(function(gt,Ht){return[gt,De(gt,Ht,ee)]}).reduce(function(gt,Ht){return Qr(oe,gt[1],Ht[1])?Ht:gt});return Be&&Be[0]}return ee.reduce(function(gt,Ht){return Qr(oe,gt,Ht)?Ht:gt})}function Qr(ee,oe,De){var Be=ee(De,oe);return Be===0&&De!==oe&&(De==null||De!==De)||Be>0}function ni(ee,oe,De,Be){var gt=Ci(ee),Ht=new Ye(De).map(function(nn){return nn.size});return gt.size=Be?Ht.max():Ht.min(),gt.__iterate=function(nn,Rn){for(var Yn=this.__iterator(V,Rn),gr,Ai=0;!(gr=Yn.next()).done&&nn(gr.value,Ai++,this)!==!1;);return Ai},gt.__iteratorUncached=function(nn,Rn){var Yn=De.map(function($i){return $i=_($i),_e(Rn?$i.reverse():$i)}),gr=0,Ai=!1;return new ie(function(){var $i;return Ai||($i=Yn.map(function(ma){return ma.next()}),Ai=Be?$i.every(function(ma){return ma.done}):$i.some(function(ma){return ma.done})),Ai?Se():fe(nn,gr++,oe.apply(null,$i.map(function(ma){return ma.value})))})},gt}function yr(ee,oe){return ee===oe?ee:Z(ee)?oe:ee.constructor(oe)}function si(ee){if(ee!==Object(ee))throw new TypeError("Expected [K, V] tuple: "+ee)}function Yr(ee){return A(ee)?W:N(ee)?j:re}function Ci(ee){return Object.create((A(ee)?ae:N(ee)?ve:Me).prototype)}function Ni(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ue.prototype.cacheResult.call(this)}function fa(ee,oe){return ee===void 0&&oe===void 0?0:ee===void 0?1:oe===void 0?-1:ee>oe?1:ee<oe?-1:0}function ha(ee,oe){oe=oe||0;for(var De=Math.max(0,ee.length-oe),Be=new Array(De),gt=0;gt<De;gt++)Be[gt]=ee[gt+oe];return Be}function Ca(ee,oe){if(!ee)throw new Error(oe)}function li(ee){Ca(ee!==1/0,"Cannot perform this action with an infinite size.")}function la(ee){if(Re(ee)&&typeof ee!="string")return ee;if(k(ee))return ee.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+ee)}var Oa=Object.prototype.toString;function wa(ee){if(!ee||typeof ee!="object"||Oa.call(ee)!=="[object Object]")return!1;var oe=Object.getPrototypeOf(ee);if(oe===null)return!0;for(var De=oe,Be=Object.getPrototypeOf(oe);Be!==null;)De=Be,Be=Object.getPrototypeOf(De);return De===oe}function vo(ee){return typeof ee=="object"&&(L(ee)||Array.isArray(ee)||wa(ee))}function Qn(ee){try{return typeof ee=="string"?JSON.stringify(ee):String(ee)}catch{return JSON.stringify(ee)}}function _r(ee,oe){return L(ee)?ee.has(oe):vo(ee)&&nt.call(ee,oe)}function $r(ee,oe,De){return L(ee)?ee.get(oe,De):_r(ee,oe)?typeof ee.get=="function"?ee.get(oe):ee[oe]:De}function Ti(ee){if(Array.isArray(ee))return ha(ee);var oe={};for(var De in ee)nt.call(ee,De)&&(oe[De]=ee[De]);return oe}function xt(ee,oe){if(!vo(ee))throw new TypeError("Cannot update non-data-structure value: "+ee);if(L(ee)){if(!ee.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+ee);return ee.remove(oe)}if(!nt.call(ee,oe))return ee;var De=Ti(ee);return Array.isArray(De)?De.splice(oe,1):delete De[oe],De}function On(ee,oe,De){if(!vo(ee))throw new TypeError("Cannot update non-data-structure value: "+ee);if(L(ee)){if(!ee.set)throw new TypeError("Cannot update immutable value without .set() method: "+ee);return ee.set(oe,De)}if(nt.call(ee,oe)&&De===ee[oe])return ee;var Be=Ti(ee);return Be[oe]=De,Be}function Zn(ee,oe,De,Be){Be||(Be=De,De=void 0);var gt=Ur(L(ee),ee,la(oe),0,De,Be);return gt===l?De:gt}function Ur(ee,oe,De,Be,gt,Ht){var nn=oe===l;if(Be===De.length){var Rn=nn?gt:oe,Yn=Ht(Rn);return Yn===Rn?oe:Yn}if(!nn&&!vo(oe))throw new TypeError("Cannot update within non-data-structure value in path ["+De.slice(0,Be).map(Qn)+"]: "+oe);var gr=De[Be],Ai=nn?l:$r(oe,gr,l),$i=Ur(Ai===l?ee:L(Ai),Ai,De,Be+1,gt,Ht);return $i===Ai?oe:$i===l?xt(oe,gr):On(nn?ee?Xe():{}:oe,gr,$i)}function En(ee,oe,De){return Zn(ee,oe,l,function(){return De})}function ln(ee,oe){return En(this,ee,oe)}function jn(ee,oe){return Zn(ee,oe,function(){return l})}function rr(ee){return jn(this,ee)}function Mr(ee,oe,De,Be){return Zn(ee,[oe],De,Be)}function Ir(ee,oe,De){return arguments.length===1?ee(this):Mr(this,ee,oe,De)}function Zr(ee,oe,De){return Zn(this,ee,oe,De)}function lr(){for(var ee=[],oe=arguments.length;oe--;)ee[oe]=arguments[oe];return pi(this,ee)}function Jr(ee){for(var oe=[],De=arguments.length-1;De-- >0;)oe[De]=arguments[De+1];if(typeof ee!="function")throw new TypeError("Invalid merger function: "+ee);return pi(this,oe,ee)}function pi(ee,oe,De){for(var Be=[],gt=0;gt<oe.length;gt++){var Ht=W(oe[gt]);Ht.size!==0&&Be.push(Ht)}return Be.length===0?ee:ee.toSeq().size===0&&!ee.__ownerID&&Be.length===1?ee.constructor(Be[0]):ee.withMutations(function(nn){for(var Rn=De?function(gr,Ai){Mr(nn,Ai,l,function($i){return $i===l?gr:De($i,gr,Ai)})}:function(gr,Ai){nn.set(Ai,gr)},Yn=0;Yn<Be.length;Yn++)Be[Yn].forEach(Rn)})}function Ri(ee){for(var oe=[],De=arguments.length-1;De-- >0;)oe[De]=arguments[De+1];return ao(ee,oe)}function Ki(ee,oe){for(var De=[],Be=arguments.length-2;Be-- >0;)De[Be]=arguments[Be+2];return ao(oe,De,ee)}function ia(ee){for(var oe=[],De=arguments.length-1;De-- >0;)oe[De]=arguments[De+1];return to(ee,oe)}function Da(ee,oe){for(var De=[],Be=arguments.length-2;Be-- >0;)De[Be]=arguments[Be+2];return to(oe,De,ee)}function to(ee,oe,De){return ao(ee,oe,Bo(De))}function ao(ee,oe,De){if(!vo(ee))throw new TypeError("Cannot merge into non-data-structure value: "+ee);if(L(ee))return typeof De=="function"&&ee.mergeWith?ee.mergeWith.apply(ee,[De].concat(oe)):ee.merge?ee.merge.apply(ee,oe):ee.concat.apply(ee,oe);for(var Be=Array.isArray(ee),gt=ee,Ht=Be?j:W,nn=Be?function(Yn){gt===ee&&(gt=Ti(gt)),gt.push(Yn)}:function(Yn,gr){var Ai=nt.call(gt,gr),$i=Ai&&De?De(gt[gr],Yn,gr):Yn;(!Ai||$i!==gt[gr])&&(gt===ee&&(gt=Ti(gt)),gt[gr]=$i)},Rn=0;Rn<oe.length;Rn++)Ht(oe[Rn]).forEach(nn);return gt}function Bo(ee){function oe(De,Be,gt){return vo(De)&&vo(Be)&&jo(De,Be)?ao(De,[Be],oe):ee?ee(De,Be,gt):Be}return oe}function jo(ee,oe){var De=ue(ee),Be=ue(oe);return N(De)===N(Be)&&A(De)===A(Be)}function Jo(){for(var ee=[],oe=arguments.length;oe--;)ee[oe]=arguments[oe];return to(this,ee)}function Go(ee){for(var oe=[],De=arguments.length-1;De-- >0;)oe[De]=arguments[De+1];return to(this,oe,ee)}function wr(ee){for(var oe=[],De=arguments.length-1;De-- >0;)oe[De]=arguments[De+1];return Zn(this,ee,Xe(),function(Be){return ao(Be,oe)})}function qi(ee){for(var oe=[],De=arguments.length-1;De-- >0;)oe[De]=arguments[De+1];return Zn(this,ee,Xe(),function(Be){return to(Be,oe)})}function ja(ee){var oe=this.asMutable();return ee(oe),oe.wasAltered()?oe.__ensureOwner(this.__ownerID):this}function uo(){return this.__ownerID?this:this.__ensureOwner(new d)}function wi(){return this.__ensureOwner()}function ai(){return this.__altered}var za=function(ee){function oe(De){return De==null?Xe():je(De)&&!k(De)?De:Xe().withMutations(function(Be){var gt=ee(De);li(gt.size),gt.forEach(function(Ht,nn){return Be.set(nn,Ht)})})}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.of=function(){for(var Be=[],gt=arguments.length;gt--;)Be[gt]=arguments[gt];return Xe().withMutations(function(Ht){for(var nn=0;nn<Be.length;nn+=2){if(nn+1>=Be.length)throw new Error("Missing value for key: "+Be[nn]);Ht.set(Be[nn],Be[nn+1])}})},oe.prototype.toString=function(){return this.__toString("Map {","}")},oe.prototype.get=function(Be,gt){return this._root?this._root.get(0,void 0,Be,gt):gt},oe.prototype.set=function(Be,gt){return yt(this,Be,gt)},oe.prototype.remove=function(Be){return yt(this,Be,l)},oe.prototype.deleteAll=function(Be){var gt=_(Be);return gt.size===0?this:this.withMutations(function(Ht){gt.forEach(function(nn){return Ht.remove(nn)})})},oe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Xe()},oe.prototype.sort=function(Be){return Li(Vn(this,Be))},oe.prototype.sortBy=function(Be,gt){return Li(Vn(this,gt,Be))},oe.prototype.map=function(Be,gt){var Ht=this;return this.withMutations(function(nn){nn.forEach(function(Rn,Yn){nn.set(Yn,Be.call(gt,Rn,Yn,Ht))})})},oe.prototype.__iterator=function(Be,gt){return new Wi(this,Be,gt)},oe.prototype.__iterate=function(Be,gt){var Ht=this,nn=0;return this._root&&this._root.iterate(function(Rn){return nn++,Be(Rn[1],Rn[0],Ht)},gt),nn},oe.prototype.__ensureOwner=function(Be){return Be===this.__ownerID?this:Be?se(this.size,this._root,Be,this.__hash):this.size===0?Xe():(this.__ownerID=Be,this.__altered=!1,this)},oe}(W);za.isMap=je;var Mt=za.prototype;Mt[Oe]=!0,Mt[i]=Mt.remove,Mt.removeAll=Mt.deleteAll,Mt.setIn=ln,Mt.removeIn=Mt.deleteIn=rr,Mt.update=Ir,Mt.updateIn=Zr,Mt.merge=Mt.concat=lr,Mt.mergeWith=Jr,Mt.mergeDeep=Jo,Mt.mergeDeepWith=Go,Mt.mergeIn=wr,Mt.mergeDeepIn=qi,Mt.withMutations=ja,Mt.wasAltered=ai,Mt.asImmutable=wi,Mt["@@transducer/init"]=Mt.asMutable=uo,Mt["@@transducer/step"]=function(ee,oe){return ee.set(oe[0],oe[1])},Mt["@@transducer/result"]=function(ee){return ee.asImmutable()};var Gn=function(oe,De){this.ownerID=oe,this.entries=De};Gn.prototype.get=function(oe,De,Be,gt){for(var Ht=this.entries,nn=0,Rn=Ht.length;nn<Rn;nn++)if(ut(Be,Ht[nn][0]))return Ht[nn][1];return gt},Gn.prototype.update=function(oe,De,Be,gt,Ht,nn,Rn){for(var Yn=Ht===l,gr=this.entries,Ai=0,$i=gr.length;Ai<$i&&!ut(gt,gr[Ai][0]);Ai++);var ma=Ai<$i;if(ma?gr[Ai][1]===Ht:Yn)return this;if(p(Rn),(Yn||!ma)&&p(nn),!(Yn&&gr.length===1)){if(!ma&&!Yn&&gr.length>=Xa)return fr(oe,gr,gt,Ht);var La=oe&&oe===this.ownerID,Qa=La?gr:ha(gr);return ma?Yn?Ai===$i-1?Qa.pop():Qa[Ai]=Qa.pop():Qa[Ai]=[gt,Ht]:Qa.push([gt,Ht]),La?(this.entries=Qa,this):new Gn(oe,Qa)}};var qn=function(oe,De,Be){this.ownerID=oe,this.bitmap=De,this.nodes=Be};qn.prototype.get=function(oe,De,Be,gt){De===void 0&&(De=Gt(Be));var Ht=1<<((oe===0?De:De>>>oe)&v),nn=this.bitmap;return nn&Ht?this.nodes[Fi(nn&Ht-1)].get(oe+s,De,Be,gt):gt},qn.prototype.update=function(oe,De,Be,gt,Ht,nn,Rn){Be===void 0&&(Be=Gt(gt));var Yn=(De===0?Be:Be>>>De)&v,gr=1<<Yn,Ai=this.bitmap,$i=(Ai&gr)!==0;if(!$i&&Ht===l)return this;var ma=Fi(Ai&gr-1),La=this.nodes,Qa=$i?La[ma]:void 0,go=Wt(Qa,oe,De+s,Be,gt,Ht,nn,Rn);if(go===Qa)return this;if(!$i&&go&&La.length>=Ko)return Si(oe,La,Ai,Yn,go);if($i&&!go&&La.length===2&&Qt(La[ma^1]))return La[ma^1];if($i&&go&&La.length===1&&Qt(go))return go;var Ao=oe&&oe===this.ownerID,Fo=$i?go?Ai:Ai^gr:Ai|gr,Ho=$i?go?Bi(La,ma,go,Ao):vi(La,ma,Ao):Ui(La,ma,go,Ao);return Ao?(this.bitmap=Fo,this.nodes=Ho,this):new qn(oe,Fo,Ho)};var Fr=function(oe,De,Be){this.ownerID=oe,this.count=De,this.nodes=Be};Fr.prototype.get=function(oe,De,Be,gt){De===void 0&&(De=Gt(Be));var Ht=(oe===0?De:De>>>oe)&v,nn=this.nodes[Ht];return nn?nn.get(oe+s,De,Be,gt):gt},Fr.prototype.update=function(oe,De,Be,gt,Ht,nn,Rn){Be===void 0&&(Be=Gt(gt));var Yn=(De===0?Be:Be>>>De)&v,gr=Ht===l,Ai=this.nodes,$i=Ai[Yn];if(gr&&!$i)return this;var ma=Wt($i,oe,De+s,Be,gt,Ht,nn,Rn);if(ma===$i)return this;var La=this.count;if(!$i)La++;else if(!ma&&(La--,La<So))return Or(oe,Ai,La,Yn);var Qa=oe&&oe===this.ownerID,go=Bi(Ai,Yn,ma,Qa);return Qa?(this.count=La,this.nodes=go,this):new Fr(oe,La,go)};var Ei=function(oe,De,Be){this.ownerID=oe,this.keyHash=De,this.entries=Be};Ei.prototype.get=function(oe,De,Be,gt){for(var Ht=this.entries,nn=0,Rn=Ht.length;nn<Rn;nn++)if(ut(Be,Ht[nn][0]))return Ht[nn][1];return gt},Ei.prototype.update=function(oe,De,Be,gt,Ht,nn,Rn){Be===void 0&&(Be=Gt(gt));var Yn=Ht===l;if(Be!==this.keyHash)return Yn?this:(p(Rn),p(nn),wn(this,oe,De,Be,[gt,Ht]));for(var gr=this.entries,Ai=0,$i=gr.length;Ai<$i&&!ut(gt,gr[Ai][0]);Ai++);var ma=Ai<$i;if(ma?gr[Ai][1]===Ht:Yn)return this;if(p(Rn),(Yn||!ma)&&p(nn),Yn&&$i===2)return new ii(oe,this.keyHash,gr[Ai^1]);var La=oe&&oe===this.ownerID,Qa=La?gr:ha(gr);return ma?Yn?Ai===$i-1?Qa.pop():Qa[Ai]=Qa.pop():Qa[Ai]=[gt,Ht]:Qa.push([gt,Ht]),La?(this.entries=Qa,this):new Ei(oe,this.keyHash,Qa)};var ii=function(oe,De,Be){this.ownerID=oe,this.keyHash=De,this.entry=Be};ii.prototype.get=function(oe,De,Be,gt){return ut(Be,this.entry[0])?this.entry[1]:gt},ii.prototype.update=function(oe,De,Be,gt,Ht,nn,Rn){var Yn=Ht===l,gr=ut(gt,this.entry[0]);if(gr?Ht===this.entry[1]:Yn)return this;if(p(Rn),Yn){p(nn);return}return gr?oe&&oe===this.ownerID?(this.entry[1]=Ht,this):new ii(oe,this.keyHash,[gt,Ht]):(p(nn),wn(this,oe,De,Gt(gt),[gt,Ht]))},Gn.prototype.iterate=Ei.prototype.iterate=function(ee,oe){for(var De=this.entries,Be=0,gt=De.length-1;Be<=gt;Be++)if(ee(De[oe?gt-Be:Be])===!1)return!1},qn.prototype.iterate=Fr.prototype.iterate=function(ee,oe){for(var De=this.nodes,Be=0,gt=De.length-1;Be<=gt;Be++){var Ht=De[oe?gt-Be:Be];if(Ht&&Ht.iterate(ee,oe)===!1)return!1}},ii.prototype.iterate=function(ee,oe){return ee(this.entry)};var Wi=function(ee){function oe(De,Be,gt){this._type=Be,this._reverse=gt,this._stack=De._root&&qa(De._root)}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.prototype.next=function(){for(var Be=this._type,gt=this._stack;gt;){var Ht=gt.node,nn=gt.index++,Rn=void 0;if(Ht.entry){if(nn===0)return Ya(Be,Ht.entry)}else if(Ht.entries){if(Rn=Ht.entries.length-1,nn<=Rn)return Ya(Be,Ht.entries[this._reverse?Rn-nn:nn])}else if(Rn=Ht.nodes.length-1,nn<=Rn){var Yn=Ht.nodes[this._reverse?Rn-nn:nn];if(Yn){if(Yn.entry)return Ya(Be,Yn.entry);gt=this._stack=qa(Yn,gt)}continue}gt=this._stack=this._stack.__prev}return Se()},oe}(ie);function Ya(ee,oe){return fe(ee,oe[0],oe[1])}function qa(ee,oe){return{node:ee,index:0,__prev:oe}}function se(ee,oe,De,Be){var gt=Object.create(Mt);return gt.size=ee,gt._root=oe,gt.__ownerID=De,gt.__hash=Be,gt.__altered=!1,gt}var ye;function Xe(){return ye||(ye=se(0))}function yt(ee,oe,De){var Be,gt;if(ee._root){var Ht=h(),nn=h();if(Be=Wt(ee._root,ee.__ownerID,0,void 0,oe,De,Ht,nn),!nn.value)return ee;gt=ee.size+(Ht.value?De===l?-1:1:0)}else{if(De===l)return ee;gt=1,Be=new Gn(ee.__ownerID,[[oe,De]])}return ee.__ownerID?(ee.size=gt,ee._root=Be,ee.__hash=void 0,ee.__altered=!0,ee):Be?se(gt,Be):Xe()}function Wt(ee,oe,De,Be,gt,Ht,nn,Rn){return ee?ee.update(oe,De,Be,gt,Ht,nn,Rn):Ht===l?ee:(p(Rn),p(nn),new ii(oe,Be,[gt,Ht]))}function Qt(ee){return ee.constructor===ii||ee.constructor===Ei}function wn(ee,oe,De,Be,gt){if(ee.keyHash===Be)return new Ei(oe,Be,[ee.entry,gt]);var Ht=(De===0?ee.keyHash:ee.keyHash>>>De)&v,nn=(De===0?Be:Be>>>De)&v,Rn,Yn=Ht===nn?[wn(ee,oe,De+s,Be,gt)]:(Rn=new ii(oe,Be,gt),Ht<nn?[ee,Rn]:[Rn,ee]);return new qn(oe,1<<Ht|1<<nn,Yn)}function fr(ee,oe,De,Be){ee||(ee=new d);for(var gt=new ii(ee,Gt(De),[De,Be]),Ht=0;Ht<oe.length;Ht++){var nn=oe[Ht];gt=gt.update(ee,0,void 0,nn[0],nn[1])}return gt}function Or(ee,oe,De,Be){for(var gt=0,Ht=0,nn=new Array(De),Rn=0,Yn=1,gr=oe.length;Rn<gr;Rn++,Yn<<=1){var Ai=oe[Rn];Ai!==void 0&&Rn!==Be&&(gt|=Yn,nn[Ht++]=Ai)}return new qn(ee,gt,nn)}function Si(ee,oe,De,Be,gt){for(var Ht=0,nn=new Array(u),Rn=0;De!==0;Rn++,De>>>=1)nn[Rn]=De&1?oe[Ht++]:void 0;return nn[Be]=gt,new Fr(ee,Ht+1,nn)}function Fi(ee){return ee-=ee>>1&1431655765,ee=(ee&858993459)+(ee>>2&858993459),ee=ee+(ee>>4)&252645135,ee+=ee>>8,ee+=ee>>16,ee&127}function Bi(ee,oe,De,Be){var gt=Be?ee:ha(ee);return gt[oe]=De,gt}function Ui(ee,oe,De,Be){var gt=ee.length+1;if(Be&&oe+1===gt)return ee[oe]=De,ee;for(var Ht=new Array(gt),nn=0,Rn=0;Rn<gt;Rn++)Rn===oe?(Ht[Rn]=De,nn=-1):Ht[Rn]=ee[Rn+nn];return Ht}function vi(ee,oe,De){var Be=ee.length-1;if(De&&oe===Be)return ee.pop(),ee;for(var gt=new Array(Be),Ht=0,nn=0;nn<Be;nn++)nn===oe&&(Ht=1),gt[nn]=ee[nn+Ht];return gt}var Xa=u/4,Ko=u/2,So=u/4,Lo="@@__IMMUTABLE_LIST__@@";function us(ee){return!!(ee&&ee[Lo])}var Ee=function(ee){function oe(De){var Be=Ct();if(De==null)return Be;if(us(De))return De;var gt=ee(De),Ht=gt.size;return Ht===0?Be:(li(Ht),Ht>0&&Ht<u?Le(0,Ht,s,null,new z(gt.toArray())):Be.withMutations(function(nn){nn.setSize(Ht),gt.forEach(function(Rn,Yn){return nn.set(Yn,Rn)})}))}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.of=function(){return this(arguments)},oe.prototype.toString=function(){return this.__toString("List [","]")},oe.prototype.get=function(Be,gt){if(Be=g(this,Be),Be>=0&&Be<this.size){Be+=this._origin;var Ht=br(this,Be);return Ht&&Ht.array[Be&v]}return gt},oe.prototype.set=function(Be,gt){return Vt(this,Be,gt)},oe.prototype.remove=function(Be){return this.has(Be)?Be===0?this.shift():Be===this.size-1?this.pop():this.splice(Be,1):this},oe.prototype.insert=function(Be,gt){return this.splice(Be,0,gt)},oe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=s,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Ct()},oe.prototype.push=function(){var Be=arguments,gt=this.size;return this.withMutations(function(Ht){ei(Ht,0,gt+Be.length);for(var nn=0;nn<Be.length;nn++)Ht.set(gt+nn,Be[nn])})},oe.prototype.pop=function(){return ei(this,0,-1)},oe.prototype.unshift=function(){var Be=arguments;return this.withMutations(function(gt){ei(gt,-Be.length);for(var Ht=0;Ht<Be.length;Ht++)gt.set(Ht,Be[Ht])})},oe.prototype.shift=function(){return ei(this,1)},oe.prototype.concat=function(){for(var Be=arguments,gt=[],Ht=0;Ht<arguments.length;Ht++){var nn=Be[Ht],Rn=ee(typeof nn!="string"&&he(nn)?nn:[nn]);Rn.size!==0&>.push(Rn)}return gt.length===0?this:this.size===0&&!this.__ownerID&>.length===1?this.constructor(gt[0]):this.withMutations(function(Yn){gt.forEach(function(gr){return gr.forEach(function(Ai){return Yn.push(Ai)})})})},oe.prototype.setSize=function(Be){return ei(this,0,Be)},oe.prototype.map=function(Be,gt){var Ht=this;return this.withMutations(function(nn){for(var Rn=0;Rn<Ht.size;Rn++)nn.set(Rn,Be.call(gt,nn.get(Rn),Rn,Ht))})},oe.prototype.slice=function(Be,gt){var Ht=this.size;return b(Be,gt,Ht)?this:ei(this,E(Be,Ht),S(gt,Ht))},oe.prototype.__iterator=function(Be,gt){var Ht=gt?this.size:0,nn=le(this,gt);return new ie(function(){var Rn=nn();return Rn===B?Se():fe(Be,gt?--Ht:Ht++,Rn)})},oe.prototype.__iterate=function(Be,gt){for(var Ht=gt?this.size:0,nn=le(this,gt),Rn;(Rn=nn())!==B&&Be(Rn,gt?--Ht:Ht++,this)!==!1;);return Ht},oe.prototype.__ensureOwner=function(Be){return Be===this.__ownerID?this:Be?Le(this._origin,this._capacity,this._level,this._root,this._tail,Be,this.__hash):this.size===0?Ct():(this.__ownerID=Be,this.__altered=!1,this)},oe}(j);Ee.isList=us;var Y=Ee.prototype;Y[Lo]=!0,Y[i]=Y.remove,Y.merge=Y.concat,Y.setIn=ln,Y.deleteIn=Y.removeIn=rr,Y.update=Ir,Y.updateIn=Zr,Y.mergeIn=wr,Y.mergeDeepIn=qi,Y.withMutations=ja,Y.wasAltered=ai,Y.asImmutable=wi,Y["@@transducer/init"]=Y.asMutable=uo,Y["@@transducer/step"]=function(ee,oe){return ee.push(oe)},Y["@@transducer/result"]=function(ee){return ee.asImmutable()};var z=function(oe,De){this.array=oe,this.ownerID=De};z.prototype.removeBefore=function(oe,De,Be){if(Be===De?1<<De:this.array.length===0)return this;var gt=Be>>>De&v;if(gt>=this.array.length)return new z([],oe);var Ht=gt===0,nn;if(De>0){var Rn=this.array[gt];if(nn=Rn&&Rn.removeBefore(oe,De-s,Be),nn===Rn&&Ht)return this}if(Ht&&!nn)return this;var Yn=Hn(this,oe);if(!Ht)for(var gr=0;gr<gt;gr++)Yn.array[gr]=void 0;return nn&&(Yn.array[gt]=nn),Yn},z.prototype.removeAfter=function(oe,De,Be){if(Be===(De?1<<De:0)||this.array.length===0)return this;var gt=Be-1>>>De&v;if(gt>=this.array.length)return this;var Ht;if(De>0){var nn=this.array[gt];if(Ht=nn&&nn.removeAfter(oe,De-s,Be),Ht===nn&>===this.array.length-1)return this}var Rn=Hn(this,oe);return Rn.array.splice(gt+1),Ht&&(Rn.array[gt]=Ht),Rn};var B={};function le(ee,oe){var De=ee._origin,Be=ee._capacity,gt=mi(Be),Ht=ee._tail;return nn(ee._root,ee._level,0);function nn(gr,Ai,$i){return Ai===0?Rn(gr,$i):Yn(gr,Ai,$i)}function Rn(gr,Ai){var $i=Ai===gt?Ht&&Ht.array:gr&&gr.array,ma=Ai>De?0:De-Ai,La=Be-Ai;return La>u&&(La=u),function(){if(ma===La)return B;var Qa=oe?--La:ma++;return $i&&$i[Qa]}}function Yn(gr,Ai,$i){var ma,La=gr&&gr.array,Qa=$i>De?0:De-$i>>Ai,go=(Be-$i>>Ai)+1;return go>u&&(go=u),function(){for(;;){if(ma){var Ao=ma();if(Ao!==B)return Ao;ma=null}if(Qa===go)return B;var Fo=oe?--go:Qa++;ma=nn(La&&La[Fo],Ai-s,$i+(Fo<<Ai))}}}}function Le(ee,oe,De,Be,gt,Ht,nn){var Rn=Object.create(Y);return Rn.size=oe-ee,Rn._origin=ee,Rn._capacity=oe,Rn._level=De,Rn._root=Be,Rn._tail=gt,Rn.__ownerID=Ht,Rn.__hash=nn,Rn.__altered=!1,Rn}var Je;function Ct(){return Je||(Je=Le(0,0,s))}function Vt(ee,oe,De){if(oe=g(ee,oe),oe!==oe)return ee;if(oe>=ee.size||oe<0)return ee.withMutations(function(nn){oe<0?ei(nn,oe).set(0,De):ei(nn,0,oe+1).set(oe,De)});oe+=ee._origin;var Be=ee._tail,gt=ee._root,Ht=h();return oe>=mi(ee._capacity)?Be=bn(Be,ee.__ownerID,0,oe,De,Ht):gt=bn(gt,ee.__ownerID,ee._level,oe,De,Ht),Ht.value?ee.__ownerID?(ee._root=gt,ee._tail=Be,ee.__hash=void 0,ee.__altered=!0,ee):Le(ee._origin,ee._capacity,ee._level,gt,Be):ee}function bn(ee,oe,De,Be,gt,Ht){var nn=Be>>>De&v,Rn=ee&&nn<ee.array.length;if(!Rn&>===void 0)return ee;var Yn;if(De>0){var gr=ee&&ee.array[nn],Ai=bn(gr,oe,De-s,Be,gt,Ht);return Ai===gr?ee:(Yn=Hn(ee,oe),Yn.array[nn]=Ai,Yn)}return Rn&&ee.array[nn]===gt?ee:(Ht&&p(Ht),Yn=Hn(ee,oe),gt===void 0&&nn===Yn.array.length-1?Yn.array.pop():Yn.array[nn]=gt,Yn)}function Hn(ee,oe){return oe&&ee&&oe===ee.ownerID?ee:new z(ee?ee.array.slice():[],oe)}function br(ee,oe){if(oe>=mi(ee._capacity))return ee._tail;if(oe<1<<ee._level+s){for(var De=ee._root,Be=ee._level;De&&Be>0;)De=De.array[oe>>>Be&v],Be-=s;return De}}function ei(ee,oe,De){oe!==void 0&&(oe|=0),De!==void 0&&(De|=0);var Be=ee.__ownerID||new d,gt=ee._origin,Ht=ee._capacity,nn=gt+oe,Rn=De===void 0?Ht:De<0?Ht+De:gt+De;if(nn===gt&&Rn===Ht)return ee;if(nn>=Rn)return ee.clear();for(var Yn=ee._level,gr=ee._root,Ai=0;nn+Ai<0;)gr=new z(gr&&gr.array.length?[void 0,gr]:[],Be),Yn+=s,Ai+=1<<Yn;Ai&&(nn+=Ai,gt+=Ai,Rn+=Ai,Ht+=Ai);for(var $i=mi(Ht),ma=mi(Rn);ma>=1<<Yn+s;)gr=new z(gr&&gr.array.length?[gr]:[],Be),Yn+=s;var La=ee._tail,Qa=ma<$i?br(ee,Rn-1):ma>$i?new z([],Be):La;if(La&&ma>$i&&nn<Ht&&La.array.length){gr=Hn(gr,Be);for(var go=gr,Ao=Yn;Ao>s;Ao-=s){var Fo=$i>>>Ao&v;go=go.array[Fo]=Hn(go.array[Fo],Be)}go.array[$i>>>s&v]=La}if(Rn<Ht&&(Qa=Qa&&Qa.removeAfter(Be,0,Rn)),nn>=ma)nn-=ma,Rn-=ma,Yn=s,gr=null,Qa=Qa&&Qa.removeBefore(Be,0,nn);else if(nn>gt||ma<$i){for(Ai=0;gr;){var Ho=nn>>>Yn&v;if(Ho!==ma>>>Yn&v)break;Ho&&(Ai+=(1<<Yn)*Ho),Yn-=s,gr=gr.array[Ho]}gr&&nn>gt&&(gr=gr.removeBefore(Be,Yn,nn-Ai)),gr&&ma<$i&&(gr=gr.removeAfter(Be,Yn,ma-Ai)),Ai&&(nn-=Ai,Rn-=Ai)}return ee.__ownerID?(ee.size=Rn-nn,ee._origin=nn,ee._capacity=Rn,ee._level=Yn,ee._root=gr,ee._tail=Qa,ee.__hash=void 0,ee.__altered=!0,ee):Le(nn,Rn,Yn,gr,Qa)}function mi(ee){return ee<u?0:ee-1>>>s<<s}var Li=function(ee){function oe(De){return De==null?$a():Et(De)?De:$a().withMutations(function(Be){var gt=W(De);li(gt.size),gt.forEach(function(Ht,nn){return Be.set(nn,Ht)})})}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.of=function(){return this(arguments)},oe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},oe.prototype.get=function(Be,gt){var Ht=this._map.get(Be);return Ht!==void 0?this._list.get(Ht)[1]:gt},oe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):$a()},oe.prototype.set=function(Be,gt){return Ha(this,Be,gt)},oe.prototype.remove=function(Be){return Ha(this,Be,l)},oe.prototype.__iterate=function(Be,gt){var Ht=this;return this._list.__iterate(function(nn){return nn&&Be(nn[1],nn[0],Ht)},gt)},oe.prototype.__iterator=function(Be,gt){return this._list.fromEntrySeq().__iterator(Be,gt)},oe.prototype.__ensureOwner=function(Be){if(Be===this.__ownerID)return this;var gt=this._map.__ensureOwner(Be),Ht=this._list.__ensureOwner(Be);return Be?na(gt,Ht,Be,this.__hash):this.size===0?$a():(this.__ownerID=Be,this.__altered=!1,this._map=gt,this._list=Ht,this)},oe}(za);Li.isOrderedMap=Et,Li.prototype[$]=!0,Li.prototype[i]=Li.prototype.remove;function na(ee,oe,De,Be){var gt=Object.create(Li.prototype);return gt.size=ee?ee.size:0,gt._map=ee,gt._list=oe,gt.__ownerID=De,gt.__hash=Be,gt.__altered=!1,gt}var ji;function $a(){return ji||(ji=na(Xe(),Ct()))}function Ha(ee,oe,De){var Be=ee._map,gt=ee._list,Ht=Be.get(oe),nn=Ht!==void 0,Rn,Yn;if(De===l){if(!nn)return ee;gt.size>=u&>.size>=Be.size*2?(Yn=gt.filter(function(gr,Ai){return gr!==void 0&&Ht!==Ai}),Rn=Yn.toKeyedSeq().map(function(gr){return gr[0]}).flip().toMap(),ee.__ownerID&&(Rn.__ownerID=Yn.__ownerID=ee.__ownerID)):(Rn=Be.remove(oe),Yn=Ht===gt.size-1?gt.pop():gt.set(Ht,void 0))}else if(nn){if(De===gt.get(Ht)[1])return ee;Rn=Be,Yn=gt.set(Ht,[oe,De])}else Rn=Be.set(oe,gt.size),Yn=gt.set(gt.size,[oe,De]);return ee.__ownerID?(ee.size=Rn.size,ee._map=Rn,ee._list=Yn,ee.__hash=void 0,ee.__altered=!0,ee):na(Rn,Yn)}var Eo="@@__IMMUTABLE_STACK__@@";function Uo(ee){return!!(ee&&ee[Eo])}var Ms=function(ee){function oe(De){return De==null?ur():Uo(De)?De:ur().pushAll(De)}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.of=function(){return this(arguments)},oe.prototype.toString=function(){return this.__toString("Stack [","]")},oe.prototype.get=function(Be,gt){var Ht=this._head;for(Be=g(this,Be);Ht&&Be--;)Ht=Ht.next;return Ht?Ht.value:gt},oe.prototype.peek=function(){return this._head&&this._head.value},oe.prototype.push=function(){var Be=arguments;if(arguments.length===0)return this;for(var gt=this.size+arguments.length,Ht=this._head,nn=arguments.length-1;nn>=0;nn--)Ht={value:Be[nn],next:Ht};return this.__ownerID?(this.size=gt,this._head=Ht,this.__hash=void 0,this.__altered=!0,this):Ar(gt,Ht)},oe.prototype.pushAll=function(Be){if(Be=ee(Be),Be.size===0)return this;if(this.size===0&&Uo(Be))return Be;li(Be.size);var gt=this.size,Ht=this._head;return Be.__iterate(function(nn){gt++,Ht={value:nn,next:Ht}},!0),this.__ownerID?(this.size=gt,this._head=Ht,this.__hash=void 0,this.__altered=!0,this):Ar(gt,Ht)},oe.prototype.pop=function(){return this.slice(1)},oe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):ur()},oe.prototype.slice=function(Be,gt){if(b(Be,gt,this.size))return this;var Ht=E(Be,this.size),nn=S(gt,this.size);if(nn!==this.size)return ee.prototype.slice.call(this,Be,gt);for(var Rn=this.size-Ht,Yn=this._head;Ht--;)Yn=Yn.next;return this.__ownerID?(this.size=Rn,this._head=Yn,this.__hash=void 0,this.__altered=!0,this):Ar(Rn,Yn)},oe.prototype.__ensureOwner=function(Be){return Be===this.__ownerID?this:Be?Ar(this.size,this._head,Be,this.__hash):this.size===0?ur():(this.__ownerID=Be,this.__altered=!1,this)},oe.prototype.__iterate=function(Be,gt){var Ht=this;if(gt)return new Ye(this.toArray()).__iterate(function(Yn,gr){return Be(Yn,gr,Ht)},gt);for(var nn=0,Rn=this._head;Rn&&Be(Rn.value,nn++,this)!==!1;)Rn=Rn.next;return nn},oe.prototype.__iterator=function(Be,gt){if(gt)return new Ye(this.toArray()).__iterator(Be,gt);var Ht=0,nn=this._head;return new ie(function(){if(nn){var Rn=nn.value;return nn=nn.next,fe(Be,Ht++,Rn)}return Se()})},oe}(j);Ms.isStack=Uo;var er=Ms.prototype;er[Eo]=!0,er.shift=er.pop,er.unshift=er.push,er.unshiftAll=er.pushAll,er.withMutations=ja,er.wasAltered=ai,er.asImmutable=wi,er["@@transducer/init"]=er.asMutable=uo,er["@@transducer/step"]=function(ee,oe){return ee.unshift(oe)},er["@@transducer/result"]=function(ee){return ee.asImmutable()};function Ar(ee,oe,De,Be){var gt=Object.create(er);return gt.size=ee,gt._head=oe,gt.__ownerID=De,gt.__hash=Be,gt.__altered=!1,gt}var Kr;function ur(){return Kr||(Kr=Ar(0))}var Gr="@@__IMMUTABLE_SET__@@";function Pi(ee){return!!(ee&&ee[Gr])}function aa(ee){return Pi(ee)&&k(ee)}function Fa(ee,oe){if(ee===oe)return!0;if(!R(oe)||ee.size!==void 0&&oe.size!==void 0&&ee.size!==oe.size||ee.__hash!==void 0&&oe.__hash!==void 0&&ee.__hash!==oe.__hash||A(ee)!==A(oe)||N(ee)!==N(oe)||k(ee)!==k(oe))return!1;if(ee.size===0&&oe.size===0)return!0;var De=!K(ee);if(k(ee)){var Be=ee.entries();return oe.every(function(Yn,gr){var Ai=Be.next().value;return Ai&&ut(Ai[1],Yn)&&(De||ut(Ai[0],gr))})&&Be.next().done}var gt=!1;if(ee.size===void 0)if(oe.size===void 0)typeof ee.cacheResult=="function"&&ee.cacheResult();else{gt=!0;var Ht=ee;ee=oe,oe=Ht}var nn=!0,Rn=oe.__iterate(function(Yn,gr){if(De?!ee.has(Yn):gt?!ut(Yn,ee.get(gr,l)):!ut(ee.get(gr,l),Yn))return nn=!1,!1});return nn&&ee.size===Rn}function tn(ee,oe){var De=function(Be){ee.prototype[Be]=oe[Be]};return Object.keys(oe).forEach(De),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(oe).forEach(De),ee}function cn(ee){if(!ee||typeof ee!="object")return ee;if(!R(ee)){if(!vo(ee))return ee;ee=ue(ee)}if(A(ee)){var oe={};return ee.__iterate(function(Be,gt){oe[gt]=cn(Be)}),oe}var De=[];return ee.__iterate(function(Be){De.push(cn(Be))}),De}var nr=function(ee){function oe(De){return De==null?Ka():Pi(De)&&!k(De)?De:Ka().withMutations(function(Be){var gt=ee(De);li(gt.size),gt.forEach(function(Ht){return Be.add(Ht)})})}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.of=function(){return this(arguments)},oe.fromKeys=function(Be){return this(W(Be).keySeq())},oe.intersect=function(Be){return Be=_(Be).toArray(),Be.length?ir.intersect.apply(oe(Be.pop()),Be):Ka()},oe.union=function(Be){return Be=_(Be).toArray(),Be.length?ir.union.apply(oe(Be.pop()),Be):Ka()},oe.prototype.toString=function(){return this.__toString("Set {","}")},oe.prototype.has=function(Be){return this._map.has(Be)},oe.prototype.add=function(Be){return Lr(this,this._map.set(Be,Be))},oe.prototype.remove=function(Be){return Lr(this,this._map.remove(Be))},oe.prototype.clear=function(){return Lr(this,this._map.clear())},oe.prototype.map=function(Be,gt){var Ht=this,nn=!1,Rn=Lr(this,this._map.mapEntries(function(Yn){var gr=Yn[1],Ai=Be.call(gt,gr,gr,Ht);return Ai!==gr&&(nn=!0),[Ai,Ai]},gt));return nn?Rn:this},oe.prototype.union=function(){for(var Be=[],gt=arguments.length;gt--;)Be[gt]=arguments[gt];return Be=Be.filter(function(Ht){return Ht.size!==0}),Be.length===0?this:this.size===0&&!this.__ownerID&&Be.length===1?this.constructor(Be[0]):this.withMutations(function(Ht){for(var nn=0;nn<Be.length;nn++)typeof Be[nn]=="string"?Ht.add(Be[nn]):ee(Be[nn]).forEach(function(Rn){return Ht.add(Rn)})})},oe.prototype.intersect=function(){for(var Be=[],gt=arguments.length;gt--;)Be[gt]=arguments[gt];if(Be.length===0)return this;Be=Be.map(function(nn){return ee(nn)});var Ht=[];return this.forEach(function(nn){Be.every(function(Rn){return Rn.includes(nn)})||Ht.push(nn)}),this.withMutations(function(nn){Ht.forEach(function(Rn){nn.remove(Rn)})})},oe.prototype.subtract=function(){for(var Be=[],gt=arguments.length;gt--;)Be[gt]=arguments[gt];if(Be.length===0)return this;Be=Be.map(function(nn){return ee(nn)});var Ht=[];return this.forEach(function(nn){Be.some(function(Rn){return Rn.includes(nn)})&&Ht.push(nn)}),this.withMutations(function(nn){Ht.forEach(function(Rn){nn.remove(Rn)})})},oe.prototype.sort=function(Be){return fu(Vn(this,Be))},oe.prototype.sortBy=function(Be,gt){return fu(Vn(this,gt,Be))},oe.prototype.wasAltered=function(){return this._map.wasAltered()},oe.prototype.__iterate=function(Be,gt){var Ht=this;return this._map.__iterate(function(nn){return Be(nn,nn,Ht)},gt)},oe.prototype.__iterator=function(Be,gt){return this._map.__iterator(Be,gt)},oe.prototype.__ensureOwner=function(Be){if(Be===this.__ownerID)return this;var gt=this._map.__ensureOwner(Be);return Be?this.__make(gt,Be):this.size===0?this.__empty():(this.__ownerID=Be,this._map=gt,this)},oe}(re);nr.isSet=Pi;var ir=nr.prototype;ir[Gr]=!0,ir[i]=ir.remove,ir.merge=ir.concat=ir.union,ir.withMutations=ja,ir.asImmutable=wi,ir["@@transducer/init"]=ir.asMutable=uo,ir["@@transducer/step"]=function(ee,oe){return ee.add(oe)},ir["@@transducer/result"]=function(ee){return ee.asImmutable()},ir.__empty=Ka,ir.__make=ua;function Lr(ee,oe){return ee.__ownerID?(ee.size=oe.size,ee._map=oe,ee):oe===ee._map?ee:oe.size===0?ee.__empty():ee.__make(oe)}function ua(ee,oe){var De=Object.create(ir);return De.size=ee?ee.size:0,De._map=ee,De.__ownerID=oe,De}var _a;function Ka(){return _a||(_a=ua(Xe()))}var yo=function(ee){function oe(De,Be,gt){if(!(this instanceof oe))return new oe(De,Be,gt);if(Ca(gt!==0,"Cannot step a Range by 0"),De=De||0,Be===void 0&&(Be=1/0),gt=gt===void 0?1:Math.abs(gt),Be<De&&(gt=-gt),this._start=De,this._end=Be,this._step=gt,this.size=Math.max(0,Math.ceil((Be-De)/gt-1)+1),this.size===0){if(Ba)return Ba;Ba=this}}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},oe.prototype.get=function(Be,gt){return this.has(Be)?this._start+g(this,Be)*this._step:gt},oe.prototype.includes=function(Be){var gt=(Be-this._start)/this._step;return gt>=0&><this.size&>===Math.floor(gt)},oe.prototype.slice=function(Be,gt){return b(Be,gt,this.size)?this:(Be=E(Be,this.size),gt=S(gt,this.size),gt<=Be?new oe(0,0):new oe(this.get(Be,this._end),this.get(gt,this._end),this._step))},oe.prototype.indexOf=function(Be){var gt=Be-this._start;if(gt%this._step===0){var Ht=gt/this._step;if(Ht>=0&&Ht<this.size)return Ht}return-1},oe.prototype.lastIndexOf=function(Be){return this.indexOf(Be)},oe.prototype.__iterate=function(Be,gt){for(var Ht=this.size,nn=this._step,Rn=gt?this._start+(Ht-1)*nn:this._start,Yn=0;Yn!==Ht&&Be(Rn,gt?Ht-++Yn:Yn++,this)!==!1;)Rn+=gt?-nn:nn;return Yn},oe.prototype.__iterator=function(Be,gt){var Ht=this.size,nn=this._step,Rn=gt?this._start+(Ht-1)*nn:this._start,Yn=0;return new ie(function(){if(Yn===Ht)return Se();var gr=Rn;return Rn+=gt?-nn:nn,fe(Be,gt?Ht-++Yn:Yn++,gr)})},oe.prototype.equals=function(Be){return Be instanceof oe?this._start===Be._start&&this._end===Be._end&&this._step===Be._step:Fa(this,Be)},oe}(ve),Ba;function Ma(ee,oe,De){for(var Be=la(oe),gt=0;gt!==Be.length;)if(ee=$r(ee,Be[gt++],l),ee===l)return De;return ee}function Mo(ee,oe){return Ma(this,ee,oe)}function Nr(ee,oe){return Ma(ee,oe,l)!==l}function gi(ee){return Nr(this,ee)}function ea(){li(this.size);var ee={};return this.__iterate(function(oe,De){ee[De]=oe}),ee}_.isIterable=R,_.isKeyed=A,_.isIndexed=N,_.isAssociative=K,_.isOrdered=k,_.Iterator=ie,tn(_,{toArray:function(){li(this.size);var oe=new Array(this.size||0),De=A(this),Be=0;return this.__iterate(function(gt,Ht){oe[Be++]=De?[Ht,gt]:gt}),oe},toIndexedSeq:function(){return new Ut(this)},toJS:function(){return cn(this)},toKeyedSeq:function(){return new Ke(this,!0)},toMap:function(){return za(this.toKeyedSeq())},toObject:ea,toOrderedMap:function(){return Li(this.toKeyedSeq())},toOrderedSet:function(){return fu(A(this)?this.valueSeq():this)},toSet:function(){return nr(A(this)?this.valueSeq():this)},toSetSeq:function(){return new on(this)},toSeq:function(){return N(this)?this.toIndexedSeq():A(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ms(A(this)?this.valueSeq():this)},toList:function(){return Ee(A(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(oe,De){return this.size===0?oe+De:oe+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+De},concat:function(){for(var oe=[],De=arguments.length;De--;)oe[De]=arguments[De];return yr(this,dn(this,oe))},includes:function(oe){return this.some(function(De){return ut(De,oe)})},entries:function(){return this.__iterator(pe)},every:function(oe,De){li(this.size);var Be=!0;return this.__iterate(function(gt,Ht,nn){if(!oe.call(De,gt,Ht,nn))return Be=!1,!1}),Be},filter:function(oe,De){return yr(this,We(this,oe,De,!0))},partition:function(oe,De){return qt(this,oe,De)},find:function(oe,De,Be){var gt=this.findEntry(oe,De);return gt?gt[1]:Be},forEach:function(oe,De){return li(this.size),this.__iterate(De?oe.bind(De):oe)},join:function(oe){li(this.size),oe=oe!==void 0?""+oe:",";var De="",Be=!0;return this.__iterate(function(gt){Be?Be=!1:De+=oe,De+=gt!=null?gt.toString():""}),De},keys:function(){return this.__iterator(F)},map:function(oe,De){return yr(this,Zt(this,oe,De))},reduce:function(oe,De,Be){return Cr(this,oe,De,Be,arguments.length<2,!1)},reduceRight:function(oe,De,Be){return Cr(this,oe,De,Be,arguments.length<2,!0)},reverse:function(){return yr(this,ot(this,!0))},slice:function(oe,De){return yr(this,vn(this,oe,De,!0))},some:function(oe,De){return!this.every(Co(oe),De)},sort:function(oe){return yr(this,Vn(this,oe))},values:function(){return this.__iterator(V)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(oe,De){return f(oe?this.toSeq().filter(oe,De):this)},countBy:function(oe,De){return Ft(this,oe,De)},equals:function(oe){return Fa(this,oe)},entrySeq:function(){var oe=this;if(oe._cache)return new Ye(oe._cache);var De=oe.toSeq().map(Io).toIndexedSeq();return De.fromEntrySeq=function(){return oe.toSeq()},De},filterNot:function(oe,De){return this.filter(Co(oe),De)},findEntry:function(oe,De,Be){var gt=Be;return this.__iterate(function(Ht,nn,Rn){if(oe.call(De,Ht,nn,Rn))return gt=[nn,Ht],!1}),gt},findKey:function(oe,De){var Be=this.findEntry(oe,De);return Be&&Be[0]},findLast:function(oe,De,Be){return this.toKeyedSeq().reverse().find(oe,De,Be)},findLastEntry:function(oe,De,Be){return this.toKeyedSeq().reverse().findEntry(oe,De,Be)},findLastKey:function(oe,De){return this.toKeyedSeq().reverse().findKey(oe,De)},first:function(oe){return this.find(y,null,oe)},flatMap:function(oe,De){return yr(this,Kn(this,oe,De))},flatten:function(oe){return yr(this,mn(this,oe,!0))},fromEntrySeq:function(){return new Tn(this)},get:function(oe,De){return this.find(function(Be,gt){return ut(gt,oe)},void 0,De)},getIn:Mo,groupBy:function(oe,De){return it(this,oe,De)},has:function(oe){return this.get(oe,l)!==l},hasIn:gi,isSubset:function(oe){return oe=typeof oe.includes=="function"?oe:_(oe),this.every(function(De){return oe.includes(De)})},isSuperset:function(oe){return oe=typeof oe.isSubset=="function"?oe:_(oe),oe.isSubset(this)},keyOf:function(oe){return this.findKey(function(De){return ut(De,oe)})},keySeq:function(){return this.toSeq().map(ka).toIndexedSeq()},last:function(oe){return this.toSeq().reverse().first(oe)},lastKeyOf:function(oe){return this.toKeyedSeq().reverse().keyOf(oe)},max:function(oe){return or(this,oe)},maxBy:function(oe,De){return or(this,De,oe)},min:function(oe){return or(this,oe?_s(oe):xs)},minBy:function(oe,De){return or(this,De?_s(De):xs,oe)},rest:function(){return this.slice(1)},skip:function(oe){return oe===0?this:this.slice(Math.max(0,oe))},skipLast:function(oe){return oe===0?this:this.slice(0,-Math.max(0,oe))},skipWhile:function(oe,De){return yr(this,Tt(this,oe,De,!0))},skipUntil:function(oe,De){return this.skipWhile(Co(oe),De)},sortBy:function(oe,De){return yr(this,Vn(this,De,oe))},take:function(oe){return this.slice(0,Math.max(0,oe))},takeLast:function(oe){return this.slice(-Math.max(0,oe))},takeWhile:function(oe,De){return yr(this,fn(this,oe,De))},takeUntil:function(oe,De){return this.takeWhile(Co(oe),De)},update:function(oe){return oe(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Zs(this))}});var dr=_.prototype;dr[P]=!0,dr[te]=dr.values,dr.toJSON=dr.toArray,dr.__toStringMapper=Qn,dr.inspect=dr.toSource=function(){return this.toString()},dr.chain=dr.flatMap,dr.contains=dr.includes,tn(W,{flip:function(){return yr(this,An(this))},mapEntries:function(oe,De){var Be=this,gt=0;return yr(this,this.toSeq().map(function(Ht,nn){return oe.call(De,[nn,Ht],gt++,Be)}).fromEntrySeq())},mapKeys:function(oe,De){var Be=this;return yr(this,this.toSeq().flip().map(function(gt,Ht){return oe.call(De,gt,Ht,Be)}).flip())}});var ci=W.prototype;ci[T]=!0,ci[te]=dr.entries,ci.toJSON=ea,ci.__toStringMapper=function(ee,oe){return Qn(oe)+": "+Qn(ee)},tn(j,{toKeyedSeq:function(){return new Ke(this,!1)},filter:function(oe,De){return yr(this,We(this,oe,De,!1))},findIndex:function(oe,De){var Be=this.findEntry(oe,De);return Be?Be[0]:-1},indexOf:function(oe){var De=this.keyOf(oe);return De===void 0?-1:De},lastIndexOf:function(oe){var De=this.lastKeyOf(oe);return De===void 0?-1:De},reverse:function(){return yr(this,ot(this,!1))},slice:function(oe,De){return yr(this,vn(this,oe,De,!1))},splice:function(oe,De){var Be=arguments.length;if(De=Math.max(De||0,0),Be===0||Be===2&&!De)return this;oe=E(oe,oe<0?this.count():this.size);var gt=this.slice(0,oe);return yr(this,Be===1?gt:gt.concat(ha(arguments,2),this.slice(oe+De)))},findLastIndex:function(oe,De){var Be=this.findLastEntry(oe,De);return Be?Be[0]:-1},first:function(oe){return this.get(0,oe)},flatten:function(oe){return yr(this,mn(this,oe,!1))},get:function(oe,De){return oe=g(this,oe),oe<0||this.size===1/0||this.size!==void 0&&oe>this.size?De:this.find(function(Be,gt){return gt===oe},void 0,De)},has:function(oe){return oe=g(this,oe),oe>=0&&(this.size!==void 0?this.size===1/0||oe<this.size:this.indexOf(oe)!==-1)},interpose:function(oe){return yr(this,Dn(this,oe))},interleave:function(){var oe=[this].concat(ha(arguments)),De=ni(this.toSeq(),ve.of,oe),Be=De.flatten(!0);return De.size&&(Be.size=De.size*oe.length),yr(this,Be)},keySeq:function(){return yo(0,this.size)},last:function(oe){return this.get(-1,oe)},skipWhile:function(oe,De){return yr(this,Tt(this,oe,De,!1))},zip:function(){var oe=[this].concat(ha(arguments));return yr(this,ni(this,Is,oe))},zipAll:function(){var oe=[this].concat(ha(arguments));return yr(this,ni(this,Is,oe,!0))},zipWith:function(oe){var De=ha(arguments);return De[0]=this,yr(this,ni(this,oe,De))}});var yi=j.prototype;yi[I]=!0,yi[$]=!0,tn(re,{get:function(oe,De){return this.has(oe)?oe:De},includes:function(oe){return this.has(oe)},keySeq:function(){return this.valueSeq()}});var xa=re.prototype;xa.has=dr.includes,xa.contains=xa.includes,xa.keys=xa.values,tn(ae,ci),tn(ve,yi),tn(Me,xa);function Cr(ee,oe,De,Be,gt,Ht){return li(ee.size),ee.__iterate(function(nn,Rn,Yn){gt?(gt=!1,De=nn):De=oe.call(Be,De,nn,Rn,Yn)},Ht),De}function ka(ee,oe){return oe}function Io(ee,oe){return[oe,ee]}function Co(ee){return function(){return!ee.apply(this,arguments)}}function _s(ee){return function(){return-ee.apply(this,arguments)}}function Is(){return ha(arguments)}function xs(ee,oe){return ee<oe?1:ee>oe?-1:0}function Zs(ee){if(ee.size===1/0)return 0;var oe=k(ee),De=A(ee),Be=oe?1:0,gt=ee.__iterate(De?oe?function(Ht,nn){Be=31*Be+Us(Gt(Ht),Gt(nn))|0}:function(Ht,nn){Be=Be+Us(Gt(Ht),Gt(nn))|0}:oe?function(Ht){Be=31*Be+Gt(Ht)|0}:function(Ht){Be=Be+Gt(Ht)|0});return Ns(gt,Be)}function Ns(ee,oe){return oe=Ne(oe,3432918353),oe=Ne(oe<<15|oe>>>-15,461845907),oe=Ne(oe<<13|oe>>>-13,5),oe=(oe+3864292196|0)^ee,oe=Ne(oe^oe>>>16,2246822507),oe=Ne(oe^oe>>>13,3266489909),oe=mt(oe^oe>>>16),oe}function Us(ee,oe){return ee^oe+2654435769+(ee<<6)+(ee>>2)|0}var fu=function(ee){function oe(De){return De==null?Zu():aa(De)?De:Zu().withMutations(function(Be){var gt=re(De);li(gt.size),gt.forEach(function(Ht){return Be.add(Ht)})})}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.of=function(){return this(arguments)},oe.fromKeys=function(Be){return this(W(Be).keySeq())},oe.prototype.toString=function(){return this.__toString("OrderedSet {","}")},oe}(nr);fu.isOrderedSet=aa;var bu=fu.prototype;bu[$]=!0,bu.zip=yi.zip,bu.zipWith=yi.zipWith,bu.zipAll=yi.zipAll,bu.__empty=Zu,bu.__make=Ys;function Ys(ee,oe){var De=Object.create(bu);return De.size=ee?ee.size:0,De._map=ee,De.__ownerID=oe,De}var Hu;function Zu(){return Hu||(Hu=Ys($a()))}var ql={LeftThenRight:-1,RightThenLeft:1};function Sn(ee){if(q(ee))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(L(ee))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(ee===null||typeof ee!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var Wn=function(oe,De){var Be;Sn(oe);var gt=function(Rn){var Yn=this;if(Rn instanceof gt)return Rn;if(!(this instanceof gt))return new gt(Rn);if(!Be){Be=!0;var gr=Object.keys(oe),Ai=Ht._indices={};Ht._name=De,Ht._keys=gr,Ht._defaultValues=oe;for(var $i=0;$i<gr.length;$i++){var ma=gr[$i];Ai[ma]=$i,Ht[ma]?typeof console=="object"&&console.warn&&console.warn("Cannot define "+ui(this)+' with property "'+ma+'" since that property name is part of the Record API.'):St(Ht,ma)}}return this.__ownerID=void 0,this._values=Ee().withMutations(function(La){La.setSize(Yn._keys.length),W(Rn).forEach(function(Qa,go){La.set(Yn._indices[go],Qa===Yn._defaultValues[go]?void 0:Qa)})}),this},Ht=gt.prototype=Object.create(vr);return Ht.constructor=gt,De&&(gt.displayName=De),gt};Wn.prototype.toString=function(){for(var oe=ui(this)+" { ",De=this._keys,Be,gt=0,Ht=De.length;gt!==Ht;gt++)Be=De[gt],oe+=(gt?", ":"")+Be+": "+Qn(this.get(Be));return oe+" }"},Wn.prototype.equals=function(oe){return this===oe||q(oe)&&ta(this).equals(ta(oe))},Wn.prototype.hashCode=function(){return ta(this).hashCode()},Wn.prototype.has=function(oe){return this._indices.hasOwnProperty(oe)},Wn.prototype.get=function(oe,De){if(!this.has(oe))return De;var Be=this._indices[oe],gt=this._values.get(Be);return gt===void 0?this._defaultValues[oe]:gt},Wn.prototype.set=function(oe,De){if(this.has(oe)){var Be=this._values.set(this._indices[oe],De===this._defaultValues[oe]?void 0:De);if(Be!==this._values&&!this.__ownerID)return kr(this,Be)}return this},Wn.prototype.remove=function(oe){return this.set(oe)},Wn.prototype.clear=function(){var oe=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:kr(this,oe)},Wn.prototype.wasAltered=function(){return this._values.wasAltered()},Wn.prototype.toSeq=function(){return ta(this)},Wn.prototype.toJS=function(){return cn(this)},Wn.prototype.entries=function(){return this.__iterator(pe)},Wn.prototype.__iterator=function(oe,De){return ta(this).__iterator(oe,De)},Wn.prototype.__iterate=function(oe,De){return ta(this).__iterate(oe,De)},Wn.prototype.__ensureOwner=function(oe){if(oe===this.__ownerID)return this;var De=this._values.__ensureOwner(oe);return oe?kr(this,De,oe):(this.__ownerID=oe,this._values=De,this)},Wn.isRecord=q,Wn.getDescriptiveName=ui;var vr=Wn.prototype;vr[J]=!0,vr[i]=vr.remove,vr.deleteIn=vr.removeIn=rr,vr.getIn=Mo,vr.hasIn=dr.hasIn,vr.merge=lr,vr.mergeWith=Jr,vr.mergeIn=wr,vr.mergeDeep=Jo,vr.mergeDeepWith=Go,vr.mergeDeepIn=qi,vr.setIn=ln,vr.update=Ir,vr.updateIn=Zr,vr.withMutations=ja,vr.asMutable=uo,vr.asImmutable=wi,vr[te]=vr.entries,vr.toJSON=vr.toObject=dr.toObject,vr.inspect=vr.toSource=function(){return this.toString()};function kr(ee,oe,De){var Be=Object.create(Object.getPrototypeOf(ee));return Be._values=oe,Be.__ownerID=De,Be}function ui(ee){return ee.constructor.displayName||ee.constructor.name||"Record"}function ta(ee){return Ae(ee._keys.map(function(oe){return[oe,ee.get(oe)]}))}function St(ee,oe){try{Object.defineProperty(ee,oe,{get:function(){return this.get(oe)},set:function(De){Ca(this.__ownerID,"Cannot set on an immutable record."),this.set(oe,De)}})}catch{}}var pt=function(ee){function oe(De,Be){if(!(this instanceof oe))return new oe(De,Be);if(this._value=De,this.size=Be===void 0?1/0:Math.max(0,Be),this.size===0){if(kt)return kt;kt=this}}return ee&&(oe.__proto__=ee),oe.prototype=Object.create(ee&&ee.prototype),oe.prototype.constructor=oe,oe.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},oe.prototype.get=function(Be,gt){return this.has(Be)?this._value:gt},oe.prototype.includes=function(Be){return ut(this._value,Be)},oe.prototype.slice=function(Be,gt){var Ht=this.size;return b(Be,gt,Ht)?this:new oe(this._value,S(gt,Ht)-E(Be,Ht))},oe.prototype.reverse=function(){return this},oe.prototype.indexOf=function(Be){return ut(this._value,Be)?0:-1},oe.prototype.lastIndexOf=function(Be){return ut(this._value,Be)?this.size:-1},oe.prototype.__iterate=function(Be,gt){for(var Ht=this.size,nn=0;nn!==Ht&&Be(this._value,gt?Ht-++nn:nn++,this)!==!1;);return nn},oe.prototype.__iterator=function(Be,gt){var Ht=this,nn=this.size,Rn=0;return new ie(function(){return Rn===nn?Se():fe(Be,gt?nn-++Rn:Rn++,Ht._value)})},oe.prototype.equals=function(Be){return Be instanceof oe?ut(this._value,Be._value):Fa(Be)},oe}(ve),kt;function _t(ee,oe){return Mn([],oe||Pr,ee,"",oe&&oe.length>2?[]:void 0,{"":ee})}function Mn(ee,oe,De,Be,gt,Ht){if(typeof De!="string"&&!L(De)&&(Re(De)||he(De)||wa(De))){if(~ee.indexOf(De))throw new TypeError("Cannot convert circular structure to Immutable");ee.push(De),gt&&Be!==""&>.push(Be);var nn=oe.call(Ht,Be,ue(De).map(function(Rn,Yn){return Mn(ee,oe,Rn,Yn,gt,De)}),gt&>.slice());return ee.pop(),gt&>.pop(),nn}return De}function Pr(ee,oe){return N(oe)?oe.toList():A(oe)?oe.toMap():oe.toSet()}var Hi="4.3.0",jt={version:Hi,Collection:_,Iterable:_,Seq:ue,Map:za,OrderedMap:Li,List:Ee,Stack:Ms,Set:nr,OrderedSet:fu,PairSorting:ql,Record:Wn,Range:yo,Repeat:pt,is:ut,fromJS:_t,hash:Gt,isImmutable:L,isCollection:R,isKeyed:A,isIndexed:N,isAssociative:K,isOrdered:k,isValueObject:ct,isPlainObject:wa,isSeq:Z,isList:us,isMap:je,isOrderedMap:Et,isStack:Uo,isSet:Pi,isOrderedSet:aa,isRecord:q,get:$r,getIn:Ma,has:_r,hasIn:Nr,merge:Ri,mergeDeep:ia,mergeWith:Ki,mergeDeepWith:Da,remove:xt,removeIn:jn,set:On,setIn:En,update:Mr,updateIn:Zn},$n=_;const pn=jt},53266:(C,c)=>{"use strict";var t;t={value:!0};for(var i=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),s={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},u={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:i?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},v={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},l=1;l<20;l++)v["f"+l]=111+l;function h(E,S,w){S&&!("byKey"in S)&&(w=S,S=null),Array.isArray(E)||(E=[E]);var x=E.map(function(T){return f(T,S)}),P=function(A){return x.some(function(I){return g(I,A)})},R=w==null?P:P(w);return R}function p(E,S){return h(E,S)}function d(E,S){return h(E,{byKey:!0},S)}function f(E,S){var w=S&&S.byKey,x={};E=E.replace("++","+add");var P=E.split("+"),R=P.length;for(var T in s)x[s[T]]=!1;var A=!0,I=!1,N=void 0;try{for(var K=P[Symbol.iterator](),_;!(A=(_=K.next()).done);A=!0){var W=_.value,j=W.endsWith("?");j&&(W=W.slice(0,-1));var re=b(W),X=s[re];(R===1||!X)&&(w?x.key=re:x.which=y(W)),X&&(x[X]=j?null:!0)}}catch(Z){I=!0,N=Z}finally{try{!A&&K.return&&K.return()}finally{if(I)throw N}}return x}function g(E,S){for(var w in E){var x=E[w],P=void 0;if(x!=null&&(w==="key"?P=S.key.toLowerCase():w==="which"?P=x===91&&S.which===93?91:S.which:P=S[w],!(P==null&&x===!1)&&P!==x))return!1}return!0}function y(E){E=b(E);var S=v[E]||E.toUpperCase().charCodeAt(0);return S}function b(E){return E=E.toLowerCase(),E=u[E]||E,E}t=h,t=h,t=p,c.TB=d,t=f,t=g,t=y,t=b},94038:(C,c)=>{"use strict";var t;t={value:!0};for(var i=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),s={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},u={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:i?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},v={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},l=1;l<20;l++)v["f"+l]=111+l;function h(E,S,w){S&&!("byKey"in S)&&(w=S,S=null),Array.isArray(E)||(E=[E]);var x=E.map(function(T){return f(T,S)}),P=function(A){return x.some(function(I){return g(I,A)})},R=w==null?P:P(w);return R}function p(E,S){return h(E,S)}function d(E,S){return h(E,{byKey:!0},S)}function f(E,S){var w=S&&S.byKey,x={};E=E.replace("++","+add");var P=E.split("+"),R=P.length;for(var T in s)x[s[T]]=!1;var A=!0,I=!1,N=void 0;try{for(var K=P[Symbol.iterator](),_;!(A=(_=K.next()).done);A=!0){var W=_.value,j=W.endsWith("?")&&W.length>1;j&&(W=W.slice(0,-1));var re=b(W),X=s[re];if(W.length>1&&!X&&!u[W]&&!v[re])throw new TypeError('Unknown modifier: "'+W+'"');(R===1||!X)&&(w?x.key=re:x.which=y(W)),X&&(x[X]=j?null:!0)}}catch(Z){I=!0,N=Z}finally{try{!A&&K.return&&K.return()}finally{if(I)throw N}}return x}function g(E,S){for(var w in E){var x=E[w],P=void 0;if(x!=null&&(w==="key"&&S.key!=null?P=S.key.toLowerCase():w==="which"?P=x===91&&S.which===93?91:S.which:P=S[w],!(P==null&&x===!1)&&P!==x))return!1}return!0}function y(E){E=b(E);var S=v[E]||E.toUpperCase().charCodeAt(0);return S}function b(E){return E=E.toLowerCase(),E=u[E]||E,E}t=h,t=h,t=p,c.TB=d,t=f,t=g,t=y,t=b},53881:(C,c,t)=>{"use strict";/*! * is-plain-object <https://github.com/jonschlinkert/is-plain-object> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */var i=t(84529);function s(u){return i(u)===!0&&Object.prototype.toString.call(u)==="[object Object]"}C.exports=function(v){var l,h;return!(s(v)===!1||(l=v.constructor,typeof l!="function")||(h=l.prototype,s(h)===!1)||h.hasOwnProperty("isPrototypeOf")===!1)}},6461:C=>{C.exports=Array.isArray||function(c){return Object.prototype.toString.call(c)=="[object Array]"}},84529:C=>{"use strict";/*! * isobject <https://github.com/jonschlinkert/isobject> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */C.exports=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}},88593:(C,c)=>{"use strict";c.t=self.atob.bind(self),c.r=self.btoa.bind(self)},3740:function(C,c){var t,i;/*! * jQuery JavaScript Library v3.7.0 * https://jquery.com/ * * Copyright OpenJS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2023-05-11T18:29Z */(function(s,u){"use strict";typeof C.exports=="object"?C.exports=s.document?u(s,!0):function(v){if(!v.document)throw new Error("jQuery requires a window with a document");return u(v)}:u(s)})(typeof window<"u"?window:this,function(s,u){"use strict";var v=[],l=Object.getPrototypeOf,h=v.slice,p=v.flat?function(se){return v.flat.call(se)}:function(se){return v.concat.apply([],se)},d=v.push,f=v.indexOf,g={},y=g.toString,b=g.hasOwnProperty,E=b.toString,S=E.call(Object),w={},x=function(ye){return typeof ye=="function"&&typeof ye.nodeType!="number"&&typeof ye.item!="function"},P=function(ye){return ye!=null&&ye===ye.window},R=s.document,T={type:!0,src:!0,nonce:!0,noModule:!0};function A(se,ye,Xe){Xe=Xe||R;var yt,Wt,Qt=Xe.createElement("script");if(Qt.text=se,ye)for(yt in T)Wt=ye[yt]||ye.getAttribute&&ye.getAttribute(yt),Wt&&Qt.setAttribute(yt,Wt);Xe.head.appendChild(Qt).parentNode.removeChild(Qt)}function I(se){return se==null?se+"":typeof se=="object"||typeof se=="function"?g[y.call(se)]||"object":typeof se}var N="3.7.0",K=/HTML$/i,_=function(se,ye){return new _.fn.init(se,ye)};_.fn=_.prototype={jquery:N,constructor:_,length:0,toArray:function(){return h.call(this)},get:function(se){return se==null?h.call(this):se<0?this[se+this.length]:this[se]},pushStack:function(se){var ye=_.merge(this.constructor(),se);return ye.prevObject=this,ye},each:function(se){return _.each(this,se)},map:function(se){return this.pushStack(_.map(this,function(ye,Xe){return se.call(ye,Xe,ye)}))},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,function(se,ye){return(ye+1)%2}))},odd:function(){return this.pushStack(_.grep(this,function(se,ye){return ye%2}))},eq:function(se){var ye=this.length,Xe=+se+(se<0?ye:0);return this.pushStack(Xe>=0&&Xe<ye?[this[Xe]]:[])},end:function(){return this.prevObject||this.constructor()},push:d,sort:v.sort,splice:v.splice},_.extend=_.fn.extend=function(){var se,ye,Xe,yt,Wt,Qt,wn=arguments[0]||{},fr=1,Or=arguments.length,Si=!1;for(typeof wn=="boolean"&&(Si=wn,wn=arguments[fr]||{},fr++),typeof wn!="object"&&!x(wn)&&(wn={}),fr===Or&&(wn=this,fr--);fr<Or;fr++)if((se=arguments[fr])!=null)for(ye in se)yt=se[ye],!(ye==="__proto__"||wn===yt)&&(Si&&yt&&(_.isPlainObject(yt)||(Wt=Array.isArray(yt)))?(Xe=wn[ye],Wt&&!Array.isArray(Xe)?Qt=[]:!Wt&&!_.isPlainObject(Xe)?Qt={}:Qt=Xe,Wt=!1,wn[ye]=_.extend(Si,Qt,yt)):yt!==void 0&&(wn[ye]=yt));return wn},_.extend({expando:"jQuery"+(N+Math.random()).replace(/\D/g,""),isReady:!0,error:function(se){throw new Error(se)},noop:function(){},isPlainObject:function(se){var ye,Xe;return!se||y.call(se)!=="[object Object]"?!1:(ye=l(se),ye?(Xe=b.call(ye,"constructor")&&ye.constructor,typeof Xe=="function"&&E.call(Xe)===S):!0)},isEmptyObject:function(se){var ye;for(ye in se)return!1;return!0},globalEval:function(se,ye,Xe){A(se,{nonce:ye&&ye.nonce},Xe)},each:function(se,ye){var Xe,yt=0;if(W(se))for(Xe=se.length;yt<Xe&&ye.call(se[yt],yt,se[yt])!==!1;yt++);else for(yt in se)if(ye.call(se[yt],yt,se[yt])===!1)break;return se},text:function(se){var ye,Xe="",yt=0,Wt=se.nodeType;if(Wt){if(Wt===1||Wt===9||Wt===11)return se.textContent;if(Wt===3||Wt===4)return se.nodeValue}else for(;ye=se[yt++];)Xe+=_.text(ye);return Xe},makeArray:function(se,ye){var Xe=ye||[];return se!=null&&(W(Object(se))?_.merge(Xe,typeof se=="string"?[se]:se):d.call(Xe,se)),Xe},inArray:function(se,ye,Xe){return ye==null?-1:f.call(ye,se,Xe)},isXMLDoc:function(se){var ye=se&&se.namespaceURI,Xe=se&&(se.ownerDocument||se).documentElement;return!K.test(ye||Xe&&Xe.nodeName||"HTML")},merge:function(se,ye){for(var Xe=+ye.length,yt=0,Wt=se.length;yt<Xe;yt++)se[Wt++]=ye[yt];return se.length=Wt,se},grep:function(se,ye,Xe){for(var yt,Wt=[],Qt=0,wn=se.length,fr=!Xe;Qt<wn;Qt++)yt=!ye(se[Qt],Qt),yt!==fr&&Wt.push(se[Qt]);return Wt},map:function(se,ye,Xe){var yt,Wt,Qt=0,wn=[];if(W(se))for(yt=se.length;Qt<yt;Qt++)Wt=ye(se[Qt],Qt,Xe),Wt!=null&&wn.push(Wt);else for(Qt in se)Wt=ye(se[Qt],Qt,Xe),Wt!=null&&wn.push(Wt);return p(wn)},guid:1,support:w}),typeof Symbol=="function"&&(_.fn[Symbol.iterator]=v[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(se,ye){g["[object "+ye+"]"]=ye.toLowerCase()});function W(se){var ye=!!se&&"length"in se&&se.length,Xe=I(se);return x(se)||P(se)?!1:Xe==="array"||ye===0||typeof ye=="number"&&ye>0&&ye-1 in se}function j(se,ye){return se.nodeName&&se.nodeName.toLowerCase()===ye.toLowerCase()}var re=v.pop,X=v.sort,Z=v.splice,J="[\\x20\\t\\r\\n\\f]",q=new RegExp("^"+J+"+|((?:^|[^\\\\])(?:\\\\.)*)"+J+"+$","g");_.contains=function(se,ye){var Xe=ye&&ye.parentNode;return se===Xe||!!(Xe&&Xe.nodeType===1&&(se.contains?se.contains(Xe):se.compareDocumentPosition&&se.compareDocumentPosition(Xe)&16))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function $(se,ye){return ye?se==="\0"?"\uFFFD":se.slice(0,-1)+"\\"+se.charCodeAt(se.length-1).toString(16)+" ":"\\"+se}_.escapeSelector=function(se){return(se+"").replace(L,$)};var k=R,F=d;(function(){var se,ye,Xe,yt,Wt,Qt=F,wn,fr,Or,Si,Fi,Bi=_.expando,Ui=0,vi=0,Xa=Ms(),Ko=Ms(),So=Ms(),Lo=Ms(),us=function(Nr,gi){return Nr===gi&&(Wt=!0),0},Ee="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Y="(?:\\\\[\\da-fA-F]{1,6}"+J+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+J+"*("+Y+")(?:"+J+"*([*^$|!~]?=)"+J+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Y+"))|)"+J+"*\\]",B=":("+Y+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+z+")*)|.*)\\)|)",le=new RegExp(J+"+","g"),Le=new RegExp("^"+J+"*,"+J+"*"),Je=new RegExp("^"+J+"*([>+~]|"+J+")"+J+"*"),Ct=new RegExp(J+"|>"),Vt=new RegExp(B),bn=new RegExp("^"+Y+"$"),Hn={ID:new RegExp("^#("+Y+")"),CLASS:new RegExp("^\\.("+Y+")"),TAG:new RegExp("^("+Y+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+J+"*(even|odd|(([+-]|)(\\d*)n|)"+J+"*(?:([+-]|)"+J+"*(\\d+)|))"+J+"*\\)|)","i"),bool:new RegExp("^(?:"+Ee+")$","i"),needsContext:new RegExp("^"+J+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+J+"*((?:-\\d)?\\d*)"+J+"*\\)|)(?=[^-]|$)","i")},br=/^(?:input|select|textarea|button)$/i,ei=/^h\d$/i,mi=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Li=/[+~]/,na=new RegExp("\\\\[\\da-fA-F]{1,6}"+J+"?|\\\\([^\\r\\n\\f])","g"),ji=function(Nr,gi){var ea="0x"+Nr.slice(1)-65536;return gi||(ea<0?String.fromCharCode(ea+65536):String.fromCharCode(ea>>10|55296,ea&1023|56320))},$a=function(){Fa()},Ha=ir(function(Nr){return Nr.disabled===!0&&j(Nr,"fieldset")},{dir:"parentNode",next:"legend"});function Eo(){try{return wn.activeElement}catch{}}try{Qt.apply(v=h.call(k.childNodes),k.childNodes),v[k.childNodes.length].nodeType}catch{Qt={apply:function(gi,ea){F.apply(gi,h.call(ea))},call:function(gi){F.apply(gi,h.call(arguments,1))}}}function Uo(Nr,gi,ea,dr){var ci,yi,xa,Cr,ka,Io,Co,_s=gi&&gi.ownerDocument,Is=gi?gi.nodeType:9;if(ea=ea||[],typeof Nr!="string"||!Nr||Is!==1&&Is!==9&&Is!==11)return ea;if(!dr&&(Fa(gi),gi=gi||wn,Or)){if(Is!==11&&(ka=mi.exec(Nr)))if(ci=ka[1]){if(Is===9)if(xa=gi.getElementById(ci)){if(xa.id===ci)return Qt.call(ea,xa),ea}else return ea;else if(_s&&(xa=_s.getElementById(ci))&&Uo.contains(gi,xa)&&xa.id===ci)return Qt.call(ea,xa),ea}else{if(ka[2])return Qt.apply(ea,gi.getElementsByTagName(Nr)),ea;if((ci=ka[3])&&gi.getElementsByClassName)return Qt.apply(ea,gi.getElementsByClassName(ci)),ea}if(!Lo[Nr+" "]&&(!Si||!Si.test(Nr))){if(Co=Nr,_s=gi,Is===1&&(Ct.test(Nr)||Je.test(Nr))){for(_s=Li.test(Nr)&&aa(gi.parentNode)||gi,(_s!=gi||!w.scope)&&((Cr=gi.getAttribute("id"))?Cr=_.escapeSelector(Cr):gi.setAttribute("id",Cr=Bi)),Io=cn(Nr),yi=Io.length;yi--;)Io[yi]=(Cr?"#"+Cr:":scope")+" "+nr(Io[yi]);Co=Io.join(",")}try{return Qt.apply(ea,_s.querySelectorAll(Co)),ea}catch{Lo(Nr,!0)}finally{Cr===Bi&&gi.removeAttribute("id")}}}return Mo(Nr.replace(q,"$1"),gi,ea,dr)}function Ms(){var Nr=[];function gi(ea,dr){return Nr.push(ea+" ")>ye.cacheLength&&delete gi[Nr.shift()],gi[ea+" "]=dr}return gi}function er(Nr){return Nr[Bi]=!0,Nr}function Ar(Nr){var gi=wn.createElement("fieldset");try{return!!Nr(gi)}catch{return!1}finally{gi.parentNode&&gi.parentNode.removeChild(gi),gi=null}}function Kr(Nr){return function(gi){return j(gi,"input")&&gi.type===Nr}}function ur(Nr){return function(gi){return(j(gi,"input")||j(gi,"button"))&&gi.type===Nr}}function Gr(Nr){return function(gi){return"form"in gi?gi.parentNode&&gi.disabled===!1?"label"in gi?"label"in gi.parentNode?gi.parentNode.disabled===Nr:gi.disabled===Nr:gi.isDisabled===Nr||gi.isDisabled!==!Nr&&Ha(gi)===Nr:gi.disabled===Nr:"label"in gi?gi.disabled===Nr:!1}}function Pi(Nr){return er(function(gi){return gi=+gi,er(function(ea,dr){for(var ci,yi=Nr([],ea.length,gi),xa=yi.length;xa--;)ea[ci=yi[xa]]&&(ea[ci]=!(dr[ci]=ea[ci]))})})}function aa(Nr){return Nr&&typeof Nr.getElementsByTagName<"u"&&Nr}function Fa(Nr){var gi,ea=Nr?Nr.ownerDocument||Nr:k;return ea==wn||ea.nodeType!==9||!ea.documentElement||(wn=ea,fr=wn.documentElement,Or=!_.isXMLDoc(wn),Fi=fr.matches||fr.webkitMatchesSelector||fr.msMatchesSelector,k!=wn&&(gi=wn.defaultView)&&gi.top!==gi&&gi.addEventListener("unload",$a),w.getById=Ar(function(dr){return fr.appendChild(dr).id=_.expando,!wn.getElementsByName||!wn.getElementsByName(_.expando).length}),w.disconnectedMatch=Ar(function(dr){return Fi.call(dr,"*")}),w.scope=Ar(function(){return wn.querySelectorAll(":scope")}),w.cssHas=Ar(function(){try{return wn.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),w.getById?(ye.filter.ID=function(dr){var ci=dr.replace(na,ji);return function(yi){return yi.getAttribute("id")===ci}},ye.find.ID=function(dr,ci){if(typeof ci.getElementById<"u"&&Or){var yi=ci.getElementById(dr);return yi?[yi]:[]}}):(ye.filter.ID=function(dr){var ci=dr.replace(na,ji);return function(yi){var xa=typeof yi.getAttributeNode<"u"&&yi.getAttributeNode("id");return xa&&xa.value===ci}},ye.find.ID=function(dr,ci){if(typeof ci.getElementById<"u"&&Or){var yi,xa,Cr,ka=ci.getElementById(dr);if(ka){if(yi=ka.getAttributeNode("id"),yi&&yi.value===dr)return[ka];for(Cr=ci.getElementsByName(dr),xa=0;ka=Cr[xa++];)if(yi=ka.getAttributeNode("id"),yi&&yi.value===dr)return[ka]}return[]}}),ye.find.TAG=function(dr,ci){return typeof ci.getElementsByTagName<"u"?ci.getElementsByTagName(dr):ci.querySelectorAll(dr)},ye.find.CLASS=function(dr,ci){if(typeof ci.getElementsByClassName<"u"&&Or)return ci.getElementsByClassName(dr)},Si=[],Ar(function(dr){var ci;fr.appendChild(dr).innerHTML="<a id='"+Bi+"' href='' disabled='disabled'></a><select id='"+Bi+"-\r\\' disabled='disabled'><option selected=''></option></select>",dr.querySelectorAll("[selected]").length||Si.push("\\["+J+"*(?:value|"+Ee+")"),dr.querySelectorAll("[id~="+Bi+"-]").length||Si.push("~="),dr.querySelectorAll("a#"+Bi+"+*").length||Si.push(".#.+[+~]"),dr.querySelectorAll(":checked").length||Si.push(":checked"),ci=wn.createElement("input"),ci.setAttribute("type","hidden"),dr.appendChild(ci).setAttribute("name","D"),fr.appendChild(dr).disabled=!0,dr.querySelectorAll(":disabled").length!==2&&Si.push(":enabled",":disabled"),ci=wn.createElement("input"),ci.setAttribute("name",""),dr.appendChild(ci),dr.querySelectorAll("[name='']").length||Si.push("\\["+J+"*name"+J+"*="+J+`*(?:''|"")`)}),w.cssHas||Si.push(":has"),Si=Si.length&&new RegExp(Si.join("|")),us=function(dr,ci){if(dr===ci)return Wt=!0,0;var yi=!dr.compareDocumentPosition-!ci.compareDocumentPosition;return yi||(yi=(dr.ownerDocument||dr)==(ci.ownerDocument||ci)?dr.compareDocumentPosition(ci):1,yi&1||!w.sortDetached&&ci.compareDocumentPosition(dr)===yi?dr===wn||dr.ownerDocument==k&&Uo.contains(k,dr)?-1:ci===wn||ci.ownerDocument==k&&Uo.contains(k,ci)?1:yt?f.call(yt,dr)-f.call(yt,ci):0:yi&4?-1:1)}),wn}Uo.matches=function(Nr,gi){return Uo(Nr,null,null,gi)},Uo.matchesSelector=function(Nr,gi){if(Fa(Nr),Or&&!Lo[gi+" "]&&(!Si||!Si.test(gi)))try{var ea=Fi.call(Nr,gi);if(ea||w.disconnectedMatch||Nr.document&&Nr.document.nodeType!==11)return ea}catch{Lo(gi,!0)}return Uo(gi,wn,null,[Nr]).length>0},Uo.contains=function(Nr,gi){return(Nr.ownerDocument||Nr)!=wn&&Fa(Nr),_.contains(Nr,gi)},Uo.attr=function(Nr,gi){(Nr.ownerDocument||Nr)!=wn&&Fa(Nr);var ea=ye.attrHandle[gi.toLowerCase()],dr=ea&&b.call(ye.attrHandle,gi.toLowerCase())?ea(Nr,gi,!Or):void 0;return dr!==void 0?dr:Nr.getAttribute(gi)},Uo.error=function(Nr){throw new Error("Syntax error, unrecognized expression: "+Nr)},_.uniqueSort=function(Nr){var gi,ea=[],dr=0,ci=0;if(Wt=!w.sortStable,yt=!w.sortStable&&h.call(Nr,0),X.call(Nr,us),Wt){for(;gi=Nr[ci++];)gi===Nr[ci]&&(dr=ea.push(ci));for(;dr--;)Z.call(Nr,ea[dr],1)}return yt=null,Nr},_.fn.uniqueSort=function(){return this.pushStack(_.uniqueSort(h.apply(this)))},ye=_.expr={cacheLength:50,createPseudo:er,match:Hn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Nr){return Nr[1]=Nr[1].replace(na,ji),Nr[3]=(Nr[3]||Nr[4]||Nr[5]||"").replace(na,ji),Nr[2]==="~="&&(Nr[3]=" "+Nr[3]+" "),Nr.slice(0,4)},CHILD:function(Nr){return Nr[1]=Nr[1].toLowerCase(),Nr[1].slice(0,3)==="nth"?(Nr[3]||Uo.error(Nr[0]),Nr[4]=+(Nr[4]?Nr[5]+(Nr[6]||1):2*(Nr[3]==="even"||Nr[3]==="odd")),Nr[5]=+(Nr[7]+Nr[8]||Nr[3]==="odd")):Nr[3]&&Uo.error(Nr[0]),Nr},PSEUDO:function(Nr){var gi,ea=!Nr[6]&&Nr[2];return Hn.CHILD.test(Nr[0])?null:(Nr[3]?Nr[2]=Nr[4]||Nr[5]||"":ea&&Vt.test(ea)&&(gi=cn(ea,!0))&&(gi=ea.indexOf(")",ea.length-gi)-ea.length)&&(Nr[0]=Nr[0].slice(0,gi),Nr[2]=ea.slice(0,gi)),Nr.slice(0,3))}},filter:{TAG:function(Nr){var gi=Nr.replace(na,ji).toLowerCase();return Nr==="*"?function(){return!0}:function(ea){return j(ea,gi)}},CLASS:function(Nr){var gi=Xa[Nr+" "];return gi||(gi=new RegExp("(^|"+J+")"+Nr+"("+J+"|$)"))&&Xa(Nr,function(ea){return gi.test(typeof ea.className=="string"&&ea.className||typeof ea.getAttribute<"u"&&ea.getAttribute("class")||"")})},ATTR:function(Nr,gi,ea){return function(dr){var ci=Uo.attr(dr,Nr);return ci==null?gi==="!=":gi?(ci+="",gi==="="?ci===ea:gi==="!="?ci!==ea:gi==="^="?ea&&ci.indexOf(ea)===0:gi==="*="?ea&&ci.indexOf(ea)>-1:gi==="$="?ea&&ci.slice(-ea.length)===ea:gi==="~="?(" "+ci.replace(le," ")+" ").indexOf(ea)>-1:gi==="|="?ci===ea||ci.slice(0,ea.length+1)===ea+"-":!1):!0}},CHILD:function(Nr,gi,ea,dr,ci){var yi=Nr.slice(0,3)!=="nth",xa=Nr.slice(-4)!=="last",Cr=gi==="of-type";return dr===1&&ci===0?function(ka){return!!ka.parentNode}:function(ka,Io,Co){var _s,Is,xs,Zs,Ns,Us=yi!==xa?"nextSibling":"previousSibling",fu=ka.parentNode,bu=Cr&&ka.nodeName.toLowerCase(),Ys=!Co&&!Cr,Hu=!1;if(fu){if(yi){for(;Us;){for(xs=ka;xs=xs[Us];)if(Cr?j(xs,bu):xs.nodeType===1)return!1;Ns=Us=Nr==="only"&&!Ns&&"nextSibling"}return!0}if(Ns=[xa?fu.firstChild:fu.lastChild],xa&&Ys){for(Is=fu[Bi]||(fu[Bi]={}),_s=Is[Nr]||[],Zs=_s[0]===Ui&&_s[1],Hu=Zs&&_s[2],xs=Zs&&fu.childNodes[Zs];xs=++Zs&&xs&&xs[Us]||(Hu=Zs=0)||Ns.pop();)if(xs.nodeType===1&&++Hu&&xs===ka){Is[Nr]=[Ui,Zs,Hu];break}}else if(Ys&&(Is=ka[Bi]||(ka[Bi]={}),_s=Is[Nr]||[],Zs=_s[0]===Ui&&_s[1],Hu=Zs),Hu===!1)for(;(xs=++Zs&&xs&&xs[Us]||(Hu=Zs=0)||Ns.pop())&&!((Cr?j(xs,bu):xs.nodeType===1)&&++Hu&&(Ys&&(Is=xs[Bi]||(xs[Bi]={}),Is[Nr]=[Ui,Hu]),xs===ka)););return Hu-=ci,Hu===dr||Hu%dr===0&&Hu/dr>=0}}},PSEUDO:function(Nr,gi){var ea,dr=ye.pseudos[Nr]||ye.setFilters[Nr.toLowerCase()]||Uo.error("unsupported pseudo: "+Nr);return dr[Bi]?dr(gi):dr.length>1?(ea=[Nr,Nr,"",gi],ye.setFilters.hasOwnProperty(Nr.toLowerCase())?er(function(ci,yi){for(var xa,Cr=dr(ci,gi),ka=Cr.length;ka--;)xa=f.call(ci,Cr[ka]),ci[xa]=!(yi[xa]=Cr[ka])}):function(ci){return dr(ci,0,ea)}):dr}},pseudos:{not:er(function(Nr){var gi=[],ea=[],dr=Ma(Nr.replace(q,"$1"));return dr[Bi]?er(function(ci,yi,xa,Cr){for(var ka,Io=dr(ci,null,Cr,[]),Co=ci.length;Co--;)(ka=Io[Co])&&(ci[Co]=!(yi[Co]=ka))}):function(ci,yi,xa){return gi[0]=ci,dr(gi,null,xa,ea),gi[0]=null,!ea.pop()}}),has:er(function(Nr){return function(gi){return Uo(Nr,gi).length>0}}),contains:er(function(Nr){return Nr=Nr.replace(na,ji),function(gi){return(gi.textContent||_.text(gi)).indexOf(Nr)>-1}}),lang:er(function(Nr){return bn.test(Nr||"")||Uo.error("unsupported lang: "+Nr),Nr=Nr.replace(na,ji).toLowerCase(),function(gi){var ea;do if(ea=Or?gi.lang:gi.getAttribute("xml:lang")||gi.getAttribute("lang"))return ea=ea.toLowerCase(),ea===Nr||ea.indexOf(Nr+"-")===0;while((gi=gi.parentNode)&&gi.nodeType===1);return!1}}),target:function(Nr){var gi=s.location&&s.location.hash;return gi&&gi.slice(1)===Nr.id},root:function(Nr){return Nr===fr},focus:function(Nr){return Nr===Eo()&&wn.hasFocus()&&!!(Nr.type||Nr.href||~Nr.tabIndex)},enabled:Gr(!1),disabled:Gr(!0),checked:function(Nr){return j(Nr,"input")&&!!Nr.checked||j(Nr,"option")&&!!Nr.selected},selected:function(Nr){return Nr.parentNode&&Nr.parentNode.selectedIndex,Nr.selected===!0},empty:function(Nr){for(Nr=Nr.firstChild;Nr;Nr=Nr.nextSibling)if(Nr.nodeType<6)return!1;return!0},parent:function(Nr){return!ye.pseudos.empty(Nr)},header:function(Nr){return ei.test(Nr.nodeName)},input:function(Nr){return br.test(Nr.nodeName)},button:function(Nr){return j(Nr,"input")&&Nr.type==="button"||j(Nr,"button")},text:function(Nr){var gi;return j(Nr,"input")&&Nr.type==="text"&&((gi=Nr.getAttribute("type"))==null||gi.toLowerCase()==="text")},first:Pi(function(){return[0]}),last:Pi(function(Nr,gi){return[gi-1]}),eq:Pi(function(Nr,gi,ea){return[ea<0?ea+gi:ea]}),even:Pi(function(Nr,gi){for(var ea=0;ea<gi;ea+=2)Nr.push(ea);return Nr}),odd:Pi(function(Nr,gi){for(var ea=1;ea<gi;ea+=2)Nr.push(ea);return Nr}),lt:Pi(function(Nr,gi,ea){var dr;for(ea<0?dr=ea+gi:ea>gi?dr=gi:dr=ea;--dr>=0;)Nr.push(dr);return Nr}),gt:Pi(function(Nr,gi,ea){for(var dr=ea<0?ea+gi:ea;++dr<gi;)Nr.push(dr);return Nr})}},ye.pseudos.nth=ye.pseudos.eq;for(se in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})ye.pseudos[se]=Kr(se);for(se in{submit:!0,reset:!0})ye.pseudos[se]=ur(se);function tn(){}tn.prototype=ye.filters=ye.pseudos,ye.setFilters=new tn;function cn(Nr,gi){var ea,dr,ci,yi,xa,Cr,ka,Io=Ko[Nr+" "];if(Io)return gi?0:Io.slice(0);for(xa=Nr,Cr=[],ka=ye.preFilter;xa;){(!ea||(dr=Le.exec(xa)))&&(dr&&(xa=xa.slice(dr[0].length)||xa),Cr.push(ci=[])),ea=!1,(dr=Je.exec(xa))&&(ea=dr.shift(),ci.push({value:ea,type:dr[0].replace(q," ")}),xa=xa.slice(ea.length));for(yi in ye.filter)(dr=Hn[yi].exec(xa))&&(!ka[yi]||(dr=ka[yi](dr)))&&(ea=dr.shift(),ci.push({value:ea,type:yi,matches:dr}),xa=xa.slice(ea.length));if(!ea)break}return gi?xa.length:xa?Uo.error(Nr):Ko(Nr,Cr).slice(0)}function nr(Nr){for(var gi=0,ea=Nr.length,dr="";gi<ea;gi++)dr+=Nr[gi].value;return dr}function ir(Nr,gi,ea){var dr=gi.dir,ci=gi.next,yi=ci||dr,xa=ea&&yi==="parentNode",Cr=vi++;return gi.first?function(ka,Io,Co){for(;ka=ka[dr];)if(ka.nodeType===1||xa)return Nr(ka,Io,Co);return!1}:function(ka,Io,Co){var _s,Is,xs=[Ui,Cr];if(Co){for(;ka=ka[dr];)if((ka.nodeType===1||xa)&&Nr(ka,Io,Co))return!0}else for(;ka=ka[dr];)if(ka.nodeType===1||xa)if(Is=ka[Bi]||(ka[Bi]={}),ci&&j(ka,ci))ka=ka[dr]||ka;else{if((_s=Is[yi])&&_s[0]===Ui&&_s[1]===Cr)return xs[2]=_s[2];if(Is[yi]=xs,xs[2]=Nr(ka,Io,Co))return!0}return!1}}function Lr(Nr){return Nr.length>1?function(gi,ea,dr){for(var ci=Nr.length;ci--;)if(!Nr[ci](gi,ea,dr))return!1;return!0}:Nr[0]}function ua(Nr,gi,ea){for(var dr=0,ci=gi.length;dr<ci;dr++)Uo(Nr,gi[dr],ea);return ea}function _a(Nr,gi,ea,dr,ci){for(var yi,xa=[],Cr=0,ka=Nr.length,Io=gi!=null;Cr<ka;Cr++)(yi=Nr[Cr])&&(!ea||ea(yi,dr,ci))&&(xa.push(yi),Io&&gi.push(Cr));return xa}function Ka(Nr,gi,ea,dr,ci,yi){return dr&&!dr[Bi]&&(dr=Ka(dr)),ci&&!ci[Bi]&&(ci=Ka(ci,yi)),er(function(xa,Cr,ka,Io){var Co,_s,Is,xs,Zs=[],Ns=[],Us=Cr.length,fu=xa||ua(gi||"*",ka.nodeType?[ka]:ka,[]),bu=Nr&&(xa||!gi)?_a(fu,Zs,Nr,ka,Io):fu;if(ea?(xs=ci||(xa?Nr:Us||dr)?[]:Cr,ea(bu,xs,ka,Io)):xs=bu,dr)for(Co=_a(xs,Ns),dr(Co,[],ka,Io),_s=Co.length;_s--;)(Is=Co[_s])&&(xs[Ns[_s]]=!(bu[Ns[_s]]=Is));if(xa){if(ci||Nr){if(ci){for(Co=[],_s=xs.length;_s--;)(Is=xs[_s])&&Co.push(bu[_s]=Is);ci(null,xs=[],Co,Io)}for(_s=xs.length;_s--;)(Is=xs[_s])&&(Co=ci?f.call(xa,Is):Zs[_s])>-1&&(xa[Co]=!(Cr[Co]=Is))}}else xs=_a(xs===Cr?xs.splice(Us,xs.length):xs),ci?ci(null,Cr,xs,Io):Qt.apply(Cr,xs)})}function yo(Nr){for(var gi,ea,dr,ci=Nr.length,yi=ye.relative[Nr[0].type],xa=yi||ye.relative[" "],Cr=yi?1:0,ka=ir(function(_s){return _s===gi},xa,!0),Io=ir(function(_s){return f.call(gi,_s)>-1},xa,!0),Co=[function(_s,Is,xs){var Zs=!yi&&(xs||Is!=Xe)||((gi=Is).nodeType?ka(_s,Is,xs):Io(_s,Is,xs));return gi=null,Zs}];Cr<ci;Cr++)if(ea=ye.relative[Nr[Cr].type])Co=[ir(Lr(Co),ea)];else{if(ea=ye.filter[Nr[Cr].type].apply(null,Nr[Cr].matches),ea[Bi]){for(dr=++Cr;dr<ci&&!ye.relative[Nr[dr].type];dr++);return Ka(Cr>1&&Lr(Co),Cr>1&&nr(Nr.slice(0,Cr-1).concat({value:Nr[Cr-2].type===" "?"*":""})).replace(q,"$1"),ea,Cr<dr&&yo(Nr.slice(Cr,dr)),dr<ci&&yo(Nr=Nr.slice(dr)),dr<ci&&nr(Nr))}Co.push(ea)}return Lr(Co)}function Ba(Nr,gi){var ea=gi.length>0,dr=Nr.length>0,ci=function(yi,xa,Cr,ka,Io){var Co,_s,Is,xs=0,Zs="0",Ns=yi&&[],Us=[],fu=Xe,bu=yi||dr&&ye.find.TAG("*",Io),Ys=Ui+=fu==null?1:Math.random()||.1,Hu=bu.length;for(Io&&(Xe=xa==wn||xa||Io);Zs!==Hu&&(Co=bu[Zs])!=null;Zs++){if(dr&&Co){for(_s=0,!xa&&Co.ownerDocument!=wn&&(Fa(Co),Cr=!Or);Is=Nr[_s++];)if(Is(Co,xa||wn,Cr)){Qt.call(ka,Co);break}Io&&(Ui=Ys)}ea&&((Co=!Is&&Co)&&xs--,yi&&Ns.push(Co))}if(xs+=Zs,ea&&Zs!==xs){for(_s=0;Is=gi[_s++];)Is(Ns,Us,xa,Cr);if(yi){if(xs>0)for(;Zs--;)Ns[Zs]||Us[Zs]||(Us[Zs]=re.call(ka));Us=_a(Us)}Qt.apply(ka,Us),Io&&!yi&&Us.length>0&&xs+gi.length>1&&_.uniqueSort(ka)}return Io&&(Ui=Ys,Xe=fu),Ns};return ea?er(ci):ci}function Ma(Nr,gi){var ea,dr=[],ci=[],yi=So[Nr+" "];if(!yi){for(gi||(gi=cn(Nr)),ea=gi.length;ea--;)yi=yo(gi[ea]),yi[Bi]?dr.push(yi):ci.push(yi);yi=So(Nr,Ba(ci,dr)),yi.selector=Nr}return yi}function Mo(Nr,gi,ea,dr){var ci,yi,xa,Cr,ka,Io=typeof Nr=="function"&&Nr,Co=!dr&&cn(Nr=Io.selector||Nr);if(ea=ea||[],Co.length===1){if(yi=Co[0]=Co[0].slice(0),yi.length>2&&(xa=yi[0]).type==="ID"&&gi.nodeType===9&&Or&&ye.relative[yi[1].type]){if(gi=(ye.find.ID(xa.matches[0].replace(na,ji),gi)||[])[0],gi)Io&&(gi=gi.parentNode);else return ea;Nr=Nr.slice(yi.shift().value.length)}for(ci=Hn.needsContext.test(Nr)?0:yi.length;ci--&&(xa=yi[ci],!ye.relative[Cr=xa.type]);)if((ka=ye.find[Cr])&&(dr=ka(xa.matches[0].replace(na,ji),Li.test(yi[0].type)&&aa(gi.parentNode)||gi))){if(yi.splice(ci,1),Nr=dr.length&&nr(yi),!Nr)return Qt.apply(ea,dr),ea;break}}return(Io||Ma(Nr,Co))(dr,gi,!Or,ea,!gi||Li.test(Nr)&&aa(gi.parentNode)||gi),ea}w.sortStable=Bi.split("").sort(us).join("")===Bi,Fa(),w.sortDetached=Ar(function(Nr){return Nr.compareDocumentPosition(wn.createElement("fieldset"))&1}),_.find=Uo,_.expr[":"]=_.expr.pseudos,_.unique=_.uniqueSort,Uo.compile=Ma,Uo.select=Mo,Uo.setDocument=Fa,Uo.escape=_.escapeSelector,Uo.getText=_.text,Uo.isXML=_.isXMLDoc,Uo.selectors=_.expr,Uo.support=_.support,Uo.uniqueSort=_.uniqueSort})();var V=function(se,ye,Xe){for(var yt=[],Wt=Xe!==void 0;(se=se[ye])&&se.nodeType!==9;)if(se.nodeType===1){if(Wt&&_(se).is(Xe))break;yt.push(se)}return yt},pe=function(se,ye){for(var Xe=[];se;se=se.nextSibling)se.nodeType===1&&se!==ye&&Xe.push(se);return Xe},ce=_.expr.match.needsContext,G=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function te(se,ye,Xe){return x(ye)?_.grep(se,function(yt,Wt){return!!ye.call(yt,Wt,yt)!==Xe}):ye.nodeType?_.grep(se,function(yt){return yt===ye!==Xe}):typeof ye!="string"?_.grep(se,function(yt){return f.call(ye,yt)>-1!==Xe}):_.filter(ye,se,Xe)}_.filter=function(se,ye,Xe){var yt=ye[0];return Xe&&(se=":not("+se+")"),ye.length===1&&yt.nodeType===1?_.find.matchesSelector(yt,se)?[yt]:[]:_.find.matches(se,_.grep(ye,function(Wt){return Wt.nodeType===1}))},_.fn.extend({find:function(se){var ye,Xe,yt=this.length,Wt=this;if(typeof se!="string")return this.pushStack(_(se).filter(function(){for(ye=0;ye<yt;ye++)if(_.contains(Wt[ye],this))return!0}));for(Xe=this.pushStack([]),ye=0;ye<yt;ye++)_.find(se,Wt[ye],Xe);return yt>1?_.uniqueSort(Xe):Xe},filter:function(se){return this.pushStack(te(this,se||[],!1))},not:function(se){return this.pushStack(te(this,se||[],!0))},is:function(se){return!!te(this,typeof se=="string"&&ce.test(se)?_(se):se||[],!1).length}});var ie,fe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Se=_.fn.init=function(se,ye,Xe){var yt,Wt;if(!se)return this;if(Xe=Xe||ie,typeof se=="string")if(se[0]==="<"&&se[se.length-1]===">"&&se.length>=3?yt=[null,se,null]:yt=fe.exec(se),yt&&(yt[1]||!ye))if(yt[1]){if(ye=ye instanceof _?ye[0]:ye,_.merge(this,_.parseHTML(yt[1],ye&&ye.nodeType?ye.ownerDocument||ye:R,!0)),G.test(yt[1])&&_.isPlainObject(ye))for(yt in ye)x(this[yt])?this[yt](ye[yt]):this.attr(yt,ye[yt]);return this}else return Wt=R.getElementById(yt[2]),Wt&&(this[0]=Wt,this.length=1),this;else return!ye||ye.jquery?(ye||Xe).find(se):this.constructor(ye).find(se);else{if(se.nodeType)return this[0]=se,this.length=1,this;if(x(se))return Xe.ready!==void 0?Xe.ready(se):se(_)}return _.makeArray(se,this)};Se.prototype=_.fn,ie=_(R);var he=/^(?:parents|prev(?:Until|All))/,me={children:!0,contents:!0,next:!0,prev:!0};_.fn.extend({has:function(se){var ye=_(se,this),Xe=ye.length;return this.filter(function(){for(var yt=0;yt<Xe;yt++)if(_.contains(this,ye[yt]))return!0})},closest:function(se,ye){var Xe,yt=0,Wt=this.length,Qt=[],wn=typeof se!="string"&&_(se);if(!ce.test(se)){for(;yt<Wt;yt++)for(Xe=this[yt];Xe&&Xe!==ye;Xe=Xe.parentNode)if(Xe.nodeType<11&&(wn?wn.index(Xe)>-1:Xe.nodeType===1&&_.find.matchesSelector(Xe,se))){Qt.push(Xe);break}}return this.pushStack(Qt.length>1?_.uniqueSort(Qt):Qt)},index:function(se){return se?typeof se=="string"?f.call(_(se),this[0]):f.call(this,se.jquery?se[0]:se):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(se,ye){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(se,ye))))},addBack:function(se){return this.add(se==null?this.prevObject:this.prevObject.filter(se))}});function _e(se,ye){for(;(se=se[ye])&&se.nodeType!==1;);return se}_.each({parent:function(se){var ye=se.parentNode;return ye&&ye.nodeType!==11?ye:null},parents:function(se){return V(se,"parentNode")},parentsUntil:function(se,ye,Xe){return V(se,"parentNode",Xe)},next:function(se){return _e(se,"nextSibling")},prev:function(se){return _e(se,"previousSibling")},nextAll:function(se){return V(se,"nextSibling")},prevAll:function(se){return V(se,"previousSibling")},nextUntil:function(se,ye,Xe){return V(se,"nextSibling",Xe)},prevUntil:function(se,ye,Xe){return V(se,"previousSibling",Xe)},siblings:function(se){return pe((se.parentNode||{}).firstChild,se)},children:function(se){return pe(se.firstChild)},contents:function(se){return se.contentDocument!=null&&l(se.contentDocument)?se.contentDocument:(j(se,"template")&&(se=se.content||se),_.merge([],se.childNodes))}},function(se,ye){_.fn[se]=function(Xe,yt){var Wt=_.map(this,ye,Xe);return se.slice(-5)!=="Until"&&(yt=Xe),yt&&typeof yt=="string"&&(Wt=_.filter(yt,Wt)),this.length>1&&(me[se]||_.uniqueSort(Wt),he.test(se)&&Wt.reverse()),this.pushStack(Wt)}});var we=/[^\x20\t\r\n\f]+/g;function Ge(se){var ye={};return _.each(se.match(we)||[],function(Xe,yt){ye[yt]=!0}),ye}_.Callbacks=function(se){se=typeof se=="string"?Ge(se):_.extend({},se);var ye,Xe,yt,Wt,Qt=[],wn=[],fr=-1,Or=function(){for(Wt=Wt||se.once,yt=ye=!0;wn.length;fr=-1)for(Xe=wn.shift();++fr<Qt.length;)Qt[fr].apply(Xe[0],Xe[1])===!1&&se.stopOnFalse&&(fr=Qt.length,Xe=!1);se.memory||(Xe=!1),ye=!1,Wt&&(Xe?Qt=[]:Qt="")},Si={add:function(){return Qt&&(Xe&&!ye&&(fr=Qt.length-1,wn.push(Xe)),function Fi(Bi){_.each(Bi,function(Ui,vi){x(vi)?(!se.unique||!Si.has(vi))&&Qt.push(vi):vi&&vi.length&&I(vi)!=="string"&&Fi(vi)})}(arguments),Xe&&!ye&&Or()),this},remove:function(){return _.each(arguments,function(Fi,Bi){for(var Ui;(Ui=_.inArray(Bi,Qt,Ui))>-1;)Qt.splice(Ui,1),Ui<=fr&&fr--}),this},has:function(Fi){return Fi?_.inArray(Fi,Qt)>-1:Qt.length>0},empty:function(){return Qt&&(Qt=[]),this},disable:function(){return Wt=wn=[],Qt=Xe="",this},disabled:function(){return!Qt},lock:function(){return Wt=wn=[],!Xe&&!ye&&(Qt=Xe=""),this},locked:function(){return!!Wt},fireWith:function(Fi,Bi){return Wt||(Bi=Bi||[],Bi=[Fi,Bi.slice?Bi.slice():Bi],wn.push(Bi),ye||Or()),this},fire:function(){return Si.fireWith(this,arguments),this},fired:function(){return!!yt}};return Si};function ht(se){return se}function nt(se){throw se}function Re(se,ye,Xe,yt){var Wt;try{se&&x(Wt=se.promise)?Wt.call(se).done(ye).fail(Xe):se&&x(Wt=se.then)?Wt.call(se,ye,Xe):ye.apply(void 0,[se].slice(yt))}catch(Qt){Xe.apply(void 0,[Qt])}}_.extend({Deferred:function(se){var ye=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],Xe="pending",yt={state:function(){return Xe},always:function(){return Wt.done(arguments).fail(arguments),this},catch:function(Qt){return yt.then(null,Qt)},pipe:function(){var Qt=arguments;return _.Deferred(function(wn){_.each(ye,function(fr,Or){var Si=x(Qt[Or[4]])&&Qt[Or[4]];Wt[Or[1]](function(){var Fi=Si&&Si.apply(this,arguments);Fi&&x(Fi.promise)?Fi.promise().progress(wn.notify).done(wn.resolve).fail(wn.reject):wn[Or[0]+"With"](this,Si?[Fi]:arguments)})}),Qt=null}).promise()},then:function(Qt,wn,fr){var Or=0;function Si(Fi,Bi,Ui,vi){return function(){var Xa=this,Ko=arguments,So=function(){var us,Ee;if(!(Fi<Or)){if(us=Ui.apply(Xa,Ko),us===Bi.promise())throw new TypeError("Thenable self-resolution");Ee=us&&(typeof us=="object"||typeof us=="function")&&us.then,x(Ee)?vi?Ee.call(us,Si(Or,Bi,ht,vi),Si(Or,Bi,nt,vi)):(Or++,Ee.call(us,Si(Or,Bi,ht,vi),Si(Or,Bi,nt,vi),Si(Or,Bi,ht,Bi.notifyWith))):(Ui!==ht&&(Xa=void 0,Ko=[us]),(vi||Bi.resolveWith)(Xa,Ko))}},Lo=vi?So:function(){try{So()}catch(us){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(us,Lo.error),Fi+1>=Or&&(Ui!==nt&&(Xa=void 0,Ko=[us]),Bi.rejectWith(Xa,Ko))}};Fi?Lo():(_.Deferred.getErrorHook?Lo.error=_.Deferred.getErrorHook():_.Deferred.getStackHook&&(Lo.error=_.Deferred.getStackHook()),s.setTimeout(Lo))}}return _.Deferred(function(Fi){ye[0][3].add(Si(0,Fi,x(fr)?fr:ht,Fi.notifyWith)),ye[1][3].add(Si(0,Fi,x(Qt)?Qt:ht)),ye[2][3].add(Si(0,Fi,x(wn)?wn:nt))}).promise()},promise:function(Qt){return Qt!=null?_.extend(Qt,yt):yt}},Wt={};return _.each(ye,function(Qt,wn){var fr=wn[2],Or=wn[5];yt[wn[1]]=fr.add,Or&&fr.add(function(){Xe=Or},ye[3-Qt][2].disable,ye[3-Qt][3].disable,ye[0][2].lock,ye[0][3].lock),fr.add(wn[3].fire),Wt[wn[0]]=function(){return Wt[wn[0]+"With"](this===Wt?void 0:this,arguments),this},Wt[wn[0]+"With"]=fr.fireWith}),yt.promise(Wt),se&&se.call(Wt,Wt),Wt},when:function(se){var ye=arguments.length,Xe=ye,yt=Array(Xe),Wt=h.call(arguments),Qt=_.Deferred(),wn=function(fr){return function(Or){yt[fr]=this,Wt[fr]=arguments.length>1?h.call(arguments):Or,--ye||Qt.resolveWith(yt,Wt)}};if(ye<=1&&(Re(se,Qt.done(wn(Xe)).resolve,Qt.reject,!ye),Qt.state()==="pending"||x(Wt[Xe]&&Wt[Xe].then)))return Qt.then();for(;Xe--;)Re(Wt[Xe],wn(Xe),Qt.reject);return Qt.promise()}});var ue=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(se,ye){s.console&&s.console.warn&&se&&ue.test(se.name)&&s.console.warn("jQuery.Deferred exception: "+se.message,se.stack,ye)},_.readyException=function(se){s.setTimeout(function(){throw se})};var ae=_.Deferred();_.fn.ready=function(se){return ae.then(se).catch(function(ye){_.readyException(ye)}),this},_.extend({isReady:!1,readyWait:1,ready:function(se){(se===!0?--_.readyWait:_.isReady)||(_.isReady=!0,!(se!==!0&&--_.readyWait>0)&&ae.resolveWith(R,[_]))}}),_.ready.then=ae.then;function ve(){R.removeEventListener("DOMContentLoaded",ve),s.removeEventListener("load",ve),_.ready()}R.readyState==="complete"||R.readyState!=="loading"&&!R.documentElement.doScroll?s.setTimeout(_.ready):(R.addEventListener("DOMContentLoaded",ve),s.addEventListener("load",ve));var Me=function(se,ye,Xe,yt,Wt,Qt,wn){var fr=0,Or=se.length,Si=Xe==null;if(I(Xe)==="object"){Wt=!0;for(fr in Xe)Me(se,ye,fr,Xe[fr],!0,Qt,wn)}else if(yt!==void 0&&(Wt=!0,x(yt)||(wn=!0),Si&&(wn?(ye.call(se,yt),ye=null):(Si=ye,ye=function(Fi,Bi,Ui){return Si.call(_(Fi),Ui)})),ye))for(;fr<Or;fr++)ye(se[fr],Xe,wn?yt:yt.call(se[fr],fr,ye(se[fr],Xe)));return Wt?se:Si?ye.call(se):Or?ye(se[0],Xe):Qt},Ye=/^-ms-/,qe=/-([a-z])/g;function At(se,ye){return ye.toUpperCase()}function It(se){return se.replace(Ye,"ms-").replace(qe,At)}var Ce=function(se){return se.nodeType===1||se.nodeType===9||!+se.nodeType};function Ae(){this.expando=_.expando+Ae.uid++}Ae.uid=1,Ae.prototype={cache:function(se){var ye=se[this.expando];return ye||(ye={},Ce(se)&&(se.nodeType?se[this.expando]=ye:Object.defineProperty(se,this.expando,{value:ye,configurable:!0}))),ye},set:function(se,ye,Xe){var yt,Wt=this.cache(se);if(typeof ye=="string")Wt[It(ye)]=Xe;else for(yt in ye)Wt[It(yt)]=ye[yt];return Wt},get:function(se,ye){return ye===void 0?this.cache(se):se[this.expando]&&se[this.expando][It(ye)]},access:function(se,ye,Xe){return ye===void 0||ye&&typeof ye=="string"&&Xe===void 0?this.get(se,ye):(this.set(se,ye,Xe),Xe!==void 0?Xe:ye)},remove:function(se,ye){var Xe,yt=se[this.expando];if(yt!==void 0){if(ye!==void 0)for(Array.isArray(ye)?ye=ye.map(It):(ye=It(ye),ye=ye in yt?[ye]:ye.match(we)||[]),Xe=ye.length;Xe--;)delete yt[ye[Xe]];(ye===void 0||_.isEmptyObject(yt))&&(se.nodeType?se[this.expando]=void 0:delete se[this.expando])}},hasData:function(se){var ye=se[this.expando];return ye!==void 0&&!_.isEmptyObject(ye)}};var $e=new Ae,tt=new Ae,ke=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Oe=/[A-Z]/g;function je(se){return se==="true"?!0:se==="false"?!1:se==="null"?null:se===+se+""?+se:ke.test(se)?JSON.parse(se):se}function Et(se,ye,Xe){var yt;if(Xe===void 0&&se.nodeType===1)if(yt="data-"+ye.replace(Oe,"-$&").toLowerCase(),Xe=se.getAttribute(yt),typeof Xe=="string"){try{Xe=je(Xe)}catch{}tt.set(se,ye,Xe)}else Xe=void 0;return Xe}_.extend({hasData:function(se){return tt.hasData(se)||$e.hasData(se)},data:function(se,ye,Xe){return tt.access(se,ye,Xe)},removeData:function(se,ye){tt.remove(se,ye)},_data:function(se,ye,Xe){return $e.access(se,ye,Xe)},_removeData:function(se,ye){$e.remove(se,ye)}}),_.fn.extend({data:function(se,ye){var Xe,yt,Wt,Qt=this[0],wn=Qt&&Qt.attributes;if(se===void 0){if(this.length&&(Wt=tt.get(Qt),Qt.nodeType===1&&!$e.get(Qt,"hasDataAttrs"))){for(Xe=wn.length;Xe--;)wn[Xe]&&(yt=wn[Xe].name,yt.indexOf("data-")===0&&(yt=It(yt.slice(5)),Et(Qt,yt,Wt[yt])));$e.set(Qt,"hasDataAttrs",!0)}return Wt}return typeof se=="object"?this.each(function(){tt.set(this,se)}):Me(this,function(fr){var Or;if(Qt&&fr===void 0)return Or=tt.get(Qt,se),Or!==void 0||(Or=Et(Qt,se),Or!==void 0)?Or:void 0;this.each(function(){tt.set(this,se,fr)})},null,ye,arguments.length>1,null,!0)},removeData:function(se){return this.each(function(){tt.remove(this,se)})}}),_.extend({queue:function(se,ye,Xe){var yt;if(se)return ye=(ye||"fx")+"queue",yt=$e.get(se,ye),Xe&&(!yt||Array.isArray(Xe)?yt=$e.access(se,ye,_.makeArray(Xe)):yt.push(Xe)),yt||[]},dequeue:function(se,ye){ye=ye||"fx";var Xe=_.queue(se,ye),yt=Xe.length,Wt=Xe.shift(),Qt=_._queueHooks(se,ye),wn=function(){_.dequeue(se,ye)};Wt==="inprogress"&&(Wt=Xe.shift(),yt--),Wt&&(ye==="fx"&&Xe.unshift("inprogress"),delete Qt.stop,Wt.call(se,wn,Qt)),!yt&&Qt&&Qt.empty.fire()},_queueHooks:function(se,ye){var Xe=ye+"queueHooks";return $e.get(se,Xe)||$e.access(se,Xe,{empty:_.Callbacks("once memory").add(function(){$e.remove(se,[ye+"queue",Xe])})})}}),_.fn.extend({queue:function(se,ye){var Xe=2;return typeof se!="string"&&(ye=se,se="fx",Xe--),arguments.length<Xe?_.queue(this[0],se):ye===void 0?this:this.each(function(){var yt=_.queue(this,se,ye);_._queueHooks(this,se),se==="fx"&&yt[0]!=="inprogress"&&_.dequeue(this,se)})},dequeue:function(se){return this.each(function(){_.dequeue(this,se)})},clearQueue:function(se){return this.queue(se||"fx",[])},promise:function(se,ye){var Xe,yt=1,Wt=_.Deferred(),Qt=this,wn=this.length,fr=function(){--yt||Wt.resolveWith(Qt,[Qt])};for(typeof se!="string"&&(ye=se,se=void 0),se=se||"fx";wn--;)Xe=$e.get(Qt[wn],se+"queueHooks"),Xe&&Xe.empty&&(yt++,Xe.empty.add(fr));return fr(),Wt.promise(ye)}});var ct=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ut=new RegExp("^(?:([+-])=|)("+ct+")([a-z%]*)$","i"),Ne=["Top","Right","Bottom","Left"],mt=R.documentElement,bt=function(se){return _.contains(se.ownerDocument,se)},Gt={composed:!0};mt.getRootNode&&(bt=function(se){return _.contains(se.ownerDocument,se)||se.getRootNode(Gt)===se.ownerDocument});var hn=function(se,ye){return se=ye||se,se.style.display==="none"||se.style.display===""&&bt(se)&&_.css(se,"display")==="none"};function Yt(se,ye,Xe,yt){var Wt,Qt,wn=20,fr=yt?function(){return yt.cur()}:function(){return _.css(se,ye,"")},Or=fr(),Si=Xe&&Xe[3]||(_.cssNumber[ye]?"":"px"),Fi=se.nodeType&&(_.cssNumber[ye]||Si!=="px"&&+Or)&&ut.exec(_.css(se,ye));if(Fi&&Fi[3]!==Si){for(Or=Or/2,Si=Si||Fi[3],Fi=+Or||1;wn--;)_.style(se,ye,Fi+Si),(1-Qt)*(1-(Qt=fr()/Or||.5))<=0&&(wn=0),Fi=Fi/Qt;Fi=Fi*2,_.style(se,ye,Fi+Si),Xe=Xe||[]}return Xe&&(Fi=+Fi||+Or||0,Wt=Xe[1]?Fi+(Xe[1]+1)*Xe[2]:+Xe[2],yt&&(yt.unit=Si,yt.start=Fi,yt.end=Wt)),Wt}var Bt={};function Lt(se){var ye,Xe=se.ownerDocument,yt=se.nodeName,Wt=Bt[yt];return Wt||(ye=Xe.body.appendChild(Xe.createElement(yt)),Wt=_.css(ye,"display"),ye.parentNode.removeChild(ye),Wt==="none"&&(Wt="block"),Bt[yt]=Wt,Wt)}function zt(se,ye){for(var Xe,yt,Wt=[],Qt=0,wn=se.length;Qt<wn;Qt++)yt=se[Qt],yt.style&&(Xe=yt.style.display,ye?(Xe==="none"&&(Wt[Qt]=$e.get(yt,"display")||null,Wt[Qt]||(yt.style.display="")),yt.style.display===""&&hn(yt)&&(Wt[Qt]=Lt(yt))):Xe!=="none"&&(Wt[Qt]="none",$e.set(yt,"display",Xe)));for(Qt=0;Qt<wn;Qt++)Wt[Qt]!=null&&(se[Qt].style.display=Wt[Qt]);return se}_.fn.extend({show:function(){return zt(this,!0)},hide:function(){return zt(this)},toggle:function(se){return typeof se=="boolean"?se?this.show():this.hide():this.each(function(){hn(this)?_(this).show():_(this).hide()})}});var Kt=/^(?:checkbox|radio)$/i,vt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ve=/^$|^module$|\/(?:java|ecma)script/i;(function(){var se=R.createDocumentFragment(),ye=se.appendChild(R.createElement("div")),Xe=R.createElement("input");Xe.setAttribute("type","radio"),Xe.setAttribute("checked","checked"),Xe.setAttribute("name","t"),ye.appendChild(Xe),w.checkClone=ye.cloneNode(!0).cloneNode(!0).lastChild.checked,ye.innerHTML="<textarea>x</textarea>",w.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue,ye.innerHTML="<option></option>",w.option=!!ye.lastChild})();var lt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};lt.tbody=lt.tfoot=lt.colgroup=lt.caption=lt.thead,lt.th=lt.td,w.option||(lt.optgroup=lt.option=[1,"<select multiple='multiple'>","</select>"]);function at(se,ye){var Xe;return typeof se.getElementsByTagName<"u"?Xe=se.getElementsByTagName(ye||"*"):typeof se.querySelectorAll<"u"?Xe=se.querySelectorAll(ye||"*"):Xe=[],ye===void 0||ye&&j(se,ye)?_.merge([se],Xe):Xe}function Xt(se,ye){for(var Xe=0,yt=se.length;Xe<yt;Xe++)$e.set(se[Xe],"globalEval",!ye||$e.get(ye[Xe],"globalEval"))}var rt=/<|&#?\w+;/;function Rt(se,ye,Xe,yt,Wt){for(var Qt,wn,fr,Or,Si,Fi,Bi=ye.createDocumentFragment(),Ui=[],vi=0,Xa=se.length;vi<Xa;vi++)if(Qt=se[vi],Qt||Qt===0)if(I(Qt)==="object")_.merge(Ui,Qt.nodeType?[Qt]:Qt);else if(!rt.test(Qt))Ui.push(ye.createTextNode(Qt));else{for(wn=wn||Bi.appendChild(ye.createElement("div")),fr=(vt.exec(Qt)||["",""])[1].toLowerCase(),Or=lt[fr]||lt._default,wn.innerHTML=Or[1]+_.htmlPrefilter(Qt)+Or[2],Fi=Or[0];Fi--;)wn=wn.lastChild;_.merge(Ui,wn.childNodes),wn=Bi.firstChild,wn.textContent=""}for(Bi.textContent="",vi=0;Qt=Ui[vi++];){if(yt&&_.inArray(Qt,yt)>-1){Wt&&Wt.push(Qt);continue}if(Si=bt(Qt),wn=at(Bi.appendChild(Qt),"script"),Si&&Xt(wn),Xe)for(Fi=0;Qt=wn[Fi++];)Ve.test(Qt.type||"")&&Xe.push(Qt)}return Bi}var rn=/^([^.]*)(?:\.(.+)|)/;function sn(){return!0}function Jn(){return!1}function ze(se,ye,Xe,yt,Wt,Qt){var wn,fr;if(typeof ye=="object"){typeof Xe!="string"&&(yt=yt||Xe,Xe=void 0);for(fr in ye)ze(se,fr,Xe,yt,ye[fr],Qt);return se}if(yt==null&&Wt==null?(Wt=Xe,yt=Xe=void 0):Wt==null&&(typeof Xe=="string"?(Wt=yt,yt=void 0):(Wt=yt,yt=Xe,Xe=void 0)),Wt===!1)Wt=Jn;else if(!Wt)return se;return Qt===1&&(wn=Wt,Wt=function(Or){return _().off(Or),wn.apply(this,arguments)},Wt.guid=wn.guid||(wn.guid=_.guid++)),se.each(function(){_.event.add(this,ye,Wt,yt,Xe)})}_.event={global:{},add:function(se,ye,Xe,yt,Wt){var Qt,wn,fr,Or,Si,Fi,Bi,Ui,vi,Xa,Ko,So=$e.get(se);if(Ce(se))for(Xe.handler&&(Qt=Xe,Xe=Qt.handler,Wt=Qt.selector),Wt&&_.find.matchesSelector(mt,Wt),Xe.guid||(Xe.guid=_.guid++),(Or=So.events)||(Or=So.events=Object.create(null)),(wn=So.handle)||(wn=So.handle=function(Lo){return typeof _<"u"&&_.event.triggered!==Lo.type?_.event.dispatch.apply(se,arguments):void 0}),ye=(ye||"").match(we)||[""],Si=ye.length;Si--;)fr=rn.exec(ye[Si])||[],vi=Ko=fr[1],Xa=(fr[2]||"").split(".").sort(),vi&&(Bi=_.event.special[vi]||{},vi=(Wt?Bi.delegateType:Bi.bindType)||vi,Bi=_.event.special[vi]||{},Fi=_.extend({type:vi,origType:Ko,data:yt,handler:Xe,guid:Xe.guid,selector:Wt,needsContext:Wt&&_.expr.match.needsContext.test(Wt),namespace:Xa.join(".")},Qt),(Ui=Or[vi])||(Ui=Or[vi]=[],Ui.delegateCount=0,(!Bi.setup||Bi.setup.call(se,yt,Xa,wn)===!1)&&se.addEventListener&&se.addEventListener(vi,wn)),Bi.add&&(Bi.add.call(se,Fi),Fi.handler.guid||(Fi.handler.guid=Xe.guid)),Wt?Ui.splice(Ui.delegateCount++,0,Fi):Ui.push(Fi),_.event.global[vi]=!0)},remove:function(se,ye,Xe,yt,Wt){var Qt,wn,fr,Or,Si,Fi,Bi,Ui,vi,Xa,Ko,So=$e.hasData(se)&&$e.get(se);if(!(!So||!(Or=So.events))){for(ye=(ye||"").match(we)||[""],Si=ye.length;Si--;){if(fr=rn.exec(ye[Si])||[],vi=Ko=fr[1],Xa=(fr[2]||"").split(".").sort(),!vi){for(vi in Or)_.event.remove(se,vi+ye[Si],Xe,yt,!0);continue}for(Bi=_.event.special[vi]||{},vi=(yt?Bi.delegateType:Bi.bindType)||vi,Ui=Or[vi]||[],fr=fr[2]&&new RegExp("(^|\\.)"+Xa.join("\\.(?:.*\\.|)")+"(\\.|$)"),wn=Qt=Ui.length;Qt--;)Fi=Ui[Qt],(Wt||Ko===Fi.origType)&&(!Xe||Xe.guid===Fi.guid)&&(!fr||fr.test(Fi.namespace))&&(!yt||yt===Fi.selector||yt==="**"&&Fi.selector)&&(Ui.splice(Qt,1),Fi.selector&&Ui.delegateCount--,Bi.remove&&Bi.remove.call(se,Fi));wn&&!Ui.length&&((!Bi.teardown||Bi.teardown.call(se,Xa,So.handle)===!1)&&_.removeEvent(se,vi,So.handle),delete Or[vi])}_.isEmptyObject(Or)&&$e.remove(se,"handle events")}},dispatch:function(se){var ye,Xe,yt,Wt,Qt,wn,fr=new Array(arguments.length),Or=_.event.fix(se),Si=($e.get(this,"events")||Object.create(null))[Or.type]||[],Fi=_.event.special[Or.type]||{};for(fr[0]=Or,ye=1;ye<arguments.length;ye++)fr[ye]=arguments[ye];if(Or.delegateTarget=this,!(Fi.preDispatch&&Fi.preDispatch.call(this,Or)===!1)){for(wn=_.event.handlers.call(this,Or,Si),ye=0;(Wt=wn[ye++])&&!Or.isPropagationStopped();)for(Or.currentTarget=Wt.elem,Xe=0;(Qt=Wt.handlers[Xe++])&&!Or.isImmediatePropagationStopped();)(!Or.rnamespace||Qt.namespace===!1||Or.rnamespace.test(Qt.namespace))&&(Or.handleObj=Qt,Or.data=Qt.data,yt=((_.event.special[Qt.origType]||{}).handle||Qt.handler).apply(Wt.elem,fr),yt!==void 0&&(Or.result=yt)===!1&&(Or.preventDefault(),Or.stopPropagation()));return Fi.postDispatch&&Fi.postDispatch.call(this,Or),Or.result}},handlers:function(se,ye){var Xe,yt,Wt,Qt,wn,fr=[],Or=ye.delegateCount,Si=se.target;if(Or&&Si.nodeType&&!(se.type==="click"&&se.button>=1)){for(;Si!==this;Si=Si.parentNode||this)if(Si.nodeType===1&&!(se.type==="click"&&Si.disabled===!0)){for(Qt=[],wn={},Xe=0;Xe<Or;Xe++)yt=ye[Xe],Wt=yt.selector+" ",wn[Wt]===void 0&&(wn[Wt]=yt.needsContext?_(Wt,this).index(Si)>-1:_.find(Wt,this,null,[Si]).length),wn[Wt]&&Qt.push(yt);Qt.length&&fr.push({elem:Si,handlers:Qt})}}return Si=this,Or<ye.length&&fr.push({elem:Si,handlers:ye.slice(Or)}),fr},addProp:function(se,ye){Object.defineProperty(_.Event.prototype,se,{enumerable:!0,configurable:!0,get:x(ye)?function(){if(this.originalEvent)return ye(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[se]},set:function(Xe){Object.defineProperty(this,se,{enumerable:!0,configurable:!0,writable:!0,value:Xe})}})},fix:function(se){return se[_.expando]?se:new _.Event(se)},special:{load:{noBubble:!0},click:{setup:function(se){var ye=this||se;return Kt.test(ye.type)&&ye.click&&j(ye,"input")&&st(ye,"click",!0),!1},trigger:function(se){var ye=this||se;return Kt.test(ye.type)&&ye.click&&j(ye,"input")&&st(ye,"click"),!0},_default:function(se){var ye=se.target;return Kt.test(ye.type)&&ye.click&&j(ye,"input")&&$e.get(ye,"click")||j(ye,"a")}},beforeunload:{postDispatch:function(se){se.result!==void 0&&se.originalEvent&&(se.originalEvent.returnValue=se.result)}}}};function st(se,ye,Xe){if(!Xe){$e.get(se,ye)===void 0&&_.event.add(se,ye,sn);return}$e.set(se,ye,!1),_.event.add(se,ye,{namespace:!1,handler:function(yt){var Wt,Qt=$e.get(this,ye);if(yt.isTrigger&1&&this[ye]){if(Qt)(_.event.special[ye]||{}).delegateType&&yt.stopPropagation();else if(Qt=h.call(arguments),$e.set(this,ye,Qt),this[ye](),Wt=$e.get(this,ye),$e.set(this,ye,!1),Qt!==Wt)return yt.stopImmediatePropagation(),yt.preventDefault(),Wt}else Qt&&($e.set(this,ye,_.event.trigger(Qt[0],Qt.slice(1),this)),yt.stopPropagation(),yt.isImmediatePropagationStopped=sn)}})}_.removeEvent=function(se,ye,Xe){se.removeEventListener&&se.removeEventListener(ye,Xe)},_.Event=function(se,ye){if(!(this instanceof _.Event))return new _.Event(se,ye);se&&se.type?(this.originalEvent=se,this.type=se.type,this.isDefaultPrevented=se.defaultPrevented||se.defaultPrevented===void 0&&se.returnValue===!1?sn:Jn,this.target=se.target&&se.target.nodeType===3?se.target.parentNode:se.target,this.currentTarget=se.currentTarget,this.relatedTarget=se.relatedTarget):this.type=se,ye&&_.extend(this,ye),this.timeStamp=se&&se.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:Jn,isPropagationStopped:Jn,isImmediatePropagationStopped:Jn,isSimulated:!1,preventDefault:function(){var se=this.originalEvent;this.isDefaultPrevented=sn,se&&!this.isSimulated&&se.preventDefault()},stopPropagation:function(){var se=this.originalEvent;this.isPropagationStopped=sn,se&&!this.isSimulated&&se.stopPropagation()},stopImmediatePropagation:function(){var se=this.originalEvent;this.isImmediatePropagationStopped=sn,se&&!this.isSimulated&&se.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},function(se,ye){function Xe(yt){if(R.documentMode){var Wt=$e.get(this,"handle"),Qt=_.event.fix(yt);Qt.type=yt.type==="focusin"?"focus":"blur",Qt.isSimulated=!0,Wt(yt),Qt.target===Qt.currentTarget&&Wt(Qt)}else _.event.simulate(ye,yt.target,_.event.fix(yt))}_.event.special[se]={setup:function(){var yt;if(st(this,se,!0),R.documentMode)yt=$e.get(this,ye),yt||this.addEventListener(ye,Xe),$e.set(this,ye,(yt||0)+1);else return!1},trigger:function(){return st(this,se),!0},teardown:function(){var yt;if(R.documentMode)yt=$e.get(this,ye)-1,yt?$e.set(this,ye,yt):(this.removeEventListener(ye,Xe),$e.remove(this,ye));else return!1},_default:function(yt){return $e.get(yt.target,se)},delegateType:ye},_.event.special[ye]={setup:function(){var yt=this.ownerDocument||this.document||this,Wt=R.documentMode?this:yt,Qt=$e.get(Wt,ye);Qt||(R.documentMode?this.addEventListener(ye,Xe):yt.addEventListener(se,Xe,!0)),$e.set(Wt,ye,(Qt||0)+1)},teardown:function(){var yt=this.ownerDocument||this.document||this,Wt=R.documentMode?this:yt,Qt=$e.get(Wt,ye)-1;Qt?$e.set(Wt,ye,Qt):(R.documentMode?this.removeEventListener(ye,Xe):yt.removeEventListener(se,Xe,!0),$e.remove(Wt,ye))}}}),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(se,ye){_.event.special[se]={delegateType:ye,bindType:ye,handle:function(Xe){var yt,Wt=this,Qt=Xe.relatedTarget,wn=Xe.handleObj;return(!Qt||Qt!==Wt&&!_.contains(Wt,Qt))&&(Xe.type=wn.origType,yt=wn.handler.apply(this,arguments),Xe.type=ye),yt}}}),_.fn.extend({on:function(se,ye,Xe,yt){return ze(this,se,ye,Xe,yt)},one:function(se,ye,Xe,yt){return ze(this,se,ye,Xe,yt,1)},off:function(se,ye,Xe){var yt,Wt;if(se&&se.preventDefault&&se.handleObj)return yt=se.handleObj,_(se.delegateTarget).off(yt.namespace?yt.origType+"."+yt.namespace:yt.origType,yt.selector,yt.handler),this;if(typeof se=="object"){for(Wt in se)this.off(Wt,ye,se[Wt]);return this}return(ye===!1||typeof ye=="function")&&(Xe=ye,ye=void 0),Xe===!1&&(Xe=Jn),this.each(function(){_.event.remove(this,se,Xe,ye)})}});var en=/<script|<style|<link/i,wt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ke=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ut(se,ye){return j(se,"table")&&j(ye.nodeType!==11?ye:ye.firstChild,"tr")&&_(se).children("tbody")[0]||se}function on(se){return se.type=(se.getAttribute("type")!==null)+"/"+se.type,se}function Tn(se){return(se.type||"").slice(0,5)==="true/"?se.type=se.type.slice(5):se.removeAttribute("type"),se}function An(se,ye){var Xe,yt,Wt,Qt,wn,fr,Or;if(ye.nodeType===1){if($e.hasData(se)&&(Qt=$e.get(se),Or=Qt.events,Or)){$e.remove(ye,"handle events");for(Wt in Or)for(Xe=0,yt=Or[Wt].length;Xe<yt;Xe++)_.event.add(ye,Wt,Or[Wt][Xe])}tt.hasData(se)&&(wn=tt.access(se),fr=_.extend({},wn),tt.set(ye,fr))}}function Zt(se,ye){var Xe=ye.nodeName.toLowerCase();Xe==="input"&&Kt.test(se.type)?ye.checked=se.checked:(Xe==="input"||Xe==="textarea")&&(ye.defaultValue=se.defaultValue)}function ot(se,ye,Xe,yt){ye=p(ye);var Wt,Qt,wn,fr,Or,Si,Fi=0,Bi=se.length,Ui=Bi-1,vi=ye[0],Xa=x(vi);if(Xa||Bi>1&&typeof vi=="string"&&!w.checkClone&&wt.test(vi))return se.each(function(Ko){var So=se.eq(Ko);Xa&&(ye[0]=vi.call(this,Ko,So.html())),ot(So,ye,Xe,yt)});if(Bi&&(Wt=Rt(ye,se[0].ownerDocument,!1,se,yt),Qt=Wt.firstChild,Wt.childNodes.length===1&&(Wt=Qt),Qt||yt)){for(wn=_.map(at(Wt,"script"),on),fr=wn.length;Fi<Bi;Fi++)Or=Wt,Fi!==Ui&&(Or=_.clone(Or,!0,!0),fr&&_.merge(wn,at(Or,"script"))),Xe.call(se[Fi],Or,Fi);if(fr)for(Si=wn[wn.length-1].ownerDocument,_.map(wn,Tn),Fi=0;Fi<fr;Fi++)Or=wn[Fi],Ve.test(Or.type||"")&&!$e.access(Or,"globalEval")&&_.contains(Si,Or)&&(Or.src&&(Or.type||"").toLowerCase()!=="module"?_._evalUrl&&!Or.noModule&&_._evalUrl(Or.src,{nonce:Or.nonce||Or.getAttribute("nonce")},Si):A(Or.textContent.replace(Ke,""),Or,Si))}return se}function We(se,ye,Xe){for(var yt,Wt=ye?_.filter(ye,se):se,Qt=0;(yt=Wt[Qt])!=null;Qt++)!Xe&&yt.nodeType===1&&_.cleanData(at(yt)),yt.parentNode&&(Xe&&bt(yt)&&Xt(at(yt,"script")),yt.parentNode.removeChild(yt));return se}_.extend({htmlPrefilter:function(se){return se},clone:function(se,ye,Xe){var yt,Wt,Qt,wn,fr=se.cloneNode(!0),Or=bt(se);if(!w.noCloneChecked&&(se.nodeType===1||se.nodeType===11)&&!_.isXMLDoc(se))for(wn=at(fr),Qt=at(se),yt=0,Wt=Qt.length;yt<Wt;yt++)Zt(Qt[yt],wn[yt]);if(ye)if(Xe)for(Qt=Qt||at(se),wn=wn||at(fr),yt=0,Wt=Qt.length;yt<Wt;yt++)An(Qt[yt],wn[yt]);else An(se,fr);return wn=at(fr,"script"),wn.length>0&&Xt(wn,!Or&&at(se,"script")),fr},cleanData:function(se){for(var ye,Xe,yt,Wt=_.event.special,Qt=0;(Xe=se[Qt])!==void 0;Qt++)if(Ce(Xe)){if(ye=Xe[$e.expando]){if(ye.events)for(yt in ye.events)Wt[yt]?_.event.remove(Xe,yt):_.removeEvent(Xe,yt,ye.handle);Xe[$e.expando]=void 0}Xe[tt.expando]&&(Xe[tt.expando]=void 0)}}}),_.fn.extend({detach:function(se){return We(this,se,!0)},remove:function(se){return We(this,se)},text:function(se){return Me(this,function(ye){return ye===void 0?_.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=ye)})},null,se,arguments.length)},append:function(){return ot(this,arguments,function(se){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var ye=Ut(this,se);ye.appendChild(se)}})},prepend:function(){return ot(this,arguments,function(se){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var ye=Ut(this,se);ye.insertBefore(se,ye.firstChild)}})},before:function(){return ot(this,arguments,function(se){this.parentNode&&this.parentNode.insertBefore(se,this)})},after:function(){return ot(this,arguments,function(se){this.parentNode&&this.parentNode.insertBefore(se,this.nextSibling)})},empty:function(){for(var se,ye=0;(se=this[ye])!=null;ye++)se.nodeType===1&&(_.cleanData(at(se,!1)),se.textContent="");return this},clone:function(se,ye){return se=se??!1,ye=ye??se,this.map(function(){return _.clone(this,se,ye)})},html:function(se){return Me(this,function(ye){var Xe=this[0]||{},yt=0,Wt=this.length;if(ye===void 0&&Xe.nodeType===1)return Xe.innerHTML;if(typeof ye=="string"&&!en.test(ye)&&!lt[(vt.exec(ye)||["",""])[1].toLowerCase()]){ye=_.htmlPrefilter(ye);try{for(;yt<Wt;yt++)Xe=this[yt]||{},Xe.nodeType===1&&(_.cleanData(at(Xe,!1)),Xe.innerHTML=ye);Xe=0}catch{}}Xe&&this.empty().append(ye)},null,se,arguments.length)},replaceWith:function(){var se=[];return ot(this,arguments,function(ye){var Xe=this.parentNode;_.inArray(this,se)<0&&(_.cleanData(at(this)),Xe&&Xe.replaceChild(ye,this))},se)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(se,ye){_.fn[se]=function(Xe){for(var yt,Wt=[],Qt=_(Xe),wn=Qt.length-1,fr=0;fr<=wn;fr++)yt=fr===wn?this:this.clone(!0),_(Qt[fr])[ye](yt),d.apply(Wt,yt.get());return this.pushStack(Wt)}});var Ft=new RegExp("^("+ct+")(?!px)[a-z%]+$","i"),it=/^--/,qt=function(se){var ye=se.ownerDocument.defaultView;return(!ye||!ye.opener)&&(ye=s),ye.getComputedStyle(se)},vn=function(se,ye,Xe){var yt,Wt,Qt={};for(Wt in ye)Qt[Wt]=se.style[Wt],se.style[Wt]=ye[Wt];yt=Xe.call(se);for(Wt in ye)se.style[Wt]=Qt[Wt];return yt},fn=new RegExp(Ne.join("|"),"i");(function(){function se(){if(Si){Or.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Si.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(Or).appendChild(Si);var Fi=s.getComputedStyle(Si);Xe=Fi.top!=="1%",fr=ye(Fi.marginLeft)===12,Si.style.right="60%",Qt=ye(Fi.right)===36,yt=ye(Fi.width)===36,Si.style.position="absolute",Wt=ye(Si.offsetWidth/3)===12,mt.removeChild(Or),Si=null}}function ye(Fi){return Math.round(parseFloat(Fi))}var Xe,yt,Wt,Qt,wn,fr,Or=R.createElement("div"),Si=R.createElement("div");Si.style&&(Si.style.backgroundClip="content-box",Si.cloneNode(!0).style.backgroundClip="",w.clearCloneStyle=Si.style.backgroundClip==="content-box",_.extend(w,{boxSizingReliable:function(){return se(),yt},pixelBoxStyles:function(){return se(),Qt},pixelPosition:function(){return se(),Xe},reliableMarginLeft:function(){return se(),fr},scrollboxSize:function(){return se(),Wt},reliableTrDimensions:function(){var Fi,Bi,Ui,vi;return wn==null&&(Fi=R.createElement("table"),Bi=R.createElement("tr"),Ui=R.createElement("div"),Fi.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Bi.style.cssText="border:1px solid",Bi.style.height="1px",Ui.style.height="9px",Ui.style.display="block",mt.appendChild(Fi).appendChild(Bi).appendChild(Ui),vi=s.getComputedStyle(Bi),wn=parseInt(vi.height,10)+parseInt(vi.borderTopWidth,10)+parseInt(vi.borderBottomWidth,10)===Bi.offsetHeight,mt.removeChild(Fi)),wn}}))})();function Tt(se,ye,Xe){var yt,Wt,Qt,wn,fr=it.test(ye),Or=se.style;return Xe=Xe||qt(se),Xe&&(wn=Xe.getPropertyValue(ye)||Xe[ye],fr&&wn&&(wn=wn.replace(q,"$1")||void 0),wn===""&&!bt(se)&&(wn=_.style(se,ye)),!w.pixelBoxStyles()&&Ft.test(wn)&&fn.test(ye)&&(yt=Or.width,Wt=Or.minWidth,Qt=Or.maxWidth,Or.minWidth=Or.maxWidth=Or.width=wn,wn=Xe.width,Or.width=yt,Or.minWidth=Wt,Or.maxWidth=Qt)),wn!==void 0?wn+"":wn}function dn(se,ye){return{get:function(){if(se()){delete this.get;return}return(this.get=ye).apply(this,arguments)}}}var mn=["Webkit","Moz","ms"],Kn=R.createElement("div").style,Dn={};function Vn(se){for(var ye=se[0].toUpperCase()+se.slice(1),Xe=mn.length;Xe--;)if(se=mn[Xe]+ye,se in Kn)return se}function or(se){var ye=_.cssProps[se]||Dn[se];return ye||(se in Kn?se:Dn[se]=Vn(se)||se)}var Qr=/^(none|table(?!-c[ea]).+)/,ni={position:"absolute",visibility:"hidden",display:"block"},yr={letterSpacing:"0",fontWeight:"400"};function si(se,ye,Xe){var yt=ut.exec(ye);return yt?Math.max(0,yt[2]-(Xe||0))+(yt[3]||"px"):ye}function Yr(se,ye,Xe,yt,Wt,Qt){var wn=ye==="width"?1:0,fr=0,Or=0,Si=0;if(Xe===(yt?"border":"content"))return 0;for(;wn<4;wn+=2)Xe==="margin"&&(Si+=_.css(se,Xe+Ne[wn],!0,Wt)),yt?(Xe==="content"&&(Or-=_.css(se,"padding"+Ne[wn],!0,Wt)),Xe!=="margin"&&(Or-=_.css(se,"border"+Ne[wn]+"Width",!0,Wt))):(Or+=_.css(se,"padding"+Ne[wn],!0,Wt),Xe!=="padding"?Or+=_.css(se,"border"+Ne[wn]+"Width",!0,Wt):fr+=_.css(se,"border"+Ne[wn]+"Width",!0,Wt));return!yt&&Qt>=0&&(Or+=Math.max(0,Math.ceil(se["offset"+ye[0].toUpperCase()+ye.slice(1)]-Qt-Or-fr-.5))||0),Or+Si}function Ci(se,ye,Xe){var yt=qt(se),Wt=!w.boxSizingReliable()||Xe,Qt=Wt&&_.css(se,"boxSizing",!1,yt)==="border-box",wn=Qt,fr=Tt(se,ye,yt),Or="offset"+ye[0].toUpperCase()+ye.slice(1);if(Ft.test(fr)){if(!Xe)return fr;fr="auto"}return(!w.boxSizingReliable()&&Qt||!w.reliableTrDimensions()&&j(se,"tr")||fr==="auto"||!parseFloat(fr)&&_.css(se,"display",!1,yt)==="inline")&&se.getClientRects().length&&(Qt=_.css(se,"boxSizing",!1,yt)==="border-box",wn=Or in se,wn&&(fr=se[Or])),fr=parseFloat(fr)||0,fr+Yr(se,ye,Xe||(Qt?"border":"content"),wn,yt,fr)+"px"}_.extend({cssHooks:{opacity:{get:function(se,ye){if(ye){var Xe=Tt(se,"opacity");return Xe===""?"1":Xe}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(se,ye,Xe,yt){if(!(!se||se.nodeType===3||se.nodeType===8||!se.style)){var Wt,Qt,wn,fr=It(ye),Or=it.test(ye),Si=se.style;if(Or||(ye=or(fr)),wn=_.cssHooks[ye]||_.cssHooks[fr],Xe!==void 0){if(Qt=typeof Xe,Qt==="string"&&(Wt=ut.exec(Xe))&&Wt[1]&&(Xe=Yt(se,ye,Wt),Qt="number"),Xe==null||Xe!==Xe)return;Qt==="number"&&!Or&&(Xe+=Wt&&Wt[3]||(_.cssNumber[fr]?"":"px")),!w.clearCloneStyle&&Xe===""&&ye.indexOf("background")===0&&(Si[ye]="inherit"),(!wn||!("set"in wn)||(Xe=wn.set(se,Xe,yt))!==void 0)&&(Or?Si.setProperty(ye,Xe):Si[ye]=Xe)}else return wn&&"get"in wn&&(Wt=wn.get(se,!1,yt))!==void 0?Wt:Si[ye]}},css:function(se,ye,Xe,yt){var Wt,Qt,wn,fr=It(ye),Or=it.test(ye);return Or||(ye=or(fr)),wn=_.cssHooks[ye]||_.cssHooks[fr],wn&&"get"in wn&&(Wt=wn.get(se,!0,Xe)),Wt===void 0&&(Wt=Tt(se,ye,yt)),Wt==="normal"&&ye in yr&&(Wt=yr[ye]),Xe===""||Xe?(Qt=parseFloat(Wt),Xe===!0||isFinite(Qt)?Qt||0:Wt):Wt}}),_.each(["height","width"],function(se,ye){_.cssHooks[ye]={get:function(Xe,yt,Wt){if(yt)return Qr.test(_.css(Xe,"display"))&&(!Xe.getClientRects().length||!Xe.getBoundingClientRect().width)?vn(Xe,ni,function(){return Ci(Xe,ye,Wt)}):Ci(Xe,ye,Wt)},set:function(Xe,yt,Wt){var Qt,wn=qt(Xe),fr=!w.scrollboxSize()&&wn.position==="absolute",Or=fr||Wt,Si=Or&&_.css(Xe,"boxSizing",!1,wn)==="border-box",Fi=Wt?Yr(Xe,ye,Wt,Si,wn):0;return Si&&fr&&(Fi-=Math.ceil(Xe["offset"+ye[0].toUpperCase()+ye.slice(1)]-parseFloat(wn[ye])-Yr(Xe,ye,"border",!1,wn)-.5)),Fi&&(Qt=ut.exec(yt))&&(Qt[3]||"px")!=="px"&&(Xe.style[ye]=yt,yt=_.css(Xe,ye)),si(Xe,yt,Fi)}}}),_.cssHooks.marginLeft=dn(w.reliableMarginLeft,function(se,ye){if(ye)return(parseFloat(Tt(se,"marginLeft"))||se.getBoundingClientRect().left-vn(se,{marginLeft:0},function(){return se.getBoundingClientRect().left}))+"px"}),_.each({margin:"",padding:"",border:"Width"},function(se,ye){_.cssHooks[se+ye]={expand:function(Xe){for(var yt=0,Wt={},Qt=typeof Xe=="string"?Xe.split(" "):[Xe];yt<4;yt++)Wt[se+Ne[yt]+ye]=Qt[yt]||Qt[yt-2]||Qt[0];return Wt}},se!=="margin"&&(_.cssHooks[se+ye].set=si)}),_.fn.extend({css:function(se,ye){return Me(this,function(Xe,yt,Wt){var Qt,wn,fr={},Or=0;if(Array.isArray(yt)){for(Qt=qt(Xe),wn=yt.length;Or<wn;Or++)fr[yt[Or]]=_.css(Xe,yt[Or],!1,Qt);return fr}return Wt!==void 0?_.style(Xe,yt,Wt):_.css(Xe,yt)},se,ye,arguments.length>1)}});function Ni(se,ye,Xe,yt,Wt){return new Ni.prototype.init(se,ye,Xe,yt,Wt)}_.Tween=Ni,Ni.prototype={constructor:Ni,init:function(se,ye,Xe,yt,Wt,Qt){this.elem=se,this.prop=Xe,this.easing=Wt||_.easing._default,this.options=ye,this.start=this.now=this.cur(),this.end=yt,this.unit=Qt||(_.cssNumber[Xe]?"":"px")},cur:function(){var se=Ni.propHooks[this.prop];return se&&se.get?se.get(this):Ni.propHooks._default.get(this)},run:function(se){var ye,Xe=Ni.propHooks[this.prop];return this.options.duration?this.pos=ye=_.easing[this.easing](se,this.options.duration*se,0,1,this.options.duration):this.pos=ye=se,this.now=(this.end-this.start)*ye+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),Xe&&Xe.set?Xe.set(this):Ni.propHooks._default.set(this),this}},Ni.prototype.init.prototype=Ni.prototype,Ni.propHooks={_default:{get:function(se){var ye;return se.elem.nodeType!==1||se.elem[se.prop]!=null&&se.elem.style[se.prop]==null?se.elem[se.prop]:(ye=_.css(se.elem,se.prop,""),!ye||ye==="auto"?0:ye)},set:function(se){_.fx.step[se.prop]?_.fx.step[se.prop](se):se.elem.nodeType===1&&(_.cssHooks[se.prop]||se.elem.style[or(se.prop)]!=null)?_.style(se.elem,se.prop,se.now+se.unit):se.elem[se.prop]=se.now}}},Ni.propHooks.scrollTop=Ni.propHooks.scrollLeft={set:function(se){se.elem.nodeType&&se.elem.parentNode&&(se.elem[se.prop]=se.now)}},_.easing={linear:function(se){return se},swing:function(se){return .5-Math.cos(se*Math.PI)/2},_default:"swing"},_.fx=Ni.prototype.init,_.fx.step={};var fa,ha,Ca=/^(?:toggle|show|hide)$/,li=/queueHooks$/;function la(){ha&&(R.hidden===!1&&s.requestAnimationFrame?s.requestAnimationFrame(la):s.setTimeout(la,_.fx.interval),_.fx.tick())}function Oa(){return s.setTimeout(function(){fa=void 0}),fa=Date.now()}function wa(se,ye){var Xe,yt=0,Wt={height:se};for(ye=ye?1:0;yt<4;yt+=2-ye)Xe=Ne[yt],Wt["margin"+Xe]=Wt["padding"+Xe]=se;return ye&&(Wt.opacity=Wt.width=se),Wt}function vo(se,ye,Xe){for(var yt,Wt=($r.tweeners[ye]||[]).concat($r.tweeners["*"]),Qt=0,wn=Wt.length;Qt<wn;Qt++)if(yt=Wt[Qt].call(Xe,ye,se))return yt}function Qn(se,ye,Xe){var yt,Wt,Qt,wn,fr,Or,Si,Fi,Bi="width"in ye||"height"in ye,Ui=this,vi={},Xa=se.style,Ko=se.nodeType&&hn(se),So=$e.get(se,"fxshow");Xe.queue||(wn=_._queueHooks(se,"fx"),wn.unqueued==null&&(wn.unqueued=0,fr=wn.empty.fire,wn.empty.fire=function(){wn.unqueued||fr()}),wn.unqueued++,Ui.always(function(){Ui.always(function(){wn.unqueued--,_.queue(se,"fx").length||wn.empty.fire()})}));for(yt in ye)if(Wt=ye[yt],Ca.test(Wt)){if(delete ye[yt],Qt=Qt||Wt==="toggle",Wt===(Ko?"hide":"show"))if(Wt==="show"&&So&&So[yt]!==void 0)Ko=!0;else continue;vi[yt]=So&&So[yt]||_.style(se,yt)}if(Or=!_.isEmptyObject(ye),!(!Or&&_.isEmptyObject(vi))){Bi&&se.nodeType===1&&(Xe.overflow=[Xa.overflow,Xa.overflowX,Xa.overflowY],Si=So&&So.display,Si==null&&(Si=$e.get(se,"display")),Fi=_.css(se,"display"),Fi==="none"&&(Si?Fi=Si:(zt([se],!0),Si=se.style.display||Si,Fi=_.css(se,"display"),zt([se]))),(Fi==="inline"||Fi==="inline-block"&&Si!=null)&&_.css(se,"float")==="none"&&(Or||(Ui.done(function(){Xa.display=Si}),Si==null&&(Fi=Xa.display,Si=Fi==="none"?"":Fi)),Xa.display="inline-block")),Xe.overflow&&(Xa.overflow="hidden",Ui.always(function(){Xa.overflow=Xe.overflow[0],Xa.overflowX=Xe.overflow[1],Xa.overflowY=Xe.overflow[2]})),Or=!1;for(yt in vi)Or||(So?"hidden"in So&&(Ko=So.hidden):So=$e.access(se,"fxshow",{display:Si}),Qt&&(So.hidden=!Ko),Ko&&zt([se],!0),Ui.done(function(){Ko||zt([se]),$e.remove(se,"fxshow");for(yt in vi)_.style(se,yt,vi[yt])})),Or=vo(Ko?So[yt]:0,yt,Ui),yt in So||(So[yt]=Or.start,Ko&&(Or.end=Or.start,Or.start=0))}}function _r(se,ye){var Xe,yt,Wt,Qt,wn;for(Xe in se)if(yt=It(Xe),Wt=ye[yt],Qt=se[Xe],Array.isArray(Qt)&&(Wt=Qt[1],Qt=se[Xe]=Qt[0]),Xe!==yt&&(se[yt]=Qt,delete se[Xe]),wn=_.cssHooks[yt],wn&&"expand"in wn){Qt=wn.expand(Qt),delete se[yt];for(Xe in Qt)Xe in se||(se[Xe]=Qt[Xe],ye[Xe]=Wt)}else ye[yt]=Wt}function $r(se,ye,Xe){var yt,Wt,Qt=0,wn=$r.prefilters.length,fr=_.Deferred().always(function(){delete Or.elem}),Or=function(){if(Wt)return!1;for(var Bi=fa||Oa(),Ui=Math.max(0,Si.startTime+Si.duration-Bi),vi=Ui/Si.duration||0,Xa=1-vi,Ko=0,So=Si.tweens.length;Ko<So;Ko++)Si.tweens[Ko].run(Xa);return fr.notifyWith(se,[Si,Xa,Ui]),Xa<1&&So?Ui:(So||fr.notifyWith(se,[Si,1,0]),fr.resolveWith(se,[Si]),!1)},Si=fr.promise({elem:se,props:_.extend({},ye),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},Xe),originalProperties:ye,originalOptions:Xe,startTime:fa||Oa(),duration:Xe.duration,tweens:[],createTween:function(Bi,Ui){var vi=_.Tween(se,Si.opts,Bi,Ui,Si.opts.specialEasing[Bi]||Si.opts.easing);return Si.tweens.push(vi),vi},stop:function(Bi){var Ui=0,vi=Bi?Si.tweens.length:0;if(Wt)return this;for(Wt=!0;Ui<vi;Ui++)Si.tweens[Ui].run(1);return Bi?(fr.notifyWith(se,[Si,1,0]),fr.resolveWith(se,[Si,Bi])):fr.rejectWith(se,[Si,Bi]),this}}),Fi=Si.props;for(_r(Fi,Si.opts.specialEasing);Qt<wn;Qt++)if(yt=$r.prefilters[Qt].call(Si,se,Fi,Si.opts),yt)return x(yt.stop)&&(_._queueHooks(Si.elem,Si.opts.queue).stop=yt.stop.bind(yt)),yt;return _.map(Fi,vo,Si),x(Si.opts.start)&&Si.opts.start.call(se,Si),Si.progress(Si.opts.progress).done(Si.opts.done,Si.opts.complete).fail(Si.opts.fail).always(Si.opts.always),_.fx.timer(_.extend(Or,{elem:se,anim:Si,queue:Si.opts.queue})),Si}_.Animation=_.extend($r,{tweeners:{"*":[function(se,ye){var Xe=this.createTween(se,ye);return Yt(Xe.elem,se,ut.exec(ye),Xe),Xe}]},tweener:function(se,ye){x(se)?(ye=se,se=["*"]):se=se.match(we);for(var Xe,yt=0,Wt=se.length;yt<Wt;yt++)Xe=se[yt],$r.tweeners[Xe]=$r.tweeners[Xe]||[],$r.tweeners[Xe].unshift(ye)},prefilters:[Qn],prefilter:function(se,ye){ye?$r.prefilters.unshift(se):$r.prefilters.push(se)}}),_.speed=function(se,ye,Xe){var yt=se&&typeof se=="object"?_.extend({},se):{complete:Xe||!Xe&&ye||x(se)&&se,duration:se,easing:Xe&&ye||ye&&!x(ye)&&ye};return _.fx.off?yt.duration=0:typeof yt.duration!="number"&&(yt.duration in _.fx.speeds?yt.duration=_.fx.speeds[yt.duration]:yt.duration=_.fx.speeds._default),(yt.queue==null||yt.queue===!0)&&(yt.queue="fx"),yt.old=yt.complete,yt.complete=function(){x(yt.old)&&yt.old.call(this),yt.queue&&_.dequeue(this,yt.queue)},yt},_.fn.extend({fadeTo:function(se,ye,Xe,yt){return this.filter(hn).css("opacity",0).show().end().animate({opacity:ye},se,Xe,yt)},animate:function(se,ye,Xe,yt){var Wt=_.isEmptyObject(se),Qt=_.speed(ye,Xe,yt),wn=function(){var fr=$r(this,_.extend({},se),Qt);(Wt||$e.get(this,"finish"))&&fr.stop(!0)};return wn.finish=wn,Wt||Qt.queue===!1?this.each(wn):this.queue(Qt.queue,wn)},stop:function(se,ye,Xe){var yt=function(Wt){var Qt=Wt.stop;delete Wt.stop,Qt(Xe)};return typeof se!="string"&&(Xe=ye,ye=se,se=void 0),ye&&this.queue(se||"fx",[]),this.each(function(){var Wt=!0,Qt=se!=null&&se+"queueHooks",wn=_.timers,fr=$e.get(this);if(Qt)fr[Qt]&&fr[Qt].stop&&yt(fr[Qt]);else for(Qt in fr)fr[Qt]&&fr[Qt].stop&&li.test(Qt)&&yt(fr[Qt]);for(Qt=wn.length;Qt--;)wn[Qt].elem===this&&(se==null||wn[Qt].queue===se)&&(wn[Qt].anim.stop(Xe),Wt=!1,wn.splice(Qt,1));(Wt||!Xe)&&_.dequeue(this,se)})},finish:function(se){return se!==!1&&(se=se||"fx"),this.each(function(){var ye,Xe=$e.get(this),yt=Xe[se+"queue"],Wt=Xe[se+"queueHooks"],Qt=_.timers,wn=yt?yt.length:0;for(Xe.finish=!0,_.queue(this,se,[]),Wt&&Wt.stop&&Wt.stop.call(this,!0),ye=Qt.length;ye--;)Qt[ye].elem===this&&Qt[ye].queue===se&&(Qt[ye].anim.stop(!0),Qt.splice(ye,1));for(ye=0;ye<wn;ye++)yt[ye]&&yt[ye].finish&&yt[ye].finish.call(this);delete Xe.finish})}}),_.each(["toggle","show","hide"],function(se,ye){var Xe=_.fn[ye];_.fn[ye]=function(yt,Wt,Qt){return yt==null||typeof yt=="boolean"?Xe.apply(this,arguments):this.animate(wa(ye,!0),yt,Wt,Qt)}}),_.each({slideDown:wa("show"),slideUp:wa("hide"),slideToggle:wa("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(se,ye){_.fn[se]=function(Xe,yt,Wt){return this.animate(ye,Xe,yt,Wt)}}),_.timers=[],_.fx.tick=function(){var se,ye=0,Xe=_.timers;for(fa=Date.now();ye<Xe.length;ye++)se=Xe[ye],!se()&&Xe[ye]===se&&Xe.splice(ye--,1);Xe.length||_.fx.stop(),fa=void 0},_.fx.timer=function(se){_.timers.push(se),_.fx.start()},_.fx.interval=13,_.fx.start=function(){ha||(ha=!0,la())},_.fx.stop=function(){ha=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(se,ye){return se=_.fx&&_.fx.speeds[se]||se,ye=ye||"fx",this.queue(ye,function(Xe,yt){var Wt=s.setTimeout(Xe,se);yt.stop=function(){s.clearTimeout(Wt)}})},function(){var se=R.createElement("input"),ye=R.createElement("select"),Xe=ye.appendChild(R.createElement("option"));se.type="checkbox",w.checkOn=se.value!=="",w.optSelected=Xe.selected,se=R.createElement("input"),se.value="t",se.type="radio",w.radioValue=se.value==="t"}();var Ti,xt=_.expr.attrHandle;_.fn.extend({attr:function(se,ye){return Me(this,_.attr,se,ye,arguments.length>1)},removeAttr:function(se){return this.each(function(){_.removeAttr(this,se)})}}),_.extend({attr:function(se,ye,Xe){var yt,Wt,Qt=se.nodeType;if(!(Qt===3||Qt===8||Qt===2)){if(typeof se.getAttribute>"u")return _.prop(se,ye,Xe);if((Qt!==1||!_.isXMLDoc(se))&&(Wt=_.attrHooks[ye.toLowerCase()]||(_.expr.match.bool.test(ye)?Ti:void 0)),Xe!==void 0){if(Xe===null){_.removeAttr(se,ye);return}return Wt&&"set"in Wt&&(yt=Wt.set(se,Xe,ye))!==void 0?yt:(se.setAttribute(ye,Xe+""),Xe)}return Wt&&"get"in Wt&&(yt=Wt.get(se,ye))!==null?yt:(yt=_.find.attr(se,ye),yt??void 0)}},attrHooks:{type:{set:function(se,ye){if(!w.radioValue&&ye==="radio"&&j(se,"input")){var Xe=se.value;return se.setAttribute("type",ye),Xe&&(se.value=Xe),ye}}}},removeAttr:function(se,ye){var Xe,yt=0,Wt=ye&&ye.match(we);if(Wt&&se.nodeType===1)for(;Xe=Wt[yt++];)se.removeAttribute(Xe)}}),Ti={set:function(se,ye,Xe){return ye===!1?_.removeAttr(se,Xe):se.setAttribute(Xe,Xe),Xe}},_.each(_.expr.match.bool.source.match(/\w+/g),function(se,ye){var Xe=xt[ye]||_.find.attr;xt[ye]=function(yt,Wt,Qt){var wn,fr,Or=Wt.toLowerCase();return Qt||(fr=xt[Or],xt[Or]=wn,wn=Xe(yt,Wt,Qt)!=null?Or:null,xt[Or]=fr),wn}});var On=/^(?:input|select|textarea|button)$/i,Zn=/^(?:a|area)$/i;_.fn.extend({prop:function(se,ye){return Me(this,_.prop,se,ye,arguments.length>1)},removeProp:function(se){return this.each(function(){delete this[_.propFix[se]||se]})}}),_.extend({prop:function(se,ye,Xe){var yt,Wt,Qt=se.nodeType;if(!(Qt===3||Qt===8||Qt===2))return(Qt!==1||!_.isXMLDoc(se))&&(ye=_.propFix[ye]||ye,Wt=_.propHooks[ye]),Xe!==void 0?Wt&&"set"in Wt&&(yt=Wt.set(se,Xe,ye))!==void 0?yt:se[ye]=Xe:Wt&&"get"in Wt&&(yt=Wt.get(se,ye))!==null?yt:se[ye]},propHooks:{tabIndex:{get:function(se){var ye=_.find.attr(se,"tabindex");return ye?parseInt(ye,10):On.test(se.nodeName)||Zn.test(se.nodeName)&&se.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),w.optSelected||(_.propHooks.selected={get:function(se){var ye=se.parentNode;return ye&&ye.parentNode&&ye.parentNode.selectedIndex,null},set:function(se){var ye=se.parentNode;ye&&(ye.selectedIndex,ye.parentNode&&ye.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this});function Ur(se){var ye=se.match(we)||[];return ye.join(" ")}function En(se){return se.getAttribute&&se.getAttribute("class")||""}function ln(se){return Array.isArray(se)?se:typeof se=="string"?se.match(we)||[]:[]}_.fn.extend({addClass:function(se){var ye,Xe,yt,Wt,Qt,wn;return x(se)?this.each(function(fr){_(this).addClass(se.call(this,fr,En(this)))}):(ye=ln(se),ye.length?this.each(function(){if(yt=En(this),Xe=this.nodeType===1&&" "+Ur(yt)+" ",Xe){for(Qt=0;Qt<ye.length;Qt++)Wt=ye[Qt],Xe.indexOf(" "+Wt+" ")<0&&(Xe+=Wt+" ");wn=Ur(Xe),yt!==wn&&this.setAttribute("class",wn)}}):this)},removeClass:function(se){var ye,Xe,yt,Wt,Qt,wn;return x(se)?this.each(function(fr){_(this).removeClass(se.call(this,fr,En(this)))}):arguments.length?(ye=ln(se),ye.length?this.each(function(){if(yt=En(this),Xe=this.nodeType===1&&" "+Ur(yt)+" ",Xe){for(Qt=0;Qt<ye.length;Qt++)for(Wt=ye[Qt];Xe.indexOf(" "+Wt+" ")>-1;)Xe=Xe.replace(" "+Wt+" "," ");wn=Ur(Xe),yt!==wn&&this.setAttribute("class",wn)}}):this):this.attr("class","")},toggleClass:function(se,ye){var Xe,yt,Wt,Qt,wn=typeof se,fr=wn==="string"||Array.isArray(se);return x(se)?this.each(function(Or){_(this).toggleClass(se.call(this,Or,En(this),ye),ye)}):typeof ye=="boolean"&&fr?ye?this.addClass(se):this.removeClass(se):(Xe=ln(se),this.each(function(){if(fr)for(Qt=_(this),Wt=0;Wt<Xe.length;Wt++)yt=Xe[Wt],Qt.hasClass(yt)?Qt.removeClass(yt):Qt.addClass(yt);else(se===void 0||wn==="boolean")&&(yt=En(this),yt&&$e.set(this,"__className__",yt),this.setAttribute&&this.setAttribute("class",yt||se===!1?"":$e.get(this,"__className__")||""))}))},hasClass:function(se){var ye,Xe,yt=0;for(ye=" "+se+" ";Xe=this[yt++];)if(Xe.nodeType===1&&(" "+Ur(En(Xe))+" ").indexOf(ye)>-1)return!0;return!1}});var jn=/\r/g;_.fn.extend({val:function(se){var ye,Xe,yt,Wt=this[0];return arguments.length?(yt=x(se),this.each(function(Qt){var wn;this.nodeType===1&&(yt?wn=se.call(this,Qt,_(this).val()):wn=se,wn==null?wn="":typeof wn=="number"?wn+="":Array.isArray(wn)&&(wn=_.map(wn,function(fr){return fr==null?"":fr+""})),ye=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()],(!ye||!("set"in ye)||ye.set(this,wn,"value")===void 0)&&(this.value=wn))})):Wt?(ye=_.valHooks[Wt.type]||_.valHooks[Wt.nodeName.toLowerCase()],ye&&"get"in ye&&(Xe=ye.get(Wt,"value"))!==void 0?Xe:(Xe=Wt.value,typeof Xe=="string"?Xe.replace(jn,""):Xe??"")):void 0}}),_.extend({valHooks:{option:{get:function(se){var ye=_.find.attr(se,"value");return ye??Ur(_.text(se))}},select:{get:function(se){var ye,Xe,yt,Wt=se.options,Qt=se.selectedIndex,wn=se.type==="select-one",fr=wn?null:[],Or=wn?Qt+1:Wt.length;for(Qt<0?yt=Or:yt=wn?Qt:0;yt<Or;yt++)if(Xe=Wt[yt],(Xe.selected||yt===Qt)&&!Xe.disabled&&(!Xe.parentNode.disabled||!j(Xe.parentNode,"optgroup"))){if(ye=_(Xe).val(),wn)return ye;fr.push(ye)}return fr},set:function(se,ye){for(var Xe,yt,Wt=se.options,Qt=_.makeArray(ye),wn=Wt.length;wn--;)yt=Wt[wn],(yt.selected=_.inArray(_.valHooks.option.get(yt),Qt)>-1)&&(Xe=!0);return Xe||(se.selectedIndex=-1),Qt}}}}),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(se,ye){if(Array.isArray(ye))return se.checked=_.inArray(_(se).val(),ye)>-1}},w.checkOn||(_.valHooks[this].get=function(se){return se.getAttribute("value")===null?"on":se.value})});var rr=s.location,Mr={guid:Date.now()},Ir=/\?/;_.parseXML=function(se){var ye,Xe;if(!se||typeof se!="string")return null;try{ye=new s.DOMParser().parseFromString(se,"text/xml")}catch{}return Xe=ye&&ye.getElementsByTagName("parsererror")[0],(!ye||Xe)&&_.error("Invalid XML: "+(Xe?_.map(Xe.childNodes,function(yt){return yt.textContent}).join(` `):se)),ye};var Zr=/^(?:focusinfocus|focusoutblur)$/,lr=function(se){se.stopPropagation()};_.extend(_.event,{trigger:function(se,ye,Xe,yt){var Wt,Qt,wn,fr,Or,Si,Fi,Bi,Ui=[Xe||R],vi=b.call(se,"type")?se.type:se,Xa=b.call(se,"namespace")?se.namespace.split("."):[];if(Qt=Bi=wn=Xe=Xe||R,!(Xe.nodeType===3||Xe.nodeType===8)&&!Zr.test(vi+_.event.triggered)&&(vi.indexOf(".")>-1&&(Xa=vi.split("."),vi=Xa.shift(),Xa.sort()),Or=vi.indexOf(":")<0&&"on"+vi,se=se[_.expando]?se:new _.Event(vi,typeof se=="object"&&se),se.isTrigger=yt?2:3,se.namespace=Xa.join("."),se.rnamespace=se.namespace?new RegExp("(^|\\.)"+Xa.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,se.result=void 0,se.target||(se.target=Xe),ye=ye==null?[se]:_.makeArray(ye,[se]),Fi=_.event.special[vi]||{},!(!yt&&Fi.trigger&&Fi.trigger.apply(Xe,ye)===!1))){if(!yt&&!Fi.noBubble&&!P(Xe)){for(fr=Fi.delegateType||vi,Zr.test(fr+vi)||(Qt=Qt.parentNode);Qt;Qt=Qt.parentNode)Ui.push(Qt),wn=Qt;wn===(Xe.ownerDocument||R)&&Ui.push(wn.defaultView||wn.parentWindow||s)}for(Wt=0;(Qt=Ui[Wt++])&&!se.isPropagationStopped();)Bi=Qt,se.type=Wt>1?fr:Fi.bindType||vi,Si=($e.get(Qt,"events")||Object.create(null))[se.type]&&$e.get(Qt,"handle"),Si&&Si.apply(Qt,ye),Si=Or&&Qt[Or],Si&&Si.apply&&Ce(Qt)&&(se.result=Si.apply(Qt,ye),se.result===!1&&se.preventDefault());return se.type=vi,!yt&&!se.isDefaultPrevented()&&(!Fi._default||Fi._default.apply(Ui.pop(),ye)===!1)&&Ce(Xe)&&Or&&x(Xe[vi])&&!P(Xe)&&(wn=Xe[Or],wn&&(Xe[Or]=null),_.event.triggered=vi,se.isPropagationStopped()&&Bi.addEventListener(vi,lr),Xe[vi](),se.isPropagationStopped()&&Bi.removeEventListener(vi,lr),_.event.triggered=void 0,wn&&(Xe[Or]=wn)),se.result}},simulate:function(se,ye,Xe){var yt=_.extend(new _.Event,Xe,{type:se,isSimulated:!0});_.event.trigger(yt,null,ye)}}),_.fn.extend({trigger:function(se,ye){return this.each(function(){_.event.trigger(se,ye,this)})},triggerHandler:function(se,ye){var Xe=this[0];if(Xe)return _.event.trigger(se,ye,Xe,!0)}});var Jr=/\[\]$/,pi=/\r?\n/g,Ri=/^(?:submit|button|image|reset|file)$/i,Ki=/^(?:input|select|textarea|keygen)/i;function ia(se,ye,Xe,yt){var Wt;if(Array.isArray(ye))_.each(ye,function(Qt,wn){Xe||Jr.test(se)?yt(se,wn):ia(se+"["+(typeof wn=="object"&&wn!=null?Qt:"")+"]",wn,Xe,yt)});else if(!Xe&&I(ye)==="object")for(Wt in ye)ia(se+"["+Wt+"]",ye[Wt],Xe,yt);else yt(se,ye)}_.param=function(se,ye){var Xe,yt=[],Wt=function(Qt,wn){var fr=x(wn)?wn():wn;yt[yt.length]=encodeURIComponent(Qt)+"="+encodeURIComponent(fr??"")};if(se==null)return"";if(Array.isArray(se)||se.jquery&&!_.isPlainObject(se))_.each(se,function(){Wt(this.name,this.value)});else for(Xe in se)ia(Xe,se[Xe],ye,Wt);return yt.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var se=_.prop(this,"elements");return se?_.makeArray(se):this}).filter(function(){var se=this.type;return this.name&&!_(this).is(":disabled")&&Ki.test(this.nodeName)&&!Ri.test(se)&&(this.checked||!Kt.test(se))}).map(function(se,ye){var Xe=_(this).val();return Xe==null?null:Array.isArray(Xe)?_.map(Xe,function(yt){return{name:ye.name,value:yt.replace(pi,`\r `)}}):{name:ye.name,value:Xe.replace(pi,`\r `)}}).get()}});var Da=/%20/g,to=/#.*$/,ao=/([?&])_=[^&]*/,Bo=/^(.*?):[ \t]*([^\r\n]*)$/mg,jo=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Jo=/^(?:GET|HEAD)$/,Go=/^\/\//,wr={},qi={},ja="*/".concat("*"),uo=R.createElement("a");uo.href=rr.href;function wi(se){return function(ye,Xe){typeof ye!="string"&&(Xe=ye,ye="*");var yt,Wt=0,Qt=ye.toLowerCase().match(we)||[];if(x(Xe))for(;yt=Qt[Wt++];)yt[0]==="+"?(yt=yt.slice(1)||"*",(se[yt]=se[yt]||[]).unshift(Xe)):(se[yt]=se[yt]||[]).push(Xe)}}function ai(se,ye,Xe,yt){var Wt={},Qt=se===qi;function wn(fr){var Or;return Wt[fr]=!0,_.each(se[fr]||[],function(Si,Fi){var Bi=Fi(ye,Xe,yt);if(typeof Bi=="string"&&!Qt&&!Wt[Bi])return ye.dataTypes.unshift(Bi),wn(Bi),!1;if(Qt)return!(Or=Bi)}),Or}return wn(ye.dataTypes[0])||!Wt["*"]&&wn("*")}function za(se,ye){var Xe,yt,Wt=_.ajaxSettings.flatOptions||{};for(Xe in ye)ye[Xe]!==void 0&&((Wt[Xe]?se:yt||(yt={}))[Xe]=ye[Xe]);return yt&&_.extend(!0,se,yt),se}function Mt(se,ye,Xe){for(var yt,Wt,Qt,wn,fr=se.contents,Or=se.dataTypes;Or[0]==="*";)Or.shift(),yt===void 0&&(yt=se.mimeType||ye.getResponseHeader("Content-Type"));if(yt){for(Wt in fr)if(fr[Wt]&&fr[Wt].test(yt)){Or.unshift(Wt);break}}if(Or[0]in Xe)Qt=Or[0];else{for(Wt in Xe){if(!Or[0]||se.converters[Wt+" "+Or[0]]){Qt=Wt;break}wn||(wn=Wt)}Qt=Qt||wn}if(Qt)return Qt!==Or[0]&&Or.unshift(Qt),Xe[Qt]}function Gn(se,ye,Xe,yt){var Wt,Qt,wn,fr,Or,Si={},Fi=se.dataTypes.slice();if(Fi[1])for(wn in se.converters)Si[wn.toLowerCase()]=se.converters[wn];for(Qt=Fi.shift();Qt;)if(se.responseFields[Qt]&&(Xe[se.responseFields[Qt]]=ye),!Or&&yt&&se.dataFilter&&(ye=se.dataFilter(ye,se.dataType)),Or=Qt,Qt=Fi.shift(),Qt){if(Qt==="*")Qt=Or;else if(Or!=="*"&&Or!==Qt){if(wn=Si[Or+" "+Qt]||Si["* "+Qt],!wn){for(Wt in Si)if(fr=Wt.split(" "),fr[1]===Qt&&(wn=Si[Or+" "+fr[0]]||Si["* "+fr[0]],wn)){wn===!0?wn=Si[Wt]:Si[Wt]!==!0&&(Qt=fr[0],Fi.unshift(fr[1]));break}}if(wn!==!0)if(wn&&se.throws)ye=wn(ye);else try{ye=wn(ye)}catch(Bi){return{state:"parsererror",error:wn?Bi:"No conversion from "+Or+" to "+Qt}}}}return{state:"success",data:ye}}_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:rr.href,type:"GET",isLocal:jo.test(rr.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ja,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(se,ye){return ye?za(za(se,_.ajaxSettings),ye):za(_.ajaxSettings,se)},ajaxPrefilter:wi(wr),ajaxTransport:wi(qi),ajax:function(se,ye){typeof se=="object"&&(ye=se,se=void 0),ye=ye||{};var Xe,yt,Wt,Qt,wn,fr,Or,Si,Fi,Bi,Ui=_.ajaxSetup({},ye),vi=Ui.context||Ui,Xa=Ui.context&&(vi.nodeType||vi.jquery)?_(vi):_.event,Ko=_.Deferred(),So=_.Callbacks("once memory"),Lo=Ui.statusCode||{},us={},Ee={},Y="canceled",z={readyState:0,getResponseHeader:function(le){var Le;if(Or){if(!Qt)for(Qt={};Le=Bo.exec(Wt);)Qt[Le[1].toLowerCase()+" "]=(Qt[Le[1].toLowerCase()+" "]||[]).concat(Le[2]);Le=Qt[le.toLowerCase()+" "]}return Le==null?null:Le.join(", ")},getAllResponseHeaders:function(){return Or?Wt:null},setRequestHeader:function(le,Le){return Or==null&&(le=Ee[le.toLowerCase()]=Ee[le.toLowerCase()]||le,us[le]=Le),this},overrideMimeType:function(le){return Or==null&&(Ui.mimeType=le),this},statusCode:function(le){var Le;if(le)if(Or)z.always(le[z.status]);else for(Le in le)Lo[Le]=[Lo[Le],le[Le]];return this},abort:function(le){var Le=le||Y;return Xe&&Xe.abort(Le),B(0,Le),this}};if(Ko.promise(z),Ui.url=((se||Ui.url||rr.href)+"").replace(Go,rr.protocol+"//"),Ui.type=ye.method||ye.type||Ui.method||Ui.type,Ui.dataTypes=(Ui.dataType||"*").toLowerCase().match(we)||[""],Ui.crossDomain==null){fr=R.createElement("a");try{fr.href=Ui.url,fr.href=fr.href,Ui.crossDomain=uo.protocol+"//"+uo.host!=fr.protocol+"//"+fr.host}catch{Ui.crossDomain=!0}}if(Ui.data&&Ui.processData&&typeof Ui.data!="string"&&(Ui.data=_.param(Ui.data,Ui.traditional)),ai(wr,Ui,ye,z),Or)return z;Si=_.event&&Ui.global,Si&&_.active++===0&&_.event.trigger("ajaxStart"),Ui.type=Ui.type.toUpperCase(),Ui.hasContent=!Jo.test(Ui.type),yt=Ui.url.replace(to,""),Ui.hasContent?Ui.data&&Ui.processData&&(Ui.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Ui.data=Ui.data.replace(Da,"+")):(Bi=Ui.url.slice(yt.length),Ui.data&&(Ui.processData||typeof Ui.data=="string")&&(yt+=(Ir.test(yt)?"&":"?")+Ui.data,delete Ui.data),Ui.cache===!1&&(yt=yt.replace(ao,"$1"),Bi=(Ir.test(yt)?"&":"?")+"_="+Mr.guid+++Bi),Ui.url=yt+Bi),Ui.ifModified&&(_.lastModified[yt]&&z.setRequestHeader("If-Modified-Since",_.lastModified[yt]),_.etag[yt]&&z.setRequestHeader("If-None-Match",_.etag[yt])),(Ui.data&&Ui.hasContent&&Ui.contentType!==!1||ye.contentType)&&z.setRequestHeader("Content-Type",Ui.contentType),z.setRequestHeader("Accept",Ui.dataTypes[0]&&Ui.accepts[Ui.dataTypes[0]]?Ui.accepts[Ui.dataTypes[0]]+(Ui.dataTypes[0]!=="*"?", "+ja+"; q=0.01":""):Ui.accepts["*"]);for(Fi in Ui.headers)z.setRequestHeader(Fi,Ui.headers[Fi]);if(Ui.beforeSend&&(Ui.beforeSend.call(vi,z,Ui)===!1||Or))return z.abort();if(Y="abort",So.add(Ui.complete),z.done(Ui.success),z.fail(Ui.error),Xe=ai(qi,Ui,ye,z),!Xe)B(-1,"No Transport");else{if(z.readyState=1,Si&&Xa.trigger("ajaxSend",[z,Ui]),Or)return z;Ui.async&&Ui.timeout>0&&(wn=s.setTimeout(function(){z.abort("timeout")},Ui.timeout));try{Or=!1,Xe.send(us,B)}catch(le){if(Or)throw le;B(-1,le)}}function B(le,Le,Je,Ct){var Vt,bn,Hn,br,ei,mi=Le;Or||(Or=!0,wn&&s.clearTimeout(wn),Xe=void 0,Wt=Ct||"",z.readyState=le>0?4:0,Vt=le>=200&&le<300||le===304,Je&&(br=Mt(Ui,z,Je)),!Vt&&_.inArray("script",Ui.dataTypes)>-1&&_.inArray("json",Ui.dataTypes)<0&&(Ui.converters["text script"]=function(){}),br=Gn(Ui,br,z,Vt),Vt?(Ui.ifModified&&(ei=z.getResponseHeader("Last-Modified"),ei&&(_.lastModified[yt]=ei),ei=z.getResponseHeader("etag"),ei&&(_.etag[yt]=ei)),le===204||Ui.type==="HEAD"?mi="nocontent":le===304?mi="notmodified":(mi=br.state,bn=br.data,Hn=br.error,Vt=!Hn)):(Hn=mi,(le||!mi)&&(mi="error",le<0&&(le=0))),z.status=le,z.statusText=(Le||mi)+"",Vt?Ko.resolveWith(vi,[bn,mi,z]):Ko.rejectWith(vi,[z,mi,Hn]),z.statusCode(Lo),Lo=void 0,Si&&Xa.trigger(Vt?"ajaxSuccess":"ajaxError",[z,Ui,Vt?bn:Hn]),So.fireWith(vi,[z,mi]),Si&&(Xa.trigger("ajaxComplete",[z,Ui]),--_.active||_.event.trigger("ajaxStop")))}return z},getJSON:function(se,ye,Xe){return _.get(se,ye,Xe,"json")},getScript:function(se,ye){return _.get(se,void 0,ye,"script")}}),_.each(["get","post"],function(se,ye){_[ye]=function(Xe,yt,Wt,Qt){return x(yt)&&(Qt=Qt||Wt,Wt=yt,yt=void 0),_.ajax(_.extend({url:Xe,type:ye,dataType:Qt,data:yt,success:Wt},_.isPlainObject(Xe)&&Xe))}}),_.ajaxPrefilter(function(se){var ye;for(ye in se.headers)ye.toLowerCase()==="content-type"&&(se.contentType=se.headers[ye]||"")}),_._evalUrl=function(se,ye,Xe){return _.ajax({url:se,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(yt){_.globalEval(yt,ye,Xe)}})},_.fn.extend({wrapAll:function(se){var ye;return this[0]&&(x(se)&&(se=se.call(this[0])),ye=_(se,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&ye.insertBefore(this[0]),ye.map(function(){for(var Xe=this;Xe.firstElementChild;)Xe=Xe.firstElementChild;return Xe}).append(this)),this},wrapInner:function(se){return x(se)?this.each(function(ye){_(this).wrapInner(se.call(this,ye))}):this.each(function(){var ye=_(this),Xe=ye.contents();Xe.length?Xe.wrapAll(se):ye.append(se)})},wrap:function(se){var ye=x(se);return this.each(function(Xe){_(this).wrapAll(ye?se.call(this,Xe):se)})},unwrap:function(se){return this.parent(se).not("body").each(function(){_(this).replaceWith(this.childNodes)}),this}}),_.expr.pseudos.hidden=function(se){return!_.expr.pseudos.visible(se)},_.expr.pseudos.visible=function(se){return!!(se.offsetWidth||se.offsetHeight||se.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new s.XMLHttpRequest}catch{}};var qn={0:200,1223:204},Fr=_.ajaxSettings.xhr();w.cors=!!Fr&&"withCredentials"in Fr,w.ajax=Fr=!!Fr,_.ajaxTransport(function(se){var ye,Xe;if(w.cors||Fr&&!se.crossDomain)return{send:function(yt,Wt){var Qt,wn=se.xhr();if(wn.open(se.type,se.url,se.async,se.username,se.password),se.xhrFields)for(Qt in se.xhrFields)wn[Qt]=se.xhrFields[Qt];se.mimeType&&wn.overrideMimeType&&wn.overrideMimeType(se.mimeType),!se.crossDomain&&!yt["X-Requested-With"]&&(yt["X-Requested-With"]="XMLHttpRequest");for(Qt in yt)wn.setRequestHeader(Qt,yt[Qt]);ye=function(fr){return function(){ye&&(ye=Xe=wn.onload=wn.onerror=wn.onabort=wn.ontimeout=wn.onreadystatechange=null,fr==="abort"?wn.abort():fr==="error"?typeof wn.status!="number"?Wt(0,"error"):Wt(wn.status,wn.statusText):Wt(qn[wn.status]||wn.status,wn.statusText,(wn.responseType||"text")!=="text"||typeof wn.responseText!="string"?{binary:wn.response}:{text:wn.responseText},wn.getAllResponseHeaders()))}},wn.onload=ye(),Xe=wn.onerror=wn.ontimeout=ye("error"),wn.onabort!==void 0?wn.onabort=Xe:wn.onreadystatechange=function(){wn.readyState===4&&s.setTimeout(function(){ye&&Xe()})},ye=ye("abort");try{wn.send(se.hasContent&&se.data||null)}catch(fr){if(ye)throw fr}},abort:function(){ye&&ye()}}}),_.ajaxPrefilter(function(se){se.crossDomain&&(se.contents.script=!1)}),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(se){return _.globalEval(se),se}}}),_.ajaxPrefilter("script",function(se){se.cache===void 0&&(se.cache=!1),se.crossDomain&&(se.type="GET")}),_.ajaxTransport("script",function(se){if(se.crossDomain||se.scriptAttrs){var ye,Xe;return{send:function(yt,Wt){ye=_("<script>").attr(se.scriptAttrs||{}).prop({charset:se.scriptCharset,src:se.url}).on("load error",Xe=function(Qt){ye.remove(),Xe=null,Qt&&Wt(Qt.type==="error"?404:200,Qt.type)}),R.head.appendChild(ye[0])},abort:function(){Xe&&Xe()}}}});var Ei=[],ii=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var se=Ei.pop()||_.expando+"_"+Mr.guid++;return this[se]=!0,se}}),_.ajaxPrefilter("json jsonp",function(se,ye,Xe){var yt,Wt,Qt,wn=se.jsonp!==!1&&(ii.test(se.url)?"url":typeof se.data=="string"&&(se.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ii.test(se.data)&&"data");if(wn||se.dataTypes[0]==="jsonp")return yt=se.jsonpCallback=x(se.jsonpCallback)?se.jsonpCallback():se.jsonpCallback,wn?se[wn]=se[wn].replace(ii,"$1"+yt):se.jsonp!==!1&&(se.url+=(Ir.test(se.url)?"&":"?")+se.jsonp+"="+yt),se.converters["script json"]=function(){return Qt||_.error(yt+" was not called"),Qt[0]},se.dataTypes[0]="json",Wt=s[yt],s[yt]=function(){Qt=arguments},Xe.always(function(){Wt===void 0?_(s).removeProp(yt):s[yt]=Wt,se[yt]&&(se.jsonpCallback=ye.jsonpCallback,Ei.push(yt)),Qt&&x(Wt)&&Wt(Qt[0]),Qt=Wt=void 0}),"script"}),w.createHTMLDocument=function(){var se=R.implementation.createHTMLDocument("").body;return se.innerHTML="<form></form><form></form>",se.childNodes.length===2}(),_.parseHTML=function(se,ye,Xe){if(typeof se!="string")return[];typeof ye=="boolean"&&(Xe=ye,ye=!1);var yt,Wt,Qt;return ye||(w.createHTMLDocument?(ye=R.implementation.createHTMLDocument(""),yt=ye.createElement("base"),yt.href=R.location.href,ye.head.appendChild(yt)):ye=R),Wt=G.exec(se),Qt=!Xe&&[],Wt?[ye.createElement(Wt[1])]:(Wt=Rt([se],ye,Qt),Qt&&Qt.length&&_(Qt).remove(),_.merge([],Wt.childNodes))},_.fn.load=function(se,ye,Xe){var yt,Wt,Qt,wn=this,fr=se.indexOf(" ");return fr>-1&&(yt=Ur(se.slice(fr)),se=se.slice(0,fr)),x(ye)?(Xe=ye,ye=void 0):ye&&typeof ye=="object"&&(Wt="POST"),wn.length>0&&_.ajax({url:se,type:Wt||"GET",dataType:"html",data:ye}).done(function(Or){Qt=arguments,wn.html(yt?_("<div>").append(_.parseHTML(Or)).find(yt):Or)}).always(Xe&&function(Or,Si){wn.each(function(){Xe.apply(this,Qt||[Or.responseText,Si,Or])})}),this},_.expr.pseudos.animated=function(se){return _.grep(_.timers,function(ye){return se===ye.elem}).length},_.offset={setOffset:function(se,ye,Xe){var yt,Wt,Qt,wn,fr,Or,Si,Fi=_.css(se,"position"),Bi=_(se),Ui={};Fi==="static"&&(se.style.position="relative"),fr=Bi.offset(),Qt=_.css(se,"top"),Or=_.css(se,"left"),Si=(Fi==="absolute"||Fi==="fixed")&&(Qt+Or).indexOf("auto")>-1,Si?(yt=Bi.position(),wn=yt.top,Wt=yt.left):(wn=parseFloat(Qt)||0,Wt=parseFloat(Or)||0),x(ye)&&(ye=ye.call(se,Xe,_.extend({},fr))),ye.top!=null&&(Ui.top=ye.top-fr.top+wn),ye.left!=null&&(Ui.left=ye.left-fr.left+Wt),"using"in ye?ye.using.call(se,Ui):Bi.css(Ui)}},_.fn.extend({offset:function(se){if(arguments.length)return se===void 0?this:this.each(function(Wt){_.offset.setOffset(this,se,Wt)});var ye,Xe,yt=this[0];if(yt)return yt.getClientRects().length?(ye=yt.getBoundingClientRect(),Xe=yt.ownerDocument.defaultView,{top:ye.top+Xe.pageYOffset,left:ye.left+Xe.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var se,ye,Xe,yt=this[0],Wt={top:0,left:0};if(_.css(yt,"position")==="fixed")ye=yt.getBoundingClientRect();else{for(ye=this.offset(),Xe=yt.ownerDocument,se=yt.offsetParent||Xe.documentElement;se&&(se===Xe.body||se===Xe.documentElement)&&_.css(se,"position")==="static";)se=se.parentNode;se&&se!==yt&&se.nodeType===1&&(Wt=_(se).offset(),Wt.top+=_.css(se,"borderTopWidth",!0),Wt.left+=_.css(se,"borderLeftWidth",!0))}return{top:ye.top-Wt.top-_.css(yt,"marginTop",!0),left:ye.left-Wt.left-_.css(yt,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var se=this.offsetParent;se&&_.css(se,"position")==="static";)se=se.offsetParent;return se||mt})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(se,ye){var Xe=ye==="pageYOffset";_.fn[se]=function(yt){return Me(this,function(Wt,Qt,wn){var fr;if(P(Wt)?fr=Wt:Wt.nodeType===9&&(fr=Wt.defaultView),wn===void 0)return fr?fr[ye]:Wt[Qt];fr?fr.scrollTo(Xe?fr.pageXOffset:wn,Xe?wn:fr.pageYOffset):Wt[Qt]=wn},se,yt,arguments.length)}}),_.each(["top","left"],function(se,ye){_.cssHooks[ye]=dn(w.pixelPosition,function(Xe,yt){if(yt)return yt=Tt(Xe,ye),Ft.test(yt)?_(Xe).position()[ye]+"px":yt})}),_.each({Height:"height",Width:"width"},function(se,ye){_.each({padding:"inner"+se,content:ye,"":"outer"+se},function(Xe,yt){_.fn[yt]=function(Wt,Qt){var wn=arguments.length&&(Xe||typeof Wt!="boolean"),fr=Xe||(Wt===!0||Qt===!0?"margin":"border");return Me(this,function(Or,Si,Fi){var Bi;return P(Or)?yt.indexOf("outer")===0?Or["inner"+se]:Or.document.documentElement["client"+se]:Or.nodeType===9?(Bi=Or.documentElement,Math.max(Or.body["scroll"+se],Bi["scroll"+se],Or.body["offset"+se],Bi["offset"+se],Bi["client"+se])):Fi===void 0?_.css(Or,Si,fr):_.style(Or,Si,Fi,fr)},ye,wn?Wt:void 0,wn)}})}),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(se,ye){_.fn[ye]=function(Xe){return this.on(ye,Xe)}}),_.fn.extend({bind:function(se,ye,Xe){return this.on(se,null,ye,Xe)},unbind:function(se,ye){return this.off(se,null,ye)},delegate:function(se,ye,Xe,yt){return this.on(ye,se,Xe,yt)},undelegate:function(se,ye,Xe){return arguments.length===1?this.off(se,"**"):this.off(ye,se||"**",Xe)},hover:function(se,ye){return this.mouseenter(se).mouseleave(ye||se)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(se,ye){_.fn[ye]=function(Xe,yt){return arguments.length>0?this.on(ye,null,Xe,yt):this.trigger(ye)}});var Wi=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;_.proxy=function(se,ye){var Xe,yt,Wt;if(typeof ye=="string"&&(Xe=se[ye],ye=se,se=Xe),!!x(se))return yt=h.call(arguments,2),Wt=function(){return se.apply(ye||this,yt.concat(h.call(arguments)))},Wt.guid=se.guid=se.guid||_.guid++,Wt},_.holdReady=function(se){se?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=j,_.isFunction=x,_.isWindow=P,_.camelCase=It,_.type=I,_.now=Date.now,_.isNumeric=function(se){var ye=_.type(se);return(ye==="number"||ye==="string")&&!isNaN(se-parseFloat(se))},_.trim=function(se){return se==null?"":(se+"").replace(Wi,"$1")},t=[],i=function(){return _}.apply(c,t),i!==void 0&&(C.exports=i);var Ya=s.jQuery,qa=s.$;return _.noConflict=function(se){return s.$===_&&(s.$=qa),se&&s.jQuery===_&&(s.jQuery=Ya),_},typeof u>"u"&&(s.jQuery=s.$=_),_})},85885:(C,c)=>{"use strict";var t={b:"\b",f:"\f",n:` `,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},i="a".charCodeAt();c.parse=function(S,w,x){var P={},R=0,T=0,A=0,I=x&&x.bigint&&typeof BigInt<"u";return{data:N("",!0),pointers:P};function N(G,te){K();var ie;$(G,"value");var fe=Z();switch(fe){case"t":X("rue"),ie=!0;break;case"f":X("alse"),ie=!1;break;case"n":X("ull"),ie=null;break;case'"':ie=_();break;case"[":ie=j(G);break;case"{":ie=re(G);break;default:J(),"-0123456789".indexOf(fe)>=0?ie=W():V()}return $(G,"valueEnd"),K(),te&&A<S.length&&V(),ie}function K(){e:for(;A<S.length;){switch(S[A]){case" ":T++;break;case" ":T+=4;break;case"\r":T=0;break;case` `:T=0,R++;break;default:break e}A++}}function _(){for(var G="",te;te=Z(),te!='"';)te=="\\"?(te=Z(),te in t?G+=t[te]:te=="u"?G+=q():pe()):G+=te;return G}function W(){var G="",te=!0;S[A]=="-"&&(G+=Z()),G+=S[A]=="0"?Z():L(),S[A]=="."&&(G+=Z()+L(),te=!1),(S[A]=="e"||S[A]=="E")&&(G+=Z(),(S[A]=="+"||S[A]=="-")&&(G+=Z()),G+=L(),te=!1);var ie=+G;return I&&te&&(ie>Number.MAX_SAFE_INTEGER||ie<Number.MIN_SAFE_INTEGER)?BigInt(G):ie}function j(G){K();var te=[],ie=0;if(Z()=="]")return te;for(J();;){var fe=G+"/"+ie;te.push(N(fe)),K();var Se=Z();if(Se=="]")break;Se!=","&&pe(),K(),ie++}return te}function re(G){K();var te={};if(Z()=="}")return te;for(J();;){var ie=F();Z()!='"'&&pe();var fe=_(),Se=G+"/"+E(fe);k(Se,"key",ie),$(Se,"keyEnd"),K(),Z()!=":"&&pe(),K(),te[fe]=N(Se),K();var he=Z();if(he=="}")break;he!=","&&pe(),K()}return te}function X(G){for(var te=0;te<G.length;te++)Z()!==G[te]&&pe()}function Z(){ce();var G=S[A];return A++,T++,G}function J(){A--,T--}function q(){for(var G=4,te=0;G--;){te<<=4;var ie=Z().toLowerCase();ie>="a"&&ie<="f"?te+=ie.charCodeAt()-i+10:ie>="0"&&ie<="9"?te+=+ie:pe()}return String.fromCharCode(te)}function L(){for(var G="";S[A]>="0"&&S[A]<="9";)G+=Z();if(G.length)return G;ce(),V()}function $(G,te){k(G,te,F())}function k(G,te,ie){P[G]=P[G]||{},P[G][te]=ie}function F(){return{line:R,column:T,pos:A}}function V(){throw new SyntaxError("Unexpected token "+S[A]+" in JSON at position "+A)}function pe(){J(),V()}function ce(){if(A>=S.length)throw new SyntaxError("Unexpected end of JSON input")}},c.stringify=function(S,w,x){if(!u(S))return;var P=0,R,T,A=typeof x=="object"?x.space:x;switch(typeof A){case"number":var I=A>10?10:A<0?0:Math.floor(A);A=I&&k(I," "),R=I,T=I;break;case"string":A=A.slice(0,10),R=0,T=0;for(var N=0;N<A.length;N++){var K=A[N];switch(K){case" ":T++;break;case" ":T+=4;break;case"\r":T=0;break;case` `:T=0,P++;break;default:throw new Error("whitespace characters not allowed in JSON")}R++}break;default:A=void 0}var _="",W={},j=0,re=0,X=0,Z=x&&x.es6&&typeof Map=="function";return J(S,0,""),{json:_,pointers:W};function J(F,V,pe){switch($(pe,"value"),typeof F){case"number":case"bigint":case"boolean":q(""+F);break;case"string":q(g(F));break;case"object":F===null?q("null"):typeof F.toJSON=="function"?q(g(F.toJSON())):Array.isArray(F)?ce():Z?F.constructor.BYTES_PER_ELEMENT?ce():F instanceof Map?te():F instanceof Set?te(!0):G():G()}$(pe,"valueEnd");function ce(){if(F.length){q("[");for(var ie=V+1,fe=0;fe<F.length;fe++){fe&&q(","),L(ie);var Se=u(F[fe])?F[fe]:null,he=pe+"/"+fe;J(Se,ie,he)}L(V),q("]")}else q("[]")}function G(){var ie=Object.keys(F);if(ie.length){q("{");for(var fe=V+1,Se=0;Se<ie.length;Se++){var he=ie[Se],me=F[he];if(u(me)){Se&&q(",");var _e=pe+"/"+E(he);L(fe),$(_e,"key"),q(g(he)),$(_e,"keyEnd"),q(":"),A&&q(" "),J(me,fe,_e)}}L(V),q("}")}else q("{}")}function te(ie){if(F.size){q("{");for(var fe=V+1,Se=!0,he=F.entries(),me=he.next();!me.done;){var _e=me.value,we=_e[0],Ge=ie?!0:_e[1];if(u(Ge)){Se||q(","),Se=!1;var ht=pe+"/"+E(we);L(fe),$(ht,"key"),q(g(we)),$(ht,"keyEnd"),q(":"),A&&q(" "),J(Ge,fe,ht)}me=he.next()}L(V),q("}")}else q("{}")}}function q(F){re+=F.length,X+=F.length,_+=F}function L(F){if(A){for(_+=` `+k(F,A),j++,re=0;F--;)P?(j+=P,re=T):re+=T,X+=R;X+=1}}function $(F,V){W[F]=W[F]||{},W[F][V]={line:j,column:re,pos:X}}function k(F,V){return Array(F+1).join(V)}};var s=["number","bigint","boolean","string","object"];function u(S){return s.indexOf(typeof S)>=0}var v=/"|\\/g,l=/[\b]/g,h=/\f/g,p=/\n/g,d=/\r/g,f=/\t/g;function g(S){return S=S.replace(v,"\\$&").replace(h,"\\f").replace(l,"\\b").replace(p,"\\n").replace(d,"\\r").replace(f,"\\t"),'"'+S+'"'}var y=/~/g,b=/\//g;function E(S){return S.replace(y,"~0").replace(b,"~1")}},19979:(C,c,t)=>{var i=t(97714),s=t(45590),u=i(s,"DataView");C.exports=u},44442:(C,c,t)=>{var i=t(68883),s=t(94073),u=t(70276),v=t(68186),l=t(82846);function h(p){var d=-1,f=p==null?0:p.length;for(this.clear();++d<f;){var g=p[d];this.set(g[0],g[1])}}h.prototype.clear=i,h.prototype.delete=s,h.prototype.get=u,h.prototype.has=v,h.prototype.set=l,C.exports=h},11100:(C,c,t)=>{var i=t(60227),s=t(57677),u=t(91401),v=t(39091),l=t(56544);function h(p){var d=-1,f=p==null?0:p.length;for(this.clear();++d<f;){var g=p[d];this.set(g[0],g[1])}}h.prototype.clear=i,h.prototype.delete=s,h.prototype.get=u,h.prototype.has=v,h.prototype.set=l,C.exports=h},66332:(C,c,t)=>{var i=t(97714),s=t(45590),u=i(s,"Map");C.exports=u},78912:(C,c,t)=>{var i=t(51036),s=t(94066),u=t(24178),v=t(84655),l=t(97661);function h(p){var d=-1,f=p==null?0:p.length;for(this.clear();++d<f;){var g=p[d];this.set(g[0],g[1])}}h.prototype.clear=i,h.prototype.delete=s,h.prototype.get=u,h.prototype.has=v,h.prototype.set=l,C.exports=h},32648:(C,c,t)=>{var i=t(97714),s=t(45590),u=i(s,"Promise");C.exports=u},6876:(C,c,t)=>{var i=t(97714),s=t(45590),u=i(s,"Set");C.exports=u},73925:(C,c,t)=>{var i=t(78912),s=t(57441),u=t(33406);function v(l){var h=-1,p=l==null?0:l.length;for(this.__data__=new i;++h<p;)this.add(l[h])}v.prototype.add=v.prototype.push=s,v.prototype.has=u,C.exports=v},60366:(C,c,t)=>{var i=t(11100),s=t(91999),u=t(52006),v=t(50849),l=t(78715),h=t(47515);function p(d){var f=this.__data__=new i(d);this.size=f.size}p.prototype.clear=s,p.prototype.delete=u,p.prototype.get=v,p.prototype.has=l,p.prototype.set=h,C.exports=p},34796:(C,c,t)=>{var i=t(45590),s=i.Symbol;C.exports=s},26823:(C,c,t)=>{var i=t(45590),s=i.Uint8Array;C.exports=s},51952:(C,c,t)=>{var i=t(97714),s=t(45590),u=i(s,"WeakMap");C.exports=u},48810:C=>{function c(t,i,s){switch(s.length){case 0:return t.call(i);case 1:return t.call(i,s[0]);case 2:return t.call(i,s[0],s[1]);case 3:return t.call(i,s[0],s[1],s[2])}return t.apply(i,s)}C.exports=c},17960:C=>{function c(t,i,s,u){for(var v=-1,l=t==null?0:t.length;++v<l;){var h=t[v];i(u,h,s(h),t)}return u}C.exports=c},26771:C=>{function c(t,i){for(var s=-1,u=t==null?0:t.length;++s<u&&i(t[s],s,t)!==!1;);return t}C.exports=c},24965:C=>{function c(t,i){for(var s=-1,u=t==null?0:t.length,v=0,l=[];++s<u;){var h=t[s];i(h,s,t)&&(l[v++]=h)}return l}C.exports=c},26609:(C,c,t)=>{var i=t(94145);function s(u,v){var l=u==null?0:u.length;return!!l&&i(u,v,0)>-1}C.exports=s},26097:C=>{function c(t,i,s){for(var u=-1,v=t==null?0:t.length;++u<v;)if(s(i,t[u]))return!0;return!1}C.exports=c},9242:(C,c,t)=>{var i=t(46409),s=t(55079),u=t(1403),v=t(32518),l=t(88198),h=t(66377),p=Object.prototype,d=p.hasOwnProperty;function f(g,y){var b=u(g),E=!b&&s(g),S=!b&&!E&&v(g),w=!b&&!E&&!S&&h(g),x=b||E||S||w,P=x?i(g.length,String):[],R=P.length;for(var T in g)(y||d.call(g,T))&&!(x&&(T=="length"||S&&(T=="offset"||T=="parent")||w&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||l(T,R)))&&P.push(T);return P}C.exports=f},50357:C=>{function c(t,i){for(var s=-1,u=t==null?0:t.length,v=Array(u);++s<u;)v[s]=i(t[s],s,t);return v}C.exports=c},88630:C=>{function c(t,i){for(var s=-1,u=i.length,v=t.length;++s<u;)t[v+s]=i[s];return t}C.exports=c},69316:C=>{function c(t,i){for(var s=-1,u=t==null?0:t.length;++s<u;)if(i(t[s],s,t))return!0;return!1}C.exports=c},34438:(C,c,t)=>{var i=t(29537),s=t(50656),u=Object.prototype,v=u.hasOwnProperty;function l(h,p,d){var f=h[p];(!(v.call(h,p)&&s(f,d))||d===void 0&&!(p in h))&&i(h,p,d)}C.exports=l},24970:(C,c,t)=>{var i=t(50656);function s(u,v){for(var l=u.length;l--;)if(i(u[l][0],v))return l;return-1}C.exports=s},47602:(C,c,t)=>{var i=t(75619);function s(u,v,l,h){return i(u,function(p,d,f){v(h,p,l(p),f)}),h}C.exports=s},93177:(C,c,t)=>{var i=t(65597),s=t(52116);function u(v,l){return v&&i(l,s(l),v)}C.exports=u},25778:(C,c,t)=>{var i=t(65597),s=t(86806);function u(v,l){return v&&i(l,s(l),v)}C.exports=u},29537:(C,c,t)=>{var i=t(46586);function s(u,v,l){v=="__proto__"&&i?i(u,v,{configurable:!0,enumerable:!0,value:l,writable:!0}):u[v]=l}C.exports=s},55262:C=>{function c(t,i,s){return t===t&&(s!==void 0&&(t=t<=s?t:s),i!==void 0&&(t=t>=i?t:i)),t}C.exports=c},59546:(C,c,t)=>{var i=t(60366),s=t(26771),u=t(34438),v=t(93177),l=t(25778),h=t(97187),p=t(57590),d=t(14943),f=t(98225),g=t(38300),y=t(47433),b=t(36723),E=t(68713),S=t(20427),w=t(59423),x=t(1403),P=t(32518),R=t(22830),T=t(57990),A=t(55450),I=t(52116),N=t(86806),K=1,_=2,W=4,j="[object Arguments]",re="[object Array]",X="[object Boolean]",Z="[object Date]",J="[object Error]",q="[object Function]",L="[object GeneratorFunction]",$="[object Map]",k="[object Number]",F="[object Object]",V="[object RegExp]",pe="[object Set]",ce="[object String]",G="[object Symbol]",te="[object WeakMap]",ie="[object ArrayBuffer]",fe="[object DataView]",Se="[object Float32Array]",he="[object Float64Array]",me="[object Int8Array]",_e="[object Int16Array]",we="[object Int32Array]",Ge="[object Uint8Array]",ht="[object Uint8ClampedArray]",nt="[object Uint16Array]",Re="[object Uint32Array]",ue={};ue[j]=ue[re]=ue[ie]=ue[fe]=ue[X]=ue[Z]=ue[Se]=ue[he]=ue[me]=ue[_e]=ue[we]=ue[$]=ue[k]=ue[F]=ue[V]=ue[pe]=ue[ce]=ue[G]=ue[Ge]=ue[ht]=ue[nt]=ue[Re]=!0,ue[J]=ue[q]=ue[te]=!1;function ae(ve,Me,Ye,qe,At,It){var Ce,Ae=Me&K,$e=Me&_,tt=Me&W;if(Ye&&(Ce=At?Ye(ve,qe,At,It):Ye(ve)),Ce!==void 0)return Ce;if(!T(ve))return ve;var ke=x(ve);if(ke){if(Ce=E(ve),!Ae)return p(ve,Ce)}else{var Oe=b(ve),je=Oe==q||Oe==L;if(P(ve))return h(ve,Ae);if(Oe==F||Oe==j||je&&!At){if(Ce=$e||je?{}:w(ve),!Ae)return $e?f(ve,l(Ce,ve)):d(ve,v(Ce,ve))}else{if(!ue[Oe])return At?ve:{};Ce=S(ve,Oe,Ae)}}It||(It=new i);var Et=It.get(ve);if(Et)return Et;It.set(ve,Ce),A(ve)?ve.forEach(function(Ne){Ce.add(ae(Ne,Me,Ye,Ne,ve,It))}):R(ve)&&ve.forEach(function(Ne,mt){Ce.set(mt,ae(Ne,Me,Ye,mt,ve,It))});var ct=tt?$e?y:g:$e?N:I,ut=ke?void 0:ct(ve);return s(ut||ve,function(Ne,mt){ut&&(mt=Ne,Ne=ve[mt]),u(Ce,mt,ae(Ne,Me,Ye,mt,ve,It))}),Ce}C.exports=ae},74425:(C,c,t)=>{var i=t(57990),s=Object.create,u=function(){function v(){}return function(l){if(!i(l))return{};if(s)return s(l);v.prototype=l;var h=new v;return v.prototype=void 0,h}}();C.exports=u},75619:(C,c,t)=>{var i=t(34340),s=t(80325),u=s(i);C.exports=u},62191:C=>{function c(t,i,s,u){for(var v=t.length,l=s+(u?1:-1);u?l--:++l<v;)if(i(t[l],l,t))return l;return-1}C.exports=c},28207:(C,c,t)=>{var i=t(88630),s=t(16029);function u(v,l,h,p,d){var f=-1,g=v.length;for(h||(h=s),d||(d=[]);++f<g;){var y=v[f];l>0&&h(y)?l>1?u(y,l-1,h,p,d):i(d,y):p||(d[d.length]=y)}return d}C.exports=u},22417:(C,c,t)=>{var i=t(82683),s=i();C.exports=s},34340:(C,c,t)=>{var i=t(22417),s=t(52116);function u(v,l){return v&&i(v,l,s)}C.exports=u},65040:(C,c,t)=>{var i=t(43161),s=t(26313);function u(v,l){l=i(l,v);for(var h=0,p=l.length;v!=null&&h<p;)v=v[s(l[h++])];return h&&h==p?v:void 0}C.exports=u},75918:(C,c,t)=>{var i=t(88630),s=t(1403);function u(v,l,h){var p=l(v);return s(v)?p:i(p,h(v))}C.exports=u},87490:(C,c,t)=>{var i=t(34796),s=t(50795),u=t(22081),v="[object Null]",l="[object Undefined]",h=i?i.toStringTag:void 0;function p(d){return d==null?d===void 0?l:v:h&&h in Object(d)?s(d):u(d)}C.exports=p},68562:C=>{var c=Object.prototype,t=c.hasOwnProperty;function i(s,u){return s!=null&&t.call(s,u)}C.exports=i},31315:C=>{function c(t,i){return t!=null&&i in Object(t)}C.exports=c},94145:(C,c,t)=>{var i=t(62191),s=t(93075),u=t(14053);function v(l,h,p){return h===h?u(l,h,p):i(l,s,p)}C.exports=v},57211:(C,c,t)=>{var i=t(87490),s=t(92395),u="[object Arguments]";function v(l){return s(l)&&i(l)==u}C.exports=v},15907:(C,c,t)=>{var i=t(94390),s=t(92395);function u(v,l,h,p,d){return v===l?!0:v==null||l==null||!s(v)&&!s(l)?v!==v&&l!==l:i(v,l,h,p,u,d)}C.exports=u},94390:(C,c,t)=>{var i=t(60366),s=t(72276),u=t(46238),v=t(25909),l=t(36723),h=t(1403),p=t(32518),d=t(66377),f=1,g="[object Arguments]",y="[object Array]",b="[object Object]",E=Object.prototype,S=E.hasOwnProperty;function w(x,P,R,T,A,I){var N=h(x),K=h(P),_=N?y:l(x),W=K?y:l(P);_=_==g?b:_,W=W==g?b:W;var j=_==b,re=W==b,X=_==W;if(X&&p(x)){if(!p(P))return!1;N=!0,j=!1}if(X&&!j)return I||(I=new i),N||d(x)?s(x,P,R,T,A,I):u(x,P,_,R,T,A,I);if(!(R&f)){var Z=j&&S.call(x,"__wrapped__"),J=re&&S.call(P,"__wrapped__");if(Z||J){var q=Z?x.value():x,L=J?P.value():P;return I||(I=new i),A(q,L,R,T,I)}}return X?(I||(I=new i),v(x,P,R,T,A,I)):!1}C.exports=w},39814:(C,c,t)=>{var i=t(36723),s=t(92395),u="[object Map]";function v(l){return s(l)&&i(l)==u}C.exports=v},29329:(C,c,t)=>{var i=t(60366),s=t(15907),u=1,v=2;function l(h,p,d,f){var g=d.length,y=g,b=!f;if(h==null)return!y;for(h=Object(h);g--;){var E=d[g];if(b&&E[2]?E[1]!==h[E[0]]:!(E[0]in h))return!1}for(;++g<y;){E=d[g];var S=E[0],w=h[S],x=E[1];if(b&&E[2]){if(w===void 0&&!(S in h))return!1}else{var P=new i;if(f)var R=f(w,x,S,h,p,P);if(!(R===void 0?s(x,w,u|v,f,P):R))return!1}}return!0}C.exports=l},93075:C=>{function c(t){return t!==t}C.exports=c},68125:(C,c,t)=>{var i=t(32095),s=t(76620),u=t(57990),v=t(70609),l=/[\\^$.*+?()[\]{}|]/g,h=/^\[object .+?Constructor\]$/,p=Function.prototype,d=Object.prototype,f=p.toString,g=d.hasOwnProperty,y=RegExp("^"+f.call(g).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(E){if(!u(E)||s(E))return!1;var S=i(E)?y:h;return S.test(v(E))}C.exports=b},13406:(C,c,t)=>{var i=t(36723),s=t(92395),u="[object Set]";function v(l){return s(l)&&i(l)==u}C.exports=v},24116:(C,c,t)=>{var i=t(87490),s=t(63115),u=t(92395),v="[object Arguments]",l="[object Array]",h="[object Boolean]",p="[object Date]",d="[object Error]",f="[object Function]",g="[object Map]",y="[object Number]",b="[object Object]",E="[object RegExp]",S="[object Set]",w="[object String]",x="[object WeakMap]",P="[object ArrayBuffer]",R="[object DataView]",T="[object Float32Array]",A="[object Float64Array]",I="[object Int8Array]",N="[object Int16Array]",K="[object Int32Array]",_="[object Uint8Array]",W="[object Uint8ClampedArray]",j="[object Uint16Array]",re="[object Uint32Array]",X={};X[T]=X[A]=X[I]=X[N]=X[K]=X[_]=X[W]=X[j]=X[re]=!0,X[v]=X[l]=X[P]=X[h]=X[R]=X[p]=X[d]=X[f]=X[g]=X[y]=X[b]=X[E]=X[S]=X[w]=X[x]=!1;function Z(J){return u(J)&&s(J.length)&&!!X[i(J)]}C.exports=Z},32667:(C,c,t)=>{var i=t(6343),s=t(45283),u=t(51658),v=t(1403),l=t(86348);function h(p){return typeof p=="function"?p:p==null?u:typeof p=="object"?v(p)?s(p[0],p[1]):i(p):l(p)}C.exports=h},76618:(C,c,t)=>{var i=t(22638),s=t(34747),u=Object.prototype,v=u.hasOwnProperty;function l(h){if(!i(h))return s(h);var p=[];for(var d in Object(h))v.call(h,d)&&d!="constructor"&&p.push(d);return p}C.exports=l},7697:(C,c,t)=>{var i=t(57990),s=t(22638),u=t(82051),v=Object.prototype,l=v.hasOwnProperty;function h(p){if(!i(p))return u(p);var d=s(p),f=[];for(var g in p)g=="constructor"&&(d||!l.call(p,g))||f.push(g);return f}C.exports=h},6343:(C,c,t)=>{var i=t(29329),s=t(47663),u=t(39699);function v(l){var h=s(l);return h.length==1&&h[0][2]?u(h[0][0],h[0][1]):function(p){return p===l||i(p,l,h)}}C.exports=v},45283:(C,c,t)=>{var i=t(15907),s=t(28999),u=t(82910),v=t(27801),l=t(40188),h=t(39699),p=t(26313),d=1,f=2;function g(y,b){return v(y)&&l(b)?h(p(y),b):function(E){var S=s(E,y);return S===void 0&&S===b?u(E,y):i(b,S,d|f)}}C.exports=g},62562:(C,c,t)=>{var i=t(98279),s=t(82910);function u(v,l){return i(v,l,function(h,p){return s(v,p)})}C.exports=u},98279:(C,c,t)=>{var i=t(65040),s=t(71203),u=t(43161);function v(l,h,p){for(var d=-1,f=h.length,g={};++d<f;){var y=h[d],b=i(l,y);p(b,y)&&s(g,u(y,l),b)}return g}C.exports=v},39067:C=>{function c(t){return function(i){return i?.[t]}}C.exports=c},24181:(C,c,t)=>{var i=t(65040);function s(u){return function(v){return i(v,u)}}C.exports=s},92325:C=>{var c=Math.ceil,t=Math.max;function i(s,u,v,l){for(var h=-1,p=t(c((u-s)/(v||1)),0),d=Array(p);p--;)d[l?p:++h]=s,s+=v;return d}C.exports=i},71203:(C,c,t)=>{var i=t(34438),s=t(43161),u=t(88198),v=t(57990),l=t(26313);function h(p,d,f,g){if(!v(p))return p;d=s(d,p);for(var y=-1,b=d.length,E=b-1,S=p;S!=null&&++y<b;){var w=l(d[y]),x=f;if(w==="__proto__"||w==="constructor"||w==="prototype")return p;if(y!=E){var P=S[w];x=g?g(P,w,S):void 0,x===void 0&&(x=v(P)?P:u(d[y+1])?[]:{})}i(S,w,x),S=S[w]}return p}C.exports=h},8834:(C,c,t)=>{var i=t(31219),s=t(46586),u=t(51658),v=s?function(l,h){return s(l,"toString",{configurable:!0,enumerable:!1,value:i(h),writable:!0})}:u;C.exports=v},11092:C=>{function c(t,i,s){var u=-1,v=t.length;i<0&&(i=-i>v?0:v+i),s=s>v?v:s,s<0&&(s+=v),v=i>s?0:s-i>>>0,i>>>=0;for(var l=Array(v);++u<v;)l[u]=t[u+i];return l}C.exports=c},46409:C=>{function c(t,i){for(var s=-1,u=Array(t);++s<t;)u[s]=i(s);return u}C.exports=c},18385:(C,c,t)=>{var i=t(34796),s=t(50357),u=t(1403),v=t(61826),l=1/0,h=i?i.prototype:void 0,p=h?h.toString:void 0;function d(f){if(typeof f=="string")return f;if(u(f))return s(f,d)+"";if(v(f))return p?p.call(f):"";var g=f+"";return g=="0"&&1/f==-l?"-0":g}C.exports=d},98202:(C,c,t)=>{var i=t(7276),s=/^\s+/;function u(v){return v&&v.slice(0,i(v)+1).replace(s,"")}C.exports=u},68347:C=>{function c(t){return function(i){return t(i)}}C.exports=c},95821:(C,c,t)=>{var i=t(73925),s=t(26609),u=t(26097),v=t(16301),l=t(8783),h=t(53121),p=200;function d(f,g,y){var b=-1,E=s,S=f.length,w=!0,x=[],P=x;if(y)w=!1,E=u;else if(S>=p){var R=g?null:l(f);if(R)return h(R);w=!1,E=v,P=new i}else P=g?[]:x;e:for(;++b<S;){var T=f[b],A=g?g(T):T;if(T=y||T!==0?T:0,w&&A===A){for(var I=P.length;I--;)if(P[I]===A)continue e;g&&P.push(A),x.push(T)}else E(P,A,y)||(P!==x&&P.push(A),x.push(T))}return x}C.exports=d},39012:(C,c,t)=>{var i=t(43161),s=t(13509),u=t(33912),v=t(26313);function l(h,p){return p=i(p,h),h=u(h,p),h==null||delete h[v(s(p))]}C.exports=l},16301:C=>{function c(t,i){return t.has(i)}C.exports=c},43161:(C,c,t)=>{var i=t(1403),s=t(27801),u=t(6736),v=t(5195);function l(h,p){return i(h)?h:s(h,p)?[h]:u(v(h))}C.exports=l},71784:(C,c,t)=>{var i=t(26823);function s(u){var v=new u.constructor(u.byteLength);return new i(v).set(new i(u)),v}C.exports=s},97187:(C,c,t)=>{C=t.nmd(C);var i=t(45590),s=c&&!c.nodeType&&c,u=s&&!0&&C&&!C.nodeType&&C,v=u&&u.exports===s,l=v?i.Buffer:void 0,h=l?l.allocUnsafe:void 0;function p(d,f){if(f)return d.slice();var g=d.length,y=h?h(g):new d.constructor(g);return d.copy(y),y}C.exports=p},85452:(C,c,t)=>{var i=t(71784);function s(u,v){var l=v?i(u.buffer):u.buffer;return new u.constructor(l,u.byteOffset,u.byteLength)}C.exports=s},7761:C=>{var c=/\w*$/;function t(i){var s=new i.constructor(i.source,c.exec(i));return s.lastIndex=i.lastIndex,s}C.exports=t},78548:(C,c,t)=>{var i=t(34796),s=i?i.prototype:void 0,u=s?s.valueOf:void 0;function v(l){return u?Object(u.call(l)):{}}C.exports=v},61906:(C,c,t)=>{var i=t(71784);function s(u,v){var l=v?i(u.buffer):u.buffer;return new u.constructor(l,u.byteOffset,u.length)}C.exports=s},57590:C=>{function c(t,i){var s=-1,u=t.length;for(i||(i=Array(u));++s<u;)i[s]=t[s];return i}C.exports=c},65597:(C,c,t)=>{var i=t(34438),s=t(29537);function u(v,l,h,p){var d=!h;h||(h={});for(var f=-1,g=l.length;++f<g;){var y=l[f],b=p?p(h[y],v[y],y,h,v):void 0;b===void 0&&(b=v[y]),d?s(h,y,b):i(h,y,b)}return h}C.exports=u},14943:(C,c,t)=>{var i=t(65597),s=t(4467);function u(v,l){return i(v,s(v),l)}C.exports=u},98225:(C,c,t)=>{var i=t(65597),s=t(48615);function u(v,l){return i(v,s(v),l)}C.exports=u},77420:(C,c,t)=>{var i=t(45590),s=i["__core-js_shared__"];C.exports=s},18481:(C,c,t)=>{var i=t(17960),s=t(47602),u=t(32667),v=t(1403);function l(h,p){return function(d,f){var g=v(d)?i:s,y=p?p():{};return g(d,h,u(f,2),y)}}C.exports=l},80325:(C,c,t)=>{var i=t(29346);function s(u,v){return function(l,h){if(l==null)return l;if(!i(l))return u(l,h);for(var p=l.length,d=v?p:-1,f=Object(l);(v?d--:++d<p)&&h(f[d],d,f)!==!1;);return l}}C.exports=s},82683:C=>{function c(t){return function(i,s,u){for(var v=-1,l=Object(i),h=u(i),p=h.length;p--;){var d=h[t?p:++v];if(s(l[d],d,l)===!1)break}return i}}C.exports=c},1042:(C,c,t)=>{var i=t(92325),s=t(67967),u=t(55533);function v(l){return function(h,p,d){return d&&typeof d!="number"&&s(h,p,d)&&(p=d=void 0),h=u(h),p===void 0?(p=h,h=0):p=u(p),d=d===void 0?h<p?1:-1:u(d),i(h,p,d,l)}}C.exports=v},8783:(C,c,t)=>{var i=t(6876),s=t(54070),u=t(53121),v=1/0,l=i&&1/u(new i([,-0]))[1]==v?function(h){return new i(h)}:s;C.exports=l},82023:(C,c,t)=>{var i=t(54666);function s(u){return i(u)?void 0:u}C.exports=s},46586:(C,c,t)=>{var i=t(97714),s=function(){try{var u=i(Object,"defineProperty");return u({},"",{}),u}catch{}}();C.exports=s},72276:(C,c,t)=>{var i=t(73925),s=t(69316),u=t(16301),v=1,l=2;function h(p,d,f,g,y,b){var E=f&v,S=p.length,w=d.length;if(S!=w&&!(E&&w>S))return!1;var x=b.get(p),P=b.get(d);if(x&&P)return x==d&&P==p;var R=-1,T=!0,A=f&l?new i:void 0;for(b.set(p,d),b.set(d,p);++R<S;){var I=p[R],N=d[R];if(g)var K=E?g(N,I,R,d,p,b):g(I,N,R,p,d,b);if(K!==void 0){if(K)continue;T=!1;break}if(A){if(!s(d,function(_,W){if(!u(A,W)&&(I===_||y(I,_,f,g,b)))return A.push(W)})){T=!1;break}}else if(!(I===N||y(I,N,f,g,b))){T=!1;break}}return b.delete(p),b.delete(d),T}C.exports=h},46238:(C,c,t)=>{var i=t(34796),s=t(26823),u=t(50656),v=t(72276),l=t(44402),h=t(53121),p=1,d=2,f="[object Boolean]",g="[object Date]",y="[object Error]",b="[object Map]",E="[object Number]",S="[object RegExp]",w="[object Set]",x="[object String]",P="[object Symbol]",R="[object ArrayBuffer]",T="[object DataView]",A=i?i.prototype:void 0,I=A?A.valueOf:void 0;function N(K,_,W,j,re,X,Z){switch(W){case T:if(K.byteLength!=_.byteLength||K.byteOffset!=_.byteOffset)return!1;K=K.buffer,_=_.buffer;case R:return!(K.byteLength!=_.byteLength||!X(new s(K),new s(_)));case f:case g:case E:return u(+K,+_);case y:return K.name==_.name&&K.message==_.message;case S:case x:return K==_+"";case b:var J=l;case w:var q=j&p;if(J||(J=h),K.size!=_.size&&!q)return!1;var L=Z.get(K);if(L)return L==_;j|=d,Z.set(K,_);var $=v(J(K),J(_),j,re,X,Z);return Z.delete(K),$;case P:if(I)return I.call(K)==I.call(_)}return!1}C.exports=N},25909:(C,c,t)=>{var i=t(38300),s=1,u=Object.prototype,v=u.hasOwnProperty;function l(h,p,d,f,g,y){var b=d&s,E=i(h),S=E.length,w=i(p),x=w.length;if(S!=x&&!b)return!1;for(var P=S;P--;){var R=E[P];if(!(b?R in p:v.call(p,R)))return!1}var T=y.get(h),A=y.get(p);if(T&&A)return T==p&&A==h;var I=!0;y.set(h,p),y.set(p,h);for(var N=b;++P<S;){R=E[P];var K=h[R],_=p[R];if(f)var W=b?f(_,K,R,p,h,y):f(K,_,R,h,p,y);if(!(W===void 0?K===_||g(K,_,d,f,y):W)){I=!1;break}N||(N=R=="constructor")}if(I&&!N){var j=h.constructor,re=p.constructor;j!=re&&"constructor"in h&&"constructor"in p&&!(typeof j=="function"&&j instanceof j&&typeof re=="function"&&re instanceof re)&&(I=!1)}return y.delete(h),y.delete(p),I}C.exports=l},91200:(C,c,t)=>{var i=t(40062),s=t(14378),u=t(17238);function v(l){return u(s(l,void 0,i),l+"")}C.exports=v},23111:(C,c,t)=>{var i=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;C.exports=i},38300:(C,c,t)=>{var i=t(75918),s=t(4467),u=t(52116);function v(l){return i(l,u,s)}C.exports=v},47433:(C,c,t)=>{var i=t(75918),s=t(48615),u=t(86806);function v(l){return i(l,u,s)}C.exports=v},81004:(C,c,t)=>{var i=t(36008);function s(u,v){var l=u.__data__;return i(v)?l[typeof v=="string"?"string":"hash"]:l.map}C.exports=s},47663:(C,c,t)=>{var i=t(40188),s=t(52116);function u(v){for(var l=s(v),h=l.length;h--;){var p=l[h],d=v[p];l[h]=[p,d,i(d)]}return l}C.exports=u},97714:(C,c,t)=>{var i=t(68125),s=t(60514);function u(v,l){var h=s(v,l);return i(h)?h:void 0}C.exports=u},93965:(C,c,t)=>{var i=t(99262),s=i(Object.getPrototypeOf,Object);C.exports=s},50795:(C,c,t)=>{var i=t(34796),s=Object.prototype,u=s.hasOwnProperty,v=s.toString,l=i?i.toStringTag:void 0;function h(p){var d=u.call(p,l),f=p[l];try{p[l]=void 0;var g=!0}catch{}var y=v.call(p);return g&&(d?p[l]=f:delete p[l]),y}C.exports=h},4467:(C,c,t)=>{var i=t(24965),s=t(7054),u=Object.prototype,v=u.propertyIsEnumerable,l=Object.getOwnPropertySymbols,h=l?function(p){return p==null?[]:(p=Object(p),i(l(p),function(d){return v.call(p,d)}))}:s;C.exports=h},48615:(C,c,t)=>{var i=t(88630),s=t(93965),u=t(4467),v=t(7054),l=Object.getOwnPropertySymbols,h=l?function(p){for(var d=[];p;)i(d,u(p)),p=s(p);return d}:v;C.exports=h},36723:(C,c,t)=>{var i=t(19979),s=t(66332),u=t(32648),v=t(6876),l=t(51952),h=t(87490),p=t(70609),d="[object Map]",f="[object Object]",g="[object Promise]",y="[object Set]",b="[object WeakMap]",E="[object DataView]",S=p(i),w=p(s),x=p(u),P=p(v),R=p(l),T=h;(i&&T(new i(new ArrayBuffer(1)))!=E||s&&T(new s)!=d||u&&T(u.resolve())!=g||v&&T(new v)!=y||l&&T(new l)!=b)&&(T=function(A){var I=h(A),N=I==f?A.constructor:void 0,K=N?p(N):"";if(K)switch(K){case S:return E;case w:return d;case x:return g;case P:return y;case R:return b}return I}),C.exports=T},60514:C=>{function c(t,i){return t?.[i]}C.exports=c},84722:(C,c,t)=>{var i=t(43161),s=t(55079),u=t(1403),v=t(88198),l=t(63115),h=t(26313);function p(d,f,g){f=i(f,d);for(var y=-1,b=f.length,E=!1;++y<b;){var S=h(f[y]);if(!(E=d!=null&&g(d,S)))break;d=d[S]}return E||++y!=b?E:(b=d==null?0:d.length,!!b&&l(b)&&v(S,b)&&(u(d)||s(d)))}C.exports=p},68883:(C,c,t)=>{var i=t(31141);function s(){this.__data__=i?i(null):{},this.size=0}C.exports=s},94073:C=>{function c(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}C.exports=c},70276:(C,c,t)=>{var i=t(31141),s="__lodash_hash_undefined__",u=Object.prototype,v=u.hasOwnProperty;function l(h){var p=this.__data__;if(i){var d=p[h];return d===s?void 0:d}return v.call(p,h)?p[h]:void 0}C.exports=l},68186:(C,c,t)=>{var i=t(31141),s=Object.prototype,u=s.hasOwnProperty;function v(l){var h=this.__data__;return i?h[l]!==void 0:u.call(h,l)}C.exports=v},82846:(C,c,t)=>{var i=t(31141),s="__lodash_hash_undefined__";function u(v,l){var h=this.__data__;return this.size+=this.has(v)?0:1,h[v]=i&&l===void 0?s:l,this}C.exports=u},68713:C=>{var c=Object.prototype,t=c.hasOwnProperty;function i(s){var u=s.length,v=new s.constructor(u);return u&&typeof s[0]=="string"&&t.call(s,"index")&&(v.index=s.index,v.input=s.input),v}C.exports=i},20427:(C,c,t)=>{var i=t(71784),s=t(85452),u=t(7761),v=t(78548),l=t(61906),h="[object Boolean]",p="[object Date]",d="[object Map]",f="[object Number]",g="[object RegExp]",y="[object Set]",b="[object String]",E="[object Symbol]",S="[object ArrayBuffer]",w="[object DataView]",x="[object Float32Array]",P="[object Float64Array]",R="[object Int8Array]",T="[object Int16Array]",A="[object Int32Array]",I="[object Uint8Array]",N="[object Uint8ClampedArray]",K="[object Uint16Array]",_="[object Uint32Array]";function W(j,re,X){var Z=j.constructor;switch(re){case S:return i(j);case h:case p:return new Z(+j);case w:return s(j,X);case x:case P:case R:case T:case A:case I:case N:case K:case _:return l(j,X);case d:return new Z;case f:case b:return new Z(j);case g:return u(j);case y:return new Z;case E:return v(j)}}C.exports=W},59423:(C,c,t)=>{var i=t(74425),s=t(93965),u=t(22638);function v(l){return typeof l.constructor=="function"&&!u(l)?i(s(l)):{}}C.exports=v},16029:(C,c,t)=>{var i=t(34796),s=t(55079),u=t(1403),v=i?i.isConcatSpreadable:void 0;function l(h){return u(h)||s(h)||!!(v&&h&&h[v])}C.exports=l},88198:C=>{var c=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function i(s,u){var v=typeof s;return u=u??c,!!u&&(v=="number"||v!="symbol"&&t.test(s))&&s>-1&&s%1==0&&s<u}C.exports=i},67967:(C,c,t)=>{var i=t(50656),s=t(29346),u=t(88198),v=t(57990);function l(h,p,d){if(!v(d))return!1;var f=typeof p;return(f=="number"?s(d)&&u(p,d.length):f=="string"&&p in d)?i(d[p],h):!1}C.exports=l},27801:(C,c,t)=>{var i=t(1403),s=t(61826),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,v=/^\w*$/;function l(h,p){if(i(h))return!1;var d=typeof h;return d=="number"||d=="symbol"||d=="boolean"||h==null||s(h)?!0:v.test(h)||!u.test(h)||p!=null&&h in Object(p)}C.exports=l},36008:C=>{function c(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}C.exports=c},76620:(C,c,t)=>{var i=t(77420),s=function(){var v=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}();function u(v){return!!s&&s in v}C.exports=u},22638:C=>{var c=Object.prototype;function t(i){var s=i&&i.constructor,u=typeof s=="function"&&s.prototype||c;return i===u}C.exports=t},40188:(C,c,t)=>{var i=t(57990);function s(u){return u===u&&!i(u)}C.exports=s},60227:C=>{function c(){this.__data__=[],this.size=0}C.exports=c},57677:(C,c,t)=>{var i=t(24970),s=Array.prototype,u=s.splice;function v(l){var h=this.__data__,p=i(h,l);if(p<0)return!1;var d=h.length-1;return p==d?h.pop():u.call(h,p,1),--this.size,!0}C.exports=v},91401:(C,c,t)=>{var i=t(24970);function s(u){var v=this.__data__,l=i(v,u);return l<0?void 0:v[l][1]}C.exports=s},39091:(C,c,t)=>{var i=t(24970);function s(u){return i(this.__data__,u)>-1}C.exports=s},56544:(C,c,t)=>{var i=t(24970);function s(u,v){var l=this.__data__,h=i(l,u);return h<0?(++this.size,l.push([u,v])):l[h][1]=v,this}C.exports=s},51036:(C,c,t)=>{var i=t(44442),s=t(11100),u=t(66332);function v(){this.size=0,this.__data__={hash:new i,map:new(u||s),string:new i}}C.exports=v},94066:(C,c,t)=>{var i=t(81004);function s(u){var v=i(this,u).delete(u);return this.size-=v?1:0,v}C.exports=s},24178:(C,c,t)=>{var i=t(81004);function s(u){return i(this,u).get(u)}C.exports=s},84655:(C,c,t)=>{var i=t(81004);function s(u){return i(this,u).has(u)}C.exports=s},97661:(C,c,t)=>{var i=t(81004);function s(u,v){var l=i(this,u),h=l.size;return l.set(u,v),this.size+=l.size==h?0:1,this}C.exports=s},44402:C=>{function c(t){var i=-1,s=Array(t.size);return t.forEach(function(u,v){s[++i]=[v,u]}),s}C.exports=c},39699:C=>{function c(t,i){return function(s){return s==null?!1:s[t]===i&&(i!==void 0||t in Object(s))}}C.exports=c},20111:(C,c,t)=>{var i=t(67696),s=500;function u(v){var l=i(v,function(p){return h.size===s&&h.clear(),p}),h=l.cache;return l}C.exports=u},31141:(C,c,t)=>{var i=t(97714),s=i(Object,"create");C.exports=s},34747:(C,c,t)=>{var i=t(99262),s=i(Object.keys,Object);C.exports=s},82051:C=>{function c(t){var i=[];if(t!=null)for(var s in Object(t))i.push(s);return i}C.exports=c},82021:(C,c,t)=>{C=t.nmd(C);var i=t(23111),s=c&&!c.nodeType&&c,u=s&&!0&&C&&!C.nodeType&&C,v=u&&u.exports===s,l=v&&i.process,h=function(){try{var p=u&&u.require&&u.require("util").types;return p||l&&l.binding&&l.binding("util")}catch{}}();C.exports=h},22081:C=>{var c=Object.prototype,t=c.toString;function i(s){return t.call(s)}C.exports=i},99262:C=>{function c(t,i){return function(s){return t(i(s))}}C.exports=c},14378:(C,c,t)=>{var i=t(48810),s=Math.max;function u(v,l,h){return l=s(l===void 0?v.length-1:l,0),function(){for(var p=arguments,d=-1,f=s(p.length-l,0),g=Array(f);++d<f;)g[d]=p[l+d];d=-1;for(var y=Array(l+1);++d<l;)y[d]=p[d];return y[l]=h(g),i(v,this,y)}}C.exports=u},33912:(C,c,t)=>{var i=t(65040),s=t(11092);function u(v,l){return l.length<2?v:i(v,s(l,0,-1))}C.exports=u},45590:(C,c,t)=>{var i=t(23111),s=typeof self=="object"&&self&&self.Object===Object&&self,u=i||s||Function("return this")();C.exports=u},57441:C=>{var c="__lodash_hash_undefined__";function t(i){return this.__data__.set(i,c),this}C.exports=t},33406:C=>{function c(t){return this.__data__.has(t)}C.exports=c},53121:C=>{function c(t){var i=-1,s=Array(t.size);return t.forEach(function(u){s[++i]=u}),s}C.exports=c},17238:(C,c,t)=>{var i=t(8834),s=t(26471),u=s(i);C.exports=u},26471:C=>{var c=800,t=16,i=Date.now;function s(u){var v=0,l=0;return function(){var h=i(),p=t-(h-l);if(l=h,p>0){if(++v>=c)return arguments[0]}else v=0;return u.apply(void 0,arguments)}}C.exports=s},91999:(C,c,t)=>{var i=t(11100);function s(){this.__data__=new i,this.size=0}C.exports=s},52006:C=>{function c(t){var i=this.__data__,s=i.delete(t);return this.size=i.size,s}C.exports=c},50849:C=>{function c(t){return this.__data__.get(t)}C.exports=c},78715:C=>{function c(t){return this.__data__.has(t)}C.exports=c},47515:(C,c,t)=>{var i=t(11100),s=t(66332),u=t(78912),v=200;function l(h,p){var d=this.__data__;if(d instanceof i){var f=d.__data__;if(!s||f.length<v-1)return f.push([h,p]),this.size=++d.size,this;d=this.__data__=new u(f)}return d.set(h,p),this.size=d.size,this}C.exports=l},14053:C=>{function c(t,i,s){for(var u=s-1,v=t.length;++u<v;)if(t[u]===i)return u;return-1}C.exports=c},6736:(C,c,t)=>{var i=t(20111),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,v=i(function(l){var h=[];return l.charCodeAt(0)===46&&h.push(""),l.replace(s,function(p,d,f,g){h.push(f?g.replace(u,"$1"):d||p)}),h});C.exports=v},26313:(C,c,t)=>{var i=t(61826),s=1/0;function u(v){if(typeof v=="string"||i(v))return v;var l=v+"";return l=="0"&&1/v==-s?"-0":l}C.exports=u},70609:C=>{var c=Function.prototype,t=c.toString;function i(s){if(s!=null){try{return t.call(s)}catch{}try{return s+""}catch{}}return""}C.exports=i},7276:C=>{var c=/\s/;function t(i){for(var s=i.length;s--&&c.test(i.charAt(s)););return s}C.exports=t},13272:(C,c,t)=>{var i=t(55262),s=t(67710);function u(v,l,h){return h===void 0&&(h=l,l=void 0),h!==void 0&&(h=s(h),h=h===h?h:0),l!==void 0&&(l=s(l),l=l===l?l:0),i(s(v),l,h)}C.exports=u},31219:C=>{function c(t){return function(){return t}}C.exports=c},43730:(C,c,t)=>{var i=t(57990),s=t(68701),u=t(67710),v="Expected a function",l=Math.max,h=Math.min;function p(d,f,g){var y,b,E,S,w,x,P=0,R=!1,T=!1,A=!0;if(typeof d!="function")throw new TypeError(v);f=u(f)||0,i(g)&&(R=!!g.leading,T="maxWait"in g,E=T?l(u(g.maxWait)||0,f):E,A="trailing"in g?!!g.trailing:A);function I(J){var q=y,L=b;return y=b=void 0,P=J,S=d.apply(L,q),S}function N(J){return P=J,w=setTimeout(W,f),R?I(J):S}function K(J){var q=J-x,L=J-P,$=f-q;return T?h($,E-L):$}function _(J){var q=J-x,L=J-P;return x===void 0||q>=f||q<0||T&&L>=E}function W(){var J=s();if(_(J))return j(J);w=setTimeout(W,K(J))}function j(J){return w=void 0,A&&y?I(J):(y=b=void 0,S)}function re(){w!==void 0&&clearTimeout(w),P=0,y=x=b=w=void 0}function X(){return w===void 0?S:j(s())}function Z(){var J=s(),q=_(J);if(y=arguments,b=this,x=J,q){if(w===void 0)return N(x);if(T)return clearTimeout(w),w=setTimeout(W,f),I(x)}return w===void 0&&(w=setTimeout(W,f)),S}return Z.cancel=re,Z.flush=X,Z}C.exports=p},50656:C=>{function c(t,i){return t===i||t!==t&&i!==i}C.exports=c},40062:(C,c,t)=>{var i=t(28207);function s(u){var v=u==null?0:u.length;return v?i(u,1):[]}C.exports=s},28999:(C,c,t)=>{var i=t(65040);function s(u,v,l){var h=u==null?void 0:i(u,v);return h===void 0?l:h}C.exports=s},19430:(C,c,t)=>{var i=t(29537),s=t(18481),u=Object.prototype,v=u.hasOwnProperty,l=s(function(h,p,d){v.call(h,d)?h[d].push(p):i(h,d,[p])});C.exports=l},31302:(C,c,t)=>{var i=t(68562),s=t(84722);function u(v,l){return v!=null&&s(v,l,i)}C.exports=u},82910:(C,c,t)=>{var i=t(31315),s=t(84722);function u(v,l){return v!=null&&s(v,l,i)}C.exports=u},51658:C=>{function c(t){return t}C.exports=c},55079:(C,c,t)=>{var i=t(57211),s=t(92395),u=Object.prototype,v=u.hasOwnProperty,l=u.propertyIsEnumerable,h=i(function(){return arguments}())?i:function(p){return s(p)&&v.call(p,"callee")&&!l.call(p,"callee")};C.exports=h},1403:C=>{var c=Array.isArray;C.exports=c},29346:(C,c,t)=>{var i=t(32095),s=t(63115);function u(v){return v!=null&&s(v.length)&&!i(v)}C.exports=u},32518:(C,c,t)=>{C=t.nmd(C);var i=t(45590),s=t(45790),u=c&&!c.nodeType&&c,v=u&&!0&&C&&!C.nodeType&&C,l=v&&v.exports===u,h=l?i.Buffer:void 0,p=h?h.isBuffer:void 0,d=p||s;C.exports=d},32095:(C,c,t)=>{var i=t(87490),s=t(57990),u="[object AsyncFunction]",v="[object Function]",l="[object GeneratorFunction]",h="[object Proxy]";function p(d){if(!s(d))return!1;var f=i(d);return f==v||f==l||f==u||f==h}C.exports=p},63115:C=>{var c=9007199254740991;function t(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=c}C.exports=t},22830:(C,c,t)=>{var i=t(39814),s=t(68347),u=t(82021),v=u&&u.isMap,l=v?s(v):i;C.exports=l},57990:C=>{function c(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}C.exports=c},92395:C=>{function c(t){return t!=null&&typeof t=="object"}C.exports=c},54666:(C,c,t)=>{var i=t(87490),s=t(93965),u=t(92395),v="[object Object]",l=Function.prototype,h=Object.prototype,p=l.toString,d=h.hasOwnProperty,f=p.call(Object);function g(y){if(!u(y)||i(y)!=v)return!1;var b=s(y);if(b===null)return!0;var E=d.call(b,"constructor")&&b.constructor;return typeof E=="function"&&E instanceof E&&p.call(E)==f}C.exports=g},55450:(C,c,t)=>{var i=t(13406),s=t(68347),u=t(82021),v=u&&u.isSet,l=v?s(v):i;C.exports=l},61826:(C,c,t)=>{var i=t(87490),s=t(92395),u="[object Symbol]";function v(l){return typeof l=="symbol"||s(l)&&i(l)==u}C.exports=v},66377:(C,c,t)=>{var i=t(24116),s=t(68347),u=t(82021),v=u&&u.isTypedArray,l=v?s(v):i;C.exports=l},52116:(C,c,t)=>{var i=t(9242),s=t(76618),u=t(29346);function v(l){return u(l)?i(l):s(l)}C.exports=v},86806:(C,c,t)=>{var i=t(9242),s=t(7697),u=t(29346);function v(l){return u(l)?i(l,!0):s(l)}C.exports=v},13509:C=>{function c(t){var i=t==null?0:t.length;return i?t[i-1]:void 0}C.exports=c},89949:function(C,c,t){C=t.nmd(C);var i;/** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var s,u="4.17.21",v=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",p="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",f=500,g="__lodash_placeholder__",y=1,b=2,E=4,S=1,w=2,x=1,P=2,R=4,T=8,A=16,I=32,N=64,K=128,_=256,W=512,j=30,re="...",X=800,Z=16,J=1,q=2,L=3,$=1/0,k=9007199254740991,F=17976931348623157e292,V=0/0,pe=4294967295,ce=pe-1,G=pe>>>1,te=[["ary",K],["bind",x],["bindKey",P],["curry",T],["curryRight",A],["flip",W],["partial",I],["partialRight",N],["rearg",_]],ie="[object Arguments]",fe="[object Array]",Se="[object AsyncFunction]",he="[object Boolean]",me="[object Date]",_e="[object DOMException]",we="[object Error]",Ge="[object Function]",ht="[object GeneratorFunction]",nt="[object Map]",Re="[object Number]",ue="[object Null]",ae="[object Object]",ve="[object Promise]",Me="[object Proxy]",Ye="[object RegExp]",qe="[object Set]",At="[object String]",It="[object Symbol]",Ce="[object Undefined]",Ae="[object WeakMap]",$e="[object WeakSet]",tt="[object ArrayBuffer]",ke="[object DataView]",Oe="[object Float32Array]",je="[object Float64Array]",Et="[object Int8Array]",ct="[object Int16Array]",ut="[object Int32Array]",Ne="[object Uint8Array]",mt="[object Uint8ClampedArray]",bt="[object Uint16Array]",Gt="[object Uint32Array]",hn=/\b__p \+= '';/g,Yt=/\b(__p \+=) '' \+/g,Bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Lt=/&(?:amp|lt|gt|quot|#39);/g,zt=/[&<>"']/g,Kt=RegExp(Lt.source),vt=RegExp(zt.source),Ve=/<%-([\s\S]+?)%>/g,lt=/<%([\s\S]+?)%>/g,at=/<%=([\s\S]+?)%>/g,Xt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rt=/^\w*$/,Rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rn=/[\\^$.*+?()[\]{}|]/g,sn=RegExp(rn.source),Jn=/^\s+/,ze=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,en=/\{\n\/\* \[wrapped with (.+)\] \*/,wt=/,? & /,Ke=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ut=/[()=,{}\[\]\/\s]/,on=/\\(\\)?/g,Tn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,An=/\w*$/,Zt=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ft=/^0o[0-7]+$/i,it=/^(?:0|[1-9]\d*)$/,qt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vn=/($^)/,fn=/['\n\r\u2028\u2029\\]/g,Tt="\\ud800-\\udfff",dn="\\u0300-\\u036f",mn="\\ufe20-\\ufe2f",Kn="\\u20d0-\\u20ff",Dn=dn+mn+Kn,Vn="\\u2700-\\u27bf",or="a-z\\xdf-\\xf6\\xf8-\\xff",Qr="\\xac\\xb1\\xd7\\xf7",ni="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yr="\\u2000-\\u206f",si=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Yr="A-Z\\xc0-\\xd6\\xd8-\\xde",Ci="\\ufe0e\\ufe0f",Ni=Qr+ni+yr+si,fa="['\u2019]",ha="["+Tt+"]",Ca="["+Ni+"]",li="["+Dn+"]",la="\\d+",Oa="["+Vn+"]",wa="["+or+"]",vo="[^"+Tt+Ni+la+Vn+or+Yr+"]",Qn="\\ud83c[\\udffb-\\udfff]",_r="(?:"+li+"|"+Qn+")",$r="[^"+Tt+"]",Ti="(?:\\ud83c[\\udde6-\\uddff]){2}",xt="[\\ud800-\\udbff][\\udc00-\\udfff]",On="["+Yr+"]",Zn="\\u200d",Ur="(?:"+wa+"|"+vo+")",En="(?:"+On+"|"+vo+")",ln="(?:"+fa+"(?:d|ll|m|re|s|t|ve))?",jn="(?:"+fa+"(?:D|LL|M|RE|S|T|VE))?",rr=_r+"?",Mr="["+Ci+"]?",Ir="(?:"+Zn+"(?:"+[$r,Ti,xt].join("|")+")"+Mr+rr+")*",Zr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lr="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jr=Mr+rr+Ir,pi="(?:"+[Oa,Ti,xt].join("|")+")"+Jr,Ri="(?:"+[$r+li+"?",li,Ti,xt,ha].join("|")+")",Ki=RegExp(fa,"g"),ia=RegExp(li,"g"),Da=RegExp(Qn+"(?="+Qn+")|"+Ri+Jr,"g"),to=RegExp([On+"?"+wa+"+"+ln+"(?="+[Ca,On,"$"].join("|")+")",En+"+"+jn+"(?="+[Ca,On+Ur,"$"].join("|")+")",On+"?"+Ur+"+"+ln,On+"+"+jn,lr,Zr,la,pi].join("|"),"g"),ao=RegExp("["+Zn+Tt+Dn+Ci+"]"),Bo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jo=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Jo=-1,Go={};Go[Oe]=Go[je]=Go[Et]=Go[ct]=Go[ut]=Go[Ne]=Go[mt]=Go[bt]=Go[Gt]=!0,Go[ie]=Go[fe]=Go[tt]=Go[he]=Go[ke]=Go[me]=Go[we]=Go[Ge]=Go[nt]=Go[Re]=Go[ae]=Go[Ye]=Go[qe]=Go[At]=Go[Ae]=!1;var wr={};wr[ie]=wr[fe]=wr[tt]=wr[ke]=wr[he]=wr[me]=wr[Oe]=wr[je]=wr[Et]=wr[ct]=wr[ut]=wr[nt]=wr[Re]=wr[ae]=wr[Ye]=wr[qe]=wr[At]=wr[It]=wr[Ne]=wr[mt]=wr[bt]=wr[Gt]=!0,wr[we]=wr[Ge]=wr[Ae]=!1;var qi={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},ja={"&":"&","<":"<",">":">",'"':""","'":"'"},uo={"&":"&","<":"<",">":">",""":'"',"'":"'"},wi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ai=parseFloat,za=parseInt,Mt=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g,Gn=typeof self=="object"&&self&&self.Object===Object&&self,qn=Mt||Gn||Function("return this")(),Fr=c&&!c.nodeType&&c,Ei=Fr&&!0&&C&&!C.nodeType&&C,ii=Ei&&Ei.exports===Fr,Wi=ii&&Mt.process,Ya=function(){try{var dr=Ei&&Ei.require&&Ei.require("util").types;return dr||Wi&&Wi.binding&&Wi.binding("util")}catch{}}(),qa=Ya&&Ya.isArrayBuffer,se=Ya&&Ya.isDate,ye=Ya&&Ya.isMap,Xe=Ya&&Ya.isRegExp,yt=Ya&&Ya.isSet,Wt=Ya&&Ya.isTypedArray;function Qt(dr,ci,yi){switch(yi.length){case 0:return dr.call(ci);case 1:return dr.call(ci,yi[0]);case 2:return dr.call(ci,yi[0],yi[1]);case 3:return dr.call(ci,yi[0],yi[1],yi[2])}return dr.apply(ci,yi)}function wn(dr,ci,yi,xa){for(var Cr=-1,ka=dr==null?0:dr.length;++Cr<ka;){var Io=dr[Cr];ci(xa,Io,yi(Io),dr)}return xa}function fr(dr,ci){for(var yi=-1,xa=dr==null?0:dr.length;++yi<xa&&ci(dr[yi],yi,dr)!==!1;);return dr}function Or(dr,ci){for(var yi=dr==null?0:dr.length;yi--&&ci(dr[yi],yi,dr)!==!1;);return dr}function Si(dr,ci){for(var yi=-1,xa=dr==null?0:dr.length;++yi<xa;)if(!ci(dr[yi],yi,dr))return!1;return!0}function Fi(dr,ci){for(var yi=-1,xa=dr==null?0:dr.length,Cr=0,ka=[];++yi<xa;){var Io=dr[yi];ci(Io,yi,dr)&&(ka[Cr++]=Io)}return ka}function Bi(dr,ci){var yi=dr==null?0:dr.length;return!!yi&&le(dr,ci,0)>-1}function Ui(dr,ci,yi){for(var xa=-1,Cr=dr==null?0:dr.length;++xa<Cr;)if(yi(ci,dr[xa]))return!0;return!1}function vi(dr,ci){for(var yi=-1,xa=dr==null?0:dr.length,Cr=Array(xa);++yi<xa;)Cr[yi]=ci(dr[yi],yi,dr);return Cr}function Xa(dr,ci){for(var yi=-1,xa=ci.length,Cr=dr.length;++yi<xa;)dr[Cr+yi]=ci[yi];return dr}function Ko(dr,ci,yi,xa){var Cr=-1,ka=dr==null?0:dr.length;for(xa&&ka&&(yi=dr[++Cr]);++Cr<ka;)yi=ci(yi,dr[Cr],Cr,dr);return yi}function So(dr,ci,yi,xa){var Cr=dr==null?0:dr.length;for(xa&&Cr&&(yi=dr[--Cr]);Cr--;)yi=ci(yi,dr[Cr],Cr,dr);return yi}function Lo(dr,ci){for(var yi=-1,xa=dr==null?0:dr.length;++yi<xa;)if(ci(dr[yi],yi,dr))return!0;return!1}var us=Vt("length");function Ee(dr){return dr.split("")}function Y(dr){return dr.match(Ke)||[]}function z(dr,ci,yi){var xa;return yi(dr,function(Cr,ka,Io){if(ci(Cr,ka,Io))return xa=ka,!1}),xa}function B(dr,ci,yi,xa){for(var Cr=dr.length,ka=yi+(xa?1:-1);xa?ka--:++ka<Cr;)if(ci(dr[ka],ka,dr))return ka;return-1}function le(dr,ci,yi){return ci===ci?Lr(dr,ci,yi):B(dr,Je,yi)}function Le(dr,ci,yi,xa){for(var Cr=yi-1,ka=dr.length;++Cr<ka;)if(xa(dr[Cr],ci))return Cr;return-1}function Je(dr){return dr!==dr}function Ct(dr,ci){var yi=dr==null?0:dr.length;return yi?ei(dr,ci)/yi:V}function Vt(dr){return function(ci){return ci==null?s:ci[dr]}}function bn(dr){return function(ci){return dr==null?s:dr[ci]}}function Hn(dr,ci,yi,xa,Cr){return Cr(dr,function(ka,Io,Co){yi=xa?(xa=!1,ka):ci(yi,ka,Io,Co)}),yi}function br(dr,ci){var yi=dr.length;for(dr.sort(ci);yi--;)dr[yi]=dr[yi].value;return dr}function ei(dr,ci){for(var yi,xa=-1,Cr=dr.length;++xa<Cr;){var ka=ci(dr[xa]);ka!==s&&(yi=yi===s?ka:yi+ka)}return yi}function mi(dr,ci){for(var yi=-1,xa=Array(dr);++yi<dr;)xa[yi]=ci(yi);return xa}function Li(dr,ci){return vi(ci,function(yi){return[yi,dr[yi]]})}function na(dr){return dr&&dr.slice(0,yo(dr)+1).replace(Jn,"")}function ji(dr){return function(ci){return dr(ci)}}function $a(dr,ci){return vi(ci,function(yi){return dr[yi]})}function Ha(dr,ci){return dr.has(ci)}function Eo(dr,ci){for(var yi=-1,xa=dr.length;++yi<xa&&le(ci,dr[yi],0)>-1;);return yi}function Uo(dr,ci){for(var yi=dr.length;yi--&&le(ci,dr[yi],0)>-1;);return yi}function Ms(dr,ci){for(var yi=dr.length,xa=0;yi--;)dr[yi]===ci&&++xa;return xa}var er=bn(qi),Ar=bn(ja);function Kr(dr){return"\\"+wi[dr]}function ur(dr,ci){return dr==null?s:dr[ci]}function Gr(dr){return ao.test(dr)}function Pi(dr){return Bo.test(dr)}function aa(dr){for(var ci,yi=[];!(ci=dr.next()).done;)yi.push(ci.value);return yi}function Fa(dr){var ci=-1,yi=Array(dr.size);return dr.forEach(function(xa,Cr){yi[++ci]=[Cr,xa]}),yi}function tn(dr,ci){return function(yi){return dr(ci(yi))}}function cn(dr,ci){for(var yi=-1,xa=dr.length,Cr=0,ka=[];++yi<xa;){var Io=dr[yi];(Io===ci||Io===g)&&(dr[yi]=g,ka[Cr++]=yi)}return ka}function nr(dr){var ci=-1,yi=Array(dr.size);return dr.forEach(function(xa){yi[++ci]=xa}),yi}function ir(dr){var ci=-1,yi=Array(dr.size);return dr.forEach(function(xa){yi[++ci]=[xa,xa]}),yi}function Lr(dr,ci,yi){for(var xa=yi-1,Cr=dr.length;++xa<Cr;)if(dr[xa]===ci)return xa;return-1}function ua(dr,ci,yi){for(var xa=yi+1;xa--;)if(dr[xa]===ci)return xa;return xa}function _a(dr){return Gr(dr)?Ma(dr):us(dr)}function Ka(dr){return Gr(dr)?Mo(dr):Ee(dr)}function yo(dr){for(var ci=dr.length;ci--&&ze.test(dr.charAt(ci)););return ci}var Ba=bn(uo);function Ma(dr){for(var ci=Da.lastIndex=0;Da.test(dr);)++ci;return ci}function Mo(dr){return dr.match(Da)||[]}function Nr(dr){return dr.match(to)||[]}var gi=function dr(ci){ci=ci==null?qn:ea.defaults(qn.Object(),ci,ea.pick(qn,jo));var yi=ci.Array,xa=ci.Date,Cr=ci.Error,ka=ci.Function,Io=ci.Math,Co=ci.Object,_s=ci.RegExp,Is=ci.String,xs=ci.TypeError,Zs=yi.prototype,Ns=ka.prototype,Us=Co.prototype,fu=ci["__core-js_shared__"],bu=Ns.toString,Ys=Us.hasOwnProperty,Hu=0,Zu=function(){var Q=/[^.]+$/.exec(fu&&fu.keys&&fu.keys.IE_PROTO||"");return Q?"Symbol(src)_1."+Q:""}(),ql=Us.toString,Sn=bu.call(Co),Wn=qn._,vr=_s("^"+bu.call(Ys).replace(rn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kr=ii?ci.Buffer:s,ui=ci.Symbol,ta=ci.Uint8Array,St=kr?kr.allocUnsafe:s,pt=tn(Co.getPrototypeOf,Co),kt=Co.create,_t=Us.propertyIsEnumerable,Mn=Zs.splice,Pr=ui?ui.isConcatSpreadable:s,Hi=ui?ui.iterator:s,jt=ui?ui.toStringTag:s,$n=function(){try{var Q=jr(Co,"defineProperty");return Q({},"",{}),Q}catch{}}(),pn=ci.clearTimeout!==qn.clearTimeout&&ci.clearTimeout,ee=xa&&xa.now!==qn.Date.now&&xa.now,oe=ci.setTimeout!==qn.setTimeout&&ci.setTimeout,De=Io.ceil,Be=Io.floor,gt=Co.getOwnPropertySymbols,Ht=kr?kr.isBuffer:s,nn=ci.isFinite,Rn=Zs.join,Yn=tn(Co.keys,Co),gr=Io.max,Ai=Io.min,$i=xa.now,ma=ci.parseInt,La=Io.random,Qa=Zs.reverse,go=jr(ci,"DataView"),Ao=jr(ci,"Map"),Fo=jr(ci,"Promise"),Ho=jr(ci,"Set"),eu=jr(ci,"WeakMap"),ks=jr(Co,"create"),Gu=eu&&new eu,an={},Nn=Df(go),tr=Df(Ao),In=Df(Fo),di=Df(Ho),oi=Df(eu),ki=ui?ui.prototype:s,ri=ki?ki.valueOf:s,bi=ki?ki.toString:s;function _n(Q){if(Rf(Q)&&!cc(Q)&&!(Q instanceof Qi)){if(Q instanceof Va)return Q;if(Ys.call(Q,"__wrapped__"))return Bd(Q)}return new Va(Q)}var Ua=function(){function Q(){}return function(be){if(!$f(be))return{};if(kt)return kt(be);Q.prototype=be;var Pt=new Q;return Q.prototype=s,Pt}}();function va(){}function Va(Q,be){this.__wrapped__=Q,this.__actions__=[],this.__chain__=!!be,this.__index__=0,this.__values__=s}_n.templateSettings={escape:Ve,evaluate:lt,interpolate:at,variable:"",imports:{_:_n}},_n.prototype=va.prototype,_n.prototype.constructor=_n,Va.prototype=Ua(va.prototype),Va.prototype.constructor=Va;function Qi(Q){this.__wrapped__=Q,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=pe,this.__views__=[]}function ro(){var Q=new Qi(this.__wrapped__);return Q.__actions__=Jc(this.__actions__),Q.__dir__=this.__dir__,Q.__filtered__=this.__filtered__,Q.__iteratees__=Jc(this.__iteratees__),Q.__takeCount__=this.__takeCount__,Q.__views__=Jc(this.__views__),Q}function Pe(){if(this.__filtered__){var Q=new Qi(this);Q.__dir__=-1,Q.__filtered__=!0}else Q=this.clone(),Q.__dir__*=-1;return Q}function Nt(){var Q=this.__wrapped__.value(),be=this.__dir__,Pt=cc(Q),Bn=be<0,Xr=Pt?Q.length:0,Oi=pa(0,Xr,this.__views__),Za=Oi.start,po=Oi.end,Wo=po-Za,$s=Bn?po:Za-1,js=this.__iteratees__,au=js.length,ms=0,dl=Ai(Wo,this.__takeCount__);if(!Pt||!Bn&&Xr==Wo&&dl==Wo)return Bc(Q,this.__actions__);var El=[];e:for(;Wo--&&ms<dl;){$s+=be;for(var Sc=-1,Xl=Q[$s];++Sc<au;){var Ql=js[Sc],Uc=Ql.iteratee,Wc=Ql.type,pd=Uc(Xl);if(Wc==q)Xl=pd;else if(!pd){if(Wc==J)continue e;break e}}El[ms++]=Xl}return El}Qi.prototype=Ua(va.prototype),Qi.prototype.constructor=Qi;function un(Q){var be=-1,Pt=Q==null?0:Q.length;for(this.clear();++be<Pt;){var Bn=Q[be];this.set(Bn[0],Bn[1])}}function xn(){this.__data__=ks?ks(null):{},this.size=0}function zn(Q){var be=this.has(Q)&&delete this.__data__[Q];return this.size-=be?1:0,be}function sr(Q){var be=this.__data__;if(ks){var Pt=be[Q];return Pt===d?s:Pt}return Ys.call(be,Q)?be[Q]:s}function Tr(Q){var be=this.__data__;return ks?be[Q]!==s:Ys.call(be,Q)}function Br(Q,be){var Pt=this.__data__;return this.size+=this.has(Q)?0:1,Pt[Q]=ks&&be===s?d:be,this}un.prototype.clear=xn,un.prototype.delete=zn,un.prototype.get=sr,un.prototype.has=Tr,un.prototype.set=Br;function Er(Q){var be=-1,Pt=Q==null?0:Q.length;for(this.clear();++be<Pt;){var Bn=Q[be];this.set(Bn[0],Bn[1])}}function Sr(){this.__data__=[],this.size=0}function Vr(Q){var be=this.__data__,Pt=Ss(be,Q);if(Pt<0)return!1;var Bn=be.length-1;return Pt==Bn?be.pop():Mn.call(be,Pt,1),--this.size,!0}function fi(Q){var be=this.__data__,Pt=Ss(be,Q);return Pt<0?s:be[Pt][1]}function xr(Q){return Ss(this.__data__,Q)>-1}function Wr(Q,be){var Pt=this.__data__,Bn=Ss(Pt,Q);return Bn<0?(++this.size,Pt.push([Q,be])):Pt[Bn][1]=be,this}Er.prototype.clear=Sr,Er.prototype.delete=Vr,Er.prototype.get=fi,Er.prototype.has=xr,Er.prototype.set=Wr;function ti(Q){var be=-1,Pt=Q==null?0:Q.length;for(this.clear();++be<Pt;){var Bn=Q[be];this.set(Bn[0],Bn[1])}}function xi(){this.size=0,this.__data__={hash:new un,map:new(Ao||Er),string:new un}}function Gi(Q){var be=Xn(this,Q).delete(Q);return this.size-=be?1:0,be}function _i(Q){return Xn(this,Q).get(Q)}function da(Q){return Xn(this,Q).has(Q)}function Sa(Q,be){var Pt=Xn(this,Q),Bn=Pt.size;return Pt.set(Q,be),this.size+=Pt.size==Bn?0:1,this}ti.prototype.clear=xi,ti.prototype.delete=Gi,ti.prototype.get=_i,ti.prototype.has=da,ti.prototype.set=Sa;function Pa(Q){var be=-1,Pt=Q==null?0:Q.length;for(this.__data__=new ti;++be<Pt;)this.add(Q[be])}function oo(Q){return this.__data__.set(Q,d),this}function mo(Q){return this.__data__.has(Q)}Pa.prototype.add=Pa.prototype.push=oo,Pa.prototype.has=mo;function Ga(Q){var be=this.__data__=new Er(Q);this.size=be.size}function no(){this.__data__=new Er,this.size=0}function ca(Q){var be=this.__data__,Pt=be.delete(Q);return this.size=be.size,Pt}function co(Q){return this.__data__.get(Q)}function Yo(Q){return this.__data__.has(Q)}function bo(Q,be){var Pt=this.__data__;if(Pt instanceof Er){var Bn=Pt.__data__;if(!Ao||Bn.length<v-1)return Bn.push([Q,be]),this.size=++Pt.size,this;Pt=this.__data__=new ti(Bn)}return Pt.set(Q,be),this.size=Pt.size,this}Ga.prototype.clear=no,Ga.prototype.delete=ca,Ga.prototype.get=co,Ga.prototype.has=Yo,Ga.prototype.set=bo;function Ea(Q,be){var Pt=cc(Q),Bn=!Pt&&mh(Q),Xr=!Pt&&!Bn&&Fh(Q),Oi=!Pt&&!Bn&&!Xr&&fv(Q),Za=Pt||Bn||Xr||Oi,po=Za?mi(Q.length,Is):[],Wo=po.length;for(var $s in Q)(be||Ys.call(Q,$s))&&!(Za&&($s=="length"||Xr&&($s=="offset"||$s=="parent")||Oi&&($s=="buffer"||$s=="byteLength"||$s=="byteOffset")||_u($s,Wo)))&&po.push($s);return po}function ko(Q){var be=Q.length;return be?Q[fc(0,be-1)]:s}function Es(Q,be){return kd(Jc(Q),Qs(be,0,Q.length))}function Ts(Q){return kd(Jc(Q))}function rs(Q,be,Pt){(Pt!==s&&!Gd(Q[be],Pt)||Pt===s&&!(be in Q))&&is(Q,be,Pt)}function ls(Q,be,Pt){var Bn=Q[be];(!(Ys.call(Q,be)&&Gd(Bn,Pt))||Pt===s&&!(be in Q))&&is(Q,be,Pt)}function Ss(Q,be){for(var Pt=Q.length;Pt--;)if(Gd(Q[Pt][0],be))return Pt;return-1}function cs(Q,be,Pt,Bn){return Pu(Q,function(Xr,Oi,Za){be(Bn,Xr,Pt(Xr),Za)}),Bn}function Do(Q,be){return Q&&zs(be,vd(be),Q)}function fs(Q,be){return Q&&zs(be,wd(be),Q)}function is(Q,be,Pt){be=="__proto__"&&$n?$n(Q,be,{configurable:!0,enumerable:!0,value:Pt,writable:!0}):Q[be]=Pt}function Os(Q,be){for(var Pt=-1,Bn=be.length,Xr=yi(Bn),Oi=Q==null;++Pt<Bn;)Xr[Pt]=Oi?s:mp(Q,be[Pt]);return Xr}function Qs(Q,be,Pt){return Q===Q&&(Pt!==s&&(Q=Q<=Pt?Q:Pt),be!==s&&(Q=Q>=be?Q:be)),Q}function du(Q,be,Pt,Bn,Xr,Oi){var Za,po=be&y,Wo=be&b,$s=be&E;if(Pt&&(Za=Xr?Pt(Q,Bn,Xr,Oi):Pt(Q)),Za!==s)return Za;if(!$f(Q))return Q;var js=cc(Q);if(js){if(Za=$o(Q),!po)return Jc(Q,Za)}else{var au=Aa(Q),ms=au==Ge||au==ht;if(Fh(Q))return Qu(Q,po);if(au==ae||au==ie||ms&&!Xr){if(Za=Wo||ms?{}:Cs(Q),!po)return Wo?nf(Q,fs(Za,Q)):Of(Q,Do(Za,Q))}else{if(!wr[au])return Xr?Q:{};Za=vs(Q,au,po)}}Oi||(Oi=new Ga);var dl=Oi.get(Q);if(dl)return dl;Oi.set(Q,Za),gg(Q)?Q.forEach(function(Xl){Za.add(du(Xl,be,Pt,Xl,Q,Oi))}):kh(Q)&&Q.forEach(function(Xl,Ql){Za.set(Ql,du(Xl,be,Pt,Ql,Q,Oi))});var El=$s?Wo?Jl:Zl:Wo?wd:vd,Sc=js?s:El(Q);return fr(Sc||Q,function(Xl,Ql){Sc&&(Ql=Xl,Xl=Q[Ql]),ls(Za,Ql,du(Xl,be,Pt,Ql,Q,Oi))}),Za}function Yu(Q){var be=vd(Q);return function(Pt){return $u(Pt,Q,be)}}function $u(Q,be,Pt){var Bn=Pt.length;if(Q==null)return!Bn;for(Q=Co(Q);Bn--;){var Xr=Pt[Bn],Oi=be[Xr],Za=Q[Xr];if(Za===s&&!(Xr in Q)||!Oi(Za))return!1}return!0}function Xu(Q,be,Pt){if(typeof Q!="function")throw new xs(h);return Nf(function(){Q.apply(s,Pt)},be)}function su(Q,be,Pt,Bn){var Xr=-1,Oi=Bi,Za=!0,po=Q.length,Wo=[],$s=be.length;if(!po)return Wo;Pt&&(be=vi(be,ji(Pt))),Bn?(Oi=Ui,Za=!1):be.length>=v&&(Oi=Ha,Za=!1,be=new Pa(be));e:for(;++Xr<po;){var js=Q[Xr],au=Pt==null?js:Pt(js);if(js=Bn||js!==0?js:0,Za&&au===au){for(var ms=$s;ms--;)if(be[ms]===au)continue e;Wo.push(js)}else Oi(be,au,Bn)||Wo.push(js)}return Wo}var Pu=td(ds),Lu=td(zu,!0);function hu(Q,be){var Pt=!0;return Pu(Q,function(Bn,Xr,Oi){return Pt=!!be(Bn,Xr,Oi),Pt}),Pt}function Js(Q,be,Pt){for(var Bn=-1,Xr=Q.length;++Bn<Xr;){var Oi=Q[Bn],Za=be(Oi);if(Za!=null&&(po===s?Za===Za&&!Zd(Za):Pt(Za,po)))var po=Za,Wo=Oi}return Wo}function ys(Q,be,Pt,Bn){var Xr=Q.length;for(Pt=yc(Pt),Pt<0&&(Pt=-Pt>Xr?0:Xr+Pt),Bn=Bn===s||Bn>Xr?Xr:yc(Bn),Bn<0&&(Bn+=Xr),Bn=Pt>Bn?0:yg(Bn);Pt<Bn;)Q[Pt++]=be;return Q}function qo(Q,be){var Pt=[];return Pu(Q,function(Bn,Xr,Oi){be(Bn,Xr,Oi)&&Pt.push(Bn)}),Pt}function Ps(Q,be,Pt,Bn,Xr){var Oi=-1,Za=Q.length;for(Pt||(Pt=Eu),Xr||(Xr=[]);++Oi<Za;){var po=Q[Oi];be>0&&Pt(po)?be>1?Ps(po,be-1,Pt,Bn,Xr):Xa(Xr,po):Bn||(Xr[Xr.length]=po)}return Xr}var Ws=_f(),Qo=_f(!0);function ds(Q,be){return Q&&Ws(Q,be,vd)}function zu(Q,be){return Q&&Qo(Q,be,vd)}function tu(Q,be){return Fi(be,function(Pt){return yh(Q[Pt])})}function Ou(Q,be){be=xc(be,Q);for(var Pt=0,Bn=be.length;Q!=null&&Pt<Bn;)Q=Q[wf(be[Pt++])];return Pt&&Pt==Bn?Q:s}function Hs(Q,be,Pt){var Bn=be(Q);return cc(Q)?Bn:Xa(Bn,Pt(Q))}function pu(Q){return Q==null?Q===s?Ce:ue:jt&&jt in Co(Q)?Hr(Q):rf(Q)}function ku(Q,be){return Q>be}function Nu(Q,be){return Q!=null&&Ys.call(Q,be)}function Fu(Q,be){return Q!=null&&be in Co(Q)}function Ku(Q,be,Pt){return Q>=Ai(be,Pt)&&Q<gr(be,Pt)}function sl(Q,be,Pt){for(var Bn=Pt?Ui:Bi,Xr=Q[0].length,Oi=Q.length,Za=Oi,po=yi(Oi),Wo=1/0,$s=[];Za--;){var js=Q[Za];Za&&be&&(js=vi(js,ji(be))),Wo=Ai(js.length,Wo),po[Za]=!Pt&&(be||Xr>=120&&js.length>=120)?new Pa(Za&&js):s}js=Q[0];var au=-1,ms=po[0];e:for(;++au<Xr&&$s.length<Wo;){var dl=js[au],El=be?be(dl):dl;if(dl=Pt||dl!==0?dl:0,!(ms?Ha(ms,El):Bn($s,El,Pt))){for(Za=Oi;--Za;){var Sc=po[Za];if(!(Sc?Ha(Sc,El):Bn(Q[Za],El,Pt)))continue e}ms&&ms.push(El),$s.push(dl)}}return $s}function lu(Q,be,Pt,Bn){return ds(Q,function(Xr,Oi,Za){be(Bn,Pt(Xr),Oi,Za)}),Bn}function Tu(Q,be,Pt){be=xc(be,Q),Q=Sd(Q,be);var Bn=Q==null?Q:Q[wf(es(be))];return Bn==null?s:Qt(Bn,Q,Pt)}function Vs(Q){return Rf(Q)&&pu(Q)==ie}function Ds(Q){return Rf(Q)&&pu(Q)==tt}function Ks(Q){return Rf(Q)&&pu(Q)==me}function nu(Q,be,Pt,Bn,Xr){return Q===be?!0:Q==null||be==null||!Rf(Q)&&!Rf(be)?Q!==Q&&be!==be:Ju(Q,be,Pt,Bn,nu,Xr)}function Ju(Q,be,Pt,Bn,Xr,Oi){var Za=cc(Q),po=cc(be),Wo=Za?fe:Aa(Q),$s=po?fe:Aa(be);Wo=Wo==ie?ae:Wo,$s=$s==ie?ae:$s;var js=Wo==ae,au=$s==ae,ms=Wo==$s;if(ms&&Fh(Q)){if(!Fh(be))return!1;Za=!0,js=!1}if(ms&&!js)return Oi||(Oi=new Ga),Za||fv(Q)?Tl(Q,be,Pt,Bn,Xr,Oi):Du(Q,be,Wo,Pt,Bn,Xr,Oi);if(!(Pt&S)){var dl=js&&Ys.call(Q,"__wrapped__"),El=au&&Ys.call(be,"__wrapped__");if(dl||El){var Sc=dl?Q.value():Q,Xl=El?be.value():be;return Oi||(Oi=new Ga),Xr(Sc,Xl,Pt,Bn,Oi)}}return ms?(Oi||(Oi=new Ga),cl(Q,be,Pt,Bn,Xr,Oi)):!1}function nl(Q){return Rf(Q)&&Aa(Q)==nt}function ec(Q,be,Pt,Bn){var Xr=Pt.length,Oi=Xr,Za=!Bn;if(Q==null)return!Oi;for(Q=Co(Q);Xr--;){var po=Pt[Xr];if(Za&&po[2]?po[1]!==Q[po[0]]:!(po[0]in Q))return!1}for(;++Xr<Oi;){po=Pt[Xr];var Wo=po[0],$s=Q[Wo],js=po[1];if(Za&&po[2]){if($s===s&&!(Wo in Q))return!1}else{var au=new Ga;if(Bn)var ms=Bn($s,js,Wo,Q,be,au);if(!(ms===s?nu(js,$s,S|w,Bn,au):ms))return!1}}return!0}function Mc(Q){if(!$f(Q)||bs(Q))return!1;var be=yh(Q)?vr:We;return be.test(Df(Q))}function hc(Q){return Rf(Q)&&pu(Q)==Ye}function Ol(Q){return Rf(Q)&&Aa(Q)==qe}function Nl(Q){return Rf(Q)&&Uv(Q.length)&&!!Go[pu(Q)]}function wl(Q){return typeof Q=="function"?Q:Q==null?jd:typeof Q=="object"?cc(Q)?$l(Q[0],Q[1]):Gc(Q):Ng(Q)}function Fl(Q){if(!Zc(Q))return Yn(Q);var be=[];for(var Pt in Co(Q))Ys.call(Q,Pt)&&Pt!="constructor"&&be.push(Pt);return be}function rc(Q){if(!$f(Q))return ud(Q);var be=Zc(Q),Pt=[];for(var Bn in Q)Bn=="constructor"&&(be||!Ys.call(Q,Bn))||Pt.push(Bn);return Pt}function Ic(Q,be){return Q<be}function kl(Q,be){var Pt=-1,Bn=$d(Q)?yi(Q.length):[];return Pu(Q,function(Xr,Oi,Za){Bn[++Pt]=be(Xr,Oi,Za)}),Bn}function Gc(Q){var be=cr(Q);return be.length==1&&be[0][2]?Yc(be[0][0],be[0][1]):function(Pt){return Pt===Q||ec(Pt,Q,be)}}function $l(Q,be){return Cl(Q)&&Af(be)?Yc(wf(Q),be):function(Pt){var Bn=mp(Pt,Q);return Bn===s&&Bn===be?yp(Pt,Q):nu(be,Bn,S|w)}}function Ml(Q,be,Pt,Bn,Xr){Q!==be&&Ws(be,function(Oi,Za){if(Xr||(Xr=new Ga),$f(Oi))zc(Q,be,Za,Pt,Ml,Bn,Xr);else{var po=Bn?Bn(hf(Q,Za),Oi,Za+"",Q,be,Xr):s;po===s&&(po=Oi),rs(Q,Za,po)}},wd)}function zc(Q,be,Pt,Bn,Xr,Oi,Za){var po=hf(Q,Pt),Wo=hf(be,Pt),$s=Za.get(Wo);if($s){rs(Q,Pt,$s);return}var js=Oi?Oi(po,Wo,Pt+"",Q,be,Za):s,au=js===s;if(au){var ms=cc(Wo),dl=!ms&&Fh(Wo),El=!ms&&!dl&&fv(Wo);js=Wo,ms||dl||El?cc(po)?js=po:qf(po)?js=Jc(po):dl?(au=!1,js=Qu(Wo,!0)):El?(au=!1,js=Hc(Wo,!0)):js=[]:fh(Wo)||mh(Wo)?(js=po,mh(po)?js=pp(po):(!$f(po)||yh(po))&&(js=Cs(Wo))):au=!1}au&&(Za.set(Wo,js),Xr(js,Wo,Bn,Oi,Za),Za.delete(Wo)),rs(Q,Pt,js)}function tf(Q,be){var Pt=Q.length;if(Pt)return be+=be<0?Pt:0,_u(be,Pt)?Q[be]:s}function _c(Q,be,Pt){be.length?be=vi(be,function(Oi){return cc(Oi)?function(Za){return Ou(Za,Oi.length===1?Oi[0]:Oi)}:Oi}):be=[jd];var Bn=-1;be=vi(be,ji(gn()));var Xr=kl(Q,function(Oi,Za,po){var Wo=vi(be,function($s){return $s(Oi)});return{criteria:Wo,index:++Bn,value:Oi}});return br(Xr,function(Oi,Za){return Kc(Oi,Za,Pt)})}function Cc(Q,be){return of(Q,be,function(Pt,Bn){return yp(Q,Bn)})}function of(Q,be,Pt){for(var Bn=-1,Xr=be.length,Oi={};++Bn<Xr;){var Za=be[Bn],po=Ou(Q,Za);Pt(po,Za)&&qu(Oi,xc(Za,Q),po)}return Oi}function Qc(Q){return function(be){return Ou(be,Q)}}function sc(Q,be,Pt,Bn){var Xr=Bn?Le:le,Oi=-1,Za=be.length,po=Q;for(Q===be&&(be=Jc(be)),Pt&&(po=vi(Q,ji(Pt)));++Oi<Za;)for(var Wo=0,$s=be[Oi],js=Pt?Pt($s):$s;(Wo=Xr(po,js,Wo,Bn))>-1;)po!==Q&&Mn.call(po,Wo,1),Mn.call(Q,Wo,1);return Q}function ul(Q,be){for(var Pt=Q?be.length:0,Bn=Pt-1;Pt--;){var Xr=be[Pt];if(Pt==Bn||Xr!==Oi){var Oi=Xr;_u(Xr)?Mn.call(Q,Xr,1):Oc(Q,Xr)}}return Q}function fc(Q,be){return Q+Be(La()*(be-Q+1))}function lf(Q,be,Pt,Bn){for(var Xr=-1,Oi=gr(De((be-Q)/(Pt||1)),0),Za=yi(Oi);Oi--;)Za[Bn?Oi:++Xr]=Q,Q+=Pt;return Za}function vc(Q,be){var Pt="";if(!Q||be<1||be>k)return Pt;do be%2&&(Pt+=Q),be=Be(be/2),be&&(Q+=Q);while(be);return Pt}function yl(Q,be){return ld(th(Q,be,jd),Q+"")}function cf(Q){return ko(dv(Q))}function _l(Q,be){var Pt=dv(Q);return kd(Pt,Qs(be,0,Pt.length))}function qu(Q,be,Pt,Bn){if(!$f(Q))return Q;be=xc(be,Q);for(var Xr=-1,Oi=be.length,Za=Oi-1,po=Q;po!=null&&++Xr<Oi;){var Wo=wf(be[Xr]),$s=Pt;if(Wo==="__proto__"||Wo==="constructor"||Wo==="prototype")return Q;if(Xr!=Za){var js=po[Wo];$s=Bn?Bn(js,Wo,po):s,$s===s&&($s=$f(js)?js:_u(be[Xr+1])?[]:{})}ls(po,Wo,$s),po=po[Wo]}return Q}var ic=Gu?function(Q,be){return Gu.set(Q,be),Q}:jd,jl=$n?function(Q,be){return $n(Q,"toString",{configurable:!0,enumerable:!1,value:Pp(be),writable:!0})}:jd;function lc(Q){return kd(dv(Q))}function Rl(Q,be,Pt){var Bn=-1,Xr=Q.length;be<0&&(be=-be>Xr?0:Xr+be),Pt=Pt>Xr?Xr:Pt,Pt<0&&(Pt+=Xr),Xr=be>Pt?0:Pt-be>>>0,be>>>=0;for(var Oi=yi(Xr);++Bn<Xr;)Oi[Bn]=Q[Bn+be];return Oi}function al(Q,be){var Pt;return Pu(Q,function(Bn,Xr,Oi){return Pt=be(Bn,Xr,Oi),!Pt}),!!Pt}function ll(Q,be,Pt){var Bn=0,Xr=Q==null?Bn:Q.length;if(typeof be=="number"&&be===be&&Xr<=G){for(;Bn<Xr;){var Oi=Bn+Xr>>>1,Za=Q[Oi];Za!==null&&!Zd(Za)&&(Pt?Za<=be:Za<be)?Bn=Oi+1:Xr=Oi}return Xr}return Wl(Q,be,jd,Pt)}function Wl(Q,be,Pt,Bn){var Xr=0,Oi=Q==null?0:Q.length;if(Oi===0)return 0;be=Pt(be);for(var Za=be!==be,po=be===null,Wo=Zd(be),$s=be===s;Xr<Oi;){var js=Be((Xr+Oi)/2),au=Pt(Q[js]),ms=au!==s,dl=au===null,El=au===au,Sc=Zd(au);if(Za)var Xl=Bn||El;else $s?Xl=El&&(Bn||ms):po?Xl=El&&ms&&(Bn||!dl):Wo?Xl=El&&ms&&!dl&&(Bn||!Sc):dl||Sc?Xl=!1:Xl=Bn?au<=be:au<be;Xl?Xr=js+1:Oi=js}return Ai(Oi,ce)}function dc(Q,be){for(var Pt=-1,Bn=Q.length,Xr=0,Oi=[];++Pt<Bn;){var Za=Q[Pt],po=be?be(Za):Za;if(!Pt||!Gd(po,Wo)){var Wo=po;Oi[Xr++]=Za===0?0:Za}}return Oi}function Bl(Q){return typeof Q=="number"?Q:Zd(Q)?V:+Q}function Pl(Q){if(typeof Q=="string")return Q;if(cc(Q))return vi(Q,Pl)+"";if(Zd(Q))return bi?bi.call(Q):"";var be=Q+"";return be=="0"&&1/Q==-$?"-0":be}function Ll(Q,be,Pt){var Bn=-1,Xr=Bi,Oi=Q.length,Za=!0,po=[],Wo=po;if(Pt)Za=!1,Xr=Ui;else if(Oi>=v){var $s=be?null:xo(Q);if($s)return nr($s);Za=!1,Xr=Ha,Wo=new Pa}else Wo=be?[]:po;e:for(;++Bn<Oi;){var js=Q[Bn],au=be?be(js):js;if(js=Pt||js!==0?js:0,Za&&au===au){for(var ms=Wo.length;ms--;)if(Wo[ms]===au)continue e;be&&Wo.push(au),po.push(js)}else Xr(Wo,au,Pt)||(Wo!==po&&Wo.push(au),po.push(js))}return po}function Oc(Q,be){return be=xc(be,Q),Q=Sd(Q,be),Q==null||delete Q[wf(es(be))]}function kc(Q,be,Pt,Bn){return qu(Q,be,Pt(Ou(Q,be)),Bn)}function sf(Q,be,Pt,Bn){for(var Xr=Q.length,Oi=Bn?Xr:-1;(Bn?Oi--:++Oi<Xr)&&be(Q[Oi],Oi,Q););return Pt?Rl(Q,Bn?0:Oi,Bn?Oi+1:Xr):Rl(Q,Bn?Oi+1:0,Bn?Xr:Oi)}function Bc(Q,be){var Pt=Q;return Pt instanceof Qi&&(Pt=Pt.value()),Ko(be,function(Bn,Xr){return Xr.func.apply(Xr.thisArg,Xa([Bn],Xr.args))},Pt)}function Ef(Q,be,Pt){var Bn=Q.length;if(Bn<2)return Bn?Ll(Q[0]):[];for(var Xr=-1,Oi=yi(Bn);++Xr<Bn;)for(var Za=Q[Xr],po=-1;++po<Bn;)po!=Xr&&(Oi[Xr]=su(Oi[Xr]||Za,Q[po],be,Pt));return Ll(Ps(Oi,1),be,Pt)}function Sf(Q,be,Pt){for(var Bn=-1,Xr=Q.length,Oi=be.length,Za={};++Bn<Xr;){var po=Bn<Oi?be[Bn]:s;Pt(Za,Q[Bn],po)}return Za}function bc(Q){return qf(Q)?Q:[]}function yf(Q){return typeof Q=="function"?Q:jd}function xc(Q,be){return cc(Q)?Q:Cl(Q,be)?[Q]:nd(af(Q))}var Mf=yl;function Bu(Q,be,Pt){var Bn=Q.length;return Pt=Pt===s?Bn:Pt,!be&&Pt>=Bn?Q:Rl(Q,be,Pt)}var vl=pn||function(Q){return qn.clearTimeout(Q)};function Qu(Q,be){if(be)return Q.slice();var Pt=Q.length,Bn=St?St(Pt):new Q.constructor(Pt);return Q.copy(Bn),Bn}function Vl(Q){var be=new Q.constructor(Q.byteLength);return new ta(be).set(new ta(Q)),be}function Ul(Q,be){var Pt=be?Vl(Q.buffer):Q.buffer;return new Q.constructor(Pt,Q.byteOffset,Q.byteLength)}function gs(Q){var be=new Q.constructor(Q.source,An.exec(Q));return be.lastIndex=Q.lastIndex,be}function pc(Q){return ri?Co(ri.call(Q)):{}}function Hc(Q,be){var Pt=be?Vl(Q.buffer):Q.buffer;return new Q.constructor(Pt,Q.byteOffset,Q.length)}function bf(Q,be){if(Q!==be){var Pt=Q!==s,Bn=Q===null,Xr=Q===Q,Oi=Zd(Q),Za=be!==s,po=be===null,Wo=be===be,$s=Zd(be);if(!po&&!$s&&!Oi&&Q>be||Oi&&Za&&Wo&&!po&&!$s||Bn&&Za&&Wo||!Pt&&Wo||!Xr)return 1;if(!Bn&&!Oi&&!$s&&Q<be||$s&&Pt&&Xr&&!Bn&&!Oi||po&&Pt&&Xr||!Za&&Xr||!Wo)return-1}return 0}function Kc(Q,be,Pt){for(var Bn=-1,Xr=Q.criteria,Oi=be.criteria,Za=Xr.length,po=Pt.length;++Bn<Za;){var Wo=bf(Xr[Bn],Oi[Bn]);if(Wo){if(Bn>=po)return Wo;var $s=Pt[Bn];return Wo*($s=="desc"?-1:1)}}return Q.index-be.index}function sd(Q,be,Pt,Bn){for(var Xr=-1,Oi=Q.length,Za=Pt.length,po=-1,Wo=be.length,$s=gr(Oi-Za,0),js=yi(Wo+$s),au=!Bn;++po<Wo;)js[po]=be[po];for(;++Xr<Za;)(au||Xr<Oi)&&(js[Pt[Xr]]=Q[Xr]);for(;$s--;)js[po++]=Q[Xr++];return js}function Ed(Q,be,Pt,Bn){for(var Xr=-1,Oi=Q.length,Za=-1,po=Pt.length,Wo=-1,$s=be.length,js=gr(Oi-po,0),au=yi(js+$s),ms=!Bn;++Xr<js;)au[Xr]=Q[Xr];for(var dl=Xr;++Wo<$s;)au[dl+Wo]=be[Wo];for(;++Za<po;)(ms||Xr<Oi)&&(au[dl+Pt[Za]]=Q[Xr++]);return au}function Jc(Q,be){var Pt=-1,Bn=Q.length;for(be||(be=yi(Bn));++Pt<Bn;)be[Pt]=Q[Pt];return be}function zs(Q,be,Pt,Bn){var Xr=!Pt;Pt||(Pt={});for(var Oi=-1,Za=be.length;++Oi<Za;){var po=be[Oi],Wo=Bn?Bn(Pt[po],Q[po],po,Pt,Q):s;Wo===s&&(Wo=Q[po]),Xr?is(Pt,po,Wo):ls(Pt,po,Wo)}return Pt}function Of(Q,be){return zs(Q,sa(Q),be)}function nf(Q,be){return zs(Q,Ia(Q),be)}function df(Q,be){return function(Pt,Bn){var Xr=cc(Pt)?wn:cs,Oi=be?be():{};return Xr(Pt,Q,gn(Bn,2),Oi)}}function Wf(Q){return yl(function(be,Pt){var Bn=-1,Xr=Pt.length,Oi=Xr>1?Pt[Xr-1]:s,Za=Xr>2?Pt[2]:s;for(Oi=Q.length>3&&typeof Oi=="function"?(Xr--,Oi):s,Za&&ju(Pt[0],Pt[1],Za)&&(Oi=Xr<3?s:Oi,Xr=1),be=Co(be);++Bn<Xr;){var po=Pt[Bn];po&&Q(be,po,Bn,Oi)}return be})}function td(Q,be){return function(Pt,Bn){if(Pt==null)return Pt;if(!$d(Pt))return Q(Pt,Bn);for(var Xr=Pt.length,Oi=be?Xr:-1,Za=Co(Pt);(be?Oi--:++Oi<Xr)&&Bn(Za[Oi],Oi,Za)!==!1;);return Pt}}function _f(Q){return function(be,Pt,Bn){for(var Xr=-1,Oi=Co(be),Za=Bn(be),po=Za.length;po--;){var Wo=Za[Q?po:++Xr];if(Pt(Oi[Wo],Wo,Oi)===!1)break}return be}}function ff(Q,be,Pt){var Bn=be&x,Xr=Tc(Q);function Oi(){var Za=this&&this!==qn&&this instanceof Oi?Xr:Q;return Za.apply(Bn?Pt:this,arguments)}return Oi}function Lf(Q){return function(be){be=af(be);var Pt=Gr(be)?Ka(be):s,Bn=Pt?Pt[0]:be.charAt(0),Xr=Pt?Bu(Pt,1).join(""):be.slice(1);return Bn[Q]()+Xr}}function Ec(Q){return function(be){return Ko(Ig(Ag(be).replace(Ki,"")),Q,"")}}function Tc(Q){return function(){var be=arguments;switch(be.length){case 0:return new Q;case 1:return new Q(be[0]);case 2:return new Q(be[0],be[1]);case 3:return new Q(be[0],be[1],be[2]);case 4:return new Q(be[0],be[1],be[2],be[3]);case 5:return new Q(be[0],be[1],be[2],be[3],be[4]);case 6:return new Q(be[0],be[1],be[2],be[3],be[4],be[5]);case 7:return new Q(be[0],be[1],be[2],be[3],be[4],be[5],be[6])}var Pt=Ua(Q.prototype),Bn=Q.apply(Pt,be);return $f(Bn)?Bn:Pt}}function md(Q,be,Pt){var Bn=Tc(Q);function Xr(){for(var Oi=arguments.length,Za=yi(Oi),po=Oi,Wo=Dt(Xr);po--;)Za[po]=arguments[po];var $s=Oi<3&&Za[0]!==Wo&&Za[Oi-1]!==Wo?[]:cn(Za,Wo);if(Oi-=$s.length,Oi<Pt)return Oo(Q,be,gc,Xr.placeholder,s,Za,$s,s,s,Pt-Oi);var js=this&&this!==qn&&this instanceof Xr?Bn:Q;return Qt(js,this,Za)}return Xr}function Vc(Q){return function(be,Pt,Bn){var Xr=Co(be);if(!$d(be)){var Oi=gn(Pt,3);be=vd(be),Pt=function(po){return Oi(Xr[po],po,Xr)}}var Za=Q(be,Pt,Bn);return Za>-1?Xr[Oi?be[Za]:Za]:s}}function $c(Q){return tl(function(be){var Pt=be.length,Bn=Pt,Xr=Va.prototype.thru;for(Q&&be.reverse();Bn--;){var Oi=be[Bn];if(typeof Oi!="function")throw new xs(h);if(Xr&&!Za&&He(Oi)=="wrapper")var Za=new Va([],!0)}for(Bn=Za?Bn:Pt;++Bn<Pt;){Oi=be[Bn];var po=He(Oi),Wo=po=="wrapper"?Fe(Oi):s;Wo&&cu(Wo[0])&&Wo[1]==(K|T|I|_)&&!Wo[4].length&&Wo[9]==1?Za=Za[He(Wo[0])].apply(Za,Wo[3]):Za=Oi.length==1&&cu(Oi)?Za[po]():Za.thru(Oi)}return function(){var $s=arguments,js=$s[0];if(Za&&$s.length==1&&cc(js))return Za.plant(js).value();for(var au=0,ms=Pt?be[au].apply(this,$s):js;++au<Pt;)ms=be[au].call(this,ms);return ms}})}function gc(Q,be,Pt,Bn,Xr,Oi,Za,po,Wo,$s){var js=be&K,au=be&x,ms=be&P,dl=be&(T|A),El=be&W,Sc=ms?s:Tc(Q);function Xl(){for(var Ql=arguments.length,Uc=yi(Ql),Wc=Ql;Wc--;)Uc[Wc]=arguments[Wc];if(dl)var pd=Dt(Xl),Ud=Ms(Uc,pd);if(Bn&&(Uc=sd(Uc,Bn,Xr,dl)),Oi&&(Uc=Ed(Uc,Oi,Za,dl)),Ql-=Ud,dl&&Ql<$s){var Zf=cn(Uc,pd);return Oo(Q,be,gc,Xl.placeholder,Pt,Uc,Zf,po,Wo,$s-Ql)}var Yd=au?Pt:this,Sh=ms?Yd[Q]:Q;return Ql=Uc.length,po?Uc=Od(Uc,po):El&&Ql>1&&Uc.reverse(),js&&Wo<Ql&&(Uc.length=Wo),this&&this!==qn&&this instanceof Xl&&(Sh=Sc||Tc(Sh)),Sh.apply(Yd,Uc)}return Xl}function qc(Q,be){return function(Pt,Bn){return lu(Pt,Q,be(Bn),{})}}function If(Q,be){return function(Pt,Bn){var Xr;if(Pt===s&&Bn===s)return be;if(Pt!==s&&(Xr=Pt),Bn!==s){if(Xr===s)return Bn;typeof Pt=="string"||typeof Bn=="string"?(Pt=Pl(Pt),Bn=Pl(Bn)):(Pt=Bl(Pt),Bn=Bl(Bn)),Xr=Q(Pt,Bn)}return Xr}}function Dr(Q){return tl(function(be){return be=vi(be,ji(gn())),yl(function(Pt){var Bn=this;return Q(be,function(Xr){return Qt(Xr,Bn,Pt)})})})}function pr(Q,be){be=be===s?" ":Pl(be);var Pt=be.length;if(Pt<2)return Pt?vc(be,Q):be;var Bn=vc(be,De(Q/_a(be)));return Gr(be)?Bu(Ka(Bn),0,Q).join(""):Bn.slice(0,Q)}function Mi(Q,be,Pt,Bn){var Xr=be&x,Oi=Tc(Q);function Za(){for(var po=-1,Wo=arguments.length,$s=-1,js=Bn.length,au=yi(js+Wo),ms=this&&this!==qn&&this instanceof Za?Oi:Q;++$s<js;)au[$s]=Bn[$s];for(;Wo--;)au[$s++]=arguments[++po];return Qt(ms,Xr?Pt:this,au)}return Za}function Zi(Q){return function(be,Pt,Bn){return Bn&&typeof Bn!="number"&&ju(be,Pt,Bn)&&(Pt=Bn=s),be=bh(be),Pt===s?(Pt=be,be=0):Pt=bh(Pt),Bn=Bn===s?be<Pt?1:-1:bh(Bn),lf(be,Pt,Bn,Q)}}function Ta(Q){return function(be,Pt){return typeof be=="string"&&typeof Pt=="string"||(be=ah(be),Pt=ah(Pt)),Q(be,Pt)}}function Oo(Q,be,Pt,Bn,Xr,Oi,Za,po,Wo,$s){var js=be&T,au=js?Za:s,ms=js?s:Za,dl=js?Oi:s,El=js?s:Oi;be|=js?I:N,be&=~(js?N:I),be&R||(be&=~(x|P));var Sc=[Q,be,Xr,dl,au,El,ms,po,Wo,$s],Xl=Pt.apply(s,Sc);return cu(Q)&&vf(Xl,Sc),Xl.placeholder=Bn,cd(Xl,Q,be)}function No(Q){var be=Io[Q];return function(Pt,Bn){if(Pt=ah(Pt),Bn=Bn==null?0:Ai(yc(Bn),292),Bn&&nn(Pt)){var Xr=(af(Pt)+"e").split("e"),Oi=be(Xr[0]+"e"+(+Xr[1]+Bn));return Xr=(af(Oi)+"e").split("e"),+(Xr[0]+"e"+(+Xr[1]-Bn))}return be(Pt)}}var xo=Ho&&1/nr(new Ho([,-0]))[1]==$?function(Q){return new Ho(Q)}:Tp;function Ls(Q){return function(be){var Pt=Aa(be);return Pt==nt?Fa(be):Pt==qe?ir(be):Li(be,Q(be))}}function Fs(Q,be,Pt,Bn,Xr,Oi,Za,po){var Wo=be&P;if(!Wo&&typeof Q!="function")throw new xs(h);var $s=Bn?Bn.length:0;if($s||(be&=~(I|N),Bn=Xr=s),Za=Za===s?Za:gr(yc(Za),0),po=po===s?po:yc(po),$s-=Xr?Xr.length:0,be&N){var js=Bn,au=Xr;Bn=Xr=s}var ms=Wo?s:Fe(Q),dl=[Q,be,Pt,Bn,Xr,js,au,Oi,Za,po];if(ms&&Xf(dl,ms),Q=dl[0],be=dl[1],Pt=dl[2],Bn=dl[3],Xr=dl[4],po=dl[9]=dl[9]===s?Wo?0:Q.length:gr(dl[9]-$s,0),!po&&be&(T|A)&&(be&=~(T|A)),!be||be==x)var El=ff(Q,be,Pt);else be==T||be==A?El=md(Q,be,po):(be==I||be==(x|I))&&!Xr.length?El=Mi(Q,be,Pt,Bn):El=gc.apply(s,dl);var Sc=ms?ic:vf;return cd(Sc(El,dl),Q,be)}function As(Q,be,Pt,Bn){return Q===s||Gd(Q,Us[Pt])&&!Ys.call(Bn,Pt)?be:Q}function Cu(Q,be,Pt,Bn,Xr,Oi){return $f(Q)&&$f(be)&&(Oi.set(be,Q),Ml(Q,be,s,Cu,Oi),Oi.delete(be)),Q}function Iu(Q){return fh(Q)?s:Q}function Tl(Q,be,Pt,Bn,Xr,Oi){var Za=Pt&S,po=Q.length,Wo=be.length;if(po!=Wo&&!(Za&&Wo>po))return!1;var $s=Oi.get(Q),js=Oi.get(be);if($s&&js)return $s==be&&js==Q;var au=-1,ms=!0,dl=Pt&w?new Pa:s;for(Oi.set(Q,be),Oi.set(be,Q);++au<po;){var El=Q[au],Sc=be[au];if(Bn)var Xl=Za?Bn(Sc,El,au,be,Q,Oi):Bn(El,Sc,au,Q,be,Oi);if(Xl!==s){if(Xl)continue;ms=!1;break}if(dl){if(!Lo(be,function(Ql,Uc){if(!Ha(dl,Uc)&&(El===Ql||Xr(El,Ql,Pt,Bn,Oi)))return dl.push(Uc)})){ms=!1;break}}else if(!(El===Sc||Xr(El,Sc,Pt,Bn,Oi))){ms=!1;break}}return Oi.delete(Q),Oi.delete(be),ms}function Du(Q,be,Pt,Bn,Xr,Oi,Za){switch(Pt){case ke:if(Q.byteLength!=be.byteLength||Q.byteOffset!=be.byteOffset)return!1;Q=Q.buffer,be=be.buffer;case tt:return!(Q.byteLength!=be.byteLength||!Oi(new ta(Q),new ta(be)));case he:case me:case Re:return Gd(+Q,+be);case we:return Q.name==be.name&&Q.message==be.message;case Ye:case At:return Q==be+"";case nt:var po=Fa;case qe:var Wo=Bn&S;if(po||(po=nr),Q.size!=be.size&&!Wo)return!1;var $s=Za.get(Q);if($s)return $s==be;Bn|=w,Za.set(Q,be);var js=Tl(po(Q),po(be),Bn,Xr,Oi,Za);return Za.delete(Q),js;case It:if(ri)return ri.call(Q)==ri.call(be)}return!1}function cl(Q,be,Pt,Bn,Xr,Oi){var Za=Pt&S,po=Zl(Q),Wo=po.length,$s=Zl(be),js=$s.length;if(Wo!=js&&!Za)return!1;for(var au=Wo;au--;){var ms=po[au];if(!(Za?ms in be:Ys.call(be,ms)))return!1}var dl=Oi.get(Q),El=Oi.get(be);if(dl&&El)return dl==be&&El==Q;var Sc=!0;Oi.set(Q,be),Oi.set(be,Q);for(var Xl=Za;++au<Wo;){ms=po[au];var Ql=Q[ms],Uc=be[ms];if(Bn)var Wc=Za?Bn(Uc,Ql,ms,be,Q,Oi):Bn(Ql,Uc,ms,Q,be,Oi);if(!(Wc===s?Ql===Uc||Xr(Ql,Uc,Pt,Bn,Oi):Wc)){Sc=!1;break}Xl||(Xl=ms=="constructor")}if(Sc&&!Xl){var pd=Q.constructor,Ud=be.constructor;pd!=Ud&&"constructor"in Q&&"constructor"in be&&!(typeof pd=="function"&&pd instanceof pd&&typeof Ud=="function"&&Ud instanceof Ud)&&(Sc=!1)}return Oi.delete(Q),Oi.delete(be),Sc}function tl(Q){return ld(th(Q,s,Ad),Q+"")}function Zl(Q){return Hs(Q,vd,sa)}function Jl(Q){return Hs(Q,wd,Ia)}var Fe=Gu?function(Q){return Gu.get(Q)}:Tp;function He(Q){for(var be=Q.name+"",Pt=an[be],Bn=Ys.call(an,be)?Pt.length:0;Bn--;){var Xr=Pt[Bn],Oi=Xr.func;if(Oi==null||Oi==Q)return Xr.name}return be}function Dt(Q){var be=Ys.call(_n,"placeholder")?_n:Q;return be.placeholder}function gn(){var Q=_n.iteratee||Cp;return Q=Q===Cp?wl:Q,arguments.length?Q(arguments[0],arguments[1]):Q}function Xn(Q,be){var Pt=Q.__data__;return Yl(be)?Pt[typeof be=="string"?"string":"hash"]:Pt.map}function cr(Q){for(var be=vd(Q),Pt=be.length;Pt--;){var Bn=be[Pt],Xr=Q[Bn];be[Pt]=[Bn,Xr,Af(Xr)]}return be}function jr(Q,be){var Pt=ur(Q,be);return Mc(Pt)?Pt:s}function Hr(Q){var be=Ys.call(Q,jt),Pt=Q[jt];try{Q[jt]=s;var Bn=!0}catch{}var Xr=ql.call(Q);return Bn&&(be?Q[jt]=Pt:delete Q[jt]),Xr}var sa=gt?function(Q){return Q==null?[]:(Q=Co(Q),Fi(gt(Q),function(be){return _t.call(Q,be)}))}:pv,Ia=gt?function(Q){for(var be=[];Q;)Xa(be,sa(Q)),Q=pt(Q);return be}:pv,Aa=pu;(go&&Aa(new go(new ArrayBuffer(1)))!=ke||Ao&&Aa(new Ao)!=nt||Fo&&Aa(Fo.resolve())!=ve||Ho&&Aa(new Ho)!=qe||eu&&Aa(new eu)!=Ae)&&(Aa=function(Q){var be=pu(Q),Pt=be==ae?Q.constructor:s,Bn=Pt?Df(Pt):"";if(Bn)switch(Bn){case Nn:return ke;case tr:return nt;case In:return ve;case di:return qe;case oi:return Ae}return be});function pa(Q,be,Pt){for(var Bn=-1,Xr=Pt.length;++Bn<Xr;){var Oi=Pt[Bn],Za=Oi.size;switch(Oi.type){case"drop":Q+=Za;break;case"dropRight":be-=Za;break;case"take":be=Ai(be,Q+Za);break;case"takeRight":Q=gr(Q,be-Za);break}}return{start:Q,end:be}}function Yi(Q){var be=Q.match(en);return be?be[1].split(wt):[]}function eo(Q,be,Pt){be=xc(be,Q);for(var Bn=-1,Xr=be.length,Oi=!1;++Bn<Xr;){var Za=wf(be[Bn]);if(!(Oi=Q!=null&&Pt(Q,Za)))break;Q=Q[Za]}return Oi||++Bn!=Xr?Oi:(Xr=Q==null?0:Q.length,!!Xr&&Uv(Xr)&&_u(Za,Xr)&&(cc(Q)||mh(Q)))}function $o(Q){var be=Q.length,Pt=new Q.constructor(be);return be&&typeof Q[0]=="string"&&Ys.call(Q,"index")&&(Pt.index=Q.index,Pt.input=Q.input),Pt}function Cs(Q){return typeof Q.constructor=="function"&&!Zc(Q)?Ua(pt(Q)):{}}function vs(Q,be,Pt){var Bn=Q.constructor;switch(be){case tt:return Vl(Q);case he:case me:return new Bn(+Q);case ke:return Ul(Q,Pt);case Oe:case je:case Et:case ct:case ut:case Ne:case mt:case bt:case Gt:return Hc(Q,Pt);case nt:return new Bn;case Re:case At:return new Bn(Q);case Ye:return gs(Q);case qe:return new Bn;case It:return pc(Q)}}function Rs(Q,be){var Pt=be.length;if(!Pt)return Q;var Bn=Pt-1;return be[Bn]=(Pt>1?"& ":"")+be[Bn],be=be.join(Pt>2?", ":" "),Q.replace(st,`{ /* [wrapped with `+be+`] */ `)}function Eu(Q){return cc(Q)||mh(Q)||!!(Pr&&Q&&Q[Pr])}function _u(Q,be){var Pt=typeof Q;return be=be??k,!!be&&(Pt=="number"||Pt!="symbol"&&it.test(Q))&&Q>-1&&Q%1==0&&Q<be}function ju(Q,be,Pt){if(!$f(Pt))return!1;var Bn=typeof be;return(Bn=="number"?$d(Pt)&&_u(be,Pt.length):Bn=="string"&&be in Pt)?Gd(Pt[be],Q):!1}function Cl(Q,be){if(cc(Q))return!1;var Pt=typeof Q;return Pt=="number"||Pt=="symbol"||Pt=="boolean"||Q==null||Zd(Q)?!0:rt.test(Q)||!Xt.test(Q)||be!=null&&Q in Co(be)}function Yl(Q){var be=typeof Q;return be=="string"||be=="number"||be=="symbol"||be=="boolean"?Q!=="__proto__":Q===null}function cu(Q){var be=He(Q),Pt=_n[be];if(typeof Pt!="function"||!(be in Qi.prototype))return!1;if(Q===Pt)return!0;var Bn=Fe(Pt);return!!Bn&&Q===Bn[0]}function bs(Q){return!!Zu&&Zu in Q}var wc=fu?yh:Ap;function Zc(Q){var be=Q&&Q.constructor,Pt=typeof be=="function"&&be.prototype||Us;return Q===Pt}function Af(Q){return Q===Q&&!$f(Q)}function Yc(Q,be){return function(Pt){return Pt==null?!1:Pt[Q]===be&&(be!==s||Q in Co(Pt))}}function Yf(Q){var be=Vo(Q,function(Bn){return Pt.size===f&&Pt.clear(),Bn}),Pt=be.cache;return be}function Xf(Q,be){var Pt=Q[1],Bn=be[1],Xr=Pt|Bn,Oi=Xr<(x|P|K),Za=Bn==K&&Pt==T||Bn==K&&Pt==_&&Q[7].length<=be[8]||Bn==(K|_)&&be[7].length<=be[8]&&Pt==T;if(!(Oi||Za))return Q;Bn&x&&(Q[2]=be[2],Xr|=Pt&x?0:R);var po=be[3];if(po){var Wo=Q[3];Q[3]=Wo?sd(Wo,po,be[4]):po,Q[4]=Wo?cn(Q[3],g):be[4]}return po=be[5],po&&(Wo=Q[5],Q[5]=Wo?Ed(Wo,po,be[6]):po,Q[6]=Wo?cn(Q[5],g):be[6]),po=be[7],po&&(Q[7]=po),Bn&K&&(Q[8]=Q[8]==null?be[8]:Ai(Q[8],be[8])),Q[9]==null&&(Q[9]=be[9]),Q[0]=be[0],Q[1]=Xr,Q}function ud(Q){var be=[];if(Q!=null)for(var Pt in Co(Q))be.push(Pt);return be}function rf(Q){return ql.call(Q)}function th(Q,be,Pt){return be=gr(be===s?Q.length-1:be,0),function(){for(var Bn=arguments,Xr=-1,Oi=gr(Bn.length-be,0),Za=yi(Oi);++Xr<Oi;)Za[Xr]=Bn[be+Xr];Xr=-1;for(var po=yi(be+1);++Xr<be;)po[Xr]=Bn[Xr];return po[be]=Pt(Za),Qt(Q,this,po)}}function Sd(Q,be){return be.length<2?Q:Ou(Q,Rl(be,0,-1))}function Od(Q,be){for(var Pt=Q.length,Bn=Ai(be.length,Pt),Xr=Jc(Q);Bn--;){var Oi=be[Bn];Q[Bn]=_u(Oi,Pt)?Xr[Oi]:s}return Q}function hf(Q,be){if(!(be==="constructor"&&typeof Q[be]=="function")&&be!="__proto__")return Q[be]}var vf=pf(ic),Nf=oe||function(Q,be){return qn.setTimeout(Q,be)},ld=pf(jl);function cd(Q,be,Pt){var Bn=be+"";return ld(Q,Rs(Bn,nh(Yi(Bn),Pt)))}function pf(Q){var be=0,Pt=0;return function(){var Bn=$i(),Xr=Z-(Bn-Pt);if(Pt=Bn,Xr>0){if(++be>=X)return arguments[0]}else be=0;return Q.apply(s,arguments)}}function kd(Q,be){var Pt=-1,Bn=Q.length,Xr=Bn-1;for(be=be===s?Bn:be;++Pt<be;){var Oi=fc(Pt,Xr),Za=Q[Oi];Q[Oi]=Q[Pt],Q[Pt]=Za}return Q.length=be,Q}var nd=Yf(function(Q){var be=[];return Q.charCodeAt(0)===46&&be.push(""),Q.replace(Rt,function(Pt,Bn,Xr,Oi){be.push(Xr?Oi.replace(on,"$1"):Bn||Pt)}),be});function wf(Q){if(typeof Q=="string"||Zd(Q))return Q;var be=Q+"";return be=="0"&&1/Q==-$?"-0":be}function Df(Q){if(Q!=null){try{return bu.call(Q)}catch{}try{return Q+""}catch{}}return""}function nh(Q,be){return fr(te,function(Pt){var Bn="_."+Pt[0];be&Pt[1]&&!Bi(Q,Bn)&&Q.push(Bn)}),Q.sort()}function Bd(Q){if(Q instanceof Qi)return Q.clone();var be=new Va(Q.__wrapped__,Q.__chain__);return be.__actions__=Jc(Q.__actions__),be.__index__=Q.__index__,be.__values__=Q.__values__,be}function xd(Q,be,Pt){(Pt?ju(Q,be,Pt):be===s)?be=1:be=gr(yc(be),0);var Bn=Q==null?0:Q.length;if(!Bn||be<1)return[];for(var Xr=0,Oi=0,Za=yi(De(Bn/be));Xr<Bn;)Za[Oi++]=Rl(Q,Xr,Xr+=be);return Za}function Th(Q){for(var be=-1,Pt=Q==null?0:Q.length,Bn=0,Xr=[];++be<Pt;){var Oi=Q[be];Oi&&(Xr[Bn++]=Oi)}return Xr}function Td(){var Q=arguments.length;if(!Q)return[];for(var be=yi(Q-1),Pt=arguments[0],Bn=Q;Bn--;)be[Bn-1]=arguments[Bn];return Xa(cc(Pt)?Jc(Pt):[Pt],Ps(be,1))}var Qf=yl(function(Q,be){return qf(Q)?su(Q,Ps(be,1,qf,!0)):[]}),Pf=yl(function(Q,be){var Pt=es(be);return qf(Pt)&&(Pt=s),qf(Q)?su(Q,Ps(be,1,qf,!0),gn(Pt,2)):[]}),mc=yl(function(Q,be){var Pt=es(be);return qf(Pt)&&(Pt=s),qf(Q)?su(Q,Ps(be,1,qf,!0),s,Pt):[]});function Ac(Q,be,Pt){var Bn=Q==null?0:Q.length;return Bn?(be=Pt||be===s?1:yc(be),Rl(Q,be<0?0:be,Bn)):[]}function ef(Q,be,Pt){var Bn=Q==null?0:Q.length;return Bn?(be=Pt||be===s?1:yc(be),be=Bn-be,Rl(Q,0,be<0?0:be)):[]}function gf(Q,be){return Q&&Q.length?sf(Q,gn(be,3),!0,!0):[]}function zf(Q,be){return Q&&Q.length?sf(Q,gn(be,3),!0):[]}function Hf(Q,be,Pt,Bn){var Xr=Q==null?0:Q.length;return Xr?(Pt&&typeof Pt!="number"&&ju(Q,be,Pt)&&(Pt=0,Bn=Xr),ys(Q,be,Pt,Bn)):[]}function mf(Q,be,Pt){var Bn=Q==null?0:Q.length;if(!Bn)return-1;var Xr=Pt==null?0:yc(Pt);return Xr<0&&(Xr=gr(Bn+Xr,0)),B(Q,gn(be,3),Xr)}function fd(Q,be,Pt){var Bn=Q==null?0:Q.length;if(!Bn)return-1;var Xr=Bn-1;return Pt!==s&&(Xr=yc(Pt),Xr=Pt<0?gr(Bn+Xr,0):Ai(Xr,Bn-1)),B(Q,gn(be,3),Xr,!0)}function Ad(Q){var be=Q==null?0:Q.length;return be?Ps(Q,1):[]}function Ah(Q){var be=Q==null?0:Q.length;return be?Ps(Q,$):[]}function Rh(Q,be){var Pt=Q==null?0:Q.length;return Pt?(be=be===s?1:yc(be),Ps(Q,be)):[]}function lh(Q){for(var be=-1,Pt=Q==null?0:Q.length,Bn={};++be<Pt;){var Xr=Q[be];Bn[Xr[0]]=Xr[1]}return Bn}function Kf(Q){return Q&&Q.length?Q[0]:s}function Mh(Q,be,Pt){var Bn=Q==null?0:Q.length;if(!Bn)return-1;var Xr=Pt==null?0:yc(Pt);return Xr<0&&(Xr=gr(Bn+Xr,0)),le(Q,be,Xr)}function rd(Q){var be=Q==null?0:Q.length;return be?Rl(Q,0,-1):[]}var Ff=yl(function(Q){var be=vi(Q,bc);return be.length&&be[0]===Q[0]?sl(be):[]}),yd=yl(function(Q){var be=es(Q),Pt=vi(Q,bc);return be===es(Pt)?be=s:Pt.pop(),Pt.length&&Pt[0]===Q[0]?sl(Pt,gn(be,2)):[]}),ra=yl(function(Q){var be=es(Q),Pt=vi(Q,bc);return be=typeof be=="function"?be:s,be&&Pt.pop(),Pt.length&&Pt[0]===Q[0]?sl(Pt,s,be):[]});function _o(Q,be){return Q==null?"":Rn.call(Q,be)}function es(Q){var be=Q==null?0:Q.length;return be?Q[be-1]:s}function as(Q,be,Pt){var Bn=Q==null?0:Q.length;if(!Bn)return-1;var Xr=Bn;return Pt!==s&&(Xr=yc(Pt),Xr=Xr<0?gr(Bn+Xr,0):Ai(Xr,Bn-1)),be===be?ua(Q,be,Xr):B(Q,Je,Xr,!0)}function Bs(Q,be){return Q&&Q.length?tf(Q,yc(be)):s}var qs=yl(gu);function gu(Q,be){return Q&&Q.length&&be&&be.length?sc(Q,be):Q}function vu(Q,be,Pt){return Q&&Q.length&&be&&be.length?sc(Q,be,gn(Pt,2)):Q}function ru(Q,be,Pt){return Q&&Q.length&&be&&be.length?sc(Q,be,s,Pt):Q}var Ru=tl(function(Q,be){var Pt=Q==null?0:Q.length,Bn=Os(Q,be);return ul(Q,vi(be,function(Xr){return _u(Xr,Pt)?+Xr:Xr}).sort(bf)),Bn});function rl(Q,be){var Pt=[];if(!(Q&&Q.length))return Pt;var Bn=-1,Xr=[],Oi=Q.length;for(be=gn(be,3);++Bn<Oi;){var Za=Q[Bn];be(Za,Bn,Q)&&(Pt.push(Za),Xr.push(Bn))}return ul(Q,Xr),Pt}function fl(Q){return Q==null?Q:Qa.call(Q)}function pl(Q,be,Pt){var Bn=Q==null?0:Q.length;return Bn?(Pt&&typeof Pt!="number"&&ju(Q,be,Pt)?(be=0,Pt=Bn):(be=be==null?0:yc(be),Pt=Pt===s?Bn:yc(Pt)),Rl(Q,be,Pt)):[]}function wu(Q,be){return ll(Q,be)}function Vu(Q,be,Pt){return Wl(Q,be,gn(Pt,2))}function zl(Q,be){var Pt=Q==null?0:Q.length;if(Pt){var Bn=ll(Q,be);if(Bn<Pt&&Gd(Q[Bn],be))return Bn}return-1}function Ze(Q,be){return ll(Q,be,!0)}function ge(Q,be,Pt){return Wl(Q,be,gn(Pt,2),!0)}function et(Q,be){var Pt=Q==null?0:Q.length;if(Pt){var Bn=ll(Q,be,!0)-1;if(Gd(Q[Bn],be))return Bn}return-1}function Ln(Q){return Q&&Q.length?dc(Q):[]}function zr(Q,be){return Q&&Q.length?dc(Q,gn(be,2)):[]}function Ji(Q){var be=Q==null?0:Q.length;return be?Rl(Q,1,be):[]}function Ja(Q,be,Pt){return Q&&Q.length?(be=Pt||be===s?1:yc(be),Rl(Q,0,be<0?0:be)):[]}function lo(Q,be,Pt){var Bn=Q==null?0:Q.length;return Bn?(be=Pt||be===s?1:yc(be),be=Bn-be,Rl(Q,be<0?0:be,Bn)):[]}function To(Q,be){return Q&&Q.length?sf(Q,gn(be,3),!1,!0):[]}function Xo(Q,be){return Q&&Q.length?sf(Q,gn(be,3)):[]}var mu=yl(function(Q){return Ll(Ps(Q,1,qf,!0))}),ws=yl(function(Q){var be=es(Q);return qf(be)&&(be=s),Ll(Ps(Q,1,qf,!0),gn(be,2))}),Uu=yl(function(Q){var be=es(Q);return be=typeof be=="function"?be:s,Ll(Ps(Q,1,qf,!0),s,be)});function el(Q){return Q&&Q.length?Ll(Q):[]}function Gl(Q,be){return Q&&Q.length?Ll(Q,gn(be,2)):[]}function Al(Q,be){return be=typeof be=="function"?be:s,Q&&Q.length?Ll(Q,s,be):[]}function ac(Q){if(!(Q&&Q.length))return[];var be=0;return Q=Fi(Q,function(Pt){if(qf(Pt))return be=gr(Pt.length,be),!0}),mi(be,function(Pt){return vi(Q,Vt(Pt))})}function Lc(Q,be){if(!(Q&&Q.length))return[];var Pt=ac(Q);return be==null?Pt:vi(Pt,function(Bn){return Qt(be,s,Bn)})}var xl=yl(function(Q,be){return qf(Q)?su(Q,be):[]}),hl=yl(function(Q){return Ef(Fi(Q,qf))}),Su=yl(function(Q){var be=es(Q);return qf(be)&&(be=s),Ef(Fi(Q,qf),gn(be,2))}),Dc=yl(function(Q){var be=es(Q);return be=typeof be=="function"?be:s,Ef(Fi(Q,qf),s,be)}),Xc=yl(ac);function jc(Q,be){return Sf(Q||[],be||[],ls)}function Nc(Q,be){return Sf(Q||[],be||[],qu)}var ad=yl(function(Q){var be=Q.length,Pt=be>1?Q[be-1]:s;return Pt=typeof Pt=="function"?(Q.pop(),Pt):s,Lc(Q,Pt)});function kf(Q){var be=_n(Q);return be.__chain__=!0,be}function Cf(Q,be){return be(Q),Q}function Rd(Q,be){return be(Q)}var vh=tl(function(Q){var be=Q.length,Pt=be?Q[0]:0,Bn=this.__wrapped__,Xr=function(Oi){return Os(Oi,Q)};return be>1||this.__actions__.length||!(Bn instanceof Qi)||!_u(Pt)?this.thru(Xr):(Bn=Bn.slice(Pt,+Pt+(be?1:0)),Bn.__actions__.push({func:Rd,args:[Xr],thisArg:s}),new Va(Bn,this.__chain__).thru(function(Oi){return be&&!Oi.length&&Oi.push(s),Oi}))});function Vf(){return kf(this)}function dd(){return new Va(this.value(),this.__chain__)}function oc(){this.__values__===s&&(this.__values__=mg(this.value()));var Q=this.__index__>=this.__values__.length,be=Q?s:this.__values__[this.__index__++];return{done:Q,value:be}}function hd(){return this}function xf(Q){for(var be,Pt=this;Pt instanceof va;){var Bn=Bd(Pt);Bn.__index__=0,Bn.__values__=s,be?Xr.__wrapped__=Bn:be=Bn;var Xr=Bn;Pt=Pt.__wrapped__}return Xr.__wrapped__=Q,be}function Md(){var Q=this.__wrapped__;if(Q instanceof Qi){var be=Q;return this.__actions__.length&&(be=new Qi(this)),be=be.reverse(),be.__actions__.push({func:Rd,args:[fl],thisArg:s}),new Va(be,this.__chain__)}return this.thru(fl)}function Hd(){return Bc(this.__wrapped__,this.__actions__)}var Id=df(function(Q,be,Pt){Ys.call(Q,Pt)?++Q[Pt]:is(Q,Pt,1)});function Kd(Q,be,Pt){var Bn=cc(Q)?Si:hu;return Pt&&ju(Q,be,Pt)&&(be=s),Bn(Q,gn(be,3))}function Ih(Q,be){var Pt=cc(Q)?Fi:qo;return Pt(Q,gn(be,3))}var ch=Vc(mf),rh=Vc(fd);function Dh(Q,be){return Ps(ph(Q,be),1)}function iv(Q,be){return Ps(ph(Q,be),$)}function Vh(Q,be,Pt){return Pt=Pt===s?1:yc(Pt),Ps(ph(Q,be),Pt)}function Pv(Q,be){var Pt=cc(Q)?fr:Pu;return Pt(Q,gn(be,3))}function av(Q,be){var Pt=cc(Q)?Or:Lu;return Pt(Q,gn(be,3))}var ov=df(function(Q,be,Pt){Ys.call(Q,Pt)?Q[Pt].push(be):is(Q,Pt,[be])});function Gh(Q,be,Pt,Bn){Q=$d(Q)?Q:dv(Q),Pt=Pt&&!Bn?yc(Pt):0;var Xr=Q.length;return Pt<0&&(Pt=gr(Xr+Pt,0)),zv(Q)?Pt<=Xr&&Q.indexOf(be,Pt)>-1:!!Xr&&le(Q,be,Pt)>-1}var sv=yl(function(Q,be,Pt){var Bn=-1,Xr=typeof be=="function",Oi=$d(Q)?yi(Q.length):[];return Pu(Q,function(Za){Oi[++Bn]=Xr?Qt(be,Za,Pt):Tu(Za,be,Pt)}),Oi}),uv=df(function(Q,be,Pt){is(Q,Pt,be)});function ph(Q,be){var Pt=cc(Q)?vi:kl;return Pt(Q,gn(be,3))}function gh(Q,be,Pt,Bn){return Q==null?[]:(cc(be)||(be=be==null?[]:[be]),Pt=Bn?s:Pt,cc(Pt)||(Pt=Pt==null?[]:[Pt]),_c(Q,be,Pt))}var Nh=df(function(Q,be,Pt){Q[Pt?0:1].push(be)},function(){return[[],[]]});function lv(Q,be,Pt){var Bn=cc(Q)?Ko:Hn,Xr=arguments.length<3;return Bn(Q,gn(be,4),Pt,Xr,Pu)}function Vd(Q,be,Pt){var Bn=cc(Q)?So:Hn,Xr=arguments.length<3;return Bn(Q,gn(be,4),Pt,Xr,Lu)}function Bv(Q,be){var Pt=cc(Q)?Fi:qo;return Pt(Q,Po(gn(be,3)))}function Zh(Q){var be=cc(Q)?ko:cf;return be(Q)}function D(Q,be,Pt){(Pt?ju(Q,be,Pt):be===s)?be=1:be=yc(be);var Bn=cc(Q)?Es:_l;return Bn(Q,be)}function H(Q){var be=cc(Q)?Ts:lc;return be(Q)}function Te(Q){if(Q==null)return 0;if($d(Q))return zv(Q)?_a(Q):Q.length;var be=Aa(Q);return be==nt||be==qe?Q.size:Fl(Q).length}function ft(Q,be,Pt){var Bn=cc(Q)?Lo:al;return Pt&&ju(Q,be,Pt)&&(be=s),Bn(Q,gn(be,3))}var yn=yl(function(Q,be){if(Q==null)return[];var Pt=be.length;return Pt>1&&ju(Q,be[0],be[1])?be=[]:Pt>2&&ju(be[0],be[1],be[2])&&(be=[be[0]]),_c(Q,Ps(be,1),[])}),kn=ee||function(){return qn.Date.now()};function hi(Q,be){if(typeof be!="function")throw new xs(h);return Q=yc(Q),function(){if(--Q<1)return be.apply(this,arguments)}}function Wa(Q,be,Pt){return be=Pt?s:be,be=Q&&be==null?Q.length:be,Fs(Q,K,s,s,s,s,be)}function ho(Q,be){var Pt;if(typeof be!="function")throw new xs(h);return Q=yc(Q),function(){return--Q>0&&(Pt=be.apply(this,arguments)),Q<=1&&(be=s),Pt}}var os=yl(function(Q,be,Pt){var Bn=x;if(Pt.length){var Xr=cn(Pt,Dt(os));Bn|=I}return Fs(Q,Bn,be,Pt,Xr)}),uu=yl(function(Q,be,Pt){var Bn=x|P;if(Pt.length){var Xr=cn(Pt,Dt(uu));Bn|=I}return Fs(be,Bn,Q,Pt,Xr)});function yu(Q,be,Pt){be=Pt?s:be;var Bn=Fs(Q,T,s,s,s,s,s,be);return Bn.placeholder=yu.placeholder,Bn}function iu(Q,be,Pt){be=Pt?s:be;var Bn=Fs(Q,A,s,s,s,s,s,be);return Bn.placeholder=iu.placeholder,Bn}function il(Q,be,Pt){var Bn,Xr,Oi,Za,po,Wo,$s=0,js=!1,au=!1,ms=!0;if(typeof Q!="function")throw new xs(h);be=ah(be)||0,$f(Pt)&&(js=!!Pt.leading,au="maxWait"in Pt,Oi=au?gr(ah(Pt.maxWait)||0,be):Oi,ms="trailing"in Pt?!!Pt.trailing:ms);function dl(Zf){var Yd=Bn,Sh=Xr;return Bn=Xr=s,$s=Zf,Za=Q.apply(Sh,Yd),Za}function El(Zf){return $s=Zf,po=Nf(Ql,be),js?dl(Zf):Za}function Sc(Zf){var Yd=Zf-Wo,Sh=Zf-$s,oh=be-Yd;return au?Ai(oh,Oi-Sh):oh}function Xl(Zf){var Yd=Zf-Wo,Sh=Zf-$s;return Wo===s||Yd>=be||Yd<0||au&&Sh>=Oi}function Ql(){var Zf=kn();if(Xl(Zf))return Uc(Zf);po=Nf(Ql,Sc(Zf))}function Uc(Zf){return po=s,ms&&Bn?dl(Zf):(Bn=Xr=s,Za)}function Wc(){po!==s&&vl(po),$s=0,Bn=Wo=Xr=po=s}function pd(){return po===s?Za:Uc(kn())}function Ud(){var Zf=kn(),Yd=Xl(Zf);if(Bn=arguments,Xr=this,Wo=Zf,Yd){if(po===s)return El(Wo);if(au)return vl(po),po=Nf(Ql,be),dl(Wo)}return po===s&&(po=Nf(Ql,be)),Za}return Ud.cancel=Wc,Ud.flush=pd,Ud}var gl=yl(function(Q,be){return Xu(Q,1,be)}),bl=yl(function(Q,be,Pt){return Xu(Q,ah(be)||0,Pt)});function Bf(Q){return Fs(Q,W)}function Vo(Q,be){if(typeof Q!="function"||be!=null&&typeof be!="function")throw new xs(h);var Pt=function(){var Bn=arguments,Xr=be?be.apply(this,Bn):Bn[0],Oi=Pt.cache;if(Oi.has(Xr))return Oi.get(Xr);var Za=Q.apply(this,Bn);return Pt.cache=Oi.set(Xr,Za)||Oi,Za};return Pt.cache=new(Vo.Cache||ti),Pt}Vo.Cache=ti;function Po(Q){if(typeof Q!="function")throw new xs(h);return function(){var be=arguments;switch(be.length){case 0:return!Q.call(this);case 1:return!Q.call(this,be[0]);case 2:return!Q.call(this,be[0],be[1]);case 3:return!Q.call(this,be[0],be[1],be[2])}return!Q.apply(this,be)}}function ns(Q){return ho(2,Q)}var Mu=Mf(function(Q,be){be=be.length==1&&cc(be[0])?vi(be[0],ji(gn())):vi(Ps(be,1),ji(gn()));var Pt=be.length;return yl(function(Bn){for(var Xr=-1,Oi=Ai(Bn.length,Pt);++Xr<Oi;)Bn[Xr]=be[Xr].call(this,Bn[Xr]);return Qt(Q,this,Bn)})}),ml=yl(function(Q,be){var Pt=cn(be,Dt(ml));return Fs(Q,I,s,be,Pt)}),Il=yl(function(Q,be){var Pt=cn(be,Dt(Il));return Fs(Q,N,s,be,Pt)}),Hl=tl(function(Q,be){return Fs(Q,_,s,s,s,be)});function tc(Q,be){if(typeof Q!="function")throw new xs(h);return be=be===s?be:yc(be),yl(Q,be)}function Jf(Q,be){if(typeof Q!="function")throw new xs(h);return be=be==null?0:gr(yc(be),0),yl(function(Pt){var Bn=Pt[be],Xr=Bu(Pt,0,be);return Bn&&Xa(Xr,Bn),Qt(Q,this,Xr)})}function Rc(Q,be,Pt){var Bn=!0,Xr=!0;if(typeof Q!="function")throw new xs(h);return $f(Pt)&&(Bn="leading"in Pt?!!Pt.leading:Bn,Xr="trailing"in Pt?!!Pt.trailing:Xr),il(Q,be,{leading:Bn,maxWait:be,trailing:Xr})}function ih(Q){return Wa(Q,1)}function $v(Q,be){return ml(yf(be),Q)}function n0(){if(!arguments.length)return[];var Q=arguments[0];return cc(Q)?Q:[Q]}function cv(Q){return du(Q,E)}function r0(Q,be){return be=typeof be=="function"?be:s,du(Q,E,be)}function i0(Q){return du(Q,y|E)}function a0(Q,be){return be=typeof be=="function"?be:s,du(Q,y|E,be)}function o0(Q,be){return be==null||$u(Q,be,vd(be))}function Gd(Q,be){return Q===be||Q!==Q&&be!==be}var s0=Ta(ku),u0=Ta(function(Q,be){return Q>=be}),mh=Vs(function(){return arguments}())?Vs:function(Q){return Rf(Q)&&Ys.call(Q,"callee")&&!_t.call(Q,"callee")},cc=yi.isArray,l0=qa?ji(qa):Ds;function $d(Q){return Q!=null&&Uv(Q.length)&&!yh(Q)}function qf(Q){return Rf(Q)&&$d(Q)}function c0(Q){return Q===!0||Q===!1||Rf(Q)&&pu(Q)==he}var Fh=Ht||Ap,hg=se?ji(se):Ks;function dp(Q){return Rf(Q)&&Q.nodeType===1&&!fh(Q)}function hp(Q){if(Q==null)return!0;if($d(Q)&&(cc(Q)||typeof Q=="string"||typeof Q.splice=="function"||Fh(Q)||fv(Q)||mh(Q)))return!Q.length;var be=Aa(Q);if(be==nt||be==qe)return!Q.size;if(Zc(Q))return!Fl(Q).length;for(var Pt in Q)if(Ys.call(Q,Pt))return!1;return!0}function Cv(Q,be){return nu(Q,be)}function vp(Q,be,Pt){Pt=typeof Pt=="function"?Pt:s;var Bn=Pt?Pt(Q,be):s;return Bn===s?nu(Q,be,s,Pt):!!Bn}function jv(Q){if(!Rf(Q))return!1;var be=pu(Q);return be==we||be==_e||typeof Q.message=="string"&&typeof Q.name=="string"&&!fh(Q)}function f0(Q){return typeof Q=="number"&&nn(Q)}function yh(Q){if(!$f(Q))return!1;var be=pu(Q);return be==Ge||be==ht||be==Se||be==Me}function Dd(Q){return typeof Q=="number"&&Q==yc(Q)}function Uv(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=k}function $f(Q){var be=typeof Q;return Q!=null&&(be=="object"||be=="function")}function Rf(Q){return Q!=null&&typeof Q=="object"}var kh=ye?ji(ye):nl;function vg(Q,be){return Q===be||ec(Q,be,cr(be))}function d0(Q,be,Pt){return Pt=typeof Pt=="function"?Pt:s,ec(Q,be,cr(be),Pt)}function h0(Q){return pg(Q)&&Q!=+Q}function v0(Q){if(wc(Q))throw new Cr(l);return Mc(Q)}function p0(Q){return Q===null}function g0(Q){return Q==null}function pg(Q){return typeof Q=="number"||Rf(Q)&&pu(Q)==Re}function fh(Q){if(!Rf(Q)||pu(Q)!=ae)return!1;var be=pt(Q);if(be===null)return!0;var Pt=Ys.call(be,"constructor")&&be.constructor;return typeof Pt=="function"&&Pt instanceof Pt&&bu.call(Pt)==Sn}var Wv=Xe?ji(Xe):hc;function m0(Q){return Dd(Q)&&Q>=-k&&Q<=k}var gg=yt?ji(yt):Ol;function zv(Q){return typeof Q=="string"||!cc(Q)&&Rf(Q)&&pu(Q)==At}function Zd(Q){return typeof Q=="symbol"||Rf(Q)&&pu(Q)==It}var fv=Wt?ji(Wt):Nl;function y0(Q){return Q===s}function b0(Q){return Rf(Q)&&Aa(Q)==Ae}function E0(Q){return Rf(Q)&&pu(Q)==$e}var S0=Ta(Ic),O0=Ta(function(Q,be){return Q<=be});function mg(Q){if(!Q)return[];if($d(Q))return zv(Q)?Ka(Q):Jc(Q);if(Hi&&Q[Hi])return aa(Q[Hi]());var be=Aa(Q),Pt=be==nt?Fa:be==qe?nr:dv;return Pt(Q)}function bh(Q){if(!Q)return Q===0?Q:0;if(Q=ah(Q),Q===$||Q===-$){var be=Q<0?-1:1;return be*F}return Q===Q?Q:0}function yc(Q){var be=bh(Q),Pt=be%1;return be===be?Pt?be-Pt:be:0}function yg(Q){return Q?Qs(yc(Q),0,pe):0}function ah(Q){if(typeof Q=="number")return Q;if(Zd(Q))return V;if($f(Q)){var be=typeof Q.valueOf=="function"?Q.valueOf():Q;Q=$f(be)?be+"":be}if(typeof Q!="string")return Q===0?Q:+Q;Q=na(Q);var Pt=ot.test(Q);return Pt||Ft.test(Q)?za(Q.slice(2),Pt?2:8):Zt.test(Q)?V:+Q}function pp(Q){return zs(Q,wd(Q))}function bg(Q){return Q?Qs(yc(Q),-k,k):Q===0?Q:0}function af(Q){return Q==null?"":Pl(Q)}var w0=Wf(function(Q,be){if(Zc(be)||$d(be)){zs(be,vd(be),Q);return}for(var Pt in be)Ys.call(be,Pt)&&ls(Q,Pt,be[Pt])}),Eg=Wf(function(Q,be){zs(be,wd(be),Q)}),xv=Wf(function(Q,be,Pt,Bn){zs(be,wd(be),Q,Bn)}),Bh=Wf(function(Q,be,Pt,Bn){zs(be,vd(be),Q,Bn)}),P0=tl(Os);function C0(Q,be){var Pt=Ua(Q);return be==null?Pt:Do(Pt,be)}var Sg=yl(function(Q,be){Q=Co(Q);var Pt=-1,Bn=be.length,Xr=Bn>2?be[2]:s;for(Xr&&ju(be[0],be[1],Xr)&&(Bn=1);++Pt<Bn;)for(var Oi=be[Pt],Za=wd(Oi),po=-1,Wo=Za.length;++po<Wo;){var $s=Za[po],js=Q[$s];(js===s||Gd(js,Us[$s])&&!Ys.call(Q,$s))&&(Q[$s]=Oi[$s])}return Q}),x0=yl(function(Q){return Q.push(s,Cu),Qt(Yh,s,Q)});function T0(Q,be){return z(Q,gn(be,3),ds)}function Og(Q,be){return z(Q,gn(be,3),zu)}function gp(Q,be){return Q==null?Q:Ws(Q,gn(be,3),wd)}function A0(Q,be){return Q==null?Q:Qo(Q,gn(be,3),wd)}function R0(Q,be){return Q&&ds(Q,gn(be,3))}function M0(Q,be){return Q&&zu(Q,gn(be,3))}function I0(Q){return Q==null?[]:tu(Q,vd(Q))}function D0(Q){return Q==null?[]:tu(Q,wd(Q))}function mp(Q,be,Pt){var Bn=Q==null?s:Ou(Q,be);return Bn===s?Pt:Bn}function _0(Q,be){return Q!=null&&eo(Q,be,Nu)}function yp(Q,be){return Q!=null&&eo(Q,be,Fu)}var Hv=qc(function(Q,be,Pt){be!=null&&typeof be.toString!="function"&&(be=ql.call(be)),Q[be]=Pt},Pp(jd)),L0=qc(function(Q,be,Pt){be!=null&&typeof be.toString!="function"&&(be=ql.call(be)),Ys.call(Q,be)?Q[be].push(Pt):Q[be]=[Pt]},gn),Tv=yl(Tu);function vd(Q){return $d(Q)?Ea(Q):Fl(Q)}function wd(Q){return $d(Q)?Ea(Q,!0):rc(Q)}function N0(Q,be){var Pt={};return be=gn(be,3),ds(Q,function(Bn,Xr,Oi){is(Pt,be(Bn,Xr,Oi),Bn)}),Pt}function F0(Q,be){var Pt={};return be=gn(be,3),ds(Q,function(Bn,Xr,Oi){is(Pt,Xr,be(Bn,Xr,Oi))}),Pt}var wg=Wf(function(Q,be,Pt){Ml(Q,be,Pt)}),Yh=Wf(function(Q,be,Pt,Bn){Ml(Q,be,Pt,Bn)}),bp=tl(function(Q,be){var Pt={};if(Q==null)return Pt;var Bn=!1;be=vi(be,function(Oi){return Oi=xc(Oi,Q),Bn||(Bn=Oi.length>1),Oi}),zs(Q,Jl(Q),Pt),Bn&&(Pt=du(Pt,y|b|E,Iu));for(var Xr=be.length;Xr--;)Oc(Pt,be[Xr]);return Pt});function Ep(Q,be){return Sp(Q,Po(gn(be)))}var k0=tl(function(Q,be){return Q==null?{}:Cc(Q,be)});function Sp(Q,be){if(Q==null)return{};var Pt=vi(Jl(Q),function(Bn){return[Bn]});return be=gn(be),of(Q,Pt,function(Bn,Xr){return be(Bn,Xr[0])})}function B0(Q,be,Pt){be=xc(be,Q);var Bn=-1,Xr=be.length;for(Xr||(Xr=1,Q=s);++Bn<Xr;){var Oi=Q==null?s:Q[wf(be[Bn])];Oi===s&&(Bn=Xr,Oi=Pt),Q=yh(Oi)?Oi.call(Q):Oi}return Q}function $0(Q,be,Pt){return Q==null?Q:qu(Q,be,Pt)}function j0(Q,be,Pt,Bn){return Bn=typeof Bn=="function"?Bn:s,Q==null?Q:qu(Q,be,Pt,Bn)}var Pg=Ls(vd),Cg=Ls(wd);function U0(Q,be,Pt){var Bn=cc(Q),Xr=Bn||Fh(Q)||fv(Q);if(be=gn(be,4),Pt==null){var Oi=Q&&Q.constructor;Xr?Pt=Bn?new Oi:[]:$f(Q)?Pt=yh(Oi)?Ua(pt(Q)):{}:Pt={}}return(Xr?fr:ds)(Q,function(Za,po,Wo){return be(Pt,Za,po,Wo)}),Pt}function Kv(Q,be){return Q==null?!0:Oc(Q,be)}function xg(Q,be,Pt){return Q==null?Q:kc(Q,be,yf(Pt))}function W0(Q,be,Pt,Bn){return Bn=typeof Bn=="function"?Bn:s,Q==null?Q:kc(Q,be,yf(Pt),Bn)}function dv(Q){return Q==null?[]:$a(Q,vd(Q))}function z0(Q){return Q==null?[]:$a(Q,wd(Q))}function H0(Q,be,Pt){return Pt===s&&(Pt=be,be=s),Pt!==s&&(Pt=ah(Pt),Pt=Pt===Pt?Pt:0),be!==s&&(be=ah(be),be=be===be?be:0),Qs(ah(Q),be,Pt)}function K0(Q,be,Pt){return be=bh(be),Pt===s?(Pt=be,be=0):Pt=bh(Pt),Q=ah(Q),Ku(Q,be,Pt)}function V0(Q,be,Pt){if(Pt&&typeof Pt!="boolean"&&ju(Q,be,Pt)&&(be=Pt=s),Pt===s&&(typeof be=="boolean"?(Pt=be,be=s):typeof Q=="boolean"&&(Pt=Q,Q=s)),Q===s&&be===s?(Q=0,be=1):(Q=bh(Q),be===s?(be=Q,Q=0):be=bh(be)),Q>be){var Bn=Q;Q=be,be=Bn}if(Pt||Q%1||be%1){var Xr=La();return Ai(Q+Xr*(be-Q+ai("1e-"+((Xr+"").length-1))),be)}return fc(Q,be)}var Op=Ec(function(Q,be,Pt){return be=be.toLowerCase(),Q+(Pt?Tg(be):be)});function Tg(Q){return Eh(af(Q).toLowerCase())}function Ag(Q){return Q=af(Q),Q&&Q.replace(qt,er).replace(ia,"")}function G0(Q,be,Pt){Q=af(Q),be=Pl(be);var Bn=Q.length;Pt=Pt===s?Bn:Qs(yc(Pt),0,Bn);var Xr=Pt;return Pt-=be.length,Pt>=0&&Q.slice(Pt,Xr)==be}function Z0(Q){return Q=af(Q),Q&&vt.test(Q)?Q.replace(zt,Ar):Q}function Y0(Q){return Q=af(Q),Q&&sn.test(Q)?Q.replace(rn,"\\$&"):Q}var Rg=Ec(function(Q,be,Pt){return Q+(Pt?"-":"")+be.toLowerCase()}),X0=Ec(function(Q,be,Pt){return Q+(Pt?" ":"")+be.toLowerCase()}),Q0=Lf("toLowerCase");function J0(Q,be,Pt){Q=af(Q),be=yc(be);var Bn=be?_a(Q):0;if(!be||Bn>=be)return Q;var Xr=(be-Bn)/2;return pr(Be(Xr),Pt)+Q+pr(De(Xr),Pt)}function q0(Q,be,Pt){Q=af(Q),be=yc(be);var Bn=be?_a(Q):0;return be&&Bn<be?Q+pr(be-Bn,Pt):Q}function _d(Q,be,Pt){Q=af(Q),be=yc(be);var Bn=be?_a(Q):0;return be&&Bn<be?pr(be-Bn,Pt)+Q:Q}function ey(Q,be,Pt){return Pt||be==null?be=0:be&&(be=+be),ma(af(Q).replace(Jn,""),be||0)}function ty(Q,be,Pt){return(Pt?ju(Q,be,Pt):be===s)?be=1:be=yc(be),vc(af(Q),be)}function ny(){var Q=arguments,be=af(Q[0]);return Q.length<3?be:be.replace(Q[1],Q[2])}var ry=Ec(function(Q,be,Pt){return Q+(Pt?"_":"")+be.toLowerCase()});function iy(Q,be,Pt){return Pt&&typeof Pt!="number"&&ju(Q,be,Pt)&&(be=Pt=s),Pt=Pt===s?pe:Pt>>>0,Pt?(Q=af(Q),Q&&(typeof be=="string"||be!=null&&!Wv(be))&&(be=Pl(be),!be&&Gr(Q))?Bu(Ka(Q),0,Pt):Q.split(be,Pt)):[]}var ay=Ec(function(Q,be,Pt){return Q+(Pt?" ":"")+Eh(be)});function oy(Q,be,Pt){return Q=af(Q),Pt=Pt==null?0:Qs(yc(Pt),0,Q.length),be=Pl(be),Q.slice(Pt,Pt+be.length)==be}function sy(Q,be,Pt){var Bn=_n.templateSettings;Pt&&ju(Q,be,Pt)&&(be=s),Q=af(Q),be=xv({},be,Bn,As);var Xr=xv({},be.imports,Bn.imports,As),Oi=vd(Xr),Za=$a(Xr,Oi),po,Wo,$s=0,js=be.interpolate||vn,au="__p += '",ms=_s((be.escape||vn).source+"|"+js.source+"|"+(js===at?Tn:vn).source+"|"+(be.evaluate||vn).source+"|$","g"),dl="//# sourceURL="+(Ys.call(be,"sourceURL")?(be.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jo+"]")+` `;Q.replace(ms,function(Xl,Ql,Uc,Wc,pd,Ud){return Uc||(Uc=Wc),au+=Q.slice($s,Ud).replace(fn,Kr),Ql&&(po=!0,au+=`' + __e(`+Ql+`) + '`),pd&&(Wo=!0,au+=`'; `+pd+`; __p += '`),Uc&&(au+=`' + ((__t = (`+Uc+`)) == null ? '' : __t) + '`),$s=Ud+Xl.length,Xl}),au+=`'; `;var El=Ys.call(be,"variable")&&be.variable;if(!El)au=`with (obj) { `+au+` } `;else if(Ut.test(El))throw new Cr(p);au=(Wo?au.replace(hn,""):au).replace(Yt,"$1").replace(Bt,"$1;"),au="function("+(El||"obj")+`) { `+(El?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(po?", __e = _.escape":"")+(Wo?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+au+`return __p }`;var Sc=Dg(function(){return ka(Oi,dl+"return "+au).apply(s,Za)});if(Sc.source=au,jv(Sc))throw Sc;return Sc}function uy(Q){return af(Q).toLowerCase()}function ly(Q){return af(Q).toUpperCase()}function cy(Q,be,Pt){if(Q=af(Q),Q&&(Pt||be===s))return na(Q);if(!Q||!(be=Pl(be)))return Q;var Bn=Ka(Q),Xr=Ka(be),Oi=Eo(Bn,Xr),Za=Uo(Bn,Xr)+1;return Bu(Bn,Oi,Za).join("")}function Vv(Q,be,Pt){if(Q=af(Q),Q&&(Pt||be===s))return Q.slice(0,yo(Q)+1);if(!Q||!(be=Pl(be)))return Q;var Bn=Ka(Q),Xr=Uo(Bn,Ka(be))+1;return Bu(Bn,0,Xr).join("")}function wp(Q,be,Pt){if(Q=af(Q),Q&&(Pt||be===s))return Q.replace(Jn,"");if(!Q||!(be=Pl(be)))return Q;var Bn=Ka(Q),Xr=Eo(Bn,Ka(be));return Bu(Bn,Xr).join("")}function Mg(Q,be){var Pt=j,Bn=re;if($f(be)){var Xr="separator"in be?be.separator:Xr;Pt="length"in be?yc(be.length):Pt,Bn="omission"in be?Pl(be.omission):Bn}Q=af(Q);var Oi=Q.length;if(Gr(Q)){var Za=Ka(Q);Oi=Za.length}if(Pt>=Oi)return Q;var po=Pt-_a(Bn);if(po<1)return Bn;var Wo=Za?Bu(Za,0,po).join(""):Q.slice(0,po);if(Xr===s)return Wo+Bn;if(Za&&(po+=Wo.length-po),Wv(Xr)){if(Q.slice(po).search(Xr)){var $s,js=Wo;for(Xr.global||(Xr=_s(Xr.source,af(An.exec(Xr))+"g")),Xr.lastIndex=0;$s=Xr.exec(js);)var au=$s.index;Wo=Wo.slice(0,au===s?po:au)}}else if(Q.indexOf(Pl(Xr),po)!=po){var ms=Wo.lastIndexOf(Xr);ms>-1&&(Wo=Wo.slice(0,ms))}return Wo+Bn}function Ld(Q){return Q=af(Q),Q&&Kt.test(Q)?Q.replace(Lt,Ba):Q}var od=Ec(function(Q,be,Pt){return Q+(Pt?" ":"")+be.toUpperCase()}),Eh=Lf("toUpperCase");function Ig(Q,be,Pt){return Q=af(Q),be=Pt?s:be,be===s?Pi(Q)?Nr(Q):Y(Q):Q.match(be)||[]}var Dg=yl(function(Q,be){try{return Qt(Q,s,be)}catch(Pt){return jv(Pt)?Pt:new Cr(Pt)}}),fy=tl(function(Q,be){return fr(be,function(Pt){Pt=wf(Pt),is(Q,Pt,os(Q[Pt],Q))}),Q});function dy(Q){var be=Q==null?0:Q.length,Pt=gn();return Q=be?vi(Q,function(Bn){if(typeof Bn[1]!="function")throw new xs(h);return[Pt(Bn[0]),Bn[1]]}):[],yl(function(Bn){for(var Xr=-1;++Xr<be;){var Oi=Q[Xr];if(Qt(Oi[0],this,Bn))return Qt(Oi[1],this,Bn)}})}function _g(Q){return Yu(du(Q,y))}function Pp(Q){return function(){return Q}}function hy(Q,be){return Q==null||Q!==Q?be:Q}var vy=$c(),Lg=$c(!0);function jd(Q){return Q}function Cp(Q){return wl(typeof Q=="function"?Q:du(Q,y))}function py(Q){return Gc(du(Q,y))}function gy(Q,be){return $l(Q,du(be,y))}var my=yl(function(Q,be){return function(Pt){return Tu(Pt,Q,be)}}),yy=yl(function(Q,be){return function(Pt){return Tu(Q,Pt,be)}});function xp(Q,be,Pt){var Bn=vd(be),Xr=tu(be,Bn);Pt==null&&!($f(be)&&(Xr.length||!Bn.length))&&(Pt=be,be=Q,Q=this,Xr=tu(be,vd(be)));var Oi=!($f(Pt)&&"chain"in Pt)||!!Pt.chain,Za=yh(Q);return fr(Xr,function(po){var Wo=be[po];Q[po]=Wo,Za&&(Q.prototype[po]=function(){var $s=this.__chain__;if(Oi||$s){var js=Q(this.__wrapped__),au=js.__actions__=Jc(this.__actions__);return au.push({func:Wo,args:arguments,thisArg:Q}),js.__chain__=$s,js}return Wo.apply(Q,Xa([this.value()],arguments))})}),Q}function by(){return qn._===this&&(qn._=Wn),this}function Tp(){}function Ey(Q){return Q=yc(Q),yl(function(be){return tf(be,Q)})}var Sy=Dr(vi),Gv=Dr(Si),hv=Dr(Lo);function Ng(Q){return Cl(Q)?Vt(wf(Q)):Qc(Q)}function Oy(Q){return function(be){return Q==null?s:Ou(Q,be)}}var wy=Zi(),vv=Zi(!0);function pv(){return[]}function Ap(){return!1}function Fg(){return{}}function Py(){return""}function kg(){return!0}function Bg(Q,be){if(Q=yc(Q),Q<1||Q>k)return[];var Pt=pe,Bn=Ai(Q,pe);be=gn(be),Q-=pe;for(var Xr=mi(Bn,be);++Pt<Q;)be(Pt);return Xr}function $g(Q){return cc(Q)?vi(Q,wf):Zd(Q)?[Q]:Jc(nd(af(Q)))}function jg(Q){var be=++Hu;return af(Q)+be}var Ug=If(function(Q,be){return Q+be},0),Wg=No("ceil"),Zv=If(function(Q,be){return Q/be},1),Yv=No("floor");function Rp(Q){return Q&&Q.length?Js(Q,jd,ku):s}function zg(Q,be){return Q&&Q.length?Js(Q,gn(be,2),ku):s}function Hg(Q){return Ct(Q,jd)}function Kg(Q,be){return Ct(Q,gn(be,2))}function Vg(Q){return Q&&Q.length?Js(Q,jd,Ic):s}function Kl(Q,be){return Q&&Q.length?Js(Q,gn(be,2),Ic):s}var Av=If(function(Q,be){return Q*be},1),Fc=No("round"),Gf=If(function(Q,be){return Q-be},0);function Xv(Q){return Q&&Q.length?ei(Q,jd):0}function Nd(Q,be){return Q&&Q.length?ei(Q,gn(be,2)):0}return _n.after=hi,_n.ary=Wa,_n.assign=w0,_n.assignIn=Eg,_n.assignInWith=xv,_n.assignWith=Bh,_n.at=P0,_n.before=ho,_n.bind=os,_n.bindAll=fy,_n.bindKey=uu,_n.castArray=n0,_n.chain=kf,_n.chunk=xd,_n.compact=Th,_n.concat=Td,_n.cond=dy,_n.conforms=_g,_n.constant=Pp,_n.countBy=Id,_n.create=C0,_n.curry=yu,_n.curryRight=iu,_n.debounce=il,_n.defaults=Sg,_n.defaultsDeep=x0,_n.defer=gl,_n.delay=bl,_n.difference=Qf,_n.differenceBy=Pf,_n.differenceWith=mc,_n.drop=Ac,_n.dropRight=ef,_n.dropRightWhile=gf,_n.dropWhile=zf,_n.fill=Hf,_n.filter=Ih,_n.flatMap=Dh,_n.flatMapDeep=iv,_n.flatMapDepth=Vh,_n.flatten=Ad,_n.flattenDeep=Ah,_n.flattenDepth=Rh,_n.flip=Bf,_n.flow=vy,_n.flowRight=Lg,_n.fromPairs=lh,_n.functions=I0,_n.functionsIn=D0,_n.groupBy=ov,_n.initial=rd,_n.intersection=Ff,_n.intersectionBy=yd,_n.intersectionWith=ra,_n.invert=Hv,_n.invertBy=L0,_n.invokeMap=sv,_n.iteratee=Cp,_n.keyBy=uv,_n.keys=vd,_n.keysIn=wd,_n.map=ph,_n.mapKeys=N0,_n.mapValues=F0,_n.matches=py,_n.matchesProperty=gy,_n.memoize=Vo,_n.merge=wg,_n.mergeWith=Yh,_n.method=my,_n.methodOf=yy,_n.mixin=xp,_n.negate=Po,_n.nthArg=Ey,_n.omit=bp,_n.omitBy=Ep,_n.once=ns,_n.orderBy=gh,_n.over=Sy,_n.overArgs=Mu,_n.overEvery=Gv,_n.overSome=hv,_n.partial=ml,_n.partialRight=Il,_n.partition=Nh,_n.pick=k0,_n.pickBy=Sp,_n.property=Ng,_n.propertyOf=Oy,_n.pull=qs,_n.pullAll=gu,_n.pullAllBy=vu,_n.pullAllWith=ru,_n.pullAt=Ru,_n.range=wy,_n.rangeRight=vv,_n.rearg=Hl,_n.reject=Bv,_n.remove=rl,_n.rest=tc,_n.reverse=fl,_n.sampleSize=D,_n.set=$0,_n.setWith=j0,_n.shuffle=H,_n.slice=pl,_n.sortBy=yn,_n.sortedUniq=Ln,_n.sortedUniqBy=zr,_n.split=iy,_n.spread=Jf,_n.tail=Ji,_n.take=Ja,_n.takeRight=lo,_n.takeRightWhile=To,_n.takeWhile=Xo,_n.tap=Cf,_n.throttle=Rc,_n.thru=Rd,_n.toArray=mg,_n.toPairs=Pg,_n.toPairsIn=Cg,_n.toPath=$g,_n.toPlainObject=pp,_n.transform=U0,_n.unary=ih,_n.union=mu,_n.unionBy=ws,_n.unionWith=Uu,_n.uniq=el,_n.uniqBy=Gl,_n.uniqWith=Al,_n.unset=Kv,_n.unzip=ac,_n.unzipWith=Lc,_n.update=xg,_n.updateWith=W0,_n.values=dv,_n.valuesIn=z0,_n.without=xl,_n.words=Ig,_n.wrap=$v,_n.xor=hl,_n.xorBy=Su,_n.xorWith=Dc,_n.zip=Xc,_n.zipObject=jc,_n.zipObjectDeep=Nc,_n.zipWith=ad,_n.entries=Pg,_n.entriesIn=Cg,_n.extend=Eg,_n.extendWith=xv,xp(_n,_n),_n.add=Ug,_n.attempt=Dg,_n.camelCase=Op,_n.capitalize=Tg,_n.ceil=Wg,_n.clamp=H0,_n.clone=cv,_n.cloneDeep=i0,_n.cloneDeepWith=a0,_n.cloneWith=r0,_n.conformsTo=o0,_n.deburr=Ag,_n.defaultTo=hy,_n.divide=Zv,_n.endsWith=G0,_n.eq=Gd,_n.escape=Z0,_n.escapeRegExp=Y0,_n.every=Kd,_n.find=ch,_n.findIndex=mf,_n.findKey=T0,_n.findLast=rh,_n.findLastIndex=fd,_n.findLastKey=Og,_n.floor=Yv,_n.forEach=Pv,_n.forEachRight=av,_n.forIn=gp,_n.forInRight=A0,_n.forOwn=R0,_n.forOwnRight=M0,_n.get=mp,_n.gt=s0,_n.gte=u0,_n.has=_0,_n.hasIn=yp,_n.head=Kf,_n.identity=jd,_n.includes=Gh,_n.indexOf=Mh,_n.inRange=K0,_n.invoke=Tv,_n.isArguments=mh,_n.isArray=cc,_n.isArrayBuffer=l0,_n.isArrayLike=$d,_n.isArrayLikeObject=qf,_n.isBoolean=c0,_n.isBuffer=Fh,_n.isDate=hg,_n.isElement=dp,_n.isEmpty=hp,_n.isEqual=Cv,_n.isEqualWith=vp,_n.isError=jv,_n.isFinite=f0,_n.isFunction=yh,_n.isInteger=Dd,_n.isLength=Uv,_n.isMap=kh,_n.isMatch=vg,_n.isMatchWith=d0,_n.isNaN=h0,_n.isNative=v0,_n.isNil=g0,_n.isNull=p0,_n.isNumber=pg,_n.isObject=$f,_n.isObjectLike=Rf,_n.isPlainObject=fh,_n.isRegExp=Wv,_n.isSafeInteger=m0,_n.isSet=gg,_n.isString=zv,_n.isSymbol=Zd,_n.isTypedArray=fv,_n.isUndefined=y0,_n.isWeakMap=b0,_n.isWeakSet=E0,_n.join=_o,_n.kebabCase=Rg,_n.last=es,_n.lastIndexOf=as,_n.lowerCase=X0,_n.lowerFirst=Q0,_n.lt=S0,_n.lte=O0,_n.max=Rp,_n.maxBy=zg,_n.mean=Hg,_n.meanBy=Kg,_n.min=Vg,_n.minBy=Kl,_n.stubArray=pv,_n.stubFalse=Ap,_n.stubObject=Fg,_n.stubString=Py,_n.stubTrue=kg,_n.multiply=Av,_n.nth=Bs,_n.noConflict=by,_n.noop=Tp,_n.now=kn,_n.pad=J0,_n.padEnd=q0,_n.padStart=_d,_n.parseInt=ey,_n.random=V0,_n.reduce=lv,_n.reduceRight=Vd,_n.repeat=ty,_n.replace=ny,_n.result=B0,_n.round=Fc,_n.runInContext=dr,_n.sample=Zh,_n.size=Te,_n.snakeCase=ry,_n.some=ft,_n.sortedIndex=wu,_n.sortedIndexBy=Vu,_n.sortedIndexOf=zl,_n.sortedLastIndex=Ze,_n.sortedLastIndexBy=ge,_n.sortedLastIndexOf=et,_n.startCase=ay,_n.startsWith=oy,_n.subtract=Gf,_n.sum=Xv,_n.sumBy=Nd,_n.template=sy,_n.times=Bg,_n.toFinite=bh,_n.toInteger=yc,_n.toLength=yg,_n.toLower=uy,_n.toNumber=ah,_n.toSafeInteger=bg,_n.toString=af,_n.toUpper=ly,_n.trim=cy,_n.trimEnd=Vv,_n.trimStart=wp,_n.truncate=Mg,_n.unescape=Ld,_n.uniqueId=jg,_n.upperCase=od,_n.upperFirst=Eh,_n.each=Pv,_n.eachRight=av,_n.first=Kf,xp(_n,function(){var Q={};return ds(_n,function(be,Pt){Ys.call(_n.prototype,Pt)||(Q[Pt]=be)}),Q}(),{chain:!1}),_n.VERSION=u,fr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(Q){_n[Q].placeholder=_n}),fr(["drop","take"],function(Q,be){Qi.prototype[Q]=function(Pt){Pt=Pt===s?1:gr(yc(Pt),0);var Bn=this.__filtered__&&!be?new Qi(this):this.clone();return Bn.__filtered__?Bn.__takeCount__=Ai(Pt,Bn.__takeCount__):Bn.__views__.push({size:Ai(Pt,pe),type:Q+(Bn.__dir__<0?"Right":"")}),Bn},Qi.prototype[Q+"Right"]=function(Pt){return this.reverse()[Q](Pt).reverse()}}),fr(["filter","map","takeWhile"],function(Q,be){var Pt=be+1,Bn=Pt==J||Pt==L;Qi.prototype[Q]=function(Xr){var Oi=this.clone();return Oi.__iteratees__.push({iteratee:gn(Xr,3),type:Pt}),Oi.__filtered__=Oi.__filtered__||Bn,Oi}}),fr(["head","last"],function(Q,be){var Pt="take"+(be?"Right":"");Qi.prototype[Q]=function(){return this[Pt](1).value()[0]}}),fr(["initial","tail"],function(Q,be){var Pt="drop"+(be?"":"Right");Qi.prototype[Q]=function(){return this.__filtered__?new Qi(this):this[Pt](1)}}),Qi.prototype.compact=function(){return this.filter(jd)},Qi.prototype.find=function(Q){return this.filter(Q).head()},Qi.prototype.findLast=function(Q){return this.reverse().find(Q)},Qi.prototype.invokeMap=yl(function(Q,be){return typeof Q=="function"?new Qi(this):this.map(function(Pt){return Tu(Pt,Q,be)})}),Qi.prototype.reject=function(Q){return this.filter(Po(gn(Q)))},Qi.prototype.slice=function(Q,be){Q=yc(Q);var Pt=this;return Pt.__filtered__&&(Q>0||be<0)?new Qi(Pt):(Q<0?Pt=Pt.takeRight(-Q):Q&&(Pt=Pt.drop(Q)),be!==s&&(be=yc(be),Pt=be<0?Pt.dropRight(-be):Pt.take(be-Q)),Pt)},Qi.prototype.takeRightWhile=function(Q){return this.reverse().takeWhile(Q).reverse()},Qi.prototype.toArray=function(){return this.take(pe)},ds(Qi.prototype,function(Q,be){var Pt=/^(?:filter|find|map|reject)|While$/.test(be),Bn=/^(?:head|last)$/.test(be),Xr=_n[Bn?"take"+(be=="last"?"Right":""):be],Oi=Bn||/^find/.test(be);Xr&&(_n.prototype[be]=function(){var Za=this.__wrapped__,po=Bn?[1]:arguments,Wo=Za instanceof Qi,$s=po[0],js=Wo||cc(Za),au=function(Ql){var Uc=Xr.apply(_n,Xa([Ql],po));return Bn&&ms?Uc[0]:Uc};js&&Pt&&typeof $s=="function"&&$s.length!=1&&(Wo=js=!1);var ms=this.__chain__,dl=!!this.__actions__.length,El=Oi&&!ms,Sc=Wo&&!dl;if(!Oi&&js){Za=Sc?Za:new Qi(this);var Xl=Q.apply(Za,po);return Xl.__actions__.push({func:Rd,args:[au],thisArg:s}),new Va(Xl,ms)}return El&&Sc?Q.apply(this,po):(Xl=this.thru(au),El?Bn?Xl.value()[0]:Xl.value():Xl)})}),fr(["pop","push","shift","sort","splice","unshift"],function(Q){var be=Zs[Q],Pt=/^(?:push|sort|unshift)$/.test(Q)?"tap":"thru",Bn=/^(?:pop|shift)$/.test(Q);_n.prototype[Q]=function(){var Xr=arguments;if(Bn&&!this.__chain__){var Oi=this.value();return be.apply(cc(Oi)?Oi:[],Xr)}return this[Pt](function(Za){return be.apply(cc(Za)?Za:[],Xr)})}}),ds(Qi.prototype,function(Q,be){var Pt=_n[be];if(Pt){var Bn=Pt.name+"";Ys.call(an,Bn)||(an[Bn]=[]),an[Bn].push({name:be,func:Pt})}}),an[gc(s,P).name]=[{name:"wrapper",func:s}],Qi.prototype.clone=ro,Qi.prototype.reverse=Pe,Qi.prototype.value=Nt,_n.prototype.at=vh,_n.prototype.chain=Vf,_n.prototype.commit=dd,_n.prototype.next=oc,_n.prototype.plant=xf,_n.prototype.reverse=Md,_n.prototype.toJSON=_n.prototype.valueOf=_n.prototype.value=Hd,_n.prototype.first=_n.prototype.head,Hi&&(_n.prototype[Hi]=hd),_n},ea=gi();qn._=ea,i=function(){return ea}.call(c,t,c,C),i!==s&&(C.exports=i)}).call(this)},67696:(C,c,t)=>{var i=t(78912),s="Expected a function";function u(v,l){if(typeof v!="function"||l!=null&&typeof l!="function")throw new TypeError(s);var h=function(){var p=arguments,d=l?l.apply(this,p):p[0],f=h.cache;if(f.has(d))return f.get(d);var g=v.apply(this,p);return h.cache=f.set(d,g)||f,g};return h.cache=new(u.Cache||i),h}u.Cache=i,C.exports=u},54070:C=>{function c(){}C.exports=c},68701:(C,c,t)=>{var i=t(45590),s=function(){return i.Date.now()};C.exports=s},58517:(C,c,t)=>{var i=t(50357),s=t(59546),u=t(39012),v=t(43161),l=t(65597),h=t(82023),p=t(91200),d=t(47433),f=1,g=2,y=4,b=p(function(E,S){var w={};if(E==null)return w;var x=!1;S=i(S,function(R){return R=v(R,E),x||(x=R.length>1),R}),l(E,d(E),w),x&&(w=s(w,f|g|y,h));for(var P=S.length;P--;)u(w,S[P]);return w});C.exports=b},75123:(C,c,t)=>{var i=t(62562),s=t(91200),u=s(function(v,l){return v==null?{}:i(v,l)});C.exports=u},86348:(C,c,t)=>{var i=t(39067),s=t(24181),u=t(27801),v=t(26313);function l(h){return u(h)?i(v(h)):s(h)}C.exports=l},53659:(C,c,t)=>{var i=t(1042),s=i();C.exports=s},7054:C=>{function c(){return[]}C.exports=c},45790:C=>{function c(){return!1}C.exports=c},44401:(C,c,t)=>{var i=t(43730),s=t(57990),u="Expected a function";function v(l,h,p){var d=!0,f=!0;if(typeof l!="function")throw new TypeError(u);return s(p)&&(d="leading"in p?!!p.leading:d,f="trailing"in p?!!p.trailing:f),i(l,h,{leading:d,maxWait:h,trailing:f})}C.exports=v},55533:(C,c,t)=>{var i=t(67710),s=1/0,u=17976931348623157e292;function v(l){if(!l)return l===0?l:0;if(l=i(l),l===s||l===-s){var h=l<0?-1:1;return h*u}return l===l?l:0}C.exports=v},67710:(C,c,t)=>{var i=t(98202),s=t(57990),u=t(61826),v=0/0,l=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,p=/^0o[0-7]+$/i,d=parseInt;function f(g){if(typeof g=="number")return g;if(u(g))return v;if(s(g)){var y=typeof g.valueOf=="function"?g.valueOf():g;g=s(y)?y+"":y}if(typeof g!="string")return g===0?g:+g;g=i(g);var b=h.test(g);return b||p.test(g)?d(g.slice(2),b?2:8):l.test(g)?v:+g}C.exports=f},5195:(C,c,t)=>{var i=t(18385);function s(u){return u==null?"":i(u)}C.exports=s},36777:(C,c,t)=>{var i=t(95821);function s(u){return u&&u.length?i(u):[]}C.exports=s},20049:(C,c,t)=>{C=t.nmd(C);var i=200,s="__lodash_hash_undefined__",u=1,v=2,l=9007199254740991,h="[object Arguments]",p="[object Array]",d="[object AsyncFunction]",f="[object Boolean]",g="[object Date]",y="[object Error]",b="[object Function]",E="[object GeneratorFunction]",S="[object Map]",w="[object Number]",x="[object Null]",P="[object Object]",R="[object Promise]",T="[object Proxy]",A="[object RegExp]",I="[object Set]",N="[object String]",K="[object Symbol]",_="[object Undefined]",W="[object WeakMap]",j="[object ArrayBuffer]",re="[object DataView]",X="[object Float32Array]",Z="[object Float64Array]",J="[object Int8Array]",q="[object Int16Array]",L="[object Int32Array]",$="[object Uint8Array]",k="[object Uint8ClampedArray]",F="[object Uint16Array]",V="[object Uint32Array]",pe=/[\\^$.*+?()[\]{}|]/g,ce=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,te={};te[X]=te[Z]=te[J]=te[q]=te[L]=te[$]=te[k]=te[F]=te[V]=!0,te[h]=te[p]=te[j]=te[f]=te[re]=te[g]=te[y]=te[b]=te[S]=te[w]=te[P]=te[A]=te[I]=te[N]=te[W]=!1;var ie=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g,fe=typeof self=="object"&&self&&self.Object===Object&&self,Se=ie||fe||Function("return this")(),he=c&&!c.nodeType&&c,me=he&&!0&&C&&!C.nodeType&&C,_e=me&&me.exports===he,we=_e&&ie.process,Ge=function(){try{return we&&we.binding&&we.binding("util")}catch{}}(),ht=Ge&&Ge.isTypedArray;function nt(wr,qi){for(var ja=-1,uo=wr==null?0:wr.length,wi=0,ai=[];++ja<uo;){var za=wr[ja];qi(za,ja,wr)&&(ai[wi++]=za)}return ai}function Re(wr,qi){for(var ja=-1,uo=qi.length,wi=wr.length;++ja<uo;)wr[wi+ja]=qi[ja];return wr}function ue(wr,qi){for(var ja=-1,uo=wr==null?0:wr.length;++ja<uo;)if(qi(wr[ja],ja,wr))return!0;return!1}function ae(wr,qi){for(var ja=-1,uo=Array(wr);++ja<wr;)uo[ja]=qi(ja);return uo}function ve(wr){return function(qi){return wr(qi)}}function Me(wr,qi){return wr.has(qi)}function Ye(wr,qi){return wr?.[qi]}function qe(wr){var qi=-1,ja=Array(wr.size);return wr.forEach(function(uo,wi){ja[++qi]=[wi,uo]}),ja}function At(wr,qi){return function(ja){return wr(qi(ja))}}function It(wr){var qi=-1,ja=Array(wr.size);return wr.forEach(function(uo){ja[++qi]=uo}),ja}var Ce=Array.prototype,Ae=Function.prototype,$e=Object.prototype,tt=Se["__core-js_shared__"],ke=Ae.toString,Oe=$e.hasOwnProperty,je=function(){var wr=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||"");return wr?"Symbol(src)_1."+wr:""}(),Et=$e.toString,ct=RegExp("^"+ke.call(Oe).replace(pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=_e?Se.Buffer:void 0,Ne=Se.Symbol,mt=Se.Uint8Array,bt=$e.propertyIsEnumerable,Gt=Ce.splice,hn=Ne?Ne.toStringTag:void 0,Yt=Object.getOwnPropertySymbols,Bt=ut?ut.isBuffer:void 0,Lt=At(Object.keys,Object),zt=xt(Se,"DataView"),Kt=xt(Se,"Map"),vt=xt(Se,"Promise"),Ve=xt(Se,"Set"),lt=xt(Se,"WeakMap"),at=xt(Object,"create"),Xt=Ir(zt),rt=Ir(Kt),Rt=Ir(vt),rn=Ir(Ve),sn=Ir(lt),Jn=Ne?Ne.prototype:void 0,ze=Jn?Jn.valueOf:void 0;function st(wr){var qi=-1,ja=wr==null?0:wr.length;for(this.clear();++qi<ja;){var uo=wr[qi];this.set(uo[0],uo[1])}}function en(){this.__data__=at?at(null):{},this.size=0}function wt(wr){var qi=this.has(wr)&&delete this.__data__[wr];return this.size-=qi?1:0,qi}function Ke(wr){var qi=this.__data__;if(at){var ja=qi[wr];return ja===s?void 0:ja}return Oe.call(qi,wr)?qi[wr]:void 0}function Ut(wr){var qi=this.__data__;return at?qi[wr]!==void 0:Oe.call(qi,wr)}function on(wr,qi){var ja=this.__data__;return this.size+=this.has(wr)?0:1,ja[wr]=at&&qi===void 0?s:qi,this}st.prototype.clear=en,st.prototype.delete=wt,st.prototype.get=Ke,st.prototype.has=Ut,st.prototype.set=on;function Tn(wr){var qi=-1,ja=wr==null?0:wr.length;for(this.clear();++qi<ja;){var uo=wr[qi];this.set(uo[0],uo[1])}}function An(){this.__data__=[],this.size=0}function Zt(wr){var qi=this.__data__,ja=Ci(qi,wr);if(ja<0)return!1;var uo=qi.length-1;return ja==uo?qi.pop():Gt.call(qi,ja,1),--this.size,!0}function ot(wr){var qi=this.__data__,ja=Ci(qi,wr);return ja<0?void 0:qi[ja][1]}function We(wr){return Ci(this.__data__,wr)>-1}function Ft(wr,qi){var ja=this.__data__,uo=Ci(ja,wr);return uo<0?(++this.size,ja.push([wr,qi])):ja[uo][1]=qi,this}Tn.prototype.clear=An,Tn.prototype.delete=Zt,Tn.prototype.get=ot,Tn.prototype.has=We,Tn.prototype.set=Ft;function it(wr){var qi=-1,ja=wr==null?0:wr.length;for(this.clear();++qi<ja;){var uo=wr[qi];this.set(uo[0],uo[1])}}function qt(){this.size=0,this.__data__={hash:new st,map:new(Kt||Tn),string:new st}}function vn(wr){var qi=Ti(this,wr).delete(wr);return this.size-=qi?1:0,qi}function fn(wr){return Ti(this,wr).get(wr)}function Tt(wr){return Ti(this,wr).has(wr)}function dn(wr,qi){var ja=Ti(this,wr),uo=ja.size;return ja.set(wr,qi),this.size+=ja.size==uo?0:1,this}it.prototype.clear=qt,it.prototype.delete=vn,it.prototype.get=fn,it.prototype.has=Tt,it.prototype.set=dn;function mn(wr){var qi=-1,ja=wr==null?0:wr.length;for(this.__data__=new it;++qi<ja;)this.add(wr[qi])}function Kn(wr){return this.__data__.set(wr,s),this}function Dn(wr){return this.__data__.has(wr)}mn.prototype.add=mn.prototype.push=Kn,mn.prototype.has=Dn;function Vn(wr){var qi=this.__data__=new Tn(wr);this.size=qi.size}function or(){this.__data__=new Tn,this.size=0}function Qr(wr){var qi=this.__data__,ja=qi.delete(wr);return this.size=qi.size,ja}function ni(wr){return this.__data__.get(wr)}function yr(wr){return this.__data__.has(wr)}function si(wr,qi){var ja=this.__data__;if(ja instanceof Tn){var uo=ja.__data__;if(!Kt||uo.length<i-1)return uo.push([wr,qi]),this.size=++ja.size,this;ja=this.__data__=new it(uo)}return ja.set(wr,qi),this.size=ja.size,this}Vn.prototype.clear=or,Vn.prototype.delete=Qr,Vn.prototype.get=ni,Vn.prototype.has=yr,Vn.prototype.set=si;function Yr(wr,qi){var ja=Jr(wr),uo=!ja&&lr(wr),wi=!ja&&!uo&&Ri(wr),ai=!ja&&!uo&&!wi&&Bo(wr),za=ja||uo||wi||ai,Mt=za?ae(wr.length,String):[],Gn=Mt.length;for(var qn in wr)(qi||Oe.call(wr,qn))&&!(za&&(qn=="length"||wi&&(qn=="offset"||qn=="parent")||ai&&(qn=="buffer"||qn=="byteLength"||qn=="byteOffset")||En(qn,Gn)))&&Mt.push(qn);return Mt}function Ci(wr,qi){for(var ja=wr.length;ja--;)if(Zr(wr[ja][0],qi))return ja;return-1}function Ni(wr,qi,ja){var uo=qi(wr);return Jr(wr)?uo:Re(uo,ja(wr))}function fa(wr){return wr==null?wr===void 0?_:x:hn&&hn in Object(wr)?On(wr):Mr(wr)}function ha(wr){return ao(wr)&&fa(wr)==h}function Ca(wr,qi,ja,uo,wi){return wr===qi?!0:wr==null||qi==null||!ao(wr)&&!ao(qi)?wr!==wr&&qi!==qi:li(wr,qi,ja,uo,Ca,wi)}function li(wr,qi,ja,uo,wi,ai){var za=Jr(wr),Mt=Jr(qi),Gn=za?p:Ur(wr),qn=Mt?p:Ur(qi);Gn=Gn==h?P:Gn,qn=qn==h?P:qn;var Fr=Gn==P,Ei=qn==P,ii=Gn==qn;if(ii&&Ri(wr)){if(!Ri(qi))return!1;za=!0,Fr=!1}if(ii&&!Fr)return ai||(ai=new Vn),za||Bo(wr)?vo(wr,qi,ja,uo,wi,ai):Qn(wr,qi,Gn,ja,uo,wi,ai);if(!(ja&u)){var Wi=Fr&&Oe.call(wr,"__wrapped__"),Ya=Ei&&Oe.call(qi,"__wrapped__");if(Wi||Ya){var qa=Wi?wr.value():wr,se=Ya?qi.value():qi;return ai||(ai=new Vn),wi(qa,se,ja,uo,ai)}}return ii?(ai||(ai=new Vn),_r(wr,qi,ja,uo,wi,ai)):!1}function la(wr){if(!to(wr)||jn(wr))return!1;var qi=ia(wr)?ct:ce;return qi.test(Ir(wr))}function Oa(wr){return ao(wr)&&Da(wr.length)&&!!te[fa(wr)]}function wa(wr){if(!rr(wr))return Lt(wr);var qi=[];for(var ja in Object(wr))Oe.call(wr,ja)&&ja!="constructor"&&qi.push(ja);return qi}function vo(wr,qi,ja,uo,wi,ai){var za=ja&u,Mt=wr.length,Gn=qi.length;if(Mt!=Gn&&!(za&&Gn>Mt))return!1;var qn=ai.get(wr);if(qn&&ai.get(qi))return qn==qi;var Fr=-1,Ei=!0,ii=ja&v?new mn:void 0;for(ai.set(wr,qi),ai.set(qi,wr);++Fr<Mt;){var Wi=wr[Fr],Ya=qi[Fr];if(uo)var qa=za?uo(Ya,Wi,Fr,qi,wr,ai):uo(Wi,Ya,Fr,wr,qi,ai);if(qa!==void 0){if(qa)continue;Ei=!1;break}if(ii){if(!ue(qi,function(se,ye){if(!Me(ii,ye)&&(Wi===se||wi(Wi,se,ja,uo,ai)))return ii.push(ye)})){Ei=!1;break}}else if(!(Wi===Ya||wi(Wi,Ya,ja,uo,ai))){Ei=!1;break}}return ai.delete(wr),ai.delete(qi),Ei}function Qn(wr,qi,ja,uo,wi,ai,za){switch(ja){case re:if(wr.byteLength!=qi.byteLength||wr.byteOffset!=qi.byteOffset)return!1;wr=wr.buffer,qi=qi.buffer;case j:return!(wr.byteLength!=qi.byteLength||!ai(new mt(wr),new mt(qi)));case f:case g:case w:return Zr(+wr,+qi);case y:return wr.name==qi.name&&wr.message==qi.message;case A:case N:return wr==qi+"";case S:var Mt=qe;case I:var Gn=uo&u;if(Mt||(Mt=It),wr.size!=qi.size&&!Gn)return!1;var qn=za.get(wr);if(qn)return qn==qi;uo|=v,za.set(wr,qi);var Fr=vo(Mt(wr),Mt(qi),uo,wi,ai,za);return za.delete(wr),Fr;case K:if(ze)return ze.call(wr)==ze.call(qi)}return!1}function _r(wr,qi,ja,uo,wi,ai){var za=ja&u,Mt=$r(wr),Gn=Mt.length,qn=$r(qi),Fr=qn.length;if(Gn!=Fr&&!za)return!1;for(var Ei=Gn;Ei--;){var ii=Mt[Ei];if(!(za?ii in qi:Oe.call(qi,ii)))return!1}var Wi=ai.get(wr);if(Wi&&ai.get(qi))return Wi==qi;var Ya=!0;ai.set(wr,qi),ai.set(qi,wr);for(var qa=za;++Ei<Gn;){ii=Mt[Ei];var se=wr[ii],ye=qi[ii];if(uo)var Xe=za?uo(ye,se,ii,qi,wr,ai):uo(se,ye,ii,wr,qi,ai);if(!(Xe===void 0?se===ye||wi(se,ye,ja,uo,ai):Xe)){Ya=!1;break}qa||(qa=ii=="constructor")}if(Ya&&!qa){var yt=wr.constructor,Wt=qi.constructor;yt!=Wt&&"constructor"in wr&&"constructor"in qi&&!(typeof yt=="function"&&yt instanceof yt&&typeof Wt=="function"&&Wt instanceof Wt)&&(Ya=!1)}return ai.delete(wr),ai.delete(qi),Ya}function $r(wr){return Ni(wr,jo,Zn)}function Ti(wr,qi){var ja=wr.__data__;return ln(qi)?ja[typeof qi=="string"?"string":"hash"]:ja.map}function xt(wr,qi){var ja=Ye(wr,qi);return la(ja)?ja:void 0}function On(wr){var qi=Oe.call(wr,hn),ja=wr[hn];try{wr[hn]=void 0;var uo=!0}catch{}var wi=Et.call(wr);return uo&&(qi?wr[hn]=ja:delete wr[hn]),wi}var Zn=Yt?function(wr){return wr==null?[]:(wr=Object(wr),nt(Yt(wr),function(qi){return bt.call(wr,qi)}))}:Jo,Ur=fa;(zt&&Ur(new zt(new ArrayBuffer(1)))!=re||Kt&&Ur(new Kt)!=S||vt&&Ur(vt.resolve())!=R||Ve&&Ur(new Ve)!=I||lt&&Ur(new lt)!=W)&&(Ur=function(wr){var qi=fa(wr),ja=qi==P?wr.constructor:void 0,uo=ja?Ir(ja):"";if(uo)switch(uo){case Xt:return re;case rt:return S;case Rt:return R;case rn:return I;case sn:return W}return qi});function En(wr,qi){return qi=qi??l,!!qi&&(typeof wr=="number"||G.test(wr))&&wr>-1&&wr%1==0&&wr<qi}function ln(wr){var qi=typeof wr;return qi=="string"||qi=="number"||qi=="symbol"||qi=="boolean"?wr!=="__proto__":wr===null}function jn(wr){return!!je&&je in wr}function rr(wr){var qi=wr&&wr.constructor,ja=typeof qi=="function"&&qi.prototype||$e;return wr===ja}function Mr(wr){return Et.call(wr)}function Ir(wr){if(wr!=null){try{return ke.call(wr)}catch{}try{return wr+""}catch{}}return""}function Zr(wr,qi){return wr===qi||wr!==wr&&qi!==qi}var lr=ha(function(){return arguments}())?ha:function(wr){return ao(wr)&&Oe.call(wr,"callee")&&!bt.call(wr,"callee")},Jr=Array.isArray;function pi(wr){return wr!=null&&Da(wr.length)&&!ia(wr)}var Ri=Bt||Go;function Ki(wr,qi){return Ca(wr,qi)}function ia(wr){if(!to(wr))return!1;var qi=fa(wr);return qi==b||qi==E||qi==d||qi==T}function Da(wr){return typeof wr=="number"&&wr>-1&&wr%1==0&&wr<=l}function to(wr){var qi=typeof wr;return wr!=null&&(qi=="object"||qi=="function")}function ao(wr){return wr!=null&&typeof wr=="object"}var Bo=ht?ve(ht):Oa;function jo(wr){return pi(wr)?Yr(wr):wa(wr)}function Jo(){return[]}function Go(){return!1}C.exports=Ki},6112:(C,c,t)=>{var i="Expected a function",s="__lodash_hash_undefined__",u="[object Function]",v="[object GeneratorFunction]",l=/[\\^$.*+?()[\]{}|]/g,h=/^\[object .+?Constructor\]$/,p=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g,d=typeof self=="object"&&self&&self.Object===Object&&self,f=p||d||Function("return this")();function g(ae,ve){return ae?.[ve]}function y(ae){var ve=!1;if(ae!=null&&typeof ae.toString!="function")try{ve=!!(ae+"")}catch{}return ve}var b=Array.prototype,E=Function.prototype,S=Object.prototype,w=f["__core-js_shared__"],x=function(){var ae=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||"");return ae?"Symbol(src)_1."+ae:""}(),P=E.toString,R=S.hasOwnProperty,T=S.toString,A=RegExp("^"+P.call(R).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=b.splice,N=me(f,"Map"),K=me(Object,"create");function _(ae){var ve=-1,Me=ae?ae.length:0;for(this.clear();++ve<Me;){var Ye=ae[ve];this.set(Ye[0],Ye[1])}}function W(){this.__data__=K?K(null):{}}function j(ae){return this.has(ae)&&delete this.__data__[ae]}function re(ae){var ve=this.__data__;if(K){var Me=ve[ae];return Me===s?void 0:Me}return R.call(ve,ae)?ve[ae]:void 0}function X(ae){var ve=this.__data__;return K?ve[ae]!==void 0:R.call(ve,ae)}function Z(ae,ve){var Me=this.__data__;return Me[ae]=K&&ve===void 0?s:ve,this}_.prototype.clear=W,_.prototype.delete=j,_.prototype.get=re,_.prototype.has=X,_.prototype.set=Z;function J(ae){var ve=-1,Me=ae?ae.length:0;for(this.clear();++ve<Me;){var Ye=ae[ve];this.set(Ye[0],Ye[1])}}function q(){this.__data__=[]}function L(ae){var ve=this.__data__,Me=fe(ve,ae);if(Me<0)return!1;var Ye=ve.length-1;return Me==Ye?ve.pop():I.call(ve,Me,1),!0}function $(ae){var ve=this.__data__,Me=fe(ve,ae);return Me<0?void 0:ve[Me][1]}function k(ae){return fe(this.__data__,ae)>-1}function F(ae,ve){var Me=this.__data__,Ye=fe(Me,ae);return Ye<0?Me.push([ae,ve]):Me[Ye][1]=ve,this}J.prototype.clear=q,J.prototype.delete=L,J.prototype.get=$,J.prototype.has=k,J.prototype.set=F;function V(ae){var ve=-1,Me=ae?ae.length:0;for(this.clear();++ve<Me;){var Ye=ae[ve];this.set(Ye[0],Ye[1])}}function pe(){this.__data__={hash:new _,map:new(N||J),string:new _}}function ce(ae){return he(this,ae).delete(ae)}function G(ae){return he(this,ae).get(ae)}function te(ae){return he(this,ae).has(ae)}function ie(ae,ve){return he(this,ae).set(ae,ve),this}V.prototype.clear=pe,V.prototype.delete=ce,V.prototype.get=G,V.prototype.has=te,V.prototype.set=ie;function fe(ae,ve){for(var Me=ae.length;Me--;)if(nt(ae[Me][0],ve))return Me;return-1}function Se(ae){if(!ue(ae)||we(ae))return!1;var ve=Re(ae)||y(ae)?A:h;return ve.test(Ge(ae))}function he(ae,ve){var Me=ae.__data__;return _e(ve)?Me[typeof ve=="string"?"string":"hash"]:Me.map}function me(ae,ve){var Me=g(ae,ve);return Se(Me)?Me:void 0}function _e(ae){var ve=typeof ae;return ve=="string"||ve=="number"||ve=="symbol"||ve=="boolean"?ae!=="__proto__":ae===null}function we(ae){return!!x&&x in ae}function Ge(ae){if(ae!=null){try{return P.call(ae)}catch{}try{return ae+""}catch{}}return""}function ht(ae,ve){if(typeof ae!="function"||ve&&typeof ve!="function")throw new TypeError(i);var Me=function(){var Ye=arguments,qe=ve?ve.apply(this,Ye):Ye[0],At=Me.cache;if(At.has(qe))return At.get(qe);var It=ae.apply(this,Ye);return Me.cache=At.set(qe,It),It};return Me.cache=new(ht.Cache||V),Me}ht.Cache=V;function nt(ae,ve){return ae===ve||ae!==ae&&ve!==ve}function Re(ae){var ve=ue(ae)?T.call(ae):"";return ve==u||ve==v}function ue(ae){var ve=typeof ae;return!!ae&&(ve=="object"||ve=="function")}C.exports=ht},62244:(C,c)=>{c=C.exports=function(t){var i;return t==null&&(t={}),function(s,u,v){if(s._body)return v();var l=s.header("content-type")===t.contentType;if(!l)return v();s._body=!0,s.body=s.body||{};var h;h="",s.setEncoding("utf8"),s.on("data",function(p){return h+=p}),s.on("end",function(){try{var p=[];h.trim().split(` `).forEach(function(d){p.push(t.parser(d))}),s.body=p}catch(d){return d.body=h,d.status=400,v(d)}return v()})}}},94873:(C,c,t)=>{var i=t(42467),s=t(54344),u=t(66447).Readable,v=t(66447).PassThrough,l=t(69442);c=C.exports=function(h){h==null&&(h={});var p=h.contentType||"application/logplex-1";return function(d,f,g){if(d._body)return g();var y=d.header("content-type")===p;return y&&(d._body=!0,d.body=new v({objectMode:!0}),d.pipe(l.streamParser()).pipe(d.body)),g()}}},97566:(C,c)=>{c.debug=!1,c.parse=function(t){var i="",s="",u=!0,v=!1,l=!1,h=!1,p=!1,d={},f=c.debug;t[t.length-1]==` `&&(t=t.slice(0,t.length-1));for(var g=0;g<=t.length;g++){if(t[g]==" "&&!h||g==t.length){if(v&&i.length>0?d[i]=!0:l&&(s=="true"?s=!0:s=="false"?s=!1:s===""&&!p&&(s=null),d[i]=s,s=""),g==t.length)break;v=!1,l=!1,h=!1,p=!1}t[g]=="="&&!h?(f&&console.log("split"),v=!1,l=!0):t[g]=="\\"?(g++,s+=t[g],f&&console.log("escape: "+t[g])):t[g]=='"'?(p=!0,h=!h,f&&console.log("in quote: "+h)):t[g]!=" "&&!l&&!v?(f&&console.log("start key with: "+t[g]),v=!0,i=t[g]):v?(f&&console.log("add to key: "+t[g]),i+=t[g]):l&&(f&&console.log("add to value: "+t[g]),s+=t[g])}return d}},51637:(C,c,t)=>{c.log=function(i,s){this.stream=this.stream||process.stdout,s==null&&(s=this.stream);var u=Object.assign({},this.defaultData,i);if(this.timers)for(var v in this.timers){var l=new Date().getTime();u[v]=(l-this.timers[v]).toString()+"ms"}s.write(this.stringify(u)+` `)},c.time=function(v){var s=t(69442),u=new Date().getTime(),v=v||"elapsed",l=new s;return l.stream=this.stream,l.defaultData=this.defaultData,l.timers=Object.assign({},this.timers),l.timers[v]=u,l},c.namespace=function(i){var s=t(69442),u=new s,v=Object.assign({},this.defaultData,i);return u.stream=this.stream,u.defaultData=v,u.timers=this.timers,u},c.error=function(i,s){this.maxErrorLines=this.maxErrorLines||10,s===void 0&&(s=Math.random().toString().slice(2,12));var u=this.namespace({error:!0,id:s,now:new Date().toISOString()});if(u.log({message:i.message}),i.stack){var v=i.stack.split(` `);for(var l in v){if(l>=this.maxErrorLines)break;u.log({line:l,trace:v[l]})}}}},69535:(C,c)=>{var t=function(u,v){if(typeof u.path=="function")var l=u.path();else var l=u.originalUrl||u.path||u.url;var h=u.header&&u.header("x-forwarded-for"),p=u.header&&u.header("x-request-id"),d=u.ip||h||u.connection.remoteAddress,f={ip:d,time:new Date().toISOString(),method:u.method,path:l,status:v.statusCode};return p&&(f.request_id=p),v.get&&(f.content_length=v.get("content-length"),f.content_type=v.get("content-type")),f},i=function(u,v,l){return function(h,p,d){var f=l(h,p);u.log(f),d()}},s=function(u,v,l){return function(h,p,d){var f=v.elapsed||"elapsed",g=u.time(f),y=p.end;p.end=function(b,E){var S=l(h,p);p.end=y,p.end(b,E),g.log(S)},d()}};c.init=function(u,v,l){return this.logger=u,!l&&!v?(l=t,v={}):l||(typeof v=="function"?(l=v,v={}):l=t),v=v||{},v.immediate?i(u,v,l):s(u,v,l)},c.commonFormatter=t},15949:(C,c,t)=>{var i=t(42467),s=t(54344),u=t(66447).PassThrough;c.streamParser=function(l){var l=l||{},h=new u,p=this,d=s(function(f){f!==""&&this.queue(p.parse(f))});return h.on("pipe",function(f){f.unpipe&&f.unpipe(this),this.transformStream=f.pipe(i()).pipe(d)}),h.pipe=function(f,g){return this.transformStream.pipe(f,g)},h},c.streamStringify=function(h){var l=this,h=h||{};if(h.hasOwnProperty("delimiter"))var p=h.delimiter;else var p=` `;return s(function(d){this.queue(l.stringify(d)+p)},function(){this.queue(null)})}},60035:(C,c)=>{c.stringify=function(t){var i="";for(var s in t){var u=t[s],v=!1;u==null?(v=!0,u=""):u=u.toString();var l=u.indexOf(" ")>-1||u.indexOf("=")>-1,h=u.indexOf('"')>-1||u.indexOf("\\")>-1;h&&(u=u.replace(/["\\]/g,"\\$&")),l&&(u='"'+u+'"'),u===""&&!v&&(u='""'),i+=s+"="+u+" "}return i.substring(0,i.length-1)}},69442:(C,c,t)=>{function i(){}C.exports=i;var s=t(15949),u=t(62244),v=t(94873),l=t(97566),h=t(51637),p=t(69535),d=t(60035);Object.assign(i.prototype,h),Object.assign(i.prototype,s),i.prototype.stringify=d.stringify,i.prototype.parse=l.parse,i.prototype.bodyParser=function(f){f||(f={});var g=f.contentType||"application/logplex-1";return u({contentType:g,parser:this.parse})},i.prototype.bodyParserStream=function(f){f||(f={});var g=f.contentType||"application/logplex-1";return v({contentType:g})},i.prototype.requestLogger=function(f,g){return p.init(this,f,g)},i.prototype.requestLogger.commonFormatter=p.commonFormatter,Object.assign(i,i.prototype)},49716:(C,c,t)=>{"use strict";const i=t(62430),s=Symbol("max"),u=Symbol("length"),v=Symbol("lengthCalculator"),l=Symbol("allowStale"),h=Symbol("maxAge"),p=Symbol("dispose"),d=Symbol("noDisposeOnSet"),f=Symbol("lruList"),g=Symbol("cache"),y=Symbol("updateAgeOnGet"),b=()=>1;class E{constructor(I){if(typeof I=="number"&&(I={max:I}),I||(I={}),I.max&&(typeof I.max!="number"||I.max<0))throw new TypeError("max must be a non-negative number");const N=this[s]=I.max||1/0,K=I.length||b;if(this[v]=typeof K!="function"?b:K,this[l]=I.stale||!1,I.maxAge&&typeof I.maxAge!="number")throw new TypeError("maxAge must be a number");this[h]=I.maxAge||0,this[p]=I.dispose,this[d]=I.noDisposeOnSet||!1,this[y]=I.updateAgeOnGet||!1,this.reset()}set max(I){if(typeof I!="number"||I<0)throw new TypeError("max must be a non-negative number");this[s]=I||1/0,x(this)}get max(){return this[s]}set allowStale(I){this[l]=!!I}get allowStale(){return this[l]}set maxAge(I){if(typeof I!="number")throw new TypeError("maxAge must be a non-negative number");this[h]=I,x(this)}get maxAge(){return this[h]}set lengthCalculator(I){typeof I!="function"&&(I=b),I!==this[v]&&(this[v]=I,this[u]=0,this[f].forEach(N=>{N.length=this[v](N.value,N.key),this[u]+=N.length})),x(this)}get lengthCalculator(){return this[v]}get length(){return this[u]}get itemCount(){return this[f].length}rforEach(I,N){N=N||this;for(let K=this[f].tail;K!==null;){const _=K.prev;T(this,I,K,N),K=_}}forEach(I,N){N=N||this;for(let K=this[f].head;K!==null;){const _=K.next;T(this,I,K,N),K=_}}keys(){return this[f].toArray().map(I=>I.key)}values(){return this[f].toArray().map(I=>I.value)}reset(){this[p]&&this[f]&&this[f].length&&this[f].forEach(I=>this[p](I.key,I.value)),this[g]=new Map,this[f]=new i,this[u]=0}dump(){return this[f].map(I=>w(this,I)?!1:{k:I.key,v:I.value,e:I.now+(I.maxAge||0)}).toArray().filter(I=>I)}dumpLru(){return this[f]}set(I,N,K){if(K=K||this[h],K&&typeof K!="number")throw new TypeError("maxAge must be a number");const _=K?Date.now():0,W=this[v](N,I);if(this[g].has(I)){if(W>this[s])return P(this,this[g].get(I)),!1;const X=this[g].get(I).value;return this[p]&&(this[d]||this[p](I,X.value)),X.now=_,X.maxAge=K,X.value=N,this[u]+=W-X.length,X.length=W,this.get(I),x(this),!0}const j=new R(I,N,W,_,K);return j.length>this[s]?(this[p]&&this[p](I,N),!1):(this[u]+=j.length,this[f].unshift(j),this[g].set(I,this[f].head),x(this),!0)}has(I){if(!this[g].has(I))return!1;const N=this[g].get(I).value;return!w(this,N)}get(I){return S(this,I,!0)}peek(I){return S(this,I,!1)}pop(){const I=this[f].tail;return I?(P(this,I),I.value):null}del(I){P(this,this[g].get(I))}load(I){this.reset();const N=Date.now();for(let K=I.length-1;K>=0;K--){const _=I[K],W=_.e||0;if(W===0)this.set(_.k,_.v);else{const j=W-N;j>0&&this.set(_.k,_.v,j)}}}prune(){this[g].forEach((I,N)=>S(this,N,!1))}}const S=(A,I,N)=>{const K=A[g].get(I);if(K){const _=K.value;if(w(A,_)){if(P(A,K),!A[l])return}else N&&(A[y]&&(K.value.now=Date.now()),A[f].unshiftNode(K));return _.value}},w=(A,I)=>{if(!I||!I.maxAge&&!A[h])return!1;const N=Date.now()-I.now;return I.maxAge?N>I.maxAge:A[h]&&N>A[h]},x=A=>{if(A[u]>A[s])for(let I=A[f].tail;A[u]>A[s]&&I!==null;){const N=I.prev;P(A,I),I=N}},P=(A,I)=>{if(I){const N=I.value;A[p]&&A[p](N.key,N.value),A[u]-=N.length,A[g].delete(N.key),A[f].removeNode(I)}};class R{constructor(I,N,K,_,W){this.key=I,this.value=N,this.length=K,this.now=_,this.maxAge=W||0}}const T=(A,I,N,K)=>{let _=N.value;w(A,_)&&(P(A,N),A[l]||(_=void 0)),_&&I.call(K,_.value,_.key,A)};C.exports=E},79662:(C,c,t)=>{"use strict";t.d(c,{Z:()=>f});var i=function(y,b){return Object.prototype.hasOwnProperty.call(y,b)};function s(g,y){function b(E,S){if(g(E,S))return!0;if(Array.isArray(E))return!(!Array.isArray(S)||E.length!==S.length||!E.every(function(A,I){return b(A,S[I])}));if(Array.isArray(S))return!1;if(typeof E=="object"){if(typeof S!="object")return!1;var w=E===null,x=S===null;if(w||x)return w===x;var P=Object.keys(E),R=Object.keys(S);if(P.length!==R.length)return!1;var T=y?b:g;return!!P.every(function(A){return i(E,A)&&i(S,A)&&T(E[A],S[A])})}return!1}return b}var u=function(y,b){for(var E=0;E<y.length;E++)if(b(y[E]))return E;return-1};function v(g,y){var b=[];function E(w){var x=u(b,function(R){return y(w,R.key)});if(x>-1){var P=b[x];return x>0&&(b.splice(x,1),b.unshift(P)),P.value}}function S(w,x){E(w)||(b.unshift({key:w,value:x}),b.length>g&&b.pop())}return{get:E,put:S}}function l(g){var y;return{get:function(E){if(y&&g(E,y.key))return y.value},put:function(E,S){y={key:E,value:S}}}}function h(g,y){return g===1?l(y):v(g,y)}function p(g,y){var b=y?s(g,y):g;return function(E,S){if(E.length!==S.length)return!1;for(var w=0;w<E.length;w+=1)if(!b(E[w],S[w]))return!1;return!0}}function d(){for(var g=1,y=function(R,T){return R===T},b=!1,E=arguments.length,S=new Array(E),w=0;w<E;w++)S[w]=arguments[w];typeof S[0]=="number"&&(g=S.shift()),typeof S[0]=="function"?y=S.shift():typeof S[0]>"u"&&S.shift(),typeof S[0]=="boolean"&&(b=S[0]);var x=h(g,p(y,b));return function(P){return function(){for(var R=arguments.length,T=new Array(R),A=0;A<R;A++)T[A]=arguments[A];var I=x.get(T);return I===void 0&&(I=P.apply(P,T),x.put(T,I)),I}}}const f=d},9200:(C,c,t)=>{"use strict";t.r(c),t.d(c,{default:()=>l});var i=Number.isNaN||function(p){return typeof p=="number"&&p!==p};function s(h,p){return!!(h===p||i(h)&&i(p))}function u(h,p){if(h.length!==p.length)return!1;for(var d=0;d<h.length;d++)if(!s(h[d],p[d]))return!1;return!0}function v(h,p){p===void 0&&(p=u);var d,f=[],g,y=!1;function b(){for(var E=[],S=0;S<arguments.length;S++)E[S]=arguments[S];return y&&d===this&&p(E,f)||(g=h.apply(this,E),y=!0,d=this,f=E),g}return b}const l=v},82152:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=Number.isNaN||function(h){return typeof h=="number"&&h!==h};function s(l,h){return!!(l===h||i(l)&&i(h))}function u(l,h){if(l.length!==h.length)return!1;for(var p=0;p<l.length;p++)if(!s(l[p],h[p]))return!1;return!0}function v(l,h){h===void 0&&(h=u);var p=null;function d(){for(var f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];if(p&&p.lastThis===this&&h(f,p.lastArgs))return p.lastResult;var y=l.apply(this,f);return p={lastResult:y,lastArgs:f,lastThis:this},y}return d.clear=function(){p=null},d}},24588:(C,c,t)=>{var i=C.exports=t(66299);i.tz.load(t(94677))},66299:function(C,c,t){var i,s,u;//! moment-timezone.js //! version : 0.5.41 //! Copyright (c) JS Foundation and other contributors //! license : MIT //! github.com/moment/moment-timezone (function(v,l){"use strict";C.exports?C.exports=l(t(79913)):(s=[t(79913)],i=l,u=typeof i=="function"?i.apply(c,s):i,u!==void 0&&(C.exports=u))})(this,function(v){"use strict";v.version===void 0&&v.default&&(v=v.default);var l="0.5.41",h={},p={},d={},f={},g={},y;(!v||typeof v.version!="string")&&he("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var b=v.version.split("."),E=+b[0],S=+b[1];(E<2||E===2&&S<6)&&he("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+v.version+". See momentjs.com");function w(Re){return Re>96?Re-87:Re>64?Re-29:Re-48}function x(Re){var ue=0,ae=Re.split("."),ve=ae[0],Me=ae[1]||"",Ye=1,qe,At=0,It=1;for(Re.charCodeAt(0)===45&&(ue=1,It=-1),ue;ue<ve.length;ue++)qe=w(ve.charCodeAt(ue)),At=60*At+qe;for(ue=0;ue<Me.length;ue++)Ye=Ye/60,qe=w(Me.charCodeAt(ue)),At+=qe*Ye;return At*It}function P(Re){for(var ue=0;ue<Re.length;ue++)Re[ue]=x(Re[ue])}function R(Re,ue){for(var ae=0;ae<ue;ae++)Re[ae]=Math.round((Re[ae-1]||0)+Re[ae]*6e4);Re[ue-1]=1/0}function T(Re,ue){var ae=[],ve;for(ve=0;ve<ue.length;ve++)ae[ve]=Re[ue[ve]];return ae}function A(Re){var ue=Re.split("|"),ae=ue[2].split(" "),ve=ue[3].split(""),Me=ue[4].split(" ");return P(ae),P(ve),P(Me),R(Me,ve.length),{name:ue[0],abbrs:T(ue[1].split(" "),ve),offsets:T(ae,ve),untils:Me,population:ue[5]|0}}function I(Re){Re&&this._set(A(Re))}I.prototype={_set:function(Re){this.name=Re.name,this.abbrs=Re.abbrs,this.untils=Re.untils,this.offsets=Re.offsets,this.population=Re.population},_index:function(Re){var ue=+Re,ae=this.untils,ve;for(ve=0;ve<ae.length;ve++)if(ue<ae[ve])return ve},countries:function(){var Re=this.name;return Object.keys(d).filter(function(ue){return d[ue].zones.indexOf(Re)!==-1})},parse:function(Re){var ue=+Re,ae=this.offsets,ve=this.untils,Me=ve.length-1,Ye,qe,At,It;for(It=0;It<Me;It++)if(Ye=ae[It],qe=ae[It+1],At=ae[It&&It-1],Ye<qe&&me.moveAmbiguousForward?Ye=qe:Ye>At&&me.moveInvalidForward&&(Ye=At),ue<ve[It]-Ye*6e4)return ae[It];return ae[Me]},abbr:function(Re){return this.abbrs[this._index(Re)]},offset:function(Re){return he("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(Re)]},utcOffset:function(Re){return this.offsets[this._index(Re)]}};function N(Re,ue){this.name=Re,this.zones=ue}function K(Re){var ue=Re.toTimeString(),ae=ue.match(/\([a-z ]+\)/i);ae&&ae[0]?(ae=ae[0].match(/[A-Z]/g),ae=ae?ae.join(""):void 0):(ae=ue.match(/[A-Z]{3,5}/g),ae=ae?ae[0]:void 0),ae==="GMT"&&(ae=void 0),this.at=+Re,this.abbr=ae,this.offset=Re.getTimezoneOffset()}function _(Re){this.zone=Re,this.offsetScore=0,this.abbrScore=0}_.prototype.scoreOffsetAt=function(Re){this.offsetScore+=Math.abs(this.zone.utcOffset(Re.at)-Re.offset),this.zone.abbr(Re.at).replace(/[^A-Z]/g,"")!==Re.abbr&&this.abbrScore++};function W(Re,ue){for(var ae,ve;ve=((ue.at-Re.at)/12e4|0)*6e4;)ae=new K(new Date(Re.at+ve)),ae.offset===Re.offset?Re=ae:ue=ae;return Re}function j(){var Re=new Date().getFullYear()-2,ue=new K(new Date(Re,0,1)),ae=[ue],ve,Me,Ye;for(Ye=1;Ye<48;Ye++)Me=new K(new Date(Re,Ye,1)),Me.offset!==ue.offset&&(ve=W(ue,Me),ae.push(ve),ae.push(new K(new Date(ve.at+6e4)))),ue=Me;for(Ye=0;Ye<4;Ye++)ae.push(new K(new Date(Re+Ye,0,1))),ae.push(new K(new Date(Re+Ye,6,1)));return ae}function re(Re,ue){return Re.offsetScore!==ue.offsetScore?Re.offsetScore-ue.offsetScore:Re.abbrScore!==ue.abbrScore?Re.abbrScore-ue.abbrScore:Re.zone.population!==ue.zone.population?ue.zone.population-Re.zone.population:ue.zone.name.localeCompare(Re.zone.name)}function X(Re,ue){var ae,ve;for(P(ue),ae=0;ae<ue.length;ae++)ve=ue[ae],g[ve]=g[ve]||{},g[ve][Re]=!0}function Z(Re){var ue=Re.length,ae={},ve=[],Me,Ye,qe;for(Me=0;Me<ue;Me++){qe=g[Re[Me].offset]||{};for(Ye in qe)qe.hasOwnProperty(Ye)&&(ae[Ye]=!0)}for(Me in ae)ae.hasOwnProperty(Me)&&ve.push(f[Me]);return ve}function J(){try{var Re=Intl.DateTimeFormat().resolvedOptions().timeZone;if(Re&&Re.length>3){var ue=f[L(Re)];if(ue)return ue;he("Moment Timezone found "+Re+" from the Intl api, but did not have that data loaded.")}}catch{}var ae=j(),ve=ae.length,Me=Z(ae),Ye=[],qe,At,It;for(At=0;At<Me.length;At++){for(qe=new _(k(Me[At]),ve),It=0;It<ve;It++)qe.scoreOffsetAt(ae[It]);Ye.push(qe)}return Ye.sort(re),Ye.length>0?Ye[0].zone.name:void 0}function q(Re){return(!y||Re)&&(y=J()),y}function L(Re){return(Re||"").toLowerCase().replace(/\//g,"_")}function $(Re){var ue,ae,ve,Me;for(typeof Re=="string"&&(Re=[Re]),ue=0;ue<Re.length;ue++)ve=Re[ue].split("|"),ae=ve[0],Me=L(ae),h[Me]=Re[ue],f[Me]=ae,X(Me,ve[2].split(" "))}function k(Re,ue){Re=L(Re);var ae=h[Re],ve;return ae instanceof I?ae:typeof ae=="string"?(ae=new I(ae),h[Re]=ae,ae):p[Re]&&ue!==k&&(ve=k(p[Re],k))?(ae=h[Re]=new I,ae._set(ve),ae.name=f[Re],ae):null}function F(){var Re,ue=[];for(Re in f)f.hasOwnProperty(Re)&&(h[Re]||h[p[Re]])&&f[Re]&&ue.push(f[Re]);return ue.sort()}function V(){return Object.keys(d)}function pe(Re){var ue,ae,ve,Me;for(typeof Re=="string"&&(Re=[Re]),ue=0;ue<Re.length;ue++)ae=Re[ue].split("|"),ve=L(ae[0]),Me=L(ae[1]),p[ve]=Me,f[ve]=ae[0],p[Me]=ve,f[Me]=ae[1]}function ce(Re){var ue,ae,ve,Me;if(!(!Re||!Re.length))for(ue=0;ue<Re.length;ue++)Me=Re[ue].split("|"),ae=Me[0].toUpperCase(),ve=Me[1].split(" "),d[ae]=new N(ae,ve)}function G(Re){return Re=Re.toUpperCase(),d[Re]||null}function te(Re,ue){if(Re=G(Re),!Re)return null;var ae=Re.zones.sort();return ue?ae.map(function(ve){var Me=k(ve);return{name:ve,offset:Me.utcOffset(new Date)}}):ae}function ie(Re){$(Re.zones),pe(Re.links),ce(Re.countries),me.dataVersion=Re.version}function fe(Re){return fe.didShowError||(fe.didShowError=!0,he("moment.tz.zoneExists('"+Re+"') has been deprecated in favor of !moment.tz.zone('"+Re+"')")),!!k(Re)}function Se(Re){var ue=Re._f==="X"||Re._f==="x";return!!(Re._a&&Re._tzm===void 0&&!ue)}function he(Re){typeof console<"u"&&typeof console.error=="function"&&console.error(Re)}function me(Re){var ue=Array.prototype.slice.call(arguments,0,-1),ae=arguments[arguments.length-1],ve=k(ae),Me=v.utc.apply(null,ue);return ve&&!v.isMoment(Re)&&Se(Me)&&Me.add(ve.parse(Me),"minutes"),Me.tz(ae),Me}me.version=l,me.dataVersion="",me._zones=h,me._links=p,me._names=f,me._countries=d,me.add=$,me.link=pe,me.load=ie,me.zone=k,me.zoneExists=fe,me.guess=q,me.names=F,me.Zone=I,me.unpack=A,me.unpackBase60=x,me.needsOffset=Se,me.moveInvalidForward=!0,me.moveAmbiguousForward=!1,me.countries=V,me.zonesForCountry=te;var _e=v.fn;v.tz=me,v.defaultZone=null,v.updateOffset=function(Re,ue){var ae=v.defaultZone,ve;if(Re._z===void 0&&(ae&&Se(Re)&&!Re._isUTC&&(Re._d=v.utc(Re._a)._d,Re.utc().add(ae.parse(Re),"minutes")),Re._z=ae),Re._z)if(ve=Re._z.utcOffset(Re),Math.abs(ve)<16&&(ve=ve/60),Re.utcOffset!==void 0){var Me=Re._z;Re.utcOffset(-ve,ue),Re._z=Me}else Re.zone(ve,ue)},_e.tz=function(Re,ue){if(Re){if(typeof Re!="string")throw new Error("Time zone name must be a string, got "+Re+" ["+typeof Re+"]");return this._z=k(Re),this._z?v.updateOffset(this,ue):he("Moment Timezone has no data for "+Re+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name};function we(Re){return function(){return this._z?this._z.abbr(this):Re.call(this)}}function Ge(Re){return function(){return this._z=null,Re.apply(this,arguments)}}function ht(Re){return function(){return arguments.length>0&&(this._z=null),Re.apply(this,arguments)}}_e.zoneName=we(_e.zoneName),_e.zoneAbbr=we(_e.zoneAbbr),_e.utc=Ge(_e.utc),_e.local=Ge(_e.local),_e.utcOffset=ht(_e.utcOffset),v.tz.setDefault=function(Re){return(E<2||E===2&&S<9)&&he("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+v.version+"."),v.defaultZone=Re?k(Re):null,v};var nt=v.momentProperties;return Object.prototype.toString.call(nt)==="[object Array]"?(nt.push("_z"),nt.push("_a")):nt&&(nt._z=null),v})},64044:(C,c,t)=>{var i;(function(s,u,v){if(!s)return;for(var l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},h={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},p={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},f,g=1;g<20;++g)l[111+g]="f"+g;for(g=0;g<=9;++g)l[g+96]=g.toString();function y(_,W,j){if(_.addEventListener){_.addEventListener(W,j,!1);return}_.attachEvent("on"+W,j)}function b(_){if(_.type=="keypress"){var W=String.fromCharCode(_.which);return _.shiftKey||(W=W.toLowerCase()),W}return l[_.which]?l[_.which]:h[_.which]?h[_.which]:String.fromCharCode(_.which).toLowerCase()}function E(_,W){return _.sort().join(",")===W.sort().join(",")}function S(_){var W=[];return _.shiftKey&&W.push("shift"),_.altKey&&W.push("alt"),_.ctrlKey&&W.push("ctrl"),_.metaKey&&W.push("meta"),W}function w(_){if(_.preventDefault){_.preventDefault();return}_.returnValue=!1}function x(_){if(_.stopPropagation){_.stopPropagation();return}_.cancelBubble=!0}function P(_){return _=="shift"||_=="ctrl"||_=="alt"||_=="meta"}function R(){if(!f){f={};for(var _ in l)_>95&&_<112||l.hasOwnProperty(_)&&(f[l[_]]=_)}return f}function T(_,W,j){return j||(j=R()[_]?"keydown":"keypress"),j=="keypress"&&W.length&&(j="keydown"),j}function A(_){return _==="+"?["+"]:(_=_.replace(/\+{2}/g,"+plus"),_.split("+"))}function I(_,W){var j,re,X,Z=[];for(j=A(_),X=0;X<j.length;++X)re=j[X],d[re]&&(re=d[re]),W&&W!="keypress"&&p[re]&&(re=p[re],Z.push("shift")),P(re)&&Z.push(re);return W=T(re,Z,W),{key:re,modifiers:Z,action:W}}function N(_,W){return _===null||_===u?!1:_===W?!0:N(_.parentNode,W)}function K(_){var W=this;if(_=_||u,!(W instanceof K))return new K(_);W.target=_,W._callbacks={},W._directMap={};var j={},re,X=!1,Z=!1,J=!1;function q(ce){ce=ce||{};var G=!1,te;for(te in j){if(ce[te]){G=!0;continue}j[te]=0}G||(J=!1)}function L(ce,G,te,ie,fe,Se){var he,me,_e=[],we=te.type;if(!W._callbacks[ce])return[];for(we=="keyup"&&P(ce)&&(G=[ce]),he=0;he<W._callbacks[ce].length;++he)if(me=W._callbacks[ce][he],!(!ie&&me.seq&&j[me.seq]!=me.level)&&we==me.action&&(we=="keypress"&&!te.metaKey&&!te.ctrlKey||E(G,me.modifiers))){var Ge=!ie&&me.combo==fe,ht=ie&&me.seq==ie&&me.level==Se;(Ge||ht)&&W._callbacks[ce].splice(he,1),_e.push(me)}return _e}function $(ce,G,te,ie){W.stopCallback(G,G.target||G.srcElement,te,ie)||ce(G,te)===!1&&(w(G),x(G))}W._handleKey=function(ce,G,te){var ie=L(ce,G,te),fe,Se={},he=0,me=!1;for(fe=0;fe<ie.length;++fe)ie[fe].seq&&(he=Math.max(he,ie[fe].level));for(fe=0;fe<ie.length;++fe){if(ie[fe].seq){if(ie[fe].level!=he)continue;me=!0,Se[ie[fe].seq]=1,$(ie[fe].callback,te,ie[fe].combo,ie[fe].seq);continue}me||$(ie[fe].callback,te,ie[fe].combo)}var _e=te.type=="keypress"&&Z;te.type==J&&!P(ce)&&!_e&&q(Se),Z=me&&te.type=="keydown"};function k(ce){typeof ce.which!="number"&&(ce.which=ce.keyCode);var G=b(ce);if(G){if(ce.type=="keyup"&&X===G){X=!1;return}W.handleKey(G,S(ce),ce)}}function F(){clearTimeout(re),re=setTimeout(q,1e3)}function V(ce,G,te,ie){j[ce]=0;function fe(we){return function(){J=we,++j[ce],F()}}function Se(we){$(te,we,ce),ie!=="keyup"&&(X=b(we)),setTimeout(q,10)}for(var he=0;he<G.length;++he){var me=he+1===G.length,_e=me?Se:fe(ie||I(G[he+1]).action);pe(G[he],_e,ie,ce,he)}}function pe(ce,G,te,ie,fe){W._directMap[ce+":"+te]=G,ce=ce.replace(/\s+/g," ");var Se=ce.split(" "),he;if(Se.length>1){V(ce,Se,G,te);return}he=I(ce,te),W._callbacks[he.key]=W._callbacks[he.key]||[],L(he.key,he.modifiers,{type:he.action},ie,ce,fe),W._callbacks[he.key][ie?"unshift":"push"]({callback:G,modifiers:he.modifiers,action:he.action,seq:ie,level:fe,combo:ce})}W._bindMultiple=function(ce,G,te){for(var ie=0;ie<ce.length;++ie)pe(ce[ie],G,te)},y(_,"keypress",k),y(_,"keydown",k),y(_,"keyup",k)}K.prototype.bind=function(_,W,j){var re=this;return _=_ instanceof Array?_:[_],re._bindMultiple.call(re,_,W,j),re},K.prototype.unbind=function(_,W){var j=this;return j.bind.call(j,_,function(){},W)},K.prototype.trigger=function(_,W){var j=this;return j._directMap[_+":"+W]&&j._directMap[_+":"+W]({},_),j},K.prototype.reset=function(){var _=this;return _._callbacks={},_._directMap={},_},K.prototype.stopCallback=function(_,W){var j=this;if((" "+W.className+" ").indexOf(" mousetrap ")>-1||N(W,j.target))return!1;if("composedPath"in _&&typeof _.composedPath=="function"){var re=_.composedPath()[0];re!==_.target&&(W=re)}return W.tagName=="INPUT"||W.tagName=="SELECT"||W.tagName=="TEXTAREA"||W.isContentEditable},K.prototype.handleKey=function(){var _=this;return _._handleKey.apply(_,arguments)},K.addKeycodes=function(_){for(var W in _)_.hasOwnProperty(W)&&(l[W]=_[W]);f=null},K.init=function(){var _=K(u);for(var W in _)W.charAt(0)!=="_"&&(K[W]=function(j){return function(){return _[j].apply(_,arguments)}}(W))},K.init(),s.Mousetrap=K,C.exports&&(C.exports=K),i=function(){return K}.call(c,t,c,C),i!==v&&(C.exports=i)})(typeof window<"u"?window:null,typeof window<"u"?document:null)},49681:()=>{(function(C){if(C){var c={},t=C.prototype.stopCallback;C.prototype.stopCallback=function(i,s,u,v){var l=this;return l.paused?!0:c[u]||c[v]?!1:t.call(l,i,s,u)},C.prototype.bindGlobal=function(i,s,u){var v=this;if(v.bind(i,s,u),i instanceof Array){for(var l=0;l<i.length;l++)c[i[l]]=!0;return}c[i]=!0},C.init()}})(typeof Mousetrap<"u"?Mousetrap:void 0)},3735:C=>{var c=1e3,t=c*60,i=t*60,s=i*24,u=s*7,v=s*365.25;C.exports=function(f,g){g=g||{};var y=typeof f;if(y==="string"&&f.length>0)return l(f);if(y==="number"&&isFinite(f))return g.long?p(f):h(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function l(f){if(f=String(f),!(f.length>100)){var g=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(g){var y=parseFloat(g[1]),b=(g[2]||"ms").toLowerCase();switch(b){case"years":case"year":case"yrs":case"yr":case"y":return y*v;case"weeks":case"week":case"w":return y*u;case"days":case"day":case"d":return y*s;case"hours":case"hour":case"hrs":case"hr":case"h":return y*i;case"minutes":case"minute":case"mins":case"min":case"m":return y*t;case"seconds":case"second":case"secs":case"sec":case"s":return y*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return}}}}function h(f){var g=Math.abs(f);return g>=s?Math.round(f/s)+"d":g>=i?Math.round(f/i)+"h":g>=t?Math.round(f/t)+"m":g>=c?Math.round(f/c)+"s":f+"ms"}function p(f){var g=Math.abs(f);return g>=s?d(f,g,s,"day"):g>=i?d(f,g,i,"hour"):g>=t?d(f,g,t,"minute"):g>=c?d(f,g,c,"second"):f+" ms"}function d(f,g,y,b){var E=g>=y*1.5;return Math.round(f/y)+" "+b+(E?"s":"")}},27943:(C,c,t)=>{var i=t(13011),s=t(79876);C.exports=i,C.exports.murmur3=i,C.exports.murmur2=s},79876:C=>{function c(t,i){for(var s=t.length,u=i^s,v=0,l;s>=4;)l=t.charCodeAt(v)&255|(t.charCodeAt(++v)&255)<<8|(t.charCodeAt(++v)&255)<<16|(t.charCodeAt(++v)&255)<<24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),l^=l>>>24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),u=(u&65535)*1540483477+(((u>>>16)*1540483477&65535)<<16)^l,s-=4,++v;switch(s){case 3:u^=(t.charCodeAt(v+2)&255)<<16;case 2:u^=(t.charCodeAt(v+1)&255)<<8;case 1:u^=t.charCodeAt(v)&255,u=(u&65535)*1540483477+(((u>>>16)*1540483477&65535)<<16)}return u^=u>>>13,u=(u&65535)*1540483477+(((u>>>16)*1540483477&65535)<<16),u^=u>>>15,u>>>0}C.exports=c},13011:C=>{function c(t,i){var s,u,v,l,h,p,d,f,g,y;for(s=t.length&3,u=t.length-s,v=i,h=3432918353,d=461845907,y=0;y<u;)g=t.charCodeAt(y)&255|(t.charCodeAt(++y)&255)<<8|(t.charCodeAt(++y)&255)<<16|(t.charCodeAt(++y)&255)<<24,++y,g=(g&65535)*h+(((g>>>16)*h&65535)<<16)&4294967295,g=g<<15|g>>>17,g=(g&65535)*d+(((g>>>16)*d&65535)<<16)&4294967295,v^=g,v=v<<13|v>>>19,l=(v&65535)*5+(((v>>>16)*5&65535)<<16)&4294967295,v=(l&65535)+27492+(((l>>>16)+58964&65535)<<16);switch(g=0,s){case 3:g^=(t.charCodeAt(y+2)&255)<<16;case 2:g^=(t.charCodeAt(y+1)&255)<<8;case 1:g^=t.charCodeAt(y)&255,g=(g&65535)*h+(((g>>>16)*h&65535)<<16)&4294967295,g=g<<15|g>>>17,g=(g&65535)*d+(((g>>>16)*d&65535)<<16)&4294967295,v^=g}return v^=t.length,v^=v>>>16,v=(v&65535)*2246822507+(((v>>>16)*2246822507&65535)<<16)&4294967295,v^=v>>>13,v=(v&65535)*3266489909+(((v>>>16)*3266489909&65535)<<16)&4294967295,v^=v>>>16,v>>>0}C.exports=c},96677:C=>{"use strict";/* object-assign (c) Sindre Sorhus @license MIT */var c=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(v){if(v==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(v)}function u(){try{if(!Object.assign)return!1;var v=new String("abc");if(v[5]="de",Object.getOwnPropertyNames(v)[0]==="5")return!1;for(var l={},h=0;h<10;h++)l["_"+String.fromCharCode(h)]=h;var p=Object.getOwnPropertyNames(l).map(function(f){return l[f]});if(p.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}C.exports=u()?Object.assign:function(v,l){for(var h,p=s(v),d,f=1;f<arguments.length;f++){h=Object(arguments[f]);for(var g in h)t.call(h,g)&&(p[g]=h[g]);if(c){d=c(h);for(var y=0;y<d.length;y++)i.call(h,d[y])&&(p[d[y]]=h[d[y]])}}return p}},64802:function(C,c){var t,i,s;/* @license Papa Parse v5.4.1 https://github.com/mholt/PapaParse License: MIT */(function(u,v){i=[],t=v,s=typeof t=="function"?t.apply(c,i):t,s!==void 0&&(C.exports=s)})(this,function u(){"use strict";var v=typeof self<"u"?self:typeof window<"u"?window:v!==void 0?v:{},l=!v.document&&!!v.postMessage,h=v.IS_PAPA_WORKER||!1,p={},d=0,f={parse:function(W,j){var re=(j=j||{}).dynamicTyping||!1;if(_(re)&&(j.dynamicTypingFunction=re,re={}),j.dynamicTyping=re,j.transform=!!_(j.transform)&&j.transform,j.worker&&f.WORKERS_SUPPORTED){var X=function(){if(!f.WORKERS_SUPPORTED)return!1;var J=(L=v.URL||v.webkitURL||null,$=u.toString(),f.BLOB_URL||(f.BLOB_URL=L.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",$,")();"],{type:"text/javascript"})))),q=new v.Worker(J),L,$;return q.onmessage=T,q.id=d++,p[q.id]=q}();return X.userStep=j.step,X.userChunk=j.chunk,X.userComplete=j.complete,X.userError=j.error,j.step=_(j.step),j.chunk=_(j.chunk),j.complete=_(j.complete),j.error=_(j.error),delete j.worker,void X.postMessage({input:W,config:j,workerId:X.id})}var Z=null;return f.NODE_STREAM_INPUT,typeof W=="string"?(W=function(J){return J.charCodeAt(0)===65279?J.slice(1):J}(W),Z=j.download?new b(j):new S(j)):W.readable===!0&&_(W.read)&&_(W.on)?Z=new w(j):(v.File&&W instanceof File||W instanceof Object)&&(Z=new E(j)),Z.stream(W)},unparse:function(W,j){var re=!1,X=!0,Z=",",J=`\r `,q='"',L=q+q,$=!1,k=null,F=!1;(function(){if(typeof j=="object"){if(typeof j.delimiter!="string"||f.BAD_DELIMITERS.filter(function(G){return j.delimiter.indexOf(G)!==-1}).length||(Z=j.delimiter),(typeof j.quotes=="boolean"||typeof j.quotes=="function"||Array.isArray(j.quotes))&&(re=j.quotes),typeof j.skipEmptyLines!="boolean"&&typeof j.skipEmptyLines!="string"||($=j.skipEmptyLines),typeof j.newline=="string"&&(J=j.newline),typeof j.quoteChar=="string"&&(q=j.quoteChar),typeof j.header=="boolean"&&(X=j.header),Array.isArray(j.columns)){if(j.columns.length===0)throw new Error("Option columns is empty");k=j.columns}j.escapeChar!==void 0&&(L=j.escapeChar+q),(typeof j.escapeFormulae=="boolean"||j.escapeFormulae instanceof RegExp)&&(F=j.escapeFormulae instanceof RegExp?j.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var V=new RegExp(P(q),"g");if(typeof W=="string"&&(W=JSON.parse(W)),Array.isArray(W)){if(!W.length||Array.isArray(W[0]))return pe(null,W,$);if(typeof W[0]=="object")return pe(k||Object.keys(W[0]),W,$)}else if(typeof W=="object")return typeof W.data=="string"&&(W.data=JSON.parse(W.data)),Array.isArray(W.data)&&(W.fields||(W.fields=W.meta&&W.meta.fields||k),W.fields||(W.fields=Array.isArray(W.data[0])?W.fields:typeof W.data[0]=="object"?Object.keys(W.data[0]):[]),Array.isArray(W.data[0])||typeof W.data[0]=="object"||(W.data=[W.data])),pe(W.fields||[],W.data||[],$);throw new Error("Unable to serialize unrecognized input");function pe(G,te,ie){var fe="";typeof G=="string"&&(G=JSON.parse(G)),typeof te=="string"&&(te=JSON.parse(te));var Se=Array.isArray(G)&&0<G.length,he=!Array.isArray(te[0]);if(Se&&X){for(var me=0;me<G.length;me++)0<me&&(fe+=Z),fe+=ce(G[me],me);0<te.length&&(fe+=J)}for(var _e=0;_e<te.length;_e++){var we=Se?G.length:te[_e].length,Ge=!1,ht=Se?Object.keys(te[_e]).length===0:te[_e].length===0;if(ie&&!Se&&(Ge=ie==="greedy"?te[_e].join("").trim()==="":te[_e].length===1&&te[_e][0].length===0),ie==="greedy"&&Se){for(var nt=[],Re=0;Re<we;Re++){var ue=he?G[Re]:Re;nt.push(te[_e][ue])}Ge=nt.join("").trim()===""}if(!Ge){for(var ae=0;ae<we;ae++){0<ae&&!ht&&(fe+=Z);var ve=Se&&he?G[ae]:ae;fe+=ce(te[_e][ve],ae)}_e<te.length-1&&(!ie||0<we&&!ht)&&(fe+=J)}}return fe}function ce(G,te){if(G==null)return"";if(G.constructor===Date)return JSON.stringify(G).slice(1,25);var ie=!1;F&&typeof G=="string"&&F.test(G)&&(G="'"+G,ie=!0);var fe=G.toString().replace(V,L);return(ie=ie||re===!0||typeof re=="function"&&re(G,te)||Array.isArray(re)&&re[te]||function(Se,he){for(var me=0;me<he.length;me++)if(-1<Se.indexOf(he[me]))return!0;return!1}(fe,f.BAD_DELIMITERS)||-1<fe.indexOf(Z)||fe.charAt(0)===" "||fe.charAt(fe.length-1)===" ")?q+fe+q:fe}}};if(f.RECORD_SEP=String.fromCharCode(30),f.UNIT_SEP=String.fromCharCode(31),f.BYTE_ORDER_MARK="\uFEFF",f.BAD_DELIMITERS=["\r",` `,'"',f.BYTE_ORDER_MARK],f.WORKERS_SUPPORTED=!l&&!!v.Worker,f.NODE_STREAM_INPUT=1,f.LocalChunkSize=10485760,f.RemoteChunkSize=5242880,f.DefaultDelimiter=",",f.Parser=R,f.ParserHandle=x,f.NetworkStreamer=b,f.FileStreamer=E,f.StringStreamer=S,f.ReadableStreamStreamer=w,v.jQuery){var g=v.jQuery;g.fn.parse=function(W){var j=W.config||{},re=[];return this.each(function(J){if(!(g(this).prop("tagName").toUpperCase()==="INPUT"&&g(this).attr("type").toLowerCase()==="file"&&v.FileReader)||!this.files||this.files.length===0)return!0;for(var q=0;q<this.files.length;q++)re.push({file:this.files[q],inputElem:this,instanceConfig:g.extend({},j)})}),X(),this;function X(){if(re.length!==0){var J,q,L,$,k=re[0];if(_(W.before)){var F=W.before(k.file,k.inputElem);if(typeof F=="object"){if(F.action==="abort")return J="AbortError",q=k.file,L=k.inputElem,$=F.reason,void(_(W.error)&&W.error({name:J},q,L,$));if(F.action==="skip")return void Z();typeof F.config=="object"&&(k.instanceConfig=g.extend(k.instanceConfig,F.config))}else if(F==="skip")return void Z()}var V=k.instanceConfig.complete;k.instanceConfig.complete=function(pe){_(V)&&V(pe,k.file,k.inputElem),Z()},f.parse(k.file,k.instanceConfig)}else _(W.complete)&&W.complete()}function Z(){re.splice(0,1),X()}}}function y(W){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(j){var re=N(j);re.chunkSize=parseInt(re.chunkSize),j.step||j.chunk||(re.chunkSize=null),this._handle=new x(re),(this._handle.streamer=this)._config=re}.call(this,W),this.parseChunk=function(j,re){if(this.isFirstChunk&&_(this._config.beforeFirstChunk)){var X=this._config.beforeFirstChunk(j);X!==void 0&&(j=X)}this.isFirstChunk=!1,this._halted=!1;var Z=this._partialLine+j;this._partialLine="";var J=this._handle.parse(Z,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var q=J.meta.cursor;this._finished||(this._partialLine=Z.substring(q-this._baseIndex),this._baseIndex=q),J&&J.data&&(this._rowCount+=J.data.length);var L=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(h)v.postMessage({results:J,workerId:f.WORKER_ID,finished:L});else if(_(this._config.chunk)&&!re){if(this._config.chunk(J,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);J=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(J.data),this._completeResults.errors=this._completeResults.errors.concat(J.errors),this._completeResults.meta=J.meta),this._completed||!L||!_(this._config.complete)||J&&J.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),L||J&&J.meta.paused||this._nextChunk(),J}this._halted=!0},this._sendError=function(j){_(this._config.error)?this._config.error(j):h&&this._config.error&&v.postMessage({workerId:f.WORKER_ID,error:j,finished:!1})}}function b(W){var j;(W=W||{}).chunkSize||(W.chunkSize=f.RemoteChunkSize),y.call(this,W),this._nextChunk=l?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(re){this._input=re,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(j=new XMLHttpRequest,this._config.withCredentials&&(j.withCredentials=this._config.withCredentials),l||(j.onload=K(this._chunkLoaded,this),j.onerror=K(this._chunkError,this)),j.open(this._config.downloadRequestBody?"POST":"GET",this._input,!l),this._config.downloadRequestHeaders){var re=this._config.downloadRequestHeaders;for(var X in re)j.setRequestHeader(X,re[X])}if(this._config.chunkSize){var Z=this._start+this._config.chunkSize-1;j.setRequestHeader("Range","bytes="+this._start+"-"+Z)}try{j.send(this._config.downloadRequestBody)}catch(J){this._chunkError(J.message)}l&&j.status===0&&this._chunkError()}},this._chunkLoaded=function(){j.readyState===4&&(j.status<200||400<=j.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:j.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(re){var X=re.getResponseHeader("Content-Range");return X===null?-1:parseInt(X.substring(X.lastIndexOf("/")+1))}(j),this.parseChunk(j.responseText)))},this._chunkError=function(re){var X=j.statusText||re;this._sendError(new Error(X))}}function E(W){var j,re;(W=W||{}).chunkSize||(W.chunkSize=f.LocalChunkSize),y.call(this,W);var X=typeof FileReader<"u";this.stream=function(Z){this._input=Z,re=Z.slice||Z.webkitSlice||Z.mozSlice,X?((j=new FileReader).onload=K(this._chunkLoaded,this),j.onerror=K(this._chunkError,this)):j=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var Z=this._input;if(this._config.chunkSize){var J=Math.min(this._start+this._config.chunkSize,this._input.size);Z=re.call(Z,this._start,J)}var q=j.readAsText(Z,this._config.encoding);X||this._chunkLoaded({target:{result:q}})},this._chunkLoaded=function(Z){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(Z.target.result)},this._chunkError=function(){this._sendError(j.error)}}function S(W){var j;y.call(this,W=W||{}),this.stream=function(re){return j=re,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var re,X=this._config.chunkSize;return X?(re=j.substring(0,X),j=j.substring(X)):(re=j,j=""),this._finished=!j,this.parseChunk(re)}}}function w(W){y.call(this,W=W||{});var j=[],re=!0,X=!1;this.pause=function(){y.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){y.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(Z){this._input=Z,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){X&&j.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),j.length?this.parseChunk(j.shift()):re=!0},this._streamData=K(function(Z){try{j.push(typeof Z=="string"?Z:Z.toString(this._config.encoding)),re&&(re=!1,this._checkIsFinished(),this.parseChunk(j.shift()))}catch(J){this._streamError(J)}},this),this._streamError=K(function(Z){this._streamCleanUp(),this._sendError(Z)},this),this._streamEnd=K(function(){this._streamCleanUp(),X=!0,this._streamData("")},this),this._streamCleanUp=K(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function x(W){var j,re,X,Z=Math.pow(2,53),J=-Z,q=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,L=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,$=this,k=0,F=0,V=!1,pe=!1,ce=[],G={data:[],errors:[],meta:{}};if(_(W.step)){var te=W.step;W.step=function(_e){if(G=_e,Se())fe();else{if(fe(),G.data.length===0)return;k+=_e.data.length,W.preview&&k>W.preview?re.abort():(G.data=G.data[0],te(G,$))}}}function ie(_e){return W.skipEmptyLines==="greedy"?_e.join("").trim()==="":_e.length===1&&_e[0].length===0}function fe(){return G&&X&&(me("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+f.DefaultDelimiter+"'"),X=!1),W.skipEmptyLines&&(G.data=G.data.filter(function(_e){return!ie(_e)})),Se()&&function(){if(!G)return;function _e(Ge,ht){_(W.transformHeader)&&(Ge=W.transformHeader(Ge,ht)),ce.push(Ge)}if(Array.isArray(G.data[0])){for(var we=0;Se()&&we<G.data.length;we++)G.data[we].forEach(_e);G.data.splice(0,1)}else G.data.forEach(_e)}(),function(){if(!G||!W.header&&!W.dynamicTyping&&!W.transform)return G;function _e(Ge,ht){var nt,Re=W.header?{}:[];for(nt=0;nt<Ge.length;nt++){var ue=nt,ae=Ge[nt];W.header&&(ue=nt>=ce.length?"__parsed_extra":ce[nt]),W.transform&&(ae=W.transform(ae,ue)),ae=he(ue,ae),ue==="__parsed_extra"?(Re[ue]=Re[ue]||[],Re[ue].push(ae)):Re[ue]=ae}return W.header&&(nt>ce.length?me("FieldMismatch","TooManyFields","Too many fields: expected "+ce.length+" fields but parsed "+nt,F+ht):nt<ce.length&&me("FieldMismatch","TooFewFields","Too few fields: expected "+ce.length+" fields but parsed "+nt,F+ht)),Re}var we=1;return!G.data.length||Array.isArray(G.data[0])?(G.data=G.data.map(_e),we=G.data.length):G.data=_e(G.data,0),W.header&&G.meta&&(G.meta.fields=ce),F+=we,G}()}function Se(){return W.header&&ce.length===0}function he(_e,we){return Ge=_e,W.dynamicTypingFunction&&W.dynamicTyping[Ge]===void 0&&(W.dynamicTyping[Ge]=W.dynamicTypingFunction(Ge)),(W.dynamicTyping[Ge]||W.dynamicTyping)===!0?we==="true"||we==="TRUE"||we!=="false"&&we!=="FALSE"&&(function(ht){if(q.test(ht)){var nt=parseFloat(ht);if(J<nt&&nt<Z)return!0}return!1}(we)?parseFloat(we):L.test(we)?new Date(we):we===""?null:we):we;var Ge}function me(_e,we,Ge,ht){var nt={type:_e,code:we,message:Ge};ht!==void 0&&(nt.row=ht),G.errors.push(nt)}this.parse=function(_e,we,Ge){var ht=W.quoteChar||'"';if(W.newline||(W.newline=function(ue,ae){ue=ue.substring(0,1048576);var ve=new RegExp(P(ae)+"([^]*?)"+P(ae),"gm"),Me=(ue=ue.replace(ve,"")).split("\r"),Ye=ue.split(` `),qe=1<Ye.length&&Ye[0].length<Me[0].length;if(Me.length===1||qe)return` `;for(var At=0,It=0;It<Me.length;It++)Me[It][0]===` `&&At++;return At>=Me.length/2?`\r `:"\r"}(_e,ht)),X=!1,W.delimiter)_(W.delimiter)&&(W.delimiter=W.delimiter(_e),G.meta.delimiter=W.delimiter);else{var nt=function(ue,ae,ve,Me,Ye){var qe,At,It,Ce;Ye=Ye||[","," ","|",";",f.RECORD_SEP,f.UNIT_SEP];for(var Ae=0;Ae<Ye.length;Ae++){var $e=Ye[Ae],tt=0,ke=0,Oe=0;It=void 0;for(var je=new R({comments:Me,delimiter:$e,newline:ae,preview:10}).parse(ue),Et=0;Et<je.data.length;Et++)if(ve&&ie(je.data[Et]))Oe++;else{var ct=je.data[Et].length;ke+=ct,It!==void 0?0<ct&&(tt+=Math.abs(ct-It),It=ct):It=ct}0<je.data.length&&(ke/=je.data.length-Oe),(At===void 0||tt<=At)&&(Ce===void 0||Ce<ke)&&1.99<ke&&(At=tt,qe=$e,Ce=ke)}return{successful:!!(W.delimiter=qe),bestDelimiter:qe}}(_e,W.newline,W.skipEmptyLines,W.comments,W.delimitersToGuess);nt.successful?W.delimiter=nt.bestDelimiter:(X=!0,W.delimiter=f.DefaultDelimiter),G.meta.delimiter=W.delimiter}var Re=N(W);return W.preview&&W.header&&Re.preview++,j=_e,re=new R(Re),G=re.parse(j,we,Ge),fe(),V?{meta:{paused:!0}}:G||{meta:{paused:!1}}},this.paused=function(){return V},this.pause=function(){V=!0,re.abort(),j=_(W.chunk)?"":j.substring(re.getCharIndex())},this.resume=function(){$.streamer._halted?(V=!1,$.streamer.parseChunk(j,!0)):setTimeout($.resume,3)},this.aborted=function(){return pe},this.abort=function(){pe=!0,re.abort(),G.meta.aborted=!0,_(W.complete)&&W.complete(G),j=""}}function P(W){return W.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function R(W){var j,re=(W=W||{}).delimiter,X=W.newline,Z=W.comments,J=W.step,q=W.preview,L=W.fastMode,$=j=W.quoteChar===void 0||W.quoteChar===null?'"':W.quoteChar;if(W.escapeChar!==void 0&&($=W.escapeChar),(typeof re!="string"||-1<f.BAD_DELIMITERS.indexOf(re))&&(re=","),Z===re)throw new Error("Comment character same as delimiter");Z===!0?Z="#":(typeof Z!="string"||-1<f.BAD_DELIMITERS.indexOf(Z))&&(Z=!1),X!==` `&&X!=="\r"&&X!==`\r `&&(X=` `);var k=0,F=!1;this.parse=function(V,pe,ce){if(typeof V!="string")throw new Error("Input must be a string");var G=V.length,te=re.length,ie=X.length,fe=Z.length,Se=_(J),he=[],me=[],_e=[],we=k=0;if(!V)return ut();if(W.header&&!pe){var Ge=V.split(X)[0].split(re),ht=[],nt={},Re=!1;for(var ue in Ge){var ae=Ge[ue];_(W.transformHeader)&&(ae=W.transformHeader(ae,ue));var ve=ae,Me=nt[ae]||0;for(0<Me&&(Re=!0,ve=ae+"_"+Me),nt[ae]=Me+1;ht.includes(ve);)ve=ve+"_"+Me;ht.push(ve)}if(Re){var Ye=V.split(X);Ye[0]=ht.join(re),V=Ye.join(X)}}if(L||L!==!1&&V.indexOf(j)===-1){for(var qe=V.split(X),At=0;At<qe.length;At++){if(_e=qe[At],k+=_e.length,At!==qe.length-1)k+=X.length;else if(ce)return ut();if(!Z||_e.substring(0,fe)!==Z){if(Se){if(he=[],Oe(_e.split(re)),Ne(),F)return ut()}else Oe(_e.split(re));if(q&&q<=At)return he=he.slice(0,q),ut(!0)}}return ut()}for(var It=V.indexOf(re,k),Ce=V.indexOf(X,k),Ae=new RegExp(P($)+P(j),"g"),$e=V.indexOf(j,k);;)if(V[k]!==j)if(Z&&_e.length===0&&V.substring(k,k+fe)===Z){if(Ce===-1)return ut();k=Ce+ie,Ce=V.indexOf(X,k),It=V.indexOf(re,k)}else if(It!==-1&&(It<Ce||Ce===-1))_e.push(V.substring(k,It)),k=It+te,It=V.indexOf(re,k);else{if(Ce===-1)break;if(_e.push(V.substring(k,Ce)),ct(Ce+ie),Se&&(Ne(),F))return ut();if(q&&he.length>=q)return ut(!0)}else for($e=k,k++;;){if(($e=V.indexOf(j,$e+1))===-1)return ce||me.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:he.length,index:k}),Et();if($e===G-1)return Et(V.substring(k,$e).replace(Ae,j));if(j!==$||V[$e+1]!==$){if(j===$||$e===0||V[$e-1]!==$){It!==-1&&It<$e+1&&(It=V.indexOf(re,$e+1)),Ce!==-1&&Ce<$e+1&&(Ce=V.indexOf(X,$e+1));var tt=je(Ce===-1?It:Math.min(It,Ce));if(V.substr($e+1+tt,te)===re){_e.push(V.substring(k,$e).replace(Ae,j)),V[k=$e+1+tt+te]!==j&&($e=V.indexOf(j,k)),It=V.indexOf(re,k),Ce=V.indexOf(X,k);break}var ke=je(Ce);if(V.substring($e+1+ke,$e+1+ke+ie)===X){if(_e.push(V.substring(k,$e).replace(Ae,j)),ct($e+1+ke+ie),It=V.indexOf(re,k),$e=V.indexOf(j,k),Se&&(Ne(),F))return ut();if(q&&he.length>=q)return ut(!0);break}me.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:he.length,index:k}),$e++}}else $e++}return Et();function Oe(mt){he.push(mt),we=k}function je(mt){var bt=0;if(mt!==-1){var Gt=V.substring($e+1,mt);Gt&&Gt.trim()===""&&(bt=Gt.length)}return bt}function Et(mt){return ce||(mt===void 0&&(mt=V.substring(k)),_e.push(mt),k=G,Oe(_e),Se&&Ne()),ut()}function ct(mt){k=mt,Oe(_e),_e=[],Ce=V.indexOf(X,k)}function ut(mt){return{data:he,errors:me,meta:{delimiter:re,linebreak:X,aborted:F,truncated:!!mt,cursor:we+(pe||0)}}}function Ne(){J(ut()),he=[],me=[]}},this.abort=function(){F=!0},this.getCharIndex=function(){return k}}function T(W){var j=W.data,re=p[j.workerId],X=!1;if(j.error)re.userError(j.error,j.file);else if(j.results&&j.results.data){var Z={abort:function(){X=!0,A(j.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:I,resume:I};if(_(re.userStep)){for(var J=0;J<j.results.data.length&&(re.userStep({data:j.results.data[J],errors:j.results.errors,meta:j.results.meta},Z),!X);J++);delete j.results}else _(re.userChunk)&&(re.userChunk(j.results,Z,j.file),delete j.results)}j.finished&&!X&&A(j.workerId,j.results)}function A(W,j){var re=p[W];_(re.userComplete)&&re.userComplete(j),re.terminate(),delete p[W]}function I(){throw new Error("Not implemented.")}function N(W){if(typeof W!="object"||W===null)return W;var j=Array.isArray(W)?[]:{};for(var re in W)j[re]=N(W[re]);return j}function K(W,j){return function(){W.apply(j,arguments)}}function _(W){return typeof W=="function"}return h&&(v.onmessage=function(W){var j=W.data;if(f.WORKER_ID===void 0&&j&&(f.WORKER_ID=j.workerId),typeof j.input=="string")v.postMessage({workerId:f.WORKER_ID,results:f.parse(j.input,j.config),finished:!0});else if(v.File&&j.input instanceof File||j.input instanceof Object){var re=f.parse(j.input,j.config);re&&v.postMessage({workerId:f.WORKER_ID,results:re,finished:!0})}}),(b.prototype=Object.create(y.prototype)).constructor=b,(E.prototype=Object.create(y.prototype)).constructor=E,(S.prototype=Object.create(S.prototype)).constructor=S,(w.prototype=Object.create(y.prototype)).constructor=w,f})},56955:(C,c,t)=>{var i=t(6461);C.exports=x,C.exports.parse=u,C.exports.compile=v,C.exports.tokensToFunction=p,C.exports.tokensToRegExp=w;var s=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function u(P,R){for(var T=[],A=0,I=0,N="",K=R&&R.delimiter||"/",_;(_=s.exec(P))!=null;){var W=_[0],j=_[1],re=_.index;if(N+=P.slice(I,re),I=re+W.length,j){N+=j[1];continue}var X=P[I],Z=_[2],J=_[3],q=_[4],L=_[5],$=_[6],k=_[7];N&&(T.push(N),N="");var F=Z!=null&&X!=null&&X!==Z,V=$==="+"||$==="*",pe=$==="?"||$==="*",ce=_[2]||K,G=q||L;T.push({name:J||A++,prefix:Z||"",delimiter:ce,optional:pe,repeat:V,partial:F,asterisk:!!k,pattern:G?f(G):k?".*":"[^"+d(ce)+"]+?"})}return I<P.length&&(N+=P.substr(I)),N&&T.push(N),T}function v(P,R){return p(u(P,R),R)}function l(P){return encodeURI(P).replace(/[\/?#]/g,function(R){return"%"+R.charCodeAt(0).toString(16).toUpperCase()})}function h(P){return encodeURI(P).replace(/[?#]/g,function(R){return"%"+R.charCodeAt(0).toString(16).toUpperCase()})}function p(P,R){for(var T=new Array(P.length),A=0;A<P.length;A++)typeof P[A]=="object"&&(T[A]=new RegExp("^(?:"+P[A].pattern+")$",y(R)));return function(I,N){for(var K="",_=I||{},W=N||{},j=W.pretty?l:encodeURIComponent,re=0;re<P.length;re++){var X=P[re];if(typeof X=="string"){K+=X;continue}var Z=_[X.name],J;if(Z==null)if(X.optional){X.partial&&(K+=X.prefix);continue}else throw new TypeError('Expected "'+X.name+'" to be defined');if(i(Z)){if(!X.repeat)throw new TypeError('Expected "'+X.name+'" to not repeat, but received `'+JSON.stringify(Z)+"`");if(Z.length===0){if(X.optional)continue;throw new TypeError('Expected "'+X.name+'" to not be empty')}for(var q=0;q<Z.length;q++){if(J=j(Z[q]),!T[re].test(J))throw new TypeError('Expected all "'+X.name+'" to match "'+X.pattern+'", but received `'+JSON.stringify(J)+"`");K+=(q===0?X.prefix:X.delimiter)+J}continue}if(J=X.asterisk?h(Z):j(Z),!T[re].test(J))throw new TypeError('Expected "'+X.name+'" to match "'+X.pattern+'", but received "'+J+'"');K+=X.prefix+J}return K}}function d(P){return P.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function f(P){return P.replace(/([=!:$\/()])/g,"\\$1")}function g(P,R){return P.keys=R,P}function y(P){return P&&P.sensitive?"":"i"}function b(P,R){var T=P.source.match(/\((?!\?)/g);if(T)for(var A=0;A<T.length;A++)R.push({name:A,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return g(P,R)}function E(P,R,T){for(var A=[],I=0;I<P.length;I++)A.push(x(P[I],R,T).source);var N=new RegExp("(?:"+A.join("|")+")",y(T));return g(N,R)}function S(P,R,T){return w(u(P,T),R,T)}function w(P,R,T){i(R)||(T=R||T,R=[]),T=T||{};for(var A=T.strict,I=T.end!==!1,N="",K=0;K<P.length;K++){var _=P[K];if(typeof _=="string")N+=d(_);else{var W=d(_.prefix),j="(?:"+_.pattern+")";R.push(_),_.repeat&&(j+="(?:"+W+j+")*"),_.optional?_.partial?j=W+"("+j+")?":j="(?:"+W+"("+j+"))?":j=W+"("+j+")",N+=j}}var re=d(T.delimiter||"/"),X=N.slice(-re.length)===re;return A||(N=(X?N.slice(0,-re.length):N)+"(?:"+re+"(?=$))?"),I?N+="$":N+=A&&X?"":"(?="+re+"|$)",g(new RegExp("^"+N,y(T)),R)}function x(P,R,T){return i(R)||(T=R||T,R=[]),T=T||{},P instanceof RegExp?b(P,R):i(P)?E(P,R,T):S(P,R,T)}},49262:function(C){(function(){var c,t,i,s,u,v;typeof performance<"u"&&performance!==null&&performance.now?C.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(C.exports=function(){return(c()-u)/1e6},t=process.hrtime,c=function(){var l;return l=t(),l[0]*1e9+l[1]},s=c(),v=process.uptime()*1e9,u=s-v):Date.now?(C.exports=function(){return Date.now()-i},i=Date.now()):(C.exports=function(){return new Date().getTime()-i},i=new Date().getTime())}).call(this)},6772:function(C){(function(c,t){C.exports=t()})(this,function(){var c=[],t=[],i={},s={},u={};function v(b){return typeof b=="string"?new RegExp("^"+b+"$","i"):b}function l(b,E){return b===E?E:b===b.toLowerCase()?E.toLowerCase():b===b.toUpperCase()?E.toUpperCase():b[0]===b[0].toUpperCase()?E.charAt(0).toUpperCase()+E.substr(1).toLowerCase():E.toLowerCase()}function h(b,E){return b.replace(/\$(\d{1,2})/g,function(S,w){return E[w]||""})}function p(b,E){return b.replace(E[0],function(S,w){var x=h(E[1],arguments);return l(S===""?b[w-1]:S,x)})}function d(b,E,S){if(!b.length||i.hasOwnProperty(b))return E;for(var w=S.length;w--;){var x=S[w];if(x[0].test(E))return p(E,x)}return E}function f(b,E,S){return function(w){var x=w.toLowerCase();return E.hasOwnProperty(x)?l(w,x):b.hasOwnProperty(x)?l(w,b[x]):d(x,w,S)}}function g(b,E,S,w){return function(x){var P=x.toLowerCase();return E.hasOwnProperty(P)?!0:b.hasOwnProperty(P)?!1:d(P,P,S)===P}}function y(b,E,S){var w=E===1?y.singular(b):y.plural(b);return(S?E+" ":"")+w}return y.plural=f(u,s,c),y.isPlural=g(u,s,c),y.singular=f(s,u,t),y.isSingular=g(s,u,t),y.addPluralRule=function(b,E){c.push([v(b),E])},y.addSingularRule=function(b,E){t.push([v(b),E])},y.addUncountableRule=function(b){if(typeof b=="string"){i[b.toLowerCase()]=!0;return}y.addPluralRule(b,"$0"),y.addSingularRule(b,"$0")},y.addIrregularRule=function(b,E){E=E.toLowerCase(),b=b.toLowerCase(),u[b]=E,s[E]=b},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(b){return y.addIrregularRule(b[0],b[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(b){return y.addPluralRule(b[0],b[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(b){return y.addSingularRule(b[0],b[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(y.addUncountableRule),y})},63310:C=>{var c=null,t=["Webkit","Moz","O","ms"];C.exports=function(s){c||(c=document.createElement("div"));var u=c.style;if(s in u)return s;for(var v=s.charAt(0).toUpperCase()+s.slice(1),l=t.length;l>=0;l--){var h=t[l]+v;if(h in u)return h}return!1}},6570:(C,c,t)=>{var i=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT <https://opensource.org/licenses/MIT> * @author Lea Verou <https://lea.verou.me> * @namespace * @public */var s=function(u){var v=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,l=0,h={},p={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function R(T){return T instanceof d?new d(T.type,R(T.content),T.alias):Array.isArray(T)?T.map(R):T.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(R){return Object.prototype.toString.call(R).slice(8,-1)},objId:function(R){return R.__id||Object.defineProperty(R,"__id",{value:++l}),R.__id},clone:function R(T,A){A=A||{};var I,N;switch(p.util.type(T)){case"Object":if(N=p.util.objId(T),A[N])return A[N];I={},A[N]=I;for(var K in T)T.hasOwnProperty(K)&&(I[K]=R(T[K],A));return I;case"Array":return N=p.util.objId(T),A[N]?A[N]:(I=[],A[N]=I,T.forEach(function(_,W){I[W]=R(_,A)}),I);default:return T}},getLanguage:function(R){for(;R;){var T=v.exec(R.className);if(T)return T[1].toLowerCase();R=R.parentElement}return"none"},setLanguage:function(R,T){R.className=R.className.replace(RegExp(v,"gi"),""),R.classList.add("language-"+T)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(I){var R=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(I.stack)||[])[1];if(R){var T=document.getElementsByTagName("script");for(var A in T)if(T[A].src==R)return T[A]}return null}},isActive:function(R,T,A){for(var I="no-"+T;R;){var N=R.classList;if(N.contains(T))return!0;if(N.contains(I))return!1;R=R.parentElement}return!!A}},languages:{plain:h,plaintext:h,text:h,txt:h,extend:function(R,T){var A=p.util.clone(p.languages[R]);for(var I in T)A[I]=T[I];return A},insertBefore:function(R,T,A,I){I=I||p.languages;var N=I[R],K={};for(var _ in N)if(N.hasOwnProperty(_)){if(_==T)for(var W in A)A.hasOwnProperty(W)&&(K[W]=A[W]);A.hasOwnProperty(_)||(K[_]=N[_])}var j=I[R];return I[R]=K,p.languages.DFS(p.languages,function(re,X){X===j&&re!=R&&(this[re]=K)}),K},DFS:function R(T,A,I,N){N=N||{};var K=p.util.objId;for(var _ in T)if(T.hasOwnProperty(_)){A.call(T,_,T[_],I||_);var W=T[_],j=p.util.type(W);j==="Object"&&!N[K(W)]?(N[K(W)]=!0,R(W,A,null,N)):j==="Array"&&!N[K(W)]&&(N[K(W)]=!0,R(W,A,_,N))}}},plugins:{},highlightAll:function(R,T){p.highlightAllUnder(document,R,T)},highlightAllUnder:function(R,T,A){var I={callback:A,container:R,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};p.hooks.run("before-highlightall",I),I.elements=Array.prototype.slice.apply(I.container.querySelectorAll(I.selector)),p.hooks.run("before-all-elements-highlight",I);for(var N=0,K;K=I.elements[N++];)p.highlightElement(K,T===!0,I.callback)},highlightElement:function(R,T,A){var I=p.util.getLanguage(R),N=p.languages[I];p.util.setLanguage(R,I);var K=R.parentElement;K&&K.nodeName.toLowerCase()==="pre"&&p.util.setLanguage(K,I);var _=R.textContent,W={element:R,language:I,grammar:N,code:_};function j(X){W.highlightedCode=X,p.hooks.run("before-insert",W),W.element.innerHTML=W.highlightedCode,p.hooks.run("after-highlight",W),p.hooks.run("complete",W),A&&A.call(W.element)}if(p.hooks.run("before-sanity-check",W),K=W.element.parentElement,K&&K.nodeName.toLowerCase()==="pre"&&!K.hasAttribute("tabindex")&&K.setAttribute("tabindex","0"),!W.code){p.hooks.run("complete",W),A&&A.call(W.element);return}if(p.hooks.run("before-highlight",W),!W.grammar){j(p.util.encode(W.code));return}if(T&&u.Worker){var re=new Worker(p.filename);re.onmessage=function(X){j(X.data)},re.postMessage(JSON.stringify({language:W.language,code:W.code,immediateClose:!0}))}else j(p.highlight(W.code,W.grammar,W.language))},highlight:function(R,T,A){var I={code:R,grammar:T,language:A};if(p.hooks.run("before-tokenize",I),!I.grammar)throw new Error('The language "'+I.language+'" has no grammar.');return I.tokens=p.tokenize(I.code,I.grammar),p.hooks.run("after-tokenize",I),d.stringify(p.util.encode(I.tokens),I.language)},tokenize:function(R,T){var A=T.rest;if(A){for(var I in A)T[I]=A[I];delete T.rest}var N=new y;return b(N,N.head,R),g(R,N,T,N.head,0),S(N)},hooks:{all:{},add:function(R,T){var A=p.hooks.all;A[R]=A[R]||[],A[R].push(T)},run:function(R,T){var A=p.hooks.all[R];if(!(!A||!A.length))for(var I=0,N;N=A[I++];)N(T)}},Token:d};u.Prism=p;function d(R,T,A,I){this.type=R,this.content=T,this.alias=A,this.length=(I||"").length|0}d.stringify=function R(T,A){if(typeof T=="string")return T;if(Array.isArray(T)){var I="";return T.forEach(function(j){I+=R(j,A)}),I}var N={type:T.type,content:R(T.content,A),tag:"span",classes:["token",T.type],attributes:{},language:A},K=T.alias;K&&(Array.isArray(K)?Array.prototype.push.apply(N.classes,K):N.classes.push(K)),p.hooks.run("wrap",N);var _="";for(var W in N.attributes)_+=" "+W+'="'+(N.attributes[W]||"").replace(/"/g,""")+'"';return"<"+N.tag+' class="'+N.classes.join(" ")+'"'+_+">"+N.content+"</"+N.tag+">"};function f(R,T,A,I){R.lastIndex=T;var N=R.exec(A);if(N&&I&&N[1]){var K=N[1].length;N.index+=K,N[0]=N[0].slice(K)}return N}function g(R,T,A,I,N,K){for(var _ in A)if(!(!A.hasOwnProperty(_)||!A[_])){var W=A[_];W=Array.isArray(W)?W:[W];for(var j=0;j<W.length;++j){if(K&&K.cause==_+","+j)return;var re=W[j],X=re.inside,Z=!!re.lookbehind,J=!!re.greedy,q=re.alias;if(J&&!re.pattern.global){var L=re.pattern.toString().match(/[imsuy]*$/)[0];re.pattern=RegExp(re.pattern.source,L+"g")}for(var $=re.pattern||re,k=I.next,F=N;k!==T.tail&&!(K&&F>=K.reach);F+=k.value.length,k=k.next){var V=k.value;if(T.length>R.length)return;if(!(V instanceof d)){var pe=1,ce;if(J){if(ce=f($,F,R,Z),!ce||ce.index>=R.length)break;var fe=ce.index,G=ce.index+ce[0].length,te=F;for(te+=k.value.length;fe>=te;)k=k.next,te+=k.value.length;if(te-=k.value.length,F=te,k.value instanceof d)continue;for(var ie=k;ie!==T.tail&&(te<G||typeof ie.value=="string");ie=ie.next)pe++,te+=ie.value.length;pe--,V=R.slice(F,te),ce.index-=F}else if(ce=f($,0,V,Z),!ce)continue;var fe=ce.index,Se=ce[0],he=V.slice(0,fe),me=V.slice(fe+Se.length),_e=F+V.length;K&&_e>K.reach&&(K.reach=_e);var we=k.prev;he&&(we=b(T,we,he),F+=he.length),E(T,we,pe);var Ge=new d(_,X?p.tokenize(Se,X):Se,q,Se);if(k=b(T,we,Ge),me&&b(T,k,me),pe>1){var ht={cause:_+","+j,reach:_e};g(R,T,A,k.prev,F,ht),K&&ht.reach>K.reach&&(K.reach=ht.reach)}}}}}}function y(){var R={value:null,prev:null,next:null},T={value:null,prev:R,next:null};R.next=T,this.head=R,this.tail=T,this.length=0}function b(R,T,A){var I=T.next,N={value:A,prev:T,next:I};return T.next=N,I.prev=N,R.length++,N}function E(R,T,A){for(var I=T.next,N=0;N<A&&I!==R.tail;N++)I=I.next;T.next=I,I.prev=T,R.length-=N}function S(R){for(var T=[],A=R.head.next;A!==R.tail;)T.push(A.value),A=A.next;return T}if(!u.document)return u.addEventListener&&(p.disableWorkerMessageHandler||u.addEventListener("message",function(R){var T=JSON.parse(R.data),A=T.language,I=T.code,N=T.immediateClose;u.postMessage(p.highlight(I,p.languages[A],A)),N&&u.close()},!1)),p;var w=p.util.currentScript();w&&(p.filename=w.src,w.hasAttribute("data-manual")&&(p.manual=!0));function x(){p.manual||p.highlightAll()}if(!p.manual){var P=document.readyState;P==="loading"||P==="interactive"&&w&&w.defer?document.addEventListener("DOMContentLoaded",x):window.requestAnimationFrame?window.requestAnimationFrame(x):window.setTimeout(x,16)}return p}(i);C.exports&&(C.exports=s),typeof t.g<"u"&&(t.g.Prism=s),s.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},s.languages.markup.tag.inside["attr-value"].inside.entity=s.languages.markup.entity,s.languages.markup.doctype.inside["internal-subset"].inside=s.languages.markup,s.hooks.add("wrap",function(u){u.type==="entity"&&(u.attributes.title=u.content.replace(/&/,"&"))}),Object.defineProperty(s.languages.markup.tag,"addInlined",{value:function(v,l){var h={};h["language-"+l]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:s.languages[l]},h.cdata=/^<!\[CDATA\[|\]\]>$/i;var p={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:h}};p["language-"+l]={pattern:/[\s\S]+/,inside:s.languages[l]};var d={};d[v]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return v}),"i"),lookbehind:!0,greedy:!0,inside:p},s.languages.insertBefore("markup","cdata",d)}}),Object.defineProperty(s.languages.markup.tag,"addAttribute",{value:function(u,v){s.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+u+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[v,"language-"+v],inside:s.languages[v]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),s.languages.html=s.languages.markup,s.languages.mathml=s.languages.markup,s.languages.svg=s.languages.markup,s.languages.xml=s.languages.extend("markup",{}),s.languages.ssml=s.languages.xml,s.languages.atom=s.languages.xml,s.languages.rss=s.languages.xml,function(u){var v=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;u.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+v.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+v.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+v.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+v.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:v,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},u.languages.css.atrule.inside.rest=u.languages.css;var l=u.languages.markup;l&&(l.tag.addInlined("style","css"),l.tag.addAttribute("style","css"))}(s),s.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},s.languages.javascript=s.languages.extend("clike",{"class-name":[s.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),s.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,s.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:s.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:s.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:s.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:s.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:s.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),s.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:s.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),s.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),s.languages.markup&&(s.languages.markup.tag.addInlined("script","javascript"),s.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),s.languages.js=s.languages.javascript,function(){if(typeof s>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var u="Loading\u2026",v=function(w,x){return"\u2716 Error "+w+" while fetching file: "+x},l="\u2716 Error: File does not exist or is empty",h={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},p="data-src-status",d="loading",f="loaded",g="failed",y="pre[data-src]:not(["+p+'="'+f+'"]):not(['+p+'="'+d+'"])';function b(w,x,P){var R=new XMLHttpRequest;R.open("GET",w,!0),R.onreadystatechange=function(){R.readyState==4&&(R.status<400&&R.responseText?x(R.responseText):R.status>=400?P(v(R.status,R.statusText)):P(l))},R.send(null)}function E(w){var x=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(w||"");if(x){var P=Number(x[1]),R=x[2],T=x[3];return R?T?[P,Number(T)]:[P,void 0]:[P,P]}}s.hooks.add("before-highlightall",function(w){w.selector+=", "+y}),s.hooks.add("before-sanity-check",function(w){var x=w.element;if(x.matches(y)){w.code="",x.setAttribute(p,d);var P=x.appendChild(document.createElement("CODE"));P.textContent=u;var R=x.getAttribute("data-src"),T=w.language;if(T==="none"){var A=(/\.(\w+)$/.exec(R)||[,"none"])[1];T=h[A]||A}s.util.setLanguage(P,T),s.util.setLanguage(x,T);var I=s.plugins.autoloader;I&&I.loadLanguages(T),b(R,function(N){x.setAttribute(p,f);var K=E(x.getAttribute("data-range"));if(K){var _=N.split(/\r\n?|\n/g),W=K[0],j=K[1]==null?_.length:K[1];W<0&&(W+=_.length),W=Math.max(0,Math.min(W-1,_.length)),j<0&&(j+=_.length),j=Math.max(0,Math.min(j,_.length)),N=_.slice(W,j).join(` `),x.hasAttribute("data-start")||x.setAttribute("data-start",String(W+1))}P.textContent=N,s.highlightElement(P)},function(N){x.setAttribute(p,g),P.textContent=N})}}),s.plugins.fileHighlight={highlight:function(x){for(var P=(x||document).querySelectorAll(y),R=0,T;T=P[R++];)s.highlightElement(T)}};var S=!1;s.fileHighlight=function(){S||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),S=!0),s.plugins.fileHighlight.highlight.apply(this,arguments)}}()},31479:(C,c,t)=>{"use strict";var i=t(72967);function s(){}function u(){}u.resetWarningCache=s,C.exports=function(){function v(p,d,f,g,y,b){if(b!==i){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}}v.isRequired=v;function l(){return v}var h={array:v,bool:v,func:v,number:v,object:v,string:v,symbol:v,any:v,arrayOf:l,element:v,elementType:v,instanceOf:l,node:v,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:u,resetWarningCache:s};return h.PropTypes=h,h}},93415:(C,c,t)=>{if(!1)var i,s;else C.exports=t(31479)()},72967:C=>{"use strict";var c="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";C.exports=c},22261:(C,c,t)=>{"use strict";var i=t(6855);function s(){}function u(){}u.resetWarningCache=s,C.exports=function(){function v(p,d,f,g,y,b){if(b!==i){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}}v.isRequired=v;function l(){return v}var h={array:v,bigint:v,bool:v,func:v,number:v,object:v,string:v,symbol:v,any:v,arrayOf:l,element:v,elementType:v,instanceOf:l,node:v,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:u,resetWarningCache:s};return h.PropTypes=h,h}},51616:(C,c,t)=>{if(!1)var i,s;else C.exports=t(22261)()},6855:C=>{"use strict";var c="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";C.exports=c},71151:(C,c,t)=>{for(var i=t(49262),s=typeof window>"u"?t.g:window,u=["moz","webkit"],v="AnimationFrame",l=s["request"+v],h=s["cancel"+v]||s["cancelRequest"+v],p=0;!l&&p<u.length;p++)l=s[u[p]+"Request"+v],h=s[u[p]+"Cancel"+v]||s[u[p]+"CancelRequest"+v];if(!l||!h){var d=0,f=0,g=[],y=1e3/60;l=function(b){if(g.length===0){var E=i(),S=Math.max(0,y-(E-d));d=S+E,setTimeout(function(){var w=g.slice(0);g.length=0;for(var x=0;x<w.length;x++)if(!w[x].cancelled)try{w[x].callback(d)}catch(P){setTimeout(function(){throw P},0)}},Math.round(S))}return g.push({handle:++f,callback:b,cancelled:!1}),f},h=function(b){for(var E=0;E<g.length;E++)g[E].handle===b&&(g[E].cancelled=!0)}}C.exports=function(b){return l.call(s,b)},C.exports.cancel=function(){h.apply(s,arguments)},C.exports.polyfill=function(b){b||(b=s),b.requestAnimationFrame=l,b.cancelAnimationFrame=h}},862:function(C,c,t){var i,s,u;(function(v,l){if(!0)s=[c,t(3039)],i=l,u=typeof i=="function"?i.apply(c,s):i,u!==void 0&&(C.exports=u);else var h})(this,function(v,l){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var h=p(l);function p(d){return d&&d.__esModule?d:{default:d}}v.default=h.default})},3039:function(C,c,t){var i,s,u;(function(v,l){if(!0)s=[c,t(27702),t(93415)],i=l,u=typeof i=="function"?i.apply(c,s):i,u!==void 0&&(C.exports=u);else var h})(this,function(v,l,h){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.setHasSupportToCaptureOption=P;var p=f(l),d=f(h);function f(I){return I&&I.__esModule?I:{default:I}}var g=Object.assign||function(I){for(var N=1;N<arguments.length;N++){var K=arguments[N];for(var _ in K)Object.prototype.hasOwnProperty.call(K,_)&&(I[_]=K[_])}return I};function y(I,N){var K={};for(var _ in I)N.indexOf(_)>=0||Object.prototype.hasOwnProperty.call(I,_)&&(K[_]=I[_]);return K}function b(I,N){if(!(I instanceof N))throw new TypeError("Cannot call a class as a function")}var E=function(){function I(N,K){for(var _=0;_<K.length;_++){var W=K[_];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(N,W.key,W)}}return function(N,K,_){return K&&I(N.prototype,K),_&&I(N,_),N}}();function S(I,N){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:I}function w(I,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);I.prototype=Object.create(N&&N.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(I,N):I.__proto__=N)}var x=!1;function P(I){x=I}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){P(!0)}}))}catch{}function R(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return x?I:I.capture}function T(I){if("touches"in I){var N=I.touches[0],K=N.pageX,_=N.pageY;return{x:K,y:_}}var W=I.screenX,j=I.screenY;return{x:W,y:j}}var A=function(I){w(N,I);function N(){var K;b(this,N);for(var _=arguments.length,W=Array(_),j=0;j<_;j++)W[j]=arguments[j];var re=S(this,(K=N.__proto__||Object.getPrototypeOf(N)).call.apply(K,[this].concat(W)));return re._handleSwipeStart=re._handleSwipeStart.bind(re),re._handleSwipeMove=re._handleSwipeMove.bind(re),re._handleSwipeEnd=re._handleSwipeEnd.bind(re),re._onMouseDown=re._onMouseDown.bind(re),re._onMouseMove=re._onMouseMove.bind(re),re._onMouseUp=re._onMouseUp.bind(re),re._setSwiperRef=re._setSwiperRef.bind(re),re}return E(N,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,R({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,R({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(_){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(_))}},{key:"_onMouseMove",value:function(_){this.mouseDown&&this._handleSwipeMove(_)}},{key:"_onMouseUp",value:function(_){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(_)}},{key:"_handleSwipeStart",value:function(_){var W=T(_),j=W.x,re=W.y;this.moveStart={x:j,y:re},this.props.onSwipeStart(_)}},{key:"_handleSwipeMove",value:function(_){if(this.moveStart){var W=T(_),j=W.x,re=W.y,X=j-this.moveStart.x,Z=re-this.moveStart.y;this.moving=!0;var J=this.props.onSwipeMove({x:X,y:Z},_);J&&_.cancelable&&_.preventDefault(),this.movePosition={deltaX:X,deltaY:Z}}}},{key:"_handleSwipeEnd",value:function(_){this.props.onSwipeEnd(_);var W=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-W?this.props.onSwipeLeft(1,_):this.movePosition.deltaX>W&&this.props.onSwipeRight(1,_),this.movePosition.deltaY<-W?this.props.onSwipeUp(1,_):this.movePosition.deltaY>W&&this.props.onSwipeDown(1,_)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(_){this.swiper=_,this.props.innerRef(_)}},{key:"render",value:function(){var _=this.props,W=_.tagName,j=_.className,re=_.style,X=_.children,Z=_.allowMouseEvents,J=_.onSwipeUp,q=_.onSwipeDown,L=_.onSwipeLeft,$=_.onSwipeRight,k=_.onSwipeStart,F=_.onSwipeMove,V=_.onSwipeEnd,pe=_.innerRef,ce=_.tolerance,G=y(_,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return p.default.createElement(this.props.tagName,g({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:j,style:re},G),X)}}]),N}(l.Component);A.displayName="ReactSwipe",A.propTypes={tagName:d.default.string,className:d.default.string,style:d.default.object,children:d.default.node,allowMouseEvents:d.default.bool,onSwipeUp:d.default.func,onSwipeDown:d.default.func,onSwipeLeft:d.default.func,onSwipeRight:d.default.func,onSwipeStart:d.default.func,onSwipeMove:d.default.func,onSwipeEnd:d.default.func,innerRef:d.default.func,tolerance:d.default.number.isRequired},A.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},v.default=A})},45089:C=>{var c=typeof Element<"u",t=typeof Map=="function",i=typeof Set=="function",s=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function u(v,l){if(v===l)return!0;if(v&&l&&typeof v=="object"&&typeof l=="object"){if(v.constructor!==l.constructor)return!1;var h,p,d;if(Array.isArray(v)){if(h=v.length,h!=l.length)return!1;for(p=h;p--!==0;)if(!u(v[p],l[p]))return!1;return!0}var f;if(t&&v instanceof Map&&l instanceof Map){if(v.size!==l.size)return!1;for(f=v.entries();!(p=f.next()).done;)if(!l.has(p.value[0]))return!1;for(f=v.entries();!(p=f.next()).done;)if(!u(p.value[1],l.get(p.value[0])))return!1;return!0}if(i&&v instanceof Set&&l instanceof Set){if(v.size!==l.size)return!1;for(f=v.entries();!(p=f.next()).done;)if(!l.has(p.value[0]))return!1;return!0}if(s&&ArrayBuffer.isView(v)&&ArrayBuffer.isView(l)){if(h=v.length,h!=l.length)return!1;for(p=h;p--!==0;)if(v[p]!==l[p])return!1;return!0}if(v.constructor===RegExp)return v.source===l.source&&v.flags===l.flags;if(v.valueOf!==Object.prototype.valueOf)return v.valueOf()===l.valueOf();if(v.toString!==Object.prototype.toString)return v.toString()===l.toString();if(d=Object.keys(v),h=d.length,h!==Object.keys(l).length)return!1;for(p=h;p--!==0;)if(!Object.prototype.hasOwnProperty.call(l,d[p]))return!1;if(c&&v instanceof Element)return!1;for(p=h;p--!==0;)if(!((d[p]==="_owner"||d[p]==="__v"||d[p]==="__o")&&v.$$typeof)&&!u(v[d[p]],l[d[p]]))return!1;return!0}return v!==v&&l!==l}C.exports=function(l,h){try{return u(l,h)}catch(p){if((p.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw p}}},84127:(C,c)=>{"use strict";/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var t=typeof Symbol=="function"&&Symbol.for,i=t?Symbol.for("react.element"):60103,s=t?Symbol.for("react.portal"):60106,u=t?Symbol.for("react.fragment"):60107,v=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,h=t?Symbol.for("react.provider"):60109,p=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,g=t?Symbol.for("react.forward_ref"):60112,y=t?Symbol.for("react.suspense"):60113,b=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,S=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,P=t?Symbol.for("react.responder"):60118,R=t?Symbol.for("react.scope"):60119;function T(I){if(typeof I=="object"&&I!==null){var N=I.$$typeof;switch(N){case i:switch(I=I.type,I){case d:case f:case u:case l:case v:case y:return I;default:switch(I=I&&I.$$typeof,I){case p:case g:case S:case E:case h:return I;default:return N}}case s:return N}}}function A(I){return T(I)===f}c.AsyncMode=d,c.ConcurrentMode=f,c.ContextConsumer=p,c.ContextProvider=h,c.Element=i,c.ForwardRef=g,c.Fragment=u,c.Lazy=S,c.Memo=E,c.Portal=s,c.Profiler=l,c.StrictMode=v,c.Suspense=y,c.isAsyncMode=function(I){return A(I)||T(I)===d},c.isConcurrentMode=A,c.isContextConsumer=function(I){return T(I)===p},c.isContextProvider=function(I){return T(I)===h},c.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===i},c.isForwardRef=function(I){return T(I)===g},c.isFragment=function(I){return T(I)===u},c.isLazy=function(I){return T(I)===S},c.isMemo=function(I){return T(I)===E},c.isPortal=function(I){return T(I)===s},c.isProfiler=function(I){return T(I)===l},c.isStrictMode=function(I){return T(I)===v},c.isSuspense=function(I){return T(I)===y},c.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===u||I===f||I===l||I===v||I===y||I===b||typeof I=="object"&&I!==null&&(I.$$typeof===S||I.$$typeof===E||I.$$typeof===h||I.$$typeof===p||I.$$typeof===g||I.$$typeof===x||I.$$typeof===P||I.$$typeof===R||I.$$typeof===w)},c.typeOf=T},54660:(C,c,t)=>{"use strict";C.exports=t(84127)},29999:(C,c)=>{"use strict";var t;/** @license React v17.0.2 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=60103,s=60106,u=60107,v=60108,l=60114,h=60109,p=60110,d=60112,f=60113,g=60120,y=60115,b=60116,E=60121,S=60122,w=60117,x=60129,P=60131;if(typeof Symbol=="function"&&Symbol.for){var R=Symbol.for;i=R("react.element"),s=R("react.portal"),u=R("react.fragment"),v=R("react.strict_mode"),l=R("react.profiler"),h=R("react.provider"),p=R("react.context"),d=R("react.forward_ref"),f=R("react.suspense"),g=R("react.suspense_list"),y=R("react.memo"),b=R("react.lazy"),E=R("react.block"),S=R("react.server.block"),w=R("react.fundamental"),x=R("react.debug_trace_mode"),P=R("react.legacy_hidden")}function T(J){if(typeof J=="object"&&J!==null){var q=J.$$typeof;switch(q){case i:switch(J=J.type,J){case u:case l:case v:case f:case g:return J;default:switch(J=J&&J.$$typeof,J){case p:case d:case b:case y:case h:return J;default:return q}}case s:return q}}}var A=h,I=i,N=d,K=u,_=b,W=y,j=s,re=l,X=v,Z=f;t=p,t=A,t=I,t=N,t=K,t=_,t=W,t=j,t=re,t=X,t=Z,t=function(){return!1},t=function(){return!1},c.isContextConsumer=function(J){return T(J)===p},t=function(J){return T(J)===h},t=function(J){return typeof J=="object"&&J!==null&&J.$$typeof===i},t=function(J){return T(J)===d},t=function(J){return T(J)===u},t=function(J){return T(J)===b},t=function(J){return T(J)===y},t=function(J){return T(J)===s},t=function(J){return T(J)===l},t=function(J){return T(J)===v},t=function(J){return T(J)===f},t=function(J){return typeof J=="string"||typeof J=="function"||J===u||J===l||J===x||J===v||J===f||J===g||J===P||typeof J=="object"&&J!==null&&(J.$$typeof===b||J.$$typeof===y||J.$$typeof===h||J.$$typeof===p||J.$$typeof===d||J.$$typeof===w||J.$$typeof===E||J[0]===S)},t=T},15713:(C,c,t)=>{"use strict";C.exports=t(29999)},28434:(C,c,t)=>{"use strict";t.d(c,{O:()=>v});function i(){var l=this.constructor.getDerivedStateFromProps(this.props,this.state);l!=null&&this.setState(l)}function s(l){function h(p){var d=this.constructor.getDerivedStateFromProps(l,p);return d??null}this.setState(h.bind(this))}function u(l,h){try{var p=this.props,d=this.state;this.props=l,this.state=h,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(p,d)}finally{this.props=p,this.state=d}}i.__suppressDeprecationWarning=!0,s.__suppressDeprecationWarning=!0,u.__suppressDeprecationWarning=!0;function v(l){var h=l.prototype;if(!h||!h.isReactComponent)throw new Error("Can only polyfill class components");if(typeof l.getDerivedStateFromProps!="function"&&typeof h.getSnapshotBeforeUpdate!="function")return l;var p=null,d=null,f=null;if(typeof h.componentWillMount=="function"?p="componentWillMount":typeof h.UNSAFE_componentWillMount=="function"&&(p="UNSAFE_componentWillMount"),typeof h.componentWillReceiveProps=="function"?d="componentWillReceiveProps":typeof h.UNSAFE_componentWillReceiveProps=="function"&&(d="UNSAFE_componentWillReceiveProps"),typeof h.componentWillUpdate=="function"?f="componentWillUpdate":typeof h.UNSAFE_componentWillUpdate=="function"&&(f="UNSAFE_componentWillUpdate"),p!==null||d!==null||f!==null){var g=l.displayName||l.name,y=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+g+" uses "+y+" but also contains the following legacy lifecycles:"+(p!==null?` `+p:"")+(d!==null?` `+d:"")+(f!==null?` `+f:"")+` The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof l.getDerivedStateFromProps=="function"&&(h.componentWillMount=i,h.componentWillReceiveProps=s),typeof h.getSnapshotBeforeUpdate=="function"){if(typeof h.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");h.componentWillUpdate=u;var b=h.componentDidUpdate;h.componentDidUpdate=function(S,w,x){var P=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:x;b.call(this,S,w,P)}}return l}},56772:(C,c)=>{"use strict";/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var t=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function b(V){return V===null||typeof V!="object"?null:(V=y&&V[y]||V["@@iterator"],typeof V=="function"?V:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,w={};function x(V,pe,ce){this.props=V,this.context=pe,this.refs=w,this.updater=ce||E}x.prototype.isReactComponent={},x.prototype.setState=function(V,pe){if(typeof V!="object"&&typeof V!="function"&&V!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,V,pe,"setState")},x.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function P(){}P.prototype=x.prototype;function R(V,pe,ce){this.props=V,this.context=pe,this.refs=w,this.updater=ce||E}var T=R.prototype=new P;T.constructor=R,S(T,x.prototype),T.isPureReactComponent=!0;var A=Array.isArray,I=Object.prototype.hasOwnProperty,N={current:null},K={key:!0,ref:!0,__self:!0,__source:!0};function _(V,pe,ce){var G,te={},ie=null,fe=null;if(pe!=null)for(G in pe.ref!==void 0&&(fe=pe.ref),pe.key!==void 0&&(ie=""+pe.key),pe)I.call(pe,G)&&!K.hasOwnProperty(G)&&(te[G]=pe[G]);var Se=arguments.length-2;if(Se===1)te.children=ce;else if(1<Se){for(var he=Array(Se),me=0;me<Se;me++)he[me]=arguments[me+2];te.children=he}if(V&&V.defaultProps)for(G in Se=V.defaultProps,Se)te[G]===void 0&&(te[G]=Se[G]);return{$$typeof:t,type:V,key:ie,ref:fe,props:te,_owner:N.current}}function W(V,pe){return{$$typeof:t,type:V.type,key:pe,ref:V.ref,props:V.props,_owner:V._owner}}function j(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function re(V){var pe={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(ce){return pe[ce]})}var X=/\/+/g;function Z(V,pe){return typeof V=="object"&&V!==null&&V.key!=null?re(""+V.key):pe.toString(36)}function J(V,pe,ce,G,te){var ie=typeof V;(ie==="undefined"||ie==="boolean")&&(V=null);var fe=!1;if(V===null)fe=!0;else switch(ie){case"string":case"number":fe=!0;break;case"object":switch(V.$$typeof){case t:case i:fe=!0}}if(fe)return fe=V,te=te(fe),V=G===""?"."+Z(fe,0):G,A(te)?(ce="",V!=null&&(ce=V.replace(X,"$&/")+"/"),J(te,pe,ce,"",function(me){return me})):te!=null&&(j(te)&&(te=W(te,ce+(!te.key||fe&&fe.key===te.key?"":(""+te.key).replace(X,"$&/")+"/")+V)),pe.push(te)),1;if(fe=0,G=G===""?".":G+":",A(V))for(var Se=0;Se<V.length;Se++){ie=V[Se];var he=G+Z(ie,Se);fe+=J(ie,pe,ce,he,te)}else if(he=b(V),typeof he=="function")for(V=he.call(V),Se=0;!(ie=V.next()).done;)ie=ie.value,he=G+Z(ie,Se++),fe+=J(ie,pe,ce,he,te);else if(ie==="object")throw pe=String(V),Error("Objects are not valid as a React child (found: "+(pe==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":pe)+"). If you meant to render a collection of children, use an array instead.");return fe}function q(V,pe,ce){if(V==null)return V;var G=[],te=0;return J(V,G,"","",function(ie){return pe.call(ce,ie,te++)}),G}function L(V){if(V._status===-1){var pe=V._result;pe=pe(),pe.then(function(ce){(V._status===0||V._status===-1)&&(V._status=1,V._result=ce)},function(ce){(V._status===0||V._status===-1)&&(V._status=2,V._result=ce)}),V._status===-1&&(V._status=0,V._result=pe)}if(V._status===1)return V._result.default;throw V._result}var $={current:null},k={transition:null},F={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:k,ReactCurrentOwner:N};c.Children={map:q,forEach:function(V,pe,ce){q(V,function(){pe.apply(this,arguments)},ce)},count:function(V){var pe=0;return q(V,function(){pe++}),pe},toArray:function(V){return q(V,function(pe){return pe})||[]},only:function(V){if(!j(V))throw Error("React.Children.only expected to receive a single React element child.");return V}},c.Component=x,c.Fragment=s,c.Profiler=v,c.PureComponent=R,c.StrictMode=u,c.Suspense=d,c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,c.cloneElement=function(V,pe,ce){if(V==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+V+".");var G=S({},V.props),te=V.key,ie=V.ref,fe=V._owner;if(pe!=null){if(pe.ref!==void 0&&(ie=pe.ref,fe=N.current),pe.key!==void 0&&(te=""+pe.key),V.type&&V.type.defaultProps)var Se=V.type.defaultProps;for(he in pe)I.call(pe,he)&&!K.hasOwnProperty(he)&&(G[he]=pe[he]===void 0&&Se!==void 0?Se[he]:pe[he])}var he=arguments.length-2;if(he===1)G.children=ce;else if(1<he){Se=Array(he);for(var me=0;me<he;me++)Se[me]=arguments[me+2];G.children=Se}return{$$typeof:t,type:V.type,key:te,ref:ie,props:G,_owner:fe}},c.createContext=function(V){return V={$$typeof:h,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},V.Provider={$$typeof:l,_context:V},V.Consumer=V},c.createElement=_,c.createFactory=function(V){var pe=_.bind(null,V);return pe.type=V,pe},c.createRef=function(){return{current:null}},c.forwardRef=function(V){return{$$typeof:p,render:V}},c.isValidElement=j,c.lazy=function(V){return{$$typeof:g,_payload:{_status:-1,_result:V},_init:L}},c.memo=function(V,pe){return{$$typeof:f,type:V,compare:pe===void 0?null:pe}},c.startTransition=function(V){var pe=k.transition;k.transition={};try{V()}finally{k.transition=pe}},c.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},c.useCallback=function(V,pe){return $.current.useCallback(V,pe)},c.useContext=function(V){return $.current.useContext(V)},c.useDebugValue=function(){},c.useDeferredValue=function(V){return $.current.useDeferredValue(V)},c.useEffect=function(V,pe){return $.current.useEffect(V,pe)},c.useId=function(){return $.current.useId()},c.useImperativeHandle=function(V,pe,ce){return $.current.useImperativeHandle(V,pe,ce)},c.useInsertionEffect=function(V,pe){return $.current.useInsertionEffect(V,pe)},c.useLayoutEffect=function(V,pe){return $.current.useLayoutEffect(V,pe)},c.useMemo=function(V,pe){return $.current.useMemo(V,pe)},c.useReducer=function(V,pe,ce){return $.current.useReducer(V,pe,ce)},c.useRef=function(V){return $.current.useRef(V)},c.useState=function(V){return $.current.useState(V)},c.useSyncExternalStore=function(V,pe,ce){return $.current.useSyncExternalStore(V,pe,ce)},c.useTransition=function(){return $.current.useTransition()},c.version="18.2.0"},27702:(C,c,t)=>{"use strict";C.exports=t(56772)},19528:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var t=function(s,u,v){var l=s===0?s:s+u,h=v==="horizontal"?[l,0,0]:[0,l,0],p="translate3d",d="("+h.join(",")+")";return p+d};c.default=t},95149:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.fadeAnimationHandler=c.slideStopSwipingHandler=c.slideSwipeAnimationHandler=c.slideAnimationHandler=void 0;var i=t(27702),s=v(t(19528)),u=t(41124);function v(b){return b&&b.__esModule?b:{default:b}}function l(b,E){var S=Object.keys(b);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(b);E&&(w=w.filter(function(x){return Object.getOwnPropertyDescriptor(b,x).enumerable})),S.push.apply(S,w)}return S}function h(b){for(var E=1;E<arguments.length;E++){var S=arguments[E]!=null?arguments[E]:{};E%2?l(Object(S),!0).forEach(function(w){p(b,w,S[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(S)):l(Object(S)).forEach(function(w){Object.defineProperty(b,w,Object.getOwnPropertyDescriptor(S,w))})}return b}function p(b,E,S){return E in b?Object.defineProperty(b,E,{value:S,enumerable:!0,configurable:!0,writable:!0}):b[E]=S,b}var d=function(E,S){var w={},x=S.selectedItem,P=x,R=i.Children.count(E.children)-1,T=E.infiniteLoop&&(x<0||x>R);if(T)return P<0?E.centerMode&&E.centerSlidePercentage&&E.axis==="horizontal"?w.itemListStyle=(0,u.setPosition)(-(R+2)*E.centerSlidePercentage-(100-E.centerSlidePercentage)/2,E.axis):w.itemListStyle=(0,u.setPosition)(-(R+2)*100,E.axis):P>R&&(w.itemListStyle=(0,u.setPosition)(0,E.axis)),w;var A=(0,u.getPosition)(x,E),I=(0,s.default)(A,"%",E.axis),N=E.transitionTime+"ms";return w.itemListStyle={WebkitTransform:I,msTransform:I,OTransform:I,transform:I},S.swiping||(w.itemListStyle=h(h({},w.itemListStyle),{},{WebkitTransitionDuration:N,MozTransitionDuration:N,OTransitionDuration:N,transitionDuration:N,msTransitionDuration:N})),w};c.slideAnimationHandler=d;var f=function(E,S,w,x){var P={},R=S.axis==="horizontal",T=i.Children.count(S.children),A=0,I=(0,u.getPosition)(w.selectedItem,S),N=S.infiniteLoop?(0,u.getPosition)(T-1,S)-100:(0,u.getPosition)(T-1,S),K=R?E.x:E.y,_=K;I===A&&K>0&&(_=0),I===N&&K<0&&(_=0);var W=I+100/(w.itemSize/_),j=Math.abs(K)>S.swipeScrollTolerance;return S.infiniteLoop&&j&&(w.selectedItem===0&&W>-100?W-=T*100:w.selectedItem===T-1&&W<-T*100&&(W+=T*100)),(!S.preventMovementUntilSwipeScrollTolerance||j||w.swipeMovementStarted)&&(w.swipeMovementStarted||x({swipeMovementStarted:!0}),P.itemListStyle=(0,u.setPosition)(W,S.axis)),j&&!w.cancelClick&&x({cancelClick:!0}),P};c.slideSwipeAnimationHandler=f;var g=function(E,S){var w=(0,u.getPosition)(S.selectedItem,E),x=(0,u.setPosition)(w,E.axis);return{itemListStyle:x}};c.slideStopSwipingHandler=g;var y=function(E,S){var w=E.transitionTime+"ms",x="ease-in-out",P={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:x,msTransitionTimingFunction:x,MozTransitionTimingFunction:x,WebkitTransitionTimingFunction:x,OTransitionTimingFunction:x};return S.swiping||(P=h(h({},P),{},{WebkitTransitionDuration:w,MozTransitionDuration:w,OTransitionDuration:w,transitionDuration:w,msTransitionDuration:w})),{slideStyle:P,selectedStyle:h(h({},P),{},{opacity:1,position:"relative"}),prevStyle:h({},P)}};c.fadeAnimationHandler=y},77447:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var i=y(t(27702)),s=f(t(862)),u=f(t(86817)),v=f(t(95092)),l=f(t(81626)),h=f(t(43309)),p=t(41124),d=t(95149);function f(X){return X&&X.__esModule?X:{default:X}}function g(){if(typeof WeakMap!="function")return null;var X=new WeakMap;return g=function(){return X},X}function y(X){if(X&&X.__esModule)return X;if(X===null||b(X)!=="object"&&typeof X!="function")return{default:X};var Z=g();if(Z&&Z.has(X))return Z.get(X);var J={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in X)if(Object.prototype.hasOwnProperty.call(X,L)){var $=q?Object.getOwnPropertyDescriptor(X,L):null;$&&($.get||$.set)?Object.defineProperty(J,L,$):J[L]=X[L]}return J.default=X,Z&&Z.set(X,J),J}function b(X){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(J){return typeof J}:b=function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},b(X)}function E(){return E=Object.assign||function(X){for(var Z=1;Z<arguments.length;Z++){var J=arguments[Z];for(var q in J)Object.prototype.hasOwnProperty.call(J,q)&&(X[q]=J[q])}return X},E.apply(this,arguments)}function S(X,Z){var J=Object.keys(X);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(X);Z&&(q=q.filter(function(L){return Object.getOwnPropertyDescriptor(X,L).enumerable})),J.push.apply(J,q)}return J}function w(X){for(var Z=1;Z<arguments.length;Z++){var J=arguments[Z]!=null?arguments[Z]:{};Z%2?S(Object(J),!0).forEach(function(q){j(X,q,J[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(J)):S(Object(J)).forEach(function(q){Object.defineProperty(X,q,Object.getOwnPropertyDescriptor(J,q))})}return X}function x(X,Z){if(!(X instanceof Z))throw new TypeError("Cannot call a class as a function")}function P(X,Z){for(var J=0;J<Z.length;J++){var q=Z[J];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(X,q.key,q)}}function R(X,Z,J){return Z&&P(X.prototype,Z),J&&P(X,J),X}function T(X,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");X.prototype=Object.create(Z&&Z.prototype,{constructor:{value:X,writable:!0,configurable:!0}}),Z&&A(X,Z)}function A(X,Z){return A=Object.setPrototypeOf||function(q,L){return q.__proto__=L,q},A(X,Z)}function I(X){var Z=_();return function(){var q=W(X),L;if(Z){var $=W(this).constructor;L=Reflect.construct(q,arguments,$)}else L=q.apply(this,arguments);return N(this,L)}}function N(X,Z){return Z&&(b(Z)==="object"||typeof Z=="function")?Z:K(X)}function K(X){if(X===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X}function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function W(X){return W=Object.setPrototypeOf?Object.getPrototypeOf:function(J){return J.__proto__||Object.getPrototypeOf(J)},W(X)}function j(X,Z,J){return Z in X?Object.defineProperty(X,Z,{value:J,enumerable:!0,configurable:!0,writable:!0}):X[Z]=J,X}var re=function(X){T(J,X);var Z=I(J);function J(q){var L;x(this,J),L=Z.call(this,q),j(K(L),"thumbsRef",void 0),j(K(L),"carouselWrapperRef",void 0),j(K(L),"listRef",void 0),j(K(L),"itemsRef",void 0),j(K(L),"timer",void 0),j(K(L),"animationHandler",void 0),j(K(L),"setThumbsRef",function(k){L.thumbsRef=k}),j(K(L),"setCarouselWrapperRef",function(k){L.carouselWrapperRef=k}),j(K(L),"setListRef",function(k){L.listRef=k}),j(K(L),"setItemsRef",function(k,F){L.itemsRef||(L.itemsRef=[]),L.itemsRef[F]=k}),j(K(L),"autoPlay",function(){i.Children.count(L.props.children)<=1||(L.clearAutoPlay(),L.props.autoPlay&&(L.timer=setTimeout(function(){L.increment()},L.props.interval)))}),j(K(L),"clearAutoPlay",function(){L.timer&&clearTimeout(L.timer)}),j(K(L),"resetAutoPlay",function(){L.clearAutoPlay(),L.autoPlay()}),j(K(L),"stopOnHover",function(){L.setState({isMouseEntered:!0},L.clearAutoPlay)}),j(K(L),"startOnLeave",function(){L.setState({isMouseEntered:!1},L.autoPlay)}),j(K(L),"isFocusWithinTheCarousel",function(){return L.carouselWrapperRef?!!((0,l.default)().activeElement===L.carouselWrapperRef||L.carouselWrapperRef.contains((0,l.default)().activeElement)):!1}),j(K(L),"navigateWithKeyboard",function(k){if(L.isFocusWithinTheCarousel()){var F=L.props.axis,V=F==="horizontal",pe={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},ce=V?pe.ArrowRight:pe.ArrowDown,G=V?pe.ArrowLeft:pe.ArrowUp;ce===k.keyCode?L.increment():G===k.keyCode&&L.decrement()}}),j(K(L),"updateSizes",function(){if(!(!L.state.initialized||!L.itemsRef||L.itemsRef.length===0)){var k=L.props.axis==="horizontal",F=L.itemsRef[0];if(F){var V=k?F.clientWidth:F.clientHeight;L.setState({itemSize:V}),L.thumbsRef&&L.thumbsRef.updateSizes()}}}),j(K(L),"setMountState",function(){L.setState({hasMount:!0}),L.updateSizes()}),j(K(L),"handleClickItem",function(k,F){if(i.Children.count(L.props.children)!==0){if(L.state.cancelClick){L.setState({cancelClick:!1});return}L.props.onClickItem(k,F),k!==L.state.selectedItem&&L.setState({selectedItem:k})}}),j(K(L),"handleOnChange",function(k,F){i.Children.count(L.props.children)<=1||L.props.onChange(k,F)}),j(K(L),"handleClickThumb",function(k,F){L.props.onClickThumb(k,F),L.moveTo(k)}),j(K(L),"onSwipeStart",function(k){L.setState({swiping:!0}),L.props.onSwipeStart(k)}),j(K(L),"onSwipeEnd",function(k){L.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),L.props.onSwipeEnd(k),L.clearAutoPlay(),L.state.autoPlay&&L.autoPlay()}),j(K(L),"onSwipeMove",function(k,F){L.props.onSwipeMove(F);var V=L.props.swipeAnimationHandler(k,L.props,L.state,L.setState.bind(K(L)));return L.setState(w({},V)),!!Object.keys(V).length}),j(K(L),"decrement",function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;L.moveTo(L.state.selectedItem-(typeof k=="number"?k:1))}),j(K(L),"increment",function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;L.moveTo(L.state.selectedItem+(typeof k=="number"?k:1))}),j(K(L),"moveTo",function(k){if(typeof k=="number"){var F=i.Children.count(L.props.children)-1;k<0&&(k=L.props.infiniteLoop?F:0),k>F&&(k=L.props.infiniteLoop?0:F),L.selectItem({selectedItem:k}),L.state.autoPlay&&L.state.isMouseEntered===!1&&L.resetAutoPlay()}}),j(K(L),"onClickNext",function(){L.increment(1)}),j(K(L),"onClickPrev",function(){L.decrement(1)}),j(K(L),"onSwipeForward",function(){L.increment(1),L.props.emulateTouch&&L.setState({cancelClick:!0})}),j(K(L),"onSwipeBackwards",function(){L.decrement(1),L.props.emulateTouch&&L.setState({cancelClick:!0})}),j(K(L),"changeItem",function(k){return function(F){(!(0,p.isKeyboardEvent)(F)||F.key==="Enter")&&L.moveTo(k)}}),j(K(L),"selectItem",function(k){L.setState(w({previousItem:L.state.selectedItem},k),function(){L.setState(L.animationHandler(L.props,L.state))}),L.handleOnChange(k.selectedItem,i.Children.toArray(L.props.children)[k.selectedItem])}),j(K(L),"getInitialImage",function(){var k=L.props.selectedItem,F=L.itemsRef&&L.itemsRef[k],V=F&&F.getElementsByTagName("img")||[];return V[0]}),j(K(L),"getVariableItemHeight",function(k){var F=L.itemsRef&&L.itemsRef[k];if(L.state.hasMount&&F&&F.children.length){var V=F.children[0].getElementsByTagName("img")||[];if(V.length>0){var pe=V[0];if(!pe.complete){var ce=function ie(){L.forceUpdate(),pe.removeEventListener("load",ie)};pe.addEventListener("load",ce)}}var G=V[0]||F.children[0],te=G.clientHeight;return te>0?te:null}return null});var $={initialized:!1,previousItem:q.selectedItem,selectedItem:q.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:q.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return L.animationHandler=typeof q.animationHandler=="function"&&q.animationHandler||q.animationHandler==="fade"&&d.fadeAnimationHandler||d.slideAnimationHandler,L.state=w(w({},$),L.animationHandler(q,$)),L}return R(J,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(L,$){!L.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!L.autoFocus&&this.props.autoFocus&&this.forceFocus(),$.swiping&&!this.state.swiping&&this.setState(w({},this.props.stopSwipingHandler(this.props,this.state))),(L.selectedItem!==this.props.selectedItem||L.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),L.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var L=this;this.bindEvents(),this.state.autoPlay&&i.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var $=L.getInitialImage();$&&!$.complete?$.addEventListener("load",L.setMountState):L.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var L=this.carouselWrapperRef;this.props.stopOnHover&&L&&(L.addEventListener("mouseenter",this.stopOnHover),L.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var L=this.carouselWrapperRef;this.props.stopOnHover&&L&&(L.removeEventListener("mouseenter",this.stopOnHover),L.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,h.default)().addEventListener("resize",this.updateSizes),(0,h.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,l.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,h.default)().removeEventListener("resize",this.updateSizes),(0,h.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var L=this.getInitialImage();L&&L.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,l.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var L;(L=this.carouselWrapperRef)===null||L===void 0||L.focus()}},{key:"renderItems",value:function(L){var $=this;return this.props.children?i.Children.map(this.props.children,function(k,F){var V=F===$.state.selectedItem,pe=F===$.state.previousItem,ce=V&&$.state.selectedStyle||pe&&$.state.prevStyle||$.state.slideStyle||{};$.props.centerMode&&$.props.axis==="horizontal"&&(ce=w(w({},ce),{},{minWidth:$.props.centerSlidePercentage+"%"})),$.state.swiping&&$.state.swipeMovementStarted&&(ce=w(w({},ce),{},{pointerEvents:"none"}));var G={ref:function(ie){return $.setItemsRef(ie,F)},key:"itemKey"+F+(L?"clone":""),className:u.default.ITEM(!0,F===$.state.selectedItem,F===$.state.previousItem),onClick:$.handleClickItem.bind($,F,k),style:ce};return i.default.createElement("li",G,$.props.renderItem(k,{isSelected:F===$.state.selectedItem,isPrevious:F===$.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var L=this,$=this.props,k=$.showIndicators,F=$.labels,V=$.renderIndicator,pe=$.children;return k?i.default.createElement("ul",{className:"control-dots"},i.Children.map(pe,function(ce,G){return V&&V(L.changeItem(G),G===L.state.selectedItem,G,F.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?i.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,i.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||i.Children.count(this.props.children)===0?null:i.default.createElement(v.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var L=this;if(!this.props.children||i.Children.count(this.props.children)===0)return null;var $=this.props.swipeable&&i.Children.count(this.props.children)>1,k=this.props.axis==="horizontal",F=this.props.showArrows&&i.Children.count(this.props.children)>1,V=F&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,pe=F&&(this.state.selectedItem<i.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,ce=this.renderItems(!0),G=ce.shift(),te=ce.pop(),ie={className:u.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},fe={};if(k){if(ie.onSwipeLeft=this.onSwipeForward,ie.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var Se=this.getVariableItemHeight(this.state.selectedItem);fe.height=Se||"auto"}}else ie.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ie.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ie.style=w(w({},ie.style),{},{height:this.state.itemSize}),fe.height=this.state.itemSize;return i.default.createElement("div",{"aria-label":this.props.ariaLabel,className:u.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},i.default.createElement("div",{className:u.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,V,this.props.labels.leftArrow),i.default.createElement("div",{className:u.default.WRAPPER(!0,this.props.axis),style:fe},$?i.default.createElement(s.default,E({tagName:"ul",innerRef:this.setListRef},ie,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&te,this.renderItems(),this.props.infiniteLoop&&G):i.default.createElement("ul",{className:u.default.SLIDER(!0,this.state.swiping),ref:function(me){return L.setListRef(me)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&te,this.renderItems(),this.props.infiniteLoop&&G)),this.props.renderArrowNext(this.onClickNext,pe,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),J}(i.default.Component);c.default=re,j(re,"displayName","Carousel"),j(re,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:p.noop,onClickThumb:p.noop,onChange:p.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(Z,J,q){return i.default.createElement("button",{type:"button","aria-label":q,className:u.default.ARROW_PREV(!J),onClick:Z})},renderArrowNext:function(Z,J,q){return i.default.createElement("button",{type:"button","aria-label":q,className:u.default.ARROW_NEXT(!J),onClick:Z})},renderIndicator:function(Z,J,q,L){return i.default.createElement("li",{className:u.default.DOT(J),onClick:Z,onKeyDown:Z,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(L," ").concat(q+1)})},renderItem:function(Z){return Z},renderThumbs:function(Z){var J=i.Children.map(Z,function(q){var L=q;if(q.type!=="img"&&(L=i.Children.toArray(q.props.children).find(function($){return $.type==="img"})),!!L)return L});return J.filter(function(q){return q}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):J},statusFormatter:p.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:d.slideSwipeAnimationHandler,stopSwipingHandler:d.slideStopSwipingHandler})},62907:()=>{"use strict"},41124:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.setPosition=c.getPosition=c.isKeyboardEvent=c.defaultStatusFormatter=c.noop=void 0;var i=t(27702),s=u(t(19528));function u(f){return f&&f.__esModule?f:{default:f}}var v=function(){};c.noop=v;var l=function(g,y){return"".concat(g," of ").concat(y)};c.defaultStatusFormatter=l;var h=function(g){return g?g.hasOwnProperty("key"):!1};c.isKeyboardEvent=h;var p=function(g,y){if(y.infiniteLoop&&++g,g===0)return 0;var b=i.Children.count(y.children);if(y.centerMode&&y.axis==="horizontal"){var E=-g*y.centerSlidePercentage,S=b-1;return g&&(g!==S||y.infiniteLoop)?E+=(100-y.centerSlidePercentage)/2:g===S&&(E+=100-y.centerSlidePercentage),E}return-g*100};c.getPosition=p;var d=function(g,y){var b={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(E){b[E]=(0,s.default)(g,"%",y)}),b};c.setPosition=d},95092:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var i=f(t(27702)),s=p(t(86817)),u=t(758),v=p(t(19528)),l=p(t(862)),h=p(t(43309));function p(W){return W&&W.__esModule?W:{default:W}}function d(){if(typeof WeakMap!="function")return null;var W=new WeakMap;return d=function(){return W},W}function f(W){if(W&&W.__esModule)return W;if(W===null||g(W)!=="object"&&typeof W!="function")return{default:W};var j=d();if(j&&j.has(W))return j.get(W);var re={},X=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Z in W)if(Object.prototype.hasOwnProperty.call(W,Z)){var J=X?Object.getOwnPropertyDescriptor(W,Z):null;J&&(J.get||J.set)?Object.defineProperty(re,Z,J):re[Z]=W[Z]}return re.default=W,j&&j.set(W,re),re}function g(W){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(re){return typeof re}:g=function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re},g(W)}function y(){return y=Object.assign||function(W){for(var j=1;j<arguments.length;j++){var re=arguments[j];for(var X in re)Object.prototype.hasOwnProperty.call(re,X)&&(W[X]=re[X])}return W},y.apply(this,arguments)}function b(W,j){if(!(W instanceof j))throw new TypeError("Cannot call a class as a function")}function E(W,j){for(var re=0;re<j.length;re++){var X=j[re];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(W,X.key,X)}}function S(W,j,re){return j&&E(W.prototype,j),re&&E(W,re),W}function w(W,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(j&&j.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),j&&x(W,j)}function x(W,j){return x=Object.setPrototypeOf||function(X,Z){return X.__proto__=Z,X},x(W,j)}function P(W){var j=A();return function(){var X=I(W),Z;if(j){var J=I(this).constructor;Z=Reflect.construct(X,arguments,J)}else Z=X.apply(this,arguments);return R(this,Z)}}function R(W,j){return j&&(g(j)==="object"||typeof j=="function")?j:T(W)}function T(W){if(W===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function I(W){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(re){return re.__proto__||Object.getPrototypeOf(re)},I(W)}function N(W,j,re){return j in W?Object.defineProperty(W,j,{value:re,enumerable:!0,configurable:!0,writable:!0}):W[j]=re,W}var K=function(j){return j.hasOwnProperty("key")},_=function(W){w(re,W);var j=P(re);function re(X){var Z;return b(this,re),Z=j.call(this,X),N(T(Z),"itemsWrapperRef",void 0),N(T(Z),"itemsListRef",void 0),N(T(Z),"thumbsRef",void 0),N(T(Z),"setItemsWrapperRef",function(J){Z.itemsWrapperRef=J}),N(T(Z),"setItemsListRef",function(J){Z.itemsListRef=J}),N(T(Z),"setThumbsRef",function(J,q){Z.thumbsRef||(Z.thumbsRef=[]),Z.thumbsRef[q]=J}),N(T(Z),"updateSizes",function(){if(!(!Z.props.children||!Z.itemsWrapperRef||!Z.thumbsRef)){var J=i.Children.count(Z.props.children),q=Z.itemsWrapperRef.clientWidth,L=Z.props.thumbWidth?Z.props.thumbWidth:(0,u.outerWidth)(Z.thumbsRef[0]),$=Math.floor(q/L),k=$<J,F=k?J-$:0;Z.setState(function(V,pe){return{itemSize:L,visibleItems:$,firstItem:k?Z.getFirstItem(pe.selectedItem):0,lastPosition:F,showArrows:k}})}}),N(T(Z),"handleClickItem",function(J,q,L){if(!K(L)||L.key==="Enter"){var $=Z.props.onSelectItem;typeof $=="function"&&$(J,q)}}),N(T(Z),"onSwipeStart",function(){Z.setState({swiping:!0})}),N(T(Z),"onSwipeEnd",function(){Z.setState({swiping:!1})}),N(T(Z),"onSwipeMove",function(J){var q=J.x;if(!Z.state.itemSize||!Z.itemsWrapperRef||!Z.state.visibleItems)return!1;var L=0,$=i.Children.count(Z.props.children),k=-(Z.state.firstItem*100)/Z.state.visibleItems,F=Math.max($-Z.state.visibleItems,0),V=-F*100/Z.state.visibleItems;k===L&&q>0&&(q=0),k===V&&q<0&&(q=0);var pe=Z.itemsWrapperRef.clientWidth,ce=k+100/(pe/q);return Z.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(G){Z.itemsListRef.style[G]=(0,v.default)(ce,"%",Z.props.axis)}),!0}),N(T(Z),"slideRight",function(J){Z.moveTo(Z.state.firstItem-(typeof J=="number"?J:1))}),N(T(Z),"slideLeft",function(J){Z.moveTo(Z.state.firstItem+(typeof J=="number"?J:1))}),N(T(Z),"moveTo",function(J){J=J<0?0:J,J=J>=Z.state.lastPosition?Z.state.lastPosition:J,Z.setState({firstItem:J})}),Z.state={selectedItem:X.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},Z}return S(re,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(Z){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==Z.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,h.default)().addEventListener("resize",this.updateSizes),(0,h.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,h.default)().removeEventListener("resize",this.updateSizes),(0,h.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(Z){var J=Z;return Z>=this.state.lastPosition&&(J=this.state.lastPosition),Z<this.state.firstItem+this.state.visibleItems&&(J=this.state.firstItem),Z<this.state.firstItem&&(J=Z),J}},{key:"renderItems",value:function(){var Z=this;return this.props.children.map(function(J,q){var L=s.default.ITEM(!1,q===Z.state.selectedItem),$={key:q,ref:function(F){return Z.setThumbsRef(F,q)},className:L,onClick:Z.handleClickItem.bind(Z,q,Z.props.children[q]),onKeyDown:Z.handleClickItem.bind(Z,q,Z.props.children[q]),"aria-label":"".concat(Z.props.labels.item," ").concat(q+1),style:{width:Z.props.thumbWidth}};return i.default.createElement("li",y({},$,{role:"button",tabIndex:0}),J)})}},{key:"render",value:function(){var Z=this;if(!this.props.children)return null;var J=i.Children.count(this.props.children)>1,q=this.state.showArrows&&this.state.firstItem>0,L=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,$={},k=-this.state.firstItem*(this.state.itemSize||0),F=(0,v.default)(k,"px",this.props.axis),V=this.props.transitionTime+"ms";return $={WebkitTransform:F,MozTransform:F,MsTransform:F,OTransform:F,transform:F,msTransform:F,WebkitTransitionDuration:V,MozTransitionDuration:V,MsTransitionDuration:V,OTransitionDuration:V,transitionDuration:V,msTransitionDuration:V},i.default.createElement("div",{className:s.default.CAROUSEL(!1)},i.default.createElement("div",{className:s.default.WRAPPER(!1),ref:this.setItemsWrapperRef},i.default.createElement("button",{type:"button",className:s.default.ARROW_PREV(!q),onClick:function(){return Z.slideRight()},"aria-label":this.props.labels.leftArrow}),J?i.default.createElement(l.default,{tagName:"ul",className:s.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:$,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):i.default.createElement("ul",{className:s.default.SLIDER(!1,this.state.swiping),ref:function(ce){return Z.setItemsListRef(ce)},style:$},this.renderItems()),i.default.createElement("button",{type:"button",className:s.default.ARROW_NEXT(!L),onClick:function(){return Z.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),re}(i.Component);c.default=_,N(_,"displayName","Thumbs"),N(_,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350})},86817:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var i=s(t(28040));function s(l){return l&&l.__esModule?l:{default:l}}function u(l,h,p){return h in l?Object.defineProperty(l,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):l[h]=p,l}var v={ROOT:function(h){return(0,i.default)(u({"carousel-root":!0},h||"",!!h))},CAROUSEL:function(h){return(0,i.default)({carousel:!0,"carousel-slider":h})},WRAPPER:function(h,p){return(0,i.default)({"thumbs-wrapper":!h,"slider-wrapper":h,"axis-horizontal":p==="horizontal","axis-vertical":p!=="horizontal"})},SLIDER:function(h,p){return(0,i.default)({thumbs:!h,slider:h,animated:!p})},ITEM:function(h,p,d){return(0,i.default)({thumb:!h,slide:h,selected:p,previous:d})},ARROW_PREV:function(h){return(0,i.default)({"control-arrow control-prev":!0,"control-disabled":h})},ARROW_NEXT:function(h){return(0,i.default)({"control-arrow control-next":!0,"control-disabled":h})},DOT:function(h){return(0,i.default)({dot:!0,selected:h})}};c.default=v},758:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.outerWidth=void 0;var t=function(s){var u=s.offsetWidth,v=getComputedStyle(s);return u+=parseInt(v.marginLeft)+parseInt(v.marginRight),u};c.outerWidth=t},11007:(C,c,t)=>{"use strict";var i;i={value:!0},Object.defineProperty(c,"lr",{enumerable:!0,get:function(){return s.default}}),i={enumerable:!0,get:function(){return u.CarouselProps}},i={enumerable:!0,get:function(){return v.default}};var s=l(t(77447)),u=t(62907),v=l(t(95092));function l(h){return h&&h.__esModule?h:{default:h}}},81626:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var t=function(){return document};c.default=t},43309:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var t=function(){return window};c.default=t},45645:(C,c,t)=>{"use strict";t.r(c),t.d(c,{__DO_NOT_USE__ActionTypes:()=>l,applyMiddleware:()=>I,bindActionCreators:()=>T,combineReducers:()=>P,compose:()=>A,createStore:()=>b,legacy_createStore:()=>E});var i=t(48632);function s(K){return"Minified Redux error #"+K+"; visit https://redux.js.org/Errors?code="+K+" for the full message or use the non-minified dev environment for full errors. "}var u=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),v=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+v(),REPLACE:"@@redux/REPLACE"+v(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+v()}};function h(K){if(typeof K!="object"||K===null)return!1;for(var _=K;Object.getPrototypeOf(_)!==null;)_=Object.getPrototypeOf(_);return Object.getPrototypeOf(K)===_}function p(K){if(K===void 0)return"undefined";if(K===null)return"null";var _=typeof K;switch(_){case"boolean":case"string":case"number":case"symbol":case"function":return _}if(Array.isArray(K))return"array";if(g(K))return"date";if(f(K))return"error";var W=d(K);switch(W){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return W}return _.slice(8,-1).toLowerCase().replace(/\s/g,"")}function d(K){return typeof K.constructor=="function"?K.constructor.name:null}function f(K){return K instanceof Error||typeof K.message=="string"&&K.constructor&&typeof K.constructor.stackTraceLimit=="number"}function g(K){return K instanceof Date?!0:typeof K.toDateString=="function"&&typeof K.getDate=="function"&&typeof K.setDate=="function"}function y(K){var _=typeof K;return _}function b(K,_,W){var j;if(typeof _=="function"&&typeof W=="function"||typeof W=="function"&&typeof arguments[3]=="function")throw new Error(s(0));if(typeof _=="function"&&typeof W>"u"&&(W=_,_=void 0),typeof W<"u"){if(typeof W!="function")throw new Error(s(1));return W(b)(K,_)}if(typeof K!="function")throw new Error(s(2));var re=K,X=_,Z=[],J=Z,q=!1;function L(){J===Z&&(J=Z.slice())}function $(){if(q)throw new Error(s(3));return X}function k(ce){if(typeof ce!="function")throw new Error(s(4));if(q)throw new Error(s(5));var G=!0;return L(),J.push(ce),function(){if(G){if(q)throw new Error(s(6));G=!1,L();var ie=J.indexOf(ce);J.splice(ie,1),Z=null}}}function F(ce){if(!h(ce))throw new Error(s(7));if(typeof ce.type>"u")throw new Error(s(8));if(q)throw new Error(s(9));try{q=!0,X=re(X,ce)}finally{q=!1}for(var G=Z=J,te=0;te<G.length;te++){var ie=G[te];ie()}return ce}function V(ce){if(typeof ce!="function")throw new Error(s(10));re=ce,F({type:l.REPLACE})}function pe(){var ce,G=k;return ce={subscribe:function(ie){if(typeof ie!="object"||ie===null)throw new Error(s(11));function fe(){ie.next&&ie.next($())}fe();var Se=G(fe);return{unsubscribe:Se}}},ce[u]=function(){return this},ce}return F({type:l.INIT}),j={dispatch:F,subscribe:k,getState:$,replaceReducer:V},j[u]=pe,j}var E=b;function S(K){typeof console<"u"&&typeof console.error=="function"&&console.error(K);try{throw new Error(K)}catch{}}function w(K,_,W,j){var re=Object.keys(_),X=W&&W.type===l.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(re.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!h(K))return"The "+X+' has unexpected type of "'+y(K)+'". Expected argument to be an object with the following '+('keys: "'+re.join('", "')+'"');var Z=Object.keys(K).filter(function(J){return!_.hasOwnProperty(J)&&!j[J]});if(Z.forEach(function(J){j[J]=!0}),!(W&&W.type===l.REPLACE)&&Z.length>0)return"Unexpected "+(Z.length>1?"keys":"key")+" "+('"'+Z.join('", "')+'" found in '+X+". ")+"Expected to find one of the known reducer keys instead: "+('"'+re.join('", "')+'". Unexpected keys will be ignored.')}function x(K){Object.keys(K).forEach(function(_){var W=K[_],j=W(void 0,{type:l.INIT});if(typeof j>"u")throw new Error(s(12));if(typeof W(void 0,{type:l.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(s(13))})}function P(K){for(var _=Object.keys(K),W={},j=0;j<_.length;j++){var re=_[j];typeof K[re]=="function"&&(W[re]=K[re])}var X=Object.keys(W),Z,J;try{x(W)}catch(q){J=q}return function(L,$){if(L===void 0&&(L={}),J)throw J;if(!1)var k;for(var F=!1,V={},pe=0;pe<X.length;pe++){var ce=X[pe],G=W[ce],te=L[ce],ie=G(te,$);if(typeof ie>"u"){var fe=$&&$.type;throw new Error(s(14))}V[ce]=ie,F=F||ie!==te}return F=F||X.length!==Object.keys(L).length,F?V:L}}function R(K,_){return function(){return _(K.apply(this,arguments))}}function T(K,_){if(typeof K=="function")return R(K,_);if(typeof K!="object"||K===null)throw new Error(s(16));var W={};for(var j in K){var re=K[j];typeof re=="function"&&(W[j]=R(re,_))}return W}function A(){for(var K=arguments.length,_=new Array(K),W=0;W<K;W++)_[W]=arguments[W];return _.length===0?function(j){return j}:_.length===1?_[0]:_.reduce(function(j,re){return function(){return j(re.apply(void 0,arguments))}})}function I(){for(var K=arguments.length,_=new Array(K),W=0;W<K;W++)_[W]=arguments[W];return function(j){return function(){var re=j.apply(void 0,arguments),X=function(){throw new Error(s(15))},Z={getState:re.getState,dispatch:function(){return X.apply(void 0,arguments)}},J=_.map(function(q){return q(Z)});return X=A.apply(void 0,J)(re.dispatch),(0,i.Z)((0,i.Z)({},re),{},{dispatch:X})}}}function N(){}},33199:(C,c,t)=>{"use strict";t.r(c),t.d(c,{__DO_NOT_USE__ActionTypes:()=>l,applyMiddleware:()=>I,bindActionCreators:()=>T,combineReducers:()=>P,compose:()=>A,createStore:()=>b,legacy_createStore:()=>E});var i=t(48632);function s(N){return"Minified Redux error #"+N+"; visit https://redux.js.org/Errors?code="+N+" for the full message or use the non-minified dev environment for full errors. "}var u=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),v=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+v(),REPLACE:"@@redux/REPLACE"+v(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+v()}};function h(N){if(typeof N!="object"||N===null)return!1;for(var K=N;Object.getPrototypeOf(K)!==null;)K=Object.getPrototypeOf(K);return Object.getPrototypeOf(N)===K}function p(N){if(N===void 0)return"undefined";if(N===null)return"null";var K=typeof N;switch(K){case"boolean":case"string":case"number":case"symbol":case"function":return K}if(Array.isArray(N))return"array";if(g(N))return"date";if(f(N))return"error";var _=d(N);switch(_){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return _}return K.slice(8,-1).toLowerCase().replace(/\s/g,"")}function d(N){return typeof N.constructor=="function"?N.constructor.name:null}function f(N){return N instanceof Error||typeof N.message=="string"&&N.constructor&&typeof N.constructor.stackTraceLimit=="number"}function g(N){return N instanceof Date?!0:typeof N.toDateString=="function"&&typeof N.getDate=="function"&&typeof N.setDate=="function"}function y(N){var K=typeof N;return K}function b(N,K,_){var W;if(typeof K=="function"&&typeof _=="function"||typeof _=="function"&&typeof arguments[3]=="function")throw new Error(s(0));if(typeof K=="function"&&typeof _>"u"&&(_=K,K=void 0),typeof _<"u"){if(typeof _!="function")throw new Error(s(1));return _(b)(N,K)}if(typeof N!="function")throw new Error(s(2));var j=N,re=K,X=[],Z=X,J=!1;function q(){Z===X&&(Z=X.slice())}function L(){if(J)throw new Error(s(3));return re}function $(pe){if(typeof pe!="function")throw new Error(s(4));if(J)throw new Error(s(5));var ce=!0;return q(),Z.push(pe),function(){if(ce){if(J)throw new Error(s(6));ce=!1,q();var te=Z.indexOf(pe);Z.splice(te,1),X=null}}}function k(pe){if(!h(pe))throw new Error(s(7));if(typeof pe.type>"u")throw new Error(s(8));if(J)throw new Error(s(9));try{J=!0,re=j(re,pe)}finally{J=!1}for(var ce=X=Z,G=0;G<ce.length;G++){var te=ce[G];te()}return pe}function F(pe){if(typeof pe!="function")throw new Error(s(10));j=pe,k({type:l.REPLACE})}function V(){var pe,ce=$;return pe={subscribe:function(te){if(typeof te!="object"||te===null)throw new Error(s(11));function ie(){te.next&&te.next(L())}ie();var fe=ce(ie);return{unsubscribe:fe}}},pe[u]=function(){return this},pe}return k({type:l.INIT}),W={dispatch:k,subscribe:$,getState:L,replaceReducer:F},W[u]=V,W}var E=b;function S(N){typeof console<"u"&&typeof console.error=="function"&&console.error(N);try{throw new Error(N)}catch{}}function w(N,K,_,W){var j=Object.keys(K),re=_&&_.type===l.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(j.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!h(N))return"The "+re+' has unexpected type of "'+y(N)+'". Expected argument to be an object with the following '+('keys: "'+j.join('", "')+'"');var X=Object.keys(N).filter(function(Z){return!K.hasOwnProperty(Z)&&!W[Z]});if(X.forEach(function(Z){W[Z]=!0}),!(_&&_.type===l.REPLACE)&&X.length>0)return"Unexpected "+(X.length>1?"keys":"key")+" "+('"'+X.join('", "')+'" found in '+re+". ")+"Expected to find one of the known reducer keys instead: "+('"'+j.join('", "')+'". Unexpected keys will be ignored.')}function x(N){Object.keys(N).forEach(function(K){var _=N[K],W=_(void 0,{type:l.INIT});if(typeof W>"u")throw new Error(s(12));if(typeof _(void 0,{type:l.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(s(13))})}function P(N){for(var K=Object.keys(N),_={},W=0;W<K.length;W++){var j=K[W];typeof N[j]=="function"&&(_[j]=N[j])}var re=Object.keys(_),X,Z;try{x(_)}catch(J){Z=J}return function(q,L){if(q===void 0&&(q={}),Z)throw Z;if(!1)var $;for(var k=!1,F={},V=0;V<re.length;V++){var pe=re[V],ce=_[pe],G=q[pe],te=ce(G,L);if(typeof te>"u"){var ie=L&&L.type;throw new Error(s(14))}F[pe]=te,k=k||te!==G}return k=k||re.length!==Object.keys(q).length,k?F:q}}function R(N,K){return function(){return K(N.apply(this,arguments))}}function T(N,K){if(typeof N=="function")return R(N,K);if(typeof N!="object"||N===null)throw new Error(s(16));var _={};for(var W in N){var j=N[W];typeof j=="function"&&(_[W]=R(j,K))}return _}function A(){for(var N=arguments.length,K=new Array(N),_=0;_<N;_++)K[_]=arguments[_];return K.length===0?function(W){return W}:K.length===1?K[0]:K.reduce(function(W,j){return function(){return W(j.apply(void 0,arguments))}})}function I(){for(var N=arguments.length,K=new Array(N),_=0;_<N;_++)K[_]=arguments[_];return function(W){return function(){var j=W.apply(void 0,arguments),re=function(){throw new Error(s(15))},X={getState:j.getState,dispatch:function(){return re.apply(void 0,arguments)}},Z=K.map(function(J){return J(X)});return re=A.apply(void 0,Z)(j.dispatch),(0,i.Z)((0,i.Z)({},j),{},{dispatch:re})}}}},97908:C=>{var c=function(t){"use strict";var i=Object.prototype,s=i.hasOwnProperty,u=Object.defineProperty||function($,k,F){$[k]=F.value},v,l=typeof Symbol=="function"?Symbol:{},h=l.iterator||"@@iterator",p=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function f($,k,F){return Object.defineProperty($,k,{value:F,enumerable:!0,configurable:!0,writable:!0}),$[k]}try{f({},"")}catch{f=function(k,F,V){return k[F]=V}}function g($,k,F,V){var pe=k&&k.prototype instanceof P?k:P,ce=Object.create(pe.prototype),G=new J(V||[]);return u(ce,"_invoke",{value:j($,F,G)}),ce}t.wrap=g;function y($,k,F){try{return{type:"normal",arg:$.call(k,F)}}catch(V){return{type:"throw",arg:V}}}var b="suspendedStart",E="suspendedYield",S="executing",w="completed",x={};function P(){}function R(){}function T(){}var A={};f(A,h,function(){return this});var I=Object.getPrototypeOf,N=I&&I(I(q([])));N&&N!==i&&s.call(N,h)&&(A=N);var K=T.prototype=P.prototype=Object.create(A);R.prototype=T,u(K,"constructor",{value:T,configurable:!0}),u(T,"constructor",{value:R,configurable:!0}),R.displayName=f(T,d,"GeneratorFunction");function _($){["next","throw","return"].forEach(function(k){f($,k,function(F){return this._invoke(k,F)})})}t.isGeneratorFunction=function($){var k=typeof $=="function"&&$.constructor;return k?k===R||(k.displayName||k.name)==="GeneratorFunction":!1},t.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,T):($.__proto__=T,f($,d,"GeneratorFunction")),$.prototype=Object.create(K),$},t.awrap=function($){return{__await:$}};function W($,k){function F(ce,G,te,ie){var fe=y($[ce],$,G);if(fe.type==="throw")ie(fe.arg);else{var Se=fe.arg,he=Se.value;return he&&typeof he=="object"&&s.call(he,"__await")?k.resolve(he.__await).then(function(me){F("next",me,te,ie)},function(me){F("throw",me,te,ie)}):k.resolve(he).then(function(me){Se.value=me,te(Se)},function(me){return F("throw",me,te,ie)})}}var V;function pe(ce,G){function te(){return new k(function(ie,fe){F(ce,G,ie,fe)})}return V=V?V.then(te,te):te()}u(this,"_invoke",{value:pe})}_(W.prototype),f(W.prototype,p,function(){return this}),t.AsyncIterator=W,t.async=function($,k,F,V,pe){pe===void 0&&(pe=Promise);var ce=new W(g($,k,F,V),pe);return t.isGeneratorFunction(k)?ce:ce.next().then(function(G){return G.done?G.value:ce.next()})};function j($,k,F){var V=b;return function(ce,G){if(V===S)throw new Error("Generator is already running");if(V===w){if(ce==="throw")throw G;return L()}for(F.method=ce,F.arg=G;;){var te=F.delegate;if(te){var ie=re(te,F);if(ie){if(ie===x)continue;return ie}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(V===b)throw V=w,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);V=S;var fe=y($,k,F);if(fe.type==="normal"){if(V=F.done?w:E,fe.arg===x)continue;return{value:fe.arg,done:F.done}}else fe.type==="throw"&&(V=w,F.method="throw",F.arg=fe.arg)}}}function re($,k){var F=k.method,V=$.iterator[F];if(V===v)return k.delegate=null,F==="throw"&&$.iterator.return&&(k.method="return",k.arg=v,re($,k),k.method==="throw")||F!=="return"&&(k.method="throw",k.arg=new TypeError("The iterator does not provide a '"+F+"' method")),x;var pe=y(V,$.iterator,k.arg);if(pe.type==="throw")return k.method="throw",k.arg=pe.arg,k.delegate=null,x;var ce=pe.arg;if(!ce)return k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,x;if(ce.done)k[$.resultName]=ce.value,k.next=$.nextLoc,k.method!=="return"&&(k.method="next",k.arg=v);else return ce;return k.delegate=null,x}_(K),f(K,d,"Generator"),f(K,h,function(){return this}),f(K,"toString",function(){return"[object Generator]"});function X($){var k={tryLoc:$[0]};1 in $&&(k.catchLoc=$[1]),2 in $&&(k.finallyLoc=$[2],k.afterLoc=$[3]),this.tryEntries.push(k)}function Z($){var k=$.completion||{};k.type="normal",delete k.arg,$.completion=k}function J($){this.tryEntries=[{tryLoc:"root"}],$.forEach(X,this),this.reset(!0)}t.keys=function($){var k=Object($),F=[];for(var V in k)F.push(V);return F.reverse(),function pe(){for(;F.length;){var ce=F.pop();if(ce in k)return pe.value=ce,pe.done=!1,pe}return pe.done=!0,pe}};function q($){if($){var k=$[h];if(k)return k.call($);if(typeof $.next=="function")return $;if(!isNaN($.length)){var F=-1,V=function pe(){for(;++F<$.length;)if(s.call($,F))return pe.value=$[F],pe.done=!1,pe;return pe.value=v,pe.done=!0,pe};return V.next=V}}return{next:L}}t.values=q;function L(){return{value:v,done:!0}}return J.prototype={constructor:J,reset:function($){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(Z),!$)for(var k in this)k.charAt(0)==="t"&&s.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=v)},stop:function(){this.done=!0;var $=this.tryEntries[0],k=$.completion;if(k.type==="throw")throw k.arg;return this.rval},dispatchException:function($){if(this.done)throw $;var k=this;function F(ie,fe){return ce.type="throw",ce.arg=$,k.next=ie,fe&&(k.method="next",k.arg=v),!!fe}for(var V=this.tryEntries.length-1;V>=0;--V){var pe=this.tryEntries[V],ce=pe.completion;if(pe.tryLoc==="root")return F("end");if(pe.tryLoc<=this.prev){var G=s.call(pe,"catchLoc"),te=s.call(pe,"finallyLoc");if(G&&te){if(this.prev<pe.catchLoc)return F(pe.catchLoc,!0);if(this.prev<pe.finallyLoc)return F(pe.finallyLoc)}else if(G){if(this.prev<pe.catchLoc)return F(pe.catchLoc,!0)}else if(te){if(this.prev<pe.finallyLoc)return F(pe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function($,k){for(var F=this.tryEntries.length-1;F>=0;--F){var V=this.tryEntries[F];if(V.tryLoc<=this.prev&&s.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var pe=V;break}}pe&&($==="break"||$==="continue")&&pe.tryLoc<=k&&k<=pe.finallyLoc&&(pe=null);var ce=pe?pe.completion:{};return ce.type=$,ce.arg=k,pe?(this.method="next",this.next=pe.finallyLoc,x):this.complete(ce)},complete:function($,k){if($.type==="throw")throw $.arg;return $.type==="break"||$.type==="continue"?this.next=$.arg:$.type==="return"?(this.rval=this.arg=$.arg,this.method="return",this.next="end"):$.type==="normal"&&k&&(this.next=k),x},finish:function($){for(var k=this.tryEntries.length-1;k>=0;--k){var F=this.tryEntries[k];if(F.finallyLoc===$)return this.complete(F.completion,F.afterLoc),Z(F),x}},catch:function($){for(var k=this.tryEntries.length-1;k>=0;--k){var F=this.tryEntries[k];if(F.tryLoc===$){var V=F.completion;if(V.type==="throw"){var pe=V.arg;Z(F)}return pe}}throw new Error("illegal catch attempt")},delegateYield:function($,k,F){return this.delegate={iterator:q($),resultName:k,nextLoc:F},this.method==="next"&&(this.arg=v),x}},t}(C.exports);try{regeneratorRuntime=c}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=c:Function("r","regeneratorRuntime = r")(c)}},4033:(C,c,t)=>{"use strict";t.d(c,{PW:()=>h});var i="NOT_FOUND";function s(p){var d;return{get:function(g){return d&&p(d.key,g)?d.value:i},put:function(g,y){d={key:g,value:y}},getEntries:function(){return d?[d]:[]},clear:function(){d=void 0}}}function u(p,d){var f=[];function g(S){var w=f.findIndex(function(P){return d(S,P.key)});if(w>-1){var x=f[w];return w>0&&(f.splice(w,1),f.unshift(x)),x.value}return i}function y(S,w){g(S)===i&&(f.unshift({key:S,value:w}),f.length>p&&f.pop())}function b(){return f}function E(){f=[]}return{get:g,put:y,getEntries:b,clear:E}}var v=function(d,f){return d===f};function l(p){return function(f,g){if(f===null||g===null||f.length!==g.length)return!1;for(var y=f.length,b=0;b<y;b++)if(!p(f[b],g[b]))return!1;return!0}}function h(p,d){var f=typeof d=="object"?d:{equalityCheck:d},g=f.equalityCheck,y=g===void 0?v:g,b=f.maxSize,E=b===void 0?1:b,S=f.resultEqualityCheck,w=l(y),x=E===1?s(w):u(E,w);function P(){var R=x.get(arguments);if(R===i){if(R=p.apply(null,arguments),S){var T=x.getEntries(),A=T.find(function(I){return S(I.value,R)});A&&(R=A.value)}x.put(arguments,R)}return R}return P.clearCache=function(){return x.clear()},P}},75892:(C,c,t)=>{"use strict";t.d(c,{P1:()=>v});var i=t(4033);function s(h){var p=Array.isArray(h[0])?h[0]:h;if(!p.every(function(f){return typeof f=="function"})){var d=p.map(function(f){return typeof f=="function"?"function "+(f.name||"unnamed")+"()":typeof f}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+d+"]")}return p}function u(h){for(var p=arguments.length,d=new Array(p>1?p-1:0),f=1;f<p;f++)d[f-1]=arguments[f];var g=function(){for(var b=arguments.length,E=new Array(b),S=0;S<b;S++)E[S]=arguments[S];var w=0,x,P={memoizeOptions:void 0},R=E.pop();if(typeof R=="object"&&(P=R,R=E.pop()),typeof R!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof R+"]");var T=P,A=T.memoizeOptions,I=A===void 0?d:A,N=Array.isArray(I)?I:[I],K=s(E),_=h.apply(void 0,[function(){return w++,R.apply(null,arguments)}].concat(N)),W=h(function(){for(var re=[],X=K.length,Z=0;Z<X;Z++)re.push(K[Z].apply(null,arguments));return x=_.apply(null,re),x});return Object.assign(W,{resultFunc:R,memoizedResultFunc:_,dependencies:K,lastResult:function(){return x},recomputations:function(){return w},resetRecomputations:function(){return w=0}}),W};return g}var v=u(i.PW),l=function(p,d){if(d===void 0&&(d=v),typeof p!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof p));var f=Object.keys(p),g=d(f.map(function(y){return p[y]}),function(){for(var y=arguments.length,b=new Array(y),E=0;E<y;E++)b[E]=arguments[E];return b.reduce(function(S,w,x){return S[f[x]]=w,S},{})});return g}},1939:(C,c,t)=>{"use strict";t.d(c,{Z:()=>J});var i=function(){if(typeof Map<"u")return Map;function q(L,$){var k=-1;return L.some(function(F,V){return F[0]===$?(k=V,!0):!1}),k}return function(){function L(){this.__entries__=[]}return Object.defineProperty(L.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),L.prototype.get=function($){var k=q(this.__entries__,$),F=this.__entries__[k];return F&&F[1]},L.prototype.set=function($,k){var F=q(this.__entries__,$);~F?this.__entries__[F][1]=k:this.__entries__.push([$,k])},L.prototype.delete=function($){var k=this.__entries__,F=q(k,$);~F&&k.splice(F,1)},L.prototype.has=function($){return!!~q(this.__entries__,$)},L.prototype.clear=function(){this.__entries__.splice(0)},L.prototype.forEach=function($,k){k===void 0&&(k=null);for(var F=0,V=this.__entries__;F<V.length;F++){var pe=V[F];$.call(k,pe[1],pe[0])}},L}()}(),s=typeof window<"u"&&typeof document<"u"&&window.document===document,u=function(){return typeof t.g<"u"&&t.g.Math===Math?t.g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),v=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(u):function(q){return setTimeout(function(){return q(Date.now())},1e3/60)}}(),l=2;function h(q,L){var $=!1,k=!1,F=0;function V(){$&&($=!1,q()),k&&ce()}function pe(){v(V)}function ce(){var G=Date.now();if($){if(G-F<l)return;k=!0}else $=!0,k=!1,setTimeout(pe,L);F=G}return ce}var p=20,d=["top","right","bottom","left","width","height","size","weight"],f=typeof MutationObserver<"u",g=function(){function q(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=h(this.refresh.bind(this),p)}return q.prototype.addObserver=function(L){~this.observers_.indexOf(L)||this.observers_.push(L),this.connected_||this.connect_()},q.prototype.removeObserver=function(L){var $=this.observers_,k=$.indexOf(L);~k&&$.splice(k,1),!$.length&&this.connected_&&this.disconnect_()},q.prototype.refresh=function(){var L=this.updateObservers_();L&&this.refresh()},q.prototype.updateObservers_=function(){var L=this.observers_.filter(function($){return $.gatherActive(),$.hasActive()});return L.forEach(function($){return $.broadcastActive()}),L.length>0},q.prototype.connect_=function(){!s||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),f?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},q.prototype.disconnect_=function(){!s||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},q.prototype.onTransitionEnd_=function(L){var $=L.propertyName,k=$===void 0?"":$,F=d.some(function(V){return!!~k.indexOf(V)});F&&this.refresh()},q.getInstance=function(){return this.instance_||(this.instance_=new q),this.instance_},q.instance_=null,q}(),y=function(q,L){for(var $=0,k=Object.keys(L);$<k.length;$++){var F=k[$];Object.defineProperty(q,F,{value:L[F],enumerable:!1,writable:!1,configurable:!0})}return q},b=function(q){var L=q&&q.ownerDocument&&q.ownerDocument.defaultView;return L||u},E=K(0,0,0,0);function S(q){return parseFloat(q)||0}function w(q){for(var L=[],$=1;$<arguments.length;$++)L[$-1]=arguments[$];return L.reduce(function(k,F){var V=q["border-"+F+"-width"];return k+S(V)},0)}function x(q){for(var L=["top","right","bottom","left"],$={},k=0,F=L;k<F.length;k++){var V=F[k],pe=q["padding-"+V];$[V]=S(pe)}return $}function P(q){var L=q.getBBox();return K(0,0,L.width,L.height)}function R(q){var L=q.clientWidth,$=q.clientHeight;if(!L&&!$)return E;var k=b(q).getComputedStyle(q),F=x(k),V=F.left+F.right,pe=F.top+F.bottom,ce=S(k.width),G=S(k.height);if(k.boxSizing==="border-box"&&(Math.round(ce+V)!==L&&(ce-=w(k,"left","right")+V),Math.round(G+pe)!==$&&(G-=w(k,"top","bottom")+pe)),!A(q)){var te=Math.round(ce+V)-L,ie=Math.round(G+pe)-$;Math.abs(te)!==1&&(ce-=te),Math.abs(ie)!==1&&(G-=ie)}return K(F.left,F.top,ce,G)}var T=function(){return typeof SVGGraphicsElement<"u"?function(q){return q instanceof b(q).SVGGraphicsElement}:function(q){return q instanceof b(q).SVGElement&&typeof q.getBBox=="function"}}();function A(q){return q===b(q).document.documentElement}function I(q){return s?T(q)?P(q):R(q):E}function N(q){var L=q.x,$=q.y,k=q.width,F=q.height,V=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,pe=Object.create(V.prototype);return y(pe,{x:L,y:$,width:k,height:F,top:$,right:L+k,bottom:F+$,left:L}),pe}function K(q,L,$,k){return{x:q,y:L,width:$,height:k}}var _=function(){function q(L){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=K(0,0,0,0),this.target=L}return q.prototype.isActive=function(){var L=I(this.target);return this.contentRect_=L,L.width!==this.broadcastWidth||L.height!==this.broadcastHeight},q.prototype.broadcastRect=function(){var L=this.contentRect_;return this.broadcastWidth=L.width,this.broadcastHeight=L.height,L},q}(),W=function(){function q(L,$){var k=N($);y(this,{target:L,contentRect:k})}return q}(),j=function(){function q(L,$,k){if(this.activeObservations_=[],this.observations_=new i,typeof L!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=L,this.controller_=$,this.callbackCtx_=k}return q.prototype.observe=function(L){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(L instanceof b(L).Element))throw new TypeError('parameter 1 is not of type "Element".');var $=this.observations_;$.has(L)||($.set(L,new _(L)),this.controller_.addObserver(this),this.controller_.refresh())}},q.prototype.unobserve=function(L){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(L instanceof b(L).Element))throw new TypeError('parameter 1 is not of type "Element".');var $=this.observations_;$.has(L)&&($.delete(L),$.size||this.controller_.removeObserver(this))}},q.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},q.prototype.gatherActive=function(){var L=this;this.clearActive(),this.observations_.forEach(function($){$.isActive()&&L.activeObservations_.push($)})},q.prototype.broadcastActive=function(){if(this.hasActive()){var L=this.callbackCtx_,$=this.activeObservations_.map(function(k){return new W(k.target,k.broadcastRect())});this.callback_.call(L,$,L),this.clearActive()}},q.prototype.clearActive=function(){this.activeObservations_.splice(0)},q.prototype.hasActive=function(){return this.activeObservations_.length>0},q}(),re=typeof WeakMap<"u"?new WeakMap:new i,X=function(){function q(L){if(!(this instanceof q))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var $=g.getInstance(),k=new j(L,$,this);re.set(this,k)}return q}();["observe","unobserve","disconnect"].forEach(function(q){X.prototype[q]=function(){var L;return(L=re.get(this))[q].apply(L,arguments)}});var Z=function(){return typeof u.ResizeObserver<"u"?u.ResizeObserver:X}();const J=Z},98778:function(C,c,t){"use strict";var i=this&&this.__createBinding||(Object.create?function(Wi,Ya,qa,se){se===void 0&&(se=qa),Object.defineProperty(Wi,se,{enumerable:!0,get:function(){return Ya[qa]}})}:function(Wi,Ya,qa,se){se===void 0&&(se=qa),Wi[se]=Ya[qa]}),s=this&&this.__exportStar||function(Wi,Ya){for(var qa in Wi)qa!=="default"&&!Object.prototype.hasOwnProperty.call(Ya,qa)&&i(Ya,Wi,qa)};Object.defineProperty(c,"__esModule",{value:!0}),c.interval=c.iif=c.generate=c.fromEventPattern=c.fromEvent=c.from=c.forkJoin=c.empty=c.defer=c.connectable=c.concat=c.combineLatest=c.bindNodeCallback=c.bindCallback=c.UnsubscriptionError=c.TimeoutError=c.SequenceError=c.ObjectUnsubscribedError=c.NotFoundError=c.EmptyError=c.ArgumentOutOfRangeError=c.firstValueFrom=c.lastValueFrom=c.isObservable=c.identity=c.noop=c.pipe=c.NotificationKind=c.Notification=c.Subscriber=c.Subscription=c.Scheduler=c.VirtualAction=c.VirtualTimeScheduler=c.animationFrameScheduler=c.animationFrame=c.queueScheduler=c.queue=c.asyncScheduler=c.async=c.asapScheduler=c.asap=c.AsyncSubject=c.ReplaySubject=c.BehaviorSubject=c.Subject=c.animationFrames=c.observable=c.ConnectableObservable=c.Observable=void 0,c.filter=c.expand=c.exhaustMap=c.exhaustAll=c.exhaust=c.every=c.endWith=c.elementAt=c.distinctUntilKeyChanged=c.distinctUntilChanged=c.distinct=c.dematerialize=c.delayWhen=c.delay=c.defaultIfEmpty=c.debounceTime=c.debounce=c.count=c.connect=c.concatWith=c.concatMapTo=c.concatMap=c.concatAll=c.combineLatestWith=c.combineLatestAll=c.combineAll=c.catchError=c.bufferWhen=c.bufferToggle=c.bufferTime=c.bufferCount=c.buffer=c.auditTime=c.audit=c.config=c.NEVER=c.EMPTY=c.scheduled=c.zip=c.using=c.timer=c.throwError=c.range=c.race=c.partition=c.pairs=c.onErrorResumeNext=c.of=c.never=c.merge=void 0,c.switchMap=c.switchAll=c.subscribeOn=c.startWith=c.skipWhile=c.skipUntil=c.skipLast=c.skip=c.single=c.shareReplay=c.share=c.sequenceEqual=c.scan=c.sampleTime=c.sample=c.refCount=c.retryWhen=c.retry=c.repeatWhen=c.repeat=c.reduce=c.raceWith=c.publishReplay=c.publishLast=c.publishBehavior=c.publish=c.pluck=c.pairwise=c.onErrorResumeNextWith=c.observeOn=c.multicast=c.min=c.mergeWith=c.mergeScan=c.mergeMapTo=c.mergeMap=c.flatMap=c.mergeAll=c.max=c.materialize=c.mapTo=c.map=c.last=c.isEmpty=c.ignoreElements=c.groupBy=c.first=c.findIndex=c.find=c.finalize=void 0,c.zipWith=c.zipAll=c.withLatestFrom=c.windowWhen=c.windowToggle=c.windowTime=c.windowCount=c.window=c.toArray=c.timestamp=c.timeoutWith=c.timeout=c.timeInterval=c.throwIfEmpty=c.throttleTime=c.throttle=c.tap=c.takeWhile=c.takeUntil=c.takeLast=c.take=c.switchScan=c.switchMapTo=void 0;var u=t(8233);Object.defineProperty(c,"Observable",{enumerable:!0,get:function(){return u.Observable}});var v=t(79674);Object.defineProperty(c,"ConnectableObservable",{enumerable:!0,get:function(){return v.ConnectableObservable}});var l=t(62517);Object.defineProperty(c,"observable",{enumerable:!0,get:function(){return l.observable}});var h=t(17202);Object.defineProperty(c,"animationFrames",{enumerable:!0,get:function(){return h.animationFrames}});var p=t(51163);Object.defineProperty(c,"Subject",{enumerable:!0,get:function(){return p.Subject}});var d=t(85709);Object.defineProperty(c,"BehaviorSubject",{enumerable:!0,get:function(){return d.BehaviorSubject}});var f=t(56146);Object.defineProperty(c,"ReplaySubject",{enumerable:!0,get:function(){return f.ReplaySubject}});var g=t(9632);Object.defineProperty(c,"AsyncSubject",{enumerable:!0,get:function(){return g.AsyncSubject}});var y=t(72770);Object.defineProperty(c,"asap",{enumerable:!0,get:function(){return y.asap}}),Object.defineProperty(c,"asapScheduler",{enumerable:!0,get:function(){return y.asapScheduler}});var b=t(62054);Object.defineProperty(c,"async",{enumerable:!0,get:function(){return b.async}}),Object.defineProperty(c,"asyncScheduler",{enumerable:!0,get:function(){return b.asyncScheduler}});var E=t(61362);Object.defineProperty(c,"queue",{enumerable:!0,get:function(){return E.queue}}),Object.defineProperty(c,"queueScheduler",{enumerable:!0,get:function(){return E.queueScheduler}});var S=t(9523);Object.defineProperty(c,"animationFrame",{enumerable:!0,get:function(){return S.animationFrame}}),Object.defineProperty(c,"animationFrameScheduler",{enumerable:!0,get:function(){return S.animationFrameScheduler}});var w=t(46851);Object.defineProperty(c,"VirtualTimeScheduler",{enumerable:!0,get:function(){return w.VirtualTimeScheduler}}),Object.defineProperty(c,"VirtualAction",{enumerable:!0,get:function(){return w.VirtualAction}});var x=t(83909);Object.defineProperty(c,"Scheduler",{enumerable:!0,get:function(){return x.Scheduler}});var P=t(33834);Object.defineProperty(c,"Subscription",{enumerable:!0,get:function(){return P.Subscription}});var R=t(23901);Object.defineProperty(c,"Subscriber",{enumerable:!0,get:function(){return R.Subscriber}});var T=t(80807);Object.defineProperty(c,"Notification",{enumerable:!0,get:function(){return T.Notification}}),Object.defineProperty(c,"NotificationKind",{enumerable:!0,get:function(){return T.NotificationKind}});var A=t(71324);Object.defineProperty(c,"pipe",{enumerable:!0,get:function(){return A.pipe}});var I=t(18433);Object.defineProperty(c,"noop",{enumerable:!0,get:function(){return I.noop}});var N=t(39597);Object.defineProperty(c,"identity",{enumerable:!0,get:function(){return N.identity}});var K=t(71618);Object.defineProperty(c,"isObservable",{enumerable:!0,get:function(){return K.isObservable}});var _=t(97849);Object.defineProperty(c,"lastValueFrom",{enumerable:!0,get:function(){return _.lastValueFrom}});var W=t(27059);Object.defineProperty(c,"firstValueFrom",{enumerable:!0,get:function(){return W.firstValueFrom}});var j=t(44467);Object.defineProperty(c,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return j.ArgumentOutOfRangeError}});var re=t(73136);Object.defineProperty(c,"EmptyError",{enumerable:!0,get:function(){return re.EmptyError}});var X=t(37977);Object.defineProperty(c,"NotFoundError",{enumerable:!0,get:function(){return X.NotFoundError}});var Z=t(19023);Object.defineProperty(c,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return Z.ObjectUnsubscribedError}});var J=t(17930);Object.defineProperty(c,"SequenceError",{enumerable:!0,get:function(){return J.SequenceError}});var q=t(40096);Object.defineProperty(c,"TimeoutError",{enumerable:!0,get:function(){return q.TimeoutError}});var L=t(64219);Object.defineProperty(c,"UnsubscriptionError",{enumerable:!0,get:function(){return L.UnsubscriptionError}});var $=t(24572);Object.defineProperty(c,"bindCallback",{enumerable:!0,get:function(){return $.bindCallback}});var k=t(61672);Object.defineProperty(c,"bindNodeCallback",{enumerable:!0,get:function(){return k.bindNodeCallback}});var F=t(59824);Object.defineProperty(c,"combineLatest",{enumerable:!0,get:function(){return F.combineLatest}});var V=t(62669);Object.defineProperty(c,"concat",{enumerable:!0,get:function(){return V.concat}});var pe=t(94476);Object.defineProperty(c,"connectable",{enumerable:!0,get:function(){return pe.connectable}});var ce=t(79781);Object.defineProperty(c,"defer",{enumerable:!0,get:function(){return ce.defer}});var G=t(88391);Object.defineProperty(c,"empty",{enumerable:!0,get:function(){return G.empty}});var te=t(2129);Object.defineProperty(c,"forkJoin",{enumerable:!0,get:function(){return te.forkJoin}});var ie=t(28267);Object.defineProperty(c,"from",{enumerable:!0,get:function(){return ie.from}});var fe=t(96542);Object.defineProperty(c,"fromEvent",{enumerable:!0,get:function(){return fe.fromEvent}});var Se=t(21011);Object.defineProperty(c,"fromEventPattern",{enumerable:!0,get:function(){return Se.fromEventPattern}});var he=t(67031);Object.defineProperty(c,"generate",{enumerable:!0,get:function(){return he.generate}});var me=t(18903);Object.defineProperty(c,"iif",{enumerable:!0,get:function(){return me.iif}});var _e=t(89254);Object.defineProperty(c,"interval",{enumerable:!0,get:function(){return _e.interval}});var we=t(51031);Object.defineProperty(c,"merge",{enumerable:!0,get:function(){return we.merge}});var Ge=t(61612);Object.defineProperty(c,"never",{enumerable:!0,get:function(){return Ge.never}});var ht=t(61692);Object.defineProperty(c,"of",{enumerable:!0,get:function(){return ht.of}});var nt=t(87283);Object.defineProperty(c,"onErrorResumeNext",{enumerable:!0,get:function(){return nt.onErrorResumeNext}});var Re=t(55776);Object.defineProperty(c,"pairs",{enumerable:!0,get:function(){return Re.pairs}});var ue=t(60547);Object.defineProperty(c,"partition",{enumerable:!0,get:function(){return ue.partition}});var ae=t(68761);Object.defineProperty(c,"race",{enumerable:!0,get:function(){return ae.race}});var ve=t(43885);Object.defineProperty(c,"range",{enumerable:!0,get:function(){return ve.range}});var Me=t(41721);Object.defineProperty(c,"throwError",{enumerable:!0,get:function(){return Me.throwError}});var Ye=t(66564);Object.defineProperty(c,"timer",{enumerable:!0,get:function(){return Ye.timer}});var qe=t(46761);Object.defineProperty(c,"using",{enumerable:!0,get:function(){return qe.using}});var At=t(12990);Object.defineProperty(c,"zip",{enumerable:!0,get:function(){return At.zip}});var It=t(2144);Object.defineProperty(c,"scheduled",{enumerable:!0,get:function(){return It.scheduled}});var Ce=t(88391);Object.defineProperty(c,"EMPTY",{enumerable:!0,get:function(){return Ce.EMPTY}});var Ae=t(61612);Object.defineProperty(c,"NEVER",{enumerable:!0,get:function(){return Ae.NEVER}}),s(t(2327),c);var $e=t(66705);Object.defineProperty(c,"config",{enumerable:!0,get:function(){return $e.config}});var tt=t(22165);Object.defineProperty(c,"audit",{enumerable:!0,get:function(){return tt.audit}});var ke=t(15605);Object.defineProperty(c,"auditTime",{enumerable:!0,get:function(){return ke.auditTime}});var Oe=t(59759);Object.defineProperty(c,"buffer",{enumerable:!0,get:function(){return Oe.buffer}});var je=t(88742);Object.defineProperty(c,"bufferCount",{enumerable:!0,get:function(){return je.bufferCount}});var Et=t(40365);Object.defineProperty(c,"bufferTime",{enumerable:!0,get:function(){return Et.bufferTime}});var ct=t(25583);Object.defineProperty(c,"bufferToggle",{enumerable:!0,get:function(){return ct.bufferToggle}});var ut=t(30946);Object.defineProperty(c,"bufferWhen",{enumerable:!0,get:function(){return ut.bufferWhen}});var Ne=t(84438);Object.defineProperty(c,"catchError",{enumerable:!0,get:function(){return Ne.catchError}});var mt=t(44722);Object.defineProperty(c,"combineAll",{enumerable:!0,get:function(){return mt.combineAll}});var bt=t(90808);Object.defineProperty(c,"combineLatestAll",{enumerable:!0,get:function(){return bt.combineLatestAll}});var Gt=t(30643);Object.defineProperty(c,"combineLatestWith",{enumerable:!0,get:function(){return Gt.combineLatestWith}});var hn=t(63999);Object.defineProperty(c,"concatAll",{enumerable:!0,get:function(){return hn.concatAll}});var Yt=t(12895);Object.defineProperty(c,"concatMap",{enumerable:!0,get:function(){return Yt.concatMap}});var Bt=t(9849);Object.defineProperty(c,"concatMapTo",{enumerable:!0,get:function(){return Bt.concatMapTo}});var Lt=t(12148);Object.defineProperty(c,"concatWith",{enumerable:!0,get:function(){return Lt.concatWith}});var zt=t(16806);Object.defineProperty(c,"connect",{enumerable:!0,get:function(){return zt.connect}});var Kt=t(5773);Object.defineProperty(c,"count",{enumerable:!0,get:function(){return Kt.count}});var vt=t(71978);Object.defineProperty(c,"debounce",{enumerable:!0,get:function(){return vt.debounce}});var Ve=t(1827);Object.defineProperty(c,"debounceTime",{enumerable:!0,get:function(){return Ve.debounceTime}});var lt=t(96310);Object.defineProperty(c,"defaultIfEmpty",{enumerable:!0,get:function(){return lt.defaultIfEmpty}});var at=t(13315);Object.defineProperty(c,"delay",{enumerable:!0,get:function(){return at.delay}});var Xt=t(76316);Object.defineProperty(c,"delayWhen",{enumerable:!0,get:function(){return Xt.delayWhen}});var rt=t(49185);Object.defineProperty(c,"dematerialize",{enumerable:!0,get:function(){return rt.dematerialize}});var Rt=t(89641);Object.defineProperty(c,"distinct",{enumerable:!0,get:function(){return Rt.distinct}});var rn=t(65784);Object.defineProperty(c,"distinctUntilChanged",{enumerable:!0,get:function(){return rn.distinctUntilChanged}});var sn=t(85953);Object.defineProperty(c,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return sn.distinctUntilKeyChanged}});var Jn=t(20822);Object.defineProperty(c,"elementAt",{enumerable:!0,get:function(){return Jn.elementAt}});var ze=t(98389);Object.defineProperty(c,"endWith",{enumerable:!0,get:function(){return ze.endWith}});var st=t(95915);Object.defineProperty(c,"every",{enumerable:!0,get:function(){return st.every}});var en=t(72846);Object.defineProperty(c,"exhaust",{enumerable:!0,get:function(){return en.exhaust}});var wt=t(72711);Object.defineProperty(c,"exhaustAll",{enumerable:!0,get:function(){return wt.exhaustAll}});var Ke=t(92757);Object.defineProperty(c,"exhaustMap",{enumerable:!0,get:function(){return Ke.exhaustMap}});var Ut=t(33294);Object.defineProperty(c,"expand",{enumerable:!0,get:function(){return Ut.expand}});var on=t(12965);Object.defineProperty(c,"filter",{enumerable:!0,get:function(){return on.filter}});var Tn=t(86248);Object.defineProperty(c,"finalize",{enumerable:!0,get:function(){return Tn.finalize}});var An=t(87651);Object.defineProperty(c,"find",{enumerable:!0,get:function(){return An.find}});var Zt=t(54343);Object.defineProperty(c,"findIndex",{enumerable:!0,get:function(){return Zt.findIndex}});var ot=t(73285);Object.defineProperty(c,"first",{enumerable:!0,get:function(){return ot.first}});var We=t(14474);Object.defineProperty(c,"groupBy",{enumerable:!0,get:function(){return We.groupBy}});var Ft=t(53848);Object.defineProperty(c,"ignoreElements",{enumerable:!0,get:function(){return Ft.ignoreElements}});var it=t(95178);Object.defineProperty(c,"isEmpty",{enumerable:!0,get:function(){return it.isEmpty}});var qt=t(33805);Object.defineProperty(c,"last",{enumerable:!0,get:function(){return qt.last}});var vn=t(75373);Object.defineProperty(c,"map",{enumerable:!0,get:function(){return vn.map}});var fn=t(99891);Object.defineProperty(c,"mapTo",{enumerable:!0,get:function(){return fn.mapTo}});var Tt=t(14207);Object.defineProperty(c,"materialize",{enumerable:!0,get:function(){return Tt.materialize}});var dn=t(31239);Object.defineProperty(c,"max",{enumerable:!0,get:function(){return dn.max}});var mn=t(40978);Object.defineProperty(c,"mergeAll",{enumerable:!0,get:function(){return mn.mergeAll}});var Kn=t(18634);Object.defineProperty(c,"flatMap",{enumerable:!0,get:function(){return Kn.flatMap}});var Dn=t(82200);Object.defineProperty(c,"mergeMap",{enumerable:!0,get:function(){return Dn.mergeMap}});var Vn=t(84968);Object.defineProperty(c,"mergeMapTo",{enumerable:!0,get:function(){return Vn.mergeMapTo}});var or=t(45176);Object.defineProperty(c,"mergeScan",{enumerable:!0,get:function(){return or.mergeScan}});var Qr=t(86758);Object.defineProperty(c,"mergeWith",{enumerable:!0,get:function(){return Qr.mergeWith}});var ni=t(9230);Object.defineProperty(c,"min",{enumerable:!0,get:function(){return ni.min}});var yr=t(25060);Object.defineProperty(c,"multicast",{enumerable:!0,get:function(){return yr.multicast}});var si=t(8360);Object.defineProperty(c,"observeOn",{enumerable:!0,get:function(){return si.observeOn}});var Yr=t(18865);Object.defineProperty(c,"onErrorResumeNextWith",{enumerable:!0,get:function(){return Yr.onErrorResumeNextWith}});var Ci=t(52544);Object.defineProperty(c,"pairwise",{enumerable:!0,get:function(){return Ci.pairwise}});var Ni=t(71189);Object.defineProperty(c,"pluck",{enumerable:!0,get:function(){return Ni.pluck}});var fa=t(26108);Object.defineProperty(c,"publish",{enumerable:!0,get:function(){return fa.publish}});var ha=t(11714);Object.defineProperty(c,"publishBehavior",{enumerable:!0,get:function(){return ha.publishBehavior}});var Ca=t(43729);Object.defineProperty(c,"publishLast",{enumerable:!0,get:function(){return Ca.publishLast}});var li=t(78277);Object.defineProperty(c,"publishReplay",{enumerable:!0,get:function(){return li.publishReplay}});var la=t(58407);Object.defineProperty(c,"raceWith",{enumerable:!0,get:function(){return la.raceWith}});var Oa=t(11097);Object.defineProperty(c,"reduce",{enumerable:!0,get:function(){return Oa.reduce}});var wa=t(44708);Object.defineProperty(c,"repeat",{enumerable:!0,get:function(){return wa.repeat}});var vo=t(64716);Object.defineProperty(c,"repeatWhen",{enumerable:!0,get:function(){return vo.repeatWhen}});var Qn=t(71411);Object.defineProperty(c,"retry",{enumerable:!0,get:function(){return Qn.retry}});var _r=t(96486);Object.defineProperty(c,"retryWhen",{enumerable:!0,get:function(){return _r.retryWhen}});var $r=t(45886);Object.defineProperty(c,"refCount",{enumerable:!0,get:function(){return $r.refCount}});var Ti=t(46682);Object.defineProperty(c,"sample",{enumerable:!0,get:function(){return Ti.sample}});var xt=t(1150);Object.defineProperty(c,"sampleTime",{enumerable:!0,get:function(){return xt.sampleTime}});var On=t(96448);Object.defineProperty(c,"scan",{enumerable:!0,get:function(){return On.scan}});var Zn=t(21146);Object.defineProperty(c,"sequenceEqual",{enumerable:!0,get:function(){return Zn.sequenceEqual}});var Ur=t(14062);Object.defineProperty(c,"share",{enumerable:!0,get:function(){return Ur.share}});var En=t(11979);Object.defineProperty(c,"shareReplay",{enumerable:!0,get:function(){return En.shareReplay}});var ln=t(36452);Object.defineProperty(c,"single",{enumerable:!0,get:function(){return ln.single}});var jn=t(48530);Object.defineProperty(c,"skip",{enumerable:!0,get:function(){return jn.skip}});var rr=t(99565);Object.defineProperty(c,"skipLast",{enumerable:!0,get:function(){return rr.skipLast}});var Mr=t(17114);Object.defineProperty(c,"skipUntil",{enumerable:!0,get:function(){return Mr.skipUntil}});var Ir=t(34816);Object.defineProperty(c,"skipWhile",{enumerable:!0,get:function(){return Ir.skipWhile}});var Zr=t(57730);Object.defineProperty(c,"startWith",{enumerable:!0,get:function(){return Zr.startWith}});var lr=t(25557);Object.defineProperty(c,"subscribeOn",{enumerable:!0,get:function(){return lr.subscribeOn}});var Jr=t(82715);Object.defineProperty(c,"switchAll",{enumerable:!0,get:function(){return Jr.switchAll}});var pi=t(53647);Object.defineProperty(c,"switchMap",{enumerable:!0,get:function(){return pi.switchMap}});var Ri=t(3314);Object.defineProperty(c,"switchMapTo",{enumerable:!0,get:function(){return Ri.switchMapTo}});var Ki=t(93365);Object.defineProperty(c,"switchScan",{enumerable:!0,get:function(){return Ki.switchScan}});var ia=t(24543);Object.defineProperty(c,"take",{enumerable:!0,get:function(){return ia.take}});var Da=t(82856);Object.defineProperty(c,"takeLast",{enumerable:!0,get:function(){return Da.takeLast}});var to=t(30632);Object.defineProperty(c,"takeUntil",{enumerable:!0,get:function(){return to.takeUntil}});var ao=t(27559);Object.defineProperty(c,"takeWhile",{enumerable:!0,get:function(){return ao.takeWhile}});var Bo=t(96708);Object.defineProperty(c,"tap",{enumerable:!0,get:function(){return Bo.tap}});var jo=t(24102);Object.defineProperty(c,"throttle",{enumerable:!0,get:function(){return jo.throttle}});var Jo=t(29511);Object.defineProperty(c,"throttleTime",{enumerable:!0,get:function(){return Jo.throttleTime}});var Go=t(71910);Object.defineProperty(c,"throwIfEmpty",{enumerable:!0,get:function(){return Go.throwIfEmpty}});var wr=t(14712);Object.defineProperty(c,"timeInterval",{enumerable:!0,get:function(){return wr.timeInterval}});var qi=t(40096);Object.defineProperty(c,"timeout",{enumerable:!0,get:function(){return qi.timeout}});var ja=t(14784);Object.defineProperty(c,"timeoutWith",{enumerable:!0,get:function(){return ja.timeoutWith}});var uo=t(11333);Object.defineProperty(c,"timestamp",{enumerable:!0,get:function(){return uo.timestamp}});var wi=t(45120);Object.defineProperty(c,"toArray",{enumerable:!0,get:function(){return wi.toArray}});var ai=t(20319);Object.defineProperty(c,"window",{enumerable:!0,get:function(){return ai.window}});var za=t(25327);Object.defineProperty(c,"windowCount",{enumerable:!0,get:function(){return za.windowCount}});var Mt=t(52727);Object.defineProperty(c,"windowTime",{enumerable:!0,get:function(){return Mt.windowTime}});var Gn=t(43292);Object.defineProperty(c,"windowToggle",{enumerable:!0,get:function(){return Gn.windowToggle}});var qn=t(97241);Object.defineProperty(c,"windowWhen",{enumerable:!0,get:function(){return qn.windowWhen}});var Fr=t(67477);Object.defineProperty(c,"withLatestFrom",{enumerable:!0,get:function(){return Fr.withLatestFrom}});var Ei=t(68802);Object.defineProperty(c,"zipAll",{enumerable:!0,get:function(){return Ei.zipAll}});var ii=t(89404);Object.defineProperty(c,"zipWith",{enumerable:!0,get:function(){return ii.zipWith}})},9632:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var v=function(l,h){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(p[f]=d[f])},v(l,h)};return function(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");v(l,h);function p(){this.constructor=l}l.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AsyncSubject=void 0;var s=t(51163),u=function(v){i(l,v);function l(){var h=v!==null&&v.apply(this,arguments)||this;return h._value=null,h._hasValue=!1,h._isComplete=!1,h}return l.prototype._checkFinalizedStatuses=function(h){var p=this,d=p.hasError,f=p._hasValue,g=p._value,y=p.thrownError,b=p.isStopped,E=p._isComplete;d?h.error(y):(b||E)&&(f&&h.next(g),h.complete())},l.prototype.next=function(h){this.isStopped||(this._value=h,this._hasValue=!0)},l.prototype.complete=function(){var h=this,p=h._hasValue,d=h._value,f=h._isComplete;f||(this._isComplete=!0,p&&v.prototype.next.call(this,d),v.prototype.complete.call(this))},l}(s.Subject);c.AsyncSubject=u},85709:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var v=function(l,h){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(p[f]=d[f])},v(l,h)};return function(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");v(l,h);function p(){this.constructor=l}l.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.BehaviorSubject=void 0;var s=t(51163),u=function(v){i(l,v);function l(h){var p=v.call(this)||this;return p._value=h,p}return Object.defineProperty(l.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),l.prototype._subscribe=function(h){var p=v.prototype._subscribe.call(this,h);return!p.closed&&h.next(this._value),p},l.prototype.getValue=function(){var h=this,p=h.hasError,d=h.thrownError,f=h._value;if(p)throw d;return this._throwIfClosed(),f},l.prototype.next=function(h){v.prototype.next.call(this,this._value=h)},l}(s.Subject);c.BehaviorSubject=u},80807:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.observeNotification=c.Notification=c.NotificationKind=void 0;var i=t(88391),s=t(61692),u=t(41721),v=t(37546),l;(function(d){d.NEXT="N",d.ERROR="E",d.COMPLETE="C"})(l=c.NotificationKind||(c.NotificationKind={}));var h=function(){function d(f,g,y){this.kind=f,this.value=g,this.error=y,this.hasValue=f==="N"}return d.prototype.observe=function(f){return p(this,f)},d.prototype.do=function(f,g,y){var b=this,E=b.kind,S=b.value,w=b.error;return E==="N"?f?.(S):E==="E"?g?.(w):y?.()},d.prototype.accept=function(f,g,y){var b;return v.isFunction((b=f)===null||b===void 0?void 0:b.next)?this.observe(f):this.do(f,g,y)},d.prototype.toObservable=function(){var f=this,g=f.kind,y=f.value,b=f.error,E=g==="N"?s.of(y):g==="E"?u.throwError(function(){return b}):g==="C"?i.EMPTY:0;if(!E)throw new TypeError("Unexpected notification kind "+g);return E},d.createNext=function(f){return new d("N",f)},d.createError=function(f){return new d("E",void 0,f)},d.createComplete=function(){return d.completeNotification},d.completeNotification=new d("C"),d}();c.Notification=h;function p(d,f){var g,y,b,E=d,S=E.kind,w=E.value,x=E.error;if(typeof S!="string")throw new TypeError('Invalid notification, missing "kind"');S==="N"?(g=f.next)===null||g===void 0||g.call(f,w):S==="E"?(y=f.error)===null||y===void 0||y.call(f,x):(b=f.complete)===null||b===void 0||b.call(f)}c.observeNotification=p},8760:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.createNotification=c.nextNotification=c.errorNotification=c.COMPLETE_NOTIFICATION=void 0,c.COMPLETE_NOTIFICATION=function(){return s("C",void 0,void 0)}();function t(u){return s("E",void 0,u)}c.errorNotification=t;function i(u){return s("N",u,void 0)}c.nextNotification=i;function s(u,v,l){return{kind:u,value:v,error:l}}c.createNotification=s},8233:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Observable=void 0;var i=t(23901),s=t(33834),u=t(62517),v=t(71324),l=t(66705),h=t(37546),p=t(55056),d=function(){function b(E){E&&(this._subscribe=E)}return b.prototype.lift=function(E){var S=new b;return S.source=this,S.operator=E,S},b.prototype.subscribe=function(E,S,w){var x=this,P=y(E)?E:new i.SafeSubscriber(E,S,w);return p.errorContext(function(){var R=x,T=R.operator,A=R.source;P.add(T?T.call(P,A):A?x._subscribe(P):x._trySubscribe(P))}),P},b.prototype._trySubscribe=function(E){try{return this._subscribe(E)}catch(S){E.error(S)}},b.prototype.forEach=function(E,S){var w=this;return S=f(S),new S(function(x,P){var R=new i.SafeSubscriber({next:function(T){try{E(T)}catch(A){P(A),R.unsubscribe()}},error:P,complete:x});w.subscribe(R)})},b.prototype._subscribe=function(E){var S;return(S=this.source)===null||S===void 0?void 0:S.subscribe(E)},b.prototype[u.observable]=function(){return this},b.prototype.pipe=function(){for(var E=[],S=0;S<arguments.length;S++)E[S]=arguments[S];return v.pipeFromArray(E)(this)},b.prototype.toPromise=function(E){var S=this;return E=f(E),new E(function(w,x){var P;S.subscribe(function(R){return P=R},function(R){return x(R)},function(){return w(P)})})},b.create=function(E){return new b(E)},b}();c.Observable=d;function f(b){var E;return(E=b??l.config.Promise)!==null&&E!==void 0?E:Promise}function g(b){return b&&h.isFunction(b.next)&&h.isFunction(b.error)&&h.isFunction(b.complete)}function y(b){return b&&b instanceof i.Subscriber||g(b)&&s.isSubscription(b)}},56146:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var l=function(h,p){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(d[g]=f[g])},l(h,p)};return function(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");l(h,p);function d(){this.constructor=h}h.prototype=p===null?Object.create(p):(d.prototype=p.prototype,new d)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.ReplaySubject=void 0;var s=t(51163),u=t(85033),v=function(l){i(h,l);function h(p,d,f){p===void 0&&(p=1/0),d===void 0&&(d=1/0),f===void 0&&(f=u.dateTimestampProvider);var g=l.call(this)||this;return g._bufferSize=p,g._windowTime=d,g._timestampProvider=f,g._buffer=[],g._infiniteTimeWindow=!0,g._infiniteTimeWindow=d===1/0,g._bufferSize=Math.max(1,p),g._windowTime=Math.max(1,d),g}return h.prototype.next=function(p){var d=this,f=d.isStopped,g=d._buffer,y=d._infiniteTimeWindow,b=d._timestampProvider,E=d._windowTime;f||(g.push(p),!y&&g.push(b.now()+E)),this._trimBuffer(),l.prototype.next.call(this,p)},h.prototype._subscribe=function(p){this._throwIfClosed(),this._trimBuffer();for(var d=this._innerSubscribe(p),f=this,g=f._infiniteTimeWindow,y=f._buffer,b=y.slice(),E=0;E<b.length&&!p.closed;E+=g?1:2)p.next(b[E]);return this._checkFinalizedStatuses(p),d},h.prototype._trimBuffer=function(){var p=this,d=p._bufferSize,f=p._timestampProvider,g=p._buffer,y=p._infiniteTimeWindow,b=(y?1:2)*d;if(d<1/0&&b<g.length&&g.splice(0,g.length-b),!y){for(var E=f.now(),S=0,w=1;w<g.length&&g[w]<=E;w+=2)S=w;S&&g.splice(0,S+1)}},h}(s.Subject);c.ReplaySubject=v},83909:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Scheduler=void 0;var i=t(85033),s=function(){function u(v,l){l===void 0&&(l=u.now),this.schedulerActionCtor=v,this.now=l}return u.prototype.schedule=function(v,l,h){return l===void 0&&(l=0),new this.schedulerActionCtor(this,v).schedule(h,l)},u.now=i.dateTimestampProvider.now,u}();c.Scheduler=s},51163:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var g=function(y,b){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var w in S)Object.prototype.hasOwnProperty.call(S,w)&&(E[w]=S[w])},g(y,b)};return function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");g(y,b);function E(){this.constructor=y}y.prototype=b===null?Object.create(b):(E.prototype=b.prototype,new E)}}(),s=this&&this.__values||function(g){var y=typeof Symbol=="function"&&Symbol.iterator,b=y&&g[y],E=0;if(b)return b.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&E>=g.length&&(g=void 0),{value:g&&g[E++],done:!g}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.AnonymousSubject=c.Subject=void 0;var u=t(8233),v=t(33834),l=t(19023),h=t(59586),p=t(55056),d=function(g){i(y,g);function y(){var b=g.call(this)||this;return b.closed=!1,b.currentObservers=null,b.observers=[],b.isStopped=!1,b.hasError=!1,b.thrownError=null,b}return y.prototype.lift=function(b){var E=new f(this,this);return E.operator=b,E},y.prototype._throwIfClosed=function(){if(this.closed)throw new l.ObjectUnsubscribedError},y.prototype.next=function(b){var E=this;p.errorContext(function(){var S,w;if(E._throwIfClosed(),!E.isStopped){E.currentObservers||(E.currentObservers=Array.from(E.observers));try{for(var x=s(E.currentObservers),P=x.next();!P.done;P=x.next()){var R=P.value;R.next(b)}}catch(T){S={error:T}}finally{try{P&&!P.done&&(w=x.return)&&w.call(x)}finally{if(S)throw S.error}}}})},y.prototype.error=function(b){var E=this;p.errorContext(function(){if(E._throwIfClosed(),!E.isStopped){E.hasError=E.isStopped=!0,E.thrownError=b;for(var S=E.observers;S.length;)S.shift().error(b)}})},y.prototype.complete=function(){var b=this;p.errorContext(function(){if(b._throwIfClosed(),!b.isStopped){b.isStopped=!0;for(var E=b.observers;E.length;)E.shift().complete()}})},y.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(y.prototype,"observed",{get:function(){var b;return((b=this.observers)===null||b===void 0?void 0:b.length)>0},enumerable:!1,configurable:!0}),y.prototype._trySubscribe=function(b){return this._throwIfClosed(),g.prototype._trySubscribe.call(this,b)},y.prototype._subscribe=function(b){return this._throwIfClosed(),this._checkFinalizedStatuses(b),this._innerSubscribe(b)},y.prototype._innerSubscribe=function(b){var E=this,S=this,w=S.hasError,x=S.isStopped,P=S.observers;return w||x?v.EMPTY_SUBSCRIPTION:(this.currentObservers=null,P.push(b),new v.Subscription(function(){E.currentObservers=null,h.arrRemove(P,b)}))},y.prototype._checkFinalizedStatuses=function(b){var E=this,S=E.hasError,w=E.thrownError,x=E.isStopped;S?b.error(w):x&&b.complete()},y.prototype.asObservable=function(){var b=new u.Observable;return b.source=this,b},y.create=function(b,E){return new f(b,E)},y}(u.Observable);c.Subject=d;var f=function(g){i(y,g);function y(b,E){var S=g.call(this)||this;return S.destination=b,S.source=E,S}return y.prototype.next=function(b){var E,S;(S=(E=this.destination)===null||E===void 0?void 0:E.next)===null||S===void 0||S.call(E,b)},y.prototype.error=function(b){var E,S;(S=(E=this.destination)===null||E===void 0?void 0:E.error)===null||S===void 0||S.call(E,b)},y.prototype.complete=function(){var b,E;(E=(b=this.destination)===null||b===void 0?void 0:b.complete)===null||E===void 0||E.call(b)},y.prototype._subscribe=function(b){var E,S;return(S=(E=this.source)===null||E===void 0?void 0:E.subscribe(b))!==null&&S!==void 0?S:v.EMPTY_SUBSCRIPTION},y}(d);c.AnonymousSubject=f},23901:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var R=function(T,A){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,N){I.__proto__=N}||function(I,N){for(var K in N)Object.prototype.hasOwnProperty.call(N,K)&&(I[K]=N[K])},R(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");R(T,A);function I(){this.constructor=T}T.prototype=A===null?Object.create(A):(I.prototype=A.prototype,new I)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.EMPTY_OBSERVER=c.SafeSubscriber=c.Subscriber=void 0;var s=t(37546),u=t(33834),v=t(66705),l=t(20923),h=t(18433),p=t(8760),d=t(21977),f=t(55056),g=function(R){i(T,R);function T(A){var I=R.call(this)||this;return I.isStopped=!1,A?(I.destination=A,u.isSubscription(A)&&A.add(I)):I.destination=c.EMPTY_OBSERVER,I}return T.create=function(A,I,N){return new S(A,I,N)},T.prototype.next=function(A){this.isStopped?P(p.nextNotification(A),this):this._next(A)},T.prototype.error=function(A){this.isStopped?P(p.errorNotification(A),this):(this.isStopped=!0,this._error(A))},T.prototype.complete=function(){this.isStopped?P(p.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},T.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,R.prototype.unsubscribe.call(this),this.destination=null)},T.prototype._next=function(A){this.destination.next(A)},T.prototype._error=function(A){try{this.destination.error(A)}finally{this.unsubscribe()}},T.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},T}(u.Subscription);c.Subscriber=g;var y=Function.prototype.bind;function b(R,T){return y.call(R,T)}var E=function(){function R(T){this.partialObserver=T}return R.prototype.next=function(T){var A=this.partialObserver;if(A.next)try{A.next(T)}catch(I){w(I)}},R.prototype.error=function(T){var A=this.partialObserver;if(A.error)try{A.error(T)}catch(I){w(I)}else w(T)},R.prototype.complete=function(){var T=this.partialObserver;if(T.complete)try{T.complete()}catch(A){w(A)}},R}(),S=function(R){i(T,R);function T(A,I,N){var K=R.call(this)||this,_;if(s.isFunction(A)||!A)_={next:A??void 0,error:I??void 0,complete:N??void 0};else{var W;K&&v.config.useDeprecatedNextContext?(W=Object.create(A),W.unsubscribe=function(){return K.unsubscribe()},_={next:A.next&&b(A.next,W),error:A.error&&b(A.error,W),complete:A.complete&&b(A.complete,W)}):_=A}return K.destination=new E(_),K}return T}(g);c.SafeSubscriber=S;function w(R){v.config.useDeprecatedSynchronousErrorHandling?f.captureError(R):l.reportUnhandledError(R)}function x(R){throw R}function P(R,T){var A=v.config.onStoppedNotification;A&&d.timeoutProvider.setTimeout(function(){return A(R,T)})}c.EMPTY_OBSERVER={closed:!0,next:h.noop,error:x,complete:h.noop}},33834:function(C,c,t){"use strict";var i=this&&this.__values||function(g){var y=typeof Symbol=="function"&&Symbol.iterator,b=y&&g[y],E=0;if(b)return b.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&E>=g.length&&(g=void 0),{value:g&&g[E++],done:!g}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(g,y){var b=typeof Symbol=="function"&&g[Symbol.iterator];if(!b)return g;var E=b.call(g),S,w=[],x;try{for(;(y===void 0||y-- >0)&&!(S=E.next()).done;)w.push(S.value)}catch(P){x={error:P}}finally{try{S&&!S.done&&(b=E.return)&&b.call(E)}finally{if(x)throw x.error}}return w},u=this&&this.__spreadArray||function(g,y){for(var b=0,E=y.length,S=g.length;b<E;b++,S++)g[S]=y[b];return g};Object.defineProperty(c,"__esModule",{value:!0}),c.isSubscription=c.EMPTY_SUBSCRIPTION=c.Subscription=void 0;var v=t(37546),l=t(64219),h=t(59586),p=function(){function g(y){this.initialTeardown=y,this.closed=!1,this._parentage=null,this._finalizers=null}return g.prototype.unsubscribe=function(){var y,b,E,S,w;if(!this.closed){this.closed=!0;var x=this._parentage;if(x)if(this._parentage=null,Array.isArray(x))try{for(var P=i(x),R=P.next();!R.done;R=P.next()){var T=R.value;T.remove(this)}}catch(W){y={error:W}}finally{try{R&&!R.done&&(b=P.return)&&b.call(P)}finally{if(y)throw y.error}}else x.remove(this);var A=this.initialTeardown;if(v.isFunction(A))try{A()}catch(W){w=W instanceof l.UnsubscriptionError?W.errors:[W]}var I=this._finalizers;if(I){this._finalizers=null;try{for(var N=i(I),K=N.next();!K.done;K=N.next()){var _=K.value;try{f(_)}catch(W){w=w??[],W instanceof l.UnsubscriptionError?w=u(u([],s(w)),s(W.errors)):w.push(W)}}}catch(W){E={error:W}}finally{try{K&&!K.done&&(S=N.return)&&S.call(N)}finally{if(E)throw E.error}}}if(w)throw new l.UnsubscriptionError(w)}},g.prototype.add=function(y){var b;if(y&&y!==this)if(this.closed)f(y);else{if(y instanceof g){if(y.closed||y._hasParent(this))return;y._addParent(this)}(this._finalizers=(b=this._finalizers)!==null&&b!==void 0?b:[]).push(y)}},g.prototype._hasParent=function(y){var b=this._parentage;return b===y||Array.isArray(b)&&b.includes(y)},g.prototype._addParent=function(y){var b=this._parentage;this._parentage=Array.isArray(b)?(b.push(y),b):b?[b,y]:y},g.prototype._removeParent=function(y){var b=this._parentage;b===y?this._parentage=null:Array.isArray(b)&&h.arrRemove(b,y)},g.prototype.remove=function(y){var b=this._finalizers;b&&h.arrRemove(b,y),y instanceof g&&y._removeParent(this)},g.EMPTY=function(){var y=new g;return y.closed=!0,y}(),g}();c.Subscription=p,c.EMPTY_SUBSCRIPTION=p.EMPTY;function d(g){return g instanceof p||g&&"closed"in g&&v.isFunction(g.remove)&&v.isFunction(g.add)&&v.isFunction(g.unsubscribe)}c.isSubscription=d;function f(g){v.isFunction(g)?g():g.unsubscribe()}},66705:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.config=void 0,c.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},27059:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.firstValueFrom=void 0;var i=t(73136),s=t(23901);function u(v,l){var h=typeof l=="object";return new Promise(function(p,d){var f=new s.SafeSubscriber({next:function(g){p(g),f.unsubscribe()},error:d,complete:function(){h?p(l.defaultValue):d(new i.EmptyError)}});v.subscribe(f)})}c.firstValueFrom=u},97849:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.lastValueFrom=void 0;var i=t(73136);function s(u,v){var l=typeof v=="object";return new Promise(function(h,p){var d=!1,f;u.subscribe({next:function(g){f=g,d=!0},error:p,complete:function(){d?h(f):l?h(v.defaultValue):p(new i.EmptyError)}})})}c.lastValueFrom=s},79674:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var d=function(f,g){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(y[E]=b[E])},d(f,g)};return function(f,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");d(f,g);function y(){this.constructor=f}f.prototype=g===null?Object.create(g):(y.prototype=g.prototype,new y)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.ConnectableObservable=void 0;var s=t(8233),u=t(33834),v=t(45886),l=t(11978),h=t(38260),p=function(d){i(f,d);function f(g,y){var b=d.call(this)||this;return b.source=g,b.subjectFactory=y,b._subject=null,b._refCount=0,b._connection=null,h.hasLift(g)&&(b.lift=g.lift),b}return f.prototype._subscribe=function(g){return this.getSubject().subscribe(g)},f.prototype.getSubject=function(){var g=this._subject;return(!g||g.isStopped)&&(this._subject=this.subjectFactory()),this._subject},f.prototype._teardown=function(){this._refCount=0;var g=this._connection;this._subject=this._connection=null,g?.unsubscribe()},f.prototype.connect=function(){var g=this,y=this._connection;if(!y){y=this._connection=new u.Subscription;var b=this.getSubject();y.add(this.source.subscribe(l.createOperatorSubscriber(b,void 0,function(){g._teardown(),b.complete()},function(E){g._teardown(),b.error(E)},function(){return g._teardown()}))),y.closed&&(this._connection=null,y=u.Subscription.EMPTY)}return y},f.prototype.refCount=function(){return v.refCount()(this)},f}(s.Observable);c.ConnectableObservable=p},24572:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.bindCallback=void 0;var i=t(42314);function s(u,v,l){return i.bindCallbackInternals(!1,u,v,l)}c.bindCallback=s},42314:function(C,c,t){"use strict";var i=this&&this.__read||function(g,y){var b=typeof Symbol=="function"&&g[Symbol.iterator];if(!b)return g;var E=b.call(g),S,w=[],x;try{for(;(y===void 0||y-- >0)&&!(S=E.next()).done;)w.push(S.value)}catch(P){x={error:P}}finally{try{S&&!S.done&&(b=E.return)&&b.call(E)}finally{if(x)throw x.error}}return w},s=this&&this.__spreadArray||function(g,y){for(var b=0,E=y.length,S=g.length;b<E;b++,S++)g[S]=y[b];return g};Object.defineProperty(c,"__esModule",{value:!0}),c.bindCallbackInternals=void 0;var u=t(96318),v=t(8233),l=t(25557),h=t(40406),p=t(8360),d=t(9632);function f(g,y,b,E){if(b)if(u.isScheduler(b))E=b;else return function(){for(var S=[],w=0;w<arguments.length;w++)S[w]=arguments[w];return f(g,y,E).apply(this,S).pipe(h.mapOneOrManyArgs(b))};return E?function(){for(var S=[],w=0;w<arguments.length;w++)S[w]=arguments[w];return f(g,y).apply(this,S).pipe(l.subscribeOn(E),p.observeOn(E))}:function(){for(var S=this,w=[],x=0;x<arguments.length;x++)w[x]=arguments[x];var P=new d.AsyncSubject,R=!0;return new v.Observable(function(T){var A=P.subscribe(T);if(R){R=!1;var I=!1,N=!1;y.apply(S,s(s([],i(w)),[function(){for(var K=[],_=0;_<arguments.length;_++)K[_]=arguments[_];if(g){var W=K.shift();if(W!=null){P.error(W);return}}P.next(1<K.length?K:K[0]),N=!0,I&&P.complete()}])),N&&P.complete(),I=!0}return A})}}c.bindCallbackInternals=f},61672:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.bindNodeCallback=void 0;var i=t(42314);function s(u,v,l){return i.bindCallbackInternals(!0,u,v,l)}c.bindNodeCallback=s},59824:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.combineLatestInit=c.combineLatest=void 0;var i=t(8233),s=t(6124),u=t(28267),v=t(39597),l=t(40406),h=t(13262),p=t(44705),d=t(11978),f=t(33004);function g(){for(var E=[],S=0;S<arguments.length;S++)E[S]=arguments[S];var w=h.popScheduler(E),x=h.popResultSelector(E),P=s.argsArgArrayOrObject(E),R=P.args,T=P.keys;if(R.length===0)return u.from([],w);var A=new i.Observable(y(R,w,T?function(I){return p.createObject(T,I)}:v.identity));return x?A.pipe(l.mapOneOrManyArgs(x)):A}c.combineLatest=g;function y(E,S,w){return w===void 0&&(w=v.identity),function(x){b(S,function(){for(var P=E.length,R=new Array(P),T=P,A=P,I=function(K){b(S,function(){var _=u.from(E[K],S),W=!1;_.subscribe(d.createOperatorSubscriber(x,function(j){R[K]=j,W||(W=!0,A--),A||x.next(w(R.slice()))},function(){--T||x.complete()}))},x)},N=0;N<P;N++)I(N)},x)}}c.combineLatestInit=y;function b(E,S,w){E?f.executeSchedule(w,E,S):S()}},62669:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.concat=void 0;var i=t(63999),s=t(13262),u=t(28267);function v(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];return i.concatAll()(u.from(l,s.popScheduler(l)))}c.concat=v},94476:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.connectable=void 0;var i=t(51163),s=t(8233),u=t(79781),v={connector:function(){return new i.Subject},resetOnDisconnect:!0};function l(h,p){p===void 0&&(p=v);var d=null,f=p.connector,g=p.resetOnDisconnect,y=g===void 0?!0:g,b=f(),E=new s.Observable(function(S){return b.subscribe(S)});return E.connect=function(){return(!d||d.closed)&&(d=u.defer(function(){return h}).subscribe(b),y&&d.add(function(){return b=f()})),d},E}c.connectable=l},79781:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.defer=void 0;var i=t(8233),s=t(27865);function u(v){return new i.Observable(function(l){s.innerFrom(v()).subscribe(l)})}c.defer=u},17202:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.animationFrames=void 0;var i=t(8233),s=t(57144),u=t(50493);function v(p){return p?l(p):h}c.animationFrames=v;function l(p){return new i.Observable(function(d){var f=p||s.performanceTimestampProvider,g=f.now(),y=0,b=function(){d.closed||(y=u.animationFrameProvider.requestAnimationFrame(function(E){y=0;var S=f.now();d.next({timestamp:p?S:E,elapsed:S-g}),b()}))};return b(),function(){y&&u.animationFrameProvider.cancelAnimationFrame(y)}})}var h=l()},88391:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.empty=c.EMPTY=void 0;var i=t(8233);c.EMPTY=new i.Observable(function(v){return v.complete()});function s(v){return v?u(v):c.EMPTY}c.empty=s;function u(v){return new i.Observable(function(l){return v.schedule(function(){return l.complete()})})}},2129:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.forkJoin=void 0;var i=t(8233),s=t(6124),u=t(27865),v=t(13262),l=t(11978),h=t(40406),p=t(44705);function d(){for(var f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];var y=v.popResultSelector(f),b=s.argsArgArrayOrObject(f),E=b.args,S=b.keys,w=new i.Observable(function(x){var P=E.length;if(!P){x.complete();return}for(var R=new Array(P),T=P,A=P,I=function(K){var _=!1;u.innerFrom(E[K]).subscribe(l.createOperatorSubscriber(x,function(W){_||(_=!0,A--),R[K]=W},function(){return T--},void 0,function(){(!T||!_)&&(A||x.next(S?p.createObject(S,R):R),x.complete())}))},N=0;N<P;N++)I(N)});return y?w.pipe(h.mapOneOrManyArgs(y)):w}c.forkJoin=d},28267:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.from=void 0;var i=t(2144),s=t(27865);function u(v,l){return l?i.scheduled(v,l):s.innerFrom(v)}c.from=u},96542:function(C,c,t){"use strict";var i=this&&this.__read||function(x,P){var R=typeof Symbol=="function"&&x[Symbol.iterator];if(!R)return x;var T=R.call(x),A,I=[],N;try{for(;(P===void 0||P-- >0)&&!(A=T.next()).done;)I.push(A.value)}catch(K){N={error:K}}finally{try{A&&!A.done&&(R=T.return)&&R.call(T)}finally{if(N)throw N.error}}return I};Object.defineProperty(c,"__esModule",{value:!0}),c.fromEvent=void 0;var s=t(27865),u=t(8233),v=t(82200),l=t(21576),h=t(37546),p=t(40406),d=["addListener","removeListener"],f=["addEventListener","removeEventListener"],g=["on","off"];function y(x,P,R,T){if(h.isFunction(R)&&(T=R,R=void 0),T)return y(x,P,R).pipe(p.mapOneOrManyArgs(T));var A=i(w(x)?f.map(function(K){return function(_){return x[K](P,_,R)}}):E(x)?d.map(b(x,P)):S(x)?g.map(b(x,P)):[],2),I=A[0],N=A[1];if(!I&&l.isArrayLike(x))return v.mergeMap(function(K){return y(K,P,R)})(s.innerFrom(x));if(!I)throw new TypeError("Invalid event target");return new u.Observable(function(K){var _=function(){for(var W=[],j=0;j<arguments.length;j++)W[j]=arguments[j];return K.next(1<W.length?W:W[0])};return I(_),function(){return N(_)}})}c.fromEvent=y;function b(x,P){return function(R){return function(T){return x[R](P,T)}}}function E(x){return h.isFunction(x.addListener)&&h.isFunction(x.removeListener)}function S(x){return h.isFunction(x.on)&&h.isFunction(x.off)}function w(x){return h.isFunction(x.addEventListener)&&h.isFunction(x.removeEventListener)}},21011:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.fromEventPattern=void 0;var i=t(8233),s=t(37546),u=t(40406);function v(l,h,p){return p?v(l,h).pipe(u.mapOneOrManyArgs(p)):new i.Observable(function(d){var f=function(){for(var y=[],b=0;b<arguments.length;b++)y[b]=arguments[b];return d.next(y.length===1?y[0]:y)},g=l(f);return s.isFunction(h)?function(){return h(f,g)}:void 0})}c.fromEventPattern=v},44660:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.fromSubscribable=void 0;var i=t(8233);function s(u){return new i.Observable(function(v){return u.subscribe(v)})}c.fromSubscribable=s},67031:function(C,c,t){"use strict";var i=this&&this.__generator||function(p,d){var f={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},g,y,b,E;return E={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function S(x){return function(P){return w([x,P])}}function w(x){if(g)throw new TypeError("Generator is already executing.");for(;f;)try{if(g=1,y&&(b=x[0]&2?y.return:x[0]?y.throw||((b=y.return)&&b.call(y),0):y.next)&&!(b=b.call(y,x[1])).done)return b;switch(y=0,b&&(x=[x[0]&2,b.value]),x[0]){case 0:case 1:b=x;break;case 4:return f.label++,{value:x[1],done:!1};case 5:f.label++,y=x[1],x=[0];continue;case 7:x=f.ops.pop(),f.trys.pop();continue;default:if(b=f.trys,!(b=b.length>0&&b[b.length-1])&&(x[0]===6||x[0]===2)){f=0;continue}if(x[0]===3&&(!b||x[1]>b[0]&&x[1]<b[3])){f.label=x[1];break}if(x[0]===6&&f.label<b[1]){f.label=b[1],b=x;break}if(b&&f.label<b[2]){f.label=b[2],f.ops.push(x);break}b[2]&&f.ops.pop(),f.trys.pop();continue}x=d.call(p,f)}catch(P){x=[6,P],y=0}finally{g=b=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(c,"__esModule",{value:!0}),c.generate=void 0;var s=t(39597),u=t(96318),v=t(79781),l=t(7793);function h(p,d,f,g,y){var b,E,S,w;arguments.length===1?(b=p,w=b.initialState,d=b.condition,f=b.iterate,E=b.resultSelector,S=E===void 0?s.identity:E,y=b.scheduler):(w=p,!g||u.isScheduler(g)?(S=s.identity,y=g):S=g);function x(){var P;return i(this,function(R){switch(R.label){case 0:P=w,R.label=1;case 1:return!d||d(P)?[4,S(P)]:[3,4];case 2:R.sent(),R.label=3;case 3:return P=f(P),[3,1];case 4:return[2]}})}return v.defer(y?function(){return l.scheduleIterable(x(),y)}:x)}c.generate=h},18903:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.iif=void 0;var i=t(79781);function s(u,v,l){return i.defer(function(){return u()?v:l})}c.iif=s},27865:function(C,c,t){"use strict";var i=this&&this.__awaiter||function(_,W,j,re){function X(Z){return Z instanceof j?Z:new j(function(J){J(Z)})}return new(j||(j=Promise))(function(Z,J){function q(k){try{$(re.next(k))}catch(F){J(F)}}function L(k){try{$(re.throw(k))}catch(F){J(F)}}function $(k){k.done?Z(k.value):X(k.value).then(q,L)}$((re=re.apply(_,W||[])).next())})},s=this&&this.__generator||function(_,W){var j={label:0,sent:function(){if(Z[0]&1)throw Z[1];return Z[1]},trys:[],ops:[]},re,X,Z,J;return J={next:q(0),throw:q(1),return:q(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function q($){return function(k){return L([$,k])}}function L($){if(re)throw new TypeError("Generator is already executing.");for(;j;)try{if(re=1,X&&(Z=$[0]&2?X.return:$[0]?X.throw||((Z=X.return)&&Z.call(X),0):X.next)&&!(Z=Z.call(X,$[1])).done)return Z;switch(X=0,Z&&($=[$[0]&2,Z.value]),$[0]){case 0:case 1:Z=$;break;case 4:return j.label++,{value:$[1],done:!1};case 5:j.label++,X=$[1],$=[0];continue;case 7:$=j.ops.pop(),j.trys.pop();continue;default:if(Z=j.trys,!(Z=Z.length>0&&Z[Z.length-1])&&($[0]===6||$[0]===2)){j=0;continue}if($[0]===3&&(!Z||$[1]>Z[0]&&$[1]<Z[3])){j.label=$[1];break}if($[0]===6&&j.label<Z[1]){j.label=Z[1],Z=$;break}if(Z&&j.label<Z[2]){j.label=Z[2],j.ops.push($);break}Z[2]&&j.ops.pop(),j.trys.pop();continue}$=W.call(_,j)}catch(k){$=[6,k],X=0}finally{re=Z=0}if($[0]&5)throw $[1];return{value:$[0]?$[1]:void 0,done:!0}}},u=this&&this.__asyncValues||function(_){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W=_[Symbol.asyncIterator],j;return W?W.call(_):(_=typeof v=="function"?v(_):_[Symbol.iterator](),j={},re("next"),re("throw"),re("return"),j[Symbol.asyncIterator]=function(){return this},j);function re(Z){j[Z]=_[Z]&&function(J){return new Promise(function(q,L){J=_[Z](J),X(q,L,J.done,J.value)})}}function X(Z,J,q,L){Promise.resolve(L).then(function($){Z({value:$,done:q})},J)}},v=this&&this.__values||function(_){var W=typeof Symbol=="function"&&Symbol.iterator,j=W&&_[W],re=0;if(j)return j.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&re>=_.length&&(_=void 0),{value:_&&_[re++],done:!_}}};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.fromReadableStreamLike=c.fromAsyncIterable=c.fromIterable=c.fromPromise=c.fromArrayLike=c.fromInteropObservable=c.innerFrom=void 0;var l=t(21576),h=t(30409),p=t(8233),d=t(15474),f=t(36052),g=t(72031),y=t(85765),b=t(28824),E=t(37546),S=t(20923),w=t(62517);function x(_){if(_ instanceof p.Observable)return _;if(_!=null){if(d.isInteropObservable(_))return P(_);if(l.isArrayLike(_))return R(_);if(h.isPromise(_))return T(_);if(f.isAsyncIterable(_))return I(_);if(y.isIterable(_))return A(_);if(b.isReadableStreamLike(_))return N(_)}throw g.createInvalidObservableTypeError(_)}c.innerFrom=x;function P(_){return new p.Observable(function(W){var j=_[w.observable]();if(E.isFunction(j.subscribe))return j.subscribe(W);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}c.fromInteropObservable=P;function R(_){return new p.Observable(function(W){for(var j=0;j<_.length&&!W.closed;j++)W.next(_[j]);W.complete()})}c.fromArrayLike=R;function T(_){return new p.Observable(function(W){_.then(function(j){W.closed||(W.next(j),W.complete())},function(j){return W.error(j)}).then(null,S.reportUnhandledError)})}c.fromPromise=T;function A(_){return new p.Observable(function(W){var j,re;try{for(var X=v(_),Z=X.next();!Z.done;Z=X.next()){var J=Z.value;if(W.next(J),W.closed)return}}catch(q){j={error:q}}finally{try{Z&&!Z.done&&(re=X.return)&&re.call(X)}finally{if(j)throw j.error}}W.complete()})}c.fromIterable=A;function I(_){return new p.Observable(function(W){K(_,W).catch(function(j){return W.error(j)})})}c.fromAsyncIterable=I;function N(_){return I(b.readableStreamLikeToAsyncGenerator(_))}c.fromReadableStreamLike=N;function K(_,W){var j,re,X,Z;return i(this,void 0,void 0,function(){var J,q;return s(this,function(L){switch(L.label){case 0:L.trys.push([0,5,6,11]),j=u(_),L.label=1;case 1:return[4,j.next()];case 2:if(re=L.sent(),!!re.done)return[3,4];if(J=re.value,W.next(J),W.closed)return[2];L.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return q=L.sent(),X={error:q},[3,11];case 6:return L.trys.push([6,,9,10]),re&&!re.done&&(Z=j.return)?[4,Z.call(j)]:[3,8];case 7:L.sent(),L.label=8;case 8:return[3,10];case 9:if(X)throw X.error;return[7];case 10:return[7];case 11:return W.complete(),[2]}})})}},89254:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.interval=void 0;var i=t(62054),s=t(66564);function u(v,l){return v===void 0&&(v=0),l===void 0&&(l=i.asyncScheduler),v<0&&(v=0),s.timer(v,v,l)}c.interval=u},51031:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.merge=void 0;var i=t(40978),s=t(27865),u=t(88391),v=t(13262),l=t(28267);function h(){for(var p=[],d=0;d<arguments.length;d++)p[d]=arguments[d];var f=v.popScheduler(p),g=v.popNumber(p,1/0),y=p;return y.length?y.length===1?s.innerFrom(y[0]):i.mergeAll(g)(l.from(y,f)):u.EMPTY}c.merge=h},61612:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.never=c.NEVER=void 0;var i=t(8233),s=t(18433);c.NEVER=new i.Observable(s.noop);function u(){return c.NEVER}c.never=u},61692:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.of=void 0;var i=t(13262),s=t(28267);function u(){for(var v=[],l=0;l<arguments.length;l++)v[l]=arguments[l];var h=i.popScheduler(v);return s.from(v,h)}c.of=u},87283:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.onErrorResumeNext=void 0;var i=t(8233),s=t(33295),u=t(11978),v=t(18433),l=t(27865);function h(){for(var p=[],d=0;d<arguments.length;d++)p[d]=arguments[d];var f=s.argsOrArgArray(p);return new i.Observable(function(g){var y=0,b=function(){if(y<f.length){var E=void 0;try{E=l.innerFrom(f[y++])}catch{b();return}var S=new u.OperatorSubscriber(g,void 0,v.noop,v.noop);E.subscribe(S),S.add(b)}else g.complete()};b()})}c.onErrorResumeNext=h},55776:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.pairs=void 0;var i=t(28267);function s(u,v){return i.from(Object.entries(u),v)}c.pairs=s},60547:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.partition=void 0;var i=t(94855),s=t(12965),u=t(27865);function v(l,h,p){return[s.filter(h,p)(u.innerFrom(l)),s.filter(i.not(h,p))(u.innerFrom(l))]}c.partition=v},68761:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.raceInit=c.race=void 0;var i=t(8233),s=t(27865),u=t(33295),v=t(11978);function l(){for(var p=[],d=0;d<arguments.length;d++)p[d]=arguments[d];return p=u.argsOrArgArray(p),p.length===1?s.innerFrom(p[0]):new i.Observable(h(p))}c.race=l;function h(p){return function(d){for(var f=[],g=function(b){f.push(s.innerFrom(p[b]).subscribe(v.createOperatorSubscriber(d,function(E){if(f){for(var S=0;S<f.length;S++)S!==b&&f[S].unsubscribe();f=null}d.next(E)})))},y=0;f&&!d.closed&&y<p.length;y++)g(y)}}c.raceInit=h},43885:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.range=void 0;var i=t(8233),s=t(88391);function u(v,l,h){if(l==null&&(l=v,v=0),l<=0)return s.EMPTY;var p=l+v;return new i.Observable(h?function(d){var f=v;return h.schedule(function(){f<p?(d.next(f++),this.schedule()):d.complete()})}:function(d){for(var f=v;f<p&&!d.closed;)d.next(f++);d.complete()})}c.range=u},41721:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.throwError=void 0;var i=t(8233),s=t(37546);function u(v,l){var h=s.isFunction(v)?v:function(){return v},p=function(d){return d.error(h())};return new i.Observable(l?function(d){return l.schedule(p,0,d)}:p)}c.throwError=u},66564:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.timer=void 0;var i=t(8233),s=t(62054),u=t(96318),v=t(46894);function l(h,p,d){h===void 0&&(h=0),d===void 0&&(d=s.async);var f=-1;return p!=null&&(u.isScheduler(p)?d=p:f=p),new i.Observable(function(g){var y=v.isValidDate(h)?+h-d.now():h;y<0&&(y=0);var b=0;return d.schedule(function(){g.closed||(g.next(b++),0<=f?this.schedule(void 0,f):g.complete())},y)})}c.timer=l},46761:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.using=void 0;var i=t(8233),s=t(27865),u=t(88391);function v(l,h){return new i.Observable(function(p){var d=l(),f=h(d),g=f?s.innerFrom(f):u.EMPTY;return g.subscribe(p),function(){d&&d.unsubscribe()}})}c.using=v},12990:function(C,c,t){"use strict";var i=this&&this.__read||function(g,y){var b=typeof Symbol=="function"&&g[Symbol.iterator];if(!b)return g;var E=b.call(g),S,w=[],x;try{for(;(y===void 0||y-- >0)&&!(S=E.next()).done;)w.push(S.value)}catch(P){x={error:P}}finally{try{S&&!S.done&&(b=E.return)&&b.call(E)}finally{if(x)throw x.error}}return w},s=this&&this.__spreadArray||function(g,y){for(var b=0,E=y.length,S=g.length;b<E;b++,S++)g[S]=y[b];return g};Object.defineProperty(c,"__esModule",{value:!0}),c.zip=void 0;var u=t(8233),v=t(27865),l=t(33295),h=t(88391),p=t(11978),d=t(13262);function f(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];var b=d.popResultSelector(g),E=l.argsOrArgArray(g);return E.length?new u.Observable(function(S){var w=E.map(function(){return[]}),x=E.map(function(){return!1});S.add(function(){w=x=null});for(var P=function(T){v.innerFrom(E[T]).subscribe(p.createOperatorSubscriber(S,function(A){if(w[T].push(A),w.every(function(N){return N.length})){var I=w.map(function(N){return N.shift()});S.next(b?b.apply(void 0,s([],i(I))):I),w.some(function(N,K){return!N.length&&x[K]})&&S.complete()}},function(){x[T]=!0,!w[T].length&&S.complete()}))},R=0;!S.closed&&R<E.length;R++)P(R);return function(){w=x=null}}):h.EMPTY}c.zip=f},11978:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var l=function(h,p){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(d[g]=f[g])},l(h,p)};return function(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");l(h,p);function d(){this.constructor=h}h.prototype=p===null?Object.create(p):(d.prototype=p.prototype,new d)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.OperatorSubscriber=c.createOperatorSubscriber=void 0;var s=t(23901);function u(l,h,p,d,f){return new v(l,h,p,d,f)}c.createOperatorSubscriber=u;var v=function(l){i(h,l);function h(p,d,f,g,y,b){var E=l.call(this,p)||this;return E.onFinalize=y,E.shouldUnsubscribe=b,E._next=d?function(S){try{d(S)}catch(w){p.error(w)}}:l.prototype._next,E._error=g?function(S){try{g(S)}catch(w){p.error(w)}finally{this.unsubscribe()}}:l.prototype._error,E._complete=f?function(){try{f()}catch(S){p.error(S)}finally{this.unsubscribe()}}:l.prototype._complete,E}return h.prototype.unsubscribe=function(){var p;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var d=this.closed;l.prototype.unsubscribe.call(this),!d&&((p=this.onFinalize)===null||p===void 0||p.call(this))}},h}(s.Subscriber);c.OperatorSubscriber=v},22165:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.audit=void 0;var i=t(38260),s=t(27865),u=t(11978);function v(l){return i.operate(function(h,p){var d=!1,f=null,g=null,y=!1,b=function(){if(g?.unsubscribe(),g=null,d){d=!1;var S=f;f=null,p.next(S)}y&&p.complete()},E=function(){g=null,y&&p.complete()};h.subscribe(u.createOperatorSubscriber(p,function(S){d=!0,f=S,g||s.innerFrom(l(S)).subscribe(g=u.createOperatorSubscriber(p,b,E))},function(){y=!0,(!d||!g||g.closed)&&p.complete()}))})}c.audit=v},15605:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.auditTime=void 0;var i=t(62054),s=t(22165),u=t(66564);function v(l,h){return h===void 0&&(h=i.asyncScheduler),s.audit(function(){return u.timer(l,h)})}c.auditTime=v},59759:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.buffer=void 0;var i=t(38260),s=t(18433),u=t(11978),v=t(27865);function l(h){return i.operate(function(p,d){var f=[];return p.subscribe(u.createOperatorSubscriber(d,function(g){return f.push(g)},function(){d.next(f),d.complete()})),v.innerFrom(h).subscribe(u.createOperatorSubscriber(d,function(){var g=f;f=[],d.next(g)},s.noop)),function(){f=null}})}c.buffer=l},88742:function(C,c,t){"use strict";var i=this&&this.__values||function(h){var p=typeof Symbol=="function"&&Symbol.iterator,d=p&&h[p],f=0;if(d)return d.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&f>=h.length&&(h=void 0),{value:h&&h[f++],done:!h}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.bufferCount=void 0;var s=t(38260),u=t(11978),v=t(59586);function l(h,p){return p===void 0&&(p=null),p=p??h,s.operate(function(d,f){var g=[],y=0;d.subscribe(u.createOperatorSubscriber(f,function(b){var E,S,w,x,P=null;y++%p===0&&g.push([]);try{for(var R=i(g),T=R.next();!T.done;T=R.next()){var A=T.value;A.push(b),h<=A.length&&(P=P??[],P.push(A))}}catch(K){E={error:K}}finally{try{T&&!T.done&&(S=R.return)&&S.call(R)}finally{if(E)throw E.error}}if(P)try{for(var I=i(P),N=I.next();!N.done;N=I.next()){var A=N.value;v.arrRemove(g,A),f.next(A)}}catch(K){w={error:K}}finally{try{N&&!N.done&&(x=I.return)&&x.call(I)}finally{if(w)throw w.error}}},function(){var b,E;try{for(var S=i(g),w=S.next();!w.done;w=S.next()){var x=w.value;f.next(x)}}catch(P){b={error:P}}finally{try{w&&!w.done&&(E=S.return)&&E.call(S)}finally{if(b)throw b.error}}f.complete()},void 0,function(){g=null}))})}c.bufferCount=l},40365:function(C,c,t){"use strict";var i=this&&this.__values||function(g){var y=typeof Symbol=="function"&&Symbol.iterator,b=y&&g[y],E=0;if(b)return b.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&E>=g.length&&(g=void 0),{value:g&&g[E++],done:!g}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.bufferTime=void 0;var s=t(33834),u=t(38260),v=t(11978),l=t(59586),h=t(62054),p=t(13262),d=t(33004);function f(g){for(var y,b,E=[],S=1;S<arguments.length;S++)E[S-1]=arguments[S];var w=(y=p.popScheduler(E))!==null&&y!==void 0?y:h.asyncScheduler,x=(b=E[0])!==null&&b!==void 0?b:null,P=E[1]||1/0;return u.operate(function(R,T){var A=[],I=!1,N=function(W){var j=W.buffer,re=W.subs;re.unsubscribe(),l.arrRemove(A,W),T.next(j),I&&K()},K=function(){if(A){var W=new s.Subscription;T.add(W);var j=[],re={buffer:j,subs:W};A.push(re),d.executeSchedule(W,w,function(){return N(re)},g)}};x!==null&&x>=0?d.executeSchedule(T,w,K,x,!0):I=!0,K();var _=v.createOperatorSubscriber(T,function(W){var j,re,X=A.slice();try{for(var Z=i(X),J=Z.next();!J.done;J=Z.next()){var q=J.value,L=q.buffer;L.push(W),P<=L.length&&N(q)}}catch($){j={error:$}}finally{try{J&&!J.done&&(re=Z.return)&&re.call(Z)}finally{if(j)throw j.error}}},function(){for(;A?.length;)T.next(A.shift().buffer);_?.unsubscribe(),T.complete(),T.unsubscribe()},void 0,function(){return A=null});R.subscribe(_)})}c.bufferTime=f},25583:function(C,c,t){"use strict";var i=this&&this.__values||function(f){var g=typeof Symbol=="function"&&Symbol.iterator,y=g&&f[g],b=0;if(y)return y.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&b>=f.length&&(f=void 0),{value:f&&f[b++],done:!f}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.bufferToggle=void 0;var s=t(33834),u=t(38260),v=t(27865),l=t(11978),h=t(18433),p=t(59586);function d(f,g){return u.operate(function(y,b){var E=[];v.innerFrom(f).subscribe(l.createOperatorSubscriber(b,function(S){var w=[];E.push(w);var x=new s.Subscription,P=function(){p.arrRemove(E,w),b.next(w),x.unsubscribe()};x.add(v.innerFrom(g(S)).subscribe(l.createOperatorSubscriber(b,P,h.noop)))},h.noop)),y.subscribe(l.createOperatorSubscriber(b,function(S){var w,x;try{for(var P=i(E),R=P.next();!R.done;R=P.next()){var T=R.value;T.push(S)}}catch(A){w={error:A}}finally{try{R&&!R.done&&(x=P.return)&&x.call(P)}finally{if(w)throw w.error}}},function(){for(;E.length>0;)b.next(E.shift());b.complete()}))})}c.bufferToggle=d},30946:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.bufferWhen=void 0;var i=t(38260),s=t(18433),u=t(11978),v=t(27865);function l(h){return i.operate(function(p,d){var f=null,g=null,y=function(){g?.unsubscribe();var b=f;f=[],b&&d.next(b),v.innerFrom(h()).subscribe(g=u.createOperatorSubscriber(d,y,s.noop))};y(),p.subscribe(u.createOperatorSubscriber(d,function(b){return f?.push(b)},function(){f&&d.next(f),d.complete()},void 0,function(){return f=g=null}))})}c.bufferWhen=l},84438:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.catchError=void 0;var i=t(27865),s=t(11978),u=t(38260);function v(l){return u.operate(function(h,p){var d=null,f=!1,g;d=h.subscribe(s.createOperatorSubscriber(p,void 0,void 0,function(y){g=i.innerFrom(l(y,v(l)(h))),d?(d.unsubscribe(),d=null,g.subscribe(p)):f=!0})),f&&(d.unsubscribe(),d=null,g.subscribe(p))})}c.catchError=v},44722:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.combineAll=void 0;var i=t(90808);c.combineAll=i.combineLatestAll},30813:function(C,c,t){"use strict";var i=this&&this.__read||function(g,y){var b=typeof Symbol=="function"&&g[Symbol.iterator];if(!b)return g;var E=b.call(g),S,w=[],x;try{for(;(y===void 0||y-- >0)&&!(S=E.next()).done;)w.push(S.value)}catch(P){x={error:P}}finally{try{S&&!S.done&&(b=E.return)&&b.call(E)}finally{if(x)throw x.error}}return w},s=this&&this.__spreadArray||function(g,y){for(var b=0,E=y.length,S=g.length;b<E;b++,S++)g[S]=y[b];return g};Object.defineProperty(c,"__esModule",{value:!0}),c.combineLatest=void 0;var u=t(59824),v=t(38260),l=t(33295),h=t(40406),p=t(71324),d=t(13262);function f(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];var b=d.popResultSelector(g);return b?p.pipe(f.apply(void 0,s([],i(g))),h.mapOneOrManyArgs(b)):v.operate(function(E,S){u.combineLatestInit(s([E],i(l.argsOrArgArray(g))))(S)})}c.combineLatest=f},90808:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.combineLatestAll=void 0;var i=t(59824),s=t(5364);function u(v){return s.joinAllInternals(i.combineLatest,v)}c.combineLatestAll=u},30643:function(C,c,t){"use strict";var i=this&&this.__read||function(l,h){var p=typeof Symbol=="function"&&l[Symbol.iterator];if(!p)return l;var d=p.call(l),f,g=[],y;try{for(;(h===void 0||h-- >0)&&!(f=d.next()).done;)g.push(f.value)}catch(b){y={error:b}}finally{try{f&&!f.done&&(p=d.return)&&p.call(d)}finally{if(y)throw y.error}}return g},s=this&&this.__spreadArray||function(l,h){for(var p=0,d=h.length,f=l.length;p<d;p++,f++)l[f]=h[p];return l};Object.defineProperty(c,"__esModule",{value:!0}),c.combineLatestWith=void 0;var u=t(30813);function v(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];return u.combineLatest.apply(void 0,s([],i(l)))}c.combineLatestWith=v},79857:function(C,c,t){"use strict";var i=this&&this.__read||function(d,f){var g=typeof Symbol=="function"&&d[Symbol.iterator];if(!g)return d;var y=g.call(d),b,E=[],S;try{for(;(f===void 0||f-- >0)&&!(b=y.next()).done;)E.push(b.value)}catch(w){S={error:w}}finally{try{b&&!b.done&&(g=y.return)&&g.call(y)}finally{if(S)throw S.error}}return E},s=this&&this.__spreadArray||function(d,f){for(var g=0,y=f.length,b=d.length;g<y;g++,b++)d[b]=f[g];return d};Object.defineProperty(c,"__esModule",{value:!0}),c.concat=void 0;var u=t(38260),v=t(63999),l=t(13262),h=t(28267);function p(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];var g=l.popScheduler(d);return u.operate(function(y,b){v.concatAll()(h.from(s([y],i(d)),g)).subscribe(b)})}c.concat=p},63999:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.concatAll=void 0;var i=t(40978);function s(){return i.mergeAll(1)}c.concatAll=s},12895:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.concatMap=void 0;var i=t(82200),s=t(37546);function u(v,l){return s.isFunction(l)?i.mergeMap(v,l,1):i.mergeMap(v,1)}c.concatMap=u},9849:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.concatMapTo=void 0;var i=t(12895),s=t(37546);function u(v,l){return s.isFunction(l)?i.concatMap(function(){return v},l):i.concatMap(function(){return v})}c.concatMapTo=u},12148:function(C,c,t){"use strict";var i=this&&this.__read||function(l,h){var p=typeof Symbol=="function"&&l[Symbol.iterator];if(!p)return l;var d=p.call(l),f,g=[],y;try{for(;(h===void 0||h-- >0)&&!(f=d.next()).done;)g.push(f.value)}catch(b){y={error:b}}finally{try{f&&!f.done&&(p=d.return)&&p.call(d)}finally{if(y)throw y.error}}return g},s=this&&this.__spreadArray||function(l,h){for(var p=0,d=h.length,f=l.length;p<d;p++,f++)l[f]=h[p];return l};Object.defineProperty(c,"__esModule",{value:!0}),c.concatWith=void 0;var u=t(79857);function v(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];return u.concat.apply(void 0,s([],i(l)))}c.concatWith=v},16806:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.connect=void 0;var i=t(51163),s=t(27865),u=t(38260),v=t(44660),l={connector:function(){return new i.Subject}};function h(p,d){d===void 0&&(d=l);var f=d.connector;return u.operate(function(g,y){var b=f();s.innerFrom(p(v.fromSubscribable(b))).subscribe(y),y.add(g.subscribe(b))})}c.connect=h},5773:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.count=void 0;var i=t(11097);function s(u){return i.reduce(function(v,l,h){return!u||u(l,h)?v+1:v},0)}c.count=s},71978:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.debounce=void 0;var i=t(38260),s=t(18433),u=t(11978),v=t(27865);function l(h){return i.operate(function(p,d){var f=!1,g=null,y=null,b=function(){if(y?.unsubscribe(),y=null,f){f=!1;var E=g;g=null,d.next(E)}};p.subscribe(u.createOperatorSubscriber(d,function(E){y?.unsubscribe(),f=!0,g=E,y=u.createOperatorSubscriber(d,b,s.noop),v.innerFrom(h(E)).subscribe(y)},function(){b(),d.complete()},void 0,function(){g=y=null}))})}c.debounce=l},1827:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.debounceTime=void 0;var i=t(62054),s=t(38260),u=t(11978);function v(l,h){return h===void 0&&(h=i.asyncScheduler),s.operate(function(p,d){var f=null,g=null,y=null,b=function(){if(f){f.unsubscribe(),f=null;var S=g;g=null,d.next(S)}};function E(){var S=y+l,w=h.now();if(w<S){f=this.schedule(void 0,S-w),d.add(f);return}b()}p.subscribe(u.createOperatorSubscriber(d,function(S){g=S,y=h.now(),f||(f=h.schedule(E,l),d.add(f))},function(){b(),d.complete()},void 0,function(){g=f=null}))})}c.debounceTime=v},96310:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.defaultIfEmpty=void 0;var i=t(38260),s=t(11978);function u(v){return i.operate(function(l,h){var p=!1;l.subscribe(s.createOperatorSubscriber(h,function(d){p=!0,h.next(d)},function(){p||h.next(v),h.complete()}))})}c.defaultIfEmpty=u},13315:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.delay=void 0;var i=t(62054),s=t(76316),u=t(66564);function v(l,h){h===void 0&&(h=i.asyncScheduler);var p=u.timer(l,h);return s.delayWhen(function(){return p})}c.delay=v},76316:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.delayWhen=void 0;var i=t(62669),s=t(24543),u=t(53848),v=t(99891),l=t(82200),h=t(27865);function p(d,f){return f?function(g){return i.concat(f.pipe(s.take(1),u.ignoreElements()),g.pipe(p(d)))}:l.mergeMap(function(g,y){return h.innerFrom(d(g,y)).pipe(s.take(1),v.mapTo(g))})}c.delayWhen=p},49185:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.dematerialize=void 0;var i=t(80807),s=t(38260),u=t(11978);function v(){return s.operate(function(l,h){l.subscribe(u.createOperatorSubscriber(h,function(p){return i.observeNotification(p,h)}))})}c.dematerialize=v},89641:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.distinct=void 0;var i=t(38260),s=t(11978),u=t(18433),v=t(27865);function l(h,p){return i.operate(function(d,f){var g=new Set;d.subscribe(s.createOperatorSubscriber(f,function(y){var b=h?h(y):y;g.has(b)||(g.add(b),f.next(y))})),p&&v.innerFrom(p).subscribe(s.createOperatorSubscriber(f,function(){return g.clear()},u.noop))})}c.distinct=l},65784:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.distinctUntilChanged=void 0;var i=t(39597),s=t(38260),u=t(11978);function v(h,p){return p===void 0&&(p=i.identity),h=h??l,s.operate(function(d,f){var g,y=!0;d.subscribe(u.createOperatorSubscriber(f,function(b){var E=p(b);(y||!h(g,E))&&(y=!1,g=E,f.next(b))}))})}c.distinctUntilChanged=v;function l(h,p){return h===p}},85953:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.distinctUntilKeyChanged=void 0;var i=t(65784);function s(u,v){return i.distinctUntilChanged(function(l,h){return v?v(l[u],h[u]):l[u]===h[u]})}c.distinctUntilKeyChanged=s},20822:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.elementAt=void 0;var i=t(44467),s=t(12965),u=t(71910),v=t(96310),l=t(24543);function h(p,d){if(p<0)throw new i.ArgumentOutOfRangeError;var f=arguments.length>=2;return function(g){return g.pipe(s.filter(function(y,b){return b===p}),l.take(1),f?v.defaultIfEmpty(d):u.throwIfEmpty(function(){return new i.ArgumentOutOfRangeError}))}}c.elementAt=h},98389:function(C,c,t){"use strict";var i=this&&this.__read||function(h,p){var d=typeof Symbol=="function"&&h[Symbol.iterator];if(!d)return h;var f=d.call(h),g,y=[],b;try{for(;(p===void 0||p-- >0)&&!(g=f.next()).done;)y.push(g.value)}catch(E){b={error:E}}finally{try{g&&!g.done&&(d=f.return)&&d.call(f)}finally{if(b)throw b.error}}return y},s=this&&this.__spreadArray||function(h,p){for(var d=0,f=p.length,g=h.length;d<f;d++,g++)h[g]=p[d];return h};Object.defineProperty(c,"__esModule",{value:!0}),c.endWith=void 0;var u=t(62669),v=t(61692);function l(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return function(d){return u.concat(d,v.of.apply(void 0,s([],i(h))))}}c.endWith=l},95915:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.every=void 0;var i=t(38260),s=t(11978);function u(v,l){return i.operate(function(h,p){var d=0;h.subscribe(s.createOperatorSubscriber(p,function(f){v.call(l,f,d++,h)||(p.next(!1),p.complete())},function(){p.next(!0),p.complete()}))})}c.every=u},72846:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.exhaust=void 0;var i=t(72711);c.exhaust=i.exhaustAll},72711:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.exhaustAll=void 0;var i=t(92757),s=t(39597);function u(){return i.exhaustMap(s.identity)}c.exhaustAll=u},92757:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.exhaustMap=void 0;var i=t(75373),s=t(27865),u=t(38260),v=t(11978);function l(h,p){return p?function(d){return d.pipe(l(function(f,g){return s.innerFrom(h(f,g)).pipe(i.map(function(y,b){return p(f,y,g,b)}))}))}:u.operate(function(d,f){var g=0,y=null,b=!1;d.subscribe(v.createOperatorSubscriber(f,function(E){y||(y=v.createOperatorSubscriber(f,void 0,function(){y=null,b&&f.complete()}),s.innerFrom(h(E,g++)).subscribe(y))},function(){b=!0,!y&&f.complete()}))})}c.exhaustMap=l},33294:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.expand=void 0;var i=t(38260),s=t(81654);function u(v,l,h){return l===void 0&&(l=1/0),l=(l||0)<1?1/0:l,i.operate(function(p,d){return s.mergeInternals(p,d,v,l,void 0,!0,h)})}c.expand=u},12965:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.filter=void 0;var i=t(38260),s=t(11978);function u(v,l){return i.operate(function(h,p){var d=0;h.subscribe(s.createOperatorSubscriber(p,function(f){return v.call(l,f,d++)&&p.next(f)}))})}c.filter=u},86248:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.finalize=void 0;var i=t(38260);function s(u){return i.operate(function(v,l){try{v.subscribe(l)}finally{l.add(u)}})}c.finalize=s},87651:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.createFind=c.find=void 0;var i=t(38260),s=t(11978);function u(l,h){return i.operate(v(l,h,"value"))}c.find=u;function v(l,h,p){var d=p==="index";return function(f,g){var y=0;f.subscribe(s.createOperatorSubscriber(g,function(b){var E=y++;l.call(h,b,E,f)&&(g.next(d?E:b),g.complete())},function(){g.next(d?-1:void 0),g.complete()}))}}c.createFind=v},54343:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.findIndex=void 0;var i=t(38260),s=t(87651);function u(v,l){return i.operate(s.createFind(v,l,"index"))}c.findIndex=u},73285:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.first=void 0;var i=t(73136),s=t(12965),u=t(24543),v=t(96310),l=t(71910),h=t(39597);function p(d,f){var g=arguments.length>=2;return function(y){return y.pipe(d?s.filter(function(b,E){return d(b,E,y)}):h.identity,u.take(1),g?v.defaultIfEmpty(f):l.throwIfEmpty(function(){return new i.EmptyError}))}}c.first=p},18634:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.flatMap=void 0;var i=t(82200);c.flatMap=i.mergeMap},14474:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.groupBy=void 0;var i=t(8233),s=t(27865),u=t(51163),v=t(38260),l=t(11978);function h(p,d,f,g){return v.operate(function(y,b){var E;!d||typeof d=="function"?E=d:(f=d.duration,E=d.element,g=d.connector);var S=new Map,w=function(I){S.forEach(I),I(b)},x=function(I){return w(function(N){return N.error(I)})},P=0,R=!1,T=new l.OperatorSubscriber(b,function(I){try{var N=p(I),K=S.get(N);if(!K){S.set(N,K=g?g():new u.Subject);var _=A(N,K);if(b.next(_),f){var W=l.createOperatorSubscriber(K,function(){K.complete(),W?.unsubscribe()},void 0,void 0,function(){return S.delete(N)});T.add(s.innerFrom(f(_)).subscribe(W))}}K.next(E?E(I):I)}catch(j){x(j)}},function(){return w(function(I){return I.complete()})},x,function(){return S.clear()},function(){return R=!0,P===0});y.subscribe(T);function A(I,N){var K=new i.Observable(function(_){P++;var W=N.subscribe(_);return function(){W.unsubscribe(),--P===0&&R&&T.unsubscribe()}});return K.key=I,K}})}c.groupBy=h},53848:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.ignoreElements=void 0;var i=t(38260),s=t(11978),u=t(18433);function v(){return i.operate(function(l,h){l.subscribe(s.createOperatorSubscriber(h,u.noop))})}c.ignoreElements=v},95178:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isEmpty=void 0;var i=t(38260),s=t(11978);function u(){return i.operate(function(v,l){v.subscribe(s.createOperatorSubscriber(l,function(){l.next(!1),l.complete()},function(){l.next(!0),l.complete()}))})}c.isEmpty=u},5364:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.joinAllInternals=void 0;var i=t(39597),s=t(40406),u=t(71324),v=t(82200),l=t(45120);function h(p,d){return u.pipe(l.toArray(),v.mergeMap(function(f){return p(f)}),d?s.mapOneOrManyArgs(d):i.identity)}c.joinAllInternals=h},33805:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.last=void 0;var i=t(73136),s=t(12965),u=t(82856),v=t(71910),l=t(96310),h=t(39597);function p(d,f){var g=arguments.length>=2;return function(y){return y.pipe(d?s.filter(function(b,E){return d(b,E,y)}):h.identity,u.takeLast(1),g?l.defaultIfEmpty(f):v.throwIfEmpty(function(){return new i.EmptyError}))}}c.last=p},75373:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.map=void 0;var i=t(38260),s=t(11978);function u(v,l){return i.operate(function(h,p){var d=0;h.subscribe(s.createOperatorSubscriber(p,function(f){p.next(v.call(l,f,d++))}))})}c.map=u},99891:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.mapTo=void 0;var i=t(75373);function s(u){return i.map(function(){return u})}c.mapTo=s},14207:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.materialize=void 0;var i=t(80807),s=t(38260),u=t(11978);function v(){return s.operate(function(l,h){l.subscribe(u.createOperatorSubscriber(h,function(p){h.next(i.Notification.createNext(p))},function(){h.next(i.Notification.createComplete()),h.complete()},function(p){h.next(i.Notification.createError(p)),h.complete()}))})}c.materialize=v},31239:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.max=void 0;var i=t(11097),s=t(37546);function u(v){return i.reduce(s.isFunction(v)?function(l,h){return v(l,h)>0?l:h}:function(l,h){return l>h?l:h})}c.max=u},88186:function(C,c,t){"use strict";var i=this&&this.__read||function(f,g){var y=typeof Symbol=="function"&&f[Symbol.iterator];if(!y)return f;var b=y.call(f),E,S=[],w;try{for(;(g===void 0||g-- >0)&&!(E=b.next()).done;)S.push(E.value)}catch(x){w={error:x}}finally{try{E&&!E.done&&(y=b.return)&&y.call(b)}finally{if(w)throw w.error}}return S},s=this&&this.__spreadArray||function(f,g){for(var y=0,b=g.length,E=f.length;y<b;y++,E++)f[E]=g[y];return f};Object.defineProperty(c,"__esModule",{value:!0}),c.merge=void 0;var u=t(38260),v=t(33295),l=t(40978),h=t(13262),p=t(28267);function d(){for(var f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];var y=h.popScheduler(f),b=h.popNumber(f,1/0);return f=v.argsOrArgArray(f),u.operate(function(E,S){l.mergeAll(b)(p.from(s([E],i(f)),y)).subscribe(S)})}c.merge=d},40978:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.mergeAll=void 0;var i=t(82200),s=t(39597);function u(v){return v===void 0&&(v=1/0),i.mergeMap(s.identity,v)}c.mergeAll=u},81654:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.mergeInternals=void 0;var i=t(27865),s=t(33004),u=t(11978);function v(l,h,p,d,f,g,y,b){var E=[],S=0,w=0,x=!1,P=function(){x&&!E.length&&!S&&h.complete()},R=function(A){return S<d?T(A):E.push(A)},T=function(A){g&&h.next(A),S++;var I=!1;i.innerFrom(p(A,w++)).subscribe(u.createOperatorSubscriber(h,function(N){f?.(N),g?R(N):h.next(N)},function(){I=!0},void 0,function(){if(I)try{S--;for(var N=function(){var K=E.shift();y?s.executeSchedule(h,y,function(){return T(K)}):T(K)};E.length&&S<d;)N();P()}catch(K){h.error(K)}}))};return l.subscribe(u.createOperatorSubscriber(h,R,function(){x=!0,P()})),function(){b?.()}}c.mergeInternals=v},82200:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.mergeMap=void 0;var i=t(75373),s=t(27865),u=t(38260),v=t(81654),l=t(37546);function h(p,d,f){return f===void 0&&(f=1/0),l.isFunction(d)?h(function(g,y){return i.map(function(b,E){return d(g,b,y,E)})(s.innerFrom(p(g,y)))},f):(typeof d=="number"&&(f=d),u.operate(function(g,y){return v.mergeInternals(g,y,p,f)}))}c.mergeMap=h},84968:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.mergeMapTo=void 0;var i=t(82200),s=t(37546);function u(v,l,h){return h===void 0&&(h=1/0),s.isFunction(l)?i.mergeMap(function(){return v},l,h):(typeof l=="number"&&(h=l),i.mergeMap(function(){return v},h))}c.mergeMapTo=u},45176:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.mergeScan=void 0;var i=t(38260),s=t(81654);function u(v,l,h){return h===void 0&&(h=1/0),i.operate(function(p,d){var f=l;return s.mergeInternals(p,d,function(g,y){return v(f,g,y)},h,function(g){f=g},!1,void 0,function(){return f=null})})}c.mergeScan=u},86758:function(C,c,t){"use strict";var i=this&&this.__read||function(l,h){var p=typeof Symbol=="function"&&l[Symbol.iterator];if(!p)return l;var d=p.call(l),f,g=[],y;try{for(;(h===void 0||h-- >0)&&!(f=d.next()).done;)g.push(f.value)}catch(b){y={error:b}}finally{try{f&&!f.done&&(p=d.return)&&p.call(d)}finally{if(y)throw y.error}}return g},s=this&&this.__spreadArray||function(l,h){for(var p=0,d=h.length,f=l.length;p<d;p++,f++)l[f]=h[p];return l};Object.defineProperty(c,"__esModule",{value:!0}),c.mergeWith=void 0;var u=t(88186);function v(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];return u.merge.apply(void 0,s([],i(l)))}c.mergeWith=v},9230:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.min=void 0;var i=t(11097),s=t(37546);function u(v){return i.reduce(s.isFunction(v)?function(l,h){return v(l,h)<0?l:h}:function(l,h){return l<h?l:h})}c.min=u},25060:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.multicast=void 0;var i=t(79674),s=t(37546),u=t(16806);function v(l,h){var p=s.isFunction(l)?l:function(){return l};return s.isFunction(h)?u.connect(h,{connector:p}):function(d){return new i.ConnectableObservable(d,p)}}c.multicast=v},8360:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.observeOn=void 0;var i=t(33004),s=t(38260),u=t(11978);function v(l,h){return h===void 0&&(h=0),s.operate(function(p,d){p.subscribe(u.createOperatorSubscriber(d,function(f){return i.executeSchedule(d,l,function(){return d.next(f)},h)},function(){return i.executeSchedule(d,l,function(){return d.complete()},h)},function(f){return i.executeSchedule(d,l,function(){return d.error(f)},h)}))})}c.observeOn=v},18865:function(C,c,t){"use strict";var i=this&&this.__read||function(h,p){var d=typeof Symbol=="function"&&h[Symbol.iterator];if(!d)return h;var f=d.call(h),g,y=[],b;try{for(;(p===void 0||p-- >0)&&!(g=f.next()).done;)y.push(g.value)}catch(E){b={error:E}}finally{try{g&&!g.done&&(d=f.return)&&d.call(f)}finally{if(b)throw b.error}}return y},s=this&&this.__spreadArray||function(h,p){for(var d=0,f=p.length,g=h.length;d<f;d++,g++)h[g]=p[d];return h};Object.defineProperty(c,"__esModule",{value:!0}),c.onErrorResumeNext=c.onErrorResumeNextWith=void 0;var u=t(33295),v=t(87283);function l(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];var d=u.argsOrArgArray(h);return function(f){return v.onErrorResumeNext.apply(void 0,s([f],i(d)))}}c.onErrorResumeNextWith=l,c.onErrorResumeNext=l},52544:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.pairwise=void 0;var i=t(38260),s=t(11978);function u(){return i.operate(function(v,l){var h,p=!1;v.subscribe(s.createOperatorSubscriber(l,function(d){var f=h;h=d,p&&l.next([f,d]),p=!0}))})}c.pairwise=u},71189:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.pluck=void 0;var i=t(75373);function s(){for(var u=[],v=0;v<arguments.length;v++)u[v]=arguments[v];var l=u.length;if(l===0)throw new Error("list of properties cannot be empty.");return i.map(function(h){for(var p=h,d=0;d<l;d++){var f=p?.[u[d]];if(typeof f<"u")p=f;else return}return p})}c.pluck=s},26108:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.publish=void 0;var i=t(51163),s=t(25060),u=t(16806);function v(l){return l?function(h){return u.connect(l)(h)}:function(h){return s.multicast(new i.Subject)(h)}}c.publish=v},11714:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.publishBehavior=void 0;var i=t(85709),s=t(79674);function u(v){return function(l){var h=new i.BehaviorSubject(v);return new s.ConnectableObservable(l,function(){return h})}}c.publishBehavior=u},43729:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.publishLast=void 0;var i=t(9632),s=t(79674);function u(){return function(v){var l=new i.AsyncSubject;return new s.ConnectableObservable(v,function(){return l})}}c.publishLast=u},78277:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.publishReplay=void 0;var i=t(56146),s=t(25060),u=t(37546);function v(l,h,p,d){p&&!u.isFunction(p)&&(d=p);var f=u.isFunction(p)?p:void 0;return function(g){return s.multicast(new i.ReplaySubject(l,h,d),f)(g)}}c.publishReplay=v},58407:function(C,c,t){"use strict";var i=this&&this.__read||function(p,d){var f=typeof Symbol=="function"&&p[Symbol.iterator];if(!f)return p;var g=f.call(p),y,b=[],E;try{for(;(d===void 0||d-- >0)&&!(y=g.next()).done;)b.push(y.value)}catch(S){E={error:S}}finally{try{y&&!y.done&&(f=g.return)&&f.call(g)}finally{if(E)throw E.error}}return b},s=this&&this.__spreadArray||function(p,d){for(var f=0,g=d.length,y=p.length;f<g;f++,y++)p[y]=d[f];return p};Object.defineProperty(c,"__esModule",{value:!0}),c.raceWith=void 0;var u=t(68761),v=t(38260),l=t(39597);function h(){for(var p=[],d=0;d<arguments.length;d++)p[d]=arguments[d];return p.length?v.operate(function(f,g){u.raceInit(s([f],i(p)))(g)}):l.identity}c.raceWith=h},11097:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.reduce=void 0;var i=t(2603),s=t(38260);function u(v,l){return s.operate(i.scanInternals(v,l,arguments.length>=2,!1,!0))}c.reduce=u},45886:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.refCount=void 0;var i=t(38260),s=t(11978);function u(){return i.operate(function(v,l){var h=null;v._refCount++;var p=s.createOperatorSubscriber(l,void 0,void 0,void 0,function(){if(!v||v._refCount<=0||0<--v._refCount){h=null;return}var d=v._connection,f=h;h=null,d&&(!f||d===f)&&d.unsubscribe(),l.unsubscribe()});v.subscribe(p),p.closed||(h=v.connect())})}c.refCount=u},44708:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.repeat=void 0;var i=t(88391),s=t(38260),u=t(11978),v=t(27865),l=t(66564);function h(p){var d,f=1/0,g;return p!=null&&(typeof p=="object"?(d=p.count,f=d===void 0?1/0:d,g=p.delay):f=p),f<=0?function(){return i.EMPTY}:s.operate(function(y,b){var E=0,S,w=function(){if(S?.unsubscribe(),S=null,g!=null){var P=typeof g=="number"?l.timer(g):v.innerFrom(g(E)),R=u.createOperatorSubscriber(b,function(){R.unsubscribe(),x()});P.subscribe(R)}else x()},x=function(){var P=!1;S=y.subscribe(u.createOperatorSubscriber(b,void 0,function(){++E<f?S?w():P=!0:b.complete()})),P&&w()};x()})}c.repeat=h},64716:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.repeatWhen=void 0;var i=t(27865),s=t(51163),u=t(38260),v=t(11978);function l(h){return u.operate(function(p,d){var f,g=!1,y,b=!1,E=!1,S=function(){return E&&b&&(d.complete(),!0)},w=function(){return y||(y=new s.Subject,i.innerFrom(h(y)).subscribe(v.createOperatorSubscriber(d,function(){f?x():g=!0},function(){b=!0,S()}))),y},x=function(){E=!1,f=p.subscribe(v.createOperatorSubscriber(d,void 0,function(){E=!0,!S()&&w().next()})),g&&(f.unsubscribe(),f=null,g=!1,x())};x()})}c.repeatWhen=l},71411:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.retry=void 0;var i=t(38260),s=t(11978),u=t(39597),v=t(66564),l=t(27865);function h(p){p===void 0&&(p=1/0);var d;p&&typeof p=="object"?d=p:d={count:p};var f=d.count,g=f===void 0?1/0:f,y=d.delay,b=d.resetOnSuccess,E=b===void 0?!1:b;return g<=0?u.identity:i.operate(function(S,w){var x=0,P,R=function(){var T=!1;P=S.subscribe(s.createOperatorSubscriber(w,function(A){E&&(x=0),w.next(A)},void 0,function(A){if(x++<g){var I=function(){P?(P.unsubscribe(),P=null,R()):T=!0};if(y!=null){var N=typeof y=="number"?v.timer(y):l.innerFrom(y(A,x)),K=s.createOperatorSubscriber(w,function(){K.unsubscribe(),I()},function(){w.complete()});N.subscribe(K)}else I()}else w.error(A)})),T&&(P.unsubscribe(),P=null,R())};R()})}c.retry=h},96486:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.retryWhen=void 0;var i=t(27865),s=t(51163),u=t(38260),v=t(11978);function l(h){return u.operate(function(p,d){var f,g=!1,y,b=function(){f=p.subscribe(v.createOperatorSubscriber(d,void 0,void 0,function(E){y||(y=new s.Subject,i.innerFrom(h(y)).subscribe(v.createOperatorSubscriber(d,function(){return f?b():g=!0}))),y&&y.next(E)})),g&&(f.unsubscribe(),f=null,g=!1,b())};b()})}c.retryWhen=l},46682:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.sample=void 0;var i=t(27865),s=t(38260),u=t(18433),v=t(11978);function l(h){return s.operate(function(p,d){var f=!1,g=null;p.subscribe(v.createOperatorSubscriber(d,function(y){f=!0,g=y})),i.innerFrom(h).subscribe(v.createOperatorSubscriber(d,function(){if(f){f=!1;var y=g;g=null,d.next(y)}},u.noop))})}c.sample=l},1150:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.sampleTime=void 0;var i=t(62054),s=t(46682),u=t(89254);function v(l,h){return h===void 0&&(h=i.asyncScheduler),s.sample(u.interval(l,h))}c.sampleTime=v},96448:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scan=void 0;var i=t(38260),s=t(2603);function u(v,l){return i.operate(s.scanInternals(v,l,arguments.length>=2,!0))}c.scan=u},2603:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scanInternals=void 0;var i=t(11978);function s(u,v,l,h,p){return function(d,f){var g=l,y=v,b=0;d.subscribe(i.createOperatorSubscriber(f,function(E){var S=b++;y=g?u(y,E,S):(g=!0,E),h&&f.next(y)},p&&function(){g&&f.next(y),f.complete()}))}}c.scanInternals=s},21146:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.sequenceEqual=void 0;var i=t(38260),s=t(11978),u=t(27865);function v(h,p){return p===void 0&&(p=function(d,f){return d===f}),i.operate(function(d,f){var g=l(),y=l(),b=function(S){f.next(S),f.complete()},E=function(S,w){var x=s.createOperatorSubscriber(f,function(P){var R=w.buffer,T=w.complete;R.length===0?T?b(!1):S.buffer.push(P):!p(P,R.shift())&&b(!1)},function(){S.complete=!0;var P=w.complete,R=w.buffer;P&&b(R.length===0),x?.unsubscribe()});return x};d.subscribe(E(g,y)),u.innerFrom(h).subscribe(E(y,g))})}c.sequenceEqual=v;function l(){return{buffer:[],complete:!1}}},14062:function(C,c,t){"use strict";var i=this&&this.__read||function(f,g){var y=typeof Symbol=="function"&&f[Symbol.iterator];if(!y)return f;var b=y.call(f),E,S=[],w;try{for(;(g===void 0||g-- >0)&&!(E=b.next()).done;)S.push(E.value)}catch(x){w={error:x}}finally{try{E&&!E.done&&(y=b.return)&&y.call(b)}finally{if(w)throw w.error}}return S},s=this&&this.__spreadArray||function(f,g){for(var y=0,b=g.length,E=f.length;y<b;y++,E++)f[E]=g[y];return f};Object.defineProperty(c,"__esModule",{value:!0}),c.share=void 0;var u=t(27865),v=t(51163),l=t(23901),h=t(38260);function p(f){f===void 0&&(f={});var g=f.connector,y=g===void 0?function(){return new v.Subject}:g,b=f.resetOnError,E=b===void 0?!0:b,S=f.resetOnComplete,w=S===void 0?!0:S,x=f.resetOnRefCountZero,P=x===void 0?!0:x;return function(R){var T,A,I,N=0,K=!1,_=!1,W=function(){A?.unsubscribe(),A=void 0},j=function(){W(),T=I=void 0,K=_=!1},re=function(){var X=T;j(),X?.unsubscribe()};return h.operate(function(X,Z){N++,!_&&!K&&W();var J=I=I??y();Z.add(function(){N--,N===0&&!_&&!K&&(A=d(re,P))}),J.subscribe(Z),!T&&N>0&&(T=new l.SafeSubscriber({next:function(q){return J.next(q)},error:function(q){_=!0,W(),A=d(j,E,q),J.error(q)},complete:function(){K=!0,W(),A=d(j,w),J.complete()}}),u.innerFrom(X).subscribe(T))})(R)}}c.share=p;function d(f,g){for(var y=[],b=2;b<arguments.length;b++)y[b-2]=arguments[b];if(g===!0){f();return}if(g!==!1){var E=new l.SafeSubscriber({next:function(){E.unsubscribe(),f()}});return u.innerFrom(g.apply(void 0,s([],i(y)))).subscribe(E)}}},11979:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.shareReplay=void 0;var i=t(56146),s=t(14062);function u(v,l,h){var p,d,f,g,y=!1;return v&&typeof v=="object"?(p=v.bufferSize,g=p===void 0?1/0:p,d=v.windowTime,l=d===void 0?1/0:d,f=v.refCount,y=f===void 0?!1:f,h=v.scheduler):g=v??1/0,s.share({connector:function(){return new i.ReplaySubject(g,l,h)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:y})}c.shareReplay=u},36452:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.single=void 0;var i=t(73136),s=t(17930),u=t(37977),v=t(38260),l=t(11978);function h(p){return v.operate(function(d,f){var g=!1,y,b=!1,E=0;d.subscribe(l.createOperatorSubscriber(f,function(S){b=!0,(!p||p(S,E++,d))&&(g&&f.error(new s.SequenceError("Too many matching values")),g=!0,y=S)},function(){g?(f.next(y),f.complete()):f.error(b?new u.NotFoundError("No matching values"):new i.EmptyError)}))})}c.single=h},48530:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.skip=void 0;var i=t(12965);function s(u){return i.filter(function(v,l){return u<=l})}c.skip=s},99565:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.skipLast=void 0;var i=t(39597),s=t(38260),u=t(11978);function v(l){return l<=0?i.identity:s.operate(function(h,p){var d=new Array(l),f=0;return h.subscribe(u.createOperatorSubscriber(p,function(g){var y=f++;if(y<l)d[y]=g;else{var b=y%l,E=d[b];d[b]=g,p.next(E)}})),function(){d=null}})}c.skipLast=v},17114:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.skipUntil=void 0;var i=t(38260),s=t(11978),u=t(27865),v=t(18433);function l(h){return i.operate(function(p,d){var f=!1,g=s.createOperatorSubscriber(d,function(){g?.unsubscribe(),f=!0},v.noop);u.innerFrom(h).subscribe(g),p.subscribe(s.createOperatorSubscriber(d,function(y){return f&&d.next(y)}))})}c.skipUntil=l},34816:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.skipWhile=void 0;var i=t(38260),s=t(11978);function u(v){return i.operate(function(l,h){var p=!1,d=0;l.subscribe(s.createOperatorSubscriber(h,function(f){return(p||(p=!v(f,d++)))&&h.next(f)}))})}c.skipWhile=u},57730:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.startWith=void 0;var i=t(62669),s=t(13262),u=t(38260);function v(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];var p=s.popScheduler(l);return u.operate(function(d,f){(p?i.concat(l,d,p):i.concat(l,d)).subscribe(f)})}c.startWith=v},25557:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.subscribeOn=void 0;var i=t(38260);function s(u,v){return v===void 0&&(v=0),i.operate(function(l,h){h.add(u.schedule(function(){return l.subscribe(h)},v))})}c.subscribeOn=s},82715:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.switchAll=void 0;var i=t(53647),s=t(39597);function u(){return i.switchMap(s.identity)}c.switchAll=u},53647:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.switchMap=void 0;var i=t(27865),s=t(38260),u=t(11978);function v(l,h){return s.operate(function(p,d){var f=null,g=0,y=!1,b=function(){return y&&!f&&d.complete()};p.subscribe(u.createOperatorSubscriber(d,function(E){f?.unsubscribe();var S=0,w=g++;i.innerFrom(l(E,w)).subscribe(f=u.createOperatorSubscriber(d,function(x){return d.next(h?h(E,x,w,S++):x)},function(){f=null,b()}))},function(){y=!0,b()}))})}c.switchMap=v},3314:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.switchMapTo=void 0;var i=t(53647),s=t(37546);function u(v,l){return s.isFunction(l)?i.switchMap(function(){return v},l):i.switchMap(function(){return v})}c.switchMapTo=u},93365:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.switchScan=void 0;var i=t(53647),s=t(38260);function u(v,l){return s.operate(function(h,p){var d=l;return i.switchMap(function(f,g){return v(d,f,g)},function(f,g){return d=g,g})(h).subscribe(p),function(){d=null}})}c.switchScan=u},24543:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.take=void 0;var i=t(88391),s=t(38260),u=t(11978);function v(l){return l<=0?function(){return i.EMPTY}:s.operate(function(h,p){var d=0;h.subscribe(u.createOperatorSubscriber(p,function(f){++d<=l&&(p.next(f),l<=d&&p.complete())}))})}c.take=v},82856:function(C,c,t){"use strict";var i=this&&this.__values||function(h){var p=typeof Symbol=="function"&&Symbol.iterator,d=p&&h[p],f=0;if(d)return d.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&f>=h.length&&(h=void 0),{value:h&&h[f++],done:!h}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.takeLast=void 0;var s=t(88391),u=t(38260),v=t(11978);function l(h){return h<=0?function(){return s.EMPTY}:u.operate(function(p,d){var f=[];p.subscribe(v.createOperatorSubscriber(d,function(g){f.push(g),h<f.length&&f.shift()},function(){var g,y;try{for(var b=i(f),E=b.next();!E.done;E=b.next()){var S=E.value;d.next(S)}}catch(w){g={error:w}}finally{try{E&&!E.done&&(y=b.return)&&y.call(b)}finally{if(g)throw g.error}}d.complete()},void 0,function(){f=null}))})}c.takeLast=l},30632:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.takeUntil=void 0;var i=t(38260),s=t(11978),u=t(27865),v=t(18433);function l(h){return i.operate(function(p,d){u.innerFrom(h).subscribe(s.createOperatorSubscriber(d,function(){return d.complete()},v.noop)),!d.closed&&p.subscribe(d)})}c.takeUntil=l},27559:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.takeWhile=void 0;var i=t(38260),s=t(11978);function u(v,l){return l===void 0&&(l=!1),i.operate(function(h,p){var d=0;h.subscribe(s.createOperatorSubscriber(p,function(f){var g=v(f,d++);(g||l)&&p.next(f),!g&&p.complete()}))})}c.takeWhile=u},96708:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.tap=void 0;var i=t(37546),s=t(38260),u=t(11978),v=t(39597);function l(h,p,d){var f=i.isFunction(h)||p||d?{next:h,error:p,complete:d}:h;return f?s.operate(function(g,y){var b;(b=f.subscribe)===null||b===void 0||b.call(f);var E=!0;g.subscribe(u.createOperatorSubscriber(y,function(S){var w;(w=f.next)===null||w===void 0||w.call(f,S),y.next(S)},function(){var S;E=!1,(S=f.complete)===null||S===void 0||S.call(f),y.complete()},function(S){var w;E=!1,(w=f.error)===null||w===void 0||w.call(f,S),y.error(S)},function(){var S,w;E&&((S=f.unsubscribe)===null||S===void 0||S.call(f)),(w=f.finalize)===null||w===void 0||w.call(f)}))}):v.identity}c.tap=l},24102:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.throttle=c.defaultThrottleConfig=void 0;var i=t(38260),s=t(11978),u=t(27865);c.defaultThrottleConfig={leading:!0,trailing:!1};function v(l,h){return h===void 0&&(h=c.defaultThrottleConfig),i.operate(function(p,d){var f=h.leading,g=h.trailing,y=!1,b=null,E=null,S=!1,w=function(){E?.unsubscribe(),E=null,g&&(R(),S&&d.complete())},x=function(){E=null,S&&d.complete()},P=function(T){return E=u.innerFrom(l(T)).subscribe(s.createOperatorSubscriber(d,w,x))},R=function(){if(y){y=!1;var T=b;b=null,d.next(T),!S&&P(T)}};p.subscribe(s.createOperatorSubscriber(d,function(T){y=!0,b=T,!(E&&!E.closed)&&(f?R():P(T))},function(){S=!0,!(g&&y&&E&&!E.closed)&&d.complete()}))})}c.throttle=v},29511:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.throttleTime=void 0;var i=t(62054),s=t(24102),u=t(66564);function v(l,h,p){h===void 0&&(h=i.asyncScheduler),p===void 0&&(p=s.defaultThrottleConfig);var d=u.timer(l,h);return s.throttle(function(){return d},p)}c.throttleTime=v},71910:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.throwIfEmpty=void 0;var i=t(73136),s=t(38260),u=t(11978);function v(h){return h===void 0&&(h=l),s.operate(function(p,d){var f=!1;p.subscribe(u.createOperatorSubscriber(d,function(g){f=!0,d.next(g)},function(){return f?d.complete():d.error(h())}))})}c.throwIfEmpty=v;function l(){return new i.EmptyError}},14712:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.TimeInterval=c.timeInterval=void 0;var i=t(62054),s=t(38260),u=t(11978);function v(h){return h===void 0&&(h=i.asyncScheduler),s.operate(function(p,d){var f=h.now();p.subscribe(u.createOperatorSubscriber(d,function(g){var y=h.now(),b=y-f;f=y,d.next(new l(g,b))}))})}c.timeInterval=v;var l=function(){function h(p,d){this.value=p,this.interval=d}return h}();c.TimeInterval=l},40096:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.timeout=c.TimeoutError=void 0;var i=t(62054),s=t(46894),u=t(38260),v=t(27865),l=t(43723),h=t(11978),p=t(33004);c.TimeoutError=l.createErrorClass(function(g){return function(b){b===void 0&&(b=null),g(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=b}});function d(g,y){var b=s.isValidDate(g)?{first:g}:typeof g=="number"?{each:g}:g,E=b.first,S=b.each,w=b.with,x=w===void 0?f:w,P=b.scheduler,R=P===void 0?y??i.asyncScheduler:P,T=b.meta,A=T===void 0?null:T;if(E==null&&S==null)throw new TypeError("No timeout provided.");return u.operate(function(I,N){var K,_,W=null,j=0,re=function(X){_=p.executeSchedule(N,R,function(){try{K.unsubscribe(),v.innerFrom(x({meta:A,lastValue:W,seen:j})).subscribe(N)}catch(Z){N.error(Z)}},X)};K=I.subscribe(h.createOperatorSubscriber(N,function(X){_?.unsubscribe(),j++,N.next(W=X),S>0&&re(S)},void 0,void 0,function(){_?.closed||_?.unsubscribe(),W=null})),!j&&re(E!=null?typeof E=="number"?E:+E-R.now():S)})}c.timeout=d;function f(g){throw new c.TimeoutError(g)}},14784:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.timeoutWith=void 0;var i=t(62054),s=t(46894),u=t(40096);function v(l,h,p){var d,f,g;if(p=p??i.async,s.isValidDate(l)?d=l:typeof l=="number"&&(f=l),h)g=function(){return h};else throw new TypeError("No observable provided to switch to");if(d==null&&f==null)throw new TypeError("No timeout provided.");return u.timeout({first:d,each:f,scheduler:p,with:g})}c.timeoutWith=v},11333:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.timestamp=void 0;var i=t(85033),s=t(75373);function u(v){return v===void 0&&(v=i.dateTimestampProvider),s.map(function(l){return{value:l,timestamp:v.now()}})}c.timestamp=u},45120:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.toArray=void 0;var i=t(11097),s=t(38260),u=function(l,h){return l.push(h),l};function v(){return s.operate(function(l,h){i.reduce(u,[])(l).subscribe(h)})}c.toArray=v},20319:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.window=void 0;var i=t(51163),s=t(38260),u=t(11978),v=t(18433),l=t(27865);function h(p){return s.operate(function(d,f){var g=new i.Subject;f.next(g.asObservable());var y=function(b){g.error(b),f.error(b)};return d.subscribe(u.createOperatorSubscriber(f,function(b){return g?.next(b)},function(){g.complete(),f.complete()},y)),l.innerFrom(p).subscribe(u.createOperatorSubscriber(f,function(){g.complete(),f.next(g=new i.Subject)},v.noop,y)),function(){g?.unsubscribe(),g=null}})}c.window=h},25327:function(C,c,t){"use strict";var i=this&&this.__values||function(h){var p=typeof Symbol=="function"&&Symbol.iterator,d=p&&h[p],f=0;if(d)return d.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&f>=h.length&&(h=void 0),{value:h&&h[f++],done:!h}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.windowCount=void 0;var s=t(51163),u=t(38260),v=t(11978);function l(h,p){p===void 0&&(p=0);var d=p>0?p:h;return u.operate(function(f,g){var y=[new s.Subject],b=[],E=0;g.next(y[0].asObservable()),f.subscribe(v.createOperatorSubscriber(g,function(S){var w,x;try{for(var P=i(y),R=P.next();!R.done;R=P.next()){var T=R.value;T.next(S)}}catch(N){w={error:N}}finally{try{R&&!R.done&&(x=P.return)&&x.call(P)}finally{if(w)throw w.error}}var A=E-h+1;if(A>=0&&A%d===0&&y.shift().complete(),++E%d===0){var I=new s.Subject;y.push(I),g.next(I.asObservable())}},function(){for(;y.length>0;)y.shift().complete();g.complete()},function(S){for(;y.length>0;)y.shift().error(S);g.error(S)},function(){b=null,y=null}))})}c.windowCount=l},52727:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.windowTime=void 0;var i=t(51163),s=t(62054),u=t(33834),v=t(38260),l=t(11978),h=t(59586),p=t(13262),d=t(33004);function f(g){for(var y,b,E=[],S=1;S<arguments.length;S++)E[S-1]=arguments[S];var w=(y=p.popScheduler(E))!==null&&y!==void 0?y:s.asyncScheduler,x=(b=E[0])!==null&&b!==void 0?b:null,P=E[1]||1/0;return v.operate(function(R,T){var A=[],I=!1,N=function(j){var re=j.window,X=j.subs;re.complete(),X.unsubscribe(),h.arrRemove(A,j),I&&K()},K=function(){if(A){var j=new u.Subscription;T.add(j);var re=new i.Subject,X={window:re,subs:j,seen:0};A.push(X),T.next(re.asObservable()),d.executeSchedule(j,w,function(){return N(X)},g)}};x!==null&&x>=0?d.executeSchedule(T,w,K,x,!0):I=!0,K();var _=function(j){return A.slice().forEach(j)},W=function(j){_(function(re){var X=re.window;return j(X)}),j(T),T.unsubscribe()};return R.subscribe(l.createOperatorSubscriber(T,function(j){_(function(re){re.window.next(j),P<=++re.seen&&N(re)})},function(){return W(function(j){return j.complete()})},function(j){return W(function(re){return re.error(j)})})),function(){A=null}})}c.windowTime=f},43292:function(C,c,t){"use strict";var i=this&&this.__values||function(g){var y=typeof Symbol=="function"&&Symbol.iterator,b=y&&g[y],E=0;if(b)return b.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&E>=g.length&&(g=void 0),{value:g&&g[E++],done:!g}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.windowToggle=void 0;var s=t(51163),u=t(33834),v=t(38260),l=t(27865),h=t(11978),p=t(18433),d=t(59586);function f(g,y){return v.operate(function(b,E){var S=[],w=function(x){for(;0<S.length;)S.shift().error(x);E.error(x)};l.innerFrom(g).subscribe(h.createOperatorSubscriber(E,function(x){var P=new s.Subject;S.push(P);var R=new u.Subscription,T=function(){d.arrRemove(S,P),P.complete(),R.unsubscribe()},A;try{A=l.innerFrom(y(x))}catch(I){w(I);return}E.next(P.asObservable()),R.add(A.subscribe(h.createOperatorSubscriber(E,T,p.noop,w)))},p.noop)),b.subscribe(h.createOperatorSubscriber(E,function(x){var P,R,T=S.slice();try{for(var A=i(T),I=A.next();!I.done;I=A.next()){var N=I.value;N.next(x)}}catch(K){P={error:K}}finally{try{I&&!I.done&&(R=A.return)&&R.call(A)}finally{if(P)throw P.error}}},function(){for(;0<S.length;)S.shift().complete();E.complete()},w,function(){for(;0<S.length;)S.shift().unsubscribe()}))})}c.windowToggle=f},97241:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.windowWhen=void 0;var i=t(51163),s=t(38260),u=t(11978),v=t(27865);function l(h){return s.operate(function(p,d){var f,g,y=function(E){f.error(E),d.error(E)},b=function(){g?.unsubscribe(),f?.complete(),f=new i.Subject,d.next(f.asObservable());var E;try{E=v.innerFrom(h())}catch(S){y(S);return}E.subscribe(g=u.createOperatorSubscriber(d,b,b,y))};b(),p.subscribe(u.createOperatorSubscriber(d,function(E){return f.next(E)},function(){f.complete(),d.complete()},y,function(){g?.unsubscribe(),f=null}))})}c.windowWhen=l},67477:function(C,c,t){"use strict";var i=this&&this.__read||function(g,y){var b=typeof Symbol=="function"&&g[Symbol.iterator];if(!b)return g;var E=b.call(g),S,w=[],x;try{for(;(y===void 0||y-- >0)&&!(S=E.next()).done;)w.push(S.value)}catch(P){x={error:P}}finally{try{S&&!S.done&&(b=E.return)&&b.call(E)}finally{if(x)throw x.error}}return w},s=this&&this.__spreadArray||function(g,y){for(var b=0,E=y.length,S=g.length;b<E;b++,S++)g[S]=y[b];return g};Object.defineProperty(c,"__esModule",{value:!0}),c.withLatestFrom=void 0;var u=t(38260),v=t(11978),l=t(27865),h=t(39597),p=t(18433),d=t(13262);function f(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];var b=d.popResultSelector(g);return u.operate(function(E,S){for(var w=g.length,x=new Array(w),P=g.map(function(){return!1}),R=!1,T=function(I){l.innerFrom(g[I]).subscribe(v.createOperatorSubscriber(S,function(N){x[I]=N,!R&&!P[I]&&(P[I]=!0,(R=P.every(h.identity))&&(P=null))},p.noop))},A=0;A<w;A++)T(A);E.subscribe(v.createOperatorSubscriber(S,function(I){if(R){var N=s([I],i(x));S.next(b?b.apply(void 0,s([],i(N))):N)}}))})}c.withLatestFrom=f},78867:function(C,c,t){"use strict";var i=this&&this.__read||function(h,p){var d=typeof Symbol=="function"&&h[Symbol.iterator];if(!d)return h;var f=d.call(h),g,y=[],b;try{for(;(p===void 0||p-- >0)&&!(g=f.next()).done;)y.push(g.value)}catch(E){b={error:E}}finally{try{g&&!g.done&&(d=f.return)&&d.call(f)}finally{if(b)throw b.error}}return y},s=this&&this.__spreadArray||function(h,p){for(var d=0,f=p.length,g=h.length;d<f;d++,g++)h[g]=p[d];return h};Object.defineProperty(c,"__esModule",{value:!0}),c.zip=void 0;var u=t(12990),v=t(38260);function l(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return v.operate(function(d,f){u.zip.apply(void 0,s([d],i(h))).subscribe(f)})}c.zip=l},68802:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.zipAll=void 0;var i=t(12990),s=t(5364);function u(v){return s.joinAllInternals(i.zip,v)}c.zipAll=u},89404:function(C,c,t){"use strict";var i=this&&this.__read||function(l,h){var p=typeof Symbol=="function"&&l[Symbol.iterator];if(!p)return l;var d=p.call(l),f,g=[],y;try{for(;(h===void 0||h-- >0)&&!(f=d.next()).done;)g.push(f.value)}catch(b){y={error:b}}finally{try{f&&!f.done&&(p=d.return)&&p.call(d)}finally{if(y)throw y.error}}return g},s=this&&this.__spreadArray||function(l,h){for(var p=0,d=h.length,f=l.length;p<d;p++,f++)l[f]=h[p];return l};Object.defineProperty(c,"__esModule",{value:!0}),c.zipWith=void 0;var u=t(78867);function v(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];return u.zip.apply(void 0,s([],i(l)))}c.zipWith=v},91671:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scheduleArray=void 0;var i=t(8233);function s(u,v){return new i.Observable(function(l){var h=0;return v.schedule(function(){h===u.length?l.complete():(l.next(u[h++]),l.closed||this.schedule())})})}c.scheduleArray=s},55136:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scheduleAsyncIterable=void 0;var i=t(8233),s=t(33004);function u(v,l){if(!v)throw new Error("Iterable cannot be null");return new i.Observable(function(h){s.executeSchedule(h,l,function(){var p=v[Symbol.asyncIterator]();s.executeSchedule(h,l,function(){p.next().then(function(d){d.done?h.complete():h.next(d.value)})},0,!0)})})}c.scheduleAsyncIterable=u},7793:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scheduleIterable=void 0;var i=t(8233),s=t(37081),u=t(37546),v=t(33004);function l(h,p){return new i.Observable(function(d){var f;return v.executeSchedule(d,p,function(){f=h[s.iterator](),v.executeSchedule(d,p,function(){var g,y,b;try{g=f.next(),y=g.value,b=g.done}catch(E){d.error(E);return}b?d.complete():d.next(y)},0,!0)}),function(){return u.isFunction(f?.return)&&f.return()}})}c.scheduleIterable=l},92623:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scheduleObservable=void 0;var i=t(27865),s=t(8360),u=t(25557);function v(l,h){return i.innerFrom(l).pipe(u.subscribeOn(h),s.observeOn(h))}c.scheduleObservable=v},55350:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.schedulePromise=void 0;var i=t(27865),s=t(8360),u=t(25557);function v(l,h){return i.innerFrom(l).pipe(u.subscribeOn(h),s.observeOn(h))}c.schedulePromise=v},9061:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scheduleReadableStreamLike=void 0;var i=t(55136),s=t(28824);function u(v,l){return i.scheduleAsyncIterable(s.readableStreamLikeToAsyncGenerator(v),l)}c.scheduleReadableStreamLike=u},2144:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scheduled=void 0;var i=t(92623),s=t(55350),u=t(91671),v=t(7793),l=t(55136),h=t(15474),p=t(30409),d=t(21576),f=t(85765),g=t(36052),y=t(72031),b=t(28824),E=t(9061);function S(w,x){if(w!=null){if(h.isInteropObservable(w))return i.scheduleObservable(w,x);if(d.isArrayLike(w))return u.scheduleArray(w,x);if(p.isPromise(w))return s.schedulePromise(w,x);if(g.isAsyncIterable(w))return l.scheduleAsyncIterable(w,x);if(f.isIterable(w))return v.scheduleIterable(w,x);if(b.isReadableStreamLike(w))return E.scheduleReadableStreamLike(w,x)}throw y.createInvalidObservableTypeError(w)}c.scheduled=S},99659:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var v=function(l,h){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(p[f]=d[f])},v(l,h)};return function(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");v(l,h);function p(){this.constructor=l}l.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.Action=void 0;var s=t(33834),u=function(v){i(l,v);function l(h,p){return v.call(this)||this}return l.prototype.schedule=function(h,p){return p===void 0&&(p=0),this},l}(s.Subscription);c.Action=u},20098:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var l=function(h,p){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(d[g]=f[g])},l(h,p)};return function(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");l(h,p);function d(){this.constructor=h}h.prototype=p===null?Object.create(p):(d.prototype=p.prototype,new d)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AnimationFrameAction=void 0;var s=t(20023),u=t(50493),v=function(l){i(h,l);function h(p,d){var f=l.call(this,p,d)||this;return f.scheduler=p,f.work=d,f}return h.prototype.requestAsyncId=function(p,d,f){return f===void 0&&(f=0),f!==null&&f>0?l.prototype.requestAsyncId.call(this,p,d,f):(p.actions.push(this),p._scheduled||(p._scheduled=u.animationFrameProvider.requestAnimationFrame(function(){return p.flush(void 0)})))},h.prototype.recycleAsyncId=function(p,d,f){var g;if(f===void 0&&(f=0),f!=null?f>0:this.delay>0)return l.prototype.recycleAsyncId.call(this,p,d,f);var y=p.actions;d!=null&&((g=y[y.length-1])===null||g===void 0?void 0:g.id)!==d&&(u.animationFrameProvider.cancelAnimationFrame(d),p._scheduled=void 0)},h}(s.AsyncAction);c.AnimationFrameAction=v},33203:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var v=function(l,h){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(p[f]=d[f])},v(l,h)};return function(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");v(l,h);function p(){this.constructor=l}l.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AnimationFrameScheduler=void 0;var s=t(95522),u=function(v){i(l,v);function l(){return v!==null&&v.apply(this,arguments)||this}return l.prototype.flush=function(h){this._active=!0;var p=this._scheduled;this._scheduled=void 0;var d=this.actions,f;h=h||d.shift();do if(f=h.execute(h.state,h.delay))break;while((h=d[0])&&h.id===p&&d.shift());if(this._active=!1,f){for(;(h=d[0])&&h.id===p&&d.shift();)h.unsubscribe();throw f}},l}(s.AsyncScheduler);c.AnimationFrameScheduler=u},58241:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var l=function(h,p){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(d[g]=f[g])},l(h,p)};return function(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");l(h,p);function d(){this.constructor=h}h.prototype=p===null?Object.create(p):(d.prototype=p.prototype,new d)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AsapAction=void 0;var s=t(20023),u=t(38633),v=function(l){i(h,l);function h(p,d){var f=l.call(this,p,d)||this;return f.scheduler=p,f.work=d,f}return h.prototype.requestAsyncId=function(p,d,f){return f===void 0&&(f=0),f!==null&&f>0?l.prototype.requestAsyncId.call(this,p,d,f):(p.actions.push(this),p._scheduled||(p._scheduled=u.immediateProvider.setImmediate(p.flush.bind(p,void 0))))},h.prototype.recycleAsyncId=function(p,d,f){var g;if(f===void 0&&(f=0),f!=null?f>0:this.delay>0)return l.prototype.recycleAsyncId.call(this,p,d,f);var y=p.actions;d!=null&&((g=y[y.length-1])===null||g===void 0?void 0:g.id)!==d&&(u.immediateProvider.clearImmediate(d),p._scheduled=void 0)},h}(s.AsyncAction);c.AsapAction=v},45589:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var v=function(l,h){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(p[f]=d[f])},v(l,h)};return function(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");v(l,h);function p(){this.constructor=l}l.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AsapScheduler=void 0;var s=t(95522),u=function(v){i(l,v);function l(){return v!==null&&v.apply(this,arguments)||this}return l.prototype.flush=function(h){this._active=!0;var p=this._scheduled;this._scheduled=void 0;var d=this.actions,f;h=h||d.shift();do if(f=h.execute(h.state,h.delay))break;while((h=d[0])&&h.id===p&&d.shift());if(this._active=!1,f){for(;(h=d[0])&&h.id===p&&d.shift();)h.unsubscribe();throw f}},l}(s.AsyncScheduler);c.AsapScheduler=u},20023:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var h=function(p,d){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,g){f.__proto__=g}||function(f,g){for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(f[y]=g[y])},h(p,d)};return function(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");h(p,d);function f(){this.constructor=p}p.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AsyncAction=void 0;var s=t(99659),u=t(61003),v=t(59586),l=function(h){i(p,h);function p(d,f){var g=h.call(this,d,f)||this;return g.scheduler=d,g.work=f,g.pending=!1,g}return p.prototype.schedule=function(d,f){var g;if(f===void 0&&(f=0),this.closed)return this;this.state=d;var y=this.id,b=this.scheduler;return y!=null&&(this.id=this.recycleAsyncId(b,y,f)),this.pending=!0,this.delay=f,this.id=(g=this.id)!==null&&g!==void 0?g:this.requestAsyncId(b,this.id,f),this},p.prototype.requestAsyncId=function(d,f,g){return g===void 0&&(g=0),u.intervalProvider.setInterval(d.flush.bind(d,this),g)},p.prototype.recycleAsyncId=function(d,f,g){if(g===void 0&&(g=0),g!=null&&this.delay===g&&this.pending===!1)return f;f!=null&&u.intervalProvider.clearInterval(f)},p.prototype.execute=function(d,f){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var g=this._execute(d,f);if(g)return g;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},p.prototype._execute=function(d,f){var g=!1,y;try{this.work(d)}catch(b){g=!0,y=b||new Error("Scheduled action threw falsy error")}if(g)return this.unsubscribe(),y},p.prototype.unsubscribe=function(){if(!this.closed){var d=this,f=d.id,g=d.scheduler,y=g.actions;this.work=this.state=this.scheduler=null,this.pending=!1,v.arrRemove(y,this),f!=null&&(this.id=this.recycleAsyncId(g,f,null)),this.delay=null,h.prototype.unsubscribe.call(this)}},p}(s.Action);c.AsyncAction=l},95522:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var v=function(l,h){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(p[f]=d[f])},v(l,h)};return function(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");v(l,h);function p(){this.constructor=l}l.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.AsyncScheduler=void 0;var s=t(83909),u=function(v){i(l,v);function l(h,p){p===void 0&&(p=s.Scheduler.now);var d=v.call(this,h,p)||this;return d.actions=[],d._active=!1,d}return l.prototype.flush=function(h){var p=this.actions;if(this._active){p.push(h);return}var d;this._active=!0;do if(d=h.execute(h.state,h.delay))break;while(h=p.shift());if(this._active=!1,d){for(;h=p.shift();)h.unsubscribe();throw d}},l}(s.Scheduler);c.AsyncScheduler=u},24376:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var v=function(l,h){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(p[f]=d[f])},v(l,h)};return function(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");v(l,h);function p(){this.constructor=l}l.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.QueueAction=void 0;var s=t(20023),u=function(v){i(l,v);function l(h,p){var d=v.call(this,h,p)||this;return d.scheduler=h,d.work=p,d}return l.prototype.schedule=function(h,p){return p===void 0&&(p=0),p>0?v.prototype.schedule.call(this,h,p):(this.delay=p,this.state=h,this.scheduler.flush(this),this)},l.prototype.execute=function(h,p){return p>0||this.closed?v.prototype.execute.call(this,h,p):this._execute(h,p)},l.prototype.requestAsyncId=function(h,p,d){return d===void 0&&(d=0),d!=null&&d>0||d==null&&this.delay>0?v.prototype.requestAsyncId.call(this,h,p,d):(h.flush(this),0)},l}(s.AsyncAction);c.QueueAction=u},64971:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var v=function(l,h){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(p[f]=d[f])},v(l,h)};return function(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");v(l,h);function p(){this.constructor=l}l.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.QueueScheduler=void 0;var s=t(95522),u=function(v){i(l,v);function l(){return v!==null&&v.apply(this,arguments)||this}return l}(s.AsyncScheduler);c.QueueScheduler=u},46851:function(C,c,t){"use strict";var i=this&&this.__extends||function(){var p=function(d,f){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(g[b]=y[b])},p(d,f)};return function(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");p(d,f);function g(){this.constructor=d}d.prototype=f===null?Object.create(f):(g.prototype=f.prototype,new g)}}();Object.defineProperty(c,"__esModule",{value:!0}),c.VirtualAction=c.VirtualTimeScheduler=void 0;var s=t(20023),u=t(33834),v=t(95522),l=function(p){i(d,p);function d(f,g){f===void 0&&(f=h),g===void 0&&(g=1/0);var y=p.call(this,f,function(){return y.frame})||this;return y.maxFrames=g,y.frame=0,y.index=-1,y}return d.prototype.flush=function(){for(var f=this,g=f.actions,y=f.maxFrames,b,E;(E=g[0])&&E.delay<=y&&(g.shift(),this.frame=E.delay,!(b=E.execute(E.state,E.delay))););if(b){for(;E=g.shift();)E.unsubscribe();throw b}},d.frameTimeFactor=10,d}(v.AsyncScheduler);c.VirtualTimeScheduler=l;var h=function(p){i(d,p);function d(f,g,y){y===void 0&&(y=f.index+=1);var b=p.call(this,f,g)||this;return b.scheduler=f,b.work=g,b.index=y,b.active=!0,b.index=f.index=y,b}return d.prototype.schedule=function(f,g){if(g===void 0&&(g=0),Number.isFinite(g)){if(!this.id)return p.prototype.schedule.call(this,f,g);this.active=!1;var y=new d(this.scheduler,this.work);return this.add(y),y.schedule(f,g)}else return u.Subscription.EMPTY},d.prototype.requestAsyncId=function(f,g,y){y===void 0&&(y=0),this.delay=f.frame+y;var b=f.actions;return b.push(this),b.sort(d.sortActions),1},d.prototype.recycleAsyncId=function(f,g,y){y===void 0&&(y=0)},d.prototype._execute=function(f,g){if(this.active===!0)return p.prototype._execute.call(this,f,g)},d.sortActions=function(f,g){return f.delay===g.delay?f.index===g.index?0:f.index>g.index?1:-1:f.delay>g.delay?1:-1},d}(s.AsyncAction);c.VirtualAction=h},9523:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.animationFrame=c.animationFrameScheduler=void 0;var i=t(20098),s=t(33203);c.animationFrameScheduler=new s.AnimationFrameScheduler(i.AnimationFrameAction),c.animationFrame=c.animationFrameScheduler},50493:function(C,c,t){"use strict";var i=this&&this.__read||function(v,l){var h=typeof Symbol=="function"&&v[Symbol.iterator];if(!h)return v;var p=h.call(v),d,f=[],g;try{for(;(l===void 0||l-- >0)&&!(d=p.next()).done;)f.push(d.value)}catch(y){g={error:y}}finally{try{d&&!d.done&&(h=p.return)&&h.call(p)}finally{if(g)throw g.error}}return f},s=this&&this.__spreadArray||function(v,l){for(var h=0,p=l.length,d=v.length;h<p;h++,d++)v[d]=l[h];return v};Object.defineProperty(c,"__esModule",{value:!0}),c.animationFrameProvider=void 0;var u=t(33834);c.animationFrameProvider={schedule:function(v){var l=requestAnimationFrame,h=cancelAnimationFrame,p=c.animationFrameProvider.delegate;p&&(l=p.requestAnimationFrame,h=p.cancelAnimationFrame);var d=l(function(f){h=void 0,v(f)});return new u.Subscription(function(){return h?.(d)})},requestAnimationFrame:function(){for(var v=[],l=0;l<arguments.length;l++)v[l]=arguments[l];var h=c.animationFrameProvider.delegate;return(h?.requestAnimationFrame||requestAnimationFrame).apply(void 0,s([],i(v)))},cancelAnimationFrame:function(){for(var v=[],l=0;l<arguments.length;l++)v[l]=arguments[l];var h=c.animationFrameProvider.delegate;return(h?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,s([],i(v)))},delegate:void 0}},72770:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.asap=c.asapScheduler=void 0;var i=t(58241),s=t(45589);c.asapScheduler=new s.AsapScheduler(i.AsapAction),c.asap=c.asapScheduler},62054:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.async=c.asyncScheduler=void 0;var i=t(20023),s=t(95522);c.asyncScheduler=new s.AsyncScheduler(i.AsyncAction),c.async=c.asyncScheduler},85033:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.dateTimestampProvider=void 0,c.dateTimestampProvider={now:function(){return(c.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},38633:function(C,c,t){"use strict";var i=this&&this.__read||function(h,p){var d=typeof Symbol=="function"&&h[Symbol.iterator];if(!d)return h;var f=d.call(h),g,y=[],b;try{for(;(p===void 0||p-- >0)&&!(g=f.next()).done;)y.push(g.value)}catch(E){b={error:E}}finally{try{g&&!g.done&&(d=f.return)&&d.call(f)}finally{if(b)throw b.error}}return y},s=this&&this.__spreadArray||function(h,p){for(var d=0,f=p.length,g=h.length;d<f;d++,g++)h[g]=p[d];return h};Object.defineProperty(c,"__esModule",{value:!0}),c.immediateProvider=void 0;var u=t(59690),v=u.Immediate.setImmediate,l=u.Immediate.clearImmediate;c.immediateProvider={setImmediate:function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];var d=c.immediateProvider.delegate;return(d?.setImmediate||v).apply(void 0,s([],i(h)))},clearImmediate:function(h){var p=c.immediateProvider.delegate;return(p?.clearImmediate||l)(h)},delegate:void 0}},61003:function(C,c){"use strict";var t=this&&this.__read||function(s,u){var v=typeof Symbol=="function"&&s[Symbol.iterator];if(!v)return s;var l=v.call(s),h,p=[],d;try{for(;(u===void 0||u-- >0)&&!(h=l.next()).done;)p.push(h.value)}catch(f){d={error:f}}finally{try{h&&!h.done&&(v=l.return)&&v.call(l)}finally{if(d)throw d.error}}return p},i=this&&this.__spreadArray||function(s,u){for(var v=0,l=u.length,h=s.length;v<l;v++,h++)s[h]=u[v];return s};Object.defineProperty(c,"__esModule",{value:!0}),c.intervalProvider=void 0,c.intervalProvider={setInterval:function(s,u){for(var v=[],l=2;l<arguments.length;l++)v[l-2]=arguments[l];var h=c.intervalProvider.delegate;return h?.setInterval?h.setInterval.apply(h,i([s,u],t(v))):setInterval.apply(void 0,i([s,u],t(v)))},clearInterval:function(s){var u=c.intervalProvider.delegate;return(u?.clearInterval||clearInterval)(s)},delegate:void 0}},57144:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.performanceTimestampProvider=void 0,c.performanceTimestampProvider={now:function(){return(c.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},61362:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.queue=c.queueScheduler=void 0;var i=t(24376),s=t(64971);c.queueScheduler=new s.QueueScheduler(i.QueueAction),c.queue=c.queueScheduler},21977:function(C,c){"use strict";var t=this&&this.__read||function(s,u){var v=typeof Symbol=="function"&&s[Symbol.iterator];if(!v)return s;var l=v.call(s),h,p=[],d;try{for(;(u===void 0||u-- >0)&&!(h=l.next()).done;)p.push(h.value)}catch(f){d={error:f}}finally{try{h&&!h.done&&(v=l.return)&&v.call(l)}finally{if(d)throw d.error}}return p},i=this&&this.__spreadArray||function(s,u){for(var v=0,l=u.length,h=s.length;v<l;v++,h++)s[h]=u[v];return s};Object.defineProperty(c,"__esModule",{value:!0}),c.timeoutProvider=void 0,c.timeoutProvider={setTimeout:function(s,u){for(var v=[],l=2;l<arguments.length;l++)v[l-2]=arguments[l];var h=c.timeoutProvider.delegate;return h?.setTimeout?h.setTimeout.apply(h,i([s,u],t(v))):setTimeout.apply(void 0,i([s,u],t(v)))},clearTimeout:function(s){var u=c.timeoutProvider.delegate;return(u?.clearTimeout||clearTimeout)(s)},delegate:void 0}},37081:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.iterator=c.getSymbolIterator=void 0;function t(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}c.getSymbolIterator=t,c.iterator=t()},62517:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.observable=void 0,c.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()},2327:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0})},44467:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.ArgumentOutOfRangeError=void 0;var i=t(43723);c.ArgumentOutOfRangeError=i.createErrorClass(function(s){return function(){s(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},73136:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.EmptyError=void 0;var i=t(43723);c.EmptyError=i.createErrorClass(function(s){return function(){s(this),this.name="EmptyError",this.message="no elements in sequence"}})},59690:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.TestTools=c.Immediate=void 0;var t=1,i,s={};function u(v){return v in s?(delete s[v],!0):!1}c.Immediate={setImmediate:function(v){var l=t++;return s[l]=!0,i||(i=Promise.resolve()),i.then(function(){return u(l)&&v()}),l},clearImmediate:function(v){u(v)}},c.TestTools={pending:function(){return Object.keys(s).length}}},37977:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.NotFoundError=void 0;var i=t(43723);c.NotFoundError=i.createErrorClass(function(s){return function(v){s(this),this.name="NotFoundError",this.message=v}})},19023:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.ObjectUnsubscribedError=void 0;var i=t(43723);c.ObjectUnsubscribedError=i.createErrorClass(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},17930:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SequenceError=void 0;var i=t(43723);c.SequenceError=i.createErrorClass(function(s){return function(v){s(this),this.name="SequenceError",this.message=v}})},64219:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.UnsubscriptionError=void 0;var i=t(43723);c.UnsubscriptionError=i.createErrorClass(function(s){return function(v){s(this),this.message=v?v.length+` errors occurred during unsubscription: `+v.map(function(l,h){return h+1+") "+l.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=v}})},13262:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.popNumber=c.popScheduler=c.popResultSelector=void 0;var i=t(37546),s=t(96318);function u(p){return p[p.length-1]}function v(p){return i.isFunction(u(p))?p.pop():void 0}c.popResultSelector=v;function l(p){return s.isScheduler(u(p))?p.pop():void 0}c.popScheduler=l;function h(p,d){return typeof u(p)=="number"?p.pop():d}c.popNumber=h},6124:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.argsArgArrayOrObject=void 0;var t=Array.isArray,i=Object.getPrototypeOf,s=Object.prototype,u=Object.keys;function v(h){if(h.length===1){var p=h[0];if(t(p))return{args:p,keys:null};if(l(p)){var d=u(p);return{args:d.map(function(f){return p[f]}),keys:d}}}return{args:h,keys:null}}c.argsArgArrayOrObject=v;function l(h){return h&&typeof h=="object"&&i(h)===s}},33295:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.argsOrArgArray=void 0;var t=Array.isArray;function i(s){return s.length===1&&t(s[0])?s[0]:s}c.argsOrArgArray=i},59586:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.arrRemove=void 0;function t(i,s){if(i){var u=i.indexOf(s);0<=u&&i.splice(u,1)}}c.arrRemove=t},43723:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.createErrorClass=void 0;function t(i){var s=function(v){Error.call(v),v.stack=new Error().stack},u=i(s);return u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u}c.createErrorClass=t},44705:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.createObject=void 0;function t(i,s){return i.reduce(function(u,v,l){return u[v]=s[l],u},{})}c.createObject=t},55056:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.captureError=c.errorContext=void 0;var i=t(66705),s=null;function u(l){if(i.config.useDeprecatedSynchronousErrorHandling){var h=!s;if(h&&(s={errorThrown:!1,error:null}),l(),h){var p=s,d=p.errorThrown,f=p.error;if(s=null,d)throw f}}else l()}c.errorContext=u;function v(l){i.config.useDeprecatedSynchronousErrorHandling&&s&&(s.errorThrown=!0,s.error=l)}c.captureError=v},33004:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.executeSchedule=void 0;function t(i,s,u,v,l){v===void 0&&(v=0),l===void 0&&(l=!1);var h=s.schedule(function(){u(),l?i.add(this.schedule(null,v)):this.unsubscribe()},v);if(i.add(h),!l)return h}c.executeSchedule=t},39597:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.identity=void 0;function t(i){return i}c.identity=t},21576:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isArrayLike=void 0,c.isArrayLike=function(t){return t&&typeof t.length=="number"&&typeof t!="function"}},36052:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isAsyncIterable=void 0;var i=t(37546);function s(u){return Symbol.asyncIterator&&i.isFunction(u?.[Symbol.asyncIterator])}c.isAsyncIterable=s},46894:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isValidDate=void 0;function t(i){return i instanceof Date&&!isNaN(i)}c.isValidDate=t},37546:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isFunction=void 0;function t(i){return typeof i=="function"}c.isFunction=t},15474:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isInteropObservable=void 0;var i=t(62517),s=t(37546);function u(v){return s.isFunction(v[i.observable])}c.isInteropObservable=u},85765:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isIterable=void 0;var i=t(37081),s=t(37546);function u(v){return s.isFunction(v?.[i.iterator])}c.isIterable=u},71618:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isObservable=void 0;var i=t(8233),s=t(37546);function u(v){return!!v&&(v instanceof i.Observable||s.isFunction(v.lift)&&s.isFunction(v.subscribe))}c.isObservable=u},30409:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isPromise=void 0;var i=t(37546);function s(u){return i.isFunction(u?.then)}c.isPromise=s},28824:function(C,c,t){"use strict";var i=this&&this.__generator||function(p,d){var f={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},g,y,b,E;return E={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function S(x){return function(P){return w([x,P])}}function w(x){if(g)throw new TypeError("Generator is already executing.");for(;f;)try{if(g=1,y&&(b=x[0]&2?y.return:x[0]?y.throw||((b=y.return)&&b.call(y),0):y.next)&&!(b=b.call(y,x[1])).done)return b;switch(y=0,b&&(x=[x[0]&2,b.value]),x[0]){case 0:case 1:b=x;break;case 4:return f.label++,{value:x[1],done:!1};case 5:f.label++,y=x[1],x=[0];continue;case 7:x=f.ops.pop(),f.trys.pop();continue;default:if(b=f.trys,!(b=b.length>0&&b[b.length-1])&&(x[0]===6||x[0]===2)){f=0;continue}if(x[0]===3&&(!b||x[1]>b[0]&&x[1]<b[3])){f.label=x[1];break}if(x[0]===6&&f.label<b[1]){f.label=b[1],b=x;break}if(b&&f.label<b[2]){f.label=b[2],f.ops.push(x);break}b[2]&&f.ops.pop(),f.trys.pop();continue}x=d.call(p,f)}catch(P){x=[6,P],y=0}finally{g=b=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}},s=this&&this.__await||function(p){return this instanceof s?(this.v=p,this):new s(p)},u=this&&this.__asyncGenerator||function(p,d,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g=f.apply(p,d||[]),y,b=[];return y={},E("next"),E("throw"),E("return"),y[Symbol.asyncIterator]=function(){return this},y;function E(T){g[T]&&(y[T]=function(A){return new Promise(function(I,N){b.push([T,A,I,N])>1||S(T,A)})})}function S(T,A){try{w(g[T](A))}catch(I){R(b[0][3],I)}}function w(T){T.value instanceof s?Promise.resolve(T.value.v).then(x,P):R(b[0][2],T)}function x(T){S("next",T)}function P(T){S("throw",T)}function R(T,A){T(A),b.shift(),b.length&&S(b[0][0],b[0][1])}};Object.defineProperty(c,"__esModule",{value:!0}),c.isReadableStreamLike=c.readableStreamLikeToAsyncGenerator=void 0;var v=t(37546);function l(p){return u(this,arguments,function(){var f,g,y,b;return i(this,function(E){switch(E.label){case 0:f=p.getReader(),E.label=1;case 1:E.trys.push([1,,9,10]),E.label=2;case 2:return[4,s(f.read())];case 3:return g=E.sent(),y=g.value,b=g.done,b?[4,s(void 0)]:[3,5];case 4:return[2,E.sent()];case 5:return[4,s(y)];case 6:return[4,E.sent()];case 7:return E.sent(),[3,2];case 8:return[3,10];case 9:return f.releaseLock(),[7];case 10:return[2]}})})}c.readableStreamLikeToAsyncGenerator=l;function h(p){return v.isFunction(p?.getReader)}c.isReadableStreamLike=h},96318:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isScheduler=void 0;var i=t(37546);function s(u){return u&&i.isFunction(u.schedule)}c.isScheduler=s},38260:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.operate=c.hasLift=void 0;var i=t(37546);function s(v){return i.isFunction(v?.lift)}c.hasLift=s;function u(v){return function(l){if(s(l))return l.lift(function(h){try{return v(h,this)}catch(p){this.error(p)}});throw new TypeError("Unable to lift unknown Observable type")}}c.operate=u},40406:function(C,c,t){"use strict";var i=this&&this.__read||function(p,d){var f=typeof Symbol=="function"&&p[Symbol.iterator];if(!f)return p;var g=f.call(p),y,b=[],E;try{for(;(d===void 0||d-- >0)&&!(y=g.next()).done;)b.push(y.value)}catch(S){E={error:S}}finally{try{y&&!y.done&&(f=g.return)&&f.call(g)}finally{if(E)throw E.error}}return b},s=this&&this.__spreadArray||function(p,d){for(var f=0,g=d.length,y=p.length;f<g;f++,y++)p[y]=d[f];return p};Object.defineProperty(c,"__esModule",{value:!0}),c.mapOneOrManyArgs=void 0;var u=t(75373),v=Array.isArray;function l(p,d){return v(d)?p.apply(void 0,s([],i(d))):p(d)}function h(p){return u.map(function(d){return l(p,d)})}c.mapOneOrManyArgs=h},18433:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.noop=void 0;function t(){}c.noop=t},94855:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.not=void 0;function t(i,s){return function(u,v){return!i.call(s,u,v)}}c.not=t},71324:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.pipeFromArray=c.pipe=void 0;var i=t(39597);function s(){for(var v=[],l=0;l<arguments.length;l++)v[l]=arguments[l];return u(v)}c.pipe=s;function u(v){return v.length===0?i.identity:v.length===1?v[0]:function(h){return v.reduce(function(p,d){return d(p)},h)}}c.pipeFromArray=u},20923:(C,c,t)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.reportUnhandledError=void 0;var i=t(66705),s=t(21977);function u(v){s.timeoutProvider.setTimeout(function(){var l=i.config.onUnhandledError;if(l)l(v);else throw v})}c.reportUnhandledError=u},72031:(C,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.createInvalidObservableTypeError=void 0;function t(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}c.createInvalidObservableTypeError=t},19826:(C,c,t)=>{"use strict";t.r(c),t.d(c,{ArgumentOutOfRangeError:()=>nt.W,AsyncSubject:()=>S.c,BehaviorSubject:()=>b.X,ConnectableObservable:()=>s.c,EMPTY:()=>ut.E,EmptyError:()=>Re.K,NEVER:()=>Jn.C,NotFoundError:()=>ue.d,Notification:()=>Se.P_,NotificationKind:()=>Se.W7,ObjectUnsubscribedError:()=>ae.N,Observable:()=>i.y,ReplaySubject:()=>E.t,Scheduler:()=>ie.b,SequenceError:()=>ve.c,Subject:()=>y.x,Subscriber:()=>fe.Lv,Subscription:()=>h.w0,TimeoutError:()=>Me.W,UnsubscriptionError:()=>Ye.B,VirtualAction:()=>te,VirtualTimeScheduler:()=>G,animationFrame:()=>ce,animationFrameScheduler:()=>pe,animationFrames:()=>d,asap:()=>Z,asapScheduler:()=>X,async:()=>J.P,asyncScheduler:()=>J.z,audit:()=>qt.U,auditTime:()=>vn.e,bindCallback:()=>$e,bindNodeCallback:()=>tt,buffer:()=>fn.f,bufferCount:()=>Tt.j,bufferTime:()=>dn.e,bufferToggle:()=>mn.P,bufferWhen:()=>Kn.R,catchError:()=>Dn.K,combineAll:()=>Vn.c,combineLatest:()=>ke.a,combineLatestAll:()=>or.h,combineLatestWith:()=>Qr.V,concat:()=>Oe.z,concatAll:()=>ni.u,concatMap:()=>yr.b,concatMapTo:()=>si.w,concatWith:()=>Yr.T,config:()=>it.v,connect:()=>Ci.$,connectable:()=>ct,count:()=>Ni.Q,debounce:()=>fa.D,debounceTime:()=>ha.b,defaultIfEmpty:()=>Ca.d,defer:()=>je.P,delay:()=>li.g,delayWhen:()=>la.j,dematerialize:()=>Oa.D,distinct:()=>wa.E,distinctUntilChanged:()=>vo.x,distinctUntilKeyChanged:()=>Qn.g,elementAt:()=>_r.T,empty:()=>ut.c,endWith:()=>$r.l,every:()=>Ti.y,exhaust:()=>xt.b,exhaustAll:()=>On.Y,exhaustMap:()=>Zn.z,expand:()=>Ur.j,filter:()=>Ke.h,finalize:()=>En.x,find:()=>ln.s,findIndex:()=>jn.c,first:()=>rr.P,firstValueFrom:()=>ht.z,flatMap:()=>Da.V,forkJoin:()=>Ne.D,from:()=>mt.D,fromEvent:()=>Kt,fromEventPattern:()=>Xt,generate:()=>rt.R,groupBy:()=>Mr.v,identity:()=>_e.y,ignoreElements:()=>Ir.l,iif:()=>Rt,interval:()=>rn.F,isEmpty:()=>Zr.x,isObservable:()=>we.b,last:()=>lr.Z,lastValueFrom:()=>Ge.n,map:()=>Jr.U,mapTo:()=>pi.h,materialize:()=>Ri.i,max:()=>Ki.F,merge:()=>sn.T,mergeAll:()=>ia.J,mergeMap:()=>Gt.z,mergeMapTo:()=>to.j,mergeScan:()=>ao.f,mergeWith:()=>Bo.b,min:()=>jo.V,multicast:()=>Jo.O,never:()=>Jn.F,noop:()=>me.Z,observable:()=>u.L,observeOn:()=>Ce.Q,of:()=>ze.of,onErrorResumeNext:()=>st.h,onErrorResumeNextWith:()=>Go.n,pairs:()=>en,pairwise:()=>wr.G,partition:()=>Ut,pipe:()=>he.z,pluck:()=>qi.j,publish:()=>ja.n,publishBehavior:()=>uo.n,publishLast:()=>wi.C,publishReplay:()=>ai._,queue:()=>k,queueScheduler:()=>$,race:()=>on.S,raceWith:()=>za.Q,range:()=>Tn,reduce:()=>Mt.u,refCount:()=>ii.x,repeat:()=>Gn.r,repeatWhen:()=>qn.a,retry:()=>Fr.X,retryWhen:()=>Ei.a,sample:()=>Wi.U,sampleTime:()=>Ya.b,scan:()=>qa.R,scheduled:()=>Ft.x,sequenceEqual:()=>se.N,share:()=>ye.B,shareReplay:()=>Xe.d,single:()=>yt.Z,skip:()=>Wt.T,skipLast:()=>Qt.W,skipUntil:()=>wn.u,skipWhile:()=>fr.n,startWith:()=>Or.O,subscribeOn:()=>At.R,switchAll:()=>Si.B,switchMap:()=>Fi.w,switchMapTo:()=>Bi.c,switchScan:()=>Ui.w,take:()=>vi.q,takeLast:()=>Xa.h,takeUntil:()=>Ko.R,takeWhile:()=>So.o,tap:()=>Lo.b,throttle:()=>us.P,throttleTime:()=>Ee.p,throwError:()=>An._,throwIfEmpty:()=>Y.T,timeInterval:()=>z.J,timeout:()=>Me.V,timeoutWith:()=>B.L,timer:()=>Zt.H,timestamp:()=>le.A,toArray:()=>Le.q,using:()=>ot,window:()=>Je.u,windowCount:()=>Ct.r,windowTime:()=>Vt.I,windowToggle:()=>bn.j,windowWhen:()=>Hn.Q,withLatestFrom:()=>br.M,zip:()=>We.$,zipAll:()=>ei.h,zipWith:()=>mi.y});var i=t(48592),s=t(59795),u=t(98638),v={now:function(){return(v.delegate||performance).now()},delegate:void 0},l=t(48314),h=t(19973),p={schedule:function(Li){var na=requestAnimationFrame,ji=cancelAnimationFrame,$a=p.delegate;$a&&(na=$a.requestAnimationFrame,ji=$a.cancelAnimationFrame);var Ha=na(function(Eo){ji=void 0,Li(Eo)});return new h.w0(function(){return ji?.(Ha)})},requestAnimationFrame:function(){for(var Li=[],na=0;na<arguments.length;na++)Li[na]=arguments[na];var ji=p.delegate;return(ji?.requestAnimationFrame||requestAnimationFrame).apply(void 0,(0,l.__spreadArray)([],(0,l.__read)(Li)))},cancelAnimationFrame:function(){for(var Li=[],na=0;na<arguments.length;na++)Li[na]=arguments[na];var ji=p.delegate;return(ji?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,(0,l.__spreadArray)([],(0,l.__read)(Li)))},delegate:void 0};function d(Li){return Li?f(Li):g}function f(Li){return new i.y(function(na){var ji=Li||v,$a=ji.now(),Ha=0,Eo=function(){na.closed||(Ha=p.requestAnimationFrame(function(Uo){Ha=0;var Ms=ji.now();na.next({timestamp:Li?Ms:Uo,elapsed:Ms-$a}),Eo()}))};return Eo(),function(){Ha&&p.cancelAnimationFrame(Ha)}})}var g=f(),y=t(69966),b=t(88646),E=t(37497),S=t(89371),w=t(7194),x=1,P,R={};function T(Li){return Li in R?(delete R[Li],!0):!1}var A={setImmediate:function(Li){var na=x++;return R[na]=!0,P||(P=Promise.resolve()),P.then(function(){return T(na)&&Li()}),na},clearImmediate:function(Li){T(Li)}},I={pending:function(){return Object.keys(R).length}},N=A.setImmediate,K=A.clearImmediate,_={setImmediate:function(){for(var Li=[],na=0;na<arguments.length;na++)Li[na]=arguments[na];var ji=_.delegate;return(ji?.setImmediate||N).apply(void 0,(0,l.__spreadArray)([],(0,l.__read)(Li)))},clearImmediate:function(Li){var na=_.delegate;return(na?.clearImmediate||K)(Li)},delegate:void 0},W=function(Li){(0,l.__extends)(na,Li);function na(ji,$a){var Ha=Li.call(this,ji,$a)||this;return Ha.scheduler=ji,Ha.work=$a,Ha}return na.prototype.requestAsyncId=function(ji,$a,Ha){return Ha===void 0&&(Ha=0),Ha!==null&&Ha>0?Li.prototype.requestAsyncId.call(this,ji,$a,Ha):(ji.actions.push(this),ji._scheduled||(ji._scheduled=_.setImmediate(ji.flush.bind(ji,void 0))))},na.prototype.recycleAsyncId=function(ji,$a,Ha){var Eo;if(Ha===void 0&&(Ha=0),Ha!=null?Ha>0:this.delay>0)return Li.prototype.recycleAsyncId.call(this,ji,$a,Ha);var Uo=ji.actions;$a!=null&&((Eo=Uo[Uo.length-1])===null||Eo===void 0?void 0:Eo.id)!==$a&&(_.clearImmediate($a),ji._scheduled=void 0)},na}(w.o),j=t(4285),re=function(Li){(0,l.__extends)(na,Li);function na(){return Li!==null&&Li.apply(this,arguments)||this}return na.prototype.flush=function(ji){this._active=!0;var $a=this._scheduled;this._scheduled=void 0;var Ha=this.actions,Eo;ji=ji||Ha.shift();do if(Eo=ji.execute(ji.state,ji.delay))break;while((ji=Ha[0])&&ji.id===$a&&Ha.shift());if(this._active=!1,Eo){for(;(ji=Ha[0])&&ji.id===$a&&Ha.shift();)ji.unsubscribe();throw Eo}},na}(j.v),X=new re(W),Z=X,J=t(85202),q=function(Li){(0,l.__extends)(na,Li);function na(ji,$a){var Ha=Li.call(this,ji,$a)||this;return Ha.scheduler=ji,Ha.work=$a,Ha}return na.prototype.schedule=function(ji,$a){return $a===void 0&&($a=0),$a>0?Li.prototype.schedule.call(this,ji,$a):(this.delay=$a,this.state=ji,this.scheduler.flush(this),this)},na.prototype.execute=function(ji,$a){return $a>0||this.closed?Li.prototype.execute.call(this,ji,$a):this._execute(ji,$a)},na.prototype.requestAsyncId=function(ji,$a,Ha){return Ha===void 0&&(Ha=0),Ha!=null&&Ha>0||Ha==null&&this.delay>0?Li.prototype.requestAsyncId.call(this,ji,$a,Ha):(ji.flush(this),0)},na}(w.o),L=function(Li){(0,l.__extends)(na,Li);function na(){return Li!==null&&Li.apply(this,arguments)||this}return na}(j.v),$=new L(q),k=$,F=function(Li){(0,l.__extends)(na,Li);function na(ji,$a){var Ha=Li.call(this,ji,$a)||this;return Ha.scheduler=ji,Ha.work=$a,Ha}return na.prototype.requestAsyncId=function(ji,$a,Ha){return Ha===void 0&&(Ha=0),Ha!==null&&Ha>0?Li.prototype.requestAsyncId.call(this,ji,$a,Ha):(ji.actions.push(this),ji._scheduled||(ji._scheduled=p.requestAnimationFrame(function(){return ji.flush(void 0)})))},na.prototype.recycleAsyncId=function(ji,$a,Ha){var Eo;if(Ha===void 0&&(Ha=0),Ha!=null?Ha>0:this.delay>0)return Li.prototype.recycleAsyncId.call(this,ji,$a,Ha);var Uo=ji.actions;$a!=null&&((Eo=Uo[Uo.length-1])===null||Eo===void 0?void 0:Eo.id)!==$a&&(p.cancelAnimationFrame($a),ji._scheduled=void 0)},na}(w.o),V=function(Li){(0,l.__extends)(na,Li);function na(){return Li!==null&&Li.apply(this,arguments)||this}return na.prototype.flush=function(ji){this._active=!0;var $a=this._scheduled;this._scheduled=void 0;var Ha=this.actions,Eo;ji=ji||Ha.shift();do if(Eo=ji.execute(ji.state,ji.delay))break;while((ji=Ha[0])&&ji.id===$a&&Ha.shift());if(this._active=!1,Eo){for(;(ji=Ha[0])&&ji.id===$a&&Ha.shift();)ji.unsubscribe();throw Eo}},na}(j.v),pe=new V(F),ce=pe,G=function(Li){(0,l.__extends)(na,Li);function na(ji,$a){ji===void 0&&(ji=te),$a===void 0&&($a=1/0);var Ha=Li.call(this,ji,function(){return Ha.frame})||this;return Ha.maxFrames=$a,Ha.frame=0,Ha.index=-1,Ha}return na.prototype.flush=function(){for(var ji=this,$a=ji.actions,Ha=ji.maxFrames,Eo,Uo;(Uo=$a[0])&&Uo.delay<=Ha&&($a.shift(),this.frame=Uo.delay,!(Eo=Uo.execute(Uo.state,Uo.delay))););if(Eo){for(;Uo=$a.shift();)Uo.unsubscribe();throw Eo}},na.frameTimeFactor=10,na}(j.v),te=function(Li){(0,l.__extends)(na,Li);function na(ji,$a,Ha){Ha===void 0&&(Ha=ji.index+=1);var Eo=Li.call(this,ji,$a)||this;return Eo.scheduler=ji,Eo.work=$a,Eo.index=Ha,Eo.active=!0,Eo.index=ji.index=Ha,Eo}return na.prototype.schedule=function(ji,$a){if($a===void 0&&($a=0),Number.isFinite($a)){if(!this.id)return Li.prototype.schedule.call(this,ji,$a);this.active=!1;var Ha=new na(this.scheduler,this.work);return this.add(Ha),Ha.schedule(ji,$a)}else return h.w0.EMPTY},na.prototype.requestAsyncId=function(ji,$a,Ha){Ha===void 0&&(Ha=0),this.delay=ji.frame+Ha;var Eo=ji.actions;return Eo.push(this),Eo.sort(na.sortActions),1},na.prototype.recycleAsyncId=function(ji,$a,Ha){Ha===void 0&&(Ha=0)},na.prototype._execute=function(ji,$a){if(this.active===!0)return Li.prototype._execute.call(this,ji,$a)},na.sortActions=function(ji,$a){return ji.delay===$a.delay?ji.index===$a.index?0:ji.index>$a.index?1:-1:ji.delay>$a.delay?1:-1},na}(w.o),ie=t(60578),fe=t(16993),Se=t(25830),he=t(15084),me=t(22484),_e=t(42250),we=t(7536),Ge=t(78209),ht=t(93352),nt=t(27217),Re=t(82197),ue=t(86486),ae=t(8647),ve=t(57523),Me=t(74790),Ye=t(14101),qe=t(6838),At=t(43970),It=t(68714),Ce=t(54459);function Ae(Li,na,ji,$a){if(ji)if((0,qe.K)(ji))$a=ji;else return function(){for(var Ha=[],Eo=0;Eo<arguments.length;Eo++)Ha[Eo]=arguments[Eo];return Ae(Li,na,$a).apply(this,Ha).pipe((0,It.Z)(ji))};return $a?function(){for(var Ha=[],Eo=0;Eo<arguments.length;Eo++)Ha[Eo]=arguments[Eo];return Ae(Li,na).apply(this,Ha).pipe((0,At.R)($a),(0,Ce.Q)($a))}:function(){for(var Ha=this,Eo=[],Uo=0;Uo<arguments.length;Uo++)Eo[Uo]=arguments[Uo];var Ms=new S.c,er=!0;return new i.y(function(Ar){var Kr=Ms.subscribe(Ar);if(er){er=!1;var ur=!1,Gr=!1;na.apply(Ha,(0,l.__spreadArray)((0,l.__spreadArray)([],(0,l.__read)(Eo)),[function(){for(var Pi=[],aa=0;aa<arguments.length;aa++)Pi[aa]=arguments[aa];if(Li){var Fa=Pi.shift();if(Fa!=null){Ms.error(Fa);return}}Ms.next(1<Pi.length?Pi:Pi[0]),Gr=!0,ur&&Ms.complete()}])),Gr&&Ms.complete(),ur=!0}return Kr})}}function $e(Li,na,ji){return Ae(!1,Li,na,ji)}function tt(Li,na,ji){return Ae(!0,Li,na,ji)}var ke=t(10409),Oe=t(56284),je=t(63384),Et={connector:function(){return new y.x},resetOnDisconnect:!0};function ct(Li,na){na===void 0&&(na=Et);var ji=null,$a=na.connector,Ha=na.resetOnDisconnect,Eo=Ha===void 0?!0:Ha,Uo=$a(),Ms=new i.y(function(er){return Uo.subscribe(er)});return Ms.connect=function(){return(!ji||ji.closed)&&(ji=(0,je.P)(function(){return Li}).subscribe(Uo),Eo&&ji.add(function(){return Uo=$a()})),ji},Ms}var ut=t(42420),Ne=t(89707),mt=t(91053),bt=t(27187),Gt=t(22479),hn=t(54940),Yt=t(23873),Bt=["addListener","removeListener"],Lt=["addEventListener","removeEventListener"],zt=["on","off"];function Kt(Li,na,ji,$a){if((0,Yt.m)(ji)&&($a=ji,ji=void 0),$a)return Kt(Li,na,ji).pipe((0,It.Z)($a));var Ha=(0,l.__read)(at(Li)?Lt.map(function(Ms){return function(er){return Li[Ms](na,er,ji)}}):Ve(Li)?Bt.map(vt(Li,na)):lt(Li)?zt.map(vt(Li,na)):[],2),Eo=Ha[0],Uo=Ha[1];if(!Eo&&(0,hn.z)(Li))return(0,Gt.z)(function(Ms){return Kt(Ms,na,ji)})((0,bt.Xf)(Li));if(!Eo)throw new TypeError("Invalid event target");return new i.y(function(Ms){var er=function(){for(var Ar=[],Kr=0;Kr<arguments.length;Kr++)Ar[Kr]=arguments[Kr];return Ms.next(1<Ar.length?Ar:Ar[0])};return Eo(er),function(){return Uo(er)}})}function vt(Li,na){return function(ji){return function($a){return Li[ji](na,$a)}}}function Ve(Li){return(0,Yt.m)(Li.addListener)&&(0,Yt.m)(Li.removeListener)}function lt(Li){return(0,Yt.m)(Li.on)&&(0,Yt.m)(Li.off)}function at(Li){return(0,Yt.m)(Li.addEventListener)&&(0,Yt.m)(Li.removeEventListener)}function Xt(Li,na,ji){return ji?Xt(Li,na).pipe((0,It.Z)(ji)):new i.y(function($a){var Ha=function(){for(var Uo=[],Ms=0;Ms<arguments.length;Ms++)Uo[Ms]=arguments[Ms];return $a.next(Uo.length===1?Uo[0]:Uo)},Eo=Li(Ha);return(0,Yt.m)(na)?function(){return na(Ha,Eo)}:void 0})}var rt=t(87730);function Rt(Li,na,ji){return(0,je.P)(function(){return Li()?na:ji})}var rn=t(93564),sn=t(6857),Jn=t(8496),ze=t(45383),st=t(90283);function en(Li,na){return(0,mt.D)(Object.entries(Li),na)}var wt=t(86925),Ke=t(56361);function Ut(Li,na,ji){return[(0,Ke.h)(na,ji)((0,bt.Xf)(Li)),(0,Ke.h)((0,wt.f)(na,ji))((0,bt.Xf)(Li))]}var on=t(85787);function Tn(Li,na,ji){if(na==null&&(na=Li,Li=0),na<=0)return ut.E;var $a=na+Li;return new i.y(ji?function(Ha){var Eo=Li;return ji.schedule(function(){Eo<$a?(Ha.next(Eo++),this.schedule()):Ha.complete()})}:function(Ha){for(var Eo=Li;Eo<$a&&!Ha.closed;)Ha.next(Eo++);Ha.complete()})}var An=t(91826),Zt=t(80852);function ot(Li,na){return new i.y(function(ji){var $a=Li(),Ha=na($a),Eo=Ha?(0,bt.Xf)(Ha):ut.E;return Eo.subscribe(ji),function(){$a&&$a.unsubscribe()}})}var We=t(98405),Ft=t(86175),it=t(19169),qt=t(45123),vn=t(35978),fn=t(22273),Tt=t(56960),dn=t(90006),mn=t(21275),Kn=t(72283),Dn=t(56469),Vn=t(6554),or=t(39338),Qr=t(10650),ni=t(59694),yr=t(9045),si=t(16057),Yr=t(64840),Ci=t(32654),Ni=t(33914),fa=t(69065),ha=t(61978),Ca=t(36686),li=t(19385),la=t(59587),Oa=t(33069),wa=t(95502),vo=t(50625),Qn=t(35857),_r=t(84629),$r=t(81046),Ti=t(22934),xt=t(10333),On=t(88699),Zn=t(58245),Ur=t(61086),En=t(90581),ln=t(78221),jn=t(49401),rr=t(775),Mr=t(77351),Ir=t(21008),Zr=t(15595),lr=t(93157),Jr=t(39343),pi=t(58885),Ri=t(57020),Ki=t(48606),ia=t(29655),Da=t(57402),to=t(19363),ao=t(10173),Bo=t(5165),jo=t(8693),Jo=t(13975),Go=t(50346),wr=t(96717),qi=t(89152),ja=t(48301),uo=t(88859),wi=t(88775),ai=t(54111),za=t(46268),Mt=t(60115),Gn=t(53146),qn=t(15357),Fr=t(10570),Ei=t(19985),ii=t(10558),Wi=t(77757),Ya=t(77008),qa=t(91729),se=t(12585),ye=t(32900),Xe=t(18600),yt=t(5058),Wt=t(42554),Qt=t(73086),wn=t(45375),fr=t(71780),Or=t(64811),Si=t(95311),Fi=t(90996),Bi=t(45393),Ui=t(53252),vi=t(84677),Xa=t(42271),Ko=t(24321),So=t(83639),Lo=t(76970),us=t(78766),Ee=t(44727),Y=t(23403),z=t(58453),B=t(78844),le=t(97347),Le=t(28037),Je=t(80430),Ct=t(94440),Vt=t(21071),bn=t(16096),Hn=t(41617),br=t(1002),ei=t(58769),mi=t(31990)},89371:(C,c,t)=>{"use strict";t.d(c,{c:()=>u});var i=t(48314),s=t(69966),u=function(v){(0,i.__extends)(l,v);function l(){var h=v!==null&&v.apply(this,arguments)||this;return h._value=null,h._hasValue=!1,h._isComplete=!1,h}return l.prototype._checkFinalizedStatuses=function(h){var p=this,d=p.hasError,f=p._hasValue,g=p._value,y=p.thrownError,b=p.isStopped,E=p._isComplete;d?h.error(y):(b||E)&&(f&&h.next(g),h.complete())},l.prototype.next=function(h){this.isStopped||(this._value=h,this._hasValue=!0)},l.prototype.complete=function(){var h=this,p=h._hasValue,d=h._value,f=h._isComplete;f||(this._isComplete=!0,p&&v.prototype.next.call(this,d),v.prototype.complete.call(this))},l}(s.x)},88646:(C,c,t)=>{"use strict";t.d(c,{X:()=>u});var i=t(48314),s=t(69966),u=function(v){(0,i.__extends)(l,v);function l(h){var p=v.call(this)||this;return p._value=h,p}return Object.defineProperty(l.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),l.prototype._subscribe=function(h){var p=v.prototype._subscribe.call(this,h);return!p.closed&&h.next(this._value),p},l.prototype.getValue=function(){var h=this,p=h.hasError,d=h.thrownError,f=h._value;if(p)throw d;return this._throwIfClosed(),f},l.prototype.next=function(h){v.prototype.next.call(this,this._value=h)},l}(s.x)},25830:(C,c,t)=>{"use strict";t.d(c,{P_:()=>h,W7:()=>l,kV:()=>p});var i=t(42420),s=t(45383),u=t(91826),v=t(23873),l;(function(d){d.NEXT="N",d.ERROR="E",d.COMPLETE="C"})(l||(l={}));var h=function(){function d(f,g,y){this.kind=f,this.value=g,this.error=y,this.hasValue=f==="N"}return d.prototype.observe=function(f){return p(this,f)},d.prototype.do=function(f,g,y){var b=this,E=b.kind,S=b.value,w=b.error;return E==="N"?f?.(S):E==="E"?g?.(w):y?.()},d.prototype.accept=function(f,g,y){var b;return(0,v.m)((b=f)===null||b===void 0?void 0:b.next)?this.observe(f):this.do(f,g,y)},d.prototype.toObservable=function(){var f=this,g=f.kind,y=f.value,b=f.error,E=g==="N"?(0,s.of)(y):g==="E"?(0,u._)(function(){return b}):g==="C"?i.E:0;if(!E)throw new TypeError("Unexpected notification kind "+g);return E},d.createNext=function(f){return new d("N",f)},d.createError=function(f){return new d("E",void 0,f)},d.createComplete=function(){return d.completeNotification},d.completeNotification=new d("C"),d}();function p(d,f){var g,y,b,E=d,S=E.kind,w=E.value,x=E.error;if(typeof S!="string")throw new TypeError('Invalid notification, missing "kind"');S==="N"?(g=f.next)===null||g===void 0||g.call(f,w):S==="E"?(y=f.error)===null||y===void 0||y.call(f,x):(b=f.complete)===null||b===void 0||b.call(f)}},48592:(C,c,t)=>{"use strict";t.d(c,{y:()=>d});var i=t(16993),s=t(19973),u=t(98638),v=t(15084),l=t(19169),h=t(23873),p=t(9363),d=function(){function b(E){E&&(this._subscribe=E)}return b.prototype.lift=function(E){var S=new b;return S.source=this,S.operator=E,S},b.prototype.subscribe=function(E,S,w){var x=this,P=y(E)?E:new i.Hp(E,S,w);return(0,p.x)(function(){var R=x,T=R.operator,A=R.source;P.add(T?T.call(P,A):A?x._subscribe(P):x._trySubscribe(P))}),P},b.prototype._trySubscribe=function(E){try{return this._subscribe(E)}catch(S){E.error(S)}},b.prototype.forEach=function(E,S){var w=this;return S=f(S),new S(function(x,P){var R=new i.Hp({next:function(T){try{E(T)}catch(A){P(A),R.unsubscribe()}},error:P,complete:x});w.subscribe(R)})},b.prototype._subscribe=function(E){var S;return(S=this.source)===null||S===void 0?void 0:S.subscribe(E)},b.prototype[u.L]=function(){return this},b.prototype.pipe=function(){for(var E=[],S=0;S<arguments.length;S++)E[S]=arguments[S];return(0,v.U)(E)(this)},b.prototype.toPromise=function(E){var S=this;return E=f(E),new E(function(w,x){var P;S.subscribe(function(R){return P=R},function(R){return x(R)},function(){return w(P)})})},b.create=function(E){return new b(E)},b}();function f(b){var E;return(E=b??l.v.Promise)!==null&&E!==void 0?E:Promise}function g(b){return b&&(0,h.m)(b.next)&&(0,h.m)(b.error)&&(0,h.m)(b.complete)}function y(b){return b&&b instanceof i.Lv||g(b)&&(0,s.Nn)(b)}},37497:(C,c,t)=>{"use strict";t.d(c,{t:()=>v});var i=t(48314),s=t(69966),u=t(185),v=function(l){(0,i.__extends)(h,l);function h(p,d,f){p===void 0&&(p=1/0),d===void 0&&(d=1/0),f===void 0&&(f=u.l);var g=l.call(this)||this;return g._bufferSize=p,g._windowTime=d,g._timestampProvider=f,g._buffer=[],g._infiniteTimeWindow=!0,g._infiniteTimeWindow=d===1/0,g._bufferSize=Math.max(1,p),g._windowTime=Math.max(1,d),g}return h.prototype.next=function(p){var d=this,f=d.isStopped,g=d._buffer,y=d._infiniteTimeWindow,b=d._timestampProvider,E=d._windowTime;f||(g.push(p),!y&&g.push(b.now()+E)),this._trimBuffer(),l.prototype.next.call(this,p)},h.prototype._subscribe=function(p){this._throwIfClosed(),this._trimBuffer();for(var d=this._innerSubscribe(p),f=this,g=f._infiniteTimeWindow,y=f._buffer,b=y.slice(),E=0;E<b.length&&!p.closed;E+=g?1:2)p.next(b[E]);return this._checkFinalizedStatuses(p),d},h.prototype._trimBuffer=function(){var p=this,d=p._bufferSize,f=p._timestampProvider,g=p._buffer,y=p._infiniteTimeWindow,b=(y?1:2)*d;if(d<1/0&&b<g.length&&g.splice(0,g.length-b),!y){for(var E=f.now(),S=0,w=1;w<g.length&&g[w]<=E;w+=2)S=w;S&&g.splice(0,S+1)}},h}(s.x)},60578:(C,c,t)=>{"use strict";t.d(c,{b:()=>s});var i=t(185),s=function(){function u(v,l){l===void 0&&(l=u.now),this.schedulerActionCtor=v,this.now=l}return u.prototype.schedule=function(v,l,h){return l===void 0&&(l=0),new this.schedulerActionCtor(this,v).schedule(h,l)},u.now=i.l.now,u}()},69966:(C,c,t)=>{"use strict";t.d(c,{u:()=>d,x:()=>p});var i=t(48314),s=t(48592),u=t(19973),v=t(8647),l=t(34758),h=t(9363),p=function(f){(0,i.__extends)(g,f);function g(){var y=f.call(this)||this;return y.closed=!1,y.currentObservers=null,y.observers=[],y.isStopped=!1,y.hasError=!1,y.thrownError=null,y}return g.prototype.lift=function(y){var b=new d(this,this);return b.operator=y,b},g.prototype._throwIfClosed=function(){if(this.closed)throw new v.N},g.prototype.next=function(y){var b=this;(0,h.x)(function(){var E,S;if(b._throwIfClosed(),!b.isStopped){b.currentObservers||(b.currentObservers=Array.from(b.observers));try{for(var w=(0,i.__values)(b.currentObservers),x=w.next();!x.done;x=w.next()){var P=x.value;P.next(y)}}catch(R){E={error:R}}finally{try{x&&!x.done&&(S=w.return)&&S.call(w)}finally{if(E)throw E.error}}}})},g.prototype.error=function(y){var b=this;(0,h.x)(function(){if(b._throwIfClosed(),!b.isStopped){b.hasError=b.isStopped=!0,b.thrownError=y;for(var E=b.observers;E.length;)E.shift().error(y)}})},g.prototype.complete=function(){var y=this;(0,h.x)(function(){if(y._throwIfClosed(),!y.isStopped){y.isStopped=!0;for(var b=y.observers;b.length;)b.shift().complete()}})},g.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(g.prototype,"observed",{get:function(){var y;return((y=this.observers)===null||y===void 0?void 0:y.length)>0},enumerable:!1,configurable:!0}),g.prototype._trySubscribe=function(y){return this._throwIfClosed(),f.prototype._trySubscribe.call(this,y)},g.prototype._subscribe=function(y){return this._throwIfClosed(),this._checkFinalizedStatuses(y),this._innerSubscribe(y)},g.prototype._innerSubscribe=function(y){var b=this,E=this,S=E.hasError,w=E.isStopped,x=E.observers;return S||w?u.Lc:(this.currentObservers=null,x.push(y),new u.w0(function(){b.currentObservers=null,(0,l.P)(x,y)}))},g.prototype._checkFinalizedStatuses=function(y){var b=this,E=b.hasError,S=b.thrownError,w=b.isStopped;E?y.error(S):w&&y.complete()},g.prototype.asObservable=function(){var y=new s.y;return y.source=this,y},g.create=function(y,b){return new d(y,b)},g}(s.y),d=function(f){(0,i.__extends)(g,f);function g(y,b){var E=f.call(this)||this;return E.destination=y,E.source=b,E}return g.prototype.next=function(y){var b,E;(E=(b=this.destination)===null||b===void 0?void 0:b.next)===null||E===void 0||E.call(b,y)},g.prototype.error=function(y){var b,E;(E=(b=this.destination)===null||b===void 0?void 0:b.error)===null||E===void 0||E.call(b,y)},g.prototype.complete=function(){var y,b;(b=(y=this.destination)===null||y===void 0?void 0:y.complete)===null||b===void 0||b.call(y)},g.prototype._subscribe=function(y){var b,E;return(E=(b=this.source)===null||b===void 0?void 0:b.subscribe(y))!==null&&E!==void 0?E:u.Lc},g}(p)},16993:(C,c,t)=>{"use strict";t.d(c,{Hp:()=>P,Lv:()=>E});var i=t(48314),s=t(23873),u=t(19973),v=t(19169),l=t(37663),h=t(22484),p=function(){return g("C",void 0,void 0)}();function d(N){return g("E",void 0,N)}function f(N){return g("N",N,void 0)}function g(N,K,_){return{kind:N,value:K,error:_}}var y=t(93467),b=t(9363),E=function(N){(0,i.__extends)(K,N);function K(_){var W=N.call(this)||this;return W.isStopped=!1,_?(W.destination=_,(0,u.Nn)(_)&&_.add(W)):W.destination=I,W}return K.create=function(_,W,j){return new P(_,W,j)},K.prototype.next=function(_){this.isStopped?A(f(_),this):this._next(_)},K.prototype.error=function(_){this.isStopped?A(d(_),this):(this.isStopped=!0,this._error(_))},K.prototype.complete=function(){this.isStopped?A(p,this):(this.isStopped=!0,this._complete())},K.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,N.prototype.unsubscribe.call(this),this.destination=null)},K.prototype._next=function(_){this.destination.next(_)},K.prototype._error=function(_){try{this.destination.error(_)}finally{this.unsubscribe()}},K.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},K}(u.w0),S=Function.prototype.bind;function w(N,K){return S.call(N,K)}var x=function(){function N(K){this.partialObserver=K}return N.prototype.next=function(K){var _=this.partialObserver;if(_.next)try{_.next(K)}catch(W){R(W)}},N.prototype.error=function(K){var _=this.partialObserver;if(_.error)try{_.error(K)}catch(W){R(W)}else R(K)},N.prototype.complete=function(){var K=this.partialObserver;if(K.complete)try{K.complete()}catch(_){R(_)}},N}(),P=function(N){(0,i.__extends)(K,N);function K(_,W,j){var re=N.call(this)||this,X;if((0,s.m)(_)||!_)X={next:_??void 0,error:W??void 0,complete:j??void 0};else{var Z;re&&v.v.useDeprecatedNextContext?(Z=Object.create(_),Z.unsubscribe=function(){return re.unsubscribe()},X={next:_.next&&w(_.next,Z),error:_.error&&w(_.error,Z),complete:_.complete&&w(_.complete,Z)}):X=_}return re.destination=new x(X),re}return K}(E);function R(N){v.v.useDeprecatedSynchronousErrorHandling?(0,b.O)(N):(0,l.h)(N)}function T(N){throw N}function A(N,K){var _=v.v.onStoppedNotification;_&&y.z.setTimeout(function(){return _(N,K)})}var I={closed:!0,next:h.Z,error:T,complete:h.Z}},19973:(C,c,t)=>{"use strict";t.d(c,{Lc:()=>h,Nn:()=>p,w0:()=>l});var i=t(48314),s=t(23873),u=t(14101),v=t(34758),l=function(){function f(g){this.initialTeardown=g,this.closed=!1,this._parentage=null,this._finalizers=null}return f.prototype.unsubscribe=function(){var g,y,b,E,S;if(!this.closed){this.closed=!0;var w=this._parentage;if(w)if(this._parentage=null,Array.isArray(w))try{for(var x=(0,i.__values)(w),P=x.next();!P.done;P=x.next()){var R=P.value;R.remove(this)}}catch(_){g={error:_}}finally{try{P&&!P.done&&(y=x.return)&&y.call(x)}finally{if(g)throw g.error}}else w.remove(this);var T=this.initialTeardown;if((0,s.m)(T))try{T()}catch(_){S=_ instanceof u.B?_.errors:[_]}var A=this._finalizers;if(A){this._finalizers=null;try{for(var I=(0,i.__values)(A),N=I.next();!N.done;N=I.next()){var K=N.value;try{d(K)}catch(_){S=S??[],_ instanceof u.B?S=(0,i.__spreadArray)((0,i.__spreadArray)([],(0,i.__read)(S)),(0,i.__read)(_.errors)):S.push(_)}}}catch(_){b={error:_}}finally{try{N&&!N.done&&(E=I.return)&&E.call(I)}finally{if(b)throw b.error}}}if(S)throw new u.B(S)}},f.prototype.add=function(g){var y;if(g&&g!==this)if(this.closed)d(g);else{if(g instanceof f){if(g.closed||g._hasParent(this))return;g._addParent(this)}(this._finalizers=(y=this._finalizers)!==null&&y!==void 0?y:[]).push(g)}},f.prototype._hasParent=function(g){var y=this._parentage;return y===g||Array.isArray(y)&&y.includes(g)},f.prototype._addParent=function(g){var y=this._parentage;this._parentage=Array.isArray(y)?(y.push(g),y):y?[y,g]:g},f.prototype._removeParent=function(g){var y=this._parentage;y===g?this._parentage=null:Array.isArray(y)&&(0,v.P)(y,g)},f.prototype.remove=function(g){var y=this._finalizers;y&&(0,v.P)(y,g),g instanceof f&&g._removeParent(this)},f.EMPTY=function(){var g=new f;return g.closed=!0,g}(),f}(),h=l.EMPTY;function p(f){return f instanceof l||f&&"closed"in f&&(0,s.m)(f.remove)&&(0,s.m)(f.add)&&(0,s.m)(f.unsubscribe)}function d(f){(0,s.m)(f)?f():f.unsubscribe()}},19169:(C,c,t)=>{"use strict";t.d(c,{v:()=>i});var i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},93352:(C,c,t)=>{"use strict";t.d(c,{z:()=>u});var i=t(82197),s=t(16993);function u(v,l){var h=typeof l=="object";return new Promise(function(p,d){var f=new s.Hp({next:function(g){p(g),f.unsubscribe()},error:d,complete:function(){h?p(l.defaultValue):d(new i.K)}});v.subscribe(f)})}},78209:(C,c,t)=>{"use strict";t.d(c,{n:()=>s});var i=t(82197);function s(u,v){var l=typeof v=="object";return new Promise(function(h,p){var d=!1,f;u.subscribe({next:function(g){f=g,d=!0},error:p,complete:function(){d?h(f):l?h(v.defaultValue):p(new i.K)}})})}},59795:(C,c,t)=>{"use strict";t.d(c,{c:()=>p});var i=t(48314),s=t(48592),u=t(19973),v=t(10558),l=t(13765),h=t(40372),p=function(d){(0,i.__extends)(f,d);function f(g,y){var b=d.call(this)||this;return b.source=g,b.subjectFactory=y,b._subject=null,b._refCount=0,b._connection=null,(0,h.A)(g)&&(b.lift=g.lift),b}return f.prototype._subscribe=function(g){return this.getSubject().subscribe(g)},f.prototype.getSubject=function(){var g=this._subject;return(!g||g.isStopped)&&(this._subject=this.subjectFactory()),this._subject},f.prototype._teardown=function(){this._refCount=0;var g=this._connection;this._subject=this._connection=null,g?.unsubscribe()},f.prototype.connect=function(){var g=this,y=this._connection;if(!y){y=this._connection=new u.w0;var b=this.getSubject();y.add(this.source.subscribe((0,l.x)(b,void 0,function(){g._teardown(),b.complete()},function(E){g._teardown(),b.error(E)},function(){return g._teardown()}))),y.closed&&(this._connection=null,y=u.w0.EMPTY)}return y},f.prototype.refCount=function(){return(0,v.x)()(this)},f}(s.y)},10409:(C,c,t)=>{"use strict";t.d(c,{a:()=>g,l:()=>y});var i=t(48592),s=t(20301),u=t(91053),v=t(42250),l=t(68714),h=t(49892),p=t(21903),d=t(13765),f=t(72225);function g(){for(var E=[],S=0;S<arguments.length;S++)E[S]=arguments[S];var w=(0,h.yG)(E),x=(0,h.jO)(E),P=(0,s.D)(E),R=P.args,T=P.keys;if(R.length===0)return(0,u.D)([],w);var A=new i.y(y(R,w,T?function(I){return(0,p.n)(T,I)}:v.y));return x?A.pipe((0,l.Z)(x)):A}function y(E,S,w){return w===void 0&&(w=v.y),function(x){b(S,function(){for(var P=E.length,R=new Array(P),T=P,A=P,I=function(K){b(S,function(){var _=(0,u.D)(E[K],S),W=!1;_.subscribe((0,d.x)(x,function(j){R[K]=j,W||(W=!0,A--),A||x.next(w(R.slice()))},function(){--T||x.complete()}))},x)},N=0;N<P;N++)I(N)},x)}}function b(E,S,w){E?(0,f.f)(w,E,S):S()}},56284:(C,c,t)=>{"use strict";t.d(c,{z:()=>v});var i=t(59694),s=t(49892),u=t(91053);function v(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];return(0,i.u)()((0,u.D)(l,(0,s.yG)(l)))}},63384:(C,c,t)=>{"use strict";t.d(c,{P:()=>u});var i=t(48592),s=t(27187);function u(v){return new i.y(function(l){(0,s.Xf)(v()).subscribe(l)})}},32364:(C,c,t)=>{"use strict";t.d(c,{U:()=>l});var i=t(48314),s=t(13765),u=t(48592),v=t(27187);function l(h,p){p===void 0&&(p={});var d=p.selector,f=(0,i.__rest)(p,["selector"]);return new u.y(function(g){var y=new AbortController,b=y.signal,E=!0,S=f.signal;if(S)if(S.aborted)y.abort();else{var w=function(){b.aborted||y.abort()};S.addEventListener("abort",w),g.add(function(){return S.removeEventListener("abort",w)})}var x=(0,i.__assign)((0,i.__assign)({},f),{signal:b}),P=function(R){E=!1,g.error(R)};return fetch(h,x).then(function(R){d?(0,v.Xf)(d(R)).subscribe((0,s.x)(g,void 0,function(){E=!1,g.complete()},P)):(E=!1,g.next(R),g.complete())}).catch(P),function(){E&&y.abort()}})}},42420:(C,c,t)=>{"use strict";t.d(c,{E:()=>s,c:()=>u});var i=t(48592),s=new i.y(function(l){return l.complete()});function u(l){return l?v(l):s}function v(l){return new i.y(function(h){return l.schedule(function(){return h.complete()})})}},89707:(C,c,t)=>{"use strict";t.d(c,{D:()=>d});var i=t(48592),s=t(20301),u=t(27187),v=t(49892),l=t(13765),h=t(68714),p=t(21903);function d(){for(var f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];var y=(0,v.jO)(f),b=(0,s.D)(f),E=b.args,S=b.keys,w=new i.y(function(x){var P=E.length;if(!P){x.complete();return}for(var R=new Array(P),T=P,A=P,I=function(K){var _=!1;(0,u.Xf)(E[K]).subscribe((0,l.x)(x,function(W){_||(_=!0,A--),R[K]=W},function(){return T--},void 0,function(){(!T||!_)&&(A||x.next(S?(0,p.n)(S,R):R),x.complete())}))},N=0;N<P;N++)I(N)});return y?w.pipe((0,h.Z)(y)):w}},91053:(C,c,t)=>{"use strict";t.d(c,{D:()=>u});var i=t(86175),s=t(27187);function u(v,l){return l?(0,i.x)(v,l):(0,s.Xf)(v)}},87730:(C,c,t)=>{"use strict";t.d(c,{R:()=>h});var i=t(48314),s=t(42250),u=t(6838),v=t(63384),l=t(22449);function h(p,d,f,g,y){var b,E,S,w;arguments.length===1?(b=p,w=b.initialState,d=b.condition,f=b.iterate,E=b.resultSelector,S=E===void 0?s.y:E,y=b.scheduler):(w=p,!g||(0,u.K)(g)?(S=s.y,y=g):S=g);function x(){var P;return(0,i.__generator)(this,function(R){switch(R.label){case 0:P=w,R.label=1;case 1:return!d||d(P)?[4,S(P)]:[3,4];case 2:R.sent(),R.label=3;case 3:return P=f(P),[3,1];case 4:return[2]}})}return(0,v.P)(y?function(){return(0,l.Q)(x(),y)}:x)}},27187:(C,c,t)=>{"use strict";t.d(c,{Xf:()=>E});var i=t(48314),s=t(54940),u=t(11591),v=t(48592),l=t(41234),h=t(12442),p=t(95635),d=t(84514),f=t(18738),g=t(23873),y=t(37663),b=t(98638);function E(I){if(I instanceof v.y)return I;if(I!=null){if((0,l.c)(I))return S(I);if((0,s.z)(I))return w(I);if((0,u.t)(I))return x(I);if((0,h.D)(I))return R(I);if((0,d.T)(I))return P(I);if((0,f.L)(I))return T(I)}throw(0,p.z)(I)}function S(I){return new v.y(function(N){var K=I[b.L]();if((0,g.m)(K.subscribe))return K.subscribe(N);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function w(I){return new v.y(function(N){for(var K=0;K<I.length&&!N.closed;K++)N.next(I[K]);N.complete()})}function x(I){return new v.y(function(N){I.then(function(K){N.closed||(N.next(K),N.complete())},function(K){return N.error(K)}).then(null,y.h)})}function P(I){return new v.y(function(N){var K,_;try{for(var W=(0,i.__values)(I),j=W.next();!j.done;j=W.next()){var re=j.value;if(N.next(re),N.closed)return}}catch(X){K={error:X}}finally{try{j&&!j.done&&(_=W.return)&&_.call(W)}finally{if(K)throw K.error}}N.complete()})}function R(I){return new v.y(function(N){A(I,N).catch(function(K){return N.error(K)})})}function T(I){return R((0,f.Q)(I))}function A(I,N){var K,_,W,j;return(0,i.__awaiter)(this,void 0,void 0,function(){var re,X;return(0,i.__generator)(this,function(Z){switch(Z.label){case 0:Z.trys.push([0,5,6,11]),K=(0,i.__asyncValues)(I),Z.label=1;case 1:return[4,K.next()];case 2:if(_=Z.sent(),!!_.done)return[3,4];if(re=_.value,N.next(re),N.closed)return[2];Z.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return X=Z.sent(),W={error:X},[3,11];case 6:return Z.trys.push([6,,9,10]),_&&!_.done&&(j=K.return)?[4,j.call(K)]:[3,8];case 7:Z.sent(),Z.label=8;case 8:return[3,10];case 9:if(W)throw W.error;return[7];case 10:return[7];case 11:return N.complete(),[2]}})})}},93564:(C,c,t)=>{"use strict";t.d(c,{F:()=>u});var i=t(85202),s=t(80852);function u(v,l){return v===void 0&&(v=0),l===void 0&&(l=i.z),v<0&&(v=0),(0,s.H)(v,v,l)}},6857:(C,c,t)=>{"use strict";t.d(c,{T:()=>h});var i=t(29655),s=t(27187),u=t(42420),v=t(49892),l=t(91053);function h(){for(var p=[],d=0;d<arguments.length;d++)p[d]=arguments[d];var f=(0,v.yG)(p),g=(0,v._6)(p,1/0),y=p;return y.length?y.length===1?(0,s.Xf)(y[0]):(0,i.J)(g)((0,l.D)(y,f)):u.E}},8496:(C,c,t)=>{"use strict";t.d(c,{C:()=>u,F:()=>v});var i=t(48592),s=t(22484),u=new i.y(s.Z);function v(){return u}},45383:(C,c,t)=>{"use strict";t.d(c,{of:()=>u});var i=t(49892),s=t(91053);function u(){for(var v=[],l=0;l<arguments.length;l++)v[l]=arguments[l];var h=(0,i.yG)(v);return(0,s.D)(v,h)}},90283:(C,c,t)=>{"use strict";t.d(c,{h:()=>h});var i=t(48592),s=t(17731),u=t(13765),v=t(22484),l=t(27187);function h(){for(var p=[],d=0;d<arguments.length;d++)p[d]=arguments[d];var f=(0,s.k)(p);return new i.y(function(g){var y=0,b=function(){if(y<f.length){var E=void 0;try{E=(0,l.Xf)(f[y++])}catch{b();return}var S=new u.Q(g,void 0,v.Z,v.Z);E.subscribe(S),S.add(b)}else g.complete()};b()})}},85787:(C,c,t)=>{"use strict";t.d(c,{R:()=>h,S:()=>l});var i=t(48592),s=t(27187),u=t(17731),v=t(13765);function l(){for(var p=[],d=0;d<arguments.length;d++)p[d]=arguments[d];return p=(0,u.k)(p),p.length===1?(0,s.Xf)(p[0]):new i.y(h(p))}function h(p){return function(d){for(var f=[],g=function(b){f.push((0,s.Xf)(p[b]).subscribe((0,v.x)(d,function(E){if(f){for(var S=0;S<f.length;S++)S!==b&&f[S].unsubscribe();f=null}d.next(E)})))},y=0;f&&!d.closed&&y<p.length;y++)g(y)}}},91826:(C,c,t)=>{"use strict";t.d(c,{_:()=>u});var i=t(48592),s=t(23873);function u(v,l){var h=(0,s.m)(v)?v:function(){return v},p=function(d){return d.error(h())};return new i.y(l?function(d){return l.schedule(p,0,d)}:p)}},80852:(C,c,t)=>{"use strict";t.d(c,{H:()=>l});var i=t(48592),s=t(85202),u=t(6838),v=t(34392);function l(h,p,d){h===void 0&&(h=0),d===void 0&&(d=s.P);var f=-1;return p!=null&&((0,u.K)(p)?d=p:f=p),new i.y(function(g){var y=(0,v.q)(h)?+h-d.now():h;y<0&&(y=0);var b=0;return d.schedule(function(){g.closed||(g.next(b++),0<=f?this.schedule(void 0,f):g.complete())},y)})}},98405:(C,c,t)=>{"use strict";t.d(c,{$:()=>d});var i=t(48314),s=t(48592),u=t(27187),v=t(17731),l=t(42420),h=t(13765),p=t(49892);function d(){for(var f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];var y=(0,p.jO)(f),b=(0,v.k)(f);return b.length?new s.y(function(E){var S=b.map(function(){return[]}),w=b.map(function(){return!1});E.add(function(){S=w=null});for(var x=function(R){(0,u.Xf)(b[R]).subscribe((0,h.x)(E,function(T){if(S[R].push(T),S.every(function(I){return I.length})){var A=S.map(function(I){return I.shift()});E.next(y?y.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(A))):A),S.some(function(I,N){return!I.length&&w[N]})&&E.complete()}},function(){w[R]=!0,!S[R].length&&E.complete()}))},P=0;!E.closed&&P<b.length;P++)x(P);return function(){S=w=null}}):l.E}},13765:(C,c,t)=>{"use strict";t.d(c,{Q:()=>v,x:()=>u});var i=t(48314),s=t(16993);function u(l,h,p,d,f){return new v(l,h,p,d,f)}var v=function(l){(0,i.__extends)(h,l);function h(p,d,f,g,y,b){var E=l.call(this,p)||this;return E.onFinalize=y,E.shouldUnsubscribe=b,E._next=d?function(S){try{d(S)}catch(w){p.error(w)}}:l.prototype._next,E._error=g?function(S){try{g(S)}catch(w){p.error(w)}finally{this.unsubscribe()}}:l.prototype._error,E._complete=f?function(){try{f()}catch(S){p.error(S)}finally{this.unsubscribe()}}:l.prototype._complete,E}return h.prototype.unsubscribe=function(){var p;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var d=this.closed;l.prototype.unsubscribe.call(this),!d&&((p=this.onFinalize)===null||p===void 0||p.call(this))}},h}(s.Lv)},45123:(C,c,t)=>{"use strict";t.d(c,{U:()=>v});var i=t(40372),s=t(27187),u=t(13765);function v(l){return(0,i.e)(function(h,p){var d=!1,f=null,g=null,y=!1,b=function(){if(g?.unsubscribe(),g=null,d){d=!1;var S=f;f=null,p.next(S)}y&&p.complete()},E=function(){g=null,y&&p.complete()};h.subscribe((0,u.x)(p,function(S){d=!0,f=S,g||(0,s.Xf)(l(S)).subscribe(g=(0,u.x)(p,b,E))},function(){y=!0,(!d||!g||g.closed)&&p.complete()}))})}},35978:(C,c,t)=>{"use strict";t.d(c,{e:()=>v});var i=t(85202),s=t(45123),u=t(80852);function v(l,h){return h===void 0&&(h=i.z),(0,s.U)(function(){return(0,u.H)(l,h)})}},22273:(C,c,t)=>{"use strict";t.d(c,{f:()=>l});var i=t(40372),s=t(22484),u=t(13765),v=t(27187);function l(h){return(0,i.e)(function(p,d){var f=[];return p.subscribe((0,u.x)(d,function(g){return f.push(g)},function(){d.next(f),d.complete()})),(0,v.Xf)(h).subscribe((0,u.x)(d,function(){var g=f;f=[],d.next(g)},s.Z)),function(){f=null}})}},56960:(C,c,t)=>{"use strict";t.d(c,{j:()=>l});var i=t(48314),s=t(40372),u=t(13765),v=t(34758);function l(h,p){return p===void 0&&(p=null),p=p??h,(0,s.e)(function(d,f){var g=[],y=0;d.subscribe((0,u.x)(f,function(b){var E,S,w,x,P=null;y++%p===0&&g.push([]);try{for(var R=(0,i.__values)(g),T=R.next();!T.done;T=R.next()){var A=T.value;A.push(b),h<=A.length&&(P=P??[],P.push(A))}}catch(K){E={error:K}}finally{try{T&&!T.done&&(S=R.return)&&S.call(R)}finally{if(E)throw E.error}}if(P)try{for(var I=(0,i.__values)(P),N=I.next();!N.done;N=I.next()){var A=N.value;(0,v.P)(g,A),f.next(A)}}catch(K){w={error:K}}finally{try{N&&!N.done&&(x=I.return)&&x.call(I)}finally{if(w)throw w.error}}},function(){var b,E;try{for(var S=(0,i.__values)(g),w=S.next();!w.done;w=S.next()){var x=w.value;f.next(x)}}catch(P){b={error:P}}finally{try{w&&!w.done&&(E=S.return)&&E.call(S)}finally{if(b)throw b.error}}f.complete()},void 0,function(){g=null}))})}},90006:(C,c,t)=>{"use strict";t.d(c,{e:()=>f});var i=t(48314),s=t(19973),u=t(40372),v=t(13765),l=t(34758),h=t(85202),p=t(49892),d=t(72225);function f(g){for(var y,b,E=[],S=1;S<arguments.length;S++)E[S-1]=arguments[S];var w=(y=(0,p.yG)(E))!==null&&y!==void 0?y:h.z,x=(b=E[0])!==null&&b!==void 0?b:null,P=E[1]||1/0;return(0,u.e)(function(R,T){var A=[],I=!1,N=function(W){var j=W.buffer,re=W.subs;re.unsubscribe(),(0,l.P)(A,W),T.next(j),I&&K()},K=function(){if(A){var W=new s.w0;T.add(W);var j=[],re={buffer:j,subs:W};A.push(re),(0,d.f)(W,w,function(){return N(re)},g)}};x!==null&&x>=0?(0,d.f)(T,w,K,x,!0):I=!0,K();var _=(0,v.x)(T,function(W){var j,re,X=A.slice();try{for(var Z=(0,i.__values)(X),J=Z.next();!J.done;J=Z.next()){var q=J.value,L=q.buffer;L.push(W),P<=L.length&&N(q)}}catch($){j={error:$}}finally{try{J&&!J.done&&(re=Z.return)&&re.call(Z)}finally{if(j)throw j.error}}},function(){for(;A?.length;)T.next(A.shift().buffer);_?.unsubscribe(),T.complete(),T.unsubscribe()},void 0,function(){return A=null});R.subscribe(_)})}},21275:(C,c,t)=>{"use strict";t.d(c,{P:()=>d});var i=t(48314),s=t(19973),u=t(40372),v=t(27187),l=t(13765),h=t(22484),p=t(34758);function d(f,g){return(0,u.e)(function(y,b){var E=[];(0,v.Xf)(f).subscribe((0,l.x)(b,function(S){var w=[];E.push(w);var x=new s.w0,P=function(){(0,p.P)(E,w),b.next(w),x.unsubscribe()};x.add((0,v.Xf)(g(S)).subscribe((0,l.x)(b,P,h.Z)))},h.Z)),y.subscribe((0,l.x)(b,function(S){var w,x;try{for(var P=(0,i.__values)(E),R=P.next();!R.done;R=P.next()){var T=R.value;T.push(S)}}catch(A){w={error:A}}finally{try{R&&!R.done&&(x=P.return)&&x.call(P)}finally{if(w)throw w.error}}},function(){for(;E.length>0;)b.next(E.shift());b.complete()}))})}},72283:(C,c,t)=>{"use strict";t.d(c,{R:()=>l});var i=t(40372),s=t(22484),u=t(13765),v=t(27187);function l(h){return(0,i.e)(function(p,d){var f=null,g=null,y=function(){g?.unsubscribe();var b=f;f=[],b&&d.next(b),(0,v.Xf)(h()).subscribe(g=(0,u.x)(d,y,s.Z))};y(),p.subscribe((0,u.x)(d,function(b){return f?.push(b)},function(){f&&d.next(f),d.complete()},void 0,function(){return f=g=null}))})}},56469:(C,c,t)=>{"use strict";t.d(c,{K:()=>v});var i=t(27187),s=t(13765),u=t(40372);function v(l){return(0,u.e)(function(h,p){var d=null,f=!1,g;d=h.subscribe((0,s.x)(p,void 0,void 0,function(y){g=(0,i.Xf)(l(y,v(l)(h))),d?(d.unsubscribe(),d=null,g.subscribe(p)):f=!0})),f&&(d.unsubscribe(),d=null,g.subscribe(p))})}},6554:(C,c,t)=>{"use strict";t.d(c,{c:()=>s});var i=t(39338),s=i.h},90513:(C,c,t)=>{"use strict";t.d(c,{a:()=>d});var i=t(48314),s=t(10409),u=t(40372),v=t(17731),l=t(68714),h=t(15084),p=t(49892);function d(){for(var f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];var y=(0,p.jO)(f);return y?(0,h.z)(d.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(f))),(0,l.Z)(y)):(0,u.e)(function(b,E){(0,s.l)((0,i.__spreadArray)([b],(0,i.__read)((0,v.k)(f))))(E)})}},39338:(C,c,t)=>{"use strict";t.d(c,{h:()=>u});var i=t(10409),s=t(43817);function u(v){return(0,s.Z)(i.a,v)}},10650:(C,c,t)=>{"use strict";t.d(c,{V:()=>u});var i=t(48314),s=t(90513);function u(){for(var v=[],l=0;l<arguments.length;l++)v[l]=arguments[l];return s.a.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(v)))}},10081:(C,c,t)=>{"use strict";t.d(c,{z:()=>h});var i=t(48314),s=t(40372),u=t(59694),v=t(49892),l=t(91053);function h(){for(var p=[],d=0;d<arguments.length;d++)p[d]=arguments[d];var f=(0,v.yG)(p);return(0,s.e)(function(g,y){(0,u.u)()((0,l.D)((0,i.__spreadArray)([g],(0,i.__read)(p)),f)).subscribe(y)})}},59694:(C,c,t)=>{"use strict";t.d(c,{u:()=>s});var i=t(29655);function s(){return(0,i.J)(1)}},9045:(C,c,t)=>{"use strict";t.d(c,{b:()=>u});var i=t(22479),s=t(23873);function u(v,l){return(0,s.m)(l)?(0,i.z)(v,l,1):(0,i.z)(v,1)}},16057:(C,c,t)=>{"use strict";t.d(c,{w:()=>u});var i=t(9045),s=t(23873);function u(v,l){return(0,s.m)(l)?(0,i.b)(function(){return v},l):(0,i.b)(function(){return v})}},64840:(C,c,t)=>{"use strict";t.d(c,{T:()=>u});var i=t(48314),s=t(10081);function u(){for(var v=[],l=0;l<arguments.length;l++)v[l]=arguments[l];return s.z.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(v)))}},32654:(C,c,t)=>{"use strict";t.d(c,{$:()=>p});var i=t(69966),s=t(27187),u=t(40372),v=t(48592);function l(d){return new v.y(function(f){return d.subscribe(f)})}var h={connector:function(){return new i.x}};function p(d,f){f===void 0&&(f=h);var g=f.connector;return(0,u.e)(function(y,b){var E=g();(0,s.Xf)(d(l(E))).subscribe(b),b.add(y.subscribe(E))})}},33914:(C,c,t)=>{"use strict";t.d(c,{Q:()=>s});var i=t(60115);function s(u){return(0,i.u)(function(v,l,h){return!u||u(l,h)?v+1:v},0)}},69065:(C,c,t)=>{"use strict";t.d(c,{D:()=>l});var i=t(40372),s=t(22484),u=t(13765),v=t(27187);function l(h){return(0,i.e)(function(p,d){var f=!1,g=null,y=null,b=function(){if(y?.unsubscribe(),y=null,f){f=!1;var E=g;g=null,d.next(E)}};p.subscribe((0,u.x)(d,function(E){y?.unsubscribe(),f=!0,g=E,y=(0,u.x)(d,b,s.Z),(0,v.Xf)(h(E)).subscribe(y)},function(){b(),d.complete()},void 0,function(){g=y=null}))})}},61978:(C,c,t)=>{"use strict";t.d(c,{b:()=>v});var i=t(85202),s=t(40372),u=t(13765);function v(l,h){return h===void 0&&(h=i.z),(0,s.e)(function(p,d){var f=null,g=null,y=null,b=function(){if(f){f.unsubscribe(),f=null;var S=g;g=null,d.next(S)}};function E(){var S=y+l,w=h.now();if(w<S){f=this.schedule(void 0,S-w),d.add(f);return}b()}p.subscribe((0,u.x)(d,function(S){g=S,y=h.now(),f||(f=h.schedule(E,l),d.add(f))},function(){b(),d.complete()},void 0,function(){g=f=null}))})}},36686:(C,c,t)=>{"use strict";t.d(c,{d:()=>u});var i=t(40372),s=t(13765);function u(v){return(0,i.e)(function(l,h){var p=!1;l.subscribe((0,s.x)(h,function(d){p=!0,h.next(d)},function(){p||h.next(v),h.complete()}))})}},19385:(C,c,t)=>{"use strict";t.d(c,{g:()=>v});var i=t(85202),s=t(59587),u=t(80852);function v(l,h){h===void 0&&(h=i.z);var p=(0,u.H)(l,h);return(0,s.j)(function(){return p})}},59587:(C,c,t)=>{"use strict";t.d(c,{j:()=>p});var i=t(56284),s=t(84677),u=t(21008),v=t(58885),l=t(22479),h=t(27187);function p(d,f){return f?function(g){return(0,i.z)(f.pipe((0,s.q)(1),(0,u.l)()),g.pipe(p(d)))}:(0,l.z)(function(g,y){return(0,h.Xf)(d(g,y)).pipe((0,s.q)(1),(0,v.h)(g))})}},33069:(C,c,t)=>{"use strict";t.d(c,{D:()=>v});var i=t(25830),s=t(40372),u=t(13765);function v(){return(0,s.e)(function(l,h){l.subscribe((0,u.x)(h,function(p){return(0,i.kV)(p,h)}))})}},95502:(C,c,t)=>{"use strict";t.d(c,{E:()=>l});var i=t(40372),s=t(13765),u=t(22484),v=t(27187);function l(h,p){return(0,i.e)(function(d,f){var g=new Set;d.subscribe((0,s.x)(f,function(y){var b=h?h(y):y;g.has(b)||(g.add(b),f.next(y))})),p&&(0,v.Xf)(p).subscribe((0,s.x)(f,function(){return g.clear()},u.Z))})}},50625:(C,c,t)=>{"use strict";t.d(c,{x:()=>v});var i=t(42250),s=t(40372),u=t(13765);function v(h,p){return p===void 0&&(p=i.y),h=h??l,(0,s.e)(function(d,f){var g,y=!0;d.subscribe((0,u.x)(f,function(b){var E=p(b);(y||!h(g,E))&&(y=!1,g=E,f.next(b))}))})}function l(h,p){return h===p}},35857:(C,c,t)=>{"use strict";t.d(c,{g:()=>s});var i=t(50625);function s(u,v){return(0,i.x)(function(l,h){return v?v(l[u],h[u]):l[u]===h[u]})}},84629:(C,c,t)=>{"use strict";t.d(c,{T:()=>h});var i=t(27217),s=t(56361),u=t(23403),v=t(36686),l=t(84677);function h(p,d){if(p<0)throw new i.W;var f=arguments.length>=2;return function(g){return g.pipe((0,s.h)(function(y,b){return b===p}),(0,l.q)(1),f?(0,v.d)(d):(0,u.T)(function(){return new i.W}))}}},81046:(C,c,t)=>{"use strict";t.d(c,{l:()=>v});var i=t(48314),s=t(56284),u=t(45383);function v(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];return function(p){return(0,s.z)(p,u.of.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(l))))}}},22934:(C,c,t)=>{"use strict";t.d(c,{y:()=>u});var i=t(40372),s=t(13765);function u(v,l){return(0,i.e)(function(h,p){var d=0;h.subscribe((0,s.x)(p,function(f){v.call(l,f,d++,h)||(p.next(!1),p.complete())},function(){p.next(!0),p.complete()}))})}},10333:(C,c,t)=>{"use strict";t.d(c,{b:()=>s});var i=t(88699),s=i.Y},88699:(C,c,t)=>{"use strict";t.d(c,{Y:()=>u});var i=t(58245),s=t(42250);function u(){return(0,i.z)(s.y)}},58245:(C,c,t)=>{"use strict";t.d(c,{z:()=>l});var i=t(39343),s=t(27187),u=t(40372),v=t(13765);function l(h,p){return p?function(d){return d.pipe(l(function(f,g){return(0,s.Xf)(h(f,g)).pipe((0,i.U)(function(y,b){return p(f,y,g,b)}))}))}:(0,u.e)(function(d,f){var g=0,y=null,b=!1;d.subscribe((0,v.x)(f,function(E){y||(y=(0,v.x)(f,void 0,function(){y=null,b&&f.complete()}),(0,s.Xf)(h(E,g++)).subscribe(y))},function(){b=!0,!y&&f.complete()}))})}},61086:(C,c,t)=>{"use strict";t.d(c,{j:()=>u});var i=t(40372),s=t(67079);function u(v,l,h){return l===void 0&&(l=1/0),l=(l||0)<1?1/0:l,(0,i.e)(function(p,d){return(0,s.p)(p,d,v,l,void 0,!0,h)})}},56361:(C,c,t)=>{"use strict";t.d(c,{h:()=>u});var i=t(40372),s=t(13765);function u(v,l){return(0,i.e)(function(h,p){var d=0;h.subscribe((0,s.x)(p,function(f){return v.call(l,f,d++)&&p.next(f)}))})}},90581:(C,c,t)=>{"use strict";t.d(c,{x:()=>s});var i=t(40372);function s(u){return(0,i.e)(function(v,l){try{v.subscribe(l)}finally{l.add(u)}})}},78221:(C,c,t)=>{"use strict";t.d(c,{U:()=>v,s:()=>u});var i=t(40372),s=t(13765);function u(l,h){return(0,i.e)(v(l,h,"value"))}function v(l,h,p){var d=p==="index";return function(f,g){var y=0;f.subscribe((0,s.x)(g,function(b){var E=y++;l.call(h,b,E,f)&&(g.next(d?E:b),g.complete())},function(){g.next(d?-1:void 0),g.complete()}))}}},49401:(C,c,t)=>{"use strict";t.d(c,{c:()=>u});var i=t(40372),s=t(78221);function u(v,l){return(0,i.e)((0,s.U)(v,l,"index"))}},775:(C,c,t)=>{"use strict";t.d(c,{P:()=>p});var i=t(82197),s=t(56361),u=t(84677),v=t(36686),l=t(23403),h=t(42250);function p(d,f){var g=arguments.length>=2;return function(y){return y.pipe(d?(0,s.h)(function(b,E){return d(b,E,y)}):h.y,(0,u.q)(1),g?(0,v.d)(f):(0,l.T)(function(){return new i.K}))}}},57402:(C,c,t)=>{"use strict";t.d(c,{V:()=>s});var i=t(22479),s=i.z},77351:(C,c,t)=>{"use strict";t.d(c,{v:()=>h});var i=t(48592),s=t(27187),u=t(69966),v=t(40372),l=t(13765);function h(p,d,f,g){return(0,v.e)(function(y,b){var E;!d||typeof d=="function"?E=d:(f=d.duration,E=d.element,g=d.connector);var S=new Map,w=function(I){S.forEach(I),I(b)},x=function(I){return w(function(N){return N.error(I)})},P=0,R=!1,T=new l.Q(b,function(I){try{var N=p(I),K=S.get(N);if(!K){S.set(N,K=g?g():new u.x);var _=A(N,K);if(b.next(_),f){var W=(0,l.x)(K,function(){K.complete(),W?.unsubscribe()},void 0,void 0,function(){return S.delete(N)});T.add((0,s.Xf)(f(_)).subscribe(W))}}K.next(E?E(I):I)}catch(j){x(j)}},function(){return w(function(I){return I.complete()})},x,function(){return S.clear()},function(){return R=!0,P===0});y.subscribe(T);function A(I,N){var K=new i.y(function(_){P++;var W=N.subscribe(_);return function(){W.unsubscribe(),--P===0&&R&&T.unsubscribe()}});return K.key=I,K}})}},21008:(C,c,t)=>{"use strict";t.d(c,{l:()=>v});var i=t(40372),s=t(13765),u=t(22484);function v(){return(0,i.e)(function(l,h){l.subscribe((0,s.x)(h,u.Z))})}},15595:(C,c,t)=>{"use strict";t.d(c,{x:()=>u});var i=t(40372),s=t(13765);function u(){return(0,i.e)(function(v,l){v.subscribe((0,s.x)(l,function(){l.next(!1),l.complete()},function(){l.next(!0),l.complete()}))})}},43817:(C,c,t)=>{"use strict";t.d(c,{Z:()=>h});var i=t(42250),s=t(68714),u=t(15084),v=t(22479),l=t(28037);function h(p,d){return(0,u.z)((0,l.q)(),(0,v.z)(function(f){return p(f)}),d?(0,s.Z)(d):i.y)}},93157:(C,c,t)=>{"use strict";t.d(c,{Z:()=>p});var i=t(82197),s=t(56361),u=t(42271),v=t(23403),l=t(36686),h=t(42250);function p(d,f){var g=arguments.length>=2;return function(y){return y.pipe(d?(0,s.h)(function(b,E){return d(b,E,y)}):h.y,(0,u.h)(1),g?(0,l.d)(f):(0,v.T)(function(){return new i.K}))}}},39343:(C,c,t)=>{"use strict";t.d(c,{U:()=>u});var i=t(40372),s=t(13765);function u(v,l){return(0,i.e)(function(h,p){var d=0;h.subscribe((0,s.x)(p,function(f){p.next(v.call(l,f,d++))}))})}},58885:(C,c,t)=>{"use strict";t.d(c,{h:()=>s});var i=t(39343);function s(u){return(0,i.U)(function(){return u})}},57020:(C,c,t)=>{"use strict";t.d(c,{i:()=>v});var i=t(25830),s=t(40372),u=t(13765);function v(){return(0,s.e)(function(l,h){l.subscribe((0,u.x)(h,function(p){h.next(i.P_.createNext(p))},function(){h.next(i.P_.createComplete()),h.complete()},function(p){h.next(i.P_.createError(p)),h.complete()}))})}},48606:(C,c,t)=>{"use strict";t.d(c,{F:()=>u});var i=t(60115),s=t(23873);function u(v){return(0,i.u)((0,s.m)(v)?function(l,h){return v(l,h)>0?l:h}:function(l,h){return l>h?l:h})}},62613:(C,c,t)=>{"use strict";t.d(c,{T:()=>p});var i=t(48314),s=t(40372),u=t(17731),v=t(29655),l=t(49892),h=t(91053);function p(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];var g=(0,l.yG)(d),y=(0,l._6)(d,1/0);return d=(0,u.k)(d),(0,s.e)(function(b,E){(0,v.J)(y)((0,h.D)((0,i.__spreadArray)([b],(0,i.__read)(d)),g)).subscribe(E)})}},29655:(C,c,t)=>{"use strict";t.d(c,{J:()=>u});var i=t(22479),s=t(42250);function u(v){return v===void 0&&(v=1/0),(0,i.z)(s.y,v)}},67079:(C,c,t)=>{"use strict";t.d(c,{p:()=>v});var i=t(27187),s=t(72225),u=t(13765);function v(l,h,p,d,f,g,y,b){var E=[],S=0,w=0,x=!1,P=function(){x&&!E.length&&!S&&h.complete()},R=function(A){return S<d?T(A):E.push(A)},T=function(A){g&&h.next(A),S++;var I=!1;(0,i.Xf)(p(A,w++)).subscribe((0,u.x)(h,function(N){f?.(N),g?R(N):h.next(N)},function(){I=!0},void 0,function(){if(I)try{S--;for(var N=function(){var K=E.shift();y?(0,s.f)(h,y,function(){return T(K)}):T(K)};E.length&&S<d;)N();P()}catch(K){h.error(K)}}))};return l.subscribe((0,u.x)(h,R,function(){x=!0,P()})),function(){b?.()}}},22479:(C,c,t)=>{"use strict";t.d(c,{z:()=>h});var i=t(39343),s=t(27187),u=t(40372),v=t(67079),l=t(23873);function h(p,d,f){return f===void 0&&(f=1/0),(0,l.m)(d)?h(function(g,y){return(0,i.U)(function(b,E){return d(g,b,y,E)})((0,s.Xf)(p(g,y)))},f):(typeof d=="number"&&(f=d),(0,u.e)(function(g,y){return(0,v.p)(g,y,p,f)}))}},19363:(C,c,t)=>{"use strict";t.d(c,{j:()=>u});var i=t(22479),s=t(23873);function u(v,l,h){return h===void 0&&(h=1/0),(0,s.m)(l)?(0,i.z)(function(){return v},l,h):(typeof l=="number"&&(h=l),(0,i.z)(function(){return v},h))}},10173:(C,c,t)=>{"use strict";t.d(c,{f:()=>u});var i=t(40372),s=t(67079);function u(v,l,h){return h===void 0&&(h=1/0),(0,i.e)(function(p,d){var f=l;return(0,s.p)(p,d,function(g,y){return v(f,g,y)},h,function(g){f=g},!1,void 0,function(){return f=null})})}},5165:(C,c,t)=>{"use strict";t.d(c,{b:()=>u});var i=t(48314),s=t(62613);function u(){for(var v=[],l=0;l<arguments.length;l++)v[l]=arguments[l];return s.T.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(v)))}},8693:(C,c,t)=>{"use strict";t.d(c,{V:()=>u});var i=t(60115),s=t(23873);function u(v){return(0,i.u)((0,s.m)(v)?function(l,h){return v(l,h)<0?l:h}:function(l,h){return l<h?l:h})}},13975:(C,c,t)=>{"use strict";t.d(c,{O:()=>v});var i=t(59795),s=t(23873),u=t(32654);function v(l,h){var p=(0,s.m)(l)?l:function(){return l};return(0,s.m)(h)?(0,u.$)(h,{connector:p}):function(d){return new i.c(d,p)}}},54459:(C,c,t)=>{"use strict";t.d(c,{Q:()=>v});var i=t(72225),s=t(40372),u=t(13765);function v(l,h){return h===void 0&&(h=0),(0,s.e)(function(p,d){p.subscribe((0,u.x)(d,function(f){return(0,i.f)(d,l,function(){return d.next(f)},h)},function(){return(0,i.f)(d,l,function(){return d.complete()},h)},function(f){return(0,i.f)(d,l,function(){return d.error(f)},h)}))})}},50346:(C,c,t)=>{"use strict";t.d(c,{h:()=>l,n:()=>v});var i=t(48314),s=t(17731),u=t(90283);function v(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];var d=(0,s.k)(h);return function(f){return u.h.apply(void 0,(0,i.__spreadArray)([f],(0,i.__read)(d)))}}var l=v},96717:(C,c,t)=>{"use strict";t.d(c,{G:()=>u});var i=t(40372),s=t(13765);function u(){return(0,i.e)(function(v,l){var h,p=!1;v.subscribe((0,s.x)(l,function(d){var f=h;h=d,p&&l.next([f,d]),p=!0}))})}},89152:(C,c,t)=>{"use strict";t.d(c,{j:()=>s});var i=t(39343);function s(){for(var u=[],v=0;v<arguments.length;v++)u[v]=arguments[v];var l=u.length;if(l===0)throw new Error("list of properties cannot be empty.");return(0,i.U)(function(h){for(var p=h,d=0;d<l;d++){var f=p?.[u[d]];if(typeof f<"u")p=f;else return}return p})}},48301:(C,c,t)=>{"use strict";t.d(c,{n:()=>v});var i=t(69966),s=t(13975),u=t(32654);function v(l){return l?function(h){return(0,u.$)(l)(h)}:function(h){return(0,s.O)(new i.x)(h)}}},88859:(C,c,t)=>{"use strict";t.d(c,{n:()=>u});var i=t(88646),s=t(59795);function u(v){return function(l){var h=new i.X(v);return new s.c(l,function(){return h})}}},88775:(C,c,t)=>{"use strict";t.d(c,{C:()=>u});var i=t(89371),s=t(59795);function u(){return function(v){var l=new i.c;return new s.c(v,function(){return l})}}},54111:(C,c,t)=>{"use strict";t.d(c,{_:()=>v});var i=t(37497),s=t(13975),u=t(23873);function v(l,h,p,d){p&&!(0,u.m)(p)&&(d=p);var f=(0,u.m)(p)?p:void 0;return function(g){return(0,s.O)(new i.t(l,h,d),f)(g)}}},46268:(C,c,t)=>{"use strict";t.d(c,{Q:()=>l});var i=t(48314),s=t(85787),u=t(40372),v=t(42250);function l(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return h.length?(0,u.e)(function(d,f){(0,s.R)((0,i.__spreadArray)([d],(0,i.__read)(h)))(f)}):v.y}},60115:(C,c,t)=>{"use strict";t.d(c,{u:()=>u});var i=t(39322),s=t(40372);function u(v,l){return(0,s.e)((0,i.U)(v,l,arguments.length>=2,!1,!0))}},10558:(C,c,t)=>{"use strict";t.d(c,{x:()=>u});var i=t(40372),s=t(13765);function u(){return(0,i.e)(function(v,l){var h=null;v._refCount++;var p=(0,s.x)(l,void 0,void 0,void 0,function(){if(!v||v._refCount<=0||0<--v._refCount){h=null;return}var d=v._connection,f=h;h=null,d&&(!f||d===f)&&d.unsubscribe(),l.unsubscribe()});v.subscribe(p),p.closed||(h=v.connect())})}},53146:(C,c,t)=>{"use strict";t.d(c,{r:()=>h});var i=t(42420),s=t(40372),u=t(13765),v=t(27187),l=t(80852);function h(p){var d,f=1/0,g;return p!=null&&(typeof p=="object"?(d=p.count,f=d===void 0?1/0:d,g=p.delay):f=p),f<=0?function(){return i.E}:(0,s.e)(function(y,b){var E=0,S,w=function(){if(S?.unsubscribe(),S=null,g!=null){var P=typeof g=="number"?(0,l.H)(g):(0,v.Xf)(g(E)),R=(0,u.x)(b,function(){R.unsubscribe(),x()});P.subscribe(R)}else x()},x=function(){var P=!1;S=y.subscribe((0,u.x)(b,void 0,function(){++E<f?S?w():P=!0:b.complete()})),P&&w()};x()})}},15357:(C,c,t)=>{"use strict";t.d(c,{a:()=>l});var i=t(27187),s=t(69966),u=t(40372),v=t(13765);function l(h){return(0,u.e)(function(p,d){var f,g=!1,y,b=!1,E=!1,S=function(){return E&&b&&(d.complete(),!0)},w=function(){return y||(y=new s.x,(0,i.Xf)(h(y)).subscribe((0,v.x)(d,function(){f?x():g=!0},function(){b=!0,S()}))),y},x=function(){E=!1,f=p.subscribe((0,v.x)(d,void 0,function(){E=!0,!S()&&w().next()})),g&&(f.unsubscribe(),f=null,g=!1,x())};x()})}},10570:(C,c,t)=>{"use strict";t.d(c,{X:()=>h});var i=t(40372),s=t(13765),u=t(42250),v=t(80852),l=t(27187);function h(p){p===void 0&&(p=1/0);var d;p&&typeof p=="object"?d=p:d={count:p};var f=d.count,g=f===void 0?1/0:f,y=d.delay,b=d.resetOnSuccess,E=b===void 0?!1:b;return g<=0?u.y:(0,i.e)(function(S,w){var x=0,P,R=function(){var T=!1;P=S.subscribe((0,s.x)(w,function(A){E&&(x=0),w.next(A)},void 0,function(A){if(x++<g){var I=function(){P?(P.unsubscribe(),P=null,R()):T=!0};if(y!=null){var N=typeof y=="number"?(0,v.H)(y):(0,l.Xf)(y(A,x)),K=(0,s.x)(w,function(){K.unsubscribe(),I()},function(){w.complete()});N.subscribe(K)}else I()}else w.error(A)})),T&&(P.unsubscribe(),P=null,R())};R()})}},19985:(C,c,t)=>{"use strict";t.d(c,{a:()=>l});var i=t(27187),s=t(69966),u=t(40372),v=t(13765);function l(h){return(0,u.e)(function(p,d){var f,g=!1,y,b=function(){f=p.subscribe((0,v.x)(d,void 0,void 0,function(E){y||(y=new s.x,(0,i.Xf)(h(y)).subscribe((0,v.x)(d,function(){return f?b():g=!0}))),y&&y.next(E)})),g&&(f.unsubscribe(),f=null,g=!1,b())};b()})}},77757:(C,c,t)=>{"use strict";t.d(c,{U:()=>l});var i=t(27187),s=t(40372),u=t(22484),v=t(13765);function l(h){return(0,s.e)(function(p,d){var f=!1,g=null;p.subscribe((0,v.x)(d,function(y){f=!0,g=y})),(0,i.Xf)(h).subscribe((0,v.x)(d,function(){if(f){f=!1;var y=g;g=null,d.next(y)}},u.Z))})}},77008:(C,c,t)=>{"use strict";t.d(c,{b:()=>v});var i=t(85202),s=t(77757),u=t(93564);function v(l,h){return h===void 0&&(h=i.z),(0,s.U)((0,u.F)(l,h))}},91729:(C,c,t)=>{"use strict";t.d(c,{R:()=>u});var i=t(40372),s=t(39322);function u(v,l){return(0,i.e)((0,s.U)(v,l,arguments.length>=2,!0))}},39322:(C,c,t)=>{"use strict";t.d(c,{U:()=>s});var i=t(13765);function s(u,v,l,h,p){return function(d,f){var g=l,y=v,b=0;d.subscribe((0,i.x)(f,function(E){var S=b++;y=g?u(y,E,S):(g=!0,E),h&&f.next(y)},p&&function(){g&&f.next(y),f.complete()}))}}},12585:(C,c,t)=>{"use strict";t.d(c,{N:()=>v});var i=t(40372),s=t(13765),u=t(27187);function v(h,p){return p===void 0&&(p=function(d,f){return d===f}),(0,i.e)(function(d,f){var g=l(),y=l(),b=function(S){f.next(S),f.complete()},E=function(S,w){var x=(0,s.x)(f,function(P){var R=w.buffer,T=w.complete;R.length===0?T?b(!1):S.buffer.push(P):!p(P,R.shift())&&b(!1)},function(){S.complete=!0;var P=w.complete,R=w.buffer;P&&b(R.length===0),x?.unsubscribe()});return x};d.subscribe(E(g,y)),(0,u.Xf)(h).subscribe(E(y,g))})}function l(){return{buffer:[],complete:!1}}},32900:(C,c,t)=>{"use strict";t.d(c,{B:()=>h});var i=t(48314),s=t(27187),u=t(69966),v=t(16993),l=t(40372);function h(d){d===void 0&&(d={});var f=d.connector,g=f===void 0?function(){return new u.x}:f,y=d.resetOnError,b=y===void 0?!0:y,E=d.resetOnComplete,S=E===void 0?!0:E,w=d.resetOnRefCountZero,x=w===void 0?!0:w;return function(P){var R,T,A,I=0,N=!1,K=!1,_=function(){T?.unsubscribe(),T=void 0},W=function(){_(),R=A=void 0,N=K=!1},j=function(){var re=R;W(),re?.unsubscribe()};return(0,l.e)(function(re,X){I++,!K&&!N&&_();var Z=A=A??g();X.add(function(){I--,I===0&&!K&&!N&&(T=p(j,x))}),Z.subscribe(X),!R&&I>0&&(R=new v.Hp({next:function(J){return Z.next(J)},error:function(J){K=!0,_(),T=p(W,b,J),Z.error(J)},complete:function(){N=!0,_(),T=p(W,S),Z.complete()}}),(0,s.Xf)(re).subscribe(R))})(P)}}function p(d,f){for(var g=[],y=2;y<arguments.length;y++)g[y-2]=arguments[y];if(f===!0){d();return}if(f!==!1){var b=new v.Hp({next:function(){b.unsubscribe(),d()}});return(0,s.Xf)(f.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(g)))).subscribe(b)}}},18600:(C,c,t)=>{"use strict";t.d(c,{d:()=>u});var i=t(37497),s=t(32900);function u(v,l,h){var p,d,f,g,y=!1;return v&&typeof v=="object"?(p=v.bufferSize,g=p===void 0?1/0:p,d=v.windowTime,l=d===void 0?1/0:d,f=v.refCount,y=f===void 0?!1:f,h=v.scheduler):g=v??1/0,(0,s.B)({connector:function(){return new i.t(g,l,h)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:y})}},5058:(C,c,t)=>{"use strict";t.d(c,{Z:()=>h});var i=t(82197),s=t(57523),u=t(86486),v=t(40372),l=t(13765);function h(p){return(0,v.e)(function(d,f){var g=!1,y,b=!1,E=0;d.subscribe((0,l.x)(f,function(S){b=!0,(!p||p(S,E++,d))&&(g&&f.error(new s.c("Too many matching values")),g=!0,y=S)},function(){g?(f.next(y),f.complete()):f.error(b?new u.d("No matching values"):new i.K)}))})}},42554:(C,c,t)=>{"use strict";t.d(c,{T:()=>s});var i=t(56361);function s(u){return(0,i.h)(function(v,l){return u<=l})}},73086:(C,c,t)=>{"use strict";t.d(c,{W:()=>v});var i=t(42250),s=t(40372),u=t(13765);function v(l){return l<=0?i.y:(0,s.e)(function(h,p){var d=new Array(l),f=0;return h.subscribe((0,u.x)(p,function(g){var y=f++;if(y<l)d[y]=g;else{var b=y%l,E=d[b];d[b]=g,p.next(E)}})),function(){d=null}})}},45375:(C,c,t)=>{"use strict";t.d(c,{u:()=>l});var i=t(40372),s=t(13765),u=t(27187),v=t(22484);function l(h){return(0,i.e)(function(p,d){var f=!1,g=(0,s.x)(d,function(){g?.unsubscribe(),f=!0},v.Z);(0,u.Xf)(h).subscribe(g),p.subscribe((0,s.x)(d,function(y){return f&&d.next(y)}))})}},71780:(C,c,t)=>{"use strict";t.d(c,{n:()=>u});var i=t(40372),s=t(13765);function u(v){return(0,i.e)(function(l,h){var p=!1,d=0;l.subscribe((0,s.x)(h,function(f){return(p||(p=!v(f,d++)))&&h.next(f)}))})}},64811:(C,c,t)=>{"use strict";t.d(c,{O:()=>v});var i=t(56284),s=t(49892),u=t(40372);function v(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];var p=(0,s.yG)(l);return(0,u.e)(function(d,f){(p?(0,i.z)(l,d,p):(0,i.z)(l,d)).subscribe(f)})}},43970:(C,c,t)=>{"use strict";t.d(c,{R:()=>s});var i=t(40372);function s(u,v){return v===void 0&&(v=0),(0,i.e)(function(l,h){h.add(u.schedule(function(){return l.subscribe(h)},v))})}},95311:(C,c,t)=>{"use strict";t.d(c,{B:()=>u});var i=t(90996),s=t(42250);function u(){return(0,i.w)(s.y)}},90996:(C,c,t)=>{"use strict";t.d(c,{w:()=>v});var i=t(27187),s=t(40372),u=t(13765);function v(l,h){return(0,s.e)(function(p,d){var f=null,g=0,y=!1,b=function(){return y&&!f&&d.complete()};p.subscribe((0,u.x)(d,function(E){f?.unsubscribe();var S=0,w=g++;(0,i.Xf)(l(E,w)).subscribe(f=(0,u.x)(d,function(x){return d.next(h?h(E,x,w,S++):x)},function(){f=null,b()}))},function(){y=!0,b()}))})}},45393:(C,c,t)=>{"use strict";t.d(c,{c:()=>u});var i=t(90996),s=t(23873);function u(v,l){return(0,s.m)(l)?(0,i.w)(function(){return v},l):(0,i.w)(function(){return v})}},53252:(C,c,t)=>{"use strict";t.d(c,{w:()=>u});var i=t(90996),s=t(40372);function u(v,l){return(0,s.e)(function(h,p){var d=l;return(0,i.w)(function(f,g){return v(d,f,g)},function(f,g){return d=g,g})(h).subscribe(p),function(){d=null}})}},84677:(C,c,t)=>{"use strict";t.d(c,{q:()=>v});var i=t(42420),s=t(40372),u=t(13765);function v(l){return l<=0?function(){return i.E}:(0,s.e)(function(h,p){var d=0;h.subscribe((0,u.x)(p,function(f){++d<=l&&(p.next(f),l<=d&&p.complete())}))})}},42271:(C,c,t)=>{"use strict";t.d(c,{h:()=>l});var i=t(48314),s=t(42420),u=t(40372),v=t(13765);function l(h){return h<=0?function(){return s.E}:(0,u.e)(function(p,d){var f=[];p.subscribe((0,v.x)(d,function(g){f.push(g),h<f.length&&f.shift()},function(){var g,y;try{for(var b=(0,i.__values)(f),E=b.next();!E.done;E=b.next()){var S=E.value;d.next(S)}}catch(w){g={error:w}}finally{try{E&&!E.done&&(y=b.return)&&y.call(b)}finally{if(g)throw g.error}}d.complete()},void 0,function(){f=null}))})}},24321:(C,c,t)=>{"use strict";t.d(c,{R:()=>l});var i=t(40372),s=t(13765),u=t(27187),v=t(22484);function l(h){return(0,i.e)(function(p,d){(0,u.Xf)(h).subscribe((0,s.x)(d,function(){return d.complete()},v.Z)),!d.closed&&p.subscribe(d)})}},83639:(C,c,t)=>{"use strict";t.d(c,{o:()=>u});var i=t(40372),s=t(13765);function u(v,l){return l===void 0&&(l=!1),(0,i.e)(function(h,p){var d=0;h.subscribe((0,s.x)(p,function(f){var g=v(f,d++);(g||l)&&p.next(f),!g&&p.complete()}))})}},76970:(C,c,t)=>{"use strict";t.d(c,{b:()=>l});var i=t(23873),s=t(40372),u=t(13765),v=t(42250);function l(h,p,d){var f=(0,i.m)(h)||p||d?{next:h,error:p,complete:d}:h;return f?(0,s.e)(function(g,y){var b;(b=f.subscribe)===null||b===void 0||b.call(f);var E=!0;g.subscribe((0,u.x)(y,function(S){var w;(w=f.next)===null||w===void 0||w.call(f,S),y.next(S)},function(){var S;E=!1,(S=f.complete)===null||S===void 0||S.call(f),y.complete()},function(S){var w;E=!1,(w=f.error)===null||w===void 0||w.call(f,S),y.error(S)},function(){var S,w;E&&((S=f.unsubscribe)===null||S===void 0||S.call(f)),(w=f.finalize)===null||w===void 0||w.call(f)}))}):v.y}},78766:(C,c,t)=>{"use strict";t.d(c,{P:()=>l,d:()=>v});var i=t(40372),s=t(13765),u=t(27187),v={leading:!0,trailing:!1};function l(h,p){return p===void 0&&(p=v),(0,i.e)(function(d,f){var g=p.leading,y=p.trailing,b=!1,E=null,S=null,w=!1,x=function(){S?.unsubscribe(),S=null,y&&(T(),w&&f.complete())},P=function(){S=null,w&&f.complete()},R=function(A){return S=(0,u.Xf)(h(A)).subscribe((0,s.x)(f,x,P))},T=function(){if(b){b=!1;var A=E;E=null,f.next(A),!w&&R(A)}};d.subscribe((0,s.x)(f,function(A){b=!0,E=A,!(S&&!S.closed)&&(g?T():R(A))},function(){w=!0,!(y&&b&&S&&!S.closed)&&f.complete()}))})}},44727:(C,c,t)=>{"use strict";t.d(c,{p:()=>v});var i=t(85202),s=t(78766),u=t(80852);function v(l,h,p){h===void 0&&(h=i.z),p===void 0&&(p=s.d);var d=(0,u.H)(l,h);return(0,s.P)(function(){return d},p)}},23403:(C,c,t)=>{"use strict";t.d(c,{T:()=>v});var i=t(82197),s=t(40372),u=t(13765);function v(h){return h===void 0&&(h=l),(0,s.e)(function(p,d){var f=!1;p.subscribe((0,u.x)(d,function(g){f=!0,d.next(g)},function(){return f?d.complete():d.error(h())}))})}function l(){return new i.K}},58453:(C,c,t)=>{"use strict";t.d(c,{J:()=>v});var i=t(85202),s=t(40372),u=t(13765);function v(h){return h===void 0&&(h=i.z),(0,s.e)(function(p,d){var f=h.now();p.subscribe((0,u.x)(d,function(g){var y=h.now(),b=y-f;f=y,d.next(new l(g,b))}))})}var l=function(){function h(p,d){this.value=p,this.interval=d}return h}()},74790:(C,c,t)=>{"use strict";t.d(c,{V:()=>f,W:()=>d});var i=t(85202),s=t(34392),u=t(40372),v=t(27187),l=t(28510),h=t(13765),p=t(72225),d=(0,l.d)(function(y){return function(E){E===void 0&&(E=null),y(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=E}});function f(y,b){var E=(0,s.q)(y)?{first:y}:typeof y=="number"?{each:y}:y,S=E.first,w=E.each,x=E.with,P=x===void 0?g:x,R=E.scheduler,T=R===void 0?b??i.z:R,A=E.meta,I=A===void 0?null:A;if(S==null&&w==null)throw new TypeError("No timeout provided.");return(0,u.e)(function(N,K){var _,W,j=null,re=0,X=function(Z){W=(0,p.f)(K,T,function(){try{_.unsubscribe(),(0,v.Xf)(P({meta:I,lastValue:j,seen:re})).subscribe(K)}catch(J){K.error(J)}},Z)};_=N.subscribe((0,h.x)(K,function(Z){W?.unsubscribe(),re++,K.next(j=Z),w>0&&X(w)},void 0,void 0,function(){W?.closed||W?.unsubscribe(),j=null})),!re&&X(S!=null?typeof S=="number"?S:+S-T.now():w)})}function g(y){throw new d(y)}},78844:(C,c,t)=>{"use strict";t.d(c,{L:()=>v});var i=t(85202),s=t(34392),u=t(74790);function v(l,h,p){var d,f,g;if(p=p??i.P,(0,s.q)(l)?d=l:typeof l=="number"&&(f=l),h)g=function(){return h};else throw new TypeError("No observable provided to switch to");if(d==null&&f==null)throw new TypeError("No timeout provided.");return(0,u.V)({first:d,each:f,scheduler:p,with:g})}},97347:(C,c,t)=>{"use strict";t.d(c,{A:()=>u});var i=t(185),s=t(39343);function u(v){return v===void 0&&(v=i.l),(0,s.U)(function(l){return{value:l,timestamp:v.now()}})}},28037:(C,c,t)=>{"use strict";t.d(c,{q:()=>v});var i=t(60115),s=t(40372),u=function(l,h){return l.push(h),l};function v(){return(0,s.e)(function(l,h){(0,i.u)(u,[])(l).subscribe(h)})}},80430:(C,c,t)=>{"use strict";t.d(c,{u:()=>h});var i=t(69966),s=t(40372),u=t(13765),v=t(22484),l=t(27187);function h(p){return(0,s.e)(function(d,f){var g=new i.x;f.next(g.asObservable());var y=function(b){g.error(b),f.error(b)};return d.subscribe((0,u.x)(f,function(b){return g?.next(b)},function(){g.complete(),f.complete()},y)),(0,l.Xf)(p).subscribe((0,u.x)(f,function(){g.complete(),f.next(g=new i.x)},v.Z,y)),function(){g?.unsubscribe(),g=null}})}},94440:(C,c,t)=>{"use strict";t.d(c,{r:()=>l});var i=t(48314),s=t(69966),u=t(40372),v=t(13765);function l(h,p){p===void 0&&(p=0);var d=p>0?p:h;return(0,u.e)(function(f,g){var y=[new s.x],b=[],E=0;g.next(y[0].asObservable()),f.subscribe((0,v.x)(g,function(S){var w,x;try{for(var P=(0,i.__values)(y),R=P.next();!R.done;R=P.next()){var T=R.value;T.next(S)}}catch(N){w={error:N}}finally{try{R&&!R.done&&(x=P.return)&&x.call(P)}finally{if(w)throw w.error}}var A=E-h+1;if(A>=0&&A%d===0&&y.shift().complete(),++E%d===0){var I=new s.x;y.push(I),g.next(I.asObservable())}},function(){for(;y.length>0;)y.shift().complete();g.complete()},function(S){for(;y.length>0;)y.shift().error(S);g.error(S)},function(){b=null,y=null}))})}},21071:(C,c,t)=>{"use strict";t.d(c,{I:()=>f});var i=t(69966),s=t(85202),u=t(19973),v=t(40372),l=t(13765),h=t(34758),p=t(49892),d=t(72225);function f(g){for(var y,b,E=[],S=1;S<arguments.length;S++)E[S-1]=arguments[S];var w=(y=(0,p.yG)(E))!==null&&y!==void 0?y:s.z,x=(b=E[0])!==null&&b!==void 0?b:null,P=E[1]||1/0;return(0,v.e)(function(R,T){var A=[],I=!1,N=function(j){var re=j.window,X=j.subs;re.complete(),X.unsubscribe(),(0,h.P)(A,j),I&&K()},K=function(){if(A){var j=new u.w0;T.add(j);var re=new i.x,X={window:re,subs:j,seen:0};A.push(X),T.next(re.asObservable()),(0,d.f)(j,w,function(){return N(X)},g)}};x!==null&&x>=0?(0,d.f)(T,w,K,x,!0):I=!0,K();var _=function(j){return A.slice().forEach(j)},W=function(j){_(function(re){var X=re.window;return j(X)}),j(T),T.unsubscribe()};return R.subscribe((0,l.x)(T,function(j){_(function(re){re.window.next(j),P<=++re.seen&&N(re)})},function(){return W(function(j){return j.complete()})},function(j){return W(function(re){return re.error(j)})})),function(){A=null}})}},16096:(C,c,t)=>{"use strict";t.d(c,{j:()=>f});var i=t(48314),s=t(69966),u=t(19973),v=t(40372),l=t(27187),h=t(13765),p=t(22484),d=t(34758);function f(g,y){return(0,v.e)(function(b,E){var S=[],w=function(x){for(;0<S.length;)S.shift().error(x);E.error(x)};(0,l.Xf)(g).subscribe((0,h.x)(E,function(x){var P=new s.x;S.push(P);var R=new u.w0,T=function(){(0,d.P)(S,P),P.complete(),R.unsubscribe()},A;try{A=(0,l.Xf)(y(x))}catch(I){w(I);return}E.next(P.asObservable()),R.add(A.subscribe((0,h.x)(E,T,p.Z,w)))},p.Z)),b.subscribe((0,h.x)(E,function(x){var P,R,T=S.slice();try{for(var A=(0,i.__values)(T),I=A.next();!I.done;I=A.next()){var N=I.value;N.next(x)}}catch(K){P={error:K}}finally{try{I&&!I.done&&(R=A.return)&&R.call(A)}finally{if(P)throw P.error}}},function(){for(;0<S.length;)S.shift().complete();E.complete()},w,function(){for(;0<S.length;)S.shift().unsubscribe()}))})}},41617:(C,c,t)=>{"use strict";t.d(c,{Q:()=>l});var i=t(69966),s=t(40372),u=t(13765),v=t(27187);function l(h){return(0,s.e)(function(p,d){var f,g,y=function(E){f.error(E),d.error(E)},b=function(){g?.unsubscribe(),f?.complete(),f=new i.x,d.next(f.asObservable());var E;try{E=(0,v.Xf)(h())}catch(S){y(S);return}E.subscribe(g=(0,u.x)(d,b,b,y))};b(),p.subscribe((0,u.x)(d,function(E){return f.next(E)},function(){f.complete(),d.complete()},y,function(){g?.unsubscribe(),f=null}))})}},1002:(C,c,t)=>{"use strict";t.d(c,{M:()=>d});var i=t(48314),s=t(40372),u=t(13765),v=t(27187),l=t(42250),h=t(22484),p=t(49892);function d(){for(var f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];var y=(0,p.jO)(f);return(0,s.e)(function(b,E){for(var S=f.length,w=new Array(S),x=f.map(function(){return!1}),P=!1,R=function(A){(0,v.Xf)(f[A]).subscribe((0,u.x)(E,function(I){w[A]=I,!P&&!x[A]&&(x[A]=!0,(P=x.every(l.y))&&(x=null))},h.Z))},T=0;T<S;T++)R(T);b.subscribe((0,u.x)(E,function(A){if(P){var I=(0,i.__spreadArray)([A],(0,i.__read)(w));E.next(y?y.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(I))):I)}}))})}},94465:(C,c,t)=>{"use strict";t.d(c,{$:()=>v});var i=t(48314),s=t(98405),u=t(40372);function v(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];return(0,u.e)(function(p,d){s.$.apply(void 0,(0,i.__spreadArray)([p],(0,i.__read)(l))).subscribe(d)})}},58769:(C,c,t)=>{"use strict";t.d(c,{h:()=>u});var i=t(98405),s=t(43817);function u(v){return(0,s.Z)(i.$,v)}},31990:(C,c,t)=>{"use strict";t.d(c,{y:()=>u});var i=t(48314),s=t(94465);function u(){for(var v=[],l=0;l<arguments.length;l++)v[l]=arguments[l];return s.$.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(v)))}},22449:(C,c,t)=>{"use strict";t.d(c,{Q:()=>l});var i=t(48592),s=t(7629),u=t(23873),v=t(72225);function l(h,p){return new i.y(function(d){var f;return(0,v.f)(d,p,function(){f=h[s.h](),(0,v.f)(d,p,function(){var g,y,b;try{g=f.next(),y=g.value,b=g.done}catch(E){d.error(E);return}b?d.complete():d.next(y)},0,!0)}),function(){return(0,u.m)(f?.return)&&f.return()}})}},86175:(C,c,t)=>{"use strict";t.d(c,{x:()=>T});var i=t(27187),s=t(54459),u=t(43970);function v(A,I){return(0,i.Xf)(A).pipe((0,u.R)(I),(0,s.Q)(I))}function l(A,I){return(0,i.Xf)(A).pipe((0,u.R)(I),(0,s.Q)(I))}var h=t(48592);function p(A,I){return new h.y(function(N){var K=0;return I.schedule(function(){K===A.length?N.complete():(N.next(A[K++]),N.closed||this.schedule())})})}var d=t(22449),f=t(72225);function g(A,I){if(!A)throw new Error("Iterable cannot be null");return new h.y(function(N){(0,f.f)(N,I,function(){var K=A[Symbol.asyncIterator]();(0,f.f)(N,I,function(){K.next().then(function(_){_.done?N.complete():N.next(_.value)})},0,!0)})})}var y=t(41234),b=t(11591),E=t(54940),S=t(84514),w=t(12442),x=t(95635),P=t(18738);function R(A,I){return g((0,P.Q)(A),I)}function T(A,I){if(A!=null){if((0,y.c)(A))return v(A,I);if((0,E.z)(A))return p(A,I);if((0,b.t)(A))return l(A,I);if((0,w.D)(A))return g(A,I);if((0,S.T)(A))return(0,d.Q)(A,I);if((0,P.L)(A))return R(A,I)}throw(0,x.z)(A)}},7194:(C,c,t)=>{"use strict";t.d(c,{o:()=>h});var i=t(48314),s=t(19973),u=function(p){(0,i.__extends)(d,p);function d(f,g){return p.call(this)||this}return d.prototype.schedule=function(f,g){return g===void 0&&(g=0),this},d}(s.w0),v={setInterval:function(p,d){for(var f=[],g=2;g<arguments.length;g++)f[g-2]=arguments[g];var y=v.delegate;return y?.setInterval?y.setInterval.apply(y,(0,i.__spreadArray)([p,d],(0,i.__read)(f))):setInterval.apply(void 0,(0,i.__spreadArray)([p,d],(0,i.__read)(f)))},clearInterval:function(p){var d=v.delegate;return(d?.clearInterval||clearInterval)(p)},delegate:void 0},l=t(34758),h=function(p){(0,i.__extends)(d,p);function d(f,g){var y=p.call(this,f,g)||this;return y.scheduler=f,y.work=g,y.pending=!1,y}return d.prototype.schedule=function(f,g){var y;if(g===void 0&&(g=0),this.closed)return this;this.state=f;var b=this.id,E=this.scheduler;return b!=null&&(this.id=this.recycleAsyncId(E,b,g)),this.pending=!0,this.delay=g,this.id=(y=this.id)!==null&&y!==void 0?y:this.requestAsyncId(E,this.id,g),this},d.prototype.requestAsyncId=function(f,g,y){return y===void 0&&(y=0),v.setInterval(f.flush.bind(f,this),y)},d.prototype.recycleAsyncId=function(f,g,y){if(y===void 0&&(y=0),y!=null&&this.delay===y&&this.pending===!1)return g;g!=null&&v.clearInterval(g)},d.prototype.execute=function(f,g){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var y=this._execute(f,g);if(y)return y;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},d.prototype._execute=function(f,g){var y=!1,b;try{this.work(f)}catch(E){y=!0,b=E||new Error("Scheduled action threw falsy error")}if(y)return this.unsubscribe(),b},d.prototype.unsubscribe=function(){if(!this.closed){var f=this,g=f.id,y=f.scheduler,b=y.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,l.P)(b,this),g!=null&&(this.id=this.recycleAsyncId(y,g,null)),this.delay=null,p.prototype.unsubscribe.call(this)}},d}(u)},4285:(C,c,t)=>{"use strict";t.d(c,{v:()=>u});var i=t(48314),s=t(60578),u=function(v){(0,i.__extends)(l,v);function l(h,p){p===void 0&&(p=s.b.now);var d=v.call(this,h,p)||this;return d.actions=[],d._active=!1,d}return l.prototype.flush=function(h){var p=this.actions;if(this._active){p.push(h);return}var d;this._active=!0;do if(d=h.execute(h.state,h.delay))break;while(h=p.shift());if(this._active=!1,d){for(;h=p.shift();)h.unsubscribe();throw d}},l}(s.b)},85202:(C,c,t)=>{"use strict";t.d(c,{P:()=>v,z:()=>u});var i=t(7194),s=t(4285),u=new s.v(i.o),v=u},185:(C,c,t)=>{"use strict";t.d(c,{l:()=>i});var i={now:function(){return(i.delegate||Date).now()},delegate:void 0}},93467:(C,c,t)=>{"use strict";t.d(c,{z:()=>s});var i=t(48314),s={setTimeout:function(u,v){for(var l=[],h=2;h<arguments.length;h++)l[h-2]=arguments[h];var p=s.delegate;return p?.setTimeout?p.setTimeout.apply(p,(0,i.__spreadArray)([u,v],(0,i.__read)(l))):setTimeout.apply(void 0,(0,i.__spreadArray)([u,v],(0,i.__read)(l)))},clearTimeout:function(u){var v=s.delegate;return(v?.clearTimeout||clearTimeout)(u)},delegate:void 0}},7629:(C,c,t)=>{"use strict";t.d(c,{h:()=>s});function i(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var s=i()},98638:(C,c,t)=>{"use strict";t.d(c,{L:()=>i});var i=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()},27217:(C,c,t)=>{"use strict";t.d(c,{W:()=>s});var i=t(28510),s=(0,i.d)(function(u){return function(){u(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},82197:(C,c,t)=>{"use strict";t.d(c,{K:()=>s});var i=t(28510),s=(0,i.d)(function(u){return function(){u(this),this.name="EmptyError",this.message="no elements in sequence"}})},86486:(C,c,t)=>{"use strict";t.d(c,{d:()=>s});var i=t(28510),s=(0,i.d)(function(u){return function(l){u(this),this.name="NotFoundError",this.message=l}})},8647:(C,c,t)=>{"use strict";t.d(c,{N:()=>s});var i=t(28510),s=(0,i.d)(function(u){return function(){u(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},57523:(C,c,t)=>{"use strict";t.d(c,{c:()=>s});var i=t(28510),s=(0,i.d)(function(u){return function(l){u(this),this.name="SequenceError",this.message=l}})},14101:(C,c,t)=>{"use strict";t.d(c,{B:()=>s});var i=t(28510),s=(0,i.d)(function(u){return function(l){u(this),this.message=l?l.length+` errors occurred during unsubscription: `+l.map(function(h,p){return p+1+") "+h.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=l}})},49892:(C,c,t)=>{"use strict";t.d(c,{_6:()=>h,jO:()=>v,yG:()=>l});var i=t(23873),s=t(6838);function u(p){return p[p.length-1]}function v(p){return(0,i.m)(u(p))?p.pop():void 0}function l(p){return(0,s.K)(u(p))?p.pop():void 0}function h(p,d){return typeof u(p)=="number"?p.pop():d}},20301:(C,c,t)=>{"use strict";t.d(c,{D:()=>l});var i=Array.isArray,s=Object.getPrototypeOf,u=Object.prototype,v=Object.keys;function l(p){if(p.length===1){var d=p[0];if(i(d))return{args:d,keys:null};if(h(d)){var f=v(d);return{args:f.map(function(g){return d[g]}),keys:f}}}return{args:p,keys:null}}function h(p){return p&&typeof p=="object"&&s(p)===u}},17731:(C,c,t)=>{"use strict";t.d(c,{k:()=>s});var i=Array.isArray;function s(u){return u.length===1&&i(u[0])?u[0]:u}},34758:(C,c,t)=>{"use strict";t.d(c,{P:()=>i});function i(s,u){if(s){var v=s.indexOf(u);0<=v&&s.splice(v,1)}}},28510:(C,c,t)=>{"use strict";t.d(c,{d:()=>i});function i(s){var u=function(l){Error.call(l),l.stack=new Error().stack},v=s(u);return v.prototype=Object.create(Error.prototype),v.prototype.constructor=v,v}},21903:(C,c,t)=>{"use strict";t.d(c,{n:()=>i});function i(s,u){return s.reduce(function(v,l,h){return v[l]=u[h],v},{})}},9363:(C,c,t)=>{"use strict";t.d(c,{O:()=>v,x:()=>u});var i=t(19169),s=null;function u(l){if(i.v.useDeprecatedSynchronousErrorHandling){var h=!s;if(h&&(s={errorThrown:!1,error:null}),l(),h){var p=s,d=p.errorThrown,f=p.error;if(s=null,d)throw f}}else l()}function v(l){i.v.useDeprecatedSynchronousErrorHandling&&s&&(s.errorThrown=!0,s.error=l)}},72225:(C,c,t)=>{"use strict";t.d(c,{f:()=>i});function i(s,u,v,l,h){l===void 0&&(l=0),h===void 0&&(h=!1);var p=u.schedule(function(){v(),h?s.add(this.schedule(null,l)):this.unsubscribe()},l);if(s.add(p),!h)return p}},42250:(C,c,t)=>{"use strict";t.d(c,{y:()=>i});function i(s){return s}},54940:(C,c,t)=>{"use strict";t.d(c,{z:()=>i});var i=function(s){return s&&typeof s.length=="number"&&typeof s!="function"}},12442:(C,c,t)=>{"use strict";t.d(c,{D:()=>s});var i=t(23873);function s(u){return Symbol.asyncIterator&&(0,i.m)(u?.[Symbol.asyncIterator])}},34392:(C,c,t)=>{"use strict";t.d(c,{q:()=>i});function i(s){return s instanceof Date&&!isNaN(s)}},23873:(C,c,t)=>{"use strict";t.d(c,{m:()=>i});function i(s){return typeof s=="function"}},41234:(C,c,t)=>{"use strict";t.d(c,{c:()=>u});var i=t(98638),s=t(23873);function u(v){return(0,s.m)(v[i.L])}},84514:(C,c,t)=>{"use strict";t.d(c,{T:()=>u});var i=t(7629),s=t(23873);function u(v){return(0,s.m)(v?.[i.h])}},7536:(C,c,t)=>{"use strict";t.d(c,{b:()=>u});var i=t(48592),s=t(23873);function u(v){return!!v&&(v instanceof i.y||(0,s.m)(v.lift)&&(0,s.m)(v.subscribe))}},11591:(C,c,t)=>{"use strict";t.d(c,{t:()=>s});var i=t(23873);function s(u){return(0,i.m)(u?.then)}},18738:(C,c,t)=>{"use strict";t.d(c,{L:()=>v,Q:()=>u});var i=t(48314),s=t(23873);function u(l){return(0,i.__asyncGenerator)(this,arguments,function(){var p,d,f,g;return(0,i.__generator)(this,function(y){switch(y.label){case 0:p=l.getReader(),y.label=1;case 1:y.trys.push([1,,9,10]),y.label=2;case 2:return[4,(0,i.__await)(p.read())];case 3:return d=y.sent(),f=d.value,g=d.done,g?[4,(0,i.__await)(void 0)]:[3,5];case 4:return[2,y.sent()];case 5:return[4,(0,i.__await)(f)];case 6:return[4,y.sent()];case 7:return y.sent(),[3,2];case 8:return[3,10];case 9:return p.releaseLock(),[7];case 10:return[2]}})})}function v(l){return(0,s.m)(l?.getReader)}},6838:(C,c,t)=>{"use strict";t.d(c,{K:()=>s});var i=t(23873);function s(u){return u&&(0,i.m)(u.schedule)}},40372:(C,c,t)=>{"use strict";t.d(c,{A:()=>s,e:()=>u});var i=t(23873);function s(v){return(0,i.m)(v?.lift)}function u(v){return function(l){if(s(l))return l.lift(function(h){try{return v(h,this)}catch(p){this.error(p)}});throw new TypeError("Unable to lift unknown Observable type")}}},68714:(C,c,t)=>{"use strict";t.d(c,{Z:()=>l});var i=t(48314),s=t(39343),u=Array.isArray;function v(h,p){return u(p)?h.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(p))):h(p)}function l(h){return(0,s.U)(function(p){return v(h,p)})}},22484:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(){}},86925:(C,c,t)=>{"use strict";t.d(c,{f:()=>i});function i(s,u){return function(v,l){return!s.call(u,v,l)}}},15084:(C,c,t)=>{"use strict";t.d(c,{U:()=>u,z:()=>s});var i=t(42250);function s(){for(var v=[],l=0;l<arguments.length;l++)v[l]=arguments[l];return u(v)}function u(v){return v.length===0?i.y:v.length===1?v[0]:function(h){return v.reduce(function(p,d){return d(p)},h)}}},37663:(C,c,t)=>{"use strict";t.d(c,{h:()=>u});var i=t(19169),s=t(93467);function u(v){s.z.setTimeout(function(){var l=i.v.onUnhandledError;if(l)l(v);else throw v})}},95635:(C,c,t)=>{"use strict";t.d(c,{z:()=>i});function i(s){return new TypeError("You provided "+(s!==null&&typeof s=="object"?"an invalid object":"'"+s+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},37102:(C,c,t)=>{"use strict";t.r(c),t.d(c,{audit:()=>i.U,auditTime:()=>s.e,buffer:()=>u.f,bufferCount:()=>v.j,bufferTime:()=>l.e,bufferToggle:()=>h.P,bufferWhen:()=>p.R,catchError:()=>d.K,combineAll:()=>f.c,combineLatest:()=>y.a,combineLatestAll:()=>g.h,combineLatestWith:()=>b.V,concat:()=>E.z,concatAll:()=>S.u,concatMap:()=>w.b,concatMapTo:()=>x.w,concatWith:()=>P.T,connect:()=>R.$,count:()=>T.Q,debounce:()=>A.D,debounceTime:()=>I.b,defaultIfEmpty:()=>N.d,delay:()=>K.g,delayWhen:()=>_.j,dematerialize:()=>W.D,distinct:()=>j.E,distinctUntilChanged:()=>re.x,distinctUntilKeyChanged:()=>X.g,elementAt:()=>Z.T,endWith:()=>J.l,every:()=>q.y,exhaust:()=>L.b,exhaustAll:()=>$.Y,exhaustMap:()=>k.z,expand:()=>F.j,filter:()=>V.h,finalize:()=>pe.x,find:()=>ce.s,findIndex:()=>G.c,first:()=>te.P,flatMap:()=>Re.V,groupBy:()=>ie.v,ignoreElements:()=>fe.l,isEmpty:()=>Se.x,last:()=>he.Z,map:()=>me.U,mapTo:()=>_e.h,materialize:()=>we.i,max:()=>Ge.F,merge:()=>ht.T,mergeAll:()=>nt.J,mergeMap:()=>ue.z,mergeMapTo:()=>ae.j,mergeScan:()=>ve.f,mergeWith:()=>Me.b,min:()=>Ye.V,multicast:()=>qe.O,observeOn:()=>At.Q,onErrorResumeNext:()=>It.h,pairwise:()=>Ce.G,partition:()=>$e,pluck:()=>tt.j,publish:()=>ke.n,publishBehavior:()=>Oe.n,publishLast:()=>je.C,publishReplay:()=>Et._,race:()=>mt,raceWith:()=>Ne.Q,reduce:()=>bt.u,refCount:()=>Lt.x,repeat:()=>Gt.r,repeatWhen:()=>hn.a,retry:()=>Yt.X,retryWhen:()=>Bt.a,sample:()=>zt.U,sampleTime:()=>Kt.b,scan:()=>vt.R,sequenceEqual:()=>Ve.N,share:()=>lt.B,shareReplay:()=>at.d,single:()=>Xt.Z,skip:()=>rt.T,skipLast:()=>Rt.W,skipUntil:()=>rn.u,skipWhile:()=>sn.n,startWith:()=>Jn.O,subscribeOn:()=>ze.R,switchAll:()=>st.B,switchMap:()=>en.w,switchMapTo:()=>wt.c,switchScan:()=>Ke.w,take:()=>Ut.q,takeLast:()=>on.h,takeUntil:()=>Tn.R,takeWhile:()=>An.o,tap:()=>Zt.b,throttle:()=>ot.P,throttleTime:()=>We.p,throwIfEmpty:()=>Ft.T,timeInterval:()=>it.J,timeout:()=>qt.V,timeoutWith:()=>vn.L,timestamp:()=>fn.A,toArray:()=>Tt.q,window:()=>dn.u,windowCount:()=>mn.r,windowTime:()=>Kn.I,windowToggle:()=>Dn.j,windowWhen:()=>Vn.Q,withLatestFrom:()=>or.M,zip:()=>Qr.$,zipAll:()=>ni.h,zipWith:()=>yr.y});var i=t(45123),s=t(35978),u=t(22273),v=t(56960),l=t(90006),h=t(21275),p=t(72283),d=t(56469),f=t(6554),g=t(39338),y=t(90513),b=t(10650),E=t(10081),S=t(59694),w=t(9045),x=t(16057),P=t(64840),R=t(32654),T=t(33914),A=t(69065),I=t(61978),N=t(36686),K=t(19385),_=t(59587),W=t(33069),j=t(95502),re=t(50625),X=t(35857),Z=t(84629),J=t(81046),q=t(22934),L=t(10333),$=t(88699),k=t(58245),F=t(61086),V=t(56361),pe=t(90581),ce=t(78221),G=t(49401),te=t(775),ie=t(77351),fe=t(21008),Se=t(15595),he=t(93157),me=t(39343),_e=t(58885),we=t(57020),Ge=t(48606),ht=t(62613),nt=t(29655),Re=t(57402),ue=t(22479),ae=t(19363),ve=t(10173),Me=t(5165),Ye=t(8693),qe=t(13975),At=t(54459),It=t(50346),Ce=t(96717),Ae=t(86925);function $e(si,Yr){return function(Ci){return[(0,V.h)(si,Yr)(Ci),(0,V.h)((0,Ae.f)(si,Yr))(Ci)]}}var tt=t(89152),ke=t(48301),Oe=t(88859),je=t(88775),Et=t(54111),ct=t(48314),ut=t(17731),Ne=t(46268);function mt(){for(var si=[],Yr=0;Yr<arguments.length;Yr++)si[Yr]=arguments[Yr];return Ne.Q.apply(void 0,(0,ct.__spreadArray)([],(0,ct.__read)((0,ut.k)(si))))}var bt=t(60115),Gt=t(53146),hn=t(15357),Yt=t(10570),Bt=t(19985),Lt=t(10558),zt=t(77757),Kt=t(77008),vt=t(91729),Ve=t(12585),lt=t(32900),at=t(18600),Xt=t(5058),rt=t(42554),Rt=t(73086),rn=t(45375),sn=t(71780),Jn=t(64811),ze=t(43970),st=t(95311),en=t(90996),wt=t(45393),Ke=t(53252),Ut=t(84677),on=t(42271),Tn=t(24321),An=t(83639),Zt=t(76970),ot=t(78766),We=t(44727),Ft=t(23403),it=t(58453),qt=t(74790),vn=t(78844),fn=t(97347),Tt=t(28037),dn=t(80430),mn=t(94440),Kn=t(21071),Dn=t(16096),Vn=t(41617),or=t(1002),Qr=t(94465),ni=t(58769),yr=t(31990)},83969:(C,c)=>{"use strict";/** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function t($,k){var F=$.length;$.push(k);e:for(;0<F;){var V=F-1>>>1,pe=$[V];if(0<u(pe,k))$[V]=k,$[F]=pe,F=V;else break e}}function i($){return $.length===0?null:$[0]}function s($){if($.length===0)return null;var k=$[0],F=$.pop();if(F!==k){$[0]=F;e:for(var V=0,pe=$.length,ce=pe>>>1;V<ce;){var G=2*(V+1)-1,te=$[G],ie=G+1,fe=$[ie];if(0>u(te,F))ie<pe&&0>u(fe,te)?($[V]=fe,$[ie]=F,V=ie):($[V]=te,$[G]=F,V=G);else if(ie<pe&&0>u(fe,F))$[V]=fe,$[ie]=F,V=ie;else break e}}return k}function u($,k){var F=$.sortIndex-k.sortIndex;return F!==0?F:$.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var v=performance;c.unstable_now=function(){return v.now()}}else{var l=Date,h=l.now();c.unstable_now=function(){return l.now()-h}}var p=[],d=[],f=1,g=null,y=3,b=!1,E=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R($){for(var k=i(d);k!==null;){if(k.callback===null)s(d);else if(k.startTime<=$)s(d),k.sortIndex=k.expirationTime,t(p,k);else break;k=i(d)}}function T($){if(S=!1,R($),!E)if(i(p)!==null)E=!0,q(A);else{var k=i(d);k!==null&&L(T,k.startTime-$)}}function A($,k){E=!1,S&&(S=!1,x(K),K=-1),b=!0;var F=y;try{for(R(k),g=i(p);g!==null&&(!(g.expirationTime>k)||$&&!j());){var V=g.callback;if(typeof V=="function"){g.callback=null,y=g.priorityLevel;var pe=V(g.expirationTime<=k);k=c.unstable_now(),typeof pe=="function"?g.callback=pe:g===i(p)&&s(p),R(k)}else s(p);g=i(p)}if(g!==null)var ce=!0;else{var G=i(d);G!==null&&L(T,G.startTime-k),ce=!1}return ce}finally{g=null,y=F,b=!1}}var I=!1,N=null,K=-1,_=5,W=-1;function j(){return!(c.unstable_now()-W<_)}function re(){if(N!==null){var $=c.unstable_now();W=$;var k=!0;try{k=N(!0,$)}finally{k?X():(I=!1,N=null)}}else I=!1}var X;if(typeof P=="function")X=function(){P(re)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,J=Z.port2;Z.port1.onmessage=re,X=function(){J.postMessage(null)}}else X=function(){w(re,0)};function q($){N=$,I||(I=!0,X())}function L($,k){K=w(function(){$(c.unstable_now())},k)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function($){$.callback=null},c.unstable_continueExecution=function(){E||b||(E=!0,q(A))},c.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<$?Math.floor(1e3/$):5},c.unstable_getCurrentPriorityLevel=function(){return y},c.unstable_getFirstCallbackNode=function(){return i(p)},c.unstable_next=function($){switch(y){case 1:case 2:case 3:var k=3;break;default:k=y}var F=y;y=k;try{return $()}finally{y=F}},c.unstable_pauseExecution=function(){},c.unstable_requestPaint=function(){},c.unstable_runWithPriority=function($,k){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var F=y;y=$;try{return k()}finally{y=F}},c.unstable_scheduleCallback=function($,k,F){var V=c.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?V+F:V):F=V,$){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=F+pe,$={id:f++,callback:k,priorityLevel:$,startTime:F,expirationTime:pe,sortIndex:-1},F>V?($.sortIndex=F,t(d,$),i(p)===null&&$===i(d)&&(S?(x(K),K=-1):S=!0,L(T,F-V))):($.sortIndex=pe,t(p,$),E||b||(E=!0,q(A))),$},c.unstable_shouldYield=j,c.unstable_wrapCallback=function($){var k=y;return function(){var F=y;y=k;try{return $.apply(this,arguments)}finally{y=F}}}},71869:(C,c,t)=>{"use strict";C.exports=t(83969)},77746:C=>{function c(t){var i=t.anchorNode,s=t.anchorOffset,u=t.focusNode,v=t.focusOffset,l=i.compareDocumentPosition(u);return!(l===4||l===0&&s<v)}C.exports=c},77252:(C,c,t)=>{const i=Symbol("SemVer ANY");class s{static get ANY(){return i}constructor(y,b){if(b=u(b),y instanceof s){if(y.loose===!!b.loose)return y;y=y.value}y=y.trim().split(/\s+/).join(" "),p("comparator",y,b),this.options=b,this.loose=!!b.loose,this.parse(y),this.semver===i?this.value="":this.value=this.operator+this.semver.version,p("comp",this)}parse(y){const b=this.options.loose?v[l.COMPARATORLOOSE]:v[l.COMPARATOR],E=y.match(b);if(!E)throw new TypeError(`Invalid comparator: ${y}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new d(E[2],this.options.loose):this.semver=i}toString(){return this.value}test(y){if(p("Comparator.test",y,this.options.loose),this.semver===i||y===i)return!0;if(typeof y=="string")try{y=new d(y,this.options)}catch{return!1}return h(y,this.operator,this.semver,this.options)}intersects(y,b){if(!(y instanceof s))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new f(y.value,b).test(this.value):y.operator===""?y.value===""?!0:new f(this.value,b).test(y.semver):(b=u(b),b.includePrerelease&&(this.value==="<0.0.0-0"||y.value==="<0.0.0-0")||!b.includePrerelease&&(this.value.startsWith("<0.0.0")||y.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&y.operator.startsWith(">")||this.operator.startsWith("<")&&y.operator.startsWith("<")||this.semver.version===y.semver.version&&this.operator.includes("=")&&y.operator.includes("=")||h(this.semver,"<",y.semver,b)&&this.operator.startsWith(">")&&y.operator.startsWith("<")||h(this.semver,">",y.semver,b)&&this.operator.startsWith("<")&&y.operator.startsWith(">")))}}C.exports=s;const u=t(94579),{safeRe:v,t:l}=t(12274),h=t(31433),p=t(50225),d=t(24997),f=t(10715)},10715:(C,c,t)=>{class i{constructor(q,L){if(L=v(L),q instanceof i)return q.loose===!!L.loose&&q.includePrerelease===!!L.includePrerelease?q:new i(q.raw,L);if(q instanceof l)return this.raw=q.value,this.set=[[q]],this.format(),this;if(this.options=L,this.loose=!!L.loose,this.includePrerelease=!!L.includePrerelease,this.raw=q.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map($=>this.parseRange($.trim())).filter($=>$.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const $=this.set[0];if(this.set=this.set.filter(k=>!w(k[0])),this.set.length===0)this.set=[$];else if(this.set.length>1){for(const k of this.set)if(k.length===1&&x(k[0])){this.set=[k];break}}}this.format()}format(){return this.range=this.set.map(q=>q.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(q){const $=((this.options.includePrerelease&&E)|(this.options.loose&&S))+":"+q,k=u.get($);if(k)return k;const F=this.options.loose,V=F?d[f.HYPHENRANGELOOSE]:d[f.HYPHENRANGE];q=q.replace(V,X(this.options.includePrerelease)),h("hyphen replace",q),q=q.replace(d[f.COMPARATORTRIM],g),h("comparator trim",q),q=q.replace(d[f.TILDETRIM],y),h("tilde trim",q),q=q.replace(d[f.CARETTRIM],b),h("caret trim",q);let pe=q.split(" ").map(ie=>R(ie,this.options)).join(" ").split(/\s+/).map(ie=>re(ie,this.options));F&&(pe=pe.filter(ie=>(h("loose invalid filter",ie,this.options),!!ie.match(d[f.COMPARATORLOOSE])))),h("range list",pe);const ce=new Map,G=pe.map(ie=>new l(ie,this.options));for(const ie of G){if(w(ie))return[ie];ce.set(ie.value,ie)}ce.size>1&&ce.has("")&&ce.delete("");const te=[...ce.values()];return u.set($,te),te}intersects(q,L){if(!(q instanceof i))throw new TypeError("a Range is required");return this.set.some($=>P($,L)&&q.set.some(k=>P(k,L)&&$.every(F=>k.every(V=>F.intersects(V,L)))))}test(q){if(!q)return!1;if(typeof q=="string")try{q=new p(q,this.options)}catch{return!1}for(let L=0;L<this.set.length;L++)if(Z(this.set[L],q,this.options))return!0;return!1}}C.exports=i;const s=t(49716),u=new s({max:1e3}),v=t(94579),l=t(77252),h=t(50225),p=t(24997),{safeRe:d,t:f,comparatorTrimReplace:g,tildeTrimReplace:y,caretTrimReplace:b}=t(12274),{FLAG_INCLUDE_PRERELEASE:E,FLAG_LOOSE:S}=t(45074),w=J=>J.value==="<0.0.0-0",x=J=>J.value==="",P=(J,q)=>{let L=!0;const $=J.slice();let k=$.pop();for(;L&&$.length;)L=$.every(F=>k.intersects(F,q)),k=$.pop();return L},R=(J,q)=>(h("comp",J,q),J=N(J,q),h("caret",J),J=A(J,q),h("tildes",J),J=_(J,q),h("xrange",J),J=j(J,q),h("stars",J),J),T=J=>!J||J.toLowerCase()==="x"||J==="*",A=(J,q)=>J.trim().split(/\s+/).map(L=>I(L,q)).join(" "),I=(J,q)=>{const L=q.loose?d[f.TILDELOOSE]:d[f.TILDE];return J.replace(L,($,k,F,V,pe)=>{h("tilde",J,$,k,F,V,pe);let ce;return T(k)?ce="":T(F)?ce=`>=${k}.0.0 <${+k+1}.0.0-0`:T(V)?ce=`>=${k}.${F}.0 <${k}.${+F+1}.0-0`:pe?(h("replaceTilde pr",pe),ce=`>=${k}.${F}.${V}-${pe} <${k}.${+F+1}.0-0`):ce=`>=${k}.${F}.${V} <${k}.${+F+1}.0-0`,h("tilde return",ce),ce})},N=(J,q)=>J.trim().split(/\s+/).map(L=>K(L,q)).join(" "),K=(J,q)=>{h("caret",J,q);const L=q.loose?d[f.CARETLOOSE]:d[f.CARET],$=q.includePrerelease?"-0":"";return J.replace(L,(k,F,V,pe,ce)=>{h("caret",J,k,F,V,pe,ce);let G;return T(F)?G="":T(V)?G=`>=${F}.0.0${$} <${+F+1}.0.0-0`:T(pe)?F==="0"?G=`>=${F}.${V}.0${$} <${F}.${+V+1}.0-0`:G=`>=${F}.${V}.0${$} <${+F+1}.0.0-0`:ce?(h("replaceCaret pr",ce),F==="0"?V==="0"?G=`>=${F}.${V}.${pe}-${ce} <${F}.${V}.${+pe+1}-0`:G=`>=${F}.${V}.${pe}-${ce} <${F}.${+V+1}.0-0`:G=`>=${F}.${V}.${pe}-${ce} <${+F+1}.0.0-0`):(h("no pr"),F==="0"?V==="0"?G=`>=${F}.${V}.${pe}${$} <${F}.${V}.${+pe+1}-0`:G=`>=${F}.${V}.${pe}${$} <${F}.${+V+1}.0-0`:G=`>=${F}.${V}.${pe} <${+F+1}.0.0-0`),h("caret return",G),G})},_=(J,q)=>(h("replaceXRanges",J,q),J.split(/\s+/).map(L=>W(L,q)).join(" ")),W=(J,q)=>{J=J.trim();const L=q.loose?d[f.XRANGELOOSE]:d[f.XRANGE];return J.replace(L,($,k,F,V,pe,ce)=>{h("xRange",J,$,k,F,V,pe,ce);const G=T(F),te=G||T(V),ie=te||T(pe),fe=ie;return k==="="&&fe&&(k=""),ce=q.includePrerelease?"-0":"",G?k===">"||k==="<"?$="<0.0.0-0":$="*":k&&fe?(te&&(V=0),pe=0,k===">"?(k=">=",te?(F=+F+1,V=0,pe=0):(V=+V+1,pe=0)):k==="<="&&(k="<",te?F=+F+1:V=+V+1),k==="<"&&(ce="-0"),$=`${k+F}.${V}.${pe}${ce}`):te?$=`>=${F}.0.0${ce} <${+F+1}.0.0-0`:ie&&($=`>=${F}.${V}.0${ce} <${F}.${+V+1}.0-0`),h("xRange return",$),$})},j=(J,q)=>(h("replaceStars",J,q),J.trim().replace(d[f.STAR],"")),re=(J,q)=>(h("replaceGTE0",J,q),J.trim().replace(d[q.includePrerelease?f.GTE0PRE:f.GTE0],"")),X=J=>(q,L,$,k,F,V,pe,ce,G,te,ie,fe,Se)=>(T($)?L="":T(k)?L=`>=${$}.0.0${J?"-0":""}`:T(F)?L=`>=${$}.${k}.0${J?"-0":""}`:V?L=`>=${L}`:L=`>=${L}${J?"-0":""}`,T(G)?ce="":T(te)?ce=`<${+G+1}.0.0-0`:T(ie)?ce=`<${G}.${+te+1}.0-0`:fe?ce=`<=${G}.${te}.${ie}-${fe}`:J?ce=`<${G}.${te}.${+ie+1}-0`:ce=`<=${ce}`,`${L} ${ce}`.trim()),Z=(J,q,L)=>{for(let $=0;$<J.length;$++)if(!J[$].test(q))return!1;if(q.prerelease.length&&!L.includePrerelease){for(let $=0;$<J.length;$++)if(h(J[$].semver),J[$].semver!==l.ANY&&J[$].semver.prerelease.length>0){const k=J[$].semver;if(k.major===q.major&&k.minor===q.minor&&k.patch===q.patch)return!0}return!1}return!0}},24997:(C,c,t)=>{const i=t(50225),{MAX_LENGTH:s,MAX_SAFE_INTEGER:u}=t(45074),{safeRe:v,t:l}=t(12274),h=t(94579),{compareIdentifiers:p}=t(66593);class d{constructor(g,y){if(y=h(y),g instanceof d){if(g.loose===!!y.loose&&g.includePrerelease===!!y.includePrerelease)return g;g=g.version}else if(typeof g!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof g}".`);if(g.length>s)throw new TypeError(`version is longer than ${s} characters`);i("SemVer",g,y),this.options=y,this.loose=!!y.loose,this.includePrerelease=!!y.includePrerelease;const b=g.trim().match(y.loose?v[l.LOOSE]:v[l.FULL]);if(!b)throw new TypeError(`Invalid Version: ${g}`);if(this.raw=g,this.major=+b[1],this.minor=+b[2],this.patch=+b[3],this.major>u||this.major<0)throw new TypeError("Invalid major version");if(this.minor>u||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>u||this.patch<0)throw new TypeError("Invalid patch version");b[4]?this.prerelease=b[4].split(".").map(E=>{if(/^[0-9]+$/.test(E)){const S=+E;if(S>=0&&S<u)return S}return E}):this.prerelease=[],this.build=b[5]?b[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(g){if(i("SemVer.compare",this.version,this.options,g),!(g instanceof d)){if(typeof g=="string"&&g===this.version)return 0;g=new d(g,this.options)}return g.version===this.version?0:this.compareMain(g)||this.comparePre(g)}compareMain(g){return g instanceof d||(g=new d(g,this.options)),p(this.major,g.major)||p(this.minor,g.minor)||p(this.patch,g.patch)}comparePre(g){if(g instanceof d||(g=new d(g,this.options)),this.prerelease.length&&!g.prerelease.length)return-1;if(!this.prerelease.length&&g.prerelease.length)return 1;if(!this.prerelease.length&&!g.prerelease.length)return 0;let y=0;do{const b=this.prerelease[y],E=g.prerelease[y];if(i("prerelease compare",y,b,E),b===void 0&&E===void 0)return 0;if(E===void 0)return 1;if(b===void 0)return-1;if(b===E)continue;return p(b,E)}while(++y)}compareBuild(g){g instanceof d||(g=new d(g,this.options));let y=0;do{const b=this.build[y],E=g.build[y];if(i("prerelease compare",y,b,E),b===void 0&&E===void 0)return 0;if(E===void 0)return 1;if(b===void 0)return-1;if(b===E)continue;return p(b,E)}while(++y)}inc(g,y,b){switch(g){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",y,b);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",y,b);break;case"prepatch":this.prerelease.length=0,this.inc("patch",y,b),this.inc("pre",y,b);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",y,b),this.inc("pre",y,b);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const E=Number(b)?1:0;if(!y&&b===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[E];else{let S=this.prerelease.length;for(;--S>=0;)typeof this.prerelease[S]=="number"&&(this.prerelease[S]++,S=-2);if(S===-1){if(y===this.prerelease.join(".")&&b===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(E)}}if(y){let S=[y,E];b===!1&&(S=[y]),p(this.prerelease[0],y)===0?isNaN(this.prerelease[1])&&(this.prerelease=S):this.prerelease=S}break}default:throw new Error(`invalid increment argument: ${g}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}C.exports=d},10199:(C,c,t)=>{const i=t(43141),s=(u,v)=>{const l=i(u.trim().replace(/^[=v]+/,""),v);return l?l.version:null};C.exports=s},31433:(C,c,t)=>{const i=t(19797),s=t(79309),u=t(39071),v=t(69177),l=t(43949),h=t(91411),p=(d,f,g,y)=>{switch(f){case"===":return typeof d=="object"&&(d=d.version),typeof g=="object"&&(g=g.version),d===g;case"!==":return typeof d=="object"&&(d=d.version),typeof g=="object"&&(g=g.version),d!==g;case"":case"=":case"==":return i(d,g,y);case"!=":return s(d,g,y);case">":return u(d,g,y);case">=":return v(d,g,y);case"<":return l(d,g,y);case"<=":return h(d,g,y);default:throw new TypeError(`Invalid operator: ${f}`)}};C.exports=p},80966:(C,c,t)=>{const i=t(24997),s=t(43141),{safeRe:u,t:v}=t(12274),l=(h,p)=>{if(h instanceof i)return h;if(typeof h=="number"&&(h=String(h)),typeof h!="string")return null;p=p||{};let d=null;if(!p.rtl)d=h.match(u[v.COERCE]);else{let f;for(;(f=u[v.COERCERTL].exec(h))&&(!d||d.index+d[0].length!==h.length);)(!d||f.index+f[0].length!==d.index+d[0].length)&&(d=f),u[v.COERCERTL].lastIndex=f.index+f[1].length+f[2].length;u[v.COERCERTL].lastIndex=-1}return d===null?null:s(`${d[2]}.${d[3]||"0"}.${d[4]||"0"}`,p)};C.exports=l},93389:(C,c,t)=>{const i=t(24997),s=(u,v,l)=>{const h=new i(u,l),p=new i(v,l);return h.compare(p)||h.compareBuild(p)};C.exports=s},25896:(C,c,t)=>{const i=t(90105),s=(u,v)=>i(u,v,!0);C.exports=s},90105:(C,c,t)=>{const i=t(24997),s=(u,v,l)=>new i(u,l).compare(new i(v,l));C.exports=s},66329:(C,c,t)=>{const i=t(43141),s=(u,v)=>{const l=i(u,null,!0),h=i(v,null,!0),p=l.compare(h);if(p===0)return null;const d=p>0,f=d?l:h,g=d?h:l,y=!!f.prerelease.length;if(!!g.prerelease.length&&!y)return!g.patch&&!g.minor?"major":f.patch?"patch":f.minor?"minor":"major";const E=y?"pre":"";return l.major!==h.major?E+"major":l.minor!==h.minor?E+"minor":l.patch!==h.patch?E+"patch":"prerelease"};C.exports=s},19797:(C,c,t)=>{const i=t(90105),s=(u,v,l)=>i(u,v,l)===0;C.exports=s},39071:(C,c,t)=>{const i=t(90105),s=(u,v,l)=>i(u,v,l)>0;C.exports=s},69177:(C,c,t)=>{const i=t(90105),s=(u,v,l)=>i(u,v,l)>=0;C.exports=s},39098:(C,c,t)=>{const i=t(24997),s=(u,v,l,h,p)=>{typeof l=="string"&&(p=h,h=l,l=void 0);try{return new i(u instanceof i?u.version:u,l).inc(v,h,p).version}catch{return null}};C.exports=s},43949:(C,c,t)=>{const i=t(90105),s=(u,v,l)=>i(u,v,l)<0;C.exports=s},91411:(C,c,t)=>{const i=t(90105),s=(u,v,l)=>i(u,v,l)<=0;C.exports=s},55493:(C,c,t)=>{const i=t(24997),s=(u,v)=>new i(u,v).major;C.exports=s},33531:(C,c,t)=>{const i=t(24997),s=(u,v)=>new i(u,v).minor;C.exports=s},79309:(C,c,t)=>{const i=t(90105),s=(u,v,l)=>i(u,v,l)!==0;C.exports=s},43141:(C,c,t)=>{const i=t(24997),s=(u,v,l=!1)=>{if(u instanceof i)return u;try{return new i(u,v)}catch(h){if(!l)return null;throw h}};C.exports=s},29296:(C,c,t)=>{const i=t(24997),s=(u,v)=>new i(u,v).patch;C.exports=s},84606:(C,c,t)=>{const i=t(43141),s=(u,v)=>{const l=i(u,v);return l&&l.prerelease.length?l.prerelease:null};C.exports=s},5433:(C,c,t)=>{const i=t(90105),s=(u,v,l)=>i(v,u,l);C.exports=s},88559:(C,c,t)=>{const i=t(93389),s=(u,v)=>u.sort((l,h)=>i(h,l,v));C.exports=s},94126:(C,c,t)=>{const i=t(10715),s=(u,v,l)=>{try{v=new i(v,l)}catch{return!1}return v.test(u)};C.exports=s},7988:(C,c,t)=>{const i=t(93389),s=(u,v)=>u.sort((l,h)=>i(l,h,v));C.exports=s},47853:(C,c,t)=>{const i=t(43141),s=(u,v)=>{const l=i(u,v);return l?l.version:null};C.exports=s},4763:(C,c,t)=>{const i=t(12274),s=t(45074),u=t(24997),v=t(66593),l=t(43141),h=t(47853),p=t(10199),d=t(39098),f=t(66329),g=t(55493),y=t(33531),b=t(29296),E=t(84606),S=t(90105),w=t(5433),x=t(25896),P=t(93389),R=t(7988),T=t(88559),A=t(39071),I=t(43949),N=t(19797),K=t(79309),_=t(69177),W=t(91411),j=t(31433),re=t(80966),X=t(77252),Z=t(10715),J=t(94126),q=t(23254),L=t(35192),$=t(41886),k=t(67583),F=t(99301),V=t(17826),pe=t(87611),ce=t(33469),G=t(96793),te=t(51814),ie=t(71306);C.exports={parse:l,valid:h,clean:p,inc:d,diff:f,major:g,minor:y,patch:b,prerelease:E,compare:S,rcompare:w,compareLoose:x,compareBuild:P,sort:R,rsort:T,gt:A,lt:I,eq:N,neq:K,gte:_,lte:W,cmp:j,coerce:re,Comparator:X,Range:Z,satisfies:J,toComparators:q,maxSatisfying:L,minSatisfying:$,minVersion:k,validRange:F,outside:V,gtr:pe,ltr:ce,intersects:G,simplifyRange:te,subset:ie,SemVer:u,re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:v.compareIdentifiers,rcompareIdentifiers:v.rcompareIdentifiers}},45074:C=>{const c="2.0.0",i=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,u=256-6,v=["major","premajor","minor","preminor","patch","prepatch","prerelease"];C.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:u,MAX_SAFE_INTEGER:i,RELEASE_TYPES:v,SEMVER_SPEC_VERSION:c,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},50225:C=>{const c=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};C.exports=c},66593:C=>{const c=/^[0-9]+$/,t=(s,u)=>{const v=c.test(s),l=c.test(u);return v&&l&&(s=+s,u=+u),s===u?0:v&&!l?-1:l&&!v?1:s<u?-1:1},i=(s,u)=>t(u,s);C.exports={compareIdentifiers:t,rcompareIdentifiers:i}},94579:C=>{const c=Object.freeze({loose:!0}),t=Object.freeze({}),i=s=>s?typeof s!="object"?c:s:t;C.exports=i},12274:(C,c,t)=>{const{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:u}=t(45074),v=t(50225);c=C.exports={};const l=c.re=[],h=c.safeRe=[],p=c.src=[],d=c.t={};let f=0;const g="[a-zA-Z0-9-]",y=[["\\s",1],["\\d",u],[g,s]],b=S=>{for(const[w,x]of y)S=S.split(`${w}*`).join(`${w}{0,${x}}`).split(`${w}+`).join(`${w}{1,${x}}`);return S},E=(S,w,x)=>{const P=b(w),R=f++;v(S,R,w),d[S]=R,p[R]=w,l[R]=new RegExp(w,x?"g":void 0),h[R]=new RegExp(P,x?"g":void 0)};E("NUMERICIDENTIFIER","0|[1-9]\\d*"),E("NUMERICIDENTIFIERLOOSE","\\d+"),E("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${g}*`),E("MAINVERSION",`(${p[d.NUMERICIDENTIFIER]})\\.(${p[d.NUMERICIDENTIFIER]})\\.(${p[d.NUMERICIDENTIFIER]})`),E("MAINVERSIONLOOSE",`(${p[d.NUMERICIDENTIFIERLOOSE]})\\.(${p[d.NUMERICIDENTIFIERLOOSE]})\\.(${p[d.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASEIDENTIFIER",`(?:${p[d.NUMERICIDENTIFIER]}|${p[d.NONNUMERICIDENTIFIER]})`),E("PRERELEASEIDENTIFIERLOOSE",`(?:${p[d.NUMERICIDENTIFIERLOOSE]}|${p[d.NONNUMERICIDENTIFIER]})`),E("PRERELEASE",`(?:-(${p[d.PRERELEASEIDENTIFIER]}(?:\\.${p[d.PRERELEASEIDENTIFIER]})*))`),E("PRERELEASELOOSE",`(?:-?(${p[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[d.PRERELEASEIDENTIFIERLOOSE]})*))`),E("BUILDIDENTIFIER",`${g}+`),E("BUILD",`(?:\\+(${p[d.BUILDIDENTIFIER]}(?:\\.${p[d.BUILDIDENTIFIER]})*))`),E("FULLPLAIN",`v?${p[d.MAINVERSION]}${p[d.PRERELEASE]}?${p[d.BUILD]}?`),E("FULL",`^${p[d.FULLPLAIN]}$`),E("LOOSEPLAIN",`[v=\\s]*${p[d.MAINVERSIONLOOSE]}${p[d.PRERELEASELOOSE]}?${p[d.BUILD]}?`),E("LOOSE",`^${p[d.LOOSEPLAIN]}$`),E("GTLT","((?:<|>)?=?)"),E("XRANGEIDENTIFIERLOOSE",`${p[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),E("XRANGEIDENTIFIER",`${p[d.NUMERICIDENTIFIER]}|x|X|\\*`),E("XRANGEPLAIN",`[v=\\s]*(${p[d.XRANGEIDENTIFIER]})(?:\\.(${p[d.XRANGEIDENTIFIER]})(?:\\.(${p[d.XRANGEIDENTIFIER]})(?:${p[d.PRERELEASE]})?${p[d.BUILD]}?)?)?`),E("XRANGEPLAINLOOSE",`[v=\\s]*(${p[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[d.XRANGEIDENTIFIERLOOSE]})(?:${p[d.PRERELEASELOOSE]})?${p[d.BUILD]}?)?)?`),E("XRANGE",`^${p[d.GTLT]}\\s*${p[d.XRANGEPLAIN]}$`),E("XRANGELOOSE",`^${p[d.GTLT]}\\s*${p[d.XRANGEPLAINLOOSE]}$`),E("COERCE",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?(?:$|[^\\d])`),E("COERCERTL",p[d.COERCE],!0),E("LONETILDE","(?:~>?)"),E("TILDETRIM",`(\\s*)${p[d.LONETILDE]}\\s+`,!0),c.tildeTrimReplace="$1~",E("TILDE",`^${p[d.LONETILDE]}${p[d.XRANGEPLAIN]}$`),E("TILDELOOSE",`^${p[d.LONETILDE]}${p[d.XRANGEPLAINLOOSE]}$`),E("LONECARET","(?:\\^)"),E("CARETTRIM",`(\\s*)${p[d.LONECARET]}\\s+`,!0),c.caretTrimReplace="$1^",E("CARET",`^${p[d.LONECARET]}${p[d.XRANGEPLAIN]}$`),E("CARETLOOSE",`^${p[d.LONECARET]}${p[d.XRANGEPLAINLOOSE]}$`),E("COMPARATORLOOSE",`^${p[d.GTLT]}\\s*(${p[d.LOOSEPLAIN]})$|^$`),E("COMPARATOR",`^${p[d.GTLT]}\\s*(${p[d.FULLPLAIN]})$|^$`),E("COMPARATORTRIM",`(\\s*)${p[d.GTLT]}\\s*(${p[d.LOOSEPLAIN]}|${p[d.XRANGEPLAIN]})`,!0),c.comparatorTrimReplace="$1$2$3",E("HYPHENRANGE",`^\\s*(${p[d.XRANGEPLAIN]})\\s+-\\s+(${p[d.XRANGEPLAIN]})\\s*$`),E("HYPHENRANGELOOSE",`^\\s*(${p[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[d.XRANGEPLAINLOOSE]})\\s*$`),E("STAR","(<|>)?=?\\s*\\*"),E("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),E("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},37865:(C,c,t)=>{C.exports=t(4763)},87611:(C,c,t)=>{const i=t(17826),s=(u,v,l)=>i(u,v,">",l);C.exports=s},96793:(C,c,t)=>{const i=t(10715),s=(u,v,l)=>(u=new i(u,l),v=new i(v,l),u.intersects(v,l));C.exports=s},33469:(C,c,t)=>{const i=t(17826),s=(u,v,l)=>i(u,v,"<",l);C.exports=s},35192:(C,c,t)=>{const i=t(24997),s=t(10715),u=(v,l,h)=>{let p=null,d=null,f=null;try{f=new s(l,h)}catch{return null}return v.forEach(g=>{f.test(g)&&(!p||d.compare(g)===-1)&&(p=g,d=new i(p,h))}),p};C.exports=u},41886:(C,c,t)=>{const i=t(24997),s=t(10715),u=(v,l,h)=>{let p=null,d=null,f=null;try{f=new s(l,h)}catch{return null}return v.forEach(g=>{f.test(g)&&(!p||d.compare(g)===1)&&(p=g,d=new i(p,h))}),p};C.exports=u},67583:(C,c,t)=>{const i=t(24997),s=t(10715),u=t(39071),v=(l,h)=>{l=new s(l,h);let p=new i("0.0.0");if(l.test(p)||(p=new i("0.0.0-0"),l.test(p)))return p;p=null;for(let d=0;d<l.set.length;++d){const f=l.set[d];let g=null;f.forEach(y=>{const b=new i(y.semver.version);switch(y.operator){case">":b.prerelease.length===0?b.patch++:b.prerelease.push(0),b.raw=b.format();case"":case">=":(!g||u(b,g))&&(g=b);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${y.operator}`)}}),g&&(!p||u(p,g))&&(p=g)}return p&&l.test(p)?p:null};C.exports=v},17826:(C,c,t)=>{const i=t(24997),s=t(77252),{ANY:u}=s,v=t(10715),l=t(94126),h=t(39071),p=t(43949),d=t(91411),f=t(69177),g=(y,b,E,S)=>{y=new i(y,S),b=new v(b,S);let w,x,P,R,T;switch(E){case">":w=h,x=d,P=p,R=">",T=">=";break;case"<":w=p,x=f,P=h,R="<",T="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l(y,b,S))return!1;for(let A=0;A<b.set.length;++A){const I=b.set[A];let N=null,K=null;if(I.forEach(_=>{_.semver===u&&(_=new s(">=0.0.0")),N=N||_,K=K||_,w(_.semver,N.semver,S)?N=_:P(_.semver,K.semver,S)&&(K=_)}),N.operator===R||N.operator===T||(!K.operator||K.operator===R)&&x(y,K.semver))return!1;if(K.operator===T&&P(y,K.semver))return!1}return!0};C.exports=g},51814:(C,c,t)=>{const i=t(94126),s=t(90105);C.exports=(u,v,l)=>{const h=[];let p=null,d=null;const f=u.sort((E,S)=>s(E,S,l));for(const E of f)i(E,v,l)?(d=E,p||(p=E)):(d&&h.push([p,d]),d=null,p=null);p&&h.push([p,null]);const g=[];for(const[E,S]of h)E===S?g.push(E):!S&&E===f[0]?g.push("*"):S?E===f[0]?g.push(`<=${S}`):g.push(`${E} - ${S}`):g.push(`>=${E}`);const y=g.join(" || "),b=typeof v.raw=="string"?v.raw:String(v);return y.length<b.length?y:v}},71306:(C,c,t)=>{const i=t(10715),s=t(77252),{ANY:u}=s,v=t(94126),l=t(90105),h=(b,E,S={})=>{if(b===E)return!0;b=new i(b,S),E=new i(E,S);let w=!1;e:for(const x of b.set){for(const P of E.set){const R=f(x,P,S);if(w=w||R!==null,R)continue e}if(w)return!1}return!0},p=[new s(">=0.0.0-0")],d=[new s(">=0.0.0")],f=(b,E,S)=>{if(b===E)return!0;if(b.length===1&&b[0].semver===u){if(E.length===1&&E[0].semver===u)return!0;S.includePrerelease?b=p:b=d}if(E.length===1&&E[0].semver===u){if(S.includePrerelease)return!0;E=d}const w=new Set;let x,P;for(const W of b)W.operator===">"||W.operator===">="?x=g(x,W,S):W.operator==="<"||W.operator==="<="?P=y(P,W,S):w.add(W.semver);if(w.size>1)return null;let R;if(x&&P){if(R=l(x.semver,P.semver,S),R>0)return null;if(R===0&&(x.operator!==">="||P.operator!=="<="))return null}for(const W of w){if(x&&!v(W,String(x),S)||P&&!v(W,String(P),S))return null;for(const j of E)if(!v(W,String(j),S))return!1;return!0}let T,A,I,N,K=P&&!S.includePrerelease&&P.semver.prerelease.length?P.semver:!1,_=x&&!S.includePrerelease&&x.semver.prerelease.length?x.semver:!1;K&&K.prerelease.length===1&&P.operator==="<"&&K.prerelease[0]===0&&(K=!1);for(const W of E){if(N=N||W.operator===">"||W.operator===">=",I=I||W.operator==="<"||W.operator==="<=",x){if(_&&W.semver.prerelease&&W.semver.prerelease.length&&W.semver.major===_.major&&W.semver.minor===_.minor&&W.semver.patch===_.patch&&(_=!1),W.operator===">"||W.operator===">="){if(T=g(x,W,S),T===W&&T!==x)return!1}else if(x.operator===">="&&!v(x.semver,String(W),S))return!1}if(P){if(K&&W.semver.prerelease&&W.semver.prerelease.length&&W.semver.major===K.major&&W.semver.minor===K.minor&&W.semver.patch===K.patch&&(K=!1),W.operator==="<"||W.operator==="<="){if(A=y(P,W,S),A===W&&A!==P)return!1}else if(P.operator==="<="&&!v(P.semver,String(W),S))return!1}if(!W.operator&&(P||x)&&R!==0)return!1}return!(x&&I&&!P&&R!==0||P&&N&&!x&&R!==0||_||K)},g=(b,E,S)=>{if(!b)return E;const w=l(b.semver,E.semver,S);return w>0?b:w<0||E.operator===">"&&b.operator===">="?E:b},y=(b,E,S)=>{if(!b)return E;const w=l(b.semver,E.semver,S);return w<0?b:w>0||E.operator==="<"&&b.operator==="<="?E:b};C.exports=h},23254:(C,c,t)=>{const i=t(10715),s=(u,v)=>new i(u,v).set.map(l=>l.map(h=>h.value).join(" ").trim().split(" "));C.exports=s},99301:(C,c,t)=>{const i=t(10715),s=(u,v)=>{try{return new i(u,v).range||"*"}catch{return null}};C.exports=s},42467:(C,c,t)=>{var i=t(54344),s=t(17563).StringDecoder;C.exports=u;function u(v,l){var h=new s,p="";typeof v=="function"&&(l=v,v=null),v||(v=/\r?\n/);function d(g,y){if(l){try{y=l(y)}catch(b){return g.emit("error",b)}typeof y<"u"&&g.queue(y)}else g.queue(y)}function f(g,y){var b=(p+y).split(v);p=b.pop();for(var E=0;E<b.length;E++){var S=b[E];d(g,S)}}return i(function(g){f(this,h.write(g))},function(){h.end&&f(this,h.end()),p!=null&&d(this,p),this.queue(null)})}},57097:C=>{"use strict";function c(t){for(var i=5381,s=t.length;s;)i=i*33^t.charCodeAt(--s);return i>>>0}C.exports=c},65599:(C,c,t)=>{"use strict";function i(l){var h,p=l.Symbol;if(typeof p=="function")if(p.observable)h=p.observable;else{typeof p.for=="function"?h=p.for("https://github.com/benlesh/symbol-observable"):h=p("https://github.com/benlesh/symbol-observable");try{p.observable=h}catch{}}else h="@@observable";return h}C=t.hmd(C);var s;typeof self<"u"?s=self:typeof window<"u"?s=window:typeof t.g<"u"?s=t.g:s=C;var u=i(s);const v=null},34105:(C,c,t)=>{var i="/index.js",s=t(16223).Buffer;(function(){"use strict";function u(Y){return Ci?Symbol():"@@"+Y}function v(Y,z){ni||(z=z.replace(si?/file:\/\/\//g:/file:\/\//g,""));var B,le=(Y.message||Y)+` `+z;B=ha&&Y.fileName?new Error(le,Y.fileName,Y.lineNumber):new Error(le);var Le=Y.originalErr?Y.originalErr.stack:Y.stack;return B.stack=yr?le+` `+Le:Le,B.originalErr=Y.originalErr||Y,B}function l(Y,z){throw new RangeError('Unable to resolve "'+Y+'" to '+z)}function h(Y,z){Y=Y.trim();var B=z&&z.substr(0,z.indexOf(":")+1),le=Y[0],Le=Y[1];if(le==="/"&&Le==="/")return B||l(Y,z),B+Y;if(le==="."&&(Le==="/"||Le==="."&&(Y[2]==="/"||Y.length===2&&(Y+="/"))||Y.length===1&&(Y+="/"))||le==="/"){var Je,Ct=!B||z[B.length]!=="/";if(Ct?(z===void 0&&l(Y,z),Je=z):Je=z[B.length+1]==="/"?B!=="file:"?(Je=z.substr(B.length+2)).substr(Je.indexOf("/")+1):z.substr(8):z.substr(B.length+1),le==="/"){if(!Ct)return z.substr(0,z.length-Je.length-1)+Y;l(Y,z)}for(var Vt=Je.substr(0,Je.lastIndexOf("/")+1)+Y,bn=[],Hn=-1,br=0;br<Vt.length;br++)if(Hn===-1)if(Vt[br]!==".")Hn=br;else{if(Vt[br+1]!=="."||Vt[br+2]!=="/"&&br+2!==Vt.length){if(Vt[br+1]!=="/"&&br+1!==Vt.length){Hn=br;continue}br+=1}else bn.pop(),br+=2;Ct&&bn.length===0&&l(Y,z)}else Vt[br]==="/"&&(bn.push(Vt.substring(Hn,br+1)),Hn=-1);return Hn!==-1&&bn.push(Vt.substr(Hn)),z.substr(0,z.length-Je.length)+bn.join("")}return Y.indexOf(":")!==-1?yr&&Y[1]===":"&&Y[2]==="\\"&&Y[0].match(/[a-z]/i)?"file:///"+Y.replace(/\\/g,"/"):Y:void 0}function p(Y){if(Y.values)return Y.values();if(typeof Symbol>"u"||!Symbol.iterator)throw new Error("Symbol.iterator not supported in this browser");var z={};return z[Symbol.iterator]=function(){var B=Object.keys(Y),le=0;return{next:function(){return le<B.length?{value:Y[B[le++]],done:!1}:{value:void 0,done:!0}}}},z}function d(){this.registry=new y}function f(Y){if(!(Y instanceof b))throw new TypeError("Module instantiation did not return a valid namespace object.");return Y}function g(Y){if(Y===void 0)throw new RangeError("No resolution found.");return Y}function y(){this[wa]={}}function b(Y){Object.defineProperty(this,vo,{value:Y}),Object.keys(Y).forEach(E,this)}function E(Y){Object.defineProperty(this,Y,{enumerable:!0,get:function(){return this[vo][Y]}})}function S(){d.call(this);var Y=this.registry.delete;this.registry.delete=function(B){var le=Y.call(this,B);return z.hasOwnProperty(B)&&!z[B].linkRecord&&(delete z[B],le=!0),le};var z={};this[Qn]={lastRegister:void 0,records:z},this.trace=!1}function w(Y,z,B){return Y.records[z]={key:z,registration:B,module:void 0,importerSetters:void 0,loadError:void 0,evalError:void 0,linkRecord:{instantiatePromise:void 0,dependencies:void 0,execute:void 0,executingRequire:!1,moduleObj:void 0,setters:void 0,depsInstantiatePromise:void 0,dependencyInstantiations:void 0}}}function x(Y,z,B,le,Le){var Je=le[z];if(Je)return Promise.resolve(Je);var Ct=Le.records[z];return Ct&&!Ct.module?Ct.loadError?Promise.reject(Ct.loadError):R(Y,Ct,Ct.linkRecord,le,Le):Y.resolve(z,B).then(function(Vt){if(Je=le[Vt])return Je;if((Ct=Le.records[Vt])&&!Ct.module||(Ct=w(Le,Vt,Ct&&Ct.registration)),Ct.loadError)return Promise.reject(Ct.loadError);var bn=Ct.linkRecord;return bn?R(Y,Ct,bn,le,Le):Ct})}function P(Y,z,B){return function(){var le=B.lastRegister;return le?(B.lastRegister=void 0,z.registration=le,!0):!!z.registration}}function R(Y,z,B,le,Le){return B.instantiatePromise||(B.instantiatePromise=(z.registration?Promise.resolve():Promise.resolve().then(function(){return Le.lastRegister=void 0,Y[_r](z.key,Y[_r].length>1&&P(Y,z,Le))})).then(function(Je){if(Je!==void 0){if(!(Je instanceof b))throw new TypeError("Instantiate did not return a valid Module object.");return delete Le.records[z.key],Y.trace&&A(Y,z,B),le[z.key]=Je}var Ct=z.registration;if(z.registration=void 0,!Ct)throw new TypeError("Module instantiation did not call an anonymous or correctly named System.register.");return B.dependencies=Ct[0],z.importerSetters=[],B.moduleObj={},Ct[2]?(B.moduleObj.default=B.moduleObj.__useDefault={},B.executingRequire=Ct[1],B.execute=Ct[2]):I(Y,z,B,Ct[1]),z}).catch(function(Je){throw z.linkRecord=void 0,z.loadError=z.loadError||v(Je,"Instantiating "+z.key)}))}function T(Y,z,B,le,Le,Je){return Y.resolve(z,B).then(function(Ct){Je&&(Je[z]=Ct);var Vt=Le.records[Ct],bn=le[Ct];if(bn&&(!Vt||Vt.module&&bn!==Vt.module))return bn;if(Vt&&Vt.loadError)throw Vt.loadError;(!Vt||!bn&&Vt.module)&&(Vt=w(Le,Ct,Vt&&Vt.registration));var Hn=Vt.linkRecord;return Hn?R(Y,Vt,Hn,le,Le):Vt})}function A(Y,z,B){Y.loads=Y.loads||{},Y.loads[z.key]={key:z.key,deps:B.dependencies,dynamicDeps:[],depMap:B.depMap||{}}}function I(Y,z,B,le){var Le=B.moduleObj,Je=z.importerSetters,Ct=!1,Vt=le.call(Yr,function(bn,Hn){if(typeof bn=="object"){var br=!1;for(var ei in bn)Hn=bn[ei],ei==="__useDefault"||ei in Le&&Le[ei]===Hn||(br=!0,Le[ei]=Hn);if(br===!1)return Hn}else{if((Ct||bn in Le)&&Le[bn]===Hn)return Hn;Le[bn]=Hn}for(var mi=0;mi<Je.length;mi++)Je[mi](Le);return Hn},new _(Y,z.key));B.setters=Vt.setters,B.execute=Vt.execute,Vt.exports&&(B.moduleObj=Le=Vt.exports,Ct=!0)}function N(Y,z,B,le,Le){if(B.depsInstantiatePromise)return B.depsInstantiatePromise;for(var Je=Array(B.dependencies.length),Ct=0;Ct<B.dependencies.length;Ct++)Je[Ct]=T(Y,B.dependencies[Ct],z.key,le,Le,Y.trace&&B.depMap||(B.depMap={}));var Vt=Promise.all(Je).then(function(bn){if(B.dependencyInstantiations=bn,B.setters)for(var Hn=0;Hn<bn.length;Hn++){var br=B.setters[Hn];if(br){var ei=bn[Hn];if(ei instanceof b)br(ei);else{if(ei.loadError)throw ei.loadError;br(ei.module||ei.linkRecord.moduleObj),ei.importerSetters&&ei.importerSetters.push(br)}}}return z});return Y.trace&&(Vt=Vt.then(function(){return A(Y,z,B),z})),(Vt=Vt.catch(function(bn){throw B.depsInstantiatePromise=void 0,v(bn,"Loading "+z.key)})).catch(function(){}),B.depsInstantiatePromise=Vt}function K(Y,z,B,le,Le){return new Promise(function(Je,Ct){function Vt(ei){var mi=ei.linkRecord;mi&&Hn.indexOf(ei)===-1&&(Hn.push(ei),br++,N(Y,ei,mi,le,Le).then(bn,Ct))}function bn(ei){br--;var mi=ei.linkRecord;if(mi)for(var Li=0;Li<mi.dependencies.length;Li++){var na=mi.dependencyInstantiations[Li];na instanceof b||Vt(na)}br===0&&Je()}var Hn=[],br=0;Vt(z)})}function _(Y,z){this.loader=Y,this.key=this.id=z,this.meta={url:z}}function W(Y,z,B,le,Le,Je){if(z.module)return z.module;if(z.evalError)throw z.evalError;if(Je&&Je.indexOf(z)!==-1)return z.linkRecord.moduleObj;var Ct=re(Y,z,B,le,Le,B.setters?[]:Je||[]);if(Ct)throw Ct;return z.module}function j(Y,z,B,le,Le,Je,Ct){return function(Vt){for(var bn=0;bn<B.length;bn++)if(B[bn]===Vt){var Hn,br=le[bn];return Hn=br instanceof b?br:W(Y,br,br.linkRecord,Le,Je,Ct),"__useDefault"in Hn?Hn.__useDefault:Hn}throw new Error("Module "+Vt+" not declared as a System.registerDynamic dependency of "+z)}}function re(Y,z,B,le,Le,Je){Je.push(z);var Ct;if(B.setters){for(var Vt,bn,Hn=0;Hn<B.dependencies.length;Hn++)if(!((Vt=B.dependencyInstantiations[Hn])instanceof b)&&((bn=Vt.linkRecord)&&Je.indexOf(Vt)===-1&&(Ct=Vt.evalError?Vt.evalError:re(Y,Vt,bn,le,Le,bn.setters?Je:[])),Ct))return z.linkRecord=void 0,z.evalError=v(Ct,"Evaluating "+z.key),z.evalError}if(B.execute)if(B.setters)Ct=X(B.execute);else{var br={id:z.key},ei=B.moduleObj;Object.defineProperty(br,"exports",{configurable:!0,set:function(ji){ei.default=ei.__useDefault=ji},get:function(){return ei.__useDefault}});var mi=j(Y,z.key,B.dependencies,B.dependencyInstantiations,le,Le,Je);if(!B.executingRequire)for(Hn=0;Hn<B.dependencies.length;Hn++)mi(B.dependencies[Hn]);Ct=Z(B.execute,mi,ei.default,br),br.exports!==ei.__useDefault&&(ei.default=ei.__useDefault=br.exports);var Li=ei.default;if(Li&&Li.__esModule)for(var na in Li)Object.hasOwnProperty.call(Li,na)&&(ei[na]=Li[na])}if(z.linkRecord=void 0,Ct)return z.evalError=v(Ct,"Evaluating "+z.key);if(le[z.key]=z.module=new b(B.moduleObj),!B.setters){if(z.importerSetters)for(Hn=0;Hn<z.importerSetters.length;Hn++)z.importerSetters[Hn](z.module);z.importerSetters=void 0}}function X(Y){try{Y.call($r)}catch(z){return z}}function Z(Y,z,B,le){try{var Le=Y.call(Yr,z,B,le);Le!==void 0&&(le.exports=Le)}catch(Je){return Je}}function J(){}function q(Y){return Y instanceof b?Y:new b(Y&&Y.__esModule?Y:{default:Y,__useDefault:Y})}function L(Y){return Ti===void 0&&(Ti=typeof Symbol<"u"&&!!Symbol.toStringTag),Y instanceof b||Ti&&Object.prototype.toString.call(Y)=="[object Module]"}function $(Y,z){(z||this.warnings&&typeof console<"u"&&console.warn)&&console.warn(Y)}function k(Y,z,B){var le=new Uint8Array(z);return le[0]===0&&le[1]===97&&le[2]===115?WebAssembly.compile(z).then(function(Le){var Je=[],Ct=[],Vt={};return WebAssembly.Module.imports&&WebAssembly.Module.imports(Le).forEach(function(bn){var Hn=bn.module;Ct.push(function(br){Vt[Hn]=br}),Je.indexOf(Hn)===-1&&Je.push(Hn)}),Y.register(Je,function(bn){return{setters:Ct,execute:function(){bn(new WebAssembly.Instance(Le,Vt).exports)}}}),B(),!0}):Promise.resolve(!1)}function F(Y,z){if(Y[0]===".")throw new Error("Node module "+Y+" can't be loaded as it is not a package require.");if(!xt){var B=this._nodeRequire("module"),le=decodeURI(z.substr(si?8:7));(xt=new B(le)).paths=B._nodeModulePaths(le)}return xt.require(Y)}function V(Y,z){for(var B in z)Object.hasOwnProperty.call(z,B)&&(Y[B]=z[B]);return Y}function pe(Y,z){for(var B in z)Object.hasOwnProperty.call(z,B)&&Y[B]===void 0&&(Y[B]=z[B]);return Y}function ce(Y,z,B){for(var le in z)if(Object.hasOwnProperty.call(z,le)){var Le=z[le];Y[le]===void 0?Y[le]=Le:Le instanceof Array&&Y[le]instanceof Array?Y[le]=[].concat(B?Le:Y[le]).concat(B?Y[le]:Le):typeof Le=="object"&&Le!==null&&typeof Y[le]=="object"?Y[le]=(B?pe:V)(V({},Y[le]),Le):B||(Y[le]=Le)}}function G(Y){if(jn||rr){var z=document.createElement("link");jn?(z.rel="preload",z.as="script"):z.rel="prefetch",z.href=Y,document.head.appendChild(z)}else new Image().src=Y}function te(Y,z,B){try{importScripts(Y)}catch(le){B(le)}z()}function ie(Y,z,B,le,Le){function Je(){le(),Vt()}function Ct(Hn){Vt(),Le(new Error("Fetching "+Y))}function Vt(){for(var Hn=0;Hn<Mr.length;Hn++)if(Mr[Hn].err===Ct){Mr.splice(Hn,1);break}bn.removeEventListener("load",Je,!1),bn.removeEventListener("error",Ct,!1),document.head.removeChild(bn)}if(Y=Y.replace(/#/g,"%23"),ln)return te(Y,le,Le);var bn=document.createElement("script");bn.type="text/javascript",bn.charset="utf-8",bn.async=!0,z&&(bn.crossOrigin=z),B&&(bn.integrity=B),bn.addEventListener("load",Je,!1),bn.addEventListener("error",Ct,!1),bn.src=Y,document.head.appendChild(bn)}function fe(Y,z){for(var B=Y.split(".");B.length;)z=z[B.shift()];return z}function Se(Y,z,B){var le=me(z,B);if(le){var Le=z[le]+B.substr(le.length),Je=h(Le,Qr);return Je!==void 0?Je:Y+Le}return B.indexOf(":")!==-1?B:Y+B}function he(Y){var z=this.name;if(z.substr(0,Y.length)===Y&&(z.length===Y.length||z[Y.length]==="/"||Y[Y.length-1]==="/"||Y[Y.length-1]===":")){var B=Y.split("/").length;B>this.len&&(this.match=Y,this.len=B)}}function me(Y,z){if(Object.hasOwnProperty.call(Y,z))return z;var B={name:z,match:void 0,len:0};return Object.keys(Y).forEach(he,B),B.match}function _e(Y,z,B,le){if(Y.substr(0,8)==="file:///"){if(pi)return we(Y,z,B,le);throw new Error("Unable to fetch file URLs in this environment.")}Y=Y.replace(/#/g,"%23");var Le={headers:{Accept:"application/x-es-module, */*"}};return B&&(Le.integrity=B),z&&(typeof z=="string"&&(Le.headers.Authorization=z),Le.credentials="include"),fetch(Y,Le).then(function(Je){if(Je.ok)return le?Je.arrayBuffer():Je.text();throw new Error("Fetch error: "+Je.status+" "+Je.statusText)})}function we(Y,z,B,le){return new Promise(function(Le,Je){function Ct(){Le(le?bn.response:bn.responseText)}function Vt(){Je(new Error("XHR error: "+(bn.status?" ("+bn.status+(bn.statusText?" "+bn.statusText:"")+")":"")+" loading "+Y))}Y=Y.replace(/#/g,"%23");var bn=new XMLHttpRequest;le&&(bn.responseType="arraybuffer"),bn.onreadystatechange=function(){bn.readyState===4&&(bn.status==0?bn.response?Ct():(bn.addEventListener("error",Vt),bn.addEventListener("load",Ct)):bn.status===200?Ct():Vt())},bn.open("GET",Y,!0),bn.setRequestHeader&&(bn.setRequestHeader("Accept","application/x-es-module, */*"),z&&(typeof z=="string"&&bn.setRequestHeader("Authorization",z),bn.withCredentials=!0)),bn.send(null)})}function Ge(Y,z,B,le){return Y.substr(0,8)!="file:///"?Promise.reject(new Error('Unable to fetch "'+Y+'". Only file URLs of the form file:/// supported running in Node.')):(Zr=Zr||t(88998),Y=si?Y.replace(/\//g,"\\").substr(8):Y.substr(7),new Promise(function(Le,Je){Zr.readFile(Y,function(Ct,Vt){if(Ct)return Je(Ct);if(le)Le(Vt);else{var bn=Vt+"";bn[0]==="\uFEFF"&&(bn=bn.substr(1)),Le(bn)}})}))}function ht(){throw new Error("No fetch method is defined for this environment.")}function nt(){return{pluginKey:void 0,pluginArgument:void 0,pluginModule:void 0,packageKey:void 0,packageConfig:void 0,load:void 0}}function Re(Y,z,B){var le=nt();if(B){var Le;z.pluginFirst?(Le=B.lastIndexOf("!"))!==-1&&(le.pluginArgument=le.pluginKey=B.substr(0,Le)):(Le=B.indexOf("!"))!==-1&&(le.pluginArgument=le.pluginKey=B.substr(Le+1)),le.packageKey=me(z.packages,B),le.packageKey&&(le.packageConfig=z.packages[le.packageKey])}return le}function ue(Y,z){var B=this[Ur],le=nt(),Le=Re(this,B,z),Je=this;return Promise.resolve().then(function(){var Ct=Y.lastIndexOf("#?");if(Ct===-1)return Promise.resolve(Y);var Vt=bt.call(Je,Y.substr(Ct+2));return Gt.call(Je,Vt,z,!0).then(function(bn){return bn?Y.substr(0,Ct):"@empty"})}).then(function(Ct){var Vt=Ce(B.pluginFirst,Ct);return Vt?(le.pluginKey=Vt.plugin,Promise.all([qe.call(Je,B,Vt.argument,Le&&Le.pluginArgument||z,le,Le,!0),Je.resolve(Vt.plugin,z)]).then(function(bn){if(le.pluginArgument=bn[0],le.pluginKey=bn[1],le.pluginArgument===le.pluginKey)throw new Error("Plugin "+le.pluginArgument+" cannot load itself, make sure it is excluded from any wildcard meta configuration via a custom loader: false rule.");return Ae(B.pluginFirst,bn[0],bn[1])})):qe.call(Je,B,Ct,Le&&Le.pluginArgument||z,le,Le,!1)}).then(function(Ct){return hn.call(Je,Ct,z,Le)}).then(function(Ct){return It.call(Je,B,Ct,le),le.pluginKey||!le.load.loader?Ct:Je.resolve(le.load.loader,Ct).then(function(Vt){return le.pluginKey=Vt,le.pluginArgument=Ct,Ct})}).then(function(Ct){return Je[En][Ct]=le,Ct})}function ae(Y,z){var B=Ce(Y.pluginFirst,z);if(B){var le=ae.call(this,Y,B.plugin);return Ae(Y.pluginFirst,Me.call(this,Y,B.argument,void 0,!1,!1),le)}return Me.call(this,Y,z,void 0,!1,!1)}function ve(Y,z){var B=this[Ur],le=nt(),Le=Le||Re(this,B,z),Je=Ce(B.pluginFirst,Y);return Je?(le.pluginKey=ve.call(this,Je.plugin,z),Ae(B.pluginFirst,Ye.call(this,B,Je.argument,Le.pluginArgument||z,le,Le,!!le.pluginKey),le.pluginKey)):Ye.call(this,B,Y,Le.pluginArgument||z,le,Le,!!le.pluginKey)}function Me(Y,z,B,le,Le){var Je=h(z,B||Qr);if(Je)return Se(Y.baseURL,Y.paths,Je);if(le){var Ct=me(Y.map,z);if(Ct&&(z=Y.map[Ct]+z.substr(Ct.length),Je=h(z,Qr)))return Se(Y.baseURL,Y.paths,Je)}if(this.registry.has(z)||z.substr(0,6)==="@node/")return z;var Vt=Le&&z[z.length-1]!=="/",bn=Se(Y.baseURL,Y.paths,Vt?z+"/":z);return Vt?bn.substr(0,bn.length-1):bn}function Ye(Y,z,B,le,Le,Je){if(Le&&Le.packageConfig&&z[0]!=="."){var Ct=Le.packageConfig.map,Vt=Ct&&me(Ct,z);if(Vt&&typeof Ct[Vt]=="string"){var bn=Oe(this,Y,Le.packageConfig,Le.packageKey,Vt,z,le,Je);if(bn)return bn}}var Hn=Me.call(this,Y,z,B,!0,!0),br=ut(Y,Hn);if(le.packageKey=br&&br.packageKey||me(Y.packages,Hn),!le.packageKey)return Hn;if(Y.packageConfigKeys.indexOf(Hn)!==-1)return le.packageKey=void 0,Hn;le.packageConfig=Y.packages[le.packageKey]||(Y.packages[le.packageKey]=vt());var ei=Hn.substr(le.packageKey.length+1);return tt(this,Y,le.packageConfig,le.packageKey,ei,le,Je)}function qe(Y,z,B,le,Le,Je){var Ct=this;return On.then(function(){if(Le&&Le.packageConfig&&z.substr(0,2)!=="./"){var Vt=Le.packageConfig.map,bn=Vt&&me(Vt,z);if(bn)return Et(Ct,Y,Le.packageConfig,Le.packageKey,bn,z,le,Je)}return On}).then(function(Vt){if(Vt)return Vt;var bn=Me.call(Ct,Y,z,B,!0,!0),Hn=ut(Y,bn);return le.packageKey=Hn&&Hn.packageKey||me(Y.packages,bn),le.packageKey?Y.packageConfigKeys.indexOf(bn)!==-1?(le.packageKey=void 0,le.load=At(),le.load.format="json",le.load.loader="",Promise.resolve(bn)):(le.packageConfig=Y.packages[le.packageKey]||(Y.packages[le.packageKey]=vt()),(Hn&&!le.packageConfig.configured?Ne(Ct,Y,Hn.configPath,le):On).then(function(){var br=bn.substr(le.packageKey.length+1);return je(Ct,Y,le.packageConfig,le.packageKey,br,le,Je)})):Promise.resolve(bn)})}function At(){return{extension:"",deps:void 0,format:void 0,loader:void 0,scriptLoad:void 0,globals:void 0,nonce:void 0,integrity:void 0,sourceMap:void 0,exports:void 0,encapsulateGlobal:!1,crossOrigin:void 0,cjsRequireDetection:!0,cjsDeferDepsExecute:!1,esModule:!1}}function It(Y,z,B){B.load=B.load||At();var le,Le=0;for(var Je in Y.meta)if((le=Je.indexOf("*"))!==-1&&Je.substr(0,le)===z.substr(0,le)&&Je.substr(le+1)===z.substr(z.length-Je.length+le+1)){var Ct=Je.split("/").length;Ct>Le&&(Le=Ct),ce(B.load,Y.meta[Je],Le!==Ct)}if(Y.meta[z]&&ce(B.load,Y.meta[z],!1),B.packageKey){var Vt=z.substr(B.packageKey.length+1),bn={};B.packageConfig.meta&&(Le=0,mt(B.packageConfig.meta,Vt,function(Hn,br,ei){ei>Le&&(Le=ei),ce(bn,br,ei&&Le>ei)}),ce(B.load,bn,!1)),!B.packageConfig.format||B.pluginKey||B.load.loader||(B.load.format=B.load.format||B.packageConfig.format)}}function Ce(Y,z){var B,le,Le=Y?z.indexOf("!"):z.lastIndexOf("!");if(Le!==-1)return Y?(B=z.substr(Le+1),le=z.substr(0,Le)):(B=z.substr(0,Le),le=z.substr(Le+1)||B.substr(B.lastIndexOf(".")+1)),{argument:B,plugin:le}}function Ae(Y,z,B){return Y?B+"!"+z:z+"!"+B}function $e(Y,z,B,le,Le){if(!le||!z.defaultExtension||le[le.length-1]==="/"||Le)return le;var Je=!1;if(z.meta&&mt(z.meta,le,function(Vt,bn,Hn){if(Hn===0||Vt.lastIndexOf("*")!==Vt.length-1)return Je=!0}),!Je&&Y.meta&&mt(Y.meta,B+"/"+le,function(Vt,bn,Hn){if(Hn===0||Vt.lastIndexOf("*")!==Vt.length-1)return Je=!0}),Je)return le;var Ct="."+z.defaultExtension;return le.substr(le.length-Ct.length)!==Ct?le+Ct:le}function tt(Y,z,B,le,Le,Je,Ct){if(!Le){if(!B.main)return le;Le=B.main.substr(0,2)==="./"?B.main.substr(2):B.main}if(B.map){var Vt="./"+Le,bn=me(B.map,Vt);if(bn||(Vt="./"+$e(z,B,le,Le,Ct))!="./"+Le&&(bn=me(B.map,Vt)),bn){var Hn=Oe(Y,z,B,le,bn,Vt,Je,Ct);if(Hn)return Hn}}return le+"/"+$e(z,B,le,Le,Ct)}function ke(Y,z,B){return!(z.substr(0,Y.length)===Y&&B.length>Y.length)}function Oe(Y,z,B,le,Le,Je,Ct,Vt){Je[Je.length-1]==="/"&&(Je=Je.substr(0,Je.length-1));var bn=B.map[Le];if(typeof bn=="object")throw new Error("Synchronous conditional normalization not supported sync normalizing "+Le+" in "+le);if(ke(Le,bn,Je)&&typeof bn=="string")return Ye.call(Y,z,bn+Je.substr(Le.length),le+"/",Ct,Ct,Vt)}function je(Y,z,B,le,Le,Je,Ct){if(!Le){if(!B.main)return Promise.resolve(le);Le=B.main.substr(0,2)==="./"?B.main.substr(2):B.main}var Vt,bn;return B.map&&(Vt="./"+Le,(bn=me(B.map,Vt))||(Vt="./"+$e(z,B,le,Le,Ct))!="./"+Le&&(bn=me(B.map,Vt))),(bn?Et(Y,z,B,le,bn,Vt,Je,Ct):On).then(function(Hn){return Hn?Promise.resolve(Hn):Promise.resolve(le+"/"+$e(z,B,le,Le,Ct))})}function Et(Y,z,B,le,Le,Je,Ct,Vt){Je[Je.length-1]==="/"&&(Je=Je.substr(0,Je.length-1));var bn=B.map[Le];if(typeof bn=="string")return ke(Le,bn,Je)?qe.call(Y,z,bn+Je.substr(Le.length),le+"/",Ct,Ct,Vt).then(function(Li){return hn.call(Y,Li,le+"/",Ct)}):On;var Hn=[],br=[];for(var ei in bn){var mi=bt(ei);br.push({condition:mi,map:bn[ei]}),Hn.push(S.prototype.import.call(Y,mi.module,le))}return Promise.all(Hn).then(function(Li){for(var na=0;na<br.length;na++){var ji=br[na].condition,$a=fe(ji.prop,"__useDefault"in Li[na]?Li[na].__useDefault:Li[na]);if(!ji.negate&&$a||ji.negate&&!$a)return br[na].map}}).then(function(Li){if(Li)return ke(Le,Li,Je)?qe.call(Y,z,Li+Je.substr(Le.length),le+"/",Ct,Ct,Vt).then(function(na){return hn.call(Y,na,le+"/",Ct)}):On})}function ct(Y){var z=Y.lastIndexOf("*"),B=Math.max(z+1,Y.lastIndexOf("/"));return{length:B,regEx:new RegExp("^("+Y.substr(0,B).replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,"[^\\/]+")+")(\\/|$)"),wildcard:z!==-1}}function ut(Y,z){for(var B,le,Le=!1,Je=0;Je<Y.packageConfigPaths.length;Je++){var Ct=Y.packageConfigPaths[Je],Vt=Ki[Ct]||(Ki[Ct]=ct(Ct));if(!(z.length<Vt.length)){var bn=z.match(Vt.regEx);!bn||B&&(Le&&Vt.wildcard||!(B.length<bn[1].length))||(B=bn[1],Le=!Vt.wildcard,le=B+Ct.substr(Vt.length))}}if(B)return{packageKey:B,configPath:le}}function Ne(Y,z,B,le,Le){var Je=Y.pluginLoader||Y;return z.packageConfigKeys.indexOf(B)===-1&&z.packageConfigKeys.push(B),Je.import(B).then(function(Ct){Ve(le.packageConfig,Ct,le.packageKey,!0,z),le.packageConfig.configured=!0}).catch(function(Ct){throw v(Ct,"Unable to fetch package configuration file "+B)})}function mt(Y,z,B){var le;for(var Le in Y){var Je=Le.substr(0,2)==="./"?"./":"";if(Je&&(Le=Le.substr(2)),(le=Le.indexOf("*"))!==-1&&Le.substr(0,le)===z.substr(0,le)&&Le.substr(le+1)===z.substr(z.length-Le.length+le+1)&&B(Le,Y[Je+Le],Le.split("/").length))return}var Ct=Y[z]&&Object.hasOwnProperty.call(Y,z)?Y[z]:Y["./"+z];Ct&&B(Ct,Ct,0)}function bt(Y){var z,B,le,Le=Y.lastIndexOf("|");return Le!==-1?(z=Y.substr(Le+1),B=Y.substr(0,Le),z[0]==="~"&&(le=!0,z=z.substr(1))):(le=Y[0]==="~",z="default",B=Y.substr(le),ia.indexOf(B)!==-1&&(z=B,B=null)),{module:B||"@system-env",prop:z,negate:le}}function Gt(Y,z,B){return S.prototype.import.call(this,Y.module,z).then(function(le){var Le=fe(Y.prop,le);if(B&&typeof Le!="boolean")throw new TypeError("Condition did not resolve to a boolean.");return Y.negate?!Le:Le})}function hn(Y,z,B){var le=Y.match(Da);if(!le)return Promise.resolve(Y);var Le=bt.call(this,le[0].substr(2,le[0].length-3));return Gt.call(this,Le,z,!1).then(function(Je){if(typeof Je!="string")throw new TypeError("The condition value for "+Y+" doesn't resolve to a string.");if(Je.indexOf("/")!==-1)throw new TypeError("Unabled to interpolate conditional "+Y+(z?" in "+z:"")+` The condition value `+Je+' cannot contain a "/" separator.');return Y.replace(Da,Je)})}function Yt(Y,z,B){for(var le=0;le<to.length;le++){var Le=to[le];z[Le]&&Ko[Le.substr(0,Le.length-6)]&&B(z[Le])}}function Bt(Y,z){var B={};for(var le in Y){var Le=Y[le];z>1?Le instanceof Array?B[le]=[].concat(Le):typeof Le=="object"?B[le]=Bt(Le,z-1):le!=="packageConfig"&&(B[le]=Le):B[le]=Le}return B}function Lt(Y,z){var B=Y[z];return B instanceof Array?Y[z].concat([]):typeof B=="object"?Bt(B,3):Y[z]}function zt(Y){if(Y){if(So.indexOf(Y)!==-1)return Lt(this[Ur],Y);throw new Error('"'+Y+'" is not a valid configuration name. Must be one of '+So.join(", ")+".")}for(var z={},B=0;B<So.length;B++){var le=So[B],Le=Lt(this[Ur],le);Le!==void 0&&(z[le]=Le)}return z}function Kt(Y,z){var B=this,le=this[Ur];if("warnings"in Y&&(le.warnings=Y.warnings),"wasm"in Y&&(le.wasm=typeof WebAssembly<"u"&&Y.wasm),("production"in Y||"build"in Y)&&Vn.call(B,!!Y.production,!!(Y.build||Ko&&Ko.build)),!z){var Le;Yt(B,Y,function(Eo){Le=Le||Eo.baseURL}),(Le=Le||Y.baseURL)&&(le.baseURL=h(Le,Qr)||h("./"+Le,Qr),le.baseURL[le.baseURL.length-1]!=="/"&&(le.baseURL+="/")),Y.paths&&V(le.paths,Y.paths),Yt(B,Y,function(Eo){Eo.paths&&V(le.paths,Eo.paths)});for(var Je in le.paths)le.paths[Je].indexOf("*")!==-1&&($.call(le,"Path config "+Je+" -> "+le.paths[Je]+" is no longer supported as wildcards are deprecated."),delete le.paths[Je])}if(Y.defaultJSExtensions&&$.call(le,`The defaultJSExtensions configuration option is deprecated. Use packages defaultExtension instead.`,!0),typeof Y.pluginFirst=="boolean"&&(le.pluginFirst=Y.pluginFirst),Y.map)for(var Je in Y.map){var Ct=Y.map[Je];if(typeof Ct=="string"){var Vt=Me.call(B,le,Ct,void 0,!1,!1);Vt[Vt.length-1]==="/"&&Je[Je.length-1]!==":"&&Je[Je.length-1]!=="/"&&(Vt=Vt.substr(0,Vt.length-1)),le.map[Je]=Vt}else{ji=(ji=Me.call(B,le,Je[Je.length-1]!=="/"?Je+"/":Je,void 0,!0,!0)).substr(0,ji.length-1);var bn=le.packages[ji];bn||((bn=le.packages[ji]=vt()).defaultExtension=""),Ve(bn,{map:Ct},ji,!1,le)}}if(Y.packageConfigPaths){for(var Hn=[],br=0;br<Y.packageConfigPaths.length;br++){var ei=Y.packageConfigPaths[br],mi=Math.max(ei.lastIndexOf("*")+1,ei.lastIndexOf("/")),Li=Me.call(B,le,ei.substr(0,mi),void 0,!1,!1);Hn[br]=Li+ei.substr(mi)}le.packageConfigPaths=Hn}if(Y.bundles)for(var Je in Y.bundles){for(var na=[],br=0;br<Y.bundles[Je].length;br++)na.push(B.normalizeSync(Y.bundles[Je][br]));le.bundles[Je]=na}if(Y.packages)for(var Je in Y.packages){if(Je.match(/^([^\/]+:)?\/\/$/))throw new TypeError('"'+Je+'" is not a valid package name.');var ji=Me.call(B,le,Je[Je.length-1]!=="/"?Je+"/":Je,void 0,!0,!0);ji=ji.substr(0,ji.length-1),Ve(le.packages[ji]=le.packages[ji]||vt(),Y.packages[Je],ji,!1,le)}if(Y.depCache)for(var Je in Y.depCache)le.depCache[B.normalizeSync(Je)]=[].concat(Y.depCache[Je]);if(Y.meta)for(var Je in Y.meta)if(Je[0]==="*")V(le.meta[Je]=le.meta[Je]||{},Y.meta[Je]);else{var $a=Me.call(B,le,Je,void 0,!0,!0);V(le.meta[$a]=le.meta[$a]||{},Y.meta[Je])}"transpiler"in Y&&(le.transpiler=Y.transpiler);for(var Ha in Y)So.indexOf(Ha)===-1&&to.indexOf(Ha)===-1&&(B[Ha]=Y[Ha]);Yt(B,Y,function(Eo){B.config(Eo,!0)})}function vt(){return{defaultExtension:void 0,main:void 0,format:void 0,meta:void 0,map:void 0,packageConfig:void 0,configured:!1}}function Ve(Y,z,B,le,Le){for(var Je in z)Je==="main"||Je==="format"||Je==="defaultExtension"||Je==="configured"?le&&Y[Je]!==void 0||(Y[Je]=z[Je]):Je==="map"?(le?pe:V)(Y.map=Y.map||{},z.map):Je==="meta"?(le?pe:V)(Y.meta=Y.meta||{},z.meta):Object.hasOwnProperty.call(z,Je)&&$.call(Le,'"'+Je+'" is not a valid package configuration option in package '+B);return Y.defaultExtension===void 0&&(Y.defaultExtension="js"),Y.main===void 0&&Y.map&&Y.map["."]?(Y.main=Y.map["."],delete Y.map["."]):typeof Y.main=="object"&&(Y.map=Y.map||{},Y.map["./@main"]=Y.main,Y.main.default=Y.main.default||"./",Y.main="@main"),Y}function lt(Y){return ao?wr+new s(Y).toString("base64"):typeof btoa<"u"?wr+btoa(unescape(encodeURIComponent(Y))):""}function at(Y,z,B,le){var Le=Y.lastIndexOf(` `);if(z){if(typeof z!="object")throw new TypeError("load.metadata.sourceMap must be set to an object.");z=JSON.stringify(z)}return(le?"(function(System, SystemJS) {":"")+Y+(le?` })(System, System);`:"")+(Y.substr(Le,15)!=` //# sourceURL=`?` //# sourceURL=`+B+(z?"!transpiled":""):"")+(z&<(z)||"")}function Xt(Y,z,B,le,Le){Bo||(Bo=document.head||document.body||document.documentElement);var Je=document.createElement("script");Je.text=at(z,B,le,!1);var Ct,Vt=window.onerror;if(window.onerror=function(bn){Ct=addToError(bn,"Evaluating "+le),Vt&&Vt.apply(this,arguments)},rt(Y),Le&&Je.setAttribute("nonce",Le),Bo.appendChild(Je),Bo.removeChild(Je),Rt(),window.onerror=Vt,Ct)return Ct}function rt(Y){qi++==0&&(Go=Yr.System),Yr.System=Yr.SystemJS=Y}function Rt(){--qi==0&&(Yr.System=Yr.SystemJS=Go)}function rn(Y,z,B,le,Le,Je,Ct){if(z){if(Je&&ja)return Xt(Y,z,B,le,Je);try{rt(Y),!jo&&Y._nodeRequire&&(jo=Y._nodeRequire("vm"),Jo=jo.runInThisContext("typeof System !== 'undefined' && System")===Y),Jo?jo.runInThisContext(at(z,B,le,!Ct),{filename:le+(B?"!transpiled":"")}):(0,eval)(at(z,B,le,!Ct)),Rt()}catch(Vt){return Rt(),Vt}}}function sn(Y){return Y.substr(0,8)==="file:///"?Y.substr(7+!!si):uo&&Y.substr(0,uo.length)===uo?Y.substr(uo.length):Y}function Jn(Y,z){return sn(this.normalizeSync(Y,z))}function ze(Y){var z,B=Y.lastIndexOf("!"),le=(z=B!==-1?Y.substr(0,B):Y).split("/");return le.pop(),le=le.join("/"),{filename:sn(z),dirname:sn(le)}}function st(Y){function z(Vt,bn){for(var Hn=0;Hn<Vt.length;Hn++)if(Vt[Hn][0]<bn.index&&Vt[Hn][1]>bn.index)return!0;return!1}Jr.lastIndex=qn.lastIndex=Fr.lastIndex=0;var B,le=[],Le=[],Je=[];if(Y.length/Y.split(` `).length<200){for(;B=Fr.exec(Y);)Le.push([B.index,B.index+B[0].length]);for(;B=qn.exec(Y);)z(Le,B)||Je.push([B.index+B[1].length,B.index+B[0].length-1])}for(;B=Jr.exec(Y);)if(!z(Le,B)&&!z(Je,B)){var Ct=B[1].substr(1,B[1].length-2);if(Ct.match(/"|'/))continue;le.push(Ct)}return le}function en(Y){if(Ei.indexOf(Y)===-1){try{var z=Yr[Y]}catch{Ei.push(Y)}this(Y,z)}}function wt(Y){if(typeof Y=="string")return fe(Y,Yr);if(!(Y instanceof Array))throw new Error("Global exports must be a string or array.");for(var z={},B=0;B<Y.length;B++)z[Y[B].split(".").pop()]=fe(Y[B],Yr);return z}function Ke(Y,z,B,le){var Le=Yr.define;Yr.define=void 0;var Je;if(B){Je={};for(var Ct in B)Je[Ct]=Yr[Ct],Yr[Ct]=B[Ct]}return z||(ai={},Object.keys(Yr).forEach(en,function(Vt,bn){ai[Vt]=bn})),function(){var Vt,bn=z?wt(z):{},Hn=!!z;if(z&&!le||Object.keys(Yr).forEach(en,function(ei,mi){ai[ei]!==mi&&mi!==void 0&&(le&&(Yr[ei]=void 0),z||(bn[ei]=mi,Vt!==void 0?Hn||Vt===mi||(Hn=!0):Vt=mi))}),bn=Hn?bn:Vt,Je)for(var br in Je)Yr[br]=Je[br];return Yr.define=Le,bn}}function Ut(Y,z){var B=((Y=Y.replace(qn,"")).match(Ya)[1].split(",")[z]||"require").replace(qa,""),le=se[B]||(se[B]=new RegExp(ii+B+Wi,"g"));le.lastIndex=0;for(var Le,Je=[];Le=le.exec(Y);)Je.push(Le[2]||Le[3]);return Je}function on(Y){return function(z,B,le){Y(z,B,le),typeof(B=le.exports)!="object"&&typeof B!="function"||"__esModule"in B||Object.defineProperty(le.exports,"__esModule",{value:!0})}}function Tn(Y,z){Mt=Y,Xe=z,za=void 0,ye=!1}function An(Y){za?Y.registerDynamic(Mt?za[0].concat(Mt):za[0],!1,Xe?on(za[1]):za[1]):ye&&Y.registerDynamic([],!1,J)}function Zt(Y,z){!Y.load.esModule||typeof z!="object"&&typeof z!="function"||"__esModule"in z||Object.defineProperty(z,"__esModule",{value:!0})}function ot(Y,z){var B=this,le=this[Ur];return(Ft(le,this,Y)||On).then(function(){if(!z()){var Le=B[En][Y];if(Y.substr(0,6)==="@node/"){if(!B._nodeRequire)throw new TypeError("Error loading "+Y+". Can only load node core modules in Node.");return B.registerDynamic([],!1,function(){return F.call(B,Y.substr(6),B.baseURL)}),void z()}return Le.load.scriptLoad?!Le.load.pluginKey&&yt||(Le.load.scriptLoad=!1,$.call(le,'scriptLoad not supported for "'+Y+'"')):Le.load.scriptLoad!==!1&&!Le.load.pluginKey&&yt&&(Le.load.deps||Le.load.globals||!(Le.load.format==="system"||Le.load.format==="register"||Le.load.format==="global"&&Le.load.exports)||(Le.load.scriptLoad=!0)),Le.load.scriptLoad?new Promise(function(Je,Ct){if(Le.load.format==="amd"&&Yr.define!==B.amdDefine)throw new Error("Loading AMD with scriptLoad requires setting the global `"+Qt+".define = SystemJS.amdDefine`");ie(Y,Le.load.crossOrigin,Le.load.integrity,function(){if(!z()){Le.load.format="global";var Vt=Le.load.exports&&wt(Le.load.exports);B.registerDynamic([],!1,function(){return Zt(Le,Vt),Vt}),z()}Je()},Ct)}):We(B,Y,Le).then(function(){return it(B,Y,Le,z,le.wasm)})}}).then(function(Le){return delete B[En][Y],Le})}function We(Y,z,B){return B.pluginKey?Y.import(B.pluginKey).then(function(le){B.pluginModule=le,B.pluginLoad={name:z,address:B.pluginArgument,source:void 0,metadata:B.load},B.load.deps=B.load.deps||[]}):On}function Ft(Y,z,B){var le=Y.depCache[B];if(le)for(Ct=0;Ct<le.length;Ct++)z.normalize(le[Ct],B).then(G);else{var Le=!1;for(var Je in Y.bundles){for(var Ct=0;Ct<Y.bundles[Je].length;Ct++){var Vt=Y.bundles[Je][Ct];if(Vt===B){Le=!0;break}if(Vt.indexOf("*")!==-1){var bn=Vt.split("*");if(bn.length!==2){Y.bundles[Je].splice(Ct--,1);continue}if(B.substr(0,bn[0].length)===bn[0]&&B.substr(B.length-bn[1].length,bn[1].length)===bn[1]){Le=!0;break}}}if(Le)return z.import(Je)}}}function it(Y,z,B,le,Le){return B.load.exports&&!B.load.format&&(B.load.format="global"),On.then(function(){if(B.pluginModule&&B.pluginModule.locate)return Promise.resolve(B.pluginModule.locate.call(Y,B.pluginLoad)).then(function(Je){Je&&(B.pluginLoad.address=Je)})}).then(function(){return B.pluginModule?(Le=!1,B.pluginModule.fetch?B.pluginModule.fetch.call(Y,B.pluginLoad,function(Je){return Ri(Je.address,B.load.authorization,B.load.integrity,!1)}):Ri(B.pluginLoad.address,B.load.authorization,B.load.integrity,!1)):Ri(z,B.load.authorization,B.load.integrity,Le)}).then(function(Je){return Le&&typeof Je!="string"?k(Y,Je,le).then(function(Ct){if(!Ct){var Vt=ni?new TextDecoder("utf-8").decode(new Uint8Array(Je)):Je.toString();return qt(Y,z,Vt,B,le)}}):qt(Y,z,Je,B,le)})}function qt(Y,z,B,le,Le){return Promise.resolve(B).then(function(Je){return le.load.format==="detect"&&(le.load.format=void 0),Kn(Je,le),le.pluginModule?(le.pluginLoad.source=Je,le.pluginModule.translate?Promise.resolve(le.pluginModule.translate.call(Y,le.pluginLoad,le.traceOpts)).then(function(Ct){if(le.load.sourceMap){if(typeof le.load.sourceMap!="object")throw new Error("metadata.load.sourceMap must be set to an object.");Tt(le.pluginLoad.address,le.load.sourceMap)}return typeof Ct=="string"?Ct:le.pluginLoad.source}):Je):Je}).then(function(Je){return le.load.format||Je.substring(0,8)!=='"bundle"'?le.load.format==="register"||!le.load.format&&vn(Je)?(le.load.format="register",Je):le.load.format==="esm"||!le.load.format&&Je.match(wn)?(le.load.format="esm",dn(Y,Je,z,le,Le)):Je:(le.load.format="system",Je)}).then(function(Je){if(typeof Je!="string"||!le.pluginModule||!le.pluginModule.instantiate)return Je;var Ct=!1;return le.pluginLoad.source=Je,Promise.resolve(le.pluginModule.instantiate.call(Y,le.pluginLoad,function(Vt){if(Je=Vt.source,le.load=Vt.metadata,Ct)throw new Error("Instantiate must only be called once.");Ct=!0})).then(function(Vt){return Ct?Je:q(Vt)})}).then(function(Je){if(typeof Je!="string")return Je;le.load.format||(le.load.format=fn(Je));var Ct=!1;switch(le.load.format){case"esm":case"register":case"system":if(Hn=rn(Y,Je,le.load.sourceMap,z,le.load.integrity,le.load.nonce,!1))throw Hn;return Le()?void 0:Zn;case"json":var Vt=JSON.parse(Je);return Y.newModule({default:Vt,__useDefault:Vt});case"amd":var bn=Yr.define;Yr.define=Y.amdDefine,Tn(le.load.deps,le.load.esModule);var Hn=rn(Y,Je,le.load.sourceMap,z,le.load.integrity,le.load.nonce,!1);if((Ct=Le())||(An(Y),Ct=Le()),Yr.define=bn,Hn)throw Hn;break;case"cjs":var br=le.load.deps,ei=(le.load.deps||[]).concat(le.load.cjsRequireDetection?st(Je):[]);for(var mi in le.load.globals)le.load.globals[mi]&&ei.push(le.load.globals[mi]);Y.registerDynamic(ei,!0,function(na,ji,$a){if(na.resolve=function(ur){return Jn.call(Y,ur,$a.id)},$a.paths=[],$a.require=na,!le.load.cjsDeferDepsExecute&&br)for(var Ha=0;Ha<br.length;Ha++)na(br[Ha]);var Eo=ze($a.id),Uo={exports:ji,args:[na,ji,$a,Eo.filename,Eo.dirname,Yr,Yr]},Ms="(function (require, exports, module, __filename, __dirname, global, GLOBAL";if(le.load.globals)for(var er in le.load.globals)Uo.args.push(na(le.load.globals[er])),Ms+=", "+er;var Ar=Yr.define;Yr.define=void 0,Yr.__cjsWrapper=Uo,Je=Ms+") {"+Je.replace(Fi,"")+` }).apply(__cjsWrapper.exports, __cjsWrapper.args);`;var Kr=rn(Y,Je,le.load.sourceMap,z,le.load.integrity,le.load.nonce,!1);if(Kr)throw Kr;Zt(le,ji),Yr.__cjsWrapper=void 0,Yr.define=Ar}),Ct=Le();break;case"global":ei=le.load.deps||[];for(var mi in le.load.globals){var Li=le.load.globals[mi];Li&&ei.push(Li)}Y.registerDynamic(ei,!1,function(na,ji,$a){var Ha;if(le.load.globals){Ha={};for(var Eo in le.load.globals)le.load.globals[Eo]&&(Ha[Eo]=na(le.load.globals[Eo]))}var Uo=le.load.exports;Uo&&(Je+=` `+Qt+'["'+Uo+'"] = '+Uo+";");var Ms=Ke($a.id,Uo,Ha,le.load.encapsulateGlobal),er=rn(Y,Je,le.load.sourceMap,z,le.load.integrity,le.load.nonce,!0);if(er)throw er;var Ar=Ms();return Zt(le,Ar),Ar}),Ct=Le();break;default:throw new TypeError('Unknown module format "'+le.load.format+'" for "'+z+'".'+(le.load.format==="es6"?' Use "esm" instead here.':""))}if(!Ct)throw new Error("Module "+z+" detected as "+le.load.format+" but didn't execute correctly.")})}function vn(Y){var z=Y.match(fr);return z&&Y.substr(z[0].length,15)==="System.register"}function fn(Y){return Y.match(Or)?"amd":(Si.lastIndex=0,Jr.lastIndex=0,Jr.exec(Y)||Si.exec(Y)?"cjs":"global")}function Tt(Y,z){var B=Y.split("!")[0];z.file&&z.file!=Y||(z.file=B+"!transpiled"),(!z.sources||z.sources.length<=1&&(!z.sources[0]||z.sources[0]===Y))&&(z.sources=[B])}function dn(Y,z,B,le,Le){if(!Y.transpiler)throw new TypeError("Unable to dynamically transpile ES module\n A loader plugin needs to be configured via `SystemJS.config({ transpiler: 'transpiler-module' })`.");if(le.load.deps){for(var Je="",Ct=0;Ct<le.load.deps.length;Ct++)Je+='import "'+le.load.deps[Ct]+'"; ';z=Je+z}return Y.import.call(Y,Y.transpiler).then(function(Vt){if(!(Vt=Vt.__useDefault||Vt).translate)throw new Error(Y.transpiler+" is not a valid transpiler plugin.");return Vt===le.pluginModule?z:(typeof le.load.sourceMap=="string"&&(le.load.sourceMap=JSON.parse(le.load.sourceMap)),le.pluginLoad=le.pluginLoad||{name:B,address:B,source:z,metadata:le.load},le.load.deps=le.load.deps||[],Promise.resolve(Vt.translate.call(Y,le.pluginLoad,le.traceOpts)).then(function(bn){var Hn=le.load.sourceMap;return Hn&&typeof Hn=="object"&&Tt(B,Hn),le.load.format==="esm"&&vn(bn)&&(le.load.format="register"),bn}))},function(Vt){throw v(Vt,"Unable to load transpiler to transpile "+B)})}function mn(Y,z,B){for(var le,Le=z.split(".");Le.length>1;)Y=Y[le=Le.shift()]=Y[le]||{};Y[le=Le.shift()]===void 0&&(Y[le]=B)}function Kn(Y,z){var B=Y.match(Bi);if(B)for(var le=B[0].match(Ui),Le=0;Le<le.length;Le++){var Je=le[Le],Ct=Je.length,Vt=Je.substr(0,1);if(Je.substr(Ct-1,1)==";"&&Ct--,Vt=='"'||Vt=="'"){var bn=Je.substr(1,Je.length-3),Hn=bn.substr(0,bn.indexOf(" "));if(Hn){var br=bn.substr(Hn.length+1,bn.length-Hn.length-1);Hn==="deps"&&(Hn="deps[]"),Hn.substr(Hn.length-2,2)==="[]"?(Hn=Hn.substr(0,Hn.length-2),z.load[Hn]=z.load[Hn]||[],z.load[Hn].push(br)):Hn!=="use"&&mn(z.load,Hn,br)}else z.load[bn]=!0}}}function Dn(){S.call(this),this._loader={},this[En]={},this[Ur]={baseURL:Qr,paths:{},packageConfigPaths:[],packageConfigKeys:[],map:{},packages:{},depCache:{},meta:{},bundles:{},production:!1,transpiler:void 0,loadedBundles:{},warnings:!1,pluginFirst:!1,wasm:!1},this.scriptSrc=Wt,this._nodeRequire=Gn,this.registry.set("@empty",Zn),Vn.call(this,!1,!1),wi(this)}function Vn(Y,z){this[Ur].production=Y,this.registry.set("@system-env",Ko=this.newModule({browser:ni,node:!!this._nodeRequire,production:!z&&Y,dev:z||!Y,build:z,default:!0}))}function or(Y,z){$.call(Y[Ur],"SystemJS."+z+" is deprecated for SystemJS.registry."+z)}var Qr,ni=typeof window<"u"&&typeof document<"u",yr=typeof process<"u"&&process.versions&&process.versions.node,si=typeof process<"u"&&typeof process.platform=="string"&&process.platform.match(/^win/),Yr=typeof self<"u"?self:t.g,Ci=typeof Symbol<"u";if(typeof document<"u"&&document.getElementsByTagName){if(!(Qr=document.baseURI)){var Ni=document.getElementsByTagName("base");Qr=Ni[0]&&Ni[0].href||window.location.href}}else typeof location<"u"&&(Qr=location.href);if(Qr){var fa=(Qr=Qr.split("#")[0].split("?")[0]).lastIndexOf("/");fa!==-1&&(Qr=Qr.substr(0,fa+1))}else{if(typeof process>"u"||!process.cwd)throw new TypeError("No environment baseURI");Qr="file://"+(si?"/":"")+process.cwd(),si&&(Qr=Qr.replace(/\\/g,"/"))}Qr[Qr.length-1]!=="/"&&(Qr+="/");var ha=new Error(0,"_").fileName=="_",Ca=Promise.resolve();d.prototype.constructor=d,d.prototype.import=function(Y,z){if(typeof Y!="string")throw new TypeError("Loader import method must be passed a module key string");var B=this;return Ca.then(function(){return B[la](Y,z)}).then(f).catch(function(le){throw v(le,"Loading "+Y+(z?" from "+z:""))})};var li=d.resolve=u("resolve"),la=d.resolveInstantiate=u("resolveInstantiate");d.prototype[la]=function(Y,z){var B=this;return B.resolve(Y,z).then(function(le){return B.registry.get(le)})},d.prototype.resolve=function(Y,z){var B=this;return Ca.then(function(){return B[li](Y,z)}).then(g).catch(function(le){throw v(le,"Resolving "+Y+(z?" to "+z:""))})};var Oa=typeof Symbol<"u"&&Symbol.iterator,wa=u("registry");Oa&&(y.prototype[Symbol.iterator]=function(){return this.entries()[Symbol.iterator]()},y.prototype.entries=function(){var Y=this[wa];return p(Object.keys(Y).map(function(z){return[z,Y[z]]}))}),y.prototype.keys=function(){return p(Object.keys(this[wa]))},y.prototype.values=function(){var Y=this[wa];return p(Object.keys(Y).map(function(z){return Y[z]}))},y.prototype.get=function(Y){return this[wa][Y]},y.prototype.set=function(Y,z){if(!(z instanceof b))throw new Error("Registry must be set with an instance of Module Namespace");return this[wa][Y]=z,this},y.prototype.has=function(Y){return Object.hasOwnProperty.call(this[wa],Y)},y.prototype.delete=function(Y){return!!Object.hasOwnProperty.call(this[wa],Y)&&(delete this[wa][Y],!0)};var vo=u("baseObject");b.prototype=Object.create(null),typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(b.prototype,Symbol.toStringTag,{value:"Module"});var Qn=u("register-internal");S.prototype=Object.create(d.prototype),S.prototype.constructor=S;var _r=S.instantiate=u("instantiate");S.prototype[S.resolve=d.resolve]=function(Y,z){return h(Y,z||Qr)},S.prototype[_r]=function(Y,z){},S.prototype[d.resolveInstantiate]=function(Y,z){var B=this,le=this[Qn],Le=this.registry[wa];return x(B,Y,z,Le,le).then(function(Je){if(Je instanceof b)return Je;var Ct=Je.linkRecord;if(!Ct){if(Je.module)return Je.module;throw Je.evalError}return K(B,Je,Ct,Le,le).then(function(){return W(B,Je,Ct,Le,le,void 0)})})},S.prototype.register=function(Y,z,B){var le=this[Qn];B===void 0?le.lastRegister=[Y,z,void 0]:(le.records[Y]||w(le,Y,void 0)).registration=[z,B,void 0]},S.prototype.registerDynamic=function(Y,z,B,le){var Le=this[Qn];typeof Y!="string"?Le.lastRegister=[Y,z,B]:(Le.records[Y]||w(Le,Y,void 0)).registration=[z,B,le]},_.prototype.import=function(Y){return this.loader.trace&&this.loader.loads[this.key].dynamicDeps.push(Y),this.loader.import(Y,this.key)};var $r={};Object.freeze&&Object.freeze($r);var Ti,xt,On=Promise.resolve(),Zn=new b({}),Ur=u("loader-config"),En=u("metadata"),ln=typeof window>"u"&&typeof self<"u"&&typeof importScripts<"u",jn=!1,rr=!1;if(ni&&function(){var Y=document.createElement("link").relList;if(Y&&Y.supports){rr=!0;try{jn=Y.supports("preload")}catch{}}}(),ni){var Mr=[],Ir=window.onerror;window.onerror=function(Y,z){for(var B=0;B<Mr.length;B++)if(Mr[B].src===z)return void Mr[B].err(Y);Ir&&Ir.apply(this,arguments)}}var Zr,lr,Jr=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF."'])require\s*\(\s*("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*'|`[^`\\]*(?:\\.[^`\\]*)*`)\s*\)/g,pi=typeof XMLHttpRequest<"u",Ri=lr=typeof self<"u"&&self.fetch!==void 0?_e:pi?we:typeof process<"u"?Ge:ht,Ki={},ia=["browser","node","dev","build","production","default"],Da=/#\{[^\}]+\}/,to=["browserConfig","nodeConfig","devConfig","buildConfig","productionConfig"],ao=typeof s<"u";try{ao&&new s("a").toString("base64")!=="YQ=="&&(ao=!1)}catch{ao=!1}var Bo,jo,Jo,Go,wr=` //# sourceMappingURL=data:application/json;base64,`,qi=0,ja=!1;ni&&typeof document<"u"&&document.getElementsByTagName&&(window.chrome&&window.chrome.extension||navigator.userAgent.match(/^Node\.js/)||(ja=!0));var uo,wi=function(Y){function z(le,Le,Je,Ct){if(typeof le=="object"&&!(le instanceof Array))return z.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if(typeof le=="string"&&typeof Le=="function"&&(le=[le]),!(le instanceof Array)){if(typeof le=="string"){var Vt=Y.decanonicalize(le,Ct),bn=Y.get(Vt);if(!bn)throw new Error('Module not already loaded loading "'+le+'" as '+Vt+(Ct?' from "'+Ct+'".':"."));return"__useDefault"in bn?bn.__useDefault:bn}throw new TypeError("Invalid require")}for(var Hn=[],br=0;br<le.length;br++)Hn.push(Y.import(le[br],Ct));Promise.all(Hn).then(function(ei){Le&&Le.apply(null,ei)},Je)}function B(le,Le,Je){function Ct(br,ei,mi){for(var Li=[],na=0;na<Le.length;na++)Li.push(br(Le[na]));if(mi.uri=mi.id,mi.config=J,Hn!==-1&&Li.splice(Hn,0,mi),bn!==-1&&Li.splice(bn,0,ei),Vt!==-1){var ji=function(Eo,Uo,Ms){return typeof Eo=="string"&&typeof Uo!="function"?br(Eo):z.call(Y,Eo,Uo,Ms,mi.id)};ji.toUrl=function(Eo){return Y.normalizeSync(Eo,mi.id)},Li.splice(Vt,0,ji)}var $a=Yr.require;Yr.require=z;var Ha=Je.apply(bn===-1?Yr:ei,Li);Yr.require=$a,Ha!==void 0&&(mi.exports=Ha)}typeof le!="string"&&(Je=Le,Le=le,le=null),Le instanceof Array||(Je=Le,Le=["require","exports","module"].splice(0,Je.length)),typeof Je!="function"&&(Je=function(br){return function(){return br}}(Je)),le||Mt&&(Le=Le.concat(Mt),Mt=void 0);var Vt,bn,Hn;(Vt=Le.indexOf("require"))!==-1&&(Le.splice(Vt,1),le||(Le=Le.concat(Ut(Je.toString(),Vt)))),(bn=Le.indexOf("exports"))!==-1&&Le.splice(bn,1),(Hn=Le.indexOf("module"))!==-1&&Le.splice(Hn,1),le?(Y.registerDynamic(le,Le,!1,Ct),za?(za=void 0,ye=!0):ye||(za=[Le,Ct])):Y.registerDynamic(Le,!1,Xe?on(Ct):Ct)}Y.set("@@cjs-helpers",Y.newModule({requireResolve:Jn.bind(Y),getPathVars:ze})),Y.set("@@global-helpers",Y.newModule({prepareGlobal:Ke})),B.amd={},Y.amdDefine=B,Y.amdRequire=z};typeof window<"u"&&typeof document<"u"&&window.location&&(uo=location.protocol+"//"+location.hostname+(location.port?":"+location.port:""));var ai,za,Mt,Gn,qn=/(^|[^\\])(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,Fr=/("[^"\\\n\r]*(\\.[^"\\\n\r]*)*"|'[^'\\\n\r]*(\\.[^'\\\n\r]*)*')/g,Ei=["_g","sessionStorage","localStorage","clipboardData","frames","frameElement","external","mozAnimationStartTime","webkitStorageInfo","webkitIndexedDB","mozInnerScreenY","mozInnerScreenX"],ii="(?:^|[^$_a-zA-Z\\xA0-\\uFFFF.])",Wi=`\\s*\\(\\s*("([^"]+)"|'([^']+)')\\s*\\)`,Ya=/\(([^\)]*)\)/,qa=/^\s+|\s+$/g,se={},ye=!1,Xe=!1,yt=(ni||ln)&&typeof navigator<"u"&&navigator.userAgent&&!navigator.userAgent.match(/MSIE (9|10).0/);typeof process>"u"||process.browser||(Gn=void 0);var Wt,Qt=typeof self<"u"?"self":"global",wn=/(^\s*|[}\);\n]\s*)(import\s*(['"]|(\*\s+as\s+)?(?!type)([^"'\(\)\n; ]+)\s*from\s*['"]|\{)|export\s+\*\s+from\s+["']|export\s*(\{|default|function|class|var|const|let|async\s+function))/,fr=/^(\s*\/\*[^\*]*(\*(?!\/)[^\*]*)*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)*\s*/,Or=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*\s*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/,Si=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])(exports\s*(\[['"]|\.)|module(\.exports|\['exports'\]|\["exports"\])\s*(\[['"]|[=,\.]))/,Fi=/^\#\!.*/,Bi=/^(\s*\/\*[^\*]*(\*(?!\/)[^\*]*)*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/,Ui=/\/\*[^\*]*(\*(?!\/)[^\*]*)*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g;if(typeof Promise>"u")throw new Error("SystemJS needs a Promise polyfill.");if(typeof document<"u"){var vi=document.getElementsByTagName("script"),Xa=vi[vi.length-1];document.currentScript&&(Xa.defer||Xa.async)&&(Xa=document.currentScript),Wt=Xa&&Xa.src}else if(typeof importScripts<"u")try{throw new Error("_")}catch(Y){Y.stack.replace(/(?:at|@).*(http.+):[\d]+:[\d]+/,function(z,B){Wt=B})}else Wt=i;var Ko;Dn.prototype=Object.create(S.prototype),Dn.prototype.constructor=Dn,Dn.prototype[Dn.resolve=S.resolve]=Dn.prototype.normalize=ue,Dn.prototype.load=function(Y,z){return $.call(this[Ur],"System.load is deprecated."),this.import(Y,z)},Dn.prototype.decanonicalize=Dn.prototype.normalizeSync=Dn.prototype.resolveSync=ve,Dn.prototype[Dn.instantiate=S.instantiate]=ot,Dn.prototype.config=Kt,Dn.prototype.getConfig=zt,Dn.prototype.global=Yr,Dn.prototype.import=function(){return S.prototype.import.apply(this,arguments).then(function(Y){return"__useDefault"in Y?Y.__useDefault:Y})};for(var So=["baseURL","map","paths","packages","packageConfigPaths","depCache","meta","bundles","transpiler","warnings","pluginFirst","production","wasm"],Lo=typeof Proxy<"u",us=0;us<So.length;us++)(function(Y){Object.defineProperty(Dn.prototype,Y,{get:function(){var z=Lt(this[Ur],Y);return Lo&&typeof z=="object"&&(z=new Proxy(z,{set:function(B,le){throw new Error("Cannot set SystemJS."+Y+'["'+le+'"] directly. Use SystemJS.config({ '+Y+': { "'+le+'": ... } }) rather.')}})),z},set:function(z){throw new Error("Setting `SystemJS."+Y+"` directly is no longer supported. Use `SystemJS.config({ "+Y+": ... })`.")}})})(So[us]);Dn.prototype.delete=function(Y){return or(this,"delete"),this.registry.delete(Y)},Dn.prototype.get=function(Y){return or(this,"get"),this.registry.get(Y)},Dn.prototype.has=function(Y){return or(this,"has"),this.registry.has(Y)},Dn.prototype.set=function(Y,z){return or(this,"set"),this.registry.set(Y,z)},Dn.prototype.newModule=function(Y){return new b(Y)},Dn.prototype.isModule=L,Dn.prototype.register=function(Y,z,B){return typeof Y=="string"&&(Y=ae.call(this,this[Ur],Y)),S.prototype.register.call(this,Y,z,B)},Dn.prototype.registerDynamic=function(Y,z,B,le){return typeof Y=="string"&&(Y=ae.call(this,this[Ur],Y)),S.prototype.registerDynamic.call(this,Y,z,B,le)},Dn.prototype.version="0.20.19 Dev";var Ee=new Dn;(ni||ln)&&(Yr.SystemJS=Yr.System=Ee),C.exports&&(C.exports=Ee)})()},75475:function(C,c,t){var i,s,u;/*! tether-drop 1.5.0 */(function(v,l){s=[t(41119)],i=l,u=typeof i=="function"?i.apply(c,s):i,u!==void 0&&(C.exports=u)})(this,function(v){"use strict";var l=Function.prototype.bind,h=function(){function X(Z,J){var q=[],L=!0,$=!1,k=void 0;try{for(var F=Z[Symbol.iterator](),V;!(L=(V=F.next()).done)&&(q.push(V.value),!(J&&q.length===J));L=!0);}catch(pe){$=!0,k=pe}finally{try{!L&&F.return&&F.return()}finally{if($)throw k}}return q}return function(Z,J){if(Array.isArray(Z))return Z;if(Symbol.iterator in Object(Z))return X(Z,J);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function X(Z,J){for(var q=0;q<J.length;q++){var L=J[q];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(Z,L.key,L)}}return function(Z,J,q){return J&&X(Z.prototype,J),q&&X(Z,q),Z}}(),d=function(Z,J,q){var L=!0;e:for(;L;){var $=Z,k=J,F=q;L=!1,$===null&&($=Function.prototype);var V=Object.getOwnPropertyDescriptor($,k);if(V===void 0){var pe=Object.getPrototypeOf($);if(pe===null)return;Z=pe,J=k,q=F,L=!0,V=pe=void 0;continue e}else{if("value"in V)return V.value;var ce=V.get;return ce===void 0?void 0:ce.call(F)}}};function f(X,Z){if(!(X instanceof Z))throw new TypeError("Cannot call a class as a function")}function g(X,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Z);X.prototype=Object.create(Z&&Z.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),Z&&(Object.setPrototypeOf?Object.setPrototypeOf(X,Z):X.__proto__=Z)}var y=v.Utils,b=y.extend,E=y.addClass,S=y.removeClass,w=y.hasClass,x=y.Evented;function P(X){var Z=X.split(" "),J=h(Z,2),q=J[0],L=J[1];if(["left","right"].indexOf(q)>=0){var $=[L,q];q=$[0],L=$[1]}return[q,L].join(" ")}function R(X,Z){for(var J=void 0,q=[];(J=X.indexOf(Z))!==-1;)q.push(X.splice(J,1));return q}var T=["click"];"ontouchstart"in document.documentElement&&T.push("touchstart");var A={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"},I="";for(var N in A)if({}.hasOwnProperty.call(A,N)){var K=document.createElement("p");typeof K.style[N]<"u"&&(I=A[N])}var _={left:"right",right:"left",top:"bottom",bottom:"top",middle:"middle",center:"center"},W={};function j(){var X=arguments.length<=0||arguments[0]===void 0?{}:arguments[0],Z=function(){for(var $=arguments.length,k=Array($),F=0;F<$;F++)k[F]=arguments[F];return new(l.apply(q,[null].concat(k)))};b(Z,{createContext:j,drops:[],defaults:{}});var J={classPrefix:"drop",defaults:{position:"bottom left",openOn:"click",beforeClose:null,constrainToScrollParent:!0,constrainToWindow:!0,classes:"",remove:!1,openDelay:0,closeDelay:50,focusDelay:null,blurDelay:null,hoverOpenDelay:null,hoverCloseDelay:null,tetherOptions:{}}};b(Z,J,X),b(Z.defaults,J.defaults,X.defaults),typeof W[Z.classPrefix]>"u"&&(W[Z.classPrefix]=[]),Z.updateBodyClasses=function(){for(var L=!1,$=W[Z.classPrefix],k=$.length,F=0;F<k;++F)if($[F].isOpened()){L=!0;break}L?E(document.body,Z.classPrefix+"-open"):S(document.body,Z.classPrefix+"-open")};var q=function(L){g($,L);function $(k){if(f(this,$),d(Object.getPrototypeOf($.prototype),"constructor",this).call(this),this.options=b({},Z.defaults,k),this.target=this.options.target,typeof this.target>"u")throw new Error("Drop Error: You must provide a target.");var F="data-"+Z.classPrefix,V=this.target.getAttribute(F);V&&this.options.content==null&&(this.options.content=V);for(var pe=["position","openOn"],ce=0;ce<pe.length;++ce){var G=this.target.getAttribute(F+"-"+pe[ce]);G&&this.options[pe[ce]]==null&&(this.options[pe[ce]]=G)}this.options.classes&&this.options.addTargetClasses!==!1&&E(this.target,this.options.classes),Z.drops.push(this),W[Z.classPrefix].push(this),this._boundEvents=[],this.bindMethods(),this.setupElements(),this.setupEvents(),this.setupTether()}return p($,[{key:"_on",value:function(F,V,pe){this._boundEvents.push({element:F,event:V,handler:pe}),F.addEventListener(V,pe)}},{key:"bindMethods",value:function(){this.transitionEndHandler=this._transitionEndHandler.bind(this)}},{key:"setupElements",value:function(){var F=this;if(this.drop=document.createElement("div"),E(this.drop,Z.classPrefix),this.options.classes&&E(this.drop,this.options.classes),this.content=document.createElement("div"),E(this.content,Z.classPrefix+"-content"),typeof this.options.content=="function"){var V=function(){var ce=F.options.content.call(F,F);if(typeof ce=="string")F.content.innerHTML=ce;else if(typeof ce=="object")F.content.innerHTML="",F.content.appendChild(ce);else throw new Error("Drop Error: Content function should return a string or HTMLElement.")};this.on("beforeOpen",V.bind(this))}else typeof this.options.content=="object"?this.content.appendChild(this.options.content):this.content.innerHTML=this.options.content;this.drop.appendChild(this.content)}},{key:"setupTether",value:function(){var F=this.options.position.split(" ");F[0]=_[F[0]],F=F.join(" ");var V=[];this.options.constrainToScrollParent?V.push({to:"scrollParent",pin:"top, bottom",attachment:"together none"}):V.push({to:"scrollParent"}),this.options.constrainToWindow!==!1?V.push({to:"window",attachment:"together"}):V.push({to:"window"});var pe={element:this.drop,target:this.target,attachment:P(F),targetAttachment:P(this.options.position),classPrefix:Z.classPrefix,offset:"0 0",targetOffset:"0 0",enabled:!1,constraints:V,addTargetClasses:this.options.addTargetClasses};this.options.tetherOptions!==!1&&(this.tether=new v(b({},pe,this.options.tetherOptions)))}},{key:"setupEvents",value:function(){var F=this;if(this.options.openOn){if(this.options.openOn==="always"){setTimeout(this.open.bind(this));return}var V=this.options.openOn.split(" ");if(V.indexOf("click")>=0)for(var pe=function(_e){F.toggle(_e),_e.preventDefault()},ce=function(_e){F.isOpened()&&(_e.target===F.drop||F.drop.contains(_e.target)||_e.target===F.target||F.target.contains(_e.target)||F.close(_e))},G=0;G<T.length;++G){var te=T[G];this._on(this.target,te,pe),this._on(document,te,ce)}var ie=null,fe=null,Se=function(_e){fe!==null?clearTimeout(fe):ie=setTimeout(function(){F.open(_e),ie=null},(_e.type==="focus"?F.options.focusDelay:F.options.hoverOpenDelay)||F.options.openDelay)},he=function(_e){ie!==null?clearTimeout(ie):fe=setTimeout(function(){F.close(_e),fe=null},(_e.type==="blur"?F.options.blurDelay:F.options.hoverCloseDelay)||F.options.closeDelay)};V.indexOf("hover")>=0&&(this._on(this.target,"mouseover",Se),this._on(this.drop,"mouseover",Se),this._on(this.target,"mouseout",he),this._on(this.drop,"mouseout",he)),V.indexOf("focus")>=0&&(this._on(this.target,"focus",Se),this._on(this.drop,"focus",Se),this._on(this.target,"blur",he),this._on(this.drop,"blur",he))}}},{key:"isOpened",value:function(){if(this.drop)return w(this.drop,Z.classPrefix+"-open")}},{key:"toggle",value:function(F){this.isOpened()?this.close(F):this.open(F)}},{key:"open",value:function(F){var V=this;this.isOpened()||(this.drop.parentNode||document.body.appendChild(this.drop),typeof this.tether<"u"&&this.tether.enable(),E(this.drop,Z.classPrefix+"-open"),E(this.drop,Z.classPrefix+"-open-transitionend"),setTimeout(function(){V.drop&&E(V.drop,Z.classPrefix+"-after-open")}),this.trigger("beforeOpen"),typeof this.tether<"u"&&this.tether.position(),this.trigger("open"),Z.updateBodyClasses())}},{key:"_transitionEndHandler",value:function(F){F.target===F.currentTarget&&(w(this.drop,Z.classPrefix+"-open")||S(this.drop,Z.classPrefix+"-open-transitionend"),this.drop.removeEventListener(I,this.transitionEndHandler))}},{key:"beforeCloseHandler",value:function(F){var V=!0;return!this.isClosing&&typeof this.options.beforeClose=="function"&&(this.isClosing=!0,V=this.options.beforeClose(F,this)!==!1),this.isClosing=!1,V}},{key:"close",value:function(F){this.isOpened()&&this.beforeCloseHandler(F)&&(S(this.drop,Z.classPrefix+"-open"),S(this.drop,Z.classPrefix+"-after-open"),this.drop.addEventListener(I,this.transitionEndHandler),this.trigger("close"),typeof this.tether<"u"&&this.tether.disable(),Z.updateBodyClasses(),this.options.remove&&this.remove(F))}},{key:"remove",value:function(F){this.close(F),this.drop.parentNode&&this.drop.parentNode.removeChild(this.drop)}},{key:"position",value:function(){this.isOpened()&&typeof this.tether<"u"&&this.tether.position()}},{key:"destroy",value:function(){this.remove(),typeof this.tether<"u"&&this.tether.destroy();for(var F=0;F<this._boundEvents.length;++F){var V=this._boundEvents[F],pe=V.element,ce=V.event,G=V.handler;pe.removeEventListener(ce,G)}this._boundEvents=[],this.tether=null,this.drop=null,this.content=null,this.target=null,R(W[Z.classPrefix],this),R(Z.drops,this)}}]),$}(x);return Z}var re=j();return document.addEventListener("DOMContentLoaded",function(){re.updateBodyClasses()}),re})},41119:function(C,c){var t,i,s;/*! tether 1.4.7 */(function(u,v){i=[],t=v,s=typeof t=="function"?t.apply(c,i):t,s!==void 0&&(C.exports=s)})(this,function(){"use strict";var w=function(){function nt(Re,ue){for(var ae=0;ae<ue.length;ae++){var ve=ue[ae];ve.enumerable=ve.enumerable||!1,ve.configurable=!0,"value"in ve&&(ve.writable=!0),Object.defineProperty(Re,ve.key,ve)}}return function(Re,ue,ae){return ue&&nt(Re.prototype,ue),ae&&nt(Re,ae),Re}}(),u=void 0;typeof u>"u"&&(u={modules:[]});var v=null;function l(nt){var Re=nt.getBoundingClientRect(),ue={};for(var ae in Re)ue[ae]=Re[ae];try{if(nt.ownerDocument!==document){var ve=nt.ownerDocument.defaultView.frameElement;if(ve){var Me=l(ve);ue.top+=Me.top,ue.bottom+=Me.top,ue.left+=Me.left,ue.right+=Me.left}}}catch{}return ue}function T(nt){var Re=getComputedStyle(nt)||{},ue=Re.position,ae=[];if(ue==="fixed")return[nt];for(var ve=nt;(ve=ve.parentNode)&&ve&&ve.nodeType===1;){var Me=void 0;try{Me=getComputedStyle(ve)}catch{}if(typeof Me>"u"||Me===null)return ae.push(ve),ae;var Ye=Me,qe=Ye.overflow,At=Ye.overflowX,It=Ye.overflowY;/(auto|scroll|overlay)/.test(qe+It+At)&&(ue!=="absolute"||["relative","absolute","fixed"].indexOf(Me.position)>=0)&&ae.push(ve)}return ae.push(nt.ownerDocument.body),nt.ownerDocument!==document&&ae.push(nt.ownerDocument.defaultView),ae}var h=function(){var nt=0;return function(){return++nt}}(),p={},d=function(){var Re=v;(!Re||!document.body.contains(Re))&&(Re=document.createElement("div"),Re.setAttribute("data-tether-id",h()),fe(Re.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(Re),v=Re);var ue=Re.getAttribute("data-tether-id");return typeof p[ue]>"u"&&(p[ue]=l(Re),Ge(function(){delete p[ue]})),p[ue]};function W(){v&&document.body.removeChild(v),v=null}function _e(nt){var Re=void 0;nt===document?(Re=document,nt=document.documentElement):Re=nt.ownerDocument;var ue=Re.documentElement,ae=l(nt),ve=d();return ae.top-=ve.top,ae.left-=ve.left,typeof ae.width>"u"&&(ae.width=document.body.scrollWidth-ae.left-ae.right),typeof ae.height>"u"&&(ae.height=document.body.scrollHeight-ae.top-ae.bottom),ae.top=ae.top-ue.clientTop,ae.left=ae.left-ue.clientLeft,ae.right=Re.body.clientWidth-ae.width-ae.left,ae.bottom=Re.body.clientHeight-ae.height-ae.top,ae}function A(nt){return nt.offsetParent||document.documentElement}var f=null;function _(){if(f)return f;var nt=document.createElement("div");nt.style.width="100%",nt.style.height="200px";var Re=document.createElement("div");fe(Re.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),Re.appendChild(nt),document.body.appendChild(Re);var ue=nt.offsetWidth;Re.style.overflow="scroll";var ae=nt.offsetWidth;ue===ae&&(ae=Re.clientWidth),document.body.removeChild(Re);var ve=ue-ae;return f={width:ve,height:ve},f}function fe(){var nt=arguments.length<=0||arguments[0]===void 0?{}:arguments[0],Re=[];return Array.prototype.push.apply(Re,arguments),Re.slice(1).forEach(function(ue){if(ue)for(var ae in ue)({}).hasOwnProperty.call(ue,ae)&&(nt[ae]=ue[ae])}),nt}function N(nt,Re){if(typeof nt.classList<"u")Re.split(" ").forEach(function(ve){ve.trim()&&nt.classList.remove(ve)});else{var ue=new RegExp("(^| )"+Re.split(" ").join("|")+"( |$)","gi"),ae=y(nt).replace(ue," ");b(nt,ae)}}function I(nt,Re){if(typeof nt.classList<"u")Re.split(" ").forEach(function(ae){ae.trim()&&nt.classList.add(ae)});else{N(nt,Re);var ue=y(nt)+(" "+Re);b(nt,ue)}}function g(nt,Re){if(typeof nt.classList<"u")return nt.classList.contains(Re);var ue=y(nt);return new RegExp("(^| )"+Re+"( |$)","gi").test(ue)}function y(nt){return nt.className instanceof nt.ownerDocument.defaultView.SVGAnimatedString?nt.className.baseVal:nt.className}function b(nt,Re){nt.setAttribute("class",Re)}function we(nt,Re,ue){ue.forEach(function(ae){Re.indexOf(ae)===-1&&g(nt,ae)&&N(nt,ae)}),Re.forEach(function(ae){g(nt,ae)||I(nt,ae)})}var E=[],Ge=function(Re){E.push(Re)},K=function(){for(var Re=void 0;Re=E.pop();)Re()},S=function(){function nt(){P(this,nt)}return w(nt,[{key:"on",value:function(ue,ae,ve){var Me=arguments.length<=3||arguments[3]===void 0?!1:arguments[3];typeof this.bindings>"u"&&(this.bindings={}),typeof this.bindings[ue]>"u"&&(this.bindings[ue]=[]),this.bindings[ue].push({handler:ae,ctx:ve,once:Me})}},{key:"once",value:function(ue,ae,ve){this.on(ue,ae,ve,!0)}},{key:"off",value:function(ue,ae){if(!(typeof this.bindings>"u"||typeof this.bindings[ue]>"u"))if(typeof ae>"u")delete this.bindings[ue];else for(var ve=0;ve<this.bindings[ue].length;)this.bindings[ue][ve].handler===ae?this.bindings[ue].splice(ve,1):++ve}},{key:"trigger",value:function(ue){if(typeof this.bindings<"u"&&this.bindings[ue]){for(var ae=0,ve=arguments.length,Me=Array(ve>1?ve-1:0),Ye=1;Ye<ve;Ye++)Me[Ye-1]=arguments[Ye];for(;ae<this.bindings[ue].length;){var qe=this.bindings[ue][ae],At=qe.handler,It=qe.ctx,Ce=qe.once,Ae=It;typeof Ae>"u"&&(Ae=this),At.apply(Ae,Me),Ce?this.bindings[ue].splice(ae,1):++ae}}}}]),nt}();u.Utils={getActualBoundingClientRect:l,getScrollParents:T,getBounds:_e,getOffsetParent:A,extend:fe,addClass:I,removeClass:N,hasClass:g,updateClasses:we,defer:Ge,flush:K,uniqueId:h,Evented:S,getScrollBarSize:_,removeUtilElements:W};var ht=function(){function nt(Re,ue){var ae=[],ve=!0,Me=!1,Ye=void 0;try{for(var qe=Re[Symbol.iterator](),At;!(ve=(At=qe.next()).done)&&(ae.push(At.value),!(ue&&ae.length===ue));ve=!0);}catch(It){Me=!0,Ye=It}finally{try{!ve&&qe.return&&qe.return()}finally{if(Me)throw Ye}}return ae}return function(Re,ue){if(Array.isArray(Re))return Re;if(Symbol.iterator in Object(Re))return nt(Re,ue);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function nt(Re,ue){for(var ae=0;ae<ue.length;ae++){var ve=ue[ae];ve.enumerable=ve.enumerable||!1,ve.configurable=!0,"value"in ve&&(ve.writable=!0),Object.defineProperty(Re,ve.key,ve)}}return function(Re,ue,ae){return ue&&nt(Re.prototype,ue),ae&&nt(Re,ae),Re}}(),x=function(Re,ue,ae){var ve=!0;e:for(;ve;){var Me=Re,Ye=ue,qe=ae;ve=!1,Me===null&&(Me=Function.prototype);var At=Object.getOwnPropertyDescriptor(Me,Ye);if(At===void 0){var It=Object.getPrototypeOf(Me);if(It===null)return;Re=It,ue=Ye,ae=qe,ve=!0,At=It=void 0;continue e}else{if("value"in At)return At.value;var Ce=At.get;return Ce===void 0?void 0:Ce.call(qe)}}};function P(nt,Re){if(!(nt instanceof Re))throw new TypeError("Cannot call a class as a function")}function R(nt,Re){if(typeof Re!="function"&&Re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Re);nt.prototype=Object.create(Re&&Re.prototype,{constructor:{value:nt,enumerable:!1,writable:!0,configurable:!0}}),Re&&(Object.setPrototypeOf?Object.setPrototypeOf(nt,Re):nt.__proto__=Re)}if(typeof u>"u")throw new Error("You must include the utils.js file before tether.js");var me=u.Utils,T=me.getScrollParents,_e=me.getBounds,A=me.getOffsetParent,fe=me.extend,I=me.addClass,N=me.removeClass,we=me.updateClasses,Ge=me.defer,K=me.flush,_=me.getScrollBarSize,W=me.removeUtilElements;function j(nt,Re){var ue=arguments.length<=2||arguments[2]===void 0?1:arguments[2];return nt+ue>=Re&&Re>=nt-ue}var re=function(){if(typeof document>"u")return"";for(var nt=document.createElement("div"),Re=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],ue=0;ue<Re.length;++ue){var ae=Re[ue];if(nt.style[ae]!==void 0)return ae}}(),X=[],Z=function(){X.forEach(function(Re){Re.position(!1)}),K()};function J(){return typeof performance=="object"&&typeof performance.now=="function"?performance.now():+new Date}(function(){var nt=null,Re=null,ue=null,ae=function ve(){if(typeof Re<"u"&&Re>16){Re=Math.min(Re-16,250),ue=setTimeout(ve,250);return}typeof nt<"u"&&J()-nt<10||(ue!=null&&(clearTimeout(ue),ue=null),nt=J(),Z(),Re=J()-nt)};typeof window<"u"&&typeof window.addEventListener<"u"&&["resize","scroll","touchmove"].forEach(function(ve){window.addEventListener(ve,ae)})})();var q={center:"center",left:"right",right:"left"},L={middle:"middle",top:"bottom",bottom:"top"},$={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},k=function(Re,ue){var ae=Re.left,ve=Re.top;return ae==="auto"&&(ae=q[ue.left]),ve==="auto"&&(ve=L[ue.top]),{left:ae,top:ve}},F=function(Re){var ue=Re.left,ae=Re.top;return typeof $[Re.left]<"u"&&(ue=$[Re.left]),typeof $[Re.top]<"u"&&(ae=$[Re.top]),{left:ue,top:ae}};function V(){for(var nt={top:0,left:0},Re=arguments.length,ue=Array(Re),ae=0;ae<Re;ae++)ue[ae]=arguments[ae];return ue.forEach(function(ve){var Me=ve.top,Ye=ve.left;typeof Me=="string"&&(Me=parseFloat(Me,10)),typeof Ye=="string"&&(Ye=parseFloat(Ye,10)),nt.top+=Me,nt.left+=Ye}),nt}function pe(nt,Re){return typeof nt.left=="string"&&nt.left.indexOf("%")!==-1&&(nt.left=parseFloat(nt.left,10)/100*Re.width),typeof nt.top=="string"&&nt.top.indexOf("%")!==-1&&(nt.top=parseFloat(nt.top,10)/100*Re.height),nt}var ce=function(Re){var ue=Re.split(" "),ae=ht(ue,2),ve=ae[0],Me=ae[1];return{top:ve,left:Me}},G=ce,te=function(nt){R(Re,nt);function Re(ue){var ae=this;P(this,Re),x(Object.getPrototypeOf(Re.prototype),"constructor",this).call(this),this.position=this.position.bind(this),X.push(this),this.history=[],this.setOptions(ue,!1),u.modules.forEach(function(ve){typeof ve.initialize<"u"&&ve.initialize.call(ae)}),this.position()}return w(Re,[{key:"getClass",value:function(){var ae=arguments.length<=0||arguments[0]===void 0?"":arguments[0],ve=this.options.classes;return typeof ve<"u"&&ve[ae]?this.options.classes[ae]:this.options.classPrefix?this.options.classPrefix+"-"+ae:ae}},{key:"setOptions",value:function(ae){var ve=this,Me=arguments.length<=1||arguments[1]===void 0?!0:arguments[1],Ye={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=fe(Ye,ae);var qe=this.options,At=qe.element,It=qe.target,Ce=qe.targetModifier;if(this.element=At,this.target=It,this.targetModifier=Ce,this.target==="viewport"?(this.target=document.body,this.targetModifier="visible"):this.target==="scroll-handle"&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(Ae){if(typeof ve[Ae]>"u")throw new Error("Tether Error: Both element and target must be defined");typeof ve[Ae].jquery<"u"?ve[Ae]=ve[Ae][0]:typeof ve[Ae]=="string"&&(ve[Ae]=document.querySelector(ve[Ae]))}),I(this.element,this.getClass("element")),this.options.addTargetClasses!==!1&&I(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=G(this.options.targetAttachment),this.attachment=G(this.options.attachment),this.offset=ce(this.options.offset),this.targetOffset=ce(this.options.targetOffset),typeof this.scrollParents<"u"&&this.disable(),this.targetModifier==="scroll-handle"?this.scrollParents=[this.target]:this.scrollParents=T(this.target),this.options.enabled!==!1&&this.enable(Me)}},{key:"getTargetBounds",value:function(){if(typeof this.targetModifier<"u"){if(this.targetModifier==="visible"){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var ae=_e(this.target),ve={height:ae.height,width:ae.width,top:ae.top,left:ae.left};return ve.height=Math.min(ve.height,ae.height-(pageYOffset-ae.top)),ve.height=Math.min(ve.height,ae.height-(ae.top+ae.height-(pageYOffset+innerHeight))),ve.height=Math.min(innerHeight,ve.height),ve.height-=2,ve.width=Math.min(ve.width,ae.width-(pageXOffset-ae.left)),ve.width=Math.min(ve.width,ae.width-(ae.left+ae.width-(pageXOffset+innerWidth))),ve.width=Math.min(innerWidth,ve.width),ve.width-=2,ve.top<pageYOffset&&(ve.top=pageYOffset),ve.left<pageXOffset&&(ve.left=pageXOffset),ve}else if(this.targetModifier==="scroll-handle"){var ae=void 0,Me=this.target;Me===document.body?(Me=document.documentElement,ae={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):ae=_e(Me);var Ye=getComputedStyle(Me),qe=Me.scrollWidth>Me.clientWidth||[Ye.overflow,Ye.overflowX].indexOf("scroll")>=0||this.target!==document.body,At=0;qe&&(At=15);var It=ae.height-parseFloat(Ye.borderTopWidth)-parseFloat(Ye.borderBottomWidth)-At,ve={width:15,height:It*.975*(It/Me.scrollHeight),left:ae.left+ae.width-parseFloat(Ye.borderLeftWidth)-15},Ce=0;It<408&&this.target===document.body&&(Ce=-11e-5*Math.pow(It,2)-.00727*It+22.58),this.target!==document.body&&(ve.height=Math.max(ve.height,24));var Ae=this.target.scrollTop/(Me.scrollHeight-It);return ve.top=Ae*(It-ve.height-Ce)+ae.top+parseFloat(Ye.borderTopWidth),this.target===document.body&&(ve.height=Math.max(ve.height,24)),ve}}else return _e(this.target)}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(ae,ve){return typeof this._cache>"u"&&(this._cache={}),typeof this._cache[ae]>"u"&&(this._cache[ae]=ve.call(this)),this._cache[ae]}},{key:"enable",value:function(){var ae=this,ve=arguments.length<=0||arguments[0]===void 0?!0:arguments[0];this.options.addTargetClasses!==!1&&I(this.target,this.getClass("enabled")),I(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(Me){Me!==ae.target.ownerDocument&&Me.addEventListener("scroll",ae.position)}),ve&&this.position()}},{key:"disable",value:function(){var ae=this;N(this.target,this.getClass("enabled")),N(this.element,this.getClass("enabled")),this.enabled=!1,typeof this.scrollParents<"u"&&this.scrollParents.forEach(function(ve){ve.removeEventListener("scroll",ae.position)})}},{key:"destroy",value:function(){var ae=this;this.disable(),X.forEach(function(ve,Me){ve===ae&&X.splice(Me,1)}),X.length===0&&W()}},{key:"updateAttachClasses",value:function(ae,ve){var Me=this;ae=ae||this.attachment,ve=ve||this.targetAttachment;var Ye=["left","top","bottom","right","middle","center"];typeof this._addAttachClasses<"u"&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),typeof this._addAttachClasses>"u"&&(this._addAttachClasses=[]);var qe=this._addAttachClasses;ae.top&&qe.push(this.getClass("element-attached")+"-"+ae.top),ae.left&&qe.push(this.getClass("element-attached")+"-"+ae.left),ve.top&&qe.push(this.getClass("target-attached")+"-"+ve.top),ve.left&&qe.push(this.getClass("target-attached")+"-"+ve.left);var At=[];Ye.forEach(function(It){At.push(Me.getClass("element-attached")+"-"+It),At.push(Me.getClass("target-attached")+"-"+It)}),Ge(function(){typeof Me._addAttachClasses<"u"&&(we(Me.element,Me._addAttachClasses,At),Me.options.addTargetClasses!==!1&&we(Me.target,Me._addAttachClasses,At),delete Me._addAttachClasses)})}},{key:"position",value:function(){var ae=this,ve=arguments.length<=0||arguments[0]===void 0?!0:arguments[0];if(this.enabled){this.clearCache();var Me=k(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,Me);var Ye=this.cache("element-bounds",function(){return _e(ae.element)}),qe=Ye.width,At=Ye.height;if(qe===0&&At===0&&typeof this.lastSize<"u"){var It=this.lastSize;qe=It.width,At=It.height}else this.lastSize={width:qe,height:At};var Ce=this.cache("target-bounds",function(){return ae.getTargetBounds()}),Ae=Ce,$e=pe(F(this.attachment),{width:qe,height:At}),tt=pe(F(Me),Ae),ke=pe(this.offset,{width:qe,height:At}),Oe=pe(this.targetOffset,Ae);$e=V($e,ke),tt=V(tt,Oe);for(var je=Ce.left+tt.left-$e.left,Et=Ce.top+tt.top-$e.top,ct=0;ct<u.modules.length;++ct){var ut=u.modules[ct],Ne=ut.position.call(this,{left:je,top:Et,targetAttachment:Me,targetPos:Ce,elementPos:Ye,offset:$e,targetOffset:tt,manualOffset:ke,manualTargetOffset:Oe,scrollbarSize:hn,attachment:this.attachment});if(Ne===!1)return!1;if(typeof Ne>"u"||typeof Ne!="object")continue;Et=Ne.top,je=Ne.left}var mt={page:{top:Et,left:je},viewport:{top:Et-pageYOffset,bottom:pageYOffset-Et-At+innerHeight,left:je-pageXOffset,right:pageXOffset-je-qe+innerWidth}},bt=this.target.ownerDocument,Gt=bt.defaultView,hn=void 0;return Gt.innerHeight>bt.documentElement.clientHeight&&(hn=this.cache("scrollbar-size",_),mt.viewport.bottom-=hn.height),Gt.innerWidth>bt.documentElement.clientWidth&&(hn=this.cache("scrollbar-size",_),mt.viewport.right-=hn.width),(["","static"].indexOf(bt.body.style.position)===-1||["","static"].indexOf(bt.body.parentElement.style.position)===-1)&&(mt.page.bottom=bt.body.scrollHeight-Et-At,mt.page.right=bt.body.scrollWidth-je-qe),typeof this.options.optimizations<"u"&&this.options.optimizations.moveElement!==!1&&!(typeof this.targetModifier<"u")&&function(){var Yt=ae.cache("target-offsetparent",function(){return A(ae.target)}),Bt=ae.cache("target-offsetparent-bounds",function(){return _e(Yt)}),Lt=getComputedStyle(Yt),zt=Bt,Kt={};if(["Top","Left","Bottom","Right"].forEach(function(lt){Kt[lt.toLowerCase()]=parseFloat(Lt["border"+lt+"Width"])}),Bt.right=bt.body.scrollWidth-Bt.left-zt.width+Kt.right,Bt.bottom=bt.body.scrollHeight-Bt.top-zt.height+Kt.bottom,mt.page.top>=Bt.top+Kt.top&&mt.page.bottom>=Bt.bottom&&mt.page.left>=Bt.left+Kt.left&&mt.page.right>=Bt.right){var vt=Yt.scrollTop,Ve=Yt.scrollLeft;mt.offset={top:mt.page.top-Bt.top+vt-Kt.top,left:mt.page.left-Bt.left+Ve-Kt.left}}}(),this.move(mt),this.history.unshift(mt),this.history.length>3&&this.history.pop(),ve&&K(),!0}}},{key:"move",value:function(ae){var ve=this;if(typeof this.element.parentNode<"u"){var Me={};for(var Ye in ae){Me[Ye]={};for(var qe in ae[Ye]){for(var At=!1,It=0;It<this.history.length;++It){var Ce=this.history[It];if(typeof Ce[Ye]<"u"&&!j(Ce[Ye][qe],ae[Ye][qe])){At=!0;break}}At||(Me[Ye][qe]=!0)}}var Ae={top:"",left:"",right:"",bottom:""},$e=function(bt,Gt){var hn=typeof ve.options.optimizations<"u",Yt=hn?ve.options.optimizations.gpu:null;if(Yt!==!1){var Bt=void 0,Lt=void 0;bt.top?(Ae.top=0,Bt=Gt.top):(Ae.bottom=0,Bt=-Gt.bottom),bt.left?(Ae.left=0,Lt=Gt.left):(Ae.right=0,Lt=-Gt.right),typeof window.devicePixelRatio=="number"&&devicePixelRatio%1===0&&(Lt=Math.round(Lt*devicePixelRatio)/devicePixelRatio,Bt=Math.round(Bt*devicePixelRatio)/devicePixelRatio),Ae[re]="translateX("+Lt+"px) translateY("+Bt+"px)",re!=="msTransform"&&(Ae[re]+=" translateZ(0)")}else bt.top?Ae.top=Gt.top+"px":Ae.bottom=Gt.bottom+"px",bt.left?Ae.left=Gt.left+"px":Ae.right=Gt.right+"px"},tt=!1;if((Me.page.top||Me.page.bottom)&&(Me.page.left||Me.page.right)?(Ae.position="absolute",$e(Me.page,ae.page)):(Me.viewport.top||Me.viewport.bottom)&&(Me.viewport.left||Me.viewport.right)?(Ae.position="fixed",$e(Me.viewport,ae.viewport)):typeof Me.offset<"u"&&Me.offset.top&&Me.offset.left?function(){Ae.position="absolute";var mt=ve.cache("target-offsetparent",function(){return A(ve.target)});A(ve.element)!==mt&&Ge(function(){ve.element.parentNode.removeChild(ve.element),mt.appendChild(ve.element)}),$e(Me.offset,ae.offset),tt=!0}():(Ae.position="absolute",$e({top:!0,left:!0},ae.page)),!tt)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var ke=function(bt){var Gt=bt.ownerDocument,hn=Gt.fullscreenElement||Gt.webkitFullscreenElement||Gt.mozFullScreenElement||Gt.msFullscreenElement;return hn===bt},Oe=!0,je=this.element.parentNode;je&&je.nodeType===1&&je.tagName!=="BODY"&&!ke(je);){if(getComputedStyle(je).position!=="static"){Oe=!1;break}je=je.parentNode}Oe||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var Et={},ct=!1;for(var qe in Ae){var ut=Ae[qe],Ne=this.element.style[qe];Ne!==ut&&(ct=!0,Et[qe]=ut)}ct&&Ge(function(){fe(ve.element.style,Et),ve.trigger("repositioned")})}}}]),Re}(S);te.modules=[],u.position=Z;var ie=fe(te,u),ht=function(){function nt(Re,ue){var ae=[],ve=!0,Me=!1,Ye=void 0;try{for(var qe=Re[Symbol.iterator](),At;!(ve=(At=qe.next()).done)&&(ae.push(At.value),!(ue&&ae.length===ue));ve=!0);}catch(It){Me=!0,Ye=It}finally{try{!ve&&qe.return&&qe.return()}finally{if(Me)throw Ye}}return ae}return function(Re,ue){if(Array.isArray(Re))return Re;if(Symbol.iterator in Object(Re))return nt(Re,ue);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),me=u.Utils,_e=me.getBounds,fe=me.extend,we=me.updateClasses,Ge=me.defer,Se=["left","top","right","bottom"];function he(nt,Re){return Re==="scrollParent"?Re=nt.scrollParents[0]:Re==="window"&&(Re=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),Re===document&&(Re=Re.documentElement),typeof Re.nodeType<"u"&&function(){var ue=Re,ae=_e(Re),ve=ae,Me=getComputedStyle(Re);if(Re=[ve.left,ve.top,ae.width+ve.left,ae.height+ve.top],ue.ownerDocument!==document){var Ye=ue.ownerDocument.defaultView;Re[0]+=Ye.pageXOffset,Re[1]+=Ye.pageYOffset,Re[2]+=Ye.pageXOffset,Re[3]+=Ye.pageYOffset}Se.forEach(function(qe,At){qe=qe[0].toUpperCase()+qe.substr(1),qe==="Top"||qe==="Left"?Re[At]+=parseFloat(Me["border"+qe+"Width"]):Re[At]-=parseFloat(Me["border"+qe+"Width"])})}(),Re}u.modules.push({position:function(Re){var ue=this,ae=Re.top,ve=Re.left,Me=Re.targetAttachment;if(!this.options.constraints)return!0;var Ye=this.cache("element-bounds",function(){return _e(ue.element)}),qe=Ye.height,At=Ye.width;if(At===0&&qe===0&&typeof this.lastSize<"u"){var It=this.lastSize;At=It.width,qe=It.height}var Ce=this.cache("target-bounds",function(){return ue.getTargetBounds()}),Ae=Ce.height,$e=Ce.width,tt=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(Et){var ct=Et.outOfBoundsClass,ut=Et.pinnedClass;ct&&tt.push(ct),ut&&tt.push(ut)}),tt.forEach(function(Et){["left","top","right","bottom"].forEach(function(ct){tt.push(Et+"-"+ct)})});var ke=[],Oe=fe({},Me),je=fe({},this.attachment);return this.options.constraints.forEach(function(Et){var ct=Et.to,ut=Et.attachment,Ne=Et.pin;typeof ut>"u"&&(ut="");var mt=void 0,bt=void 0;if(ut.indexOf(" ")>=0){var Gt=ut.split(" "),hn=ht(Gt,2);bt=hn[0],mt=hn[1]}else mt=bt=ut;var Yt=he(ue,ct);(bt==="target"||bt==="both")&&(ae<Yt[1]&&Oe.top==="top"&&(ae+=Ae,Oe.top="bottom"),ae+qe>Yt[3]&&Oe.top==="bottom"&&(ae-=Ae,Oe.top="top")),bt==="together"&&(Oe.top==="top"&&(je.top==="bottom"&&ae<Yt[1]?(ae+=Ae,Oe.top="bottom",ae+=qe,je.top="top"):je.top==="top"&&ae+qe>Yt[3]&&ae-(qe-Ae)>=Yt[1]&&(ae-=qe-Ae,Oe.top="bottom",je.top="bottom")),Oe.top==="bottom"&&(je.top==="top"&&ae+qe>Yt[3]?(ae-=Ae,Oe.top="top",ae-=qe,je.top="bottom"):je.top==="bottom"&&ae<Yt[1]&&ae+(qe*2-Ae)<=Yt[3]&&(ae+=qe-Ae,Oe.top="top",je.top="top")),Oe.top==="middle"&&(ae+qe>Yt[3]&&je.top==="top"?(ae-=qe,je.top="bottom"):ae<Yt[1]&&je.top==="bottom"&&(ae+=qe,je.top="top"))),(mt==="target"||mt==="both")&&(ve<Yt[0]&&Oe.left==="left"&&(ve+=$e,Oe.left="right"),ve+At>Yt[2]&&Oe.left==="right"&&(ve-=$e,Oe.left="left")),mt==="together"&&(ve<Yt[0]&&Oe.left==="left"?je.left==="right"?(ve+=$e,Oe.left="right",ve+=At,je.left="left"):je.left==="left"&&(ve+=$e,Oe.left="right",ve-=At,je.left="right"):ve+At>Yt[2]&&Oe.left==="right"?je.left==="left"?(ve-=$e,Oe.left="left",ve-=At,je.left="right"):je.left==="right"&&(ve-=$e,Oe.left="left",ve+=At,je.left="left"):Oe.left==="center"&&(ve+At>Yt[2]&&je.left==="left"?(ve-=At,je.left="right"):ve<Yt[0]&&je.left==="right"&&(ve+=At,je.left="left"))),(bt==="element"||bt==="both")&&(ae<Yt[1]&&je.top==="bottom"&&(ae+=qe,je.top="top"),ae+qe>Yt[3]&&je.top==="top"&&(ae-=qe,je.top="bottom")),(mt==="element"||mt==="both")&&(ve<Yt[0]&&(je.left==="right"?(ve+=At,je.left="left"):je.left==="center"&&(ve+=At/2,je.left="left")),ve+At>Yt[2]&&(je.left==="left"?(ve-=At,je.left="right"):je.left==="center"&&(ve-=At/2,je.left="right"))),typeof Ne=="string"?Ne=Ne.split(",").map(function(zt){return zt.trim()}):Ne===!0&&(Ne=["top","left","right","bottom"]),Ne=Ne||[];var Bt=[],Lt=[];ae<Yt[1]&&(Ne.indexOf("top")>=0?(ae=Yt[1],Bt.push("top")):Lt.push("top")),ae+qe>Yt[3]&&(Ne.indexOf("bottom")>=0?(ae=Yt[3]-qe,Bt.push("bottom")):Lt.push("bottom")),ve<Yt[0]&&(Ne.indexOf("left")>=0?(ve=Yt[0],Bt.push("left")):Lt.push("left")),ve+At>Yt[2]&&(Ne.indexOf("right")>=0?(ve=Yt[2]-At,Bt.push("right")):Lt.push("right")),Bt.length&&function(){var zt=void 0;typeof ue.options.pinnedClass<"u"?zt=ue.options.pinnedClass:zt=ue.getClass("pinned"),ke.push(zt),Bt.forEach(function(Kt){ke.push(zt+"-"+Kt)})}(),Lt.length&&function(){var zt=void 0;typeof ue.options.outOfBoundsClass<"u"?zt=ue.options.outOfBoundsClass:zt=ue.getClass("out-of-bounds"),ke.push(zt),Lt.forEach(function(Kt){ke.push(zt+"-"+Kt)})}(),(Bt.indexOf("left")>=0||Bt.indexOf("right")>=0)&&(je.left=Oe.left=!1),(Bt.indexOf("top")>=0||Bt.indexOf("bottom")>=0)&&(je.top=Oe.top=!1),(Oe.top!==Me.top||Oe.left!==Me.left||je.top!==ue.attachment.top||je.left!==ue.attachment.left)&&(ue.updateAttachClasses(je,Oe),ue.trigger("update",{attachment:je,targetAttachment:Oe}))}),Ge(function(){ue.options.addTargetClasses!==!1&&we(ue.target,ke,tt),we(ue.element,ke,tt)}),{top:ae,left:ve}}});var me=u.Utils,_e=me.getBounds,we=me.updateClasses,Ge=me.defer;u.modules.push({position:function(Re){var ue=this,ae=Re.top,ve=Re.left,Me=this.cache("element-bounds",function(){return _e(ue.element)}),Ye=Me.height,qe=Me.width,At=this.getTargetBounds(),It=ae+Ye,Ce=ve+qe,Ae=[];ae<=At.bottom&&It>=At.top&&["left","right"].forEach(function(Oe){var je=At[Oe];(je===ve||je===Ce)&&Ae.push(Oe)}),ve<=At.right&&Ce>=At.left&&["top","bottom"].forEach(function(Oe){var je=At[Oe];(je===ae||je===It)&&Ae.push(Oe)});var $e=[],tt=[],ke=["left","top","right","bottom"];return $e.push(this.getClass("abutted")),ke.forEach(function(Oe){$e.push(ue.getClass("abutted")+"-"+Oe)}),Ae.length&&tt.push(this.getClass("abutted")),Ae.forEach(function(Oe){tt.push(ue.getClass("abutted")+"-"+Oe)}),Ge(function(){ue.options.addTargetClasses!==!1&&we(ue.target,tt,$e),we(ue.element,tt,$e)}),!0}});var ht=function(){function nt(Re,ue){var ae=[],ve=!0,Me=!1,Ye=void 0;try{for(var qe=Re[Symbol.iterator](),At;!(ve=(At=qe.next()).done)&&(ae.push(At.value),!(ue&&ae.length===ue));ve=!0);}catch(It){Me=!0,Ye=It}finally{try{!ve&&qe.return&&qe.return()}finally{if(Me)throw Ye}}return ae}return function(Re,ue){if(Array.isArray(Re))return Re;if(Symbol.iterator in Object(Re))return nt(Re,ue);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return u.modules.push({position:function(Re){var ue=Re.top,ae=Re.left;if(this.options.shift){var ve=this.options.shift;typeof this.options.shift=="function"&&(ve=this.options.shift.call(this,{top:ue,left:ae}));var Me=void 0,Ye=void 0;if(typeof ve=="string"){ve=ve.split(" "),ve[1]=ve[1]||ve[0];var qe=ve,At=ht(qe,2);Me=At[0],Ye=At[1],Me=parseFloat(Me,10),Ye=parseFloat(Ye,10)}else Me=ve.top,Ye=ve.left;return ue+=Me,ae+=Ye,{top:ue,left:ae}}}}),ie})},54344:(C,c,t)=>{var i=t(42365);c=C.exports=s,s.through=s;function s(u,v,l){u=u||function(E){this.queue(E)},v=v||function(){this.queue(null)};var h=!1,p=!1,d=[],f=!1,g=new i;g.readable=g.writable=!0,g.paused=!1,g.autoDestroy=!(l&&l.autoDestroy===!1),g.write=function(E){return u.call(this,E),!g.paused};function y(){for(;d.length&&!g.paused;){var E=d.shift();if(E===null)return g.emit("end");g.emit("data",E)}}g.queue=g.push=function(E){return f||(E===null&&(f=!0),d.push(E),y()),g},g.on("end",function(){g.readable=!1,!g.writable&&g.autoDestroy&&process.nextTick(function(){g.destroy()})});function b(){g.writable=!1,v.call(g),!g.readable&&g.autoDestroy&&g.destroy()}return g.end=function(E){if(!h)return h=!0,arguments.length&&g.write(E),b(),g},g.destroy=function(){if(!p)return p=!0,h=!0,d.length=0,g.writable=g.readable=!1,g.emit("close"),g},g.pause=function(){if(!g.paused)return g.paused=!0,g},g.resume=function(){return g.paused&&(g.paused=!1,g.emit("resume")),y(),g.paused||g.emit("drain"),g},g}},25726:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=!0,s="Invariant failed";function u(l,h){if(!l)throw i?new Error(s):new Error(s+": "+(h||""))}const v=u},40151:(C,c,t)=>{"use strict";t.r(c),t.d(c,{default:()=>u});var i=!0,s="Invariant failed";function u(v,l){if(!v){if(i)throw new Error(s);var h=typeof l=="function"?l():l,p=h?s+": "+h:s;throw new Error(p)}}},93425:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=!0,s=function(v,l){if(!i){if(v)return;console.warn(l)}};const u=s},51661:(C,c,t)=>{var i=t(25546);C.exports=s;function s(u){return i(u).replace(/\s(\w)/g,function(v,l){return l.toUpperCase()})}},87394:C=>{C.exports=s;var c=/\s/,t=/(_|-|\.|:)/,i=/([a-z][A-Z]|[A-Z][a-z])/;function s(p){return c.test(p)?p.toLowerCase():t.test(p)?(v(p)||p).toLowerCase():i.test(p)?h(p).toLowerCase():p.toLowerCase()}var u=/[\W_]+(.|$)/g;function v(p){return p.replace(u,function(d,f){return f?" "+f:""})}var l=/(.)([A-Z]+)/g;function h(p){return p.replace(l,function(d,f,g){return f+" "+g.toLowerCase().split("").join(" ")})}},25546:(C,c,t)=>{var i=t(87394);C.exports=s;function s(u){return i(u).replace(/[\W_]+(.|$)/g,function(v,l){return l?" "+l:""}).trim()}},28829:C=>{C.exports=function(){var c=document.getSelection();if(!c.rangeCount)return function(){};for(var t=document.activeElement,i=[],s=0;s<c.rangeCount;s++)i.push(c.getRangeAt(s));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return c.removeAllRanges(),function(){c.type==="Caret"&&c.removeAllRanges(),c.rangeCount||i.forEach(function(u){c.addRange(u)}),t&&t.focus()}}},48314:(C,c,t)=>{"use strict";t.r(c),t.d(c,{__assign:()=>u,__asyncDelegator:()=>T,__asyncGenerator:()=>R,__asyncValues:()=>A,__await:()=>P,__awaiter:()=>d,__classPrivateFieldGet:()=>W,__classPrivateFieldSet:()=>j,__createBinding:()=>g,__decorate:()=>l,__exportStar:()=>y,__extends:()=>s,__generator:()=>f,__importDefault:()=>_,__importStar:()=>K,__makeTemplateObject:()=>I,__metadata:()=>p,__param:()=>h,__read:()=>E,__rest:()=>v,__spread:()=>S,__spreadArray:()=>x,__spreadArrays:()=>w,__values:()=>b});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var i=function(re,X){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,J){Z.__proto__=J}||function(Z,J){for(var q in J)Object.prototype.hasOwnProperty.call(J,q)&&(Z[q]=J[q])},i(re,X)};function s(re,X){if(typeof X!="function"&&X!==null)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");i(re,X);function Z(){this.constructor=re}re.prototype=X===null?Object.create(X):(Z.prototype=X.prototype,new Z)}var u=function(){return u=Object.assign||function(X){for(var Z,J=1,q=arguments.length;J<q;J++){Z=arguments[J];for(var L in Z)Object.prototype.hasOwnProperty.call(Z,L)&&(X[L]=Z[L])}return X},u.apply(this,arguments)};function v(re,X){var Z={};for(var J in re)Object.prototype.hasOwnProperty.call(re,J)&&X.indexOf(J)<0&&(Z[J]=re[J]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,J=Object.getOwnPropertySymbols(re);q<J.length;q++)X.indexOf(J[q])<0&&Object.prototype.propertyIsEnumerable.call(re,J[q])&&(Z[J[q]]=re[J[q]]);return Z}function l(re,X,Z,J){var q=arguments.length,L=q<3?X:J===null?J=Object.getOwnPropertyDescriptor(X,Z):J,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(re,X,Z,J);else for(var k=re.length-1;k>=0;k--)($=re[k])&&(L=(q<3?$(L):q>3?$(X,Z,L):$(X,Z))||L);return q>3&&L&&Object.defineProperty(X,Z,L),L}function h(re,X){return function(Z,J){X(Z,J,re)}}function p(re,X){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(re,X)}function d(re,X,Z,J){function q(L){return L instanceof Z?L:new Z(function($){$(L)})}return new(Z||(Z=Promise))(function(L,$){function k(pe){try{V(J.next(pe))}catch(ce){$(ce)}}function F(pe){try{V(J.throw(pe))}catch(ce){$(ce)}}function V(pe){pe.done?L(pe.value):q(pe.value).then(k,F)}V((J=J.apply(re,X||[])).next())})}function f(re,X){var Z={label:0,sent:function(){if(L[0]&1)throw L[1];return L[1]},trys:[],ops:[]},J,q,L,$;return $={next:k(0),throw:k(1),return:k(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function k(V){return function(pe){return F([V,pe])}}function F(V){if(J)throw new TypeError("Generator is already executing.");for(;Z;)try{if(J=1,q&&(L=V[0]&2?q.return:V[0]?q.throw||((L=q.return)&&L.call(q),0):q.next)&&!(L=L.call(q,V[1])).done)return L;switch(q=0,L&&(V=[V[0]&2,L.value]),V[0]){case 0:case 1:L=V;break;case 4:return Z.label++,{value:V[1],done:!1};case 5:Z.label++,q=V[1],V=[0];continue;case 7:V=Z.ops.pop(),Z.trys.pop();continue;default:if(L=Z.trys,!(L=L.length>0&&L[L.length-1])&&(V[0]===6||V[0]===2)){Z=0;continue}if(V[0]===3&&(!L||V[1]>L[0]&&V[1]<L[3])){Z.label=V[1];break}if(V[0]===6&&Z.label<L[1]){Z.label=L[1],L=V;break}if(L&&Z.label<L[2]){Z.label=L[2],Z.ops.push(V);break}L[2]&&Z.ops.pop(),Z.trys.pop();continue}V=X.call(re,Z)}catch(pe){V=[6,pe],q=0}finally{J=L=0}if(V[0]&5)throw V[1];return{value:V[0]?V[1]:void 0,done:!0}}}var g=Object.create?function(re,X,Z,J){J===void 0&&(J=Z),Object.defineProperty(re,J,{enumerable:!0,get:function(){return X[Z]}})}:function(re,X,Z,J){J===void 0&&(J=Z),re[J]=X[Z]};function y(re,X){for(var Z in re)Z!=="default"&&!Object.prototype.hasOwnProperty.call(X,Z)&&g(X,re,Z)}function b(re){var X=typeof Symbol=="function"&&Symbol.iterator,Z=X&&re[X],J=0;if(Z)return Z.call(re);if(re&&typeof re.length=="number")return{next:function(){return re&&J>=re.length&&(re=void 0),{value:re&&re[J++],done:!re}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")}function E(re,X){var Z=typeof Symbol=="function"&&re[Symbol.iterator];if(!Z)return re;var J=Z.call(re),q,L=[],$;try{for(;(X===void 0||X-- >0)&&!(q=J.next()).done;)L.push(q.value)}catch(k){$={error:k}}finally{try{q&&!q.done&&(Z=J.return)&&Z.call(J)}finally{if($)throw $.error}}return L}function S(){for(var re=[],X=0;X<arguments.length;X++)re=re.concat(E(arguments[X]));return re}function w(){for(var re=0,X=0,Z=arguments.length;X<Z;X++)re+=arguments[X].length;for(var J=Array(re),q=0,X=0;X<Z;X++)for(var L=arguments[X],$=0,k=L.length;$<k;$++,q++)J[q]=L[$];return J}function x(re,X,Z){if(Z||arguments.length===2)for(var J=0,q=X.length,L;J<q;J++)(L||!(J in X))&&(L||(L=Array.prototype.slice.call(X,0,J)),L[J]=X[J]);return re.concat(L||Array.prototype.slice.call(X))}function P(re){return this instanceof P?(this.v=re,this):new P(re)}function R(re,X,Z){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var J=Z.apply(re,X||[]),q,L=[];return q={},$("next"),$("throw"),$("return"),q[Symbol.asyncIterator]=function(){return this},q;function $(G){J[G]&&(q[G]=function(te){return new Promise(function(ie,fe){L.push([G,te,ie,fe])>1||k(G,te)})})}function k(G,te){try{F(J[G](te))}catch(ie){ce(L[0][3],ie)}}function F(G){G.value instanceof P?Promise.resolve(G.value.v).then(V,pe):ce(L[0][2],G)}function V(G){k("next",G)}function pe(G){k("throw",G)}function ce(G,te){G(te),L.shift(),L.length&&k(L[0][0],L[0][1])}}function T(re){var X,Z;return X={},J("next"),J("throw",function(q){throw q}),J("return"),X[Symbol.iterator]=function(){return this},X;function J(q,L){X[q]=re[q]?function($){return(Z=!Z)?{value:P(re[q]($)),done:q==="return"}:L?L($):$}:L}}function A(re){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X=re[Symbol.asyncIterator],Z;return X?X.call(re):(re=typeof b=="function"?b(re):re[Symbol.iterator](),Z={},J("next"),J("throw"),J("return"),Z[Symbol.asyncIterator]=function(){return this},Z);function J(L){Z[L]=re[L]&&function($){return new Promise(function(k,F){$=re[L]($),q(k,F,$.done,$.value)})}}function q(L,$,k,F){Promise.resolve(F).then(function(V){L({value:V,done:k})},$)}}function I(re,X){return Object.defineProperty?Object.defineProperty(re,"raw",{value:X}):re.raw=X,re}var N=Object.create?function(re,X){Object.defineProperty(re,"default",{enumerable:!0,value:X})}:function(re,X){re.default=X};function K(re){if(re&&re.__esModule)return re;var X={};if(re!=null)for(var Z in re)Z!=="default"&&Object.prototype.hasOwnProperty.call(re,Z)&&g(X,re,Z);return N(X,re),X}function _(re){return re&&re.__esModule?re:{default:re}}function W(re,X,Z,J){if(Z==="a"&&!J)throw new TypeError("Private accessor was defined without a getter");if(typeof X=="function"?re!==X||!J:!X.has(re))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Z==="m"?J:Z==="a"?J.call(re):J?J.value:X.get(re)}function j(re,X,Z,J,q){if(J==="m")throw new TypeError("Private method is not writable");if(J==="a"&&!q)throw new TypeError("Private accessor was defined without a setter");if(typeof X=="function"?re!==X||!q:!X.has(re))throw new TypeError("Cannot write private member to an object whose class did not declare it");return J==="a"?q.call(re,Z):q?q.value=Z:X.set(re,Z),Z}},71140:(C,c,t)=>{"use strict";t.r(c),t.d(c,{__assign:()=>u,__asyncDelegator:()=>K,__asyncGenerator:()=>N,__asyncValues:()=>_,__await:()=>I,__awaiter:()=>b,__classPrivateFieldGet:()=>Z,__classPrivateFieldIn:()=>q,__classPrivateFieldSet:()=>J,__createBinding:()=>S,__decorate:()=>l,__esDecorate:()=>p,__exportStar:()=>w,__extends:()=>s,__generator:()=>E,__importDefault:()=>X,__importStar:()=>re,__makeTemplateObject:()=>W,__metadata:()=>y,__param:()=>h,__propKey:()=>f,__read:()=>P,__rest:()=>v,__runInitializers:()=>d,__setFunctionName:()=>g,__spread:()=>R,__spreadArray:()=>A,__spreadArrays:()=>T,__values:()=>x});var i=function(L,$){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,F){k.__proto__=F}||function(k,F){for(var V in F)Object.prototype.hasOwnProperty.call(F,V)&&(k[V]=F[V])},i(L,$)};function s(L,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");i(L,$);function k(){this.constructor=L}L.prototype=$===null?Object.create($):(k.prototype=$.prototype,new k)}var u=function(){return u=Object.assign||function($){for(var k,F=1,V=arguments.length;F<V;F++){k=arguments[F];for(var pe in k)Object.prototype.hasOwnProperty.call(k,pe)&&($[pe]=k[pe])}return $},u.apply(this,arguments)};function v(L,$){var k={};for(var F in L)Object.prototype.hasOwnProperty.call(L,F)&&$.indexOf(F)<0&&(k[F]=L[F]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,F=Object.getOwnPropertySymbols(L);V<F.length;V++)$.indexOf(F[V])<0&&Object.prototype.propertyIsEnumerable.call(L,F[V])&&(k[F[V]]=L[F[V]]);return k}function l(L,$,k,F){var V=arguments.length,pe=V<3?$:F===null?F=Object.getOwnPropertyDescriptor($,k):F,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(L,$,k,F);else for(var G=L.length-1;G>=0;G--)(ce=L[G])&&(pe=(V<3?ce(pe):V>3?ce($,k,pe):ce($,k))||pe);return V>3&&pe&&Object.defineProperty($,k,pe),pe}function h(L,$){return function(k,F){$(k,F,L)}}function p(L,$,k,F,V,pe){function ce(ht){if(ht!==void 0&&typeof ht!="function")throw new TypeError("Function expected");return ht}for(var G=F.kind,te=G==="getter"?"get":G==="setter"?"set":"value",ie=!$&&L?F.static?L:L.prototype:null,fe=$||(ie?Object.getOwnPropertyDescriptor(ie,F.name):{}),Se,he=!1,me=k.length-1;me>=0;me--){var _e={};for(var we in F)_e[we]=we==="access"?{}:F[we];for(var we in F.access)_e.access[we]=F.access[we];_e.addInitializer=function(ht){if(he)throw new TypeError("Cannot add initializers after decoration has completed");pe.push(ce(ht||null))};var Ge=(0,k[me])(G==="accessor"?{get:fe.get,set:fe.set}:fe[te],_e);if(G==="accessor"){if(Ge===void 0)continue;if(Ge===null||typeof Ge!="object")throw new TypeError("Object expected");(Se=ce(Ge.get))&&(fe.get=Se),(Se=ce(Ge.set))&&(fe.set=Se),(Se=ce(Ge.init))&&V.push(Se)}else(Se=ce(Ge))&&(G==="field"?V.push(Se):fe[te]=Se)}ie&&Object.defineProperty(ie,F.name,fe),he=!0}function d(L,$,k){for(var F=arguments.length>2,V=0;V<$.length;V++)k=F?$[V].call(L,k):$[V].call(L);return F?k:void 0}function f(L){return typeof L=="symbol"?L:"".concat(L)}function g(L,$,k){return typeof $=="symbol"&&($=$.description?"[".concat($.description,"]"):""),Object.defineProperty(L,"name",{configurable:!0,value:k?"".concat(k," ",$):$})}function y(L,$){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(L,$)}function b(L,$,k,F){function V(pe){return pe instanceof k?pe:new k(function(ce){ce(pe)})}return new(k||(k=Promise))(function(pe,ce){function G(fe){try{ie(F.next(fe))}catch(Se){ce(Se)}}function te(fe){try{ie(F.throw(fe))}catch(Se){ce(Se)}}function ie(fe){fe.done?pe(fe.value):V(fe.value).then(G,te)}ie((F=F.apply(L,$||[])).next())})}function E(L,$){var k={label:0,sent:function(){if(pe[0]&1)throw pe[1];return pe[1]},trys:[],ops:[]},F,V,pe,ce;return ce={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function G(ie){return function(fe){return te([ie,fe])}}function te(ie){if(F)throw new TypeError("Generator is already executing.");for(;ce&&(ce=0,ie[0]&&(k=0)),k;)try{if(F=1,V&&(pe=ie[0]&2?V.return:ie[0]?V.throw||((pe=V.return)&&pe.call(V),0):V.next)&&!(pe=pe.call(V,ie[1])).done)return pe;switch(V=0,pe&&(ie=[ie[0]&2,pe.value]),ie[0]){case 0:case 1:pe=ie;break;case 4:return k.label++,{value:ie[1],done:!1};case 5:k.label++,V=ie[1],ie=[0];continue;case 7:ie=k.ops.pop(),k.trys.pop();continue;default:if(pe=k.trys,!(pe=pe.length>0&&pe[pe.length-1])&&(ie[0]===6||ie[0]===2)){k=0;continue}if(ie[0]===3&&(!pe||ie[1]>pe[0]&&ie[1]<pe[3])){k.label=ie[1];break}if(ie[0]===6&&k.label<pe[1]){k.label=pe[1],pe=ie;break}if(pe&&k.label<pe[2]){k.label=pe[2],k.ops.push(ie);break}pe[2]&&k.ops.pop(),k.trys.pop();continue}ie=$.call(L,k)}catch(fe){ie=[6,fe],V=0}finally{F=pe=0}if(ie[0]&5)throw ie[1];return{value:ie[0]?ie[1]:void 0,done:!0}}}var S=Object.create?function(L,$,k,F){F===void 0&&(F=k);var V=Object.getOwnPropertyDescriptor($,k);(!V||("get"in V?!$.__esModule:V.writable||V.configurable))&&(V={enumerable:!0,get:function(){return $[k]}}),Object.defineProperty(L,F,V)}:function(L,$,k,F){F===void 0&&(F=k),L[F]=$[k]};function w(L,$){for(var k in L)k!=="default"&&!Object.prototype.hasOwnProperty.call($,k)&&S($,L,k)}function x(L){var $=typeof Symbol=="function"&&Symbol.iterator,k=$&&L[$],F=0;if(k)return k.call(L);if(L&&typeof L.length=="number")return{next:function(){return L&&F>=L.length&&(L=void 0),{value:L&&L[F++],done:!L}}};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")}function P(L,$){var k=typeof Symbol=="function"&&L[Symbol.iterator];if(!k)return L;var F=k.call(L),V,pe=[],ce;try{for(;($===void 0||$-- >0)&&!(V=F.next()).done;)pe.push(V.value)}catch(G){ce={error:G}}finally{try{V&&!V.done&&(k=F.return)&&k.call(F)}finally{if(ce)throw ce.error}}return pe}function R(){for(var L=[],$=0;$<arguments.length;$++)L=L.concat(P(arguments[$]));return L}function T(){for(var L=0,$=0,k=arguments.length;$<k;$++)L+=arguments[$].length;for(var F=Array(L),V=0,$=0;$<k;$++)for(var pe=arguments[$],ce=0,G=pe.length;ce<G;ce++,V++)F[V]=pe[ce];return F}function A(L,$,k){if(k||arguments.length===2)for(var F=0,V=$.length,pe;F<V;F++)(pe||!(F in $))&&(pe||(pe=Array.prototype.slice.call($,0,F)),pe[F]=$[F]);return L.concat(pe||Array.prototype.slice.call($))}function I(L){return this instanceof I?(this.v=L,this):new I(L)}function N(L,$,k){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var F=k.apply(L,$||[]),V,pe=[];return V={},ce("next"),ce("throw"),ce("return"),V[Symbol.asyncIterator]=function(){return this},V;function ce(he){F[he]&&(V[he]=function(me){return new Promise(function(_e,we){pe.push([he,me,_e,we])>1||G(he,me)})})}function G(he,me){try{te(F[he](me))}catch(_e){Se(pe[0][3],_e)}}function te(he){he.value instanceof I?Promise.resolve(he.value.v).then(ie,fe):Se(pe[0][2],he)}function ie(he){G("next",he)}function fe(he){G("throw",he)}function Se(he,me){he(me),pe.shift(),pe.length&&G(pe[0][0],pe[0][1])}}function K(L){var $,k;return $={},F("next"),F("throw",function(V){throw V}),F("return"),$[Symbol.iterator]=function(){return this},$;function F(V,pe){$[V]=L[V]?function(ce){return(k=!k)?{value:I(L[V](ce)),done:!1}:pe?pe(ce):ce}:pe}}function _(L){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $=L[Symbol.asyncIterator],k;return $?$.call(L):(L=typeof x=="function"?x(L):L[Symbol.iterator](),k={},F("next"),F("throw"),F("return"),k[Symbol.asyncIterator]=function(){return this},k);function F(pe){k[pe]=L[pe]&&function(ce){return new Promise(function(G,te){ce=L[pe](ce),V(G,te,ce.done,ce.value)})}}function V(pe,ce,G,te){Promise.resolve(te).then(function(ie){pe({value:ie,done:G})},ce)}}function W(L,$){return Object.defineProperty?Object.defineProperty(L,"raw",{value:$}):L.raw=$,L}var j=Object.create?function(L,$){Object.defineProperty(L,"default",{enumerable:!0,value:$})}:function(L,$){L.default=$};function re(L){if(L&&L.__esModule)return L;var $={};if(L!=null)for(var k in L)k!=="default"&&Object.prototype.hasOwnProperty.call(L,k)&&S($,L,k);return j($,L),$}function X(L){return L&&L.__esModule?L:{default:L}}function Z(L,$,k,F){if(k==="a"&&!F)throw new TypeError("Private accessor was defined without a getter");if(typeof $=="function"?L!==$||!F:!$.has(L))throw new TypeError("Cannot read private member from an object whose class did not declare it");return k==="m"?F:k==="a"?F.call(L):F?F.value:$.get(L)}function J(L,$,k,F,V){if(F==="m")throw new TypeError("Private method is not writable");if(F==="a"&&!V)throw new TypeError("Private accessor was defined without a setter");if(typeof $=="function"?L!==$||!V:!$.has(L))throw new TypeError("Cannot write private member to an object whose class did not declare it");return F==="a"?V.call(L,k):V?V.value=k:$.set(L,k),k}function q(L,$){if($===null||typeof $!="object"&&typeof $!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof L=="function"?$===L:L.has($)}},22036:function(C,c,t){var i;(function(s,u){"use strict";var v="1.0.33",l="",h="?",p="function",d="undefined",f="object",g="string",y="major",b="model",E="name",S="type",w="vendor",x="version",P="architecture",R="console",T="mobile",A="tablet",I="smarttv",N="wearable",K="embedded",_=350,W="Amazon",j="Apple",re="ASUS",X="BlackBerry",Z="Browser",J="Chrome",q="Edge",L="Firefox",$="Google",k="Huawei",F="LG",V="Microsoft",pe="Motorola",ce="Opera",G="Samsung",te="Sharp",ie="Sony",fe="Xiaomi",Se="Zebra",he="Facebook",me=function(It,Ce){var Ae={};for(var $e in It)Ce[$e]&&Ce[$e].length%2===0?Ae[$e]=Ce[$e].concat(It[$e]):Ae[$e]=It[$e];return Ae},_e=function(It){for(var Ce={},Ae=0;Ae<It.length;Ae++)Ce[It[Ae].toUpperCase()]=It[Ae];return Ce},we=function(It,Ce){return typeof It===g?Ge(Ce).indexOf(Ge(It))!==-1:!1},Ge=function(It){return It.toLowerCase()},ht=function(It){return typeof It===g?It.replace(/[^\d\.]/g,l).split(".")[0]:u},nt=function(It,Ce){if(typeof It===g)return It=It.replace(/^\s\s*/,l),typeof Ce===d?It:It.substring(0,_)},Re=function(It,Ce){for(var Ae=0,$e,tt,ke,Oe,je,Et;Ae<Ce.length&&!je;){var ct=Ce[Ae],ut=Ce[Ae+1];for($e=tt=0;$e<ct.length&&!je;)if(je=ct[$e++].exec(It),je)for(ke=0;ke<ut.length;ke++)Et=je[++tt],Oe=ut[ke],typeof Oe===f&&Oe.length>0?Oe.length===2?typeof Oe[1]==p?this[Oe[0]]=Oe[1].call(this,Et):this[Oe[0]]=Oe[1]:Oe.length===3?typeof Oe[1]===p&&!(Oe[1].exec&&Oe[1].test)?this[Oe[0]]=Et?Oe[1].call(this,Et,Oe[2]):u:this[Oe[0]]=Et?Et.replace(Oe[1],Oe[2]):u:Oe.length===4&&(this[Oe[0]]=Et?Oe[3].call(this,Et.replace(Oe[1],Oe[2])):u):this[Oe]=Et||u;Ae+=2}},ue=function(It,Ce){for(var Ae in Ce)if(typeof Ce[Ae]===f&&Ce[Ae].length>0){for(var $e=0;$e<Ce[Ae].length;$e++)if(we(Ce[Ae][$e],It))return Ae===h?u:Ae}else if(we(Ce[Ae],It))return Ae===h?u:Ae;return It},ae={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},ve={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Me={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[x,[E,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[x,[E,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[E,x],[/opios[\/ ]+([\w\.]+)/i],[x,[E,ce+" Mini"]],[/\bopr\/([\w\.]+)/i],[x,[E,ce]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[E,x],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[x,[E,"UC"+Z]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[x,[E,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[x,[E,"WeChat"]],[/konqueror\/([\w\.]+)/i],[x,[E,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[x,[E,"IE"]],[/yabrowser\/([\w\.]+)/i],[x,[E,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[E,/(.+)/,"$1 Secure "+Z],x],[/\bfocus\/([\w\.]+)/i],[x,[E,L+" Focus"]],[/\bopt\/([\w\.]+)/i],[x,[E,ce+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[x,[E,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[x,[E,"Dolphin"]],[/coast\/([\w\.]+)/i],[x,[E,ce+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[x,[E,"MIUI "+Z]],[/fxios\/([-\w\.]+)/i],[x,[E,L]],[/\bqihu|(qi?ho?o?|360)browser/i],[[E,"360 "+Z]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[E,/(.+)/,"$1 "+Z],x],[/(comodo_dragon)\/([\w\.]+)/i],[[E,/_/g," "],x],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[E,x],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[E],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[E,he],x],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[E,x],[/\bgsa\/([\w\.]+) .*safari\//i],[x,[E,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[x,[E,J+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[E,J+" WebView"],x],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[x,[E,"Android "+Z]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[E,x],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[x,[E,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[x,E],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[E,[x,ue,ae]],[/(webkit|khtml)\/([\w\.]+)/i],[E,x],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[E,"Netscape"],x],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[x,[E,L+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[E,x],[/(cobalt)\/([\w\.]+)/i],[E,[x,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[P,"amd64"]],[/(ia32(?=;))/i],[[P,Ge]],[/((?:i[346]|x)86)[;\)]/i],[[P,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[P,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[P,"armhf"]],[/windows (ce|mobile); ppc;/i],[[P,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[P,/ower/,l,Ge]],[/(sun4\w)[;\)]/i],[[P,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[P,Ge]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[b,[w,G],[S,A]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[b,[w,G],[S,T]],[/\((ip(?:hone|od)[\w ]*);/i],[b,[w,j],[S,T]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[b,[w,j],[S,A]],[/(macintosh);/i],[b,[w,j]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[b,[w,k],[S,A]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[b,[w,k],[S,T]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[b,/_/g," "],[w,fe],[S,T]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[b,/_/g," "],[w,fe],[S,A]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[b,[w,"OPPO"],[S,T]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[b,[w,"Vivo"],[S,T]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[b,[w,"Realme"],[S,T]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[b,[w,pe],[S,T]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[b,[w,pe],[S,A]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[b,[w,F],[S,A]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[b,[w,F],[S,T]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[b,[w,"Lenovo"],[S,A]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[b,/_/g," "],[w,"Nokia"],[S,T]],[/(pixel c)\b/i],[b,[w,$],[S,A]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[b,[w,$],[S,T]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[b,[w,ie],[S,T]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[b,"Xperia Tablet"],[w,ie],[S,A]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[b,[w,"OnePlus"],[S,T]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[b,[w,W],[S,A]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[b,/(.+)/g,"Fire Phone $1"],[w,W],[S,T]],[/(playbook);[-\w\),; ]+(rim)/i],[b,w,[S,A]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[b,[w,X],[S,T]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[b,[w,re],[S,A]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[b,[w,re],[S,T]],[/(nexus 9)/i],[b,[w,"HTC"],[S,A]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[w,[b,/_/g," "],[S,T]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[b,[w,"Acer"],[S,A]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[b,[w,"Meizu"],[S,T]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[b,[w,te],[S,T]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[w,b,[S,T]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[w,b,[S,A]],[/(surface duo)/i],[b,[w,V],[S,A]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[b,[w,"Fairphone"],[S,T]],[/(u304aa)/i],[b,[w,"AT&T"],[S,T]],[/\bsie-(\w*)/i],[b,[w,"Siemens"],[S,T]],[/\b(rct\w+) b/i],[b,[w,"RCA"],[S,A]],[/\b(venue[\d ]{2,7}) b/i],[b,[w,"Dell"],[S,A]],[/\b(q(?:mv|ta)\w+) b/i],[b,[w,"Verizon"],[S,A]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[b,[w,"Barnes & Noble"],[S,A]],[/\b(tm\d{3}\w+) b/i],[b,[w,"NuVision"],[S,A]],[/\b(k88) b/i],[b,[w,"ZTE"],[S,A]],[/\b(nx\d{3}j) b/i],[b,[w,"ZTE"],[S,T]],[/\b(gen\d{3}) b.+49h/i],[b,[w,"Swiss"],[S,T]],[/\b(zur\d{3}) b/i],[b,[w,"Swiss"],[S,A]],[/\b((zeki)?tb.*\b) b/i],[b,[w,"Zeki"],[S,A]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[w,"Dragon Touch"],b,[S,A]],[/\b(ns-?\w{0,9}) b/i],[b,[w,"Insignia"],[S,A]],[/\b((nxa|next)-?\w{0,9}) b/i],[b,[w,"NextBook"],[S,A]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[w,"Voice"],b,[S,T]],[/\b(lvtel\-)?(v1[12]) b/i],[[w,"LvTel"],b,[S,T]],[/\b(ph-1) /i],[b,[w,"Essential"],[S,T]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[b,[w,"Envizen"],[S,A]],[/\b(trio[-\w\. ]+) b/i],[b,[w,"MachSpeed"],[S,A]],[/\btu_(1491) b/i],[b,[w,"Rotor"],[S,A]],[/(shield[\w ]+) b/i],[b,[w,"Nvidia"],[S,A]],[/(sprint) (\w+)/i],[w,b,[S,T]],[/(kin\.[onetw]{3})/i],[[b,/\./g," "],[w,V],[S,T]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[b,[w,Se],[S,A]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[b,[w,Se],[S,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[w,b,[S,R]],[/droid.+; (shield) bui/i],[b,[w,"Nvidia"],[S,R]],[/(playstation [345portablevi]+)/i],[b,[w,ie],[S,R]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[b,[w,V],[S,R]],[/smart-tv.+(samsung)/i],[w,[S,I]],[/hbbtv.+maple;(\d+)/i],[[b,/^/,"SmartTV"],[w,G],[S,I]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[w,F],[S,I]],[/(apple) ?tv/i],[w,[b,j+" TV"],[S,I]],[/crkey/i],[[b,J+"cast"],[w,$],[S,I]],[/droid.+aft(\w)( bui|\))/i],[b,[w,W],[S,I]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[b,[w,te],[S,I]],[/(bravia[\w ]+)( bui|\))/i],[b,[w,ie],[S,I]],[/(mitv-\w{5}) bui/i],[b,[w,fe],[S,I]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[w,nt],[b,nt],[S,I]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[S,I]],[/((pebble))app/i],[w,b,[S,N]],[/droid.+; (glass) \d/i],[b,[w,$],[S,N]],[/droid.+; (wt63?0{2,3})\)/i],[b,[w,Se],[S,N]],[/(quest( 2)?)/i],[b,[w,he],[S,N]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[w,[S,K]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[b,[S,T]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[b,[S,A]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[S,A]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[S,T]],[/(android[-\w\. ]{0,9});.+buil/i],[b,[w,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[x,[E,q+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[x,[E,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[E,x],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[x,E]],os:[[/microsoft (windows) (vista|xp)/i],[E,x],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[E,[x,ue,ve]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[E,"Windows"],[x,ue,ve]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[x,/_/g,"."],[E,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[E,"Mac OS"],[x,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[x,E],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[E,x],[/\(bb(10);/i],[x,[E,X]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[x,[E,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[x,[E,L+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[x,[E,"webOS"]],[/crkey\/([\d\.]+)/i],[x,[E,J+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[E,"Chromium OS"],x],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[E,x],[/(sunos) ?([\w\.\d]*)/i],[[E,"Solaris"],x],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[E,x]]},Ye=function(It,Ce){if(typeof It===f&&(Ce=It,It=u),!(this instanceof Ye))return new Ye(It,Ce).getResult();var Ae=It||(typeof s!==d&&s.navigator&&s.navigator.userAgent?s.navigator.userAgent:l),$e=Ce?me(Me,Ce):Me;return this.getBrowser=function(){var tt={};return tt[E]=u,tt[x]=u,Re.call(tt,Ae,$e.browser),tt.major=ht(tt.version),tt},this.getCPU=function(){var tt={};return tt[P]=u,Re.call(tt,Ae,$e.cpu),tt},this.getDevice=function(){var tt={};return tt[w]=u,tt[b]=u,tt[S]=u,Re.call(tt,Ae,$e.device),tt},this.getEngine=function(){var tt={};return tt[E]=u,tt[x]=u,Re.call(tt,Ae,$e.engine),tt},this.getOS=function(){var tt={};return tt[E]=u,tt[x]=u,Re.call(tt,Ae,$e.os),tt},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Ae},this.setUA=function(tt){return Ae=typeof tt===g&&tt.length>_?nt(tt,_):tt,this},this.setUA(Ae),this};Ye.VERSION=v,Ye.BROWSER=_e([E,x,y]),Ye.CPU=_e([P]),Ye.DEVICE=_e([b,w,S,R,T,I,A,N,K]),Ye.ENGINE=Ye.OS=_e([E,x]),typeof c!==d?(d!=="object"&&C.exports&&(c=C.exports=Ye),c.UAParser=Ye):p==="function"&&t.amdO?(i=function(){return Ye}.call(c,t,c,C),i!==u&&(C.exports=i)):typeof s!==d&&(s.UAParser=Ye);var qe=typeof s!==d&&(s.jQuery||s.Zepto);if(qe&&!qe.ua){var At=new Ye;qe.ua=At.getResult(),qe.ua.get=function(){return At.getUA()},qe.ua.set=function(It){At.setUA(It);var Ce=At.getResult();for(var Ae in Ce)qe.ua[Ae]=Ce[Ae]}}})(typeof window=="object"?window:this)},26712:(C,c,t)=>{"use strict";t.d(c,{Z:()=>Hi});const i=!0,s="u-",u="uplot",v=s+"hz",l=s+"vt",h=s+"title",p=s+"wrap",d=s+"under",f=s+"over",g=s+"axis",y=s+"off",b=s+"select",E=s+"cursor-x",S=s+"cursor-y",w=s+"cursor-pt",x=s+"legend",P=s+"live",R=s+"inline",T=s+"thead",A=s+"series",I=s+"marker",N=s+"label",K=s+"value",_="width",W="height",j="top",re="bottom",X="left",Z="right",J="#000",q=J+"0",L="mousemove",$="mousedown",k="mouseup",F="mouseenter",V="mouseleave",pe="dblclick",ce="resize",G="scroll",te="change",ie="dppxchange",fe="--",Se=typeof window<"u",he=Se?document:null,me=Se?window:null,_e=Se?navigator:null;let we,Ge;function ht(){let jt=devicePixelRatio;we!=jt&&(we=jt,Ge&&ke(te,Ge,ht),Ge=matchMedia(`(min-resolution: ${we-.001}dppx) and (max-resolution: ${we+.001}dppx)`),tt(te,Ge,ht),me.dispatchEvent(new CustomEvent(ie)))}function nt(jt,$n){if($n!=null){let pn=jt.classList;!pn.contains($n)&&pn.add($n)}}function Re(jt,$n){let pn=jt.classList;pn.contains($n)&&pn.remove($n)}function ue(jt,$n,pn){jt.style[$n]=pn+"px"}function ae(jt,$n,pn,ee){let oe=he.createElement(jt);return $n!=null&&nt(oe,$n),pn?.insertBefore(oe,ee),oe}function ve(jt,$n){return ae("div",jt,$n)}const Me=new WeakMap;function Ye(jt,$n,pn,ee,oe){let De="translate("+$n+"px,"+pn+"px)",Be=Me.get(jt);De!=Be&&(jt.style.transform=De,Me.set(jt,De),$n<0||pn<0||$n>ee||pn>oe?nt(jt,y):Re(jt,y))}const qe=new WeakMap;function At(jt,$n,pn){let ee=$n+pn,oe=qe.get(jt);ee!=oe&&(qe.set(jt,ee),jt.style.background=$n,jt.style.borderColor=pn)}const It=new WeakMap;function Ce(jt,$n,pn,ee){let oe=$n+""+pn,De=It.get(jt);oe!=De&&(It.set(jt,oe),jt.style.height=pn+"px",jt.style.width=$n+"px",jt.style.marginLeft=ee?-$n/2+"px":0,jt.style.marginTop=ee?-pn/2+"px":0)}const Ae={passive:!0},$e={...Ae,capture:!0};function tt(jt,$n,pn,ee){$n.addEventListener(jt,pn,ee?$e:Ae)}function ke(jt,$n,pn,ee){$n.removeEventListener(jt,pn,ee?$e:Ae)}Se&&ht();function Oe(jt,$n,pn,ee){let oe;pn=pn||0,ee=ee||$n.length-1;let De=ee<=2147483647;for(;ee-pn>1;)oe=De?pn+ee>>1:Xt((pn+ee)/2),$n[oe]<jt?pn=oe:ee=oe;return jt-$n[pn]<=$n[ee]-jt?pn:ee}function je(jt,$n,pn,ee){for(let oe=ee==1?$n:pn;oe>=$n&&oe<=pn;oe+=ee)if(jt[oe]!=null)return oe;return-1}function Et(jt,$n,pn,ee){let oe=Ut,De=-Ut;if(ee==1)oe=jt[$n],De=jt[pn];else if(ee==-1)oe=jt[pn],De=jt[$n];else for(let Be=$n;Be<=pn;Be++)jt[Be]!=null&&(oe=rn(oe,jt[Be]),De=sn(De,jt[Be]));return[oe,De]}function ct(jt,$n,pn){let ee=Ut,oe=-Ut;for(let De=$n;De<=pn;De++)jt[De]>0&&(ee=rn(ee,jt[De]),oe=sn(oe,jt[De]));return[ee==Ut?1:ee,oe==-Ut?10:oe]}function ut(jt,$n,pn,ee){let oe=ze(jt),De=ze($n),Be=pn==10?st:en;jt==$n&&(oe==-1?(jt*=pn,$n/=pn):(jt/=pn,$n*=pn));let gt=oe==1?Xt:Rt,Ht=De==1?Rt:Xt,nn=gt(Be(at(jt))),Rn=Ht(Be(at($n))),Yn=Jn(pn,nn),gr=Jn(pn,Rn);return pn==10&&(nn<0&&(Yn=mn(Yn,-nn)),Rn<0&&(gr=mn(gr,-Rn))),ee||pn==2?(jt=Yn*oe,$n=gr*De):(jt=dn(jt,Yn),$n=Tt($n,gr)),[jt,$n]}function Ne(jt,$n,pn,ee){let oe=ut(jt,$n,pn,ee);return jt==0&&(oe[0]=0),$n==0&&(oe[1]=0),oe}const mt=.1,bt={mode:3,pad:mt},Gt={pad:0,soft:null,mode:0},hn={min:Gt,max:Gt};function Yt(jt,$n,pn,ee){return Ni(pn)?zt(jt,$n,pn):(Gt.pad=pn,Gt.soft=ee?0:null,Gt.mode=ee?3:0,zt(jt,$n,hn))}function Bt(jt,$n){return jt??$n}function Lt(jt,$n,pn){for($n=Bt($n,0),pn=Bt(pn,jt.length-1);$n<=pn;){if(jt[$n]!=null)return!0;$n++}return!1}function zt(jt,$n,pn){let ee=pn.min,oe=pn.max,De=Bt(ee.pad,0),Be=Bt(oe.pad,0),gt=Bt(ee.hard,-Ut),Ht=Bt(oe.hard,Ut),nn=Bt(ee.soft,Ut),Rn=Bt(oe.soft,-Ut),Yn=Bt(ee.mode,0),gr=Bt(oe.mode,0),Ai=$n-jt,$i=st(Ai),ma=sn(at(jt),at($n)),La=st(ma),Qa=at(La-$i);(Ai<1e-9||Qa>10)&&(Ai=0,(jt==0||$n==0)&&(Ai=1e-9,Yn==2&&nn!=Ut&&(De=0),gr==2&&Rn!=-Ut&&(Be=0)));let go=Ai||ma||1e3,Ao=st(go),Fo=Jn(10,Xt(Ao)),Ho=go*(Ai==0?jt==0?.1:1:De),eu=mn(dn(jt-Ho,Fo/10),9),ks=jt>=nn&&(Yn==1||Yn==3&&eu<=nn||Yn==2&&eu>=nn)?nn:Ut,Gu=sn(gt,eu<ks&&jt>=ks?ks:rn(ks,eu)),an=go*(Ai==0?$n==0?.1:1:Be),Nn=mn(Tt($n+an,Fo/10),9),tr=$n<=Rn&&(gr==1||gr==3&&Nn>=Rn||gr==2&&Nn<=Rn)?Rn:-Ut,In=rn(Ht,Nn>tr&&$n<=tr?tr:sn(tr,Nn));return Gu==In&&Gu==0&&(In=100),[Gu,In]}const Kt=new Intl.NumberFormat(Se?_e.language:"en-US"),vt=jt=>Kt.format(jt),Ve=Math,lt=Ve.PI,at=Ve.abs,Xt=Ve.floor,rt=Ve.round,Rt=Ve.ceil,rn=Ve.min,sn=Ve.max,Jn=Ve.pow,ze=Ve.sign,st=Ve.log10,en=Ve.log2,wt=(jt,$n=1)=>Ve.sinh(jt)*$n,Ke=(jt,$n=1)=>Ve.asinh(jt/$n),Ut=1/0;function on(jt){return(st((jt^jt>>31)-(jt>>31))|0)+1}function Tn(jt,$n,pn){return rn(sn(jt,$n),pn)}function An(jt){return typeof jt=="function"?jt:()=>jt}const Zt=()=>{},ot=jt=>jt,We=(jt,$n)=>$n,Ft=jt=>null,it=jt=>!0,qt=(jt,$n)=>jt==$n,vn=jt=>mn(jt,14);function fn(jt,$n){return vn(mn(vn(jt/$n))*$n)}function Tt(jt,$n){return vn(Rt(vn(jt/$n))*$n)}function dn(jt,$n){return vn(Xt(vn(jt/$n))*$n)}function mn(jt,$n=0){if(si(jt))return jt;let pn=10**$n,ee=jt*pn*(1+Number.EPSILON);return rt(ee)/pn}const Kn=new Map;function Dn(jt){return((""+jt).split(".")[1]||"").length}function Vn(jt,$n,pn,ee){let oe=[],De=ee.map(Dn);for(let Be=$n;Be<pn;Be++){let gt=at(Be),Ht=mn(Jn(jt,Be),gt);for(let nn=0;nn<ee.length;nn++){let Rn=ee[nn]*Ht,Yn=(Rn>=0&&Be>=0?0:gt)+(Be>=De[nn]?0:De[nn]),gr=mn(Rn,Yn);oe.push(gr),Kn.set(gr,Yn)}}return oe}const or={},Qr=[],ni=[null,null],yr=Array.isArray,si=Number.isInteger,Yr=jt=>jt===void 0;function Ci(jt){return typeof jt=="string"}function Ni(jt){let $n=!1;if(jt!=null){let pn=jt.constructor;$n=pn==null||pn==Object}return $n}function fa(jt){return jt!=null&&typeof jt=="object"}const ha=Object.getPrototypeOf(Uint8Array);function Ca(jt,$n=Ni){let pn;if(yr(jt)){let ee=jt.find(oe=>oe!=null);if(yr(ee)||$n(ee)){pn=Array(jt.length);for(let oe=0;oe<jt.length;oe++)pn[oe]=Ca(jt[oe],$n)}else pn=jt.slice()}else if(jt instanceof ha)pn=jt.slice();else if($n(jt)){pn={};for(let ee in jt)pn[ee]=Ca(jt[ee],$n)}else pn=jt;return pn}function li(jt){let $n=arguments;for(let pn=1;pn<$n.length;pn++){let ee=$n[pn];for(let oe in ee)Ni(jt[oe])?li(jt[oe],Ca(ee[oe])):jt[oe]=Ca(ee[oe])}return jt}const la=0,Oa=1,wa=2;function vo(jt,$n,pn){for(let ee=0,oe,De=-1;ee<$n.length;ee++){let Be=$n[ee];if(Be>De){for(oe=Be-1;oe>=0&&jt[oe]==null;)jt[oe--]=null;for(oe=Be+1;oe<pn&&jt[oe]==null;)jt[De=oe++]=null}}}function Qn(jt,$n){let pn=new Set;for(let Be=0;Be<jt.length;Be++){let Ht=jt[Be][0],nn=Ht.length;for(let Rn=0;Rn<nn;Rn++)pn.add(Ht[Rn])}let ee=[Array.from(pn).sort((Be,gt)=>Be-gt)],oe=ee[0].length,De=new Map;for(let Be=0;Be<oe;Be++)De.set(ee[0][Be],Be);for(let Be=0;Be<jt.length;Be++){let gt=jt[Be],Ht=gt[0];for(let nn=1;nn<gt.length;nn++){let Rn=gt[nn],Yn=Array(oe).fill(void 0),gr=$n?$n[Be][nn]:Oa,Ai=[];for(let $i=0;$i<Rn.length;$i++){let ma=Rn[$i],La=De.get(Ht[$i]);ma===null?gr!=la&&(Yn[La]=ma,gr==wa&&Ai.push(La)):Yn[La]=ma}vo(Yn,Ai,oe),ee.push(Yn)}}return ee}const _r=typeof queueMicrotask>"u"?jt=>Promise.resolve().then(jt):queueMicrotask,$r=["January","February","March","April","May","June","July","August","September","October","November","December"],Ti=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function xt(jt){return jt.slice(0,3)}const On=Ti.map(xt),Zn=$r.map(xt),Ur={MMMM:$r,MMM:Zn,WWWW:Ti,WWW:On};function En(jt){return(jt<10?"0":"")+jt}function ln(jt){return(jt<10?"00":jt<100?"0":"")+jt}const jn={YYYY:jt=>jt.getFullYear(),YY:jt=>(jt.getFullYear()+"").slice(2),MMMM:(jt,$n)=>$n.MMMM[jt.getMonth()],MMM:(jt,$n)=>$n.MMM[jt.getMonth()],MM:jt=>En(jt.getMonth()+1),M:jt=>jt.getMonth()+1,DD:jt=>En(jt.getDate()),D:jt=>jt.getDate(),WWWW:(jt,$n)=>$n.WWWW[jt.getDay()],WWW:(jt,$n)=>$n.WWW[jt.getDay()],HH:jt=>En(jt.getHours()),H:jt=>jt.getHours(),h:jt=>{let $n=jt.getHours();return $n==0?12:$n>12?$n-12:$n},AA:jt=>jt.getHours()>=12?"PM":"AM",aa:jt=>jt.getHours()>=12?"pm":"am",a:jt=>jt.getHours()>=12?"p":"a",mm:jt=>En(jt.getMinutes()),m:jt=>jt.getMinutes(),ss:jt=>En(jt.getSeconds()),s:jt=>jt.getSeconds(),fff:jt=>ln(jt.getMilliseconds())};function rr(jt,$n){$n=$n||Ur;let pn=[],ee=/\{([a-z]+)\}|[^{]+/gi,oe;for(;oe=ee.exec(jt);)pn.push(oe[0][0]=="{"?jn[oe[1]]:oe[0]);return De=>{let Be="";for(let gt=0;gt<pn.length;gt++)Be+=typeof pn[gt]=="string"?pn[gt]:pn[gt](De,$n);return Be}}const Mr=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Ir(jt,$n){let pn;return $n=="UTC"||$n=="Etc/UTC"?pn=new Date(+jt+jt.getTimezoneOffset()*6e4):$n==Mr?pn=jt:(pn=new Date(jt.toLocaleString("en-US",{timeZone:$n})),pn.setMilliseconds(jt.getMilliseconds())),pn}const Zr=jt=>jt%1==0,lr=[1,2,2.5,5],Jr=Vn(10,-16,0,lr),pi=Vn(10,0,16,lr),Ri=pi.filter(Zr),Ki=Jr.concat(pi),ia=` `,Da="{YYYY}",to=ia+Da,ao="{M}/{D}",Bo=ia+ao,jo=Bo+"/{YY}",Jo="{aa}",wr="{h}:{mm}"+Jo,qi=ia+wr,ja=":{ss}",uo=null;function wi(jt){let $n=jt*1e3,pn=$n*60,ee=pn*60,oe=ee*24,De=oe*30,Be=oe*365,Ht=(jt==1?Vn(10,0,3,lr).filter(Zr):Vn(10,-3,0,lr)).concat([$n,$n*5,$n*10,$n*15,$n*30,pn,pn*5,pn*10,pn*15,pn*30,ee,ee*2,ee*3,ee*4,ee*6,ee*8,ee*12,oe,oe*2,oe*3,oe*4,oe*5,oe*6,oe*7,oe*8,oe*9,oe*10,oe*15,De,De*2,De*3,De*4,De*6,Be,Be*2,Be*5,Be*10,Be*25,Be*50,Be*100]);const nn=[[Be,Da,uo,uo,uo,uo,uo,uo,1],[oe*28,"{MMM}",to,uo,uo,uo,uo,uo,1],[oe,ao,to,uo,uo,uo,uo,uo,1],[ee,"{h}"+Jo,jo,uo,Bo,uo,uo,uo,1],[pn,wr,jo,uo,Bo,uo,uo,uo,1],[$n,ja,jo+" "+wr,uo,Bo+" "+wr,uo,qi,uo,1],[jt,ja+".{fff}",jo+" "+wr,uo,Bo+" "+wr,uo,qi,uo,1]];function Rn(Yn){return(gr,Ai,$i,ma,La,Qa)=>{let go=[],Ao=La>=Be,Fo=La>=De&&La<Be,Ho=Yn($i),eu=mn(Ho*jt,3),ks=Ya(Ho.getFullYear(),Ao?0:Ho.getMonth(),Fo||Ao?1:Ho.getDate()),Gu=mn(ks*jt,3);if(Fo||Ao){let an=Fo?La/De:0,Nn=Ao?La/Be:0,tr=eu==Gu?eu:mn(Ya(ks.getFullYear()+Nn,ks.getMonth()+an,1)*jt,3),In=new Date(rt(tr/jt)),di=In.getFullYear(),oi=In.getMonth();for(let ki=0;tr<=ma;ki++){let ri=Ya(di+Nn*ki,oi+an*ki,1),bi=ri-Yn(mn(ri*jt,3));tr=mn((+ri+bi)*jt,3),tr<=ma&&go.push(tr)}}else{let an=La>=oe?oe:La,Nn=Xt($i)-Xt(eu),tr=Gu+Nn+Tt(eu-Gu,an);go.push(tr);let In=Yn(tr),di=In.getHours()+In.getMinutes()/pn+In.getSeconds()/ee,oi=La/ee,ki=gr.axes[Ai]._space,ri=Qa/ki;for(;tr=mn(tr+La,jt==1?0:3),!(tr>ma);)if(oi>1){let bi=Xt(mn(di+oi,6))%24,va=Yn(tr).getHours()-bi;va>1&&(va=-1),tr-=va*ee,di=(di+oi)%24;let Va=go[go.length-1];mn((tr-Va)/La,3)*ri>=.7&&go.push(tr)}else go.push(tr)}return go}}return[Ht,nn,Rn]}const[ai,za,Mt]=wi(1),[Gn,qn,Fr]=wi(.001);Vn(2,-53,53,[1]);function Ei(jt,$n){return jt.map(pn=>pn.map((ee,oe)=>oe==0||oe==8||ee==null?ee:$n(oe==1||pn[8]==0?ee:pn[1]+ee)))}function ii(jt,$n){return(pn,ee,oe,De,Be)=>{let gt=$n.find($i=>Be>=$i[0])||$n[$n.length-1],Ht,nn,Rn,Yn,gr,Ai;return ee.map($i=>{let ma=jt($i),La=ma.getFullYear(),Qa=ma.getMonth(),go=ma.getDate(),Ao=ma.getHours(),Fo=ma.getMinutes(),Ho=ma.getSeconds(),eu=La!=Ht&>[2]||Qa!=nn&>[3]||go!=Rn&>[4]||Ao!=Yn&>[5]||Fo!=gr&>[6]||Ho!=Ai&>[7]||gt[1];return Ht=La,nn=Qa,Rn=go,Yn=Ao,gr=Fo,Ai=Ho,eu(ma)})}}function Wi(jt,$n){let pn=rr($n);return(ee,oe,De,Be,gt)=>oe.map(Ht=>pn(jt(Ht)))}function Ya(jt,$n,pn){return new Date(jt,$n,pn)}function qa(jt,$n){return $n(jt)}const se="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function ye(jt,$n){return(pn,ee,oe,De)=>De==null?fe:$n(jt(ee))}function Xe(jt,$n){let pn=jt.series[$n];return pn.width?pn.stroke(jt,$n):pn.points.width?pn.points.stroke(jt,$n):null}function yt(jt,$n){return jt.series[$n].fill(jt,$n)}const Wt={show:!0,live:!0,isolate:!1,mount:Zt,markers:{show:!0,width:2,stroke:Xe,fill:yt,dash:"solid"},idx:null,idxs:null,values:[]};function Qt(jt,$n){let pn=jt.cursor.points,ee=ve(),oe=pn.size(jt,$n);ue(ee,_,oe),ue(ee,W,oe);let De=oe/-2;ue(ee,"marginLeft",De),ue(ee,"marginTop",De);let Be=pn.width(jt,$n,oe);return Be&&ue(ee,"borderWidth",Be),ee}function wn(jt,$n){let pn=jt.series[$n].points;return pn._fill||pn._stroke}function fr(jt,$n){let pn=jt.series[$n].points;return pn._stroke||pn._fill}function Or(jt,$n){return jt.series[$n].points.size}function Si(jt,$n,pn){return pn}const Fi=[0,0];function Bi(jt,$n,pn){return Fi[0]=$n,Fi[1]=pn,Fi}function Ui(jt,$n,pn){return ee=>{ee.button==0&&pn(ee)}}function vi(jt,$n,pn){return pn}const Xa={show:!0,x:!0,y:!0,lock:!1,move:Bi,points:{show:Qt,size:Or,width:0,stroke:fr,fill:wn},bind:{mousedown:Ui,mouseup:Ui,click:Ui,dblclick:Ui,mousemove:vi,mouseleave:vi,mouseenter:vi},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(jt,$n)=>{$n.stopPropagation(),$n.stopImmediatePropagation()},_x:!1,_y:!1},focus:{prox:-1,bias:0},left:-10,top:-10,idx:null,dataIdx:Si,idxs:null},Ko={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},So=li({},Ko,{filter:We}),Lo=li({},So,{size:10}),us=li({},Ko,{show:!1}),Ee='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Y="bold "+Ee,z=1.5,B={show:!0,scale:"x",stroke:J,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Y,side:2,grid:So,ticks:Lo,border:us,font:Ee,rotate:0},le="Value",Le="Time",Je={show:!0,scale:"x",auto:!1,sorted:1,min:Ut,max:-Ut,idxs:[]};function Ct(jt,$n,pn,ee,oe){return $n.map(De=>De==null?"":vt(De))}function Vt(jt,$n,pn,ee,oe,De,Be){let gt=[],Ht=Kn.get(oe)||0;pn=Be?pn:mn(Tt(pn,oe),Ht);for(let nn=pn;nn<=ee;nn=mn(nn+oe,Ht))gt.push(Object.is(nn,-0)?0:nn);return gt}function bn(jt,$n,pn,ee,oe,De,Be){const gt=[],Ht=jt.scales[jt.axes[$n].scale].log,nn=Ht==10?st:en,Rn=Xt(nn(pn));oe=Jn(Ht,Rn),Ht==10&&Rn<0&&(oe=mn(oe,-Rn));let Yn=pn;do gt.push(Yn),Yn=Yn+oe,Ht==10&&(Yn=mn(Yn,Kn.get(oe))),Yn>=oe*Ht&&(oe=Yn);while(Yn<=ee);return gt}function Hn(jt,$n,pn,ee,oe,De,Be){let Ht=jt.scales[jt.axes[$n].scale].asinh,nn=ee>Ht?bn(jt,$n,sn(Ht,pn),ee,oe):[Ht],Rn=ee>=0&&pn<=0?[0]:[];return(pn<-Ht?bn(jt,$n,sn(Ht,-ee),-pn,oe):[Ht]).reverse().map(gr=>-gr).concat(Rn,nn)}const br=/./,ei=/[12357]/,mi=/[125]/,Li=/1/;function na(jt,$n,pn,ee,oe){let De=jt.axes[pn],Be=De.scale,gt=jt.scales[Be];if(gt.distr==3&>.log==2)return $n;let Ht=jt.valToPos,nn=De._space,Rn=Ht(10,Be),Yn=Ht(9,Be)-Rn>=nn?br:Ht(7,Be)-Rn>=nn?ei:Ht(5,Be)-Rn>=nn?mi:Li;return $n.map(gr=>gt.distr==4&&gr==0||Yn.test(gr)?gr:null)}function ji(jt,$n,pn,ee){return ee==null?fe:$n==null?"":vt($n)}const $a={show:!0,scale:"y",stroke:J,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Y,side:3,grid:So,ticks:Lo,border:us,font:Ee,rotate:0};function Ha(jt,$n){let pn=3+(jt||1)*2;return mn(pn*$n,3)}function Eo(jt,$n){let{scale:pn,idxs:ee}=jt.series[0],oe=jt._data[0],De=jt.valToPos(oe[ee[0]],pn,!0),Be=jt.valToPos(oe[ee[1]],pn,!0),gt=at(Be-De),Ht=jt.series[$n],nn=gt/(Ht.points.space*we);return ee[1]-ee[0]<=nn}const Uo={scale:null,auto:!0,sorted:0,min:Ut,max:-Ut},Ms=(jt,$n,pn,ee,oe)=>oe,er={show:!0,auto:!0,sorted:0,gaps:Ms,alpha:1,facets:[li({},Uo,{scale:"x"}),li({},Uo,{scale:"y"})]},Ar={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Ms,alpha:1,points:{show:Eo,filter:null},values:null,min:Ut,max:-Ut,idxs:[],path:null,clip:null};function Kr(jt,$n,pn,ee,oe){return pn/10}const ur={time:i,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},Gr=li({},ur,{time:!1,ori:1}),Pi={};function aa(jt,$n){let pn=Pi[jt];return pn||(pn={key:jt,plots:[],sub(ee){pn.plots.push(ee)},unsub(ee){pn.plots=pn.plots.filter(oe=>oe!=ee)},pub(ee,oe,De,Be,gt,Ht,nn){for(let Rn=0;Rn<pn.plots.length;Rn++)pn.plots[Rn]!=oe&&pn.plots[Rn].pub(ee,oe,De,Be,gt,Ht,nn)}},jt!=null&&(Pi[jt]=pn)),pn}const Fa=1,tn=2;function cn(jt,$n,pn){const ee=jt.mode,oe=jt.series[$n],De=ee==2?jt._data[$n]:jt._data,Be=jt.scales,gt=jt.bbox;let Ht=De[0],nn=ee==2?De[1]:De[$n],Rn=ee==2?Be[oe.facets[0].scale]:Be[jt.series[0].scale],Yn=ee==2?Be[oe.facets[1].scale]:Be[oe.scale],gr=gt.left,Ai=gt.top,$i=gt.width,ma=gt.height,La=jt.valToPosH,Qa=jt.valToPosV;return Rn.ori==0?pn(oe,Ht,nn,Rn,Yn,La,Qa,gr,Ai,$i,ma,Ma,Nr,ea,ci,xa):pn(oe,Ht,nn,Rn,Yn,Qa,La,Ai,gr,ma,$i,Mo,gi,dr,yi,Cr)}function nr(jt,$n){let pn=0,ee=0,oe=Bt(jt.bands,Qr);for(let De=0;De<oe.length;De++){let Be=oe[De];Be.series[0]==$n?pn=Be.dir:Be.series[1]==$n&&(Be.dir==1?ee|=1:ee|=2)}return[pn,ee==1?-1:ee==2?1:ee==3?2:0]}function ir(jt,$n,pn,ee,oe){let De=jt.mode,Be=jt.series[$n],gt=De==2?Be.facets[1].scale:Be.scale,Ht=jt.scales[gt];return oe==-1?Ht.min:oe==1?Ht.max:Ht.distr==3?Ht.dir==1?Ht.min:Ht.max:0}function Lr(jt,$n,pn,ee,oe,De){return cn(jt,$n,(Be,gt,Ht,nn,Rn,Yn,gr,Ai,$i,ma,La)=>{let Qa=Be.pxRound;const go=nn.dir*(nn.ori==0?1:-1),Ao=nn.ori==0?Nr:gi;let Fo,Ho;go==1?(Fo=pn,Ho=ee):(Fo=ee,Ho=pn);let eu=Qa(Yn(gt[Fo],nn,ma,Ai)),ks=Qa(gr(Ht[Fo],Rn,La,$i)),Gu=Qa(Yn(gt[Ho],nn,ma,Ai)),an=Qa(gr(De==1?Rn.max:Rn.min,Rn,La,$i)),Nn=new Path2D(oe);return Ao(Nn,Gu,an),Ao(Nn,eu,an),Ao(Nn,eu,ks),Nn})}function ua(jt,$n,pn,ee,oe,De){let Be=null;if(jt.length>0){Be=new Path2D;const gt=$n==0?ea:dr;let Ht=pn;for(let Rn=0;Rn<jt.length;Rn++){let Yn=jt[Rn];if(Yn[1]>Yn[0]){let gr=Yn[0]-Ht;gr>0&>(Be,Ht,ee,gr,ee+De),Ht=Yn[1]}}let nn=pn+oe-Ht;nn>0&>(Be,Ht,ee,nn,ee+De)}return Be}function _a(jt,$n,pn){let ee=jt[jt.length-1];ee&&ee[0]==$n?ee[1]=pn:jt.push([$n,pn])}function Ka(jt,$n,pn,ee,oe,De,Be){let gt=[],Ht=jt.length;for(let nn=oe==1?pn:ee;nn>=pn&&nn<=ee;nn+=oe)if($n[nn]===null){let Yn=nn,gr=nn;if(oe==1)for(;++nn<=ee&&$n[nn]===null;)gr=nn;else for(;--nn>=pn&&$n[nn]===null;)gr=nn;let Ai=De(jt[Yn]),$i=gr==Yn?Ai:De(jt[gr]),ma=Yn-oe;Ai=Be<=0&&ma>=0&&ma<Ht?De(jt[ma]):Ai;let Qa=gr+oe;$i=Be>=0&&Qa>=0&&Qa<Ht?De(jt[Qa]):$i,$i>=Ai&>.push([Ai,$i])}return gt}function yo(jt){return jt==0?ot:jt==1?rt:$n=>fn($n,jt)}function Ba(jt){let $n=jt==0?Ma:Mo,pn=jt==0?(oe,De,Be,gt,Ht,nn)=>{oe.arcTo(De,Be,gt,Ht,nn)}:(oe,De,Be,gt,Ht,nn)=>{oe.arcTo(Be,De,Ht,gt,nn)},ee=jt==0?(oe,De,Be,gt,Ht)=>{oe.rect(De,Be,gt,Ht)}:(oe,De,Be,gt,Ht)=>{oe.rect(Be,De,Ht,gt)};return(oe,De,Be,gt,Ht,nn=0,Rn=0)=>{nn==0&&Rn==0?ee(oe,De,Be,gt,Ht):(nn=rn(nn,gt/2,Ht/2),Rn=rn(Rn,gt/2,Ht/2),$n(oe,De+nn,Be),pn(oe,De+gt,Be,De+gt,Be+Ht,nn),pn(oe,De+gt,Be+Ht,De,Be+Ht,Rn),pn(oe,De,Be+Ht,De,Be,Rn),pn(oe,De,Be,De+gt,Be,nn),oe.closePath())}}const Ma=(jt,$n,pn)=>{jt.moveTo($n,pn)},Mo=(jt,$n,pn)=>{jt.moveTo(pn,$n)},Nr=(jt,$n,pn)=>{jt.lineTo($n,pn)},gi=(jt,$n,pn)=>{jt.lineTo(pn,$n)},ea=Ba(0),dr=Ba(1),ci=(jt,$n,pn,ee,oe,De)=>{jt.arc($n,pn,ee,oe,De)},yi=(jt,$n,pn,ee,oe,De)=>{jt.arc(pn,$n,ee,oe,De)},xa=(jt,$n,pn,ee,oe,De,Be)=>{jt.bezierCurveTo($n,pn,ee,oe,De,Be)},Cr=(jt,$n,pn,ee,oe,De,Be)=>{jt.bezierCurveTo(pn,$n,oe,ee,Be,De)};function ka(jt){return($n,pn,ee,oe,De)=>cn($n,pn,(Be,gt,Ht,nn,Rn,Yn,gr,Ai,$i,ma,La)=>{let{pxRound:Qa,points:go}=Be,Ao,Fo;nn.ori==0?(Ao=Ma,Fo=ci):(Ao=Mo,Fo=yi);const Ho=mn(go.width*we,3);let eu=(go.size-go.width)/2*we,ks=mn(eu*2,3),Gu=new Path2D,an=new Path2D,{left:Nn,top:tr,width:In,height:di}=$n.bbox;ea(an,Nn-ks,tr-ks,In+ks*2,di+ks*2);const oi=ki=>{if(Ht[ki]!=null){let ri=Qa(Yn(gt[ki],nn,ma,Ai)),bi=Qa(gr(Ht[ki],Rn,La,$i));Ao(Gu,ri+eu,bi),Fo(Gu,ri,bi,eu,0,lt*2)}};if(De)De.forEach(oi);else for(let ki=ee;ki<=oe;ki++)oi(ki);return{stroke:Ho>0?Gu:null,fill:Gu,clip:an,flags:Fa|tn}})}function Io(jt){return($n,pn,ee,oe,De,Be)=>{ee!=oe&&(De!=ee&&Be!=ee&&jt($n,pn,ee),De!=oe&&Be!=oe&&jt($n,pn,oe),jt($n,pn,Be))}}const Co=Io(Nr),_s=Io(gi);function Is(jt){const $n=Bt(jt?.alignGaps,0);return(pn,ee,oe,De)=>cn(pn,ee,(Be,gt,Ht,nn,Rn,Yn,gr,Ai,$i,ma,La)=>{let Qa=Be.pxRound,go=Qi=>Qa(Yn(Qi,nn,ma,Ai)),Ao=Qi=>Qa(gr(Qi,Rn,La,$i)),Fo,Ho;nn.ori==0?(Fo=Nr,Ho=Co):(Fo=gi,Ho=_s);const eu=nn.dir*(nn.ori==0?1:-1),ks={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Fa},Gu=ks.stroke;let an=Ut,Nn=-Ut,tr,In,di,oi=go(gt[eu==1?oe:De]),ki=je(Ht,oe,De,1*eu),ri=je(Ht,oe,De,-1*eu),bi=go(gt[ki]),_n=go(gt[ri]),Ua=!1;for(let Qi=eu==1?oe:De;Qi>=oe&&Qi<=De;Qi+=eu){let ro=go(gt[Qi]),Pe=Ht[Qi];ro==oi?Pe!=null?(In=Ao(Pe),an==Ut&&(Fo(Gu,ro,In),tr=In),an=rn(In,an),Nn=sn(In,Nn)):Pe===null&&(Ua=!0):(an!=Ut&&(Ho(Gu,oi,an,Nn,tr,In),di=oi),Pe!=null?(In=Ao(Pe),Fo(Gu,ro,In),an=Nn=tr=In):(an=Ut,Nn=-Ut,Pe===null&&(Ua=!0)),oi=ro)}an!=Ut&&an!=Nn&&di!=oi&&Ho(Gu,oi,an,Nn,tr,In);let[va,Va]=nr(pn,ee);if(Be.fill!=null||va!=0){let Qi=ks.fill=new Path2D(Gu),ro=Be.fillTo(pn,ee,Be.min,Be.max,va),Pe=Ao(ro);Fo(Qi,_n,Pe),Fo(Qi,bi,Pe)}if(!Be.spanGaps){let Qi=[];Ua&&Qi.push(...Ka(gt,Ht,oe,De,eu,go,$n)),ks.gaps=Qi=Be.gaps(pn,ee,oe,De,Qi),ks.clip=ua(Qi,nn.ori,Ai,$i,ma,La)}return Va!=0&&(ks.band=Va==2?[Lr(pn,ee,oe,De,Gu,-1),Lr(pn,ee,oe,De,Gu,1)]:Lr(pn,ee,oe,De,Gu,Va)),ks})}function xs(jt){const $n=Bt(jt.align,1),pn=Bt(jt.ascDesc,!1),ee=Bt(jt.alignGaps,0),oe=Bt(jt.extend,!1);return(De,Be,gt,Ht)=>cn(De,Be,(nn,Rn,Yn,gr,Ai,$i,ma,La,Qa,go,Ao)=>{let Fo=nn.pxRound,{left:Ho,width:eu}=De.bbox,ks=va=>Fo($i(va,gr,go,La)),Gu=va=>Fo(ma(va,Ai,Ao,Qa)),an=gr.ori==0?Nr:gi;const Nn={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Fa},tr=Nn.stroke,In=gr.dir*(gr.ori==0?1:-1);gt=je(Yn,gt,Ht,1),Ht=je(Yn,gt,Ht,-1);let di=Gu(Yn[In==1?gt:Ht]),oi=ks(Rn[In==1?gt:Ht]),ki=oi,ri=oi;oe&&$n==-1&&(ri=Ho,an(tr,ri,di)),an(tr,oi,di);for(let va=In==1?gt:Ht;va>=gt&&va<=Ht;va+=In){let Va=Yn[va];if(Va==null)continue;let Qi=ks(Rn[va]),ro=Gu(Va);$n==1?an(tr,Qi,di):an(tr,ki,ro),an(tr,Qi,ro),di=ro,ki=Qi}let bi=ki;oe&&$n==1&&(bi=Ho+eu,an(tr,bi,di));let[_n,Ua]=nr(De,Be);if(nn.fill!=null||_n!=0){let va=Nn.fill=new Path2D(tr),Va=nn.fillTo(De,Be,nn.min,nn.max,_n),Qi=Gu(Va);an(va,bi,Qi),an(va,ri,Qi)}if(!nn.spanGaps){let va=[];va.push(...Ka(Rn,Yn,gt,Ht,In,ks,ee));let Va=nn.width*we/2,Qi=pn||$n==1?Va:-Va,ro=pn||$n==-1?-Va:Va;va.forEach(Pe=>{Pe[0]+=Qi,Pe[1]+=ro}),Nn.gaps=va=nn.gaps(De,Be,gt,Ht,va),Nn.clip=ua(va,gr.ori,La,Qa,go,Ao)}return Ua!=0&&(Nn.band=Ua==2?[Lr(De,Be,gt,Ht,tr,-1),Lr(De,Be,gt,Ht,tr,1)]:Lr(De,Be,gt,Ht,tr,Ua)),Nn})}function Zs(jt){jt=jt||or;const $n=Bt(jt.size,[.6,Ut,1]),pn=jt.align||0,ee=(jt.gap||0)*we;let oe=jt.radius;oe=oe==null?[0,0]:typeof oe=="number"?[oe,0]:oe;const De=An(oe),Be=1-$n[0],gt=Bt($n[1],Ut)*we,Ht=Bt($n[2],1)*we,nn=Bt(jt.disp,or),Rn=Bt(jt.each,Ai=>{}),{fill:Yn,stroke:gr}=nn;return(Ai,$i,ma,La)=>cn(Ai,$i,(Qa,go,Ao,Fo,Ho,eu,ks,Gu,an,Nn,tr)=>{let In=Qa.pxRound,di,oi;Fo.ori==0?[di,oi]=De(Ai,$i):[oi,di]=De(Ai,$i);const ki=Fo.dir*(Fo.ori==0?1:-1),ri=Ho.dir*(Ho.ori==1?1:-1);let bi=Fo.ori==0?ea:dr,_n=Fo.ori==0?Rn:(da,Sa,Pa,oo,mo,Ga,no)=>{Rn(da,Sa,Pa,mo,oo,no,Ga)},[Ua,va]=nr(Ai,$i),Va=Ho.distr==3?Ua==1?Ho.max:Ho.min:0,Qi=ks(Va,Ho,tr,an),ro,Pe,Nt=In(Qa.width*we),un=!1,xn=null,zn=null,sr=null,Tr=null;Yn!=null&&(Nt==0||gr!=null)&&(un=!0,xn=Yn.values(Ai,$i,ma,La),zn=new Map,new Set(xn).forEach(da=>{da!=null&&zn.set(da,new Path2D)}),Nt>0&&(sr=gr.values(Ai,$i,ma,La),Tr=new Map,new Set(sr).forEach(da=>{da!=null&&Tr.set(da,new Path2D)})));let{x0:Br,size:Er}=nn;if(Br!=null&&Er!=null){go=Br.values(Ai,$i,ma,La),Br.unit==2&&(go=go.map(Sa=>Ai.posToVal(Gu+Sa*Nn,Fo.key,!0)));let da=Er.values(Ai,$i,ma,La);Er.unit==2?Pe=da[0]*Nn:Pe=eu(da[0],Fo,Nn,Gu)-eu(0,Fo,Nn,Gu),Pe=In(Pe-Nt),ro=ki==1?-Nt/2:Pe+Nt/2}else{let da=Nn;if(go.length>1){let Pa=null;for(let oo=0,mo=1/0;oo<go.length;oo++)if(Ao[oo]!==void 0){if(Pa!=null){let Ga=at(go[oo]-go[Pa]);Ga<mo&&(mo=Ga,da=at(eu(go[oo],Fo,Nn,Gu)-eu(go[Pa],Fo,Nn,Gu)))}Pa=oo}}let Sa=da*Be;Pe=In(rn(gt,sn(Ht,da-Sa))-Nt-ee),ro=(pn==0?Pe/2:pn==ki?0:Pe)-pn*ki*ee/2}const Sr={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:Fa|tn};let Vr;va!=0&&(Sr.band=new Path2D,Vr=In(ks(va==1?Ho.max:Ho.min,Ho,tr,an)));const fi=un?null:new Path2D,xr=Sr.band;let{y0:Wr,y1:ti}=nn,xi=null;Wr!=null&&ti!=null&&(Ao=ti.values(Ai,$i,ma,La),xi=Wr.values(Ai,$i,ma,La));let Gi=di*Pe,_i=oi*Pe;for(let da=ki==1?ma:La;da>=ma&&da<=La;da+=ki){let Sa=Ao[da];if(Sa===void 0)continue;let Pa=Fo.distr!=2||nn!=null?go[da]:da,oo=eu(Pa,Fo,Nn,Gu),mo=ks(Bt(Sa,Va),Ho,tr,an);xi!=null&&Sa!=null&&(Qi=ks(xi[da],Ho,tr,an));let Ga=In(oo-ro),no=In(sn(mo,Qi)),ca=In(rn(mo,Qi)),co=no-ca;if(Sa!=null){let Yo=Sa<0?_i:Gi,bo=Sa<0?Gi:_i;un?(Nt>0&&sr[da]!=null&&bi(Tr.get(sr[da]),Ga,ca+Xt(Nt/2),Pe,sn(0,co-Nt),Yo,bo),xn[da]!=null&&bi(zn.get(xn[da]),Ga,ca+Xt(Nt/2),Pe,sn(0,co-Nt),Yo,bo)):bi(fi,Ga,ca+Xt(Nt/2),Pe,sn(0,co-Nt),Yo,bo),_n(Ai,$i,da,Ga-Nt/2,ca,Pe+Nt,co)}va!=0&&(ri*va==1?(no=ca,ca=Vr):(ca=no,no=Vr),co=no-ca,bi(xr,Ga-Nt/2,ca,Pe+Nt,sn(0,co),0,0))}return Nt>0&&(Sr.stroke=un?Tr:fi),Sr.fill=un?zn:fi,Sr})}function Ns(jt,$n){const pn=Bt($n?.alignGaps,0);return(ee,oe,De,Be)=>cn(ee,oe,(gt,Ht,nn,Rn,Yn,gr,Ai,$i,ma,La,Qa)=>{let go=gt.pxRound,Ao=bi=>go(gr(bi,Rn,La,$i)),Fo=bi=>go(Ai(bi,Yn,Qa,ma)),Ho,eu,ks;Rn.ori==0?(Ho=Ma,ks=Nr,eu=xa):(Ho=Mo,ks=gi,eu=Cr);const Gu=Rn.dir*(Rn.ori==0?1:-1);De=je(nn,De,Be,1),Be=je(nn,De,Be,-1);let an=Ao(Ht[Gu==1?De:Be]),Nn=an,tr=[],In=[];for(let bi=Gu==1?De:Be;bi>=De&&bi<=Be;bi+=Gu)if(nn[bi]!=null){let Ua=Ht[bi],va=Ao(Ua);tr.push(Nn=va),In.push(Fo(nn[bi]))}const di={stroke:jt(tr,In,Ho,ks,eu,go),fill:null,clip:null,band:null,gaps:null,flags:Fa},oi=di.stroke;let[ki,ri]=nr(ee,oe);if(gt.fill!=null||ki!=0){let bi=di.fill=new Path2D(oi),_n=gt.fillTo(ee,oe,gt.min,gt.max,ki),Ua=Fo(_n);ks(bi,Nn,Ua),ks(bi,an,Ua)}if(!gt.spanGaps){let bi=[];bi.push(...Ka(Ht,nn,De,Be,Gu,Ao,pn)),di.gaps=bi=gt.gaps(ee,oe,De,Be,bi),di.clip=ua(bi,Rn.ori,$i,ma,La,Qa)}return ri!=0&&(di.band=ri==2?[Lr(ee,oe,De,Be,oi,-1),Lr(ee,oe,De,Be,oi,1)]:Lr(ee,oe,De,Be,oi,ri)),di})}function Us(jt){return Ns(fu,jt)}function fu(jt,$n,pn,ee,oe,De){const Be=jt.length;if(Be<2)return null;const gt=new Path2D;if(pn(gt,jt[0],$n[0]),Be==2)ee(gt,jt[1],$n[1]);else{let Ht=Array(Be),nn=Array(Be-1),Rn=Array(Be-1),Yn=Array(Be-1);for(let gr=0;gr<Be-1;gr++)Rn[gr]=$n[gr+1]-$n[gr],Yn[gr]=jt[gr+1]-jt[gr],nn[gr]=Rn[gr]/Yn[gr];Ht[0]=nn[0];for(let gr=1;gr<Be-1;gr++)nn[gr]===0||nn[gr-1]===0||nn[gr-1]>0!=nn[gr]>0?Ht[gr]=0:(Ht[gr]=3*(Yn[gr-1]+Yn[gr])/((2*Yn[gr]+Yn[gr-1])/nn[gr-1]+(Yn[gr]+2*Yn[gr-1])/nn[gr]),isFinite(Ht[gr])||(Ht[gr]=0));Ht[Be-1]=nn[Be-2];for(let gr=0;gr<Be-1;gr++)oe(gt,jt[gr]+Yn[gr]/3,$n[gr]+Ht[gr]*Yn[gr]/3,jt[gr+1]-Yn[gr]/3,$n[gr+1]-Ht[gr+1]*Yn[gr]/3,jt[gr+1],$n[gr+1])}return gt}const bu=new Set;function Ys(){for(let jt of bu)jt.syncRect(!0)}Se&&(tt(ce,me,Ys),tt(G,me,Ys,!0),tt(ie,me,()=>{Hi.pxRatio=we}));const Hu=Is(),Zu=ka();function ql(jt,$n,pn,ee){return(ee?[jt[0],jt[1]].concat(jt.slice(2)):[jt[0]].concat(jt.slice(1))).map((De,Be)=>Wn(De,Be,$n,pn))}function Sn(jt,$n){return jt.map((pn,ee)=>ee==0?null:li({},$n,pn))}function Wn(jt,$n,pn,ee){return li({},$n==0?pn:ee,jt)}function vr(jt,$n,pn){return $n==null?ni:[$n,pn]}const kr=vr;function ui(jt,$n,pn){return $n==null?ni:Yt($n,pn,mt,!0)}function ta(jt,$n,pn,ee){return $n==null?ni:ut($n,pn,jt.scales[ee].log,!1)}const St=ta;function pt(jt,$n,pn,ee){return $n==null?ni:Ne($n,pn,jt.scales[ee].log,!1)}const kt=pt;function _t(jt,$n,pn,ee,oe){let De=sn(on(jt),on($n)),Be=$n-jt,gt=Oe(oe/ee*Be,pn);do{let Ht=pn[gt],nn=ee*Ht/Be;if(nn>=oe&&De+(Ht<5?Kn.get(Ht):0)<=17)return[Ht,nn]}while(++gt<pn.length);return[0,0]}function Mn(jt){let $n,pn;return jt=jt.replace(/(\d+)px/,(ee,oe)=>($n=rt((pn=+oe)*we))+"px"),[jt,$n,pn]}function Pr(jt){jt.show&&[jt.font,jt.labelFont].forEach($n=>{let pn=mn($n[2]*we,1);$n[0]=$n[0].replace(/[0-9.]+px/,pn+"px"),$n[1]=pn})}function Hi(jt,$n,pn){const ee={mode:Bt(jt.mode,1)},oe=ee.mode;function De(Dr,pr){return((pr.distr==3?st(Dr>0?Dr:pr.clamp(ee,Dr,pr.min,pr.max,pr.key)):pr.distr==4?Ke(Dr,pr.asinh):Dr)-pr._min)/(pr._max-pr._min)}function Be(Dr,pr,Mi,Zi){let Ta=De(Dr,pr);return Zi+Mi*(pr.dir==-1?1-Ta:Ta)}function gt(Dr,pr,Mi,Zi){let Ta=De(Dr,pr);return Zi+Mi*(pr.dir==-1?Ta:1-Ta)}function Ht(Dr,pr,Mi,Zi){return pr.ori==0?Be(Dr,pr,Mi,Zi):gt(Dr,pr,Mi,Zi)}ee.valToPosH=Be,ee.valToPosV=gt;let nn=!1;ee.status=0;const Rn=ee.root=ve(u);if(jt.id!=null&&(Rn.id=jt.id),nt(Rn,jt.class),jt.title){let Dr=ve(h,Rn);Dr.textContent=jt.title}const Yn=ae("canvas"),gr=ee.ctx=Yn.getContext("2d"),Ai=ve(p,Rn);tt("click",Ai,Dr=>{(_l!=lf||qu!=vc)&&jl.click(ee,Dr)},!0);const $i=ee.under=ve(d,Ai);Ai.appendChild(Yn);const ma=ee.over=ve(f,Ai);jt=Ca(jt);const La=+Bt(jt.pxAlign,1),Qa=yo(La);(jt.plugins||[]).forEach(Dr=>{Dr.opts&&(jt=Dr.opts(ee,jt)||jt)});const go=jt.ms||.001,Ao=ee.series=oe==1?ql(jt.series||[],Je,Ar,!1):Sn(jt.series||[null],er),Fo=ee.axes=ql(jt.axes||[],B,$a,!0),Ho=ee.scales={},eu=ee.bands=jt.bands||[];eu.forEach(Dr=>{Dr.fill=An(Dr.fill||null),Dr.dir=Bt(Dr.dir,-1)});const ks=oe==2?Ao[1].facets[0].scale:Ao[0].scale,Gu={axes:Gc,series:Ju},an=(jt.drawOrder||["axes","series"]).map(Dr=>Gu[Dr]);function Nn(Dr){let pr=Ho[Dr];if(pr==null){let Mi=(jt.scales||or)[Dr]||or;if(Mi.from!=null)Nn(Mi.from),Ho[Dr]=li({},Ho[Mi.from],Mi,{key:Dr});else{pr=Ho[Dr]=li({},Dr==ks?ur:Gr,Mi),pr.key=Dr;let Zi=pr.time,Ta=pr.range,Oo=yr(Ta);if((Dr!=ks||oe==2&&!Zi)&&(Oo&&(Ta[0]==null||Ta[1]==null)&&(Ta={min:Ta[0]==null?bt:{mode:1,hard:Ta[0],soft:Ta[0]},max:Ta[1]==null?bt:{mode:1,hard:Ta[1],soft:Ta[1]}},Oo=!1),!Oo&&Ni(Ta))){let No=Ta;Ta=(xo,Ls,Fs)=>Ls==null?ni:Yt(Ls,Fs,No)}pr.range=An(Ta||(Zi?kr:Dr==ks?pr.distr==3?St:pr.distr==4?kt:vr:pr.distr==3?ta:pr.distr==4?pt:ui)),pr.auto=An(Oo?!1:pr.auto),pr.clamp=An(pr.clamp||Kr),pr._min=pr._max=null}}}Nn("x"),Nn("y"),oe==1&&Ao.forEach(Dr=>{Nn(Dr.scale)}),Fo.forEach(Dr=>{Nn(Dr.scale)});for(let Dr in jt.scales)Nn(Dr);const tr=Ho[ks],In=tr.distr;let di,oi;tr.ori==0?(nt(Rn,v),di=Be,oi=gt):(nt(Rn,l),di=gt,oi=Be);const ki={};for(let Dr in Ho){let pr=Ho[Dr];(pr.min!=null||pr.max!=null)&&(ki[Dr]={min:pr.min,max:pr.max},pr.min=pr.max=null)}const ri=jt.tzDate||(Dr=>new Date(rt(Dr/go))),bi=jt.fmtDate||rr,_n=go==1?Mt(ri):Fr(ri),Ua=ii(ri,Ei(go==1?za:qn,bi)),va=ye(ri,qa(se,bi)),Va=[],Qi=ee.legend=li({},Wt,jt.legend),ro=Qi.show,Pe=Qi.markers;Qi.idxs=Va,Pe.width=An(Pe.width),Pe.dash=An(Pe.dash),Pe.stroke=An(Pe.stroke),Pe.fill=An(Pe.fill);let Nt,un=[],xn=[],zn,sr=!1,Tr={};if(Qi.live){const Dr=Ao[1]?Ao[1].values:null;sr=Dr!=null,zn=sr?Dr(ee,1,0):{_:0};for(let pr in zn)Tr[pr]=fe}if(ro)if(Nt=ae("table",x,Rn),Qi.mount(ee,Nt),sr){let Dr=ae("tr",T,Nt);ae("th",null,Dr);for(var Br in zn)ae("th",N,Dr).textContent=Br}else nt(Nt,R),Qi.live&&nt(Nt,P);const Er={show:!0},Sr={show:!1};function Vr(Dr,pr){if(pr==0&&(sr||!Qi.live||oe==2))return ni;let Mi=[],Zi=ae("tr",A,Nt,Nt.childNodes[pr]);nt(Zi,Dr.class),Dr.show||nt(Zi,y);let Ta=ae("th",null,Zi);if(Pe.show){let xo=ve(I,Ta);if(pr>0){let Ls=Pe.width(ee,pr);Ls&&(xo.style.border=Ls+"px "+Pe.dash(ee,pr)+" "+Pe.stroke(ee,pr)),xo.style.background=Pe.fill(ee,pr)}}let Oo=ve(N,Ta);Oo.textContent=Dr.label,pr>0&&(Pe.show||(Oo.style.color=Dr.width>0?Pe.stroke(ee,pr):Pe.fill(ee,pr)),xr("click",Ta,xo=>{if(Do._lock)return;let Ls=Ao.indexOf(Dr);if((xo.ctrlKey||xo.metaKey)!=Qi.isolate){let Fs=Ao.some((As,Cu)=>Cu>0&&Cu!=Ls&&As.show);Ao.forEach((As,Cu)=>{Cu>0&&Pl(Cu,Fs?Cu==Ls?Er:Sr:Er,!0,Tc.setSeries)})}else Pl(Ls,{show:!Dr.show},!0,Tc.setSeries)}),is&&xr(F,Ta,xo=>{Do._lock||Pl(Ao.indexOf(Dr),bc,!0,Tc.setSeries)}));for(var No in zn){let xo=ae("td",K,Zi);xo.textContent="--",Mi.push(xo)}return[Zi,Mi]}const fi=new Map;function xr(Dr,pr,Mi){const Zi=fi.get(pr)||{},Ta=Do.bind[Dr](ee,pr,Mi);Ta&&(tt(Dr,pr,Zi[Dr]=Ta),fi.set(pr,Zi))}function Wr(Dr,pr,Mi){const Zi=fi.get(pr)||{};for(let Ta in Zi)(Dr==null||Ta==Dr)&&(ke(Ta,pr,Zi[Ta]),delete Zi[Ta]);Dr==null&&fi.delete(pr)}let ti=0,xi=0,Gi=0,_i=0,da=0,Sa=0,Pa=0,oo=0,mo=0,Ga=0;ee.bbox={};let no=!1,ca=!1,co=!1,Yo=!1,bo=!1,Ea=!1;function ko(Dr,pr,Mi){(Mi||Dr!=ee.width||pr!=ee.height)&&Es(Dr,pr),$l(!1),co=!0,ca=!0,Do.left>=0&&(Yo=Ea=!0),zc()}function Es(Dr,pr){ee.width=ti=Gi=Dr,ee.height=xi=_i=pr,da=Sa=0,Ss(),cs();let Mi=ee.bbox;Pa=Mi.left=fn(da*we,.5),oo=Mi.top=fn(Sa*we,.5),mo=Mi.width=fn(Gi*we,.5),Ga=Mi.height=fn(_i*we,.5)}const Ts=3;function rs(){let Dr=!1,pr=0;for(;!Dr;){pr++;let Mi=Ic(pr),Zi=kl(pr);Dr=pr==Ts||Mi&&Zi,Dr||(Es(ee.width,ee.height),ca=!0)}}function ls({width:Dr,height:pr}){ko(Dr,pr)}ee.setSize=ls;function Ss(){let Dr=!1,pr=!1,Mi=!1,Zi=!1;Fo.forEach((Ta,Oo)=>{if(Ta.show&&Ta._show){let{side:No,_size:xo}=Ta,Ls=No%2,Fs=Ta.label!=null?Ta.labelSize:0,As=xo+Fs;As>0&&(Ls?(Gi-=As,No==3?(da+=As,Zi=!0):Mi=!0):(_i-=As,No==0?(Sa+=As,Dr=!0):pr=!0))}}),Xu[0]=Dr,Xu[1]=Mi,Xu[2]=pr,Xu[3]=Zi,Gi-=hu[1]+hu[3],da+=hu[3],_i-=hu[2]+hu[0],Sa+=hu[0]}function cs(){let Dr=da+Gi,pr=Sa+_i,Mi=da,Zi=Sa;function Ta(Oo,No){switch(Oo){case 1:return Dr+=No,Dr-No;case 2:return pr+=No,pr-No;case 3:return Mi-=No,Mi+No;case 0:return Zi-=No,Zi+No}}Fo.forEach((Oo,No)=>{if(Oo.show&&Oo._show){let xo=Oo.side;Oo._pos=Ta(xo,Oo._size),Oo.label!=null&&(Oo._lpos=Ta(xo,Oo.labelSize))}})}const Do=ee.cursor=li({},Xa,{drag:{y:oe==2}},jt.cursor);{Do.idxs=Va,Do._lock=!1;let Dr=Do.points;Dr.show=An(Dr.show),Dr.size=An(Dr.size),Dr.stroke=An(Dr.stroke),Dr.width=An(Dr.width),Dr.fill=An(Dr.fill)}const fs=ee.focus=li({},jt.focus||{alpha:.3},Do.focus);fs.bias!=0&&(fs.prox=1e5);const is=fs.prox>=0;let Os=[null];function Qs(Dr,pr){if(pr>0){let Mi=Do.points.show(ee,pr);if(Mi)return nt(Mi,w),nt(Mi,Dr.class),Ye(Mi,-10,-10,Gi,_i),ma.insertBefore(Mi,Os[pr]),Mi}}function du(Dr,pr){if(oe==1||pr>0){let Mi=oe==1&&Ho[Dr.scale].time,Zi=Dr.value;Dr.value=Mi?Ci(Zi)?ye(ri,qa(Zi,bi)):Zi||va:Zi||ji,Dr.label=Dr.label||(Mi?Le:le)}if(pr>0){Dr.width=Dr.width==null?1:Dr.width,Dr.paths=Dr.paths||Hu||Ft,Dr.fillTo=An(Dr.fillTo||ir),Dr.pxAlign=+Bt(Dr.pxAlign,La),Dr.pxRound=yo(Dr.pxAlign),Dr.stroke=An(Dr.stroke||null),Dr.fill=An(Dr.fill||null),Dr._stroke=Dr._fill=Dr._paths=Dr._focus=null;let Mi=Ha(sn(1,Dr.width),1),Zi=Dr.points=li({},{size:Mi,width:sn(1,Mi*.2),stroke:Dr.stroke,space:Mi*2,paths:Zu,_stroke:null,_fill:null},Dr.points);Zi.show=An(Zi.show),Zi.filter=An(Zi.filter),Zi.fill=An(Zi.fill),Zi.stroke=An(Zi.stroke),Zi.paths=An(Zi.paths),Zi.pxAlign=Dr.pxAlign}if(ro){let Mi=Vr(Dr,pr);un.splice(pr,0,Mi[0]),xn.splice(pr,0,Mi[1]),Qi.values.push(null)}if(Do.show){Va.splice(pr,0,null);let Mi=Qs(Dr,pr);Mi&&Os.splice(pr,0,Mi)}Ec("addSeries",pr)}function Yu(Dr,pr){pr=pr??Ao.length,Dr=oe==1?Wn(Dr,pr,Je,Ar):Wn(Dr,pr,null,er),Ao.splice(pr,0,Dr),du(Ao[pr],pr)}ee.addSeries=Yu;function $u(Dr){if(Ao.splice(Dr,1),ro){Qi.values.splice(Dr,1),xn.splice(Dr,1);let pr=un.splice(Dr,1)[0];Wr(null,pr.firstChild),pr.remove()}Do.show&&(Va.splice(Dr,1),Os.length>1&&Os.splice(Dr,1)[0].remove()),Ec("delSeries",Dr)}ee.delSeries=$u;const Xu=[!1,!1,!1,!1];function su(Dr,pr){if(Dr._show=Dr.show,Dr.show){let Mi=Dr.side%2,Zi=Ho[Dr.scale];Zi==null&&(Dr.scale=Mi?Ao[1].scale:ks,Zi=Ho[Dr.scale]);let Ta=Zi.time;Dr.size=An(Dr.size),Dr.space=An(Dr.space),Dr.rotate=An(Dr.rotate),Dr.incrs=An(Dr.incrs||(Zi.distr==2?Ri:Ta?go==1?ai:Gn:Ki)),Dr.splits=An(Dr.splits||(Ta&&Zi.distr==1?_n:Zi.distr==3?bn:Zi.distr==4?Hn:Vt)),Dr.stroke=An(Dr.stroke),Dr.grid.stroke=An(Dr.grid.stroke),Dr.ticks.stroke=An(Dr.ticks.stroke),Dr.border.stroke=An(Dr.border.stroke);let Oo=Dr.values;Dr.values=yr(Oo)&&!yr(Oo[0])?An(Oo):Ta?yr(Oo)?ii(ri,Ei(Oo,bi)):Ci(Oo)?Wi(ri,Oo):Oo||Ua:Oo||Ct,Dr.filter=An(Dr.filter||(Zi.distr>=3&&Zi.log==10?na:We)),Dr.font=Mn(Dr.font),Dr.labelFont=Mn(Dr.labelFont),Dr._size=Dr.size(ee,null,pr,0),Dr._space=Dr._rotate=Dr._incrs=Dr._found=Dr._splits=Dr._values=null,Dr._size>0&&(Xu[pr]=!0,Dr._el=ve(g,Ai))}}function Pu(Dr,pr,Mi,Zi){let[Ta,Oo,No,xo]=Mi,Ls=pr%2,Fs=0;return Ls==0&&(xo||Oo)&&(Fs=pr==0&&!Ta||pr==2&&!No?rt(B.size/3):0),Ls==1&&(Ta||No)&&(Fs=pr==1&&!Oo||pr==3&&!xo?rt($a.size/2):0),Fs}const Lu=ee.padding=(jt.padding||[Pu,Pu,Pu,Pu]).map(Dr=>An(Bt(Dr,Pu))),hu=ee._padding=Lu.map((Dr,pr)=>Dr(ee,pr,Xu,0));let Js,ys=null,qo=null;const Ps=oe==1?Ao[0].idxs:null;let Ws=null,Qo=!1;function ds(Dr,pr){if($n=Dr==null?[]:Ca(Dr,fa),oe==2){Js=0;for(let Mi=1;Mi<Ao.length;Mi++)Js+=$n[Mi][0].length;ee.data=$n=Dr}else if($n[0]==null&&($n[0]=[]),ee.data=$n.slice(),Ws=$n[0],Js=Ws.length,In==2){$n[0]=Array(Js);for(let Mi=0;Mi<Js;Mi++)$n[0][Mi]=Mi}if(ee._data=$n,$l(!0),Ec("setData"),In==2&&(co=!0),pr!==!1){let Mi=tr;Mi.auto(ee,Qo)?zu():Bl(ks,Mi.min,Mi.max),Yo=Do.left>=0,Ea=!0,zc()}}ee.setData=ds;function zu(){Qo=!0;let Dr,pr;oe==1&&(Js>0?(ys=Ps[0]=0,qo=Ps[1]=Js-1,Dr=$n[0][ys],pr=$n[0][qo],In==2?(Dr=ys,pr=qo):Js==1&&(In==3?[Dr,pr]=ut(Dr,Dr,tr.log,!1):In==4?[Dr,pr]=Ne(Dr,Dr,tr.log,!1):tr.time?pr=Dr+rt(86400/go):[Dr,pr]=Yt(Dr,pr,mt,!0))):(ys=Ps[0]=Dr=null,qo=Ps[1]=pr=null)),Bl(ks,Dr,pr)}let tu,Ou,Hs,pu,ku,Nu,Fu,Ku,sl,lu;function Tu(Dr,pr,Mi,Zi,Ta,Oo){Dr??=q,Mi??=Qr,Zi??="butt",Ta??=q,Oo??="round",Dr!=tu&&(gr.strokeStyle=tu=Dr),Ta!=Ou&&(gr.fillStyle=Ou=Ta),pr!=Hs&&(gr.lineWidth=Hs=pr),Oo!=ku&&(gr.lineJoin=ku=Oo),Zi!=Nu&&(gr.lineCap=Nu=Zi),Mi!=pu&&gr.setLineDash(pu=Mi)}function Vs(Dr,pr,Mi,Zi){pr!=Ou&&(gr.fillStyle=Ou=pr),Dr!=Fu&&(gr.font=Fu=Dr),Mi!=Ku&&(gr.textAlign=Ku=Mi),Zi!=sl&&(gr.textBaseline=sl=Zi)}function Ds(Dr,pr,Mi,Zi,Ta=0){if(Zi.length>0&&Dr.auto(ee,Qo)&&(pr==null||pr.min==null)){let Oo=Bt(ys,0),No=Bt(qo,Zi.length-1),xo=Mi.min==null?Dr.distr==3?ct(Zi,Oo,No):Et(Zi,Oo,No,Ta):[Mi.min,Mi.max];Dr.min=rn(Dr.min,Mi.min=xo[0]),Dr.max=sn(Dr.max,Mi.max=xo[1])}}function Ks(){let Dr=Ca(Ho,fa);for(let Zi in Dr){let Ta=Dr[Zi],Oo=ki[Zi];if(Oo!=null&&Oo.min!=null)li(Ta,Oo),Zi==ks&&$l(!0);else if(Zi!=ks||oe==2)if(Js==0&&Ta.from==null){let No=Ta.range(ee,null,null,Zi);Ta.min=No[0],Ta.max=No[1]}else Ta.min=Ut,Ta.max=-Ut}if(Js>0){Ao.forEach((Zi,Ta)=>{if(oe==1){let Oo=Zi.scale,No=Dr[Oo],xo=ki[Oo];if(Ta==0){let Ls=No.range(ee,No.min,No.max,Oo);No.min=Ls[0],No.max=Ls[1],ys=Oe(No.min,$n[0]),qo=Oe(No.max,$n[0]),qo-ys>1&&($n[0][ys]<No.min&&ys++,$n[0][qo]>No.max&&qo--),Zi.min=Ws[ys],Zi.max=Ws[qo]}else Zi.show&&Zi.auto&&Ds(No,xo,Zi,$n[Ta],Zi.sorted);Zi.idxs[0]=ys,Zi.idxs[1]=qo}else if(Ta>0&&Zi.show&&Zi.auto){let[Oo,No]=Zi.facets,xo=Oo.scale,Ls=No.scale,[Fs,As]=$n[Ta];Ds(Dr[xo],ki[xo],Oo,Fs,Oo.sorted),Ds(Dr[Ls],ki[Ls],No,As,No.sorted),Zi.min=No.min,Zi.max=No.max}});for(let Zi in Dr){let Ta=Dr[Zi],Oo=ki[Zi];if(Ta.from==null&&(Oo==null||Oo.min==null)){let No=Ta.range(ee,Ta.min==Ut?null:Ta.min,Ta.max==-Ut?null:Ta.max,Zi);Ta.min=No[0],Ta.max=No[1]}}}for(let Zi in Dr){let Ta=Dr[Zi];if(Ta.from!=null){let Oo=Dr[Ta.from];if(Oo.min==null)Ta.min=Ta.max=null;else{let No=Ta.range(ee,Oo.min,Oo.max,Zi);Ta.min=No[0],Ta.max=No[1]}}}let pr={},Mi=!1;for(let Zi in Dr){let Ta=Dr[Zi],Oo=Ho[Zi];if(Oo.min!=Ta.min||Oo.max!=Ta.max){Oo.min=Ta.min,Oo.max=Ta.max;let No=Oo.distr;Oo._min=No==3?st(Oo.min):No==4?Ke(Oo.min,Oo.asinh):Oo.min,Oo._max=No==3?st(Oo.max):No==4?Ke(Oo.max,Oo.asinh):Oo.max,pr[Zi]=Mi=!0}}if(Mi){Ao.forEach((Zi,Ta)=>{oe==2?Ta>0&&pr.y&&(Zi._paths=null):pr[Zi.scale]&&(Zi._paths=null)});for(let Zi in pr)co=!0,Ec("setScale",Zi);Do.show&&Do.left>=0&&(Yo=Ea=!0)}for(let Zi in ki)ki[Zi]=null}function nu(Dr){let pr=Tn(ys-1,0,Js-1),Mi=Tn(qo+1,0,Js-1);for(;Dr[pr]==null&&pr>0;)pr--;for(;Dr[Mi]==null&&Mi<Js-1;)Mi++;return[pr,Mi]}function Ju(){Js>0&&(Ao.forEach((Dr,pr)=>{if(pr>0&&Dr.show&&Dr._paths==null){let Mi=oe==2?[0,$n[pr][0].length-1]:nu($n[pr]);Dr._paths=Dr.paths(ee,pr,Mi[0],Mi[1])}}),Ao.forEach((Dr,pr)=>{if(pr>0&&Dr.show){lu!=Dr.alpha&&(gr.globalAlpha=lu=Dr.alpha),nl(pr,!1),Dr._paths&&ec(pr,!1);{nl(pr,!0);let Mi=Dr._paths?Dr._paths.gaps:null,Zi=Dr.points.show(ee,pr,ys,qo,Mi),Ta=Dr.points.filter(ee,pr,Zi,Mi);(Zi||Ta)&&(Dr.points._paths=Dr.points.paths(ee,pr,ys,qo,Ta),ec(pr,!0))}lu!=1&&(gr.globalAlpha=lu=1),Ec("drawSeries",pr)}}))}function nl(Dr,pr){let Mi=pr?Ao[Dr].points:Ao[Dr];Mi._stroke=Mi.stroke(ee,Dr),Mi._fill=Mi.fill(ee,Dr)}function ec(Dr,pr){let Mi=pr?Ao[Dr].points:Ao[Dr],Zi=Mi._stroke,Ta=Mi._fill,{stroke:Oo,fill:No,clip:xo,flags:Ls}=Mi._paths,Fs=null,As=mn(Mi.width*we,3),Cu=As%2/2;pr&&Ta==null&&(Ta=As>0?"#fff":Zi);let Iu=Mi.pxAlign==1;if(Iu&&gr.translate(Cu,Cu),!pr){let Tl=Pa,Du=oo,cl=mo,tl=Ga,Zl=As*we/2;Mi.min==0&&(tl+=Zl),Mi.max==0&&(Du-=Zl,tl+=Zl),Fs=new Path2D,Fs.rect(Tl,Du,cl,tl)}pr?Ol(Zi,As,Mi.dash,Mi.cap,Ta,Oo,No,Ls,xo):Mc(Dr,Zi,As,Mi.dash,Mi.cap,Ta,Oo,No,Ls,Fs,xo),Iu&&gr.translate(-Cu,-Cu)}function Mc(Dr,pr,Mi,Zi,Ta,Oo,No,xo,Ls,Fs,As){let Cu=!1;eu.forEach((Iu,Tl)=>{if(Iu.series[0]==Dr){let Du=Ao[Iu.series[1]],cl=$n[Iu.series[1]],tl=(Du._paths||or).band;yr(tl)&&(tl=Iu.dir==1?tl[0]:tl[1]);let Zl,Jl=null;Du.show&&tl&&Lt(cl,ys,qo)?(Jl=Iu.fill(ee,Tl)||Oo,Zl=Du._paths.clip):tl=null,Ol(pr,Mi,Zi,Ta,Jl,No,xo,Ls,Fs,As,Zl,tl),Cu=!0}}),Cu||Ol(pr,Mi,Zi,Ta,Oo,No,xo,Ls,Fs,As)}const hc=Fa|tn;function Ol(Dr,pr,Mi,Zi,Ta,Oo,No,xo,Ls,Fs,As,Cu){Tu(Dr,pr,Mi,Zi,Ta),(Ls||Fs||Cu)&&(gr.save(),Ls&&gr.clip(Ls),Fs&&gr.clip(Fs)),Cu?(xo&hc)==hc?(gr.clip(Cu),As&&gr.clip(As),wl(Ta,No),Nl(Dr,Oo,pr)):xo&tn?(wl(Ta,No),gr.clip(Cu),Nl(Dr,Oo,pr)):xo&Fa&&(gr.save(),gr.clip(Cu),As&&gr.clip(As),wl(Ta,No),gr.restore(),Nl(Dr,Oo,pr)):(wl(Ta,No),Nl(Dr,Oo,pr)),(Ls||Fs||Cu)&&gr.restore()}function Nl(Dr,pr,Mi){Mi>0&&(pr instanceof Map?pr.forEach((Zi,Ta)=>{gr.strokeStyle=tu=Ta,gr.stroke(Zi)}):pr!=null&&Dr&&gr.stroke(pr))}function wl(Dr,pr){pr instanceof Map?pr.forEach((Mi,Zi)=>{gr.fillStyle=Ou=Zi,gr.fill(Mi)}):pr!=null&&Dr&&gr.fill(pr)}function Fl(Dr,pr,Mi,Zi){let Ta=Fo[Dr],Oo;if(Zi<=0)Oo=[0,0];else{let No=Ta._space=Ta.space(ee,Dr,pr,Mi,Zi),xo=Ta._incrs=Ta.incrs(ee,Dr,pr,Mi,Zi,No);Oo=_t(pr,Mi,xo,Zi,No)}return Ta._found=Oo}function rc(Dr,pr,Mi,Zi,Ta,Oo,No,xo,Ls,Fs){let As=No%2/2;La==1&&gr.translate(As,As),Tu(xo,No,Ls,Fs,xo),gr.beginPath();let Cu,Iu,Tl,Du,cl=Ta+(Zi==0||Zi==3?-Oo:Oo);Mi==0?(Iu=Ta,Du=cl):(Cu=Ta,Tl=cl);for(let tl=0;tl<Dr.length;tl++)pr[tl]!=null&&(Mi==0?Cu=Tl=Dr[tl]:Iu=Du=Dr[tl],gr.moveTo(Cu,Iu),gr.lineTo(Tl,Du));gr.stroke(),La==1&&gr.translate(-As,-As)}function Ic(Dr){let pr=!0;return Fo.forEach((Mi,Zi)=>{if(!Mi.show)return;let Ta=Ho[Mi.scale];if(Ta.min==null){Mi._show&&(pr=!1,Mi._show=!1,$l(!1));return}else Mi._show||(pr=!1,Mi._show=!0,$l(!1));let Oo=Mi.side,No=Oo%2,{min:xo,max:Ls}=Ta,[Fs,As]=Fl(Zi,xo,Ls,No==0?Gi:_i);if(As==0)return;let Cu=Ta.distr==2,Iu=Mi._splits=Mi.splits(ee,Zi,xo,Ls,Fs,As,Cu),Tl=Ta.distr==2?Iu.map(Zl=>Ws[Zl]):Iu,Du=Ta.distr==2?Ws[Iu[1]]-Ws[Iu[0]]:Fs,cl=Mi._values=Mi.values(ee,Mi.filter(ee,Tl,Zi,As,Du),Zi,As,Du);Mi._rotate=Oo==2?Mi.rotate(ee,cl,Zi,As):0;let tl=Mi._size;Mi._size=Rt(Mi.size(ee,cl,Zi,Dr)),tl!=null&&Mi._size!=tl&&(pr=!1)}),pr}function kl(Dr){let pr=!0;return Lu.forEach((Mi,Zi)=>{let Ta=Mi(ee,Zi,Xu,Dr);Ta!=hu[Zi]&&(pr=!1),hu[Zi]=Ta}),pr}function Gc(){for(let Dr=0;Dr<Fo.length;Dr++){let pr=Fo[Dr];if(!pr.show||!pr._show)continue;let Mi=pr.side,Zi=Mi%2,Ta,Oo,No=pr.stroke(ee,Dr),xo=Mi==0||Mi==3?-1:1;if(pr.label){let Yi=pr.labelGap*xo,eo=rt((pr._lpos+Yi)*we);Vs(pr.labelFont[0],No,"center",Mi==2?j:re),gr.save(),Zi==1?(Ta=Oo=0,gr.translate(eo,rt(oo+Ga/2)),gr.rotate((Mi==3?-lt:lt)/2)):(Ta=rt(Pa+mo/2),Oo=eo),gr.fillText(pr.label,Ta,Oo),gr.restore()}let[Ls,Fs]=pr._found;if(Fs==0)continue;let As=Ho[pr.scale],Cu=Zi==0?mo:Ga,Iu=Zi==0?Pa:oo,Tl=rt(pr.gap*we),Du=pr._splits,cl=As.distr==2?Du.map(Yi=>Ws[Yi]):Du,tl=As.distr==2?Ws[Du[1]]-Ws[Du[0]]:Ls,Zl=pr.ticks,Jl=pr.border,Fe=Zl.show?rt(Zl.size*we):0,He=pr._rotate*-lt/180,Dt=Qa(pr._pos*we),gn=(Fe+Tl)*xo,Xn=Dt+gn;Oo=Zi==0?Xn:0,Ta=Zi==1?Xn:0;let cr=pr.font[0],jr=pr.align==1?X:pr.align==2?Z:He>0?X:He<0?Z:Zi==0?"center":Mi==3?Z:X,Hr=He||Zi==1?"middle":Mi==2?j:re;Vs(cr,No,jr,Hr);let sa=pr.font[1]*z,Ia=Du.map(Yi=>Qa(Ht(Yi,As,Cu,Iu))),Aa=pr._values;for(let Yi=0;Yi<Aa.length;Yi++){let eo=Aa[Yi];if(eo!=null){Zi==0?Ta=Ia[Yi]:Oo=Ia[Yi],eo=""+eo;let $o=eo.indexOf(` `)==-1?[eo]:eo.split(/\n/gm);for(let Cs=0;Cs<$o.length;Cs++){let vs=$o[Cs];He?(gr.save(),gr.translate(Ta,Oo+Cs*sa),gr.rotate(He),gr.fillText(vs,0,0),gr.restore()):gr.fillText(vs,Ta,Oo+Cs*sa)}}}Zl.show&&rc(Ia,Zl.filter(ee,cl,Dr,Fs,tl),Zi,Mi,Dt,Fe,mn(Zl.width*we,3),Zl.stroke(ee,Dr),Zl.dash,Zl.cap);let pa=pr.grid;pa.show&&rc(Ia,pa.filter(ee,cl,Dr,Fs,tl),Zi,Zi==0?2:1,Zi==0?oo:Pa,Zi==0?Ga:mo,mn(pa.width*we,3),pa.stroke(ee,Dr),pa.dash,pa.cap),Jl.show&&rc([Dt],[1],Zi==0?1:0,Zi==0?1:2,Zi==1?oo:Pa,Zi==1?Ga:mo,mn(Jl.width*we,3),Jl.stroke(ee,Dr),Jl.dash,Jl.cap)}Ec("drawAxes")}function $l(Dr){Ao.forEach((pr,Mi)=>{Mi>0&&(pr._paths=null,Dr&&(oe==1?(pr.min=null,pr.max=null):pr.facets.forEach(Zi=>{Zi.min=null,Zi.max=null})))})}let Ml=!1;function zc(){Ml||(_r(tf),Ml=!0)}function tf(){no&&(Ks(),no=!1),co&&(rs(),co=!1),ca&&(ue($i,X,da),ue($i,j,Sa),ue($i,_,Gi),ue($i,W,_i),ue(ma,X,da),ue(ma,j,Sa),ue(ma,_,Gi),ue(ma,W,_i),ue(Ai,_,ti),ue(Ai,W,xi),Yn.width=rt(ti*we),Yn.height=rt(xi*we),Fo.forEach(({_el:Dr,_show:pr,_size:Mi,_pos:Zi,side:Ta})=>{if(Dr!=null)if(pr){let Oo=Ta===3||Ta===0?Mi:0,No=Ta%2==1;ue(Dr,No?"left":"top",Zi-Oo),ue(Dr,No?"width":"height",Mi),ue(Dr,No?"top":"left",No?Sa:da),ue(Dr,No?"height":"width",No?_i:Gi),Re(Dr,y)}else nt(Dr,y)}),tu=Ou=Hs=ku=Nu=Fu=Ku=sl=pu=null,lu=1,sd(!0),Ec("setSize"),ca=!1),ti>0&&xi>0&&(gr.clearRect(0,0,Yn.width,Yn.height),Ec("drawClear"),an.forEach(Dr=>Dr()),Ec("draw")),al.show&&bo&&(Wl(al),bo=!1),Do.show&&Yo&&(bf(null,!0,!1),Yo=!1),Qi.show&&Qi.live&&Ea&&(pc(),Ea=!1),nn||(nn=!0,ee.status=1,Ec("ready")),Qo=!1,Ml=!1}ee.redraw=(Dr,pr)=>{co=pr||!1,Dr!==!1?Bl(ks,tr.min,tr.max):zc()};function _c(Dr,pr){let Mi=Ho[Dr];if(Mi.from==null){if(Js==0){let Zi=Mi.range(ee,pr.min,pr.max,Dr);pr.min=Zi[0],pr.max=Zi[1]}if(pr.min>pr.max){let Zi=pr.min;pr.min=pr.max,pr.max=Zi}if(Js>1&&pr.min!=null&&pr.max!=null&&pr.max-pr.min<1e-16)return;Dr==ks&&Mi.distr==2&&Js>0&&(pr.min=Oe(pr.min,$n[0]),pr.max=Oe(pr.max,$n[0]),pr.min==pr.max&&pr.max++),ki[Dr]=pr,no=!0,zc()}}ee.setScale=_c;let Cc,of,Qc,sc,ul,fc,lf,vc,yl,cf,_l,qu,ic=!1;const jl=Do.drag;let lc=jl.x,Rl=jl.y;Do.show&&(Do.x&&(Cc=ve(E,ma)),Do.y&&(of=ve(S,ma)),tr.ori==0?(Qc=Cc,sc=of):(Qc=of,sc=Cc),_l=Do.left,qu=Do.top);const al=ee.select=li({show:!0,over:!0,left:0,width:0,top:0,height:0},jt.select),ll=al.show?ve(b,al.over?ma:$i):null;function Wl(Dr,pr){if(al.show){for(let Mi in Dr)al[Mi]=Dr[Mi],Mi in zs&&ue(ll,Mi,Dr[Mi]);pr!==!1&&Ec("setSelect")}}ee.setSelect=Wl;function dc(Dr,pr){let Mi=Ao[Dr],Zi=ro?un[Dr]:null;Mi.show?Zi&&Re(Zi,y):(Zi&&nt(Zi,y),Os.length>1&&Ye(Os[Dr],-10,-10,Gi,_i))}function Bl(Dr,pr,Mi){_c(Dr,{min:pr,max:Mi})}function Pl(Dr,pr,Mi,Zi){pr.focus!=null&&yf(Dr),pr.show!=null&&Ao.forEach((Ta,Oo)=>{Oo>0&&(Dr==Oo||Dr==null)&&(Ta.show=pr.show,dc(Oo,pr.show),Bl(oe==2?Ta.facets[1].scale:Ta.scale,null,null),zc())}),Mi!==!1&&Ec("setSeries",Dr,pr),Zi&&$c("setSeries",ee,Dr,pr)}ee.setSeries=Pl;function Ll(Dr,pr){li(eu[Dr],pr)}function Oc(Dr,pr){Dr.fill=An(Dr.fill||null),Dr.dir=Bt(Dr.dir,-1),pr=pr??eu.length,eu.splice(pr,0,Dr)}function kc(Dr){Dr==null?eu.length=0:eu.splice(Dr,1)}ee.addBand=Oc,ee.setBand=Ll,ee.delBand=kc;function sf(Dr,pr){Ao[Dr].alpha=pr,Do.show&&Os[Dr]&&(Os[Dr].style.opacity=pr),ro&&un[Dr]&&(un[Dr].style.opacity=pr)}let Bc,Ef,Sf;const bc={focus:!0};function yf(Dr){if(Dr!=Sf){let pr=Dr==null,Mi=fs.alpha!=1;Ao.forEach((Zi,Ta)=>{let Oo=pr||Ta==0||Ta==Dr;Zi._focus=pr?null:Oo,Mi&&sf(Ta,Oo?1:fs.alpha)}),Sf=Dr,Mi&&zc()}}ro&&is&&tt(V,Nt,Dr=>{Do._lock||Sf!=null&&Pl(null,bc,!0,Tc.setSeries)});function xc(Dr,pr,Mi){let Zi=Ho[pr];Mi&&(Dr=Dr/we-(Zi.ori==1?Sa:da));let Ta=Gi;Zi.ori==1&&(Ta=_i,Dr=Ta-Dr),Zi.dir==-1&&(Dr=Ta-Dr);let Oo=Zi._min,No=Zi._max,xo=Dr/Ta,Ls=Oo+(No-Oo)*xo,Fs=Zi.distr;return Fs==3?Jn(10,Ls):Fs==4?wt(Ls,Zi.asinh):Ls}function Mf(Dr,pr){let Mi=xc(Dr,ks,pr);return Oe(Mi,$n[0],ys,qo)}ee.valToIdx=Dr=>Oe(Dr,$n[0]),ee.posToIdx=Mf,ee.posToVal=xc,ee.valToPos=(Dr,pr,Mi)=>Ho[pr].ori==0?Be(Dr,Ho[pr],Mi?mo:Gi,Mi?Pa:0):gt(Dr,Ho[pr],Mi?Ga:_i,Mi?oo:0);function Bu(Dr){Dr(ee),zc()}ee.batch=Bu,ee.setCursor=(Dr,pr,Mi)=>{_l=Dr.left,qu=Dr.top,bf(null,pr,Mi)};function vl(Dr,pr){ue(ll,X,al.left=Dr),ue(ll,_,al.width=pr)}function Qu(Dr,pr){ue(ll,j,al.top=Dr),ue(ll,W,al.height=pr)}let Vl=tr.ori==0?vl:Qu,Ul=tr.ori==1?vl:Qu;function gs(){if(ro&&Qi.live)for(let Dr=oe==2?1:0;Dr<Ao.length;Dr++){if(Dr==0&&sr)continue;let pr=Qi.values[Dr],Mi=0;for(let Zi in pr)xn[Dr][Mi++].firstChild.nodeValue=pr[Zi]}}function pc(Dr,pr){Dr!=null&&(Dr.idxs?Dr.idxs.forEach((Mi,Zi)=>{Va[Zi]=Mi}):Yr(Dr.idx)||Va.fill(Dr.idx),Qi.idx=Va[0]);for(let Mi=0;Mi<Ao.length;Mi++)(Mi>0||oe==1&&!sr)&&Hc(Mi,Va[Mi]);ro&&Qi.live&&gs(),Ea=!1,pr!==!1&&Ec("setLegend")}ee.setLegend=pc;function Hc(Dr,pr){let Mi=Ao[Dr],Zi=Dr==0&&In==2?Ws:$n[Dr],Ta;sr?Ta=Mi.values(ee,Dr,pr)??Tr:(Ta=Mi.value(ee,pr==null?null:Zi[pr],Dr,pr),Ta=Ta==null?Tr:{_:Ta}),Qi.values[Dr]=Ta}function bf(Dr,pr,Mi){yl=_l,cf=qu,[_l,qu]=Do.move(ee,_l,qu),Do.show&&(Qc&&Ye(Qc,rt(_l),0,Gi,_i),sc&&Ye(sc,0,rt(qu),Gi,_i));let Zi,Ta=ys>qo;Bc=Ut;let Oo=tr.ori==0?Gi:_i,No=tr.ori==1?Gi:_i;if(_l<0||Js==0||Ta){Zi=null;for(let xo=0;xo<Ao.length;xo++)xo>0&&Os.length>1&&Ye(Os[xo],-10,-10,Gi,_i);is&&Pl(null,bc,!0,Dr==null&&Tc.setSeries),Qi.live&&(Va.fill(Zi),Ea=!0)}else{let xo,Ls,Fs;oe==1&&(xo=tr.ori==0?_l:qu,Ls=xc(xo,ks),Zi=Oe(Ls,$n[0],ys,qo),Fs=di($n[0][Zi],tr,Oo,0));for(let As=oe==2?1:0;As<Ao.length;As++){let Cu=Ao[As],Iu=Va[As],Tl=oe==1?$n[As][Iu]:$n[As][1][Iu],Du=Do.dataIdx(ee,As,Zi,Ls),cl=oe==1?$n[As][Du]:$n[As][1][Du];Ea=Ea||cl!=Tl||Du!=Iu,Va[As]=Du;let tl=Tt(Du==Zi?Fs:di(oe==1?$n[0][Du]:$n[As][0][Du],tr,Oo,0),1);if(As>0&&Cu.show){let Zl=cl==null?-10:Tt(oi(cl,oe==1?Ho[Cu.scale]:Ho[Cu.facets[1].scale],No,0),1);if(is&&Zl>=0&&oe==1){let He=at(Zl-qu),Dt=fs.bias;if(Dt!=0){let gn=tr.ori==1?_l:qu,Xn=xc(gn,Cu.scale),cr=cl>=0?1:-1,jr=Xn>=0?1:-1;jr==cr&&He<Bc&&(jr==1?Dt==1?cl>=Xn:cl<=Xn:Dt==1?cl<=Xn:cl>=Xn)&&(Bc=He,Ef=As)}else He<Bc&&(Bc=He,Ef=As)}let Jl,Fe;if(tr.ori==0?(Jl=tl,Fe=Zl):(Jl=Zl,Fe=tl),Ea&&Os.length>1){At(Os[As],Do.points.fill(ee,As),Do.points.stroke(ee,As));let He,Dt,gn,Xn,cr=!0,jr=Do.points.bbox;if(jr!=null){cr=!1;let Hr=jr(ee,As);gn=Hr.left,Xn=Hr.top,He=Hr.width,Dt=Hr.height}else gn=Jl,Xn=Fe,He=Dt=Do.points.size(ee,As);Ce(Os[As],He,Dt,cr),Ye(Os[As],gn,Xn,Gi,_i)}}}}if(Do.idx=Zi,Do.left=_l,Do.top=qu,Ea&&(Qi.idx=Zi,pc()),al.show&&ic)if(Dr!=null){let[xo,Ls]=Tc.scales,[Fs,As]=Tc.match,[Cu,Iu]=Dr.cursor.sync.scales,Tl=Dr.cursor.drag;if(lc=Tl._x,Rl=Tl._y,lc||Rl){let{left:Du,top:cl,width:tl,height:Zl}=Dr.select,Jl=Dr.scales[xo].ori,Fe=Dr.posToVal,He,Dt,gn,Xn,cr,jr=xo!=null&&Fs(xo,Cu),Hr=Ls!=null&&As(Ls,Iu);jr&&lc?(Jl==0?(He=Du,Dt=tl):(He=cl,Dt=Zl),gn=Ho[xo],Xn=di(Fe(He,Cu),gn,Oo,0),cr=di(Fe(He+Dt,Cu),gn,Oo,0),Vl(rn(Xn,cr),at(cr-Xn))):Vl(0,Oo),Hr&&Rl?(Jl==1?(He=Du,Dt=tl):(He=cl,Dt=Zl),gn=Ho[Ls],Xn=oi(Fe(He,Iu),gn,No,0),cr=oi(Fe(He+Dt,Iu),gn,No,0),Ul(rn(Xn,cr),at(cr-Xn))):Ul(0,No)}else Of()}else{let xo=at(yl-ul),Ls=at(cf-fc);if(tr.ori==1){let Iu=xo;xo=Ls,Ls=Iu}lc=jl.x&&xo>=jl.dist,Rl=jl.y&&Ls>=jl.dist;let Fs=jl.uni;Fs!=null?lc&&Rl&&(lc=xo>=Fs,Rl=Ls>=Fs,!lc&&!Rl&&(Ls>xo?Rl=!0:lc=!0)):jl.x&&jl.y&&(lc||Rl)&&(lc=Rl=!0);let As,Cu;lc&&(tr.ori==0?(As=lf,Cu=_l):(As=vc,Cu=qu),Vl(rn(As,Cu),at(Cu-As)),Rl||Ul(0,No)),Rl&&(tr.ori==1?(As=lf,Cu=_l):(As=vc,Cu=qu),Ul(rn(As,Cu),at(Cu-As)),lc||Vl(0,Oo)),!lc&&!Rl&&(Vl(0,0),Ul(0,0))}if(jl._x=lc,jl._y=Rl,Dr==null){if(Mi){if(md!=null){let[xo,Ls]=Tc.scales;Tc.values[0]=xo!=null?xc(tr.ori==0?_l:qu,xo):null,Tc.values[1]=Ls!=null?xc(tr.ori==1?_l:qu,Ls):null}$c(L,ee,_l,qu,Gi,_i,Zi)}if(is){let xo=Mi&&Tc.setSeries,Ls=fs.prox;Sf==null?Bc<=Ls&&Pl(Ef,bc,!0,xo):Bc>Ls?Pl(null,bc,!0,xo):Ef!=Sf&&Pl(Ef,bc,!0,xo)}}pr!==!1&&Ec("setCursor")}let Kc=null;function sd(Dr){Dr===!0?Kc=null:(Kc=ma.getBoundingClientRect(),Ec("syncRect",Kc))}function Ed(Dr,pr,Mi,Zi,Ta,Oo,No){Do._lock||ic&&Dr!=null&&Dr.movementX==0&&Dr.movementY==0||(Jc(Dr,pr,Mi,Zi,Ta,Oo,No,!1,Dr!=null),Dr!=null?bf(null,!0,!0):bf(pr,!0,!1))}function Jc(Dr,pr,Mi,Zi,Ta,Oo,No,xo,Ls){if(Kc==null&&sd(!1),Dr!=null)Mi=Dr.clientX-Kc.left,Zi=Dr.clientY-Kc.top;else{if(Mi<0||Zi<0){_l=-10,qu=-10;return}let[Fs,As]=Tc.scales,Cu=pr.cursor.sync,[Iu,Tl]=Cu.values,[Du,cl]=Cu.scales,[tl,Zl]=Tc.match,Jl=pr.axes[0].side%2==1,Fe=tr.ori==0?Gi:_i,He=tr.ori==1?Gi:_i,Dt=Jl?Oo:Ta,gn=Jl?Ta:Oo,Xn=Jl?Zi:Mi,cr=Jl?Mi:Zi;if(Du!=null?Mi=tl(Fs,Du)?Ht(Iu,Ho[Fs],Fe,0):-10:Mi=Fe*(Xn/Dt),cl!=null?Zi=Zl(As,cl)?Ht(Tl,Ho[As],He,0):-10:Zi=He*(cr/gn),tr.ori==1){let jr=Mi;Mi=Zi,Zi=jr}}Ls&&((Mi<=1||Mi>=Gi-1)&&(Mi=fn(Mi,Gi)),(Zi<=1||Zi>=_i-1)&&(Zi=fn(Zi,_i))),xo?(ul=Mi,fc=Zi,[lf,vc]=Do.move(ee,Mi,Zi)):(_l=Mi,qu=Zi)}const zs={width:0,height:0,left:0,top:0};function Of(){Wl(zs,!1)}function nf(Dr,pr,Mi,Zi,Ta,Oo,No){ic=!0,lc=Rl=jl._x=jl._y=!1,Jc(Dr,pr,Mi,Zi,Ta,Oo,No,!0,!1),Dr!=null&&(xr(k,he,df),$c($,ee,lf,vc,Gi,_i,null))}function df(Dr,pr,Mi,Zi,Ta,Oo,No){ic=jl._x=jl._y=!1,Jc(Dr,pr,Mi,Zi,Ta,Oo,No,!1,!0);let{left:xo,top:Ls,width:Fs,height:As}=al,Cu=Fs>0||As>0;if(Cu&&Wl(al),jl.setScale&&Cu){let Iu=xo,Tl=Fs,Du=Ls,cl=As;if(tr.ori==1&&(Iu=Ls,Tl=As,Du=xo,cl=Fs),lc&&Bl(ks,xc(Iu,ks),xc(Iu+Tl,ks)),Rl)for(let tl in Ho){let Zl=Ho[tl];tl!=ks&&Zl.from==null&&Zl.min!=Ut&&Bl(tl,xc(Du+cl,tl),xc(Du,tl))}Of()}else Do.lock&&(Do._lock=!Do._lock,Do._lock||bf(null,!0,!1));Dr!=null&&(Wr(k,he),$c(k,ee,_l,qu,Gi,_i,null))}function Wf(Dr,pr,Mi,Zi,Ta,Oo,No){if(!Do._lock){let xo=ic;if(ic){let Ls=!0,Fs=!0,As=10,Cu,Iu;tr.ori==0?(Cu=lc,Iu=Rl):(Cu=Rl,Iu=lc),Cu&&Iu&&(Ls=_l<=As||_l>=Gi-As,Fs=qu<=As||qu>=_i-As),Cu&&Ls&&(_l=_l<lf?0:Gi),Iu&&Fs&&(qu=qu<vc?0:_i),bf(null,!0,!0),ic=!1}_l=-10,qu=-10,bf(null,!0,!0),xo&&(ic=xo)}}function td(Dr,pr,Mi,Zi,Ta,Oo,No){zu(),Of(),Dr!=null&&$c(pe,ee,_l,qu,Gi,_i,null)}function _f(){Fo.forEach(Pr),ko(ee.width,ee.height,!0)}tt(ie,me,_f);const ff={};ff.mousedown=nf,ff.mousemove=Ed,ff.mouseup=df,ff.dblclick=td,ff.setSeries=(Dr,pr,Mi,Zi)=>{Pl(Mi,Zi,!0,!1)},Do.show&&(xr($,ma,nf),xr(L,ma,Ed),xr(F,ma,sd),xr(V,ma,Wf),xr(pe,ma,td),bu.add(ee),ee.syncRect=sd);const Lf=ee.hooks=jt.hooks||{};function Ec(Dr,pr,Mi){Dr in Lf&&Lf[Dr].forEach(Zi=>{Zi.call(null,ee,pr,Mi)})}(jt.plugins||[]).forEach(Dr=>{for(let pr in Dr.hooks)Lf[pr]=(Lf[pr]||[]).concat(Dr.hooks[pr])});const Tc=li({key:null,setSeries:!1,filters:{pub:it,sub:it},scales:[ks,Ao[1]?Ao[1].scale:null],match:[qt,qt],values:[null,null]},Do.sync);Do.sync=Tc;const md=Tc.key,Vc=aa(md);function $c(Dr,pr,Mi,Zi,Ta,Oo,No){Tc.filters.pub(Dr,pr,Mi,Zi,Ta,Oo,No)&&Vc.pub(Dr,pr,Mi,Zi,Ta,Oo,No)}Vc.sub(ee);function gc(Dr,pr,Mi,Zi,Ta,Oo,No){Tc.filters.sub(Dr,pr,Mi,Zi,Ta,Oo,No)&&ff[Dr](null,pr,Mi,Zi,Ta,Oo,No)}ee.pub=gc;function qc(){Vc.unsub(ee),bu.delete(ee),fi.clear(),ke(ie,me,_f),Rn.remove(),Nt?.remove(),Ec("destroy")}ee.destroy=qc;function If(){Ec("init",jt,$n),ds($n||jt.data,!1),ki[ks]?_c(ks,ki[ks]):zu(),bo=al.show,Yo=Ea=!0,ko(jt.width,jt.height)}return Ao.forEach(du),Fo.forEach(su),pn?pn instanceof HTMLElement?(pn.appendChild(Rn),If()):pn(ee,If):If(),ee}Hi.assign=li,Hi.fmtNum=vt,Hi.rangeNum=Yt,Hi.rangeLog=ut,Hi.rangeAsinh=Ne,Hi.orient=cn,Hi.pxRatio=we,Hi.join=Qn,Hi.fmtDate=rr,Hi.tzDate=Ir,Hi.sync=aa;{Hi.addGap=_a,Hi.clipGaps=ua;let jt=Hi.paths={points:ka};jt.linear=Is,jt.stepped=xs,jt.bars=Zs,jt.spline=Us}},99817:(C,c,t)=>{"use strict";t.d(c,{S:()=>s});const i=[];for(let l=0;l<256;++l)i.push((l+256).toString(16).slice(1));function s(l,h=0){return(i[l[h+0]]+i[l[h+1]]+i[l[h+2]]+i[l[h+3]]+"-"+i[l[h+4]]+i[l[h+5]]+"-"+i[l[h+6]]+i[l[h+7]]+"-"+i[l[h+8]]+i[l[h+9]]+"-"+i[l[h+10]]+i[l[h+11]]+i[l[h+12]]+i[l[h+13]]+i[l[h+14]]+i[l[h+15]]).toLowerCase()}function u(l,h=0){const p=s(l,h);if(!validate(p))throw TypeError("Stringified UUID is invalid");return p}var v=null},66117:(C,c,t)=>{"use strict";t.d(c,{Z:()=>d});const s={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let u;const v=new Uint8Array(16);function l(){if(!u&&(u=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!u))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(v)}var h=t(99817);function p(f,g,y){if(s.randomUUID&&!g&&!f)return s.randomUUID();f=f||{};const b=f.random||(f.rng||l)();if(b[6]=b[6]&15|64,b[8]=b[8]&63|128,g){y=y||0;for(let E=0;E<16;++E)g[y+E]=b[E];return g}return(0,h.S)(b)}const d=p},75022:C=>{C.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},23993:(C,c,t)=>{"use strict";var i=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof i<"u"&&i,s={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function u(j){return j&&DataView.prototype.isPrototypeOf(j)}if(s.arrayBuffer)var v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(j){return j&&v.indexOf(Object.prototype.toString.call(j))>-1};function h(j){if(typeof j!="string"&&(j=String(j)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(j)||j==="")throw new TypeError('Invalid character in header field name: "'+j+'"');return j.toLowerCase()}function p(j){return typeof j!="string"&&(j=String(j)),j}function d(j){var re={next:function(){var X=j.shift();return{done:X===void 0,value:X}}};return s.iterable&&(re[Symbol.iterator]=function(){return re}),re}function f(j){this.map={},j instanceof f?j.forEach(function(re,X){this.append(X,re)},this):Array.isArray(j)?j.forEach(function(re){this.append(re[0],re[1])},this):j&&Object.getOwnPropertyNames(j).forEach(function(re){this.append(re,j[re])},this)}f.prototype.append=function(j,re){j=h(j),re=p(re);var X=this.map[j];this.map[j]=X?X+", "+re:re},f.prototype.delete=function(j){delete this.map[h(j)]},f.prototype.get=function(j){return j=h(j),this.has(j)?this.map[j]:null},f.prototype.has=function(j){return this.map.hasOwnProperty(h(j))},f.prototype.set=function(j,re){this.map[h(j)]=p(re)},f.prototype.forEach=function(j,re){for(var X in this.map)this.map.hasOwnProperty(X)&&j.call(re,this.map[X],X,this)},f.prototype.keys=function(){var j=[];return this.forEach(function(re,X){j.push(X)}),d(j)},f.prototype.values=function(){var j=[];return this.forEach(function(re){j.push(re)}),d(j)},f.prototype.entries=function(){var j=[];return this.forEach(function(re,X){j.push([X,re])}),d(j)},s.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function g(j){if(j.bodyUsed)return Promise.reject(new TypeError("Already read"));j.bodyUsed=!0}function y(j){return new Promise(function(re,X){j.onload=function(){re(j.result)},j.onerror=function(){X(j.error)}})}function b(j){var re=new FileReader,X=y(re);return re.readAsArrayBuffer(j),X}function E(j){var re=new FileReader,X=y(re);return re.readAsText(j),X}function S(j){for(var re=new Uint8Array(j),X=new Array(re.length),Z=0;Z<re.length;Z++)X[Z]=String.fromCharCode(re[Z]);return X.join("")}function w(j){if(j.slice)return j.slice(0);var re=new Uint8Array(j.byteLength);return re.set(new Uint8Array(j)),re.buffer}function x(){return this.bodyUsed=!1,this._initBody=function(j){this.bodyUsed=this.bodyUsed,this._bodyInit=j,j?typeof j=="string"?this._bodyText=j:s.blob&&Blob.prototype.isPrototypeOf(j)?this._bodyBlob=j:s.formData&&FormData.prototype.isPrototypeOf(j)?this._bodyFormData=j:s.searchParams&&URLSearchParams.prototype.isPrototypeOf(j)?this._bodyText=j.toString():s.arrayBuffer&&s.blob&&u(j)?(this._bodyArrayBuffer=w(j.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(j)||l(j))?this._bodyArrayBuffer=w(j):this._bodyText=j=Object.prototype.toString.call(j):this._bodyText="",this.headers.get("content-type")||(typeof j=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):s.searchParams&&URLSearchParams.prototype.isPrototypeOf(j)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s.blob&&(this.blob=function(){var j=g(this);if(j)return j;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var j=g(this);return j||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(b)}),this.text=function(){var j=g(this);if(j)return j;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(S(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s.formData&&(this.formData=function(){return this.text().then(A)}),this.json=function(){return this.text().then(JSON.parse)},this}var P=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function R(j){var re=j.toUpperCase();return P.indexOf(re)>-1?re:j}function T(j,re){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');re=re||{};var X=re.body;if(j instanceof T){if(j.bodyUsed)throw new TypeError("Already read");this.url=j.url,this.credentials=j.credentials,re.headers||(this.headers=new f(j.headers)),this.method=j.method,this.mode=j.mode,this.signal=j.signal,!X&&j._bodyInit!=null&&(X=j._bodyInit,j.bodyUsed=!0)}else this.url=String(j);if(this.credentials=re.credentials||this.credentials||"same-origin",(re.headers||!this.headers)&&(this.headers=new f(re.headers)),this.method=R(re.method||this.method||"GET"),this.mode=re.mode||this.mode||null,this.signal=re.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&X)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(X),(this.method==="GET"||this.method==="HEAD")&&(re.cache==="no-store"||re.cache==="no-cache")){var Z=/([?&])_=[^&]*/;if(Z.test(this.url))this.url=this.url.replace(Z,"$1_="+new Date().getTime());else{var J=/\?/;this.url+=(J.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}T.prototype.clone=function(){return new T(this,{body:this._bodyInit})};function A(j){var re=new FormData;return j.trim().split("&").forEach(function(X){if(X){var Z=X.split("="),J=Z.shift().replace(/\+/g," "),q=Z.join("=").replace(/\+/g," ");re.append(decodeURIComponent(J),decodeURIComponent(q))}}),re}function I(j){var re=new f,X=j.replace(/\r?\n[\t ]+/g," ");return X.split("\r").map(function(Z){return Z.indexOf(` `)===0?Z.substr(1,Z.length):Z}).forEach(function(Z){var J=Z.split(":"),q=J.shift().trim();if(q){var L=J.join(":").trim();re.append(q,L)}}),re}x.call(T.prototype);function N(j,re){if(!(this instanceof N))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');re||(re={}),this.type="default",this.status=re.status===void 0?200:re.status,this.ok=this.status>=200&&this.status<300,this.statusText=re.statusText===void 0?"":""+re.statusText,this.headers=new f(re.headers),this.url=re.url||"",this._initBody(j)}x.call(N.prototype),N.prototype.clone=function(){return new N(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},N.error=function(){var j=new N(null,{status:0,statusText:""});return j.type="error",j};var K=[301,302,303,307,308];N.redirect=function(j,re){if(K.indexOf(re)===-1)throw new RangeError("Invalid status code");return new N(null,{status:re,headers:{location:j}})};var _=i.DOMException;try{new _}catch{_=function(re,X){this.message=re,this.name=X;var Z=Error(re);this.stack=Z.stack},_.prototype=Object.create(Error.prototype),_.prototype.constructor=_}function W(j,re){return new Promise(function(X,Z){var J=new T(j,re);if(J.signal&&J.signal.aborted)return Z(new _("Aborted","AbortError"));var q=new XMLHttpRequest;function L(){q.abort()}q.onload=function(){var k={status:q.status,statusText:q.statusText,headers:I(q.getAllResponseHeaders()||"")};k.url="responseURL"in q?q.responseURL:k.headers.get("X-Request-URL");var F="response"in q?q.response:q.responseText;setTimeout(function(){X(new N(F,k))},0)},q.onerror=function(){setTimeout(function(){Z(new TypeError("Network request failed"))},0)},q.ontimeout=function(){setTimeout(function(){Z(new TypeError("Network request failed"))},0)},q.onabort=function(){setTimeout(function(){Z(new _("Aborted","AbortError"))},0)};function $(k){try{return k===""&&i.location.href?i.location.href:k}catch{return k}}q.open(J.method,$(J.url),!0),J.credentials==="include"?q.withCredentials=!0:J.credentials==="omit"&&(q.withCredentials=!1),"responseType"in q&&(s.blob?q.responseType="blob":s.arrayBuffer&&J.headers.get("Content-Type")&&J.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(q.responseType="arraybuffer")),re&&typeof re.headers=="object"&&!(re.headers instanceof f)?Object.getOwnPropertyNames(re.headers).forEach(function(k){q.setRequestHeader(k,p(re.headers[k]))}):J.headers.forEach(function(k,F){q.setRequestHeader(F,k)}),J.signal&&(J.signal.addEventListener("abort",L),q.onreadystatechange=function(){q.readyState===4&&J.signal.removeEventListener("abort",L)}),q.send(typeof J._bodyInit>"u"?null:J._bodyInit)})}W.polyfill=!0,i.fetch||(i.fetch=W,i.Headers=f,i.Request=T,i.Response=N)},48805:(C,c,t)=>{var i=t(40182).FilterCSS,s=t(40182).getDefaultWhiteList,u=t(54011);function v(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var l=new i;function h($,k,F){}function p($,k,F){}function d($,k,F){}function f($,k,F){}function g($){return $.replace(b,"<").replace(E,">")}function y($,k,F,V){if(F=re(F),k==="href"||k==="src"){if(F=u.trim(F),F==="#")return"#";if(!(F.substr(0,7)==="http://"||F.substr(0,8)==="https://"||F.substr(0,7)==="mailto:"||F.substr(0,4)==="tel:"||F.substr(0,11)==="data:image/"||F.substr(0,6)==="ftp://"||F.substr(0,2)==="./"||F.substr(0,3)==="../"||F[0]==="#"||F[0]==="/"))return""}else if(k==="background"){if(T.lastIndex=0,T.test(F))return""}else if(k==="style"){if(A.lastIndex=0,A.test(F)||(I.lastIndex=0,I.test(F)&&(T.lastIndex=0,T.test(F))))return"";V!==!1&&(V=V||l,F=V.process(F))}return F=X(F),F}var b=/</g,E=/>/g,S=/"/g,w=/"/g,x=/&#([a-zA-Z0-9]*);?/gim,P=/:?/gim,R=/&newline;?/gim,T=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,A=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,I=/u\s*r\s*l\s*\(.*/gi;function N($){return $.replace(S,""")}function K($){return $.replace(w,'"')}function _($){return $.replace(x,function(F,V){return V[0]==="x"||V[0]==="X"?String.fromCharCode(parseInt(V.substr(1),16)):String.fromCharCode(parseInt(V,10))})}function W($){return $.replace(P,":").replace(R," ")}function j($){for(var k="",F=0,V=$.length;F<V;F++)k+=$.charCodeAt(F)<32?" ":$.charAt(F);return u.trim(k)}function re($){return $=K($),$=_($),$=W($),$=j($),$}function X($){return $=N($),$=g($),$}function Z(){return""}function J($,k){typeof k!="function"&&(k=function(){});var F=!Array.isArray($);function V(G){return F?!0:u.indexOf($,G)!==-1}var pe=[],ce=!1;return{onIgnoreTag:function(G,te,ie){if(V(G))if(ie.isClosing){var fe="[/removed]",Se=ie.position+fe.length;return pe.push([ce!==!1?ce:ie.position,Se]),ce=!1,fe}else return ce||(ce=ie.position),"[removed]";else return k(G,te,ie)},remove:function(G){var te="",ie=0;return u.forEach(pe,function(fe){te+=G.slice(ie,fe[0]),ie=fe[1]}),te+=G.slice(ie),te}}}function q($){for(var k="",F=0;F<$.length;){var V=$.indexOf("<!--",F);if(V===-1){k+=$.slice(F);break}k+=$.slice(F,V);var pe=$.indexOf("-->",V);if(pe===-1)break;F=pe+3}return k}function L($){var k=$.split("");return k=k.filter(function(F){var V=F.charCodeAt(0);return V===127?!1:V<=31?V===10||V===13:!0}),k.join("")}c.whiteList=v(),c.getDefaultWhiteList=v,c.onTag=h,c.onIgnoreTag=p,c.onTagAttr=d,c.onIgnoreTagAttr=f,c.safeAttrValue=y,c.escapeHtml=g,c.escapeQuote=N,c.unescapeQuote=K,c.escapeHtmlEntities=_,c.escapeDangerHtml5Entities=W,c.clearNonPrintableCharacter=j,c.friendlyAttrValue=re,c.escapeAttrValue=X,c.onIgnoreTagStripAll=Z,c.StripTagBody=J,c.stripCommentTag=q,c.stripBlankChar=L,c.cssFilter=l,c.getDefaultCSSWhiteList=s},3182:(C,c,t)=>{var i=t(48805),s=t(67969),u=t(90025);function v(h,p){var d=new u(p);return d.process(h)}c=C.exports=v,c.filterXSS=v,c.FilterXSS=u,function(){for(var h in i)c[h]=i[h];for(var p in s)c[p]=s[p]}(),typeof window<"u"&&(window.filterXSS=C.exports);function l(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}l()&&(self.filterXSS=C.exports)},67969:(C,c,t)=>{var i=t(54011);function s(b){var E=i.spaceIndex(b),S;return E===-1?S=b.slice(1,-1):S=b.slice(1,E+1),S=i.trim(S).toLowerCase(),S.slice(0,1)==="/"&&(S=S.slice(1)),S.slice(-1)==="/"&&(S=S.slice(0,-1)),S}function u(b){return b.slice(0,2)==="</"}function v(b,E,S){"use strict";var w="",x=0,P=!1,R=!1,T=0,A=b.length,I="",N="";e:for(T=0;T<A;T++){var K=b.charAt(T);if(P===!1){if(K==="<"){P=T;continue}}else if(R===!1){if(K==="<"){w+=S(b.slice(x,T)),P=T,x=T;continue}if(K===">"||T===A-1){w+=S(b.slice(x,P)),N=b.slice(P,T+1),I=s(N),w+=E(P,w.length,I,N,u(N)),x=T+1,P=!1;continue}if(K==='"'||K==="'")for(var _=1,W=b.charAt(T-_);W.trim()===""||W==="=";){if(W==="="){R=K;continue e}W=b.charAt(T-++_)}}else if(K===R){R=!1;continue}}return x<A&&(w+=S(b.substr(x))),w}var l=/[^a-zA-Z0-9\\_:.-]/gim;function h(b,E){"use strict";var S=0,w=0,x=[],P=!1,R=b.length;function T(_,W){if(_=i.trim(_),_=_.replace(l,"").toLowerCase(),!(_.length<1)){var j=E(_,W||"");j&&x.push(j)}}for(var A=0;A<R;A++){var I=b.charAt(A),N,K;if(P===!1&&I==="="){P=b.slice(S,A),S=A+1,w=b.charAt(S)==='"'||b.charAt(S)==="'"?S:d(b,A+1);continue}if(P!==!1&&A===w){if(K=b.indexOf(I,A+1),K===-1)break;N=i.trim(b.slice(w+1,K)),T(P,N),P=!1,A=K,S=A+1;continue}if(/\s|\n|\t/.test(I))if(b=b.replace(/\s|\n|\t/g," "),P===!1)if(K=p(b,A),K===-1){N=i.trim(b.slice(S,A)),T(N),P=!1,S=A+1;continue}else{A=K-1;continue}else if(K=f(b,A-1),K===-1){N=i.trim(b.slice(S,A)),N=y(N),T(P,N),P=!1,S=A+1;continue}else continue}return S<b.length&&(P===!1?T(b.slice(S)):T(P,y(i.trim(b.slice(S))))),i.trim(x.join(" "))}function p(b,E){for(;E<b.length;E++){var S=b[E];if(S!==" ")return S==="="?E:-1}}function d(b,E){for(;E<b.length;E++){var S=b[E];if(S!==" ")return S==="'"||S==='"'?E:-1}}function f(b,E){for(;E>0;E--){var S=b[E];if(S!==" ")return S==="="?E:-1}}function g(b){return b[0]==='"'&&b[b.length-1]==='"'||b[0]==="'"&&b[b.length-1]==="'"}function y(b){return g(b)?b.substr(1,b.length-2):b}c.parseTag=v,c.parseAttr=h},54011:C=>{C.exports={indexOf:function(c,t){var i,s;if(Array.prototype.indexOf)return c.indexOf(t);for(i=0,s=c.length;i<s;i++)if(c[i]===t)return i;return-1},forEach:function(c,t,i){var s,u;if(Array.prototype.forEach)return c.forEach(t,i);for(s=0,u=c.length;s<u;s++)t.call(i,c[s],s,c)},trim:function(c){return String.prototype.trim?c.trim():c.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(c){var t=/\s|\n|\t/,i=t.exec(c);return i?i.index:-1}}},90025:(C,c,t)=>{var i=t(40182).FilterCSS,s=t(48805),u=t(67969),v=u.parseTag,l=u.parseAttr,h=t(54011);function p(b){return b==null}function d(b){var E=h.spaceIndex(b);if(E===-1)return{html:"",closing:b[b.length-2]==="/"};b=h.trim(b.slice(E+1,-1));var S=b[b.length-1]==="/";return S&&(b=h.trim(b.slice(0,-1))),{html:b,closing:S}}function f(b){var E={};for(var S in b)E[S]=b[S];return E}function g(b){var E={};for(var S in b)Array.isArray(b[S])?E[S.toLowerCase()]=b[S].map(function(w){return w.toLowerCase()}):E[S.toLowerCase()]=b[S];return E}function y(b){b=f(b||{}),b.stripIgnoreTag&&(b.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),b.onIgnoreTag=s.onIgnoreTagStripAll),b.whiteList||b.allowList?b.whiteList=g(b.whiteList||b.allowList):b.whiteList=s.whiteList,b.onTag=b.onTag||s.onTag,b.onTagAttr=b.onTagAttr||s.onTagAttr,b.onIgnoreTag=b.onIgnoreTag||s.onIgnoreTag,b.onIgnoreTagAttr=b.onIgnoreTagAttr||s.onIgnoreTagAttr,b.safeAttrValue=b.safeAttrValue||s.safeAttrValue,b.escapeHtml=b.escapeHtml||s.escapeHtml,this.options=b,b.css===!1?this.cssFilter=!1:(b.css=b.css||{},this.cssFilter=new i(b.css))}y.prototype.process=function(b){if(b=b||"",b=b.toString(),!b)return"";var E=this,S=E.options,w=S.whiteList,x=S.onTag,P=S.onIgnoreTag,R=S.onTagAttr,T=S.onIgnoreTagAttr,A=S.safeAttrValue,I=S.escapeHtml,N=E.cssFilter;S.stripBlankChar&&(b=s.stripBlankChar(b)),S.allowCommentTag||(b=s.stripCommentTag(b));var K=!1;S.stripIgnoreTagBody&&(K=s.StripTagBody(S.stripIgnoreTagBody,P),P=K.onIgnoreTag);var _=v(b,function(W,j,re,X,Z){var J={sourcePosition:W,position:j,isClosing:Z,isWhite:Object.prototype.hasOwnProperty.call(w,re)},q=x(re,X,J);if(!p(q))return q;if(J.isWhite){if(J.isClosing)return"</"+re+">";var L=d(X),$=w[re],k=l(L.html,function(F,V){var pe=h.indexOf($,F)!==-1,ce=R(re,F,V,pe);return p(ce)?pe?(V=A(re,F,V,N),V?F+'="'+V+'"':F):(ce=T(re,F,V,pe),p(ce)?void 0:ce):ce});return X="<"+re,k&&(X+=" "+k),L.closing&&(X+=" /"),X+=">",X}else return q=P(re,X,J),p(q)?I(X):q},I);return K&&(_=K.remove(_)),_},C.exports=y},26653:C=>{"use strict";C.exports=function(c){c.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},62430:(C,c,t)=>{"use strict";C.exports=i,i.Node=l,i.create=i;function i(h){var p=this;if(p instanceof i||(p=new i),p.tail=null,p.head=null,p.length=0,h&&typeof h.forEach=="function")h.forEach(function(g){p.push(g)});else if(arguments.length>0)for(var d=0,f=arguments.length;d<f;d++)p.push(arguments[d]);return p}i.prototype.removeNode=function(h){if(h.list!==this)throw new Error("removing node which does not belong to this list");var p=h.next,d=h.prev;return p&&(p.prev=d),d&&(d.next=p),h===this.head&&(this.head=p),h===this.tail&&(this.tail=d),h.list.length--,h.next=null,h.prev=null,h.list=null,p},i.prototype.unshiftNode=function(h){if(h!==this.head){h.list&&h.list.removeNode(h);var p=this.head;h.list=this,h.next=p,p&&(p.prev=h),this.head=h,this.tail||(this.tail=h),this.length++}},i.prototype.pushNode=function(h){if(h!==this.tail){h.list&&h.list.removeNode(h);var p=this.tail;h.list=this,h.prev=p,p&&(p.next=h),this.tail=h,this.head||(this.head=h),this.length++}},i.prototype.push=function(){for(var h=0,p=arguments.length;h<p;h++)u(this,arguments[h]);return this.length},i.prototype.unshift=function(){for(var h=0,p=arguments.length;h<p;h++)v(this,arguments[h]);return this.length},i.prototype.pop=function(){if(this.tail){var h=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,h}},i.prototype.shift=function(){if(this.head){var h=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,h}},i.prototype.forEach=function(h,p){p=p||this;for(var d=this.head,f=0;d!==null;f++)h.call(p,d.value,f,this),d=d.next},i.prototype.forEachReverse=function(h,p){p=p||this;for(var d=this.tail,f=this.length-1;d!==null;f--)h.call(p,d.value,f,this),d=d.prev},i.prototype.get=function(h){for(var p=0,d=this.head;d!==null&&p<h;p++)d=d.next;if(p===h&&d!==null)return d.value},i.prototype.getReverse=function(h){for(var p=0,d=this.tail;d!==null&&p<h;p++)d=d.prev;if(p===h&&d!==null)return d.value},i.prototype.map=function(h,p){p=p||this;for(var d=new i,f=this.head;f!==null;)d.push(h.call(p,f.value,this)),f=f.next;return d},i.prototype.mapReverse=function(h,p){p=p||this;for(var d=new i,f=this.tail;f!==null;)d.push(h.call(p,f.value,this)),f=f.prev;return d},i.prototype.reduce=function(h,p){var d,f=this.head;if(arguments.length>1)d=p;else if(this.head)f=this.head.next,d=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var g=0;f!==null;g++)d=h(d,f.value,g),f=f.next;return d},i.prototype.reduceReverse=function(h,p){var d,f=this.tail;if(arguments.length>1)d=p;else if(this.tail)f=this.tail.prev,d=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var g=this.length-1;f!==null;g--)d=h(d,f.value,g),f=f.prev;return d},i.prototype.toArray=function(){for(var h=new Array(this.length),p=0,d=this.head;d!==null;p++)h[p]=d.value,d=d.next;return h},i.prototype.toArrayReverse=function(){for(var h=new Array(this.length),p=0,d=this.tail;d!==null;p++)h[p]=d.value,d=d.prev;return h},i.prototype.slice=function(h,p){p=p||this.length,p<0&&(p+=this.length),h=h||0,h<0&&(h+=this.length);var d=new i;if(p<h||p<0)return d;h<0&&(h=0),p>this.length&&(p=this.length);for(var f=0,g=this.head;g!==null&&f<h;f++)g=g.next;for(;g!==null&&f<p;f++,g=g.next)d.push(g.value);return d},i.prototype.sliceReverse=function(h,p){p=p||this.length,p<0&&(p+=this.length),h=h||0,h<0&&(h+=this.length);var d=new i;if(p<h||p<0)return d;h<0&&(h=0),p>this.length&&(p=this.length);for(var f=this.length,g=this.tail;g!==null&&f>p;f--)g=g.prev;for(;g!==null&&f>h;f--,g=g.prev)d.push(g.value);return d},i.prototype.splice=function(h,p,...d){h>this.length&&(h=this.length-1),h<0&&(h=this.length+h);for(var f=0,g=this.head;g!==null&&f<h;f++)g=g.next;for(var y=[],f=0;g&&f<p;f++)y.push(g.value),g=this.removeNode(g);g===null&&(g=this.tail),g!==this.head&&g!==this.tail&&(g=g.prev);for(var f=0;f<d.length;f++)g=s(this,g,d[f]);return y},i.prototype.reverse=function(){for(var h=this.head,p=this.tail,d=h;d!==null;d=d.prev){var f=d.prev;d.prev=d.next,d.next=f}return this.head=p,this.tail=h,this};function s(h,p,d){var f=p===h.head?new l(d,null,p,h):new l(d,p,p.next,h);return f.next===null&&(h.tail=f),f.prev===null&&(h.head=f),h.length++,f}function u(h,p){h.tail=new l(p,h.tail,null,h),h.head||(h.head=h.tail),h.length++}function v(h,p){h.head=new l(p,null,h.head,h),h.tail||(h.tail=h.head),h.length++}function l(h,p,d,f){if(!(this instanceof l))return new l(h,p,d,f);this.list=f,this.value=h,p?(p.next=this,this.prev=p):this.prev=null,d?(d.prev=this,this.next=d):this.next=null}try{t(26653)(i)}catch{}},97358:C=>{function c(){return C.exports=c=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(t[u]=s[u])}return t},C.exports.__esModule=!0,C.exports.default=C.exports,c.apply(this,arguments)}C.exports=c,C.exports.__esModule=!0,C.exports.default=C.exports},8711:(C,c,t)=>{"use strict";t.d(c,{d:()=>w});var i=t(27702);function s(x){var P={};return function(R){return P[R]===void 0&&(P[R]=x(R)),P[R]}}var u=s,v=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,l=u(function(x){return v.test(x)||x.charCodeAt(0)===111&&x.charCodeAt(1)===110&&x.charCodeAt(2)<91}),h=l,p=function(){const P=Array.prototype.slice.call(arguments).filter(Boolean),R={},T=[];P.forEach(I=>{(I?I.split(" "):[]).forEach(K=>{if(K.startsWith("atm_")){const[,_]=K.split("_");R[_]=K}else T.push(K)})});const A=[];for(const I in R)Object.prototype.hasOwnProperty.call(R,I)&&A.push(R[I]);return A.push(...T),A.join(" ")},d=p,f=x=>x.toUpperCase()===x,g=x=>P=>x.indexOf(P)===-1,y=(x,P)=>{const R={};return Object.keys(x).filter(g(P)).forEach(T=>{R[T]=x[T]}),R};function b(x,P,R){const T=y(P,R);return typeof x=="string"&&x.indexOf("-")===-1&&!f(x[0])&&Object.keys(T).forEach(A=>{h(A)||delete T[A]}),T}var E=(x,P)=>{{if(typeof x=="string"||typeof x=="number"&&isFinite(x))return;const R=typeof x=="object"?JSON.stringify(x):String(x);console.warn(`An interpolation evaluated to '${R}' in the component '${P}', which is probably a mistake. You should explicitly cast or transform the value to a string.`)}};function S(x){return P=>{if(Array.isArray(P))throw new Error('Using the "styled" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. See https://github.com/callstack/linaria#setup');const R=(A,I)=>{const{as:N=x,class:K}=A,_=b(N,A,["as","class"]);_.ref=I,_.className=P.atomic?d(P.class,_.className||K):d(_.className||K,P.class);const{vars:W}=P;if(W){const j={};for(const Z in W){const J=W[Z],q=J[0],L=J[1]||"",$=typeof q=="function"?q(A):q;E($,P.name),j[`--${Z}`]=`${$}${L}`}const re=_.style||{},X=Object.keys(re);X.length>0&&X.forEach(Z=>{j[Z]=re[Z]}),_.style=j}return x.__linaria&&x!==N?(_.as=N,i.createElement(x,_)):i.createElement(N,_)},T=i.forwardRef?i.forwardRef(R):A=>{const I=y(A,["innerRef"]);return R(I,A.innerRef)};return T.displayName=P.name,T.__linaria={className:P.class,extends:x},T}}var w=new Proxy(S,{get(x,P){return x(P)}})},18240:(C,c,t)=>{"use strict";t.d(c,{EV:()=>Ce,p6:()=>fe,PE:()=>Se,ZP:()=>Va});var i=t(8711),s=t(27702),u=t(13272),v=t(36777),l=t(40062),h=t(53659),p=t(43730),d=t(27473),f=t(31302),g=t(44401),y=new Map,b=new Map,E=new Map;function S(){y.clear(),E.clear(),b.clear()}function w(Pe,Nt,un,xn,zn){var sr,Tr,Br;let Er=0,Sr={};for(let fi of Pe)Er+=(sr=un.get(fi))!=null?sr:zn,Sr[fi]=((Tr=Sr[fi])!=null?Tr:0)+1;let Vr=Nt-Er;for(let fi of Object.keys(Sr)){let xr=Sr[fi],Wr=(Br=un.get(fi))!=null?Br:zn,ti=Wr*xr/Er,xi=Vr*ti*xn/xr,Gi=Wr+xi;un.set(fi,Gi)}}function x(Pe,Nt){var un;let xn=new Map,zn=0;for(let Sr of"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.-+=?"){let Vr=Pe.measureText(Sr).width;xn.set(Sr,Vr),zn+=Vr}let sr=zn/xn.size,Tr=3,Br=(Nt/sr+Tr)/(Tr+1),Er=xn.keys();for(let Sr of Er)xn.set(Sr,((un=xn.get(Sr))!=null?un:sr)*Br);return xn}function P(Pe,Nt,un,xn){var zn,sr;let Tr=b.get(un);if(xn&&Tr!==void 0&&Tr.count>2e4){let Sr=E.get(un);if(Sr===void 0&&(Sr=x(Pe,Tr.size),E.set(un,Sr)),Tr.count>5e5){let fi=0;for(let xr of Nt)fi+=(zn=Sr.get(xr))!=null?zn:Tr.size;return fi*1.01}let Vr=Pe.measureText(Nt);return w(Nt,Vr.width,Sr,Math.max(.05,1-Tr.count/2e5),Tr.size),b.set(un,{count:Tr.count+Nt.length,size:Tr.size}),Vr.width}let Br=Pe.measureText(Nt),Er=Br.width/Nt.length;if(((sr=Tr?.count)!=null?sr:0)>2e4)return Br.width;if(Tr===void 0)b.set(un,{count:Nt.length,size:Er});else{let Sr=Er-Tr.size,Vr=Nt.length/(Tr.count+Nt.length),fi=Tr.size+Sr*Vr;b.set(un,{count:Tr.count+Nt.length,size:fi})}return Br.width}function R(Pe,Nt,un,xn,zn,sr,Tr,Br){if(Nt.length<=1)return Nt.length;if(zn<un)return-1;let Er=Math.floor(un/zn*sr),Sr=P(Pe,Nt.slice(0,Math.max(0,Er)),xn,Tr),Vr=Br?.(Nt);if(Sr!==un)if(Sr<un){for(;Sr<un;)Er++,Sr=P(Pe,Nt.slice(0,Math.max(0,Er)),xn,Tr);Er--}else for(;Sr>un;){let fi=Vr!==void 0?0:Nt.lastIndexOf(" ",Er-1);fi>0?Er=fi:Er--,Sr=P(Pe,Nt.slice(0,Math.max(0,Er)),xn,Tr)}if(Nt[Er]!==" "){let fi=0;if(Vr===void 0)fi=Nt.lastIndexOf(" ",Er);else for(let xr of Vr){if(xr>Er)break;fi=xr}fi>0&&(Er=fi)}return Er}function T(Pe,Nt,un,xn,zn,sr){let Tr=`${Nt}_${un}_${xn}px`,Br=y.get(Tr);if(Br!==void 0)return Br;if(xn<=0)return[];let Er=[],Sr=Nt.split(` `),Vr=b.get(un),fi=Vr===void 0?Nt.length:xn/Vr.size*1.5,xr=zn&&Vr!==void 0&&Vr.count>2e4;for(let Wr of Sr){let ti=P(Pe,Wr.slice(0,Math.max(0,fi)),un,xr),xi=Math.min(Wr.length,fi);if(ti<=xn)Er.push(Wr);else{for(;ti>xn;){let Gi=R(Pe,Wr,xn,un,ti,xi,xr,sr),_i=Wr.slice(0,Math.max(0,Gi));Wr=Wr.slice(_i.length),Er.push(_i),ti=P(Pe,Wr.slice(0,Math.max(0,fi)),un,xr),xi=Math.min(Wr.length,fi)}ti>0&&Er.push(Wr)}}return Er=Er.map((Wr,ti)=>ti===0?Wr.trimEnd():Wr.trim()),y.set(Tr,Er),y.size>500&&y.delete(y.keys().next().value),Er}var A=t(19430),I=t(11007),N=t(18353);function K(Pe){}function _(Pe="This should not happen"){throw new Error(Pe)}function W(Pe,Nt="Assertion failed"){if(!Pe)return _(Nt)}function j(Pe){return _("Hell froze over")}function re(Pe,Nt){try{return Pe()}catch{return Nt}}var X=Object.prototype.hasOwnProperty;function Z(Pe,Nt){let un,xn;if(Pe===Nt)return!0;if(Pe&&Nt&&(un=Pe.constructor)===Nt.constructor){if(un===Date)return Pe.getTime()===Nt.getTime();if(un===RegExp)return Pe.toString()===Nt.toString();if(un===Array){if((xn=Pe.length)===Nt.length)for(;xn--&&Z(Pe[xn],Nt[xn]););return xn===-1}if(!un||typeof Pe=="object"){xn=0;for(un in Pe)if(X.call(Pe,un)&&++xn&&!X.call(Nt,un)||!(un in Nt)||!Z(Pe[un],Nt[un]))return!1;return Object.keys(Nt).length===xn}}return Pe!==Pe&&Nt!==Nt}var J=class extends s.PureComponent{constructor(){super(...arguments),this.wrapperRef=s.createRef(),this.clickOutside=Pe=>{if(this.wrapperRef.current!==null&&!this.wrapperRef.current.contains(Pe.target)){let Nt=Pe.target;for(;Nt!==null;){if(Nt.classList.contains("click-outside-ignore"))return;Nt=Nt.parentElement}this.props.onClickOutside()}}}componentDidMount(){document.addEventListener("mousedown",this.clickOutside,!0),document.addEventListener("contextmenu",this.clickOutside,!0)}componentWillUnmount(){document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("contextmenu",this.clickOutside)}render(){const{onClickOutside:Pe,...Nt}=this.props;return s.createElement("div",{...Nt,ref:this.wrapperRef},this.props.children)}};function q(Pe){var Nt,un;return{"--gdg-accent-color":Pe.accentColor,"--gdg-accent-fg":Pe.accentFg,"--gdg-accent-light":Pe.accentLight,"--gdg-text-dark":Pe.textDark,"--gdg-text-medium":Pe.textMedium,"--gdg-text-light":Pe.textLight,"--gdg-text-bubble":Pe.textBubble,"--gdg-bg-icon-header":Pe.bgIconHeader,"--gdg-fg-icon-header":Pe.fgIconHeader,"--gdg-text-header":Pe.textHeader,"--gdg-text-group-header":(Nt=Pe.textGroupHeader)!=null?Nt:Pe.textHeader,"--gdg-text-header-selected":Pe.textHeaderSelected,"--gdg-bg-cell":Pe.bgCell,"--gdg-bg-cell-medium":Pe.bgCellMedium,"--gdg-bg-header":Pe.bgHeader,"--gdg-bg-header-has-focus":Pe.bgHeaderHasFocus,"--gdg-bg-header-hovered":Pe.bgHeaderHovered,"--gdg-bg-bubble":Pe.bgBubble,"--gdg-bg-bubble-selected":Pe.bgBubbleSelected,"--gdg-bg-search-result":Pe.bgSearchResult,"--gdg-border-color":Pe.borderColor,"--gdg-horizontal-border-color":(un=Pe.horizontalBorderColor)!=null?un:Pe.borderColor,"--gdg-drilldown-border":Pe.drilldownBorder,"--gdg-link-color":Pe.linkColor,"--gdg-cell-horizontal-padding":`${Pe.cellHorizontalPadding}px`,"--gdg-cell-vertical-padding":`${Pe.cellVerticalPadding}px`,"--gdg-header-font-style":Pe.headerFontStyle,"--gdg-base-font-style":Pe.baseFontStyle,"--gdg-font-family":Pe.fontFamily,"--gdg-editor-font-size":Pe.editorFontSize}}var L={accentColor:"#4F5DFF",accentFg:"#FFFFFF",accentLight:"rgba(62, 116, 253, 0.1)",textDark:"#313139",textMedium:"#737383",textLight:"#B2B2C0",textBubble:"#313139",bgIconHeader:"#737383",fgIconHeader:"#FFFFFF",textHeader:"#313139",textGroupHeader:"#313139BB",textHeaderSelected:"#FFFFFF",bgCell:"#FFFFFF",bgCellMedium:"#FAFAFB",bgHeader:"#F7F7F8",bgHeaderHasFocus:"#E9E9EB",bgHeaderHovered:"#EFEFF1",bgBubble:"#EDEDF3",bgBubbleSelected:"#FFFFFF",bgSearchResult:"#fff9e3",borderColor:"rgba(115, 116, 131, 0.16)",drilldownBorder:"rgba(0, 0, 0, 0)",linkColor:"#4F5DFF",cellHorizontalPadding:8,cellVerticalPadding:3,headerIconSize:18,headerFontStyle:"600 13px",baseFontStyle:"13px",fontFamily:"Inter, Roboto, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, noto, arial, sans-serif",editorFontSize:"13px",lineHeight:1.4};function $(){return L}var k=s.createContext(L);function F(){return React2.useContext(k)}function V(Pe,Nt){const[un,xn]=Nt;if(Pe.columns.hasIndex(un)||Pe.rows.hasIndex(xn))return!0;if(Pe.current!==void 0){if(Pe.current.cell[0]===un&&Pe.current.cell[1]===xn)return!0;const zn=[Pe.current.range,...Pe.current.rangeStack];for(const sr of zn)if(un>=sr.x&&un<sr.x+sr.width&&xn>=sr.y&&xn<sr.y+sr.height)return!0}return!1}var pe=null,ce=void 0,G="header",te="group-header",ie="out-of-bounds",fe;(function(Pe){Pe.Uri="uri",Pe.Text="text",Pe.Image="image",Pe.RowID="row-id",Pe.Number="number",Pe.Bubble="bubble",Pe.Boolean="boolean",Pe.Loading="loading",Pe.Markdown="markdown",Pe.Drilldown="drilldown",Pe.Protected="protected",Pe.Custom="custom"})(fe||(fe={}));var Se;(function(Pe){Pe.HeaderRowID="headerRowID",Pe.HeaderCode="headerCode",Pe.HeaderNumber="headerNumber",Pe.HeaderString="headerString",Pe.HeaderBoolean="headerBoolean",Pe.HeaderAudioUri="headerAudioUri",Pe.HeaderVideoUri="headerVideoUri",Pe.HeaderEmoji="headerEmoji",Pe.HeaderImage="headerImage",Pe.HeaderUri="headerUri",Pe.HeaderPhone="headerPhone",Pe.HeaderMarkdown="headerMarkdown",Pe.HeaderDate="headerDate",Pe.HeaderTime="headerTime",Pe.HeaderEmail="headerEmail",Pe.HeaderReference="headerReference",Pe.HeaderIfThenElse="headerIfThenElse",Pe.HeaderSingleValue="headerSingleValue",Pe.HeaderLookup="headerLookup",Pe.HeaderTextTemplate="headerTextTemplate",Pe.HeaderMath="headerMath",Pe.HeaderRollup="headerRollup",Pe.HeaderJoinStrings="headerJoinStrings",Pe.HeaderSplitString="headerSplitString",Pe.HeaderGeoDistance="headerGeoDistance",Pe.HeaderArray="headerArray",Pe.RowOwnerOverlay="rowOwnerOverlay",Pe.ProtectedColumnOverlay="protectedColumnOverlay"})(Se||(Se={}));var he="___gdg_header_cell_",me=he+"checked",_e=he+"unchecked",we=he+"indeterminate";function Ge(Pe){return"width"in Pe&&typeof Pe.width=="number"}async function ht(Pe){return typeof Pe=="object"?Pe:await Pe()}function nt(Pe){return Pe.kind===fe.Loading||Pe.kind===fe.Bubble||Pe.kind===fe.RowID||Pe.kind===fe.Protected||Pe.kind===fe.Drilldown?!1:!0}function Re(Pe){return Pe.kind===fe.Loading||Pe.kind===fe.Bubble||Pe.kind===fe.RowID||Pe.kind===fe.Protected||Pe.kind===fe.Drilldown||Pe.kind===fe.Boolean||Pe.kind===fe.Image||Pe.kind===fe.Custom?!1:!0}function ue(Pe){return Pe.kind===Ye.Marker||Pe.kind===Ye.NewRow}function ae(Pe){if(!nt(Pe)||Pe.kind===fe.Image)return!1;if(Pe.kind===fe.Text||Pe.kind===fe.Number||Pe.kind===fe.Markdown||Pe.kind===fe.Uri||Pe.kind===fe.Custom||Pe.kind===fe.Boolean)return Pe.readonly!==!0;j(Pe)}function ve(Pe){return f(Pe,"editor")}function Me(Pe){var Nt;return!((Nt=Pe.readonly)!=null&&Nt)}var Ye;(function(Pe){Pe.NewRow="new-row",Pe.Marker="marker"})(Ye||(Ye={}));function qe(Pe){if(Pe.length===0)return[];const Nt=[...Pe],un=[];Nt.sort(function(xn,zn){return xn[0]-zn[0]}),un.push([...Nt[0]]);for(const xn of Nt.slice(1)){const zn=un[un.length-1];zn[1]<xn[0]?un.push([...xn]):zn[1]<xn[1]&&(zn[1]=xn[1])}return un}var At,It=class{constructor(Pe){this.items=Pe,this.offset=Nt=>{if(Nt===0)return this;const un=this.items.map(xn=>[xn[0]+Nt,xn[1]+Nt]);return new It(un)},this.add=Nt=>{const un=typeof Nt=="number"?[Nt,Nt+1]:Nt,xn=qe([...this.items,un]);return new It(xn)},this.remove=Nt=>{const un=[...this.items],xn=typeof Nt=="number"?Nt:Nt[0],zn=typeof Nt=="number"?Nt+1:Nt[1];for(const[sr,Tr]of un.entries()){const[Br,Er]=Tr;if(Br<=zn&&xn<=Er){const Sr=[];Br<xn&&Sr.push([Br,xn]),zn<Er&&Sr.push([zn,Er]),un.splice(sr,1,...Sr)}}return new It(un)},this.first=()=>{if(this.items.length!==0)return this.items[0][0]},this.last=()=>{if(this.items.length!==0)return this.items.slice(-1)[0][1]-1},this.hasIndex=Nt=>{for(let un=0;un<this.items.length;un++){const[xn,zn]=this.items[un];if(Nt>=xn&&Nt<zn)return!0}return!1},this.hasAll=Nt=>{for(let un=Nt[0];un<Nt[1];un++)if(!this.hasIndex(un))return!1;return!0},this.some=Nt=>{for(const un of this)if(Nt(un))return!0;return!1},this.equals=Nt=>{if(Nt===this)return!0;if(Nt.items.length!==this.items.length)return!1;for(let un=0;un<this.items.length;un++){const xn=Nt.items[un],zn=this.items[un];if(xn[0]!==zn[0]||xn[1]!==zn[1])return!1}return!0},this.toArray=()=>{const Nt=[];for(const[un,xn]of this.items)for(let zn=un;zn<xn;zn++)Nt.push(zn);return Nt}}get length(){let Pe=0;for(const[Nt,un]of this.items)Pe+=un-Nt;return Pe}*[Symbol.iterator](){for(const[Pe,Nt]of this.items)for(let un=Pe;un<Nt;un++)yield un}},Ce=It;Ce.empty=()=>At??(At=new It([])),Ce.fromSingleSelection=Pe=>It.empty().add(Pe);var Ae=()=>Pe=>Pe.targetY,$e=()=>Pe=>Pe.targetX-1,tt=()=>Pe=>Pe.targetY-1,ke=()=>Pe=>Pe.targetWidth+2,Oe=()=>Pe=>Pe.targetHeight+2,je=()=>Pe=>Pe.targetY+10,Et=()=>Pe=>Math.max(0,(Pe.targetHeight-28)/2),ct=(0,i.d)("div")({name:"DataGridOverlayEditorStyle",class:"d1t1th9s",vars:{"d1t1th9s-0":[Ae(),"px"],"d1t1th9s-1":[$e(),"px"],"d1t1th9s-2":[tt(),"px"],"d1t1th9s-3":[ke(),"px"],"d1t1th9s-4":[Oe(),"px"],"d1t1th9s-5":[je(),"px"],"d1t1th9s-6":[Et(),"px"]}});function ut(){const[Pe,Nt]=s.useState();return[Pe??void 0,Nt]}function Ne(){const[Pe,Nt]=ut(),[un,xn]=s.useState(0),[zn,sr]=s.useState(!0);s.useLayoutEffect(()=>{if(Pe===void 0||!("IntersectionObserver"in window))return;const Br=new IntersectionObserver(Er=>{Er.length!==0&&sr(Er[0].isIntersecting)},{threshold:1});return Br.observe(Pe),()=>Br.disconnect()},[Pe]),s.useEffect(()=>{if(zn||Pe===void 0)return;let Br;const Er=()=>{const{right:Sr}=Pe.getBoundingClientRect();xn(Vr=>Math.min(Vr+window.innerWidth-Sr-10,0)),Br=requestAnimationFrame(Er)};return Br=requestAnimationFrame(Er),()=>{Br!==void 0&&cancelAnimationFrame(Br)}},[Pe,zn]);const Tr=s.useMemo(()=>({transform:`translateX(${un}px)`}),[un]);return{ref:Nt,style:Tr}}var mt=Pe=>{const{target:Nt,content:un,onFinishEditing:xn,forceEditMode:zn,initialValue:sr,imageEditorOverride:Tr,markdownDivCreateNode:Br,highlight:Er,className:Sr,theme:Vr,id:fi,cell:xr,validateCell:Wr,getCellRenderer:ti,provideEditor:xi}=Pe,[Gi,_i]=s.useState(zn?un:void 0),da=s.useRef(Gi??un);da.current=Gi??un;const[Sa,Pa]=s.useState(()=>Wr===void 0?!0:!(nt(un)&&Wr?.(xr,un,da.current)===!1)),oo=s.useCallback((is,Os)=>{xn(Sa?is:void 0,Os)},[Sa,xn]),mo=s.useCallback(is=>{if(Wr!==void 0&&is!==void 0&&nt(is)){const Os=Wr(xr,is,da.current);Os===!1?Pa(!1):(typeof Os=="object"&&(is=Os),Pa(!0))}_i(is)},[xr,Wr]),Ga=s.useRef(!1),no=s.useRef(void 0),ca=s.useCallback(()=>{oo(Gi,[0,0]),Ga.current=!0},[Gi,oo]),co=s.useCallback(is=>{var Os;oo(is,(Os=no.current)!=null?Os:[0,0]),Ga.current=!0},[oo]),Yo=s.useCallback(async is=>{let Os=!1;is.key==="Escape"?(is.stopPropagation(),is.preventDefault(),no.current=[0,0]):is.key==="Enter"&&!is.shiftKey?(is.stopPropagation(),is.preventDefault(),no.current=[0,1],Os=!0):is.key==="Tab"&&(is.stopPropagation(),is.preventDefault(),no.current=[is.shiftKey?-1:1,0],Os=!0),window.setTimeout(()=>{!Ga.current&&no.current!==void 0&&(oo(Os?Gi:void 0,no.current),Ga.current=!0)},0)},[oo,Gi]),bo=Gi??un,[Ea,ko]=s.useMemo(()=>{var is,Os;if(ue(un))return[];const Qs=xi?.(un);return Qs!==void 0?[Qs,!1]:[(Os=(is=ti(un))==null?void 0:is.provideEditor)==null?void 0:Os.call(is,un),!1]},[un,ti,xi]),{ref:Es,style:Ts}=Ne();let rs=!0,ls,Ss=!0,cs;if(Ea!==void 0){rs=Ea.disablePadding!==!0,Ss=Ea.disableStyling!==!0;const is=ve(Ea);is&&(cs=Ea.styleOverride);const Os=is?Ea.editor:Ea;ls=s.createElement(Os,{isHighlighted:Er,onChange:mo,value:bo,initialValue:sr,onFinishedEditing:co,validatedSelection:nt(bo)?bo.selectionRange:void 0,forceEditMode:zn,target:Nt,imageEditorOverride:Tr,markdownDivCreateNode:Br,isValid:Sa})}cs={...cs,...Ts};const Do=document.getElementById("portal");if(Do===null)return console.error('Cannot open Data Grid overlay editor, because portal not found. Please add `<div id="portal" />` as the last child of your `<body>`.'),null;let fs=Ss?"gdg-style":"gdg-unstyle";return Sa||(fs+=" invalid"),rs&&(fs+=" pad"),(0,d.createPortal)(s.createElement(k.Provider,{value:Vr},s.createElement(J,{style:q(Vr),className:Sr,onClickOutside:ca},s.createElement(ct,{ref:Es,id:fi,className:fs,style:cs,as:ko===!0?"label":void 0,targetX:Nt.x,targetY:Nt.y,targetWidth:Nt.width,targetHeight:Nt.height},s.createElement("div",{className:"clip-region",onKeyDown:Yo},ls)))),Do)},bt=mt,Gt=65536,hn=[];function Yt(Pe,Nt){return Nt*Gt+Pe}function Bt(Pe){return Pe%Gt}function Lt(Pe,Nt){return(Pe-Nt)/Gt}function zt(Pe){const Nt=Bt(Pe),un=Lt(Pe,Nt);return[Nt,un]}var Kt=class{constructor(){this.imageLoaded=()=>{},this.loadedLocations=[],this.visibleWindow={x:0,y:0,width:0,height:0},this.freezeCols=0,this.isInWindow=Pe=>{const Nt=Bt(Pe),un=Lt(Pe,Nt),xn=this.visibleWindow;return Nt<this.freezeCols&&un>=xn.y&&un<=xn.y+xn.height?!0:Nt>=xn.x&&Nt<=xn.x+xn.width&&un>=xn.y&&un<=xn.y+xn.height},this.cache={},this.sendLoaded=g(()=>{this.imageLoaded(this.loadedLocations),this.loadedLocations=[]},20),this.clearOutOfWindow=()=>{const Pe=Object.keys(this.cache);for(const Nt of Pe){const un=this.cache[Nt];let xn=!1;for(let zn=0;zn<un.cells.length;zn++){const sr=un.cells[zn];if(this.isInWindow(sr)){xn=!0;break}}xn?un.cells=un.cells.filter(this.isInWindow):(un.cancel(),delete this.cache[Nt])}}}setCallback(Pe){this.imageLoaded=Pe}setWindow(Pe,Nt){this.visibleWindow.x===Pe.x&&this.visibleWindow.y===Pe.y&&this.visibleWindow.width===Pe.width&&this.visibleWindow.height===Pe.height&&this.freezeCols===Nt||(this.visibleWindow=Pe,this.freezeCols=Nt,this.clearOutOfWindow())}loadImage(Pe,Nt,un,xn){var zn;let sr=!1;const Tr=(zn=hn.pop())!=null?zn:new Image;let Br=!1;const Er={img:void 0,cells:[Yt(Nt,un)],url:Pe,cancel:()=>{Br||(Br=!0,hn.length<12?hn.unshift(Tr):sr||(Tr.src=""))}},Sr=new Promise(Vr=>Tr.addEventListener("load",()=>Vr(null)));requestAnimationFrame(async()=>{try{Tr.src=Pe,await Sr,await Tr.decode();const Vr=this.cache[xn];if(Vr!==void 0&&!Br){Vr.img=Tr;for(const fi of Vr.cells)this.loadedLocations.push(zt(fi));sr=!0,this.sendLoaded()}}catch{Er.cancel()}}),this.cache[xn]=Er}loadOrGetImage(Pe,Nt,un){const xn=Pe,zn=this.cache[xn];if(zn!==void 0){const sr=Yt(Nt,un);return zn.cells.includes(sr)||zn.cells.push(sr),zn.img}else this.loadImage(Pe,Nt,un,xn)}},vt=Kt;function Ve(Pe,Nt,un,xn,zn=!1){const sr=s.useRef();sr.current=Nt,s.useEffect(()=>{if(un===null||un.addEventListener===void 0)return;const Tr=un,Br=Er=>{var Sr;(Sr=sr.current)==null||Sr.call(Tr,Er)};return Tr.addEventListener(Pe,Br,{passive:xn,capture:zn}),()=>{Tr.removeEventListener(Pe,Br,{capture:zn})}},[Pe,un,xn,zn])}function lt(Pe,Nt){return Pe===void 0?void 0:Nt}var at=Math.PI;function Xt(Pe){return Pe*at/180}var rt=Pe=>{var Nt;const un=(Nt=Pe.fgColor)!=null?Nt:"currentColor";return s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M12.7073 7.05029C7.87391 11.8837 10.4544 9.30322 6.03024 13.7273C5.77392 13.9836 5.58981 14.3071 5.50189 14.6587L4.52521 18.5655C4.38789 19.1148 4.88543 19.6123 5.43472 19.475L9.34146 18.4983C9.69313 18.4104 10.0143 18.2286 10.2706 17.9722L16.9499 11.2929",stroke:un,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}),s.createElement("path",{d:"M20.4854 4.92901L19.0712 3.5148C18.2901 2.73375 17.0238 2.73375 16.2428 3.5148L14.475 5.28257C15.5326 7.71912 16.4736 8.6278 18.7176 9.52521L20.4854 7.75744C21.2665 6.97639 21.2665 5.71006 20.4854 4.92901Z",stroke:un,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}))},Rt=Pe=>{var Nt;const un=(Nt=Pe.fgColor)!=null?Nt:"currentColor";return s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M19 6L10.3802 17L5.34071 11.8758",vectorEffect:"non-scaling-stroke",stroke:un,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};function rn(Pe,Nt,un){const[xn,zn]=s.useState(Pe),sr=s.useRef(!0);s.useEffect(()=>()=>{sr.current=!1},[]);const Tr=s.useRef(p(Br=>{sr.current&&zn(Br)},un));return s.useLayoutEffect(()=>{sr.current&&Tr.current(()=>Pe())},Nt),xn}var sn="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",Jn="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",ze=new RegExp("^[^"+Jn+"]*["+sn+"]"),st=new RegExp("^[^"+sn+"]*["+Jn+"]");function en(Pe){return ze.test(Pe)?"rtl":st.test(Pe)?"ltr":"neutral"}var wt=void 0;function Ke(){if(wt!==void 0)return wt;const Pe=document.createElement("p");Pe.style.width="100%",Pe.style.height="200px";const Nt=document.createElement("div");Nt.id="testScrollbar",Nt.style.position="absolute",Nt.style.top="0px",Nt.style.left="0px",Nt.style.visibility="hidden",Nt.style.width="200px",Nt.style.height="150px",Nt.style.overflow="hidden",Nt.append(Pe),document.body.append(Nt);const un=Pe.offsetWidth;Nt.style.overflow="scroll";let xn=Pe.offsetWidth;return un===xn&&(xn=Nt.clientWidth),Nt.remove(),wt=un-xn,wt}var Ut=Symbol();function on(Pe){const Nt=s.useRef([Ut,Pe]);Nt.current[1]!==Pe&&(Nt.current[0]=Pe),Nt.current[1]=Pe;const[un,xn]=s.useState(Pe),[,zn]=s.useState(),sr=s.useCallback(Br=>{const Er=Nt.current[0];Er!==Ut&&(Br=typeof Br=="function"?Br(Er):Br,Br===Er)||(Er!==Ut&&zn({}),xn(Sr=>typeof Br=="function"?Br(Er===Ut?Sr:Er):Br),Nt.current[0]=Ut)},[]),Tr=s.useCallback(()=>{Nt.current[0]=Ut,zn({})},[]);return[Nt.current[0]===Ut?un:Nt.current[0],sr,Tr]}function Tn(Pe,Nt){return s.useMemo(()=>Pe.map((un,xn)=>({...un,sourceIndex:xn,sticky:xn<Nt})),[Pe,Nt])}function An(Pe,Nt){return(Pe??"")===(Nt??"")}function Zt(Pe,Nt,un){if(un?.current===void 0)return!1;const[xn,zn]=un.current.cell,[sr,Tr]=Pe;return Tr!==zn?!1:Nt.span===void 0?xn===sr:xn>=Nt.span[0]&&xn<=Nt.span[1]}function ot(Pe,Nt,un){const xn=un.x,zn=un.x+un.width-1,sr=un.y,Tr=un.y+un.height-1,[Br,Er]=Pe;if(Er<sr||Er>Tr)return!1;if(Nt.span===void 0)return Br>=xn&&Br<=zn;const[Sr,Vr]=Nt.span;return Sr>=xn&&Sr<=zn||Vr>=xn&&Sr<=zn||Sr<xn&&Vr>zn}function We(Pe,Nt,un){let xn=0;if(un.current===void 0)return xn;ot(Pe,Nt,un.current.range)&&xn++;for(const zn of un.current.rangeStack)ot(Pe,Nt,zn)&&xn++;return xn}function Ft(Pe,Nt){let un=Pe;if(Nt!==void 0){let xn=[...Pe];const zn=un[Nt.src];Nt.src>Nt.dest?(xn.splice(Nt.src,1),xn.splice(Nt.dest,0,zn)):(xn.splice(Nt.dest+1,0,zn),xn.splice(Nt.src,1)),xn=xn.map((sr,Tr)=>({...sr,sticky:Pe[Tr].sticky})),un=xn}return un}function it(Pe,Nt){let un=0;const xn=Ft(Pe,Nt);for(let zn=0;zn<xn.length;zn++){const sr=xn[zn];if(sr.sticky)un+=sr.width;else break}return un}function qt(Pe,Nt,un,xn,zn){const sr=Ft(Pe,xn),Tr=[];for(const Sr of sr)if(Sr.sticky)Tr.push(Sr);else break;if(Tr.length>0)for(const Sr of Tr)un-=Sr.width;let Br=Nt,Er=zn??0;for(;Er<=un&&Br<sr.length;)Er+=sr[Br].width,Br++;for(let Sr=Nt;Sr<Br;Sr++){const Vr=sr[Sr];Vr.sticky||Tr.push(Vr)}return Tr}function vn(Pe,Nt,un){let xn=0;for(const zn of Nt){const sr=zn.sticky?xn:xn+(un??0);if(Pe<=sr+zn.width)return zn.sourceIndex;xn+=zn.width}return-1}function fn(Pe,Nt,un,xn,zn,sr,Tr,Br,Er,Sr){const Vr=xn+zn;if(un&&Pe<=zn)return-2;if(Pe<=Vr)return-1;const fi=typeof Tr=="number"?Tr:Tr(sr-1);if(Sr&&Pe>Nt-fi)return sr-1;const xr=sr-(Sr?1:0),Wr=Pe-(Er??0);if(typeof Tr=="number"){const ti=Math.floor((Wr-Vr)/Tr)+Br;return ti>=xr?void 0:ti}else{let ti=Vr;for(let xi=Br;xi<xr;xi++){const Gi=Tr(xi);if(Wr<=ti+Gi)return xi;ti+=Gi}return}}var Tt=0,dn={},mn=typeof window>"u";async function Kn(){var Pe;mn||((Pe=document?.fonts)==null?void 0:Pe.ready)===void 0||(await document.fonts.ready,Tt=0,dn={},S())}Kn();function Dn(Pe,Nt,un,xn){return`${Pe}_${xn??Nt.font}_${un}`}function Vn(Pe,Nt,un){const xn=Dn(Pe,Nt,"middle",un);let zn=dn[xn];return zn===void 0&&(zn=Nt.measureText(Pe),dn[xn]=zn,Tt++),Tt>1e4&&(dn={},Tt=0),zn}function or(Pe,Nt){return typeof Nt!="string"&&(Nt=`${Nt.baseFontStyle} ${Nt.fontFamily}`),yr(Pe,Nt)}function Qr(Pe,Nt){const un="ABCDEFGHIJKLMNOPQRSTUVWXYZ";Pe.save(),Pe.textBaseline=Nt;const xn=Pe.measureText(un);return Pe.restore(),xn}var ni=[];function yr(Pe,Nt){for(const sr of ni)if(sr.key===Nt)return sr.val;const un=Qr(Pe,"alphabetic"),zn=-(Qr(Pe,"middle").actualBoundingBoxDescent-un.actualBoundingBoxDescent)+un.actualBoundingBoxAscent/2;return ni.push({key:Nt,val:zn}),zn}function si(Pe,Nt,un,xn,zn){const{ctx:sr,rect:Tr,theme:Br}=Pe;let Er=Number.MAX_SAFE_INTEGER;const Sr=500;if(Nt!==void 0&&(Er=un-Nt,Er<Sr)){const Vr=1-Er/Sr;sr.globalAlpha=Vr,sr.fillStyle=Br.bgSearchResult,sr.fillRect(Tr.x,Tr.y,Tr.width,Tr.height),sr.globalAlpha=1,xn!==void 0&&(xn.fillStyle=Br.bgSearchResult)}return zn(),Er<Sr}function Yr(Pe,Nt,un){const{ctx:xn,theme:zn}=Pe,sr=Nt??{},Tr=un??zn.textDark;return Tr!==sr.fillStyle&&(xn.fillStyle=Tr,sr.fillStyle=Tr),sr}function Ci(Pe,Nt,un){const{rect:xn,ctx:zn,theme:sr}=Pe;zn.fillStyle=sr.textDark,ha({ctx:zn,rect:xn,theme:sr},Nt,un)}function Ni(Pe,Nt,un,xn,zn,sr,Tr,Br,Er){Er==="right"?Pe.fillText(Nt,un+zn-(Br.cellHorizontalPadding+.5),xn+sr/2+Tr):Er==="center"?Pe.fillText(Nt,un+zn/2,xn+sr/2+Tr):Pe.fillText(Nt,un+Br.cellHorizontalPadding+.5,xn+sr/2+Tr)}function fa(Pe,Nt){const un=Vn("ABCi09jgqpy",Pe,Nt);return un.actualBoundingBoxAscent+un.actualBoundingBoxDescent}function ha(Pe,Nt,un,xn,zn){const{ctx:sr,rect:Tr,theme:Br}=Pe,{x:Er,y:Sr,width:Vr,height:fi}=Tr;if(xn=xn??!1,!xn){Nt.includes(` `)&&(Nt=Nt.split(/\r?\n/)[0]);const ti=Vr/4;Nt.length>ti&&(Nt=Nt.slice(0,ti))}const xr=or(sr,Br),Wr=en(Nt)==="rtl";if(un===void 0&&Wr&&(un="right"),Wr&&(sr.direction="rtl"),Nt.length>0){let ti=!1;if(un==="right"?(sr.textAlign="right",ti=!0):un!==void 0&&un!=="left"&&(sr.textAlign=un,ti=!0),!xn)Ni(sr,Nt,Er,Sr,Vr,fi,xr,Br,un);else{const xi=`${Br.fontFamily} ${Br.baseFontStyle}`,Gi=T(sr,Nt,xi,Vr-Br.cellHorizontalPadding*2,zn??!1),_i=fa(sr,xi),da=Br.lineHeight*_i,Sa=_i+da*(Gi.length-1),Pa=Sa+Br.cellVerticalPadding>fi;Pa&&(sr.save(),sr.rect(Er,Sr,Vr,fi),sr.clip());const oo=Sr+fi/2-Sa/2;let mo=Math.max(Sr+Br.cellVerticalPadding,oo);for(const Ga of Gi)if(Ni(sr,Ga,Er,mo,Vr,_i,xr,Br,un),mo+=da,mo>Sr+fi)break;Pa&&sr.restore()}ti&&(sr.textAlign="start"),Wr&&(sr.direction="inherit")}}function Ca(Pe,Nt,un){const{ctx:xn,rect:zn,hoverAmount:sr,theme:Tr,spriteManager:Br}=Pe,{x:Er,y:Sr,width:Vr,height:fi}=zn;xn.beginPath(),xn.globalAlpha=sr,xn.rect(Er,Sr,Vr,fi),xn.fillStyle=Tr.bgHeaderHovered,xn.fill(),xn.globalAlpha=1,xn.beginPath();const xr=Nt!=="";let Wr=0;if(un!==void 0){const xi=fi-8,Gi=Er+8/2,_i=Sr+8/2;Br.drawSprite(un,"normal",xn,Gi,_i,xi,Tr,xr?1:sr),Wr=xi}else{Wr=24;const ti=12,xi=xr?ti:sr*ti,Gi=xr?0:(1-sr)*ti*.5,_i=Tr.cellHorizontalPadding+4;xi>0&&(xn.moveTo(Er+_i+Gi,Sr+fi/2),xn.lineTo(Er+_i+Gi+xi,Sr+fi/2),xn.moveTo(Er+_i+Gi+xi*.5,Sr+fi/2-xi*.5),xn.lineTo(Er+_i+Gi+xi*.5,Sr+fi/2+xi*.5),xn.lineWidth=2,xn.strokeStyle=Tr.bgIconHeader,xn.lineCap="round",xn.stroke())}xn.fillStyle=Tr.textMedium,xn.fillText(Nt,Wr+Er+Tr.cellHorizontalPadding+.5,Sr+fi/2+or(xn,Tr)),xn.beginPath()}function li(Pe,Nt,un,xn,zn,sr,Tr,Br,Er=-20,Sr=-20){const Vr=xn+sr/2,fi=zn+Tr/2,xr=Tr/1.89,Wr=Tr/2,ti=Tr/3.4,xi=Math.abs(Er-sr/2)<ti&&Math.abs(Sr-Tr/2)<ti,Gi=4,_i=Tr/4.25,da=Tr/4,Sa=Tr/8.5;switch(un){case!0:{Pe.beginPath(),Qn(Pe,Vr-xr/2,fi-xr/2,xr,xr,Gi),Pe.fillStyle=Br?Nt.accentColor:Nt.textMedium,Pe.fill(),Pe.beginPath(),Pe.moveTo(Vr-_i+Tr/9.31,fi-_i+Tr/4.33),Pe.lineTo(Vr-_i+Tr/5.33,fi-_i+Tr/3.17),Pe.lineTo(Vr-_i+Tr/2.83,fi-_i+Tr/7.16),Pe.strokeStyle=Nt.bgCell,Pe.lineJoin="round",Pe.lineCap="round",Pe.lineWidth=1.9,Pe.stroke();break}case pe:case!1:{Pe.beginPath(),Qn(Pe,Vr-da,fi-da,Wr,Wr,Gi),Pe.lineWidth=1,Pe.strokeStyle=xi?Nt.textDark:Nt.textMedium,Pe.stroke();break}case ce:{Pe.beginPath(),Qn(Pe,Vr-da,fi-da,Wr,Wr,Gi),Pe.fillStyle=xi?Nt.textMedium:Nt.textLight,Pe.fill(),Pe.beginPath(),Pe.moveTo(Vr-Sa,fi),Pe.lineTo(Vr+Sa,fi),Pe.strokeStyle=Nt.bgCell,Pe.lineCap="round",Pe.lineWidth=1.9,Pe.stroke();break}default:j(un)}}function la(Pe,Nt){const{ctx:un,theme:xn}=Pe,zn=`9px ${xn.fontFamily}`,sr=Nt??{};return sr?.font!==zn&&(un.font=zn,sr.font=zn),sr.deprep=Oa,un.textAlign="center",sr}function Oa(Pe){const{ctx:Nt}=Pe;Nt.textAlign="start"}function wa(Pe,Nt,un,xn,zn){const{ctx:sr,rect:Tr,hoverAmount:Br,theme:Er}=Pe,{x:Sr,y:Vr,width:fi,height:xr}=Tr,Wr=un?1:Br;if(xn!=="number"&&Wr>0){sr.globalAlpha=Wr;const ti=7*(un?Br:1);if(li(sr,Er,un,zn?Sr+ti:Sr,Vr,zn?fi-ti:fi,xr,!0),zn){sr.globalAlpha=Br,sr.beginPath();for(const xi of[3,6])for(const Gi of[-5,-1,3])sr.rect(Sr+xi,Vr+xr/2+Gi,2,2);sr.fillStyle=Er.textLight,sr.fill(),sr.beginPath()}sr.globalAlpha=1}if(xn==="number"||xn==="both"&&!un){const ti=Nt.toString(),xi=Sr+fi/2;xn==="both"&&Br!==0&&(sr.globalAlpha=1-Br),sr.fillStyle=Er.textLight,sr.fillText(ti,xi,Vr+xr/2+or(sr,`9px ${Er.fontFamily}`)),Br!==0&&(sr.globalAlpha=1)}}function vo(Pe){const{ctx:Nt,theme:un,rect:xn}=Pe,{x:zn,y:sr,height:Tr}=xn;Nt.beginPath();const Br=2.5;let Er=zn+un.cellHorizontalPadding+Br;const Sr=sr+Tr/2,Vr=Math.cos(Xt(30))*Br,fi=Math.sin(Xt(30))*Br;for(let xr=0;xr<12;xr++)Nt.moveTo(Er,Sr-Br),Nt.lineTo(Er,Sr+Br),Nt.moveTo(Er+Vr,Sr-fi),Nt.lineTo(Er-Vr,Sr+fi),Nt.moveTo(Er-Vr,Sr-fi),Nt.lineTo(Er+Vr,Sr+fi),Er+=8;Nt.lineWidth=1.1,Nt.lineCap="square",Nt.strokeStyle=un.textLight,Nt.stroke()}function Qn(Pe,Nt,un,xn,zn,sr){typeof sr=="number"&&(sr={tl:sr,tr:sr,br:sr,bl:sr}),sr={tl:Math.min(sr.tl,zn/2,xn/2),tr:Math.min(sr.tr,zn/2,xn/2),bl:Math.min(sr.bl,zn/2,xn/2),br:Math.min(sr.br,zn/2,xn/2)},Pe.moveTo(Nt+sr.tl,un),Pe.arcTo(Nt+xn,un,Nt+xn,un+sr.tr,sr.tr),Pe.arcTo(Nt+xn,un+zn,Nt+xn-sr.br,un+zn,sr.br),Pe.arcTo(Nt,un+zn,Nt,un+zn-sr.bl,sr.bl),Pe.arcTo(Nt,un,Nt+sr.tl,un,sr.tl)}function _r(Pe,Nt,un){if(!un&&Nt===pe)return;const{ctx:xn,hoverAmount:zn,theme:sr,rect:Tr,highlighted:Br,hoverX:Er,hoverY:Sr}=Pe,{x:Vr,y:fi,width:xr,height:Wr}=Tr,ti=.35;let xi=un?1-ti+ti*zn:.4;Nt===pe&&(xi*=zn),xi!==0&&(xn.globalAlpha=xi,li(xn,sr,Nt,Vr,fi,xr,Wr,Br,Er,Sr),xn.globalAlpha=1)}var $r=4;function Ti(Pe,Nt){const{rect:un,theme:xn,ctx:zn,highlighted:sr}=Pe,{x:Tr,y:Br,width:Er,height:Sr}=un,Vr=20,fi=8,xr=$r;let Wr=Tr+xn.cellHorizontalPadding;const ti=[];for(const xi of Nt){if(Wr>Tr+Er)break;const Gi=Vn(xi,zn,`${xn.baseFontStyle} ${xn.fontFamily}`).width;ti.push({x:Wr,width:Gi}),Wr+=Gi+fi*2+xr}zn.beginPath();for(const xi of ti)Qn(zn,xi.x,Br+(Sr-Vr)/2,xi.width+fi*2,Vr,Vr/2);zn.fillStyle=sr?xn.bgBubbleSelected:xn.bgBubble,zn.fill();for(const[xi,Gi]of ti.entries())zn.beginPath(),zn.fillStyle=xn.textBubble,zn.fillText(Nt[xi],Gi.x+fi,Br+Sr/2+or(zn,xn))}var xt={};function On(Pe,Nt,un){const xn=Math.ceil(window.devicePixelRatio),zn=5,sr=un-zn*2,Tr=4,Br=6,Er=un*xn,Sr=Br+zn,Vr=Br*3,fi=(Vr+zn*2)*xn,xr=`${Pe},${Nt},${xn},${un}`;if(xt[xr]!==void 0)return{el:xt[xr],height:Er,width:fi,middleWidth:Tr*xn,sideWidth:Sr*xn,padding:zn*xn,dpr:xn};const Wr=document.createElement("canvas"),ti=Wr.getContext("2d");if(ti===null)return null;Wr.width=fi,Wr.height=Er,ti.scale(xn,xn),xt[xr]=Wr;const xi=Math.min(Br,Vr/2,sr/2);return ti.beginPath(),Qn(ti,zn,zn,Vr,sr,xi),ti.shadowColor="rgba(24, 25, 34, 0.4)",ti.shadowBlur=1,ti.fillStyle=Pe,ti.fill(),ti.shadowColor="rgba(24, 25, 34, 0.3)",ti.shadowOffsetY=1,ti.shadowBlur=5,ti.fillStyle=Pe,ti.fill(),ti.shadowOffsetY=0,ti.shadowBlur=0,ti.shadowBlur=0,ti.beginPath(),Qn(ti,zn+.5,zn+.5,Vr,sr,xi),ti.strokeStyle=Nt,ti.lineWidth=1,ti.stroke(),{el:Wr,height:Er,width:fi,sideWidth:Sr*xn,middleWidth:Br*xn,padding:zn*xn,dpr:xn}}function Zn(Pe,Nt){const{rect:un,theme:xn,ctx:zn,imageLoader:sr,col:Tr,row:Br}=Pe,{x:Er,width:Sr}=un,Vr=`${xn.baseFontStyle} ${xn.fontFamily}`,fi=fa(zn,Vr),xr=Math.min(un.height,Math.max(16,Math.ceil(fi*xn.lineHeight)*2)),Wr=Math.floor(un.y+(un.height-xr)/2),ti=xr-10,xi=8,Gi=$r;let _i=Er+xn.cellHorizontalPadding;const da=On(xn.bgCell,xn.drilldownBorder,xr),Sa=[];for(const Pa of Nt){if(_i>Er+Sr)break;const mo=Vn(Pa.text,zn,Vr).width;let Ga=0;Pa.img!==void 0&&sr.loadOrGetImage(Pa.img,Tr,Br)!==void 0&&(Ga=ti-8+4);const no=mo+Ga+xi*2;Sa.push({x:_i,width:no}),_i+=no+Gi}if(da!==null){const{el:Pa,height:oo,middleWidth:mo,sideWidth:Ga,width:no,dpr:ca,padding:co}=da,Yo=Ga/ca,bo=co/ca;for(const Ea of Sa){const ko=Math.floor(Ea.x),Es=Math.floor(Ea.width);zn.imageSmoothingEnabled=!1,zn.drawImage(Pa,0,0,Ga,oo,ko-bo,Wr,Yo,xr),Ea.width>Ga*2&&zn.drawImage(Pa,Ga,0,mo,oo,ko+(Yo-bo),Wr,Es-(Yo-bo)*2,xr),zn.drawImage(Pa,no-Ga,0,Ga,oo,ko+Es-(Yo-bo),Wr,Yo,xr),zn.imageSmoothingEnabled=!0}}zn.beginPath();for(const[Pa,oo]of Sa.entries()){const mo=Nt[Pa];let Ga=oo.x+xi;if(mo.img!==void 0){const no=sr.loadOrGetImage(mo.img,Tr,Br);if(no!==void 0){const ca=ti-8;let co=0,Yo=0,bo=no.width,Ea=no.height;bo>Ea?(co+=(bo-Ea)/2,bo=Ea):Ea>bo&&(Yo+=(Ea-bo)/2,Ea=bo),zn.beginPath(),Qn(zn,Ga,Wr+xr/2-ca/2,ca,ca,3),zn.save(),zn.clip(),zn.drawImage(no,co,Yo,bo,Ea,Ga,Wr+xr/2-ca/2,ca,ca),zn.restore(),Ga+=ca+4}}zn.beginPath(),zn.fillStyle=xn.textBubble,zn.fillText(mo.text,Ga,Wr+xr/2+or(zn,xn))}}function Ur(Pe,Nt,un=4){const{rect:xn,col:zn,row:sr,theme:Tr,ctx:Br,imageLoader:Er}=Pe,{x:Sr,y:Vr,height:fi}=xn;let xr=Sr+Tr.cellHorizontalPadding;for(const Wr of Nt){if(Wr.length===0)continue;const ti=Er.loadOrGetImage(Wr,zn,sr);if(ti!==void 0){const xi=fi-Tr.cellVerticalPadding*2,Gi=ti.width*(xi/ti.height);un>0&&(Qn(Br,xr,Vr+Tr.cellVerticalPadding,Gi,xi,un),Br.save(),Br.clip()),Br.drawImage(ti,xr,Vr+Tr.cellVerticalPadding,Gi,xi),un>0&&Br.restore(),xr+=Gi+$r}}}function En(Pe,Nt,un){const xn=function(Br,Er){const Sr=Er.x-Br.x,Vr=Er.y-Br.y,fi=Math.sqrt(Sr*Sr+Vr*Vr),xr=Sr/fi,Wr=Vr/fi;return{x:Sr,y:Er.y-Br.y,len:fi,nx:xr,ny:Wr,ang:Math.atan2(Wr,xr)}};let zn;const sr=Nt.length;let Tr=Nt[sr-1];for(let Br=0;Br<sr;Br++){let Er=Nt[Br%sr];const Sr=Nt[(Br+1)%sr],Vr=xn(Er,Tr),fi=xn(Er,Sr),xr=Vr.nx*fi.ny-Vr.ny*fi.nx,Wr=Vr.nx*fi.nx-Vr.ny*-fi.ny;let ti=Math.asin(xr<-1?-1:xr>1?1:xr),xi=1,Gi=!1;Wr<0?ti<0?ti=Math.PI+ti:(ti=Math.PI-ti,xi=-1,Gi=!0):ti>0&&(xi=-1,Gi=!0),zn=Er.radius!==void 0?Er.radius:un;const _i=ti/2;let da=Math.abs(Math.cos(_i)*zn/Math.sin(_i)),Sa;da>Math.min(Vr.len/2,fi.len/2)?(da=Math.min(Vr.len/2,fi.len/2),Sa=Math.abs(da*Math.sin(_i)/Math.cos(_i))):Sa=zn;let Pa=Er.x+fi.nx*da,oo=Er.y+fi.ny*da;Pa+=-fi.ny*Sa*xi,oo+=fi.nx*Sa*xi,Pe.arc(Pa,oo,Sa,Vr.ang+Math.PI/2*xi,fi.ang-Math.PI/2*xi,Gi),Tr=Er,Er=Sr}Pe.closePath()}function ln(Pe,Nt,un,xn,zn,sr,Tr,Br,Er,Sr,Vr,fi,xr,Wr,ti){const xi={x:0,y:sr+Sr,width:0,height:0},Gi=sr-zn;if(Pe>=fi){const _i=Tr>Pe?-1:1,da=it(Wr);xi.x+=da+Er;for(let Sa=Tr;Sa!==Pe;Sa+=_i)xi.x+=Wr[_i===1?Sa:Sa-1].width*_i}else for(let _i=0;_i<Pe;_i++)xi.x+=Wr[_i].width;if(xi.width=Wr[Pe].width+1,Nt===-1)xi.y=zn,xi.height=Gi;else if(Nt===-2){xi.y=0,xi.height=zn;let _i=Pe;const da=Wr[Pe].group,Sa=Wr[Pe].sticky;for(;_i>0&&An(Wr[_i-1].group,da)&&Wr[_i-1].sticky===Sa;){const oo=Wr[_i-1];xi.x-=oo.width,xi.width+=oo.width,_i--}let Pa=Pe;for(;Pa+1<Wr.length&&An(Wr[Pa+1].group,da)&&Wr[Pa+1].sticky===Sa;){const oo=Wr[Pa+1];xi.width+=oo.width,Pa++}if(!Sa){const oo=it(Wr),mo=xi.x-oo;mo<0&&(xi.x-=mo,xi.width+=mo),xi.x+xi.width>un&&(xi.width=un-xi.x)}}else if(xr&&Nt===Vr-1){const _i=typeof ti=="number"?ti:ti(Nt);xi.y=xn-_i,xi.height=_i}else{const _i=Br>Nt?-1:1;if(typeof ti=="number"){const da=Nt-Br;xi.y+=da*ti}else for(let da=Br;da!==Nt;da+=_i)xi.y+=ti(da)*_i;xi.height=(typeof ti=="number"?ti:ti(Nt))+1}return xi}var jn='<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg">',rr=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return` ${jn}<rect x="2" y="2" width="16" height="16" rx="2" fill="${un}"/><path d="M15.75 4h-1.5a.25.25 0 0 0-.177.074L9.308 8.838a3.75 3.75 0 1 0 1.854 1.854l1.155-1.157.967.322a.5.5 0 0 0 .65-.55l-.18-1.208.363-.363.727.331a.5.5 0 0 0 .69-.59l-.254-.904.647-.647A.25.25 0 0 0 16 5.75v-1.5a.25.25 0 0 0-.25-.25zM7.5 13.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0z" fill="${Nt}"/></svg>`},Mr=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return` ${jn}<rect x="2" y="2" width="16" height="16" rx="4" fill="${un}"/><path d="m12.223 13.314 3.052-2.826a.65.65 0 0 0 0-.984l-3.052-2.822c-.27-.25-.634-.242-.865.022-.232.263-.206.636.056.882l2.601 2.41-2.601 2.41c-.262.245-.288.619-.056.882.231.263.595.277.865.026Zm-4.444.005c.266.25.634.241.866-.027.231-.263.206-.636-.06-.882L5.983 10l2.602-2.405c.266-.25.291-.62.06-.887-.232-.263-.596-.272-.866-.022L4.723 9.51a.653.653 0 0 0 0 .983l3.056 2.827Z" fill="${Nt}"/></svg>`},Ir=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return`${jn} <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${un}"/> <path d="M6.52 12.78H5.51V8.74l-1.33.47v-.87l2.29-.83h.05v5.27zm5.2 0H8.15v-.69l1.7-1.83a6.38 6.38 0 0 0 .34-.4c.09-.11.16-.22.22-.32s.1-.19.12-.27a.9.9 0 0 0 0-.56.63.63 0 0 0-.15-.23.58.58 0 0 0-.22-.15.75.75 0 0 0-.29-.05c-.27 0-.48.08-.62.23a.95.95 0 0 0-.2.65H8.03c0-.24.04-.46.13-.67a1.67 1.67 0 0 1 .97-.91c.23-.1.49-.14.77-.14.26 0 .5.04.7.11.21.08.38.18.52.32.14.13.25.3.32.48a1.74 1.74 0 0 1 .03 1.13 2.05 2.05 0 0 1-.24.47 4.16 4.16 0 0 1-.35.47l-.47.5-1 1.05h2.32v.8zm1.8-3.08h.55c.28 0 .48-.06.61-.2a.76.76 0 0 0 .2-.55.8.8 0 0 0-.05-.28.56.56 0 0 0-.13-.22.6.6 0 0 0-.23-.15.93.93 0 0 0-.32-.05.92.92 0 0 0-.29.05.72.72 0 0 0-.23.12.57.57 0 0 0-.21.46H12.4a1.3 1.3 0 0 1 .5-1.04c.15-.13.33-.23.54-.3a2.48 2.48 0 0 1 1.4 0c.2.06.4.15.55.28.15.13.27.28.36.47.08.19.13.4.13.65a1.15 1.15 0 0 1-.2.65 1.36 1.36 0 0 1-.58.49c.15.05.28.12.38.2a1.14 1.14 0 0 1 .43.62c.03.13.05.26.05.4 0 .25-.05.47-.14.66a1.42 1.42 0 0 1-.4.49c-.16.13-.35.23-.58.3a2.51 2.51 0 0 1-.73.1c-.22 0-.44-.03-.65-.09a1.8 1.8 0 0 1-.57-.28 1.43 1.43 0 0 1-.4-.47 1.41 1.41 0 0 1-.15-.66h1a.66.66 0 0 0 .22.5.87.87 0 0 0 .58.2c.25 0 .45-.07.6-.2a.71.71 0 0 0 .21-.56.97.97 0 0 0-.06-.36.61.61 0 0 0-.18-.25.74.74 0 0 0-.28-.15 1.33 1.33 0 0 0-.37-.04h-.55V9.7z" fill="${Nt}"/> </svg>`},Zr=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return`${jn} <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${un}"/> <path d="M8.182 12.4h3.636l.655 1.6H14l-3.454-8H9.455L6 14h1.527l.655-1.6zM10 7.44l1.36 3.651H8.64L10 7.441z" fill="${Nt}"/> </svg>`},lr=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return`${jn} <path d="M16.2222 2H3.77778C2.8 2 2 2.8 2 3.77778V16.2222C2 17.2 2.8 18 3.77778 18H16.2222C17.2 18 17.9911 17.2 17.9911 16.2222L18 3.77778C18 2.8 17.2 2 16.2222 2Z" fill="${un}" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.66667 6.66669C5.73368 6.66669 4.16667 8.15907 4.16667 10C4.16667 11.841 5.73368 13.3334 7.66667 13.3334H12.3333C14.2663 13.3334 15.8333 11.841 15.8333 10C15.8333 8.15907 14.2663 6.66669 12.3333 6.66669H7.66667ZM12.5 12.5C13.8807 12.5 15 11.3807 15 10C15 8.61931 13.8807 7.50002 12.5 7.50002C11.1193 7.50002 10 8.61931 10 10C10 11.3807 11.1193 12.5 12.5 12.5Z" fill="${Nt}" /> </svg>`},Jr=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return`${jn} <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${un}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M10.29 4.947a3.368 3.368 0 014.723.04 3.375 3.375 0 01.041 4.729l-.009.009-1.596 1.597a3.367 3.367 0 01-5.081-.364.71.71 0 011.136-.85 1.95 1.95 0 002.942.21l1.591-1.593a1.954 1.954 0 00-.027-2.733 1.95 1.95 0 00-2.732-.027l-.91.907a.709.709 0 11-1.001-1.007l.915-.911.007-.007z" fill="${Nt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M6.55 8.678a3.368 3.368 0 015.082.364.71.71 0 01-1.136.85 1.95 1.95 0 00-2.942-.21l-1.591 1.593a1.954 1.954 0 00.027 2.733 1.95 1.95 0 002.73.028l.906-.906a.709.709 0 111.003 1.004l-.91.91-.008.01a3.368 3.368 0 01-4.724-.042 3.375 3.375 0 01-.041-4.728l.009-.009L6.55 8.678z" fill="${Nt}"/> </svg> `},pi=Pe=>{const Nt=Pe.bgColor;return`${jn} <path stroke="${Nt}" stroke-width="2" d="M12 3v14"/> <path stroke="${Nt}" stroke-width="2" stroke-linecap="round" d="M10 4h4m-4 12h4"/> <path d="M11 14h4a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3h-4v2h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-4v2ZM9.5 8H5a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h4.5v2H5a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h4.5v2Z" fill="${Nt}"/> </svg> `},Ri=Jr,Ki=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return`${jn} <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${un}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M7 13.138a.5.5 0 00.748.434l5.492-3.138a.5.5 0 000-.868L7.748 6.427A.5.5 0 007 6.862v6.276z" fill="${Nt}"/> </svg>`},ia=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return` ${jn} <path d="M10 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 9.17A4.17 4.17 0 0 1 5.83 10 4.17 4.17 0 0 1 10 5.83 4.17 4.17 0 0 1 14.17 10 4.17 4.17 0 0 1 10 14.17z" fill="${Nt}"/> <path d="M8.33 8.21a.83.83 0 1 0-.03 1.67.83.83 0 0 0 .03-1.67zm3.34 0a.83.83 0 1 0-.04 1.67.83.83 0 0 0 .04-1.67z" fill="${Nt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M14.53 13.9a2.82 2.82 0 0 1-5.06 0l.77-.38a1.97 1.97 0 0 0 3.52 0l.77.39z" fill="${Nt}"/> <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${un}"/> <path d="M10 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12zm0 11a5 5 0 1 1 .01-10.01A5 5 0 0 1 10 15z" fill="${Nt}"/> <path d="M8 7.86a1 1 0 1 0-.04 2 1 1 0 0 0 .04-2zm4 0a1 1 0 1 0-.04 2 1 1 0 0 0 .04-2z" fill="${Nt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M12.53 11.9a2.82 2.82 0 0 1-5.06 0l.77-.38a1.97 1.97 0 0 0 3.52 0l.77.39z" fill="${Nt}"/> </svg>`},Da=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return`${jn} <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${un}"/> <path opacity=".5" fill-rule="evenodd" clip-rule="evenodd" d="M12.499 10.801a.5.5 0 01.835 0l2.698 4.098a.5.5 0 01-.418.775H10.22a.5.5 0 01-.417-.775l2.697-4.098z" fill="${Nt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M8.07 8.934a.5.5 0 01.824 0l4.08 5.958a.5.5 0 01-.412.782h-8.16a.5.5 0 01-.413-.782l4.08-5.958zM13.75 8.333a2.083 2.083 0 100-4.166 2.083 2.083 0 000 4.166z" fill="${Nt}"/> </svg>`},to=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return` ${jn} <path fill="${Nt}" d="M3 3h14v14H3z"/> <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2zm-7.24 9.78h1.23c.15 0 .27.06.36.18l.98 1.28a.43.43 0 0 1-.05.58l-1.2 1.21a.45.45 0 0 1-.6.04A6.72 6.72 0 0 1 7.33 10c0-.61.1-1.2.25-1.78a6.68 6.68 0 0 1 2.12-3.3.44.44 0 0 1 .6.04l1.2 1.2c.16.17.18.42.05.59l-.98 1.29a.43.43 0 0 1-.36.17H8.98A5.38 5.38 0 0 0 8.67 10c0 .62.11 1.23.3 1.79z" fill="${un}"/> </svg>`},ao=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return` ${jn} <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${un}"/> <path d="m13.49 13.15-2.32-3.27h1.4V7h1.86v2.88h1.4l-2.34 3.27zM11 13H9v-3l-1.5 1.92L6 10v3H4V7h2l1.5 2L9 7h2v6z" fill="${Nt}"/> </svg>`},Bo=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return`${jn} <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${un}"/> <path d="M14.8 4.182h-.6V3H13v1.182H7V3H5.8v1.182h-.6c-.66 0-1.2.532-1.2 1.182v9.454C4 15.468 4.54 16 5.2 16h9.6c.66 0 1.2-.532 1.2-1.182V5.364c0-.65-.54-1.182-1.2-1.182zm0 10.636H5.2V7.136h9.6v7.682z" fill="${Nt}"/> </svg>`},jo=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return` ${jn} <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${un}"/> <path d="M10 4a6 6 0 0 0-6 6 6 6 0 0 0 6 6 6 6 0 0 0 6-6 6 6 0 0 0-6-6zm0 10.8A4.8 4.8 0 0 1 5.2 10a4.8 4.8 0 1 1 4.8 4.8z" fill="${Nt}"/> <path d="M10 7H9v3.93L12.5 13l.5-.8-3-1.76V7z" fill="${Nt}"/> </svg>`},Jo=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return`${jn} <rect x="2" y="2" width="16" height="16" rx="2" fill="${un}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M10 8.643a1.357 1.357 0 100 2.714 1.357 1.357 0 000-2.714zM7.357 10a2.643 2.643 0 115.286 0 2.643 2.643 0 01-5.286 0z" fill="${Nt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.589 4.898A5.643 5.643 0 0115.643 10v.5a2.143 2.143 0 01-4.286 0V8a.643.643 0 011.286 0v2.5a.857.857 0 001.714 0V10a4.357 4.357 0 10-1.708 3.46.643.643 0 01.782 1.02 5.643 5.643 0 11-5.842-9.582z" fill="${Nt}"/> </svg>`},Go=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return` ${jn} <rect x="2" y="8" width="10" height="8" rx="2" fill="${un}"/> <rect x="8" y="4" width="10" height="8" rx="2" fill="${un}"/> <path d="M10.68 7.73V6l2.97 3.02-2.97 3.02v-1.77c-2.13 0-3.62.7-4.68 2.2.43-2.15 1.7-4.31 4.68-4.74z" fill="${Nt}"/> </svg>`},wr=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return`${jn} <path fill="${Nt}" d="M4 3h12v14H4z"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M3.6 2A1.6 1.6 0 002 3.6v12.8A1.6 1.6 0 003.6 18h12.8a1.6 1.6 0 001.6-1.6V3.6A1.6 1.6 0 0016.4 2H3.6zm11.3 10.8a.7.7 0 01.7.7v1.4a.7.7 0 01-.7.7h-1.4a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.6-.693.117.117 0 00.1-.115V10.35a.117.117 0 00-.117-.116h-2.8a.117.117 0 00-.117.116v2.333c0 .064.053.117.117.117h.117a.7.7 0 01.7.7v1.4a.7.7 0 01-.7.7H9.3a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.7-.7h.117a.117.117 0 00.117-.117V10.35a.117.117 0 00-.117-.117h-2.8a.117.117 0 00-.117.117v2.342c0 .058.042.106.1.115a.7.7 0 01.6.693v1.4a.7.7 0 01-.7.7H5.1a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.7-.7h.35a.116.116 0 00.116-.117v-2.45c0-.515.418-.933.934-.933h2.917a.117.117 0 00.117-.117V6.85a.117.117 0 00-.117-.116h-2.45a.7.7 0 01-.7-.7V5.1a.7.7 0 01.7-.7h6.067a.7.7 0 01.7.7v.934a.7.7 0 01-.7.7h-2.45a.117.117 0 00-.118.116v2.333c0 .064.053.117.117.117H13.5c.516 0 .934.418.934.934v2.45c0 .063.052.116.116.116h.35z" fill="${un}"/> </svg>`},qi=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return` ${jn} <rect x="2" y="2" width="16" height="16" rx="2" fill="${un}"/> <path d="M9.98 13.33c.45 0 .74-.3.73-.75l-.01-.1-.16-1.67 1.45 1.05a.81.81 0 0 0 .5.18c.37 0 .72-.32.72-.76 0-.3-.17-.54-.49-.68l-1.63-.77 1.63-.77c.32-.14.49-.37.49-.67 0-.45-.34-.76-.71-.76a.81.81 0 0 0-.5.18l-1.47 1.03.16-1.74.01-.08c.01-.46-.27-.76-.72-.76-.46 0-.76.32-.75.76l.01.08.16 1.74-1.47-1.03a.77.77 0 0 0-.5-.18.74.74 0 0 0-.72.76c0 .3.17.53.49.67l1.63.77-1.62.77c-.32.14-.5.37-.5.68 0 .44.35.75.72.75a.78.78 0 0 0 .5-.17L9.4 10.8l-.16 1.68v.09c-.02.44.28.75.74.75z" fill="${Nt}"/> </svg>`},ja=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return` ${jn} <rect x="2" y="2" width="16" height="16" rx="2" fill="${un}"/> <path d="M8 5.83H5.83a.83.83 0 0 0 0 1.67h1.69A4.55 4.55 0 0 1 8 5.83zm-.33 3.34H5.83a.83.83 0 0 0 0 1.66h2.72a4.57 4.57 0 0 1-.88-1.66zM5.83 12.5a.83.83 0 0 0 0 1.67h7.5a.83.83 0 1 0 0-1.67h-7.5zm8.8-2.9a3.02 3.02 0 0 0 .46-1.6c0-1.66-1.32-3-2.94-3C10.52 5 9.2 6.34 9.2 8s1.31 3 2.93 3c.58 0 1.11-.17 1.56-.47l2.04 2.08.93-.94-2.04-2.08zm-2.48.07c-.9 0-1.63-.75-1.63-1.67s.73-1.67 1.63-1.67c.9 0 1.63.75 1.63 1.67s-.73 1.67-1.63 1.67z" fill="${Nt}"/> </svg>`},uo=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return`${jn} <rect x="2" y="2" width="16" height="16" rx="2" fill="${un}"/> <path d="M7.676 4.726V3l2.976 3.021-2.976 3.022v-1.77c-2.125 0-3.613.69-4.676 2.201.425-2.158 1.7-4.316 4.676-4.748zM10.182 14.4h3.636l.655 1.6H16l-3.454-8h-1.091L8 16h1.527l.655-1.6zM12 9.44l1.36 3.65h-2.72L12 9.44z" fill="${Nt}"/> </svg>`},wi=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return`${jn} <rect x="2" y="2" width="16" height="16" rx="2" fill="${un}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.167 5.417a.833.833 0 100 1.666h4.166a.833.833 0 100-1.666H4.167z" fill="${Nt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.083 4.167a.833.833 0 10-1.666 0v4.166a.833.833 0 101.666 0V4.167zM11.667 5.417a.833.833 0 100 1.666h4.166a.833.833 0 100-1.666h-4.166zM5.367 11.688a.833.833 0 00-1.179 1.179l2.947 2.946a.833.833 0 001.178-1.178l-2.946-2.947z" fill="${Nt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M8.313 12.867a.833.833 0 10-1.178-1.179l-2.947 2.947a.833.833 0 101.179 1.178l2.946-2.946z" fill="${Nt}"/> <path d="M10.833 12.5c0-.46.373-.833.834-.833h4.166a.833.833 0 110 1.666h-4.166a.833.833 0 01-.834-.833zM10.833 15c0-.46.373-.833.834-.833h4.166a.833.833 0 110 1.666h-4.166a.833.833 0 01-.834-.833z" fill="${Nt}"/> </svg>`},ai=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return` ${jn} <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${un}"/> <path d="M10 8.84a1.16 1.16 0 1 0 0 2.32 1.16 1.16 0 0 0 0-2.32zm3.02 3.61a3.92 3.92 0 0 0 .78-3.28.49.49 0 1 0-.95.2c.19.87-.02 1.78-.58 2.47a2.92 2.92 0 1 1-4.13-4.08 2.94 2.94 0 0 1 2.43-.62.49.49 0 1 0 .17-.96 3.89 3.89 0 1 0 2.28 6.27zM10 4.17a5.84 5.84 0 0 0-5.44 7.93.49.49 0 1 0 .9-.35 4.86 4.86 0 1 1 2.5 2.67.49.49 0 1 0-.4.88c.76.35 1.6.54 2.44.53a5.83 5.83 0 0 0 0-11.66zm3.02 3.5a.7.7 0 1 0-1.4 0 .7.7 0 0 0 1.4 0zm-6.97 5.35a.7.7 0 1 1 0 1.4.7.7 0 0 1 0-1.4z" fill="${Nt}"/> </svg>`},za=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return`${jn} <rect x="2" y="2" width="16" height="16" rx="2" fill="${un}"/> <path d="M12.4 13.565c1.865-.545 3.645-2.083 3.645-4.396 0-1.514-.787-2.604-2.071-2.604C12.69 6.565 12 7.63 12 8.939c1.114.072 1.865.726 1.865 1.683 0 .933-.8 1.647-1.84 2.023l.375.92zM4 5h6v2H4zM4 9h5v2H4zM4 13h4v2H4z" fill="${Nt}"/> </svg>`},Mt=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return` ${jn} <rect x="2" y="2" width="16" height="16" rx="2" fill="${un}"/> <path d="M12.4 13.56c1.86-.54 3.65-2.08 3.65-4.4 0-1.5-.8-2.6-2.08-2.6S12 7.64 12 8.95c1.11.07 1.86.73 1.86 1.68 0 .94-.8 1.65-1.83 2.03l.37.91zM4 5h6v2H4zm0 4h5v2H4zm0 4h4v2H4z" fill="${Nt}"/> </svg>`},Gn=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return`${jn} <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${un}"/> <path d="M10 7a1 1 0 100-2v2zm0 6a1 1 0 100 2v-2zm0-8H7v2h3V5zm-3 6h5V9H7v2zm5 2h-2v2h2v-2zm1-1a1 1 0 01-1 1v2a3 3 0 003-3h-2zm-1-1a1 1 0 011 1h2a3 3 0 00-3-3v2zM4 8a3 3 0 003 3V9a1 1 0 01-1-1H4zm3-3a3 3 0 00-3 3h2a1 1 0 011-1V5z" fill="${Nt}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.856 12.014a.5.5 0 00-.712.702L5.409 14l-1.265 1.284a.5.5 0 00.712.702l1.255-1.274 1.255 1.274a.5.5 0 00.712-.702L6.813 14l1.265-1.284a.5.5 0 00-.712-.702L6.11 13.288l-1.255-1.274zM12.856 4.014a.5.5 0 00-.712.702L13.409 6l-1.265 1.284a.5.5 0 10.712.702l1.255-1.274 1.255 1.274a.5.5 0 10.712-.702L14.813 6l1.265-1.284a.5.5 0 00-.712-.702L14.11 5.288l-1.255-1.274z" fill="${Nt}"/> </svg>`},qn=Pe=>{const Nt=Pe.fgColor,un=Pe.bgColor;return`${jn} <rect x="2" y="2" width="16" height="16" rx="2" fill="${un}"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M14.25 7.25a.75.75 0 000-1.5h-6.5a.75.75 0 100 1.5h6.5zM15 10a.75.75 0 01-.75.75h-6.5a.75.75 0 010-1.5h6.5A.75.75 0 0115 10zm-.75 4.25a.75.75 0 000-1.5h-6.5a.75.75 0 000 1.5h6.5zm-8.987-7a.75.75 0 100-1.5.75.75 0 000 1.5zm.75 2.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm-.75 4.25a.75.75 0 100-1.5.75.75 0 000 1.5z" fill="${Nt}"/> </svg>`},Fr=Pe=>{const Nt=Pe.fgColor;return` <svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M2 15v1h14v-2.5c0-.87-.44-1.55-.98-2.04a6.19 6.19 0 0 0-1.9-1.14 12.1 12.1 0 0 0-2.48-.67A4 4 0 1 0 5 6a4 4 0 0 0 2.36 3.65c-.82.13-1.7.36-2.48.67-.69.28-1.37.65-1.9 1.13A2.8 2.8 0 0 0 2 13.5V15z" fill="${Pe.bgColor}" stroke="${Nt}" stroke-width="2"/> </svg>`},Ei=Pe=>{const Nt=Pe.fgColor;return` <svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.43 6.04v-.18a3.86 3.86 0 0 0-7.72 0v.18A2.15 2.15 0 0 0 3 8.14v5.72C3 15.04 3.96 16 5.14 16H12c1.18 0 2.14-.96 2.14-2.14V8.14c0-1.03-.73-1.9-1.71-2.1zM7.86 6v-.14a.71.71 0 1 1 1.43 0V6H7.86z" fill="${Pe.bgColor}" stroke="${Nt}" stroke-width="2"/> </svg> `},ii={headerRowID:rr,headerNumber:Ir,headerCode:Mr,headerString:Zr,headerBoolean:lr,headerAudioUri:Ri,headerVideoUri:Ki,headerEmoji:ia,headerImage:Da,headerUri:Jr,headerPhone:to,headerMarkdown:ao,headerDate:Bo,headerTime:jo,headerEmail:Jo,headerReference:Go,headerIfThenElse:wr,headerSingleValue:qi,headerLookup:ja,headerTextTemplate:uo,headerMath:wi,headerRollup:ai,headerJoinStrings:za,headerSplitString:Mt,headerGeoDistance:Gn,headerArray:qn,rowOwnerOverlay:Fr,protectedColumnOverlay:Ei,renameIcon:pi};function Wi(Pe,Nt){return Pe==="normal"?[Nt.bgIconHeader,Nt.fgIconHeader]:Pe==="selected"?["white",Nt.accentColor]:[Nt.accentColor,Nt.bgHeader]}var Ya=class{constructor(Pe,Nt){this.onSettled=Nt,this.spriteMap=new Map,this.inFlight=0,this.headerIcons={...ii,...Pe}}drawSprite(Pe,Nt,un,xn,zn,sr,Tr,Br=1){const[Er,Sr]=Wi(Nt,Tr),Vr=sr*Math.ceil(window.devicePixelRatio),fi=`${Er}_${Sr}_${Vr}_${Pe}`;let xr=this.spriteMap.get(fi);if(xr===void 0){const Wr=this.headerIcons[Pe];if(Wr===void 0)return;xr=document.createElement("canvas");const ti=xr.getContext("2d");if(ti===null)return;const xi=new Image;xi.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(Wr({fgColor:Sr,bgColor:Er}))}`,this.spriteMap.set(fi,xr);const Gi=xi.decode();if(Gi===void 0)return;this.inFlight++,Gi.then(()=>{ti.drawImage(xi,0,0,Vr,Vr)}).finally(()=>{this.inFlight--,this.inFlight===0&&this.onSettled()})}else Br<1&&(un.globalAlpha=Br),un.drawImage(xr,0,0,Vr,Vr,xn,zn,sr,sr),Br<1&&(un.globalAlpha=1)}},qa={},se=null;function ye(){const Pe=document.createElement("div");return Pe.style.opacity="0",Pe.style.pointerEvents="none",Pe.style.position="fixed",document.body.append(Pe),Pe}function Xe(Pe){const Nt=Pe.toLowerCase().trim();if(qa[Nt]!==void 0)return qa[Nt];se=se||ye(),se.style.color="#000",se.style.color=Nt;const un=getComputedStyle(se).color;se.style.color="#fff",se.style.color=Nt;const xn=getComputedStyle(se).color;if(xn!==un)throw new Error("Could not parse color");const zn=xn.replace(/[^\d.,]/g,"").split(",").map(Number.parseFloat);return zn.length<4&&zn.push(1),qa[Nt]=zn,zn}function yt(Pe,Nt){const[un,xn,zn]=Xe(Pe);return`rgba(${un}, ${xn}, ${zn}, ${Nt})`}function Wt(Pe,Nt){if(Nt===void 0)return Pe;const[un,xn,zn,sr]=Xe(Pe);if(sr===1)return Pe;const[Tr,Br,Er,Sr]=Xe(Nt),Vr=sr+Sr*(1-sr),fi=(sr*un+Sr*Tr*(1-sr))/Vr,xr=(sr*xn+Sr*Br*(1-sr))/Vr,Wr=(sr*zn+Sr*Er*(1-sr))/Vr;return`rgba(${fi}, ${xr}, ${Wr}, ${Vr})`}function Qt(Pe,Nt,un){if(un<=0)return Pe;if(un>=1)return Nt;const xn=[...Xe(Pe)];xn[0]=xn[0]*xn[3],xn[1]=xn[1]*xn[3],xn[2]=xn[2]*xn[3];const zn=[...Xe(Nt)];zn[0]=zn[0]*zn[3],zn[1]=zn[1]*zn[3],zn[2]=zn[2]*zn[3];const sr=un,Tr=1-un,Br=xn[3]*Tr+zn[3]*sr,Er=Math.floor((xn[0]*Tr+zn[0]*sr)/Br),Sr=Math.floor((xn[1]*Tr+zn[1]*sr)/Br),Vr=Math.floor((xn[2]*Tr+zn[2]*sr)/Br);return`rgba(${Er}, ${Sr}, ${Vr}, ${Br})`}var wn={kind:fe.Loading,allowOverlay:!1};function fr(Pe,Nt,un,xn,zn,sr,Tr,Br,Er,Sr,Vr,fi,xr,Wr,ti,xi,Gi,_i,da,Sa){let Pa,oo;ti!==void 0&&ti[0][0]===xn&&ti[0][1]===Nt&&(Pa=ti[1][0],oo=ti[1][1]);let mo;const Ga={ctx:Pe,theme:Sr,col:xn,row:Nt,cell:un,rect:{x:zn,y:sr,width:Tr,height:Br},highlighted:Er,hoverAmount:Wr,hoverX:Pa,hoverY:oo,imageLoader:fi,spriteManager:xr,hyperWrapping:xi,requestAnimationFrame:()=>{no=!0}};let no=!1;return(si(Ga,un.lastUpdated,Gi,_i,()=>{var co,Yo;if(!(ue(un)?!1:Vr?.(Ga)===!0)){const Ea=Sa(un);if(Ea!==void 0){_i?.renderer!==Ea&&((co=_i?.deprep)==null||co.call(_i,Ga),_i=void 0);const ko=(Yo=Ea.drawPrep)==null?void 0:Yo.call(Ea,Ga,_i);Ea.draw(Ga,un),mo={deprep:ko?.deprep,fillStyle:ko?.fillStyle,font:ko?.font,renderer:Ea}}}})||no)&&da?.([xn,Nt]),mo}function Or(Pe,Nt,un,xn,zn,sr,Tr,Br,Er,Sr,Vr,fi,xr,Wr,ti,xi,Gi){const _i=[];let da=!1;Pe.imageSmoothingEnabled=!1;const Sa=Math.min(un.cellYOffset,zn),Pa=Math.max(un.cellYOffset,zn);let oo=0;if(typeof xi=="number")oo+=(Pa-Sa)*xi;else for(let Ea=Sa;Ea<Pa;Ea++)oo+=xi(Ea);zn>un.cellYOffset&&(oo=-oo),oo+=Tr-un.translateY;const mo=Math.min(un.cellXOffset,xn),Ga=Math.max(un.cellXOffset,xn);let no=0;for(let Ea=mo;Ea<Ga;Ea++)no+=Wr[Ea].width;xn>un.cellXOffset&&(no=-no),no+=sr-un.translateX;let ca=it(ti);if(ca>0&&ca++,no!==0&&oo!==0)return{regions:[],yOnly:!1};const co=Br?typeof xi=="number"?xi:xi(Vr-1):0,Yo=Er-ca-Math.abs(no),bo=Sr-fi-co-Math.abs(oo)-1;if(Yo>150&&bo>150){da=no===0;const Ea={sx:0,sy:0,sw:Er*xr,sh:Sr*xr,dx:0,dy:0,dw:Er*xr,dh:Sr*xr};oo>0?(Ea.sy=(fi+1)*xr,Ea.sh=bo*xr,Ea.dy=(oo+fi+1)*xr,Ea.dh=bo*xr,_i.push({x:0,y:fi,width:Er,height:oo+1})):oo<0&&(Ea.sy=(-oo+fi+1)*xr,Ea.sh=bo*xr,Ea.dy=(fi+1)*xr,Ea.dh=bo*xr,_i.push({x:0,y:Sr+oo-co,width:Er,height:-oo+co})),no>0?(Ea.sx=ca*xr,Ea.sw=Yo*xr,Ea.dx=(no+ca)*xr,Ea.dw=Yo*xr,_i.push({x:ca-1,y:0,width:no+2,height:Sr})):no<0&&(Ea.sx=(ca-no)*xr,Ea.sw=Yo*xr,Ea.dx=ca*xr,Ea.dw=Yo*xr,_i.push({x:Er+no,y:0,width:-no,height:Sr})),Pe.setTransform(1,0,0,1,0,0),ca>0&&no!==0&&oo===0&&Gi&&Pe.drawImage(Nt,0,0,ca*xr,Sr*xr,0,0,ca*xr,Sr*xr),Pe.drawImage(Nt,Ea.sx,Ea.sy,Ea.sw,Ea.sh,Ea.dx,Ea.dy,Ea.dw,Ea.dh),Pe.scale(xr,xr)}return Pe.imageSmoothingEnabled=!0,{regions:_i,yOnly:da}}function Si(Pe,Nt,un,xn,zn,sr,Tr,Br,Er,Sr){const Vr=[];return Nt!==Pe.cellXOffset||un!==Pe.cellYOffset||xn!==Pe.translateX||zn!==Pe.translateY||br(Er,un,xn,zn,Br,(fi,xr,Wr,ti)=>{if(fi.sourceIndex===Sr){const xi=Math.max(xr,ti)+1;return Vr.push({x:xi,y:0,width:sr-xi,height:Tr}),!0}}),Vr}function Fi(Pe,Nt,un,xn,zn,sr,Tr,Br,Er,Sr,Vr,fi,xr,Wr,ti,xi,Gi,_i=!1){var da,Sa,Pa;if(Er!==void 0){Pe.beginPath(),Pe.save(),Pe.rect(0,0,sr,Tr);for(const rs of Er)Pe.rect(rs.x+1,rs.y+1,rs.width-1,rs.height-1);Pe.clip("evenodd")}const oo=(da=Gi.horizontalBorderColor)!=null?da:Gi.borderColor,mo=Gi.borderColor;let Ga=0,no=sr,ca=0,co=Tr;if(Br!==void 0&&Br.length>0){Ga=Number.MAX_SAFE_INTEGER,ca=Number.MAX_SAFE_INTEGER,no=Number.MIN_SAFE_INTEGER,co=Number.MIN_SAFE_INTEGER;for(const rs of Br)Ga=Math.min(Ga,rs.x-1),no=Math.max(no,rs.x+rs.width+1),ca=Math.min(ca,rs.y-1),co=Math.max(co,rs.y+rs.height+1)}const Yo=[];Pe.beginPath();let bo=.5;for(let rs=0;rs<Nt.length;rs++){const ls=Nt[rs];if(ls.width===0)continue;bo+=ls.width;const Ss=ls.sticky?bo:bo+xn;Ss>=Ga&&Ss<=no&&Wr(rs+1)&&Yo.push({x1:Ss,y1:Math.max(Sr,ca),x2:Ss,y2:Math.min(Tr,co),color:mo})}const Ea=fi(xi-1),ko=Tr-Ea+.5,Es=ti==="sticky";if(Es&&Yo.push({x1:Ga,y1:ko,x2:no,y2:ko,color:oo}),_i!==!0){let rs=Vr+.5,ls=un;const Ss=Es?Tr-Ea:Tr;for(;rs+zn<=Ss;){const cs=rs+zn;if(cs>=ca&&cs<=co-1&&(!Es||ls!==xi-1||Math.abs(cs-ko)>1)){const Do=xr?.(ls);Yo.push({x1:Ga,y1:cs,x2:no,y2:cs,color:(Pa=(Sa=Do?.horizontalBorderColor)!=null?Sa:Do?.borderColor)!=null?Pa:oo})}rs+=fi(ls),ls++}}const Ts=A(Yo,rs=>rs.color);for(const rs of Object.keys(Ts)){Pe.strokeStyle=rs;for(const ls of Ts[rs])Pe.moveTo(ls.x1,ls.y1),Pe.lineTo(ls.x2,ls.y2);Pe.stroke(),Pe.beginPath()}Er!==void 0&&Pe.restore()}function Bi(Pe,Nt){const un=[];let xn=Pe.x+Pe.width-26*Nt.length;const zn=Pe.y+Pe.height/2-13,sr=26,Tr=26;for(let Br=0;Br<Nt.length;Br++)un.push({x:xn,y:zn,width:Tr,height:sr}),xn+=26;return un}function Ui(Pe,Nt,un){return Nt>=Pe.x&&Nt<=Pe.x+Pe.width&&un>=Pe.y&&un<=Pe.y+Pe.height}function vi(Pe,Nt,un,xn,zn,sr,Tr,Br,Er,Sr,Vr,fi){var xr;const[ti,xi]=(xr=sr?.[0])!=null?xr:[];let Gi=0;ei(Nt,un,xn,zn,(_i,da,Sa,Pa,oo,mo)=>{var Ga,no;if(fi!==void 0&&!fi.some(Ea=>Ea[1]===-2&&Ea[0]>=_i[0]&&Ea[0]<=_i[1]))return;Pe.save(),Pe.beginPath(),Pe.rect(Sa,Pa,oo,mo),Pe.clip();const ca=Vr(da),co=ca?.overrideTheme===void 0?Tr:{...Tr,...ca.overrideTheme},Yo=xi===-2&&ti!==void 0&&ti>=_i[0]&&ti<=_i[1],bo=Yo?co.bgHeaderHovered:co.bgHeader;if(bo!==Tr.bgHeader&&(Pe.fillStyle=bo,Pe.fill()),Pe.fillStyle=(Ga=co.textGroupHeader)!=null?Ga:co.textHeader,ca!==void 0){let Ea=Sa;if(ca.icon!==void 0&&(Br.drawSprite(ca.icon,"normal",Pe,Ea+8,(zn-20)/2,20,co),Ea+=26),Pe.fillText(ca.name,Ea+8,zn/2+or(Pe,`${Tr.headerFontStyle} ${Tr.fontFamily}`)),ca.actions!==void 0&&Yo){const ko=Bi({x:Sa,y:Pa,width:oo,height:mo},ca.actions);Pe.beginPath();const Es=ko[0].x-10,Ts=Sa+oo-Es;Pe.rect(Es,0,Ts,zn);const rs=Pe.createLinearGradient(Es,0,Es+Ts,0),ls=yt(bo,0);rs.addColorStop(0,ls),rs.addColorStop(10/Ts,bo),rs.addColorStop(1,bo),Pe.fillStyle=rs,Pe.fill(),Pe.globalAlpha=.6;const[Ss,cs]=(no=sr?.[1])!=null?no:[-1,-1];for(let Do=0;Do<ca.actions.length;Do++){const fs=ca.actions[Do],is=ko[Do],Os=Ui(is,Ss+Sa,cs);Os&&(Pe.globalAlpha=1),Br.drawSprite(fs.icon,"normal",Pe,is.x+is.width/2-10,is.y+is.height/2-10,20,co),Os&&(Pe.globalAlpha=.6)}Pe.globalAlpha=1}}Sa!==0&&Sr(_i[0])&&(Pe.beginPath(),Pe.moveTo(Sa+.5,0),Pe.lineTo(Sa+.5,zn),Pe.strokeStyle=Tr.borderColor,Pe.lineWidth=1,Pe.stroke()),Pe.restore(),Gi=Sa+oo}),Pe.beginPath(),Pe.moveTo(Gi+.5,0),Pe.lineTo(Gi+.5,zn),Pe.moveTo(0,zn+.5),Pe.lineTo(un,zn+.5),Pe.strokeStyle=Tr.borderColor,Pe.lineWidth=1,Pe.stroke()}var Xa=30;function Ko(Pe,Nt,un,xn){return{x:Pe+un-Xa,y:Math.max(Nt,Nt+xn/2-Xa/2),width:Xa,height:Math.min(Xa,xn)}}function So(Pe,Nt,un,xn,zn,sr,Tr,Br,Er,Sr,Vr,fi,xr,Wr){const ti=sr.title.startsWith(he),xi=Ko(Nt,un,xn,zn);if(xr!==void 0){let Pa=sr;if(ti&&(Pa={...sr,title:""}),xr({ctx:Pe,theme:Br,rect:{x:Nt,y:un,width:xn,height:zn},column:Pa,columnIndex:Pa.sourceIndex,isSelected:Tr,hoverAmount:Vr,isHovered:Er,hasSelectedCell:Sr,spriteManager:fi,menuBounds:xi}))return}if(ti){let Pa;sr.title===me&&(Pa=!0),sr.title===_e&&(Pa=!1),Pa!==!0&&(Pe.globalAlpha=Vr),li(Pe,Br,Pa,Nt,un,xn,zn,!1,void 0,void 0),Pa!==!0&&(Pe.globalAlpha=1);return}const Gi=Br.cellHorizontalPadding,_i=Tr?Br.textHeaderSelected:Br.textHeader,da=sr.hasMenu===!0&&(Er||Wr&&Tr);let Sa=Nt+Gi;if(sr.icon!==void 0){let Pa=Tr?"selected":"normal";sr.style==="highlight"&&(Pa=Tr?"selected":"special");const oo=Br.headerIconSize;fi.drawSprite(sr.icon,Pa,Pe,Sa,un+(zn-oo)/2,oo,Br),sr.overlayIcon!==void 0&&fi.drawSprite(sr.overlayIcon,Tr?"selected":"special",Pe,Sa+9,un+((zn-18)/2+6),18,Br),Sa+=Math.ceil(oo*1.3)}if(da&&sr.hasMenu===!0&&xn>35){const oo=xn-35,mo=xn-35*.7,Ga=oo/xn,no=mo/xn,ca=Pe.createLinearGradient(Nt,0,Nt+xn,0),co=yt(_i,0);ca.addColorStop(0,_i),ca.addColorStop(Ga,_i),ca.addColorStop(no,co),ca.addColorStop(1,co),Pe.fillStyle=ca}else Pe.fillStyle=_i;if(Pe.fillText(sr.title,Sa,un+zn/2+or(Pe,`${Br.headerFontStyle} ${Br.fontFamily}`)),da&&sr.hasMenu===!0){Pe.beginPath();const Pa=xi.x+xi.width/2-5.5,oo=xi.y+xi.height/2-3;En(Pe,[{x:Pa,y:oo},{x:Pa+11,y:oo},{x:Pa+5.5,y:oo+6}],1),Pe.fillStyle=_i,Pe.fill()}}function Lo(Pe,Nt,un,xn,zn,sr,Tr,Br,Er,Sr,Vr,fi,xr,Wr,ti,xi,Gi,_i,da){var Sa;const Pa=Tr+Br;if(Pa<=0)return;Pe.fillStyle=fi.bgHeader,Pe.fillRect(0,0,zn,Pa);const[oo,mo]=(Sa=xn?.[0])!=null?Sa:[],Ga=`${fi.headerFontStyle} ${fi.fontFamily}`;Pe.font=Ga,br(Nt,0,sr,0,Pa,(no,ca,co,Yo)=>{var bo,Ea,ko;if(Gi!==void 0&&!Gi.some(Yu=>Yu[1]===-1&&Yu[0]===no.sourceIndex))return;const Es=Math.max(0,Yo-ca);Pe.save(),Pe.beginPath(),Pe.rect(ca+Es,Br,no.width-Es,Tr),Pe.clip();const Ts=xi((bo=no.group)!=null?bo:"").overrideTheme,rs=no.themeOverride===void 0&&Ts===void 0?fi:{...fi,...Ts,...no.themeOverride};rs.bgHeader!==fi.bgHeader&&(Pe.fillStyle=rs.bgHeader,Pe.fill());const ls=`${rs.headerFontStyle} ${rs.fontFamily}`;Ga!==ls&&(Pe.font=ls);const Ss=Vr.columns.hasIndex(no.sourceIndex),cs=Er!==void 0||Sr,Do=!cs&&mo===-1&&oo===no.sourceIndex,fs=cs?0:(ko=(Ea=Wr.find(Yu=>Yu.item[0]===no.sourceIndex&&Yu.item[1]===-1))==null?void 0:Ea.hoverAmount)!=null?ko:0,is=Vr?.current!==void 0&&Vr.current.cell[0]===no.sourceIndex,Os=Ss?rs.accentColor:is?rs.bgHeaderHasFocus:rs.bgHeader,Qs=un?Br:0,du=no.sourceIndex===0?0:1;Ss?(Pe.fillStyle=Os,Pe.fillRect(ca+du,Qs,no.width-du,Tr)):(is||fs>0)&&(Pe.beginPath(),Pe.rect(ca+du,Qs,no.width-du,Tr),is&&(Pe.fillStyle=rs.bgHeaderHasFocus,Pe.fill()),fs>0&&(Pe.globalAlpha=fs,Pe.fillStyle=rs.bgHeaderHovered,Pe.fill(),Pe.globalAlpha=1)),So(Pe,ca,Qs,no.width,Tr,no,Ss,rs,Do,is,fs,xr,_i,da),Pe.restore()}),un&&vi(Pe,Nt,zn,sr,Br,xn,fi,xr,Wr,ti,xi,Gi)}function us(Pe,Nt,un,xn,zn,sr,Tr,Br){return Pe<=zn+Tr&&zn<=Pe+un&&Nt<=sr+Br&&sr<=Nt+xn}function Ee(Pe,Nt,un,xn,zn,sr,Tr,Br,Er,Sr,Vr,fi,xr,Wr){if(xr===void 0||xr.length===0)return;const ti=fi==="sticky"?Vr(Sr-1):0;Pe.beginPath(),ei(Nt,un,Tr,zn,(xi,Gi,_i,da,Sa,Pa)=>{for(let oo=0;oo<xr.length;oo++){const mo=xr[oo];if(mo[1]===-2&&mo[0]>=xi[0]&&mo[0]<=xi[1]){Pe.rect(_i,da,Sa,Pa);break}}}),br(Nt,Er,Tr,Br,sr,(xi,Gi,_i,da,Sa)=>{const Pa=Math.max(0,da-Gi),oo=Gi+Pa+1,mo=xi.width-Pa-1;for(let Ga=0;Ga<xr.length;Ga++){const no=xr[Ga];if(no[0]===xi.sourceIndex&&(no[1]===-1||no[1]===void 0)){Pe.rect(oo,zn,mo,sr-zn);break}}Wr&&Hn(Sa,_i,xn,Sr,Vr,fi,(Ga,no,ca,co)=>{let Yo=!1;for(let bo=0;bo<xr.length;bo++){const Ea=xr[bo];if(Ea[0]===xi.sourceIndex&&Ea[1]===no){Yo=!0;break}}if(Yo){const bo=Ga+1,ko=(co?bo+ca-1:Math.min(bo+ca-1,xn-ti))-bo;ko>0&&Pe.rect(oo,bo,mo,ko)}})}),Pe.clip()}function Y(Pe,Nt,un,xn,zn,sr,Tr){var Br,Er;const[Sr,Vr]=Pe;let fi,xr;const Wr=(Er=(Br=Tr.find(ti=>!ti.sticky))==null?void 0:Br.sourceIndex)!=null?Er:0;if(Vr>Wr){const ti=Math.max(Sr,Wr);let xi=Nt,Gi=xn;for(let _i=sr.sourceIndex-1;_i>=ti;_i--)xi-=Tr[_i].width,Gi+=Tr[_i].width;for(let _i=sr.sourceIndex+1;_i<=Vr;_i++)Gi+=Tr[_i].width;xr={x:xi,y:un,width:Gi,height:zn}}if(Wr>Sr){const ti=Math.min(Vr,Wr-1);let xi=Nt,Gi=xn;for(let _i=sr.sourceIndex-1;_i>=Sr;_i--)xi-=Tr[_i].width,Gi+=Tr[_i].width;for(let _i=sr.sourceIndex+1;_i<=ti;_i++)Gi+=Tr[_i].width;fi={x:xi,y:un,width:Gi,height:zn}}return[fi,xr]}function z(Pe,Nt,un,xn,zn,sr,Tr,Br,Er,Sr,Vr,fi,xr,Wr,ti,xi,Gi,_i,da,Sa,Pa,oo,mo,Ga,no,ca,co,Yo,bo,Ea,ko){var Es;let Ts=(Es=da?.length)!=null?Es:Number.MAX_SAFE_INTEGER;const rs=performance.now();let ls=`${bo.baseFontStyle} ${bo.fontFamily}`;Pe.font=ls;let Ss;const cs=new Set;return br(Nt,Br,sr,Tr,zn,(Do,fs,is,Os,Qs)=>{var du;const Yu=Math.max(0,Os-fs),$u=fs+Yu,Xu=zn+1,su=Do.width-Yu,Pu=xn-zn-1;if(_i.length>0){let Ws=!1;for(let Qo=0;Qo<_i.length;Qo++){const ds=_i[Qo];if(us($u,Xu,su,Pu,ds.x,ds.y,ds.width,ds.height)){Ws=!0;break}}if(!Ws)return}const Lu=()=>{Pe.save(),Pe.beginPath(),Pe.rect($u,Xu,su,Pu),Pe.clip()},hu=Sa.columns.hasIndex(Do.sourceIndex),Js=fi((du=Do.group)!=null?du:"").overrideTheme,ys=Do.themeOverride===void 0&&Js===void 0?bo:{...bo,...Js,...Do.themeOverride},qo=`${ys.baseFontStyle} ${ys.fontFamily}`;qo!==ls&&(ls=qo,Pe.font=qo),Lu();let Ps;return Hn(Qs,is,xn,Er,Sr,Gi,(Ws,Qo,ds,zu,tu)=>{var Ou,Hs,pu,ku;if(Qo<0)return;if(da!==void 0){let wl=!1;for(let Fl=0;Fl<da.length;Fl++){const rc=da[Fl];if(rc[0]===Do.sourceIndex&&rc[1]===Qo){wl=!0;break}}if(!wl)return}if(_i.length>0){let wl=!1;for(let Fl=0;Fl<_i.length;Fl++){const rc=_i[Fl];if(us(fs,Ws,Do.width,ds,rc.x,rc.y,rc.width,rc.height)){wl=!0;break}}if(!wl)return}const Nu=Sa.rows.hasIndex(Qo),Fu=Wr.hasIndex(Qo),Ku=Qo<Er?Vr([Do.sourceIndex,Qo]):wn;let sl=fs,lu=Do.width,Tu=!1,Vs=!1;if(Ku.span!==void 0){const[wl,Fl]=Ku.span,rc=`${Qo},${wl},${Fl},${Do.sticky}`;if(cs.has(rc)){Ts--;return}else{const Ic=Y(Ku.span,fs,Ws,Do.width,ds,Do,un),kl=Do.sticky?Ic[0]:Ic[1];if(!Do.sticky&&Ic[0]!==void 0&&(Vs=!0),kl!==void 0){sl=kl.x,lu=kl.width,cs.add(rc),Pe.restore(),Ps=void 0,Pe.save(),Pe.beginPath();const Gc=Math.max(0,Os-kl.x);Pe.rect(kl.x+Gc,Ws,kl.width-Gc,ds),Ss===void 0&&(Ss=[]),Ss.push({x:kl.x+Gc,y:Ws,width:kl.width-Gc,height:ds}),Pe.clip(),Tu=!0}}}const Ds=xr?.(Qo),Ks=tu&&((Ou=Do.trailingRowOptions)==null?void 0:Ou.themeOverride)!==void 0?(Hs=Do.trailingRowOptions)==null?void 0:Hs.themeOverride:void 0,nu=Ku.themeOverride===void 0&&Ds===void 0&&Ks===void 0?ys:{...ys,...Ds,...Ks,...Ku.themeOverride};Pe.beginPath();const Ju=[Do.sourceIndex,Qo],nl=Zt(Ju,Ku,Sa);let ec=We(Ju,Ku,Sa);const Mc=Ku.span!==void 0&&Sa.columns.some(wl=>Ku.span!==void 0&&wl>=Ku.span[0]&&wl<=Ku.span[1]);nl&&!ti&&xi?ec=0:nl&&(ec=Math.max(ec,1)),Mc&&ec++,nl||(Nu&&ec++,hu&&!zu&&ec++);const hc=Ku.kind===fe.Protected?nu.bgCellMedium:nu.bgCell;let Ol;if((zu||hc!==bo.bgCell)&&(Ol=Wt(hc,Ol)),ec>0||Fu){Fu&&(Ol=Wt(nu.bgHeader,Ol));for(let wl=0;wl<ec;wl++)Ol=Wt(nu.accentLight,Ol)}else Pa?.some(wl=>wl[0]===Do.sourceIndex&&wl[1]===Qo)===!0&&(Ol=Wt(nu.bgSearchResult,Ol));if(oo!==void 0)for(const wl of oo){const Fl=wl.range;Fl.x<=Do.sourceIndex&&Do.sourceIndex<Fl.x+Fl.width&&Fl.y<=Qo&&Qo<Fl.y+Fl.height&&(Ol=Wt(wl.color,Ol))}Ol!==void 0&&(Pe.fillStyle=Ol,Ps!==void 0&&(Ps.fillStyle=Ol),Pe.fillRect(sl,Ws,lu,ds)),Ku.style==="faded"&&(Pe.globalAlpha=.6);const Nl=ca.find(wl=>wl.item[0]===Do.sourceIndex&&wl.item[1]===Qo);if(lu>10&&!Vs){const wl=`${nu.baseFontStyle} ${nu.fontFamily}`;wl!==ls&&(Pe.font=wl,ls=wl),Ps=fr(Pe,Qo,Ku,Do.sourceIndex,sl,Ws,lu,ds,ec>0,nu,mo,Ga,no,(pu=Nl?.hoverAmount)!=null?pu:0,co,Yo,rs,Ps,Ea,ko)}return Ku.style==="faded"&&(Pe.globalAlpha=1),Ts--,Tu&&(Pe.restore(),(ku=Ps?.deprep)==null||ku.call(Ps,{ctx:Pe}),Ps=void 0,Lu(),ls=qo,Pe.font=qo),Ts<=0}),Pe.restore(),Ts<=0}),Ss}function B(Pe,Nt,un,xn,zn,sr,Tr,Br,Er,Sr,Vr,fi,xr,Wr,ti,xi,Gi,_i){Gi!==void 0||Nt[Nt.length-1]!==un[Nt.length-1]||br(Nt,Er,Tr,Br,sr,(da,Sa,Pa,oo,mo)=>{if(da!==Nt[Nt.length-1])return;Sa+=da.width;const Ga=Math.max(Sa,oo);Ga>xn||(Pe.save(),Pe.beginPath(),Pe.rect(Ga,sr+1,1e4,zn-sr-1),Pe.clip(),Hn(mo,Pa,zn,Sr,Vr,ti,(no,ca,co,Yo)=>{if(!Yo&&xi.length>0&&!xi.some(Ts=>us(Sa,no,1e4,co,Ts.x,Ts.y,Ts.width,Ts.height)))return;const bo=xr.hasIndex(ca),Ea=Wr.hasIndex(ca);Pe.beginPath();const ko=fi?.(ca),Es=ko===void 0?_i:{..._i,...ko};Es.bgCell!==_i.bgCell&&(Pe.fillStyle=Es.bgCell,Pe.fillRect(Sa,no,1e4,co)),Ea&&(Pe.fillStyle=Es.bgHeader,Pe.fillRect(Sa,no,1e4,co)),bo&&(Pe.fillStyle=Es.accentLight,Pe.fillRect(Sa,no,1e4,co))}),Pe.restore())})}function le(Pe,Nt,un,xn,zn,sr,Tr,Br,Er){var Sr;let Vr=!1;for(const ti of Nt)if(!ti.sticky){Vr=Tr(ti.sourceIndex);break}const fi=(Sr=Er.horizontalBorderColor)!=null?Sr:Er.borderColor,xr=Er.borderColor,Wr=Vr?it(Nt):0;if(Wr!==0&&(Pe.beginPath(),Pe.moveTo(Wr+.5,0),Pe.lineTo(Wr+.5,xn),Pe.strokeStyle=Wt(xr,Er.bgCell),Pe.stroke()),zn){const ti=Br(sr-1);Pe.beginPath(),Pe.moveTo(0,xn-ti+.5),Pe.lineTo(un,xn-ti+.5),Pe.strokeStyle=Wt(fi,Er.bgCell),Pe.stroke()}}function Le(Pe,Nt,un,xn,zn,sr,Tr,Br,Er,Sr,Vr,fi,xr,Wr,ti){const xi=ti?.filter(Sa=>Sa.style!=="no-outline");if(xi===void 0||xi.length===0)return;const Gi=xi.map(Sa=>{var Pa,oo,mo,Ga,no;const ca=Sa.range,co=ln(ca.x,ca.y,Nt,un,Vr,Sr+Vr,xn,zn,sr,Tr,Wr,Er,xr,Br,fi);if(ca.width===1&&ca.height===1)return ca.x<Er?[{color:Sa.color,style:(Pa=Sa.style)!=null?Pa:"dashed",rect:co},void 0]:[void 0,{color:Sa.color,style:(oo=Sa.style)!=null?oo:"dashed",rect:co}];const Yo=ln(ca.x+ca.width-1,ca.y+ca.height-1,Nt,un,Vr,Sr+Vr,xn,zn,sr,Tr,Wr,Er,xr,Br,fi);if(ca.x<Er&&ca.x+ca.width>=Er){const bo=ln(Er-1,ca.y+ca.height-1,Nt,un,Vr,Sr+Vr,xn,zn,sr,Tr,Wr,Er,xr,Br,fi),Ea=ln(Er,ca.y+ca.height-1,Nt,un,Vr,Sr+Vr,xn,zn,sr,Tr,Wr,Er,xr,Br,fi);return[{color:Sa.color,style:(mo=Sa.style)!=null?mo:"dashed",rect:{x:co.x,y:co.y,width:bo.x+bo.width-co.x,height:bo.y+bo.height-co.y}},{color:Sa.color,style:(Ga=Sa.style)!=null?Ga:"dashed",rect:{x:Ea.x,y:Ea.y,width:Yo.x+Yo.width-Ea.x,height:Yo.y+Yo.height-Ea.y}}]}else return[void 0,{color:Sa.color,style:(no=Sa.style)!=null?no:"dashed",rect:{x:co.x,y:co.y,width:Yo.x+Yo.width-co.x,height:Yo.y+Yo.height-co.y}}]}),_i=it(Br),da=()=>{Pe.beginPath(),Pe.save();let Sa=!1;const Pa=mo=>{Sa!==mo&&(Pe.setLineDash(mo?[5,3]:[]),Sa=mo)};Pe.lineWidth=1;for(const mo of Gi){const[Ga]=mo;Ga!==void 0&&us(0,0,Nt,un,Ga.rect.x,Ga.rect.y,Ga.rect.width,Ga.rect.height)&&(Pa(Ga.style==="dashed"),Pe.strokeStyle=yt(Ga.color,1),Pe.strokeRect(Ga.rect.x+1,Ga.rect.y+1,Ga.rect.width-2,Ga.rect.height-2))}let oo=!1;for(const mo of Gi){const[,Ga]=mo;Ga!==void 0&&us(0,0,Nt,un,Ga.rect.x,Ga.rect.y,Ga.rect.width,Ga.rect.height)&&(Pa(Ga.style==="dashed"),!oo&&Ga.rect.x<_i&&(Pe.rect(_i,0,Nt,un),Pe.clip(),oo=!0),Pe.strokeStyle=yt(Ga.color,1),Pe.strokeRect(Ga.rect.x+1,Ga.rect.y+1,Ga.rect.width-2,Ga.rect.height-2))}Pe.restore()};return da(),da}function Je(Pe,Nt,un,xn,zn,sr,Tr,Br,Er,Sr,Vr,fi,xr,Wr,ti,xi){var Gi;if(Vr.current===void 0||!Tr.some(ca=>{var co;return ca.sourceIndex===((co=Vr.current)==null?void 0:co.cell[0])}))return;const[_i,da]=Vr.current.cell,Sa=xr(Vr.current.cell),Pa=(Gi=Sa.span)!=null?Gi:[_i,_i],oo=Wr==="sticky"&&da===xi-1,mo=Wr==="sticky"&&!oo?fi(xi-1)-1:0;let Ga;if(br(Tr,xn,zn,sr,Sr,(ca,co,Yo,bo,Ea)=>{if(!(ca.sticky&&_i>ca.sourceIndex)&&!(ca.sourceIndex<Pa[0]||ca.sourceIndex>Pa[1]))return Hn(Ea,Yo,un,xi,fi,Wr,(ko,Es,Ts)=>{if(Es!==da)return;let rs=co,ls=ca.width;if(Sa.span!==void 0){const Ss=Y(Sa.span,co,ko,ca.width,Ts,ca,Br),cs=ca.sticky?Ss[0]:Ss[1];cs!==void 0&&(rs=cs.x,ls=cs.width)}return Ga=()=>{var Ss,cs,Do,fs;bo>rs&&!ca.sticky&&(Pe.beginPath(),Pe.rect(bo,0,Nt-bo,un),Pe.clip()),Pe.beginPath(),Pe.rect(rs+.5,ko+.5,ls,Ts),Pe.strokeStyle=(cs=(Ss=ca.themeOverride)==null?void 0:Ss.accentColor)!=null?cs:Er.accentColor,Pe.lineWidth=1,Pe.stroke(),ti&&(Pe.beginPath(),Pe.rect(rs+ls-4,ko+Ts-4,4,4),Pe.fillStyle=(fs=(Do=ca.themeOverride)==null?void 0:Do.accentColor)!=null?fs:Er.accentColor,Pe.fill())},!0}),!0}),Ga===void 0)return;const no=()=>{Pe.save(),Pe.beginPath(),Pe.rect(0,Sr,Nt,un-Sr-mo),Pe.clip(),Ga?.(),Pe.restore()};return no(),no}function Ct(Pe,Nt,un,xn,zn,sr,Tr,Br,Er){let Sr=0;return br(Pe,sr,xn,zn,un,(Vr,fi,xr,Wr,ti)=>(Hn(ti,xr,Nt,Tr,Br,Er,(xi,Gi,_i,da)=>{da||(Sr=Math.max(Gi,Sr))}),!0)),Sr}function Vt(Pe,Nt){if(Nt===void 0||Pe.width!==Nt.width||Pe.height!==Nt.height||Pe.theme!==Nt.theme||Pe.headerHeight!==Nt.headerHeight||Pe.rowHeight!==Nt.rowHeight||Pe.rows!==Nt.rows||Pe.getRowThemeOverride!==Nt.getRowThemeOverride||Pe.isFocused!==Nt.isFocused||Pe.isResizing!==Nt.isResizing||Pe.verticalBorder!==Nt.verticalBorder||Pe.getCellContent!==Nt.getCellContent||Pe.highlightRegions!==Nt.highlightRegions||Pe.selection!==Nt.selection||Pe.dragAndDropState!==Nt.dragAndDropState||Pe.prelightCells!==Nt.prelightCells||Pe.touchMode!==Nt.touchMode||Pe.scrolling!==Nt.scrolling)return!1;if(Pe.mappedColumns!==Nt.mappedColumns){if(Pe.mappedColumns.length>100||Pe.mappedColumns.length!==Nt.mappedColumns.length)return!1;let un;for(let xn=0;xn<Pe.mappedColumns.length;xn++){const zn=Pe.mappedColumns[xn],sr=Nt.mappedColumns[xn];if(Z(zn,sr))continue;if(un!==void 0||zn.width===sr.width)return!1;const{width:Tr,...Br}=zn,{width:Er,...Sr}=sr;if(!Z(Br,Sr))return!1;un=xn}return un===void 0?!0:un}return!0}function bn(Pe,Nt){var un,xn;const{canvas:zn,headerCanvas:sr,width:Tr,height:Br,cellXOffset:Er,cellYOffset:Sr,translateX:Vr,translateY:fi,mappedColumns:xr,enableGroups:Wr,freezeColumns:ti,dragAndDropState:xi,theme:Gi,drawFocus:_i,headerHeight:da,groupHeaderHeight:Sa,disabledRows:Pa,rowHeight:oo,verticalBorder:mo,isResizing:Ga,selection:no,fillHandle:ca,lastRowSticky:co,rows:Yo,getCellContent:bo,getGroupDetails:Ea,getRowThemeOverride:ko,isFocused:Es,drawCustomCell:Ts,drawHeaderCallback:rs,prelightCells:ls,highlightRegions:Ss,imageLoader:cs,lastBlitData:Do,hoverValues:fs,hyperWrapping:is,hoverInfo:Os,spriteManager:Qs,scrolling:du,touchMode:Yu,enqueue:$u,getCellRenderer:Xu,renderStrategy:su,bufferA:Pu,bufferB:Lu}=Pe;let{damage:hu}=Pe;if(Tr===0||Br===0)return;const Js=su==="double-buffer",ys=du?1:Math.ceil((un=window.devicePixelRatio)!=null?un:1),qo=su!=="direct"&&Vt(Pe,Nt);(zn.width!==Tr*ys||zn.height!==Br*ys)&&(zn.width=Tr*ys,zn.height=Br*ys,zn.style.width=Tr+"px",zn.style.height=Br+"px");const Ps=sr,Ws=Wr?Sa+da:da,Qo=Ws+1;(Ps.width!==Tr*ys||Ps.height!==Qo*ys)&&(Ps.width=Tr*ys,Ps.height=Qo*ys,Ps.style.width=Tr+"px",Ps.style.height=Qo+"px"),Js&&(Pu.width!==Tr*ys||Pu.height!==Br*ys)&&(Pu.width=Tr*ys,Pu.height=Br*ys),Js&&(Lu.width!==Tr*ys||Lu.height!==Br*ys)&&(Lu.width=Tr*ys,Lu.height=Br*ys);const ds=Do.current;if(qo===!0&&Er===ds?.cellXOffset&&Sr===ds?.cellYOffset&&Vr===ds?.translateX&&fi===ds?.translateY)return;let zu=null;Js&&(zu=zn.getContext("2d",{alpha:!1}));const tu=Ps.getContext("2d",{alpha:!1});let Ou;Js?hu!==void 0?Ou=ds?.lastBuffer==="b"?Lu:Pu:Ou=ds?.lastBuffer==="b"?Pu:Lu:Ou=zn;const Hs=Ou.getContext("2d",{alpha:!1}),pu=Js?Ou===Pu?Lu:Pu:zn;if(tu===null||Hs===null)return;const ku=typeof oo=="number"?()=>oo:oo;tu.save(),tu.beginPath(),Hs.save(),Hs.beginPath(),tu.textBaseline="middle",Hs.textBaseline="middle",ys!==1&&(tu.scale(ys,ys),Hs.scale(ys,ys));const Nu=qt(xr,Er,Tr,xi,Vr);let Fu=[];const Ku=_i&&((xn=no.current)==null?void 0:xn.cell[1])===Sr&&fi===0,sl=()=>{var Ks,nu;Lo(tu,Nu,Wr,Os,Tr,Vr,da,Sa,xi,Ga,no,Gi,Qs,fs,mo,Ea,hu,rs,Yu),Fi(tu,Nu,Sr,Vr,fi,Tr,Br,void 0,void 0,Sa,Ws,ku,ko,mo,co,Yo,Gi,!0),tu.beginPath(),tu.moveTo(0,Qo-.5),tu.lineTo(Tr,Qo-.5),tu.strokeStyle=Wt((nu=(Ks=Gi.headerBottomBorderColor)!=null?Ks:Gi.horizontalBorderColor)!=null?nu:Gi.borderColor,Gi.bgHeader),tu.stroke(),Ku&&Je(tu,Tr,Br,Sr,Vr,fi,Nu,xr,Gi,Ws,no,ku,bo,co,ca,Yo)};if(hu!==void 0){let Ks=!1;hu=hu.filter(nu=>(Ks=Ks||nu[1]<0,nu[1]<0||us(Er,Sr,Nu.length,300,nu[0],nu[1],1,1)||us(0,Sr,ti,300,nu[0],nu[1],1,1)||co&&us(Er,Yo-1,Nu.length,1,nu[0],nu[1],1,1))),hu.length>0&&(Ee(Hs,Nu,Tr,Br,Sa,Ws,Vr,fi,Sr,Yo,ku,co,hu,!0),Hs.fillStyle=Gi.bgCell,Hs.fillRect(0,Ws+1,Tr,Br-Ws-1),z(Hs,Nu,xr,Br,Ws,Vr,fi,Sr,Yo,ku,bo,Ea,ko,Pa,Es,_i,co,Fu,hu,no,ls,Ss,Ts,cs,Qs,fs,Os,is,Gi,$u,Xu),ca&&_i&&no.current!==void 0&&hu.some(nu=>{var Ju,nl;return nu[0]===((Ju=no.current)==null?void 0:Ju.cell[0])&&nu[1]===((nl=no.current)==null?void 0:nl.cell[1])})&&Je(Hs,Tr,Br,Sr,Vr,fi,Nu,xr,Gi,Ws,no,ku,bo,co,ca,Yo)),Ks&&(Ee(tu,Nu,Tr,Ws,Sa,Ws,Vr,fi,Sr,Yo,ku,co,hu,!1),sl()),Hs.restore(),tu.restore(),zu!==null&&(zu.fillStyle=Gi.bgCell,zu.fillRect(0,0,Tr,Br),zu.drawImage(Hs.canvas,0,0));return}if((qo!==!0||Er!==ds?.cellXOffset||Vr!==ds?.translateX||Ku!==ds?.mustDrawFocusOnHeader)&&sl(),qo===!0){W(pu!==void 0&&ds!==void 0);const{regions:Ks}=Or(Hs,pu,ds,Er,Sr,Vr,fi,co==="sticky",Tr,Br,Yo,Ws,ys,xr,Nu,oo,Js);Fu=Ks}else qo!==!1&&(W(ds!==void 0),Fu=Si(ds,Er,Sr,Vr,fi,Tr,Br,Ws,Nu,qo));le(Hs,Nu,Tr,Br,co==="sticky",Yo,mo,ku,Gi);const lu=_i?Je(Hs,Tr,Br,Sr,Vr,fi,Nu,xr,Gi,Ws,no,ku,bo,co,ca,Yo):void 0,Tu=Le(Hs,Tr,Br,Er,Sr,Vr,fi,xr,ti,da,Sa,oo,co==="sticky",Yo,Ss);if(Hs.fillStyle=Gi.bgCell,Fu.length>0){Hs.beginPath();for(const Ks of Fu)Hs.rect(Ks.x,Ks.y,Ks.width,Ks.height);Hs.clip(),Hs.fill(),Hs.beginPath()}else Hs.fillRect(0,0,Tr,Br);const Vs=z(Hs,Nu,xr,Br,Ws,Vr,fi,Sr,Yo,ku,bo,Ea,ko,Pa,Es,_i,co,Fu,hu,no,ls,Ss,Ts,cs,Qs,fs,Os,is,Gi,$u,Xu);B(Hs,Nu,xr,Tr,Br,Ws,Vr,fi,Sr,Yo,ku,ko,no.rows,Pa,co,Fu,hu,Gi),Fi(Hs,Nu,Sr,Vr,fi,Tr,Br,Fu,Vs,Sa,Ws,ku,ko,mo,co,Yo,Gi),lu?.(),Tu?.(),zu!==null&&(zu.fillStyle=Gi.bgCell,zu.fillRect(0,0,Tr,Br),zu.drawImage(Hs.canvas,0,0));const Ds=Ct(Nu,Br,Ws,Vr,fi,Sr,Yo,ku,co);cs?.setWindow({x:Er,y:Sr,width:Nu.length,height:Ds-Sr},ti),Do.current={cellXOffset:Er,cellYOffset:Sr,translateX:Vr,translateY:fi,mustDrawFocusOnHeader:Ku,lastBuffer:Js?Ou===Pu?"a":"b":void 0},Hs.restore(),tu.restore()}function Hn(Pe,Nt,un,xn,zn,sr,Tr){let Br=Nt,Er=Pe,Sr=sr==="sticky";for(;Br<un||Sr;){const Vr=Sr&&Br>=un;Vr&&(Sr=!1,Er=xn-1);const fi=zn(Er);if(Vr&&(Br=un-fi),!(Sr&&Er===xn-1)&&Tr(Br,Er,fi,Vr,sr!=="none"&&Er===xn-1)===!0||Vr)break;Br+=fi,Er++}}function br(Pe,Nt,un,xn,zn,sr){let Tr=0,Br=0;const Er=zn+xn;for(const Sr of Pe){const Vr=Sr.sticky?Br:Tr+un;if(sr(Sr,Vr,Er,Br,Nt)===!0)break;Tr+=Sr.width,Br+=Sr.sticky?Sr.width:0}}function ei(Pe,Nt,un,xn,zn){var sr;let Tr=0,Br=0;for(let Er=0;Er<Pe.length;Er++){const Sr=Pe[Er];let Vr=Er+1,fi=Sr.width;for(Sr.sticky&&(Br+=fi);Vr<Pe.length&&An(Pe[Vr].group,Sr.group)&&Pe[Vr].sticky===Pe[Er].sticky;){const Gi=Pe[Vr];fi+=Gi.width,Vr++,Er++,Gi.sticky&&(Br+=Gi.width)}const xr=Sr.sticky?0:un,Wr=Tr+xr,ti=Sr.sticky?0:Math.max(0,Br-Wr),xi=Math.min(fi-ti,Nt-(Wr+ti));zn([Sr.sourceIndex,Pe[Vr-1].sourceIndex],(sr=Sr.group)!=null?sr:"",Wr+ti,0,xi,xn),Tr+=fi}}var mi=80;function Li(Pe){const Nt=Pe-1;return Nt*Nt*Nt+1}var na=class{constructor(Pe){this.callback=Pe,this.currentHoveredItem=void 0,this.leavingItems=[],this.areSameItems=(Nt,un)=>Nt?.[0]===un?.[0]&&Nt?.[1]===un?.[1],this.addToLeavingItems=Nt=>{this.leavingItems.some(xn=>this.areSameItems(xn.item,Nt.item))||this.leavingItems.push(Nt)},this.removeFromLeavingItems=Nt=>{var un;const xn=this.leavingItems.find(zn=>this.areSameItems(zn.item,Nt));return this.leavingItems=this.leavingItems.filter(zn=>zn!==xn),(un=xn?.hoverAmount)!=null?un:0},this.cleanUpLeavingElements=()=>{this.leavingItems=this.leavingItems.filter(Nt=>Nt.hoverAmount>0)},this.shouldStep=()=>{const Nt=this.leavingItems.length>0,un=this.currentHoveredItem!==void 0&&this.currentHoveredItem.hoverAmount<1;return Nt||un},this.getAnimatingItems=()=>this.currentHoveredItem!==void 0?[...this.leavingItems,this.currentHoveredItem]:this.leavingItems.map(Nt=>({...Nt,hoverAmount:Li(Nt.hoverAmount)})),this.step=Nt=>{if(this.lastAnimationTime===void 0)this.lastAnimationTime=Nt;else{const xn=(Nt-this.lastAnimationTime)/mi;for(const sr of this.leavingItems)sr.hoverAmount=u(sr.hoverAmount-xn,0,1);this.currentHoveredItem!==void 0&&(this.currentHoveredItem.hoverAmount=u(this.currentHoveredItem.hoverAmount+xn,0,1));const zn=this.getAnimatingItems();this.callback(zn),this.cleanUpLeavingElements()}this.shouldStep()?(this.lastAnimationTime=Nt,window.requestAnimationFrame(this.step)):this.lastAnimationTime=void 0},this.setHovered=Nt=>{var un;if(!this.areSameItems((un=this.currentHoveredItem)==null?void 0:un.item,Nt)){if(this.currentHoveredItem!==void 0&&this.addToLeavingItems(this.currentHoveredItem),Nt!==void 0){const xn=this.removeFromLeavingItems(Nt);this.currentHoveredItem={item:Nt,hoverAmount:xn}}else this.currentHoveredItem=void 0;this.lastAnimationTime===void 0&&window.requestAnimationFrame(this.step)}}}},ji=class{constructor(Pe){this.fn=Pe}get value(){var Pe;return(Pe=this.val)!=null?Pe:this.val=this.fn()}};function $a(Pe){return new ji(Pe)}var Ha=$a(()=>window.navigator.userAgent.includes("Firefox")),Eo=$a(()=>window.navigator.userAgent.includes("Mac OS")&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")),Uo=$a(()=>window.navigator.platform.toLowerCase().startsWith("mac"));function Ms(Pe,Nt){for(const un of Pe)if(un[0]===Nt[0]&&un[1]===Nt[1])return!0;return!1}function er(Pe){const Nt=s.useRef([]),un=s.useRef(0),xn=s.useRef(Pe);xn.current=Pe;const zn=s.useCallback(()=>{const sr=()=>window.requestAnimationFrame(Tr),Tr=()=>{const Br=Nt.current;Nt.current=[],xn.current(Br),Nt.current.length>0?un.current++:un.current=0};window.requestAnimationFrame(un.current>600?sr:Tr)},[]);return s.useCallback(sr=>{Ms(Nt.current,sr)||(Nt.current.length===0&&zn(),Nt.current.push(sr))},[zn])}var Ar=(Pe,Nt)=>{var un;if(Pe.kind===fe.Custom)return Pe.copyData;const xn=Nt?.(Pe);return(un=xn?.getAccessibilityString(Pe))!=null?un:""},Kr=(Pe,Nt)=>{var un,xn,zn,sr,Tr,Br,Er,Sr;const{width:Vr,height:fi,accessibilityHeight:xr,columns:Wr,cellXOffset:ti,cellYOffset:xi,headerHeight:Gi,fillHandle:_i=!1,groupHeaderHeight:da,rowHeight:Sa,rows:Pa,getCellContent:oo,getRowThemeOverride:mo,onHeaderMenuClick:Ga,enableGroups:no,isFilling:ca,onCanvasFocused:co,onCanvasBlur:Yo,isFocused:bo,selection:Ea,freezeColumns:ko,onContextMenu:Es,trailingRowType:Ts,fixedShadowX:rs=!0,fixedShadowY:ls=!0,drawFocusRing:Ss=!0,onMouseDown:cs,onMouseUp:Do,onMouseMoveRaw:fs,onMouseMove:is,onItemHovered:Os,dragAndDropState:Qs,firstColAccessible:du,onKeyDown:Yu,onKeyUp:$u,highlightRegions:Xu,canvasRef:su,onDragStart:Pu,onDragEnd:Lu,eventTargetRef:hu,isResizing:Js,isDragging:ys,isDraggable:qo=!1,allowResize:Ps,disabledRows:Ws,getGroupDetails:Qo,theme:ds,prelightCells:zu,headerIcons:tu,verticalBorder:Ou,drawHeader:Hs,drawCustomCell:pu,onCellFocused:ku,onDragOverCell:Nu,onDrop:Fu,onDragLeave:Ku,imageWindowLoader:sl,smoothScrollX:lu=!1,smoothScrollY:Tu=!1,experimental:Vs,getCellRenderer:Ds}=Pe,Ks=(un=Pe.translateX)!=null?un:0,nu=(xn=Pe.translateY)!=null?xn:0,Ju=Math.max(ko,Math.min(Wr.length-1,ti)),nl=s.useRef(null),ec=s.useMemo(()=>new vt,[]),Mc=sl??ec,hc=s.useRef(),[Ol,Nl]=s.useState(!1),wl=s.useRef([]),Fl=s.useRef(),[rc,Ic]=s.useState(),[kl,Gc]=s.useState(),$l=s.useRef(null),[Ml,zc]=s.useState(!1),tf=s.useRef(Ml);tf.current=Ml;const _c=s.useMemo(()=>new Ya(tu,()=>{ic.current=void 0,lc.current()}),[tu]),Cc=no?da+Gi:Gi,of=s.useRef(-1),Qc=Vs?.enableFirefoxRescaling!==!0;s.useLayoutEffect(()=>{!Ha.value||window.devicePixelRatio===1||Qc||(of.current!==-1&&Nl(!0),window.clearTimeout(of.current),of.current=window.setTimeout(()=>{Nl(!1),of.current=-1},200))},[xi,Ju,Ks,nu,Qc]);const sc=Tn(Wr,ko),ul=s.useCallback((pr,Mi,Zi)=>{const Ta=pr.getBoundingClientRect();if(Mi>=sc.length||Zi>=Pa)return;const Oo=Ta.width/Vr,No=ln(Mi,Zi,Vr,fi,da,Cc,Ju,xi,Ks,nu,Pa,ko,Ts==="sticky",sc,Sa);return Oo!==1&&(No.x*=Oo,No.y*=Oo,No.width*=Oo,No.height*=Oo),No.x+=Ta.x,No.y+=Ta.y,No},[Vr,fi,da,Cc,Ju,xi,Ks,nu,Pa,ko,Ts,sc,Sa]),fc=s.useCallback((pr,Mi,Zi,Ta)=>{var Oo,No;const xo=pr.getBoundingClientRect(),Ls=xo.width/Vr,Fs=(Mi-xo.left)/Ls,As=(Zi-xo.top)/Ls,Cu=5,Iu=qt(sc,Ju,Vr,void 0,Ks);let Tl=0;Ta instanceof MouseEvent&&(Tl=Ta.button);const Du=vn(Fs,Iu,Ks),cl=fn(As,fi,no,Gi,da,Pa,Sa,xi,nu,Ts==="sticky"),tl=Ta?.shiftKey===!0,Zl=Ta?.ctrlKey===!0,Jl=Ta?.metaKey===!0,Fe=Ta!==void 0&&!(Ta instanceof MouseEvent),He=20,Dt=[Math.abs(Fs)<He?-1:Math.abs(xo.width-Fs)<He?1:0,Math.abs(As)<He?-1:Math.abs(xo.height-As)<He?1:0];let gn;if(Du===-1||As<0||Fs<0||cl===void 0||Fs>Vr||As>fi){const Xn=Fs>Vr?-1:Fs<0?1:0,cr=As>fi?1:As<0?-1:0;let jr=!1;if(Du===-1&&cl===-1){const Hr=ul(pr,sc.length-1,-1);W(Hr!==void 0),jr=Mi<Hr.x+Hr.width+Cu}gn={kind:ie,location:[Du!==-1?Du:Fs<0?0:sc.length-1,cl??Pa-1],direction:[Xn,cr],shiftKey:tl,ctrlKey:Zl,metaKey:Jl,isEdge:jr,isTouch:Fe,button:Tl,scrollEdge:Dt}}else if(cl<=-1){let Xn=ul(pr,Du,cl);W(Xn!==void 0);let cr=Xn!==void 0&&Xn.x+Xn.width-Mi<=Cu;const jr=Du-1;Mi-Xn.x<=Cu&&jr>=0?(cr=!0,Xn=ul(pr,jr,cl),W(Xn!==void 0),gn={kind:no&&cl===-2?te:G,location:[jr,cl],bounds:Xn,group:(Oo=sc[jr].group)!=null?Oo:"",isEdge:cr,shiftKey:tl,ctrlKey:Zl,metaKey:Jl,isTouch:Fe,localEventX:Mi-Xn.x,localEventY:Zi-Xn.y,button:Tl,scrollEdge:Dt}):gn={kind:no&&cl===-2?te:G,group:(No=sc[Du].group)!=null?No:"",location:[Du,cl],bounds:Xn,isEdge:cr,shiftKey:tl,ctrlKey:Zl,metaKey:Jl,isTouch:Fe,localEventX:Mi-Xn.x,localEventY:Zi-Xn.y,button:Tl,scrollEdge:Dt}}else{const Xn=ul(pr,Du,cl);W(Xn!==void 0);const cr=Xn!==void 0&&Xn.x+Xn.width-Mi<Cu,jr=_i&&Xn!==void 0&&Xn.x+Xn.width-Mi<6&&Xn.y+Xn.height-Zi<6;gn={kind:"cell",location:[Du,cl],bounds:Xn,isEdge:cr,shiftKey:tl,ctrlKey:Zl,isFillHandle:jr,metaKey:Jl,isTouch:Fe,localEventX:Mi-Xn.x,localEventY:Zi-Xn.y,button:Tl,scrollEdge:Dt}}return gn},[sc,Ju,Vr,Ks,fi,no,Gi,da,Pa,Sa,xi,nu,Ts,ul,_i]);function lf(pr,Mi){return pr===Mi?!0:pr?.kind===Mi?.kind&&pr?.location[0]===Mi?.location[0]&&pr?.location[1]===Mi?.location[1]}const[vc]=rc??[],yl=s.useRef(pr=>{}),cf=s.useRef(rc);cf.current=rc;const[_l,qu]=s.useMemo(()=>{const pr=document.createElement("canvas"),Mi=document.createElement("canvas");return pr.style.display="none",pr.style.opacity="0",pr.style.position="fixed",Mi.style.display="none",Mi.style.opacity="0",Mi.style.position="fixed",[pr,Mi]},[]);s.useLayoutEffect(()=>(document.documentElement.append(_l),document.documentElement.append(qu),()=>{_l.remove(),qu.remove()}),[_l,qu]);const ic=s.useRef(),jl=s.useCallback(()=>{var pr,Mi;const Zi=nl.current,Ta=$l.current;if(Zi===null||Ta===null)return;const Oo=ic.current,No={canvas:Zi,bufferA:_l,bufferB:qu,headerCanvas:Ta,width:Vr,height:fi,cellXOffset:Ju,cellYOffset:xi,translateX:Math.round(Ks),translateY:Math.round(nu),mappedColumns:sc,enableGroups:no,freezeColumns:ko,dragAndDropState:Qs,theme:ds,headerHeight:Gi,groupHeaderHeight:da,disabledRows:Ws??Ce.empty(),rowHeight:Sa,verticalBorder:Ou,isResizing:Js,isFocused:bo,selection:Ea,fillHandle:_i,lastRowSticky:Ts,rows:Pa,drawFocus:Ss,getCellContent:oo,getGroupDetails:Qo??(xo=>({name:xo})),getRowThemeOverride:mo,drawCustomCell:pu,drawHeaderCallback:Hs,prelightCells:zu,highlightRegions:Xu,imageLoader:Mc,lastBlitData:Fl,damage:hc.current,hoverValues:wl.current,hoverInfo:cf.current,spriteManager:_c,scrolling:Ol,hyperWrapping:(pr=Vs?.hyperWrapping)!=null?pr:!1,touchMode:Ml,enqueue:yl.current,renderStrategy:(Mi=Vs?.renderStrategy)!=null?Mi:Eo.value?"double-buffer":"single-buffer",getCellRenderer:Ds};No.damage===void 0?(ic.current=No,bn(No,Oo)):bn(No,void 0)},[_l,qu,Vr,fi,Ju,xi,Ks,nu,sc,no,ko,Qs,ds,Gi,da,Ws,Sa,Ou,Js,bo,Ea,_i,Ts,Pa,Ss,oo,Qo,mo,pu,Hs,zu,Xu,Mc,_c,Ol,Vs?.hyperWrapping,Vs?.renderStrategy,Ml,Ds]),lc=s.useRef(jl);s.useLayoutEffect(()=>{jl(),lc.current=jl},[jl]),s.useLayoutEffect(()=>{(async()=>{var Mi;((Mi=document?.fonts)==null?void 0:Mi.ready)!==void 0&&(await document.fonts.ready,ic.current=void 0,lc.current())})()},[]);const Rl=s.useCallback(pr=>{hc.current=pr,lc.current(),hc.current=void 0},[]),al=er(Rl);yl.current=al;const ll=s.useCallback(pr=>{Rl(pr.map(Mi=>Mi.cell))},[Rl]);Mc.setCallback(Rl);const[Wl,dc]=s.useState(!1),[Bl,Pl]=vc??[],Ll=Bl!==void 0&&Pl===-1,Oc=Bl!==void 0&&Pl===-2;let kc=!1,sf=!1,Bc;if(Bl!==void 0&&Pl!==void 0&&Pl>-1){const pr=oo([Bl,Pl]);kc=pr.kind===Ye.NewRow||pr.kind===Ye.Marker&&pr.markerKind!=="number",sf=pr.kind===fe.Boolean&&Me(pr),Bc=pr.cursor}const Sf=ys?"grabbing":(kl??!1)||Js?"col-resize":Wl||ca?"crosshair":Bc!==void 0?Bc:Ll||kc||sf||Oc?"pointer":"default",bc=s.useMemo(()=>({contain:"strict",display:"block",cursor:Sf}),[Sf]),yf=s.useRef("default"),xc=hu?.current;xc!=null&&yf.current!==bc.cursor&&(xc.style.cursor=yf.current=bc.cursor);const Mf=s.useCallback((pr,Mi,Zi,Ta)=>{if(Qo===void 0)return;const Oo=Qo(pr);if(Oo.actions!==void 0){const No=Bi(Mi,Oo.actions);for(const[xo,Ls]of No.entries())if(Ui(Ls,Zi+Mi.x,Ta+Ls.y))return Oo.actions[xo]}},[Qo]),Bu=s.useCallback((pr,Mi,Zi,Ta)=>{const Oo=Wr[Mi];if(!ys&&!Js&&Oo.hasMenu===!0&&!(kl??!1)){const No=ul(pr,Mi,-1);W(No!==void 0);const xo=Ko(No.x,No.y,No.width,No.height);if(Zi>xo.x&&Zi<xo.x+xo.width&&Ta>xo.y&&Ta<xo.y+xo.height)return No}},[Wr,ul,kl,ys,Js]),vl=s.useRef(0),Qu=s.useRef(),Vl=s.useCallback(pr=>{const Mi=nl.current,Zi=hu?.current;if(Mi===null||pr.target!==Mi&&pr.target!==Zi)return;let Ta,Oo;if(pr instanceof MouseEvent?(Ta=pr.clientX,Oo=pr.clientY):(Ta=pr.touches[0].clientX,Oo=pr.touches[0].clientY),pr.target===Zi&&Zi!==null){const xo=Zi.getBoundingClientRect();if(Ta>xo.left+Zi.clientWidth||Oo>xo.top+Zi.clientHeight)return}const No=fc(Mi,Ta,Oo,pr);Qu.current=No.location,No.isTouch&&(vl.current=Date.now()),tf.current!==No.isTouch&&zc(No.isTouch),!(No.kind===G&&Bu(Mi,No.location[0],Ta,Oo)!==void 0)&&(No.kind===te&&Mf(No.group,No.bounds,No.localEventX,No.localEventY)!==void 0||(cs?.(No),!No.isTouch&&qo!==!0&&qo!==No.kind&&pr.preventDefault()))},[hu,qo,fc,Mf,Bu,cs]);Ve("touchstart",Vl,window,!1),Ve("mousedown",Vl,window,!1);const Ul=s.useCallback(pr=>{var Mi,Zi;const Ta=nl.current;if(Do===void 0||Ta===null)return;const Oo=hu?.current,No=pr.target!==Ta&&pr.target!==Oo;let xo,Ls;pr instanceof MouseEvent?(xo=pr.clientX,Ls=pr.clientY):(xo=pr.changedTouches[0].clientX,Ls=pr.changedTouches[0].clientY);let Fs=fc(Ta,xo,Ls,pr);if(Fs.isTouch&&vl.current!==0&&Date.now()-vl.current>500&&(Fs={...Fs,isLongTouch:!0}),tf.current!==Fs.isTouch&&zc(Fs.isTouch),!No&&pr.cancelable&&pr.preventDefault(),Fs.kind===G&&Bu(Ta,Fs.location[0],xo,Ls)){const[As]=Fs.location,Cu=Bu(Ta,As,xo,Ls);if(Cu!==void 0){Fs.button===0&&((Mi=Qu.current)==null?void 0:Mi[0])===As&&((Zi=Qu.current)==null?void 0:Zi[1])===-1?Ga?.(As,Cu):Do(Fs,!0);return}}else if(Fs.kind===te){const As=Mf(Fs.group,Fs.bounds,Fs.localEventX,Fs.localEventY);if(As!==void 0){Fs.button===0&&As.onClick(Fs);return}}Do(Fs,No)},[Do,hu,fc,Bu,Ga,Mf]);Ve("mouseup",Ul,window,!1),Ve("touchend",Ul,window,!1);const gs=s.useCallback(pr=>{const Mi=nl.current;if(Mi===null||Es===void 0)return;const Zi=fc(Mi,pr.clientX,pr.clientY,pr);Es(Zi,()=>{pr.cancelable&&pr.preventDefault()})},[fc,Es]);Ve("contextmenu",gs,(zn=hu?.current)!=null?zn:null,!1);const pc=s.useCallback(pr=>{hc.current=pr.map(Mi=>Mi.item),wl.current=pr,lc.current(),hc.current=void 0},[]),Hc=s.useMemo(()=>new na(pc),[pc]),bf=s.useRef(Hc);bf.current=Hc,s.useLayoutEffect(()=>{const pr=bf.current;if(vc===void 0||vc[1]<0){pr.setHovered(vc);return}const Mi=oo(vc),Zi=Ds(Mi);pr.setHovered(Zi===void 0&&Mi.kind===fe.Custom||Zi?.needsHover===!0?vc:void 0)},[oo,Ds,vc]);const Kc=s.useRef(),sd=s.useCallback(pr=>{var Mi;const Zi=nl.current;if(Zi===null)return;const Ta=fc(Zi,pr.clientX,pr.clientY,pr);if(!lf(Ta,Kc.current))Os?.(Ta),Ic(Ta.kind===ie?void 0:[Ta.location,[Ta.localEventX,Ta.localEventY]]),Kc.current=Ta;else if(Ta.kind==="cell"||Ta.kind===G||Ta.kind===te){const Oo=[Ta.location,[Ta.localEventX,Ta.localEventY]];if(Ic(Oo),cf.current=Oo,Ta.kind==="cell"){const No=oo(Ta.location);(No.kind===fe.Custom||((Mi=Ds(No))==null?void 0:Mi.needsHoverPosition)===!0)&&Rl([Ta.location])}else Ta.kind===te&&Rl([Ta.location])}if(Gc(Ta.kind===G&&Ta.isEdge&&Ps===!0),_i&&Ea.current!==void 0){const[Oo,No]=Ea.current.cell,xo=ul(Zi,Oo,No),Ls=pr.clientX,Fs=pr.clientY;W(xo!==void 0),dc(Ls>=xo.x+xo.width-6&&Ls<=xo.x+xo.width&&Fs>=xo.y+xo.height-6&&Fs<=xo.y+xo.height)}else dc(!1);fs?.(pr),is(Ta)},[fc,Ps,_i,Ea,fs,is,Os,oo,Ds,Rl,ul]);Ve("mousemove",sd,window,!0);const Ed=s.useCallback(pr=>{const Mi=nl.current;if(Mi===null)return;let Zi;Ea.current!==void 0&&(Zi=ul(Mi,Ea.current.cell[0],Ea.current.cell[1])),Yu?.({bounds:Zi,stopPropagation:()=>pr.stopPropagation(),preventDefault:()=>pr.preventDefault(),cancel:()=>{},ctrlKey:pr.ctrlKey,metaKey:pr.metaKey,shiftKey:pr.shiftKey,altKey:pr.altKey,key:pr.key,keyCode:pr.keyCode,rawEvent:pr})},[Yu,Ea,ul]),Jc=s.useCallback(pr=>{const Mi=nl.current;if(Mi===null)return;let Zi;Ea.current!==void 0&&(Zi=ul(Mi,Ea.current.cell[0],Ea.current.cell[1])),$u?.({bounds:Zi,stopPropagation:()=>pr.stopPropagation(),preventDefault:()=>pr.preventDefault(),cancel:()=>{},ctrlKey:pr.ctrlKey,metaKey:pr.metaKey,shiftKey:pr.shiftKey,altKey:pr.altKey,key:pr.key,keyCode:pr.keyCode,rawEvent:pr})},[$u,Ea,ul]),zs=s.useCallback(pr=>{nl.current=pr,su!==void 0&&(su.current=pr)},[su]),Of=s.useCallback(pr=>{const Mi=nl.current;if(Mi===null||qo===!1||Js){pr.preventDefault();return}let Zi,Ta;const Oo=fc(Mi,pr.clientX,pr.clientY);if(qo!==!0&&Oo.kind!==qo){pr.preventDefault();return}const No=(Iu,Tl)=>{Zi=Iu,Ta=Tl};let xo,Ls,Fs;const As=(Iu,Tl,Du)=>{xo=Iu,Ls=Tl,Fs=Du};let Cu=!1;if(Pu?.({...Oo,setData:No,setDragImage:As,preventDefault:()=>Cu=!0,defaultPrevented:()=>Cu}),!Cu&&Zi!==void 0&&Ta!==void 0&&pr.dataTransfer!==null)if(pr.dataTransfer.setData(Zi,Ta),pr.dataTransfer.effectAllowed="copyLink",xo!==void 0&&Ls!==void 0&&Fs!==void 0)pr.dataTransfer.setDragImage(xo,Ls,Fs);else{const[Iu,Tl]=Oo.location;if(Tl!==void 0){const Du=document.createElement("canvas"),cl=ul(Mi,Iu,Tl);W(cl!==void 0),Du.width=cl.width,Du.height=cl.height;const tl=Du.getContext("2d");tl!==null&&(tl.textBaseline="middle",Tl===-1?(tl.font=`${ds.headerFontStyle} ${ds.fontFamily}`,tl.fillStyle=ds.bgHeader,tl.fillRect(0,0,Du.width,Du.height),So(tl,0,0,cl.width,cl.height,sc[Iu],!1,ds,!1,!1,0,_c,Hs,!1)):(tl.font=`${ds.baseFontStyle} ${ds.fontFamily}`,tl.fillStyle=ds.bgCell,tl.fillRect(0,0,Du.width,Du.height),fr(tl,Tl,oo([Iu,Tl]),0,0,0,cl.width,cl.height,!1,ds,pu,Mc,_c,1,void 0,!1,0,void 0,void 0,Ds))),Du.style.left="-100%",Du.style.position="absolute",document.body.append(Du),pr.dataTransfer.setDragImage(Du,cl.width/2,cl.height/2),window.setTimeout(()=>{Du.remove()},0)}}else pr.preventDefault()},[qo,Js,fc,Pu,ul,ds,sc,_c,Hs,oo,pu,Mc,Ds]);Ve("dragstart",Of,(sr=hu?.current)!=null?sr:null,!1,!1);const nf=s.useRef(),df=s.useCallback(pr=>{var Mi;const Zi=nl.current;if(Fu!==void 0&&pr.preventDefault(),Zi===null||Nu===void 0)return;const Ta=fc(Zi,pr.clientX,pr.clientY),[Oo,No]=Ta.location,xo=Oo-(du?0:1),[Ls,Fs]=(Mi=nf.current)!=null?Mi:[];(Ls!==xo||Fs!==No)&&(nf.current=[xo,No],Nu([xo,No],pr.dataTransfer))},[du,fc,Nu,Fu]);Ve("dragover",df,(Tr=hu?.current)!=null?Tr:null,!1,!1);const Wf=s.useCallback(()=>{nf.current=void 0,Lu?.()},[Lu]);Ve("dragend",Wf,(Br=hu?.current)!=null?Br:null,!1,!1);const td=s.useCallback(pr=>{const Mi=nl.current;if(Mi===null||Fu===void 0)return;pr.preventDefault();const Zi=fc(Mi,pr.clientX,pr.clientY),[Ta,Oo]=Zi.location,No=Ta-(du?0:1);Fu([No,Oo],pr.dataTransfer)},[du,fc,Fu]);Ve("drop",td,(Er=hu?.current)!=null?Er:null,!1,!1);const _f=s.useCallback(()=>{Ku?.()},[Ku]);Ve("dragleave",_f,(Sr=hu?.current)!=null?Sr:null,!1,!1);const ff=s.useRef(Ea);ff.current=Ea;const Lf=s.useRef(null),Ec=s.useCallback(pr=>{var Mi;nl.current===null||!nl.current.contains(document.activeElement)||(pr===null&&ff.current.current!==void 0?(Mi=su?.current)==null||Mi.focus({preventScroll:!0}):pr!==null&&pr.focus({preventScroll:!0}),Lf.current=pr)},[su]);s.useImperativeHandle(Nt,()=>({focus:()=>{var pr;const Mi=Lf.current;Mi===null||!document.contains(Mi)?(pr=su?.current)==null||pr.focus({preventScroll:!0}):Mi.focus({preventScroll:!0})},getBounds:(pr,Mi)=>{if(!(su===void 0||su.current===null))return ul(su.current,pr,Mi??-1)},damage:ll}),[su,ll,ul]);const Tc=s.useRef(),md=rn(()=>{var pr,Mi,Zi,Ta;if(Vr<50)return null;let Oo=qt(sc,Ju,Vr,Qs,Ks);const No=du?0:-1;!du&&((pr=Oo[0])==null?void 0:pr.sourceIndex)===0&&(Oo=Oo.slice(1));const[xo,Ls]=(Zi=(Mi=Ea.current)==null?void 0:Mi.cell)!=null?Zi:[],Fs=(Ta=Ea.current)==null?void 0:Ta.range,As=Oo.map(Iu=>Iu.sourceIndex),Cu=h(xi,Math.min(Pa,xi+xr));return xo!==void 0&&Ls!==void 0&&!(As.includes(xo)&&Cu.includes(Ls))&&Ec(null),s.createElement("table",{key:"access-tree",role:"grid","aria-rowcount":Pa+1,"aria-multiselectable":"true","aria-colcount":sc.length+No},s.createElement("thead",{role:"rowgroup"},s.createElement("tr",{role:"row","aria-rowindex":1},Oo.map(Iu=>s.createElement("th",{role:"columnheader","aria-selected":Ea.columns.hasIndex(Iu.sourceIndex),"aria-colindex":Iu.sourceIndex+1+No,tabIndex:-1,onFocus:Tl=>{if(Tl.target!==Lf.current)return ku?.([Iu.sourceIndex,-1])},key:Iu.sourceIndex},Iu.title)))),s.createElement("tbody",{role:"rowgroup"},Cu.map(Iu=>s.createElement("tr",{role:"row","aria-selected":Ea.rows.hasIndex(Iu),key:Iu,"aria-rowindex":Iu+2},Oo.map(Tl=>{const Du=Tl.sourceIndex,cl=`${Du},${Iu}`,tl=xo===Du&&Ls===Iu,Zl=Fs!==void 0&&Du>=Fs.x&&Du<Fs.x+Fs.width&&Iu>=Fs.y&&Iu<Fs.y+Fs.height,Jl=`glide-cell-${Du}-${Iu}`,Fe=oo([Du,Iu]);return s.createElement("td",{key:cl,role:"gridcell","aria-colindex":Du+1+No,"aria-selected":Zl,"aria-readonly":ue(Fe)||!ae(Fe),id:Jl,"data-testid":Jl,onClick:()=>{const He=su?.current;if(He!=null)return Yu?.({bounds:ul(He,Du,Iu),cancel:()=>{},preventDefault:()=>{},stopPropagation:()=>{},ctrlKey:!1,key:"Enter",keyCode:13,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0})},onFocusCapture:He=>{var Dt,gn;if(!(He.target===Lf.current||((Dt=Tc.current)==null?void 0:Dt[0])===Du&&((gn=Tc.current)==null?void 0:gn[1])===Iu))return Tc.current=[Du,Iu],ku?.([Du,Iu])},ref:tl?Ec:void 0,tabIndex:-1},Ar(Fe,Ds))})))))},[Vr,sc,Ju,Qs,Ks,Pa,xi,xr,Ea,Ec,oo,su,Yu,ul,ku],200),Vc=rs?it(sc,Qs):0,$c=ko===0||!rs?0:Ju>ko?1:u(-Ks/100,0,1),gc=-xi*32+nu,qc=ls?u(-gc/100,0,1):0,If=s.useMemo(()=>{if(!$c&&!qc)return null;const pr={position:"absolute",top:0,left:Vc,width:Vr-Vc,height:fi,opacity:$c,pointerEvents:"none",transition:lu?void 0:"opacity 0.2s",boxShadow:"inset 13px 0 10px -13px rgba(0, 0, 0, 0.2)"},Mi={position:"absolute",top:Cc,left:0,width:Vr,height:fi,opacity:qc,pointerEvents:"none",transition:Tu?void 0:"opacity 0.2s",boxShadow:"inset 0 13px 10px -13px rgba(0, 0, 0, 0.2)"};return s.createElement(s.Fragment,null,$c>0&&s.createElement("div",{id:"shadow-x",style:pr}),qc>0&&s.createElement("div",{id:"shadow-y",style:Mi}))},[$c,qc,Vc,Vr,lu,Cc,fi,Tu]),Dr=s.useMemo(()=>({position:"absolute",top:0,left:0}),[]);return s.createElement(s.Fragment,null,s.createElement("canvas",{"data-testid":"data-grid-canvas",tabIndex:0,onKeyDown:Ed,onKeyUp:Jc,onFocus:co,onBlur:Yo,ref:zs,style:bc},md),s.createElement("canvas",{ref:$l,style:Dr}),If)},ur=s.memo(s.forwardRef(Kr));function Gr(Pe,Nt,un,xn){var zn;return u(Math.round(Nt-((zn=Pe.growOffset)!=null?zn:0)),Math.ceil(un),Math.floor(xn))}var Pi=Pe=>{var Nt;const[un,xn]=s.useState(),[zn,sr]=s.useState(),[Tr,Br]=s.useState(),[Er,Sr]=s.useState(),[Vr,fi]=s.useState(!1),[xr,Wr]=s.useState(),[ti,xi]=s.useState(),[Gi,_i]=s.useState(),[da,Sa]=s.useState(!1),[Pa,oo]=s.useState(),{onHeaderMenuClick:mo,getCellContent:Ga,onColumnMoved:no,onColumnResize:ca,onColumnResizeStart:co,onColumnResizeEnd:Yo,gridRef:bo,maxColumnWidth:Ea,minColumnWidth:ko,onRowMoved:Es,lockColumns:Ts,onMouseDown:rs,onMouseUp:ls,onItemHovered:Ss,onDragStart:cs}=Pe,Do=((Nt=ca??Yo)!=null?Nt:co)!==void 0,{columns:fs,selection:is}=Pe,Os=is.columns,Qs=s.useCallback(qo=>{const[Ps,Ws]=qo.location;Tr!==void 0&&Er!==Ps&&Ps>=Ts?(fi(!0),Sr(Ps)):ti!==void 0&&Ws!==void 0?(Sa(!0),_i(Math.max(0,Ws))):Ss?.(qo)},[Tr,ti,Er,Ss,Ts]),du=no!==void 0,Yu=s.useCallback(qo=>{var Ps,Ws;if(qo.button===0){const[Qo,ds]=qo.location;if(qo.kind==="out-of-bounds"&&qo.isEdge&&Do){const zu=(Ps=bo?.current)==null?void 0:Ps.getBounds(fs.length-1,-1);zu!==void 0&&(xn(zu.x),sr(fs.length-1))}else qo.kind==="header"&&Qo>=Ts?qo.isEdge&&Do?(xn(qo.bounds.x),sr(Qo),co?.(fs[Qo],qo.bounds.width,Qo,qo.bounds.width+((Ws=fs[Qo].growOffset)!=null?Ws:0))):qo.kind==="header"&&du&&(Wr(qo.bounds.x),Br(Qo)):qo.kind==="cell"&&Ts>0&&Qo===0&&ds!==void 0&&Es!==void 0&&(oo(qo.bounds.y),xi(ds))}rs?.(qo)},[rs,Do,Ts,Es,bo,fs,du,co]),$u=s.useCallback((qo,Ps)=>{Vr||da||mo?.(qo,Ps)},[Vr,da,mo]),Xu=s.useRef(-1),su=s.useCallback(()=>{Xu.current=-1,xi(void 0),_i(void 0),oo(void 0),Sa(!1),Br(void 0),Sr(void 0),Wr(void 0),fi(!1),sr(void 0),xn(void 0)},[]),Pu=s.useCallback((qo,Ps)=>{var Ws,Qo,ds;if(qo.button===0){if(zn!==void 0){if(Os?.hasIndex(zn)===!0)for(const tu of Os){if(tu===zn)continue;const Ou=fs[tu],Hs=Gr(Ou,Xu.current,ko,Ea);ca?.(Ou,Hs,tu,Hs+((Ws=Ou.growOffset)!=null?Ws:0))}const zu=Gr(fs[zn],Xu.current,ko,Ea);Yo?.(fs[zn],zu,zn,zu+((Qo=fs[zn].growOffset)!=null?Qo:0));for(const tu of Os){if(tu===zn)continue;const Ou=fs[tu],Hs=Gr(Ou,Xu.current,ko,Ea);Yo?.(Ou,Hs,tu,Hs+((ds=Ou.growOffset)!=null?ds:0))}}su(),Tr!==void 0&&Er!==void 0&&no?.(Tr,Er),ti!==void 0&&Gi!==void 0&&Es?.(ti,Gi)}ls?.(qo,Ps)},[ls,zn,Tr,Er,ti,Gi,Os,Yo,fs,ko,Ea,ca,no,Es,su]),Lu=s.useMemo(()=>{if(!(Tr===void 0||Er===void 0)&&Tr!==Er)return{src:Tr,dest:Er}},[Tr,Er]),hu=s.useCallback(qo=>{var Ps,Ws;if(Tr!==void 0&&xr!==void 0)Math.abs(qo.clientX-xr)>20&&fi(!0);else if(ti!==void 0&&Pa!==void 0)Math.abs(qo.clientY-Pa)>20&&Sa(!0);else if(zn!==void 0&&un!==void 0){const Qo=fs[zn],ds=qo.clientX-un,zu=Gr(Qo,ds,ko,Ea);if(ca?.(Qo,zu,zn,zu+((Ps=Qo.growOffset)!=null?Ps:0)),Xu.current=ds,Os?.first()===zn)for(const tu of Os){if(tu===zn)continue;const Ou=fs[tu],Hs=Gr(Ou,Xu.current,ko,Ea);ca?.(Ou,Hs,tu,Hs+((Ws=Ou.growOffset)!=null?Ws:0))}}},[Tr,xr,ti,Pa,zn,un,fs,ko,Ea,ca,Os]),Js=s.useCallback(qo=>{if(ti===void 0||Gi===void 0)return Ga(qo);let[Ps,Ws]=qo;return Ws===Gi?Ws=ti:(Ws>Gi&&(Ws-=1),Ws>=ti&&(Ws+=1)),Ga([Ps,Ws])},[ti,Gi,Ga]),ys=s.useCallback(qo=>{cs?.(qo),qo.defaultPrevented()||su()},[su,cs]);return s.createElement(ur,{accessibilityHeight:Pe.accessibilityHeight,canvasRef:Pe.canvasRef,cellXOffset:Pe.cellXOffset,cellYOffset:Pe.cellYOffset,columns:Pe.columns,disabledRows:Pe.disabledRows,drawCustomCell:Pe.drawCustomCell,drawFocusRing:Pe.drawFocusRing,drawHeader:Pe.drawHeader,enableGroups:Pe.enableGroups,eventTargetRef:Pe.eventTargetRef,experimental:Pe.experimental,fillHandle:Pe.fillHandle,firstColAccessible:Pe.firstColAccessible,fixedShadowX:Pe.fixedShadowX,fixedShadowY:Pe.fixedShadowY,freezeColumns:Pe.freezeColumns,getCellRenderer:Pe.getCellRenderer,getGroupDetails:Pe.getGroupDetails,getRowThemeOverride:Pe.getRowThemeOverride,groupHeaderHeight:Pe.groupHeaderHeight,headerHeight:Pe.headerHeight,headerIcons:Pe.headerIcons,height:Pe.height,highlightRegions:Pe.highlightRegions,imageWindowLoader:Pe.imageWindowLoader,isDraggable:Pe.isDraggable,isFilling:Pe.isFilling,isFocused:Pe.isFocused,onCanvasBlur:Pe.onCanvasBlur,onCanvasFocused:Pe.onCanvasFocused,onCellFocused:Pe.onCellFocused,onContextMenu:Pe.onContextMenu,onDragEnd:Pe.onDragEnd,onDragLeave:Pe.onDragLeave,onDragOverCell:Pe.onDragOverCell,onDrop:Pe.onDrop,onKeyDown:Pe.onKeyDown,onKeyUp:Pe.onKeyUp,onMouseMove:Pe.onMouseMove,prelightCells:Pe.prelightCells,rowHeight:Pe.rowHeight,rows:Pe.rows,selection:Pe.selection,smoothScrollX:Pe.smoothScrollX,smoothScrollY:Pe.smoothScrollY,theme:Pe.theme,trailingRowType:Pe.trailingRowType,translateX:Pe.translateX,translateY:Pe.translateY,verticalBorder:Pe.verticalBorder,width:Pe.width,getCellContent:Js,isResizing:zn!==void 0,onHeaderMenuClick:$u,isDragging:Vr,onItemHovered:Qs,onDragStart:ys,onMouseDown:Yu,allowResize:Do,onMouseUp:Pu,dragAndDropState:Lu,onMouseMoveRaw:hu,ref:bo})},aa=Pi;function Fa(Pe){const Nt=(0,s.useRef)(null),[un,xn]=(0,s.useState)({width:Pe?.[0],height:Pe?.[1]});return(0,s.useLayoutEffect)(()=>{const zn=Tr=>{for(const Br of Tr){const{width:Er,height:Sr}=Br&&Br.contentRect||{};xn(Vr=>Vr.width===Er&&Vr.height===Sr?Vr:{width:Er,height:Sr})}},sr=new window.ResizeObserver(zn);return Nt.current&&sr.observe(Nt.current,void 0),()=>{sr.disconnect()}},[Nt.current]),{ref:Nt,...un}}var tn=()=>Pe=>Pe.isSafari?"scroll":"auto",cn=(0,i.d)("div")({name:"ScrollRegionStyle",class:"s1jz82f8",vars:{"s1jz82f8-0":[tn()]}});function nr(Pe){Pe.stopPropagation()}function ir(Pe){const[Nt,un]=s.useState(!1),xn=s.useRef(0);return Ve("touchstart",s.useCallback(()=>{window.clearTimeout(xn.current),un(!0)},[]),window,!0,!1),Ve("touchend",s.useCallback(zn=>{zn.touches.length===0&&(xn.current=window.setTimeout(()=>un(!1),Pe))},[Pe]),window,!0,!1),Nt}var Lr=Pe=>{var Nt,un,xn,zn;const{children:sr,clientHeight:Tr,scrollHeight:Br,scrollWidth:Er,update:Sr,draggable:Vr,className:fi,preventDiagonalScrolling:xr=!1,paddingBottom:Wr=0,paddingRight:ti=0,rightElement:xi,rightElementProps:Gi,scrollRef:_i,scrollToEnd:da,initialSize:Sa,minimap:Pa}=Pe,oo=[],mo=(Nt=Gi?.sticky)!=null?Nt:!1,Ga=(un=Gi?.fill)!=null?un:!1,no=s.useRef(0),ca=s.useRef(0),co=s.useRef(null),Yo=window.devicePixelRatio;s.useEffect(()=>{const $u=co.current;$u===null||da!==!0||($u.scrollLeft=$u.scrollWidth-$u.clientWidth)},[da]);const bo=s.useRef({scrollLeft:0,scrollTop:0,lockDirection:void 0}),Ea=s.useRef(null),ko=ir(200),[Es,Ts]=s.useState(!0),rs=s.useRef(0);s.useEffect(()=>{if(!Es||ko||bo.current.lockDirection===void 0)return;const $u=co.current;if($u===null)return;const[Xu,su]=bo.current.lockDirection;Xu!==void 0?$u.scrollLeft=Xu:su!==void 0&&($u.scrollTop=su),bo.current.lockDirection=void 0},[ko,Es]);const ls=s.useCallback(()=>{var $u,Xu,su,Pu;const Lu=co.current;if(Lu===null)return;let hu=Lu.scrollTop,Js=Lu.scrollLeft;const ys=bo.current.scrollTop,qo=bo.current.scrollLeft,Ps=Js-qo,Ws=hu-ys;ko&&Ps!==0&&Ws!==0&&(Math.abs(Ps)>3||Math.abs(Ws)>3)&&xr&&bo.current.lockDirection===void 0&&(bo.current.lockDirection=Math.abs(Ps)<Math.abs(Ws)?[qo,void 0]:[void 0,ys]);const Qo=bo.current.lockDirection;Js=($u=Qo?.[0])!=null?$u:Js,hu=(Xu=Qo?.[1])!=null?Xu:hu,bo.current.scrollLeft=Js,bo.current.scrollTop=hu;const ds=hu,zu=ca.current-ds,tu=Lu.scrollHeight-Lu.clientHeight;if(ca.current=ds,tu>0&&(Math.abs(zu)>2e3||ds===0||ds===tu)&&Br>Lu.scrollHeight+5){const Ou=ds/tu,Hs=(Br-Lu.clientHeight)*Ou;no.current=Hs-ds}Qo!==void 0&&(window.clearTimeout(rs.current),Ts(!1),rs.current=window.setTimeout(()=>Ts(!0),200)),Sr({x:Js,y:ds+no.current,width:Lu.clientWidth-ti,height:Lu.clientHeight-Wr,paddingRight:(Pu=(su=Ea.current)==null?void 0:su.clientWidth)!=null?Pu:0})},[Wr,ti,Br,Sr,xr,ko]),Ss=s.useRef(ls);Ss.current=ls;const cs=s.useRef(),Do=s.useRef(!1);s.useEffect(()=>{Do.current?ls():Do.current=!0},[ls,Wr,ti]);const fs=s.useCallback($u=>{co.current=$u,_i!==void 0&&(_i.current=$u)},[_i]);let is=0,Os=0;for(oo.push(s.createElement("div",{key:is++,style:{width:Er,height:0}}));Os<Br;){const $u=Math.min(5e6,Br-Os);oo.push(s.createElement("div",{key:is++,style:{width:0,height:$u}})),Os+=$u}const{ref:Qs,width:du,height:Yu}=Fa(Sa);return(((xn=cs.current)==null?void 0:xn.height)!==Yu||((zn=cs.current)==null?void 0:zn.width)!==du)&&(window.setTimeout(()=>Ss.current(),0),cs.current={width:du,height:Yu}),(du??0)===0||(Yu??0)===0?s.createElement("div",{ref:Qs}):s.createElement("div",{ref:Qs},s.createElement(cn,{isSafari:Eo.value},Pa,s.createElement("div",{className:"dvn-underlay"},sr),s.createElement("div",{ref:fs,style:cs.current,draggable:Vr,onDragStart:$u=>{Vr||($u.stopPropagation(),$u.preventDefault())},className:"dvn-scroller "+(fi??""),onScroll:ls},s.createElement("div",{className:"dvn-scroll-inner"+(xi===void 0?" hidden":"")},s.createElement("div",{className:"dvn-stack"},oo),xi!==void 0&&s.createElement(s.Fragment,null,!Ga&&s.createElement("div",{className:"dvn-spacer"}),s.createElement("div",{ref:Ea,onMouseDown:nr,onMouseUp:nr,onMouseMove:nr,style:{height:Yu,maxHeight:Tr-Math.ceil(Yo%1),position:"sticky",top:0,paddingLeft:1,marginBottom:-40,marginRight:ti,flexGrow:Ga?1:void 0,right:mo?ti??0:void 0,pointerEvents:"auto"}},xi))))))},ua=(0,i.d)("div")({name:"MinimapStyle",class:"m15w2ly5"}),_a=Pe=>{var Nt,un,xn;const{columns:zn,rows:sr,rowHeight:Tr,headerHeight:Br,groupHeaderHeight:Er,enableGroups:Sr,freezeColumns:Vr,experimental:fi,clientSize:xr,className:Wr,onVisibleRegionChanged:ti,scrollToEnd:xi,scrollRef:Gi,preventDiagonalScrolling:_i,rightElement:da,rightElementProps:Sa,overscrollX:Pa,overscrollY:oo,showMinimap:mo=!1,initialSize:Ga,smoothScrollX:no=!1,smoothScrollY:ca=!1,isDraggable:co}=Pe,{paddingRight:Yo,paddingBottom:bo}=fi??{},[Ea,ko]=xr,Es=s.useRef(),Ts=s.useRef(),rs=s.useRef(),ls=s.useRef(),Ss=s.useMemo(()=>{let qo=Math.max(0,Pa??0);for(const Ps of zn)qo+=Ps.width;return qo},[zn,Pa]);let cs=Sr?Br+Er:Br;if(typeof Tr=="number")cs+=sr*Tr;else for(let qo=0;qo<sr;qo++)cs+=Tr(qo);oo!==void 0&&(cs+=oo);const Do=s.useRef(),fs=s.useCallback(()=>{var qo,Ps,Ws;if(Do.current===void 0)return;const Qo={...Do.current};let ds=0,zu=Qo.x<0?-Qo.x:0,tu=0,Ou=0;Qo.x=Qo.x<0?0:Qo.x;let Hs=0;for(let sl=0;sl<Vr;sl++)Hs+=zn[sl].width;for(const sl of zn){const lu=ds-Hs;if(Qo.x>=lu+sl.width)ds+=sl.width,Ou++,tu++;else if(Qo.x>lu)ds+=sl.width,no?zu+=lu-Qo.x:Ou++,tu++;else if(Qo.x+Qo.width>lu)ds+=sl.width,tu++;else break}let pu=0,ku=0,Nu=0;if(typeof Tr=="number")ca?(ku=Math.floor(Qo.y/Tr),pu=ku*Tr-Qo.y):ku=Math.ceil(Qo.y/Tr),Nu=Math.ceil(Qo.height/Tr)+ku,pu<0&&Nu++;else{let sl=0;for(let lu=0;lu<sr;lu++){const Tu=Tr(lu),Vs=sl+(ca?0:Tu/2);if(Qo.y>=sl+Tu)sl+=Tu,ku++,Nu++;else if(Qo.y>Vs)sl+=Tu,ca?pu+=Vs-Qo.y:ku++,Nu++;else if(Qo.y+Qo.height>Tu/2+sl)sl+=Tu,Nu++;else break}}const Fu={x:Ou,y:ku,width:tu-Ou,height:Nu-ku},Ku=Es.current;(Ku===void 0||Ku.y!==Fu.y||Ku.x!==Fu.x||Ku.height!==Fu.height||Ku.width!==Fu.width||Ts.current!==zu||rs.current!==pu||Qo.width!==((qo=ls.current)==null?void 0:qo[0])||Qo.height!==((Ps=ls.current)==null?void 0:Ps[1]))&&(ti?.({x:Ou,y:ku,width:tu-Ou,height:Nu-ku},Qo.width,Qo.height,(Ws=Qo.paddingRight)!=null?Ws:0,zu,pu),Es.current=Fu,Ts.current=zu,rs.current=pu,ls.current=[Qo.width,Qo.height])},[zn,Tr,sr,ti,Vr,no,ca]),is=s.useCallback(qo=>{Do.current=qo,fs()},[fs]);s.useEffect(()=>{fs()},[fs]);const Os=(Nt=Gi?.current)!=null?Nt:void 0,Qs=u(Ss/cs,2/3,1.5),du=200,Yu=Qs>1?du:Math.ceil(du*Qs),$u=Qs>1?Math.ceil(du/Qs):du,Xu=Yu/Ss,su=$u/cs,Pu=Math.min(Ea*Math.max(Xu,.01),Yu),Lu=Math.min(ko*Math.max(su,.01),$u),hu=((un=Os?.scrollLeft)!=null?un:0)/(Ss-Ea)*(Yu-Pu),Js=((xn=Os?.scrollTop)!=null?xn:0)/(cs-ko)*($u-Lu),ys=s.useMemo(()=>{if(!mo||Pu===0||Lu===0)return;const qo=Ps=>{if(Os===void 0)return;const Ws=Ps.currentTarget.getBoundingClientRect(),Qo=Ps.clientX-Ws.x-Pu/2,ds=Ps.clientY-Ws.y-Lu/2,zu=(Ss-Os.clientWidth)*(Qo/(Yu-Pu)),tu=(cs-Os.clientHeight)*(ds/($u-Lu));Os.scrollTo({left:zu,top:tu,behavior:Ps.type==="mousemove"?"auto":"smooth"})};return s.createElement(ua,{style:{width:Yu,height:$u},"data-testid":"minimap-container",onMouseMove:Ps=>{Ps.buttons===1&&qo(Ps)},onClick:qo},s.createElement("div",{className:"header"}),s.createElement("div",{className:"locationMarker",onDragStart:Ps=>Ps.preventDefault(),style:{left:hu,top:Js,width:Pu,height:Lu,borderRadius:Math.min(Pu,Lu*.2,9)}}))},[$u,cs,hu,Os,mo,Js,Lu,Pu,Yu,Ss]);return s.createElement(Lr,{scrollRef:Gi,minimap:ys,className:Wr,preventDiagonalScrolling:_i,draggable:co===!0||typeof co=="string",scrollWidth:Ss+(Yo??0),scrollHeight:cs+(bo??0),clientHeight:ko,rightElement:da,paddingBottom:bo,paddingRight:Yo,rightElementProps:Sa,update:is,initialSize:Ga,scrollToEnd:xi},s.createElement(aa,{eventTargetRef:Gi,width:Ea,height:ko,accessibilityHeight:Pe.accessibilityHeight,canvasRef:Pe.canvasRef,cellXOffset:Pe.cellXOffset,cellYOffset:Pe.cellYOffset,columns:Pe.columns,disabledRows:Pe.disabledRows,enableGroups:Pe.enableGroups,fillHandle:Pe.fillHandle,firstColAccessible:Pe.firstColAccessible,fixedShadowX:Pe.fixedShadowX,fixedShadowY:Pe.fixedShadowY,freezeColumns:Pe.freezeColumns,getCellContent:Pe.getCellContent,getCellRenderer:Pe.getCellRenderer,getGroupDetails:Pe.getGroupDetails,getRowThemeOverride:Pe.getRowThemeOverride,groupHeaderHeight:Pe.groupHeaderHeight,headerHeight:Pe.headerHeight,highlightRegions:Pe.highlightRegions,imageWindowLoader:Pe.imageWindowLoader,isFilling:Pe.isFilling,isFocused:Pe.isFocused,lockColumns:Pe.lockColumns,maxColumnWidth:Pe.maxColumnWidth,minColumnWidth:Pe.minColumnWidth,onHeaderMenuClick:Pe.onHeaderMenuClick,onMouseMove:Pe.onMouseMove,prelightCells:Pe.prelightCells,rowHeight:Pe.rowHeight,rows:Pe.rows,selection:Pe.selection,theme:Pe.theme,trailingRowType:Pe.trailingRowType,translateX:Pe.translateX,translateY:Pe.translateY,verticalBorder:Pe.verticalBorder,drawCustomCell:Pe.drawCustomCell,drawFocusRing:Pe.drawFocusRing,drawHeader:Pe.drawHeader,experimental:Pe.experimental,gridRef:Pe.gridRef,headerIcons:Pe.headerIcons,isDraggable:Pe.isDraggable,onCanvasBlur:Pe.onCanvasBlur,onCanvasFocused:Pe.onCanvasFocused,onCellFocused:Pe.onCellFocused,onColumnMoved:Pe.onColumnMoved,onColumnResize:Pe.onColumnResize,onColumnResizeEnd:Pe.onColumnResizeEnd,onColumnResizeStart:Pe.onColumnResizeStart,onContextMenu:Pe.onContextMenu,onDragEnd:Pe.onDragEnd,onDragLeave:Pe.onDragLeave,onDragOverCell:Pe.onDragOverCell,onDragStart:Pe.onDragStart,onDrop:Pe.onDrop,onItemHovered:Pe.onItemHovered,onKeyDown:Pe.onKeyDown,onKeyUp:Pe.onKeyUp,onMouseDown:Pe.onMouseDown,onMouseUp:Pe.onMouseUp,onRowMoved:Pe.onRowMoved,smoothScrollX:Pe.smoothScrollX,smoothScrollY:Pe.smoothScrollY}))},Ka=_a,yo=()=>Pe=>Pe.showSearch?0:400,Ba=(0,i.d)("div")({name:"SearchWrapper",class:"sxep88s",vars:{"sxep88s-0":[yo(),"px"]}}),Ma=s.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},s.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 244l144-144 144 144M256 120v292"})),Mo=s.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},s.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})),Nr=s.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},s.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368L144 144M368 144L144 368"})),gi=10,ea=Pe=>{const{canvasRef:Nt,cellYOffset:un,rows:xn,columns:zn,searchInputRef:sr,getCellsForSelection:Tr,onSearchResultsChanged:Br,showSearch:Er=!1,onSearchClose:Sr}=Pe,[Vr]=s.useState(()=>"search-box-"+Math.round(Math.random()*1e3)),[fi,xr]=s.useState(""),[Wr,ti]=s.useState(),xi=s.useRef(Wr);xi.current=Wr;const Gi=s.useRef(new AbortController),_i=s.useRef(),[da,Sa]=s.useState([]),Pa=s.useCallback(()=>{_i.current!==void 0&&(window.cancelAnimationFrame(_i.current),_i.current=void 0,Gi.current.abort())},[]),oo=s.useRef(un);oo.current=un;const mo=s.useCallback(Ea=>{const ko=new RegExp(Ea.replace(/([$()*+.?[\\\]^{|}-])/g,"\\$1"),"i");let Es=oo.current,Ts=Math.min(10,xn),rs=0;ti(void 0),Sa([]);const ls=[],Ss=async()=>{var cs,Do;if(Tr===void 0)return;const fs=performance.now(),is=xn-rs;let Os=Tr({x:0,y:Es,width:zn.length,height:Math.min(Ts,is,xn-Es)},Gi.current.signal);typeof Os=="function"&&(Os=await Os());let Qs=!1;for(const[Pu,Lu]of Os.entries())for(const[hu,Js]of Lu.entries()){let ys;switch(Js.kind){case fe.Text:case fe.Number:ys=Js.displayData;break;case fe.Uri:case fe.Markdown:ys=Js.data;break;case fe.Boolean:ys=typeof Js.data=="boolean"?Js.data.toString():void 0;break;case fe.Image:case fe.Bubble:ys=Js.data.join("\u{1F433}");break;case fe.Custom:ys=Js.copyData;break}ys!==void 0&&ko.test(ys)&&(ls.push([hu,Pu+Es]),Qs=!0)}const du=performance.now();Qs&&Sa([...ls]),rs+=Os.length,W(rs<=xn);const Yu=(Do=(cs=xi.current)==null?void 0:cs.selectedIndex)!=null?Do:-1;ti({results:ls.length,rowsSearched:rs,selectedIndex:Yu}),Br?.(ls,Yu),Es+Ts>=xn?Es=0:Es+=Ts;const $u=du-fs,Xu=Math.max($u,1),su=gi/Xu;Ts=Math.ceil(Ts*su),rs<xn&&ls.length<1e3&&(_i.current=window.requestAnimationFrame(Ss))};Pa(),_i.current=window.requestAnimationFrame(Ss)},[Pa,zn.length,Tr,Br,xn]),Ga=s.useCallback(()=>{var Ea;Sr?.(),ti(void 0),Sa([]),Br?.([],-1),Pa(),(Ea=Nt?.current)==null||Ea.focus()},[Pa,Nt,Sr,Br]),no=s.useCallback(Ea=>{xr(Ea.target.value),Ea.target.value===""?(ti(void 0),Sa([]),Pa()):mo(Ea.target.value)},[mo,Pa]);s.useEffect(()=>{Er&&sr.current!==null&&(xr(""),sr.current.focus({preventScroll:!0}))},[Er,sr]);const ca=s.useCallback(Ea=>{var ko;if((ko=Ea?.stopPropagation)==null||ko.call(Ea),Wr===void 0)return;const Es=(Wr.selectedIndex+1)%Wr.results;ti({...Wr,selectedIndex:Es}),Br?.(da,Es)},[Wr,Br,da]),co=s.useCallback(Ea=>{var ko;if((ko=Ea?.stopPropagation)==null||ko.call(Ea),Wr===void 0)return;let Es=(Wr.selectedIndex-1)%Wr.results;Es<0&&(Es+=Wr.results),ti({...Wr,selectedIndex:Es}),Br?.(da,Es)},[Br,da,Wr]),Yo=s.useCallback(Ea=>{(Ea.ctrlKey||Ea.metaKey)&&Ea.nativeEvent.code==="KeyF"||Ea.key==="Escape"?(Ga(),Ea.stopPropagation(),Ea.preventDefault()):Ea.key==="Enter"&&(Ea.shiftKey?co():ca())},[Ga,ca,co]);s.useEffect(()=>()=>{Pa()},[Pa]);const bo=s.useMemo(()=>{var Ea,ko,Es;let Ts;Wr!==void 0&&(Ts=Wr.results>=1e3?"over 1000":`${Wr.results} result${Wr.results!==1?"s":""}`,Wr.selectedIndex>=0&&(Ts=`${Wr.selectedIndex+1} of ${Ts}`));const rs=cs=>{cs.stopPropagation()},Ss={width:`${Math.floor(((Ea=Wr?.rowsSearched)!=null?Ea:0)/xn*100)}%`};return s.createElement(Ba,{showSearch:Er,onMouseDown:rs,onMouseMove:rs,onMouseUp:rs,onClick:rs},s.createElement("div",{className:"search-bar-inner"},s.createElement("input",{id:Vr,"aria-hidden":!Er,"data-testid":"search-input",ref:sr,onChange:no,value:fi,tabIndex:Er?void 0:-1,onKeyDownCapture:Yo}),s.createElement("button",{"aria-label":"Previous Result","aria-hidden":!Er,tabIndex:Er?void 0:-1,onClick:co,disabled:((ko=Wr?.results)!=null?ko:0)===0},Ma),s.createElement("button",{"aria-label":"Next Result","aria-hidden":!Er,tabIndex:Er?void 0:-1,onClick:ca,disabled:((Es=Wr?.results)!=null?Es:0)===0},Mo),Sr!==void 0&&s.createElement("button",{"aria-label":"Close Search","aria-hidden":!Er,"data-testid":"search-close-button",tabIndex:Er?void 0:-1,onClick:Ga},Nr)),Wr!==void 0?s.createElement(s.Fragment,null,s.createElement("div",{className:"search-status"},s.createElement("div",{"data-testid":"search-result-area"},Ts)),s.createElement("div",{className:"search-progress",style:Ss})):s.createElement("div",{className:"search-status"},s.createElement("label",{htmlFor:Vr},"Type to search")))},[Ga,ca,co,no,Sr,Yo,xn,Wr,fi,Er,Vr,sr]);return s.createElement(s.Fragment,null,s.createElement(Ka,{prelightCells:da,accessibilityHeight:Pe.accessibilityHeight,canvasRef:Pe.canvasRef,cellXOffset:Pe.cellXOffset,cellYOffset:Pe.cellYOffset,className:Pe.className,clientSize:Pe.clientSize,columns:Pe.columns,disabledRows:Pe.disabledRows,enableGroups:Pe.enableGroups,fillHandle:Pe.fillHandle,firstColAccessible:Pe.firstColAccessible,fixedShadowX:Pe.fixedShadowX,fixedShadowY:Pe.fixedShadowY,freezeColumns:Pe.freezeColumns,getCellContent:Pe.getCellContent,getCellRenderer:Pe.getCellRenderer,getGroupDetails:Pe.getGroupDetails,getRowThemeOverride:Pe.getRowThemeOverride,groupHeaderHeight:Pe.groupHeaderHeight,headerHeight:Pe.headerHeight,highlightRegions:Pe.highlightRegions,imageWindowLoader:Pe.imageWindowLoader,initialSize:Pe.initialSize,isFilling:Pe.isFilling,isFocused:Pe.isFocused,lockColumns:Pe.lockColumns,maxColumnWidth:Pe.maxColumnWidth,minColumnWidth:Pe.minColumnWidth,onHeaderMenuClick:Pe.onHeaderMenuClick,onMouseMove:Pe.onMouseMove,onVisibleRegionChanged:Pe.onVisibleRegionChanged,overscrollX:Pe.overscrollX,overscrollY:Pe.overscrollY,preventDiagonalScrolling:Pe.preventDiagonalScrolling,rightElement:Pe.rightElement,rightElementProps:Pe.rightElementProps,rowHeight:Pe.rowHeight,rows:Pe.rows,scrollRef:Pe.scrollRef,selection:Pe.selection,showMinimap:Pe.showMinimap,theme:Pe.theme,trailingRowType:Pe.trailingRowType,translateX:Pe.translateX,translateY:Pe.translateY,verticalBorder:Pe.verticalBorder,drawCustomCell:Pe.drawCustomCell,drawFocusRing:Pe.drawFocusRing,drawHeader:Pe.drawHeader,experimental:Pe.experimental,gridRef:Pe.gridRef,headerIcons:Pe.headerIcons,isDraggable:Pe.isDraggable,onCanvasBlur:Pe.onCanvasBlur,onCanvasFocused:Pe.onCanvasFocused,onCellFocused:Pe.onCellFocused,onColumnMoved:Pe.onColumnMoved,onColumnResize:Pe.onColumnResize,onColumnResizeEnd:Pe.onColumnResizeEnd,onColumnResizeStart:Pe.onColumnResizeStart,onContextMenu:Pe.onContextMenu,onDragEnd:Pe.onDragEnd,onDragLeave:Pe.onDragLeave,onDragOverCell:Pe.onDragOverCell,onDragStart:Pe.onDragStart,onDrop:Pe.onDrop,onItemHovered:Pe.onItemHovered,onKeyDown:Pe.onKeyDown,onKeyUp:Pe.onKeyUp,onMouseDown:Pe.onMouseDown,onMouseUp:Pe.onMouseUp,onRowMoved:Pe.onRowMoved,smoothScrollX:Pe.smoothScrollX,smoothScrollY:Pe.smoothScrollY,scrollToEnd:Pe.scrollToEnd}),bo)},dr=ea,ci=()=>Pe=>Math.max(16,Pe.targetHeight-10),yi=(0,i.d)("input")({name:"RenameInput",class:"r1kzy40b",vars:{"r1kzy40b-0":[ci(),"px"]}}),xa=Pe=>{const{bounds:Nt,group:un,onClose:xn,canvasBounds:zn,onFinish:sr}=Pe,[Tr,Br]=s.useState(un);return s.createElement(J,{style:{position:"absolute",left:Nt.x-zn.left+1,top:Nt.y-zn.top,width:Nt.width-2,height:Nt.height},className:"c1sqdbw3",onClickOutside:xn},s.createElement(yi,{targetHeight:Nt.height,"data-testid":"group-rename-input",value:Tr,onBlur:xn,onFocus:Er=>Er.target.setSelectionRange(0,Tr.length),onChange:Er=>Br(Er.target.value),onKeyDown:Er=>{Er.key==="Enter"?sr(Tr):Er.key==="Escape"&&xn()},autoFocus:!0}))},Cr=150;function ka(Pe,Nt,un,xn){var zn,sr;if(Nt.kind===fe.Custom)return Cr;const Tr=xn(Nt);return(sr=(zn=Tr?.measure)==null?void 0:zn.call(Tr,Pe,Nt,un))!=null?sr:Cr}function Io(Pe,Nt,un,xn,zn,sr,Tr,Br,Er){let Sr=[];if(zn!==void 0&&Sr.push(...zn.map(xr=>xr[xn]).map(xr=>ka(Pe,xr,Nt,Er))),Sr.length>5&&Br){const xr=Sr.reduce((Wr,ti)=>Wr+ti)/Sr.length;Sr=Sr.filter(Wr=>Wr<xr*2)}Sr.push(Pe.measureText(un.title).width+16+(un.icon===void 0?0:28));const Vr=Math.max(...Sr),fi=Math.max(Math.ceil(sr),Math.min(Math.floor(Tr),Math.ceil(Vr)));return{...un,width:fi}}function Co(Pe,Nt,un,xn,zn,sr,Tr,Br,Er){const Sr=s.useRef(Nt),Vr=s.useRef(un),fi=s.useRef(Tr);Sr.current=Nt,Vr.current=un,fi.current=Tr;const[xr]=s.useState(()=>{if(typeof window===void 0)return null;const _i=document.createElement("canvas");return _i.style.display="none",_i.style.opacity="0",_i.style.position="fixed",document.documentElement.append(_i),_i.getContext("2d",{alpha:!1})}),Wr=s.useRef({}),ti=s.useRef(),[xi,Gi]=s.useState();return s.useLayoutEffect(()=>{const _i=Vr.current;if(_i===void 0||Pe.every(Ge))return;let da=Math.max(1,10-Math.floor(Pe.length/1e4)),Sa=0;da<Sr.current&&da>1&&(da--,Sa=1);const Pa={x:0,y:0,width:Pe.length,height:Math.min(Sr.current,da)},oo={x:0,y:Sr.current-1,width:Pe.length,height:1};(async()=>{const Ga=_i(Pa,Er.signal),no=Sa>0?_i(oo,Er.signal):void 0;let ca;typeof Ga=="object"?ca=Ga:ca=await ht(Ga),no!==void 0&&(typeof no=="object"?ca=[...ca,...no]:ca=[...ca,...await ht(no)]),ti.current=Pe,Gi(ca)})()},[Er.signal,Pe]),s.useMemo(()=>{var _i;let Sa=(()=>Pe.every(Ge)?Pe:xr===null?Pe.map(Ga=>Ge(Ga)?Ga:{...Ga,width:Cr}):(xr.font=`${fi.current.baseFontStyle} ${fi.current.fontFamily}`,Pe.map((Ga,no)=>{if(Ge(Ga))return Ga;if(Wr.current[Ga.id]!==void 0)return{...Ga,width:Wr.current[Ga.id]};if(xi===void 0||ti.current!==Pe||Ga.id===void 0)return{...Ga,width:Cr};const ca=Io(xr,Tr,Ga,no,xi,zn,sr,!0,Br);return Wr.current[Ga.id]=ca.width,ca})))(),Pa=0,oo=0;const mo=[];for(const[Ga,no]of Sa.entries())Pa+=no.width,no.grow!==void 0&&no.grow>0&&(oo+=no.grow,mo.push(Ga));if(Pa<xn&&mo.length>0){const Ga=[...Sa],no=xn-Pa;let ca=no;for(let co=0;co<mo.length;co++){const Yo=mo[co],bo=((_i=Sa[Yo].grow)!=null?_i:0)/oo,Ea=co===mo.length-1?ca:Math.min(ca,Math.floor(no*bo));Ga[Yo]={...Sa[Yo],growOffset:Ea,width:Sa[Yo].width+Ea},ca-=Ea}Sa=Ga}return Sa},[xn,Pe,xr,xi,Tr,zn,sr,Br])}function _s(Pe,Nt){if(Pe===void 0)return!1;if(Pe.length>1&&Pe.startsWith("_")){if(Number.parseInt(Pe.slice(1))!==Nt.keyCode)return!1}else if(Pe!==Nt.key)return!1;return!0}function Is(Pe,Nt){if(Pe.length===0)return!1;let un=!1,xn=!1,zn=!1,sr=!1;const Tr=Pe.split("+"),Br=Tr.pop();if(!_s(Br,Nt))return!1;for(const Er of Tr)switch(Er){case"ctrl":un=!0;break;case"shift":xn=!0;break;case"alt":zn=!0;break;case"meta":sr=!0;break;case"primary":Uo.value?sr=!0:un=!0;break}return Nt.altKey===zn&&Nt.ctrlKey===un&&Nt.shiftKey===xn&&Nt.metaKey===sr}function xs(Pe,Nt,un,xn,zn,sr){const Tr=s.useCallback((Sr,Vr,fi,xr)=>{var Wr,ti;(sr==="cell"||sr==="multi-cell")&&Sr!==void 0&&(Sr={...Sr,range:{x:Sr.cell[0],y:Sr.cell[1],width:1,height:1}});const xi=un==="mixed"&&(fi||xr==="drag"),Gi=xn==="mixed"&&xi,_i=zn==="mixed"&ξlet da={current:Sr===void 0?void 0:{...Sr,rangeStack:xr==="drag"?(ti=(Wr=Pe.current)==null?void 0:Wr.rangeStack)!=null?ti:[]:[]},columns:Gi?Pe.columns:Ce.empty(),rows:_i?Pe.rows:Ce.empty()};fi&&(sr==="multi-rect"||sr==="multi-cell")&&da.current!==void 0&&Pe.current!==void 0&&(da={...da,current:{...da.current,rangeStack:[...Pe.current.rangeStack,Pe.current.range]}}),Nt(da,Vr)},[xn,Pe,un,sr,zn,Nt]),Br=s.useCallback((Sr,Vr,fi)=>{Sr=Sr??Pe.rows,Vr!==void 0&&(Sr=Sr.add(Vr));let xr;if(zn==="exclusive"&&Sr.length>0)xr={current:void 0,columns:Ce.empty(),rows:Sr};else{const Wr=fi&&un==="mixed",ti=fi&&xn==="mixed";xr={current:Wr?Pe.current:void 0,columns:ti?Pe.columns:Ce.empty(),rows:Sr}}Nt(xr,!1)},[xn,Pe,un,zn,Nt]),Er=s.useCallback((Sr,Vr,fi)=>{Sr=Sr??Pe.columns,Vr!==void 0&&(Sr=Sr.add(Vr));let xr;if(xn==="exclusive"&&Sr.length>0)xr={current:void 0,rows:Ce.empty(),columns:Sr};else{const Wr=fi&&un==="mixed",ti=fi&&zn==="mixed";xr={current:Wr?Pe.current:void 0,rows:ti?Pe.rows:Ce.empty(),columns:Sr}}Nt(xr,!1)},[xn,Pe,un,zn,Nt]);return[Tr,Br,Er]}function Zs(Pe,Nt,un,xn){const zn=s.useCallback(Er=>{var Sr;if(Pe===!0){const Vr=[];for(let fi=Er.y;fi<Er.y+Er.height;fi++){const xr=[];for(let Wr=Er.x;Wr<Er.x+Er.width;Wr++)Wr<0?xr.push({kind:fe.Loading,allowOverlay:!1}):xr.push(Nt([Wr,fi]));Vr.push(xr)}return Vr}return(Sr=Pe?.(Er,xn.signal))!=null?Sr:[]},[xn.signal,Nt,Pe]),sr=Pe!==void 0?zn:void 0,Tr=s.useCallback(Er=>{if(sr===void 0)return[];const Sr={...Er,x:Er.x-un};if(Sr.x<0){Sr.x=0,Sr.width--;const Vr=sr(Sr,xn.signal);return typeof Vr=="function"?async()=>(await Vr()).map(fi=>[{kind:fe.Loading,allowOverlay:!1},...fi]):Vr.map(fi=>[{kind:fe.Loading,allowOverlay:!1},...fi])}return sr(Sr,xn.signal)},[xn.signal,sr,un]);return[Pe!==void 0?Tr:void 0,sr]}function Ns(Pe,Nt,un,xn,zn){var sr,Tr;const Br=Pe;if(xn==="allowPartial"||Pe.current===void 0)return Pe;if(Nt!==void 0){let Er=!1;do{if(Pe?.current===void 0)break;const Sr=(sr=Pe.current)==null?void 0:sr.range,Vr=[];if(Sr.width>2){const Wr=Nt({x:Sr.x,y:Sr.y,width:1,height:Sr.height},zn.signal);if(typeof Wr=="function")return Br;Vr.push(...Wr);const ti=Nt({x:Sr.x+Sr.width-1,y:Sr.y,width:1,height:Sr.height},zn.signal);if(typeof ti=="function")return Br;Vr.push(...ti)}else{const Wr=Nt({x:Sr.x,y:Sr.y,width:Sr.width,height:Sr.height},zn.signal);if(typeof Wr=="function")return Br;Vr.push(...Wr)}let fi=Sr.x-un,xr=Sr.x+Sr.width-1-un;for(const Wr of Vr)for(const ti of Wr)ti.span!==void 0&&(fi=Math.min(ti.span[0],fi),xr=Math.max(ti.span[1],xr));fi===Sr.x-un&&xr===Sr.x+Sr.width-1-un?Er=!0:Pe={current:{cell:(Tr=Pe.current.cell)!=null?Tr:[0,0],range:{x:fi+un,y:Sr.y,width:xr-fi+1,height:Sr.height},rangeStack:Pe.current.rangeStack},columns:Pe.columns,rows:Pe.rows}}while(!Er)}return Pe}function Us(Pe){return Pe.startsWith('"')&&Pe.endsWith('"')&&(Pe=Pe.slice(1,-1).replace(/""/g,'"')),Pe}function fu(Pe){var Nt;(function(Br){Br[Br.None=0]="None",Br[Br.inString=1]="inString",Br[Br.inStringPostQuote=2]="inStringPostQuote"})(Nt||(Nt={}));const un=[];let xn=[],zn=0,sr=0;Pe=Pe.replace(/\r\n/g,` `);let Tr=0;for(const Br of Pe){switch(sr){case 0:Br===" "||Br===` `?(xn.push(Pe.slice(zn,Tr)),zn=Tr+1,Br===` `&&(un.push(xn),xn=[])):Br==='"'&&(sr=1);break;case 1:Br==='"'&&(sr=2);break;case 2:Br==='"'?sr=1:((Br===" "||Br===` `)&&(xn.push(Us(Pe.slice(zn,Tr))),zn=Tr+1,Br===` `&&(un.push(xn),xn=[])),sr=0);break}Tr++}return zn<Pe.length&&xn.push(Us(Pe.slice(zn,Pe.length))),un.push(xn),un}function bu(Pe){var Nt,un;const xn=[Pe],zn=[];let sr;for(;xn.length>0;){const Tr=xn.pop();if(Tr===void 0)break;Tr instanceof HTMLTableElement||Tr.nodeName==="TBODY"?xn.push(...[...Tr.children].reverse()):Tr instanceof HTMLTableRowElement?(sr!==void 0&&zn.push(sr),sr=[],xn.push(...[...Tr.children].reverse())):Tr instanceof HTMLTableCellElement&&sr?.push((un=(Nt=Tr.innerText)!=null?Nt:Tr.textContent)!=null?un:"")}return sr!==void 0&&zn.push(sr),zn}function Ys(Pe){return/[\t\n"]/.test(Pe)&&(Pe=`"${Pe.replace(/"/g,'""')}"`),Pe}var Hu=Pe=>{switch(Pe){case!0:return"TRUE";case!1:return"FALSE";case ce:return"INDETERMINATE";case pe:return"";default:j(Pe)}};function Zu(Pe,Nt,un){var xn,zn,sr,Tr;const Br=(Sr,Vr,fi)=>{var xr,Wr;const ti=Nt[Vr];if(Sr.span!==void 0&&Sr.span[0]!==ti)return"";switch(Sr.kind){case fe.Text:case fe.Number:return Ys(fi?(Wr=(xr=Sr.data)==null?void 0:xr.toString())!=null?Wr:"":Sr.displayData);case fe.Markdown:case fe.RowID:case fe.Uri:return Ys(Sr.data);case fe.Image:case fe.Bubble:return Sr.data.reduce((xi,Gi)=>`${Ys(xi)},${Ys(Gi)}`);case fe.Boolean:return Hu(Sr.data);case fe.Loading:return fi?"":"#LOADING";case fe.Protected:return fi?"":"************";case fe.Drilldown:return Sr.data.map(xi=>xi.text).reduce((xi,Gi)=>`${Ys(xi)},${Ys(Gi)}`);case fe.Custom:return Ys(Sr.copyData);default:j(Sr)}},Er=Pe.map(Sr=>Sr.map((Vr,fi)=>Br(Vr,fi,!1)).join(" ")).join(` `);if(((xn=window.navigator.clipboard)==null?void 0:xn.write)!==void 0||un!==void 0){const Sr=document.createElement("tbody");for(const Vr of Pe){const fi=document.createElement("tr");for(const[xr,Wr]of Vr.entries()){const ti=document.createElement("td");if(Wr.kind===fe.Uri){const xi=document.createElement("a");xi.href=Wr.data,xi.innerText=Wr.data,ti.append(xi)}else ti.innerText=Br(Wr,xr,!0);fi.append(ti)}Sr.append(fi)}if(((zn=window.navigator.clipboard)==null?void 0:zn.write)!==void 0)window.navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([Er],{type:"text/plain"}),"text/html":new Blob([`<table>${Sr.outerHTML}</table>`],{type:"text/html"})})]);else if(un!==void 0&&un?.clipboardData!==null)try{un.clipboardData.setData("text/plain",Er),un.clipboardData.setData("text/html",`<table>${Sr.outerHTML}</table>`)}catch{(sr=window.navigator.clipboard)==null||sr.writeText(Er)}}else(Tr=window.navigator.clipboard)==null||Tr.writeText(Er);un?.preventDefault()}function ql(Pe){return typeof Pe=="string"?Pe:`${Pe}px`}var Sn=()=>Pe=>Pe.innerWidth,Wn=()=>Pe=>Pe.innerHeight,vr=(0,i.d)("div")({name:"Wrapper",class:"wzg2m5k",vars:{"wzg2m5k-0":[Sn()],"wzg2m5k-1":[Wn()]}}),kr=Pe=>{const{inWidth:Nt,inHeight:un,children:xn,...zn}=Pe;return s.createElement(vr,{innerHeight:ql(un),innerWidth:ql(Nt),...zn},xn)};function ui(Pe){return Pe!==!0}var ta={getAccessibilityString:Pe=>{var Nt,un;return(un=(Nt=Pe.data)==null?void 0:Nt.toString())!=null?un:"false"},kind:fe.Boolean,needsHover:!0,useLabel:!1,needsHoverPosition:!0,measure:()=>50,draw:Pe=>_r(Pe,Pe.cell.data,Me(Pe.cell)),onDelete:Pe=>({...Pe,data:!1}),onClick:Pe=>{const{cell:Nt,posX:un,posY:xn,bounds:zn}=Pe;if(Me(Nt)&&Math.abs(un-zn.width/2)<=zn.height/3.4&&Math.abs(xn-zn.height/2)<=zn.height/3.4)return{...Nt,data:ui(Nt.data)}},onPaste:(Pe,Nt)=>{let un=pe;return Pe.toLowerCase()==="true"?un=!0:Pe.toLowerCase()==="false"?un=!1:Pe.toLowerCase()==="indeterminate"&&(un=ce),un===Nt.data?void 0:{...Nt,data:un}}},St=2,pt=1300;function kt(Pe,Nt){const un=s.useRef(0),[xn,zn]=Pe??[0,0];s.useEffect(()=>{if(xn===0&&zn===0){un.current=0;return}let sr=0;const Tr=Er=>{var Sr;if(sr===0)sr=Er;else{const Vr=Er-sr;un.current=Math.min(1,un.current+Vr/pt);const fi=un.current**1.618*Vr*St;(Sr=Nt.current)==null||Sr.scrollBy(xn*fi,zn*fi),sr=Er}Br=window.requestAnimationFrame(Tr)};let Br=window.requestAnimationFrame(Tr);return()=>window.cancelAnimationFrame(Br)},[Nt,xn,zn])}var _t=(0,i.d)("div")({name:"BubblesOverlayEditorStyle",class:"b1bqsp5z"}),Mn=Pe=>{const{bubbles:Nt}=Pe;return s.createElement(_t,null,Nt.map((un,xn)=>s.createElement("div",{key:xn,className:"boe-bubble"},un)),s.createElement("textarea",{className:"gdg-input",autoFocus:!0}))},Pr=Mn,Hi={getAccessibilityString:Pe=>{var Nt,un;return(un=(Nt=Pe.data)==null?void 0:Nt.toString())!=null?un:""},kind:fe.Bubble,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(Pe,Nt,un)=>Nt.data.reduce((xn,zn)=>Pe.measureText(zn).width+xn+20,0)+2*un.cellHorizontalPadding-4,draw:Pe=>Ti(Pe,Pe.cell.data),provideEditor:()=>Pe=>{const{value:Nt}=Pe;return s.createElement(Pr,{bubbles:Nt.data})},onPaste:()=>{}},jt=(0,i.d)("div")({name:"DrilldownOverlayEditorStyle",class:"df2kt4a"}),$n=Pe=>{const{drilldowns:Nt}=Pe;return s.createElement(jt,null,Nt.map((un,xn)=>s.createElement("div",{key:xn,className:"doe-bubble"},un.img!==void 0&&s.createElement("img",{src:un.img}),s.createElement("div",null,un.text))))},pn=$n,ee={getAccessibilityString:Pe=>Pe.data.map(Nt=>Nt.text).join(", "),kind:fe.Drilldown,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(Pe,Nt,un)=>Nt.data.reduce((xn,zn)=>Pe.measureText(zn.text).width+xn+20+(zn.img!==void 0?18:0),0)+2*un.cellHorizontalPadding-4,draw:Pe=>Zn(Pe,Pe.cell.data),provideEditor:()=>Pe=>{const{value:Nt}=Pe;return s.createElement(pn,{drilldowns:Nt.data})},onPaste:()=>{}},oe=(0,i.d)("div")({name:"ImageOverlayEditorStyle",class:"i1eozt10"}),De=Pe=>{const{urls:Nt,canWrite:un,onEditClick:xn,renderImage:zn}=Pe,sr=Nt.filter(Br=>Br!=="");if(sr.length===0)return null;const Tr=sr.length>1;return s.createElement(oe,{"data-testid":"GDG-default-image-overlay-editor"},s.createElement(I.lr,{showArrows:Tr,showThumbs:!1,swipeable:Tr,emulateTouch:Tr,infiniteLoop:Tr},sr.map(Br=>{var Er;const Sr=(Er=zn?.(Br))!=null?Er:s.createElement("img",{draggable:!1,src:Br});return s.createElement("div",{className:"centering-container",key:Br},Sr)})),un&&xn&&s.createElement("button",{className:"edit-icon",onClick:xn},s.createElement(rt,null)))},Be={getAccessibilityString:Pe=>Pe.data.join(", "),kind:fe.Image,needsHover:!1,useLabel:!1,needsHoverPosition:!1,draw:Pe=>{var Nt;return Ur(Pe,(Nt=Pe.cell.displayData)!=null?Nt:Pe.cell.data,Pe.cell.rounding)},measure:(Pe,Nt)=>Nt.data.length*50,onDelete:Pe=>({...Pe,data:[]}),provideEditor:()=>Pe=>{const{value:Nt,onFinishedEditing:un,imageEditorOverride:xn}=Pe,zn=xn??De;return s.createElement(zn,{urls:Nt.data,canWrite:Nt.allowAdd,onCancel:un,onChange:sr=>{un({...Nt,data:[sr]})}})},onPaste:(Pe,Nt)=>{Pe=Pe.trim();const xn=Pe.split(",").map(zn=>{try{return new URL(zn),zn}catch{return}}).filter(zn=>zn!==void 0);if(!(xn.length===Nt.data.length&&xn.every((zn,sr)=>zn===Nt.data[sr])))return{...Nt,data:xn}}},gt={getAccessibilityString:()=>"",kind:fe.Loading,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:()=>120,draw:()=>{},onPaste:()=>{}},Ht=(0,i.d)("div")({name:"MarkdownContainer",class:"mlbeo71"}),nn=class extends s.PureComponent{constructor(){super(...arguments),this.targetElement=null,this.containerRefHook=Pe=>{this.targetElement=Pe,this.renderMarkdownIntoDiv()}}renderMarkdownIntoDiv(){const{targetElement:Pe,props:Nt}=this;if(Pe===null)return;const{contents:un,createNode:xn}=Nt,zn=(0,N.TU)(un),sr=document.createRange();sr.selectNodeContents(Pe),sr.deleteContents();let Tr=xn?.(zn);if(Tr===void 0){const Er=document.createElement("template");Er.innerHTML=zn,Tr=Er.content}Pe.append(Tr);const Br=Pe.getElementsByTagName("a");for(const Er of Br)Er.target="_blank",Er.rel="noreferrer noopener"}render(){return this.renderMarkdownIntoDiv(),s.createElement(Ht,{ref:this.containerRefHook})}},Rn=(0,i.d)("textarea")({name:"InputBox",class:"ijuk0po"}),Yn=(0,i.d)("div")({name:"ShadowBox",class:"saq3p5l"}),gr=(0,i.d)("div")({name:"GrowingEntryStyle",class:"gf8vzix"}),Ai=Pe=>{const{placeholder:Nt,value:un,onKeyDown:xn,highlight:zn,altNewline:sr,validatedSelection:Tr,...Br}=Pe,{onChange:Er,className:Sr}=Br,Vr=s.useRef(null),fi=un??"";W(Er!==void 0,"GrowingEntry must be a controlled input area"),s.useEffect(()=>{const Wr=Vr.current;if(Wr===null||Wr.disabled)return;const ti=fi.toString().length;Wr.focus(),Wr.setSelectionRange(zn?0:ti,ti)},[]),s.useLayoutEffect(()=>{var Wr;if(Tr!==void 0){const ti=typeof Tr=="number"?[Tr,null]:Tr;(Wr=Vr.current)==null||Wr.setSelectionRange(ti[0],ti[1])}},[Tr]);const xr=s.useCallback(Wr=>{Wr.key==="Enter"&&Wr.shiftKey&&sr===!0||xn?.(Wr)},[sr,xn]);return s.createElement(gr,{className:"gdg-growing-entry"},s.createElement(Yn,{className:Sr},fi+` `),s.createElement(Rn,{...Br,className:(Sr??"")+" gdg-input",ref:Vr,onKeyDown:xr,value:fi,placeholder:Nt,dir:"auto"}))},$i=()=>Pe=>Pe.targetWidth,ma=(0,i.d)("div")({name:"MarkdownOverlayEditorStyle",class:"mdwzdl1",vars:{"mdwzdl1-0":[$i(),"px"]}}),La=Pe=>{const{value:Nt,onChange:un,forceEditMode:xn,createNode:zn,targetRect:sr,onFinish:Tr,validatedSelection:Br}=Pe,Er=Nt.data,Sr=Nt.readonly===!0,[Vr,fi]=s.useState(Er===""||xn),xr=s.useCallback(()=>{fi(ti=>!ti)},[]),Wr=Er?"ml-6":"";return Vr?s.createElement(ma,{targetWidth:sr.width-20},s.createElement(Ai,{autoFocus:!0,highlight:!1,validatedSelection:Br,value:Er,onKeyDown:ti=>{ti.key==="Enter"&&ti.stopPropagation()},onChange:un}),s.createElement("div",{className:`edit-icon checkmark-hover ${Wr}`,onClick:()=>Tr(Nt)},s.createElement(Rt,null))):s.createElement(ma,{targetWidth:sr.width},s.createElement(nn,{contents:Er,createNode:zn}),!Sr&&s.createElement(s.Fragment,null,s.createElement("div",{className:"spacer"}),s.createElement("div",{className:`edit-icon edit-hover ${Wr}`,onClick:xr},s.createElement(rt,null))),s.createElement("textarea",{className:"md-edit-textarea gdg-input",autoFocus:!0}))},Qa={getAccessibilityString:Pe=>{var Nt,un;return(un=(Nt=Pe.data)==null?void 0:Nt.toString())!=null?un:""},kind:fe.Markdown,needsHover:!1,needsHoverPosition:!1,drawPrep:Yr,measure:(Pe,Nt,un)=>{const xn=Nt.data.split(` `)[0];return Pe.measureText(xn).width+2*un.cellHorizontalPadding},draw:Pe=>ha(Pe,Pe.cell.data,Pe.cell.contentAlign),onDelete:Pe=>({...Pe,data:""}),provideEditor:()=>Pe=>{const{onChange:Nt,value:un,target:xn,onFinishedEditing:zn,markdownDivCreateNode:sr,forceEditMode:Tr,validatedSelection:Br}=Pe;return s.createElement(La,{onFinish:zn,targetRect:xn,value:un,validatedSelection:Br,onChange:Er=>Nt({...un,data:Er.target.value}),forceEditMode:Tr,createNode:sr})},onPaste:(Pe,Nt)=>Pe===Nt.data?void 0:{...Nt,data:Pe}},go={getAccessibilityString:Pe=>Pe.row.toString(),kind:Ye.Marker,needsHover:!0,needsHoverPosition:!1,drawPrep:la,measure:()=>44,draw:Pe=>wa(Pe,Pe.cell.row,Pe.cell.checked,Pe.cell.markerKind,Pe.cell.drawHandle),onClick:Pe=>{const{bounds:Nt,cell:un,posX:xn,posY:zn}=Pe,{width:sr,height:Tr}=Nt,Br=un.drawHandle?7+(sr-7)/2:sr/2,Er=Tr/2;if(Math.abs(xn-Br)<=10&&Math.abs(zn-Er)<=10)return{...un,checked:!un.checked}},onPaste:()=>{}},Ao={getAccessibilityString:()=>"",kind:Ye.NewRow,needsHover:!0,needsHoverPosition:!1,measure:()=>200,draw:Pe=>Ca(Pe,Pe.cell.hint,Pe.cell.icon),onPaste:()=>{}},Fo=s.lazy(async()=>await t.e(4403).then(t.bind(t,34403))),Ho={getAccessibilityString:Pe=>{var Nt,un;return(un=(Nt=Pe.data)==null?void 0:Nt.toString())!=null?un:""},kind:fe.Number,needsHover:!1,needsHoverPosition:!1,useLabel:!0,drawPrep:Yr,draw:Pe=>ha(Pe,Pe.cell.displayData,Pe.cell.contentAlign),measure:(Pe,Nt)=>Pe.measureText(Nt.displayData).width+16,onDelete:Pe=>({...Pe,data:void 0}),provideEditor:()=>Pe=>{const{isHighlighted:Nt,onChange:un,value:xn,validatedSelection:zn}=Pe;return s.createElement(s.Suspense,{fallback:null},s.createElement(Fo,{highlight:Nt,disabled:xn.readonly===!0,value:xn.data,validatedSelection:zn,onChange:sr=>{var Tr;return un({...xn,data:Number.isNaN((Tr=sr.floatValue)!=null?Tr:0)?0:sr.floatValue})}}))},onPaste:(Pe,Nt)=>{const un=Number.parseFloat(Pe);if(!(Number.isNaN(un)||Nt.data===un))return{...Nt,data:un}}},eu={getAccessibilityString:()=>"",measure:()=>108,kind:fe.Protected,needsHover:!1,needsHoverPosition:!1,draw:vo,onPaste:()=>{}},ks={getAccessibilityString:Pe=>{var Nt,un;return(un=(Nt=Pe.data)==null?void 0:Nt.toString())!=null?un:""},kind:fe.RowID,needsHover:!1,needsHoverPosition:!1,drawPrep:(Pe,Nt)=>Yr(Pe,Nt,Pe.theme.textLight),draw:Pe=>ha(Pe,Pe.cell.data,Pe.cell.contentAlign),measure:(Pe,Nt)=>Pe.measureText(Nt.data).width+16,provideEditor:()=>Pe=>{const{isHighlighted:Nt,onChange:un,value:xn,validatedSelection:zn}=Pe;return s.createElement(Ai,{highlight:Nt,autoFocus:xn.readonly!==!0,disabled:xn.readonly!==!1,value:xn.data,validatedSelection:zn,onChange:sr=>un({...xn,data:sr.target.value})})},onPaste:()=>{}},Gu={getAccessibilityString:Pe=>{var Nt,un;return(un=(Nt=Pe.data)==null?void 0:Nt.toString())!=null?un:""},kind:fe.Text,needsHover:!1,needsHoverPosition:!1,drawPrep:Yr,useLabel:!0,draw:Pe=>(ha(Pe,Pe.cell.displayData,Pe.cell.contentAlign,Pe.cell.allowWrapping,Pe.hyperWrapping),!0),measure:(Pe,Nt,un)=>{const xn=Nt.displayData.split(` `).slice(0,Nt.allowWrapping===!0?void 0:1);return Math.max(...xn.map(zn=>Pe.measureText(zn).width+2*un.cellHorizontalPadding))},onDelete:Pe=>({...Pe,data:""}),provideEditor:()=>Pe=>{const{isHighlighted:Nt,onChange:un,value:xn,validatedSelection:zn}=Pe;return s.createElement(Ai,{highlight:Nt,autoFocus:xn.readonly!==!0,disabled:xn.readonly===!0,altNewline:!0,value:xn.data,validatedSelection:zn,onChange:sr=>un({...xn,data:sr.target.value})})},onPaste:(Pe,Nt)=>Pe===Nt.data?void 0:{...Nt,data:Pe}},an=(0,i.d)("div")({name:"UriOverlayEditorStyle",class:"uf0sjo8"}),Nn=Pe=>{const{uri:Nt,onChange:un,forceEditMode:xn,readonly:zn,validatedSelection:sr}=Pe,[Tr,Br]=s.useState(Nt===""||xn),Er=s.useCallback(()=>{Br(!0)},[]);return Tr?s.createElement(Ai,{validatedSelection:sr,highlight:!0,autoFocus:!0,value:Nt,onChange:un}):s.createElement(an,null,s.createElement("a",{className:"link-area",href:Nt,target:"_blank",rel:"noopener noreferrer"},Nt),!zn&&s.createElement("div",{className:"edit-icon",onClick:Er},s.createElement(rt,null)),s.createElement("textarea",{className:"gdg-input",autoFocus:!0}))},tr=Nn,In={getAccessibilityString:Pe=>{var Nt,un;return(un=(Nt=Pe.data)==null?void 0:Nt.toString())!=null?un:""},kind:fe.Uri,needsHover:!1,needsHoverPosition:!1,useLabel:!0,drawPrep:Yr,draw:Pe=>ha(Pe,Pe.cell.data,Pe.cell.contentAlign),measure:(Pe,Nt)=>Pe.measureText(Nt.data).width+16,onDelete:Pe=>({...Pe,data:""}),provideEditor:()=>Pe=>{const{onChange:Nt,value:un,forceEditMode:xn,validatedSelection:zn}=Pe;return s.createElement(tr,{forceEditMode:xn,uri:un.data,validatedSelection:zn,readonly:un.readonly===!0,onChange:sr=>Nt({...un,data:sr.target.value})})},onPaste:(Pe,Nt)=>Pe===Nt.data?void 0:{...Nt,data:Pe}},di={[Ye.Marker]:go,[Ye.NewRow]:Ao,[fe.Boolean]:ta,[fe.Bubble]:Hi,[fe.Drilldown]:ee,[fe.Image]:Be,[fe.Loading]:gt,[fe.Markdown]:Qa,[fe.Number]:Ho,[fe.Protected]:eu,[fe.RowID]:ks,[fe.Text]:Gu,[fe.Uri]:In},oi=0;function ki(Pe){return v(l(l(Pe).filter(Nt=>Nt.span!==void 0).map(Nt=>{var un,xn,zn,sr;return h(((xn=(un=Nt.span)==null?void 0:un[0])!=null?xn:0)+1,((sr=(zn=Nt.span)==null?void 0:zn[1])!=null?sr:0)+1)})))}function ri(Pe,Nt){return Pe===void 0||Nt===0||Pe.columns.length===0&&Pe.current===void 0?Pe:{current:Pe.current===void 0?void 0:{cell:[Pe.current.cell[0]+Nt,Pe.current.cell[1]],range:{...Pe.current.range,x:Pe.current.range.x+Nt},rangeStack:Pe.current.rangeStack.map(un=>({...un,x:un.x+Nt}))},rows:Pe.rows,columns:Pe.columns.offset(Nt)}}var bi={selectAll:!0,selectRow:!0,selectColumn:!0,downFill:!1,rightFill:!1,pageUp:!1,pageDown:!1,clear:!0,copy:!0,paste:!0,search:!1,first:!0,last:!0},_n={kind:fe.Loading,allowOverlay:!1},Ua={columns:Ce.empty(),rows:Ce.empty(),current:void 0},va=(Pe,Nt)=>{var un,xn,zn,sr,Tr;const[Br,Er]=s.useState(Ua),[Sr,Vr]=s.useState(),fi=s.useRef(null),xr=s.useRef(null),[Wr,ti]=s.useState(),xi=s.useRef(null),Gi=s.useRef(),{rowMarkers:_i="none",rowMarkerWidth:da,imageEditorOverride:Sa,getRowThemeOverride:Pa,markdownDivCreateNode:oo,width:mo,height:Ga,columns:no,rows:ca,getCellContent:co,onCellClicked:Yo,onCellActivated:bo,onFinishedEditing:Ea,coercePasteValue:ko,drawHeader:Es,onHeaderClicked:Ts,spanRangeBehavior:rs="default",onGroupHeaderClicked:ls,onCellContextMenu:Ss,className:cs,onHeaderContextMenu:Do,getCellsForSelection:fs,onGroupHeaderContextMenu:is,onGroupHeaderRenamed:Os,onCellEdited:Qs,onCellsEdited:du,onKeyDown:Yu,onKeyUp:$u,keybindings:Xu,onRowAppended:su,onColumnMoved:Pu,validateCell:Lu,highlightRegions:hu,drawCell:Js,rangeSelect:ys="rect",columnSelect:qo="multi",rowSelect:Ps="multi",rangeSelectionBlending:Ws="exclusive",columnSelectionBlending:Qo="exclusive",rowSelectionBlending:ds="exclusive",onDelete:zu,onDragStart:tu,onMouseMove:Ou,onPaste:Hs,copyHeaders:pu=!1,freezeColumns:ku=0,rowSelectionMode:Nu="auto",rowMarkerStartIndex:Fu=1,rowMarkerTheme:Ku,onHeaderMenuClick:sl,getGroupDetails:lu,onSearchClose:Tu,onItemHovered:Vs,onSelectionCleared:Ds,showSearch:Ks,onVisibleRegionChanged:nu,gridSelection:Ju,onGridSelectionChange:nl,minColumnWidth:ec=50,maxColumnWidth:Mc=500,maxColumnAutoWidth:hc,provideEditor:Ol,trailingRowOptions:Nl,scrollOffsetX:wl,scrollOffsetY:Fl,verticalBorder:rc,onDragOverCell:Ic,onDrop:kl,onColumnResize:Gc,onColumnResizeEnd:$l,onColumnResizeStart:Ml,customRenderers:zc,fillHandle:tf,drawFocusRing:_c,experimental:Cc,fixedShadowX:of,fixedShadowY:Qc,headerIcons:sc,imageWindowLoader:ul,initialSize:fc,isDraggable:lf,onDragLeave:vc,onRowMoved:yl,overscrollX:cf,overscrollY:_l,preventDiagonalScrolling:qu,rightElement:ic,rightElementProps:jl,showMinimap:lc,smoothScrollX:Rl,smoothScrollY:al,scrollToEnd:ll,scaleToRem:Wl=!1,rowHeight:dc=34,headerHeight:Bl=36,groupHeaderHeight:Pl=Bl,theme:Ll}=Pe,Oc=Math.max(ec,20),kc=Math.max(Mc,Oc),sf=Math.max(hc??kc,Oc),Ef=s.useMemo(()=>typeof window>"u"?{fontSize:"16px"}:window.getComputedStyle(document.documentElement),[]).fontSize,Sf=s.useMemo(()=>Number.parseFloat(Ef),[Ef]),[bc,yf,xc,Mf,Bu,vl]=s.useMemo(()=>{var ra,_o,es;if(!Wl||Sf===16)return[dc,Bl,Pl,Ll,cf,_l];const as=Sf/16,Bs=dc,qs=$();return[typeof Bs=="number"?Bs*as:gu=>Math.ceil(Bs(gu)*as),Math.ceil(Bl*as),Math.ceil(Pl*as),{...Ll,headerIconSize:((ra=Ll?.headerIconSize)!=null?ra:qs.headerIconSize)*as,cellHorizontalPadding:((_o=Ll?.cellHorizontalPadding)!=null?_o:qs.cellHorizontalPadding)*as,cellVerticalPadding:((es=Ll?.cellVerticalPadding)!=null?es:qs.cellVerticalPadding)*as},Math.ceil((cf??0)*as),Math.ceil((_l??0)*as)]},[Pl,Bl,cf,_l,Sf,dc,Wl,Ll]),Qu=s.useMemo(()=>Xu===void 0?bi:{...bi,...Xu},[Xu]),Vl=da??(ca>1e4?48:ca>1e3?44:ca>100?36:32),Ul=_i!=="none",gs=Ul?1:0,pc=su!==void 0,Hc=Nl?.sticky===!0,[bf,Kc]=s.useState(!1),sd=Ks??bf,Ed=s.useCallback(()=>{Tu!==void 0?Tu():Kc(!1)},[Tu]),Jc=s.useMemo(()=>Ju===void 0?void 0:ri(Ju,gs),[Ju,gs]),zs=Jc??Br,Of=s.useRef(new AbortController);s.useEffect(()=>()=>{Of?.current.abort()},[]);const[nf,df]=Zs(fs,co,gs,Of.current),Wf=s.useCallback((ra,_o,es)=>{if(Lu===void 0)return!0;const as=[ra[0]-gs,ra[1]];return Lu?.(as,_o,es)},[gs,Lu]),td=s.useRef(Ju),_f=s.useCallback((ra,_o)=>{_o&&(ra=Ns(ra,nf,gs,rs,Of.current)),nl!==void 0?(td.current=ri(ra,-gs),nl(td.current)):Er(ra)},[nl,nf,gs,rs]),ff=lt(Gc,s.useCallback((ra,_o,es,as)=>{Gc?.(no[es-gs],_o,es-gs,as)},[Gc,gs,no])),Lf=lt($l,s.useCallback((ra,_o,es,as)=>{$l?.(no[es-gs],_o,es-gs,as)},[$l,gs,no])),Ec=lt(Ml,s.useCallback((ra,_o,es,as)=>{Ml?.(no[es-gs],_o,es-gs,as)},[Ml,gs,no])),Tc=lt(Es,s.useCallback(ra=>{var _o;return(_o=Es?.({...ra,columnIndex:ra.columnIndex-gs}))!=null?_o:!1},[Es,gs])),md=s.useCallback(ra=>{if(zu!==void 0){const _o=zu(ri(ra,-gs));return typeof _o=="boolean"?_o:ri(_o,gs)}return!0},[zu,gs]),[Vc,$c,gc]=xs(zs,_f,Ws,Qo,ds,ys),qc=s.useMemo(()=>({...$(),...Mf}),[Mf]),[If,Dr]=s.useState([10,10,0]),pr=s.useCallback(ra=>ra.kind!==fe.Custom?di[ra.kind]:zc?.find(_o=>_o.isMatch(ra)),[zc]),Mi=Co(no,ca,df,If[0]-(gs===0?0:Vl)-If[2],Oc,sf,qc,pr,Of.current),Zi=s.useMemo(()=>Mi.some(ra=>ra.group!==void 0),[Mi]),Ta=Zi?yf+xc:yf,Oo=zs.rows.length,No=_i==="none"?"":Oo===0?_e:Oo===ca?me:we,xo=s.useMemo(()=>_i==="none"?Mi:[{title:No,width:Vl,icon:void 0,hasMenu:!1,style:"normal",themeOverride:Ku},...Mi],[Mi,Vl,_i,No,Ku]),[Ls,Fs]=s.useMemo(()=>[Fl!==void 0&&typeof bc=="number"?Math.floor(Fl/bc):0,Fl!==void 0&&typeof bc=="number"?-(Fl%bc):0],[Fl,bc]),As=s.useRef({height:1,width:1,x:0,y:0}),Cu=s.useMemo(()=>{var ra,_o;return{x:As.current.x,y:Ls,width:(ra=As.current.width)!=null?ra:1,height:(_o=As.current.height)!=null?_o:1,ty:Fs}},[Fs,Ls]),Iu=s.useRef(!1),[Tl,Du,cl]=on(Cu);As.current=Tl;const tl=((un=Tl.height)!=null?un:1)>1;s.useLayoutEffect(()=>{if(Fl!==void 0&&xi.current!==null&&tl){if(xi.current.scrollTop===Fl)return;xi.current.scrollTop=Fl,xi.current.scrollTop!==Fl&&cl(),Iu.current=!0}},[Fl,tl,cl]);const Zl=((xn=Tl.width)!=null?xn:1)>1;s.useLayoutEffect(()=>{if(wl!==void 0&&xi.current!==null&&Zl){if(xi.current.scrollLeft===wl)return;xi.current.scrollLeft=wl,xi.current.scrollLeft!==wl&&cl(),Iu.current=!0}},[wl,Zl,cl]);const Jl=Tl.x+gs,Fe=Tl.y,He=s.useRef(null),Dt=s.useCallback(ra=>{var _o;ra===!0?(_o=He.current)==null||_o.focus():window.requestAnimationFrame(()=>{var es;(es=He.current)==null||es.focus()})},[]),gn=pc?ca+1:ca,Xn=s.useCallback(ra=>{const _o=gs===0?ra:ra.map(as=>({...as,location:[as.location[0]-gs,as.location[1]]})),es=du?.(_o);if(es!==!0)for(const as of _o)Qs?.(as.location,as.value);return es},[Qs,du,gs]),cr=s.useMemo(()=>{if(hu!==void 0)return gs===0?hu:hu.map(ra=>{const _o=xo.length-ra.range.x-gs;if(!(_o<=0))return{color:ra.color,range:{...ra.range,x:ra.range.x+gs,width:Math.min(_o,ra.range.width)},style:ra.style}}).filter(ra=>ra!==void 0)},[hu,xo.length,gs]),jr=s.useRef(xo);jr.current=xo;const Hr=s.useCallback(([ra,_o])=>{var es,as,Bs,qs,gu,vu,ru,Ru,rl,fl;const pl=pc&&_o===gn-1;if(ra===0&&Ul)return pl?_n:{kind:Ye.Marker,allowOverlay:!1,checked:zs?.rows.hasIndex(_o)===!0,markerKind:_i==="clickable-number"?"number":_i,row:Fu+_o,drawHandle:yl!==void 0};if(pl){const zl=ra===gs&&(es=Nl?.hint)!=null?es:"",Ze=jr.current[ra];if(((as=Ze?.trailingRowOptions)==null?void 0:as.disabled)===!0)return _n;{const ge=(qs=(Bs=Ze?.trailingRowOptions)==null?void 0:Bs.hint)!=null?qs:zl,et=(vu=(gu=Ze?.trailingRowOptions)==null?void 0:gu.addIcon)!=null?vu:Nl?.addIcon;return{kind:Ye.NewRow,hint:ge,allowOverlay:!1,icon:et}}}else{const Vu=ra-gs;if(Cc?.strict===!0){const Ze=As.current,ge=Ze.x>Vu||Vu>Ze.x+Ze.width||Ze.y>_o||_o>Ze.y+Ze.height,et=Vu===((Ru=(ru=Ze.extras)==null?void 0:ru.selected)==null?void 0:Ru[0])&&_o===((rl=Ze.extras)==null?void 0:rl.selected[1]),Ln=((fl=Ze.extras)==null?void 0:fl.freezeRegion)===void 0||Ze.extras.freezeRegion.x>Vu||Vu>Ze.extras.freezeRegion.x+Ze.extras.freezeRegion.width||Ze.extras.freezeRegion.y>_o||_o>Ze.extras.freezeRegion.y+Ze.extras.freezeRegion.height;if(ge&&!et&&Ln)return{kind:fe.Loading,allowOverlay:!1}}let zl=co([Vu,_o]);return gs!==0&&zl.span!==void 0&&(zl={...zl,span:[zl.span[0]+gs,zl.span[1]+gs]}),zl}},[pc,gn,Ul,zs?.rows,yl,_i,gs,Nl?.hint,Nl?.addIcon,Cc?.strict,co,Fu]),sa=s.useCallback(ra=>{var _o,es;let as=(_o=lu?.(ra))!=null?_o:{name:ra};return Os!==void 0&&ra!==""&&(as={icon:as.icon,name:as.name,overrideTheme:as.overrideTheme,actions:[...(es=as.actions)!=null?es:[],{title:"Rename",icon:"renameIcon",onClick:Bs=>Af({group:as.name,bounds:Bs.bounds})}]}),as},[lu,Os]),Ia=s.useCallback(ra=>{var _o;const[es,as]=ra.cell,Bs=xo[es],qs=Bs?.group!==void 0?(_o=sa(Bs.group))==null?void 0:_o.overrideTheme:void 0,gu=Bs?.themeOverride,vu=Pa?.(as);Vr({...ra,theme:{...qc,...qs,...gu,...vu,...ra.content.themeOverride}})},[Pa,xo,sa,qc]),Aa=s.useCallback((ra,_o,es)=>{var as;if(zs.current===void 0)return;const[Bs,qs]=zs.current.cell,gu=Hr([Bs,qs]);if(gu.kind!==fe.Boolean&&gu.allowOverlay){let vu=gu;if(es!==void 0)switch(vu.kind){case fe.Number:{const ru=re(()=>es==="-"?-0:Number.parseFloat(es),0);vu={...vu,data:Number.isNaN(ru)?0:ru};break}case fe.Text:case fe.Markdown:case fe.Uri:vu={...vu,data:es};break}Ia({target:ra,content:vu,initialValue:es,cell:[Bs,qs],highlight:es===void 0,forceEditMode:es!==void 0})}else gu.kind===fe.Boolean&&_o&&gu.readonly!==!0&&(Xn([{location:zs.current.cell,value:{...gu,data:ui(gu.data)}}]),(as=He.current)==null||as.damage([{cell:zs.current.cell}]))},[Hr,zs,Xn,Ia]),pa=s.useCallback((ra,_o)=>{var es;const as=(es=He.current)==null?void 0:es.getBounds(ra,_o);if(as===void 0||xi.current===null)return;const Bs=Hr([ra,_o]);Bs.allowOverlay&&Ia({target:as,content:Bs,initialValue:void 0,highlight:!0,cell:[ra,_o],forceEditMode:!0})},[Hr,Ia]),Yi=s.useCallback((ra,_o,es="both",as=0,Bs=0,qs=void 0)=>{var gu;if(xi.current!==null){const vu=He.current,ru=xr.current,Ru=typeof ra!="number"?ra.unit==="cell"?ra.amount:void 0:ra,rl=typeof _o!="number"?_o.unit==="cell"?_o.amount:void 0:_o,fl=typeof ra!="number"&&ra.unit==="px"?ra.amount:void 0,pl=typeof _o!="number"&&_o.unit==="px"?_o.amount:void 0;if(vu!==null&&ru!==null){let wu={x:0,y:0,width:0,height:0},Vu=0,zl=0;if((Ru!==void 0||rl!==void 0)&&(wu=(gu=vu.getBounds((Ru??0)+gs,rl??0))!=null?gu:wu,wu.width===0||wu.height===0))return;const Ze=ru.getBoundingClientRect();if(fl!==void 0&&(wu={...wu,x:fl-Ze.left-xi.current.scrollLeft,width:1}),pl!==void 0&&(wu={...wu,y:pl+Ze.top-xi.current.scrollTop,height:1}),wu!==void 0){const ge={x:wu.x-as,y:wu.y-Bs,width:wu.width+2*as,height:wu.height+2*Bs};let et=0;for(let mu=0;mu<ku;mu++)et+=Mi[mu].width;let Ln=0;Hc&&(Ln=typeof bc=="number"?bc:bc(ca));let zr=et+Ze.left+gs*Vl,Ji=Ze.right,Ja=Ze.top+Ta,lo=Ze.bottom-Ln;const To=wu.width+as*2;switch(qs?.hAlign){case"start":Ji=zr+To;break;case"end":zr=Ji-To;break;case"center":zr=Math.floor((zr+Ji)/2)-To/2,Ji=zr+To;break}const Xo=wu.height+Bs*2;switch(qs?.vAlign){case"start":lo=Ja+Xo;break;case"end":Ja=lo-Xo;break;case"center":Ja=Math.floor((Ja+lo)/2)-Xo/2,lo=Ja+Xo;break}zr>ge.x?Vu=ge.x-zr:Ji<ge.x+ge.width&&(Vu=ge.x+ge.width-Ji),Ja>ge.y?zl=ge.y-Ja:lo<ge.y+ge.height&&(zl=ge.y+ge.height-lo),es==="vertical"||ra<ku?Vu=0:es==="horizontal"&&(zl=0),(Vu!==0||zl!==0)&&xi.current.scrollTo(Vu+xi.current.scrollLeft,zl+xi.current.scrollTop)}}}},[gs,Vl,Ta,Hc,ku,Mi,bc,ca]),eo=s.useRef(pa),$o=s.useRef(co),Cs=s.useRef(ca);eo.current=pa,$o.current=co,Cs.current=ca;const vs=s.useCallback(async ra=>{var _o;const es=xo[ra];if(((_o=es?.trailingRowOptions)==null?void 0:_o.disabled)===!0)return;const as=su?.();let Bs,qs=!0;as!==void 0&&(Bs=await as,Bs==="top"&&(qs=!1),typeof Bs=="number"&&(qs=!1));let gu=0;const vu=()=>{if(Cs.current<=ca){gu<500&&window.setTimeout(vu,gu),gu=50+gu*2;return}const ru=typeof Bs=="number"?Bs:qs?ca:0;Yi(ra-gs,ru),Vc({cell:[ra,ru],range:{x:ra,y:ru,width:1,height:1}},!1,!1,"edit");const Ru=$o.current([ra-gs,ru]);Ru.allowOverlay&&ae(Ru)&&Ru.readonly!==!0&&window.setTimeout(()=>{eo.current(ra,ru)},0)};vu()},[xo,su,gs,ca,Yi,Vc]),Rs=s.useCallback(ra=>{var _o,es,as;const Bs=(as=(es=(_o=Mi[ra])==null?void 0:_o.trailingRowOptions)==null?void 0:es.targetColumn)!=null?as:Nl?.targetColumn;if(typeof Bs=="number")return Bs+(Ul?1:0);if(typeof Bs=="object"){const qs=no.indexOf(Bs);if(qs>=0)return qs+(Ul?1:0)}},[Mi,no,Ul,Nl?.targetColumn]),Eu=s.useRef(),_u=s.useRef(),ju=s.useCallback((ra,_o)=>{var es;const[as,Bs]=_o;return{...qc,...(es=xo[as])==null?void 0:es.themeOverride,...Pa?.(Bs),...ra.themeOverride}},[Pa,xo,qc]),Cl=s.useCallback(ra=>{var _o,es,as,Bs;const qs=Uo.value?ra.metaKey:ra.ctrlKey,gu=qs&&Ps==="multi",vu=qs&&qo==="multi",[ru,Ru]=ra.location,rl=zs.columns,fl=zs.rows,[pl,wu]=(es=(_o=zs.current)==null?void 0:_o.cell)!=null?es:[];if(ra.kind==="cell"){if(_u.current=void 0,Yl.current=[ru,Ru],ru===0&&Ul){if(pc===!0&&Ru===ca||_i==="number"||Ps==="none")return;const Vu=Hr(ra.location);if(Vu.kind!==Ye.Marker)return;if(yl!==void 0){const ge=pr(Vu);W(ge?.kind===Ye.Marker);const et=(as=ge?.onClick)==null?void 0:as.call(ge,{...ra,cell:Vu,posX:ra.localEventX,posY:ra.localEventY,bounds:ra.bounds,theme:ju(Vu,ra.location),preventDefault:()=>{}});if(et===void 0||et.checked===Vu.checked)return}Vr(void 0),Dt();const zl=fl.hasIndex(Ru),Ze=Eu.current;if(Ps==="multi"&&(ra.shiftKey||ra.isLongTouch===!0)&&Ze!==void 0&&fl.hasIndex(Ze)){const ge=[Math.min(Ze,Ru),Math.max(Ze,Ru)+1];gu||Nu==="multi"?$c(void 0,ge,!0):$c(Ce.fromSingleSelection(ge),void 0,gu)}else gu||ra.isTouch||Nu==="multi"?zl?$c(fl.remove(Ru),void 0,!0):($c(void 0,Ru,!0),Eu.current=Ru):zl&&fl.length===1?$c(Ce.empty(),void 0,qs):($c(Ce.fromSingleSelection(Ru),void 0,qs),Eu.current=Ru)}else if(ru>=gs&&pc&&Ru===ca){const Vu=Rs(ru);vs(Vu??ru)}else if(pl!==ru||wu!==Ru){const Vu=Hr(ra.location),zl=pr(Vu);if(zl?.onSelect!==void 0){let et=!1;if(zl.onSelect({...ra,cell:Vu,posX:ra.localEventX,posY:ra.localEventY,bounds:ra.bounds,preventDefault:()=>et=!0,theme:ju(Vu,ra.location)}),et)return}const Ze=Hc&&Ru===ca,ge=Hc&&zs!==void 0&&((Bs=zs.current)==null?void 0:Bs.cell[1])===ca;if((ra.shiftKey||ra.isLongTouch===!0)&&pl!==void 0&&wu!==void 0&&zs.current!==void 0&&!ge){if(Ze)return;const et=Math.min(ru,pl),Ln=Math.max(ru,pl),zr=Math.min(Ru,wu),Ji=Math.max(Ru,wu);Vc({...zs.current,range:{x:et,y:zr,width:Ln-et+1,height:Ji-zr+1}},!0,qs,"click"),Eu.current=void 0,Dt()}else Vc({cell:[ru,Ru],range:{x:ru,y:Ru,width:1,height:1}},!0,qs,"click"),Eu.current=void 0,Vr(void 0),Dt()}}else if(ra.kind==="header")if(Yl.current=[ru,Ru],Vr(void 0),Ul&&ru===0)Eu.current=void 0,_u.current=void 0,Ps==="multi"&&(fl.length!==ca?$c(Ce.fromSingleSelection([0,ca]),void 0,qs):$c(Ce.empty(),void 0,qs),Dt());else{const Vu=_u.current;if(qo==="multi"&&(ra.shiftKey||ra.isLongTouch===!0)&&Vu!==void 0&&rl.hasIndex(Vu)){const zl=[Math.min(Vu,ru),Math.max(Vu,ru)+1];vu?gc(void 0,zl,qs):gc(Ce.fromSingleSelection(zl),void 0,qs)}else vu?(rl.hasIndex(ru)?gc(rl.remove(ru),void 0,qs):gc(void 0,ru,qs),_u.current=ru):qo!=="none"&&(gc(Ce.fromSingleSelection(ru),void 0,qs),_u.current=ru);Eu.current=void 0,Dt()}else ra.kind===te?Yl.current=[ru,Ru]:ra.kind===ie&&(_f(Ua,!1),Vr(void 0),Dt(),Ds?.(),Eu.current=void 0,_u.current=void 0)},[vs,qo,Dt,pr,Rs,Hr,zs,Ul,Hc,Ds,yl,gs,_i,Ps,Nu,ca,Vc,_f,gc,$c,pc,ju]),Yl=s.useRef(),cu=s.useRef(Tl),bs=s.useRef(),wc=s.useCallback(ra=>{var _o,es;if(Xf.current=!1,cu.current=As.current,ra.button!==0){bs.current=void 0;return}const as=performance.now(),Bs=as-((es=(_o=bs.current)==null?void 0:_o.time)!=null?es:-1e3)<250;bs.current={wasDoubleClick:Bs,time:as,location:ra.location};const qs=ra.kind==="cell"&&ra.isFillHandle;!qs&&ra.kind!=="cell"&&ra.isEdge||(ti({previousSelection:zs,fillHandle:qs}),Yl.current=void 0,ra.isTouch||Cl(ra))},[zs,Cl]),[Zc,Af]=s.useState(),Yc=s.useCallback(ra=>{if(ra.kind!==te||qo!=="multi")return;const _o=Uo.value?ra.metaKey:ra.ctrlKey,[es]=ra.location,as=zs.columns;if(es<gs)return;const Bs=xo[es];let qs=es,gu=es;for(let vu=es-1;vu>=gs&&An(Bs.group,xo[vu].group);vu--)qs--;for(let vu=es+1;vu<xo.length&&An(Bs.group,xo[vu].group);vu++)gu++;if(Dt(),_o)if(as.hasAll([qs,gu+1])){let vu=as;for(let ru=qs;ru<=gu;ru++)vu=vu.remove(ru);gc(vu,void 0,_o)}else gc(void 0,[qs,gu+1],_o);else gc(Ce.fromSingleSelection([qs,gu+1]),void 0,_o)},[qo,Dt,zs.columns,xo,gs,gc]),Yf=s.useCallback(ra=>{var _o;if(zs.current===void 0)return;const es=[],as=zs.current.range;for(let Bs=0;Bs<as.width;Bs++){const qs=Bs+as.x,gu=Hr([qs,ra?as.y+as.height-1:as.y]);if(!(ue(gu)||!ae(gu)))for(let vu=1;vu<as.height;vu++){const ru=ra?as.y+as.height-(vu+1):vu+as.y,Ru=[qs,ru];es.push({location:Ru,value:{...gu}})}}Xn(es),(_o=He.current)==null||_o.damage(es.map(Bs=>({cell:Bs.location})))},[Hr,zs,Xn]),Xf=s.useRef(!1),ud=s.useCallback(async ra=>{var _o;if(((_o=bs.current)==null?void 0:_o.wasDoubleClick)===!0&&nf!==void 0&&ff!==void 0){const es=As.current.y,as=As.current.height;let Bs=nf({x:ra,y:es,width:1,height:Math.min(as,ca-es)},Of.current.signal);typeof Bs!="object"&&(Bs=await Bs());const qs=Mi[ra-gs],vu=document.createElement("canvas").getContext("2d",{alpha:!1});if(vu!==null){vu.font=`${qc.baseFontStyle} ${qc.fontFamily}`;const ru=Io(vu,qc,qs,0,Bs,Oc,kc,!1,pr);ff?.(qs,ru.width,ra,ru.width)}}},[Mi,nf,kc,qc,Oc,ff,gs,ca,pr]),[rf,th]=s.useState(),Sd=s.useCallback((ra,_o)=>{var es,as,Bs;const qs=Wr;if(ti(void 0),th(void 0),_o)return;if(qs?.fillHandle===!0&&zs.current!==void 0){Yf(zs.current.cell[1]!==zs.current.range.y);return}const[gu,vu]=ra.location,[ru,Ru]=(es=Yl.current)!=null?es:[],rl=()=>{Xf.current=!0},fl=wu=>{var Vu,zl,Ze;if((wu.isTouch||ru===gu&&Ru===vu)&&Yo?.([gu-gs,vu],{...wu,preventDefault:rl}),!Xf.current){const ge=Hr(ra.location),et=pr(ge);if(et!==void 0&&et.onClick!==void 0){const Ln=et.onClick({...wu,cell:ge,posX:wu.localEventX,posY:wu.localEventY,bounds:wu.bounds,theme:ju(ge,ra.location),preventDefault:rl});Ln!==void 0&&!ue(Ln)&&nt(Ln)&&(Xn([{location:wu.location,value:Ln}]),(Vu=He.current)==null||Vu.damage([{cell:wu.location}]))}if(!Xf.current&&((Ze=(zl=qs?.previousSelection)==null?void 0:zl.current)==null?void 0:Ze.cell)!==void 0&&zs.current!==void 0){const[Ln,zr]=zs.current.cell,[Ji,Ja]=qs.previousSelection.current.cell;if(gu===Ln&&gu===Ji&&vu===zr&&vu===Ja)return bo?.([gu-gs,vu]),Aa(wu.bounds,!1),!0}}return!1},pl=ra.location[0]-gs;if(ra.isTouch){const wu=As.current,Vu=cu.current;if(wu.x!==Vu.x||wu.y!==Vu.y)return;if(ra.isLongTouch===!0){if(ra.kind==="cell"&&((as=zs?.current)==null?void 0:as.cell[0])===gu&&((Bs=zs?.current)==null?void 0:Bs.cell[1])===vu){Ss?.([pl,ra.location[1]],{...ra,preventDefault:rl});return}else if(ra.kind==="header"&&zs.columns.hasIndex(gu)){Do?.(pl,{...ra,preventDefault:rl});return}else if(ra.kind===te){if(pl<0)return;is?.(pl,{...ra,preventDefault:rl});return}}ra.kind==="cell"?fl(ra)||Cl(ra):ra.kind===te?ls?.(pl,{...ra,preventDefault:rl}):(ra.kind===G&&Ts?.(pl,{...ra,preventDefault:rl}),Cl(ra));return}if(ra.kind==="header"){if(pl<0)return;ra.isEdge?ud(gu):ra.button===0&&gu===ru&&vu===Ru&&Ts?.(pl,{...ra,preventDefault:rl})}if(ra.kind===te){if(pl<0)return;ra.button===0&&gu===ru&&vu===Ru&&(ls?.(pl,{...ra,preventDefault:rl}),Xf.current||Yc(ra))}ra.kind==="cell"&&ra.button===0&&fl(ra),Yl.current=void 0},[Wr,gs,zs,Yo,Yf,Hr,pr,ju,Xn,bo,Aa,Ss,Do,is,Cl,ls,ud,Ts,Yc]),Od=s.useCallback(ra=>{const _o={...ra,location:[ra.location[0]-gs,ra.location[1]]};Ou?.(_o),th(es=>{var as,Bs;return ra.scrollEdge[0]===es?.[0]&&ra.scrollEdge[1]===es[1]?es:Wr===void 0||((Bs=(as=bs.current)==null?void 0:as.location[0])!=null?Bs:0)<gs?void 0:ra.scrollEdge})},[Wr,Ou,gs]);kt(rf,xi);const hf=s.useCallback((ra,_o)=>{sl?.(ra-gs,_o)},[sl,gs]),vf=(zn=zs?.current)==null?void 0:zn.cell,Nf=s.useCallback((ra,_o,es,as,Bs,qs)=>{Iu.current=!1;let gu=vf;gu!==void 0&&(gu=[gu[0]-gs,gu[1]]);const vu={x:ra.x-gs,y:ra.y,width:ra.width,height:pc&&ra.y+ra.height>=ca?ra.height-1:ra.height,tx:Bs,ty:qs,extras:{selected:gu,freezeRegion:ku===0?void 0:{x:0,y:ra.y,width:ku,height:ra.height}}};Dr([_o,es,as]),Du(vu),nu?.(vu,vu.tx,vu.ty,vu.extras)},[vf,gs,pc,ca,ku,Du,nu]),ld=lt(Pu,s.useCallback((ra,_o)=>{Pu?.(ra-gs,_o-gs),qo!=="none"&&gc(Ce.fromSingleSelection(_o),void 0,!0)},[qo,Pu,gs,gc])),cd=s.useRef(!1),pf=s.useCallback(ra=>{if(ra.location[0]===0&&gs>0){ra.preventDefault();return}tu?.({...ra,location:[ra.location[0]-gs,ra.location[1]]}),ra.defaultPrevented()||(cd.current=!0),ti(void 0)},[tu,gs]),kd=s.useCallback(()=>{cd.current=!1},[]),nd=s.useCallback(ra=>{var _o;if(Wr!==void 0&&((_o=bs.current)==null?void 0:_o.location[0])===0&&ra.location[0]===0&&gs===1&&Ps==="multi"&&Wr.previousSelection&&!Wr.previousSelection.rows.hasIndex(bs.current.location[1])&&zs.rows.hasIndex(bs.current.location[1])){const es=Math.min(bs.current.location[1],ra.location[1]),as=Math.max(bs.current.location[1],ra.location[1])+1;$c(Ce.fromSingleSelection([es,as]),void 0,!1)}if(Wr!==void 0&&zs.current!==void 0&&!cd.current&&(ys==="rect"||ys==="multi-rect")){const[es,as]=zs.current.cell;let[Bs,qs]=ra.location;if(qs<0&&(qs=As.current.y),Hc&&as===ca)return;if(Hc&&qs===ca)if(ra.kind===ie)qs--;else return;Bs=Math.max(Bs,gs);const ru=Bs-es,Ru=qs-as,rl={x:ru>=0?es:Bs,y:Ru>=0?as:qs,width:Math.abs(ru)+1,height:Math.abs(Ru)+1};Vc({...zs.current,range:rl},!0,!1,"drag")}Vs?.({...ra,location:[ra.location[0]-gs,ra.location[1]]})},[Wr,gs,Ps,zs,ys,Vs,$c,Hc,ca,Vc]),wf=s.useCallback(ra=>{if(zs.current===void 0)return;const[_o,es]=ra,[as,Bs]=zs.current.cell,qs=zs.current.range;let gu=qs.x,vu=qs.x+qs.width,ru=qs.y,Ru=qs.y+qs.height;if(es!==0)switch(es){case 2:{Ru=ca,ru=Bs,Yi(0,Ru,"vertical");break}case-2:{ru=0,Ru=Bs+1,Yi(0,ru,"vertical");break}case 1:{ru<Bs?(ru++,Yi(0,ru,"vertical")):(Ru=Math.min(ca,Ru+1),Yi(0,Ru,"vertical"));break}case-1:{Ru>Bs+1?(Ru--,Yi(0,Ru,"vertical")):(ru=Math.max(0,ru-1),Yi(0,ru,"vertical"));break}default:j(es)}if(_o!==0)if(_o===2)vu=xo.length,gu=as,Yi(vu-1-gs,0,"horizontal");else if(_o===-2)gu=gs,vu=as+1,Yi(gu-gs,0,"horizontal");else{let rl=[];if(nf!==void 0){const fl=nf({x:gu,y:ru,width:vu-gu-gs,height:Ru-ru},Of.current.signal);typeof fl=="object"&&(rl=ki(fl))}if(_o===1){let fl=!1;if(gu<as){if(rl.length>0){const pl=h(gu+1,as+1).find(wu=>!rl.includes(wu-gs));pl!==void 0&&(gu=pl,fl=!0)}else gu++,fl=!0;fl&&Yi(gu,0,"horizontal")}fl||(vu=Math.min(xo.length,vu+1),Yi(vu-1-gs,0,"horizontal"))}else if(_o===-1){let fl=!1;if(vu>as+1){if(rl.length>0){const pl=h(vu-1,as,-1).find(wu=>!rl.includes(wu-gs));pl!==void 0&&(vu=pl,fl=!0)}else vu--,fl=!0;fl&&Yi(vu-gs,0,"horizontal")}fl||(gu=Math.max(gs,gu-1),Yi(gu-gs,0,"horizontal"))}else j(_o)}Vc({cell:zs.current.cell,range:{x:gu,y:ru,width:vu-gu,height:Ru-ru}},!0,!1,"keyboard-select")},[nf,zs,xo.length,gs,ca,Yi,Vc]),Df=s.useCallback((ra,_o,es,as)=>{const Bs=gn-(es?0:1);if(ra=u(ra,gs,Mi.length-1+gs),_o=u(_o,0,Bs),ra===vf?.[0]&&_o===vf?.[1])return!1;if(as&&zs.current!==void 0){const qs=[...zs.current.rangeStack];(zs.current.range.width>1||zs.current.range.height>1)&&qs.push(zs.current.range),_f({...zs,current:{cell:[ra,_o],range:{x:ra,y:_o,width:1,height:1},rangeStack:qs}},!0)}else Vc({cell:[ra,_o],range:{x:ra,y:_o,width:1,height:1}},!0,!1,"keyboard-nav");return Gi.current!==void 0&&Gi.current[0]===ra&&Gi.current[1]===_o&&(Gi.current=void 0),Yi(ra-gs,_o),!0},[gn,gs,Mi.length,vf,zs,Yi,_f,Vc]),nh=s.useCallback((ra,_o)=>{Sr?.cell!==void 0&&ra!==void 0&&nt(ra)&&(Xn([{location:Sr.cell,value:ra}]),window.requestAnimationFrame(()=>{var Bs;(Bs=He.current)==null||Bs.damage([{cell:Sr.cell}])})),Dt(!0),Vr(void 0);const[es,as]=_o;if(zs.current!==void 0&&(es!==0||as!==0)){const Bs=zs.current.cell[1]===gn-1&&ra!==void 0;Df(u(zs.current.cell[0]+es,0,xo.length-1),u(zs.current.cell[1]+as,0,gn-1),Bs,!1)}Ea?.(ra,_o)},[Sr?.cell,Dt,zs,Ea,Xn,gn,Df,xo.length]),Bd=s.useMemo(()=>`gdg-overlay-${oi++}`,[]),xd=s.useCallback(ra=>{(async()=>{var es,as,Bs,qs,gu;let vu=!1;if(Yu!==void 0&&Yu({...ra,cancel:()=>{vu=!0}}),vu)return;const ru=()=>{ra.stopPropagation(),ra.preventDefault()},Ru=Sr!==void 0,{altKey:rl,shiftKey:fl,metaKey:pl,ctrlKey:wu,key:Vu,bounds:zl}=ra,Ze=Uo.value,ge=Ze?pl:wu,et=Vu==="Delete"||Ze&&Vu==="Backspace",Ln=As.current,zr=zs.columns,Ji=zs.rows;if(Vu==="Escape"){Ru?Vr(void 0):Qu.clear&&(_f(Ua,!1),Ds?.());return}else if(Is("primary+a",ra)&&Qu.selectAll){if(!Ru)_f({columns:Ce.empty(),rows:Ce.empty(),current:{cell:(as=(es=zs.current)==null?void 0:es.cell)!=null?as:[gs,0],range:{x:gs,y:0,width:no.length,height:ca},rangeStack:[]}},!1);else{const ws=document.getElementById(Bd);if(ws!==null){const Uu=window.getSelection(),el=document.createRange();el.selectNodeContents(ws),Uu?.removeAllRanges(),Uu?.addRange(el)}}ru();return}else Is("primary+f",ra)&&Qu.search&&(ru(),(Bs=fi?.current)==null||Bs.focus({preventScroll:!0}),Kc(!0));function Ja(ws){var Uu,el,Gl;Dt();const Al=[];for(let ac=ws.x;ac<ws.x+ws.width;ac++)for(let Lc=ws.y;Lc<ws.y+ws.height;Lc++){const xl=co([ac-gs,Lc]);if(!xl.allowOverlay&&xl.kind!==fe.Boolean)continue;let hl;if(xl.kind===fe.Custom){const Su=Ol?.(xl);ve(Su)&&(hl=(Uu=Su?.deletedValue)==null?void 0:Uu.call(Su,xl))}else if(nt(xl)&&xl.allowOverlay||xl.kind===fe.Boolean){const Su=pr(xl);hl=(el=Su?.onDelete)==null?void 0:el.call(Su,xl)}hl!==void 0&&!ue(hl)&&nt(hl)&&Al.push({location:[ac,Lc],value:hl})}Xn(Al),(Gl=He.current)==null||Gl.damage(Al.map(ac=>({cell:ac.location})))}if(et){const ws=(qs=md?.(zs))!=null?qs:!0;if(ru(),ws!==!1){const Uu=ws===!0?zs:ws;if(Uu.current!==void 0){Ja(Uu.current.range);for(const el of Uu.current.rangeStack)Ja(el)}for(const el of Uu.rows)Ja({x:gs,y:el,width:xo.length-gs,height:1});for(const el of Uu.columns)Ja({x:el,y:0,width:1,height:ca})}return}if(zs.current===void 0)return;let[lo,To]=zs.current.cell,Xo=!1;if(Qu.selectColumn&&Is("ctrl+ ",ra)&&qo!=="none")zr.hasIndex(lo)?gc(zr.remove(lo),void 0,!0):qo==="single"?gc(Ce.fromSingleSelection(lo),void 0,!0):gc(void 0,lo,!0);else if(Qu.selectRow&&Is("shift+ ",ra)&&Ps!=="none")Ji.hasIndex(To)?$c(Ji.remove(To),void 0,!0):Ps==="single"?$c(Ce.fromSingleSelection(To),void 0,!0):$c(void 0,To,!0);else if((Is("Enter",ra)||Is(" ",ra)||Is("shift+Enter",ra))&&zl!==void 0)Ru?(Vr(void 0),Is("Enter",ra)?To++:Is("shift+Enter",ra)&&To--):To===ca&&pc?window.setTimeout(()=>{const ws=Rs(lo);vs(ws??lo)},0):(bo?.([lo-gs,To]),Aa(zl,!0),ru());else if(Qu.downFill&&Is("primary+_68",ra)&&zs.current.range.height>1)Yf(!1),ru();else if(Qu.rightFill&&Is("primary+_82",ra)&&zs.current.range.width>1){const ws=[],Uu=zs.current.range;for(let el=0;el<Uu.height;el++){const Gl=el+Uu.y,Al=Hr([Uu.x,Gl]);if(!(ue(Al)||!ae(Al)))for(let ac=1;ac<Uu.width;ac++){const xl=[ac+Uu.x,Gl];ws.push({location:xl,value:{...Al}})}}Xn(ws),(gu=He.current)==null||gu.damage(ws.map(el=>({cell:el.location}))),ru()}else if(Qu.pageDown&&Is("PageDown",ra))To+=Math.max(1,As.current.height-4),ru();else if(Qu.pageUp&&Is("PageUp",ra))To-=Math.max(1,As.current.height-4),ru();else if(Qu.first&&Is("primary+Home",ra))Vr(void 0),To=0,lo=0;else if(Qu.last&&Is("primary+End",ra))Vr(void 0),To=Number.MAX_SAFE_INTEGER,lo=Number.MAX_SAFE_INTEGER;else if(Qu.first&&Is("primary+shift+Home",ra))Vr(void 0),wf([-2,-2]);else if(Qu.last&&Is("primary+shift+End",ra))Vr(void 0),wf([2,2]);else if(Vu==="ArrowDown"){if(wu&&rl)return;Vr(void 0),fl&&(ys==="rect"||ys==="multi-rect")?wf([0,ge&&!rl?2:1]):(rl&&!ge&&(Xo=!0),ge&&!rl?To=ca-1:To+=1)}else if(Vu==="ArrowUp"||Vu==="Home"){const ws=Vu==="Home"||ge;Vr(void 0),fl&&(ys==="rect"||ys==="multi-rect")?wf([0,ws&&!rl?-2:-1]):(rl&&!ws&&(Xo=!0),To+=ws&&!rl?Number.MIN_SAFE_INTEGER:-1)}else if(Vu==="ArrowRight"||Vu==="End"){const ws=Vu==="End"||ge;Vr(void 0),fl&&(ys==="rect"||ys==="multi-rect")?wf([ws&&!rl?2:1,0]):(rl&&!ws&&(Xo=!0),lo+=ws&&!rl?Number.MAX_SAFE_INTEGER:1)}else if(Vu==="ArrowLeft")Vr(void 0),fl&&(ys==="rect"||ys==="multi-rect")?wf([ge&&!rl?-2:-1,0]):(rl&&!ge&&(Xo=!0),lo+=ge&&!rl?Number.MIN_SAFE_INTEGER:-1);else if(Vu==="Tab")Vr(void 0),fl?lo--:lo++;else if(!pl&&!wu&&zs.current!==void 0&&Vu.length===1&&/[ -~]/g.test(Vu)&&zl!==void 0&&ae(co([lo-gs,Math.max(0,To-1)]))){if((!Hc||To!==ca)&&(Ln.y>To||To>Ln.y+Ln.height||Ln.x>lo||lo>Ln.x+Ln.width))return;Aa(zl,!0,Vu),ru()}Df(lo,To,!1,Xo)&&ru()})()},[Yu,Sr,zs,Qu.selectAll,Qu.search,Qu.selectColumn,Qu.selectRow,Qu.downFill,Qu.rightFill,Qu.pageDown,Qu.pageUp,Qu.first,Qu.last,Qu.clear,qo,Ps,co,gs,Df,_f,Ds,no.length,ca,Bd,Dt,Xn,Ol,pr,md,xo.length,gc,$c,pc,Rs,vs,bo,Aa,Yf,Hr,wf,ys,Hc]),Th=s.useCallback((ra,_o)=>{const es=ra.location[0]-gs;if(ra.kind==="header"&&Do?.(es,{...ra,preventDefault:_o}),ra.kind===te){if(es<0)return;is?.(es,{...ra,preventDefault:_o})}if(ra.kind==="cell"){const[as,Bs]=ra.location;Ss?.([es,Bs],{...ra,preventDefault:_o}),V(zs,ra.location)||Df(as,Bs,!1,!1)}},[zs,Ss,is,Do,gs,Df]),Td=s.useCallback(async ra=>{var _o,es,as,Bs,qs,gu,vu;if(!Qu.paste)return;function ru(wu,Vu,zl){var Ze,ge;if(!ue(wu)&&ae(wu)&&wu.readonly!==!0){const et=ko?.(zl,wu);if(et!==void 0&&nt(et))return et.kind!==wu.kind&&console.warn("Coercion should not change cell kind."),{location:Vu,value:et};const Ln=pr(wu);if(Ln===void 0)return;if(Ln.kind===fe.Custom){W(wu.kind===fe.Custom);const zr=(Ze=Ln.onPaste)==null?void 0:Ze.call(Ln,zl,wu);return zr===void 0?void 0:{location:Vu,value:{...wu,data:zr}}}else{const zr=(ge=Ln.onPaste)==null?void 0:ge.call(Ln,zl,wu);return zr===void 0?void 0:(W(zr.kind===wu.kind),{location:Vu,value:zr})}}}const Ru=zs.columns,rl=zs.rows,fl=((_o=xi.current)==null?void 0:_o.contains(document.activeElement))===!0||((es=xr.current)==null?void 0:es.contains(document.activeElement))===!0;let pl=(as=zs.current)==null?void 0:as.cell;if(pl===void 0&&Ru.length===1&&(pl=[(Bs=Ru.first())!=null?Bs:0,0]),pl===void 0&&rl.length===1&&(pl=[gs,(qs=rl.first())!=null?qs:0]),fl&&pl!==void 0){let wu,Vu;const zl="text/plain",Ze="text/html";if(navigator.clipboard.read!==void 0){const zr=await navigator.clipboard.read();for(const Ji of zr){if(Ji.types.includes(Ze)){const lo=await(await Ji.getType(Ze)).text(),To=document.createElement("html");To.innerHTML=lo;const Xo=To.querySelector("table");if(Xo!==null){wu=bu(Xo);break}}Ji.types.includes(zl)&&(Vu=await(await Ji.getType(zl)).text())}}else if(navigator.clipboard.readText!==void 0)Vu=await navigator.clipboard.readText();else if(ra!==void 0&&ra?.clipboardData!==null){if(ra.clipboardData.types.includes(Ze)){const zr=ra.clipboardData.getData(Ze),Ji=document.createElement("html");Ji.innerHTML=zr;const Ja=Ji.querySelector("table");Ja!==null&&(wu=bu(Ja))}wu===void 0&&ra.clipboardData.types.includes(zl)&&(Vu=ra.clipboardData.getData(zl))}else return;const[ge,et]=pl,Ln=[];do{if(Hs===void 0){const zr=Hr(pl),Ji=ru(zr,pl,(gu=Vu??wu?.map(Ja=>Ja.join(" ")).join(" "))!=null?gu:"");Ji!==void 0&&Ln.push(Ji);break}if(wu===void 0){if(Vu===void 0)return;wu=fu(Vu)}if(Hs===!1||typeof Hs=="function"&&Hs?.([pl[0]-gs,pl[1]],wu)!==!0)return;for(const[zr,Ji]of wu.entries()){if(zr+et>=ca)break;for(const[Ja,lo]of Ji.entries()){const To=[Ja+ge,zr+et],Xo=Hr(To),mu=ru(Xo,To,lo);mu!==void 0&&Ln.push(mu)}}}while(!1);Xn(Ln),(vu=He.current)==null||vu.damage(Ln.map(zr=>({cell:zr.location})))}},[ko,pr,Hr,zs,Qu.paste,Xn,Hs,gs,ca]);Ve("paste",Td,window,!1,!0);const Qf=s.useCallback(async(ra,_o)=>{var es,as;if(!Qu.copy)return;const Bs=_o===!0||((es=xi.current)==null?void 0:es.contains(document.activeElement))===!0||((as=xr.current)==null?void 0:as.contains(document.activeElement))===!0,qs=zs.columns,gu=zs.rows,vu=(ru,Ru)=>{if(!pu)Zu(ru,Ru,ra);else{const rl=Ru.map(fl=>({kind:fe.Text,data:no[fl].title,displayData:no[fl].title,allowOverlay:!1}));Zu([rl,...ru],Ru,ra)}};if(Bs&&nf!==void 0){if(zs.current!==void 0){let ru=nf(zs.current.range,Of.current.signal);typeof ru!="object"&&(ru=await ru()),vu(ru,h(zs.current.range.x-gs,zs.current.range.x+zs.current.range.width-gs))}else if(gu!==void 0&&gu.length>0){const Ru=[...gu].map(rl=>{const fl=nf({x:gs,y:rl,width:no.length-gs,height:1},Of.current.signal);return typeof fl=="object"?fl[0]:fl().then(pl=>pl[0])});if(Ru.some(rl=>rl instanceof Promise)){const rl=await Promise.all(Ru);vu(rl,h(no.length))}else vu(Ru,h(no.length))}else if(qs.length>0){const ru=[],Ru=[];for(const rl of qs){let fl=nf({x:rl,y:0,width:1,height:ca},Of.current.signal);typeof fl!="object"&&(fl=await fl()),ru.push(fl),Ru.push(rl-gs)}if(ru.length===1)vu(ru[0],Ru);else{const rl=ru.reduce((fl,pl)=>fl.map((wu,Vu)=>[...wu,...pl[Vu]]));vu(rl,Ru)}}}},[no,nf,zs,Qu.copy,gs,ca,pu]);Ve("copy",Qf,window,!1,!1);const Pf=s.useCallback((ra,_o)=>{if(ra.length===0||_o===-1)return;const[es,as]=ra[_o];Gi.current!==void 0&&Gi.current[0]===es&&Gi.current[1]===as||(Gi.current=[es,as],Df(es,as,!1,!1))},[Df]),[mc,Ac]=(Tr=(sr=Ju?.current)==null?void 0:sr.cell)!=null?Tr:[],ef=s.useRef(Yi);ef.current=Yi,s.useLayoutEffect(()=>{var ra,_o,es,as;!Iu.current&&mc!==void 0&&Ac!==void 0&&(mc!==((_o=(ra=td.current)==null?void 0:ra.current)==null?void 0:_o.cell[0])||Ac!==((as=(es=td.current)==null?void 0:es.current)==null?void 0:as.cell[1]))&&ef.current(mc,Ac),Iu.current=!1},[mc,Ac]);const gf=s.useMemo(()=>pc===!0&&Nl?.tint===!0?Ce.fromSingleSelection(gn-1):Ce.empty(),[gn,pc,Nl?.tint]),zf=s.useCallback(ra=>{var _o;return typeof rc=="boolean"?rc:(_o=rc?.(ra-gs))!=null?_o:!0},[gs,rc]),Hf=s.useMemo(()=>{if(Zc===void 0||xr.current===null)return null;const{bounds:ra,group:_o}=Zc,es=xr.current.getBoundingClientRect();return s.createElement(xa,{bounds:ra,group:_o,canvasBounds:es,onClose:()=>Af(void 0),onFinish:as=>{Af(void 0),Os?.(_o,as)}})},[Os,Zc]),mf=Math.min(xo.length,ku+(Ul?1:0));s.useImperativeHandle(Nt,()=>({appendRow:ra=>vs(ra+gs),updateCells:ra=>{var _o;return gs!==0&&(ra=ra.map(es=>({cell:[es.cell[0]+gs,es.cell[1]]}))),(_o=He.current)==null?void 0:_o.damage(ra)},getBounds:(ra,_o)=>{var es;return(es=He.current)==null?void 0:es.getBounds(ra+gs,_o)},focus:()=>{var ra;return(ra=He.current)==null?void 0:ra.focus()},emit:async ra=>{switch(ra){case"delete":xd({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!1,key:"Delete",keyCode:46,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0});break;case"fill-right":xd({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:"r",keyCode:82,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0});break;case"fill-down":xd({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:"d",keyCode:68,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0});break;case"copy":await Qf(void 0,!0);break;case"paste":await Td();break}},scrollTo:Yi}),[vs,Qf,xd,Td,gs,Yi]);const[fd,Ad]=vf??[],Ah=s.useCallback(ra=>{const[_o,es]=ra;if(es===-1){qo!=="none"&&(gc(Ce.fromSingleSelection(_o),void 0,!1),Dt());return}fd===_o&&Ad===es||(Vc({cell:ra,range:{x:_o,y:es,width:1,height:1}},!0,!1,"keyboard-nav"),Yi(_o,es))},[qo,Dt,Yi,fd,Ad,Vc,gc]),[Rh,lh]=s.useState(!1),Kf=s.useRef(p(ra=>{lh(ra)},5)),Mh=s.useCallback(()=>{Kf.current(!0),zs.current===void 0&&zs.columns.length===0&&zs.rows.length===0&&Wr===void 0&&Vc({cell:[gs,Fe],range:{x:gs,y:Fe,width:1,height:1}},!0,!1,"keyboard-select")},[Fe,zs,Wr,gs,Vc]),rd=s.useCallback(()=>{Kf.current(!1)},[]),[Ff,yd]=s.useMemo(()=>{var ra;let _o;const es=(ra=Cc?.scrollbarWidthOverride)!=null?ra:Ke(),as=ca+(pc?1:0);if(typeof bc=="number")_o=Ta+as*bc;else{let qs=0;const gu=Math.min(as,10);for(let vu=0;vu<gu;vu++)qs+=bc(vu);qs=Math.floor(qs/gu),_o=Ta+as*qs}_o+=es;const Bs=xo.reduce((qs,gu)=>gu.width+qs,0)+es;return[`${Math.min(1e5,Bs)}px`,`${Math.min(1e5,_o)}px`]},[xo,Cc?.scrollbarWidthOverride,bc,ca,pc,Ta]);return s.createElement(k.Provider,{value:qc},s.createElement(kr,{style:q(qc),className:cs,inWidth:mo??Ff,inHeight:Ga??yd},s.createElement(dr,{fillHandle:tf,drawFocusRing:_c,experimental:Cc,fixedShadowX:of,fixedShadowY:Qc,getRowThemeOverride:Pa,headerIcons:sc,imageWindowLoader:ul,initialSize:fc,isDraggable:lf,onDragLeave:vc,onRowMoved:yl,overscrollX:Bu,overscrollY:vl,preventDiagonalScrolling:qu,rightElement:ic,rightElementProps:jl,showMinimap:lc,smoothScrollX:Rl,smoothScrollY:al,className:cs,enableGroups:Zi,onCanvasFocused:Mh,onCanvasBlur:rd,canvasRef:xr,onContextMenu:Th,theme:qc,cellXOffset:Jl,cellYOffset:Fe,accessibilityHeight:Tl.height,onDragEnd:kd,columns:xo,drawCustomCell:Js,drawHeader:Tc,disabledRows:gf,freezeColumns:mf,lockColumns:gs,firstColAccessible:gs===0,getCellContent:Hr,minColumnWidth:Oc,maxColumnWidth:kc,searchInputRef:fi,showSearch:sd,onSearchClose:Ed,highlightRegions:cr,getCellsForSelection:nf,getGroupDetails:sa,headerHeight:yf,isFocused:Rh,groupHeaderHeight:Zi?xc:0,trailingRowType:pc?Nl?.sticky===!0?"sticky":"appended":"none",onColumnResize:ff,onColumnResizeEnd:Lf,onColumnResizeStart:Ec,onCellFocused:Ah,onColumnMoved:ld,onDragStart:pf,onHeaderMenuClick:hf,onItemHovered:nd,isFilling:Wr?.fillHandle===!0,onMouseMove:Od,onKeyDown:xd,onKeyUp:$u,onMouseDown:wc,onMouseUp:Sd,onDragOverCell:Ic,onDrop:kl,onSearchResultsChanged:Pf,onVisibleRegionChanged:Nf,clientSize:[If[0],If[1]],rowHeight:bc,rows:gn,scrollRef:xi,selection:zs,translateX:Tl.tx,translateY:Tl.ty,verticalBorder:zf,gridRef:He,getCellRenderer:pr,scrollToEnd:ll}),Hf,Sr!==void 0&&s.createElement(bt,{...Sr,validateCell:Wf,id:Bd,getCellRenderer:pr,className:Cc?.isSubGrid===!0?"click-outside-ignore":void 0,provideEditor:Ol,imageEditorOverride:Sa,onFinishEditing:nh,markdownDivCreateNode:oo})))},Va=s.forwardRef(va);function Qi(Pe){return{...Pe,kind:fe.Custom}}function ro(Pe){return{customRenderers:React35.useMemo(()=>Pe.map(Qi),[Pe])}}},23419:(C,c,t)=>{"use strict";t.d(c,{aZ:()=>ot,Ip:()=>Ft,Ki:()=>We,v3:()=>Dn,vU:()=>mn,f0:()=>Ha,M5:()=>$a,wi:()=>Zt,lX:()=>li,mW:()=>dn,yY:()=>Tt,hT:()=>la,Tm:()=>vn,pQ:()=>qt,XT:()=>it,xb:()=>wa,z5:()=>Li,Zm:()=>na,m$:()=>mi,m0:()=>fn,e8:()=>ji,uM:()=>z,tz:()=>ei,IJ:()=>Ca,JW:()=>Eo,iy:()=>le,On:()=>Gt,Wc:()=>Vn,Om:()=>Je,vD:()=>An,nv:()=>Ct,m6:()=>br,yN:()=>st,E2:()=>ct});var i=t(55859),s=t(90823);let u=0;class v{constructor(ur,Gr,Pi){this.set=ur,this.base=Gr,this.modified=Pi,this.id=u++}static define(ur){if(ur?.base)throw new Error("Can not derive from a modified tag");let Gr=new v([],null,[]);if(Gr.set.push(Gr),ur)for(let Pi of ur.set)Gr.set.push(Pi);return Gr}static defineModifier(){let ur=new h;return Gr=>Gr.modified.indexOf(ur)>-1?Gr:h.get(Gr.base||Gr,Gr.modified.concat(ur).sort((Pi,aa)=>Pi.id-aa.id))}}let l=0;class h{constructor(){this.instances=[],this.id=l++}static get(ur,Gr){if(!Gr.length)return ur;let Pi=Gr[0].instances.find(cn=>cn.base==ur&&p(Gr,cn.modified));if(Pi)return Pi;let aa=[],Fa=new v(aa,ur,Gr);for(let cn of Gr)cn.instances.push(Fa);let tn=d(Gr);for(let cn of ur.set)if(!cn.modified.length)for(let nr of tn)aa.push(h.get(cn,nr));return Fa}}function p(Kr,ur){return Kr.length==ur.length&&Kr.every((Gr,Pi)=>Gr==ur[Pi])}function d(Kr){let ur=[[]];for(let Gr=0;Gr<Kr.length;Gr++)for(let Pi=0,aa=ur.length;Pi<aa;Pi++)ur.push(ur[Pi].concat(Kr[Gr]));return ur.sort((Gr,Pi)=>Pi.length-Gr.length)}function f(Kr){let ur=Object.create(null);for(let Gr in Kr){let Pi=Kr[Gr];Array.isArray(Pi)||(Pi=[Pi]);for(let aa of Gr.split(" "))if(aa){let Fa=[],tn=2,cn=aa;for(let ua=0;;){if(cn=="..."&&ua>0&&ua+3==aa.length){tn=1;break}let _a=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(cn);if(!_a)throw new RangeError("Invalid path: "+aa);if(Fa.push(_a[0]=="*"?"":_a[0][0]=='"'?JSON.parse(_a[0]):_a[0]),ua+=_a[0].length,ua==aa.length)break;let Ka=aa[ua++];if(ua==aa.length&&Ka=="!"){tn=0;break}if(Ka!="/")throw new RangeError("Invalid path: "+aa);cn=aa.slice(ua)}let nr=Fa.length-1,ir=Fa[nr];if(!ir)throw new RangeError("Invalid path: "+aa);let Lr=new y(Pi,tn,nr>0?Fa.slice(0,nr):null);ur[ir]=Lr.sort(ur[ir])}}return g.add(ur)}const g=new s.md;class y{constructor(ur,Gr,Pi,aa){this.tags=ur,this.mode=Gr,this.context=Pi,this.next=aa}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(ur){return!ur||ur.depth<this.depth?(this.next=ur,this):(ur.next=this.sort(ur.next),ur)}get depth(){return this.context?this.context.length:0}}y.empty=new y([],2,null);function b(Kr,ur){let Gr=Object.create(null);for(let Fa of Kr)if(!Array.isArray(Fa.tag))Gr[Fa.tag.id]=Fa.class;else for(let tn of Fa.tag)Gr[tn.id]=Fa.class;let{scope:Pi,all:aa=null}=ur||{};return{style:Fa=>{let tn=aa;for(let cn of Fa)for(let nr of cn.set){let ir=Gr[nr.id];if(ir){tn=tn?tn+" "+ir:ir;break}}return tn},scope:Pi}}function E(Kr,ur){let Gr=null;for(let Pi of Kr){let aa=Pi.style(ur);aa&&(Gr=Gr?Gr+" "+aa:aa)}return Gr}function S(Kr,ur,Gr,Pi=0,aa=Kr.length){let Fa=new w(Pi,Array.isArray(ur)?ur:[ur],Gr);Fa.highlightRange(Kr.cursor(),Pi,aa,"",Fa.highlighters),Fa.flush(aa)}class w{constructor(ur,Gr,Pi){this.at=ur,this.highlighters=Gr,this.span=Pi,this.class=""}startSpan(ur,Gr){Gr!=this.class&&(this.flush(ur),ur>this.at&&(this.at=ur),this.class=Gr)}flush(ur){ur>this.at&&this.class&&this.span(this.at,ur,this.class)}highlightRange(ur,Gr,Pi,aa,Fa){let{type:tn,from:cn,to:nr}=ur;if(cn>=Pi||nr<=Gr)return;tn.isTop&&(Fa=this.highlighters.filter(Ka=>!Ka.scope||Ka.scope(tn)));let ir=aa,Lr=x(ur)||y.empty,ua=E(Fa,Lr.tags);if(ua&&(ir&&(ir+=" "),ir+=ua,Lr.mode==1&&(aa+=(aa?" ":"")+ua)),this.startSpan(ur.from,ir),Lr.opaque)return;let _a=ur.tree&&ur.tree.prop(NodeProp.mounted);if(_a&&_a.overlay){let Ka=ur.node.enter(_a.overlay[0].from+cn,1),yo=this.highlighters.filter(Ma=>!Ma.scope||Ma.scope(_a.tree.type)),Ba=ur.firstChild();for(let Ma=0,Mo=cn;;Ma++){let Nr=Ma<_a.overlay.length?_a.overlay[Ma]:null,gi=Nr?Nr.from+cn:nr,ea=Math.max(Gr,Mo),dr=Math.min(Pi,gi);if(ea<dr&&Ba)for(;ur.from<dr&&(this.highlightRange(ur,ea,dr,aa,Fa),this.startSpan(Math.min(dr,ur.to),ir),!(ur.to>=gi||!ur.nextSibling())););if(!Nr||gi>Pi)break;Mo=Nr.to+cn,Mo>Gr&&(this.highlightRange(Ka.cursor(),Math.max(Gr,Nr.from+cn),Math.min(Pi,Mo),aa,yo),this.startSpan(Mo,ir))}Ba&&ur.parent()}else if(ur.firstChild()){do if(!(ur.to<=Gr)){if(ur.from>=Pi)break;this.highlightRange(ur,Gr,Pi,aa,Fa),this.startSpan(Math.min(Pi,ur.to),ir)}while(ur.nextSibling());ur.parent()}}}function x(Kr){let ur=Kr.type.prop(g);for(;ur&&ur.context&&!Kr.matchContext(ur.context);)ur=ur.next;return ur||null}const P=v.define,R=P(),T=P(),A=P(T),I=P(T),N=P(),K=P(N),_=P(N),W=P(),j=P(W),re=P(),X=P(),Z=P(),J=P(Z),q=P(),L={comment:R,lineComment:P(R),blockComment:P(R),docComment:P(R),name:T,variableName:P(T),typeName:A,tagName:P(A),propertyName:I,attributeName:P(I),className:P(T),labelName:P(T),namespace:P(T),macroName:P(T),literal:N,string:K,docString:P(K),character:P(K),attributeValue:P(K),number:_,integer:P(_),float:P(_),bool:P(N),regexp:P(N),escape:P(N),color:P(N),url:P(N),keyword:re,self:P(re),null:P(re),atom:P(re),unit:P(re),modifier:P(re),operatorKeyword:P(re),controlKeyword:P(re),definitionKeyword:P(re),moduleKeyword:P(re),operator:X,derefOperator:P(X),arithmeticOperator:P(X),logicOperator:P(X),bitwiseOperator:P(X),compareOperator:P(X),updateOperator:P(X),definitionOperator:P(X),typeOperator:P(X),controlOperator:P(X),punctuation:Z,separator:P(Z),bracket:J,angleBracket:P(J),squareBracket:P(J),paren:P(J),brace:P(J),content:W,heading:j,heading1:P(j),heading2:P(j),heading3:P(j),heading4:P(j),heading5:P(j),heading6:P(j),contentSeparator:P(W),list:P(W),quote:P(W),emphasis:P(W),strong:P(W),link:P(W),monospace:P(W),strikethrough:P(W),inserted:P(),deleted:P(),changed:P(),invalid:P(),meta:q,documentMeta:P(q),annotation:P(q),processingInstruction:P(q),definition:v.defineModifier(),constant:v.defineModifier(),function:v.defineModifier(),standard:v.defineModifier(),local:v.defineModifier(),special:v.defineModifier()},$=b([{tag:L.link,class:"tok-link"},{tag:L.heading,class:"tok-heading"},{tag:L.emphasis,class:"tok-emphasis"},{tag:L.strong,class:"tok-strong"},{tag:L.keyword,class:"tok-keyword"},{tag:L.atom,class:"tok-atom"},{tag:L.bool,class:"tok-bool"},{tag:L.url,class:"tok-url"},{tag:L.labelName,class:"tok-labelName"},{tag:L.inserted,class:"tok-inserted"},{tag:L.deleted,class:"tok-deleted"},{tag:L.literal,class:"tok-literal"},{tag:L.string,class:"tok-string"},{tag:L.number,class:"tok-number"},{tag:[L.regexp,L.escape,L.special(L.string)],class:"tok-string2"},{tag:L.variableName,class:"tok-variableName"},{tag:L.local(L.variableName),class:"tok-variableName tok-local"},{tag:L.definition(L.variableName),class:"tok-variableName tok-definition"},{tag:L.special(L.variableName),class:"tok-variableName2"},{tag:L.definition(L.propertyName),class:"tok-propertyName tok-definition"},{tag:L.typeName,class:"tok-typeName"},{tag:L.namespace,class:"tok-namespace"},{tag:L.className,class:"tok-className"},{tag:L.macroName,class:"tok-macroName"},{tag:L.propertyName,class:"tok-propertyName"},{tag:L.operator,class:"tok-operator"},{tag:L.comment,class:"tok-comment"},{tag:L.meta,class:"tok-meta"},{tag:L.invalid,class:"tok-invalid"},{tag:L.punctuation,class:"tok-punctuation"}]),k=147,F=148,V=1,pe=2,ce=3,G=4,te=5,ie=6,fe=7,Se=8,he=9,me=10,_e=11,we=12,Ge=13,ht=14,nt=15,Re=16,ue=17,ae=18,ve=19,Me=20,Ye=21,qe=22,At=23,It=24,Ce=25,Ae=26,$e={inf:k,nan:F,bool:V,ignoring:pe,on:ce,group_left:G,group_right:te,offset:ie},tt=(Kr,ur)=>$e[Kr.toLowerCase()]||-1,ke={avg:Se,atan2:fe,bottomk:he,count:me,count_values:_e,group:we,max:Ge,min:ht,quantile:nt,stddev:Re,stdvar:ue,sum:ae,topk:ve,by:Me,without:Ye,and:qe,or:At,unless:It,start:Ce,end:Ae},Oe=(Kr,ur)=>ke[Kr.toLowerCase()]||-1,je=f({LineComment:L.comment,LabelName:L.labelName,StringLiteral:L.string,NumberLiteral:L.number,Duration:L.number,"Abs Absent AbsentOverTime Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramQuantile HoltWinters Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Time Timestamp Vector Year":L.function(L.variableName),"Avg Bottomk Count Count_values Group Max Min Quantile Stddev Stdvar Sum Topk":L.operatorKeyword,"By Without Bool On Ignoring GroupLeft GroupRight Offset Start End":L.modifier,"And Unless Or":L.logicOperator,"Sub Add Mul Mod Div Atan2 Eql Neq Lte Lss Gte Gtr EqlRegex EqlSingle NeqRegex Pow At":L.operator,UnaryOp:L.arithmeticOperator,"( )":L.paren,"[ ]":L.squareBracket,"{ }":L.brace,"\u26A0":L.invalid}),Et={__proto__:null,absent_over_time:309,absent:311,abs:313,acos:315,acosh:317,asin:319,asinh:321,atan:323,atanh:325,avg_over_time:327,ceil:329,changes:331,clamp:333,clamp_max:335,clamp_min:337,cos:339,cosh:341,count_over_time:343,days_in_month:345,day_of_month:347,day_of_week:349,day_of_year:351,deg:353,delta:355,deriv:357,exp:359,floor:361,histogram_quantile:363,holt_winters:365,hour:367,idelta:369,increase:371,irate:373,label_replace:375,label_join:377,last_over_time:379,ln:381,log10:383,log2:385,max_over_time:387,min_over_time:389,minute:391,month:393,pi:395,predict_linear:397,present_over_time:399,quantile_over_time:401,rad:403,rate:405,resets:407,round:409,scalar:411,sgn:413,sin:415,sinh:417,sort:419,sort_desc:421,sqrt:423,stddev_over_time:425,stdvar_over_time:427,sum_over_time:429,tan:431,tanh:433,timestamp:435,time:437,vector:439,year:441},ct=i.WQ.deserialize({version:14,states:"6bOYQPOOO'OQPOOOOQO'#C{'#C{O'TQPO'#CzQ'`QQOOOOQO'#De'#DeO'ZQPO'#DdOOQO'#FO'#FOO(mQPO'#FUOYQPO'#FQOYQPO'#FTOOQO'#FW'#FWO.lQSO'#FXO.tQQO'#FVOOQO'#FV'#FVOOQO'#Cy'#CyOOQO'#Df'#DfOOQO'#Dh'#DhOOQO'#Di'#DiOOQO'#Dj'#DjOOQO'#Dk'#DkOOQO'#Dl'#DlOOQO'#Dm'#DmOOQO'#Dn'#DnOOQO'#Do'#DoOOQO'#Dp'#DpOOQO'#Dq'#DqOOQO'#Dr'#DrOOQO'#Ds'#DsOOQO'#Dt'#DtOOQO'#Du'#DuOOQO'#Dv'#DvOOQO'#Dw'#DwOOQO'#Dx'#DxOOQO'#Dy'#DyOOQO'#Dz'#DzOOQO'#D{'#D{OOQO'#D|'#D|OOQO'#D}'#D}OOQO'#EO'#EOOOQO'#EP'#EPOOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETOOQO'#EU'#EUOOQO'#EV'#EVOOQO'#EW'#EWOOQO'#EX'#EXOOQO'#EY'#EYOOQO'#EZ'#EZOOQO'#E['#E[OOQO'#E]'#E]OOQO'#E^'#E^OOQO'#E_'#E_OOQO'#E`'#E`OOQO'#Ea'#EaOOQO'#Eb'#EbOOQO'#Ec'#EcOOQO'#Ed'#EdOOQO'#Ee'#EeOOQO'#Ef'#EfOOQO'#Eg'#EgOOQO'#Eh'#EhOOQO'#Ei'#EiOOQO'#Ej'#EjOOQO'#Ek'#EkOOQO'#El'#ElOOQO'#Em'#EmOOQO'#En'#EnOOQO'#Eo'#EoOOQO'#Ep'#EpOOQO'#Eq'#EqOOQO'#Er'#ErOOQO'#Es'#EsOOQO'#Et'#EtOOQO'#Eu'#EuOOQO'#Ev'#EvOOQO'#Ew'#EwOOQO'#Ex'#ExOOQO'#Ey'#EyOOQO'#Ez'#EzOOQO'#E{'#E{QOQPOOO0_QPO'#C|O0dQPO'#DRO'ZQPO,59fO0kQQO,59fO2XQPO,59oO2XQPO,59oO2XQPO,59oO2XQPO,59oO2XQPO,59oO8WQQO,5;hO8]QQO,5;kO8eQPO,5;zOOQO,5:O,5:OOOQO,5;j,5;jO8|QQO,5;lO9TQQO,5;oO:kQPO'#FZO:yQPO,5;sOOQO'#FY'#FYOOQO,5;s,5;sOOQO,5;q,5;qO;RQSO'#C}OOQO,59h,59hO;ZQPO,59mO;cQQO'#DSOOQO,59m,59mOOQO1G/Q1G/QO0_QPO'#DWOAcQPO'#DVOAmQPO'#DVOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOAwQSO1G1SOOQO1G1V1G1VOBPQQO1G1VOBUQPO'#FOOOQO'#Fb'#FbOOQO1G1f1G1fOBaQPO1G1fOOQO1G1W1G1WOOQO'#F['#F[OBfQPO,5;uOBkQSO1G1_OOQO1G1_1G1_OOQO'#DP'#DPOBsQPO,59iOOQO'#DO'#DOOOQO,59i,59iOYQPO,59nOOQO1G/X1G/XOOQO,59r,59rOHnQPO,59qOHuQPO,59qOJ^QQO7+$uOJnQQO7+$uOLSQQO7+$uOLjQQO7+$uONRQQO7+$uOOQO7+&n7+&nONlQQO7+&tOOQO7+&q7+&qONtQPO7+'QOOQO1G1a1G1aOOQO1G1`1G1`OOQO7+&y7+&yONyQSO1G/TOOQO1G/T1G/TO! RQQO1G/YOOQO1G/]1G/]O! ]QPO1G/]OOQO<<J`<<J`O!'RQPO<<J`OOQO<<Jl<<JlOOQO1G/U1G/UOOQO7+$o7+$oOOQO7+$w7+$wOOQOAN?zAN?z",stateData:"!'W~O$[OSkOS~OWQOXQOYQOZQO[QO]QO^QO_QO`QOaQObQOcQO!ZZO#u_O$XVO$YVO$]XO$``O$aaO$bbO$ccO$ddO$eeO$ffO$ggO$hhO$iiO$jjO$kkO$llO$mmO$nnO$ooO$ppO$qqO$rrO$ssO$ttO$uuO$vvO$wwO$xxO$yyO$zzO${{O$||O$}}O%O!OO%P!PO%Q!QO%R!RO%S!SO%T!TO%U!UO%V!VO%W!WO%X!XO%Y!YO%Z!ZO%[![O%]!]O%^!^O%_!_O%`!`O%a!aO%b!bO%c!cO%d!dO%e!eO%f!fO%g!gO%h!hO%i!iO%j!jO%k!kO%l!lO%m!mO%n!nO%o!oO%p!pO%q!qO%r!rO%s!sO%t!tO%wWO%xWO%yVO%{[O~O!ZZO~Od!vOe!vO$]!wO~OU#QOV!zOf!}Og#OOh!}Ox!zO{!zO|!zO}!zO!O!{O!P!{O!Q!|O!R!|O!S!|O!T!|O!U!|O!V!|O$T#RO%u#PO~O$X#TO$Y#TO%y#TOW#xXX#xXY#xXZ#xX[#xX]#xX^#xX_#xX`#xXa#xXb#xXc#xX!Z#xX#u#xX$X#xX$Y#xX$]#xX$`#xX$a#xX$b#xX$c#xX$d#xX$e#xX$f#xX$g#xX$h#xX$i#xX$j#xX$k#xX$l#xX$m#xX$n#xX$o#xX$p#xX$q#xX$r#xX$s#xX$t#xX$u#xX$v#xX$w#xX$x#xX$y#xX$z#xX${#xX$|#xX$}#xX%O#xX%P#xX%Q#xX%R#xX%S#xX%T#xX%U#xX%V#xX%W#xX%X#xX%Y#xX%Z#xX%[#xX%]#xX%^#xX%_#xX%`#xX%a#xX%b#xX%c#xX%d#xX%e#xX%f#xX%g#xX%h#xX%i#xX%j#xX%k#xX%l#xX%m#xX%n#xX%o#xX%p#xX%q#xX%r#xX%s#xX%t#xX%w#xX%x#xX%y#xX%{#xX~Ot#WO%|#ZO~O%{[OU#yXV#yXf#yXg#yXh#yXx#yX{#yX|#yX}#yX!O#yX!P#yX!Q#yX!R#yX!S#yX!T#yX!U#yX!V#yX$T#yX$W#yX%u#yX$_#yX$^#yX~O$]#]O~O$_#aO~PYOd!vOe!vOUnaVnafnagnahnaxna{na|na}na!Ona!Pna!Qna!Rna!Sna!Tna!Una!Vna$Tna$Wna%una$_na$^na~OP#eOQ#cOR#cOWyPXyPYyPZyP[yP]yP^yP_yP`yPayPbyPcyP!ZyP#uyP$XyP$YyP$]yP$`yP$ayP$byP$cyP$dyP$eyP$fyP$gyP$hyP$iyP$jyP$kyP$lyP$myP$nyP$oyP$pyP$qyP$ryP$syP$tyP$uyP$vyP$wyP$xyP$yyP$zyP${yP$|yP$}yP%OyP%PyP%QyP%RyP%SyP%TyP%UyP%VyP%WyP%XyP%YyP%ZyP%[yP%]yP%^yP%_yP%`yP%ayP%byP%cyP%dyP%eyP%fyP%gyP%hyP%iyP%jyP%kyP%lyP%myP%nyP%oyP%pyP%qyP%ryP%syP%tyP%wyP%xyP%yyP%{yP~O#q#kO~O!P#mO#q#lO~Oi#oOj#oO$XVO$YVO%w#nO%x#nO%yVO~O$_#rO~P'`Ox!zOU#waV#waf#wag#wah#wa{#wa|#wa}#wa!O#wa!P#wa!Q#wa!R#wa!S#wa!T#wa!U#wa!V#wa$T#wa$W#wa%u#wa$_#wa$^#wa~O!V#sO$P#sO$Q#sO$R#sO~O$^#uO%|#vO~Ot#wO$_#zO~O$^#{O$_#|O~O$^vX$_vX~P'`OWyXXyXYyXZyX[yX]yX^yX_yX`yXayXbyXcyX!ZyX#uyX$XyX$YyX$]yX$`yX$ayX$byX$cyX$dyX$eyX$fyX$gyX$hyX$iyX$jyX$kyX$lyX$myX$nyX$oyX$pyX$qyX$ryX$syX$tyX$uyX$vyX$wyX$xyX$yyX$zyX${yX$|yX$}yX%OyX%PyX%QyX%RyX%SyX%TyX%UyX%VyX%WyX%XyX%YyX%ZyX%[yX%]yX%^yX%_yX%`yX%ayX%byX%cyX%dyX%eyX%fyX%gyX%hyX%iyX%jyX%kyX%lyX%myX%nyX%oyX%pyX%qyX%ryX%syX%tyX%wyX%xyX%yyX%{yX~OS$OOT$OO~P;mOQ#cOR#cO~P;mO%v$VO%z$WO~O#q$XO~O$X#TO$Y#TO%y#TO~O$]$YO~O#u$ZO~Ot#WO%|$]O~O$^$^O$_$_O~OWyaXyaYyaZya[ya]ya^ya_ya`yaayabyacya!Zya#uya$Xya$Yya$`ya$aya$bya$cya$dya$eya$fya$gya$hya$iya$jya$kya$lya$mya$nya$oya$pya$qya$rya$sya$tya$uya$vya$wya$xya$yya$zya${ya$|ya$}ya%Oya%Pya%Qya%Rya%Sya%Tya%Uya%Vya%Wya%Xya%Yya%Zya%[ya%]ya%^ya%_ya%`ya%aya%bya%cya%dya%eya%fya%gya%hya%iya%jya%kya%lya%mya%nya%oya%pya%qya%rya%sya%tya%wya%xya%yya%{ya~O$]#]O~PB{OS$bOT$bO$]ya~PB{Ox!zOUwqfwqgwqhwq!Owq!Pwq!Qwq!Rwq!Swq!Twq!Uwq!Vwq$Twq$Wwq%uwq$_wq$^wq~OVwq{wq|wq}wq~PISOV!zO{!zO|!zO}!zO~PISOV!zOx!zO{!zO|!zO}!zO!O!{O!P!{OUwqfwqgwqhwq$Twq$Wwq%uwq$_wq$^wq~O!Qwq!Rwq!Swq!Twq!Uwq!Vwq~PKOO!Q!|O!R!|O!S!|O!T!|O!U!|O!V!|O~PKOOV!zOf!}Oh!}Ox!zO{!zO|!zO}!zO!O!{O!P!{O!Q!|O!R!|O!S!|O!T!|O!U!|O!V!|O~OUwqgwq$Twq$Wwq%uwq$_wq$^wq~PMQO#q$dO%v$cO~O$_$eO~Ot#wO$_$gO~O$^vi$_vi~P'`O$]#]OWyiXyiYyiZyi[yi]yi^yi_yi`yiayibyicyi!Zyi#uyi$Xyi$Yyi$`yi$ayi$byi$cyi$dyi$eyi$fyi$gyi$hyi$iyi$jyi$kyi$lyi$myi$nyi$oyi$pyi$qyi$ryi$syi$tyi$uyi$vyi$wyi$xyi$yyi$zyi${yi$|yi$}yi%Oyi%Pyi%Qyi%Ryi%Syi%Tyi%Uyi%Vyi%Wyi%Xyi%Yyi%Zyi%[yi%]yi%^yi%_yi%`yi%ayi%byi%cyi%dyi%eyi%fyi%gyi%hyi%iyi%jyi%kyi%lyi%myi%nyi%oyi%pyi%qyi%ryi%syi%tyi%wyi%xyi%yyi%{yi~O%v$iO~O",goto:"(v$VPPPPPPPPPPPPPPPPPPPPPPPPPPPPP$W$v%S%`%f%r%uP%{&U$vP&X&hPPPPPPPPPPP$v&r'OP'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O'O$vP'[$v$vP$v$v'k$v'w(W(g(j(pPPP$vP(sQSOQ#UXQ#VYQ#`!wQ$Q#fQ$R#gQ$S#hQ$T#iQ$U#jR$`#{e_OXY!w#f#g#h#i#j#{eROXY!w#f#g#h#i#j#{Q!xRR#b!yQ#^!vQ#}#cQ$a$OR$h$bR#x#]Q#y#]R$f$^Q!yRQ#SUR#b!xR#_!wQ#f!zQ#g!{Q#h!|Q#i!}R#j#OY#d!z!{!|!}#OR$P#eeUOXY!w#f#g#h#i#j#{eTOXY!w#f#g#h#i#j#{d_OXY!w#f#g#h#i#j#{R#p#ReYOXY!w#f#g#h#i#j#{d]OXY!w#f#g#h#i#j#{R!uPd^OXY!w#f#g#h#i#j#{R#[]R#X[Q#Y[R$[#uR#t#WR#q#R",nodeNames:"\u26A0 Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile Stddev Stdvar Sum Topk By Without And Or Unless Start End LineComment PromQL Expr AggregateExpr AggregateOp AggregateModifier GroupingLabels GroupingLabelList GroupingLabel LabelName FunctionCallBody FunctionCallArgs BinaryExpr Pow BinModifiers OnOrIgnoring Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramQuantile HoltWinters Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector Duration NumberLiteral OffsetExpr ParenExpr StringLiteral SubqueryExpr UnaryExpr UnaryOp VectorSelector MetricIdentifier LabelMatchers LabelMatchList LabelMatcher MatchOp EqlSingle EqlRegex NeqRegex StepInvariantExpr At AtModifierPreprocessors MetricName",maxTerm:228,propSources:[je],skippedNodes:[0,27],repeatNodeCount:0,tokenData:"1R~RwX^#lpq#lqr$ars$tst%huv%swx%xxy&gyz&lz{&q{|&v|}&}}!O'S!O!P'Z!P!Q(Z!Q!R(`!R![)W![!]-r!^!_.n!_!`.{!`!a/b!b!c/o!c!}/t!}#O0[#P#Q0a#Q#R0f#R#S/t#S#T0k#T#o/t#o#p0w#q#r0|#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~#qY$[~X^#lpq#l#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~$dQ!_!`$j#r#s$o~$oO!V~~$tO$R~~$yU#u~OY$tZr$trs%]s#O$t#O#P%b#P~$t~%bO#u~~%ePO~$t~%mQk~OY%hZ~%h~%xO}~~%}U#u~OY%xZw%xwx%]x#O%x#O#P&a#P~%x~&dPO~%x~&lO$]~~&qO$_~~&vO{~R&}O%xP!OQ~'SO$^~R'ZO%wP!PQP'^P!Q!['aP'fR%yP!Q!['a!g!h'o#X#Y'oP'rR{|'{}!O'{!Q![(RP(OP!Q![(RP(WP%yP!Q![(R~(`O|~R(eZ%yP!O!P'a!Q![)W!g!h'o#W#X){#X#Y'o#[#]*d#a#b*x#g#h+l#k#l+}#l#m-W#m#n,iR)]Y%yP!O!P'a!Q![)W!g!h'o#W#X){#X#Y'o#[#]*d#a#b*x#g#h+l#k#l+}#m#n,iQ*QP#qQ!Q![*TQ*WS!Q![*T#[#]*d#a#b*x#g#h+lQ*iP#qQ!Q![*lQ*oR!Q![*l#a#b*x#g#h+lQ*}Q#qQ!Q![+T#g#h+gQ+WR!Q![+T#a#b+a#g#h+lQ+dP#g#h+gQ+lO#qQQ+qP#qQ!Q![+tQ+wQ!Q![+t#a#b+aQ,SP#qQ!Q![,VQ,YT!Q![,V#W#X){#[#]*d#a#b*x#g#h+lQ,nP#qQ!Q![,qQ,tU!Q![,q#W#X){#[#]*d#a#b*x#g#h+l#k#l+}P-ZR!Q![-d!c!i-d#T#Z-dP-iR%yP!Q![-d!c!i-d#T#Z-dV-yT%zS!ZR!Q![.Y![!].Y!c!}.Y#R#S.Y#T#o.YR._T!ZR!Q![.Y![!].Y!c!}.Y#R#S.Y#T#o.Y~.sP!U~!_!`.v~.{O!T~~/QQ$PP!_!`/W#r#s/]Q/]O!QQ~/bO$Q~~/gP!S~!_!`/j~/oO!R~~/tO$T~V/{T!ZRtS!Q![/t![!].Y!c!}/t#R#S/t#T#o/t~0aO%u~~0fO%v~~0kOx~~0nRO#S0k#S#T%]#T~0k~0|O%{~~1RO%|~",tokenizers:[0,1,2],topRules:{PromQL:[0,28],MetricName:[1,145]},specialized:[{term:57,get:(Kr,ur)=>tt(Kr)<<1},{term:57,get:(Kr,ur)=>Oe(Kr)<<1|1},{term:57,get:Kr=>Et[Kr]||-1}],tokenPrec:0}),ut=147,Ne=148,mt=1,bt=2,Gt=3,hn=4,Yt=5,Bt=6,Lt=7,zt=8,Kt=9,vt=10,Ve=11,lt=12,at=13,Xt=14,rt=15,Rt=16,rn=17,sn=18,Jn=19,ze=20,st=21,en=22,wt=23,Ke=24,Ut=25,on=26,Tn=27,An=28,Zt=29,ot=30,We=31,Ft=32,it=33,qt=34,vn=35,fn=36,Tt=37,dn=38,mn=39,Kn=40,Dn=41,Vn=42,or=43,Qr=44,ni=45,yr=46,si=47,Yr=48,Ci=49,Ni=50,fa=51,ha=52,Ca=53,li=54,la=55,Oa=56,wa=57,vo=58,Qn=59,_r=60,$r=61,Ti=62,xt=63,On=64,Zn=65,Ur=66,En=67,ln=68,jn=69,rr=70,Mr=71,Ir=72,Zr=73,lr=74,Jr=75,pi=76,Ri=77,Ki=78,ia=79,Da=80,to=81,ao=82,Bo=83,jo=84,Jo=85,Go=86,wr=87,qi=88,ja=89,uo=90,wi=91,ai=92,za=93,Mt=94,Gn=95,qn=96,Fr=97,Ei=98,ii=99,Wi=100,Ya=101,qa=102,se=103,ye=104,Xe=105,yt=106,Wt=107,Qt=108,wn=109,fr=110,Or=111,Si=112,Fi=113,Bi=114,Ui=115,vi=116,Xa=117,Ko=118,So=119,Lo=120,us=121,Ee=122,Y=123,z=124,B=125,le=126,Le=127,Je=128,Ct=129,Vt=130,bn=131,Hn=132,br=133,ei=134,mi=135,Li=136,na=137,ji=138,$a=139,Ha=140,Eo=141,Uo=142,Ms=143,er=144,Ar=145},13168:(C,c,t)=>{"use strict";t.d(c,{U:()=>v});var i=t(87911),s=t(91546),u=t(2505);function v(h,p){let{elementType:d="button",isDisabled:f,onPress:g,onPressStart:y,onPressEnd:b,onPressChange:E,preventFocusOnPress:S,allowFocusWhenDisabled:w,onClick:x,href:P,target:R,rel:T,type:A="button"}=h,I;d==="button"?I={type:A,disabled:f}:I={role:"button",tabIndex:f?void 0:0,href:d==="a"&&f?void 0:P,target:d==="a"?R:void 0,type:d==="input"?A:void 0,disabled:d==="input"?f:void 0,"aria-disabled":!f||d==="input"?void 0:f,rel:d==="a"?T:void 0};let{pressProps:N,isPressed:K}=(0,u.r7)({onPressStart:y,onPressEnd:b,onPressChange:E,onPress:g,isDisabled:f,preventFocusOnPress:S,ref:p}),{focusableProps:_}=(0,s.kc)(h,p);w&&(_.tabIndex=f?-1:_.tabIndex);let W=(0,i.dG)(_,N,(0,i.zL)(h,{labelable:!0}));return{isPressed:K,buttonProps:(0,i.dG)(I,W,{"aria-haspopup":h["aria-haspopup"],"aria-expanded":h["aria-expanded"],"aria-controls":h["aria-controls"],"aria-pressed":h["aria-pressed"],onClick:j=>{x&&(x(j),console.warn("onClick is deprecated, please use onPress"))}})}}function l(h,p,d){const{isSelected:f}=p,{isPressed:g,buttonProps:y}=v({...h,onPress:$cE0pI$chain(p.toggle,h.onPress)},d);return{isPressed:g,buttonProps:$cE0pI$mergeProps(y,{"aria-pressed":f})}}},45809:(C,c,t)=>{"use strict";t.d(c,{R:()=>An});var i=t(87911),s=t(91546),u=t(27702),v=t(27473);function l(Zt){return Zt&&Zt.__esModule?Zt.default:Zt}const h={top:"top",bottom:"top",left:"left",right:"left"},p={top:"bottom",bottom:"top",left:"right",right:"left"},d={top:"left",left:"top"},f={top:"height",left:"width"},g={width:"totalWidth",height:"totalHeight"},y={};let b=typeof window<"u"&&window.visualViewport;function E(Zt){let ot=0,We=0,Ft=0,it=0,qt=0,vn=0,fn={};if(Zt.tagName==="BODY"){let mn=document.documentElement;Ft=mn.clientWidth,it=mn.clientHeight;var Tt;ot=(Tt=b?.width)!==null&&Tt!==void 0?Tt:Ft;var dn;We=(dn=b?.height)!==null&&dn!==void 0?dn:it,fn.top=mn.scrollTop||Zt.scrollTop,fn.left=mn.scrollLeft||Zt.scrollLeft}else({width:ot,height:We,top:qt,left:vn}=K(Zt)),fn.top=Zt.scrollTop,fn.left=Zt.scrollLeft,Ft=ot,it=We;return{width:ot,height:We,totalWidth:Ft,totalHeight:it,scroll:fn,top:qt,left:vn}}function S(Zt){return{top:Zt.scrollTop,left:Zt.scrollLeft,width:Zt.scrollWidth,height:Zt.scrollHeight}}function w(Zt,ot,We,Ft,it){let qt=Ft.scroll[Zt],vn=Ft[f[Zt]],fn=ot-it-qt,Tt=ot+it-qt+We;return fn<0?-fn:Tt>vn?Math.max(vn-Tt,-fn):0}function x(Zt){let ot=window.getComputedStyle(Zt);return{top:parseInt(ot.marginTop,10)||0,bottom:parseInt(ot.marginBottom,10)||0,left:parseInt(ot.marginLeft,10)||0,right:parseInt(ot.marginRight,10)||0}}function P(Zt){if(y[Zt])return y[Zt];let[ot,We]=Zt.split(" "),Ft=h[ot]||"right",it=d[Ft];h[We]||(We="center");let qt=f[Ft],vn=f[it];return y[Zt]={placement:ot,crossPlacement:We,axis:Ft,crossAxis:it,size:qt,crossSize:vn},y[Zt]}function R(Zt,ot,We,Ft,it,qt,vn,fn,Tt,dn){let{placement:mn,crossPlacement:Kn,axis:Dn,crossAxis:Vn,size:or,crossSize:Qr}=Ft,ni={};ni[Vn]=Zt[Vn],Kn==="center"?ni[Vn]+=(Zt[Qr]-We[Qr])/2:Kn!==Vn&&(ni[Vn]+=Zt[Qr]-We[Qr]),ni[Vn]+=qt;const yr=Zt[Vn]-We[Qr]+Tt+dn,si=Zt[Vn]+Zt[Qr]-Tt-dn;if(ni[Vn]=$k7QOs$clamp(ni[Vn],yr,si),mn===Dn){const Yr=fn?vn[or]:ot[g[or]];ni[p[Dn]]=Math.floor(Yr-Zt[Dn]+it)}else ni[Dn]=Math.floor(Zt[Dn]+Zt[or]+it);return ni}function T(Zt,ot,We,Ft,it,qt){return Zt.top!=null?Math.max(0,ot.height+ot.top+ot.scroll.top-(We.top+Zt.top)-(it.top+it.bottom+qt)):Math.max(0,Ft.top+We.top-(ot.top+ot.scroll.top)-(it.top+it.bottom+qt))}function A(Zt,ot,We,Ft,it,qt){let{placement:vn,axis:fn,size:Tt}=qt;return vn===fn?Math.max(0,We[fn]-Zt[fn]-Zt.scroll[fn]+ot[fn]-Ft[fn]-Ft[p[fn]]-it):Math.max(0,Zt[Tt]+Zt[fn]+Zt.scroll[fn]-ot[fn]-We[fn]-We[Tt]-Ft[fn]-Ft[p[fn]]-it)}function I(Zt,ot,We,Ft,it,qt,vn,fn,Tt,dn,mn,Kn,Dn,Vn,or){let Qr=P(Zt),{size:ni,crossAxis:yr,crossSize:si,placement:Yr,crossPlacement:Ci}=Qr,Ni=R(ot,fn,We,Qr,dn,mn,Tt,Kn,Vn,or),fa=dn,ha=A(fn,Tt,ot,it,qt+dn,Qr);if(vn&&Ft[ni]>ha){let Ti=P(`${p[Yr]} ${Ci}`),xt=R(ot,fn,We,Ti,dn,mn,Tt,Kn,Vn,or);A(fn,Tt,ot,it,qt+dn,Ti)>ha&&(Qr=Ti,Ni=xt,fa=dn)}let Ca=w(yr,Ni[yr],We[si],fn,qt);Ni[yr]+=Ca;let li=T(Ni,fn,Tt,ot,it,qt);Dn&&Dn<li&&(li=Dn),We.height=Math.min(We.height,li),Ni=R(ot,fn,We,Qr,fa,mn,Tt,Kn,Vn,or),Ca=w(yr,Ni[yr],We[si],fn,qt),Ni[yr]+=Ca;let la={},Oa=ot[yr]+.5*ot[si]-We[yr];const wa=Vn/2+or,vo=We[si]-Vn/2-or,Qn=ot[yr]-We[yr]+Vn/2,_r=ot[yr]+ot[si]-We[yr]-Vn/2,$r=$k7QOs$clamp(Oa,Qn,_r);return la[yr]=$k7QOs$clamp($r,wa,vo),{position:Ni,maxHeight:li,arrowOffsetLeft:la.left,arrowOffsetTop:la.top,placement:Qr.placement}}function N(Zt){let{placement:ot,targetNode:We,overlayNode:Ft,scrollNode:it,padding:qt,shouldFlip:vn,boundaryElement:fn,offset:Tt,crossOffset:dn,maxHeight:mn,arrowSize:Kn,arrowBoundaryOffset:Dn=0}=Zt,Vn=Ft instanceof HTMLElement?W(Ft):document.documentElement,or=Vn===document.documentElement;const Qr=window.getComputedStyle(Vn).position;let ni=!!Qr&&Qr!=="static",yr=or?K(We):_(We,Vn);if(!or){let{marginTop:ha,marginLeft:Ca}=window.getComputedStyle(We);yr.top+=parseInt(ha,10)||0,yr.left+=parseInt(Ca,10)||0}let si=K(Ft),Yr=x(Ft);si.width+=Yr.left+Yr.right,si.height+=Yr.top+Yr.bottom;let Ci=S(it),Ni=E(fn),fa=fn.tagName==="BODY"?K(Vn):_(Vn,fn);return I(ot,yr,si,Ci,Yr,qt,vn,Ni,fa,Tt,dn,ni,mn,Kn,Dn)}function K(Zt){let{top:ot,left:We,width:Ft,height:it}=Zt.getBoundingClientRect(),{scrollTop:qt,scrollLeft:vn,clientTop:fn,clientLeft:Tt}=document.documentElement;return{top:ot+qt-fn,left:We+vn-Tt,width:Ft,height:it}}function _(Zt,ot){let We=window.getComputedStyle(Zt),Ft;if(We.position==="fixed"){let{top:it,left:qt,width:vn,height:fn}=Zt.getBoundingClientRect();Ft={top:it,left:qt,width:vn,height:fn}}else{Ft=K(Zt);let it=K(ot),qt=window.getComputedStyle(ot);it.top+=(parseInt(qt.borderTopWidth,10)||0)-ot.scrollTop,it.left+=(parseInt(qt.borderLeftWidth,10)||0)-ot.scrollLeft,Ft.top-=it.top,Ft.left-=it.left}return Ft.top-=parseInt(We.marginTop,10)||0,Ft.left-=parseInt(We.marginLeft,10)||0,Ft}function W(Zt){let ot=Zt.offsetParent;if(ot&&ot===document.body&&window.getComputedStyle(ot).position==="static"&&!j(ot)&&(ot=document.documentElement),ot==null)for(ot=Zt.parentElement;ot&&!j(ot);)ot=ot.parentElement;return ot||document.documentElement}function j(Zt){let ot=window.getComputedStyle(Zt);return ot.transform!=="none"||/transform|perspective/.test(ot.willChange)||ot.filter!=="none"||ot.contain==="paint"||"backdropFilter"in ot&&ot.backdropFilter!=="none"||"WebkitBackdropFilter"in ot&&ot.WebkitBackdropFilter!=="none"}const re=new WeakMap;function X(Zt){let{triggerRef:ot,isOpen:We,onClose:Ft}=Zt;$k7QOs$useEffect(()=>{if(!We||Ft===null)return;let it=qt=>{let vn=qt.target;if(!ot.current||vn instanceof Node&&!vn.contains(ot.current))return;let fn=Ft||re.get(ot.current);fn&&fn()};return window.addEventListener("scroll",it,!0),()=>{window.removeEventListener("scroll",it,!0)}},[We,Ft,ot])}let Z=typeof window<"u"&&window.visualViewport;function J(Zt){let{direction:ot}=$k7QOs$useLocale(),{arrowSize:We=0,targetRef:Ft,overlayRef:it,scrollRef:qt=it,placement:vn="bottom",containerPadding:fn=12,shouldFlip:Tt=!0,boundaryElement:dn=typeof document<"u"?document.body:null,offset:mn=0,crossOffset:Kn=0,shouldUpdatePosition:Dn=!0,isOpen:Vn=!0,onClose:or,maxHeight:Qr,arrowBoundaryOffset:ni=0}=Zt,[yr,si]=$k7QOs$useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),Yr=[Dn,vn,it.current,Ft.current,qt.current,fn,Tt,dn,mn,Kn,Vn,ot,Qr,ni,We],Ci=$k7QOs$useCallback(()=>{if(Dn===!1||!Vn||!it.current||!Ft.current||!qt.current||!dn)return;let ha=N({placement:L(vn,ot),overlayNode:it.current,targetNode:Ft.current,scrollNode:qt.current,padding:fn,shouldFlip:Tt,boundaryElement:dn,offset:mn,crossOffset:Kn,maxHeight:Qr,arrowSize:We,arrowBoundaryOffset:ni});Object.keys(ha.position).forEach(Ca=>it.current.style[Ca]=ha.position[Ca]+"px"),it.current.style.maxHeight=ha.maxHeight!=null?ha.maxHeight+"px":void 0,si(ha)},Yr);$k7QOs$useLayoutEffect(Ci,Yr),q(Ci),$k7QOs$useResizeObserver({ref:it,onResize:Ci});let Ni=$k7QOs$useRef(!1);$k7QOs$useLayoutEffect(()=>{let ha,Ca=()=>{Ni.current=!0,clearTimeout(ha),ha=setTimeout(()=>{Ni.current=!1},500),Ci()};return Z?.addEventListener("resize",Ca),Z?.addEventListener("scroll",Ca),()=>{Z?.removeEventListener("resize",Ca),Z?.removeEventListener("scroll",Ca)}},[Ci]);let fa=$k7QOs$useCallback(()=>{Ni.current||or()},[or,Ni]);return X({triggerRef:Ft,isOpen:Vn,onClose:or&&fa}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...yr.position,maxHeight:yr.maxHeight}},placement:yr.placement,arrowProps:{style:{left:yr.arrowOffsetLeft,top:yr.arrowOffsetTop}},updatePosition:Ci}}function q(Zt){$k7QOs$useLayoutEffect(()=>(window.addEventListener("resize",Zt,!1),()=>{window.removeEventListener("resize",Zt,!1)}),[Zt])}function L(Zt,ot){return ot==="rtl"?Zt.replace("start","right").replace("end","left"):Zt.replace("start","left").replace("end","right")}const $=null;function k(Zt,ot){let{onClose:We,shouldCloseOnBlur:Ft,isOpen:it,isDismissable:qt=!1,isKeyboardDismissDisabled:vn=!1,shouldCloseOnInteractOutside:fn}=Zt;$k7QOs$useEffect(()=>(it&&$.push(ot),()=>{let or=$.indexOf(ot);or>=0&&$.splice(or,1)}),[it,ot]);let Tt=()=>{$[$.length-1]===ot&&We&&We()},dn=or=>{(!fn||fn(or.target))&&$[$.length-1]===ot&&(or.stopPropagation(),or.preventDefault())},mn=or=>{(!fn||fn(or.target))&&($[$.length-1]===ot&&(or.stopPropagation(),or.preventDefault()),Tt())},Kn=or=>{or.key==="Escape"&&!vn&&(or.stopPropagation(),or.preventDefault(),Tt())};$k7QOs$useInteractOutside({ref:ot,onInteractOutside:qt?mn:null,onInteractOutsideStart:dn});let{focusWithinProps:Dn}=$k7QOs$useFocusWithin({isDisabled:!Ft,onBlurWithin:or=>{or.relatedTarget&&$k7QOs$isElementInChildOfActiveScope(or.relatedTarget)||(!fn||fn(or.relatedTarget))&&We()}}),Vn=or=>{or.target===or.currentTarget&&or.preventDefault()};return{overlayProps:{onKeyDown:Kn,...Dn},underlayProps:{onPointerDown:Vn}}}function F(Zt,ot,We){let{type:Ft}=Zt,{isOpen:it}=ot;$k7QOs$useEffect(()=>{We&&We.current&&re.set(We.current,ot.close)});let qt;Ft==="menu"?qt=!0:Ft==="listbox"&&(qt="listbox");let vn=$k7QOs$useId();return{triggerProps:{"aria-haspopup":qt,"aria-expanded":it,"aria-controls":it?vn:null,onPress:ot.toggle},overlayProps:{id:vn}}}const V=typeof window<"u"&&window.visualViewport,pe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ce=0,G;function te(Zt={}){let{isDisabled:ot}=Zt;$k7QOs$useLayoutEffect(()=>{if(!ot)return ce++,ce===1&&($k7QOs$isIOS()?G=fe():G=ie()),()=>{ce--,ce===0&&G()}},[ot])}function ie(){return $k7QOs$chain(Se(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Se(document.documentElement,"overflow","hidden"))}function fe(){let Zt,ot=0,We=Kn=>{Zt=$k7QOs$getScrollParent(Kn.target),!(Zt===document.documentElement&&Zt===document.body)&&(ot=Kn.changedTouches[0].pageY)},Ft=Kn=>{if(!Zt||Zt===document.documentElement||Zt===document.body){Kn.preventDefault();return}let Dn=Kn.changedTouches[0].pageY,Vn=Zt.scrollTop,or=Zt.scrollHeight-Zt.clientHeight;or!==0&&((Vn<=0&&Dn>ot||Vn>=or&&Dn<ot)&&Kn.preventDefault(),ot=Dn)},it=Kn=>{let Dn=Kn.target;_e(Dn)&&Dn!==document.activeElement&&(Kn.preventDefault(),Dn.style.transform="translateY(-2000px)",Dn.focus(),requestAnimationFrame(()=>{Dn.style.transform=""}))},qt=Kn=>{let Dn=Kn.target;_e(Dn)&&(Dn.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{Dn.style.transform="",V&&(V.height<window.innerHeight?requestAnimationFrame(()=>{me(Dn)}):V.addEventListener("resize",()=>me(Dn),{once:!0}))}))},vn=()=>{window.scrollTo(0,0)},fn=window.pageXOffset,Tt=window.pageYOffset,dn=$k7QOs$chain(Se(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Se(document.documentElement,"overflow","hidden"),Se(document.body,"marginTop",`-${Tt}px`));window.scrollTo(0,0);let mn=$k7QOs$chain(he(document,"touchstart",We,{passive:!1,capture:!0}),he(document,"touchmove",Ft,{passive:!1,capture:!0}),he(document,"touchend",it,{passive:!1,capture:!0}),he(document,"focus",qt,!0),he(window,"scroll",vn));return()=>{dn(),mn(),window.scrollTo(fn,Tt)}}function Se(Zt,ot,We){let Ft=Zt.style[ot];return Zt.style[ot]=We,()=>{Zt.style[ot]=Ft}}function he(Zt,ot,We,Ft){return Zt.addEventListener(ot,We,Ft),()=>{Zt.removeEventListener(ot,We,Ft)}}function me(Zt){let ot=document.scrollingElement||document.documentElement;for(;Zt&&Zt!==ot;){let We=$k7QOs$getScrollParent(Zt);if(We!==document.documentElement&&We!==document.body&&We!==Zt){let Ft=We.getBoundingClientRect().top,it=Zt.getBoundingClientRect().top;it>Ft+Zt.clientHeight&&(We.scrollTop+=it-Ft)}Zt=We.parentElement}}function _e(Zt){return Zt instanceof HTMLInputElement&&!pe.has(Zt.type)||Zt instanceof HTMLTextAreaElement||Zt instanceof HTMLElement&&Zt.isContentEditable}const we=null;function Ge(Zt){let{children:ot}=Zt,We=$k7QOs$useContext(we),[Ft,it]=$k7QOs$useState(0),qt=$k7QOs$useMemo(()=>({parent:We,modalCount:Ft,addModal(){it(vn=>vn+1),We&&We.addModal()},removeModal(){it(vn=>vn-1),We&&We.removeModal()}}),[We,Ft]);return $k7QOs$react.createElement(we.Provider,{value:qt},ot)}function ht(){let Zt=$k7QOs$useContext(we);return{modalProviderProps:{"aria-hidden":Zt&&Zt.modalCount>0?!0:null}}}function nt(Zt){let{modalProviderProps:ot}=ht();return $k7QOs$react.createElement("div",{"data-overlay-container":!0,...Zt,...ot})}function Re(Zt){return $k7QOs$react.createElement(Ge,null,$k7QOs$react.createElement(nt,Zt))}function ue(Zt){let ot=$k7QOs$useIsSSR(),{portalContainer:We=ot?null:document.body,...Ft}=Zt;if($k7QOs$react.useEffect(()=>{if(We?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[We]),!We)return null;let it=$k7QOs$react.createElement(Re,Ft);return $k7QOs$reactdom.createPortal(it,We)}function ae(Zt){let ot=$k7QOs$useContext(we);if(!ot)throw new Error("Modal is not contained within a provider");return $k7QOs$useEffect(()=>{if(!(Zt?.isDisabled||!ot||!ot.parent))return ot.parent.addModal(),()=>{ot&&ot.parent&&ot.parent.removeModal()}},[ot,ot.parent,Zt?.isDisabled]),{modalProps:{"data-ismodal":!Zt?.isDisabled}}}var ve={},Me={};Me={dismiss:"\u062A\u062C\u0627\u0647\u0644"};var Ye={};Ye={dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"};var qe={};qe={dismiss:"Odstranit"};var At={};At={dismiss:"Luk"};var It={};It={dismiss:"Schlie\xDFen"};var Ce={};Ce={dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"};var Ae={};Ae={dismiss:"Dismiss"};var $e={};$e={dismiss:"Descartar"};var tt={};tt={dismiss:"L\xF5peta"};var ke={};ke={dismiss:"Hylk\xE4\xE4"};var Oe={};Oe={dismiss:"Rejeter"};var je={};je={dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"};var Et={};Et={dismiss:"Odbaci"};var ct={};ct={dismiss:"Elutas\xEDt\xE1s"};var ut={};ut={dismiss:"Ignora"};var Ne={};Ne={dismiss:"\u9589\u3058\u308B"};var mt={};mt={dismiss:"\uBB34\uC2DC"};var bt={};bt={dismiss:"Atmesti"};var Gt={};Gt={dismiss:"Ner\u0101d\u012Bt"};var hn={};hn={dismiss:"Lukk"};var Yt={};Yt={dismiss:"Negeren"};var Bt={};Bt={dismiss:"Zignoruj"};var Lt={};Lt={dismiss:"Descartar"};var zt={};zt={dismiss:"Dispensar"};var Kt={};Kt={dismiss:"Revocare"};var vt={};vt={dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"};var Ve={};Ve={dismiss:"Zru\u0161i\u0165"};var lt={};lt={dismiss:"Opusti"};var at={};at={dismiss:"Odbaci"};var Xt={};Xt={dismiss:"Avvisa"};var rt={};rt={dismiss:"Kapat"};var Rt={};Rt={dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"};var rn={};rn={dismiss:"\u53D6\u6D88"};var sn={};sn={dismiss:"\u95DC\u9589"},ve={"ar-AE":Me,"bg-BG":Ye,"cs-CZ":qe,"da-DK":At,"de-DE":It,"el-GR":Ce,"en-US":Ae,"es-ES":$e,"et-EE":tt,"fi-FI":ke,"fr-FR":Oe,"he-IL":je,"hr-HR":Et,"hu-HU":ct,"it-IT":ut,"ja-JP":Ne,"ko-KR":mt,"lt-LT":bt,"lv-LV":Gt,"nb-NO":hn,"nl-NL":Yt,"pl-PL":Bt,"pt-BR":Lt,"pt-PT":zt,"ro-RO":Kt,"ru-RU":vt,"sk-SK":Ve,"sl-SI":lt,"sr-SP":at,"sv-SE":Xt,"tr-TR":rt,"uk-UA":Rt,"zh-CN":rn,"zh-TW":sn};function Jn(Zt){let{onDismiss:ot,...We}=Zt,Ft=$k7QOs$useLocalizedStringFormatter(l(ve)),it=$k7QOs$useLabels(We,Ft.format("dismiss")),qt=()=>{ot&&ot()};return $k7QOs$react.createElement($k7QOs$VisuallyHidden,null,$k7QOs$react.createElement("button",{...it,tabIndex:-1,onClick:qt}))}let ze=new WeakMap,st=null;function en(Zt,ot=document.body){let We=new Set(Zt),Ft=new Set,it=Tt=>{for(let Dn of Tt.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))We.add(Dn);let dn=Dn=>{if(We.has(Dn)||Ft.has(Dn.parentElement)&&Dn.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let Vn of We)if(Dn.contains(Vn))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},mn=document.createTreeWalker(Tt,NodeFilter.SHOW_ELEMENT,{acceptNode:dn}),Kn=dn(Tt);if(Kn===NodeFilter.FILTER_ACCEPT&&qt(Tt),Kn!==NodeFilter.FILTER_REJECT){let Dn=mn.nextNode();for(;Dn!=null;)qt(Dn),Dn=mn.nextNode()}},qt=Tt=>{var dn;let mn=(dn=ze.get(Tt))!==null&&dn!==void 0?dn:0;Tt.getAttribute("aria-hidden")==="true"&&mn===0||(mn===0&&Tt.setAttribute("aria-hidden","true"),Ft.add(Tt),ze.set(Tt,mn+1))};st.length&&st[st.length-1].disconnect(),it(ot);let vn=new MutationObserver(Tt=>{for(let dn of Tt)if(!(dn.type!=="childList"||dn.addedNodes.length===0)&&![...We,...Ft].some(mn=>mn.contains(dn.target))){for(let mn of dn.removedNodes)mn instanceof Element&&(We.delete(mn),Ft.delete(mn));for(let mn of dn.addedNodes)(mn instanceof HTMLElement||mn instanceof SVGElement)&&(mn.dataset.liveAnnouncer==="true"||mn.dataset.reactAriaTopLayer==="true")?We.add(mn):mn instanceof Element&&it(mn)}});vn.observe(ot,{childList:!0,subtree:!0});let fn={observe(){vn.observe(ot,{childList:!0,subtree:!0})},disconnect(){vn.disconnect()}};return st.push(fn),()=>{vn.disconnect();for(let Tt of Ft){let dn=ze.get(Tt);dn===1?(Tt.removeAttribute("aria-hidden"),ze.delete(Tt)):ze.set(Tt,dn-1)}fn===st[st.length-1]?(st.pop(),st.length&&st[st.length-1].observe()):st.splice(st.indexOf(fn),1)}}function wt(Zt,ot){let{triggerRef:We,popoverRef:Ft,isNonModal:it,isKeyboardDismissDisabled:qt,...vn}=Zt,{overlayProps:fn,underlayProps:Tt}=k({isOpen:ot.isOpen,onClose:ot.close,shouldCloseOnBlur:!0,isDismissable:!it,isKeyboardDismissDisabled:qt},Ft),{overlayProps:dn,arrowProps:mn,placement:Kn}=J({...vn,targetRef:We,overlayRef:Ft,isOpen:ot.isOpen,onClose:null});return te({isDisabled:it}),$k7QOs$useLayoutEffect(()=>{if(ot.isOpen&&!it&&Ft.current)return en([Ft.current])},[it,ot.isOpen,Ft]),{popoverProps:$k7QOs$mergeProps(fn,dn),arrowProps:mn,underlayProps:Tt,placement:Kn}}const Ke=u.createContext(null);function Ut(Zt){let ot=$k7QOs$useIsSSR(),{portalContainer:We=ot?null:document.body}=Zt,[Ft,it]=$k7QOs$useState(!1),qt=$k7QOs$useMemo(()=>({contain:Ft,setContain:it}),[Ft,it]);if(!We)return null;let vn;return Zt.disableFocusManagement?vn=$k7QOs$react.createElement(Ke.Provider,{value:qt},Zt.children):vn=$k7QOs$react.createElement(Ke.Provider,{value:qt},$k7QOs$react.createElement($k7QOs$FocusScope,{restoreFocus:!0,contain:Ft},Zt.children)),$k7QOs$reactdom.createPortal(vn,We)}function on(){let Zt=(0,u.useContext)(Ke),ot=Zt?.setContain;(0,i.bt)(()=>{ot?.(!0)},[ot])}function Tn(Zt,ot,We){let{overlayProps:Ft,underlayProps:it}=k({...Zt,isOpen:ot.isOpen,onClose:ot.close},We);return te({isDisabled:!ot.isOpen}),on(),$k7QOs$useEffect(()=>{if(ot.isOpen)return en([We.current])},[ot.isOpen,We]),{modalProps:$k7QOs$mergeProps(Ft),underlayProps:it}}function An(Zt,ot){let{role:We="dialog"}=Zt,Ft=(0,i.mp)();Ft=Zt["aria-label"]?void 0:Ft;let it=(0,u.useRef)(!1);return(0,u.useEffect)(()=>{if(ot.current&&!ot.current.contains(document.activeElement)){(0,s.ex)(ot.current);let qt=setTimeout(()=>{document.activeElement===ot.current&&(it.current=!0,ot.current.blur(),(0,s.ex)(ot.current),it.current=!1)},500);return()=>{clearTimeout(qt)}}},[ot]),on(),{dialogProps:{...(0,i.zL)(Zt,{labelable:!0}),role:We,tabIndex:-1,"aria-labelledby":Zt["aria-labelledby"]||Ft,onBlur:qt=>{it.current&&qt.stopPropagation()}},titleProps:{id:Ft}}}},91546:(C,c,t)=>{"use strict";t.d(c,{Fx:()=>V,MT:()=>g,cW:()=>N,ex:()=>v,kc:()=>fe});var i=t(27702),s=t(87911),u=t(2505);function v(he){if((0,u.Jz)()==="virtual"){let me=document.activeElement;(0,s.QB)(()=>{document.activeElement===me&&document.contains(he)&&(0,s.Ao)(he)})}else(0,s.Ao)(he)}function l(he){if(!(he instanceof HTMLElement)&&!(he instanceof SVGElement))return!1;let{display:me,visibility:_e}=he.style,we=me!=="none"&&_e!=="hidden"&&_e!=="collapse";if(we){const{getComputedStyle:Ge}=he.ownerDocument.defaultView;let{display:ht,visibility:nt}=Ge(he);we=ht!=="none"&&nt!=="hidden"&&nt!=="collapse"}return we}function h(he,me){return!he.hasAttribute("hidden")&&(he.nodeName==="DETAILS"&&me&&me.nodeName!=="SUMMARY"?he.hasAttribute("open"):!0)}function p(he,me){return he.nodeName!=="#comment"&&l(he)&&h(he,me)&&(!he.parentElement||p(he.parentElement,he))}const d=i.createContext(null);let f=null;function g(he){let{children:me,contain:_e,restoreFocus:we,autoFocus:Ge}=he,ht=(0,i.useRef)(),nt=(0,i.useRef)(),Re=(0,i.useRef)([]),{parentNode:ue}=(0,i.useContext)(d)||{},ae=(0,i.useMemo)(()=>new k({scopeRef:Re}),[Re]);(0,s.bt)(()=>{let Ye=ue||F.root;if(F.getTreeNode(Ye.scopeRef)&&f&&!K(f,Ye.scopeRef)){let qe=F.getTreeNode(f);qe&&(Ye=qe)}Ye.addChild(ae),F.addNode(ae)},[ae,ue]),(0,s.bt)(()=>{let Ye=F.getTreeNode(Re);Ye.contain=_e},[_e]),(0,s.bt)(()=>{let Ye=ht.current.nextSibling,qe=[];for(;Ye&&Ye!==nt.current;)qe.push(Ye),Ye=Ye.nextSibling;Re.current=qe},[me]),re(Re,we,_e),R(Re,_e),Z(Re,we,_e),j(Re,Ge),(0,i.useEffect)(()=>{if(Re){let Ye=document.activeElement,qe=null;if(A(Ye,Re.current)){for(let At of F.traverse())A(Ye,At.scopeRef.current)&&(qe=At);qe===F.getTreeNode(Re)&&(f=qe.scopeRef)}return()=>{let At=F.getTreeNode(Re).parent.scopeRef;(Re===f||K(Re,f))&&(!At||F.getTreeNode(At))&&(f=At),F.removeTreeNode(Re)}}},[Re]);let ve=(0,i.useMemo)(()=>b(Re),[]),Me=(0,i.useMemo)(()=>({focusManager:ve,parentNode:ae}),[ae,ve]);return i.createElement(d.Provider,{value:Me},i.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:ht}),me,i.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:nt}))}function y(){var he;return(he=$6nfFC$useContext(d))===null||he===void 0?void 0:he.focusManager}function b(he){return{focusNext(me={}){let _e=he.current,{from:we,tabbable:Ge,wrap:ht,accept:nt}=me,Re=we||document.activeElement,ue=_e[0].previousElementSibling,ae=J(x(_e),{tabbable:Ge,accept:nt},_e);ae.currentNode=A(Re,_e)?Re:ue;let ve=ae.nextNode();return!ve&&ht&&(ae.currentNode=ue,ve=ae.nextNode()),ve&&_(ve,!0),ve},focusPrevious(me={}){let _e=he.current,{from:we,tabbable:Ge,wrap:ht,accept:nt}=me,Re=we||document.activeElement,ue=_e[_e.length-1].nextElementSibling,ae=J(x(_e),{tabbable:Ge,accept:nt},_e);ae.currentNode=A(Re,_e)?Re:ue;let ve=ae.previousNode();return!ve&&ht&&(ae.currentNode=ue,ve=ae.previousNode()),ve&&_(ve,!0),ve},focusFirst(me={}){let _e=he.current,{tabbable:we,accept:Ge}=me,ht=J(x(_e),{tabbable:we,accept:Ge},_e);ht.currentNode=_e[0].previousElementSibling;let nt=ht.nextNode();return nt&&_(nt,!0),nt},focusLast(me={}){let _e=he.current,{tabbable:we,accept:Ge}=me,ht=J(x(_e),{tabbable:we,accept:Ge},_e);ht.currentNode=_e[_e.length-1].nextElementSibling;let nt=ht.previousNode();return nt&&_(nt,!0),nt}}}const E=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],S=E.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";E.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const w=E.join(':not([hidden]):not([tabindex="-1"]),');function x(he){return he[0].parentElement}function P(he){let me=F.getTreeNode(f);for(;me&&me.scopeRef!==he;){if(me.contain)return!1;me=me.parent}return!0}function R(he,me){let _e=(0,i.useRef)(),we=(0,i.useRef)(null);(0,s.bt)(()=>{let Ge=he.current;if(!me){we.current&&(cancelAnimationFrame(we.current),we.current=null);return}let ht=ue=>{if(ue.key!=="Tab"||ue.altKey||ue.ctrlKey||ue.metaKey||!P(he))return;let ae=document.activeElement,ve=he.current;if(!A(ae,ve))return;let Me=J(x(ve),{tabbable:!0},ve);Me.currentNode=ae;let Ye=ue.shiftKey?Me.previousNode():Me.nextNode();Ye||(Me.currentNode=ue.shiftKey?ve[ve.length-1].nextElementSibling:ve[0].previousElementSibling,Ye=ue.shiftKey?Me.previousNode():Me.nextNode()),ue.preventDefault(),Ye&&_(Ye,!0)},nt=ue=>{(!f||K(f,he))&&A(ue.target,he.current)?(f=he,_e.current=ue.target):P(he)&&!I(ue.target,he)?_e.current?_e.current.focus():f&&W(f.current):P(he)&&(_e.current=ue.target)},Re=ue=>{we.current&&cancelAnimationFrame(we.current),we.current=requestAnimationFrame(()=>{P(he)&&!I(document.activeElement,he)&&(f=he,document.body.contains(ue.target)?(_e.current=ue.target,_e.current.focus()):f&&W(f.current))})};return document.addEventListener("keydown",ht,!1),document.addEventListener("focusin",nt,!1),Ge.forEach(ue=>ue.addEventListener("focusin",nt,!1)),Ge.forEach(ue=>ue.addEventListener("focusout",Re,!1)),()=>{document.removeEventListener("keydown",ht,!1),document.removeEventListener("focusin",nt,!1),Ge.forEach(ue=>ue.removeEventListener("focusin",nt,!1)),Ge.forEach(ue=>ue.removeEventListener("focusout",Re,!1))}},[he,me]),(0,s.bt)(()=>()=>{we.current&&cancelAnimationFrame(we.current)},[we])}function T(he){return I(he)}function A(he,me){return me.some(_e=>_e.contains(he))}function I(he,me=null){if(he instanceof Element&&he.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:_e}of F.traverse(F.getTreeNode(me)))if(A(he,_e.current))return!0;return!1}function N(he){return I(he,f)}function K(he,me){var _e;let we=(_e=F.getTreeNode(me))===null||_e===void 0?void 0:_e.parent;for(;we;){if(we.scopeRef===he)return!0;we=we.parent}return!1}function _(he,me=!1){if(he!=null&&!me)try{v(he)}catch{}else if(he!=null)try{he.focus()}catch{}}function W(he,me=!0){let _e=he[0].previousElementSibling,we=J(x(he),{tabbable:me},he);we.currentNode=_e;let Ge=we.nextNode();me&&!Ge&&(we=J(x(he),{tabbable:!1},he),we.currentNode=_e,Ge=we.nextNode()),_(Ge)}function j(he,me){const _e=i.useRef(me);(0,i.useEffect)(()=>{_e.current&&(f=he,A(document.activeElement,f.current)||W(he.current)),_e.current=!1},[he])}function re(he,me,_e){(0,s.bt)(()=>{if(me||_e)return;let we=he.current,Ge=ht=>{let nt=ht.target;A(nt,he.current)?f=he:T(nt)||(f=null)};return document.addEventListener("focusin",Ge,!1),we.forEach(ht=>ht.addEventListener("focusin",Ge,!1)),()=>{document.removeEventListener("focusin",Ge,!1),we.forEach(ht=>ht.removeEventListener("focusin",Ge,!1))}},[he,me,_e])}function X(he){let me=F.getTreeNode(f);for(;me&&me.scopeRef!==he;){if(me.nodeToRestore)return!1;me=me.parent}return me?.scopeRef===he}function Z(he,me,_e){const we=(0,i.useRef)(typeof document<"u"?document.activeElement:null);(0,s.bt)(()=>{let Ge=he.current;if(!me||_e)return;let ht=()=>{(!f||K(f,he))&&A(document.activeElement,he.current)&&(f=he)};return document.addEventListener("focusin",ht,!1),Ge.forEach(nt=>nt.addEventListener("focusin",ht,!1)),()=>{document.removeEventListener("focusin",ht,!1),Ge.forEach(nt=>nt.removeEventListener("focusin",ht,!1))}},[he,_e]),(0,s.bt)(()=>{if(!me)return;F.getTreeNode(he).nodeToRestore=we.current;let Ge=ht=>{if(ht.key!=="Tab"||ht.altKey||ht.ctrlKey||ht.metaKey||!P(he))return;let nt=document.activeElement;if(!A(nt,he.current))return;let Re=F.getTreeNode(he).nodeToRestore,ue=J(document.body,{tabbable:!0});ue.currentNode=nt;let ae=ht.shiftKey?ue.previousNode():ue.nextNode();if((!document.body.contains(Re)||Re===document.body)&&(Re=null,F.getTreeNode(he).nodeToRestore=null),(!ae||!A(ae,he.current))&&Re){ue.currentNode=Re;do ae=ht.shiftKey?ue.previousNode():ue.nextNode();while(A(ae,he.current));ht.preventDefault(),ht.stopPropagation(),ae?_(ae,!0):T(Re)?_(Re,!0):nt.blur()}};return _e||document.addEventListener("keydown",Ge,!0),()=>{_e||document.removeEventListener("keydown",Ge,!0);let ht=F.getTreeNode(he).nodeToRestore;if(me&&ht&&(A(document.activeElement,he.current)||document.activeElement===document.body&&X(he))){let nt=F.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let Re=nt.getTreeNode(he);for(;Re;){if(Re.nodeToRestore&&document.body.contains(Re.nodeToRestore)){_(Re.nodeToRestore);return}Re=Re.parent}for(Re=nt.getTreeNode(he);Re;){if(Re.scopeRef&&F.getTreeNode(Re.scopeRef)){W(Re.scopeRef.current,!0);return}Re=Re.parent}}})}}},[he,me,_e])}function J(he,me,_e){let we=me?.tabbable?w:S,Ge=document.createTreeWalker(he,NodeFilter.SHOW_ELEMENT,{acceptNode(ht){var nt;return!(me==null||(nt=me.from)===null||nt===void 0)&&nt.contains(ht)?NodeFilter.FILTER_REJECT:ht.matches(we)&&p(ht)&&(!_e||A(ht,_e))&&(!me?.accept||me.accept(ht))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return me?.from&&(Ge.currentNode=me.from),Ge}function q(he,me={}){return{focusNext(_e={}){let we=he.current;if(!we)return;let{from:Ge,tabbable:ht=me.tabbable,wrap:nt=me.wrap,accept:Re=me.accept}=_e,ue=Ge||document.activeElement,ae=J(we,{tabbable:ht,accept:Re});we.contains(ue)&&(ae.currentNode=ue);let ve=ae.nextNode();return!ve&&nt&&(ae.currentNode=we,ve=ae.nextNode()),ve&&_(ve,!0),ve},focusPrevious(_e=me){let we=he.current;if(!we)return;let{from:Ge,tabbable:ht=me.tabbable,wrap:nt=me.wrap,accept:Re=me.accept}=_e,ue=Ge||document.activeElement,ae=J(we,{tabbable:ht,accept:Re});if(we.contains(ue))ae.currentNode=ue;else{let Me=L(ae);return Me&&_(Me,!0),Me}let ve=ae.previousNode();return!ve&&nt&&(ae.currentNode=we,ve=L(ae)),ve&&_(ve,!0),ve},focusFirst(_e=me){let we=he.current;if(!we)return;let{tabbable:Ge=me.tabbable,accept:ht=me.accept}=_e,Re=J(we,{tabbable:Ge,accept:ht}).nextNode();return Re&&_(Re,!0),Re},focusLast(_e=me){let we=he.current;if(!we)return;let{tabbable:Ge=me.tabbable,accept:ht=me.accept}=_e,nt=J(we,{tabbable:Ge,accept:ht}),Re=L(nt);return Re&&_(Re,!0),Re}}}function L(he){let me,_e;do _e=he.lastChild(),_e&&(me=_e);while(_e);return me}class ${get size(){return this.fastMap.size}getTreeNode(me){return this.fastMap.get(me)}addTreeNode(me,_e,we){let Ge=this.fastMap.get(_e??null),ht=new k({scopeRef:me});Ge.addChild(ht),ht.parent=Ge,this.fastMap.set(me,ht),we&&(ht.nodeToRestore=we)}addNode(me){this.fastMap.set(me.scopeRef,me)}removeTreeNode(me){if(me===null)return;let _e=this.fastMap.get(me),we=_e.parent;for(let ht of this.traverse())ht!==_e&&_e.nodeToRestore&&ht.nodeToRestore&&_e.scopeRef.current&&A(ht.nodeToRestore,_e.scopeRef.current)&&(ht.nodeToRestore=_e.nodeToRestore);let Ge=_e.children;we.removeChild(_e),Ge.size>0&&Ge.forEach(ht=>we.addChild(ht)),this.fastMap.delete(_e.scopeRef)}*traverse(me=this.root){if(me.scopeRef!=null&&(yield me),me.children.size>0)for(let _e of me.children)yield*this.traverse(_e)}clone(){let me=new $;for(let _e of this.traverse())me.addTreeNode(_e.scopeRef,_e.parent.scopeRef,_e.nodeToRestore);return me}constructor(){this.fastMap=new Map,this.root=new k({scopeRef:null}),this.fastMap.set(null,this.root)}}class k{addChild(me){this.children.add(me),me.parent=this}removeChild(me){this.children.delete(me),me.parent=void 0}constructor(me){this.children=new Set,this.contain=!1,this.scopeRef=me.scopeRef}}let F=new $;function V(he={}){let{autoFocus:me=!1,isTextInput:_e,within:we}=he,Ge=(0,i.useRef)({isFocused:!1,isFocusVisible:me||(0,u.E)()}),[ht,nt]=(0,i.useState)(!1),[Re,ue]=(0,i.useState)(()=>Ge.current.isFocused&&Ge.current.isFocusVisible),ae=(0,i.useCallback)(()=>ue(Ge.current.isFocused&&Ge.current.isFocusVisible),[]),ve=(0,i.useCallback)(qe=>{Ge.current.isFocused=qe,nt(qe),ae()},[ae]);(0,u.mG)(qe=>{Ge.current.isFocusVisible=qe,ae()},[],{isTextInput:_e});let{focusProps:Me}=(0,u.KK)({isDisabled:we,onFocusChange:ve}),{focusWithinProps:Ye}=(0,u.L_)({isDisabled:!we,onFocusWithinChange:ve});return{isFocused:ht,isFocusVisible:Re,focusProps:we?Ye:Me}}function pe(he){let{children:me,focusClass:_e,focusRingClass:we}=he,{isFocused:Ge,isFocusVisible:ht,focusProps:nt}=V(he),Re=$6nfFC$react.Children.only(me);return $6nfFC$react.cloneElement(Re,$6nfFC$mergeProps(Re.props,{...nt,className:$6nfFC$clsx({[_e||""]:Ge,[we||""]:ht})}))}let ce=i.createContext(null);function G(he){let me=(0,i.useContext)(ce)||{};(0,s.lE)(me,he);let{ref:_e,...we}=me;return we}function te(he,me){let{children:_e,...we}=he,Ge={...we,ref:me};return $6nfFC$react.createElement(ce.Provider,{value:Ge},_e)}let ie=null;function fe(he,me){let{focusProps:_e}=(0,u.KK)(he),{keyboardProps:we}=(0,u.v5)(he),Ge=(0,s.dG)(_e,we),ht=G(me),nt=he.isDisabled?{}:ht,Re=(0,i.useRef)(he.autoFocus);return(0,i.useEffect)(()=>{Re.current&&me.current&&v(me.current),Re.current=!1},[me]),{focusableProps:(0,s.dG)({...Ge,tabIndex:he.excludeFromTabOrder&&!he.isDisabled?-1:void 0},nt)}}function Se(he,me){let _e=me?.isDisabled,[we,Ge]=$6nfFC$useState(!1);return $6nfFC$useLayoutEffect(()=>{if(he?.current&&!_e){let ht=()=>{if(he.current){let Re=J(he.current,{tabbable:!0});Ge(!!Re.nextNode())}};ht();let nt=new MutationObserver(ht);return nt.observe(he.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{nt.disconnect()}}}),_e?!1:we}},2505:(C,c,t)=>{"use strict";t.d(c,{E:()=>fe,Fc:()=>Ye,Jz:()=>Se,KK:()=>re,L_:()=>ht,TA:()=>tt,mG:()=>Ge,r7:()=>g,v5:()=>It});var i=t(87911),s=t(27702);let u="default",v="",l=new WeakMap;function h(ke){(0,i.gn)()?(u==="default"&&(v=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),u="disabled"):(ke instanceof HTMLElement||ke instanceof SVGElement)&&(l.set(ke,ke.style.userSelect),ke.style.userSelect="none")}function p(ke){if((0,i.gn)()){if(u!=="disabled")return;u="restoring",setTimeout(()=>{(0,i.QB)(()=>{u==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=v||""),v="",u="default")})},300)}else if((ke instanceof HTMLElement||ke instanceof SVGElement)&&ke&&l.has(ke)){let Oe=l.get(ke);ke.style.userSelect==="none"&&(ke.style.userSelect=Oe),ke.getAttribute("style")===""&&ke.removeAttribute("style"),l.delete(ke)}}const d=s.createContext(null);d.displayName="PressResponderContext";function f(ke){let Oe=(0,s.useContext)(d);if(Oe){let{register:je,...Et}=Oe;ke=(0,i.dG)(Et,ke),je()}return(0,i.lE)(Oe,ke.ref),ke}function g(ke){let{onPress:Oe,onPressChange:je,onPressStart:Et,onPressEnd:ct,onPressUp:ut,isDisabled:Ne,isPressed:mt,preventFocusOnPress:bt,shouldCancelOnPointerExit:Gt,allowTextSelectionOnPress:hn,ref:Yt,...Bt}=f(ke),[Lt,zt]=(0,s.useState)(!1),Kt=(0,s.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:vt,removeAllGlobalListeners:Ve}=(0,i.xi)(),lt=(0,i.iW)((sn,Jn)=>{let ze=Kt.current;Ne||ze.didFirePressStart||(Et&&Et({type:"pressstart",pointerType:Jn,target:sn.currentTarget,shiftKey:sn.shiftKey,metaKey:sn.metaKey,ctrlKey:sn.ctrlKey,altKey:sn.altKey}),je&&je(!0),ze.didFirePressStart=!0,zt(!0))}),at=(0,i.iW)((sn,Jn,ze=!0)=>{let st=Kt.current;st.didFirePressStart&&(st.ignoreClickAfterPress=!0,st.didFirePressStart=!1,ct&&ct({type:"pressend",pointerType:Jn,target:sn.currentTarget,shiftKey:sn.shiftKey,metaKey:sn.metaKey,ctrlKey:sn.ctrlKey,altKey:sn.altKey}),je&&je(!1),zt(!1),Oe&&ze&&!Ne&&Oe({type:"press",pointerType:Jn,target:sn.currentTarget,shiftKey:sn.shiftKey,metaKey:sn.metaKey,ctrlKey:sn.ctrlKey,altKey:sn.altKey}))}),Xt=(0,i.iW)((sn,Jn)=>{Ne||ut&&ut({type:"pressup",pointerType:Jn,target:sn.currentTarget,shiftKey:sn.shiftKey,metaKey:sn.metaKey,ctrlKey:sn.ctrlKey,altKey:sn.altKey})}),rt=(0,i.iW)(sn=>{let Jn=Kt.current;Jn.isPressed&&(Jn.isOverTarget&&at(w(Jn.target,sn),Jn.pointerType,!1),Jn.isPressed=!1,Jn.isOverTarget=!1,Jn.activePointerId=null,Jn.pointerType=null,Ve(),hn||p(Jn.target))}),Rt=(0,i.iW)(sn=>{Gt&&rt(sn)}),rn=(0,s.useMemo)(()=>{let sn=Kt.current,Jn={onKeyDown(st){b(st.nativeEvent,st.currentTarget)&&st.currentTarget.contains(st.target)?(A(st.target,st.key)&&st.preventDefault(),st.stopPropagation(),!sn.isPressed&&!st.repeat&&(sn.target=st.currentTarget,sn.isPressed=!0,lt(st,"keyboard"),vt(document,"keyup",ze,!1))):st.key==="Enter"&&y(st.currentTarget)&&st.stopPropagation()},onKeyUp(st){b(st.nativeEvent,st.currentTarget)&&!st.repeat&&st.currentTarget.contains(st.target)&&Xt(w(sn.target,st),"keyboard")},onClick(st){st&&!st.currentTarget.contains(st.target)||st&&st.button===0&&(st.stopPropagation(),Ne&&st.preventDefault(),!sn.ignoreClickAfterPress&&!sn.ignoreEmulatedMouseEvents&&(sn.pointerType==="virtual"||(0,i.Zj)(st.nativeEvent))&&(!Ne&&!bt&&(0,i.Ao)(st.currentTarget),lt(st,"virtual"),Xt(st,"virtual"),at(st,"virtual")),sn.ignoreEmulatedMouseEvents=!1,sn.ignoreClickAfterPress=!1)}},ze=st=>{if(sn.isPressed&&b(st,sn.target)){A(st.target,st.key)&&st.preventDefault(),st.stopPropagation(),sn.isPressed=!1;let en=st.target;at(w(sn.target,st),"keyboard",sn.target.contains(en)),Ve(),sn.target instanceof HTMLElement&&sn.target.contains(en)&&(y(sn.target)||sn.target.getAttribute("role")==="link")&&sn.target.click()}};if(typeof PointerEvent<"u"){Jn.onPointerDown=Ke=>{if(!(Ke.button!==0||!Ke.currentTarget.contains(Ke.target))){if((0,i.cr)(Ke.nativeEvent)){sn.pointerType="virtual";return}T(Ke.currentTarget)&&Ke.preventDefault(),sn.pointerType=Ke.pointerType,Ke.stopPropagation(),sn.isPressed||(sn.isPressed=!0,sn.isOverTarget=!0,sn.activePointerId=Ke.pointerId,sn.target=Ke.currentTarget,!Ne&&!bt&&(0,i.Ao)(Ke.currentTarget),hn||h(sn.target),lt(Ke,sn.pointerType),vt(document,"pointermove",st,!1),vt(document,"pointerup",en,!1),vt(document,"pointercancel",wt,!1))}},Jn.onMouseDown=Ke=>{Ke.currentTarget.contains(Ke.target)&&Ke.button===0&&(T(Ke.currentTarget)&&Ke.preventDefault(),Ke.stopPropagation())},Jn.onPointerUp=Ke=>{!Ke.currentTarget.contains(Ke.target)||sn.pointerType==="virtual"||Ke.button===0&&R(Ke,Ke.currentTarget)&&Xt(Ke,sn.pointerType||Ke.pointerType)};let st=Ke=>{Ke.pointerId===sn.activePointerId&&(R(Ke,sn.target)?sn.isOverTarget||(sn.isOverTarget=!0,lt(w(sn.target,Ke),sn.pointerType)):sn.isOverTarget&&(sn.isOverTarget=!1,at(w(sn.target,Ke),sn.pointerType,!1),Rt(Ke)))},en=Ke=>{Ke.pointerId===sn.activePointerId&&sn.isPressed&&Ke.button===0&&(R(Ke,sn.target)?at(w(sn.target,Ke),sn.pointerType):sn.isOverTarget&&at(w(sn.target,Ke),sn.pointerType,!1),sn.isPressed=!1,sn.isOverTarget=!1,sn.activePointerId=null,sn.pointerType=null,Ve(),hn||p(sn.target))},wt=Ke=>{rt(Ke)};Jn.onDragStart=Ke=>{Ke.currentTarget.contains(Ke.target)&&rt(Ke)}}else{Jn.onMouseDown=wt=>{wt.button!==0||!wt.currentTarget.contains(wt.target)||(T(wt.currentTarget)&&wt.preventDefault(),wt.stopPropagation(),!sn.ignoreEmulatedMouseEvents&&(sn.isPressed=!0,sn.isOverTarget=!0,sn.target=wt.currentTarget,sn.pointerType=(0,i.Zj)(wt.nativeEvent)?"virtual":"mouse",!Ne&&!bt&&(0,i.Ao)(wt.currentTarget),lt(wt,sn.pointerType),vt(document,"mouseup",st,!1)))},Jn.onMouseEnter=wt=>{wt.currentTarget.contains(wt.target)&&(wt.stopPropagation(),sn.isPressed&&!sn.ignoreEmulatedMouseEvents&&(sn.isOverTarget=!0,lt(wt,sn.pointerType)))},Jn.onMouseLeave=wt=>{wt.currentTarget.contains(wt.target)&&(wt.stopPropagation(),sn.isPressed&&!sn.ignoreEmulatedMouseEvents&&(sn.isOverTarget=!1,at(wt,sn.pointerType,!1),Rt(wt)))},Jn.onMouseUp=wt=>{wt.currentTarget.contains(wt.target)&&!sn.ignoreEmulatedMouseEvents&&wt.button===0&&Xt(wt,sn.pointerType)};let st=wt=>{if(wt.button===0){if(sn.isPressed=!1,Ve(),sn.ignoreEmulatedMouseEvents){sn.ignoreEmulatedMouseEvents=!1;return}R(wt,sn.target)?at(w(sn.target,wt),sn.pointerType):sn.isOverTarget&&at(w(sn.target,wt),sn.pointerType,!1),sn.isOverTarget=!1}};Jn.onTouchStart=wt=>{if(!wt.currentTarget.contains(wt.target))return;wt.stopPropagation();let Ke=E(wt.nativeEvent);Ke&&(sn.activePointerId=Ke.identifier,sn.ignoreEmulatedMouseEvents=!0,sn.isOverTarget=!0,sn.isPressed=!0,sn.target=wt.currentTarget,sn.pointerType="touch",!Ne&&!bt&&(0,i.Ao)(wt.currentTarget),hn||h(sn.target),lt(wt,sn.pointerType),vt(window,"scroll",en,!0))},Jn.onTouchMove=wt=>{if(!wt.currentTarget.contains(wt.target)||(wt.stopPropagation(),!sn.isPressed))return;let Ke=S(wt.nativeEvent,sn.activePointerId);Ke&&R(Ke,wt.currentTarget)?sn.isOverTarget||(sn.isOverTarget=!0,lt(wt,sn.pointerType)):sn.isOverTarget&&(sn.isOverTarget=!1,at(wt,sn.pointerType,!1),Rt(wt))},Jn.onTouchEnd=wt=>{if(!wt.currentTarget.contains(wt.target)||(wt.stopPropagation(),!sn.isPressed))return;let Ke=S(wt.nativeEvent,sn.activePointerId);Ke&&R(Ke,wt.currentTarget)?(Xt(wt,sn.pointerType),at(wt,sn.pointerType)):sn.isOverTarget&&at(wt,sn.pointerType,!1),sn.isPressed=!1,sn.activePointerId=null,sn.isOverTarget=!1,sn.ignoreEmulatedMouseEvents=!0,hn||p(sn.target),Ve()},Jn.onTouchCancel=wt=>{wt.currentTarget.contains(wt.target)&&(wt.stopPropagation(),sn.isPressed&&rt(wt))};let en=wt=>{sn.isPressed&&wt.target.contains(sn.target)&&rt({currentTarget:sn.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};Jn.onDragStart=wt=>{wt.currentTarget.contains(wt.target)&&rt(wt)}}return Jn},[vt,Ne,bt,Ve,hn,rt,Rt,at,lt,Xt]);return(0,s.useEffect)(()=>()=>{hn||p(Kt.current.target)},[hn]),{isPressed:mt||Lt,pressProps:(0,i.dG)(Bt,rn)}}function y(ke){return ke.tagName==="A"&&ke.hasAttribute("href")}function b(ke,Oe){const{key:je,code:Et}=ke,ct=Oe,ut=ct.getAttribute("role");return(je==="Enter"||je===" "||je==="Spacebar"||Et==="Space")&&!(ct instanceof HTMLInputElement&&!N(ct,je)||ct instanceof HTMLTextAreaElement||ct.isContentEditable)&&(!y(ct)||ut==="button"&&je!=="Enter")&&!(ut==="link"&&je!=="Enter")}function E(ke){const{targetTouches:Oe}=ke;return Oe.length>0?Oe[0]:null}function S(ke,Oe){const je=ke.changedTouches;for(let Et=0;Et<je.length;Et++){const ct=je[Et];if(ct.identifier===Oe)return ct}return null}function w(ke,Oe){return{currentTarget:ke,shiftKey:Oe.shiftKey,ctrlKey:Oe.ctrlKey,metaKey:Oe.metaKey,altKey:Oe.altKey}}function x(ke){let Oe=ke.width/2||ke.radiusX||0,je=ke.height/2||ke.radiusY||0;return{top:ke.clientY-je,right:ke.clientX+Oe,bottom:ke.clientY+je,left:ke.clientX-Oe}}function P(ke,Oe){return!(ke.left>Oe.right||Oe.left>ke.right||ke.top>Oe.bottom||Oe.top>ke.bottom)}function R(ke,Oe){let je=Oe.getBoundingClientRect(),Et=x(ke);return P(je,Et)}function T(ke){return!(ke instanceof HTMLElement)||!ke.draggable}function A(ke,Oe){return ke instanceof HTMLInputElement?!N(ke,Oe):ke instanceof HTMLButtonElement?ke.type!=="submit":!0}const I=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function N(ke,Oe){return ke.type==="checkbox"||ke.type==="radio"?Oe===" ":I.has(ke.type)}const K=null,_=null;class W{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(Oe,je){this.nativeEvent=je,this.target=je.target,this.currentTarget=je.currentTarget,this.relatedTarget=je.relatedTarget,this.bubbles=je.bubbles,this.cancelable=je.cancelable,this.defaultPrevented=je.defaultPrevented,this.eventPhase=je.eventPhase,this.isTrusted=je.isTrusted,this.timeStamp=je.timeStamp,this.type=Oe}}function j(ke){let Oe=(0,s.useRef)({isFocused:!1,observer:null});(0,i.bt)(()=>{const Et=Oe.current;return()=>{Et.observer&&(Et.observer.disconnect(),Et.observer=null)}},[]);let je=(0,i.iW)(Et=>{ke?.(Et)});return(0,s.useCallback)(Et=>{if(Et.target instanceof HTMLButtonElement||Et.target instanceof HTMLInputElement||Et.target instanceof HTMLTextAreaElement||Et.target instanceof HTMLSelectElement){Oe.current.isFocused=!0;let ct=Et.target,ut=Ne=>{Oe.current.isFocused=!1,ct.disabled&&je(new W("blur",Ne)),Oe.current.observer&&(Oe.current.observer.disconnect(),Oe.current.observer=null)};ct.addEventListener("focusout",ut,{once:!0}),Oe.current.observer=new MutationObserver(()=>{if(Oe.current.isFocused&&ct.disabled){Oe.current.observer.disconnect();let Ne=ct===document.activeElement?null:document.activeElement;ct.dispatchEvent(new FocusEvent("blur",{relatedTarget:Ne})),ct.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:Ne}))}}),Oe.current.observer.observe(ct,{attributes:!0,attributeFilter:["disabled"]})}},[je])}function re(ke){let{isDisabled:Oe,onFocus:je,onBlur:Et,onFocusChange:ct}=ke;const ut=(0,s.useCallback)(bt=>{if(bt.target===bt.currentTarget)return Et&&Et(bt),ct&&ct(!1),!0},[Et,ct]),Ne=j(ut),mt=(0,s.useCallback)(bt=>{bt.target===bt.currentTarget&&document.activeElement===bt.target&&(je&&je(bt),ct&&ct(!0),Ne(bt))},[ct,je,Ne]);return{focusProps:{onFocus:!Oe&&(je||ct||Et)?mt:void 0,onBlur:!Oe&&(Et||ct)?ut:void 0}}}let X=null,Z=new Set,J=!1,q=!1,L=!1;const $={Tab:!0,Escape:!0};function k(ke,Oe){for(let je of Z)je(ke,Oe)}function F(ke){return!(ke.metaKey||!(0,i.V5)()&&ke.altKey||ke.ctrlKey||ke.key==="Control"||ke.key==="Shift"||ke.key==="Meta")}function V(ke){q=!0,F(ke)&&(X="keyboard",k("keyboard",ke))}function pe(ke){X="pointer",(ke.type==="mousedown"||ke.type==="pointerdown")&&(q=!0,k("pointer",ke))}function ce(ke){(0,i.Zj)(ke)&&(q=!0,X="virtual")}function G(ke){ke.target===window||ke.target===document||(!q&&!L&&(X="virtual",k("virtual",ke)),q=!1,L=!1)}function te(){q=!1,L=!0}function ie(){if(typeof window>"u"||J)return;let ke=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){q=!0,ke.apply(this,arguments)},document.addEventListener("keydown",V,!0),document.addEventListener("keyup",V,!0),document.addEventListener("click",ce,!0),window.addEventListener("focus",G,!0),window.addEventListener("blur",te,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",pe,!0),document.addEventListener("pointermove",pe,!0),document.addEventListener("pointerup",pe,!0)):(document.addEventListener("mousedown",pe,!0),document.addEventListener("mousemove",pe,!0),document.addEventListener("mouseup",pe,!0)),J=!0}typeof document<"u"&&(document.readyState!=="loading"?ie():document.addEventListener("DOMContentLoaded",ie));function fe(){return X!=="pointer"}function Se(){return X}function he(ke){X=ke,k(ke,null)}function me(){ie();let[ke,Oe]=$bx7SL$useState(X);return $bx7SL$useEffect(()=>{let je=()=>{Oe(X)};return Z.add(je),()=>{Z.delete(je)}},[]),$bx7SL$useIsSSR()?null:ke}function _e(ke,Oe,je){return!(ke&&Oe==="keyboard"&&je instanceof KeyboardEvent&&!$[je.key])}function we(ke={}){let{isTextInput:Oe,autoFocus:je}=ke,[Et,ct]=$bx7SL$useState(je||fe());return Ge(ut=>{ct(ut)},[Oe],{isTextInput:Oe}),{isFocusVisible:Et}}function Ge(ke,Oe,je){ie(),(0,s.useEffect)(()=>{let Et=(ct,ut)=>{_e(je?.isTextInput,ct,ut)&&ke(fe())};return Z.add(Et),()=>{Z.delete(Et)}},Oe)}function ht(ke){let{isDisabled:Oe,onBlurWithin:je,onFocusWithin:Et,onFocusWithinChange:ct}=ke,ut=(0,s.useRef)({isFocusWithin:!1}),Ne=(0,s.useCallback)(Gt=>{ut.current.isFocusWithin&&!Gt.currentTarget.contains(Gt.relatedTarget)&&(ut.current.isFocusWithin=!1,je&&je(Gt),ct&&ct(!1))},[je,ct,ut]),mt=j(Ne),bt=(0,s.useCallback)(Gt=>{!ut.current.isFocusWithin&&document.activeElement===Gt.target&&(Et&&Et(Gt),ct&&ct(!0),ut.current.isFocusWithin=!0,mt(Gt))},[Et,ct,mt]);return Oe?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:bt,onBlur:Ne}}}let nt=!1,Re=0;function ue(){nt=!0,setTimeout(()=>{nt=!1},50)}function ae(ke){ke.pointerType==="touch"&&ue()}function ve(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",ae):document.addEventListener("touchend",ue),Re++,()=>{Re--,!(Re>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",ae):document.removeEventListener("touchend",ue))}}function Me(ke){let{onHoverStart:Oe,onHoverChange:je,onHoverEnd:Et,isDisabled:ct}=ke,[ut,Ne]=$bx7SL$useState(!1),mt=$bx7SL$useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;$bx7SL$useEffect(ve,[]);let{hoverProps:bt,triggerHoverEnd:Gt}=$bx7SL$useMemo(()=>{let hn=(Lt,zt)=>{if(mt.pointerType=zt,ct||zt==="touch"||mt.isHovered||!Lt.currentTarget.contains(Lt.target))return;mt.isHovered=!0;let Kt=Lt.currentTarget;mt.target=Kt,Oe&&Oe({type:"hoverstart",target:Kt,pointerType:zt}),je&&je(!0),Ne(!0)},Yt=(Lt,zt)=>{if(mt.pointerType="",mt.target=null,zt==="touch"||!mt.isHovered)return;mt.isHovered=!1;let Kt=Lt.currentTarget;Et&&Et({type:"hoverend",target:Kt,pointerType:zt}),je&&je(!1),Ne(!1)},Bt={};return typeof PointerEvent<"u"?(Bt.onPointerEnter=Lt=>{nt&&Lt.pointerType==="mouse"||hn(Lt,Lt.pointerType)},Bt.onPointerLeave=Lt=>{!ct&&Lt.currentTarget.contains(Lt.target)&&Yt(Lt,Lt.pointerType)}):(Bt.onTouchStart=()=>{mt.ignoreEmulatedMouseEvents=!0},Bt.onMouseEnter=Lt=>{!mt.ignoreEmulatedMouseEvents&&!nt&&hn(Lt,"mouse"),mt.ignoreEmulatedMouseEvents=!1},Bt.onMouseLeave=Lt=>{!ct&&Lt.currentTarget.contains(Lt.target)&&Yt(Lt,"mouse")}),{hoverProps:Bt,triggerHoverEnd:Yt}},[Oe,je,Et,ct,mt]);return $bx7SL$useEffect(()=>{ct&&Gt({currentTarget:mt.target},mt.pointerType)},[ct]),{hoverProps:bt,isHovered:ut}}function Ye(ke){let{ref:Oe,onInteractOutside:je,isDisabled:Et,onInteractOutsideStart:ct}=ke,ut=(0,s.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),Ne=(0,i.iW)(bt=>{je&&qe(bt,Oe)&&(ct&&ct(bt),ut.current.isPointerDown=!0)}),mt=(0,i.iW)(bt=>{je&&je(bt)});(0,s.useEffect)(()=>{let bt=ut.current;if(!Et)if(typeof PointerEvent<"u"){let Gt=hn=>{bt.isPointerDown&&qe(hn,Oe)&&mt(hn),bt.isPointerDown=!1};return document.addEventListener("pointerdown",Ne,!0),document.addEventListener("pointerup",Gt,!0),()=>{document.removeEventListener("pointerdown",Ne,!0),document.removeEventListener("pointerup",Gt,!0)}}else{let Gt=Yt=>{bt.ignoreEmulatedMouseEvents?bt.ignoreEmulatedMouseEvents=!1:bt.isPointerDown&&qe(Yt,Oe)&&mt(Yt),bt.isPointerDown=!1},hn=Yt=>{bt.ignoreEmulatedMouseEvents=!0,bt.isPointerDown&&qe(Yt,Oe)&&mt(Yt),bt.isPointerDown=!1};return document.addEventListener("mousedown",Ne,!0),document.addEventListener("mouseup",Gt,!0),document.addEventListener("touchstart",Ne,!0),document.addEventListener("touchend",hn,!0),()=>{document.removeEventListener("mousedown",Ne,!0),document.removeEventListener("mouseup",Gt,!0),document.removeEventListener("touchstart",Ne,!0),document.removeEventListener("touchend",hn,!0)}}},[Oe,Et,Ne,mt])}function qe(ke,Oe){if(ke.button>0)return!1;if(ke.target){const je=ke.target.ownerDocument;if(!je||!je.documentElement.contains(ke.target)||ke.target.closest("[data-react-aria-top-layer]"))return!1}return Oe.current&&!Oe.current.contains(ke.target)}function At(ke){if(!ke)return;let Oe=!0;return je=>{let Et={...je,preventDefault(){je.preventDefault()},isDefaultPrevented(){return je.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){Oe=!1}};ke(Et),Oe&&je.stopPropagation()}}function It(ke){return{keyboardProps:ke.isDisabled?{}:{onKeyDown:At(ke.onKeyDown),onKeyUp:At(ke.onKeyUp)}}}function Ce(ke){let{onMoveStart:Oe,onMove:je,onMoveEnd:Et}=ke,ct=$bx7SL$useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:ut,removeGlobalListener:Ne}=$bx7SL$useGlobalListeners(),mt=$bx7SL$useEffectEvent((hn,Yt,Bt,Lt)=>{Bt===0&&Lt===0||(ct.current.didMove||(ct.current.didMove=!0,Oe?.({type:"movestart",pointerType:Yt,shiftKey:hn.shiftKey,metaKey:hn.metaKey,ctrlKey:hn.ctrlKey,altKey:hn.altKey})),je({type:"move",pointerType:Yt,deltaX:Bt,deltaY:Lt,shiftKey:hn.shiftKey,metaKey:hn.metaKey,ctrlKey:hn.ctrlKey,altKey:hn.altKey}))}),bt=$bx7SL$useEffectEvent((hn,Yt)=>{p(),ct.current.didMove&&Et?.({type:"moveend",pointerType:Yt,shiftKey:hn.shiftKey,metaKey:hn.metaKey,ctrlKey:hn.ctrlKey,altKey:hn.altKey})});return{moveProps:$bx7SL$useMemo(()=>{let hn={},Yt=()=>{h(),ct.current.didMove=!1};if(typeof PointerEvent>"u"){let Lt=Ve=>{Ve.button===0&&(mt(Ve,"mouse",Ve.pageX-ct.current.lastPosition.pageX,Ve.pageY-ct.current.lastPosition.pageY),ct.current.lastPosition={pageX:Ve.pageX,pageY:Ve.pageY})},zt=Ve=>{Ve.button===0&&(bt(Ve,"mouse"),Ne(window,"mousemove",Lt,!1),Ne(window,"mouseup",zt,!1))};hn.onMouseDown=Ve=>{Ve.button===0&&(Yt(),Ve.stopPropagation(),Ve.preventDefault(),ct.current.lastPosition={pageX:Ve.pageX,pageY:Ve.pageY},ut(window,"mousemove",Lt,!1),ut(window,"mouseup",zt,!1))};let Kt=Ve=>{let lt=[...Ve.changedTouches].findIndex(({identifier:at})=>at===ct.current.id);if(lt>=0){let{pageX:at,pageY:Xt}=Ve.changedTouches[lt];mt(Ve,"touch",at-ct.current.lastPosition.pageX,Xt-ct.current.lastPosition.pageY),ct.current.lastPosition={pageX:at,pageY:Xt}}},vt=Ve=>{[...Ve.changedTouches].findIndex(({identifier:at})=>at===ct.current.id)>=0&&(bt(Ve,"touch"),ct.current.id=null,Ne(window,"touchmove",Kt),Ne(window,"touchend",vt),Ne(window,"touchcancel",vt))};hn.onTouchStart=Ve=>{if(Ve.changedTouches.length===0||ct.current.id!=null)return;let{pageX:lt,pageY:at,identifier:Xt}=Ve.changedTouches[0];Yt(),Ve.stopPropagation(),Ve.preventDefault(),ct.current.lastPosition={pageX:lt,pageY:at},ct.current.id=Xt,ut(window,"touchmove",Kt,!1),ut(window,"touchend",vt,!1),ut(window,"touchcancel",vt,!1)}}else{let Lt=Kt=>{if(Kt.pointerId===ct.current.id){let vt=Kt.pointerType||"mouse";mt(Kt,vt,Kt.pageX-ct.current.lastPosition.pageX,Kt.pageY-ct.current.lastPosition.pageY),ct.current.lastPosition={pageX:Kt.pageX,pageY:Kt.pageY}}},zt=Kt=>{if(Kt.pointerId===ct.current.id){let vt=Kt.pointerType||"mouse";bt(Kt,vt),ct.current.id=null,Ne(window,"pointermove",Lt,!1),Ne(window,"pointerup",zt,!1),Ne(window,"pointercancel",zt,!1)}};hn.onPointerDown=Kt=>{Kt.button===0&&ct.current.id==null&&(Yt(),Kt.stopPropagation(),Kt.preventDefault(),ct.current.lastPosition={pageX:Kt.pageX,pageY:Kt.pageY},ct.current.id=Kt.pointerId,ut(window,"pointermove",Lt,!1),ut(window,"pointerup",zt,!1),ut(window,"pointercancel",zt,!1))}}let Bt=(Lt,zt,Kt)=>{Yt(),mt(Lt,"keyboard",zt,Kt),bt(Lt,"keyboard")};return hn.onKeyDown=Lt=>{switch(Lt.key){case"Left":case"ArrowLeft":Lt.preventDefault(),Lt.stopPropagation(),Bt(Lt,-1,0);break;case"Right":case"ArrowRight":Lt.preventDefault(),Lt.stopPropagation(),Bt(Lt,1,0);break;case"Up":case"ArrowUp":Lt.preventDefault(),Lt.stopPropagation(),Bt(Lt,0,-1);break;case"Down":case"ArrowDown":Lt.preventDefault(),Lt.stopPropagation(),Bt(Lt,0,1);break}},hn},[ct,ut,Ne,mt,bt])}}function Ae(ke,Oe){let{onScroll:je,isDisabled:Et}=ke,ct=$bx7SL$useCallback(ut=>{ut.ctrlKey||(ut.preventDefault(),ut.stopPropagation(),je&&je({deltaX:ut.deltaX,deltaY:ut.deltaY}))},[je]);$bx7SL$useEvent(Oe,"wheel",Et?null:ct)}const $e=500;function tt(ke){let{isDisabled:Oe,onLongPressStart:je,onLongPressEnd:Et,onLongPress:ct,threshold:ut=$e,accessibilityDescription:Ne}=ke;const mt=(0,s.useRef)(null);let{addGlobalListener:bt,removeGlobalListener:Gt}=(0,i.xi)(),{pressProps:hn}=g({isDisabled:Oe,onPressStart(Bt){if((Bt.pointerType==="mouse"||Bt.pointerType==="touch")&&(je&&je({...Bt,type:"longpressstart"}),mt.current=setTimeout(()=>{Bt.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),ct&&ct({...Bt,type:"longpress"}),mt.current=null},ut),Bt.pointerType==="touch")){let Lt=zt=>{zt.preventDefault()};bt(Bt.target,"contextmenu",Lt,{once:!0}),bt(window,"pointerup",()=>{setTimeout(()=>{Gt(Bt.target,"contextmenu",Lt)},30)},{once:!0})}},onPressEnd(Bt){mt.current&&clearTimeout(mt.current),Et&&(Bt.pointerType==="mouse"||Bt.pointerType==="touch")&&Et({...Bt,type:"longpressend"})}}),Yt=(0,i.PK)(ct&&!Oe?Ne:null);return{longPressProps:(0,i.dG)(hn,Yt)}}},5980:(C,c,t)=>{"use strict";t.d(c,{u4:()=>Ne});var i=t(87911),s=t(27702),u=t(42968);class v{getStringForLocale(Bt,Lt){let zt=this.strings[Lt];zt||(zt=l(Lt,this.strings,this.defaultLocale),this.strings[Lt]=zt);let Kt=zt[Bt];if(!Kt)throw new Error(`Could not find intl message ${Bt} in ${Lt} locale`);return Kt}constructor(Bt,Lt="en-US"){this.strings={...Bt},this.defaultLocale=Lt}}function l(Yt,Bt,Lt="en-US"){if(Bt[Yt])return Bt[Yt];let zt=h(Yt);if(Bt[zt])return Bt[zt];for(let Kt in Bt)if(Kt.startsWith(zt+"-"))return Bt[Kt];return Bt[Lt]}function h(Yt){return Intl.Locale?new Intl.Locale(Yt).language:Yt.split("-")[0]}const p=new Map,d=new Map;class f{format(Bt,Lt){let zt=this.strings.getStringForLocale(Bt,this.locale);return typeof zt=="function"?zt(Lt,this):zt}plural(Bt,Lt,zt="cardinal"){let Kt=Lt["="+Bt];if(Kt)return typeof Kt=="function"?Kt():Kt;let vt=this.locale+":"+zt,Ve=p.get(vt);Ve||(Ve=new Intl.PluralRules(this.locale,{type:zt}),p.set(vt,Ve));let lt=Ve.select(Bt);return Kt=Lt[lt]||Lt.other,typeof Kt=="function"?Kt():Kt}number(Bt){let Lt=d.get(this.locale);return Lt||(Lt=new Intl.NumberFormat(this.locale),d.set(this.locale,Lt)),Lt.format(Bt)}select(Bt,Lt){let zt=Bt[Lt]||Bt.other;return typeof zt=="function"?zt():zt}constructor(Bt,Lt){this.locale=Bt,this.strings=Lt}}const g=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),y=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function b(Yt){if(Intl.Locale){let Lt=new Intl.Locale(Yt).maximize().script;return g.has(Lt)}let Bt=Yt.split("-")[0];return y.has(Bt)}function E(){let Yt=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([Yt])}catch{Yt="en-US"}return{locale:Yt,direction:b(Yt)?"rtl":"ltr"}}let S=E(),w=new Set;function x(){S=E();for(let Yt of w)Yt(S)}function P(){let Yt=(0,u.Av)(),[Bt,Lt]=(0,s.useState)(S);return(0,s.useEffect)(()=>(w.size===0&&window.addEventListener("languagechange",x),w.add(Lt),()=>{w.delete(Lt),w.size===0&&window.removeEventListener("languagechange",x)}),[]),Yt?{locale:"en-US",direction:"ltr"}:Bt}const R=s.createContext(null);function T(Yt){let{locale:Bt,children:Lt}=Yt,zt=P(),Kt=Bt?{locale:Bt,direction:b(Bt)?"rtl":"ltr"}:zt;return $iFADg$react.createElement(R.Provider,{value:Kt},Lt)}function A(){let Yt=P();return(0,s.useContext)(R)||Yt}var I={};const N=new WeakMap;function K(Yt){let Bt=N.get(Yt);return Bt||(Bt=new v(Yt),N.set(Yt,Bt)),Bt}function _(Yt){let{locale:Bt}=A(),Lt=(0,s.useMemo)(()=>K(Yt),[Yt]);return(0,s.useMemo)(()=>new f(Bt,Lt),[Bt,Lt])}function W(Yt={}){let{locale:Bt}=A();return $iFADg$useMemo(()=>new Intl.ListFormat(Bt,Yt),[Bt,Yt])}function j(Yt){Yt=$iFADg$useDeepMemo(Yt,re);let{locale:Bt}=A();return $iFADg$useMemo(()=>new $iFADg$DateFormatter(Bt,Yt),[Bt,Yt])}function re(Yt,Bt){if(Yt===Bt)return!0;let Lt=Object.keys(Yt),zt=Object.keys(Bt);if(Lt.length!==zt.length)return!1;for(let Kt of Lt)if(Bt[Kt]!==Yt[Kt])return!1;return!0}function X(Yt={}){let{locale:Bt}=A();return $iFADg$useMemo(()=>new $iFADg$NumberFormatter(Bt,Yt),[Bt,Yt])}let Z=new Map;function J(Yt){let{locale:Bt}=A(),Lt=Bt+(Yt?Object.entries(Yt).sort((Kt,vt)=>Kt[0]<vt[0]?-1:1).join():"");if(Z.has(Lt))return Z.get(Lt);let zt=new Intl.Collator(Bt,Yt);return Z.set(Lt,zt),zt}function q(Yt){let Bt=J({usage:"search",...Yt}),Lt=$iFADg$useCallback((vt,Ve)=>Ve.length===0?!0:(vt=vt.normalize("NFC"),Ve=Ve.normalize("NFC"),Bt.compare(vt.slice(0,Ve.length),Ve)===0),[Bt]),zt=$iFADg$useCallback((vt,Ve)=>Ve.length===0?!0:(vt=vt.normalize("NFC"),Ve=Ve.normalize("NFC"),Bt.compare(vt.slice(-Ve.length),Ve)===0),[Bt]),Kt=$iFADg$useCallback((vt,Ve)=>{if(Ve.length===0)return!0;vt=vt.normalize("NFC"),Ve=Ve.normalize("NFC");let lt=0,at=Ve.length;for(;lt+at<=vt.length;lt++){let Xt=vt.slice(lt,lt+at);if(Bt.compare(Ve,Xt)===0)return!0}return!1},[Bt]);return $iFADg$useMemo(()=>({startsWith:Lt,endsWith:zt,contains:Kt}),[Lt,zt,Kt])}var L=t(2505),$=t(6714);function k(Yt){return Yt&&Yt.__esModule?Yt.default:Yt}var F={},V={};V={longPressMessage:"\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u0627\u064B \u0623\u0648 \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + \u0627\u0644\u0633\u0647\u0645 \u0644\u0623\u0633\u0641\u0644 \u0644\u0641\u062A\u062D \u0627\u0644\u0642\u0627\u0626\u0645\u0629"};var pe={};pe={longPressMessage:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt+ \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0430\u0434\u043E\u043B\u0443, \u0437\u0430 \u0434\u0430 \u043E\u0442\u0432\u043E\u0440\u0438\u0442\u0435 \u043C\u0435\u043D\u044E\u0442\u043E"};var ce={};ce={longPressMessage:"Dlouh\xFDm stiskem nebo stisknut\xEDm kl\xE1ves Alt + \u0161ipka dol\u016F otev\u0159ete nab\xEDdku"};var G={};G={longPressMessage:"Langt tryk eller tryk p\xE5 Alt + pil ned for at \xE5bne menuen"};var te={};te={longPressMessage:"Dr\xFCcken Sie lange oder dr\xFCcken Sie Alt + Nach-unten, um das Men\xFC zu \xF6ffnen"};var ie={};ie={longPressMessage:"\u03A0\u03B9\u03AD\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + \u03BA\u03AC\u03C4\u03C9 \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B1\u03BD\u03BF\u03AF\u03BE\u03B5\u03C4\u03B5 \u03C4\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD"};var fe={};fe={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Se={};Se={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xFA"};var he={};he={longPressMessage:"Men\xFC\xFC avamiseks vajutage pikalt v\xF5i vajutage klahve Alt + allanool"};var me={};me={longPressMessage:"Avaa valikko painamalla pohjassa tai n\xE4pp\xE4inyhdistelm\xE4ll\xE4 Alt + Alanuoli"};var _e={};_e={longPressMessage:"Appuyez de mani\xE8re prolong\xE9e ou appuyez sur Alt\xA0+\xA0Fl\xE8che vers le bas pour ouvrir le menu."};var we={};we={longPressMessage:"\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05D0\u05D5 \u05D4\u05E7\u05E9 Alt + ArrowDown \u05DB\u05D3\u05D9 \u05DC\u05E4\u05EA\u05D5\u05D7 \u05D0\u05EA \u05D4\u05EA\u05E4\u05E8\u05D9\u05D8"};var Ge={};Ge={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var ht={};ht={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xEDl gombot a men\xFC megnyit\xE1s\xE1hoz"};var nt={};nt={longPressMessage:"Premere a lungo o premere Alt + Freccia gi\xF9 per aprire il menu"};var Re={};Re={longPressMessage:"\u9577\u62BC\u3057\u307E\u305F\u306F Alt+\u4E0B\u77E2\u5370\u30AD\u30FC\u3067\u30E1\u30CB\u30E5\u30FC\u3092\u958B\u304F"};var ue={};ue={longPressMessage:"\uAE38\uAC8C \uB204\uB974\uAC70\uB098 Alt + \uC544\uB798\uCABD \uD654\uC0B4\uD45C\uB97C \uB20C\uB7EC \uBA54\uB274 \uC5F4\uAE30"};var ae={};ae={longPressMessage:"Nor\u0117dami atidaryti meniu, nuspaud\u0119 palaikykite arba paspauskite \u201EAlt + ArrowDown\u201C."};var ve={};ve={longPressMessage:"Lai atv\u0113rtu izv\u0113lni, turiet nospiestu vai nospiediet tausti\u0146u kombin\u0101ciju Alt + lejupv\u0113rst\u0101 bulti\u0146a"};var Me={};Me={longPressMessage:"Langt trykk eller trykk Alt + PilNed for \xE5 \xE5pne menyen"};var Ye={};Ye={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var qe={};qe={longPressMessage:"Naci\u015Bnij i przytrzymaj lub naci\u015Bnij klawisze Alt + Strza\u0142ka w d\xF3\u0142, aby otworzy\u0107 menu"};var At={};At={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var It={};It={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Ce={};Ce={longPressMessage:"Ap\u0103sa\u021Bi lung sau ap\u0103sa\u021Bi pe Alt + s\u0103geat\u0103 \xEEn jos pentru a deschide meniul"};var Ae={};Ae={longPressMessage:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E"};var $e={};$e={longPressMessage:"Ponuku otvor\xEDte dlh\xFDm stla\u010Den\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Alt + kl\xE1vesu so \u0161\xEDpkou nadol"};var tt={};tt={longPressMessage:"Za odprtje menija pritisnite in dr\u017Eite gumb ali pritisnite Alt+pu\u0161\u010Dica navzdol"};var ke={};ke={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Oe={};Oe={longPressMessage:"H\xE5ll nedtryckt eller tryck p\xE5 Alt + pil ned\xE5t f\xF6r att \xF6ppna menyn"};var je={};je={longPressMessage:"Men\xFCy\xFC a\xE7mak i\xE7in uzun bas\u0131n veya Alt + A\u015Fa\u011F\u0131 Ok tu\u015Funa bas\u0131n"};var Et={};Et={longPressMessage:"\u0414\u043E\u0432\u0433\u043E \u0430\u0431\u043E \u0437\u0432\u0438\u0447\u0430\u0439\u043D\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u043A\u043E\u043C\u0431\u0456\u043D\u0430\u0446\u0456\u044E \u043A\u043B\u0430\u0432\u0456\u0448 Alt \u0456 \u0441\u0442\u0440\u0456\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0449\u043E\u0431 \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 \u043C\u0435\u043D\u044E"};var ct={};ct={longPressMessage:"\u957F\u6309\u6216\u6309 Alt + \u5411\u4E0B\u65B9\u5411\u952E\u4EE5\u6253\u5F00\u83DC\u5355"};var ut={};ut={longPressMessage:"\u9577\u6309\u6216\u6309 Alt+\u5411\u4E0B\u9375\u4EE5\u958B\u555F\u529F\u80FD\u8868"},F={"ar-AE":V,"bg-BG":pe,"cs-CZ":ce,"da-DK":G,"de-DE":te,"el-GR":ie,"en-US":fe,"es-ES":Se,"et-EE":he,"fi-FI":me,"fr-FR":_e,"he-IL":we,"hr-HR":Ge,"hu-HU":ht,"it-IT":nt,"ja-JP":Re,"ko-KR":ue,"lt-LT":ae,"lv-LV":ve,"nb-NO":Me,"nl-NL":Ye,"pl-PL":qe,"pt-BR":At,"pt-PT":It,"ro-RO":Ce,"ru-RU":Ae,"sk-SK":$e,"sl-SI":tt,"sr-SP":ke,"sv-SE":Oe,"tr-TR":je,"uk-UA":Et,"zh-CN":ct,"zh-TW":ut};function Ne(Yt,Bt,Lt){let{type:zt="menu",isDisabled:Kt,trigger:vt="press"}=Yt,Ve=(0,i.Me)(),{triggerProps:lt,overlayProps:at}=(0,$.IB)({type:zt},Bt,Lt),Xt=sn=>{if(!Kt&&!(vt==="longPress"&&!sn.altKey)&&Lt&&Lt.current)switch(sn.key){case"Enter":case" ":if(vt==="longPress")return;case"ArrowDown":"continuePropagation"in sn||sn.stopPropagation(),sn.preventDefault(),Bt.toggle("first");break;case"ArrowUp":"continuePropagation"in sn||sn.stopPropagation(),sn.preventDefault(),Bt.toggle("last");break}},rt=_(k(F)),{longPressProps:Rt}=(0,L.TA)({isDisabled:Kt||vt!=="longPress",accessibilityDescription:rt.format("longPressMessage"),onLongPressStart(){Bt.close()},onLongPress(){Bt.open("first")}}),rn={onPressStart(sn){sn.pointerType!=="touch"&&sn.pointerType!=="keyboard"&&!Kt&&Bt.toggle(sn.pointerType==="virtual"?"first":null)},onPress(sn){sn.pointerType==="touch"&&!Kt&&Bt.toggle()}};return delete lt.onPress,{menuTriggerProps:{...lt,...vt==="press"?rn:Rt,id:Ve,onKeyDown:Xt},menuProps:{...at,"aria-labelledby":Ve,autoFocus:Bt.focusStrategy||!0,onClose:Bt.close}}}const mt=new WeakMap;function bt(Yt,Bt,Lt){let{shouldFocusWrap:zt=!0,...Kt}=Yt;!Yt["aria-label"]&&!Yt["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let vt=$1Hnir$filterDOMProps(Yt,{labelable:!0}),{listProps:Ve}=$1Hnir$useSelectableList({...Kt,ref:Lt,selectionManager:Bt.selectionManager,collection:Bt.collection,disabledKeys:Bt.disabledKeys,shouldFocusWrap:zt});return mt.set(Bt,{onClose:Yt.onClose,onAction:Yt.onAction}),{menuProps:$1Hnir$mergeProps(vt,{role:"menu","aria-hidden":Bt.expandedKeys.size>0?!0:void 0,...Ve,onKeyDown:lt=>{lt.key!=="Escape"&&Ve.onKeyDown(lt)}})}}function Gt(Yt,Bt,Lt){let{key:zt,closeOnSelect:Kt,isVirtualized:vt,"aria-haspopup":Ve}=Yt,{direction:lt}=$1Hnir$useLocale(),at=!!Ve,Xt=Bt.expandedKeys.has(zt);var rt;let Rt=(rt=Yt.isDisabled)!==null&&rt!==void 0?rt:Bt.disabledKeys.has(zt);var rn;let sn=(rn=Yt.isSelected)!==null&&rn!==void 0?rn:Bt.selectionManager.isSelected(zt),Jn=$1Hnir$useRef(),ze=$1Hnir$useCallback(()=>{Jn.current&&(clearTimeout(Jn.current),Jn.current=void 0)},[Jn]),st=$1Hnir$useEffectEvent(()=>{ze(),Bt.setExpandedKeys(new Set([zt]))});$1Hnir$useLayoutEffect(()=>()=>ze(),[ze]);let en=mt.get(Bt),wt=Yt.onClose||en.onClose,Ke=$1Hnir$useCallback(()=>{st()},[]),Ut=at?Ke:Yt.onAction||en.onAction,on="menuitem";Bt.selectionManager.selectionMode==="single"?on="menuitemradio":Bt.selectionManager.selectionMode==="multiple"&&(on="menuitemcheckbox");let Tn=$1Hnir$useSlotId(),An=$1Hnir$useSlotId(),Zt=$1Hnir$useSlotId(),ot={"aria-disabled":Rt||void 0,role:on,"aria-label":Yt["aria-label"],"aria-labelledby":Tn,"aria-describedby":[An,Zt].filter(Boolean).join(" ")||void 0};Bt.selectionManager.selectionMode!=="none"&&(ot["aria-checked"]=sn),vt&&(ot["aria-posinset"]=Bt.collection.getItem(zt).index,ot["aria-setsize"]=$1Hnir$getItemCount(Bt.collection)),Ve!=null&&(ot["aria-haspopup"]=Ve,ot["aria-expanded"]=Xt?"true":"false");let We=mn=>{mn.pointerType==="keyboard"&&Ut&&Ut(zt)},Ft=mn=>{mn.pointerType!=="keyboard"&&(Ut&&Ut(zt),!at&&wt&&(Kt??Bt.selectionManager.selectionMode!=="multiple")&&wt())},{itemProps:it,isFocused:qt}=$1Hnir$useSelectableItem({selectionManager:Bt.selectionManager,key:zt,ref:Lt,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0}),{pressProps:vn,isPressed:fn}=$1Hnir$usePress({onPressStart:We,onPressUp:Ft,isDisabled:Rt||at&&Bt.expandedKeys.has(zt)}),{hoverProps:Tt}=$1Hnir$useHover({isDisabled:Rt,onHoverStart(){!$1Hnir$isFocusVisible()&&!(at&&Bt.expandedKeys.has(zt))&&(Bt.selectionManager.setFocused(!0),Bt.selectionManager.setFocusedKey(zt),zt===Bt.selectionManager.focusedKey&&Bt.selectionManager.isFocused&&document.activeElement!==Lt.current&&$1Hnir$focusSafely(Lt.current))},onHoverChange:mn=>{mn&&at&&!Bt.expandedKeys.has(zt)?Jn.current||(Jn.current=setTimeout(()=>{st()},200)):mn||ze()}}),{keyboardProps:dn}=$1Hnir$useKeyboard({onKeyDown:mn=>{if(mn.repeat){mn.continuePropagation();return}switch(mn.key){case" ":!Rt&&Bt.selectionManager.selectionMode==="none"&&!at&&Kt!==!1&&wt&&wt();break;case"Enter":!Rt&&Kt!==!1&&!at&&wt&&wt();break;case"ArrowRight":at&<==="ltr"?st():mn.continuePropagation();break;case"ArrowLeft":at&<==="rtl"?st():mn.continuePropagation();break;default:mn.continuePropagation();break}}});return{menuItemProps:{...ot,...$1Hnir$mergeProps(it,vn,Tt,dn)},labelProps:{id:Tn},descriptionProps:{id:An},keyboardShortcutProps:{id:Zt},isFocused:qt,isSelected:sn,isPressed:fn,isDisabled:Rt}}function hn(Yt){let{heading:Bt,"aria-label":Lt}=Yt,zt=$1Hnir$useId();return{itemProps:{role:"presentation"},headingProps:Bt?{id:zt,role:"presentation"}:{},groupProps:{role:"group","aria-label":Lt,"aria-labelledby":Bt?zt:void 0}}}},6714:(C,c,t)=>{"use strict";t.d(c,{IB:()=>pe,Ir:()=>V,Xj:()=>ve});var i=t(27702),s=t(87911),u=t(91546),v=t(2505),l=t(27473),h=t(42968);function p(ot){return ot&&ot.__esModule?ot.default:ot}const d={top:"top",bottom:"top",left:"left",right:"left"},f={top:"bottom",bottom:"top",left:"right",right:"left"},g={top:"left",left:"top"},y={top:"height",left:"width"},b={width:"totalWidth",height:"totalHeight"},E={};let S=typeof window<"u"&&window.visualViewport;function w(ot){let We=0,Ft=0,it=0,qt=0,vn=0,fn=0,Tt={};if(ot.tagName==="BODY"){let Kn=document.documentElement;it=Kn.clientWidth,qt=Kn.clientHeight;var dn;We=(dn=S?.width)!==null&&dn!==void 0?dn:it;var mn;Ft=(mn=S?.height)!==null&&mn!==void 0?mn:qt,Tt.top=Kn.scrollTop||ot.scrollTop,Tt.left=Kn.scrollLeft||ot.scrollLeft}else({width:We,height:Ft,top:vn,left:fn}=W(ot)),Tt.top=ot.scrollTop,Tt.left=ot.scrollLeft,it=We,qt=Ft;return{width:We,height:Ft,totalWidth:it,totalHeight:qt,scroll:Tt,top:vn,left:fn}}function x(ot){return{top:ot.scrollTop,left:ot.scrollLeft,width:ot.scrollWidth,height:ot.scrollHeight}}function P(ot,We,Ft,it,qt){let vn=it.scroll[ot],fn=it[y[ot]],Tt=We-qt-vn,dn=We+qt-vn+Ft;return Tt<0?-Tt:dn>fn?Math.max(fn-dn,-Tt):0}function R(ot){let We=window.getComputedStyle(ot);return{top:parseInt(We.marginTop,10)||0,bottom:parseInt(We.marginBottom,10)||0,left:parseInt(We.marginLeft,10)||0,right:parseInt(We.marginRight,10)||0}}function T(ot){if(E[ot])return E[ot];let[We,Ft]=ot.split(" "),it=d[We]||"right",qt=g[it];d[Ft]||(Ft="center");let vn=y[it],fn=y[qt];return E[ot]={placement:We,crossPlacement:Ft,axis:it,crossAxis:qt,size:vn,crossSize:fn},E[ot]}function A(ot,We,Ft,it,qt,vn,fn,Tt,dn,mn){let{placement:Kn,crossPlacement:Dn,axis:Vn,crossAxis:or,size:Qr,crossSize:ni}=it,yr={};yr[or]=ot[or],Dn==="center"?yr[or]+=(ot[ni]-Ft[ni])/2:Dn!==or&&(yr[or]+=ot[ni]-Ft[ni]),yr[or]+=vn;const si=ot[or]-Ft[ni]+dn+mn,Yr=ot[or]+ot[ni]-dn-mn;if(yr[or]=$k7QOs$clamp(yr[or],si,Yr),Kn===Vn){const Ci=Tt?fn[Qr]:We[b[Qr]];yr[f[Vn]]=Math.floor(Ci-ot[Vn]+qt)}else yr[Vn]=Math.floor(ot[Vn]+ot[Qr]+qt);return yr}function I(ot,We,Ft,it,qt,vn){return ot.top!=null?Math.max(0,We.height+We.top+We.scroll.top-(Ft.top+ot.top)-(qt.top+qt.bottom+vn)):Math.max(0,it.top+Ft.top-(We.top+We.scroll.top)-(qt.top+qt.bottom+vn))}function N(ot,We,Ft,it,qt,vn){let{placement:fn,axis:Tt,size:dn}=vn;return fn===Tt?Math.max(0,Ft[Tt]-ot[Tt]-ot.scroll[Tt]+We[Tt]-it[Tt]-it[f[Tt]]-qt):Math.max(0,ot[dn]+ot[Tt]+ot.scroll[Tt]-We[Tt]-Ft[Tt]-Ft[dn]-it[Tt]-it[f[Tt]]-qt)}function K(ot,We,Ft,it,qt,vn,fn,Tt,dn,mn,Kn,Dn,Vn,or,Qr){let ni=T(ot),{size:yr,crossAxis:si,crossSize:Yr,placement:Ci,crossPlacement:Ni}=ni,fa=A(We,Tt,Ft,ni,mn,Kn,dn,Dn,or,Qr),ha=mn,Ca=N(Tt,dn,We,qt,vn+mn,ni);if(fn&&it[yr]>Ca){let xt=T(`${f[Ci]} ${Ni}`),On=A(We,Tt,Ft,xt,mn,Kn,dn,Dn,or,Qr);N(Tt,dn,We,qt,vn+mn,xt)>Ca&&(ni=xt,fa=On,ha=mn)}let li=P(si,fa[si],Ft[Yr],Tt,vn);fa[si]+=li;let la=I(fa,Tt,dn,We,qt,vn);Vn&&Vn<la&&(la=Vn),Ft.height=Math.min(Ft.height,la),fa=A(We,Tt,Ft,ni,ha,Kn,dn,Dn,or,Qr),li=P(si,fa[si],Ft[Yr],Tt,vn),fa[si]+=li;let Oa={},wa=We[si]+.5*We[Yr]-Ft[si];const vo=or/2+Qr,Qn=Ft[Yr]-or/2-Qr,_r=We[si]-Ft[si]+or/2,$r=We[si]+We[Yr]-Ft[si]-or/2,Ti=$k7QOs$clamp(wa,_r,$r);return Oa[si]=$k7QOs$clamp(Ti,vo,Qn),{position:fa,maxHeight:la,arrowOffsetLeft:Oa.left,arrowOffsetTop:Oa.top,placement:ni.placement}}function _(ot){let{placement:We,targetNode:Ft,overlayNode:it,scrollNode:qt,padding:vn,shouldFlip:fn,boundaryElement:Tt,offset:dn,crossOffset:mn,maxHeight:Kn,arrowSize:Dn,arrowBoundaryOffset:Vn=0}=ot,or=it instanceof HTMLElement?re(it):document.documentElement,Qr=or===document.documentElement;const ni=window.getComputedStyle(or).position;let yr=!!ni&&ni!=="static",si=Qr?W(Ft):j(Ft,or);if(!Qr){let{marginTop:Ca,marginLeft:li}=window.getComputedStyle(Ft);si.top+=parseInt(Ca,10)||0,si.left+=parseInt(li,10)||0}let Yr=W(it),Ci=R(it);Yr.width+=Ci.left+Ci.right,Yr.height+=Ci.top+Ci.bottom;let Ni=x(qt),fa=w(Tt),ha=Tt.tagName==="BODY"?W(or):j(or,Tt);return K(We,si,Yr,Ni,Ci,vn,fn,fa,ha,dn,mn,yr,Kn,Dn,Vn)}function W(ot){let{top:We,left:Ft,width:it,height:qt}=ot.getBoundingClientRect(),{scrollTop:vn,scrollLeft:fn,clientTop:Tt,clientLeft:dn}=document.documentElement;return{top:We+vn-Tt,left:Ft+fn-dn,width:it,height:qt}}function j(ot,We){let Ft=window.getComputedStyle(ot),it;if(Ft.position==="fixed"){let{top:qt,left:vn,width:fn,height:Tt}=ot.getBoundingClientRect();it={top:qt,left:vn,width:fn,height:Tt}}else{it=W(ot);let qt=W(We),vn=window.getComputedStyle(We);qt.top+=(parseInt(vn.borderTopWidth,10)||0)-We.scrollTop,qt.left+=(parseInt(vn.borderLeftWidth,10)||0)-We.scrollLeft,it.top-=qt.top,it.left-=qt.left}return it.top-=parseInt(Ft.marginTop,10)||0,it.left-=parseInt(Ft.marginLeft,10)||0,it}function re(ot){let We=ot.offsetParent;if(We&&We===document.body&&window.getComputedStyle(We).position==="static"&&!X(We)&&(We=document.documentElement),We==null)for(We=ot.parentElement;We&&!X(We);)We=We.parentElement;return We||document.documentElement}function X(ot){let We=window.getComputedStyle(ot);return We.transform!=="none"||/transform|perspective/.test(We.willChange)||We.filter!=="none"||We.contain==="paint"||"backdropFilter"in We&&We.backdropFilter!=="none"||"WebkitBackdropFilter"in We&&We.WebkitBackdropFilter!=="none"}const Z=new WeakMap;function J(ot){let{triggerRef:We,isOpen:Ft,onClose:it}=ot;$k7QOs$useEffect(()=>{if(!Ft||it===null)return;let qt=vn=>{let fn=vn.target;if(!We.current||fn instanceof Node&&!fn.contains(We.current))return;let Tt=it||Z.get(We.current);Tt&&Tt()};return window.addEventListener("scroll",qt,!0),()=>{window.removeEventListener("scroll",qt,!0)}},[Ft,it,We])}let q=typeof window<"u"&&window.visualViewport;function L(ot){let{direction:We}=$k7QOs$useLocale(),{arrowSize:Ft=0,targetRef:it,overlayRef:qt,scrollRef:vn=qt,placement:fn="bottom",containerPadding:Tt=12,shouldFlip:dn=!0,boundaryElement:mn=typeof document<"u"?document.body:null,offset:Kn=0,crossOffset:Dn=0,shouldUpdatePosition:Vn=!0,isOpen:or=!0,onClose:Qr,maxHeight:ni,arrowBoundaryOffset:yr=0}=ot,[si,Yr]=$k7QOs$useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),Ci=[Vn,fn,qt.current,it.current,vn.current,Tt,dn,mn,Kn,Dn,or,We,ni,yr,Ft],Ni=$k7QOs$useCallback(()=>{if(Vn===!1||!or||!qt.current||!it.current||!vn.current||!mn)return;let Ca=_({placement:k(fn,We),overlayNode:qt.current,targetNode:it.current,scrollNode:vn.current,padding:Tt,shouldFlip:dn,boundaryElement:mn,offset:Kn,crossOffset:Dn,maxHeight:ni,arrowSize:Ft,arrowBoundaryOffset:yr});Object.keys(Ca.position).forEach(li=>qt.current.style[li]=Ca.position[li]+"px"),qt.current.style.maxHeight=Ca.maxHeight!=null?Ca.maxHeight+"px":void 0,Yr(Ca)},Ci);$k7QOs$useLayoutEffect(Ni,Ci),$(Ni),$k7QOs$useResizeObserver({ref:qt,onResize:Ni});let fa=$k7QOs$useRef(!1);$k7QOs$useLayoutEffect(()=>{let Ca,li=()=>{fa.current=!0,clearTimeout(Ca),Ca=setTimeout(()=>{fa.current=!1},500),Ni()};return q?.addEventListener("resize",li),q?.addEventListener("scroll",li),()=>{q?.removeEventListener("resize",li),q?.removeEventListener("scroll",li)}},[Ni]);let ha=$k7QOs$useCallback(()=>{fa.current||Qr()},[Qr,fa]);return J({triggerRef:it,isOpen:or,onClose:Qr&&ha}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...si.position,maxHeight:si.maxHeight}},placement:si.placement,arrowProps:{style:{left:si.arrowOffsetLeft,top:si.arrowOffsetTop}},updatePosition:Ni}}function $(ot){$k7QOs$useLayoutEffect(()=>(window.addEventListener("resize",ot,!1),()=>{window.removeEventListener("resize",ot,!1)}),[ot])}function k(ot,We){return We==="rtl"?ot.replace("start","right").replace("end","left"):ot.replace("start","left").replace("end","right")}const F=[];function V(ot,We){let{onClose:Ft,shouldCloseOnBlur:it,isOpen:qt,isDismissable:vn=!1,isKeyboardDismissDisabled:fn=!1,shouldCloseOnInteractOutside:Tt}=ot;(0,i.useEffect)(()=>(qt&&F.push(We),()=>{let Qr=F.indexOf(We);Qr>=0&&F.splice(Qr,1)}),[qt,We]);let dn=()=>{F[F.length-1]===We&&Ft&&Ft()},mn=Qr=>{(!Tt||Tt(Qr.target))&&F[F.length-1]===We&&(Qr.stopPropagation(),Qr.preventDefault())},Kn=Qr=>{(!Tt||Tt(Qr.target))&&(F[F.length-1]===We&&(Qr.stopPropagation(),Qr.preventDefault()),dn())},Dn=Qr=>{Qr.key==="Escape"&&!fn&&(Qr.stopPropagation(),Qr.preventDefault(),dn())};(0,v.Fc)({ref:We,onInteractOutside:vn?Kn:null,onInteractOutsideStart:mn});let{focusWithinProps:Vn}=(0,v.L_)({isDisabled:!it,onBlurWithin:Qr=>{Qr.relatedTarget&&(0,u.cW)(Qr.relatedTarget)||(!Tt||Tt(Qr.relatedTarget))&&Ft()}}),or=Qr=>{Qr.target===Qr.currentTarget&&Qr.preventDefault()};return{overlayProps:{onKeyDown:Dn,...Vn},underlayProps:{onPointerDown:or}}}function pe(ot,We,Ft){let{type:it}=ot,{isOpen:qt}=We;(0,i.useEffect)(()=>{Ft&&Ft.current&&Z.set(Ft.current,We.close)});let vn;it==="menu"?vn=!0:it==="listbox"&&(vn="listbox");let fn=(0,s.Me)();return{triggerProps:{"aria-haspopup":vn,"aria-expanded":qt,"aria-controls":qt?fn:null,onPress:We.toggle},overlayProps:{id:fn}}}const ce=typeof window<"u"&&window.visualViewport,G=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let te=0,ie;function fe(ot={}){let{isDisabled:We}=ot;$k7QOs$useLayoutEffect(()=>{if(!We)return te++,te===1&&($k7QOs$isIOS()?ie=he():ie=Se()),()=>{te--,te===0&&ie()}},[We])}function Se(){return $k7QOs$chain(me(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),me(document.documentElement,"overflow","hidden"))}function he(){let ot,We=0,Ft=Dn=>{ot=$k7QOs$getScrollParent(Dn.target),!(ot===document.documentElement&&ot===document.body)&&(We=Dn.changedTouches[0].pageY)},it=Dn=>{if(!ot||ot===document.documentElement||ot===document.body){Dn.preventDefault();return}let Vn=Dn.changedTouches[0].pageY,or=ot.scrollTop,Qr=ot.scrollHeight-ot.clientHeight;Qr!==0&&((or<=0&&Vn>We||or>=Qr&&Vn<We)&&Dn.preventDefault(),We=Vn)},qt=Dn=>{let Vn=Dn.target;Ge(Vn)&&Vn!==document.activeElement&&(Dn.preventDefault(),Vn.style.transform="translateY(-2000px)",Vn.focus(),requestAnimationFrame(()=>{Vn.style.transform=""}))},vn=Dn=>{let Vn=Dn.target;Ge(Vn)&&(Vn.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{Vn.style.transform="",ce&&(ce.height<window.innerHeight?requestAnimationFrame(()=>{we(Vn)}):ce.addEventListener("resize",()=>we(Vn),{once:!0}))}))},fn=()=>{window.scrollTo(0,0)},Tt=window.pageXOffset,dn=window.pageYOffset,mn=$k7QOs$chain(me(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),me(document.documentElement,"overflow","hidden"),me(document.body,"marginTop",`-${dn}px`));window.scrollTo(0,0);let Kn=$k7QOs$chain(_e(document,"touchstart",Ft,{passive:!1,capture:!0}),_e(document,"touchmove",it,{passive:!1,capture:!0}),_e(document,"touchend",qt,{passive:!1,capture:!0}),_e(document,"focus",vn,!0),_e(window,"scroll",fn));return()=>{mn(),Kn(),window.scrollTo(Tt,dn)}}function me(ot,We,Ft){let it=ot.style[We];return ot.style[We]=Ft,()=>{ot.style[We]=it}}function _e(ot,We,Ft,it){return ot.addEventListener(We,Ft,it),()=>{ot.removeEventListener(We,Ft,it)}}function we(ot){let We=document.scrollingElement||document.documentElement;for(;ot&&ot!==We;){let Ft=$k7QOs$getScrollParent(ot);if(Ft!==document.documentElement&&Ft!==document.body&&Ft!==ot){let it=Ft.getBoundingClientRect().top,qt=ot.getBoundingClientRect().top;qt>it+ot.clientHeight&&(Ft.scrollTop+=qt-it)}ot=Ft.parentElement}}function Ge(ot){return ot instanceof HTMLInputElement&&!G.has(ot.type)||ot instanceof HTMLTextAreaElement||ot instanceof HTMLElement&&ot.isContentEditable}const ht=i.createContext(null);function nt(ot){let{children:We}=ot,Ft=(0,i.useContext)(ht),[it,qt]=(0,i.useState)(0),vn=(0,i.useMemo)(()=>({parent:Ft,modalCount:it,addModal(){qt(fn=>fn+1),Ft&&Ft.addModal()},removeModal(){qt(fn=>fn-1),Ft&&Ft.removeModal()}}),[Ft,it]);return i.createElement(ht.Provider,{value:vn},We)}function Re(){let ot=(0,i.useContext)(ht);return{modalProviderProps:{"aria-hidden":ot&&ot.modalCount>0?!0:null}}}function ue(ot){let{modalProviderProps:We}=Re();return i.createElement("div",{"data-overlay-container":!0,...ot,...We})}function ae(ot){return i.createElement(nt,null,i.createElement(ue,ot))}function ve(ot){let We=(0,h.Av)(),{portalContainer:Ft=We?null:document.body,...it}=ot;if(i.useEffect(()=>{if(Ft?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[Ft]),!Ft)return null;let qt=i.createElement(ae,it);return l.createPortal(qt,Ft)}function Me(ot){let We=$k7QOs$useContext(ht);if(!We)throw new Error("Modal is not contained within a provider");return $k7QOs$useEffect(()=>{if(!(ot?.isDisabled||!We||!We.parent))return We.parent.addModal(),()=>{We&&We.parent&&We.parent.removeModal()}},[We,We.parent,ot?.isDisabled]),{modalProps:{"data-ismodal":!ot?.isDisabled}}}var Ye={},qe={};qe={dismiss:"\u062A\u062C\u0627\u0647\u0644"};var At={};At={dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"};var It={};It={dismiss:"Odstranit"};var Ce={};Ce={dismiss:"Luk"};var Ae={};Ae={dismiss:"Schlie\xDFen"};var $e={};$e={dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"};var tt={};tt={dismiss:"Dismiss"};var ke={};ke={dismiss:"Descartar"};var Oe={};Oe={dismiss:"L\xF5peta"};var je={};je={dismiss:"Hylk\xE4\xE4"};var Et={};Et={dismiss:"Rejeter"};var ct={};ct={dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"};var ut={};ut={dismiss:"Odbaci"};var Ne={};Ne={dismiss:"Elutas\xEDt\xE1s"};var mt={};mt={dismiss:"Ignora"};var bt={};bt={dismiss:"\u9589\u3058\u308B"};var Gt={};Gt={dismiss:"\uBB34\uC2DC"};var hn={};hn={dismiss:"Atmesti"};var Yt={};Yt={dismiss:"Ner\u0101d\u012Bt"};var Bt={};Bt={dismiss:"Lukk"};var Lt={};Lt={dismiss:"Negeren"};var zt={};zt={dismiss:"Zignoruj"};var Kt={};Kt={dismiss:"Descartar"};var vt={};vt={dismiss:"Dispensar"};var Ve={};Ve={dismiss:"Revocare"};var lt={};lt={dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"};var at={};at={dismiss:"Zru\u0161i\u0165"};var Xt={};Xt={dismiss:"Opusti"};var rt={};rt={dismiss:"Odbaci"};var Rt={};Rt={dismiss:"Avvisa"};var rn={};rn={dismiss:"Kapat"};var sn={};sn={dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"};var Jn={};Jn={dismiss:"\u53D6\u6D88"};var ze={};ze={dismiss:"\u95DC\u9589"},Ye={"ar-AE":qe,"bg-BG":At,"cs-CZ":It,"da-DK":Ce,"de-DE":Ae,"el-GR":$e,"en-US":tt,"es-ES":ke,"et-EE":Oe,"fi-FI":je,"fr-FR":Et,"he-IL":ct,"hr-HR":ut,"hu-HU":Ne,"it-IT":mt,"ja-JP":bt,"ko-KR":Gt,"lt-LT":hn,"lv-LV":Yt,"nb-NO":Bt,"nl-NL":Lt,"pl-PL":zt,"pt-BR":Kt,"pt-PT":vt,"ro-RO":Ve,"ru-RU":lt,"sk-SK":at,"sl-SI":Xt,"sr-SP":rt,"sv-SE":Rt,"tr-TR":rn,"uk-UA":sn,"zh-CN":Jn,"zh-TW":ze};function st(ot){let{onDismiss:We,...Ft}=ot,it=$k7QOs$useLocalizedStringFormatter(p(Ye)),qt=$k7QOs$useLabels(Ft,it.format("dismiss")),vn=()=>{We&&We()};return $k7QOs$react.createElement($k7QOs$VisuallyHidden,null,$k7QOs$react.createElement("button",{...qt,tabIndex:-1,onClick:vn}))}let en=new WeakMap,wt=null;function Ke(ot,We=document.body){let Ft=new Set(ot),it=new Set,qt=dn=>{for(let Vn of dn.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))Ft.add(Vn);let mn=Vn=>{if(Ft.has(Vn)||it.has(Vn.parentElement)&&Vn.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let or of Ft)if(Vn.contains(or))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},Kn=document.createTreeWalker(dn,NodeFilter.SHOW_ELEMENT,{acceptNode:mn}),Dn=mn(dn);if(Dn===NodeFilter.FILTER_ACCEPT&&vn(dn),Dn!==NodeFilter.FILTER_REJECT){let Vn=Kn.nextNode();for(;Vn!=null;)vn(Vn),Vn=Kn.nextNode()}},vn=dn=>{var mn;let Kn=(mn=en.get(dn))!==null&&mn!==void 0?mn:0;dn.getAttribute("aria-hidden")==="true"&&Kn===0||(Kn===0&&dn.setAttribute("aria-hidden","true"),it.add(dn),en.set(dn,Kn+1))};wt.length&&wt[wt.length-1].disconnect(),qt(We);let fn=new MutationObserver(dn=>{for(let mn of dn)if(!(mn.type!=="childList"||mn.addedNodes.length===0)&&![...Ft,...it].some(Kn=>Kn.contains(mn.target))){for(let Kn of mn.removedNodes)Kn instanceof Element&&(Ft.delete(Kn),it.delete(Kn));for(let Kn of mn.addedNodes)(Kn instanceof HTMLElement||Kn instanceof SVGElement)&&(Kn.dataset.liveAnnouncer==="true"||Kn.dataset.reactAriaTopLayer==="true")?Ft.add(Kn):Kn instanceof Element&&qt(Kn)}});fn.observe(We,{childList:!0,subtree:!0});let Tt={observe(){fn.observe(We,{childList:!0,subtree:!0})},disconnect(){fn.disconnect()}};return wt.push(Tt),()=>{fn.disconnect();for(let dn of it){let mn=en.get(dn);mn===1?(dn.removeAttribute("aria-hidden"),en.delete(dn)):en.set(dn,mn-1)}Tt===wt[wt.length-1]?(wt.pop(),wt.length&&wt[wt.length-1].observe()):wt.splice(wt.indexOf(Tt),1)}}function Ut(ot,We){let{triggerRef:Ft,popoverRef:it,isNonModal:qt,isKeyboardDismissDisabled:vn,...fn}=ot,{overlayProps:Tt,underlayProps:dn}=V({isOpen:We.isOpen,onClose:We.close,shouldCloseOnBlur:!0,isDismissable:!qt,isKeyboardDismissDisabled:vn},it),{overlayProps:mn,arrowProps:Kn,placement:Dn}=L({...fn,targetRef:Ft,overlayRef:it,isOpen:We.isOpen,onClose:null});return fe({isDisabled:qt}),$k7QOs$useLayoutEffect(()=>{if(We.isOpen&&!qt&&it.current)return Ke([it.current])},[qt,We.isOpen,it]),{popoverProps:$k7QOs$mergeProps(Tt,mn),arrowProps:Kn,underlayProps:dn,placement:Dn}}const on=null;function Tn(ot){let We=$k7QOs$useIsSSR(),{portalContainer:Ft=We?null:document.body}=ot,[it,qt]=$k7QOs$useState(!1),vn=$k7QOs$useMemo(()=>({contain:it,setContain:qt}),[it,qt]);if(!Ft)return null;let fn;return ot.disableFocusManagement?fn=$k7QOs$react.createElement(on.Provider,{value:vn},ot.children):fn=$k7QOs$react.createElement(on.Provider,{value:vn},$k7QOs$react.createElement($k7QOs$FocusScope,{restoreFocus:!0,contain:it},ot.children)),$k7QOs$reactdom.createPortal(fn,Ft)}function An(){let ot=$k7QOs$useContext(on),We=ot?.setContain;$k7QOs$useLayoutEffect(()=>{We?.(!0)},[We])}function Zt(ot,We,Ft){let{overlayProps:it,underlayProps:qt}=V({...ot,isOpen:We.isOpen,onClose:We.close},Ft);return fe({isDisabled:!We.isOpen}),An(),$k7QOs$useEffect(()=>{if(We.isOpen)return Ke([Ft.current])},[We.isOpen,Ft]),{modalProps:$k7QOs$mergeProps(it),underlayProps:qt}}},42968:(C,c,t)=>{"use strict";t.d(c,{Av:()=>x,gP:()=>b});var i=t(27702);const s={prefix:String(Math.round(Math.random()*1e10)),current:0,isSSR:!1},u=i.createContext(s);function v(P){let R=$89yE2$useContext(u),T=f(R===s),[A,I]=$89yE2$useState(!0),N=$89yE2$useMemo(()=>({prefix:R===s?"":`${R.prefix}-${T}`,current:0,isSSR:A}),[R,T,A]);return typeof window<"u"&&$89yE2$useLayoutEffect(()=>{I(!1)},[]),$89yE2$react.createElement(u.Provider,{value:N},P.children)}let l=!1;function h(P){return typeof $89yE2$react.useId=="function"?(l||(console.warn("In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app."),l=!0),$89yE2$react.createElement($89yE2$react.Fragment,null,P.children)):$89yE2$react.createElement(v,P)}let p=!!(typeof window<"u"&&window.document&&window.document.createElement),d=new WeakMap;function f(P=!1){let R=(0,i.useContext)(u),T=(0,i.useRef)(null);if(T.current===null&&!P){var A,I;let N=(A=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||A===void 0||(I=A.ReactCurrentOwner)===null||I===void 0?void 0:I.current;if(N){let K=d.get(N);K==null?d.set(N,{id:R.current,state:N.memoizedState}):N.memoizedState!==K.state&&(R.current=K.id,d.delete(N))}T.current=++R.current}return T.current}function g(P){let R=(0,i.useContext)(u);R===s&&!p&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let T=f(!!P);return P||`react-aria${R.prefix}-${T}`}function y(P){let R=i.useId(),[T]=(0,i.useState)(x()),A=T?"react-aria":`react-aria${s.prefix}`;return P||`${A}-${R}`}const b=typeof i.useId=="function"?y:g;function E(){return!1}function S(){return!0}function w(P){return()=>{}}function x(){return typeof i.useSyncExternalStore=="function"?i.useSyncExternalStore(w,E,S):(0,i.useContext)(u).isSSR}},87911:(C,c,t)=>{"use strict";t.d(c,{Ao:()=>P,Me:()=>p,PK:()=>Se,QB:()=>j,V5:()=>_e,Zj:()=>It,bt:()=>v,cr:()=>Ce,dG:()=>y,gn:()=>ht,iW:()=>ve,lE:()=>F,mp:()=>f,xi:()=>Z,zL:()=>x});var i=t(27702),s=t(42968),u=t(95047);const v=typeof window<"u"?i.useLayoutEffect:()=>{};function l($e){let[tt,ke]=(0,i.useState)($e),Oe=(0,i.useRef)(tt),je=(0,i.useRef)(null),Et=(0,i.useCallback)(()=>{let ut=je.current.next();for(;!ut.done&&Oe.current===ut.value;)ut=je.current.next();if(ut.done){je.current=null;return}ke(ut.value),Oe.current=ut.value},[ke,Oe,je]);v(()=>{je.current&&Et()});let ct=(0,i.useCallback)(ut=>{je.current=ut(Oe.current),Et()},[Et,je,Oe]);return[tt,ct]}let h=new Map;function p($e){let[tt,ke]=(0,i.useState)($e),Oe=(0,i.useRef)(null),je=(0,s.gP)(tt),Et=(0,i.useCallback)(ct=>{Oe.current=ct},[]);return h.set(je,Et),v(()=>{let ct=je;return()=>{h.delete(ct)}},[je]),(0,i.useEffect)(()=>{let ct=Oe.current;ct&&(Oe.current=null,ke(ct))}),je}function d($e,tt){if($e===tt)return $e;let ke=h.get($e);if(ke)return ke(tt),tt;let Oe=h.get(tt);return Oe?(Oe($e),$e):tt}function f($e=[]){let tt=p(),[ke,Oe]=l(tt),je=(0,i.useCallback)(()=>{Oe(function*(){yield tt,yield document.getElementById(tt)?tt:void 0})},[tt,Oe]);return v(je,[tt,je,...$e]),ke}function g(...$e){return(...tt)=>{for(let ke of $e)typeof ke=="function"&&ke(...tt)}}function y(...$e){let tt={...$e[0]};for(let ke=1;ke<$e.length;ke++){let Oe=$e[ke];for(let je in Oe){let Et=tt[je],ct=Oe[je];typeof Et=="function"&&typeof ct=="function"&&je[0]==="o"&&je[1]==="n"&&je.charCodeAt(2)>=65&&je.charCodeAt(2)<=90?tt[je]=g(Et,ct):(je==="className"||je==="UNSAFE_className")&&typeof Et=="string"&&typeof ct=="string"?tt[je]=(0,u.default)(Et,ct):je==="id"&&Et&&ct?tt.id=d(Et,ct):tt[je]=ct!==void 0?ct:Et}}return tt}function b(...$e){return $e.length===1?$e[0]:tt=>{for(let ke of $e)typeof ke=="function"?ke(tt):ke!=null&&(ke.current=tt)}}const E=new Set(["id"]),S=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),w=/^(data-.*)$/;function x($e,tt={}){let{labelable:ke,propNames:Oe}=tt,je={};for(const Et in $e)Object.prototype.hasOwnProperty.call($e,Et)&&(E.has(Et)||ke&&S.has(Et)||Oe?.has(Et)||w.test(Et))&&(je[Et]=$e[Et]);return je}function P($e){if(T())$e.focus({preventScroll:!0});else{let tt=A($e);$e.focus(),I(tt)}}let R=null;function T(){if(R==null){R=!1;try{var $e=document.createElement("div");$e.focus({get preventScroll(){return R=!0,!0}})}catch{}}return R}function A($e){for(var tt=$e.parentNode,ke=[],Oe=document.scrollingElement||document.documentElement;tt instanceof HTMLElement&&tt!==Oe;)(tt.offsetHeight<tt.scrollHeight||tt.offsetWidth<tt.scrollWidth)&&ke.push({element:tt,scrollTop:tt.scrollTop,scrollLeft:tt.scrollLeft}),tt=tt.parentNode;return Oe instanceof HTMLElement&&ke.push({element:Oe,scrollTop:Oe.scrollTop,scrollLeft:Oe.scrollLeft}),ke}function I($e){for(let{element:tt,scrollTop:ke,scrollLeft:Oe}of $e)tt.scrollTop=ke,tt.scrollLeft=Oe}function N($e,tt,ke="horizontal"){let Oe=$e.getBoundingClientRect();return tt?ke==="horizontal"?Oe.right:Oe.bottom:ke==="horizontal"?Oe.left:Oe.top}let K=new Map,_=new Set;function W(){if(typeof window>"u")return;let $e=ke=>{let Oe=K.get(ke.target);Oe||(Oe=new Set,K.set(ke.target,Oe),ke.target.addEventListener("transitioncancel",tt)),Oe.add(ke.propertyName)},tt=ke=>{let Oe=K.get(ke.target);if(Oe&&(Oe.delete(ke.propertyName),Oe.size===0&&(ke.target.removeEventListener("transitioncancel",tt),K.delete(ke.target)),K.size===0)){for(let je of _)je();_.clear()}};document.body.addEventListener("transitionrun",$e),document.body.addEventListener("transitionend",tt)}typeof document<"u"&&(document.readyState!=="loading"?W():document.addEventListener("DOMContentLoaded",W));function j($e){requestAnimationFrame(()=>{K.size===0?$e():_.add($e)})}const re=null;function X($e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:tt,reverse:ke,orientation:Oe,onHover:je,onDrag:Et,onPositionChange:ct,onIncrement:ut,onDecrement:Ne,onIncrementToMax:mt,onDecrementToMin:bt,onCollapseToggle:Gt}=$e,hn=rt=>Oe==="horizontal"?rt.clientX:rt.clientY,Yt=rt=>{let Rt=N(tt.current,ke,Oe),rn=hn(rt);return ke?Rt-rn:rn-Rt},Bt=$12uGp$useRef(!1),Lt=$12uGp$useRef(0),zt=$12uGp$useRef({onPositionChange:ct,onDrag:Et});zt.current.onDrag=Et,zt.current.onPositionChange=ct;let Kt=rt=>{rt.preventDefault();let Rt=Yt(rt);Bt.current||(Bt.current=!0,zt.current.onDrag&&zt.current.onDrag(!0),zt.current.onPositionChange&&zt.current.onPositionChange(Rt)),Lt.current!==Rt&&(Lt.current=Rt,ct&&ct(Rt))},vt=rt=>{const Rt=rt.target;Bt.current=!1;let rn=Yt(rt);zt.current.onDrag&&zt.current.onDrag(!1),zt.current.onPositionChange&&zt.current.onPositionChange(rn),re.splice(re.indexOf(Rt),1),window.removeEventListener("mouseup",vt,!1),window.removeEventListener("mousemove",Kt,!1)};return{onMouseDown:rt=>{const Rt=rt.currentTarget;re.some(rn=>Rt.contains(rn))||(re.push(Rt),window.addEventListener("mousemove",Kt,!1),window.addEventListener("mouseup",vt,!1))},onMouseEnter:()=>{je&&je(!0)},onMouseOut:()=>{je&&je(!1)},onKeyDown:rt=>{switch(rt.key){case"Left":case"ArrowLeft":Oe==="horizontal"&&(rt.preventDefault(),Ne&&!ke?Ne():ut&&ke&&ut());break;case"Up":case"ArrowUp":Oe==="vertical"&&(rt.preventDefault(),Ne&&!ke?Ne():ut&&ke&&ut());break;case"Right":case"ArrowRight":Oe==="horizontal"&&(rt.preventDefault(),ut&&!ke?ut():Ne&&ke&&Ne());break;case"Down":case"ArrowDown":Oe==="vertical"&&(rt.preventDefault(),ut&&!ke?ut():Ne&&ke&&Ne());break;case"Home":rt.preventDefault(),bt&&bt();break;case"End":rt.preventDefault(),mt&&mt();break;case"Enter":rt.preventDefault(),Gt&&Gt();break}}}}function Z(){let $e=(0,i.useRef)(new Map),tt=(0,i.useCallback)((je,Et,ct,ut)=>{let Ne=ut?.once?(...mt)=>{$e.current.delete(ct),ct(...mt)}:ct;$e.current.set(ct,{type:Et,eventTarget:je,fn:Ne,options:ut}),je.addEventListener(Et,ct,ut)},[]),ke=(0,i.useCallback)((je,Et,ct,ut)=>{var Ne;let mt=((Ne=$e.current.get(ct))===null||Ne===void 0?void 0:Ne.fn)||ct;je.removeEventListener(Et,mt,ut),$e.current.delete(ct)},[]),Oe=(0,i.useCallback)(()=>{$e.current.forEach((je,Et)=>{ke(je.eventTarget,je.type,Et,je.options)})},[ke]);return(0,i.useEffect)(()=>Oe,[Oe]),{addGlobalListener:tt,removeGlobalListener:ke,removeAllGlobalListeners:Oe}}function J($e,tt){let{id:ke,"aria-label":Oe,"aria-labelledby":je}=$e;return ke=p(ke),je&&Oe?je=[...new Set([ke,...je.trim().split(/\s+/)])].join(" "):je&&(je=je.trim().split(/\s+/).join(" ")),!Oe&&!je&&tt&&(Oe=tt),{id:ke,"aria-label":Oe,"aria-labelledby":je}}function q($e){const tt=$12uGp$useRef();return $12uGp$useMemo(()=>({get current(){return tt.current},set current(ke){tt.current=ke,typeof $e=="function"?$e(ke):$e&&($e.current=ke)}}),[$e])}function L($e,tt){const ke=$12uGp$useRef(!0),Oe=$12uGp$useRef(null);$12uGp$useEffect(()=>(ke.current=!0,()=>{ke.current=!1}),[]),$12uGp$useEffect(()=>{ke.current?ke.current=!1:(!Oe.current||tt.some((je,Et)=>!Object.is(je,Oe[Et])))&&$e(),Oe.current=tt},tt)}function $(){return typeof window.ResizeObserver<"u"}function k($e){const{ref:tt,onResize:ke}=$e;$12uGp$useEffect(()=>{let Oe=tt?.current;if(Oe)if($()){const je=new window.ResizeObserver(Et=>{Et.length&&ke()});return je.observe(Oe),()=>{Oe&&je.unobserve(Oe)}}else return window.addEventListener("resize",ke,!1),()=>{window.removeEventListener("resize",ke,!1)}},[ke,tt])}function F($e,tt){v(()=>{if($e&&$e.ref&&tt)return $e.ref.current=tt.current,()=>{$e.ref.current=null}},[$e,tt])}function V($e){for(pe($e)&&($e=$e.parentElement);$e&&!pe($e);)$e=$e.parentElement;return $e||document.scrollingElement||document.documentElement}function pe($e){let tt=window.getComputedStyle($e);return/(auto|scroll)/.test(tt.overflow+tt.overflowX+tt.overflowY)}let ce=typeof window<"u"&&window.visualViewport;function G(){let[$e,tt]=$12uGp$useState(()=>te());return $12uGp$useEffect(()=>{let ke=()=>{tt(Oe=>{let je=te();return je.width===Oe.width&&je.height===Oe.height?Oe:je})};return ce?ce.addEventListener("resize",ke):window.addEventListener("resize",ke),()=>{ce?ce.removeEventListener("resize",ke):window.removeEventListener("resize",ke)}},[]),$e}function te(){return{width:ce?.width||window.innerWidth,height:ce?.height||window.innerHeight}}let ie=0;const fe=new Map;function Se($e){let[tt,ke]=(0,i.useState)(void 0);return v(()=>{if(!$e)return;let Oe=fe.get($e);if(Oe)ke(Oe.element.id);else{let je=`react-aria-description-${ie++}`;ke(je);let Et=document.createElement("div");Et.id=je,Et.style.display="none",Et.textContent=$e,document.body.appendChild(Et),Oe={refCount:0,element:Et},fe.set($e,Oe)}return Oe.refCount++,()=>{--Oe.refCount===0&&(Oe.element.remove(),fe.delete($e))}},[$e]),{"aria-describedby":$e?tt:void 0}}function he($e){var tt;return typeof window>"u"||window.navigator==null?!1:((tt=window.navigator.userAgentData)===null||tt===void 0?void 0:tt.brands.some(ke=>$e.test(ke.brand)))||$e.test(window.navigator.userAgent)}function me($e){var tt;return typeof window<"u"&&window.navigator!=null?$e.test(((tt=window.navigator.userAgentData)===null||tt===void 0?void 0:tt.platform)||window.navigator.platform):!1}function _e(){return me(/^Mac/i)}function we(){return me(/^iPhone/i)}function Ge(){return me(/^iPad/i)||_e()&&navigator.maxTouchPoints>1}function ht(){return we()||Ge()}function nt(){return _e()||ht()}function Re(){return he(/AppleWebKit/i)&&!ue()}function ue(){return he(/Chrome/i)}function ae(){return he(/Android/i)}function ve($e){const tt=(0,i.useRef)(null);return v(()=>{tt.current=$e},[$e]),(0,i.useCallback)((...ke)=>{const Oe=tt.current;return Oe(...ke)},[])}function Me($e,tt,ke,Oe){let je=ve(ke),Et=ke==null;$12uGp$useEffect(()=>{if(Et)return;let ct=$e.current;return ct.addEventListener(tt,je,Oe),()=>{ct.removeEventListener(tt,je,Oe)}},[$e,tt,Oe,Et,je])}function Ye($e,tt){let ke=qe($e,tt,"left"),Oe=qe($e,tt,"top"),je=tt.offsetWidth,Et=tt.offsetHeight,ct=$e.scrollLeft,ut=$e.scrollTop,{borderTopWidth:Ne,borderLeftWidth:mt}=getComputedStyle($e),bt=$e.scrollLeft+parseInt(mt,10),Gt=$e.scrollTop+parseInt(Ne,10),hn=bt+$e.clientWidth,Yt=Gt+$e.clientHeight;ke<=ct?ct=ke-parseInt(mt,10):ke+je>hn&&(ct+=ke+je-hn),Oe<=Gt?ut=Oe-parseInt(Ne,10):Oe+Et>Yt&&(ut+=Oe+Et-Yt),$e.scrollLeft=ct,$e.scrollTop=ut}function qe($e,tt,ke){const Oe=ke==="left"?"offsetLeft":"offsetTop";let je=0;for(;tt.offsetParent&&(je+=tt[Oe],tt.offsetParent!==$e);){if(tt.offsetParent.contains($e)){je-=$e[Oe];break}tt=tt.offsetParent}return je}function At($e,tt){if(document.contains($e)){let ct=document.scrollingElement||document.documentElement;if(window.getComputedStyle(ct).overflow==="hidden"){let Ne=V($e);for(;$e&&Ne&&$e!==ct&&Ne!==ct;)Ye(Ne,$e),$e=Ne,Ne=V($e)}else{var ke;let{left:Ne,top:mt}=$e.getBoundingClientRect();$e==null||(ke=$e.scrollIntoView)===null||ke===void 0||ke.call($e,{block:"nearest"});let{left:bt,top:Gt}=$e.getBoundingClientRect();if(Math.abs(Ne-bt)>1||Math.abs(mt-Gt)>1){var Oe,je,Et;tt==null||(Oe=tt.containingElement)===null||Oe===void 0||(je=Oe.scrollIntoView)===null||je===void 0||je.call(Oe,{block:"center",inline:"center"}),(Et=$e.scrollIntoView)===null||Et===void 0||Et.call($e,{block:"nearest"})}}}}function It($e){return $e.mozInputSource===0&&$e.isTrusted?!0:ae()&&$e.pointerType?$e.type==="click"&&$e.buttons===1:$e.detail===0&&!$e.pointerType}function Ce($e){return $e.width===0&&$e.height===0||$e.width===1&&$e.height===1&&$e.pressure===0&&$e.detail===0&&$e.pointerType==="mouse"}function Ae($e,tt){let ke=$12uGp$useRef(null);return $e&&ke.current&&tt($e,ke.current)&&($e=ke.current),ke.current=$e,$e}},5927:(C,c,t)=>{"use strict";t.d(c,{W:()=>p});var i=t(27702);function s(d,f,g){let[y,b]=(0,i.useState)(d||f),E=(0,i.useRef)(d!==void 0),S=d!==void 0;(0,i.useEffect)(()=>{let P=E.current;P!==S&&console.warn(`WARN: A component changed from ${P?"controlled":"uncontrolled"} to ${S?"controlled":"uncontrolled"}.`),E.current=S},[S]);let w=S?d:y,x=(0,i.useCallback)((P,...R)=>{let T=(A,...I)=>{g&&(Object.is(w,A)||g(A,...I)),S||(w=A)};typeof P=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),b((I,...N)=>{let K=P(S?w:I,...N);return T(K,...R),S?I:K})):(S||b(P),T(P,...R))},[S,w,g]);return[w,x]}function u(d,f=-1/0,g=1/0){return Math.min(Math.max(d,f),g)}function v(d,f,g,y){let b=(d-(isNaN(f)?0:f))%y,E=Math.abs(b)*2>=y?d+Math.sign(b)*(y-Math.abs(b)):d-b;isNaN(f)?!isNaN(g)&&E>g&&(E=Math.floor(g/y)*y):E<f?E=f:!isNaN(g)&&E>g&&(E=f+Math.floor((g-f)/y)*y);let S=y.toString(),w=S.indexOf("."),x=w>=0?S.length-w:0;if(x>0){let P=Math.pow(10,x);E=Math.round(E*P)/P}return E}function l(d,f,g=10){const y=Math.pow(g,f);return Math.round(d*y)/y}function h(d){let[f,g]=s(d.isOpen,d.defaultOpen||!1,d.onOpenChange);const y=(0,i.useCallback)(()=>{g(!0)},[g]),b=(0,i.useCallback)(()=>{g(!1)},[g]),E=(0,i.useCallback)(()=>{g(!f)},[g,f]);return{isOpen:f,setOpen:g,open:y,close:b,toggle:E}}function p(d){let f=h(d),[g,y]=(0,i.useState)(null);return{focusStrategy:g,...f,open(b=null){y(b),f.open()},toggle(b=null){y(b),f.toggle()}}}},53938:(C,c,t)=>{"use strict";t.d(c,{d:()=>i});function i(){return{mangle:!1,walkTokens(u){if(u.type!=="link"||!u.href.startsWith("mailto:"))return;const v=u.href.substring(7),l=s(v);u.href=`mailto:${l}`,!(u.tokens.length!==1||u.tokens[0].type!=="text"||u.tokens[0].text!==v)&&(u.text=l,u.tokens[0].text=l)}}}function s(u){let v="",l,h;const p=u.length;for(l=0;l<p;l++)h=u.charCodeAt(l),Math.random()>.5&&(h="x"+h.toString(16)),v+="&#"+h+";";return v}},27463:(C,c,t)=>{"use strict";t.d(c,{ef:()=>bt});var i=t(27702);function s(){return(s=Object.assign||function(Ve){for(var lt=1;lt<arguments.length;lt++){var at=arguments[lt];for(var Xt in at)Object.prototype.hasOwnProperty.call(at,Xt)&&(Ve[Xt]=at[Xt])}return Ve}).apply(this,arguments)}function u(Ve,lt){if(Ve==null)return{};var at,Xt,rt={},Rt=Object.keys(Ve);for(Xt=0;Xt<Rt.length;Xt++)lt.indexOf(at=Rt[Xt])>=0||(rt[at]=Ve[at]);return rt}function v(Ve){var lt=(0,i.useRef)(Ve),at=(0,i.useRef)(function(Xt){lt.current&<.current(Xt)});return lt.current=Ve,at.current}var l=function(Ve,lt,at){return lt===void 0&&(lt=0),at===void 0&&(at=1),Ve>at?at:Ve<lt?lt:Ve},h=function(Ve){return"touches"in Ve},p=function(Ve){return Ve&&Ve.ownerDocument.defaultView||self},d=function(Ve,lt,at){var Xt=Ve.getBoundingClientRect(),rt=h(lt)?function(Rt,rn){for(var sn=0;sn<Rt.length;sn++)if(Rt[sn].identifier===rn)return Rt[sn];return Rt[0]}(lt.touches,at):lt;return{left:l((rt.pageX-(Xt.left+p(Ve).pageXOffset))/Xt.width),top:l((rt.pageY-(Xt.top+p(Ve).pageYOffset))/Xt.height)}},f=function(Ve){!h(Ve)&&Ve.preventDefault()},g=i.memo(function(Ve){var lt=Ve.onMove,at=Ve.onKey,Xt=u(Ve,["onMove","onKey"]),rt=(0,i.useRef)(null),Rt=v(lt),rn=v(at),sn=(0,i.useRef)(null),Jn=(0,i.useRef)(!1),ze=(0,i.useMemo)(function(){var Ke=function(Tn){f(Tn),(h(Tn)?Tn.touches.length>0:Tn.buttons>0)&&rt.current?Rt(d(rt.current,Tn,sn.current)):on(!1)},Ut=function(){return on(!1)};function on(Tn){var An=Jn.current,Zt=p(rt.current),ot=Tn?Zt.addEventListener:Zt.removeEventListener;ot(An?"touchmove":"mousemove",Ke),ot(An?"touchend":"mouseup",Ut)}return[function(Tn){var An=Tn.nativeEvent,Zt=rt.current;if(Zt&&(f(An),!function(We,Ft){return Ft&&!h(We)}(An,Jn.current)&&Zt)){if(h(An)){Jn.current=!0;var ot=An.changedTouches||[];ot.length&&(sn.current=ot[0].identifier)}Zt.focus(),Rt(d(Zt,An,sn.current)),on(!0)}},function(Tn){var An=Tn.which||Tn.keyCode;An<37||An>40||(Tn.preventDefault(),rn({left:An===39?.05:An===37?-.05:0,top:An===40?.05:An===38?-.05:0}))},on]},[rn,Rt]),st=ze[0],en=ze[1],wt=ze[2];return(0,i.useEffect)(function(){return wt},[wt]),i.createElement("div",s({},Xt,{onTouchStart:st,onMouseDown:st,className:"react-colorful__interactive",ref:rt,onKeyDown:en,tabIndex:0,role:"slider"}))}),y=function(Ve){return Ve.filter(Boolean).join(" ")},b=function(Ve){var lt=Ve.color,at=Ve.left,Xt=Ve.top,rt=Xt===void 0?.5:Xt,Rt=y(["react-colorful__pointer",Ve.className]);return i.createElement("div",{className:Rt,style:{top:100*rt+"%",left:100*at+"%"}},i.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:lt}}))},E=function(Ve,lt,at){return lt===void 0&&(lt=0),at===void 0&&(at=Math.pow(10,lt)),Math.round(at*Ve)/at},S={grad:.9,turn:360,rad:360/(2*Math.PI)},w=function(Ve){return L(x(Ve))},x=function(Ve){return Ve[0]==="#"&&(Ve=Ve.substring(1)),Ve.length<6?{r:parseInt(Ve[0]+Ve[0],16),g:parseInt(Ve[1]+Ve[1],16),b:parseInt(Ve[2]+Ve[2],16),a:Ve.length===4?E(parseInt(Ve[3]+Ve[3],16)/255,2):1}:{r:parseInt(Ve.substring(0,2),16),g:parseInt(Ve.substring(2,4),16),b:parseInt(Ve.substring(4,6),16),a:Ve.length===8?E(parseInt(Ve.substring(6,8),16)/255,2):1}},P=function(Ve,lt){return lt===void 0&&(lt="deg"),Number(Ve)*(S[lt]||1)},R=function(Ve){var lt=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(Ve);return lt?A({h:P(lt[1],lt[2]),s:Number(lt[3]),l:Number(lt[4]),a:lt[5]===void 0?1:Number(lt[5])/(lt[6]?100:1)}):{h:0,s:0,v:0,a:1}},T=R,A=function(Ve){var lt=Ve.s,at=Ve.l;return{h:Ve.h,s:(lt*=(at<50?at:100-at)/100)>0?2*lt/(at+lt)*100:0,v:at+lt,a:Ve.a}},I=function(Ve){return q(W(Ve))},N=function(Ve){var lt=Ve.s,at=Ve.v,Xt=Ve.a,rt=(200-lt)*at/100;return{h:E(Ve.h),s:E(rt>0&&rt<200?lt*at/100/(rt<=100?rt:200-rt)*100:0),l:E(rt/2),a:E(Xt,2)}},K=function(Ve){var lt=N(Ve);return"hsl("+lt.h+", "+lt.s+"%, "+lt.l+"%)"},_=function(Ve){var lt=N(Ve);return"hsla("+lt.h+", "+lt.s+"%, "+lt.l+"%, "+lt.a+")"},W=function(Ve){var lt=Ve.h,at=Ve.s,Xt=Ve.v,rt=Ve.a;lt=lt/360*6,at/=100,Xt/=100;var Rt=Math.floor(lt),rn=Xt*(1-at),sn=Xt*(1-(lt-Rt)*at),Jn=Xt*(1-(1-lt+Rt)*at),ze=Rt%6;return{r:E(255*[Xt,sn,rn,rn,Jn,Xt][ze]),g:E(255*[Jn,Xt,Xt,sn,rn,rn][ze]),b:E(255*[rn,rn,Jn,Xt,Xt,sn][ze]),a:E(rt,2)}},j=function(Ve){var lt=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(Ve);return lt?$({h:P(lt[1],lt[2]),s:Number(lt[3]),v:Number(lt[4]),a:lt[5]===void 0?1:Number(lt[5])/(lt[6]?100:1)}):{h:0,s:0,v:0,a:1}},re=j,X=function(Ve){var lt=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(Ve);return lt?L({r:Number(lt[1])/(lt[2]?100/255:1),g:Number(lt[3])/(lt[4]?100/255:1),b:Number(lt[5])/(lt[6]?100/255:1),a:lt[7]===void 0?1:Number(lt[7])/(lt[8]?100:1)}):{h:0,s:0,v:0,a:1}},Z=X,J=function(Ve){var lt=Ve.toString(16);return lt.length<2?"0"+lt:lt},q=function(Ve){var lt=Ve.r,at=Ve.g,Xt=Ve.b,rt=Ve.a,Rt=rt<1?J(E(255*rt)):"";return"#"+J(lt)+J(at)+J(Xt)+Rt},L=function(Ve){var lt=Ve.r,at=Ve.g,Xt=Ve.b,rt=Ve.a,Rt=Math.max(lt,at,Xt),rn=Rt-Math.min(lt,at,Xt),sn=rn?Rt===lt?(at-Xt)/rn:Rt===at?2+(Xt-lt)/rn:4+(lt-at)/rn:0;return{h:E(60*(sn<0?sn+6:sn)),s:E(Rt?rn/Rt*100:0),v:E(Rt/255*100),a:rt}},$=function(Ve){return{h:E(Ve.h),s:E(Ve.s),v:E(Ve.v),a:E(Ve.a,2)}},k=i.memo(function(Ve){var lt=Ve.hue,at=Ve.onChange,Xt=y(["react-colorful__hue",Ve.className]);return i.createElement("div",{className:Xt},i.createElement(g,{onMove:function(rt){at({h:360*rt.left})},onKey:function(rt){at({h:l(lt+360*rt.left,0,360)})},"aria-label":"Hue","aria-valuenow":E(lt),"aria-valuemax":"360","aria-valuemin":"0"},i.createElement(b,{className:"react-colorful__hue-pointer",left:lt/360,color:K({h:lt,s:100,v:100,a:1})})))}),F=i.memo(function(Ve){var lt=Ve.hsva,at=Ve.onChange,Xt={backgroundColor:K({h:lt.h,s:100,v:100,a:1})};return i.createElement("div",{className:"react-colorful__saturation",style:Xt},i.createElement(g,{onMove:function(rt){at({s:100*rt.left,v:100-100*rt.top})},onKey:function(rt){at({s:l(lt.s+100*rt.left,0,100),v:l(lt.v-100*rt.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+E(lt.s)+"%, Brightness "+E(lt.v)+"%"},i.createElement(b,{className:"react-colorful__saturation-pointer",top:1-lt.v/100,left:lt.s/100,color:K(lt)})))}),V=function(Ve,lt){if(Ve===lt)return!0;for(var at in Ve)if(Ve[at]!==lt[at])return!1;return!0},pe=function(Ve,lt){return Ve.replace(/\s/g,"")===lt.replace(/\s/g,"")},ce=function(Ve,lt){return Ve.toLowerCase()===lt.toLowerCase()||V(x(Ve),x(lt))};function G(Ve,lt,at){var Xt=v(at),rt=(0,i.useState)(function(){return Ve.toHsva(lt)}),Rt=rt[0],rn=rt[1],sn=(0,i.useRef)({color:lt,hsva:Rt});(0,i.useEffect)(function(){if(!Ve.equal(lt,sn.current.color)){var ze=Ve.toHsva(lt);sn.current={hsva:ze,color:lt},rn(ze)}},[lt,Ve]),(0,i.useEffect)(function(){var ze;V(Rt,sn.current.hsva)||Ve.equal(ze=Ve.fromHsva(Rt),sn.current.color)||(sn.current={hsva:Rt,color:ze},Xt(ze))},[Rt,Ve,Xt]);var Jn=(0,i.useCallback)(function(ze){rn(function(st){return Object.assign({},st,ze)})},[]);return[Rt,Jn]}var te,ie=typeof window<"u"?i.useLayoutEffect:i.useEffect,fe=function(){return te||t.nc},Se=function(Ve){te=Ve},he=new Map,me=function(Ve){ie(function(){var lt=Ve.current?Ve.current.ownerDocument:document;if(lt!==void 0&&!he.has(lt)){var at=lt.createElement("style");at.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,he.set(lt,at);var Xt=fe();Xt&&at.setAttribute("nonce",Xt),lt.head.appendChild(at)}},[])},_e=function(Ve){var lt=Ve.className,at=Ve.colorModel,Xt=Ve.color,rt=Xt===void 0?at.defaultColor:Xt,Rt=Ve.onChange,rn=u(Ve,["className","colorModel","color","onChange"]),sn=r(null);me(sn);var Jn=G(at,rt,Rt),ze=Jn[0],st=Jn[1],en=y(["react-colorful",lt]);return e.createElement("div",s({},rn,{ref:sn,className:en}),e.createElement(F,{hsva:ze,onChange:st}),e.createElement(k,{hue:ze.h,onChange:st,className:"react-colorful__last-control"}))},we={defaultColor:"000",toHsva:w,fromHsva:function(Ve){return I({h:Ve.h,s:Ve.s,v:Ve.v,a:1})},equal:ce},Ge=function(Ve){return e.createElement(_e,s({},Ve,{colorModel:we}))},ht=function(Ve){var lt=Ve.className,at=Ve.hsva,Xt=Ve.onChange,rt={backgroundImage:"linear-gradient(90deg, "+_(Object.assign({},at,{a:0}))+", "+_(Object.assign({},at,{a:1}))+")"},Rt=y(["react-colorful__alpha",lt]),rn=E(100*at.a);return i.createElement("div",{className:Rt},i.createElement("div",{className:"react-colorful__alpha-gradient",style:rt}),i.createElement(g,{onMove:function(sn){Xt({a:sn.left})},onKey:function(sn){Xt({a:l(at.a+sn.left)})},"aria-label":"Alpha","aria-valuetext":rn+"%","aria-valuenow":rn,"aria-valuemin":"0","aria-valuemax":"100"},i.createElement(b,{className:"react-colorful__alpha-pointer",left:at.a,color:_(at)})))},nt=function(Ve){var lt=Ve.className,at=Ve.colorModel,Xt=Ve.color,rt=Xt===void 0?at.defaultColor:Xt,Rt=Ve.onChange,rn=u(Ve,["className","colorModel","color","onChange"]),sn=(0,i.useRef)(null);me(sn);var Jn=G(at,rt,Rt),ze=Jn[0],st=Jn[1],en=y(["react-colorful",lt]);return i.createElement("div",s({},rn,{ref:sn,className:en}),i.createElement(F,{hsva:ze,onChange:st}),i.createElement(k,{hue:ze.h,onChange:st}),i.createElement(ht,{hsva:ze,onChange:st,className:"react-colorful__last-control"}))},Re={defaultColor:"0001",toHsva:w,fromHsva:I,equal:ce},ue=function(Ve){return e.createElement(nt,s({},Ve,{colorModel:Re}))},ae={defaultColor:{h:0,s:0,l:0,a:1},toHsva:A,fromHsva:N,equal:V},ve=function(Ve){return e.createElement(nt,s({},Ve,{colorModel:ae}))},Me={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:R,fromHsva:_,equal:pe},Ye=function(Ve){return e.createElement(nt,s({},Ve,{colorModel:Me}))},qe={defaultColor:{h:0,s:0,l:0},toHsva:function(Ve){return A({h:Ve.h,s:Ve.s,l:Ve.l,a:1})},fromHsva:function(Ve){return{h:(lt=N(Ve)).h,s:lt.s,l:lt.l};var lt},equal:V},At=function(Ve){return e.createElement(_e,s({},Ve,{colorModel:qe}))},It={defaultColor:"hsl(0, 0%, 0%)",toHsva:T,fromHsva:K,equal:pe},Ce=function(Ve){return e.createElement(_e,s({},Ve,{colorModel:It}))},Ae={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(Ve){return Ve},fromHsva:$,equal:V},$e=function(Ve){return e.createElement(nt,s({},Ve,{colorModel:Ae}))},tt={defaultColor:"hsva(0, 0%, 0%, 1)",toHsva:j,fromHsva:function(Ve){var lt=$(Ve);return"hsva("+lt.h+", "+lt.s+"%, "+lt.v+"%, "+lt.a+")"},equal:pe},ke=function(Ve){return e.createElement(nt,s({},Ve,{colorModel:tt}))},Oe={defaultColor:{h:0,s:0,v:0},toHsva:function(Ve){return{h:Ve.h,s:Ve.s,v:Ve.v,a:1}},fromHsva:function(Ve){var lt=$(Ve);return{h:lt.h,s:lt.s,v:lt.v}},equal:V},je=function(Ve){return e.createElement(_e,s({},Ve,{colorModel:Oe}))},Et={defaultColor:"hsv(0, 0%, 0%)",toHsva:re,fromHsva:function(Ve){var lt=$(Ve);return"hsv("+lt.h+", "+lt.s+"%, "+lt.v+"%)"},equal:pe},ct=function(Ve){return e.createElement(_e,s({},Ve,{colorModel:Et}))},ut={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:W,equal:V},Ne=function(Ve){return e.createElement(nt,s({},Ve,{colorModel:ut}))},mt={defaultColor:"rgba(0, 0, 0, 1)",toHsva:X,fromHsva:function(Ve){var lt=W(Ve);return"rgba("+lt.r+", "+lt.g+", "+lt.b+", "+lt.a+")"},equal:pe},bt=function(Ve){return i.createElement(nt,s({},Ve,{colorModel:mt}))},Gt={defaultColor:{r:0,g:0,b:0},toHsva:function(Ve){return L({r:Ve.r,g:Ve.g,b:Ve.b,a:1})},fromHsva:function(Ve){return{r:(lt=W(Ve)).r,g:lt.g,b:lt.b};var lt},equal:V},hn=function(Ve){return e.createElement(_e,s({},Ve,{colorModel:Gt}))},Yt={defaultColor:"rgb(0, 0, 0)",toHsva:Z,fromHsva:function(Ve){var lt=W(Ve);return"rgb("+lt.r+", "+lt.g+", "+lt.b+")"},equal:pe},Bt=function(Ve){return e.createElement(_e,s({},Ve,{colorModel:Yt}))},Lt=/^#?([0-9A-F]{3,8})$/i,zt=function(Ve){var lt=Ve.color,at=lt===void 0?"":lt,Xt=Ve.onChange,rt=Ve.onBlur,Rt=Ve.escape,rn=Ve.validate,sn=Ve.format,Jn=Ve.process,ze=u(Ve,["color","onChange","onBlur","escape","validate","format","process"]),st=o(function(){return Rt(at)}),en=st[0],wt=st[1],Ke=v(Xt),Ut=v(rt),on=a(function(An){var Zt=Rt(An.target.value);wt(Zt),rn(Zt)&&Ke(Jn?Jn(Zt):Zt)},[Rt,Jn,rn,Ke]),Tn=a(function(An){rn(An.target.value)||wt(Rt(at)),Ut(An)},[at,Rt,rn,Ut]);return n(function(){wt(Rt(at))},[at,Rt]),e.createElement("input",s({},ze,{value:sn?sn(en):en,spellCheck:"false",onChange:on,onBlur:Tn}))},Kt=function(Ve){return"#"+Ve},vt=function(Ve){var lt=Ve.prefixed,at=Ve.alpha,Xt=u(Ve,["prefixed","alpha"]),rt=a(function(rn){return rn.replace(/([^0-9A-F]+)/gi,"").substring(0,at?8:6)},[at]),Rt=a(function(rn){return function(sn,Jn){var ze=Lt.exec(sn),st=ze?ze[1].length:0;return st===3||st===6||!!Jn&&st===4||!!Jn&&st===8}(rn,at)},[at]);return e.createElement(zt,s({},Xt,{escape:rt,format:lt?Kt:void 0,process:Kt,validate:Rt}))}},57704:(C,c,t)=>{"use strict";t.d(c,{Z:()=>l,y:()=>h});var i=t(27702);const s=i.createContext({}),u=!0;function v({baseColor:p,highlightColor:d,width:f,height:g,borderRadius:y,circle:b,direction:E,duration:S,enableAnimation:w=u}){const x={};return E==="rtl"&&(x["--animation-direction"]="reverse"),typeof S=="number"&&(x["--animation-duration"]=`${S}s`),w||(x["--pseudo-element-display"]="none"),(typeof f=="string"||typeof f=="number")&&(x.width=f),(typeof g=="string"||typeof g=="number")&&(x.height=g),(typeof y=="string"||typeof y=="number")&&(x.borderRadius=y),b&&(x.borderRadius="50%"),typeof p<"u"&&(x["--base-color"]=p),typeof d<"u"&&(x["--highlight-color"]=d),x}function l({count:p=1,wrapper:d,className:f,containerClassName:g,containerTestId:y,circle:b=!1,style:E,...S}){var w,x,P;const R=i.useContext(s),T={...S};for(const[j,re]of Object.entries(S))typeof re>"u"&&delete T[j];const A={...R,...T,circle:b},I={...E,...v(A)};let N="react-loading-skeleton";f&&(N+=` ${f}`);const K=(w=A.inline)!==null&&w!==void 0?w:!1,_=[],W=Math.ceil(p);for(let j=0;j<W;j++){let re=I;if(W>p&&j===W-1){const Z=(x=re.width)!==null&&x!==void 0?x:"100%",J=p%1,q=typeof Z=="number"?Z*J:`calc(${Z} * ${J})`;re={...re,width:q}}const X=i.createElement("span",{className:N,style:re,key:j},"\u200C");K?_.push(X):_.push(i.createElement(i.Fragment,{key:j},X,i.createElement("br",null)))}return i.createElement("span",{className:g,"data-testid":y,"aria-live":"polite","aria-busy":(P=A.enableAnimation)!==null&&P!==void 0?P:u},d?_.map((j,re)=>i.createElement(d,{key:re},j)):_)}function h({children:p,...d}){return i.createElement(s.Provider,{value:d},p)}},14705:(C,c,t)=>{"use strict";t.r(c),t.d(c,{defaultRangeExtractor:()=>x,useVirtual:()=>P});var i=t(27702);function s(){return s=Object.assign||function(A){for(var I=1;I<arguments.length;I++){var N=arguments[I];for(var K in N)Object.prototype.hasOwnProperty.call(N,K)&&(A[K]=N[K])}return A},s.apply(this,arguments)}function u(A,I){if(A==null)return{};var N={},K=Object.keys(A),_,W;for(W=0;W<K.length;W++)_=K[W],!(I.indexOf(_)>=0)&&(N[_]=A[_]);return N}var v=["bottom","height","left","right","top","width"],l=function(I,N){return I===void 0&&(I={}),N===void 0&&(N={}),v.some(function(K){return I[K]!==N[K]})},h=new Map,p,d=function A(){var I=[];h.forEach(function(N,K){var _=K.getBoundingClientRect();l(_,N.rect)&&(N.rect=_,I.push(N))}),I.forEach(function(N){N.callbacks.forEach(function(K){return K(N.rect)})}),p=window.requestAnimationFrame(A)};function f(A,I){return{observe:function(){var K=h.size===0;h.has(A)?h.get(A).callbacks.push(I):h.set(A,{rect:void 0,hasRectChanged:!1,callbacks:[I]}),K&&d()},unobserve:function(){var K=h.get(A);if(K){var _=K.callbacks.indexOf(I);_>=0&&K.callbacks.splice(_,1),K.callbacks.length||h.delete(A),h.size||cancelAnimationFrame(p)}}}}var g=typeof window<"u"?i.useLayoutEffect:i.useEffect;function y(A,I){I===void 0&&(I={width:0,height:0});var N=i.useState(A.current),K=N[0],_=N[1],W=i.useReducer(b,I),j=W[0],re=W[1],X=i.useRef(!1);return g(function(){A.current!==K&&_(A.current)}),g(function(){if(K&&!X.current){X.current=!0;var Z=K.getBoundingClientRect();re({rect:Z})}},[K]),i.useEffect(function(){if(K){var Z=f(K,function(J){re({rect:J})});return Z.observe(),function(){Z.unobserve()}}},[K]),j}function b(A,I){var N=I.rect;return A.height!==N.height||A.width!==N.width?N:A}var E=function(){return 50},S=function(I){return I},w=function(I,N){var K=N?"offsetWidth":"offsetHeight";return I[K]},x=function(I){for(var N=Math.max(I.start-I.overscan,0),K=Math.min(I.end+I.overscan,I.size-1),_=[],W=N;W<=K;W++)_.push(W);return _};function P(A){var I,N=A.size,K=N===void 0?0:N,_=A.estimateSize,W=_===void 0?E:_,j=A.overscan,re=j===void 0?1:j,X=A.paddingStart,Z=X===void 0?0:X,J=A.paddingEnd,q=J===void 0?0:J,L=A.parentRef,$=A.horizontal,k=A.scrollToFn,F=A.useObserver,V=A.initialRect,pe=A.onScrollElement,ce=A.scrollOffsetFn,G=A.keyExtractor,te=G===void 0?S:G,ie=A.measureSize,fe=ie===void 0?w:ie,Se=A.rangeExtractor,he=Se===void 0?x:Se,me=$?"width":"height",_e=$?"scrollLeft":"scrollTop",we=i.useRef({scrollOffset:0,measurements:[]}),Ge=i.useState(0),ht=Ge[0],nt=Ge[1];we.current.scrollOffset=ht;var Re=F||y,ue=Re(L,V),ae=ue[me];we.current.outerSize=ae;var ve=i.useCallback(function(Yt){L.current&&(L.current[_e]=Yt)},[L,_e]),Me=k||ve;k=i.useCallback(function(Yt){Me(Yt,ve)},[ve,Me]);var Ye=i.useState({}),qe=Ye[0],At=Ye[1],It=i.useCallback(function(){return At({})},[]),Ce=i.useRef([]),Ae=i.useMemo(function(){var Yt=Ce.current.length>0?Math.min.apply(Math,Ce.current):0;Ce.current=[];for(var Bt=we.current.measurements.slice(0,Yt),Lt=Yt;Lt<K;Lt++){var zt=te(Lt),Kt=qe[zt],vt=Bt[Lt-1]?Bt[Lt-1].end:Z,Ve=typeof Kt=="number"?Kt:W(Lt),lt=vt+Ve;Bt[Lt]={index:Lt,start:vt,size:Ve,end:lt,key:zt}}return Bt},[W,qe,Z,K,te]),$e=(((I=Ae[K-1])==null?void 0:I.end)||Z)+q;we.current.measurements=Ae,we.current.totalSize=$e;var tt=pe?pe.current:L.current,ke=i.useRef(ce);ke.current=ce,g(function(){if(!tt){nt(0);return}var Yt=function(Lt){var zt=ke.current?ke.current(Lt):tt[_e];nt(zt)};return Yt(),tt.addEventListener("scroll",Yt,{capture:!1,passive:!0}),function(){tt.removeEventListener("scroll",Yt)}},[tt,_e]);var Oe=T(we.current),je=Oe.start,Et=Oe.end,ct=i.useMemo(function(){return he({start:je,end:Et,overscan:re,size:Ae.length})},[je,Et,re,Ae.length,he]),ut=i.useRef(fe);ut.current=fe;var Ne=i.useMemo(function(){for(var Yt=[],Bt=function(vt,Ve){var lt=ct[vt],at=Ae[lt],Xt=s(s({},at),{},{measureRef:function(Rt){if(Rt){var rn=ut.current(Rt,$);if(rn!==Xt.size){var sn=we.current.scrollOffset;Xt.start<sn&&ve(sn+(rn-Xt.size)),Ce.current.push(lt),At(function(Jn){var ze;return s(s({},Jn),{},(ze={},ze[Xt.key]=rn,ze))})}}}});Yt.push(Xt)},Lt=0,zt=ct.length;Lt<zt;Lt++)Bt(Lt);return Yt},[ct,ve,$,Ae]),mt=i.useRef(!1);g(function(){mt.current&&At({}),mt.current=!0},[W]);var bt=i.useCallback(function(Yt,Bt){var Lt=Bt===void 0?{}:Bt,zt=Lt.align,Kt=zt===void 0?"start":zt,vt=we.current,Ve=vt.scrollOffset,lt=vt.outerSize;Kt==="auto"&&(Yt<=Ve?Kt="start":Yt>=Ve+lt?Kt="end":Kt="start"),Kt==="start"?k(Yt):Kt==="end"?k(Yt-lt):Kt==="center"&&k(Yt-lt/2)},[k]),Gt=i.useCallback(function(Yt,Bt){var Lt=Bt===void 0?{}:Bt,zt=Lt.align,Kt=zt===void 0?"auto":zt,vt=u(Lt,["align"]),Ve=we.current,lt=Ve.measurements,at=Ve.scrollOffset,Xt=Ve.outerSize,rt=lt[Math.max(0,Math.min(Yt,K-1))];if(rt){if(Kt==="auto")if(rt.end>=at+Xt)Kt="end";else if(rt.start<=at)Kt="start";else return;var Rt=Kt==="center"?rt.start+rt.size/2:Kt==="end"?rt.end:rt.start;bt(Rt,s({align:Kt},vt))}},[bt,K]),hn=i.useCallback(function(){for(var Yt=arguments.length,Bt=new Array(Yt),Lt=0;Lt<Yt;Lt++)Bt[Lt]=arguments[Lt];Gt.apply(void 0,Bt),requestAnimationFrame(function(){Gt.apply(void 0,Bt)})},[Gt]);return{virtualItems:Ne,totalSize:$e,scrollToOffset:bt,scrollToIndex:hn,measure:It}}var R=function(I,N,K,_){for(;I<=N;){var W=(I+N)/2|0,j=K(W);if(j<_)I=W+1;else if(j>_)N=W-1;else return W}return I>0?I-1:0};function T(A){for(var I=A.measurements,N=A.outerSize,K=A.scrollOffset,_=I.length-1,W=function(Z){return I[Z].start},j=R(0,_,W,K),re=j;re<_&&I[re].end<K+N;)re++;return{start:j,end:re}}},8947:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s,u){(u==null||u>s.length)&&(u=s.length);for(var v=0,l=new Array(u);v<u;v++)l[v]=s[v];return l}},17023:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s){if(Array.isArray(s))return s}},32066:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}},87741:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}},58585:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(95166);function s(v,l){for(var h=0;h<l.length;h++){var p=l[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(v,(0,i.Z)(p.key),p)}}function u(v,l,h){return l&&s(v.prototype,l),h&&s(v,h),Object.defineProperty(v,"prototype",{writable:!1}),v}},93870:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});var i=t(353);function s(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var u=t(53865);function v(l){var h=s();return function(){var d=(0,i.Z)(l),f;if(h){var g=(0,i.Z)(this).constructor;f=Reflect.construct(d,arguments,g)}else f=d.apply(this,arguments);return(0,u.Z)(this,f)}}},23190:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(95166);function s(u,v,l){return v=(0,i.Z)(v),v in u?Object.defineProperty(u,v,{value:l,enumerable:!0,configurable:!0,writable:!0}):u[v]=l,u}},94285:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(){return i=Object.assign?Object.assign.bind():function(s){for(var u=1;u<arguments.length;u++){var v=arguments[u];for(var l in v)Object.prototype.hasOwnProperty.call(v,l)&&(s[l]=v[l])}return s},i.apply(this,arguments)}},353:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(v){return v.__proto__||Object.getPrototypeOf(v)},i(s)}},56804:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(68846);function s(u,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(v&&v.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),v&&(0,i.Z)(u,v)}},42030:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(68846);function s(u,v){u.prototype=Object.create(v.prototype),u.prototype.constructor=u,(0,i.Z)(u,v)}},84744:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}},18303:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}},48632:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(23190);function s(v,l){var h=Object.keys(v);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(v);l&&(p=p.filter(function(d){return Object.getOwnPropertyDescriptor(v,d).enumerable})),h.push.apply(h,p)}return h}function u(v){for(var l=1;l<arguments.length;l++){var h=arguments[l]!=null?arguments[l]:{};l%2?s(Object(h),!0).forEach(function(p){(0,i.Z)(v,p,h[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(h)):s(Object(h)).forEach(function(p){Object.defineProperty(v,p,Object.getOwnPropertyDescriptor(h,p))})}return v}},4696:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(46340);function s(u,v){if(u==null)return{};var l=(0,i.Z)(u,v),h,p;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(u);for(p=0;p<d.length;p++)h=d[p],!(v.indexOf(h)>=0)&&Object.prototype.propertyIsEnumerable.call(u,h)&&(l[h]=u[h])}return l}},46340:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s,u){if(s==null)return{};var v={},l=Object.keys(s),h,p;for(p=0;p<l.length;p++)h=l[p],!(u.indexOf(h)>=0)&&(v[h]=s[h]);return v}},53865:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(4484),s=t(32066);function u(v,l){if(l&&((0,i.Z)(l)==="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(0,s.Z)(v)}},68846:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s,u){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,h){return l.__proto__=h,l},i(s,u)}},32098:(C,c,t)=>{"use strict";t.d(c,{Z:()=>l});var i=t(17023);function s(h,p){var d=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(d!=null){var f,g,y,b,E=[],S=!0,w=!1;try{if(y=(d=d.call(h)).next,p===0){if(Object(d)!==d)return;S=!1}else for(;!(S=(f=y.call(d)).done)&&(E.push(f.value),E.length!==p);S=!0);}catch(x){w=!0,g=x}finally{try{if(!S&&d.return!=null&&(b=d.return(),Object(b)!==b))return}finally{if(w)throw g}}return E}}var u=t(44514),v=t(18303);function l(h,p){return(0,i.Z)(h)||s(h,p)||(0,u.Z)(h,p)||(0,v.Z)()}},99995:(C,c,t)=>{"use strict";t.d(c,{Z:()=>l});var i=t(17023),s=t(84744),u=t(44514),v=t(18303);function l(h){return(0,i.Z)(h)||(0,s.Z)(h)||(0,u.Z)(h)||(0,v.Z)()}},75342:(C,c,t)=>{"use strict";t.d(c,{Z:()=>h});var i=t(8947);function s(p){if(Array.isArray(p))return(0,i.Z)(p)}var u=t(84744),v=t(44514);function l(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(p){return s(p)||(0,u.Z)(p)||(0,v.Z)(p)||l()}},95166:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(4484);function s(v,l){if((0,i.Z)(v)!=="object"||v===null)return v;var h=v[Symbol.toPrimitive];if(h!==void 0){var p=h.call(v,l||"default");if((0,i.Z)(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(v)}function u(v){var l=s(v,"string");return(0,i.Z)(l)==="symbol"?l:String(l)}},4484:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},i(s)}},44514:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(8947);function s(u,v){if(u){if(typeof u=="string")return(0,i.Z)(u,v);var l=Object.prototype.toString.call(u).slice(8,-1);if(l==="Object"&&u.constructor&&(l=u.constructor.name),l==="Map"||l==="Set")return Array.from(u);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return(0,i.Z)(u,v)}}},25713:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});function i(s){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},i(s)}},90823:(C,c,t)=>{"use strict";t.d(c,{Jq:()=>p,L3:()=>i,Lj:()=>d,_b:()=>q,md:()=>v,mp:()=>b,vj:()=>y});const i=1024;let s=0;class u{constructor(we,Ge){this.from=we,this.to=Ge}}class v{constructor(we={}){this.id=s++,this.perNode=!!we.perNode,this.deserialize=we.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(we){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof we!="function"&&(we=p.match(we)),Ge=>{let ht=we(Ge);return ht===void 0?null:[this,ht]}}}v.closedBy=new v({deserialize:_e=>_e.split(" ")}),v.openedBy=new v({deserialize:_e=>_e.split(" ")}),v.group=new v({deserialize:_e=>_e.split(" ")}),v.contextHash=new v({perNode:!0}),v.lookAhead=new v({perNode:!0}),v.mounted=new v({perNode:!0});class l{constructor(we,Ge,ht){this.tree=we,this.overlay=Ge,this.parser=ht}}const h=Object.create(null);class p{constructor(we,Ge,ht,nt=0){this.name=we,this.props=Ge,this.id=ht,this.flags=nt}static define(we){let Ge=we.props&&we.props.length?Object.create(null):h,ht=(we.top?1:0)|(we.skipped?2:0)|(we.error?4:0)|(we.name==null?8:0),nt=new p(we.name||"",Ge,we.id,ht);if(we.props){for(let Re of we.props)if(Array.isArray(Re)||(Re=Re(nt)),Re){if(Re[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");Ge[Re[0].id]=Re[1]}}return nt}prop(we){return this.props[we.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(we){if(typeof we=="string"){if(this.name==we)return!0;let Ge=this.prop(v.group);return Ge?Ge.indexOf(we)>-1:!1}return this.id==we}static match(we){let Ge=Object.create(null);for(let ht in we)for(let nt of ht.split(" "))Ge[nt]=we[ht];return ht=>{for(let nt=ht.prop(v.group),Re=-1;Re<(nt?nt.length:0);Re++){let ue=Ge[Re<0?ht.name:nt[Re]];if(ue)return ue}}}}p.none=new p("",Object.create(null),0,8);class d{constructor(we){this.types=we;for(let Ge=0;Ge<we.length;Ge++)if(we[Ge].id!=Ge)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...we){let Ge=[];for(let ht of this.types){let nt=null;for(let Re of we){let ue=Re(ht);ue&&(nt||(nt=Object.assign({},ht.props)),nt[ue[0].id]=ue[1])}Ge.push(nt?new p(ht.name,nt,ht.id,ht.flags):ht)}return new d(Ge)}}const f=new WeakMap,g=new WeakMap;var y;(function(_e){_e[_e.ExcludeBuffers=1]="ExcludeBuffers",_e[_e.IncludeAnonymous=2]="IncludeAnonymous",_e[_e.IgnoreMounts=4]="IgnoreMounts",_e[_e.IgnoreOverlays=8]="IgnoreOverlays"})(y||(y={}));class b{constructor(we,Ge,ht,nt,Re){if(this.type=we,this.children=Ge,this.positions=ht,this.length=nt,this.props=null,Re&&Re.length){this.props=Object.create(null);for(let[ue,ae]of Re)this.props[typeof ue=="number"?ue:ue.id]=ae}}toString(){let we=this.prop(v.mounted);if(we&&!we.overlay)return we.tree.toString();let Ge="";for(let ht of this.children){let nt=ht.toString();nt&&(Ge&&(Ge+=","),Ge+=nt)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(Ge.length?"("+Ge+")":""):Ge}cursor(we=0){return new K(this.topNode,we)}cursorAt(we,Ge=0,ht=0){let nt=f.get(this)||this.topNode,Re=new K(nt);return Re.moveTo(we,Ge),f.set(this,Re._tree),Re}get topNode(){return new R(this,0,0,null)}resolve(we,Ge=0){let ht=P(f.get(this)||this.topNode,we,Ge,!1);return f.set(this,ht),ht}resolveInner(we,Ge=0){let ht=P(g.get(this)||this.topNode,we,Ge,!0);return g.set(this,ht),ht}iterate(we){let{enter:Ge,leave:ht,from:nt=0,to:Re=this.length}=we;for(let ue=this.cursor((we.mode||0)|y.IncludeAnonymous);;){let ae=!1;if(ue.from<=Re&&ue.to>=nt&&(ue.type.isAnonymous||Ge(ue)!==!1)){if(ue.firstChild())continue;ae=!0}for(;ae&&ht&&!ue.type.isAnonymous&&ht(ue),!ue.nextSibling();){if(!ue.parent())return;ae=!0}}}prop(we){return we.perNode?this.props?this.props[we.id]:void 0:this.type.prop(we)}get propValues(){let we=[];if(this.props)for(let Ge in this.props)we.push([+Ge,this.props[Ge]]);return we}balance(we={}){return this.children.length<=8?this:X(p.none,this.children,this.positions,0,this.children.length,0,this.length,(Ge,ht,nt)=>new b(this.type,Ge,ht,nt,this.propValues),we.makeTree||((Ge,ht,nt)=>new b(p.none,Ge,ht,nt)))}static build(we){return W(we)}}b.empty=new b(p.none,[],[],0);class E{constructor(we,Ge){this.buffer=we,this.index=Ge}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new E(this.buffer,this.index)}}class S{constructor(we,Ge,ht){this.buffer=we,this.length=Ge,this.set=ht}get type(){return p.none}toString(){let we=[];for(let Ge=0;Ge<this.buffer.length;)we.push(this.childString(Ge)),Ge=this.buffer[Ge+3];return we.join(",")}childString(we){let Ge=this.buffer[we],ht=this.buffer[we+3],nt=this.set.types[Ge],Re=nt.name;if(/\W/.test(Re)&&!nt.isError&&(Re=JSON.stringify(Re)),we+=4,ht==we)return Re;let ue=[];for(;we<ht;)ue.push(this.childString(we)),we=this.buffer[we+3];return Re+"("+ue.join(",")+")"}findChild(we,Ge,ht,nt,Re){let{buffer:ue}=this,ae=-1;for(let ve=we;ve!=Ge&&!(w(Re,nt,ue[ve+1],ue[ve+2])&&(ae=ve,ht>0));ve=ue[ve+3]);return ae}slice(we,Ge,ht){let nt=this.buffer,Re=new Uint16Array(Ge-we),ue=0;for(let ae=we,ve=0;ae<Ge;){Re[ve++]=nt[ae++],Re[ve++]=nt[ae++]-ht;let Me=Re[ve++]=nt[ae++]-ht;Re[ve++]=nt[ae++]-we,ue=Math.max(ue,Me)}return new S(Re,ue,this.set)}}function w(_e,we,Ge,ht){switch(_e){case-2:return Ge<we;case-1:return ht>=we&&Ge<we;case 0:return Ge<we&&ht>we;case 1:return Ge<=we&&ht>we;case 2:return ht>we;case 4:return!0}}function x(_e,we){let Ge=_e.childBefore(we);for(;Ge;){let ht=Ge.lastChild;if(!ht||ht.to!=Ge.to)break;ht.type.isError&&ht.from==ht.to?(_e=Ge,Ge=ht.prevSibling):Ge=ht}return _e}function P(_e,we,Ge,ht){for(var nt;_e.from==_e.to||(Ge<1?_e.from>=we:_e.from>we)||(Ge>-1?_e.to<=we:_e.to<we);){let ue=!ht&&_e instanceof R&&_e.index<0?null:_e.parent;if(!ue)return _e;_e=ue}let Re=ht?0:y.IgnoreOverlays;if(ht)for(let ue=_e,ae=ue.parent;ae;ue=ae,ae=ue.parent)ue instanceof R&&ue.index<0&&((nt=ae.enter(we,Ge,Re))===null||nt===void 0?void 0:nt.from)!=ue.from&&(_e=ae);for(;;){let ue=_e.enter(we,Ge,Re);if(!ue)return _e;_e=ue}}class R{constructor(we,Ge,ht,nt){this._tree=we,this.from=Ge,this.index=ht,this._parent=nt}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(we,Ge,ht,nt,Re=0){for(let ue=this;;){for(let{children:ae,positions:ve}=ue._tree,Me=Ge>0?ae.length:-1;we!=Me;we+=Ge){let Ye=ae[we],qe=ve[we]+ue.from;if(w(nt,ht,qe,qe+Ye.length)){if(Ye instanceof S){if(Re&y.ExcludeBuffers)continue;let At=Ye.findChild(0,Ye.buffer.length,Ge,ht-qe,nt);if(At>-1)return new N(new I(ue,Ye,we,qe),null,At)}else if(Re&y.IncludeAnonymous||!Ye.type.isAnonymous||_(Ye)){let At;if(!(Re&y.IgnoreMounts)&&Ye.props&&(At=Ye.prop(v.mounted))&&!At.overlay)return new R(At.tree,qe,we,ue);let It=new R(Ye,qe,we,ue);return Re&y.IncludeAnonymous||!It.type.isAnonymous?It:It.nextChild(Ge<0?Ye.children.length-1:0,Ge,ht,nt)}}}if(Re&y.IncludeAnonymous||!ue.type.isAnonymous||(ue.index>=0?we=ue.index+Ge:we=Ge<0?-1:ue._parent._tree.children.length,ue=ue._parent,!ue))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(we){return this.nextChild(0,1,we,2)}childBefore(we){return this.nextChild(this._tree.children.length-1,-1,we,-2)}enter(we,Ge,ht=0){let nt;if(!(ht&y.IgnoreOverlays)&&(nt=this._tree.prop(v.mounted))&&nt.overlay){let Re=we-this.from;for(let{from:ue,to:ae}of nt.overlay)if((Ge>0?ue<=Re:ue<Re)&&(Ge<0?ae>=Re:ae>Re))return new R(nt.tree,nt.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,we,Ge,ht)}nextSignificantParent(){let we=this;for(;we.type.isAnonymous&&we._parent;)we=we._parent;return we}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(we=0){return new K(this,we)}get tree(){return this._tree}toTree(){return this._tree}resolve(we,Ge=0){return P(this,we,Ge,!1)}resolveInner(we,Ge=0){return P(this,we,Ge,!0)}enterUnfinishedNodesBefore(we){return x(this,we)}getChild(we,Ge=null,ht=null){let nt=T(this,we,Ge,ht);return nt.length?nt[0]:null}getChildren(we,Ge=null,ht=null){return T(this,we,Ge,ht)}toString(){return this._tree.toString()}get node(){return this}matchContext(we){return A(this,we)}}function T(_e,we,Ge,ht){let nt=_e.cursor(),Re=[];if(!nt.firstChild())return Re;if(Ge!=null){for(;!nt.type.is(Ge);)if(!nt.nextSibling())return Re}for(;;){if(ht!=null&&nt.type.is(ht))return Re;if(nt.type.is(we)&&Re.push(nt.node),!nt.nextSibling())return ht==null?Re:[]}}function A(_e,we,Ge=we.length-1){for(let ht=_e.parent;Ge>=0;ht=ht.parent){if(!ht)return!1;if(!ht.type.isAnonymous){if(we[Ge]&&we[Ge]!=ht.name)return!1;Ge--}}return!0}class I{constructor(we,Ge,ht,nt){this.parent=we,this.buffer=Ge,this.index=ht,this.start=nt}}class N{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(we,Ge,ht){this.context=we,this._parent=Ge,this.index=ht,this.type=we.buffer.set.types[we.buffer.buffer[ht]]}child(we,Ge,ht){let{buffer:nt}=this.context,Re=nt.findChild(this.index+4,nt.buffer[this.index+3],we,Ge-this.context.start,ht);return Re<0?null:new N(this.context,this,Re)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(we){return this.child(1,we,2)}childBefore(we){return this.child(-1,we,-2)}enter(we,Ge,ht=0){if(ht&y.ExcludeBuffers)return null;let{buffer:nt}=this.context,Re=nt.findChild(this.index+4,nt.buffer[this.index+3],Ge>0?1:-1,we-this.context.start,Ge);return Re<0?null:new N(this.context,this,Re)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(we){return this._parent?null:this.context.parent.nextChild(this.context.index+we,we,0,4)}get nextSibling(){let{buffer:we}=this.context,Ge=we.buffer[this.index+3];return Ge<(this._parent?we.buffer[this._parent.index+3]:we.buffer.length)?new N(this.context,this._parent,Ge):this.externalSibling(1)}get prevSibling(){let{buffer:we}=this.context,Ge=this._parent?this._parent.index+4:0;return this.index==Ge?this.externalSibling(-1):new N(this.context,this._parent,we.findChild(Ge,this.index,-1,0,4))}cursor(we=0){return new K(this,we)}get tree(){return null}toTree(){let we=[],Ge=[],{buffer:ht}=this.context,nt=this.index+4,Re=ht.buffer[this.index+3];if(Re>nt){let ue=ht.buffer[this.index+1];we.push(ht.slice(nt,Re,ue)),Ge.push(0)}return new b(this.type,we,Ge,this.to-this.from)}resolve(we,Ge=0){return P(this,we,Ge,!1)}resolveInner(we,Ge=0){return P(this,we,Ge,!0)}enterUnfinishedNodesBefore(we){return x(this,we)}toString(){return this.context.buffer.childString(this.index)}getChild(we,Ge=null,ht=null){let nt=T(this,we,Ge,ht);return nt.length?nt[0]:null}getChildren(we,Ge=null,ht=null){return T(this,we,Ge,ht)}get node(){return this}matchContext(we){return A(this,we)}}class K{get name(){return this.type.name}constructor(we,Ge=0){if(this.mode=Ge,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,we instanceof R)this.yieldNode(we);else{this._tree=we.context.parent,this.buffer=we.context;for(let ht=we._parent;ht;ht=ht._parent)this.stack.unshift(ht.index);this.bufferNode=we,this.yieldBuf(we.index)}}yieldNode(we){return we?(this._tree=we,this.type=we.type,this.from=we.from,this.to=we.to,!0):!1}yieldBuf(we,Ge){this.index=we;let{start:ht,buffer:nt}=this.buffer;return this.type=Ge||nt.set.types[nt.buffer[we]],this.from=ht+nt.buffer[we+1],this.to=ht+nt.buffer[we+2],!0}yield(we){return we?we instanceof R?(this.buffer=null,this.yieldNode(we)):(this.buffer=we.context,this.yieldBuf(we.index,we.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(we,Ge,ht){if(!this.buffer)return this.yield(this._tree.nextChild(we<0?this._tree._tree.children.length-1:0,we,Ge,ht,this.mode));let{buffer:nt}=this.buffer,Re=nt.findChild(this.index+4,nt.buffer[this.index+3],we,Ge-this.buffer.start,ht);return Re<0?!1:(this.stack.push(this.index),this.yieldBuf(Re))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(we){return this.enterChild(1,we,2)}childBefore(we){return this.enterChild(-1,we,-2)}enter(we,Ge,ht=this.mode){return this.buffer?ht&y.ExcludeBuffers?!1:this.enterChild(1,we,Ge):this.yield(this._tree.enter(we,Ge,ht))}parent(){if(!this.buffer)return this.yieldNode(this.mode&y.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let we=this.mode&y.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(we)}sibling(we){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+we,we,0,4,this.mode)):!1;let{buffer:Ge}=this.buffer,ht=this.stack.length-1;if(we<0){let nt=ht<0?0:this.stack[ht]+4;if(this.index!=nt)return this.yieldBuf(Ge.findChild(nt,this.index,-1,0,4))}else{let nt=Ge.buffer[this.index+3];if(nt<(ht<0?Ge.buffer.length:Ge.buffer[this.stack[ht]+3]))return this.yieldBuf(nt)}return ht<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+we,we,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(we){let Ge,ht,{buffer:nt}=this;if(nt){if(we>0){if(this.index<nt.buffer.buffer.length)return!1}else for(let Re=0;Re<this.index;Re++)if(nt.buffer.buffer[Re+3]<this.index)return!1;({index:Ge,parent:ht}=nt)}else({index:Ge,_parent:ht}=this._tree);for(;ht;{index:Ge,_parent:ht}=ht)if(Ge>-1)for(let Re=Ge+we,ue=we<0?-1:ht._tree.children.length;Re!=ue;Re+=we){let ae=ht._tree.children[Re];if(this.mode&y.IncludeAnonymous||ae instanceof S||!ae.type.isAnonymous||_(ae))return!1}return!0}move(we,Ge){if(Ge&&this.enterChild(we,0,4))return!0;for(;;){if(this.sibling(we))return!0;if(this.atLastNode(we)||!this.parent())return!1}}next(we=!0){return this.move(1,we)}prev(we=!0){return this.move(-1,we)}moveTo(we,Ge=0){for(;(this.from==this.to||(Ge<1?this.from>=we:this.from>we)||(Ge>-1?this.to<=we:this.to<we))&&this.parent(););for(;this.enterChild(1,we,Ge););return this}get node(){if(!this.buffer)return this._tree;let we=this.bufferNode,Ge=null,ht=0;if(we&&we.context==this.buffer)e:for(let nt=this.index,Re=this.stack.length;Re>=0;){for(let ue=we;ue;ue=ue._parent)if(ue.index==nt){if(nt==this.index)return ue;Ge=ue,ht=Re+1;break e}nt=this.stack[--Re]}for(let nt=ht;nt<this.stack.length;nt++)Ge=new N(this.buffer,Ge,this.stack[nt]);return this.bufferNode=new N(this.buffer,Ge,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(we,Ge){for(let ht=0;;){let nt=!1;if(this.type.isAnonymous||we(this)!==!1){if(this.firstChild()){ht++;continue}this.type.isAnonymous||(nt=!0)}for(;nt&&Ge&&Ge(this),nt=this.type.isAnonymous,!this.nextSibling();){if(!ht)return;this.parent(),ht--,nt=!0}}}matchContext(we){if(!this.buffer)return A(this.node,we);let{buffer:Ge}=this.buffer,{types:ht}=Ge.set;for(let nt=we.length-1,Re=this.stack.length-1;nt>=0;Re--){if(Re<0)return A(this.node,we,nt);let ue=ht[Ge.buffer[this.stack[Re]]];if(!ue.isAnonymous){if(we[nt]&&we[nt]!=ue.name)return!1;nt--}}return!0}}function _(_e){return _e.children.some(we=>we instanceof S||!we.type.isAnonymous||_(we))}function W(_e){var we;let{buffer:Ge,nodeSet:ht,maxBufferLength:nt=i,reused:Re=[],minRepeatType:ue=ht.types.length}=_e,ae=Array.isArray(Ge)?new E(Ge,Ge.length):Ge,ve=ht.types,Me=0,Ye=0;function qe(je,Et,ct,ut,Ne){let{id:mt,start:bt,end:Gt,size:hn}=ae,Yt=Ye;for(;hn<0;)if(ae.next(),hn==-1){let vt=Re[mt];ct.push(vt),ut.push(bt-je);return}else if(hn==-3){Me=mt;return}else if(hn==-4){Ye=mt;return}else throw new RangeError(`Unrecognized record size: ${hn}`);let Bt=ve[mt],Lt,zt,Kt=bt-je;if(Gt-bt<=nt&&(zt=Ae(ae.pos-Et,Ne))){let vt=new Uint16Array(zt.size-zt.skip),Ve=ae.pos-zt.size,lt=vt.length;for(;ae.pos>Ve;)lt=$e(zt.start,vt,lt);Lt=new S(vt,Gt-zt.start,ht),Kt=zt.start-je}else{let vt=ae.pos-hn;ae.next();let Ve=[],lt=[],at=mt>=ue?mt:-1,Xt=0,rt=Gt;for(;ae.pos>vt;)at>=0&&ae.id==at&&ae.size>=0?(ae.end<=rt-nt&&(It(Ve,lt,bt,Xt,ae.end,rt,at,Yt),Xt=Ve.length,rt=ae.end),ae.next()):qe(bt,vt,Ve,lt,at);if(at>=0&&Xt>0&&Xt<Ve.length&&It(Ve,lt,bt,Xt,bt,rt,at,Yt),Ve.reverse(),lt.reverse(),at>-1&&Xt>0){let Rt=At(Bt);Lt=X(Bt,Ve,lt,0,Ve.length,0,Gt-bt,Rt,Rt)}else Lt=Ce(Bt,Ve,lt,Gt-bt,Yt-Gt)}ct.push(Lt),ut.push(Kt)}function At(je){return(Et,ct,ut)=>{let Ne=0,mt=Et.length-1,bt,Gt;if(mt>=0&&(bt=Et[mt])instanceof b){if(!mt&&bt.type==je&&bt.length==ut)return bt;(Gt=bt.prop(v.lookAhead))&&(Ne=ct[mt]+bt.length+Gt)}return Ce(je,Et,ct,ut,Ne)}}function It(je,Et,ct,ut,Ne,mt,bt,Gt){let hn=[],Yt=[];for(;je.length>ut;)hn.push(je.pop()),Yt.push(Et.pop()+ct-Ne);je.push(Ce(ht.types[bt],hn,Yt,mt-Ne,Gt-mt)),Et.push(Ne-ct)}function Ce(je,Et,ct,ut,Ne=0,mt){if(Me){let bt=[v.contextHash,Me];mt=mt?[bt].concat(mt):[bt]}if(Ne>25){let bt=[v.lookAhead,Ne];mt=mt?[bt].concat(mt):[bt]}return new b(je,Et,ct,ut,mt)}function Ae(je,Et){let ct=ae.fork(),ut=0,Ne=0,mt=0,bt=ct.end-nt,Gt={size:0,start:0,skip:0};e:for(let hn=ct.pos-je;ct.pos>hn;){let Yt=ct.size;if(ct.id==Et&&Yt>=0){Gt.size=ut,Gt.start=Ne,Gt.skip=mt,mt+=4,ut+=4,ct.next();continue}let Bt=ct.pos-Yt;if(Yt<0||Bt<hn||ct.start<bt)break;let Lt=ct.id>=ue?4:0,zt=ct.start;for(ct.next();ct.pos>Bt;){if(ct.size<0)if(ct.size==-3)Lt+=4;else break e;else ct.id>=ue&&(Lt+=4);ct.next()}Ne=zt,ut+=Yt,mt+=Lt}return(Et<0||ut==je)&&(Gt.size=ut,Gt.start=Ne,Gt.skip=mt),Gt.size>4?Gt:void 0}function $e(je,Et,ct){let{id:ut,start:Ne,end:mt,size:bt}=ae;if(ae.next(),bt>=0&&ut<ue){let Gt=ct;if(bt>4){let hn=ae.pos-(bt-4);for(;ae.pos>hn;)ct=$e(je,Et,ct)}Et[--ct]=Gt,Et[--ct]=mt-je,Et[--ct]=Ne-je,Et[--ct]=ut}else bt==-3?Me=ut:bt==-4&&(Ye=ut);return ct}let tt=[],ke=[];for(;ae.pos>0;)qe(_e.start||0,_e.bufferStart||0,tt,ke,-1);let Oe=(we=_e.length)!==null&&we!==void 0?we:tt.length?ke[0]+tt[0].length:0;return new b(ve[_e.topID],tt.reverse(),ke.reverse(),Oe)}const j=new WeakMap;function re(_e,we){if(!_e.isAnonymous||we instanceof S||we.type!=_e)return 1;let Ge=j.get(we);if(Ge==null){Ge=1;for(let ht of we.children){if(ht.type!=_e||!(ht instanceof b)){Ge=1;break}Ge+=re(_e,ht)}j.set(we,Ge)}return Ge}function X(_e,we,Ge,ht,nt,Re,ue,ae,ve){let Me=0;for(let Ce=ht;Ce<nt;Ce++)Me+=re(_e,we[Ce]);let Ye=Math.ceil(Me*1.5/8),qe=[],At=[];function It(Ce,Ae,$e,tt,ke){for(let Oe=$e;Oe<tt;){let je=Oe,Et=Ae[Oe],ct=re(_e,Ce[Oe]);for(Oe++;Oe<tt;Oe++){let ut=re(_e,Ce[Oe]);if(ct+ut>=Ye)break;ct+=ut}if(Oe==je+1){if(ct>Ye){let ut=Ce[je];It(ut.children,ut.positions,0,ut.children.length,Ae[je]+ke);continue}qe.push(Ce[je])}else{let ut=Ae[Oe-1]+Ce[Oe-1].length-Et;qe.push(X(_e,Ce,Ae,je,Oe,Et,ut,null,ve))}At.push(Et+ke-Re)}}return It(we,Ge,ht,nt,0),(ae||ve)(qe,At,ue)}class Z{constructor(){this.map=new WeakMap}setBuffer(we,Ge,ht){let nt=this.map.get(we);nt||this.map.set(we,nt=new Map),nt.set(Ge,ht)}getBuffer(we,Ge){let ht=this.map.get(we);return ht&&ht.get(Ge)}set(we,Ge){we instanceof N?this.setBuffer(we.context.buffer,we.index,Ge):we instanceof R&&this.map.set(we.tree,Ge)}get(we){return we instanceof N?this.getBuffer(we.context.buffer,we.index):we instanceof R?this.map.get(we.tree):void 0}cursorSet(we,Ge){we.buffer?this.setBuffer(we.buffer.buffer,we.index,Ge):this.map.set(we.tree,Ge)}cursorGet(we){return we.buffer?this.getBuffer(we.buffer.buffer,we.index):this.map.get(we.tree)}}class J{constructor(we,Ge,ht,nt,Re=!1,ue=!1){this.from=we,this.to=Ge,this.tree=ht,this.offset=nt,this.open=(Re?1:0)|(ue?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(we,Ge=[],ht=!1){let nt=[new J(0,we.length,we,0,!1,ht)];for(let Re of Ge)Re.to>we.length&&nt.push(Re);return nt}static applyChanges(we,Ge,ht=128){if(!Ge.length)return we;let nt=[],Re=1,ue=we.length?we[0]:null;for(let ae=0,ve=0,Me=0;;ae++){let Ye=ae<Ge.length?Ge[ae]:null,qe=Ye?Ye.fromA:1e9;if(qe-ve>=ht)for(;ue&&ue.from<qe;){let At=ue;if(ve>=At.from||qe<=At.to||Me){let It=Math.max(At.from,ve)-Me,Ce=Math.min(At.to,qe)-Me;At=It>=Ce?null:new J(It,Ce,At.tree,At.offset+Me,ae>0,!!Ye)}if(At&&nt.push(At),ue.to>qe)break;ue=Re<we.length?we[Re++]:null}if(!Ye)break;ve=Ye.toA,Me=Ye.toA-Ye.toB}return nt}}class q{startParse(we,Ge,ht){return typeof we=="string"&&(we=new L(we)),ht=ht?ht.length?ht.map(nt=>new u(nt.from,nt.to)):[new u(0,0)]:[new u(0,we.length)],this.createParse(we,Ge||[],ht)}parse(we,Ge,ht){let nt=this.startParse(we,Ge,ht);for(;;){let Re=nt.advance();if(Re)return Re}}}class L{constructor(we){this.string=we}get length(){return this.string.length}chunk(we){return this.string.slice(we)}get lineChunks(){return!1}read(we,Ge){return this.string.slice(we,Ge)}}function $(_e){return(we,Ge,ht,nt)=>new pe(we,_e,Ge,ht,nt)}class k{constructor(we,Ge,ht,nt,Re){this.parser=we,this.parse=Ge,this.overlay=ht,this.target=nt,this.ranges=Re}}class F{constructor(we,Ge,ht,nt,Re,ue,ae){this.parser=we,this.predicate=Ge,this.mounts=ht,this.index=nt,this.start=Re,this.target=ue,this.prev=ae,this.depth=0,this.ranges=[]}}const V=new v({perNode:!0});class pe{constructor(we,Ge,ht,nt,Re){this.nest=Ge,this.input=ht,this.fragments=nt,this.ranges=Re,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=we}advance(){if(this.baseParse){let ht=this.baseParse.advance();if(!ht)return null;if(this.baseParse=null,this.baseTree=ht,this.startInner(),this.stoppedAt!=null)for(let nt of this.inner)nt.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let ht=this.baseTree;return this.stoppedAt!=null&&(ht=new b(ht.type,ht.children,ht.positions,ht.length,ht.propValues.concat([[V,this.stoppedAt]]))),ht}let we=this.inner[this.innerDone],Ge=we.parse.advance();if(Ge){this.innerDone++;let ht=Object.assign(Object.create(null),we.target.props);ht[v.mounted.id]=new l(Ge,we.overlay,we.parser),we.target.props=ht}return null}get parsedPos(){if(this.baseParse)return 0;let we=this.input.length;for(let Ge=this.innerDone;Ge<this.inner.length;Ge++)this.inner[Ge].ranges[0].from<we&&(we=Math.min(we,this.inner[Ge].parse.parsedPos));return we}stopAt(we){if(this.stoppedAt=we,this.baseParse)this.baseParse.stopAt(we);else for(let Ge=this.innerDone;Ge<this.inner.length;Ge++)this.inner[Ge].parse.stopAt(we)}startInner(){let we=new fe(this.fragments),Ge=null,ht=null,nt=new K(new R(this.baseTree,this.ranges[0].from,0,null),y.IncludeAnonymous|y.IgnoreMounts);e:for(let Re,ue;this.stoppedAt==null||nt.from<this.stoppedAt;){let ae=!0,ve;if(we.hasNode(nt)){if(Ge){let Me=Ge.mounts.find(Ye=>Ye.frag.from<=nt.from&&Ye.frag.to>=nt.to&&Ye.mount.overlay);if(Me)for(let Ye of Me.mount.overlay){let qe=Ye.from+Me.pos,At=Ye.to+Me.pos;qe>=nt.from&&At<=nt.to&&!Ge.ranges.some(It=>It.from<At&&It.to>qe)&&Ge.ranges.push({from:qe,to:At})}}ae=!1}else if(ht&&(ue=ce(ht.ranges,nt.from,nt.to)))ae=ue!=2;else if(!nt.type.isAnonymous&&nt.from<nt.to&&(Re=this.nest(nt,this.input))){nt.tree||te(nt);let Me=we.findMounts(nt.from,Re.parser);if(typeof Re.overlay=="function")Ge=new F(Re.parser,Re.overlay,Me,this.inner.length,nt.from,nt.tree,Ge);else{let Ye=Se(this.ranges,Re.overlay||[new u(nt.from,nt.to)]);Ye.length&&this.inner.push(new k(Re.parser,Re.parser.startParse(this.input,me(Me,Ye),Ye),Re.overlay?Re.overlay.map(qe=>new u(qe.from-nt.from,qe.to-nt.from)):null,nt.tree,Ye)),Re.overlay?Ye.length&&(ht={ranges:Ye,depth:0,prev:ht}):ae=!1}}else Ge&&(ve=Ge.predicate(nt))&&(ve===!0&&(ve=new u(nt.from,nt.to)),ve.from<ve.to&&Ge.ranges.push(ve));if(ae&&nt.firstChild())Ge&&Ge.depth++,ht&&ht.depth++;else for(;!nt.nextSibling();){if(!nt.parent())break e;if(Ge&&!--Ge.depth){let Me=Se(this.ranges,Ge.ranges);Me.length&&this.inner.splice(Ge.index,0,new k(Ge.parser,Ge.parser.startParse(this.input,me(Ge.mounts,Me),Me),Ge.ranges.map(Ye=>new u(Ye.from-Ge.start,Ye.to-Ge.start)),Ge.target,Me)),Ge=Ge.prev}ht&&!--ht.depth&&(ht=ht.prev)}}}}function ce(_e,we,Ge){for(let ht of _e){if(ht.from>=Ge)break;if(ht.to>we)return ht.from<=we&&ht.to>=Ge?2:1}return 0}function G(_e,we,Ge,ht,nt,Re){if(we<Ge){let ue=_e.buffer[we+1];ht.push(_e.slice(we,Ge,ue)),nt.push(ue-Re)}}function te(_e){let{node:we}=_e,Ge=0;do _e.parent(),Ge++;while(!_e.tree);let ht=0,nt=_e.tree,Re=0;for(;Re=nt.positions[ht]+_e.from,!(Re<=we.from&&Re+nt.children[ht].length>=we.to);ht++);let ue=nt.children[ht],ae=ue.buffer;function ve(Me,Ye,qe,At,It){let Ce=Me;for(;ae[Ce+2]+Re<=we.from;)Ce=ae[Ce+3];let Ae=[],$e=[];G(ue,Me,Ce,Ae,$e,At);let tt=ae[Ce+1],ke=ae[Ce+2],Oe=tt+Re==we.from&&ke+Re==we.to&&ae[Ce]==we.type.id;return Ae.push(Oe?we.toTree():ve(Ce+4,ae[Ce+3],ue.set.types[ae[Ce]],tt,ke-tt)),$e.push(tt-At),G(ue,ae[Ce+3],Ye,Ae,$e,At),new b(qe,Ae,$e,It)}nt.children[ht]=ve(0,ae.length,p.none,0,ue.length);for(let Me=0;Me<=Ge;Me++)_e.childAfter(we.from)}class ie{constructor(we,Ge){this.offset=Ge,this.done=!1,this.cursor=we.cursor(y.IncludeAnonymous|y.IgnoreMounts)}moveTo(we){let{cursor:Ge}=this,ht=we-this.offset;for(;!this.done&&Ge.from<ht;)Ge.to>=we&&Ge.enter(ht,1,y.IgnoreOverlays|y.ExcludeBuffers)||Ge.next(!1)||(this.done=!0)}hasNode(we){if(this.moveTo(we.from),!this.done&&this.cursor.from+this.offset==we.from&&this.cursor.tree)for(let Ge=this.cursor.tree;;){if(Ge==we.tree)return!0;if(Ge.children.length&&Ge.positions[0]==0&&Ge.children[0]instanceof b)Ge=Ge.children[0];else break}return!1}}class fe{constructor(we){var Ge;if(this.fragments=we,this.curTo=0,this.fragI=0,we.length){let ht=this.curFrag=we[0];this.curTo=(Ge=ht.tree.prop(V))!==null&&Ge!==void 0?Ge:ht.to,this.inner=new ie(ht.tree,-ht.offset)}else this.curFrag=this.inner=null}hasNode(we){for(;this.curFrag&&we.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=we.from&&this.curTo>=we.to&&this.inner.hasNode(we)}nextFrag(){var we;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let Ge=this.curFrag=this.fragments[this.fragI];this.curTo=(we=Ge.tree.prop(V))!==null&&we!==void 0?we:Ge.to,this.inner=new ie(Ge.tree,-Ge.offset)}}findMounts(we,Ge){var ht;let nt=[];if(this.inner){this.inner.cursor.moveTo(we,1);for(let Re=this.inner.cursor.node;Re;Re=Re.parent){let ue=(ht=Re.tree)===null||ht===void 0?void 0:ht.prop(v.mounted);if(ue&&ue.parser==Ge)for(let ae=this.fragI;ae<this.fragments.length;ae++){let ve=this.fragments[ae];if(ve.from>=Re.to)break;ve.tree==this.curFrag.tree&&nt.push({frag:ve,pos:Re.from-ve.offset,mount:ue})}}}return nt}}function Se(_e,we){let Ge=null,ht=we;for(let nt=1,Re=0;nt<_e.length;nt++){let ue=_e[nt-1].to,ae=_e[nt].from;for(;Re<ht.length;Re++){let ve=ht[Re];if(ve.from>=ae)break;ve.to<=ue||(Ge||(ht=Ge=we.slice()),ve.from<ue?(Ge[Re]=new u(ve.from,ue),ve.to>ae&&Ge.splice(Re+1,0,new u(ae,ve.to))):ve.to>ae?Ge[Re--]=new u(ae,ve.to):Ge.splice(Re--,1))}}return ht}function he(_e,we,Ge,ht){let nt=0,Re=0,ue=!1,ae=!1,ve=-1e9,Me=[];for(;;){let Ye=nt==_e.length?1e9:ue?_e[nt].to:_e[nt].from,qe=Re==we.length?1e9:ae?we[Re].to:we[Re].from;if(ue!=ae){let At=Math.max(ve,Ge),It=Math.min(Ye,qe,ht);At<It&&Me.push(new u(At,It))}if(ve=Math.min(Ye,qe),ve==1e9)break;Ye==ve&&(ue?(ue=!1,nt++):ue=!0),qe==ve&&(ae?(ae=!1,Re++):ae=!0)}return Me}function me(_e,we){let Ge=[];for(let{pos:ht,mount:nt,frag:Re}of _e){let ue=ht+(nt.overlay?nt.overlay[0].from:0),ae=ue+nt.tree.length,ve=Math.max(Re.from,ue),Me=Math.min(Re.to,ae);if(nt.overlay){let Ye=nt.overlay.map(At=>new u(At.from+ht,At.to+ht)),qe=he(we,Ye,ve,Me);for(let At=0,It=ve;;At++){let Ce=At==qe.length,Ae=Ce?Me:qe[At].from;if(Ae>It&&Ge.push(new J(It,Ae,nt.tree,-ue,Re.from>=It||Re.openStart,Re.to<=Ae||Re.openEnd)),Ce)break;It=qe[At].to}}else Ge.push(new J(ve,Me,nt.tree,-ue,Re.from>=ue||Re.openStart,Re.to<=ae||Re.openEnd))}return Ge}},55859:(C,c,t)=>{"use strict";t.d(c,{WQ:()=>Z});var i=t(90823);class s{constructor(k,F,V,pe,ce,G,te,ie,fe,Se=0,he){this.p=k,this.stack=F,this.state=V,this.reducePos=pe,this.pos=ce,this.score=G,this.buffer=te,this.bufferBase=ie,this.curContext=fe,this.lookAhead=Se,this.parent=he}toString(){return`[${this.stack.filter((k,F)=>F%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(k,F,V=0){let pe=k.parser.context;return new s(k,[],F,V,V,0,[],0,pe?new u(pe,pe.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(k,F){this.stack.push(this.state,F,this.bufferBase+this.buffer.length),this.state=k}reduce(k){var F;let V=k>>19,pe=k&65535,{parser:ce}=this.p,G=ce.dynamicPrecedence(pe);if(G&&(this.score+=G),V==0){this.pushState(ce.getGoto(this.state,pe,!0),this.reducePos),pe<ce.minRepeatTerm&&this.storeNode(pe,this.reducePos,this.reducePos,4,!0),this.reduceContext(pe,this.reducePos);return}let te=this.stack.length-(V-1)*3-(k&262144?6:0),ie=te?this.stack[te-2]:this.p.ranges[0].from,fe=this.reducePos-ie;fe>=2e3&&!(!((F=this.p.parser.nodeSet.types[pe])===null||F===void 0)&&F.isAnonymous)&&(ie==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=fe):this.p.lastBigReductionSize<fe&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=ie,this.p.lastBigReductionSize=fe));let Se=te?this.stack[te-1]:0,he=this.bufferBase+this.buffer.length-Se;if(pe<ce.minRepeatTerm||k&131072){let me=ce.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(pe,ie,me,he+4,!0)}if(k&262144)this.state=this.stack[te];else{let me=this.stack[te-3];this.state=ce.getGoto(me,pe,!0)}for(;this.stack.length>te;)this.stack.pop();this.reduceContext(pe,ie)}storeNode(k,F,V,pe=4,ce=!1){if(k==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let G=this,te=this.buffer.length;if(te==0&&G.parent&&(te=G.bufferBase-G.parent.bufferBase,G=G.parent),te>0&&G.buffer[te-4]==0&&G.buffer[te-1]>-1){if(F==V)return;if(G.buffer[te-2]>=F){G.buffer[te-2]=V;return}}}if(!ce||this.pos==V)this.buffer.push(k,F,V,pe);else{let G=this.buffer.length;if(G>0&&this.buffer[G-4]!=0)for(;G>0&&this.buffer[G-2]>V;)this.buffer[G]=this.buffer[G-4],this.buffer[G+1]=this.buffer[G-3],this.buffer[G+2]=this.buffer[G-2],this.buffer[G+3]=this.buffer[G-1],G-=4,pe>4&&(pe-=4);this.buffer[G]=k,this.buffer[G+1]=F,this.buffer[G+2]=V,this.buffer[G+3]=pe}}shift(k,F,V){let pe=this.pos;if(k&131072)this.pushState(k&65535,this.pos);else if(k&262144)this.pos=V,this.shiftContext(F,pe),F<=this.p.parser.maxNode&&this.buffer.push(F,pe,V,4);else{let ce=k,{parser:G}=this.p;(V>this.pos||F<=G.maxNode)&&(this.pos=V,G.stateFlag(ce,1)||(this.reducePos=V)),this.pushState(ce,pe),this.shiftContext(F,pe),F<=G.maxNode&&this.buffer.push(F,pe,V,4)}}apply(k,F,V){k&65536?this.reduce(k):this.shift(k,F,V)}useNode(k,F){let V=this.p.reused.length-1;(V<0||this.p.reused[V]!=k)&&(this.p.reused.push(k),V++);let pe=this.pos;this.reducePos=this.pos=pe+k.length,this.pushState(F,pe),this.buffer.push(V,pe,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,k,this,this.p.stream.reset(this.pos-k.length)))}split(){let k=this,F=k.buffer.length;for(;F>0&&k.buffer[F-2]>k.reducePos;)F-=4;let V=k.buffer.slice(F),pe=k.bufferBase+F;for(;k&&pe==k.bufferBase;)k=k.parent;return new s(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,V,pe,this.curContext,this.lookAhead,k)}recoverByDelete(k,F){let V=k<=this.p.parser.maxNode;V&&this.storeNode(k,this.pos,F,4),this.storeNode(0,this.pos,F,V?8:4),this.pos=this.reducePos=F,this.score-=190}canShift(k){for(let F=new l(this);;){let V=this.p.parser.stateSlot(F.state,4)||this.p.parser.hasAction(F.state,k);if(V==0)return!1;if(!(V&65536))return!0;F.reduce(V)}}recoverByInsert(k){if(this.stack.length>=300)return[];let F=this.p.parser.nextStates(this.state);if(F.length>8||this.stack.length>=120){let pe=[];for(let ce=0,G;ce<F.length;ce+=2)(G=F[ce+1])!=this.state&&this.p.parser.hasAction(G,k)&&pe.push(F[ce],G);if(this.stack.length<120)for(let ce=0;pe.length<8&&ce<F.length;ce+=2){let G=F[ce+1];pe.some((te,ie)=>ie&1&&te==G)||pe.push(F[ce],G)}F=pe}let V=[];for(let pe=0;pe<F.length&&V.length<4;pe+=2){let ce=F[pe+1];if(ce==this.state)continue;let G=this.split();G.pushState(ce,this.pos),G.storeNode(0,G.pos,G.pos,4,!0),G.shiftContext(F[pe],this.pos),G.score-=200,V.push(G)}return V}forceReduce(){let k=this.p.parser.stateSlot(this.state,5);if(!(k&65536))return!1;let{parser:F}=this.p;if(!F.validAction(this.state,k)){let V=k>>19,pe=k&65535,ce=this.stack.length-V*3;if(ce<0||F.getGoto(this.stack[ce],pe,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(k),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:k}=this.p;return k.data[k.stateSlot(this.state,1)]==65535&&!k.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(k){if(this.state!=k.state||this.stack.length!=k.stack.length)return!1;for(let F=0;F<this.stack.length;F+=3)if(this.stack[F]!=k.stack[F])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(k){return this.p.parser.dialect.flags[k]}shiftContext(k,F){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,k,this,this.p.stream.reset(F)))}reduceContext(k,F){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,k,this,this.p.stream.reset(F)))}emitContext(){let k=this.buffer.length-1;(k<0||this.buffer[k]!=-3)&&this.buffer.push(this.curContext.hash,this.reducePos,this.reducePos,-3)}emitLookAhead(){let k=this.buffer.length-1;(k<0||this.buffer[k]!=-4)&&this.buffer.push(this.lookAhead,this.reducePos,this.reducePos,-4)}updateContext(k){if(k!=this.curContext.context){let F=new u(this.curContext.tracker,k);F.hash!=this.curContext.hash&&this.emitContext(),this.curContext=F}}setLookAhead(k){k>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=k)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class u{constructor(k,F){this.tracker=k,this.context=F,this.hash=k.strict?k.hash(F):0}}var v;(function($){$[$.Insert=200]="Insert",$[$.Delete=190]="Delete",$[$.Reduce=100]="Reduce",$[$.MaxNext=4]="MaxNext",$[$.MaxInsertStackDepth=300]="MaxInsertStackDepth",$[$.DampenInsertStackDepth=120]="DampenInsertStackDepth",$[$.MinBigReduction=2e3]="MinBigReduction"})(v||(v={}));class l{constructor(k){this.start=k,this.state=k.state,this.stack=k.stack,this.base=this.stack.length}reduce(k){let F=k&65535,V=k>>19;V==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(V-1)*3;let pe=this.start.p.parser.getGoto(this.stack[this.base-3],F,!0);this.state=pe}}class h{constructor(k,F,V){this.stack=k,this.pos=F,this.index=V,this.buffer=k.buffer,this.index==0&&this.maybeNext()}static create(k,F=k.bufferBase+k.buffer.length){return new h(k,F,F-k.bufferBase)}maybeNext(){let k=this.stack.parent;k!=null&&(this.index=this.stack.bufferBase-k.bufferBase,this.stack=k,this.buffer=k.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new h(this.stack,this.pos,this.index)}}function p($,k=Uint16Array){if(typeof $!="string")return $;let F=null;for(let V=0,pe=0;V<$.length;){let ce=0;for(;;){let G=$.charCodeAt(V++),te=!1;if(G==126){ce=65535;break}G>=92&&G--,G>=34&&G--;let ie=G-32;if(ie>=46&&(ie-=46,te=!0),ce+=ie,te)break;ce*=46}F?F[pe++]=ce:F=new k(ce)}return F}class d{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const f=new d;class g{constructor(k,F){this.input=k,this.ranges=F,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=f,this.rangeIndex=0,this.pos=this.chunkPos=F[0].from,this.range=F[0],this.end=F[F.length-1].to,this.readNext()}resolveOffset(k,F){let V=this.range,pe=this.rangeIndex,ce=this.pos+k;for(;ce<V.from;){if(!pe)return null;let G=this.ranges[--pe];ce-=V.from-G.to,V=G}for(;F<0?ce>V.to:ce>=V.to;){if(pe==this.ranges.length-1)return null;let G=this.ranges[++pe];ce+=G.from-V.to,V=G}return ce}clipPos(k){if(k>=this.range.from&&k<this.range.to)return k;for(let F of this.ranges)if(F.to>k)return Math.max(k,F.from);return this.end}peek(k){let F=this.chunkOff+k,V,pe;if(F>=0&&F<this.chunk.length)V=this.pos+k,pe=this.chunk.charCodeAt(F);else{let ce=this.resolveOffset(k,1);if(ce==null)return-1;if(V=ce,V>=this.chunk2Pos&&V<this.chunk2Pos+this.chunk2.length)pe=this.chunk2.charCodeAt(V-this.chunk2Pos);else{let G=this.rangeIndex,te=this.range;for(;te.to<=V;)te=this.ranges[++G];this.chunk2=this.input.chunk(this.chunk2Pos=V),V+this.chunk2.length>te.to&&(this.chunk2=this.chunk2.slice(0,te.to-V)),pe=this.chunk2.charCodeAt(0)}}return V>=this.token.lookAhead&&(this.token.lookAhead=V+1),pe}acceptToken(k,F=0){let V=F?this.resolveOffset(F,-1):this.pos;if(V==null||V<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=k,this.token.end=V}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:k,chunkPos:F}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=k,this.chunk2Pos=F,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let k=this.input.chunk(this.pos),F=this.pos+k.length;this.chunk=F>this.range.to?k.slice(0,this.range.to-this.pos):k,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(k=1){for(this.chunkOff+=k;this.pos+k>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();k-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=k,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(k,F){if(F?(this.token=F,F.start=k,F.lookAhead=k+1,F.value=F.extended=-1):this.token=f,this.pos!=k){if(this.pos=k,k==this.end)return this.setDone(),this;for(;k<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;k>=this.range.to;)this.range=this.ranges[++this.rangeIndex];k>=this.chunkPos&&k<this.chunkPos+this.chunk.length?this.chunkOff=k-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(k,F){if(k>=this.chunkPos&&F<=this.chunkPos+this.chunk.length)return this.chunk.slice(k-this.chunkPos,F-this.chunkPos);if(k>=this.chunk2Pos&&F<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(k-this.chunk2Pos,F-this.chunk2Pos);if(k>=this.range.from&&F<=this.range.to)return this.input.read(k,F);let V="";for(let pe of this.ranges){if(pe.from>=F)break;pe.to>k&&(V+=this.input.read(Math.max(pe.from,k),Math.min(pe.to,F)))}return V}}class y{constructor(k,F){this.data=k,this.id=F}token(k,F){let{parser:V}=F.p;S(this.data,k,F,this.id,V.data,V.tokenPrecTable)}}y.prototype.contextual=y.prototype.fallback=y.prototype.extend=!1;class b{constructor(k,F,V){this.precTable=F,this.elseToken=V,this.data=typeof k=="string"?p(k):k}token(k,F){let V=k.pos,pe;for(;pe=k.pos,S(this.data,k,F,0,this.data,this.precTable),!(k.token.value>-1);){if(this.elseToken==null)return;if(k.next<0)break;k.advance(),k.reset(pe+1,k.token)}pe>V&&(k.reset(V,k.token),k.acceptToken(this.elseToken,pe-V))}}b.prototype.contextual=y.prototype.fallback=y.prototype.extend=!1;class E{constructor(k,F={}){this.token=k,this.contextual=!!F.contextual,this.fallback=!!F.fallback,this.extend=!!F.extend}}function S($,k,F,V,pe,ce){let G=0,te=1<<V,{dialect:ie}=F.p.parser;e:for(;te&$[G];){let fe=$[G+1];for(let _e=G+3;_e<fe;_e+=2)if(($[_e+1]&te)>0){let we=$[_e];if(ie.allows(we)&&(k.token.value==-1||k.token.value==we||x(we,k.token.value,pe,ce))){k.acceptToken(we);break}}let Se=k.next,he=0,me=$[G+2];if(k.next<0&&me>he&&$[fe+me*3-3]==65535&&$[fe+me*3-3]==65535){G=$[fe+me*3-1];continue e}for(;he<me;){let _e=he+me>>1,we=fe+_e+(_e<<1),Ge=$[we],ht=$[we+1]||65536;if(Se<Ge)me=_e;else if(Se>=ht)he=_e+1;else{G=$[we+2],k.advance();continue e}}break}}function w($,k,F){for(let V=k,pe;(pe=$[V])!=65535;V++)if(pe==F)return V-k;return-1}function x($,k,F,V){let pe=w(F,V,k);return pe<0||w(F,V,$)<pe}const P=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let R=null;var T;(function($){$[$.Margin=25]="Margin"})(T||(T={}));function A($,k,F){let V=$.cursor(i.vj.IncludeAnonymous);for(V.moveTo(k);;)if(!(F<0?V.childBefore(k):V.childAfter(k)))for(;;){if((F<0?V.to<k:V.from>k)&&!V.type.isError)return F<0?Math.max(0,Math.min(V.to-1,k-25)):Math.min($.length,Math.max(V.from+1,k+25));if(F<0?V.prevSibling():V.nextSibling())break;if(!V.parent())return F<0?0:$.length}}class I{constructor(k,F){this.fragments=k,this.nodeSet=F,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let k=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(k){for(this.safeFrom=k.openStart?A(k.tree,k.from+k.offset,1)-k.offset:k.from,this.safeTo=k.openEnd?A(k.tree,k.to+k.offset,-1)-k.offset:k.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(k.tree),this.start.push(-k.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(k){if(k<this.nextStart)return null;for(;this.fragment&&this.safeTo<=k;)this.nextFragment();if(!this.fragment)return null;for(;;){let F=this.trees.length-1;if(F<0)return this.nextFragment(),null;let V=this.trees[F],pe=this.index[F];if(pe==V.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let ce=V.children[pe],G=this.start[F]+V.positions[pe];if(G>k)return this.nextStart=G,null;if(ce instanceof i.mp){if(G==k){if(G<this.safeFrom)return null;let te=G+ce.length;if(te<=this.safeTo){let ie=ce.prop(i.md.lookAhead);if(!ie||te+ie<this.fragment.to)return ce}}this.index[F]++,G+ce.length>=Math.max(this.safeFrom,k)&&(this.trees.push(ce),this.start.push(G),this.index.push(0))}else this.index[F]++,this.nextStart=G+ce.length}}}class N{constructor(k,F){this.stream=F,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=k.tokenizers.map(V=>new d)}getActions(k){let F=0,V=null,{parser:pe}=k.p,{tokenizers:ce}=pe,G=pe.stateSlot(k.state,3),te=k.curContext?k.curContext.hash:0,ie=0;for(let fe=0;fe<ce.length;fe++){if(!(1<<fe&G))continue;let Se=ce[fe],he=this.tokens[fe];if(!(V&&!Se.fallback)&&((Se.contextual||he.start!=k.pos||he.mask!=G||he.context!=te)&&(this.updateCachedToken(he,Se,k),he.mask=G,he.context=te),he.lookAhead>he.end+25&&(ie=Math.max(he.lookAhead,ie)),he.value!=0)){let me=F;if(he.extended>-1&&(F=this.addActions(k,he.extended,he.end,F)),F=this.addActions(k,he.value,he.end,F),!Se.extend&&(V=he,F>me))break}}for(;this.actions.length>F;)this.actions.pop();return ie&&k.setLookAhead(ie),!V&&k.pos==this.stream.end&&(V=new d,V.value=k.p.parser.eofTerm,V.start=V.end=k.pos,F=this.addActions(k,V.value,V.end,F)),this.mainToken=V,this.actions}getMainToken(k){if(this.mainToken)return this.mainToken;let F=new d,{pos:V,p:pe}=k;return F.start=V,F.end=Math.min(V+1,pe.stream.end),F.value=V==pe.stream.end?pe.parser.eofTerm:0,F}updateCachedToken(k,F,V){let pe=this.stream.clipPos(V.pos);if(F.token(this.stream.reset(pe,k),V),k.value>-1){let{parser:ce}=V.p;for(let G=0;G<ce.specialized.length;G++)if(ce.specialized[G]==k.value){let te=ce.specializers[G](this.stream.read(k.start,k.end),V);if(te>=0&&V.p.parser.dialect.allows(te>>1)){te&1?k.extended=te>>1:k.value=te>>1;break}}}else k.value=0,k.end=this.stream.clipPos(pe+1)}putAction(k,F,V,pe){for(let ce=0;ce<pe;ce+=3)if(this.actions[ce]==k)return pe;return this.actions[pe++]=k,this.actions[pe++]=F,this.actions[pe++]=V,pe}addActions(k,F,V,pe){let{state:ce}=k,{parser:G}=k.p,{data:te}=G;for(let ie=0;ie<2;ie++)for(let fe=G.stateSlot(ce,ie?2:1);;fe+=3){if(te[fe]==65535)if(te[fe+1]==1)fe=J(te,fe+2);else{pe==0&&te[fe+1]==2&&(pe=this.putAction(J(te,fe+2),F,V,pe));break}te[fe]==F&&(pe=this.putAction(J(te,fe+1),F,V,pe))}return pe}}var K;(function($){$[$.Distance=5]="Distance",$[$.MaxRemainingPerStep=3]="MaxRemainingPerStep",$[$.MinBufferLengthPrune=500]="MinBufferLengthPrune",$[$.ForceReduceLimit=10]="ForceReduceLimit",$[$.CutDepth=15e3]="CutDepth",$[$.CutTo=9e3]="CutTo",$[$.MaxLeftAssociativeReductionCount=300]="MaxLeftAssociativeReductionCount",$[$.MaxStackCount=12]="MaxStackCount"})(K||(K={}));class _{constructor(k,F,V,pe){this.parser=k,this.input=F,this.ranges=pe,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new g(F,pe),this.tokens=new N(k,this.stream),this.topTerm=k.top[1];let{from:ce}=pe[0];this.stacks=[s.start(this,k.top[0],ce)],this.fragments=V.length&&this.stream.end-ce>k.bufferLength*4?new I(V,k.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let k=this.stacks,F=this.minStackPos,V=this.stacks=[],pe,ce;if(this.bigReductionCount>300&&k.length==1){let[G]=k;for(;G.forceReduce()&&G.stack.length&&G.stack[G.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let G=0;G<k.length;G++){let te=k[G];for(;;){if(this.tokens.mainToken=null,te.pos>F)V.push(te);else{if(this.advanceStack(te,V,k))continue;{pe||(pe=[],ce=[]),pe.push(te);let ie=this.tokens.getMainToken(te);ce.push(ie.value,ie.end)}}break}}if(!V.length){let G=pe&&q(pe);if(G)return this.stackToTree(G);if(this.parser.strict)throw P&&pe&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+F);this.recovering||(this.recovering=5)}if(this.recovering&&pe){let G=this.stoppedAt!=null&&pe[0].pos>this.stoppedAt?pe[0]:this.runRecovery(pe,ce,V);if(G)return this.stackToTree(G.forceAll())}if(this.recovering){let G=this.recovering==1?1:this.recovering*3;if(V.length>G)for(V.sort((te,ie)=>ie.score-te.score);V.length>G;)V.pop();V.some(te=>te.reducePos>F)&&this.recovering--}else if(V.length>1){e:for(let G=0;G<V.length-1;G++){let te=V[G];for(let ie=G+1;ie<V.length;ie++){let fe=V[ie];if(te.sameState(fe)||te.buffer.length>500&&fe.buffer.length>500)if((te.score-fe.score||te.buffer.length-fe.buffer.length)>0)V.splice(ie--,1);else{V.splice(G--,1);continue e}}}V.length>12&&V.splice(12,V.length-12)}this.minStackPos=V[0].pos;for(let G=1;G<V.length;G++)V[G].pos<this.minStackPos&&(this.minStackPos=V[G].pos);return null}stopAt(k){if(this.stoppedAt!=null&&this.stoppedAt<k)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=k}advanceStack(k,F,V){let pe=k.pos,{parser:ce}=this,G=P?this.stackID(k)+" -> ":"";if(this.stoppedAt!=null&&pe>this.stoppedAt)return k.forceReduce()?k:null;if(this.fragments){let fe=k.curContext&&k.curContext.tracker.strict,Se=fe?k.curContext.hash:0;for(let he=this.fragments.nodeAt(pe);he;){let me=this.parser.nodeSet.types[he.type.id]==he.type?ce.getGoto(k.state,he.type.id):-1;if(me>-1&&he.length&&(!fe||(he.prop(i.md.contextHash)||0)==Se))return k.useNode(he,me),P&&console.log(G+this.stackID(k)+` (via reuse of ${ce.getName(he.type.id)})`),!0;if(!(he instanceof i.mp)||he.children.length==0||he.positions[0]>0)break;let _e=he.children[0];if(_e instanceof i.mp&&he.positions[0]==0)he=_e;else break}}let te=ce.stateSlot(k.state,4);if(te>0)return k.reduce(te),P&&console.log(G+this.stackID(k)+` (via always-reduce ${ce.getName(te&65535)})`),!0;if(k.stack.length>=15e3)for(;k.stack.length>9e3&&k.forceReduce(););let ie=this.tokens.getActions(k);for(let fe=0;fe<ie.length;){let Se=ie[fe++],he=ie[fe++],me=ie[fe++],_e=fe==ie.length||!V,we=_e?k:k.split();if(we.apply(Se,he,me),P&&console.log(G+this.stackID(we)+` (via ${Se&65536?`reduce of ${ce.getName(Se&65535)}`:"shift"} for ${ce.getName(he)} @ ${pe}${we==k?"":", split"})`),_e)return!0;we.pos>pe?F.push(we):V.push(we)}return!1}advanceFully(k,F){let V=k.pos;for(;;){if(!this.advanceStack(k,null,null))return!1;if(k.pos>V)return W(k,F),!0}}runRecovery(k,F,V){let pe=null,ce=!1;for(let G=0;G<k.length;G++){let te=k[G],ie=F[G<<1],fe=F[(G<<1)+1],Se=P?this.stackID(te)+" -> ":"";if(te.deadEnd&&(ce||(ce=!0,te.restart(),P&&console.log(Se+this.stackID(te)+" (restarted)"),this.advanceFully(te,V))))continue;let he=te.split(),me=Se;for(let _e=0;he.forceReduce()&&_e<10&&(P&&console.log(me+this.stackID(he)+" (via force-reduce)"),!this.advanceFully(he,V));_e++)P&&(me=this.stackID(he)+" -> ");for(let _e of te.recoverByInsert(ie))P&&console.log(Se+this.stackID(_e)+" (via recover-insert)"),this.advanceFully(_e,V);this.stream.end>te.pos?(fe==te.pos&&(fe++,ie=0),te.recoverByDelete(ie,fe),P&&console.log(Se+this.stackID(te)+` (via recover-delete ${this.parser.getName(ie)})`),W(te,V)):(!pe||pe.score<te.score)&&(pe=te)}return pe}stackToTree(k){return k.close(),i.mp.build({buffer:h.create(k),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:k.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(k){let F=(R||(R=new WeakMap)).get(k);return F||R.set(k,F=String.fromCodePoint(this.nextStackID++)),F+k}}function W($,k){for(let F=0;F<k.length;F++){let V=k[F];if(V.pos==$.pos&&V.sameState($)){k[F].score<$.score&&(k[F]=$);return}}k.push($)}class j{constructor(k,F,V){this.source=k,this.flags=F,this.disabled=V}allows(k){return!this.disabled||this.disabled[k]==0}}const re=$=>$;class X{constructor(k){this.start=k.start,this.shift=k.shift||re,this.reduce=k.reduce||re,this.reuse=k.reuse||re,this.hash=k.hash||(()=>0),this.strict=k.strict!==!1}}class Z extends i._b{constructor(k){if(super(),this.wrappers=[],k.version!=14)throw new RangeError(`Parser version (${k.version}) doesn't match runtime version (14)`);let F=k.nodeNames.split(" ");this.minRepeatTerm=F.length;for(let te=0;te<k.repeatNodeCount;te++)F.push("");let V=Object.keys(k.topRules).map(te=>k.topRules[te][1]),pe=[];for(let te=0;te<F.length;te++)pe.push([]);function ce(te,ie,fe){pe[te].push([ie,ie.deserialize(String(fe))])}if(k.nodeProps)for(let te of k.nodeProps){let ie=te[0];typeof ie=="string"&&(ie=i.md[ie]);for(let fe=1;fe<te.length;){let Se=te[fe++];if(Se>=0)ce(Se,ie,te[fe++]);else{let he=te[fe+-Se];for(let me=-Se;me>0;me--)ce(te[fe++],ie,he);fe++}}}this.nodeSet=new i.Lj(F.map((te,ie)=>i.Jq.define({name:ie>=this.minRepeatTerm?void 0:te,id:ie,props:pe[ie],top:V.indexOf(ie)>-1,error:ie==0,skipped:k.skippedNodes&&k.skippedNodes.indexOf(ie)>-1}))),k.propSources&&(this.nodeSet=this.nodeSet.extend(...k.propSources)),this.strict=!1,this.bufferLength=i.L3;let G=p(k.tokenData);this.context=k.context,this.specializerSpecs=k.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let te=0;te<this.specializerSpecs.length;te++)this.specialized[te]=this.specializerSpecs[te].term;this.specializers=this.specializerSpecs.map(L),this.states=p(k.states,Uint32Array),this.data=p(k.stateData),this.goto=p(k.goto),this.maxTerm=k.maxTerm,this.tokenizers=k.tokenizers.map(te=>typeof te=="number"?new y(G,te):te),this.topRules=k.topRules,this.dialects=k.dialects||{},this.dynamicPrecedences=k.dynamicPrecedences||null,this.tokenPrecTable=k.tokenPrec,this.termNames=k.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(k,F,V){let pe=new _(this,k,F,V);for(let ce of this.wrappers)pe=ce(pe,k,F,V);return pe}getGoto(k,F,V=!1){let pe=this.goto;if(F>=pe[0])return-1;for(let ce=pe[F+1];;){let G=pe[ce++],te=G&1,ie=pe[ce++];if(te&&V)return ie;for(let fe=ce+(G>>1);ce<fe;ce++)if(pe[ce]==k)return ie;if(te)return-1}}hasAction(k,F){let V=this.data;for(let pe=0;pe<2;pe++)for(let ce=this.stateSlot(k,pe?2:1),G;;ce+=3){if((G=V[ce])==65535)if(V[ce+1]==1)G=V[ce=J(V,ce+2)];else{if(V[ce+1]==2)return J(V,ce+2);break}if(G==F||G==0)return J(V,ce+1)}return 0}stateSlot(k,F){return this.states[k*6+F]}stateFlag(k,F){return(this.stateSlot(k,0)&F)>0}validAction(k,F){if(F==this.stateSlot(k,4))return!0;for(let V=this.stateSlot(k,1);;V+=3){if(this.data[V]==65535)if(this.data[V+1]==1)V=J(this.data,V+2);else return!1;if(F==J(this.data,V+1))return!0}}nextStates(k){let F=[];for(let V=this.stateSlot(k,1);;V+=3){if(this.data[V]==65535)if(this.data[V+1]==1)V=J(this.data,V+2);else break;if(!(this.data[V+2]&1)){let pe=this.data[V+1];F.some((ce,G)=>G&1&&ce==pe)||F.push(this.data[V],pe)}}return F}configure(k){let F=Object.assign(Object.create(Z.prototype),this);if(k.props&&(F.nodeSet=this.nodeSet.extend(...k.props)),k.top){let V=this.topRules[k.top];if(!V)throw new RangeError(`Invalid top rule name ${k.top}`);F.top=V}return k.tokenizers&&(F.tokenizers=this.tokenizers.map(V=>{let pe=k.tokenizers.find(ce=>ce.from==V);return pe?pe.to:V})),k.specializers&&(F.specializers=this.specializers.slice(),F.specializerSpecs=this.specializerSpecs.map((V,pe)=>{let ce=k.specializers.find(te=>te.from==V.external);if(!ce)return V;let G=Object.assign(Object.assign({},V),{external:ce.to});return F.specializers[pe]=L(G),G})),k.contextTracker&&(F.context=k.contextTracker),k.dialect&&(F.dialect=this.parseDialect(k.dialect)),k.strict!=null&&(F.strict=k.strict),k.wrap&&(F.wrappers=F.wrappers.concat(k.wrap)),k.bufferLength!=null&&(F.bufferLength=k.bufferLength),F}hasWrappers(){return this.wrappers.length>0}getName(k){return this.termNames?this.termNames[k]:String(k<=this.maxNode&&this.nodeSet.types[k].name||k)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(k){let F=this.dynamicPrecedences;return F==null?0:F[k]||0}parseDialect(k){let F=Object.keys(this.dialects),V=F.map(()=>!1);if(k)for(let ce of k.split(" ")){let G=F.indexOf(ce);G>=0&&(V[G]=!0)}let pe=null;for(let ce=0;ce<F.length;ce++)if(!V[ce])for(let G=this.dialects[F[ce]],te;(te=this.data[G++])!=65535;)(pe||(pe=new Uint8Array(this.maxTerm+1)))[te]=1;return new j(k,V,pe)}static deserialize(k){return new Z(k)}}function J($,k){return $[k]|$[k+1]<<16}function q($){let k=null;for(let F of $){let V=F.p.stoppedAt;(F.pos==F.p.stream.end||V!=null&&F.pos>V)&&F.p.parser.stateFlag(F.state,2)&&(!k||k.score<F.score)&&(k=F)}return k}function L($){if($.external){let k=$.extend?1:0;return(F,V)=>$.external(F,V)<<1|k}return $.get}},79690:(C,c,t)=>{"use strict";t.d(c,{ZP:()=>ue,_J:()=>l});var i=t(89688);const s=i.nice,u=i.parse,v=i.strip,l=i.ansicolor,h=i.black,p=i.bgBlack,d=i.red,f=i.bgRed,g=i.green,y=i.bgGreen,b=i.yellow,E=i.bgYellow,S=i.blue,w=i.bgBlue,x=i.magenta,P=i.bgMagenta,R=i.cyan,T=i.bgCyan,A=i.lightGray,I=i.bgLightGray,N=i.bgDefault,K=i.darkGray,_=i.bgDarkGray,W=i.lightRed,j=i.bgLightRed,re=i.lightGreen,X=i.bgLightGreen,Z=i.lightYellow,J=i.bgLightYellow,q=i.lightBlue,L=i.bgLightBlue,$=i.lightMagenta,k=i.bgLightMagenta,F=i.lightCyan,V=i.bgLightCyan,pe=i.white,ce=i.bgWhite,G=i.bgBrightRed,te=i.bgBrightGreen,ie=i.bgBrightYellow,fe=i.bgBrightBlue,Se=i.bgBrightMagenta,he=i.bgBrightCyan,me=i.bright,_e=i.dim,we=i.italic,Ge=i.underline,ht=i.inverse,nt=i.names,Re=i.rgb,ue=i},85907:(C,c,t)=>{"use strict";t.d(c,{Jj:()=>y,Ud:()=>S,Y6:()=>f,Yy:()=>u,sj:()=>j});/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: Apache-2.0 */const i=Symbol("Comlink.proxy"),s=Symbol("Comlink.endpoint"),u=Symbol("Comlink.releaseProxy"),v=Symbol("Comlink.finalizer"),l=Symbol("Comlink.thrown"),h=L=>typeof L=="object"&&L!==null||typeof L=="function",p={canHandle:L=>h(L)&&L[i],serialize(L){const{port1:$,port2:k}=new MessageChannel;return y(L,$),[k,[k]]},deserialize(L){return L.start(),S(L)}},d={canHandle:L=>h(L)&&l in L,serialize({value:L}){let $;return L instanceof Error?$={isError:!0,value:{message:L.message,name:L.name,stack:L.stack}}:$={isError:!1,value:L},[$,[]]},deserialize(L){throw L.isError?Object.assign(new Error(L.value.message),L.value):L.value}},f=new Map([["proxy",p],["throw",d]]);function g(L,$){for(const k of L)if($===k||k==="*"||k instanceof RegExp&&k.test($))return!0;return!1}function y(L,$=globalThis,k=["*"]){$.addEventListener("message",function F(V){if(!V||!V.data)return;if(!g(k,V.origin)){console.warn(`Invalid origin '${V.origin}' for comlink proxy`);return}const{id:pe,type:ce,path:G}=Object.assign({path:[]},V.data),te=(V.data.argumentList||[]).map(Z);let ie;try{const fe=G.slice(0,-1).reduce((he,me)=>he[me],L),Se=G.reduce((he,me)=>he[me],L);switch(ce){case"GET":ie=Se;break;case"SET":fe[G.slice(-1)[0]]=Z(V.data.value),ie=!0;break;case"APPLY":ie=Se.apply(fe,te);break;case"CONSTRUCT":{const he=new Se(...te);ie=j(he)}break;case"ENDPOINT":{const{port1:he,port2:me}=new MessageChannel;y(L,me),ie=W(he,[he])}break;case"RELEASE":ie=void 0;break;default:return}}catch(fe){ie={value:fe,[l]:0}}Promise.resolve(ie).catch(fe=>({value:fe,[l]:0})).then(fe=>{const[Se,he]=X(fe);$.postMessage(Object.assign(Object.assign({},Se),{id:pe}),he),ce==="RELEASE"&&($.removeEventListener("message",F),E($),v in L&&typeof L[v]=="function"&&L[v]())}).catch(fe=>{const[Se,he]=X({value:new TypeError("Unserializable return value"),[l]:0});$.postMessage(Object.assign(Object.assign({},Se),{id:pe}),he)})}),$.start&&$.start()}function b(L){return L.constructor.name==="MessagePort"}function E(L){b(L)&&L.close()}function S(L,$){return I(L,[],$)}function w(L){if(L)throw new Error("Proxy has been released and is not useable")}function x(L){return J(L,{type:"RELEASE"}).then(()=>{E(L)})}const P=new WeakMap,R="FinalizationRegistry"in globalThis&&new FinalizationRegistry(L=>{const $=(P.get(L)||0)-1;P.set(L,$),$===0&&x(L)});function T(L,$){const k=(P.get($)||0)+1;P.set($,k),R&&R.register(L,$,L)}function A(L){R&&R.unregister(L)}function I(L,$=[],k=function(){}){let F=!1;const V=new Proxy(k,{get(pe,ce){if(w(F),ce===u)return()=>{A(V),x(L),F=!0};if(ce==="then"){if($.length===0)return{then:()=>V};const G=J(L,{type:"GET",path:$.map(te=>te.toString())}).then(Z);return G.then.bind(G)}return I(L,[...$,ce])},set(pe,ce,G){w(F);const[te,ie]=X(G);return J(L,{type:"SET",path:[...$,ce].map(fe=>fe.toString()),value:te},ie).then(Z)},apply(pe,ce,G){w(F);const te=$[$.length-1];if(te===s)return J(L,{type:"ENDPOINT"}).then(Z);if(te==="bind")return I(L,$.slice(0,-1));const[ie,fe]=K(G);return J(L,{type:"APPLY",path:$.map(Se=>Se.toString()),argumentList:ie},fe).then(Z)},construct(pe,ce){w(F);const[G,te]=K(ce);return J(L,{type:"CONSTRUCT",path:$.map(ie=>ie.toString()),argumentList:G},te).then(Z)}});return T(V,L),V}function N(L){return Array.prototype.concat.apply([],L)}function K(L){const $=L.map(X);return[$.map(k=>k[0]),N($.map(k=>k[1]))]}const _=new WeakMap;function W(L,$){return _.set(L,$),L}function j(L){return Object.assign(L,{[i]:!0})}function re(L,$=globalThis,k="*"){return{postMessage:(F,V)=>L.postMessage(F,k,V),addEventListener:$.addEventListener.bind($),removeEventListener:$.removeEventListener.bind($)}}function X(L){for(const[$,k]of f)if(k.canHandle(L)){const[F,V]=k.serialize(L);return[{type:"HANDLER",name:$,value:F},V]}return[{type:"RAW",value:L},_.get(L)||[]]}function Z(L){switch(L.type){case"HANDLER":return f.get(L.name).deserialize(L.value);case"RAW":return L.value}}function J(L,$,k){return new Promise(F=>{const V=q();L.addEventListener("message",function pe(ce){!ce.data||!ce.data.id||ce.data.id!==V||(L.removeEventListener("message",pe),F(ce.data))}),L.start&&L.start(),L.postMessage(Object.assign({id:V},$),k)})}function q(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}},21517:(C,c,t)=>{"use strict";t.d(c,{B8:()=>_,Il:()=>s,J5:()=>v,SU:()=>K,Ss:()=>W,Ym:()=>k,ZP:()=>A,xV:()=>u});var i=t(28858);function s(){}var u=.7,v=1/u,l="\\s*([+-]?\\d+)\\s*",h="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d=/^#([0-9a-f]{3,8})$/,f=new RegExp(`^rgb\\(${l},${l},${l}\\)$`),g=new RegExp(`^rgb\\(${p},${p},${p}\\)$`),y=new RegExp(`^rgba\\(${l},${l},${l},${h}\\)$`),b=new RegExp(`^rgba\\(${p},${p},${p},${h}\\)$`),E=new RegExp(`^hsl\\(${h},${p},${p}\\)$`),S=new RegExp(`^hsla\\(${h},${p},${p},${h}\\)$`),w={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};(0,i.Z)(s,A,{copy(G){return Object.assign(new this.constructor,this,G)},displayable(){return this.rgb().displayable()},hex:x,formatHex:x,formatHex8:P,formatHsl:R,formatRgb:T,toString:T});function x(){return this.rgb().formatHex()}function P(){return this.rgb().formatHex8()}function R(){return $(this).formatHsl()}function T(){return this.rgb().formatRgb()}function A(G){var te,ie;return G=(G+"").trim().toLowerCase(),(te=d.exec(G))?(ie=te[1].length,te=parseInt(te[1],16),ie===6?I(te):ie===3?new W(te>>8&15|te>>4&240,te>>4&15|te&240,(te&15)<<4|te&15,1):ie===8?N(te>>24&255,te>>16&255,te>>8&255,(te&255)/255):ie===4?N(te>>12&15|te>>8&240,te>>8&15|te>>4&240,te>>4&15|te&240,((te&15)<<4|te&15)/255):null):(te=f.exec(G))?new W(te[1],te[2],te[3],1):(te=g.exec(G))?new W(te[1]*255/100,te[2]*255/100,te[3]*255/100,1):(te=y.exec(G))?N(te[1],te[2],te[3],te[4]):(te=b.exec(G))?N(te[1]*255/100,te[2]*255/100,te[3]*255/100,te[4]):(te=E.exec(G))?L(te[1],te[2]/100,te[3]/100,1):(te=S.exec(G))?L(te[1],te[2]/100,te[3]/100,te[4]):w.hasOwnProperty(G)?I(w[G]):G==="transparent"?new W(NaN,NaN,NaN,0):null}function I(G){return new W(G>>16&255,G>>8&255,G&255,1)}function N(G,te,ie,fe){return fe<=0&&(G=te=ie=NaN),new W(G,te,ie,fe)}function K(G){return G instanceof s||(G=A(G)),G?(G=G.rgb(),new W(G.r,G.g,G.b,G.opacity)):new W}function _(G,te,ie,fe){return arguments.length===1?K(G):new W(G,te,ie,fe??1)}function W(G,te,ie,fe){this.r=+G,this.g=+te,this.b=+ie,this.opacity=+fe}(0,i.Z)(W,_,(0,i.l)(s,{brighter(G){return G=G==null?v:Math.pow(v,G),new W(this.r*G,this.g*G,this.b*G,this.opacity)},darker(G){return G=G==null?u:Math.pow(u,G),new W(this.r*G,this.g*G,this.b*G,this.opacity)},rgb(){return this},clamp(){return new W(J(this.r),J(this.g),J(this.b),Z(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:j,formatHex:j,formatHex8:re,formatRgb:X,toString:X}));function j(){return`#${q(this.r)}${q(this.g)}${q(this.b)}`}function re(){return`#${q(this.r)}${q(this.g)}${q(this.b)}${q((isNaN(this.opacity)?1:this.opacity)*255)}`}function X(){const G=Z(this.opacity);return`${G===1?"rgb(":"rgba("}${J(this.r)}, ${J(this.g)}, ${J(this.b)}${G===1?")":`, ${G})`}`}function Z(G){return isNaN(G)?1:Math.max(0,Math.min(1,G))}function J(G){return Math.max(0,Math.min(255,Math.round(G)||0))}function q(G){return G=J(G),(G<16?"0":"")+G.toString(16)}function L(G,te,ie,fe){return fe<=0?G=te=ie=NaN:ie<=0||ie>=1?G=te=NaN:te<=0&&(G=NaN),new F(G,te,ie,fe)}function $(G){if(G instanceof F)return new F(G.h,G.s,G.l,G.opacity);if(G instanceof s||(G=A(G)),!G)return new F;if(G instanceof F)return G;G=G.rgb();var te=G.r/255,ie=G.g/255,fe=G.b/255,Se=Math.min(te,ie,fe),he=Math.max(te,ie,fe),me=NaN,_e=he-Se,we=(he+Se)/2;return _e?(te===he?me=(ie-fe)/_e+(ie<fe)*6:ie===he?me=(fe-te)/_e+2:me=(te-ie)/_e+4,_e/=we<.5?he+Se:2-he-Se,me*=60):_e=we>0&&we<1?0:me,new F(me,_e,we,G.opacity)}function k(G,te,ie,fe){return arguments.length===1?$(G):new F(G,te,ie,fe??1)}function F(G,te,ie,fe){this.h=+G,this.s=+te,this.l=+ie,this.opacity=+fe}(0,i.Z)(F,k,(0,i.l)(s,{brighter(G){return G=G==null?v:Math.pow(v,G),new F(this.h,this.s,this.l*G,this.opacity)},darker(G){return G=G==null?u:Math.pow(u,G),new F(this.h,this.s,this.l*G,this.opacity)},rgb(){var G=this.h%360+(this.h<0)*360,te=isNaN(G)||isNaN(this.s)?0:this.s,ie=this.l,fe=ie+(ie<.5?ie:1-ie)*te,Se=2*ie-fe;return new W(ce(G>=240?G-240:G+120,Se,fe),ce(G,Se,fe),ce(G<120?G+240:G-120,Se,fe),this.opacity)},clamp(){return new F(V(this.h),pe(this.s),pe(this.l),Z(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const G=Z(this.opacity);return`${G===1?"hsl(":"hsla("}${V(this.h)}, ${pe(this.s)*100}%, ${pe(this.l)*100}%${G===1?")":`, ${G})`}`}}));function V(G){return G=(G||0)%360,G<0?G+360:G}function pe(G){return Math.max(0,Math.min(1,G||0))}function ce(G,te,ie){return(G<60?te+(ie-te)*G/60:G<180?ie:G<240?te+(ie-te)*(240-G)/60:te)*255}},27006:(C,c,t)=>{"use strict";t.d(c,{Z:()=>E});var i=t(28858),s=t(21517),u=t(33086),v=-.14861,l=1.78277,h=-.29227,p=-.90649,d=1.97294,f=d*p,g=d*l,y=l*h-p*v;function b(w){if(w instanceof S)return new S(w.h,w.s,w.l,w.opacity);w instanceof s.Ss||(w=(0,s.SU)(w));var x=w.r/255,P=w.g/255,R=w.b/255,T=(y*R+f*x-g*P)/(y+f-g),A=R-T,I=(d*(P-T)-h*A)/p,N=Math.sqrt(I*I+A*A)/(d*T*(1-T)),K=N?Math.atan2(I,A)*u.R-120:NaN;return new S(K<0?K+360:K,N,T,w.opacity)}function E(w,x,P,R){return arguments.length===1?b(w):new S(w,x,P,R??1)}function S(w,x,P,R){this.h=+w,this.s=+x,this.l=+P,this.opacity=+R}(0,i.Z)(S,E,(0,i.l)(s.Il,{brighter(w){return w=w==null?s.J5:Math.pow(s.J5,w),new S(this.h,this.s,this.l*w,this.opacity)},darker(w){return w=w==null?s.xV:Math.pow(s.xV,w),new S(this.h,this.s,this.l*w,this.opacity)},rgb(){var w=isNaN(this.h)?0:(this.h+120)*u.u,x=+this.l,P=isNaN(this.s)?0:this.s*x*(1-x),R=Math.cos(w),T=Math.sin(w);return new s.Ss(255*(x+P*(v*R+l*T)),255*(x+P*(h*R+p*T)),255*(x+P*(d*R)),this.opacity)}}))},28858:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i,l:()=>s});function i(u,v,l){u.prototype=v.prototype=l,l.constructor=u}function s(u,v){var l=Object.create(u.prototype);for(var h in v)l[h]=v[h];return l}},33086:(C,c,t)=>{"use strict";t.d(c,{R:()=>s,u:()=>i});const i=Math.PI/180,s=180/Math.PI},34247:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s,t:()=>i});function i(u,v,l,h,p){var d=u*u,f=d*u;return((1-3*u+3*d-f)*v+(4-6*d+3*f)*l+(1+3*u+3*d-3*f)*h+f*p)/6}function s(u){var v=u.length-1;return function(l){var h=l<=0?l=0:l>=1?(l=1,v-1):Math.floor(l*v),p=u[h],d=u[h+1],f=h>0?u[h-1]:2*p-d,g=h<v-1?u[h+2]:2*d-p;return i((l-h/v)*v,f,p,d,g)}}},23079:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(34247);function s(u){var v=u.length;return function(l){var h=Math.floor(((l%=1)<0?++l:l)*v),p=u[(h+v-1)%v],d=u[h%v],f=u[(h+1)%v],g=u[(h+2)%v];return(0,i.t)((l-h/v)*v,p,d,f,g)}}},27167:(C,c,t)=>{"use strict";t.d(c,{ZP:()=>h,wx:()=>v,yi:()=>l});var i=t(13802);function s(p,d){return function(f){return p+f*d}}function u(p,d,f){return p=Math.pow(p,f),d=Math.pow(d,f)-p,f=1/f,function(g){return Math.pow(p+g*d,f)}}function v(p,d){var f=d-p;return f?s(p,f>180||f<-180?f-360*Math.round(f/360):f):(0,i.Z)(isNaN(p)?d:p)}function l(p){return(p=+p)==1?h:function(d,f){return f-d?u(d,f,p):(0,i.Z)(isNaN(d)?f:d)}}function h(p,d){var f=d-p;return f?s(p,f):(0,i.Z)(isNaN(p)?d:p)}},13802:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});const i=s=>()=>s},17392:(C,c,t)=>{"use strict";t.d(c,{B:()=>l,Z:()=>v});var i=t(27006),s=t(27167);function u(h){return function p(d){d=+d;function f(g,y){var b=h((g=(0,i.Z)(g)).h,(y=(0,i.Z)(y)).h),E=(0,s.ZP)(g.s,y.s),S=(0,s.ZP)(g.l,y.l),w=(0,s.ZP)(g.opacity,y.opacity);return function(x){return g.h=b(x),g.s=E(x),g.l=S(Math.pow(x,d)),g.opacity=w(x),g+""}}return f.gamma=p,f}(1)}const v=u(s.wx);var l=u(s.ZP)},7975:(C,c,t)=>{"use strict";t.d(c,{YD:()=>d,ZP:()=>l,hD:()=>p});var i=t(21517),s=t(34247),u=t(23079),v=t(27167);const l=function f(g){var y=(0,v.yi)(g);function b(E,S){var w=y((E=(0,i.B8)(E)).r,(S=(0,i.B8)(S)).r),x=y(E.g,S.g),P=y(E.b,S.b),R=(0,v.ZP)(E.opacity,S.opacity);return function(T){return E.r=w(T),E.g=x(T),E.b=P(T),E.opacity=R(T),E+""}}return b.gamma=f,b}(1);function h(f){return function(g){var y=g.length,b=new Array(y),E=new Array(y),S=new Array(y),w,x;for(w=0;w<y;++w)x=(0,i.B8)(g[w]),b[w]=x.r||0,E[w]=x.g||0,S[w]=x.b||0;return b=f(b),E=f(E),S=f(S),x.opacity=1,function(P){return x.r=b(P),x.g=E(P),x.b=S(P),x+""}}}var p=h(s.Z),d=h(u.Z)},45306:(C,c,t)=>{"use strict";t.r(c),t.d(c,{Adder:()=>q,Delaunay:()=>Gd,FormatSpecifier:()=>pv,InternMap:()=>k,InternSet:()=>F,Node:()=>Dv,Path:()=>gs,Voronoi:()=>$v,ZoomTransform:()=>Kh,active:()=>Mc,arc:()=>HT,area:()=>iO,areaRadial:()=>uO,ascending:()=>i,autoType:()=>b0,axisBottom:()=>$r,axisLeft:()=>Ti,axisRight:()=>_r,axisTop:()=>Qn,bin:()=>Ne,bisect:()=>y,bisectCenter:()=>g,bisectLeft:()=>f,bisectRight:()=>d,bisector:()=>u,blob:()=>j0,blur:()=>b,blur2:()=>E,blurImage:()=>S,brush:()=>al,brushSelection:()=>jl,brushX:()=>lc,brushY:()=>Rl,buffer:()=>Cg,chord:()=>Sf,chordDirected:()=>yf,chordTranspose:()=>bc,cluster:()=>mP,color:()=>Zu.ZP,contourDensity:()=>Cs,contours:()=>Hr,count:()=>I,create:()=>DT,creator:()=>cn,cross:()=>j,csv:()=>dv,csvFormat:()=>h0,csvFormatBody:()=>v0,csvFormatRow:()=>g0,csvFormatRows:()=>p0,csvFormatValue:()=>pg,csvParse:()=>vg,csvParseRows:()=>d0,cubehelix:()=>Tl.Z,cumsum:()=>re,curveBasis:()=>f2,curveBasisClosed:()=>d2,curveBasisOpen:()=>h2,curveBumpX:()=>cO,curveBumpY:()=>fO,curveBundle:()=>v2,curveCardinal:()=>p2,curveCardinalClosed:()=>g2,curveCardinalOpen:()=>m2,curveCatmullRom:()=>y2,curveCatmullRomClosed:()=>b2,curveCatmullRomOpen:()=>E2,curveLinear:()=>Km,curveLinearClosed:()=>S2,curveMonotoneX:()=>O2,curveMonotoneY:()=>w2,curveNatural:()=>P2,curveStep:()=>C2,curveStepAfter:()=>T2,curveStepBefore:()=>x2,descending:()=>s,deviation:()=>Z,difference:()=>mn,disjoint:()=>Kn,dispatch:()=>jn,drag:()=>Fh,dragDisable:()=>Ys,dragEnable:()=>Hu,dsv:()=>W0,dsvFormat:()=>Rf,easeBack:()=>wg,easeBackIn:()=>N0,easeBackInOut:()=>wg,easeBackOut:()=>F0,easeBounce:()=>Tv,easeBounceIn:()=>L0,easeBounceInOut:()=>vd,easeBounceOut:()=>Tv,easeCircle:()=>Og,easeCircleIn:()=>x0,easeCircleInOut:()=>Og,easeCircleOut:()=>T0,easeCubic:()=>Ks,easeCubicIn:()=>Vs,easeCubicInOut:()=>Ks,easeCubicOut:()=>Ds,easeElastic:()=>Sp,easeElasticIn:()=>k0,easeElasticInOut:()=>B0,easeElasticOut:()=>Sp,easeExp:()=>Sg,easeExpIn:()=>P0,easeExpInOut:()=>Sg,easeExpOut:()=>C0,easeLinear:()=>S0,easePoly:()=>pp,easePolyIn:()=>yg,easePolyInOut:()=>pp,easePolyOut:()=>ah,easeQuad:()=>bh,easeQuadIn:()=>O0,easeQuadInOut:()=>bh,easeQuadOut:()=>mg,easeSin:()=>xv,easeSinIn:()=>w0,easeSinInOut:()=>xv,easeSinOut:()=>Eg,every:()=>it,extent:()=>J,fcumsum:()=>$,filter:()=>vn,flatGroup:()=>he,flatRollup:()=>me,forceCenter:()=>Z0,forceCollide:()=>fy,forceLink:()=>Pp,forceManyBody:()=>xp,forceRadial:()=>by,forceSimulation:()=>yy,forceX:()=>Tp,forceY:()=>Ey,format:()=>Yv,formatDefaultLocale:()=>zg,formatLocale:()=>Wg,formatPrefix:()=>Rp,formatSpecifier:()=>vv,fsum:()=>L,geoAlbers:()=>fE,geoAlbersUsa:()=>Yw,geoArea:()=>qO,geoAzimuthalEqualArea:()=>Xw,geoAzimuthalEqualAreaRaw:()=>ab,geoAzimuthalEquidistant:()=>Qw,geoAzimuthalEquidistantRaw:()=>ob,geoBounds:()=>rw,geoCentroid:()=>lw,geoCircle:()=>cw,geoClipAntimeridian:()=>By,geoClipCircle:()=>M1,geoClipExtent:()=>mw,geoClipRectangle:()=>lm,geoConicConformal:()=>qw,geoConicConformalRaw:()=>vE,geoConicEqualArea:()=>Om,geoConicEqualAreaRaw:()=>cE,geoConicEquidistant:()=>tP,geoConicEquidistantRaw:()=>pE,geoContains:()=>Pw,geoDistance:()=>dm,geoEqualEarth:()=>rP,geoEqualEarthRaw:()=>sb,geoEquirectangular:()=>eP,geoEquirectangularRaw:()=>zp,geoGnomonic:()=>iP,geoGnomonicRaw:()=>ub,geoGraticule:()=>j1,geoGraticule10:()=>Cw,geoIdentity:()=>aP,geoInterpolate:()=>xw,geoLength:()=>I1,geoMercator:()=>Jw,geoMercatorRaw:()=>Wp,geoNaturalEarth1:()=>oP,geoNaturalEarth1Raw:()=>lb,geoOrthographic:()=>sP,geoOrthographicRaw:()=>cb,geoPath:()=>$w,geoProjection:()=>Wh,geoProjectionMutator:()=>rb,geoRotation:()=>O1,geoStereographic:()=>uP,geoStereographicRaw:()=>fb,geoStream:()=>oh,geoTransform:()=>jw,geoTransverseMercator:()=>lP,geoTransverseMercatorRaw:()=>db,gray:()=>pr,greatest:()=>Lt,greatestIndex:()=>Ut,group:()=>ie,groupSort:()=>Ye,groups:()=>fe,hcl:()=>As,hierarchy:()=>hb,histogram:()=>Ne,hsl:()=>Zu.Ym,html:()=>Ag,image:()=>H0,index:()=>Ge,indexes:()=>ht,interpolate:()=>jt,interpolateArray:()=>vr,interpolateBasis:()=>cC.Z,interpolateBasisClosed:()=>fC.Z,interpolateBlues:()=>ol.interpolateBlues,interpolateBrBG:()=>ol.interpolateBrBG,interpolateBuGn:()=>ol.interpolateBuGn,interpolateBuPu:()=>ol.interpolateBuPu,interpolateCividis:()=>ol.interpolateCividis,interpolateCool:()=>ol.interpolateCool,interpolateCubehelix:()=>BE.Z,interpolateCubehelixDefault:()=>ol.interpolateCubehelixDefault,interpolateCubehelixLong:()=>BE.B,interpolateDate:()=>ui,interpolateDiscrete:()=>dC,interpolateGnBu:()=>ol.interpolateGnBu,interpolateGreens:()=>ol.interpolateGreens,interpolateGreys:()=>ol.interpolateGreys,interpolateHcl:()=>EC,interpolateHclLong:()=>SC,interpolateHsl:()=>mC,interpolateHslLong:()=>yC,interpolateHue:()=>hC,interpolateInferno:()=>ol.interpolateInferno,interpolateLab:()=>bC,interpolateMagma:()=>ol.interpolateMagma,interpolateNumber:()=>ta,interpolateNumberArray:()=>Sn,interpolateObject:()=>St,interpolateOrRd:()=>ol.interpolateOrRd,interpolateOranges:()=>ol.interpolateOranges,interpolatePRGn:()=>ol.interpolatePRGn,interpolatePiYG:()=>ol.interpolatePiYG,interpolatePlasma:()=>ol.interpolatePlasma,interpolatePuBu:()=>ol.interpolatePuBu,interpolatePuBuGn:()=>ol.interpolatePuBuGn,interpolatePuOr:()=>ol.interpolatePuOr,interpolatePuRd:()=>ol.interpolatePuRd,interpolatePurples:()=>ol.interpolatePurples,interpolateRainbow:()=>ol.interpolateRainbow,interpolateRdBu:()=>ol.interpolateRdBu,interpolateRdGy:()=>ol.interpolateRdGy,interpolateRdPu:()=>ol.interpolateRdPu,interpolateRdYlBu:()=>ol.interpolateRdYlBu,interpolateRdYlGn:()=>ol.interpolateRdYlGn,interpolateReds:()=>ol.interpolateReds,interpolateRgb:()=>ql.ZP,interpolateRgbBasis:()=>ql.hD,interpolateRgbBasisClosed:()=>ql.YD,interpolateRound:()=>Mm,interpolateSinebow:()=>ol.interpolateSinebow,interpolateSpectral:()=>ol.interpolateSpectral,interpolateString:()=>Pr,interpolateTransformCss:()=>Br,interpolateTransformSvg:()=>Er,interpolateTurbo:()=>ol.interpolateTurbo,interpolateViridis:()=>ol.interpolateViridis,interpolateWarm:()=>ol.interpolateWarm,interpolateYlGn:()=>ol.interpolateYlGn,interpolateYlGnBu:()=>ol.interpolateYlGnBu,interpolateYlOrBr:()=>ol.interpolateYlOrBr,interpolateYlOrRd:()=>ol.interpolateYlOrRd,interpolateZoom:()=>NE,interrupt:()=>Qi,intersection:()=>Dn,interval:()=>K2,isoFormat:()=>U2,isoParse:()=>H2,json:()=>V0,lab:()=>Mi,lch:()=>Fs,least:()=>wt,leastIndex:()=>Ke,line:()=>Gb,lineRadial:()=>sO,link:()=>Vm,linkHorizontal:()=>qT,linkRadial:()=>t2,linkVertical:()=>e2,local:()=>eO,map:()=>fn,matcher:()=>Ki,max:()=>mt,maxIndex:()=>bt,mean:()=>at,median:()=>Xt,medianIndex:()=>rt,merge:()=>rn,min:()=>Gt,minIndex:()=>hn,mode:()=>sn,namespace:()=>Si,namespaces:()=>Or,nice:()=>ct,now:()=>$i,pack:()=>GP,packEnclose:()=>UP,packSiblings:()=>KP,pairs:()=>Jn,partition:()=>ZP,path:()=>pc,pathRound:()=>Hc,permute:()=>ue,pie:()=>ZT,piecewise:()=>$E,pointRadial:()=>ag,pointer:()=>pn,pointers:()=>LT,polygonArea:()=>wC,polygonCentroid:()=>PC,polygonContains:()=>AC,polygonHull:()=>TC,polygonLength:()=>RC,precisionFixed:()=>Hg,precisionPrefix:()=>Kg,precisionRound:()=>Vg,quadtree:()=>Vv,quantile:()=>zt,quantileIndex:()=>vt,quantileSorted:()=>Kt,quantize:()=>OC,quickselect:()=>Yt,radialArea:()=>uO,radialLine:()=>sO,randomBates:()=>_C,randomBernoulli:()=>FC,randomBeta:()=>zE,randomBinomial:()=>HE,randomCauchy:()=>BC,randomExponential:()=>LC,randomGamma:()=>Ob,randomGeometric:()=>WE,randomInt:()=>IC,randomIrwinHall:()=>UE,randomLcg:()=>zC,randomLogNormal:()=>DC,randomLogistic:()=>$C,randomNormal:()=>Sb,randomPareto:()=>NC,randomPoisson:()=>jC,randomUniform:()=>MC,randomWeibull:()=>kC,range:()=>st,rank:()=>en,reduce:()=>Tt,reverse:()=>dn,rgb:()=>Zu.B8,ribbon:()=>td,ribbonArrow:()=>_f,rollup:()=>_e,rollups:()=>we,scaleBand:()=>Cb,scaleDiverging:()=>QS,scaleDivergingLog:()=>JS,scaleDivergingPow:()=>zb,scaleDivergingSqrt:()=>IT,scaleDivergingSymlog:()=>qS,scaleIdentity:()=>XE,scaleImplicit:()=>wb,scaleLinear:()=>YE,scaleLog:()=>tS,scaleOrdinal:()=>Pb,scalePoint:()=>HC,scalePow:()=>Ib,scaleQuantile:()=>uS,scaleQuantize:()=>lS,scaleRadial:()=>sS,scaleSequential:()=>GS,scaleSequentialLog:()=>ZS,scaleSequentialPow:()=>Wb,scaleSequentialQuantile:()=>XS,scaleSequentialSqrt:()=>MT,scaleSequentialSymlog:()=>YS,scaleSqrt:()=>nx,scaleSymlog:()=>iS,scaleThreshold:()=>cS,scaleTime:()=>AT,scaleUtc:()=>RT,scan:()=>on,schemeAccent:()=>ol.schemeAccent,schemeBlues:()=>ol.schemeBlues,schemeBrBG:()=>ol.schemeBrBG,schemeBuGn:()=>ol.schemeBuGn,schemeBuPu:()=>ol.schemeBuPu,schemeCategory10:()=>ol.schemeCategory10,schemeDark2:()=>ol.schemeDark2,schemeGnBu:()=>ol.schemeGnBu,schemeGreens:()=>ol.schemeGreens,schemeGreys:()=>ol.schemeGreys,schemeOrRd:()=>ol.schemeOrRd,schemeOranges:()=>ol.schemeOranges,schemePRGn:()=>ol.schemePRGn,schemePaired:()=>ol.schemePaired,schemePastel1:()=>ol.schemePastel1,schemePastel2:()=>ol.schemePastel2,schemePiYG:()=>ol.schemePiYG,schemePuBu:()=>ol.schemePuBu,schemePuBuGn:()=>ol.schemePuBuGn,schemePuOr:()=>ol.schemePuOr,schemePuRd:()=>ol.schemePuRd,schemePurples:()=>ol.schemePurples,schemeRdBu:()=>ol.schemeRdBu,schemeRdGy:()=>ol.schemeRdGy,schemeRdPu:()=>ol.schemeRdPu,schemeRdYlBu:()=>ol.schemeRdYlBu,schemeRdYlGn:()=>ol.schemeRdYlGn,schemeReds:()=>ol.schemeReds,schemeSet1:()=>ol.schemeSet1,schemeSet2:()=>ol.schemeSet2,schemeSet3:()=>ol.schemeSet3,schemeSpectral:()=>ol.schemeSpectral,schemeTableau10:()=>ol.schemeTableau10,schemeYlGn:()=>ol.schemeYlGn,schemeYlGnBu:()=>ol.schemeYlGnBu,schemeYlOrBr:()=>ol.schemeYlOrBr,schemeYlOrRd:()=>ol.schemeYlOrRd,select:()=>Zs,selectAll:()=>NT,selection:()=>xs,selector:()=>Mr,selectorAll:()=>Jr,shuffle:()=>Tn,shuffler:()=>An,some:()=>qt,sort:()=>ae,stack:()=>M2,stackOffsetDiverging:()=>D2,stackOffsetExpand:()=>I2,stackOffsetNone:()=>cp,stackOffsetSilhouette:()=>_2,stackOffsetWiggle:()=>L2,stackOrderAppearance:()=>jO,stackOrderAscending:()=>UO,stackOrderDescending:()=>F2,stackOrderInsideOut:()=>k2,stackOrderNone:()=>fp,stackOrderReverse:()=>B2,stratify:()=>JP,style:()=>B,subset:()=>ni,sum:()=>Zt,superset:()=>or,svg:()=>G0,symbol:()=>c2,symbolAsterisk:()=>dO,symbolCircle:()=>Gm,symbolCross:()=>hO,symbolDiamond:()=>pO,symbolDiamond2:()=>gO,symbolPlus:()=>mO,symbolSquare:()=>yO,symbolSquare2:()=>bO,symbolStar:()=>SO,symbolTimes:()=>Qb,symbolTriangle:()=>OO,symbolTriangle2:()=>wO,symbolWye:()=>PO,symbolX:()=>Qb,symbols:()=>CO,symbolsFill:()=>CO,symbolsStroke:()=>l2,text:()=>Kv,thresholdFreedmanDiaconis:()=>Ve,thresholdScott:()=>lt,thresholdSturges:()=>ut,tickFormat:()=>ZE,tickIncrement:()=>je,tickStep:()=>Et,ticks:()=>Oe,timeDay:()=>ap,timeDays:()=>ux,timeFormat:()=>$b,timeFormatDefaultLocale:()=>VS,timeFormatLocale:()=>RS,timeFriday:()=>gS,timeFridays:()=>px,timeHour:()=>Nm,timeHours:()=>ox,timeInterval:()=>gd,timeMillisecond:()=>ip,timeMilliseconds:()=>dS,timeMinute:()=>_m,timeMinutes:()=>ix,timeMonday:()=>Jp,timeMondays:()=>fx,timeMonth:()=>km,timeMonths:()=>wx,timeParse:()=>KS,timeSaturday:()=>mS,timeSaturdays:()=>gx,timeSecond:()=>nv,timeSeconds:()=>hS,timeSunday:()=>op,timeSundays:()=>yS,timeThursday:()=>Nv,timeThursdays:()=>vx,timeTickInterval:()=>AS,timeTicks:()=>TS,timeTuesday:()=>vS,timeTuesdays:()=>dx,timeWednesday:()=>pS,timeWednesdays:()=>hx,timeWeek:()=>op,timeWeeks:()=>yS,timeYear:()=>zh,timeYears:()=>Cx,timeout:()=>ks,timer:()=>Qa,timerFlush:()=>go,transition:()=>sl,transpose:()=>ot,tree:()=>aC,treemap:()=>oC,treemapBinary:()=>sC,treemapDice:()=>Yp,treemapResquarify:()=>lC,treemapSlice:()=>Rm,treemapSliceDice:()=>uC,treemapSquarify:()=>_E,tsv:()=>z0,tsvFormat:()=>gg,tsvFormatBody:()=>zv,tsvFormatRow:()=>fv,tsvFormatRows:()=>Zd,tsvFormatValue:()=>y0,tsvParse:()=>Wv,tsvParseRows:()=>m0,union:()=>yr,unixDay:()=>Fb,unixDays:()=>cx,utcDay:()=>Qp,utcDays:()=>lx,utcFormat:()=>$m,utcFriday:()=>SS,utcFridays:()=>Sx,utcHour:()=>Fm,utcHours:()=>sx,utcMillisecond:()=>ip,utcMilliseconds:()=>dS,utcMinute:()=>Lm,utcMinutes:()=>ax,utcMonday:()=>qp,utcMondays:()=>mx,utcMonth:()=>Bm,utcMonths:()=>Px,utcParse:()=>jb,utcSaturday:()=>OS,utcSaturdays:()=>Ox,utcSecond:()=>nv,utcSeconds:()=>hS,utcSunday:()=>sp,utcSundays:()=>wS,utcThursday:()=>kv,utcThursdays:()=>Ex,utcTickInterval:()=>xS,utcTicks:()=>CS,utcTuesday:()=>bS,utcTuesdays:()=>yx,utcWednesday:()=>ES,utcWednesdays:()=>bx,utcWeek:()=>sp,utcWeeks:()=>wS,utcYear:()=>Hh,utcYears:()=>xx,variance:()=>X,window:()=>Lo,xml:()=>Tg,zip:()=>Ft,zoom:()=>J2,zoomIdentity:()=>e0,zoomTransform:()=>HO});function i(m,O){return m==null||O==null?NaN:m<O?-1:m>O?1:m>=O?0:NaN}function s(m,O){return m==null||O==null?NaN:O<m?-1:O>m?1:O>=m?0:NaN}function u(m){let O,M,U;m.length!==2?(O=i,M=(Ie,Qe)=>i(m(Ie),Qe),U=(Ie,Qe)=>m(Ie)-Qe):(O=m===i||m===s?m:v,M=m,U=m);function ne(Ie,Qe,Ue=0,dt=Ie.length){if(Ue<dt){if(O(Qe,Qe)!==0)return dt;do{const $t=Ue+dt>>>1;M(Ie[$t],Qe)<0?Ue=$t+1:dt=$t}while(Ue<dt)}return Ue}function de(Ie,Qe,Ue=0,dt=Ie.length){if(Ue<dt){if(O(Qe,Qe)!==0)return dt;do{const $t=Ue+dt>>>1;M(Ie[$t],Qe)<=0?Ue=$t+1:dt=$t}while(Ue<dt)}return Ue}function xe(Ie,Qe,Ue=0,dt=Ie.length){const $t=ne(Ie,Qe,Ue,dt-1);return $t>Ue&&U(Ie[$t-1],Qe)>-U(Ie[$t],Qe)?$t-1:$t}return{left:ne,center:xe,right:de}}function v(){return 0}function l(m){return m===null?NaN:+m}function*h(m,O){if(O===void 0)for(let M of m)M!=null&&(M=+M)>=M&&(yield M);else{let M=-1;for(let U of m)(U=O(U,++M,m))!=null&&(U=+U)>=U&&(yield U)}}const p=u(i),d=p.right,f=p.left,g=u(l).center,y=d;function b(m,O){if(!((O=+O)>=0))throw new RangeError("invalid r");let M=m.length;if(!((M=Math.floor(M))>=0))throw new RangeError("invalid length");if(!M||!O)return m;const U=T(O),ne=m.slice();return U(m,ne,0,M,1),U(ne,m,0,M,1),U(m,ne,0,M,1),m}const E=w(T),S=w(R);function w(m){return function(O,M,U=M){if(!((M=+M)>=0))throw new RangeError("invalid rx");if(!((U=+U)>=0))throw new RangeError("invalid ry");let{data:ne,width:de,height:xe}=O;if(!((de=Math.floor(de))>=0))throw new RangeError("invalid width");if(!((xe=Math.floor(xe!==void 0?xe:ne.length/de))>=0))throw new RangeError("invalid height");if(!de||!xe||!M&&!U)return O;const Ie=M&&m(M),Qe=U&&m(U),Ue=ne.slice();return Ie&&Qe?(x(Ie,Ue,ne,de,xe),x(Ie,ne,Ue,de,xe),x(Ie,Ue,ne,de,xe),P(Qe,ne,Ue,de,xe),P(Qe,Ue,ne,de,xe),P(Qe,ne,Ue,de,xe)):Ie?(x(Ie,ne,Ue,de,xe),x(Ie,Ue,ne,de,xe),x(Ie,ne,Ue,de,xe)):Qe&&(P(Qe,ne,Ue,de,xe),P(Qe,Ue,ne,de,xe),P(Qe,ne,Ue,de,xe)),O}}function x(m,O,M,U,ne){for(let de=0,xe=U*ne;de<xe;)m(O,M,de,de+=U,1)}function P(m,O,M,U,ne){for(let de=0,xe=U*ne;de<U;++de)m(O,M,de,de+xe,U)}function R(m){const O=T(m);return(M,U,ne,de,xe)=>{ne<<=2,de<<=2,xe<<=2,O(M,U,ne+0,de+0,xe),O(M,U,ne+1,de+1,xe),O(M,U,ne+2,de+2,xe),O(M,U,ne+3,de+3,xe)}}function T(m){const O=Math.floor(m);if(O===m)return A(m);const M=m-O,U=2*m+1;return(ne,de,xe,Ie,Qe)=>{if(!((Ie-=Qe)>=xe))return;let Ue=O*de[xe];const dt=Qe*O,$t=dt+Qe;for(let Ot=xe,Jt=xe+dt;Ot<Jt;Ot+=Qe)Ue+=de[Math.min(Ie,Ot)];for(let Ot=xe,Jt=Ie;Ot<=Jt;Ot+=Qe)Ue+=de[Math.min(Ie,Ot+dt)],ne[Ot]=(Ue+M*(de[Math.max(xe,Ot-$t)]+de[Math.min(Ie,Ot+$t)]))/U,Ue-=de[Math.max(xe,Ot-dt)]}}function A(m){const O=2*m+1;return(M,U,ne,de,xe)=>{if(!((de-=xe)>=ne))return;let Ie=m*U[ne];const Qe=xe*m;for(let Ue=ne,dt=ne+Qe;Ue<dt;Ue+=xe)Ie+=U[Math.min(de,Ue)];for(let Ue=ne,dt=de;Ue<=dt;Ue+=xe)Ie+=U[Math.min(de,Ue+Qe)],M[Ue]=Ie/O,Ie-=U[Math.max(ne,Ue-Qe)]}}function I(m,O){let M=0;if(O===void 0)for(let U of m)U!=null&&(U=+U)>=U&&++M;else{let U=-1;for(let ne of m)(ne=O(ne,++U,m))!=null&&(ne=+ne)>=ne&&++M}return M}function N(m){return m.length|0}function K(m){return!(m>0)}function _(m){return typeof m!="object"||"length"in m?m:Array.from(m)}function W(m){return O=>m(...O)}function j(...m){const O=typeof m[m.length-1]=="function"&&W(m.pop());m=m.map(_);const M=m.map(N),U=m.length-1,ne=new Array(U+1).fill(0),de=[];if(U<0||M.some(K))return de;for(;;){de.push(ne.map((Ie,Qe)=>m[Qe][Ie]));let xe=U;for(;++ne[xe]===M[xe];){if(xe===0)return O?de.map(O):de;ne[xe--]=0}}}function re(m,O){var M=0,U=0;return Float64Array.from(m,O===void 0?ne=>M+=+ne||0:ne=>M+=+O(ne,U++,m)||0)}function X(m,O){let M=0,U,ne=0,de=0;if(O===void 0)for(let xe of m)xe!=null&&(xe=+xe)>=xe&&(U=xe-ne,ne+=U/++M,de+=U*(xe-ne));else{let xe=-1;for(let Ie of m)(Ie=O(Ie,++xe,m))!=null&&(Ie=+Ie)>=Ie&&(U=Ie-ne,ne+=U/++M,de+=U*(Ie-ne))}if(M>1)return de/(M-1)}function Z(m,O){const M=X(m,O);return M&&Math.sqrt(M)}function J(m,O){let M,U;if(O===void 0)for(const ne of m)ne!=null&&(M===void 0?ne>=ne&&(M=U=ne):(M>ne&&(M=ne),U<ne&&(U=ne)));else{let ne=-1;for(let de of m)(de=O(de,++ne,m))!=null&&(M===void 0?de>=de&&(M=U=de):(M>de&&(M=de),U<de&&(U=de)))}return[M,U]}class q{constructor(){this._partials=new Float64Array(32),this._n=0}add(O){const M=this._partials;let U=0;for(let ne=0;ne<this._n&&ne<32;ne++){const de=M[ne],xe=O+de,Ie=Math.abs(O)<Math.abs(de)?O-(xe-de):de-(xe-O);Ie&&(M[U++]=Ie),O=xe}return M[U]=O,this._n=U+1,this}valueOf(){const O=this._partials;let M=this._n,U,ne,de,xe=0;if(M>0){for(xe=O[--M];M>0&&(U=xe,ne=O[--M],xe=U+ne,de=ne-(xe-U),!de););M>0&&(de<0&&O[M-1]<0||de>0&&O[M-1]>0)&&(ne=de*2,U=xe+ne,ne==U-xe&&(xe=U))}return xe}}function L(m,O){const M=new q;if(O===void 0)for(let U of m)(U=+U)&&M.add(U);else{let U=-1;for(let ne of m)(ne=+O(ne,++U,m))&&M.add(ne)}return+M}function $(m,O){const M=new q;let U=-1;return Float64Array.from(m,O===void 0?ne=>M.add(+ne||0):ne=>M.add(+O(ne,++U,m)||0))}class k extends Map{constructor(O,M=G){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:M}}),O!=null)for(const[U,ne]of O)this.set(U,ne)}get(O){return super.get(V(this,O))}has(O){return super.has(V(this,O))}set(O,M){return super.set(pe(this,O),M)}delete(O){return super.delete(ce(this,O))}}class F extends Set{constructor(O,M=G){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:M}}),O!=null)for(const U of O)this.add(U)}has(O){return super.has(V(this,O))}add(O){return super.add(pe(this,O))}delete(O){return super.delete(ce(this,O))}}function V({_intern:m,_key:O},M){const U=O(M);return m.has(U)?m.get(U):M}function pe({_intern:m,_key:O},M){const U=O(M);return m.has(U)?m.get(U):(m.set(U,M),M)}function ce({_intern:m,_key:O},M){const U=O(M);return m.has(U)&&(M=m.get(U),m.delete(U)),M}function G(m){return m!==null&&typeof m=="object"?m.valueOf():m}function te(m){return m}function ie(m,...O){return Re(m,te,te,O)}function fe(m,...O){return Re(m,Array.from,te,O)}function Se(m,O){for(let M=1,U=O.length;M<U;++M)m=m.flatMap(ne=>ne.pop().map(([de,xe])=>[...ne,de,xe]));return m}function he(m,...O){return Se(fe(m,...O),O)}function me(m,O,...M){return Se(we(m,O,...M),M)}function _e(m,O,...M){return Re(m,te,O,M)}function we(m,O,...M){return Re(m,Array.from,O,M)}function Ge(m,...O){return Re(m,te,nt,O)}function ht(m,...O){return Re(m,Array.from,nt,O)}function nt(m){if(m.length!==1)throw new Error("duplicate key");return m[0]}function Re(m,O,M,U){return function ne(de,xe){if(xe>=U.length)return M(de);const Ie=new k,Qe=U[xe++];let Ue=-1;for(const dt of de){const $t=Qe(dt,++Ue,de),Ot=Ie.get($t);Ot?Ot.push(dt):Ie.set($t,[dt])}for(const[dt,$t]of Ie)Ie.set(dt,ne($t,xe));return O(Ie)}(m,0)}function ue(m,O){return Array.from(O,M=>m[M])}function ae(m,...O){if(typeof m[Symbol.iterator]!="function")throw new TypeError("values is not iterable");m=Array.from(m);let[M]=O;if(M&&M.length!==2||O.length>1){const U=Uint32Array.from(m,(ne,de)=>de);return O.length>1?(O=O.map(ne=>m.map(ne)),U.sort((ne,de)=>{for(const xe of O){const Ie=Me(xe[ne],xe[de]);if(Ie)return Ie}})):(M=m.map(M),U.sort((ne,de)=>Me(M[ne],M[de]))),ue(m,U)}return m.sort(ve(M))}function ve(m=i){if(m===i)return Me;if(typeof m!="function")throw new TypeError("compare is not a function");return(O,M)=>{const U=m(O,M);return U||U===0?U:(m(M,M)===0)-(m(O,O)===0)}}function Me(m,O){return(m==null||!(m>=m))-(O==null||!(O>=O))||(m<O?-1:m>O?1:0)}function Ye(m,O,M){return(O.length!==2?ae(_e(m,O,M),([U,ne],[de,xe])=>i(ne,xe)||i(U,de)):ae(ie(m,M),([U,ne],[de,xe])=>O(ne,xe)||i(U,de))).map(([U])=>U)}var qe=Array.prototype,At=qe.slice,It=qe.map;function Ce(m){return()=>m}const Ae=Math.sqrt(50),$e=Math.sqrt(10),tt=Math.sqrt(2);function ke(m,O,M){const U=(O-m)/Math.max(0,M),ne=Math.floor(Math.log10(U)),de=U/Math.pow(10,ne),xe=de>=Ae?10:de>=$e?5:de>=tt?2:1;let Ie,Qe,Ue;return ne<0?(Ue=Math.pow(10,-ne)/xe,Ie=Math.round(m*Ue),Qe=Math.round(O*Ue),Ie/Ue<m&&++Ie,Qe/Ue>O&&--Qe,Ue=-Ue):(Ue=Math.pow(10,ne)*xe,Ie=Math.round(m/Ue),Qe=Math.round(O/Ue),Ie*Ue<m&&++Ie,Qe*Ue>O&&--Qe),Qe<Ie&&.5<=M&&M<2?ke(m,O,M*2):[Ie,Qe,Ue]}function Oe(m,O,M){if(O=+O,m=+m,M=+M,!(M>0))return[];if(m===O)return[m];const U=O<m,[ne,de,xe]=U?ke(O,m,M):ke(m,O,M);if(!(de>=ne))return[];const Ie=de-ne+1,Qe=new Array(Ie);if(U)if(xe<0)for(let Ue=0;Ue<Ie;++Ue)Qe[Ue]=(de-Ue)/-xe;else for(let Ue=0;Ue<Ie;++Ue)Qe[Ue]=(de-Ue)*xe;else if(xe<0)for(let Ue=0;Ue<Ie;++Ue)Qe[Ue]=(ne+Ue)/-xe;else for(let Ue=0;Ue<Ie;++Ue)Qe[Ue]=(ne+Ue)*xe;return Qe}function je(m,O,M){return O=+O,m=+m,M=+M,ke(m,O,M)[2]}function Et(m,O,M){O=+O,m=+m,M=+M;const U=O<m,ne=U?je(O,m,M):je(m,O,M);return(U?-1:1)*(ne<0?1/-ne:ne)}function ct(m,O,M){let U;for(;;){const ne=je(m,O,M);if(ne===U||ne===0||!isFinite(ne))return[m,O];ne>0?(m=Math.floor(m/ne)*ne,O=Math.ceil(O/ne)*ne):ne<0&&(m=Math.ceil(m*ne)/ne,O=Math.floor(O*ne)/ne),U=ne}}function ut(m){return Math.ceil(Math.log(I(m))/Math.LN2)+1}function Ne(){var m=te,O=J,M=ut;function U(ne){Array.isArray(ne)||(ne=Array.from(ne));var de,xe=ne.length,Ie,Qe,Ue=new Array(xe);for(de=0;de<xe;++de)Ue[de]=m(ne[de],de,ne);var dt=O(Ue),$t=dt[0],Ot=dt[1],Jt=M(Ue,$t,Ot);if(!Array.isArray(Jt)){const hr=Ot,ar=+Jt;if(O===J&&([$t,Ot]=ct($t,Ot,ar)),Jt=Oe($t,Ot,ar),Jt[0]<=$t&&(Qe=je($t,Ot,ar)),Jt[Jt.length-1]>=Ot)if(hr>=Ot&&O===J){const qr=je($t,Ot,ar);isFinite(qr)&&(qr>0?Ot=(Math.floor(Ot/qr)+1)*qr:qr<0&&(Ot=(Math.ceil(Ot*-qr)+1)/-qr))}else Jt.pop()}for(var Un=Jt.length,Pn=0,Cn=Un;Jt[Pn]<=$t;)++Pn;for(;Jt[Cn-1]>Ot;)--Cn;(Pn||Cn<Un)&&(Jt=Jt.slice(Pn,Cn),Un=Cn-Pn);var Fn=new Array(Un+1),mr;for(de=0;de<=Un;++de)mr=Fn[de]=[],mr.x0=de>0?Jt[de-1]:$t,mr.x1=de<Un?Jt[de]:Ot;if(isFinite(Qe)){if(Qe>0)for(de=0;de<xe;++de)(Ie=Ue[de])!=null&&$t<=Ie&&Ie<=Ot&&Fn[Math.min(Un,Math.floor((Ie-$t)/Qe))].push(ne[de]);else if(Qe<0){for(de=0;de<xe;++de)if((Ie=Ue[de])!=null&&$t<=Ie&&Ie<=Ot){const hr=Math.floor(($t-Ie)*Qe);Fn[Math.min(Un,hr+(Jt[hr]<=Ie))].push(ne[de])}}}else for(de=0;de<xe;++de)(Ie=Ue[de])!=null&&$t<=Ie&&Ie<=Ot&&Fn[y(Jt,Ie,0,Un)].push(ne[de]);return Fn}return U.value=function(ne){return arguments.length?(m=typeof ne=="function"?ne:Ce(ne),U):m},U.domain=function(ne){return arguments.length?(O=typeof ne=="function"?ne:Ce([ne[0],ne[1]]),U):O},U.thresholds=function(ne){return arguments.length?(M=typeof ne=="function"?ne:Ce(Array.isArray(ne)?At.call(ne):ne),U):M},U}function mt(m,O){let M;if(O===void 0)for(const U of m)U!=null&&(M<U||M===void 0&&U>=U)&&(M=U);else{let U=-1;for(let ne of m)(ne=O(ne,++U,m))!=null&&(M<ne||M===void 0&&ne>=ne)&&(M=ne)}return M}function bt(m,O){let M,U=-1,ne=-1;if(O===void 0)for(const de of m)++ne,de!=null&&(M<de||M===void 0&&de>=de)&&(M=de,U=ne);else for(let de of m)(de=O(de,++ne,m))!=null&&(M<de||M===void 0&&de>=de)&&(M=de,U=ne);return U}function Gt(m,O){let M;if(O===void 0)for(const U of m)U!=null&&(M>U||M===void 0&&U>=U)&&(M=U);else{let U=-1;for(let ne of m)(ne=O(ne,++U,m))!=null&&(M>ne||M===void 0&&ne>=ne)&&(M=ne)}return M}function hn(m,O){let M,U=-1,ne=-1;if(O===void 0)for(const de of m)++ne,de!=null&&(M>de||M===void 0&&de>=de)&&(M=de,U=ne);else for(let de of m)(de=O(de,++ne,m))!=null&&(M>de||M===void 0&&de>=de)&&(M=de,U=ne);return U}function Yt(m,O,M=0,U=1/0,ne){if(O=Math.floor(O),M=Math.floor(Math.max(0,M)),U=Math.floor(Math.min(m.length-1,U)),!(M<=O&&O<=U))return m;for(ne=ne===void 0?Me:ve(ne);U>M;){if(U-M>600){const Qe=U-M+1,Ue=O-M+1,dt=Math.log(Qe),$t=.5*Math.exp(2*dt/3),Ot=.5*Math.sqrt(dt*$t*(Qe-$t)/Qe)*(Ue-Qe/2<0?-1:1),Jt=Math.max(M,Math.floor(O-Ue*$t/Qe+Ot)),Un=Math.min(U,Math.floor(O+(Qe-Ue)*$t/Qe+Ot));Yt(m,O,Jt,Un,ne)}const de=m[O];let xe=M,Ie=U;for(Bt(m,M,O),ne(m[U],de)>0&&Bt(m,M,U);xe<Ie;){for(Bt(m,xe,Ie),++xe,--Ie;ne(m[xe],de)<0;)++xe;for(;ne(m[Ie],de)>0;)--Ie}ne(m[M],de)===0?Bt(m,M,Ie):(++Ie,Bt(m,Ie,U)),Ie<=O&&(M=Ie+1),O<=Ie&&(U=Ie-1)}return m}function Bt(m,O,M){const U=m[O];m[O]=m[M],m[M]=U}function Lt(m,O=i){let M,U=!1;if(O.length===1){let ne;for(const de of m){const xe=O(de);(U?i(xe,ne)>0:i(xe,xe)===0)&&(M=de,ne=xe,U=!0)}}else for(const ne of m)(U?O(ne,M)>0:O(ne,ne)===0)&&(M=ne,U=!0);return M}function zt(m,O,M){if(m=Float64Array.from(h(m,M)),!(!(U=m.length)||isNaN(O=+O))){if(O<=0||U<2)return Gt(m);if(O>=1)return mt(m);var U,ne=(U-1)*O,de=Math.floor(ne),xe=mt(Yt(m,de).subarray(0,de+1)),Ie=Gt(m.subarray(de+1));return xe+(Ie-xe)*(ne-de)}}function Kt(m,O,M=l){if(!(!(U=m.length)||isNaN(O=+O))){if(O<=0||U<2)return+M(m[0],0,m);if(O>=1)return+M(m[U-1],U-1,m);var U,ne=(U-1)*O,de=Math.floor(ne),xe=+M(m[de],de,m),Ie=+M(m[de+1],de+1,m);return xe+(Ie-xe)*(ne-de)}}function vt(m,O,M){if(m=Float64Array.from(h(m,M)),!(!(U=m.length)||isNaN(O=+O))){if(O<=0||U<2)return hn(m);if(O>=1)return bt(m);var U,ne=Math.floor((U-1)*O),de=(Ie,Qe)=>Me(m[Ie],m[Qe]),xe=Yt(Uint32Array.from(m,(Ie,Qe)=>Qe),ne,0,U-1,de);return Lt(xe.subarray(0,ne+1),Ie=>m[Ie])}}function Ve(m,O,M){return Math.ceil((M-O)/(2*(zt(m,.75)-zt(m,.25))*Math.pow(I(m),-1/3)))}function lt(m,O,M){return Math.ceil((M-O)*Math.cbrt(I(m))/(3.49*Z(m)))}function at(m,O){let M=0,U=0;if(O===void 0)for(let ne of m)ne!=null&&(ne=+ne)>=ne&&(++M,U+=ne);else{let ne=-1;for(let de of m)(de=O(de,++ne,m))!=null&&(de=+de)>=de&&(++M,U+=de)}if(M)return U/M}function Xt(m,O){return zt(m,.5,O)}function rt(m,O){return vt(m,.5,O)}function*Rt(m){for(const O of m)yield*O}function rn(m){return Array.from(Rt(m))}function sn(m,O){const M=new k;if(O===void 0)for(let de of m)de!=null&&de>=de&&M.set(de,(M.get(de)||0)+1);else{let de=-1;for(let xe of m)(xe=O(xe,++de,m))!=null&&xe>=xe&&M.set(xe,(M.get(xe)||0)+1)}let U,ne=0;for(const[de,xe]of M)xe>ne&&(ne=xe,U=de);return U}function Jn(m,O=ze){const M=[];let U,ne=!1;for(const de of m)ne&&M.push(O(U,de)),U=de,ne=!0;return M}function ze(m,O){return[m,O]}function st(m,O,M){m=+m,O=+O,M=(ne=arguments.length)<2?(O=m,m=0,1):ne<3?1:+M;for(var U=-1,ne=Math.max(0,Math.ceil((O-m)/M))|0,de=new Array(ne);++U<ne;)de[U]=m+U*M;return de}function en(m,O=i){if(typeof m[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let M=Array.from(m);const U=new Float64Array(M.length);O.length!==2&&(M=M.map(O),O=i);const ne=(Ie,Qe)=>O(M[Ie],M[Qe]);let de,xe;return Uint32Array.from(M,(Ie,Qe)=>Qe).sort(O===i?(Ie,Qe)=>Me(M[Ie],M[Qe]):ve(ne)).forEach((Ie,Qe)=>{const Ue=ne(Ie,de===void 0?Ie:de);Ue>=0?((de===void 0||Ue>0)&&(de=Ie,xe=Qe),U[Ie]=xe):U[Ie]=NaN}),U}function wt(m,O=i){let M,U=!1;if(O.length===1){let ne;for(const de of m){const xe=O(de);(U?i(xe,ne)<0:i(xe,xe)===0)&&(M=de,ne=xe,U=!0)}}else for(const ne of m)(U?O(ne,M)<0:O(ne,ne)===0)&&(M=ne,U=!0);return M}function Ke(m,O=i){if(O.length===1)return hn(m,O);let M,U=-1,ne=-1;for(const de of m)++ne,(U<0?O(de,de)===0:O(de,M)<0)&&(M=de,U=ne);return U}function Ut(m,O=i){if(O.length===1)return bt(m,O);let M,U=-1,ne=-1;for(const de of m)++ne,(U<0?O(de,de)===0:O(de,M)>0)&&(M=de,U=ne);return U}function on(m,O){const M=Ke(m,O);return M<0?void 0:M}const Tn=An(Math.random);function An(m){return function(M,U=0,ne=M.length){let de=ne-(U=+U);for(;de;){const xe=m()*de--|0,Ie=M[de+U];M[de+U]=M[xe+U],M[xe+U]=Ie}return M}}function Zt(m,O){let M=0;if(O===void 0)for(let U of m)(U=+U)&&(M+=U);else{let U=-1;for(let ne of m)(ne=+O(ne,++U,m))&&(M+=ne)}return M}function ot(m){if(!(de=m.length))return[];for(var O=-1,M=Gt(m,We),U=new Array(M);++O<M;)for(var ne=-1,de,xe=U[O]=new Array(de);++ne<de;)xe[ne]=m[ne][O];return U}function We(m){return m.length}function Ft(){return ot(arguments)}function it(m,O){if(typeof O!="function")throw new TypeError("test is not a function");let M=-1;for(const U of m)if(!O(U,++M,m))return!1;return!0}function qt(m,O){if(typeof O!="function")throw new TypeError("test is not a function");let M=-1;for(const U of m)if(O(U,++M,m))return!0;return!1}function vn(m,O){if(typeof O!="function")throw new TypeError("test is not a function");const M=[];let U=-1;for(const ne of m)O(ne,++U,m)&&M.push(ne);return M}function fn(m,O){if(typeof m[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof O!="function")throw new TypeError("mapper is not a function");return Array.from(m,(M,U)=>O(M,U,m))}function Tt(m,O,M){if(typeof O!="function")throw new TypeError("reducer is not a function");const U=m[Symbol.iterator]();let ne,de,xe=-1;if(arguments.length<3){if({done:ne,value:M}=U.next(),ne)return;++xe}for(;{done:ne,value:de}=U.next(),!ne;)M=O(M,de,++xe,m);return M}function dn(m){if(typeof m[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(m).reverse()}function mn(m,...O){m=new F(m);for(const M of O)for(const U of M)m.delete(U);return m}function Kn(m,O){const M=O[Symbol.iterator](),U=new F;for(const ne of m){if(U.has(ne))return!1;let de,xe;for(;({value:de,done:xe}=M.next())&&!xe;){if(Object.is(ne,de))return!1;U.add(de)}}return!0}function Dn(m,...O){m=new F(m),O=O.map(Vn);e:for(const M of m)for(const U of O)if(!U.has(M)){m.delete(M);continue e}return m}function Vn(m){return m instanceof F?m:new F(m)}function or(m,O){const M=m[Symbol.iterator](),U=new Set;for(const ne of O){const de=Qr(ne);if(U.has(de))continue;let xe,Ie;for(;{value:xe,done:Ie}=M.next();){if(Ie)return!1;const Qe=Qr(xe);if(U.add(Qe),Object.is(de,Qe))break}}return!0}function Qr(m){return m!==null&&typeof m=="object"?m.valueOf():m}function ni(m,O){return or(O,m)}function yr(...m){const O=new F;for(const M of m)for(const U of M)O.add(U);return O}function si(m){return m}var Yr=1,Ci=2,Ni=3,fa=4,ha=1e-6;function Ca(m){return"translate("+m+",0)"}function li(m){return"translate(0,"+m+")"}function la(m){return O=>+m(O)}function Oa(m,O){return O=Math.max(0,m.bandwidth()-O*2)/2,m.round()&&(O=Math.round(O)),M=>+m(M)+O}function wa(){return!this.__axis}function vo(m,O){var M=[],U=null,ne=null,de=6,xe=6,Ie=3,Qe=typeof window<"u"&&window.devicePixelRatio>1?0:.5,Ue=m===Yr||m===fa?-1:1,dt=m===fa||m===Ci?"x":"y",$t=m===Yr||m===Ni?Ca:li;function Ot(Jt){var Un=U??(O.ticks?O.ticks.apply(O,M):O.domain()),Pn=ne??(O.tickFormat?O.tickFormat.apply(O,M):si),Cn=Math.max(de,0)+Ie,Fn=O.range(),mr=+Fn[0]+Qe,hr=+Fn[Fn.length-1]+Qe,ar=(O.bandwidth?Oa:la)(O.copy(),Qe),qr=Jt.selection?Jt.selection():Jt,Di=qr.selectAll(".domain").data([null]),Xi=qr.selectAll(".tick").data(Un,O).order(),ya=Xi.exit(),io=Xi.enter().append("g").attr("class","tick"),ga=Xi.select("line"),ba=Xi.select("text");Di=Di.merge(Di.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Xi=Xi.merge(io),ga=ga.merge(io.append("line").attr("stroke","currentColor").attr(dt+"2",Ue*de)),ba=ba.merge(io.append("text").attr("fill","currentColor").attr(dt,Ue*Cn).attr("dy",m===Yr?"0em":m===Ni?"0.71em":"0.32em")),Jt!==qr&&(Di=Di.transition(Jt),Xi=Xi.transition(Jt),ga=ga.transition(Jt),ba=ba.transition(Jt),ya=ya.transition(Jt).attr("opacity",ha).attr("transform",function(wo){return isFinite(wo=ar(wo))?$t(wo+Qe):this.getAttribute("transform")}),io.attr("opacity",ha).attr("transform",function(wo){var so=this.parentNode.__axis;return $t((so&&isFinite(so=so(wo))?so:ar(wo))+Qe)})),ya.remove(),Di.attr("d",m===fa||m===Ci?xe?"M"+Ue*xe+","+mr+"H"+Qe+"V"+hr+"H"+Ue*xe:"M"+Qe+","+mr+"V"+hr:xe?"M"+mr+","+Ue*xe+"V"+Qe+"H"+hr+"V"+Ue*xe:"M"+mr+","+Qe+"H"+hr),Xi.attr("opacity",1).attr("transform",function(wo){return $t(ar(wo)+Qe)}),ga.attr(dt+"2",Ue*de),ba.attr(dt,Ue*Cn).text(Pn),qr.filter(wa).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",m===Ci?"start":m===fa?"end":"middle"),qr.each(function(){this.__axis=ar})}return Ot.scale=function(Jt){return arguments.length?(O=Jt,Ot):O},Ot.ticks=function(){return M=Array.from(arguments),Ot},Ot.tickArguments=function(Jt){return arguments.length?(M=Jt==null?[]:Array.from(Jt),Ot):M.slice()},Ot.tickValues=function(Jt){return arguments.length?(U=Jt==null?null:Array.from(Jt),Ot):U&&U.slice()},Ot.tickFormat=function(Jt){return arguments.length?(ne=Jt,Ot):ne},Ot.tickSize=function(Jt){return arguments.length?(de=xe=+Jt,Ot):de},Ot.tickSizeInner=function(Jt){return arguments.length?(de=+Jt,Ot):de},Ot.tickSizeOuter=function(Jt){return arguments.length?(xe=+Jt,Ot):xe},Ot.tickPadding=function(Jt){return arguments.length?(Ie=+Jt,Ot):Ie},Ot.offset=function(Jt){return arguments.length?(Qe=+Jt,Ot):Qe},Ot}function Qn(m){return vo(Yr,m)}function _r(m){return vo(Ci,m)}function $r(m){return vo(Ni,m)}function Ti(m){return vo(fa,m)}var xt={value:()=>{}};function On(){for(var m=0,O=arguments.length,M={},U;m<O;++m){if(!(U=arguments[m]+"")||U in M||/[\s.]/.test(U))throw new Error("illegal type: "+U);M[U]=[]}return new Zn(M)}function Zn(m){this._=m}function Ur(m,O){return m.trim().split(/^|\s+/).map(function(M){var U="",ne=M.indexOf(".");if(ne>=0&&(U=M.slice(ne+1),M=M.slice(0,ne)),M&&!O.hasOwnProperty(M))throw new Error("unknown type: "+M);return{type:M,name:U}})}Zn.prototype=On.prototype={constructor:Zn,on:function(m,O){var M=this._,U=Ur(m+"",M),ne,de=-1,xe=U.length;if(arguments.length<2){for(;++de<xe;)if((ne=(m=U[de]).type)&&(ne=En(M[ne],m.name)))return ne;return}if(O!=null&&typeof O!="function")throw new Error("invalid callback: "+O);for(;++de<xe;)if(ne=(m=U[de]).type)M[ne]=ln(M[ne],m.name,O);else if(O==null)for(ne in M)M[ne]=ln(M[ne],m.name,null);return this},copy:function(){var m={},O=this._;for(var M in O)m[M]=O[M].slice();return new Zn(m)},call:function(m,O){if((ne=arguments.length-2)>0)for(var M=new Array(ne),U=0,ne,de;U<ne;++U)M[U]=arguments[U+2];if(!this._.hasOwnProperty(m))throw new Error("unknown type: "+m);for(de=this._[m],U=0,ne=de.length;U<ne;++U)de[U].value.apply(O,M)},apply:function(m,O,M){if(!this._.hasOwnProperty(m))throw new Error("unknown type: "+m);for(var U=this._[m],ne=0,de=U.length;ne<de;++ne)U[ne].value.apply(O,M)}};function En(m,O){for(var M=0,U=m.length,ne;M<U;++M)if((ne=m[M]).name===O)return ne.value}function ln(m,O,M){for(var U=0,ne=m.length;U<ne;++U)if(m[U].name===O){m[U]=xt,m=m.slice(0,U).concat(m.slice(U+1));break}return M!=null&&m.push({name:O,value:M}),m}const jn=On;function rr(){}function Mr(m){return m==null?rr:function(){return this.querySelector(m)}}function Ir(m){typeof m!="function"&&(m=Mr(m));for(var O=this._groups,M=O.length,U=new Array(M),ne=0;ne<M;++ne)for(var de=O[ne],xe=de.length,Ie=U[ne]=new Array(xe),Qe,Ue,dt=0;dt<xe;++dt)(Qe=de[dt])&&(Ue=m.call(Qe,Qe.__data__,dt,de))&&("__data__"in Qe&&(Ue.__data__=Qe.__data__),Ie[dt]=Ue);return new Co(U,this._parents)}function Zr(m){return m==null?[]:Array.isArray(m)?m:Array.from(m)}function lr(){return[]}function Jr(m){return m==null?lr:function(){return this.querySelectorAll(m)}}function pi(m){return function(){return Zr(m.apply(this,arguments))}}function Ri(m){typeof m=="function"?m=pi(m):m=Jr(m);for(var O=this._groups,M=O.length,U=[],ne=[],de=0;de<M;++de)for(var xe=O[de],Ie=xe.length,Qe,Ue=0;Ue<Ie;++Ue)(Qe=xe[Ue])&&(U.push(m.call(Qe,Qe.__data__,Ue,xe)),ne.push(Qe));return new Co(U,ne)}function Ki(m){return function(){return this.matches(m)}}function ia(m){return function(O){return O.matches(m)}}var Da=Array.prototype.find;function to(m){return function(){return Da.call(this.children,m)}}function ao(){return this.firstElementChild}function Bo(m){return this.select(m==null?ao:to(typeof m=="function"?m:ia(m)))}var jo=Array.prototype.filter;function Jo(){return Array.from(this.children)}function Go(m){return function(){return jo.call(this.children,m)}}function wr(m){return this.selectAll(m==null?Jo:Go(typeof m=="function"?m:ia(m)))}function qi(m){typeof m!="function"&&(m=Ki(m));for(var O=this._groups,M=O.length,U=new Array(M),ne=0;ne<M;++ne)for(var de=O[ne],xe=de.length,Ie=U[ne]=[],Qe,Ue=0;Ue<xe;++Ue)(Qe=de[Ue])&&m.call(Qe,Qe.__data__,Ue,de)&&Ie.push(Qe);return new Co(U,this._parents)}function ja(m){return new Array(m.length)}function uo(){return new Co(this._enter||this._groups.map(ja),this._parents)}function wi(m,O){this.ownerDocument=m.ownerDocument,this.namespaceURI=m.namespaceURI,this._next=null,this._parent=m,this.__data__=O}wi.prototype={constructor:wi,appendChild:function(m){return this._parent.insertBefore(m,this._next)},insertBefore:function(m,O){return this._parent.insertBefore(m,O)},querySelector:function(m){return this._parent.querySelector(m)},querySelectorAll:function(m){return this._parent.querySelectorAll(m)}};function ai(m){return function(){return m}}function za(m,O,M,U,ne,de){for(var xe=0,Ie,Qe=O.length,Ue=de.length;xe<Ue;++xe)(Ie=O[xe])?(Ie.__data__=de[xe],U[xe]=Ie):M[xe]=new wi(m,de[xe]);for(;xe<Qe;++xe)(Ie=O[xe])&&(ne[xe]=Ie)}function Mt(m,O,M,U,ne,de,xe){var Ie,Qe,Ue=new Map,dt=O.length,$t=de.length,Ot=new Array(dt),Jt;for(Ie=0;Ie<dt;++Ie)(Qe=O[Ie])&&(Ot[Ie]=Jt=xe.call(Qe,Qe.__data__,Ie,O)+"",Ue.has(Jt)?ne[Ie]=Qe:Ue.set(Jt,Qe));for(Ie=0;Ie<$t;++Ie)Jt=xe.call(m,de[Ie],Ie,de)+"",(Qe=Ue.get(Jt))?(U[Ie]=Qe,Qe.__data__=de[Ie],Ue.delete(Jt)):M[Ie]=new wi(m,de[Ie]);for(Ie=0;Ie<dt;++Ie)(Qe=O[Ie])&&Ue.get(Ot[Ie])===Qe&&(ne[Ie]=Qe)}function Gn(m){return m.__data__}function qn(m,O){if(!arguments.length)return Array.from(this,Gn);var M=O?Mt:za,U=this._parents,ne=this._groups;typeof m!="function"&&(m=ai(m));for(var de=ne.length,xe=new Array(de),Ie=new Array(de),Qe=new Array(de),Ue=0;Ue<de;++Ue){var dt=U[Ue],$t=ne[Ue],Ot=$t.length,Jt=Fr(m.call(dt,dt&&dt.__data__,Ue,U)),Un=Jt.length,Pn=Ie[Ue]=new Array(Un),Cn=xe[Ue]=new Array(Un),Fn=Qe[Ue]=new Array(Ot);M(dt,$t,Pn,Cn,Fn,Jt,O);for(var mr=0,hr=0,ar,qr;mr<Un;++mr)if(ar=Pn[mr]){for(mr>=hr&&(hr=mr+1);!(qr=Cn[hr])&&++hr<Un;);ar._next=qr||null}}return xe=new Co(xe,U),xe._enter=Ie,xe._exit=Qe,xe}function Fr(m){return typeof m=="object"&&"length"in m?m:Array.from(m)}function Ei(){return new Co(this._exit||this._groups.map(ja),this._parents)}function ii(m,O,M){var U=this.enter(),ne=this,de=this.exit();return typeof m=="function"?(U=m(U),U&&(U=U.selection())):U=U.append(m+""),O!=null&&(ne=O(ne),ne&&(ne=ne.selection())),M==null?de.remove():M(de),U&&ne?U.merge(ne).order():ne}function Wi(m){for(var O=m.selection?m.selection():m,M=this._groups,U=O._groups,ne=M.length,de=U.length,xe=Math.min(ne,de),Ie=new Array(ne),Qe=0;Qe<xe;++Qe)for(var Ue=M[Qe],dt=U[Qe],$t=Ue.length,Ot=Ie[Qe]=new Array($t),Jt,Un=0;Un<$t;++Un)(Jt=Ue[Un]||dt[Un])&&(Ot[Un]=Jt);for(;Qe<ne;++Qe)Ie[Qe]=M[Qe];return new Co(Ie,this._parents)}function Ya(){for(var m=this._groups,O=-1,M=m.length;++O<M;)for(var U=m[O],ne=U.length-1,de=U[ne],xe;--ne>=0;)(xe=U[ne])&&(de&&xe.compareDocumentPosition(de)^4&&de.parentNode.insertBefore(xe,de),de=xe);return this}function qa(m){m||(m=se);function O($t,Ot){return $t&&Ot?m($t.__data__,Ot.__data__):!$t-!Ot}for(var M=this._groups,U=M.length,ne=new Array(U),de=0;de<U;++de){for(var xe=M[de],Ie=xe.length,Qe=ne[de]=new Array(Ie),Ue,dt=0;dt<Ie;++dt)(Ue=xe[dt])&&(Qe[dt]=Ue);Qe.sort(O)}return new Co(ne,this._parents).order()}function se(m,O){return m<O?-1:m>O?1:m>=O?0:NaN}function ye(){var m=arguments[0];return arguments[0]=this,m.apply(null,arguments),this}function Xe(){return Array.from(this)}function yt(){for(var m=this._groups,O=0,M=m.length;O<M;++O)for(var U=m[O],ne=0,de=U.length;ne<de;++ne){var xe=U[ne];if(xe)return xe}return null}function Wt(){let m=0;for(const O of this)++m;return m}function Qt(){return!this.node()}function wn(m){for(var O=this._groups,M=0,U=O.length;M<U;++M)for(var ne=O[M],de=0,xe=ne.length,Ie;de<xe;++de)(Ie=ne[de])&&m.call(Ie,Ie.__data__,de,ne);return this}var fr="http://www.w3.org/1999/xhtml";const Or={svg:"http://www.w3.org/2000/svg",xhtml:fr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Si(m){var O=m+="",M=O.indexOf(":");return M>=0&&(O=m.slice(0,M))!=="xmlns"&&(m=m.slice(M+1)),Or.hasOwnProperty(O)?{space:Or[O],local:m}:m}function Fi(m){return function(){this.removeAttribute(m)}}function Bi(m){return function(){this.removeAttributeNS(m.space,m.local)}}function Ui(m,O){return function(){this.setAttribute(m,O)}}function vi(m,O){return function(){this.setAttributeNS(m.space,m.local,O)}}function Xa(m,O){return function(){var M=O.apply(this,arguments);M==null?this.removeAttribute(m):this.setAttribute(m,M)}}function Ko(m,O){return function(){var M=O.apply(this,arguments);M==null?this.removeAttributeNS(m.space,m.local):this.setAttributeNS(m.space,m.local,M)}}function So(m,O){var M=Si(m);if(arguments.length<2){var U=this.node();return M.local?U.getAttributeNS(M.space,M.local):U.getAttribute(M)}return this.each((O==null?M.local?Bi:Fi:typeof O=="function"?M.local?Ko:Xa:M.local?vi:Ui)(M,O))}function Lo(m){return m.ownerDocument&&m.ownerDocument.defaultView||m.document&&m||m.defaultView}function us(m){return function(){this.style.removeProperty(m)}}function Ee(m,O,M){return function(){this.style.setProperty(m,O,M)}}function Y(m,O,M){return function(){var U=O.apply(this,arguments);U==null?this.style.removeProperty(m):this.style.setProperty(m,U,M)}}function z(m,O,M){return arguments.length>1?this.each((O==null?us:typeof O=="function"?Y:Ee)(m,O,M??"")):B(this.node(),m)}function B(m,O){return m.style.getPropertyValue(O)||Lo(m).getComputedStyle(m,null).getPropertyValue(O)}function le(m){return function(){delete this[m]}}function Le(m,O){return function(){this[m]=O}}function Je(m,O){return function(){var M=O.apply(this,arguments);M==null?delete this[m]:this[m]=M}}function Ct(m,O){return arguments.length>1?this.each((O==null?le:typeof O=="function"?Je:Le)(m,O)):this.node()[m]}function Vt(m){return m.trim().split(/^|\s+/)}function bn(m){return m.classList||new Hn(m)}function Hn(m){this._node=m,this._names=Vt(m.getAttribute("class")||"")}Hn.prototype={add:function(m){var O=this._names.indexOf(m);O<0&&(this._names.push(m),this._node.setAttribute("class",this._names.join(" ")))},remove:function(m){var O=this._names.indexOf(m);O>=0&&(this._names.splice(O,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(m){return this._names.indexOf(m)>=0}};function br(m,O){for(var M=bn(m),U=-1,ne=O.length;++U<ne;)M.add(O[U])}function ei(m,O){for(var M=bn(m),U=-1,ne=O.length;++U<ne;)M.remove(O[U])}function mi(m){return function(){br(this,m)}}function Li(m){return function(){ei(this,m)}}function na(m,O){return function(){(O.apply(this,arguments)?br:ei)(this,m)}}function ji(m,O){var M=Vt(m+"");if(arguments.length<2){for(var U=bn(this.node()),ne=-1,de=M.length;++ne<de;)if(!U.contains(M[ne]))return!1;return!0}return this.each((typeof O=="function"?na:O?mi:Li)(M,O))}function $a(){this.textContent=""}function Ha(m){return function(){this.textContent=m}}function Eo(m){return function(){var O=m.apply(this,arguments);this.textContent=O??""}}function Uo(m){return arguments.length?this.each(m==null?$a:(typeof m=="function"?Eo:Ha)(m)):this.node().textContent}function Ms(){this.innerHTML=""}function er(m){return function(){this.innerHTML=m}}function Ar(m){return function(){var O=m.apply(this,arguments);this.innerHTML=O??""}}function Kr(m){return arguments.length?this.each(m==null?Ms:(typeof m=="function"?Ar:er)(m)):this.node().innerHTML}function ur(){this.nextSibling&&this.parentNode.appendChild(this)}function Gr(){return this.each(ur)}function Pi(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function aa(){return this.each(Pi)}function Fa(m){return function(){var O=this.ownerDocument,M=this.namespaceURI;return M===fr&&O.documentElement.namespaceURI===fr?O.createElement(m):O.createElementNS(M,m)}}function tn(m){return function(){return this.ownerDocument.createElementNS(m.space,m.local)}}function cn(m){var O=Si(m);return(O.local?tn:Fa)(O)}function nr(m){var O=typeof m=="function"?m:cn(m);return this.select(function(){return this.appendChild(O.apply(this,arguments))})}function ir(){return null}function Lr(m,O){var M=typeof m=="function"?m:cn(m),U=O==null?ir:typeof O=="function"?O:Mr(O);return this.select(function(){return this.insertBefore(M.apply(this,arguments),U.apply(this,arguments)||null)})}function ua(){var m=this.parentNode;m&&m.removeChild(this)}function _a(){return this.each(ua)}function Ka(){var m=this.cloneNode(!1),O=this.parentNode;return O?O.insertBefore(m,this.nextSibling):m}function yo(){var m=this.cloneNode(!0),O=this.parentNode;return O?O.insertBefore(m,this.nextSibling):m}function Ba(m){return this.select(m?yo:Ka)}function Ma(m){return arguments.length?this.property("__data__",m):this.node().__data__}function Mo(m){return function(O){m.call(this,O,this.__data__)}}function Nr(m){return m.trim().split(/^|\s+/).map(function(O){var M="",U=O.indexOf(".");return U>=0&&(M=O.slice(U+1),O=O.slice(0,U)),{type:O,name:M}})}function gi(m){return function(){var O=this.__on;if(O){for(var M=0,U=-1,ne=O.length,de;M<ne;++M)de=O[M],(!m.type||de.type===m.type)&&de.name===m.name?this.removeEventListener(de.type,de.listener,de.options):O[++U]=de;++U?O.length=U:delete this.__on}}}function ea(m,O,M){return function(){var U=this.__on,ne,de=Mo(O);if(U){for(var xe=0,Ie=U.length;xe<Ie;++xe)if((ne=U[xe]).type===m.type&&ne.name===m.name){this.removeEventListener(ne.type,ne.listener,ne.options),this.addEventListener(ne.type,ne.listener=de,ne.options=M),ne.value=O;return}}this.addEventListener(m.type,de,M),ne={type:m.type,name:m.name,value:O,listener:de,options:M},U?U.push(ne):this.__on=[ne]}}function dr(m,O,M){var U=Nr(m+""),ne,de=U.length,xe;if(arguments.length<2){var Ie=this.node().__on;if(Ie){for(var Qe=0,Ue=Ie.length,dt;Qe<Ue;++Qe)for(ne=0,dt=Ie[Qe];ne<de;++ne)if((xe=U[ne]).type===dt.type&&xe.name===dt.name)return dt.value}return}for(Ie=O?ea:gi,ne=0;ne<de;++ne)this.each(Ie(U[ne],O,M));return this}function ci(m,O,M){var U=Lo(m),ne=U.CustomEvent;typeof ne=="function"?ne=new ne(O,M):(ne=U.document.createEvent("Event"),M?(ne.initEvent(O,M.bubbles,M.cancelable),ne.detail=M.detail):ne.initEvent(O,!1,!1)),m.dispatchEvent(ne)}function yi(m,O){return function(){return ci(this,m,O)}}function xa(m,O){return function(){return ci(this,m,O.apply(this,arguments))}}function Cr(m,O){return this.each((typeof O=="function"?xa:yi)(m,O))}function*ka(){for(var m=this._groups,O=0,M=m.length;O<M;++O)for(var U=m[O],ne=0,de=U.length,xe;ne<de;++ne)(xe=U[ne])&&(yield xe)}var Io=[null];function Co(m,O){this._groups=m,this._parents=O}function _s(){return new Co([[document.documentElement]],Io)}function Is(){return this}Co.prototype=_s.prototype={constructor:Co,select:Ir,selectAll:Ri,selectChild:Bo,selectChildren:wr,filter:qi,data:qn,enter:uo,exit:Ei,join:ii,merge:Wi,selection:Is,order:Ya,sort:qa,call:ye,nodes:Xe,node:yt,size:Wt,empty:Qt,each:wn,attr:So,style:z,property:Ct,classed:ji,text:Uo,html:Kr,raise:Gr,lower:aa,append:nr,insert:Lr,remove:_a,clone:Ba,datum:Ma,on:dr,dispatch:Cr,[Symbol.iterator]:ka};const xs=_s;function Zs(m){return typeof m=="string"?new Co([[document.querySelector(m)]],[document.documentElement]):new Co([[m]],Io)}const Ns={passive:!1},Us={capture:!0,passive:!1};function fu(m){m.stopImmediatePropagation()}function bu(m){m.preventDefault(),m.stopImmediatePropagation()}function Ys(m){var O=m.document.documentElement,M=Zs(m).on("dragstart.drag",bu,Us);"onselectstart"in O?M.on("selectstart.drag",bu,Us):(O.__noselect=O.style.MozUserSelect,O.style.MozUserSelect="none")}function Hu(m,O){var M=m.document.documentElement,U=Zs(m).on("dragstart.drag",null);O&&(U.on("click.drag",bu,Us),setTimeout(function(){U.on("click.drag",null)},0)),"onselectstart"in M?U.on("selectstart.drag",null):(M.style.MozUserSelect=M.__noselect,delete M.__noselect)}var Zu=t(21517),ql=t(7975);function Sn(m,O){O||(O=[]);var M=m?Math.min(O.length,m.length):0,U=O.slice(),ne;return function(de){for(ne=0;ne<M;++ne)U[ne]=m[ne]*(1-de)+O[ne]*de;return U}}function Wn(m){return ArrayBuffer.isView(m)&&!(m instanceof DataView)}function vr(m,O){return(Wn(O)?Sn:kr)(m,O)}function kr(m,O){var M=O?O.length:0,U=m?Math.min(M,m.length):0,ne=new Array(U),de=new Array(M),xe;for(xe=0;xe<U;++xe)ne[xe]=jt(m[xe],O[xe]);for(;xe<M;++xe)de[xe]=O[xe];return function(Ie){for(xe=0;xe<U;++xe)de[xe]=ne[xe](Ie);return de}}function ui(m,O){var M=new Date;return m=+m,O=+O,function(U){return M.setTime(m*(1-U)+O*U),M}}function ta(m,O){return m=+m,O=+O,function(M){return m*(1-M)+O*M}}function St(m,O){var M={},U={},ne;(m===null||typeof m!="object")&&(m={}),(O===null||typeof O!="object")&&(O={});for(ne in O)ne in m?M[ne]=jt(m[ne],O[ne]):U[ne]=O[ne];return function(de){for(ne in M)U[ne]=M[ne](de);return U}}var pt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kt=new RegExp(pt.source,"g");function _t(m){return function(){return m}}function Mn(m){return function(O){return m(O)+""}}function Pr(m,O){var M=pt.lastIndex=kt.lastIndex=0,U,ne,de,xe=-1,Ie=[],Qe=[];for(m=m+"",O=O+"";(U=pt.exec(m))&&(ne=kt.exec(O));)(de=ne.index)>M&&(de=O.slice(M,de),Ie[xe]?Ie[xe]+=de:Ie[++xe]=de),(U=U[0])===(ne=ne[0])?Ie[xe]?Ie[xe]+=ne:Ie[++xe]=ne:(Ie[++xe]=null,Qe.push({i:xe,x:ta(U,ne)})),M=kt.lastIndex;return M<O.length&&(de=O.slice(M),Ie[xe]?Ie[xe]+=de:Ie[++xe]=de),Ie.length<2?Qe[0]?Mn(Qe[0].x):_t(O):(O=Qe.length,function(Ue){for(var dt=0,$t;dt<O;++dt)Ie[($t=Qe[dt]).i]=$t.x(Ue);return Ie.join("")})}var Hi=t(13802);function jt(m,O){var M=typeof O,U;return O==null||M==="boolean"?(0,Hi.Z)(O):(M==="number"?ta:M==="string"?(U=(0,Zu.ZP)(O))?(O=U,ql.ZP):Pr:O instanceof Zu.ZP?ql.ZP:O instanceof Date?ui:Wn(O)?Sn:Array.isArray(O)?kr:typeof O.valueOf!="function"&&typeof O.toString!="function"||isNaN(O)?St:ta)(m,O)}function $n(m){let O;for(;O=m.sourceEvent;)m=O;return m}function pn(m,O){if(m=$n(m),O===void 0&&(O=m.currentTarget),O){var M=O.ownerSVGElement||O;if(M.createSVGPoint){var U=M.createSVGPoint();return U.x=m.clientX,U.y=m.clientY,U=U.matrixTransform(O.getScreenCTM().inverse()),[U.x,U.y]}if(O.getBoundingClientRect){var ne=O.getBoundingClientRect();return[m.clientX-ne.left-O.clientLeft,m.clientY-ne.top-O.clientTop]}}return[m.pageX,m.pageY]}var ee=0,oe=0,De=0,Be=1e3,gt,Ht,nn=0,Rn=0,Yn=0,gr=typeof performance=="object"&&performance.now?performance:Date,Ai=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(m){setTimeout(m,17)};function $i(){return Rn||(Ai(ma),Rn=gr.now()+Yn)}function ma(){Rn=0}function La(){this._call=this._time=this._next=null}La.prototype=Qa.prototype={constructor:La,restart:function(m,O,M){if(typeof m!="function")throw new TypeError("callback is not a function");M=(M==null?$i():+M)+(O==null?0:+O),!this._next&&Ht!==this&&(Ht?Ht._next=this:gt=this,Ht=this),this._call=m,this._time=M,eu()},stop:function(){this._call&&(this._call=null,this._time=1/0,eu())}};function Qa(m,O,M){var U=new La;return U.restart(m,O,M),U}function go(){$i(),++ee;for(var m=gt,O;m;)(O=Rn-m._time)>=0&&m._call.call(void 0,O),m=m._next;--ee}function Ao(){Rn=(nn=gr.now())+Yn,ee=oe=0;try{go()}finally{ee=0,Ho(),Rn=0}}function Fo(){var m=gr.now(),O=m-nn;O>Be&&(Yn-=O,nn=m)}function Ho(){for(var m,O=gt,M,U=1/0;O;)O._call?(U>O._time&&(U=O._time),m=O,O=O._next):(M=O._next,O._next=null,O=m?m._next=M:gt=M);Ht=m,eu(U)}function eu(m){if(!ee){oe&&(oe=clearTimeout(oe));var O=m-Rn;O>24?(m<1/0&&(oe=setTimeout(Ao,m-gr.now()-Yn)),De&&(De=clearInterval(De))):(De||(nn=gr.now(),De=setInterval(Fo,Be)),ee=1,Ai(Ao))}}function ks(m,O,M){var U=new La;return O=O==null?0:+O,U.restart(ne=>{U.stop(),m(ne+O)},O,M),U}var Gu=jn("start","end","cancel","interrupt"),an=[],Nn=0,tr=1,In=2,di=3,oi=4,ki=5,ri=6;function bi(m,O,M,U,ne,de){var xe=m.__transition;if(!xe)m.__transition={};else if(M in xe)return;Va(m,M,{name:O,index:U,group:ne,on:Gu,tween:an,time:de.time,delay:de.delay,duration:de.duration,ease:de.ease,timer:null,state:Nn})}function _n(m,O){var M=va(m,O);if(M.state>Nn)throw new Error("too late; already scheduled");return M}function Ua(m,O){var M=va(m,O);if(M.state>di)throw new Error("too late; already running");return M}function va(m,O){var M=m.__transition;if(!M||!(M=M[O]))throw new Error("transition not found");return M}function Va(m,O,M){var U=m.__transition,ne;U[O]=M,M.timer=Qa(de,0,M.time);function de(Ue){M.state=tr,M.timer.restart(xe,M.delay,M.time),M.delay<=Ue&&xe(Ue-M.delay)}function xe(Ue){var dt,$t,Ot,Jt;if(M.state!==tr)return Qe();for(dt in U)if(Jt=U[dt],Jt.name===M.name){if(Jt.state===di)return ks(xe);Jt.state===oi?(Jt.state=ri,Jt.timer.stop(),Jt.on.call("interrupt",m,m.__data__,Jt.index,Jt.group),delete U[dt]):+dt<O&&(Jt.state=ri,Jt.timer.stop(),Jt.on.call("cancel",m,m.__data__,Jt.index,Jt.group),delete U[dt])}if(ks(function(){M.state===di&&(M.state=oi,M.timer.restart(Ie,M.delay,M.time),Ie(Ue))}),M.state=In,M.on.call("start",m,m.__data__,M.index,M.group),M.state===In){for(M.state=di,ne=new Array(Ot=M.tween.length),dt=0,$t=-1;dt<Ot;++dt)(Jt=M.tween[dt].value.call(m,m.__data__,M.index,M.group))&&(ne[++$t]=Jt);ne.length=$t+1}}function Ie(Ue){for(var dt=Ue<M.duration?M.ease.call(null,Ue/M.duration):(M.timer.restart(Qe),M.state=ki,1),$t=-1,Ot=ne.length;++$t<Ot;)ne[$t].call(m,dt);M.state===ki&&(M.on.call("end",m,m.__data__,M.index,M.group),Qe())}function Qe(){M.state=ri,M.timer.stop(),delete U[O];for(var Ue in U)return;delete m.__transition}}function Qi(m,O){var M=m.__transition,U,ne,de=!0,xe;if(M){O=O==null?null:O+"";for(xe in M){if((U=M[xe]).name!==O){de=!1;continue}ne=U.state>In&&U.state<ki,U.state=ri,U.timer.stop(),U.on.call(ne?"interrupt":"cancel",m,m.__data__,U.index,U.group),delete M[xe]}de&&delete m.__transition}}function ro(m){return this.each(function(){Qi(this,m)})}var Pe=180/Math.PI,Nt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function un(m,O,M,U,ne,de){var xe,Ie,Qe;return(xe=Math.sqrt(m*m+O*O))&&(m/=xe,O/=xe),(Qe=m*M+O*U)&&(M-=m*Qe,U-=O*Qe),(Ie=Math.sqrt(M*M+U*U))&&(M/=Ie,U/=Ie,Qe/=Ie),m*U<O*M&&(m=-m,O=-O,Qe=-Qe,xe=-xe),{translateX:ne,translateY:de,rotate:Math.atan2(O,m)*Pe,skewX:Math.atan(Qe)*Pe,scaleX:xe,scaleY:Ie}}var xn;function zn(m){const O=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(m+"");return O.isIdentity?Nt:un(O.a,O.b,O.c,O.d,O.e,O.f)}function sr(m){return m==null||(xn||(xn=document.createElementNS("http://www.w3.org/2000/svg","g")),xn.setAttribute("transform",m),!(m=xn.transform.baseVal.consolidate()))?Nt:(m=m.matrix,un(m.a,m.b,m.c,m.d,m.e,m.f))}function Tr(m,O,M,U){function ne(Ue){return Ue.length?Ue.pop()+" ":""}function de(Ue,dt,$t,Ot,Jt,Un){if(Ue!==$t||dt!==Ot){var Pn=Jt.push("translate(",null,O,null,M);Un.push({i:Pn-4,x:ta(Ue,$t)},{i:Pn-2,x:ta(dt,Ot)})}else($t||Ot)&&Jt.push("translate("+$t+O+Ot+M)}function xe(Ue,dt,$t,Ot){Ue!==dt?(Ue-dt>180?dt+=360:dt-Ue>180&&(Ue+=360),Ot.push({i:$t.push(ne($t)+"rotate(",null,U)-2,x:ta(Ue,dt)})):dt&&$t.push(ne($t)+"rotate("+dt+U)}function Ie(Ue,dt,$t,Ot){Ue!==dt?Ot.push({i:$t.push(ne($t)+"skewX(",null,U)-2,x:ta(Ue,dt)}):dt&&$t.push(ne($t)+"skewX("+dt+U)}function Qe(Ue,dt,$t,Ot,Jt,Un){if(Ue!==$t||dt!==Ot){var Pn=Jt.push(ne(Jt)+"scale(",null,",",null,")");Un.push({i:Pn-4,x:ta(Ue,$t)},{i:Pn-2,x:ta(dt,Ot)})}else($t!==1||Ot!==1)&&Jt.push(ne(Jt)+"scale("+$t+","+Ot+")")}return function(Ue,dt){var $t=[],Ot=[];return Ue=m(Ue),dt=m(dt),de(Ue.translateX,Ue.translateY,dt.translateX,dt.translateY,$t,Ot),xe(Ue.rotate,dt.rotate,$t,Ot),Ie(Ue.skewX,dt.skewX,$t,Ot),Qe(Ue.scaleX,Ue.scaleY,dt.scaleX,dt.scaleY,$t,Ot),Ue=dt=null,function(Jt){for(var Un=-1,Pn=Ot.length,Cn;++Un<Pn;)$t[(Cn=Ot[Un]).i]=Cn.x(Jt);return $t.join("")}}}var Br=Tr(zn,"px, ","px)","deg)"),Er=Tr(sr,", ",")",")");function Sr(m,O){var M,U;return function(){var ne=Ua(this,m),de=ne.tween;if(de!==M){U=M=de;for(var xe=0,Ie=U.length;xe<Ie;++xe)if(U[xe].name===O){U=U.slice(),U.splice(xe,1);break}}ne.tween=U}}function Vr(m,O,M){var U,ne;if(typeof M!="function")throw new Error;return function(){var de=Ua(this,m),xe=de.tween;if(xe!==U){ne=(U=xe).slice();for(var Ie={name:O,value:M},Qe=0,Ue=ne.length;Qe<Ue;++Qe)if(ne[Qe].name===O){ne[Qe]=Ie;break}Qe===Ue&&ne.push(Ie)}de.tween=ne}}function fi(m,O){var M=this._id;if(m+="",arguments.length<2){for(var U=va(this.node(),M).tween,ne=0,de=U.length,xe;ne<de;++ne)if((xe=U[ne]).name===m)return xe.value;return null}return this.each((O==null?Sr:Vr)(M,m,O))}function xr(m,O,M){var U=m._id;return m.each(function(){var ne=Ua(this,U);(ne.value||(ne.value={}))[O]=M.apply(this,arguments)}),function(ne){return va(ne,U).value[O]}}function Wr(m,O){var M;return(typeof O=="number"?ta:O instanceof Zu.ZP?ql.ZP:(M=(0,Zu.ZP)(O))?(O=M,ql.ZP):Pr)(m,O)}function ti(m){return function(){this.removeAttribute(m)}}function xi(m){return function(){this.removeAttributeNS(m.space,m.local)}}function Gi(m,O,M){var U,ne=M+"",de;return function(){var xe=this.getAttribute(m);return xe===ne?null:xe===U?de:de=O(U=xe,M)}}function _i(m,O,M){var U,ne=M+"",de;return function(){var xe=this.getAttributeNS(m.space,m.local);return xe===ne?null:xe===U?de:de=O(U=xe,M)}}function da(m,O,M){var U,ne,de;return function(){var xe,Ie=M(this),Qe;return Ie==null?void this.removeAttribute(m):(xe=this.getAttribute(m),Qe=Ie+"",xe===Qe?null:xe===U&&Qe===ne?de:(ne=Qe,de=O(U=xe,Ie)))}}function Sa(m,O,M){var U,ne,de;return function(){var xe,Ie=M(this),Qe;return Ie==null?void this.removeAttributeNS(m.space,m.local):(xe=this.getAttributeNS(m.space,m.local),Qe=Ie+"",xe===Qe?null:xe===U&&Qe===ne?de:(ne=Qe,de=O(U=xe,Ie)))}}function Pa(m,O){var M=Si(m),U=M==="transform"?Er:Wr;return this.attrTween(m,typeof O=="function"?(M.local?Sa:da)(M,U,xr(this,"attr."+m,O)):O==null?(M.local?xi:ti)(M):(M.local?_i:Gi)(M,U,O))}function oo(m,O){return function(M){this.setAttribute(m,O.call(this,M))}}function mo(m,O){return function(M){this.setAttributeNS(m.space,m.local,O.call(this,M))}}function Ga(m,O){var M,U;function ne(){var de=O.apply(this,arguments);return de!==U&&(M=(U=de)&&mo(m,de)),M}return ne._value=O,ne}function no(m,O){var M,U;function ne(){var de=O.apply(this,arguments);return de!==U&&(M=(U=de)&&oo(m,de)),M}return ne._value=O,ne}function ca(m,O){var M="attr."+m;if(arguments.length<2)return(M=this.tween(M))&&M._value;if(O==null)return this.tween(M,null);if(typeof O!="function")throw new Error;var U=Si(m);return this.tween(M,(U.local?Ga:no)(U,O))}function co(m,O){return function(){_n(this,m).delay=+O.apply(this,arguments)}}function Yo(m,O){return O=+O,function(){_n(this,m).delay=O}}function bo(m){var O=this._id;return arguments.length?this.each((typeof m=="function"?co:Yo)(O,m)):va(this.node(),O).delay}function Ea(m,O){return function(){Ua(this,m).duration=+O.apply(this,arguments)}}function ko(m,O){return O=+O,function(){Ua(this,m).duration=O}}function Es(m){var O=this._id;return arguments.length?this.each((typeof m=="function"?Ea:ko)(O,m)):va(this.node(),O).duration}function Ts(m,O){if(typeof O!="function")throw new Error;return function(){Ua(this,m).ease=O}}function rs(m){var O=this._id;return arguments.length?this.each(Ts(O,m)):va(this.node(),O).ease}function ls(m,O){return function(){var M=O.apply(this,arguments);if(typeof M!="function")throw new Error;Ua(this,m).ease=M}}function Ss(m){if(typeof m!="function")throw new Error;return this.each(ls(this._id,m))}function cs(m){typeof m!="function"&&(m=Ki(m));for(var O=this._groups,M=O.length,U=new Array(M),ne=0;ne<M;++ne)for(var de=O[ne],xe=de.length,Ie=U[ne]=[],Qe,Ue=0;Ue<xe;++Ue)(Qe=de[Ue])&&m.call(Qe,Qe.__data__,Ue,de)&&Ie.push(Qe);return new Ku(U,this._parents,this._name,this._id)}function Do(m){if(m._id!==this._id)throw new Error;for(var O=this._groups,M=m._groups,U=O.length,ne=M.length,de=Math.min(U,ne),xe=new Array(U),Ie=0;Ie<de;++Ie)for(var Qe=O[Ie],Ue=M[Ie],dt=Qe.length,$t=xe[Ie]=new Array(dt),Ot,Jt=0;Jt<dt;++Jt)(Ot=Qe[Jt]||Ue[Jt])&&($t[Jt]=Ot);for(;Ie<U;++Ie)xe[Ie]=O[Ie];return new Ku(xe,this._parents,this._name,this._id)}function fs(m){return(m+"").trim().split(/^|\s+/).every(function(O){var M=O.indexOf(".");return M>=0&&(O=O.slice(0,M)),!O||O==="start"})}function is(m,O,M){var U,ne,de=fs(O)?_n:Ua;return function(){var xe=de(this,m),Ie=xe.on;Ie!==U&&(ne=(U=Ie).copy()).on(O,M),xe.on=ne}}function Os(m,O){var M=this._id;return arguments.length<2?va(this.node(),M).on.on(m):this.each(is(M,m,O))}function Qs(m){return function(){var O=this.parentNode;for(var M in this.__transition)if(+M!==m)return;O&&O.removeChild(this)}}function du(){return this.on("end.remove",Qs(this._id))}function Yu(m){var O=this._name,M=this._id;typeof m!="function"&&(m=Mr(m));for(var U=this._groups,ne=U.length,de=new Array(ne),xe=0;xe<ne;++xe)for(var Ie=U[xe],Qe=Ie.length,Ue=de[xe]=new Array(Qe),dt,$t,Ot=0;Ot<Qe;++Ot)(dt=Ie[Ot])&&($t=m.call(dt,dt.__data__,Ot,Ie))&&("__data__"in dt&&($t.__data__=dt.__data__),Ue[Ot]=$t,bi(Ue[Ot],O,M,Ot,Ue,va(dt,M)));return new Ku(de,this._parents,O,M)}function $u(m){var O=this._name,M=this._id;typeof m!="function"&&(m=Jr(m));for(var U=this._groups,ne=U.length,de=[],xe=[],Ie=0;Ie<ne;++Ie)for(var Qe=U[Ie],Ue=Qe.length,dt,$t=0;$t<Ue;++$t)if(dt=Qe[$t]){for(var Ot=m.call(dt,dt.__data__,$t,Qe),Jt,Un=va(dt,M),Pn=0,Cn=Ot.length;Pn<Cn;++Pn)(Jt=Ot[Pn])&&bi(Jt,O,M,Pn,Ot,Un);de.push(Ot),xe.push(dt)}return new Ku(de,xe,O,M)}var Xu=xs.prototype.constructor;function su(){return new Xu(this._groups,this._parents)}function Pu(m,O){var M,U,ne;return function(){var de=B(this,m),xe=(this.style.removeProperty(m),B(this,m));return de===xe?null:de===M&&xe===U?ne:ne=O(M=de,U=xe)}}function Lu(m){return function(){this.style.removeProperty(m)}}function hu(m,O,M){var U,ne=M+"",de;return function(){var xe=B(this,m);return xe===ne?null:xe===U?de:de=O(U=xe,M)}}function Js(m,O,M){var U,ne,de;return function(){var xe=B(this,m),Ie=M(this),Qe=Ie+"";return Ie==null&&(Qe=Ie=(this.style.removeProperty(m),B(this,m))),xe===Qe?null:xe===U&&Qe===ne?de:(ne=Qe,de=O(U=xe,Ie))}}function ys(m,O){var M,U,ne,de="style."+O,xe="end."+de,Ie;return function(){var Qe=Ua(this,m),Ue=Qe.on,dt=Qe.value[de]==null?Ie||(Ie=Lu(O)):void 0;(Ue!==M||ne!==dt)&&(U=(M=Ue).copy()).on(xe,ne=dt),Qe.on=U}}function qo(m,O,M){var U=(m+="")=="transform"?Br:Wr;return O==null?this.styleTween(m,Pu(m,U)).on("end.style."+m,Lu(m)):typeof O=="function"?this.styleTween(m,Js(m,U,xr(this,"style."+m,O))).each(ys(this._id,m)):this.styleTween(m,hu(m,U,O),M).on("end.style."+m,null)}function Ps(m,O,M){return function(U){this.style.setProperty(m,O.call(this,U),M)}}function Ws(m,O,M){var U,ne;function de(){var xe=O.apply(this,arguments);return xe!==ne&&(U=(ne=xe)&&Ps(m,xe,M)),U}return de._value=O,de}function Qo(m,O,M){var U="style."+(m+="");if(arguments.length<2)return(U=this.tween(U))&&U._value;if(O==null)return this.tween(U,null);if(typeof O!="function")throw new Error;return this.tween(U,Ws(m,O,M??""))}function ds(m){return function(){this.textContent=m}}function zu(m){return function(){var O=m(this);this.textContent=O??""}}function tu(m){return this.tween("text",typeof m=="function"?zu(xr(this,"text",m)):ds(m==null?"":m+""))}function Ou(m){return function(O){this.textContent=m.call(this,O)}}function Hs(m){var O,M;function U(){var ne=m.apply(this,arguments);return ne!==M&&(O=(M=ne)&&Ou(ne)),O}return U._value=m,U}function pu(m){var O="text";if(arguments.length<1)return(O=this.tween(O))&&O._value;if(m==null)return this.tween(O,null);if(typeof m!="function")throw new Error;return this.tween(O,Hs(m))}function ku(){for(var m=this._name,O=this._id,M=lu(),U=this._groups,ne=U.length,de=0;de<ne;++de)for(var xe=U[de],Ie=xe.length,Qe,Ue=0;Ue<Ie;++Ue)if(Qe=xe[Ue]){var dt=va(Qe,O);bi(Qe,m,M,Ue,xe,{time:dt.time+dt.delay+dt.duration,delay:0,duration:dt.duration,ease:dt.ease})}return new Ku(U,this._parents,m,M)}function Nu(){var m,O,M=this,U=M._id,ne=M.size();return new Promise(function(de,xe){var Ie={value:xe},Qe={value:function(){--ne===0&&de()}};M.each(function(){var Ue=Ua(this,U),dt=Ue.on;dt!==m&&(O=(m=dt).copy(),O._.cancel.push(Ie),O._.interrupt.push(Ie),O._.end.push(Qe)),Ue.on=O}),ne===0&&de()})}var Fu=0;function Ku(m,O,M,U){this._groups=m,this._parents=O,this._name=M,this._id=U}function sl(m){return xs().transition(m)}function lu(){return++Fu}var Tu=xs.prototype;Ku.prototype=sl.prototype={constructor:Ku,select:Yu,selectAll:$u,selectChild:Tu.selectChild,selectChildren:Tu.selectChildren,filter:cs,merge:Do,selection:su,transition:ku,call:Tu.call,nodes:Tu.nodes,node:Tu.node,size:Tu.size,empty:Tu.empty,each:Tu.each,on:Os,attr:Pa,attrTween:ca,style:qo,styleTween:Qo,text:tu,textTween:pu,remove:du,tween:fi,delay:bo,duration:Es,ease:rs,easeVarying:Ss,end:Nu,[Symbol.iterator]:Tu[Symbol.iterator]};function Vs(m){return m*m*m}function Ds(m){return--m*m*m+1}function Ks(m){return((m*=2)<=1?m*m*m:(m-=2)*m*m+2)/2}var nu={time:null,delay:0,duration:250,ease:Ks};function Ju(m,O){for(var M;!(M=m.__transition)||!(M=M[O]);)if(!(m=m.parentNode))throw new Error(`transition ${O} not found`);return M}function nl(m){var O,M;m instanceof Ku?(O=m._id,m=m._name):(O=lu(),(M=nu).time=$i(),m=m==null?null:m+"");for(var U=this._groups,ne=U.length,de=0;de<ne;++de)for(var xe=U[de],Ie=xe.length,Qe,Ue=0;Ue<Ie;++Ue)(Qe=xe[Ue])&&bi(Qe,m,O,Ue,xe,M||Ju(Qe,O));return new Ku(U,this._parents,m,O)}xs.prototype.interrupt=ro,xs.prototype.transition=nl;var ec=[null];function Mc(m,O){var M=m.__transition,U,ne;if(M){O=O==null?null:O+"";for(ne in M)if((U=M[ne]).state>tr&&U.name===O)return new Ku([[m]],ec,O,+ne)}return null}const hc=m=>()=>m;function Ol(m,{sourceEvent:O,target:M,selection:U,mode:ne,dispatch:de}){Object.defineProperties(this,{type:{value:m,enumerable:!0,configurable:!0},sourceEvent:{value:O,enumerable:!0,configurable:!0},target:{value:M,enumerable:!0,configurable:!0},selection:{value:U,enumerable:!0,configurable:!0},mode:{value:ne,enumerable:!0,configurable:!0},_:{value:de}})}function Nl(m){m.stopImmediatePropagation()}function wl(m){m.preventDefault(),m.stopImmediatePropagation()}var Fl={name:"drag"},rc={name:"space"},Ic={name:"handle"},kl={name:"center"};const{abs:Gc,max:$l,min:Ml}=Math;function zc(m){return[+m[0],+m[1]]}function tf(m){return[zc(m[0]),zc(m[1])]}var _c={name:"x",handles:["w","e"].map(vc),input:function(m,O){return m==null?null:[[+m[0],O[0][1]],[+m[1],O[1][1]]]},output:function(m){return m&&[m[0][0],m[1][0]]}},Cc={name:"y",handles:["n","s"].map(vc),input:function(m,O){return m==null?null:[[O[0][0],+m[0]],[O[1][0],+m[1]]]},output:function(m){return m&&[m[0][1],m[1][1]]}},of={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(vc),input:function(m){return m==null?null:tf(m)},output:function(m){return m}},Qc={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},sc={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ul={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},fc={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},lf={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function vc(m){return{type:m}}function yl(m){return!m.ctrlKey&&!m.button}function cf(){var m=this.ownerSVGElement||this;return m.hasAttribute("viewBox")?(m=m.viewBox.baseVal,[[m.x,m.y],[m.x+m.width,m.y+m.height]]):[[0,0],[m.width.baseVal.value,m.height.baseVal.value]]}function _l(){return navigator.maxTouchPoints||"ontouchstart"in this}function qu(m){for(;!m.__brush;)if(!(m=m.parentNode))return;return m.__brush}function ic(m){return m[0][0]===m[1][0]||m[0][1]===m[1][1]}function jl(m){var O=m.__brush;return O?O.dim.output(O.selection):null}function lc(){return ll(_c)}function Rl(){return ll(Cc)}function al(){return ll(of)}function ll(m){var O=cf,M=yl,U=_l,ne=!0,de=jn("start","brush","end"),xe=6,Ie;function Qe(Cn){var Fn=Cn.property("__brush",Pn).selectAll(".overlay").data([vc("overlay")]);Fn.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Qc.overlay).merge(Fn).each(function(){var hr=qu(this).extent;Zs(this).attr("x",hr[0][0]).attr("y",hr[0][1]).attr("width",hr[1][0]-hr[0][0]).attr("height",hr[1][1]-hr[0][1])}),Cn.selectAll(".selection").data([vc("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Qc.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var mr=Cn.selectAll(".handle").data(m.handles,function(hr){return hr.type});mr.exit().remove(),mr.enter().append("rect").attr("class",function(hr){return"handle handle--"+hr.type}).attr("cursor",function(hr){return Qc[hr.type]}),Cn.each(Ue).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",Ot).filter(U).on("touchstart.brush",Ot).on("touchmove.brush",Jt).on("touchend.brush touchcancel.brush",Un).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Qe.move=function(Cn,Fn,mr){Cn.tween?Cn.on("start.brush",function(hr){dt(this,arguments).beforestart().start(hr)}).on("interrupt.brush end.brush",function(hr){dt(this,arguments).end(hr)}).tween("brush",function(){var hr=this,ar=hr.__brush,qr=dt(hr,arguments),Di=ar.selection,Xi=m.input(typeof Fn=="function"?Fn.apply(this,arguments):Fn,ar.extent),ya=jt(Di,Xi);function io(ga){ar.selection=ga===1&&Xi===null?null:ya(ga),Ue.call(hr),qr.brush()}return Di!==null&&Xi!==null?io:io(1)}):Cn.each(function(){var hr=this,ar=arguments,qr=hr.__brush,Di=m.input(typeof Fn=="function"?Fn.apply(hr,ar):Fn,qr.extent),Xi=dt(hr,ar).beforestart();Qi(hr),qr.selection=Di===null?null:Di,Ue.call(hr),Xi.start(mr).brush(mr).end(mr)})},Qe.clear=function(Cn,Fn){Qe.move(Cn,null,Fn)};function Ue(){var Cn=Zs(this),Fn=qu(this).selection;Fn?(Cn.selectAll(".selection").style("display",null).attr("x",Fn[0][0]).attr("y",Fn[0][1]).attr("width",Fn[1][0]-Fn[0][0]).attr("height",Fn[1][1]-Fn[0][1]),Cn.selectAll(".handle").style("display",null).attr("x",function(mr){return mr.type[mr.type.length-1]==="e"?Fn[1][0]-xe/2:Fn[0][0]-xe/2}).attr("y",function(mr){return mr.type[0]==="s"?Fn[1][1]-xe/2:Fn[0][1]-xe/2}).attr("width",function(mr){return mr.type==="n"||mr.type==="s"?Fn[1][0]-Fn[0][0]+xe:xe}).attr("height",function(mr){return mr.type==="e"||mr.type==="w"?Fn[1][1]-Fn[0][1]+xe:xe})):Cn.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function dt(Cn,Fn,mr){var hr=Cn.__brush.emitter;return hr&&(!mr||!hr.clean)?hr:new $t(Cn,Fn,mr)}function $t(Cn,Fn,mr){this.that=Cn,this.args=Fn,this.state=Cn.__brush,this.active=0,this.clean=mr}$t.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(Cn,Fn){return this.starting?(this.starting=!1,this.emit("start",Cn,Fn)):this.emit("brush",Cn),this},brush:function(Cn,Fn){return this.emit("brush",Cn,Fn),this},end:function(Cn,Fn){return--this.active===0&&(delete this.state.emitter,this.emit("end",Cn,Fn)),this},emit:function(Cn,Fn,mr){var hr=Zs(this.that).datum();de.call(Cn,this.that,new Ol(Cn,{sourceEvent:Fn,target:Qe,selection:m.output(this.state.selection),mode:mr,dispatch:de}),hr)}};function Ot(Cn){if(Ie&&!Cn.touches||!M.apply(this,arguments))return;var Fn=this,mr=Cn.target.__data__.type,hr=(ne&&Cn.metaKey?mr="overlay":mr)==="selection"?Fl:ne&&Cn.altKey?kl:Ic,ar=m===Cc?null:fc[mr],qr=m===_c?null:lf[mr],Di=qu(Fn),Xi=Di.extent,ya=Di.selection,io=Xi[0][0],ga,ba,wo=Xi[0][1],so,Rr,Ii=Xi[1][0],zi,Ra,Vi=Xi[1][1],Na,oa,fo=0,Ro=0,Zo,zo=ar&&qr&&ne&&Cn.shiftKey,ss,Xs,ps=Array.from(Cn.touches||[Cn],xu=>{const nc=xu.identifier;return xu=pn(xu,Fn),xu.point0=xu.slice(),xu.identifier=nc,xu});Qi(Fn);var Au=dt(Fn,arguments,!0).beforestart();if(mr==="overlay"){ya&&(Zo=!0);const xu=[ps[0],ps[1]||ps[0]];Di.selection=ya=[[ga=m===Cc?io:Ml(xu[0][0],xu[1][0]),so=m===_c?wo:Ml(xu[0][1],xu[1][1])],[zi=m===Cc?Ii:$l(xu[0][0],xu[1][0]),Na=m===_c?Vi:$l(xu[0][1],xu[1][1])]],ps.length>1&&Wu(Cn)}else ga=ya[0][0],so=ya[0][1],zi=ya[1][0],Na=ya[1][1];ba=ga,Rr=so,Ra=zi,oa=Na;var hs=Zs(Fn).attr("pointer-events","none"),Gs=hs.selectAll(".overlay").attr("cursor",Qc[mr]);if(Cn.touches)Au.moved=ts,Au.ended=Sl;else{var ou=Zs(Cn.view).on("mousemove.brush",ts,!0).on("mouseup.brush",Sl,!0);ne&&ou.on("keydown.brush",uc,!0).on("keyup.brush",Dl,!0),Ys(Cn.view)}Ue.call(Fn),Au.start(Cn,hr.name);function ts(xu){for(const nc of xu.changedTouches||[xu])for(const Uf of ps)Uf.identifier===nc.identifier&&(Uf.cur=pn(nc,Fn));if(zo&&!ss&&!Xs&&ps.length===1){const nc=ps[0];Gc(nc.cur[0]-nc[0])>Gc(nc.cur[1]-nc[1])?Xs=!0:ss=!0}for(const nc of ps)nc.cur&&(nc[0]=nc.cur[0],nc[1]=nc.cur[1]);Zo=!0,wl(xu),Wu(xu)}function Wu(xu){const nc=ps[0],Uf=nc.point0;var Tf;switch(fo=nc[0]-Uf[0],Ro=nc[1]-Uf[1],hr){case rc:case Fl:{ar&&(fo=$l(io-ga,Ml(Ii-zi,fo)),ba=ga+fo,Ra=zi+fo),qr&&(Ro=$l(wo-so,Ml(Vi-Na,Ro)),Rr=so+Ro,oa=Na+Ro);break}case Ic:{ps[1]?(ar&&(ba=$l(io,Ml(Ii,ps[0][0])),Ra=$l(io,Ml(Ii,ps[1][0])),ar=1),qr&&(Rr=$l(wo,Ml(Vi,ps[0][1])),oa=$l(wo,Ml(Vi,ps[1][1])),qr=1)):(ar<0?(fo=$l(io-ga,Ml(Ii-ga,fo)),ba=ga+fo,Ra=zi):ar>0&&(fo=$l(io-zi,Ml(Ii-zi,fo)),ba=ga,Ra=zi+fo),qr<0?(Ro=$l(wo-so,Ml(Vi-so,Ro)),Rr=so+Ro,oa=Na):qr>0&&(Ro=$l(wo-Na,Ml(Vi-Na,Ro)),Rr=so,oa=Na+Ro));break}case kl:{ar&&(ba=$l(io,Ml(Ii,ga-fo*ar)),Ra=$l(io,Ml(Ii,zi+fo*ar))),qr&&(Rr=$l(wo,Ml(Vi,so-Ro*qr)),oa=$l(wo,Ml(Vi,Na+Ro*qr)));break}}Ra<ba&&(ar*=-1,Tf=ga,ga=zi,zi=Tf,Tf=ba,ba=Ra,Ra=Tf,mr in sc&&Gs.attr("cursor",Qc[mr=sc[mr]])),oa<Rr&&(qr*=-1,Tf=so,so=Na,Na=Tf,Tf=Rr,Rr=oa,oa=Tf,mr in ul&&Gs.attr("cursor",Qc[mr=ul[mr]])),Di.selection&&(ya=Di.selection),ss&&(ba=ya[0][0],Ra=ya[1][0]),Xs&&(Rr=ya[0][1],oa=ya[1][1]),(ya[0][0]!==ba||ya[0][1]!==Rr||ya[1][0]!==Ra||ya[1][1]!==oa)&&(Di.selection=[[ba,Rr],[Ra,oa]],Ue.call(Fn),Au.brush(xu,hr.name))}function Sl(xu){if(Nl(xu),xu.touches){if(xu.touches.length)return;Ie&&clearTimeout(Ie),Ie=setTimeout(function(){Ie=null},500)}else Hu(xu.view,Zo),ou.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);hs.attr("pointer-events","all"),Gs.attr("cursor",Qc.overlay),Di.selection&&(ya=Di.selection),ic(ya)&&(Di.selection=null,Ue.call(Fn)),Au.end(xu,hr.name)}function uc(xu){switch(xu.keyCode){case 16:{zo=ar&&qr;break}case 18:{hr===Ic&&(ar&&(zi=Ra-fo*ar,ga=ba+fo*ar),qr&&(Na=oa-Ro*qr,so=Rr+Ro*qr),hr=kl,Wu(xu));break}case 32:{(hr===Ic||hr===kl)&&(ar<0?zi=Ra-fo:ar>0&&(ga=ba-fo),qr<0?Na=oa-Ro:qr>0&&(so=Rr-Ro),hr=rc,Gs.attr("cursor",Qc.selection),Wu(xu));break}default:return}wl(xu)}function Dl(xu){switch(xu.keyCode){case 16:{zo&&(ss=Xs=zo=!1,Wu(xu));break}case 18:{hr===kl&&(ar<0?zi=Ra:ar>0&&(ga=ba),qr<0?Na=oa:qr>0&&(so=Rr),hr=Ic,Wu(xu));break}case 32:{hr===rc&&(xu.altKey?(ar&&(zi=Ra-fo*ar,ga=ba+fo*ar),qr&&(Na=oa-Ro*qr,so=Rr+Ro*qr),hr=kl):(ar<0?zi=Ra:ar>0&&(ga=ba),qr<0?Na=oa:qr>0&&(so=Rr),hr=Ic),Gs.attr("cursor",Qc[mr]),Wu(xu));break}default:return}wl(xu)}}function Jt(Cn){dt(this,arguments).moved(Cn)}function Un(Cn){dt(this,arguments).ended(Cn)}function Pn(){var Cn=this.__brush||{selection:null};return Cn.extent=tf(O.apply(this,arguments)),Cn.dim=m,Cn}return Qe.extent=function(Cn){return arguments.length?(O=typeof Cn=="function"?Cn:hc(tf(Cn)),Qe):O},Qe.filter=function(Cn){return arguments.length?(M=typeof Cn=="function"?Cn:hc(!!Cn),Qe):M},Qe.touchable=function(Cn){return arguments.length?(U=typeof Cn=="function"?Cn:hc(!!Cn),Qe):U},Qe.handleSize=function(Cn){return arguments.length?(xe=+Cn,Qe):xe},Qe.keyModifiers=function(Cn){return arguments.length?(ne=!!Cn,Qe):ne},Qe.on=function(){var Cn=de.on.apply(de,arguments);return Cn===de?Qe:Cn},Qe}var Wl=Math.abs,dc=Math.cos,Bl=Math.sin,Pl=Math.PI,Ll=Pl/2,Oc=Pl*2,kc=Math.max,sf=1e-12;function Bc(m,O){return Array.from({length:O-m},(M,U)=>m+U)}function Ef(m){return function(O,M){return m(O.source.value+O.target.value,M.source.value+M.target.value)}}function Sf(){return xc(!1,!1)}function bc(){return xc(!1,!0)}function yf(){return xc(!0,!1)}function xc(m,O){var M=0,U=null,ne=null,de=null;function xe(Ie){var Qe=Ie.length,Ue=new Array(Qe),dt=Bc(0,Qe),$t=new Array(Qe*Qe),Ot=new Array(Qe),Jt=0,Un;Ie=Float64Array.from({length:Qe*Qe},O?(Pn,Cn)=>Ie[Cn%Qe][Cn/Qe|0]:(Pn,Cn)=>Ie[Cn/Qe|0][Cn%Qe]);for(let Pn=0;Pn<Qe;++Pn){let Cn=0;for(let Fn=0;Fn<Qe;++Fn)Cn+=Ie[Pn*Qe+Fn]+m*Ie[Fn*Qe+Pn];Jt+=Ue[Pn]=Cn}Jt=kc(0,Oc-M*Qe)/Jt,Un=Jt?M:Oc/Qe;{let Pn=0;U&&dt.sort((Cn,Fn)=>U(Ue[Cn],Ue[Fn]));for(const Cn of dt){const Fn=Pn;if(m){const mr=Bc(~Qe+1,Qe).filter(hr=>hr<0?Ie[~hr*Qe+Cn]:Ie[Cn*Qe+hr]);ne&&mr.sort((hr,ar)=>ne(hr<0?-Ie[~hr*Qe+Cn]:Ie[Cn*Qe+hr],ar<0?-Ie[~ar*Qe+Cn]:Ie[Cn*Qe+ar]));for(const hr of mr)if(hr<0){const ar=$t[~hr*Qe+Cn]||($t[~hr*Qe+Cn]={source:null,target:null});ar.target={index:Cn,startAngle:Pn,endAngle:Pn+=Ie[~hr*Qe+Cn]*Jt,value:Ie[~hr*Qe+Cn]}}else{const ar=$t[Cn*Qe+hr]||($t[Cn*Qe+hr]={source:null,target:null});ar.source={index:Cn,startAngle:Pn,endAngle:Pn+=Ie[Cn*Qe+hr]*Jt,value:Ie[Cn*Qe+hr]}}Ot[Cn]={index:Cn,startAngle:Fn,endAngle:Pn,value:Ue[Cn]}}else{const mr=Bc(0,Qe).filter(hr=>Ie[Cn*Qe+hr]||Ie[hr*Qe+Cn]);ne&&mr.sort((hr,ar)=>ne(Ie[Cn*Qe+hr],Ie[Cn*Qe+ar]));for(const hr of mr){let ar;if(Cn<hr?(ar=$t[Cn*Qe+hr]||($t[Cn*Qe+hr]={source:null,target:null}),ar.source={index:Cn,startAngle:Pn,endAngle:Pn+=Ie[Cn*Qe+hr]*Jt,value:Ie[Cn*Qe+hr]}):(ar=$t[hr*Qe+Cn]||($t[hr*Qe+Cn]={source:null,target:null}),ar.target={index:Cn,startAngle:Pn,endAngle:Pn+=Ie[Cn*Qe+hr]*Jt,value:Ie[Cn*Qe+hr]},Cn===hr&&(ar.source=ar.target)),ar.source&&ar.target&&ar.source.value<ar.target.value){const qr=ar.source;ar.source=ar.target,ar.target=qr}}Ot[Cn]={index:Cn,startAngle:Fn,endAngle:Pn,value:Ue[Cn]}}Pn+=Un}}return $t=Object.values($t),$t.groups=Ot,de?$t.sort(de):$t}return xe.padAngle=function(Ie){return arguments.length?(M=kc(0,Ie),xe):M},xe.sortGroups=function(Ie){return arguments.length?(U=Ie,xe):U},xe.sortSubgroups=function(Ie){return arguments.length?(ne=Ie,xe):ne},xe.sortChords=function(Ie){return arguments.length?(Ie==null?de=null:(de=Ef(Ie))._=Ie,xe):de&&de._},xe}const Mf=Math.PI,Bu=2*Mf,vl=1e-6,Qu=Bu-vl;function Vl(m){this._+=m[0];for(let O=1,M=m.length;O<M;++O)this._+=arguments[O]+m[O]}function Ul(m){let O=Math.floor(m);if(!(O>=0))throw new Error(`invalid digits: ${m}`);if(O>15)return Vl;const M=10**O;return function(U){this._+=U[0];for(let ne=1,de=U.length;ne<de;++ne)this._+=Math.round(arguments[ne]*M)/M+U[ne]}}class gs{constructor(O){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=O==null?Vl:Ul(O)}moveTo(O,M){this._append`M${this._x0=this._x1=+O},${this._y0=this._y1=+M}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(O,M){this._append`L${this._x1=+O},${this._y1=+M}`}quadraticCurveTo(O,M,U,ne){this._append`Q${+O},${+M},${this._x1=+U},${this._y1=+ne}`}bezierCurveTo(O,M,U,ne,de,xe){this._append`C${+O},${+M},${+U},${+ne},${this._x1=+de},${this._y1=+xe}`}arcTo(O,M,U,ne,de){if(O=+O,M=+M,U=+U,ne=+ne,de=+de,de<0)throw new Error(`negative radius: ${de}`);let xe=this._x1,Ie=this._y1,Qe=U-O,Ue=ne-M,dt=xe-O,$t=Ie-M,Ot=dt*dt+$t*$t;if(this._x1===null)this._append`M${this._x1=O},${this._y1=M}`;else if(Ot>vl)if(!(Math.abs($t*Qe-Ue*dt)>vl)||!de)this._append`L${this._x1=O},${this._y1=M}`;else{let Jt=U-xe,Un=ne-Ie,Pn=Qe*Qe+Ue*Ue,Cn=Jt*Jt+Un*Un,Fn=Math.sqrt(Pn),mr=Math.sqrt(Ot),hr=de*Math.tan((Mf-Math.acos((Pn+Ot-Cn)/(2*Fn*mr)))/2),ar=hr/mr,qr=hr/Fn;Math.abs(ar-1)>vl&&this._append`L${O+ar*dt},${M+ar*$t}`,this._append`A${de},${de},0,0,${+($t*Jt>dt*Un)},${this._x1=O+qr*Qe},${this._y1=M+qr*Ue}`}}arc(O,M,U,ne,de,xe){if(O=+O,M=+M,U=+U,xe=!!xe,U<0)throw new Error(`negative radius: ${U}`);let Ie=U*Math.cos(ne),Qe=U*Math.sin(ne),Ue=O+Ie,dt=M+Qe,$t=1^xe,Ot=xe?ne-de:de-ne;this._x1===null?this._append`M${Ue},${dt}`:(Math.abs(this._x1-Ue)>vl||Math.abs(this._y1-dt)>vl)&&this._append`L${Ue},${dt}`,U&&(Ot<0&&(Ot=Ot%Bu+Bu),Ot>Qu?this._append`A${U},${U},0,1,${$t},${O-Ie},${M-Qe}A${U},${U},0,1,${$t},${this._x1=Ue},${this._y1=dt}`:Ot>vl&&this._append`A${U},${U},0,${+(Ot>=Mf)},${$t},${this._x1=O+U*Math.cos(de)},${this._y1=M+U*Math.sin(de)}`)}rect(O,M,U,ne){this._append`M${this._x0=this._x1=+O},${this._y0=this._y1=+M}h${U=+U}v${+ne}h${-U}Z`}toString(){return this._}}function pc(){return new gs}pc.prototype=gs.prototype;function Hc(m=3){return new gs(+m)}var bf=Array.prototype.slice;function Kc(m){return function(){return m}}function sd(m){return m.source}function Ed(m){return m.target}function Jc(m){return m.radius}function zs(m){return m.startAngle}function Of(m){return m.endAngle}function nf(){return 0}function df(){return 10}function Wf(m){var O=sd,M=Ed,U=Jc,ne=Jc,de=zs,xe=Of,Ie=nf,Qe=null;function Ue(){var dt,$t=O.apply(this,arguments),Ot=M.apply(this,arguments),Jt=Ie.apply(this,arguments)/2,Un=bf.call(arguments),Pn=+U.apply(this,(Un[0]=$t,Un)),Cn=de.apply(this,Un)-Ll,Fn=xe.apply(this,Un)-Ll,mr=+ne.apply(this,(Un[0]=Ot,Un)),hr=de.apply(this,Un)-Ll,ar=xe.apply(this,Un)-Ll;if(Qe||(Qe=dt=pc()),Jt>sf&&(Wl(Fn-Cn)>Jt*2+sf?Fn>Cn?(Cn+=Jt,Fn-=Jt):(Cn-=Jt,Fn+=Jt):Cn=Fn=(Cn+Fn)/2,Wl(ar-hr)>Jt*2+sf?ar>hr?(hr+=Jt,ar-=Jt):(hr-=Jt,ar+=Jt):hr=ar=(hr+ar)/2),Qe.moveTo(Pn*dc(Cn),Pn*Bl(Cn)),Qe.arc(0,0,Pn,Cn,Fn),Cn!==hr||Fn!==ar)if(m){var qr=+m.apply(this,arguments),Di=mr-qr,Xi=(hr+ar)/2;Qe.quadraticCurveTo(0,0,Di*dc(hr),Di*Bl(hr)),Qe.lineTo(mr*dc(Xi),mr*Bl(Xi)),Qe.lineTo(Di*dc(ar),Di*Bl(ar))}else Qe.quadraticCurveTo(0,0,mr*dc(hr),mr*Bl(hr)),Qe.arc(0,0,mr,hr,ar);if(Qe.quadraticCurveTo(0,0,Pn*dc(Cn),Pn*Bl(Cn)),Qe.closePath(),dt)return Qe=null,dt+""||null}return m&&(Ue.headRadius=function(dt){return arguments.length?(m=typeof dt=="function"?dt:Kc(+dt),Ue):m}),Ue.radius=function(dt){return arguments.length?(U=ne=typeof dt=="function"?dt:Kc(+dt),Ue):U},Ue.sourceRadius=function(dt){return arguments.length?(U=typeof dt=="function"?dt:Kc(+dt),Ue):U},Ue.targetRadius=function(dt){return arguments.length?(ne=typeof dt=="function"?dt:Kc(+dt),Ue):ne},Ue.startAngle=function(dt){return arguments.length?(de=typeof dt=="function"?dt:Kc(+dt),Ue):de},Ue.endAngle=function(dt){return arguments.length?(xe=typeof dt=="function"?dt:Kc(+dt),Ue):xe},Ue.padAngle=function(dt){return arguments.length?(Ie=typeof dt=="function"?dt:Kc(+dt),Ue):Ie},Ue.source=function(dt){return arguments.length?(O=dt,Ue):O},Ue.target=function(dt){return arguments.length?(M=dt,Ue):M},Ue.context=function(dt){return arguments.length?(Qe=dt??null,Ue):Qe},Ue}function td(){return Wf()}function _f(){return Wf(df)}var ff=t(28858),Lf=t(33086);const Ec=18,Tc=.96422,md=1,Vc=.82521,$c=4/29,gc=6/29,qc=3*gc*gc,If=gc*gc*gc;function Dr(m){if(m instanceof Zi)return new Zi(m.l,m.a,m.b,m.opacity);if(m instanceof Cu)return Iu(m);m instanceof Zu.Ss||(m=(0,Zu.SU)(m));var O=xo(m.r),M=xo(m.g),U=xo(m.b),ne=Ta((.2225045*O+.7168786*M+.0606169*U)/md),de,xe;return O===M&&M===U?de=xe=ne:(de=Ta((.4360747*O+.3850649*M+.1430804*U)/Tc),xe=Ta((.0139322*O+.0971045*M+.7141733*U)/Vc)),new Zi(116*ne-16,500*(de-ne),200*(ne-xe),m.opacity)}function pr(m,O){return new Zi(m,0,0,O??1)}function Mi(m,O,M,U){return arguments.length===1?Dr(m):new Zi(m,O,M,U??1)}function Zi(m,O,M,U){this.l=+m,this.a=+O,this.b=+M,this.opacity=+U}(0,ff.Z)(Zi,Mi,(0,ff.l)(Zu.Il,{brighter(m){return new Zi(this.l+Ec*(m??1),this.a,this.b,this.opacity)},darker(m){return new Zi(this.l-Ec*(m??1),this.a,this.b,this.opacity)},rgb(){var m=(this.l+16)/116,O=isNaN(this.a)?m:m+this.a/500,M=isNaN(this.b)?m:m-this.b/200;return O=Tc*Oo(O),m=md*Oo(m),M=Vc*Oo(M),new Zu.Ss(No(3.1338561*O-1.6168667*m-.4906146*M),No(-.9787684*O+1.9161415*m+.033454*M),No(.0719453*O-.2289914*m+1.4052427*M),this.opacity)}}));function Ta(m){return m>If?Math.pow(m,1/3):m/qc+$c}function Oo(m){return m>gc?m*m*m:qc*(m-$c)}function No(m){return 255*(m<=.0031308?12.92*m:1.055*Math.pow(m,1/2.4)-.055)}function xo(m){return(m/=255)<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)}function Ls(m){if(m instanceof Cu)return new Cu(m.h,m.c,m.l,m.opacity);if(m instanceof Zi||(m=Dr(m)),m.a===0&&m.b===0)return new Cu(NaN,0<m.l&&m.l<100?0:NaN,m.l,m.opacity);var O=Math.atan2(m.b,m.a)*Lf.R;return new Cu(O<0?O+360:O,Math.sqrt(m.a*m.a+m.b*m.b),m.l,m.opacity)}function Fs(m,O,M,U){return arguments.length===1?Ls(m):new Cu(M,O,m,U??1)}function As(m,O,M,U){return arguments.length===1?Ls(m):new Cu(m,O,M,U??1)}function Cu(m,O,M,U){this.h=+m,this.c=+O,this.l=+M,this.opacity=+U}function Iu(m){if(isNaN(m.h))return new Zi(m.l,0,0,m.opacity);var O=m.h*Lf.u;return new Zi(m.l,Math.cos(O)*m.c,Math.sin(O)*m.c,m.opacity)}(0,ff.Z)(Cu,As,(0,ff.l)(Zu.Il,{brighter(m){return new Cu(this.h,this.c,this.l+Ec*(m??1),this.opacity)},darker(m){return new Cu(this.h,this.c,this.l-Ec*(m??1),this.opacity)},rgb(){return Iu(this).rgb()}}));var Tl=t(27006),Du=Array.prototype,cl=Du.slice;function tl(m,O){return m-O}function Zl(m){for(var O=0,M=m.length,U=m[M-1][1]*m[0][0]-m[M-1][0]*m[0][1];++O<M;)U+=m[O-1][1]*m[O][0]-m[O-1][0]*m[O][1];return U}const Jl=m=>()=>m;function Fe(m,O){for(var M=-1,U=O.length,ne;++M<U;)if(ne=He(m,O[M]))return ne;return 0}function He(m,O){for(var M=O[0],U=O[1],ne=-1,de=0,xe=m.length,Ie=xe-1;de<xe;Ie=de++){var Qe=m[de],Ue=Qe[0],dt=Qe[1],$t=m[Ie],Ot=$t[0],Jt=$t[1];if(Dt(Qe,$t,O))return 0;dt>U!=Jt>U&&M<(Ot-Ue)*(U-dt)/(Jt-dt)+Ue&&(ne=-ne)}return ne}function Dt(m,O,M){var U;return gn(m,O,M)&&Xn(m[U=+(m[0]===O[0])],M[U],O[U])}function gn(m,O,M){return(O[0]-m[0])*(M[1]-m[1])===(M[0]-m[0])*(O[1]-m[1])}function Xn(m,O,M){return m<=O&&O<=M||M<=O&&O<=m}function cr(){}var jr=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Hr(){var m=1,O=1,M=ut,U=Qe;function ne(Ue){var dt=M(Ue);if(Array.isArray(dt))dt=dt.slice().sort(tl);else{const $t=J(Ue,sa);for(dt=Oe(...ct($t[0],$t[1],dt),dt);dt[dt.length-1]>=$t[1];)dt.pop();for(;dt[1]<$t[0];)dt.shift()}return dt.map($t=>de(Ue,$t))}function de(Ue,dt){const $t=dt==null?NaN:+dt;if(isNaN($t))throw new Error(`invalid value: ${dt}`);var Ot=[],Jt=[];return xe(Ue,$t,function(Un){U(Un,Ue,$t),Zl(Un)>0?Ot.push([Un]):Jt.push(Un)}),Jt.forEach(function(Un){for(var Pn=0,Cn=Ot.length,Fn;Pn<Cn;++Pn)if(Fe((Fn=Ot[Pn])[0],Un)!==-1){Fn.push(Un);return}}),{type:"MultiPolygon",value:dt,coordinates:Ot}}function xe(Ue,dt,$t){var Ot=new Array,Jt=new Array,Un,Pn,Cn,Fn,mr,hr;for(Un=Pn=-1,Fn=Ia(Ue[0],dt),jr[Fn<<1].forEach(ar);++Un<m-1;)Cn=Fn,Fn=Ia(Ue[Un+1],dt),jr[Cn|Fn<<1].forEach(ar);for(jr[Fn<<0].forEach(ar);++Pn<O-1;){for(Un=-1,Fn=Ia(Ue[Pn*m+m],dt),mr=Ia(Ue[Pn*m],dt),jr[Fn<<1|mr<<2].forEach(ar);++Un<m-1;)Cn=Fn,Fn=Ia(Ue[Pn*m+m+Un+1],dt),hr=mr,mr=Ia(Ue[Pn*m+Un+1],dt),jr[Cn|Fn<<1|mr<<2|hr<<3].forEach(ar);jr[Fn|mr<<3].forEach(ar)}for(Un=-1,mr=Ue[Pn*m]>=dt,jr[mr<<2].forEach(ar);++Un<m-1;)hr=mr,mr=Ia(Ue[Pn*m+Un+1],dt),jr[mr<<2|hr<<3].forEach(ar);jr[mr<<3].forEach(ar);function ar(qr){var Di=[qr[0][0]+Un,qr[0][1]+Pn],Xi=[qr[1][0]+Un,qr[1][1]+Pn],ya=Ie(Di),io=Ie(Xi),ga,ba;(ga=Jt[ya])?(ba=Ot[io])?(delete Jt[ga.end],delete Ot[ba.start],ga===ba?(ga.ring.push(Xi),$t(ga.ring)):Ot[ga.start]=Jt[ba.end]={start:ga.start,end:ba.end,ring:ga.ring.concat(ba.ring)}):(delete Jt[ga.end],ga.ring.push(Xi),Jt[ga.end=io]=ga):(ga=Ot[io])?(ba=Jt[ya])?(delete Ot[ga.start],delete Jt[ba.end],ga===ba?(ga.ring.push(Xi),$t(ga.ring)):Ot[ba.start]=Jt[ga.end]={start:ba.start,end:ga.end,ring:ba.ring.concat(ga.ring)}):(delete Ot[ga.start],ga.ring.unshift(Di),Ot[ga.start=ya]=ga):Ot[ya]=Jt[io]={start:ya,end:io,ring:[Di,Xi]}}}function Ie(Ue){return Ue[0]*2+Ue[1]*(m+1)*4}function Qe(Ue,dt,$t){Ue.forEach(function(Ot){var Jt=Ot[0],Un=Ot[1],Pn=Jt|0,Cn=Un|0,Fn=Aa(dt[Cn*m+Pn]);Jt>0&&Jt<m&&Pn===Jt&&(Ot[0]=pa(Jt,Aa(dt[Cn*m+Pn-1]),Fn,$t)),Un>0&&Un<O&&Cn===Un&&(Ot[1]=pa(Un,Aa(dt[(Cn-1)*m+Pn]),Fn,$t))})}return ne.contour=de,ne.size=function(Ue){if(!arguments.length)return[m,O];var dt=Math.floor(Ue[0]),$t=Math.floor(Ue[1]);if(!(dt>=0&&$t>=0))throw new Error("invalid size");return m=dt,O=$t,ne},ne.thresholds=function(Ue){return arguments.length?(M=typeof Ue=="function"?Ue:Array.isArray(Ue)?Jl(cl.call(Ue)):Jl(Ue),ne):M},ne.smooth=function(Ue){return arguments.length?(U=Ue?Qe:cr,ne):U===Qe},ne}function sa(m){return isFinite(m)?m:NaN}function Ia(m,O){return m==null?!1:+m>=O}function Aa(m){return m==null||isNaN(m=+m)?-1/0:m}function pa(m,O,M,U){const ne=U-O,de=M-O,xe=isFinite(ne)||isFinite(de)?ne/de:Math.sign(ne)/Math.sign(de);return isNaN(xe)?m:m+xe-.5}function Yi(m){return m[0]}function eo(m){return m[1]}function $o(){return 1}function Cs(){var m=Yi,O=eo,M=$o,U=960,ne=500,de=20,xe=2,Ie=de*3,Qe=U+Ie*2>>xe,Ue=ne+Ie*2>>xe,dt=Jl(20);function $t(mr){var hr=new Float32Array(Qe*Ue),ar=Math.pow(2,-xe),qr=-1;for(const so of mr){var Di=(m(so,++qr,mr)+Ie)*ar,Xi=(O(so,qr,mr)+Ie)*ar,ya=+M(so,qr,mr);if(ya&&Di>=0&&Di<Qe&&Xi>=0&&Xi<Ue){var io=Math.floor(Di),ga=Math.floor(Xi),ba=Di-io-.5,wo=Xi-ga-.5;hr[io+ga*Qe]+=(1-ba)*(1-wo)*ya,hr[io+1+ga*Qe]+=ba*(1-wo)*ya,hr[io+1+(ga+1)*Qe]+=ba*wo*ya,hr[io+(ga+1)*Qe]+=(1-ba)*wo*ya}}return E({data:hr,width:Qe,height:Ue},de*ar),hr}function Ot(mr){var hr=$t(mr),ar=dt(hr),qr=Math.pow(2,2*xe);return Array.isArray(ar)||(ar=Oe(Number.MIN_VALUE,mt(hr)/qr,ar)),Hr().size([Qe,Ue]).thresholds(ar.map(Di=>Di*qr))(hr).map((Di,Xi)=>(Di.value=+ar[Xi],Jt(Di)))}Ot.contours=function(mr){var hr=$t(mr),ar=Hr().size([Qe,Ue]),qr=Math.pow(2,2*xe),Di=Xi=>{Xi=+Xi;var ya=Jt(ar.contour(hr,Xi*qr));return ya.value=Xi,ya};return Object.defineProperty(Di,"max",{get:()=>mt(hr)/qr}),Di};function Jt(mr){return mr.coordinates.forEach(Un),mr}function Un(mr){mr.forEach(Pn)}function Pn(mr){mr.forEach(Cn)}function Cn(mr){mr[0]=mr[0]*Math.pow(2,xe)-Ie,mr[1]=mr[1]*Math.pow(2,xe)-Ie}function Fn(){return Ie=de*3,Qe=U+Ie*2>>xe,Ue=ne+Ie*2>>xe,Ot}return Ot.x=function(mr){return arguments.length?(m=typeof mr=="function"?mr:Jl(+mr),Ot):m},Ot.y=function(mr){return arguments.length?(O=typeof mr=="function"?mr:Jl(+mr),Ot):O},Ot.weight=function(mr){return arguments.length?(M=typeof mr=="function"?mr:Jl(+mr),Ot):M},Ot.size=function(mr){if(!arguments.length)return[U,ne];var hr=+mr[0],ar=+mr[1];if(!(hr>=0&&ar>=0))throw new Error("invalid size");return U=hr,ne=ar,Fn()},Ot.cellSize=function(mr){if(!arguments.length)return 1<<xe;if(!((mr=+mr)>=1))throw new Error("invalid cell size");return xe=Math.floor(Math.log(mr)/Math.LN2),Fn()},Ot.thresholds=function(mr){return arguments.length?(dt=typeof mr=="function"?mr:Array.isArray(mr)?Jl(cl.call(mr)):Jl(mr),Ot):dt},Ot.bandwidth=function(mr){if(!arguments.length)return Math.sqrt(de*(de+1));if(!((mr=+mr)>=0))throw new Error("invalid bandwidth");return de=(Math.sqrt(4*mr*mr+1)-1)/2,Fn()},Ot}const vs=11102230246251565e-32,Rs=134217729,Eu=(3+8*vs)*vs;function _u(m,O,M,U,ne){let de,xe,Ie,Qe,Ue=O[0],dt=U[0],$t=0,Ot=0;dt>Ue==dt>-Ue?(de=Ue,Ue=O[++$t]):(de=dt,dt=U[++Ot]);let Jt=0;if($t<m&&Ot<M)for(dt>Ue==dt>-Ue?(xe=Ue+de,Ie=de-(xe-Ue),Ue=O[++$t]):(xe=dt+de,Ie=de-(xe-dt),dt=U[++Ot]),de=xe,Ie!==0&&(ne[Jt++]=Ie);$t<m&&Ot<M;)dt>Ue==dt>-Ue?(xe=de+Ue,Qe=xe-de,Ie=de-(xe-Qe)+(Ue-Qe),Ue=O[++$t]):(xe=de+dt,Qe=xe-de,Ie=de-(xe-Qe)+(dt-Qe),dt=U[++Ot]),de=xe,Ie!==0&&(ne[Jt++]=Ie);for(;$t<m;)xe=de+Ue,Qe=xe-de,Ie=de-(xe-Qe)+(Ue-Qe),Ue=O[++$t],de=xe,Ie!==0&&(ne[Jt++]=Ie);for(;Ot<M;)xe=de+dt,Qe=xe-de,Ie=de-(xe-Qe)+(dt-Qe),dt=U[++Ot],de=xe,Ie!==0&&(ne[Jt++]=Ie);return(de!==0||Jt===0)&&(ne[Jt++]=de),Jt}function ju(m,O,M,U,ne,de,xe,Ie){return _u(_u(m,O,M,U,xe),xe,ne,de,Ie)}function Cl(m,O,M,U){let ne,de,xe,Ie,Qe,Ue,dt,$t,Ot,Jt,Un;dt=Rs*M,Jt=dt-(dt-M),Un=M-Jt;let Pn=O[0];ne=Pn*M,dt=Rs*Pn,$t=dt-(dt-Pn),Ot=Pn-$t,xe=Ot*Un-(ne-$t*Jt-Ot*Jt-$t*Un);let Cn=0;xe!==0&&(U[Cn++]=xe);for(let Fn=1;Fn<m;Fn++)Pn=O[Fn],Ie=Pn*M,dt=Rs*Pn,$t=dt-(dt-Pn),Ot=Pn-$t,Qe=Ot*Un-(Ie-$t*Jt-Ot*Jt-$t*Un),de=ne+Qe,Ue=de-ne,xe=ne-(de-Ue)+(Qe-Ue),xe!==0&&(U[Cn++]=xe),ne=Ie+de,xe=de-(ne-Ie),xe!==0&&(U[Cn++]=xe);return(ne!==0||Cn===0)&&(U[Cn++]=ne),Cn}function Yl(m,O){for(let M=0;M<m;M++)O[M]=-O[M];return m}function cu(m,O){let M=O[0];for(let U=1;U<m;U++)M+=O[U];return M}function bs(m){return new Float64Array(m)}const wc=(3+16*vs)*vs,Zc=(2+12*vs)*vs,Af=(9+64*vs)*vs*vs,Yc=bs(4),Yf=bs(8),Xf=bs(12),ud=bs(16),rf=bs(4);function th(m,O,M,U,ne,de,xe){let Ie,Qe,Ue,dt,$t,Ot,Jt,Un,Pn,Cn,Fn,mr,hr,ar,qr,Di,Xi,ya;const io=m-ne,ga=M-ne,ba=O-de,wo=U-de;ar=io*wo,Ot=Rs*io,Jt=Ot-(Ot-io),Un=io-Jt,Ot=Rs*wo,Pn=Ot-(Ot-wo),Cn=wo-Pn,qr=Un*Cn-(ar-Jt*Pn-Un*Pn-Jt*Cn),Di=ba*ga,Ot=Rs*ba,Jt=Ot-(Ot-ba),Un=ba-Jt,Ot=Rs*ga,Pn=Ot-(Ot-ga),Cn=ga-Pn,Xi=Un*Cn-(Di-Jt*Pn-Un*Pn-Jt*Cn),Fn=qr-Xi,$t=qr-Fn,Yc[0]=qr-(Fn+$t)+($t-Xi),mr=ar+Fn,$t=mr-ar,hr=ar-(mr-$t)+(Fn-$t),Fn=hr-Di,$t=hr-Fn,Yc[1]=hr-(Fn+$t)+($t-Di),ya=mr+Fn,$t=ya-mr,Yc[2]=mr-(ya-$t)+(Fn-$t),Yc[3]=ya;let so=cu(4,Yc),Rr=Zc*xe;if(so>=Rr||-so>=Rr||($t=m-io,Ie=m-(io+$t)+($t-ne),$t=M-ga,Ue=M-(ga+$t)+($t-ne),$t=O-ba,Qe=O-(ba+$t)+($t-de),$t=U-wo,dt=U-(wo+$t)+($t-de),Ie===0&&Qe===0&&Ue===0&&dt===0)||(Rr=Af*xe+Eu*Math.abs(so),so+=io*dt+wo*Ie-(ba*Ue+ga*Qe),so>=Rr||-so>=Rr))return so;ar=Ie*wo,Ot=Rs*Ie,Jt=Ot-(Ot-Ie),Un=Ie-Jt,Ot=Rs*wo,Pn=Ot-(Ot-wo),Cn=wo-Pn,qr=Un*Cn-(ar-Jt*Pn-Un*Pn-Jt*Cn),Di=Qe*ga,Ot=Rs*Qe,Jt=Ot-(Ot-Qe),Un=Qe-Jt,Ot=Rs*ga,Pn=Ot-(Ot-ga),Cn=ga-Pn,Xi=Un*Cn-(Di-Jt*Pn-Un*Pn-Jt*Cn),Fn=qr-Xi,$t=qr-Fn,rf[0]=qr-(Fn+$t)+($t-Xi),mr=ar+Fn,$t=mr-ar,hr=ar-(mr-$t)+(Fn-$t),Fn=hr-Di,$t=hr-Fn,rf[1]=hr-(Fn+$t)+($t-Di),ya=mr+Fn,$t=ya-mr,rf[2]=mr-(ya-$t)+(Fn-$t),rf[3]=ya;const Ii=_u(4,Yc,4,rf,Yf);ar=io*dt,Ot=Rs*io,Jt=Ot-(Ot-io),Un=io-Jt,Ot=Rs*dt,Pn=Ot-(Ot-dt),Cn=dt-Pn,qr=Un*Cn-(ar-Jt*Pn-Un*Pn-Jt*Cn),Di=ba*Ue,Ot=Rs*ba,Jt=Ot-(Ot-ba),Un=ba-Jt,Ot=Rs*Ue,Pn=Ot-(Ot-Ue),Cn=Ue-Pn,Xi=Un*Cn-(Di-Jt*Pn-Un*Pn-Jt*Cn),Fn=qr-Xi,$t=qr-Fn,rf[0]=qr-(Fn+$t)+($t-Xi),mr=ar+Fn,$t=mr-ar,hr=ar-(mr-$t)+(Fn-$t),Fn=hr-Di,$t=hr-Fn,rf[1]=hr-(Fn+$t)+($t-Di),ya=mr+Fn,$t=ya-mr,rf[2]=mr-(ya-$t)+(Fn-$t),rf[3]=ya;const zi=_u(Ii,Yf,4,rf,Xf);ar=Ie*dt,Ot=Rs*Ie,Jt=Ot-(Ot-Ie),Un=Ie-Jt,Ot=Rs*dt,Pn=Ot-(Ot-dt),Cn=dt-Pn,qr=Un*Cn-(ar-Jt*Pn-Un*Pn-Jt*Cn),Di=Qe*Ue,Ot=Rs*Qe,Jt=Ot-(Ot-Qe),Un=Qe-Jt,Ot=Rs*Ue,Pn=Ot-(Ot-Ue),Cn=Ue-Pn,Xi=Un*Cn-(Di-Jt*Pn-Un*Pn-Jt*Cn),Fn=qr-Xi,$t=qr-Fn,rf[0]=qr-(Fn+$t)+($t-Xi),mr=ar+Fn,$t=mr-ar,hr=ar-(mr-$t)+(Fn-$t),Fn=hr-Di,$t=hr-Fn,rf[1]=hr-(Fn+$t)+($t-Di),ya=mr+Fn,$t=ya-mr,rf[2]=mr-(ya-$t)+(Fn-$t),rf[3]=ya;const Ra=_u(zi,Xf,4,rf,ud);return ud[Ra-1]}function Sd(m,O,M,U,ne,de){const xe=(O-de)*(M-ne),Ie=(m-ne)*(U-de),Qe=xe-Ie;if(xe===0||Ie===0||xe>0!=Ie>0)return Qe;const Ue=Math.abs(xe+Ie);return Math.abs(Qe)>=wc*Ue?Qe:-th(m,O,M,U,ne,de,Ue)}function Od(m,O,M,U,ne,de){return(O-de)*(M-ne)-(m-ne)*(U-de)}const hf=(7+56*vs)*vs,vf=(3+28*vs)*vs,Nf=(26+288*vs)*vs*vs,ld=bs(4),cd=bs(4),pf=bs(4),kd=bs(4),nd=bs(4),wf=bs(4),Df=bs(4),nh=bs(4),Bd=bs(4),xd=bs(8),Th=bs(8),Td=bs(8),Qf=bs(4),Pf=bs(8),mc=bs(8),Ac=bs(8),ef=bs(12);let gf=bs(192),zf=bs(192);function Hf(m,O,M){m=sum(m,gf,O,M,zf);const U=gf;return gf=zf,zf=U,m}function mf(m,O,M,U,ne,de,xe,Ie){let Qe,Ue,dt,$t,Ot,Jt,Un,Pn,Cn,Fn,mr,hr,ar,qr,Di,Xi;return m===0?O===0?(xe[0]=0,Ie[0]=0,1):(Xi=-O,mr=Xi*M,Ue=splitter*Xi,dt=Ue-(Ue-Xi),$t=Xi-dt,Ue=splitter*M,Ot=Ue-(Ue-M),Jt=M-Ot,xe[0]=$t*Jt-(mr-dt*Ot-$t*Ot-dt*Jt),xe[1]=mr,mr=O*ne,Ue=splitter*O,dt=Ue-(Ue-O),$t=O-dt,Ue=splitter*ne,Ot=Ue-(Ue-ne),Jt=ne-Ot,Ie[0]=$t*Jt-(mr-dt*Ot-$t*Ot-dt*Jt),Ie[1]=mr,2):O===0?(mr=m*U,Ue=splitter*m,dt=Ue-(Ue-m),$t=m-dt,Ue=splitter*U,Ot=Ue-(Ue-U),Jt=U-Ot,xe[0]=$t*Jt-(mr-dt*Ot-$t*Ot-dt*Jt),xe[1]=mr,Xi=-m,mr=Xi*de,Ue=splitter*Xi,dt=Ue-(Ue-Xi),$t=Xi-dt,Ue=splitter*de,Ot=Ue-(Ue-de),Jt=de-Ot,Ie[0]=$t*Jt-(mr-dt*Ot-$t*Ot-dt*Jt),Ie[1]=mr,2):(mr=m*U,Ue=splitter*m,dt=Ue-(Ue-m),$t=m-dt,Ue=splitter*U,Ot=Ue-(Ue-U),Jt=U-Ot,hr=$t*Jt-(mr-dt*Ot-$t*Ot-dt*Jt),ar=O*M,Ue=splitter*O,dt=Ue-(Ue-O),$t=O-dt,Ue=splitter*M,Ot=Ue-(Ue-M),Jt=M-Ot,qr=$t*Jt-(ar-dt*Ot-$t*Ot-dt*Jt),Un=hr-qr,Qe=hr-Un,xe[0]=hr-(Un+Qe)+(Qe-qr),Pn=mr+Un,Qe=Pn-mr,Fn=mr-(Pn-Qe)+(Un-Qe),Un=Fn-ar,Qe=Fn-Un,xe[1]=Fn-(Un+Qe)+(Qe-ar),Di=Pn+Un,Qe=Di-Pn,xe[2]=Pn-(Di-Qe)+(Un-Qe),xe[3]=Di,mr=O*ne,Ue=splitter*O,dt=Ue-(Ue-O),$t=O-dt,Ue=splitter*ne,Ot=Ue-(Ue-ne),Jt=ne-Ot,hr=$t*Jt-(mr-dt*Ot-$t*Ot-dt*Jt),ar=m*de,Ue=splitter*m,dt=Ue-(Ue-m),$t=m-dt,Ue=splitter*de,Ot=Ue-(Ue-de),Jt=de-Ot,qr=$t*Jt-(ar-dt*Ot-$t*Ot-dt*Jt),Un=hr-qr,Qe=hr-Un,Ie[0]=hr-(Un+Qe)+(Qe-qr),Pn=mr+Un,Qe=Pn-mr,Fn=mr-(Pn-Qe)+(Un-Qe),Un=Fn-ar,Qe=Fn-Un,Ie[1]=Fn-(Un+Qe)+(Qe-ar),Di=Pn+Un,Qe=Di-Pn,Ie[2]=Pn-(Di-Qe)+(Un-Qe),Ie[3]=Di,4)}function fd(m,O,M,U,ne){let de,xe,Ie,Qe,Ue,dt,$t,Ot,Jt,Un,Pn,Cn,Fn;return Pn=O*M,xe=splitter*O,Ie=xe-(xe-O),Qe=O-Ie,xe=splitter*M,Ue=xe-(xe-M),dt=M-Ue,Cn=Qe*dt-(Pn-Ie*Ue-Qe*Ue-Ie*dt),xe=splitter*U,Ue=xe-(xe-U),dt=U-Ue,$t=Cn*U,xe=splitter*Cn,Ie=xe-(xe-Cn),Qe=Cn-Ie,Qf[0]=Qe*dt-($t-Ie*Ue-Qe*Ue-Ie*dt),Ot=Pn*U,xe=splitter*Pn,Ie=xe-(xe-Pn),Qe=Pn-Ie,Un=Qe*dt-(Ot-Ie*Ue-Qe*Ue-Ie*dt),Jt=$t+Un,de=Jt-$t,Qf[1]=$t-(Jt-de)+(Un-de),Fn=Ot+Jt,Qf[2]=Jt-(Fn-Ot),Qf[3]=Fn,m=Hf(m,4,Qf),ne!==0&&(xe=splitter*ne,Ue=xe-(xe-ne),dt=ne-Ue,$t=Cn*ne,xe=splitter*Cn,Ie=xe-(xe-Cn),Qe=Cn-Ie,Qf[0]=Qe*dt-($t-Ie*Ue-Qe*Ue-Ie*dt),Ot=Pn*ne,xe=splitter*Pn,Ie=xe-(xe-Pn),Qe=Pn-Ie,Un=Qe*dt-(Ot-Ie*Ue-Qe*Ue-Ie*dt),Jt=$t+Un,de=Jt-$t,Qf[1]=$t-(Jt-de)+(Un-de),Fn=Ot+Jt,Qf[2]=Jt-(Fn-Ot),Qf[3]=Fn,m=Hf(m,4,Qf)),m}function Ad(m,O,M,U,ne,de,xe,Ie,Qe,Ue,dt,$t,Ot){let Jt,Un,Pn,Cn,Fn,mr,hr,ar,qr,Di,Xi,ya,io,ga,ba,wo,so,Rr,Ii,zi,Ra,Vi,Na,oa,fo;const Ro=m-Ue,Zo=U-Ue,zo=xe-Ue,ss=O-dt,Xs=ne-dt,ps=Ie-dt,Au=M-$t,hs=de-$t,Gs=Qe-$t;Ra=Zo*ps,ya=splitter*Zo,io=ya-(ya-Zo),ga=Zo-io,ya=splitter*ps,ba=ya-(ya-ps),wo=ps-ba,Vi=ga*wo-(Ra-io*ba-ga*ba-io*wo),Na=zo*Xs,ya=splitter*zo,io=ya-(ya-zo),ga=zo-io,ya=splitter*Xs,ba=ya-(ya-Xs),wo=Xs-ba,oa=ga*wo-(Na-io*ba-ga*ba-io*wo),so=Vi-oa,Xi=Vi-so,ld[0]=Vi-(so+Xi)+(Xi-oa),Rr=Ra+so,Xi=Rr-Ra,zi=Ra-(Rr-Xi)+(so-Xi),so=zi-Na,Xi=zi-so,ld[1]=zi-(so+Xi)+(Xi-Na),fo=Rr+so,Xi=fo-Rr,ld[2]=Rr-(fo-Xi)+(so-Xi),ld[3]=fo,Ra=zo*ss,ya=splitter*zo,io=ya-(ya-zo),ga=zo-io,ya=splitter*ss,ba=ya-(ya-ss),wo=ss-ba,Vi=ga*wo-(Ra-io*ba-ga*ba-io*wo),Na=Ro*ps,ya=splitter*Ro,io=ya-(ya-Ro),ga=Ro-io,ya=splitter*ps,ba=ya-(ya-ps),wo=ps-ba,oa=ga*wo-(Na-io*ba-ga*ba-io*wo),so=Vi-oa,Xi=Vi-so,cd[0]=Vi-(so+Xi)+(Xi-oa),Rr=Ra+so,Xi=Rr-Ra,zi=Ra-(Rr-Xi)+(so-Xi),so=zi-Na,Xi=zi-so,cd[1]=zi-(so+Xi)+(Xi-Na),fo=Rr+so,Xi=fo-Rr,cd[2]=Rr-(fo-Xi)+(so-Xi),cd[3]=fo,Ra=Ro*Xs,ya=splitter*Ro,io=ya-(ya-Ro),ga=Ro-io,ya=splitter*Xs,ba=ya-(ya-Xs),wo=Xs-ba,Vi=ga*wo-(Ra-io*ba-ga*ba-io*wo),Na=Zo*ss,ya=splitter*Zo,io=ya-(ya-Zo),ga=Zo-io,ya=splitter*ss,ba=ya-(ya-ss),wo=ss-ba,oa=ga*wo-(Na-io*ba-ga*ba-io*wo),so=Vi-oa,Xi=Vi-so,pf[0]=Vi-(so+Xi)+(Xi-oa),Rr=Ra+so,Xi=Rr-Ra,zi=Ra-(Rr-Xi)+(so-Xi),so=zi-Na,Xi=zi-so,pf[1]=zi-(so+Xi)+(Xi-Na),fo=Rr+so,Xi=fo-Rr,pf[2]=Rr-(fo-Xi)+(so-Xi),pf[3]=fo,Jt=sum(sum(scale(4,ld,Au,Pf),Pf,scale(4,cd,hs,mc),mc,Ac),Ac,scale(4,pf,Gs,Pf),Pf,gf);let ou=estimate(Jt,gf),ts=vf*Ot;if(ou>=ts||-ou>=ts||(Xi=m-Ro,Un=m-(Ro+Xi)+(Xi-Ue),Xi=U-Zo,Pn=U-(Zo+Xi)+(Xi-Ue),Xi=xe-zo,Cn=xe-(zo+Xi)+(Xi-Ue),Xi=O-ss,Fn=O-(ss+Xi)+(Xi-dt),Xi=ne-Xs,mr=ne-(Xs+Xi)+(Xi-dt),Xi=Ie-ps,hr=Ie-(ps+Xi)+(Xi-dt),Xi=M-Au,ar=M-(Au+Xi)+(Xi-$t),Xi=de-hs,qr=de-(hs+Xi)+(Xi-$t),Xi=Qe-Gs,Di=Qe-(Gs+Xi)+(Xi-$t),Un===0&&Pn===0&&Cn===0&&Fn===0&&mr===0&&hr===0&&ar===0&&qr===0&&Di===0)||(ts=Nf*Ot+resulterrbound*Math.abs(ou),ou+=Au*(Zo*hr+ps*Pn-(Xs*Cn+zo*mr))+ar*(Zo*ps-Xs*zo)+hs*(zo*Fn+ss*Cn-(ps*Un+Ro*hr))+qr*(zo*ss-ps*Ro)+Gs*(Ro*mr+Xs*Un-(ss*Pn+Zo*Fn))+Di*(Ro*Xs-ss*Zo),ou>=ts||-ou>=ts))return ou;const Wu=mf(Un,Fn,Zo,Xs,zo,ps,kd,nd),Sl=mf(Pn,mr,zo,ps,Ro,ss,wf,Df),uc=mf(Cn,hr,Ro,ss,Zo,Xs,nh,Bd),Dl=sum(Sl,wf,uc,Bd,xd);Jt=Hf(Jt,scale(Dl,xd,Au,Ac),Ac);const xu=sum(uc,nh,Wu,nd,Th);Jt=Hf(Jt,scale(xu,Th,hs,Ac),Ac);const nc=sum(Wu,kd,Sl,Df,Td);return Jt=Hf(Jt,scale(nc,Td,Gs,Ac),Ac),ar!==0&&(Jt=Hf(Jt,scale(4,ld,ar,ef),ef),Jt=Hf(Jt,scale(Dl,xd,ar,Ac),Ac)),qr!==0&&(Jt=Hf(Jt,scale(4,cd,qr,ef),ef),Jt=Hf(Jt,scale(xu,Th,qr,Ac),Ac)),Di!==0&&(Jt=Hf(Jt,scale(4,pf,Di,ef),ef),Jt=Hf(Jt,scale(nc,Td,Di,Ac),Ac)),Un!==0&&(mr!==0&&(Jt=fd(Jt,Un,mr,Gs,Di)),hr!==0&&(Jt=fd(Jt,-Un,hr,hs,qr))),Pn!==0&&(hr!==0&&(Jt=fd(Jt,Pn,hr,Au,ar)),Fn!==0&&(Jt=fd(Jt,-Pn,Fn,Gs,Di))),Cn!==0&&(Fn!==0&&(Jt=fd(Jt,Cn,Fn,hs,qr)),mr!==0&&(Jt=fd(Jt,-Cn,mr,Au,ar))),gf[Jt-1]}function Ah(m,O,M,U,ne,de,xe,Ie,Qe,Ue,dt,$t){const Ot=m-Ue,Jt=U-Ue,Un=xe-Ue,Pn=O-dt,Cn=ne-dt,Fn=Ie-dt,mr=M-$t,hr=de-$t,ar=Qe-$t,qr=Jt*Fn,Di=Un*Cn,Xi=Un*Pn,ya=Ot*Fn,io=Ot*Cn,ga=Jt*Pn,ba=mr*(qr-Di)+hr*(Xi-ya)+ar*(io-ga),wo=(Math.abs(qr)+Math.abs(Di))*Math.abs(mr)+(Math.abs(Xi)+Math.abs(ya))*Math.abs(hr)+(Math.abs(io)+Math.abs(ga))*Math.abs(ar),so=hf*wo;return ba>so||-ba>so?ba:Ad(m,O,M,U,ne,de,xe,Ie,Qe,Ue,dt,$t,wo)}function Rh(m,O,M,U,ne,de,xe,Ie,Qe,Ue,dt,$t){const Ot=m-Ue,Jt=U-Ue,Un=xe-Ue,Pn=O-dt,Cn=ne-dt,Fn=Ie-dt,mr=M-$t,hr=de-$t,ar=Qe-$t;return Ot*(Cn*ar-hr*Fn)+Jt*(Fn*mr-ar*Pn)+Un*(Pn*hr-mr*Cn)}const lh=(10+96*vs)*vs,Kf=(4+48*vs)*vs,Mh=(44+576*vs)*vs*vs,rd=bs(4),Ff=bs(4),yd=bs(4),ra=bs(4),_o=bs(4),es=bs(4),as=bs(4),Bs=bs(4),qs=bs(8),gu=bs(8),vu=bs(8),ru=bs(8),Ru=bs(8),rl=bs(8),fl=bs(8),pl=bs(8),wu=bs(8),Vu=bs(4),zl=bs(4),Ze=bs(4),ge=bs(8),et=bs(16),Ln=bs(16),zr=bs(16),Ji=bs(32),Ja=bs(32),lo=bs(48),To=bs(64);let Xo=bs(1152),mu=bs(1152);function ws(m,O,M){m=sum(m,Xo,O,M,mu);const U=Xo;return Xo=mu,mu=U,m}function Uu(m,O,M,U,ne,de,xe,Ie,Qe){let Ue,dt,$t,Ot,Jt,Un,Pn,Cn,Fn,mr,hr,ar,qr,Di,Xi,ya,io,ga,ba,wo,so,Rr,Ii,zi,Ra,Vi,Na,oa,fo,Ro,Zo,zo,ss,Xs,ps;const Au=m-xe,hs=M-xe,Gs=ne-xe,ou=O-Ie,ts=U-Ie,Wu=de-Ie;Zo=hs*Wu,Ii=splitter*hs,zi=Ii-(Ii-hs),Ra=hs-zi,Ii=splitter*Wu,Vi=Ii-(Ii-Wu),Na=Wu-Vi,zo=Ra*Na-(Zo-zi*Vi-Ra*Vi-zi*Na),ss=Gs*ts,Ii=splitter*Gs,zi=Ii-(Ii-Gs),Ra=Gs-zi,Ii=splitter*ts,Vi=Ii-(Ii-ts),Na=ts-Vi,Xs=Ra*Na-(ss-zi*Vi-Ra*Vi-zi*Na),oa=zo-Xs,Rr=zo-oa,rd[0]=zo-(oa+Rr)+(Rr-Xs),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro-ss,Rr=Ro-oa,rd[1]=Ro-(oa+Rr)+(Rr-ss),ps=fo+oa,Rr=ps-fo,rd[2]=fo-(ps-Rr)+(oa-Rr),rd[3]=ps,Zo=Gs*ou,Ii=splitter*Gs,zi=Ii-(Ii-Gs),Ra=Gs-zi,Ii=splitter*ou,Vi=Ii-(Ii-ou),Na=ou-Vi,zo=Ra*Na-(Zo-zi*Vi-Ra*Vi-zi*Na),ss=Au*Wu,Ii=splitter*Au,zi=Ii-(Ii-Au),Ra=Au-zi,Ii=splitter*Wu,Vi=Ii-(Ii-Wu),Na=Wu-Vi,Xs=Ra*Na-(ss-zi*Vi-Ra*Vi-zi*Na),oa=zo-Xs,Rr=zo-oa,Ff[0]=zo-(oa+Rr)+(Rr-Xs),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro-ss,Rr=Ro-oa,Ff[1]=Ro-(oa+Rr)+(Rr-ss),ps=fo+oa,Rr=ps-fo,Ff[2]=fo-(ps-Rr)+(oa-Rr),Ff[3]=ps,Zo=Au*ts,Ii=splitter*Au,zi=Ii-(Ii-Au),Ra=Au-zi,Ii=splitter*ts,Vi=Ii-(Ii-ts),Na=ts-Vi,zo=Ra*Na-(Zo-zi*Vi-Ra*Vi-zi*Na),ss=hs*ou,Ii=splitter*hs,zi=Ii-(Ii-hs),Ra=hs-zi,Ii=splitter*ou,Vi=Ii-(Ii-ou),Na=ou-Vi,Xs=Ra*Na-(ss-zi*Vi-Ra*Vi-zi*Na),oa=zo-Xs,Rr=zo-oa,yd[0]=zo-(oa+Rr)+(Rr-Xs),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro-ss,Rr=Ro-oa,yd[1]=Ro-(oa+Rr)+(Rr-ss),ps=fo+oa,Rr=ps-fo,yd[2]=fo-(ps-Rr)+(oa-Rr),yd[3]=ps,Ue=sum(sum(sum(scale(scale(4,rd,Au,ge),ge,Au,et),et,scale(scale(4,rd,ou,ge),ge,ou,Ln),Ln,Ji),Ji,sum(scale(scale(4,Ff,hs,ge),ge,hs,et),et,scale(scale(4,Ff,ts,ge),ge,ts,Ln),Ln,Ja),Ja,To),To,sum(scale(scale(4,yd,Gs,ge),ge,Gs,et),et,scale(scale(4,yd,Wu,ge),ge,Wu,Ln),Ln,Ji),Ji,Xo);let Sl=estimate(Ue,Xo),uc=Kf*Qe;if(Sl>=uc||-Sl>=uc||(Rr=m-Au,dt=m-(Au+Rr)+(Rr-xe),Rr=O-ou,Jt=O-(ou+Rr)+(Rr-Ie),Rr=M-hs,$t=M-(hs+Rr)+(Rr-xe),Rr=U-ts,Un=U-(ts+Rr)+(Rr-Ie),Rr=ne-Gs,Ot=ne-(Gs+Rr)+(Rr-xe),Rr=de-Wu,Pn=de-(Wu+Rr)+(Rr-Ie),dt===0&&$t===0&&Ot===0&&Jt===0&&Un===0&&Pn===0)||(uc=Mh*Qe+resulterrbound*Math.abs(Sl),Sl+=(Au*Au+ou*ou)*(hs*Pn+Wu*$t-(ts*Ot+Gs*Un))+2*(Au*dt+ou*Jt)*(hs*Wu-ts*Gs)+((hs*hs+ts*ts)*(Gs*Jt+ou*Ot-(Wu*dt+Au*Pn))+2*(hs*$t+ts*Un)*(Gs*ou-Wu*Au))+((Gs*Gs+Wu*Wu)*(Au*Un+ts*dt-(ou*$t+hs*Jt))+2*(Gs*Ot+Wu*Pn)*(Au*ts-ou*hs)),Sl>=uc||-Sl>=uc))return Sl;if(($t!==0||Un!==0||Ot!==0||Pn!==0)&&(Zo=Au*Au,Ii=splitter*Au,zi=Ii-(Ii-Au),Ra=Au-zi,zo=Ra*Ra-(Zo-zi*zi-(zi+zi)*Ra),ss=ou*ou,Ii=splitter*ou,zi=Ii-(Ii-ou),Ra=ou-zi,Xs=Ra*Ra-(ss-zi*zi-(zi+zi)*Ra),oa=zo+Xs,Rr=oa-zo,ra[0]=zo-(oa-Rr)+(Xs-Rr),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro+ss,Rr=oa-Ro,ra[1]=Ro-(oa-Rr)+(ss-Rr),ps=fo+oa,Rr=ps-fo,ra[2]=fo-(ps-Rr)+(oa-Rr),ra[3]=ps),(Ot!==0||Pn!==0||dt!==0||Jt!==0)&&(Zo=hs*hs,Ii=splitter*hs,zi=Ii-(Ii-hs),Ra=hs-zi,zo=Ra*Ra-(Zo-zi*zi-(zi+zi)*Ra),ss=ts*ts,Ii=splitter*ts,zi=Ii-(Ii-ts),Ra=ts-zi,Xs=Ra*Ra-(ss-zi*zi-(zi+zi)*Ra),oa=zo+Xs,Rr=oa-zo,_o[0]=zo-(oa-Rr)+(Xs-Rr),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro+ss,Rr=oa-Ro,_o[1]=Ro-(oa-Rr)+(ss-Rr),ps=fo+oa,Rr=ps-fo,_o[2]=fo-(ps-Rr)+(oa-Rr),_o[3]=ps),(dt!==0||Jt!==0||$t!==0||Un!==0)&&(Zo=Gs*Gs,Ii=splitter*Gs,zi=Ii-(Ii-Gs),Ra=Gs-zi,zo=Ra*Ra-(Zo-zi*zi-(zi+zi)*Ra),ss=Wu*Wu,Ii=splitter*Wu,zi=Ii-(Ii-Wu),Ra=Wu-zi,Xs=Ra*Ra-(ss-zi*zi-(zi+zi)*Ra),oa=zo+Xs,Rr=oa-zo,es[0]=zo-(oa-Rr)+(Xs-Rr),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro+ss,Rr=oa-Ro,es[1]=Ro-(oa-Rr)+(ss-Rr),ps=fo+oa,Rr=ps-fo,es[2]=fo-(ps-Rr)+(oa-Rr),es[3]=ps),dt!==0&&(Cn=scale(4,rd,dt,qs),Ue=ws(Ue,sum_three(scale(Cn,qs,2*Au,et),et,scale(scale(4,es,dt,ge),ge,ts,Ln),Ln,scale(scale(4,_o,dt,ge),ge,-Wu,zr),zr,Ji,lo),lo)),Jt!==0&&(Fn=scale(4,rd,Jt,gu),Ue=ws(Ue,sum_three(scale(Fn,gu,2*ou,et),et,scale(scale(4,_o,Jt,ge),ge,Gs,Ln),Ln,scale(scale(4,es,Jt,ge),ge,-hs,zr),zr,Ji,lo),lo)),$t!==0&&(mr=scale(4,Ff,$t,vu),Ue=ws(Ue,sum_three(scale(mr,vu,2*hs,et),et,scale(scale(4,ra,$t,ge),ge,Wu,Ln),Ln,scale(scale(4,es,$t,ge),ge,-ou,zr),zr,Ji,lo),lo)),Un!==0&&(hr=scale(4,Ff,Un,ru),Ue=ws(Ue,sum_three(scale(hr,ru,2*ts,et),et,scale(scale(4,es,Un,ge),ge,Au,Ln),Ln,scale(scale(4,ra,Un,ge),ge,-Gs,zr),zr,Ji,lo),lo)),Ot!==0&&(ar=scale(4,yd,Ot,Ru),Ue=ws(Ue,sum_three(scale(ar,Ru,2*Gs,et),et,scale(scale(4,_o,Ot,ge),ge,ou,Ln),Ln,scale(scale(4,ra,Ot,ge),ge,-ts,zr),zr,Ji,lo),lo)),Pn!==0&&(qr=scale(4,yd,Pn,rl),Ue=ws(Ue,sum_three(scale(qr,rl,2*Wu,et),et,scale(scale(4,ra,Pn,ge),ge,hs,Ln),Ln,scale(scale(4,_o,Pn,ge),ge,-Au,zr),zr,Ji,lo),lo)),dt!==0||Jt!==0){if($t!==0||Un!==0||Ot!==0||Pn!==0?(Zo=$t*Wu,Ii=splitter*$t,zi=Ii-(Ii-$t),Ra=$t-zi,Ii=splitter*Wu,Vi=Ii-(Ii-Wu),Na=Wu-Vi,zo=Ra*Na-(Zo-zi*Vi-Ra*Vi-zi*Na),ss=hs*Pn,Ii=splitter*hs,zi=Ii-(Ii-hs),Ra=hs-zi,Ii=splitter*Pn,Vi=Ii-(Ii-Pn),Na=Pn-Vi,Xs=Ra*Na-(ss-zi*Vi-Ra*Vi-zi*Na),oa=zo+Xs,Rr=oa-zo,as[0]=zo-(oa-Rr)+(Xs-Rr),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro+ss,Rr=oa-Ro,as[1]=Ro-(oa-Rr)+(ss-Rr),ps=fo+oa,Rr=ps-fo,as[2]=fo-(ps-Rr)+(oa-Rr),as[3]=ps,Zo=Ot*-ts,Ii=splitter*Ot,zi=Ii-(Ii-Ot),Ra=Ot-zi,Ii=splitter*-ts,Vi=Ii-(Ii- -ts),Na=-ts-Vi,zo=Ra*Na-(Zo-zi*Vi-Ra*Vi-zi*Na),ss=Gs*-Un,Ii=splitter*Gs,zi=Ii-(Ii-Gs),Ra=Gs-zi,Ii=splitter*-Un,Vi=Ii-(Ii- -Un),Na=-Un-Vi,Xs=Ra*Na-(ss-zi*Vi-Ra*Vi-zi*Na),oa=zo+Xs,Rr=oa-zo,Bs[0]=zo-(oa-Rr)+(Xs-Rr),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro+ss,Rr=oa-Ro,Bs[1]=Ro-(oa-Rr)+(ss-Rr),ps=fo+oa,Rr=ps-fo,Bs[2]=fo-(ps-Rr)+(oa-Rr),Bs[3]=ps,Xi=sum(4,as,4,Bs,pl),Zo=$t*Pn,Ii=splitter*$t,zi=Ii-(Ii-$t),Ra=$t-zi,Ii=splitter*Pn,Vi=Ii-(Ii-Pn),Na=Pn-Vi,zo=Ra*Na-(Zo-zi*Vi-Ra*Vi-zi*Na),ss=Ot*Un,Ii=splitter*Ot,zi=Ii-(Ii-Ot),Ra=Ot-zi,Ii=splitter*Un,Vi=Ii-(Ii-Un),Na=Un-Vi,Xs=Ra*Na-(ss-zi*Vi-Ra*Vi-zi*Na),oa=zo-Xs,Rr=zo-oa,zl[0]=zo-(oa+Rr)+(Rr-Xs),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro-ss,Rr=Ro-oa,zl[1]=Ro-(oa+Rr)+(Rr-ss),ps=fo+oa,Rr=ps-fo,zl[2]=fo-(ps-Rr)+(oa-Rr),zl[3]=ps,ga=4):(pl[0]=0,Xi=1,zl[0]=0,ga=1),dt!==0){const Dl=scale(Xi,pl,dt,zr);Ue=ws(Ue,sum(scale(Cn,qs,dt,et),et,scale(Dl,zr,2*Au,Ji),Ji,lo),lo);const xu=scale(ga,zl,dt,ge);Ue=ws(Ue,sum_three(scale(xu,ge,2*Au,et),et,scale(xu,ge,dt,Ln),Ln,scale(Dl,zr,dt,Ji),Ji,Ja,To),To),Un!==0&&(Ue=ws(Ue,scale(scale(4,es,dt,ge),ge,Un,et),et)),Pn!==0&&(Ue=ws(Ue,scale(scale(4,_o,-dt,ge),ge,Pn,et),et))}if(Jt!==0){const Dl=scale(Xi,pl,Jt,zr);Ue=ws(Ue,sum(scale(Fn,gu,Jt,et),et,scale(Dl,zr,2*ou,Ji),Ji,lo),lo);const xu=scale(ga,zl,Jt,ge);Ue=ws(Ue,sum_three(scale(xu,ge,2*ou,et),et,scale(xu,ge,Jt,Ln),Ln,scale(Dl,zr,Jt,Ji),Ji,Ja,To),To)}}if($t!==0||Un!==0){if(Ot!==0||Pn!==0||dt!==0||Jt!==0?(Zo=Ot*ou,Ii=splitter*Ot,zi=Ii-(Ii-Ot),Ra=Ot-zi,Ii=splitter*ou,Vi=Ii-(Ii-ou),Na=ou-Vi,zo=Ra*Na-(Zo-zi*Vi-Ra*Vi-zi*Na),ss=Gs*Jt,Ii=splitter*Gs,zi=Ii-(Ii-Gs),Ra=Gs-zi,Ii=splitter*Jt,Vi=Ii-(Ii-Jt),Na=Jt-Vi,Xs=Ra*Na-(ss-zi*Vi-Ra*Vi-zi*Na),oa=zo+Xs,Rr=oa-zo,as[0]=zo-(oa-Rr)+(Xs-Rr),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro+ss,Rr=oa-Ro,as[1]=Ro-(oa-Rr)+(ss-Rr),ps=fo+oa,Rr=ps-fo,as[2]=fo-(ps-Rr)+(oa-Rr),as[3]=ps,wo=-Wu,so=-Pn,Zo=dt*wo,Ii=splitter*dt,zi=Ii-(Ii-dt),Ra=dt-zi,Ii=splitter*wo,Vi=Ii-(Ii-wo),Na=wo-Vi,zo=Ra*Na-(Zo-zi*Vi-Ra*Vi-zi*Na),ss=Au*so,Ii=splitter*Au,zi=Ii-(Ii-Au),Ra=Au-zi,Ii=splitter*so,Vi=Ii-(Ii-so),Na=so-Vi,Xs=Ra*Na-(ss-zi*Vi-Ra*Vi-zi*Na),oa=zo+Xs,Rr=oa-zo,Bs[0]=zo-(oa-Rr)+(Xs-Rr),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro+ss,Rr=oa-Ro,Bs[1]=Ro-(oa-Rr)+(ss-Rr),ps=fo+oa,Rr=ps-fo,Bs[2]=fo-(ps-Rr)+(oa-Rr),Bs[3]=ps,ya=sum(4,as,4,Bs,wu),Zo=Ot*Jt,Ii=splitter*Ot,zi=Ii-(Ii-Ot),Ra=Ot-zi,Ii=splitter*Jt,Vi=Ii-(Ii-Jt),Na=Jt-Vi,zo=Ra*Na-(Zo-zi*Vi-Ra*Vi-zi*Na),ss=dt*Pn,Ii=splitter*dt,zi=Ii-(Ii-dt),Ra=dt-zi,Ii=splitter*Pn,Vi=Ii-(Ii-Pn),Na=Pn-Vi,Xs=Ra*Na-(ss-zi*Vi-Ra*Vi-zi*Na),oa=zo-Xs,Rr=zo-oa,Ze[0]=zo-(oa+Rr)+(Rr-Xs),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro-ss,Rr=Ro-oa,Ze[1]=Ro-(oa+Rr)+(Rr-ss),ps=fo+oa,Rr=ps-fo,Ze[2]=fo-(ps-Rr)+(oa-Rr),Ze[3]=ps,ba=4):(wu[0]=0,ya=1,Ze[0]=0,ba=1),$t!==0){const Dl=scale(ya,wu,$t,zr);Ue=ws(Ue,sum(scale(mr,vu,$t,et),et,scale(Dl,zr,2*hs,Ji),Ji,lo),lo);const xu=scale(ba,Ze,$t,ge);Ue=ws(Ue,sum_three(scale(xu,ge,2*hs,et),et,scale(xu,ge,$t,Ln),Ln,scale(Dl,zr,$t,Ji),Ji,Ja,To),To),Pn!==0&&(Ue=ws(Ue,scale(scale(4,ra,$t,ge),ge,Pn,et),et)),Jt!==0&&(Ue=ws(Ue,scale(scale(4,es,-$t,ge),ge,Jt,et),et))}if(Un!==0){const Dl=scale(ya,wu,Un,zr);Ue=ws(Ue,sum(scale(hr,ru,Un,et),et,scale(Dl,zr,2*ts,Ji),Ji,lo),lo);const xu=scale(ba,Ze,Un,ge);Ue=ws(Ue,sum_three(scale(xu,ge,2*ts,et),et,scale(xu,ge,Un,Ln),Ln,scale(Dl,zr,Un,Ji),Ji,Ja,To),To)}}if(Ot!==0||Pn!==0){if(dt!==0||Jt!==0||$t!==0||Un!==0?(Zo=dt*ts,Ii=splitter*dt,zi=Ii-(Ii-dt),Ra=dt-zi,Ii=splitter*ts,Vi=Ii-(Ii-ts),Na=ts-Vi,zo=Ra*Na-(Zo-zi*Vi-Ra*Vi-zi*Na),ss=Au*Un,Ii=splitter*Au,zi=Ii-(Ii-Au),Ra=Au-zi,Ii=splitter*Un,Vi=Ii-(Ii-Un),Na=Un-Vi,Xs=Ra*Na-(ss-zi*Vi-Ra*Vi-zi*Na),oa=zo+Xs,Rr=oa-zo,as[0]=zo-(oa-Rr)+(Xs-Rr),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro+ss,Rr=oa-Ro,as[1]=Ro-(oa-Rr)+(ss-Rr),ps=fo+oa,Rr=ps-fo,as[2]=fo-(ps-Rr)+(oa-Rr),as[3]=ps,wo=-ou,so=-Jt,Zo=$t*wo,Ii=splitter*$t,zi=Ii-(Ii-$t),Ra=$t-zi,Ii=splitter*wo,Vi=Ii-(Ii-wo),Na=wo-Vi,zo=Ra*Na-(Zo-zi*Vi-Ra*Vi-zi*Na),ss=hs*so,Ii=splitter*hs,zi=Ii-(Ii-hs),Ra=hs-zi,Ii=splitter*so,Vi=Ii-(Ii-so),Na=so-Vi,Xs=Ra*Na-(ss-zi*Vi-Ra*Vi-zi*Na),oa=zo+Xs,Rr=oa-zo,Bs[0]=zo-(oa-Rr)+(Xs-Rr),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro+ss,Rr=oa-Ro,Bs[1]=Ro-(oa-Rr)+(ss-Rr),ps=fo+oa,Rr=ps-fo,Bs[2]=fo-(ps-Rr)+(oa-Rr),Bs[3]=ps,Di=sum(4,as,4,Bs,fl),Zo=dt*Un,Ii=splitter*dt,zi=Ii-(Ii-dt),Ra=dt-zi,Ii=splitter*Un,Vi=Ii-(Ii-Un),Na=Un-Vi,zo=Ra*Na-(Zo-zi*Vi-Ra*Vi-zi*Na),ss=$t*Jt,Ii=splitter*$t,zi=Ii-(Ii-$t),Ra=$t-zi,Ii=splitter*Jt,Vi=Ii-(Ii-Jt),Na=Jt-Vi,Xs=Ra*Na-(ss-zi*Vi-Ra*Vi-zi*Na),oa=zo-Xs,Rr=zo-oa,Vu[0]=zo-(oa+Rr)+(Rr-Xs),fo=Zo+oa,Rr=fo-Zo,Ro=Zo-(fo-Rr)+(oa-Rr),oa=Ro-ss,Rr=Ro-oa,Vu[1]=Ro-(oa+Rr)+(Rr-ss),ps=fo+oa,Rr=ps-fo,Vu[2]=fo-(ps-Rr)+(oa-Rr),Vu[3]=ps,io=4):(fl[0]=0,Di=1,Vu[0]=0,io=1),Ot!==0){const Dl=scale(Di,fl,Ot,zr);Ue=ws(Ue,sum(scale(ar,Ru,Ot,et),et,scale(Dl,zr,2*Gs,Ji),Ji,lo),lo);const xu=scale(io,Vu,Ot,ge);Ue=ws(Ue,sum_three(scale(xu,ge,2*Gs,et),et,scale(xu,ge,Ot,Ln),Ln,scale(Dl,zr,Ot,Ji),Ji,Ja,To),To),Jt!==0&&(Ue=ws(Ue,scale(scale(4,_o,Ot,ge),ge,Jt,et),et)),Un!==0&&(Ue=ws(Ue,scale(scale(4,ra,-Ot,ge),ge,Un,et),et))}if(Pn!==0){const Dl=scale(Di,fl,Pn,zr);Ue=ws(Ue,sum(scale(qr,rl,Pn,et),et,scale(Dl,zr,2*Wu,Ji),Ji,lo),lo);const xu=scale(io,Vu,Pn,ge);Ue=ws(Ue,sum_three(scale(xu,ge,2*Wu,et),et,scale(xu,ge,Pn,Ln),Ln,scale(Dl,zr,Pn,Ji),Ji,Ja,To),To)}}return Xo[Ue-1]}function el(m,O,M,U,ne,de,xe,Ie){const Qe=m-xe,Ue=M-xe,dt=ne-xe,$t=O-Ie,Ot=U-Ie,Jt=de-Ie,Un=Ue*Jt,Pn=dt*Ot,Cn=Qe*Qe+$t*$t,Fn=dt*$t,mr=Qe*Jt,hr=Ue*Ue+Ot*Ot,ar=Qe*Ot,qr=Ue*$t,Di=dt*dt+Jt*Jt,Xi=Cn*(Un-Pn)+hr*(Fn-mr)+Di*(ar-qr),ya=(Math.abs(Un)+Math.abs(Pn))*Cn+(Math.abs(Fn)+Math.abs(mr))*hr+(Math.abs(ar)+Math.abs(qr))*Di,io=lh*ya;return Xi>io||-Xi>io?Xi:Uu(m,O,M,U,ne,de,xe,Ie,ya)}function Gl(m,O,M,U,ne,de,xe,Ie){const Qe=m-xe,Ue=O-Ie,dt=M-xe,$t=U-Ie,Ot=ne-xe,Jt=de-Ie,Un=Qe*$t-dt*Ue,Pn=dt*Jt-Ot*$t,Cn=Ot*Ue-Qe*Jt,Fn=Qe*Qe+Ue*Ue,mr=dt*dt+$t*$t,hr=Ot*Ot+Jt*Jt;return Fn*Pn+mr*Cn+hr*Un}const Al=(16+224*vs)*vs,ac=(5+72*vs)*vs,Lc=(71+1408*vs)*vs*vs,xl=bs(4),hl=bs(4),Su=bs(4),Dc=bs(4),Xc=bs(4),jc=bs(4),Nc=bs(4),ad=bs(4),kf=bs(4),Cf=bs(4),Rd=bs(24),vh=bs(24),Vf=bs(24),dd=bs(24),oc=bs(24),hd=bs(24),xf=bs(24),Md=bs(24),Hd=bs(24),Id=bs(24),Kd=bs(1152),Ih=bs(1152),ch=bs(1152),rh=bs(1152),Dh=bs(1152),iv=bs(2304),Vh=bs(2304),Pv=bs(3456),av=bs(5760),ov=bs(8),Gh=bs(8),sv=bs(8),uv=bs(16),ph=bs(24),gh=bs(48),Nh=bs(48),lv=bs(96),Vd=bs(192),Bv=bs(384),Zh=bs(384),D=bs(384),H=bs(768);function Te(m,O,M,U,ne,de,xe){return sum_three(scale(4,m,U,ov),ov,scale(4,O,ne,Gh),Gh,scale(4,M,de,sv),sv,uv,xe)}function ft(m,O,M,U,ne,de,xe,Ie,Qe,Ue,dt,$t){const Ot=sum(sum(m,O,M,U,gh),gh,negate(sum(ne,de,xe,Ie,Nh),Nh),Nh,lv);return sum_three(scale(scale(Ot,lv,Qe,Vd),Vd,Qe,Bv),Bv,scale(scale(Ot,lv,Ue,Vd),Vd,Ue,Zh),Zh,scale(scale(Ot,lv,dt,Vd),Vd,dt,D),D,H,$t)}function yn(m,O,M,U,ne,de,xe,Ie,Qe,Ue,dt,$t,Ot,Jt,Un){let Pn,Cn,Fn,mr,hr,ar,qr,Di,Xi,ya,io,ga,ba,wo;ya=m*ne,Cn=splitter*m,Fn=Cn-(Cn-m),mr=m-Fn,Cn=splitter*ne,hr=Cn-(Cn-ne),ar=ne-hr,io=mr*ar-(ya-Fn*hr-mr*hr-Fn*ar),ga=U*O,Cn=splitter*U,Fn=Cn-(Cn-U),mr=U-Fn,Cn=splitter*O,hr=Cn-(Cn-O),ar=O-hr,ba=mr*ar-(ga-Fn*hr-mr*hr-Fn*ar),qr=io-ba,Pn=io-qr,xl[0]=io-(qr+Pn)+(Pn-ba),Di=ya+qr,Pn=Di-ya,Xi=ya-(Di-Pn)+(qr-Pn),qr=Xi-ga,Pn=Xi-qr,xl[1]=Xi-(qr+Pn)+(Pn-ga),wo=Di+qr,Pn=wo-Di,xl[2]=Di-(wo-Pn)+(qr-Pn),xl[3]=wo,ya=U*Ie,Cn=splitter*U,Fn=Cn-(Cn-U),mr=U-Fn,Cn=splitter*Ie,hr=Cn-(Cn-Ie),ar=Ie-hr,io=mr*ar-(ya-Fn*hr-mr*hr-Fn*ar),ga=xe*ne,Cn=splitter*xe,Fn=Cn-(Cn-xe),mr=xe-Fn,Cn=splitter*ne,hr=Cn-(Cn-ne),ar=ne-hr,ba=mr*ar-(ga-Fn*hr-mr*hr-Fn*ar),qr=io-ba,Pn=io-qr,hl[0]=io-(qr+Pn)+(Pn-ba),Di=ya+qr,Pn=Di-ya,Xi=ya-(Di-Pn)+(qr-Pn),qr=Xi-ga,Pn=Xi-qr,hl[1]=Xi-(qr+Pn)+(Pn-ga),wo=Di+qr,Pn=wo-Di,hl[2]=Di-(wo-Pn)+(qr-Pn),hl[3]=wo,ya=xe*dt,Cn=splitter*xe,Fn=Cn-(Cn-xe),mr=xe-Fn,Cn=splitter*dt,hr=Cn-(Cn-dt),ar=dt-hr,io=mr*ar-(ya-Fn*hr-mr*hr-Fn*ar),ga=Ue*Ie,Cn=splitter*Ue,Fn=Cn-(Cn-Ue),mr=Ue-Fn,Cn=splitter*Ie,hr=Cn-(Cn-Ie),ar=Ie-hr,ba=mr*ar-(ga-Fn*hr-mr*hr-Fn*ar),qr=io-ba,Pn=io-qr,Su[0]=io-(qr+Pn)+(Pn-ba),Di=ya+qr,Pn=Di-ya,Xi=ya-(Di-Pn)+(qr-Pn),qr=Xi-ga,Pn=Xi-qr,Su[1]=Xi-(qr+Pn)+(Pn-ga),wo=Di+qr,Pn=wo-Di,Su[2]=Di-(wo-Pn)+(qr-Pn),Su[3]=wo,ya=Ue*Jt,Cn=splitter*Ue,Fn=Cn-(Cn-Ue),mr=Ue-Fn,Cn=splitter*Jt,hr=Cn-(Cn-Jt),ar=Jt-hr,io=mr*ar-(ya-Fn*hr-mr*hr-Fn*ar),ga=Ot*dt,Cn=splitter*Ot,Fn=Cn-(Cn-Ot),mr=Ot-Fn,Cn=splitter*dt,hr=Cn-(Cn-dt),ar=dt-hr,ba=mr*ar-(ga-Fn*hr-mr*hr-Fn*ar),qr=io-ba,Pn=io-qr,Dc[0]=io-(qr+Pn)+(Pn-ba),Di=ya+qr,Pn=Di-ya,Xi=ya-(Di-Pn)+(qr-Pn),qr=Xi-ga,Pn=Xi-qr,Dc[1]=Xi-(qr+Pn)+(Pn-ga),wo=Di+qr,Pn=wo-Di,Dc[2]=Di-(wo-Pn)+(qr-Pn),Dc[3]=wo,ya=Ot*O,Cn=splitter*Ot,Fn=Cn-(Cn-Ot),mr=Ot-Fn,Cn=splitter*O,hr=Cn-(Cn-O),ar=O-hr,io=mr*ar-(ya-Fn*hr-mr*hr-Fn*ar),ga=m*Jt,Cn=splitter*m,Fn=Cn-(Cn-m),mr=m-Fn,Cn=splitter*Jt,hr=Cn-(Cn-Jt),ar=Jt-hr,ba=mr*ar-(ga-Fn*hr-mr*hr-Fn*ar),qr=io-ba,Pn=io-qr,Xc[0]=io-(qr+Pn)+(Pn-ba),Di=ya+qr,Pn=Di-ya,Xi=ya-(Di-Pn)+(qr-Pn),qr=Xi-ga,Pn=Xi-qr,Xc[1]=Xi-(qr+Pn)+(Pn-ga),wo=Di+qr,Pn=wo-Di,Xc[2]=Di-(wo-Pn)+(qr-Pn),Xc[3]=wo,ya=m*Ie,Cn=splitter*m,Fn=Cn-(Cn-m),mr=m-Fn,Cn=splitter*Ie,hr=Cn-(Cn-Ie),ar=Ie-hr,io=mr*ar-(ya-Fn*hr-mr*hr-Fn*ar),ga=xe*O,Cn=splitter*xe,Fn=Cn-(Cn-xe),mr=xe-Fn,Cn=splitter*O,hr=Cn-(Cn-O),ar=O-hr,ba=mr*ar-(ga-Fn*hr-mr*hr-Fn*ar),qr=io-ba,Pn=io-qr,jc[0]=io-(qr+Pn)+(Pn-ba),Di=ya+qr,Pn=Di-ya,Xi=ya-(Di-Pn)+(qr-Pn),qr=Xi-ga,Pn=Xi-qr,jc[1]=Xi-(qr+Pn)+(Pn-ga),wo=Di+qr,Pn=wo-Di,jc[2]=Di-(wo-Pn)+(qr-Pn),jc[3]=wo,ya=U*dt,Cn=splitter*U,Fn=Cn-(Cn-U),mr=U-Fn,Cn=splitter*dt,hr=Cn-(Cn-dt),ar=dt-hr,io=mr*ar-(ya-Fn*hr-mr*hr-Fn*ar),ga=Ue*ne,Cn=splitter*Ue,Fn=Cn-(Cn-Ue),mr=Ue-Fn,Cn=splitter*ne,hr=Cn-(Cn-ne),ar=ne-hr,ba=mr*ar-(ga-Fn*hr-mr*hr-Fn*ar),qr=io-ba,Pn=io-qr,Nc[0]=io-(qr+Pn)+(Pn-ba),Di=ya+qr,Pn=Di-ya,Xi=ya-(Di-Pn)+(qr-Pn),qr=Xi-ga,Pn=Xi-qr,Nc[1]=Xi-(qr+Pn)+(Pn-ga),wo=Di+qr,Pn=wo-Di,Nc[2]=Di-(wo-Pn)+(qr-Pn),Nc[3]=wo,ya=xe*Jt,Cn=splitter*xe,Fn=Cn-(Cn-xe),mr=xe-Fn,Cn=splitter*Jt,hr=Cn-(Cn-Jt),ar=Jt-hr,io=mr*ar-(ya-Fn*hr-mr*hr-Fn*ar),ga=Ot*Ie,Cn=splitter*Ot,Fn=Cn-(Cn-Ot),mr=Ot-Fn,Cn=splitter*Ie,hr=Cn-(Cn-Ie),ar=Ie-hr,ba=mr*ar-(ga-Fn*hr-mr*hr-Fn*ar),qr=io-ba,Pn=io-qr,ad[0]=io-(qr+Pn)+(Pn-ba),Di=ya+qr,Pn=Di-ya,Xi=ya-(Di-Pn)+(qr-Pn),qr=Xi-ga,Pn=Xi-qr,ad[1]=Xi-(qr+Pn)+(Pn-ga),wo=Di+qr,Pn=wo-Di,ad[2]=Di-(wo-Pn)+(qr-Pn),ad[3]=wo,ya=Ue*O,Cn=splitter*Ue,Fn=Cn-(Cn-Ue),mr=Ue-Fn,Cn=splitter*O,hr=Cn-(Cn-O),ar=O-hr,io=mr*ar-(ya-Fn*hr-mr*hr-Fn*ar),ga=m*dt,Cn=splitter*m,Fn=Cn-(Cn-m),mr=m-Fn,Cn=splitter*dt,hr=Cn-(Cn-dt),ar=dt-hr,ba=mr*ar-(ga-Fn*hr-mr*hr-Fn*ar),qr=io-ba,Pn=io-qr,kf[0]=io-(qr+Pn)+(Pn-ba),Di=ya+qr,Pn=Di-ya,Xi=ya-(Di-Pn)+(qr-Pn),qr=Xi-ga,Pn=Xi-qr,kf[1]=Xi-(qr+Pn)+(Pn-ga),wo=Di+qr,Pn=wo-Di,kf[2]=Di-(wo-Pn)+(qr-Pn),kf[3]=wo,ya=Ot*ne,Cn=splitter*Ot,Fn=Cn-(Cn-Ot),mr=Ot-Fn,Cn=splitter*ne,hr=Cn-(Cn-ne),ar=ne-hr,io=mr*ar-(ya-Fn*hr-mr*hr-Fn*ar),ga=U*Jt,Cn=splitter*U,Fn=Cn-(Cn-U),mr=U-Fn,Cn=splitter*Jt,hr=Cn-(Cn-Jt),ar=Jt-hr,ba=mr*ar-(ga-Fn*hr-mr*hr-Fn*ar),qr=io-ba,Pn=io-qr,Cf[0]=io-(qr+Pn)+(Pn-ba),Di=ya+qr,Pn=Di-ya,Xi=ya-(Di-Pn)+(qr-Pn),qr=Xi-ga,Pn=Xi-qr,Cf[1]=Xi-(qr+Pn)+(Pn-ga),wo=Di+qr,Pn=wo-Di,Cf[2]=Di-(wo-Pn)+(qr-Pn),Cf[3]=wo;const so=Te(xl,hl,jc,Qe,M,-de,Rd),Rr=Te(hl,Su,Nc,$t,de,-Qe,vh),Ii=Te(Su,Dc,ad,Un,Qe,-$t,Vf),zi=Te(Dc,Xc,kf,M,$t,-Un,dd),Ra=Te(Xc,xl,Cf,de,Un,-M,oc),Vi=Te(xl,Nc,kf,$t,M,de,hd),Na=Te(hl,ad,Cf,Un,de,Qe,xf),oa=Te(Su,kf,jc,M,Qe,$t,Md),fo=Te(Dc,Cf,Nc,de,$t,Un,Hd),Ro=Te(Xc,jc,ad,Qe,Un,M,Id),Zo=sum_three(ft(Ii,Vf,Na,xf,fo,Hd,Rr,vh,m,O,M,Kd),Kd,ft(zi,dd,oa,Md,Ro,Id,Ii,Vf,U,ne,de,Ih),Ih,sum_three(ft(Ra,oc,fo,Hd,Vi,hd,zi,dd,xe,Ie,Qe,ch),ch,ft(so,Rd,Ro,Id,Na,xf,Ra,oc,Ue,dt,$t,rh),rh,ft(Rr,vh,Vi,hd,oa,Md,so,Rd,Ot,Jt,Un,Dh),Dh,Vh,Pv),Pv,iv,av);return av[Zo-1]}const kn=bs(96),hi=bs(96),Wa=bs(96),ho=bs(1152);function os(m,O,M,U,ne,de,xe,Ie,Qe,Ue){const dt=Te(m,O,M,U,ne,de,ph);return sum_three(scale(scale(dt,ph,xe,gh),gh,xe,kn),kn,scale(scale(dt,ph,Ie,gh),gh,Ie,hi),hi,scale(scale(dt,ph,Qe,gh),gh,Qe,Wa),Wa,Vd,Ue)}function uu(m,O,M,U,ne,de,xe,Ie,Qe,Ue,dt,$t,Ot,Jt,Un,Pn){let Cn,Fn,mr,hr,ar,qr,Di,Xi,ya,io,ga,ba,wo,so,Rr,Ii,zi,Ra,Vi,Na,oa,fo,Ro,Zo,zo,ss,Xs,ps,Au,hs,Gs;const ou=m-Ot,ts=U-Ot,Wu=xe-Ot,Sl=Ue-Ot,uc=O-Jt,Dl=ne-Jt,xu=Ie-Jt,nc=dt-Jt,Uf=M-Un,Tf=de-Un,bd=Qe-Un,Cd=$t-Un;ps=ou*Dl,Na=splitter*ou,oa=Na-(Na-ou),fo=ou-oa,Na=splitter*Dl,Ro=Na-(Na-Dl),Zo=Dl-Ro,Au=fo*Zo-(ps-oa*Ro-fo*Ro-oa*Zo),hs=ts*uc,Na=splitter*ts,oa=Na-(Na-ts),fo=ts-oa,Na=splitter*uc,Ro=Na-(Na-uc),Zo=uc-Ro,Gs=fo*Zo-(hs-oa*Ro-fo*Ro-oa*Zo),zo=Au-Gs,Vi=Au-zo,xl[0]=Au-(zo+Vi)+(Vi-Gs),ss=ps+zo,Vi=ss-ps,Xs=ps-(ss-Vi)+(zo-Vi),zo=Xs-hs,Vi=Xs-zo,xl[1]=Xs-(zo+Vi)+(Vi-hs),Cn=ss+zo,Vi=Cn-ss,xl[2]=ss-(Cn-Vi)+(zo-Vi),xl[3]=Cn,ps=ts*xu,Na=splitter*ts,oa=Na-(Na-ts),fo=ts-oa,Na=splitter*xu,Ro=Na-(Na-xu),Zo=xu-Ro,Au=fo*Zo-(ps-oa*Ro-fo*Ro-oa*Zo),hs=Wu*Dl,Na=splitter*Wu,oa=Na-(Na-Wu),fo=Wu-oa,Na=splitter*Dl,Ro=Na-(Na-Dl),Zo=Dl-Ro,Gs=fo*Zo-(hs-oa*Ro-fo*Ro-oa*Zo),zo=Au-Gs,Vi=Au-zo,hl[0]=Au-(zo+Vi)+(Vi-Gs),ss=ps+zo,Vi=ss-ps,Xs=ps-(ss-Vi)+(zo-Vi),zo=Xs-hs,Vi=Xs-zo,hl[1]=Xs-(zo+Vi)+(Vi-hs),Fn=ss+zo,Vi=Fn-ss,hl[2]=ss-(Fn-Vi)+(zo-Vi),hl[3]=Fn,ps=Wu*nc,Na=splitter*Wu,oa=Na-(Na-Wu),fo=Wu-oa,Na=splitter*nc,Ro=Na-(Na-nc),Zo=nc-Ro,Au=fo*Zo-(ps-oa*Ro-fo*Ro-oa*Zo),hs=Sl*xu,Na=splitter*Sl,oa=Na-(Na-Sl),fo=Sl-oa,Na=splitter*xu,Ro=Na-(Na-xu),Zo=xu-Ro,Gs=fo*Zo-(hs-oa*Ro-fo*Ro-oa*Zo),zo=Au-Gs,Vi=Au-zo,Su[0]=Au-(zo+Vi)+(Vi-Gs),ss=ps+zo,Vi=ss-ps,Xs=ps-(ss-Vi)+(zo-Vi),zo=Xs-hs,Vi=Xs-zo,Su[1]=Xs-(zo+Vi)+(Vi-hs),mr=ss+zo,Vi=mr-ss,Su[2]=ss-(mr-Vi)+(zo-Vi),Su[3]=mr,ps=Sl*uc,Na=splitter*Sl,oa=Na-(Na-Sl),fo=Sl-oa,Na=splitter*uc,Ro=Na-(Na-uc),Zo=uc-Ro,Au=fo*Zo-(ps-oa*Ro-fo*Ro-oa*Zo),hs=ou*nc,Na=splitter*ou,oa=Na-(Na-ou),fo=ou-oa,Na=splitter*nc,Ro=Na-(Na-nc),Zo=nc-Ro,Gs=fo*Zo-(hs-oa*Ro-fo*Ro-oa*Zo),zo=Au-Gs,Vi=Au-zo,kf[0]=Au-(zo+Vi)+(Vi-Gs),ss=ps+zo,Vi=ss-ps,Xs=ps-(ss-Vi)+(zo-Vi),zo=Xs-hs,Vi=Xs-zo,kf[1]=Xs-(zo+Vi)+(Vi-hs),hr=ss+zo,Vi=hr-ss,kf[2]=ss-(hr-Vi)+(zo-Vi),kf[3]=hr,ps=ou*xu,Na=splitter*ou,oa=Na-(Na-ou),fo=ou-oa,Na=splitter*xu,Ro=Na-(Na-xu),Zo=xu-Ro,Au=fo*Zo-(ps-oa*Ro-fo*Ro-oa*Zo),hs=Wu*uc,Na=splitter*Wu,oa=Na-(Na-Wu),fo=Wu-oa,Na=splitter*uc,Ro=Na-(Na-uc),Zo=uc-Ro,Gs=fo*Zo-(hs-oa*Ro-fo*Ro-oa*Zo),zo=Au-Gs,Vi=Au-zo,jc[0]=Au-(zo+Vi)+(Vi-Gs),ss=ps+zo,Vi=ss-ps,Xs=ps-(ss-Vi)+(zo-Vi),zo=Xs-hs,Vi=Xs-zo,jc[1]=Xs-(zo+Vi)+(Vi-hs),ar=ss+zo,Vi=ar-ss,jc[2]=ss-(ar-Vi)+(zo-Vi),jc[3]=ar,ps=ts*nc,Na=splitter*ts,oa=Na-(Na-ts),fo=ts-oa,Na=splitter*nc,Ro=Na-(Na-nc),Zo=nc-Ro,Au=fo*Zo-(ps-oa*Ro-fo*Ro-oa*Zo),hs=Sl*Dl,Na=splitter*Sl,oa=Na-(Na-Sl),fo=Sl-oa,Na=splitter*Dl,Ro=Na-(Na-Dl),Zo=Dl-Ro,Gs=fo*Zo-(hs-oa*Ro-fo*Ro-oa*Zo),zo=Au-Gs,Vi=Au-zo,Nc[0]=Au-(zo+Vi)+(Vi-Gs),ss=ps+zo,Vi=ss-ps,Xs=ps-(ss-Vi)+(zo-Vi),zo=Xs-hs,Vi=Xs-zo,Nc[1]=Xs-(zo+Vi)+(Vi-hs),qr=ss+zo,Vi=qr-ss,Nc[2]=ss-(qr-Vi)+(zo-Vi),Nc[3]=qr;const t0=sum(sum(negate(os(hl,Su,Nc,Cd,Tf,-bd,ou,uc,Uf,Kd),Kd),Kd,os(Su,kf,jc,Uf,bd,Cd,ts,Dl,Tf,Ih),Ih,iv),iv,sum(negate(os(kf,xl,Nc,Tf,Cd,Uf,Wu,xu,bd,ch),ch),ch,os(xl,hl,jc,bd,Uf,-Tf,Sl,nc,Cd,rh),rh,Vh),Vh,ho);let xh=estimate(t0,ho),wv=ac*Pn;if(xh>=wv||-xh>=wv||(Vi=m-ou,Di=m-(ou+Vi)+(Vi-Ot),Vi=O-uc,ga=O-(uc+Vi)+(Vi-Jt),Vi=M-Uf,Rr=M-(Uf+Vi)+(Vi-Un),Vi=U-ts,Xi=U-(ts+Vi)+(Vi-Ot),Vi=ne-Dl,ba=ne-(Dl+Vi)+(Vi-Jt),Vi=de-Tf,Ii=de-(Tf+Vi)+(Vi-Un),Vi=xe-Wu,ya=xe-(Wu+Vi)+(Vi-Ot),Vi=Ie-xu,wo=Ie-(xu+Vi)+(Vi-Jt),Vi=Qe-bd,zi=Qe-(bd+Vi)+(Vi-Un),Vi=Ue-Sl,io=Ue-(Sl+Vi)+(Vi-Ot),Vi=dt-nc,so=dt-(nc+Vi)+(Vi-Jt),Vi=$t-Cd,Ra=$t-(Cd+Vi)+(Vi-Un),Di===0&&ga===0&&Rr===0&&Xi===0&&ba===0&&Ii===0&&ya===0&&wo===0&&zi===0&&io===0&&so===0&&Ra===0))return xh;wv=Lc*Pn+resulterrbound*Math.abs(xh);const sg=ou*ba+Dl*Di-(uc*Xi+ts*ga),ug=ts*wo+xu*Xi-(Dl*ya+Wu*ba),lg=Wu*so+nc*ya-(xu*io+Sl*wo),cg=Sl*ga+uc*io-(nc*Di+ou*so),fg=ou*wo+xu*Di-(uc*ya+Wu*ga),dg=ts*so+nc*Xi-(Dl*io+Sl*ba);return xh+=(ts*ts+Dl*Dl+Tf*Tf)*(bd*cg+Cd*fg+Uf*lg+(zi*hr+Ra*ar+Rr*mr))+(Sl*Sl+nc*nc+Cd*Cd)*(Uf*ug-Tf*fg+bd*sg+(Rr*Fn-Ii*ar+zi*Cn))-((ou*ou+uc*uc+Uf*Uf)*(Tf*lg-bd*dg+Cd*ug+(Ii*mr-zi*qr+Ra*Fn))+(Wu*Wu+xu*xu+bd*bd)*(Cd*sg+Uf*dg+Tf*cg+(Ra*Cn+Rr*qr+Ii*hr)))+2*((ts*Xi+Dl*ba+Tf*Ii)*(bd*hr+Cd*ar+Uf*mr)+(Sl*io+nc*so+Cd*Ra)*(Uf*Fn-Tf*ar+bd*Cn)-((ou*Di+uc*ga+Uf*Rr)*(Tf*mr-bd*qr+Cd*Fn)+(Wu*ya+xu*wo+bd*zi)*(Cd*Cn+Uf*qr+Tf*hr))),xh>=wv||-xh>=wv?xh:yn(m,O,M,U,ne,de,xe,Ie,Qe,Ue,dt,$t,Ot,Jt,Un)}function yu(m,O,M,U,ne,de,xe,Ie,Qe,Ue,dt,$t,Ot,Jt,Un){const Pn=m-Ot,Cn=U-Ot,Fn=xe-Ot,mr=Ue-Ot,hr=O-Jt,ar=ne-Jt,qr=Ie-Jt,Di=dt-Jt,Xi=M-Un,ya=de-Un,io=Qe-Un,ga=$t-Un,ba=Pn*ar,wo=Cn*hr,so=ba-wo,Rr=Cn*qr,Ii=Fn*ar,zi=Rr-Ii,Ra=Fn*Di,Vi=mr*qr,Na=Ra-Vi,oa=mr*hr,fo=Pn*Di,Ro=oa-fo,Zo=Pn*qr,zo=Fn*hr,ss=Zo-zo,Xs=Cn*Di,ps=mr*ar,Au=Xs-ps,hs=Xi*zi-ya*ss+io*so,Gs=ya*Na-io*Au+ga*zi,ou=io*Ro+ga*ss+Xi*Na,ts=ga*so+Xi*Au+ya*Ro,Wu=Pn*Pn+hr*hr+Xi*Xi,Sl=Cn*Cn+ar*ar+ya*ya,uc=Fn*Fn+qr*qr+io*io,Dl=mr*mr+Di*Di+ga*ga,xu=uc*ts-Dl*hs+(Wu*Gs-Sl*ou),nc=Math.abs(Xi),Uf=Math.abs(ya),Tf=Math.abs(io),bd=Math.abs(ga),Cd=Math.abs(ba),t0=Math.abs(wo),xh=Math.abs(Rr),wv=Math.abs(Ii),sg=Math.abs(Ra),ug=Math.abs(Vi),lg=Math.abs(oa),cg=Math.abs(fo),fg=Math.abs(Zo),dg=Math.abs(zo),VO=Math.abs(Xs),GO=Math.abs(ps),ZO=((sg+ug)*Uf+(GO+VO)*Tf+(xh+wv)*bd)*Wu+((lg+cg)*Tf+(fg+dg)*bd+(sg+ug)*nc)*Sl+((Cd+t0)*bd+(VO+GO)*nc+(lg+cg)*Uf)*uc+((xh+wv)*nc+(dg+fg)*Uf+(Cd+t0)*Tf)*Dl,YO=Al*ZO;return xu>YO||-xu>YO?xu:-uu(m,O,M,U,ne,de,xe,Ie,Qe,Ue,dt,$t,Ot,Jt,Un,ZO)}function iu(m,O,M,U,ne,de,xe,Ie,Qe,Ue,dt,$t,Ot,Jt,Un){const Pn=m-Ot,Cn=U-Ot,Fn=xe-Ot,mr=Ue-Ot,hr=O-Jt,ar=ne-Jt,qr=Ie-Jt,Di=dt-Jt,Xi=M-Un,ya=de-Un,io=Qe-Un,ga=$t-Un,ba=Pn*ar-Cn*hr,wo=Cn*qr-Fn*ar,so=Fn*Di-mr*qr,Rr=mr*hr-Pn*Di,Ii=Pn*qr-Fn*hr,zi=Cn*Di-mr*ar,Ra=Xi*wo-ya*Ii+io*ba,Vi=ya*so-io*zi+ga*wo,Na=io*Rr+ga*Ii+Xi*so,oa=ga*ba+Xi*zi+ya*Rr,fo=Pn*Pn+hr*hr+Xi*Xi,Ro=Cn*Cn+ar*ar+ya*ya,Zo=Fn*Fn+qr*qr+io*io,zo=mr*mr+Di*Di+ga*ga;return Zo*oa-zo*Ra+(fo*Vi-Ro*Na)}const il=Math.pow(2,-52),gl=new Uint32Array(512);class bl{static from(O,M=Hl,U=tc){const ne=O.length,de=new Float64Array(ne*2);for(let xe=0;xe<ne;xe++){const Ie=O[xe];de[2*xe]=M(Ie),de[2*xe+1]=U(Ie)}return new bl(de)}constructor(O){const M=O.length>>1;if(M>0&&typeof O[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=O;const U=Math.max(2*M-5,0);this._triangles=new Uint32Array(U*3),this._halfedges=new Int32Array(U*3),this._hashSize=Math.ceil(Math.sqrt(M)),this._hullPrev=new Uint32Array(M),this._hullNext=new Uint32Array(M),this._hullTri=new Uint32Array(M),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(M),this._dists=new Float64Array(M),this.update()}update(){const{coords:O,_hullPrev:M,_hullNext:U,_hullTri:ne,_hullHash:de}=this,xe=O.length>>1;let Ie=1/0,Qe=1/0,Ue=-1/0,dt=-1/0;for(let ga=0;ga<xe;ga++){const ba=O[2*ga],wo=O[2*ga+1];ba<Ie&&(Ie=ba),wo<Qe&&(Qe=wo),ba>Ue&&(Ue=ba),wo>dt&&(dt=wo),this._ids[ga]=ga}const $t=(Ie+Ue)/2,Ot=(Qe+dt)/2;let Jt=1/0,Un,Pn,Cn;for(let ga=0;ga<xe;ga++){const ba=Vo($t,Ot,O[2*ga],O[2*ga+1]);ba<Jt&&(Un=ga,Jt=ba)}const Fn=O[2*Un],mr=O[2*Un+1];Jt=1/0;for(let ga=0;ga<xe;ga++){if(ga===Un)continue;const ba=Vo(Fn,mr,O[2*ga],O[2*ga+1]);ba<Jt&&ba>0&&(Pn=ga,Jt=ba)}let hr=O[2*Pn],ar=O[2*Pn+1],qr=1/0;for(let ga=0;ga<xe;ga++){if(ga===Un||ga===Pn)continue;const ba=ns(Fn,mr,hr,ar,O[2*ga],O[2*ga+1]);ba<qr&&(Cn=ga,qr=ba)}let Di=O[2*Cn],Xi=O[2*Cn+1];if(qr===1/0){for(let wo=0;wo<xe;wo++)this._dists[wo]=O[2*wo]-O[0]||O[2*wo+1]-O[1];ml(this._ids,this._dists,0,xe-1);const ga=new Uint32Array(xe);let ba=0;for(let wo=0,so=-1/0;wo<xe;wo++){const Rr=this._ids[wo];this._dists[Rr]>so&&(ga[ba++]=Rr,so=this._dists[Rr])}this.hull=ga.subarray(0,ba),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Sd(Fn,mr,hr,ar,Di,Xi)<0){const ga=Pn,ba=hr,wo=ar;Pn=Cn,hr=Di,ar=Xi,Cn=ga,Di=ba,Xi=wo}const ya=Mu(Fn,mr,hr,ar,Di,Xi);this._cx=ya.x,this._cy=ya.y;for(let ga=0;ga<xe;ga++)this._dists[ga]=Vo(O[2*ga],O[2*ga+1],ya.x,ya.y);ml(this._ids,this._dists,0,xe-1),this._hullStart=Un;let io=3;U[Un]=M[Cn]=Pn,U[Pn]=M[Un]=Cn,U[Cn]=M[Pn]=Un,ne[Un]=0,ne[Pn]=1,ne[Cn]=2,de.fill(-1),de[this._hashKey(Fn,mr)]=Un,de[this._hashKey(hr,ar)]=Pn,de[this._hashKey(Di,Xi)]=Cn,this.trianglesLen=0,this._addTriangle(Un,Pn,Cn,-1,-1,-1);for(let ga=0,ba,wo;ga<this._ids.length;ga++){const so=this._ids[ga],Rr=O[2*so],Ii=O[2*so+1];if(ga>0&&Math.abs(Rr-ba)<=il&&Math.abs(Ii-wo)<=il||(ba=Rr,wo=Ii,so===Un||so===Pn||so===Cn))continue;let zi=0;for(let fo=0,Ro=this._hashKey(Rr,Ii);fo<this._hashSize&&(zi=de[(Ro+fo)%this._hashSize],!(zi!==-1&&zi!==U[zi]));fo++);zi=M[zi];let Ra=zi,Vi;for(;Vi=U[Ra],Sd(Rr,Ii,O[2*Ra],O[2*Ra+1],O[2*Vi],O[2*Vi+1])>=0;)if(Ra=Vi,Ra===zi){Ra=-1;break}if(Ra===-1)continue;let Na=this._addTriangle(Ra,so,U[Ra],-1,-1,ne[Ra]);ne[so]=this._legalize(Na+2),ne[Ra]=Na,io++;let oa=U[Ra];for(;Vi=U[oa],Sd(Rr,Ii,O[2*oa],O[2*oa+1],O[2*Vi],O[2*Vi+1])<0;)Na=this._addTriangle(oa,so,Vi,ne[so],-1,ne[oa]),ne[so]=this._legalize(Na+2),U[oa]=oa,io--,oa=Vi;if(Ra===zi)for(;Vi=M[Ra],Sd(Rr,Ii,O[2*Vi],O[2*Vi+1],O[2*Ra],O[2*Ra+1])<0;)Na=this._addTriangle(Vi,so,Ra,-1,ne[Ra],ne[Vi]),this._legalize(Na+2),ne[Vi]=Na,U[Ra]=Ra,io--,Ra=Vi;this._hullStart=M[so]=Ra,U[Ra]=M[oa]=so,U[so]=oa,de[this._hashKey(Rr,Ii)]=so,de[this._hashKey(O[2*Ra],O[2*Ra+1])]=Ra}this.hull=new Uint32Array(io);for(let ga=0,ba=this._hullStart;ga<io;ga++)this.hull[ga]=ba,ba=U[ba];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(O,M){return Math.floor(Bf(O-this._cx,M-this._cy)*this._hashSize)%this._hashSize}_legalize(O){const{_triangles:M,_halfedges:U,coords:ne}=this;let de=0,xe=0;for(;;){const Ie=U[O],Qe=O-O%3;if(xe=Qe+(O+2)%3,Ie===-1){if(de===0)break;O=gl[--de];continue}const Ue=Ie-Ie%3,dt=Qe+(O+1)%3,$t=Ue+(Ie+2)%3,Ot=M[xe],Jt=M[O],Un=M[dt],Pn=M[$t];if(Po(ne[2*Ot],ne[2*Ot+1],ne[2*Jt],ne[2*Jt+1],ne[2*Un],ne[2*Un+1],ne[2*Pn],ne[2*Pn+1])){M[O]=Pn,M[Ie]=Ot;const Fn=U[$t];if(Fn===-1){let hr=this._hullStart;do{if(this._hullTri[hr]===$t){this._hullTri[hr]=O;break}hr=this._hullPrev[hr]}while(hr!==this._hullStart)}this._link(O,Fn),this._link(Ie,U[xe]),this._link(xe,$t);const mr=Ue+(Ie+1)%3;de<gl.length&&(gl[de++]=mr)}else{if(de===0)break;O=gl[--de]}}return xe}_link(O,M){this._halfedges[O]=M,M!==-1&&(this._halfedges[M]=O)}_addTriangle(O,M,U,ne,de,xe){const Ie=this.trianglesLen;return this._triangles[Ie]=O,this._triangles[Ie+1]=M,this._triangles[Ie+2]=U,this._link(Ie,ne),this._link(Ie+1,de),this._link(Ie+2,xe),this.trianglesLen+=3,Ie}}function Bf(m,O){const M=m/(Math.abs(m)+Math.abs(O));return(O>0?3-M:1+M)/4}function Vo(m,O,M,U){const ne=m-M,de=O-U;return ne*ne+de*de}function Po(m,O,M,U,ne,de,xe,Ie){const Qe=m-xe,Ue=O-Ie,dt=M-xe,$t=U-Ie,Ot=ne-xe,Jt=de-Ie,Un=Qe*Qe+Ue*Ue,Pn=dt*dt+$t*$t,Cn=Ot*Ot+Jt*Jt;return Qe*($t*Cn-Pn*Jt)-Ue*(dt*Cn-Pn*Ot)+Un*(dt*Jt-$t*Ot)<0}function ns(m,O,M,U,ne,de){const xe=M-m,Ie=U-O,Qe=ne-m,Ue=de-O,dt=xe*xe+Ie*Ie,$t=Qe*Qe+Ue*Ue,Ot=.5/(xe*Ue-Ie*Qe),Jt=(Ue*dt-Ie*$t)*Ot,Un=(xe*$t-Qe*dt)*Ot;return Jt*Jt+Un*Un}function Mu(m,O,M,U,ne,de){const xe=M-m,Ie=U-O,Qe=ne-m,Ue=de-O,dt=xe*xe+Ie*Ie,$t=Qe*Qe+Ue*Ue,Ot=.5/(xe*Ue-Ie*Qe),Jt=m+(Ue*dt-Ie*$t)*Ot,Un=O+(xe*$t-Qe*dt)*Ot;return{x:Jt,y:Un}}function ml(m,O,M,U){if(U-M<=20)for(let ne=M+1;ne<=U;ne++){const de=m[ne],xe=O[de];let Ie=ne-1;for(;Ie>=M&&O[m[Ie]]>xe;)m[Ie+1]=m[Ie--];m[Ie+1]=de}else{const ne=M+U>>1;let de=M+1,xe=U;Il(m,ne,de),O[m[M]]>O[m[U]]&&Il(m,M,U),O[m[de]]>O[m[U]]&&Il(m,de,U),O[m[M]]>O[m[de]]&&Il(m,M,de);const Ie=m[de],Qe=O[Ie];for(;;){do de++;while(O[m[de]]<Qe);do xe--;while(O[m[xe]]>Qe);if(xe<de)break;Il(m,de,xe)}m[M+1]=m[xe],m[xe]=Ie,U-de+1>=xe-M?(ml(m,O,de,U),ml(m,O,M,xe-1)):(ml(m,O,M,xe-1),ml(m,O,de,U))}}function Il(m,O,M){const U=m[O];m[O]=m[M],m[M]=U}function Hl(m){return m[0]}function tc(m){return m[1]}const Jf=1e-6;class Rc{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(O,M){this._+=`M${this._x0=this._x1=+O},${this._y0=this._y1=+M}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(O,M){this._+=`L${this._x1=+O},${this._y1=+M}`}arc(O,M,U){O=+O,M=+M,U=+U;const ne=O+U,de=M;if(U<0)throw new Error("negative radius");this._x1===null?this._+=`M${ne},${de}`:(Math.abs(this._x1-ne)>Jf||Math.abs(this._y1-de)>Jf)&&(this._+="L"+ne+","+de),U&&(this._+=`A${U},${U},0,1,1,${O-U},${M}A${U},${U},0,1,1,${this._x1=ne},${this._y1=de}`)}rect(O,M,U,ne){this._+=`M${this._x0=this._x1=+O},${this._y0=this._y1=+M}h${+U}v${+ne}h${-U}Z`}value(){return this._||null}}class ih{constructor(){this._=[]}moveTo(O,M){this._.push([O,M])}closePath(){this._.push(this._[0].slice())}lineTo(O,M){this._.push([O,M])}value(){return this._.length?this._:null}}class $v{constructor(O,[M,U,ne,de]=[0,0,960,500]){if(!((ne=+ne)>=(M=+M))||!((de=+de)>=(U=+U)))throw new Error("invalid bounds");this.delaunay=O,this._circumcenters=new Float64Array(O.points.length*2),this.vectors=new Float64Array(O.points.length*2),this.xmax=ne,this.xmin=M,this.ymax=de,this.ymin=U,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:O,hull:M,triangles:U},vectors:ne}=this,de=this.circumcenters=this._circumcenters.subarray(0,U.length/3*2);for(let Jt=0,Un=0,Pn=U.length,Cn,Fn;Jt<Pn;Jt+=3,Un+=2){const mr=U[Jt]*2,hr=U[Jt+1]*2,ar=U[Jt+2]*2,qr=O[mr],Di=O[mr+1],Xi=O[hr],ya=O[hr+1],io=O[ar],ga=O[ar+1],ba=Xi-qr,wo=ya-Di,so=io-qr,Rr=ga-Di,Ii=(ba*Rr-wo*so)*2;if(Math.abs(Ii)<1e-9){let zi=1e9;const Ra=U[0]*2;zi*=Math.sign((O[Ra]-qr)*Rr-(O[Ra+1]-Di)*so),Cn=(qr+io)/2-zi*Rr,Fn=(Di+ga)/2+zi*so}else{const zi=1/Ii,Ra=ba*ba+wo*wo,Vi=so*so+Rr*Rr;Cn=qr+(Rr*Ra-wo*Vi)*zi,Fn=Di+(ba*Vi-so*Ra)*zi}de[Un]=Cn,de[Un+1]=Fn}let xe=M[M.length-1],Ie,Qe=xe*4,Ue,dt=O[2*xe],$t,Ot=O[2*xe+1];ne.fill(0);for(let Jt=0;Jt<M.length;++Jt)xe=M[Jt],Ie=Qe,Ue=dt,$t=Ot,Qe=xe*4,dt=O[2*xe],Ot=O[2*xe+1],ne[Ie+2]=ne[Qe]=$t-Ot,ne[Ie+3]=ne[Qe+1]=dt-Ue}render(O){const M=O==null?O=new Rc:void 0,{delaunay:{halfedges:U,inedges:ne,hull:de},circumcenters:xe,vectors:Ie}=this;if(de.length<=1)return null;for(let dt=0,$t=U.length;dt<$t;++dt){const Ot=U[dt];if(Ot<dt)continue;const Jt=Math.floor(dt/3)*2,Un=Math.floor(Ot/3)*2,Pn=xe[Jt],Cn=xe[Jt+1],Fn=xe[Un],mr=xe[Un+1];this._renderSegment(Pn,Cn,Fn,mr,O)}let Qe,Ue=de[de.length-1];for(let dt=0;dt<de.length;++dt){Qe=Ue,Ue=de[dt];const $t=Math.floor(ne[Ue]/3)*2,Ot=xe[$t],Jt=xe[$t+1],Un=Qe*4,Pn=this._project(Ot,Jt,Ie[Un+2],Ie[Un+3]);Pn&&this._renderSegment(Ot,Jt,Pn[0],Pn[1],O)}return M&&M.value()}renderBounds(O){const M=O==null?O=new Rc:void 0;return O.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),M&&M.value()}renderCell(O,M){const U=M==null?M=new Rc:void 0,ne=this._clip(O);if(ne===null||!ne.length)return;M.moveTo(ne[0],ne[1]);let de=ne.length;for(;ne[0]===ne[de-2]&&ne[1]===ne[de-1]&&de>1;)de-=2;for(let xe=2;xe<de;xe+=2)(ne[xe]!==ne[xe-2]||ne[xe+1]!==ne[xe-1])&&M.lineTo(ne[xe],ne[xe+1]);return M.closePath(),U&&U.value()}*cellPolygons(){const{delaunay:{points:O}}=this;for(let M=0,U=O.length/2;M<U;++M){const ne=this.cellPolygon(M);ne&&(ne.index=M,yield ne)}}cellPolygon(O){const M=new ih;return this.renderCell(O,M),M.value()}_renderSegment(O,M,U,ne,de){let xe;const Ie=this._regioncode(O,M),Qe=this._regioncode(U,ne);Ie===0&&Qe===0?(de.moveTo(O,M),de.lineTo(U,ne)):(xe=this._clipSegment(O,M,U,ne,Ie,Qe))&&(de.moveTo(xe[0],xe[1]),de.lineTo(xe[2],xe[3]))}contains(O,M,U){return M=+M,M!==M||(U=+U,U!==U)?!1:this.delaunay._step(O,M,U)===O}*neighbors(O){const M=this._clip(O);if(M)for(const U of this.delaunay.neighbors(O)){const ne=this._clip(U);if(ne){e:for(let de=0,xe=M.length;de<xe;de+=2)for(let Ie=0,Qe=ne.length;Ie<Qe;Ie+=2)if(M[de]==ne[Ie]&&M[de+1]==ne[Ie+1]&&M[(de+2)%xe]==ne[(Ie+Qe-2)%Qe]&&M[(de+3)%xe]==ne[(Ie+Qe-1)%Qe]){yield U;break e}}}}_cell(O){const{circumcenters:M,delaunay:{inedges:U,halfedges:ne,triangles:de}}=this,xe=U[O];if(xe===-1)return null;const Ie=[];let Qe=xe;do{const Ue=Math.floor(Qe/3);if(Ie.push(M[Ue*2],M[Ue*2+1]),Qe=Qe%3===2?Qe-2:Qe+1,de[Qe]!==O)break;Qe=ne[Qe]}while(Qe!==xe&&Qe!==-1);return Ie}_clip(O){if(O===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const M=this._cell(O);if(M===null)return null;const{vectors:U}=this,ne=O*4;return U[ne]||U[ne+1]?this._clipInfinite(O,M,U[ne],U[ne+1],U[ne+2],U[ne+3]):this._clipFinite(O,M)}_clipFinite(O,M){const U=M.length;let ne=null,de,xe,Ie=M[U-2],Qe=M[U-1],Ue,dt=this._regioncode(Ie,Qe),$t,Ot=0;for(let Jt=0;Jt<U;Jt+=2)if(de=Ie,xe=Qe,Ie=M[Jt],Qe=M[Jt+1],Ue=dt,dt=this._regioncode(Ie,Qe),Ue===0&&dt===0)$t=Ot,Ot=0,ne?ne.push(Ie,Qe):ne=[Ie,Qe];else{let Un,Pn,Cn,Fn,mr;if(Ue===0){if((Un=this._clipSegment(de,xe,Ie,Qe,Ue,dt))===null)continue;[Pn,Cn,Fn,mr]=Un}else{if((Un=this._clipSegment(Ie,Qe,de,xe,dt,Ue))===null)continue;[Fn,mr,Pn,Cn]=Un,$t=Ot,Ot=this._edgecode(Pn,Cn),$t&&Ot&&this._edge(O,$t,Ot,ne,ne.length),ne?ne.push(Pn,Cn):ne=[Pn,Cn]}$t=Ot,Ot=this._edgecode(Fn,mr),$t&&Ot&&this._edge(O,$t,Ot,ne,ne.length),ne?ne.push(Fn,mr):ne=[Fn,mr]}if(ne)$t=Ot,Ot=this._edgecode(ne[0],ne[1]),$t&&Ot&&this._edge(O,$t,Ot,ne,ne.length);else if(this.contains(O,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return ne}_clipSegment(O,M,U,ne,de,xe){for(;;){if(de===0&&xe===0)return[O,M,U,ne];if(de&xe)return null;let Ie,Qe,Ue=de||xe;Ue&8?(Ie=O+(U-O)*(this.ymax-M)/(ne-M),Qe=this.ymax):Ue&4?(Ie=O+(U-O)*(this.ymin-M)/(ne-M),Qe=this.ymin):Ue&2?(Qe=M+(ne-M)*(this.xmax-O)/(U-O),Ie=this.xmax):(Qe=M+(ne-M)*(this.xmin-O)/(U-O),Ie=this.xmin),de?(O=Ie,M=Qe,de=this._regioncode(O,M)):(U=Ie,ne=Qe,xe=this._regioncode(U,ne))}}_clipInfinite(O,M,U,ne,de,xe){let Ie=Array.from(M),Qe;if((Qe=this._project(Ie[0],Ie[1],U,ne))&&Ie.unshift(Qe[0],Qe[1]),(Qe=this._project(Ie[Ie.length-2],Ie[Ie.length-1],de,xe))&&Ie.push(Qe[0],Qe[1]),Ie=this._clipFinite(O,Ie))for(let Ue=0,dt=Ie.length,$t,Ot=this._edgecode(Ie[dt-2],Ie[dt-1]);Ue<dt;Ue+=2)$t=Ot,Ot=this._edgecode(Ie[Ue],Ie[Ue+1]),$t&&Ot&&(Ue=this._edge(O,$t,Ot,Ie,Ue),dt=Ie.length);else this.contains(O,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(Ie=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return Ie}_edge(O,M,U,ne,de){for(;M!==U;){let xe,Ie;switch(M){case 5:M=4;continue;case 4:M=6,xe=this.xmax,Ie=this.ymin;break;case 6:M=2;continue;case 2:M=10,xe=this.xmax,Ie=this.ymax;break;case 10:M=8;continue;case 8:M=9,xe=this.xmin,Ie=this.ymax;break;case 9:M=1;continue;case 1:M=5,xe=this.xmin,Ie=this.ymin;break}(ne[de]!==xe||ne[de+1]!==Ie)&&this.contains(O,xe,Ie)&&(ne.splice(de,0,xe,Ie),de+=2)}if(ne.length>4)for(let xe=0;xe<ne.length;xe+=2){const Ie=(xe+2)%ne.length,Qe=(xe+4)%ne.length;(ne[xe]===ne[Ie]&&ne[Ie]===ne[Qe]||ne[xe+1]===ne[Ie+1]&&ne[Ie+1]===ne[Qe+1])&&(ne.splice(Ie,2),xe-=2)}return de}_project(O,M,U,ne){let de=1/0,xe,Ie,Qe;if(ne<0){if(M<=this.ymin)return null;(xe=(this.ymin-M)/ne)<de&&(Qe=this.ymin,Ie=O+(de=xe)*U)}else if(ne>0){if(M>=this.ymax)return null;(xe=(this.ymax-M)/ne)<de&&(Qe=this.ymax,Ie=O+(de=xe)*U)}if(U>0){if(O>=this.xmax)return null;(xe=(this.xmax-O)/U)<de&&(Ie=this.xmax,Qe=M+(de=xe)*ne)}else if(U<0){if(O<=this.xmin)return null;(xe=(this.xmin-O)/U)<de&&(Ie=this.xmin,Qe=M+(de=xe)*ne)}return[Ie,Qe]}_edgecode(O,M){return(O===this.xmin?1:O===this.xmax?2:0)|(M===this.ymin?4:M===this.ymax?8:0)}_regioncode(O,M){return(O<this.xmin?1:O>this.xmax?2:0)|(M<this.ymin?4:M>this.ymax?8:0)}}const n0=2*Math.PI,cv=Math.pow;function r0(m){return m[0]}function i0(m){return m[1]}function a0(m){const{triangles:O,coords:M}=m;for(let U=0;U<O.length;U+=3){const ne=2*O[U],de=2*O[U+1],xe=2*O[U+2];if((M[xe]-M[ne])*(M[de+1]-M[ne+1])-(M[de]-M[ne])*(M[xe+1]-M[ne+1])>1e-10)return!1}return!0}function o0(m,O,M){return[m+Math.sin(m+O)*M,O+Math.cos(m-O)*M]}class Gd{static from(O,M=r0,U=i0,ne){return new Gd("length"in O?s0(O,M,U,ne):Float64Array.from(u0(O,M,U,ne)))}constructor(O){this._delaunator=new bl(O),this.inedges=new Int32Array(O.length/2),this._hullIndex=new Int32Array(O.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const O=this._delaunator,M=this.points;if(O.hull&&O.hull.length>2&&a0(O)){this.collinear=Int32Array.from({length:M.length/2},(Ot,Jt)=>Jt).sort((Ot,Jt)=>M[2*Ot]-M[2*Jt]||M[2*Ot+1]-M[2*Jt+1]);const Qe=this.collinear[0],Ue=this.collinear[this.collinear.length-1],dt=[M[2*Qe],M[2*Qe+1],M[2*Ue],M[2*Ue+1]],$t=1e-8*Math.hypot(dt[3]-dt[1],dt[2]-dt[0]);for(let Ot=0,Jt=M.length/2;Ot<Jt;++Ot){const Un=o0(M[2*Ot],M[2*Ot+1],$t);M[2*Ot]=Un[0],M[2*Ot+1]=Un[1]}this._delaunator=new bl(M)}else delete this.collinear;const U=this.halfedges=this._delaunator.halfedges,ne=this.hull=this._delaunator.hull,de=this.triangles=this._delaunator.triangles,xe=this.inedges.fill(-1),Ie=this._hullIndex.fill(-1);for(let Qe=0,Ue=U.length;Qe<Ue;++Qe){const dt=de[Qe%3===2?Qe-2:Qe+1];(U[Qe]===-1||xe[dt]===-1)&&(xe[dt]=Qe)}for(let Qe=0,Ue=ne.length;Qe<Ue;++Qe)Ie[ne[Qe]]=Qe;ne.length<=2&&ne.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=ne[0],xe[ne[0]]=1,ne.length===2&&(xe[ne[1]]=0,this.triangles[1]=ne[1],this.triangles[2]=ne[1]))}voronoi(O){return new $v(this,O)}*neighbors(O){const{inedges:M,hull:U,_hullIndex:ne,halfedges:de,triangles:xe,collinear:Ie}=this;if(Ie){const $t=Ie.indexOf(O);$t>0&&(yield Ie[$t-1]),$t<Ie.length-1&&(yield Ie[$t+1]);return}const Qe=M[O];if(Qe===-1)return;let Ue=Qe,dt=-1;do{if(yield dt=xe[Ue],Ue=Ue%3===2?Ue-2:Ue+1,xe[Ue]!==O)return;if(Ue=de[Ue],Ue===-1){const $t=U[(ne[O]+1)%U.length];$t!==dt&&(yield $t);return}}while(Ue!==Qe)}find(O,M,U=0){if(O=+O,O!==O||(M=+M,M!==M))return-1;const ne=U;let de;for(;(de=this._step(U,O,M))>=0&&de!==U&&de!==ne;)U=de;return de}_step(O,M,U){const{inedges:ne,hull:de,_hullIndex:xe,halfedges:Ie,triangles:Qe,points:Ue}=this;if(ne[O]===-1||!Ue.length)return(O+1)%(Ue.length>>1);let dt=O,$t=cv(M-Ue[O*2],2)+cv(U-Ue[O*2+1],2);const Ot=ne[O];let Jt=Ot;do{let Un=Qe[Jt];const Pn=cv(M-Ue[Un*2],2)+cv(U-Ue[Un*2+1],2);if(Pn<$t&&($t=Pn,dt=Un),Jt=Jt%3===2?Jt-2:Jt+1,Qe[Jt]!==O)break;if(Jt=Ie[Jt],Jt===-1){if(Jt=de[(xe[O]+1)%de.length],Jt!==Un&&cv(M-Ue[Jt*2],2)+cv(U-Ue[Jt*2+1],2)<$t)return Jt;break}}while(Jt!==Ot);return dt}render(O){const M=O==null?O=new Rc:void 0,{points:U,halfedges:ne,triangles:de}=this;for(let xe=0,Ie=ne.length;xe<Ie;++xe){const Qe=ne[xe];if(Qe<xe)continue;const Ue=de[xe]*2,dt=de[Qe]*2;O.moveTo(U[Ue],U[Ue+1]),O.lineTo(U[dt],U[dt+1])}return this.renderHull(O),M&&M.value()}renderPoints(O,M){M===void 0&&(!O||typeof O.moveTo!="function")&&(M=O,O=null),M=M==null?2:+M;const U=O==null?O=new Rc:void 0,{points:ne}=this;for(let de=0,xe=ne.length;de<xe;de+=2){const Ie=ne[de],Qe=ne[de+1];O.moveTo(Ie+M,Qe),O.arc(Ie,Qe,M,0,n0)}return U&&U.value()}renderHull(O){const M=O==null?O=new Rc:void 0,{hull:U,points:ne}=this,de=U[0]*2,xe=U.length;O.moveTo(ne[de],ne[de+1]);for(let Ie=1;Ie<xe;++Ie){const Qe=2*U[Ie];O.lineTo(ne[Qe],ne[Qe+1])}return O.closePath(),M&&M.value()}hullPolygon(){const O=new ih;return this.renderHull(O),O.value()}renderTriangle(O,M){const U=M==null?M=new Rc:void 0,{points:ne,triangles:de}=this,xe=de[O*=3]*2,Ie=de[O+1]*2,Qe=de[O+2]*2;return M.moveTo(ne[xe],ne[xe+1]),M.lineTo(ne[Ie],ne[Ie+1]),M.lineTo(ne[Qe],ne[Qe+1]),M.closePath(),U&&U.value()}*trianglePolygons(){const{triangles:O}=this;for(let M=0,U=O.length/3;M<U;++M)yield this.trianglePolygon(M)}trianglePolygon(O){const M=new ih;return this.renderTriangle(O,M),M.value()}}function s0(m,O,M,U){const ne=m.length,de=new Float64Array(ne*2);for(let xe=0;xe<ne;++xe){const Ie=m[xe];de[xe*2]=O.call(U,Ie,xe,m),de[xe*2+1]=M.call(U,Ie,xe,m)}return de}function*u0(m,O,M,U){let ne=0;for(const de of m)yield O.call(U,de,ne,m),yield M.call(U,de,ne,m),++ne}const mh=m=>()=>m;function cc(m,{sourceEvent:O,subject:M,target:U,identifier:ne,active:de,x:xe,y:Ie,dx:Qe,dy:Ue,dispatch:dt}){Object.defineProperties(this,{type:{value:m,enumerable:!0,configurable:!0},sourceEvent:{value:O,enumerable:!0,configurable:!0},subject:{value:M,enumerable:!0,configurable:!0},target:{value:U,enumerable:!0,configurable:!0},identifier:{value:ne,enumerable:!0,configurable:!0},active:{value:de,enumerable:!0,configurable:!0},x:{value:xe,enumerable:!0,configurable:!0},y:{value:Ie,enumerable:!0,configurable:!0},dx:{value:Qe,enumerable:!0,configurable:!0},dy:{value:Ue,enumerable:!0,configurable:!0},_:{value:dt}})}cc.prototype.on=function(){var m=this._.on.apply(this._,arguments);return m===this._?this:m};function l0(m){return!m.ctrlKey&&!m.button}function $d(){return this.parentNode}function qf(m,O){return O??{x:m.x,y:m.y}}function c0(){return navigator.maxTouchPoints||"ontouchstart"in this}function Fh(){var m=l0,O=$d,M=qf,U=c0,ne={},de=jn("start","drag","end"),xe=0,Ie,Qe,Ue,dt,$t=0;function Ot(ar){ar.on("mousedown.drag",Jt).filter(U).on("touchstart.drag",Cn).on("touchmove.drag",Fn,Ns).on("touchend.drag touchcancel.drag",mr).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Jt(ar,qr){if(!(dt||!m.call(this,ar,qr))){var Di=hr(this,O.call(this,ar,qr),ar,qr,"mouse");Di&&(Zs(ar.view).on("mousemove.drag",Un,Us).on("mouseup.drag",Pn,Us),Ys(ar.view),fu(ar),Ue=!1,Ie=ar.clientX,Qe=ar.clientY,Di("start",ar))}}function Un(ar){if(bu(ar),!Ue){var qr=ar.clientX-Ie,Di=ar.clientY-Qe;Ue=qr*qr+Di*Di>$t}ne.mouse("drag",ar)}function Pn(ar){Zs(ar.view).on("mousemove.drag mouseup.drag",null),Hu(ar.view,Ue),bu(ar),ne.mouse("end",ar)}function Cn(ar,qr){if(m.call(this,ar,qr)){var Di=ar.changedTouches,Xi=O.call(this,ar,qr),ya=Di.length,io,ga;for(io=0;io<ya;++io)(ga=hr(this,Xi,ar,qr,Di[io].identifier,Di[io]))&&(fu(ar),ga("start",ar,Di[io]))}}function Fn(ar){var qr=ar.changedTouches,Di=qr.length,Xi,ya;for(Xi=0;Xi<Di;++Xi)(ya=ne[qr[Xi].identifier])&&(bu(ar),ya("drag",ar,qr[Xi]))}function mr(ar){var qr=ar.changedTouches,Di=qr.length,Xi,ya;for(dt&&clearTimeout(dt),dt=setTimeout(function(){dt=null},500),Xi=0;Xi<Di;++Xi)(ya=ne[qr[Xi].identifier])&&(fu(ar),ya("end",ar,qr[Xi]))}function hr(ar,qr,Di,Xi,ya,io){var ga=de.copy(),ba=pn(io||Di,qr),wo,so,Rr;if((Rr=M.call(ar,new cc("beforestart",{sourceEvent:Di,target:Ot,identifier:ya,active:xe,x:ba[0],y:ba[1],dx:0,dy:0,dispatch:ga}),Xi))!=null)return wo=Rr.x-ba[0]||0,so=Rr.y-ba[1]||0,function Ii(zi,Ra,Vi){var Na=ba,oa;switch(zi){case"start":ne[ya]=Ii,oa=xe++;break;case"end":delete ne[ya],--xe;case"drag":ba=pn(Vi||Ra,qr),oa=xe;break}ga.call(zi,ar,new cc(zi,{sourceEvent:Ra,subject:Rr,target:Ot,identifier:ya,active:oa,x:ba[0]+wo,y:ba[1]+so,dx:ba[0]-Na[0],dy:ba[1]-Na[1],dispatch:ga}),Xi)}}return Ot.filter=function(ar){return arguments.length?(m=typeof ar=="function"?ar:mh(!!ar),Ot):m},Ot.container=function(ar){return arguments.length?(O=typeof ar=="function"?ar:mh(ar),Ot):O},Ot.subject=function(ar){return arguments.length?(M=typeof ar=="function"?ar:mh(ar),Ot):M},Ot.touchable=function(ar){return arguments.length?(U=typeof ar=="function"?ar:mh(!!ar),Ot):U},Ot.on=function(){var ar=de.on.apply(de,arguments);return ar===de?Ot:ar},Ot.clickDistance=function(ar){return arguments.length?($t=(ar=+ar)*ar,Ot):Math.sqrt($t)},Ot}var hg={},dp={},hp=34,Cv=10,vp=13;function jv(m){return new Function("d","return {"+m.map(function(O,M){return JSON.stringify(O)+": d["+M+'] || ""'}).join(",")+"}")}function f0(m,O){var M=jv(m);return function(U,ne){return O(M(U),ne,m)}}function yh(m){var O=Object.create(null),M=[];return m.forEach(function(U){for(var ne in U)ne in O||M.push(O[ne]=ne)}),M}function Dd(m,O){var M=m+"",U=M.length;return U<O?new Array(O-U+1).join(0)+M:M}function Uv(m){return m<0?"-"+Dd(-m,6):m>9999?"+"+Dd(m,6):Dd(m,4)}function $f(m){var O=m.getUTCHours(),M=m.getUTCMinutes(),U=m.getUTCSeconds(),ne=m.getUTCMilliseconds();return isNaN(m)?"Invalid Date":Uv(m.getUTCFullYear(),4)+"-"+Dd(m.getUTCMonth()+1,2)+"-"+Dd(m.getUTCDate(),2)+(ne?"T"+Dd(O,2)+":"+Dd(M,2)+":"+Dd(U,2)+"."+Dd(ne,3)+"Z":U?"T"+Dd(O,2)+":"+Dd(M,2)+":"+Dd(U,2)+"Z":M||O?"T"+Dd(O,2)+":"+Dd(M,2)+"Z":"")}function Rf(m){var O=new RegExp('["'+m+` \r]`),M=m.charCodeAt(0);function U($t,Ot){var Jt,Un,Pn=ne($t,function(Cn,Fn){if(Jt)return Jt(Cn,Fn-1);Un=Cn,Jt=Ot?f0(Cn,Ot):jv(Cn)});return Pn.columns=Un||[],Pn}function ne($t,Ot){var Jt=[],Un=$t.length,Pn=0,Cn=0,Fn,mr=Un<=0,hr=!1;$t.charCodeAt(Un-1)===Cv&&--Un,$t.charCodeAt(Un-1)===vp&&--Un;function ar(){if(mr)return dp;if(hr)return hr=!1,hg;var Di,Xi=Pn,ya;if($t.charCodeAt(Xi)===hp){for(;Pn++<Un&&$t.charCodeAt(Pn)!==hp||$t.charCodeAt(++Pn)===hp;);return(Di=Pn)>=Un?mr=!0:(ya=$t.charCodeAt(Pn++))===Cv?hr=!0:ya===vp&&(hr=!0,$t.charCodeAt(Pn)===Cv&&++Pn),$t.slice(Xi+1,Di-1).replace(/""/g,'"')}for(;Pn<Un;){if((ya=$t.charCodeAt(Di=Pn++))===Cv)hr=!0;else if(ya===vp)hr=!0,$t.charCodeAt(Pn)===Cv&&++Pn;else if(ya!==M)continue;return $t.slice(Xi,Di)}return mr=!0,$t.slice(Xi,Un)}for(;(Fn=ar())!==dp;){for(var qr=[];Fn!==hg&&Fn!==dp;)qr.push(Fn),Fn=ar();Ot&&(qr=Ot(qr,Cn++))==null||Jt.push(qr)}return Jt}function de($t,Ot){return $t.map(function(Jt){return Ot.map(function(Un){return dt(Jt[Un])}).join(m)})}function xe($t,Ot){return Ot==null&&(Ot=yh($t)),[Ot.map(dt).join(m)].concat(de($t,Ot)).join(` `)}function Ie($t,Ot){return Ot==null&&(Ot=yh($t)),de($t,Ot).join(` `)}function Qe($t){return $t.map(Ue).join(` `)}function Ue($t){return $t.map(dt).join(m)}function dt($t){return $t==null?"":$t instanceof Date?$f($t):O.test($t+="")?'"'+$t.replace(/"/g,'""')+'"':$t}return{parse:U,parseRows:ne,format:xe,formatBody:Ie,formatRows:Qe,formatRow:Ue,formatValue:dt}}var kh=Rf(","),vg=kh.parse,d0=kh.parseRows,h0=kh.format,v0=kh.formatBody,p0=kh.formatRows,g0=kh.formatRow,pg=kh.formatValue,fh=Rf(" "),Wv=fh.parse,m0=fh.parseRows,gg=fh.format,zv=fh.formatBody,Zd=fh.formatRows,fv=fh.formatRow,y0=fh.formatValue;function b0(m){for(var O in m){var M=m[O].trim(),U,ne;if(!M)M=null;else if(M==="true")M=!0;else if(M==="false")M=!1;else if(M==="NaN")M=NaN;else if(!isNaN(U=+M))M=U;else if(ne=M.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/))E0&&ne[4]&&!ne[7]&&(M=M.replace(/-/g,"/").replace(/T/," ")),M=new Date(M);else continue;m[O]=M}return m}const E0=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),S0=m=>+m;function O0(m){return m*m}function mg(m){return m*(2-m)}function bh(m){return((m*=2)<=1?m*m:--m*(2-m)+1)/2}var yc=3,yg=function m(O){O=+O;function M(U){return Math.pow(U,O)}return M.exponent=m,M}(yc),ah=function m(O){O=+O;function M(U){return 1-Math.pow(1-U,O)}return M.exponent=m,M}(yc),pp=function m(O){O=+O;function M(U){return((U*=2)<=1?Math.pow(U,O):2-Math.pow(2-U,O))/2}return M.exponent=m,M}(yc),bg=Math.PI,af=bg/2;function w0(m){return+m==1?1:1-Math.cos(m*af)}function Eg(m){return Math.sin(m*af)}function xv(m){return(1-Math.cos(bg*m))/2}function Bh(m){return(Math.pow(2,-10*m)-.0009765625)*1.0009775171065494}function P0(m){return Bh(1-+m)}function C0(m){return 1-Bh(m)}function Sg(m){return((m*=2)<=1?Bh(1-m):2-Bh(m-1))/2}function x0(m){return 1-Math.sqrt(1-m*m)}function T0(m){return Math.sqrt(1- --m*m)}function Og(m){return((m*=2)<=1?1-Math.sqrt(1-m*m):Math.sqrt(1-(m-=2)*m)+1)/2}var gp=4/11,A0=6/11,R0=8/11,M0=3/4,I0=9/11,D0=10/11,mp=15/16,_0=21/22,yp=63/64,Hv=1/gp/gp;function L0(m){return 1-Tv(1-m)}function Tv(m){return(m=+m)<gp?Hv*m*m:m<R0?Hv*(m-=A0)*m+M0:m<D0?Hv*(m-=I0)*m+mp:Hv*(m-=_0)*m+yp}function vd(m){return((m*=2)<=1?1-Tv(1-m):Tv(m-1)+1)/2}var wd=1.70158,N0=function m(O){O=+O;function M(U){return(U=+U)*U*(O*(U-1)+U)}return M.overshoot=m,M}(wd),F0=function m(O){O=+O;function M(U){return--U*U*((U+1)*O+U)+1}return M.overshoot=m,M}(wd),wg=function m(O){O=+O;function M(U){return((U*=2)<1?U*U*((O+1)*U-O):(U-=2)*U*((O+1)*U+O)+2)/2}return M.overshoot=m,M}(wd),Yh=2*Math.PI,bp=1,Ep=.3,k0=function m(O,M){var U=Math.asin(1/(O=Math.max(1,O)))*(M/=Yh);function ne(de){return O*Bh(- --de)*Math.sin((U-de)/M)}return ne.amplitude=function(de){return m(de,M*Yh)},ne.period=function(de){return m(O,de)},ne}(bp,Ep),Sp=function m(O,M){var U=Math.asin(1/(O=Math.max(1,O)))*(M/=Yh);function ne(de){return 1-O*Bh(de=+de)*Math.sin((de+U)/M)}return ne.amplitude=function(de){return m(de,M*Yh)},ne.period=function(de){return m(O,de)},ne}(bp,Ep),B0=function m(O,M){var U=Math.asin(1/(O=Math.max(1,O)))*(M/=Yh);function ne(de){return((de=de*2-1)<0?O*Bh(-de)*Math.sin((U-de)/M):2-O*Bh(de)*Math.sin((U+de)/M))/2}return ne.amplitude=function(de){return m(de,M*Yh)},ne.period=function(de){return m(O,de)},ne}(bp,Ep);function $0(m){if(!m.ok)throw new Error(m.status+" "+m.statusText);return m.blob()}function j0(m,O){return fetch(m,O).then($0)}function Pg(m){if(!m.ok)throw new Error(m.status+" "+m.statusText);return m.arrayBuffer()}function Cg(m,O){return fetch(m,O).then(Pg)}function U0(m){if(!m.ok)throw new Error(m.status+" "+m.statusText);return m.text()}function Kv(m,O){return fetch(m,O).then(U0)}function xg(m){return function(O,M,U){return arguments.length===2&&typeof M=="function"&&(U=M,M=void 0),Kv(O,M).then(function(ne){return m(ne,U)})}}function W0(m,O,M,U){arguments.length===3&&typeof M=="function"&&(U=M,M=void 0);var ne=Rf(m);return Kv(O,M).then(function(de){return ne.parse(de,U)})}var dv=xg(vg),z0=xg(Wv);function H0(m,O){return new Promise(function(M,U){var ne=new Image;for(var de in O)ne[de]=O[de];ne.onerror=U,ne.onload=function(){M(ne)},ne.src=m})}function K0(m){if(!m.ok)throw new Error(m.status+" "+m.statusText);if(!(m.status===204||m.status===205))return m.json()}function V0(m,O){return fetch(m,O).then(K0)}function Op(m){return(O,M)=>Kv(O,M).then(U=>new DOMParser().parseFromString(U,m))}const Tg=Op("application/xml");var Ag=Op("text/html"),G0=Op("image/svg+xml");function Z0(m,O){var M,U=1;m==null&&(m=0),O==null&&(O=0);function ne(){var de,xe=M.length,Ie,Qe=0,Ue=0;for(de=0;de<xe;++de)Ie=M[de],Qe+=Ie.x,Ue+=Ie.y;for(Qe=(Qe/xe-m)*U,Ue=(Ue/xe-O)*U,de=0;de<xe;++de)Ie=M[de],Ie.x-=Qe,Ie.y-=Ue}return ne.initialize=function(de){M=de},ne.x=function(de){return arguments.length?(m=+de,ne):m},ne.y=function(de){return arguments.length?(O=+de,ne):O},ne.strength=function(de){return arguments.length?(U=+de,ne):U},ne}function Y0(m){const O=+this._x.call(null,m),M=+this._y.call(null,m);return Rg(this.cover(O,M),O,M,m)}function Rg(m,O,M,U){if(isNaN(O)||isNaN(M))return m;var ne,de=m._root,xe={data:U},Ie=m._x0,Qe=m._y0,Ue=m._x1,dt=m._y1,$t,Ot,Jt,Un,Pn,Cn,Fn,mr;if(!de)return m._root=xe,m;for(;de.length;)if((Pn=O>=($t=(Ie+Ue)/2))?Ie=$t:Ue=$t,(Cn=M>=(Ot=(Qe+dt)/2))?Qe=Ot:dt=Ot,ne=de,!(de=de[Fn=Cn<<1|Pn]))return ne[Fn]=xe,m;if(Jt=+m._x.call(null,de.data),Un=+m._y.call(null,de.data),O===Jt&&M===Un)return xe.next=de,ne?ne[Fn]=xe:m._root=xe,m;do ne=ne?ne[Fn]=new Array(4):m._root=new Array(4),(Pn=O>=($t=(Ie+Ue)/2))?Ie=$t:Ue=$t,(Cn=M>=(Ot=(Qe+dt)/2))?Qe=Ot:dt=Ot;while((Fn=Cn<<1|Pn)===(mr=(Un>=Ot)<<1|Jt>=$t));return ne[mr]=de,ne[Fn]=xe,m}function X0(m){var O,M,U=m.length,ne,de,xe=new Array(U),Ie=new Array(U),Qe=1/0,Ue=1/0,dt=-1/0,$t=-1/0;for(M=0;M<U;++M)isNaN(ne=+this._x.call(null,O=m[M]))||isNaN(de=+this._y.call(null,O))||(xe[M]=ne,Ie[M]=de,ne<Qe&&(Qe=ne),ne>dt&&(dt=ne),de<Ue&&(Ue=de),de>$t&&($t=de));if(Qe>dt||Ue>$t)return this;for(this.cover(Qe,Ue).cover(dt,$t),M=0;M<U;++M)Rg(this,xe[M],Ie[M],m[M]);return this}function Q0(m,O){if(isNaN(m=+m)||isNaN(O=+O))return this;var M=this._x0,U=this._y0,ne=this._x1,de=this._y1;if(isNaN(M))ne=(M=Math.floor(m))+1,de=(U=Math.floor(O))+1;else{for(var xe=ne-M||1,Ie=this._root,Qe,Ue;M>m||m>=ne||U>O||O>=de;)switch(Ue=(O<U)<<1|m<M,Qe=new Array(4),Qe[Ue]=Ie,Ie=Qe,xe*=2,Ue){case 0:ne=M+xe,de=U+xe;break;case 1:M=ne-xe,de=U+xe;break;case 2:ne=M+xe,U=de-xe;break;case 3:M=ne-xe,U=de-xe;break}this._root&&this._root.length&&(this._root=Ie)}return this._x0=M,this._y0=U,this._x1=ne,this._y1=de,this}function J0(){var m=[];return this.visit(function(O){if(!O.length)do m.push(O.data);while(O=O.next)}),m}function q0(m){return arguments.length?this.cover(+m[0][0],+m[0][1]).cover(+m[1][0],+m[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function _d(m,O,M,U,ne){this.node=m,this.x0=O,this.y0=M,this.x1=U,this.y1=ne}function ey(m,O,M){var U,ne=this._x0,de=this._y0,xe,Ie,Qe,Ue,dt=this._x1,$t=this._y1,Ot=[],Jt=this._root,Un,Pn;for(Jt&&Ot.push(new _d(Jt,ne,de,dt,$t)),M==null?M=1/0:(ne=m-M,de=O-M,dt=m+M,$t=O+M,M*=M);Un=Ot.pop();)if(!(!(Jt=Un.node)||(xe=Un.x0)>dt||(Ie=Un.y0)>$t||(Qe=Un.x1)<ne||(Ue=Un.y1)<de))if(Jt.length){var Cn=(xe+Qe)/2,Fn=(Ie+Ue)/2;Ot.push(new _d(Jt[3],Cn,Fn,Qe,Ue),new _d(Jt[2],xe,Fn,Cn,Ue),new _d(Jt[1],Cn,Ie,Qe,Fn),new _d(Jt[0],xe,Ie,Cn,Fn)),(Pn=(O>=Fn)<<1|m>=Cn)&&(Un=Ot[Ot.length-1],Ot[Ot.length-1]=Ot[Ot.length-1-Pn],Ot[Ot.length-1-Pn]=Un)}else{var mr=m-+this._x.call(null,Jt.data),hr=O-+this._y.call(null,Jt.data),ar=mr*mr+hr*hr;if(ar<M){var qr=Math.sqrt(M=ar);ne=m-qr,de=O-qr,dt=m+qr,$t=O+qr,U=Jt.data}}return U}function ty(m){if(isNaN(dt=+this._x.call(null,m))||isNaN($t=+this._y.call(null,m)))return this;var O,M=this._root,U,ne,de,xe=this._x0,Ie=this._y0,Qe=this._x1,Ue=this._y1,dt,$t,Ot,Jt,Un,Pn,Cn,Fn;if(!M)return this;if(M.length)for(;;){if((Un=dt>=(Ot=(xe+Qe)/2))?xe=Ot:Qe=Ot,(Pn=$t>=(Jt=(Ie+Ue)/2))?Ie=Jt:Ue=Jt,O=M,!(M=M[Cn=Pn<<1|Un]))return this;if(!M.length)break;(O[Cn+1&3]||O[Cn+2&3]||O[Cn+3&3])&&(U=O,Fn=Cn)}for(;M.data!==m;)if(ne=M,!(M=M.next))return this;return(de=M.next)&&delete M.next,ne?(de?ne.next=de:delete ne.next,this):O?(de?O[Cn]=de:delete O[Cn],(M=O[0]||O[1]||O[2]||O[3])&&M===(O[3]||O[2]||O[1]||O[0])&&!M.length&&(U?U[Fn]=M:this._root=M),this):(this._root=de,this)}function ny(m){for(var O=0,M=m.length;O<M;++O)this.remove(m[O]);return this}function ry(){return this._root}function iy(){var m=0;return this.visit(function(O){if(!O.length)do++m;while(O=O.next)}),m}function ay(m){var O=[],M,U=this._root,ne,de,xe,Ie,Qe;for(U&&O.push(new _d(U,this._x0,this._y0,this._x1,this._y1));M=O.pop();)if(!m(U=M.node,de=M.x0,xe=M.y0,Ie=M.x1,Qe=M.y1)&&U.length){var Ue=(de+Ie)/2,dt=(xe+Qe)/2;(ne=U[3])&&O.push(new _d(ne,Ue,dt,Ie,Qe)),(ne=U[2])&&O.push(new _d(ne,de,dt,Ue,Qe)),(ne=U[1])&&O.push(new _d(ne,Ue,xe,Ie,dt)),(ne=U[0])&&O.push(new _d(ne,de,xe,Ue,dt))}return this}function oy(m){var O=[],M=[],U;for(this._root&&O.push(new _d(this._root,this._x0,this._y0,this._x1,this._y1));U=O.pop();){var ne=U.node;if(ne.length){var de,xe=U.x0,Ie=U.y0,Qe=U.x1,Ue=U.y1,dt=(xe+Qe)/2,$t=(Ie+Ue)/2;(de=ne[0])&&O.push(new _d(de,xe,Ie,dt,$t)),(de=ne[1])&&O.push(new _d(de,dt,Ie,Qe,$t)),(de=ne[2])&&O.push(new _d(de,xe,$t,dt,Ue)),(de=ne[3])&&O.push(new _d(de,dt,$t,Qe,Ue))}M.push(U)}for(;U=M.pop();)m(U.node,U.x0,U.y0,U.x1,U.y1);return this}function sy(m){return m[0]}function uy(m){return arguments.length?(this._x=m,this):this._x}function ly(m){return m[1]}function cy(m){return arguments.length?(this._y=m,this):this._y}function Vv(m,O,M){var U=new wp(O??sy,M??ly,NaN,NaN,NaN,NaN);return m==null?U:U.addAll(m)}function wp(m,O,M,U,ne,de){this._x=m,this._y=O,this._x0=M,this._y0=U,this._x1=ne,this._y1=de,this._root=void 0}function Mg(m){for(var O={data:m.data},M=O;m=m.next;)M=M.next={data:m.data};return O}var Ld=Vv.prototype=wp.prototype;Ld.copy=function(){var m=new wp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),O=this._root,M,U;if(!O)return m;if(!O.length)return m._root=Mg(O),m;for(M=[{source:O,target:m._root=new Array(4)}];O=M.pop();)for(var ne=0;ne<4;++ne)(U=O.source[ne])&&(U.length?M.push({source:U,target:O.target[ne]=new Array(4)}):O.target[ne]=Mg(U));return m},Ld.add=Y0,Ld.addAll=X0,Ld.cover=Q0,Ld.data=J0,Ld.extent=q0,Ld.find=ey,Ld.remove=ty,Ld.removeAll=ny,Ld.root=ry,Ld.size=iy,Ld.visit=ay,Ld.visitAfter=oy,Ld.x=uy,Ld.y=cy;function od(m){return function(){return m}}function Eh(m){return(m()-.5)*1e-6}function Ig(m){return m.x+m.vx}function Dg(m){return m.y+m.vy}function fy(m){var O,M,U,ne=1,de=1;typeof m!="function"&&(m=od(m==null?1:+m));function xe(){for(var Ue,dt=O.length,$t,Ot,Jt,Un,Pn,Cn,Fn=0;Fn<de;++Fn)for($t=Vv(O,Ig,Dg).visitAfter(Ie),Ue=0;Ue<dt;++Ue)Ot=O[Ue],Pn=M[Ot.index],Cn=Pn*Pn,Jt=Ot.x+Ot.vx,Un=Ot.y+Ot.vy,$t.visit(mr);function mr(hr,ar,qr,Di,Xi){var ya=hr.data,io=hr.r,ga=Pn+io;if(ya){if(ya.index>Ot.index){var ba=Jt-ya.x-ya.vx,wo=Un-ya.y-ya.vy,so=ba*ba+wo*wo;so<ga*ga&&(ba===0&&(ba=Eh(U),so+=ba*ba),wo===0&&(wo=Eh(U),so+=wo*wo),so=(ga-(so=Math.sqrt(so)))/so*ne,Ot.vx+=(ba*=so)*(ga=(io*=io)/(Cn+io)),Ot.vy+=(wo*=so)*ga,ya.vx-=ba*(ga=1-ga),ya.vy-=wo*ga)}return}return ar>Jt+ga||Di<Jt-ga||qr>Un+ga||Xi<Un-ga}}function Ie(Ue){if(Ue.data)return Ue.r=M[Ue.data.index];for(var dt=Ue.r=0;dt<4;++dt)Ue[dt]&&Ue[dt].r>Ue.r&&(Ue.r=Ue[dt].r)}function Qe(){if(O){var Ue,dt=O.length,$t;for(M=new Array(dt),Ue=0;Ue<dt;++Ue)$t=O[Ue],M[$t.index]=+m($t,Ue,O)}}return xe.initialize=function(Ue,dt){O=Ue,U=dt,Qe()},xe.iterations=function(Ue){return arguments.length?(de=+Ue,xe):de},xe.strength=function(Ue){return arguments.length?(ne=+Ue,xe):ne},xe.radius=function(Ue){return arguments.length?(m=typeof Ue=="function"?Ue:od(+Ue),Qe(),xe):m},xe}function dy(m){return m.index}function _g(m,O){var M=m.get(O);if(!M)throw new Error("node not found: "+O);return M}function Pp(m){var O=dy,M=$t,U,ne=od(30),de,xe,Ie,Qe,Ue,dt=1;m==null&&(m=[]);function $t(Cn){return 1/Math.min(Ie[Cn.source.index],Ie[Cn.target.index])}function Ot(Cn){for(var Fn=0,mr=m.length;Fn<dt;++Fn)for(var hr=0,ar,qr,Di,Xi,ya,io,ga;hr<mr;++hr)ar=m[hr],qr=ar.source,Di=ar.target,Xi=Di.x+Di.vx-qr.x-qr.vx||Eh(Ue),ya=Di.y+Di.vy-qr.y-qr.vy||Eh(Ue),io=Math.sqrt(Xi*Xi+ya*ya),io=(io-de[hr])/io*Cn*U[hr],Xi*=io,ya*=io,Di.vx-=Xi*(ga=Qe[hr]),Di.vy-=ya*ga,qr.vx+=Xi*(ga=1-ga),qr.vy+=ya*ga}function Jt(){if(xe){var Cn,Fn=xe.length,mr=m.length,hr=new Map(xe.map((qr,Di)=>[O(qr,Di,xe),qr])),ar;for(Cn=0,Ie=new Array(Fn);Cn<mr;++Cn)ar=m[Cn],ar.index=Cn,typeof ar.source!="object"&&(ar.source=_g(hr,ar.source)),typeof ar.target!="object"&&(ar.target=_g(hr,ar.target)),Ie[ar.source.index]=(Ie[ar.source.index]||0)+1,Ie[ar.target.index]=(Ie[ar.target.index]||0)+1;for(Cn=0,Qe=new Array(mr);Cn<mr;++Cn)ar=m[Cn],Qe[Cn]=Ie[ar.source.index]/(Ie[ar.source.index]+Ie[ar.target.index]);U=new Array(mr),Un(),de=new Array(mr),Pn()}}function Un(){if(xe)for(var Cn=0,Fn=m.length;Cn<Fn;++Cn)U[Cn]=+M(m[Cn],Cn,m)}function Pn(){if(xe)for(var Cn=0,Fn=m.length;Cn<Fn;++Cn)de[Cn]=+ne(m[Cn],Cn,m)}return Ot.initialize=function(Cn,Fn){xe=Cn,Ue=Fn,Jt()},Ot.links=function(Cn){return arguments.length?(m=Cn,Jt(),Ot):m},Ot.id=function(Cn){return arguments.length?(O=Cn,Ot):O},Ot.iterations=function(Cn){return arguments.length?(dt=+Cn,Ot):dt},Ot.strength=function(Cn){return arguments.length?(M=typeof Cn=="function"?Cn:od(+Cn),Un(),Ot):M},Ot.distance=function(Cn){return arguments.length?(ne=typeof Cn=="function"?Cn:od(+Cn),Pn(),Ot):ne},Ot}const hy=1664525,vy=1013904223,Lg=4294967296;function jd(){let m=1;return()=>(m=(hy*m+vy)%Lg)/Lg}function Cp(m){return m.x}function py(m){return m.y}var gy=10,my=Math.PI*(3-Math.sqrt(5));function yy(m){var O,M=1,U=.001,ne=1-Math.pow(U,1/300),de=0,xe=.6,Ie=new Map,Qe=Qa($t),Ue=jn("tick","end"),dt=jd();m==null&&(m=[]);function $t(){Ot(),Ue.call("tick",O),M<U&&(Qe.stop(),Ue.call("end",O))}function Ot(Pn){var Cn,Fn=m.length,mr;Pn===void 0&&(Pn=1);for(var hr=0;hr<Pn;++hr)for(M+=(de-M)*ne,Ie.forEach(function(ar){ar(M)}),Cn=0;Cn<Fn;++Cn)mr=m[Cn],mr.fx==null?mr.x+=mr.vx*=xe:(mr.x=mr.fx,mr.vx=0),mr.fy==null?mr.y+=mr.vy*=xe:(mr.y=mr.fy,mr.vy=0);return O}function Jt(){for(var Pn=0,Cn=m.length,Fn;Pn<Cn;++Pn){if(Fn=m[Pn],Fn.index=Pn,Fn.fx!=null&&(Fn.x=Fn.fx),Fn.fy!=null&&(Fn.y=Fn.fy),isNaN(Fn.x)||isNaN(Fn.y)){var mr=gy*Math.sqrt(.5+Pn),hr=Pn*my;Fn.x=mr*Math.cos(hr),Fn.y=mr*Math.sin(hr)}(isNaN(Fn.vx)||isNaN(Fn.vy))&&(Fn.vx=Fn.vy=0)}}function Un(Pn){return Pn.initialize&&Pn.initialize(m,dt),Pn}return Jt(),O={tick:Ot,restart:function(){return Qe.restart($t),O},stop:function(){return Qe.stop(),O},nodes:function(Pn){return arguments.length?(m=Pn,Jt(),Ie.forEach(Un),O):m},alpha:function(Pn){return arguments.length?(M=+Pn,O):M},alphaMin:function(Pn){return arguments.length?(U=+Pn,O):U},alphaDecay:function(Pn){return arguments.length?(ne=+Pn,O):+ne},alphaTarget:function(Pn){return arguments.length?(de=+Pn,O):de},velocityDecay:function(Pn){return arguments.length?(xe=1-Pn,O):1-xe},randomSource:function(Pn){return arguments.length?(dt=Pn,Ie.forEach(Un),O):dt},force:function(Pn,Cn){return arguments.length>1?(Cn==null?Ie.delete(Pn):Ie.set(Pn,Un(Cn)),O):Ie.get(Pn)},find:function(Pn,Cn,Fn){var mr=0,hr=m.length,ar,qr,Di,Xi,ya;for(Fn==null?Fn=1/0:Fn*=Fn,mr=0;mr<hr;++mr)Xi=m[mr],ar=Pn-Xi.x,qr=Cn-Xi.y,Di=ar*ar+qr*qr,Di<Fn&&(ya=Xi,Fn=Di);return ya},on:function(Pn,Cn){return arguments.length>1?(Ue.on(Pn,Cn),O):Ue.on(Pn)}}}function xp(){var m,O,M,U,ne=od(-30),de,xe=1,Ie=1/0,Qe=.81;function Ue(Jt){var Un,Pn=m.length,Cn=Vv(m,Cp,py).visitAfter($t);for(U=Jt,Un=0;Un<Pn;++Un)O=m[Un],Cn.visit(Ot)}function dt(){if(m){var Jt,Un=m.length,Pn;for(de=new Array(Un),Jt=0;Jt<Un;++Jt)Pn=m[Jt],de[Pn.index]=+ne(Pn,Jt,m)}}function $t(Jt){var Un=0,Pn,Cn,Fn=0,mr,hr,ar;if(Jt.length){for(mr=hr=ar=0;ar<4;++ar)(Pn=Jt[ar])&&(Cn=Math.abs(Pn.value))&&(Un+=Pn.value,Fn+=Cn,mr+=Cn*Pn.x,hr+=Cn*Pn.y);Jt.x=mr/Fn,Jt.y=hr/Fn}else{Pn=Jt,Pn.x=Pn.data.x,Pn.y=Pn.data.y;do Un+=de[Pn.data.index];while(Pn=Pn.next)}Jt.value=Un}function Ot(Jt,Un,Pn,Cn){if(!Jt.value)return!0;var Fn=Jt.x-O.x,mr=Jt.y-O.y,hr=Cn-Un,ar=Fn*Fn+mr*mr;if(hr*hr/Qe<ar)return ar<Ie&&(Fn===0&&(Fn=Eh(M),ar+=Fn*Fn),mr===0&&(mr=Eh(M),ar+=mr*mr),ar<xe&&(ar=Math.sqrt(xe*ar)),O.vx+=Fn*Jt.value*U/ar,O.vy+=mr*Jt.value*U/ar),!0;if(Jt.length||ar>=Ie)return;(Jt.data!==O||Jt.next)&&(Fn===0&&(Fn=Eh(M),ar+=Fn*Fn),mr===0&&(mr=Eh(M),ar+=mr*mr),ar<xe&&(ar=Math.sqrt(xe*ar)));do Jt.data!==O&&(hr=de[Jt.data.index]*U/ar,O.vx+=Fn*hr,O.vy+=mr*hr);while(Jt=Jt.next)}return Ue.initialize=function(Jt,Un){m=Jt,M=Un,dt()},Ue.strength=function(Jt){return arguments.length?(ne=typeof Jt=="function"?Jt:od(+Jt),dt(),Ue):ne},Ue.distanceMin=function(Jt){return arguments.length?(xe=Jt*Jt,Ue):Math.sqrt(xe)},Ue.distanceMax=function(Jt){return arguments.length?(Ie=Jt*Jt,Ue):Math.sqrt(Ie)},Ue.theta=function(Jt){return arguments.length?(Qe=Jt*Jt,Ue):Math.sqrt(Qe)},Ue}function by(m,O,M){var U,ne=od(.1),de,xe;typeof m!="function"&&(m=od(+m)),O==null&&(O=0),M==null&&(M=0);function Ie(Ue){for(var dt=0,$t=U.length;dt<$t;++dt){var Ot=U[dt],Jt=Ot.x-O||1e-6,Un=Ot.y-M||1e-6,Pn=Math.sqrt(Jt*Jt+Un*Un),Cn=(xe[dt]-Pn)*de[dt]*Ue/Pn;Ot.vx+=Jt*Cn,Ot.vy+=Un*Cn}}function Qe(){if(U){var Ue,dt=U.length;for(de=new Array(dt),xe=new Array(dt),Ue=0;Ue<dt;++Ue)xe[Ue]=+m(U[Ue],Ue,U),de[Ue]=isNaN(xe[Ue])?0:+ne(U[Ue],Ue,U)}}return Ie.initialize=function(Ue){U=Ue,Qe()},Ie.strength=function(Ue){return arguments.length?(ne=typeof Ue=="function"?Ue:od(+Ue),Qe(),Ie):ne},Ie.radius=function(Ue){return arguments.length?(m=typeof Ue=="function"?Ue:od(+Ue),Qe(),Ie):m},Ie.x=function(Ue){return arguments.length?(O=+Ue,Ie):O},Ie.y=function(Ue){return arguments.length?(M=+Ue,Ie):M},Ie}function Tp(m){var O=od(.1),M,U,ne;typeof m!="function"&&(m=od(m==null?0:+m));function de(Ie){for(var Qe=0,Ue=M.length,dt;Qe<Ue;++Qe)dt=M[Qe],dt.vx+=(ne[Qe]-dt.x)*U[Qe]*Ie}function xe(){if(M){var Ie,Qe=M.length;for(U=new Array(Qe),ne=new Array(Qe),Ie=0;Ie<Qe;++Ie)U[Ie]=isNaN(ne[Ie]=+m(M[Ie],Ie,M))?0:+O(M[Ie],Ie,M)}}return de.initialize=function(Ie){M=Ie,xe()},de.strength=function(Ie){return arguments.length?(O=typeof Ie=="function"?Ie:od(+Ie),xe(),de):O},de.x=function(Ie){return arguments.length?(m=typeof Ie=="function"?Ie:od(+Ie),xe(),de):m},de}function Ey(m){var O=od(.1),M,U,ne;typeof m!="function"&&(m=od(m==null?0:+m));function de(Ie){for(var Qe=0,Ue=M.length,dt;Qe<Ue;++Qe)dt=M[Qe],dt.vy+=(ne[Qe]-dt.y)*U[Qe]*Ie}function xe(){if(M){var Ie,Qe=M.length;for(U=new Array(Qe),ne=new Array(Qe),Ie=0;Ie<Qe;++Ie)U[Ie]=isNaN(ne[Ie]=+m(M[Ie],Ie,M))?0:+O(M[Ie],Ie,M)}}return de.initialize=function(Ie){M=Ie,xe()},de.strength=function(Ie){return arguments.length?(O=typeof Ie=="function"?Ie:od(+Ie),xe(),de):O},de.y=function(Ie){return arguments.length?(m=typeof Ie=="function"?Ie:od(+Ie),xe(),de):m},de}function Sy(m){return Math.abs(m=Math.round(m))>=1e21?m.toLocaleString("en").replace(/,/g,""):m.toString(10)}function Gv(m,O){if((M=(m=O?m.toExponential(O-1):m.toExponential()).indexOf("e"))<0)return null;var M,U=m.slice(0,M);return[U.length>1?U[0]+U.slice(2):U,+m.slice(M+1)]}function hv(m){return m=Gv(Math.abs(m)),m?m[1]:NaN}function Ng(m,O){return function(M,U){for(var ne=M.length,de=[],xe=0,Ie=m[0],Qe=0;ne>0&&Ie>0&&(Qe+Ie+1>U&&(Ie=Math.max(1,U-Qe)),de.push(M.substring(ne-=Ie,ne+Ie)),!((Qe+=Ie+1)>U));)Ie=m[xe=(xe+1)%m.length];return de.reverse().join(O)}}function Oy(m){return function(O){return O.replace(/[0-9]/g,function(M){return m[+M]})}}var wy=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vv(m){if(!(O=wy.exec(m)))throw new Error("invalid format: "+m);var O;return new pv({fill:O[1],align:O[2],sign:O[3],symbol:O[4],zero:O[5],width:O[6],comma:O[7],precision:O[8]&&O[8].slice(1),trim:O[9],type:O[10]})}vv.prototype=pv.prototype;function pv(m){this.fill=m.fill===void 0?" ":m.fill+"",this.align=m.align===void 0?">":m.align+"",this.sign=m.sign===void 0?"-":m.sign+"",this.symbol=m.symbol===void 0?"":m.symbol+"",this.zero=!!m.zero,this.width=m.width===void 0?void 0:+m.width,this.comma=!!m.comma,this.precision=m.precision===void 0?void 0:+m.precision,this.trim=!!m.trim,this.type=m.type===void 0?"":m.type+""}pv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ap(m){e:for(var O=m.length,M=1,U=-1,ne;M<O;++M)switch(m[M]){case".":U=ne=M;break;case"0":U===0&&(U=M),ne=M;break;default:if(!+m[M])break e;U>0&&(U=0);break}return U>0?m.slice(0,U)+m.slice(ne+1):m}var Fg;function Py(m,O){var M=Gv(m,O);if(!M)return m+"";var U=M[0],ne=M[1],de=ne-(Fg=Math.max(-8,Math.min(8,Math.floor(ne/3)))*3)+1,xe=U.length;return de===xe?U:de>xe?U+new Array(de-xe+1).join("0"):de>0?U.slice(0,de)+"."+U.slice(de):"0."+new Array(1-de).join("0")+Gv(m,Math.max(0,O+de-1))[0]}function kg(m,O){var M=Gv(m,O);if(!M)return m+"";var U=M[0],ne=M[1];return ne<0?"0."+new Array(-ne).join("0")+U:U.length>ne+1?U.slice(0,ne+1)+"."+U.slice(ne+1):U+new Array(ne-U.length+2).join("0")}const Bg={"%":(m,O)=>(m*100).toFixed(O),b:m=>Math.round(m).toString(2),c:m=>m+"",d:Sy,e:(m,O)=>m.toExponential(O),f:(m,O)=>m.toFixed(O),g:(m,O)=>m.toPrecision(O),o:m=>Math.round(m).toString(8),p:(m,O)=>kg(m*100,O),r:kg,s:Py,X:m=>Math.round(m).toString(16).toUpperCase(),x:m=>Math.round(m).toString(16)};function $g(m){return m}var jg=Array.prototype.map,Ug=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Wg(m){var O=m.grouping===void 0||m.thousands===void 0?$g:Ng(jg.call(m.grouping,Number),m.thousands+""),M=m.currency===void 0?"":m.currency[0]+"",U=m.currency===void 0?"":m.currency[1]+"",ne=m.decimal===void 0?".":m.decimal+"",de=m.numerals===void 0?$g:Oy(jg.call(m.numerals,String)),xe=m.percent===void 0?"%":m.percent+"",Ie=m.minus===void 0?"\u2212":m.minus+"",Qe=m.nan===void 0?"NaN":m.nan+"";function Ue($t){$t=vv($t);var Ot=$t.fill,Jt=$t.align,Un=$t.sign,Pn=$t.symbol,Cn=$t.zero,Fn=$t.width,mr=$t.comma,hr=$t.precision,ar=$t.trim,qr=$t.type;qr==="n"?(mr=!0,qr="g"):Bg[qr]||(hr===void 0&&(hr=12),ar=!0,qr="g"),(Cn||Ot==="0"&&Jt==="=")&&(Cn=!0,Ot="0",Jt="=");var Di=Pn==="$"?M:Pn==="#"&&/[boxX]/.test(qr)?"0"+qr.toLowerCase():"",Xi=Pn==="$"?U:/[%p]/.test(qr)?xe:"",ya=Bg[qr],io=/[defgprs%]/.test(qr);hr=hr===void 0?6:/[gprs]/.test(qr)?Math.max(1,Math.min(21,hr)):Math.max(0,Math.min(20,hr));function ga(ba){var wo=Di,so=Xi,Rr,Ii,zi;if(qr==="c")so=ya(ba)+so,ba="";else{ba=+ba;var Ra=ba<0||1/ba<0;if(ba=isNaN(ba)?Qe:ya(Math.abs(ba),hr),ar&&(ba=Ap(ba)),Ra&&+ba==0&&Un!=="+"&&(Ra=!1),wo=(Ra?Un==="("?Un:Ie:Un==="-"||Un==="("?"":Un)+wo,so=(qr==="s"?Ug[8+Fg/3]:"")+so+(Ra&&Un==="("?")":""),io){for(Rr=-1,Ii=ba.length;++Rr<Ii;)if(zi=ba.charCodeAt(Rr),48>zi||zi>57){so=(zi===46?ne+ba.slice(Rr+1):ba.slice(Rr))+so,ba=ba.slice(0,Rr);break}}}mr&&!Cn&&(ba=O(ba,1/0));var Vi=wo.length+ba.length+so.length,Na=Vi<Fn?new Array(Fn-Vi+1).join(Ot):"";switch(mr&&Cn&&(ba=O(Na+ba,Na.length?Fn-so.length:1/0),Na=""),Jt){case"<":ba=wo+ba+so+Na;break;case"=":ba=wo+Na+ba+so;break;case"^":ba=Na.slice(0,Vi=Na.length>>1)+wo+ba+so+Na.slice(Vi);break;default:ba=Na+wo+ba+so;break}return de(ba)}return ga.toString=function(){return $t+""},ga}function dt($t,Ot){var Jt=Ue(($t=vv($t),$t.type="f",$t)),Un=Math.max(-8,Math.min(8,Math.floor(hv(Ot)/3)))*3,Pn=Math.pow(10,-Un),Cn=Ug[8+Un/3];return function(Fn){return Jt(Pn*Fn)+Cn}}return{format:Ue,formatPrefix:dt}}var Zv,Yv,Rp;zg({thousands:",",grouping:[3],currency:["$",""]});function zg(m){return Zv=Wg(m),Yv=Zv.format,Rp=Zv.formatPrefix,Zv}function Hg(m){return Math.max(0,-hv(Math.abs(m)))}function Kg(m,O){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(hv(O)/3)))*3-hv(Math.abs(m)))}function Vg(m,O){return m=Math.abs(m),O=Math.abs(O)-m,Math.max(0,hv(O)-hv(m))+1}var Kl=1e-6,Av=1e-12,Fc=Math.PI,Gf=Fc/2,Xv=Fc/4,Nd=Fc*2,Q=180/Fc,be=Fc/180,Pt=Math.abs,Bn=Math.atan,Xr=Math.atan2,Oi=Math.cos,Za=Math.ceil,po=Math.exp,Wo=Math.floor,$s=Math.hypot,js=Math.log,au=Math.pow,ms=Math.sin,dl=Math.sign||function(m){return m>0?1:m<0?-1:0},El=Math.sqrt,Sc=Math.tan;function Xl(m){return m>1?0:m<-1?Fc:Math.acos(m)}function Ql(m){return m>1?Gf:m<-1?-Gf:Math.asin(m)}function Uc(m){return(m=ms(m/2))*m}function Wc(){}function pd(m,O){m&&Zf.hasOwnProperty(m.type)&&Zf[m.type](m,O)}var Ud={Feature:function(m,O){pd(m.geometry,O)},FeatureCollection:function(m,O){for(var M=m.features,U=-1,ne=M.length;++U<ne;)pd(M[U].geometry,O)}},Zf={Sphere:function(m,O){O.sphere()},Point:function(m,O){m=m.coordinates,O.point(m[0],m[1],m[2])},MultiPoint:function(m,O){for(var M=m.coordinates,U=-1,ne=M.length;++U<ne;)m=M[U],O.point(m[0],m[1],m[2])},LineString:function(m,O){Yd(m.coordinates,O,0)},MultiLineString:function(m,O){for(var M=m.coordinates,U=-1,ne=M.length;++U<ne;)Yd(M[U],O,0)},Polygon:function(m,O){Sh(m.coordinates,O)},MultiPolygon:function(m,O){for(var M=m.coordinates,U=-1,ne=M.length;++U<ne;)Sh(M[U],O)},GeometryCollection:function(m,O){for(var M=m.geometries,U=-1,ne=M.length;++U<ne;)pd(M[U],O)}};function Yd(m,O,M){var U=-1,ne=m.length-M,de;for(O.lineStart();++U<ne;)de=m[U],O.point(de[0],de[1],de[2]);O.lineEnd()}function Sh(m,O){var M=-1,U=m.length;for(O.polygonStart();++M<U;)Yd(m[M],O,1);O.polygonEnd()}function oh(m,O){m&&Ud.hasOwnProperty(m.type)?Ud[m.type](m,O):pd(m,O)}var Gg=new q,Zg=new q,i1,a1,Cy,xy,Ty,$h={point:Wc,lineStart:Wc,lineEnd:Wc,polygonStart:function(){Gg=new q,$h.lineStart=XO,$h.lineEnd=QO},polygonEnd:function(){var m=+Gg;Zg.add(m<0?Nd+m:m),this.lineStart=this.lineEnd=this.point=Wc},sphere:function(){Zg.add(Nd)}};function XO(){$h.point=JO}function QO(){o1(i1,a1)}function JO(m,O){$h.point=o1,i1=m,a1=O,m*=be,O*=be,Cy=m,xy=Oi(O=O/2+Xv),Ty=ms(O)}function o1(m,O){m*=be,O*=be,O=O/2+Xv;var M=m-Cy,U=M>=0?1:-1,ne=U*M,de=Oi(O),xe=ms(O),Ie=Ty*xe,Qe=xy*de+Ie*Oi(ne),Ue=Ie*U*ms(ne);Gg.add(Xr(Ue,Qe)),Cy=m,xy=de,Ty=xe}function qO(m){return Zg=new q,oh(m,$h),Zg*2}function Yg(m){return[Xr(m[1],m[0]),Ql(m[2])]}function Rv(m){var O=m[0],M=m[1],U=Oi(M);return[U*Oi(O),U*ms(O),ms(M)]}function Xg(m,O){return m[0]*O[0]+m[1]*O[1]+m[2]*O[2]}function Qv(m,O){return[m[1]*O[2]-m[2]*O[1],m[2]*O[0]-m[0]*O[2],m[0]*O[1]-m[1]*O[0]]}function Ay(m,O){m[0]+=O[0],m[1]+=O[1],m[2]+=O[2]}function Qg(m,O){return[m[0]*O,m[1]*O,m[2]*O]}function Jg(m){var O=El(m[0]*m[0]+m[1]*m[1]+m[2]*m[2]);m[0]/=O,m[1]/=O,m[2]/=O}var ed,sh,id,dh,Mv,s1,u1,Jv,Mp,gv,Xh,Qh={point:Ry,lineStart:c1,lineEnd:f1,polygonStart:function(){Qh.point=d1,Qh.lineStart=ew,Qh.lineEnd=tw,Mp=new q,$h.polygonStart()},polygonEnd:function(){$h.polygonEnd(),Qh.point=Ry,Qh.lineStart=c1,Qh.lineEnd=f1,Gg<0?(ed=-(id=180),sh=-(dh=90)):Mp>Kl?dh=90:Mp<-Kl&&(sh=-90),Xh[0]=ed,Xh[1]=id},sphere:function(){ed=-(id=180),sh=-(dh=90)}};function Ry(m,O){gv.push(Xh=[ed=m,id=m]),O<sh&&(sh=O),O>dh&&(dh=O)}function l1(m,O){var M=Rv([m*be,O*be]);if(Jv){var U=Qv(Jv,M),ne=[U[1],-U[0],0],de=Qv(ne,U);Jg(de),de=Yg(de);var xe=m-Mv,Ie=xe>0?1:-1,Qe=de[0]*Q*Ie,Ue,dt=Pt(xe)>180;dt^(Ie*Mv<Qe&&Qe<Ie*m)?(Ue=de[1]*Q,Ue>dh&&(dh=Ue)):(Qe=(Qe+360)%360-180,dt^(Ie*Mv<Qe&&Qe<Ie*m)?(Ue=-de[1]*Q,Ue<sh&&(sh=Ue)):(O<sh&&(sh=O),O>dh&&(dh=O))),dt?m<Mv?hh(ed,m)>hh(ed,id)&&(id=m):hh(m,id)>hh(ed,id)&&(ed=m):id>=ed?(m<ed&&(ed=m),m>id&&(id=m)):m>Mv?hh(ed,m)>hh(ed,id)&&(id=m):hh(m,id)>hh(ed,id)&&(ed=m)}else gv.push(Xh=[ed=m,id=m]);O<sh&&(sh=O),O>dh&&(dh=O),Jv=M,Mv=m}function c1(){Qh.point=l1}function f1(){Xh[0]=ed,Xh[1]=id,Qh.point=Ry,Jv=null}function d1(m,O){if(Jv){var M=m-Mv;Mp.add(Pt(M)>180?M+(M>0?360:-360):M)}else s1=m,u1=O;$h.point(m,O),l1(m,O)}function ew(){$h.lineStart()}function tw(){d1(s1,u1),$h.lineEnd(),Pt(Mp)>Kl&&(ed=-(id=180)),Xh[0]=ed,Xh[1]=id,Jv=null}function hh(m,O){return(O-=m)<0?O+360:O}function nw(m,O){return m[0]-O[0]}function h1(m,O){return m[0]<=m[1]?m[0]<=O&&O<=m[1]:O<m[0]||m[1]<O}function rw(m){var O,M,U,ne,de,xe,Ie;if(dh=id=-(ed=sh=1/0),gv=[],oh(m,Qh),M=gv.length){for(gv.sort(nw),O=1,U=gv[0],de=[U];O<M;++O)ne=gv[O],h1(U,ne[0])||h1(U,ne[1])?(hh(U[0],ne[1])>hh(U[0],U[1])&&(U[1]=ne[1]),hh(ne[0],U[1])>hh(U[0],U[1])&&(U[0]=ne[0])):de.push(U=ne);for(xe=-1/0,M=de.length-1,O=0,U=de[M];O<=M;U=ne,++O)ne=de[O],(Ie=hh(U[1],ne[0]))>xe&&(xe=Ie,ed=ne[0],id=U[1])}return gv=Xh=null,ed===1/0||sh===1/0?[[NaN,NaN],[NaN,NaN]]:[[ed,sh],[id,dh]]}var Ip,qg,em,tm,nm,rm,im,am,My,Iy,Dy,v1,p1,Xd,Qd,Jd,_h={sphere:Wc,point:_y,lineStart:g1,lineEnd:m1,polygonStart:function(){_h.lineStart=ow,_h.lineEnd=sw},polygonEnd:function(){_h.lineStart=g1,_h.lineEnd=m1}};function _y(m,O){m*=be,O*=be;var M=Oi(O);Dp(M*Oi(m),M*ms(m),ms(O))}function Dp(m,O,M){++Ip,em+=(m-em)/Ip,tm+=(O-tm)/Ip,nm+=(M-nm)/Ip}function g1(){_h.point=iw}function iw(m,O){m*=be,O*=be;var M=Oi(O);Xd=M*Oi(m),Qd=M*ms(m),Jd=ms(O),_h.point=aw,Dp(Xd,Qd,Jd)}function aw(m,O){m*=be,O*=be;var M=Oi(O),U=M*Oi(m),ne=M*ms(m),de=ms(O),xe=Xr(El((xe=Qd*de-Jd*ne)*xe+(xe=Jd*U-Xd*de)*xe+(xe=Xd*ne-Qd*U)*xe),Xd*U+Qd*ne+Jd*de);qg+=xe,rm+=xe*(Xd+(Xd=U)),im+=xe*(Qd+(Qd=ne)),am+=xe*(Jd+(Jd=de)),Dp(Xd,Qd,Jd)}function m1(){_h.point=_y}function ow(){_h.point=uw}function sw(){y1(v1,p1),_h.point=_y}function uw(m,O){v1=m,p1=O,m*=be,O*=be,_h.point=y1;var M=Oi(O);Xd=M*Oi(m),Qd=M*ms(m),Jd=ms(O),Dp(Xd,Qd,Jd)}function y1(m,O){m*=be,O*=be;var M=Oi(O),U=M*Oi(m),ne=M*ms(m),de=ms(O),xe=Qd*de-Jd*ne,Ie=Jd*U-Xd*de,Qe=Xd*ne-Qd*U,Ue=$s(xe,Ie,Qe),dt=Ql(Ue),$t=Ue&&-dt/Ue;My.add($t*xe),Iy.add($t*Ie),Dy.add($t*Qe),qg+=dt,rm+=dt*(Xd+(Xd=U)),im+=dt*(Qd+(Qd=ne)),am+=dt*(Jd+(Jd=de)),Dp(Xd,Qd,Jd)}function lw(m){Ip=qg=em=tm=nm=rm=im=am=0,My=new q,Iy=new q,Dy=new q,oh(m,_h);var O=+My,M=+Iy,U=+Dy,ne=$s(O,M,U);return ne<Av&&(O=rm,M=im,U=am,qg<Kl&&(O=em,M=tm,U=nm),ne=$s(O,M,U),ne<Av)?[NaN,NaN]:[Xr(M,O)*Q,Ql(U/ne)*Q]}function qv(m){return function(){return m}}function Ly(m,O){function M(U,ne){return U=m(U,ne),O(U[0],U[1])}return m.invert&&O.invert&&(M.invert=function(U,ne){return U=O.invert(U,ne),U&&m.invert(U[0],U[1])}),M}function Ny(m,O){return Pt(m)>Fc&&(m-=Math.round(m/Nd)*Nd),[m,O]}Ny.invert=Ny;function Fy(m,O,M){return(m%=Nd)?O||M?Ly(E1(m),S1(O,M)):E1(m):O||M?S1(O,M):Ny}function b1(m){return function(O,M){return O+=m,Pt(O)>Fc&&(O-=Math.round(O/Nd)*Nd),[O,M]}}function E1(m){var O=b1(m);return O.invert=b1(-m),O}function S1(m,O){var M=Oi(m),U=ms(m),ne=Oi(O),de=ms(O);function xe(Ie,Qe){var Ue=Oi(Qe),dt=Oi(Ie)*Ue,$t=ms(Ie)*Ue,Ot=ms(Qe),Jt=Ot*M+dt*U;return[Xr($t*ne-Jt*de,dt*M-Ot*U),Ql(Jt*ne+$t*de)]}return xe.invert=function(Ie,Qe){var Ue=Oi(Qe),dt=Oi(Ie)*Ue,$t=ms(Ie)*Ue,Ot=ms(Qe),Jt=Ot*ne-$t*de;return[Xr($t*ne+Ot*de,dt*M+Jt*U),Ql(Jt*M-dt*U)]},xe}function O1(m){m=Fy(m[0]*be,m[1]*be,m.length>2?m[2]*be:0);function O(M){return M=m(M[0]*be,M[1]*be),M[0]*=Q,M[1]*=Q,M}return O.invert=function(M){return M=m.invert(M[0]*be,M[1]*be),M[0]*=Q,M[1]*=Q,M},O}function w1(m,O,M,U,ne,de){if(M){var xe=Oi(O),Ie=ms(O),Qe=U*M;ne==null?(ne=O+U*Nd,de=O-Qe/2):(ne=P1(xe,ne),de=P1(xe,de),(U>0?ne<de:ne>de)&&(ne+=U*Nd));for(var Ue,dt=ne;U>0?dt>de:dt<de;dt-=Qe)Ue=Yg([xe,-Ie*Oi(dt),-Ie*ms(dt)]),m.point(Ue[0],Ue[1])}}function P1(m,O){O=Rv(O),O[0]-=m,Jg(O);var M=Xl(-O[1]);return((-O[2]<0?-M:M)+Nd-Kl)%Nd}function cw(){var m=qv([0,0]),O=qv(90),M=qv(6),U,ne,de={point:xe};function xe(Qe,Ue){U.push(Qe=ne(Qe,Ue)),Qe[0]*=Q,Qe[1]*=Q}function Ie(){var Qe=m.apply(this,arguments),Ue=O.apply(this,arguments)*be,dt=M.apply(this,arguments)*be;return U=[],ne=Fy(-Qe[0]*be,-Qe[1]*be,0).invert,w1(de,Ue,dt,1),Qe={type:"Polygon",coordinates:[U]},U=ne=null,Qe}return Ie.center=function(Qe){return arguments.length?(m=typeof Qe=="function"?Qe:qv([+Qe[0],+Qe[1]]),Ie):m},Ie.radius=function(Qe){return arguments.length?(O=typeof Qe=="function"?Qe:qv(+Qe),Ie):O},Ie.precision=function(Qe){return arguments.length?(M=typeof Qe=="function"?Qe:qv(+Qe),Ie):M},Ie}function C1(){var m=[],O;return{point:function(M,U,ne){O.push([M,U,ne])},lineStart:function(){m.push(O=[])},lineEnd:Wc,rejoin:function(){m.length>1&&m.push(m.pop().concat(m.shift()))},result:function(){var M=m;return m=[],O=null,M}}}function om(m,O){return Pt(m[0]-O[0])<Kl&&Pt(m[1]-O[1])<Kl}function sm(m,O,M,U){this.x=m,this.z=O,this.o=M,this.e=U,this.v=!1,this.n=this.p=null}function x1(m,O,M,U,ne){var de=[],xe=[],Ie,Qe;if(m.forEach(function(Un){if(!((Pn=Un.length-1)<=0)){var Pn,Cn=Un[0],Fn=Un[Pn],mr;if(om(Cn,Fn)){if(!Cn[2]&&!Fn[2]){for(ne.lineStart(),Ie=0;Ie<Pn;++Ie)ne.point((Cn=Un[Ie])[0],Cn[1]);ne.lineEnd();return}Fn[0]+=2*Kl}de.push(mr=new sm(Cn,Un,null,!0)),xe.push(mr.o=new sm(Cn,null,mr,!1)),de.push(mr=new sm(Fn,Un,null,!1)),xe.push(mr.o=new sm(Fn,null,mr,!0))}}),!!de.length){for(xe.sort(O),T1(de),T1(xe),Ie=0,Qe=xe.length;Ie<Qe;++Ie)xe[Ie].e=M=!M;for(var Ue=de[0],dt,$t;;){for(var Ot=Ue,Jt=!0;Ot.v;)if((Ot=Ot.n)===Ue)return;dt=Ot.z,ne.lineStart();do{if(Ot.v=Ot.o.v=!0,Ot.e){if(Jt)for(Ie=0,Qe=dt.length;Ie<Qe;++Ie)ne.point(($t=dt[Ie])[0],$t[1]);else U(Ot.x,Ot.n.x,1,ne);Ot=Ot.n}else{if(Jt)for(dt=Ot.p.z,Ie=dt.length-1;Ie>=0;--Ie)ne.point(($t=dt[Ie])[0],$t[1]);else U(Ot.x,Ot.p.x,-1,ne);Ot=Ot.p}Ot=Ot.o,dt=Ot.z,Jt=!Jt}while(!Ot.v);ne.lineEnd()}}}function T1(m){if(O=m.length){for(var O,M=0,U=m[0],ne;++M<O;)U.n=ne=m[M],ne.p=U,U=ne;U.n=ne=m[0],ne.p=U}}function ky(m){return Pt(m[0])<=Fc?m[0]:dl(m[0])*((Pt(m[0])+Fc)%Nd-Fc)}function A1(m,O){var M=ky(O),U=O[1],ne=ms(U),de=[ms(M),-Oi(M),0],xe=0,Ie=0,Qe=new q;ne===1?U=Gf+Kl:ne===-1&&(U=-Gf-Kl);for(var Ue=0,dt=m.length;Ue<dt;++Ue)if(Ot=($t=m[Ue]).length)for(var $t,Ot,Jt=$t[Ot-1],Un=ky(Jt),Pn=Jt[1]/2+Xv,Cn=ms(Pn),Fn=Oi(Pn),mr=0;mr<Ot;++mr,Un=ar,Cn=Di,Fn=Xi,Jt=hr){var hr=$t[mr],ar=ky(hr),qr=hr[1]/2+Xv,Di=ms(qr),Xi=Oi(qr),ya=ar-Un,io=ya>=0?1:-1,ga=io*ya,ba=ga>Fc,wo=Cn*Di;if(Qe.add(Xr(wo*io*ms(ga),Fn*Xi+wo*Oi(ga))),xe+=ba?ya+io*Nd:ya,ba^Un>=M^ar>=M){var so=Qv(Rv(Jt),Rv(hr));Jg(so);var Rr=Qv(de,so);Jg(Rr);var Ii=(ba^ya>=0?-1:1)*Ql(Rr[2]);(U>Ii||U===Ii&&(so[0]||so[1]))&&(Ie+=ba^ya>=0?1:-1)}}return(xe<-Kl||xe<Kl&&Qe<-Av)^Ie&1}function R1(m,O,M,U){return function(ne){var de=O(ne),xe=C1(),Ie=O(xe),Qe=!1,Ue,dt,$t,Ot={point:Jt,lineStart:Pn,lineEnd:Cn,polygonStart:function(){Ot.point=Fn,Ot.lineStart=mr,Ot.lineEnd=hr,dt=[],Ue=[]},polygonEnd:function(){Ot.point=Jt,Ot.lineStart=Pn,Ot.lineEnd=Cn,dt=rn(dt);var ar=A1(Ue,U);dt.length?(Qe||(ne.polygonStart(),Qe=!0),x1(dt,dw,ar,M,ne)):ar&&(Qe||(ne.polygonStart(),Qe=!0),ne.lineStart(),M(null,null,1,ne),ne.lineEnd()),Qe&&(ne.polygonEnd(),Qe=!1),dt=Ue=null},sphere:function(){ne.polygonStart(),ne.lineStart(),M(null,null,1,ne),ne.lineEnd(),ne.polygonEnd()}};function Jt(ar,qr){m(ar,qr)&&ne.point(ar,qr)}function Un(ar,qr){de.point(ar,qr)}function Pn(){Ot.point=Un,de.lineStart()}function Cn(){Ot.point=Jt,de.lineEnd()}function Fn(ar,qr){$t.push([ar,qr]),Ie.point(ar,qr)}function mr(){Ie.lineStart(),$t=[]}function hr(){Fn($t[0][0],$t[0][1]),Ie.lineEnd();var ar=Ie.clean(),qr=xe.result(),Di,Xi=qr.length,ya,io,ga;if($t.pop(),Ue.push($t),$t=null,!!Xi){if(ar&1){if(io=qr[0],(ya=io.length-1)>0){for(Qe||(ne.polygonStart(),Qe=!0),ne.lineStart(),Di=0;Di<ya;++Di)ne.point((ga=io[Di])[0],ga[1]);ne.lineEnd()}return}Xi>1&&ar&2&&qr.push(qr.pop().concat(qr.shift())),dt.push(qr.filter(fw))}}return Ot}}function fw(m){return m.length>1}function dw(m,O){return((m=m.x)[0]<0?m[1]-Gf-Kl:Gf-m[1])-((O=O.x)[0]<0?O[1]-Gf-Kl:Gf-O[1])}const By=R1(function(){return!0},hw,pw,[-Fc,-Gf]);function hw(m){var O=NaN,M=NaN,U=NaN,ne;return{lineStart:function(){m.lineStart(),ne=1},point:function(de,xe){var Ie=de>0?Fc:-Fc,Qe=Pt(de-O);Pt(Qe-Fc)<Kl?(m.point(O,M=(M+xe)/2>0?Gf:-Gf),m.point(U,M),m.lineEnd(),m.lineStart(),m.point(Ie,M),m.point(de,M),ne=0):U!==Ie&&Qe>=Fc&&(Pt(O-U)<Kl&&(O-=U*Kl),Pt(de-Ie)<Kl&&(de-=Ie*Kl),M=vw(O,M,de,xe),m.point(U,M),m.lineEnd(),m.lineStart(),m.point(Ie,M),ne=0),m.point(O=de,M=xe),U=Ie},lineEnd:function(){m.lineEnd(),O=M=NaN},clean:function(){return 2-ne}}}function vw(m,O,M,U){var ne,de,xe=ms(m-M);return Pt(xe)>Kl?Bn((ms(O)*(de=Oi(U))*ms(M)-ms(U)*(ne=Oi(O))*ms(m))/(ne*de*xe)):(O+U)/2}function pw(m,O,M,U){var ne;if(m==null)ne=M*Gf,U.point(-Fc,ne),U.point(0,ne),U.point(Fc,ne),U.point(Fc,0),U.point(Fc,-ne),U.point(0,-ne),U.point(-Fc,-ne),U.point(-Fc,0),U.point(-Fc,ne);else if(Pt(m[0]-O[0])>Kl){var de=m[0]<O[0]?Fc:-Fc;ne=M*de/2,U.point(-de,ne),U.point(0,ne),U.point(de,ne)}else U.point(O[0],O[1])}function M1(m){var O=Oi(m),M=6*be,U=O>0,ne=Pt(O)>Kl;function de(dt,$t,Ot,Jt){w1(Jt,m,M,Ot,dt,$t)}function xe(dt,$t){return Oi(dt)*Oi($t)>O}function Ie(dt){var $t,Ot,Jt,Un,Pn;return{lineStart:function(){Un=Jt=!1,Pn=1},point:function(Cn,Fn){var mr=[Cn,Fn],hr,ar=xe(Cn,Fn),qr=U?ar?0:Ue(Cn,Fn):ar?Ue(Cn+(Cn<0?Fc:-Fc),Fn):0;if(!$t&&(Un=Jt=ar)&&dt.lineStart(),ar!==Jt&&(hr=Qe($t,mr),(!hr||om($t,hr)||om(mr,hr))&&(mr[2]=1)),ar!==Jt)Pn=0,ar?(dt.lineStart(),hr=Qe(mr,$t),dt.point(hr[0],hr[1])):(hr=Qe($t,mr),dt.point(hr[0],hr[1],2),dt.lineEnd()),$t=hr;else if(ne&&$t&&U^ar){var Di;!(qr&Ot)&&(Di=Qe(mr,$t,!0))&&(Pn=0,U?(dt.lineStart(),dt.point(Di[0][0],Di[0][1]),dt.point(Di[1][0],Di[1][1]),dt.lineEnd()):(dt.point(Di[1][0],Di[1][1]),dt.lineEnd(),dt.lineStart(),dt.point(Di[0][0],Di[0][1],3)))}ar&&(!$t||!om($t,mr))&&dt.point(mr[0],mr[1]),$t=mr,Jt=ar,Ot=qr},lineEnd:function(){Jt&&dt.lineEnd(),$t=null},clean:function(){return Pn|(Un&&Jt)<<1}}}function Qe(dt,$t,Ot){var Jt=Rv(dt),Un=Rv($t),Pn=[1,0,0],Cn=Qv(Jt,Un),Fn=Xg(Cn,Cn),mr=Cn[0],hr=Fn-mr*mr;if(!hr)return!Ot&&dt;var ar=O*Fn/hr,qr=-O*mr/hr,Di=Qv(Pn,Cn),Xi=Qg(Pn,ar),ya=Qg(Cn,qr);Ay(Xi,ya);var io=Di,ga=Xg(Xi,io),ba=Xg(io,io),wo=ga*ga-ba*(Xg(Xi,Xi)-1);if(!(wo<0)){var so=El(wo),Rr=Qg(io,(-ga-so)/ba);if(Ay(Rr,Xi),Rr=Yg(Rr),!Ot)return Rr;var Ii=dt[0],zi=$t[0],Ra=dt[1],Vi=$t[1],Na;zi<Ii&&(Na=Ii,Ii=zi,zi=Na);var oa=zi-Ii,fo=Pt(oa-Fc)<Kl,Ro=fo||oa<Kl;if(!fo&&Vi<Ra&&(Na=Ra,Ra=Vi,Vi=Na),Ro?fo?Ra+Vi>0^Rr[1]<(Pt(Rr[0]-Ii)<Kl?Ra:Vi):Ra<=Rr[1]&&Rr[1]<=Vi:oa>Fc^(Ii<=Rr[0]&&Rr[0]<=zi)){var Zo=Qg(io,(-ga+so)/ba);return Ay(Zo,Xi),[Rr,Yg(Zo)]}}}function Ue(dt,$t){var Ot=U?m:Fc-m,Jt=0;return dt<-Ot?Jt|=1:dt>Ot&&(Jt|=2),$t<-Ot?Jt|=4:$t>Ot&&(Jt|=8),Jt}return R1(xe,Ie,de,U?[0,-m]:[-Fc,m-Fc])}function gw(m,O,M,U,ne,de){var xe=m[0],Ie=m[1],Qe=O[0],Ue=O[1],dt=0,$t=1,Ot=Qe-xe,Jt=Ue-Ie,Un;if(Un=M-xe,!(!Ot&&Un>0)){if(Un/=Ot,Ot<0){if(Un<dt)return;Un<$t&&($t=Un)}else if(Ot>0){if(Un>$t)return;Un>dt&&(dt=Un)}if(Un=ne-xe,!(!Ot&&Un<0)){if(Un/=Ot,Ot<0){if(Un>$t)return;Un>dt&&(dt=Un)}else if(Ot>0){if(Un<dt)return;Un<$t&&($t=Un)}if(Un=U-Ie,!(!Jt&&Un>0)){if(Un/=Jt,Jt<0){if(Un<dt)return;Un<$t&&($t=Un)}else if(Jt>0){if(Un>$t)return;Un>dt&&(dt=Un)}if(Un=de-Ie,!(!Jt&&Un<0)){if(Un/=Jt,Jt<0){if(Un>$t)return;Un>dt&&(dt=Un)}else if(Jt>0){if(Un<dt)return;Un<$t&&($t=Un)}return dt>0&&(m[0]=xe+dt*Ot,m[1]=Ie+dt*Jt),$t<1&&(O[0]=xe+$t*Ot,O[1]=Ie+$t*Jt),!0}}}}}var _p=1e9,um=-_p;function lm(m,O,M,U){function ne(Ue,dt){return m<=Ue&&Ue<=M&&O<=dt&&dt<=U}function de(Ue,dt,$t,Ot){var Jt=0,Un=0;if(Ue==null||(Jt=xe(Ue,$t))!==(Un=xe(dt,$t))||Qe(Ue,dt)<0^$t>0)do Ot.point(Jt===0||Jt===3?m:M,Jt>1?U:O);while((Jt=(Jt+$t+4)%4)!==Un);else Ot.point(dt[0],dt[1])}function xe(Ue,dt){return Pt(Ue[0]-m)<Kl?dt>0?0:3:Pt(Ue[0]-M)<Kl?dt>0?2:1:Pt(Ue[1]-O)<Kl?dt>0?1:0:dt>0?3:2}function Ie(Ue,dt){return Qe(Ue.x,dt.x)}function Qe(Ue,dt){var $t=xe(Ue,1),Ot=xe(dt,1);return $t!==Ot?$t-Ot:$t===0?dt[1]-Ue[1]:$t===1?Ue[0]-dt[0]:$t===2?Ue[1]-dt[1]:dt[0]-Ue[0]}return function(Ue){var dt=Ue,$t=C1(),Ot,Jt,Un,Pn,Cn,Fn,mr,hr,ar,qr,Di,Xi={point:ya,lineStart:wo,lineEnd:so,polygonStart:ga,polygonEnd:ba};function ya(Ii,zi){ne(Ii,zi)&&dt.point(Ii,zi)}function io(){for(var Ii=0,zi=0,Ra=Jt.length;zi<Ra;++zi)for(var Vi=Jt[zi],Na=1,oa=Vi.length,fo=Vi[0],Ro,Zo,zo=fo[0],ss=fo[1];Na<oa;++Na)Ro=zo,Zo=ss,fo=Vi[Na],zo=fo[0],ss=fo[1],Zo<=U?ss>U&&(zo-Ro)*(U-Zo)>(ss-Zo)*(m-Ro)&&++Ii:ss<=U&&(zo-Ro)*(U-Zo)<(ss-Zo)*(m-Ro)&&--Ii;return Ii}function ga(){dt=$t,Ot=[],Jt=[],Di=!0}function ba(){var Ii=io(),zi=Di&&Ii,Ra=(Ot=rn(Ot)).length;(zi||Ra)&&(Ue.polygonStart(),zi&&(Ue.lineStart(),de(null,null,1,Ue),Ue.lineEnd()),Ra&&x1(Ot,Ie,Ii,de,Ue),Ue.polygonEnd()),dt=Ue,Ot=Jt=Un=null}function wo(){Xi.point=Rr,Jt&&Jt.push(Un=[]),qr=!0,ar=!1,mr=hr=NaN}function so(){Ot&&(Rr(Pn,Cn),Fn&&ar&&$t.rejoin(),Ot.push($t.result())),Xi.point=ya,ar&&dt.lineEnd()}function Rr(Ii,zi){var Ra=ne(Ii,zi);if(Jt&&Un.push([Ii,zi]),qr)Pn=Ii,Cn=zi,Fn=Ra,qr=!1,Ra&&(dt.lineStart(),dt.point(Ii,zi));else if(Ra&&ar)dt.point(Ii,zi);else{var Vi=[mr=Math.max(um,Math.min(_p,mr)),hr=Math.max(um,Math.min(_p,hr))],Na=[Ii=Math.max(um,Math.min(_p,Ii)),zi=Math.max(um,Math.min(_p,zi))];gw(Vi,Na,m,O,M,U)?(ar||(dt.lineStart(),dt.point(Vi[0],Vi[1])),dt.point(Na[0],Na[1]),Ra||dt.lineEnd(),Di=!1):Ra&&(dt.lineStart(),dt.point(Ii,zi),Di=!1)}mr=Ii,hr=zi,ar=Ra}return Xi}}function mw(){var m=0,O=0,M=960,U=500,ne,de,xe;return xe={stream:function(Ie){return ne&&de===Ie?ne:ne=lm(m,O,M,U)(de=Ie)},extent:function(Ie){return arguments.length?(m=+Ie[0][0],O=+Ie[0][1],M=+Ie[1][0],U=+Ie[1][1],ne=de=null,xe):[[m,O],[M,U]]}}}var $y,jy,cm,fm,ep={sphere:Wc,point:Wc,lineStart:yw,lineEnd:Wc,polygonStart:Wc,polygonEnd:Wc};function yw(){ep.point=Ew,ep.lineEnd=bw}function bw(){ep.point=ep.lineEnd=Wc}function Ew(m,O){m*=be,O*=be,jy=m,cm=ms(O),fm=Oi(O),ep.point=Sw}function Sw(m,O){m*=be,O*=be;var M=ms(O),U=Oi(O),ne=Pt(m-jy),de=Oi(ne),xe=ms(ne),Ie=U*xe,Qe=fm*M-cm*U*de,Ue=cm*M+fm*U*de;$y.add(Xr(El(Ie*Ie+Qe*Qe),Ue)),jy=m,cm=M,fm=U}function I1(m){return $y=new q,oh(m,ep),+$y}var Uy=[null,null],Ow={type:"LineString",coordinates:Uy};function dm(m,O){return Uy[0]=m,Uy[1]=O,I1(Ow)}var D1={Feature:function(m,O){return hm(m.geometry,O)},FeatureCollection:function(m,O){for(var M=m.features,U=-1,ne=M.length;++U<ne;)if(hm(M[U].geometry,O))return!0;return!1}},_1={Sphere:function(){return!0},Point:function(m,O){return L1(m.coordinates,O)},MultiPoint:function(m,O){for(var M=m.coordinates,U=-1,ne=M.length;++U<ne;)if(L1(M[U],O))return!0;return!1},LineString:function(m,O){return N1(m.coordinates,O)},MultiLineString:function(m,O){for(var M=m.coordinates,U=-1,ne=M.length;++U<ne;)if(N1(M[U],O))return!0;return!1},Polygon:function(m,O){return F1(m.coordinates,O)},MultiPolygon:function(m,O){for(var M=m.coordinates,U=-1,ne=M.length;++U<ne;)if(F1(M[U],O))return!0;return!1},GeometryCollection:function(m,O){for(var M=m.geometries,U=-1,ne=M.length;++U<ne;)if(hm(M[U],O))return!0;return!1}};function hm(m,O){return m&&_1.hasOwnProperty(m.type)?_1[m.type](m,O):!1}function L1(m,O){return dm(m,O)===0}function N1(m,O){for(var M,U,ne,de=0,xe=m.length;de<xe;de++){if(U=dm(m[de],O),U===0||de>0&&(ne=dm(m[de],m[de-1]),ne>0&&M<=ne&&U<=ne&&(M+U-ne)*(1-Math.pow((M-U)/ne,2))<Av*ne))return!0;M=U}return!1}function F1(m,O){return!!A1(m.map(ww),k1(O))}function ww(m){return m=m.map(k1),m.pop(),m}function k1(m){return[m[0]*be,m[1]*be]}function Pw(m,O){return(m&&D1.hasOwnProperty(m.type)?D1[m.type]:hm)(m,O)}function B1(m,O,M){var U=st(m,O-Kl,M).concat(O);return function(ne){return U.map(function(de){return[ne,de]})}}function $1(m,O,M){var U=st(m,O-Kl,M).concat(O);return function(ne){return U.map(function(de){return[de,ne]})}}function j1(){var m,O,M,U,ne,de,xe,Ie,Qe=10,Ue=Qe,dt=90,$t=360,Ot,Jt,Un,Pn,Cn=2.5;function Fn(){return{type:"MultiLineString",coordinates:mr()}}function mr(){return st(Za(U/dt)*dt,M,dt).map(Un).concat(st(Za(Ie/$t)*$t,xe,$t).map(Pn)).concat(st(Za(O/Qe)*Qe,m,Qe).filter(function(hr){return Pt(hr%dt)>Kl}).map(Ot)).concat(st(Za(de/Ue)*Ue,ne,Ue).filter(function(hr){return Pt(hr%$t)>Kl}).map(Jt))}return Fn.lines=function(){return mr().map(function(hr){return{type:"LineString",coordinates:hr}})},Fn.outline=function(){return{type:"Polygon",coordinates:[Un(U).concat(Pn(xe).slice(1),Un(M).reverse().slice(1),Pn(Ie).reverse().slice(1))]}},Fn.extent=function(hr){return arguments.length?Fn.extentMajor(hr).extentMinor(hr):Fn.extentMinor()},Fn.extentMajor=function(hr){return arguments.length?(U=+hr[0][0],M=+hr[1][0],Ie=+hr[0][1],xe=+hr[1][1],U>M&&(hr=U,U=M,M=hr),Ie>xe&&(hr=Ie,Ie=xe,xe=hr),Fn.precision(Cn)):[[U,Ie],[M,xe]]},Fn.extentMinor=function(hr){return arguments.length?(O=+hr[0][0],m=+hr[1][0],de=+hr[0][1],ne=+hr[1][1],O>m&&(hr=O,O=m,m=hr),de>ne&&(hr=de,de=ne,ne=hr),Fn.precision(Cn)):[[O,de],[m,ne]]},Fn.step=function(hr){return arguments.length?Fn.stepMajor(hr).stepMinor(hr):Fn.stepMinor()},Fn.stepMajor=function(hr){return arguments.length?(dt=+hr[0],$t=+hr[1],Fn):[dt,$t]},Fn.stepMinor=function(hr){return arguments.length?(Qe=+hr[0],Ue=+hr[1],Fn):[Qe,Ue]},Fn.precision=function(hr){return arguments.length?(Cn=+hr,Ot=B1(de,ne,90),Jt=$1(O,m,Cn),Un=B1(Ie,xe,90),Pn=$1(U,M,Cn),Fn):Cn},Fn.extentMajor([[-180,-90+Kl],[180,90-Kl]]).extentMinor([[-180,-80-Kl],[180,80+Kl]])}function Cw(){return j1()()}function xw(m,O){var M=m[0]*be,U=m[1]*be,ne=O[0]*be,de=O[1]*be,xe=Oi(U),Ie=ms(U),Qe=Oi(de),Ue=ms(de),dt=xe*Oi(M),$t=xe*ms(M),Ot=Qe*Oi(ne),Jt=Qe*ms(ne),Un=2*Ql(El(Uc(de-U)+xe*Qe*Uc(ne-M))),Pn=ms(Un),Cn=Un?function(Fn){var mr=ms(Fn*=Un)/Pn,hr=ms(Un-Fn)/Pn,ar=hr*dt+mr*Ot,qr=hr*$t+mr*Jt,Di=hr*Ie+mr*Ue;return[Xr(qr,ar)*Q,Xr(Di,El(ar*ar+qr*qr))*Q]}:function(){return[M*Q,U*Q]};return Cn.distance=Un,Cn}const Lp=m=>m;var Wy=new q,zy=new q,U1,W1,Hy,Ky,mv={point:Wc,lineStart:Wc,lineEnd:Wc,polygonStart:function(){mv.lineStart=Tw,mv.lineEnd=Rw},polygonEnd:function(){mv.lineStart=mv.lineEnd=mv.point=Wc,Wy.add(Pt(zy)),zy=new q},result:function(){var m=Wy/2;return Wy=new q,m}};function Tw(){mv.point=Aw}function Aw(m,O){mv.point=z1,U1=Hy=m,W1=Ky=O}function z1(m,O){zy.add(Ky*m-Hy*O),Hy=m,Ky=O}function Rw(){z1(U1,W1)}const H1=mv;var tp=1/0,vm=tp,Np=-tp,pm=Np,Mw={point:Iw,lineStart:Wc,lineEnd:Wc,polygonStart:Wc,polygonEnd:Wc,result:function(){var m=[[tp,vm],[Np,pm]];return Np=pm=-(vm=tp=1/0),m}};function Iw(m,O){m<tp&&(tp=m),m>Np&&(Np=m),O<vm&&(vm=O),O>pm&&(pm=O)}const gm=Mw;var Vy=0,Gy=0,Fp=0,mm=0,ym=0,np=0,Zy=0,Yy=0,kp=0,K1,V1,jh,Uh,Lh={point:Iv,lineStart:G1,lineEnd:Z1,polygonStart:function(){Lh.lineStart=Lw,Lh.lineEnd=Nw},polygonEnd:function(){Lh.point=Iv,Lh.lineStart=G1,Lh.lineEnd=Z1},result:function(){var m=kp?[Zy/kp,Yy/kp]:np?[mm/np,ym/np]:Fp?[Vy/Fp,Gy/Fp]:[NaN,NaN];return Vy=Gy=Fp=mm=ym=np=Zy=Yy=kp=0,m}};function Iv(m,O){Vy+=m,Gy+=O,++Fp}function G1(){Lh.point=Dw}function Dw(m,O){Lh.point=_w,Iv(jh=m,Uh=O)}function _w(m,O){var M=m-jh,U=O-Uh,ne=El(M*M+U*U);mm+=ne*(jh+m)/2,ym+=ne*(Uh+O)/2,np+=ne,Iv(jh=m,Uh=O)}function Z1(){Lh.point=Iv}function Lw(){Lh.point=Fw}function Nw(){Y1(K1,V1)}function Fw(m,O){Lh.point=Y1,Iv(K1=jh=m,V1=Uh=O)}function Y1(m,O){var M=m-jh,U=O-Uh,ne=El(M*M+U*U);mm+=ne*(jh+m)/2,ym+=ne*(Uh+O)/2,np+=ne,ne=Uh*m-jh*O,Zy+=ne*(jh+m),Yy+=ne*(Uh+O),kp+=ne*3,Iv(jh=m,Uh=O)}const X1=Lh;function Q1(m){this._context=m}Q1.prototype={_radius:4.5,pointRadius:function(m){return this._radius=m,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(m,O){switch(this._point){case 0:{this._context.moveTo(m,O),this._point=1;break}case 1:{this._context.lineTo(m,O);break}default:{this._context.moveTo(m+this._radius,O),this._context.arc(m,O,this._radius,0,Nd);break}}},result:Wc};var Xy=new q,Qy,J1,q1,Bp,$p,bm={point:Wc,lineStart:function(){bm.point=kw},lineEnd:function(){Qy&&eE(J1,q1),bm.point=Wc},polygonStart:function(){Qy=!0},polygonEnd:function(){Qy=null},result:function(){var m=+Xy;return Xy=new q,m}};function kw(m,O){bm.point=eE,J1=Bp=m,q1=$p=O}function eE(m,O){Bp-=m,$p-=O,Xy.add(El(Bp*Bp+$p*$p)),Bp=m,$p=O}const tE=bm;let nE,Em,rE,iE;class aE{constructor(O){this._append=O==null?oE:Bw(O),this._radius=4.5,this._=""}pointRadius(O){return this._radius=+O,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(O,M){switch(this._point){case 0:{this._append`M${O},${M}`,this._point=1;break}case 1:{this._append`L${O},${M}`;break}default:{if(this._append`M${O},${M}`,this._radius!==rE||this._append!==Em){const U=this._radius,ne=this._;this._="",this._append`m0,${U}a${U},${U} 0 1,1 0,${-2*U}a${U},${U} 0 1,1 0,${2*U}z`,rE=U,Em=this._append,iE=this._,this._=ne}this._+=iE;break}}}result(){const O=this._;return this._="",O.length?O:null}}function oE(m){let O=1;this._+=m[0];for(const M=m.length;O<M;++O)this._+=arguments[O]+m[O]}function Bw(m){const O=Math.floor(m);if(!(O>=0))throw new RangeError(`invalid digits: ${m}`);if(O>15)return oE;if(O!==nE){const M=10**O;nE=O,Em=function(ne){let de=1;this._+=ne[0];for(const xe=ne.length;de<xe;++de)this._+=Math.round(arguments[de]*M)/M+ne[de]}}return Em}function $w(m,O){let M=3,U=4.5,ne,de;function xe(Ie){return Ie&&(typeof U=="function"&&de.pointRadius(+U.apply(this,arguments)),oh(Ie,ne(de))),de.result()}return xe.area=function(Ie){return oh(Ie,ne(H1)),H1.result()},xe.measure=function(Ie){return oh(Ie,ne(tE)),tE.result()},xe.bounds=function(Ie){return oh(Ie,ne(gm)),gm.result()},xe.centroid=function(Ie){return oh(Ie,ne(X1)),X1.result()},xe.projection=function(Ie){return arguments.length?(ne=Ie==null?(m=null,Lp):(m=Ie).stream,xe):m},xe.context=function(Ie){return arguments.length?(de=Ie==null?(O=null,new aE(M)):new Q1(O=Ie),typeof U!="function"&&de.pointRadius(U),xe):O},xe.pointRadius=function(Ie){return arguments.length?(U=typeof Ie=="function"?Ie:(de.pointRadius(+Ie),+Ie),xe):U},xe.digits=function(Ie){if(!arguments.length)return M;if(Ie==null)M=null;else{const Qe=Math.floor(Ie);if(!(Qe>=0))throw new RangeError(`invalid digits: ${Ie}`);M=Qe}return O===null&&(de=new aE(M)),xe},xe.projection(m).digits(M).context(O)}function jw(m){return{stream:jp(m)}}function jp(m){return function(O){var M=new Jy;for(var U in m)M[U]=m[U];return M.stream=O,M}}function Jy(){}Jy.prototype={constructor:Jy,point:function(m,O){this.stream.point(m,O)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function qy(m,O,M){var U=m.clipExtent&&m.clipExtent();return m.scale(150).translate([0,0]),U!=null&&m.clipExtent(null),oh(M,m.stream(gm)),O(gm.result()),U!=null&&m.clipExtent(U),m}function Sm(m,O,M){return qy(m,function(U){var ne=O[1][0]-O[0][0],de=O[1][1]-O[0][1],xe=Math.min(ne/(U[1][0]-U[0][0]),de/(U[1][1]-U[0][1])),Ie=+O[0][0]+(ne-xe*(U[1][0]+U[0][0]))/2,Qe=+O[0][1]+(de-xe*(U[1][1]+U[0][1]))/2;m.scale(150*xe).translate([Ie,Qe])},M)}function eb(m,O,M){return Sm(m,[[0,0],O],M)}function tb(m,O,M){return qy(m,function(U){var ne=+O,de=ne/(U[1][0]-U[0][0]),xe=(ne-de*(U[1][0]+U[0][0]))/2,Ie=-de*U[0][1];m.scale(150*de).translate([xe,Ie])},M)}function nb(m,O,M){return qy(m,function(U){var ne=+O,de=ne/(U[1][1]-U[0][1]),xe=-de*U[0][0],Ie=(ne-de*(U[1][1]+U[0][1]))/2;m.scale(150*de).translate([xe,Ie])},M)}var sE=16,Uw=Oi(30*be);function uE(m,O){return+O?zw(m,O):Ww(m)}function Ww(m){return jp({point:function(O,M){O=m(O,M),this.stream.point(O[0],O[1])}})}function zw(m,O){function M(U,ne,de,xe,Ie,Qe,Ue,dt,$t,Ot,Jt,Un,Pn,Cn){var Fn=Ue-U,mr=dt-ne,hr=Fn*Fn+mr*mr;if(hr>4*O&&Pn--){var ar=xe+Ot,qr=Ie+Jt,Di=Qe+Un,Xi=El(ar*ar+qr*qr+Di*Di),ya=Ql(Di/=Xi),io=Pt(Pt(Di)-1)<Kl||Pt(de-$t)<Kl?(de+$t)/2:Xr(qr,ar),ga=m(io,ya),ba=ga[0],wo=ga[1],so=ba-U,Rr=wo-ne,Ii=mr*so-Fn*Rr;(Ii*Ii/hr>O||Pt((Fn*so+mr*Rr)/hr-.5)>.3||xe*Ot+Ie*Jt+Qe*Un<Uw)&&(M(U,ne,de,xe,Ie,Qe,ba,wo,io,ar/=Xi,qr/=Xi,Di,Pn,Cn),Cn.point(ba,wo),M(ba,wo,io,ar,qr,Di,Ue,dt,$t,Ot,Jt,Un,Pn,Cn))}}return function(U){var ne,de,xe,Ie,Qe,Ue,dt,$t,Ot,Jt,Un,Pn,Cn={point:Fn,lineStart:mr,lineEnd:ar,polygonStart:function(){U.polygonStart(),Cn.lineStart=qr},polygonEnd:function(){U.polygonEnd(),Cn.lineStart=mr}};function Fn(ya,io){ya=m(ya,io),U.point(ya[0],ya[1])}function mr(){$t=NaN,Cn.point=hr,U.lineStart()}function hr(ya,io){var ga=Rv([ya,io]),ba=m(ya,io);M($t,Ot,dt,Jt,Un,Pn,$t=ba[0],Ot=ba[1],dt=ya,Jt=ga[0],Un=ga[1],Pn=ga[2],sE,U),U.point($t,Ot)}function ar(){Cn.point=Fn,U.lineEnd()}function qr(){mr(),Cn.point=Di,Cn.lineEnd=Xi}function Di(ya,io){hr(ne=ya,io),de=$t,xe=Ot,Ie=Jt,Qe=Un,Ue=Pn,Cn.point=hr}function Xi(){M($t,Ot,dt,Jt,Un,Pn,de,xe,ne,Ie,Qe,Ue,sE,U),Cn.lineEnd=ar,ar()}return Cn}}var Hw=jp({point:function(m,O){this.stream.point(m*be,O*be)}});function Kw(m){return jp({point:function(O,M){var U=m(O,M);return this.stream.point(U[0],U[1])}})}function Vw(m,O,M,U,ne){function de(xe,Ie){return xe*=U,Ie*=ne,[O+m*xe,M-m*Ie]}return de.invert=function(xe,Ie){return[(xe-O)/m*U,(M-Ie)/m*ne]},de}function lE(m,O,M,U,ne,de){if(!de)return Vw(m,O,M,U,ne);var xe=Oi(de),Ie=ms(de),Qe=xe*m,Ue=Ie*m,dt=xe/m,$t=Ie/m,Ot=(Ie*M-xe*O)/m,Jt=(Ie*O+xe*M)/m;function Un(Pn,Cn){return Pn*=U,Cn*=ne,[Qe*Pn-Ue*Cn+O,M-Ue*Pn-Qe*Cn]}return Un.invert=function(Pn,Cn){return[U*(dt*Pn-$t*Cn+Ot),ne*(Jt-$t*Pn-dt*Cn)]},Un}function Wh(m){return rb(function(){return m})()}function rb(m){var O,M=150,U=480,ne=250,de=0,xe=0,Ie=0,Qe=0,Ue=0,dt,$t=0,Ot=1,Jt=1,Un=null,Pn=By,Cn=null,Fn,mr,hr,ar=Lp,qr=.5,Di,Xi,ya,io,ga;function ba(Ii){return ya(Ii[0]*be,Ii[1]*be)}function wo(Ii){return Ii=ya.invert(Ii[0],Ii[1]),Ii&&[Ii[0]*Q,Ii[1]*Q]}ba.stream=function(Ii){return io&&ga===Ii?io:io=Hw(Kw(dt)(Pn(Di(ar(ga=Ii)))))},ba.preclip=function(Ii){return arguments.length?(Pn=Ii,Un=void 0,Rr()):Pn},ba.postclip=function(Ii){return arguments.length?(ar=Ii,Cn=Fn=mr=hr=null,Rr()):ar},ba.clipAngle=function(Ii){return arguments.length?(Pn=+Ii?M1(Un=Ii*be):(Un=null,By),Rr()):Un*Q},ba.clipExtent=function(Ii){return arguments.length?(ar=Ii==null?(Cn=Fn=mr=hr=null,Lp):lm(Cn=+Ii[0][0],Fn=+Ii[0][1],mr=+Ii[1][0],hr=+Ii[1][1]),Rr()):Cn==null?null:[[Cn,Fn],[mr,hr]]},ba.scale=function(Ii){return arguments.length?(M=+Ii,so()):M},ba.translate=function(Ii){return arguments.length?(U=+Ii[0],ne=+Ii[1],so()):[U,ne]},ba.center=function(Ii){return arguments.length?(de=Ii[0]%360*be,xe=Ii[1]%360*be,so()):[de*Q,xe*Q]},ba.rotate=function(Ii){return arguments.length?(Ie=Ii[0]%360*be,Qe=Ii[1]%360*be,Ue=Ii.length>2?Ii[2]%360*be:0,so()):[Ie*Q,Qe*Q,Ue*Q]},ba.angle=function(Ii){return arguments.length?($t=Ii%360*be,so()):$t*Q},ba.reflectX=function(Ii){return arguments.length?(Ot=Ii?-1:1,so()):Ot<0},ba.reflectY=function(Ii){return arguments.length?(Jt=Ii?-1:1,so()):Jt<0},ba.precision=function(Ii){return arguments.length?(Di=uE(Xi,qr=Ii*Ii),Rr()):El(qr)},ba.fitExtent=function(Ii,zi){return Sm(ba,Ii,zi)},ba.fitSize=function(Ii,zi){return eb(ba,Ii,zi)},ba.fitWidth=function(Ii,zi){return tb(ba,Ii,zi)},ba.fitHeight=function(Ii,zi){return nb(ba,Ii,zi)};function so(){var Ii=lE(M,0,0,Ot,Jt,$t).apply(null,O(de,xe)),zi=lE(M,U-Ii[0],ne-Ii[1],Ot,Jt,$t);return dt=Fy(Ie,Qe,Ue),Xi=Ly(O,zi),ya=Ly(dt,Xi),Di=uE(Xi,qr),Rr()}function Rr(){return io=ga=null,ba}return function(){return O=m.apply(this,arguments),ba.invert=O.invert&&wo,so()}}function ib(m){var O=0,M=Fc/3,U=rb(m),ne=U(O,M);return ne.parallels=function(de){return arguments.length?U(O=de[0]*be,M=de[1]*be):[O*Q,M*Q]},ne}function Gw(m){var O=Oi(m);function M(U,ne){return[U*O,ms(ne)/O]}return M.invert=function(U,ne){return[U/O,Ql(ne*O)]},M}function cE(m,O){var M=ms(m),U=(M+ms(O))/2;if(Pt(U)<Kl)return Gw(m);var ne=1+M*(2*U-M),de=El(ne)/U;function xe(Ie,Qe){var Ue=El(ne-2*U*ms(Qe))/U;return[Ue*ms(Ie*=U),de-Ue*Oi(Ie)]}return xe.invert=function(Ie,Qe){var Ue=de-Qe,dt=Xr(Ie,Pt(Ue))*dl(Ue);return Ue*U<0&&(dt-=Fc*dl(Ie)*dl(Ue)),[dt/U,Ql((ne-(Ie*Ie+Ue*Ue)*U*U)/(2*U))]},xe}function Om(){return ib(cE).scale(155.424).center([0,33.6442])}function fE(){return Om().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Zw(m){var O=m.length;return{point:function(M,U){for(var ne=-1;++ne<O;)m[ne].point(M,U)},sphere:function(){for(var M=-1;++M<O;)m[M].sphere()},lineStart:function(){for(var M=-1;++M<O;)m[M].lineStart()},lineEnd:function(){for(var M=-1;++M<O;)m[M].lineEnd()},polygonStart:function(){for(var M=-1;++M<O;)m[M].polygonStart()},polygonEnd:function(){for(var M=-1;++M<O;)m[M].polygonEnd()}}}function Yw(){var m,O,M=fE(),U,ne=Om().rotate([154,0]).center([-2,58.5]).parallels([55,65]),de,xe=Om().rotate([157,0]).center([-3,19.9]).parallels([8,18]),Ie,Qe,Ue={point:function(Ot,Jt){Qe=[Ot,Jt]}};function dt(Ot){var Jt=Ot[0],Un=Ot[1];return Qe=null,U.point(Jt,Un),Qe||(de.point(Jt,Un),Qe)||(Ie.point(Jt,Un),Qe)}dt.invert=function(Ot){var Jt=M.scale(),Un=M.translate(),Pn=(Ot[0]-Un[0])/Jt,Cn=(Ot[1]-Un[1])/Jt;return(Cn>=.12&&Cn<.234&&Pn>=-.425&&Pn<-.214?ne:Cn>=.166&&Cn<.234&&Pn>=-.214&&Pn<-.115?xe:M).invert(Ot)},dt.stream=function(Ot){return m&&O===Ot?m:m=Zw([M.stream(O=Ot),ne.stream(Ot),xe.stream(Ot)])},dt.precision=function(Ot){return arguments.length?(M.precision(Ot),ne.precision(Ot),xe.precision(Ot),$t()):M.precision()},dt.scale=function(Ot){return arguments.length?(M.scale(Ot),ne.scale(Ot*.35),xe.scale(Ot),dt.translate(M.translate())):M.scale()},dt.translate=function(Ot){if(!arguments.length)return M.translate();var Jt=M.scale(),Un=+Ot[0],Pn=+Ot[1];return U=M.translate(Ot).clipExtent([[Un-.455*Jt,Pn-.238*Jt],[Un+.455*Jt,Pn+.238*Jt]]).stream(Ue),de=ne.translate([Un-.307*Jt,Pn+.201*Jt]).clipExtent([[Un-.425*Jt+Kl,Pn+.12*Jt+Kl],[Un-.214*Jt-Kl,Pn+.234*Jt-Kl]]).stream(Ue),Ie=xe.translate([Un-.205*Jt,Pn+.212*Jt]).clipExtent([[Un-.214*Jt+Kl,Pn+.166*Jt+Kl],[Un-.115*Jt-Kl,Pn+.234*Jt-Kl]]).stream(Ue),$t()},dt.fitExtent=function(Ot,Jt){return Sm(dt,Ot,Jt)},dt.fitSize=function(Ot,Jt){return eb(dt,Ot,Jt)},dt.fitWidth=function(Ot,Jt){return tb(dt,Ot,Jt)},dt.fitHeight=function(Ot,Jt){return nb(dt,Ot,Jt)};function $t(){return m=O=null,dt}return dt.scale(1070)}function dE(m){return function(O,M){var U=Oi(O),ne=Oi(M),de=m(U*ne);return de===1/0?[2,0]:[de*ne*ms(O),de*ms(M)]}}function Up(m){return function(O,M){var U=El(O*O+M*M),ne=m(U),de=ms(ne),xe=Oi(ne);return[Xr(O*de,U*xe),Ql(U&&M*de/U)]}}var ab=dE(function(m){return El(2/(1+m))});ab.invert=Up(function(m){return 2*Ql(m/2)});function Xw(){return Wh(ab).scale(124.75).clipAngle(180-.001)}var ob=dE(function(m){return(m=Xl(m))&&m/ms(m)});ob.invert=Up(function(m){return m});function Qw(){return Wh(ob).scale(79.4188).clipAngle(180-.001)}function Wp(m,O){return[m,js(Sc((Gf+O)/2))]}Wp.invert=function(m,O){return[m,2*Bn(po(O))-Gf]};function Jw(){return hE(Wp).scale(961/Nd)}function hE(m){var O=Wh(m),M=O.center,U=O.scale,ne=O.translate,de=O.clipExtent,xe=null,Ie,Qe,Ue;O.scale=function($t){return arguments.length?(U($t),dt()):U()},O.translate=function($t){return arguments.length?(ne($t),dt()):ne()},O.center=function($t){return arguments.length?(M($t),dt()):M()},O.clipExtent=function($t){return arguments.length?($t==null?xe=Ie=Qe=Ue=null:(xe=+$t[0][0],Ie=+$t[0][1],Qe=+$t[1][0],Ue=+$t[1][1]),dt()):xe==null?null:[[xe,Ie],[Qe,Ue]]};function dt(){var $t=Fc*U(),Ot=O(O1(O.rotate()).invert([0,0]));return de(xe==null?[[Ot[0]-$t,Ot[1]-$t],[Ot[0]+$t,Ot[1]+$t]]:m===Wp?[[Math.max(Ot[0]-$t,xe),Ie],[Math.min(Ot[0]+$t,Qe),Ue]]:[[xe,Math.max(Ot[1]-$t,Ie)],[Qe,Math.min(Ot[1]+$t,Ue)]])}return dt()}function wm(m){return Sc((Gf+m)/2)}function vE(m,O){var M=Oi(m),U=m===O?ms(m):js(M/Oi(O))/js(wm(O)/wm(m)),ne=M*au(wm(m),U)/U;if(!U)return Wp;function de(xe,Ie){ne>0?Ie<-Gf+Kl&&(Ie=-Gf+Kl):Ie>Gf-Kl&&(Ie=Gf-Kl);var Qe=ne/au(wm(Ie),U);return[Qe*ms(U*xe),ne-Qe*Oi(U*xe)]}return de.invert=function(xe,Ie){var Qe=ne-Ie,Ue=dl(U)*El(xe*xe+Qe*Qe),dt=Xr(xe,Pt(Qe))*dl(Qe);return Qe*U<0&&(dt-=Fc*dl(xe)*dl(Qe)),[dt/U,2*Bn(au(ne/Ue,1/U))-Gf]},de}function qw(){return ib(vE).scale(109.5).parallels([30,30])}function zp(m,O){return[m,O]}zp.invert=zp;function eP(){return Wh(zp).scale(152.63)}function pE(m,O){var M=Oi(m),U=m===O?ms(m):(M-Oi(O))/(O-m),ne=M/U+m;if(Pt(U)<Kl)return zp;function de(xe,Ie){var Qe=ne-Ie,Ue=U*xe;return[Qe*ms(Ue),ne-Qe*Oi(Ue)]}return de.invert=function(xe,Ie){var Qe=ne-Ie,Ue=Xr(xe,Pt(Qe))*dl(Qe);return Qe*U<0&&(Ue-=Fc*dl(xe)*dl(Qe)),[Ue/U,ne-dl(U)*El(xe*xe+Qe*Qe)]},de}function tP(){return ib(pE).scale(131.154).center([0,13.9389])}var Hp=1.340264,Kp=-.081106,Vp=893e-6,Gp=.003796,Pm=El(3)/2,nP=12;function sb(m,O){var M=Ql(Pm*ms(O)),U=M*M,ne=U*U*U;return[m*Oi(M)/(Pm*(Hp+3*Kp*U+ne*(7*Vp+9*Gp*U))),M*(Hp+Kp*U+ne*(Vp+Gp*U))]}sb.invert=function(m,O){for(var M=O,U=M*M,ne=U*U*U,de=0,xe,Ie,Qe;de<nP&&(Ie=M*(Hp+Kp*U+ne*(Vp+Gp*U))-O,Qe=Hp+3*Kp*U+ne*(7*Vp+9*Gp*U),M-=xe=Ie/Qe,U=M*M,ne=U*U*U,!(Pt(xe)<Av));++de);return[Pm*m*(Hp+3*Kp*U+ne*(7*Vp+9*Gp*U))/Oi(M),Ql(ms(M)/Pm)]};function rP(){return Wh(sb).scale(177.158)}function ub(m,O){var M=Oi(O),U=Oi(m)*M;return[M*ms(m)/U,ms(O)/U]}ub.invert=Up(Bn);function iP(){return Wh(ub).scale(144.049).clipAngle(60)}function aP(){var m=1,O=0,M=0,U=1,ne=1,de=0,xe,Ie,Qe=null,Ue,dt,$t,Ot=1,Jt=1,Un=jp({point:function(ar,qr){var Di=hr([ar,qr]);this.stream.point(Di[0],Di[1])}}),Pn=Lp,Cn,Fn;function mr(){return Ot=m*U,Jt=m*ne,Cn=Fn=null,hr}function hr(ar){var qr=ar[0]*Ot,Di=ar[1]*Jt;if(de){var Xi=Di*xe-qr*Ie;qr=qr*xe+Di*Ie,Di=Xi}return[qr+O,Di+M]}return hr.invert=function(ar){var qr=ar[0]-O,Di=ar[1]-M;if(de){var Xi=Di*xe+qr*Ie;qr=qr*xe-Di*Ie,Di=Xi}return[qr/Ot,Di/Jt]},hr.stream=function(ar){return Cn&&Fn===ar?Cn:Cn=Un(Pn(Fn=ar))},hr.postclip=function(ar){return arguments.length?(Pn=ar,Qe=Ue=dt=$t=null,mr()):Pn},hr.clipExtent=function(ar){return arguments.length?(Pn=ar==null?(Qe=Ue=dt=$t=null,Lp):lm(Qe=+ar[0][0],Ue=+ar[0][1],dt=+ar[1][0],$t=+ar[1][1]),mr()):Qe==null?null:[[Qe,Ue],[dt,$t]]},hr.scale=function(ar){return arguments.length?(m=+ar,mr()):m},hr.translate=function(ar){return arguments.length?(O=+ar[0],M=+ar[1],mr()):[O,M]},hr.angle=function(ar){return arguments.length?(de=ar%360*be,Ie=ms(de),xe=Oi(de),mr()):de*Q},hr.reflectX=function(ar){return arguments.length?(U=ar?-1:1,mr()):U<0},hr.reflectY=function(ar){return arguments.length?(ne=ar?-1:1,mr()):ne<0},hr.fitExtent=function(ar,qr){return Sm(hr,ar,qr)},hr.fitSize=function(ar,qr){return eb(hr,ar,qr)},hr.fitWidth=function(ar,qr){return tb(hr,ar,qr)},hr.fitHeight=function(ar,qr){return nb(hr,ar,qr)},hr}function lb(m,O){var M=O*O,U=M*M;return[m*(.8707-.131979*M+U*(-.013791+U*(.003971*M-.001529*U))),O*(1.007226+M*(.015085+U*(-.044475+.028874*M-.005916*U)))]}lb.invert=function(m,O){var M=O,U=25,ne;do{var de=M*M,xe=de*de;M-=ne=(M*(1.007226+de*(.015085+xe*(-.044475+.028874*de-.005916*xe)))-O)/(1.007226+de*(.015085*3+xe*(-.044475*7+.028874*9*de-.005916*11*xe)))}while(Pt(ne)>Kl&&--U>0);return[m/(.8707+(de=M*M)*(-.131979+de*(-.013791+de*de*de*(.003971-.001529*de)))),M]};function oP(){return Wh(lb).scale(175.295)}function cb(m,O){return[Oi(O)*ms(m),ms(O)]}cb.invert=Up(Ql);function sP(){return Wh(cb).scale(249.5).clipAngle(90+Kl)}function fb(m,O){var M=Oi(O),U=1+Oi(m)*M;return[M*ms(m)/U,ms(O)/U]}fb.invert=Up(function(m){return 2*Bn(m)});function uP(){return Wh(fb).scale(250).clipAngle(142)}function db(m,O){return[js(Sc((Gf+O)/2)),-m]}db.invert=function(m,O){return[-O,2*Bn(po(m))-Gf]};function lP(){var m=hE(db),O=m.center,M=m.rotate;return m.center=function(U){return arguments.length?O([-U[1],U[0]]):(U=O(),[U[1],-U[0]])},m.rotate=function(U){return arguments.length?M([U[0],U[1],U.length>2?U[2]+90:90]):(U=M(),[U[0],U[1],U[2]-90])},M([0,0,90]).scale(159.155)}function cP(m,O){return m.parent===O.parent?1:2}function fP(m){return m.reduce(dP,0)/m.length}function dP(m,O){return m+O.x}function hP(m){return 1+m.reduce(vP,0)}function vP(m,O){return Math.max(m,O.y)}function pP(m){for(var O;O=m.children;)m=O[0];return m}function gP(m){for(var O;O=m.children;)m=O[O.length-1];return m}function mP(){var m=cP,O=1,M=1,U=!1;function ne(de){var xe,Ie=0;de.eachAfter(function(Ot){var Jt=Ot.children;Jt?(Ot.x=fP(Jt),Ot.y=hP(Jt)):(Ot.x=xe?Ie+=m(Ot,xe):0,Ot.y=0,xe=Ot)});var Qe=pP(de),Ue=gP(de),dt=Qe.x-m(Qe,Ue)/2,$t=Ue.x+m(Ue,Qe)/2;return de.eachAfter(U?function(Ot){Ot.x=(Ot.x-de.x)*O,Ot.y=(de.y-Ot.y)*M}:function(Ot){Ot.x=(Ot.x-dt)/($t-dt)*O,Ot.y=(1-(de.y?Ot.y/de.y:1))*M})}return ne.separation=function(de){return arguments.length?(m=de,ne):m},ne.size=function(de){return arguments.length?(U=!1,O=+de[0],M=+de[1],ne):U?null:[O,M]},ne.nodeSize=function(de){return arguments.length?(U=!0,O=+de[0],M=+de[1],ne):U?[O,M]:null},ne}function yP(m){var O=0,M=m.children,U=M&&M.length;if(!U)O=1;else for(;--U>=0;)O+=M[U].value;m.value=O}function bP(){return this.eachAfter(yP)}function EP(m,O){let M=-1;for(const U of this)m.call(O,U,++M,this);return this}function SP(m,O){for(var M=this,U=[M],ne,de,xe=-1;M=U.pop();)if(m.call(O,M,++xe,this),ne=M.children)for(de=ne.length-1;de>=0;--de)U.push(ne[de]);return this}function OP(m,O){for(var M=this,U=[M],ne=[],de,xe,Ie,Qe=-1;M=U.pop();)if(ne.push(M),de=M.children)for(xe=0,Ie=de.length;xe<Ie;++xe)U.push(de[xe]);for(;M=ne.pop();)m.call(O,M,++Qe,this);return this}function wP(m,O){let M=-1;for(const U of this)if(m.call(O,U,++M,this))return U}function PP(m){return this.eachAfter(function(O){for(var M=+m(O.data)||0,U=O.children,ne=U&&U.length;--ne>=0;)M+=U[ne].value;O.value=M})}function CP(m){return this.eachBefore(function(O){O.children&&O.children.sort(m)})}function xP(m){for(var O=this,M=TP(O,m),U=[O];O!==M;)O=O.parent,U.push(O);for(var ne=U.length;m!==M;)U.splice(ne,0,m),m=m.parent;return U}function TP(m,O){if(m===O)return m;var M=m.ancestors(),U=O.ancestors(),ne=null;for(m=M.pop(),O=U.pop();m===O;)ne=m,m=M.pop(),O=U.pop();return ne}function AP(){for(var m=this,O=[m];m=m.parent;)O.push(m);return O}function RP(){return Array.from(this)}function MP(){var m=[];return this.eachBefore(function(O){O.children||m.push(O)}),m}function IP(){var m=this,O=[];return m.each(function(M){M!==m&&O.push({source:M.parent,target:M})}),O}function*DP(){var m=this,O,M=[m],U,ne,de;do for(O=M.reverse(),M=[];m=O.pop();)if(yield m,U=m.children)for(ne=0,de=U.length;ne<de;++ne)M.push(U[ne]);while(M.length)}function hb(m,O){m instanceof Map?(m=[void 0,m],O===void 0&&(O=NP)):O===void 0&&(O=LP);for(var M=new Dv(m),U,ne=[M],de,xe,Ie,Qe;U=ne.pop();)if((xe=O(U.data))&&(Qe=(xe=Array.from(xe)).length))for(U.children=xe,Ie=Qe-1;Ie>=0;--Ie)ne.push(de=xe[Ie]=new Dv(xe[Ie])),de.parent=U,de.depth=U.depth+1;return M.eachBefore(gE)}function _P(){return hb(this).eachBefore(FP)}function LP(m){return m.children}function NP(m){return Array.isArray(m)?m[1]:null}function FP(m){m.data.value!==void 0&&(m.value=m.data.value),m.data=m.data.data}function gE(m){var O=0;do m.height=O;while((m=m.parent)&&m.height<++O)}function Dv(m){this.data=m,this.depth=this.height=0,this.parent=null}Dv.prototype=hb.prototype={constructor:Dv,count:bP,each:EP,eachAfter:OP,eachBefore:SP,find:wP,sum:PP,sort:CP,path:xP,ancestors:AP,descendants:RP,leaves:MP,links:IP,copy:_P,[Symbol.iterator]:DP};function Cm(m){return m==null?null:mE(m)}function mE(m){if(typeof m!="function")throw new Error;return m}function _v(){return 0}function rp(m){return function(){return m}}const kP=1664525,BP=1013904223,yE=4294967296;function vb(){let m=1;return()=>(m=(kP*m+BP)%yE)/yE}function $P(m){return typeof m=="object"&&"length"in m?m:Array.from(m)}function jP(m,O){let M=m.length,U,ne;for(;M;)ne=O()*M--|0,U=m[M],m[M]=m[ne],m[ne]=U;return m}function UP(m){return bE(m,vb())}function bE(m,O){for(var M=0,U=(m=jP(Array.from(m),O)).length,ne=[],de,xe;M<U;)de=m[M],xe&&EE(xe,de)?++M:(xe=zP(ne=WP(ne,de)),M=0);return xe}function WP(m,O){var M,U;if(pb(O,m))return[O];for(M=0;M<m.length;++M)if(xm(O,m[M])&&pb(Zp(m[M],O),m))return[m[M],O];for(M=0;M<m.length-1;++M)for(U=M+1;U<m.length;++U)if(xm(Zp(m[M],m[U]),O)&&xm(Zp(m[M],O),m[U])&&xm(Zp(m[U],O),m[M])&&pb(SE(m[M],m[U],O),m))return[m[M],m[U],O];throw new Error}function xm(m,O){var M=m.r-O.r,U=O.x-m.x,ne=O.y-m.y;return M<0||M*M<U*U+ne*ne}function EE(m,O){var M=m.r-O.r+Math.max(m.r,O.r,1)*1e-9,U=O.x-m.x,ne=O.y-m.y;return M>0&&M*M>U*U+ne*ne}function pb(m,O){for(var M=0;M<O.length;++M)if(!EE(m,O[M]))return!1;return!0}function zP(m){switch(m.length){case 1:return HP(m[0]);case 2:return Zp(m[0],m[1]);case 3:return SE(m[0],m[1],m[2])}}function HP(m){return{x:m.x,y:m.y,r:m.r}}function Zp(m,O){var M=m.x,U=m.y,ne=m.r,de=O.x,xe=O.y,Ie=O.r,Qe=de-M,Ue=xe-U,dt=Ie-ne,$t=Math.sqrt(Qe*Qe+Ue*Ue);return{x:(M+de+Qe/$t*dt)/2,y:(U+xe+Ue/$t*dt)/2,r:($t+ne+Ie)/2}}function SE(m,O,M){var U=m.x,ne=m.y,de=m.r,xe=O.x,Ie=O.y,Qe=O.r,Ue=M.x,dt=M.y,$t=M.r,Ot=U-xe,Jt=U-Ue,Un=ne-Ie,Pn=ne-dt,Cn=Qe-de,Fn=$t-de,mr=U*U+ne*ne-de*de,hr=mr-xe*xe-Ie*Ie+Qe*Qe,ar=mr-Ue*Ue-dt*dt+$t*$t,qr=Jt*Un-Ot*Pn,Di=(Un*ar-Pn*hr)/(qr*2)-U,Xi=(Pn*Cn-Un*Fn)/qr,ya=(Jt*hr-Ot*ar)/(qr*2)-ne,io=(Ot*Fn-Jt*Cn)/qr,ga=Xi*Xi+io*io-1,ba=2*(de+Di*Xi+ya*io),wo=Di*Di+ya*ya-de*de,so=-(Math.abs(ga)>1e-6?(ba+Math.sqrt(ba*ba-4*ga*wo))/(2*ga):wo/ba);return{x:U+Di+Xi*so,y:ne+ya+io*so,r:so}}function OE(m,O,M){var U=m.x-O.x,ne,de,xe=m.y-O.y,Ie,Qe,Ue=U*U+xe*xe;Ue?(de=O.r+M.r,de*=de,Qe=m.r+M.r,Qe*=Qe,de>Qe?(ne=(Ue+Qe-de)/(2*Ue),Ie=Math.sqrt(Math.max(0,Qe/Ue-ne*ne)),M.x=m.x-ne*U-Ie*xe,M.y=m.y-ne*xe+Ie*U):(ne=(Ue+de-Qe)/(2*Ue),Ie=Math.sqrt(Math.max(0,de/Ue-ne*ne)),M.x=O.x+ne*U-Ie*xe,M.y=O.y+ne*xe+Ie*U)):(M.x=O.x+M.r,M.y=O.y)}function wE(m,O){var M=m.r+O.r-1e-6,U=O.x-m.x,ne=O.y-m.y;return M>0&&M*M>U*U+ne*ne}function PE(m){var O=m._,M=m.next._,U=O.r+M.r,ne=(O.x*M.r+M.x*O.r)/U,de=(O.y*M.r+M.y*O.r)/U;return ne*ne+de*de}function Tm(m){this._=m,this.next=null,this.previous=null}function CE(m,O){if(!(de=(m=$P(m)).length))return 0;var M,U,ne,de,xe,Ie,Qe,Ue,dt,$t,Ot;if(M=m[0],M.x=0,M.y=0,!(de>1))return M.r;if(U=m[1],M.x=-U.r,U.x=M.r,U.y=0,!(de>2))return M.r+U.r;OE(U,M,ne=m[2]),M=new Tm(M),U=new Tm(U),ne=new Tm(ne),M.next=ne.previous=U,U.next=M.previous=ne,ne.next=U.previous=M;e:for(Qe=3;Qe<de;++Qe){OE(M._,U._,ne=m[Qe]),ne=new Tm(ne),Ue=U.next,dt=M.previous,$t=U._.r,Ot=M._.r;do if($t<=Ot){if(wE(Ue._,ne._)){U=Ue,M.next=U,U.previous=M,--Qe;continue e}$t+=Ue._.r,Ue=Ue.next}else{if(wE(dt._,ne._)){M=dt,M.next=U,U.previous=M,--Qe;continue e}Ot+=dt._.r,dt=dt.previous}while(Ue!==dt.next);for(ne.previous=M,ne.next=U,M.next=U.previous=U=ne,xe=PE(M);(ne=ne.next)!==U;)(Ie=PE(ne))<xe&&(M=ne,xe=Ie);U=M.next}for(M=[U._],ne=U;(ne=ne.next)!==U;)M.push(ne._);for(ne=bE(M,O),Qe=0;Qe<de;++Qe)M=m[Qe],M.x-=ne.x,M.y-=ne.y;return ne.r}function KP(m){return CE(m,vb()),m}function VP(m){return Math.sqrt(m.value)}function GP(){var m=null,O=1,M=1,U=_v;function ne(de){const xe=vb();return de.x=O/2,de.y=M/2,m?de.eachBefore(xE(m)).eachAfter(gb(U,.5,xe)).eachBefore(TE(1)):de.eachBefore(xE(VP)).eachAfter(gb(_v,1,xe)).eachAfter(gb(U,de.r/Math.min(O,M),xe)).eachBefore(TE(Math.min(O,M)/(2*de.r))),de}return ne.radius=function(de){return arguments.length?(m=Cm(de),ne):m},ne.size=function(de){return arguments.length?(O=+de[0],M=+de[1],ne):[O,M]},ne.padding=function(de){return arguments.length?(U=typeof de=="function"?de:rp(+de),ne):U},ne}function xE(m){return function(O){O.children||(O.r=Math.max(0,+m(O)||0))}}function gb(m,O,M){return function(U){if(ne=U.children){var ne,de,xe=ne.length,Ie=m(U)*O||0,Qe;if(Ie)for(de=0;de<xe;++de)ne[de].r+=Ie;if(Qe=CE(ne,M),Ie)for(de=0;de<xe;++de)ne[de].r-=Ie;U.r=Qe+Ie}}}function TE(m){return function(O){var M=O.parent;O.r*=m,M&&(O.x=M.x+m*O.x,O.y=M.y+m*O.y)}}function AE(m){m.x0=Math.round(m.x0),m.y0=Math.round(m.y0),m.x1=Math.round(m.x1),m.y1=Math.round(m.y1)}function Yp(m,O,M,U,ne){for(var de=m.children,xe,Ie=-1,Qe=de.length,Ue=m.value&&(U-O)/m.value;++Ie<Qe;)xe=de[Ie],xe.y0=M,xe.y1=ne,xe.x0=O,xe.x1=O+=xe.value*Ue}function ZP(){var m=1,O=1,M=0,U=!1;function ne(xe){var Ie=xe.height+1;return xe.x0=xe.y0=M,xe.x1=m,xe.y1=O/Ie,xe.eachBefore(de(O,Ie)),U&&xe.eachBefore(AE),xe}function de(xe,Ie){return function(Qe){Qe.children&&Yp(Qe,Qe.x0,xe*(Qe.depth+1)/Ie,Qe.x1,xe*(Qe.depth+2)/Ie);var Ue=Qe.x0,dt=Qe.y0,$t=Qe.x1-M,Ot=Qe.y1-M;$t<Ue&&(Ue=$t=(Ue+$t)/2),Ot<dt&&(dt=Ot=(dt+Ot)/2),Qe.x0=Ue,Qe.y0=dt,Qe.x1=$t,Qe.y1=Ot}}return ne.round=function(xe){return arguments.length?(U=!!xe,ne):U},ne.size=function(xe){return arguments.length?(m=+xe[0],O=+xe[1],ne):[m,O]},ne.padding=function(xe){return arguments.length?(M=+xe,ne):M},ne}var YP={depth:-1},RE={},mb={};function XP(m){return m.id}function QP(m){return m.parentId}function JP(){var m=XP,O=QP,M;function U(ne){var de=Array.from(ne),xe=m,Ie=O,Qe,Ue,dt,$t,Ot,Jt,Un,Pn,Cn=new Map;if(M!=null){const Fn=de.map((ar,qr)=>qP(M(ar,qr,ne))),mr=Fn.map(ME),hr=new Set(Fn).add("");for(const ar of mr)hr.has(ar)||(hr.add(ar),Fn.push(ar),mr.push(ME(ar)),de.push(mb));xe=(ar,qr)=>Fn[qr],Ie=(ar,qr)=>mr[qr]}for(dt=0,Qe=de.length;dt<Qe;++dt)Ue=de[dt],Jt=de[dt]=new Dv(Ue),(Un=xe(Ue,dt,ne))!=null&&(Un+="")&&(Pn=Jt.id=Un,Cn.set(Pn,Cn.has(Pn)?RE:Jt)),(Un=Ie(Ue,dt,ne))!=null&&(Un+="")&&(Jt.parent=Un);for(dt=0;dt<Qe;++dt)if(Jt=de[dt],Un=Jt.parent){if(Ot=Cn.get(Un),!Ot)throw new Error("missing: "+Un);if(Ot===RE)throw new Error("ambiguous: "+Un);Ot.children?Ot.children.push(Jt):Ot.children=[Jt],Jt.parent=Ot}else{if($t)throw new Error("multiple roots");$t=Jt}if(!$t)throw new Error("no root");if(M!=null){for(;$t.data===mb&&$t.children.length===1;)$t=$t.children[0],--Qe;for(let Fn=de.length-1;Fn>=0&&(Jt=de[Fn],Jt.data===mb);--Fn)Jt.data=null}if($t.parent=YP,$t.eachBefore(function(Fn){Fn.depth=Fn.parent.depth+1,--Qe}).eachBefore(gE),$t.parent=null,Qe>0)throw new Error("cycle");return $t}return U.id=function(ne){return arguments.length?(m=Cm(ne),U):m},U.parentId=function(ne){return arguments.length?(O=Cm(ne),U):O},U.path=function(ne){return arguments.length?(M=Cm(ne),U):M},U}function qP(m){m=`${m}`;let O=m.length;return yb(m,O-1)&&!yb(m,O-2)&&(m=m.slice(0,-1)),m[0]==="/"?m:`/${m}`}function ME(m){let O=m.length;if(O<2)return"";for(;--O>1&&!yb(m,O););return m.slice(0,O)}function yb(m,O){if(m[O]==="/"){let M=0;for(;O>0&&m[--O]==="\\";)++M;if(!(M&1))return!0}return!1}function eC(m,O){return m.parent===O.parent?1:2}function bb(m){var O=m.children;return O?O[0]:m.t}function Eb(m){var O=m.children;return O?O[O.length-1]:m.t}function tC(m,O,M){var U=M/(O.i-m.i);O.c-=U,O.s+=M,m.c+=U,O.z+=M,O.m+=M}function nC(m){for(var O=0,M=0,U=m.children,ne=U.length,de;--ne>=0;)de=U[ne],de.z+=O,de.m+=O,O+=de.s+(M+=de.c)}function rC(m,O,M){return m.a.parent===O.parent?m.a:M}function Am(m,O){this._=m,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=O}Am.prototype=Object.create(Dv.prototype);function iC(m){for(var O=new Am(m,0),M,U=[O],ne,de,xe,Ie;M=U.pop();)if(de=M._.children)for(M.children=new Array(Ie=de.length),xe=Ie-1;xe>=0;--xe)U.push(ne=M.children[xe]=new Am(de[xe],xe)),ne.parent=M;return(O.parent=new Am(null,0)).children=[O],O}function aC(){var m=eC,O=1,M=1,U=null;function ne(Ue){var dt=iC(Ue);if(dt.eachAfter(de),dt.parent.m=-dt.z,dt.eachBefore(xe),U)Ue.eachBefore(Qe);else{var $t=Ue,Ot=Ue,Jt=Ue;Ue.eachBefore(function(mr){mr.x<$t.x&&($t=mr),mr.x>Ot.x&&(Ot=mr),mr.depth>Jt.depth&&(Jt=mr)});var Un=$t===Ot?1:m($t,Ot)/2,Pn=Un-$t.x,Cn=O/(Ot.x+Un+Pn),Fn=M/(Jt.depth||1);Ue.eachBefore(function(mr){mr.x=(mr.x+Pn)*Cn,mr.y=mr.depth*Fn})}return Ue}function de(Ue){var dt=Ue.children,$t=Ue.parent.children,Ot=Ue.i?$t[Ue.i-1]:null;if(dt){nC(Ue);var Jt=(dt[0].z+dt[dt.length-1].z)/2;Ot?(Ue.z=Ot.z+m(Ue._,Ot._),Ue.m=Ue.z-Jt):Ue.z=Jt}else Ot&&(Ue.z=Ot.z+m(Ue._,Ot._));Ue.parent.A=Ie(Ue,Ot,Ue.parent.A||$t[0])}function xe(Ue){Ue._.x=Ue.z+Ue.parent.m,Ue.m+=Ue.parent.m}function Ie(Ue,dt,$t){if(dt){for(var Ot=Ue,Jt=Ue,Un=dt,Pn=Ot.parent.children[0],Cn=Ot.m,Fn=Jt.m,mr=Un.m,hr=Pn.m,ar;Un=Eb(Un),Ot=bb(Ot),Un&&Ot;)Pn=bb(Pn),Jt=Eb(Jt),Jt.a=Ue,ar=Un.z+mr-Ot.z-Cn+m(Un._,Ot._),ar>0&&(tC(rC(Un,Ue,$t),Ue,ar),Cn+=ar,Fn+=ar),mr+=Un.m,Cn+=Ot.m,hr+=Pn.m,Fn+=Jt.m;Un&&!Eb(Jt)&&(Jt.t=Un,Jt.m+=mr-Fn),Ot&&!bb(Pn)&&(Pn.t=Ot,Pn.m+=Cn-hr,$t=Ue)}return $t}function Qe(Ue){Ue.x*=O,Ue.y=Ue.depth*M}return ne.separation=function(Ue){return arguments.length?(m=Ue,ne):m},ne.size=function(Ue){return arguments.length?(U=!1,O=+Ue[0],M=+Ue[1],ne):U?null:[O,M]},ne.nodeSize=function(Ue){return arguments.length?(U=!0,O=+Ue[0],M=+Ue[1],ne):U?[O,M]:null},ne}function Rm(m,O,M,U,ne){for(var de=m.children,xe,Ie=-1,Qe=de.length,Ue=m.value&&(ne-M)/m.value;++Ie<Qe;)xe=de[Ie],xe.x0=O,xe.x1=U,xe.y0=M,xe.y1=M+=xe.value*Ue}var IE=(1+Math.sqrt(5))/2;function DE(m,O,M,U,ne,de){for(var xe=[],Ie=O.children,Qe,Ue,dt=0,$t=0,Ot=Ie.length,Jt,Un,Pn=O.value,Cn,Fn,mr,hr,ar,qr,Di;dt<Ot;){Jt=ne-M,Un=de-U;do Cn=Ie[$t++].value;while(!Cn&&$t<Ot);for(Fn=mr=Cn,qr=Math.max(Un/Jt,Jt/Un)/(Pn*m),Di=Cn*Cn*qr,ar=Math.max(mr/Di,Di/Fn);$t<Ot;++$t){if(Cn+=Ue=Ie[$t].value,Ue<Fn&&(Fn=Ue),Ue>mr&&(mr=Ue),Di=Cn*Cn*qr,hr=Math.max(mr/Di,Di/Fn),hr>ar){Cn-=Ue;break}ar=hr}xe.push(Qe={value:Cn,dice:Jt<Un,children:Ie.slice(dt,$t)}),Qe.dice?Yp(Qe,M,U,ne,Pn?U+=Un*Cn/Pn:de):Rm(Qe,M,U,Pn?M+=Jt*Cn/Pn:ne,de),Pn-=Cn,dt=$t}return xe}const _E=function m(O){function M(U,ne,de,xe,Ie){DE(O,U,ne,de,xe,Ie)}return M.ratio=function(U){return m((U=+U)>1?U:1)},M}(IE);function oC(){var m=_E,O=!1,M=1,U=1,ne=[0],de=_v,xe=_v,Ie=_v,Qe=_v,Ue=_v;function dt(Ot){return Ot.x0=Ot.y0=0,Ot.x1=M,Ot.y1=U,Ot.eachBefore($t),ne=[0],O&&Ot.eachBefore(AE),Ot}function $t(Ot){var Jt=ne[Ot.depth],Un=Ot.x0+Jt,Pn=Ot.y0+Jt,Cn=Ot.x1-Jt,Fn=Ot.y1-Jt;Cn<Un&&(Un=Cn=(Un+Cn)/2),Fn<Pn&&(Pn=Fn=(Pn+Fn)/2),Ot.x0=Un,Ot.y0=Pn,Ot.x1=Cn,Ot.y1=Fn,Ot.children&&(Jt=ne[Ot.depth+1]=de(Ot)/2,Un+=Ue(Ot)-Jt,Pn+=xe(Ot)-Jt,Cn-=Ie(Ot)-Jt,Fn-=Qe(Ot)-Jt,Cn<Un&&(Un=Cn=(Un+Cn)/2),Fn<Pn&&(Pn=Fn=(Pn+Fn)/2),m(Ot,Un,Pn,Cn,Fn))}return dt.round=function(Ot){return arguments.length?(O=!!Ot,dt):O},dt.size=function(Ot){return arguments.length?(M=+Ot[0],U=+Ot[1],dt):[M,U]},dt.tile=function(Ot){return arguments.length?(m=mE(Ot),dt):m},dt.padding=function(Ot){return arguments.length?dt.paddingInner(Ot).paddingOuter(Ot):dt.paddingInner()},dt.paddingInner=function(Ot){return arguments.length?(de=typeof Ot=="function"?Ot:rp(+Ot),dt):de},dt.paddingOuter=function(Ot){return arguments.length?dt.paddingTop(Ot).paddingRight(Ot).paddingBottom(Ot).paddingLeft(Ot):dt.paddingTop()},dt.paddingTop=function(Ot){return arguments.length?(xe=typeof Ot=="function"?Ot:rp(+Ot),dt):xe},dt.paddingRight=function(Ot){return arguments.length?(Ie=typeof Ot=="function"?Ot:rp(+Ot),dt):Ie},dt.paddingBottom=function(Ot){return arguments.length?(Qe=typeof Ot=="function"?Ot:rp(+Ot),dt):Qe},dt.paddingLeft=function(Ot){return arguments.length?(Ue=typeof Ot=="function"?Ot:rp(+Ot),dt):Ue},dt}function sC(m,O,M,U,ne){var de=m.children,xe,Ie=de.length,Qe,Ue=new Array(Ie+1);for(Ue[0]=Qe=xe=0;xe<Ie;++xe)Ue[xe+1]=Qe+=de[xe].value;dt(0,Ie,m.value,O,M,U,ne);function dt($t,Ot,Jt,Un,Pn,Cn,Fn){if($t>=Ot-1){var mr=de[$t];mr.x0=Un,mr.y0=Pn,mr.x1=Cn,mr.y1=Fn;return}for(var hr=Ue[$t],ar=Jt/2+hr,qr=$t+1,Di=Ot-1;qr<Di;){var Xi=qr+Di>>>1;Ue[Xi]<ar?qr=Xi+1:Di=Xi}ar-Ue[qr-1]<Ue[qr]-ar&&$t+1<qr&&--qr;var ya=Ue[qr]-hr,io=Jt-ya;if(Cn-Un>Fn-Pn){var ga=Jt?(Un*io+Cn*ya)/Jt:Cn;dt($t,qr,ya,Un,Pn,ga,Fn),dt(qr,Ot,io,ga,Pn,Cn,Fn)}else{var ba=Jt?(Pn*io+Fn*ya)/Jt:Fn;dt($t,qr,ya,Un,Pn,Cn,ba),dt(qr,Ot,io,Un,ba,Cn,Fn)}}}function uC(m,O,M,U,ne){(m.depth&1?Rm:Yp)(m,O,M,U,ne)}const lC=function m(O){function M(U,ne,de,xe,Ie){if((Qe=U._squarify)&&Qe.ratio===O)for(var Qe,Ue,dt,$t,Ot=-1,Jt,Un=Qe.length,Pn=U.value;++Ot<Un;){for(Ue=Qe[Ot],dt=Ue.children,$t=Ue.value=0,Jt=dt.length;$t<Jt;++$t)Ue.value+=dt[$t].value;Ue.dice?Yp(Ue,ne,de,xe,Pn?de+=(Ie-de)*Ue.value/Pn:Ie):Rm(Ue,ne,de,Pn?ne+=(xe-ne)*Ue.value/Pn:xe,Ie),Pn-=Ue.value}else U._squarify=Qe=DE(O,U,ne,de,xe,Ie),Qe.ratio=O}return M.ratio=function(U){return m((U=+U)>1?U:1)},M}(IE);var cC=t(34247),fC=t(23079);function dC(m){var O=m.length;return function(M){return m[Math.max(0,Math.min(O-1,Math.floor(M*O)))]}}var qd=t(27167);function hC(m,O){var M=(0,qd.wx)(+m,+O);return function(U){var ne=M(U);return ne-360*Math.floor(ne/360)}}function Mm(m,O){return m=+m,O=+O,function(M){return Math.round(m*(1-M)+O*M)}}var vC=1e-12;function LE(m){return((m=Math.exp(m))+1/m)/2}function pC(m){return((m=Math.exp(m))-1/m)/2}function gC(m){return((m=Math.exp(2*m))-1)/(m+1)}const NE=function m(O,M,U){function ne(de,xe){var Ie=de[0],Qe=de[1],Ue=de[2],dt=xe[0],$t=xe[1],Ot=xe[2],Jt=dt-Ie,Un=$t-Qe,Pn=Jt*Jt+Un*Un,Cn,Fn;if(Pn<vC)Fn=Math.log(Ot/Ue)/O,Cn=function(Xi){return[Ie+Xi*Jt,Qe+Xi*Un,Ue*Math.exp(O*Xi*Fn)]};else{var mr=Math.sqrt(Pn),hr=(Ot*Ot-Ue*Ue+U*Pn)/(2*Ue*M*mr),ar=(Ot*Ot-Ue*Ue-U*Pn)/(2*Ot*M*mr),qr=Math.log(Math.sqrt(hr*hr+1)-hr),Di=Math.log(Math.sqrt(ar*ar+1)-ar);Fn=(Di-qr)/O,Cn=function(Xi){var ya=Xi*Fn,io=LE(qr),ga=Ue/(M*mr)*(io*gC(O*ya+qr)-pC(qr));return[Ie+ga*Jt,Qe+ga*Un,Ue*io/LE(O*ya+qr)]}}return Cn.duration=Fn*1e3*O/Math.SQRT2,Cn}return ne.rho=function(de){var xe=Math.max(.001,+de),Ie=xe*xe,Qe=Ie*Ie;return m(xe,Ie,Qe)},ne}(Math.SQRT2,2,4);function FE(m){return function(O,M){var U=m((O=(0,Zu.Ym)(O)).h,(M=(0,Zu.Ym)(M)).h),ne=(0,qd.ZP)(O.s,M.s),de=(0,qd.ZP)(O.l,M.l),xe=(0,qd.ZP)(O.opacity,M.opacity);return function(Ie){return O.h=U(Ie),O.s=ne(Ie),O.l=de(Ie),O.opacity=xe(Ie),O+""}}}const mC=FE(qd.wx);var yC=FE(qd.ZP);function bC(m,O){var M=(0,qd.ZP)((m=Mi(m)).l,(O=Mi(O)).l),U=(0,qd.ZP)(m.a,O.a),ne=(0,qd.ZP)(m.b,O.b),de=(0,qd.ZP)(m.opacity,O.opacity);return function(xe){return m.l=M(xe),m.a=U(xe),m.b=ne(xe),m.opacity=de(xe),m+""}}function kE(m){return function(O,M){var U=m((O=As(O)).h,(M=As(M)).h),ne=(0,qd.ZP)(O.c,M.c),de=(0,qd.ZP)(O.l,M.l),xe=(0,qd.ZP)(O.opacity,M.opacity);return function(Ie){return O.h=U(Ie),O.c=ne(Ie),O.l=de(Ie),O.opacity=xe(Ie),O+""}}}const EC=kE(qd.wx);var SC=kE(qd.ZP),BE=t(17392);function $E(m,O){O===void 0&&(O=m,m=jt);for(var M=0,U=O.length-1,ne=O[0],de=new Array(U<0?0:U);M<U;)de[M]=m(ne,ne=O[++M]);return function(xe){var Ie=Math.max(0,Math.min(U-1,Math.floor(xe*=U)));return de[Ie](xe-Ie)}}function OC(m,O){for(var M=new Array(O),U=0;U<O;++U)M[U]=m(U/(O-1));return M}function wC(m){for(var O=-1,M=m.length,U,ne=m[M-1],de=0;++O<M;)U=ne,ne=m[O],de+=U[1]*ne[0]-U[0]*ne[1];return de/2}function PC(m){for(var O=-1,M=m.length,U=0,ne=0,de,xe=m[M-1],Ie,Qe=0;++O<M;)de=xe,xe=m[O],Qe+=Ie=de[0]*xe[1]-xe[0]*de[1],U+=(de[0]+xe[0])*Ie,ne+=(de[1]+xe[1])*Ie;return Qe*=3,[U/Qe,ne/Qe]}function CC(m,O,M){return(O[0]-m[0])*(M[1]-m[1])-(O[1]-m[1])*(M[0]-m[0])}function xC(m,O){return m[0]-O[0]||m[1]-O[1]}function jE(m){const O=m.length,M=[0,1];let U=2,ne;for(ne=2;ne<O;++ne){for(;U>1&&CC(m[M[U-2]],m[M[U-1]],m[ne])<=0;)--U;M[U++]=ne}return M.slice(0,U)}function TC(m){if((M=m.length)<3)return null;var O,M,U=new Array(M),ne=new Array(M);for(O=0;O<M;++O)U[O]=[+m[O][0],+m[O][1],O];for(U.sort(xC),O=0;O<M;++O)ne[O]=[U[O][0],-U[O][1]];var de=jE(U),xe=jE(ne),Ie=xe[0]===de[0],Qe=xe[xe.length-1]===de[de.length-1],Ue=[];for(O=de.length-1;O>=0;--O)Ue.push(m[U[de[O]][2]]);for(O=+Ie;O<xe.length-Qe;++O)Ue.push(m[U[xe[O]][2]]);return Ue}function AC(m,O){for(var M=m.length,U=m[M-1],ne=O[0],de=O[1],xe=U[0],Ie=U[1],Qe,Ue,dt=!1,$t=0;$t<M;++$t)U=m[$t],Qe=U[0],Ue=U[1],Ue>de!=Ie>de&&ne<(xe-Qe)*(de-Ue)/(Ie-Ue)+Qe&&(dt=!dt),xe=Qe,Ie=Ue;return dt}function RC(m){for(var O=-1,M=m.length,U=m[M-1],ne,de,xe=U[0],Ie=U[1],Qe=0;++O<M;)ne=xe,de=Ie,U=m[O],xe=U[0],Ie=U[1],ne-=xe,de-=Ie,Qe+=Math.hypot(ne,de);return Qe}const Fd=Math.random,MC=function m(O){function M(U,ne){return U=U==null?0:+U,ne=ne==null?1:+ne,arguments.length===1?(ne=U,U=0):ne-=U,function(){return O()*ne+U}}return M.source=m,M}(Fd),IC=function m(O){function M(U,ne){return arguments.length<2&&(ne=U,U=0),U=Math.floor(U),ne=Math.floor(ne)-U,function(){return Math.floor(O()*ne+U)}}return M.source=m,M}(Fd),Sb=function m(O){function M(U,ne){var de,xe;return U=U==null?0:+U,ne=ne==null?1:+ne,function(){var Ie;if(de!=null)Ie=de,de=null;else do de=O()*2-1,Ie=O()*2-1,xe=de*de+Ie*Ie;while(!xe||xe>1);return U+ne*Ie*Math.sqrt(-2*Math.log(xe)/xe)}}return M.source=m,M}(Fd),DC=function m(O){var M=Sb.source(O);function U(){var ne=M.apply(this,arguments);return function(){return Math.exp(ne())}}return U.source=m,U}(Fd),UE=function m(O){function M(U){return(U=+U)<=0?()=>0:function(){for(var ne=0,de=U;de>1;--de)ne+=O();return ne+de*O()}}return M.source=m,M}(Fd),_C=function m(O){var M=UE.source(O);function U(ne){if((ne=+ne)==0)return O;var de=M(ne);return function(){return de()/ne}}return U.source=m,U}(Fd),LC=function m(O){function M(U){return function(){return-Math.log1p(-O())/U}}return M.source=m,M}(Fd),NC=function m(O){function M(U){if((U=+U)<0)throw new RangeError("invalid alpha");return U=1/-U,function(){return Math.pow(1-O(),U)}}return M.source=m,M}(Fd),FC=function m(O){function M(U){if((U=+U)<0||U>1)throw new RangeError("invalid p");return function(){return Math.floor(O()+U)}}return M.source=m,M}(Fd),WE=function m(O){function M(U){if((U=+U)<0||U>1)throw new RangeError("invalid p");return U===0?()=>1/0:U===1?()=>1:(U=Math.log1p(-U),function(){return 1+Math.floor(Math.log1p(-O())/U)})}return M.source=m,M}(Fd),Ob=function m(O){var M=Sb.source(O)();function U(ne,de){if((ne=+ne)<0)throw new RangeError("invalid k");if(ne===0)return()=>0;if(de=de==null?1:+de,ne===1)return()=>-Math.log1p(-O())*de;var xe=(ne<1?ne+1:ne)-1/3,Ie=1/(3*Math.sqrt(xe)),Qe=ne<1?()=>Math.pow(O(),1/ne):()=>1;return function(){do{do var Ue=M(),dt=1+Ie*Ue;while(dt<=0);dt*=dt*dt;var $t=1-O()}while($t>=1-.0331*Ue*Ue*Ue*Ue&&Math.log($t)>=.5*Ue*Ue+xe*(1-dt+Math.log(dt)));return xe*dt*Qe()*de}}return U.source=m,U}(Fd),zE=function m(O){var M=Ob.source(O);function U(ne,de){var xe=M(ne),Ie=M(de);return function(){var Qe=xe();return Qe===0?0:Qe/(Qe+Ie())}}return U.source=m,U}(Fd),HE=function m(O){var M=WE.source(O),U=zE.source(O);function ne(de,xe){return de=+de,(xe=+xe)>=1?()=>de:xe<=0?()=>0:function(){for(var Ie=0,Qe=de,Ue=xe;Qe*Ue>16&&Qe*(1-Ue)>16;){var dt=Math.floor((Qe+1)*Ue),$t=U(dt,Qe-dt+1)();$t<=Ue?(Ie+=dt,Qe-=dt,Ue=(Ue-$t)/(1-$t)):(Qe=dt-1,Ue/=$t)}for(var Ot=Ue<.5,Jt=Ot?Ue:1-Ue,Un=M(Jt),Pn=Un(),Cn=0;Pn<=Qe;++Cn)Pn+=Un();return Ie+(Ot?Cn:Qe-Cn)}}return ne.source=m,ne}(Fd),kC=function m(O){function M(U,ne,de){var xe;return(U=+U)==0?xe=Ie=>-Math.log(Ie):(U=1/U,xe=Ie=>Math.pow(Ie,U)),ne=ne==null?0:+ne,de=de==null?1:+de,function(){return ne+de*xe(-Math.log1p(-O()))}}return M.source=m,M}(Fd),BC=function m(O){function M(U,ne){return U=U==null?0:+U,ne=ne==null?1:+ne,function(){return U+ne*Math.tan(Math.PI*O())}}return M.source=m,M}(Fd),$C=function m(O){function M(U,ne){return U=U==null?0:+U,ne=ne==null?1:+ne,function(){var de=O();return U+ne*Math.log(de/(1-de))}}return M.source=m,M}(Fd),jC=function m(O){var M=Ob.source(O),U=HE.source(O);function ne(de){return function(){for(var xe=0,Ie=de;Ie>16;){var Qe=Math.floor(.875*Ie),Ue=M(Qe)();if(Ue>Ie)return xe+U(Qe-1,Ie/Ue)();xe+=Qe,Ie-=Ue}for(var dt=-Math.log1p(-O()),$t=0;dt<=Ie;++$t)dt-=Math.log1p(-O());return xe+$t}}return ne.source=m,ne}(Fd),UC=1664525,WC=1013904223,KE=1/4294967296;function zC(m=Math.random()){let O=(0<=m&&m<1?m/KE:Math.abs(m))|0;return()=>(O=UC*O+WC|0,KE*(O>>>0))}function Oh(m,O){switch(arguments.length){case 0:break;case 1:this.range(m);break;default:this.range(O).domain(m);break}return this}function Jh(m,O){switch(arguments.length){case 0:break;case 1:{typeof m=="function"?this.interpolator(m):this.range(m);break}default:{this.domain(m),typeof O=="function"?this.interpolator(O):this.range(O);break}}return this}const wb=Symbol("implicit");function Pb(){var m=new k,O=[],M=[],U=wb;function ne(de){let xe=m.get(de);if(xe===void 0){if(U!==wb)return U;m.set(de,xe=O.push(de)-1)}return M[xe%M.length]}return ne.domain=function(de){if(!arguments.length)return O.slice();O=[],m=new k;for(const xe of de)m.has(xe)||m.set(xe,O.push(xe)-1);return ne},ne.range=function(de){return arguments.length?(M=Array.from(de),ne):M.slice()},ne.unknown=function(de){return arguments.length?(U=de,ne):U},ne.copy=function(){return Pb(O,M).unknown(U)},Oh.apply(ne,arguments),ne}function Cb(){var m=Pb().unknown(void 0),O=m.domain,M=m.range,U=0,ne=1,de,xe,Ie=!1,Qe=0,Ue=0,dt=.5;delete m.unknown;function $t(){var Ot=O().length,Jt=ne<U,Un=Jt?ne:U,Pn=Jt?U:ne;de=(Pn-Un)/Math.max(1,Ot-Qe+Ue*2),Ie&&(de=Math.floor(de)),Un+=(Pn-Un-de*(Ot-Qe))*dt,xe=de*(1-Qe),Ie&&(Un=Math.round(Un),xe=Math.round(xe));var Cn=st(Ot).map(function(Fn){return Un+de*Fn});return M(Jt?Cn.reverse():Cn)}return m.domain=function(Ot){return arguments.length?(O(Ot),$t()):O()},m.range=function(Ot){return arguments.length?([U,ne]=Ot,U=+U,ne=+ne,$t()):[U,ne]},m.rangeRound=function(Ot){return[U,ne]=Ot,U=+U,ne=+ne,Ie=!0,$t()},m.bandwidth=function(){return xe},m.step=function(){return de},m.round=function(Ot){return arguments.length?(Ie=!!Ot,$t()):Ie},m.padding=function(Ot){return arguments.length?(Qe=Math.min(1,Ue=+Ot),$t()):Qe},m.paddingInner=function(Ot){return arguments.length?(Qe=Math.min(1,Ot),$t()):Qe},m.paddingOuter=function(Ot){return arguments.length?(Ue=+Ot,$t()):Ue},m.align=function(Ot){return arguments.length?(dt=Math.max(0,Math.min(1,Ot)),$t()):dt},m.copy=function(){return Cb(O(),[U,ne]).round(Ie).paddingInner(Qe).paddingOuter(Ue).align(dt)},Oh.apply($t(),arguments)}function VE(m){var O=m.copy;return m.padding=m.paddingOuter,delete m.paddingInner,delete m.paddingOuter,m.copy=function(){return VE(O())},m}function HC(){return VE(Cb.apply(null,arguments).paddingInner(1))}function KC(m){return function(){return m}}function Im(m){return+m}var GE=[0,1];function eh(m){return m}function xb(m,O){return(O-=m=+m)?function(M){return(M-m)/O}:KC(isNaN(O)?NaN:.5)}function VC(m,O){var M;return m>O&&(M=m,m=O,O=M),function(U){return Math.max(m,Math.min(O,U))}}function GC(m,O,M){var U=m[0],ne=m[1],de=O[0],xe=O[1];return ne<U?(U=xb(ne,U),de=M(xe,de)):(U=xb(U,ne),de=M(de,xe)),function(Ie){return de(U(Ie))}}function ZC(m,O,M){var U=Math.min(m.length,O.length)-1,ne=new Array(U),de=new Array(U),xe=-1;for(m[U]<m[0]&&(m=m.slice().reverse(),O=O.slice().reverse());++xe<U;)ne[xe]=xb(m[xe],m[xe+1]),de[xe]=M(O[xe],O[xe+1]);return function(Ie){var Qe=y(m,Ie,1,U)-1;return de[Qe](ne[Qe](Ie))}}function Xp(m,O){return O.domain(m.domain()).range(m.range()).interpolate(m.interpolate()).clamp(m.clamp()).unknown(m.unknown())}function Dm(){var m=GE,O=GE,M=jt,U,ne,de,xe=eh,Ie,Qe,Ue;function dt(){var Ot=Math.min(m.length,O.length);return xe!==eh&&(xe=VC(m[0],m[Ot-1])),Ie=Ot>2?ZC:GC,Qe=Ue=null,$t}function $t(Ot){return Ot==null||isNaN(Ot=+Ot)?de:(Qe||(Qe=Ie(m.map(U),O,M)))(U(xe(Ot)))}return $t.invert=function(Ot){return xe(ne((Ue||(Ue=Ie(O,m.map(U),ta)))(Ot)))},$t.domain=function(Ot){return arguments.length?(m=Array.from(Ot,Im),dt()):m.slice()},$t.range=function(Ot){return arguments.length?(O=Array.from(Ot),dt()):O.slice()},$t.rangeRound=function(Ot){return O=Array.from(Ot),M=Mm,dt()},$t.clamp=function(Ot){return arguments.length?(xe=Ot?!0:eh,dt()):xe!==eh},$t.interpolate=function(Ot){return arguments.length?(M=Ot,dt()):M},$t.unknown=function(Ot){return arguments.length?(de=Ot,$t):de},function(Ot,Jt){return U=Ot,ne=Jt,dt()}}function Tb(){return Dm()(eh,eh)}function ZE(m,O,M,U){var ne=Et(m,O,M),de;switch(U=vv(U??",f"),U.type){case"s":{var xe=Math.max(Math.abs(m),Math.abs(O));return U.precision==null&&!isNaN(de=Kg(ne,xe))&&(U.precision=de),Rp(U,xe)}case"":case"e":case"g":case"p":case"r":{U.precision==null&&!isNaN(de=Vg(ne,Math.max(Math.abs(m),Math.abs(O))))&&(U.precision=de-(U.type==="e"));break}case"f":case"%":{U.precision==null&&!isNaN(de=Hg(ne))&&(U.precision=de-(U.type==="%")*2);break}}return Yv(U)}function yv(m){var O=m.domain;return m.ticks=function(M){var U=O();return Oe(U[0],U[U.length-1],M??10)},m.tickFormat=function(M,U){var ne=O();return ZE(ne[0],ne[ne.length-1],M??10,U)},m.nice=function(M){M==null&&(M=10);var U=O(),ne=0,de=U.length-1,xe=U[ne],Ie=U[de],Qe,Ue,dt=10;for(Ie<xe&&(Ue=xe,xe=Ie,Ie=Ue,Ue=ne,ne=de,de=Ue);dt-- >0;){if(Ue=je(xe,Ie,M),Ue===Qe)return U[ne]=xe,U[de]=Ie,O(U);if(Ue>0)xe=Math.floor(xe/Ue)*Ue,Ie=Math.ceil(Ie/Ue)*Ue;else if(Ue<0)xe=Math.ceil(xe*Ue)/Ue,Ie=Math.floor(Ie*Ue)/Ue;else break;Qe=Ue}return m},m}function YE(){var m=Tb();return m.copy=function(){return Xp(m,YE())},Oh.apply(m,arguments),yv(m)}function XE(m){var O;function M(U){return U==null||isNaN(U=+U)?O:U}return M.invert=M,M.domain=M.range=function(U){return arguments.length?(m=Array.from(U,Im),M):m.slice()},M.unknown=function(U){return arguments.length?(O=U,M):O},M.copy=function(){return XE(m).unknown(O)},m=arguments.length?Array.from(m,Im):[0,1],yv(M)}function QE(m,O){m=m.slice();var M=0,U=m.length-1,ne=m[M],de=m[U],xe;return de<ne&&(xe=M,M=U,U=xe,xe=ne,ne=de,de=xe),m[M]=O.floor(ne),m[U]=O.ceil(de),m}function JE(m){return Math.log(m)}function qE(m){return Math.exp(m)}function YC(m){return-Math.log(-m)}function XC(m){return-Math.exp(-m)}function QC(m){return isFinite(m)?+("1e"+m):m<0?0:m}function JC(m){return m===10?QC:m===Math.E?Math.exp:O=>Math.pow(m,O)}function qC(m){return m===Math.E?Math.log:m===10&&Math.log10||m===2&&Math.log2||(m=Math.log(m),O=>Math.log(O)/m)}function eS(m){return(O,M)=>-m(-O,M)}function Ab(m){const O=m(JE,qE),M=O.domain;let U=10,ne,de;function xe(){return ne=qC(U),de=JC(U),M()[0]<0?(ne=eS(ne),de=eS(de),m(YC,XC)):m(JE,qE),O}return O.base=function(Ie){return arguments.length?(U=+Ie,xe()):U},O.domain=function(Ie){return arguments.length?(M(Ie),xe()):M()},O.ticks=Ie=>{const Qe=M();let Ue=Qe[0],dt=Qe[Qe.length-1];const $t=dt<Ue;$t&&([Ue,dt]=[dt,Ue]);let Ot=ne(Ue),Jt=ne(dt),Un,Pn;const Cn=Ie==null?10:+Ie;let Fn=[];if(!(U%1)&&Jt-Ot<Cn){if(Ot=Math.floor(Ot),Jt=Math.ceil(Jt),Ue>0){for(;Ot<=Jt;++Ot)for(Un=1;Un<U;++Un)if(Pn=Ot<0?Un/de(-Ot):Un*de(Ot),!(Pn<Ue)){if(Pn>dt)break;Fn.push(Pn)}}else for(;Ot<=Jt;++Ot)for(Un=U-1;Un>=1;--Un)if(Pn=Ot>0?Un/de(-Ot):Un*de(Ot),!(Pn<Ue)){if(Pn>dt)break;Fn.push(Pn)}Fn.length*2<Cn&&(Fn=Oe(Ue,dt,Cn))}else Fn=Oe(Ot,Jt,Math.min(Jt-Ot,Cn)).map(de);return $t?Fn.reverse():Fn},O.tickFormat=(Ie,Qe)=>{if(Ie==null&&(Ie=10),Qe==null&&(Qe=U===10?"s":","),typeof Qe!="function"&&(!(U%1)&&(Qe=vv(Qe)).precision==null&&(Qe.trim=!0),Qe=Yv(Qe)),Ie===1/0)return Qe;const Ue=Math.max(1,U*Ie/O.ticks().length);return dt=>{let $t=dt/de(Math.round(ne(dt)));return $t*U<U-.5&&($t*=U),$t<=Ue?Qe(dt):""}},O.nice=()=>M(QE(M(),{floor:Ie=>de(Math.floor(ne(Ie))),ceil:Ie=>de(Math.ceil(ne(Ie)))})),O}function tS(){const m=Ab(Dm()).domain([1,10]);return m.copy=()=>Xp(m,tS()).base(m.base()),Oh.apply(m,arguments),m}function nS(m){return function(O){return Math.sign(O)*Math.log1p(Math.abs(O/m))}}function rS(m){return function(O){return Math.sign(O)*Math.expm1(Math.abs(O))*m}}function Rb(m){var O=1,M=m(nS(O),rS(O));return M.constant=function(U){return arguments.length?m(nS(O=+U),rS(O)):O},yv(M)}function iS(){var m=Rb(Dm());return m.copy=function(){return Xp(m,iS()).constant(m.constant())},Oh.apply(m,arguments)}function aS(m){return function(O){return O<0?-Math.pow(-O,m):Math.pow(O,m)}}function ex(m){return m<0?-Math.sqrt(-m):Math.sqrt(m)}function tx(m){return m<0?-m*m:m*m}function Mb(m){var O=m(eh,eh),M=1;function U(){return M===1?m(eh,eh):M===.5?m(ex,tx):m(aS(M),aS(1/M))}return O.exponent=function(ne){return arguments.length?(M=+ne,U()):M},yv(O)}function Ib(){var m=Mb(Dm());return m.copy=function(){return Xp(m,Ib()).exponent(m.exponent())},Oh.apply(m,arguments),m}function nx(){return Ib.apply(null,arguments).exponent(.5)}function oS(m){return Math.sign(m)*m*m}function rx(m){return Math.sign(m)*Math.sqrt(Math.abs(m))}function sS(){var m=Tb(),O=[0,1],M=!1,U;function ne(de){var xe=rx(m(de));return isNaN(xe)?U:M?Math.round(xe):xe}return ne.invert=function(de){return m.invert(oS(de))},ne.domain=function(de){return arguments.length?(m.domain(de),ne):m.domain()},ne.range=function(de){return arguments.length?(m.range((O=Array.from(de,Im)).map(oS)),ne):O.slice()},ne.rangeRound=function(de){return ne.range(de).round(!0)},ne.round=function(de){return arguments.length?(M=!!de,ne):M},ne.clamp=function(de){return arguments.length?(m.clamp(de),ne):m.clamp()},ne.unknown=function(de){return arguments.length?(U=de,ne):U},ne.copy=function(){return sS(m.domain(),O).round(M).clamp(m.clamp()).unknown(U)},Oh.apply(ne,arguments),yv(ne)}function uS(){var m=[],O=[],M=[],U;function ne(){var xe=0,Ie=Math.max(1,O.length);for(M=new Array(Ie-1);++xe<Ie;)M[xe-1]=Kt(m,xe/Ie);return de}function de(xe){return xe==null||isNaN(xe=+xe)?U:O[y(M,xe)]}return de.invertExtent=function(xe){var Ie=O.indexOf(xe);return Ie<0?[NaN,NaN]:[Ie>0?M[Ie-1]:m[0],Ie<M.length?M[Ie]:m[m.length-1]]},de.domain=function(xe){if(!arguments.length)return m.slice();m=[];for(let Ie of xe)Ie!=null&&!isNaN(Ie=+Ie)&&m.push(Ie);return m.sort(i),ne()},de.range=function(xe){return arguments.length?(O=Array.from(xe),ne()):O.slice()},de.unknown=function(xe){return arguments.length?(U=xe,de):U},de.quantiles=function(){return M.slice()},de.copy=function(){return uS().domain(m).range(O).unknown(U)},Oh.apply(de,arguments)}function lS(){var m=0,O=1,M=1,U=[.5],ne=[0,1],de;function xe(Qe){return Qe!=null&&Qe<=Qe?ne[y(U,Qe,0,M)]:de}function Ie(){var Qe=-1;for(U=new Array(M);++Qe<M;)U[Qe]=((Qe+1)*O-(Qe-M)*m)/(M+1);return xe}return xe.domain=function(Qe){return arguments.length?([m,O]=Qe,m=+m,O=+O,Ie()):[m,O]},xe.range=function(Qe){return arguments.length?(M=(ne=Array.from(Qe)).length-1,Ie()):ne.slice()},xe.invertExtent=function(Qe){var Ue=ne.indexOf(Qe);return Ue<0?[NaN,NaN]:Ue<1?[m,U[0]]:Ue>=M?[U[M-1],O]:[U[Ue-1],U[Ue]]},xe.unknown=function(Qe){return arguments.length&&(de=Qe),xe},xe.thresholds=function(){return U.slice()},xe.copy=function(){return lS().domain([m,O]).range(ne).unknown(de)},Oh.apply(yv(xe),arguments)}function cS(){var m=[.5],O=[0,1],M,U=1;function ne(de){return de!=null&&de<=de?O[y(m,de,0,U)]:M}return ne.domain=function(de){return arguments.length?(m=Array.from(de),U=Math.min(m.length,O.length-1),ne):m.slice()},ne.range=function(de){return arguments.length?(O=Array.from(de),U=Math.min(m.length,O.length-1),ne):O.slice()},ne.invertExtent=function(de){var xe=O.indexOf(de);return[m[xe-1],m[xe]]},ne.unknown=function(de){return arguments.length?(M=de,ne):M},ne.copy=function(){return cS().domain(m).range(O).unknown(M)},Oh.apply(ne,arguments)}const qh=1e3,wh=qh*60,ev=wh*60,tv=ev*24,Db=tv*7,fS=tv*30,_b=tv*365,Lb=new Date,Nb=new Date;function gd(m,O,M,U){function ne(de){return m(de=arguments.length===0?new Date:new Date(+de)),de}return ne.floor=de=>(m(de=new Date(+de)),de),ne.ceil=de=>(m(de=new Date(de-1)),O(de,1),m(de),de),ne.round=de=>{const xe=ne(de),Ie=ne.ceil(de);return de-xe<Ie-de?xe:Ie},ne.offset=(de,xe)=>(O(de=new Date(+de),xe==null?1:Math.floor(xe)),de),ne.range=(de,xe,Ie)=>{const Qe=[];if(de=ne.ceil(de),Ie=Ie==null?1:Math.floor(Ie),!(de<xe)||!(Ie>0))return Qe;let Ue;do Qe.push(Ue=new Date(+de)),O(de,Ie),m(de);while(Ue<de&&de<xe);return Qe},ne.filter=de=>gd(xe=>{if(xe>=xe)for(;m(xe),!de(xe);)xe.setTime(xe-1)},(xe,Ie)=>{if(xe>=xe)if(Ie<0)for(;++Ie<=0;)for(;O(xe,-1),!de(xe););else for(;--Ie>=0;)for(;O(xe,1),!de(xe););}),M&&(ne.count=(de,xe)=>(Lb.setTime(+de),Nb.setTime(+xe),m(Lb),m(Nb),Math.floor(M(Lb,Nb))),ne.every=de=>(de=Math.floor(de),!isFinite(de)||!(de>0)?null:de>1?ne.filter(U?xe=>U(xe)%de===0:xe=>ne.count(0,xe)%de===0):ne)),ne}const ip=gd(()=>{},(m,O)=>{m.setTime(+m+O)},(m,O)=>O-m);ip.every=m=>(m=Math.floor(m),!isFinite(m)||!(m>0)?null:m>1?gd(O=>{O.setTime(Math.floor(O/m)*m)},(O,M)=>{O.setTime(+O+M*m)},(O,M)=>(M-O)/m):ip);const dS=ip.range,nv=gd(m=>{m.setTime(m-m.getMilliseconds())},(m,O)=>{m.setTime(+m+O*qh)},(m,O)=>(O-m)/qh,m=>m.getUTCSeconds()),hS=nv.range,_m=gd(m=>{m.setTime(m-m.getMilliseconds()-m.getSeconds()*qh)},(m,O)=>{m.setTime(+m+O*wh)},(m,O)=>(O-m)/wh,m=>m.getMinutes()),ix=_m.range,Lm=gd(m=>{m.setUTCSeconds(0,0)},(m,O)=>{m.setTime(+m+O*wh)},(m,O)=>(O-m)/wh,m=>m.getUTCMinutes()),ax=Lm.range,Nm=gd(m=>{m.setTime(m-m.getMilliseconds()-m.getSeconds()*qh-m.getMinutes()*wh)},(m,O)=>{m.setTime(+m+O*ev)},(m,O)=>(O-m)/ev,m=>m.getHours()),ox=Nm.range,Fm=gd(m=>{m.setUTCMinutes(0,0,0)},(m,O)=>{m.setTime(+m+O*ev)},(m,O)=>(O-m)/ev,m=>m.getUTCHours()),sx=Fm.range,ap=gd(m=>m.setHours(0,0,0,0),(m,O)=>m.setDate(m.getDate()+O),(m,O)=>(O-m-(O.getTimezoneOffset()-m.getTimezoneOffset())*wh)/tv,m=>m.getDate()-1),ux=ap.range,Qp=gd(m=>{m.setUTCHours(0,0,0,0)},(m,O)=>{m.setUTCDate(m.getUTCDate()+O)},(m,O)=>(O-m)/tv,m=>m.getUTCDate()-1),lx=Qp.range,Fb=gd(m=>{m.setUTCHours(0,0,0,0)},(m,O)=>{m.setUTCDate(m.getUTCDate()+O)},(m,O)=>(O-m)/tv,m=>Math.floor(m/tv)),cx=Fb.range;function Lv(m){return gd(O=>{O.setDate(O.getDate()-(O.getDay()+7-m)%7),O.setHours(0,0,0,0)},(O,M)=>{O.setDate(O.getDate()+M*7)},(O,M)=>(M-O-(M.getTimezoneOffset()-O.getTimezoneOffset())*wh)/Db)}const op=Lv(0),Jp=Lv(1),vS=Lv(2),pS=Lv(3),Nv=Lv(4),gS=Lv(5),mS=Lv(6),yS=op.range,fx=Jp.range,dx=vS.range,hx=pS.range,vx=Nv.range,px=gS.range,gx=mS.range;function Fv(m){return gd(O=>{O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-m)%7),O.setUTCHours(0,0,0,0)},(O,M)=>{O.setUTCDate(O.getUTCDate()+M*7)},(O,M)=>(M-O)/Db)}const sp=Fv(0),qp=Fv(1),bS=Fv(2),ES=Fv(3),kv=Fv(4),SS=Fv(5),OS=Fv(6),wS=sp.range,mx=qp.range,yx=bS.range,bx=ES.range,Ex=kv.range,Sx=SS.range,Ox=OS.range,km=gd(m=>{m.setDate(1),m.setHours(0,0,0,0)},(m,O)=>{m.setMonth(m.getMonth()+O)},(m,O)=>O.getMonth()-m.getMonth()+(O.getFullYear()-m.getFullYear())*12,m=>m.getMonth()),wx=km.range,Bm=gd(m=>{m.setUTCDate(1),m.setUTCHours(0,0,0,0)},(m,O)=>{m.setUTCMonth(m.getUTCMonth()+O)},(m,O)=>O.getUTCMonth()-m.getUTCMonth()+(O.getUTCFullYear()-m.getUTCFullYear())*12,m=>m.getUTCMonth()),Px=Bm.range,zh=gd(m=>{m.setMonth(0,1),m.setHours(0,0,0,0)},(m,O)=>{m.setFullYear(m.getFullYear()+O)},(m,O)=>O.getFullYear()-m.getFullYear(),m=>m.getFullYear());zh.every=m=>!isFinite(m=Math.floor(m))||!(m>0)?null:gd(O=>{O.setFullYear(Math.floor(O.getFullYear()/m)*m),O.setMonth(0,1),O.setHours(0,0,0,0)},(O,M)=>{O.setFullYear(O.getFullYear()+M*m)});const Cx=zh.range,Hh=gd(m=>{m.setUTCMonth(0,1),m.setUTCHours(0,0,0,0)},(m,O)=>{m.setUTCFullYear(m.getUTCFullYear()+O)},(m,O)=>O.getUTCFullYear()-m.getUTCFullYear(),m=>m.getUTCFullYear());Hh.every=m=>!isFinite(m=Math.floor(m))||!(m>0)?null:gd(O=>{O.setUTCFullYear(Math.floor(O.getUTCFullYear()/m)*m),O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},(O,M)=>{O.setUTCFullYear(O.getUTCFullYear()+M*m)});const xx=Hh.range;function PS(m,O,M,U,ne,de){const xe=[[nv,1,qh],[nv,5,5*qh],[nv,15,15*qh],[nv,30,30*qh],[de,1,wh],[de,5,5*wh],[de,15,15*wh],[de,30,30*wh],[ne,1,ev],[ne,3,3*ev],[ne,6,6*ev],[ne,12,12*ev],[U,1,tv],[U,2,2*tv],[M,1,Db],[O,1,fS],[O,3,3*fS],[m,1,_b]];function Ie(Ue,dt,$t){const Ot=dt<Ue;Ot&&([Ue,dt]=[dt,Ue]);const Jt=$t&&typeof $t.range=="function"?$t:Qe(Ue,dt,$t),Un=Jt?Jt.range(Ue,+dt+1):[];return Ot?Un.reverse():Un}function Qe(Ue,dt,$t){const Ot=Math.abs(dt-Ue)/$t,Jt=u(([,,Cn])=>Cn).right(xe,Ot);if(Jt===xe.length)return m.every(Et(Ue/_b,dt/_b,$t));if(Jt===0)return ip.every(Math.max(Et(Ue,dt,$t),1));const[Un,Pn]=xe[Ot/xe[Jt-1][2]<xe[Jt][2]/Ot?Jt-1:Jt];return Un.every(Pn)}return[Ie,Qe]}const[CS,xS]=PS(Hh,Bm,sp,Fb,Fm,Lm),[TS,AS]=PS(zh,km,op,ap,Nm,_m);function kb(m){if(0<=m.y&&m.y<100){var O=new Date(-1,m.m,m.d,m.H,m.M,m.S,m.L);return O.setFullYear(m.y),O}return new Date(m.y,m.m,m.d,m.H,m.M,m.S,m.L)}function Bb(m){if(0<=m.y&&m.y<100){var O=new Date(Date.UTC(-1,m.m,m.d,m.H,m.M,m.S,m.L));return O.setUTCFullYear(m.y),O}return new Date(Date.UTC(m.y,m.m,m.d,m.H,m.M,m.S,m.L))}function eg(m,O,M){return{y:m,m:O,d:M,H:0,M:0,S:0,L:0}}function RS(m){var O=m.dateTime,M=m.date,U=m.time,ne=m.periods,de=m.days,xe=m.shortDays,Ie=m.months,Qe=m.shortMonths,Ue=tg(ne),dt=ng(ne),$t=tg(de),Ot=ng(de),Jt=tg(xe),Un=ng(xe),Pn=tg(Ie),Cn=ng(Ie),Fn=tg(Qe),mr=ng(Qe),hr={a:Ra,A:Vi,b:Na,B:oa,c:null,d:FS,e:FS,f:Yx,g:aT,G:sT,H:Vx,I:Gx,j:Zx,L:kS,m:Xx,M:Qx,p:fo,q:Ro,Q:zS,s:HS,S:Jx,u:qx,U:eT,V:tT,w:nT,W:rT,x:null,X:null,y:iT,Y:oT,Z:uT,"%":WS},ar={a:Zo,A:zo,b:ss,B:Xs,c:null,d:$S,e:$S,f:dT,g:OT,G:PT,H:lT,I:cT,j:fT,L:jS,m:hT,M:vT,p:ps,q:Au,Q:zS,s:HS,S:pT,u:gT,U:mT,V:yT,w:bT,W:ET,x:null,X:null,y:ST,Y:wT,Z:CT,"%":WS},qr={a:ga,A:ba,b:wo,B:so,c:Rr,d:LS,e:LS,f:Wx,g:_S,G:DS,H:NS,I:NS,j:Bx,L:Ux,m:kx,M:$x,p:io,q:Fx,Q:Hx,s:Kx,S:jx,u:Ix,U:Dx,V:_x,w:Mx,W:Lx,x:Ii,X:zi,y:_S,Y:DS,Z:Nx,"%":zx};hr.x=Di(M,hr),hr.X=Di(U,hr),hr.c=Di(O,hr),ar.x=Di(M,ar),ar.X=Di(U,ar),ar.c=Di(O,ar);function Di(hs,Gs){return function(ou){var ts=[],Wu=-1,Sl=0,uc=hs.length,Dl,xu,nc;for(ou instanceof Date||(ou=new Date(+ou));++Wu<uc;)hs.charCodeAt(Wu)===37&&(ts.push(hs.slice(Sl,Wu)),(xu=IS[Dl=hs.charAt(++Wu)])!=null?Dl=hs.charAt(++Wu):xu=Dl==="e"?" ":"0",(nc=Gs[Dl])&&(Dl=nc(ou,xu)),ts.push(Dl),Sl=Wu+1);return ts.push(hs.slice(Sl,Wu)),ts.join("")}}function Xi(hs,Gs){return function(ou){var ts=eg(1900,void 0,1),Wu=ya(ts,hs,ou+="",0),Sl,uc;if(Wu!=ou.length)return null;if("Q"in ts)return new Date(ts.Q);if("s"in ts)return new Date(ts.s*1e3+("L"in ts?ts.L:0));if(Gs&&!("Z"in ts)&&(ts.Z=0),"p"in ts&&(ts.H=ts.H%12+ts.p*12),ts.m===void 0&&(ts.m="q"in ts?ts.q:0),"V"in ts){if(ts.V<1||ts.V>53)return null;"w"in ts||(ts.w=1),"Z"in ts?(Sl=Bb(eg(ts.y,0,1)),uc=Sl.getUTCDay(),Sl=uc>4||uc===0?qp.ceil(Sl):qp(Sl),Sl=Qp.offset(Sl,(ts.V-1)*7),ts.y=Sl.getUTCFullYear(),ts.m=Sl.getUTCMonth(),ts.d=Sl.getUTCDate()+(ts.w+6)%7):(Sl=kb(eg(ts.y,0,1)),uc=Sl.getDay(),Sl=uc>4||uc===0?Jp.ceil(Sl):Jp(Sl),Sl=ap.offset(Sl,(ts.V-1)*7),ts.y=Sl.getFullYear(),ts.m=Sl.getMonth(),ts.d=Sl.getDate()+(ts.w+6)%7)}else("W"in ts||"U"in ts)&&("w"in ts||(ts.w="u"in ts?ts.u%7:"W"in ts?1:0),uc="Z"in ts?Bb(eg(ts.y,0,1)).getUTCDay():kb(eg(ts.y,0,1)).getDay(),ts.m=0,ts.d="W"in ts?(ts.w+6)%7+ts.W*7-(uc+5)%7:ts.w+ts.U*7-(uc+6)%7);return"Z"in ts?(ts.H+=ts.Z/100|0,ts.M+=ts.Z%100,Bb(ts)):kb(ts)}}function ya(hs,Gs,ou,ts){for(var Wu=0,Sl=Gs.length,uc=ou.length,Dl,xu;Wu<Sl;){if(ts>=uc)return-1;if(Dl=Gs.charCodeAt(Wu++),Dl===37){if(Dl=Gs.charAt(Wu++),xu=qr[Dl in IS?Gs.charAt(Wu++):Dl],!xu||(ts=xu(hs,ou,ts))<0)return-1}else if(Dl!=ou.charCodeAt(ts++))return-1}return ts}function io(hs,Gs,ou){var ts=Ue.exec(Gs.slice(ou));return ts?(hs.p=dt.get(ts[0].toLowerCase()),ou+ts[0].length):-1}function ga(hs,Gs,ou){var ts=Jt.exec(Gs.slice(ou));return ts?(hs.w=Un.get(ts[0].toLowerCase()),ou+ts[0].length):-1}function ba(hs,Gs,ou){var ts=$t.exec(Gs.slice(ou));return ts?(hs.w=Ot.get(ts[0].toLowerCase()),ou+ts[0].length):-1}function wo(hs,Gs,ou){var ts=Fn.exec(Gs.slice(ou));return ts?(hs.m=mr.get(ts[0].toLowerCase()),ou+ts[0].length):-1}function so(hs,Gs,ou){var ts=Pn.exec(Gs.slice(ou));return ts?(hs.m=Cn.get(ts[0].toLowerCase()),ou+ts[0].length):-1}function Rr(hs,Gs,ou){return ya(hs,O,Gs,ou)}function Ii(hs,Gs,ou){return ya(hs,M,Gs,ou)}function zi(hs,Gs,ou){return ya(hs,U,Gs,ou)}function Ra(hs){return xe[hs.getDay()]}function Vi(hs){return de[hs.getDay()]}function Na(hs){return Qe[hs.getMonth()]}function oa(hs){return Ie[hs.getMonth()]}function fo(hs){return ne[+(hs.getHours()>=12)]}function Ro(hs){return 1+~~(hs.getMonth()/3)}function Zo(hs){return xe[hs.getUTCDay()]}function zo(hs){return de[hs.getUTCDay()]}function ss(hs){return Qe[hs.getUTCMonth()]}function Xs(hs){return Ie[hs.getUTCMonth()]}function ps(hs){return ne[+(hs.getUTCHours()>=12)]}function Au(hs){return 1+~~(hs.getUTCMonth()/3)}return{format:function(hs){var Gs=Di(hs+="",hr);return Gs.toString=function(){return hs},Gs},parse:function(hs){var Gs=Xi(hs+="",!1);return Gs.toString=function(){return hs},Gs},utcFormat:function(hs){var Gs=Di(hs+="",ar);return Gs.toString=function(){return hs},Gs},utcParse:function(hs){var Gs=Xi(hs+="",!0);return Gs.toString=function(){return hs},Gs}}}var IS={"-":"",_:" ",0:"0"},Pd=/^\s*\d+/,Tx=/^%/,Ax=/[\\^$*+?|[\]().{}]/g;function uf(m,O,M){var U=m<0?"-":"",ne=(U?-m:m)+"",de=ne.length;return U+(de<M?new Array(M-de+1).join(O)+ne:ne)}function Rx(m){return m.replace(Ax,"\\$&")}function tg(m){return new RegExp("^(?:"+m.map(Rx).join("|")+")","i")}function ng(m){return new Map(m.map((O,M)=>[O.toLowerCase(),M]))}function Mx(m,O,M){var U=Pd.exec(O.slice(M,M+1));return U?(m.w=+U[0],M+U[0].length):-1}function Ix(m,O,M){var U=Pd.exec(O.slice(M,M+1));return U?(m.u=+U[0],M+U[0].length):-1}function Dx(m,O,M){var U=Pd.exec(O.slice(M,M+2));return U?(m.U=+U[0],M+U[0].length):-1}function _x(m,O,M){var U=Pd.exec(O.slice(M,M+2));return U?(m.V=+U[0],M+U[0].length):-1}function Lx(m,O,M){var U=Pd.exec(O.slice(M,M+2));return U?(m.W=+U[0],M+U[0].length):-1}function DS(m,O,M){var U=Pd.exec(O.slice(M,M+4));return U?(m.y=+U[0],M+U[0].length):-1}function _S(m,O,M){var U=Pd.exec(O.slice(M,M+2));return U?(m.y=+U[0]+(+U[0]>68?1900:2e3),M+U[0].length):-1}function Nx(m,O,M){var U=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(M,M+6));return U?(m.Z=U[1]?0:-(U[2]+(U[3]||"00")),M+U[0].length):-1}function Fx(m,O,M){var U=Pd.exec(O.slice(M,M+1));return U?(m.q=U[0]*3-3,M+U[0].length):-1}function kx(m,O,M){var U=Pd.exec(O.slice(M,M+2));return U?(m.m=U[0]-1,M+U[0].length):-1}function LS(m,O,M){var U=Pd.exec(O.slice(M,M+2));return U?(m.d=+U[0],M+U[0].length):-1}function Bx(m,O,M){var U=Pd.exec(O.slice(M,M+3));return U?(m.m=0,m.d=+U[0],M+U[0].length):-1}function NS(m,O,M){var U=Pd.exec(O.slice(M,M+2));return U?(m.H=+U[0],M+U[0].length):-1}function $x(m,O,M){var U=Pd.exec(O.slice(M,M+2));return U?(m.M=+U[0],M+U[0].length):-1}function jx(m,O,M){var U=Pd.exec(O.slice(M,M+2));return U?(m.S=+U[0],M+U[0].length):-1}function Ux(m,O,M){var U=Pd.exec(O.slice(M,M+3));return U?(m.L=+U[0],M+U[0].length):-1}function Wx(m,O,M){var U=Pd.exec(O.slice(M,M+6));return U?(m.L=Math.floor(U[0]/1e3),M+U[0].length):-1}function zx(m,O,M){var U=Tx.exec(O.slice(M,M+1));return U?M+U[0].length:-1}function Hx(m,O,M){var U=Pd.exec(O.slice(M));return U?(m.Q=+U[0],M+U[0].length):-1}function Kx(m,O,M){var U=Pd.exec(O.slice(M));return U?(m.s=+U[0],M+U[0].length):-1}function FS(m,O){return uf(m.getDate(),O,2)}function Vx(m,O){return uf(m.getHours(),O,2)}function Gx(m,O){return uf(m.getHours()%12||12,O,2)}function Zx(m,O){return uf(1+ap.count(zh(m),m),O,3)}function kS(m,O){return uf(m.getMilliseconds(),O,3)}function Yx(m,O){return kS(m,O)+"000"}function Xx(m,O){return uf(m.getMonth()+1,O,2)}function Qx(m,O){return uf(m.getMinutes(),O,2)}function Jx(m,O){return uf(m.getSeconds(),O,2)}function qx(m){var O=m.getDay();return O===0?7:O}function eT(m,O){return uf(op.count(zh(m)-1,m),O,2)}function BS(m){var O=m.getDay();return O>=4||O===0?Nv(m):Nv.ceil(m)}function tT(m,O){return m=BS(m),uf(Nv.count(zh(m),m)+(zh(m).getDay()===4),O,2)}function nT(m){return m.getDay()}function rT(m,O){return uf(Jp.count(zh(m)-1,m),O,2)}function iT(m,O){return uf(m.getFullYear()%100,O,2)}function aT(m,O){return m=BS(m),uf(m.getFullYear()%100,O,2)}function oT(m,O){return uf(m.getFullYear()%1e4,O,4)}function sT(m,O){var M=m.getDay();return m=M>=4||M===0?Nv(m):Nv.ceil(m),uf(m.getFullYear()%1e4,O,4)}function uT(m){var O=m.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+uf(O/60|0,"0",2)+uf(O%60,"0",2)}function $S(m,O){return uf(m.getUTCDate(),O,2)}function lT(m,O){return uf(m.getUTCHours(),O,2)}function cT(m,O){return uf(m.getUTCHours()%12||12,O,2)}function fT(m,O){return uf(1+Qp.count(Hh(m),m),O,3)}function jS(m,O){return uf(m.getUTCMilliseconds(),O,3)}function dT(m,O){return jS(m,O)+"000"}function hT(m,O){return uf(m.getUTCMonth()+1,O,2)}function vT(m,O){return uf(m.getUTCMinutes(),O,2)}function pT(m,O){return uf(m.getUTCSeconds(),O,2)}function gT(m){var O=m.getUTCDay();return O===0?7:O}function mT(m,O){return uf(sp.count(Hh(m)-1,m),O,2)}function US(m){var O=m.getUTCDay();return O>=4||O===0?kv(m):kv.ceil(m)}function yT(m,O){return m=US(m),uf(kv.count(Hh(m),m)+(Hh(m).getUTCDay()===4),O,2)}function bT(m){return m.getUTCDay()}function ET(m,O){return uf(qp.count(Hh(m)-1,m),O,2)}function ST(m,O){return uf(m.getUTCFullYear()%100,O,2)}function OT(m,O){return m=US(m),uf(m.getUTCFullYear()%100,O,2)}function wT(m,O){return uf(m.getUTCFullYear()%1e4,O,4)}function PT(m,O){var M=m.getUTCDay();return m=M>=4||M===0?kv(m):kv.ceil(m),uf(m.getUTCFullYear()%1e4,O,4)}function CT(){return"+0000"}function WS(){return"%"}function zS(m){return+m}function HS(m){return Math.floor(+m/1e3)}var up,$b,KS,$m,jb;VS({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function VS(m){return up=RS(m),$b=up.format,KS=up.parse,$m=up.utcFormat,jb=up.utcParse,up}function xT(m){return new Date(m)}function TT(m){return m instanceof Date?+m:+new Date(+m)}function Ub(m,O,M,U,ne,de,xe,Ie,Qe,Ue){var dt=Tb(),$t=dt.invert,Ot=dt.domain,Jt=Ue(".%L"),Un=Ue(":%S"),Pn=Ue("%I:%M"),Cn=Ue("%I %p"),Fn=Ue("%a %d"),mr=Ue("%b %d"),hr=Ue("%B"),ar=Ue("%Y");function qr(Di){return(Qe(Di)<Di?Jt:Ie(Di)<Di?Un:xe(Di)<Di?Pn:de(Di)<Di?Cn:U(Di)<Di?ne(Di)<Di?Fn:mr:M(Di)<Di?hr:ar)(Di)}return dt.invert=function(Di){return new Date($t(Di))},dt.domain=function(Di){return arguments.length?Ot(Array.from(Di,TT)):Ot().map(xT)},dt.ticks=function(Di){var Xi=Ot();return m(Xi[0],Xi[Xi.length-1],Di??10)},dt.tickFormat=function(Di,Xi){return Xi==null?qr:Ue(Xi)},dt.nice=function(Di){var Xi=Ot();return(!Di||typeof Di.range!="function")&&(Di=O(Xi[0],Xi[Xi.length-1],Di??10)),Di?Ot(QE(Xi,Di)):dt},dt.copy=function(){return Xp(dt,Ub(m,O,M,U,ne,de,xe,Ie,Qe,Ue))},dt}function AT(){return Oh.apply(Ub(TS,AS,zh,km,op,ap,Nm,_m,nv,$b).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function RT(){return Oh.apply(Ub(CS,xS,Hh,Bm,sp,Qp,Fm,Lm,nv,$m).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function jm(){var m=0,O=1,M,U,ne,de,xe=eh,Ie=!1,Qe;function Ue($t){return $t==null||isNaN($t=+$t)?Qe:xe(ne===0?.5:($t=(de($t)-M)*ne,Ie?Math.max(0,Math.min(1,$t)):$t))}Ue.domain=function($t){return arguments.length?([m,O]=$t,M=de(m=+m),U=de(O=+O),ne=M===U?0:1/(U-M),Ue):[m,O]},Ue.clamp=function($t){return arguments.length?(Ie=!!$t,Ue):Ie},Ue.interpolator=function($t){return arguments.length?(xe=$t,Ue):xe};function dt($t){return function(Ot){var Jt,Un;return arguments.length?([Jt,Un]=Ot,xe=$t(Jt,Un),Ue):[xe(0),xe(1)]}}return Ue.range=dt(jt),Ue.rangeRound=dt(Mm),Ue.unknown=function($t){return arguments.length?(Qe=$t,Ue):Qe},function($t){return de=$t,M=$t(m),U=$t(O),ne=M===U?0:1/(U-M),Ue}}function bv(m,O){return O.domain(m.domain()).interpolator(m.interpolator()).clamp(m.clamp()).unknown(m.unknown())}function GS(){var m=yv(jm()(eh));return m.copy=function(){return bv(m,GS())},Jh.apply(m,arguments)}function ZS(){var m=Ab(jm()).domain([1,10]);return m.copy=function(){return bv(m,ZS()).base(m.base())},Jh.apply(m,arguments)}function YS(){var m=Rb(jm());return m.copy=function(){return bv(m,YS()).constant(m.constant())},Jh.apply(m,arguments)}function Wb(){var m=Mb(jm());return m.copy=function(){return bv(m,Wb()).exponent(m.exponent())},Jh.apply(m,arguments)}function MT(){return Wb.apply(null,arguments).exponent(.5)}function XS(){var m=[],O=eh;function M(U){if(U!=null&&!isNaN(U=+U))return O((y(m,U,1)-1)/(m.length-1))}return M.domain=function(U){if(!arguments.length)return m.slice();m=[];for(let ne of U)ne!=null&&!isNaN(ne=+ne)&&m.push(ne);return m.sort(i),M},M.interpolator=function(U){return arguments.length?(O=U,M):O},M.range=function(){return m.map((U,ne)=>O(ne/(m.length-1)))},M.quantiles=function(U){return Array.from({length:U+1},(ne,de)=>zt(m,de/U))},M.copy=function(){return XS(O).domain(m)},Jh.apply(M,arguments)}function Um(){var m=0,O=.5,M=1,U=1,ne,de,xe,Ie,Qe,Ue=eh,dt,$t=!1,Ot;function Jt(Pn){return isNaN(Pn=+Pn)?Ot:(Pn=.5+((Pn=+dt(Pn))-de)*(U*Pn<U*de?Ie:Qe),Ue($t?Math.max(0,Math.min(1,Pn)):Pn))}Jt.domain=function(Pn){return arguments.length?([m,O,M]=Pn,ne=dt(m=+m),de=dt(O=+O),xe=dt(M=+M),Ie=ne===de?0:.5/(de-ne),Qe=de===xe?0:.5/(xe-de),U=de<ne?-1:1,Jt):[m,O,M]},Jt.clamp=function(Pn){return arguments.length?($t=!!Pn,Jt):$t},Jt.interpolator=function(Pn){return arguments.length?(Ue=Pn,Jt):Ue};function Un(Pn){return function(Cn){var Fn,mr,hr;return arguments.length?([Fn,mr,hr]=Cn,Ue=$E(Pn,[Fn,mr,hr]),Jt):[Ue(0),Ue(.5),Ue(1)]}}return Jt.range=Un(jt),Jt.rangeRound=Un(Mm),Jt.unknown=function(Pn){return arguments.length?(Ot=Pn,Jt):Ot},function(Pn){return dt=Pn,ne=Pn(m),de=Pn(O),xe=Pn(M),Ie=ne===de?0:.5/(de-ne),Qe=de===xe?0:.5/(xe-de),U=de<ne?-1:1,Jt}}function QS(){var m=yv(Um()(eh));return m.copy=function(){return bv(m,QS())},Jh.apply(m,arguments)}function JS(){var m=Ab(Um()).domain([.1,1,10]);return m.copy=function(){return bv(m,JS()).base(m.base())},Jh.apply(m,arguments)}function qS(){var m=Rb(Um());return m.copy=function(){return bv(m,qS()).constant(m.constant())},Jh.apply(m,arguments)}function zb(){var m=Mb(Um());return m.copy=function(){return bv(m,zb()).exponent(m.exponent())},Jh.apply(m,arguments)}function IT(){return zb.apply(null,arguments).exponent(.5)}var ol=t(58862);function DT(m){return Zs(cn(m).call(document.documentElement))}var _T=0;function eO(){return new Hb}function Hb(){this._="@"+(++_T).toString(36)}Hb.prototype=eO.prototype={constructor:Hb,get:function(m){for(var O=this._;!(O in m);)if(!(m=m.parentNode))return;return m[O]},set:function(m,O){return m[this._]=O},remove:function(m){return this._ in m&&delete m[this._]},toString:function(){return this._}};function LT(m,O){return m.target&&(m=$n(m),O===void 0&&(O=m.currentTarget),m=m.touches||[m]),Array.from(m,M=>pn(M,O))}function NT(m){return typeof m=="string"?new Co([document.querySelectorAll(m)],[document.documentElement]):new Co([Zr(m)],Io)}function Pc(m){return function(){return m}}const tO=Math.abs,Wd=Math.atan2,rv=Math.cos,FT=Math.max,lp=Math.min,uh=Math.sin,jf=Math.sqrt,zd=1e-12,Ev=Math.PI,Wm=Ev/2,Sv=2*Ev;function kT(m){return m>1?0:m<-1?Ev:Math.acos(m)}function nO(m){return m>=1?Wm:m<=-1?-Wm:Math.asin(m)}function rg(m){let O=3;return m.digits=function(M){if(!arguments.length)return O;if(M==null)O=null;else{const U=Math.floor(M);if(!(U>=0))throw new RangeError(`invalid digits: ${M}`);O=U}return m},()=>new gs(O)}function BT(m){return m.innerRadius}function $T(m){return m.outerRadius}function jT(m){return m.startAngle}function UT(m){return m.endAngle}function WT(m){return m&&m.padAngle}function zT(m,O,M,U,ne,de,xe,Ie){var Qe=M-m,Ue=U-O,dt=xe-ne,$t=Ie-de,Ot=$t*Qe-dt*Ue;if(!(Ot*Ot<zd))return Ot=(dt*(O-de)-$t*(m-ne))/Ot,[m+Ot*Qe,O+Ot*Ue]}function zm(m,O,M,U,ne,de,xe){var Ie=m-M,Qe=O-U,Ue=(xe?de:-de)/jf(Ie*Ie+Qe*Qe),dt=Ue*Qe,$t=-Ue*Ie,Ot=m+dt,Jt=O+$t,Un=M+dt,Pn=U+$t,Cn=(Ot+Un)/2,Fn=(Jt+Pn)/2,mr=Un-Ot,hr=Pn-Jt,ar=mr*mr+hr*hr,qr=ne-de,Di=Ot*Pn-Un*Jt,Xi=(hr<0?-1:1)*jf(FT(0,qr*qr*ar-Di*Di)),ya=(Di*hr-mr*Xi)/ar,io=(-Di*mr-hr*Xi)/ar,ga=(Di*hr+mr*Xi)/ar,ba=(-Di*mr+hr*Xi)/ar,wo=ya-Cn,so=io-Fn,Rr=ga-Cn,Ii=ba-Fn;return wo*wo+so*so>Rr*Rr+Ii*Ii&&(ya=ga,io=ba),{cx:ya,cy:io,x01:-dt,y01:-$t,x11:ya*(ne/qr-1),y11:io*(ne/qr-1)}}function HT(){var m=BT,O=$T,M=Pc(0),U=null,ne=jT,de=UT,xe=WT,Ie=null,Qe=rg(Ue);function Ue(){var dt,$t,Ot=+m.apply(this,arguments),Jt=+O.apply(this,arguments),Un=ne.apply(this,arguments)-Wm,Pn=de.apply(this,arguments)-Wm,Cn=tO(Pn-Un),Fn=Pn>Un;if(Ie||(Ie=dt=Qe()),Jt<Ot&&($t=Jt,Jt=Ot,Ot=$t),!(Jt>zd))Ie.moveTo(0,0);else if(Cn>Sv-zd)Ie.moveTo(Jt*rv(Un),Jt*uh(Un)),Ie.arc(0,0,Jt,Un,Pn,!Fn),Ot>zd&&(Ie.moveTo(Ot*rv(Pn),Ot*uh(Pn)),Ie.arc(0,0,Ot,Pn,Un,Fn));else{var mr=Un,hr=Pn,ar=Un,qr=Pn,Di=Cn,Xi=Cn,ya=xe.apply(this,arguments)/2,io=ya>zd&&(U?+U.apply(this,arguments):jf(Ot*Ot+Jt*Jt)),ga=lp(tO(Jt-Ot)/2,+M.apply(this,arguments)),ba=ga,wo=ga,so,Rr;if(io>zd){var Ii=nO(io/Ot*uh(ya)),zi=nO(io/Jt*uh(ya));(Di-=Ii*2)>zd?(Ii*=Fn?1:-1,ar+=Ii,qr-=Ii):(Di=0,ar=qr=(Un+Pn)/2),(Xi-=zi*2)>zd?(zi*=Fn?1:-1,mr+=zi,hr-=zi):(Xi=0,mr=hr=(Un+Pn)/2)}var Ra=Jt*rv(mr),Vi=Jt*uh(mr),Na=Ot*rv(qr),oa=Ot*uh(qr);if(ga>zd){var fo=Jt*rv(hr),Ro=Jt*uh(hr),Zo=Ot*rv(ar),zo=Ot*uh(ar),ss;if(Cn<Ev)if(ss=zT(Ra,Vi,Zo,zo,fo,Ro,Na,oa)){var Xs=Ra-ss[0],ps=Vi-ss[1],Au=fo-ss[0],hs=Ro-ss[1],Gs=1/uh(kT((Xs*Au+ps*hs)/(jf(Xs*Xs+ps*ps)*jf(Au*Au+hs*hs)))/2),ou=jf(ss[0]*ss[0]+ss[1]*ss[1]);ba=lp(ga,(Ot-ou)/(Gs-1)),wo=lp(ga,(Jt-ou)/(Gs+1))}else ba=wo=0}Xi>zd?wo>zd?(so=zm(Zo,zo,Ra,Vi,Jt,wo,Fn),Rr=zm(fo,Ro,Na,oa,Jt,wo,Fn),Ie.moveTo(so.cx+so.x01,so.cy+so.y01),wo<ga?Ie.arc(so.cx,so.cy,wo,Wd(so.y01,so.x01),Wd(Rr.y01,Rr.x01),!Fn):(Ie.arc(so.cx,so.cy,wo,Wd(so.y01,so.x01),Wd(so.y11,so.x11),!Fn),Ie.arc(0,0,Jt,Wd(so.cy+so.y11,so.cx+so.x11),Wd(Rr.cy+Rr.y11,Rr.cx+Rr.x11),!Fn),Ie.arc(Rr.cx,Rr.cy,wo,Wd(Rr.y11,Rr.x11),Wd(Rr.y01,Rr.x01),!Fn))):(Ie.moveTo(Ra,Vi),Ie.arc(0,0,Jt,mr,hr,!Fn)):Ie.moveTo(Ra,Vi),!(Ot>zd)||!(Di>zd)?Ie.lineTo(Na,oa):ba>zd?(so=zm(Na,oa,fo,Ro,Ot,-ba,Fn),Rr=zm(Ra,Vi,Zo,zo,Ot,-ba,Fn),Ie.lineTo(so.cx+so.x01,so.cy+so.y01),ba<ga?Ie.arc(so.cx,so.cy,ba,Wd(so.y01,so.x01),Wd(Rr.y01,Rr.x01),!Fn):(Ie.arc(so.cx,so.cy,ba,Wd(so.y01,so.x01),Wd(so.y11,so.x11),!Fn),Ie.arc(0,0,Ot,Wd(so.cy+so.y11,so.cx+so.x11),Wd(Rr.cy+Rr.y11,Rr.cx+Rr.x11),Fn),Ie.arc(Rr.cx,Rr.cy,ba,Wd(Rr.y11,Rr.x11),Wd(Rr.y01,Rr.x01),!Fn))):Ie.arc(0,0,Ot,qr,ar,Fn)}if(Ie.closePath(),dt)return Ie=null,dt+""||null}return Ue.centroid=function(){var dt=(+m.apply(this,arguments)+ +O.apply(this,arguments))/2,$t=(+ne.apply(this,arguments)+ +de.apply(this,arguments))/2-Ev/2;return[rv($t)*dt,uh($t)*dt]},Ue.innerRadius=function(dt){return arguments.length?(m=typeof dt=="function"?dt:Pc(+dt),Ue):m},Ue.outerRadius=function(dt){return arguments.length?(O=typeof dt=="function"?dt:Pc(+dt),Ue):O},Ue.cornerRadius=function(dt){return arguments.length?(M=typeof dt=="function"?dt:Pc(+dt),Ue):M},Ue.padRadius=function(dt){return arguments.length?(U=dt==null?null:typeof dt=="function"?dt:Pc(+dt),Ue):U},Ue.startAngle=function(dt){return arguments.length?(ne=typeof dt=="function"?dt:Pc(+dt),Ue):ne},Ue.endAngle=function(dt){return arguments.length?(de=typeof dt=="function"?dt:Pc(+dt),Ue):de},Ue.padAngle=function(dt){return arguments.length?(xe=typeof dt=="function"?dt:Pc(+dt),Ue):xe},Ue.context=function(dt){return arguments.length?(Ie=dt??null,Ue):Ie},Ue}var KT=Array.prototype.slice;function Hm(m){return typeof m=="object"&&"length"in m?m:Array.from(m)}function rO(m){this._context=m}rO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(m,O){switch(m=+m,O=+O,this._point){case 0:this._point=1,this._line?this._context.lineTo(m,O):this._context.moveTo(m,O);break;case 1:this._point=2;default:this._context.lineTo(m,O);break}}};function Km(m){return new rO(m)}function Kb(m){return m[0]}function Vb(m){return m[1]}function Gb(m,O){var M=Pc(!0),U=null,ne=Km,de=null,xe=rg(Ie);m=typeof m=="function"?m:m===void 0?Kb:Pc(m),O=typeof O=="function"?O:O===void 0?Vb:Pc(O);function Ie(Qe){var Ue,dt=(Qe=Hm(Qe)).length,$t,Ot=!1,Jt;for(U==null&&(de=ne(Jt=xe())),Ue=0;Ue<=dt;++Ue)!(Ue<dt&&M($t=Qe[Ue],Ue,Qe))===Ot&&((Ot=!Ot)?de.lineStart():de.lineEnd()),Ot&&de.point(+m($t,Ue,Qe),+O($t,Ue,Qe));if(Jt)return de=null,Jt+""||null}return Ie.x=function(Qe){return arguments.length?(m=typeof Qe=="function"?Qe:Pc(+Qe),Ie):m},Ie.y=function(Qe){return arguments.length?(O=typeof Qe=="function"?Qe:Pc(+Qe),Ie):O},Ie.defined=function(Qe){return arguments.length?(M=typeof Qe=="function"?Qe:Pc(!!Qe),Ie):M},Ie.curve=function(Qe){return arguments.length?(ne=Qe,U!=null&&(de=ne(U)),Ie):ne},Ie.context=function(Qe){return arguments.length?(Qe==null?U=de=null:de=ne(U=Qe),Ie):U},Ie}function iO(m,O,M){var U=null,ne=Pc(!0),de=null,xe=Km,Ie=null,Qe=rg(Ue);m=typeof m=="function"?m:m===void 0?Kb:Pc(+m),O=typeof O=="function"?O:Pc(O===void 0?0:+O),M=typeof M=="function"?M:M===void 0?Vb:Pc(+M);function Ue($t){var Ot,Jt,Un,Pn=($t=Hm($t)).length,Cn,Fn=!1,mr,hr=new Array(Pn),ar=new Array(Pn);for(de==null&&(Ie=xe(mr=Qe())),Ot=0;Ot<=Pn;++Ot){if(!(Ot<Pn&&ne(Cn=$t[Ot],Ot,$t))===Fn)if(Fn=!Fn)Jt=Ot,Ie.areaStart(),Ie.lineStart();else{for(Ie.lineEnd(),Ie.lineStart(),Un=Ot-1;Un>=Jt;--Un)Ie.point(hr[Un],ar[Un]);Ie.lineEnd(),Ie.areaEnd()}Fn&&(hr[Ot]=+m(Cn,Ot,$t),ar[Ot]=+O(Cn,Ot,$t),Ie.point(U?+U(Cn,Ot,$t):hr[Ot],M?+M(Cn,Ot,$t):ar[Ot]))}if(mr)return Ie=null,mr+""||null}function dt(){return Gb().defined(ne).curve(xe).context(de)}return Ue.x=function($t){return arguments.length?(m=typeof $t=="function"?$t:Pc(+$t),U=null,Ue):m},Ue.x0=function($t){return arguments.length?(m=typeof $t=="function"?$t:Pc(+$t),Ue):m},Ue.x1=function($t){return arguments.length?(U=$t==null?null:typeof $t=="function"?$t:Pc(+$t),Ue):U},Ue.y=function($t){return arguments.length?(O=typeof $t=="function"?$t:Pc(+$t),M=null,Ue):O},Ue.y0=function($t){return arguments.length?(O=typeof $t=="function"?$t:Pc(+$t),Ue):O},Ue.y1=function($t){return arguments.length?(M=$t==null?null:typeof $t=="function"?$t:Pc(+$t),Ue):M},Ue.lineX0=Ue.lineY0=function(){return dt().x(m).y(O)},Ue.lineY1=function(){return dt().x(m).y(M)},Ue.lineX1=function(){return dt().x(U).y(O)},Ue.defined=function($t){return arguments.length?(ne=typeof $t=="function"?$t:Pc(!!$t),Ue):ne},Ue.curve=function($t){return arguments.length?(xe=$t,de!=null&&(Ie=xe(de)),Ue):xe},Ue.context=function($t){return arguments.length?($t==null?de=Ie=null:Ie=xe(de=$t),Ue):de},Ue}function VT(m,O){return O<m?-1:O>m?1:O>=m?0:NaN}function GT(m){return m}function ZT(){var m=GT,O=VT,M=null,U=Pc(0),ne=Pc(Sv),de=Pc(0);function xe(Ie){var Qe,Ue=(Ie=Hm(Ie)).length,dt,$t,Ot=0,Jt=new Array(Ue),Un=new Array(Ue),Pn=+U.apply(this,arguments),Cn=Math.min(Sv,Math.max(-Sv,ne.apply(this,arguments)-Pn)),Fn,mr=Math.min(Math.abs(Cn)/Ue,de.apply(this,arguments)),hr=mr*(Cn<0?-1:1),ar;for(Qe=0;Qe<Ue;++Qe)(ar=Un[Jt[Qe]=Qe]=+m(Ie[Qe],Qe,Ie))>0&&(Ot+=ar);for(O!=null?Jt.sort(function(qr,Di){return O(Un[qr],Un[Di])}):M!=null&&Jt.sort(function(qr,Di){return M(Ie[qr],Ie[Di])}),Qe=0,$t=Ot?(Cn-Ue*hr)/Ot:0;Qe<Ue;++Qe,Pn=Fn)dt=Jt[Qe],ar=Un[dt],Fn=Pn+(ar>0?ar*$t:0)+hr,Un[dt]={data:Ie[dt],index:Qe,value:ar,startAngle:Pn,endAngle:Fn,padAngle:mr};return Un}return xe.value=function(Ie){return arguments.length?(m=typeof Ie=="function"?Ie:Pc(+Ie),xe):m},xe.sortValues=function(Ie){return arguments.length?(O=Ie,M=null,xe):O},xe.sort=function(Ie){return arguments.length?(M=Ie,O=null,xe):M},xe.startAngle=function(Ie){return arguments.length?(U=typeof Ie=="function"?Ie:Pc(+Ie),xe):U},xe.endAngle=function(Ie){return arguments.length?(ne=typeof Ie=="function"?Ie:Pc(+Ie),xe):ne},xe.padAngle=function(Ie){return arguments.length?(de=typeof Ie=="function"?Ie:Pc(+Ie),xe):de},xe}var aO=Zb(Km);function oO(m){this._curve=m}oO.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(m,O){this._curve.point(O*Math.sin(m),O*-Math.cos(m))}};function Zb(m){function O(M){return new oO(m(M))}return O._curve=m,O}function ig(m){var O=m.curve;return m.angle=m.x,delete m.x,m.radius=m.y,delete m.y,m.curve=function(M){return arguments.length?O(Zb(M)):O()._curve},m}function sO(){return ig(Gb().curve(aO))}function uO(){var m=iO().curve(aO),O=m.curve,M=m.lineX0,U=m.lineX1,ne=m.lineY0,de=m.lineY1;return m.angle=m.x,delete m.x,m.startAngle=m.x0,delete m.x0,m.endAngle=m.x1,delete m.x1,m.radius=m.y,delete m.y,m.innerRadius=m.y0,delete m.y0,m.outerRadius=m.y1,delete m.y1,m.lineStartAngle=function(){return ig(M())},delete m.lineX0,m.lineEndAngle=function(){return ig(U())},delete m.lineX1,m.lineInnerRadius=function(){return ig(ne())},delete m.lineY0,m.lineOuterRadius=function(){return ig(de())},delete m.lineY1,m.curve=function(xe){return arguments.length?O(Zb(xe)):O()._curve},m}function ag(m,O){return[(O=+O)*Math.cos(m-=Math.PI/2),O*Math.sin(m)]}class lO{constructor(O,M){this._context=O,this._x=M}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(O,M){switch(O=+O,M=+M,this._point){case 0:{this._point=1,this._line?this._context.lineTo(O,M):this._context.moveTo(O,M);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+O)/2,this._y0,this._x0,M,O,M):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+M)/2,O,this._y0,O,M);break}}this._x0=O,this._y0=M}}class YT{constructor(O){this._context=O}lineStart(){this._point=0}lineEnd(){}point(O,M){if(O=+O,M=+M,this._point===0)this._point=1;else{const U=ag(this._x0,this._y0),ne=ag(this._x0,this._y0=(this._y0+M)/2),de=ag(O,this._y0),xe=ag(O,M);this._context.moveTo(...U),this._context.bezierCurveTo(...ne,...de,...xe)}this._x0=O,this._y0=M}}function cO(m){return new lO(m,!0)}function fO(m){return new lO(m,!1)}function XT(m){return new YT(m)}function QT(m){return m.source}function JT(m){return m.target}function Vm(m){let O=QT,M=JT,U=Kb,ne=Vb,de=null,xe=null,Ie=rg(Qe);function Qe(){let Ue;const dt=KT.call(arguments),$t=O.apply(this,dt),Ot=M.apply(this,dt);if(de==null&&(xe=m(Ue=Ie())),xe.lineStart(),dt[0]=$t,xe.point(+U.apply(this,dt),+ne.apply(this,dt)),dt[0]=Ot,xe.point(+U.apply(this,dt),+ne.apply(this,dt)),xe.lineEnd(),Ue)return xe=null,Ue+""||null}return Qe.source=function(Ue){return arguments.length?(O=Ue,Qe):O},Qe.target=function(Ue){return arguments.length?(M=Ue,Qe):M},Qe.x=function(Ue){return arguments.length?(U=typeof Ue=="function"?Ue:Pc(+Ue),Qe):U},Qe.y=function(Ue){return arguments.length?(ne=typeof Ue=="function"?Ue:Pc(+Ue),Qe):ne},Qe.context=function(Ue){return arguments.length?(Ue==null?de=xe=null:xe=m(de=Ue),Qe):de},Qe}function qT(){return Vm(cO)}function e2(){return Vm(fO)}function t2(){const m=Vm(XT);return m.angle=m.x,delete m.x,m.radius=m.y,delete m.y,m}const n2=jf(3),dO={draw(m,O){const M=jf(O+lp(O/28,.75))*.59436,U=M/2,ne=U*n2;m.moveTo(0,M),m.lineTo(0,-M),m.moveTo(-ne,-U),m.lineTo(ne,U),m.moveTo(-ne,U),m.lineTo(ne,-U)}},Gm={draw(m,O){const M=jf(O/Ev);m.moveTo(M,0),m.arc(0,0,M,0,Sv)}},hO={draw(m,O){const M=jf(O/5)/2;m.moveTo(-3*M,-M),m.lineTo(-M,-M),m.lineTo(-M,-3*M),m.lineTo(M,-3*M),m.lineTo(M,-M),m.lineTo(3*M,-M),m.lineTo(3*M,M),m.lineTo(M,M),m.lineTo(M,3*M),m.lineTo(-M,3*M),m.lineTo(-M,M),m.lineTo(-3*M,M),m.closePath()}},vO=jf(1/3),r2=vO*2,pO={draw(m,O){const M=jf(O/r2),U=M*vO;m.moveTo(0,-M),m.lineTo(U,0),m.lineTo(0,M),m.lineTo(-U,0),m.closePath()}},gO={draw(m,O){const M=jf(O)*.62625;m.moveTo(0,-M),m.lineTo(M,0),m.lineTo(0,M),m.lineTo(-M,0),m.closePath()}},mO={draw(m,O){const M=jf(O-lp(O/7,2))*.87559;m.moveTo(-M,0),m.lineTo(M,0),m.moveTo(0,M),m.lineTo(0,-M)}},yO={draw(m,O){const M=jf(O),U=-M/2;m.rect(U,U,M,M)}},bO={draw(m,O){const M=jf(O)*.4431;m.moveTo(M,M),m.lineTo(M,-M),m.lineTo(-M,-M),m.lineTo(-M,M),m.closePath()}},i2=.8908130915292852,EO=uh(Ev/10)/uh(7*Ev/10),a2=uh(Sv/10)*EO,o2=-rv(Sv/10)*EO,SO={draw(m,O){const M=jf(O*i2),U=a2*M,ne=o2*M;m.moveTo(0,-M),m.lineTo(U,ne);for(let de=1;de<5;++de){const xe=Sv*de/5,Ie=rv(xe),Qe=uh(xe);m.lineTo(Qe*M,-Ie*M),m.lineTo(Ie*U-Qe*ne,Qe*U+Ie*ne)}m.closePath()}},Yb=jf(3),OO={draw(m,O){const M=-jf(O/(Yb*3));m.moveTo(0,M*2),m.lineTo(-Yb*M,-M),m.lineTo(Yb*M,-M),m.closePath()}},s2=jf(3),wO={draw(m,O){const M=jf(O)*.6824,U=M/2,ne=M*s2/2;m.moveTo(0,-M),m.lineTo(ne,U),m.lineTo(-ne,U),m.closePath()}},Ph=-.5,Ch=jf(3)/2,Xb=1/jf(12),u2=(Xb/2+1)*3,PO={draw(m,O){const M=jf(O/u2),U=M/2,ne=M*Xb,de=U,xe=M*Xb+M,Ie=-de,Qe=xe;m.moveTo(U,ne),m.lineTo(de,xe),m.lineTo(Ie,Qe),m.lineTo(Ph*U-Ch*ne,Ch*U+Ph*ne),m.lineTo(Ph*de-Ch*xe,Ch*de+Ph*xe),m.lineTo(Ph*Ie-Ch*Qe,Ch*Ie+Ph*Qe),m.lineTo(Ph*U+Ch*ne,Ph*ne-Ch*U),m.lineTo(Ph*de+Ch*xe,Ph*xe-Ch*de),m.lineTo(Ph*Ie+Ch*Qe,Ph*Qe-Ch*Ie),m.closePath()}},Qb={draw(m,O){const M=jf(O-lp(O/6,1.7))*.6189;m.moveTo(-M,-M),m.lineTo(M,M),m.moveTo(-M,M),m.lineTo(M,-M)}},CO=[Gm,hO,pO,yO,SO,OO,PO],l2=[Gm,mO,Qb,wO,dO,bO,gO];function c2(m,O){let M=null,U=rg(ne);m=typeof m=="function"?m:Pc(m||Gm),O=typeof O=="function"?O:Pc(O===void 0?64:+O);function ne(){let de;if(M||(M=de=U()),m.apply(this,arguments).draw(M,+O.apply(this,arguments)),de)return M=null,de+""||null}return ne.type=function(de){return arguments.length?(m=typeof de=="function"?de:Pc(de),ne):m},ne.size=function(de){return arguments.length?(O=typeof de=="function"?de:Pc(+de),ne):O},ne.context=function(de){return arguments.length?(M=de??null,ne):M},ne}function Ov(){}function Zm(m,O,M){m._context.bezierCurveTo((2*m._x0+m._x1)/3,(2*m._y0+m._y1)/3,(m._x0+2*m._x1)/3,(m._y0+2*m._y1)/3,(m._x0+4*m._x1+O)/6,(m._y0+4*m._y1+M)/6)}function Ym(m){this._context=m}Ym.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Zm(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(m,O){switch(m=+m,O=+O,this._point){case 0:this._point=1,this._line?this._context.lineTo(m,O):this._context.moveTo(m,O);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Zm(this,m,O);break}this._x0=this._x1,this._x1=m,this._y0=this._y1,this._y1=O}};function f2(m){return new Ym(m)}function xO(m){this._context=m}xO.prototype={areaStart:Ov,areaEnd:Ov,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(m,O){switch(m=+m,O=+O,this._point){case 0:this._point=1,this._x2=m,this._y2=O;break;case 1:this._point=2,this._x3=m,this._y3=O;break;case 2:this._point=3,this._x4=m,this._y4=O,this._context.moveTo((this._x0+4*this._x1+m)/6,(this._y0+4*this._y1+O)/6);break;default:Zm(this,m,O);break}this._x0=this._x1,this._x1=m,this._y0=this._y1,this._y1=O}};function d2(m){return new xO(m)}function TO(m){this._context=m}TO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(m,O){switch(m=+m,O=+O,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var M=(this._x0+4*this._x1+m)/6,U=(this._y0+4*this._y1+O)/6;this._line?this._context.lineTo(M,U):this._context.moveTo(M,U);break;case 3:this._point=4;default:Zm(this,m,O);break}this._x0=this._x1,this._x1=m,this._y0=this._y1,this._y1=O}};function h2(m){return new TO(m)}function AO(m,O){this._basis=new Ym(m),this._beta=O}AO.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var m=this._x,O=this._y,M=m.length-1;if(M>0)for(var U=m[0],ne=O[0],de=m[M]-U,xe=O[M]-ne,Ie=-1,Qe;++Ie<=M;)Qe=Ie/M,this._basis.point(this._beta*m[Ie]+(1-this._beta)*(U+Qe*de),this._beta*O[Ie]+(1-this._beta)*(ne+Qe*xe));this._x=this._y=null,this._basis.lineEnd()},point:function(m,O){this._x.push(+m),this._y.push(+O)}};const v2=function m(O){function M(U){return O===1?new Ym(U):new AO(U,O)}return M.beta=function(U){return m(+U)},M}(.85);function Xm(m,O,M){m._context.bezierCurveTo(m._x1+m._k*(m._x2-m._x0),m._y1+m._k*(m._y2-m._y0),m._x2+m._k*(m._x1-O),m._y2+m._k*(m._y1-M),m._x2,m._y2)}function Jb(m,O){this._context=m,this._k=(1-O)/6}Jb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Xm(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(m,O){switch(m=+m,O=+O,this._point){case 0:this._point=1,this._line?this._context.lineTo(m,O):this._context.moveTo(m,O);break;case 1:this._point=2,this._x1=m,this._y1=O;break;case 2:this._point=3;default:Xm(this,m,O);break}this._x0=this._x1,this._x1=this._x2,this._x2=m,this._y0=this._y1,this._y1=this._y2,this._y2=O}};const p2=function m(O){function M(U){return new Jb(U,O)}return M.tension=function(U){return m(+U)},M}(0);function qb(m,O){this._context=m,this._k=(1-O)/6}qb.prototype={areaStart:Ov,areaEnd:Ov,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(m,O){switch(m=+m,O=+O,this._point){case 0:this._point=1,this._x3=m,this._y3=O;break;case 1:this._point=2,this._context.moveTo(this._x4=m,this._y4=O);break;case 2:this._point=3,this._x5=m,this._y5=O;break;default:Xm(this,m,O);break}this._x0=this._x1,this._x1=this._x2,this._x2=m,this._y0=this._y1,this._y1=this._y2,this._y2=O}};const g2=function m(O){function M(U){return new qb(U,O)}return M.tension=function(U){return m(+U)},M}(0);function e1(m,O){this._context=m,this._k=(1-O)/6}e1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(m,O){switch(m=+m,O=+O,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Xm(this,m,O);break}this._x0=this._x1,this._x1=this._x2,this._x2=m,this._y0=this._y1,this._y1=this._y2,this._y2=O}};const m2=function m(O){function M(U){return new e1(U,O)}return M.tension=function(U){return m(+U)},M}(0);function t1(m,O,M){var U=m._x1,ne=m._y1,de=m._x2,xe=m._y2;if(m._l01_a>zd){var Ie=2*m._l01_2a+3*m._l01_a*m._l12_a+m._l12_2a,Qe=3*m._l01_a*(m._l01_a+m._l12_a);U=(U*Ie-m._x0*m._l12_2a+m._x2*m._l01_2a)/Qe,ne=(ne*Ie-m._y0*m._l12_2a+m._y2*m._l01_2a)/Qe}if(m._l23_a>zd){var Ue=2*m._l23_2a+3*m._l23_a*m._l12_a+m._l12_2a,dt=3*m._l23_a*(m._l23_a+m._l12_a);de=(de*Ue+m._x1*m._l23_2a-O*m._l12_2a)/dt,xe=(xe*Ue+m._y1*m._l23_2a-M*m._l12_2a)/dt}m._context.bezierCurveTo(U,ne,de,xe,m._x2,m._y2)}function RO(m,O){this._context=m,this._alpha=O}RO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(m,O){if(m=+m,O=+O,this._point){var M=this._x2-m,U=this._y2-O;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(M*M+U*U,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(m,O):this._context.moveTo(m,O);break;case 1:this._point=2;break;case 2:this._point=3;default:t1(this,m,O);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=m,this._y0=this._y1,this._y1=this._y2,this._y2=O}};const y2=function m(O){function M(U){return O?new RO(U,O):new Jb(U,0)}return M.alpha=function(U){return m(+U)},M}(.5);function MO(m,O){this._context=m,this._alpha=O}MO.prototype={areaStart:Ov,areaEnd:Ov,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(m,O){if(m=+m,O=+O,this._point){var M=this._x2-m,U=this._y2-O;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(M*M+U*U,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=m,this._y3=O;break;case 1:this._point=2,this._context.moveTo(this._x4=m,this._y4=O);break;case 2:this._point=3,this._x5=m,this._y5=O;break;default:t1(this,m,O);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=m,this._y0=this._y1,this._y1=this._y2,this._y2=O}};const b2=function m(O){function M(U){return O?new MO(U,O):new qb(U,0)}return M.alpha=function(U){return m(+U)},M}(.5);function IO(m,O){this._context=m,this._alpha=O}IO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(m,O){if(m=+m,O=+O,this._point){var M=this._x2-m,U=this._y2-O;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(M*M+U*U,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:t1(this,m,O);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=m,this._y0=this._y1,this._y1=this._y2,this._y2=O}};const E2=function m(O){function M(U){return O?new IO(U,O):new e1(U,0)}return M.alpha=function(U){return m(+U)},M}(.5);function DO(m){this._context=m}DO.prototype={areaStart:Ov,areaEnd:Ov,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(m,O){m=+m,O=+O,this._point?this._context.lineTo(m,O):(this._point=1,this._context.moveTo(m,O))}};function S2(m){return new DO(m)}function _O(m){return m<0?-1:1}function LO(m,O,M){var U=m._x1-m._x0,ne=O-m._x1,de=(m._y1-m._y0)/(U||ne<0&&-0),xe=(M-m._y1)/(ne||U<0&&-0),Ie=(de*ne+xe*U)/(U+ne);return(_O(de)+_O(xe))*Math.min(Math.abs(de),Math.abs(xe),.5*Math.abs(Ie))||0}function NO(m,O){var M=m._x1-m._x0;return M?(3*(m._y1-m._y0)/M-O)/2:O}function n1(m,O,M){var U=m._x0,ne=m._y0,de=m._x1,xe=m._y1,Ie=(de-U)/3;m._context.bezierCurveTo(U+Ie,ne+Ie*O,de-Ie,xe-Ie*M,de,xe)}function Qm(m){this._context=m}Qm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:n1(this,this._t0,NO(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(m,O){var M=NaN;if(m=+m,O=+O,!(m===this._x1&&O===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(m,O):this._context.moveTo(m,O);break;case 1:this._point=2;break;case 2:this._point=3,n1(this,NO(this,M=LO(this,m,O)),M);break;default:n1(this,this._t0,M=LO(this,m,O));break}this._x0=this._x1,this._x1=m,this._y0=this._y1,this._y1=O,this._t0=M}}};function FO(m){this._context=new kO(m)}(FO.prototype=Object.create(Qm.prototype)).point=function(m,O){Qm.prototype.point.call(this,O,m)};function kO(m){this._context=m}kO.prototype={moveTo:function(m,O){this._context.moveTo(O,m)},closePath:function(){this._context.closePath()},lineTo:function(m,O){this._context.lineTo(O,m)},bezierCurveTo:function(m,O,M,U,ne,de){this._context.bezierCurveTo(O,m,U,M,de,ne)}};function O2(m){return new Qm(m)}function w2(m){return new FO(m)}function BO(m){this._context=m}BO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var m=this._x,O=this._y,M=m.length;if(M)if(this._line?this._context.lineTo(m[0],O[0]):this._context.moveTo(m[0],O[0]),M===2)this._context.lineTo(m[1],O[1]);else for(var U=$O(m),ne=$O(O),de=0,xe=1;xe<M;++de,++xe)this._context.bezierCurveTo(U[0][de],ne[0][de],U[1][de],ne[1][de],m[xe],O[xe]);(this._line||this._line!==0&&M===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(m,O){this._x.push(+m),this._y.push(+O)}};function $O(m){var O,M=m.length-1,U,ne=new Array(M),de=new Array(M),xe=new Array(M);for(ne[0]=0,de[0]=2,xe[0]=m[0]+2*m[1],O=1;O<M-1;++O)ne[O]=1,de[O]=4,xe[O]=4*m[O]+2*m[O+1];for(ne[M-1]=2,de[M-1]=7,xe[M-1]=8*m[M-1]+m[M],O=1;O<M;++O)U=ne[O]/de[O-1],de[O]-=U,xe[O]-=U*xe[O-1];for(ne[M-1]=xe[M-1]/de[M-1],O=M-2;O>=0;--O)ne[O]=(xe[O]-ne[O+1])/de[O];for(de[M-1]=(m[M]+ne[M-1])/2,O=0;O<M-1;++O)de[O]=2*m[O+1]-ne[O+1];return[ne,de]}function P2(m){return new BO(m)}function Jm(m,O){this._context=m,this._t=O}Jm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(m,O){switch(m=+m,O=+O,this._point){case 0:this._point=1,this._line?this._context.lineTo(m,O):this._context.moveTo(m,O);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,O),this._context.lineTo(m,O);else{var M=this._x*(1-this._t)+m*this._t;this._context.lineTo(M,this._y),this._context.lineTo(M,O)}break}}this._x=m,this._y=O}};function C2(m){return new Jm(m,.5)}function x2(m){return new Jm(m,0)}function T2(m){return new Jm(m,1)}function cp(m,O){if((xe=m.length)>1)for(var M=1,U,ne,de=m[O[0]],xe,Ie=de.length;M<xe;++M)for(ne=de,de=m[O[M]],U=0;U<Ie;++U)de[U][1]+=de[U][0]=isNaN(ne[U][1])?ne[U][0]:ne[U][1]}function fp(m){for(var O=m.length,M=new Array(O);--O>=0;)M[O]=O;return M}function A2(m,O){return m[O]}function R2(m){const O=[];return O.key=m,O}function M2(){var m=Pc([]),O=fp,M=cp,U=A2;function ne(de){var xe=Array.from(m.apply(this,arguments),R2),Ie,Qe=xe.length,Ue=-1,dt;for(const $t of de)for(Ie=0,++Ue;Ie<Qe;++Ie)(xe[Ie][Ue]=[0,+U($t,xe[Ie].key,Ue,de)]).data=$t;for(Ie=0,dt=Hm(O(xe));Ie<Qe;++Ie)xe[dt[Ie]].index=Ie;return M(xe,dt),xe}return ne.keys=function(de){return arguments.length?(m=typeof de=="function"?de:Pc(Array.from(de)),ne):m},ne.value=function(de){return arguments.length?(U=typeof de=="function"?de:Pc(+de),ne):U},ne.order=function(de){return arguments.length?(O=de==null?fp:typeof de=="function"?de:Pc(Array.from(de)),ne):O},ne.offset=function(de){return arguments.length?(M=de??cp,ne):M},ne}function I2(m,O){if((U=m.length)>0){for(var M,U,ne=0,de=m[0].length,xe;ne<de;++ne){for(xe=M=0;M<U;++M)xe+=m[M][ne][1]||0;if(xe)for(M=0;M<U;++M)m[M][ne][1]/=xe}cp(m,O)}}function D2(m,O){if((Qe=m.length)>0)for(var M,U=0,ne,de,xe,Ie,Qe,Ue=m[O[0]].length;U<Ue;++U)for(xe=Ie=0,M=0;M<Qe;++M)(de=(ne=m[O[M]][U])[1]-ne[0])>0?(ne[0]=xe,ne[1]=xe+=de):de<0?(ne[1]=Ie,ne[0]=Ie+=de):(ne[0]=0,ne[1]=de)}function _2(m,O){if((ne=m.length)>0){for(var M=0,U=m[O[0]],ne,de=U.length;M<de;++M){for(var xe=0,Ie=0;xe<ne;++xe)Ie+=m[xe][M][1]||0;U[M][1]+=U[M][0]=-Ie/2}cp(m,O)}}function L2(m,O){if(!(!((xe=m.length)>0)||!((de=(ne=m[O[0]]).length)>0))){for(var M=0,U=1,ne,de,xe;U<de;++U){for(var Ie=0,Qe=0,Ue=0;Ie<xe;++Ie){for(var dt=m[O[Ie]],$t=dt[U][1]||0,Ot=dt[U-1][1]||0,Jt=($t-Ot)/2,Un=0;Un<Ie;++Un){var Pn=m[O[Un]],Cn=Pn[U][1]||0,Fn=Pn[U-1][1]||0;Jt+=Cn-Fn}Qe+=$t,Ue+=Jt*$t}ne[U-1][1]+=ne[U-1][0]=M,Qe&&(M-=Ue/Qe)}ne[U-1][1]+=ne[U-1][0]=M,cp(m,O)}}function jO(m){var O=m.map(N2);return fp(m).sort(function(M,U){return O[M]-O[U]})}function N2(m){for(var O=-1,M=0,U=m.length,ne,de=-1/0;++O<U;)(ne=+m[O][1])>de&&(de=ne,M=O);return M}function UO(m){var O=m.map(WO);return fp(m).sort(function(M,U){return O[M]-O[U]})}function WO(m){for(var O=0,M=-1,U=m.length,ne;++M<U;)(ne=+m[M][1])&&(O+=ne);return O}function F2(m){return UO(m).reverse()}function k2(m){var O=m.length,M,U,ne=m.map(WO),de=jO(m),xe=0,Ie=0,Qe=[],Ue=[];for(M=0;M<O;++M)U=de[M],xe<Ie?(xe+=ne[U],Qe.push(U)):(Ie+=ne[U],Ue.push(U));return Ue.reverse().concat(Qe)}function B2(m){return fp(m).reverse()}var zO="%Y-%m-%dT%H:%M:%S.%LZ";function $2(m){return m.toISOString()}var j2=Date.prototype.toISOString?$2:$m(zO);const U2=j2;function W2(m){var O=new Date(m);return isNaN(O)?null:O}var z2=+new Date("2000-01-01T00:00:00.000Z")?W2:jb(zO);const H2=z2;function K2(m,O,M){var U=new La,ne=O;return O==null?(U.restart(m,O,M),U):(U._restart=U.restart,U.restart=function(de,xe,Ie){xe=+xe,Ie=Ie==null?$i():+Ie,U._restart(function Qe(Ue){Ue+=ne,U._restart(Qe,ne+=xe,Ie),de(Ue)},xe,Ie)},U.restart(m,O,M),U)}const qm=m=>()=>m;function V2(m,{sourceEvent:O,target:M,transform:U,dispatch:ne}){Object.defineProperties(this,{type:{value:m,enumerable:!0,configurable:!0},sourceEvent:{value:O,enumerable:!0,configurable:!0},target:{value:M,enumerable:!0,configurable:!0},transform:{value:U,enumerable:!0,configurable:!0},_:{value:ne}})}function Kh(m,O,M){this.k=m,this.x=O,this.y=M}Kh.prototype={constructor:Kh,scale:function(m){return m===1?this:new Kh(this.k*m,this.x,this.y)},translate:function(m,O){return m===0&O===0?this:new Kh(this.k,this.x+this.k*m,this.y+this.k*O)},apply:function(m){return[m[0]*this.k+this.x,m[1]*this.k+this.y]},applyX:function(m){return m*this.k+this.x},applyY:function(m){return m*this.k+this.y},invert:function(m){return[(m[0]-this.x)/this.k,(m[1]-this.y)/this.k]},invertX:function(m){return(m-this.x)/this.k},invertY:function(m){return(m-this.y)/this.k},rescaleX:function(m){return m.copy().domain(m.range().map(this.invertX,this).map(m.invert,m))},rescaleY:function(m){return m.copy().domain(m.range().map(this.invertY,this).map(m.invert,m))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var e0=new Kh(1,0,0);HO.prototype=Kh.prototype;function HO(m){for(;!m.__zoom;)if(!(m=m.parentNode))return e0;return m.__zoom}function r1(m){m.stopImmediatePropagation()}function og(m){m.preventDefault(),m.stopImmediatePropagation()}function G2(m){return(!m.ctrlKey||m.type==="wheel")&&!m.button}function Z2(){var m=this;return m instanceof SVGElement?(m=m.ownerSVGElement||m,m.hasAttribute("viewBox")?(m=m.viewBox.baseVal,[[m.x,m.y],[m.x+m.width,m.y+m.height]]):[[0,0],[m.width.baseVal.value,m.height.baseVal.value]]):[[0,0],[m.clientWidth,m.clientHeight]]}function KO(){return this.__zoom||e0}function Y2(m){return-m.deltaY*(m.deltaMode===1?.05:m.deltaMode?1:.002)*(m.ctrlKey?10:1)}function X2(){return navigator.maxTouchPoints||"ontouchstart"in this}function Q2(m,O,M){var U=m.invertX(O[0][0])-M[0][0],ne=m.invertX(O[1][0])-M[1][0],de=m.invertY(O[0][1])-M[0][1],xe=m.invertY(O[1][1])-M[1][1];return m.translate(ne>U?(U+ne)/2:Math.min(0,U)||Math.max(0,ne),xe>de?(de+xe)/2:Math.min(0,de)||Math.max(0,xe))}function J2(){var m=G2,O=Z2,M=Q2,U=Y2,ne=X2,de=[0,1/0],xe=[[-1/0,-1/0],[1/0,1/0]],Ie=250,Qe=NE,Ue=jn("start","zoom","end"),dt,$t,Ot,Jt=500,Un=150,Pn=0,Cn=10;function Fn(Rr){Rr.property("__zoom",KO).on("wheel.zoom",ya,{passive:!1}).on("mousedown.zoom",io).on("dblclick.zoom",ga).filter(ne).on("touchstart.zoom",ba).on("touchmove.zoom",wo).on("touchend.zoom touchcancel.zoom",so).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Fn.transform=function(Rr,Ii,zi,Ra){var Vi=Rr.selection?Rr.selection():Rr;Vi.property("__zoom",KO),Rr!==Vi?qr(Rr,Ii,zi,Ra):Vi.interrupt().each(function(){Di(this,arguments).event(Ra).start().zoom(null,typeof Ii=="function"?Ii.apply(this,arguments):Ii).end()})},Fn.scaleBy=function(Rr,Ii,zi,Ra){Fn.scaleTo(Rr,function(){var Vi=this.__zoom.k,Na=typeof Ii=="function"?Ii.apply(this,arguments):Ii;return Vi*Na},zi,Ra)},Fn.scaleTo=function(Rr,Ii,zi,Ra){Fn.transform(Rr,function(){var Vi=O.apply(this,arguments),Na=this.__zoom,oa=zi==null?ar(Vi):typeof zi=="function"?zi.apply(this,arguments):zi,fo=Na.invert(oa),Ro=typeof Ii=="function"?Ii.apply(this,arguments):Ii;return M(hr(mr(Na,Ro),oa,fo),Vi,xe)},zi,Ra)},Fn.translateBy=function(Rr,Ii,zi,Ra){Fn.transform(Rr,function(){return M(this.__zoom.translate(typeof Ii=="function"?Ii.apply(this,arguments):Ii,typeof zi=="function"?zi.apply(this,arguments):zi),O.apply(this,arguments),xe)},null,Ra)},Fn.translateTo=function(Rr,Ii,zi,Ra,Vi){Fn.transform(Rr,function(){var Na=O.apply(this,arguments),oa=this.__zoom,fo=Ra==null?ar(Na):typeof Ra=="function"?Ra.apply(this,arguments):Ra;return M(e0.translate(fo[0],fo[1]).scale(oa.k).translate(typeof Ii=="function"?-Ii.apply(this,arguments):-Ii,typeof zi=="function"?-zi.apply(this,arguments):-zi),Na,xe)},Ra,Vi)};function mr(Rr,Ii){return Ii=Math.max(de[0],Math.min(de[1],Ii)),Ii===Rr.k?Rr:new Kh(Ii,Rr.x,Rr.y)}function hr(Rr,Ii,zi){var Ra=Ii[0]-zi[0]*Rr.k,Vi=Ii[1]-zi[1]*Rr.k;return Ra===Rr.x&&Vi===Rr.y?Rr:new Kh(Rr.k,Ra,Vi)}function ar(Rr){return[(+Rr[0][0]+ +Rr[1][0])/2,(+Rr[0][1]+ +Rr[1][1])/2]}function qr(Rr,Ii,zi,Ra){Rr.on("start.zoom",function(){Di(this,arguments).event(Ra).start()}).on("interrupt.zoom end.zoom",function(){Di(this,arguments).event(Ra).end()}).tween("zoom",function(){var Vi=this,Na=arguments,oa=Di(Vi,Na).event(Ra),fo=O.apply(Vi,Na),Ro=zi==null?ar(fo):typeof zi=="function"?zi.apply(Vi,Na):zi,Zo=Math.max(fo[1][0]-fo[0][0],fo[1][1]-fo[0][1]),zo=Vi.__zoom,ss=typeof Ii=="function"?Ii.apply(Vi,Na):Ii,Xs=Qe(zo.invert(Ro).concat(Zo/zo.k),ss.invert(Ro).concat(Zo/ss.k));return function(ps){if(ps===1)ps=ss;else{var Au=Xs(ps),hs=Zo/Au[2];ps=new Kh(hs,Ro[0]-Au[0]*hs,Ro[1]-Au[1]*hs)}oa.zoom(null,ps)}})}function Di(Rr,Ii,zi){return!zi&&Rr.__zooming||new Xi(Rr,Ii)}function Xi(Rr,Ii){this.that=Rr,this.args=Ii,this.active=0,this.sourceEvent=null,this.extent=O.apply(Rr,Ii),this.taps=0}Xi.prototype={event:function(Rr){return Rr&&(this.sourceEvent=Rr),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Rr,Ii){return this.mouse&&Rr!=="mouse"&&(this.mouse[1]=Ii.invert(this.mouse[0])),this.touch0&&Rr!=="touch"&&(this.touch0[1]=Ii.invert(this.touch0[0])),this.touch1&&Rr!=="touch"&&(this.touch1[1]=Ii.invert(this.touch1[0])),this.that.__zoom=Ii,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Rr){var Ii=Zs(this.that).datum();Ue.call(Rr,this.that,new V2(Rr,{sourceEvent:this.sourceEvent,target:Fn,type:Rr,transform:this.that.__zoom,dispatch:Ue}),Ii)}};function ya(Rr,...Ii){if(!m.apply(this,arguments))return;var zi=Di(this,Ii).event(Rr),Ra=this.__zoom,Vi=Math.max(de[0],Math.min(de[1],Ra.k*Math.pow(2,U.apply(this,arguments)))),Na=pn(Rr);if(zi.wheel)(zi.mouse[0][0]!==Na[0]||zi.mouse[0][1]!==Na[1])&&(zi.mouse[1]=Ra.invert(zi.mouse[0]=Na)),clearTimeout(zi.wheel);else{if(Ra.k===Vi)return;zi.mouse=[Na,Ra.invert(Na)],Qi(this),zi.start()}og(Rr),zi.wheel=setTimeout(oa,Un),zi.zoom("mouse",M(hr(mr(Ra,Vi),zi.mouse[0],zi.mouse[1]),zi.extent,xe));function oa(){zi.wheel=null,zi.end()}}function io(Rr,...Ii){if(Ot||!m.apply(this,arguments))return;var zi=Rr.currentTarget,Ra=Di(this,Ii,!0).event(Rr),Vi=Zs(Rr.view).on("mousemove.zoom",Ro,!0).on("mouseup.zoom",Zo,!0),Na=pn(Rr,zi),oa=Rr.clientX,fo=Rr.clientY;Ys(Rr.view),r1(Rr),Ra.mouse=[Na,this.__zoom.invert(Na)],Qi(this),Ra.start();function Ro(zo){if(og(zo),!Ra.moved){var ss=zo.clientX-oa,Xs=zo.clientY-fo;Ra.moved=ss*ss+Xs*Xs>Pn}Ra.event(zo).zoom("mouse",M(hr(Ra.that.__zoom,Ra.mouse[0]=pn(zo,zi),Ra.mouse[1]),Ra.extent,xe))}function Zo(zo){Vi.on("mousemove.zoom mouseup.zoom",null),Hu(zo.view,Ra.moved),og(zo),Ra.event(zo).end()}}function ga(Rr,...Ii){if(m.apply(this,arguments)){var zi=this.__zoom,Ra=pn(Rr.changedTouches?Rr.changedTouches[0]:Rr,this),Vi=zi.invert(Ra),Na=zi.k*(Rr.shiftKey?.5:2),oa=M(hr(mr(zi,Na),Ra,Vi),O.apply(this,Ii),xe);og(Rr),Ie>0?Zs(this).transition().duration(Ie).call(qr,oa,Ra,Rr):Zs(this).call(Fn.transform,oa,Ra,Rr)}}function ba(Rr,...Ii){if(m.apply(this,arguments)){var zi=Rr.touches,Ra=zi.length,Vi=Di(this,Ii,Rr.changedTouches.length===Ra).event(Rr),Na,oa,fo,Ro;for(r1(Rr),oa=0;oa<Ra;++oa)fo=zi[oa],Ro=pn(fo,this),Ro=[Ro,this.__zoom.invert(Ro),fo.identifier],Vi.touch0?!Vi.touch1&&Vi.touch0[2]!==Ro[2]&&(Vi.touch1=Ro,Vi.taps=0):(Vi.touch0=Ro,Na=!0,Vi.taps=1+!!dt);dt&&(dt=clearTimeout(dt)),Na&&(Vi.taps<2&&($t=Ro[0],dt=setTimeout(function(){dt=null},Jt)),Qi(this),Vi.start())}}function wo(Rr,...Ii){if(this.__zooming){var zi=Di(this,Ii).event(Rr),Ra=Rr.changedTouches,Vi=Ra.length,Na,oa,fo,Ro;for(og(Rr),Na=0;Na<Vi;++Na)oa=Ra[Na],fo=pn(oa,this),zi.touch0&&zi.touch0[2]===oa.identifier?zi.touch0[0]=fo:zi.touch1&&zi.touch1[2]===oa.identifier&&(zi.touch1[0]=fo);if(oa=zi.that.__zoom,zi.touch1){var Zo=zi.touch0[0],zo=zi.touch0[1],ss=zi.touch1[0],Xs=zi.touch1[1],ps=(ps=ss[0]-Zo[0])*ps+(ps=ss[1]-Zo[1])*ps,Au=(Au=Xs[0]-zo[0])*Au+(Au=Xs[1]-zo[1])*Au;oa=mr(oa,Math.sqrt(ps/Au)),fo=[(Zo[0]+ss[0])/2,(Zo[1]+ss[1])/2],Ro=[(zo[0]+Xs[0])/2,(zo[1]+Xs[1])/2]}else if(zi.touch0)fo=zi.touch0[0],Ro=zi.touch0[1];else return;zi.zoom("touch",M(hr(oa,fo,Ro),zi.extent,xe))}}function so(Rr,...Ii){if(this.__zooming){var zi=Di(this,Ii).event(Rr),Ra=Rr.changedTouches,Vi=Ra.length,Na,oa;for(r1(Rr),Ot&&clearTimeout(Ot),Ot=setTimeout(function(){Ot=null},Jt),Na=0;Na<Vi;++Na)oa=Ra[Na],zi.touch0&&zi.touch0[2]===oa.identifier?delete zi.touch0:zi.touch1&&zi.touch1[2]===oa.identifier&&delete zi.touch1;if(zi.touch1&&!zi.touch0&&(zi.touch0=zi.touch1,delete zi.touch1),zi.touch0)zi.touch0[1]=this.__zoom.invert(zi.touch0[0]);else if(zi.end(),zi.taps===2&&(oa=pn(oa,this),Math.hypot($t[0]-oa[0],$t[1]-oa[1])<Cn)){var fo=Zs(this).on("dblclick.zoom");fo&&fo.apply(this,arguments)}}}return Fn.wheelDelta=function(Rr){return arguments.length?(U=typeof Rr=="function"?Rr:qm(+Rr),Fn):U},Fn.filter=function(Rr){return arguments.length?(m=typeof Rr=="function"?Rr:qm(!!Rr),Fn):m},Fn.touchable=function(Rr){return arguments.length?(ne=typeof Rr=="function"?Rr:qm(!!Rr),Fn):ne},Fn.extent=function(Rr){return arguments.length?(O=typeof Rr=="function"?Rr:qm([[+Rr[0][0],+Rr[0][1]],[+Rr[1][0],+Rr[1][1]]]),Fn):O},Fn.scaleExtent=function(Rr){return arguments.length?(de[0]=+Rr[0],de[1]=+Rr[1],Fn):[de[0],de[1]]},Fn.translateExtent=function(Rr){return arguments.length?(xe[0][0]=+Rr[0][0],xe[1][0]=+Rr[1][0],xe[0][1]=+Rr[0][1],xe[1][1]=+Rr[1][1],Fn):[[xe[0][0],xe[0][1]],[xe[1][0],xe[1][1]]]},Fn.constrain=function(Rr){return arguments.length?(M=Rr,Fn):M},Fn.duration=function(Rr){return arguments.length?(Ie=+Rr,Fn):Ie},Fn.interpolate=function(Rr){return arguments.length?(Qe=Rr,Fn):Qe},Fn.on=function(){var Rr=Ue.on.apply(Ue,arguments);return Rr===Ue?Fn:Rr},Fn.clickDistance=function(Rr){return arguments.length?(Pn=(Rr=+Rr)*Rr,Fn):Math.sqrt(Pn)},Fn.tapDistance=function(Rr){return arguments.length?(Cn=+Rr,Fn):Cn},Fn}},58862:(C,c,t)=>{"use strict";t.r(c),t.d(c,{interpolateBlues:()=>qe,interpolateBrBG:()=>w,interpolateBuGn:()=>$,interpolateBuPu:()=>F,interpolateCividis:()=>ct,interpolateCool:()=>Gt,interpolateCubehelixDefault:()=>mt,interpolateGnBu:()=>pe,interpolateGreens:()=>It,interpolateGreys:()=>Ae,interpolateInferno:()=>rt,interpolateMagma:()=>Xt,interpolateOrRd:()=>G,interpolateOranges:()=>Et,interpolatePRGn:()=>P,interpolatePiYG:()=>T,interpolatePlasma:()=>Rt,interpolatePuBu:()=>Se,interpolatePuBuGn:()=>ie,interpolatePuOr:()=>I,interpolatePuRd:()=>me,interpolatePurples:()=>tt,interpolateRainbow:()=>Yt,interpolateRdBu:()=>K,interpolateRdGy:()=>W,interpolateRdPu:()=>we,interpolateRdYlBu:()=>re,interpolateRdYlGn:()=>Z,interpolateReds:()=>Oe,interpolateSinebow:()=>vt,interpolateSpectral:()=>q,interpolateTurbo:()=>Ve,interpolateViridis:()=>at,interpolateWarm:()=>bt,interpolateYlGn:()=>Re,interpolateYlGnBu:()=>ht,interpolateYlOrBr:()=>ae,interpolateYlOrRd:()=>Me,schemeAccent:()=>u,schemeBlues:()=>Ye,schemeBrBG:()=>S,schemeBuGn:()=>L,schemeBuPu:()=>k,schemeCategory10:()=>s,schemeDark2:()=>v,schemeGnBu:()=>V,schemeGreens:()=>At,schemeGreys:()=>Ce,schemeOrRd:()=>ce,schemeOranges:()=>je,schemePRGn:()=>x,schemePaired:()=>l,schemePastel1:()=>h,schemePastel2:()=>p,schemePiYG:()=>R,schemePuBu:()=>fe,schemePuBuGn:()=>te,schemePuOr:()=>A,schemePuRd:()=>he,schemePurples:()=>$e,schemeRdBu:()=>N,schemeRdGy:()=>_,schemeRdPu:()=>_e,schemeRdYlBu:()=>j,schemeRdYlGn:()=>X,schemeReds:()=>ke,schemeSet1:()=>d,schemeSet2:()=>f,schemeSet3:()=>g,schemeSpectral:()=>J,schemeTableau10:()=>y,schemeYlGn:()=>nt,schemeYlGnBu:()=>Ge,schemeYlOrBr:()=>ue,schemeYlOrRd:()=>ve});function i(rn){for(var sn=rn.length/6|0,Jn=new Array(sn),ze=0;ze<sn;)Jn[ze]="#"+rn.slice(ze*6,++ze*6);return Jn}const s=i("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),u=i("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),v=i("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),l=i("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),h=i("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),p=i("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),d=i("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),f=i("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),g=i("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),y=i("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");var b=t(7975);const E=rn=>(0,b.hD)(rn[rn.length-1]);var S=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(i);const w=E(S);var x=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(i);const P=E(x);var R=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(i);const T=E(R);var A=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(i);const I=E(A);var N=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(i);const K=E(N);var _=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(i);const W=E(_);var j=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(i);const re=E(j);var X=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(i);const Z=E(X);var J=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(i);const q=E(J);var L=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(i);const $=E(L);var k=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(i);const F=E(k);var V=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(i);const pe=E(V);var ce=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(i);const G=E(ce);var te=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(i);const ie=E(te);var fe=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(i);const Se=E(fe);var he=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(i);const me=E(he);var _e=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(i);const we=E(_e);var Ge=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(i);const ht=E(Ge);var nt=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(i);const Re=E(nt);var ue=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(i);const ae=E(ue);var ve=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(i);const Me=E(ve);var Ye=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(i);const qe=E(Ye);var At=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(i);const It=E(At);var Ce=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(i);const Ae=E(Ce);var $e=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(i);const tt=E($e);var ke=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(i);const Oe=E(ke);var je=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(i);const Et=E(je);function ct(rn){return rn=Math.max(0,Math.min(1,rn)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-rn*(35.34-rn*(2381.73-rn*(6402.7-rn*(7024.72-rn*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+rn*(170.73+rn*(52.82-rn*(131.46-rn*(176.58-rn*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+rn*(442.36-rn*(2482.43-rn*(6167.24-rn*(6614.94-rn*2475.67)))))))+")"}var ut=t(27006),Ne=t(17392);const mt=(0,Ne.B)((0,ut.Z)(300,.5,0),(0,ut.Z)(-240,.5,1));var bt=(0,Ne.B)((0,ut.Z)(-100,.75,.35),(0,ut.Z)(80,1.5,.8)),Gt=(0,Ne.B)((0,ut.Z)(260,.75,.35),(0,ut.Z)(80,1.5,.8)),hn=(0,ut.Z)();function Yt(rn){(rn<0||rn>1)&&(rn-=Math.floor(rn));var sn=Math.abs(rn-.5);return hn.h=360*rn-100,hn.s=1.5-1.5*sn,hn.l=.8-.9*sn,hn+""}var Bt=t(21517),Lt=(0,Bt.B8)(),zt=Math.PI/3,Kt=Math.PI*2/3;function vt(rn){var sn;return rn=(.5-rn)*Math.PI,Lt.r=255*(sn=Math.sin(rn))*sn,Lt.g=255*(sn=Math.sin(rn+zt))*sn,Lt.b=255*(sn=Math.sin(rn+Kt))*sn,Lt+""}function Ve(rn){return rn=Math.max(0,Math.min(1,rn)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+rn*(1172.33-rn*(10793.56-rn*(33300.12-rn*(38394.49-rn*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+rn*(557.33+rn*(1225.33-rn*(3574.96-rn*(1073.77+rn*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+rn*(3211.1-rn*(15327.97-rn*(27814-rn*(22569.18-rn*6838.66)))))))+")"}function lt(rn){var sn=rn.length;return function(Jn){return rn[Math.max(0,Math.min(sn-1,Math.floor(Jn*sn)))]}}const at=lt(i("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Xt=lt(i("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),rt=lt(i("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Rt=lt(i("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"))},52751:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(24769);const s=i},38063:(C,c,t)=>{"use strict";t.d(c,{qu:()=>pe});var i={};t.r(i),t.d(i,{JsonPatchError:()=>x,_areEquals:()=>j,applyOperation:()=>I,applyPatch:()=>N,applyReducer:()=>K,deepClone:()=>P,getValueByPointer:()=>A,validate:()=>W,validator:()=>_});var s={};t.r(s),t.d(s,{compare:()=>pe,generate:()=>F,observe:()=>k,unobserve:()=>$});/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed */var u=function(){var G=function(te,ie){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,Se){fe.__proto__=Se}||function(fe,Se){for(var he in Se)Se.hasOwnProperty(he)&&(fe[he]=Se[he])},G(te,ie)};return function(te,ie){G(te,ie);function fe(){this.constructor=te}te.prototype=ie===null?Object.create(ie):(fe.prototype=ie.prototype,new fe)}}(),v=Object.prototype.hasOwnProperty;function l(G,te){return v.call(G,te)}function h(G){if(Array.isArray(G)){for(var te=new Array(G.length),ie=0;ie<te.length;ie++)te[ie]=""+ie;return te}if(Object.keys)return Object.keys(G);var fe=[];for(var Se in G)l(G,Se)&&fe.push(Se);return fe}function p(G){switch(typeof G){case"object":return JSON.parse(JSON.stringify(G));case"undefined":return null;default:return G}}function d(G){for(var te=0,ie=G.length,fe;te<ie;){if(fe=G.charCodeAt(te),fe>=48&&fe<=57){te++;continue}return!1}return!0}function f(G){return G.indexOf("/")===-1&&G.indexOf("~")===-1?G:G.replace(/~/g,"~0").replace(/\//g,"~1")}function g(G){return G.replace(/~1/g,"/").replace(/~0/g,"~")}function y(G,te){var ie;for(var fe in G)if(l(G,fe)){if(G[fe]===te)return f(fe)+"/";if(typeof G[fe]=="object"&&(ie=y(G[fe],te),ie!=""))return f(fe)+"/"+ie}return""}function b(G,te){if(G===te)return"/";var ie=y(G,te);if(ie==="")throw new Error("Object not found in root");return"/"+ie}function E(G){if(G===void 0)return!0;if(G){if(Array.isArray(G)){for(var te=0,ie=G.length;te<ie;te++)if(E(G[te]))return!0}else if(typeof G=="object"){for(var fe=h(G),Se=fe.length,he=0;he<Se;he++)if(E(G[fe[he]]))return!0}}return!1}function S(G,te){var ie=[G];for(var fe in te){var Se=typeof te[fe]=="object"?JSON.stringify(te[fe],null,2):te[fe];typeof Se<"u"&&ie.push(fe+": "+Se)}return ie.join(` `)}var w=function(G){u(te,G);function te(ie,fe,Se,he,me){var _e=this.constructor,we=G.call(this,S(ie,{name:fe,index:Se,operation:he,tree:me}))||this;return we.name=fe,we.index=Se,we.operation=he,we.tree=me,Object.setPrototypeOf(we,_e.prototype),we.message=S(ie,{name:fe,index:Se,operation:he,tree:me}),we}return te}(Error),x=w,P=p,R={add:function(G,te,ie){return G[te]=this.value,{newDocument:ie}},remove:function(G,te,ie){var fe=G[te];return delete G[te],{newDocument:ie,removed:fe}},replace:function(G,te,ie){var fe=G[te];return G[te]=this.value,{newDocument:ie,removed:fe}},move:function(G,te,ie){var fe=A(ie,this.path);fe&&(fe=p(fe));var Se=I(ie,{op:"remove",path:this.from}).removed;return I(ie,{op:"add",path:this.path,value:Se}),{newDocument:ie,removed:fe}},copy:function(G,te,ie){var fe=A(ie,this.from);return I(ie,{op:"add",path:this.path,value:p(fe)}),{newDocument:ie}},test:function(G,te,ie){return{newDocument:ie,test:j(G[te],this.value)}},_get:function(G,te,ie){return this.value=G[te],{newDocument:ie}}},T={add:function(G,te,ie){return d(te)?G.splice(te,0,this.value):G[te]=this.value,{newDocument:ie,index:te}},remove:function(G,te,ie){var fe=G.splice(te,1);return{newDocument:ie,removed:fe[0]}},replace:function(G,te,ie){var fe=G[te];return G[te]=this.value,{newDocument:ie,removed:fe}},move:R.move,copy:R.copy,test:R.test,_get:R._get};function A(G,te){if(te=="")return G;var ie={op:"_get",path:te};return I(G,ie),ie.value}function I(G,te,ie,fe,Se,he){if(ie===void 0&&(ie=!1),fe===void 0&&(fe=!0),Se===void 0&&(Se=!0),he===void 0&&(he=0),ie&&(typeof ie=="function"?ie(te,0,G,te.path):_(te,0)),te.path===""){var me={newDocument:G};if(te.op==="add")return me.newDocument=te.value,me;if(te.op==="replace")return me.newDocument=te.value,me.removed=G,me;if(te.op==="move"||te.op==="copy")return me.newDocument=A(G,te.from),te.op==="move"&&(me.removed=G),me;if(te.op==="test"){if(me.test=j(G,te.value),me.test===!1)throw new x("Test operation failed","TEST_OPERATION_FAILED",he,te,G);return me.newDocument=G,me}else{if(te.op==="remove")return me.removed=G,me.newDocument=null,me;if(te.op==="_get")return te.value=G,me;if(ie)throw new x("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",he,te,G);return me}}else{fe||(G=p(G));var _e=te.path||"",we=_e.split("/"),Ge=G,ht=1,nt=we.length,Re=void 0,ue=void 0,ae=void 0;for(typeof ie=="function"?ae=ie:ae=_;;){if(ue=we[ht],ue&&ue.indexOf("~")!=-1&&(ue=g(ue)),Se&&(ue=="__proto__"||ue=="prototype"&&ht>0&&we[ht-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(ie&&Re===void 0&&(Ge[ue]===void 0?Re=we.slice(0,ht).join("/"):ht==nt-1&&(Re=te.path),Re!==void 0&&ae(te,0,G,Re)),ht++,Array.isArray(Ge)){if(ue==="-")ue=Ge.length;else{if(ie&&!d(ue))throw new x("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",he,te,G);d(ue)&&(ue=~~ue)}if(ht>=nt){if(ie&&te.op==="add"&&ue>Ge.length)throw new x("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",he,te,G);var me=T[te.op].call(te,Ge,ue,G);if(me.test===!1)throw new x("Test operation failed","TEST_OPERATION_FAILED",he,te,G);return me}}else if(ht>=nt){var me=R[te.op].call(te,Ge,ue,G);if(me.test===!1)throw new x("Test operation failed","TEST_OPERATION_FAILED",he,te,G);return me}if(Ge=Ge[ue],ie&&ht<nt&&(!Ge||typeof Ge!="object"))throw new x("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",he,te,G)}}}function N(G,te,ie,fe,Se){if(fe===void 0&&(fe=!0),Se===void 0&&(Se=!0),ie&&!Array.isArray(te))throw new x("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");fe||(G=p(G));for(var he=new Array(te.length),me=0,_e=te.length;me<_e;me++)he[me]=I(G,te[me],ie,!0,Se,me),G=he[me].newDocument;return he.newDocument=G,he}function K(G,te,ie){var fe=I(G,te);if(fe.test===!1)throw new x("Test operation failed","TEST_OPERATION_FAILED",ie,te,G);return fe.newDocument}function _(G,te,ie,fe){if(typeof G!="object"||G===null||Array.isArray(G))throw new x("Operation is not an object","OPERATION_NOT_AN_OBJECT",te,G,ie);if(R[G.op]){if(typeof G.path!="string")throw new x("Operation `path` property is not a string","OPERATION_PATH_INVALID",te,G,ie);if(G.path.indexOf("/")!==0&&G.path.length>0)throw new x('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",te,G,ie);if((G.op==="move"||G.op==="copy")&&typeof G.from!="string")throw new x("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",te,G,ie);if((G.op==="add"||G.op==="replace"||G.op==="test")&&G.value===void 0)throw new x("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",te,G,ie);if((G.op==="add"||G.op==="replace"||G.op==="test")&&E(G.value))throw new x("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",te,G,ie);if(ie){if(G.op=="add"){var Se=G.path.split("/").length,he=fe.split("/").length;if(Se!==he+1&&Se!==he)throw new x("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",te,G,ie)}else if(G.op==="replace"||G.op==="remove"||G.op==="_get"){if(G.path!==fe)throw new x("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",te,G,ie)}else if(G.op==="move"||G.op==="copy"){var me={op:"_get",path:G.from,value:void 0},_e=W([me],ie);if(_e&&_e.name==="OPERATION_PATH_UNRESOLVABLE")throw new x("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",te,G,ie)}}}else throw new x("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",te,G,ie)}function W(G,te,ie){try{if(!Array.isArray(G))throw new x("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(te)N(p(te),p(G),ie||!0);else{ie=ie||_;for(var fe=0;fe<G.length;fe++)ie(G[fe],fe,te,void 0)}}catch(Se){if(Se instanceof x)return Se;throw Se}}function j(G,te){if(G===te)return!0;if(G&&te&&typeof G=="object"&&typeof te=="object"){var ie=Array.isArray(G),fe=Array.isArray(te),Se,he,me;if(ie&&fe){if(he=G.length,he!=te.length)return!1;for(Se=he;Se--!==0;)if(!j(G[Se],te[Se]))return!1;return!0}if(ie!=fe)return!1;var _e=Object.keys(G);if(he=_e.length,he!==Object.keys(te).length)return!1;for(Se=he;Se--!==0;)if(!te.hasOwnProperty(_e[Se]))return!1;for(Se=he;Se--!==0;)if(me=_e[Se],!j(G[me],te[me]))return!1;return!0}return G!==G&&te!==te}/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2021 Joachim Wester * MIT license */var re=new WeakMap,X=function(){function G(te){this.observers=new Map,this.obj=te}return G}(),Z=function(){function G(te,ie){this.callback=te,this.observer=ie}return G}();function J(G){return re.get(G)}function q(G,te){return G.observers.get(te)}function L(G,te){G.observers.delete(te.callback)}function $(G,te){te.unobserve()}function k(G,te){var ie=[],fe,Se=J(G);if(!Se)Se=new X(G),re.set(G,Se);else{var he=q(Se,te);fe=he&&he.observer}if(fe)return fe;if(fe={},Se.value=p(G),te){fe.callback=te,fe.next=null;var me=function(){F(fe)},_e=function(){clearTimeout(fe.next),fe.next=setTimeout(me)};typeof window<"u"&&(window.addEventListener("mouseup",_e),window.addEventListener("keyup",_e),window.addEventListener("mousedown",_e),window.addEventListener("keydown",_e),window.addEventListener("change",_e))}return fe.patches=ie,fe.object=G,fe.unobserve=function(){F(fe),clearTimeout(fe.next),L(Se,fe),typeof window<"u"&&(window.removeEventListener("mouseup",_e),window.removeEventListener("keyup",_e),window.removeEventListener("mousedown",_e),window.removeEventListener("keydown",_e),window.removeEventListener("change",_e))},Se.observers.set(te,new Z(te,fe)),fe}function F(G,te){te===void 0&&(te=!1);var ie=re.get(G.object);V(ie.value,G.object,G.patches,"",te),G.patches.length&&N(ie.value,G.patches);var fe=G.patches;return fe.length>0&&(G.patches=[],G.callback&&G.callback(fe)),fe}function V(G,te,ie,fe,Se){if(te!==G){typeof te.toJSON=="function"&&(te=te.toJSON());for(var he=h(te),me=h(G),_e=!1,we=!1,Ge=me.length-1;Ge>=0;Ge--){var ht=me[Ge],nt=G[ht];if(l(te,ht)&&!(te[ht]===void 0&&nt!==void 0&&Array.isArray(te)===!1)){var Re=te[ht];typeof nt=="object"&&nt!=null&&typeof Re=="object"&&Re!=null&&Array.isArray(nt)===Array.isArray(Re)?V(nt,Re,ie,fe+"/"+f(ht),Se):nt!==Re&&(_e=!0,Se&&ie.push({op:"test",path:fe+"/"+f(ht),value:p(nt)}),ie.push({op:"replace",path:fe+"/"+f(ht),value:p(Re)}))}else Array.isArray(G)===Array.isArray(te)?(Se&&ie.push({op:"test",path:fe+"/"+f(ht),value:p(nt)}),ie.push({op:"remove",path:fe+"/"+f(ht)}),we=!0):(Se&&ie.push({op:"test",path:fe,value:G}),ie.push({op:"replace",path:fe,value:te}),_e=!0)}if(!(!we&&he.length==me.length))for(var Ge=0;Ge<he.length;Ge++){var ht=he[Ge];!l(G,ht)&&te[ht]!==void 0&&ie.push({op:"add",path:fe+"/"+f(ht),value:p(te[ht])})}}}function pe(G,te,ie){ie===void 0&&(ie=!1);var fe=[];return V(G,te,fe,"",ie),fe}const ce=Object.assign({},i,s,{JsonPatchError:w,deepClone:p,escapePathComponent:f,unescapePathComponent:g})},13795:(C,c,t)=>{"use strict";t.d(c,{Z:()=>K});var i=t(87741),s=t(58585),u=[],v=u.forEach,l=u.slice;function h(_){return v.call(l.call(arguments,1),function(W){if(W)for(var j in W)_[j]===void 0&&(_[j]=W[j])}),_}var p=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,d=function(W,j,re){var X=re||{};X.path=X.path||"/";var Z=encodeURIComponent(j),J="".concat(W,"=").concat(Z);if(X.maxAge>0){var q=X.maxAge-0;if(Number.isNaN(q))throw new Error("maxAge should be a Number");J+="; Max-Age=".concat(Math.floor(q))}if(X.domain){if(!p.test(X.domain))throw new TypeError("option domain is invalid");J+="; Domain=".concat(X.domain)}if(X.path){if(!p.test(X.path))throw new TypeError("option path is invalid");J+="; Path=".concat(X.path)}if(X.expires){if(typeof X.expires.toUTCString!="function")throw new TypeError("option expires is invalid");J+="; Expires=".concat(X.expires.toUTCString())}if(X.httpOnly&&(J+="; HttpOnly"),X.secure&&(J+="; Secure"),X.sameSite){var L=typeof X.sameSite=="string"?X.sameSite.toLowerCase():X.sameSite;switch(L){case!0:J+="; SameSite=Strict";break;case"lax":J+="; SameSite=Lax";break;case"strict":J+="; SameSite=Strict";break;case"none":J+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return J},f={create:function(W,j,re,X){var Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};re&&(Z.expires=new Date,Z.expires.setTime(Z.expires.getTime()+re*60*1e3)),X&&(Z.domain=X),document.cookie=d(W,encodeURIComponent(j),Z)},read:function(W){for(var j="".concat(W,"="),re=document.cookie.split(";"),X=0;X<re.length;X++){for(var Z=re[X];Z.charAt(0)===" ";)Z=Z.substring(1,Z.length);if(Z.indexOf(j)===0)return Z.substring(j.length,Z.length)}return null},remove:function(W){this.create(W,"",-1)}},g={name:"cookie",lookup:function(W){var j;if(W.lookupCookie&&typeof document<"u"){var re=f.read(W.lookupCookie);re&&(j=re)}return j},cacheUserLanguage:function(W,j){j.lookupCookie&&typeof document<"u"&&f.create(j.lookupCookie,W,j.cookieMinutes,j.cookieDomain,j.cookieOptions)}},y={name:"querystring",lookup:function(W){var j;if(typeof window<"u"){var re=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(re=window.location.hash.substring(window.location.hash.indexOf("?")));for(var X=re.substring(1),Z=X.split("&"),J=0;J<Z.length;J++){var q=Z[J].indexOf("=");if(q>0){var L=Z[J].substring(0,q);L===W.lookupQuerystring&&(j=Z[J].substring(q+1))}}}return j}},b=null,E=function(){if(b!==null)return b;try{b=window!=="undefined"&&window.localStorage!==null;var W="i18next.translate.boo";window.localStorage.setItem(W,"foo"),window.localStorage.removeItem(W)}catch{b=!1}return b},S={name:"localStorage",lookup:function(W){var j;if(W.lookupLocalStorage&&E()){var re=window.localStorage.getItem(W.lookupLocalStorage);re&&(j=re)}return j},cacheUserLanguage:function(W,j){j.lookupLocalStorage&&E()&&window.localStorage.setItem(j.lookupLocalStorage,W)}},w=null,x=function(){if(w!==null)return w;try{w=window!=="undefined"&&window.sessionStorage!==null;var W="i18next.translate.boo";window.sessionStorage.setItem(W,"foo"),window.sessionStorage.removeItem(W)}catch{w=!1}return w},P={name:"sessionStorage",lookup:function(W){var j;if(W.lookupSessionStorage&&x()){var re=window.sessionStorage.getItem(W.lookupSessionStorage);re&&(j=re)}return j},cacheUserLanguage:function(W,j){j.lookupSessionStorage&&x()&&window.sessionStorage.setItem(j.lookupSessionStorage,W)}},R={name:"navigator",lookup:function(W){var j=[];if(typeof navigator<"u"){if(navigator.languages)for(var re=0;re<navigator.languages.length;re++)j.push(navigator.languages[re]);navigator.userLanguage&&j.push(navigator.userLanguage),navigator.language&&j.push(navigator.language)}return j.length>0?j:void 0}},T={name:"htmlTag",lookup:function(W){var j,re=W.htmlTag||(typeof document<"u"?document.documentElement:null);return re&&typeof re.getAttribute=="function"&&(j=re.getAttribute("lang")),j}},A={name:"path",lookup:function(W){var j;if(typeof window<"u"){var re=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(re instanceof Array)if(typeof W.lookupFromPathIndex=="number"){if(typeof re[W.lookupFromPathIndex]!="string")return;j=re[W.lookupFromPathIndex].replace("/","")}else j=re[0].replace("/","")}return j}},I={name:"subdomain",lookup:function(W){var j=typeof W.lookupFromSubdomainIndex=="number"?W.lookupFromSubdomainIndex+1:1,re=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(re)return re[j]}};function N(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var K=function(){function _(W){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,i.Z)(this,_),this.type="languageDetector",this.detectors={},this.init(W,j)}return(0,s.Z)(_,[{key:"init",value:function(j){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=j||{languageUtils:{}},this.options=h(re,this.options||{},N()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=X,this.addDetector(g),this.addDetector(y),this.addDetector(S),this.addDetector(P),this.addDetector(R),this.addDetector(T),this.addDetector(A),this.addDetector(I)}},{key:"addDetector",value:function(j){this.detectors[j.name]=j}},{key:"detect",value:function(j){var re=this;j||(j=this.options.order);var X=[];return j.forEach(function(Z){if(re.detectors[Z]){var J=re.detectors[Z].lookup(re.options);J&&typeof J=="string"&&(J=[J]),J&&(X=X.concat(J))}}),this.services.languageUtils.getBestMatchFromCodes?X:X.length>0?X[0]:null}},{key:"cacheUserLanguage",value:function(j,re){var X=this;re||(re=this.options.caches),re&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(j)>-1||re.forEach(function(Z){X.detectors[Z]&&X.detectors[Z].cacheUserLanguage(j,X.options)}))}}]),_}();K.type="languageDetector"},62937:(C,c,t)=>{"use strict";t.d(c,{ZP:()=>Jn,t:()=>at});var i=t(4484),s=t(87741),u=t(58585),v=t(32066),l=t(56804),h=t(53865),p=t(353),d=t(23190),f=t(99995);function g(ze,st){var en=Object.keys(ze);if(Object.getOwnPropertySymbols){var wt=Object.getOwnPropertySymbols(ze);st&&(wt=wt.filter(function(Ke){return Object.getOwnPropertyDescriptor(ze,Ke).enumerable})),en.push.apply(en,wt)}return en}function y(ze){for(var st=1;st<arguments.length;st++){var en=arguments[st]!=null?arguments[st]:{};st%2?g(Object(en),!0).forEach(function(wt){(0,d.Z)(ze,wt,en[wt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ze,Object.getOwnPropertyDescriptors(en)):g(Object(en)).forEach(function(wt){Object.defineProperty(ze,wt,Object.getOwnPropertyDescriptor(en,wt))})}return ze}var b={type:"logger",log:function(st){this.output("log",st)},warn:function(st){this.output("warn",st)},error:function(st){this.output("error",st)},output:function(st,en){console&&console[st]&&console[st].apply(console,en)}},E=function(){function ze(st){var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,s.Z)(this,ze),this.init(st,en)}return(0,u.Z)(ze,[{key:"init",value:function(en){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=wt.prefix||"i18next:",this.logger=en||b,this.options=wt,this.debug=wt.debug}},{key:"setDebug",value:function(en){this.debug=en}},{key:"log",value:function(){for(var en=arguments.length,wt=new Array(en),Ke=0;Ke<en;Ke++)wt[Ke]=arguments[Ke];return this.forward(wt,"log","",!0)}},{key:"warn",value:function(){for(var en=arguments.length,wt=new Array(en),Ke=0;Ke<en;Ke++)wt[Ke]=arguments[Ke];return this.forward(wt,"warn","",!0)}},{key:"error",value:function(){for(var en=arguments.length,wt=new Array(en),Ke=0;Ke<en;Ke++)wt[Ke]=arguments[Ke];return this.forward(wt,"error","")}},{key:"deprecate",value:function(){for(var en=arguments.length,wt=new Array(en),Ke=0;Ke<en;Ke++)wt[Ke]=arguments[Ke];return this.forward(wt,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(en,wt,Ke,Ut){return Ut&&!this.debug?null:(typeof en[0]=="string"&&(en[0]="".concat(Ke).concat(this.prefix," ").concat(en[0])),this.logger[wt](en))}},{key:"create",value:function(en){return new ze(this.logger,y(y({},{prefix:"".concat(this.prefix,":").concat(en,":")}),this.options))}},{key:"clone",value:function(en){return en=en||this.options,en.prefix=en.prefix||this.prefix,new ze(this.logger,en)}}]),ze}(),S=new E,w=function(){function ze(){(0,s.Z)(this,ze),this.observers={}}return(0,u.Z)(ze,[{key:"on",value:function(en,wt){var Ke=this;return en.split(" ").forEach(function(Ut){Ke.observers[Ut]=Ke.observers[Ut]||[],Ke.observers[Ut].push(wt)}),this}},{key:"off",value:function(en,wt){if(this.observers[en]){if(!wt){delete this.observers[en];return}this.observers[en]=this.observers[en].filter(function(Ke){return Ke!==wt})}}},{key:"emit",value:function(en){for(var wt=arguments.length,Ke=new Array(wt>1?wt-1:0),Ut=1;Ut<wt;Ut++)Ke[Ut-1]=arguments[Ut];if(this.observers[en]){var on=[].concat(this.observers[en]);on.forEach(function(An){An.apply(void 0,Ke)})}if(this.observers["*"]){var Tn=[].concat(this.observers["*"]);Tn.forEach(function(An){An.apply(An,[en].concat(Ke))})}}}]),ze}();function x(){var ze,st,en=new Promise(function(wt,Ke){ze=wt,st=Ke});return en.resolve=ze,en.reject=st,en}function P(ze){return ze==null?"":""+ze}function R(ze,st,en){ze.forEach(function(wt){st[wt]&&(en[wt]=st[wt])})}function T(ze,st,en){function wt(Tn){return Tn&&Tn.indexOf("###")>-1?Tn.replace(/###/g,"."):Tn}function Ke(){return!ze||typeof ze=="string"}for(var Ut=typeof st!="string"?[].concat(st):st.split(".");Ut.length>1;){if(Ke())return{};var on=wt(Ut.shift());!ze[on]&&en&&(ze[on]=new en),Object.prototype.hasOwnProperty.call(ze,on)?ze=ze[on]:ze={}}return Ke()?{}:{obj:ze,k:wt(Ut.shift())}}function A(ze,st,en){var wt=T(ze,st,Object),Ke=wt.obj,Ut=wt.k;Ke[Ut]=en}function I(ze,st,en,wt){var Ke=T(ze,st,Object),Ut=Ke.obj,on=Ke.k;Ut[on]=Ut[on]||[],wt&&(Ut[on]=Ut[on].concat(en)),wt||Ut[on].push(en)}function N(ze,st){var en=T(ze,st),wt=en.obj,Ke=en.k;if(wt)return wt[Ke]}function K(ze,st,en){var wt=N(ze,en);return wt!==void 0?wt:N(st,en)}function _(ze,st,en){for(var wt in st)wt!=="__proto__"&&wt!=="constructor"&&(wt in ze?typeof ze[wt]=="string"||ze[wt]instanceof String||typeof st[wt]=="string"||st[wt]instanceof String?en&&(ze[wt]=st[wt]):_(ze[wt],st[wt],en):ze[wt]=st[wt]);return ze}function W(ze){return ze.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var j={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function re(ze){return typeof ze=="string"?ze.replace(/[&<>"'\/]/g,function(st){return j[st]}):ze}var X=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Z=[" ",",","?","!",";"];function J(ze,st,en){st=st||"",en=en||"";var wt=Z.filter(function(Tn){return st.indexOf(Tn)<0&&en.indexOf(Tn)<0});if(wt.length===0)return!0;var Ke=new RegExp("(".concat(wt.map(function(Tn){return Tn==="?"?"\\?":Tn}).join("|"),")")),Ut=!Ke.test(ze);if(!Ut){var on=ze.indexOf(en);on>0&&!Ke.test(ze.substring(0,on))&&(Ut=!0)}return Ut}function q(ze,st){var en=Object.keys(ze);if(Object.getOwnPropertySymbols){var wt=Object.getOwnPropertySymbols(ze);st&&(wt=wt.filter(function(Ke){return Object.getOwnPropertyDescriptor(ze,Ke).enumerable})),en.push.apply(en,wt)}return en}function L(ze){for(var st=1;st<arguments.length;st++){var en=arguments[st]!=null?arguments[st]:{};st%2?q(Object(en),!0).forEach(function(wt){(0,d.Z)(ze,wt,en[wt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ze,Object.getOwnPropertyDescriptors(en)):q(Object(en)).forEach(function(wt){Object.defineProperty(ze,wt,Object.getOwnPropertyDescriptor(en,wt))})}return ze}function $(ze){var st=k();return function(){var wt=(0,p.Z)(ze),Ke;if(st){var Ut=(0,p.Z)(this).constructor;Ke=Reflect.construct(wt,arguments,Ut)}else Ke=wt.apply(this,arguments);return(0,h.Z)(this,Ke)}}function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function F(ze,st){var en=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(ze){if(ze[st])return ze[st];for(var wt=st.split(en),Ke=ze,Ut=0;Ut<wt.length;++Ut){if(!Ke||typeof Ke[wt[Ut]]=="string"&&Ut+1<wt.length)return;if(Ke[wt[Ut]]===void 0){for(var on=2,Tn=wt.slice(Ut,Ut+on).join(en),An=Ke[Tn];An===void 0&&wt.length>Ut+on;)on++,Tn=wt.slice(Ut,Ut+on).join(en),An=Ke[Tn];if(An===void 0)return;if(An===null)return null;if(st.endsWith(Tn)){if(typeof An=="string")return An;if(Tn&&typeof An[Tn]=="string")return An[Tn]}var Zt=wt.slice(Ut+on).join(en);return Zt?F(An,Zt,en):void 0}Ke=Ke[wt[Ut]]}return Ke}}var V=function(ze){(0,l.Z)(en,ze);var st=$(en);function en(wt){var Ke,Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,s.Z)(this,en),Ke=st.call(this),X&&w.call((0,v.Z)(Ke)),Ke.data=wt||{},Ke.options=Ut,Ke.options.keySeparator===void 0&&(Ke.options.keySeparator="."),Ke.options.ignoreJSONStructure===void 0&&(Ke.options.ignoreJSONStructure=!0),Ke}return(0,u.Z)(en,[{key:"addNamespaces",value:function(Ke){this.options.ns.indexOf(Ke)<0&&this.options.ns.push(Ke)}},{key:"removeNamespaces",value:function(Ke){var Ut=this.options.ns.indexOf(Ke);Ut>-1&&this.options.ns.splice(Ut,1)}},{key:"getResource",value:function(Ke,Ut,on){var Tn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},An=Tn.keySeparator!==void 0?Tn.keySeparator:this.options.keySeparator,Zt=Tn.ignoreJSONStructure!==void 0?Tn.ignoreJSONStructure:this.options.ignoreJSONStructure,ot=[Ke,Ut];on&&typeof on!="string"&&(ot=ot.concat(on)),on&&typeof on=="string"&&(ot=ot.concat(An?on.split(An):on)),Ke.indexOf(".")>-1&&(ot=Ke.split("."));var We=N(this.data,ot);return We||!Zt||typeof on!="string"?We:F(this.data&&this.data[Ke]&&this.data[Ke][Ut],on,An)}},{key:"addResource",value:function(Ke,Ut,on,Tn){var An=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},Zt=this.options.keySeparator;Zt===void 0&&(Zt=".");var ot=[Ke,Ut];on&&(ot=ot.concat(Zt?on.split(Zt):on)),Ke.indexOf(".")>-1&&(ot=Ke.split("."),Tn=Ut,Ut=ot[1]),this.addNamespaces(Ut),A(this.data,ot,Tn),An.silent||this.emit("added",Ke,Ut,on,Tn)}},{key:"addResources",value:function(Ke,Ut,on){var Tn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var An in on)(typeof on[An]=="string"||Object.prototype.toString.apply(on[An])==="[object Array]")&&this.addResource(Ke,Ut,An,on[An],{silent:!0});Tn.silent||this.emit("added",Ke,Ut,on)}},{key:"addResourceBundle",value:function(Ke,Ut,on,Tn,An){var Zt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},ot=[Ke,Ut];Ke.indexOf(".")>-1&&(ot=Ke.split("."),Tn=on,on=Ut,Ut=ot[1]),this.addNamespaces(Ut);var We=N(this.data,ot)||{};Tn?_(We,on,An):We=L(L({},We),on),A(this.data,ot,We),Zt.silent||this.emit("added",Ke,Ut,on)}},{key:"removeResourceBundle",value:function(Ke,Ut){this.hasResourceBundle(Ke,Ut)&&delete this.data[Ke][Ut],this.removeNamespaces(Ut),this.emit("removed",Ke,Ut)}},{key:"hasResourceBundle",value:function(Ke,Ut){return this.getResource(Ke,Ut)!==void 0}},{key:"getResourceBundle",value:function(Ke,Ut){return Ut||(Ut=this.options.defaultNS),this.options.compatibilityAPI==="v1"?L(L({},{}),this.getResource(Ke,Ut)):this.getResource(Ke,Ut)}},{key:"getDataByLanguage",value:function(Ke){return this.data[Ke]}},{key:"hasLanguageSomeTranslations",value:function(Ke){var Ut=this.getDataByLanguage(Ke),on=Ut&&Object.keys(Ut)||[];return!!on.find(function(Tn){return Ut[Tn]&&Object.keys(Ut[Tn]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),en}(w),pe={processors:{},addPostProcessor:function(st){this.processors[st.name]=st},handle:function(st,en,wt,Ke,Ut){var on=this;return st.forEach(function(Tn){on.processors[Tn]&&(en=on.processors[Tn].process(en,wt,Ke,Ut))}),en}};function ce(ze,st){var en=Object.keys(ze);if(Object.getOwnPropertySymbols){var wt=Object.getOwnPropertySymbols(ze);st&&(wt=wt.filter(function(Ke){return Object.getOwnPropertyDescriptor(ze,Ke).enumerable})),en.push.apply(en,wt)}return en}function G(ze){for(var st=1;st<arguments.length;st++){var en=arguments[st]!=null?arguments[st]:{};st%2?ce(Object(en),!0).forEach(function(wt){(0,d.Z)(ze,wt,en[wt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ze,Object.getOwnPropertyDescriptors(en)):ce(Object(en)).forEach(function(wt){Object.defineProperty(ze,wt,Object.getOwnPropertyDescriptor(en,wt))})}return ze}function te(ze){var st=ie();return function(){var wt=(0,p.Z)(ze),Ke;if(st){var Ut=(0,p.Z)(this).constructor;Ke=Reflect.construct(wt,arguments,Ut)}else Ke=wt.apply(this,arguments);return(0,h.Z)(this,Ke)}}function ie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var fe={},Se=function(ze){(0,l.Z)(en,ze);var st=te(en);function en(wt){var Ke,Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,s.Z)(this,en),Ke=st.call(this),X&&w.call((0,v.Z)(Ke)),R(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],wt,(0,v.Z)(Ke)),Ke.options=Ut,Ke.options.keySeparator===void 0&&(Ke.options.keySeparator="."),Ke.logger=S.create("translator"),Ke}return(0,u.Z)(en,[{key:"changeLanguage",value:function(Ke){Ke&&(this.language=Ke)}},{key:"exists",value:function(Ke){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(Ke==null)return!1;var on=this.resolve(Ke,Ut);return on&&on.res!==void 0}},{key:"extractFromKey",value:function(Ke,Ut){var on=Ut.nsSeparator!==void 0?Ut.nsSeparator:this.options.nsSeparator;on===void 0&&(on=":");var Tn=Ut.keySeparator!==void 0?Ut.keySeparator:this.options.keySeparator,An=Ut.ns||this.options.defaultNS||[],Zt=on&&Ke.indexOf(on)>-1,ot=!this.options.userDefinedKeySeparator&&!Ut.keySeparator&&!this.options.userDefinedNsSeparator&&!Ut.nsSeparator&&!J(Ke,on,Tn);if(Zt&&!ot){var We=Ke.match(this.interpolator.nestingRegexp);if(We&&We.length>0)return{key:Ke,namespaces:An};var Ft=Ke.split(on);(on!==Tn||on===Tn&&this.options.ns.indexOf(Ft[0])>-1)&&(An=Ft.shift()),Ke=Ft.join(Tn)}return typeof An=="string"&&(An=[An]),{key:Ke,namespaces:An}}},{key:"translate",value:function(Ke,Ut,on){var Tn=this;if((0,i.Z)(Ut)!=="object"&&this.options.overloadTranslationOptionHandler&&(Ut=this.options.overloadTranslationOptionHandler(arguments)),Ut||(Ut={}),Ke==null)return"";Array.isArray(Ke)||(Ke=[String(Ke)]);var An=Ut.returnDetails!==void 0?Ut.returnDetails:this.options.returnDetails,Zt=Ut.keySeparator!==void 0?Ut.keySeparator:this.options.keySeparator,ot=this.extractFromKey(Ke[Ke.length-1],Ut),We=ot.key,Ft=ot.namespaces,it=Ft[Ft.length-1],qt=Ut.lng||this.language,vn=Ut.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(qt&&qt.toLowerCase()==="cimode"){if(vn){var fn=Ut.nsSeparator||this.options.nsSeparator;return An?(Tt.res="".concat(it).concat(fn).concat(We),Tt):"".concat(it).concat(fn).concat(We)}return An?(Tt.res=We,Tt):We}var Tt=this.resolve(Ke,Ut),dn=Tt&&Tt.res,mn=Tt&&Tt.usedKey||We,Kn=Tt&&Tt.exactUsedKey||We,Dn=Object.prototype.toString.apply(dn),Vn=["[object Number]","[object Function]","[object RegExp]"],or=Ut.joinArrays!==void 0?Ut.joinArrays:this.options.joinArrays,Qr=!this.i18nFormat||this.i18nFormat.handleAsObject,ni=typeof dn!="string"&&typeof dn!="boolean"&&typeof dn!="number";if(Qr&&dn&&ni&&Vn.indexOf(Dn)<0&&!(typeof or=="string"&&Dn==="[object Array]")){if(!Ut.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var yr=this.options.returnedObjectHandler?this.options.returnedObjectHandler(mn,dn,G(G({},Ut),{},{ns:Ft})):"key '".concat(We," (").concat(this.language,")' returned an object instead of string.");return An?(Tt.res=yr,Tt):yr}if(Zt){var si=Dn==="[object Array]",Yr=si?[]:{},Ci=si?Kn:mn;for(var Ni in dn)if(Object.prototype.hasOwnProperty.call(dn,Ni)){var fa="".concat(Ci).concat(Zt).concat(Ni);Yr[Ni]=this.translate(fa,G(G({},Ut),{joinArrays:!1,ns:Ft})),Yr[Ni]===fa&&(Yr[Ni]=dn[Ni])}dn=Yr}}else if(Qr&&typeof or=="string"&&Dn==="[object Array]")dn=dn.join(or),dn&&(dn=this.extendTranslation(dn,Ke,Ut,on));else{var ha=!1,Ca=!1,li=Ut.count!==void 0&&typeof Ut.count!="string",la=en.hasDefaultValue(Ut),Oa=li?this.pluralResolver.getSuffix(qt,Ut.count,Ut):"",wa=Ut["defaultValue".concat(Oa)]||Ut.defaultValue;!this.isValidLookup(dn)&&la&&(ha=!0,dn=wa),this.isValidLookup(dn)||(Ca=!0,dn=We);var vo=Ut.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Qn=vo&&Ca?void 0:dn,_r=la&&wa!==dn&&this.options.updateMissing;if(Ca||ha||_r){if(this.logger.log(_r?"updateKey":"missingKey",qt,it,We,_r?wa:dn),Zt){var $r=this.resolve(We,G(G({},Ut),{},{keySeparator:!1}));$r&&$r.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Ti=[],xt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,Ut.lng||this.language);if(this.options.saveMissingTo==="fallback"&&xt&&xt[0])for(var On=0;On<xt.length;On++)Ti.push(xt[On]);else this.options.saveMissingTo==="all"?Ti=this.languageUtils.toResolveHierarchy(Ut.lng||this.language):Ti.push(Ut.lng||this.language);var Zn=function(En,ln,jn){var rr=la&&jn!==dn?jn:Qn;Tn.options.missingKeyHandler?Tn.options.missingKeyHandler(En,it,ln,rr,_r,Ut):Tn.backendConnector&&Tn.backendConnector.saveMissing&&Tn.backendConnector.saveMissing(En,it,ln,rr,_r,Ut),Tn.emit("missingKey",En,it,ln,dn)};this.options.saveMissing&&(this.options.saveMissingPlurals&&li?Ti.forEach(function(Ur){Tn.pluralResolver.getSuffixes(Ur,Ut).forEach(function(En){Zn([Ur],We+En,Ut["defaultValue".concat(En)]||wa)})}):Zn(Ti,We,wa))}dn=this.extendTranslation(dn,Ke,Ut,Tt,on),Ca&&dn===We&&this.options.appendNamespaceToMissingKey&&(dn="".concat(it,":").concat(We)),(Ca||ha)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?dn=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(it,":").concat(We):We,ha?dn:void 0):dn=this.options.parseMissingKeyHandler(dn))}return An?(Tt.res=dn,Tt):dn}},{key:"extendTranslation",value:function(Ke,Ut,on,Tn,An){var Zt=this;if(this.i18nFormat&&this.i18nFormat.parse)Ke=this.i18nFormat.parse(Ke,G(G({},this.options.interpolation.defaultVariables),on),Tn.usedLng,Tn.usedNS,Tn.usedKey,{resolved:Tn});else if(!on.skipInterpolation){on.interpolation&&this.interpolator.init(G(G({},on),{interpolation:G(G({},this.options.interpolation),on.interpolation)}));var ot=typeof Ke=="string"&&(on&&on.interpolation&&on.interpolation.skipOnVariables!==void 0?on.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),We;if(ot){var Ft=Ke.match(this.interpolator.nestingRegexp);We=Ft&&Ft.length}var it=on.replace&&typeof on.replace!="string"?on.replace:on;if(this.options.interpolation.defaultVariables&&(it=G(G({},this.options.interpolation.defaultVariables),it)),Ke=this.interpolator.interpolate(Ke,it,on.lng||this.language,on),ot){var qt=Ke.match(this.interpolator.nestingRegexp),vn=qt&&qt.length;We<vn&&(on.nest=!1)}on.nest!==!1&&(Ke=this.interpolator.nest(Ke,function(){for(var dn=arguments.length,mn=new Array(dn),Kn=0;Kn<dn;Kn++)mn[Kn]=arguments[Kn];return An&&An[0]===mn[0]&&!on.context?(Zt.logger.warn("It seems you are nesting recursively key: ".concat(mn[0]," in key: ").concat(Ut[0])),null):Zt.translate.apply(Zt,mn.concat([Ut]))},on)),on.interpolation&&this.interpolator.reset()}var fn=on.postProcess||this.options.postProcess,Tt=typeof fn=="string"?[fn]:fn;return Ke!=null&&Tt&&Tt.length&&on.applyPostProcessor!==!1&&(Ke=pe.handle(Tt,Ke,Ut,this.options&&this.options.postProcessPassResolved?G({i18nResolved:Tn},on):on,this)),Ke}},{key:"resolve",value:function(Ke){var Ut=this,on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tn,An,Zt,ot,We;return typeof Ke=="string"&&(Ke=[Ke]),Ke.forEach(function(Ft){if(!Ut.isValidLookup(Tn)){var it=Ut.extractFromKey(Ft,on),qt=it.key;An=qt;var vn=it.namespaces;Ut.options.fallbackNS&&(vn=vn.concat(Ut.options.fallbackNS));var fn=on.count!==void 0&&typeof on.count!="string",Tt=fn&&!on.ordinal&&on.count===0&&Ut.pluralResolver.shouldUseIntlApi(),dn=on.context!==void 0&&(typeof on.context=="string"||typeof on.context=="number")&&on.context!=="",mn=on.lngs?on.lngs:Ut.languageUtils.toResolveHierarchy(on.lng||Ut.language,on.fallbackLng);vn.forEach(function(Kn){Ut.isValidLookup(Tn)||(We=Kn,!fe["".concat(mn[0],"-").concat(Kn)]&&Ut.utils&&Ut.utils.hasLoadedNamespace&&!Ut.utils.hasLoadedNamespace(We)&&(fe["".concat(mn[0],"-").concat(Kn)]=!0,Ut.logger.warn('key "'.concat(An,'" for languages "').concat(mn.join(", "),`" won't get resolved as namespace "`).concat(We,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),mn.forEach(function(Dn){if(!Ut.isValidLookup(Tn)){ot=Dn;var Vn=[qt];if(Ut.i18nFormat&&Ut.i18nFormat.addLookupKeys)Ut.i18nFormat.addLookupKeys(Vn,qt,Dn,Kn,on);else{var or;fn&&(or=Ut.pluralResolver.getSuffix(Dn,on.count,on));var Qr="".concat(Ut.options.pluralSeparator,"zero");if(fn&&(Vn.push(qt+or),Tt&&Vn.push(qt+Qr)),dn){var ni="".concat(qt).concat(Ut.options.contextSeparator).concat(on.context);Vn.push(ni),fn&&(Vn.push(ni+or),Tt&&Vn.push(ni+Qr))}}for(var yr;yr=Vn.pop();)Ut.isValidLookup(Tn)||(Zt=yr,Tn=Ut.getResource(Dn,Kn,yr,on))}}))})}}),{res:Tn,usedKey:An,exactUsedKey:Zt,usedLng:ot,usedNS:We}}},{key:"isValidLookup",value:function(Ke){return Ke!==void 0&&!(!this.options.returnNull&&Ke===null)&&!(!this.options.returnEmptyString&&Ke==="")}},{key:"getResource",value:function(Ke,Ut,on){var Tn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(Ke,Ut,on,Tn):this.resourceStore.getResource(Ke,Ut,on,Tn)}}],[{key:"hasDefaultValue",value:function(Ke){var Ut="defaultValue";for(var on in Ke)if(Object.prototype.hasOwnProperty.call(Ke,on)&&Ut===on.substring(0,Ut.length)&&Ke[on]!==void 0)return!0;return!1}}]),en}(w);function he(ze){return ze.charAt(0).toUpperCase()+ze.slice(1)}var me=function(){function ze(st){(0,s.Z)(this,ze),this.options=st,this.supportedLngs=this.options.supportedLngs||!1,this.logger=S.create("languageUtils")}return(0,u.Z)(ze,[{key:"getScriptPartFromCode",value:function(en){if(!en||en.indexOf("-")<0)return null;var wt=en.split("-");return wt.length===2||(wt.pop(),wt[wt.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(wt.join("-"))}},{key:"getLanguagePartFromCode",value:function(en){if(!en||en.indexOf("-")<0)return en;var wt=en.split("-");return this.formatLanguageCode(wt[0])}},{key:"formatLanguageCode",value:function(en){if(typeof en=="string"&&en.indexOf("-")>-1){var wt=["hans","hant","latn","cyrl","cans","mong","arab"],Ke=en.split("-");return this.options.lowerCaseLng?Ke=Ke.map(function(Ut){return Ut.toLowerCase()}):Ke.length===2?(Ke[0]=Ke[0].toLowerCase(),Ke[1]=Ke[1].toUpperCase(),wt.indexOf(Ke[1].toLowerCase())>-1&&(Ke[1]=he(Ke[1].toLowerCase()))):Ke.length===3&&(Ke[0]=Ke[0].toLowerCase(),Ke[1].length===2&&(Ke[1]=Ke[1].toUpperCase()),Ke[0]!=="sgn"&&Ke[2].length===2&&(Ke[2]=Ke[2].toUpperCase()),wt.indexOf(Ke[1].toLowerCase())>-1&&(Ke[1]=he(Ke[1].toLowerCase())),wt.indexOf(Ke[2].toLowerCase())>-1&&(Ke[2]=he(Ke[2].toLowerCase()))),Ke.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?en.toLowerCase():en}},{key:"isSupportedCode",value:function(en){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(en=this.getLanguagePartFromCode(en)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(en)>-1}},{key:"getBestMatchFromCodes",value:function(en){var wt=this;if(!en)return null;var Ke;return en.forEach(function(Ut){if(!Ke){var on=wt.formatLanguageCode(Ut);(!wt.options.supportedLngs||wt.isSupportedCode(on))&&(Ke=on)}}),!Ke&&this.options.supportedLngs&&en.forEach(function(Ut){if(!Ke){var on=wt.getLanguagePartFromCode(Ut);if(wt.isSupportedCode(on))return Ke=on;Ke=wt.options.supportedLngs.find(function(Tn){if(Tn.indexOf(on)===0)return Tn})}}),Ke||(Ke=this.getFallbackCodes(this.options.fallbackLng)[0]),Ke}},{key:"getFallbackCodes",value:function(en,wt){if(!en)return[];if(typeof en=="function"&&(en=en(wt)),typeof en=="string"&&(en=[en]),Object.prototype.toString.apply(en)==="[object Array]")return en;if(!wt)return en.default||[];var Ke=en[wt];return Ke||(Ke=en[this.getScriptPartFromCode(wt)]),Ke||(Ke=en[this.formatLanguageCode(wt)]),Ke||(Ke=en[this.getLanguagePartFromCode(wt)]),Ke||(Ke=en.default),Ke||[]}},{key:"toResolveHierarchy",value:function(en,wt){var Ke=this,Ut=this.getFallbackCodes(wt||this.options.fallbackLng||[],en),on=[],Tn=function(Zt){Zt&&(Ke.isSupportedCode(Zt)?on.push(Zt):Ke.logger.warn("rejecting language code not found in supportedLngs: ".concat(Zt)))};return typeof en=="string"&&en.indexOf("-")>-1?(this.options.load!=="languageOnly"&&Tn(this.formatLanguageCode(en)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&Tn(this.getScriptPartFromCode(en)),this.options.load!=="currentOnly"&&Tn(this.getLanguagePartFromCode(en))):typeof en=="string"&&Tn(this.formatLanguageCode(en)),Ut.forEach(function(An){on.indexOf(An)<0&&Tn(Ke.formatLanguageCode(An))}),on}}]),ze}(),_e=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],we={1:function(st){return+(st>1)},2:function(st){return+(st!=1)},3:function(st){return 0},4:function(st){return st%10==1&&st%100!=11?0:st%10>=2&&st%10<=4&&(st%100<10||st%100>=20)?1:2},5:function(st){return st==0?0:st==1?1:st==2?2:st%100>=3&&st%100<=10?3:st%100>=11?4:5},6:function(st){return st==1?0:st>=2&&st<=4?1:2},7:function(st){return st==1?0:st%10>=2&&st%10<=4&&(st%100<10||st%100>=20)?1:2},8:function(st){return st==1?0:st==2?1:st!=8&&st!=11?2:3},9:function(st){return+(st>=2)},10:function(st){return st==1?0:st==2?1:st<7?2:st<11?3:4},11:function(st){return st==1||st==11?0:st==2||st==12?1:st>2&&st<20?2:3},12:function(st){return+(st%10!=1||st%100==11)},13:function(st){return+(st!==0)},14:function(st){return st==1?0:st==2?1:st==3?2:3},15:function(st){return st%10==1&&st%100!=11?0:st%10>=2&&(st%100<10||st%100>=20)?1:2},16:function(st){return st%10==1&&st%100!=11?0:st!==0?1:2},17:function(st){return st==1||st%10==1&&st%100!=11?0:1},18:function(st){return st==0?0:st==1?1:2},19:function(st){return st==1?0:st==0||st%100>1&&st%100<11?1:st%100>10&&st%100<20?2:3},20:function(st){return st==1?0:st==0||st%100>0&&st%100<20?1:2},21:function(st){return st%100==1?1:st%100==2?2:st%100==3||st%100==4?3:0},22:function(st){return st==1?0:st==2?1:(st<0||st>10)&&st%10==0?2:3}},Ge=["v1","v2","v3"],ht={zero:0,one:1,two:2,few:3,many:4,other:5};function nt(){var ze={};return _e.forEach(function(st){st.lngs.forEach(function(en){ze[en]={numbers:st.nr,plurals:we[st.fc]}})}),ze}var Re=function(){function ze(st){var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,s.Z)(this,ze),this.languageUtils=st,this.options=en,this.logger=S.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=nt()}return(0,u.Z)(ze,[{key:"addRule",value:function(en,wt){this.rules[en]=wt}},{key:"getRule",value:function(en){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(en,{type:wt.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[en]||this.rules[this.languageUtils.getLanguagePartFromCode(en)]}},{key:"needsPlural",value:function(en){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ke=this.getRule(en,wt);return this.shouldUseIntlApi()?Ke&&Ke.resolvedOptions().pluralCategories.length>1:Ke&&Ke.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(en,wt){var Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(en,Ke).map(function(Ut){return"".concat(wt).concat(Ut)})}},{key:"getSuffixes",value:function(en){var wt=this,Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ut=this.getRule(en,Ke);return Ut?this.shouldUseIntlApi()?Ut.resolvedOptions().pluralCategories.sort(function(on,Tn){return ht[on]-ht[Tn]}).map(function(on){return"".concat(wt.options.prepend).concat(on)}):Ut.numbers.map(function(on){return wt.getSuffix(en,on,Ke)}):[]}},{key:"getSuffix",value:function(en,wt){var Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ut=this.getRule(en,Ke);return Ut?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(Ut.select(wt)):this.getSuffixRetroCompatible(Ut,wt):(this.logger.warn("no plural rule found for: ".concat(en)),"")}},{key:"getSuffixRetroCompatible",value:function(en,wt){var Ke=this,Ut=en.noAbs?en.plurals(wt):en.plurals(Math.abs(wt)),on=en.numbers[Ut];this.options.simplifyPluralSuffix&&en.numbers.length===2&&en.numbers[0]===1&&(on===2?on="plural":on===1&&(on=""));var Tn=function(){return Ke.options.prepend&&on.toString()?Ke.options.prepend+on.toString():on.toString()};return this.options.compatibilityJSON==="v1"?on===1?"":typeof on=="number"?"_plural_".concat(on.toString()):Tn():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&en.numbers.length===2&&en.numbers[0]===1?Tn():this.options.prepend&&Ut.toString()?this.options.prepend+Ut.toString():Ut.toString()}},{key:"shouldUseIntlApi",value:function(){return!Ge.includes(this.options.compatibilityJSON)}}]),ze}();function ue(ze,st){var en=Object.keys(ze);if(Object.getOwnPropertySymbols){var wt=Object.getOwnPropertySymbols(ze);st&&(wt=wt.filter(function(Ke){return Object.getOwnPropertyDescriptor(ze,Ke).enumerable})),en.push.apply(en,wt)}return en}function ae(ze){for(var st=1;st<arguments.length;st++){var en=arguments[st]!=null?arguments[st]:{};st%2?ue(Object(en),!0).forEach(function(wt){(0,d.Z)(ze,wt,en[wt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ze,Object.getOwnPropertyDescriptors(en)):ue(Object(en)).forEach(function(wt){Object.defineProperty(ze,wt,Object.getOwnPropertyDescriptor(en,wt))})}return ze}var ve=function(){function ze(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,s.Z)(this,ze),this.logger=S.create("interpolator"),this.options=st,this.format=st.interpolation&&st.interpolation.format||function(en){return en},this.init(st)}return(0,u.Z)(ze,[{key:"init",value:function(){var en=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};en.interpolation||(en.interpolation={escapeValue:!0});var wt=en.interpolation;this.escape=wt.escape!==void 0?wt.escape:re,this.escapeValue=wt.escapeValue!==void 0?wt.escapeValue:!0,this.useRawValueToEscape=wt.useRawValueToEscape!==void 0?wt.useRawValueToEscape:!1,this.prefix=wt.prefix?W(wt.prefix):wt.prefixEscaped||"{{",this.suffix=wt.suffix?W(wt.suffix):wt.suffixEscaped||"}}",this.formatSeparator=wt.formatSeparator?wt.formatSeparator:wt.formatSeparator||",",this.unescapePrefix=wt.unescapeSuffix?"":wt.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":wt.unescapeSuffix||"",this.nestingPrefix=wt.nestingPrefix?W(wt.nestingPrefix):wt.nestingPrefixEscaped||W("$t("),this.nestingSuffix=wt.nestingSuffix?W(wt.nestingSuffix):wt.nestingSuffixEscaped||W(")"),this.nestingOptionsSeparator=wt.nestingOptionsSeparator?wt.nestingOptionsSeparator:wt.nestingOptionsSeparator||",",this.maxReplaces=wt.maxReplaces?wt.maxReplaces:1e3,this.alwaysFormat=wt.alwaysFormat!==void 0?wt.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var en="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(en,"g");var wt="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(wt,"g");var Ke="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(Ke,"g")}},{key:"interpolate",value:function(en,wt,Ke,Ut){var on=this,Tn,An,Zt,ot=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function We(fn){return fn.replace(/\$/g,"$$$$")}var Ft=function(Tt){if(Tt.indexOf(on.formatSeparator)<0){var dn=K(wt,ot,Tt);return on.alwaysFormat?on.format(dn,void 0,Ke,ae(ae(ae({},Ut),wt),{},{interpolationkey:Tt})):dn}var mn=Tt.split(on.formatSeparator),Kn=mn.shift().trim(),Dn=mn.join(on.formatSeparator).trim();return on.format(K(wt,ot,Kn),Dn,Ke,ae(ae(ae({},Ut),wt),{},{interpolationkey:Kn}))};this.resetRegExp();var it=Ut&&Ut.missingInterpolationHandler||this.options.missingInterpolationHandler,qt=Ut&&Ut.interpolation&&Ut.interpolation.skipOnVariables!==void 0?Ut.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,vn=[{regex:this.regexpUnescape,safeValue:function(Tt){return We(Tt)}},{regex:this.regexp,safeValue:function(Tt){return on.escapeValue?We(on.escape(Tt)):We(Tt)}}];return vn.forEach(function(fn){for(Zt=0;Tn=fn.regex.exec(en);){var Tt=Tn[1].trim();if(An=Ft(Tt),An===void 0)if(typeof it=="function"){var dn=it(en,Tn,Ut);An=typeof dn=="string"?dn:""}else if(Ut&&Ut.hasOwnProperty(Tt))An="";else if(qt){An=Tn[0];continue}else on.logger.warn("missed to pass in variable ".concat(Tt," for interpolating ").concat(en)),An="";else typeof An!="string"&&!on.useRawValueToEscape&&(An=P(An));var mn=fn.safeValue(An);if(en=en.replace(Tn[0],mn),qt?(fn.regex.lastIndex+=An.length,fn.regex.lastIndex-=Tn[0].length):fn.regex.lastIndex=0,Zt++,Zt>=on.maxReplaces)break}}),en}},{key:"nest",value:function(en,wt){var Ke=this,Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},on,Tn,An=ae({},Ut);An.applyPostProcessor=!1,delete An.defaultValue;function Zt(it,qt){var vn=this.nestingOptionsSeparator;if(it.indexOf(vn)<0)return it;var fn=it.split(new RegExp("".concat(vn,"[ ]*{"))),Tt="{".concat(fn[1]);it=fn[0],Tt=this.interpolate(Tt,An);var dn=Tt.match(/'/g),mn=Tt.match(/"/g);(dn&&dn.length%2===0&&!mn||mn.length%2!==0)&&(Tt=Tt.replace(/'/g,'"'));try{An=JSON.parse(Tt),qt&&(An=ae(ae({},qt),An))}catch(Kn){return this.logger.warn("failed parsing options string in nesting for key ".concat(it),Kn),"".concat(it).concat(vn).concat(Tt)}return delete An.defaultValue,it}for(;on=this.nestingRegexp.exec(en);){var ot=[],We=!1;if(on[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(on[1])){var Ft=on[1].split(this.formatSeparator).map(function(it){return it.trim()});on[1]=Ft.shift(),ot=Ft,We=!0}if(Tn=wt(Zt.call(this,on[1].trim(),An),An),Tn&&on[0]===en&&typeof Tn!="string")return Tn;typeof Tn!="string"&&(Tn=P(Tn)),Tn||(this.logger.warn("missed to resolve ".concat(on[1]," for nesting ").concat(en)),Tn=""),We&&(Tn=ot.reduce(function(it,qt){return Ke.format(it,qt,Ut.lng,ae(ae({},Ut),{},{interpolationkey:on[1].trim()}))},Tn.trim())),en=en.replace(on[0],Tn),this.regexp.lastIndex=0}return en}}]),ze}();function Me(ze,st){var en=Object.keys(ze);if(Object.getOwnPropertySymbols){var wt=Object.getOwnPropertySymbols(ze);st&&(wt=wt.filter(function(Ke){return Object.getOwnPropertyDescriptor(ze,Ke).enumerable})),en.push.apply(en,wt)}return en}function Ye(ze){for(var st=1;st<arguments.length;st++){var en=arguments[st]!=null?arguments[st]:{};st%2?Me(Object(en),!0).forEach(function(wt){(0,d.Z)(ze,wt,en[wt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ze,Object.getOwnPropertyDescriptors(en)):Me(Object(en)).forEach(function(wt){Object.defineProperty(ze,wt,Object.getOwnPropertyDescriptor(en,wt))})}return ze}function qe(ze){var st=ze.toLowerCase().trim(),en={};if(ze.indexOf("(")>-1){var wt=ze.split("(");st=wt[0].toLowerCase().trim();var Ke=wt[1].substring(0,wt[1].length-1);if(st==="currency"&&Ke.indexOf(":")<0)en.currency||(en.currency=Ke.trim());else if(st==="relativetime"&&Ke.indexOf(":")<0)en.range||(en.range=Ke.trim());else{var Ut=Ke.split(";");Ut.forEach(function(on){if(on){var Tn=on.split(":"),An=(0,f.Z)(Tn),Zt=An[0],ot=An.slice(1),We=ot.join(":").trim().replace(/^'+|'+$/g,"");en[Zt.trim()]||(en[Zt.trim()]=We),We==="false"&&(en[Zt.trim()]=!1),We==="true"&&(en[Zt.trim()]=!0),isNaN(We)||(en[Zt.trim()]=parseInt(We,10))}})}}return{formatName:st,formatOptions:en}}function At(ze){var st={};return function(wt,Ke,Ut){var on=Ke+JSON.stringify(Ut),Tn=st[on];return Tn||(Tn=ze(Ke,Ut),st[on]=Tn),Tn(wt)}}var It=function(){function ze(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,s.Z)(this,ze),this.logger=S.create("formatter"),this.options=st,this.formats={number:At(function(en,wt){var Ke=new Intl.NumberFormat(en,wt);return function(Ut){return Ke.format(Ut)}}),currency:At(function(en,wt){var Ke=new Intl.NumberFormat(en,Ye(Ye({},wt),{},{style:"currency"}));return function(Ut){return Ke.format(Ut)}}),datetime:At(function(en,wt){var Ke=new Intl.DateTimeFormat(en,Ye({},wt));return function(Ut){return Ke.format(Ut)}}),relativetime:At(function(en,wt){var Ke=new Intl.RelativeTimeFormat(en,Ye({},wt));return function(Ut){return Ke.format(Ut,wt.range||"day")}}),list:At(function(en,wt){var Ke=new Intl.ListFormat(en,Ye({},wt));return function(Ut){return Ke.format(Ut)}})},this.init(st)}return(0,u.Z)(ze,[{key:"init",value:function(en){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},Ke=wt.interpolation;this.formatSeparator=Ke.formatSeparator?Ke.formatSeparator:Ke.formatSeparator||","}},{key:"add",value:function(en,wt){this.formats[en.toLowerCase().trim()]=wt}},{key:"addCached",value:function(en,wt){this.formats[en.toLowerCase().trim()]=At(wt)}},{key:"format",value:function(en,wt,Ke,Ut){var on=this,Tn=wt.split(this.formatSeparator),An=Tn.reduce(function(Zt,ot){var We=qe(ot),Ft=We.formatName,it=We.formatOptions;if(on.formats[Ft]){var qt=Zt;try{var vn=Ut&&Ut.formatParams&&Ut.formatParams[Ut.interpolationkey]||{},fn=vn.locale||vn.lng||Ut.locale||Ut.lng||Ke;qt=on.formats[Ft](Zt,fn,Ye(Ye(Ye({},it),Ut),vn))}catch(Tt){on.logger.warn(Tt)}return qt}else on.logger.warn("there was no format function for ".concat(Ft));return Zt},en);return An}}]),ze}();function Ce(ze,st){var en=Object.keys(ze);if(Object.getOwnPropertySymbols){var wt=Object.getOwnPropertySymbols(ze);st&&(wt=wt.filter(function(Ke){return Object.getOwnPropertyDescriptor(ze,Ke).enumerable})),en.push.apply(en,wt)}return en}function Ae(ze){for(var st=1;st<arguments.length;st++){var en=arguments[st]!=null?arguments[st]:{};st%2?Ce(Object(en),!0).forEach(function(wt){(0,d.Z)(ze,wt,en[wt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ze,Object.getOwnPropertyDescriptors(en)):Ce(Object(en)).forEach(function(wt){Object.defineProperty(ze,wt,Object.getOwnPropertyDescriptor(en,wt))})}return ze}function $e(ze){var st=tt();return function(){var wt=(0,p.Z)(ze),Ke;if(st){var Ut=(0,p.Z)(this).constructor;Ke=Reflect.construct(wt,arguments,Ut)}else Ke=wt.apply(this,arguments);return(0,h.Z)(this,Ke)}}function tt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ke(ze,st){ze.pending[st]!==void 0&&(delete ze.pending[st],ze.pendingCount--)}var Oe=function(ze){(0,l.Z)(en,ze);var st=$e(en);function en(wt,Ke,Ut){var on,Tn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(0,s.Z)(this,en),on=st.call(this),X&&w.call((0,v.Z)(on)),on.backend=wt,on.store=Ke,on.services=Ut,on.languageUtils=Ut.languageUtils,on.options=Tn,on.logger=S.create("backendConnector"),on.waitingReads=[],on.maxParallelReads=Tn.maxParallelReads||10,on.readingCalls=0,on.maxRetries=Tn.maxRetries>=0?Tn.maxRetries:5,on.retryTimeout=Tn.retryTimeout>=1?Tn.retryTimeout:350,on.state={},on.queue=[],on.backend&&on.backend.init&&on.backend.init(Ut,Tn.backend,Tn),on}return(0,u.Z)(en,[{key:"queueLoad",value:function(Ke,Ut,on,Tn){var An=this,Zt={},ot={},We={},Ft={};return Ke.forEach(function(it){var qt=!0;Ut.forEach(function(vn){var fn="".concat(it,"|").concat(vn);!on.reload&&An.store.hasResourceBundle(it,vn)?An.state[fn]=2:An.state[fn]<0||(An.state[fn]===1?ot[fn]===void 0&&(ot[fn]=!0):(An.state[fn]=1,qt=!1,ot[fn]===void 0&&(ot[fn]=!0),Zt[fn]===void 0&&(Zt[fn]=!0),Ft[vn]===void 0&&(Ft[vn]=!0)))}),qt||(We[it]=!0)}),(Object.keys(Zt).length||Object.keys(ot).length)&&this.queue.push({pending:ot,pendingCount:Object.keys(ot).length,loaded:{},errors:[],callback:Tn}),{toLoad:Object.keys(Zt),pending:Object.keys(ot),toLoadLanguages:Object.keys(We),toLoadNamespaces:Object.keys(Ft)}}},{key:"loaded",value:function(Ke,Ut,on){var Tn=Ke.split("|"),An=Tn[0],Zt=Tn[1];Ut&&this.emit("failedLoading",An,Zt,Ut),on&&this.store.addResourceBundle(An,Zt,on),this.state[Ke]=Ut?-1:2;var ot={};this.queue.forEach(function(We){I(We.loaded,[An],Zt),ke(We,Ke),Ut&&We.errors.push(Ut),We.pendingCount===0&&!We.done&&(Object.keys(We.loaded).forEach(function(Ft){ot[Ft]||(ot[Ft]={});var it=We.loaded[Ft];it.length&&it.forEach(function(qt){ot[Ft][qt]===void 0&&(ot[Ft][qt]=!0)})}),We.done=!0,We.errors.length?We.callback(We.errors):We.callback())}),this.emit("loaded",ot),this.queue=this.queue.filter(function(We){return!We.done})}},{key:"read",value:function(Ke,Ut,on){var Tn=this,An=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,Zt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,ot=arguments.length>5?arguments[5]:void 0;if(!Ke.length)return ot(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:Ke,ns:Ut,fcName:on,tried:An,wait:Zt,callback:ot});return}return this.readingCalls++,this.backend[on](Ke,Ut,function(We,Ft){if(Tn.readingCalls--,Tn.waitingReads.length>0){var it=Tn.waitingReads.shift();Tn.read(it.lng,it.ns,it.fcName,it.tried,it.wait,it.callback)}if(We&&Ft&&An<Tn.maxRetries){setTimeout(function(){Tn.read.call(Tn,Ke,Ut,on,An+1,Zt*2,ot)},Zt);return}ot(We,Ft)})}},{key:"prepareLoading",value:function(Ke,Ut){var on=this,Tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},An=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),An&&An();typeof Ke=="string"&&(Ke=this.languageUtils.toResolveHierarchy(Ke)),typeof Ut=="string"&&(Ut=[Ut]);var Zt=this.queueLoad(Ke,Ut,Tn,An);if(!Zt.toLoad.length)return Zt.pending.length||An(),null;Zt.toLoad.forEach(function(ot){on.loadOne(ot)})}},{key:"load",value:function(Ke,Ut,on){this.prepareLoading(Ke,Ut,{},on)}},{key:"reload",value:function(Ke,Ut,on){this.prepareLoading(Ke,Ut,{reload:!0},on)}},{key:"loadOne",value:function(Ke){var Ut=this,on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",Tn=Ke.split("|"),An=Tn[0],Zt=Tn[1];this.read(An,Zt,"read",void 0,void 0,function(ot,We){ot&&Ut.logger.warn("".concat(on,"loading namespace ").concat(Zt," for language ").concat(An," failed"),ot),!ot&&We&&Ut.logger.log("".concat(on,"loaded namespace ").concat(Zt," for language ").concat(An),We),Ut.loaded(Ke,ot,We)})}},{key:"saveMissing",value:function(Ke,Ut,on,Tn,An){var Zt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(Ut)){this.logger.warn('did not save key "'.concat(on,'" as the namespace "').concat(Ut,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}on==null||on===""||(this.backend&&this.backend.create&&this.backend.create(Ke,Ut,on,Tn,null,Ae(Ae({},Zt),{},{isUpdate:An})),!(!Ke||!Ke[0])&&this.store.addResource(Ke[0],Ut,on,Tn))}}]),en}(w);function je(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(st){var en={};if((0,i.Z)(st[1])==="object"&&(en=st[1]),typeof st[1]=="string"&&(en.defaultValue=st[1]),typeof st[2]=="string"&&(en.tDescription=st[2]),(0,i.Z)(st[2])==="object"||(0,i.Z)(st[3])==="object"){var wt=st[3]||st[2];Object.keys(wt).forEach(function(Ke){en[Ke]=wt[Ke]})}return en},interpolation:{escapeValue:!0,format:function(st,en,wt,Ke){return st},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Et(ze){return typeof ze.ns=="string"&&(ze.ns=[ze.ns]),typeof ze.fallbackLng=="string"&&(ze.fallbackLng=[ze.fallbackLng]),typeof ze.fallbackNS=="string"&&(ze.fallbackNS=[ze.fallbackNS]),ze.supportedLngs&&ze.supportedLngs.indexOf("cimode")<0&&(ze.supportedLngs=ze.supportedLngs.concat(["cimode"])),ze}function ct(ze,st){var en=Object.keys(ze);if(Object.getOwnPropertySymbols){var wt=Object.getOwnPropertySymbols(ze);st&&(wt=wt.filter(function(Ke){return Object.getOwnPropertyDescriptor(ze,Ke).enumerable})),en.push.apply(en,wt)}return en}function ut(ze){for(var st=1;st<arguments.length;st++){var en=arguments[st]!=null?arguments[st]:{};st%2?ct(Object(en),!0).forEach(function(wt){(0,d.Z)(ze,wt,en[wt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ze,Object.getOwnPropertyDescriptors(en)):ct(Object(en)).forEach(function(wt){Object.defineProperty(ze,wt,Object.getOwnPropertyDescriptor(en,wt))})}return ze}function Ne(ze){var st=mt();return function(){var wt=(0,p.Z)(ze),Ke;if(st){var Ut=(0,p.Z)(this).constructor;Ke=Reflect.construct(wt,arguments,Ut)}else Ke=wt.apply(this,arguments);return(0,h.Z)(this,Ke)}}function mt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bt(){}function Gt(ze){var st=Object.getOwnPropertyNames(Object.getPrototypeOf(ze));st.forEach(function(en){typeof ze[en]=="function"&&(ze[en]=ze[en].bind(ze))})}var hn=function(ze){(0,l.Z)(en,ze);var st=Ne(en);function en(){var wt,Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ut=arguments.length>1?arguments[1]:void 0;if((0,s.Z)(this,en),wt=st.call(this),X&&w.call((0,v.Z)(wt)),wt.options=Et(Ke),wt.services={},wt.logger=S,wt.modules={external:[]},Gt((0,v.Z)(wt)),Ut&&!wt.isInitialized&&!Ke.isClone){if(!wt.options.initImmediate)return wt.init(Ke,Ut),(0,h.Z)(wt,(0,v.Z)(wt));setTimeout(function(){wt.init(Ke,Ut)},0)}return wt}return(0,u.Z)(en,[{key:"init",value:function(){var Ke=this,Ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},on=arguments.length>1?arguments[1]:void 0;typeof Ut=="function"&&(on=Ut,Ut={}),!Ut.defaultNS&&Ut.defaultNS!==!1&&Ut.ns&&(typeof Ut.ns=="string"?Ut.defaultNS=Ut.ns:Ut.ns.indexOf("translation")<0&&(Ut.defaultNS=Ut.ns[0]));var Tn=je();this.options=ut(ut(ut({},Tn),this.options),Et(Ut)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ut(ut({},Tn.interpolation),this.options.interpolation)),Ut.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=Ut.keySeparator),Ut.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=Ut.nsSeparator);function An(Tt){return Tt?typeof Tt=="function"?new Tt:Tt:null}if(!this.options.isClone){this.modules.logger?S.init(An(this.modules.logger),this.options):S.init(null,this.options);var Zt;this.modules.formatter?Zt=this.modules.formatter:typeof Intl<"u"&&(Zt=It);var ot=new me(this.options);this.store=new V(this.options.resources,this.options);var We=this.services;We.logger=S,We.resourceStore=this.store,We.languageUtils=ot,We.pluralResolver=new Re(ot,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),Zt&&(!this.options.interpolation.format||this.options.interpolation.format===Tn.interpolation.format)&&(We.formatter=An(Zt),We.formatter.init(We,this.options),this.options.interpolation.format=We.formatter.format.bind(We.formatter)),We.interpolator=new ve(this.options),We.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},We.backendConnector=new Oe(An(this.modules.backend),We.resourceStore,We,this.options),We.backendConnector.on("*",function(Tt){for(var dn=arguments.length,mn=new Array(dn>1?dn-1:0),Kn=1;Kn<dn;Kn++)mn[Kn-1]=arguments[Kn];Ke.emit.apply(Ke,[Tt].concat(mn))}),this.modules.languageDetector&&(We.languageDetector=An(this.modules.languageDetector),We.languageDetector.init(We,this.options.detection,this.options)),this.modules.i18nFormat&&(We.i18nFormat=An(this.modules.i18nFormat),We.i18nFormat.init&&We.i18nFormat.init(this)),this.translator=new Se(this.services,this.options),this.translator.on("*",function(Tt){for(var dn=arguments.length,mn=new Array(dn>1?dn-1:0),Kn=1;Kn<dn;Kn++)mn[Kn-1]=arguments[Kn];Ke.emit.apply(Ke,[Tt].concat(mn))}),this.modules.external.forEach(function(Tt){Tt.init&&Tt.init(Ke)})}if(this.format=this.options.interpolation.format,on||(on=bt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var Ft=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);Ft.length>0&&Ft[0]!=="dev"&&(this.options.lng=Ft[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var it=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];it.forEach(function(Tt){Ke[Tt]=function(){var dn;return(dn=Ke.store)[Tt].apply(dn,arguments)}});var qt=["addResource","addResources","addResourceBundle","removeResourceBundle"];qt.forEach(function(Tt){Ke[Tt]=function(){var dn;return(dn=Ke.store)[Tt].apply(dn,arguments),Ke}});var vn=x(),fn=function(){var dn=function(Kn,Dn){Ke.isInitialized&&!Ke.initializedStoreOnce&&Ke.logger.warn("init: i18next is already initialized. You should call init just once!"),Ke.isInitialized=!0,Ke.options.isClone||Ke.logger.log("initialized",Ke.options),Ke.emit("initialized",Ke.options),vn.resolve(Dn),on(Kn,Dn)};if(Ke.languages&&Ke.options.compatibilityAPI!=="v1"&&!Ke.isInitialized)return dn(null,Ke.t.bind(Ke));Ke.changeLanguage(Ke.options.lng,dn)};return this.options.resources||!this.options.initImmediate?fn():setTimeout(fn,0),vn}},{key:"loadResources",value:function(Ke){var Ut=this,on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bt,Tn=on,An=typeof Ke=="string"?Ke:this.language;if(typeof Ke=="function"&&(Tn=Ke),!this.options.resources||this.options.partialBundledLanguages){if(An&&An.toLowerCase()==="cimode")return Tn();var Zt=[],ot=function(it){if(it){var qt=Ut.services.languageUtils.toResolveHierarchy(it);qt.forEach(function(vn){Zt.indexOf(vn)<0&&Zt.push(vn)})}};if(An)ot(An);else{var We=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);We.forEach(function(Ft){return ot(Ft)})}this.options.preload&&this.options.preload.forEach(function(Ft){return ot(Ft)}),this.services.backendConnector.load(Zt,this.options.ns,function(Ft){!Ft&&!Ut.resolvedLanguage&&Ut.language&&Ut.setResolvedLanguage(Ut.language),Tn(Ft)})}else Tn(null)}},{key:"reloadResources",value:function(Ke,Ut,on){var Tn=x();return Ke||(Ke=this.languages),Ut||(Ut=this.options.ns),on||(on=bt),this.services.backendConnector.reload(Ke,Ut,function(An){Tn.resolve(),on(An)}),Tn}},{key:"use",value:function(Ke){if(!Ke)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!Ke.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return Ke.type==="backend"&&(this.modules.backend=Ke),(Ke.type==="logger"||Ke.log&&Ke.warn&&Ke.error)&&(this.modules.logger=Ke),Ke.type==="languageDetector"&&(this.modules.languageDetector=Ke),Ke.type==="i18nFormat"&&(this.modules.i18nFormat=Ke),Ke.type==="postProcessor"&&pe.addPostProcessor(Ke),Ke.type==="formatter"&&(this.modules.formatter=Ke),Ke.type==="3rdParty"&&this.modules.external.push(Ke),this}},{key:"setResolvedLanguage",value:function(Ke){if(!(!Ke||!this.languages)&&!(["cimode","dev"].indexOf(Ke)>-1))for(var Ut=0;Ut<this.languages.length;Ut++){var on=this.languages[Ut];if(!(["cimode","dev"].indexOf(on)>-1)&&this.store.hasLanguageSomeTranslations(on)){this.resolvedLanguage=on;break}}}},{key:"changeLanguage",value:function(Ke,Ut){var on=this;this.isLanguageChangingTo=Ke;var Tn=x();this.emit("languageChanging",Ke);var An=function(Ft){on.language=Ft,on.languages=on.services.languageUtils.toResolveHierarchy(Ft),on.resolvedLanguage=void 0,on.setResolvedLanguage(Ft)},Zt=function(Ft,it){it?(An(it),on.translator.changeLanguage(it),on.isLanguageChangingTo=void 0,on.emit("languageChanged",it),on.logger.log("languageChanged",it)):on.isLanguageChangingTo=void 0,Tn.resolve(function(){return on.t.apply(on,arguments)}),Ut&&Ut(Ft,function(){return on.t.apply(on,arguments)})},ot=function(Ft){!Ke&&!Ft&&on.services.languageDetector&&(Ft=[]);var it=typeof Ft=="string"?Ft:on.services.languageUtils.getBestMatchFromCodes(Ft);it&&(on.language||An(it),on.translator.language||on.translator.changeLanguage(it),on.services.languageDetector&&on.services.languageDetector.cacheUserLanguage(it)),on.loadResources(it,function(qt){Zt(qt,it)})};return!Ke&&this.services.languageDetector&&!this.services.languageDetector.async?ot(this.services.languageDetector.detect()):!Ke&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(ot):ot(Ke),Tn}},{key:"getFixedT",value:function(Ke,Ut,on){var Tn=this,An=function Zt(ot,We){var Ft;if((0,i.Z)(We)!=="object"){for(var it=arguments.length,qt=new Array(it>2?it-2:0),vn=2;vn<it;vn++)qt[vn-2]=arguments[vn];Ft=Tn.options.overloadTranslationOptionHandler([ot,We].concat(qt))}else Ft=ut({},We);Ft.lng=Ft.lng||Zt.lng,Ft.lngs=Ft.lngs||Zt.lngs,Ft.ns=Ft.ns||Zt.ns,Ft.keyPrefix=Ft.keyPrefix||on||Zt.keyPrefix;var fn=Tn.options.keySeparator||".",Tt=Ft.keyPrefix?"".concat(Ft.keyPrefix).concat(fn).concat(ot):ot;return Tn.t(Tt,Ft)};return typeof Ke=="string"?An.lng=Ke:An.lngs=Ke,An.ns=Ut,An.keyPrefix=on,An}},{key:"t",value:function(){var Ke;return this.translator&&(Ke=this.translator).translate.apply(Ke,arguments)}},{key:"exists",value:function(){var Ke;return this.translator&&(Ke=this.translator).exists.apply(Ke,arguments)}},{key:"setDefaultNamespace",value:function(Ke){this.options.defaultNS=Ke}},{key:"hasLoadedNamespace",value:function(Ke){var Ut=this,on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var Tn=this.resolvedLanguage||this.languages[0],An=this.options?this.options.fallbackLng:!1,Zt=this.languages[this.languages.length-1];if(Tn.toLowerCase()==="cimode")return!0;var ot=function(it,qt){var vn=Ut.services.backendConnector.state["".concat(it,"|").concat(qt)];return vn===-1||vn===2};if(on.precheck){var We=on.precheck(this,ot);if(We!==void 0)return We}return!!(this.hasResourceBundle(Tn,Ke)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||ot(Tn,Ke)&&(!An||ot(Zt,Ke)))}},{key:"loadNamespaces",value:function(Ke,Ut){var on=this,Tn=x();return this.options.ns?(typeof Ke=="string"&&(Ke=[Ke]),Ke.forEach(function(An){on.options.ns.indexOf(An)<0&&on.options.ns.push(An)}),this.loadResources(function(An){Tn.resolve(),Ut&&Ut(An)}),Tn):(Ut&&Ut(),Promise.resolve())}},{key:"loadLanguages",value:function(Ke,Ut){var on=x();typeof Ke=="string"&&(Ke=[Ke]);var Tn=this.options.preload||[],An=Ke.filter(function(Zt){return Tn.indexOf(Zt)<0});return An.length?(this.options.preload=Tn.concat(An),this.loadResources(function(Zt){on.resolve(),Ut&&Ut(Zt)}),on):(Ut&&Ut(),Promise.resolve())}},{key:"dir",value:function(Ke){if(Ke||(Ke=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!Ke)return"rtl";var Ut=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return Ut.indexOf(this.services.languageUtils.getLanguagePartFromCode(Ke))>-1||Ke.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var Ke=this,Ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bt,Tn=ut(ut(ut({},this.options),Ut),{isClone:!0}),An=new en(Tn);(Ut.debug!==void 0||Ut.prefix!==void 0)&&(An.logger=An.logger.clone(Ut));var Zt=["store","services","language"];return Zt.forEach(function(ot){An[ot]=Ke[ot]}),An.services=ut({},this.services),An.services.utils={hasLoadedNamespace:An.hasLoadedNamespace.bind(An)},An.translator=new Se(An.services,An.options),An.translator.on("*",function(ot){for(var We=arguments.length,Ft=new Array(We>1?We-1:0),it=1;it<We;it++)Ft[it-1]=arguments[it];An.emit.apply(An,[ot].concat(Ft))}),An.init(Tn,on),An.translator.options=An.options,An.translator.backendConnector.services.utils={hasLoadedNamespace:An.hasLoadedNamespace.bind(An)},An}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),en}(w);(0,d.Z)(hn,"createInstance",function(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},st=arguments.length>1?arguments[1]:void 0;return new hn(ze,st)});var Yt=hn.createInstance();Yt.createInstance=hn.createInstance;var Bt=Yt.createInstance,Lt=Yt.init,zt=Yt.loadResources,Kt=Yt.reloadResources,vt=Yt.use,Ve=Yt.changeLanguage,lt=Yt.getFixedT,at=Yt.t,Xt=Yt.exists,rt=Yt.setDefaultNamespace,Rt=Yt.hasLoadedNamespace,rn=Yt.loadNamespaces,sn=Yt.loadLanguages;const Jn=Yt},95583:(C,c,t)=>{"use strict";t.d(c,{QE:()=>je,Vk:()=>F,ZP:()=>ut,aS:()=>tt,mv:()=>s,o$:()=>u,pV:()=>pe,vI:()=>ce});function i(Ne){for(var mt=arguments.length,bt=Array(mt>1?mt-1:0),Gt=1;Gt<mt;Gt++)bt[Gt-1]=arguments[Gt];if(!1)var hn,Yt;throw Error("[Immer] minified error nr: "+Ne+(bt.length?" "+bt.map(function(Bt){return"'"+Bt+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function s(Ne){return!!Ne&&!!Ne[Re]}function u(Ne){var mt;return!!Ne&&(function(bt){if(!bt||typeof bt!="object")return!1;var Gt=Object.getPrototypeOf(bt);if(Gt===null)return!0;var hn=Object.hasOwnProperty.call(Gt,"constructor")&&Gt.constructor;return hn===Object||typeof hn=="function"&&Function.toString.call(hn)===ve}(Ne)||Array.isArray(Ne)||!!Ne[nt]||!!(!((mt=Ne.constructor)===null||mt===void 0)&&mt[nt])||y(Ne)||b(Ne))}function v(Ne){return s(Ne)||i(23,Ne),Ne[Re].t}function l(Ne,mt,bt){bt===void 0&&(bt=!1),h(Ne)===0?(bt?Object.keys:Me)(Ne).forEach(function(Gt){bt&&typeof Gt=="symbol"||mt(Gt,Ne[Gt],Ne)}):Ne.forEach(function(Gt,hn){return mt(hn,Gt,Ne)})}function h(Ne){var mt=Ne[Re];return mt?mt.i>3?mt.i-4:mt.i:Array.isArray(Ne)?1:y(Ne)?2:b(Ne)?3:0}function p(Ne,mt){return h(Ne)===2?Ne.has(mt):Object.prototype.hasOwnProperty.call(Ne,mt)}function d(Ne,mt){return h(Ne)===2?Ne.get(mt):Ne[mt]}function f(Ne,mt,bt){var Gt=h(Ne);Gt===2?Ne.set(mt,bt):Gt===3?(Ne.delete(mt),Ne.add(bt)):Ne[mt]=bt}function g(Ne,mt){return Ne===mt?Ne!==0||1/Ne==1/mt:Ne!=Ne&&mt!=mt}function y(Ne){return _e&&Ne instanceof Map}function b(Ne){return we&&Ne instanceof Set}function E(Ne){return Ne.o||Ne.t}function S(Ne){if(Array.isArray(Ne))return Array.prototype.slice.call(Ne);var mt=Ye(Ne);delete mt[Re];for(var bt=Me(mt),Gt=0;Gt<bt.length;Gt++){var hn=bt[Gt],Yt=mt[hn];Yt.writable===!1&&(Yt.writable=!0,Yt.configurable=!0),(Yt.get||Yt.set)&&(mt[hn]={configurable:!0,writable:!0,enumerable:Yt.enumerable,value:Ne[hn]})}return Object.create(Object.getPrototypeOf(Ne),mt)}function w(Ne,mt){return mt===void 0&&(mt=!1),P(Ne)||s(Ne)||!u(Ne)||(h(Ne)>1&&(Ne.set=Ne.add=Ne.clear=Ne.delete=x),Object.freeze(Ne),mt&&l(Ne,function(bt,Gt){return w(Gt,!0)},!0)),Ne}function x(){i(2)}function P(Ne){return Ne==null||typeof Ne!="object"||Object.isFrozen(Ne)}function R(Ne){var mt=qe[Ne];return mt||i(18,Ne),mt}function T(Ne,mt){qe[Ne]||(qe[Ne]=mt)}function A(){return he}function I(Ne,mt){mt&&(R("Patches"),Ne.u=[],Ne.s=[],Ne.v=mt)}function N(Ne){K(Ne),Ne.p.forEach(W),Ne.p=null}function K(Ne){Ne===he&&(he=Ne.l)}function _(Ne){return he={p:[],l:he,h:Ne,m:!0,_:0}}function W(Ne){var mt=Ne[Re];mt.i===0||mt.i===1?mt.j():mt.O=!0}function j(Ne,mt){mt._=mt.p.length;var bt=mt.p[0],Gt=Ne!==void 0&&Ne!==bt;return mt.h.g||R("ES5").S(mt,Ne,Gt),Gt?(bt[Re].P&&(N(mt),i(4)),u(Ne)&&(Ne=re(mt,Ne),mt.l||Z(mt,Ne)),mt.u&&R("Patches").M(bt[Re].t,Ne,mt.u,mt.s)):Ne=re(mt,bt,[]),N(mt),mt.u&&mt.v(mt.u,mt.s),Ne!==ht?Ne:void 0}function re(Ne,mt,bt){if(P(mt))return mt;var Gt=mt[Re];if(!Gt)return l(mt,function(Yt,Bt){return X(Ne,Gt,mt,Yt,Bt,bt)},!0),mt;if(Gt.A!==Ne)return mt;if(!Gt.P)return Z(Ne,Gt.t,!0),Gt.t;if(!Gt.I){Gt.I=!0,Gt.A._--;var hn=Gt.i===4||Gt.i===5?Gt.o=S(Gt.k):Gt.o;l(Gt.i===3?new Set(hn):hn,function(Yt,Bt){return X(Ne,Gt,hn,Yt,Bt,bt)}),Z(Ne,hn,!1),bt&&Ne.u&&R("Patches").R(Gt,bt,Ne.u,Ne.s)}return Gt.o}function X(Ne,mt,bt,Gt,hn,Yt){if(s(hn)){var Bt=re(Ne,hn,Yt&&mt&&mt.i!==3&&!p(mt.D,Gt)?Yt.concat(Gt):void 0);if(f(bt,Gt,Bt),!s(Bt))return;Ne.m=!1}if(u(hn)&&!P(hn)){if(!Ne.h.F&&Ne._<1)return;re(Ne,hn),mt&&mt.A.l||Z(Ne,hn)}}function Z(Ne,mt,bt){bt===void 0&&(bt=!1),Ne.h.F&&Ne.m&&w(mt,bt)}function J(Ne,mt){var bt=Ne[Re];return(bt?E(bt):Ne)[mt]}function q(Ne,mt){if(mt in Ne)for(var bt=Object.getPrototypeOf(Ne);bt;){var Gt=Object.getOwnPropertyDescriptor(bt,mt);if(Gt)return Gt;bt=Object.getPrototypeOf(bt)}}function L(Ne){Ne.P||(Ne.P=!0,Ne.l&&L(Ne.l))}function $(Ne){Ne.o||(Ne.o=S(Ne.t))}function k(Ne,mt,bt){var Gt=y(mt)?R("MapSet").N(mt,bt):b(mt)?R("MapSet").T(mt,bt):Ne.g?function(hn,Yt){var Bt=Array.isArray(hn),Lt={i:Bt?1:0,A:Yt?Yt.A:A(),P:!1,I:!1,D:{},l:Yt,t:hn,k:null,o:null,j:null,C:!1},zt=Lt,Kt=At;Bt&&(zt=[Lt],Kt=It);var vt=Proxy.revocable(zt,Kt),Ve=vt.revoke,lt=vt.proxy;return Lt.k=lt,Lt.j=Ve,lt}(mt,bt):R("ES5").J(mt,bt);return(bt?bt.A:A()).p.push(Gt),Gt}function F(Ne){return s(Ne)||i(22,Ne),function mt(bt){if(!u(bt))return bt;var Gt,hn=bt[Re],Yt=h(bt);if(hn){if(!hn.P&&(hn.i<4||!R("ES5").K(hn)))return hn.t;hn.I=!0,Gt=V(bt,Yt),hn.I=!1}else Gt=V(bt,Yt);return l(Gt,function(Bt,Lt){hn&&d(hn.t,Bt)===Lt||f(Gt,Bt,mt(Lt))}),Yt===3?new Set(Gt):Gt}(Ne)}function V(Ne,mt){switch(mt){case 2:return new Map(Ne);case 3:return Array.from(Ne)}return S(Ne)}function pe(){function Ne(Bt,Lt){var zt=Yt[Bt];return zt?zt.enumerable=Lt:Yt[Bt]=zt={configurable:!0,enumerable:Lt,get:function(){var Kt=this[Re];return At.get(Kt,Bt)},set:function(Kt){var vt=this[Re];At.set(vt,Bt,Kt)}},zt}function mt(Bt){for(var Lt=Bt.length-1;Lt>=0;Lt--){var zt=Bt[Lt][Re];if(!zt.P)switch(zt.i){case 5:Gt(zt)&&L(zt);break;case 4:bt(zt)&&L(zt)}}}function bt(Bt){for(var Lt=Bt.t,zt=Bt.k,Kt=Me(zt),vt=Kt.length-1;vt>=0;vt--){var Ve=Kt[vt];if(Ve!==Re){var lt=Lt[Ve];if(lt===void 0&&!p(Lt,Ve))return!0;var at=zt[Ve],Xt=at&&at[Re];if(Xt?Xt.t!==lt:!g(at,lt))return!0}}var rt=!!Lt[Re];return Kt.length!==Me(Lt).length+(rt?0:1)}function Gt(Bt){var Lt=Bt.k;if(Lt.length!==Bt.t.length)return!0;var zt=Object.getOwnPropertyDescriptor(Lt,Lt.length-1);if(zt&&!zt.get)return!0;for(var Kt=0;Kt<Lt.length;Kt++)if(!Lt.hasOwnProperty(Kt))return!0;return!1}function hn(Bt){Bt.O&&i(3,JSON.stringify(E(Bt)))}var Yt={};T("ES5",{J:function(Bt,Lt){var zt=Array.isArray(Bt),Kt=function(Ve,lt){if(Ve){for(var at=Array(lt.length),Xt=0;Xt<lt.length;Xt++)Object.defineProperty(at,""+Xt,Ne(Xt,!0));return at}var rt=Ye(lt);delete rt[Re];for(var Rt=Me(rt),rn=0;rn<Rt.length;rn++){var sn=Rt[rn];rt[sn]=Ne(sn,Ve||!!rt[sn].enumerable)}return Object.create(Object.getPrototypeOf(lt),rt)}(zt,Bt),vt={i:zt?5:4,A:Lt?Lt.A:A(),P:!1,I:!1,D:{},l:Lt,t:Bt,k:Kt,o:null,O:!1,C:!1};return Object.defineProperty(Kt,Re,{value:vt,writable:!0}),Kt},S:function(Bt,Lt,zt){zt?s(Lt)&&Lt[Re].A===Bt&&mt(Bt.p):(Bt.u&&function Kt(vt){if(vt&&typeof vt=="object"){var Ve=vt[Re];if(Ve){var lt=Ve.t,at=Ve.k,Xt=Ve.D,rt=Ve.i;if(rt===4)l(at,function(ze){ze!==Re&&(lt[ze]!==void 0||p(lt,ze)?Xt[ze]||Kt(at[ze]):(Xt[ze]=!0,L(Ve)))}),l(lt,function(ze){at[ze]!==void 0||p(at,ze)||(Xt[ze]=!1,L(Ve))});else if(rt===5){if(Gt(Ve)&&(L(Ve),Xt.length=!0),at.length<lt.length)for(var Rt=at.length;Rt<lt.length;Rt++)Xt[Rt]=!1;else for(var rn=lt.length;rn<at.length;rn++)Xt[rn]=!0;for(var sn=Math.min(at.length,lt.length),Jn=0;Jn<sn;Jn++)at.hasOwnProperty(Jn)||(Xt[Jn]=!0),Xt[Jn]===void 0&&Kt(at[Jn])}}}}(Bt.p[0]),mt(Bt.p))},K:function(Bt){return Bt.i===4?bt(Bt):Gt(Bt)}})}function ce(){function Ne(Gt){if(!u(Gt))return Gt;if(Array.isArray(Gt))return Gt.map(Ne);if(y(Gt))return new Map(Array.from(Gt.entries()).map(function(Bt){return[Bt[0],Ne(Bt[1])]}));if(b(Gt))return new Set(Array.from(Gt).map(Ne));var hn=Object.create(Object.getPrototypeOf(Gt));for(var Yt in Gt)hn[Yt]=Ne(Gt[Yt]);return p(Gt,nt)&&(hn[nt]=Gt[nt]),hn}function mt(Gt){return s(Gt)?Ne(Gt):Gt}var bt="add";T("Patches",{$:function(Gt,hn){return hn.forEach(function(Yt){for(var Bt=Yt.path,Lt=Yt.op,zt=Gt,Kt=0;Kt<Bt.length-1;Kt++){var vt=h(zt),Ve=""+Bt[Kt];vt!==0&&vt!==1||Ve!=="__proto__"&&Ve!=="constructor"||i(24),typeof zt=="function"&&Ve==="prototype"&&i(24),typeof(zt=d(zt,Ve))!="object"&&i(15,Bt.join("/"))}var lt=h(zt),at=Ne(Yt.value),Xt=Bt[Bt.length-1];switch(Lt){case"replace":switch(lt){case 2:return zt.set(Xt,at);case 3:i(16);default:return zt[Xt]=at}case bt:switch(lt){case 1:return Xt==="-"?zt.push(at):zt.splice(Xt,0,at);case 2:return zt.set(Xt,at);case 3:return zt.add(at);default:return zt[Xt]=at}case"remove":switch(lt){case 1:return zt.splice(Xt,1);case 2:return zt.delete(Xt);case 3:return zt.delete(Yt.value);default:return delete zt[Xt]}default:i(17,Lt)}}),Gt},R:function(Gt,hn,Yt,Bt){switch(Gt.i){case 0:case 4:case 2:return function(Lt,zt,Kt,vt){var Ve=Lt.t,lt=Lt.o;l(Lt.D,function(at,Xt){var rt=d(Ve,at),Rt=d(lt,at),rn=Xt?p(Ve,at)?"replace":bt:"remove";if(rt!==Rt||rn!=="replace"){var sn=zt.concat(at);Kt.push(rn==="remove"?{op:rn,path:sn}:{op:rn,path:sn,value:Rt}),vt.push(rn===bt?{op:"remove",path:sn}:rn==="remove"?{op:bt,path:sn,value:mt(rt)}:{op:"replace",path:sn,value:mt(rt)})}})}(Gt,hn,Yt,Bt);case 5:case 1:return function(Lt,zt,Kt,vt){var Ve=Lt.t,lt=Lt.D,at=Lt.o;if(at.length<Ve.length){var Xt=[at,Ve];Ve=Xt[0],at=Xt[1];var rt=[vt,Kt];Kt=rt[0],vt=rt[1]}for(var Rt=0;Rt<Ve.length;Rt++)if(lt[Rt]&&at[Rt]!==Ve[Rt]){var rn=zt.concat([Rt]);Kt.push({op:"replace",path:rn,value:mt(at[Rt])}),vt.push({op:"replace",path:rn,value:mt(Ve[Rt])})}for(var sn=Ve.length;sn<at.length;sn++){var Jn=zt.concat([sn]);Kt.push({op:bt,path:Jn,value:mt(at[sn])})}Ve.length<at.length&&vt.push({op:"replace",path:zt.concat(["length"]),value:Ve.length})}(Gt,hn,Yt,Bt);case 3:return function(Lt,zt,Kt,vt){var Ve=Lt.t,lt=Lt.o,at=0;Ve.forEach(function(Xt){if(!lt.has(Xt)){var rt=zt.concat([at]);Kt.push({op:"remove",path:rt,value:Xt}),vt.unshift({op:bt,path:rt,value:Xt})}at++}),at=0,lt.forEach(function(Xt){if(!Ve.has(Xt)){var rt=zt.concat([at]);Kt.push({op:bt,path:rt,value:Xt}),vt.unshift({op:"remove",path:rt,value:Xt})}at++})}(Gt,hn,Yt,Bt)}},M:function(Gt,hn,Yt,Bt){Yt.push({op:"replace",path:[],value:hn===ht?void 0:hn}),Bt.push({op:"replace",path:[],value:Gt})}})}function G(){function Ne(Lt,zt){function Kt(){this.constructor=Lt}hn(Lt,zt),Lt.prototype=(Kt.prototype=zt.prototype,new Kt)}function mt(Lt){Lt.o||(Lt.D=new Map,Lt.o=new Map(Lt.t))}function bt(Lt){Lt.o||(Lt.o=new Set,Lt.t.forEach(function(zt){if(u(zt)){var Kt=k(Lt.A.h,zt,Lt);Lt.p.set(zt,Kt),Lt.o.add(Kt)}else Lt.o.add(zt)}))}function Gt(Lt){Lt.O&&i(3,JSON.stringify(E(Lt)))}var hn=function(Lt,zt){return(hn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Kt,vt){Kt.__proto__=vt}||function(Kt,vt){for(var Ve in vt)vt.hasOwnProperty(Ve)&&(Kt[Ve]=vt[Ve])})(Lt,zt)},Yt=function(){function Lt(Kt,vt){return this[Re]={i:2,l:vt,A:vt?vt.A:A(),P:!1,I:!1,o:void 0,D:void 0,t:Kt,k:this,C:!1,O:!1},this}Ne(Lt,Map);var zt=Lt.prototype;return Object.defineProperty(zt,"size",{get:function(){return E(this[Re]).size}}),zt.has=function(Kt){return E(this[Re]).has(Kt)},zt.set=function(Kt,vt){var Ve=this[Re];return Gt(Ve),E(Ve).has(Kt)&&E(Ve).get(Kt)===vt||(mt(Ve),L(Ve),Ve.D.set(Kt,!0),Ve.o.set(Kt,vt),Ve.D.set(Kt,!0)),this},zt.delete=function(Kt){if(!this.has(Kt))return!1;var vt=this[Re];return Gt(vt),mt(vt),L(vt),vt.t.has(Kt)?vt.D.set(Kt,!1):vt.D.delete(Kt),vt.o.delete(Kt),!0},zt.clear=function(){var Kt=this[Re];Gt(Kt),E(Kt).size&&(mt(Kt),L(Kt),Kt.D=new Map,l(Kt.t,function(vt){Kt.D.set(vt,!1)}),Kt.o.clear())},zt.forEach=function(Kt,vt){var Ve=this;E(this[Re]).forEach(function(lt,at){Kt.call(vt,Ve.get(at),at,Ve)})},zt.get=function(Kt){var vt=this[Re];Gt(vt);var Ve=E(vt).get(Kt);if(vt.I||!u(Ve)||Ve!==vt.t.get(Kt))return Ve;var lt=k(vt.A.h,Ve,vt);return mt(vt),vt.o.set(Kt,lt),lt},zt.keys=function(){return E(this[Re]).keys()},zt.values=function(){var Kt,vt=this,Ve=this.keys();return(Kt={})[ue]=function(){return vt.values()},Kt.next=function(){var lt=Ve.next();return lt.done?lt:{done:!1,value:vt.get(lt.value)}},Kt},zt.entries=function(){var Kt,vt=this,Ve=this.keys();return(Kt={})[ue]=function(){return vt.entries()},Kt.next=function(){var lt=Ve.next();if(lt.done)return lt;var at=vt.get(lt.value);return{done:!1,value:[lt.value,at]}},Kt},zt[ue]=function(){return this.entries()},Lt}(),Bt=function(){function Lt(Kt,vt){return this[Re]={i:3,l:vt,A:vt?vt.A:A(),P:!1,I:!1,o:void 0,t:Kt,k:this,p:new Map,O:!1,C:!1},this}Ne(Lt,Set);var zt=Lt.prototype;return Object.defineProperty(zt,"size",{get:function(){return E(this[Re]).size}}),zt.has=function(Kt){var vt=this[Re];return Gt(vt),vt.o?!!vt.o.has(Kt)||!(!vt.p.has(Kt)||!vt.o.has(vt.p.get(Kt))):vt.t.has(Kt)},zt.add=function(Kt){var vt=this[Re];return Gt(vt),this.has(Kt)||(bt(vt),L(vt),vt.o.add(Kt)),this},zt.delete=function(Kt){if(!this.has(Kt))return!1;var vt=this[Re];return Gt(vt),bt(vt),L(vt),vt.o.delete(Kt)||!!vt.p.has(Kt)&&vt.o.delete(vt.p.get(Kt))},zt.clear=function(){var Kt=this[Re];Gt(Kt),E(Kt).size&&(bt(Kt),L(Kt),Kt.o.clear())},zt.values=function(){var Kt=this[Re];return Gt(Kt),bt(Kt),Kt.o.values()},zt.entries=function(){var Kt=this[Re];return Gt(Kt),bt(Kt),Kt.o.entries()},zt.keys=function(){return this.values()},zt[ue]=function(){return this.values()},zt.forEach=function(Kt,vt){for(var Ve=this.values(),lt=Ve.next();!lt.done;)Kt.call(vt,lt.value,lt.value,this),lt=Ve.next()},Lt}();T("MapSet",{N:function(Lt,zt){return new Yt(Lt,zt)},T:function(Lt,zt){return new Bt(Lt,zt)}})}function te(){pe(),G(),ce()}function ie(Ne){return Ne}function fe(Ne){return Ne}var Se,he,me=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",_e=typeof Map<"u",we=typeof Set<"u",Ge=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ht=me?Symbol.for("immer-nothing"):((Se={})["immer-nothing"]=!0,Se),nt=me?Symbol.for("immer-draftable"):"__$immer_draftable",Re=me?Symbol.for("immer-state"):"__$immer_state",ue=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",ae={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(Ne){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+Ne},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(Ne){return"Cannot apply patch, path doesn't resolve: "+Ne},16:'Sets cannot have "replace" patches.',17:function(Ne){return"Unsupported patch operation: "+Ne},18:function(Ne){return"The plugin for '"+Ne+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+Ne+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(Ne){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+Ne+"'"},22:function(Ne){return"'current' expects a draft, got: "+Ne},23:function(Ne){return"'original' expects a draft, got: "+Ne},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},ve=""+Object.prototype.constructor,Me=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(Ne){return Object.getOwnPropertyNames(Ne).concat(Object.getOwnPropertySymbols(Ne))}:Object.getOwnPropertyNames,Ye=Object.getOwnPropertyDescriptors||function(Ne){var mt={};return Me(Ne).forEach(function(bt){mt[bt]=Object.getOwnPropertyDescriptor(Ne,bt)}),mt},qe={},At={get:function(Ne,mt){if(mt===Re)return Ne;var bt=E(Ne);if(!p(bt,mt))return function(hn,Yt,Bt){var Lt,zt=q(Yt,Bt);return zt?"value"in zt?zt.value:(Lt=zt.get)===null||Lt===void 0?void 0:Lt.call(hn.k):void 0}(Ne,bt,mt);var Gt=bt[mt];return Ne.I||!u(Gt)?Gt:Gt===J(Ne.t,mt)?($(Ne),Ne.o[mt]=k(Ne.A.h,Gt,Ne)):Gt},has:function(Ne,mt){return mt in E(Ne)},ownKeys:function(Ne){return Reflect.ownKeys(E(Ne))},set:function(Ne,mt,bt){var Gt=q(E(Ne),mt);if(Gt?.set)return Gt.set.call(Ne.k,bt),!0;if(!Ne.P){var hn=J(E(Ne),mt),Yt=hn?.[Re];if(Yt&&Yt.t===bt)return Ne.o[mt]=bt,Ne.D[mt]=!1,!0;if(g(bt,hn)&&(bt!==void 0||p(Ne.t,mt)))return!0;$(Ne),L(Ne)}return Ne.o[mt]===bt&&typeof bt!="number"&&(bt!==void 0||mt in Ne.o)||(Ne.o[mt]=bt,Ne.D[mt]=!0,!0)},deleteProperty:function(Ne,mt){return J(Ne.t,mt)!==void 0||mt in Ne.t?(Ne.D[mt]=!1,$(Ne),L(Ne)):delete Ne.D[mt],Ne.o&&delete Ne.o[mt],!0},getOwnPropertyDescriptor:function(Ne,mt){var bt=E(Ne),Gt=Reflect.getOwnPropertyDescriptor(bt,mt);return Gt&&{writable:!0,configurable:Ne.i!==1||mt!=="length",enumerable:Gt.enumerable,value:bt[mt]}},defineProperty:function(){i(11)},getPrototypeOf:function(Ne){return Object.getPrototypeOf(Ne.t)},setPrototypeOf:function(){i(12)}},It={};l(At,function(Ne,mt){It[Ne]=function(){return arguments[0]=arguments[0][0],mt.apply(this,arguments)}}),It.deleteProperty=function(Ne,mt){return It.set.call(this,Ne,mt,void 0)},It.set=function(Ne,mt,bt){return At.set.call(this,Ne[0],mt,bt,Ne[0])};var Ce=function(){function Ne(bt){var Gt=this;this.g=Ge,this.F=!0,this.produce=function(hn,Yt,Bt){if(typeof hn=="function"&&typeof Yt!="function"){var Lt=Yt;Yt=hn;var zt=Gt;return function(rt){var Rt=this;rt===void 0&&(rt=Lt);for(var rn=arguments.length,sn=Array(rn>1?rn-1:0),Jn=1;Jn<rn;Jn++)sn[Jn-1]=arguments[Jn];return zt.produce(rt,function(ze){var st;return(st=Yt).call.apply(st,[Rt,ze].concat(sn))})}}var Kt;if(typeof Yt!="function"&&i(6),Bt!==void 0&&typeof Bt!="function"&&i(7),u(hn)){var vt=_(Gt),Ve=k(Gt,hn,void 0),lt=!0;try{Kt=Yt(Ve),lt=!1}finally{lt?N(vt):K(vt)}return typeof Promise<"u"&&Kt instanceof Promise?Kt.then(function(rt){return I(vt,Bt),j(rt,vt)},function(rt){throw N(vt),rt}):(I(vt,Bt),j(Kt,vt))}if(!hn||typeof hn!="object"){if((Kt=Yt(hn))===void 0&&(Kt=hn),Kt===ht&&(Kt=void 0),Gt.F&&w(Kt,!0),Bt){var at=[],Xt=[];R("Patches").M(hn,Kt,at,Xt),Bt(at,Xt)}return Kt}i(21,hn)},this.produceWithPatches=function(hn,Yt){if(typeof hn=="function")return function(Kt){for(var vt=arguments.length,Ve=Array(vt>1?vt-1:0),lt=1;lt<vt;lt++)Ve[lt-1]=arguments[lt];return Gt.produceWithPatches(Kt,function(at){return hn.apply(void 0,[at].concat(Ve))})};var Bt,Lt,zt=Gt.produce(hn,Yt,function(Kt,vt){Bt=Kt,Lt=vt});return typeof Promise<"u"&&zt instanceof Promise?zt.then(function(Kt){return[Kt,Bt,Lt]}):[zt,Bt,Lt]},typeof bt?.useProxies=="boolean"&&this.setUseProxies(bt.useProxies),typeof bt?.autoFreeze=="boolean"&&this.setAutoFreeze(bt.autoFreeze)}var mt=Ne.prototype;return mt.createDraft=function(bt){u(bt)||i(8),s(bt)&&(bt=F(bt));var Gt=_(this),hn=k(this,bt,void 0);return hn[Re].C=!0,K(Gt),hn},mt.finishDraft=function(bt,Gt){var hn=bt&&bt[Re],Yt=hn.A;return I(Yt,Gt),j(void 0,Yt)},mt.setAutoFreeze=function(bt){this.F=bt},mt.setUseProxies=function(bt){bt&&!Ge&&i(20),this.g=bt},mt.applyPatches=function(bt,Gt){var hn;for(hn=Gt.length-1;hn>=0;hn--){var Yt=Gt[hn];if(Yt.path.length===0&&Yt.op==="replace"){bt=Yt.value;break}}hn>-1&&(Gt=Gt.slice(hn+1));var Bt=R("Patches").$;return s(bt)?Bt(bt,Gt):this.produce(bt,function(Lt){return Bt(Lt,Gt)})},Ne}(),Ae=new Ce,$e=Ae.produce,tt=Ae.produceWithPatches.bind(Ae),ke=Ae.setAutoFreeze.bind(Ae),Oe=Ae.setUseProxies.bind(Ae),je=Ae.applyPatches.bind(Ae),Et=Ae.createDraft.bind(Ae),ct=Ae.finishDraft.bind(Ae);const ut=$e},84084:(C,c,t)=>{"use strict";t.d(c,{z:()=>E});const i=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,s=new Set,u=typeof process=="object"&&process?process:{},v=(S,w,x,P)=>{typeof u.emitWarning=="function"?u.emitWarning(S,w,x,P):console.error(`[${x}] ${w}: ${S}`)};let l=globalThis.AbortController,h=globalThis.AbortSignal;if(typeof l>"u"){h=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(P,R){this._onabort.push(R)}},l=class{constructor(){w()}signal=new h;abort(P){if(!this.signal.aborted){this.signal.reason=P,this.signal.aborted=!0;for(const R of this.signal._onabort)R(P);this.signal.onabort?.(P)}}};let S=u.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const w=()=>{S&&(S=!1,v("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",w))}}const p=S=>!s.has(S),d=Symbol("type"),f=S=>S&&S===Math.floor(S)&&S>0&&isFinite(S),g=S=>f(S)?S<=Math.pow(2,8)?Uint8Array:S<=Math.pow(2,16)?Uint16Array:S<=Math.pow(2,32)?Uint32Array:S<=Number.MAX_SAFE_INTEGER?y:null:null;class y extends Array{constructor(w){super(w),this.fill(0)}}class b{heap;length;static#a=!1;static create(w){const x=g(w);if(!x)return[];b.#a=!0;const P=new b(w,x);return b.#a=!1,P}constructor(w,x){if(!b.#a)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new x(w),this.length=0}push(w){this.heap[this.length++]=w}pop(){return this.heap[--this.length]}}class E{#a;#l;#y;#v;#R;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#r;#p;#i;#n;#e;#c;#d;#u;#o;#g;#s;#O;#w;#m;#b;#C;#f;static unsafeExposeInternals(w){return{starts:w.#w,ttls:w.#m,sizes:w.#O,keyMap:w.#i,keyList:w.#n,valList:w.#e,next:w.#c,prev:w.#d,get head(){return w.#u},get tail(){return w.#o},free:w.#g,isBackgroundFetch:x=>w.#t(x),backgroundFetch:(x,P,R,T)=>w.#D(x,P,R,T),moveToTail:x=>w.#A(x),indexes:x=>w.#E(x),rindexes:x=>w.#S(x),isStale:x=>w.#h(x)}}get max(){return this.#a}get maxSize(){return this.#l}get calculatedSize(){return this.#p}get size(){return this.#r}get fetchMethod(){return this.#R}get dispose(){return this.#y}get disposeAfter(){return this.#v}constructor(w){const{max:x=0,ttl:P,ttlResolution:R=1,ttlAutopurge:T,updateAgeOnGet:A,updateAgeOnHas:I,allowStale:N,dispose:K,disposeAfter:_,noDisposeOnSet:W,noUpdateTTL:j,maxSize:re=0,maxEntrySize:X=0,sizeCalculation:Z,fetchMethod:J,noDeleteOnFetchRejection:q,noDeleteOnStaleGet:L,allowStaleOnFetchRejection:$,allowStaleOnFetchAbort:k,ignoreFetchAbort:F}=w;if(x!==0&&!f(x))throw new TypeError("max option must be a nonnegative integer");const V=x?g(x):Array;if(!V)throw new Error("invalid max value: "+x);if(this.#a=x,this.#l=re,this.maxEntrySize=X||this.#l,this.sizeCalculation=Z,this.sizeCalculation){if(!this.#l&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(J!==void 0&&typeof J!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#R=J,this.#C=!!J,this.#i=new Map,this.#n=new Array(x).fill(void 0),this.#e=new Array(x).fill(void 0),this.#c=new V(x),this.#d=new V(x),this.#u=0,this.#o=0,this.#g=b.create(x),this.#r=0,this.#p=0,typeof K=="function"&&(this.#y=K),typeof _=="function"?(this.#v=_,this.#s=[]):(this.#v=void 0,this.#s=void 0),this.#b=!!this.#y,this.#f=!!this.#v,this.noDisposeOnSet=!!W,this.noUpdateTTL=!!j,this.noDeleteOnFetchRejection=!!q,this.allowStaleOnFetchRejection=!!$,this.allowStaleOnFetchAbort=!!k,this.ignoreFetchAbort=!!F,this.maxEntrySize!==0){if(this.#l!==0&&!f(this.#l))throw new TypeError("maxSize must be a positive integer if specified");if(!f(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#B()}if(this.allowStale=!!N,this.noDeleteOnStaleGet=!!L,this.updateAgeOnGet=!!A,this.updateAgeOnHas=!!I,this.ttlResolution=f(R)||R===0?R:1,this.ttlAutopurge=!!T,this.ttl=P||0,this.ttl){if(!f(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#_()}if(this.#a===0&&this.ttl===0&&this.#l===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#a&&!this.#l){const pe="LRU_CACHE_UNBOUNDED";p(pe)&&(s.add(pe),v("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",pe,E))}}getRemainingTTL(w){return this.#i.has(w)?1/0:0}#_(){const w=new y(this.#a),x=new y(this.#a);this.#m=w,this.#w=x,this.#L=(T,A,I=i.now())=>{if(x[T]=A!==0?I:0,w[T]=A,A!==0&&this.ttlAutopurge){const N=setTimeout(()=>{this.#h(T)&&this.delete(this.#n[T])},A+1);N.unref&&N.unref()}},this.#x=T=>{x[T]=w[T]!==0?i.now():0},this.#P=(T,A)=>{if(w[A]){const I=w[A],N=x[A];T.ttl=I,T.start=N,T.now=P||R();const K=T.now-N;T.remainingTTL=I-K}};let P=0;const R=()=>{const T=i.now();if(this.ttlResolution>0){P=T;const A=setTimeout(()=>P=0,this.ttlResolution);A.unref&&A.unref()}return T};this.getRemainingTTL=T=>{const A=this.#i.get(T);if(A===void 0)return 0;const I=w[A],N=x[A];if(I===0||N===0)return 1/0;const K=(P||R())-N;return I-K},this.#h=T=>w[T]!==0&&x[T]!==0&&(P||R())-x[T]>w[T]}#x=()=>{};#P=()=>{};#L=()=>{};#h=()=>!1;#B(){const w=new y(this.#a);this.#p=0,this.#O=w,this.#T=x=>{this.#p-=w[x],w[x]=0},this.#N=(x,P,R,T)=>{if(this.#t(P))return 0;if(!f(R))if(T){if(typeof T!="function")throw new TypeError("sizeCalculation must be a function");if(R=T(P,x),!f(R))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return R},this.#M=(x,P,R)=>{if(w[x]=P,this.#l){const T=this.#l-w[x];for(;this.#p>T;)this.#I(!0)}this.#p+=w[x],R&&(R.entrySize=P,R.totalCalculatedSize=this.#p)}}#T=w=>{};#M=(w,x,P)=>{};#N=(w,x,P,R)=>{if(P||R)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#E({allowStale:w=this.allowStale}={}){if(this.#r)for(let x=this.#o;!(!this.#F(x)||((w||!this.#h(x))&&(yield x),x===this.#u));)x=this.#d[x]}*#S({allowStale:w=this.allowStale}={}){if(this.#r)for(let x=this.#u;!(!this.#F(x)||((w||!this.#h(x))&&(yield x),x===this.#o));)x=this.#c[x]}#F(w){return w!==void 0&&this.#i.get(this.#n[w])===w}*entries(){for(const w of this.#E())this.#e[w]!==void 0&&this.#n[w]!==void 0&&!this.#t(this.#e[w])&&(yield[this.#n[w],this.#e[w]])}*rentries(){for(const w of this.#S())this.#e[w]!==void 0&&this.#n[w]!==void 0&&!this.#t(this.#e[w])&&(yield[this.#n[w],this.#e[w]])}*keys(){for(const w of this.#E()){const x=this.#n[w];x!==void 0&&!this.#t(this.#e[w])&&(yield x)}}*rkeys(){for(const w of this.#S()){const x=this.#n[w];x!==void 0&&!this.#t(this.#e[w])&&(yield x)}}*values(){for(const w of this.#E())this.#e[w]!==void 0&&!this.#t(this.#e[w])&&(yield this.#e[w])}*rvalues(){for(const w of this.#S())this.#e[w]!==void 0&&!this.#t(this.#e[w])&&(yield this.#e[w])}[Symbol.iterator](){return this.entries()}find(w,x={}){for(const P of this.#E()){const R=this.#e[P],T=this.#t(R)?R.__staleWhileFetching:R;if(T!==void 0&&w(T,this.#n[P],this))return this.get(this.#n[P],x)}}forEach(w,x=this){for(const P of this.#E()){const R=this.#e[P],T=this.#t(R)?R.__staleWhileFetching:R;T!==void 0&&w.call(x,T,this.#n[P],this)}}rforEach(w,x=this){for(const P of this.#S()){const R=this.#e[P],T=this.#t(R)?R.__staleWhileFetching:R;T!==void 0&&w.call(x,T,this.#n[P],this)}}purgeStale(){let w=!1;for(const x of this.#S({allowStale:!0}))this.#h(x)&&(this.delete(this.#n[x]),w=!0);return w}dump(){const w=[];for(const x of this.#E({allowStale:!0})){const P=this.#n[x],R=this.#e[x],T=this.#t(R)?R.__staleWhileFetching:R;if(T===void 0||P===void 0)continue;const A={value:T};if(this.#m&&this.#w){A.ttl=this.#m[x];const I=i.now()-this.#w[x];A.start=Math.floor(Date.now()-I)}this.#O&&(A.size=this.#O[x]),w.unshift([P,A])}return w}load(w){this.clear();for(const[x,P]of w){if(P.start){const R=Date.now()-P.start;P.start=i.now()-R}this.set(x,P.value,P)}}set(w,x,P={}){if(x===void 0)return this.delete(w),this;const{ttl:R=this.ttl,start:T,noDisposeOnSet:A=this.noDisposeOnSet,sizeCalculation:I=this.sizeCalculation,status:N}=P;let{noUpdateTTL:K=this.noUpdateTTL}=P;const _=this.#N(w,x,P.size||0,I);if(this.maxEntrySize&&_>this.maxEntrySize)return N&&(N.set="miss",N.maxEntrySizeExceeded=!0),this.delete(w),this;let W=this.#r===0?void 0:this.#i.get(w);if(W===void 0)W=this.#r===0?this.#o:this.#g.length!==0?this.#g.pop():this.#r===this.#a?this.#I(!1):this.#r,this.#n[W]=w,this.#e[W]=x,this.#i.set(w,W),this.#c[this.#o]=W,this.#d[W]=this.#o,this.#o=W,this.#r++,this.#M(W,_,N),N&&(N.set="add"),K=!1;else{this.#A(W);const j=this.#e[W];if(x!==j){if(this.#C&&this.#t(j)?j.__abortController.abort(new Error("replaced")):A||(this.#b&&this.#y?.(j,w,"set"),this.#f&&this.#s?.push([j,w,"set"])),this.#T(W),this.#M(W,_,N),this.#e[W]=x,N){N.set="replace";const re=j&&this.#t(j)?j.__staleWhileFetching:j;re!==void 0&&(N.oldValue=re)}}else N&&(N.set="update")}if(R!==0&&!this.#m&&this.#_(),this.#m&&(K||this.#L(W,R,T),N&&this.#P(N,W)),!A&&this.#f&&this.#s){const j=this.#s;let re;for(;re=j?.shift();)this.#v?.(...re)}return this}pop(){try{for(;this.#r;){const w=this.#e[this.#u];if(this.#I(!0),this.#t(w)){if(w.__staleWhileFetching)return w.__staleWhileFetching}else if(w!==void 0)return w}}finally{if(this.#f&&this.#s){const w=this.#s;let x;for(;x=w?.shift();)this.#v?.(...x)}}}#I(w){const x=this.#u,P=this.#n[x],R=this.#e[x];return this.#C&&this.#t(R)?R.__abortController.abort(new Error("evicted")):(this.#b||this.#f)&&(this.#b&&this.#y?.(R,P,"evict"),this.#f&&this.#s?.push([R,P,"evict"])),this.#T(x),w&&(this.#n[x]=void 0,this.#e[x]=void 0,this.#g.push(x)),this.#r===1?(this.#u=this.#o=0,this.#g.length=0):this.#u=this.#c[x],this.#i.delete(P),this.#r--,x}has(w,x={}){const{updateAgeOnHas:P=this.updateAgeOnHas,status:R}=x,T=this.#i.get(w);if(T!==void 0){const A=this.#e[T];if(this.#t(A)&&A.__staleWhileFetching===void 0)return!1;if(this.#h(T))R&&(R.has="stale",this.#P(R,T));else return P&&this.#x(T),R&&(R.has="hit",this.#P(R,T)),!0}else R&&(R.has="miss");return!1}peek(w,x={}){const{allowStale:P=this.allowStale}=x,R=this.#i.get(w);if(R!==void 0&&(P||!this.#h(R))){const T=this.#e[R];return this.#t(T)?T.__staleWhileFetching:T}}#D(w,x,P,R){const T=x===void 0?void 0:this.#e[x];if(this.#t(T))return T;const A=new l,{signal:I}=P;I?.addEventListener("abort",()=>A.abort(I.reason),{signal:A.signal});const N={signal:A.signal,options:P,context:R},K=(Z,J=!1)=>{const{aborted:q}=A.signal,L=P.ignoreFetchAbort&&Z!==void 0;if(P.status&&(q&&!J?(P.status.fetchAborted=!0,P.status.fetchError=A.signal.reason,L&&(P.status.fetchAbortIgnored=!0)):P.status.fetchResolved=!0),q&&!L&&!J)return W(A.signal.reason);const $=re;return this.#e[x]===re&&(Z===void 0?$.__staleWhileFetching?this.#e[x]=$.__staleWhileFetching:this.delete(w):(P.status&&(P.status.fetchUpdated=!0),this.set(w,Z,N.options))),Z},_=Z=>(P.status&&(P.status.fetchRejected=!0,P.status.fetchError=Z),W(Z)),W=Z=>{const{aborted:J}=A.signal,q=J&&P.allowStaleOnFetchAbort,L=q||P.allowStaleOnFetchRejection,$=L||P.noDeleteOnFetchRejection,k=re;if(this.#e[x]===re&&(!$||k.__staleWhileFetching===void 0?this.delete(w):q||(this.#e[x]=k.__staleWhileFetching)),L)return P.status&&k.__staleWhileFetching!==void 0&&(P.status.returnedStale=!0),k.__staleWhileFetching;if(k.__returned===k)throw Z},j=(Z,J)=>{const q=this.#R?.(w,T,N);q&&q instanceof Promise&&q.then(L=>Z(L===void 0?void 0:L),J),A.signal.addEventListener("abort",()=>{(!P.ignoreFetchAbort||P.allowStaleOnFetchAbort)&&(Z(void 0),P.allowStaleOnFetchAbort&&(Z=L=>K(L,!0)))})};P.status&&(P.status.fetchDispatched=!0);const re=new Promise(j).then(K,_),X=Object.assign(re,{__abortController:A,__staleWhileFetching:T,__returned:void 0});return x===void 0?(this.set(w,X,{...N.options,status:void 0}),x=this.#i.get(w)):this.#e[x]=X,X}#t(w){if(!this.#C)return!1;const x=w;return!!x&&x instanceof Promise&&x.hasOwnProperty("__staleWhileFetching")&&x.__abortController instanceof l}async fetch(w,x={}){const{allowStale:P=this.allowStale,updateAgeOnGet:R=this.updateAgeOnGet,noDeleteOnStaleGet:T=this.noDeleteOnStaleGet,ttl:A=this.ttl,noDisposeOnSet:I=this.noDisposeOnSet,size:N=0,sizeCalculation:K=this.sizeCalculation,noUpdateTTL:_=this.noUpdateTTL,noDeleteOnFetchRejection:W=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:j=this.allowStaleOnFetchRejection,ignoreFetchAbort:re=this.ignoreFetchAbort,allowStaleOnFetchAbort:X=this.allowStaleOnFetchAbort,context:Z,forceRefresh:J=!1,status:q,signal:L}=x;if(!this.#C)return q&&(q.fetch="get"),this.get(w,{allowStale:P,updateAgeOnGet:R,noDeleteOnStaleGet:T,status:q});const $={allowStale:P,updateAgeOnGet:R,noDeleteOnStaleGet:T,ttl:A,noDisposeOnSet:I,size:N,sizeCalculation:K,noUpdateTTL:_,noDeleteOnFetchRejection:W,allowStaleOnFetchRejection:j,allowStaleOnFetchAbort:X,ignoreFetchAbort:re,status:q,signal:L};let k=this.#i.get(w);if(k===void 0){q&&(q.fetch="miss");const F=this.#D(w,k,$,Z);return F.__returned=F}else{const F=this.#e[k];if(this.#t(F)){const te=P&&F.__staleWhileFetching!==void 0;return q&&(q.fetch="inflight",te&&(q.returnedStale=!0)),te?F.__staleWhileFetching:F.__returned=F}const V=this.#h(k);if(!J&&!V)return q&&(q.fetch="hit"),this.#A(k),R&&this.#x(k),q&&this.#P(q,k),F;const pe=this.#D(w,k,$,Z),G=pe.__staleWhileFetching!==void 0&&P;return q&&(q.fetch=V?"stale":"refresh",G&&V&&(q.returnedStale=!0)),G?pe.__staleWhileFetching:pe.__returned=pe}}get(w,x={}){const{allowStale:P=this.allowStale,updateAgeOnGet:R=this.updateAgeOnGet,noDeleteOnStaleGet:T=this.noDeleteOnStaleGet,status:A}=x,I=this.#i.get(w);if(I!==void 0){const N=this.#e[I],K=this.#t(N);return A&&this.#P(A,I),this.#h(I)?(A&&(A.get="stale"),K?(A&&P&&N.__staleWhileFetching!==void 0&&(A.returnedStale=!0),P?N.__staleWhileFetching:void 0):(T||this.delete(w),A&&P&&(A.returnedStale=!0),P?N:void 0)):(A&&(A.get="hit"),K?N.__staleWhileFetching:(this.#A(I),R&&this.#x(I),N))}else A&&(A.get="miss")}#k(w,x){this.#d[x]=w,this.#c[w]=x}#A(w){w!==this.#o&&(w===this.#u?this.#u=this.#c[w]:this.#k(this.#d[w],this.#c[w]),this.#k(this.#o,w),this.#o=w)}delete(w){let x=!1;if(this.#r!==0){const P=this.#i.get(w);if(P!==void 0)if(x=!0,this.#r===1)this.clear();else{this.#T(P);const R=this.#e[P];this.#t(R)?R.__abortController.abort(new Error("deleted")):(this.#b||this.#f)&&(this.#b&&this.#y?.(R,w,"delete"),this.#f&&this.#s?.push([R,w,"delete"])),this.#i.delete(w),this.#n[P]=void 0,this.#e[P]=void 0,P===this.#o?this.#o=this.#d[P]:P===this.#u?this.#u=this.#c[P]:(this.#c[this.#d[P]]=this.#c[P],this.#d[this.#c[P]]=this.#d[P]),this.#r--,this.#g.push(P)}}if(this.#f&&this.#s?.length){const P=this.#s;let R;for(;R=P?.shift();)this.#v?.(...R)}return x}clear(){for(const w of this.#S({allowStale:!0})){const x=this.#e[w];if(this.#t(x))x.__abortController.abort(new Error("deleted"));else{const P=this.#n[w];this.#b&&this.#y?.(x,P,"delete"),this.#f&&this.#s?.push([x,P,"delete"])}}if(this.#i.clear(),this.#e.fill(void 0),this.#n.fill(void 0),this.#m&&this.#w&&(this.#m.fill(0),this.#w.fill(0)),this.#O&&this.#O.fill(0),this.#u=0,this.#o=0,this.#g.length=0,this.#p=0,this.#r=0,this.#f&&this.#s){const w=this.#s;let x;for(;x=w?.shift();)this.#v?.(...x)}}}},18353:(C,c,t)=>{"use strict";t.d(c,{TU:()=>Se});function i(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let s=i();function u(ue){s=ue}const v=/[&<>"']/,l=new RegExp(v.source,"g"),h=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,p=new RegExp(h.source,"g"),d={"&":"&","<":"<",">":">",'"':""","'":"'"},f=ue=>d[ue];function g(ue,ae){if(ae){if(v.test(ue))return ue.replace(l,f)}else if(h.test(ue))return ue.replace(p,f);return ue}const y=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function b(ue){return ue.replace(y,(ae,ve)=>(ve=ve.toLowerCase(),ve==="colon"?":":ve.charAt(0)==="#"?ve.charAt(1)==="x"?String.fromCharCode(parseInt(ve.substring(2),16)):String.fromCharCode(+ve.substring(1)):""))}const E=/(^|[^\[])\^/g;function S(ue,ae){ue=typeof ue=="string"?ue:ue.source,ae=ae||"";const ve={replace:(Me,Ye)=>(Ye=Ye.source||Ye,Ye=Ye.replace(E,"$1"),ue=ue.replace(Me,Ye),ve),getRegex:()=>new RegExp(ue,ae)};return ve}const w=/[^\w:]/g,x=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(ue,ae,ve){if(ue){let Me;try{Me=decodeURIComponent(b(ve)).replace(w,"").toLowerCase()}catch{return null}if(Me.indexOf("javascript:")===0||Me.indexOf("vbscript:")===0||Me.indexOf("data:")===0)return null}ae&&!x.test(ve)&&(ve=N(ae,ve));try{ve=encodeURI(ve).replace(/%25/g,"%")}catch{return null}return ve}const R={},T=/^[^:]+:\/*[^/]*$/,A=/^([^:]+:)[\s\S]*$/,I=/^([^:]+:\/*[^/]*)[\s\S]*$/;function N(ue,ae){R[" "+ue]||(T.test(ue)?R[" "+ue]=ue+"/":R[" "+ue]=W(ue,"/",!0)),ue=R[" "+ue];const ve=ue.indexOf(":")===-1;return ae.substring(0,2)==="//"?ve?ae:ue.replace(A,"$1")+ae:ae.charAt(0)==="/"?ve?ae:ue.replace(I,"$1")+ae:ue+ae}const K={exec:function(){}};function _(ue,ae){const ve=ue.replace(/\|/g,(qe,At,It)=>{let Ce=!1,Ae=At;for(;--Ae>=0&&It[Ae]==="\\";)Ce=!Ce;return Ce?"|":" |"}),Me=ve.split(/ \|/);let Ye=0;if(Me[0].trim()||Me.shift(),Me.length>0&&!Me[Me.length-1].trim()&&Me.pop(),Me.length>ae)Me.splice(ae);else for(;Me.length<ae;)Me.push("");for(;Ye<Me.length;Ye++)Me[Ye]=Me[Ye].trim().replace(/\\\|/g,"|");return Me}function W(ue,ae,ve){const Me=ue.length;if(Me===0)return"";let Ye=0;for(;Ye<Me;){const qe=ue.charAt(Me-Ye-1);if(qe===ae&&!ve)Ye++;else if(qe!==ae&&ve)Ye++;else break}return ue.slice(0,Me-Ye)}function j(ue,ae){if(ue.indexOf(ae[1])===-1)return-1;const ve=ue.length;let Me=0,Ye=0;for(;Ye<ve;Ye++)if(ue[Ye]==="\\")Ye++;else if(ue[Ye]===ae[0])Me++;else if(ue[Ye]===ae[1]&&(Me--,Me<0))return Ye;return-1}function re(ue,ae){!ue||ue.silent||(ae&&console.warn("marked(): callback is deprecated since version 5.0.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/using_pro#async"),(ue.sanitize||ue.sanitizer)&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options"),(ue.highlight||ue.langPrefix!=="language-")&&console.warn("marked(): highlight and langPrefix parameters are deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-highlight."),ue.mangle&&console.warn("marked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`."),ue.baseUrl&&console.warn("marked(): baseUrl parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-base-url."),ue.smartypants&&console.warn("marked(): smartypants parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-smartypants."),ue.xhtml&&console.warn("marked(): xhtml parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-xhtml."),(ue.headerIds||ue.headerPrefix)&&console.warn("marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`."))}function X(ue,ae,ve,Me){const Ye=ae.href,qe=ae.title?g(ae.title):null,At=ue[1].replace(/\\([\[\]])/g,"$1");if(ue[0].charAt(0)!=="!"){Me.state.inLink=!0;const It={type:"link",raw:ve,href:Ye,title:qe,text:At,tokens:Me.inlineTokens(At)};return Me.state.inLink=!1,It}return{type:"image",raw:ve,href:Ye,title:qe,text:g(At)}}function Z(ue,ae){const ve=ue.match(/^(\s+)(?:```)/);if(ve===null)return ae;const Me=ve[1];return ae.split(` `).map(Ye=>{const qe=Ye.match(/^\s+/);if(qe===null)return Ye;const[At]=qe;return At.length>=Me.length?Ye.slice(Me.length):Ye}).join(` `)}class J{constructor(ae){this.options=ae||s}space(ae){const ve=this.rules.block.newline.exec(ae);if(ve&&ve[0].length>0)return{type:"space",raw:ve[0]}}code(ae){const ve=this.rules.block.code.exec(ae);if(ve){const Me=ve[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ve[0],codeBlockStyle:"indented",text:this.options.pedantic?Me:W(Me,` `)}}}fences(ae){const ve=this.rules.block.fences.exec(ae);if(ve){const Me=ve[0],Ye=Z(Me,ve[3]||"");return{type:"code",raw:Me,lang:ve[2]?ve[2].trim().replace(this.rules.inline._escapes,"$1"):ve[2],text:Ye}}}heading(ae){const ve=this.rules.block.heading.exec(ae);if(ve){let Me=ve[2].trim();if(/#$/.test(Me)){const Ye=W(Me,"#");(this.options.pedantic||!Ye||/ $/.test(Ye))&&(Me=Ye.trim())}return{type:"heading",raw:ve[0],depth:ve[1].length,text:Me,tokens:this.lexer.inline(Me)}}}hr(ae){const ve=this.rules.block.hr.exec(ae);if(ve)return{type:"hr",raw:ve[0]}}blockquote(ae){const ve=this.rules.block.blockquote.exec(ae);if(ve){const Me=ve[0].replace(/^ *>[ \t]?/gm,""),Ye=this.lexer.state.top;this.lexer.state.top=!0;const qe=this.lexer.blockTokens(Me);return this.lexer.state.top=Ye,{type:"blockquote",raw:ve[0],tokens:qe,text:Me}}}list(ae){let ve=this.rules.block.list.exec(ae);if(ve){let Me,Ye,qe,At,It,Ce,Ae,$e,tt,ke,Oe,je,Et=ve[1].trim();const ct=Et.length>1,ut={type:"list",raw:"",ordered:ct,start:ct?+Et.slice(0,-1):"",loose:!1,items:[]};Et=ct?`\\d{1,9}\\${Et.slice(-1)}`:`\\${Et}`,this.options.pedantic&&(Et=ct?Et:"[*+-]");const Ne=new RegExp(`^( {0,3}${Et})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;ae&&(je=!1,!(!(ve=Ne.exec(ae))||this.rules.block.hr.test(ae)));){if(Me=ve[0],ae=ae.substring(Me.length),$e=ve[2].split(` `,1)[0].replace(/^\t+/,bt=>" ".repeat(3*bt.length)),tt=ae.split(` `,1)[0],this.options.pedantic?(At=2,Oe=$e.trimLeft()):(At=ve[2].search(/[^ ]/),At=At>4?1:At,Oe=$e.slice(At),At+=ve[1].length),Ce=!1,!$e&&/^ *$/.test(tt)&&(Me+=tt+` `,ae=ae.substring(tt.length+1),je=!0),!je){const bt=new RegExp(`^ {0,${Math.min(3,At-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),Gt=new RegExp(`^ {0,${Math.min(3,At-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),hn=new RegExp(`^ {0,${Math.min(3,At-1)}}(?:\`\`\`|~~~)`),Yt=new RegExp(`^ {0,${Math.min(3,At-1)}}#`);for(;ae&&(ke=ae.split(` `,1)[0],tt=ke,this.options.pedantic&&(tt=tt.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(hn.test(tt)||Yt.test(tt)||bt.test(tt)||Gt.test(ae)));){if(tt.search(/[^ ]/)>=At||!tt.trim())Oe+=` `+tt.slice(At);else{if(Ce||$e.search(/[^ ]/)>=4||hn.test($e)||Yt.test($e)||Gt.test($e))break;Oe+=` `+tt}!Ce&&!tt.trim()&&(Ce=!0),Me+=ke+` `,ae=ae.substring(ke.length+1),$e=tt.slice(At)}}ut.loose||(Ae?ut.loose=!0:/\n *\n *$/.test(Me)&&(Ae=!0)),this.options.gfm&&(Ye=/^\[[ xX]\] /.exec(Oe),Ye&&(qe=Ye[0]!=="[ ] ",Oe=Oe.replace(/^\[[ xX]\] +/,""))),ut.items.push({type:"list_item",raw:Me,task:!!Ye,checked:qe,loose:!1,text:Oe}),ut.raw+=Me}ut.items[ut.items.length-1].raw=Me.trimRight(),ut.items[ut.items.length-1].text=Oe.trimRight(),ut.raw=ut.raw.trimRight();const mt=ut.items.length;for(It=0;It<mt;It++)if(this.lexer.state.top=!1,ut.items[It].tokens=this.lexer.blockTokens(ut.items[It].text,[]),!ut.loose){const bt=ut.items[It].tokens.filter(hn=>hn.type==="space"),Gt=bt.length>0&&bt.some(hn=>/\n.*\n/.test(hn.raw));ut.loose=Gt}if(ut.loose)for(It=0;It<mt;It++)ut.items[It].loose=!0;return ut}}html(ae){const ve=this.rules.block.html.exec(ae);if(ve){const Me={type:"html",block:!0,raw:ve[0],pre:!this.options.sanitizer&&(ve[1]==="pre"||ve[1]==="script"||ve[1]==="style"),text:ve[0]};if(this.options.sanitize){const Ye=this.options.sanitizer?this.options.sanitizer(ve[0]):g(ve[0]);Me.type="paragraph",Me.text=Ye,Me.tokens=this.lexer.inline(Ye)}return Me}}def(ae){const ve=this.rules.block.def.exec(ae);if(ve){const Me=ve[1].toLowerCase().replace(/\s+/g," "),Ye=ve[2]?ve[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",qe=ve[3]?ve[3].substring(1,ve[3].length-1).replace(this.rules.inline._escapes,"$1"):ve[3];return{type:"def",tag:Me,raw:ve[0],href:Ye,title:qe}}}table(ae){const ve=this.rules.block.table.exec(ae);if(ve){const Me={type:"table",header:_(ve[1]).map(Ye=>({text:Ye})),align:ve[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:ve[3]&&ve[3].trim()?ve[3].replace(/\n[ \t]*$/,"").split(` `):[]};if(Me.header.length===Me.align.length){Me.raw=ve[0];let Ye=Me.align.length,qe,At,It,Ce;for(qe=0;qe<Ye;qe++)/^ *-+: *$/.test(Me.align[qe])?Me.align[qe]="right":/^ *:-+: *$/.test(Me.align[qe])?Me.align[qe]="center":/^ *:-+ *$/.test(Me.align[qe])?Me.align[qe]="left":Me.align[qe]=null;for(Ye=Me.rows.length,qe=0;qe<Ye;qe++)Me.rows[qe]=_(Me.rows[qe],Me.header.length).map(Ae=>({text:Ae}));for(Ye=Me.header.length,At=0;At<Ye;At++)Me.header[At].tokens=this.lexer.inline(Me.header[At].text);for(Ye=Me.rows.length,At=0;At<Ye;At++)for(Ce=Me.rows[At],It=0;It<Ce.length;It++)Ce[It].tokens=this.lexer.inline(Ce[It].text);return Me}}}lheading(ae){const ve=this.rules.block.lheading.exec(ae);if(ve)return{type:"heading",raw:ve[0],depth:ve[2].charAt(0)==="="?1:2,text:ve[1],tokens:this.lexer.inline(ve[1])}}paragraph(ae){const ve=this.rules.block.paragraph.exec(ae);if(ve){const Me=ve[1].charAt(ve[1].length-1)===` `?ve[1].slice(0,-1):ve[1];return{type:"paragraph",raw:ve[0],text:Me,tokens:this.lexer.inline(Me)}}}text(ae){const ve=this.rules.block.text.exec(ae);if(ve)return{type:"text",raw:ve[0],text:ve[0],tokens:this.lexer.inline(ve[0])}}escape(ae){const ve=this.rules.inline.escape.exec(ae);if(ve)return{type:"escape",raw:ve[0],text:g(ve[1])}}tag(ae){const ve=this.rules.inline.tag.exec(ae);if(ve)return!this.lexer.state.inLink&&/^<a /i.test(ve[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(ve[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(ve[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ve[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:ve[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ve[0]):g(ve[0]):ve[0]}}link(ae){const ve=this.rules.inline.link.exec(ae);if(ve){const Me=ve[2].trim();if(!this.options.pedantic&&/^</.test(Me)){if(!/>$/.test(Me))return;const At=W(Me.slice(0,-1),"\\");if((Me.length-At.length)%2===0)return}else{const At=j(ve[2],"()");if(At>-1){const Ce=(ve[0].indexOf("!")===0?5:4)+ve[1].length+At;ve[2]=ve[2].substring(0,At),ve[0]=ve[0].substring(0,Ce).trim(),ve[3]=""}}let Ye=ve[2],qe="";if(this.options.pedantic){const At=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ye);At&&(Ye=At[1],qe=At[3])}else qe=ve[3]?ve[3].slice(1,-1):"";return Ye=Ye.trim(),/^</.test(Ye)&&(this.options.pedantic&&!/>$/.test(Me)?Ye=Ye.slice(1):Ye=Ye.slice(1,-1)),X(ve,{href:Ye&&Ye.replace(this.rules.inline._escapes,"$1"),title:qe&&qe.replace(this.rules.inline._escapes,"$1")},ve[0],this.lexer)}}reflink(ae,ve){let Me;if((Me=this.rules.inline.reflink.exec(ae))||(Me=this.rules.inline.nolink.exec(ae))){let Ye=(Me[2]||Me[1]).replace(/\s+/g," ");if(Ye=ve[Ye.toLowerCase()],!Ye){const qe=Me[0].charAt(0);return{type:"text",raw:qe,text:qe}}return X(Me,Ye,Me[0],this.lexer)}}emStrong(ae,ve,Me=""){let Ye=this.rules.inline.emStrong.lDelim.exec(ae);if(!Ye||Ye[3]&&Me.match(/[\p{L}\p{N}]/u))return;if(!(Ye[1]||Ye[2]||"")||!Me||this.rules.inline.punctuation.exec(Me)){const At=Ye[0].length-1;let It,Ce,Ae=At,$e=0;const tt=Ye[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(tt.lastIndex=0,ve=ve.slice(-1*ae.length+At);(Ye=tt.exec(ve))!=null;){if(It=Ye[1]||Ye[2]||Ye[3]||Ye[4]||Ye[5]||Ye[6],!It)continue;if(Ce=It.length,Ye[3]||Ye[4]){Ae+=Ce;continue}else if((Ye[5]||Ye[6])&&At%3&&!((At+Ce)%3)){$e+=Ce;continue}if(Ae-=Ce,Ae>0)continue;Ce=Math.min(Ce,Ce+Ae+$e);const ke=ae.slice(0,At+Ye.index+Ce+1);if(Math.min(At,Ce)%2){const je=ke.slice(1,-1);return{type:"em",raw:ke,text:je,tokens:this.lexer.inlineTokens(je)}}const Oe=ke.slice(2,-2);return{type:"strong",raw:ke,text:Oe,tokens:this.lexer.inlineTokens(Oe)}}}}codespan(ae){const ve=this.rules.inline.code.exec(ae);if(ve){let Me=ve[2].replace(/\n/g," ");const Ye=/[^ ]/.test(Me),qe=/^ /.test(Me)&&/ $/.test(Me);return Ye&&qe&&(Me=Me.substring(1,Me.length-1)),Me=g(Me,!0),{type:"codespan",raw:ve[0],text:Me}}}br(ae){const ve=this.rules.inline.br.exec(ae);if(ve)return{type:"br",raw:ve[0]}}del(ae){const ve=this.rules.inline.del.exec(ae);if(ve)return{type:"del",raw:ve[0],text:ve[2],tokens:this.lexer.inlineTokens(ve[2])}}autolink(ae,ve){const Me=this.rules.inline.autolink.exec(ae);if(Me){let Ye,qe;return Me[2]==="@"?(Ye=g(this.options.mangle?ve(Me[1]):Me[1]),qe="mailto:"+Ye):(Ye=g(Me[1]),qe=Ye),{type:"link",raw:Me[0],text:Ye,href:qe,tokens:[{type:"text",raw:Ye,text:Ye}]}}}url(ae,ve){let Me;if(Me=this.rules.inline.url.exec(ae)){let Ye,qe;if(Me[2]==="@")Ye=g(this.options.mangle?ve(Me[0]):Me[0]),qe="mailto:"+Ye;else{let At;do At=Me[0],Me[0]=this.rules.inline._backpedal.exec(Me[0])[0];while(At!==Me[0]);Ye=g(Me[0]),Me[1]==="www."?qe="http://"+Me[0]:qe=Me[0]}return{type:"link",raw:Me[0],text:Ye,href:qe,tokens:[{type:"text",raw:Ye,text:Ye}]}}}inlineText(ae,ve){const Me=this.rules.inline.text.exec(ae);if(Me){let Ye;return this.lexer.state.inRawBlock?Ye=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Me[0]):g(Me[0]):Me[0]:Ye=g(this.options.smartypants?ve(Me[0]):Me[0]),{type:"text",raw:Me[0],text:Ye}}}}const q={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:K,lheading:/^((?:(?!^bull ).|\n(?!\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};q._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,q._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,q.def=S(q.def).replace("label",q._label).replace("title",q._title).getRegex(),q.bullet=/(?:[*+-]|\d{1,9}[.)])/,q.listItemStart=S(/^( *)(bull) */).replace("bull",q.bullet).getRegex(),q.list=S(q.list).replace(/bull/g,q.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+q.def.source+")").getRegex(),q._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",q._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,q.html=S(q.html,"i").replace("comment",q._comment).replace("tag",q._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),q.lheading=S(q.lheading).replace(/bull/g,q.bullet).getRegex(),q.paragraph=S(q._paragraph).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q._tag).getRegex(),q.blockquote=S(q.blockquote).replace("paragraph",q.paragraph).getRegex(),q.normal={...q},q.gfm={...q.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},q.gfm.table=S(q.gfm.table).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q._tag).getRegex(),q.gfm.paragraph=S(q._paragraph).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",q.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q._tag).getRegex(),q.pedantic={...q.normal,html:S(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",q._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:K,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:S(q.normal._paragraph).replace("hr",q.hr).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",q.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const L={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:K,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:K,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^((?![*_])[\spunctuation])/};L._punctuation="\\p{P}$+<=>`^|~",L.punctuation=S(L.punctuation,"u").replace(/punctuation/g,L._punctuation).getRegex(),L.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,L.anyPunctuation=/\\[punct]/g,L._escapes=/\\([punct])/g,L._comment=S(q._comment).replace("(?:-->|$)","-->").getRegex(),L.emStrong.lDelim=S(L.emStrong.lDelim,"u").replace(/punct/g,L._punctuation).getRegex(),L.emStrong.rDelimAst=S(L.emStrong.rDelimAst,"gu").replace(/punct/g,L._punctuation).getRegex(),L.emStrong.rDelimUnd=S(L.emStrong.rDelimUnd,"gu").replace(/punct/g,L._punctuation).getRegex(),L.anyPunctuation=S(L.anyPunctuation,"gu").replace(/punct/g,L._punctuation).getRegex(),L._escapes=S(L._escapes,"gu").replace(/punct/g,L._punctuation).getRegex(),L._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,L._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,L.autolink=S(L.autolink).replace("scheme",L._scheme).replace("email",L._email).getRegex(),L._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,L.tag=S(L.tag).replace("comment",L._comment).replace("attribute",L._attribute).getRegex(),L._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,L._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,L._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,L.link=S(L.link).replace("label",L._label).replace("href",L._href).replace("title",L._title).getRegex(),L.reflink=S(L.reflink).replace("label",L._label).replace("ref",q._label).getRegex(),L.nolink=S(L.nolink).replace("ref",q._label).getRegex(),L.reflinkSearch=S(L.reflinkSearch,"g").replace("reflink",L.reflink).replace("nolink",L.nolink).getRegex(),L.normal={...L},L.pedantic={...L.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:S(/^!?\[(label)\]\((.*?)\)/).replace("label",L._label).getRegex(),reflink:S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",L._label).getRegex()},L.gfm={...L.normal,escape:S(L.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},L.gfm.url=S(L.gfm.url,"i").replace("email",L.gfm._extended_email).getRegex(),L.breaks={...L.gfm,br:S(L.br).replace("{2,}","*").getRegex(),text:S(L.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function $(ue){return ue.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function k(ue){let ae="",ve,Me;const Ye=ue.length;for(ve=0;ve<Ye;ve++)Me=ue.charCodeAt(ve),Math.random()>.5&&(Me="x"+Me.toString(16)),ae+="&#"+Me+";";return ae}class F{constructor(ae){this.tokens=[],this.tokens.links=Object.create(null),this.options=ae||s,this.options.tokenizer=this.options.tokenizer||new J,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const ve={block:q.normal,inline:L.normal};this.options.pedantic?(ve.block=q.pedantic,ve.inline=L.pedantic):this.options.gfm&&(ve.block=q.gfm,this.options.breaks?ve.inline=L.breaks:ve.inline=L.gfm),this.tokenizer.rules=ve}static get rules(){return{block:q,inline:L}}static lex(ae,ve){return new F(ve).lex(ae)}static lexInline(ae,ve){return new F(ve).inlineTokens(ae)}lex(ae){ae=ae.replace(/\r\n|\r/g,` `),this.blockTokens(ae,this.tokens);let ve;for(;ve=this.inlineQueue.shift();)this.inlineTokens(ve.src,ve.tokens);return this.tokens}blockTokens(ae,ve=[]){this.options.pedantic?ae=ae.replace(/\t/g," ").replace(/^ +$/gm,""):ae=ae.replace(/^( *)(\t+)/gm,(It,Ce,Ae)=>Ce+" ".repeat(Ae.length));let Me,Ye,qe,At;for(;ae;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(It=>(Me=It.call({lexer:this},ae,ve))?(ae=ae.substring(Me.raw.length),ve.push(Me),!0):!1))){if(Me=this.tokenizer.space(ae)){ae=ae.substring(Me.raw.length),Me.raw.length===1&&ve.length>0?ve[ve.length-1].raw+=` `:ve.push(Me);continue}if(Me=this.tokenizer.code(ae)){ae=ae.substring(Me.raw.length),Ye=ve[ve.length-1],Ye&&(Ye.type==="paragraph"||Ye.type==="text")?(Ye.raw+=` `+Me.raw,Ye.text+=` `+Me.text,this.inlineQueue[this.inlineQueue.length-1].src=Ye.text):ve.push(Me);continue}if(Me=this.tokenizer.fences(ae)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(Me=this.tokenizer.heading(ae)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(Me=this.tokenizer.hr(ae)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(Me=this.tokenizer.blockquote(ae)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(Me=this.tokenizer.list(ae)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(Me=this.tokenizer.html(ae)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(Me=this.tokenizer.def(ae)){ae=ae.substring(Me.raw.length),Ye=ve[ve.length-1],Ye&&(Ye.type==="paragraph"||Ye.type==="text")?(Ye.raw+=` `+Me.raw,Ye.text+=` `+Me.raw,this.inlineQueue[this.inlineQueue.length-1].src=Ye.text):this.tokens.links[Me.tag]||(this.tokens.links[Me.tag]={href:Me.href,title:Me.title});continue}if(Me=this.tokenizer.table(ae)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(Me=this.tokenizer.lheading(ae)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(qe=ae,this.options.extensions&&this.options.extensions.startBlock){let It=1/0;const Ce=ae.slice(1);let Ae;this.options.extensions.startBlock.forEach(function($e){Ae=$e.call({lexer:this},Ce),typeof Ae=="number"&&Ae>=0&&(It=Math.min(It,Ae))}),It<1/0&&It>=0&&(qe=ae.substring(0,It+1))}if(this.state.top&&(Me=this.tokenizer.paragraph(qe))){Ye=ve[ve.length-1],At&&Ye.type==="paragraph"?(Ye.raw+=` `+Me.raw,Ye.text+=` `+Me.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Ye.text):ve.push(Me),At=qe.length!==ae.length,ae=ae.substring(Me.raw.length);continue}if(Me=this.tokenizer.text(ae)){ae=ae.substring(Me.raw.length),Ye=ve[ve.length-1],Ye&&Ye.type==="text"?(Ye.raw+=` `+Me.raw,Ye.text+=` `+Me.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Ye.text):ve.push(Me);continue}if(ae){const It="Infinite loop on byte: "+ae.charCodeAt(0);if(this.options.silent){console.error(It);break}else throw new Error(It)}}return this.state.top=!0,ve}inline(ae,ve=[]){return this.inlineQueue.push({src:ae,tokens:ve}),ve}inlineTokens(ae,ve=[]){let Me,Ye,qe,At=ae,It,Ce,Ae;if(this.tokens.links){const $e=Object.keys(this.tokens.links);if($e.length>0)for(;(It=this.tokenizer.rules.inline.reflinkSearch.exec(At))!=null;)$e.includes(It[0].slice(It[0].lastIndexOf("[")+1,-1))&&(At=At.slice(0,It.index)+"["+"a".repeat(It[0].length-2)+"]"+At.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(It=this.tokenizer.rules.inline.blockSkip.exec(At))!=null;)At=At.slice(0,It.index)+"["+"a".repeat(It[0].length-2)+"]"+At.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(It=this.tokenizer.rules.inline.anyPunctuation.exec(At))!=null;)At=At.slice(0,It.index)+"++"+At.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;ae;)if(Ce||(Ae=""),Ce=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some($e=>(Me=$e.call({lexer:this},ae,ve))?(ae=ae.substring(Me.raw.length),ve.push(Me),!0):!1))){if(Me=this.tokenizer.escape(ae)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(Me=this.tokenizer.tag(ae)){ae=ae.substring(Me.raw.length),Ye=ve[ve.length-1],Ye&&Me.type==="text"&&Ye.type==="text"?(Ye.raw+=Me.raw,Ye.text+=Me.text):ve.push(Me);continue}if(Me=this.tokenizer.link(ae)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(Me=this.tokenizer.reflink(ae,this.tokens.links)){ae=ae.substring(Me.raw.length),Ye=ve[ve.length-1],Ye&&Me.type==="text"&&Ye.type==="text"?(Ye.raw+=Me.raw,Ye.text+=Me.text):ve.push(Me);continue}if(Me=this.tokenizer.emStrong(ae,At,Ae)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(Me=this.tokenizer.codespan(ae)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(Me=this.tokenizer.br(ae)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(Me=this.tokenizer.del(ae)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(Me=this.tokenizer.autolink(ae,k)){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(!this.state.inLink&&(Me=this.tokenizer.url(ae,k))){ae=ae.substring(Me.raw.length),ve.push(Me);continue}if(qe=ae,this.options.extensions&&this.options.extensions.startInline){let $e=1/0;const tt=ae.slice(1);let ke;this.options.extensions.startInline.forEach(function(Oe){ke=Oe.call({lexer:this},tt),typeof ke=="number"&&ke>=0&&($e=Math.min($e,ke))}),$e<1/0&&$e>=0&&(qe=ae.substring(0,$e+1))}if(Me=this.tokenizer.inlineText(qe,$)){ae=ae.substring(Me.raw.length),Me.raw.slice(-1)!=="_"&&(Ae=Me.raw.slice(-1)),Ce=!0,Ye=ve[ve.length-1],Ye&&Ye.type==="text"?(Ye.raw+=Me.raw,Ye.text+=Me.text):ve.push(Me);continue}if(ae){const $e="Infinite loop on byte: "+ae.charCodeAt(0);if(this.options.silent){console.error($e);break}else throw new Error($e)}}return ve}}class V{constructor(ae){this.options=ae||s}code(ae,ve,Me){const Ye=(ve||"").match(/\S*/)[0];if(this.options.highlight){const qe=this.options.highlight(ae,Ye);qe!=null&&qe!==ae&&(Me=!0,ae=qe)}return ae=ae.replace(/\n$/,"")+` `,Ye?'<pre><code class="'+this.options.langPrefix+g(Ye)+'">'+(Me?ae:g(ae,!0))+`</code></pre> `:"<pre><code>"+(Me?ae:g(ae,!0))+`</code></pre> `}blockquote(ae){return`<blockquote> ${ae}</blockquote> `}html(ae,ve){return ae}heading(ae,ve,Me,Ye){if(this.options.headerIds){const qe=this.options.headerPrefix+Ye.slug(Me);return`<h${ve} id="${qe}">${ae}</h${ve}> `}return`<h${ve}>${ae}</h${ve}> `}hr(){return this.options.xhtml?`<hr/> `:`<hr> `}list(ae,ve,Me){const Ye=ve?"ol":"ul",qe=ve&&Me!==1?' start="'+Me+'"':"";return"<"+Ye+qe+`> `+ae+"</"+Ye+`> `}listitem(ae){return`<li>${ae}</li> `}checkbox(ae){return"<input "+(ae?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(ae){return`<p>${ae}</p> `}table(ae,ve){return ve&&(ve=`<tbody>${ve}</tbody>`),`<table> <thead> `+ae+`</thead> `+ve+`</table> `}tablerow(ae){return`<tr> ${ae}</tr> `}tablecell(ae,ve){const Me=ve.header?"th":"td";return(ve.align?`<${Me} align="${ve.align}">`:`<${Me}>`)+ae+`</${Me}> `}strong(ae){return`<strong>${ae}</strong>`}em(ae){return`<em>${ae}</em>`}codespan(ae){return`<code>${ae}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(ae){return`<del>${ae}</del>`}link(ae,ve,Me){if(ae=P(this.options.sanitize,this.options.baseUrl,ae),ae===null)return Me;let Ye='<a href="'+ae+'"';return ve&&(Ye+=' title="'+ve+'"'),Ye+=">"+Me+"</a>",Ye}image(ae,ve,Me){if(ae=P(this.options.sanitize,this.options.baseUrl,ae),ae===null)return Me;let Ye=`<img src="${ae}" alt="${Me}"`;return ve&&(Ye+=` title="${ve}"`),Ye+=this.options.xhtml?"/>":">",Ye}text(ae){return ae}}class pe{strong(ae){return ae}em(ae){return ae}codespan(ae){return ae}del(ae){return ae}html(ae){return ae}text(ae){return ae}link(ae,ve,Me){return""+Me}image(ae,ve,Me){return""+Me}br(){return""}}class ce{constructor(){this.seen={}}serialize(ae){return ae.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(ae,ve){let Me=ae,Ye=0;if(this.seen.hasOwnProperty(Me)){Ye=this.seen[ae];do Ye++,Me=ae+"-"+Ye;while(this.seen.hasOwnProperty(Me))}return ve||(this.seen[ae]=Ye,this.seen[Me]=0),Me}slug(ae,ve={}){const Me=this.serialize(ae);return this.getNextSafeSlug(Me,ve.dryrun)}}class G{constructor(ae){this.options=ae||s,this.options.renderer=this.options.renderer||new V,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new pe,this.slugger=new ce}static parse(ae,ve){return new G(ve).parse(ae)}static parseInline(ae,ve){return new G(ve).parseInline(ae)}parse(ae,ve=!0){let Me="",Ye,qe,At,It,Ce,Ae,$e,tt,ke,Oe,je,Et,ct,ut,Ne,mt,bt,Gt,hn;const Yt=ae.length;for(Ye=0;Ye<Yt;Ye++){if(Oe=ae[Ye],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Oe.type]&&(hn=this.options.extensions.renderers[Oe.type].call({parser:this},Oe),hn!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(Oe.type))){Me+=hn||"";continue}switch(Oe.type){case"space":continue;case"hr":{Me+=this.renderer.hr();continue}case"heading":{Me+=this.renderer.heading(this.parseInline(Oe.tokens),Oe.depth,b(this.parseInline(Oe.tokens,this.textRenderer)),this.slugger);continue}case"code":{Me+=this.renderer.code(Oe.text,Oe.lang,Oe.escaped);continue}case"table":{for(tt="",$e="",It=Oe.header.length,qe=0;qe<It;qe++)$e+=this.renderer.tablecell(this.parseInline(Oe.header[qe].tokens),{header:!0,align:Oe.align[qe]});for(tt+=this.renderer.tablerow($e),ke="",It=Oe.rows.length,qe=0;qe<It;qe++){for(Ae=Oe.rows[qe],$e="",Ce=Ae.length,At=0;At<Ce;At++)$e+=this.renderer.tablecell(this.parseInline(Ae[At].tokens),{header:!1,align:Oe.align[At]});ke+=this.renderer.tablerow($e)}Me+=this.renderer.table(tt,ke);continue}case"blockquote":{ke=this.parse(Oe.tokens),Me+=this.renderer.blockquote(ke);continue}case"list":{for(je=Oe.ordered,Et=Oe.start,ct=Oe.loose,It=Oe.items.length,ke="",qe=0;qe<It;qe++)Ne=Oe.items[qe],mt=Ne.checked,bt=Ne.task,ut="",Ne.task&&(Gt=this.renderer.checkbox(mt),ct?Ne.tokens.length>0&&Ne.tokens[0].type==="paragraph"?(Ne.tokens[0].text=Gt+" "+Ne.tokens[0].text,Ne.tokens[0].tokens&&Ne.tokens[0].tokens.length>0&&Ne.tokens[0].tokens[0].type==="text"&&(Ne.tokens[0].tokens[0].text=Gt+" "+Ne.tokens[0].tokens[0].text)):Ne.tokens.unshift({type:"text",text:Gt}):ut+=Gt),ut+=this.parse(Ne.tokens,ct),ke+=this.renderer.listitem(ut,bt,mt);Me+=this.renderer.list(ke,je,Et);continue}case"html":{Me+=this.renderer.html(Oe.text,Oe.block);continue}case"paragraph":{Me+=this.renderer.paragraph(this.parseInline(Oe.tokens));continue}case"text":{for(ke=Oe.tokens?this.parseInline(Oe.tokens):Oe.text;Ye+1<Yt&&ae[Ye+1].type==="text";)Oe=ae[++Ye],ke+=` `+(Oe.tokens?this.parseInline(Oe.tokens):Oe.text);Me+=ve?this.renderer.paragraph(ke):ke;continue}default:{const Bt='Token with "'+Oe.type+'" type was not found.';if(this.options.silent){console.error(Bt);return}else throw new Error(Bt)}}}return Me}parseInline(ae,ve){ve=ve||this.renderer;let Me="",Ye,qe,At;const It=ae.length;for(Ye=0;Ye<It;Ye++){if(qe=ae[Ye],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[qe.type]&&(At=this.options.extensions.renderers[qe.type].call({parser:this},qe),At!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(qe.type))){Me+=At||"";continue}switch(qe.type){case"escape":{Me+=ve.text(qe.text);break}case"html":{Me+=ve.html(qe.text);break}case"link":{Me+=ve.link(qe.href,qe.title,this.parseInline(qe.tokens,ve));break}case"image":{Me+=ve.image(qe.href,qe.title,qe.text);break}case"strong":{Me+=ve.strong(this.parseInline(qe.tokens,ve));break}case"em":{Me+=ve.em(this.parseInline(qe.tokens,ve));break}case"codespan":{Me+=ve.codespan(qe.text);break}case"br":{Me+=ve.br();break}case"del":{Me+=ve.del(this.parseInline(qe.tokens,ve));break}case"text":{Me+=ve.text(qe.text);break}default:{const Ce='Token with "'+qe.type+'" type was not found.';if(this.options.silent){console.error(Ce);return}else throw new Error(Ce)}}}return Me}}class te{constructor(ae){this.options=ae||s}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(ae){return ae}postprocess(ae){return ae}}class ie{defaults=i();options=this.setOptions;parse=this.#a(F.lex,G.parse);parseInline=this.#a(F.lexInline,G.parseInline);Parser=G;parser=G.parse;Renderer=V;TextRenderer=pe;Lexer=F;lexer=F.lex;Tokenizer=J;Slugger=ce;Hooks=te;constructor(...ae){this.use(...ae)}walkTokens(ae,ve){let Me=[];for(const Ye of ae)switch(Me=Me.concat(ve.call(this,Ye)),Ye.type){case"table":{for(const qe of Ye.header)Me=Me.concat(this.walkTokens(qe.tokens,ve));for(const qe of Ye.rows)for(const At of qe)Me=Me.concat(this.walkTokens(At.tokens,ve));break}case"list":{Me=Me.concat(this.walkTokens(Ye.items,ve));break}default:this.defaults.extensions&&this.defaults.extensions.childTokens&&this.defaults.extensions.childTokens[Ye.type]?this.defaults.extensions.childTokens[Ye.type].forEach(qe=>{Me=Me.concat(this.walkTokens(Ye[qe],ve))}):Ye.tokens&&(Me=Me.concat(this.walkTokens(Ye.tokens,ve)))}return Me}use(...ae){const ve=this.defaults.extensions||{renderers:{},childTokens:{}};return ae.forEach(Me=>{const Ye={...Me};if(Ye.async=this.defaults.async||Ye.async||!1,Me.extensions&&(Me.extensions.forEach(qe=>{if(!qe.name)throw new Error("extension name required");if(qe.renderer){const At=ve.renderers[qe.name];At?ve.renderers[qe.name]=function(...It){let Ce=qe.renderer.apply(this,It);return Ce===!1&&(Ce=At.apply(this,It)),Ce}:ve.renderers[qe.name]=qe.renderer}if(qe.tokenizer){if(!qe.level||qe.level!=="block"&&qe.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");ve[qe.level]?ve[qe.level].unshift(qe.tokenizer):ve[qe.level]=[qe.tokenizer],qe.start&&(qe.level==="block"?ve.startBlock?ve.startBlock.push(qe.start):ve.startBlock=[qe.start]:qe.level==="inline"&&(ve.startInline?ve.startInline.push(qe.start):ve.startInline=[qe.start]))}qe.childTokens&&(ve.childTokens[qe.name]=qe.childTokens)}),Ye.extensions=ve),Me.renderer){const qe=this.defaults.renderer||new V(this.defaults);for(const At in Me.renderer){const It=qe[At];qe[At]=(...Ce)=>{let Ae=Me.renderer[At].apply(qe,Ce);return Ae===!1&&(Ae=It.apply(qe,Ce)),Ae}}Ye.renderer=qe}if(Me.tokenizer){const qe=this.defaults.tokenizer||new J(this.defaults);for(const At in Me.tokenizer){const It=qe[At];qe[At]=(...Ce)=>{let Ae=Me.tokenizer[At].apply(qe,Ce);return Ae===!1&&(Ae=It.apply(qe,Ce)),Ae}}Ye.tokenizer=qe}if(Me.hooks){const qe=this.defaults.hooks||new te;for(const At in Me.hooks){const It=qe[At];te.passThroughHooks.has(At)?qe[At]=Ce=>{if(this.defaults.async)return Promise.resolve(Me.hooks[At].call(qe,Ce)).then($e=>It.call(qe,$e));const Ae=Me.hooks[At].call(qe,Ce);return It.call(qe,Ae)}:qe[At]=(...Ce)=>{let Ae=Me.hooks[At].apply(qe,Ce);return Ae===!1&&(Ae=It.apply(qe,Ce)),Ae}}Ye.hooks=qe}if(Me.walkTokens){const qe=this.defaults.walkTokens;Ye.walkTokens=function(At){let It=[];return It.push(Me.walkTokens.call(this,At)),qe&&(It=It.concat(qe.call(this,At))),It}}this.defaults={...this.defaults,...Ye}}),this}setOptions(ae){return this.defaults={...this.defaults,...ae},this}#a(ae,ve){return(Me,Ye,qe)=>{typeof Ye=="function"&&(qe=Ye,Ye=null);const At={...Ye};Ye={...this.defaults,...At};const It=this.#l(Ye.silent,Ye.async,qe);if(typeof Me>"u"||Me===null)return It(new Error("marked(): input parameter is undefined or null"));if(typeof Me!="string")return It(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Me)+", string expected"));if(re(Ye,qe),Ye.hooks&&(Ye.hooks.options=Ye),qe){const Ce=Ye.highlight;let Ae;try{Ye.hooks&&(Me=Ye.hooks.preprocess(Me)),Ae=ae(Me,Ye)}catch(ke){return It(ke)}const $e=ke=>{let Oe;if(!ke)try{Ye.walkTokens&&this.walkTokens(Ae,Ye.walkTokens),Oe=ve(Ae,Ye),Ye.hooks&&(Oe=Ye.hooks.postprocess(Oe))}catch(je){ke=je}return Ye.highlight=Ce,ke?It(ke):qe(null,Oe)};if(!Ce||Ce.length<3||(delete Ye.highlight,!Ae.length))return $e();let tt=0;this.walkTokens(Ae,ke=>{ke.type==="code"&&(tt++,setTimeout(()=>{Ce(ke.text,ke.lang,(Oe,je)=>{if(Oe)return $e(Oe);je!=null&&je!==ke.text&&(ke.text=je,ke.escaped=!0),tt--,tt===0&&$e()})},0))}),tt===0&&$e();return}if(Ye.async)return Promise.resolve(Ye.hooks?Ye.hooks.preprocess(Me):Me).then(Ce=>ae(Ce,Ye)).then(Ce=>Ye.walkTokens?Promise.all(this.walkTokens(Ce,Ye.walkTokens)).then(()=>Ce):Ce).then(Ce=>ve(Ce,Ye)).then(Ce=>Ye.hooks?Ye.hooks.postprocess(Ce):Ce).catch(It);try{Ye.hooks&&(Me=Ye.hooks.preprocess(Me));const Ce=ae(Me,Ye);Ye.walkTokens&&this.walkTokens(Ce,Ye.walkTokens);let Ae=ve(Ce,Ye);return Ye.hooks&&(Ae=Ye.hooks.postprocess(Ae)),Ae}catch(Ce){return It(Ce)}}}#l(ae,ve,Me){return Ye=>{if(Ye.message+=` Please report this to https://github.com/markedjs/marked.`,ae){const qe="<p>An error occurred:</p><pre>"+g(Ye.message+"",!0)+"</pre>";if(ve)return Promise.resolve(qe);if(Me){Me(null,qe);return}return qe}if(ve)return Promise.reject(Ye);if(Me){Me(Ye);return}throw Ye}}}const fe=new ie(s);function Se(ue,ae,ve){return fe.parse(ue,ae,ve)}Se.options=Se.setOptions=function(ue){return fe.setOptions(ue),Se.defaults=fe.defaults,u(Se.defaults),Se},Se.getDefaults=i,Se.defaults=s,Se.use=function(...ue){return fe.use(...ue),Se.defaults=fe.defaults,u(Se.defaults),Se},Se.walkTokens=function(ue,ae){return fe.walkTokens(ue,ae)},Se.parseInline=fe.parseInline,Se.Parser=G,Se.parser=G.parse,Se.Renderer=V,Se.TextRenderer=pe,Se.Lexer=F,Se.lexer=F.lex,Se.Tokenizer=J,Se.Slugger=ce,Se.Hooks=te,Se.parse=Se;const he=Se.options,me=Se.setOptions,_e=Se.use,we=Se.walkTokens,Ge=Se.parseInline,ht=null,nt=G.parse,Re=F.lex},62715:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});const i={1:"The view center is not defined",2:"The view resolution is not defined",3:"The view rotation is not defined",4:"`image` and `src` cannot be provided at the same time",5:"`imgSize` must be set when `image` is provided",7:"`format` must be set when `url` is set",8:"Unknown `serverType` configured",9:"`url` must be configured or set using `#setUrl()`",10:"The default `geometryFunction` can only handle `Point` geometries",11:"`options.featureTypes` must be an Array",12:"`options.geometryName` must also be provided when `options.bbox` is set",13:"Invalid corner",14:"Invalid color",15:"Tried to get a value for a key that does not exist in the cache",16:"Tried to set a value for a key that is used already",17:"`resolutions` must be sorted in descending order",18:"Either `origin` or `origins` must be configured, never both",19:"Number of `tileSizes` and `resolutions` must be equal",20:"Number of `origins` and `resolutions` must be equal",22:"Either `tileSize` or `tileSizes` must be configured, never both",24:"Invalid extent or geometry provided as `geometry`",25:"Cannot fit empty extent provided as `geometry`",26:"Features must have an id set",27:"Features must have an id set",28:'`renderMode` must be `"hybrid"` or `"vector"`',30:"The passed `feature` was already added to the source",31:"Tried to enqueue an `element` that was already added to the queue",32:"Transformation matrix cannot be inverted",33:"Invalid units",34:"Invalid geometry layout",36:"Unknown SRS type",37:"Unknown geometry type found",38:"`styleMapValue` has an unknown type",39:"Unknown geometry type",40:"Expected `feature` to have a geometry",41:"Expected an `ol/style/Style` or an array of `ol/style/Style.js`",42:"Question unknown, the answer is 42",43:"Expected `layers` to be an array or a `Collection`",47:"Expected `controls` to be an array or an `ol/Collection`",48:"Expected `interactions` to be an array or an `ol/Collection`",49:"Expected `overlays` to be an array or an `ol/Collection`",50:"`options.featureTypes` should be an Array",51:"Either `url` or `tileJSON` options must be provided",52:"Unknown `serverType` configured",53:"Unknown `tierSizeCalculation` configured",55:"The {-y} placeholder requires a tile grid with extent",56:"mapBrowserEvent must originate from a pointer event",57:"At least 2 conditions are required",59:"Invalid command found in the PBF",60:"Missing or invalid `size`",61:"Cannot determine IIIF Image API version from provided image information JSON",62:"A `WebGLArrayBuffer` must either be of type `ELEMENT_ARRAY_BUFFER` or `ARRAY_BUFFER`",64:"Layer opacity must be a number",66:"`forEachFeatureAtCoordinate` cannot be used on a WebGL layer if the hit detection logic has not been enabled. This is done by providing adequate shaders using the `hitVertexShader` and `hitFragmentShader` properties of `WebGLPointsLayerRenderer`",67:"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both",68:"A VectorTile source can only be rendered if it has a projection compatible with the view projection",69:"`width` or `height` cannot be provided together with `scale`"};class s extends Error{constructor(l){const h=i[l];super(h),this.code=l,this.name="AssertionError",this.message=h}}const u=s},81780:(C,c,t)=>{"use strict";t.d(c,{Z:()=>d});var i=t(62715),s=t(42133),u=t(81459),v=t(82723);const l={LENGTH:"length"};class h extends v.ZP{constructor(g,y,b){super(g),this.element=y,this.index=b}}class p extends s.Z{constructor(g,y){if(super(),this.on,this.once,this.un,y=y||{},this.unique_=!!y.unique,this.array_=g||[],this.unique_)for(let b=0,E=this.array_.length;b<E;++b)this.assertUnique_(this.array_[b],b);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(g){for(let y=0,b=g.length;y<b;++y)this.push(g[y]);return this}forEach(g){const y=this.array_;for(let b=0,E=y.length;b<E;++b)g(y[b],b,y)}getArray(){return this.array_}item(g){return this.array_[g]}getLength(){return this.get(l.LENGTH)}insertAt(g,y){if(g<0||g>this.getLength())throw new Error("Index out of bounds: "+g);this.unique_&&this.assertUnique_(y),this.array_.splice(g,0,y),this.updateLength_(),this.dispatchEvent(new h(u.Z.ADD,y,g))}pop(){return this.removeAt(this.getLength()-1)}push(g){this.unique_&&this.assertUnique_(g);const y=this.getLength();return this.insertAt(y,g),this.getLength()}remove(g){const y=this.array_;for(let b=0,E=y.length;b<E;++b)if(y[b]===g)return this.removeAt(b)}removeAt(g){if(g<0||g>=this.getLength())return;const y=this.array_[g];return this.array_.splice(g,1),this.updateLength_(),this.dispatchEvent(new h(u.Z.REMOVE,y,g)),y}setAt(g,y){const b=this.getLength();if(g>=b){this.insertAt(g,y);return}if(g<0)throw new Error("Index out of bounds: "+g);this.unique_&&this.assertUnique_(y,g);const E=this.array_[g];this.array_[g]=y,this.dispatchEvent(new h(u.Z.REMOVE,E,g)),this.dispatchEvent(new h(u.Z.ADD,y,g))}updateLength_(){this.set(l.LENGTH,this.array_.length)}assertUnique_(g,y){for(let b=0,E=this.array_.length;b<E;++b)if(this.array_[b]===g&&b!==y)throw new i.Z(58)}}const d=p},81459:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});const i={ADD:"add",REMOVE:"remove"}},78555:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});class i{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}const s=i},19193:(C,c,t)=>{"use strict";t.d(c,{Z:()=>p});var i=t(42133),s=t(21750),u=t(30998),v=t(67314);class l extends i.Z{constructor(f){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),f)if(typeof f.getSimplifiedGeometry=="function"){const g=f;this.setGeometry(g)}else{const g=f;this.setProperties(g)}}clone(){const f=new l(this.hasProperties()?this.getProperties():null);f.setGeometryName(this.getGeometryName());const g=this.getGeometry();g&&f.setGeometry(g.clone());const y=this.getStyle();return y&&f.setStyle(y),f}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,v.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);const f=this.getGeometry();f&&(this.geometryChangeKey_=(0,v.oL)(f,s.Z.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(f){this.set(this.geometryName_,f)}setStyle(f){this.style_=f,this.styleFunction_=f?h(f):void 0,this.changed()}setId(f){this.id_=f,this.changed()}setGeometryName(f){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=f,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function h(d){if(typeof d=="function")return d;let f;return Array.isArray(d)?f=d:((0,u.h)(typeof d.getZIndex=="function",41),f=[d]),function(){return f}}const p=l},587:(C,c,t)=>{"use strict";t.d(c,{Z:()=>tt});var i=t(42133),s=t(81780),u=t(81459),v=t(78555),l=t(41875),h=t(80075),p=t(81659),d=t(70328),f=t(49462),g=t(85271),y=t(44445);class b extends v.Z{constructor(Oe){super(),this.map_=Oe}dispatchRenderEvent(Oe,je){(0,h.O3)()}calculateMatrices2D(Oe){const je=Oe.viewState,Et=Oe.coordinateToPixelTransform,ct=Oe.pixelToCoordinateTransform;(0,p.qC)(Et,Oe.size[0]/2,Oe.size[1]/2,1/je.resolution,-1/je.resolution,-je.rotation,-je.center[0],-je.center[1]),(0,p.nb)(ct,Et)}forEachFeatureAtCoordinate(Oe,je,Et,ct,ut,Ne,mt,bt){let Gt;const hn=je.viewState;function Yt(Xt,rt,Rt,rn){return ut.call(Ne,rt,Xt?Rt:null,rn)}const Bt=hn.projection,Lt=(0,y.Cf)(Oe.slice(),Bt),zt=[[0,0]];if(Bt.canWrapX()&&ct){const Xt=Bt.getExtent(),rt=(0,d.dz)(Xt);zt.push([-rt,0],[rt,0])}const Kt=je.layerStatesArray,vt=Kt.length,Ve=[],lt=[];for(let Xt=0;Xt<zt.length;Xt++)for(let rt=vt-1;rt>=0;--rt){const Rt=Kt[rt],rn=Rt.layer;if(rn.hasRenderer()&&(0,g.j)(Rt,hn)&&mt.call(bt,rn)){const sn=rn.getRenderer(),Jn=rn.getSource();if(sn&&Jn){const ze=Jn.getWrapX()?Lt:Oe,st=Yt.bind(null,Rt.managed);lt[0]=ze[0]+zt[Xt][0],lt[1]=ze[1]+zt[Xt][1],Gt=sn.forEachFeatureAtCoordinate(lt,je,Et,st,Ve)}if(Gt)return Gt}}if(Ve.length===0)return;const at=1/Ve.length;return Ve.forEach((Xt,rt)=>Xt.distanceSq+=rt*at),Ve.sort((Xt,rt)=>Xt.distanceSq-rt.distanceSq),Ve.some(Xt=>Gt=Xt.callback(Xt.feature,Xt.layer,Xt.geometry)),Gt}hasFeatureAtCoordinate(Oe,je,Et,ct,ut,Ne){return this.forEachFeatureAtCoordinate(Oe,je,Et,ct,l.uX,this,ut,Ne)!==void 0}getMap(){return this.map_}renderFrame(Oe){(0,h.O3)()}scheduleExpireIconCache(Oe){f.c.canExpireCache()&&Oe.postRenderFunctions.push(E)}}function E(ke,Oe){f.c.expire()}const S=b;var w=t(26657),x=t(12297),P=t(80032),R=t(62989),T=t(62822),A=t(67314),I=t(43045);class N extends S{constructor(Oe){super(Oe),this.fontChangeListenerKey_=(0,A.oL)(T.sG,w.Z.PROPERTYCHANGE,Oe.redrawText.bind(Oe)),this.element_=document.createElement("div");const je=this.element_.style;je.position="absolute",je.width="100%",je.height="100%",je.zIndex="0",this.element_.className=R.XV+" ol-layers";const Et=Oe.getViewport();Et.insertBefore(this.element_,Et.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(Oe,je){const Et=this.getMap();if(Et.hasListener(Oe)){const ct=new x.Z(Oe,void 0,je);Et.dispatchEvent(ct)}}disposeInternal(){(0,A.bN)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(Oe){if(!Oe){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(Oe),this.dispatchRenderEvent(P.Z.PRECOMPOSE,Oe);const je=Oe.layerStatesArray.sort(function(Ne,mt){return Ne.zIndex-mt.zIndex}),Et=Oe.viewState;this.children_.length=0;const ct=[];let ut=null;for(let Ne=0,mt=je.length;Ne<mt;++Ne){const bt=je[Ne];Oe.layerIndex=Ne;const Gt=bt.layer,hn=Gt.getSourceState();if(!(0,g.j)(bt,Et)||hn!="ready"&&hn!="undefined"){Gt.unrender();continue}const Yt=Gt.render(Oe,ut);Yt&&(Yt!==ut&&(this.children_.push(Yt),ut=Yt),"getDeclutter"in Gt&&ct.push(Gt))}for(let Ne=ct.length-1;Ne>=0;--Ne)ct[Ne].renderDeclutter(Oe);(0,I.hF)(this.element_,this.children_),this.dispatchRenderEvent(P.Z.POSTCOMPOSE,Oe),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(Oe)}}const K=N;var _=t(21750),W=t(35041),j=t(40601),re=t(24781);const X={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"};var Z=t(17793),J=t(90738);class q extends Z.Z{constructor(Oe,je){super(Oe),this.map_=Oe,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=je===void 0?1:je,this.down_=null;const Et=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=Et,this.pointerdownListenerKey_=(0,A.oL)(Et,X.POINTERDOWN,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,A.oL)(Et,X.POINTERMOVE,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(_.Z.TOUCHMOVE,this.boundHandleTouchMove_,J.bM?{passive:!1}:!1)}emulateClick_(Oe){let je=new j.Z(re.Z.CLICK,this.map_,Oe);this.dispatchEvent(je),this.clickTimeoutId_!==void 0?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,je=new j.Z(re.Z.DBLCLICK,this.map_,Oe),this.dispatchEvent(je)):this.clickTimeoutId_=setTimeout(()=>{this.clickTimeoutId_=void 0;const Et=new j.Z(re.Z.SINGLECLICK,this.map_,Oe);this.dispatchEvent(Et)},250)}updateActivePointers_(Oe){const je=Oe,Et=je.pointerId;if(je.type==re.Z.POINTERUP||je.type==re.Z.POINTERCANCEL){delete this.trackedTouches_[Et];for(const ct in this.trackedTouches_)if(this.trackedTouches_[ct].target!==je.target){delete this.trackedTouches_[ct];break}}else(je.type==re.Z.POINTERDOWN||je.type==re.Z.POINTERMOVE)&&(this.trackedTouches_[Et]=je);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(Oe){this.updateActivePointers_(Oe);const je=new j.Z(re.Z.POINTERUP,this.map_,Oe,void 0,void 0,this.activePointers_);this.dispatchEvent(je),this.emulateClicks_&&!je.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(Oe)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(A.bN),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(Oe){return Oe.button===0}handlePointerDown_(Oe){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(Oe);const je=new j.Z(re.Z.POINTERDOWN,this.map_,Oe,void 0,void 0,this.activePointers_);if(this.dispatchEvent(je),this.down_=new PointerEvent(Oe.type,Oe),Object.defineProperty(this.down_,"target",{writable:!1,value:Oe.target}),this.dragListenerKeys_.length===0){const Et=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,A.oL)(Et,re.Z.POINTERMOVE,this.handlePointerMove_,this),(0,A.oL)(Et,re.Z.POINTERUP,this.handlePointerUp_,this),(0,A.oL)(this.element_,re.Z.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==Et&&this.dragListenerKeys_.push((0,A.oL)(this.element_.getRootNode(),re.Z.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(Oe){if(this.isMoving_(Oe)){this.updateActivePointers_(Oe),this.dragging_=!0;const je=new j.Z(re.Z.POINTERDRAG,this.map_,Oe,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(je)}}relayMoveEvent_(Oe){this.originalPointerMoveEvent_=Oe;const je=!!(this.down_&&this.isMoving_(Oe));this.dispatchEvent(new j.Z(re.Z.POINTERMOVE,this.map_,Oe,je))}handleTouchMove_(Oe){const je=this.originalPointerMoveEvent_;(!je||je.defaultPrevented)&&(typeof Oe.cancelable!="boolean"||Oe.cancelable===!0)&&Oe.preventDefault()}isMoving_(Oe){return this.dragging_||Math.abs(Oe.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(Oe.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,A.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(_.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,A.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(A.bN),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const L=q;var $=t(30427),k=t(5585);const F={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};var V=t(30998),pe=t(36095);const ce=1/0;class G{constructor(Oe,je){this.priorityFunction_=Oe,this.keyFunction_=je,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,pe.Z)(this.queuedElements_)}dequeue(){const Oe=this.elements_,je=this.priorities_,Et=Oe[0];Oe.length==1?(Oe.length=0,je.length=0):(Oe[0]=Oe.pop(),je[0]=je.pop(),this.siftUp_(0));const ct=this.keyFunction_(Et);return delete this.queuedElements_[ct],Et}enqueue(Oe){(0,V.h)(!(this.keyFunction_(Oe)in this.queuedElements_),31);const je=this.priorityFunction_(Oe);return je!=ce?(this.elements_.push(Oe),this.priorities_.push(je),this.queuedElements_[this.keyFunction_(Oe)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(Oe){return Oe*2+1}getRightChildIndex_(Oe){return Oe*2+2}getParentIndex_(Oe){return Oe-1>>1}heapify_(){let Oe;for(Oe=(this.elements_.length>>1)-1;Oe>=0;Oe--)this.siftUp_(Oe)}isEmpty(){return this.elements_.length===0}isKeyQueued(Oe){return Oe in this.queuedElements_}isQueued(Oe){return this.isKeyQueued(this.keyFunction_(Oe))}siftUp_(Oe){const je=this.elements_,Et=this.priorities_,ct=je.length,ut=je[Oe],Ne=Et[Oe],mt=Oe;for(;Oe<ct>>1;){const bt=this.getLeftChildIndex_(Oe),Gt=this.getRightChildIndex_(Oe),hn=Gt<ct&&Et[Gt]<Et[bt]?Gt:bt;je[Oe]=je[hn],Et[Oe]=Et[hn],Oe=hn}je[Oe]=ut,Et[Oe]=Ne,this.siftDown_(mt,Oe)}siftDown_(Oe,je){const Et=this.elements_,ct=this.priorities_,ut=Et[je],Ne=ct[je];for(;je>Oe;){const mt=this.getParentIndex_(je);if(ct[mt]>Ne)Et[je]=Et[mt],ct[je]=ct[mt],je=mt;else break}Et[je]=ut,ct[je]=Ne}reprioritize(){const Oe=this.priorityFunction_,je=this.elements_,Et=this.priorities_;let ct=0;const ut=je.length;let Ne,mt,bt;for(mt=0;mt<ut;++mt)Ne=je[mt],bt=Oe(Ne),bt==ce?delete this.queuedElements_[this.keyFunction_(Ne)]:(Et[ct]=bt,je[ct++]=Ne);je.length=ct,Et.length=ct,this.heapify_()}}const te=G;var ie=t(11719);class fe extends te{constructor(Oe,je){super(function(Et){return Oe.apply(null,Et)},function(Et){return Et[0].getKey()}),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=je,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(Oe){const je=super.enqueue(Oe);return je&&Oe[0].addEventListener(_.Z.CHANGE,this.boundHandleTileChange_),je}getTilesLoading(){return this.tilesLoading_}handleTileChange(Oe){const je=Oe.target,Et=je.getState();if(Et===ie.Z.LOADED||Et===ie.Z.ERROR||Et===ie.Z.EMPTY){Et!==ie.Z.ERROR&&je.removeEventListener(_.Z.CHANGE,this.boundHandleTileChange_);const ct=je.getKey();ct in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[ct],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(Oe,je){let Et=0,ct,ut,Ne;for(;this.tilesLoading_<Oe&&Et<je&&this.getCount()>0;)ut=this.dequeue()[0],Ne=ut.getKey(),ct=ut.getState(),ct===ie.Z.IDLE&&!(Ne in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[Ne]=!0,++this.tilesLoading_,++Et,ut.load())}}const Se=fe;function he(ke,Oe,je,Et,ct){if(!ke||!(je in ke.wantedTiles)||!ke.wantedTiles[je][Oe.getKey()])return ce;const ut=ke.viewState.center,Ne=Et[0]-ut[0],mt=Et[1]-ut[1];return 65536*Math.log(ct)+Math.sqrt(Ne*Ne+mt*mt)/ct}var me=t(53917),_e=t(18637),we=t(77089),Ge=t(21314),ht=t(43896);class nt extends Ge.Z{constructor(Oe){Oe=Oe||{},super({element:document.createElement("div"),render:Oe.render,target:Oe.target});const je=Oe.className!==void 0?Oe.className:"ol-rotate",Et=Oe.label!==void 0?Oe.label:"\u21E7",ct=Oe.compassClassName!==void 0?Oe.compassClassName:"ol-compass";this.label_=null,typeof Et=="string"?(this.label_=document.createElement("span"),this.label_.className=ct,this.label_.textContent=Et):(this.label_=Et,this.label_.classList.add(ct));const ut=Oe.tipLabel?Oe.tipLabel:"Reset rotation",Ne=document.createElement("button");Ne.className=je+"-reset",Ne.setAttribute("type","button"),Ne.title=ut,Ne.appendChild(this.label_),Ne.addEventListener(_.Z.CLICK,this.handleClick_.bind(this),!1);const mt=je+" "+R.XV+" "+R.hg,bt=this.element;bt.className=mt,bt.appendChild(Ne),this.callResetNorth_=Oe.resetNorth?Oe.resetNorth:void 0,this.duration_=Oe.duration!==void 0?Oe.duration:250,this.autoHide_=Oe.autoHide!==void 0?Oe.autoHide:!0,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(R.oj)}handleClick_(Oe){Oe.preventDefault(),this.callResetNorth_!==void 0?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const je=this.getMap().getView();if(!je)return;const Et=je.getRotation();Et!==void 0&&(this.duration_>0&&Et%(2*Math.PI)!==0?je.animate({rotation:0,duration:this.duration_,easing:ht.Vv}):je.setRotation(0))}render(Oe){const je=Oe.frameState;if(!je)return;const Et=je.viewState.rotation;if(Et!=this.rotation_){const ct="rotate("+Et+"rad)";if(this.autoHide_){const ut=this.element.classList.contains(R.oj);!ut&&Et===0?this.element.classList.add(R.oj):ut&&Et!==0&&this.element.classList.remove(R.oj)}this.label_.style.transform=ct}this.rotation_=Et}}const Re=nt;var ue=t(54052);function ae(ke){ke=ke||{};const Oe=new s.Z;return(ke.zoom!==void 0?ke.zoom:!0)&&Oe.push(new ue.Z(ke.zoomOptions)),(ke.rotate!==void 0?ke.rotate:!0)&&Oe.push(new Re(ke.rotateOptions)),(ke.attribution!==void 0?ke.attribution:!0)&&Oe.push(new we.Z(ke.attributionOptions)),Oe}var ve=t(33810),Me=t(83441),Ye=t(29209),qe=t(69805),At=t(37198);function It(ke){if(ke instanceof g.Z){ke.setMapInternal(null);return}ke instanceof W.Z&&ke.getLayers().forEach(It)}function Ce(ke,Oe){if(ke instanceof g.Z){ke.setMapInternal(Oe);return}if(ke instanceof W.Z){const je=ke.getLayers().getArray();for(let Et=0,ct=je.length;Et<ct;++Et)Ce(je[Et],Oe)}}class Ae extends i.Z{constructor(Oe){super(),Oe=Oe||{},this.on,this.once,this.un;const je=$e(Oe);this.renderComplete_,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=Oe.maxTilesLoading!==void 0?Oe.maxTilesLoading:16,this.pixelRatio_=Oe.pixelRatio!==void 0?Oe.pixelRatio:J.MP,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=(0,p.Ue)(),this.pixelToCoordinateTransform_=(0,p.Ue)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=null,this.moveTolerance_=Oe.moveTolerance,this.keyboardEventTarget_=je.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,this.resizeObserver_=new ResizeObserver(()=>this.updateSize()),this.controls=je.controls||ae(),this.interactions=je.interactions||(0,ve.c)({onFocusOnly:!0}),this.overlays_=je.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new Se(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(F.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(F.VIEW,this.handleViewChanged_),this.addChangeListener(F.SIZE,this.handleSizeChanged_),this.addChangeListener(F.TARGET,this.handleTargetChanged_),this.setProperties(je.values);const Et=this;Oe.view&&!(Oe.view instanceof me.ZP)&&Oe.view.then(function(ct){Et.setView(new me.ZP(ct))}),this.controls.addEventListener(u.Z.ADD,ct=>{ct.element.setMap(this)}),this.controls.addEventListener(u.Z.REMOVE,ct=>{ct.element.setMap(null)}),this.interactions.addEventListener(u.Z.ADD,ct=>{ct.element.setMap(this)}),this.interactions.addEventListener(u.Z.REMOVE,ct=>{ct.element.setMap(null)}),this.overlays_.addEventListener(u.Z.ADD,ct=>{this.addOverlayInternal_(ct.element)}),this.overlays_.addEventListener(u.Z.REMOVE,ct=>{const ut=ct.element.getId();ut!==void 0&&delete this.overlayIdIndex_[ut.toString()],ct.element.setMap(null)}),this.controls.forEach(ct=>{ct.setMap(this)}),this.interactions.forEach(ct=>{ct.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(Oe){this.getControls().push(Oe)}addInteraction(Oe){this.getInteractions().push(Oe)}addLayer(Oe){this.getLayerGroup().getLayers().push(Oe)}handleLayerAdd_(Oe){Ce(Oe.layer,this)}addOverlay(Oe){this.getOverlays().push(Oe)}addOverlayInternal_(Oe){const je=Oe.getId();je!==void 0&&(this.overlayIdIndex_[je.toString()]=Oe),Oe.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(Oe,je,Et){if(!this.frameState_||!this.renderer_)return;const ct=this.getCoordinateFromPixelInternal(Oe);Et=Et!==void 0?Et:{};const ut=Et.hitTolerance!==void 0?Et.hitTolerance:0,Ne=Et.layerFilter!==void 0?Et.layerFilter:l.uX,mt=Et.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(ct,this.frameState_,ut,mt,je,null,Ne,null)}getFeaturesAtPixel(Oe,je){const Et=[];return this.forEachFeatureAtPixel(Oe,function(ct){Et.push(ct)},je),Et}getAllLayers(){const Oe=[];function je(Et){Et.forEach(function(ct){ct instanceof W.Z?je(ct.getLayers()):Oe.push(ct)})}return je(this.getLayers()),Oe}hasFeatureAtPixel(Oe,je){if(!this.frameState_||!this.renderer_)return!1;const Et=this.getCoordinateFromPixelInternal(Oe);je=je!==void 0?je:{};const ct=je.layerFilter!==void 0?je.layerFilter:l.uX,ut=je.hitTolerance!==void 0?je.hitTolerance:0,Ne=je.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(Et,this.frameState_,ut,Ne,ct,null)}getEventCoordinate(Oe){return this.getCoordinateFromPixel(this.getEventPixel(Oe))}getEventCoordinateInternal(Oe){return this.getCoordinateFromPixelInternal(this.getEventPixel(Oe))}getEventPixel(Oe){const Et=this.viewport_.getBoundingClientRect(),ct=this.getSize(),ut=Et.width/ct[0],Ne=Et.height/ct[1],mt="changedTouches"in Oe?Oe.changedTouches[0]:Oe;return[(mt.clientX-Et.left)/ut,(mt.clientY-Et.top)/Ne]}getTarget(){return this.get(F.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(Oe){return(0,Ye.lO)(this.getCoordinateFromPixelInternal(Oe),this.getView().getProjection())}getCoordinateFromPixelInternal(Oe){const je=this.frameState_;return je?(0,p.nn)(je.pixelToCoordinateTransform,Oe.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(Oe){const je=this.overlayIdIndex_[Oe.toString()];return je!==void 0?je:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(F.LAYERGROUP)}setLayers(Oe){const je=this.getLayerGroup();if(Oe instanceof s.Z){je.setLayers(Oe);return}const Et=je.getLayers();Et.clear(),Et.extend(Oe)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const Oe=this.getLayerGroup().getLayerStatesArray();for(let je=0,Et=Oe.length;je<Et;++je){const ct=Oe[je];if(!ct.visible)continue;const ut=ct.layer.getRenderer();if(ut&&!ut.ready)return!0;const Ne=ct.layer.getSource();if(Ne&&Ne.loading)return!0}return!1}getPixelFromCoordinate(Oe){const je=(0,Ye.Vs)(Oe,this.getView().getProjection());return this.getPixelFromCoordinateInternal(je)}getPixelFromCoordinateInternal(Oe){const je=this.frameState_;return je?(0,p.nn)(je.coordinateToPixelTransform,Oe.slice(0,2)):null}getRenderer(){return this.renderer_}getSize(){return this.get(F.SIZE)}getView(){return this.get(F.VIEW)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const Oe=this.getTargetElement();return Oe?Oe.ownerDocument:document}getTilePriority(Oe,je,Et,ct){return he(this.frameState_,Oe,je,Et,ct)}handleBrowserEvent(Oe,je){je=je||Oe.type;const Et=new j.Z(je,this,Oe);this.handleMapBrowserEvent(Et)}handleMapBrowserEvent(Oe){if(!this.frameState_)return;const je=Oe.originalEvent,Et=je.type;if(Et===X.POINTERDOWN||Et===_.Z.WHEEL||Et===_.Z.KEYDOWN){const ct=this.getOwnerDocument(),ut=this.viewport_.getRootNode?this.viewport_.getRootNode():ct,Ne=je.target;if(this.overlayContainerStopEvent_.contains(Ne)||!(ut===ct?ct.documentElement:ut).contains(Ne))return}if(Oe.frameState=this.frameState_,this.dispatchEvent(Oe)!==!1){const ct=this.getInteractions().getArray().slice();for(let ut=ct.length-1;ut>=0;ut--){const Ne=ct[ut];if(Ne.getMap()!==this||!Ne.getActive()||!this.getTargetElement())continue;if(!Ne.handleEvent(Oe)||Oe.propagationStopped)break}}}handlePostRender(){const Oe=this.frameState_,je=this.tileQueue_;if(!je.isEmpty()){let ct=this.maxTilesLoading_,ut=ct;if(Oe){const Ne=Oe.viewHints;if(Ne[_e.Z.ANIMATING]||Ne[_e.Z.INTERACTING]){const mt=Date.now()-Oe.time>8;ct=mt?0:8,ut=mt?0:2}}je.getTilesLoading()<ct&&(je.reprioritize(),je.loadMoreTiles(ct,ut))}Oe&&this.renderer_&&!Oe.animate&&(this.renderComplete_===!0?(this.hasListener(P.Z.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(P.Z.RENDERCOMPLETE,Oe),this.loaded_===!1&&(this.loaded_=!0,this.dispatchEvent(new $.Z(k.Z.LOADEND,this,Oe)))):this.loaded_===!0&&(this.loaded_=!1,this.dispatchEvent(new $.Z(k.Z.LOADSTART,this,Oe))));const Et=this.postRenderFunctions_;for(let ct=0,ut=Et.length;ct<ut;++ct)Et[ct](this,Oe);Et.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let Et=0,ct=this.targetChangeHandlerKeys_.length;Et<ct;++Et)(0,A.bN)(this.targetChangeHandlerKeys_[Et]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(_.Z.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(_.Z.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,(0,I.ZF)(this.viewport_)}if(this.targetElement_){this.resizeObserver_.unobserve(this.targetElement_);const Et=this.targetElement_.getRootNode();Et instanceof ShadowRoot&&this.resizeObserver_.unobserve(Et.host),this.setSize(void 0)}const Oe=this.getTarget(),je=typeof Oe=="string"?document.getElementById(Oe):Oe;if(this.targetElement_=je,!je)this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);else{je.appendChild(this.viewport_),this.renderer_||(this.renderer_=new K(this)),this.mapBrowserEventHandler_=new L(this,this.moveTolerance_);for(const ut in re.Z)this.mapBrowserEventHandler_.addEventListener(re.Z[ut],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(_.Z.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(_.Z.WHEEL,this.boundHandleBrowserEvent_,J.bM?{passive:!1}:!1);const Et=this.keyboardEventTarget_?this.keyboardEventTarget_:je;this.targetChangeHandlerKeys_=[(0,A.oL)(Et,_.Z.KEYDOWN,this.handleBrowserEvent,this),(0,A.oL)(Et,_.Z.KEYPRESS,this.handleBrowserEvent,this)];const ct=je.getRootNode();ct instanceof ShadowRoot&&this.resizeObserver_.observe(ct.host),this.resizeObserver_.observe(je)}this.updateSize()}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&((0,A.bN)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,A.bN)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const Oe=this.getView();Oe&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=(0,A.oL)(Oe,w.Z.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,A.oL)(Oe,_.Z.CHANGE,this.handleViewPropertyChanged_,this),Oe.resolveConstraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(A.bN),this.layerGroupPropertyListenerKeys_=null);const Oe=this.getLayerGroup();Oe&&(this.handleLayerAdd_(new W.V("addlayer",Oe)),this.layerGroupPropertyListenerKeys_=[(0,A.oL)(Oe,w.Z.PROPERTYCHANGE,this.render,this),(0,A.oL)(Oe,_.Z.CHANGE,this.render,this),(0,A.oL)(Oe,"addlayer",this.handleLayerAdd_,this),(0,A.oL)(Oe,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){const Oe=this.getLayerGroup().getLayerStatesArray();for(let je=0,Et=Oe.length;je<Et;++je){const ct=Oe[je].layer;ct.hasRenderer()&&ct.getRenderer().handleFontsChanged()}}render(){this.renderer_&&this.animationDelayKey_===void 0&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(Oe){return this.getControls().remove(Oe)}removeInteraction(Oe){return this.getInteractions().remove(Oe)}removeLayer(Oe){return this.getLayerGroup().getLayers().remove(Oe)}handleLayerRemove_(Oe){It(Oe.layer)}removeOverlay(Oe){return this.getOverlays().remove(Oe)}renderFrame_(Oe){const je=this.getSize(),Et=this.getView(),ct=this.frameState_;let ut=null;if(je!==void 0&&(0,qe.py)(je)&&Et&&Et.isDef()){const Ne=Et.getHints(this.frameState_?this.frameState_.viewHints:void 0),mt=Et.getState();if(ut={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:(0,d.p8)(mt.center,mt.resolution,mt.rotation,je),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:je,tileQueue:this.tileQueue_,time:Oe,usedTiles:{},viewState:mt,viewHints:Ne,wantedTiles:{},mapId:(0,h.sq)(this),renderTargets:{}},mt.nextCenter&&mt.nextResolution){const bt=isNaN(mt.nextRotation)?mt.rotation:mt.nextRotation;ut.nextExtent=(0,d.p8)(mt.nextCenter,mt.nextResolution,bt,je)}}this.frameState_=ut,this.renderer_.renderFrame(ut),ut&&(ut.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,ut.postRenderFunctions),ct&&(!this.previousExtent_||!(0,d.xb)(this.previousExtent_)&&!(0,d.fS)(ut.extent,this.previousExtent_))&&(this.dispatchEvent(new $.Z(k.Z.MOVESTART,this,ct)),this.previousExtent_=(0,d.YN)(this.previousExtent_)),this.previousExtent_&&!ut.viewHints[_e.Z.ANIMATING]&&!ut.viewHints[_e.Z.INTERACTING]&&!(0,d.fS)(ut.extent,this.previousExtent_)&&(this.dispatchEvent(new $.Z(k.Z.MOVEEND,this,ut)),(0,d.d9)(ut.extent,this.previousExtent_))),this.dispatchEvent(new $.Z(k.Z.POSTRENDER,this,ut)),this.renderComplete_=this.hasListener(k.Z.LOADSTART)||this.hasListener(k.Z.LOADEND)||this.hasListener(P.Z.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout(()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(Oe){const je=this.getLayerGroup();je&&this.handleLayerRemove_(new W.V("removelayer",je)),this.set(F.LAYERGROUP,Oe)}setSize(Oe){this.set(F.SIZE,Oe)}setTarget(Oe){this.set(F.TARGET,Oe)}setView(Oe){if(!Oe||Oe instanceof me.ZP){this.set(F.VIEW,Oe);return}this.set(F.VIEW,new me.ZP);const je=this;Oe.then(function(Et){je.setView(new me.ZP(Et))})}updateSize(){const Oe=this.getTargetElement();let je;if(Oe){const ct=getComputedStyle(Oe),ut=Oe.offsetWidth-parseFloat(ct.borderLeftWidth)-parseFloat(ct.paddingLeft)-parseFloat(ct.paddingRight)-parseFloat(ct.borderRightWidth),Ne=Oe.offsetHeight-parseFloat(ct.borderTopWidth)-parseFloat(ct.paddingTop)-parseFloat(ct.paddingBottom)-parseFloat(ct.borderBottomWidth);!isNaN(ut)&&!isNaN(Ne)&&(je=[ut,Ne],!(0,qe.py)(je)&&(Oe.offsetWidth||Oe.offsetHeight||Oe.getClientRects().length)&&(0,At.ZK)("No map visible because the map container's width or height are 0."))}const Et=this.getSize();je&&(!Et||!(0,Me.fS)(je,Et))&&(this.setSize(je),this.updateViewportSize_())}updateViewportSize_(){const Oe=this.getView();if(Oe){let je;const Et=getComputedStyle(this.viewport_);Et.width&&Et.height&&(je=[parseInt(Et.width,10),parseInt(Et.height,10)]),Oe.setViewportSize(je)}}}function $e(ke){let Oe=null;ke.keyboardEventTarget!==void 0&&(Oe=typeof ke.keyboardEventTarget=="string"?document.getElementById(ke.keyboardEventTarget):ke.keyboardEventTarget);const je={},Et=ke.layers&&typeof ke.layers.getLayers=="function"?ke.layers:new W.Z({layers:ke.layers});je[F.LAYERGROUP]=Et,je[F.TARGET]=ke.target,je[F.VIEW]=ke.view instanceof me.ZP?ke.view:new me.ZP;let ct;ke.controls!==void 0&&(Array.isArray(ke.controls)?ct=new s.Z(ke.controls.slice()):((0,V.h)(typeof ke.controls.getArray=="function",47),ct=ke.controls));let ut;ke.interactions!==void 0&&(Array.isArray(ke.interactions)?ut=new s.Z(ke.interactions.slice()):((0,V.h)(typeof ke.interactions.getArray=="function",48),ut=ke.interactions));let Ne;return ke.overlays!==void 0?Array.isArray(ke.overlays)?Ne=new s.Z(ke.overlays.slice()):((0,V.h)(typeof ke.overlays.getArray=="function",49),Ne=ke.overlays):Ne=new s.Z,{controls:ct,interactions:ut,keyboardEventTarget:Oe,overlays:Ne,values:je}}const tt=Ae},40601:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(30427);class s extends i.Z{constructor(l,h,p,d,f,g){super(l,h,f),this.originalEvent=p,this.pixel_=null,this.coordinate_=null,this.dragging=d!==void 0?d:!1,this.activePointers=g}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(l){this.pixel_=l}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(l){this.coordinate_=l}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}}const u=s},24781:(C,c,t)=>{"use strict";t.d(c,{Z:()=>s});var i=t(21750);const s={SINGLECLICK:"singleclick",CLICK:i.Z.CLICK,DBLCLICK:i.Z.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},30427:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(82723);class s extends i.ZP{constructor(l,h,p){super(l),this.map=h,this.frameState=p!==void 0?p:null}}const u=s},5585:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});const i={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},42133:(C,c,t)=>{"use strict";t.d(c,{Z:()=>d});var i=t(82723),s=t(26657),u=t(90346),v=t(80075),l=t(36095);class h extends i.ZP{constructor(g,y,b){super(g),this.key=y,this.oldValue=b}}class p extends u.Z{constructor(g){super(),this.on,this.once,this.un,(0,v.sq)(this),this.values_=null,g!==void 0&&this.setProperties(g)}get(g){let y;return this.values_&&this.values_.hasOwnProperty(g)&&(y=this.values_[g]),y}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}hasProperties(){return!!this.values_}notify(g,y){let b;b=`change:${g}`,this.hasListener(b)&&this.dispatchEvent(new h(b,g,y)),b=s.Z.PROPERTYCHANGE,this.hasListener(b)&&this.dispatchEvent(new h(b,g,y))}addChangeListener(g,y){this.addEventListener(`change:${g}`,y)}removeChangeListener(g,y){this.removeEventListener(`change:${g}`,y)}set(g,y,b){const E=this.values_||(this.values_={});if(b)E[g]=y;else{const S=E[g];E[g]=y,S!==y&&this.notify(g,S)}}setProperties(g,y){for(const b in g)this.set(b,g[b],y)}applyProperties(g){g.values_&&Object.assign(this.values_||(this.values_={}),g.values_)}unset(g,y){if(this.values_&&g in this.values_){const b=this.values_[g];delete this.values_[g],(0,l.x)(this.values_)&&(this.values_=null),y||this.notify(g,b)}}}const d=p},26657:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});const i={PROPERTYCHANGE:"propertychange"}},90346:(C,c,t)=>{"use strict";t.d(c,{B:()=>l,Z:()=>h});var i=t(17793),s=t(21750),u=t(67314);class v extends i.Z{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(s.Z.CHANGE)}getRevision(){return this.revision_}onInternal(d,f){if(Array.isArray(d)){const g=d.length,y=new Array(g);for(let b=0;b<g;++b)y[b]=(0,u.oL)(this,d[b],f);return y}return(0,u.oL)(this,d,f)}onceInternal(d,f){let g;if(Array.isArray(d)){const y=d.length;g=new Array(y);for(let b=0;b<y;++b)g[b]=(0,u.Vx)(this,d[b],f)}else g=(0,u.Vx)(this,d,f);return f.ol_key=g,g}unInternal(d,f){const g=f.ol_key;if(g)l(g);else if(Array.isArray(d))for(let y=0,b=d.length;y<b;++y)this.removeEventListener(d[y],f);else this.removeEventListener(d,f)}}v.prototype.on,v.prototype.once,v.prototype.un;function l(p){if(Array.isArray(p))for(let d=0,f=p.length;d<f;++d)(0,u.bN)(p[d]);else(0,u.bN)(p)}const h=v},11719:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});const i={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},53917:(C,c,t)=>{"use strict";t.d(c,{ZP:()=>J});var i=t(42133),s=t(18637);const u={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var v=t(16257),l=t(29209),h=t(41875),p=t(44445),d=t(30998),f=t(73863);function g(q,L,$){return function(k,F,V,pe,ce){if(!k)return;if(!F&&!L)return k;const G=L?0:V[0]*F,te=L?0:V[1]*F,ie=ce?ce[0]:0,fe=ce?ce[1]:0;let Se=q[0]+G/2+ie,he=q[2]-G/2+ie,me=q[1]+te/2+fe,_e=q[3]-te/2+fe;Se>he&&(Se=(he+Se)/2,he=Se),me>_e&&(me=(_e+me)/2,_e=me);let we=(0,f.uZ)(k[0],Se,he),Ge=(0,f.uZ)(k[1],me,_e);if(pe&&$&&F){const ht=30*F;we+=-ht*Math.log(1+Math.max(0,Se-k[0])/ht)+ht*Math.log(1+Math.max(0,k[0]-he)/ht),Ge+=-ht*Math.log(1+Math.max(0,me-k[1])/ht)+ht*Math.log(1+Math.max(0,k[1]-_e)/ht)}return[we,Ge]}}function y(q){return q}var b=t(70328),E=t(83441);function S(q,L,$,k){const F=(0,b.dz)(L)/$[0],V=(0,b.Cr)(L)/$[1];return k?Math.min(q,Math.max(F,V)):Math.min(q,Math.min(F,V))}function w(q,L,$){let k=Math.min(q,L);const F=50;return k*=Math.log(1+F*Math.max(0,q/L-1))/F+1,$&&(k=Math.max(k,$),k/=Math.log(1+F*Math.max(0,$/q-1))/F+1),(0,f.uZ)(k,$/2,L*2)}function x(q,L,$,k){return L=L!==void 0?L:!0,function(F,V,pe,ce){if(F!==void 0){const G=q[0],te=q[q.length-1],ie=$?S(G,$,pe,k):G;if(ce)return L?w(F,ie,te):(0,f.uZ)(F,te,ie);const fe=Math.min(ie,F),Se=Math.floor((0,E.h7)(q,fe,V));return q[Se]>ie&&Se<q.length-1?q[Se+1]:q[Se]}}}function P(q,L,$,k,F,V){return k=k!==void 0?k:!0,$=$!==void 0?$:0,function(pe,ce,G,te){if(pe!==void 0){const ie=F?S(L,F,G,V):L;if(te)return k?w(pe,ie,$):(0,f.uZ)(pe,$,ie);const fe=1e-9,Se=Math.ceil(Math.log(L/ie)/Math.log(q)-fe),he=-ce*(.5-fe)+.5,me=Math.min(ie,pe),_e=Math.floor(Math.log(L/me)/Math.log(q)+he),we=Math.max(Se,_e),Ge=L/Math.pow(q,we);return(0,f.uZ)(Ge,$,ie)}}}function R(q,L,$,k,F){return $=$!==void 0?$:!0,function(V,pe,ce,G){if(V!==void 0){const te=k?S(q,k,ce,F):q;return!$||!G?(0,f.uZ)(V,L,te):w(V,te,L)}}}var T=t(80593),A=t(43896),I=t(27349);const N=0;class K extends i.Z{constructor(L){super(),this.on,this.once,this.un,L=Object.assign({},L),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,l.UQ)(L.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,L.projection&&(0,l.h_)(),L.center&&(L.center=(0,l.Vs)(L.center,this.projection_)),L.extent&&(L.extent=(0,l.dY)(L.extent,this.projection_)),this.applyOptions_(L)}applyOptions_(L){const $=Object.assign({},L);for(const ce in u)delete $[ce];this.setProperties($,!0);const k=j(L);this.maxResolution_=k.maxResolution,this.minResolution_=k.minResolution,this.zoomFactor_=k.zoomFactor,this.resolutions_=L.resolutions,this.padding_=L.padding,this.minZoom_=k.minZoom;const F=W(L),V=k.constraint,pe=re(L);this.constraints_={center:F,resolution:V,rotation:pe},this.setRotation(L.rotation!==void 0?L.rotation:0),this.setCenterInternal(L.center!==void 0?L.center:null),L.resolution!==void 0?this.setResolution(L.resolution):L.zoom!==void 0&&this.setZoom(L.zoom)}get padding(){return this.padding_}set padding(L){let $=this.padding_;this.padding_=L;const k=this.getCenterInternal();if(k){const F=L||[0,0,0,0];$=$||[0,0,0,0];const V=this.getResolution(),pe=V/2*(F[3]-$[3]+$[1]-F[1]),ce=V/2*(F[0]-$[0]+$[2]-F[2]);this.setCenterInternal([k[0]+pe,k[1]-ce])}}getUpdatedOptions_(L){const $=this.getProperties();return $.resolution!==void 0?$.resolution=this.getResolution():$.zoom=this.getZoom(),$.center=this.getCenterInternal(),$.rotation=this.getRotation(),Object.assign({},$,L)}animate(L){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const $=new Array(arguments.length);for(let k=0;k<$.length;++k){let F=arguments[k];F.center&&(F=Object.assign({},F),F.center=(0,l.Vs)(F.center,this.getProjection())),F.anchor&&(F=Object.assign({},F),F.anchor=(0,l.Vs)(F.anchor,this.getProjection())),$[k]=F}this.animateInternal.apply(this,$)}animateInternal(L){let $=arguments.length,k;$>1&&typeof arguments[$-1]=="function"&&(k=arguments[$-1],--$);let F=0;for(;F<$&&!this.isDef();++F){const ie=arguments[F];ie.center&&this.setCenterInternal(ie.center),ie.zoom!==void 0?this.setZoom(ie.zoom):ie.resolution&&this.setResolution(ie.resolution),ie.rotation!==void 0&&this.setRotation(ie.rotation)}if(F===$){k&&_(k,!0);return}let V=Date.now(),pe=this.targetCenter_.slice(),ce=this.targetResolution_,G=this.targetRotation_;const te=[];for(;F<$;++F){const ie=arguments[F],fe={start:V,complete:!1,anchor:ie.anchor,duration:ie.duration!==void 0?ie.duration:1e3,easing:ie.easing||A.rd,callback:k};if(ie.center&&(fe.sourceCenter=pe,fe.targetCenter=ie.center.slice(),pe=fe.targetCenter),ie.zoom!==void 0?(fe.sourceResolution=ce,fe.targetResolution=this.getResolutionForZoom(ie.zoom),ce=fe.targetResolution):ie.resolution&&(fe.sourceResolution=ce,fe.targetResolution=ie.resolution,ce=fe.targetResolution),ie.rotation!==void 0){fe.sourceRotation=G;const Se=(0,f.$W)(ie.rotation-G+Math.PI,2*Math.PI)-Math.PI;fe.targetRotation=G+Se,G=fe.targetRotation}X(fe)?fe.complete=!0:V+=fe.duration,te.push(fe)}this.animations_.push(te),this.setHint(s.Z.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[s.Z.ANIMATING]>0}getInteracting(){return this.hints_[s.Z.INTERACTING]>0}cancelAnimations(){this.setHint(s.Z.ANIMATING,-this.hints_[s.Z.ANIMATING]);let L;for(let $=0,k=this.animations_.length;$<k;++$){const F=this.animations_[$];if(F[0].callback&&_(F[0].callback,!1),!L)for(let V=0,pe=F.length;V<pe;++V){const ce=F[V];if(!ce.complete){L=ce.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=L,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(this.updateAnimationKey_!==void 0&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;const L=Date.now();let $=!1;for(let k=this.animations_.length-1;k>=0;--k){const F=this.animations_[k];let V=!0;for(let pe=0,ce=F.length;pe<ce;++pe){const G=F[pe];if(G.complete)continue;const te=L-G.start;let ie=G.duration>0?te/G.duration:1;ie>=1?(G.complete=!0,ie=1):V=!1;const fe=G.easing(ie);if(G.sourceCenter){const Se=G.sourceCenter[0],he=G.sourceCenter[1],me=G.targetCenter[0],_e=G.targetCenter[1];this.nextCenter_=G.targetCenter;const we=Se+fe*(me-Se),Ge=he+fe*(_e-he);this.targetCenter_=[we,Ge]}if(G.sourceResolution&&G.targetResolution){const Se=fe===1?G.targetResolution:G.sourceResolution+fe*(G.targetResolution-G.sourceResolution);if(G.anchor){const he=this.getViewportSize_(this.getRotation()),me=this.constraints_.resolution(Se,0,he,!0);this.targetCenter_=this.calculateCenterZoom(me,G.anchor)}this.nextResolution_=G.targetResolution,this.targetResolution_=Se,this.applyTargetState_(!0)}if(G.sourceRotation!==void 0&&G.targetRotation!==void 0){const Se=fe===1?(0,f.$W)(G.targetRotation+Math.PI,2*Math.PI)-Math.PI:G.sourceRotation+fe*(G.targetRotation-G.sourceRotation);if(G.anchor){const he=this.constraints_.rotation(Se,!0);this.targetCenter_=this.calculateCenterRotate(he,G.anchor)}this.nextRotation_=G.targetRotation,this.targetRotation_=Se}if(this.applyTargetState_(!0),$=!0,!G.complete)break}if(V){this.animations_[k]=null,this.setHint(s.Z.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const pe=F[0].callback;pe&&_(pe,!0)}}this.animations_=this.animations_.filter(Boolean),$&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(L,$){let k;const F=this.getCenterInternal();return F!==void 0&&(k=[F[0]-$[0],F[1]-$[1]],(0,p.U1)(k,L-this.getRotation()),(0,p.IH)(k,$)),k}calculateCenterZoom(L,$){let k;const F=this.getCenterInternal(),V=this.getResolution();if(F!==void 0&&V!==void 0){const pe=$[0]-L*($[0]-F[0])/V,ce=$[1]-L*($[1]-F[1])/V;k=[pe,ce]}return k}getViewportSize_(L){const $=this.viewportSize_;if(L){const k=$[0],F=$[1];return[Math.abs(k*Math.cos(L))+Math.abs(F*Math.sin(L)),Math.abs(k*Math.sin(L))+Math.abs(F*Math.cos(L))]}return $}setViewportSize(L){this.viewportSize_=Array.isArray(L)?L.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const L=this.getCenterInternal();return L&&(0,l.lO)(L,this.getProjection())}getCenterInternal(){return this.get(u.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(L){return L!==void 0?(L[0]=this.hints_[0],L[1]=this.hints_[1],L):this.hints_.slice()}calculateExtent(L){const $=this.calculateExtentInternal(L);return(0,l.Fj)($,this.getProjection())}calculateExtentInternal(L){L=L||this.getViewportSizeMinusPadding_();const $=this.getCenterInternal();(0,d.h)($,1);const k=this.getResolution();(0,d.h)(k!==void 0,2);const F=this.getRotation();return(0,d.h)(F!==void 0,3),(0,b.p8)($,k,F,L)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(L){this.applyOptions_(this.getUpdatedOptions_({maxZoom:L}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(L){this.applyOptions_(this.getUpdatedOptions_({minZoom:L}))}setConstrainResolution(L){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:L}))}getProjection(){return this.projection_}getResolution(){return this.get(u.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(L,$){return this.getResolutionForExtentInternal((0,l.dY)(L,this.getProjection()),$)}getResolutionForExtentInternal(L,$){$=$||this.getViewportSizeMinusPadding_();const k=(0,b.dz)(L)/$[0],F=(0,b.Cr)(L)/$[1];return Math.max(k,F)}getResolutionForValueFunction(L){L=L||2;const $=this.getConstrainedResolution(this.maxResolution_),k=this.minResolution_,F=Math.log($/k)/Math.log(L);return function(V){return $/Math.pow(L,V*F)}}getRotation(){return this.get(u.ROTATION)}getValueForResolutionFunction(L){const $=Math.log(L||2),k=this.getConstrainedResolution(this.maxResolution_),F=this.minResolution_,V=Math.log(k/F)/$;return function(pe){return Math.log(k/pe)/$/V}}getViewportSizeMinusPadding_(L){let $=this.getViewportSize_(L);const k=this.padding_;return k&&($=[$[0]-k[1]-k[3],$[1]-k[0]-k[2]]),$}getState(){const L=this.getProjection(),$=this.getResolution(),k=this.getRotation();let F=this.getCenterInternal();const V=this.padding_;if(V){const pe=this.getViewportSizeMinusPadding_();F=Z(F,this.getViewportSize_(),[pe[0]/2+V[3],pe[1]/2+V[0]],$,k)}return{center:F.slice(0),projection:L!==void 0?L:null,resolution:$,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:k,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let L;const $=this.getResolution();return $!==void 0&&(L=this.getZoomForResolution($)),L}getZoomForResolution(L){let $=this.minZoom_||0,k,F;if(this.resolutions_){const V=(0,E.h7)(this.resolutions_,L,1);$=V,k=this.resolutions_[V],V==this.resolutions_.length-1?F=2:F=k/this.resolutions_[V+1]}else k=this.maxResolution_,F=this.zoomFactor_;return $+Math.log(k/L)/Math.log(F)}getResolutionForZoom(L){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const $=(0,f.uZ)(Math.floor(L),0,this.resolutions_.length-2),k=this.resolutions_[$]/this.resolutions_[$+1];return this.resolutions_[$]/Math.pow(k,(0,f.uZ)(L-$,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,L-this.minZoom_)}fit(L,$){let k;if((0,d.h)(Array.isArray(L)||typeof L.getSimplifiedGeometry=="function",24),Array.isArray(L)){(0,d.h)(!(0,b.xb)(L),25);const F=(0,l.dY)(L,this.getProjection());k=(0,I.oJ)(F)}else if(L.getType()==="Circle"){const F=(0,l.dY)(L.getExtent(),this.getProjection());k=(0,I.oJ)(F),k.rotate(this.getRotation(),(0,b.qg)(F))}else{const F=(0,l.Cs)();F?k=L.clone().transform(F,this.getProjection()):k=L}this.fitInternal(k,$)}rotatedExtentForGeometry(L){const $=this.getRotation(),k=Math.cos($),F=Math.sin(-$),V=L.getFlatCoordinates(),pe=L.getStride();let ce=1/0,G=1/0,te=-1/0,ie=-1/0;for(let fe=0,Se=V.length;fe<Se;fe+=pe){const he=V[fe]*k-V[fe+1]*F,me=V[fe]*F+V[fe+1]*k;ce=Math.min(ce,he),G=Math.min(G,me),te=Math.max(te,he),ie=Math.max(ie,me)}return[ce,G,te,ie]}fitInternal(L,$){$=$||{};let k=$.size;k||(k=this.getViewportSizeMinusPadding_());const F=$.padding!==void 0?$.padding:[0,0,0,0],V=$.nearest!==void 0?$.nearest:!1;let pe;$.minResolution!==void 0?pe=$.minResolution:$.maxZoom!==void 0?pe=this.getResolutionForZoom($.maxZoom):pe=0;const ce=this.rotatedExtentForGeometry(L);let G=this.getResolutionForExtentInternal(ce,[k[0]-F[1]-F[3],k[1]-F[0]-F[2]]);G=isNaN(G)?pe:Math.max(G,pe),G=this.getConstrainedResolution(G,V?0:1);const te=this.getRotation(),ie=Math.sin(te),fe=Math.cos(te),Se=(0,b.qg)(ce);Se[0]+=(F[1]-F[3])/2*G,Se[1]+=(F[0]-F[2])/2*G;const he=Se[0]*fe-Se[1]*ie,me=Se[1]*fe+Se[0]*ie,_e=this.getConstrainedCenter([he,me],G),we=$.callback?$.callback:h.Zn;$.duration!==void 0?this.animateInternal({resolution:G,center:_e,duration:$.duration,easing:$.easing},we):(this.targetResolution_=G,this.targetCenter_=_e,this.applyTargetState_(!1,!0),_(we,!0))}centerOn(L,$,k){this.centerOnInternal((0,l.Vs)(L,this.getProjection()),$,k)}centerOnInternal(L,$,k){this.setCenterInternal(Z(L,$,k,this.getResolution(),this.getRotation()))}calculateCenterShift(L,$,k,F){let V;const pe=this.padding_;if(pe&&L){const ce=this.getViewportSizeMinusPadding_(-k),G=Z(L,F,[ce[0]/2+pe[3],ce[1]/2+pe[0]],$,k);V=[L[0]-G[0],L[1]-G[1]]}return V}isDef(){return!!this.getCenterInternal()&&this.getResolution()!==void 0}adjustCenter(L){const $=(0,l.lO)(this.targetCenter_,this.getProjection());this.setCenter([$[0]+L[0],$[1]+L[1]])}adjustCenterInternal(L){const $=this.targetCenter_;this.setCenterInternal([$[0]+L[0],$[1]+L[1]])}adjustResolution(L,$){$=$&&(0,l.Vs)($,this.getProjection()),this.adjustResolutionInternal(L,$)}adjustResolutionInternal(L,$){const k=this.getAnimating()||this.getInteracting(),F=this.getViewportSize_(this.getRotation()),V=this.constraints_.resolution(this.targetResolution_*L,0,F,k);$&&(this.targetCenter_=this.calculateCenterZoom(V,$)),this.targetResolution_*=L,this.applyTargetState_()}adjustZoom(L,$){this.adjustResolution(Math.pow(this.zoomFactor_,-L),$)}adjustRotation(L,$){$&&($=(0,l.Vs)($,this.getProjection())),this.adjustRotationInternal(L,$)}adjustRotationInternal(L,$){const k=this.getAnimating()||this.getInteracting(),F=this.constraints_.rotation(this.targetRotation_+L,k);$&&(this.targetCenter_=this.calculateCenterRotate(F,$)),this.targetRotation_+=L,this.applyTargetState_()}setCenter(L){this.setCenterInternal(L&&(0,l.Vs)(L,this.getProjection()))}setCenterInternal(L){this.targetCenter_=L,this.applyTargetState_()}setHint(L,$){return this.hints_[L]+=$,this.changed(),this.hints_[L]}setResolution(L){this.targetResolution_=L,this.applyTargetState_()}setRotation(L){this.targetRotation_=L,this.applyTargetState_()}setZoom(L){this.setResolution(this.getResolutionForZoom(L))}applyTargetState_(L,$){const k=this.getAnimating()||this.getInteracting()||$,F=this.constraints_.rotation(this.targetRotation_,k),V=this.getViewportSize_(F),pe=this.constraints_.resolution(this.targetResolution_,0,V,k),ce=this.constraints_.center(this.targetCenter_,pe,V,k,this.calculateCenterShift(this.targetCenter_,pe,F,V));this.get(u.ROTATION)!==F&&this.set(u.ROTATION,F),this.get(u.RESOLUTION)!==pe&&(this.set(u.RESOLUTION,pe),this.set("zoom",this.getZoom(),!0)),(!ce||!this.get(u.CENTER)||!(0,p.fS)(this.get(u.CENTER),ce))&&this.set(u.CENTER,ce),this.getAnimating()&&!L&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(L,$,k){L=L!==void 0?L:200;const F=$||0,V=this.constraints_.rotation(this.targetRotation_),pe=this.getViewportSize_(V),ce=this.constraints_.resolution(this.targetResolution_,F,pe),G=this.constraints_.center(this.targetCenter_,ce,pe,!1,this.calculateCenterShift(this.targetCenter_,ce,V,pe));if(L===0&&!this.cancelAnchor_){this.targetResolution_=ce,this.targetRotation_=V,this.targetCenter_=G,this.applyTargetState_();return}k=k||(L===0?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,(this.getResolution()!==ce||this.getRotation()!==V||!this.getCenterInternal()||!(0,p.fS)(this.getCenterInternal(),G))&&(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:V,center:G,resolution:ce,duration:L,easing:A.Vv,anchor:k}))}beginInteraction(){this.resolveConstraints(0),this.setHint(s.Z.INTERACTING,1)}endInteraction(L,$,k){k=k&&(0,l.Vs)(k,this.getProjection()),this.endInteractionInternal(L,$,k)}endInteractionInternal(L,$,k){this.getInteracting()&&(this.setHint(s.Z.INTERACTING,-1),this.resolveConstraints(L,$,k))}getConstrainedCenter(L,$){const k=this.getViewportSize_(this.getRotation());return this.constraints_.center(L,$||this.getResolution(),k)}getConstrainedZoom(L,$){const k=this.getResolutionForZoom(L);return this.getZoomForResolution(this.getConstrainedResolution(k,$))}getConstrainedResolution(L,$){$=$||0;const k=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(L,$,k)}}function _(q,L){setTimeout(function(){q(L)},0)}function W(q){if(q.extent!==void 0){const $=q.smoothExtentConstraint!==void 0?q.smoothExtentConstraint:!0;return g(q.extent,q.constrainOnlyCenter,$)}const L=(0,l.UQ)(q.projection,"EPSG:3857");if(q.multiWorld!==!0&&L.isGlobal()){const $=L.getExtent().slice();return $[0]=-1/0,$[2]=1/0,g($,!1,!1)}return y}function j(q){let L,$,k,pe=q.minZoom!==void 0?q.minZoom:N,ce=q.maxZoom!==void 0?q.maxZoom:28;const G=q.zoomFactor!==void 0?q.zoomFactor:2,te=q.multiWorld!==void 0?q.multiWorld:!1,ie=q.smoothResolutionConstraint!==void 0?q.smoothResolutionConstraint:!0,fe=q.showFullExtent!==void 0?q.showFullExtent:!1,Se=(0,l.UQ)(q.projection,"EPSG:3857"),he=Se.getExtent();let me=q.constrainOnlyCenter,_e=q.extent;if(!te&&!_e&&Se.isGlobal()&&(me=!1,_e=he),q.resolutions!==void 0){const we=q.resolutions;$=we[pe],k=we[ce]!==void 0?we[ce]:we[we.length-1],q.constrainResolution?L=x(we,ie,!me&&_e,fe):L=R($,k,ie,!me&&_e,fe)}else{const Ge=(he?Math.max((0,b.dz)(he),(0,b.Cr)(he)):360*l.Wm.degrees/Se.getMetersPerUnit())/v.S/Math.pow(2,N),ht=Ge/Math.pow(2,28-N);$=q.maxResolution,$!==void 0?pe=0:$=Ge/Math.pow(G,pe),k=q.minResolution,k===void 0&&(q.maxZoom!==void 0?q.maxResolution!==void 0?k=$/Math.pow(G,ce):k=Ge/Math.pow(G,ce):k=ht),ce=pe+Math.floor(Math.log($/k)/Math.log(G)),k=$/Math.pow(G,ce-pe),q.constrainResolution?L=P(G,$,k,ie,!me&&_e,fe):L=R($,k,ie,!me&&_e,fe)}return{constraint:L,maxResolution:$,minResolution:k,minZoom:pe,zoomFactor:G}}function re(q){if(q.enableRotation!==void 0?q.enableRotation:!0){const $=q.constrainRotation;return $===void 0||$===!0?(0,T.Gw)():$===!1?T.YP:typeof $=="number"?(0,T.gE)($):T.YP}return T.h$}function X(q){return!(q.sourceCenter&&q.targetCenter&&!(0,p.fS)(q.sourceCenter,q.targetCenter)||q.sourceResolution!==q.targetResolution||q.sourceRotation!==q.targetRotation)}function Z(q,L,$,k,F){const V=Math.cos(-F);let pe=Math.sin(-F),ce=q[0]*V-q[1]*pe,G=q[1]*V+q[0]*pe;ce+=(L[0]/2-$[0])*k,G+=($[1]-L[1]/2)*k,pe=-pe;const te=ce*V-G*pe,ie=G*V+ce*pe;return[te,ie]}const J=K},18637:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});const i={ANIMATING:0,INTERACTING:1}},83441:(C,c,t)=>{"use strict";t.d(c,{FZ:()=>v,fS:()=>p,h7:()=>u,j2:()=>s,l7:()=>l,pT:()=>f,ry:()=>i});function i(g,y,b){let E,S;b=b||s;let w=0,x=g.length,P=!1;for(;w<x;)E=w+(x-w>>1),S=+b(g[E],y),S<0?w=E+1:(x=E,P=!S);return P?w:~w}function s(g,y){return g>y?1:g<y?-1:0}function u(g,y,b){if(g[0]<=y)return 0;const E=g.length;if(y<=g[E-1])return E-1;if(typeof b=="function"){for(let S=1;S<E;++S){const w=g[S];if(w===y)return S;if(w<y)return b(y,g[S-1],w)>0?S-1:S}return E-1}if(b>0){for(let S=1;S<E;++S)if(g[S]<y)return S-1;return E-1}if(b<0){for(let S=1;S<E;++S)if(g[S]<=y)return S;return E-1}for(let S=1;S<E;++S){if(g[S]==y)return S;if(g[S]<y)return g[S-1]-y<y-g[S]?S-1:S}return E-1}function v(g,y,b){for(;y<b;){const E=g[y];g[y]=g[b],g[b]=E,++y,--b}}function l(g,y){const b=Array.isArray(y)?y:[y],E=b.length;for(let S=0;S<E;S++)g[g.length]=b[S]}function h(g,y){const b=g.indexOf(y),E=b>-1;return E&&g.splice(b,1),E}function p(g,y){const b=g.length;if(b!==y.length)return!1;for(let E=0;E<b;E++)if(g[E]!==y[E])return!1;return!0}function d(g,y){const b=g.length,E=Array(g.length);let S;for(S=0;S<b;S++)E[S]={index:S,value:g[S]};for(E.sort(function(w,x){return y(w.value,x.value)||w.index-x.index}),S=0;S<g.length;S++)g[S]=E[S].value}function f(g,y,b){const E=y||s;return g.every(function(S,w){if(w===0)return!0;const x=E(g[w-1],S);return!(x>0||b&&x===0)})}},30998:(C,c,t)=>{"use strict";t.d(c,{h:()=>s});var i=t(62715);function s(u,v){if(!u)throw new i.Z(v)}},59844:(C,c,t)=>{"use strict";t.d(c,{BB:()=>y,XC:()=>l,_2:()=>d});var i=t(30998),s=t(73863);const u=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,v=/^([a-z]*)$|^hsla?\(.*\)$/i;function l(E){return typeof E=="string"?E:y(E)}function h(E){const S=document.createElement("div");if(S.style.color=E,S.style.color!==""){document.body.appendChild(S);const w=getComputedStyle(S).color;return document.body.removeChild(S),w}return""}const p=function(){const S={};let w=0;return function(x){let P;if(S.hasOwnProperty(x))P=S[x];else{if(w>=1024){let R=0;for(const T in S)R++&3||(delete S[T],--w)}P=f(x),S[x]=P,++w}return P}}();function d(E){return Array.isArray(E)?E:p(E)}function f(E){let S,w,x,P,R;if(v.exec(E)&&(E=h(E)),u.exec(E)){const T=E.length-1;let A;T<=4?A=1:A=2;const I=T===4||T===8;S=parseInt(E.substr(1+0*A,A),16),w=parseInt(E.substr(1+1*A,A),16),x=parseInt(E.substr(1+2*A,A),16),I?P=parseInt(E.substr(1+3*A,A),16):P=255,A==1&&(S=(S<<4)+S,w=(w<<4)+w,x=(x<<4)+x,I&&(P=(P<<4)+P)),R=[S,w,x,P/255]}else E.startsWith("rgba(")?(R=E.slice(5,-1).split(",").map(Number),g(R)):E.startsWith("rgb(")?(R=E.slice(4,-1).split(",").map(Number),R.push(1),g(R)):(0,i.h)(!1,14);return R}function g(E){return E[0]=(0,s.uZ)(E[0]+.5|0,0,255),E[1]=(0,s.uZ)(E[1]+.5|0,0,255),E[2]=(0,s.uZ)(E[2]+.5|0,0,255),E[3]=(0,s.uZ)(E[3],0,1),E}function y(E){let S=E[0];S!=(S|0)&&(S=S+.5|0);let w=E[1];w!=(w|0)&&(w=w+.5|0);let x=E[2];x!=(x|0)&&(x=x+.5|0);const P=E[3]===void 0?1:Math.round(E[3]*100)/100;return"rgba("+S+","+w+","+x+","+P+")"}function b(E){return v.test(E)&&(E=h(E)),u.test(E)||E.startsWith("rgba(")||E.startsWith("rgb(")}},37198:(C,c,t)=>{"use strict";t.d(c,{ZK:()=>l});const i={info:1,warn:2,error:3,none:4};let s=i.info;function u(p){s=i[p]}function v(...p){s>i.info||console.log(...p)}function l(...p){s>i.warn||console.warn(...p)}function h(...p){s>i.error||console.error(...p)}},77089:(C,c,t)=>{"use strict";t.d(c,{Z:()=>p});var i=t(21314),s=t(21750),u=t(62989),v=t(83441),l=t(43045);class h extends i.Z{constructor(f){f=f||{},super({element:document.createElement("div"),render:f.render,target:f.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=f.collapsed!==void 0?f.collapsed:!0,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=f.collapsible!==void 0,this.collapsible_=f.collapsible!==void 0?f.collapsible:!0,this.collapsible_||(this.collapsed_=!1);const g=f.className!==void 0?f.className:"ol-attribution",y=f.tipLabel!==void 0?f.tipLabel:"Attributions",b=f.expandClassName!==void 0?f.expandClassName:g+"-expand",E=f.collapseLabel!==void 0?f.collapseLabel:"\u203A",S=f.collapseClassName!==void 0?f.collapseClassName:g+"-collapse";typeof E=="string"?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=E,this.collapseLabel_.className=S):this.collapseLabel_=E;const w=f.label!==void 0?f.label:"i";typeof w=="string"?(this.label_=document.createElement("span"),this.label_.textContent=w,this.label_.className=b):this.label_=w;const x=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=y,this.toggleButton_.appendChild(x),this.toggleButton_.addEventListener(s.Z.CLICK,this.handleClick_.bind(this),!1);const P=g+" "+u.XV+" "+u.hg+(this.collapsed_&&this.collapsible_?" "+u.hN:"")+(this.collapsible_?"":" ol-uncollapsible"),R=this.element;R.className=P,R.appendChild(this.toggleButton_),R.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(f){const g=Array.from(new Set(this.getMap().getAllLayers().flatMap(b=>b.getAttributions(f)))),y=!this.getMap().getAllLayers().some(b=>b.getSource()&&b.getSource().getAttributionsCollapsible()===!1);return this.overrideCollapsible_||this.setCollapsible(y),g}updateElement_(f){if(!f){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const g=this.collectSourceAttributions_(f),y=g.length>0;if(this.renderedVisible_!=y&&(this.element.style.display=y?"":"none",this.renderedVisible_=y),!(0,v.fS)(g,this.renderedAttributions_)){(0,l.ep)(this.ulElement_);for(let b=0,E=g.length;b<E;++b){const S=document.createElement("li");S.innerHTML=g[b],this.ulElement_.appendChild(S)}this.renderedAttributions_=g}}handleClick_(f){f.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(u.hN),this.collapsed_?(0,l.$H)(this.collapseLabel_,this.label_):(0,l.$H)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(f){this.collapsible_!==f&&(this.collapsible_=f,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(f){this.userCollapsed_=f,!(!this.collapsible_||this.collapsed_===f)&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(f){this.updateElement_(f.frameState)}}const p=h},21314:(C,c,t)=>{"use strict";t.d(c,{Z:()=>p});var i=t(42133),s=t(5585),u=t(41875),v=t(67314),l=t(43045);class h extends i.Z{constructor(f){super();const g=f.element;g&&!f.target&&!g.style.pointerEvents&&(g.style.pointerEvents="auto"),this.element=g||null,this.target_=null,this.map_=null,this.listenerKeys=[],f.render&&(this.render=f.render),f.target&&this.setTarget(f.target)}disposeInternal(){(0,l.ZF)(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(f){this.map_&&(0,l.ZF)(this.element);for(let g=0,y=this.listenerKeys.length;g<y;++g)(0,v.bN)(this.listenerKeys[g]);this.listenerKeys.length=0,this.map_=f,f&&((this.target_?this.target_:f.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==u.Zn&&this.listenerKeys.push((0,v.oL)(f,s.Z.POSTRENDER,this.render,this)),f.render())}render(f){}setTarget(f){this.target_=typeof f=="string"?document.getElementById(f):f}}const p=h},54052:(C,c,t)=>{"use strict";t.d(c,{Z:()=>h});var i=t(21314),s=t(21750),u=t(62989),v=t(43896);class l extends i.Z{constructor(d){d=d||{},super({element:document.createElement("div"),target:d.target});const f=d.className!==void 0?d.className:"ol-zoom",g=d.delta!==void 0?d.delta:1,y=d.zoomInClassName!==void 0?d.zoomInClassName:f+"-in",b=d.zoomOutClassName!==void 0?d.zoomOutClassName:f+"-out",E=d.zoomInLabel!==void 0?d.zoomInLabel:"+",S=d.zoomOutLabel!==void 0?d.zoomOutLabel:"\u2013",w=d.zoomInTipLabel!==void 0?d.zoomInTipLabel:"Zoom in",x=d.zoomOutTipLabel!==void 0?d.zoomOutTipLabel:"Zoom out",P=document.createElement("button");P.className=y,P.setAttribute("type","button"),P.title=w,P.appendChild(typeof E=="string"?document.createTextNode(E):E),P.addEventListener(s.Z.CLICK,this.handleClick_.bind(this,g),!1);const R=document.createElement("button");R.className=b,R.setAttribute("type","button"),R.title=x,R.appendChild(typeof S=="string"?document.createTextNode(S):S),R.addEventListener(s.Z.CLICK,this.handleClick_.bind(this,-g),!1);const T=f+" "+u.XV+" "+u.hg,A=this.element;A.className=T,A.appendChild(P),A.appendChild(R),this.duration_=d.duration!==void 0?d.duration:250}handleClick_(d,f){f.preventDefault(),this.zoomByDelta_(d)}zoomByDelta_(d){const g=this.getMap().getView();if(!g)return;const y=g.getZoom();if(y!==void 0){const b=g.getConstrainedZoom(y+d);this.duration_>0?(g.getAnimating()&&g.cancelAnimations(),g.animate({zoom:b,duration:this.duration_,easing:v.Vv})):g.setZoom(b)}}}const h=l},44445:(C,c,t)=>{"use strict";t.d(c,{Bs:()=>E,Cf:()=>x,IH:()=>s,TE:()=>b,U1:()=>f,bA:()=>g,bI:()=>y,fS:()=>d,oL:()=>v});var i=t(70328);function s(R,T){return R[0]+=+T[0],R[1]+=+T[1],R}function u(R,T){const A=T.getRadius(),I=T.getCenter(),N=I[0],K=I[1],_=R[0],W=R[1];let j=_-N;const re=W-K;j===0&&re===0&&(j=1);const X=Math.sqrt(j*j+re*re),Z=N+A*j/X,J=K+A*re/X;return[Z,J]}function v(R,T){const A=R[0],I=R[1],N=T[0],K=T[1],_=N[0],W=N[1],j=K[0],re=K[1],X=j-_,Z=re-W,J=X===0&&Z===0?0:(X*(A-_)+Z*(I-W))/(X*X+Z*Z||0);let q,L;return J<=0?(q=_,L=W):J>=1?(q=j,L=re):(q=_+J*X,L=W+J*Z),[q,L]}function l(R){return function(T){return w(T,R)}}function h(R,T,A){const I=modulo(T+180,360)-180,N=Math.abs(3600*I),K=A||0;let _=Math.floor(N/3600),W=Math.floor((N-_*3600)/60),j=toFixed(N-_*3600-W*60,K);j>=60&&(j=0,W+=1),W>=60&&(W=0,_+=1);let re=_+"\xB0";return(W!==0||j!==0)&&(re+=" "+padNumber(W,2)+"\u2032"),j!==0&&(re+=" "+padNumber(j,2,K)+"\u2033"),I!==0&&(re+=" "+R.charAt(I<0?1:0)),re}function p(R,T,A){return R?T.replace("{x}",R[0].toFixed(A)).replace("{y}",R[1].toFixed(A)):""}function d(R,T){let A=!0;for(let I=R.length-1;I>=0;--I)if(R[I]!=T[I]){A=!1;break}return A}function f(R,T){const A=Math.cos(T),I=Math.sin(T),N=R[0]*A-R[1]*I,K=R[1]*A+R[0]*I;return R[0]=N,R[1]=K,R}function g(R,T){return R[0]*=T,R[1]*=T,R}function y(R,T){const A=R[0]-T[0],I=R[1]-T[1];return A*A+I*I}function b(R,T){return Math.sqrt(y(R,T))}function E(R,T){return y(R,v(R,T))}function S(R,T){return R?h("NS",R[1],T)+" "+h("EW",R[0],T):""}function w(R,T){return p(R,"{x}, {y}",T)}function x(R,T){if(T.canWrapX()){const A=(0,i.dz)(T.getExtent()),I=P(R,T,A);I&&(R[0]-=I*A)}return R}function P(R,T,A){const I=T.getExtent();let N=0;return T.canWrapX()&&(R[0]<I[0]||R[0]>I[2])&&(A=A||(0,i.dz)(I),N=Math.floor((R[0]-I[0])/A)),N}},62989:(C,c,t)=>{"use strict";t.d(c,{XV:()=>u,hN:()=>h,hg:()=>l,oj:()=>i,p:()=>f});const i="ol-hidden",s="ol-selectable",u="ol-unselectable",v="ol-unsupported",l="ol-control",h="ol-collapsed",p=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z]+?)\\s*$`].join(""),"i"),d=["style","variant","weight","size","lineHeight","family"],f=function(g){const y=g.match(p);if(!y)return null;const b={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let E=0,S=d.length;E<S;++E){const w=y[E+1];w!==void 0&&(b[d[E]]=w)}return b.families=b.family.split(/,\s?/),b}},43045:(C,c,t)=>{"use strict";t.d(c,{$H:()=>h,E4:()=>s,ZF:()=>p,ep:()=>d,hF:()=>f,jy:()=>u});var i=t(90738);function s(g,y,b,E){let S;return b&&b.length?S=b.shift():i.Id?S=new OffscreenCanvas(g||300,y||300):S=document.createElement("canvas"),g&&(S.width=g),y&&(S.height=y),S.getContext("2d",E)}function u(g){const y=g.canvas;y.width=1,y.height=1,g.clearRect(0,0,1,1)}function v(g){let y=g.offsetWidth;const b=getComputedStyle(g);return y+=parseInt(b.marginLeft,10)+parseInt(b.marginRight,10),y}function l(g){let y=g.offsetHeight;const b=getComputedStyle(g);return y+=parseInt(b.marginTop,10)+parseInt(b.marginBottom,10),y}function h(g,y){const b=y.parentNode;b&&b.replaceChild(g,y)}function p(g){return g&&g.parentNode?g.parentNode.removeChild(g):null}function d(g){for(;g.lastChild;)g.removeChild(g.lastChild)}function f(g,y){const b=g.childNodes;for(let E=0;;++E){const S=b[E],w=y[E];if(!S&&!w)break;if(S!==w){if(!S){g.appendChild(w);continue}if(!w){g.removeChild(S),--E;continue}g.insertBefore(w,S)}}}},43896:(C,c,t)=>{"use strict";t.d(c,{GE:()=>v,Vv:()=>s,YQ:()=>i,rd:()=>u});function i(h){return Math.pow(h,3)}function s(h){return 1-i(1-h)}function u(h){return 3*h*h-2*h*h*h}function v(h){return h}function l(h){return h<.5?u(2*h):1-u(2*(h-.5))}},67314:(C,c,t)=>{"use strict";t.d(c,{Vx:()=>u,bN:()=>v,oL:()=>s});var i=t(36095);function s(l,h,p,d,f){if(d&&d!==l&&(p=p.bind(d)),f){const y=p;p=function(){l.removeEventListener(h,p),y.apply(this,arguments)}}const g={target:l,type:h,listener:p};return l.addEventListener(h,p),g}function u(l,h,p,d){return s(l,h,p,d,!0)}function v(l){l&&l.target&&(l.target.removeEventListener(l.type,l.listener),(0,i.Z)(l))}},82723:(C,c,t)=>{"use strict";t.d(c,{ZP:()=>v});class i{constructor(h){this.propagationStopped,this.defaultPrevented,this.type=h,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}function s(l){l.stopPropagation()}function u(l){l.preventDefault()}const v=i},21750:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});const i={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},17793:(C,c,t)=>{"use strict";t.d(c,{Z:()=>h});var i=t(78555),s=t(82723),u=t(41875),v=t(36095);class l extends i.Z{constructor(d){super(),this.eventTarget_=d,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(d,f){if(!d||!f)return;const g=this.listeners_||(this.listeners_={}),y=g[d]||(g[d]=[]);y.includes(f)||y.push(f)}dispatchEvent(d){const f=typeof d=="string",g=f?d:d.type,y=this.listeners_&&this.listeners_[g];if(!y)return;const b=f?new s.ZP(d):d;b.target||(b.target=this.eventTarget_||this);const E=this.dispatching_||(this.dispatching_={}),S=this.pendingRemovals_||(this.pendingRemovals_={});g in E||(E[g]=0,S[g]=0),++E[g];let w;for(let x=0,P=y.length;x<P;++x)if("handleEvent"in y[x]?w=y[x].handleEvent(b):w=y[x].call(this,b),w===!1||b.propagationStopped){w=!1;break}if(--E[g]===0){let x=S[g];for(delete S[g];x--;)this.removeEventListener(g,u.Zn);delete E[g]}return w}disposeInternal(){this.listeners_&&(0,v.Z)(this.listeners_)}getListeners(d){return this.listeners_&&this.listeners_[d]||void 0}hasListener(d){return this.listeners_?d?d in this.listeners_:Object.keys(this.listeners_).length>0:!1}removeEventListener(d,f){const g=this.listeners_&&this.listeners_[d];if(g){const y=g.indexOf(f);y!==-1&&(this.pendingRemovals_&&d in this.pendingRemovals_?(g[y]=u.Zn,++this.pendingRemovals_[d]):(g.splice(y,1),g.length===0&&delete this.listeners_[d]))}}}const h=l},31107:(C,c,t)=>{"use strict";t.d(c,{$6:()=>l,Bx:()=>g,Fi:()=>E,Kf:()=>w,Ko:()=>h,QL:()=>I,TN:()=>A,Xp:()=>_,aj:()=>p,rM:()=>P,v8:()=>b,vY:()=>T,yZ:()=>f});var i=t(24781),s=t(41875),u=t(90738),v=t(30998);function l(W){const j=arguments;return function(re){let X=!0;for(let Z=0,J=j.length;Z<J&&(X=X&&j[Z](re),!!X);++Z);return X}}const h=function(W){const j=W.originalEvent;return j.altKey&&!(j.metaKey||j.ctrlKey)&&!j.shiftKey},p=function(W){const j=W.originalEvent;return j.altKey&&!(j.metaKey||j.ctrlKey)&&j.shiftKey},d=function(W){const j=W.map.getTargetElement(),re=W.map.getOwnerDocument().activeElement;return j.contains(re)},f=function(W){return W.map.getTargetElement().hasAttribute("tabindex")?d(W):!0},g=s.uX,y=function(W){return W.type==MapBrowserEventType.CLICK},b=function(W){const j=W.originalEvent;return j.button==0&&!(u.G$&&u.tK&&j.ctrlKey)},E=s.Dv,S=function(W){return W.type=="pointermove"},w=function(W){return W.type==i.Z.SINGLECLICK},x=function(W){return W.type==MapBrowserEventType.DBLCLICK},P=function(W){const j=W.originalEvent;return!j.altKey&&!(j.metaKey||j.ctrlKey)&&!j.shiftKey},R=function(W){const j=W.originalEvent;return!j.altKey&&(MAC?j.metaKey:j.ctrlKey)&&!j.shiftKey},T=function(W){const j=W.originalEvent;return!j.altKey&&!(j.metaKey||j.ctrlKey)&&j.shiftKey},A=function(W){const j=W.originalEvent,re=j.target.tagName;return re!=="INPUT"&&re!=="SELECT"&&re!=="TEXTAREA"&&!j.target.isContentEditable},I=function(W){const j=W.originalEvent;return(0,v.h)(j!==void 0,56),j.pointerType=="mouse"},N=function(W){const j=W.originalEvent;return assert(j!==void 0,56),j.pointerType==="touch"},K=function(W){const j=W.originalEvent;return assert(j!==void 0,56),j.pointerType==="pen"},_=function(W){const j=W.originalEvent;return(0,v.h)(j!==void 0,56),j.isPrimary&&j.button===0}},70328:(C,c,t)=>{"use strict";t.d(c,{Cf:()=>nt,Cr:()=>V,EO:()=>_e,Ed:()=>ce,GN:()=>P,H6:()=>re,HK:()=>w,I7:()=>Ge,MV:()=>Re,Ne:()=>ht,T9:()=>E,Wj:()=>N,Xv:()=>fe,YN:()=>S,b8:()=>d,bg:()=>X,d9:()=>h,dY:()=>F,dz:()=>Se,f3:()=>l,fS:()=>T,g0:()=>L,hC:()=>Z,hI:()=>u,jE:()=>g,kK:()=>he,l7:()=>I,lJ:()=>b,p8:()=>k,pX:()=>y,qP:()=>_,qf:()=>p,qg:()=>q,r4:()=>f,rL:()=>ie,w$:()=>J,xb:()=>me});var i=t(15419),s=t(30998);function u(ue){const ae=b();for(let ve=0,Me=ue.length;ve<Me;++ve)N(ae,ue[ve]);return ae}function v(ue,ae,ve){const Me=Math.min.apply(null,ue),Ye=Math.min.apply(null,ae),qe=Math.max.apply(null,ue),At=Math.max.apply(null,ae);return E(Me,Ye,qe,At,ve)}function l(ue,ae,ve){return ve?(ve[0]=ue[0]-ae,ve[1]=ue[1]-ae,ve[2]=ue[2]+ae,ve[3]=ue[3]+ae,ve):[ue[0]-ae,ue[1]-ae,ue[2]+ae,ue[3]+ae]}function h(ue,ae){return ae?(ae[0]=ue[0],ae[1]=ue[1],ae[2]=ue[2],ae[3]=ue[3],ae):ue.slice()}function p(ue,ae,ve){let Me,Ye;return ae<ue[0]?Me=ue[0]-ae:ue[2]<ae?Me=ae-ue[2]:Me=0,ve<ue[1]?Ye=ue[1]-ve:ue[3]<ve?Ye=ve-ue[3]:Ye=0,Me*Me+Ye*Ye}function d(ue,ae){return g(ue,ae[0],ae[1])}function f(ue,ae){return ue[0]<=ae[0]&&ae[2]<=ue[2]&&ue[1]<=ae[1]&&ae[3]<=ue[3]}function g(ue,ae,ve){return ue[0]<=ae&&ae<=ue[2]&&ue[1]<=ve&&ve<=ue[3]}function y(ue,ae){const ve=ue[0],Me=ue[1],Ye=ue[2],qe=ue[3],At=ae[0],It=ae[1];let Ce=i.Z.UNKNOWN;return At<ve?Ce=Ce|i.Z.LEFT:At>Ye&&(Ce=Ce|i.Z.RIGHT),It<Me?Ce=Ce|i.Z.BELOW:It>qe&&(Ce=Ce|i.Z.ABOVE),Ce===i.Z.UNKNOWN&&(Ce=i.Z.INTERSECTING),Ce}function b(){return[1/0,1/0,-1/0,-1/0]}function E(ue,ae,ve,Me,Ye){return Ye?(Ye[0]=ue,Ye[1]=ae,Ye[2]=ve,Ye[3]=Me,Ye):[ue,ae,ve,Me]}function S(ue){return E(1/0,1/0,-1/0,-1/0,ue)}function w(ue,ae){const ve=ue[0],Me=ue[1];return E(ve,Me,ve,Me,ae)}function x(ue,ae){const ve=S(ae);return K(ve,ue)}function P(ue,ae,ve,Me,Ye){const qe=S(Ye);return _(qe,ue,ae,ve,Me)}function R(ue,ae){const ve=S(ae);return W(ve,ue)}function T(ue,ae){return ue[0]==ae[0]&&ue[2]==ae[2]&&ue[1]==ae[1]&&ue[3]==ae[3]}function A(ue,ae,ve){return Math.abs(ue[0]-ae[0])<ve&&Math.abs(ue[2]-ae[2])<ve&&Math.abs(ue[1]-ae[1])<ve&&Math.abs(ue[3]-ae[3])<ve}function I(ue,ae){return ae[0]<ue[0]&&(ue[0]=ae[0]),ae[2]>ue[2]&&(ue[2]=ae[2]),ae[1]<ue[1]&&(ue[1]=ae[1]),ae[3]>ue[3]&&(ue[3]=ae[3]),ue}function N(ue,ae){ae[0]<ue[0]&&(ue[0]=ae[0]),ae[0]>ue[2]&&(ue[2]=ae[0]),ae[1]<ue[1]&&(ue[1]=ae[1]),ae[1]>ue[3]&&(ue[3]=ae[1])}function K(ue,ae){for(let ve=0,Me=ae.length;ve<Me;++ve)N(ue,ae[ve]);return ue}function _(ue,ae,ve,Me,Ye){for(;ve<Me;ve+=Ye)j(ue,ae[ve],ae[ve+1]);return ue}function W(ue,ae){for(let ve=0,Me=ae.length;ve<Me;++ve)K(ue,ae[ve]);return ue}function j(ue,ae,ve){ue[0]=Math.min(ue[0],ae),ue[1]=Math.min(ue[1],ve),ue[2]=Math.max(ue[2],ae),ue[3]=Math.max(ue[3],ve)}function re(ue,ae){let ve;return ve=ae(Z(ue)),ve||(ve=ae(J(ue)),ve)||(ve=ae(fe(ue)),ve)||(ve=ae(ie(ue)),ve)?ve:!1}function X(ue){let ae=0;return me(ue)||(ae=Se(ue)*V(ue)),ae}function Z(ue){return[ue[0],ue[1]]}function J(ue){return[ue[2],ue[1]]}function q(ue){return[(ue[0]+ue[2])/2,(ue[1]+ue[3])/2]}function L(ue,ae){let ve;return ae==="bottom-left"?ve=Z(ue):ae==="bottom-right"?ve=J(ue):ae==="top-left"?ve=ie(ue):ae==="top-right"?ve=fe(ue):(0,s.h)(!1,13),ve}function $(ue,ae){const ve=Math.min(ue[0],ae[0]),Me=Math.min(ue[1],ae[1]),Ye=Math.max(ue[2],ae[2]),qe=Math.max(ue[3],ae[3]);return(Ye-ve)*(qe-Me)}function k(ue,ae,ve,Me,Ye){const[qe,At,It,Ce,Ae,$e,tt,ke]=F(ue,ae,ve,Me);return E(Math.min(qe,It,Ae,tt),Math.min(At,Ce,$e,ke),Math.max(qe,It,Ae,tt),Math.max(At,Ce,$e,ke),Ye)}function F(ue,ae,ve,Me){const Ye=ae*Me[0]/2,qe=ae*Me[1]/2,At=Math.cos(ve),It=Math.sin(ve),Ce=Ye*At,Ae=Ye*It,$e=qe*At,tt=qe*It,ke=ue[0],Oe=ue[1];return[ke-Ce+tt,Oe-Ae-$e,ke-Ce-tt,Oe-Ae+$e,ke+Ce-tt,Oe+Ae+$e,ke+Ce+tt,Oe+Ae-$e,ke-Ce+tt,Oe-Ae-$e]}function V(ue){return ue[3]-ue[1]}function pe(ue,ae){const ve=ce(ue,ae);return X(ve)}function ce(ue,ae,ve){const Me=ve||b();return he(ue,ae)?(ue[0]>ae[0]?Me[0]=ue[0]:Me[0]=ae[0],ue[1]>ae[1]?Me[1]=ue[1]:Me[1]=ae[1],ue[2]<ae[2]?Me[2]=ue[2]:Me[2]=ae[2],ue[3]<ae[3]?Me[3]=ue[3]:Me[3]=ae[3]):S(Me),Me}function G(ue){return Se(ue)+V(ue)}function te(ue){return[ue[2]-ue[0],ue[3]-ue[1]]}function ie(ue){return[ue[0],ue[3]]}function fe(ue){return[ue[2],ue[3]]}function Se(ue){return ue[2]-ue[0]}function he(ue,ae){return ue[0]<=ae[2]&&ue[2]>=ae[0]&&ue[1]<=ae[3]&&ue[3]>=ae[1]}function me(ue){return ue[2]<ue[0]||ue[3]<ue[1]}function _e(ue,ae){return ae?(ae[0]=ue[0],ae[1]=ue[1],ae[2]=ue[2],ae[3]=ue[3],ae):ue}function we(ue,ae){const ve=(ue[2]-ue[0])/2*(ae-1),Me=(ue[3]-ue[1])/2*(ae-1);ue[0]-=ve,ue[2]+=ve,ue[1]-=Me,ue[3]+=Me}function Ge(ue,ae,ve){let Me=!1;const Ye=y(ue,ae),qe=y(ue,ve);if(Ye===i.Z.INTERSECTING||qe===i.Z.INTERSECTING)Me=!0;else{const At=ue[0],It=ue[1],Ce=ue[2],Ae=ue[3],$e=ae[0],tt=ae[1],ke=ve[0],Oe=ve[1],je=(Oe-tt)/(ke-$e);let Et,ct;qe&i.Z.ABOVE&&!(Ye&i.Z.ABOVE)&&(Et=ke-(Oe-Ae)/je,Me=Et>=At&&Et<=Ce),!Me&&qe&i.Z.RIGHT&&!(Ye&i.Z.RIGHT)&&(ct=Oe-(ke-Ce)*je,Me=ct>=It&&ct<=Ae),!Me&&qe&i.Z.BELOW&&!(Ye&i.Z.BELOW)&&(Et=ke-(Oe-It)/je,Me=Et>=At&&Et<=Ce),!Me&&qe&i.Z.LEFT&&!(Ye&i.Z.LEFT)&&(ct=Oe-(ke-At)*je,Me=ct>=It&&ct<=Ae)}return Me}function ht(ue,ae,ve,Me){if(me(ue))return S(ve);let Ye=[];if(Me>1){const It=ue[2]-ue[0],Ce=ue[3]-ue[1];for(let Ae=0;Ae<Me;++Ae)Ye.push(ue[0]+It*Ae/Me,ue[1],ue[2],ue[1]+Ce*Ae/Me,ue[2]-It*Ae/Me,ue[3],ue[0],ue[3]-Ce*Ae/Me)}else Ye=[ue[0],ue[1],ue[2],ue[1],ue[2],ue[3],ue[0],ue[3]];ae(Ye,Ye,2);const qe=[],At=[];for(let It=0,Ce=Ye.length;It<Ce;It+=2)qe.push(Ye[It]),At.push(Ye[It+1]);return v(qe,At,ve)}function nt(ue,ae){const ve=ae.getExtent(),Me=q(ue);if(ae.canWrapX()&&(Me[0]<ve[0]||Me[0]>=ve[2])){const Ye=Se(ve),At=Math.floor((Me[0]-ve[0])/Ye)*Ye;ue[0]-=At,ue[2]-=At}return ue}function Re(ue,ae){if(ae.canWrapX()){const ve=ae.getExtent();if(!isFinite(ue[0])||!isFinite(ue[2]))return[[ve[0],ue[1],ve[2],ue[3]]];nt(ue,ae);const Me=Se(ve);if(Se(ue)>Me)return[[ve[0],ue[1],ve[2],ue[3]]];if(ue[0]<ve[0])return[[ue[0]+Me,ue[1],ve[2],ue[3]],[ve[0],ue[1],ue[2],ue[3]]];if(ue[2]>ve[2])return[[ue[0],ue[1],ve[2],ue[3]],[ve[0],ue[1],ue[2]-Me,ue[3]]]}return[ue]}},15419:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});const i={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},44334:(C,c,t)=>{"use strict";t.d(c,{ZP:()=>v,fI:()=>l});var i=t(80075),s=t(29209);class u{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}getReadOptions(d,f){if(f){let g=f.dataProjection?(0,s.U2)(f.dataProjection):this.readProjection(d);f.extent&&g&&g.getUnits()==="tile-pixels"&&(g=(0,s.U2)(g),g.setWorldExtent(f.extent)),f={dataProjection:g,featureProjection:f.featureProjection}}return this.adaptOptions(f)}adaptOptions(d){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},d)}getType(){return(0,i.O3)()}readFeature(d,f){return(0,i.O3)()}readFeatures(d,f){return(0,i.O3)()}readGeometry(d,f){return(0,i.O3)()}readProjection(d){return(0,i.O3)()}writeFeature(d,f){return(0,i.O3)()}writeFeatures(d,f){return(0,i.O3)()}writeGeometry(d,f){return(0,i.O3)()}}const v=u;function l(p,d,f){const g=f?(0,s.U2)(f.featureProjection):null,y=f?(0,s.U2)(f.dataProjection):null;let b;if(g&&y&&!(0,s.OP)(g,y)?b=(d?p.clone():p).transform(d?g:y,d?y:g):b=p,d&&f&&f.decimals!==void 0){const E=Math.pow(10,f.decimals),S=function(w){for(let x=0,P=w.length;x<P;++x)w[x]=Math.round(w[x]*E)/E;return w};b===p&&(b=p.clone()),b.applyTransform(S)}return b}function h(p,d){const f=d?getProjection(d.featureProjection):null,g=d?getProjection(d.dataProjection):null;return f&&g&&!equivalentProjection(f,g)?transformExtent(p,g,f):p}},7954:(C,c,t)=>{"use strict";t.d(c,{Z:()=>k});var i=t(19193),s=t(87419),u=t(44334),v=t(80075);class l extends u.ZP{constructor(){super()}getType(){return"json"}readFeature(V,pe){return this.readFeatureFromObject(h(V),this.getReadOptions(V,pe))}readFeatures(V,pe){return this.readFeaturesFromObject(h(V),this.getReadOptions(V,pe))}readFeatureFromObject(V,pe){return(0,v.O3)()}readFeaturesFromObject(V,pe){return(0,v.O3)()}readGeometry(V,pe){return this.readGeometryFromObject(h(V),this.getReadOptions(V,pe))}readGeometryFromObject(V,pe){return(0,v.O3)()}readProjection(V){return this.readProjectionFromObject(h(V))}readProjectionFromObject(V){return(0,v.O3)()}writeFeature(V,pe){return JSON.stringify(this.writeFeatureObject(V,pe))}writeFeatureObject(V,pe){return(0,v.O3)()}writeFeatures(V,pe){return JSON.stringify(this.writeFeaturesObject(V,pe))}writeFeaturesObject(V,pe){return(0,v.O3)()}writeGeometry(V,pe){return JSON.stringify(this.writeGeometryObject(V,pe))}writeGeometryObject(V,pe){return(0,v.O3)()}}function h(F){if(typeof F=="string"){const V=JSON.parse(F);return V||null}return F!==null?F:null}const p=l;var d=t(84570),f=t(98311),g=t(75310),y=t(66627),b=t(10680),E=t(27349),S=t(30998),w=t(29209),x=t(36095);class P extends p{constructor(V){V=V||{},super(),this.dataProjection=(0,w.U2)(V.dataProjection?V.dataProjection:"EPSG:4326"),V.featureProjection&&(this.defaultFeatureProjection=(0,w.U2)(V.featureProjection)),this.geometryName_=V.geometryName,this.extractGeometryName_=V.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(V,pe){let ce=null;V.type==="Feature"?ce=V:ce={type:"Feature",geometry:V,properties:null};const G=R(ce.geometry,pe),te=new i.Z;return this.geometryName_?te.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in ce!==void 0&&te.setGeometryName(ce.geometry_name),te.setGeometry(G),"id"in ce&&te.setId(ce.id),ce.properties&&te.setProperties(ce.properties,!0),te}readFeaturesFromObject(V,pe){const ce=V;let G=null;if(ce.type==="FeatureCollection"){const te=V;G=[];const ie=te.features;for(let fe=0,Se=ie.length;fe<Se;++fe)G.push(this.readFeatureFromObject(ie[fe],pe))}else G=[this.readFeatureFromObject(V,pe)];return G}readGeometryFromObject(V,pe){return R(V,pe)}readProjectionFromObject(V){const pe=V.crs;let ce;return pe?pe.type=="name"?ce=(0,w.U2)(pe.properties.name):pe.type==="EPSG"?ce=(0,w.U2)("EPSG:"+pe.properties.code):(0,S.h)(!1,36):ce=this.dataProjection,ce}writeFeatureObject(V,pe){pe=this.adaptOptions(pe);const ce={type:"Feature",geometry:null,properties:null},G=V.getId();if(G!==void 0&&(ce.id=G),!V.hasProperties())return ce;const te=V.getProperties(),ie=V.getGeometry();return ie&&(ce.geometry=j(ie,pe),delete te[V.getGeometryName()]),(0,x.x)(te)||(ce.properties=te),ce}writeFeaturesObject(V,pe){pe=this.adaptOptions(pe);const ce=[];for(let G=0,te=V.length;G<te;++G)ce.push(this.writeFeatureObject(V[G],pe));return{type:"FeatureCollection",features:ce}}writeGeometryObject(V,pe){return j(V,this.adaptOptions(pe))}}function R(F,V){if(!F)return null;let pe;switch(F.type){case"Point":{pe=A(F);break}case"LineString":{pe=I(F);break}case"Polygon":{pe=W(F);break}case"MultiPoint":{pe=K(F);break}case"MultiLineString":{pe=N(F);break}case"MultiPolygon":{pe=_(F);break}case"GeometryCollection":{pe=T(F);break}default:throw new Error("Unsupported GeoJSON type: "+F.type)}return(0,u.fI)(pe,!1,V)}function T(F,V){const pe=F.geometries.map(function(ce){return R(ce,V)});return new s.Z(pe)}function A(F){return new b.Z(F.coordinates)}function I(F){return new d.Z(F.coordinates)}function N(F){return new f.Z(F.coordinates)}function K(F){return new g.Z(F.coordinates)}function _(F){return new y.Z(F.coordinates)}function W(F){return new E.ZP(F.coordinates)}function j(F,V){F=(0,u.fI)(F,!0,V);const pe=F.getType();let ce;switch(pe){case"Point":{ce=L(F,V);break}case"LineString":{ce=X(F,V);break}case"Polygon":{ce=$(F,V);break}case"MultiPoint":{ce=J(F,V);break}case"MultiLineString":{ce=Z(F,V);break}case"MultiPolygon":{ce=q(F,V);break}case"GeometryCollection":{ce=re(F,V);break}case"Circle":{ce={type:"GeometryCollection",geometries:[]};break}default:throw new Error("Unsupported geometry type: "+pe)}return ce}function re(F,V){return V=Object.assign({},V),delete V.featureProjection,{type:"GeometryCollection",geometries:F.getGeometriesArray().map(function(ce){return j(ce,V)})}}function X(F,V){return{type:"LineString",coordinates:F.getCoordinates()}}function Z(F,V){return{type:"MultiLineString",coordinates:F.getCoordinates()}}function J(F,V){return{type:"MultiPoint",coordinates:F.getCoordinates()}}function q(F,V){let pe;return V&&(pe=V.rightHanded),{type:"MultiPolygon",coordinates:F.getCoordinates(pe)}}function L(F,V){return{type:"Point",coordinates:F.getCoordinates()}}function $(F,V){let pe;return V&&(pe=V.rightHanded),{type:"Polygon",coordinates:F.getCoordinates(pe)}}const k=P},97981:(C,c,t)=>{"use strict";t.d(c,{Z:()=>k});var i=t(19193),s=t(87419),u=t(84570),v=t(98311),l=t(75310),h=t(66627),p=t(10680),d=t(27349),f=t(44334),g=t(80075);class y extends f.ZP{constructor(){super()}getType(){return"text"}readFeature(V,pe){return this.readFeatureFromText(b(V),this.adaptOptions(pe))}readFeatureFromText(V,pe){return(0,g.O3)()}readFeatures(V,pe){return this.readFeaturesFromText(b(V),this.adaptOptions(pe))}readFeaturesFromText(V,pe){return(0,g.O3)()}readGeometry(V,pe){return this.readGeometryFromText(b(V),this.adaptOptions(pe))}readGeometryFromText(V,pe){return(0,g.O3)()}readProjection(V){return this.readProjectionFromText(b(V))}readProjectionFromText(V){return this.dataProjection}writeFeature(V,pe){return this.writeFeatureText(V,this.adaptOptions(pe))}writeFeatureText(V,pe){return(0,g.O3)()}writeFeatures(V,pe){return this.writeFeaturesText(V,this.adaptOptions(pe))}writeFeaturesText(V,pe){return(0,g.O3)()}writeGeometry(V,pe){return this.writeGeometryText(V,this.adaptOptions(pe))}writeGeometryText(V,pe){return(0,g.O3)()}}function b(F){return typeof F=="string"?F:""}const E=y,S={POINT:p.Z,LINESTRING:u.Z,POLYGON:d.ZP,MULTIPOINT:l.Z,MULTILINESTRING:v.Z,MULTIPOLYGON:h.Z},w="EMPTY",x="Z",P="M",R="ZM",T={START:0,TEXT:1,LEFT_PAREN:2,RIGHT_PAREN:3,NUMBER:4,COMMA:5,EOF:6},A={Point:"POINT",LineString:"LINESTRING",Polygon:"POLYGON",MultiPoint:"MULTIPOINT",MultiLineString:"MULTILINESTRING",MultiPolygon:"MULTIPOLYGON",GeometryCollection:"GEOMETRYCOLLECTION",Circle:"CIRCLE"};class I{constructor(V){this.wkt=V,this.index_=-1}isAlpha_(V){return V>="a"&&V<="z"||V>="A"&&V<="Z"}isNumeric_(V,pe){return pe=pe!==void 0?pe:!1,V>="0"&&V<="9"||V=="."&&!pe}isWhiteSpace_(V){return V==" "||V==" "||V=="\r"||V==` `}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){const V=this.nextChar_(),pe=this.index_;let ce=V,G;if(V=="(")G=T.LEFT_PAREN;else if(V==",")G=T.COMMA;else if(V==")")G=T.RIGHT_PAREN;else if(this.isNumeric_(V)||V=="-")G=T.NUMBER,ce=this.readNumber_();else if(this.isAlpha_(V))G=T.TEXT,ce=this.readText_();else{if(this.isWhiteSpace_(V))return this.nextToken();if(V==="")G=T.EOF;else throw new Error("Unexpected character: "+V)}return{position:pe,value:ce,type:G}}readNumber_(){let V;const pe=this.index_;let ce=!1,G=!1;do V=="."?ce=!0:(V=="e"||V=="E")&&(G=!0),V=this.nextChar_();while(this.isNumeric_(V,ce)||!G&&(V=="e"||V=="E")||G&&(V=="-"||V=="+"));return parseFloat(this.wkt.substring(pe,this.index_--))}readText_(){let V;const pe=this.index_;do V=this.nextChar_();while(this.isAlpha_(V));return this.wkt.substring(pe,this.index_--).toUpperCase()}}class N{constructor(V){this.lexer_=V,this.token_={position:0,type:T.START},this.layout_="XY"}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(V){return this.token_.type==V}match(V){const pe=this.isTokenType(V);return pe&&this.consume_(),pe}parse(){return this.consume_(),this.parseGeometry_()}parseGeometryLayout_(){let V="XY";const pe=this.token_;if(this.isTokenType(T.TEXT)){const ce=pe.value;ce===x?V="XYZ":ce===P?V="XYM":ce===R&&(V="XYZM"),V!=="XY"&&this.consume_()}return V}parseGeometryCollectionText_(){if(this.match(T.LEFT_PAREN)){const V=[];do V.push(this.parseGeometry_());while(this.match(T.COMMA));if(this.match(T.RIGHT_PAREN))return V}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(T.LEFT_PAREN)){const V=this.parsePoint_();if(this.match(T.RIGHT_PAREN))return V}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(T.LEFT_PAREN)){const V=this.parsePointList_();if(this.match(T.RIGHT_PAREN))return V}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(T.LEFT_PAREN)){const V=this.parseLineStringTextList_();if(this.match(T.RIGHT_PAREN))return V}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(T.LEFT_PAREN)){let V;if(this.token_.type==T.LEFT_PAREN?V=this.parsePointTextList_():V=this.parsePointList_(),this.match(T.RIGHT_PAREN))return V}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(T.LEFT_PAREN)){const V=this.parseLineStringTextList_();if(this.match(T.RIGHT_PAREN))return V}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(T.LEFT_PAREN)){const V=this.parsePolygonTextList_();if(this.match(T.RIGHT_PAREN))return V}throw new Error(this.formatErrorMessage_())}parsePoint_(){const V=[],pe=this.layout_.length;for(let ce=0;ce<pe;++ce){const G=this.token_;if(this.match(T.NUMBER))V.push(G.value);else break}if(V.length==pe)return V;throw new Error(this.formatErrorMessage_())}parsePointList_(){const V=[this.parsePoint_()];for(;this.match(T.COMMA);)V.push(this.parsePoint_());return V}parsePointTextList_(){const V=[this.parsePointText_()];for(;this.match(T.COMMA);)V.push(this.parsePointText_());return V}parseLineStringTextList_(){const V=[this.parseLineStringText_()];for(;this.match(T.COMMA);)V.push(this.parseLineStringText_());return V}parsePolygonTextList_(){const V=[this.parsePolygonText_()];for(;this.match(T.COMMA);)V.push(this.parsePolygonText_());return V}isEmptyGeometry_(){const V=this.isTokenType(T.TEXT)&&this.token_.value==w;return V&&this.consume_(),V}formatErrorMessage_(){return"Unexpected `"+this.token_.value+"` at position "+this.token_.position+" in `"+this.lexer_.wkt+"`"}parseGeometry_(){const V=this.token_;if(this.match(T.TEXT)){const pe=V.value;this.layout_=this.parseGeometryLayout_();const ce=this.isEmptyGeometry_();if(pe=="GEOMETRYCOLLECTION"){if(ce)return new s.Z([]);const ie=this.parseGeometryCollectionText_();return new s.Z(ie)}const G=S[pe];if(!G)throw new Error("Invalid geometry type: "+pe);let te;if(ce)pe=="POINT"?te=[NaN,NaN]:te=[];else switch(pe){case"POINT":{te=this.parsePointText_();break}case"LINESTRING":{te=this.parseLineStringText_();break}case"POLYGON":{te=this.parsePolygonText_();break}case"MULTIPOINT":{te=this.parseMultiPointText_();break}case"MULTILINESTRING":{te=this.parseMultiLineStringText_();break}case"MULTIPOLYGON":{te=this.parseMultiPolygonText_();break}default:break}return new G(te,this.layout_)}throw new Error(this.formatErrorMessage_())}}class K extends E{constructor(V){super(),V=V||{},this.splitCollection_=V.splitCollection!==void 0?V.splitCollection:!1}parse_(V){const pe=new I(V);return new N(pe).parse()}readFeatureFromText(V,pe){const ce=this.readGeometryFromText(V,pe),G=new i.Z;return G.setGeometry(ce),G}readFeaturesFromText(V,pe){let ce=[];const G=this.readGeometryFromText(V,pe);this.splitCollection_&&G.getType()=="GeometryCollection"?ce=G.getGeometriesArray():ce=[G];const te=[];for(let ie=0,fe=ce.length;ie<fe;++ie){const Se=new i.Z;Se.setGeometry(ce[ie]),te.push(Se)}return te}readGeometryFromText(V,pe){const ce=this.parse_(V);return(0,f.fI)(ce,!1,pe)}writeFeatureText(V,pe){const ce=V.getGeometry();return ce?this.writeGeometryText(ce,pe):""}writeFeaturesText(V,pe){if(V.length==1)return this.writeFeatureText(V[0],pe);const ce=[];for(let te=0,ie=V.length;te<ie;++te)ce.push(V[te].getGeometry());const G=new s.Z(ce);return this.writeGeometryText(G,pe)}writeGeometryText(V,pe){return $((0,f.fI)(V,!0,pe))}}function _(F){const V=F.getCoordinates();return V.length===0?"":V.join(" ")}function W(F){const V=[],pe=F.getPoints();for(let ce=0,G=pe.length;ce<G;++ce)V.push("("+_(pe[ce])+")");return V.join(",")}function j(F){const V=[],pe=F.getGeometries();for(let ce=0,G=pe.length;ce<G;++ce)V.push($(pe[ce]));return V.join(",")}function re(F){const V=F.getCoordinates(),pe=[];for(let ce=0,G=V.length;ce<G;++ce)pe.push(V[ce].join(" "));return pe.join(",")}function X(F){const V=[],pe=F.getLineStrings();for(let ce=0,G=pe.length;ce<G;++ce)V.push("("+re(pe[ce])+")");return V.join(",")}function Z(F){const V=[],pe=F.getLinearRings();for(let ce=0,G=pe.length;ce<G;++ce)V.push("("+re(pe[ce])+")");return V.join(",")}function J(F){const V=[],pe=F.getPolygons();for(let ce=0,G=pe.length;ce<G;++ce)V.push("("+Z(pe[ce])+")");return V.join(",")}function q(F){const V=F.getLayout();let pe="";return(V==="XYZ"||V==="XYZM")&&(pe+=x),(V==="XYM"||V==="XYZM")&&(pe+=P),pe}const L={Point:_,LineString:re,Polygon:Z,MultiPoint:W,MultiLineString:X,MultiPolygon:J,GeometryCollection:j};function $(F){const V=F.getType(),pe=L[V],ce=pe(F);let G=A[V];if(typeof F.getFlatCoordinates=="function"){const te=q(F);te.length>0&&(G+=" "+te)}return ce.length===0?G+" "+w:G+"("+ce+")"}const k=K},41875:(C,c,t)=>{"use strict";t.d(c,{Dv:()=>u,Zn:()=>v,qe:()=>l,uX:()=>s});var i=t(83441);function s(){return!0}function u(){return!1}function v(){}function l(p){let d=!1,f,g,y;return function(){const b=Array.prototype.slice.call(arguments);return(!d||this!==y||!(0,i.fS)(b,g))&&(d=!0,y=this,g=b,f=p.apply(this,arguments)),f}}function h(p){function d(){let f;try{f=p()}catch(g){return Promise.reject(g)}return f instanceof Promise?f:Promise.resolve(f)}return d()}},13012:(C,c,t)=>{"use strict";t.d(c,{Z:()=>g});var i=t(42133),s=t(80075),u=t(81659),v=t(70328),l=t(29209),h=t(41875),p=t(75925);const d=(0,u.Ue)();class f extends i.Z{constructor(){super(),this.extent_=(0,v.lJ)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,h.qe)(function(b,E,S){if(!S)return this.getSimplifiedGeometry(E);const w=this.clone();return w.applyTransform(S),w.getSimplifiedGeometry(E)})}simplifyTransformed(b,E){return this.simplifyTransformedInternal(this.getRevision(),b,E)}clone(){return(0,s.O3)()}closestPointXY(b,E,S,w){return(0,s.O3)()}containsXY(b,E){const S=this.getClosestPoint([b,E]);return S[0]===b&&S[1]===E}getClosestPoint(b,E){return E=E||[NaN,NaN],this.closestPointXY(b[0],b[1],E,1/0),E}intersectsCoordinate(b){return this.containsXY(b[0],b[1])}computeExtent(b){return(0,s.O3)()}getExtent(b){if(this.extentRevision_!=this.getRevision()){const E=this.computeExtent(this.extent_);(isNaN(E[0])||isNaN(E[1]))&&(0,v.YN)(E),this.extentRevision_=this.getRevision()}return(0,v.EO)(this.extent_,b)}rotate(b,E){(0,s.O3)()}scale(b,E,S){(0,s.O3)()}simplify(b){return this.getSimplifiedGeometry(b*b)}getSimplifiedGeometry(b){return(0,s.O3)()}getType(){return(0,s.O3)()}applyTransform(b){(0,s.O3)()}intersectsExtent(b){return(0,s.O3)()}translate(b,E){(0,s.O3)()}transform(b,E){const S=(0,l.U2)(b),w=S.getUnits()=="tile-pixels"?function(x,P,R){const T=S.getExtent(),A=S.getWorldExtent(),I=(0,v.Cr)(A)/(0,v.Cr)(T);return(0,u.qC)(d,A[0],A[3],I,-I,0,0,0),(0,p.vT)(x,0,x.length,R,d,P),(0,l.Ck)(S,E)(x,P,R)}:(0,l.Ck)(S,E);return this.applyTransform(w),this}}const g=f},87419:(C,c,t)=>{"use strict";t.d(c,{Z:()=>p});var i=t(21750),s=t(13012),u=t(70328),v=t(67314);class l extends s.Z{constructor(f){super(),this.geometries_=f||null,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(v.bN),this.changeEventsKeys_.length=0}listenGeometriesChange_(){if(this.geometries_)for(let f=0,g=this.geometries_.length;f<g;++f)this.changeEventsKeys_.push((0,v.oL)(this.geometries_[f],i.Z.CHANGE,this.changed,this))}clone(){const f=new l(null);return f.setGeometries(this.geometries_),f.applyProperties(this),f}closestPointXY(f,g,y,b){if(b<(0,u.qf)(this.getExtent(),f,g))return b;const E=this.geometries_;for(let S=0,w=E.length;S<w;++S)b=E[S].closestPointXY(f,g,y,b);return b}containsXY(f,g){const y=this.geometries_;for(let b=0,E=y.length;b<E;++b)if(y[b].containsXY(f,g))return!0;return!1}computeExtent(f){(0,u.YN)(f);const g=this.geometries_;for(let y=0,b=g.length;y<b;++y)(0,u.l7)(f,g[y].getExtent());return f}getGeometries(){return h(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let f=[];const g=this.geometries_;for(let y=0,b=g.length;y<b;++y)g[y].getType()===this.getType()?f=f.concat(g[y].getGeometriesArrayRecursive()):f.push(g[y]);return f}getSimplifiedGeometry(f){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),f<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&f<this.simplifiedGeometryMaxMinSquaredTolerance)return this;const g=[],y=this.geometries_;let b=!1;for(let E=0,S=y.length;E<S;++E){const w=y[E],x=w.getSimplifiedGeometry(f);g.push(x),x!==w&&(b=!0)}if(b){const E=new l(null);return E.setGeometriesArray(g),E}return this.simplifiedGeometryMaxMinSquaredTolerance=f,this}getType(){return"GeometryCollection"}intersectsExtent(f){const g=this.geometries_;for(let y=0,b=g.length;y<b;++y)if(g[y].intersectsExtent(f))return!0;return!1}isEmpty(){return this.geometries_.length===0}rotate(f,g){const y=this.geometries_;for(let b=0,E=y.length;b<E;++b)y[b].rotate(f,g);this.changed()}scale(f,g,y){y||(y=(0,u.qg)(this.getExtent()));const b=this.geometries_;for(let E=0,S=b.length;E<S;++E)b[E].scale(f,g,y);this.changed()}setGeometries(f){this.setGeometriesArray(h(f))}setGeometriesArray(f){this.unlistenGeometriesChange_(),this.geometries_=f,this.listenGeometriesChange_(),this.changed()}applyTransform(f){const g=this.geometries_;for(let y=0,b=g.length;y<b;++y)g[y].applyTransform(f);this.changed()}translate(f,g){const y=this.geometries_;for(let b=0,E=y.length;b<E;++b)y[b].translate(f,g);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}}function h(d){const f=[];for(let g=0,y=d.length;g<y;++g)f.push(d[g].clone());return f}const p=l},84570:(C,c,t)=>{"use strict";t.d(c,{Z:()=>E});var i=t(95796),s=t(52910),u=t(70328),v=t(32732),l=t(16168),h=t(83441),p=t(4729),d=t(67312),f=t(72593),g=t(61164),y=t(29416);class b extends i.ZP{constructor(w,x){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,x!==void 0&&!Array.isArray(w[0])?this.setFlatCoordinates(x,w):this.setCoordinates(w,x)}appendCoordinate(w){this.flatCoordinates?(0,h.l7)(this.flatCoordinates,w):this.flatCoordinates=w.slice(),this.changed()}clone(){const w=new b(this.flatCoordinates.slice(),this.layout);return w.applyProperties(this),w}closestPointXY(w,x,P,R){return R<(0,u.qf)(this.getExtent(),w,x)?R:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,s.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,s.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,w,x,P,R))}forEachSegment(w){return(0,p.E)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,w)}getCoordinateAtM(w,x){return this.layout!="XYM"&&this.layout!="XYZM"?null:(x=x!==void 0?x:!1,(0,f.iJ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,w,x))}getCoordinates(){return(0,d.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(w,x){return(0,f.WW)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,w,x,this.stride)}getLength(){return(0,y.W)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(w){const x=[];return x.length=(0,l.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,w,x,0),new b(x,"XY")}getType(){return"LineString"}intersectsExtent(w){return(0,g.Kz)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,w)}setCoordinates(w,x){this.setLayout(x,w,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,v.Sg)(this.flatCoordinates,0,w,this.stride),this.changed()}}const E=b},98311:(C,c,t)=>{"use strict";t.d(c,{Z:()=>b});var i=t(84570),s=t(95796),u=t(52910),v=t(70328),l=t(32732),h=t(16168),p=t(83441),d=t(67312),f=t(72593),g=t(61164);class y extends s.ZP{constructor(S,w,x){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(S[0]))this.setCoordinates(S,w);else if(w!==void 0&&x)this.setFlatCoordinates(w,S),this.ends_=x;else{let P=this.getLayout();const R=S,T=[],A=[];for(let I=0,N=R.length;I<N;++I){const K=R[I];I===0&&(P=K.getLayout()),(0,p.l7)(T,K.getFlatCoordinates()),A.push(T.length)}this.setFlatCoordinates(P,T),this.ends_=A}}appendLineString(S){this.flatCoordinates?(0,p.l7)(this.flatCoordinates,S.getFlatCoordinates().slice()):this.flatCoordinates=S.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const S=new y(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return S.applyProperties(this),S}closestPointXY(S,w,x,P){return P<(0,v.qf)(this.getExtent(),S,w)?P:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,u.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,u.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,S,w,x,P))}getCoordinateAtM(S,w,x){return this.layout!="XYM"&&this.layout!="XYZM"||this.flatCoordinates.length===0?null:(w=w!==void 0?w:!1,x=x!==void 0?x:!1,(0,f.dG)(this.flatCoordinates,0,this.ends_,this.stride,S,w,x))}getCoordinates(){return(0,d.o1)(this.flatCoordinates,0,this.ends_,this.stride)}getEnds(){return this.ends_}getLineString(S){return S<0||this.ends_.length<=S?null:new i.Z(this.flatCoordinates.slice(S===0?0:this.ends_[S-1],this.ends_[S]),this.layout)}getLineStrings(){const S=this.flatCoordinates,w=this.ends_,x=this.layout,P=[];let R=0;for(let T=0,A=w.length;T<A;++T){const I=w[T],N=new i.Z(S.slice(R,I),x);P.push(N),R=I}return P}getFlatMidpoints(){const S=[],w=this.flatCoordinates;let x=0;const P=this.ends_,R=this.stride;for(let T=0,A=P.length;T<A;++T){const I=P[T],N=(0,f.WW)(w,x,I,R,.5);(0,p.l7)(S,N),x=I}return S}getSimplifiedGeometryInternal(S){const w=[],x=[];return w.length=(0,h.UJ)(this.flatCoordinates,0,this.ends_,this.stride,S,w,0,x),new y(w,"XY",x)}getType(){return"MultiLineString"}intersectsExtent(S){return(0,g.AW)(this.flatCoordinates,0,this.ends_,this.stride,S)}setCoordinates(S,w){this.setLayout(w,S,2),this.flatCoordinates||(this.flatCoordinates=[]);const x=(0,l._5)(this.flatCoordinates,0,S,this.stride,this.ends_);this.flatCoordinates.length=x.length===0?0:x[x.length-1],this.changed()}}const b=y},75310:(C,c,t)=>{"use strict";t.d(c,{Z:()=>f});var i=t(10680),s=t(95796),u=t(70328),v=t(32732),l=t(83441),h=t(67312),p=t(73863);class d extends s.ZP{constructor(y,b){super(),b&&!Array.isArray(y[0])?this.setFlatCoordinates(b,y):this.setCoordinates(y,b)}appendPoint(y){this.flatCoordinates?(0,l.l7)(this.flatCoordinates,y.getFlatCoordinates()):this.flatCoordinates=y.getFlatCoordinates().slice(),this.changed()}clone(){const y=new d(this.flatCoordinates.slice(),this.layout);return y.applyProperties(this),y}closestPointXY(y,b,E,S){if(S<(0,u.qf)(this.getExtent(),y,b))return S;const w=this.flatCoordinates,x=this.stride;for(let P=0,R=w.length;P<R;P+=x){const T=(0,p.bI)(y,b,w[P],w[P+1]);if(T<S){S=T;for(let A=0;A<x;++A)E[A]=w[P+A];E.length=x}}return S}getCoordinates(){return(0,h.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getPoint(y){const b=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return y<0||b<=y?null:new i.Z(this.flatCoordinates.slice(y*this.stride,(y+1)*this.stride),this.layout)}getPoints(){const y=this.flatCoordinates,b=this.layout,E=this.stride,S=[];for(let w=0,x=y.length;w<x;w+=E){const P=new i.Z(y.slice(w,w+E),b);S.push(P)}return S}getType(){return"MultiPoint"}intersectsExtent(y){const b=this.flatCoordinates,E=this.stride;for(let S=0,w=b.length;S<w;S+=E){const x=b[S],P=b[S+1];if((0,u.jE)(y,x,P))return!0}return!1}setCoordinates(y,b){this.setLayout(b,y,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,v.Sg)(this.flatCoordinates,0,y,this.stride),this.changed()}}const f=d},66627:(C,c,t)=>{"use strict";t.d(c,{Z:()=>P});var i=t(75310),s=t(27349),u=t(95796),v=t(52910),l=t(70328),h=t(32732),p=t(83441),d=t(57941),f=t(67312),g=t(61164),y=t(4043),b=t(27722);function E(R,T,A,I){const N=[];let K=(0,l.lJ)();for(let _=0,W=A.length;_<W;++_){const j=A[_];K=(0,l.GN)(R,T,j[0],I),N.push((K[0]+K[2])/2,(K[1]+K[3])/2),T=j[j.length-1]}return N}var S=t(86266),w=t(16168);class x extends u.ZP{constructor(T,A,I){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!I&&!Array.isArray(T[0])){let N=this.getLayout();const K=T,_=[],W=[];for(let j=0,re=K.length;j<re;++j){const X=K[j];j===0&&(N=X.getLayout());const Z=_.length,J=X.getEnds();for(let q=0,L=J.length;q<L;++q)J[q]+=Z;(0,p.l7)(_,X.getFlatCoordinates()),W.push(J)}A=N,T=_,I=W}A!==void 0&&I?(this.setFlatCoordinates(A,T),this.endss_=I):this.setCoordinates(T,A)}appendPolygon(T){let A;if(!this.flatCoordinates)this.flatCoordinates=T.getFlatCoordinates().slice(),A=T.getEnds().slice(),this.endss_.push();else{const I=this.flatCoordinates.length;(0,p.l7)(this.flatCoordinates,T.getFlatCoordinates()),A=T.getEnds().slice();for(let N=0,K=A.length;N<K;++N)A[N]+=I}this.endss_.push(A),this.changed()}clone(){const T=this.endss_.length,A=new Array(T);for(let N=0;N<T;++N)A[N]=this.endss_[N].slice();const I=new x(this.flatCoordinates.slice(),this.layout,A);return I.applyProperties(this),I}closestPointXY(T,A,I,N){return N<(0,l.qf)(this.getExtent(),T,A)?N:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,v.sD)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,v.gI)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,T,A,I,N))}containsXY(T,A){return(0,S.Zl)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,T,A)}getArea(){return(0,b.Eu)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)}getCoordinates(T){let A;return T!==void 0?(A=this.getOrientedFlatCoordinates().slice(),(0,y.dL)(A,0,this.endss_,this.stride,T)):A=this.flatCoordinates,(0,f.ug)(A,0,this.endss_,this.stride)}getEndss(){return this.endss_}getFlatInteriorPoints(){if(this.flatInteriorPointsRevision_!=this.getRevision()){const T=E(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=(0,d.U)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,T),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_}getInteriorPoints(){return new i.Z(this.getFlatInteriorPoints().slice(),"XYM")}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const T=this.flatCoordinates;(0,y.Oj)(T,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=T:(this.orientedFlatCoordinates_=T.slice(),this.orientedFlatCoordinates_.length=(0,y.dL)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(T){const A=[],I=[];return A.length=(0,w.Pp)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(T),A,0,I),new x(A,"XY",I)}getPolygon(T){if(T<0||this.endss_.length<=T)return null;let A;if(T===0)A=0;else{const K=this.endss_[T-1];A=K[K.length-1]}const I=this.endss_[T].slice(),N=I[I.length-1];if(A!==0)for(let K=0,_=I.length;K<_;++K)I[K]-=A;return new s.ZP(this.flatCoordinates.slice(A,N),this.layout,I)}getPolygons(){const T=this.layout,A=this.flatCoordinates,I=this.endss_,N=[];let K=0;for(let _=0,W=I.length;_<W;++_){const j=I[_].slice(),re=j[j.length-1];if(K!==0)for(let Z=0,J=j.length;Z<J;++Z)j[Z]-=K;const X=new s.ZP(A.slice(K,re),T,j);N.push(X),K=re}return N}getType(){return"MultiPolygon"}intersectsExtent(T){return(0,g.oW)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,T)}setCoordinates(T,A){this.setLayout(A,T,3),this.flatCoordinates||(this.flatCoordinates=[]);const I=(0,h.QT)(this.flatCoordinates,0,T,this.stride,this.endss_);if(I.length===0)this.flatCoordinates.length=0;else{const N=I[I.length-1];this.flatCoordinates.length=N.length===0?0:N[N.length-1]}this.changed()}}const P=x},10680:(C,c,t)=>{"use strict";t.d(c,{Z:()=>h});var i=t(95796),s=t(70328),u=t(32732),v=t(73863);class l extends i.ZP{constructor(d,f){super(),this.setCoordinates(d,f)}clone(){const d=new l(this.flatCoordinates.slice(),this.layout);return d.applyProperties(this),d}closestPointXY(d,f,g,y){const b=this.flatCoordinates,E=(0,v.bI)(d,f,b[0],b[1]);if(E<y){const S=this.stride;for(let w=0;w<S;++w)g[w]=b[w];return g.length=S,E}return y}getCoordinates(){return this.flatCoordinates?this.flatCoordinates.slice():[]}computeExtent(d){return(0,s.HK)(this.flatCoordinates,d)}getType(){return"Point"}intersectsExtent(d){return(0,s.jE)(d,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(d,f){this.setLayout(f,d,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,u.IG)(this.flatCoordinates,0,d,this.stride),this.changed()}}const h=l},27349:(C,c,t)=>{"use strict";t.d(c,{ZP:()=>R,Bb:()=>I,oJ:()=>A});var i=t(95796),s=t(52910),u=t(70328),v=t(32732),l=t(16168),h=t(67312),p=t(27722);class d extends i.ZP{constructor(_,W){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,W!==void 0&&!Array.isArray(_[0])?this.setFlatCoordinates(W,_):this.setCoordinates(_,W)}clone(){return new d(this.flatCoordinates.slice(),this.layout)}closestPointXY(_,W,j,re){return re<(0,u.qf)(this.getExtent(),_,W)?re:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,s.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,s.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,_,W,j,re))}getArea(){return(0,p.QQ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,h.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(_){const W=[];return W.length=(0,l.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,_,W,0),new d(W,"XY")}getType(){return"LinearRing"}intersectsExtent(_){return!1}setCoordinates(_,W){this.setLayout(W,_,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,v.Sg)(this.flatCoordinates,0,_,this.stride),this.changed()}}const f=d;var g=t(10680),y=t(83441),b=t(57941),E=t(61164),S=t(4043),w=t(86266),x=t(73863);class P extends i.ZP{constructor(_,W,j){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,W!==void 0&&j?(this.setFlatCoordinates(W,_),this.ends_=j):this.setCoordinates(_,W)}appendLinearRing(_){this.flatCoordinates?(0,y.l7)(this.flatCoordinates,_.getFlatCoordinates()):this.flatCoordinates=_.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const _=new P(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return _.applyProperties(this),_}closestPointXY(_,W,j,re){return re<(0,u.qf)(this.getExtent(),_,W)?re:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,s.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,s.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,_,W,j,re))}containsXY(_,W){return(0,w.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,_,W)}getArea(){return(0,p.KP)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(_){let W;return _!==void 0?(W=this.getOrientedFlatCoordinates().slice(),(0,S.zX)(W,0,this.ends_,this.stride,_)):W=this.flatCoordinates,(0,h.o1)(W,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const _=(0,u.qg)(this.getExtent());this.flatInteriorPoint_=(0,b.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,_,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new g.Z(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(_){return _<0||this.ends_.length<=_?null:new f(this.flatCoordinates.slice(_===0?0:this.ends_[_-1],this.ends_[_]),this.layout)}getLinearRings(){const _=this.layout,W=this.flatCoordinates,j=this.ends_,re=[];let X=0;for(let Z=0,J=j.length;Z<J;++Z){const q=j[Z],L=new f(W.slice(X,q),_);re.push(L),X=q}return re}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const _=this.flatCoordinates;(0,S.$v)(_,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=_:(this.orientedFlatCoordinates_=_.slice(),this.orientedFlatCoordinates_.length=(0,S.zX)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(_){const W=[],j=[];return W.length=(0,l.Zh)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(_),W,0,j),new P(W,"XY",j)}getType(){return"Polygon"}intersectsExtent(_){return(0,E.ac)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,_)}setCoordinates(_,W){this.setLayout(W,_,2),this.flatCoordinates||(this.flatCoordinates=[]);const j=(0,v._5)(this.flatCoordinates,0,_,this.stride,this.ends_);this.flatCoordinates.length=j.length===0?0:j[j.length-1],this.changed()}}const R=P;function T(K,_,W,j){W=W||32;const re=[];for(let X=0;X<W;++X)extend(re,sphereOffset(K,_,2*Math.PI*X/W,j));return re.push(re[0],re[1]),new P(re,"XY",[re.length])}function A(K){const _=K[0],W=K[1],j=K[2],re=K[3],X=[_,W,_,re,j,re,j,W,_,W];return new P(X,"XY",[X.length])}function I(K,_,W){_=_||32;const j=K.getStride(),re=K.getLayout(),X=K.getCenter(),Z=j*(_+1),J=new Array(Z);for(let $=0;$<Z;$+=j){J[$]=0,J[$+1]=0;for(let k=2;k<j;k++)J[$+k]=X[k]}const q=[J.length],L=new P(J,re,q);return N(L,X,K.getRadius(),W),L}function N(K,_,W,j){const re=K.getFlatCoordinates(),X=K.getStride(),Z=re.length/X-1,J=j||0;for(let q=0;q<=Z;++q){const L=q*X,$=J+(0,x.$W)(q,Z)*2*Math.PI/Z;re[L]=_[0]+W*Math.cos($),re[L+1]=_[1]+W*Math.sin($)}K.changed()}},95796:(C,c,t)=>{"use strict";t.d(c,{Kr:()=>d,ZP:()=>f,tP:()=>p});var i=t(13012),s=t(80075),u=t(70328),v=t(75925);class l extends i.Z{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates=null}computeExtent(y){return(0,u.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,y)}getCoordinates(){return(0,s.O3)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(y){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),y<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&y<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const b=this.getSimplifiedGeometryInternal(y);return b.getFlatCoordinates().length<this.flatCoordinates.length?b:(this.simplifiedGeometryMaxMinSquaredTolerance=y,this)}getSimplifiedGeometryInternal(y){return this}getStride(){return this.stride}setFlatCoordinates(y,b){this.stride=p(y),this.layout=y,this.flatCoordinates=b}setCoordinates(y,b){(0,s.O3)()}setLayout(y,b,E){let S;if(y)S=p(y);else{for(let w=0;w<E;++w){if(b.length===0){this.layout="XY",this.stride=2;return}b=b[0]}S=b.length,y=h(S)}this.layout=y,this.stride=S}applyTransform(y){this.flatCoordinates&&(y(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())}rotate(y,b){const E=this.getFlatCoordinates();if(E){const S=this.getStride();(0,v.U1)(E,0,E.length,S,y,b,E),this.changed()}}scale(y,b,E){b===void 0&&(b=y),E||(E=(0,u.qg)(this.getExtent()));const S=this.getFlatCoordinates();if(S){const w=this.getStride();(0,v.bA)(S,0,S.length,w,y,b,E,S),this.changed()}}translate(y,b){const E=this.getFlatCoordinates();if(E){const S=this.getStride();(0,v.Iu)(E,0,E.length,S,y,b,E),this.changed()}}}function h(g){let y;return g==2?y="XY":g==3?y="XYZ":g==4&&(y="XYZM"),y}function p(g){let y;return g=="XY"?y=2:g=="XYZ"||g=="XYM"?y=3:g=="XYZM"&&(y=4),y}function d(g,y,b){const E=g.getFlatCoordinates();if(!E)return null;const S=g.getStride();return(0,v.vT)(E,0,E.length,S,y,b)}const f=l},27722:(C,c,t)=>{"use strict";t.d(c,{Eu:()=>u,KP:()=>s,QQ:()=>i});function i(v,l,h,p){let d=0,f=v[h-p],g=v[h-p+1];for(;l<h;l+=p){const y=v[l],b=v[l+1];d+=g*y-f*b,f=y,g=b}return d/2}function s(v,l,h,p){let d=0;for(let f=0,g=h.length;f<g;++f){const y=h[f];d+=i(v,l,y,p),l=y}return d}function u(v,l,h,p){let d=0;for(let f=0,g=h.length;f<g;++f){const y=h[f];d+=s(v,l,y,p),l=y[y.length-1]}return d}},52910:(C,c,t)=>{"use strict";t.d(c,{Af:()=>v,Bv:()=>u,H$:()=>h,Xl:()=>p,gI:()=>d,sD:()=>l});var i=t(73863);function s(f,g,y,b,E,S,w){const x=f[g],P=f[g+1],R=f[y]-x,T=f[y+1]-P;let A;if(R===0&&T===0)A=g;else{const I=((E-x)*R+(S-P)*T)/(R*R+T*T);if(I>1)A=y;else if(I>0){for(let N=0;N<b;++N)w[N]=(0,i.t7)(f[g+N],f[y+N],I);w.length=b;return}else A=g}for(let I=0;I<b;++I)w[I]=f[A+I];w.length=b}function u(f,g,y,b,E){let S=f[g],w=f[g+1];for(g+=b;g<y;g+=b){const x=f[g],P=f[g+1],R=(0,i.bI)(S,w,x,P);R>E&&(E=R),S=x,w=P}return E}function v(f,g,y,b,E){for(let S=0,w=y.length;S<w;++S){const x=y[S];E=u(f,g,x,b,E),g=x}return E}function l(f,g,y,b,E){for(let S=0,w=y.length;S<w;++S){const x=y[S];E=v(f,g,x,b,E),g=x[x.length-1]}return E}function h(f,g,y,b,E,S,w,x,P,R,T){if(g==y)return R;let A,I;if(E===0){if(I=(0,i.bI)(w,x,f[g],f[g+1]),I<R){for(A=0;A<b;++A)P[A]=f[g+A];return P.length=b,I}return R}T=T||[NaN,NaN];let N=g+b;for(;N<y;)if(s(f,N-b,N,b,w,x,T),I=(0,i.bI)(w,x,T[0],T[1]),I<R){for(R=I,A=0;A<b;++A)P[A]=T[A];P.length=b,N+=b}else N+=b*Math.max((Math.sqrt(I)-Math.sqrt(R))/E|0,1);if(S&&(s(f,y-b,g,b,w,x,T),I=(0,i.bI)(w,x,T[0],T[1]),I<R)){for(R=I,A=0;A<b;++A)P[A]=T[A];P.length=b}return R}function p(f,g,y,b,E,S,w,x,P,R,T){T=T||[NaN,NaN];for(let A=0,I=y.length;A<I;++A){const N=y[A];R=h(f,g,N,b,E,S,w,x,P,R,T),g=N}return R}function d(f,g,y,b,E,S,w,x,P,R,T){T=T||[NaN,NaN];for(let A=0,I=y.length;A<I;++A){const N=y[A];R=p(f,g,N,b,E,S,w,x,P,R,T),g=N[N.length-1]}return R}},86266:(C,c,t)=>{"use strict";t.d(c,{TG:()=>u,Zl:()=>l,uG:()=>s,wY:()=>v});var i=t(70328);function s(h,p,d,f,g){return!(0,i.H6)(g,function(b){return!u(h,p,d,f,b[0],b[1])})}function u(h,p,d,f,g,y){let b=0,E=h[d-f],S=h[d-f+1];for(;p<d;p+=f){const w=h[p],x=h[p+1];S<=y?x>y&&(w-E)*(y-S)-(g-E)*(x-S)>0&&b++:x<=y&&(w-E)*(y-S)-(g-E)*(x-S)<0&&b--,E=w,S=x}return b!==0}function v(h,p,d,f,g,y){if(d.length===0||!u(h,p,d[0],f,g,y))return!1;for(let b=1,E=d.length;b<E;++b)if(u(h,d[b-1],d[b],f,g,y))return!1;return!0}function l(h,p,d,f,g,y){if(d.length===0)return!1;for(let b=0,E=d.length;b<E;++b){const S=d[b];if(v(h,p,S,f,g,y))return!0;p=S[S.length-1]}return!1}},32732:(C,c,t)=>{"use strict";t.d(c,{IG:()=>i,QT:()=>v,Sg:()=>s,_5:()=>u});function i(l,h,p,d){for(let f=0,g=p.length;f<g;++f)l[h++]=p[f];return h}function s(l,h,p,d){for(let f=0,g=p.length;f<g;++f){const y=p[f];for(let b=0;b<d;++b)l[h++]=y[b]}return h}function u(l,h,p,d,f){f=f||[];let g=0;for(let y=0,b=p.length;y<b;++y){const E=s(l,h,p[y],d);f[g++]=E,h=E}return f.length=g,f}function v(l,h,p,d,f){f=f||[];let g=0;for(let y=0,b=p.length;y<b;++y){const E=u(l,h,p[y],d,f[g]);E.length===0&&(E[0]=h),f[g++]=E,h=E[E.length-1]}return f.length=g,f}},67312:(C,c,t)=>{"use strict";t.d(c,{Ml:()=>i,o1:()=>s,ug:()=>u});function i(v,l,h,p,d){d=d!==void 0?d:[];let f=0;for(let g=l;g<h;g+=p)d[f++]=v.slice(g,g+p);return d.length=f,d}function s(v,l,h,p,d){d=d!==void 0?d:[];let f=0;for(let g=0,y=h.length;g<y;++g){const b=h[g];d[f++]=i(v,l,b,p,d[f]),l=b}return d.length=f,d}function u(v,l,h,p,d){d=d!==void 0?d:[];let f=0;for(let g=0,y=h.length;g<y;++g){const b=h[g];d[f++]=b.length===1&&b[0]===l?[]:s(v,l,b,p,d[f]),l=b[b.length-1]}return d.length=f,d}},57941:(C,c,t)=>{"use strict";t.d(c,{U:()=>v,X:()=>u});var i=t(83441),s=t(86266);function u(l,h,p,d,f,g,y){let b,E,S,w,x,P,R;const T=f[g+1],A=[];for(let K=0,_=p.length;K<_;++K){const W=p[K];for(w=l[W-d],P=l[W-d+1],b=h;b<W;b+=d)x=l[b],R=l[b+1],(T<=P&&R<=T||P<=T&&T<=R)&&(S=(T-P)/(R-P)*(x-w)+w,A.push(S)),w=x,P=R}let I=NaN,N=-1/0;for(A.sort(i.j2),w=A[0],b=1,E=A.length;b<E;++b){x=A[b];const K=Math.abs(x-w);K>N&&(S=(w+x)/2,(0,s.wY)(l,h,p,d,S,T)&&(I=S,N=K)),w=x}return isNaN(I)&&(I=f[g]),y?(y.push(I,T,N),y):[I,T,N]}function v(l,h,p,d,f){let g=[];for(let y=0,b=p.length;y<b;++y){const E=p[y];g=u(l,h,E,d,f,2*y,g),h=E[E.length-1]}return g}},72593:(C,c,t)=>{"use strict";t.d(c,{WW:()=>u,dG:()=>l,iJ:()=>v});var i=t(83441),s=t(73863);function u(h,p,d,f,g,y,b){let E,S;const w=(d-p)/f;if(w===1)E=p;else if(w===2)E=p,S=g;else if(w!==0){let x=h[p],P=h[p+1],R=0;const T=[0];for(let N=p+f;N<d;N+=f){const K=h[N],_=h[N+1];R+=Math.sqrt((K-x)*(K-x)+(_-P)*(_-P)),T.push(R),x=K,P=_}const A=g*R,I=(0,i.ry)(T,A);I<0?(S=(A-T[-I-2])/(T[-I-1]-T[-I-2]),E=p+(-I-2)*f):E=p+I*f}b=b>1?b:2,y=y||new Array(b);for(let x=0;x<b;++x)y[x]=E===void 0?NaN:S===void 0?h[E+x]:(0,s.t7)(h[E+x],h[E+f+x],S);return y}function v(h,p,d,f,g,y){if(d==p)return null;let b;if(g<h[p+f-1])return y?(b=h.slice(p,p+f),b[f-1]=g,b):null;if(h[d-1]<g)return y?(b=h.slice(d-f,d),b[f-1]=g,b):null;if(g==h[p+f-1])return h.slice(p,p+f);let E=p/f,S=d/f;for(;E<S;){const R=E+S>>1;g<h[(R+1)*f-1]?S=R:E=R+1}const w=h[E*f-1];if(g==w)return h.slice((E-1)*f,(E-1)*f+f);const x=h[(E+1)*f-1],P=(g-w)/(x-w);b=[];for(let R=0;R<f-1;++R)b.push((0,s.t7)(h[(E-1)*f+R],h[E*f+R],P));return b.push(g),b}function l(h,p,d,f,g,y,b){if(b)return v(h,p,d[d.length-1],f,g,y);let E;if(g<h[f-1])return y?(E=h.slice(0,f),E[f-1]=g,E):null;if(h[h.length-1]<g)return y?(E=h.slice(h.length-f),E[f-1]=g,E):null;for(let S=0,w=d.length;S<w;++S){const x=d[S];if(p!=x){if(g<h[p+f-1])return null;if(g<=h[x-1])return v(h,p,x,f,g,!1);p=x}}return null}},61164:(C,c,t)=>{"use strict";t.d(c,{AW:()=>l,Kz:()=>v,ac:()=>p,mV:()=>h,oW:()=>d});var i=t(70328),s=t(4729),u=t(86266);function v(f,g,y,b,E){const S=(0,i.qP)((0,i.lJ)(),f,g,y,b);return(0,i.kK)(E,S)?(0,i.r4)(E,S)||S[0]>=E[0]&&S[2]<=E[2]||S[1]>=E[1]&&S[3]<=E[3]?!0:(0,s.E)(f,g,y,b,function(w,x){return(0,i.I7)(E,w,x)}):!1}function l(f,g,y,b,E){for(let S=0,w=y.length;S<w;++S){if(v(f,g,y[S],b,E))return!0;g=y[S]}return!1}function h(f,g,y,b,E){return!!(v(f,g,y,b,E)||(0,u.TG)(f,g,y,b,E[0],E[1])||(0,u.TG)(f,g,y,b,E[0],E[3])||(0,u.TG)(f,g,y,b,E[2],E[1])||(0,u.TG)(f,g,y,b,E[2],E[3]))}function p(f,g,y,b,E){if(!h(f,g,y[0],b,E))return!1;if(y.length===1)return!0;for(let S=1,w=y.length;S<w;++S)if((0,u.uG)(f,y[S-1],y[S],b,E)&&!v(f,y[S-1],y[S],b,E))return!1;return!0}function d(f,g,y,b,E){for(let S=0,w=y.length;S<w;++S){const x=y[S];if(p(f,g,x,b,E))return!0;g=x[x.length-1]}return!1}},29416:(C,c,t)=>{"use strict";t.d(c,{W:()=>i});function i(u,v,l,h){let p=u[v],d=u[v+1],f=0;for(let g=v+h;g<l;g+=h){const y=u[g],b=u[g+1];f+=Math.sqrt((y-p)*(y-p)+(b-d)*(b-d)),p=y,d=b}return f}function s(u,v,l,h){let p=i(u,v,l,h);const d=u[l-h]-u[v],f=u[l-h+1]-u[v+1];return p+=Math.sqrt(d*d+f*f),p}},4043:(C,c,t)=>{"use strict";t.d(c,{$v:()=>u,Oj:()=>v,zX:()=>l,dL:()=>h});function i(d,f,g,y){for(;f<g-y;){for(let b=0;b<y;++b){const E=d[f+b];d[f+b]=d[g-y+b],d[g-y+b]=E}f+=y,g-=y}}function s(d,f,g,y){let b=0,E=d[g-y],S=d[g-y+1];for(;f<g;f+=y){const w=d[f],x=d[f+1];b+=(w-E)*(x+S),E=w,S=x}return b===0?void 0:b>0}function u(d,f,g,y,b){b=b!==void 0?b:!1;for(let E=0,S=g.length;E<S;++E){const w=g[E],x=s(d,f,w,y);if(E===0){if(b&&x||!b&&!x)return!1}else if(b&&!x||!b&&x)return!1;f=w}return!0}function v(d,f,g,y,b){for(let E=0,S=g.length;E<S;++E){const w=g[E];if(!u(d,f,w,y,b))return!1;w.length&&(f=w[w.length-1])}return!0}function l(d,f,g,y,b){b=b!==void 0?b:!1;for(let E=0,S=g.length;E<S;++E){const w=g[E],x=s(d,f,w,y);(E===0?b&&x||!b&&!x:b&&!x||!b&&x)&&i(d,f,w,y),f=w}return f}function h(d,f,g,y,b){for(let E=0,S=g.length;E<S;++E)f=l(d,f,g[E],y,b);return f}function p(d,f){const g=[];let y=0,b=0;for(let E=0,S=f.length;E<S;++E){const w=f[E];if(!s(d,y,w,2))g.push(f.slice(b,E+1));else{if(g.length===0)continue;g[g.length-1].push(f[b])}b=E+1,y=w}return g}},4729:(C,c,t)=>{"use strict";t.d(c,{E:()=>i});function i(s,u,v,l,h){let p;for(u+=l;u<v;u+=l)if(p=h(s.slice(u-l,u),s.slice(u,u+l)),p)return p;return!1}},16168:(C,c,t)=>{"use strict";t.d(c,{Pp:()=>g,UJ:()=>v,Zh:()=>f,dt:()=>u,uZ:()=>p});var i=t(73863);function s(y,b,E,S,w,x,P){return P=P!==void 0?P:[],x||(E=h(y,b,E,S,w,P,0),y=P,b=0,S=2),P.length=u(y,b,E,S,w,P,0),P}function u(y,b,E,S,w,x,P){const R=(E-b)/S;if(R<3){for(;b<E;b+=S)x[P++]=y[b],x[P++]=y[b+1];return P}const T=new Array(R);T[0]=1,T[R-1]=1;const A=[b,E-S];let I=0;for(;A.length>0;){const N=A.pop(),K=A.pop();let _=0;const W=y[K],j=y[K+1],re=y[N],X=y[N+1];for(let Z=K+S;Z<N;Z+=S){const J=y[Z],q=y[Z+1],L=(0,i.rU)(J,q,W,j,re,X);L>_&&(I=Z,_=L)}_>w&&(T[(I-b)/S]=1,K+S<I&&A.push(K,I),I+S<N&&A.push(I,N))}for(let N=0;N<R;++N)T[N]&&(x[P++]=y[b+N*S],x[P++]=y[b+N*S+1]);return P}function v(y,b,E,S,w,x,P,R){for(let T=0,A=E.length;T<A;++T){const I=E[T];P=u(y,b,I,S,w,x,P),R.push(P),b=I}return P}function l(y,b,E,S,w,x,P,R){for(let T=0,A=E.length;T<A;++T){const I=E[T],N=[];P=v(y,b,I,S,w,x,P,N),R.push(N),b=I[I.length-1]}return P}function h(y,b,E,S,w,x,P){if(E<=b+S){for(;b<E;b+=S)x[P++]=y[b],x[P++]=y[b+1];return P}let R=y[b],T=y[b+1];x[P++]=R,x[P++]=T;let A=R,I=T;for(b+=S;b<E;b+=S)A=y[b],I=y[b+1],squaredDistance(R,T,A,I)>w&&(x[P++]=A,x[P++]=I,R=A,T=I);return(A!=R||I!=T)&&(x[P++]=A,x[P++]=I),P}function p(y,b){return b*Math.round(y/b)}function d(y,b,E,S,w,x,P){if(b==E)return P;let R=p(y[b],w),T=p(y[b+1],w);b+=S,x[P++]=R,x[P++]=T;let A,I;do if(A=p(y[b],w),I=p(y[b+1],w),b+=S,b==E)return x[P++]=A,x[P++]=I,P;while(A==R&&I==T);for(;b<E;){const N=p(y[b],w),K=p(y[b+1],w);if(b+=S,N==A&&K==I)continue;const _=A-R,W=I-T,j=N-R,re=K-T;if(_*re==W*j&&(_<0&&j<_||_==j||_>0&&j>_)&&(W<0&&re<W||W==re||W>0&&re>W)){A=N,I=K;continue}x[P++]=A,x[P++]=I,R=A,T=I,A=N,I=K}return x[P++]=A,x[P++]=I,P}function f(y,b,E,S,w,x,P,R){for(let T=0,A=E.length;T<A;++T){const I=E[T];P=d(y,b,I,S,w,x,P),R.push(P),b=I}return P}function g(y,b,E,S,w,x,P,R){for(let T=0,A=E.length;T<A;++T){const I=E[T],N=[];P=f(y,b,I,S,w,x,P,N),R.push(N),b=I[I.length-1]}return P}},75925:(C,c,t)=>{"use strict";t.d(c,{Iu:()=>v,U1:()=>s,bA:()=>u,vT:()=>i});function i(l,h,p,d,f,g){g=g||[];let y=0;for(let b=h;b<p;b+=d){const E=l[b],S=l[b+1];g[y++]=f[0]*E+f[2]*S+f[4],g[y++]=f[1]*E+f[3]*S+f[5]}return g&&g.length!=y&&(g.length=y),g}function s(l,h,p,d,f,g,y){y=y||[];const b=Math.cos(f),E=Math.sin(f),S=g[0],w=g[1];let x=0;for(let P=h;P<p;P+=d){const R=l[P]-S,T=l[P+1]-w;y[x++]=S+R*b-T*E,y[x++]=w+R*E+T*b;for(let A=P+2;A<P+d;++A)y[x++]=l[A]}return y&&y.length!=x&&(y.length=x),y}function u(l,h,p,d,f,g,y,b){b=b||[];const E=y[0],S=y[1];let w=0;for(let x=h;x<p;x+=d){const P=l[x]-E,R=l[x+1]-S;b[w++]=E+f*P,b[w++]=S+g*R;for(let T=x+2;T<x+d;++T)b[w++]=l[T]}return b&&b.length!=w&&(b.length=w),b}function v(l,h,p,d,f,g,y){y=y||[];let b=0;for(let E=h;E<p;E+=d){y[b++]=l[E]+f,y[b++]=l[E+1]+g;for(let S=E+2;S<E+d;++S)y[b++]=l[S]}return y&&y.length!=b&&(y.length=b),y}},90738:(C,c,t)=>{"use strict";t.d(c,{G$:()=>l,Id:()=>d,ME:()=>v,MP:()=>p,Tp:()=>f,V:()=>s,bM:()=>g,tK:()=>h});const i=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",s=i.includes("firefox"),v=i.includes("safari")&&!i.includes("chrom")&&(i.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(i)),l=i.includes("webkit")&&!i.includes("edge"),h=i.includes("macintosh"),p=typeof devicePixelRatio<"u"?devicePixelRatio:1,d=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,f=typeof Image<"u"&&Image.prototype.decode,g=function(){let y=!1;try{const b=Object.defineProperty({},"passive",{get:function(){y=!0}});window.addEventListener("_",null,b),window.removeEventListener("_",null,b)}catch{}return y}()},43638:(C,c,t)=>{"use strict";t.d(c,{Cv:()=>l,FW:()=>h,ZP:()=>p});var i=t(42133),s=t(93829),u=t(43896);class v extends i.Z{constructor(f){super(),this.on,this.once,this.un,f&&f.handleEvent&&(this.handleEvent=f.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(s.Z.ACTIVE)}getMap(){return this.map_}handleEvent(f){return!0}setActive(f){this.set(s.Z.ACTIVE,f)}setMap(f){this.map_=f}}function l(d,f,g){const y=d.getCenterInternal();if(y){const b=[y[0]+f[0],y[1]+f[1]];d.animateInternal({duration:g!==void 0?g:250,easing:u.GE,center:d.getConstrainedCenter(b)})}}function h(d,f,g,y){const b=d.getZoom();if(b===void 0)return;const E=d.getConstrainedZoom(b+f),S=d.getResolutionForZoom(E);d.getAnimating()&&d.cancelAnimations(),d.animate({resolution:S,anchor:g,duration:y!==void 0?y:250,easing:u.Vv})}const p=v},27591:(C,c,t)=>{"use strict";t.d(c,{Z:()=>p});var i=t(21750),s=t(43638),u=t(90738),v=t(31107),l=t(73863);class h extends s.ZP{constructor(f){f=f||{},super(f),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=f.maxDelta!==void 0?f.maxDelta:1,this.duration_=f.duration!==void 0?f.duration:250,this.timeout_=f.timeout!==void 0?f.timeout:80,this.useAnchor_=f.useAnchor!==void 0?f.useAnchor:!0,this.constrainResolution_=f.constrainResolution!==void 0?f.constrainResolution:!1;const g=f.condition?f.condition:v.Bx;this.condition_=f.onFocusOnly?(0,v.$6)(v.yZ,g):g,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const f=this.getMap();if(!f)return;f.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(f){if(!this.condition_(f)||f.type!==i.Z.WHEEL)return!0;const y=f.map,b=f.originalEvent;b.preventDefault(),this.useAnchor_&&(this.lastAnchor_=f.coordinate);let E;if(f.type==i.Z.WHEEL&&(E=b.deltaY,u.V&&b.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(E/=u.MP),b.deltaMode===WheelEvent.DOM_DELTA_LINE&&(E*=40)),E===0)return!1;this.lastDelta_=E;const S=Date.now();this.startTime_===void 0&&(this.startTime_=S),(!this.mode_||S-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(E)<4?"trackpad":"wheel");const w=y.getView();if(this.mode_==="trackpad"&&!(w.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(w.getAnimating()&&w.cancelAnimations(),w.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),w.adjustZoom(-E/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=S,!1;this.totalDelta_+=E;const x=Math.max(this.timeout_-(S-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,y),x),!1}handleWheelZoom_(f){const g=f.getView();g.getAnimating()&&g.cancelAnimations();let y=-(0,l.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(g.getConstrainResolution()||this.constrainResolution_)&&(y=y?y>0?1:-1:0),(0,s.FW)(g,y,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(f){this.useAnchor_=f,f||(this.lastAnchor_=null)}}const p=h},94516:(C,c,t)=>{"use strict";t.d(c,{S:()=>v,Z:()=>l});var i=t(43638),s=t(24781);class u extends i.ZP{constructor(p){p=p||{},super(p),p.handleDownEvent&&(this.handleDownEvent=p.handleDownEvent),p.handleDragEvent&&(this.handleDragEvent=p.handleDragEvent),p.handleMoveEvent&&(this.handleMoveEvent=p.handleMoveEvent),p.handleUpEvent&&(this.handleUpEvent=p.handleUpEvent),p.stopDown&&(this.stopDown=p.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(p){return!1}handleDragEvent(p){}handleEvent(p){if(!p.originalEvent)return!0;let d=!1;if(this.updateTrackedPointers_(p),this.handlingDownUpSequence){if(p.type==s.Z.POINTERDRAG)this.handleDragEvent(p),p.originalEvent.preventDefault();else if(p.type==s.Z.POINTERUP){const f=this.handleUpEvent(p);this.handlingDownUpSequence=f&&this.targetPointers.length>0}}else if(p.type==s.Z.POINTERDOWN){const f=this.handleDownEvent(p);this.handlingDownUpSequence=f,d=this.stopDown(f)}else p.type==s.Z.POINTERMOVE&&this.handleMoveEvent(p);return!d}handleMoveEvent(p){}handleUpEvent(p){return!1}stopDown(p){return p}updateTrackedPointers_(p){p.activePointers&&(this.targetPointers=p.activePointers)}}function v(h){const p=h.length;let d=0,f=0;for(let g=0;g<p;g++)d+=h[g].clientX,f+=h[g].clientY;return{clientX:d/p,clientY:f/p}}const l=u},93829:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});const i={ACTIVE:"active"}},33810:(C,c,t)=>{"use strict";t.d(c,{c:()=>te});var i=t(81780),s=t(43638),u=t(24781);class v extends s.ZP{constructor(fe){super(),fe=fe||{},this.delta_=fe.delta?fe.delta:1,this.duration_=fe.duration!==void 0?fe.duration:250}handleEvent(fe){let Se=!1;if(fe.type==u.Z.DBLCLICK){const he=fe.originalEvent,me=fe.map,_e=fe.coordinate,we=he.shiftKey?-this.delta_:this.delta_,Ge=me.getView();(0,s.FW)(Ge,we,_e,this.duration_),he.preventDefault(),Se=!0}return!Se}}const l=v;var h=t(94516),p=t(41875),d=t(31107),f=t(43896),g=t(44445);class y extends h.Z{constructor(fe){super({stopDown:p.Dv}),fe=fe||{},this.kinetic_=fe.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const Se=fe.condition?fe.condition:(0,d.$6)(d.rM,d.Xp);this.condition_=fe.onFocusOnly?(0,d.$6)(d.yZ,Se):Se,this.noKinetic_=!1}handleDragEvent(fe){const Se=fe.map;this.panning_||(this.panning_=!0,Se.getView().beginInteraction());const he=this.targetPointers,me=Se.getEventPixel((0,h.S)(he));if(he.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(me[0],me[1]),this.lastCentroid){const _e=[this.lastCentroid[0]-me[0],me[1]-this.lastCentroid[1]],Ge=fe.map.getView();(0,g.bA)(_e,Ge.getResolution()),(0,g.U1)(_e,Ge.getRotation()),Ge.adjustCenterInternal(_e)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=me,this.lastPointersCount_=he.length,fe.originalEvent.preventDefault()}handleUpEvent(fe){const Se=fe.map,he=Se.getView();if(this.targetPointers.length===0){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const me=this.kinetic_.getDistance(),_e=this.kinetic_.getAngle(),we=he.getCenterInternal(),Ge=Se.getPixelFromCoordinateInternal(we),ht=Se.getCoordinateFromPixelInternal([Ge[0]-me*Math.cos(_e),Ge[1]-me*Math.sin(_e)]);he.animateInternal({center:he.getConstrainedCenter(ht),duration:500,easing:f.Vv})}return this.panning_&&(this.panning_=!1,he.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(fe){if(this.targetPointers.length>0&&this.condition_(fe)){const he=fe.map.getView();return this.lastCentroid=null,he.getAnimating()&&he.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}const b=y;var E=t(80593);class S extends h.Z{constructor(fe){fe=fe||{},super({stopDown:p.Dv}),this.condition_=fe.condition?fe.condition:d.aj,this.lastAngle_=void 0,this.duration_=fe.duration!==void 0?fe.duration:250}handleDragEvent(fe){if(!(0,d.QL)(fe))return;const Se=fe.map,he=Se.getView();if(he.getConstraints().rotation===E.h$)return;const me=Se.getSize(),_e=fe.pixel,we=Math.atan2(me[1]/2-_e[1],_e[0]-me[0]/2);if(this.lastAngle_!==void 0){const Ge=we-this.lastAngle_;he.adjustRotationInternal(-Ge)}this.lastAngle_=we}handleUpEvent(fe){return(0,d.QL)(fe)?(fe.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(fe){return(0,d.QL)(fe)&&(0,d.v8)(fe)&&this.condition_(fe)?(fe.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}}const w=S;var x=t(82723),P=t(78555),R=t(27349);class T extends P.Z{constructor(fe){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+fe,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const fe=this.startPixel_,Se=this.endPixel_,he="px",me=this.element_.style;me.left=Math.min(fe[0],Se[0])+he,me.top=Math.min(fe[1],Se[1])+he,me.width=Math.abs(Se[0]-fe[0])+he,me.height=Math.abs(Se[1]-fe[1])+he}setMap(fe){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const Se=this.element_.style;Se.left="inherit",Se.top="inherit",Se.width="inherit",Se.height="inherit"}this.map_=fe,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(fe,Se){this.startPixel_=fe,this.endPixel_=Se,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const fe=this.startPixel_,Se=this.endPixel_,me=[fe,[fe[0],Se[1]],Se,[Se[0],fe[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);me[4]=me[0].slice(),this.geometry_?this.geometry_.setCoordinates([me]):this.geometry_=new R.ZP([me])}getGeometry(){return this.geometry_}}const A=T,I={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class N extends x.ZP{constructor(fe,Se,he){super(fe),this.coordinate=Se,this.mapBrowserEvent=he}}class K extends h.Z{constructor(fe){super(),this.on,this.once,this.un,fe=fe||{},this.box_=new A(fe.className||"ol-dragbox"),this.minArea_=fe.minArea!==void 0?fe.minArea:64,fe.onBoxEnd&&(this.onBoxEnd=fe.onBoxEnd),this.startPixel_=null,this.condition_=fe.condition?fe.condition:d.v8,this.boxEndCondition_=fe.boxEndCondition?fe.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(fe,Se,he){const me=he[0]-Se[0],_e=he[1]-Se[1];return me*me+_e*_e>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(fe){this.box_.setPixels(this.startPixel_,fe.pixel),this.dispatchEvent(new N(I.BOXDRAG,fe.coordinate,fe))}handleUpEvent(fe){this.box_.setMap(null);const Se=this.boxEndCondition_(fe,this.startPixel_,fe.pixel);return Se&&this.onBoxEnd(fe),this.dispatchEvent(new N(Se?I.BOXEND:I.BOXCANCEL,fe.coordinate,fe)),!1}handleDownEvent(fe){return this.condition_(fe)?(this.startPixel_=fe.pixel,this.box_.setMap(fe.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new N(I.BOXSTART,fe.coordinate,fe)),!0):!1}onBoxEnd(fe){}}const _=K;class W extends _{constructor(fe){fe=fe||{};const Se=fe.condition?fe.condition:d.vY;super({condition:Se,className:fe.className||"ol-dragzoom",minArea:fe.minArea}),this.duration_=fe.duration!==void 0?fe.duration:200,this.out_=fe.out!==void 0?fe.out:!1}onBoxEnd(fe){const he=this.getMap().getView();let me=this.getGeometry();if(this.out_){const _e=he.rotatedExtentForGeometry(me),we=he.getResolutionForExtentInternal(_e),Ge=he.getResolution()/we;me=me.clone(),me.scale(Ge*Ge)}he.fitInternal(me,{duration:this.duration_,easing:f.Vv})}}const j=W;var re=t(21750);const X={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};class Z extends s.ZP{constructor(fe){super(),fe=fe||{},this.defaultCondition_=function(Se){return(0,d.rM)(Se)&&(0,d.TN)(Se)},this.condition_=fe.condition!==void 0?fe.condition:this.defaultCondition_,this.duration_=fe.duration!==void 0?fe.duration:100,this.pixelDelta_=fe.pixelDelta!==void 0?fe.pixelDelta:128}handleEvent(fe){let Se=!1;if(fe.type==re.Z.KEYDOWN){const he=fe.originalEvent,me=he.key;if(this.condition_(fe)&&(me==X.DOWN||me==X.LEFT||me==X.RIGHT||me==X.UP)){const we=fe.map.getView(),Ge=we.getResolution()*this.pixelDelta_;let ht=0,nt=0;me==X.DOWN?nt=-Ge:me==X.LEFT?ht=-Ge:me==X.RIGHT?ht=Ge:nt=Ge;const Re=[ht,nt];(0,g.U1)(Re,we.getRotation()),(0,s.Cv)(we,Re,this.duration_),he.preventDefault(),Se=!0}}return!Se}}const J=Z;class q extends s.ZP{constructor(fe){super(),fe=fe||{},this.condition_=fe.condition?fe.condition:d.TN,this.delta_=fe.delta?fe.delta:1,this.duration_=fe.duration!==void 0?fe.duration:100}handleEvent(fe){let Se=!1;if(fe.type==re.Z.KEYDOWN||fe.type==re.Z.KEYPRESS){const he=fe.originalEvent,me=he.key;if(this.condition_(fe)&&(me==="+"||me==="-")){const _e=fe.map,we=me==="+"?this.delta_:-this.delta_,Ge=_e.getView();(0,s.FW)(Ge,we,void 0,this.duration_),he.preventDefault(),Se=!0}}return!Se}}const L=q;class ${constructor(fe,Se,he){this.decay_=fe,this.minVelocity_=Se,this.delay_=he,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(fe,Se){this.points_.push(fe,Se,Date.now())}end(){if(this.points_.length<6)return!1;const fe=Date.now()-this.delay_,Se=this.points_.length-3;if(this.points_[Se+2]<fe)return!1;let he=Se-3;for(;he>0&&this.points_[he+2]>fe;)he-=3;const me=this.points_[Se+2]-this.points_[he+2];if(me<1e3/60)return!1;const _e=this.points_[Se]-this.points_[he],we=this.points_[Se+1]-this.points_[he+1];return this.angle_=Math.atan2(we,_e),this.initialVelocity_=Math.sqrt(_e*_e+we*we)/me,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}const k=$;var F=t(27591);class V extends h.Z{constructor(fe){fe=fe||{};const Se=fe;Se.stopDown||(Se.stopDown=p.Dv),super(Se),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=fe.threshold!==void 0?fe.threshold:.3,this.duration_=fe.duration!==void 0?fe.duration:250}handleDragEvent(fe){let Se=0;const he=this.targetPointers[0],me=this.targetPointers[1],_e=Math.atan2(me.clientY-he.clientY,me.clientX-he.clientX);if(this.lastAngle_!==void 0){const ht=_e-this.lastAngle_;this.rotationDelta_+=ht,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),Se=ht}this.lastAngle_=_e;const we=fe.map,Ge=we.getView();Ge.getConstraints().rotation!==E.h$&&(this.anchor_=we.getCoordinateFromPixelInternal(we.getEventPixel((0,h.S)(this.targetPointers))),this.rotating_&&(we.render(),Ge.adjustRotationInternal(Se,this.anchor_)))}handleUpEvent(fe){return this.targetPointers.length<2?(fe.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(fe){if(this.targetPointers.length>=2){const Se=fe.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||Se.getView().beginInteraction(),!0}return!1}}const pe=V;class ce extends h.Z{constructor(fe){fe=fe||{};const Se=fe;Se.stopDown||(Se.stopDown=p.Dv),super(Se),this.anchor_=null,this.duration_=fe.duration!==void 0?fe.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(fe){let Se=1;const he=this.targetPointers[0],me=this.targetPointers[1],_e=he.clientX-me.clientX,we=he.clientY-me.clientY,Ge=Math.sqrt(_e*_e+we*we);this.lastDistance_!==void 0&&(Se=this.lastDistance_/Ge),this.lastDistance_=Ge;const ht=fe.map,nt=ht.getView();Se!=1&&(this.lastScaleDelta_=Se),this.anchor_=ht.getCoordinateFromPixelInternal(ht.getEventPixel((0,h.S)(this.targetPointers))),ht.render(),nt.adjustResolutionInternal(Se,this.anchor_)}handleUpEvent(fe){if(this.targetPointers.length<2){const he=fe.map.getView(),me=this.lastScaleDelta_>1?1:-1;return he.endInteraction(this.duration_,me),!1}return!0}handleDownEvent(fe){if(this.targetPointers.length>=2){const Se=fe.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||Se.getView().beginInteraction(),!0}return!1}}const G=ce;function te(ie){ie=ie||{};const fe=new i.Z,Se=new k(-.005,.05,100);return(ie.altShiftDragRotate!==void 0?ie.altShiftDragRotate:!0)&&fe.push(new w),(ie.doubleClickZoom!==void 0?ie.doubleClickZoom:!0)&&fe.push(new l({delta:ie.zoomDelta,duration:ie.zoomDuration})),(ie.dragPan!==void 0?ie.dragPan:!0)&&fe.push(new b({onFocusOnly:ie.onFocusOnly,kinetic:Se})),(ie.pinchRotate!==void 0?ie.pinchRotate:!0)&&fe.push(new pe),(ie.pinchZoom!==void 0?ie.pinchZoom:!0)&&fe.push(new G({duration:ie.zoomDuration})),(ie.keyboard!==void 0?ie.keyboard:!0)&&(fe.push(new J),fe.push(new L({delta:ie.zoomDelta,duration:ie.zoomDuration}))),(ie.mouseWheelZoom!==void 0?ie.mouseWheelZoom:!0)&&fe.push(new F.Z({onFocusOnly:ie.onFocusOnly,duration:ie.zoomDuration})),(ie.shiftDragZoom!==void 0?ie.shiftDragZoom:!0)&&fe.push(new j({duration:ie.zoomDuration})),fe}},94055:(C,c,t)=>{"use strict";t.d(c,{Z:()=>p});var i=t(42133),s=t(50966),u=t(80075),v=t(30998),l=t(73863);class h extends i.Z{constructor(f){super(),this.on,this.once,this.un,this.background_=f.background;const g=Object.assign({},f);typeof f.properties=="object"&&(delete g.properties,Object.assign(g,f.properties)),g[s.Z.OPACITY]=f.opacity!==void 0?f.opacity:1,(0,v.h)(typeof g[s.Z.OPACITY]=="number",64),g[s.Z.VISIBLE]=f.visible!==void 0?f.visible:!0,g[s.Z.Z_INDEX]=f.zIndex,g[s.Z.MAX_RESOLUTION]=f.maxResolution!==void 0?f.maxResolution:1/0,g[s.Z.MIN_RESOLUTION]=f.minResolution!==void 0?f.minResolution:0,g[s.Z.MIN_ZOOM]=f.minZoom!==void 0?f.minZoom:-1/0,g[s.Z.MAX_ZOOM]=f.maxZoom!==void 0?f.maxZoom:1/0,this.className_=g.className!==void 0?g.className:"ol-layer",delete g.className,this.setProperties(g),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(f){const g=this.state_||{layer:this,managed:f===void 0?!0:f},y=this.getZIndex();return g.opacity=(0,l.uZ)(Math.round(this.getOpacity()*100)/100,0,1),g.visible=this.getVisible(),g.extent=this.getExtent(),g.zIndex=y===void 0&&!g.managed?1/0:y,g.maxResolution=this.getMaxResolution(),g.minResolution=Math.max(this.getMinResolution(),0),g.minZoom=this.getMinZoom(),g.maxZoom=this.getMaxZoom(),this.state_=g,g}getLayersArray(f){return(0,u.O3)()}getLayerStatesArray(f){return(0,u.O3)()}getExtent(){return this.get(s.Z.EXTENT)}getMaxResolution(){return this.get(s.Z.MAX_RESOLUTION)}getMinResolution(){return this.get(s.Z.MIN_RESOLUTION)}getMinZoom(){return this.get(s.Z.MIN_ZOOM)}getMaxZoom(){return this.get(s.Z.MAX_ZOOM)}getOpacity(){return this.get(s.Z.OPACITY)}getSourceState(){return(0,u.O3)()}getVisible(){return this.get(s.Z.VISIBLE)}getZIndex(){return this.get(s.Z.Z_INDEX)}setBackground(f){this.background_=f,this.changed()}setExtent(f){this.set(s.Z.EXTENT,f)}setMaxResolution(f){this.set(s.Z.MAX_RESOLUTION,f)}setMinResolution(f){this.set(s.Z.MIN_RESOLUTION,f)}setMaxZoom(f){this.set(s.Z.MAX_ZOOM,f)}setMinZoom(f){this.set(s.Z.MIN_ZOOM,f)}setOpacity(f){(0,v.h)(typeof f=="number",64),this.set(s.Z.OPACITY,f)}setVisible(f){this.set(s.Z.VISIBLE,f)}setZIndex(f){this.set(s.Z.Z_INDEX,f)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const p=h},35041:(C,c,t)=>{"use strict";t.d(c,{V:()=>b,Z:()=>w});var i=t(94055),s=t(81780),u=t(81459),v=t(82723),l=t(21750),h=t(26657),p=t(30998),d=t(36095),f=t(70328),g=t(80075),y=t(67314);class b extends v.ZP{constructor(P,R){super(P),this.layer=R}}const E={LAYERS:"layers"};class S extends i.Z{constructor(P){P=P||{};const R=Object.assign({},P);delete R.layers;let T=P.layers;super(R),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(E.LAYERS,this.handleLayersChanged_),T?Array.isArray(T)?T=new s.Z(T.slice(),{unique:!0}):(0,p.h)(typeof T.getArray=="function",43):T=new s.Z(void 0,{unique:!0}),this.setLayers(T)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(y.bN),this.layersListenerKeys_.length=0;const P=this.getLayers();this.layersListenerKeys_.push((0,y.oL)(P,u.Z.ADD,this.handleLayersAdd_,this),(0,y.oL)(P,u.Z.REMOVE,this.handleLayersRemove_,this));for(const T in this.listenerKeys_)this.listenerKeys_[T].forEach(y.bN);(0,d.Z)(this.listenerKeys_);const R=P.getArray();for(let T=0,A=R.length;T<A;T++){const I=R[T];this.registerLayerListeners_(I),this.dispatchEvent(new b("addlayer",I))}this.changed()}registerLayerListeners_(P){const R=[(0,y.oL)(P,h.Z.PROPERTYCHANGE,this.handleLayerChange_,this),(0,y.oL)(P,l.Z.CHANGE,this.handleLayerChange_,this)];P instanceof S&&R.push((0,y.oL)(P,"addlayer",this.handleLayerGroupAdd_,this),(0,y.oL)(P,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,g.sq)(P)]=R}handleLayerGroupAdd_(P){this.dispatchEvent(new b("addlayer",P.layer))}handleLayerGroupRemove_(P){this.dispatchEvent(new b("removelayer",P.layer))}handleLayersAdd_(P){const R=P.element;this.registerLayerListeners_(R),this.dispatchEvent(new b("addlayer",R)),this.changed()}handleLayersRemove_(P){const R=P.element,T=(0,g.sq)(R);this.listenerKeys_[T].forEach(y.bN),delete this.listenerKeys_[T],this.dispatchEvent(new b("removelayer",R)),this.changed()}getLayers(){return this.get(E.LAYERS)}setLayers(P){const R=this.getLayers();if(R){const T=R.getArray();for(let A=0,I=T.length;A<I;++A)this.dispatchEvent(new b("removelayer",T[A]))}this.set(E.LAYERS,P)}getLayersArray(P){return P=P!==void 0?P:[],this.getLayers().forEach(function(R){R.getLayersArray(P)}),P}getLayerStatesArray(P){const R=P!==void 0?P:[],T=R.length;this.getLayers().forEach(function(N){N.getLayerStatesArray(R)});const A=this.getLayerState();let I=A.zIndex;!P&&A.zIndex===void 0&&(I=0);for(let N=T,K=R.length;N<K;N++){const _=R[N];_.opacity*=A.opacity,_.visible=_.visible&&A.visible,_.maxResolution=Math.min(_.maxResolution,A.maxResolution),_.minResolution=Math.max(_.minResolution,A.minResolution),_.minZoom=Math.max(_.minZoom,A.minZoom),_.maxZoom=Math.min(_.maxZoom,A.maxZoom),A.extent!==void 0&&(_.extent!==void 0?_.extent=(0,f.Ed)(_.extent,A.extent):_.extent=A.extent),_.zIndex===void 0&&(_.zIndex=I)}return R}getSourceState(){return"ready"}}const w=S},85271:(C,c,t)=>{"use strict";t.d(c,{Z:()=>y,j:()=>g});var i=t(94055),s=t(21750),u=t(50966),v=t(80032),l=t(53917),h=t(30998),p=t(70328),d=t(67314);class f extends i.Z{constructor(E){const S=Object.assign({},E);delete S.source,super(S),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,E.render&&(this.render=E.render),E.map&&this.setMap(E.map),this.addChangeListener(u.Z.SOURCE,this.handleSourcePropertyChange_);const w=E.source?E.source:null;this.setSource(w)}getLayersArray(E){return E=E||[],E.push(this),E}getLayerStatesArray(E){return E=E||[],E.push(this.getLayerState()),E}getSource(){return this.get(u.Z.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const E=this.getSource();return E?E.getState():"undefined"}handleSourceChange_(){this.changed(),!(this.sourceReady_||this.getSource().getState()!=="ready")&&(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,d.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const E=this.getSource();E&&(this.sourceChangeKey_=(0,d.oL)(E,s.Z.CHANGE,this.handleSourceChange_,this),E.getState()==="ready"&&(this.sourceReady_=!0,setTimeout(()=>{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(E){return this.renderer_?this.renderer_.getFeatures(E):Promise.resolve([])}getData(E){return!this.renderer_||!this.rendered?null:this.renderer_.getData(E)}isVisible(E){let S;const w=this.getMapInternal();!E&&w&&(E=w.getView()),E instanceof l.ZP?S={viewState:E.getState(),extent:E.calculateExtent()}:S=E,!S.layerStatesArray&&w&&(S.layerStatesArray=w.getLayerGroup().getLayerStatesArray());let x;S.layerStatesArray?x=S.layerStatesArray.find(R=>R.layer===this):x=this.getLayerState();const P=this.getExtent();return g(x,S.viewState)&&(!P||(0,p.kK)(P,S.extent))}getAttributions(E){if(!this.isVisible(E))return[];let S;const w=this.getSource();if(w&&(S=w.getAttributions()),!S)return[];const x=E instanceof l.ZP?E.getViewStateAndExtent():E;let P=S(x);return Array.isArray(P)||(P=[P]),P}render(E,S){const w=this.getRenderer();return w.prepareFrame(E)?(this.rendered=!0,w.renderFrame(E,S)):null}unrender(){this.rendered=!1}setMapInternal(E){E||this.unrender(),this.set(u.Z.MAP,E)}getMapInternal(){return this.get(u.Z.MAP)}setMap(E){this.mapPrecomposeKey_&&((0,d.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),E||this.changed(),this.mapRenderKey_&&((0,d.bN)(this.mapRenderKey_),this.mapRenderKey_=null),E&&(this.mapPrecomposeKey_=(0,d.oL)(E,v.Z.PRECOMPOSE,function(S){const x=S.frameState.layerStatesArray,P=this.getLayerState(!1);(0,h.h)(!x.some(function(R){return R.layer===P.layer}),67),x.push(P)},this),this.mapRenderKey_=(0,d.oL)(this,s.Z.CHANGE,E.render,E),this.changed())}setSource(E){this.set(u.Z.SOURCE,E)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function g(b,E){if(!b.visible)return!1;const S=E.resolution;if(S<b.minResolution||S>=b.maxResolution)return!1;const w=E.zoom;return w>b.minZoom&&w<=b.maxZoom}const y=f},50966:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});const i={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},73863:(C,c,t)=>{"use strict";t.d(c,{$W:()=>p,FH:()=>f,GW:()=>y,SV:()=>v,Yr:()=>h,bI:()=>u,mD:()=>b,rU:()=>s,t7:()=>d,uZ:()=>i});function i(E,S,w){return Math.min(Math.max(E,S),w)}function s(E,S,w,x,P,R){const T=P-w,A=R-x;if(T!==0||A!==0){const I=((E-w)*T+(S-x)*A)/(T*T+A*A);I>1?(w=P,x=R):I>0&&(w+=T*I,x+=A*I)}return u(E,S,w,x)}function u(E,S,w,x){const P=w-E,R=x-S;return P*P+R*R}function v(E){const S=E.length;for(let x=0;x<S;x++){let P=x,R=Math.abs(E[x][x]);for(let A=x+1;A<S;A++){const I=Math.abs(E[A][x]);I>R&&(R=I,P=A)}if(R===0)return null;const T=E[P];E[P]=E[x],E[x]=T;for(let A=x+1;A<S;A++){const I=-E[A][x]/E[x][x];for(let N=x;N<S+1;N++)x==N?E[A][N]=0:E[A][N]+=I*E[x][N]}}const w=new Array(S);for(let x=S-1;x>=0;x--){w[x]=E[x][S]/E[x][x];for(let P=x-1;P>=0;P--)E[P][S]-=E[P][x]*w[x]}return w}function l(E){return E*180/Math.PI}function h(E){return E*Math.PI/180}function p(E,S){const w=E%S;return w*S<0?w+S:w}function d(E,S,w){return E+w*(S-E)}function f(E,S){const w=Math.pow(10,S);return Math.round(E*w)/w}function g(E,S){return Math.round(f(E,S))}function y(E,S){return Math.floor(f(E,S))}function b(E,S){return Math.ceil(f(E,S))}},36095:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i,x:()=>s});function i(u){for(const v in u)delete u[v]}function s(u){let v;for(v in u)return!1;return!v}},29209:(C,c,t)=>{"use strict";t.d(c,{Wm:()=>u,UQ:()=>me,h_:()=>F,OP:()=>nt,mi:()=>Ge,Vs:()=>$e,dY:()=>ke,U2:()=>te,_Q:()=>ie,Ck:()=>ue,WO:()=>Re,Cs:()=>It,bU:()=>ht,lO:()=>Ae,Fj:()=>tt,on:()=>Oe,vs:()=>ae});const i={9001:"m",9002:"ft",9003:"us-ft",9101:"radians",9102:"degrees"};function s(ut){return i[ut]}const u={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class v{constructor(Ne){this.code_=Ne.code,this.units_=Ne.units,this.extent_=Ne.extent!==void 0?Ne.extent:null,this.worldExtent_=Ne.worldExtent!==void 0?Ne.worldExtent:null,this.axisOrientation_=Ne.axisOrientation!==void 0?Ne.axisOrientation:"enu",this.global_=Ne.global!==void 0?Ne.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=Ne.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=Ne.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||u[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(Ne){this.global_=Ne,this.canWrapX_=!!(Ne&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(Ne){this.defaultTileGrid_=Ne}setExtent(Ne){this.extent_=Ne,this.canWrapX_=!!(this.global_&&Ne)}setWorldExtent(Ne){this.worldExtent_=Ne}setGetPointResolution(Ne){this.getPointResolutionFunc_=Ne}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const l=v,h=6378137,p=Math.PI*h,d=[-p,-p,p,p],f=[-180,-85,180,85],g=h*Math.log(Math.tan(Math.PI/2));class y extends l{constructor(Ne){super({code:Ne,units:"m",extent:d,global:!0,worldExtent:f,getPointResolution:function(mt,bt){return mt/Math.cosh(bt[1]/h)}})}}const b=[new y("EPSG:3857"),new y("EPSG:102100"),new y("EPSG:102113"),new y("EPSG:900913"),new y("http://www.opengis.net/def/crs/EPSG/0/3857"),new y("http://www.opengis.net/gml/srs/epsg.xml#3857")];function E(ut,Ne,mt){const bt=ut.length;mt=mt>1?mt:2,Ne===void 0&&(mt>2?Ne=ut.slice():Ne=new Array(bt));for(let Gt=0;Gt<bt;Gt+=mt){Ne[Gt]=p*ut[Gt]/180;let hn=h*Math.log(Math.tan(Math.PI*(+ut[Gt+1]+90)/360));hn>g?hn=g:hn<-g&&(hn=-g),Ne[Gt+1]=hn}return Ne}function S(ut,Ne,mt){const bt=ut.length;mt=mt>1?mt:2,Ne===void 0&&(mt>2?Ne=ut.slice():Ne=new Array(bt));for(let Gt=0;Gt<bt;Gt+=mt)Ne[Gt]=180*ut[Gt]/p,Ne[Gt+1]=360*Math.atan(Math.exp(ut[Gt+1]/h))/Math.PI-90;return Ne}const w=6378137,x=[-180,-90,180,90],P=Math.PI*w/180;class R extends l{constructor(Ne,mt){super({code:Ne,units:"degrees",extent:x,axisOrientation:mt,global:!0,metersPerUnit:P,worldExtent:x})}}const T=[new R("CRS:84"),new R("EPSG:4326","neu"),new R("urn:ogc:def:crs:OGC:1.3:CRS84"),new R("urn:ogc:def:crs:OGC:2:84"),new R("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new R("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new R("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let A={};function I(){A={}}function N(ut){return A[ut]||A[ut.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function K(ut,Ne){A[ut]=Ne}let _={};function W(){_={}}function j(ut,Ne,mt){const bt=ut.getCode(),Gt=Ne.getCode();bt in _||(_[bt]={}),_[bt][Gt]=mt}function re(ut,Ne){const mt=ut.getCode(),bt=Ne.getCode(),Gt=_[mt][bt];return delete _[mt][bt],isEmpty(_[mt])&&delete _[mt],Gt}function X(ut,Ne){let mt;return ut in _&&Ne in _[ut]&&(mt=_[ut][Ne]),mt}var Z=t(70328),J=t(73863),q=t(44445),L=t(36334),$=t(37198);let k=!0;function F(ut){k=!(ut===void 0?!0:ut)}function V(ut,Ne){if(Ne!==void 0){for(let mt=0,bt=ut.length;mt<bt;++mt)Ne[mt]=ut[mt];Ne=Ne}else Ne=ut.slice();return Ne}function pe(ut,Ne){if(Ne!==void 0&&ut!==Ne){for(let mt=0,bt=ut.length;mt<bt;++mt)Ne[mt]=ut[mt];ut=Ne}return ut}function ce(ut){K(ut.getCode(),ut),j(ut,ut,V)}function G(ut){ut.forEach(ce)}function te(ut){return typeof ut=="string"?N(ut):ut||null}function ie(ut,Ne,mt,bt){ut=te(ut);let Gt;const hn=ut.getPointResolutionFunc();if(hn){if(Gt=hn(Ne,mt),bt&&bt!==ut.getUnits()){const Yt=ut.getMetersPerUnit();Yt&&(Gt=Gt*Yt/u[bt])}}else{const Yt=ut.getUnits();if(Yt=="degrees"&&!bt||bt=="degrees")Gt=Ne;else{const Bt=Re(ut,te("EPSG:4326"));if(Bt===pe&&Yt!=="degrees")Gt=Ne*ut.getMetersPerUnit();else{let zt=[mt[0]-Ne/2,mt[1],mt[0]+Ne/2,mt[1],mt[0],mt[1]-Ne/2,mt[0],mt[1]+Ne/2];zt=Bt(zt,zt,2);const Kt=(0,L.Sp)(zt.slice(0,2),zt.slice(2,4)),vt=(0,L.Sp)(zt.slice(4,6),zt.slice(6,8));Gt=(Kt+vt)/2}const Lt=bt?u[bt]:ut.getMetersPerUnit();Lt!==void 0&&(Gt/=Lt)}}return Gt}function fe(ut){G(ut),ut.forEach(function(Ne){ut.forEach(function(mt){Ne!==mt&&j(Ne,mt,V)})})}function Se(ut,Ne,mt,bt){ut.forEach(function(Gt){Ne.forEach(function(hn){j(Gt,hn,mt),j(hn,Gt,bt)})})}function he(){clearProj(),clearTransformFuncs()}function me(ut,Ne){return ut?typeof ut=="string"?te(ut):ut:te(Ne)}function _e(ut){return function(Ne,mt,bt){const Gt=Ne.length;bt=bt!==void 0?bt:2,mt=mt!==void 0?mt:new Array(Gt);for(let hn=0;hn<Gt;hn+=bt){const Yt=ut(Ne.slice(hn,hn+bt)),Bt=Yt.length;for(let Lt=0,zt=bt;Lt<zt;++Lt)mt[hn+Lt]=Lt>=Bt?Ne[hn+Lt]:Yt[Lt]}return mt}}function we(ut,Ne,mt,bt){const Gt=te(ut),hn=te(Ne);addTransformFunc(Gt,hn,_e(mt)),addTransformFunc(hn,Gt,_e(bt))}function Ge(ut,Ne){return F(),ae(ut,"EPSG:4326",Ne!==void 0?Ne:"EPSG:3857")}function ht(ut,Ne){const mt=ae(ut,Ne!==void 0?Ne:"EPSG:3857","EPSG:4326"),bt=mt[0];return(bt<-180||bt>180)&&(mt[0]=(0,J.$W)(bt+180,360)-180),mt}function nt(ut,Ne){if(ut===Ne)return!0;const mt=ut.getUnits()===Ne.getUnits();return(ut.getCode()===Ne.getCode()||Re(ut,Ne)===V)&&mt}function Re(ut,Ne){const mt=ut.getCode(),bt=Ne.getCode();let Gt=X(mt,bt);return Gt||(Gt=pe),Gt}function ue(ut,Ne){const mt=te(ut),bt=te(Ne);return Re(mt,bt)}function ae(ut,Ne,mt){return ue(Ne,mt)(ut,void 0,ut.length)}function ve(ut,Ne,mt,bt){const Gt=ue(Ne,mt);return(0,Z.Ne)(ut,Gt,void 0,bt)}function Me(ut,Ne,mt){return Re(Ne,mt)(ut)}let Ye=null;function qe(ut){Ye=te(ut)}function At(){Ye=null}function It(){return Ye}function Ce(){qe("EPSG:4326")}function Ae(ut,Ne){return Ye?ae(ut,Ne,Ye):ut}function $e(ut,Ne){return Ye?ae(ut,Ye,Ne):(k&&!(0,q.fS)(ut,[0,0])&&ut[0]>=-180&&ut[0]<=180&&ut[1]>=-90&&ut[1]<=90&&(k=!1,(0,$.ZK)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),ut)}function tt(ut,Ne){return Ye?ve(ut,Ne,Ye):ut}function ke(ut,Ne){return Ye?ve(ut,Ye,Ne):ut}function Oe(ut,Ne){if(!Ye)return ut;const mt=te(Ne).getUnits(),bt=Ye.getUnits();return mt&&bt?ut*u[mt]/u[bt]:ut}function je(ut,Ne){if(!Ye)return ut;const mt=te(Ne).getUnits(),bt=Ye.getUnits();return mt&&bt?ut*METERS_PER_UNIT[bt]/METERS_PER_UNIT[mt]:ut}function Et(ut,Ne,mt){return function(bt){let Gt,hn;if(ut.canWrapX()){const Yt=ut.getExtent(),Bt=getWidth(Yt);bt=bt.slice(0),hn=getWorldsAway(bt,ut,Bt),hn&&(bt[0]=bt[0]-hn*Bt),bt[0]=clamp(bt[0],Yt[0],Yt[2]),bt[1]=clamp(bt[1],Yt[1],Yt[3]),Gt=mt(bt)}else Gt=mt(bt);return hn&&Ne.canWrapX()&&(Gt[0]+=hn*getWidth(Ne.getExtent())),Gt}}function ct(){fe(b),fe(T),Se(T,b,E,S)}ct()},12297:(C,c,t)=>{"use strict";t.d(c,{Z:()=>u});var i=t(82723);class s extends i.ZP{constructor(l,h,p,d){super(l),this.inversePixelTransform=h,this.frameState=p,this.context=d}}const u=s},80032:(C,c,t)=>{"use strict";t.d(c,{Z:()=>i});const i={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},62822:(C,c,t)=>{"use strict";t.d(c,{Df:()=>h,He:()=>g,Kd:()=>j,PH:()=>S,Qx:()=>N,Tx:()=>E,V4:()=>b,X9:()=>f,Zw:()=>re,_f:()=>Z,bL:()=>p,mb:()=>d,oB:()=>x,rc:()=>y,ru:()=>w,sG:()=>R,yC:()=>P});var i=t(42133),s=t(90738),u=t(36095),v=t(43045),l=t(62989);const h="10px sans-serif",p="#000",d="round",f=[],g=0,y="round",b=10,E="#000",S="center",w="middle",x=[0,0,0,0],P=1,R=new i.Z;let T=null,A;const I={},N=function(){const L="32px ",$=["monospace","serif"],k=$.length,F="wmytzilWMYTZIL@#/&?$%10\uF013";let V,pe;function ce(te,ie,fe){let Se=!0;for(let he=0;he<k;++he){const me=$[he];if(pe=W(te+" "+ie+" "+L+me,F),fe!=me){const _e=W(te+" "+ie+" "+L+fe+","+me,F);Se=Se&&_e!=pe}}return!!Se}function G(){let te=!0;const ie=R.getKeys();for(let fe=0,Se=ie.length;fe<Se;++fe){const he=ie[fe];R.get(he)<100&&(ce.apply(this,he.split(` `))?((0,u.Z)(I),T=null,A=void 0,R.set(he,100)):(R.set(he,R.get(he)+1,!0),te=!1))}te&&(clearInterval(V),V=void 0)}return function(te){const ie=(0,l.p)(te);if(!ie)return;const fe=ie.families;for(let Se=0,he=fe.length;Se<he;++Se){const me=fe[Se],_e=ie.style+` `+ie.weight+` `+me;R.get(_e)===void 0&&(R.set(_e,100,!0),ce(ie.style,ie.weight,me)||(R.set(_e,0,!0),V===void 0&&(V=setInterval(G,32))))}}}(),K=function(){let q;return function(L){let $=I[L];if($==null){if(s.Id){const k=(0,l.p)(L),F=_(L,"\u017Dg");$=(isNaN(Number(k.lineHeight))?1.2:Number(k.lineHeight))*(F.actualBoundingBoxAscent+F.actualBoundingBoxDescent)}else q||(q=document.createElement("div"),q.innerHTML="M",q.style.minHeight="0",q.style.maxHeight="none",q.style.height="auto",q.style.padding="0",q.style.border="none",q.style.position="absolute",q.style.display="block",q.style.left="-99999px"),q.style.font=L,document.body.appendChild(q),$=q.offsetHeight,document.body.removeChild(q);I[L]=$}return $}}();function _(q,L){return T||(T=(0,v.E4)(1,1)),q!=A&&(T.font=q,A=T.font),T.measureText(L)}function W(q,L){return _(q,L).width}function j(q,L,$){if(L in $)return $[L];const k=L.split(` `).reduce((F,V)=>Math.max(F,W(q,V)),0);return $[L]=k,k}function re(q,L){const $=[],k=[],F=[];let V=0,pe=0,ce=0,G=0;for(let te=0,ie=L.length;te<=ie;te+=2){const fe=L[te];if(fe===` `||te===ie){V=Math.max(V,pe),F.push(pe),pe=0,ce+=G;continue}const Se=L[te+1]||q.font,he=W(Se,fe);$.push(he),pe+=he;const me=K(Se);k.push(me),G=Math.max(G,me)}return{width:V,height:ce,widths:$,heights:k,lineWidths:F}}function X(q,L,$,k){L!==0&&(q.translate($,k),q.rotate(L),q.translate(-$,-k))}function Z(q,L,$,k,F,V,pe,ce,G,te,ie){q.save(),$!==1&&(q.globalAlpha*=$),L&&q.setTransform.apply(q,L),k.contextInstructions?(q.translate(G,te),q.scale(ie[0],ie[1]),J(k,q)):ie[0]<0||ie[1]<0?(q.translate(G,te),q.scale(ie[0],ie[1]),q.drawImage(k,F,V,pe,ce,0,0,pe,ce)):q.drawImage(k,F,V,pe,ce,G,te,pe*ie[0],ce*ie[1]),q.restore()}function J(q,L){const $=q.contextInstructions;for(let k=0,F=$.length;k<F;k+=2)Array.isArray($[k+1])?L[$[k]].apply(L,$[k+1]):L[$[k]]=$[k+1]}},80593:(C,c,t)=>{"use strict";t.d(c,{Gw:()=>l,YP:()=>u,gE:()=>v,h$:()=>s});var i=t(73863);function s(h){if(h!==void 0)return 0}function u(h){if(h!==void 0)return h}function v(h){const p=2*Math.PI/h;return function(d,f){if(f)return d;if(d!==void 0)return d=Math.floor(d/p+.5)*p,d}}function l(h){return h=h||(0,i.Yr)(5),function(p,d){if(d)return p;if(p!==void 0)return Math.abs(p)<=h?0:p}}},69805:(C,c,t)=>{"use strict";t.d(c,{Pq:()=>v,bA:()=>u,py:()=>s});function i(l,h,p){return p===void 0&&(p=[0,0]),p[0]=l[0]+2*h,p[1]=l[1]+2*h,p}function s(l){return l[0]>0&&l[1]>0}function u(l,h,p){return p===void 0&&(p=[0,0]),p[0]=l[0]*h+.5|0,p[1]=l[1]*h+.5|0,p}function v(l,h){return Array.isArray(l)?l:(h===void 0?h=[l,l]:(h[0]=l,h[1]=l),h)}},36334:(C,c,t)=>{"use strict";t.d(c,{Sp:()=>u,bg:()=>p,xA:()=>l});var i=t(73863);const s=63710088e-1;function u(f,g,y){y=y||s;const b=(0,i.Yr)(f[1]),E=(0,i.Yr)(g[1]),S=(E-b)/2,w=(0,i.Yr)(g[0]-f[0])/2,x=Math.sin(S)*Math.sin(S)+Math.sin(w)*Math.sin(w)*Math.cos(b)*Math.cos(E);return 2*y*Math.atan2(Math.sqrt(x),Math.sqrt(1-x))}function v(f,g){let y=0;for(let b=0,E=f.length;b<E-1;++b)y+=u(f[b],f[b+1],g);return y}function l(f,g){g=g||{};const y=g.radius||s,b=g.projection||"EPSG:3857",E=f.getType();E!=="GeometryCollection"&&(f=f.clone().transform(b,"EPSG:4326"));let S=0,w,x,P,R,T,A;switch(E){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":{w=f.getCoordinates(),S=v(w,y);break}case"MultiLineString":case"Polygon":{for(w=f.getCoordinates(),P=0,R=w.length;P<R;++P)S+=v(w[P],y);break}case"MultiPolygon":{for(w=f.getCoordinates(),P=0,R=w.length;P<R;++P)for(x=w[P],T=0,A=x.length;T<A;++T)S+=v(x[T],y);break}case"GeometryCollection":{const I=f.getGeometries();for(P=0,R=I.length;P<R;++P)S+=l(I[P],g);break}default:throw new Error("Unsupported geometry type: "+E)}return S}function h(f,g){let y=0;const b=f.length;let E=f[b-1][0],S=f[b-1][1];for(let w=0;w<b;w++){const x=f[w][0],P=f[w][1];y+=(0,i.Yr)(x-E)*(2+Math.sin((0,i.Yr)(S))+Math.sin((0,i.Yr)(P))),E=x,S=P}return y*g*g/2}function p(f,g){g=g||{};const y=g.radius||s,b=g.projection||"EPSG:3857",E=f.getType();E!=="GeometryCollection"&&(f=f.clone().transform(b,"EPSG:4326"));let S=0,w,x,P,R,T,A;switch(E){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":{for(w=f.getCoordinates(),S=Math.abs(h(w[0],y)),P=1,R=w.length;P<R;++P)S-=Math.abs(h(w[P],y));break}case"MultiPolygon":{for(w=f.getCoordinates(),P=0,R=w.length;P<R;++P)for(x=w[P],S+=Math.abs(h(x[0],y)),T=1,A=x.length;T<A;++T)S-=Math.abs(h(x[T],y));break}case"GeometryCollection":{const I=f.getGeometries();for(P=0,R=I.length;P<R;++P)S+=p(I[P],g);break}default:throw new Error("Unsupported geometry type: "+E)}return S}function d(f,g,y,b){b=b||s;const E=toRadians(f[1]),S=toRadians(f[0]),w=g/b,x=Math.asin(Math.sin(E)*Math.cos(w)+Math.cos(E)*Math.sin(w)*Math.cos(y)),P=S+Math.atan2(Math.sin(y)*Math.sin(w)*Math.cos(E),Math.cos(w)-Math.sin(E)*Math.sin(x));return[toDegrees(P),toDegrees(x)]}},49462:(C,c,t)=>{"use strict";t.d(c,{c:()=>l});var i=t(59844);class s{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let p=0;for(const d in this.cache_){const f=this.cache_[d];!(p++&3)&&!f.hasListener()&&(delete this.cache_[d],--this.cacheSize_)}}}get(p,d,f){const g=u(p,d,f);return g in this.cache_?this.cache_[g]:null}set(p,d,f,g){const y=u(p,d,f);this.cache_[y]=g,++this.cacheSize_}setSize(p){this.maxCacheSize_=p,this.expire()}}function u(h,p,d){const f=d?(0,i.XC)(d):"null";return p+":"+h+":"+f}var v=null;const l=new s},16257:(C,c,t)=>{"use strict";t.d(c,{S:()=>s,e:()=>i});const i=42,s=256},81659:(C,c,t)=>{"use strict";t.d(c,{BB:()=>A,Iu:()=>E,Jp:()=>h,U1:()=>g,Ue:()=>v,bA:()=>y,lk:()=>d,mc:()=>l,n3:()=>b,nb:()=>P,nn:()=>f,qC:()=>S});var i=t(90738),s=t(30998);const u=new Array(6);function v(){return[1,0,0,1,0,0]}function l(I){return p(I,1,0,0,1,0,0)}function h(I,N){const K=I[0],_=I[1],W=I[2],j=I[3],re=I[4],X=I[5],Z=N[0],J=N[1],q=N[2],L=N[3],$=N[4],k=N[5];return I[0]=K*Z+W*J,I[1]=_*Z+j*J,I[2]=K*q+W*L,I[3]=_*q+j*L,I[4]=K*$+W*k+re,I[5]=_*$+j*k+X,I}function p(I,N,K,_,W,j,re){return I[0]=N,I[1]=K,I[2]=_,I[3]=W,I[4]=j,I[5]=re,I}function d(I,N){return I[0]=N[0],I[1]=N[1],I[2]=N[2],I[3]=N[3],I[4]=N[4],I[5]=N[5],I}function f(I,N){const K=N[0],_=N[1];return N[0]=I[0]*K+I[2]*_+I[4],N[1]=I[1]*K+I[3]*_+I[5],N}function g(I,N){const K=Math.cos(N),_=Math.sin(N);return h(I,p(u,K,_,-_,K,0,0))}function y(I,N,K){return h(I,p(u,N,0,0,K,0,0))}function b(I,N,K){return p(I,N,0,0,K,0,0)}function E(I,N,K){return h(I,p(u,1,0,0,1,N,K))}function S(I,N,K,_,W,j,re,X){const Z=Math.sin(j),J=Math.cos(j);return I[0]=_*J,I[1]=W*Z,I[2]=-_*Z,I[3]=W*J,I[4]=re*_*J-X*_*Z+N,I[5]=re*W*Z+X*W*J+K,I}function w(I,N,K,_,W,j,re){return A(S(v(),I,N,K,_,W,j,re))}function x(I){return P(I,I)}function P(I,N){const K=R(N);(0,s.h)(K!==0,32);const _=N[0],W=N[1],j=N[2],re=N[3],X=N[4],Z=N[5];return I[0]=re/K,I[1]=-W/K,I[2]=-j/K,I[3]=_/K,I[4]=(j*Z-re*X)/K,I[5]=-(_*Z-W*X)/K,I}function R(I){return I[0]*I[3]-I[1]*I[2]}let T;function A(I){const N="matrix("+I.join(", ")+")";if(i.Id)return N;const K=T||(T=document.createElement("div"));return K.style.transform=N,K.style.transform}},80075:(C,c,t)=>{"use strict";t.d(c,{O3:()=>i,sq:()=>u});function i(){throw new Error("Unimplemented abstract method.")}let s=0;function u(l){return l.ol_uid||(l.ol_uid=String(++s))}const v="7.4.0"},71685:(C,c,t)=>{"use strict";t.d(c,{Z:()=>v});function i(Se){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(he){return typeof he}:function(he){return he&&typeof Symbol=="function"&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he},i(Se)}var s=/^\s+/,u=/\s+$/;function v(Se,he){if(Se=Se||"",he=he||{},Se instanceof v)return Se;if(!(this instanceof v))return new v(Se,he);var me=l(Se);this._originalInput=Se,this._r=me.r,this._g=me.g,this._b=me.b,this._a=me.a,this._roundA=Math.round(100*this._a)/100,this._format=he.format||me.format,this._gradientType=he.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=me.ok}v.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var he=this.toRgb();return(he.r*299+he.g*587+he.b*114)/1e3},getLuminance:function(){var he=this.toRgb(),me,_e,we,Ge,ht,nt;return me=he.r/255,_e=he.g/255,we=he.b/255,me<=.03928?Ge=me/12.92:Ge=Math.pow((me+.055)/1.055,2.4),_e<=.03928?ht=_e/12.92:ht=Math.pow((_e+.055)/1.055,2.4),we<=.03928?nt=we/12.92:nt=Math.pow((we+.055)/1.055,2.4),.2126*Ge+.7152*ht+.0722*nt},setAlpha:function(he){return this._a=Z(he),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var he=f(this._r,this._g,this._b);return{h:he.h*360,s:he.s,v:he.v,a:this._a}},toHsvString:function(){var he=f(this._r,this._g,this._b),me=Math.round(he.h*360),_e=Math.round(he.s*100),we=Math.round(he.v*100);return this._a==1?"hsv("+me+", "+_e+"%, "+we+"%)":"hsva("+me+", "+_e+"%, "+we+"%, "+this._roundA+")"},toHsl:function(){var he=p(this._r,this._g,this._b);return{h:he.h*360,s:he.s,l:he.l,a:this._a}},toHslString:function(){var he=p(this._r,this._g,this._b),me=Math.round(he.h*360),_e=Math.round(he.s*100),we=Math.round(he.l*100);return this._a==1?"hsl("+me+", "+_e+"%, "+we+"%)":"hsla("+me+", "+_e+"%, "+we+"%, "+this._roundA+")"},toHex:function(he){return y(this._r,this._g,this._b,he)},toHexString:function(he){return"#"+this.toHex(he)},toHex8:function(he){return b(this._r,this._g,this._b,this._a,he)},toHex8String:function(he){return"#"+this.toHex8(he)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(J(this._r,255)*100)+"%",g:Math.round(J(this._g,255)*100)+"%",b:Math.round(J(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(J(this._r,255)*100)+"%, "+Math.round(J(this._g,255)*100)+"%, "+Math.round(J(this._b,255)*100)+"%)":"rgba("+Math.round(J(this._r,255)*100)+"%, "+Math.round(J(this._g,255)*100)+"%, "+Math.round(J(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:re[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(he){var me="#"+E(this._r,this._g,this._b,this._a),_e=me,we=this._gradientType?"GradientType = 1, ":"";if(he){var Ge=v(he);_e="#"+E(Ge._r,Ge._g,Ge._b,Ge._a)}return"progid:DXImageTransform.Microsoft.gradient("+we+"startColorstr="+me+",endColorstr="+_e+")"},toString:function(he){var me=!!he;he=he||this._format;var _e=!1,we=this._a<1&&this._a>=0,Ge=!me&&we&&(he==="hex"||he==="hex6"||he==="hex3"||he==="hex4"||he==="hex8"||he==="name");return Ge?he==="name"&&this._a===0?this.toName():this.toRgbString():(he==="rgb"&&(_e=this.toRgbString()),he==="prgb"&&(_e=this.toPercentageRgbString()),(he==="hex"||he==="hex6")&&(_e=this.toHexString()),he==="hex3"&&(_e=this.toHexString(!0)),he==="hex4"&&(_e=this.toHex8String(!0)),he==="hex8"&&(_e=this.toHex8String()),he==="name"&&(_e=this.toName()),he==="hsl"&&(_e=this.toHslString()),he==="hsv"&&(_e=this.toHsvString()),_e||this.toHexString())},clone:function(){return v(this.toString())},_applyModification:function(he,me){var _e=he.apply(null,[this].concat([].slice.call(me)));return this._r=_e._r,this._g=_e._g,this._b=_e._b,this.setAlpha(_e._a),this},lighten:function(){return this._applyModification(P,arguments)},brighten:function(){return this._applyModification(R,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(he,me){return he.apply(null,[this].concat([].slice.call(me)))},analogous:function(){return this._applyCombination(_,arguments)},complement:function(){return this._applyCombination(I,arguments)},monochromatic:function(){return this._applyCombination(W,arguments)},splitcomplement:function(){return this._applyCombination(K,arguments)},triad:function(){return this._applyCombination(N,[3])},tetrad:function(){return this._applyCombination(N,[4])}},v.fromRatio=function(Se,he){if(i(Se)=="object"){var me={};for(var _e in Se)Se.hasOwnProperty(_e)&&(_e==="a"?me[_e]=Se[_e]:me[_e]=V(Se[_e]));Se=me}return v(Se,he)};function l(Se){var he={r:0,g:0,b:0},me=1,_e=null,we=null,Ge=null,ht=!1,nt=!1;return typeof Se=="string"&&(Se=ie(Se)),i(Se)=="object"&&(te(Se.r)&&te(Se.g)&&te(Se.b)?(he=h(Se.r,Se.g,Se.b),ht=!0,nt=String(Se.r).substr(-1)==="%"?"prgb":"rgb"):te(Se.h)&&te(Se.s)&&te(Se.v)?(_e=V(Se.s),we=V(Se.v),he=g(Se.h,_e,we),ht=!0,nt="hsv"):te(Se.h)&&te(Se.s)&&te(Se.l)&&(_e=V(Se.s),Ge=V(Se.l),he=d(Se.h,_e,Ge),ht=!0,nt="hsl"),Se.hasOwnProperty("a")&&(me=Se.a)),me=Z(me),{ok:ht,format:Se.format||nt,r:Math.min(255,Math.max(he.r,0)),g:Math.min(255,Math.max(he.g,0)),b:Math.min(255,Math.max(he.b,0)),a:me}}function h(Se,he,me){return{r:J(Se,255)*255,g:J(he,255)*255,b:J(me,255)*255}}function p(Se,he,me){Se=J(Se,255),he=J(he,255),me=J(me,255);var _e=Math.max(Se,he,me),we=Math.min(Se,he,me),Ge,ht,nt=(_e+we)/2;if(_e==we)Ge=ht=0;else{var Re=_e-we;switch(ht=nt>.5?Re/(2-_e-we):Re/(_e+we),_e){case Se:Ge=(he-me)/Re+(he<me?6:0);break;case he:Ge=(me-Se)/Re+2;break;case me:Ge=(Se-he)/Re+4;break}Ge/=6}return{h:Ge,s:ht,l:nt}}function d(Se,he,me){var _e,we,Ge;Se=J(Se,360),he=J(he,100),me=J(me,100);function ht(ue,ae,ve){return ve<0&&(ve+=1),ve>1&&(ve-=1),ve<1/6?ue+(ae-ue)*6*ve:ve<1/2?ae:ve<2/3?ue+(ae-ue)*(2/3-ve)*6:ue}if(he===0)_e=we=Ge=me;else{var nt=me<.5?me*(1+he):me+he-me*he,Re=2*me-nt;_e=ht(Re,nt,Se+1/3),we=ht(Re,nt,Se),Ge=ht(Re,nt,Se-1/3)}return{r:_e*255,g:we*255,b:Ge*255}}function f(Se,he,me){Se=J(Se,255),he=J(he,255),me=J(me,255);var _e=Math.max(Se,he,me),we=Math.min(Se,he,me),Ge,ht,nt=_e,Re=_e-we;if(ht=_e===0?0:Re/_e,_e==we)Ge=0;else{switch(_e){case Se:Ge=(he-me)/Re+(he<me?6:0);break;case he:Ge=(me-Se)/Re+2;break;case me:Ge=(Se-he)/Re+4;break}Ge/=6}return{h:Ge,s:ht,v:nt}}function g(Se,he,me){Se=J(Se,360)*6,he=J(he,100),me=J(me,100);var _e=Math.floor(Se),we=Se-_e,Ge=me*(1-he),ht=me*(1-we*he),nt=me*(1-(1-we)*he),Re=_e%6,ue=[me,ht,Ge,Ge,nt,me][Re],ae=[nt,me,me,ht,Ge,Ge][Re],ve=[Ge,Ge,nt,me,me,ht][Re];return{r:ue*255,g:ae*255,b:ve*255}}function y(Se,he,me,_e){var we=[F(Math.round(Se).toString(16)),F(Math.round(he).toString(16)),F(Math.round(me).toString(16))];return _e&&we[0].charAt(0)==we[0].charAt(1)&&we[1].charAt(0)==we[1].charAt(1)&&we[2].charAt(0)==we[2].charAt(1)?we[0].charAt(0)+we[1].charAt(0)+we[2].charAt(0):we.join("")}function b(Se,he,me,_e,we){var Ge=[F(Math.round(Se).toString(16)),F(Math.round(he).toString(16)),F(Math.round(me).toString(16)),F(pe(_e))];return we&&Ge[0].charAt(0)==Ge[0].charAt(1)&&Ge[1].charAt(0)==Ge[1].charAt(1)&&Ge[2].charAt(0)==Ge[2].charAt(1)&&Ge[3].charAt(0)==Ge[3].charAt(1)?Ge[0].charAt(0)+Ge[1].charAt(0)+Ge[2].charAt(0)+Ge[3].charAt(0):Ge.join("")}function E(Se,he,me,_e){var we=[F(pe(_e)),F(Math.round(Se).toString(16)),F(Math.round(he).toString(16)),F(Math.round(me).toString(16))];return we.join("")}v.equals=function(Se,he){return!Se||!he?!1:v(Se).toRgbString()==v(he).toRgbString()},v.random=function(){return v.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function S(Se,he){he=he===0?0:he||10;var me=v(Se).toHsl();return me.s-=he/100,me.s=q(me.s),v(me)}function w(Se,he){he=he===0?0:he||10;var me=v(Se).toHsl();return me.s+=he/100,me.s=q(me.s),v(me)}function x(Se){return v(Se).desaturate(100)}function P(Se,he){he=he===0?0:he||10;var me=v(Se).toHsl();return me.l+=he/100,me.l=q(me.l),v(me)}function R(Se,he){he=he===0?0:he||10;var me=v(Se).toRgb();return me.r=Math.max(0,Math.min(255,me.r-Math.round(255*-(he/100)))),me.g=Math.max(0,Math.min(255,me.g-Math.round(255*-(he/100)))),me.b=Math.max(0,Math.min(255,me.b-Math.round(255*-(he/100)))),v(me)}function T(Se,he){he=he===0?0:he||10;var me=v(Se).toHsl();return me.l-=he/100,me.l=q(me.l),v(me)}function A(Se,he){var me=v(Se).toHsl(),_e=(me.h+he)%360;return me.h=_e<0?360+_e:_e,v(me)}function I(Se){var he=v(Se).toHsl();return he.h=(he.h+180)%360,v(he)}function N(Se,he){if(isNaN(he)||he<=0)throw new Error("Argument to polyad must be a positive number");for(var me=v(Se).toHsl(),_e=[v(Se)],we=360/he,Ge=1;Ge<he;Ge++)_e.push(v({h:(me.h+Ge*we)%360,s:me.s,l:me.l}));return _e}function K(Se){var he=v(Se).toHsl(),me=he.h;return[v(Se),v({h:(me+72)%360,s:he.s,l:he.l}),v({h:(me+216)%360,s:he.s,l:he.l})]}function _(Se,he,me){he=he||6,me=me||30;var _e=v(Se).toHsl(),we=360/me,Ge=[v(Se)];for(_e.h=(_e.h-(we*he>>1)+720)%360;--he;)_e.h=(_e.h+we)%360,Ge.push(v(_e));return Ge}function W(Se,he){he=he||6;for(var me=v(Se).toHsv(),_e=me.h,we=me.s,Ge=me.v,ht=[],nt=1/he;he--;)ht.push(v({h:_e,s:we,v:Ge})),Ge=(Ge+nt)%1;return ht}v.mix=function(Se,he,me){me=me===0?0:me||50;var _e=v(Se).toRgb(),we=v(he).toRgb(),Ge=me/100,ht={r:(we.r-_e.r)*Ge+_e.r,g:(we.g-_e.g)*Ge+_e.g,b:(we.b-_e.b)*Ge+_e.b,a:(we.a-_e.a)*Ge+_e.a};return v(ht)},v.readability=function(Se,he){var me=v(Se),_e=v(he);return(Math.max(me.getLuminance(),_e.getLuminance())+.05)/(Math.min(me.getLuminance(),_e.getLuminance())+.05)},v.isReadable=function(Se,he,me){var _e=v.readability(Se,he),we,Ge;switch(Ge=!1,we=fe(me),we.level+we.size){case"AAsmall":case"AAAlarge":Ge=_e>=4.5;break;case"AAlarge":Ge=_e>=3;break;case"AAAsmall":Ge=_e>=7;break}return Ge},v.mostReadable=function(Se,he,me){var _e=null,we=0,Ge,ht,nt,Re;me=me||{},ht=me.includeFallbackColors,nt=me.level,Re=me.size;for(var ue=0;ue<he.length;ue++)Ge=v.readability(Se,he[ue]),Ge>we&&(we=Ge,_e=v(he[ue]));return v.isReadable(Se,_e,{level:nt,size:Re})||!ht?_e:(me.includeFallbackColors=!1,v.mostReadable(Se,["#fff","#000"],me))};var j=v.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},re=v.hexNames=X(j);function X(Se){var he={};for(var me in Se)Se.hasOwnProperty(me)&&(he[Se[me]]=me);return he}function Z(Se){return Se=parseFloat(Se),(isNaN(Se)||Se<0||Se>1)&&(Se=1),Se}function J(Se,he){$(Se)&&(Se="100%");var me=k(Se);return Se=Math.min(he,Math.max(0,parseFloat(Se))),me&&(Se=parseInt(Se*he,10)/100),Math.abs(Se-he)<1e-6?1:Se%he/parseFloat(he)}function q(Se){return Math.min(1,Math.max(0,Se))}function L(Se){return parseInt(Se,16)}function $(Se){return typeof Se=="string"&&Se.indexOf(".")!=-1&&parseFloat(Se)===1}function k(Se){return typeof Se=="string"&&Se.indexOf("%")!=-1}function F(Se){return Se.length==1?"0"+Se:""+Se}function V(Se){return Se<=1&&(Se=Se*100+"%"),Se}function pe(Se){return Math.round(parseFloat(Se)*255).toString(16)}function ce(Se){return L(Se)/255}var G=function(){var Se="[-\\+]?\\d+%?",he="[-\\+]?\\d*\\.\\d+%?",me="(?:"+he+")|(?:"+Se+")",_e="[\\s|\\(]+("+me+")[,|\\s]+("+me+")[,|\\s]+("+me+")\\s*\\)?",we="[\\s|\\(]+("+me+")[,|\\s]+("+me+")[,|\\s]+("+me+")[,|\\s]+("+me+")\\s*\\)?";return{CSS_UNIT:new RegExp(me),rgb:new RegExp("rgb"+_e),rgba:new RegExp("rgba"+we),hsl:new RegExp("hsl"+_e),hsla:new RegExp("hsla"+we),hsv:new RegExp("hsv"+_e),hsva:new RegExp("hsva"+we),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function te(Se){return!!G.CSS_UNIT.exec(Se)}function ie(Se){Se=Se.replace(s,"").replace(u,"").toLowerCase();var he=!1;if(j[Se])Se=j[Se],he=!0;else if(Se=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var me;return(me=G.rgb.exec(Se))?{r:me[1],g:me[2],b:me[3]}:(me=G.rgba.exec(Se))?{r:me[1],g:me[2],b:me[3],a:me[4]}:(me=G.hsl.exec(Se))?{h:me[1],s:me[2],l:me[3]}:(me=G.hsla.exec(Se))?{h:me[1],s:me[2],l:me[3],a:me[4]}:(me=G.hsv.exec(Se))?{h:me[1],s:me[2],v:me[3]}:(me=G.hsva.exec(Se))?{h:me[1],s:me[2],v:me[3],a:me[4]}:(me=G.hex8.exec(Se))?{r:L(me[1]),g:L(me[2]),b:L(me[3]),a:ce(me[4]),format:he?"name":"hex8"}:(me=G.hex6.exec(Se))?{r:L(me[1]),g:L(me[2]),b:L(me[3]),format:he?"name":"hex"}:(me=G.hex4.exec(Se))?{r:L(me[1]+""+me[1]),g:L(me[2]+""+me[2]),b:L(me[3]+""+me[3]),a:ce(me[4]+""+me[4]),format:he?"name":"hex8"}:(me=G.hex3.exec(Se))?{r:L(me[1]+""+me[1]),g:L(me[2]+""+me[2]),b:L(me[3]+""+me[3]),format:he?"name":"hex"}:!1}function fe(Se){var he,me;return Se=Se||{level:"AA",size:"small"},he=(Se.level||"AA").toUpperCase(),me=(Se.size||"small").toLowerCase(),he!=="AA"&&he!=="AAA"&&(he="AA"),me!=="small"&&me!=="large"&&(me="small"),{level:he,size:me}}}}]); //# sourceMappingURL=1486.9f5c58b5413b0650af69.js.map