diff --git a/main.js b/main.js index 5693dc7..167d71c 100644 --- a/main.js +++ b/main.js @@ -28649,8 +28649,10 @@ var T = class { note: "Link to Note", link: "Link", callout: "Callout", + bookmark: "Bookmark", table: "Table", codeblock: "Code Block", + toggle: "Toggle", emoji: "Emoji", image: "Image", flow: "Linked Note", @@ -28732,6 +28734,14 @@ var T = class { button: { label: "Button", description: "Buttons can perform actions and open links" + }, + callout: { + label: "Callout", + description: "Callout to highlight important information" + }, + toggle: { + label: "Toggle", + description: "Toggle to show/hide content" } }, menu: { @@ -31653,7 +31663,6 @@ var parseProperty = (field, value) => { break; case "date": { - console.log(typeof value); if (value instanceof Date) { const dateString = format(new Date(value), "yyyy-MM-dd"); if (typeof dateString === "string") @@ -32025,12 +32034,21 @@ var SpaceManager = class { resolvePath(path, source) { if (!source) return path; - return this.primarySpaceAdapter.resolvePath(path, source); + if (path.indexOf("http") == 0) + return path; + if (path.indexOf("./") == 0 && source) { + if (this.superstate.spacesIndex.has(source)) + return source + path.slice(1); + return source.slice(0, source.lastIndexOf("/")) + path.slice(1); + } + if (this.superstate.spacesIndex.has(path)) + return path; + return this.primarySpaceAdapter.resolvePath(path, source) ?? path; } uriByString(uri, source) { if (!uri) return null; - if (uri.indexOf("/") == -1 && source) { + if (source) { uri = this.resolvePath(uri, source); if (!uri) return null; @@ -42829,7 +42847,7 @@ var stringIsConst = (str) => { const hasQuotesAtStartEndOnly = /^["'](?:[^"\\]|\\.)*["'](?:;)?$/.test(str); const fixedStr = str?.replace(/;+$/, ""); const isNumber3 = !isNaN(parseFloat(fixedStr)) && !isNaN(fixedStr); - return hasQuotesAtStartEndOnly || isNumber3 || str == null || str == ""; + return hasQuotesAtStartEndOnly || isNumber3 || fixedStr == "false" || fixedStr == "true" || str == null || str == ""; }; var kitWithProps = (root, props, styles2, actions) => { return frameRootWithProps({ ...root, node: { ...root.node, type: "frame", ref: "spaces://$kit/#*" + root.id }, children: [] }, props, styles2, actions); @@ -44943,6 +44961,7 @@ var iconNode = { value: "icon" }, styles: { + "--icon-size": `'100%'`, width: `'36px'`, height: `'36px'` } @@ -85588,6 +85607,65 @@ var pathByDef = (filters, path) => { return pathInFilter; }; +// src/schemas/kits/slides.ts +var slidesNode = { + def: { + icon: "ui//gem" + }, + node: { + icon: "ui//gem", + schemaId: "slides", + parentId: "", + name: "Slides", + rank: 0, + id: "slides", + styles: {}, + type: "slides", + props: { + value: "" + }, + types: { + value: "string" + } + } +}; +var slideNode = { + def: { + icon: "ui//gem" + }, + node: { + icon: "ui//gem", + schemaId: "slide", + parentId: "", + name: "Slide", + rank: 0, + id: "slide", + styles: {}, + type: "slide", + props: { + value: "" + }, + types: { + value: "string" + } + } +}; +var deltaNode = { + def: { + icon: "ui//gem" + }, + node: { + icon: "ui//gem", + schemaId: "delta", + parentId: "", + name: "Delta", + rank: 0, + id: "delta", + styles: {}, + type: "delta" + } +}; + // src/schemas/kits/ui.ts var groupableTypes = ["content", "group", "container", "column", "list", "slides", "slide"]; var listNode = { @@ -85986,6 +86064,173 @@ var ratingNode = { }) ] }; +var callout = { + id: "callout", + def: { + id: "callout", + icon: "ui//callout" + }, + node: { + icon: "ui//callout", + schemaId: "callout", + parentId: "", + name: i18n_default.commands.callout, + rank: 0, + id: "callout", + type: "group", + props: { + icon: "", + note: "" + }, + types: { + icon: "icon", + note: "link" + }, + styles: { + borderRadius: `'8px'`, + background: `'var(--mk-ui-background-contrast)'`, + width: `'100%'`, + layout: `'row'`, + gap: `'8px'`, + padding: `'16px'` + } + }, + children: [ + frameRootWithProps(iconNode, { + value: `callout.props.icon` + }, { + width: `'18px'`, + height: `'18px'` + }), + frameRootWithProps({ + ...contentNode, + children: [ + frameRootWithProps(flowNode, { + value: `callout.props.note` + }, { + width: `'100%'`, + "--mk-expanded": `true`, + "--mk-min-mode": `true` + }) + ] + }, {}, { + width: `'auto'`, + flex: `'1'` + }) + ] +}; +var toggleNode = { + id: "toggle", + def: { + id: "toggle", + icon: "ui//collapse-solid", + description: i18n_default.frames.toggle.description + }, + node: { + icon: "ui//collapse-solid", + schemaId: "toggle", + parentId: "", + name: i18n_default.commands.toggle, + rank: 0, + id: "toggle", + type: "group", + props: { + value: "false", + label: "", + note: "" + }, + types: { + value: "boolean", + label: "text", + note: "link" + }, + styles: { + width: `'100%'` + } + }, + children: [ + frameRootWithProps( + { + ...slidesNode, + children: [ + frameRootWithProps( + { + ...slideNode, + children: [ + frameRootWithProps( + { ...deltaNode, node: { ...deltaNode.node, ref: "icon" } }, + {}, + { + transform: `'rotate(90deg)'` + } + ) + ] + }, + { value: "true" } + ), + frameRootWithProps( + { + ...slideNode, + children: [ + frameRootWithProps( + { ...deltaNode, node: { ...deltaNode.node, ref: "icon" } }, + {}, + { + transform: `'rotate(0deg)'` + } + ) + ] + }, + { value: "false" } + ) + ] + }, + { + value: `'value'` + } + ), + frameRootWithProps({ + ...groupNode, + children: [ + { + ...iconNode, + node: { + ...iconNode.node, + props: { + value: `'ui//collapse-solid'` + }, + styles: { + width: `'16px'`, + height: `'16px'` + }, + actions: { + onClick: `$saveState({ toggle: {props: { value: !toggle.props.value }} })` + } + } + }, + { ...textNode, node: { ...textNode.node, props: { value: `toggle.props.label` } } } + ] + }, {}, { + height: `'auto'`, + layoutAlign: `'w'`, + gap: `'8px'`, + layout: `'row'` + }), + frameRootWithProps({ + ...contentNode, + children: [ + frameRootWithProps(flowNode, { + value: `toggle.props.note` + }, { + width: `'auto'`, + flex: `'1'`, + "--mk-expanded": `true`, + "--mk-min-mode": `true` + }) + ] + }, {}, { paddingLeft: `'24px'`, hidden: `!toggle.props.value` }) + ] +}; var progressNode = { id: "progress", def: { @@ -86375,65 +86620,6 @@ var calendarView = { ] }; -// src/schemas/kits/slides.ts -var slidesNode = { - def: { - icon: "ui//gem" - }, - node: { - icon: "ui//gem", - schemaId: "slides", - parentId: "", - name: "Slides", - rank: 0, - id: "slides", - styles: {}, - type: "slides", - props: { - value: "" - }, - types: { - value: "string" - } - } -}; -var slideNode = { - def: { - icon: "ui//gem" - }, - node: { - icon: "ui//gem", - schemaId: "slide", - parentId: "", - name: "Slide", - rank: 0, - id: "slide", - styles: {}, - type: "slide", - props: { - value: "" - }, - types: { - value: "string" - } - } -}; -var deltaNode = { - def: { - icon: "ui//gem" - }, - node: { - icon: "ui//gem", - schemaId: "delta", - parentId: "", - name: "Delta", - rank: 0, - id: "delta", - styles: {}, - type: "delta" - } -}; - // src/schemas/kits/list.ts var fieldsView = { id: "fieldsView", @@ -87839,7 +88025,7 @@ function print() { __p += __j.call(arguments, '') } }\`;var se=_h(function(){return ye(x,q+"return "+O).apply(e,w)});if(se.source=O,sf(se))throw se;return se}function ly(t){return Ce(t).toLowerCase()}function fy(t){return Ce(t).toUpperCase()}function cy(t,n,s){if(t=Ce(t),t&&(s||n===e))return Ys(t);if(!t||!(n=qt(n)))return t;var f=wt(t),d=wt(n),x=Ie(f,d),w=Bs(f,d)+1;return Mn(f,x,w).join("")}function hy(t,n,s){if(t=Ce(t),t&&(s||n===e))return t.slice(0,Oi(t)+1);if(!t||!(n=qt(n)))return t;var f=wt(t),d=Bs(f,wt(n))+1;return Mn(f,0,d).join("")}function py(t,n,s){if(t=Ce(t),t&&(s||n===e))return t.replace(Y,"");if(!t||!(n=qt(n)))return t;var f=wt(t),d=Ie(f,wt(n));return Mn(f,d).join("")}function dy(t,n){var s=Ge,f=pr;if(Be(n)){var d="separator"in n?n.separator:d;s="length"in n?ie(n.length):s,f="omission"in n?qt(n.omission):f}t=Ce(t);var x=t.length;if(Xt(t)){var w=wt(t);x=w.length}if(s>=x)return t;var S=s-Fr(f);if(S<1)return f;var k=w?Mn(w,0,S).join(""):t.slice(0,S);if(d===e)return k+f;if(w&&(S+=k.length-S),of(d)){if(t.slice(S).search(d)){var I,M=k;for(d.global||(d=xr(d.source,Ce(Qt.exec(d))+"g")),d.lastIndex=0;I=d.exec(M);)var O=I.index;k=k.slice(0,O===e?S:O)}}else if(t.indexOf(qt(d),S)!=S){var W=k.lastIndexOf(d);W>-1&&(k=k.slice(0,W))}return k+f}function my(t){return t=Ce(t),t&&bi.test(t)?t.replace(da,qu):t}var gy=Xi(function(t,n,s){return t+(s?" ":"")+n.toUpperCase()}),ff=Sc("toUpperCase");function wh(t,n,s){return t=Ce(t),n=s?e:n,n===e?Bu(t)?$u(t):Fu(t):t.match(n)||[]}var _h=ue(function(t,n){try{return ht(t,e,n)}catch(s){return sf(s)?s:new X(s)}}),yy=en(function(t,n){return Ue(n,function(s){s=Vr(s),Sr(t,s,nf(t[s],t))}),t});function xy(t){var n=t==null?0:t.length,s=$();return t=n?Pe(t,function(f){if(typeof f[1]!="function")throw new Et(l);return[s(f[0]),f[1]]}):[],ue(function(f){for(var d=-1;++dze)return[];var s=Pt,f=Ye(t,Pt);n=$(n),t-=Pt;for(var d=La(f,n);++s0||n<0)?new ae(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),n!==e&&(n=ie(n),s=n<0?s.dropRight(-n):s.take(n-t)),s)},ae.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ae.prototype.toArray=function(){return this.take(Pt)},Jt(ae.prototype,function(t,n){var s=/^(?:filter|find|map|reject)|While$/.test(n),f=/^(?:head|last)$/.test(n),d=g[f?"take"+(n=="last"?"Right":""):n],x=f||/^find/.test(n);!d||(g.prototype[n]=function(){var w=this.__wrapped__,S=f?[1]:arguments,k=w instanceof ae,I=S[0],M=k||te(w),O=function(le){var pe=d.apply(g,Zt([le],S));return f&&W?pe[0]:pe};M&&s&&typeof I=="function"&&I.length!=1&&(k=M=!1);var W=this.__chain__,q=!!this.__actions__.length,j=x&&!W,se=k&&!q;if(!x&&M){w=se?w:new ae(this);var Q=t.apply(w,S);return Q.__actions__.push({func:Co,args:[O],thisArg:e}),new Dt(Q,W)}return j&&se?t.apply(this,S):(Q=this.thru(O),j?f?Q.value()[0]:Q.value():Q)})}),Ue(["pop","push","shift","sort","splice","unshift"],function(t){var n=Gn[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",f=/^(?:pop|shift)$/.test(t);g.prototype[t]=function(){var d=arguments;if(f&&!this.__chain__){var x=this.value();return n.apply(te(x)?x:[],d)}return this[s](function(w){return n.apply(te(w)?w:[],d)})}}),Jt(ae.prototype,function(t,n){var s=g[n];if(s){var f=s.name+"";Se.call(Pn,f)||(Pn[f]=[]),Pn[f].push({name:n,func:s})}}),Pn[xo(e,we).name]=[{name:"wrapper",func:e}],ae.prototype.clone=ul,ae.prototype.reverse=ll,ae.prototype.value=fl,g.prototype.at=zm,g.prototype.chain=$m,g.prototype.commit=jm,g.prototype.next=Qm,g.prototype.plant=Zm,g.prototype.reverse=Xm,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=Jm,g.prototype.first=g.prototype.head,$n&&(g.prototype[$n]=Km),g},Nr=ju();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(et._=Nr,define(function(){return Nr})):Ar?((Ar.exports=Nr)._=Nr,Ea._=Nr):et._=Nr}).call(ra)});var Jh=Ch((Bf,ia)=>{(function(e,r){typeof Bf=="object"&&typeof ia<"u"?ia.exports=r():typeof define=="function"&&define.amd?define(r):e.moment=r()})(Bf,function(){"use strict";var e;function r(){return e.apply(null,arguments)}function a(i){e=i}function u(i){return i instanceof Array||Object.prototype.toString.call(i)==="[object Array]"}function l(i){return i!=null&&Object.prototype.toString.call(i)==="[object Object]"}function p(i,o){return Object.prototype.hasOwnProperty.call(i,o)}function v(i){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(i).length===0;var o;for(o in i)if(p(i,o))return!1;return!0}function C(i){return i===void 0}function T(i){return typeof i=="number"||Object.prototype.toString.call(i)==="[object Number]"}function A(i){return i instanceof Date||Object.prototype.toString.call(i)==="[object Date]"}function R(i,o){var c=[],h,m=i.length;for(h=0;h>>0,h;for(h=0;h0)for(c=0;c<_;c++)h=Xe[c],m=o[h],C(m)||(i[h]=m);return i}function tt(i){it(this,i),this._d=new Date(i._d!=null?i._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Re===!1&&(Re=!0,r.updateOffset(this),Re=!1)}function Te(i){return i instanceof tt||i!=null&&i._isAMomentObject!=null}function Je(i){r.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+i)}function Ge(i,o){var c=!0;return V(function(){if(r.deprecationHandler!=null&&r.deprecationHandler(null,i),c){var h=[],m,_,E,G=arguments.length;for(_=0;_=0;return(_?c?"+":"":"-")+Math.pow(10,Math.max(0,m)).toString().substr(1)+h}var Pt=/(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,mi=/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fa={},hn={};function H(i,o,c,h){var m=h;typeof h=="string"&&(m=function(){return this[h]()}),i&&(hn[i]=m),o&&(hn[o[0]]=function(){return xt(m.apply(this,arguments),o[1],o[2])}),c&&(hn[c]=function(){return this.localeData().ordinal(m.apply(this,arguments),i)})}function gi(i){return i.match(/\\[[\\s\\S]/)?i.replace(/^\\[|\\]$/g,""):i.replace(/\\\\/g,"")}function Ko(i){var o=i.match(Pt),c,h;for(c=0,h=o.length;c=0&&mi.test(i);)i=i.replace(mi,h),mi.lastIndex=0,c-=1;return i}var Zo={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function yi(i){var o=this._longDateFormat[i],c=this._longDateFormat[i.toUpperCase()];return o||!c?o:(this._longDateFormat[i]=c.match(Pt).map(function(h){return h==="MMMM"||h==="MM"||h==="DD"||h==="dddd"?h.slice(1):h}).join(""),this._longDateFormat[i])}var xi="Invalid date";function hs(){return this._invalidDate}var Yt="%d",Yn=/\\d{1,2}/;function Xo(i){return this._ordinal.replace("%d",i)}var dr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ps(i,o,c,h){var m=this._relativeTime[c];return me(m)?m(i,o,c,h):m.replace(/%d/i,i)}function Jo(i,o){var c=this._relativeTime[i>0?"future":"past"];return me(c)?c(o):c.replace(/%s/i,o)}var mr={};function Ee(i,o){var c=i.toLowerCase();mr[c]=mr[c+"s"]=mr[o]=i}function st(i){return typeof i=="string"?mr[i]||mr[i.toLowerCase()]:void 0}function dn(i){var o={},c,h;for(h in i)p(i,h)&&(c=st(h),c&&(o[c]=i[h]));return o}var ds={};function Ve(i,o){ds[i]=o}function eu(i){var o=[],c;for(c in i)p(i,c)&&o.push({unit:c,priority:ds[c]});return o.sort(function(h,m){return h.priority-m.priority}),o}function Dr(i){return i%4===0&&i%100!==0||i%400===0}function rt(i){return i<0?Math.ceil(i)||0:Math.floor(i)}function re(i){var o=+i,c=0;return o!==0&&isFinite(o)&&(c=rt(o)),c}function Ir(i,o){return function(c){return c!=null?(vi(this,i,c),r.updateOffset(this,o),this):mn(this,i)}}function mn(i,o){return i.isValid()?i._d["get"+(i._isUTC?"UTC":"")+o]():NaN}function vi(i,o,c){i.isValid()&&!isNaN(c)&&(o==="FullYear"&&Dr(i.year())&&i.month()===1&&i.date()===29?(c=re(c),i._d["set"+(i._isUTC?"UTC":"")+o](c,i.month(),Ei(c,i.month()))):i._d["set"+(i._isUTC?"UTC":"")+o](c))}function ca(i){return i=st(i),me(this[i])?this[i]():this}function ha(i,o){if(typeof i=="object"){i=dn(i);var c=eu(i),h,m=c.length;for(h=0;h68?1900:2e3)};var ba=Ir("FullYear",!0);function du(){return Dr(this.year())}function vs(i,o,c,h,m,_,E){var G;return i<100&&i>=0?(G=new Date(i+400,o,c,h,m,_,E),isFinite(G.getFullYear())&&G.setFullYear(i)):G=new Date(i,o,c,h,m,_,E),G}function yn(i){var o,c;return i<100&&i>=0?(c=Array.prototype.slice.call(arguments),c[0]=i+400,o=new Date(Date.UTC.apply(null,c)),isFinite(o.getUTCFullYear())&&o.setUTCFullYear(i)):o=new Date(Date.UTC.apply(null,arguments)),o}function xn(i,o,c){var h=7+o-c,m=(7+yn(i,0,h).getUTCDay()-o)%7;return-m+h-1}function ws(i,o,c,h,m){var _=(7+c-h)%7,E=xn(i,h,m),G=1+7*(o-1)+_+E,ee,xe;return G<=0?(ee=i-1,xe=Mr(ee)+G):G>Mr(i)?(ee=i+1,xe=G-Mr(i)):(ee=i,xe=G),{year:ee,dayOfYear:xe}}function vn(i,o,c){var h=xn(i.year(),o,c),m=Math.floor((i.dayOfYear()-h-1)/7)+1,_,E;return m<1?(E=i.year()-1,_=m+Vt(E,o,c)):m>Vt(i.year(),o,c)?(_=m-Vt(i.year(),o,c),E=i.year()+1):(E=i.year(),_=m),{week:_,year:E}}function Vt(i,o,c){var h=xn(i,o,c),m=xn(i+1,o,c);return(Mr(i)-h+m)/7}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),Ee("week","w"),Ee("isoWeek","W"),Ve("week",5),Ve("isoWeek",5),Y("w",Ae),Y("ww",Ae,ct),Y("W",Ae),Y("WW",Ae,ct),Vn(["w","ww","W","WW"],function(i,o,c,h){o[h.substr(0,1)]=re(i)});function ka(i){return vn(i,this._week.dow,this._week.doy).week}var wn={dow:0,doy:6};function _s(){return this._week.dow}function Ss(){return this._week.doy}function mu(i){var o=this.localeData().week(this);return i==null?o:this.add((i-o)*7,"d")}function bs(i){var o=vn(this,1,4).week;return i==null?o:this.add((i-o)*7,"d")}H("d",0,"do","day"),H("dd",0,0,function(i){return this.localeData().weekdaysMin(this,i)}),H("ddd",0,0,function(i){return this.localeData().weekdaysShort(this,i)}),H("dddd",0,0,function(i){return this.localeData().weekdays(this,i)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),Ee("day","d"),Ee("weekday","e"),Ee("isoWeekday","E"),Ve("day",11),Ve("weekday",11),Ve("isoWeekday",11),Y("d",Ae),Y("e",Ae),Y("E",Ae),Y("dd",function(i,o){return o.weekdaysMinRegex(i)}),Y("ddd",function(i,o){return o.weekdaysShortRegex(i)}),Y("dddd",function(i,o){return o.weekdaysRegex(i)}),Vn(["dd","ddd","dddd"],function(i,o,c,h){var m=c._locale.weekdaysParse(i,h,c._strict);m!=null?o.d=m:N(c).invalidWeekday=i}),Vn(["d","e","E"],function(i,o,c,h){o[h]=re(i)});function ks(i,o){return typeof i!="string"?i:isNaN(i)?(i=o.weekdaysParse(i),typeof i=="number"?i:null):parseInt(i,10)}function Cs(i,o){return typeof i=="string"?o.weekdaysParse(i)%7||7:isNaN(i)?null:i}function Di(i,o){return i.slice(o,7).concat(i.slice(0,o))}var gu="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ts="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ps=qr,xu=qr,vu=qr;function wu(i,o){var c=u(this._weekdays)?this._weekdays:this._weekdays[i&&i!==!0&&this._weekdays.isFormat.test(o)?"format":"standalone"];return i===!0?Di(c,this._week.dow):i?c[i.day()]:c}function _u(i){return i===!0?Di(this._weekdaysShort,this._week.dow):i?this._weekdaysShort[i.day()]:this._weekdaysShort}function Ca(i){return i===!0?Di(this._weekdaysMin,this._week.dow):i?this._weekdaysMin[i.day()]:this._weekdaysMin}function Su(i,o,c){var h,m,_,E=i.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],h=0;h<7;++h)_=Z([2e3,1]).day(h),this._minWeekdaysParse[h]=this.weekdaysMin(_,"").toLocaleLowerCase(),this._shortWeekdaysParse[h]=this.weekdaysShort(_,"").toLocaleLowerCase(),this._weekdaysParse[h]=this.weekdays(_,"").toLocaleLowerCase();return c?o==="dddd"?(m=Le.call(this._weekdaysParse,E),m!==-1?m:null):o==="ddd"?(m=Le.call(this._shortWeekdaysParse,E),m!==-1?m:null):(m=Le.call(this._minWeekdaysParse,E),m!==-1?m:null):o==="dddd"?(m=Le.call(this._weekdaysParse,E),m!==-1||(m=Le.call(this._shortWeekdaysParse,E),m!==-1)?m:(m=Le.call(this._minWeekdaysParse,E),m!==-1?m:null)):o==="ddd"?(m=Le.call(this._shortWeekdaysParse,E),m!==-1||(m=Le.call(this._weekdaysParse,E),m!==-1)?m:(m=Le.call(this._minWeekdaysParse,E),m!==-1?m:null)):(m=Le.call(this._minWeekdaysParse,E),m!==-1||(m=Le.call(this._weekdaysParse,E),m!==-1)?m:(m=Le.call(this._shortWeekdaysParse,E),m!==-1?m:null))}function bu(i,o,c){var h,m,_;if(this._weekdaysParseExact)return Su.call(this,i,o,c);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),h=0;h<7;h++){if(m=Z([2e3,1]).day(h),c&&!this._fullWeekdaysParse[h]&&(this._fullWeekdaysParse[h]=new RegExp("^"+this.weekdays(m,"").replace(".","\\\\.?")+"$","i"),this._shortWeekdaysParse[h]=new RegExp("^"+this.weekdaysShort(m,"").replace(".","\\\\.?")+"$","i"),this._minWeekdaysParse[h]=new RegExp("^"+this.weekdaysMin(m,"").replace(".","\\\\.?")+"$","i")),this._weekdaysParse[h]||(_="^"+this.weekdays(m,"")+"|^"+this.weekdaysShort(m,"")+"|^"+this.weekdaysMin(m,""),this._weekdaysParse[h]=new RegExp(_.replace(".",""),"i")),c&&o==="dddd"&&this._fullWeekdaysParse[h].test(i))return h;if(c&&o==="ddd"&&this._shortWeekdaysParse[h].test(i))return h;if(c&&o==="dd"&&this._minWeekdaysParse[h].test(i))return h;if(!c&&this._weekdaysParse[h].test(i))return h}}function ku(i){if(!this.isValid())return i!=null?this:NaN;var o=this._isUTC?this._d.getUTCDay():this._d.getDay();return i!=null?(i=ks(i,this.localeData()),this.add(i-o,"d")):o}function Cu(i){if(!this.isValid())return i!=null?this:NaN;var o=(this.day()+7-this.localeData()._week.dow)%7;return i==null?o:this.add(i-o,"d")}function Tu(i){if(!this.isValid())return i!=null?this:NaN;if(i!=null){var o=Cs(i,this.localeData());return this.day(this.day()%7?o:o-7)}else return this.day()||7}function Oe(i){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Ta.call(this),i?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=Ps),this._weekdaysStrictRegex&&i?this._weekdaysStrictRegex:this._weekdaysRegex)}function De(i){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Ta.call(this),i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xu),this._weekdaysShortStrictRegex&&i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Pu(i){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Ta.call(this),i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=vu),this._weekdaysMinStrictRegex&&i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ta(){function i(dt,rr){return rr.length-dt.length}var o=[],c=[],h=[],m=[],_,E,G,ee,xe;for(_=0;_<7;_++)E=Z([2e3,1]).day(_),G=vt(this.weekdaysMin(E,"")),ee=vt(this.weekdaysShort(E,"")),xe=vt(this.weekdays(E,"")),o.push(G),c.push(ee),h.push(xe),m.push(G),m.push(ee),m.push(xe);o.sort(i),c.sort(i),h.sort(i),m.sort(i),this._weekdaysRegex=new RegExp("^("+m.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Pa(){return this.hours()%12||12}function Eu(){return this.hours()||24}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Pa),H("k",["kk",2],0,Eu),H("hmm",0,0,function(){return""+Pa.apply(this)+xt(this.minutes(),2)}),H("hmmss",0,0,function(){return""+Pa.apply(this)+xt(this.minutes(),2)+xt(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+xt(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+xt(this.minutes(),2)+xt(this.seconds(),2)});function Es(i,o){H(i,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),o)})}Es("a",!0),Es("A",!1),Ee("hour","h"),Ve("hour",13);function Ds(i,o){return o._meridiemParse}Y("a",Ds),Y("A",Ds),Y("H",Ae),Y("h",Ae),Y("k",Ae),Y("HH",Ae,ct),Y("hh",Ae,ct),Y("kk",Ae,ct),Y("hmm",da),Y("hmmss",ma),Y("Hmm",da),Y("Hmmss",ma),ke(["H","HH"],$e),ke(["k","kk"],function(i,o,c){var h=re(i);o[$e]=h===24?0:h}),ke(["a","A"],function(i,o,c){c._isPm=c._locale.isPM(i),c._meridiem=i}),ke(["h","hh"],function(i,o,c){o[$e]=re(i),N(c).bigHour=!0}),ke("hmm",function(i,o,c){var h=i.length-2;o[$e]=re(i.substr(0,h)),o[Bt]=re(i.substr(h)),N(c).bigHour=!0}),ke("hmmss",function(i,o,c){var h=i.length-4,m=i.length-2;o[$e]=re(i.substr(0,h)),o[Bt]=re(i.substr(h,2)),o[gr]=re(i.substr(m)),N(c).bigHour=!0}),ke("Hmm",function(i,o,c){var h=i.length-2;o[$e]=re(i.substr(0,h)),o[Bt]=re(i.substr(h))}),ke("Hmmss",function(i,o,c){var h=i.length-4,m=i.length-2;o[$e]=re(i.substr(0,h)),o[Bt]=re(i.substr(h,2)),o[gr]=re(i.substr(m))});function Is(i){return(i+"").toLowerCase().charAt(0)==="p"}var Du=/[ap]\\.?m?\\.?/i,et=Ir("Hours",!0);function Ea(i,o,c){return i>11?c?"pm":"PM":c?"am":"AM"}var Ar={calendar:ze,longDateFormat:Zo,invalidDate:xi,ordinal:Yt,dayOfMonthOrdinalParse:Yn,relativeTime:dr,months:uu,monthsShort:ms,week:wn,weekdays:gu,weekdaysMin:yu,weekdaysShort:Ts,meridiemParse:Du},Fe={},zr={},ut;function Ms(i,o){var c,h=Math.min(i.length,o.length);for(c=0;c0;){if(m=Un(_.slice(0,c).join("-")),m)return m;if(h&&h.length>=c&&Ms(_,h)>=c-1)break;c--}o++}return ut}function Os(i){return i.match("^[^/\\\\\\\\]*$")!=null}function Un(i){var o=null,c;if(Fe[i]===void 0&&typeof ia<"u"&&ia&&ia.exports&&Os(i))try{o=ut._abbr,c=require,c("./locale/"+i),yr(o)}catch{Fe[i]=null}return Fe[i]}function yr(i,o){var c;return i&&(C(o)?c=Ue(i):c=ht(i,o),c?ut=c:typeof console<"u"&&console.warn&&console.warn("Locale "+i+" not found. Did you forget to load it?")),ut._abbr}function ht(i,o){if(o!==null){var c,h=Ar;if(o.abbr=i,Fe[i]!=null)jt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),h=Fe[i]._config;else if(o.parentLocale!=null)if(Fe[o.parentLocale]!=null)h=Fe[o.parentLocale]._config;else if(c=Un(o.parentLocale),c!=null)h=c._config;else return zr[o.parentLocale]||(zr[o.parentLocale]=[]),zr[o.parentLocale].push({name:i,config:o}),null;return Fe[i]=new Rt(mt(h,o)),zr[i]&&zr[i].forEach(function(m){ht(m.name,m.config)}),yr(i),Fe[i]}else return delete Fe[i],null}function Iu(i,o){if(o!=null){var c,h,m=Ar;Fe[i]!=null&&Fe[i].parentLocale!=null?Fe[i].set(mt(Fe[i]._config,o)):(h=Un(i),h!=null&&(m=h._config),o=mt(m,o),h==null&&(o.abbr=i),c=new Rt(o),c.parentLocale=Fe[i],Fe[i]=c),yr(i)}else Fe[i]!=null&&(Fe[i].parentLocale!=null?(Fe[i]=Fe[i].parentLocale,i===yr()&&yr(i)):Fe[i]!=null&&delete Fe[i]);return Fe[i]}function Ue(i){var o;if(i&&i._locale&&i._locale._abbr&&(i=i._locale._abbr),!i)return ut;if(!u(i)){if(o=Un(i),o)return o;i=[i]}return As(i)}function Mu(){return Me(Fe)}function Ii(i){var o,c=i._a;return c&&N(i).overflow===-2&&(o=c[Qt]<0||c[Qt]>11?Qt:c[Kt]<1||c[Kt]>Ei(c[ot],c[Qt])?Kt:c[$e]<0||c[$e]>24||c[$e]===24&&(c[Bt]!==0||c[gr]!==0||c[Gr]!==0)?$e:c[Bt]<0||c[Bt]>59?Bt:c[gr]<0||c[gr]>59?gr:c[Gr]<0||c[Gr]>999?Gr:-1,N(i)._overflowDayOfYear&&(oKt)&&(o=Kt),N(i)._overflowWeeks&&o===-1&&(o=su),N(i)._overflowWeekday&&o===-1&&(o=Pi),N(i).overflow=o),i}var Or=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,Mi=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,Ia=/Z|[+-]\\d\\d(?::?\\d\\d)?/,Pe=[["YYYYYY-MM-DD",/[+-]\\d{6}-\\d\\d-\\d\\d/],["YYYY-MM-DD",/\\d{4}-\\d\\d-\\d\\d/],["GGGG-[W]WW-E",/\\d{4}-W\\d\\d-\\d/],["GGGG-[W]WW",/\\d{4}-W\\d\\d/,!1],["YYYY-DDD",/\\d{4}-\\d{3}/],["YYYY-MM",/\\d{4}-\\d\\d/,!1],["YYYYYYMMDD",/[+-]\\d{10}/],["YYYYMMDD",/\\d{8}/],["GGGG[W]WWE",/\\d{4}W\\d{3}/],["GGGG[W]WW",/\\d{4}W\\d{2}/,!1],["YYYYDDD",/\\d{7}/],["YYYYMM",/\\d{6}/,!1],["YYYY",/\\d{4}/,!1]],Zt=[["HH:mm:ss.SSSS",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],["HH:mm:ss,SSSS",/\\d\\d:\\d\\d:\\d\\d,\\d+/],["HH:mm:ss",/\\d\\d:\\d\\d:\\d\\d/],["HH:mm",/\\d\\d:\\d\\d/],["HHmmss.SSSS",/\\d\\d\\d\\d\\d\\d\\.\\d+/],["HHmmss,SSSS",/\\d\\d\\d\\d\\d\\d,\\d+/],["HHmmss",/\\d\\d\\d\\d\\d\\d/],["HHmm",/\\d\\d\\d\\d/],["HH",/\\d\\d/]],Ma=/^\\/?Date\\((-?\\d+)/i,Au=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/,Aa={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Fs(i){var o,c,h=i._i,m=Or.exec(h)||Mi.exec(h),_,E,G,ee,xe=Pe.length,dt=Zt.length;if(m){for(N(i).iso=!0,o=0,c=xe;oMr(E)||i._dayOfYear===0)&&(N(i)._overflowDayOfYear=!0),c=yn(E,0,i._dayOfYear),i._a[Qt]=c.getUTCMonth(),i._a[Kt]=c.getUTCDate()),o=0;o<3&&i._a[o]==null;++o)i._a[o]=h[o]=m[o];for(;o<7;o++)i._a[o]=h[o]=i._a[o]==null?o===2?1:0:i._a[o];i._a[$e]===24&&i._a[Bt]===0&&i._a[gr]===0&&i._a[Gr]===0&&(i._nextDay=!0,i._a[$e]=0),i._d=(i._useUTC?yn:vs).apply(null,h),_=i._useUTC?i._d.getUTCDay():i._d.getDay(),i._tzm!=null&&i._d.setUTCMinutes(i._d.getUTCMinutes()-i._tzm),i._nextDay&&(i._a[$e]=24),i._w&&typeof i._w.d<"u"&&i._w.d!==_&&(N(i).weekdayMismatch=!0)}}function Ws(i){var o,c,h,m,_,E,G,ee,xe;o=i._w,o.GG!=null||o.W!=null||o.E!=null?(_=1,E=4,c=$r(o.GG,i._a[ot],vn(Ie(),1,4).year),h=$r(o.W,1),m=$r(o.E,1),(m<1||m>7)&&(ee=!0)):(_=i._locale._week.dow,E=i._locale._week.doy,xe=vn(Ie(),_,E),c=$r(o.gg,i._a[ot],xe.year),h=$r(o.w,xe.week),o.d!=null?(m=o.d,(m<0||m>6)&&(ee=!0)):o.e!=null?(m=o.e+_,(o.e<0||o.e>6)&&(ee=!0)):m=_),h<1||h>Vt(c,_,E)?N(i)._overflowWeeks=!0:ee!=null?N(i)._overflowWeekday=!0:(G=ws(c,h,m,_,E),i._a[ot]=G.year,i._dayOfYear=G.dayOfYear)}r.ISO_8601=function(){},r.RFC_2822=function(){};function Fa(i){if(i._f===r.ISO_8601){Fs(i);return}if(i._f===r.RFC_2822){Ls(i);return}i._a=[],N(i).empty=!0;var o=""+i._i,c,h,m,_,E,G=o.length,ee=0,xe,dt;for(m=pn(i._f,i._locale).match(Pt)||[],dt=m.length,c=0;c0&&N(i).unusedInput.push(E),o=o.slice(o.indexOf(h)+h.length),ee+=h.length),hn[_]?(h?N(i).empty=!1:N(i).unusedTokens.push(_),au(_,h,i)):i._strict&&!h&&N(i).unusedTokens.push(_);N(i).charsLeftOver=G-ee,o.length>0&&N(i).unusedInput.push(o),i._a[$e]<=12&&N(i).bigHour===!0&&i._a[$e]>0&&(N(i).bigHour=void 0),N(i).parsedDateParts=i._a.slice(0),N(i).meridiem=i._meridiem,i._a[$e]=Na(i._locale,i._a[$e],i._meridiem),xe=N(i).era,xe!==null&&(i._a[ot]=i._locale.erasConvertYear(xe,i._a[ot])),Hn(i),Ii(i)}function Na(i,o,c){var h;return c==null?o:i.meridiemHour!=null?i.meridiemHour(o,c):(i.isPM!=null&&(h=i.isPM(c),h&&o<12&&(o+=12),!h&&o===12&&(o=0)),o)}function La(i){var o,c,h,m,_,E,G=!1,ee=i._f.length;if(ee===0){N(i).invalidFormat=!0,i._d=new Date(NaN);return}for(m=0;mthis?this:i:K()});function Vs(i,o){var c,h;if(o.length===1&&u(o[0])&&(o=o[0]),!o.length)return Ie();for(c=o[0],h=1;hthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function D(){if(!C(this._isDSTShifted))return this._isDSTShifted;var i={},o;return it(i,this),i=gt(i),i._a?(o=i._isUTC?Z(i._a):Ie(i._a),this._isDSTShifted=this.isValid()&&Uu(i._a,o.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function P(){return this.isValid()?!this._isUTC:!1}function B(){return this.isValid()?this._isUTC:!1}function X(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ye=/^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,je=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function oe(i,o){var c=i,h=null,m,_,E;return Ut(i)?c={ms:i._milliseconds,d:i._days,M:i._months}:T(i)||!isNaN(+i)?(c={},o?c[o]=+i:c.milliseconds=+i):(h=ye.exec(i))?(m=h[1]==="-"?-1:1,c={y:0,d:re(h[Kt])*m,h:re(h[$e])*m,m:re(h[Bt])*m,s:re(h[gr])*m,ms:re(bn(h[Gr]*1e3))*m}):(h=je.exec(i))?(m=h[1]==="-"?-1:1,c={y:xr(h[2],m),M:xr(h[3],m),w:xr(h[4],m),d:xr(h[5],m),h:xr(h[6],m),m:xr(h[7],m),s:xr(h[8],m)}):c==null?c={}:typeof c=="object"&&("from"in c||"to"in c)&&(E=Et(Ie(c.from),Ie(c.to)),c={},c.ms=E.milliseconds,c.M=E.months),_=new qn(c),Ut(i)&&p(i,"_locale")&&(_._locale=i._locale),Ut(i)&&p(i,"_isValid")&&(_._isValid=i._isValid),_}oe.fn=qn.prototype,oe.invalid=Wa;function xr(i,o){var c=i&&parseFloat(i.replace(",","."));return(isNaN(c)?0:c)*o}function Hs(i,o){var c={};return c.months=o.month()-i.month()+(o.year()-i.year())*12,i.clone().add(c.months,"M").isAfter(o)&&--c.months,c.milliseconds=+o-+i.clone().add(c.months,"M"),c}function Et(i,o){var c;return i.isValid()&&o.isValid()?(o=wt(o,i),i.isBefore(o)?c=Hs(i,o):(c=Hs(o,i),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}}function Gn(i,o){return function(c,h){var m,_;return h!==null&&!isNaN(+h)&&(jt(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),_=c,c=h,h=_),m=oe(c,h),qs(this,m,i),this}}function qs(i,o,c,h){var m=o._milliseconds,_=bn(o._days),E=bn(o._months);!i.isValid()||(h=h??!0,E&&va(i,mn(i,"Month")+E*c),_&&vi(i,"Date",mn(i,"Date")+_*c),m&&i._d.setTime(i._d.valueOf()+m*c),h&&r.updateOffset(i,_||E))}var kn=Gn(1,"add"),Fi=Gn(-1,"subtract");function zn(i){return typeof i=="string"||i instanceof String}function Se(i){return Te(i)||A(i)||zn(i)||T(i)||Gs(i)||Qu(i)||i===null||i===void 0}function Qu(i){var o=l(i)&&!v(i),c=!1,h=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],m,_,E=h.length;for(m=0;mc.valueOf():c.valueOf()9999?Er(c,o?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):me(Date.prototype.toISOString)?o?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Er(c,"Z")):Er(c,o?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Qr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var i="moment",o="",c,h,m,_;return this.isLocal()||(i=this.utcOffset()===0?"moment.utc":"moment.parseZone",o="Z"),c="["+i+'("]',h=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",m="-MM-DD[T]HH:mm:ss.SSS",_=o+'[")]',this.format(c+h+m+_)}function Yi(i){i||(i=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var o=Er(this,i);return this.localeData().postformat(o)}function Ju(i,o){return this.isValid()&&(Te(i)&&i.isValid()||Ie(i).isValid())?oe({to:this,from:i}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function el(i){return this.from(Ie(),i)}function tl(i,o){return this.isValid()&&(Te(i)&&i.isValid()||Ie(i).isValid())?oe({from:this,to:i}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function Bi(i){return this.to(Ie(),i)}function jn(i){var o;return i===void 0?this._locale._abbr:(o=Ue(i),o!=null&&(this._locale=o),this)}var Vi=Ge("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(i){return i===void 0?this.localeData():this.locale(i)});function Ks(){return this._locale}var Qn=1e3,Cn=60*Qn,Ui=60*Cn,He=(365*400+97)*24*Ui;function Ye(i,o){return(i%o+o)%o}function Zs(i,o,c){return i<100&&i>=0?new Date(i+400,o,c)-He:new Date(i,o,c).valueOf()}function Xs(i,o,c){return i<100&&i>=0?Date.UTC(i+400,o,c)-He:Date.UTC(i,o,c)}function Js(i){var o,c;if(i=st(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(c=this._isUTC?Xs:Zs,i){case"year":o=c(this.year(),0,1);break;case"quarter":o=c(this.year(),this.month()-this.month()%3,1);break;case"month":o=c(this.year(),this.month(),1);break;case"week":o=c(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":o=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":o=c(this.year(),this.month(),this.date());break;case"hour":o=this._d.valueOf(),o-=Ye(o+(this._isUTC?0:this.utcOffset()*Cn),Ui);break;case"minute":o=this._d.valueOf(),o-=Ye(o,Cn);break;case"second":o=this._d.valueOf(),o-=Ye(o,Qn);break}return this._d.setTime(o),r.updateOffset(this,!0),this}function rl(i){var o,c;if(i=st(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(c=this._isUTC?Xs:Zs,i){case"year":o=c(this.year()+1,0,1)-1;break;case"quarter":o=c(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":o=c(this.year(),this.month()+1,1)-1;break;case"week":o=c(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":o=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":o=c(this.year(),this.month(),this.date()+1)-1;break;case"hour":o=this._d.valueOf(),o+=Ui-Ye(o+(this._isUTC?0:this.utcOffset()*Cn),Ui)-1;break;case"minute":o=this._d.valueOf(),o+=Cn-Ye(o,Cn)-1;break;case"second":o=this._d.valueOf(),o+=Qn-Ye(o,Qn)-1;break}return this._d.setTime(o),r.updateOffset(this,!0),this}function Ya(){return this._d.valueOf()-(this._offset||0)*6e4}function Kn(){return Math.floor(this.valueOf()/1e3)}function Ba(){return new Date(this.valueOf())}function Tn(){var i=this;return[i.year(),i.month(),i.date(),i.hour(),i.minute(),i.second(),i.millisecond()]}function Zn(){var i=this;return{years:i.year(),months:i.month(),date:i.date(),hours:i.hours(),minutes:i.minutes(),seconds:i.seconds(),milliseconds:i.milliseconds()}}function Xn(){return this.isValid()?this.toISOString():null}function Hi(){return Ne(this)}function Pn(){return V({},N(this))}function nl(){return N(this).overflow}function il(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Y("N",ae),Y("NN",ae),Y("NNN",ae),Y("NNNN",ul),Y("NNNNN",ll),ke(["N","NN","NNN","NNNN","NNNNN"],function(i,o,c,h){var m=c._locale.erasParse(i,h,c._strict);m?N(c).era=m:N(c).invalidEra=i}),Y("y",gn),Y("yy",gn),Y("yyy",gn),Y("yyyy",gn),Y("yo",fl),ke(["y","yy","yyy","yyyy"],ot),ke(["yo"],function(i,o,c,h){var m;c._locale._eraYearOrdinalRegex&&(m=i.match(c._locale._eraYearOrdinalRegex)),c._locale.eraYearOrdinalParse?o[ot]=c._locale.eraYearOrdinalParse(i,m):o[ot]=parseInt(i,10)});function al(i,o){var c,h,m,_=this._eras||Ue("en")._eras;for(c=0,h=_.length;c=0)return _[h]}function ol(i,o){var c=i.since<=i.until?1:-1;return o===void 0?r(i.since).year():r(i.since).year()+(o-i.offset)*c}function qi(){var i,o,c,h=this.localeData().eras();for(i=0,o=h.length;i_&&(o=_),gl.call(this,i,o,c,h,m))}function gl(i,o,c,h,m){var _=ws(i,o,c,h,m),E=yn(_.year,0,_.dayOfYear);return this.year(E.getUTCFullYear()),this.month(E.getUTCMonth()),this.date(E.getUTCDate()),this}H("Q",0,"Qo","quarter"),Ee("quarter","Q"),Ve("quarter",7),Y("Q",wi),ke("Q",function(i,o){o[Qt]=(re(i)-1)*3});function yl(i){return i==null?Math.ceil((this.month()+1)/3):this.month((i-1)*3+this.month()%3)}H("D",["DD",2],"Do","date"),Ee("date","D"),Ve("date",9),Y("D",Ae),Y("DD",Ae,ct),Y("Do",function(i,o){return i?o._dayOfMonthOrdinalParse||o._ordinalParse:o._dayOfMonthOrdinalParseLenient}),ke(["D","DD"],Kt),ke("Do",function(i,o){o[Kt]=re(i.match(Ae)[0])});var ro=Ir("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),Ee("dayOfYear","DDD"),Ve("dayOfYear",4),Y("DDD",bi),Y("DDDD",_i),ke(["DDD","DDDD"],function(i,o,c){c._dayOfYear=re(i)});function _r(i){var o=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return i==null?o:this.add(i-o,"d")}H("m",["mm",2],0,"minute"),Ee("minute","m"),Ve("minute",14),Y("m",Ae),Y("mm",Ae,ct),ke(["m","mm"],Bt);var xl=Ir("Minutes",!1);H("s",["ss",2],0,"second"),Ee("second","s"),Ve("second",15),Y("s",Ae),Y("ss",Ae,ct),ke(["s","ss"],gr);var vl=Ir("Seconds",!1);H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return this.millisecond()*10}),H(0,["SSSSS",5],0,function(){return this.millisecond()*100}),H(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),H(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),H(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),H(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ee("millisecond","ms"),Ve("millisecond",16),Y("S",bi,wi),Y("SS",bi,ct),Y("SSS",bi,_i);var Rr,no;for(Rr="SSSS";Rr.length<=9;Rr+="S")Y(Rr,gn);function wl(i,o){o[Gr]=re(("0."+i)*1e3)}for(Rr="S";Rr.length<=9;Rr+="S")ke(Rr,wl);no=Ir("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");function Kr(){return this._isUTC?"UTC":""}function _l(){return this._isUTC?"Coordinated Universal Time":""}var F=tt.prototype;F.add=kn,F.calendar=Zu,F.clone=Xu,F.diff=js,F.endOf=rl,F.format=Yi,F.from=Ju,F.fromNow=el,F.to=tl,F.toNow=Bi,F.get=ca,F.invalidAt=nl,F.isAfter=Li,F.isBefore=Lr,F.isBetween=Ri,F.isSame=zs,F.isSameOrAfter=Wi,F.isSameOrBefore=$s,F.isValid=Hi,F.lang=Vi,F.locale=jn,F.localeData=Ks,F.max=Lu,F.min=Bs,F.parsingFlags=Pn,F.set=ha,F.startOf=Js,F.subtract=Fi,F.toArray=Tn,F.toObject=Zn,F.toDate=Ba,F.toISOString=$n,F.inspect=Qr,typeof Symbol<"u"&&Symbol.for!=null&&(F[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),F.toJSON=Xn,F.toString=Qs,F.unix=Kn,F.valueOf=Ya,F.creationData=il,F.eraName=qi,F.eraNarrow=Jn,F.eraAbbr=eo,F.eraYear=g,F.year=ba,F.isLeapYear=du,F.weekYear=cl,F.isoWeekYear=hl,F.quarter=F.quarters=yl,F.month=wa,F.daysInMonth=xs,F.week=F.weeks=mu,F.isoWeek=F.isoWeeks=bs,F.weeksInYear=wr,F.weeksInWeekYear=ml,F.isoWeeksInYear=pl,F.isoWeeksInISOWeekYear=dl,F.date=ro,F.day=F.days=ku,F.weekday=Cu,F.isoWeekday=Tu,F.dayOfYear=_r,F.hour=F.hours=et,F.minute=F.minutes=xl,F.second=F.seconds=vl,F.millisecond=F.milliseconds=no,F.utcOffset=qu,F.utc=zu,F.local=$u,F.parseZone=ju,F.hasAlignedHourOffset=Nr,F.isDST=b,F.isLocal=P,F.isUtcOffset=B,F.isUtc=X,F.isUTC=X,F.zoneAbbr=Kr,F.zoneName=_l,F.dates=Ge("dates accessor is deprecated. Use date instead.",ro),F.months=Ge("months accessor is deprecated. Use month instead",wa),F.years=Ge("years accessor is deprecated. Use year instead",ba),F.zone=Ge("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Gu),F.isDSTShifted=Ge("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",D);function Ht(i){return Ie(i*1e3)}function Sl(){return Ie.apply(null,arguments).parseZone()}function io(i){return i}var ge=Rt.prototype;ge.calendar=Wt,ge.longDateFormat=yi,ge.invalidDate=hs,ge.ordinal=Xo,ge.preparse=io,ge.postformat=io,ge.relativeTime=ps,ge.pastFuture=Jo,ge.set=at,ge.eras=al,ge.erasParse=sl,ge.erasConvertYear=ol,ge.erasAbbrRegex=Gi,ge.erasNameRegex=En,ge.erasNarrowRegex=Dt,ge.months=lu,ge.monthsShort=fu,ge.monthsParse=hu,ge.monthsRegex=pu,ge.monthsShortRegex=_a,ge.week=ka,ge.firstDayOfYear=Ss,ge.firstDayOfWeek=_s,ge.weekdays=wu,ge.weekdaysMin=Ca,ge.weekdaysShort=_u,ge.weekdaysParse=bu,ge.weekdaysRegex=Oe,ge.weekdaysShortRegex=De,ge.weekdaysMinRegex=Pu,ge.isPM=Is,ge.meridiem=Ea;function $i(i,o,c,h){var m=Ue(),_=Z().set(h,o);return m[c](_,i)}function ao(i,o,c){if(T(i)&&(o=i,i=void 0),i=i||"",o!=null)return $i(i,o,c,"month");var h,m=[];for(h=0;h<12;h++)m[h]=$i(i,h,c,"month");return m}function ji(i,o,c,h){typeof i=="boolean"?(T(o)&&(c=o,o=void 0),o=o||""):(o=i,c=o,i=!1,T(o)&&(c=o,o=void 0),o=o||"");var m=Ue(),_=i?m._week.dow:0,E,G=[];if(c!=null)return $i(o,(c+_)%7,h,"day");for(E=0;E<7;E++)G[E]=$i(o,(E+_)%7,h,"day");return G}function so(i,o){return ao(i,o,"months")}function bl(i,o){return ao(i,o,"monthsShort")}function kl(i,o,c){return ji(i,o,c,"weekdays")}function Va(i,o,c){return ji(i,o,c,"weekdaysShort")}function ei(i,o,c){return ji(i,o,c,"weekdaysMin")}yr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(i){var o=i%10,c=re(i%100/10)===1?"th":o===1?"st":o===2?"nd":o===3?"rd":"th";return i+c}}),r.lang=Ge("moment.lang is deprecated. Use moment.locale instead.",yr),r.langData=Ge("moment.langData is deprecated. Use moment.localeData instead.",Ue);var It=Math.abs;function Cl(){var i=this._data;return this._milliseconds=It(this._milliseconds),this._days=It(this._days),this._months=It(this._months),i.milliseconds=It(i.milliseconds),i.seconds=It(i.seconds),i.minutes=It(i.minutes),i.hours=It(i.hours),i.months=It(i.months),i.years=It(i.years),this}function Ua(i,o,c,h){var m=oe(o,c);return i._milliseconds+=h*m._milliseconds,i._days+=h*m._days,i._months+=h*m._months,i._bubble()}function Tl(i,o){return Ua(this,i,o,1)}function Sr(i,o){return Ua(this,i,o,-1)}function Qi(i){return i<0?Math.floor(i):Math.ceil(i)}function Zr(){var i=this._milliseconds,o=this._days,c=this._months,h=this._data,m,_,E,G,ee;return i>=0&&o>=0&&c>=0||i<=0&&o<=0&&c<=0||(i+=Qi(Ha(c)+o)*864e5,o=0,c=0),h.milliseconds=i%1e3,m=rt(i/1e3),h.seconds=m%60,_=rt(m/60),h.minutes=_%60,E=rt(_/60),h.hours=E%24,o+=rt(E/24),ee=rt(_t(o)),c+=ee,o-=Qi(Ha(ee)),G=rt(c/12),c%=12,h.days=o,h.months=c,h.years=G,this}function _t(i){return i*4800/146097}function Ha(i){return i*146097/4800}function oo(i){if(!this.isValid())return NaN;var o,c,h=this._milliseconds;if(i=st(i),i==="month"||i==="quarter"||i==="year")switch(o=this._days+h/864e5,c=this._months+_t(o),i){case"month":return c;case"quarter":return c/3;case"year":return c/12}else switch(o=this._days+Math.round(Ha(this._months)),i){case"week":return o/7+h/6048e5;case"day":return o+h/864e5;case"hour":return o*24+h/36e5;case"minute":return o*1440+h/6e4;case"second":return o*86400+h/1e3;case"millisecond":return Math.floor(o*864e5)+h;default:throw new Error("Unknown unit "+i)}}function uo(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+re(this._months/12)*31536e6:NaN}function St(i){return function(){return this.as(i)}}var Wr=St("ms"),lo=St("s"),Pl=St("m"),Ki=St("h"),El=St("d"),fo=St("w"),nt=St("M"),qa=St("Q"),co=St("y");function Jt(){return oe(this)}function Ga(i){return i=st(i),this.isValid()?this[i+"s"]():NaN}function er(i){return function(){return this.isValid()?this._data[i]:NaN}}var Xr=er("milliseconds"),ho=er("seconds"),pt=er("minutes"),za=er("hours"),Dl=er("days"),Il=er("months"),Ml=er("years");function $a(){return rt(this.days()/7)}var br=Math.round,tr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function po(i,o,c,h,m){return m.relativeTime(o||1,!!c,i,h)}function Al(i,o,c,h){var m=oe(i).abs(),_=br(m.as("s")),E=br(m.as("m")),G=br(m.as("h")),ee=br(m.as("d")),xe=br(m.as("M")),dt=br(m.as("w")),rr=br(m.as("y")),kr=_<=c.ss&&["s",_]||_0,kr[4]=h,po.apply(null,kr)}function Ol(i){return i===void 0?br:typeof i=="function"?(br=i,!0):!1}function ti(i,o){return tr[i]===void 0?!1:o===void 0?tr[i]:(tr[i]=o,i==="s"&&(tr.ss=o-1),!0)}function Fl(i,o){if(!this.isValid())return this.localeData().invalidDate();var c=!1,h=tr,m,_;return typeof i=="object"&&(o=i,i=!1),typeof i=="boolean"&&(c=i),typeof o=="object"&&(h=Object.assign({},tr,o),o.s!=null&&o.ss==null&&(h.ss=o.s-1)),m=this.localeData(),_=Al(this,!c,h,m),c&&(_=m.pastFuture(+this,_)),m.postformat(_)}var ja=Math.abs;function Yr(i){return(i>0)-(i<0)||+i}function ri(){if(!this.isValid())return this.localeData().invalidDate();var i=ja(this._milliseconds)/1e3,o=ja(this._days),c=ja(this._months),h,m,_,E,G=this.asSeconds(),ee,xe,dt,rr;return G?(h=rt(i/60),m=rt(h/60),i%=60,h%=60,_=rt(c/12),c%=12,E=i?i.toFixed(3).replace(/\\.?0+$/,""):"",ee=G<0?"-":"",xe=Yr(this._months)!==Yr(G)?"-":"",dt=Yr(this._days)!==Yr(G)?"-":"",rr=Yr(this._milliseconds)!==Yr(G)?"-":"",ee+"P"+(_?xe+_+"Y":"")+(c?xe+c+"M":"")+(o?dt+o+"D":"")+(m||h||i?"T":"")+(m?rr+m+"H":"")+(h?rr+h+"M":"")+(i?rr+E+"S":"")):"P0D"}var fe=qn.prototype;fe.isValid=Vu,fe.abs=Cl,fe.add=Tl,fe.subtract=Sr,fe.as=oo,fe.asMilliseconds=Wr,fe.asSeconds=lo,fe.asMinutes=Pl,fe.asHours=Ki,fe.asDays=El,fe.asWeeks=fo,fe.asMonths=nt,fe.asQuarters=qa,fe.asYears=co,fe.valueOf=uo,fe._bubble=Zr,fe.clone=Jt,fe.get=Ga,fe.milliseconds=Xr,fe.seconds=ho,fe.minutes=pt,fe.hours=za,fe.days=Dl,fe.weeks=$a,fe.months=Il,fe.years=Ml,fe.humanize=Fl,fe.toISOString=ri,fe.toString=ri,fe.toJSON=ri,fe.locale=jn,fe.localeData=Ks,fe.toIsoString=Ge("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ri),fe.lang=Vi,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Y("x",Bn),Y("X",ru),ke("X",function(i,o,c){c._d=new Date(parseFloat(i)*1e3)}),ke("x",function(i,o,c){c._d=new Date(re(i))});return r.version="2.29.4",a(Ie),r.fn=F,r.min=Ru,r.max=Wu,r.now=Yu,r.utc=Z,r.unix=Ht,r.months=so,r.isDate=A,r.locale=yr,r.invalid=K,r.duration=oe,r.isMoment=Te,r.weekdays=kl,r.parseZone=Sl,r.localeData=Ue,r.isDuration=Ut,r.monthsShort=bl,r.weekdaysMin=ei,r.defineLocale=ht,r.updateLocale=Iu,r.locales=Mu,r.weekdaysShort=Va,r.normalizeUnits=st,r.relativeTimeRounding=Ol,r.relativeTimeThreshold=ti,r.calendarFormat=Ku,r.prototype=F,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r})});var Yo=yf(xf());var sn=e=>[...new Set(e)];var Th=(e,r)=>e.sort(function(a,u){let l=r.indexOf(a),p=r.indexOf(u);return l>p?l!=-1&&p==-1?-1:1:p!=-1&&l==-1?1:-1});var on="File";var Oo=e=>e.lastIndexOf("/")!=-1?e.lastIndexOf(".")!=-1?Ph(e.substring(e.lastIndexOf("/")+1,e.lastIndexOf("."))):e.substring(e.lastIndexOf("/")+1):e.lastIndexOf(".")!=-1?e.substring(0,e.lastIndexOf(".")):e;function vf(e){return Array.isArray(e)?e:typeof e=="string"?[e]:[]}var Eh=(e,r)=>r.indexOf(e)>0?r.indexOf(e):r.length;var Fo=e=>"spaces://"+e;var Ph=e=>e.charAt(0)=="/"?e.substring(1):e;function si(e){return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},si(e)}function Nt(e){if(e===null||e===!0||e===!1)return NaN;var r=Number(e);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}function be(e,r){if(r.length1?"s":"")+" required, but only "+r.length+" present")}function Ze(e){be(1,arguments);var r=Object.prototype.toString.call(e);return e instanceof Date||si(e)==="object"&&r==="[object Date]"?new Date(e.getTime()):typeof e=="number"||r==="[object Number]"?new Date(e):((typeof e=="string"||r==="[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))}function wf(e,r){be(2,arguments);var a=Ze(e).getTime(),u=Nt(r);return new Date(a+u)}var ux={};function On(){return ux}function _f(e){var r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),e.getTime()-r.getTime()}function Sf(e){return be(1,arguments),e instanceof Date||si(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function bf(e){if(be(1,arguments),!Sf(e)&&typeof e!="number")return!1;var r=Ze(e);return!isNaN(Number(r))}function kf(e,r){be(2,arguments);var a=Nt(r);return wf(e,-a)}var lx=864e5;function Cf(e){be(1,arguments);var r=Ze(e),a=r.getTime();r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0);var u=r.getTime(),l=a-u;return Math.floor(l/lx)+1}function Fn(e){be(1,arguments);var r=1,a=Ze(e),u=a.getUTCDay(),l=(u=l.getTime()?a+1:r.getTime()>=v.getTime()?a:a-1}function Tf(e){be(1,arguments);var r=ts(e),a=new Date(0);a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0);var u=Fn(a);return u}var fx=6048e5;function Pf(e){be(1,arguments);var r=Ze(e),a=Fn(r).getTime()-Tf(r).getTime();return Math.round(a/fx)+1}function Nn(e,r){var a,u,l,p,v,C,T,A;be(1,arguments);var R=On(),V=Nt((a=(u=(l=(p=r?.weekStartsOn)!==null&&p!==void 0?p:r==null||(v=r.locale)===null||v===void 0||(C=v.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&l!==void 0?l:R.weekStartsOn)!==null&&u!==void 0?u:(T=R.locale)===null||T===void 0||(A=T.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&a!==void 0?a:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var Z=Ze(e),ne=Z.getUTCDay(),N=(ne=1&&ne<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=new Date(0);N.setUTCFullYear(V+1,0,ne),N.setUTCHours(0,0,0,0);var we=Nn(N,r),Ne=new Date(0);Ne.setUTCFullYear(V,0,ne),Ne.setUTCHours(0,0,0,0);var K=Nn(Ne,r);return R.getTime()>=we.getTime()?V+1:R.getTime()>=K.getTime()?V:V-1}function Ef(e,r){var a,u,l,p,v,C,T,A;be(1,arguments);var R=On(),V=Nt((a=(u=(l=(p=r?.firstWeekContainsDate)!==null&&p!==void 0?p:r==null||(v=r.locale)===null||v===void 0||(C=v.options)===null||C===void 0?void 0:C.firstWeekContainsDate)!==null&&l!==void 0?l:R.firstWeekContainsDate)!==null&&u!==void 0?u:(T=R.locale)===null||T===void 0||(A=T.options)===null||A===void 0?void 0:A.firstWeekContainsDate)!==null&&a!==void 0?a:1),Z=rs(e,r),ne=new Date(0);ne.setUTCFullYear(Z,0,V),ne.setUTCHours(0,0,0,0);var N=Nn(ne,r);return N}var cx=6048e5;function Df(e,r){be(1,arguments);var a=Ze(e),u=Nn(a,r).getTime()-Ef(a,r).getTime();return Math.round(u/cx)+1}function _e(e,r){for(var a=e<0?"-":"",u=Math.abs(e).toString();u.length0?u:1-u;return _e(a==="yy"?l%100:l,a.length)},M:function(r,a){var u=r.getUTCMonth();return a==="M"?String(u+1):_e(u+1,2)},d:function(r,a){return _e(r.getUTCDate(),a.length)},a:function(r,a){var u=r.getUTCHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(r,a){return _e(r.getUTCHours()%12||12,a.length)},H:function(r,a){return _e(r.getUTCHours(),a.length)},m:function(r,a){return _e(r.getUTCMinutes(),a.length)},s:function(r,a){return _e(r.getUTCSeconds(),a.length)},S:function(r,a){var u=a.length,l=r.getUTCMilliseconds(),p=Math.floor(l*Math.pow(10,u-3));return _e(p,a.length)}},un=hx;var na={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},px={G:function(r,a,u){var l=r.getUTCFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return u.era(l,{width:"abbreviated"});case"GGGGG":return u.era(l,{width:"narrow"});case"GGGG":default:return u.era(l,{width:"wide"})}},y:function(r,a,u){if(a==="yo"){var l=r.getUTCFullYear(),p=l>0?l:1-l;return u.ordinalNumber(p,{unit:"year"})}return un.y(r,a)},Y:function(r,a,u,l){var p=rs(r,l),v=p>0?p:1-p;if(a==="YY"){var C=v%100;return _e(C,2)}return a==="Yo"?u.ordinalNumber(v,{unit:"year"}):_e(v,a.length)},R:function(r,a){var u=ts(r);return _e(u,a.length)},u:function(r,a){var u=r.getUTCFullYear();return _e(u,a.length)},Q:function(r,a,u){var l=Math.ceil((r.getUTCMonth()+1)/3);switch(a){case"Q":return String(l);case"QQ":return _e(l,2);case"Qo":return u.ordinalNumber(l,{unit:"quarter"});case"QQQ":return u.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return u.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return u.quarter(l,{width:"wide",context:"formatting"})}},q:function(r,a,u){var l=Math.ceil((r.getUTCMonth()+1)/3);switch(a){case"q":return String(l);case"qq":return _e(l,2);case"qo":return u.ordinalNumber(l,{unit:"quarter"});case"qqq":return u.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return u.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return u.quarter(l,{width:"wide",context:"standalone"})}},M:function(r,a,u){var l=r.getUTCMonth();switch(a){case"M":case"MM":return un.M(r,a);case"Mo":return u.ordinalNumber(l+1,{unit:"month"});case"MMM":return u.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return u.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return u.month(l,{width:"wide",context:"formatting"})}},L:function(r,a,u){var l=r.getUTCMonth();switch(a){case"L":return String(l+1);case"LL":return _e(l+1,2);case"Lo":return u.ordinalNumber(l+1,{unit:"month"});case"LLL":return u.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return u.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return u.month(l,{width:"wide",context:"standalone"})}},w:function(r,a,u,l){var p=Df(r,l);return a==="wo"?u.ordinalNumber(p,{unit:"week"}):_e(p,a.length)},I:function(r,a,u){var l=Pf(r);return a==="Io"?u.ordinalNumber(l,{unit:"week"}):_e(l,a.length)},d:function(r,a,u){return a==="do"?u.ordinalNumber(r.getUTCDate(),{unit:"date"}):un.d(r,a)},D:function(r,a,u){var l=Cf(r);return a==="Do"?u.ordinalNumber(l,{unit:"dayOfYear"}):_e(l,a.length)},E:function(r,a,u){var l=r.getUTCDay();switch(a){case"E":case"EE":case"EEE":return u.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return u.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return u.day(l,{width:"short",context:"formatting"});case"EEEE":default:return u.day(l,{width:"wide",context:"formatting"})}},e:function(r,a,u,l){var p=r.getUTCDay(),v=(p-l.weekStartsOn+8)%7||7;switch(a){case"e":return String(v);case"ee":return _e(v,2);case"eo":return u.ordinalNumber(v,{unit:"day"});case"eee":return u.day(p,{width:"abbreviated",context:"formatting"});case"eeeee":return u.day(p,{width:"narrow",context:"formatting"});case"eeeeee":return u.day(p,{width:"short",context:"formatting"});case"eeee":default:return u.day(p,{width:"wide",context:"formatting"})}},c:function(r,a,u,l){var p=r.getUTCDay(),v=(p-l.weekStartsOn+8)%7||7;switch(a){case"c":return String(v);case"cc":return _e(v,a.length);case"co":return u.ordinalNumber(v,{unit:"day"});case"ccc":return u.day(p,{width:"abbreviated",context:"standalone"});case"ccccc":return u.day(p,{width:"narrow",context:"standalone"});case"cccccc":return u.day(p,{width:"short",context:"standalone"});case"cccc":default:return u.day(p,{width:"wide",context:"standalone"})}},i:function(r,a,u){var l=r.getUTCDay(),p=l===0?7:l;switch(a){case"i":return String(p);case"ii":return _e(p,a.length);case"io":return u.ordinalNumber(p,{unit:"day"});case"iii":return u.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return u.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return u.day(l,{width:"short",context:"formatting"});case"iiii":default:return u.day(l,{width:"wide",context:"formatting"})}},a:function(r,a,u){var l=r.getUTCHours(),p=l/12>=1?"pm":"am";switch(a){case"a":case"aa":return u.dayPeriod(p,{width:"abbreviated",context:"formatting"});case"aaa":return u.dayPeriod(p,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return u.dayPeriod(p,{width:"narrow",context:"formatting"});case"aaaa":default:return u.dayPeriod(p,{width:"wide",context:"formatting"})}},b:function(r,a,u){var l=r.getUTCHours(),p;switch(l===12?p=na.noon:l===0?p=na.midnight:p=l/12>=1?"pm":"am",a){case"b":case"bb":return u.dayPeriod(p,{width:"abbreviated",context:"formatting"});case"bbb":return u.dayPeriod(p,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return u.dayPeriod(p,{width:"narrow",context:"formatting"});case"bbbb":default:return u.dayPeriod(p,{width:"wide",context:"formatting"})}},B:function(r,a,u){var l=r.getUTCHours(),p;switch(l>=17?p=na.evening:l>=12?p=na.afternoon:l>=4?p=na.morning:p=na.night,a){case"B":case"BB":case"BBB":return u.dayPeriod(p,{width:"abbreviated",context:"formatting"});case"BBBBB":return u.dayPeriod(p,{width:"narrow",context:"formatting"});case"BBBB":default:return u.dayPeriod(p,{width:"wide",context:"formatting"})}},h:function(r,a,u){if(a==="ho"){var l=r.getUTCHours()%12;return l===0&&(l=12),u.ordinalNumber(l,{unit:"hour"})}return un.h(r,a)},H:function(r,a,u){return a==="Ho"?u.ordinalNumber(r.getUTCHours(),{unit:"hour"}):un.H(r,a)},K:function(r,a,u){var l=r.getUTCHours()%12;return a==="Ko"?u.ordinalNumber(l,{unit:"hour"}):_e(l,a.length)},k:function(r,a,u){var l=r.getUTCHours();return l===0&&(l=24),a==="ko"?u.ordinalNumber(l,{unit:"hour"}):_e(l,a.length)},m:function(r,a,u){return a==="mo"?u.ordinalNumber(r.getUTCMinutes(),{unit:"minute"}):un.m(r,a)},s:function(r,a,u){return a==="so"?u.ordinalNumber(r.getUTCSeconds(),{unit:"second"}):un.s(r,a)},S:function(r,a){return un.S(r,a)},X:function(r,a,u,l){var p=l._originalDate||r,v=p.getTimezoneOffset();if(v===0)return"Z";switch(a){case"X":return Mh(v);case"XXXX":case"XX":return oi(v);case"XXXXX":case"XXX":default:return oi(v,":")}},x:function(r,a,u,l){var p=l._originalDate||r,v=p.getTimezoneOffset();switch(a){case"x":return Mh(v);case"xxxx":case"xx":return oi(v);case"xxxxx":case"xxx":default:return oi(v,":")}},O:function(r,a,u,l){var p=l._originalDate||r,v=p.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+Ih(v,":");case"OOOO":default:return"GMT"+oi(v,":")}},z:function(r,a,u,l){var p=l._originalDate||r,v=p.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+Ih(v,":");case"zzzz":default:return"GMT"+oi(v,":")}},t:function(r,a,u,l){var p=l._originalDate||r,v=Math.floor(p.getTime()/1e3);return _e(v,a.length)},T:function(r,a,u,l){var p=l._originalDate||r,v=p.getTime();return _e(v,a.length)}};function Ih(e,r){var a=e>0?"-":"+",u=Math.abs(e),l=Math.floor(u/60),p=u%60;if(p===0)return a+String(l);var v=r||"";return a+String(l)+v+_e(p,2)}function Mh(e,r){if(e%60===0){var a=e>0?"-":"+";return a+_e(Math.abs(e)/60,2)}return oi(e,r)}function oi(e,r){var a=r||"",u=e>0?"-":"+",l=Math.abs(e),p=_e(Math.floor(l/60),2),v=_e(l%60,2);return u+p+a+v}var Ah=px;var Oh=function(r,a){switch(r){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},Fh=function(r,a){switch(r){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},dx=function(r,a){var u=r.match(/(P+)(p+)?/)||[],l=u[1],p=u[2];if(!p)return Oh(r,a);var v;switch(l){case"P":v=a.dateTime({width:"short"});break;case"PP":v=a.dateTime({width:"medium"});break;case"PPP":v=a.dateTime({width:"long"});break;case"PPPP":default:v=a.dateTime({width:"full"});break}return v.replace("{{date}}",Oh(l,a)).replace("{{time}}",Fh(p,a))},mx={p:Fh,P:dx},Nh=mx;var gx=["D","DD"],yx=["YY","YYYY"];function Lh(e){return gx.indexOf(e)!==-1}function Rh(e){return yx.indexOf(e)!==-1}function If(e,r,a){if(e==="YYYY")throw new RangeError("Use \`yyyy\` instead of \`YYYY\` (in \`".concat(r,"\`) for formatting years to the input \`").concat(a,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use \`yy\` instead of \`YY\` (in \`".concat(r,"\`) for formatting years to the input \`").concat(a,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use \`d\` instead of \`D\` (in \`".concat(r,"\`) for formatting days of the month to the input \`").concat(a,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use \`dd\` instead of \`DD\` (in \`".concat(r,"\`) for formatting days of the month to the input \`").concat(a,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var xx={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"}},vx=function(r,a,u){var l,p=xx[r];return typeof p=="string"?l=p:a===1?l=p.one:l=p.other.replace("{{count}}",a.toString()),u!=null&&u.addSuffix?u.comparison&&u.comparison>0?"in "+l:l+" ago":l},Wh=vx;function ns(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=r.width?String(r.width):e.defaultWidth,u=e.formats[a]||e.formats[e.defaultWidth];return u}}var wx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_x={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Sx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},bx={date:ns({formats:wx,defaultWidth:"full"}),time:ns({formats:_x,defaultWidth:"full"}),dateTime:ns({formats:Sx,defaultWidth:"full"})},Yh=bx;var kx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Cx=function(r,a,u,l){return kx[r]},Bh=Cx;function ui(e){return function(r,a){var u=a!=null&&a.context?String(a.context):"standalone",l;if(u==="formatting"&&e.formattingValues){var p=e.defaultFormattingWidth||e.defaultWidth,v=a!=null&&a.width?String(a.width):p;l=e.formattingValues[v]||e.formattingValues[p]}else{var C=e.defaultWidth,T=a!=null&&a.width?String(a.width):e.defaultWidth;l=e.values[T]||e.values[C]}var A=e.argumentCallback?e.argumentCallback(r):r;return l[A]}}var Tx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Px={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ex={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"]},Dx={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"]},Ix={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"}},Mx={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"}},Ax=function(r,a){var u=Number(r),l=u%100;if(l>20||l<10)switch(l%10){case 1:return u+"st";case 2:return u+"nd";case 3:return u+"rd"}return u+"th"},Ox={ordinalNumber:Ax,era:ui({values:Tx,defaultWidth:"wide"}),quarter:ui({values:Px,defaultWidth:"wide",argumentCallback:function(r){return r-1}}),month:ui({values:Ex,defaultWidth:"wide"}),day:ui({values:Dx,defaultWidth:"wide"}),dayPeriod:ui({values:Ix,defaultWidth:"wide",formattingValues:Mx,defaultFormattingWidth:"wide"})},Vh=Ox;function li(e){return function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=a.width,l=u&&e.matchPatterns[u]||e.matchPatterns[e.defaultMatchWidth],p=r.match(l);if(!p)return null;var v=p[0],C=u&&e.parsePatterns[u]||e.parsePatterns[e.defaultParseWidth],T=Array.isArray(C)?Nx(C,function(V){return V.test(v)}):Fx(C,function(V){return V.test(v)}),A;A=e.valueCallback?e.valueCallback(T):T,A=a.valueCallback?a.valueCallback(A):A;var R=r.slice(v.length);return{value:A,rest:R}}}function Fx(e,r){for(var a in e)if(e.hasOwnProperty(a)&&r(e[a]))return a}function Nx(e,r){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},u=r.match(e.matchPattern);if(!u)return null;var l=u[0],p=r.match(e.parsePattern);if(!p)return null;var v=e.valueCallback?e.valueCallback(p[0]):p[0];v=a.valueCallback?a.valueCallback(v):v;var C=r.slice(l.length);return{value:v,rest:C}}}var Lx=/^(\\d+)(th|st|nd|rd)?/i,Rx=/\\d+/i,Wx={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},Yx={any:[/^b/i,/^(a|c)/i]},Bx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Vx={any:[/1/i,/2/i,/3/i,/4/i]},Ux={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},Hx={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]},qx={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},Gx={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]},zx={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},$x={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}},jx={ordinalNumber:Mf({matchPattern:Lx,parsePattern:Rx,valueCallback:function(r){return parseInt(r,10)}}),era:li({matchPatterns:Wx,defaultMatchWidth:"wide",parsePatterns:Yx,defaultParseWidth:"any"}),quarter:li({matchPatterns:Bx,defaultMatchWidth:"wide",parsePatterns:Vx,defaultParseWidth:"any",valueCallback:function(r){return r+1}}),month:li({matchPatterns:Ux,defaultMatchWidth:"wide",parsePatterns:Hx,defaultParseWidth:"any"}),day:li({matchPatterns:qx,defaultMatchWidth:"wide",parsePatterns:Gx,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:zx,defaultMatchWidth:"any",parsePatterns:$x,defaultParseWidth:"any"})},Uh=jx;var Qx={code:"en-US",formatDistance:Wh,formatLong:Yh,formatRelative:Bh,localize:Vh,match:Uh,options:{weekStartsOn:0,firstWeekContainsDate:1}},Hh=Qx;var qh=Hh;var Kx=/[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g,Zx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xx=/^'([^]*?)'?$/,Jx=/''/g,ev=/[a-zA-Z]/;function fi(e,r,a){var u,l,p,v,C,T,A,R,V,Z,ne,N,we,Ne,K,Xe,Re,it;be(2,arguments);var tt=String(r),Te=On(),Je=(u=(l=a?.locale)!==null&&l!==void 0?l:Te.locale)!==null&&u!==void 0?u:qh,Ge=Nt((p=(v=(C=(T=a?.firstWeekContainsDate)!==null&&T!==void 0?T:a==null||(A=a.locale)===null||A===void 0||(R=A.options)===null||R===void 0?void 0:R.firstWeekContainsDate)!==null&&C!==void 0?C:Te.firstWeekContainsDate)!==null&&v!==void 0?v:(V=Te.locale)===null||V===void 0||(Z=V.options)===null||Z===void 0?void 0:Z.firstWeekContainsDate)!==null&&p!==void 0?p:1);if(!(Ge>=1&&Ge<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var pr=Nt((ne=(N=(we=(Ne=a?.weekStartsOn)!==null&&Ne!==void 0?Ne:a==null||(K=a.locale)===null||K===void 0||(Xe=K.options)===null||Xe===void 0?void 0:Xe.weekStartsOn)!==null&&we!==void 0?we:Te.weekStartsOn)!==null&&N!==void 0?N:(Re=Te.locale)===null||Re===void 0||(it=Re.options)===null||it===void 0?void 0:it.weekStartsOn)!==null&&ne!==void 0?ne:0);if(!(pr>=0&&pr<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Je.localize)throw new RangeError("locale must contain localize property");if(!Je.formatLong)throw new RangeError("locale must contain formatLong property");var jt=Ze(e);if(!bf(jt))throw new RangeError("Invalid time value");var me=_f(jt),at=kf(jt,me),mt={firstWeekContainsDate:Ge,weekStartsOn:pr,locale:Je,_originalDate:jt},Rt=tt.match(Zx).map(function(Me){var ze=Me[0];if(ze==="p"||ze==="P"){var Wt=Nh[ze];return Wt(Me,Je.formatLong)}return Me}).join("").match(Kx).map(function(Me){if(Me==="''")return"'";var ze=Me[0];if(ze==="'")return tv(Me);var Wt=Ah[ze];if(Wt)return!(a!=null&&a.useAdditionalWeekYearTokens)&&Rh(Me)&&If(Me,r,String(e)),!(a!=null&&a.useAdditionalDayOfYearTokens)&&Lh(Me)&&If(Me,r,String(e)),Wt(at,Me,Je.localize,mt);if(ze.match(ev))throw new RangeError("Format string contains an unescaped latin alphabet character \`"+ze+"\`");return Me}).join("");return Rt}function tv(e){var r=e.match(Xx);return r?r[1].replace(Jx,"'"):e}var Af=(e,r)=>{if(e instanceof Date)return"date";if(typeof e=="string"){if(/\\/\\/(\\S+?(?:jpe?g|png|gif|svg))/gi.test(e)||e.includes("unsplash"))return"image";if(/^\\d{4}-\\d{2}-\\d{2}$/.test(e))return"date";if(r=="tag"||r=="tags")return"tag";if(/\\[\\[.*?\\]\\]/.test(e))return"link"}else{if(typeof e=="number")return"number";if(typeof e=="boolean")return"boolean";if(e)if(Array.isArray(e)||typeof e=="string"&&e.indexOf(",")>-1){let a=Array.isArray(e)?e:[];if(typeof e=="string"&&e.indexOf(",")>-1&&(a=sr(e)),r=="tag"||r=="tags")return"tag-multi";if(a.length==1&&Array.isArray(a[0])&&a[0].length==1&&typeof a[0][0]=="string")return"link";let u=sn(a.map(l=>Af(l,r)));return u.length==1&&u[0]=="link"?"link-multi":u.some(l=>l=="object")?"object-multi":"option-multi"}else{if(e.isLuxonDateTime)return"date";if(e.isLuxonDuration)return"duration";if(e.type=="file")return"link";if(typeof e=="object"&&!Array.isArray(e)&&e!==null)return"object"}else return"unknown"}return"text"};var Gh=e=>e.join(", "),ci=e=>e.join(",");var sr=e=>e?.match(/(\\\\.|[^,])+/g)??[],Of=(e,r)=>{switch(Af(r,e)){case"object":return JSON.stringify(r);case"number":return r.toString();case"boolean":return r?"true":"false";case"date":{if(console.log(typeof r),r instanceof Date){let u=fi(new Date(r),"yyyy-MM-dd");if(typeof u=="string")return u}return typeof r!="string"?"":r}break;case"duration":return Gh(Object.keys(r.values).reduce((u,l)=>[...u,...r.values[l]>0?[r.values[l]+" "+l]:[]],[]));case"option-multi":case"link-multi":return typeof r=="string"?is(r):ci(r.map(u=>u?typeof u=="string"?is(u):u.path?u.path:Array.isArray(r)&&u.length==1&&Array.isArray(u[0])&&u[0].length==1&&typeof u[0][0]=="string"?u[0][0]:JSON.stringify(u):""));case"link":return Array.isArray(r)&&r.length==1&&Array.isArray(r[0])&&r[0].length==1&&typeof r[0][0]=="string"?r[0][0]:typeof r=="string"?is(r):r.path;case"text":case"tag":case"image":return r}return""};var is=e=>{if(!e)return"";let r=/\\[\\[(.*?)\\]\\]/g.exec(e),a=r?.length>1?r[1].substring(0,Eh("|",r[1])):e;return a||e};var No=(e,r)=>e==r,Ff=(e,r)=>(e??"").length==0,Nf=(e,r)=>(e??"").toLowerCase().includes((r??"").toLowerCase()),Lf=(e,r)=>parseFloat(e)>parseFloat(r),Rf=(e,r)=>parseInt(e)>parseInt(r),zh=(e,r)=>{let a=isNaN(Date.parse(e))?new Date(parseInt(e)):new Date(e),u=isNaN(Date.parse(r))?new Date(parseInt(r)):new Date(r);return a.valueOf()>u.valueOf()},$h=(e,r)=>{let a=isNaN(Date.parse(e))?new Date(parseInt(e)):new Date(e),u=isNaN(Date.parse(r))?new Date(parseInt(r)):new Date(r);return a.valueOf(){let a=e?sr(e):[];return(r?sr(r):[]).some(l=>a.some(p=>p==l))},jh=(e,r)=>{if(!e)return!1;let a=new Date(\`\${e.toString().replace(".",":")}\`),u=new Date(\`\${r}\`);return a.getMonth()===u.getMonth()&&a.getDate()===u.getDate()},Qh=e=>{if(!e)return!1;let r=new Date(\`\${e.toString()}T00:00\`),a=new Date;return r.getMonth()===a.getMonth()&&r.getDate()===a.getDate()};var as={isNotEmpty:{type:["text","file","link","link-multi","fileprop","image"],fn:(e,r)=>!Ff(e,""),valueType:"none"},isEmpty:{type:["text","file","link","link-multi","fileprop","image"],fn:(e,r)=>Ff(e,""),valueType:"none"},include:{fn:(e,r)=>Nf(e,r),type:["text","file","link","link-multi","fileprop","image"],valueType:"text"},notInclude:{type:["text","file","link","link-multi","fileprop","image"],fn:(e,r)=>!Nf(e,r),valueType:"text"},is:{type:["text","file","link","context","fileprop"],fn:(e,r)=>No(e,r),valueType:"text"},isNot:{type:["text","file","link","context","fileprop"],fn:(e,r)=>!No(e,r),valueType:"text"},equal:{type:["number"],fn:(e,r)=>No(e,r),valueType:"number"},isGreatThan:{type:["number"],fn:(e,r)=>Lf(e,r),valueType:"number"},isLessThan:{type:["number"],fn:(e,r)=>Rf(e,r),valueType:"number"},isLessThanOrEqual:{type:["number"],fn:(e,r)=>!Lf(e,r),valueType:"number"},isGreatThanOrEqual:{type:["number"],fn:(e,r)=>!Rf(e,r),valueType:"number"},dateBefore:{type:["date","fileprop"],fn:(e,r)=>$h(e,r),valueType:"date"},dateAfter:{type:["date","fileprop"],fn:(e,r)=>zh(e,r),valueType:"date"},isSameDate:{type:["date"],fn:(e,r)=>jh(e,r),valueType:"date"},isSameDateAsToday:{type:["date"],fn:(e,r)=>Qh(e,r),valueType:"none"},isAnyInList:{type:["option","context","option-multi","context-multi","tags-multi","tags"],fn:(e,r)=>Wf(e,r),valueType:"list"},isNoneInList:{type:["option","context","option-multi","context-multi","tags-multi","tags"],fn:(e,r)=>!Wf(e,r),valueType:"list"},isTrue:{type:["boolean"],fn:(e,r)=>e=="true",valueType:"none"},isFalse:{type:["boolean"],fn:(e,r)=>e!="true",valueType:"none"}};var rv=(e,r)=>r.reduce((u,l)=>{let[p,v]=u,C=l.type=="path"?Zh(v,l):l.type=="frontmatter"?Kh(v,l):Xh(v,l),T=v.filter(A=>!C.includes(A));return[[...p,...C],T]},[[],e])[0],nv=(e,r)=>r.reduce((a,u)=>u.type=="path"?Zh(a,u):u.type=="frontmatter"?Kh(a,u):Xh(a,u),e),Kh=(e,r)=>e.filter(a=>{let u=a.metadata?.property;if(!u||!u[r.field])return!1;let l=as[r.fn],p=!0;return l&&(p=l.fn(Of(r.field,u[r.field]),r.value)),p}),Zh=(e,r)=>e.filter(a=>{let u="";r.field=="outlinks"?u=ci(a.outlinks??[]):r.field=="inlinks"?u=ci(a.inlinks??[]):r.field=="tags"&&(u=ci(a.tags??[]));let l=as[r.fn],p=!0;return l&&(p=l.fn(u,r.value)),p}),Xh=(e,r)=>e.filter(a=>{let u=as[r.fn],l=!0;return u&&(l=u.fn(a.metadata?.[r.type]?.[r.field],r.value)),l}),Yf=(e,r)=>e.reduce((u,l)=>!u||l.filters.length==0?!1:l.type=="any"?rv([r],l.filters).length>0:nv([r],l.filters).length>0,!0);var ep=yf(Jh()),Vf=class{constructor(){this.lang="en";this.all={en:{hintText:{dragDropModifierKeys:"Hold \${1} to Pin and \${2} to Copy",createListItem:"Select/Create List Item Frame",dragDropProperties:"Drag and drop properties to link them into the list",newItem:"+ New",selectNote:"Select Note...",newFrame:"New"},defaults:{spaceNote:"Current Note",spaceContext:"Current Space"},commands:{h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",columns:"Columns",button:"Button",label:"Label",column:"Column",idea:"New",group:"Group",paragraph:"Text",card:"Card",progress:"Progress",rating:"Rating",circularProgress:"Circular Progress",list:"Bullet List","ordered-list":"Numbered List",todo:"To-do List",quote:"Quote",divider:"Divider",note:"Link to Note",link:"Link",callout:"Callout",table:"Table",codeblock:"Code Block",emoji:"Emoji",image:"Image",flow:"Linked Note",newNote:"New Note",tag:"Tag",makeMenu:"Flow Menu",selectStyle:"Style",toggleKeyboard:"Toggle Keyboard",rows:"Rows",masonry:"Gallery"},styles:{bold:"Bold",italics:"Italics",strikethrough:"Strikethrough",code:"Code",link:"Web Link",blocklink:"Link to Note",textColor:"Text Color",highlight:"Highlight"},commandsSuggest:{noResult:"No result"},commandPalette:{enable:"Enable",disabled:"Disable",openFlow:"Open Flow Blocks in Selection",closeFlow:"Close Flow Blocks in Selection",toggleBold:"Toggle Bold",toggleItalics:"Toggle Italics",openSpaces:"Open Spaces",migrateData:"Migrate Spaces From 0.7",blink:"Blink",openFileContext:"Open Explorer",convertPathToSpace:"Convert to Space",revealFile:"Reveal File in Spaces",releaseNotes:"Release Notes",toggleBacklinks:"Toggle Backlinks",collapseAllFolders:"Collapse All Folders",addFileSpace:"Add File to Space",removeFileSpace:"Remove File from Space"},frames:{sections:{kit:"Kit",paths:"Paths"},label:{label:"Label",description:"Label"},note:{label:"Note",description:"Link to a note"},table:{label:"Table",description:"Table"},context:{label:"Context",description:"Display a context view from another space"},calendar:{label:"Calendar View"},field:{label:"Field",description:"Dynamic node that displays a value based on property type"},event:{label:"Event"},divider:{label:"Divider",description:"Divider to separate your content"},button:{label:"Button",description:"Buttons can perform actions and open links"}},menu:{newView:"New View",customView:"Custom View",detailsView:"Details View",catalogView:"Catalog View",galleryView:"Gallery View",deleteContext:"Delete Context",openSpace:"Open Space",revealInDefault:"Reveal in Finder",setNone:"None",fileMetadataDescription:"This note only",openFilePane:"Open in a new pane",rename:"Rename",changeToFolderNote:"New Space from Note",moveFile:"Move file to...",moveFolder:"Move folder to...",duplicate:"Make a copy",edit:"Edit",delete:"Delete",getHelp:"Make.md Community",vault:"Vault",openVault:"Open Another Vault",openVaultInFolder:"Open Vault Folder",obSettings:"Obsidian Settings",commandPalette:"Command Palette",backToSpace:"Back to Spaces",collapseAllSections:"Collapse All Spaces",expandAllSections:"Expand All Spaces",collapseAllFolders:"Collapse All Folders",expandAllFolders:"Expand All Folders",spaceTitle:"Add/Remove in Space",home:"Home",waypoints:"Waypoints",none:"None",tableView:"Table View",cardView:"Card View",boardView:"Board View",listView:"List View",flowView:"Flow View",groupBy:"Group By",sortBy:"Sort By",newFilter:"New Filter",clearFilters:"Clear Filters",hide:"Hide",unhideFields:"Unhide All Properties",importDataview:"Import All Dataview Properties",saveAllProperties:"Save All Properties to Files",mergeProperties:"Merge Properties",removeFromSpace:"Unpin from Space",removeFromWaypoints:"Unpin from Waypoints",editCode:"Edit Code",deleteProperty:"Delete Property",hideProperty:"Hide Property",unhideProperty:"Unhide Property",saveProperty:"Save Property",sortAscending:"Sort Ascending",sortDescending:"Sort Descending",deleteRow:"Delete Item",collapseAll:"Collapse All",customSort:"Custom Sort",groupSpaces:"Group Spaces",fileNameSortAlphaAsc:"File Name (A to Z)",fileNameSortAlphaDesc:"File Name (Z to A)",createdTimeSortAsc:"Created Time (new to old)",createdTimeSortDesc:"Created Time (old to new)",modifiedTimeSortAsc:"Modified Time (new to old)",modifiedTimeSortDesc:"Modified Time (old to new)",sizeSortAsc:"Size (smallest to largest)",sizeSortDesc:"Size (largest to smallest)",spaces:"Spaces",tags:"Tags",manageHiddenFiles:"Manage Hidden Files",manageActions:"Manage Actions",deleteSpace:"Delete",changeColor:"Change Color",changePropertyType:"Change Type",deleteFiles:"Delete Files",createFolderSpace:"Create Space from Folder",folder:"Folder",syncToContext:"Add Property to Context",setIcon:"Set Icon",copyEmbedLink:"Copy Embed Link",moveUp:"Move Up",moveDown:"Move Down",moveTo:"Move To",groupNodes:"Group Nodes",moveFrame:"Move Frame",renameFrame:"Rename Frame",deleteFrame:"Delete Frame"},editor:{rows:"Rows",columns:"Columns",catalog:"Catalog",gallery:"Gallery",grid:"Grid",scaleToFit:"Change to Fit",scaleToFill:"Change to Fill",fit:"Fit",strokeNone:"None",strokeSolid:"Solid",strokeDotted:"Dotted",strokeDashed:"Dashed",size:"Size",gap:"Gap",marginLeft:"Left",marginTop:"Top",marginRight:"Right",marginBottom:"Bottom",minimize:"Minimize",paddingLeft:"Left",paddingTop:"Top",paddingRight:"Right",paddingBottom:"Bottom",unlinkProperty:"Unlink Property",linkedProperty:"Linked Property",linkProperty:"Link Property",currentSpace:"Current Space",linkName:"\${1} Link",linkThumbnail:"\${1} Thumbnail",linkSticker:"\${1} Sticker",opacity:"Opacity",shadowSpread:"Spread",shadowBlur:"Blur",width:"Width",height:"Height",margin:"Margin",padding:"Padding",bold:"Bold",italic:"Italic",underline:"Underline",alignLeft:"Align Left",alignCenter:"Align Center",alignRight:"Align Right",alignJustify:"Align Justify",numberOfLines:"Lines",createVerticalSection:"Create Vertical Section",createHorizontalSection:"Create Horizontal Section",themeColors:"Theme Colors",uiColors:"UI Colors",hex:"Hex"},buttons:{add:"Add",addFilter:"Add Filter",customize:"Customize",moreOptions:"More Options",saveProperty:"Save Property",newNote:"New Note",changeIcon:"Change Sticker",removeIcon:"Remove Sticker",addIcon:"Add Sticker",addCover:"Add Cover",changeBanner:"Change Cover",changeBannerShort:"Cover",saveChanges:"Save Changes",removeBanner:"Remove Cover",rename:"Change Name",editFrame:"Edit Frame",saveSpace:"Save Space",createSpace:"New Space",createFolder:"New Folder",createNote:"New Note",createCanvas:"New Canvas",addIntoSpace:"New Pin",addSmartSearch:"Add Smart Search",addItem:"Add Item",addProperty:"Add Property",addContext:"Add Context",cancel:"Cancel",search:"Search",delete:"Delete",toggleFlow:"Toggle Flow",openFlow:"Open Flow",hideFlow:"Hide Flow",openLink:"Open Link",addToSpace:"Add to Space",addToSpaceShort:"Pin",addTag:"Add Tag",tag:"Tag",syncFields:"Sync Properties",convertTable:"Convert to Markdown",cutTable:"Cut Table",deleteTable:"Delete Table",blink:"Blink",addFile:"Add Item",merge:"Merge",saveView:"Save View",saveTable:"Save Table",renameView:"Rename View",deleteView:"Delete View",renameTable:"Rename Table",renameTag:"Rename Tag",createTag:"Create Tag",currentFolder:"Current Folder",sync:"Sync",pasteCSS:"Paste CSS",save:"Save",run:"Run"},metadataTypes:{fileName:"File Name",path:"Path",folder:"Folder",sticker:"Sticker",color:"Color",created:"Created",lastModified:"Last Modified",extension:"Extension",size:"Size",tags:"Tags",inlinks:"Linked Mentions",outlinks:"Links",label:"Label",fileMetadata:"File Metadata",frontmatter:"Frontmatter"},filterTypes:{contains:"contains",notContains:"does not contain",is:"is",isNot:"is not",before:"before",after:"after",anyOf:"is any of",noneOf:"is none of",checked:"is checked",unchecked:"is unchecked",isEmpty:"is empty",isNotEmpty:"is not empty",isSameDate:"is same date",isSameDateAsToday:"today"},sortTypes:{alphaAsc:"A to Z",alphaDesc:"Z to A",earliest:"Earliest",latest:"Latest",checkAsc:"Checked \\u2192 Unchecked",checkDesc:"Unchecked \\u2192 Checked",itemsAsc:"Least Items",itemsDesc:"Most Items"},properties:{defaultField:"Name",text:{label:"Text",description:"Text field"},number:{label:"Number",description:"Number field with optional unit"},boolean:{label:"Yes/No",description:"Yes or No toggle to indicate the status"},date:{label:"Date",description:"Select a date from a calendar"},option:{label:"Option",description:"Select one or multiple option from a list"},file:{label:"File"},link:{label:"Link",description:"Link to another note or a website"},tags:{label:"Tags",description:"Use tags to quickly organize your items"},object:{label:"Object",description:"Store any complex objects"},context:{label:"Relation",description:"Connect to another context property and create a relation"},image:{label:"Image",description:"Select any image from your system or from the internet"},color:{label:"Color",description:"Use colors to label your items or status"},space:{label:"Context",description:"Link to a context"},icon:{label:"Sticker",description:"Use stickers to uniquely label your items or status"},super:{label:"Super Property",links:"Open Link",properties:"Update Property",api:"API",obsidianCommands:"Run Command",runCommand:"Run Command",performAction:"Perform Action",whenClicked:"When Clicked"},fileProperty:{name:"Name",label:"Formula",createdTime:"Created",modifiedTime:"Last Edited",sticker:"Sticker",links:"Links",tags:"Tags",spaces:"Spaces",extension:"Extension",size:"Size",preview:"Note Preview",parentFolder:"Folder",description:"Use a formula to dynamically display a property"}},views:{navigator:"Navigator",explorer:"Explorer",space:"Space"},subViews:{spaceItems:"Items",spaceContext:"Context",spaceLists:"Lists",spaceActions:"Actions",smartSearch:"Smart Search",filesAndFolders:"Files and Folders"},labels:{properties:"Properties",newAction:"New Action",newTable:"New Table",createFolder:"New Folder Name",rename:"Rename",createNew:"New",default:"Default",done:"Done",tables:"Tables",selectDateFormat:"Select/Type Date Format",renameSectionSmart:"Edit Smart Space",renameSection:"Edit Space",createSectionSmart:"New Smart Space",createSection:"New Folder",createNote:"New Note",contextMaker:"Context Maker",select:"Select",pinnedItems:"Pinned Items",collapse:"Collapse",expand:"Expand",all:"All",none:"None",view:"View",findStickers:"Find Sticker",mergeProperties:"Merge Properties",placeholder:"Type '\${1}' for commands",itemsSelected:"\${1} Selected",selectNote:"Select Note",selectIcon:"Select Icon",selectImage:"Select Image",selectSpace:"Select Space",styleSmall:"Small",styleMedium:"Medium",styleLarge:"Large",hiddenFilePattern:"Name, Suffixes and Extension",hiddenFileSpecific:"Exclude specific files and folders",textPlaceholder:"Enter Text",noFile:"is not created yet. Click to create.",navigatorSearchPlaceholder:"Search by Text or Filters",blinkPlaceholder:"Quickly Search a File, Folder, Tag... Press Tab to Edit",searchPlaceholder:"Type to search...",contextItemSelectPlaceholder:"Find Item",linkItemSelectPlaceholder:"Find or Create Note",pinNotePlaceholder:"Select a Note or Space to Pin",optionItemSelectPlaceholder:"Select Option",viewItemSelectPlaceholder:"Select View",tagItemSelectPlaceholder:"Find Tag",spaceSelectPlaceholder:"Select any Folder or Tag",propertyItemSelectPlaceholder:"Select Property",sortItemSelectPlaceholder:"Select Sort",filterItemSelectPlaceholder:"Select Filter",imageSelectPlaceholder:"Select an image or paste a URL",imageNotFoundPlaceholder:"No Images Found",syncFrontmatterProperty:"Sync Frontmatter Property",newProperty:"New Property",newPropertyShort:"New Property",propertyType:"Type",propertyDynamic:"Dyanmic",propertyValueSpace:"Space",propertyValueProperty:"Property",propertyLookup:"Edit Formula",dateFormat:"Date Format",propertyFileProp:"Property",multiple:"Multiple",filesCount:"{$1} Files",hiddenFiles:"Hidden Files",addExtension:"Add Rule",saveView:"Save View",saveTable:"Save Table",renameView:"Rename View",renameTable:"Rename Table",syncMetadata:"Sync Metadata",syncProperties:"Sync Properties",selectContext:"Select Context",metadata:"Metadata",backlinks:"Backlinks",spaces:"Spaces",context:"Context",content:"Content",deleteSpace:"Delete Space",deleteFiles:"Delete Files",outgoingLinks:"Outgoing Links",moveTo:"Move to",addTo:"Pin to",copyTo:"Copy to",reorderIn:"Reorder in",border:"Border",corners:"Corners",color:"Color",backgroundColor:"Background",cornerRadius:"Radius",onClick:"On Click",layout:"Layout",element:"Element",name:"Name",display:"Display",alignment:"Alignment",margin:"Margin",padding:"Padding",gap:"Gap",width:"Width",height:"Height",opacity:"Opacity",shadow:"Shadow",shadowBlur:"Blur",shadowSpread:"Spread",typography:"Typography",layers:"Layers",fontSize:"Size",props:"Props",styles:"Styles",events:"Events",code:"Code",selectedLayers:"\${1} Layers"},descriptions:{spaceActions:"Create actions that runs when you press a button",spaceLists:"Create lists to track data and organize them in your space",spaceItems:"Add new items to the space or pin items to the space",smartSearch:"Automatically pin notes to this space based on a set of searches",hiddenFileOptions:"Exclude any files and folders by name, suffix or extension.",deleteSpace:"Deleting the space will also delete the folder and its contents.",deleteFiles:"Delete \${1} files/folders and their contents?",addContext:"Contexts lets you connect properties from your tags",spaceProperties:"Define Properties for your Space Items",syncMetadata:"Select which fields from your notes to start syncing with the context.",syncProperties:"Contexts defines and syncs the same fields across your notes depending on their folder or tag.",selectContext:"Select which folder or tag context you want to sync the fields."},flowView:{emptyDoc:"Empty Document",itemsCount:" Items",emptyFolder:"This Folder is Empty"},notice:{duplicateFile:"Folder already contains note with same name",addedToSection:"Added to Space",fileExists:"File Already Exists",folderExists:"Folder Already Exists",noPropertyName:"Property Name is Required",duplicatePropertyName:"Duplicate Property Name",newSpaceName:"Enter a name for your space",duplicateSpaceName:"Space name already exists",cantConvertNoteToSpace:"The view is not a note"},settings:{layoutVertical:"Vertical",layoutHorizontal:"Horizontal",sectionSidebar:"Spaces",sectionEditor:"Maker Mode",sectionFlow:"Flow",sectionAdvanced:"Advanced",sectionDataview:"Dataview",sectionContext:"Context",sectionStickers:"Stickers",sectionNavigator:"Navigator",sectionDefault:"Default Spaces",sectionSpaceView:"Space View",sectionBlink:"Blink",sectionInlineContext:"Inline Context",sectionFlowBlock:"Flow Block",sectionFlowMenu:"Flow Menu",sectionFlowStyler:"Flow Styler",experimental:{name:"Experimental",desc:"Experimental features that are subject to change and may not be optimized for performance"},generateThumbnails:{name:"Generate Thumbnails",desc:"Create thumbnails for images to speed up performance"},minimalThemeFix:{name:"Minimal Theme Fix",description:"Apply fixes for the popular theme Minimal"},inlineStickerMenu:{name:"Inline Stickers",desc:"Add inline stickers by typing :"},openSpacesOnLaunch:{name:"Open Spaces as Default Tab",desc:"Open the Spaces tab when Obsidian launches"},defaultSpaceTemplate:{name:"Default Space Template",desc:"Select the default template for new spaces"},defaultDateFormat:{name:"Default Date Format",desc:"Set the default date format, example: yyyy-MM-dd (see https://date-fns.org/v2.30.0/docs/format)"},newNotePlaceholder:{name:"New Note Placeholder",desc:"Default name for new notes"},folderIndentationLines:{name:"Show Folder Indentation Lines",desc:"Turn on to show a line on the left of folders to indicate indentation"},folderNoteLocation:{name:"Folder Note Location Inside Folder",desc:"Turn on to have folder notes inside the folder, turn off to have it outside"},folderViewDefault:{name:"Show Folder Note by Default",desc:"Show the folder note by default when opening a folder"},internalLinkFlowEditor:{name:"Open Flow Blocks on Internal Link Click",desc:"Turn on to toggle Flow Blocks directly by clicking on internal links, otherwise a tooltip will be shown"},syncContextToFrontmatter:{name:"Sync Context Fields to Frontmatter",desc:"Turn on to automatically save all context fields to frontmatter fields, not just existing frontmatter fields."},inlineBacklinks:{name:"Show Inline Backlinks (Inline Context required)",desc:"Show editable backlinks at the bottom of your notes"},dataviewInlineContext:{name:"Show Dataview in Inline Context",desc:"Show dataview when inline context is enabled"},inlineContextExplorer:{name:"Inline Context",desc:"Display the context and a banner at the top of your notes"},inlineContextExpanded:{name:"Auto Expand Inline Context",desc:"Expand the inline context sections when opening a note"},inlineContextHorizontal:{name:"Inline Title and Sticker Layout",desc:"Layout for inline title and sticker in Inline Context"},hideFrontmatter:{name:"Hide Frontmatter Properties",desc:"Hide the frontmatter properties in inline context"},openFileContext:{name:"Auto Open Explorer",desc:"Automatically open explorer panel in the right panel"},folderNote:{name:"Enable Folder Note",desc:"Access the folder note in the folder page and hide the folder note from spaces"},expandFolder:{name:"Auto Expand Folder",desc:"Auto expand folders on click"},hoverPreview:{name:"Preview on Hover",desc:"Preview on Hover while holding Control/Command key"},activeFile:{name:"Reveal Active File",desc:"Automatically reveal the active file in Spaces"},contexts:{name:"Contexts",desc:"Contexts allows you to have full control over the metadata of your files"},spaces:{name:"Navigator",desc:"The navigator lets you create and organize your spaces"},spacesStickers:{name:"Stickers",desc:"Use Emojis to make it easier to find your notes"},spacesAlias:{name:"Alias",desc:"Use the alias metadata to show in Spaces"},spacesFileExplorerDual:{name:"Compatibility Mode",desc:"This will improve the compatibility of plugins while using Spaces"},spacesDeleteOption:{name:"Delete File Option",desc:"Select how you want files to be deleted"},spacesDeleteOptions:{permanant:"Delete Permanently",trash:"Move to Obsidian Trash","system-trash":"Move to System Trash"},hideRibbon:{name:"App Ribbon",desc:"Show/hide the left menu aka. ribbon"},spaceView:{name:"Space View",desc:"Open the space view when you click on a space"},defaultSpaces:{name:"Default Spaces",desc:"Recommended spaces for quickly organizing your vault"},homeSpace:{name:"Home Space",desc:"An easy-to-access space where you can add/organize your other spaces"},tagSpaces:{name:"Tag Spaces",desc:"Automatically create spaces for each of your tags"},readableLineWidth:{name:"Readable Line Width",desc:"Use Readable Line Width"},sidebarTabs:{name:"Sidebar Tabs",desc:"Show/hide other sidebar tabs"},spacesPerformance:{name:"Performance Mode",desc:"Turn on performance mode for Spaces, may affect scrolling appearance. Requires Restart"},indexSVG:{name:"Use SVGs as Stickers",desc:"Use any svg file in your vault as a sticker"},inlineStyler:{name:"Flow Styler",desc:"Select text to add styling"},inlineStylerColor:{name:"Text and Highlight Colors \\u{1F9EA}",desc:"Select text color and highlight color, (this may change in the future because of the limitations with HTML and Obsidian)"},spaceRowHeight:{name:"Row Height",desc:"The height for each row in spaces (in pixels), default is 28"},makeChar:{name:"Flow Menu Trigger",desc:"Character to open the Flow Menu"},mobileMakeBar:{name:"Flow Styler (Mobile)",desc:"Replaces the mobile toolbar"},editorMarkSans:{name:"Mark Sans \\u{1F9EA}",desc:"Use the editor without Markdown."},editorMakerMode:{name:"Flow (Beta)",desc:"An integrated and intuitive editor experience"},editorMakePlacholder:{name:"Flow Menu Hint Text",desc:"Show a hint text on how to open the Flow Menu Shortcut"},blink:{name:"Blink",desc:"A faster way to search and edit your notes"},editorMakeMenu:{name:"Flow Menu",desc:"Open the Flow menu to quickly add content"},editorMakeMenuTrigger:{name:"Flow Menu Shortcut",desc:"Trigger key to use flow menu"},editorFlowReplace:{name:"Flow Block",desc:"Open your internal links or toggle your embeds in the flow block."},editorFlowStyle:{name:"Flow Block Style",desc:"Select a theme for your flow block",seamless:"Seamless",classic:"Classic",minimal:"Minimal"}}}};this.lang="en";let r=ep.default.locale();["en"].includes(r)&&(this.lang=r)}get texts(){return this.all.en}},ce=new Vf().texts;var W_=[{type:"unknown",label:"",restricted:!0,icon:"ui//file-question"},{type:"text",label:ce.properties.text.label,metadata:!0,icon:"ui//text",description:ce.properties.text.description},{type:"number",label:ce.properties.number.label,metadata:!0,icon:"ui//binary",configKeys:["unit"],description:ce.properties.number.description},{type:"boolean",label:ce.properties.boolean.label,metadata:!0,icon:"ui//check-square",description:ce.properties.boolean.description},{type:"date",label:ce.properties.date.label,metadata:!0,icon:"ui//calendar",configKeys:["format"],description:ce.properties.date.description},{type:"option",label:ce.properties.option.label,multi:!0,multiType:"option-multi",icon:"ui//list",configKeys:["options"],description:ce.properties.option.description},{type:"tags",label:ce.properties.tags.label,icon:"ui//tags",description:ce.properties.tags.description},{type:"file",label:ce.properties.file.label,restricted:!0,icon:"ui//mk-make-h3"},{type:"fileprop",label:ce.properties.fileProperty.label,icon:"ui//formula",configKeys:["field","value"],description:ce.properties.fileProperty.description},{type:"link",label:ce.properties.link.label,multi:!0,multiType:"link-multi",metadata:!0,icon:"ui//file-text",description:ce.properties.link.description},{type:"context",label:ce.properties.context.label,icon:"ui//mk-make-note",multi:!0,multiType:"context-multi",configKeys:["space"],description:ce.properties.context.description},{type:"object",label:ce.properties.object.label,multi:!0,multiType:"object-multi",metadata:!0,icon:"ui//list-tree",configKeys:["type"],description:ce.properties.object.description},{type:"icon",label:ce.properties.icon.label,multi:!0,multiType:"icon-multi",icon:"ui//gem",description:ce.properties.icon.description},{type:"image",label:ce.properties.image.label,multi:!0,multiType:"image-multi",metadata:!0,icon:"ui//mk-make-image",description:ce.properties.image.description},{type:"color",label:ce.properties.color.label,icon:"ui//mk-make-image",description:ce.properties.color.description},{type:"space",label:ce.properties.space.label,icon:"ui//layout-grid",restricted:!0,description:ce.properties.space.description},{type:"table",label:ce.properties.space.label,icon:"ui//layout-grid",restricted:!0,description:ce.properties.space.description},{type:"super",label:ce.properties.super.label,icon:"ui//zap",restricted:!0,configKeys:["dynamic","field"]},{type:"input",label:ce.properties.super.label,icon:"ui//input",restricted:!0}];var hi="files",Wo={id:hi,name:"Files",type:"db",primary:"true"},iv="filesView",av={id:iv,name:"All",type:"view",def:JSON.stringify({db:hi,icon:"ui//file-stack"})},sv="main",ov=e=>({id:e,name:e,type:"frame",def:"",predicate:"",primary:"true"}),Y_={uniques:[],cols:["id","name","type","def","predicate","primary"],rows:[ov(sv),av]},Lo={uniques:[],cols:["id","name","type","def","predicate","primary"],rows:[Wo]},tp={uniques:["name,schemaId"],cols:["name","schemaId","type","value","attrs","hidden","unique","primary"]},Ro={...tp,rows:[{name:on,schemaId:hi,type:"file",primary:"true",hidden:"",unique:"",attrs:"",value:""},{name:ce.properties.fileProperty.createdTime,schemaId:hi,type:"fileprop",value:on+".ctime",hidden:"",unique:"",attrs:"",primary:"true"}]};var B_=[{name:ce.properties.defaultField,schemaId:"",type:"text",primary:"true"}],Uf={...tp,rows:[{name:on,schemaId:hi,type:"file",primary:"true",hidden:"",unique:"",attrs:"",value:""}]};var V_={schema:Wo,cols:Ro.rows,rows:[]},U_={schema:Wo,cols:Ro.rows,rows:[]},H_={schema:Wo,cols:Uf.rows,rows:[]},rp=(e,r)=>e.filter(a=>r.find(u=>u.id==a.schemaId&&u.type=="db")).reduce((a,u)=>({...a,...a[u.schemaId]?{[u.schemaId]:{uniques:u.unique=="true"?[...a[u.schemaId].uniques,u.name]:a[u.schemaId].uniques,cols:[...a[u.schemaId].cols,u.name],rows:[]}}:{[u.schemaId]:{uniques:u.unique=="true"?[u.name]:[],cols:[u.name],rows:[]}}}),{});var q_={m_schema:Lo,m_fields:Ro,...rp(Ro.rows,Lo.rows)},G_={m_schema:Lo,m_fields:Uf,...rp(Uf.rows,Lo.rows)};var np=(e,r)=>e.hiddenExtensions.some(a=>r.endsWith(a))||r.startsWith(e.spacesFolder+"/#")||e.hiddenFiles.some(a=>a==r);var ip=(e,r,a)=>{if(!e)return{changed:!1,cache:null};if(!r)return{changed:!1,cache:{path:e.path,frames:{},schemas:[]}};let u=Object.values(r).map(C=>C.schema),l=u.filter(C=>C.type=="frame").reduce((C,T)=>({...C,[T.id]:r[T.id]}),{}),p={path:e.path,frames:l,schemas:u},v=!0;return a&&Yo.default.isEqual(p,a)&&(v=!1),{changed:v,cache:p}},ap=(e,r,a,u)=>{let l={};if(!e)return{changed:!1,cache:null};if(!r)return{changed:!1,cache:{cols:[],path:e.path,schemas:[],outlinks:[],contexts:[],paths:[],tables:{},space:e,spaceMap:l}};let p=Object.values(r).map(K=>K.schema),v=p.find(K=>K.primary=="true"),C=r[v.id],T=r,A=C.cols?.filter(K=>K.type.startsWith("context"))??[],R=C.cols?.filter(K=>K.type.startsWith("link"))??[],V=sn(A.map(K=>K.value));A.forEach(K=>{l[K.name]={},C.rows.forEach(Xe=>{sr(Xe[K.name]).forEach(Re=>l[K.name][Re]=[...l[K.name][Re]??[],Xe[on]])})});let Z=T[hi]?.rows?.map(K=>K[on])??[],ne=Th(a??[],Z),N=sn(C.rows.reduce((K,Xe)=>sn([...K,...[...A,...R].flatMap(Re=>sr(Xe[Re.name]).map(it=>is(it)))]),[])),we={cols:C.cols,path:e.path,contexts:V,outlinks:N,paths:ne,tables:T,schemas:p,space:e,spaceMap:l},Ne=!0;return u&&Yo.default.isEqual(we,u)&&(Ne=!0),{changed:Ne,cache:we}},sp=(e,r,a,u)=>{let l={};for(let[p,v]of e){let C=a.get(p)?.defPath??p,T=e.get(C)??v,A=v?.parent??"",R=v?.type??"",V=v?.subtype??"",Z=T?.label,ne=u?.get(p),{changed:N,cache:we}=Hf(p,r,a,T,Z,R,V,A,ne);l[p]={changed:N,cache:we}}return l},Hf=(e,r,a,u,l,p,v,C,T)=>{let A=(me,at,mt)=>me?.length>0||me?.length>0?me:at=="space"?mt=="Spaces/Home"?"ui//home":mt=="/"?"ui//vault":mt.startsWith("spaces://#")?"ui//tags":"ui//folder":"ui//file",R={label:u?.label,path:e,name:Oo(e),displayName:Oo(e)},V=[],Z=u?.tags?.map(me=>me)??[],ne=np(r,e),N=(me,at,mt=new Set)=>{let Rt=[];for(let Me of at){let ze=me.get(Me)?.contexts??[];for(let Wt of ze)mt.has(Wt)||(Rt.push(Wt),mt.add(Wt),Rt.push(...N(me,[Fo(Wt)],mt)))}return Rt};if(a.has(C))for(let me of a.get(C).contexts??[])V.push(me);V.push(...Z);let we=l?.name,Ne=u?.properties?vf(u.properties[r.fmKeyAlias]):[],K=A(l?.sticker,p,e),Xe=l?.color??"",Re=u?.inlinks??[],it=u?.links??[],tt=r.spacesUseAlias?Ne[0]??we:we,Te={...R,name:we,tags:sn(V),type:p,subtype:v,displayName:tt,parent:C,label:{name:we,sticker:K,color:Xe,thumbnail:l?.thumbnail??"",preview:l?.preview??""},metadata:{...u},inlinks:Re,outlinks:it},Je=[];for(let me of V)Je.push(Fo(me));for(let[me,at]of a){if(at.defPath==e&&(ne=!0),at.space&&at.space.path==C){Je.push(me);continue}if(at.metadata?.filters?.length>0&&Yf(at.metadata.filters,Te)){Je.push(me);continue}if(at.metadata?.links?.length>0&&(at.metadata?.links??[]).find(Rt=>Rt==Te.path)){Je.push(me);continue}}let Ge=N(a,Je);Je.push(...Ge.map(me=>Fo(me))),Te.tags.push(...Ge);let pr=ne?{...Te,spaces:[],hidden:ne}:{...Te,spaces:sn(Je),hidden:ne},jt=!0;return T&&Yo.default.isEqual(pr,T)&&(jt=!1),{changed:jt,cache:pr}};var uv=(e,r,a)=>{if(e.length!==1)return"";let u=e.map(function(v){return v.compile().evaluate(a)}),l=a.get(u[0]),p=a.get("$properties")?.[u[0]]?.type;return(p=="file"||p=="link"||p=="context")&&(p.includes("multi")?l=sr(l).map(v=>a.get("$paths").get(v)):l=a.get("$paths").get(l)),l??""};uv.rawArgs=!0;var lv=(e,r,a)=>{if((e.length-1)%2!==0)return"";for(let u=0;u{if(e.length<1||e.length>2)return"";let u=e[0].compile().evaluate(a);u instanceof Date||(u=new Date(u));let l=e[1]?.compile().evaluate(a);return l?.length>0?fi(u,l):fi(u,a.get("$settings")?.dateFormat??"yyyy-MM-dd")};fv.rawArgs=!0;var hv=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],hp=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],pv="\\u200C\\u200D\\xB7\\u0300-\\u036F\\u0387\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u0669\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u06F0-\\u06F9\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07C0-\\u07C9\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0898-\\u089F\\u08CA-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0966-\\u096F\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09E6-\\u09EF\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A66-\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AE6-\\u0AEF\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B66-\\u0B6F\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0CE6-\\u0CEF\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D66-\\u0D6F\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0E50-\\u0E59\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\u0ED0-\\u0ED9\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1040-\\u1049\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F-\\u109D\\u135D-\\u135F\\u1369-\\u1371\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u180F-\\u1819\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u194F\\u19D0-\\u19DA\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AB0-\\u1ABD\\u1ABF-\\u1ACE\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BB0-\\u1BB9\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1C40-\\u1C49\\u1C50-\\u1C59\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u200C\\u200D\\u203F\\u2040\\u2054\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\u30FB\\uA620-\\uA629\\uA66F\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8D0-\\uA8D9\\uA8E0-\\uA8F1\\uA8FF-\\uA909\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9D0-\\uA9D9\\uA9E5\\uA9F0-\\uA9F9\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA50-\\uAA59\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF10-\\uFF19\\uFF3F\\uFF65",pp="\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2118-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309B-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC",qf={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Gf="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",dv={5:Gf,"5module":Gf+" export import",6:Gf+" const class extends export import super"},mv=/^in(stanceof)?$/,gv=new RegExp("["+pp+"]"),yv=new RegExp("["+pp+pv+"]");function $f(e,r){for(var a=65536,u=0;ue)return!1;if(a+=r[u+1],a>=e)return!0}return!1}function ln(e,r){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&gv.test(String.fromCharCode(e)):r===!1?!1:$f(e,hp)}function aa(e,r){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&yv.test(String.fromCharCode(e)):r===!1?!1:$f(e,hp)||$f(e,hv)}var ve=function(r,a){a===void 0&&(a={}),this.label=r,this.keyword=a.keyword,this.beforeExpr=!!a.beforeExpr,this.startsExpr=!!a.startsExpr,this.isLoop=!!a.isLoop,this.isAssign=!!a.isAssign,this.prefix=!!a.prefix,this.postfix=!!a.postfix,this.binop=a.binop||null,this.updateContext=null};function or(e,r){return new ve(e,{beforeExpr:!0,binop:r})}var ur={beforeExpr:!0},Lt={startsExpr:!0},Kf={};function de(e,r){return r===void 0&&(r={}),r.keyword=e,Kf[e]=new ve(e,r)}var y={num:new ve("num",Lt),regexp:new ve("regexp",Lt),string:new ve("string",Lt),name:new ve("name",Lt),privateId:new ve("privateId",Lt),eof:new ve("eof"),bracketL:new ve("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new ve("]"),braceL:new ve("{",{beforeExpr:!0,startsExpr:!0}),braceR:new ve("}"),parenL:new ve("(",{beforeExpr:!0,startsExpr:!0}),parenR:new ve(")"),comma:new ve(",",ur),semi:new ve(";",ur),colon:new ve(":",ur),dot:new ve("."),question:new ve("?",ur),questionDot:new ve("?."),arrow:new ve("=>",ur),template:new ve("template"),invalidTemplate:new ve("invalidTemplate"),ellipsis:new ve("...",ur),backQuote:new ve("\`",Lt),dollarBraceL:new ve("\${",{beforeExpr:!0,startsExpr:!0}),eq:new ve("=",{beforeExpr:!0,isAssign:!0}),assign:new ve("_=",{beforeExpr:!0,isAssign:!0}),incDec:new ve("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new ve("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:or("||",1),logicalAND:or("&&",2),bitwiseOR:or("|",3),bitwiseXOR:or("^",4),bitwiseAND:or("&",5),equality:or("==/!=/===/!==",6),relational:or("/<=/>=",7),bitShift:or("<>/>>>",8),plusMin:new ve("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:or("%",10),star:or("*",10),slash:or("/",10),starstar:new ve("**",{beforeExpr:!0}),coalesce:or("??",1),_break:de("break"),_case:de("case",ur),_catch:de("catch"),_continue:de("continue"),_debugger:de("debugger"),_default:de("default",ur),_do:de("do",{isLoop:!0,beforeExpr:!0}),_else:de("else",ur),_finally:de("finally"),_for:de("for",{isLoop:!0}),_function:de("function",Lt),_if:de("if"),_return:de("return",ur),_switch:de("switch"),_throw:de("throw",ur),_try:de("try"),_var:de("var"),_const:de("const"),_while:de("while",{isLoop:!0}),_with:de("with"),_new:de("new",{beforeExpr:!0,startsExpr:!0}),_this:de("this",Lt),_super:de("super",Lt),_class:de("class",Lt),_extends:de("extends",ur),_export:de("export"),_import:de("import",Lt),_null:de("null",Lt),_true:de("true",Lt),_false:de("false",Lt),_in:de("in",{beforeExpr:!0,binop:7}),_instanceof:de("instanceof",{beforeExpr:!0,binop:7}),_typeof:de("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:de("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:de("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},cr=/\\r\\n?|\\n|\\u2028|\\u2029/,xv=new RegExp(cr.source,"g");function sa(e){return e===10||e===13||e===8232||e===8233}function dp(e,r,a){a===void 0&&(a=e.length);for(var u=r;u>10)+55296,(e&1023)+56320))}var _v=/(?:[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])/,os=function(r,a){this.line=r,this.column=a};os.prototype.offset=function(r){return new os(this.line,this.column+r)};var qo=function(r,a,u){this.start=a,this.end=u,r.sourceFile!==null&&(this.source=r.sourceFile)};function yp(e,r){for(var a=1,u=0;;){var l=dp(e,u,r);if(l<0)return new os(a,r-u);++a,u=l}}var jf={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},lp=!1;function Sv(e){var r={};for(var a in jf)r[a]=e&&ls(e,a)?e[a]:jf[a];if(r.ecmaVersion==="latest"?r.ecmaVersion=1e8:r.ecmaVersion==null?(!lp&&typeof console=="object"&&console.warn&&(lp=!0,console.warn(\`Since Acorn 8.0.0, options.ecmaVersion is required. +\`+new Error().stack),c=!1}return o.apply(this,arguments)},o)}var pr={};function jt(i,o){r.deprecationHandler!=null&&r.deprecationHandler(i,o),pr[i]||(Je(o),pr[i]=!0)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null;function me(i){return typeof Function<"u"&&i instanceof Function||Object.prototype.toString.call(i)==="[object Function]"}function at(i){var o,c;for(c in i)p(i,c)&&(o=i[c],me(o)?this[c]=o:this["_"+c]=o);this._config=i,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\\d{1,2}/.source)}function mt(i,o){var c=V({},i),h;for(h in o)p(o,h)&&(l(i[h])&&l(o[h])?(c[h]={},V(c[h],i[h]),V(c[h],o[h])):o[h]!=null?c[h]=o[h]:delete c[h]);for(h in i)p(i,h)&&!p(o,h)&&l(i[h])&&(c[h]=V({},c[h]));return c}function Rt(i){i!=null&&this.set(i)}var Me;Object.keys?Me=Object.keys:Me=function(i){var o,c=[];for(o in i)p(i,o)&&c.push(o);return c};var ze={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Wt(i,o,c){var h=this._calendar[i]||this._calendar.sameElse;return me(h)?h.call(o,c):h}function xt(i,o,c){var h=""+Math.abs(i),m=o-h.length,_=i>=0;return(_?c?"+":"":"-")+Math.pow(10,Math.max(0,m)).toString().substr(1)+h}var Pt=/(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,mi=/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fa={},hn={};function H(i,o,c,h){var m=h;typeof h=="string"&&(m=function(){return this[h]()}),i&&(hn[i]=m),o&&(hn[o[0]]=function(){return xt(m.apply(this,arguments),o[1],o[2])}),c&&(hn[c]=function(){return this.localeData().ordinal(m.apply(this,arguments),i)})}function gi(i){return i.match(/\\[[\\s\\S]/)?i.replace(/^\\[|\\]$/g,""):i.replace(/\\\\/g,"")}function Ko(i){var o=i.match(Pt),c,h;for(c=0,h=o.length;c=0&&mi.test(i);)i=i.replace(mi,h),mi.lastIndex=0,c-=1;return i}var Zo={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function yi(i){var o=this._longDateFormat[i],c=this._longDateFormat[i.toUpperCase()];return o||!c?o:(this._longDateFormat[i]=c.match(Pt).map(function(h){return h==="MMMM"||h==="MM"||h==="DD"||h==="dddd"?h.slice(1):h}).join(""),this._longDateFormat[i])}var xi="Invalid date";function hs(){return this._invalidDate}var Yt="%d",Yn=/\\d{1,2}/;function Xo(i){return this._ordinal.replace("%d",i)}var dr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ps(i,o,c,h){var m=this._relativeTime[c];return me(m)?m(i,o,c,h):m.replace(/%d/i,i)}function Jo(i,o){var c=this._relativeTime[i>0?"future":"past"];return me(c)?c(o):c.replace(/%s/i,o)}var mr={};function Ee(i,o){var c=i.toLowerCase();mr[c]=mr[c+"s"]=mr[o]=i}function st(i){return typeof i=="string"?mr[i]||mr[i.toLowerCase()]:void 0}function dn(i){var o={},c,h;for(h in i)p(i,h)&&(c=st(h),c&&(o[c]=i[h]));return o}var ds={};function Ve(i,o){ds[i]=o}function eu(i){var o=[],c;for(c in i)p(i,c)&&o.push({unit:c,priority:ds[c]});return o.sort(function(h,m){return h.priority-m.priority}),o}function Dr(i){return i%4===0&&i%100!==0||i%400===0}function rt(i){return i<0?Math.ceil(i)||0:Math.floor(i)}function re(i){var o=+i,c=0;return o!==0&&isFinite(o)&&(c=rt(o)),c}function Ir(i,o){return function(c){return c!=null?(vi(this,i,c),r.updateOffset(this,o),this):mn(this,i)}}function mn(i,o){return i.isValid()?i._d["get"+(i._isUTC?"UTC":"")+o]():NaN}function vi(i,o,c){i.isValid()&&!isNaN(c)&&(o==="FullYear"&&Dr(i.year())&&i.month()===1&&i.date()===29?(c=re(c),i._d["set"+(i._isUTC?"UTC":"")+o](c,i.month(),Ei(c,i.month()))):i._d["set"+(i._isUTC?"UTC":"")+o](c))}function ca(i){return i=st(i),me(this[i])?this[i]():this}function ha(i,o){if(typeof i=="object"){i=dn(i);var c=eu(i),h,m=c.length;for(h=0;h68?1900:2e3)};var ba=Ir("FullYear",!0);function du(){return Dr(this.year())}function vs(i,o,c,h,m,_,E){var G;return i<100&&i>=0?(G=new Date(i+400,o,c,h,m,_,E),isFinite(G.getFullYear())&&G.setFullYear(i)):G=new Date(i,o,c,h,m,_,E),G}function yn(i){var o,c;return i<100&&i>=0?(c=Array.prototype.slice.call(arguments),c[0]=i+400,o=new Date(Date.UTC.apply(null,c)),isFinite(o.getUTCFullYear())&&o.setUTCFullYear(i)):o=new Date(Date.UTC.apply(null,arguments)),o}function xn(i,o,c){var h=7+o-c,m=(7+yn(i,0,h).getUTCDay()-o)%7;return-m+h-1}function ws(i,o,c,h,m){var _=(7+c-h)%7,E=xn(i,h,m),G=1+7*(o-1)+_+E,ee,xe;return G<=0?(ee=i-1,xe=Mr(ee)+G):G>Mr(i)?(ee=i+1,xe=G-Mr(i)):(ee=i,xe=G),{year:ee,dayOfYear:xe}}function vn(i,o,c){var h=xn(i.year(),o,c),m=Math.floor((i.dayOfYear()-h-1)/7)+1,_,E;return m<1?(E=i.year()-1,_=m+Vt(E,o,c)):m>Vt(i.year(),o,c)?(_=m-Vt(i.year(),o,c),E=i.year()+1):(E=i.year(),_=m),{week:_,year:E}}function Vt(i,o,c){var h=xn(i,o,c),m=xn(i+1,o,c);return(Mr(i)-h+m)/7}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),Ee("week","w"),Ee("isoWeek","W"),Ve("week",5),Ve("isoWeek",5),Y("w",Ae),Y("ww",Ae,ct),Y("W",Ae),Y("WW",Ae,ct),Vn(["w","ww","W","WW"],function(i,o,c,h){o[h.substr(0,1)]=re(i)});function ka(i){return vn(i,this._week.dow,this._week.doy).week}var wn={dow:0,doy:6};function _s(){return this._week.dow}function Ss(){return this._week.doy}function mu(i){var o=this.localeData().week(this);return i==null?o:this.add((i-o)*7,"d")}function bs(i){var o=vn(this,1,4).week;return i==null?o:this.add((i-o)*7,"d")}H("d",0,"do","day"),H("dd",0,0,function(i){return this.localeData().weekdaysMin(this,i)}),H("ddd",0,0,function(i){return this.localeData().weekdaysShort(this,i)}),H("dddd",0,0,function(i){return this.localeData().weekdays(this,i)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),Ee("day","d"),Ee("weekday","e"),Ee("isoWeekday","E"),Ve("day",11),Ve("weekday",11),Ve("isoWeekday",11),Y("d",Ae),Y("e",Ae),Y("E",Ae),Y("dd",function(i,o){return o.weekdaysMinRegex(i)}),Y("ddd",function(i,o){return o.weekdaysShortRegex(i)}),Y("dddd",function(i,o){return o.weekdaysRegex(i)}),Vn(["dd","ddd","dddd"],function(i,o,c,h){var m=c._locale.weekdaysParse(i,h,c._strict);m!=null?o.d=m:N(c).invalidWeekday=i}),Vn(["d","e","E"],function(i,o,c,h){o[h]=re(i)});function ks(i,o){return typeof i!="string"?i:isNaN(i)?(i=o.weekdaysParse(i),typeof i=="number"?i:null):parseInt(i,10)}function Cs(i,o){return typeof i=="string"?o.weekdaysParse(i)%7||7:isNaN(i)?null:i}function Di(i,o){return i.slice(o,7).concat(i.slice(0,o))}var gu="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ts="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ps=qr,xu=qr,vu=qr;function wu(i,o){var c=u(this._weekdays)?this._weekdays:this._weekdays[i&&i!==!0&&this._weekdays.isFormat.test(o)?"format":"standalone"];return i===!0?Di(c,this._week.dow):i?c[i.day()]:c}function _u(i){return i===!0?Di(this._weekdaysShort,this._week.dow):i?this._weekdaysShort[i.day()]:this._weekdaysShort}function Ca(i){return i===!0?Di(this._weekdaysMin,this._week.dow):i?this._weekdaysMin[i.day()]:this._weekdaysMin}function Su(i,o,c){var h,m,_,E=i.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],h=0;h<7;++h)_=Z([2e3,1]).day(h),this._minWeekdaysParse[h]=this.weekdaysMin(_,"").toLocaleLowerCase(),this._shortWeekdaysParse[h]=this.weekdaysShort(_,"").toLocaleLowerCase(),this._weekdaysParse[h]=this.weekdays(_,"").toLocaleLowerCase();return c?o==="dddd"?(m=Le.call(this._weekdaysParse,E),m!==-1?m:null):o==="ddd"?(m=Le.call(this._shortWeekdaysParse,E),m!==-1?m:null):(m=Le.call(this._minWeekdaysParse,E),m!==-1?m:null):o==="dddd"?(m=Le.call(this._weekdaysParse,E),m!==-1||(m=Le.call(this._shortWeekdaysParse,E),m!==-1)?m:(m=Le.call(this._minWeekdaysParse,E),m!==-1?m:null)):o==="ddd"?(m=Le.call(this._shortWeekdaysParse,E),m!==-1||(m=Le.call(this._weekdaysParse,E),m!==-1)?m:(m=Le.call(this._minWeekdaysParse,E),m!==-1?m:null)):(m=Le.call(this._minWeekdaysParse,E),m!==-1||(m=Le.call(this._weekdaysParse,E),m!==-1)?m:(m=Le.call(this._shortWeekdaysParse,E),m!==-1?m:null))}function bu(i,o,c){var h,m,_;if(this._weekdaysParseExact)return Su.call(this,i,o,c);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),h=0;h<7;h++){if(m=Z([2e3,1]).day(h),c&&!this._fullWeekdaysParse[h]&&(this._fullWeekdaysParse[h]=new RegExp("^"+this.weekdays(m,"").replace(".","\\\\.?")+"$","i"),this._shortWeekdaysParse[h]=new RegExp("^"+this.weekdaysShort(m,"").replace(".","\\\\.?")+"$","i"),this._minWeekdaysParse[h]=new RegExp("^"+this.weekdaysMin(m,"").replace(".","\\\\.?")+"$","i")),this._weekdaysParse[h]||(_="^"+this.weekdays(m,"")+"|^"+this.weekdaysShort(m,"")+"|^"+this.weekdaysMin(m,""),this._weekdaysParse[h]=new RegExp(_.replace(".",""),"i")),c&&o==="dddd"&&this._fullWeekdaysParse[h].test(i))return h;if(c&&o==="ddd"&&this._shortWeekdaysParse[h].test(i))return h;if(c&&o==="dd"&&this._minWeekdaysParse[h].test(i))return h;if(!c&&this._weekdaysParse[h].test(i))return h}}function ku(i){if(!this.isValid())return i!=null?this:NaN;var o=this._isUTC?this._d.getUTCDay():this._d.getDay();return i!=null?(i=ks(i,this.localeData()),this.add(i-o,"d")):o}function Cu(i){if(!this.isValid())return i!=null?this:NaN;var o=(this.day()+7-this.localeData()._week.dow)%7;return i==null?o:this.add(i-o,"d")}function Tu(i){if(!this.isValid())return i!=null?this:NaN;if(i!=null){var o=Cs(i,this.localeData());return this.day(this.day()%7?o:o-7)}else return this.day()||7}function Oe(i){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Ta.call(this),i?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=Ps),this._weekdaysStrictRegex&&i?this._weekdaysStrictRegex:this._weekdaysRegex)}function De(i){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Ta.call(this),i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xu),this._weekdaysShortStrictRegex&&i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Pu(i){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Ta.call(this),i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=vu),this._weekdaysMinStrictRegex&&i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ta(){function i(dt,rr){return rr.length-dt.length}var o=[],c=[],h=[],m=[],_,E,G,ee,xe;for(_=0;_<7;_++)E=Z([2e3,1]).day(_),G=vt(this.weekdaysMin(E,"")),ee=vt(this.weekdaysShort(E,"")),xe=vt(this.weekdays(E,"")),o.push(G),c.push(ee),h.push(xe),m.push(G),m.push(ee),m.push(xe);o.sort(i),c.sort(i),h.sort(i),m.sort(i),this._weekdaysRegex=new RegExp("^("+m.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Pa(){return this.hours()%12||12}function Eu(){return this.hours()||24}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Pa),H("k",["kk",2],0,Eu),H("hmm",0,0,function(){return""+Pa.apply(this)+xt(this.minutes(),2)}),H("hmmss",0,0,function(){return""+Pa.apply(this)+xt(this.minutes(),2)+xt(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+xt(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+xt(this.minutes(),2)+xt(this.seconds(),2)});function Es(i,o){H(i,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),o)})}Es("a",!0),Es("A",!1),Ee("hour","h"),Ve("hour",13);function Ds(i,o){return o._meridiemParse}Y("a",Ds),Y("A",Ds),Y("H",Ae),Y("h",Ae),Y("k",Ae),Y("HH",Ae,ct),Y("hh",Ae,ct),Y("kk",Ae,ct),Y("hmm",da),Y("hmmss",ma),Y("Hmm",da),Y("Hmmss",ma),ke(["H","HH"],$e),ke(["k","kk"],function(i,o,c){var h=re(i);o[$e]=h===24?0:h}),ke(["a","A"],function(i,o,c){c._isPm=c._locale.isPM(i),c._meridiem=i}),ke(["h","hh"],function(i,o,c){o[$e]=re(i),N(c).bigHour=!0}),ke("hmm",function(i,o,c){var h=i.length-2;o[$e]=re(i.substr(0,h)),o[Bt]=re(i.substr(h)),N(c).bigHour=!0}),ke("hmmss",function(i,o,c){var h=i.length-4,m=i.length-2;o[$e]=re(i.substr(0,h)),o[Bt]=re(i.substr(h,2)),o[gr]=re(i.substr(m)),N(c).bigHour=!0}),ke("Hmm",function(i,o,c){var h=i.length-2;o[$e]=re(i.substr(0,h)),o[Bt]=re(i.substr(h))}),ke("Hmmss",function(i,o,c){var h=i.length-4,m=i.length-2;o[$e]=re(i.substr(0,h)),o[Bt]=re(i.substr(h,2)),o[gr]=re(i.substr(m))});function Is(i){return(i+"").toLowerCase().charAt(0)==="p"}var Du=/[ap]\\.?m?\\.?/i,et=Ir("Hours",!0);function Ea(i,o,c){return i>11?c?"pm":"PM":c?"am":"AM"}var Ar={calendar:ze,longDateFormat:Zo,invalidDate:xi,ordinal:Yt,dayOfMonthOrdinalParse:Yn,relativeTime:dr,months:uu,monthsShort:ms,week:wn,weekdays:gu,weekdaysMin:yu,weekdaysShort:Ts,meridiemParse:Du},Fe={},zr={},ut;function Ms(i,o){var c,h=Math.min(i.length,o.length);for(c=0;c0;){if(m=Un(_.slice(0,c).join("-")),m)return m;if(h&&h.length>=c&&Ms(_,h)>=c-1)break;c--}o++}return ut}function Os(i){return i.match("^[^/\\\\\\\\]*$")!=null}function Un(i){var o=null,c;if(Fe[i]===void 0&&typeof ia<"u"&&ia&&ia.exports&&Os(i))try{o=ut._abbr,c=require,c("./locale/"+i),yr(o)}catch{Fe[i]=null}return Fe[i]}function yr(i,o){var c;return i&&(C(o)?c=Ue(i):c=ht(i,o),c?ut=c:typeof console<"u"&&console.warn&&console.warn("Locale "+i+" not found. Did you forget to load it?")),ut._abbr}function ht(i,o){if(o!==null){var c,h=Ar;if(o.abbr=i,Fe[i]!=null)jt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),h=Fe[i]._config;else if(o.parentLocale!=null)if(Fe[o.parentLocale]!=null)h=Fe[o.parentLocale]._config;else if(c=Un(o.parentLocale),c!=null)h=c._config;else return zr[o.parentLocale]||(zr[o.parentLocale]=[]),zr[o.parentLocale].push({name:i,config:o}),null;return Fe[i]=new Rt(mt(h,o)),zr[i]&&zr[i].forEach(function(m){ht(m.name,m.config)}),yr(i),Fe[i]}else return delete Fe[i],null}function Iu(i,o){if(o!=null){var c,h,m=Ar;Fe[i]!=null&&Fe[i].parentLocale!=null?Fe[i].set(mt(Fe[i]._config,o)):(h=Un(i),h!=null&&(m=h._config),o=mt(m,o),h==null&&(o.abbr=i),c=new Rt(o),c.parentLocale=Fe[i],Fe[i]=c),yr(i)}else Fe[i]!=null&&(Fe[i].parentLocale!=null?(Fe[i]=Fe[i].parentLocale,i===yr()&&yr(i)):Fe[i]!=null&&delete Fe[i]);return Fe[i]}function Ue(i){var o;if(i&&i._locale&&i._locale._abbr&&(i=i._locale._abbr),!i)return ut;if(!u(i)){if(o=Un(i),o)return o;i=[i]}return As(i)}function Mu(){return Me(Fe)}function Ii(i){var o,c=i._a;return c&&N(i).overflow===-2&&(o=c[Qt]<0||c[Qt]>11?Qt:c[Kt]<1||c[Kt]>Ei(c[ot],c[Qt])?Kt:c[$e]<0||c[$e]>24||c[$e]===24&&(c[Bt]!==0||c[gr]!==0||c[Gr]!==0)?$e:c[Bt]<0||c[Bt]>59?Bt:c[gr]<0||c[gr]>59?gr:c[Gr]<0||c[Gr]>999?Gr:-1,N(i)._overflowDayOfYear&&(oKt)&&(o=Kt),N(i)._overflowWeeks&&o===-1&&(o=su),N(i)._overflowWeekday&&o===-1&&(o=Pi),N(i).overflow=o),i}var Or=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,Mi=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,Ia=/Z|[+-]\\d\\d(?::?\\d\\d)?/,Pe=[["YYYYYY-MM-DD",/[+-]\\d{6}-\\d\\d-\\d\\d/],["YYYY-MM-DD",/\\d{4}-\\d\\d-\\d\\d/],["GGGG-[W]WW-E",/\\d{4}-W\\d\\d-\\d/],["GGGG-[W]WW",/\\d{4}-W\\d\\d/,!1],["YYYY-DDD",/\\d{4}-\\d{3}/],["YYYY-MM",/\\d{4}-\\d\\d/,!1],["YYYYYYMMDD",/[+-]\\d{10}/],["YYYYMMDD",/\\d{8}/],["GGGG[W]WWE",/\\d{4}W\\d{3}/],["GGGG[W]WW",/\\d{4}W\\d{2}/,!1],["YYYYDDD",/\\d{7}/],["YYYYMM",/\\d{6}/,!1],["YYYY",/\\d{4}/,!1]],Zt=[["HH:mm:ss.SSSS",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],["HH:mm:ss,SSSS",/\\d\\d:\\d\\d:\\d\\d,\\d+/],["HH:mm:ss",/\\d\\d:\\d\\d:\\d\\d/],["HH:mm",/\\d\\d:\\d\\d/],["HHmmss.SSSS",/\\d\\d\\d\\d\\d\\d\\.\\d+/],["HHmmss,SSSS",/\\d\\d\\d\\d\\d\\d,\\d+/],["HHmmss",/\\d\\d\\d\\d\\d\\d/],["HHmm",/\\d\\d\\d\\d/],["HH",/\\d\\d/]],Ma=/^\\/?Date\\((-?\\d+)/i,Au=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/,Aa={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Fs(i){var o,c,h=i._i,m=Or.exec(h)||Mi.exec(h),_,E,G,ee,xe=Pe.length,dt=Zt.length;if(m){for(N(i).iso=!0,o=0,c=xe;oMr(E)||i._dayOfYear===0)&&(N(i)._overflowDayOfYear=!0),c=yn(E,0,i._dayOfYear),i._a[Qt]=c.getUTCMonth(),i._a[Kt]=c.getUTCDate()),o=0;o<3&&i._a[o]==null;++o)i._a[o]=h[o]=m[o];for(;o<7;o++)i._a[o]=h[o]=i._a[o]==null?o===2?1:0:i._a[o];i._a[$e]===24&&i._a[Bt]===0&&i._a[gr]===0&&i._a[Gr]===0&&(i._nextDay=!0,i._a[$e]=0),i._d=(i._useUTC?yn:vs).apply(null,h),_=i._useUTC?i._d.getUTCDay():i._d.getDay(),i._tzm!=null&&i._d.setUTCMinutes(i._d.getUTCMinutes()-i._tzm),i._nextDay&&(i._a[$e]=24),i._w&&typeof i._w.d<"u"&&i._w.d!==_&&(N(i).weekdayMismatch=!0)}}function Ws(i){var o,c,h,m,_,E,G,ee,xe;o=i._w,o.GG!=null||o.W!=null||o.E!=null?(_=1,E=4,c=$r(o.GG,i._a[ot],vn(Ie(),1,4).year),h=$r(o.W,1),m=$r(o.E,1),(m<1||m>7)&&(ee=!0)):(_=i._locale._week.dow,E=i._locale._week.doy,xe=vn(Ie(),_,E),c=$r(o.gg,i._a[ot],xe.year),h=$r(o.w,xe.week),o.d!=null?(m=o.d,(m<0||m>6)&&(ee=!0)):o.e!=null?(m=o.e+_,(o.e<0||o.e>6)&&(ee=!0)):m=_),h<1||h>Vt(c,_,E)?N(i)._overflowWeeks=!0:ee!=null?N(i)._overflowWeekday=!0:(G=ws(c,h,m,_,E),i._a[ot]=G.year,i._dayOfYear=G.dayOfYear)}r.ISO_8601=function(){},r.RFC_2822=function(){};function Fa(i){if(i._f===r.ISO_8601){Fs(i);return}if(i._f===r.RFC_2822){Ls(i);return}i._a=[],N(i).empty=!0;var o=""+i._i,c,h,m,_,E,G=o.length,ee=0,xe,dt;for(m=pn(i._f,i._locale).match(Pt)||[],dt=m.length,c=0;c0&&N(i).unusedInput.push(E),o=o.slice(o.indexOf(h)+h.length),ee+=h.length),hn[_]?(h?N(i).empty=!1:N(i).unusedTokens.push(_),au(_,h,i)):i._strict&&!h&&N(i).unusedTokens.push(_);N(i).charsLeftOver=G-ee,o.length>0&&N(i).unusedInput.push(o),i._a[$e]<=12&&N(i).bigHour===!0&&i._a[$e]>0&&(N(i).bigHour=void 0),N(i).parsedDateParts=i._a.slice(0),N(i).meridiem=i._meridiem,i._a[$e]=Na(i._locale,i._a[$e],i._meridiem),xe=N(i).era,xe!==null&&(i._a[ot]=i._locale.erasConvertYear(xe,i._a[ot])),Hn(i),Ii(i)}function Na(i,o,c){var h;return c==null?o:i.meridiemHour!=null?i.meridiemHour(o,c):(i.isPM!=null&&(h=i.isPM(c),h&&o<12&&(o+=12),!h&&o===12&&(o=0)),o)}function La(i){var o,c,h,m,_,E,G=!1,ee=i._f.length;if(ee===0){N(i).invalidFormat=!0,i._d=new Date(NaN);return}for(m=0;mthis?this:i:K()});function Vs(i,o){var c,h;if(o.length===1&&u(o[0])&&(o=o[0]),!o.length)return Ie();for(c=o[0],h=1;hthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function D(){if(!C(this._isDSTShifted))return this._isDSTShifted;var i={},o;return it(i,this),i=gt(i),i._a?(o=i._isUTC?Z(i._a):Ie(i._a),this._isDSTShifted=this.isValid()&&Uu(i._a,o.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function P(){return this.isValid()?!this._isUTC:!1}function B(){return this.isValid()?this._isUTC:!1}function X(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ye=/^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,je=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function oe(i,o){var c=i,h=null,m,_,E;return Ut(i)?c={ms:i._milliseconds,d:i._days,M:i._months}:T(i)||!isNaN(+i)?(c={},o?c[o]=+i:c.milliseconds=+i):(h=ye.exec(i))?(m=h[1]==="-"?-1:1,c={y:0,d:re(h[Kt])*m,h:re(h[$e])*m,m:re(h[Bt])*m,s:re(h[gr])*m,ms:re(bn(h[Gr]*1e3))*m}):(h=je.exec(i))?(m=h[1]==="-"?-1:1,c={y:xr(h[2],m),M:xr(h[3],m),w:xr(h[4],m),d:xr(h[5],m),h:xr(h[6],m),m:xr(h[7],m),s:xr(h[8],m)}):c==null?c={}:typeof c=="object"&&("from"in c||"to"in c)&&(E=Et(Ie(c.from),Ie(c.to)),c={},c.ms=E.milliseconds,c.M=E.months),_=new qn(c),Ut(i)&&p(i,"_locale")&&(_._locale=i._locale),Ut(i)&&p(i,"_isValid")&&(_._isValid=i._isValid),_}oe.fn=qn.prototype,oe.invalid=Wa;function xr(i,o){var c=i&&parseFloat(i.replace(",","."));return(isNaN(c)?0:c)*o}function Hs(i,o){var c={};return c.months=o.month()-i.month()+(o.year()-i.year())*12,i.clone().add(c.months,"M").isAfter(o)&&--c.months,c.milliseconds=+o-+i.clone().add(c.months,"M"),c}function Et(i,o){var c;return i.isValid()&&o.isValid()?(o=wt(o,i),i.isBefore(o)?c=Hs(i,o):(c=Hs(o,i),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}}function Gn(i,o){return function(c,h){var m,_;return h!==null&&!isNaN(+h)&&(jt(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),_=c,c=h,h=_),m=oe(c,h),qs(this,m,i),this}}function qs(i,o,c,h){var m=o._milliseconds,_=bn(o._days),E=bn(o._months);!i.isValid()||(h=h??!0,E&&va(i,mn(i,"Month")+E*c),_&&vi(i,"Date",mn(i,"Date")+_*c),m&&i._d.setTime(i._d.valueOf()+m*c),h&&r.updateOffset(i,_||E))}var kn=Gn(1,"add"),Fi=Gn(-1,"subtract");function zn(i){return typeof i=="string"||i instanceof String}function Se(i){return Te(i)||A(i)||zn(i)||T(i)||Gs(i)||Qu(i)||i===null||i===void 0}function Qu(i){var o=l(i)&&!v(i),c=!1,h=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],m,_,E=h.length;for(m=0;mc.valueOf():c.valueOf()9999?Er(c,o?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):me(Date.prototype.toISOString)?o?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Er(c,"Z")):Er(c,o?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Qr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var i="moment",o="",c,h,m,_;return this.isLocal()||(i=this.utcOffset()===0?"moment.utc":"moment.parseZone",o="Z"),c="["+i+'("]',h=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",m="-MM-DD[T]HH:mm:ss.SSS",_=o+'[")]',this.format(c+h+m+_)}function Yi(i){i||(i=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var o=Er(this,i);return this.localeData().postformat(o)}function Ju(i,o){return this.isValid()&&(Te(i)&&i.isValid()||Ie(i).isValid())?oe({to:this,from:i}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function el(i){return this.from(Ie(),i)}function tl(i,o){return this.isValid()&&(Te(i)&&i.isValid()||Ie(i).isValid())?oe({from:this,to:i}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function Bi(i){return this.to(Ie(),i)}function jn(i){var o;return i===void 0?this._locale._abbr:(o=Ue(i),o!=null&&(this._locale=o),this)}var Vi=Ge("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(i){return i===void 0?this.localeData():this.locale(i)});function Ks(){return this._locale}var Qn=1e3,Cn=60*Qn,Ui=60*Cn,He=(365*400+97)*24*Ui;function Ye(i,o){return(i%o+o)%o}function Zs(i,o,c){return i<100&&i>=0?new Date(i+400,o,c)-He:new Date(i,o,c).valueOf()}function Xs(i,o,c){return i<100&&i>=0?Date.UTC(i+400,o,c)-He:Date.UTC(i,o,c)}function Js(i){var o,c;if(i=st(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(c=this._isUTC?Xs:Zs,i){case"year":o=c(this.year(),0,1);break;case"quarter":o=c(this.year(),this.month()-this.month()%3,1);break;case"month":o=c(this.year(),this.month(),1);break;case"week":o=c(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":o=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":o=c(this.year(),this.month(),this.date());break;case"hour":o=this._d.valueOf(),o-=Ye(o+(this._isUTC?0:this.utcOffset()*Cn),Ui);break;case"minute":o=this._d.valueOf(),o-=Ye(o,Cn);break;case"second":o=this._d.valueOf(),o-=Ye(o,Qn);break}return this._d.setTime(o),r.updateOffset(this,!0),this}function rl(i){var o,c;if(i=st(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(c=this._isUTC?Xs:Zs,i){case"year":o=c(this.year()+1,0,1)-1;break;case"quarter":o=c(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":o=c(this.year(),this.month()+1,1)-1;break;case"week":o=c(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":o=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":o=c(this.year(),this.month(),this.date()+1)-1;break;case"hour":o=this._d.valueOf(),o+=Ui-Ye(o+(this._isUTC?0:this.utcOffset()*Cn),Ui)-1;break;case"minute":o=this._d.valueOf(),o+=Cn-Ye(o,Cn)-1;break;case"second":o=this._d.valueOf(),o+=Qn-Ye(o,Qn)-1;break}return this._d.setTime(o),r.updateOffset(this,!0),this}function Ya(){return this._d.valueOf()-(this._offset||0)*6e4}function Kn(){return Math.floor(this.valueOf()/1e3)}function Ba(){return new Date(this.valueOf())}function Tn(){var i=this;return[i.year(),i.month(),i.date(),i.hour(),i.minute(),i.second(),i.millisecond()]}function Zn(){var i=this;return{years:i.year(),months:i.month(),date:i.date(),hours:i.hours(),minutes:i.minutes(),seconds:i.seconds(),milliseconds:i.milliseconds()}}function Xn(){return this.isValid()?this.toISOString():null}function Hi(){return Ne(this)}function Pn(){return V({},N(this))}function nl(){return N(this).overflow}function il(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Y("N",ae),Y("NN",ae),Y("NNN",ae),Y("NNNN",ul),Y("NNNNN",ll),ke(["N","NN","NNN","NNNN","NNNNN"],function(i,o,c,h){var m=c._locale.erasParse(i,h,c._strict);m?N(c).era=m:N(c).invalidEra=i}),Y("y",gn),Y("yy",gn),Y("yyy",gn),Y("yyyy",gn),Y("yo",fl),ke(["y","yy","yyy","yyyy"],ot),ke(["yo"],function(i,o,c,h){var m;c._locale._eraYearOrdinalRegex&&(m=i.match(c._locale._eraYearOrdinalRegex)),c._locale.eraYearOrdinalParse?o[ot]=c._locale.eraYearOrdinalParse(i,m):o[ot]=parseInt(i,10)});function al(i,o){var c,h,m,_=this._eras||Ue("en")._eras;for(c=0,h=_.length;c=0)return _[h]}function ol(i,o){var c=i.since<=i.until?1:-1;return o===void 0?r(i.since).year():r(i.since).year()+(o-i.offset)*c}function qi(){var i,o,c,h=this.localeData().eras();for(i=0,o=h.length;i_&&(o=_),gl.call(this,i,o,c,h,m))}function gl(i,o,c,h,m){var _=ws(i,o,c,h,m),E=yn(_.year,0,_.dayOfYear);return this.year(E.getUTCFullYear()),this.month(E.getUTCMonth()),this.date(E.getUTCDate()),this}H("Q",0,"Qo","quarter"),Ee("quarter","Q"),Ve("quarter",7),Y("Q",wi),ke("Q",function(i,o){o[Qt]=(re(i)-1)*3});function yl(i){return i==null?Math.ceil((this.month()+1)/3):this.month((i-1)*3+this.month()%3)}H("D",["DD",2],"Do","date"),Ee("date","D"),Ve("date",9),Y("D",Ae),Y("DD",Ae,ct),Y("Do",function(i,o){return i?o._dayOfMonthOrdinalParse||o._ordinalParse:o._dayOfMonthOrdinalParseLenient}),ke(["D","DD"],Kt),ke("Do",function(i,o){o[Kt]=re(i.match(Ae)[0])});var ro=Ir("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),Ee("dayOfYear","DDD"),Ve("dayOfYear",4),Y("DDD",bi),Y("DDDD",_i),ke(["DDD","DDDD"],function(i,o,c){c._dayOfYear=re(i)});function _r(i){var o=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return i==null?o:this.add(i-o,"d")}H("m",["mm",2],0,"minute"),Ee("minute","m"),Ve("minute",14),Y("m",Ae),Y("mm",Ae,ct),ke(["m","mm"],Bt);var xl=Ir("Minutes",!1);H("s",["ss",2],0,"second"),Ee("second","s"),Ve("second",15),Y("s",Ae),Y("ss",Ae,ct),ke(["s","ss"],gr);var vl=Ir("Seconds",!1);H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return this.millisecond()*10}),H(0,["SSSSS",5],0,function(){return this.millisecond()*100}),H(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),H(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),H(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),H(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ee("millisecond","ms"),Ve("millisecond",16),Y("S",bi,wi),Y("SS",bi,ct),Y("SSS",bi,_i);var Rr,no;for(Rr="SSSS";Rr.length<=9;Rr+="S")Y(Rr,gn);function wl(i,o){o[Gr]=re(("0."+i)*1e3)}for(Rr="S";Rr.length<=9;Rr+="S")ke(Rr,wl);no=Ir("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");function Kr(){return this._isUTC?"UTC":""}function _l(){return this._isUTC?"Coordinated Universal Time":""}var F=tt.prototype;F.add=kn,F.calendar=Zu,F.clone=Xu,F.diff=js,F.endOf=rl,F.format=Yi,F.from=Ju,F.fromNow=el,F.to=tl,F.toNow=Bi,F.get=ca,F.invalidAt=nl,F.isAfter=Li,F.isBefore=Lr,F.isBetween=Ri,F.isSame=zs,F.isSameOrAfter=Wi,F.isSameOrBefore=$s,F.isValid=Hi,F.lang=Vi,F.locale=jn,F.localeData=Ks,F.max=Lu,F.min=Bs,F.parsingFlags=Pn,F.set=ha,F.startOf=Js,F.subtract=Fi,F.toArray=Tn,F.toObject=Zn,F.toDate=Ba,F.toISOString=$n,F.inspect=Qr,typeof Symbol<"u"&&Symbol.for!=null&&(F[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),F.toJSON=Xn,F.toString=Qs,F.unix=Kn,F.valueOf=Ya,F.creationData=il,F.eraName=qi,F.eraNarrow=Jn,F.eraAbbr=eo,F.eraYear=g,F.year=ba,F.isLeapYear=du,F.weekYear=cl,F.isoWeekYear=hl,F.quarter=F.quarters=yl,F.month=wa,F.daysInMonth=xs,F.week=F.weeks=mu,F.isoWeek=F.isoWeeks=bs,F.weeksInYear=wr,F.weeksInWeekYear=ml,F.isoWeeksInYear=pl,F.isoWeeksInISOWeekYear=dl,F.date=ro,F.day=F.days=ku,F.weekday=Cu,F.isoWeekday=Tu,F.dayOfYear=_r,F.hour=F.hours=et,F.minute=F.minutes=xl,F.second=F.seconds=vl,F.millisecond=F.milliseconds=no,F.utcOffset=qu,F.utc=zu,F.local=$u,F.parseZone=ju,F.hasAlignedHourOffset=Nr,F.isDST=b,F.isLocal=P,F.isUtcOffset=B,F.isUtc=X,F.isUTC=X,F.zoneAbbr=Kr,F.zoneName=_l,F.dates=Ge("dates accessor is deprecated. Use date instead.",ro),F.months=Ge("months accessor is deprecated. Use month instead",wa),F.years=Ge("years accessor is deprecated. Use year instead",ba),F.zone=Ge("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Gu),F.isDSTShifted=Ge("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",D);function Ht(i){return Ie(i*1e3)}function Sl(){return Ie.apply(null,arguments).parseZone()}function io(i){return i}var ge=Rt.prototype;ge.calendar=Wt,ge.longDateFormat=yi,ge.invalidDate=hs,ge.ordinal=Xo,ge.preparse=io,ge.postformat=io,ge.relativeTime=ps,ge.pastFuture=Jo,ge.set=at,ge.eras=al,ge.erasParse=sl,ge.erasConvertYear=ol,ge.erasAbbrRegex=Gi,ge.erasNameRegex=En,ge.erasNarrowRegex=Dt,ge.months=lu,ge.monthsShort=fu,ge.monthsParse=hu,ge.monthsRegex=pu,ge.monthsShortRegex=_a,ge.week=ka,ge.firstDayOfYear=Ss,ge.firstDayOfWeek=_s,ge.weekdays=wu,ge.weekdaysMin=Ca,ge.weekdaysShort=_u,ge.weekdaysParse=bu,ge.weekdaysRegex=Oe,ge.weekdaysShortRegex=De,ge.weekdaysMinRegex=Pu,ge.isPM=Is,ge.meridiem=Ea;function $i(i,o,c,h){var m=Ue(),_=Z().set(h,o);return m[c](_,i)}function ao(i,o,c){if(T(i)&&(o=i,i=void 0),i=i||"",o!=null)return $i(i,o,c,"month");var h,m=[];for(h=0;h<12;h++)m[h]=$i(i,h,c,"month");return m}function ji(i,o,c,h){typeof i=="boolean"?(T(o)&&(c=o,o=void 0),o=o||""):(o=i,c=o,i=!1,T(o)&&(c=o,o=void 0),o=o||"");var m=Ue(),_=i?m._week.dow:0,E,G=[];if(c!=null)return $i(o,(c+_)%7,h,"day");for(E=0;E<7;E++)G[E]=$i(o,(E+_)%7,h,"day");return G}function so(i,o){return ao(i,o,"months")}function bl(i,o){return ao(i,o,"monthsShort")}function kl(i,o,c){return ji(i,o,c,"weekdays")}function Va(i,o,c){return ji(i,o,c,"weekdaysShort")}function ei(i,o,c){return ji(i,o,c,"weekdaysMin")}yr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(i){var o=i%10,c=re(i%100/10)===1?"th":o===1?"st":o===2?"nd":o===3?"rd":"th";return i+c}}),r.lang=Ge("moment.lang is deprecated. Use moment.locale instead.",yr),r.langData=Ge("moment.langData is deprecated. Use moment.localeData instead.",Ue);var It=Math.abs;function Cl(){var i=this._data;return this._milliseconds=It(this._milliseconds),this._days=It(this._days),this._months=It(this._months),i.milliseconds=It(i.milliseconds),i.seconds=It(i.seconds),i.minutes=It(i.minutes),i.hours=It(i.hours),i.months=It(i.months),i.years=It(i.years),this}function Ua(i,o,c,h){var m=oe(o,c);return i._milliseconds+=h*m._milliseconds,i._days+=h*m._days,i._months+=h*m._months,i._bubble()}function Tl(i,o){return Ua(this,i,o,1)}function Sr(i,o){return Ua(this,i,o,-1)}function Qi(i){return i<0?Math.floor(i):Math.ceil(i)}function Zr(){var i=this._milliseconds,o=this._days,c=this._months,h=this._data,m,_,E,G,ee;return i>=0&&o>=0&&c>=0||i<=0&&o<=0&&c<=0||(i+=Qi(Ha(c)+o)*864e5,o=0,c=0),h.milliseconds=i%1e3,m=rt(i/1e3),h.seconds=m%60,_=rt(m/60),h.minutes=_%60,E=rt(_/60),h.hours=E%24,o+=rt(E/24),ee=rt(_t(o)),c+=ee,o-=Qi(Ha(ee)),G=rt(c/12),c%=12,h.days=o,h.months=c,h.years=G,this}function _t(i){return i*4800/146097}function Ha(i){return i*146097/4800}function oo(i){if(!this.isValid())return NaN;var o,c,h=this._milliseconds;if(i=st(i),i==="month"||i==="quarter"||i==="year")switch(o=this._days+h/864e5,c=this._months+_t(o),i){case"month":return c;case"quarter":return c/3;case"year":return c/12}else switch(o=this._days+Math.round(Ha(this._months)),i){case"week":return o/7+h/6048e5;case"day":return o+h/864e5;case"hour":return o*24+h/36e5;case"minute":return o*1440+h/6e4;case"second":return o*86400+h/1e3;case"millisecond":return Math.floor(o*864e5)+h;default:throw new Error("Unknown unit "+i)}}function uo(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+re(this._months/12)*31536e6:NaN}function St(i){return function(){return this.as(i)}}var Wr=St("ms"),lo=St("s"),Pl=St("m"),Ki=St("h"),El=St("d"),fo=St("w"),nt=St("M"),qa=St("Q"),co=St("y");function Jt(){return oe(this)}function Ga(i){return i=st(i),this.isValid()?this[i+"s"]():NaN}function er(i){return function(){return this.isValid()?this._data[i]:NaN}}var Xr=er("milliseconds"),ho=er("seconds"),pt=er("minutes"),za=er("hours"),Dl=er("days"),Il=er("months"),Ml=er("years");function $a(){return rt(this.days()/7)}var br=Math.round,tr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function po(i,o,c,h,m){return m.relativeTime(o||1,!!c,i,h)}function Al(i,o,c,h){var m=oe(i).abs(),_=br(m.as("s")),E=br(m.as("m")),G=br(m.as("h")),ee=br(m.as("d")),xe=br(m.as("M")),dt=br(m.as("w")),rr=br(m.as("y")),kr=_<=c.ss&&["s",_]||_0,kr[4]=h,po.apply(null,kr)}function Ol(i){return i===void 0?br:typeof i=="function"?(br=i,!0):!1}function ti(i,o){return tr[i]===void 0?!1:o===void 0?tr[i]:(tr[i]=o,i==="s"&&(tr.ss=o-1),!0)}function Fl(i,o){if(!this.isValid())return this.localeData().invalidDate();var c=!1,h=tr,m,_;return typeof i=="object"&&(o=i,i=!1),typeof i=="boolean"&&(c=i),typeof o=="object"&&(h=Object.assign({},tr,o),o.s!=null&&o.ss==null&&(h.ss=o.s-1)),m=this.localeData(),_=Al(this,!c,h,m),c&&(_=m.pastFuture(+this,_)),m.postformat(_)}var ja=Math.abs;function Yr(i){return(i>0)-(i<0)||+i}function ri(){if(!this.isValid())return this.localeData().invalidDate();var i=ja(this._milliseconds)/1e3,o=ja(this._days),c=ja(this._months),h,m,_,E,G=this.asSeconds(),ee,xe,dt,rr;return G?(h=rt(i/60),m=rt(h/60),i%=60,h%=60,_=rt(c/12),c%=12,E=i?i.toFixed(3).replace(/\\.?0+$/,""):"",ee=G<0?"-":"",xe=Yr(this._months)!==Yr(G)?"-":"",dt=Yr(this._days)!==Yr(G)?"-":"",rr=Yr(this._milliseconds)!==Yr(G)?"-":"",ee+"P"+(_?xe+_+"Y":"")+(c?xe+c+"M":"")+(o?dt+o+"D":"")+(m||h||i?"T":"")+(m?rr+m+"H":"")+(h?rr+h+"M":"")+(i?rr+E+"S":"")):"P0D"}var fe=qn.prototype;fe.isValid=Vu,fe.abs=Cl,fe.add=Tl,fe.subtract=Sr,fe.as=oo,fe.asMilliseconds=Wr,fe.asSeconds=lo,fe.asMinutes=Pl,fe.asHours=Ki,fe.asDays=El,fe.asWeeks=fo,fe.asMonths=nt,fe.asQuarters=qa,fe.asYears=co,fe.valueOf=uo,fe._bubble=Zr,fe.clone=Jt,fe.get=Ga,fe.milliseconds=Xr,fe.seconds=ho,fe.minutes=pt,fe.hours=za,fe.days=Dl,fe.weeks=$a,fe.months=Il,fe.years=Ml,fe.humanize=Fl,fe.toISOString=ri,fe.toString=ri,fe.toJSON=ri,fe.locale=jn,fe.localeData=Ks,fe.toIsoString=Ge("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ri),fe.lang=Vi,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Y("x",Bn),Y("X",ru),ke("X",function(i,o,c){c._d=new Date(parseFloat(i)*1e3)}),ke("x",function(i,o,c){c._d=new Date(re(i))});return r.version="2.29.4",a(Ie),r.fn=F,r.min=Ru,r.max=Wu,r.now=Yu,r.utc=Z,r.unix=Ht,r.months=so,r.isDate=A,r.locale=yr,r.invalid=K,r.duration=oe,r.isMoment=Te,r.weekdays=kl,r.parseZone=Sl,r.localeData=Ue,r.isDuration=Ut,r.monthsShort=bl,r.weekdaysMin=ei,r.defineLocale=ht,r.updateLocale=Iu,r.locales=Mu,r.weekdaysShort=Va,r.normalizeUnits=st,r.relativeTimeRounding=Ol,r.relativeTimeThreshold=ti,r.calendarFormat=Ku,r.prototype=F,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r})});var Yo=yf(xf());var sn=e=>[...new Set(e)];var Th=(e,r)=>e.sort(function(a,u){let l=r.indexOf(a),p=r.indexOf(u);return l>p?l!=-1&&p==-1?-1:1:p!=-1&&l==-1?1:-1});var on="File";var Oo=e=>e.lastIndexOf("/")!=-1?e.lastIndexOf(".")!=-1?Ph(e.substring(e.lastIndexOf("/")+1,e.lastIndexOf("."))):e.substring(e.lastIndexOf("/")+1):e.lastIndexOf(".")!=-1?e.substring(0,e.lastIndexOf(".")):e;function vf(e){return Array.isArray(e)?e:typeof e=="string"?[e]:[]}var Eh=(e,r)=>r.indexOf(e)>0?r.indexOf(e):r.length;var Fo=e=>"spaces://"+e;var Ph=e=>e.charAt(0)=="/"?e.substring(1):e;function si(e){return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},si(e)}function Nt(e){if(e===null||e===!0||e===!1)return NaN;var r=Number(e);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}function be(e,r){if(r.length1?"s":"")+" required, but only "+r.length+" present")}function Ze(e){be(1,arguments);var r=Object.prototype.toString.call(e);return e instanceof Date||si(e)==="object"&&r==="[object Date]"?new Date(e.getTime()):typeof e=="number"||r==="[object Number]"?new Date(e):((typeof e=="string"||r==="[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))}function wf(e,r){be(2,arguments);var a=Ze(e).getTime(),u=Nt(r);return new Date(a+u)}var ux={};function On(){return ux}function _f(e){var r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),e.getTime()-r.getTime()}function Sf(e){return be(1,arguments),e instanceof Date||si(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function bf(e){if(be(1,arguments),!Sf(e)&&typeof e!="number")return!1;var r=Ze(e);return!isNaN(Number(r))}function kf(e,r){be(2,arguments);var a=Nt(r);return wf(e,-a)}var lx=864e5;function Cf(e){be(1,arguments);var r=Ze(e),a=r.getTime();r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0);var u=r.getTime(),l=a-u;return Math.floor(l/lx)+1}function Fn(e){be(1,arguments);var r=1,a=Ze(e),u=a.getUTCDay(),l=(u=l.getTime()?a+1:r.getTime()>=v.getTime()?a:a-1}function Tf(e){be(1,arguments);var r=ts(e),a=new Date(0);a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0);var u=Fn(a);return u}var fx=6048e5;function Pf(e){be(1,arguments);var r=Ze(e),a=Fn(r).getTime()-Tf(r).getTime();return Math.round(a/fx)+1}function Nn(e,r){var a,u,l,p,v,C,T,A;be(1,arguments);var R=On(),V=Nt((a=(u=(l=(p=r?.weekStartsOn)!==null&&p!==void 0?p:r==null||(v=r.locale)===null||v===void 0||(C=v.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&l!==void 0?l:R.weekStartsOn)!==null&&u!==void 0?u:(T=R.locale)===null||T===void 0||(A=T.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&a!==void 0?a:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var Z=Ze(e),ne=Z.getUTCDay(),N=(ne=1&&ne<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=new Date(0);N.setUTCFullYear(V+1,0,ne),N.setUTCHours(0,0,0,0);var we=Nn(N,r),Ne=new Date(0);Ne.setUTCFullYear(V,0,ne),Ne.setUTCHours(0,0,0,0);var K=Nn(Ne,r);return R.getTime()>=we.getTime()?V+1:R.getTime()>=K.getTime()?V:V-1}function Ef(e,r){var a,u,l,p,v,C,T,A;be(1,arguments);var R=On(),V=Nt((a=(u=(l=(p=r?.firstWeekContainsDate)!==null&&p!==void 0?p:r==null||(v=r.locale)===null||v===void 0||(C=v.options)===null||C===void 0?void 0:C.firstWeekContainsDate)!==null&&l!==void 0?l:R.firstWeekContainsDate)!==null&&u!==void 0?u:(T=R.locale)===null||T===void 0||(A=T.options)===null||A===void 0?void 0:A.firstWeekContainsDate)!==null&&a!==void 0?a:1),Z=rs(e,r),ne=new Date(0);ne.setUTCFullYear(Z,0,V),ne.setUTCHours(0,0,0,0);var N=Nn(ne,r);return N}var cx=6048e5;function Df(e,r){be(1,arguments);var a=Ze(e),u=Nn(a,r).getTime()-Ef(a,r).getTime();return Math.round(u/cx)+1}function _e(e,r){for(var a=e<0?"-":"",u=Math.abs(e).toString();u.length0?u:1-u;return _e(a==="yy"?l%100:l,a.length)},M:function(r,a){var u=r.getUTCMonth();return a==="M"?String(u+1):_e(u+1,2)},d:function(r,a){return _e(r.getUTCDate(),a.length)},a:function(r,a){var u=r.getUTCHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(r,a){return _e(r.getUTCHours()%12||12,a.length)},H:function(r,a){return _e(r.getUTCHours(),a.length)},m:function(r,a){return _e(r.getUTCMinutes(),a.length)},s:function(r,a){return _e(r.getUTCSeconds(),a.length)},S:function(r,a){var u=a.length,l=r.getUTCMilliseconds(),p=Math.floor(l*Math.pow(10,u-3));return _e(p,a.length)}},un=hx;var na={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},px={G:function(r,a,u){var l=r.getUTCFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return u.era(l,{width:"abbreviated"});case"GGGGG":return u.era(l,{width:"narrow"});case"GGGG":default:return u.era(l,{width:"wide"})}},y:function(r,a,u){if(a==="yo"){var l=r.getUTCFullYear(),p=l>0?l:1-l;return u.ordinalNumber(p,{unit:"year"})}return un.y(r,a)},Y:function(r,a,u,l){var p=rs(r,l),v=p>0?p:1-p;if(a==="YY"){var C=v%100;return _e(C,2)}return a==="Yo"?u.ordinalNumber(v,{unit:"year"}):_e(v,a.length)},R:function(r,a){var u=ts(r);return _e(u,a.length)},u:function(r,a){var u=r.getUTCFullYear();return _e(u,a.length)},Q:function(r,a,u){var l=Math.ceil((r.getUTCMonth()+1)/3);switch(a){case"Q":return String(l);case"QQ":return _e(l,2);case"Qo":return u.ordinalNumber(l,{unit:"quarter"});case"QQQ":return u.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return u.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return u.quarter(l,{width:"wide",context:"formatting"})}},q:function(r,a,u){var l=Math.ceil((r.getUTCMonth()+1)/3);switch(a){case"q":return String(l);case"qq":return _e(l,2);case"qo":return u.ordinalNumber(l,{unit:"quarter"});case"qqq":return u.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return u.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return u.quarter(l,{width:"wide",context:"standalone"})}},M:function(r,a,u){var l=r.getUTCMonth();switch(a){case"M":case"MM":return un.M(r,a);case"Mo":return u.ordinalNumber(l+1,{unit:"month"});case"MMM":return u.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return u.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return u.month(l,{width:"wide",context:"formatting"})}},L:function(r,a,u){var l=r.getUTCMonth();switch(a){case"L":return String(l+1);case"LL":return _e(l+1,2);case"Lo":return u.ordinalNumber(l+1,{unit:"month"});case"LLL":return u.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return u.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return u.month(l,{width:"wide",context:"standalone"})}},w:function(r,a,u,l){var p=Df(r,l);return a==="wo"?u.ordinalNumber(p,{unit:"week"}):_e(p,a.length)},I:function(r,a,u){var l=Pf(r);return a==="Io"?u.ordinalNumber(l,{unit:"week"}):_e(l,a.length)},d:function(r,a,u){return a==="do"?u.ordinalNumber(r.getUTCDate(),{unit:"date"}):un.d(r,a)},D:function(r,a,u){var l=Cf(r);return a==="Do"?u.ordinalNumber(l,{unit:"dayOfYear"}):_e(l,a.length)},E:function(r,a,u){var l=r.getUTCDay();switch(a){case"E":case"EE":case"EEE":return u.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return u.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return u.day(l,{width:"short",context:"formatting"});case"EEEE":default:return u.day(l,{width:"wide",context:"formatting"})}},e:function(r,a,u,l){var p=r.getUTCDay(),v=(p-l.weekStartsOn+8)%7||7;switch(a){case"e":return String(v);case"ee":return _e(v,2);case"eo":return u.ordinalNumber(v,{unit:"day"});case"eee":return u.day(p,{width:"abbreviated",context:"formatting"});case"eeeee":return u.day(p,{width:"narrow",context:"formatting"});case"eeeeee":return u.day(p,{width:"short",context:"formatting"});case"eeee":default:return u.day(p,{width:"wide",context:"formatting"})}},c:function(r,a,u,l){var p=r.getUTCDay(),v=(p-l.weekStartsOn+8)%7||7;switch(a){case"c":return String(v);case"cc":return _e(v,a.length);case"co":return u.ordinalNumber(v,{unit:"day"});case"ccc":return u.day(p,{width:"abbreviated",context:"standalone"});case"ccccc":return u.day(p,{width:"narrow",context:"standalone"});case"cccccc":return u.day(p,{width:"short",context:"standalone"});case"cccc":default:return u.day(p,{width:"wide",context:"standalone"})}},i:function(r,a,u){var l=r.getUTCDay(),p=l===0?7:l;switch(a){case"i":return String(p);case"ii":return _e(p,a.length);case"io":return u.ordinalNumber(p,{unit:"day"});case"iii":return u.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return u.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return u.day(l,{width:"short",context:"formatting"});case"iiii":default:return u.day(l,{width:"wide",context:"formatting"})}},a:function(r,a,u){var l=r.getUTCHours(),p=l/12>=1?"pm":"am";switch(a){case"a":case"aa":return u.dayPeriod(p,{width:"abbreviated",context:"formatting"});case"aaa":return u.dayPeriod(p,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return u.dayPeriod(p,{width:"narrow",context:"formatting"});case"aaaa":default:return u.dayPeriod(p,{width:"wide",context:"formatting"})}},b:function(r,a,u){var l=r.getUTCHours(),p;switch(l===12?p=na.noon:l===0?p=na.midnight:p=l/12>=1?"pm":"am",a){case"b":case"bb":return u.dayPeriod(p,{width:"abbreviated",context:"formatting"});case"bbb":return u.dayPeriod(p,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return u.dayPeriod(p,{width:"narrow",context:"formatting"});case"bbbb":default:return u.dayPeriod(p,{width:"wide",context:"formatting"})}},B:function(r,a,u){var l=r.getUTCHours(),p;switch(l>=17?p=na.evening:l>=12?p=na.afternoon:l>=4?p=na.morning:p=na.night,a){case"B":case"BB":case"BBB":return u.dayPeriod(p,{width:"abbreviated",context:"formatting"});case"BBBBB":return u.dayPeriod(p,{width:"narrow",context:"formatting"});case"BBBB":default:return u.dayPeriod(p,{width:"wide",context:"formatting"})}},h:function(r,a,u){if(a==="ho"){var l=r.getUTCHours()%12;return l===0&&(l=12),u.ordinalNumber(l,{unit:"hour"})}return un.h(r,a)},H:function(r,a,u){return a==="Ho"?u.ordinalNumber(r.getUTCHours(),{unit:"hour"}):un.H(r,a)},K:function(r,a,u){var l=r.getUTCHours()%12;return a==="Ko"?u.ordinalNumber(l,{unit:"hour"}):_e(l,a.length)},k:function(r,a,u){var l=r.getUTCHours();return l===0&&(l=24),a==="ko"?u.ordinalNumber(l,{unit:"hour"}):_e(l,a.length)},m:function(r,a,u){return a==="mo"?u.ordinalNumber(r.getUTCMinutes(),{unit:"minute"}):un.m(r,a)},s:function(r,a,u){return a==="so"?u.ordinalNumber(r.getUTCSeconds(),{unit:"second"}):un.s(r,a)},S:function(r,a){return un.S(r,a)},X:function(r,a,u,l){var p=l._originalDate||r,v=p.getTimezoneOffset();if(v===0)return"Z";switch(a){case"X":return Mh(v);case"XXXX":case"XX":return oi(v);case"XXXXX":case"XXX":default:return oi(v,":")}},x:function(r,a,u,l){var p=l._originalDate||r,v=p.getTimezoneOffset();switch(a){case"x":return Mh(v);case"xxxx":case"xx":return oi(v);case"xxxxx":case"xxx":default:return oi(v,":")}},O:function(r,a,u,l){var p=l._originalDate||r,v=p.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+Ih(v,":");case"OOOO":default:return"GMT"+oi(v,":")}},z:function(r,a,u,l){var p=l._originalDate||r,v=p.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+Ih(v,":");case"zzzz":default:return"GMT"+oi(v,":")}},t:function(r,a,u,l){var p=l._originalDate||r,v=Math.floor(p.getTime()/1e3);return _e(v,a.length)},T:function(r,a,u,l){var p=l._originalDate||r,v=p.getTime();return _e(v,a.length)}};function Ih(e,r){var a=e>0?"-":"+",u=Math.abs(e),l=Math.floor(u/60),p=u%60;if(p===0)return a+String(l);var v=r||"";return a+String(l)+v+_e(p,2)}function Mh(e,r){if(e%60===0){var a=e>0?"-":"+";return a+_e(Math.abs(e)/60,2)}return oi(e,r)}function oi(e,r){var a=r||"",u=e>0?"-":"+",l=Math.abs(e),p=_e(Math.floor(l/60),2),v=_e(l%60,2);return u+p+a+v}var Ah=px;var Oh=function(r,a){switch(r){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},Fh=function(r,a){switch(r){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},dx=function(r,a){var u=r.match(/(P+)(p+)?/)||[],l=u[1],p=u[2];if(!p)return Oh(r,a);var v;switch(l){case"P":v=a.dateTime({width:"short"});break;case"PP":v=a.dateTime({width:"medium"});break;case"PPP":v=a.dateTime({width:"long"});break;case"PPPP":default:v=a.dateTime({width:"full"});break}return v.replace("{{date}}",Oh(l,a)).replace("{{time}}",Fh(p,a))},mx={p:Fh,P:dx},Nh=mx;var gx=["D","DD"],yx=["YY","YYYY"];function Lh(e){return gx.indexOf(e)!==-1}function Rh(e){return yx.indexOf(e)!==-1}function If(e,r,a){if(e==="YYYY")throw new RangeError("Use \`yyyy\` instead of \`YYYY\` (in \`".concat(r,"\`) for formatting years to the input \`").concat(a,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use \`yy\` instead of \`YY\` (in \`".concat(r,"\`) for formatting years to the input \`").concat(a,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use \`d\` instead of \`D\` (in \`".concat(r,"\`) for formatting days of the month to the input \`").concat(a,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use \`dd\` instead of \`DD\` (in \`".concat(r,"\`) for formatting days of the month to the input \`").concat(a,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var xx={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"}},vx=function(r,a,u){var l,p=xx[r];return typeof p=="string"?l=p:a===1?l=p.one:l=p.other.replace("{{count}}",a.toString()),u!=null&&u.addSuffix?u.comparison&&u.comparison>0?"in "+l:l+" ago":l},Wh=vx;function ns(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=r.width?String(r.width):e.defaultWidth,u=e.formats[a]||e.formats[e.defaultWidth];return u}}var wx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_x={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Sx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},bx={date:ns({formats:wx,defaultWidth:"full"}),time:ns({formats:_x,defaultWidth:"full"}),dateTime:ns({formats:Sx,defaultWidth:"full"})},Yh=bx;var kx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Cx=function(r,a,u,l){return kx[r]},Bh=Cx;function ui(e){return function(r,a){var u=a!=null&&a.context?String(a.context):"standalone",l;if(u==="formatting"&&e.formattingValues){var p=e.defaultFormattingWidth||e.defaultWidth,v=a!=null&&a.width?String(a.width):p;l=e.formattingValues[v]||e.formattingValues[p]}else{var C=e.defaultWidth,T=a!=null&&a.width?String(a.width):e.defaultWidth;l=e.values[T]||e.values[C]}var A=e.argumentCallback?e.argumentCallback(r):r;return l[A]}}var Tx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Px={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ex={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"]},Dx={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"]},Ix={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"}},Mx={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"}},Ax=function(r,a){var u=Number(r),l=u%100;if(l>20||l<10)switch(l%10){case 1:return u+"st";case 2:return u+"nd";case 3:return u+"rd"}return u+"th"},Ox={ordinalNumber:Ax,era:ui({values:Tx,defaultWidth:"wide"}),quarter:ui({values:Px,defaultWidth:"wide",argumentCallback:function(r){return r-1}}),month:ui({values:Ex,defaultWidth:"wide"}),day:ui({values:Dx,defaultWidth:"wide"}),dayPeriod:ui({values:Ix,defaultWidth:"wide",formattingValues:Mx,defaultFormattingWidth:"wide"})},Vh=Ox;function li(e){return function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=a.width,l=u&&e.matchPatterns[u]||e.matchPatterns[e.defaultMatchWidth],p=r.match(l);if(!p)return null;var v=p[0],C=u&&e.parsePatterns[u]||e.parsePatterns[e.defaultParseWidth],T=Array.isArray(C)?Nx(C,function(V){return V.test(v)}):Fx(C,function(V){return V.test(v)}),A;A=e.valueCallback?e.valueCallback(T):T,A=a.valueCallback?a.valueCallback(A):A;var R=r.slice(v.length);return{value:A,rest:R}}}function Fx(e,r){for(var a in e)if(e.hasOwnProperty(a)&&r(e[a]))return a}function Nx(e,r){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},u=r.match(e.matchPattern);if(!u)return null;var l=u[0],p=r.match(e.parsePattern);if(!p)return null;var v=e.valueCallback?e.valueCallback(p[0]):p[0];v=a.valueCallback?a.valueCallback(v):v;var C=r.slice(l.length);return{value:v,rest:C}}}var Lx=/^(\\d+)(th|st|nd|rd)?/i,Rx=/\\d+/i,Wx={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},Yx={any:[/^b/i,/^(a|c)/i]},Bx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Vx={any:[/1/i,/2/i,/3/i,/4/i]},Ux={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},Hx={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]},qx={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},Gx={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]},zx={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},$x={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}},jx={ordinalNumber:Mf({matchPattern:Lx,parsePattern:Rx,valueCallback:function(r){return parseInt(r,10)}}),era:li({matchPatterns:Wx,defaultMatchWidth:"wide",parsePatterns:Yx,defaultParseWidth:"any"}),quarter:li({matchPatterns:Bx,defaultMatchWidth:"wide",parsePatterns:Vx,defaultParseWidth:"any",valueCallback:function(r){return r+1}}),month:li({matchPatterns:Ux,defaultMatchWidth:"wide",parsePatterns:Hx,defaultParseWidth:"any"}),day:li({matchPatterns:qx,defaultMatchWidth:"wide",parsePatterns:Gx,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:zx,defaultMatchWidth:"any",parsePatterns:$x,defaultParseWidth:"any"})},Uh=jx;var Qx={code:"en-US",formatDistance:Wh,formatLong:Yh,formatRelative:Bh,localize:Vh,match:Uh,options:{weekStartsOn:0,firstWeekContainsDate:1}},Hh=Qx;var qh=Hh;var Kx=/[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g,Zx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xx=/^'([^]*?)'?$/,Jx=/''/g,ev=/[a-zA-Z]/;function fi(e,r,a){var u,l,p,v,C,T,A,R,V,Z,ne,N,we,Ne,K,Xe,Re,it;be(2,arguments);var tt=String(r),Te=On(),Je=(u=(l=a?.locale)!==null&&l!==void 0?l:Te.locale)!==null&&u!==void 0?u:qh,Ge=Nt((p=(v=(C=(T=a?.firstWeekContainsDate)!==null&&T!==void 0?T:a==null||(A=a.locale)===null||A===void 0||(R=A.options)===null||R===void 0?void 0:R.firstWeekContainsDate)!==null&&C!==void 0?C:Te.firstWeekContainsDate)!==null&&v!==void 0?v:(V=Te.locale)===null||V===void 0||(Z=V.options)===null||Z===void 0?void 0:Z.firstWeekContainsDate)!==null&&p!==void 0?p:1);if(!(Ge>=1&&Ge<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var pr=Nt((ne=(N=(we=(Ne=a?.weekStartsOn)!==null&&Ne!==void 0?Ne:a==null||(K=a.locale)===null||K===void 0||(Xe=K.options)===null||Xe===void 0?void 0:Xe.weekStartsOn)!==null&&we!==void 0?we:Te.weekStartsOn)!==null&&N!==void 0?N:(Re=Te.locale)===null||Re===void 0||(it=Re.options)===null||it===void 0?void 0:it.weekStartsOn)!==null&&ne!==void 0?ne:0);if(!(pr>=0&&pr<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Je.localize)throw new RangeError("locale must contain localize property");if(!Je.formatLong)throw new RangeError("locale must contain formatLong property");var jt=Ze(e);if(!bf(jt))throw new RangeError("Invalid time value");var me=_f(jt),at=kf(jt,me),mt={firstWeekContainsDate:Ge,weekStartsOn:pr,locale:Je,_originalDate:jt},Rt=tt.match(Zx).map(function(Me){var ze=Me[0];if(ze==="p"||ze==="P"){var Wt=Nh[ze];return Wt(Me,Je.formatLong)}return Me}).join("").match(Kx).map(function(Me){if(Me==="''")return"'";var ze=Me[0];if(ze==="'")return tv(Me);var Wt=Ah[ze];if(Wt)return!(a!=null&&a.useAdditionalWeekYearTokens)&&Rh(Me)&&If(Me,r,String(e)),!(a!=null&&a.useAdditionalDayOfYearTokens)&&Lh(Me)&&If(Me,r,String(e)),Wt(at,Me,Je.localize,mt);if(ze.match(ev))throw new RangeError("Format string contains an unescaped latin alphabet character \`"+ze+"\`");return Me}).join("");return Rt}function tv(e){var r=e.match(Xx);return r?r[1].replace(Jx,"'"):e}var Af=(e,r)=>{if(e instanceof Date)return"date";if(typeof e=="string"){if(/\\/\\/(\\S+?(?:jpe?g|png|gif|svg))/gi.test(e)||e.includes("unsplash"))return"image";if(/^\\d{4}-\\d{2}-\\d{2}$/.test(e))return"date";if(r=="tag"||r=="tags")return"tag";if(/\\[\\[.*?\\]\\]/.test(e))return"link"}else{if(typeof e=="number")return"number";if(typeof e=="boolean")return"boolean";if(e)if(Array.isArray(e)||typeof e=="string"&&e.indexOf(",")>-1){let a=Array.isArray(e)?e:[];if(typeof e=="string"&&e.indexOf(",")>-1&&(a=sr(e)),r=="tag"||r=="tags")return"tag-multi";if(a.length==1&&Array.isArray(a[0])&&a[0].length==1&&typeof a[0][0]=="string")return"link";let u=sn(a.map(l=>Af(l,r)));return u.length==1&&u[0]=="link"?"link-multi":u.some(l=>l=="object")?"object-multi":"option-multi"}else{if(e.isLuxonDateTime)return"date";if(e.isLuxonDuration)return"duration";if(e.type=="file")return"link";if(typeof e=="object"&&!Array.isArray(e)&&e!==null)return"object"}else return"unknown"}return"text"};var Gh=e=>e.join(", "),ci=e=>e.join(",");var sr=e=>e?.match(/(\\\\.|[^,])+/g)??[],Of=(e,r)=>{switch(Af(r,e)){case"object":return JSON.stringify(r);case"number":return r.toString();case"boolean":return r?"true":"false";case"date":{if(r instanceof Date){let u=fi(new Date(r),"yyyy-MM-dd");if(typeof u=="string")return u}return typeof r!="string"?"":r}break;case"duration":return Gh(Object.keys(r.values).reduce((u,l)=>[...u,...r.values[l]>0?[r.values[l]+" "+l]:[]],[]));case"option-multi":case"link-multi":return typeof r=="string"?is(r):ci(r.map(u=>u?typeof u=="string"?is(u):u.path?u.path:Array.isArray(r)&&u.length==1&&Array.isArray(u[0])&&u[0].length==1&&typeof u[0][0]=="string"?u[0][0]:JSON.stringify(u):""));case"link":return Array.isArray(r)&&r.length==1&&Array.isArray(r[0])&&r[0].length==1&&typeof r[0][0]=="string"?r[0][0]:typeof r=="string"?is(r):r.path;case"text":case"tag":case"image":return r}return""};var is=e=>{if(!e)return"";let r=/\\[\\[(.*?)\\]\\]/g.exec(e),a=r?.length>1?r[1].substring(0,Eh("|",r[1])):e;return a||e};var No=(e,r)=>e==r,Ff=(e,r)=>(e??"").length==0,Nf=(e,r)=>(e??"").toLowerCase().includes((r??"").toLowerCase()),Lf=(e,r)=>parseFloat(e)>parseFloat(r),Rf=(e,r)=>parseInt(e)>parseInt(r),zh=(e,r)=>{let a=isNaN(Date.parse(e))?new Date(parseInt(e)):new Date(e),u=isNaN(Date.parse(r))?new Date(parseInt(r)):new Date(r);return a.valueOf()>u.valueOf()},$h=(e,r)=>{let a=isNaN(Date.parse(e))?new Date(parseInt(e)):new Date(e),u=isNaN(Date.parse(r))?new Date(parseInt(r)):new Date(r);return a.valueOf(){let a=e?sr(e):[];return(r?sr(r):[]).some(l=>a.some(p=>p==l))},jh=(e,r)=>{if(!e)return!1;let a=new Date(\`\${e.toString().replace(".",":")}\`),u=new Date(\`\${r}\`);return a.getMonth()===u.getMonth()&&a.getDate()===u.getDate()},Qh=e=>{if(!e)return!1;let r=new Date(\`\${e.toString()}T00:00\`),a=new Date;return r.getMonth()===a.getMonth()&&r.getDate()===a.getDate()};var as={isNotEmpty:{type:["text","file","link","link-multi","fileprop","image"],fn:(e,r)=>!Ff(e,""),valueType:"none"},isEmpty:{type:["text","file","link","link-multi","fileprop","image"],fn:(e,r)=>Ff(e,""),valueType:"none"},include:{fn:(e,r)=>Nf(e,r),type:["text","file","link","link-multi","fileprop","image"],valueType:"text"},notInclude:{type:["text","file","link","link-multi","fileprop","image"],fn:(e,r)=>!Nf(e,r),valueType:"text"},is:{type:["text","file","link","context","fileprop"],fn:(e,r)=>No(e,r),valueType:"text"},isNot:{type:["text","file","link","context","fileprop"],fn:(e,r)=>!No(e,r),valueType:"text"},equal:{type:["number"],fn:(e,r)=>No(e,r),valueType:"number"},isGreatThan:{type:["number"],fn:(e,r)=>Lf(e,r),valueType:"number"},isLessThan:{type:["number"],fn:(e,r)=>Rf(e,r),valueType:"number"},isLessThanOrEqual:{type:["number"],fn:(e,r)=>!Lf(e,r),valueType:"number"},isGreatThanOrEqual:{type:["number"],fn:(e,r)=>!Rf(e,r),valueType:"number"},dateBefore:{type:["date","fileprop"],fn:(e,r)=>$h(e,r),valueType:"date"},dateAfter:{type:["date","fileprop"],fn:(e,r)=>zh(e,r),valueType:"date"},isSameDate:{type:["date"],fn:(e,r)=>jh(e,r),valueType:"date"},isSameDateAsToday:{type:["date"],fn:(e,r)=>Qh(e,r),valueType:"none"},isAnyInList:{type:["option","context","option-multi","context-multi","tags-multi","tags"],fn:(e,r)=>Wf(e,r),valueType:"list"},isNoneInList:{type:["option","context","option-multi","context-multi","tags-multi","tags"],fn:(e,r)=>!Wf(e,r),valueType:"list"},isTrue:{type:["boolean"],fn:(e,r)=>e=="true",valueType:"none"},isFalse:{type:["boolean"],fn:(e,r)=>e!="true",valueType:"none"}};var rv=(e,r)=>r.reduce((u,l)=>{let[p,v]=u,C=l.type=="path"?Zh(v,l):l.type=="frontmatter"?Kh(v,l):Xh(v,l),T=v.filter(A=>!C.includes(A));return[[...p,...C],T]},[[],e])[0],nv=(e,r)=>r.reduce((a,u)=>u.type=="path"?Zh(a,u):u.type=="frontmatter"?Kh(a,u):Xh(a,u),e),Kh=(e,r)=>e.filter(a=>{let u=a.metadata?.property;if(!u||!u[r.field])return!1;let l=as[r.fn],p=!0;return l&&(p=l.fn(Of(r.field,u[r.field]),r.value)),p}),Zh=(e,r)=>e.filter(a=>{let u="";r.field=="outlinks"?u=ci(a.outlinks??[]):r.field=="inlinks"?u=ci(a.inlinks??[]):r.field=="tags"&&(u=ci(a.tags??[]));let l=as[r.fn],p=!0;return l&&(p=l.fn(u,r.value)),p}),Xh=(e,r)=>e.filter(a=>{let u=as[r.fn],l=!0;return u&&(l=u.fn(a.metadata?.[r.type]?.[r.field],r.value)),l}),Yf=(e,r)=>e.reduce((u,l)=>!u||l.filters.length==0?!1:l.type=="any"?rv([r],l.filters).length>0:nv([r],l.filters).length>0,!0);var ep=yf(Jh()),Vf=class{constructor(){this.lang="en";this.all={en:{hintText:{dragDropModifierKeys:"Hold \${1} to Pin and \${2} to Copy",createListItem:"Select/Create List Item Frame",dragDropProperties:"Drag and drop properties to link them into the list",newItem:"+ New",selectNote:"Select Note...",newFrame:"New"},defaults:{spaceNote:"Current Note",spaceContext:"Current Space"},commands:{h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",columns:"Columns",button:"Button",label:"Label",column:"Column",idea:"New",group:"Group",paragraph:"Text",card:"Card",progress:"Progress",rating:"Rating",circularProgress:"Circular Progress",list:"Bullet List","ordered-list":"Numbered List",todo:"To-do List",quote:"Quote",divider:"Divider",note:"Link to Note",link:"Link",callout:"Callout",bookmark:"Bookmark",table:"Table",codeblock:"Code Block",toggle:"Toggle",emoji:"Emoji",image:"Image",flow:"Linked Note",newNote:"New Note",tag:"Tag",makeMenu:"Flow Menu",selectStyle:"Style",toggleKeyboard:"Toggle Keyboard",rows:"Rows",masonry:"Gallery"},styles:{bold:"Bold",italics:"Italics",strikethrough:"Strikethrough",code:"Code",link:"Web Link",blocklink:"Link to Note",textColor:"Text Color",highlight:"Highlight"},commandsSuggest:{noResult:"No result"},commandPalette:{enable:"Enable",disabled:"Disable",openFlow:"Open Flow Blocks in Selection",closeFlow:"Close Flow Blocks in Selection",toggleBold:"Toggle Bold",toggleItalics:"Toggle Italics",openSpaces:"Open Spaces",migrateData:"Migrate Spaces From 0.7",blink:"Blink",openFileContext:"Open Explorer",convertPathToSpace:"Convert to Space",revealFile:"Reveal File in Spaces",releaseNotes:"Release Notes",toggleBacklinks:"Toggle Backlinks",collapseAllFolders:"Collapse All Folders",addFileSpace:"Add File to Space",removeFileSpace:"Remove File from Space"},frames:{sections:{kit:"Kit",paths:"Paths"},label:{label:"Label",description:"Label"},note:{label:"Note",description:"Link to a note"},table:{label:"Table",description:"Table"},context:{label:"Context",description:"Display a context view from another space"},calendar:{label:"Calendar View"},field:{label:"Field",description:"Dynamic node that displays a value based on property type"},event:{label:"Event"},divider:{label:"Divider",description:"Divider to separate your content"},button:{label:"Button",description:"Buttons can perform actions and open links"},callout:{label:"Callout",description:"Callout to highlight important information"},toggle:{label:"Toggle",description:"Toggle to show/hide content"}},menu:{newView:"New View",customView:"Custom View",detailsView:"Details View",catalogView:"Catalog View",galleryView:"Gallery View",deleteContext:"Delete Context",openSpace:"Open Space",revealInDefault:"Reveal in Finder",setNone:"None",fileMetadataDescription:"This note only",openFilePane:"Open in a new pane",rename:"Rename",changeToFolderNote:"New Space from Note",moveFile:"Move file to...",moveFolder:"Move folder to...",duplicate:"Make a copy",edit:"Edit",delete:"Delete",getHelp:"Make.md Community",vault:"Vault",openVault:"Open Another Vault",openVaultInFolder:"Open Vault Folder",obSettings:"Obsidian Settings",commandPalette:"Command Palette",backToSpace:"Back to Spaces",collapseAllSections:"Collapse All Spaces",expandAllSections:"Expand All Spaces",collapseAllFolders:"Collapse All Folders",expandAllFolders:"Expand All Folders",spaceTitle:"Add/Remove in Space",home:"Home",waypoints:"Waypoints",none:"None",tableView:"Table View",cardView:"Card View",boardView:"Board View",listView:"List View",flowView:"Flow View",groupBy:"Group By",sortBy:"Sort By",newFilter:"New Filter",clearFilters:"Clear Filters",hide:"Hide",unhideFields:"Unhide All Properties",importDataview:"Import All Dataview Properties",saveAllProperties:"Save All Properties to Files",mergeProperties:"Merge Properties",removeFromSpace:"Unpin from Space",removeFromWaypoints:"Unpin from Waypoints",editCode:"Edit Code",deleteProperty:"Delete Property",hideProperty:"Hide Property",unhideProperty:"Unhide Property",saveProperty:"Save Property",sortAscending:"Sort Ascending",sortDescending:"Sort Descending",deleteRow:"Delete Item",collapseAll:"Collapse All",customSort:"Custom Sort",groupSpaces:"Group Spaces",fileNameSortAlphaAsc:"File Name (A to Z)",fileNameSortAlphaDesc:"File Name (Z to A)",createdTimeSortAsc:"Created Time (new to old)",createdTimeSortDesc:"Created Time (old to new)",modifiedTimeSortAsc:"Modified Time (new to old)",modifiedTimeSortDesc:"Modified Time (old to new)",sizeSortAsc:"Size (smallest to largest)",sizeSortDesc:"Size (largest to smallest)",spaces:"Spaces",tags:"Tags",manageHiddenFiles:"Manage Hidden Files",manageActions:"Manage Actions",deleteSpace:"Delete",changeColor:"Change Color",changePropertyType:"Change Type",deleteFiles:"Delete Files",createFolderSpace:"Create Space from Folder",folder:"Folder",syncToContext:"Add Property to Context",setIcon:"Set Icon",copyEmbedLink:"Copy Embed Link",moveUp:"Move Up",moveDown:"Move Down",moveTo:"Move To",groupNodes:"Group Nodes",moveFrame:"Move Frame",renameFrame:"Rename Frame",deleteFrame:"Delete Frame"},editor:{rows:"Rows",columns:"Columns",catalog:"Catalog",gallery:"Gallery",grid:"Grid",scaleToFit:"Change to Fit",scaleToFill:"Change to Fill",fit:"Fit",strokeNone:"None",strokeSolid:"Solid",strokeDotted:"Dotted",strokeDashed:"Dashed",size:"Size",gap:"Gap",marginLeft:"Left",marginTop:"Top",marginRight:"Right",marginBottom:"Bottom",minimize:"Minimize",paddingLeft:"Left",paddingTop:"Top",paddingRight:"Right",paddingBottom:"Bottom",unlinkProperty:"Unlink Property",linkedProperty:"Linked Property",linkProperty:"Link Property",currentSpace:"Current Space",linkName:"\${1} Link",linkThumbnail:"\${1} Thumbnail",linkSticker:"\${1} Sticker",opacity:"Opacity",shadowSpread:"Spread",shadowBlur:"Blur",width:"Width",height:"Height",margin:"Margin",padding:"Padding",bold:"Bold",italic:"Italic",underline:"Underline",alignLeft:"Align Left",alignCenter:"Align Center",alignRight:"Align Right",alignJustify:"Align Justify",numberOfLines:"Lines",createVerticalSection:"Create Vertical Section",createHorizontalSection:"Create Horizontal Section",themeColors:"Theme Colors",uiColors:"UI Colors",hex:"Hex"},buttons:{add:"Add",addFilter:"Add Filter",customize:"Customize",moreOptions:"More Options",saveProperty:"Save Property",newNote:"New Note",changeIcon:"Change Sticker",removeIcon:"Remove Sticker",addIcon:"Add Sticker",addCover:"Add Cover",changeBanner:"Change Cover",changeBannerShort:"Cover",saveChanges:"Save Changes",removeBanner:"Remove Cover",rename:"Change Name",editFrame:"Edit Frame",saveSpace:"Save Space",createSpace:"New Space",createFolder:"New Folder",createNote:"New Note",createCanvas:"New Canvas",addIntoSpace:"New Pin",addSmartSearch:"Add Smart Search",addItem:"Add Item",addProperty:"Add Property",addContext:"Add Context",cancel:"Cancel",search:"Search",delete:"Delete",toggleFlow:"Toggle Flow",openFlow:"Open Flow",hideFlow:"Hide Flow",openLink:"Open Link",addToSpace:"Add to Space",addToSpaceShort:"Pin",addTag:"Add Tag",tag:"Tag",syncFields:"Sync Properties",convertTable:"Convert to Markdown",cutTable:"Cut Table",deleteTable:"Delete Table",blink:"Blink",addFile:"Add Item",merge:"Merge",saveView:"Save View",saveTable:"Save Table",renameView:"Rename View",deleteView:"Delete View",renameTable:"Rename Table",renameTag:"Rename Tag",createTag:"Create Tag",currentFolder:"Current Folder",sync:"Sync",pasteCSS:"Paste CSS",save:"Save",run:"Run"},metadataTypes:{fileName:"File Name",path:"Path",folder:"Folder",sticker:"Sticker",color:"Color",created:"Created",lastModified:"Last Modified",extension:"Extension",size:"Size",tags:"Tags",inlinks:"Linked Mentions",outlinks:"Links",label:"Label",fileMetadata:"File Metadata",frontmatter:"Frontmatter"},filterTypes:{contains:"contains",notContains:"does not contain",is:"is",isNot:"is not",before:"before",after:"after",anyOf:"is any of",noneOf:"is none of",checked:"is checked",unchecked:"is unchecked",isEmpty:"is empty",isNotEmpty:"is not empty",isSameDate:"is same date",isSameDateAsToday:"today"},sortTypes:{alphaAsc:"A to Z",alphaDesc:"Z to A",earliest:"Earliest",latest:"Latest",checkAsc:"Checked \\u2192 Unchecked",checkDesc:"Unchecked \\u2192 Checked",itemsAsc:"Least Items",itemsDesc:"Most Items"},properties:{defaultField:"Name",text:{label:"Text",description:"Text field"},number:{label:"Number",description:"Number field with optional unit"},boolean:{label:"Yes/No",description:"Yes or No toggle to indicate the status"},date:{label:"Date",description:"Select a date from a calendar"},option:{label:"Option",description:"Select one or multiple option from a list"},file:{label:"File"},link:{label:"Link",description:"Link to another note or a website"},tags:{label:"Tags",description:"Use tags to quickly organize your items"},object:{label:"Object",description:"Store any complex objects"},context:{label:"Relation",description:"Connect to another context property and create a relation"},image:{label:"Image",description:"Select any image from your system or from the internet"},color:{label:"Color",description:"Use colors to label your items or status"},space:{label:"Context",description:"Link to a context"},icon:{label:"Sticker",description:"Use stickers to uniquely label your items or status"},super:{label:"Super Property",links:"Open Link",properties:"Update Property",api:"API",obsidianCommands:"Run Command",runCommand:"Run Command",performAction:"Perform Action",whenClicked:"When Clicked"},fileProperty:{name:"Name",label:"Formula",createdTime:"Created",modifiedTime:"Last Edited",sticker:"Sticker",links:"Links",tags:"Tags",spaces:"Spaces",extension:"Extension",size:"Size",preview:"Note Preview",parentFolder:"Folder",description:"Use a formula to dynamically display a property"}},views:{navigator:"Navigator",explorer:"Explorer",space:"Space"},subViews:{spaceItems:"Items",spaceContext:"Context",spaceLists:"Lists",spaceActions:"Actions",smartSearch:"Smart Search",filesAndFolders:"Files and Folders"},labels:{properties:"Properties",newAction:"New Action",newTable:"New Table",createFolder:"New Folder Name",rename:"Rename",createNew:"New",default:"Default",done:"Done",tables:"Tables",selectDateFormat:"Select/Type Date Format",renameSectionSmart:"Edit Smart Space",renameSection:"Edit Space",createSectionSmart:"New Smart Space",createSection:"New Folder",createNote:"New Note",contextMaker:"Context Maker",select:"Select",pinnedItems:"Pinned Items",collapse:"Collapse",expand:"Expand",all:"All",none:"None",view:"View",findStickers:"Find Sticker",mergeProperties:"Merge Properties",placeholder:"Type '\${1}' for commands",itemsSelected:"\${1} Selected",selectNote:"Select Note",selectIcon:"Select Icon",selectImage:"Select Image",selectSpace:"Select Space",styleSmall:"Small",styleMedium:"Medium",styleLarge:"Large",hiddenFilePattern:"Name, Suffixes and Extension",hiddenFileSpecific:"Exclude specific files and folders",textPlaceholder:"Enter Text",noFile:"is not created yet. Click to create.",navigatorSearchPlaceholder:"Search by Text or Filters",blinkPlaceholder:"Quickly Search a File, Folder, Tag... Press Tab to Edit",searchPlaceholder:"Type to search...",contextItemSelectPlaceholder:"Find Item",linkItemSelectPlaceholder:"Find or Create Note",pinNotePlaceholder:"Select a Note or Space to Pin",optionItemSelectPlaceholder:"Select Option",viewItemSelectPlaceholder:"Select View",tagItemSelectPlaceholder:"Find Tag",spaceSelectPlaceholder:"Select any Folder or Tag",propertyItemSelectPlaceholder:"Select Property",sortItemSelectPlaceholder:"Select Sort",filterItemSelectPlaceholder:"Select Filter",imageSelectPlaceholder:"Select an image or paste a URL",imageNotFoundPlaceholder:"No Images Found",syncFrontmatterProperty:"Sync Frontmatter Property",newProperty:"New Property",newPropertyShort:"New Property",propertyType:"Type",propertyDynamic:"Dyanmic",propertyValueSpace:"Space",propertyValueProperty:"Property",propertyLookup:"Edit Formula",dateFormat:"Date Format",propertyFileProp:"Property",multiple:"Multiple",filesCount:"{$1} Files",hiddenFiles:"Hidden Files",addExtension:"Add Rule",saveView:"Save View",saveTable:"Save Table",renameView:"Rename View",renameTable:"Rename Table",syncMetadata:"Sync Metadata",syncProperties:"Sync Properties",selectContext:"Select Context",metadata:"Metadata",backlinks:"Backlinks",spaces:"Spaces",context:"Context",content:"Content",deleteSpace:"Delete Space",deleteFiles:"Delete Files",outgoingLinks:"Outgoing Links",moveTo:"Move to",addTo:"Pin to",copyTo:"Copy to",reorderIn:"Reorder in",border:"Border",corners:"Corners",color:"Color",backgroundColor:"Background",cornerRadius:"Radius",onClick:"On Click",layout:"Layout",element:"Element",name:"Name",display:"Display",alignment:"Alignment",margin:"Margin",padding:"Padding",gap:"Gap",width:"Width",height:"Height",opacity:"Opacity",shadow:"Shadow",shadowBlur:"Blur",shadowSpread:"Spread",typography:"Typography",layers:"Layers",fontSize:"Size",props:"Props",styles:"Styles",events:"Events",code:"Code",selectedLayers:"\${1} Layers"},descriptions:{spaceActions:"Create actions that runs when you press a button",spaceLists:"Create lists to track data and organize them in your space",spaceItems:"Add new items to the space or pin items to the space",smartSearch:"Automatically pin notes to this space based on a set of searches",hiddenFileOptions:"Exclude any files and folders by name, suffix or extension.",deleteSpace:"Deleting the space will also delete the folder and its contents.",deleteFiles:"Delete \${1} files/folders and their contents?",addContext:"Contexts lets you connect properties from your tags",spaceProperties:"Define Properties for your Space Items",syncMetadata:"Select which fields from your notes to start syncing with the context.",syncProperties:"Contexts defines and syncs the same fields across your notes depending on their folder or tag.",selectContext:"Select which folder or tag context you want to sync the fields."},flowView:{emptyDoc:"Empty Document",itemsCount:" Items",emptyFolder:"This Folder is Empty"},notice:{duplicateFile:"Folder already contains note with same name",addedToSection:"Added to Space",fileExists:"File Already Exists",folderExists:"Folder Already Exists",noPropertyName:"Property Name is Required",duplicatePropertyName:"Duplicate Property Name",newSpaceName:"Enter a name for your space",duplicateSpaceName:"Space name already exists",cantConvertNoteToSpace:"The view is not a note"},settings:{layoutVertical:"Vertical",layoutHorizontal:"Horizontal",sectionSidebar:"Spaces",sectionEditor:"Maker Mode",sectionFlow:"Flow",sectionAdvanced:"Advanced",sectionDataview:"Dataview",sectionContext:"Context",sectionStickers:"Stickers",sectionNavigator:"Navigator",sectionDefault:"Default Spaces",sectionSpaceView:"Space View",sectionBlink:"Blink",sectionInlineContext:"Inline Context",sectionFlowBlock:"Flow Block",sectionFlowMenu:"Flow Menu",sectionFlowStyler:"Flow Styler",experimental:{name:"Experimental",desc:"Experimental features that are subject to change and may not be optimized for performance"},generateThumbnails:{name:"Generate Thumbnails",desc:"Create thumbnails for images to speed up performance"},minimalThemeFix:{name:"Minimal Theme Fix",description:"Apply fixes for the popular theme Minimal"},inlineStickerMenu:{name:"Inline Stickers",desc:"Add inline stickers by typing :"},openSpacesOnLaunch:{name:"Open Spaces as Default Tab",desc:"Open the Spaces tab when Obsidian launches"},defaultSpaceTemplate:{name:"Default Space Template",desc:"Select the default template for new spaces"},defaultDateFormat:{name:"Default Date Format",desc:"Set the default date format, example: yyyy-MM-dd (see https://date-fns.org/v2.30.0/docs/format)"},newNotePlaceholder:{name:"New Note Placeholder",desc:"Default name for new notes"},folderIndentationLines:{name:"Show Folder Indentation Lines",desc:"Turn on to show a line on the left of folders to indicate indentation"},folderNoteLocation:{name:"Folder Note Location Inside Folder",desc:"Turn on to have folder notes inside the folder, turn off to have it outside"},folderViewDefault:{name:"Show Folder Note by Default",desc:"Show the folder note by default when opening a folder"},internalLinkFlowEditor:{name:"Open Flow Blocks on Internal Link Click",desc:"Turn on to toggle Flow Blocks directly by clicking on internal links, otherwise a tooltip will be shown"},syncContextToFrontmatter:{name:"Sync Context Fields to Frontmatter",desc:"Turn on to automatically save all context fields to frontmatter fields, not just existing frontmatter fields."},inlineBacklinks:{name:"Show Inline Backlinks (Inline Context required)",desc:"Show editable backlinks at the bottom of your notes"},dataviewInlineContext:{name:"Show Dataview in Inline Context",desc:"Show dataview when inline context is enabled"},inlineContextExplorer:{name:"Inline Context",desc:"Display the context and a banner at the top of your notes"},inlineContextExpanded:{name:"Auto Expand Inline Context",desc:"Expand the inline context sections when opening a note"},inlineContextHorizontal:{name:"Inline Title and Sticker Layout",desc:"Layout for inline title and sticker in Inline Context"},hideFrontmatter:{name:"Hide Frontmatter Properties",desc:"Hide the frontmatter properties in inline context"},openFileContext:{name:"Auto Open Explorer",desc:"Automatically open explorer panel in the right panel"},folderNote:{name:"Enable Folder Note",desc:"Access the folder note in the folder page and hide the folder note from spaces"},expandFolder:{name:"Auto Expand Folder",desc:"Auto expand folders on click"},hoverPreview:{name:"Preview on Hover",desc:"Preview on Hover while holding Control/Command key"},activeFile:{name:"Reveal Active File",desc:"Automatically reveal the active file in Spaces"},contexts:{name:"Contexts",desc:"Contexts allows you to have full control over the metadata of your files"},spaces:{name:"Navigator",desc:"The navigator lets you create and organize your spaces"},spacesStickers:{name:"Stickers",desc:"Use Emojis to make it easier to find your notes"},spacesAlias:{name:"Alias",desc:"Use the alias metadata to show in Spaces"},spacesFileExplorerDual:{name:"Compatibility Mode",desc:"This will improve the compatibility of plugins while using Spaces"},spacesDeleteOption:{name:"Delete File Option",desc:"Select how you want files to be deleted"},spacesDeleteOptions:{permanant:"Delete Permanently",trash:"Move to Obsidian Trash","system-trash":"Move to System Trash"},hideRibbon:{name:"App Ribbon",desc:"Show/hide the left menu aka. ribbon"},spaceView:{name:"Space View",desc:"Open the space view when you click on a space"},defaultSpaces:{name:"Default Spaces",desc:"Recommended spaces for quickly organizing your vault"},homeSpace:{name:"Home Space",desc:"An easy-to-access space where you can add/organize your other spaces"},tagSpaces:{name:"Tag Spaces",desc:"Automatically create spaces for each of your tags"},readableLineWidth:{name:"Readable Line Width",desc:"Use Readable Line Width"},sidebarTabs:{name:"Sidebar Tabs",desc:"Show/hide other sidebar tabs"},spacesPerformance:{name:"Performance Mode",desc:"Turn on performance mode for Spaces, may affect scrolling appearance. Requires Restart"},indexSVG:{name:"Use SVGs as Stickers",desc:"Use any svg file in your vault as a sticker"},inlineStyler:{name:"Flow Styler",desc:"Select text to add styling"},inlineStylerColor:{name:"Text and Highlight Colors \\u{1F9EA}",desc:"Select text color and highlight color, (this may change in the future because of the limitations with HTML and Obsidian)"},spaceRowHeight:{name:"Row Height",desc:"The height for each row in spaces (in pixels), default is 28"},makeChar:{name:"Flow Menu Trigger",desc:"Character to open the Flow Menu"},mobileMakeBar:{name:"Flow Styler (Mobile)",desc:"Replaces the mobile toolbar"},editorMarkSans:{name:"Mark Sans \\u{1F9EA}",desc:"Use the editor without Markdown."},editorMakerMode:{name:"Flow (Beta)",desc:"An integrated and intuitive editor experience"},editorMakePlacholder:{name:"Flow Menu Hint Text",desc:"Show a hint text on how to open the Flow Menu Shortcut"},blink:{name:"Blink",desc:"A faster way to search and edit your notes"},editorMakeMenu:{name:"Flow Menu",desc:"Open the Flow menu to quickly add content"},editorMakeMenuTrigger:{name:"Flow Menu Shortcut",desc:"Trigger key to use flow menu"},editorFlowReplace:{name:"Flow Block",desc:"Open your internal links or toggle your embeds in the flow block."},editorFlowStyle:{name:"Flow Block Style",desc:"Select a theme for your flow block",seamless:"Seamless",classic:"Classic",minimal:"Minimal"}}}};this.lang="en";let r=ep.default.locale();["en"].includes(r)&&(this.lang=r)}get texts(){return this.all.en}},ce=new Vf().texts;var W_=[{type:"unknown",label:"",restricted:!0,icon:"ui//file-question"},{type:"text",label:ce.properties.text.label,metadata:!0,icon:"ui//text",description:ce.properties.text.description},{type:"number",label:ce.properties.number.label,metadata:!0,icon:"ui//binary",configKeys:["unit"],description:ce.properties.number.description},{type:"boolean",label:ce.properties.boolean.label,metadata:!0,icon:"ui//check-square",description:ce.properties.boolean.description},{type:"date",label:ce.properties.date.label,metadata:!0,icon:"ui//calendar",configKeys:["format"],description:ce.properties.date.description},{type:"option",label:ce.properties.option.label,multi:!0,multiType:"option-multi",icon:"ui//list",configKeys:["options"],description:ce.properties.option.description},{type:"tags",label:ce.properties.tags.label,icon:"ui//tags",description:ce.properties.tags.description},{type:"file",label:ce.properties.file.label,restricted:!0,icon:"ui//mk-make-h3"},{type:"fileprop",label:ce.properties.fileProperty.label,icon:"ui//formula",configKeys:["field","value"],description:ce.properties.fileProperty.description},{type:"link",label:ce.properties.link.label,multi:!0,multiType:"link-multi",metadata:!0,icon:"ui//file-text",description:ce.properties.link.description},{type:"context",label:ce.properties.context.label,icon:"ui//mk-make-note",multi:!0,multiType:"context-multi",configKeys:["space"],description:ce.properties.context.description},{type:"object",label:ce.properties.object.label,multi:!0,multiType:"object-multi",metadata:!0,icon:"ui//list-tree",configKeys:["type"],description:ce.properties.object.description},{type:"icon",label:ce.properties.icon.label,multi:!0,multiType:"icon-multi",icon:"ui//gem",description:ce.properties.icon.description},{type:"image",label:ce.properties.image.label,multi:!0,multiType:"image-multi",metadata:!0,icon:"ui//mk-make-image",description:ce.properties.image.description},{type:"color",label:ce.properties.color.label,icon:"ui//mk-make-image",description:ce.properties.color.description},{type:"space",label:ce.properties.space.label,icon:"ui//layout-grid",restricted:!0,description:ce.properties.space.description},{type:"table",label:ce.properties.space.label,icon:"ui//layout-grid",restricted:!0,description:ce.properties.space.description},{type:"super",label:ce.properties.super.label,icon:"ui//zap",restricted:!0,configKeys:["dynamic","field"]},{type:"input",label:ce.properties.super.label,icon:"ui//input",restricted:!0}];var hi="files",Wo={id:hi,name:"Files",type:"db",primary:"true"},iv="filesView",av={id:iv,name:"All",type:"view",def:JSON.stringify({db:hi,icon:"ui//file-stack"})},sv="main",ov=e=>({id:e,name:e,type:"frame",def:"",predicate:"",primary:"true"}),Y_={uniques:[],cols:["id","name","type","def","predicate","primary"],rows:[ov(sv),av]},Lo={uniques:[],cols:["id","name","type","def","predicate","primary"],rows:[Wo]},tp={uniques:["name,schemaId"],cols:["name","schemaId","type","value","attrs","hidden","unique","primary"]},Ro={...tp,rows:[{name:on,schemaId:hi,type:"file",primary:"true",hidden:"",unique:"",attrs:"",value:""},{name:ce.properties.fileProperty.createdTime,schemaId:hi,type:"fileprop",value:on+".ctime",hidden:"",unique:"",attrs:"",primary:"true"}]};var B_=[{name:ce.properties.defaultField,schemaId:"",type:"text",primary:"true"}],Uf={...tp,rows:[{name:on,schemaId:hi,type:"file",primary:"true",hidden:"",unique:"",attrs:"",value:""}]};var V_={schema:Wo,cols:Ro.rows,rows:[]},U_={schema:Wo,cols:Ro.rows,rows:[]},H_={schema:Wo,cols:Uf.rows,rows:[]},rp=(e,r)=>e.filter(a=>r.find(u=>u.id==a.schemaId&&u.type=="db")).reduce((a,u)=>({...a,...a[u.schemaId]?{[u.schemaId]:{uniques:u.unique=="true"?[...a[u.schemaId].uniques,u.name]:a[u.schemaId].uniques,cols:[...a[u.schemaId].cols,u.name],rows:[]}}:{[u.schemaId]:{uniques:u.unique=="true"?[u.name]:[],cols:[u.name],rows:[]}}}),{});var q_={m_schema:Lo,m_fields:Ro,...rp(Ro.rows,Lo.rows)},G_={m_schema:Lo,m_fields:Uf,...rp(Uf.rows,Lo.rows)};var np=(e,r)=>e.hiddenExtensions.some(a=>r.endsWith(a))||r.startsWith(e.spacesFolder+"/#")||e.hiddenFiles.some(a=>a==r);var ip=(e,r,a)=>{if(!e)return{changed:!1,cache:null};if(!r)return{changed:!1,cache:{path:e.path,frames:{},schemas:[]}};let u=Object.values(r).map(C=>C.schema),l=u.filter(C=>C.type=="frame").reduce((C,T)=>({...C,[T.id]:r[T.id]}),{}),p={path:e.path,frames:l,schemas:u},v=!0;return a&&Yo.default.isEqual(p,a)&&(v=!1),{changed:v,cache:p}},ap=(e,r,a,u)=>{let l={};if(!e)return{changed:!1,cache:null};if(!r)return{changed:!1,cache:{cols:[],path:e.path,schemas:[],outlinks:[],contexts:[],paths:[],tables:{},space:e,spaceMap:l}};let p=Object.values(r).map(K=>K.schema),v=p.find(K=>K.primary=="true"),C=r[v.id],T=r,A=C.cols?.filter(K=>K.type.startsWith("context"))??[],R=C.cols?.filter(K=>K.type.startsWith("link"))??[],V=sn(A.map(K=>K.value));A.forEach(K=>{l[K.name]={},C.rows.forEach(Xe=>{sr(Xe[K.name]).forEach(Re=>l[K.name][Re]=[...l[K.name][Re]??[],Xe[on]])})});let Z=T[hi]?.rows?.map(K=>K[on])??[],ne=Th(a??[],Z),N=sn(C.rows.reduce((K,Xe)=>sn([...K,...[...A,...R].flatMap(Re=>sr(Xe[Re.name]).map(it=>is(it)))]),[])),we={cols:C.cols,path:e.path,contexts:V,outlinks:N,paths:ne,tables:T,schemas:p,space:e,spaceMap:l},Ne=!0;return u&&Yo.default.isEqual(we,u)&&(Ne=!0),{changed:Ne,cache:we}},sp=(e,r,a,u)=>{let l={};for(let[p,v]of e){let C=a.get(p)?.defPath??p,T=e.get(C)??v,A=v?.parent??"",R=v?.type??"",V=v?.subtype??"",Z=T?.label,ne=u?.get(p),{changed:N,cache:we}=Hf(p,r,a,T,Z,R,V,A,ne);l[p]={changed:N,cache:we}}return l},Hf=(e,r,a,u,l,p,v,C,T)=>{let A=(me,at,mt)=>me?.length>0||me?.length>0?me:at=="space"?mt=="Spaces/Home"?"ui//home":mt=="/"?"ui//vault":mt.startsWith("spaces://#")?"ui//tags":"ui//folder":"ui//file",R={label:u?.label,path:e,name:Oo(e),displayName:Oo(e)},V=[],Z=u?.tags?.map(me=>me)??[],ne=np(r,e),N=(me,at,mt=new Set)=>{let Rt=[];for(let Me of at){let ze=me.get(Me)?.contexts??[];for(let Wt of ze)mt.has(Wt)||(Rt.push(Wt),mt.add(Wt),Rt.push(...N(me,[Fo(Wt)],mt)))}return Rt};if(a.has(C))for(let me of a.get(C).contexts??[])V.push(me);V.push(...Z);let we=l?.name,Ne=u?.properties?vf(u.properties[r.fmKeyAlias]):[],K=A(l?.sticker,p,e),Xe=l?.color??"",Re=u?.inlinks??[],it=u?.links??[],tt=r.spacesUseAlias?Ne[0]??we:we,Te={...R,name:we,tags:sn(V),type:p,subtype:v,displayName:tt,parent:C,label:{name:we,sticker:K,color:Xe,thumbnail:l?.thumbnail??"",preview:l?.preview??""},metadata:{...u},inlinks:Re,outlinks:it},Je=[];for(let me of V)Je.push(Fo(me));for(let[me,at]of a){if(at.defPath==e&&(ne=!0),at.space&&at.space.path==C){Je.push(me);continue}if(at.metadata?.filters?.length>0&&Yf(at.metadata.filters,Te)){Je.push(me);continue}if(at.metadata?.links?.length>0&&(at.metadata?.links??[]).find(Rt=>Rt==Te.path)){Je.push(me);continue}}let Ge=N(a,Je);Je.push(...Ge.map(me=>Fo(me))),Te.tags.push(...Ge);let pr=ne?{...Te,spaces:[],hidden:ne}:{...Te,spaces:sn(Je),hidden:ne},jt=!0;return T&&Yo.default.isEqual(pr,T)&&(jt=!1),{changed:jt,cache:pr}};var uv=(e,r,a)=>{if(e.length!==1)return"";let u=e.map(function(v){return v.compile().evaluate(a)}),l=a.get(u[0]),p=a.get("$properties")?.[u[0]]?.type;return(p=="file"||p=="link"||p=="context")&&(p.includes("multi")?l=sr(l).map(v=>a.get("$paths").get(v)):l=a.get("$paths").get(l)),l??""};uv.rawArgs=!0;var lv=(e,r,a)=>{if((e.length-1)%2!==0)return"";for(let u=0;u{if(e.length<1||e.length>2)return"";let u=e[0].compile().evaluate(a);u instanceof Date||(u=new Date(u));let l=e[1]?.compile().evaluate(a);return l?.length>0?fi(u,l):fi(u,a.get("$settings")?.dateFormat??"yyyy-MM-dd")};fv.rawArgs=!0;var hv=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],hp=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],pv="\\u200C\\u200D\\xB7\\u0300-\\u036F\\u0387\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u0669\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u06F0-\\u06F9\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07C0-\\u07C9\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0898-\\u089F\\u08CA-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0966-\\u096F\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09E6-\\u09EF\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A66-\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AE6-\\u0AEF\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B66-\\u0B6F\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0CE6-\\u0CEF\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D66-\\u0D6F\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0E50-\\u0E59\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\u0ED0-\\u0ED9\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1040-\\u1049\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F-\\u109D\\u135D-\\u135F\\u1369-\\u1371\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u180F-\\u1819\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u194F\\u19D0-\\u19DA\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AB0-\\u1ABD\\u1ABF-\\u1ACE\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BB0-\\u1BB9\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1C40-\\u1C49\\u1C50-\\u1C59\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u200C\\u200D\\u203F\\u2040\\u2054\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\u30FB\\uA620-\\uA629\\uA66F\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8D0-\\uA8D9\\uA8E0-\\uA8F1\\uA8FF-\\uA909\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9D0-\\uA9D9\\uA9E5\\uA9F0-\\uA9F9\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA50-\\uAA59\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF10-\\uFF19\\uFF3F\\uFF65",pp="\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2118-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309B-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC",qf={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Gf="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",dv={5:Gf,"5module":Gf+" export import",6:Gf+" const class extends export import super"},mv=/^in(stanceof)?$/,gv=new RegExp("["+pp+"]"),yv=new RegExp("["+pp+pv+"]");function $f(e,r){for(var a=65536,u=0;ue)return!1;if(a+=r[u+1],a>=e)return!0}return!1}function ln(e,r){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&gv.test(String.fromCharCode(e)):r===!1?!1:$f(e,hp)}function aa(e,r){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&yv.test(String.fromCharCode(e)):r===!1?!1:$f(e,hp)||$f(e,hv)}var ve=function(r,a){a===void 0&&(a={}),this.label=r,this.keyword=a.keyword,this.beforeExpr=!!a.beforeExpr,this.startsExpr=!!a.startsExpr,this.isLoop=!!a.isLoop,this.isAssign=!!a.isAssign,this.prefix=!!a.prefix,this.postfix=!!a.postfix,this.binop=a.binop||null,this.updateContext=null};function or(e,r){return new ve(e,{beforeExpr:!0,binop:r})}var ur={beforeExpr:!0},Lt={startsExpr:!0},Kf={};function de(e,r){return r===void 0&&(r={}),r.keyword=e,Kf[e]=new ve(e,r)}var y={num:new ve("num",Lt),regexp:new ve("regexp",Lt),string:new ve("string",Lt),name:new ve("name",Lt),privateId:new ve("privateId",Lt),eof:new ve("eof"),bracketL:new ve("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new ve("]"),braceL:new ve("{",{beforeExpr:!0,startsExpr:!0}),braceR:new ve("}"),parenL:new ve("(",{beforeExpr:!0,startsExpr:!0}),parenR:new ve(")"),comma:new ve(",",ur),semi:new ve(";",ur),colon:new ve(":",ur),dot:new ve("."),question:new ve("?",ur),questionDot:new ve("?."),arrow:new ve("=>",ur),template:new ve("template"),invalidTemplate:new ve("invalidTemplate"),ellipsis:new ve("...",ur),backQuote:new ve("\`",Lt),dollarBraceL:new ve("\${",{beforeExpr:!0,startsExpr:!0}),eq:new ve("=",{beforeExpr:!0,isAssign:!0}),assign:new ve("_=",{beforeExpr:!0,isAssign:!0}),incDec:new ve("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new ve("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:or("||",1),logicalAND:or("&&",2),bitwiseOR:or("|",3),bitwiseXOR:or("^",4),bitwiseAND:or("&",5),equality:or("==/!=/===/!==",6),relational:or("/<=/>=",7),bitShift:or("<>/>>>",8),plusMin:new ve("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:or("%",10),star:or("*",10),slash:or("/",10),starstar:new ve("**",{beforeExpr:!0}),coalesce:or("??",1),_break:de("break"),_case:de("case",ur),_catch:de("catch"),_continue:de("continue"),_debugger:de("debugger"),_default:de("default",ur),_do:de("do",{isLoop:!0,beforeExpr:!0}),_else:de("else",ur),_finally:de("finally"),_for:de("for",{isLoop:!0}),_function:de("function",Lt),_if:de("if"),_return:de("return",ur),_switch:de("switch"),_throw:de("throw",ur),_try:de("try"),_var:de("var"),_const:de("const"),_while:de("while",{isLoop:!0}),_with:de("with"),_new:de("new",{beforeExpr:!0,startsExpr:!0}),_this:de("this",Lt),_super:de("super",Lt),_class:de("class",Lt),_extends:de("extends",ur),_export:de("export"),_import:de("import",Lt),_null:de("null",Lt),_true:de("true",Lt),_false:de("false",Lt),_in:de("in",{beforeExpr:!0,binop:7}),_instanceof:de("instanceof",{beforeExpr:!0,binop:7}),_typeof:de("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:de("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:de("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},cr=/\\r\\n?|\\n|\\u2028|\\u2029/,xv=new RegExp(cr.source,"g");function sa(e){return e===10||e===13||e===8232||e===8233}function dp(e,r,a){a===void 0&&(a=e.length);for(var u=r;u>10)+55296,(e&1023)+56320))}var _v=/(?:[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])/,os=function(r,a){this.line=r,this.column=a};os.prototype.offset=function(r){return new os(this.line,this.column+r)};var qo=function(r,a,u){this.start=a,this.end=u,r.sourceFile!==null&&(this.source=r.sourceFile)};function yp(e,r){for(var a=1,u=0;;){var l=dp(e,u,r);if(l<0)return new os(a,r-u);++a,u=l}}var jf={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},lp=!1;function Sv(e){var r={};for(var a in jf)r[a]=e&&ls(e,a)?e[a]:jf[a];if(r.ecmaVersion==="latest"?r.ecmaVersion=1e8:r.ecmaVersion==null?(!lp&&typeof console=="object"&&console.warn&&(lp=!0,console.warn(\`Since Acorn 8.0.0, options.ecmaVersion is required. Defaulting to 2020, but this will stop working in the future.\`)),r.ecmaVersion=11):r.ecmaVersion>=2015&&(r.ecmaVersion-=2009),r.allowReserved==null&&(r.allowReserved=r.ecmaVersion<5),(!e||e.allowHashBang==null)&&(r.allowHashBang=r.ecmaVersion>=14),op(r.onToken)){var u=r.onToken;r.onToken=function(l){return u.push(l)}}return op(r.onComment)&&(r.onComment=bv(r,r.onComment)),r}function bv(e,r){return function(a,u,l,p,v,C){var T={type:a?"Block":"Line",value:u,start:l,end:p};e.locations&&(T.loc=new qo(this,v,C)),e.ranges&&(T.range=[l,p]),r.push(T)}}var us=1,oa=2,Zf=4,xp=8,vp=16,wp=32,Xf=64,_p=128,fs=256,Jf=us|oa|fs;function ec(e,r){return oa|(e?Zf:0)|(r?xp:0)}var Vo=0,tc=1,cn=2,Sp=3,bp=4,kp=5,ft=function(r,a,u){this.options=r=Sv(r),this.sourceFile=r.sourceFile,this.keywords=Ln(dv[r.ecmaVersion>=6?6:r.sourceType==="module"?"5module":5]);var l="";r.allowReserved!==!0&&(l=qf[r.ecmaVersion>=6?6:r.ecmaVersion===5?5:3],r.sourceType==="module"&&(l+=" await")),this.reservedWords=Ln(l);var p=(l?l+" ":"")+qf.strict;this.reservedWordsStrict=Ln(p),this.reservedWordsStrictBind=Ln(p+" "+qf.strictBind),this.input=String(a),this.containsEsc=!1,u?(this.pos=u,this.lineStart=this.input.lastIndexOf(\` \`,u-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(cr).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=y.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=r.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&r.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(us),this.regexpState=null,this.privateNameStack=[]},Ur={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};ft.prototype.parse=function(){var r=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(r)};Ur.inFunction.get=function(){return(this.currentVarScope().flags&oa)>0};Ur.inGenerator.get=function(){return(this.currentVarScope().flags&xp)>0&&!this.currentVarScope().inClassFieldInit};Ur.inAsync.get=function(){return(this.currentVarScope().flags&Zf)>0&&!this.currentVarScope().inClassFieldInit};Ur.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var r=this.scopeStack[e];if(r.inClassFieldInit||r.flags&fs)return!1;if(r.flags&oa)return(r.flags&Zf)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Ur.allowSuper.get=function(){var e=this.currentThisScope(),r=e.flags,a=e.inClassFieldInit;return(r&Xf)>0||a||this.options.allowSuperOutsideMethod};Ur.allowDirectSuper.get=function(){return(this.currentThisScope().flags&_p)>0};Ur.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Ur.allowNewDotTarget.get=function(){var e=this.currentThisScope(),r=e.flags,a=e.inClassFieldInit;return(r&(oa|fs))>0||a};Ur.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&fs)>0};ft.extend=function(){for(var r=[],a=arguments.length;a--;)r[a]=arguments[a];for(var u=this,l=0;l=,?^&]/.test(l)||l==="!"&&this.input.charAt(u+1)==="=")}e+=r[0].length,lr.lastIndex=e,e+=lr.exec(this.input)[0].length,this.input[e]===";"&&e++}};Ct.eat=function(e){return this.type===e?(this.next(),!0):!1};Ct.isContextual=function(e){return this.type===y.name&&this.value===e&&!this.containsEsc};Ct.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Ct.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Ct.canInsertSemicolon=function(){return this.type===y.eof||this.type===y.braceR||cr.test(this.input.slice(this.lastTokEnd,this.start))};Ct.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Ct.semicolon=function(){!this.eat(y.semi)&&!this.insertSemicolon()&&this.unexpected()};Ct.afterTrailingComma=function(e,r){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),r||this.next(),!0};Ct.expect=function(e){this.eat(e)||this.unexpected()};Ct.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Go=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ct.checkPatternErrors=function(e,r){if(!!e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var a=r?e.parenthesizedAssign:e.parenthesizedBind;a>-1&&this.raiseRecoverable(a,r?"Assigning to rvalue":"Parenthesized pattern")}};Ct.checkExpressionErrors=function(e,r){if(!e)return!1;var a=e.shorthandAssign,u=e.doubleProto;if(!r)return a>=0||u>=0;a>=0&&this.raise(a,"Shorthand property assignments are valid only in destructuring patterns"),u>=0&&this.raiseRecoverable(u,"Redefinition of __proto__ property")};Ct.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&u<56320)return!0;if(ln(u,!0)){for(var l=a+1;aa(u=this.input.charCodeAt(l),!0);)++l;if(u===92||u>55295&&u<56320)return!0;var p=this.input.slice(a,l);if(!mv.test(p))return!0}return!1};z.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;lr.lastIndex=this.pos;var e=lr.exec(this.input),r=this.pos+e[0].length,a;return!cr.test(this.input.slice(this.pos,r))&&this.input.slice(r,r+8)==="function"&&(r+8===this.input.length||!(aa(a=this.input.charCodeAt(r+8))||a>55295&&a<56320))};z.parseStatement=function(e,r,a){var u=this.type,l=this.startNode(),p;switch(this.isLet(e)&&(u=y._var,p="let"),u){case y._break:case y._continue:return this.parseBreakContinueStatement(l,u.keyword);case y._debugger:return this.parseDebuggerStatement(l);case y._do:return this.parseDoStatement(l);case y._for:return this.parseForStatement(l);case y._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(l,!1,!e);case y._class:return e&&this.unexpected(),this.parseClass(l,!0);case y._if:return this.parseIfStatement(l);case y._return:return this.parseReturnStatement(l);case y._switch:return this.parseSwitchStatement(l);case y._throw:return this.parseThrowStatement(l);case y._try:return this.parseTryStatement(l);case y._const:case y._var:return p=p||this.value,e&&p!=="var"&&this.unexpected(),this.parseVarStatement(l,p);case y._while:return this.parseWhileStatement(l);case y._with:return this.parseWithStatement(l);case y.braceL:return this.parseBlock(!0,l);case y.semi:return this.parseEmptyStatement(l);case y._export:case y._import:if(this.options.ecmaVersion>10&&u===y._import){lr.lastIndex=this.pos;var v=lr.exec(this.input),C=this.pos+v[0].length,T=this.input.charCodeAt(C);if(T===40||T===46)return this.parseExpressionStatement(l,this.parseExpression())}return this.options.allowImportExportEverywhere||(r||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),u===y._import?this.parseImport(l):this.parseExport(l,a);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(l,!0,!e);var A=this.value,R=this.parseExpression();return u===y.name&&R.type==="Identifier"&&this.eat(y.colon)?this.parseLabeledStatement(l,A,R,e):this.parseExpressionStatement(l,R)}};z.parseBreakContinueStatement=function(e,r){var a=r==="break";this.next(),this.eat(y.semi)||this.insertSemicolon()?e.label=null:this.type!==y.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var u=0;u=6?this.eat(y.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};z.parseForStatement=function(e){this.next();var r=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(rc),this.enterScope(0),this.expect(y.parenL),this.type===y.semi)return r>-1&&this.unexpected(r),this.parseFor(e,null);var a=this.isLet();if(this.type===y._var||this.type===y._const||a){var u=this.startNode(),l=a?"let":this.value;return this.next(),this.parseVar(u,!0,l),this.finishNode(u,"VariableDeclaration"),(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&u.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===y._in?r>-1&&this.unexpected(r):e.await=r>-1),this.parseForIn(e,u)):(r>-1&&this.unexpected(r),this.parseFor(e,u))}var p=this.isContextual("let"),v=!1,C=new Go,T=this.parseExpression(r>-1?"await":!0,C);return this.type===y._in||(v=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===y._in?r>-1&&this.unexpected(r):e.await=r>-1),p&&v&&this.raise(T.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(T,!1,C),this.checkLValPattern(T),this.parseForIn(e,T)):(this.checkExpressionErrors(C,!0),r>-1&&this.unexpected(r),this.parseFor(e,T))};z.parseFunctionStatement=function(e,r,a){return this.next(),this.parseFunction(e,ss|(a?0:Qf),!1,r)};z.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(y._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};z.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(y.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};z.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(y.braceL),this.labels.push(Cv),this.enterScope(0);for(var r,a=!1;this.type!==y.braceR;)if(this.type===y._case||this.type===y._default){var u=this.type===y._case;r&&this.finishNode(r,"SwitchCase"),e.cases.push(r=this.startNode()),r.consequent=[],this.next(),u?r.test=this.parseExpression():(a&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),a=!0,r.test=null),this.expect(y.colon)}else r||this.unexpected(),r.consequent.push(this.parseStatement(null));return this.exitScope(),r&&this.finishNode(r,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};z.parseThrowStatement=function(e){return this.next(),cr.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Tv=[];z.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),r=e.type==="Identifier";return this.enterScope(r?wp:0),this.checkLValPattern(e,r?bp:cn),this.expect(y.parenR),e};z.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===y._catch){var r=this.startNode();this.next(),this.eat(y.parenL)?r.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),r.param=null,this.enterScope(0)),r.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(y._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};z.parseVarStatement=function(e,r,a){return this.next(),this.parseVar(e,!1,r,a),this.semicolon(),this.finishNode(e,"VariableDeclaration")};z.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(rc),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};z.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};z.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};z.parseLabeledStatement=function(e,r,a,u){for(var l=0,p=this.labels;l=0;T--){var A=this.labels[T];if(A.statementStart===e.start)A.statementStart=this.start,A.kind=C;else break}return this.labels.push({name:r,kind:C,statementStart:this.start}),e.body=this.parseStatement(u?u.indexOf("label")===-1?u+"label":u:"label"),this.labels.pop(),e.label=a,this.finishNode(e,"LabeledStatement")};z.parseExpressionStatement=function(e,r){return e.expression=r,this.semicolon(),this.finishNode(e,"ExpressionStatement")};z.parseBlock=function(e,r,a){for(e===void 0&&(e=!0),r===void 0&&(r=this.startNode()),r.body=[],this.expect(y.braceL),e&&this.enterScope(0);this.type!==y.braceR;){var u=this.parseStatement(null);r.body.push(u)}return a&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(r,"BlockStatement")};z.parseFor=function(e,r){return e.init=r,this.expect(y.semi),e.test=this.type===y.semi?null:this.parseExpression(),this.expect(y.semi),e.update=this.type===y.parenR?null:this.parseExpression(),this.expect(y.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};z.parseForIn=function(e,r){var a=this.type===y._in;return this.next(),r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!a||this.options.ecmaVersion<8||this.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(r.start,(a?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=r,e.right=a?this.parseExpression():this.parseMaybeAssign(),this.expect(y.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,a?"ForInStatement":"ForOfStatement")};z.parseVar=function(e,r,a,u){for(e.declarations=[],e.kind=a;;){var l=this.startNode();if(this.parseVarId(l,a),this.eat(y.eq)?l.init=this.parseMaybeAssign(r):!u&&a==="const"&&!(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!u&&l.id.type!=="Identifier"&&!(r&&(this.type===y._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):l.init=null,e.declarations.push(this.finishNode(l,"VariableDeclarator")),!this.eat(y.comma))break}return e};z.parseVarId=function(e,r){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,r==="var"?tc:cn,!1)};var ss=1,Qf=2,Cp=4;z.parseFunction=function(e,r,a,u,l){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!u)&&(this.type===y.star&&r&Qf&&this.unexpected(),e.generator=this.eat(y.star)),this.options.ecmaVersion>=8&&(e.async=!!u),r&ss&&(e.id=r&Cp&&this.type!==y.name?null:this.parseIdent(),e.id&&!(r&Qf)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?tc:cn:Sp));var p=this.yieldPos,v=this.awaitPos,C=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ec(e.async,e.generator)),r&ss||(e.id=this.type===y.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,a,!1,l),this.yieldPos=p,this.awaitPos=v,this.awaitIdentPos=C,this.finishNode(e,r&ss?"FunctionDeclaration":"FunctionExpression")};z.parseFunctionParams=function(e){this.expect(y.parenL),e.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};z.parseClass=function(e,r){this.next();var a=this.strict;this.strict=!0,this.parseClassId(e,r),this.parseClassSuper(e);var u=this.enterClassBody(),l=this.startNode(),p=!1;for(l.body=[],this.expect(y.braceL);this.type!==y.braceR;){var v=this.parseClassElement(e.superClass!==null);v&&(l.body.push(v),v.type==="MethodDefinition"&&v.kind==="constructor"?(p&&this.raiseRecoverable(v.start,"Duplicate constructor in the same class"),p=!0):v.key&&v.key.type==="PrivateIdentifier"&&Pv(u,v)&&this.raiseRecoverable(v.key.start,"Identifier '#"+v.key.name+"' has already been declared"))}return this.strict=a,this.next(),e.body=this.finishNode(l,"ClassBody"),this.exitClassBody(),this.finishNode(e,r?"ClassDeclaration":"ClassExpression")};z.parseClassElement=function(e){if(this.eat(y.semi))return null;var r=this.options.ecmaVersion,a=this.startNode(),u="",l=!1,p=!1,v="method",C=!1;if(this.eatContextual("static")){if(r>=13&&this.eat(y.braceL))return this.parseClassStaticBlock(a),a;this.isClassElementNameStart()||this.type===y.star?C=!0:u="static"}if(a.static=C,!u&&r>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===y.star)&&!this.canInsertSemicolon()?p=!0:u="async"),!u&&(r>=9||!p)&&this.eat(y.star)&&(l=!0),!u&&!p&&!l){var T=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?v=T:u=T)}if(u?(a.computed=!1,a.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),a.key.name=u,this.finishNode(a.key,"Identifier")):this.parseClassElementName(a),r<13||this.type===y.parenL||v!=="method"||l||p){var A=!a.static&&Uo(a,"constructor"),R=A&&e;A&&v!=="method"&&this.raise(a.key.start,"Constructor can't have get/set modifier"),a.kind=A?"constructor":v,this.parseClassMethod(a,l,p,R)}else this.parseClassField(a);return a};z.isClassElementNameStart=function(){return this.type===y.name||this.type===y.privateId||this.type===y.num||this.type===y.string||this.type===y.bracketL||this.type.keyword};z.parseClassElementName=function(e){this.type===y.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};z.parseClassMethod=function(e,r,a,u){var l=e.key;e.kind==="constructor"?(r&&this.raise(l.start,"Constructor can't be a generator"),a&&this.raise(l.start,"Constructor can't be an async method")):e.static&&Uo(e,"prototype")&&this.raise(l.start,"Classes may not have a static property named prototype");var p=e.value=this.parseMethod(r,a,u);return e.kind==="get"&&p.params.length!==0&&this.raiseRecoverable(p.start,"getter should have no params"),e.kind==="set"&&p.params.length!==1&&this.raiseRecoverable(p.start,"setter should have exactly one param"),e.kind==="set"&&p.params[0].type==="RestElement"&&this.raiseRecoverable(p.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};z.parseClassField=function(e){if(Uo(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Uo(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(y.eq)){var r=this.currentThisScope(),a=r.inClassFieldInit;r.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),r.inClassFieldInit=a}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};z.parseClassStaticBlock=function(e){e.body=[];var r=this.labels;for(this.labels=[],this.enterScope(fs|Xf);this.type!==y.braceR;){var a=this.parseStatement(null);e.body.push(a)}return this.next(),this.exitScope(),this.labels=r,this.finishNode(e,"StaticBlock")};z.parseClassId=function(e,r){this.type===y.name?(e.id=this.parseIdent(),r&&this.checkLValSimple(e.id,cn,!1)):(r===!0&&this.unexpected(),e.id=null)};z.parseClassSuper=function(e){e.superClass=this.eat(y._extends)?this.parseExprSubscripts(null,!1):null};z.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};z.exitClassBody=function(){var e=this.privateNameStack.pop(),r=e.declared,a=e.used;if(!!this.options.checkPrivateFields)for(var u=this.privateNameStack.length,l=u===0?null:this.privateNameStack[u-1],p=0;p=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(r,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==y.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};z.parseExport=function(e,r){if(this.next(),this.eat(y.star))return this.parseExportAllDeclaration(e,r);if(this.eat(y._default))return this.checkExport(r,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(r,e.declaration.declarations):this.checkExport(r,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(r),this.eatContextual("from"))this.type!==y.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,u=e.specifiers;a=13&&this.type===y.string){var e=this.parseLiteral(this.value);return _v.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};z.adaptDirectivePrologue=function(e){for(var r=0;r=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var hr=ft.prototype;hr.toAssignable=function(e,r,a){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",a&&this.checkPatternErrors(a,!0);for(var u=0,l=e.properties;u=8&&!C&&T.name==="async"&&!this.canInsertSemicolon()&&this.eat(y._function))return this.overrideContext(We.f_expr),this.parseFunction(this.startNodeAt(p,v),0,!1,!0,r);if(l&&!this.canInsertSemicolon()){if(this.eat(y.arrow))return this.parseArrowExpression(this.startNodeAt(p,v),[T],!1,r);if(this.options.ecmaVersion>=8&&T.name==="async"&&this.type===y.name&&!C&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return T=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(y.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(p,v),[T],!0,r)}return T;case y.regexp:var A=this.value;return u=this.parseLiteral(A.value),u.regex={pattern:A.pattern,flags:A.flags},u;case y.num:case y.string:return this.parseLiteral(this.value);case y._null:case y._true:case y._false:return u=this.startNode(),u.value=this.type===y._null?null:this.type===y._true,u.raw=this.type.keyword,this.next(),this.finishNode(u,"Literal");case y.parenL:var R=this.start,V=this.parseParenAndDistinguishExpression(l,r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(V)&&(e.parenthesizedAssign=R),e.parenthesizedBind<0&&(e.parenthesizedBind=R)),V;case y.bracketL:return u=this.startNode(),this.next(),u.elements=this.parseExprList(y.bracketR,!0,!0,e),this.finishNode(u,"ArrayExpression");case y.braceL:return this.overrideContext(We.b_expr),this.parseObj(!1,e);case y._function:return u=this.startNode(),this.next(),this.parseFunction(u,0);case y._class:return this.parseClass(this.startNode(),!1);case y._new:return this.parseNew();case y.backQuote:return this.parseTemplate();case y._import:return this.options.ecmaVersion>=11?this.parseExprImport(a):this.unexpected();default:return this.parseExprAtomDefault()}};J.parseExprAtomDefault=function(){this.unexpected()};J.parseExprImport=function(e){var r=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===y.parenL&&!e)return this.parseDynamicImport(r);if(this.type===y.dot){var a=this.startNodeAt(r.start,r.loc&&r.loc.start);return a.name="import",r.meta=this.finishNode(a,"Identifier"),this.parseImportMeta(r)}else this.unexpected()};J.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(y.parenR)){var r=this.start;this.eat(y.comma)&&this.eat(y.parenR)?this.raiseRecoverable(r,"Trailing comma is not allowed in import()"):this.unexpected(r)}return this.finishNode(e,"ImportExpression")};J.parseImportMeta=function(e){this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),r&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};J.parseLiteral=function(e){var r=this.startNode();return r.value=e,r.raw=this.input.slice(this.start,this.end),r.raw.charCodeAt(r.raw.length-1)===110&&(r.bigint=r.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(r,"Literal")};J.parseParenExpression=function(){this.expect(y.parenL);var e=this.parseExpression();return this.expect(y.parenR),e};J.shouldParseArrow=function(e){return!this.canInsertSemicolon()};J.parseParenAndDistinguishExpression=function(e,r){var a=this.start,u=this.startLoc,l,p=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var v=this.start,C=this.startLoc,T=[],A=!0,R=!1,V=new Go,Z=this.yieldPos,ne=this.awaitPos,N;for(this.yieldPos=0,this.awaitPos=0;this.type!==y.parenR;)if(A?A=!1:this.expect(y.comma),p&&this.afterTrailingComma(y.parenR,!0)){R=!0;break}else if(this.type===y.ellipsis){N=this.start,T.push(this.parseParenItem(this.parseRestBinding())),this.type===y.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else T.push(this.parseMaybeAssign(!1,V,this.parseParenItem));var we=this.lastTokEnd,Ne=this.lastTokEndLoc;if(this.expect(y.parenR),e&&this.shouldParseArrow(T)&&this.eat(y.arrow))return this.checkPatternErrors(V,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Z,this.awaitPos=ne,this.parseParenArrowList(a,u,T,r);(!T.length||R)&&this.unexpected(this.lastTokStart),N&&this.unexpected(N),this.checkExpressionErrors(V,!0),this.yieldPos=Z||this.yieldPos,this.awaitPos=ne||this.awaitPos,T.length>1?(l=this.startNodeAt(v,C),l.expressions=T,this.finishNodeAt(l,"SequenceExpression",we,Ne)):l=T[0]}else l=this.parseParenExpression();if(this.options.preserveParens){var K=this.startNodeAt(a,u);return K.expression=l,this.finishNode(K,"ParenthesizedExpression")}else return l};J.parseParenItem=function(e){return e};J.parseParenArrowList=function(e,r,a,u){return this.parseArrowExpression(this.startNodeAt(e,r),a,!1,u)};var Ev=[];J.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===y.dot){var r=this.startNodeAt(e.start,e.loc&&e.loc.start);r.name="new",e.meta=this.finishNode(r,"Identifier"),this.next();var a=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),a&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var u=this.start,l=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),u,l,!0,!1),this.eat(y.parenL)?e.arguments=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Ev,this.finishNode(e,"NewExpression")};J.parseTemplateElement=function(e){var r=e.isTagged,a=this.startNode();return this.type===y.invalidTemplate?(r||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),a.value={raw:this.value,cooked:null}):a.value={raw:this.input.slice(this.start,this.end).replace(/\\r\\n?/g,\` \`),cooked:this.value},this.next(),a.tail=this.type===y.backQuote,this.finishNode(a,"TemplateElement")};J.parseTemplate=function(e){e===void 0&&(e={});var r=e.isTagged;r===void 0&&(r=!1);var a=this.startNode();this.next(),a.expressions=[];var u=this.parseTemplateElement({isTagged:r});for(a.quasis=[u];!u.tail;)this.type===y.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(y.dollarBraceL),a.expressions.push(this.parseExpression()),this.expect(y.braceR),a.quasis.push(u=this.parseTemplateElement({isTagged:r}));return this.next(),this.finishNode(a,"TemplateLiteral")};J.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===y.name||this.type===y.num||this.type===y.string||this.type===y.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===y.star)&&!cr.test(this.input.slice(this.lastTokEnd,this.start))};J.parseObj=function(e,r){var a=this.startNode(),u=!0,l={};for(a.properties=[],this.next();!this.eat(y.braceR);){if(u)u=!1;else if(this.expect(y.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(y.braceR))break;var p=this.parseProperty(e,r);e||this.checkPropClash(p,l,r),a.properties.push(p)}return this.finishNode(a,e?"ObjectPattern":"ObjectExpression")};J.parseProperty=function(e,r){var a=this.startNode(),u,l,p,v;if(this.options.ecmaVersion>=9&&this.eat(y.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===y.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,r),this.type===y.comma&&r&&r.trailingComma<0&&(r.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||r)&&(p=this.start,v=this.startLoc),e||(u=this.eat(y.star)));var C=this.containsEsc;return this.parsePropertyName(a),!e&&!C&&this.options.ecmaVersion>=8&&!u&&this.isAsyncProp(a)?(l=!0,u=this.options.ecmaVersion>=9&&this.eat(y.star),this.parsePropertyName(a)):l=!1,this.parsePropertyValue(a,e,u,l,p,v,r,C),this.finishNode(a,"Property")};J.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var r=e.kind==="get"?0:1;if(e.value.params.length!==r){var a=e.value.start;e.kind==="get"?this.raiseRecoverable(a,"getter should have no params"):this.raiseRecoverable(a,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};J.parsePropertyValue=function(e,r,a,u,l,p,v,C){(a||u)&&this.type===y.colon&&this.unexpected(),this.eat(y.colon)?(e.value=r?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,v),e.kind="init"):this.options.ecmaVersion>=6&&this.type===y.parenL?(r&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(a,u)):!r&&!C&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==y.comma&&this.type!==y.braceR&&this.type!==y.eq?((a||u)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((a||u)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=l),e.kind="init",r?e.value=this.parseMaybeDefault(l,p,this.copyNode(e.key)):this.type===y.eq&&v?(v.shorthandAssign<0&&(v.shorthandAssign=this.start),e.value=this.parseMaybeDefault(l,p,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};J.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(y.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(y.bracketR),e.key;e.computed=!1}return e.key=this.type===y.num||this.type===y.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};J.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};J.parseMethod=function(e,r,a){var u=this.startNode(),l=this.yieldPos,p=this.awaitPos,v=this.awaitIdentPos;return this.initFunction(u),this.options.ecmaVersion>=6&&(u.generator=e),this.options.ecmaVersion>=8&&(u.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ec(r,u.generator)|Xf|(a?_p:0)),this.expect(y.parenL),u.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(u,!1,!0,!1),this.yieldPos=l,this.awaitPos=p,this.awaitIdentPos=v,this.finishNode(u,"FunctionExpression")};J.parseArrowExpression=function(e,r,a,u){var l=this.yieldPos,p=this.awaitPos,v=this.awaitIdentPos;return this.enterScope(ec(a,!1)|vp),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!a),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(r,!0),this.parseFunctionBody(e,!0,!1,u),this.yieldPos=l,this.awaitPos=p,this.awaitIdentPos=v,this.finishNode(e,"ArrowFunctionExpression")};J.parseFunctionBody=function(e,r,a,u){var l=r&&this.type!==y.braceL,p=this.strict,v=!1;if(l)e.body=this.parseMaybeAssign(u),e.expression=!0,this.checkParams(e,!1);else{var C=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!p||C)&&(v=this.strictDirective(this.end),v&&C&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var T=this.labels;this.labels=[],v&&(this.strict=!0),this.checkParams(e,!p&&!v&&!r&&!a&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,kp),e.body=this.parseBlock(!1,void 0,v&&!p),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=T}this.exitScope()};J.isSimpleParamList=function(e){for(var r=0,a=e;r-1||l.functions.indexOf(e)>-1||l.var.indexOf(e)>-1,l.lexical.push(e),this.inModule&&l.flags&us&&delete this.undefinedExports[e]}else if(r===bp){var p=this.currentScope();p.lexical.push(e)}else if(r===Sp){var v=this.currentScope();this.treatFunctionsAsVar?u=v.lexical.indexOf(e)>-1:u=v.lexical.indexOf(e)>-1||v.var.indexOf(e)>-1,v.functions.push(e)}else for(var C=this.scopeStack.length-1;C>=0;--C){var T=this.scopeStack[C];if(T.lexical.indexOf(e)>-1&&!(T.flags&wp&&T.lexical[0]===e)||!this.treatFunctionsAsVarInScope(T)&&T.functions.indexOf(e)>-1){u=!0;break}if(T.var.push(e),this.inModule&&T.flags&us&&delete this.undefinedExports[e],T.flags&Jf)break}u&&this.raiseRecoverable(a,"Identifier '"+e+"' has already been declared")};Wn.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};Wn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Wn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var r=this.scopeStack[e];if(r.flags&Jf)return r}};Wn.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var r=this.scopeStack[e];if(r.flags&Jf&&!(r.flags&vp))return r}};var zo=function(r,a,u){this.type="",this.start=a,this.end=0,r.options.locations&&(this.loc=new qo(r,u)),r.options.directSourceFile&&(this.sourceFile=r.options.directSourceFile),r.options.ranges&&(this.range=[a,0])},cs=ft.prototype;cs.startNode=function(){return new zo(this,this.start,this.startLoc)};cs.startNodeAt=function(e,r){return new zo(this,e,r)};function Pp(e,r,a,u){return e.type=r,e.end=a,this.options.locations&&(e.loc.end=u),this.options.ranges&&(e.range[1]=a),e}cs.finishNode=function(e,r){return Pp.call(this,e,r,this.lastTokEnd,this.lastTokEndLoc)};cs.finishNodeAt=function(e,r,a,u){return Pp.call(this,e,r,a,u)};cs.copyNode=function(e){var r=new zo(this,e.start,this.startLoc);for(var a in e)r[a]=e[a];return r};var Ep="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Dp=Ep+" Extended_Pictographic",Ip=Dp,Mp=Ip+" EBase EComp EMod EPres ExtPict",Ap=Mp,Iv=Ap,Mv={9:Ep,10:Dp,11:Ip,12:Mp,13:Ap,14:Iv},Av="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Ov={9:"",10:"",11:"",12:"",13:"",14:Av},fp="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Op="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Fp=Op+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Np=Fp+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Lp=Np+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Rp=Lp+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Fv=Rp+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Nv={9:Op,10:Fp,11:Np,12:Lp,13:Rp,14:Fv},Wp={};function Lv(e){var r=Wp[e]={binary:Ln(Mv[e]+" "+fp),binaryOfStrings:Ln(Ov[e]),nonBinary:{General_Category:Ln(fp),Script:Ln(Nv[e])}};r.nonBinary.Script_Extensions=r.nonBinary.Script,r.nonBinary.gc=r.nonBinary.General_Category,r.nonBinary.sc=r.nonBinary.Script,r.nonBinary.scx=r.nonBinary.Script_Extensions}for(Bo=0,zf=[9,10,11,12,13,14];Bo=6?"uy":"")+(r.options.ecmaVersion>=9?"s":"")+(r.options.ecmaVersion>=13?"d":"")+(r.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Wp[r.options.ecmaVersion>=14?14:r.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Hr.prototype.reset=function(r,a,u){var l=u.indexOf("v")!==-1,p=u.indexOf("u")!==-1;this.start=r|0,this.source=a+"",this.flags=u,l&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=p&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=p&&this.parser.options.ecmaVersion>=9)};Hr.prototype.raise=function(r){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+r)};Hr.prototype.at=function(r,a){a===void 0&&(a=!1);var u=this.source,l=u.length;if(r>=l)return-1;var p=u.charCodeAt(r);if(!(a||this.switchU)||p<=55295||p>=57344||r+1>=l)return p;var v=u.charCodeAt(r+1);return v>=56320&&v<=57343?(p<<10)+v-56613888:p};Hr.prototype.nextIndex=function(r,a){a===void 0&&(a=!1);var u=this.source,l=u.length;if(r>=l)return l;var p=u.charCodeAt(r),v;return!(a||this.switchU)||p<=55295||p>=57344||r+1>=l||(v=u.charCodeAt(r+1))<56320||v>57343?r+1:r+2};Hr.prototype.current=function(r){return r===void 0&&(r=!1),this.at(this.pos,r)};Hr.prototype.lookahead=function(r){return r===void 0&&(r=!1),this.at(this.nextIndex(this.pos,r),r)};Hr.prototype.advance=function(r){r===void 0&&(r=!1),this.pos=this.nextIndex(this.pos,r)};Hr.prototype.eat=function(r,a){return a===void 0&&(a=!1),this.current(a)===r?(this.advance(a),!0):!1};Hr.prototype.eatChars=function(r,a){a===void 0&&(a=!1);for(var u=this.pos,l=0,p=r;l-1&&this.raise(e.start,"Duplicate regular expression flag"),v==="u"&&(u=!0),v==="v"&&(l=!0)}this.options.ecmaVersion>=15&&u&&l&&this.raise(e.start,"Invalid regular expression flag")};U.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))};U.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var r=0,a=e.backReferenceNames;r=9&&(a=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!a,!0}return e.pos=r,!1};U.regexp_eatQuantifier=function(e,r){return r===void 0&&(r=!1),this.regexp_eatQuantifierPrefix(e,r)?(e.eat(63),!0):!1};U.regexp_eatQuantifierPrefix=function(e,r){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,r)};U.regexp_eatBracedQuantifier=function(e,r){var a=e.pos;if(e.eat(123)){var u=0,l=-1;if(this.regexp_eatDecimalDigits(e)&&(u=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(l=e.lastIntValue),e.eat(125)))return l!==-1&&l=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};U.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};U.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};U.regexp_eatSyntaxCharacter=function(e){var r=e.current();return Yp(r)?(e.lastIntValue=r,e.advance(),!0):!1};function Yp(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}U.regexp_eatPatternCharacters=function(e){for(var r=e.pos,a=0;(a=e.current())!==-1&&!Yp(a);)e.advance();return e.pos!==r};U.regexp_eatExtendedPatternCharacter=function(e){var r=e.current();return r!==-1&&r!==36&&!(r>=40&&r<=43)&&r!==46&&r!==63&&r!==91&&r!==94&&r!==124?(e.advance(),!0):!1};U.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};U.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};U.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Rn(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Rn(e.lastIntValue);return!0}return!1};U.regexp_eatRegExpIdentifierStart=function(e){var r=e.pos,a=this.options.ecmaVersion>=11,u=e.current(a);return e.advance(a),u===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,a)&&(u=e.lastIntValue),Rv(u)?(e.lastIntValue=u,!0):(e.pos=r,!1)};function Rv(e){return ln(e,!0)||e===36||e===95}U.regexp_eatRegExpIdentifierPart=function(e){var r=e.pos,a=this.options.ecmaVersion>=11,u=e.current(a);return e.advance(a),u===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,a)&&(u=e.lastIntValue),Wv(u)?(e.lastIntValue=u,!0):(e.pos=r,!1)};function Wv(e){return aa(e,!0)||e===36||e===95||e===8204||e===8205}U.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};U.regexp_eatBackReference=function(e){var r=e.pos;if(this.regexp_eatDecimalEscape(e)){var a=e.lastIntValue;if(e.switchU)return a>e.maxBackReference&&(e.maxBackReference=a),!0;if(a<=e.numCapturingParens)return!0;e.pos=r}return!1};U.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};U.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};U.regexp_eatCControlLetter=function(e){var r=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=r}return!1};U.regexp_eatZero=function(e){return e.current()===48&&!$o(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};U.regexp_eatControlEscape=function(e){var r=e.current();return r===116?(e.lastIntValue=9,e.advance(),!0):r===110?(e.lastIntValue=10,e.advance(),!0):r===118?(e.lastIntValue=11,e.advance(),!0):r===102?(e.lastIntValue=12,e.advance(),!0):r===114?(e.lastIntValue=13,e.advance(),!0):!1};U.regexp_eatControlLetter=function(e){var r=e.current();return Bp(r)?(e.lastIntValue=r%32,e.advance(),!0):!1};function Bp(e){return e>=65&&e<=90||e>=97&&e<=122}U.regexp_eatRegExpUnicodeEscapeSequence=function(e,r){r===void 0&&(r=!1);var a=e.pos,u=r||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var l=e.lastIntValue;if(u&&l>=55296&&l<=56319){var p=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var v=e.lastIntValue;if(v>=56320&&v<=57343)return e.lastIntValue=(l-55296)*1024+(v-56320)+65536,!0}e.pos=p,e.lastIntValue=l}return!0}if(u&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Yv(e.lastIntValue))return!0;u&&e.raise("Invalid unicode escape"),e.pos=a}return!1};function Yv(e){return e>=0&&e<=1114111}U.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var r=e.current();return r!==99&&(!e.switchN||r!==107)?(e.lastIntValue=r,e.advance(),!0):!1};U.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var r=e.current();if(r>=49&&r<=57){do e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();while((r=e.current())>=48&&r<=57);return!0}return!1};var Vp=0,fn=1,fr=2;U.regexp_eatCharacterClassEscape=function(e){var r=e.current();if(Bv(r))return e.lastIntValue=-1,e.advance(),fn;var a=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((a=r===80)||r===112)){e.lastIntValue=-1,e.advance();var u;if(e.eat(123)&&(u=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return a&&u===fr&&e.raise("Invalid property name"),u;e.raise("Invalid property name")}return Vp};function Bv(e){return e===100||e===68||e===115||e===83||e===119||e===87}U.regexp_eatUnicodePropertyValueExpression=function(e){var r=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var a=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var u=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,a,u),fn}}if(e.pos=r,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var l=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,l)}return Vp};U.regexp_validateUnicodePropertyNameAndValue=function(e,r,a){ls(e.unicodeProperties.nonBinary,r)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[r].test(a)||e.raise("Invalid property value")};U.regexp_validateUnicodePropertyNameOrValue=function(e,r){if(e.unicodeProperties.binary.test(r))return fn;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(r))return fr;e.raise("Invalid property name")};U.regexp_eatUnicodePropertyName=function(e){var r=0;for(e.lastStringValue="";Up(r=e.current());)e.lastStringValue+=Rn(r),e.advance();return e.lastStringValue!==""};function Up(e){return Bp(e)||e===95}U.regexp_eatUnicodePropertyValue=function(e){var r=0;for(e.lastStringValue="";Vv(r=e.current());)e.lastStringValue+=Rn(r),e.advance();return e.lastStringValue!==""};function Vv(e){return Up(e)||$o(e)}U.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};U.regexp_eatCharacterClass=function(e){if(e.eat(91)){var r=e.eat(94),a=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),r&&a===fr&&e.raise("Negated character class may contain strings"),!0}return!1};U.regexp_classContents=function(e){return e.current()===93?fn:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),fn)};U.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var a=e.lastIntValue;e.switchU&&(r===-1||a===-1)&&e.raise("Invalid character class"),r!==-1&&a!==-1&&r>a&&e.raise("Range out of order in character class")}}};U.regexp_eatClassAtom=function(e){var r=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var a=e.current();(a===99||Gp(a))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=r}var u=e.current();return u!==93?(e.lastIntValue=u,e.advance(),!0):!1};U.regexp_eatClassEscape=function(e){var r=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=r}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};U.regexp_classSetExpression=function(e){var r=fn,a;if(!this.regexp_eatClassSetRange(e))if(a=this.regexp_eatClassSetOperand(e)){a===fr&&(r=fr);for(var u=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(a=this.regexp_eatClassSetOperand(e))){a!==fr&&(r=fn);continue}e.raise("Invalid character in character class")}if(u!==e.pos)return r;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(u!==e.pos)return r}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(a=this.regexp_eatClassSetOperand(e),!a)return r;a===fr&&(r=fr)}};U.regexp_eatClassSetRange=function(e){var r=e.pos;if(this.regexp_eatClassSetCharacter(e)){var a=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var u=e.lastIntValue;return a!==-1&&u!==-1&&a>u&&e.raise("Range out of order in character class"),!0}e.pos=r}return!1};U.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?fn:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};U.regexp_eatNestedClass=function(e){var r=e.pos;if(e.eat(91)){var a=e.eat(94),u=this.regexp_classContents(e);if(e.eat(93))return a&&u===fr&&e.raise("Negated character class may contain strings"),u;e.pos=r}if(e.eat(92)){var l=this.regexp_eatCharacterClassEscape(e);if(l)return l;e.pos=r}return null};U.regexp_eatClassStringDisjunction=function(e){var r=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var a=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return a}else e.raise("Invalid escape");e.pos=r}return null};U.regexp_classStringDisjunctionContents=function(e){for(var r=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===fr&&(r=fr);return r};U.regexp_classString=function(e){for(var r=0;this.regexp_eatClassSetCharacter(e);)r++;return r===1?fn:fr};U.regexp_eatClassSetCharacter=function(e){var r=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=r,!1);var a=e.current();return a<0||a===e.lookahead()&&Uv(a)||Hv(a)?!1:(e.advance(),e.lastIntValue=a,!0)};function Uv(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Hv(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}U.regexp_eatClassSetReservedPunctuator=function(e){var r=e.current();return qv(r)?(e.lastIntValue=r,e.advance(),!0):!1};function qv(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}U.regexp_eatClassControlLetter=function(e){var r=e.current();return $o(r)||r===95?(e.lastIntValue=r%32,e.advance(),!0):!1};U.regexp_eatHexEscapeSequence=function(e){var r=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=r}return!1};U.regexp_eatDecimalDigits=function(e){var r=e.pos,a=0;for(e.lastIntValue=0;$o(a=e.current());)e.lastIntValue=10*e.lastIntValue+(a-48),e.advance();return e.pos!==r};function $o(e){return e>=48&&e<=57}U.regexp_eatHexDigits=function(e){var r=e.pos,a=0;for(e.lastIntValue=0;Hp(a=e.current());)e.lastIntValue=16*e.lastIntValue+qp(a),e.advance();return e.pos!==r};function Hp(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function qp(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}U.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var a=e.lastIntValue;r<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=r*64+a*8+e.lastIntValue:e.lastIntValue=r*8+a}else e.lastIntValue=r;return!0}return!1};U.regexp_eatOctalDigit=function(e){var r=e.current();return Gp(r)?(e.lastIntValue=r-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Gp(e){return e>=48&&e<=55}U.regexp_eatFixedHexDigits=function(e,r){var a=e.pos;e.lastIntValue=0;for(var u=0;u=this.input.length)return this.finishToken(y.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};he.readToken=function(e){return ln(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};he.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var r=this.input.charCodeAt(this.pos+1);return r<=56319||r>=57344?e:(e<<10)+r-56613888};he.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),r=this.pos,a=this.input.indexOf("*/",this.pos+=2);if(a===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=a+2,this.options.locations)for(var u=void 0,l=r;(u=dp(this.input,l,this.pos))>-1;)++this.curLine,l=this.lineStart=u;this.options.onComment&&this.options.onComment(!0,this.input.slice(r+2,a),r,this.pos,e,this.curPosition())};he.skipLineComment=function(e){for(var r=this.pos,a=this.options.onComment&&this.curPosition(),u=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&mp.test(String.fromCharCode(e)))++this.pos;else break e}}};he.finishToken=function(e,r){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var a=this.type;this.type=e,this.value=r,this.updateContext(a)};he.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var r=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&r===46?(this.pos+=3,this.finishToken(y.ellipsis)):(++this.pos,this.finishToken(y.dot))};he.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(y.assign,2):this.finishOp(y.slash,1)};he.readToken_mult_modulo_exp=function(e){var r=this.input.charCodeAt(this.pos+1),a=1,u=e===42?y.star:y.modulo;return this.options.ecmaVersion>=7&&e===42&&r===42&&(++a,u=y.starstar,r=this.input.charCodeAt(this.pos+2)),r===61?this.finishOp(y.assign,a+1):this.finishOp(u,a)};he.readToken_pipe_amp=function(e){var r=this.input.charCodeAt(this.pos+1);if(r===e){if(this.options.ecmaVersion>=12){var a=this.input.charCodeAt(this.pos+2);if(a===61)return this.finishOp(y.assign,3)}return this.finishOp(e===124?y.logicalOR:y.logicalAND,2)}return r===61?this.finishOp(y.assign,2):this.finishOp(e===124?y.bitwiseOR:y.bitwiseAND,1)};he.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(y.assign,2):this.finishOp(y.bitwiseXOR,1)};he.readToken_plus_min=function(e){var r=this.input.charCodeAt(this.pos+1);return r===e?r===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||cr.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(y.incDec,2):r===61?this.finishOp(y.assign,2):this.finishOp(y.plusMin,1)};he.readToken_lt_gt=function(e){var r=this.input.charCodeAt(this.pos+1),a=1;return r===e?(a=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+a)===61?this.finishOp(y.assign,a+1):this.finishOp(y.bitShift,a)):r===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(r===61&&(a=2),this.finishOp(y.relational,a))};he.readToken_eq_excl=function(e){var r=this.input.charCodeAt(this.pos+1);return r===61?this.finishOp(y.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&r===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(y.arrow)):this.finishOp(e===61?y.eq:y.prefix,1)};he.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var r=this.input.charCodeAt(this.pos+1);if(r===46){var a=this.input.charCodeAt(this.pos+2);if(a<48||a>57)return this.finishOp(y.questionDot,2)}if(r===63){if(e>=12){var u=this.input.charCodeAt(this.pos+2);if(u===61)return this.finishOp(y.assign,3)}return this.finishOp(y.coalesce,2)}}return this.finishOp(y.question,1)};he.readToken_numberSign=function(){var e=this.options.ecmaVersion,r=35;if(e>=13&&(++this.pos,r=this.fullCharCodeAtPos(),ln(r,!0)||r===92))return this.finishToken(y.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Rn(r)+"'")};he.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(y.parenL);case 41:return++this.pos,this.finishToken(y.parenR);case 59:return++this.pos,this.finishToken(y.semi);case 44:return++this.pos,this.finishToken(y.comma);case 91:return++this.pos,this.finishToken(y.bracketL);case 93:return++this.pos,this.finishToken(y.bracketR);case 123:return++this.pos,this.finishToken(y.braceL);case 125:return++this.pos,this.finishToken(y.braceR);case 58:return++this.pos,this.finishToken(y.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(y.backQuote);case 48:var r=this.input.charCodeAt(this.pos+1);if(r===120||r===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(r===111||r===79)return this.readRadixNumber(8);if(r===98||r===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(y.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Rn(e)+"'")};he.finishOp=function(e,r){var a=this.input.slice(this.pos,this.pos+r);return this.pos+=r,this.finishToken(e,a)};he.readRegexp=function(){for(var e,r,a=this.pos;;){this.pos>=this.input.length&&this.raise(a,"Unterminated regular expression");var u=this.input.charAt(this.pos);if(cr.test(u)&&this.raise(a,"Unterminated regular expression"),e)e=!1;else{if(u==="[")r=!0;else if(u==="]"&&r)r=!1;else if(u==="/"&&!r)break;e=u==="\\\\"}++this.pos}var l=this.input.slice(a,this.pos);++this.pos;var p=this.pos,v=this.readWord1();this.containsEsc&&this.unexpected(p);var C=this.regexpState||(this.regexpState=new Hr(this));C.reset(a,l,v),this.validateRegExpFlags(C),this.validateRegExpPattern(C);var T=null;try{T=new RegExp(l,v)}catch{}return this.finishToken(y.regexp,{pattern:l,flags:v,value:T})};he.readInt=function(e,r,a){for(var u=this.options.ecmaVersion>=12&&r===void 0,l=a&&this.input.charCodeAt(this.pos)===48,p=this.pos,v=0,C=0,T=0,A=r??1/0;T=97?V=R-97+10:R>=65?V=R-65+10:R>=48&&R<=57?V=R-48:V=1/0,V>=e)break;C=R,v=v*e+V}return u&&C===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===p||r!=null&&this.pos-p!==r?null:v};function Gv(e,r){return r?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function zp(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}he.readRadixNumber=function(e){var r=this.pos;this.pos+=2;var a=this.readInt(e);return a==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(a=zp(this.input.slice(r,this.pos)),++this.pos):ln(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,a)};he.readNumber=function(e){var r=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(r,"Invalid number");var a=this.pos-r>=2&&this.input.charCodeAt(r)===48;a&&this.strict&&this.raise(r,"Invalid number");var u=this.input.charCodeAt(this.pos);if(!a&&!e&&this.options.ecmaVersion>=11&&u===110){var l=zp(this.input.slice(r,this.pos));return++this.pos,ln(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,l)}a&&/[89]/.test(this.input.slice(r,this.pos))&&(a=!1),u===46&&!a&&(++this.pos,this.readInt(10),u=this.input.charCodeAt(this.pos)),(u===69||u===101)&&!a&&(u=this.input.charCodeAt(++this.pos),(u===43||u===45)&&++this.pos,this.readInt(10)===null&&this.raise(r,"Invalid number")),ln(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var p=Gv(this.input.slice(r,this.pos),a);return this.finishToken(y.num,p)};he.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),r;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var a=++this.pos;r=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,r>1114111&&this.invalidStringToken(a,"Code point out of bounds")}else r=this.readHexChar(4);return r};he.readString=function(e){for(var r="",a=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var u=this.input.charCodeAt(this.pos);if(u===e)break;u===92?(r+=this.input.slice(a,this.pos),r+=this.readEscapedChar(!1),a=this.pos):u===8232||u===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(sa(u)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return r+=this.input.slice(a,this.pos++),this.finishToken(y.string,r)};var $p={};he.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===$p)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};he.invalidStringToken=function(e,r){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw $p;this.raise(e,r)};he.readTmplToken=function(){for(var e="",r=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var a=this.input.charCodeAt(this.pos);if(a===96||a===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===y.template||this.type===y.invalidTemplate)?a===36?(this.pos+=2,this.finishToken(y.dollarBraceL)):(++this.pos,this.finishToken(y.backQuote)):(e+=this.input.slice(r,this.pos),this.finishToken(y.template,e));if(a===92)e+=this.input.slice(r,this.pos),e+=this.readEscapedChar(!0),r=this.pos;else if(sa(a)){switch(e+=this.input.slice(r,this.pos),++this.pos,a){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=\` @@ -88050,7 +88236,7 @@ function print() { __p += __j.call(arguments, '') } [\`+se+"] ";for(Te in arguments[0])a(arguments[0],Te)&&(G+=Te+": "+arguments[0][Te]+", ");G=G.slice(0,-2)}else G=arguments[se];z.push(G)}O(g+\` Arguments: \`+Array.prototype.slice.call(z).join("")+\` \`+new Error().stack),P=!1}return N.apply(this,arguments)},N)}var M={};function _(g,N){r.deprecationHandler!=null&&r.deprecationHandler(g,N),M[g]||(O(N),M[g]=!0)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null;function k(g){return typeof Function<"u"&&g instanceof Function||Object.prototype.toString.call(g)==="[object Function]"}function L(g){var N,P;for(P in g)a(g,P)&&(N=g[P],k(N)?this[P]=N:this["_"+P]=N);this._config=g,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\\d{1,2}/.source)}function Y(g,N){var P=p({},g),z;for(z in N)a(N,z)&&(i(g[z])&&i(N[z])?(P[z]={},p(P[z],g[z]),p(P[z],N[z])):N[z]!=null?P[z]=N[z]:delete P[z]);for(z in g)a(g,z)&&!a(N,z)&&i(g[z])&&(P[z]=p({},P[z]));return P}function $(g){g!=null&&this.set(g)}var V;Object.keys?V=Object.keys:V=function(g){var N,P=[];for(N in g)a(g,N)&&P.push(N);return P};var q={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function R(g,N,P){var z=this._calendar[g]||this._calendar.sameElse;return k(z)?z.call(N,P):z}function j(g,N,P){var z=""+Math.abs(g),G=N-z.length,se=g>=0;return(se?P?"+":"":"-")+Math.pow(10,Math.max(0,G)).toString().substr(1)+z}var U=/(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,oe=/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,me={},ie={};function H(g,N,P,z){var G=z;typeof z=="string"&&(G=function(){return this[z]()}),g&&(ie[g]=G),N&&(ie[N[0]]=function(){return j(G.apply(this,arguments),N[1],N[2])}),P&&(ie[P]=function(){return this.localeData().ordinal(G.apply(this,arguments),g)})}function ce(g){return g.match(/\\[[\\s\\S]/)?g.replace(/^\\[|\\]$/g,""):g.replace(/\\\\/g,"")}function Me(g){var N=g.match(U),P,z;for(P=0,z=N.length;P=0&&oe.test(g);)g=g.replace(oe,z),oe.lastIndex=0,P-=1;return g}var Se={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function xe(g){var N=this._longDateFormat[g],P=this._longDateFormat[g.toUpperCase()];return N||!P?N:(this._longDateFormat[g]=P.match(U).map(function(z){return z==="MMMM"||z==="MM"||z==="DD"||z==="dddd"?z.slice(1):z}).join(""),this._longDateFormat[g])}var be="Invalid date";function De(){return this._invalidDate}var Ae="%d",ze=/\\d{1,2}/;function Ze(g){return this._ordinal.replace("%d",g)}var K={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function te(g,N,P,z){var G=this._relativeTime[P];return k(G)?G(g,N,P,z):G.replace(/%d/i,g)}function ye(g,N){var P=this._relativeTime[g>0?"future":"past"];return k(P)?P(N):P.replace(/%s/i,N)}var ee={};function ne(g,N){var P=g.toLowerCase();ee[P]=ee[P+"s"]=ee[N]=g}function ue(g){return typeof g=="string"?ee[g]||ee[g.toLowerCase()]:void 0}function Ee(g){var N={},P,z;for(z in g)a(g,z)&&(P=ue(z),P&&(N[P]=g[z]));return N}var Ce={};function Le(g,N){Ce[g]=N}function Ie(g){var N=[],P;for(P in g)a(g,P)&&N.push({unit:P,priority:Ce[P]});return N.sort(function(z,G){return z.priority-G.priority}),N}function sr(g){return g%4===0&&g%100!==0||g%400===0}function ir(g){return g<0?Math.ceil(g)||0:Math.floor(g)}function Xe(g){var N=+g,P=0;return N!==0&&isFinite(N)&&(P=ir(N)),P}function Or(g,N){return function(P){return P!=null?(le(this,g,P),r.updateOffset(this,N),this):re(this,g)}}function re(g,N){return g.isValid()?g._d["get"+(g._isUTC?"UTC":"")+N]():NaN}function le(g,N,P){g.isValid()&&!isNaN(P)&&(N==="FullYear"&&sr(g.year())&&g.month()===1&&g.date()===29?(P=Xe(P),g._d["set"+(g._isUTC?"UTC":"")+N](P,g.month(),Ha(P,g.month()))):g._d["set"+(g._isUTC?"UTC":"")+N](P))}function we(g){return g=ue(g),k(this[g])?this[g]():this}function Oe(g,N){if(typeof g=="object"){g=Ee(g);var P=Ie(g),z,G=P.length;for(z=0;z68?1900:2e3)};var Fu=Or("FullYear",!0);function im(){return sr(this.year())}function Pf(g,N,P,z,G,se,Te){var mr;return g<100&&g>=0?(mr=new Date(g+400,N,P,z,G,se,Te),isFinite(mr.getFullYear())&&mr.setFullYear(g)):mr=new Date(g,N,P,z,G,se,Te),mr}function Ga(g){var N,P;return g<100&&g>=0?(P=Array.prototype.slice.call(arguments),P[0]=g+400,N=new Date(Date.UTC.apply(null,P)),isFinite(N.getUTCFullYear())&&N.setUTCFullYear(g)):N=new Date(Date.UTC.apply(null,arguments)),N}function $a(g,N,P){var z=7+N-P,G=(7+Ga(g,0,z).getUTCDay()-N)%7;return-G+z-1}function kf(g,N,P,z,G){var se=(7+P-z)%7,Te=$a(g,z,G),mr=1+7*(N-1)+se+Te,Tr,et;return mr<=0?(Tr=g-1,et=Xi(Tr)+mr):mr>Xi(g)?(Tr=g+1,et=mr-Xi(g)):(Tr=g,et=mr),{year:Tr,dayOfYear:et}}function Za(g,N,P){var z=$a(g.year(),N,P),G=Math.floor((g.dayOfYear()-z-1)/7)+1,se,Te;return G<1?(Te=g.year()-1,se=G+Vn(Te,N,P)):G>Vn(g.year(),N,P)?(se=G-Vn(g.year(),N,P),Te=g.year()+1):(Te=g.year(),se=G),{week:se,year:Te}}function Vn(g,N,P){var z=$a(g,N,P),G=$a(g+1,N,P);return(Xi(g)-z+G)/7}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),Le("week",5),Le("isoWeek",5),rr("w",Q),rr("ww",Q,_e),rr("W",Q),rr("WW",Q,_e),va(["w","ww","W","WW"],function(g,N,P,z){N[z.substr(0,1)]=Xe(g)});function Ou(g){return Za(g,this._week.dow,this._week.doy).week}var Qa={dow:0,doy:6};function Rf(){return this._week.dow}function Lf(){return this._week.doy}function am(g){var N=this.localeData().week(this);return g==null?N:this.add((g-N)*7,"d")}function qf(g){var N=Za(this,1,4).week;return g==null?N:this.add((g-N)*7,"d")}H("d",0,"do","day"),H("dd",0,0,function(g){return this.localeData().weekdaysMin(this,g)}),H("ddd",0,0,function(g){return this.localeData().weekdaysShort(this,g)}),H("dddd",0,0,function(g){return this.localeData().weekdays(this,g)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),Le("day",11),Le("weekday",11),Le("isoWeekday",11),rr("d",Q),rr("e",Q),rr("E",Q),rr("dd",function(g,N){return N.weekdaysMinRegex(g)}),rr("ddd",function(g,N){return N.weekdaysShortRegex(g)}),rr("dddd",function(g,N){return N.weekdaysRegex(g)}),va(["dd","ddd","dddd"],function(g,N,P,z){var G=P._locale.weekdaysParse(g,z,P._strict);G!=null?N.d=G:x(P).invalidWeekday=g}),va(["d","e","E"],function(g,N,P,z){N[z]=Xe(g)});function Uf(g,N){return typeof g!="string"?g:isNaN(g)?(g=N.weekdaysParse(g),typeof g=="number"?g:null):parseInt(g,10)}function zf(g,N){return typeof g=="string"?N.weekdaysParse(g)%7||7:isNaN(g)?null:g}function ps(g,N){return g.slice(N,7).concat(g.slice(0,N))}var om="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Wf="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),sm="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Vf=Ei,um=Ei,fm=Ei;function lm(g,N){var P=n(this._weekdays)?this._weekdays:this._weekdays[g&&g!==!0&&this._weekdays.isFormat.test(N)?"format":"standalone"];return g===!0?ps(P,this._week.dow):g?P[g.day()]:P}function cm(g){return g===!0?ps(this._weekdaysShort,this._week.dow):g?this._weekdaysShort[g.day()]:this._weekdaysShort}function Bu(g){return g===!0?ps(this._weekdaysMin,this._week.dow):g?this._weekdaysMin[g.day()]:this._weekdaysMin}function pm(g,N,P){var z,G,se,Te=g.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],z=0;z<7;++z)se=h([2e3,1]).day(z),this._minWeekdaysParse[z]=this.weekdaysMin(se,"").toLocaleLowerCase(),this._shortWeekdaysParse[z]=this.weekdaysShort(se,"").toLocaleLowerCase(),this._weekdaysParse[z]=this.weekdays(se,"").toLocaleLowerCase();return P?N==="dddd"?(G=pt.call(this._weekdaysParse,Te),G!==-1?G:null):N==="ddd"?(G=pt.call(this._shortWeekdaysParse,Te),G!==-1?G:null):(G=pt.call(this._minWeekdaysParse,Te),G!==-1?G:null):N==="dddd"?(G=pt.call(this._weekdaysParse,Te),G!==-1||(G=pt.call(this._shortWeekdaysParse,Te),G!==-1)?G:(G=pt.call(this._minWeekdaysParse,Te),G!==-1?G:null)):N==="ddd"?(G=pt.call(this._shortWeekdaysParse,Te),G!==-1||(G=pt.call(this._weekdaysParse,Te),G!==-1)?G:(G=pt.call(this._minWeekdaysParse,Te),G!==-1?G:null)):(G=pt.call(this._minWeekdaysParse,Te),G!==-1||(G=pt.call(this._weekdaysParse,Te),G!==-1)?G:(G=pt.call(this._shortWeekdaysParse,Te),G!==-1?G:null))}function mm(g,N,P){var z,G,se;if(this._weekdaysParseExact)return pm.call(this,g,N,P);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),z=0;z<7;z++){if(G=h([2e3,1]).day(z),P&&!this._fullWeekdaysParse[z]&&(this._fullWeekdaysParse[z]=new RegExp("^"+this.weekdays(G,"").replace(".","\\\\.?")+"$","i"),this._shortWeekdaysParse[z]=new RegExp("^"+this.weekdaysShort(G,"").replace(".","\\\\.?")+"$","i"),this._minWeekdaysParse[z]=new RegExp("^"+this.weekdaysMin(G,"").replace(".","\\\\.?")+"$","i")),this._weekdaysParse[z]||(se="^"+this.weekdays(G,"")+"|^"+this.weekdaysShort(G,"")+"|^"+this.weekdaysMin(G,""),this._weekdaysParse[z]=new RegExp(se.replace(".",""),"i")),P&&N==="dddd"&&this._fullWeekdaysParse[z].test(g))return z;if(P&&N==="ddd"&&this._shortWeekdaysParse[z].test(g))return z;if(P&&N==="dd"&&this._minWeekdaysParse[z].test(g))return z;if(!P&&this._weekdaysParse[z].test(g))return z}}function hm(g){if(!this.isValid())return g!=null?this:NaN;var N=this._isUTC?this._d.getUTCDay():this._d.getDay();return g!=null?(g=Uf(g,this.localeData()),this.add(g-N,"d")):N}function dm(g){if(!this.isValid())return g!=null?this:NaN;var N=(this.day()+7-this.localeData()._week.dow)%7;return g==null?N:this.add(g-N,"d")}function vm(g){if(!this.isValid())return g!=null?this:NaN;if(g!=null){var N=zf(g,this.localeData());return this.day(this.day()%7?N:N-7)}else return this.day()||7}function dt(g){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Iu.call(this),g?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Vf),this._weekdaysStrictRegex&&g?this._weekdaysStrictRegex:this._weekdaysRegex)}function mt(g){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Iu.call(this),g?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=um),this._weekdaysShortStrictRegex&&g?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function gm(g){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Iu.call(this),g?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=fm),this._weekdaysMinStrictRegex&&g?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Iu(){function g(sn,oi){return oi.length-sn.length}var N=[],P=[],z=[],G=[],se,Te,mr,Tr,et;for(se=0;se<7;se++)Te=h([2e3,1]).day(se),mr=nn(this.weekdaysMin(Te,"")),Tr=nn(this.weekdaysShort(Te,"")),et=nn(this.weekdays(Te,"")),N.push(mr),P.push(Tr),z.push(et),G.push(mr),G.push(Tr),G.push(et);N.sort(g),P.sort(g),z.sort(g),G.sort(g),this._weekdaysRegex=new RegExp("^("+G.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+z.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+P.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+N.join("|")+")","i")}function Pu(){return this.hours()%12||12}function xm(){return this.hours()||24}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Pu),H("k",["kk",2],0,xm),H("hmm",0,0,function(){return""+Pu.apply(this)+j(this.minutes(),2)}),H("hmmss",0,0,function(){return""+Pu.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)});function Yf(g,N){H(g,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),N)})}Yf("a",!0),Yf("A",!1),ne("hour","h"),Le("hour",13);function Hf(g,N){return N._meridiemParse}rr("a",Hf),rr("A",Hf),rr("H",Q),rr("h",Q),rr("k",Q),rr("HH",Q,_e),rr("hh",Q,_e),rr("kk",Q,_e),rr("hmm",ve),rr("hmmss",Be),rr("Hmm",ve),rr("Hmmss",Be),nt(["H","HH"],At),nt(["k","kk"],function(g,N,P){var z=Xe(g);N[At]=z===24?0:z}),nt(["a","A"],function(g,N,P){P._isPm=P._locale.isPM(g),P._meridiem=g}),nt(["h","hh"],function(g,N,P){N[At]=Xe(g),x(P).bigHour=!0}),nt("hmm",function(g,N,P){var z=g.length-2;N[At]=Xe(g.substr(0,z)),N[gn]=Xe(g.substr(z)),x(P).bigHour=!0}),nt("hmmss",function(g,N,P){var z=g.length-4,G=g.length-2;N[At]=Xe(g.substr(0,z)),N[gn]=Xe(g.substr(z,2)),N[Wn]=Xe(g.substr(G)),x(P).bigHour=!0}),nt("Hmm",function(g,N,P){var z=g.length-2;N[At]=Xe(g.substr(0,z)),N[gn]=Xe(g.substr(z))}),nt("Hmmss",function(g,N,P){var z=g.length-4,G=g.length-2;N[At]=Xe(g.substr(0,z)),N[gn]=Xe(g.substr(z,2)),N[Wn]=Xe(g.substr(G))});function Gf(g){return(g+"").toLowerCase().charAt(0)==="p"}var ym=/[ap]\\.?m?\\.?/i,Wt=Or("Hours",!0);function ku(g,N,P){return g>11?P?"pm":"PM":P?"am":"AM"}var Ji={calendar:q,longDateFormat:Se,invalidDate:be,ordinal:Ae,dayOfMonthOrdinalParse:ze,relativeTime:K,months:Cu,monthsShort:us,week:Qa,weekdays:om,weekdaysMin:sm,weekdaysShort:Wf,meridiemParse:ym},vt={},xa={},en;function $f(g,N){var P,z=Math.min(g.length,N.length);for(P=0;P0;){if(G=_o(se.slice(0,P).join("-")),G)return G;if(z&&z.length>=P&&$f(se,z)>=P-1)break;P--}N++}return en}function Qf(g){return g.match("^[^/\\\\\\\\]*$")!=null}function _o(g){var N=null,P;if(vt[g]===void 0&&typeof zs<"u"&&zs&&zs.exports&&Qf(g))try{N=en._abbr,P=require,P("./locale/"+g),_i(N)}catch{vt[g]=null}return vt[g]}function _i(g,N){var P;return g&&(c(N)?P=Tt(g):P=an(g,N),P?en=P:typeof console<"u"&&console.warn&&console.warn("Locale "+g+" not found. Did you forget to load it?")),en._abbr}function an(g,N){if(N!==null){var P,z=Ji;if(N.abbr=g,vt[g]!=null)_("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),z=vt[g]._config;else if(N.parentLocale!=null)if(vt[N.parentLocale]!=null)z=vt[N.parentLocale]._config;else if(P=_o(N.parentLocale),P!=null)z=P._config;else return xa[N.parentLocale]||(xa[N.parentLocale]=[]),xa[N.parentLocale].push({name:g,config:N}),null;return vt[g]=new $(Y(z,N)),xa[g]&&xa[g].forEach(function(G){an(G.name,G.config)}),_i(g),vt[g]}else return delete vt[g],null}function bm(g,N){if(N!=null){var P,z,G=Ji;vt[g]!=null&&vt[g].parentLocale!=null?vt[g].set(Y(vt[g]._config,N)):(z=_o(g),z!=null&&(G=z._config),N=Y(G,N),z==null&&(N.abbr=g),P=new $(N),P.parentLocale=vt[g],vt[g]=P),_i(g)}else vt[g]!=null&&(vt[g].parentLocale!=null?(vt[g]=vt[g].parentLocale,g===_i()&&_i(g)):vt[g]!=null&&delete vt[g]);return vt[g]}function Tt(g){var N;if(g&&g._locale&&g._locale._abbr&&(g=g._locale._abbr),!g)return en;if(!n(g)){if(N=_o(g),N)return N;g=[g]}return Zf(g)}function wm(){return V(vt)}function ms(g){var N,P=g._a;return P&&x(g).overflow===-2&&(N=P[En]<0||P[En]>11?En:P[Cn]<1||P[Cn]>Ha(P[zt],P[En])?Cn:P[At]<0||P[At]>24||P[At]===24&&(P[gn]!==0||P[Wn]!==0||P[Ci]!==0)?At:P[gn]<0||P[gn]>59?gn:P[Wn]<0||P[Wn]>59?Wn:P[Ci]<0||P[Ci]>999?Ci:-1,x(g)._overflowDayOfYear&&(NCn)&&(N=Cn),x(g)._overflowWeeks&&N===-1&&(N=Au),x(g)._overflowWeekday&&N===-1&&(N=Ya),x(g).overflow=N),g}var Ki=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,hs=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,Lu=/Z|[+-]\\d\\d(?::?\\d\\d)?/,ct=[["YYYYYY-MM-DD",/[+-]\\d{6}-\\d\\d-\\d\\d/],["YYYY-MM-DD",/\\d{4}-\\d\\d-\\d\\d/],["GGGG-[W]WW-E",/\\d{4}-W\\d\\d-\\d/],["GGGG-[W]WW",/\\d{4}-W\\d\\d/,!1],["YYYY-DDD",/\\d{4}-\\d{3}/],["YYYY-MM",/\\d{4}-\\d\\d/,!1],["YYYYYYMMDD",/[+-]\\d{10}/],["YYYYMMDD",/\\d{8}/],["GGGG[W]WWE",/\\d{4}W\\d{3}/],["GGGG[W]WW",/\\d{4}W\\d{2}/,!1],["YYYYDDD",/\\d{7}/],["YYYYMM",/\\d{6}/,!1],["YYYY",/\\d{4}/,!1]],ri=[["HH:mm:ss.SSSS",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],["HH:mm:ss,SSSS",/\\d\\d:\\d\\d:\\d\\d,\\d+/],["HH:mm:ss",/\\d\\d:\\d\\d:\\d\\d/],["HH:mm",/\\d\\d:\\d\\d/],["HHmmss.SSSS",/\\d\\d\\d\\d\\d\\d\\.\\d+/],["HHmmss,SSSS",/\\d\\d\\d\\d\\d\\d,\\d+/],["HHmmss",/\\d\\d\\d\\d\\d\\d/],["HHmm",/\\d\\d\\d\\d/],["HH",/\\d\\d/]],qu=/^\\/?Date\\((-?\\d+)/i,Dm=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/,Uu={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Xf(g){var N,P,z=g._i,G=Ki.exec(z)||hs.exec(z),se,Te,mr,Tr,et=ct.length,sn=ri.length;if(G){for(x(g).iso=!0,N=0,P=et;NXi(Te)||g._dayOfYear===0)&&(x(g)._overflowDayOfYear=!0),P=Ga(Te,0,g._dayOfYear),g._a[En]=P.getUTCMonth(),g._a[Cn]=P.getUTCDate()),N=0;N<3&&g._a[N]==null;++N)g._a[N]=z[N]=G[N];for(;N<7;N++)g._a[N]=z[N]=g._a[N]==null?N===2?1:0:g._a[N];g._a[At]===24&&g._a[gn]===0&&g._a[Wn]===0&&g._a[Ci]===0&&(g._nextDay=!0,g._a[At]=0),g._d=(g._useUTC?Ga:Pf).apply(null,z),se=g._useUTC?g._d.getUTCDay():g._d.getDay(),g._tzm!=null&&g._d.setUTCMinutes(g._d.getUTCMinutes()-g._tzm),g._nextDay&&(g._a[At]=24),g._w&&typeof g._w.d<"u"&&g._w.d!==se&&(x(g).weekdayMismatch=!0)}}function el(g){var N,P,z,G,se,Te,mr,Tr,et;N=g._w,N.GG!=null||N.W!=null||N.E!=null?(se=1,Te=4,P=ya(N.GG,g._a[zt],Za(ht(),1,4).year),z=ya(N.W,1),G=ya(N.E,1),(G<1||G>7)&&(Tr=!0)):(se=g._locale._week.dow,Te=g._locale._week.doy,et=Za(ht(),se,Te),P=ya(N.gg,g._a[zt],et.year),z=ya(N.w,et.week),N.d!=null?(G=N.d,(G<0||G>6)&&(Tr=!0)):N.e!=null?(G=N.e+se,(N.e<0||N.e>6)&&(Tr=!0)):G=se),z<1||z>Vn(P,se,Te)?x(g)._overflowWeeks=!0:Tr!=null?x(g)._overflowWeekday=!0:(mr=kf(P,z,G,se,Te),g._a[zt]=mr.year,g._dayOfYear=mr.dayOfYear)}r.ISO_8601=function(){},r.RFC_2822=function(){};function Wu(g){if(g._f===r.ISO_8601){Xf(g);return}if(g._f===r.RFC_2822){Kf(g);return}g._a=[],x(g).empty=!0;var N=""+g._i,P,z,G,se,Te,mr=N.length,Tr=0,et,sn;for(G=ge(g._f,g._locale).match(U)||[],sn=G.length,P=0;P0&&x(g).unusedInput.push(Te),N=N.slice(N.indexOf(z)+z.length),Tr+=z.length),ie[se]?(z?x(g).empty=!1:x(g).unusedTokens.push(se),Nu(se,z,g)):g._strict&&!z&&x(g).unusedTokens.push(se);x(g).charsLeftOver=mr-Tr,N.length>0&&x(g).unusedInput.push(N),g._a[At]<=12&&x(g).bigHour===!0&&g._a[At]>0&&(x(g).bigHour=void 0),x(g).parsedDateParts=g._a.slice(0),x(g).meridiem=g._meridiem,g._a[At]=Vu(g._locale,g._a[At],g._meridiem),et=x(g).era,et!==null&&(g._a[zt]=g._locale.erasConvertYear(et,g._a[zt])),To(g),ms(g)}function Vu(g,N,P){var z;return P==null?N:g.meridiemHour!=null?g.meridiemHour(N,P):(g.isPM!=null&&(z=g.isPM(P),z&&N<12&&(N+=12),!z&&N===12&&(N=0)),N)}function Yu(g){var N,P,z,G,se,Te,mr=!1,Tr=g._f.length;if(Tr===0){x(g).invalidFormat=!0,g._d=new Date(NaN);return}for(G=0;Gthis?this:g:w()});function nl(g,N){var P,z;if(N.length===1&&n(N[0])&&(N=N[0]),!N.length)return ht();for(P=N[0],z=1;zthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Fe(){if(!c(this._isDSTShifted))return this._isDSTShifted;var g={},N;return A(g,this),g=cn(g),g._a?(N=g._isUTC?h(g._a):ht(g._a),this._isDSTShifted=this.isValid()&&Om(g._a,N.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ne(){return this.isValid()?!this._isUTC:!1}function nr(){return this.isValid()?this._isUTC:!1}function Nr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var jr=/^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,Pt=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kr(g,N){var P=g,z=null,G,se,Te;return Yn(g)?P={ms:g._milliseconds,d:g._days,M:g._months}:f(g)||!isNaN(+g)?(P={},N?P[N]=+g:P.milliseconds=+g):(z=jr.exec(g))?(G=z[1]==="-"?-1:1,P={y:0,d:Xe(z[Cn])*G,h:Xe(z[At])*G,m:Xe(z[gn])*G,s:Xe(z[Wn])*G,ms:Xe(Ka(z[Ci]*1e3))*G}):(z=Pt.exec(g))?(G=z[1]==="-"?-1:1,P={y:Ti(z[2],G),M:Ti(z[3],G),w:Ti(z[4],G),d:Ti(z[5],G),h:Ti(z[6],G),m:Ti(z[7],G),s:Ti(z[8],G)}):P==null?P={}:typeof P=="object"&&("from"in P||"to"in P)&&(Te=Mn(ht(P.from),ht(P.to)),P={},P.ms=Te.milliseconds,P.M=Te.months),se=new Fo(P),Yn(g)&&a(g,"_locale")&&(se._locale=g._locale),Yn(g)&&a(g,"_isValid")&&(se._isValid=g._isValid),se}kr.fn=Fo.prototype,kr.invalid=Gu;function Ti(g,N){var P=g&&parseFloat(g.replace(",","."));return(isNaN(P)?0:P)*N}function al(g,N){var P={};return P.months=N.month()-g.month()+(N.year()-g.year())*12,g.clone().add(P.months,"M").isAfter(N)&&--P.months,P.milliseconds=+N-+g.clone().add(P.months,"M"),P}function Mn(g,N){var P;return g.isValid()&&N.isValid()?(N=xn(N,g),g.isBefore(N)?P=al(g,N):(P=al(N,g),P.milliseconds=-P.milliseconds,P.months=-P.months),P):{milliseconds:0,months:0}}function Oo(g,N){return function(P,z){var G,se;return z!==null&&!isNaN(+z)&&(_(N,"moment()."+N+"(period, number) is deprecated. Please use moment()."+N+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),se=P,P=z,z=se),G=kr(P,z),ol(this,G,g),this}}function ol(g,N,P,z){var G=N._milliseconds,se=Ka(N._days),Te=Ka(N._months);!g.isValid()||(z=z??!0,Te&&Qi(g,re(g,"Month")+Te*P),se&&le(g,"Date",re(g,"Date")+se*P),G&&g._d.setTime(g._d.valueOf()+G*P),z&&r.updateOffset(g,se||Te))}var ja=Oo(1,"add"),gs=Oo(-1,"subtract");function Bo(g){return typeof g=="string"||g instanceof String}function at(g){return S(g)||o(g)||Bo(g)||f(g)||sl(g)||qm(g)||g===null||g===void 0}function qm(g){var N=i(g)&&!s(g),P=!1,z=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],G,se,Te=z.length;for(G=0;GP.valueOf():P.valueOf()9999?pe(P,N?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?N?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",pe(P,"Z")):pe(P,N?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function wa(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var g="moment",N="",P,z,G,se;return this.isLocal()||(g=this.utcOffset()===0?"moment.utc":"moment.parseZone",N="Z"),P="["+g+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",G="-MM-DD[T]HH:mm:ss.SSS",se=N+'[")]',this.format(P+z+G+se)}function Ds(g){g||(g=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var N=pe(this,g);return this.localeData().postformat(N)}function Vm(g,N){return this.isValid()&&(S(g)&&g.isValid()||ht(g).isValid())?kr({to:this,from:g}).locale(this.locale()).humanize(!N):this.localeData().invalidDate()}function Ym(g){return this.from(ht(),g)}function Hm(g,N){return this.isValid()&&(S(g)&&g.isValid()||ht(g).isValid())?kr({from:this,to:g}).locale(this.locale()).humanize(!N):this.localeData().invalidDate()}function Ss(g){return this.to(ht(),g)}function Po(g){var N;return g===void 0?this._locale._abbr:(N=Tt(g),N!=null&&(this._locale=N),this)}var Ns=F("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(g){return g===void 0?this.localeData():this.locale(g)});function pl(){return this._locale}var ko=1e3,eo=60*ko,As=60*eo,Ft=(365*400+97)*24*As;function Et(g,N){return(g%N+N)%N}function ml(g,N,P){return g<100&&g>=0?new Date(g+400,N,P)-Ft:new Date(g,N,P).valueOf()}function hl(g,N,P){return g<100&&g>=0?Date.UTC(g+400,N,P)-Ft:Date.UTC(g,N,P)}function dl(g){var N,P;if(g=ue(g),g===void 0||g==="millisecond"||!this.isValid())return this;switch(P=this._isUTC?hl:ml,g){case"year":N=P(this.year(),0,1);break;case"quarter":N=P(this.year(),this.month()-this.month()%3,1);break;case"month":N=P(this.year(),this.month(),1);break;case"week":N=P(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":N=P(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":N=P(this.year(),this.month(),this.date());break;case"hour":N=this._d.valueOf(),N-=Et(N+(this._isUTC?0:this.utcOffset()*eo),As);break;case"minute":N=this._d.valueOf(),N-=Et(N,eo);break;case"second":N=this._d.valueOf(),N-=Et(N,ko);break}return this._d.setTime(N),r.updateOffset(this,!0),this}function Gm(g){var N,P;if(g=ue(g),g===void 0||g==="millisecond"||!this.isValid())return this;switch(P=this._isUTC?hl:ml,g){case"year":N=P(this.year()+1,0,1)-1;break;case"quarter":N=P(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":N=P(this.year(),this.month()+1,1)-1;break;case"week":N=P(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":N=P(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":N=P(this.year(),this.month(),this.date()+1)-1;break;case"hour":N=this._d.valueOf(),N+=As-Et(N+(this._isUTC?0:this.utcOffset()*eo),As)-1;break;case"minute":N=this._d.valueOf(),N+=eo-Et(N,eo)-1;break;case"second":N=this._d.valueOf(),N+=ko-Et(N,ko)-1;break}return this._d.setTime(N),r.updateOffset(this,!0),this}function $u(){return this._d.valueOf()-(this._offset||0)*6e4}function Ro(){return Math.floor(this.valueOf()/1e3)}function Zu(){return new Date(this.valueOf())}function ro(){var g=this;return[g.year(),g.month(),g.date(),g.hour(),g.minute(),g.second(),g.millisecond()]}function Lo(){var g=this;return{years:g.year(),months:g.month(),date:g.date(),hours:g.hours(),minutes:g.minutes(),seconds:g.seconds(),milliseconds:g.milliseconds()}}function qo(){return this.isValid()?this.toISOString():null}function Es(){return y(this)}function to(){return p({},x(this))}function $m(){return x(this).overflow}function Zm(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),rr("N",Ir),rr("NN",Ir),rr("NNN",Ir),rr("NNNN",Km),rr("NNNNN",jm),nt(["N","NN","NNN","NNNN","NNNNN"],function(g,N,P,z){var G=P._locale.erasParse(g,z,P._strict);G?x(P).era=G:x(P).invalidEra=g}),rr("y",_t),rr("yy",_t),rr("yyy",_t),rr("yyyy",_t),rr("yo",eh),nt(["y","yy","yyy","yyyy"],zt),nt(["yo"],function(g,N,P,z){var G;P._locale._eraYearOrdinalRegex&&(G=g.match(P._locale._eraYearOrdinalRegex)),P._locale.eraYearOrdinalParse?N[zt]=P._locale.eraYearOrdinalParse(g,G):N[zt]=parseInt(g,10)});function Qm(g,N){var P,z,G,se=this._eras||Tt("en")._eras;for(P=0,z=se.length;P=0)return se[z]}function Jm(g,N){var P=g.since<=g.until?1:-1;return N===void 0?r(g.since).year():r(g.since).year()+(N-g.offset)*P}function Cs(){var g,N,P,z=this.localeData().eras();for(g=0,N=z.length;gse&&(N=se),oh.call(this,g,N,P,z,G))}function oh(g,N,P,z,G){var se=kf(g,N,P,z,G),Te=Ga(se.year,0,se.dayOfYear);return this.year(Te.getUTCFullYear()),this.month(Te.getUTCMonth()),this.date(Te.getUTCDate()),this}H("Q",0,"Qo","quarter"),ne("quarter","Q"),Le("quarter",7),rr("Q",ke),nt("Q",function(g,N){N[En]=(Xe(g)-1)*3});function sh(g){return g==null?Math.ceil((this.month()+1)/3):this.month((g-1)*3+this.month()%3)}H("D",["DD",2],"Do","date"),ne("date","D"),Le("date",9),rr("D",Q),rr("DD",Q,_e),rr("Do",function(g,N){return g?N._dayOfMonthOrdinalParse||N._ordinalParse:N._dayOfMonthOrdinalParseLenient}),nt(["D","DD"],Cn),nt("Do",function(g,N){N[Cn]=Xe(g.match(Q)[0])});var xl=Or("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),Le("dayOfYear",4),rr("DDD",er),rr("DDDD",Pe),nt(["DDD","DDDD"],function(g,N,P){P._dayOfYear=Xe(g)});function Bi(g){var N=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return g==null?N:this.add(g-N,"d")}H("m",["mm",2],0,"minute"),ne("minute","m"),Le("minute",14),rr("m",Q),rr("mm",Q,_e),nt(["m","mm"],gn);var uh=Or("Minutes",!1);H("s",["ss",2],0,"second"),ne("second","s"),Le("second",15),rr("s",Q),rr("ss",Q,_e),nt(["s","ss"],Wn);var fh=Or("Seconds",!1);H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return this.millisecond()*10}),H(0,["SSSSS",5],0,function(){return this.millisecond()*100}),H(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),H(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),H(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),H(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ne("millisecond","ms"),Le("millisecond",16),rr("S",er,ke),rr("SS",er,_e),rr("SSS",er,Pe);var ta,yl;for(ta="SSSS";ta.length<=9;ta+="S")rr(ta,_t);function lh(g,N){N[Ci]=Xe(("0."+g)*1e3)}for(ta="S";ta.length<=9;ta+="S")nt(ta,lh);yl=Or("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");function Da(){return this._isUTC?"UTC":""}function ch(){return this._isUTC?"Coordinated Universal Time":""}var Ye=E.prototype;Ye.add=ja,Ye.calendar=zm,Ye.clone=Wm,Ye.diff=ll,Ye.endOf=Gm,Ye.format=Ds,Ye.from=Vm,Ye.fromNow=Ym,Ye.to=Hm,Ye.toNow=Ss,Ye.get=we,Ye.invalidAt=$m,Ye.isAfter=ys,Ye.isBefore=ra,Ye.isBetween=bs,Ye.isSame=ul,Ye.isSameOrAfter=ws,Ye.isSameOrBefore=fl,Ye.isValid=Es,Ye.lang=Ns,Ye.locale=Po,Ye.localeData=pl,Ye.max=Em,Ye.min=tl,Ye.parsingFlags=to,Ye.set=Oe,Ye.startOf=dl,Ye.subtract=gs,Ye.toArray=ro,Ye.toObject=Lo,Ye.toDate=Zu,Ye.toISOString=Io,Ye.inspect=wa,typeof Symbol<"u"&&Symbol.for!=null&&(Ye[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ye.toJSON=qo,Ye.toString=cl,Ye.unix=Ro,Ye.valueOf=$u,Ye.creationData=Zm,Ye.eraName=Cs,Ye.eraNarrow=Uo,Ye.eraAbbr=vl,Ye.eraYear=Z,Ye.year=Fu,Ye.isLeapYear=im,Ye.weekYear=rh,Ye.isoWeekYear=th,Ye.quarter=Ye.quarters=sh,Ye.month=Mi,Ye.daysInMonth=cs,Ye.week=Ye.weeks=am,Ye.isoWeek=Ye.isoWeeks=qf,Ye.weeksInYear=Oi,Ye.weeksInWeekYear=ah,Ye.isoWeeksInYear=nh,Ye.isoWeeksInISOWeekYear=ih,Ye.date=xl,Ye.day=Ye.days=hm,Ye.weekday=dm,Ye.isoWeekday=vm,Ye.dayOfYear=Bi,Ye.hour=Ye.hours=Wt,Ye.minute=Ye.minutes=uh,Ye.second=Ye.seconds=fh,Ye.millisecond=Ye.milliseconds=yl,Ye.utcOffset=Im,Ye.utc=km,Ye.local=Rm,Ye.parseZone=Lm,Ye.hasAlignedHourOffset=ea,Ye.isDST=he,Ye.isLocal=Ne,Ye.isUtcOffset=nr,Ye.isUtc=Nr,Ye.isUTC=Nr,Ye.zoneAbbr=Da,Ye.zoneName=ch,Ye.dates=F("dates accessor is deprecated. Use date instead.",xl),Ye.months=F("months accessor is deprecated. Use month instead",Mi),Ye.years=F("years accessor is deprecated. Use year instead",Fu),Ye.zone=F("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Pm),Ye.isDSTShifted=F("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Fe);function Hn(g){return ht(g*1e3)}function ph(){return ht.apply(null,arguments).parseZone()}function bl(g){return g}var Qr=$.prototype;Qr.calendar=R,Qr.longDateFormat=xe,Qr.invalidDate=De,Qr.ordinal=Ze,Qr.preparse=bl,Qr.postformat=bl,Qr.relativeTime=te,Qr.pastFuture=ye,Qr.set=L,Qr.eras=Qm,Qr.erasParse=Xm,Qr.erasConvertYear=Jm,Qr.erasAbbrRegex=Ms,Qr.erasNameRegex=no,Qr.erasNarrowRegex=_n,Qr.months=ga,Qr.monthsShort=Kr,Qr.monthsParse=Mu,Qr.monthsRegex=nm,Qr.monthsShortRegex=_u,Qr.week=Ou,Qr.firstDayOfYear=Lf,Qr.firstDayOfWeek=Rf,Qr.weekdays=lm,Qr.weekdaysMin=Bu,Qr.weekdaysShort=cm,Qr.weekdaysParse=mm,Qr.weekdaysRegex=dt,Qr.weekdaysShortRegex=mt,Qr.weekdaysMinRegex=gm,Qr.isPM=Gf,Qr.meridiem=ku;function Ts(g,N,P,z){var G=Tt(),se=h().set(z,N);return G[P](se,g)}function wl(g,N,P){if(f(g)&&(N=g,g=void 0),g=g||"",N!=null)return Ts(g,N,P,"month");var z,G=[];for(z=0;z<12;z++)G[z]=Ts(g,z,P,"month");return G}function Fs(g,N,P,z){typeof g=="boolean"?(f(N)&&(P=N,N=void 0),N=N||""):(N=g,P=N,g=!1,f(N)&&(P=N,N=void 0),N=N||"");var G=Tt(),se=g?G._week.dow:0,Te,mr=[];if(P!=null)return Ts(N,(P+se)%7,z,"day");for(Te=0;Te<7;Te++)mr[Te]=Ts(N,(Te+se)%7,z,"day");return mr}function Dl(g,N){return wl(g,N,"months")}function mh(g,N){return wl(g,N,"monthsShort")}function hh(g,N,P){return Fs(g,N,P,"weekdays")}function Qu(g,N,P){return Fs(g,N,P,"weekdaysShort")}function zo(g,N,P){return Fs(g,N,P,"weekdaysMin")}_i("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(g){var N=g%10,P=Xe(g%100/10)===1?"th":N===1?"st":N===2?"nd":N===3?"rd":"th";return g+P}}),r.lang=F("moment.lang is deprecated. Use moment.locale instead.",_i),r.langData=F("moment.langData is deprecated. Use moment.localeData instead.",Tt);var Tn=Math.abs;function dh(){var g=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),g.milliseconds=Tn(g.milliseconds),g.seconds=Tn(g.seconds),g.minutes=Tn(g.minutes),g.hours=Tn(g.hours),g.months=Tn(g.months),g.years=Tn(g.years),this}function Xu(g,N,P,z){var G=kr(N,P);return g._milliseconds+=z*G._milliseconds,g._days+=z*G._days,g._months+=z*G._months,g._bubble()}function vh(g,N){return Xu(this,g,N,1)}function Ii(g,N){return Xu(this,g,N,-1)}function Os(g){return g<0?Math.floor(g):Math.ceil(g)}function Sa(){var g=this._milliseconds,N=this._days,P=this._months,z=this._data,G,se,Te,mr,Tr;return g>=0&&N>=0&&P>=0||g<=0&&N<=0&&P<=0||(g+=Os(Ju(P)+N)*864e5,N=0,P=0),z.milliseconds=g%1e3,G=ir(g/1e3),z.seconds=G%60,se=ir(G/60),z.minutes=se%60,Te=ir(se/60),z.hours=Te%24,N+=ir(Te/24),Tr=ir(yn(N)),P+=Tr,N-=Os(Ju(Tr)),mr=ir(P/12),P%=12,z.days=N,z.months=P,z.years=mr,this}function yn(g){return g*4800/146097}function Ju(g){return g*146097/4800}function Sl(g){if(!this.isValid())return NaN;var N,P,z=this._milliseconds;if(g=ue(g),g==="month"||g==="quarter"||g==="year")switch(N=this._days+z/864e5,P=this._months+yn(N),g){case"month":return P;case"quarter":return P/3;case"year":return P/12}else switch(N=this._days+Math.round(Ju(this._months)),g){case"week":return N/7+z/6048e5;case"day":return N+z/864e5;case"hour":return N*24+z/36e5;case"minute":return N*1440+z/6e4;case"second":return N*86400+z/1e3;case"millisecond":return Math.floor(N*864e5)+z;default:throw new Error("Unknown unit "+g)}}function Nl(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Xe(this._months/12)*31536e6:NaN}function bn(g){return function(){return this.as(g)}}var na=bn("ms"),Al=bn("s"),gh=bn("m"),Bs=bn("h"),xh=bn("d"),El=bn("w"),Ht=bn("M"),Ku=bn("Q"),Cl=bn("y");function ni(){return kr(this)}function ju(g){return g=ue(g),this.isValid()?this[g+"s"]():NaN}function ii(g){return function(){return this.isValid()?this._data[g]:NaN}}var Na=ii("milliseconds"),Ml=ii("seconds"),on=ii("minutes"),ef=ii("hours"),yh=ii("days"),bh=ii("months"),wh=ii("years");function rf(){return ir(this.days()/7)}var Pi=Math.round,ai={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function _l(g,N,P,z,G){return G.relativeTime(N||1,!!P,g,z)}function Dh(g,N,P,z){var G=kr(g).abs(),se=Pi(G.as("s")),Te=Pi(G.as("m")),mr=Pi(G.as("h")),Tr=Pi(G.as("d")),et=Pi(G.as("M")),sn=Pi(G.as("w")),oi=Pi(G.as("y")),ki=se<=P.ss&&["s",se]||se0,ki[4]=z,_l.apply(null,ki)}function Sh(g){return g===void 0?Pi:typeof g=="function"?(Pi=g,!0):!1}function Wo(g,N){return ai[g]===void 0?!1:N===void 0?ai[g]:(ai[g]=N,g==="s"&&(ai.ss=N-1),!0)}function Nh(g,N){if(!this.isValid())return this.localeData().invalidDate();var P=!1,z=ai,G,se;return typeof g=="object"&&(N=g,g=!1),typeof g=="boolean"&&(P=g),typeof N=="object"&&(z=Object.assign({},ai,N),N.s!=null&&N.ss==null&&(z.ss=N.s-1)),G=this.localeData(),se=Dh(this,!P,z,G),P&&(se=G.pastFuture(+this,se)),G.postformat(se)}var tf=Math.abs;function ia(g){return(g>0)-(g<0)||+g}function Vo(){if(!this.isValid())return this.localeData().invalidDate();var g=tf(this._milliseconds)/1e3,N=tf(this._days),P=tf(this._months),z,G,se,Te,mr=this.asSeconds(),Tr,et,sn,oi;return mr?(z=ir(g/60),G=ir(z/60),g%=60,z%=60,se=ir(P/12),P%=12,Te=g?g.toFixed(3).replace(/\\.?0+$/,""):"",Tr=mr<0?"-":"",et=ia(this._months)!==ia(mr)?"-":"",sn=ia(this._days)!==ia(mr)?"-":"",oi=ia(this._milliseconds)!==ia(mr)?"-":"",Tr+"P"+(se?et+se+"Y":"")+(P?et+P+"M":"")+(N?sn+N+"D":"")+(G||z||g?"T":"")+(G?oi+G+"H":"")+(z?oi+z+"M":"")+(g?oi+Te+"S":"")):"P0D"}var Wr=Fo.prototype;Wr.isValid=Fm,Wr.abs=dh,Wr.add=vh,Wr.subtract=Ii,Wr.as=Sl,Wr.asMilliseconds=na,Wr.asSeconds=Al,Wr.asMinutes=gh,Wr.asHours=Bs,Wr.asDays=xh,Wr.asWeeks=El,Wr.asMonths=Ht,Wr.asQuarters=Ku,Wr.asYears=Cl,Wr.valueOf=Nl,Wr._bubble=Sa,Wr.clone=ni,Wr.get=ju,Wr.milliseconds=Na,Wr.seconds=Ml,Wr.minutes=on,Wr.hours=ef,Wr.days=yh,Wr.weeks=rf,Wr.months=bh,Wr.years=wh,Wr.humanize=Nh,Wr.toISOString=Vo,Wr.toString=Vo,Wr.toJSON=Vo,Wr.locale=Po,Wr.localeData=pl,Wr.toIsoString=F("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vo),Wr.lang=Ns,H("X",0,0,"unix"),H("x",0,0,"valueOf"),rr("x",Yt),rr("X",wu),nt("X",function(g,N,P){P._d=new Date(parseFloat(g)*1e3)}),nt("x",function(g,N,P){P._d=new Date(Xe(g))});return r.version="2.29.4",t(ht),r.fn=Ye,r.min=Cm,r.max=Mm,r.now=_m,r.utc=h,r.unix=Hn,r.months=Dl,r.isDate=o,r.locale=_i,r.invalid=w,r.duration=kr,r.isMoment=S,r.weekdays=hh,r.parseZone=ph,r.localeData=Tt,r.isDuration=Yn,r.monthsShort=mh,r.weekdaysMin=zo,r.defineLocale=an,r.updateLocale=bm,r.locales=wm,r.weekdaysShort=Qu,r.normalizeUnits=ue,r.relativeTimeRounding=Sh,r.relativeTimeThreshold=Wo,r.calendarFormat=Um,r.prototype=Ye,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r})});var vc=un((kd,Rd)=>{(function(e,r){typeof kd=="object"&&typeof Rd<"u"?Rd.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self,e["'typed'"]=r())})(kd,function(){"use strict";function e(){return!0}function r(){return!1}function t(){}let n="Argument is not a typed-function.";function i(){function s(re){return typeof re=="object"&&re!==null&&re.constructor===Object}let c=[{name:"number",test:function(re){return typeof re=="number"}},{name:"string",test:function(re){return typeof re=="string"}},{name:"boolean",test:function(re){return typeof re=="boolean"}},{name:"Function",test:function(re){return typeof re=="function"}},{name:"Array",test:Array.isArray},{name:"Date",test:function(re){return re instanceof Date}},{name:"RegExp",test:function(re){return re instanceof RegExp}},{name:"Object",test:s},{name:"null",test:function(re){return re===null}},{name:"undefined",test:function(re){return re===void 0}}],f={name:"any",test:e,isAny:!0},o,u,p=0,h={createCount:0};function d(re){let le=o.get(re);if(le)return le;let we='Unknown type "'+re+'"',Oe=re.toLowerCase(),ke;for(ke of u)if(ke.toLowerCase()===Oe){we+='. Did you mean "'+ke+'" ?';break}throw new TypeError(we)}function x(re){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"any",we=le?d(le).index:u.length,Oe=[];for(let _e=0;_e{let Oe=o.get(we);return!Oe.isAny&&Oe.test(re)});return le.length?le:["any"]}function C(re){return re&&typeof re=="function"&&"_typedFunctionData"in re}function b(re,le,we){if(!C(re))throw new TypeError(n);let Oe=we&&we.exact,ke=Array.isArray(le)?le.join(","):le,_e=_(ke),Pe=S(_e);if(!Oe||Pe in re.signatures){let ve=re._typedFunctionData.signatureMap.get(Pe);if(ve)return ve}let We=_e.length,B;if(Oe){B=[];let ve;for(ve in re.signatures)B.push(re._typedFunctionData.signatureMap.get(ve))}else B=re._typedFunctionData.signatures;for(let ve=0;ve!_t.has(Yt.name)))continue}er.push(fr)}}if(B=er,B.length===0)break}let Q;for(Q of B)if(Q.params.length<=We)return Q;throw new TypeError("Signature not found (signature: "+(re.name||"unnamed")+"("+S(_e,", ")+"))")}function A(re,le,we){return b(re,le,we).implementation}function E(re,le){let we=d(le);if(we.test(re))return re;let Oe=we.conversionsTo;if(Oe.length===0)throw new Error("There are no conversions to "+le+" defined.");for(let ke=0;ke1&&arguments[1]!==void 0?arguments[1]:",";return re.map(we=>we.name).join(le)}function O(re){let le=re.indexOf("...")===0,Oe=(le?re.length>3?re.slice(3):"any":re).split("|").map(We=>d(We.trim())),ke=!1,_e=le?"...":"";return{types:Oe.map(function(We){return ke=We.isAny||ke,_e+=We.name+"|",{name:We.name,typeIndex:We.index,test:We.test,isAny:We.isAny,conversion:null,conversionIndex:-1}}),name:_e.slice(0,-1),hasAny:ke,hasConversion:!1,restParam:le}}function F(re){let le=re.types.map(Pe=>Pe.name),we=H(le),Oe=re.hasAny,ke=re.name,_e=we.map(function(Pe){let We=d(Pe.from);return Oe=We.isAny||Oe,ke+="|"+Pe.from,{name:Pe.from,typeIndex:We.index,test:We.test,isAny:We.isAny,conversion:Pe,conversionIndex:Pe.index}});return{types:re.types.concat(_e),name:ke,hasAny:Oe,hasConversion:_e.length>0,restParam:re.restParam}}function M(re){return re.typeSet||(re.typeSet=new Set,re.types.forEach(le=>re.typeSet.add(le.name))),re.typeSet}function _(re){let le=[];if(typeof re!="string")throw new TypeError("Signatures must be strings");let we=re.trim();if(we==="")return le;let Oe=we.split(",");for(let ke=0;ke=ke+1}}else return re.length===0?function(_e){return _e.length===0}:re.length===1?(we=L(re[0]),function(_e){return we(_e[0])&&_e.length===1}):re.length===2?(we=L(re[0]),Oe=L(re[1]),function(_e){return we(_e[0])&&Oe(_e[1])&&_e.length===2}):(le=re.map(L),function(_e){for(let Pe=0;Pe{let ke=V(Oe.params,le),_e;for(_e of ke)we.add(_e)}),we.has("any")?["any"]:Array.from(we)}function j(re,le,we){let Oe,ke,_e=re||"unnamed",Pe=we,We;for(We=0;We{let fr=$(er.params,We),Zr=L(fr);(We0){let er=w(le[We]);return Oe=new TypeError("Unexpected type of argument in function "+_e+" (expected: "+ke.join(" or ")+", actual: "+er.join(" | ")+", index: "+We+")"),Oe.data={category:"wrongType",fn:_e,index:We,actual:er,expected:ke},Oe}}else Pe=Be}let B=Pe.map(function(Be){return k(Be.params)?1/0:Be.params.length});if(le.lengthQ)return Oe=new TypeError("Too many arguments in function "+_e+" (expected: "+Q+", actual: "+le.length+")"),Oe.data={category:"tooManyArgs",fn:_e,index:le.length,expectedLength:Q},Oe;let ve=[];for(let Be=0;Be0)return 1;let Oe=oe(re)-oe(le);return Oe<0?-1:Oe>0?1:0}function ie(re,le){let we=re.params,Oe=le.params,ke=K(we),_e=K(Oe),Pe=k(we),We=k(Oe);if(Pe&&ke.hasAny){if(!We||!_e.hasAny)return 1}else if(We&&_e.hasAny)return-1;let B=0,Q=0,ve;for(ve of we)ve.hasAny&&++B,ve.hasConversion&&++Q;let Be=0,er=0;for(ve of Oe)ve.hasAny&&++Be,ve.hasConversion&&++er;if(B!==Be)return B-Be;if(Pe&&ke.hasConversion){if(!We||!_e.hasConversion)return 1}else if(We&&_e.hasConversion)return-1;if(Q!==er)return Q-er;if(Pe){if(!We)return 1}else if(We)return-1;let fr=(we.length-Oe.length)*(Pe?-1:1);if(fr!==0)return fr;let Zr=[],_t=0;for(let Zi=0;Zi1&&le.sort((ke,_e)=>ke.index-_e.index);let we=le[0].conversionsTo;if(re.length===1)return we;we=we.concat([]);let Oe=new Set(re);for(let ke=1;keke.hasConversion)){let ke=k(re),_e=re.map(Me);we=function(){let We=[],B=ke?arguments.length-1:arguments.length;for(let Q=0;QB.name).join("|"),hasAny:We.some(B=>B.isAny),hasConversion:!1,restParam:!0}),Pe.push(_e)}else Pe=_e.types.map(function(We){return{types:[We],name:We.name,hasAny:We.isAny,hasConversion:We.conversion,restParam:!1}});return ee(Pe,function(We){return le(we,Oe+1,ke.concat([We]))})}else return[ke]}return le(re,0,[])}function ge(re,le){let we=Math.max(re.length,le.length);for(let We=0;We=Oe:Pe?Oe>=ke:Oe===ke}function Se(re){return re.map(le=>Le(le)?Ee(le.referToSelf.callback):Ce(le)?ue(le.referTo.references,le.referTo.callback):le)}function xe(re,le,we){let Oe=[],ke;for(ke of re){let _e=we[ke];if(typeof _e!="number")throw new TypeError('No definition for referenced signature "'+ke+'"');if(_e=le[_e],typeof _e!="function")return!1;Oe.push(_e)}return Oe}function be(re,le,we){let Oe=Se(re),ke=new Array(Oe.length).fill(!1),_e=!0;for(;_e;){_e=!1;let Pe=!0;for(let We=0;We{let Oe=re[we];if(le.test(Oe.toString()))throw new SyntaxError("Using \`this\` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.")})}function Ae(re,le){if(h.createCount++,Object.keys(le).length===0)throw new SyntaxError("No signatures provided");h.warnAgainstDeprecatedThis&&De(le);let we=[],Oe=[],ke={},_e=[],Pe;for(Pe in le){if(!Object.prototype.hasOwnProperty.call(le,Pe))continue;let Kr=_(Pe);if(!Kr)continue;we.forEach(function(Mi){if(ge(Mi,Kr))throw new TypeError('Conflicting signatures "'+S(Mi)+'" and "'+S(Kr)+'".')}),we.push(Kr);let jt=Oe.length;Oe.push(le[Pe]);let Mu=Kr.map(F),Qi;for(Qi of pe(Mu)){let Mi=S(Qi);_e.push({params:Qi,name:Mi,fn:jt}),Qi.every(cs=>!cs.hasConversion)&&(ke[Mi]=jt)}}_e.sort(ie);let We=be(Oe,ke,ga),B;for(B in ke)Object.prototype.hasOwnProperty.call(ke,B)&&(ke[B]=We[ke[B]]);let Q=[],ve=new Map;for(B of _e)ve.has(B.name)||(B.fn=We[B.fn],Q.push(B),ve.set(B.name,B));let Be=Q[0]&&Q[0].params.length<=2&&!k(Q[0].params),er=Q[1]&&Q[1].params.length<=2&&!k(Q[1].params),fr=Q[2]&&Q[2].params.length<=2&&!k(Q[2].params),Zr=Q[3]&&Q[3].params.length<=2&&!k(Q[3].params),_t=Q[4]&&Q[4].params.length<=2&&!k(Q[4].params),Yt=Q[5]&&Q[5].params.length<=2&&!k(Q[5].params),Zi=Be&&er&&fr&&Zr&&_t&&Yt;for(let Kr=0;KrKr.test),fs=Q.map(Kr=>Kr.implementation),ls=function(){for(let jt=Cu;jtS(_(we))),le=K(arguments);if(typeof le!="function")throw new TypeError("Callback function expected as last argument");return ue(re,le)}function ue(re,le){return{referTo:{references:re,callback:le}}}function Ee(re){if(typeof re!="function")throw new TypeError("Callback function expected as first argument");return{referToSelf:{callback:re}}}function Ce(re){return re&&typeof re.referTo=="object"&&Array.isArray(re.referTo.references)&&typeof re.referTo.callback=="function"}function Le(re){return re&&typeof re.referToSelf=="object"&&typeof re.referToSelf.callback=="function"}function Ie(re,le){if(!re)return le;if(le&&le!==re){let we=new Error("Function names do not match (expected: "+re+", actual: "+le+")");throw we.data={actual:le,expected:re},we}return re}function sr(re){let le;for(let we in re)Object.prototype.hasOwnProperty.call(re,we)&&(C(re[we])||typeof re[we].signature=="string")&&(le=Ie(le,re[we].name));return le}function ir(re,le){let we;for(we in le)if(Object.prototype.hasOwnProperty.call(le,we)){if(we in re&&le[we]!==re[we]){let Oe=new Error('Signature "'+we+'" is defined twice');throw Oe.data={signature:we,sourceFunction:le[we],destFunction:re[we]},Oe}re[we]=le[we]}}let Xe=h;h=function(re){let le=typeof re=="string",we=le?1:0,Oe=le?re:"",ke={};for(let _e=we;_eke.from===re.from);if(!we)throw new Error("Attempt to remove nonexistent conversion from "+re.from+" to "+re.to);if(we.convert!==re.convert)throw new Error("Conversion to remove does not match existing conversion");let Oe=le.conversionsTo.indexOf(we);le.conversionsTo.splice(Oe,1)},h.resolve=function(re,le){if(!C(re))throw new TypeError(n);let we=re._typedFunctionData.signatures;for(let Oe=0;Oe{(function(e){"use strict";var r=Math.cosh||function(o){return Math.abs(o)<1e-9?1-o:(Math.exp(o)+Math.exp(-o))*.5},t=Math.sinh||function(o){return Math.abs(o)<1e-9?o:(Math.exp(o)-Math.exp(-o))*.5},n=function(o){var u=Math.PI/4;if(-u>o||o>u)return Math.cos(o)-1;var p=o*o;return p*(p*(p*(p*(p*(p*(p*(p/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-1/2)},i=function(o,u){var p=Math.abs(o),h=Math.abs(u);return p<3e3&&h<3e3?Math.sqrt(p*p+h*h):(p0&&a();break;case"number":p.im=0,p.re=o;break;default:a()}return isNaN(p.re)||isNaN(p.im),p};function f(o,u){if(!(this instanceof f))return new f(o,u);var p=c(o,u);this.re=p.re,this.im=p.im}f.prototype={re:0,im:0,sign:function(){var o=this.abs();return new f(this.re/o,this.im/o)},add:function(o,u){var p=new f(o,u);return this.isInfinite()&&p.isInfinite()?f.NAN:this.isInfinite()||p.isInfinite()?f.INFINITY:new f(this.re+p.re,this.im+p.im)},sub:function(o,u){var p=new f(o,u);return this.isInfinite()&&p.isInfinite()?f.NAN:this.isInfinite()||p.isInfinite()?f.INFINITY:new f(this.re-p.re,this.im-p.im)},mul:function(o,u){var p=new f(o,u);return this.isInfinite()&&p.isZero()||this.isZero()&&p.isInfinite()?f.NAN:this.isInfinite()||p.isInfinite()?f.INFINITY:p.im===0&&this.im===0?new f(this.re*p.re,0):new f(this.re*p.re-this.im*p.im,this.re*p.im+this.im*p.re)},div:function(o,u){var p=new f(o,u);if(this.isZero()&&p.isZero()||this.isInfinite()&&p.isInfinite())return f.NAN;if(this.isInfinite()||p.isZero())return f.INFINITY;if(this.isZero()||p.isInfinite())return f.ZERO;o=this.re,u=this.im;var h=p.re,d=p.im,x,v;return d===0?new f(o/h,u/h):Math.abs(h)0)return new f(Math.pow(o,p.re),0);if(o===0)switch((p.re%4+4)%4){case 0:return new f(Math.pow(u,p.re),0);case 1:return new f(0,Math.pow(u,p.re));case 2:return new f(-Math.pow(u,p.re),0);case 3:return new f(0,-Math.pow(u,p.re))}}if(o===0&&u===0&&p.re>0&&p.im>=0)return f.ZERO;var h=Math.atan2(u,o),d=s(o,u);return o=Math.exp(p.re*d-p.im*h),u=p.im*d+p.re*h,new f(o*Math.cos(u),o*Math.sin(u))},sqrt:function(){var o=this.re,u=this.im,p=this.abs(),h,d;if(o>=0){if(u===0)return new f(Math.sqrt(o),0);h=.5*Math.sqrt(2*(p+o))}else h=Math.abs(u)/Math.sqrt(2*(p-o));return o<=0?d=.5*Math.sqrt(2*(p-o)):d=Math.abs(u)/Math.sqrt(2*(p+o)),new f(h,u<0?-d:d)},exp:function(){var o=Math.exp(this.re);return this.im,new f(o*Math.cos(this.im),o*Math.sin(this.im))},expm1:function(){var o=this.re,u=this.im;return new f(Math.expm1(o)*Math.cos(u)+n(u),Math.exp(o)*Math.sin(u))},log:function(){var o=this.re,u=this.im;return u===0&&o>0,new f(s(o,u),Math.atan2(u,o))},abs:function(){return i(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){var o=this.re,u=this.im;return new f(Math.sin(o)*r(u),Math.cos(o)*t(u))},cos:function(){var o=this.re,u=this.im;return new f(Math.cos(o)*r(u),-Math.sin(o)*t(u))},tan:function(){var o=2*this.re,u=2*this.im,p=Math.cos(o)+r(u);return new f(Math.sin(o)/p,t(u)/p)},cot:function(){var o=2*this.re,u=2*this.im,p=Math.cos(o)-r(u);return new f(-Math.sin(o)/p,t(u)/p)},sec:function(){var o=this.re,u=this.im,p=.5*r(2*u)+.5*Math.cos(2*o);return new f(Math.cos(o)*r(u)/p,Math.sin(o)*t(u)/p)},csc:function(){var o=this.re,u=this.im,p=.5*r(2*u)-.5*Math.cos(2*o);return new f(Math.sin(o)*r(u)/p,-Math.cos(o)*t(u)/p)},asin:function(){var o=this.re,u=this.im,p=new f(u*u-o*o+1,-2*o*u).sqrt(),h=new f(p.re-u,p.im+o).log();return new f(h.im,-h.re)},acos:function(){var o=this.re,u=this.im,p=new f(u*u-o*o+1,-2*o*u).sqrt(),h=new f(p.re-u,p.im+o).log();return new f(Math.PI/2-h.im,h.re)},atan:function(){var o=this.re,u=this.im;if(o===0){if(u===1)return new f(0,1/0);if(u===-1)return new f(0,-1/0)}var p=o*o+(1-u)*(1-u),h=new f((1-u*u-o*o)/p,-2*o/p).log();return new f(-.5*h.im,.5*h.re)},acot:function(){var o=this.re,u=this.im;if(u===0)return new f(Math.atan2(1,o),0);var p=o*o+u*u;return p!==0?new f(o/p,-u/p).atan():new f(o!==0?o/0:0,u!==0?-u/0:0).atan()},asec:function(){var o=this.re,u=this.im;if(o===0&&u===0)return new f(0,1/0);var p=o*o+u*u;return p!==0?new f(o/p,-u/p).acos():new f(o!==0?o/0:0,u!==0?-u/0:0).acos()},acsc:function(){var o=this.re,u=this.im;if(o===0&&u===0)return new f(Math.PI/2,1/0);var p=o*o+u*u;return p!==0?new f(o/p,-u/p).asin():new f(o!==0?o/0:0,u!==0?-u/0:0).asin()},sinh:function(){var o=this.re,u=this.im;return new f(t(o)*Math.cos(u),r(o)*Math.sin(u))},cosh:function(){var o=this.re,u=this.im;return new f(r(o)*Math.cos(u),t(o)*Math.sin(u))},tanh:function(){var o=2*this.re,u=2*this.im,p=r(o)+Math.cos(u);return new f(t(o)/p,Math.sin(u)/p)},coth:function(){var o=2*this.re,u=2*this.im,p=r(o)-Math.cos(u);return new f(t(o)/p,-Math.sin(u)/p)},csch:function(){var o=this.re,u=this.im,p=Math.cos(2*u)-r(2*o);return new f(-2*t(o)*Math.cos(u)/p,2*r(o)*Math.sin(u)/p)},sech:function(){var o=this.re,u=this.im,p=Math.cos(2*u)+r(2*o);return new f(2*r(o)*Math.cos(u)/p,-2*t(o)*Math.sin(u)/p)},asinh:function(){var o=this.im;this.im=-this.re,this.re=o;var u=this.asin();return this.re=-this.im,this.im=o,o=u.re,u.re=-u.im,u.im=o,u},acosh:function(){var o=this.acos();if(o.im<=0){var u=o.re;o.re=-o.im,o.im=u}else{var u=o.im;o.im=-o.re,o.re=u}return o},atanh:function(){var o=this.re,u=this.im,p=o>1&&u===0,h=1-o,d=1+o,x=h*h+u*u,v=x!==0?new f((d*h-u*u)/x,(u*h+d*u)/x):new f(o!==-1?o/0:0,u!==0?u/0:0),y=v.re;return v.re=s(v.re,v.im)/2,v.im=Math.atan2(v.im,y)/2,p&&(v.im=-v.im),v},acoth:function(){var o=this.re,u=this.im;if(o===0&&u===0)return new f(0,Math.PI/2);var p=o*o+u*u;return p!==0?new f(o/p,-u/p).atanh():new f(o!==0?o/0:0,u!==0?-u/0:0).atanh()},acsch:function(){var o=this.re,u=this.im;if(u===0)return new f(o!==0?Math.log(o+Math.sqrt(o*o+1)):1/0,0);var p=o*o+u*u;return p!==0?new f(o/p,-u/p).asinh():new f(o!==0?o/0:0,u!==0?-u/0:0).asinh()},asech:function(){var o=this.re,u=this.im;if(this.isZero())return f.INFINITY;var p=o*o+u*u;return p!==0?new f(o/p,-u/p).acosh():new f(o!==0?o/0:0,u!==0?-u/0:0).acosh()},inverse:function(){if(this.isZero())return f.INFINITY;if(this.isInfinite())return f.ZERO;var o=this.re,u=this.im,p=o*o+u*u;return new f(o/p,-u/p)},conjugate:function(){return new f(this.re,-this.im)},neg:function(){return new f(-this.re,-this.im)},ceil:function(o){return o=Math.pow(10,o||0),new f(Math.ceil(this.re*o)/o,Math.ceil(this.im*o)/o)},floor:function(o){return o=Math.pow(10,o||0),new f(Math.floor(this.re*o)/o,Math.floor(this.im*o)/o)},round:function(o){return o=Math.pow(10,o||0),new f(Math.round(this.re*o)/o,Math.round(this.im*o)/o)},equals:function(o,u){var p=new f(o,u);return Math.abs(p.re-this.re)<=f.EPSILON&&Math.abs(p.im-this.im)<=f.EPSILON},clone:function(){return new f(this.re,this.im)},toString:function(){var o=this.re,u=this.im,p="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(o){(function(e){"use strict";var r=2e3,t={s:1,n:0,d:1};function n(v,y){if(isNaN(v=parseInt(v,10)))throw d();return v*y}function i(v,y){if(y===0)throw h();var w=Object.create(p.prototype);w.s=v<0?-1:1,v=v<0?-v:v;var C=u(v,y);return w.n=v/C,w.d=y/C,w}function a(v){for(var y={},w=v,C=2,b=4;b<=w;){for(;w%C===0;)w/=C,y[C]=(y[C]||0)+1;b+=1+2*C++}return w!==v?w>1&&(y[w]=(y[w]||0)+1):y[v]=(y[v]||0)+1,y}var s=function(v,y){var w=0,C=1,b=1,A=0,E=0,S=0,O=1,F=1,M=0,_=1,k=1,L=1,Y=1e7,$;if(v!=null)if(y!==void 0){if(w=v,C=y,b=w*C,w%1!==0||C%1!==0)throw x()}else switch(typeof v){case"object":{if("d"in v&&"n"in v)w=v.n,C=v.d,"s"in v&&(w*=v.s);else if(0 in v)w=v[0],1 in v&&(C=v[1]);else throw d();b=w*C;break}case"number":{if(v<0&&(b=v,v=-v),v%1===0)w=v;else if(v>0){for(v>=1&&(F=Math.pow(10,Math.floor(1+Math.log(v)/Math.LN10)),v/=F);_<=Y&&L<=Y;)if($=(M+k)/(_+L),v===$){_+L<=Y?(w=M+k,C=_+L):L>_?(w=k,C=L):(w=M,C=_);break}else v>$?(M+=k,_+=L):(k+=M,L+=_),_>Y?(w=k,C=L):(w=M,C=_);w*=F}else(isNaN(v)||isNaN(y))&&(C=w=NaN);break}case"string":{if(_=v.match(/\\d+|./g),_===null)throw d();if(_[M]==="-"?(b=-1,M++):_[M]==="+"&&M++,_.length===M+1?E=n(_[M++],b):_[M+1]==="."||_[M]==="."?(_[M]!=="."&&(A=n(_[M++],b)),M++,(M+1===_.length||_[M+1]==="("&&_[M+3]===")"||_[M+1]==="'"&&_[M+3]==="'")&&(E=n(_[M],b),O=Math.pow(10,_[M].length),M++),(_[M]==="("&&_[M+2]===")"||_[M]==="'"&&_[M+2]==="'")&&(S=n(_[M+1],b),F=Math.pow(10,_[M+1].length)-1,M+=3)):_[M+1]==="/"||_[M+1]===":"?(E=n(_[M],b),O=n(_[M+2],1),M+=3):_[M+3]==="/"&&_[M+1]===" "&&(A=n(_[M],b),E=n(_[M+2],b),O=n(_[M+4],1),M+=5),_.length<=M){C=O*F,b=w=S+C*A+F*E;break}}default:throw d()}if(C===0)throw h();t.s=b<0?-1:1,t.n=Math.abs(w),t.d=Math.abs(C)};function c(v,y,w){for(var C=1;y>0;v=v*v%w,y>>=1)y&1&&(C=C*v%w);return C}function f(v,y){for(;y%2===0;y/=2);for(;y%5===0;y/=5);if(y===1)return 0;for(var w=10%y,C=1;w!==1;C++)if(w=w*10%y,C>r)return 0;return C}function o(v,y,w){for(var C=1,b=c(10,w,y),A=0;A<300;A++){if(C===b)return A;C=C*10%y,b=b*10%y}return 0}function u(v,y){if(!v)return y;if(!y)return v;for(;;){if(v%=y,!v)return y;if(y%=v,!y)return v}}function p(v,y){if(s(v,y),this instanceof p)v=u(t.d,t.n),this.s=t.s,this.n=t.n/v,this.d=t.d/v;else return i(t.s*t.n,t.d)}var h=function(){return new Error("Division by Zero")},d=function(){return new Error("Invalid argument")},x=function(){return new Error("Parameters must be integer")};p.prototype={s:1,n:0,d:1,abs:function(){return i(this.n,this.d)},neg:function(){return i(-this.s*this.n,this.d)},add:function(v,y){return s(v,y),i(this.s*this.n*t.d+t.s*this.d*t.n,this.d*t.d)},sub:function(v,y){return s(v,y),i(this.s*this.n*t.d-t.s*this.d*t.n,this.d*t.d)},mul:function(v,y){return s(v,y),i(this.s*t.s*this.n*t.n,this.d*t.d)},div:function(v,y){return s(v,y),i(this.s*t.s*this.n*t.d,this.d*t.n)},clone:function(){return i(this.s*this.n,this.d)},mod:function(v,y){if(isNaN(this.n)||isNaN(this.d))return new p(NaN);if(v===void 0)return i(this.s*this.n%this.d,1);if(s(v,y),t.n===0&&this.d===0)throw h();return i(this.s*(t.d*this.n)%(t.n*this.d),t.d*this.d)},gcd:function(v,y){return s(v,y),i(u(t.n,this.n)*u(t.d,this.d),t.d*this.d)},lcm:function(v,y){return s(v,y),t.n===0&&this.n===0?i(0,1):i(t.n*this.n,u(t.n,this.n)*u(t.d,this.d))},ceil:function(v){return v=Math.pow(10,v||0),isNaN(this.n)||isNaN(this.d)?new p(NaN):i(Math.ceil(v*this.s*this.n/this.d),v)},floor:function(v){return v=Math.pow(10,v||0),isNaN(this.n)||isNaN(this.d)?new p(NaN):i(Math.floor(v*this.s*this.n/this.d),v)},round:function(v){return v=Math.pow(10,v||0),isNaN(this.n)||isNaN(this.d)?new p(NaN):i(Math.round(v*this.s*this.n/this.d),v)},inverse:function(){return i(this.s*this.d,this.n)},pow:function(v,y){if(s(v,y),t.d===1)return t.s<0?i(Math.pow(this.s*this.d,t.n),Math.pow(this.n,t.n)):i(Math.pow(this.s*this.n,t.n),Math.pow(this.d,t.n));if(this.s<0)return null;var w=a(this.n),C=a(this.d),b=1,A=1;for(var E in w)if(E!=="1"){if(E==="0"){b=0;break}if(w[E]*=t.n,w[E]%t.d===0)w[E]/=t.d;else return null;b*=Math.pow(E,w[E])}for(var E in C)if(E!=="1"){if(C[E]*=t.n,C[E]%t.d===0)C[E]/=t.d;else return null;A*=Math.pow(E,C[E])}return t.s<0?i(A,b):i(b,A)},equals:function(v,y){return s(v,y),this.s*this.n*t.d===t.s*t.n*this.d},compare:function(v,y){s(v,y);var w=this.s*this.n*t.d-t.s*t.n*this.d;return(0=0;A--)b=b.inverse().add(w[A]);if(Math.abs(b.sub(y).valueOf())0&&(w+=y,w+=" ",C%=b),w+=C,w+="/",w+=b),w},toLatex:function(v){var y,w="",C=this.n,b=this.d;return this.s<0&&(w+="-"),b===1?w+=C:(v&&(y=Math.floor(C/b))>0&&(w+=y,C%=b),w+="\\\\frac{",w+=C,w+="}{",w+=b,w+="}"),w},toContinued:function(){var v,y=this.n,w=this.d,C=[];if(isNaN(y)||isNaN(w))return C;do C.push(Math.floor(y/w)),v=y%w,y=w,w=v;while(y!==1);return C},toString:function(v){var y=this.n,w=this.d;if(isNaN(y)||isNaN(w))return"NaN";v=v||15;var C=f(y,w),b=o(y,w,C),A=this.s<0?"-":"";if(A+=y/w|0,y%=w,y*=10,y&&(A+="."),C){for(var E=b;E--;)A+=y/w|0,y%=w,y*=10;A+="(";for(var E=C;E--;)A+=y/w|0,y%=w,y*=10;A+=")"}else for(var E=v;y&&E--;)A+=y/w|0,y%=w,y*=10;return A}},typeof ov=="object"?(Object.defineProperty(p,"__esModule",{value:!0}),p.default=p,p.Fraction=p,jy.exports=p):e.Fraction=p})(ov)});var vS=un((Woe,dS)=>{dS.exports=function e(r,t){"use strict";var n=/(^([+\\-]?(?:0|[1-9]\\d*)(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)?$|^0x[0-9a-f]+$|\\d+)/gi,i=/(^[ ]*|[ ]*$)/g,a=/(^([\\w ]+,?[\\w ]+)?[\\w ]+,?[\\w ]+\\d+:\\d+(:\\d+)?[\\w ]?|^\\d{1,4}[\\/\\-]\\d{1,4}[\\/\\-]\\d{1,4}|^\\w+, \\w+ \\d+, \\d{4})/,s=/^0x[0-9a-f]+$/i,c=/^0/,f=function(b){return e.insensitive&&(""+b).toLowerCase()||""+b},o=f(r).replace(i,"")||"",u=f(t).replace(i,"")||"",p=o.replace(n,"\\0$1\\0").replace(/\\0$/,"").replace(/^\\0/,"").split("\\0"),h=u.replace(n,"\\0$1\\0").replace(/\\0$/,"").replace(/^\\0/,"").split("\\0"),d=parseInt(o.match(s),16)||p.length!==1&&o.match(a)&&Date.parse(o),x=parseInt(u.match(s),16)||d&&u.match(a)&&Date.parse(u)||null,v,y;if(x){if(dx)return 1}for(var w=0,C=Math.max(p.length,h.length);wy)return 1}return 0}});var O2=un((ape,F2)=>{"use strict";var cg=Object.assign||function(e){for(var r=1;r1&&arguments[1]!==void 0?arguments[1]:{},t=r.preserveFormatting,n=t===void 0?!1:t,i=r.escapeMapFn,a=i===void 0?rz:i,s=String(e),c="",f=a(cg({},jU),n?cg({},ez):{}),o=Object.keys(f),u=function(){var h=!1;o.forEach(function(d,x){h||s.length>=d.length&&s.slice(0,d.length)===d&&(c+=f[o[x]],s=s.slice(d.length,s.length),h=!0)}),h||(c+=s.slice(0,1),s=s.slice(1,s.length))};s;)u();return c}});var rF=un((eF,yg)=>{(function(e,r,t){function n(c){var f=this,o=s();f.next=function(){var u=2091639*f.s0+f.c*23283064365386963e-26;return f.s0=f.s1,f.s1=f.s2,f.s2=u-(f.c=u|0)},f.c=1,f.s0=o(" "),f.s1=o(" "),f.s2=o(" "),f.s0-=o(c),f.s0<0&&(f.s0+=1),f.s1-=o(c),f.s1<0&&(f.s1+=1),f.s2-=o(c),f.s2<0&&(f.s2+=1),o=null}function i(c,f){return f.c=c.c,f.s0=c.s0,f.s1=c.s1,f.s2=c.s2,f}function a(c,f){var o=new n(c),u=f&&f.state,p=o.next;return p.int32=function(){return o.next()*4294967296|0},p.double=function(){return p()+(p()*2097152|0)*11102230246251565e-32},p.quick=p,u&&(typeof u=="object"&&i(u,o),p.state=function(){return i(o,{})}),p}function s(){var c=4022871197,f=function(o){o=String(o);for(var u=0;u>>0,p-=c,p*=c,c=p>>>0,p-=c,c+=p*4294967296}return(c>>>0)*23283064365386963e-26};return f}r&&r.exports?r.exports=a:t&&t.amd?t(function(){return a}):this.alea=a})(eF,typeof yg=="object"&&yg,typeof define=="function"&&define)});var nF=un((tF,bg)=>{(function(e,r,t){function n(s){var c=this,f="";c.x=0,c.y=0,c.z=0,c.w=0,c.next=function(){var u=c.x^c.x<<11;return c.x=c.y,c.y=c.z,c.z=c.w,c.w^=c.w>>>19^u^u>>>8},s===(s|0)?c.x=s:f+=s;for(var o=0;o>>0)/4294967296};return u.double=function(){do var p=f.next()>>>11,h=(f.next()>>>0)/4294967296,d=(p+h)/(1<<21);while(d===0);return d},u.int32=f.next,u.quick=u,o&&(typeof o=="object"&&i(o,f),u.state=function(){return i(f,{})}),u}r&&r.exports?r.exports=a:t&&t.amd?t(function(){return a}):this.xor128=a})(tF,typeof bg=="object"&&bg,typeof define=="function"&&define)});var aF=un((iF,wg)=>{(function(e,r,t){function n(s){var c=this,f="";c.next=function(){var u=c.x^c.x>>>2;return c.x=c.y,c.y=c.z,c.z=c.w,c.w=c.v,(c.d=c.d+362437|0)+(c.v=c.v^c.v<<4^(u^u<<1))|0},c.x=0,c.y=0,c.z=0,c.w=0,c.v=0,s===(s|0)?c.x=s:f+=s;for(var o=0;o>>4),c.next()}function i(s,c){return c.x=s.x,c.y=s.y,c.z=s.z,c.w=s.w,c.v=s.v,c.d=s.d,c}function a(s,c){var f=new n(s),o=c&&c.state,u=function(){return(f.next()>>>0)/4294967296};return u.double=function(){do var p=f.next()>>>11,h=(f.next()>>>0)/4294967296,d=(p+h)/(1<<21);while(d===0);return d},u.int32=f.next,u.quick=u,o&&(typeof o=="object"&&i(o,f),u.state=function(){return i(f,{})}),u}r&&r.exports?r.exports=a:t&&t.amd?t(function(){return a}):this.xorwow=a})(iF,typeof wg=="object"&&wg,typeof define=="function"&&define)});var sF=un((oF,Dg)=>{(function(e,r,t){function n(s){var c=this;c.next=function(){var o=c.x,u=c.i,p,h,d;return p=o[u],p^=p>>>7,h=p^p<<24,p=o[u+1&7],h^=p^p>>>10,p=o[u+3&7],h^=p^p>>>3,p=o[u+4&7],h^=p^p<<7,p=o[u+7&7],p=p^p<<13,h^=p^p<<9,o[u]=h,c.i=u+1&7,h};function f(o,u){var p,h,d=[];if(u===(u|0))h=d[0]=u;else for(u=""+u,p=0;p0;--p)o.next()}f(c,s)}function i(s,c){return c.x=s.x.slice(),c.i=s.i,c}function a(s,c){s==null&&(s=+new Date);var f=new n(s),o=c&&c.state,u=function(){return(f.next()>>>0)/4294967296};return u.double=function(){do var p=f.next()>>>11,h=(f.next()>>>0)/4294967296,d=(p+h)/(1<<21);while(d===0);return d},u.int32=f.next,u.quick=u,o&&(o.x&&i(o,f),u.state=function(){return i(f,{})}),u}r&&r.exports?r.exports=a:t&&t.amd?t(function(){return a}):this.xorshift7=a})(oF,typeof Dg=="object"&&Dg,typeof define=="function"&&define)});var fF=un((uF,Sg)=>{(function(e,r,t){function n(s){var c=this;c.next=function(){var o=c.w,u=c.X,p=c.i,h,d;return c.w=o=o+1640531527|0,d=u[p+34&127],h=u[p=p+1&127],d^=d<<13,h^=h<<17,d^=d>>>15,h^=h>>>12,d=u[p]=d^h,c.i=p,d+(o^o>>>16)|0};function f(o,u){var p,h,d,x,v,y=[],w=128;for(u===(u|0)?(h=u,u=null):(u=u+"\\0",h=0,w=Math.max(w,u.length)),d=0,x=-32;x>>15,h^=h<<4,h^=h>>>13,x>=0&&(v=v+1640531527|0,p=y[x&127]^=h+v,d=p==0?d+1:0);for(d>=128&&(y[(u&&u.length||0)&127]=-1),d=127,x=4*128;x>0;--x)h=y[d+34&127],p=y[d=d+1&127],h^=h<<13,p^=p<<17,h^=h>>>15,p^=p>>>12,y[d]=h^p;o.w=v,o.X=y,o.i=d}f(c,s)}function i(s,c){return c.i=s.i,c.w=s.w,c.X=s.X.slice(),c}function a(s,c){s==null&&(s=+new Date);var f=new n(s),o=c&&c.state,u=function(){return(f.next()>>>0)/4294967296};return u.double=function(){do var p=f.next()>>>11,h=(f.next()>>>0)/4294967296,d=(p+h)/(1<<21);while(d===0);return d},u.int32=f.next,u.quick=u,o&&(o.X&&i(o,f),u.state=function(){return i(f,{})}),u}r&&r.exports?r.exports=a:t&&t.amd?t(function(){return a}):this.xor4096=a})(uF,typeof Sg=="object"&&Sg,typeof define=="function"&&define)});var cF=un((lF,Ng)=>{(function(e,r,t){function n(s){var c=this,f="";c.next=function(){var u=c.b,p=c.c,h=c.d,d=c.a;return u=u<<25^u>>>7^p,p=p-h|0,h=h<<24^h>>>8^d,d=d-u|0,c.b=u=u<<20^u>>>12^p,c.c=p=p-h|0,c.d=h<<16^p>>>16^d,c.a=d-u|0},c.a=0,c.b=0,c.c=-1640531527,c.d=1367130551,s===Math.floor(s)?(c.a=s/4294967296|0,c.b=s|0):f+=s;for(var o=0;o>>0)/4294967296};return u.double=function(){do var p=f.next()>>>11,h=(f.next()>>>0)/4294967296,d=(p+h)/(1<<21);while(d===0);return d},u.int32=f.next,u.quick=u,o&&(typeof o=="object"&&i(o,f),u.state=function(){return i(f,{})}),u}r&&r.exports?r.exports=a:t&&t.amd?t(function(){return a}):this.tychei=a})(lF,typeof Ng=="object"&&Ng,typeof define=="function"&&define)});var pF=un(()=>{});var hF=un((mF,Wp)=>{(function(e,r,t){var n=256,i=6,a=52,s="random",c=t.pow(n,i),f=t.pow(2,a),o=f*2,u=n-1,p;function h(b,A,E){var S=[];A=A==!0?{entropy:!0}:A||{};var O=y(v(A.entropy?[b,C(r)]:b??w(),3),S),F=new d(S),M=function(){for(var _=F.g(i),k=c,L=0;_=o;)_/=2,k/=2,L>>>=1;return(_+L)/k};return M.int32=function(){return F.g(4)|0},M.quick=function(){return F.g(4)/4294967296},M.double=M,y(C(F.S),r),(A.pass||E||function(_,k,L,Y){return Y&&(Y.S&&x(Y,F),_.state=function(){return x(F,{})}),L?(t[s]=_,k):_})(M,O,"global"in A?A.global:this==t,A.state)}function d(b){var A,E=b.length,S=this,O=0,F=S.i=S.j=0,M=S.S=[];for(E||(b=[E++]);O{var xW=rF(),yW=nF(),bW=aF(),wW=sF(),DW=fF(),SW=cF(),os=hF();os.alea=xW;os.xor128=yW;os.xorwow=bW;os.xorshift7=wW;os.xor4096=DW;os.tychei=SW;dF.exports=os});var YO=un((R3e,Fg)=>{function Tg(){}Tg.prototype={on:function(e,r,t){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:r,ctx:t}),this},once:function(e,r,t){var n=this;function i(){n.off(e,i),r.apply(t,arguments)}return i._=r,this.on(e,i,t)},emit:function(e){var r=[].slice.call(arguments,1),t=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=t.length;for(n;n[...new Set(e)];var uo="File";function ud(e){return Array.isArray(e)?e:typeof e=="string"?[e]:[]}function gx(e){return e?typeof e!="string"?e.toString():e:""}var xx=(e,r)=>r.indexOf(e)>0?r.indexOf(e):r.length;function ci(e){return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ci(e)}function Pn(e){if(e===null||e===!0||e===!1)return NaN;var r=Number(e);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}function ot(e,r){if(r.length1?"s":"")+" required, but only "+r.length+" present")}function Lt(e){ot(1,arguments);var r=Object.prototype.toString.call(e);return e instanceof Date||ci(e)==="object"&&r==="[object Date]"?new Date(e.getTime()):typeof e=="number"||r==="[object Number]"?new Date(e):((typeof e=="string"||r==="[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))}function fd(e,r){ot(2,arguments);var t=Lt(e).getTime(),n=Pn(r);return new Date(t+n)}var u8={};function fo(){return u8}function ld(e){var r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),e.getTime()-r.getTime()}function cd(e){return ot(1,arguments),e instanceof Date||ci(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function pd(e){if(ot(1,arguments),!cd(e)&&typeof e!="number")return!1;var r=Lt(e);return!isNaN(Number(r))}function md(e,r){ot(2,arguments);var t=Pn(r);return fd(e,-t)}var f8=864e5;function hd(e){ot(1,arguments);var r=Lt(e),t=r.getTime();r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0);var n=r.getTime(),i=t-n;return Math.floor(i/f8)+1}function lo(e){ot(1,arguments);var r=1,t=Lt(e),n=t.getUTCDay(),i=(n=i.getTime()?t+1:r.getTime()>=s.getTime()?t:t-1}function dd(e){ot(1,arguments);var r=lf(e),t=new Date(0);t.setUTCFullYear(r,0,4),t.setUTCHours(0,0,0,0);var n=lo(t);return n}var l8=6048e5;function vd(e){ot(1,arguments);var r=Lt(e),t=lo(r).getTime()-dd(r).getTime();return Math.round(t/l8)+1}function co(e,r){var t,n,i,a,s,c,f,o;ot(1,arguments);var u=fo(),p=Pn((t=(n=(i=(a=r?.weekStartsOn)!==null&&a!==void 0?a:r==null||(s=r.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&n!==void 0?n:(f=u.locale)===null||f===void 0||(o=f.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&t!==void 0?t:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Lt(e),d=h.getUTCDay(),x=(d=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=new Date(0);x.setUTCFullYear(p+1,0,d),x.setUTCHours(0,0,0,0);var v=co(x,r),y=new Date(0);y.setUTCFullYear(p,0,d),y.setUTCHours(0,0,0,0);var w=co(y,r);return u.getTime()>=v.getTime()?p+1:u.getTime()>=w.getTime()?p:p-1}function gd(e,r){var t,n,i,a,s,c,f,o;ot(1,arguments);var u=fo(),p=Pn((t=(n=(i=(a=r?.firstWeekContainsDate)!==null&&a!==void 0?a:r==null||(s=r.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&n!==void 0?n:(f=u.locale)===null||f===void 0||(o=f.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&t!==void 0?t:1),h=cf(e,r),d=new Date(0);d.setUTCFullYear(h,0,p),d.setUTCHours(0,0,0,0);var x=co(d,r);return x}var c8=6048e5;function xd(e,r){ot(1,arguments);var t=Lt(e),n=co(t,r).getTime()-gd(t,r).getTime();return Math.round(n/c8)+1}function it(e,r){for(var t=e<0?"-":"",n=Math.abs(e).toString();n.length0?n:1-n;return it(t==="yy"?i%100:i,t.length)},M:function(r,t){var n=r.getUTCMonth();return t==="M"?String(n+1):it(n+1,2)},d:function(r,t){return it(r.getUTCDate(),t.length)},a:function(r,t){var n=r.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(r,t){return it(r.getUTCHours()%12||12,t.length)},H:function(r,t){return it(r.getUTCHours(),t.length)},m:function(r,t){return it(r.getUTCMinutes(),t.length)},s:function(r,t){return it(r.getUTCSeconds(),t.length)},S:function(r,t){var n=t.length,i=r.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,n-3));return it(a,t.length)}},Fa=p8;var Us={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},m8={G:function(r,t,n){var i=r.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(r,t,n){if(t==="yo"){var i=r.getUTCFullYear(),a=i>0?i:1-i;return n.ordinalNumber(a,{unit:"year"})}return Fa.y(r,t)},Y:function(r,t,n,i){var a=cf(r,i),s=a>0?a:1-a;if(t==="YY"){var c=s%100;return it(c,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):it(s,t.length)},R:function(r,t){var n=lf(r);return it(n,t.length)},u:function(r,t){var n=r.getUTCFullYear();return it(n,t.length)},Q:function(r,t,n){var i=Math.ceil((r.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return it(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(r,t,n){var i=Math.ceil((r.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return it(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(r,t,n){var i=r.getUTCMonth();switch(t){case"M":case"MM":return Fa.M(r,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(r,t,n){var i=r.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return it(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(r,t,n,i){var a=xd(r,i);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):it(a,t.length)},I:function(r,t,n){var i=vd(r);return t==="Io"?n.ordinalNumber(i,{unit:"week"}):it(i,t.length)},d:function(r,t,n){return t==="do"?n.ordinalNumber(r.getUTCDate(),{unit:"date"}):Fa.d(r,t)},D:function(r,t,n){var i=hd(r);return t==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):it(i,t.length)},E:function(r,t,n){var i=r.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(r,t,n,i){var a=r.getUTCDay(),s=(a-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return it(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(r,t,n,i){var a=r.getUTCDay(),s=(a-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return it(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(r,t,n){var i=r.getUTCDay(),a=i===0?7:i;switch(t){case"i":return String(a);case"ii":return it(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(r,t,n){var i=r.getUTCHours(),a=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(r,t,n){var i=r.getUTCHours(),a;switch(i===12?a=Us.noon:i===0?a=Us.midnight:a=i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(r,t,n){var i=r.getUTCHours(),a;switch(i>=17?a=Us.evening:i>=12?a=Us.afternoon:i>=4?a=Us.morning:a=Us.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(r,t,n){if(t==="ho"){var i=r.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Fa.h(r,t)},H:function(r,t,n){return t==="Ho"?n.ordinalNumber(r.getUTCHours(),{unit:"hour"}):Fa.H(r,t)},K:function(r,t,n){var i=r.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(i,{unit:"hour"}):it(i,t.length)},k:function(r,t,n){var i=r.getUTCHours();return i===0&&(i=24),t==="ko"?n.ordinalNumber(i,{unit:"hour"}):it(i,t.length)},m:function(r,t,n){return t==="mo"?n.ordinalNumber(r.getUTCMinutes(),{unit:"minute"}):Fa.m(r,t)},s:function(r,t,n){return t==="so"?n.ordinalNumber(r.getUTCSeconds(),{unit:"second"}):Fa.s(r,t)},S:function(r,t){return Fa.S(r,t)},X:function(r,t,n,i){var a=i._originalDate||r,s=a.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return bx(s);case"XXXX":case"XX":return $o(s);case"XXXXX":case"XXX":default:return $o(s,":")}},x:function(r,t,n,i){var a=i._originalDate||r,s=a.getTimezoneOffset();switch(t){case"x":return bx(s);case"xxxx":case"xx":return $o(s);case"xxxxx":case"xxx":default:return $o(s,":")}},O:function(r,t,n,i){var a=i._originalDate||r,s=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yx(s,":");case"OOOO":default:return"GMT"+$o(s,":")}},z:function(r,t,n,i){var a=i._originalDate||r,s=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yx(s,":");case"zzzz":default:return"GMT"+$o(s,":")}},t:function(r,t,n,i){var a=i._originalDate||r,s=Math.floor(a.getTime()/1e3);return it(s,t.length)},T:function(r,t,n,i){var a=i._originalDate||r,s=a.getTime();return it(s,t.length)}};function yx(e,r){var t=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),a=n%60;if(a===0)return t+String(i);var s=r||"";return t+String(i)+s+it(a,2)}function bx(e,r){if(e%60===0){var t=e>0?"-":"+";return t+it(Math.abs(e)/60,2)}return $o(e,r)}function $o(e,r){var t=r||"",n=e>0?"-":"+",i=Math.abs(e),a=it(Math.floor(i/60),2),s=it(i%60,2);return n+a+t+s}var wx=m8;var Dx=function(r,t){switch(r){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Sx=function(r,t){switch(r){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},h8=function(r,t){var n=r.match(/(P+)(p+)?/)||[],i=n[1],a=n[2];if(!a)return Dx(r,t);var s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Dx(i,t)).replace("{{time}}",Sx(a,t))},d8={p:Sx,P:h8},Nx=d8;var v8=["D","DD"],g8=["YY","YYYY"];function Ax(e){return v8.indexOf(e)!==-1}function Ex(e){return g8.indexOf(e)!==-1}function yd(e,r,t){if(e==="YYYY")throw new RangeError("Use \`yyyy\` instead of \`YYYY\` (in \`".concat(r,"\`) for formatting years to the input \`").concat(t,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use \`yy\` instead of \`YY\` (in \`".concat(r,"\`) for formatting years to the input \`").concat(t,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use \`d\` instead of \`D\` (in \`".concat(r,"\`) for formatting days of the month to the input \`").concat(t,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use \`dd\` instead of \`DD\` (in \`".concat(r,"\`) for formatting days of the month to the input \`").concat(t,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var x8={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"}},y8=function(r,t,n){var i,a=x8[r];return typeof a=="string"?i=a:t===1?i=a.one:i=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},Cx=y8;function pf(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.width?String(r.width):e.defaultWidth,n=e.formats[t]||e.formats[e.defaultWidth];return n}}var b8={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},w8={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},D8={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},S8={date:pf({formats:b8,defaultWidth:"full"}),time:pf({formats:w8,defaultWidth:"full"}),dateTime:pf({formats:D8,defaultWidth:"full"})},Mx=S8;var N8={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},A8=function(r,t,n,i){return N8[r]},_x=A8;function Zo(e){return function(r,t){var n=t!=null&&t.context?String(t.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,s=t!=null&&t.width?String(t.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{var c=e.defaultWidth,f=t!=null&&t.width?String(t.width):e.defaultWidth;i=e.values[f]||e.values[c]}var o=e.argumentCallback?e.argumentCallback(r):r;return i[o]}}var E8={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},C8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},M8={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"]},_8={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"]},T8={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"}},F8={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"}},O8=function(r,t){var n=Number(r),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},B8={ordinalNumber:O8,era:Zo({values:E8,defaultWidth:"wide"}),quarter:Zo({values:C8,defaultWidth:"wide",argumentCallback:function(r){return r-1}}),month:Zo({values:M8,defaultWidth:"wide"}),day:Zo({values:_8,defaultWidth:"wide"}),dayPeriod:Zo({values:T8,defaultWidth:"wide",formattingValues:F8,defaultFormattingWidth:"wide"})},Tx=B8;function Qo(e){return function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=r.match(i);if(!a)return null;var s=a[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?P8(c,function(p){return p.test(s)}):I8(c,function(p){return p.test(s)}),o;o=e.valueCallback?e.valueCallback(f):f,o=t.valueCallback?t.valueCallback(o):o;var u=r.slice(s.length);return{value:o,rest:u}}}function I8(e,r){for(var t in e)if(e.hasOwnProperty(t)&&r(e[t]))return t}function P8(e,r){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},n=r.match(e.matchPattern);if(!n)return null;var i=n[0],a=r.match(e.parsePattern);if(!a)return null;var s=e.valueCallback?e.valueCallback(a[0]):a[0];s=t.valueCallback?t.valueCallback(s):s;var c=r.slice(i.length);return{value:s,rest:c}}}var k8=/^(\\d+)(th|st|nd|rd)?/i,R8=/\\d+/i,L8={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},q8={any:[/^b/i,/^(a|c)/i]},U8={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},z8={any:[/1/i,/2/i,/3/i,/4/i]},W8={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},V8={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]},Y8={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},H8={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]},G8={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},$8={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}},Z8={ordinalNumber:bd({matchPattern:k8,parsePattern:R8,valueCallback:function(r){return parseInt(r,10)}}),era:Qo({matchPatterns:L8,defaultMatchWidth:"wide",parsePatterns:q8,defaultParseWidth:"any"}),quarter:Qo({matchPatterns:U8,defaultMatchWidth:"wide",parsePatterns:z8,defaultParseWidth:"any",valueCallback:function(r){return r+1}}),month:Qo({matchPatterns:W8,defaultMatchWidth:"wide",parsePatterns:V8,defaultParseWidth:"any"}),day:Qo({matchPatterns:Y8,defaultMatchWidth:"wide",parsePatterns:H8,defaultParseWidth:"any"}),dayPeriod:Qo({matchPatterns:G8,defaultMatchWidth:"any",parsePatterns:$8,defaultParseWidth:"any"})},Fx=Z8;var Q8={code:"en-US",formatDistance:Cx,formatLong:Mx,formatRelative:_x,localize:Tx,match:Fx,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ox=Q8;var Bx=Ox;var X8=/[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g,J8=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,K8=/^'([^]*?)'?$/,j8=/''/g,ek=/[a-zA-Z]/;function Oa(e,r,t){var n,i,a,s,c,f,o,u,p,h,d,x,v,y,w,C,b,A;ot(2,arguments);var E=String(r),S=fo(),O=(n=(i=t?.locale)!==null&&i!==void 0?i:S.locale)!==null&&n!==void 0?n:Bx,F=Pn((a=(s=(c=(f=t?.firstWeekContainsDate)!==null&&f!==void 0?f:t==null||(o=t.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&c!==void 0?c:S.firstWeekContainsDate)!==null&&s!==void 0?s:(p=S.locale)===null||p===void 0||(h=p.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Pn((d=(x=(v=(y=t?.weekStartsOn)!==null&&y!==void 0?y:t==null||(w=t.locale)===null||w===void 0||(C=w.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&v!==void 0?v:S.weekStartsOn)!==null&&x!==void 0?x:(b=S.locale)===null||b===void 0||(A=b.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&d!==void 0?d:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var _=Lt(e);if(!pd(_))throw new RangeError("Invalid time value");var k=ld(_),L=md(_,k),Y={firstWeekContainsDate:F,weekStartsOn:M,locale:O,_originalDate:_},$=E.match(J8).map(function(V){var q=V[0];if(q==="p"||q==="P"){var R=Nx[q];return R(V,O.formatLong)}return V}).join("").match(X8).map(function(V){if(V==="''")return"'";var q=V[0];if(q==="'")return rk(V);var R=wx[q];if(R)return!(t!=null&&t.useAdditionalWeekYearTokens)&&Ex(V)&&yd(V,r,String(e)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&Ax(V)&&yd(V,r,String(e)),R(L,V,O.localize,Y);if(q.match(ek))throw new RangeError("Format string contains an unescaped latin alphabet character \`"+q+"\`");return V}).join("");return $}function rk(e){var r=e.match(K8);return r?r[1].replace(j8,"'"):e}function wd(e,r){if(ci(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Dd(e){var r=wd(e,"string");return ci(r)=="symbol"?r:r+""}function Ur(e,r,t){return r=Dd(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Sd=(e,r)=>{if(e instanceof Date)return"date";if(typeof e=="string"){if(/\\/\\/(\\S+?(?:jpe?g|png|gif|svg))/gi.test(e)||e.includes("unsplash"))return"image";if(/^\\d{4}-\\d{2}-\\d{2}$/.test(e))return"date";if(r=="tag"||r=="tags")return"tag";if(/\\[\\[.*?\\]\\]/.test(e))return"link"}else{if(typeof e=="number")return"number";if(typeof e=="boolean")return"boolean";if(e)if(Array.isArray(e)||typeof e=="string"&&e.indexOf(",")>-1){let t=Array.isArray(e)?e:[];if(typeof e=="string"&&e.indexOf(",")>-1&&(t=qi(e)),r=="tag"||r=="tags")return"tag-multi";if(t.length==1&&Array.isArray(t[0])&&t[0].length==1&&typeof t[0][0]=="string")return"link";let n=Zl(t.map(i=>Sd(i,r)));return n.length==1&&n[0]=="link"?"link-multi":n.some(i=>i=="object")?"object-multi":"option-multi"}else{if(e.isLuxonDateTime)return"date";if(e.isLuxonDuration)return"duration";if(e.type=="file")return"link";if(typeof e=="object"&&!Array.isArray(e)&&e!==null)return"object"}else return"unknown"}return"text"};var Ix=e=>e.join(", "),Xo=e=>e.join(",");var qi=e=>e?.match(/(\\\\.|[^,])+/g)??[],Jl=(e,r)=>{switch(Sd(r,e)){case"object":return JSON.stringify(r);case"number":return r.toString();case"boolean":return r?"true":"false";case"date":{if(console.log(typeof r),r instanceof Date){let n=Oa(new Date(r),"yyyy-MM-dd");if(typeof n=="string")return n}return typeof r!="string"?"":r}break;case"duration":return Ix(Object.keys(r.values).reduce((n,i)=>[...n,...r.values[i]>0?[r.values[i]+" "+i]:[]],[]));case"option-multi":case"link-multi":return typeof r=="string"?Xl(r):Xo(r.map(n=>n?typeof n=="string"?Xl(n):n.path?n.path:Array.isArray(r)&&n.length==1&&Array.isArray(n[0])&&n[0].length==1&&typeof n[0][0]=="string"?n[0][0]:JSON.stringify(n):""));case"link":return Array.isArray(r)&&r.length==1&&Array.isArray(r[0])&&r[0].length==1&&typeof r[0][0]=="string"?r[0][0]:typeof r=="string"?Xl(r):r.path;case"text":case"tag":case"image":return r}return""},Ql=e=>{let r;try{r=JSON.parse(e)}catch{}return r};var Xl=e=>{if(!e)return"";let r=/\\[\\[(.*?)\\]\\]/g.exec(e),t=r?.length>1?r[1].substring(0,xx("|",r[1])):e;return t||e};var Kl=(e,r)=>e==r,Nd=(e,r)=>(e??"").length==0,Ad=(e,r)=>(e??"").toLowerCase().includes((r??"").toLowerCase()),Ed=(e,r)=>parseFloat(e)>parseFloat(r),Cd=(e,r)=>parseInt(e)>parseInt(r),Px=(e,r)=>{let t=isNaN(Date.parse(e))?new Date(parseInt(e)):new Date(e),n=isNaN(Date.parse(r))?new Date(parseInt(r)):new Date(r);return t.valueOf()>n.valueOf()},kx=(e,r)=>{let t=isNaN(Date.parse(e))?new Date(parseInt(e)):new Date(e),n=isNaN(Date.parse(r))?new Date(parseInt(r)):new Date(r);return t.valueOf(){let t=e?qi(e):[];return(r?qi(r):[]).some(i=>t.some(a=>a==i))},Rx=(e,r)=>{if(!e)return!1;let t=new Date(\`\${e.toString().replace(".",":")}\`),n=new Date(\`\${r}\`);return t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()},Lx=e=>{if(!e)return!1;let r=new Date(\`\${e.toString()}T00:00\`),t=new Date;return r.getMonth()===t.getMonth()&&r.getDate()===t.getDate()};var mf={isNotEmpty:{type:["text","file","link","link-multi","fileprop","image"],fn:(e,r)=>!Nd(e,""),valueType:"none"},isEmpty:{type:["text","file","link","link-multi","fileprop","image"],fn:(e,r)=>Nd(e,""),valueType:"none"},include:{fn:(e,r)=>Ad(e,r),type:["text","file","link","link-multi","fileprop","image"],valueType:"text"},notInclude:{type:["text","file","link","link-multi","fileprop","image"],fn:(e,r)=>!Ad(e,r),valueType:"text"},is:{type:["text","file","link","context","fileprop"],fn:(e,r)=>Kl(e,r),valueType:"text"},isNot:{type:["text","file","link","context","fileprop"],fn:(e,r)=>!Kl(e,r),valueType:"text"},equal:{type:["number"],fn:(e,r)=>Kl(e,r),valueType:"number"},isGreatThan:{type:["number"],fn:(e,r)=>Ed(e,r),valueType:"number"},isLessThan:{type:["number"],fn:(e,r)=>Cd(e,r),valueType:"number"},isLessThanOrEqual:{type:["number"],fn:(e,r)=>!Ed(e,r),valueType:"number"},isGreatThanOrEqual:{type:["number"],fn:(e,r)=>!Cd(e,r),valueType:"number"},dateBefore:{type:["date","fileprop"],fn:(e,r)=>kx(e,r),valueType:"date"},dateAfter:{type:["date","fileprop"],fn:(e,r)=>Px(e,r),valueType:"date"},isSameDate:{type:["date"],fn:(e,r)=>Rx(e,r),valueType:"date"},isSameDateAsToday:{type:["date"],fn:(e,r)=>Lx(e,r),valueType:"none"},isAnyInList:{type:["option","context","option-multi","context-multi","tags-multi","tags"],fn:(e,r)=>Md(e,r),valueType:"list"},isNoneInList:{type:["option","context","option-multi","context-multi","tags-multi","tags"],fn:(e,r)=>!Md(e,r),valueType:"list"},isTrue:{type:["boolean"],fn:(e,r)=>e=="true",valueType:"none"},isFalse:{type:["boolean"],fn:(e,r)=>e!="true",valueType:"none"}};var tk=(e,r)=>r.reduce((n,i)=>{let[a,s]=n,c=i.type=="path"?Ux(s,i):i.type=="frontmatter"?qx(s,i):zx(s,i),f=s.filter(o=>!c.includes(o));return[[...a,...c],f]},[[],e])[0],nk=(e,r)=>r.reduce((t,n)=>n.type=="path"?Ux(t,n):n.type=="frontmatter"?qx(t,n):zx(t,n),e),qx=(e,r)=>e.filter(t=>{let n=t.metadata?.property;if(!n||!n[r.field])return!1;let i=mf[r.fn],a=!0;return i&&(a=i.fn(Jl(r.field,n[r.field]),r.value)),a}),Ux=(e,r)=>e.filter(t=>{let n="";r.field=="outlinks"?n=Xo(t.outlinks??[]):r.field=="inlinks"?n=Xo(t.inlinks??[]):r.field=="tags"&&(n=Xo(t.tags??[]));let i=mf[r.fn],a=!0;return i&&(a=i.fn(n,r.value)),a}),zx=(e,r)=>e.filter(t=>{let n=mf[r.fn],i=!0;return n&&(i=n.fn(t.metadata?.[r.type]?.[r.field],r.value)),i}),_d=(e,r)=>e.reduce((n,i)=>!n||i.filters.length==0?!1:i.type=="any"?tk([r],i.filters).length>0:nk([r],i.filters).length>0,!0);var Vx=li(Wx()),Fd=class{constructor(){this.lang="en";this.all={en:{hintText:{dragDropModifierKeys:"Hold \${1} to Pin and \${2} to Copy",createListItem:"Select/Create List Item Frame",dragDropProperties:"Drag and drop properties to link them into the list",newItem:"+ New",selectNote:"Select Note...",newFrame:"New"},defaults:{spaceNote:"Current Note",spaceContext:"Current Space"},commands:{h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",columns:"Columns",button:"Button",label:"Label",column:"Column",idea:"New",group:"Group",paragraph:"Text",card:"Card",progress:"Progress",rating:"Rating",circularProgress:"Circular Progress",list:"Bullet List","ordered-list":"Numbered List",todo:"To-do List",quote:"Quote",divider:"Divider",note:"Link to Note",link:"Link",callout:"Callout",table:"Table",codeblock:"Code Block",emoji:"Emoji",image:"Image",flow:"Linked Note",newNote:"New Note",tag:"Tag",makeMenu:"Flow Menu",selectStyle:"Style",toggleKeyboard:"Toggle Keyboard",rows:"Rows",masonry:"Gallery"},styles:{bold:"Bold",italics:"Italics",strikethrough:"Strikethrough",code:"Code",link:"Web Link",blocklink:"Link to Note",textColor:"Text Color",highlight:"Highlight"},commandsSuggest:{noResult:"No result"},commandPalette:{enable:"Enable",disabled:"Disable",openFlow:"Open Flow Blocks in Selection",closeFlow:"Close Flow Blocks in Selection",toggleBold:"Toggle Bold",toggleItalics:"Toggle Italics",openSpaces:"Open Spaces",migrateData:"Migrate Spaces From 0.7",blink:"Blink",openFileContext:"Open Explorer",convertPathToSpace:"Convert to Space",revealFile:"Reveal File in Spaces",releaseNotes:"Release Notes",toggleBacklinks:"Toggle Backlinks",collapseAllFolders:"Collapse All Folders",addFileSpace:"Add File to Space",removeFileSpace:"Remove File from Space"},frames:{sections:{kit:"Kit",paths:"Paths"},label:{label:"Label",description:"Label"},note:{label:"Note",description:"Link to a note"},table:{label:"Table",description:"Table"},context:{label:"Context",description:"Display a context view from another space"},calendar:{label:"Calendar View"},field:{label:"Field",description:"Dynamic node that displays a value based on property type"},event:{label:"Event"},divider:{label:"Divider",description:"Divider to separate your content"},button:{label:"Button",description:"Buttons can perform actions and open links"}},menu:{newView:"New View",customView:"Custom View",detailsView:"Details View",catalogView:"Catalog View",galleryView:"Gallery View",deleteContext:"Delete Context",openSpace:"Open Space",revealInDefault:"Reveal in Finder",setNone:"None",fileMetadataDescription:"This note only",openFilePane:"Open in a new pane",rename:"Rename",changeToFolderNote:"New Space from Note",moveFile:"Move file to...",moveFolder:"Move folder to...",duplicate:"Make a copy",edit:"Edit",delete:"Delete",getHelp:"Make.md Community",vault:"Vault",openVault:"Open Another Vault",openVaultInFolder:"Open Vault Folder",obSettings:"Obsidian Settings",commandPalette:"Command Palette",backToSpace:"Back to Spaces",collapseAllSections:"Collapse All Spaces",expandAllSections:"Expand All Spaces",collapseAllFolders:"Collapse All Folders",expandAllFolders:"Expand All Folders",spaceTitle:"Add/Remove in Space",home:"Home",waypoints:"Waypoints",none:"None",tableView:"Table View",cardView:"Card View",boardView:"Board View",listView:"List View",flowView:"Flow View",groupBy:"Group By",sortBy:"Sort By",newFilter:"New Filter",clearFilters:"Clear Filters",hide:"Hide",unhideFields:"Unhide All Properties",importDataview:"Import All Dataview Properties",saveAllProperties:"Save All Properties to Files",mergeProperties:"Merge Properties",removeFromSpace:"Unpin from Space",removeFromWaypoints:"Unpin from Waypoints",editCode:"Edit Code",deleteProperty:"Delete Property",hideProperty:"Hide Property",unhideProperty:"Unhide Property",saveProperty:"Save Property",sortAscending:"Sort Ascending",sortDescending:"Sort Descending",deleteRow:"Delete Item",collapseAll:"Collapse All",customSort:"Custom Sort",groupSpaces:"Group Spaces",fileNameSortAlphaAsc:"File Name (A to Z)",fileNameSortAlphaDesc:"File Name (Z to A)",createdTimeSortAsc:"Created Time (new to old)",createdTimeSortDesc:"Created Time (old to new)",modifiedTimeSortAsc:"Modified Time (new to old)",modifiedTimeSortDesc:"Modified Time (old to new)",sizeSortAsc:"Size (smallest to largest)",sizeSortDesc:"Size (largest to smallest)",spaces:"Spaces",tags:"Tags",manageHiddenFiles:"Manage Hidden Files",manageActions:"Manage Actions",deleteSpace:"Delete",changeColor:"Change Color",changePropertyType:"Change Type",deleteFiles:"Delete Files",createFolderSpace:"Create Space from Folder",folder:"Folder",syncToContext:"Add Property to Context",setIcon:"Set Icon",copyEmbedLink:"Copy Embed Link",moveUp:"Move Up",moveDown:"Move Down",moveTo:"Move To",groupNodes:"Group Nodes",moveFrame:"Move Frame",renameFrame:"Rename Frame",deleteFrame:"Delete Frame"},editor:{rows:"Rows",columns:"Columns",catalog:"Catalog",gallery:"Gallery",grid:"Grid",scaleToFit:"Change to Fit",scaleToFill:"Change to Fill",fit:"Fit",strokeNone:"None",strokeSolid:"Solid",strokeDotted:"Dotted",strokeDashed:"Dashed",size:"Size",gap:"Gap",marginLeft:"Left",marginTop:"Top",marginRight:"Right",marginBottom:"Bottom",minimize:"Minimize",paddingLeft:"Left",paddingTop:"Top",paddingRight:"Right",paddingBottom:"Bottom",unlinkProperty:"Unlink Property",linkedProperty:"Linked Property",linkProperty:"Link Property",currentSpace:"Current Space",linkName:"\${1} Link",linkThumbnail:"\${1} Thumbnail",linkSticker:"\${1} Sticker",opacity:"Opacity",shadowSpread:"Spread",shadowBlur:"Blur",width:"Width",height:"Height",margin:"Margin",padding:"Padding",bold:"Bold",italic:"Italic",underline:"Underline",alignLeft:"Align Left",alignCenter:"Align Center",alignRight:"Align Right",alignJustify:"Align Justify",numberOfLines:"Lines",createVerticalSection:"Create Vertical Section",createHorizontalSection:"Create Horizontal Section",themeColors:"Theme Colors",uiColors:"UI Colors",hex:"Hex"},buttons:{add:"Add",addFilter:"Add Filter",customize:"Customize",moreOptions:"More Options",saveProperty:"Save Property",newNote:"New Note",changeIcon:"Change Sticker",removeIcon:"Remove Sticker",addIcon:"Add Sticker",addCover:"Add Cover",changeBanner:"Change Cover",changeBannerShort:"Cover",saveChanges:"Save Changes",removeBanner:"Remove Cover",rename:"Change Name",editFrame:"Edit Frame",saveSpace:"Save Space",createSpace:"New Space",createFolder:"New Folder",createNote:"New Note",createCanvas:"New Canvas",addIntoSpace:"New Pin",addSmartSearch:"Add Smart Search",addItem:"Add Item",addProperty:"Add Property",addContext:"Add Context",cancel:"Cancel",search:"Search",delete:"Delete",toggleFlow:"Toggle Flow",openFlow:"Open Flow",hideFlow:"Hide Flow",openLink:"Open Link",addToSpace:"Add to Space",addToSpaceShort:"Pin",addTag:"Add Tag",tag:"Tag",syncFields:"Sync Properties",convertTable:"Convert to Markdown",cutTable:"Cut Table",deleteTable:"Delete Table",blink:"Blink",addFile:"Add Item",merge:"Merge",saveView:"Save View",saveTable:"Save Table",renameView:"Rename View",deleteView:"Delete View",renameTable:"Rename Table",renameTag:"Rename Tag",createTag:"Create Tag",currentFolder:"Current Folder",sync:"Sync",pasteCSS:"Paste CSS",save:"Save",run:"Run"},metadataTypes:{fileName:"File Name",path:"Path",folder:"Folder",sticker:"Sticker",color:"Color",created:"Created",lastModified:"Last Modified",extension:"Extension",size:"Size",tags:"Tags",inlinks:"Linked Mentions",outlinks:"Links",label:"Label",fileMetadata:"File Metadata",frontmatter:"Frontmatter"},filterTypes:{contains:"contains",notContains:"does not contain",is:"is",isNot:"is not",before:"before",after:"after",anyOf:"is any of",noneOf:"is none of",checked:"is checked",unchecked:"is unchecked",isEmpty:"is empty",isNotEmpty:"is not empty",isSameDate:"is same date",isSameDateAsToday:"today"},sortTypes:{alphaAsc:"A to Z",alphaDesc:"Z to A",earliest:"Earliest",latest:"Latest",checkAsc:"Checked \\u2192 Unchecked",checkDesc:"Unchecked \\u2192 Checked",itemsAsc:"Least Items",itemsDesc:"Most Items"},properties:{defaultField:"Name",text:{label:"Text",description:"Text field"},number:{label:"Number",description:"Number field with optional unit"},boolean:{label:"Yes/No",description:"Yes or No toggle to indicate the status"},date:{label:"Date",description:"Select a date from a calendar"},option:{label:"Option",description:"Select one or multiple option from a list"},file:{label:"File"},link:{label:"Link",description:"Link to another note or a website"},tags:{label:"Tags",description:"Use tags to quickly organize your items"},object:{label:"Object",description:"Store any complex objects"},context:{label:"Relation",description:"Connect to another context property and create a relation"},image:{label:"Image",description:"Select any image from your system or from the internet"},color:{label:"Color",description:"Use colors to label your items or status"},space:{label:"Context",description:"Link to a context"},icon:{label:"Sticker",description:"Use stickers to uniquely label your items or status"},super:{label:"Super Property",links:"Open Link",properties:"Update Property",api:"API",obsidianCommands:"Run Command",runCommand:"Run Command",performAction:"Perform Action",whenClicked:"When Clicked"},fileProperty:{name:"Name",label:"Formula",createdTime:"Created",modifiedTime:"Last Edited",sticker:"Sticker",links:"Links",tags:"Tags",spaces:"Spaces",extension:"Extension",size:"Size",preview:"Note Preview",parentFolder:"Folder",description:"Use a formula to dynamically display a property"}},views:{navigator:"Navigator",explorer:"Explorer",space:"Space"},subViews:{spaceItems:"Items",spaceContext:"Context",spaceLists:"Lists",spaceActions:"Actions",smartSearch:"Smart Search",filesAndFolders:"Files and Folders"},labels:{properties:"Properties",newAction:"New Action",newTable:"New Table",createFolder:"New Folder Name",rename:"Rename",createNew:"New",default:"Default",done:"Done",tables:"Tables",selectDateFormat:"Select/Type Date Format",renameSectionSmart:"Edit Smart Space",renameSection:"Edit Space",createSectionSmart:"New Smart Space",createSection:"New Folder",createNote:"New Note",contextMaker:"Context Maker",select:"Select",pinnedItems:"Pinned Items",collapse:"Collapse",expand:"Expand",all:"All",none:"None",view:"View",findStickers:"Find Sticker",mergeProperties:"Merge Properties",placeholder:"Type '\${1}' for commands",itemsSelected:"\${1} Selected",selectNote:"Select Note",selectIcon:"Select Icon",selectImage:"Select Image",selectSpace:"Select Space",styleSmall:"Small",styleMedium:"Medium",styleLarge:"Large",hiddenFilePattern:"Name, Suffixes and Extension",hiddenFileSpecific:"Exclude specific files and folders",textPlaceholder:"Enter Text",noFile:"is not created yet. Click to create.",navigatorSearchPlaceholder:"Search by Text or Filters",blinkPlaceholder:"Quickly Search a File, Folder, Tag... Press Tab to Edit",searchPlaceholder:"Type to search...",contextItemSelectPlaceholder:"Find Item",linkItemSelectPlaceholder:"Find or Create Note",pinNotePlaceholder:"Select a Note or Space to Pin",optionItemSelectPlaceholder:"Select Option",viewItemSelectPlaceholder:"Select View",tagItemSelectPlaceholder:"Find Tag",spaceSelectPlaceholder:"Select any Folder or Tag",propertyItemSelectPlaceholder:"Select Property",sortItemSelectPlaceholder:"Select Sort",filterItemSelectPlaceholder:"Select Filter",imageSelectPlaceholder:"Select an image or paste a URL",imageNotFoundPlaceholder:"No Images Found",syncFrontmatterProperty:"Sync Frontmatter Property",newProperty:"New Property",newPropertyShort:"New Property",propertyType:"Type",propertyDynamic:"Dyanmic",propertyValueSpace:"Space",propertyValueProperty:"Property",propertyLookup:"Edit Formula",dateFormat:"Date Format",propertyFileProp:"Property",multiple:"Multiple",filesCount:"{$1} Files",hiddenFiles:"Hidden Files",addExtension:"Add Rule",saveView:"Save View",saveTable:"Save Table",renameView:"Rename View",renameTable:"Rename Table",syncMetadata:"Sync Metadata",syncProperties:"Sync Properties",selectContext:"Select Context",metadata:"Metadata",backlinks:"Backlinks",spaces:"Spaces",context:"Context",content:"Content",deleteSpace:"Delete Space",deleteFiles:"Delete Files",outgoingLinks:"Outgoing Links",moveTo:"Move to",addTo:"Pin to",copyTo:"Copy to",reorderIn:"Reorder in",border:"Border",corners:"Corners",color:"Color",backgroundColor:"Background",cornerRadius:"Radius",onClick:"On Click",layout:"Layout",element:"Element",name:"Name",display:"Display",alignment:"Alignment",margin:"Margin",padding:"Padding",gap:"Gap",width:"Width",height:"Height",opacity:"Opacity",shadow:"Shadow",shadowBlur:"Blur",shadowSpread:"Spread",typography:"Typography",layers:"Layers",fontSize:"Size",props:"Props",styles:"Styles",events:"Events",code:"Code",selectedLayers:"\${1} Layers"},descriptions:{spaceActions:"Create actions that runs when you press a button",spaceLists:"Create lists to track data and organize them in your space",spaceItems:"Add new items to the space or pin items to the space",smartSearch:"Automatically pin notes to this space based on a set of searches",hiddenFileOptions:"Exclude any files and folders by name, suffix or extension.",deleteSpace:"Deleting the space will also delete the folder and its contents.",deleteFiles:"Delete \${1} files/folders and their contents?",addContext:"Contexts lets you connect properties from your tags",spaceProperties:"Define Properties for your Space Items",syncMetadata:"Select which fields from your notes to start syncing with the context.",syncProperties:"Contexts defines and syncs the same fields across your notes depending on their folder or tag.",selectContext:"Select which folder or tag context you want to sync the fields."},flowView:{emptyDoc:"Empty Document",itemsCount:" Items",emptyFolder:"This Folder is Empty"},notice:{duplicateFile:"Folder already contains note with same name",addedToSection:"Added to Space",fileExists:"File Already Exists",folderExists:"Folder Already Exists",noPropertyName:"Property Name is Required",duplicatePropertyName:"Duplicate Property Name",newSpaceName:"Enter a name for your space",duplicateSpaceName:"Space name already exists",cantConvertNoteToSpace:"The view is not a note"},settings:{layoutVertical:"Vertical",layoutHorizontal:"Horizontal",sectionSidebar:"Spaces",sectionEditor:"Maker Mode",sectionFlow:"Flow",sectionAdvanced:"Advanced",sectionDataview:"Dataview",sectionContext:"Context",sectionStickers:"Stickers",sectionNavigator:"Navigator",sectionDefault:"Default Spaces",sectionSpaceView:"Space View",sectionBlink:"Blink",sectionInlineContext:"Inline Context",sectionFlowBlock:"Flow Block",sectionFlowMenu:"Flow Menu",sectionFlowStyler:"Flow Styler",experimental:{name:"Experimental",desc:"Experimental features that are subject to change and may not be optimized for performance"},generateThumbnails:{name:"Generate Thumbnails",desc:"Create thumbnails for images to speed up performance"},minimalThemeFix:{name:"Minimal Theme Fix",description:"Apply fixes for the popular theme Minimal"},inlineStickerMenu:{name:"Inline Stickers",desc:"Add inline stickers by typing :"},openSpacesOnLaunch:{name:"Open Spaces as Default Tab",desc:"Open the Spaces tab when Obsidian launches"},defaultSpaceTemplate:{name:"Default Space Template",desc:"Select the default template for new spaces"},defaultDateFormat:{name:"Default Date Format",desc:"Set the default date format, example: yyyy-MM-dd (see https://date-fns.org/v2.30.0/docs/format)"},newNotePlaceholder:{name:"New Note Placeholder",desc:"Default name for new notes"},folderIndentationLines:{name:"Show Folder Indentation Lines",desc:"Turn on to show a line on the left of folders to indicate indentation"},folderNoteLocation:{name:"Folder Note Location Inside Folder",desc:"Turn on to have folder notes inside the folder, turn off to have it outside"},folderViewDefault:{name:"Show Folder Note by Default",desc:"Show the folder note by default when opening a folder"},internalLinkFlowEditor:{name:"Open Flow Blocks on Internal Link Click",desc:"Turn on to toggle Flow Blocks directly by clicking on internal links, otherwise a tooltip will be shown"},syncContextToFrontmatter:{name:"Sync Context Fields to Frontmatter",desc:"Turn on to automatically save all context fields to frontmatter fields, not just existing frontmatter fields."},inlineBacklinks:{name:"Show Inline Backlinks (Inline Context required)",desc:"Show editable backlinks at the bottom of your notes"},dataviewInlineContext:{name:"Show Dataview in Inline Context",desc:"Show dataview when inline context is enabled"},inlineContextExplorer:{name:"Inline Context",desc:"Display the context and a banner at the top of your notes"},inlineContextExpanded:{name:"Auto Expand Inline Context",desc:"Expand the inline context sections when opening a note"},inlineContextHorizontal:{name:"Inline Title and Sticker Layout",desc:"Layout for inline title and sticker in Inline Context"},hideFrontmatter:{name:"Hide Frontmatter Properties",desc:"Hide the frontmatter properties in inline context"},openFileContext:{name:"Auto Open Explorer",desc:"Automatically open explorer panel in the right panel"},folderNote:{name:"Enable Folder Note",desc:"Access the folder note in the folder page and hide the folder note from spaces"},expandFolder:{name:"Auto Expand Folder",desc:"Auto expand folders on click"},hoverPreview:{name:"Preview on Hover",desc:"Preview on Hover while holding Control/Command key"},activeFile:{name:"Reveal Active File",desc:"Automatically reveal the active file in Spaces"},contexts:{name:"Contexts",desc:"Contexts allows you to have full control over the metadata of your files"},spaces:{name:"Navigator",desc:"The navigator lets you create and organize your spaces"},spacesStickers:{name:"Stickers",desc:"Use Emojis to make it easier to find your notes"},spacesAlias:{name:"Alias",desc:"Use the alias metadata to show in Spaces"},spacesFileExplorerDual:{name:"Compatibility Mode",desc:"This will improve the compatibility of plugins while using Spaces"},spacesDeleteOption:{name:"Delete File Option",desc:"Select how you want files to be deleted"},spacesDeleteOptions:{permanant:"Delete Permanently",trash:"Move to Obsidian Trash","system-trash":"Move to System Trash"},hideRibbon:{name:"App Ribbon",desc:"Show/hide the left menu aka. ribbon"},spaceView:{name:"Space View",desc:"Open the space view when you click on a space"},defaultSpaces:{name:"Default Spaces",desc:"Recommended spaces for quickly organizing your vault"},homeSpace:{name:"Home Space",desc:"An easy-to-access space where you can add/organize your other spaces"},tagSpaces:{name:"Tag Spaces",desc:"Automatically create spaces for each of your tags"},readableLineWidth:{name:"Readable Line Width",desc:"Use Readable Line Width"},sidebarTabs:{name:"Sidebar Tabs",desc:"Show/hide other sidebar tabs"},spacesPerformance:{name:"Performance Mode",desc:"Turn on performance mode for Spaces, may affect scrolling appearance. Requires Restart"},indexSVG:{name:"Use SVGs as Stickers",desc:"Use any svg file in your vault as a sticker"},inlineStyler:{name:"Flow Styler",desc:"Select text to add styling"},inlineStylerColor:{name:"Text and Highlight Colors \\u{1F9EA}",desc:"Select text color and highlight color, (this may change in the future because of the limitations with HTML and Obsidian)"},spaceRowHeight:{name:"Row Height",desc:"The height for each row in spaces (in pixels), default is 28"},makeChar:{name:"Flow Menu Trigger",desc:"Character to open the Flow Menu"},mobileMakeBar:{name:"Flow Styler (Mobile)",desc:"Replaces the mobile toolbar"},editorMarkSans:{name:"Mark Sans \\u{1F9EA}",desc:"Use the editor without Markdown."},editorMakerMode:{name:"Flow (Beta)",desc:"An integrated and intuitive editor experience"},editorMakePlacholder:{name:"Flow Menu Hint Text",desc:"Show a hint text on how to open the Flow Menu Shortcut"},blink:{name:"Blink",desc:"A faster way to search and edit your notes"},editorMakeMenu:{name:"Flow Menu",desc:"Open the Flow menu to quickly add content"},editorMakeMenuTrigger:{name:"Flow Menu Shortcut",desc:"Trigger key to use flow menu"},editorFlowReplace:{name:"Flow Block",desc:"Open your internal links or toggle your embeds in the flow block."},editorFlowStyle:{name:"Flow Block Style",desc:"Select a theme for your flow block",seamless:"Seamless",classic:"Classic",minimal:"Minimal"}}}};this.lang="en";let r=Vx.default.locale();["en"].includes(r)&&(this.lang=r)}get texts(){return this.all.en}},Vr=new Fd().texts;var Yx=(e,r)=>r==uo?Ws.find(t=>t.type=="file"):r=="tags"?Ws.find(t=>t.type=="tags"):r=="aliases"?Ws.find(t=>t.type=="option-multi"):r=="sticker"?Ws.find(t=>e=="icon"):Ws.find(t=>e==t.type)||Ws.find(t=>e==t.multiType),Ws=[{type:"unknown",label:"",restricted:!0,icon:"ui//file-question"},{type:"text",label:Vr.properties.text.label,metadata:!0,icon:"ui//text",description:Vr.properties.text.description},{type:"number",label:Vr.properties.number.label,metadata:!0,icon:"ui//binary",configKeys:["unit"],description:Vr.properties.number.description},{type:"boolean",label:Vr.properties.boolean.label,metadata:!0,icon:"ui//check-square",description:Vr.properties.boolean.description},{type:"date",label:Vr.properties.date.label,metadata:!0,icon:"ui//calendar",configKeys:["format"],description:Vr.properties.date.description},{type:"option",label:Vr.properties.option.label,multi:!0,multiType:"option-multi",icon:"ui//list",configKeys:["options"],description:Vr.properties.option.description},{type:"tags",label:Vr.properties.tags.label,icon:"ui//tags",description:Vr.properties.tags.description},{type:"file",label:Vr.properties.file.label,restricted:!0,icon:"ui//mk-make-h3"},{type:"fileprop",label:Vr.properties.fileProperty.label,icon:"ui//formula",configKeys:["field","value"],description:Vr.properties.fileProperty.description},{type:"link",label:Vr.properties.link.label,multi:!0,multiType:"link-multi",metadata:!0,icon:"ui//file-text",description:Vr.properties.link.description},{type:"context",label:Vr.properties.context.label,icon:"ui//mk-make-note",multi:!0,multiType:"context-multi",configKeys:["space"],description:Vr.properties.context.description},{type:"object",label:Vr.properties.object.label,multi:!0,multiType:"object-multi",metadata:!0,icon:"ui//list-tree",configKeys:["type"],description:Vr.properties.object.description},{type:"icon",label:Vr.properties.icon.label,multi:!0,multiType:"icon-multi",icon:"ui//gem",description:Vr.properties.icon.description},{type:"image",label:Vr.properties.image.label,multi:!0,multiType:"image-multi",metadata:!0,icon:"ui//mk-make-image",description:Vr.properties.image.description},{type:"color",label:Vr.properties.color.label,icon:"ui//mk-make-image",description:Vr.properties.color.description},{type:"space",label:Vr.properties.space.label,icon:"ui//layout-grid",restricted:!0,description:Vr.properties.space.description},{type:"table",label:Vr.properties.space.label,icon:"ui//layout-grid",restricted:!0,description:Vr.properties.space.description},{type:"super",label:Vr.properties.super.label,icon:"ui//zap",restricted:!0,configKeys:["dynamic","field"]},{type:"input",label:Vr.properties.super.label,icon:"ui//input",restricted:!0}];var Vs="files",rc={id:Vs,name:"Files",type:"db",primary:"true"},ik="filesView",ak={id:ik,name:"All",type:"view",def:JSON.stringify({db:Vs,icon:"ui//file-stack"})},ok="main",sk=e=>({id:e,name:e,type:"frame",def:"",predicate:"",primary:"true"}),C$={uniques:[],cols:["id","name","type","def","predicate","primary"],rows:[sk(ok),ak]},jl={uniques:[],cols:["id","name","type","def","predicate","primary"],rows:[rc]},Hx={uniques:["name,schemaId"],cols:["name","schemaId","type","value","attrs","hidden","unique","primary"]},ec={...Hx,rows:[{name:uo,schemaId:Vs,type:"file",primary:"true",hidden:"",unique:"",attrs:"",value:""},{name:Vr.properties.fileProperty.createdTime,schemaId:Vs,type:"fileprop",value:uo+".ctime",hidden:"",unique:"",attrs:"",primary:"true"}]};var M$=[{name:Vr.properties.defaultField,schemaId:"",type:"text",primary:"true"}],Od={...Hx,rows:[{name:uo,schemaId:Vs,type:"file",primary:"true",hidden:"",unique:"",attrs:"",value:""}]};var _$={schema:rc,cols:ec.rows,rows:[]},T$={schema:rc,cols:ec.rows,rows:[]},F$={schema:rc,cols:Od.rows,rows:[]},Gx=(e,r)=>e.filter(t=>r.find(n=>n.id==t.schemaId&&n.type=="db")).reduce((t,n)=>({...t,...t[n.schemaId]?{[n.schemaId]:{uniques:n.unique=="true"?[...t[n.schemaId].uniques,n.name]:t[n.schemaId].uniques,cols:[...t[n.schemaId].cols,n.name],rows:[]}}:{[n.schemaId]:{uniques:n.unique=="true"?[n.name]:[],cols:[n.name],rows:[]}}}),{});var O$={m_schema:jl,m_fields:ec,...Gx(ec.rows,jl.rows)},B$={m_schema:jl,m_fields:Od,...Gx(Od.rows,jl.rows)};var fk=(e,r)=>{let t=n=>n=="builtin"?"Builtin":n=="api"?"Spaces":"Action";return[...(e.actionsIndex.get(r)??[]).map(n=>({name:n.schema.name,description:"Action",value:\`\${r}/#;\${n.schema.id}\`,section:"Action"}))??[],...[...e.cli.allCommands()].map(n=>({name:n.schema.name,description:t(n.schema.type),value:n.path,section:t(n.schema.type)}))]};var $x=({field:e,value:r})=>r=="ctime"?{value:\`parseDate(prop('\${e}')['metadata']['file']['\${r}'])\`}:{value:\`prop('\${e}')['metadata']['file']['\${r}']\`},Bd=(e,r,t,n)=>{let i=Ql(e);if(i)return r=="fileprop"&&i.field?$x(i):(r=="option"&&i.source?.length>0&&(i.source=="$commands"?i.options=t.cli.allCommands():i.source=="$links"?i.options=t.spaceManager.allPaths().map(a=>({name:a,value:a})):i.source=="$super"&&(i.options=fk(t,n))),[...Yx(r).configKeys??[],"alias","default"].reduce((a,s)=>({...a,[s]:i[s]}),{}));if(!r)return{};if(!i)if(r=="context")e?.length>0?i={space:e}:i={};else if(r.startsWith("date"))e?.length>0?i={format:e}:i={};else if(r.startsWith("fileprop"))if(e?.length>0){let[a,s]=e.split(".");i=$x({field:a,value:s})}else i={};else r.startsWith("option")&&(e?.length>0?i={options:qi(e).map(s=>({name:s,value:s}))}:i={});return i??{}};function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var r=1;re[r])}var Kx=["Matrix","Array"],jx=["number","BigNumber","Fraction"];function ry(e,r){function t(n){if(n){var i=Gs(e,tr);ey(n,"matrix",Kx),ey(n,"number",jx),Id(e,n);var a=Gs(e,tr),s=Gs(n,tr);return r("config",a,i,s),a}else return Gs(e,tr)}return t.MATRIX_OPTIONS=Kx,t.NUMBER_OPTIONS=jx,Object.keys(tc).forEach(n=>{Object.defineProperty(t,n,{get:()=>e[n],enumerable:!0,configurable:!0})}),t}function lk(e,r){return e.indexOf(r)!==-1}function ey(e,r,t){e[r]!==void 0&&!lk(t,e[r])&&console.warn('Warning: Unknown value "'+e[r]+'" for configuration option "'+r+'". Available options: '+t.map(n=>JSON.stringify(n)).join(", ")+".")}var Mg={};a8(Mg,{createAbs:()=>tb,createAccessorNode:()=>N2,createAcos:()=>eN,createAcosh:()=>tN,createAcot:()=>iN,createAcoth:()=>oN,createAcsc:()=>uN,createAcsch:()=>lN,createAdd:()=>m2,createAddScalar:()=>ab,createAnd:()=>tp,createAndTransform:()=>UO,createApply:()=>au,createApplyTransform:()=>mO,createArg:()=>ow,createArrayNode:()=>A2,createAsec:()=>pN,createAsech:()=>hN,createAsin:()=>vN,createAsinh:()=>gN,createAssignmentNode:()=>M2,createAtan:()=>xN,createAtan2:()=>bN,createAtanh:()=>DN,createAtomicMass:()=>G3,createAvogadro:()=>$3,createBellNumbers:()=>EF,createBigNumberClass:()=>Qy,createBignumber:()=>L1,createBin:()=>AD,createBitAnd:()=>Vc,createBitAndTransform:()=>WO,createBitNot:()=>rw,createBitOr:()=>Yc,createBitOrTransform:()=>VO,createBitXor:()=>iw,createBlockNode:()=>_2,createBohrMagneton:()=>E3,createBohrRadius:()=>O3,createBoltzmann:()=>Z3,createBoolean:()=>R1,createCatalan:()=>MF,createCbrt:()=>fb,createCeil:()=>lb,createChain:()=>eT,createChainClass:()=>NA,createClassicalElectronRadius:()=>B3,createClone:()=>s1,createColumn:()=>$c,createColumnTransform:()=>hO,createCombinations:()=>RT,createCombinationsWithRep:()=>UT,createCompare:()=>hS,createCompareNatural:()=>xS,createCompareText:()=>bS,createCompile:()=>Q2,createComplex:()=>q1,createComplexClass:()=>Ky,createComposition:()=>TF,createConcat:()=>Gc,createConcatTransform:()=>CO,createConditionalNode:()=>T2,createConductanceQuantum:()=>C3,createConj:()=>uw,createConstantNode:()=>k2,createCorr:()=>IT,createCos:()=>NN,createCosh:()=>EN,createCot:()=>MN,createCoth:()=>TN,createCoulomb:()=>N3,createCount:()=>ww,createCreateUnit:()=>KS,createCross:()=>Sw,createCsc:()=>ON,createCsch:()=>IN,createCtranspose:()=>oD,createCube:()=>pb,createCumSum:()=>Rp,createCumSumTransform:()=>PO,createDeepEqual:()=>_S,createDenseMatrixClass:()=>a1,createDerivative:()=>WF,createDet:()=>tT,createDeuteronMass:()=>q3,createDiag:()=>Aw,createDiff:()=>Zc,createDiffTransform:()=>_O,createDistance:()=>DT,createDivide:()=>bT,createDivideScalar:()=>LD,createDot:()=>y2,createDotDivide:()=>KD,createDotMultiply:()=>$b,createDotPow:()=>XD,createE:()=>a3,createEfimovFactor:()=>H3,createEigs:()=>fT,createElectricConstant:()=>D3,createElectronMass:()=>I3,createElementaryCharge:()=>A3,createEqual:()=>wS,createEqualScalar:()=>F1,createEqualText:()=>SS,createErf:()=>dD,createEvaluate:()=>J2,createExp:()=>hb,createExpm:()=>cT,createExpm1:()=>vb,createFactorial:()=>GT,createFalse:()=>jF,createFaraday:()=>Q3,createFermiCoupling:()=>P3,createFft:()=>lD,createFibonacciHeapClass:()=>US,createFilter:()=>Cw,createFilterTransform:()=>vO,createFineStructure:()=>k3,createFirstRadiation:()=>X3,createFix:()=>gb,createFlatten:()=>_w,createFloor:()=>qc,createForEach:()=>Fw,createForEachTransform:()=>gO,createFormat:()=>SD,createFraction:()=>U1,createFractionClass:()=>r1,createFreqz:()=>ZF,createFunctionAssignmentNode:()=>R2,createFunctionNode:()=>H2,createGamma:()=>WT,createGasConstant:()=>K3,createGcd:()=>Sb,createGetMatrixDataType:()=>Bw,createGravitationConstant:()=>x3,createGravity:()=>sO,createHartreeEnergy:()=>R3,createHasNumericValue:()=>w1,createHelp:()=>K_,createHelpClass:()=>SA,createHex:()=>_D,createHypot:()=>d2,createI:()=>m3,createIdentity:()=>Pw,createIfft:()=>pD,createIm:()=>lw,createImmutableDenseMatrixClass:()=>RS,createIndex:()=>D2,createIndexClass:()=>qS,createIndexNode:()=>L2,createIndexTransform:()=>xO,createInfinity:()=>r3,createIntersect:()=>ST,createInv:()=>iT,createInverseConductanceQuantum:()=>M3,createInvmod:()=>Hb,createIsInteger:()=>f1,createIsNaN:()=>C1,createIsNegative:()=>g1,createIsNumeric:()=>y1,createIsPositive:()=>S1,createIsPrime:()=>PD,createIsZero:()=>A1,createKldivergence:()=>ZT,createKlitzing:()=>F3,createKron:()=>Rw,createLN10:()=>u3,createLN2:()=>s3,createLOG10E:()=>l3,createLOG2E:()=>f3,createLarger:()=>ES,createLargerEq:()=>CS,createLcm:()=>Ab,createLeafCount:()=>OF,createLeftShift:()=>uS,createLgamma:()=>YT,createLog:()=>YD,createLog10:()=>Cb,createLog1p:()=>GD,createLog2:()=>_b,createLoschmidt:()=>J3,createLsolve:()=>eS,createLsolveAll:()=>iS,createLup:()=>tA,createLusolve:()=>bA,createLyap:()=>yT,createMad:()=>_T,createMagneticConstant:()=>w3,createMagneticFluxQuantum:()=>_3,createMap:()=>qw,createMapTransform:()=>bO,createMatrix:()=>W1,createMatrixClass:()=>n1,createMatrixFromColumns:()=>Z1,createMatrixFromFunction:()=>Y1,createMatrixFromRows:()=>G1,createMax:()=>lp,createMaxTransform:()=>wO,createMean:()=>Lp,createMeanTransform:()=>DO,createMedian:()=>CT,createMin:()=>cp,createMinTransform:()=>SO,createMod:()=>Uc,createMode:()=>yD,createMolarMass:()=>aO,createMolarMassC12:()=>oO,createMolarPlanckConstant:()=>j3,createMolarVolume:()=>eO,createMultinomial:()=>XT,createMultiply:()=>Ob,createMultiplyScalar:()=>Tb,createNaN:()=>t3,createNeutronMass:()=>U3,createNode:()=>S2,createNorm:()=>g2,createNot:()=>hw,createNthRoot:()=>Ib,createNthRoots:()=>ZD,createNuclearMagneton:()=>T3,createNull:()=>e3,createNumber:()=>B1,createNumeric:()=>kD,createObjectNode:()=>q2,createOct:()=>CD,createOnes:()=>zw,createOperatorNode:()=>U2,createOr:()=>Hc,createOrTransform:()=>zO,createParenthesisNode:()=>z2,createParse:()=>$2,createParser:()=>eA,createParserClass:()=>K2,createPartitionSelect:()=>OS,createPermutations:()=>jT,createPhi:()=>o3,createPi:()=>n3,createPickRandom:()=>xF,createPinv:()=>oT,createPlanckCharge:()=>cO,createPlanckConstant:()=>y3,createPlanckLength:()=>uO,createPlanckMass:()=>fO,createPlanckTemperature:()=>pO,createPlanckTime:()=>lO,createPolynomialRoot:()=>DA,createPow:()=>UD,createPrint:()=>rp,createPrintTransform:()=>qO,createProd:()=>wD,createProtonMass:()=>L3,createQr:()=>iA,createQuantileSeq:()=>Up,createQuantileSeqTransform:()=>BO,createQuantumOfCirculation:()=>z3,createRandom:()=>bF,createRandomInt:()=>DF,createRange:()=>Jc,createRangeClass:()=>t1,createRangeNode:()=>W2,createRangeTransform:()=>NO,createRationalize:()=>YF,createRe:()=>pw,createReducedPlanckConstant:()=>b3,createRelationalNode:()=>V2,createReplacer:()=>XF,createReshape:()=>Yw,createResize:()=>Hw,createResolve:()=>LF,createResultSet:()=>Iy,createReviver:()=>QF,createRightArithShift:()=>lS,createRightLogShift:()=>pS,createRotate:()=>$w,createRotationMatrix:()=>Qw,createRound:()=>WD,createRow:()=>Kc,createRowTransform:()=>AO,createRydberg:()=>W3,createSQRT1_2:()=>c3,createSQRT2:()=>p3,createSackurTetrode:()=>rO,createSchur:()=>gT,createSec:()=>kN,createSech:()=>LN,createSecondRadiation:()=>tO,createSetCartesian:()=>$N,createSetDifference:()=>QN,createSetDistinct:()=>JN,createSetIntersect:()=>jN,createSetIsSubset:()=>r2,createSetMultiplicity:()=>n2,createSetPowerset:()=>a2,createSetSize:()=>s2,createSetSymDifference:()=>f2,createSetUnion:()=>c2,createSign:()=>kb,createSimplify:()=>IF,createSimplifyConstant:()=>PF,createSimplifyCore:()=>RF,createSin:()=>UN,createSinh:()=>WN,createSize:()=>Kw,createSlu:()=>xA,createSmaller:()=>NS,createSmallerEq:()=>AS,createSolveODE:()=>hD,createSort:()=>IS,createSpaClass:()=>zS,createSparse:()=>XS,createSparseMatrixClass:()=>O1,createSpeedOfLight:()=>g3,createSplitUnit:()=>X1,createSqrt:()=>Rb,createSqrtm:()=>mT,createSquare:()=>qb,createSqueeze:()=>eD,createStd:()=>zp,createStdTransform:()=>TO,createStefanBoltzmann:()=>nO,createStirlingS2:()=>NF,createString:()=>P1,createSubset:()=>jc,createSubsetTransform:()=>EO,createSubtract:()=>zb,createSubtractScalar:()=>sb,createSum:()=>Pp,createSumTransform:()=>OO,createSylvester:()=>dT,createSymbolNode:()=>Y2,createSymbolicEqual:()=>UF,createTan:()=>YN,createTanh:()=>HN,createTau:()=>i3,createThomsonCrossSection:()=>V3,createTo:()=>BD,createTrace:()=>b2,createTranspose:()=>iD,createTrue:()=>KF,createTypeOf:()=>_1,createTyped:()=>By,createUnaryMinus:()=>K1,createUnaryPlus:()=>eb,createUnequal:()=>TS,createUnitClass:()=>GS,createUnitFunction:()=>ZS,createUppercaseE:()=>d3,createUppercasePi:()=>h3,createUsolve:()=>tS,createUsolveAll:()=>oS,createVacuumImpedance:()=>S3,createVariance:()=>qp,createVarianceTransform:()=>RO,createVersion:()=>v3,createWeakMixingAngle:()=>Y3,createWienDisplacement:()=>iO,createXgcd:()=>Vb,createXor:()=>gw,createZeros:()=>uD,createZeta:()=>gD,createZpk2tf:()=>GF});var Kd=li(vc(),1);function He(e){return typeof e=="boolean"?!0:isFinite(e)?e===Math.round(e):!1}var mi=Math.sign||function(e){return e>0?1:e<0?-1:0},iy=Math.log2||function(r){return Math.log(r)/Math.LN2},ay=Math.log10||function(r){return Math.log(r)/Math.LN10},gc=Math.log1p||function(e){return Math.log(e+1)},oy=Math.cbrt||function(r){if(r===0)return r;var t=r<0,n;return t&&(r=-r),isFinite(r)?(n=Math.exp(Math.log(r)/3),n=(r/(n*n)+2*n)/3):n=r,t?-n:n},sy=Math.expm1||function(r){return r>=2e-4||r<=-2e-4?Math.exp(r)-1:r+r*r/2+r*r*r/6};function Ld(e,r,t){var n={2:"0b",8:"0o",16:"0x"},i=n[r],a="";if(t){if(t<1)throw new Error("size must be in greater than 0");if(!He(t))throw new Error("size must be an integer");if(e>2**(t-1)-1||e<-(2**(t-1)))throw new Error("Value must be in range [-2^".concat(t-1,", 2^").concat(t-1,"-1]"));if(!He(e))throw new Error("Value must be an integer");e<0&&(e=e+2**t),a="i".concat(t)}var s="";return e<0&&(e=-e,s="-"),"".concat(s).concat(i).concat(e.toString(r)).concat(a)}function zi(e,r){if(typeof r=="function")return r(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var{notation:t,precision:n,wordSize:i}=qd(r);switch(t){case"fixed":return Ud(e,n);case"exponential":return uy(e,n);case"engineering":return ck(e,n);case"bin":return Ld(e,2,i);case"oct":return Ld(e,8,i);case"hex":return Ld(e,16,i);case"auto":return pk(e,n,r).replace(/((\\.\\d*?)(0+))($|e)/,function(){var a=arguments[2],s=arguments[4];return a!=="."?a+s:s});default:throw new Error('Unknown notation "'+t+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function qd(e){var r="auto",t,n;if(e!==void 0)if(ar(e))t=e;else if(je(e))t=e.toNumber();else if(ua(e))e.precision!==void 0&&(t=ty(e.precision,()=>{throw new Error('Option "precision" must be a number or BigNumber')})),e.wordSize!==void 0&&(n=ty(e.wordSize,()=>{throw new Error('Option "wordSize" must be a number or BigNumber')})),e.notation&&(r=e.notation);else throw new Error("Unsupported type of options, number, BigNumber, or object expected");return{notation:r,precision:t,wordSize:n}}function Qs(e){var r=String(e).toLowerCase().match(/^(-?)(\\d+\\.?\\d*)(e([+-]?\\d+))?$/);if(!r)throw new SyntaxError("Invalid number "+e);var t=r[1],n=r[2],i=parseFloat(r[4]||"0"),a=n.indexOf(".");i+=a!==-1?a-1:n.length-1;var s=n.replace(".","").replace(/^0*/,function(c){return i-=c.length,""}).replace(/0*$/,"").split("").map(function(c){return parseInt(c)});return s.length===0&&(s.push(0),i++),{sign:t,coefficients:s,exponent:i}}function ck(e,r){if(isNaN(e)||!isFinite(e))return String(e);var t=Qs(e),n=xc(t,r),i=n.exponent,a=n.coefficients,s=i%3===0?i:i<0?i-3-i%3:i-i%3;if(ar(r))for(;r>a.length||i-s+1>a.length;)a.push(0);else for(var c=Math.abs(i-s)-(a.length-1),f=0;f0;)u++,o--;var p=a.slice(u).join(""),h=ar(r)&&p.length||p.match(/[1-9]/)?"."+p:"",d=a.slice(0,u).join("")+h+"e"+(i>=0?"+":"")+s.toString();return n.sign+d}function Ud(e,r){if(isNaN(e)||!isFinite(e))return String(e);var t=Qs(e),n=typeof r=="number"?xc(t,t.exponent+1+r):t,i=n.coefficients,a=n.exponent+1,s=a+(r||0);return i.length0?"."+i.join(""):"")+"e"+(a>=0?"+":"")+a}function pk(e,r,t){if(isNaN(e)||!isFinite(e))return String(e);var n=ny(t?.lowerExp,-3),i=ny(t?.upperExp,5),a=Qs(e),s=r?xc(a,r):a;if(s.exponent=i)return uy(e,r);var c=s.coefficients,f=s.exponent;c.length0?f:0;return or){var i=n.splice(r,n.length-r);if(i[0]>=5){var a=r-1;for(n[a]++;n[a]===10;)n.pop(),a===0&&(n.unshift(0),t.exponent++,a++),a--,n[a]++}}return t}function Zs(e){for(var r=[],t=0;t0?!0:e<0?!1:1/e===1/0,n=r>0?!0:r<0?!1:1/r===1/0;return t^n?-e:e}function ty(e,r){if(ar(e))return e;if(je(e))return e.toNumber();r()}function ny(e,r){return ar(e)?e:je(e)?e.toNumber():r}function zd(e,r,t){var n=e.constructor,i=new n(2),a="";if(t){if(t<1)throw new Error("size must be in greater than 0");if(!He(t))throw new Error("size must be an integer");if(e.greaterThan(i.pow(t-1).sub(1))||e.lessThan(i.pow(t-1).mul(-1)))throw new Error("Value must be in range [-2^".concat(t-1,", 2^").concat(t-1,"-1]"));if(!e.isInteger())throw new Error("Value must be an integer");e.lessThan(0)&&(e=e.add(i.pow(t))),a="i".concat(t)}switch(r){case 2:return"".concat(e.toBinary()).concat(a);case 8:return"".concat(e.toOctal()).concat(a);case 16:return"".concat(e.toHexadecimal()).concat(a);default:throw new Error("Base ".concat(r," not supported "))}}function gy(e,r){if(typeof r=="function")return r(e);if(!e.isFinite())return e.isNaN()?"NaN":e.gt(0)?"Infinity":"-Infinity";var{notation:t,precision:n,wordSize:i}=qd(r);switch(t){case"fixed":return dk(e,n);case"exponential":return dy(e,n);case"engineering":return hk(e,n);case"bin":return zd(e,2,i);case"oct":return zd(e,8,i);case"hex":return zd(e,16,i);case"auto":{var a=vy(r?.lowerExp,-3),s=vy(r?.upperExp,5);if(e.isZero())return"0";var c,f=e.toSignificantDigits(n),o=f.e;return o>=a&&o=0?"+":"")+n.toString()}function dy(e,r){return r!==void 0?e.toExponential(r-1):e.toExponential()}function dk(e,r){return e.toFixed(r)}function vy(e,r){return ar(e)?e:je(e)?e.toNumber():r}function yy(e,r){var t=e.length-r.length,n=e.length;return e.substring(t,n)===r}function lr(e,r){var t=vk(e,r);return r&&typeof r=="object"&&"truncate"in r&&t.length>r.truncate?t.substring(0,r.truncate-3)+"...":t}function vk(e,r){if(typeof e=="number")return zi(e,r);if(je(e))return gy(e,r);if(gk(e))return!r||r.fraction!=="decimal"?e.s*e.n+"/"+e.d:e.toString();if(Array.isArray(e))return by(e,r);if(yt(e))return Jo(e);if(typeof e=="function")return e.syntax?String(e.syntax):"function";if(e&&typeof e=="object"){if(typeof e.format=="function")return e.format(r);if(e&&e.toString(r)!=={}.toString())return e.toString(r);var t=Object.keys(e).map(n=>Jo(n)+": "+lr(e[n],r));return"{"+t.join(", ")+"}"}return String(e)}function Jo(e){for(var r=String(e),t="",n=0;n/g,">"),r}function by(e,r){if(Array.isArray(e)){for(var t="[",n=e.length,i=0;ir?1:-1}function pr(e,r,t){if(!(this instanceof pr))throw new SyntaxError("Constructor must be called with the new operator");this.actual=e,this.expected=r,this.relation=t,this.message="Dimension mismatch ("+(Array.isArray(e)?"["+e.join(", ")+"]":e)+" "+(this.relation||"!=")+" "+(Array.isArray(r)?"["+r.join(", ")+"]":r)+")",this.stack=new Error().stack}pr.prototype=new RangeError;pr.prototype.constructor=RangeError;pr.prototype.name="DimensionError";pr.prototype.isDimensionError=!0;function Xt(e,r,t){if(!(this instanceof Xt))throw new SyntaxError("Constructor must be called with the new operator");this.index=e,arguments.length<3?(this.min=0,this.max=r):(this.min=r,this.max=t),this.min!==void 0&&this.index=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=new Error().stack}Xt.prototype=new RangeError;Xt.prototype.constructor=RangeError;Xt.prototype.name="IndexError";Xt.prototype.isIndexError=!0;function or(e){for(var r=[];Array.isArray(e);)r.push(e.length),e=e[0];return r}function wy(e,r,t){var n,i=e.length;if(i!==r[t])throw new pr(i,r[t]);if(t")}function Vd(e,r){var t=r.length===0;if(t){if(Array.isArray(e))throw new pr(e.length,0)}else wy(e,r,0)}function df(e,r){var t=e.isMatrix?e._size:or(e),n=r._sourceSize;n.forEach((i,a)=>{if(i!==null&&i!==t[a])throw new pr(i,t[a])})}function Xr(e,r){if(e!==void 0){if(!ar(e)||!He(e))throw new TypeError("Index must be an integer (value: "+e+")");if(e<0||typeof r=="number"&&e>=r)throw new Xt(e,r)}}function Ko(e){for(var r=0;r=0,f=r%t===0;if(c)if(f)n[a]=-r/t;else throw new Error("Could not replace wildcard, since "+r+" is no multiple of "+-t);return n}function Dy(e){return e.reduce((r,t)=>r*t,1)}function xk(e,r){for(var t=e,n,i=r.length-1;i>0;i--){var a=r[i];n=[];for(var s=t.length/a,c=0;cr.test(t))}function Yd(e,r){return Array.prototype.join.call(e,r)}function Ia(e){if(!Array.isArray(e))throw new TypeError("Array input expected");if(e.length===0)return e;var r=[],t=0;r[0]={value:e[0],identifier:0};for(var n=1;n1)return e.slice(1).reduce(function(t,n){return Ay(t,n,r,0)},e[0]);throw new Error("Wrong number of arguments in function concat")}function yk(){for(var e=arguments.length,r=new Array(e),t=0;th.length),i=Math.max(...n),a=new Array(i).fill(null),s=0;sa[u]&&(a[u]=c[o])}for(var p=0;p1||e[i]>r[a])throw new Error("shape missmatch: missmatch is found in arg with shape (".concat(e,") not possible to broadcast dimension ").concat(n," with size ").concat(e[i]," to size ").concat(r[a]))}}function $d(e,r){var t=or(e);if(Ui(t,r))return e;xf(t,r);var n=yk(t,r),i=n.length,a=[...Array(i-t.length).fill(1),...t],s=wk(e);t.length!Sk(a)).every(a=>t[a]!==void 0);if(!n){var i=r.filter(a=>t[a]===void 0);throw new Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(i.map(a=>'"'.concat(a,'"')).join(", "),"."))}}function Sk(e){return e&&e[0]==="?"}function Zd(e){return e&&e[0]==="?"?e.slice(1):e}function gt(e,r){if(_y(e)&&Cy(e,r))return e[r];throw typeof e[r]=="function"&&Nc(e,r)?new Error('Cannot access method "'+r+'" as a property'):new Error('No access to property "'+r+'"')}function la(e,r,t){if(_y(e)&&Cy(e,r))return e[r]=t,t;throw new Error('No access to property "'+r+'"')}function Ey(e,r){return r in e}function Cy(e,r){return!e||typeof e!="object"?!1:$e(Nk,r)?!0:!(r in Object.prototype||r in Function.prototype)}function My(e,r){if(!Nc(e,r))throw new Error('No access to method "'+r+'"');return e[r]}function Nc(e,r){return e==null||typeof e[r]!="function"||$e(e,r)&&Object.getPrototypeOf&&r in Object.getPrototypeOf(e)?!1:$e(Ak,r)?!0:!(r in Object.prototype||r in Function.prototype)}function _y(e){return typeof e=="object"&&e&&e.constructor===Object}var Nk={length:!0,name:!0},Ak={toString:!0,valueOf:!0,toLocaleString:!0};var es=class{constructor(r){this.wrappedObject=r,this[Symbol.iterator]=this.entries}keys(){return Object.keys(this.wrappedObject).values()}get(r){return gt(this.wrappedObject,r)}set(r,t){return la(this.wrappedObject,r,t),this}has(r){return Ey(this.wrappedObject,r)}entries(){return Ty(this.keys(),r=>[r,this.get(r)])}forEach(r){for(var t of this.keys())r(this.get(t),t,this)}delete(r){delete this.wrappedObject[r]}clear(){for(var r of this.keys())this.delete(r)}get size(){return Object.keys(this.wrappedObject).length}},js=class{constructor(r,t,n){this.a=r,this.b=t,this.bKeys=n,this[Symbol.iterator]=this.entries}get(r){return this.bKeys.has(r)?this.b.get(r):this.a.get(r)}set(r,t){return this.bKeys.has(r)?this.b.set(r,t):this.a.set(r,t),this}has(r){return this.b.has(r)||this.a.has(r)}keys(){return new Set([...this.a.keys(),...this.b.keys()])[Symbol.iterator]()}entries(){return Ty(this.keys(),r=>[r,this.get(r)])}forEach(r){for(var t of this.keys())r(this.get(t),t,this)}delete(r){return this.bKeys.has(r)?this.b.delete(r):this.a.delete(r)}clear(){this.a.clear(),this.b.clear()}get size(){return[...this.keys()].length}};function Ty(e,r){return{next:()=>{var t=e.next();return t.done?t:{value:r(t.value),done:!1}}}}function vo(){return new Map}function Pa(e){if(!e)return vo();if(Qd(e))return e;if(ua(e))return new es(e);throw new Error("createMap can create maps from objects or Maps")}function Fy(e){if(e instanceof es)return e.wrappedObject;var r={};for(var t of e.keys()){var n=e.get(t);la(r,t,n)}return r}function Qd(e){return e?e instanceof Map||e instanceof es||typeof e.set=="function"&&typeof e.get=="function"&&typeof e.keys=="function"&&typeof e.has=="function":!1}var Oy=function(){return Oy=Kd.default.create,Kd.default},Ek=["?BigNumber","?Complex","?DenseMatrix","?Fraction"],By=T("typed",Ek,function(r){var{BigNumber:t,Complex:n,DenseMatrix:i,Fraction:a}=r,s=Oy();return s.clear(),s.addTypes([{name:"number",test:ar},{name:"Complex",test:Gt},{name:"BigNumber",test:je},{name:"Fraction",test:Xn},{name:"Unit",test:qt},{name:"identifier",test:c=>yt&&/^(?:[A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])(?:[0-9A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])*$/.test(c)},{name:"string",test:yt},{name:"Chain",test:Hs},{name:"Array",test:Ar},{name:"Matrix",test:Ge},{name:"DenseMatrix",test:Ba},{name:"SparseMatrix",test:Jn},{name:"Range",test:po},{name:"Index",test:sa},{name:"boolean",test:nc},{name:"ResultSet",test:ic},{name:"Help",test:Ys},{name:"function",test:ac},{name:"Date",test:oc},{name:"RegExp",test:sc},{name:"null",test:uc},{name:"undefined",test:fc},{name:"AccessorNode",test:Sn},{name:"ArrayNode",test:$t},{name:"AssignmentNode",test:lc},{name:"BlockNode",test:cc},{name:"ConditionalNode",test:pc},{name:"ConstantNode",test:yr},{name:"FunctionNode",test:fn},{name:"FunctionAssignmentNode",test:pi},{name:"IndexNode",test:kn},{name:"Node",test:Sr},{name:"ObjectNode",test:fa},{name:"OperatorNode",test:ut},{name:"ParenthesisNode",test:Zt},{name:"RangeNode",test:mc},{name:"RelationalNode",test:hc},{name:"SymbolNode",test:rt},{name:"Map",test:Qd},{name:"Object",test:ua}]),s.addConversions([{from:"number",to:"BigNumber",convert:function(f){if(t||Xd(f),fy(f)>15)throw new TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+f+"). Use function bignumber(x) to convert to BigNumber.");return new t(f)}},{from:"number",to:"Complex",convert:function(f){return n||Ac(f),new n(f,0)}},{from:"BigNumber",to:"Complex",convert:function(f){return n||Ac(f),new n(f.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(f){throw new TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(f){return n||Ac(f),new n(f.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(f){a||Jd(f);var o=new a(f);if(o.valueOf()!==f)throw new TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+f+"). Use function fraction(x) to convert to Fraction.");return o}},{from:"string",to:"number",convert:function(f){var o=Number(f);if(isNaN(o))throw new Error('Cannot convert "'+f+'" to a number');return o}},{from:"string",to:"BigNumber",convert:function(f){t||Xd(f);try{return new t(f)}catch{throw new Error('Cannot convert "'+f+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(f){a||Jd(f);try{return new a(f)}catch{throw new Error('Cannot convert "'+f+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(f){n||Ac(f);try{return new n(f)}catch{throw new Error('Cannot convert "'+f+'" to Complex')}}},{from:"boolean",to:"number",convert:function(f){return+f}},{from:"boolean",to:"BigNumber",convert:function(f){return t||Xd(f),new t(+f)}},{from:"boolean",to:"Fraction",convert:function(f){return a||Jd(f),new a(+f)}},{from:"boolean",to:"string",convert:function(f){return String(f)}},{from:"Array",to:"Matrix",convert:function(f){return i||Ck(),new i(f)}},{from:"Matrix",to:"Array",convert:function(f){return f.valueOf()}}]),s.onMismatch=(c,f,o)=>{var u=s.createError(c,f,o);if(["wrongType","mismatch"].includes(u.data.category)&&f.length===1&&bt(f[0])&&o.some(h=>!h.params.includes(","))){var p=new TypeError("Function '".concat(c,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(c,")'."));throw p.data=u.data,p}throw u},s.onMismatch=(c,f,o)=>{var u=s.createError(c,f,o);if(["wrongType","mismatch"].includes(u.data.category)&&f.length===1&&bt(f[0])&&o.some(h=>!h.params.includes(","))){var p=new TypeError("Function '".concat(c,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(c,")'."));throw p.data=u.data,p}throw u},s});function Xd(e){throw new Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function Ac(e){throw new Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function Ck(){throw new Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}function Jd(e){throw new Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}var Mk="ResultSet",_k=[],Iy=T(Mk,_k,()=>{function e(r){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");this.entries=r||[]}return e.prototype.type="ResultSet",e.prototype.isResultSet=!0,e.prototype.valueOf=function(){return this.entries},e.prototype.toString=function(){return"["+this.entries.join(", ")+"]"},e.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},e.fromJSON=function(r){return new e(r.entries)},e},{isClass:!0});var eu=9e15,bo=1e9,jd="0123456789abcdef",Cc="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Mc="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",ev={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-eu,maxE:eu,crypto:!1},Ly,ka,Er=!0,Tc="[DecimalError] ",yo=Tc+"Invalid argument: ",qy=Tc+"Precision limit exceeded",Uy=Tc+"crypto unavailable",zy="[object Decimal]",mn=Math.floor,Jt=Math.pow,Tk=/^0b([01]+(\\.[01]*)?|\\.[01]+)(p[+-]?\\d+)?$/i,Fk=/^0x([0-9a-f]+(\\.[0-9a-f]*)?|\\.[0-9a-f]+)(p[+-]?\\d+)?$/i,Ok=/^0o([0-7]+(\\.[0-7]*)?|\\.[0-7]+)(p[+-]?\\d+)?$/i,Wy=/^(\\d+(\\.\\d*)?|\\.\\d+)(e[+-]?\\d+)?$/i,Yi=1e7,br=7,Bk=9007199254740991,Ik=Cc.length-1,rv=Mc.length-1,Ue={toStringTag:zy};Ue.absoluteValue=Ue.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),dr(e)};Ue.ceil=function(){return dr(new this.constructor(this),this.e+1,2)};Ue.clampedTo=Ue.clamp=function(e,r){var t,n=this,i=n.constructor;if(e=new i(e),r=new i(r),!e.s||!r.s)return new i(NaN);if(e.gt(r))throw Error(yo+r);return t=n.cmp(e),t<0?e:n.cmp(r)>0?r:new i(n)};Ue.comparedTo=Ue.cmp=function(e){var r,t,n,i,a=this,s=a.d,c=(e=new a.constructor(e)).d,f=a.s,o=e.s;if(!s||!c)return!f||!o?NaN:f!==o?f:s===c?0:!s^f<0?1:-1;if(!s[0]||!c[0])return s[0]?f:c[0]?-o:0;if(f!==o)return f;if(a.e!==e.e)return a.e>e.e^f<0?1:-1;for(n=s.length,i=c.length,r=0,t=nc[r]^f<0?1:-1;return n===i?0:n>i^f<0?1:-1};Ue.cosine=Ue.cos=function(){var e,r,t=this,n=t.constructor;return t.d?t.d[0]?(e=n.precision,r=n.rounding,n.precision=e+Math.max(t.e,t.sd())+br,n.rounding=1,t=Pk(n,$y(n,t)),n.precision=e,n.rounding=r,dr(ka==2||ka==3?t.neg():t,e,r,!0)):new n(1):new n(NaN)};Ue.cubeRoot=Ue.cbrt=function(){var e,r,t,n,i,a,s,c,f,o,u=this,p=u.constructor;if(!u.isFinite()||u.isZero())return new p(u);for(Er=!1,a=u.s*Jt(u.s*u,1/3),!a||Math.abs(a)==1/0?(t=ln(u.d),e=u.e,(a=(e-t.length+1)%3)&&(t+=a==1||a==-2?"0":"00"),a=Jt(t,1/3),e=mn((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new p(t),n.s=u.s):n=new p(a.toString()),s=(e=p.precision)+3;;)if(c=n,f=c.times(c).times(c),o=f.plus(u),n=xt(o.plus(u).times(c),o.plus(f),s+2,1),ln(c.d).slice(0,s)===(t=ln(n.d)).slice(0,s))if(t=t.slice(s-3,s+1),t=="9999"||!i&&t=="4999"){if(!i&&(dr(c,e+1,0),c.times(c).times(c).eq(u))){n=c;break}s+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(dr(n,e+1,1),r=!n.times(n).times(n).eq(u));break}return Er=!0,dr(n,e,p.rounding,r)};Ue.decimalPlaces=Ue.dp=function(){var e,r=this.d,t=NaN;if(r){if(e=r.length-1,t=(e-mn(this.e/br))*br,e=r[e],e)for(;e%10==0;e/=10)t--;t<0&&(t=0)}return t};Ue.dividedBy=Ue.div=function(e){return xt(this,new this.constructor(e))};Ue.dividedToIntegerBy=Ue.divToInt=function(e){var r=this,t=r.constructor;return dr(xt(r,new t(e),0,1,1),t.precision,t.rounding)};Ue.equals=Ue.eq=function(e){return this.cmp(e)===0};Ue.floor=function(){return dr(new this.constructor(this),this.e+1,3)};Ue.greaterThan=Ue.gt=function(e){return this.cmp(e)>0};Ue.greaterThanOrEqualTo=Ue.gte=function(e){var r=this.cmp(e);return r==1||r===0};Ue.hyperbolicCosine=Ue.cosh=function(){var e,r,t,n,i,a=this,s=a.constructor,c=new s(1);if(!a.isFinite())return new s(a.s?1/0:NaN);if(a.isZero())return c;t=s.precision,n=s.rounding,s.precision=t+Math.max(a.e,a.sd())+4,s.rounding=1,i=a.d.length,i<32?(e=Math.ceil(i/3),r=(1/Oc(4,e)).toString()):(e=16,r="2.3283064365386962890625e-10"),a=ru(s,1,a.times(r),new s(1),!0);for(var f,o=e,u=new s(8);o--;)f=a.times(a),a=c.minus(f.times(u.minus(f.times(u))));return dr(a,s.precision=t,s.rounding=n,!0)};Ue.hyperbolicSine=Ue.sinh=function(){var e,r,t,n,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(r=a.precision,t=a.rounding,a.precision=r+Math.max(i.e,i.sd())+4,a.rounding=1,n=i.d.length,n<3)i=ru(a,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/Oc(5,e)),i=ru(a,2,i,i,!0);for(var s,c=new a(5),f=new a(16),o=new a(20);e--;)s=i.times(i),i=i.times(c.plus(s.times(f.times(s).plus(o))))}return a.precision=r,a.rounding=t,dr(i,r,t,!0)};Ue.hyperbolicTangent=Ue.tanh=function(){var e,r,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+7,n.rounding=1,xt(t.sinh(),t.cosh(),n.precision=e,n.rounding=r)):new n(t.s)};Ue.inverseCosine=Ue.acos=function(){var e,r=this,t=r.constructor,n=r.abs().cmp(1),i=t.precision,a=t.rounding;return n!==-1?n===0?r.isNeg()?Vi(t,i,a):new t(0):new t(NaN):r.isZero()?Vi(t,i+4,a).times(.5):(t.precision=i+6,t.rounding=1,r=r.asin(),e=Vi(t,i+4,a).times(.5),t.precision=i,t.rounding=a,e.minus(r))};Ue.inverseHyperbolicCosine=Ue.acosh=function(){var e,r,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(e=n.precision,r=n.rounding,n.precision=e+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,Er=!1,t=t.times(t).minus(1).sqrt().plus(t),Er=!0,n.precision=e,n.rounding=r,t.ln()):new n(t)};Ue.inverseHyperbolicSine=Ue.asinh=function(){var e,r,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,Er=!1,t=t.times(t).plus(1).sqrt().plus(t),Er=!0,n.precision=e,n.rounding=r,t.ln())};Ue.inverseHyperbolicTangent=Ue.atanh=function(){var e,r,t,n,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,r=a.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?dr(new a(i),e,r,!0):(a.precision=t=n-i.e,i=xt(i.plus(1),new a(1).minus(i),t+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=r,i.times(.5))):new a(NaN)};Ue.inverseSine=Ue.asin=function(){var e,r,t,n,i=this,a=i.constructor;return i.isZero()?new a(i):(r=i.abs().cmp(1),t=a.precision,n=a.rounding,r!==-1?r===0?(e=Vi(a,t+4,n).times(.5),e.s=i.s,e):new a(NaN):(a.precision=t+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=t,a.rounding=n,i.times(2)))};Ue.inverseTangent=Ue.atan=function(){var e,r,t,n,i,a,s,c,f,o=this,u=o.constructor,p=u.precision,h=u.rounding;if(o.isFinite()){if(o.isZero())return new u(o);if(o.abs().eq(1)&&p+4<=rv)return s=Vi(u,p+4,h).times(.25),s.s=o.s,s}else{if(!o.s)return new u(NaN);if(p+4<=rv)return s=Vi(u,p+4,h).times(.5),s.s=o.s,s}for(u.precision=c=p+10,u.rounding=1,t=Math.min(28,c/br+2|0),e=t;e;--e)o=o.div(o.times(o).plus(1).sqrt().plus(1));for(Er=!1,r=Math.ceil(c/br),n=1,f=o.times(o),s=new u(o),i=o;e!==-1;)if(i=i.times(f),a=s.minus(i.div(n+=2)),i=i.times(f),s=a.plus(i.div(n+=2)),s.d[r]!==void 0)for(e=r;s.d[e]===a.d[e]&&e--;);return t&&(s=s.times(2<this.d.length-2};Ue.isNaN=function(){return!this.s};Ue.isNegative=Ue.isNeg=function(){return this.s<0};Ue.isPositive=Ue.isPos=function(){return this.s>0};Ue.isZero=function(){return!!this.d&&this.d[0]===0};Ue.lessThan=Ue.lt=function(e){return this.cmp(e)<0};Ue.lessThanOrEqualTo=Ue.lte=function(e){return this.cmp(e)<1};Ue.logarithm=Ue.log=function(e){var r,t,n,i,a,s,c,f,o=this,u=o.constructor,p=u.precision,h=u.rounding,d=5;if(e==null)e=new u(10),r=!0;else{if(e=new u(e),t=e.d,e.s<0||!t||!t[0]||e.eq(1))return new u(NaN);r=e.eq(10)}if(t=o.d,o.s<0||!t||!t[0]||o.eq(1))return new u(t&&!t[0]?-1/0:o.s!=1?NaN:t?0:1/0);if(r)if(t.length>1)a=!0;else{for(i=t[0];i%10===0;)i/=10;a=i!==1}if(Er=!1,c=p+d,s=xo(o,c),n=r?_c(u,c+10):xo(e,c),f=xt(s,n,c,1),yf(f.d,i=p,h))do if(c+=10,s=xo(o,c),n=r?_c(u,c+10):xo(e,c),f=xt(s,n,c,1),!a){+ln(f.d).slice(i+1,i+15)+1==1e14&&(f=dr(f,p+1,0));break}while(yf(f.d,i+=10,h));return Er=!0,dr(f,p,h)};Ue.minus=Ue.sub=function(e){var r,t,n,i,a,s,c,f,o,u,p,h,d=this,x=d.constructor;if(e=new x(e),!d.d||!e.d)return!d.s||!e.s?e=new x(NaN):d.d?e.s=-e.s:e=new x(e.d||d.s!==e.s?d:NaN),e;if(d.s!=e.s)return e.s=-e.s,d.plus(e);if(o=d.d,h=e.d,c=x.precision,f=x.rounding,!o[0]||!h[0]){if(h[0])e.s=-e.s;else if(o[0])e=new x(d);else return new x(f===3?-0:0);return Er?dr(e,c,f):e}if(t=mn(e.e/br),u=mn(d.e/br),o=o.slice(),a=u-t,a){for(p=a<0,p?(r=o,a=-a,s=h.length):(r=h,t=u,s=o.length),n=Math.max(Math.ceil(c/br),s)+2,a>n&&(a=n,r.length=1),r.reverse(),n=a;n--;)r.push(0);r.reverse()}else{for(n=o.length,s=h.length,p=n0;--n)o[s++]=0;for(n=h.length;n>a;){if(o[--n]s?a+1:s+1,i>s&&(i=s,t.length=1),t.reverse();i--;)t.push(0);t.reverse()}for(s=o.length,i=u.length,s-i<0&&(i=s,t=u,u=o,o=t),r=0;i;)r=(o[--i]=o[i]+u[i]+r)/Yi|0,o[i]%=Yi;for(r&&(o.unshift(r),++n),s=o.length;o[--s]==0;)o.pop();return e.d=o,e.e=Fc(o,n),Er?dr(e,c,f):e};Ue.precision=Ue.sd=function(e){var r,t=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(yo+e);return t.d?(r=Vy(t.d),e&&t.e+1>r&&(r=t.e+1)):r=NaN,r};Ue.round=function(){var e=this,r=e.constructor;return dr(new r(e),e.e+1,r.rounding)};Ue.sine=Ue.sin=function(){var e,r,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+Math.max(t.e,t.sd())+br,n.rounding=1,t=Rk(n,$y(n,t)),n.precision=e,n.rounding=r,dr(ka>2?t.neg():t,e,r,!0)):new n(NaN)};Ue.squareRoot=Ue.sqrt=function(){var e,r,t,n,i,a,s=this,c=s.d,f=s.e,o=s.s,u=s.constructor;if(o!==1||!c||!c[0])return new u(!o||o<0&&(!c||c[0])?NaN:c?s:1/0);for(Er=!1,o=Math.sqrt(+s),o==0||o==1/0?(r=ln(c),(r.length+f)%2==0&&(r+="0"),o=Math.sqrt(r),f=mn((f+1)/2)-(f<0||f%2),o==1/0?r="5e"+f:(r=o.toExponential(),r=r.slice(0,r.indexOf("e")+1)+f),n=new u(r)):n=new u(o.toString()),t=(f=u.precision)+3;;)if(a=n,n=a.plus(xt(s,a,t+2,1)).times(.5),ln(a.d).slice(0,t)===(r=ln(n.d)).slice(0,t))if(r=r.slice(t-3,t+1),r=="9999"||!i&&r=="4999"){if(!i&&(dr(a,f+1,0),a.times(a).eq(s))){n=a;break}t+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(dr(n,f+1,1),e=!n.times(n).eq(s));break}return Er=!0,dr(n,f,u.rounding,e)};Ue.tangent=Ue.tan=function(){var e,r,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+10,n.rounding=1,t=t.sin(),t.s=1,t=xt(t,new n(1).minus(t.times(t)).sqrt(),e+10,0),n.precision=e,n.rounding=r,dr(ka==2||ka==4?t.neg():t,e,r,!0)):new n(NaN)};Ue.times=Ue.mul=function(e){var r,t,n,i,a,s,c,f,o,u=this,p=u.constructor,h=u.d,d=(e=new p(e)).d;if(e.s*=u.s,!h||!h[0]||!d||!d[0])return new p(!e.s||h&&!h[0]&&!d||d&&!d[0]&&!h?NaN:!h||!d?e.s/0:e.s*0);for(t=mn(u.e/br)+mn(e.e/br),f=h.length,o=d.length,f=0;){for(r=0,i=f+n;i>n;)c=a[i]+d[n]*h[i-n-1]+r,a[i--]=c%Yi|0,r=c/Yi|0;a[i]=(a[i]+r)%Yi|0}for(;!a[--s];)a.pop();return r?++t:a.shift(),e.d=a,e.e=Fc(a,t),Er?dr(e,p.precision,p.rounding):e};Ue.toBinary=function(e,r){return iv(this,2,e,r)};Ue.toDecimalPlaces=Ue.toDP=function(e,r){var t=this,n=t.constructor;return t=new n(t),e===void 0?t:(Ln(e,0,bo),r===void 0?r=n.rounding:Ln(r,0,8),dr(t,e+t.e+1,r))};Ue.toExponential=function(e,r){var t,n=this,i=n.constructor;return e===void 0?t=ca(n,!0):(Ln(e,0,bo),r===void 0?r=i.rounding:Ln(r,0,8),n=dr(new i(n),e+1,r),t=ca(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+t:t};Ue.toFixed=function(e,r){var t,n,i=this,a=i.constructor;return e===void 0?t=ca(i):(Ln(e,0,bo),r===void 0?r=a.rounding:Ln(r,0,8),n=dr(new a(i),e+i.e+1,r),t=ca(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+t:t};Ue.toFraction=function(e){var r,t,n,i,a,s,c,f,o,u,p,h,d=this,x=d.d,v=d.constructor;if(!x)return new v(d);if(o=t=new v(1),n=f=new v(0),r=new v(n),a=r.e=Vy(x)-d.e-1,s=a%br,r.d[0]=Jt(10,s<0?br+s:s),e==null)e=a>0?r:o;else{if(c=new v(e),!c.isInt()||c.lt(o))throw Error(yo+c);e=c.gt(r)?a>0?r:o:c}for(Er=!1,c=new v(ln(x)),u=v.precision,v.precision=a=x.length*br*2;p=xt(c,r,0,1,1),i=t.plus(p.times(n)),i.cmp(e)!=1;)t=n,n=i,i=o,o=f.plus(p.times(i)),f=i,i=r,r=c.minus(p.times(i)),c=i;return i=xt(e.minus(t),n,0,1,1),f=f.plus(i.times(o)),t=t.plus(i.times(n)),f.s=o.s=d.s,h=xt(o,n,a,1).minus(d).abs().cmp(xt(f,t,a,1).minus(d).abs())<1?[o,n]:[f,t],v.precision=u,Er=!0,h};Ue.toHexadecimal=Ue.toHex=function(e,r){return iv(this,16,e,r)};Ue.toNearest=function(e,r){var t=this,n=t.constructor;if(t=new n(t),e==null){if(!t.d)return t;e=new n(1),r=n.rounding}else{if(e=new n(e),r===void 0?r=n.rounding:Ln(r,0,8),!t.d)return e.s?t:e;if(!e.d)return e.s&&(e.s=t.s),e}return e.d[0]?(Er=!1,t=xt(t,e,0,r,1).times(e),Er=!0,dr(t)):(e.s=t.s,t=e),t};Ue.toNumber=function(){return+this};Ue.toOctal=function(e,r){return iv(this,8,e,r)};Ue.toPower=Ue.pow=function(e){var r,t,n,i,a,s,c=this,f=c.constructor,o=+(e=new f(e));if(!c.d||!e.d||!c.d[0]||!e.d[0])return new f(Jt(+c,o));if(c=new f(c),c.eq(1))return c;if(n=f.precision,a=f.rounding,e.eq(1))return dr(c,n,a);if(r=mn(e.e/br),r>=e.d.length-1&&(t=o<0?-o:o)<=Bk)return i=Yy(f,c,t,n),e.s<0?new f(1).div(i):dr(i,n,a);if(s=c.s,s<0){if(rf.maxE+1||r0?s/0:0):(Er=!1,f.rounding=c.s=1,t=Math.min(12,(r+"").length),i=tv(e.times(xo(c,n+t)),n),i.d&&(i=dr(i,n+5,1),yf(i.d,n,a)&&(r=n+10,i=dr(tv(e.times(xo(c,r+t)),r),r+5,1),+ln(i.d).slice(n+1,n+15)+1==1e14&&(i=dr(i,n+1,0)))),i.s=s,Er=!0,f.rounding=a,dr(i,n,a))};Ue.toPrecision=function(e,r){var t,n=this,i=n.constructor;return e===void 0?t=ca(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(Ln(e,1,bo),r===void 0?r=i.rounding:Ln(r,0,8),n=dr(new i(n),e,r),t=ca(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+t:t};Ue.toSignificantDigits=Ue.toSD=function(e,r){var t=this,n=t.constructor;return e===void 0?(e=n.precision,r=n.rounding):(Ln(e,1,bo),r===void 0?r=n.rounding:Ln(r,0,8)),dr(new n(t),e,r)};Ue.toString=function(){var e=this,r=e.constructor,t=ca(e,e.e<=r.toExpNeg||e.e>=r.toExpPos);return e.isNeg()&&!e.isZero()?"-"+t:t};Ue.truncated=Ue.trunc=function(){return dr(new this.constructor(this),this.e+1,1)};Ue.valueOf=Ue.toJSON=function(){var e=this,r=e.constructor,t=ca(e,e.e<=r.toExpNeg||e.e>=r.toExpPos);return e.isNeg()?"-"+t:t};function ln(e){var r,t,n,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,r=1;rt)throw Error(yo+e)}function yf(e,r,t,n){var i,a,s,c;for(a=e[0];a>=10;a/=10)--r;return--r<0?(r+=br,i=0):(i=Math.ceil((r+1)/br),r%=br),a=Jt(10,br-r),c=e[i]%a|0,n==null?r<3?(r==0?c=c/100|0:r==1&&(c=c/10|0),s=t<4&&c==99999||t>3&&c==49999||c==5e4||c==0):s=(t<4&&c+1==a||t>3&&c+1==a/2)&&(e[i+1]/a/100|0)==Jt(10,r-2)-1||(c==a/2||c==0)&&(e[i+1]/a/100|0)==0:r<4?(r==0?c=c/1e3|0:r==1?c=c/100|0:r==2&&(c=c/10|0),s=(n||t<4)&&c==9999||!n&&t>3&&c==4999):s=((n||t<4)&&c+1==a||!n&&t>3&&c+1==a/2)&&(e[i+1]/a/1e3|0)==Jt(10,r-3)-1,s}function Ec(e,r,t){for(var n,i=[0],a,s=0,c=e.length;st-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/t|0,i[n]%=t)}return i.reverse()}function Pk(e,r){var t,n,i;if(r.isZero())return r;n=r.d.length,n<32?(t=Math.ceil(n/3),i=(1/Oc(4,t)).toString()):(t=16,i="2.3283064365386962890625e-10"),e.precision+=t,r=ru(e,1,r.times(i),new e(1));for(var a=t;a--;){var s=r.times(r);r=s.times(s).minus(s).times(8).plus(1)}return e.precision-=t,r}var xt=function(){function e(n,i,a){var s,c=0,f=n.length;for(n=n.slice();f--;)s=n[f]*i+c,n[f]=s%a|0,c=s/a|0;return c&&n.unshift(c),n}function r(n,i,a,s){var c,f;if(a!=s)f=a>s?1:-1;else for(c=f=0;ci[c]?1:-1;break}return f}function t(n,i,a,s){for(var c=0;a--;)n[a]-=c,c=n[a]1;)n.shift()}return function(n,i,a,s,c,f){var o,u,p,h,d,x,v,y,w,C,b,A,E,S,O,F,M,_,k,L,Y=n.constructor,$=n.s==i.s?1:-1,V=n.d,q=i.d;if(!V||!V[0]||!q||!q[0])return new Y(!n.s||!i.s||(V?q&&V[0]==q[0]:!q)?NaN:V&&V[0]==0||!q?$*0:$/0);for(f?(d=1,u=n.e-i.e):(f=Yi,d=br,u=mn(n.e/d)-mn(i.e/d)),k=q.length,M=V.length,w=new Y($),C=w.d=[],p=0;q[p]==(V[p]||0);p++);if(q[p]>(V[p]||0)&&u--,a==null?(S=a=Y.precision,s=Y.rounding):c?S=a+(n.e-i.e)+1:S=a,S<0)C.push(1),x=!0;else{if(S=S/d+2|0,p=0,k==1){for(h=0,q=q[0],S++;(p1&&(q=e(q,h,f),V=e(V,h,f),k=q.length,M=V.length),F=k,b=V.slice(0,k),A=b.length;A=f/2&&++_;do h=0,o=r(q,b,k,A),o<0?(E=b[0],k!=A&&(E=E*f+(b[1]||0)),h=E/_|0,h>1?(h>=f&&(h=f-1),v=e(q,h,f),y=v.length,A=b.length,o=r(v,b,y,A),o==1&&(h--,t(v,k=10;h/=10)p++;w.e=p+u*d-1,dr(w,c?a+w.e+1:a,s,x)}return w}}();function dr(e,r,t,n){var i,a,s,c,f,o,u,p,h,d=e.constructor;e:if(r!=null){if(p=e.d,!p)return e;for(i=1,c=p[0];c>=10;c/=10)i++;if(a=r-i,a<0)a+=br,s=r,u=p[h=0],f=u/Jt(10,i-s-1)%10|0;else if(h=Math.ceil((a+1)/br),c=p.length,h>=c)if(n){for(;c++<=h;)p.push(0);u=f=0,i=1,a%=br,s=a-br+1}else break e;else{for(u=c=p[h],i=1;c>=10;c/=10)i++;a%=br,s=a-br+i,f=s<0?0:u/Jt(10,i-s-1)%10|0}if(n=n||r<0||p[h+1]!==void 0||(s<0?u:u%Jt(10,i-s-1)),o=t<4?(f||n)&&(t==0||t==(e.s<0?3:2)):f>5||f==5&&(t==4||n||t==6&&(a>0?s>0?u/Jt(10,i-s):0:p[h-1])%10&1||t==(e.s<0?8:7)),r<1||!p[0])return p.length=0,o?(r-=e.e+1,p[0]=Jt(10,(br-r%br)%br),e.e=-r||0):p[0]=e.e=0,e;if(a==0?(p.length=h,c=1,h--):(p.length=h+1,c=Jt(10,br-a),p[h]=s>0?(u/Jt(10,i-s)%Jt(10,s)|0)*c:0),o)for(;;)if(h==0){for(a=1,s=p[0];s>=10;s/=10)a++;for(s=p[0]+=c,c=1;s>=10;s/=10)c++;a!=c&&(e.e++,p[0]==Yi&&(p[0]=1));break}else{if(p[h]+=c,p[h]!=Yi)break;p[h--]=0,c=1}for(a=p.length;p[--a]===0;)p.pop()}return Er&&(e.e>d.maxE?(e.d=null,e.e=NaN):e.e0?a=a.charAt(0)+"."+a.slice(1)+go(n):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):i<0?(a="0."+go(-i-1)+a,t&&(n=t-s)>0&&(a+=go(n))):i>=s?(a+=go(i+1-s),t&&(n=t-i-1)>0&&(a=a+"."+go(n))):((n=i+1)0&&(i+1===s&&(a+="."),a+=go(n))),a}function Fc(e,r){var t=e[0];for(r*=br;t>=10;t/=10)r++;return r}function _c(e,r,t){if(r>Ik)throw Er=!0,t&&(e.precision=t),Error(qy);return dr(new e(Cc),r,1,!0)}function Vi(e,r,t){if(r>rv)throw Error(qy);return dr(new e(Mc),r,t,!0)}function Vy(e){var r=e.length-1,t=r*br+1;if(r=e[r],r){for(;r%10==0;r/=10)t--;for(r=e[0];r>=10;r/=10)t++}return t}function go(e){for(var r="";e--;)r+="0";return r}function Yy(e,r,t,n){var i,a=new e(1),s=Math.ceil(n/br+4);for(Er=!1;;){if(t%2&&(a=a.times(r),ky(a.d,s)&&(i=!0)),t=mn(t/2),t===0){t=a.d.length-1,i&&a.d[t]===0&&++a.d[t];break}r=r.times(r),ky(r.d,s)}return Er=!0,a}function Py(e){return e.d[e.d.length-1]&1}function Hy(e,r,t){for(var n,i=new e(r[0]),a=0;++a17)return new h(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:0/0);for(r==null?(Er=!1,f=x):f=r,c=new h(.03125);e.e>-2;)e=e.times(c),p+=5;for(n=Math.log(Jt(2,p))/Math.LN10*2+5|0,f+=n,t=a=s=new h(1),h.precision=f;;){if(a=dr(a.times(e),f,1),t=t.times(++u),c=s.plus(xt(a,t,f,1)),ln(c.d).slice(0,f)===ln(s.d).slice(0,f)){for(i=p;i--;)s=dr(s.times(s),f,1);if(r==null)if(o<3&&yf(s.d,f-n,d,o))h.precision=f+=10,t=a=c=new h(1),u=0,o++;else return dr(s,h.precision=x,d,Er=!0);else return h.precision=x,s}s=c}}function xo(e,r){var t,n,i,a,s,c,f,o,u,p,h,d=1,x=10,v=e,y=v.d,w=v.constructor,C=w.rounding,b=w.precision;if(v.s<0||!y||!y[0]||!v.e&&y[0]==1&&y.length==1)return new w(y&&!y[0]?-1/0:v.s!=1?NaN:y?0:v);if(r==null?(Er=!1,u=b):u=r,w.precision=u+=x,t=ln(y),n=t.charAt(0),Math.abs(a=v.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)v=v.times(e),t=ln(v.d),n=t.charAt(0),d++;a=v.e,n>1?(v=new w("0."+t),a++):v=new w(n+"."+t.slice(1))}else return o=_c(w,u+2,b).times(a+""),v=xo(new w(n+"."+t.slice(1)),u-x).plus(o),w.precision=b,r==null?dr(v,b,C,Er=!0):v;for(p=v,f=s=v=xt(v.minus(1),v.plus(1),u,1),h=dr(v.times(v),u,1),i=3;;){if(s=dr(s.times(h),u,1),o=f.plus(xt(s,new w(i),u,1)),ln(o.d).slice(0,u)===ln(f.d).slice(0,u))if(f=f.times(2),a!==0&&(f=f.plus(_c(w,u+2,b).times(a+""))),f=xt(f,new w(d),u,1),r==null)if(yf(f.d,u-x,C,c))w.precision=u+=x,o=s=v=xt(p.minus(1),p.plus(1),u,1),h=dr(v.times(v),u,1),i=c=1;else return dr(f,w.precision=b,C,Er=!0);else return w.precision=b,f;f=o,i+=2}}function Gy(e){return String(e.s*e.s/0)}function nv(e,r){var t,n,i;for((t=r.indexOf("."))>-1&&(r=r.replace(".","")),(n=r.search(/e/i))>0?(t<0&&(t=n),t+=+r.slice(n+1),r=r.substring(0,n)):t<0&&(t=r.length),n=0;r.charCodeAt(n)===48;n++);for(i=r.length;r.charCodeAt(i-1)===48;--i);if(r=r.slice(n,i),r){if(i-=n,e.e=t=t-n-1,e.d=[],n=(t+1)%br,t<0&&(n+=br),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(r=r.replace(/(\\d)_(?=\\d)/g,"$1"),Wy.test(r))return nv(e,r)}else if(r==="Infinity"||r==="NaN")return+r||(e.s=NaN),e.e=NaN,e.d=null,e;if(Fk.test(r))t=16,r=r.toLowerCase();else if(Tk.test(r))t=2;else if(Ok.test(r))t=8;else throw Error(yo+r);for(a=r.search(/p/i),a>0?(f=+r.slice(a+1),r=r.substring(2,a)):r=r.slice(2),a=r.indexOf("."),s=a>=0,n=e.constructor,s&&(r=r.replace(".",""),c=r.length,a=c-a,i=Yy(n,new n(t),a,a*2)),o=Ec(r,t,Yi),u=o.length-1,a=u;o[a]===0;--a)o.pop();return a<0?new n(e.s*0):(e.e=Fc(o,u),e.d=o,Er=!1,s&&(e=xt(e,i,c*4)),f&&(e=e.times(Math.abs(f)<54?Jt(2,f):bf.pow(2,f))),Er=!0,e)}function Rk(e,r){var t,n=r.d.length;if(n<3)return r.isZero()?r:ru(e,2,r,r);t=1.4*Math.sqrt(n),t=t>16?16:t|0,r=r.times(1/Oc(5,t)),r=ru(e,2,r,r);for(var i,a=new e(5),s=new e(16),c=new e(20);t--;)i=r.times(r),r=r.times(a.plus(i.times(s.times(i).minus(c))));return r}function ru(e,r,t,n,i){var a,s,c,f,o=1,u=e.precision,p=Math.ceil(u/br);for(Er=!1,f=t.times(t),c=new e(n);;){if(s=xt(c.times(f),new e(r++*r++),u,1),c=i?n.plus(s):n.minus(s),n=xt(s.times(f),new e(r++*r++),u,1),s=c.plus(n),s.d[p]!==void 0){for(a=p;s.d[a]===c.d[a]&&a--;);if(a==-1)break}a=c,c=n,n=s,s=a,o++}return Er=!0,s.d.length=p+1,s}function Oc(e,r){for(var t=e;--r;)t*=e;return t}function $y(e,r){var t,n=r.s<0,i=Vi(e,e.precision,1),a=i.times(.5);if(r=r.abs(),r.lte(a))return ka=n?4:1,r;if(t=r.divToInt(i),t.isZero())ka=n?3:2;else{if(r=r.minus(t.times(i)),r.lte(a))return ka=Py(t)?n?2:3:n?4:1,r;ka=Py(t)?n?1:4:n?3:2}return r.minus(i).abs()}function iv(e,r,t,n){var i,a,s,c,f,o,u,p,h,d=e.constructor,x=t!==void 0;if(x?(Ln(t,1,bo),n===void 0?n=d.rounding:Ln(n,0,8)):(t=d.precision,n=d.rounding),!e.isFinite())u=Gy(e);else{for(u=ca(e),s=u.indexOf("."),x?(i=2,r==16?t=t*4-3:r==8&&(t=t*3-2)):i=r,s>=0&&(u=u.replace(".",""),h=new d(1),h.e=u.length-s,h.d=Ec(ca(h),10,i),h.e=h.d.length),p=Ec(u,10,i),a=f=p.length;p[--f]==0;)p.pop();if(!p[0])u=x?"0p+0":"0";else{if(s<0?a--:(e=new d(e),e.d=p,e.e=a,e=xt(e,h,t,n,0,i),p=e.d,a=e.e,o=Ly),s=p[t],c=i/2,o=o||p[t+1]!==void 0,o=n<4?(s!==void 0||o)&&(n===0||n===(e.s<0?3:2)):s>c||s===c&&(n===4||o||n===6&&p[t-1]&1||n===(e.s<0?8:7)),p.length=t,o)for(;++p[--t]>i-1;)p[t]=0,t||(++a,p.unshift(1));for(f=p.length;!p[f-1];--f);for(s=0,u="";s1)if(r==16||r==8){for(s=r==16?4:3,--f;f%s;f++)u+="0";for(p=Ec(u,i,r),f=p.length;!p[f-1];--f);for(s=1,u="1.";sf)for(a-=f;a--;)u+="0";else ar)return e.length=r,!0}function Lk(e){return new this(e).abs()}function qk(e){return new this(e).acos()}function Uk(e){return new this(e).acosh()}function zk(e,r){return new this(e).plus(r)}function Wk(e){return new this(e).asin()}function Vk(e){return new this(e).asinh()}function Yk(e){return new this(e).atan()}function Hk(e){return new this(e).atanh()}function Gk(e,r){e=new this(e),r=new this(r);var t,n=this.precision,i=this.rounding,a=n+4;return!e.s||!r.s?t=new this(NaN):!e.d&&!r.d?(t=Vi(this,a,1).times(r.s>0?.25:.75),t.s=e.s):!r.d||e.isZero()?(t=r.s<0?Vi(this,n,i):new this(0),t.s=e.s):!e.d||r.isZero()?(t=Vi(this,a,1).times(.5),t.s=e.s):r.s<0?(this.precision=a,this.rounding=1,t=this.atan(xt(e,r,a,1)),r=Vi(this,a,1),this.precision=n,this.rounding=i,t=e.s<0?t.minus(r):t.plus(r)):t=this.atan(xt(e,r,a,1)),t}function $k(e){return new this(e).cbrt()}function Zk(e){return dr(e=new this(e),e.e+1,2)}function Qk(e,r,t){return new this(e).clamp(r,t)}function Xk(e){if(!e||typeof e!="object")throw Error(Tc+"Object expected");var r,t,n,i=e.defaults===!0,a=["precision",1,bo,"rounding",0,8,"toExpNeg",-eu,0,"toExpPos",0,eu,"maxE",0,eu,"minE",-eu,0,"modulo",0,9];for(r=0;r=a[r+1]&&n<=a[r+2])this[t]=n;else throw Error(yo+t+": "+n);if(t="crypto",i&&(this[t]=ev[t]),(n=e[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(Uy);else this[t]=!1;else throw Error(yo+t+": "+n);return this}function Jk(e){return new this(e).cos()}function Kk(e){return new this(e).cosh()}function Zy(e){var r,t,n;function i(a){var s,c,f,o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,Ry(a)){o.s=a.s,Er?!a.d||a.e>i.maxE?(o.e=NaN,o.d=null):a.e=10;c/=10)s++;Er?s>i.maxE?(o.e=NaN,o.d=null):s=429e7?r[a]=crypto.getRandomValues(new Uint32Array(1))[0]:c[a++]=i%1e7;else if(crypto.randomBytes){for(r=crypto.randomBytes(n*=4);a=214e7?crypto.randomBytes(4).copy(r,a):(c.push(i%1e7),a+=4);a=n/4}else throw Error(Uy);else for(;a=10;i/=10)n++;n{var{on:r,config:t}=e,n=rs.clone({precision:t.precision,modulo:rs.EUCLID});return n.prototype=Object.create(n.prototype),n.prototype.type="BigNumber",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},n.fromJSON=function(i){return new n(i.value)},r&&r("config",function(i,a){i.precision!==a.precision&&n.config({precision:i.precision})}),n},{isClass:!0});var tn=li(Jy(),1);var AR="Complex",ER=[],Ky=T(AR,ER,()=>(Object.defineProperty(tn.default,"name",{value:"Complex"}),tn.default.prototype.constructor=tn.default,tn.default.prototype.type="Complex",tn.default.prototype.isComplex=!0,tn.default.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},tn.default.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},tn.default.prototype.format=function(e){var r="",t=this.im,n=this.re,i=zi(this.re,e),a=zi(this.im,e),s=ar(e)?e:e?e.precision:null;if(s!==null){var c=Math.pow(10,-s);Math.abs(n/t)r.re?1:e.rer.im?1:e.im(Object.defineProperty(pa.default,"name",{value:"Fraction"}),pa.default.prototype.constructor=pa.default,pa.default.prototype.type="Fraction",pa.default.prototype.isFraction=!0,pa.default.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},pa.default.fromJSON=function(e){return new pa.default(e)},pa.default),{isClass:!0});var _R="Range",TR=[],t1=T(_R,TR,()=>{function e(r,t,n){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");var i=r!=null,a=t!=null,s=n!=null;if(i){if(je(r))r=r.toNumber();else if(typeof r!="number")throw new TypeError("Parameter start must be a number")}if(a){if(je(t))t=t.toNumber();else if(typeof t!="number")throw new TypeError("Parameter end must be a number")}if(s){if(je(n))n=n.toNumber();else if(typeof n!="number")throw new TypeError("Parameter step must be a number")}this.start=i?parseFloat(r):0,this.end=a?parseFloat(t):0,this.step=s?parseFloat(n):1}return e.prototype.type="Range",e.prototype.isRange=!0,e.parse=function(r){if(typeof r!="string")return null;var t=r.split(":"),n=t.map(function(a){return parseFloat(a)}),i=n.some(function(a){return isNaN(a)});if(i)return null;switch(n.length){case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[2],n[1]);default:return null}},e.prototype.clone=function(){return new e(this.start,this.end,this.step)},e.prototype.size=function(){var r=0,t=this.start,n=this.step,i=this.end,a=i-t;return mi(n)===mi(a)?r=Math.ceil(a/n):a===0&&(r=0),isNaN(r)&&(r=0),[r]},e.prototype.min=function(){var r=this.size()[0];if(r>0)return this.step>0?this.start:this.start+(r-1)*this.step},e.prototype.max=function(){var r=this.size()[0];if(r>0)return this.step>0?this.start+(r-1)*this.step:this.start},e.prototype.forEach=function(r){var t=this.start,n=this.step,i=this.end,a=0;if(n>0)for(;ti;)r(t,[a],this),t+=n,a++},e.prototype.map=function(r){var t=[];return this.forEach(function(n,i,a){t[i[0]]=r(n,i,a)}),t},e.prototype.toArray=function(){var r=[];return this.forEach(function(t,n){r[n[0]]=t}),r},e.prototype.valueOf=function(){return this.toArray()},e.prototype.format=function(r){var t=zi(this.start,r);return this.step!==1&&(t+=":"+zi(this.step,r)),t+=":"+zi(this.end,r),t},e.prototype.toString=function(){return this.format()},e.prototype.toJSON=function(){return{mathjs:"Range",start:this.start,end:this.end,step:this.step}},e.fromJSON=function(r){return new e(r.start,r.end,r.step)},e},{isClass:!0});var FR="Matrix",OR=[],n1=T(FR,OR,()=>{function e(){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator")}return e.prototype.type="Matrix",e.prototype.isMatrix=!0,e.prototype.storage=function(){throw new Error("Cannot invoke storage on a Matrix interface")},e.prototype.datatype=function(){throw new Error("Cannot invoke datatype on a Matrix interface")},e.prototype.create=function(r,t){throw new Error("Cannot invoke create on a Matrix interface")},e.prototype.subset=function(r,t,n){throw new Error("Cannot invoke subset on a Matrix interface")},e.prototype.get=function(r){throw new Error("Cannot invoke get on a Matrix interface")},e.prototype.set=function(r,t,n){throw new Error("Cannot invoke set on a Matrix interface")},e.prototype.resize=function(r,t){throw new Error("Cannot invoke resize on a Matrix interface")},e.prototype.reshape=function(r,t){throw new Error("Cannot invoke reshape on a Matrix interface")},e.prototype.clone=function(){throw new Error("Cannot invoke clone on a Matrix interface")},e.prototype.size=function(){throw new Error("Cannot invoke size on a Matrix interface")},e.prototype.map=function(r,t){throw new Error("Cannot invoke map on a Matrix interface")},e.prototype.forEach=function(r){throw new Error("Cannot invoke forEach on a Matrix interface")},e.prototype[Symbol.iterator]=function(){throw new Error("Cannot iterate a Matrix interface")},e.prototype.toArray=function(){throw new Error("Cannot invoke toArray on a Matrix interface")},e.prototype.valueOf=function(){throw new Error("Cannot invoke valueOf on a Matrix interface")},e.prototype.format=function(r){throw new Error("Cannot invoke format on a Matrix interface")},e.prototype.toString=function(){throw new Error("Cannot invoke toString on a Matrix interface")},e},{isClass:!0});function i1(e){var r=0,t=1,n=Object.create(null),i=Object.create(null),a=0,s=function(f){var o=i[f];if(!!o&&(delete n[o],delete i[f],--r,t===o)){if(!r){a=0,t=1;return}for(;!Object.prototype.hasOwnProperty.call(n,++t););}};return e=Math.abs(e),{hit:function(f){var o=i[f],u=++a;if(n[u]=f,i[f]=u,!o)return++r,r<=e?void 0:(f=n[t],s(f),f);if(delete n[o],t===o)for(;!Object.prototype.hasOwnProperty.call(n,++t););},delete:s,clear:function(){r=a=0,t=1,n=Object.create(null),i=Object.create(null)}}}function ts(e){var{hasher:r,limit:t}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t=t??Number.POSITIVE_INFINITY,r=r??JSON.stringify,function n(){typeof n.cache!="object"&&(n.cache={values:new Map,lru:i1(t||Number.POSITIVE_INFINITY)});for(var i=[],a=0;a{var{Matrix:r}=e;function t(u,p){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(p&&!yt(p))throw new Error("Invalid datatype: "+p);if(Ge(u))u.type==="DenseMatrix"?(this._data=tr(u._data),this._size=tr(u._size),this._datatype=p||u._datatype):(this._data=u.toArray(),this._size=u.size(),this._datatype=p||u._datatype);else if(u&&Ar(u.data)&&Ar(u.size))this._data=u.data,this._size=u.size,Vd(this._data,this._size),this._datatype=p||u.datatype;else if(Ar(u))this._data=o(u),this._size=or(this._data),Vd(this._data,this._size),this._datatype=p;else{if(u)throw new TypeError("Unsupported type of data ("+_r(u)+")");this._data=[],this._size=[0],this._datatype=p}}t.prototype=new r,t.prototype.createDenseMatrix=function(u,p){return new t(u,p)},Object.defineProperty(t,"name",{value:"DenseMatrix"}),t.prototype.constructor=t,t.prototype.type="DenseMatrix",t.prototype.isDenseMatrix=!0,t.prototype.getDataType=function(){return ho(this._data,_r)},t.prototype.storage=function(){return"dense"},t.prototype.datatype=function(){return this._datatype},t.prototype.create=function(u,p){return new t(u,p)},t.prototype.subset=function(u,p,h){switch(arguments.length){case 1:return n(this,u);case 2:case 3:return a(this,u,p,h);default:throw new SyntaxError("Wrong number of arguments")}},t.prototype.get=function(u){if(!Ar(u))throw new TypeError("Array expected");if(u.length!==this._size.length)throw new pr(u.length,this._size.length);for(var p=0;p");var b=p.max().map(function(S){return S+1});f(u,b,d);var A=x.length,E=0;s(u._data,p,h,A,E)}return u}function s(u,p,h,d,x){var v=x===d-1,y=p.dimension(x);v?y.forEach(function(w,C){Xr(w),u[w]=h[C[0]]}):y.forEach(function(w,C){Xr(w),s(u[w],p,h[C[0]],d,x+1)})}t.prototype.resize=function(u,p,h){if(!bt(u))throw new TypeError("Array or Matrix expected");var d=u.valueOf().map(v=>Array.isArray(v)&&v.length===1?v[0]:v),x=h?this.clone():this;return c(x,d,p)};function c(u,p,h){if(p.length===0){for(var d=u._data;Ar(d);)d=d[0];return d}return u._size=p.slice(0),u._data=Wi(u._data,u._size,h),u}t.prototype.reshape=function(u,p){var h=p?this.clone():this;h._data=vf(h._data,u);var d=h._size.reduce((x,v)=>x*v);return h._size=gf(u,d),h};function f(u,p,h){for(var d=u._size.slice(0),x=!1;d.lengthd[v]&&(d[v]=p[v],x=!0);x&&c(u,d,h)}t.prototype.clone=function(){var u=new t({data:tr(this._data),size:tr(this._size),datatype:this._datatype});return u},t.prototype.size=function(){return this._size.slice(0)},t.prototype.map=function(u){var p=this,h=Bc(u),d=function y(w,C){return Ar(w)?w.map(function(b,A){return y(b,C.concat(A))}):h===1?u(w):h===2?u(w,C):u(w,C,p)},x=d(this._data,[]),v=this._datatype!==void 0?ho(x,_r):void 0;return new t(x,v)},t.prototype.forEach=function(u){var p=this,h=function d(x,v){Ar(x)?x.forEach(function(y,w){d(y,v.concat(w))}):u(x,v,p)};h(this._data,[])},t.prototype[Symbol.iterator]=function*(){var u=function*p(h,d){if(Ar(h))for(var x=0;x[b[w]]);p.push(new t(C,u._datatype))},v=0;v0?u:0,h=u<0?-u:0,d=this._size[0],x=this._size[1],v=Math.min(d-h,x-p),y=[],w=0;w0?h:0,v=h<0?-h:0,y=u[0],w=u[1],C=Math.min(y-v,w-x),b;if(Ar(p)){if(p.length!==C)throw new Error("Invalid value array length");b=function(F){return p[F]}}else if(Ge(p)){var A=p.size();if(A.length!==1||A[0]!==C)throw new Error("Invalid matrix length");b=function(F){return p.get([F])}}else b=function(){return p};d||(d=je(b(0))?b(0).mul(0):0);var E=[];if(u.length>0){E=Wi(E,u,d);for(var S=0;S{var{typed:r}=e;return r(o1,{any:tr})});function Ic(e){var r=e.length,t=e[0].length,n,i,a=[];for(i=0;i=n.length)throw new Xt(r,n.length);return Ge(e)?e.create(Pc(e.valueOf(),r,t)):Pc(e,r,t)}function Pc(e,r,t){var n,i,a,s;if(r<=0)if(Array.isArray(e[0])){for(s=Ic(e),i=[],n=0;n{var{typed:r}=e;return r(u1,{number:He,BigNumber:function(n){return n.isInt()},Fraction:function(n){return n.d===1&&isFinite(n.n)},"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var qn="number",Ra="number, number";function uv(e){return Math.abs(e)}uv.signature=qn;function fv(e,r){return e+r}fv.signature=Ra;function lv(e,r){return e-r}lv.signature=Ra;function cv(e,r){return e*r}cv.signature=Ra;function RR(e,r){return e/r}RR.signature=Ra;function pv(e){return-e}pv.signature=qn;function mv(e){return e}mv.signature=qn;function tu(e){return oy(e)}tu.signature=qn;function hv(e){return e*e*e}hv.signature=qn;function dv(e){return Math.exp(e)}dv.signature=qn;function vv(e){return sy(e)}vv.signature=qn;function LR(e,r){if(!He(e)||!He(r))throw new Error("Parameters in function gcd must be integer numbers");for(var t;r!==0;)t=e%r,e=r,r=t;return e<0?-e:e}LR.signature=Ra;function gv(e,r){if(!He(e)||!He(r))throw new Error("Parameters in function lcm must be integer numbers");if(e===0||r===0)return 0;for(var t,n=e*r;r!==0;)t=r,r=e%t,e=t;return Math.abs(n/e)}gv.signature=Ra;function l1(e,r){return r?Math.log(e)/Math.log(r):Math.log(e)}function xv(e){return ay(e)}xv.signature=qn;function yv(e){return iy(e)}yv.signature=qn;function qR(e){return gc(e)}qR.signature=qn;function UR(e,r){return r===0?e:e-r*Math.floor(e/r)}UR.signature=Ra;function bv(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,t=r<0;if(t&&(r=-r),r===0)throw new Error("Root must be non-zero");if(e<0&&Math.abs(r)%2!==1)throw new Error("Root must be odd when a is negative.");if(e===0)return t?1/0:0;if(!isFinite(e))return t?0:e;var n=Math.pow(Math.abs(e),1/r);return n=e<0?-n:n,t?1/n:n}function kc(e){return mi(e)}kc.signature=qn;function zR(e){return Math.sqrt(e)}zR.signature=qn;function wv(e){return e*e}wv.signature=qn;function Dv(e,r){var t,n,i,a=0,s=1,c=1,f=0;if(!He(e)||!He(r))throw new Error("Parameters in function xgcd must be integer numbers");for(;r;)n=Math.floor(e/r),i=e-n*r,t=a,a=s-n*a,s=t,t=c,c=f-n*c,f=t,e=r,r=i;var o;return e<0?o=[-e,-s,-f]:o=[e,e?s:0,f],o}Dv.signature=Ra;function Sv(e,r){return e*e<1&&r===1/0||e*e>1&&r===-1/0?0:Math.pow(e,r)}Sv.signature=Ra;function nu(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!He(r)||r<0||r>15)throw new Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");return parseFloat(Ud(e,r))}function WR(e){return Math.abs(e)}WR.signature=qn;var VR="number",iu="number, number";function Nv(e,r){if(!He(e)||!He(r))throw new Error("Integers expected in function bitAnd");return e&r}Nv.signature=iu;function Av(e){if(!He(e))throw new Error("Integer expected in function bitNot");return~e}Av.signature=VR;function Ev(e,r){if(!He(e)||!He(r))throw new Error("Integers expected in function bitOr");return e|r}Ev.signature=iu;function Cv(e,r){if(!He(e)||!He(r))throw new Error("Integers expected in function bitXor");return e^r}Cv.signature=iu;function Mv(e,r){if(!He(e)||!He(r))throw new Error("Integers expected in function leftShift");return e<>r}_v.signature=iu;function Tv(e,r){if(!He(e)||!He(r))throw new Error("Integers expected in function rightLogShift");return e>>>r}Tv.signature=iu;function Kn(e,r){if(r>1;return Kn(e,t)*Kn(t+1,r)}function Fv(e,r){if(!He(e)||e<0)throw new TypeError("Positive integer value expected in function combinations");if(!He(r)||r<0)throw new TypeError("Positive integer value expected in function combinations");if(r>e)throw new TypeError("k must be less than or equal to n");for(var t=e-r,n=1,i=r171?1/0:Kn(1,e-1);if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*wf(1-e));if(e>=171.35)return 1/0;if(e>85){var t=e*e,n=t*e,i=n*e,a=i*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*t)-139/(51840*n)-571/(2488320*i)+163879/(209018880*a)+5246819/(75246796800*a*e))}--e,r=ns[0];for(var s=1;s=1;n--)t+=d1[n]/(e+n);return Lv+(e+.5)*Math.log(r)-r+Math.log(t)}Df.signature="number";var Dt="number",$R="number, number";function ZR(e){return Math.acos(e)}ZR.signature=Dt;function qv(e){return ly(e)}qv.signature=Dt;function Uv(e){return Math.atan(1/e)}Uv.signature=Dt;function zv(e){return isFinite(e)?(Math.log((e+1)/e)+Math.log(e/(e-1)))/2:0}zv.signature=Dt;function Wv(e){return Math.asin(1/e)}Wv.signature=Dt;function Vv(e){var r=1/e;return Math.log(r+Math.sqrt(r*r+1))}Vv.signature=Dt;function Yv(e){return Math.acos(1/e)}Yv.signature=Dt;function Hv(e){var r=1/e,t=Math.sqrt(r*r-1);return Math.log(t+r)}Hv.signature=Dt;function QR(e){return Math.asin(e)}QR.signature=Dt;function Gv(e){return cy(e)}Gv.signature=Dt;function XR(e){return Math.atan(e)}XR.signature=Dt;function JR(e,r){return Math.atan2(e,r)}JR.signature=$R;function $v(e){return py(e)}$v.signature=Dt;function KR(e){return Math.cos(e)}KR.signature=Dt;function jR(e){return yc(e)}jR.signature=Dt;function Zv(e){return 1/Math.tan(e)}Zv.signature=Dt;function Qv(e){var r=Math.exp(2*e);return(r+1)/(r-1)}Qv.signature=Dt;function Xv(e){return 1/Math.sin(e)}Xv.signature=Dt;function Jv(e){return e===0?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(e)-Math.exp(-e)))*mi(e)}Jv.signature=Dt;function Kv(e){return 1/Math.cos(e)}Kv.signature=Dt;function jv(e){return 2/(Math.exp(e)+Math.exp(-e))}jv.signature=Dt;function e9(e){return Math.sin(e)}e9.signature=Dt;function eg(e){return my(e)}eg.signature=Dt;function r9(e){return Math.tan(e)}r9.signature=Dt;function t9(e){return bc(e)}t9.signature=Dt;var Sf="number";function n9(e){return He(e)}n9.signature=Sf;function rg(e){return e<0}rg.signature=Sf;function tg(e){return e>0}tg.signature=Sf;function ng(e){return e===0}ng.signature=Sf;function ig(e){return Number.isNaN(e)}ig.signature=Sf;var v1="isNegative",i9=["typed"],g1=T(v1,i9,e=>{var{typed:r}=e;return r(v1,{number:rg,BigNumber:function(n){return n.isNeg()&&!n.isZero()&&!n.isNaN()},Fraction:function(n){return n.s<0},Unit:r.referToSelf(t=>n=>r.find(t,n.valueType())(n.value)),"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var x1="isNumeric",a9=["typed"],y1=T(x1,a9,e=>{var{typed:r}=e;return r(x1,{"number | BigNumber | Fraction | boolean":()=>!0,"Complex | Unit | string | null | undefined | Node":()=>!1,"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var b1="hasNumericValue",o9=["typed","isNumeric"],w1=T(b1,o9,e=>{var{typed:r,isNumeric:t}=e;return r(b1,{boolean:()=>!0,string:function(i){return i.trim().length>0&&!isNaN(Number(i))},any:function(i){return t(i)}})});var D1="isPositive",s9=["typed"],S1=T(D1,s9,e=>{var{typed:r}=e;return r(D1,{number:tg,BigNumber:function(n){return!n.isNeg()&&!n.isZero()&&!n.isNaN()},Fraction:function(n){return n.s>0&&n.n>0},Unit:r.referToSelf(t=>n=>r.find(t,n.valueType())(n.value)),"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var N1="isZero",u9=["typed"],A1=T(N1,u9,e=>{var{typed:r}=e;return r(N1,{number:ng,BigNumber:function(n){return n.isZero()},Complex:function(n){return n.re===0&&n.im===0},Fraction:function(n){return n.d===1&&n.n===0},Unit:r.referToSelf(t=>n=>r.find(t,n.valueType())(n.value)),"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var E1="isNaN",f9=["typed"],C1=T(E1,f9,e=>{var{typed:r}=e;return r(E1,{number:ig,BigNumber:function(n){return n.isNaN()},Fraction:function(n){return!1},Complex:function(n){return n.isNaN()},Unit:function(n){return Number.isNaN(n.value)},"Array | Matrix":function(n){return Je(n,Number.isNaN)}})});var M1="typeOf",l9=["typed"],_1=T(M1,l9,e=>{var{typed:r}=e;return r(M1,{any:_r})});function Ut(e,r,t){if(t==null)return e.eq(r);if(e.eq(r))return!0;if(e.isNaN()||r.isNaN())return!1;if(e.isFinite()&&r.isFinite()){var n=e.minus(r).abs();if(n.isZero())return!0;var i=e.constructor.max(e.abs(),r.abs());return n.lte(i.times(t))}return!1}function T1(e,r,t){return wt(e.re,r.re,t)&&wt(e.im,r.im,t)}var di=T("compareUnits",["typed"],e=>{var{typed:r}=e;return{"Unit, Unit":r.referToSelf(t=>(n,i)=>{if(!n.equalBase(i))throw new Error("Cannot compare units with different base");return r.find(t,[n.valueType(),i.valueType()])(n.value,i.value)})}});var Rc="equalScalar",c9=["typed","config"],F1=T(Rc,c9,e=>{var{typed:r,config:t}=e,n=di({typed:r});return r(Rc,{"boolean, boolean":function(a,s){return a===s},"number, number":function(a,s){return wt(a,s,t.epsilon)},"BigNumber, BigNumber":function(a,s){return a.eq(s)||Ut(a,s,t.epsilon)},"Fraction, Fraction":function(a,s){return a.equals(s)},"Complex, Complex":function(a,s){return T1(a,s,t.epsilon)}},n)}),DX=T(Rc,["typed","config"],e=>{var{typed:r,config:t}=e;return r(Rc,{"number, number":function(i,a){return wt(i,a,t.epsilon)}})});var p9="SparseMatrix",m9=["typed","equalScalar","Matrix"],O1=T(p9,m9,e=>{var{typed:r,equalScalar:t,Matrix:n}=e;function i(v,y){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if(y&&!yt(y))throw new Error("Invalid datatype: "+y);if(Ge(v))a(this,v,y);else if(v&&Ar(v.index)&&Ar(v.ptr)&&Ar(v.size))this._values=v.values,this._index=v.index,this._ptr=v.ptr,this._size=v.size,this._datatype=y||v.datatype;else if(Ar(v))s(this,v,y);else{if(v)throw new TypeError("Unsupported type of data ("+_r(v)+")");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=y}}function a(v,y,w){y.type==="SparseMatrix"?(v._values=y._values?tr(y._values):void 0,v._index=tr(y._index),v._ptr=tr(y._ptr),v._size=tr(y._size),v._datatype=w||y._datatype):s(v,y.valueOf(),w||y._datatype)}function s(v,y,w){v._values=[],v._index=[],v._ptr=[],v._datatype=w;var C=y.length,b=0,A=t,E=0;if(yt(w)&&(A=r.find(t,[w,w])||t,E=r.convert(0,w)),C>0){var S=0;do{v._ptr.push(v._index.length);for(var O=0;O");if(b.length===1){var F=y.dimension(0);F.forEach(function(k,L){Xr(k),v.set([k,0],w[L[0]],C)})}else{var M=y.dimension(0),_=y.dimension(1);M.forEach(function(k,L){Xr(k),_.forEach(function(Y,$){Xr(Y),v.set([k,Y],w[L[0]][$[0]],C)})})}}return v}i.prototype.get=function(v){if(!Ar(v))throw new TypeError("Array expected");if(v.length!==this._size.length)throw new pr(v.length,this._size.length);if(!this._values)throw new Error("Cannot invoke get on a Pattern only matrix");var y=v[0],w=v[1];Xr(y,this._size[0]),Xr(w,this._size[1]);var C=o(y,this._ptr[w],this._ptr[w+1],this._index);return CA-1||b>E-1)&&(h(this,Math.max(C+1,A),Math.max(b+1,E),w),A=this._size[0],E=this._size[1]),Xr(C,A),Xr(b,E);var F=o(C,this._ptr[b],this._ptr[b+1],this._index);return FArray.isArray(A)&&A.length===1?A[0]:A);if(C.length!==2)throw new Error("Only two dimensions matrix are supported");C.forEach(function(A){if(!ar(A)||!He(A)||A<0)throw new TypeError("Invalid size, must contain positive integers (size: "+lr(C)+")")});var b=w?this.clone():this;return h(b,C[0],C[1],y)};function h(v,y,w,C){var b=C||0,A=t,E=0;yt(v._datatype)&&(A=r.find(t,[v._datatype,v._datatype])||t,E=r.convert(0,v._datatype),b=r.convert(b,v._datatype));var S=!A(b,E),O=v._size[0],F=v._size[1],M,_,k;if(w>F){for(_=F;_O){if(S){var L=0;for(_=0;_y-1&&(v._values.splice(k,1),v._index.splice(k,1),$++)}v._ptr[_]=v._values.length}return v._size[0]=y,v._size[1]=w,v}i.prototype.reshape=function(v,y){if(!Ar(v))throw new TypeError("Array expected");if(v.length!==2)throw new Error("Sparse matrices can only be reshaped in two dimensions");v.forEach(function(U){if(!ar(U)||!He(U)||U<=-2||U===0)throw new TypeError("Invalid size, must contain positive integers or -1 (size: "+lr(v)+")")});var w=this._size[0]*this._size[1];v=gf(v,w);var C=v[0]*v[1];if(w!==C)throw new Error("Reshaping sparse matrix will result in the wrong number of elements");var b=y?this.clone():this;if(this._size[0]===v[0]&&this._size[1]===v[1])return b;for(var A=[],E=0;E=y&&q<=w&&k(v._values[V],q-y,L-C)}else{for(var R={},j=Y;j<$;j++){var U=v._index[j];R[U]=v._values[j]}for(var oe=y;oe<=w;oe++){var me=oe in R?R[oe]:0;k(me,oe-y,L-C)}}}return F.push(S.length),new i({values:S,index:O,ptr:F,size:[w-y+1,b-C+1]})}i.prototype.forEach=function(v,y){if(!this._values)throw new Error("Cannot invoke forEach on a Pattern only matrix");for(var w=this,C=this._size[0],b=this._size[1],A=0;A0&&a();break;case"number":p.im=0,p.re=o;break;default:a()}return isNaN(p.re)||isNaN(p.im),p};function f(o,u){if(!(this instanceof f))return new f(o,u);var p=c(o,u);this.re=p.re,this.im=p.im}f.prototype={re:0,im:0,sign:function(){var o=this.abs();return new f(this.re/o,this.im/o)},add:function(o,u){var p=new f(o,u);return this.isInfinite()&&p.isInfinite()?f.NAN:this.isInfinite()||p.isInfinite()?f.INFINITY:new f(this.re+p.re,this.im+p.im)},sub:function(o,u){var p=new f(o,u);return this.isInfinite()&&p.isInfinite()?f.NAN:this.isInfinite()||p.isInfinite()?f.INFINITY:new f(this.re-p.re,this.im-p.im)},mul:function(o,u){var p=new f(o,u);return this.isInfinite()&&p.isZero()||this.isZero()&&p.isInfinite()?f.NAN:this.isInfinite()||p.isInfinite()?f.INFINITY:p.im===0&&this.im===0?new f(this.re*p.re,0):new f(this.re*p.re-this.im*p.im,this.re*p.im+this.im*p.re)},div:function(o,u){var p=new f(o,u);if(this.isZero()&&p.isZero()||this.isInfinite()&&p.isInfinite())return f.NAN;if(this.isInfinite()||p.isZero())return f.INFINITY;if(this.isZero()||p.isInfinite())return f.ZERO;o=this.re,u=this.im;var h=p.re,d=p.im,x,v;return d===0?new f(o/h,u/h):Math.abs(h)0)return new f(Math.pow(o,p.re),0);if(o===0)switch((p.re%4+4)%4){case 0:return new f(Math.pow(u,p.re),0);case 1:return new f(0,Math.pow(u,p.re));case 2:return new f(-Math.pow(u,p.re),0);case 3:return new f(0,-Math.pow(u,p.re))}}if(o===0&&u===0&&p.re>0&&p.im>=0)return f.ZERO;var h=Math.atan2(u,o),d=s(o,u);return o=Math.exp(p.re*d-p.im*h),u=p.im*d+p.re*h,new f(o*Math.cos(u),o*Math.sin(u))},sqrt:function(){var o=this.re,u=this.im,p=this.abs(),h,d;if(o>=0){if(u===0)return new f(Math.sqrt(o),0);h=.5*Math.sqrt(2*(p+o))}else h=Math.abs(u)/Math.sqrt(2*(p-o));return o<=0?d=.5*Math.sqrt(2*(p-o)):d=Math.abs(u)/Math.sqrt(2*(p+o)),new f(h,u<0?-d:d)},exp:function(){var o=Math.exp(this.re);return this.im,new f(o*Math.cos(this.im),o*Math.sin(this.im))},expm1:function(){var o=this.re,u=this.im;return new f(Math.expm1(o)*Math.cos(u)+n(u),Math.exp(o)*Math.sin(u))},log:function(){var o=this.re,u=this.im;return u===0&&o>0,new f(s(o,u),Math.atan2(u,o))},abs:function(){return i(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){var o=this.re,u=this.im;return new f(Math.sin(o)*r(u),Math.cos(o)*t(u))},cos:function(){var o=this.re,u=this.im;return new f(Math.cos(o)*r(u),-Math.sin(o)*t(u))},tan:function(){var o=2*this.re,u=2*this.im,p=Math.cos(o)+r(u);return new f(Math.sin(o)/p,t(u)/p)},cot:function(){var o=2*this.re,u=2*this.im,p=Math.cos(o)-r(u);return new f(-Math.sin(o)/p,t(u)/p)},sec:function(){var o=this.re,u=this.im,p=.5*r(2*u)+.5*Math.cos(2*o);return new f(Math.cos(o)*r(u)/p,Math.sin(o)*t(u)/p)},csc:function(){var o=this.re,u=this.im,p=.5*r(2*u)-.5*Math.cos(2*o);return new f(Math.sin(o)*r(u)/p,-Math.cos(o)*t(u)/p)},asin:function(){var o=this.re,u=this.im,p=new f(u*u-o*o+1,-2*o*u).sqrt(),h=new f(p.re-u,p.im+o).log();return new f(h.im,-h.re)},acos:function(){var o=this.re,u=this.im,p=new f(u*u-o*o+1,-2*o*u).sqrt(),h=new f(p.re-u,p.im+o).log();return new f(Math.PI/2-h.im,h.re)},atan:function(){var o=this.re,u=this.im;if(o===0){if(u===1)return new f(0,1/0);if(u===-1)return new f(0,-1/0)}var p=o*o+(1-u)*(1-u),h=new f((1-u*u-o*o)/p,-2*o/p).log();return new f(-.5*h.im,.5*h.re)},acot:function(){var o=this.re,u=this.im;if(u===0)return new f(Math.atan2(1,o),0);var p=o*o+u*u;return p!==0?new f(o/p,-u/p).atan():new f(o!==0?o/0:0,u!==0?-u/0:0).atan()},asec:function(){var o=this.re,u=this.im;if(o===0&&u===0)return new f(0,1/0);var p=o*o+u*u;return p!==0?new f(o/p,-u/p).acos():new f(o!==0?o/0:0,u!==0?-u/0:0).acos()},acsc:function(){var o=this.re,u=this.im;if(o===0&&u===0)return new f(Math.PI/2,1/0);var p=o*o+u*u;return p!==0?new f(o/p,-u/p).asin():new f(o!==0?o/0:0,u!==0?-u/0:0).asin()},sinh:function(){var o=this.re,u=this.im;return new f(t(o)*Math.cos(u),r(o)*Math.sin(u))},cosh:function(){var o=this.re,u=this.im;return new f(r(o)*Math.cos(u),t(o)*Math.sin(u))},tanh:function(){var o=2*this.re,u=2*this.im,p=r(o)+Math.cos(u);return new f(t(o)/p,Math.sin(u)/p)},coth:function(){var o=2*this.re,u=2*this.im,p=r(o)-Math.cos(u);return new f(t(o)/p,-Math.sin(u)/p)},csch:function(){var o=this.re,u=this.im,p=Math.cos(2*u)-r(2*o);return new f(-2*t(o)*Math.cos(u)/p,2*r(o)*Math.sin(u)/p)},sech:function(){var o=this.re,u=this.im,p=Math.cos(2*u)+r(2*o);return new f(2*r(o)*Math.cos(u)/p,-2*t(o)*Math.sin(u)/p)},asinh:function(){var o=this.im;this.im=-this.re,this.re=o;var u=this.asin();return this.re=-this.im,this.im=o,o=u.re,u.re=-u.im,u.im=o,u},acosh:function(){var o=this.acos();if(o.im<=0){var u=o.re;o.re=-o.im,o.im=u}else{var u=o.im;o.im=-o.re,o.re=u}return o},atanh:function(){var o=this.re,u=this.im,p=o>1&&u===0,h=1-o,d=1+o,x=h*h+u*u,v=x!==0?new f((d*h-u*u)/x,(u*h+d*u)/x):new f(o!==-1?o/0:0,u!==0?u/0:0),y=v.re;return v.re=s(v.re,v.im)/2,v.im=Math.atan2(v.im,y)/2,p&&(v.im=-v.im),v},acoth:function(){var o=this.re,u=this.im;if(o===0&&u===0)return new f(0,Math.PI/2);var p=o*o+u*u;return p!==0?new f(o/p,-u/p).atanh():new f(o!==0?o/0:0,u!==0?-u/0:0).atanh()},acsch:function(){var o=this.re,u=this.im;if(u===0)return new f(o!==0?Math.log(o+Math.sqrt(o*o+1)):1/0,0);var p=o*o+u*u;return p!==0?new f(o/p,-u/p).asinh():new f(o!==0?o/0:0,u!==0?-u/0:0).asinh()},asech:function(){var o=this.re,u=this.im;if(this.isZero())return f.INFINITY;var p=o*o+u*u;return p!==0?new f(o/p,-u/p).acosh():new f(o!==0?o/0:0,u!==0?-u/0:0).acosh()},inverse:function(){if(this.isZero())return f.INFINITY;if(this.isInfinite())return f.ZERO;var o=this.re,u=this.im,p=o*o+u*u;return new f(o/p,-u/p)},conjugate:function(){return new f(this.re,-this.im)},neg:function(){return new f(-this.re,-this.im)},ceil:function(o){return o=Math.pow(10,o||0),new f(Math.ceil(this.re*o)/o,Math.ceil(this.im*o)/o)},floor:function(o){return o=Math.pow(10,o||0),new f(Math.floor(this.re*o)/o,Math.floor(this.im*o)/o)},round:function(o){return o=Math.pow(10,o||0),new f(Math.round(this.re*o)/o,Math.round(this.im*o)/o)},equals:function(o,u){var p=new f(o,u);return Math.abs(p.re-this.re)<=f.EPSILON&&Math.abs(p.im-this.im)<=f.EPSILON},clone:function(){return new f(this.re,this.im)},toString:function(){var o=this.re,u=this.im,p="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(o){(function(e){"use strict";var r=2e3,t={s:1,n:0,d:1};function n(v,y){if(isNaN(v=parseInt(v,10)))throw d();return v*y}function i(v,y){if(y===0)throw h();var w=Object.create(p.prototype);w.s=v<0?-1:1,v=v<0?-v:v;var C=u(v,y);return w.n=v/C,w.d=y/C,w}function a(v){for(var y={},w=v,C=2,b=4;b<=w;){for(;w%C===0;)w/=C,y[C]=(y[C]||0)+1;b+=1+2*C++}return w!==v?w>1&&(y[w]=(y[w]||0)+1):y[v]=(y[v]||0)+1,y}var s=function(v,y){var w=0,C=1,b=1,A=0,E=0,S=0,O=1,F=1,M=0,_=1,k=1,L=1,Y=1e7,$;if(v!=null)if(y!==void 0){if(w=v,C=y,b=w*C,w%1!==0||C%1!==0)throw x()}else switch(typeof v){case"object":{if("d"in v&&"n"in v)w=v.n,C=v.d,"s"in v&&(w*=v.s);else if(0 in v)w=v[0],1 in v&&(C=v[1]);else throw d();b=w*C;break}case"number":{if(v<0&&(b=v,v=-v),v%1===0)w=v;else if(v>0){for(v>=1&&(F=Math.pow(10,Math.floor(1+Math.log(v)/Math.LN10)),v/=F);_<=Y&&L<=Y;)if($=(M+k)/(_+L),v===$){_+L<=Y?(w=M+k,C=_+L):L>_?(w=k,C=L):(w=M,C=_);break}else v>$?(M+=k,_+=L):(k+=M,L+=_),_>Y?(w=k,C=L):(w=M,C=_);w*=F}else(isNaN(v)||isNaN(y))&&(C=w=NaN);break}case"string":{if(_=v.match(/\\d+|./g),_===null)throw d();if(_[M]==="-"?(b=-1,M++):_[M]==="+"&&M++,_.length===M+1?E=n(_[M++],b):_[M+1]==="."||_[M]==="."?(_[M]!=="."&&(A=n(_[M++],b)),M++,(M+1===_.length||_[M+1]==="("&&_[M+3]===")"||_[M+1]==="'"&&_[M+3]==="'")&&(E=n(_[M],b),O=Math.pow(10,_[M].length),M++),(_[M]==="("&&_[M+2]===")"||_[M]==="'"&&_[M+2]==="'")&&(S=n(_[M+1],b),F=Math.pow(10,_[M+1].length)-1,M+=3)):_[M+1]==="/"||_[M+1]===":"?(E=n(_[M],b),O=n(_[M+2],1),M+=3):_[M+3]==="/"&&_[M+1]===" "&&(A=n(_[M],b),E=n(_[M+2],b),O=n(_[M+4],1),M+=5),_.length<=M){C=O*F,b=w=S+C*A+F*E;break}}default:throw d()}if(C===0)throw h();t.s=b<0?-1:1,t.n=Math.abs(w),t.d=Math.abs(C)};function c(v,y,w){for(var C=1;y>0;v=v*v%w,y>>=1)y&1&&(C=C*v%w);return C}function f(v,y){for(;y%2===0;y/=2);for(;y%5===0;y/=5);if(y===1)return 0;for(var w=10%y,C=1;w!==1;C++)if(w=w*10%y,C>r)return 0;return C}function o(v,y,w){for(var C=1,b=c(10,w,y),A=0;A<300;A++){if(C===b)return A;C=C*10%y,b=b*10%y}return 0}function u(v,y){if(!v)return y;if(!y)return v;for(;;){if(v%=y,!v)return y;if(y%=v,!y)return v}}function p(v,y){if(s(v,y),this instanceof p)v=u(t.d,t.n),this.s=t.s,this.n=t.n/v,this.d=t.d/v;else return i(t.s*t.n,t.d)}var h=function(){return new Error("Division by Zero")},d=function(){return new Error("Invalid argument")},x=function(){return new Error("Parameters must be integer")};p.prototype={s:1,n:0,d:1,abs:function(){return i(this.n,this.d)},neg:function(){return i(-this.s*this.n,this.d)},add:function(v,y){return s(v,y),i(this.s*this.n*t.d+t.s*this.d*t.n,this.d*t.d)},sub:function(v,y){return s(v,y),i(this.s*this.n*t.d-t.s*this.d*t.n,this.d*t.d)},mul:function(v,y){return s(v,y),i(this.s*t.s*this.n*t.n,this.d*t.d)},div:function(v,y){return s(v,y),i(this.s*t.s*this.n*t.d,this.d*t.n)},clone:function(){return i(this.s*this.n,this.d)},mod:function(v,y){if(isNaN(this.n)||isNaN(this.d))return new p(NaN);if(v===void 0)return i(this.s*this.n%this.d,1);if(s(v,y),t.n===0&&this.d===0)throw h();return i(this.s*(t.d*this.n)%(t.n*this.d),t.d*this.d)},gcd:function(v,y){return s(v,y),i(u(t.n,this.n)*u(t.d,this.d),t.d*this.d)},lcm:function(v,y){return s(v,y),t.n===0&&this.n===0?i(0,1):i(t.n*this.n,u(t.n,this.n)*u(t.d,this.d))},ceil:function(v){return v=Math.pow(10,v||0),isNaN(this.n)||isNaN(this.d)?new p(NaN):i(Math.ceil(v*this.s*this.n/this.d),v)},floor:function(v){return v=Math.pow(10,v||0),isNaN(this.n)||isNaN(this.d)?new p(NaN):i(Math.floor(v*this.s*this.n/this.d),v)},round:function(v){return v=Math.pow(10,v||0),isNaN(this.n)||isNaN(this.d)?new p(NaN):i(Math.round(v*this.s*this.n/this.d),v)},inverse:function(){return i(this.s*this.d,this.n)},pow:function(v,y){if(s(v,y),t.d===1)return t.s<0?i(Math.pow(this.s*this.d,t.n),Math.pow(this.n,t.n)):i(Math.pow(this.s*this.n,t.n),Math.pow(this.d,t.n));if(this.s<0)return null;var w=a(this.n),C=a(this.d),b=1,A=1;for(var E in w)if(E!=="1"){if(E==="0"){b=0;break}if(w[E]*=t.n,w[E]%t.d===0)w[E]/=t.d;else return null;b*=Math.pow(E,w[E])}for(var E in C)if(E!=="1"){if(C[E]*=t.n,C[E]%t.d===0)C[E]/=t.d;else return null;A*=Math.pow(E,C[E])}return t.s<0?i(A,b):i(b,A)},equals:function(v,y){return s(v,y),this.s*this.n*t.d===t.s*t.n*this.d},compare:function(v,y){s(v,y);var w=this.s*this.n*t.d-t.s*t.n*this.d;return(0=0;A--)b=b.inverse().add(w[A]);if(Math.abs(b.sub(y).valueOf())0&&(w+=y,w+=" ",C%=b),w+=C,w+="/",w+=b),w},toLatex:function(v){var y,w="",C=this.n,b=this.d;return this.s<0&&(w+="-"),b===1?w+=C:(v&&(y=Math.floor(C/b))>0&&(w+=y,C%=b),w+="\\\\frac{",w+=C,w+="}{",w+=b,w+="}"),w},toContinued:function(){var v,y=this.n,w=this.d,C=[];if(isNaN(y)||isNaN(w))return C;do C.push(Math.floor(y/w)),v=y%w,y=w,w=v;while(y!==1);return C},toString:function(v){var y=this.n,w=this.d;if(isNaN(y)||isNaN(w))return"NaN";v=v||15;var C=f(y,w),b=o(y,w,C),A=this.s<0?"-":"";if(A+=y/w|0,y%=w,y*=10,y&&(A+="."),C){for(var E=b;E--;)A+=y/w|0,y%=w,y*=10;A+="(";for(var E=C;E--;)A+=y/w|0,y%=w,y*=10;A+=")"}else for(var E=v;y&&E--;)A+=y/w|0,y%=w,y*=10;return A}},typeof ov=="object"?(Object.defineProperty(p,"__esModule",{value:!0}),p.default=p,p.Fraction=p,jy.exports=p):e.Fraction=p})(ov)});var vS=un((Woe,dS)=>{dS.exports=function e(r,t){"use strict";var n=/(^([+\\-]?(?:0|[1-9]\\d*)(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)?$|^0x[0-9a-f]+$|\\d+)/gi,i=/(^[ ]*|[ ]*$)/g,a=/(^([\\w ]+,?[\\w ]+)?[\\w ]+,?[\\w ]+\\d+:\\d+(:\\d+)?[\\w ]?|^\\d{1,4}[\\/\\-]\\d{1,4}[\\/\\-]\\d{1,4}|^\\w+, \\w+ \\d+, \\d{4})/,s=/^0x[0-9a-f]+$/i,c=/^0/,f=function(b){return e.insensitive&&(""+b).toLowerCase()||""+b},o=f(r).replace(i,"")||"",u=f(t).replace(i,"")||"",p=o.replace(n,"\\0$1\\0").replace(/\\0$/,"").replace(/^\\0/,"").split("\\0"),h=u.replace(n,"\\0$1\\0").replace(/\\0$/,"").replace(/^\\0/,"").split("\\0"),d=parseInt(o.match(s),16)||p.length!==1&&o.match(a)&&Date.parse(o),x=parseInt(u.match(s),16)||d&&u.match(a)&&Date.parse(u)||null,v,y;if(x){if(dx)return 1}for(var w=0,C=Math.max(p.length,h.length);wy)return 1}return 0}});var O2=un((ape,F2)=>{"use strict";var cg=Object.assign||function(e){for(var r=1;r1&&arguments[1]!==void 0?arguments[1]:{},t=r.preserveFormatting,n=t===void 0?!1:t,i=r.escapeMapFn,a=i===void 0?rz:i,s=String(e),c="",f=a(cg({},jU),n?cg({},ez):{}),o=Object.keys(f),u=function(){var h=!1;o.forEach(function(d,x){h||s.length>=d.length&&s.slice(0,d.length)===d&&(c+=f[o[x]],s=s.slice(d.length,s.length),h=!0)}),h||(c+=s.slice(0,1),s=s.slice(1,s.length))};s;)u();return c}});var rF=un((eF,yg)=>{(function(e,r,t){function n(c){var f=this,o=s();f.next=function(){var u=2091639*f.s0+f.c*23283064365386963e-26;return f.s0=f.s1,f.s1=f.s2,f.s2=u-(f.c=u|0)},f.c=1,f.s0=o(" "),f.s1=o(" "),f.s2=o(" "),f.s0-=o(c),f.s0<0&&(f.s0+=1),f.s1-=o(c),f.s1<0&&(f.s1+=1),f.s2-=o(c),f.s2<0&&(f.s2+=1),o=null}function i(c,f){return f.c=c.c,f.s0=c.s0,f.s1=c.s1,f.s2=c.s2,f}function a(c,f){var o=new n(c),u=f&&f.state,p=o.next;return p.int32=function(){return o.next()*4294967296|0},p.double=function(){return p()+(p()*2097152|0)*11102230246251565e-32},p.quick=p,u&&(typeof u=="object"&&i(u,o),p.state=function(){return i(o,{})}),p}function s(){var c=4022871197,f=function(o){o=String(o);for(var u=0;u>>0,p-=c,p*=c,c=p>>>0,p-=c,c+=p*4294967296}return(c>>>0)*23283064365386963e-26};return f}r&&r.exports?r.exports=a:t&&t.amd?t(function(){return a}):this.alea=a})(eF,typeof yg=="object"&&yg,typeof define=="function"&&define)});var nF=un((tF,bg)=>{(function(e,r,t){function n(s){var c=this,f="";c.x=0,c.y=0,c.z=0,c.w=0,c.next=function(){var u=c.x^c.x<<11;return c.x=c.y,c.y=c.z,c.z=c.w,c.w^=c.w>>>19^u^u>>>8},s===(s|0)?c.x=s:f+=s;for(var o=0;o>>0)/4294967296};return u.double=function(){do var p=f.next()>>>11,h=(f.next()>>>0)/4294967296,d=(p+h)/(1<<21);while(d===0);return d},u.int32=f.next,u.quick=u,o&&(typeof o=="object"&&i(o,f),u.state=function(){return i(f,{})}),u}r&&r.exports?r.exports=a:t&&t.amd?t(function(){return a}):this.xor128=a})(tF,typeof bg=="object"&&bg,typeof define=="function"&&define)});var aF=un((iF,wg)=>{(function(e,r,t){function n(s){var c=this,f="";c.next=function(){var u=c.x^c.x>>>2;return c.x=c.y,c.y=c.z,c.z=c.w,c.w=c.v,(c.d=c.d+362437|0)+(c.v=c.v^c.v<<4^(u^u<<1))|0},c.x=0,c.y=0,c.z=0,c.w=0,c.v=0,s===(s|0)?c.x=s:f+=s;for(var o=0;o>>4),c.next()}function i(s,c){return c.x=s.x,c.y=s.y,c.z=s.z,c.w=s.w,c.v=s.v,c.d=s.d,c}function a(s,c){var f=new n(s),o=c&&c.state,u=function(){return(f.next()>>>0)/4294967296};return u.double=function(){do var p=f.next()>>>11,h=(f.next()>>>0)/4294967296,d=(p+h)/(1<<21);while(d===0);return d},u.int32=f.next,u.quick=u,o&&(typeof o=="object"&&i(o,f),u.state=function(){return i(f,{})}),u}r&&r.exports?r.exports=a:t&&t.amd?t(function(){return a}):this.xorwow=a})(iF,typeof wg=="object"&&wg,typeof define=="function"&&define)});var sF=un((oF,Dg)=>{(function(e,r,t){function n(s){var c=this;c.next=function(){var o=c.x,u=c.i,p,h,d;return p=o[u],p^=p>>>7,h=p^p<<24,p=o[u+1&7],h^=p^p>>>10,p=o[u+3&7],h^=p^p>>>3,p=o[u+4&7],h^=p^p<<7,p=o[u+7&7],p=p^p<<13,h^=p^p<<9,o[u]=h,c.i=u+1&7,h};function f(o,u){var p,h,d=[];if(u===(u|0))h=d[0]=u;else for(u=""+u,p=0;p0;--p)o.next()}f(c,s)}function i(s,c){return c.x=s.x.slice(),c.i=s.i,c}function a(s,c){s==null&&(s=+new Date);var f=new n(s),o=c&&c.state,u=function(){return(f.next()>>>0)/4294967296};return u.double=function(){do var p=f.next()>>>11,h=(f.next()>>>0)/4294967296,d=(p+h)/(1<<21);while(d===0);return d},u.int32=f.next,u.quick=u,o&&(o.x&&i(o,f),u.state=function(){return i(f,{})}),u}r&&r.exports?r.exports=a:t&&t.amd?t(function(){return a}):this.xorshift7=a})(oF,typeof Dg=="object"&&Dg,typeof define=="function"&&define)});var fF=un((uF,Sg)=>{(function(e,r,t){function n(s){var c=this;c.next=function(){var o=c.w,u=c.X,p=c.i,h,d;return c.w=o=o+1640531527|0,d=u[p+34&127],h=u[p=p+1&127],d^=d<<13,h^=h<<17,d^=d>>>15,h^=h>>>12,d=u[p]=d^h,c.i=p,d+(o^o>>>16)|0};function f(o,u){var p,h,d,x,v,y=[],w=128;for(u===(u|0)?(h=u,u=null):(u=u+"\\0",h=0,w=Math.max(w,u.length)),d=0,x=-32;x>>15,h^=h<<4,h^=h>>>13,x>=0&&(v=v+1640531527|0,p=y[x&127]^=h+v,d=p==0?d+1:0);for(d>=128&&(y[(u&&u.length||0)&127]=-1),d=127,x=4*128;x>0;--x)h=y[d+34&127],p=y[d=d+1&127],h^=h<<13,p^=p<<17,h^=h>>>15,p^=p>>>12,y[d]=h^p;o.w=v,o.X=y,o.i=d}f(c,s)}function i(s,c){return c.i=s.i,c.w=s.w,c.X=s.X.slice(),c}function a(s,c){s==null&&(s=+new Date);var f=new n(s),o=c&&c.state,u=function(){return(f.next()>>>0)/4294967296};return u.double=function(){do var p=f.next()>>>11,h=(f.next()>>>0)/4294967296,d=(p+h)/(1<<21);while(d===0);return d},u.int32=f.next,u.quick=u,o&&(o.X&&i(o,f),u.state=function(){return i(f,{})}),u}r&&r.exports?r.exports=a:t&&t.amd?t(function(){return a}):this.xor4096=a})(uF,typeof Sg=="object"&&Sg,typeof define=="function"&&define)});var cF=un((lF,Ng)=>{(function(e,r,t){function n(s){var c=this,f="";c.next=function(){var u=c.b,p=c.c,h=c.d,d=c.a;return u=u<<25^u>>>7^p,p=p-h|0,h=h<<24^h>>>8^d,d=d-u|0,c.b=u=u<<20^u>>>12^p,c.c=p=p-h|0,c.d=h<<16^p>>>16^d,c.a=d-u|0},c.a=0,c.b=0,c.c=-1640531527,c.d=1367130551,s===Math.floor(s)?(c.a=s/4294967296|0,c.b=s|0):f+=s;for(var o=0;o>>0)/4294967296};return u.double=function(){do var p=f.next()>>>11,h=(f.next()>>>0)/4294967296,d=(p+h)/(1<<21);while(d===0);return d},u.int32=f.next,u.quick=u,o&&(typeof o=="object"&&i(o,f),u.state=function(){return i(f,{})}),u}r&&r.exports?r.exports=a:t&&t.amd?t(function(){return a}):this.tychei=a})(lF,typeof Ng=="object"&&Ng,typeof define=="function"&&define)});var pF=un(()=>{});var hF=un((mF,Wp)=>{(function(e,r,t){var n=256,i=6,a=52,s="random",c=t.pow(n,i),f=t.pow(2,a),o=f*2,u=n-1,p;function h(b,A,E){var S=[];A=A==!0?{entropy:!0}:A||{};var O=y(v(A.entropy?[b,C(r)]:b??w(),3),S),F=new d(S),M=function(){for(var _=F.g(i),k=c,L=0;_=o;)_/=2,k/=2,L>>>=1;return(_+L)/k};return M.int32=function(){return F.g(4)|0},M.quick=function(){return F.g(4)/4294967296},M.double=M,y(C(F.S),r),(A.pass||E||function(_,k,L,Y){return Y&&(Y.S&&x(Y,F),_.state=function(){return x(F,{})}),L?(t[s]=_,k):_})(M,O,"global"in A?A.global:this==t,A.state)}function d(b){var A,E=b.length,S=this,O=0,F=S.i=S.j=0,M=S.S=[];for(E||(b=[E++]);O{var xW=rF(),yW=nF(),bW=aF(),wW=sF(),DW=fF(),SW=cF(),os=hF();os.alea=xW;os.xor128=yW;os.xorwow=bW;os.xorshift7=wW;os.xor4096=DW;os.tychei=SW;dF.exports=os});var YO=un((R3e,Fg)=>{function Tg(){}Tg.prototype={on:function(e,r,t){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:r,ctx:t}),this},once:function(e,r,t){var n=this;function i(){n.off(e,i),r.apply(t,arguments)}return i._=r,this.on(e,i,t)},emit:function(e){var r=[].slice.call(arguments,1),t=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=t.length;for(n;n[...new Set(e)];var uo="File";function ud(e){return Array.isArray(e)?e:typeof e=="string"?[e]:[]}function gx(e){return e?typeof e!="string"?e.toString():e:""}var xx=(e,r)=>r.indexOf(e)>0?r.indexOf(e):r.length;function ci(e){return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ci(e)}function Pn(e){if(e===null||e===!0||e===!1)return NaN;var r=Number(e);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}function ot(e,r){if(r.length1?"s":"")+" required, but only "+r.length+" present")}function Lt(e){ot(1,arguments);var r=Object.prototype.toString.call(e);return e instanceof Date||ci(e)==="object"&&r==="[object Date]"?new Date(e.getTime()):typeof e=="number"||r==="[object Number]"?new Date(e):((typeof e=="string"||r==="[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))}function fd(e,r){ot(2,arguments);var t=Lt(e).getTime(),n=Pn(r);return new Date(t+n)}var u8={};function fo(){return u8}function ld(e){var r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),e.getTime()-r.getTime()}function cd(e){return ot(1,arguments),e instanceof Date||ci(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function pd(e){if(ot(1,arguments),!cd(e)&&typeof e!="number")return!1;var r=Lt(e);return!isNaN(Number(r))}function md(e,r){ot(2,arguments);var t=Pn(r);return fd(e,-t)}var f8=864e5;function hd(e){ot(1,arguments);var r=Lt(e),t=r.getTime();r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0);var n=r.getTime(),i=t-n;return Math.floor(i/f8)+1}function lo(e){ot(1,arguments);var r=1,t=Lt(e),n=t.getUTCDay(),i=(n=i.getTime()?t+1:r.getTime()>=s.getTime()?t:t-1}function dd(e){ot(1,arguments);var r=lf(e),t=new Date(0);t.setUTCFullYear(r,0,4),t.setUTCHours(0,0,0,0);var n=lo(t);return n}var l8=6048e5;function vd(e){ot(1,arguments);var r=Lt(e),t=lo(r).getTime()-dd(r).getTime();return Math.round(t/l8)+1}function co(e,r){var t,n,i,a,s,c,f,o;ot(1,arguments);var u=fo(),p=Pn((t=(n=(i=(a=r?.weekStartsOn)!==null&&a!==void 0?a:r==null||(s=r.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&n!==void 0?n:(f=u.locale)===null||f===void 0||(o=f.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&t!==void 0?t:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Lt(e),d=h.getUTCDay(),x=(d=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=new Date(0);x.setUTCFullYear(p+1,0,d),x.setUTCHours(0,0,0,0);var v=co(x,r),y=new Date(0);y.setUTCFullYear(p,0,d),y.setUTCHours(0,0,0,0);var w=co(y,r);return u.getTime()>=v.getTime()?p+1:u.getTime()>=w.getTime()?p:p-1}function gd(e,r){var t,n,i,a,s,c,f,o;ot(1,arguments);var u=fo(),p=Pn((t=(n=(i=(a=r?.firstWeekContainsDate)!==null&&a!==void 0?a:r==null||(s=r.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&n!==void 0?n:(f=u.locale)===null||f===void 0||(o=f.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&t!==void 0?t:1),h=cf(e,r),d=new Date(0);d.setUTCFullYear(h,0,p),d.setUTCHours(0,0,0,0);var x=co(d,r);return x}var c8=6048e5;function xd(e,r){ot(1,arguments);var t=Lt(e),n=co(t,r).getTime()-gd(t,r).getTime();return Math.round(n/c8)+1}function it(e,r){for(var t=e<0?"-":"",n=Math.abs(e).toString();n.length0?n:1-n;return it(t==="yy"?i%100:i,t.length)},M:function(r,t){var n=r.getUTCMonth();return t==="M"?String(n+1):it(n+1,2)},d:function(r,t){return it(r.getUTCDate(),t.length)},a:function(r,t){var n=r.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(r,t){return it(r.getUTCHours()%12||12,t.length)},H:function(r,t){return it(r.getUTCHours(),t.length)},m:function(r,t){return it(r.getUTCMinutes(),t.length)},s:function(r,t){return it(r.getUTCSeconds(),t.length)},S:function(r,t){var n=t.length,i=r.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,n-3));return it(a,t.length)}},Fa=p8;var Us={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},m8={G:function(r,t,n){var i=r.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(r,t,n){if(t==="yo"){var i=r.getUTCFullYear(),a=i>0?i:1-i;return n.ordinalNumber(a,{unit:"year"})}return Fa.y(r,t)},Y:function(r,t,n,i){var a=cf(r,i),s=a>0?a:1-a;if(t==="YY"){var c=s%100;return it(c,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):it(s,t.length)},R:function(r,t){var n=lf(r);return it(n,t.length)},u:function(r,t){var n=r.getUTCFullYear();return it(n,t.length)},Q:function(r,t,n){var i=Math.ceil((r.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return it(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(r,t,n){var i=Math.ceil((r.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return it(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(r,t,n){var i=r.getUTCMonth();switch(t){case"M":case"MM":return Fa.M(r,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(r,t,n){var i=r.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return it(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(r,t,n,i){var a=xd(r,i);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):it(a,t.length)},I:function(r,t,n){var i=vd(r);return t==="Io"?n.ordinalNumber(i,{unit:"week"}):it(i,t.length)},d:function(r,t,n){return t==="do"?n.ordinalNumber(r.getUTCDate(),{unit:"date"}):Fa.d(r,t)},D:function(r,t,n){var i=hd(r);return t==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):it(i,t.length)},E:function(r,t,n){var i=r.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(r,t,n,i){var a=r.getUTCDay(),s=(a-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return it(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(r,t,n,i){var a=r.getUTCDay(),s=(a-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return it(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(r,t,n){var i=r.getUTCDay(),a=i===0?7:i;switch(t){case"i":return String(a);case"ii":return it(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(r,t,n){var i=r.getUTCHours(),a=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(r,t,n){var i=r.getUTCHours(),a;switch(i===12?a=Us.noon:i===0?a=Us.midnight:a=i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(r,t,n){var i=r.getUTCHours(),a;switch(i>=17?a=Us.evening:i>=12?a=Us.afternoon:i>=4?a=Us.morning:a=Us.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(r,t,n){if(t==="ho"){var i=r.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Fa.h(r,t)},H:function(r,t,n){return t==="Ho"?n.ordinalNumber(r.getUTCHours(),{unit:"hour"}):Fa.H(r,t)},K:function(r,t,n){var i=r.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(i,{unit:"hour"}):it(i,t.length)},k:function(r,t,n){var i=r.getUTCHours();return i===0&&(i=24),t==="ko"?n.ordinalNumber(i,{unit:"hour"}):it(i,t.length)},m:function(r,t,n){return t==="mo"?n.ordinalNumber(r.getUTCMinutes(),{unit:"minute"}):Fa.m(r,t)},s:function(r,t,n){return t==="so"?n.ordinalNumber(r.getUTCSeconds(),{unit:"second"}):Fa.s(r,t)},S:function(r,t){return Fa.S(r,t)},X:function(r,t,n,i){var a=i._originalDate||r,s=a.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return bx(s);case"XXXX":case"XX":return $o(s);case"XXXXX":case"XXX":default:return $o(s,":")}},x:function(r,t,n,i){var a=i._originalDate||r,s=a.getTimezoneOffset();switch(t){case"x":return bx(s);case"xxxx":case"xx":return $o(s);case"xxxxx":case"xxx":default:return $o(s,":")}},O:function(r,t,n,i){var a=i._originalDate||r,s=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yx(s,":");case"OOOO":default:return"GMT"+$o(s,":")}},z:function(r,t,n,i){var a=i._originalDate||r,s=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yx(s,":");case"zzzz":default:return"GMT"+$o(s,":")}},t:function(r,t,n,i){var a=i._originalDate||r,s=Math.floor(a.getTime()/1e3);return it(s,t.length)},T:function(r,t,n,i){var a=i._originalDate||r,s=a.getTime();return it(s,t.length)}};function yx(e,r){var t=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),a=n%60;if(a===0)return t+String(i);var s=r||"";return t+String(i)+s+it(a,2)}function bx(e,r){if(e%60===0){var t=e>0?"-":"+";return t+it(Math.abs(e)/60,2)}return $o(e,r)}function $o(e,r){var t=r||"",n=e>0?"-":"+",i=Math.abs(e),a=it(Math.floor(i/60),2),s=it(i%60,2);return n+a+t+s}var wx=m8;var Dx=function(r,t){switch(r){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Sx=function(r,t){switch(r){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},h8=function(r,t){var n=r.match(/(P+)(p+)?/)||[],i=n[1],a=n[2];if(!a)return Dx(r,t);var s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Dx(i,t)).replace("{{time}}",Sx(a,t))},d8={p:Sx,P:h8},Nx=d8;var v8=["D","DD"],g8=["YY","YYYY"];function Ax(e){return v8.indexOf(e)!==-1}function Ex(e){return g8.indexOf(e)!==-1}function yd(e,r,t){if(e==="YYYY")throw new RangeError("Use \`yyyy\` instead of \`YYYY\` (in \`".concat(r,"\`) for formatting years to the input \`").concat(t,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use \`yy\` instead of \`YY\` (in \`".concat(r,"\`) for formatting years to the input \`").concat(t,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use \`d\` instead of \`D\` (in \`".concat(r,"\`) for formatting days of the month to the input \`").concat(t,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use \`dd\` instead of \`DD\` (in \`".concat(r,"\`) for formatting days of the month to the input \`").concat(t,"\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var x8={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"}},y8=function(r,t,n){var i,a=x8[r];return typeof a=="string"?i=a:t===1?i=a.one:i=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},Cx=y8;function pf(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.width?String(r.width):e.defaultWidth,n=e.formats[t]||e.formats[e.defaultWidth];return n}}var b8={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},w8={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},D8={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},S8={date:pf({formats:b8,defaultWidth:"full"}),time:pf({formats:w8,defaultWidth:"full"}),dateTime:pf({formats:D8,defaultWidth:"full"})},Mx=S8;var N8={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},A8=function(r,t,n,i){return N8[r]},_x=A8;function Zo(e){return function(r,t){var n=t!=null&&t.context?String(t.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,s=t!=null&&t.width?String(t.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{var c=e.defaultWidth,f=t!=null&&t.width?String(t.width):e.defaultWidth;i=e.values[f]||e.values[c]}var o=e.argumentCallback?e.argumentCallback(r):r;return i[o]}}var E8={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},C8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},M8={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"]},_8={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"]},T8={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"}},F8={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"}},O8=function(r,t){var n=Number(r),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},B8={ordinalNumber:O8,era:Zo({values:E8,defaultWidth:"wide"}),quarter:Zo({values:C8,defaultWidth:"wide",argumentCallback:function(r){return r-1}}),month:Zo({values:M8,defaultWidth:"wide"}),day:Zo({values:_8,defaultWidth:"wide"}),dayPeriod:Zo({values:T8,defaultWidth:"wide",formattingValues:F8,defaultFormattingWidth:"wide"})},Tx=B8;function Qo(e){return function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=r.match(i);if(!a)return null;var s=a[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?P8(c,function(p){return p.test(s)}):I8(c,function(p){return p.test(s)}),o;o=e.valueCallback?e.valueCallback(f):f,o=t.valueCallback?t.valueCallback(o):o;var u=r.slice(s.length);return{value:o,rest:u}}}function I8(e,r){for(var t in e)if(e.hasOwnProperty(t)&&r(e[t]))return t}function P8(e,r){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},n=r.match(e.matchPattern);if(!n)return null;var i=n[0],a=r.match(e.parsePattern);if(!a)return null;var s=e.valueCallback?e.valueCallback(a[0]):a[0];s=t.valueCallback?t.valueCallback(s):s;var c=r.slice(i.length);return{value:s,rest:c}}}var k8=/^(\\d+)(th|st|nd|rd)?/i,R8=/\\d+/i,L8={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},q8={any:[/^b/i,/^(a|c)/i]},U8={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},z8={any:[/1/i,/2/i,/3/i,/4/i]},W8={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},V8={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]},Y8={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},H8={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]},G8={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},$8={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}},Z8={ordinalNumber:bd({matchPattern:k8,parsePattern:R8,valueCallback:function(r){return parseInt(r,10)}}),era:Qo({matchPatterns:L8,defaultMatchWidth:"wide",parsePatterns:q8,defaultParseWidth:"any"}),quarter:Qo({matchPatterns:U8,defaultMatchWidth:"wide",parsePatterns:z8,defaultParseWidth:"any",valueCallback:function(r){return r+1}}),month:Qo({matchPatterns:W8,defaultMatchWidth:"wide",parsePatterns:V8,defaultParseWidth:"any"}),day:Qo({matchPatterns:Y8,defaultMatchWidth:"wide",parsePatterns:H8,defaultParseWidth:"any"}),dayPeriod:Qo({matchPatterns:G8,defaultMatchWidth:"any",parsePatterns:$8,defaultParseWidth:"any"})},Fx=Z8;var Q8={code:"en-US",formatDistance:Cx,formatLong:Mx,formatRelative:_x,localize:Tx,match:Fx,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ox=Q8;var Bx=Ox;var X8=/[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g,J8=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,K8=/^'([^]*?)'?$/,j8=/''/g,ek=/[a-zA-Z]/;function Oa(e,r,t){var n,i,a,s,c,f,o,u,p,h,d,x,v,y,w,C,b,A;ot(2,arguments);var E=String(r),S=fo(),O=(n=(i=t?.locale)!==null&&i!==void 0?i:S.locale)!==null&&n!==void 0?n:Bx,F=Pn((a=(s=(c=(f=t?.firstWeekContainsDate)!==null&&f!==void 0?f:t==null||(o=t.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&c!==void 0?c:S.firstWeekContainsDate)!==null&&s!==void 0?s:(p=S.locale)===null||p===void 0||(h=p.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Pn((d=(x=(v=(y=t?.weekStartsOn)!==null&&y!==void 0?y:t==null||(w=t.locale)===null||w===void 0||(C=w.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&v!==void 0?v:S.weekStartsOn)!==null&&x!==void 0?x:(b=S.locale)===null||b===void 0||(A=b.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&d!==void 0?d:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var _=Lt(e);if(!pd(_))throw new RangeError("Invalid time value");var k=ld(_),L=md(_,k),Y={firstWeekContainsDate:F,weekStartsOn:M,locale:O,_originalDate:_},$=E.match(J8).map(function(V){var q=V[0];if(q==="p"||q==="P"){var R=Nx[q];return R(V,O.formatLong)}return V}).join("").match(X8).map(function(V){if(V==="''")return"'";var q=V[0];if(q==="'")return rk(V);var R=wx[q];if(R)return!(t!=null&&t.useAdditionalWeekYearTokens)&&Ex(V)&&yd(V,r,String(e)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&Ax(V)&&yd(V,r,String(e)),R(L,V,O.localize,Y);if(q.match(ek))throw new RangeError("Format string contains an unescaped latin alphabet character \`"+q+"\`");return V}).join("");return $}function rk(e){var r=e.match(K8);return r?r[1].replace(j8,"'"):e}function wd(e,r){if(ci(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Dd(e){var r=wd(e,"string");return ci(r)=="symbol"?r:r+""}function Ur(e,r,t){return r=Dd(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Sd=(e,r)=>{if(e instanceof Date)return"date";if(typeof e=="string"){if(/\\/\\/(\\S+?(?:jpe?g|png|gif|svg))/gi.test(e)||e.includes("unsplash"))return"image";if(/^\\d{4}-\\d{2}-\\d{2}$/.test(e))return"date";if(r=="tag"||r=="tags")return"tag";if(/\\[\\[.*?\\]\\]/.test(e))return"link"}else{if(typeof e=="number")return"number";if(typeof e=="boolean")return"boolean";if(e)if(Array.isArray(e)||typeof e=="string"&&e.indexOf(",")>-1){let t=Array.isArray(e)?e:[];if(typeof e=="string"&&e.indexOf(",")>-1&&(t=qi(e)),r=="tag"||r=="tags")return"tag-multi";if(t.length==1&&Array.isArray(t[0])&&t[0].length==1&&typeof t[0][0]=="string")return"link";let n=Zl(t.map(i=>Sd(i,r)));return n.length==1&&n[0]=="link"?"link-multi":n.some(i=>i=="object")?"object-multi":"option-multi"}else{if(e.isLuxonDateTime)return"date";if(e.isLuxonDuration)return"duration";if(e.type=="file")return"link";if(typeof e=="object"&&!Array.isArray(e)&&e!==null)return"object"}else return"unknown"}return"text"};var Ix=e=>e.join(", "),Xo=e=>e.join(",");var qi=e=>e?.match(/(\\\\.|[^,])+/g)??[],Jl=(e,r)=>{switch(Sd(r,e)){case"object":return JSON.stringify(r);case"number":return r.toString();case"boolean":return r?"true":"false";case"date":{if(r instanceof Date){let n=Oa(new Date(r),"yyyy-MM-dd");if(typeof n=="string")return n}return typeof r!="string"?"":r}break;case"duration":return Ix(Object.keys(r.values).reduce((n,i)=>[...n,...r.values[i]>0?[r.values[i]+" "+i]:[]],[]));case"option-multi":case"link-multi":return typeof r=="string"?Xl(r):Xo(r.map(n=>n?typeof n=="string"?Xl(n):n.path?n.path:Array.isArray(r)&&n.length==1&&Array.isArray(n[0])&&n[0].length==1&&typeof n[0][0]=="string"?n[0][0]:JSON.stringify(n):""));case"link":return Array.isArray(r)&&r.length==1&&Array.isArray(r[0])&&r[0].length==1&&typeof r[0][0]=="string"?r[0][0]:typeof r=="string"?Xl(r):r.path;case"text":case"tag":case"image":return r}return""},Ql=e=>{let r;try{r=JSON.parse(e)}catch{}return r};var Xl=e=>{if(!e)return"";let r=/\\[\\[(.*?)\\]\\]/g.exec(e),t=r?.length>1?r[1].substring(0,xx("|",r[1])):e;return t||e};var Kl=(e,r)=>e==r,Nd=(e,r)=>(e??"").length==0,Ad=(e,r)=>(e??"").toLowerCase().includes((r??"").toLowerCase()),Ed=(e,r)=>parseFloat(e)>parseFloat(r),Cd=(e,r)=>parseInt(e)>parseInt(r),Px=(e,r)=>{let t=isNaN(Date.parse(e))?new Date(parseInt(e)):new Date(e),n=isNaN(Date.parse(r))?new Date(parseInt(r)):new Date(r);return t.valueOf()>n.valueOf()},kx=(e,r)=>{let t=isNaN(Date.parse(e))?new Date(parseInt(e)):new Date(e),n=isNaN(Date.parse(r))?new Date(parseInt(r)):new Date(r);return t.valueOf(){let t=e?qi(e):[];return(r?qi(r):[]).some(i=>t.some(a=>a==i))},Rx=(e,r)=>{if(!e)return!1;let t=new Date(\`\${e.toString().replace(".",":")}\`),n=new Date(\`\${r}\`);return t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()},Lx=e=>{if(!e)return!1;let r=new Date(\`\${e.toString()}T00:00\`),t=new Date;return r.getMonth()===t.getMonth()&&r.getDate()===t.getDate()};var mf={isNotEmpty:{type:["text","file","link","link-multi","fileprop","image"],fn:(e,r)=>!Nd(e,""),valueType:"none"},isEmpty:{type:["text","file","link","link-multi","fileprop","image"],fn:(e,r)=>Nd(e,""),valueType:"none"},include:{fn:(e,r)=>Ad(e,r),type:["text","file","link","link-multi","fileprop","image"],valueType:"text"},notInclude:{type:["text","file","link","link-multi","fileprop","image"],fn:(e,r)=>!Ad(e,r),valueType:"text"},is:{type:["text","file","link","context","fileprop"],fn:(e,r)=>Kl(e,r),valueType:"text"},isNot:{type:["text","file","link","context","fileprop"],fn:(e,r)=>!Kl(e,r),valueType:"text"},equal:{type:["number"],fn:(e,r)=>Kl(e,r),valueType:"number"},isGreatThan:{type:["number"],fn:(e,r)=>Ed(e,r),valueType:"number"},isLessThan:{type:["number"],fn:(e,r)=>Cd(e,r),valueType:"number"},isLessThanOrEqual:{type:["number"],fn:(e,r)=>!Ed(e,r),valueType:"number"},isGreatThanOrEqual:{type:["number"],fn:(e,r)=>!Cd(e,r),valueType:"number"},dateBefore:{type:["date","fileprop"],fn:(e,r)=>kx(e,r),valueType:"date"},dateAfter:{type:["date","fileprop"],fn:(e,r)=>Px(e,r),valueType:"date"},isSameDate:{type:["date"],fn:(e,r)=>Rx(e,r),valueType:"date"},isSameDateAsToday:{type:["date"],fn:(e,r)=>Lx(e,r),valueType:"none"},isAnyInList:{type:["option","context","option-multi","context-multi","tags-multi","tags"],fn:(e,r)=>Md(e,r),valueType:"list"},isNoneInList:{type:["option","context","option-multi","context-multi","tags-multi","tags"],fn:(e,r)=>!Md(e,r),valueType:"list"},isTrue:{type:["boolean"],fn:(e,r)=>e=="true",valueType:"none"},isFalse:{type:["boolean"],fn:(e,r)=>e!="true",valueType:"none"}};var tk=(e,r)=>r.reduce((n,i)=>{let[a,s]=n,c=i.type=="path"?Ux(s,i):i.type=="frontmatter"?qx(s,i):zx(s,i),f=s.filter(o=>!c.includes(o));return[[...a,...c],f]},[[],e])[0],nk=(e,r)=>r.reduce((t,n)=>n.type=="path"?Ux(t,n):n.type=="frontmatter"?qx(t,n):zx(t,n),e),qx=(e,r)=>e.filter(t=>{let n=t.metadata?.property;if(!n||!n[r.field])return!1;let i=mf[r.fn],a=!0;return i&&(a=i.fn(Jl(r.field,n[r.field]),r.value)),a}),Ux=(e,r)=>e.filter(t=>{let n="";r.field=="outlinks"?n=Xo(t.outlinks??[]):r.field=="inlinks"?n=Xo(t.inlinks??[]):r.field=="tags"&&(n=Xo(t.tags??[]));let i=mf[r.fn],a=!0;return i&&(a=i.fn(n,r.value)),a}),zx=(e,r)=>e.filter(t=>{let n=mf[r.fn],i=!0;return n&&(i=n.fn(t.metadata?.[r.type]?.[r.field],r.value)),i}),_d=(e,r)=>e.reduce((n,i)=>!n||i.filters.length==0?!1:i.type=="any"?tk([r],i.filters).length>0:nk([r],i.filters).length>0,!0);var Vx=li(Wx()),Fd=class{constructor(){this.lang="en";this.all={en:{hintText:{dragDropModifierKeys:"Hold \${1} to Pin and \${2} to Copy",createListItem:"Select/Create List Item Frame",dragDropProperties:"Drag and drop properties to link them into the list",newItem:"+ New",selectNote:"Select Note...",newFrame:"New"},defaults:{spaceNote:"Current Note",spaceContext:"Current Space"},commands:{h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",columns:"Columns",button:"Button",label:"Label",column:"Column",idea:"New",group:"Group",paragraph:"Text",card:"Card",progress:"Progress",rating:"Rating",circularProgress:"Circular Progress",list:"Bullet List","ordered-list":"Numbered List",todo:"To-do List",quote:"Quote",divider:"Divider",note:"Link to Note",link:"Link",callout:"Callout",bookmark:"Bookmark",table:"Table",codeblock:"Code Block",toggle:"Toggle",emoji:"Emoji",image:"Image",flow:"Linked Note",newNote:"New Note",tag:"Tag",makeMenu:"Flow Menu",selectStyle:"Style",toggleKeyboard:"Toggle Keyboard",rows:"Rows",masonry:"Gallery"},styles:{bold:"Bold",italics:"Italics",strikethrough:"Strikethrough",code:"Code",link:"Web Link",blocklink:"Link to Note",textColor:"Text Color",highlight:"Highlight"},commandsSuggest:{noResult:"No result"},commandPalette:{enable:"Enable",disabled:"Disable",openFlow:"Open Flow Blocks in Selection",closeFlow:"Close Flow Blocks in Selection",toggleBold:"Toggle Bold",toggleItalics:"Toggle Italics",openSpaces:"Open Spaces",migrateData:"Migrate Spaces From 0.7",blink:"Blink",openFileContext:"Open Explorer",convertPathToSpace:"Convert to Space",revealFile:"Reveal File in Spaces",releaseNotes:"Release Notes",toggleBacklinks:"Toggle Backlinks",collapseAllFolders:"Collapse All Folders",addFileSpace:"Add File to Space",removeFileSpace:"Remove File from Space"},frames:{sections:{kit:"Kit",paths:"Paths"},label:{label:"Label",description:"Label"},note:{label:"Note",description:"Link to a note"},table:{label:"Table",description:"Table"},context:{label:"Context",description:"Display a context view from another space"},calendar:{label:"Calendar View"},field:{label:"Field",description:"Dynamic node that displays a value based on property type"},event:{label:"Event"},divider:{label:"Divider",description:"Divider to separate your content"},button:{label:"Button",description:"Buttons can perform actions and open links"},callout:{label:"Callout",description:"Callout to highlight important information"},toggle:{label:"Toggle",description:"Toggle to show/hide content"}},menu:{newView:"New View",customView:"Custom View",detailsView:"Details View",catalogView:"Catalog View",galleryView:"Gallery View",deleteContext:"Delete Context",openSpace:"Open Space",revealInDefault:"Reveal in Finder",setNone:"None",fileMetadataDescription:"This note only",openFilePane:"Open in a new pane",rename:"Rename",changeToFolderNote:"New Space from Note",moveFile:"Move file to...",moveFolder:"Move folder to...",duplicate:"Make a copy",edit:"Edit",delete:"Delete",getHelp:"Make.md Community",vault:"Vault",openVault:"Open Another Vault",openVaultInFolder:"Open Vault Folder",obSettings:"Obsidian Settings",commandPalette:"Command Palette",backToSpace:"Back to Spaces",collapseAllSections:"Collapse All Spaces",expandAllSections:"Expand All Spaces",collapseAllFolders:"Collapse All Folders",expandAllFolders:"Expand All Folders",spaceTitle:"Add/Remove in Space",home:"Home",waypoints:"Waypoints",none:"None",tableView:"Table View",cardView:"Card View",boardView:"Board View",listView:"List View",flowView:"Flow View",groupBy:"Group By",sortBy:"Sort By",newFilter:"New Filter",clearFilters:"Clear Filters",hide:"Hide",unhideFields:"Unhide All Properties",importDataview:"Import All Dataview Properties",saveAllProperties:"Save All Properties to Files",mergeProperties:"Merge Properties",removeFromSpace:"Unpin from Space",removeFromWaypoints:"Unpin from Waypoints",editCode:"Edit Code",deleteProperty:"Delete Property",hideProperty:"Hide Property",unhideProperty:"Unhide Property",saveProperty:"Save Property",sortAscending:"Sort Ascending",sortDescending:"Sort Descending",deleteRow:"Delete Item",collapseAll:"Collapse All",customSort:"Custom Sort",groupSpaces:"Group Spaces",fileNameSortAlphaAsc:"File Name (A to Z)",fileNameSortAlphaDesc:"File Name (Z to A)",createdTimeSortAsc:"Created Time (new to old)",createdTimeSortDesc:"Created Time (old to new)",modifiedTimeSortAsc:"Modified Time (new to old)",modifiedTimeSortDesc:"Modified Time (old to new)",sizeSortAsc:"Size (smallest to largest)",sizeSortDesc:"Size (largest to smallest)",spaces:"Spaces",tags:"Tags",manageHiddenFiles:"Manage Hidden Files",manageActions:"Manage Actions",deleteSpace:"Delete",changeColor:"Change Color",changePropertyType:"Change Type",deleteFiles:"Delete Files",createFolderSpace:"Create Space from Folder",folder:"Folder",syncToContext:"Add Property to Context",setIcon:"Set Icon",copyEmbedLink:"Copy Embed Link",moveUp:"Move Up",moveDown:"Move Down",moveTo:"Move To",groupNodes:"Group Nodes",moveFrame:"Move Frame",renameFrame:"Rename Frame",deleteFrame:"Delete Frame"},editor:{rows:"Rows",columns:"Columns",catalog:"Catalog",gallery:"Gallery",grid:"Grid",scaleToFit:"Change to Fit",scaleToFill:"Change to Fill",fit:"Fit",strokeNone:"None",strokeSolid:"Solid",strokeDotted:"Dotted",strokeDashed:"Dashed",size:"Size",gap:"Gap",marginLeft:"Left",marginTop:"Top",marginRight:"Right",marginBottom:"Bottom",minimize:"Minimize",paddingLeft:"Left",paddingTop:"Top",paddingRight:"Right",paddingBottom:"Bottom",unlinkProperty:"Unlink Property",linkedProperty:"Linked Property",linkProperty:"Link Property",currentSpace:"Current Space",linkName:"\${1} Link",linkThumbnail:"\${1} Thumbnail",linkSticker:"\${1} Sticker",opacity:"Opacity",shadowSpread:"Spread",shadowBlur:"Blur",width:"Width",height:"Height",margin:"Margin",padding:"Padding",bold:"Bold",italic:"Italic",underline:"Underline",alignLeft:"Align Left",alignCenter:"Align Center",alignRight:"Align Right",alignJustify:"Align Justify",numberOfLines:"Lines",createVerticalSection:"Create Vertical Section",createHorizontalSection:"Create Horizontal Section",themeColors:"Theme Colors",uiColors:"UI Colors",hex:"Hex"},buttons:{add:"Add",addFilter:"Add Filter",customize:"Customize",moreOptions:"More Options",saveProperty:"Save Property",newNote:"New Note",changeIcon:"Change Sticker",removeIcon:"Remove Sticker",addIcon:"Add Sticker",addCover:"Add Cover",changeBanner:"Change Cover",changeBannerShort:"Cover",saveChanges:"Save Changes",removeBanner:"Remove Cover",rename:"Change Name",editFrame:"Edit Frame",saveSpace:"Save Space",createSpace:"New Space",createFolder:"New Folder",createNote:"New Note",createCanvas:"New Canvas",addIntoSpace:"New Pin",addSmartSearch:"Add Smart Search",addItem:"Add Item",addProperty:"Add Property",addContext:"Add Context",cancel:"Cancel",search:"Search",delete:"Delete",toggleFlow:"Toggle Flow",openFlow:"Open Flow",hideFlow:"Hide Flow",openLink:"Open Link",addToSpace:"Add to Space",addToSpaceShort:"Pin",addTag:"Add Tag",tag:"Tag",syncFields:"Sync Properties",convertTable:"Convert to Markdown",cutTable:"Cut Table",deleteTable:"Delete Table",blink:"Blink",addFile:"Add Item",merge:"Merge",saveView:"Save View",saveTable:"Save Table",renameView:"Rename View",deleteView:"Delete View",renameTable:"Rename Table",renameTag:"Rename Tag",createTag:"Create Tag",currentFolder:"Current Folder",sync:"Sync",pasteCSS:"Paste CSS",save:"Save",run:"Run"},metadataTypes:{fileName:"File Name",path:"Path",folder:"Folder",sticker:"Sticker",color:"Color",created:"Created",lastModified:"Last Modified",extension:"Extension",size:"Size",tags:"Tags",inlinks:"Linked Mentions",outlinks:"Links",label:"Label",fileMetadata:"File Metadata",frontmatter:"Frontmatter"},filterTypes:{contains:"contains",notContains:"does not contain",is:"is",isNot:"is not",before:"before",after:"after",anyOf:"is any of",noneOf:"is none of",checked:"is checked",unchecked:"is unchecked",isEmpty:"is empty",isNotEmpty:"is not empty",isSameDate:"is same date",isSameDateAsToday:"today"},sortTypes:{alphaAsc:"A to Z",alphaDesc:"Z to A",earliest:"Earliest",latest:"Latest",checkAsc:"Checked \\u2192 Unchecked",checkDesc:"Unchecked \\u2192 Checked",itemsAsc:"Least Items",itemsDesc:"Most Items"},properties:{defaultField:"Name",text:{label:"Text",description:"Text field"},number:{label:"Number",description:"Number field with optional unit"},boolean:{label:"Yes/No",description:"Yes or No toggle to indicate the status"},date:{label:"Date",description:"Select a date from a calendar"},option:{label:"Option",description:"Select one or multiple option from a list"},file:{label:"File"},link:{label:"Link",description:"Link to another note or a website"},tags:{label:"Tags",description:"Use tags to quickly organize your items"},object:{label:"Object",description:"Store any complex objects"},context:{label:"Relation",description:"Connect to another context property and create a relation"},image:{label:"Image",description:"Select any image from your system or from the internet"},color:{label:"Color",description:"Use colors to label your items or status"},space:{label:"Context",description:"Link to a context"},icon:{label:"Sticker",description:"Use stickers to uniquely label your items or status"},super:{label:"Super Property",links:"Open Link",properties:"Update Property",api:"API",obsidianCommands:"Run Command",runCommand:"Run Command",performAction:"Perform Action",whenClicked:"When Clicked"},fileProperty:{name:"Name",label:"Formula",createdTime:"Created",modifiedTime:"Last Edited",sticker:"Sticker",links:"Links",tags:"Tags",spaces:"Spaces",extension:"Extension",size:"Size",preview:"Note Preview",parentFolder:"Folder",description:"Use a formula to dynamically display a property"}},views:{navigator:"Navigator",explorer:"Explorer",space:"Space"},subViews:{spaceItems:"Items",spaceContext:"Context",spaceLists:"Lists",spaceActions:"Actions",smartSearch:"Smart Search",filesAndFolders:"Files and Folders"},labels:{properties:"Properties",newAction:"New Action",newTable:"New Table",createFolder:"New Folder Name",rename:"Rename",createNew:"New",default:"Default",done:"Done",tables:"Tables",selectDateFormat:"Select/Type Date Format",renameSectionSmart:"Edit Smart Space",renameSection:"Edit Space",createSectionSmart:"New Smart Space",createSection:"New Folder",createNote:"New Note",contextMaker:"Context Maker",select:"Select",pinnedItems:"Pinned Items",collapse:"Collapse",expand:"Expand",all:"All",none:"None",view:"View",findStickers:"Find Sticker",mergeProperties:"Merge Properties",placeholder:"Type '\${1}' for commands",itemsSelected:"\${1} Selected",selectNote:"Select Note",selectIcon:"Select Icon",selectImage:"Select Image",selectSpace:"Select Space",styleSmall:"Small",styleMedium:"Medium",styleLarge:"Large",hiddenFilePattern:"Name, Suffixes and Extension",hiddenFileSpecific:"Exclude specific files and folders",textPlaceholder:"Enter Text",noFile:"is not created yet. Click to create.",navigatorSearchPlaceholder:"Search by Text or Filters",blinkPlaceholder:"Quickly Search a File, Folder, Tag... Press Tab to Edit",searchPlaceholder:"Type to search...",contextItemSelectPlaceholder:"Find Item",linkItemSelectPlaceholder:"Find or Create Note",pinNotePlaceholder:"Select a Note or Space to Pin",optionItemSelectPlaceholder:"Select Option",viewItemSelectPlaceholder:"Select View",tagItemSelectPlaceholder:"Find Tag",spaceSelectPlaceholder:"Select any Folder or Tag",propertyItemSelectPlaceholder:"Select Property",sortItemSelectPlaceholder:"Select Sort",filterItemSelectPlaceholder:"Select Filter",imageSelectPlaceholder:"Select an image or paste a URL",imageNotFoundPlaceholder:"No Images Found",syncFrontmatterProperty:"Sync Frontmatter Property",newProperty:"New Property",newPropertyShort:"New Property",propertyType:"Type",propertyDynamic:"Dyanmic",propertyValueSpace:"Space",propertyValueProperty:"Property",propertyLookup:"Edit Formula",dateFormat:"Date Format",propertyFileProp:"Property",multiple:"Multiple",filesCount:"{$1} Files",hiddenFiles:"Hidden Files",addExtension:"Add Rule",saveView:"Save View",saveTable:"Save Table",renameView:"Rename View",renameTable:"Rename Table",syncMetadata:"Sync Metadata",syncProperties:"Sync Properties",selectContext:"Select Context",metadata:"Metadata",backlinks:"Backlinks",spaces:"Spaces",context:"Context",content:"Content",deleteSpace:"Delete Space",deleteFiles:"Delete Files",outgoingLinks:"Outgoing Links",moveTo:"Move to",addTo:"Pin to",copyTo:"Copy to",reorderIn:"Reorder in",border:"Border",corners:"Corners",color:"Color",backgroundColor:"Background",cornerRadius:"Radius",onClick:"On Click",layout:"Layout",element:"Element",name:"Name",display:"Display",alignment:"Alignment",margin:"Margin",padding:"Padding",gap:"Gap",width:"Width",height:"Height",opacity:"Opacity",shadow:"Shadow",shadowBlur:"Blur",shadowSpread:"Spread",typography:"Typography",layers:"Layers",fontSize:"Size",props:"Props",styles:"Styles",events:"Events",code:"Code",selectedLayers:"\${1} Layers"},descriptions:{spaceActions:"Create actions that runs when you press a button",spaceLists:"Create lists to track data and organize them in your space",spaceItems:"Add new items to the space or pin items to the space",smartSearch:"Automatically pin notes to this space based on a set of searches",hiddenFileOptions:"Exclude any files and folders by name, suffix or extension.",deleteSpace:"Deleting the space will also delete the folder and its contents.",deleteFiles:"Delete \${1} files/folders and their contents?",addContext:"Contexts lets you connect properties from your tags",spaceProperties:"Define Properties for your Space Items",syncMetadata:"Select which fields from your notes to start syncing with the context.",syncProperties:"Contexts defines and syncs the same fields across your notes depending on their folder or tag.",selectContext:"Select which folder or tag context you want to sync the fields."},flowView:{emptyDoc:"Empty Document",itemsCount:" Items",emptyFolder:"This Folder is Empty"},notice:{duplicateFile:"Folder already contains note with same name",addedToSection:"Added to Space",fileExists:"File Already Exists",folderExists:"Folder Already Exists",noPropertyName:"Property Name is Required",duplicatePropertyName:"Duplicate Property Name",newSpaceName:"Enter a name for your space",duplicateSpaceName:"Space name already exists",cantConvertNoteToSpace:"The view is not a note"},settings:{layoutVertical:"Vertical",layoutHorizontal:"Horizontal",sectionSidebar:"Spaces",sectionEditor:"Maker Mode",sectionFlow:"Flow",sectionAdvanced:"Advanced",sectionDataview:"Dataview",sectionContext:"Context",sectionStickers:"Stickers",sectionNavigator:"Navigator",sectionDefault:"Default Spaces",sectionSpaceView:"Space View",sectionBlink:"Blink",sectionInlineContext:"Inline Context",sectionFlowBlock:"Flow Block",sectionFlowMenu:"Flow Menu",sectionFlowStyler:"Flow Styler",experimental:{name:"Experimental",desc:"Experimental features that are subject to change and may not be optimized for performance"},generateThumbnails:{name:"Generate Thumbnails",desc:"Create thumbnails for images to speed up performance"},minimalThemeFix:{name:"Minimal Theme Fix",description:"Apply fixes for the popular theme Minimal"},inlineStickerMenu:{name:"Inline Stickers",desc:"Add inline stickers by typing :"},openSpacesOnLaunch:{name:"Open Spaces as Default Tab",desc:"Open the Spaces tab when Obsidian launches"},defaultSpaceTemplate:{name:"Default Space Template",desc:"Select the default template for new spaces"},defaultDateFormat:{name:"Default Date Format",desc:"Set the default date format, example: yyyy-MM-dd (see https://date-fns.org/v2.30.0/docs/format)"},newNotePlaceholder:{name:"New Note Placeholder",desc:"Default name for new notes"},folderIndentationLines:{name:"Show Folder Indentation Lines",desc:"Turn on to show a line on the left of folders to indicate indentation"},folderNoteLocation:{name:"Folder Note Location Inside Folder",desc:"Turn on to have folder notes inside the folder, turn off to have it outside"},folderViewDefault:{name:"Show Folder Note by Default",desc:"Show the folder note by default when opening a folder"},internalLinkFlowEditor:{name:"Open Flow Blocks on Internal Link Click",desc:"Turn on to toggle Flow Blocks directly by clicking on internal links, otherwise a tooltip will be shown"},syncContextToFrontmatter:{name:"Sync Context Fields to Frontmatter",desc:"Turn on to automatically save all context fields to frontmatter fields, not just existing frontmatter fields."},inlineBacklinks:{name:"Show Inline Backlinks (Inline Context required)",desc:"Show editable backlinks at the bottom of your notes"},dataviewInlineContext:{name:"Show Dataview in Inline Context",desc:"Show dataview when inline context is enabled"},inlineContextExplorer:{name:"Inline Context",desc:"Display the context and a banner at the top of your notes"},inlineContextExpanded:{name:"Auto Expand Inline Context",desc:"Expand the inline context sections when opening a note"},inlineContextHorizontal:{name:"Inline Title and Sticker Layout",desc:"Layout for inline title and sticker in Inline Context"},hideFrontmatter:{name:"Hide Frontmatter Properties",desc:"Hide the frontmatter properties in inline context"},openFileContext:{name:"Auto Open Explorer",desc:"Automatically open explorer panel in the right panel"},folderNote:{name:"Enable Folder Note",desc:"Access the folder note in the folder page and hide the folder note from spaces"},expandFolder:{name:"Auto Expand Folder",desc:"Auto expand folders on click"},hoverPreview:{name:"Preview on Hover",desc:"Preview on Hover while holding Control/Command key"},activeFile:{name:"Reveal Active File",desc:"Automatically reveal the active file in Spaces"},contexts:{name:"Contexts",desc:"Contexts allows you to have full control over the metadata of your files"},spaces:{name:"Navigator",desc:"The navigator lets you create and organize your spaces"},spacesStickers:{name:"Stickers",desc:"Use Emojis to make it easier to find your notes"},spacesAlias:{name:"Alias",desc:"Use the alias metadata to show in Spaces"},spacesFileExplorerDual:{name:"Compatibility Mode",desc:"This will improve the compatibility of plugins while using Spaces"},spacesDeleteOption:{name:"Delete File Option",desc:"Select how you want files to be deleted"},spacesDeleteOptions:{permanant:"Delete Permanently",trash:"Move to Obsidian Trash","system-trash":"Move to System Trash"},hideRibbon:{name:"App Ribbon",desc:"Show/hide the left menu aka. ribbon"},spaceView:{name:"Space View",desc:"Open the space view when you click on a space"},defaultSpaces:{name:"Default Spaces",desc:"Recommended spaces for quickly organizing your vault"},homeSpace:{name:"Home Space",desc:"An easy-to-access space where you can add/organize your other spaces"},tagSpaces:{name:"Tag Spaces",desc:"Automatically create spaces for each of your tags"},readableLineWidth:{name:"Readable Line Width",desc:"Use Readable Line Width"},sidebarTabs:{name:"Sidebar Tabs",desc:"Show/hide other sidebar tabs"},spacesPerformance:{name:"Performance Mode",desc:"Turn on performance mode for Spaces, may affect scrolling appearance. Requires Restart"},indexSVG:{name:"Use SVGs as Stickers",desc:"Use any svg file in your vault as a sticker"},inlineStyler:{name:"Flow Styler",desc:"Select text to add styling"},inlineStylerColor:{name:"Text and Highlight Colors \\u{1F9EA}",desc:"Select text color and highlight color, (this may change in the future because of the limitations with HTML and Obsidian)"},spaceRowHeight:{name:"Row Height",desc:"The height for each row in spaces (in pixels), default is 28"},makeChar:{name:"Flow Menu Trigger",desc:"Character to open the Flow Menu"},mobileMakeBar:{name:"Flow Styler (Mobile)",desc:"Replaces the mobile toolbar"},editorMarkSans:{name:"Mark Sans \\u{1F9EA}",desc:"Use the editor without Markdown."},editorMakerMode:{name:"Flow (Beta)",desc:"An integrated and intuitive editor experience"},editorMakePlacholder:{name:"Flow Menu Hint Text",desc:"Show a hint text on how to open the Flow Menu Shortcut"},blink:{name:"Blink",desc:"A faster way to search and edit your notes"},editorMakeMenu:{name:"Flow Menu",desc:"Open the Flow menu to quickly add content"},editorMakeMenuTrigger:{name:"Flow Menu Shortcut",desc:"Trigger key to use flow menu"},editorFlowReplace:{name:"Flow Block",desc:"Open your internal links or toggle your embeds in the flow block."},editorFlowStyle:{name:"Flow Block Style",desc:"Select a theme for your flow block",seamless:"Seamless",classic:"Classic",minimal:"Minimal"}}}};this.lang="en";let r=Vx.default.locale();["en"].includes(r)&&(this.lang=r)}get texts(){return this.all.en}},Vr=new Fd().texts;var Yx=(e,r)=>r==uo?Ws.find(t=>t.type=="file"):r=="tags"?Ws.find(t=>t.type=="tags"):r=="aliases"?Ws.find(t=>t.type=="option-multi"):r=="sticker"?Ws.find(t=>e=="icon"):Ws.find(t=>e==t.type)||Ws.find(t=>e==t.multiType),Ws=[{type:"unknown",label:"",restricted:!0,icon:"ui//file-question"},{type:"text",label:Vr.properties.text.label,metadata:!0,icon:"ui//text",description:Vr.properties.text.description},{type:"number",label:Vr.properties.number.label,metadata:!0,icon:"ui//binary",configKeys:["unit"],description:Vr.properties.number.description},{type:"boolean",label:Vr.properties.boolean.label,metadata:!0,icon:"ui//check-square",description:Vr.properties.boolean.description},{type:"date",label:Vr.properties.date.label,metadata:!0,icon:"ui//calendar",configKeys:["format"],description:Vr.properties.date.description},{type:"option",label:Vr.properties.option.label,multi:!0,multiType:"option-multi",icon:"ui//list",configKeys:["options"],description:Vr.properties.option.description},{type:"tags",label:Vr.properties.tags.label,icon:"ui//tags",description:Vr.properties.tags.description},{type:"file",label:Vr.properties.file.label,restricted:!0,icon:"ui//mk-make-h3"},{type:"fileprop",label:Vr.properties.fileProperty.label,icon:"ui//formula",configKeys:["field","value"],description:Vr.properties.fileProperty.description},{type:"link",label:Vr.properties.link.label,multi:!0,multiType:"link-multi",metadata:!0,icon:"ui//file-text",description:Vr.properties.link.description},{type:"context",label:Vr.properties.context.label,icon:"ui//mk-make-note",multi:!0,multiType:"context-multi",configKeys:["space"],description:Vr.properties.context.description},{type:"object",label:Vr.properties.object.label,multi:!0,multiType:"object-multi",metadata:!0,icon:"ui//list-tree",configKeys:["type"],description:Vr.properties.object.description},{type:"icon",label:Vr.properties.icon.label,multi:!0,multiType:"icon-multi",icon:"ui//gem",description:Vr.properties.icon.description},{type:"image",label:Vr.properties.image.label,multi:!0,multiType:"image-multi",metadata:!0,icon:"ui//mk-make-image",description:Vr.properties.image.description},{type:"color",label:Vr.properties.color.label,icon:"ui//mk-make-image",description:Vr.properties.color.description},{type:"space",label:Vr.properties.space.label,icon:"ui//layout-grid",restricted:!0,description:Vr.properties.space.description},{type:"table",label:Vr.properties.space.label,icon:"ui//layout-grid",restricted:!0,description:Vr.properties.space.description},{type:"super",label:Vr.properties.super.label,icon:"ui//zap",restricted:!0,configKeys:["dynamic","field"]},{type:"input",label:Vr.properties.super.label,icon:"ui//input",restricted:!0}];var Vs="files",rc={id:Vs,name:"Files",type:"db",primary:"true"},ik="filesView",ak={id:ik,name:"All",type:"view",def:JSON.stringify({db:Vs,icon:"ui//file-stack"})},ok="main",sk=e=>({id:e,name:e,type:"frame",def:"",predicate:"",primary:"true"}),C$={uniques:[],cols:["id","name","type","def","predicate","primary"],rows:[sk(ok),ak]},jl={uniques:[],cols:["id","name","type","def","predicate","primary"],rows:[rc]},Hx={uniques:["name,schemaId"],cols:["name","schemaId","type","value","attrs","hidden","unique","primary"]},ec={...Hx,rows:[{name:uo,schemaId:Vs,type:"file",primary:"true",hidden:"",unique:"",attrs:"",value:""},{name:Vr.properties.fileProperty.createdTime,schemaId:Vs,type:"fileprop",value:uo+".ctime",hidden:"",unique:"",attrs:"",primary:"true"}]};var M$=[{name:Vr.properties.defaultField,schemaId:"",type:"text",primary:"true"}],Od={...Hx,rows:[{name:uo,schemaId:Vs,type:"file",primary:"true",hidden:"",unique:"",attrs:"",value:""}]};var _$={schema:rc,cols:ec.rows,rows:[]},T$={schema:rc,cols:ec.rows,rows:[]},F$={schema:rc,cols:Od.rows,rows:[]},Gx=(e,r)=>e.filter(t=>r.find(n=>n.id==t.schemaId&&n.type=="db")).reduce((t,n)=>({...t,...t[n.schemaId]?{[n.schemaId]:{uniques:n.unique=="true"?[...t[n.schemaId].uniques,n.name]:t[n.schemaId].uniques,cols:[...t[n.schemaId].cols,n.name],rows:[]}}:{[n.schemaId]:{uniques:n.unique=="true"?[n.name]:[],cols:[n.name],rows:[]}}}),{});var O$={m_schema:jl,m_fields:ec,...Gx(ec.rows,jl.rows)},B$={m_schema:jl,m_fields:Od,...Gx(Od.rows,jl.rows)};var fk=(e,r)=>{let t=n=>n=="builtin"?"Builtin":n=="api"?"Spaces":"Action";return[...(e.actionsIndex.get(r)??[]).map(n=>({name:n.schema.name,description:"Action",value:\`\${r}/#;\${n.schema.id}\`,section:"Action"}))??[],...[...e.cli.allCommands()].map(n=>({name:n.schema.name,description:t(n.schema.type),value:n.path,section:t(n.schema.type)}))]};var $x=({field:e,value:r})=>r=="ctime"?{value:\`parseDate(prop('\${e}')['metadata']['file']['\${r}'])\`}:{value:\`prop('\${e}')['metadata']['file']['\${r}']\`},Bd=(e,r,t,n)=>{let i=Ql(e);if(i)return r=="fileprop"&&i.field?$x(i):(r=="option"&&i.source?.length>0&&(i.source=="$commands"?i.options=t.cli.allCommands():i.source=="$links"?i.options=t.spaceManager.allPaths().map(a=>({name:a,value:a})):i.source=="$super"&&(i.options=fk(t,n))),[...Yx(r).configKeys??[],"alias","default"].reduce((a,s)=>({...a,[s]:i[s]}),{}));if(!r)return{};if(!i)if(r=="context")e?.length>0?i={space:e}:i={};else if(r.startsWith("date"))e?.length>0?i={format:e}:i={};else if(r.startsWith("fileprop"))if(e?.length>0){let[a,s]=e.split(".");i=$x({field:a,value:s})}else i={};else r.startsWith("option")&&(e?.length>0?i={options:qi(e).map(s=>({name:s,value:s}))}:i={});return i??{}};function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var r=1;re[r])}var Kx=["Matrix","Array"],jx=["number","BigNumber","Fraction"];function ry(e,r){function t(n){if(n){var i=Gs(e,tr);ey(n,"matrix",Kx),ey(n,"number",jx),Id(e,n);var a=Gs(e,tr),s=Gs(n,tr);return r("config",a,i,s),a}else return Gs(e,tr)}return t.MATRIX_OPTIONS=Kx,t.NUMBER_OPTIONS=jx,Object.keys(tc).forEach(n=>{Object.defineProperty(t,n,{get:()=>e[n],enumerable:!0,configurable:!0})}),t}function lk(e,r){return e.indexOf(r)!==-1}function ey(e,r,t){e[r]!==void 0&&!lk(t,e[r])&&console.warn('Warning: Unknown value "'+e[r]+'" for configuration option "'+r+'". Available options: '+t.map(n=>JSON.stringify(n)).join(", ")+".")}var Mg={};a8(Mg,{createAbs:()=>tb,createAccessorNode:()=>N2,createAcos:()=>eN,createAcosh:()=>tN,createAcot:()=>iN,createAcoth:()=>oN,createAcsc:()=>uN,createAcsch:()=>lN,createAdd:()=>m2,createAddScalar:()=>ab,createAnd:()=>tp,createAndTransform:()=>UO,createApply:()=>au,createApplyTransform:()=>mO,createArg:()=>ow,createArrayNode:()=>A2,createAsec:()=>pN,createAsech:()=>hN,createAsin:()=>vN,createAsinh:()=>gN,createAssignmentNode:()=>M2,createAtan:()=>xN,createAtan2:()=>bN,createAtanh:()=>DN,createAtomicMass:()=>G3,createAvogadro:()=>$3,createBellNumbers:()=>EF,createBigNumberClass:()=>Qy,createBignumber:()=>L1,createBin:()=>AD,createBitAnd:()=>Vc,createBitAndTransform:()=>WO,createBitNot:()=>rw,createBitOr:()=>Yc,createBitOrTransform:()=>VO,createBitXor:()=>iw,createBlockNode:()=>_2,createBohrMagneton:()=>E3,createBohrRadius:()=>O3,createBoltzmann:()=>Z3,createBoolean:()=>R1,createCatalan:()=>MF,createCbrt:()=>fb,createCeil:()=>lb,createChain:()=>eT,createChainClass:()=>NA,createClassicalElectronRadius:()=>B3,createClone:()=>s1,createColumn:()=>$c,createColumnTransform:()=>hO,createCombinations:()=>RT,createCombinationsWithRep:()=>UT,createCompare:()=>hS,createCompareNatural:()=>xS,createCompareText:()=>bS,createCompile:()=>Q2,createComplex:()=>q1,createComplexClass:()=>Ky,createComposition:()=>TF,createConcat:()=>Gc,createConcatTransform:()=>CO,createConditionalNode:()=>T2,createConductanceQuantum:()=>C3,createConj:()=>uw,createConstantNode:()=>k2,createCorr:()=>IT,createCos:()=>NN,createCosh:()=>EN,createCot:()=>MN,createCoth:()=>TN,createCoulomb:()=>N3,createCount:()=>ww,createCreateUnit:()=>KS,createCross:()=>Sw,createCsc:()=>ON,createCsch:()=>IN,createCtranspose:()=>oD,createCube:()=>pb,createCumSum:()=>Rp,createCumSumTransform:()=>PO,createDeepEqual:()=>_S,createDenseMatrixClass:()=>a1,createDerivative:()=>WF,createDet:()=>tT,createDeuteronMass:()=>q3,createDiag:()=>Aw,createDiff:()=>Zc,createDiffTransform:()=>_O,createDistance:()=>DT,createDivide:()=>bT,createDivideScalar:()=>LD,createDot:()=>y2,createDotDivide:()=>KD,createDotMultiply:()=>$b,createDotPow:()=>XD,createE:()=>a3,createEfimovFactor:()=>H3,createEigs:()=>fT,createElectricConstant:()=>D3,createElectronMass:()=>I3,createElementaryCharge:()=>A3,createEqual:()=>wS,createEqualScalar:()=>F1,createEqualText:()=>SS,createErf:()=>dD,createEvaluate:()=>J2,createExp:()=>hb,createExpm:()=>cT,createExpm1:()=>vb,createFactorial:()=>GT,createFalse:()=>jF,createFaraday:()=>Q3,createFermiCoupling:()=>P3,createFft:()=>lD,createFibonacciHeapClass:()=>US,createFilter:()=>Cw,createFilterTransform:()=>vO,createFineStructure:()=>k3,createFirstRadiation:()=>X3,createFix:()=>gb,createFlatten:()=>_w,createFloor:()=>qc,createForEach:()=>Fw,createForEachTransform:()=>gO,createFormat:()=>SD,createFraction:()=>U1,createFractionClass:()=>r1,createFreqz:()=>ZF,createFunctionAssignmentNode:()=>R2,createFunctionNode:()=>H2,createGamma:()=>WT,createGasConstant:()=>K3,createGcd:()=>Sb,createGetMatrixDataType:()=>Bw,createGravitationConstant:()=>x3,createGravity:()=>sO,createHartreeEnergy:()=>R3,createHasNumericValue:()=>w1,createHelp:()=>K_,createHelpClass:()=>SA,createHex:()=>_D,createHypot:()=>d2,createI:()=>m3,createIdentity:()=>Pw,createIfft:()=>pD,createIm:()=>lw,createImmutableDenseMatrixClass:()=>RS,createIndex:()=>D2,createIndexClass:()=>qS,createIndexNode:()=>L2,createIndexTransform:()=>xO,createInfinity:()=>r3,createIntersect:()=>ST,createInv:()=>iT,createInverseConductanceQuantum:()=>M3,createInvmod:()=>Hb,createIsInteger:()=>f1,createIsNaN:()=>C1,createIsNegative:()=>g1,createIsNumeric:()=>y1,createIsPositive:()=>S1,createIsPrime:()=>PD,createIsZero:()=>A1,createKldivergence:()=>ZT,createKlitzing:()=>F3,createKron:()=>Rw,createLN10:()=>u3,createLN2:()=>s3,createLOG10E:()=>l3,createLOG2E:()=>f3,createLarger:()=>ES,createLargerEq:()=>CS,createLcm:()=>Ab,createLeafCount:()=>OF,createLeftShift:()=>uS,createLgamma:()=>YT,createLog:()=>YD,createLog10:()=>Cb,createLog1p:()=>GD,createLog2:()=>_b,createLoschmidt:()=>J3,createLsolve:()=>eS,createLsolveAll:()=>iS,createLup:()=>tA,createLusolve:()=>bA,createLyap:()=>yT,createMad:()=>_T,createMagneticConstant:()=>w3,createMagneticFluxQuantum:()=>_3,createMap:()=>qw,createMapTransform:()=>bO,createMatrix:()=>W1,createMatrixClass:()=>n1,createMatrixFromColumns:()=>Z1,createMatrixFromFunction:()=>Y1,createMatrixFromRows:()=>G1,createMax:()=>lp,createMaxTransform:()=>wO,createMean:()=>Lp,createMeanTransform:()=>DO,createMedian:()=>CT,createMin:()=>cp,createMinTransform:()=>SO,createMod:()=>Uc,createMode:()=>yD,createMolarMass:()=>aO,createMolarMassC12:()=>oO,createMolarPlanckConstant:()=>j3,createMolarVolume:()=>eO,createMultinomial:()=>XT,createMultiply:()=>Ob,createMultiplyScalar:()=>Tb,createNaN:()=>t3,createNeutronMass:()=>U3,createNode:()=>S2,createNorm:()=>g2,createNot:()=>hw,createNthRoot:()=>Ib,createNthRoots:()=>ZD,createNuclearMagneton:()=>T3,createNull:()=>e3,createNumber:()=>B1,createNumeric:()=>kD,createObjectNode:()=>q2,createOct:()=>CD,createOnes:()=>zw,createOperatorNode:()=>U2,createOr:()=>Hc,createOrTransform:()=>zO,createParenthesisNode:()=>z2,createParse:()=>$2,createParser:()=>eA,createParserClass:()=>K2,createPartitionSelect:()=>OS,createPermutations:()=>jT,createPhi:()=>o3,createPi:()=>n3,createPickRandom:()=>xF,createPinv:()=>oT,createPlanckCharge:()=>cO,createPlanckConstant:()=>y3,createPlanckLength:()=>uO,createPlanckMass:()=>fO,createPlanckTemperature:()=>pO,createPlanckTime:()=>lO,createPolynomialRoot:()=>DA,createPow:()=>UD,createPrint:()=>rp,createPrintTransform:()=>qO,createProd:()=>wD,createProtonMass:()=>L3,createQr:()=>iA,createQuantileSeq:()=>Up,createQuantileSeqTransform:()=>BO,createQuantumOfCirculation:()=>z3,createRandom:()=>bF,createRandomInt:()=>DF,createRange:()=>Jc,createRangeClass:()=>t1,createRangeNode:()=>W2,createRangeTransform:()=>NO,createRationalize:()=>YF,createRe:()=>pw,createReducedPlanckConstant:()=>b3,createRelationalNode:()=>V2,createReplacer:()=>XF,createReshape:()=>Yw,createResize:()=>Hw,createResolve:()=>LF,createResultSet:()=>Iy,createReviver:()=>QF,createRightArithShift:()=>lS,createRightLogShift:()=>pS,createRotate:()=>$w,createRotationMatrix:()=>Qw,createRound:()=>WD,createRow:()=>Kc,createRowTransform:()=>AO,createRydberg:()=>W3,createSQRT1_2:()=>c3,createSQRT2:()=>p3,createSackurTetrode:()=>rO,createSchur:()=>gT,createSec:()=>kN,createSech:()=>LN,createSecondRadiation:()=>tO,createSetCartesian:()=>$N,createSetDifference:()=>QN,createSetDistinct:()=>JN,createSetIntersect:()=>jN,createSetIsSubset:()=>r2,createSetMultiplicity:()=>n2,createSetPowerset:()=>a2,createSetSize:()=>s2,createSetSymDifference:()=>f2,createSetUnion:()=>c2,createSign:()=>kb,createSimplify:()=>IF,createSimplifyConstant:()=>PF,createSimplifyCore:()=>RF,createSin:()=>UN,createSinh:()=>WN,createSize:()=>Kw,createSlu:()=>xA,createSmaller:()=>NS,createSmallerEq:()=>AS,createSolveODE:()=>hD,createSort:()=>IS,createSpaClass:()=>zS,createSparse:()=>XS,createSparseMatrixClass:()=>O1,createSpeedOfLight:()=>g3,createSplitUnit:()=>X1,createSqrt:()=>Rb,createSqrtm:()=>mT,createSquare:()=>qb,createSqueeze:()=>eD,createStd:()=>zp,createStdTransform:()=>TO,createStefanBoltzmann:()=>nO,createStirlingS2:()=>NF,createString:()=>P1,createSubset:()=>jc,createSubsetTransform:()=>EO,createSubtract:()=>zb,createSubtractScalar:()=>sb,createSum:()=>Pp,createSumTransform:()=>OO,createSylvester:()=>dT,createSymbolNode:()=>Y2,createSymbolicEqual:()=>UF,createTan:()=>YN,createTanh:()=>HN,createTau:()=>i3,createThomsonCrossSection:()=>V3,createTo:()=>BD,createTrace:()=>b2,createTranspose:()=>iD,createTrue:()=>KF,createTypeOf:()=>_1,createTyped:()=>By,createUnaryMinus:()=>K1,createUnaryPlus:()=>eb,createUnequal:()=>TS,createUnitClass:()=>GS,createUnitFunction:()=>ZS,createUppercaseE:()=>d3,createUppercasePi:()=>h3,createUsolve:()=>tS,createUsolveAll:()=>oS,createVacuumImpedance:()=>S3,createVariance:()=>qp,createVarianceTransform:()=>RO,createVersion:()=>v3,createWeakMixingAngle:()=>Y3,createWienDisplacement:()=>iO,createXgcd:()=>Vb,createXor:()=>gw,createZeros:()=>uD,createZeta:()=>gD,createZpk2tf:()=>GF});var Kd=li(vc(),1);function He(e){return typeof e=="boolean"?!0:isFinite(e)?e===Math.round(e):!1}var mi=Math.sign||function(e){return e>0?1:e<0?-1:0},iy=Math.log2||function(r){return Math.log(r)/Math.LN2},ay=Math.log10||function(r){return Math.log(r)/Math.LN10},gc=Math.log1p||function(e){return Math.log(e+1)},oy=Math.cbrt||function(r){if(r===0)return r;var t=r<0,n;return t&&(r=-r),isFinite(r)?(n=Math.exp(Math.log(r)/3),n=(r/(n*n)+2*n)/3):n=r,t?-n:n},sy=Math.expm1||function(r){return r>=2e-4||r<=-2e-4?Math.exp(r)-1:r+r*r/2+r*r*r/6};function Ld(e,r,t){var n={2:"0b",8:"0o",16:"0x"},i=n[r],a="";if(t){if(t<1)throw new Error("size must be in greater than 0");if(!He(t))throw new Error("size must be an integer");if(e>2**(t-1)-1||e<-(2**(t-1)))throw new Error("Value must be in range [-2^".concat(t-1,", 2^").concat(t-1,"-1]"));if(!He(e))throw new Error("Value must be an integer");e<0&&(e=e+2**t),a="i".concat(t)}var s="";return e<0&&(e=-e,s="-"),"".concat(s).concat(i).concat(e.toString(r)).concat(a)}function zi(e,r){if(typeof r=="function")return r(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var{notation:t,precision:n,wordSize:i}=qd(r);switch(t){case"fixed":return Ud(e,n);case"exponential":return uy(e,n);case"engineering":return ck(e,n);case"bin":return Ld(e,2,i);case"oct":return Ld(e,8,i);case"hex":return Ld(e,16,i);case"auto":return pk(e,n,r).replace(/((\\.\\d*?)(0+))($|e)/,function(){var a=arguments[2],s=arguments[4];return a!=="."?a+s:s});default:throw new Error('Unknown notation "'+t+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function qd(e){var r="auto",t,n;if(e!==void 0)if(ar(e))t=e;else if(je(e))t=e.toNumber();else if(ua(e))e.precision!==void 0&&(t=ty(e.precision,()=>{throw new Error('Option "precision" must be a number or BigNumber')})),e.wordSize!==void 0&&(n=ty(e.wordSize,()=>{throw new Error('Option "wordSize" must be a number or BigNumber')})),e.notation&&(r=e.notation);else throw new Error("Unsupported type of options, number, BigNumber, or object expected");return{notation:r,precision:t,wordSize:n}}function Qs(e){var r=String(e).toLowerCase().match(/^(-?)(\\d+\\.?\\d*)(e([+-]?\\d+))?$/);if(!r)throw new SyntaxError("Invalid number "+e);var t=r[1],n=r[2],i=parseFloat(r[4]||"0"),a=n.indexOf(".");i+=a!==-1?a-1:n.length-1;var s=n.replace(".","").replace(/^0*/,function(c){return i-=c.length,""}).replace(/0*$/,"").split("").map(function(c){return parseInt(c)});return s.length===0&&(s.push(0),i++),{sign:t,coefficients:s,exponent:i}}function ck(e,r){if(isNaN(e)||!isFinite(e))return String(e);var t=Qs(e),n=xc(t,r),i=n.exponent,a=n.coefficients,s=i%3===0?i:i<0?i-3-i%3:i-i%3;if(ar(r))for(;r>a.length||i-s+1>a.length;)a.push(0);else for(var c=Math.abs(i-s)-(a.length-1),f=0;f0;)u++,o--;var p=a.slice(u).join(""),h=ar(r)&&p.length||p.match(/[1-9]/)?"."+p:"",d=a.slice(0,u).join("")+h+"e"+(i>=0?"+":"")+s.toString();return n.sign+d}function Ud(e,r){if(isNaN(e)||!isFinite(e))return String(e);var t=Qs(e),n=typeof r=="number"?xc(t,t.exponent+1+r):t,i=n.coefficients,a=n.exponent+1,s=a+(r||0);return i.length0?"."+i.join(""):"")+"e"+(a>=0?"+":"")+a}function pk(e,r,t){if(isNaN(e)||!isFinite(e))return String(e);var n=ny(t?.lowerExp,-3),i=ny(t?.upperExp,5),a=Qs(e),s=r?xc(a,r):a;if(s.exponent=i)return uy(e,r);var c=s.coefficients,f=s.exponent;c.length0?f:0;return or){var i=n.splice(r,n.length-r);if(i[0]>=5){var a=r-1;for(n[a]++;n[a]===10;)n.pop(),a===0&&(n.unshift(0),t.exponent++,a++),a--,n[a]++}}return t}function Zs(e){for(var r=[],t=0;t0?!0:e<0?!1:1/e===1/0,n=r>0?!0:r<0?!1:1/r===1/0;return t^n?-e:e}function ty(e,r){if(ar(e))return e;if(je(e))return e.toNumber();r()}function ny(e,r){return ar(e)?e:je(e)?e.toNumber():r}function zd(e,r,t){var n=e.constructor,i=new n(2),a="";if(t){if(t<1)throw new Error("size must be in greater than 0");if(!He(t))throw new Error("size must be an integer");if(e.greaterThan(i.pow(t-1).sub(1))||e.lessThan(i.pow(t-1).mul(-1)))throw new Error("Value must be in range [-2^".concat(t-1,", 2^").concat(t-1,"-1]"));if(!e.isInteger())throw new Error("Value must be an integer");e.lessThan(0)&&(e=e.add(i.pow(t))),a="i".concat(t)}switch(r){case 2:return"".concat(e.toBinary()).concat(a);case 8:return"".concat(e.toOctal()).concat(a);case 16:return"".concat(e.toHexadecimal()).concat(a);default:throw new Error("Base ".concat(r," not supported "))}}function gy(e,r){if(typeof r=="function")return r(e);if(!e.isFinite())return e.isNaN()?"NaN":e.gt(0)?"Infinity":"-Infinity";var{notation:t,precision:n,wordSize:i}=qd(r);switch(t){case"fixed":return dk(e,n);case"exponential":return dy(e,n);case"engineering":return hk(e,n);case"bin":return zd(e,2,i);case"oct":return zd(e,8,i);case"hex":return zd(e,16,i);case"auto":{var a=vy(r?.lowerExp,-3),s=vy(r?.upperExp,5);if(e.isZero())return"0";var c,f=e.toSignificantDigits(n),o=f.e;return o>=a&&o=0?"+":"")+n.toString()}function dy(e,r){return r!==void 0?e.toExponential(r-1):e.toExponential()}function dk(e,r){return e.toFixed(r)}function vy(e,r){return ar(e)?e:je(e)?e.toNumber():r}function yy(e,r){var t=e.length-r.length,n=e.length;return e.substring(t,n)===r}function lr(e,r){var t=vk(e,r);return r&&typeof r=="object"&&"truncate"in r&&t.length>r.truncate?t.substring(0,r.truncate-3)+"...":t}function vk(e,r){if(typeof e=="number")return zi(e,r);if(je(e))return gy(e,r);if(gk(e))return!r||r.fraction!=="decimal"?e.s*e.n+"/"+e.d:e.toString();if(Array.isArray(e))return by(e,r);if(yt(e))return Jo(e);if(typeof e=="function")return e.syntax?String(e.syntax):"function";if(e&&typeof e=="object"){if(typeof e.format=="function")return e.format(r);if(e&&e.toString(r)!=={}.toString())return e.toString(r);var t=Object.keys(e).map(n=>Jo(n)+": "+lr(e[n],r));return"{"+t.join(", ")+"}"}return String(e)}function Jo(e){for(var r=String(e),t="",n=0;n/g,">"),r}function by(e,r){if(Array.isArray(e)){for(var t="[",n=e.length,i=0;ir?1:-1}function pr(e,r,t){if(!(this instanceof pr))throw new SyntaxError("Constructor must be called with the new operator");this.actual=e,this.expected=r,this.relation=t,this.message="Dimension mismatch ("+(Array.isArray(e)?"["+e.join(", ")+"]":e)+" "+(this.relation||"!=")+" "+(Array.isArray(r)?"["+r.join(", ")+"]":r)+")",this.stack=new Error().stack}pr.prototype=new RangeError;pr.prototype.constructor=RangeError;pr.prototype.name="DimensionError";pr.prototype.isDimensionError=!0;function Xt(e,r,t){if(!(this instanceof Xt))throw new SyntaxError("Constructor must be called with the new operator");this.index=e,arguments.length<3?(this.min=0,this.max=r):(this.min=r,this.max=t),this.min!==void 0&&this.index=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=new Error().stack}Xt.prototype=new RangeError;Xt.prototype.constructor=RangeError;Xt.prototype.name="IndexError";Xt.prototype.isIndexError=!0;function or(e){for(var r=[];Array.isArray(e);)r.push(e.length),e=e[0];return r}function wy(e,r,t){var n,i=e.length;if(i!==r[t])throw new pr(i,r[t]);if(t")}function Vd(e,r){var t=r.length===0;if(t){if(Array.isArray(e))throw new pr(e.length,0)}else wy(e,r,0)}function df(e,r){var t=e.isMatrix?e._size:or(e),n=r._sourceSize;n.forEach((i,a)=>{if(i!==null&&i!==t[a])throw new pr(i,t[a])})}function Xr(e,r){if(e!==void 0){if(!ar(e)||!He(e))throw new TypeError("Index must be an integer (value: "+e+")");if(e<0||typeof r=="number"&&e>=r)throw new Xt(e,r)}}function Ko(e){for(var r=0;r=0,f=r%t===0;if(c)if(f)n[a]=-r/t;else throw new Error("Could not replace wildcard, since "+r+" is no multiple of "+-t);return n}function Dy(e){return e.reduce((r,t)=>r*t,1)}function xk(e,r){for(var t=e,n,i=r.length-1;i>0;i--){var a=r[i];n=[];for(var s=t.length/a,c=0;cr.test(t))}function Yd(e,r){return Array.prototype.join.call(e,r)}function Ia(e){if(!Array.isArray(e))throw new TypeError("Array input expected");if(e.length===0)return e;var r=[],t=0;r[0]={value:e[0],identifier:0};for(var n=1;n1)return e.slice(1).reduce(function(t,n){return Ay(t,n,r,0)},e[0]);throw new Error("Wrong number of arguments in function concat")}function yk(){for(var e=arguments.length,r=new Array(e),t=0;th.length),i=Math.max(...n),a=new Array(i).fill(null),s=0;sa[u]&&(a[u]=c[o])}for(var p=0;p1||e[i]>r[a])throw new Error("shape missmatch: missmatch is found in arg with shape (".concat(e,") not possible to broadcast dimension ").concat(n," with size ").concat(e[i]," to size ").concat(r[a]))}}function $d(e,r){var t=or(e);if(Ui(t,r))return e;xf(t,r);var n=yk(t,r),i=n.length,a=[...Array(i-t.length).fill(1),...t],s=wk(e);t.length!Sk(a)).every(a=>t[a]!==void 0);if(!n){var i=r.filter(a=>t[a]===void 0);throw new Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(i.map(a=>'"'.concat(a,'"')).join(", "),"."))}}function Sk(e){return e&&e[0]==="?"}function Zd(e){return e&&e[0]==="?"?e.slice(1):e}function gt(e,r){if(_y(e)&&Cy(e,r))return e[r];throw typeof e[r]=="function"&&Nc(e,r)?new Error('Cannot access method "'+r+'" as a property'):new Error('No access to property "'+r+'"')}function la(e,r,t){if(_y(e)&&Cy(e,r))return e[r]=t,t;throw new Error('No access to property "'+r+'"')}function Ey(e,r){return r in e}function Cy(e,r){return!e||typeof e!="object"?!1:$e(Nk,r)?!0:!(r in Object.prototype||r in Function.prototype)}function My(e,r){if(!Nc(e,r))throw new Error('No access to method "'+r+'"');return e[r]}function Nc(e,r){return e==null||typeof e[r]!="function"||$e(e,r)&&Object.getPrototypeOf&&r in Object.getPrototypeOf(e)?!1:$e(Ak,r)?!0:!(r in Object.prototype||r in Function.prototype)}function _y(e){return typeof e=="object"&&e&&e.constructor===Object}var Nk={length:!0,name:!0},Ak={toString:!0,valueOf:!0,toLocaleString:!0};var es=class{constructor(r){this.wrappedObject=r,this[Symbol.iterator]=this.entries}keys(){return Object.keys(this.wrappedObject).values()}get(r){return gt(this.wrappedObject,r)}set(r,t){return la(this.wrappedObject,r,t),this}has(r){return Ey(this.wrappedObject,r)}entries(){return Ty(this.keys(),r=>[r,this.get(r)])}forEach(r){for(var t of this.keys())r(this.get(t),t,this)}delete(r){delete this.wrappedObject[r]}clear(){for(var r of this.keys())this.delete(r)}get size(){return Object.keys(this.wrappedObject).length}},js=class{constructor(r,t,n){this.a=r,this.b=t,this.bKeys=n,this[Symbol.iterator]=this.entries}get(r){return this.bKeys.has(r)?this.b.get(r):this.a.get(r)}set(r,t){return this.bKeys.has(r)?this.b.set(r,t):this.a.set(r,t),this}has(r){return this.b.has(r)||this.a.has(r)}keys(){return new Set([...this.a.keys(),...this.b.keys()])[Symbol.iterator]()}entries(){return Ty(this.keys(),r=>[r,this.get(r)])}forEach(r){for(var t of this.keys())r(this.get(t),t,this)}delete(r){return this.bKeys.has(r)?this.b.delete(r):this.a.delete(r)}clear(){this.a.clear(),this.b.clear()}get size(){return[...this.keys()].length}};function Ty(e,r){return{next:()=>{var t=e.next();return t.done?t:{value:r(t.value),done:!1}}}}function vo(){return new Map}function Pa(e){if(!e)return vo();if(Qd(e))return e;if(ua(e))return new es(e);throw new Error("createMap can create maps from objects or Maps")}function Fy(e){if(e instanceof es)return e.wrappedObject;var r={};for(var t of e.keys()){var n=e.get(t);la(r,t,n)}return r}function Qd(e){return e?e instanceof Map||e instanceof es||typeof e.set=="function"&&typeof e.get=="function"&&typeof e.keys=="function"&&typeof e.has=="function":!1}var Oy=function(){return Oy=Kd.default.create,Kd.default},Ek=["?BigNumber","?Complex","?DenseMatrix","?Fraction"],By=T("typed",Ek,function(r){var{BigNumber:t,Complex:n,DenseMatrix:i,Fraction:a}=r,s=Oy();return s.clear(),s.addTypes([{name:"number",test:ar},{name:"Complex",test:Gt},{name:"BigNumber",test:je},{name:"Fraction",test:Xn},{name:"Unit",test:qt},{name:"identifier",test:c=>yt&&/^(?:[A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])(?:[0-9A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDF00-\\uDF1F\\uDF2D-\\uDF40\\uDF42-\\uDF49\\uDF50-\\uDF75\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF]|\\uD801[\\uDC00-\\uDC9D\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDD70-\\uDD7A\\uDD7C-\\uDD8A\\uDD8C-\\uDD92\\uDD94\\uDD95\\uDD97-\\uDDA1\\uDDA3-\\uDDB1\\uDDB3-\\uDDB9\\uDDBB\\uDDBC\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67\\uDF80-\\uDF85\\uDF87-\\uDFB0\\uDFB2-\\uDFBA]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00\\uDE10-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE4\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDD00-\\uDD23\\uDE80-\\uDEA9\\uDEB0\\uDEB1\\uDF00-\\uDF1C\\uDF27\\uDF30-\\uDF45\\uDF70-\\uDF81\\uDFB0-\\uDFC4\\uDFE0-\\uDFF6]|\\uD804[\\uDC03-\\uDC37\\uDC71\\uDC72\\uDC75\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD44\\uDD47\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE3F\\uDE40\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD32\\uDD50-\\uDD52\\uDD55\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E\\uDF25-\\uDF2A]|\\uD838[\\uDC30-\\uDC6D\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDCD0-\\uDCEB\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])*$/.test(c)},{name:"string",test:yt},{name:"Chain",test:Hs},{name:"Array",test:Ar},{name:"Matrix",test:Ge},{name:"DenseMatrix",test:Ba},{name:"SparseMatrix",test:Jn},{name:"Range",test:po},{name:"Index",test:sa},{name:"boolean",test:nc},{name:"ResultSet",test:ic},{name:"Help",test:Ys},{name:"function",test:ac},{name:"Date",test:oc},{name:"RegExp",test:sc},{name:"null",test:uc},{name:"undefined",test:fc},{name:"AccessorNode",test:Sn},{name:"ArrayNode",test:$t},{name:"AssignmentNode",test:lc},{name:"BlockNode",test:cc},{name:"ConditionalNode",test:pc},{name:"ConstantNode",test:yr},{name:"FunctionNode",test:fn},{name:"FunctionAssignmentNode",test:pi},{name:"IndexNode",test:kn},{name:"Node",test:Sr},{name:"ObjectNode",test:fa},{name:"OperatorNode",test:ut},{name:"ParenthesisNode",test:Zt},{name:"RangeNode",test:mc},{name:"RelationalNode",test:hc},{name:"SymbolNode",test:rt},{name:"Map",test:Qd},{name:"Object",test:ua}]),s.addConversions([{from:"number",to:"BigNumber",convert:function(f){if(t||Xd(f),fy(f)>15)throw new TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+f+"). Use function bignumber(x) to convert to BigNumber.");return new t(f)}},{from:"number",to:"Complex",convert:function(f){return n||Ac(f),new n(f,0)}},{from:"BigNumber",to:"Complex",convert:function(f){return n||Ac(f),new n(f.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(f){throw new TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(f){return n||Ac(f),new n(f.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(f){a||Jd(f);var o=new a(f);if(o.valueOf()!==f)throw new TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+f+"). Use function fraction(x) to convert to Fraction.");return o}},{from:"string",to:"number",convert:function(f){var o=Number(f);if(isNaN(o))throw new Error('Cannot convert "'+f+'" to a number');return o}},{from:"string",to:"BigNumber",convert:function(f){t||Xd(f);try{return new t(f)}catch{throw new Error('Cannot convert "'+f+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(f){a||Jd(f);try{return new a(f)}catch{throw new Error('Cannot convert "'+f+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(f){n||Ac(f);try{return new n(f)}catch{throw new Error('Cannot convert "'+f+'" to Complex')}}},{from:"boolean",to:"number",convert:function(f){return+f}},{from:"boolean",to:"BigNumber",convert:function(f){return t||Xd(f),new t(+f)}},{from:"boolean",to:"Fraction",convert:function(f){return a||Jd(f),new a(+f)}},{from:"boolean",to:"string",convert:function(f){return String(f)}},{from:"Array",to:"Matrix",convert:function(f){return i||Ck(),new i(f)}},{from:"Matrix",to:"Array",convert:function(f){return f.valueOf()}}]),s.onMismatch=(c,f,o)=>{var u=s.createError(c,f,o);if(["wrongType","mismatch"].includes(u.data.category)&&f.length===1&&bt(f[0])&&o.some(h=>!h.params.includes(","))){var p=new TypeError("Function '".concat(c,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(c,")'."));throw p.data=u.data,p}throw u},s.onMismatch=(c,f,o)=>{var u=s.createError(c,f,o);if(["wrongType","mismatch"].includes(u.data.category)&&f.length===1&&bt(f[0])&&o.some(h=>!h.params.includes(","))){var p=new TypeError("Function '".concat(c,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(c,")'."));throw p.data=u.data,p}throw u},s});function Xd(e){throw new Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function Ac(e){throw new Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function Ck(){throw new Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}function Jd(e){throw new Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}var Mk="ResultSet",_k=[],Iy=T(Mk,_k,()=>{function e(r){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");this.entries=r||[]}return e.prototype.type="ResultSet",e.prototype.isResultSet=!0,e.prototype.valueOf=function(){return this.entries},e.prototype.toString=function(){return"["+this.entries.join(", ")+"]"},e.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},e.fromJSON=function(r){return new e(r.entries)},e},{isClass:!0});var eu=9e15,bo=1e9,jd="0123456789abcdef",Cc="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Mc="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",ev={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-eu,maxE:eu,crypto:!1},Ly,ka,Er=!0,Tc="[DecimalError] ",yo=Tc+"Invalid argument: ",qy=Tc+"Precision limit exceeded",Uy=Tc+"crypto unavailable",zy="[object Decimal]",mn=Math.floor,Jt=Math.pow,Tk=/^0b([01]+(\\.[01]*)?|\\.[01]+)(p[+-]?\\d+)?$/i,Fk=/^0x([0-9a-f]+(\\.[0-9a-f]*)?|\\.[0-9a-f]+)(p[+-]?\\d+)?$/i,Ok=/^0o([0-7]+(\\.[0-7]*)?|\\.[0-7]+)(p[+-]?\\d+)?$/i,Wy=/^(\\d+(\\.\\d*)?|\\.\\d+)(e[+-]?\\d+)?$/i,Yi=1e7,br=7,Bk=9007199254740991,Ik=Cc.length-1,rv=Mc.length-1,Ue={toStringTag:zy};Ue.absoluteValue=Ue.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),dr(e)};Ue.ceil=function(){return dr(new this.constructor(this),this.e+1,2)};Ue.clampedTo=Ue.clamp=function(e,r){var t,n=this,i=n.constructor;if(e=new i(e),r=new i(r),!e.s||!r.s)return new i(NaN);if(e.gt(r))throw Error(yo+r);return t=n.cmp(e),t<0?e:n.cmp(r)>0?r:new i(n)};Ue.comparedTo=Ue.cmp=function(e){var r,t,n,i,a=this,s=a.d,c=(e=new a.constructor(e)).d,f=a.s,o=e.s;if(!s||!c)return!f||!o?NaN:f!==o?f:s===c?0:!s^f<0?1:-1;if(!s[0]||!c[0])return s[0]?f:c[0]?-o:0;if(f!==o)return f;if(a.e!==e.e)return a.e>e.e^f<0?1:-1;for(n=s.length,i=c.length,r=0,t=nc[r]^f<0?1:-1;return n===i?0:n>i^f<0?1:-1};Ue.cosine=Ue.cos=function(){var e,r,t=this,n=t.constructor;return t.d?t.d[0]?(e=n.precision,r=n.rounding,n.precision=e+Math.max(t.e,t.sd())+br,n.rounding=1,t=Pk(n,$y(n,t)),n.precision=e,n.rounding=r,dr(ka==2||ka==3?t.neg():t,e,r,!0)):new n(1):new n(NaN)};Ue.cubeRoot=Ue.cbrt=function(){var e,r,t,n,i,a,s,c,f,o,u=this,p=u.constructor;if(!u.isFinite()||u.isZero())return new p(u);for(Er=!1,a=u.s*Jt(u.s*u,1/3),!a||Math.abs(a)==1/0?(t=ln(u.d),e=u.e,(a=(e-t.length+1)%3)&&(t+=a==1||a==-2?"0":"00"),a=Jt(t,1/3),e=mn((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new p(t),n.s=u.s):n=new p(a.toString()),s=(e=p.precision)+3;;)if(c=n,f=c.times(c).times(c),o=f.plus(u),n=xt(o.plus(u).times(c),o.plus(f),s+2,1),ln(c.d).slice(0,s)===(t=ln(n.d)).slice(0,s))if(t=t.slice(s-3,s+1),t=="9999"||!i&&t=="4999"){if(!i&&(dr(c,e+1,0),c.times(c).times(c).eq(u))){n=c;break}s+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(dr(n,e+1,1),r=!n.times(n).times(n).eq(u));break}return Er=!0,dr(n,e,p.rounding,r)};Ue.decimalPlaces=Ue.dp=function(){var e,r=this.d,t=NaN;if(r){if(e=r.length-1,t=(e-mn(this.e/br))*br,e=r[e],e)for(;e%10==0;e/=10)t--;t<0&&(t=0)}return t};Ue.dividedBy=Ue.div=function(e){return xt(this,new this.constructor(e))};Ue.dividedToIntegerBy=Ue.divToInt=function(e){var r=this,t=r.constructor;return dr(xt(r,new t(e),0,1,1),t.precision,t.rounding)};Ue.equals=Ue.eq=function(e){return this.cmp(e)===0};Ue.floor=function(){return dr(new this.constructor(this),this.e+1,3)};Ue.greaterThan=Ue.gt=function(e){return this.cmp(e)>0};Ue.greaterThanOrEqualTo=Ue.gte=function(e){var r=this.cmp(e);return r==1||r===0};Ue.hyperbolicCosine=Ue.cosh=function(){var e,r,t,n,i,a=this,s=a.constructor,c=new s(1);if(!a.isFinite())return new s(a.s?1/0:NaN);if(a.isZero())return c;t=s.precision,n=s.rounding,s.precision=t+Math.max(a.e,a.sd())+4,s.rounding=1,i=a.d.length,i<32?(e=Math.ceil(i/3),r=(1/Oc(4,e)).toString()):(e=16,r="2.3283064365386962890625e-10"),a=ru(s,1,a.times(r),new s(1),!0);for(var f,o=e,u=new s(8);o--;)f=a.times(a),a=c.minus(f.times(u.minus(f.times(u))));return dr(a,s.precision=t,s.rounding=n,!0)};Ue.hyperbolicSine=Ue.sinh=function(){var e,r,t,n,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(r=a.precision,t=a.rounding,a.precision=r+Math.max(i.e,i.sd())+4,a.rounding=1,n=i.d.length,n<3)i=ru(a,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/Oc(5,e)),i=ru(a,2,i,i,!0);for(var s,c=new a(5),f=new a(16),o=new a(20);e--;)s=i.times(i),i=i.times(c.plus(s.times(f.times(s).plus(o))))}return a.precision=r,a.rounding=t,dr(i,r,t,!0)};Ue.hyperbolicTangent=Ue.tanh=function(){var e,r,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+7,n.rounding=1,xt(t.sinh(),t.cosh(),n.precision=e,n.rounding=r)):new n(t.s)};Ue.inverseCosine=Ue.acos=function(){var e,r=this,t=r.constructor,n=r.abs().cmp(1),i=t.precision,a=t.rounding;return n!==-1?n===0?r.isNeg()?Vi(t,i,a):new t(0):new t(NaN):r.isZero()?Vi(t,i+4,a).times(.5):(t.precision=i+6,t.rounding=1,r=r.asin(),e=Vi(t,i+4,a).times(.5),t.precision=i,t.rounding=a,e.minus(r))};Ue.inverseHyperbolicCosine=Ue.acosh=function(){var e,r,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(e=n.precision,r=n.rounding,n.precision=e+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,Er=!1,t=t.times(t).minus(1).sqrt().plus(t),Er=!0,n.precision=e,n.rounding=r,t.ln()):new n(t)};Ue.inverseHyperbolicSine=Ue.asinh=function(){var e,r,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,Er=!1,t=t.times(t).plus(1).sqrt().plus(t),Er=!0,n.precision=e,n.rounding=r,t.ln())};Ue.inverseHyperbolicTangent=Ue.atanh=function(){var e,r,t,n,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,r=a.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?dr(new a(i),e,r,!0):(a.precision=t=n-i.e,i=xt(i.plus(1),new a(1).minus(i),t+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=r,i.times(.5))):new a(NaN)};Ue.inverseSine=Ue.asin=function(){var e,r,t,n,i=this,a=i.constructor;return i.isZero()?new a(i):(r=i.abs().cmp(1),t=a.precision,n=a.rounding,r!==-1?r===0?(e=Vi(a,t+4,n).times(.5),e.s=i.s,e):new a(NaN):(a.precision=t+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=t,a.rounding=n,i.times(2)))};Ue.inverseTangent=Ue.atan=function(){var e,r,t,n,i,a,s,c,f,o=this,u=o.constructor,p=u.precision,h=u.rounding;if(o.isFinite()){if(o.isZero())return new u(o);if(o.abs().eq(1)&&p+4<=rv)return s=Vi(u,p+4,h).times(.25),s.s=o.s,s}else{if(!o.s)return new u(NaN);if(p+4<=rv)return s=Vi(u,p+4,h).times(.5),s.s=o.s,s}for(u.precision=c=p+10,u.rounding=1,t=Math.min(28,c/br+2|0),e=t;e;--e)o=o.div(o.times(o).plus(1).sqrt().plus(1));for(Er=!1,r=Math.ceil(c/br),n=1,f=o.times(o),s=new u(o),i=o;e!==-1;)if(i=i.times(f),a=s.minus(i.div(n+=2)),i=i.times(f),s=a.plus(i.div(n+=2)),s.d[r]!==void 0)for(e=r;s.d[e]===a.d[e]&&e--;);return t&&(s=s.times(2<this.d.length-2};Ue.isNaN=function(){return!this.s};Ue.isNegative=Ue.isNeg=function(){return this.s<0};Ue.isPositive=Ue.isPos=function(){return this.s>0};Ue.isZero=function(){return!!this.d&&this.d[0]===0};Ue.lessThan=Ue.lt=function(e){return this.cmp(e)<0};Ue.lessThanOrEqualTo=Ue.lte=function(e){return this.cmp(e)<1};Ue.logarithm=Ue.log=function(e){var r,t,n,i,a,s,c,f,o=this,u=o.constructor,p=u.precision,h=u.rounding,d=5;if(e==null)e=new u(10),r=!0;else{if(e=new u(e),t=e.d,e.s<0||!t||!t[0]||e.eq(1))return new u(NaN);r=e.eq(10)}if(t=o.d,o.s<0||!t||!t[0]||o.eq(1))return new u(t&&!t[0]?-1/0:o.s!=1?NaN:t?0:1/0);if(r)if(t.length>1)a=!0;else{for(i=t[0];i%10===0;)i/=10;a=i!==1}if(Er=!1,c=p+d,s=xo(o,c),n=r?_c(u,c+10):xo(e,c),f=xt(s,n,c,1),yf(f.d,i=p,h))do if(c+=10,s=xo(o,c),n=r?_c(u,c+10):xo(e,c),f=xt(s,n,c,1),!a){+ln(f.d).slice(i+1,i+15)+1==1e14&&(f=dr(f,p+1,0));break}while(yf(f.d,i+=10,h));return Er=!0,dr(f,p,h)};Ue.minus=Ue.sub=function(e){var r,t,n,i,a,s,c,f,o,u,p,h,d=this,x=d.constructor;if(e=new x(e),!d.d||!e.d)return!d.s||!e.s?e=new x(NaN):d.d?e.s=-e.s:e=new x(e.d||d.s!==e.s?d:NaN),e;if(d.s!=e.s)return e.s=-e.s,d.plus(e);if(o=d.d,h=e.d,c=x.precision,f=x.rounding,!o[0]||!h[0]){if(h[0])e.s=-e.s;else if(o[0])e=new x(d);else return new x(f===3?-0:0);return Er?dr(e,c,f):e}if(t=mn(e.e/br),u=mn(d.e/br),o=o.slice(),a=u-t,a){for(p=a<0,p?(r=o,a=-a,s=h.length):(r=h,t=u,s=o.length),n=Math.max(Math.ceil(c/br),s)+2,a>n&&(a=n,r.length=1),r.reverse(),n=a;n--;)r.push(0);r.reverse()}else{for(n=o.length,s=h.length,p=n0;--n)o[s++]=0;for(n=h.length;n>a;){if(o[--n]s?a+1:s+1,i>s&&(i=s,t.length=1),t.reverse();i--;)t.push(0);t.reverse()}for(s=o.length,i=u.length,s-i<0&&(i=s,t=u,u=o,o=t),r=0;i;)r=(o[--i]=o[i]+u[i]+r)/Yi|0,o[i]%=Yi;for(r&&(o.unshift(r),++n),s=o.length;o[--s]==0;)o.pop();return e.d=o,e.e=Fc(o,n),Er?dr(e,c,f):e};Ue.precision=Ue.sd=function(e){var r,t=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(yo+e);return t.d?(r=Vy(t.d),e&&t.e+1>r&&(r=t.e+1)):r=NaN,r};Ue.round=function(){var e=this,r=e.constructor;return dr(new r(e),e.e+1,r.rounding)};Ue.sine=Ue.sin=function(){var e,r,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+Math.max(t.e,t.sd())+br,n.rounding=1,t=Rk(n,$y(n,t)),n.precision=e,n.rounding=r,dr(ka>2?t.neg():t,e,r,!0)):new n(NaN)};Ue.squareRoot=Ue.sqrt=function(){var e,r,t,n,i,a,s=this,c=s.d,f=s.e,o=s.s,u=s.constructor;if(o!==1||!c||!c[0])return new u(!o||o<0&&(!c||c[0])?NaN:c?s:1/0);for(Er=!1,o=Math.sqrt(+s),o==0||o==1/0?(r=ln(c),(r.length+f)%2==0&&(r+="0"),o=Math.sqrt(r),f=mn((f+1)/2)-(f<0||f%2),o==1/0?r="5e"+f:(r=o.toExponential(),r=r.slice(0,r.indexOf("e")+1)+f),n=new u(r)):n=new u(o.toString()),t=(f=u.precision)+3;;)if(a=n,n=a.plus(xt(s,a,t+2,1)).times(.5),ln(a.d).slice(0,t)===(r=ln(n.d)).slice(0,t))if(r=r.slice(t-3,t+1),r=="9999"||!i&&r=="4999"){if(!i&&(dr(a,f+1,0),a.times(a).eq(s))){n=a;break}t+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(dr(n,f+1,1),e=!n.times(n).eq(s));break}return Er=!0,dr(n,f,u.rounding,e)};Ue.tangent=Ue.tan=function(){var e,r,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+10,n.rounding=1,t=t.sin(),t.s=1,t=xt(t,new n(1).minus(t.times(t)).sqrt(),e+10,0),n.precision=e,n.rounding=r,dr(ka==2||ka==4?t.neg():t,e,r,!0)):new n(NaN)};Ue.times=Ue.mul=function(e){var r,t,n,i,a,s,c,f,o,u=this,p=u.constructor,h=u.d,d=(e=new p(e)).d;if(e.s*=u.s,!h||!h[0]||!d||!d[0])return new p(!e.s||h&&!h[0]&&!d||d&&!d[0]&&!h?NaN:!h||!d?e.s/0:e.s*0);for(t=mn(u.e/br)+mn(e.e/br),f=h.length,o=d.length,f=0;){for(r=0,i=f+n;i>n;)c=a[i]+d[n]*h[i-n-1]+r,a[i--]=c%Yi|0,r=c/Yi|0;a[i]=(a[i]+r)%Yi|0}for(;!a[--s];)a.pop();return r?++t:a.shift(),e.d=a,e.e=Fc(a,t),Er?dr(e,p.precision,p.rounding):e};Ue.toBinary=function(e,r){return iv(this,2,e,r)};Ue.toDecimalPlaces=Ue.toDP=function(e,r){var t=this,n=t.constructor;return t=new n(t),e===void 0?t:(Ln(e,0,bo),r===void 0?r=n.rounding:Ln(r,0,8),dr(t,e+t.e+1,r))};Ue.toExponential=function(e,r){var t,n=this,i=n.constructor;return e===void 0?t=ca(n,!0):(Ln(e,0,bo),r===void 0?r=i.rounding:Ln(r,0,8),n=dr(new i(n),e+1,r),t=ca(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+t:t};Ue.toFixed=function(e,r){var t,n,i=this,a=i.constructor;return e===void 0?t=ca(i):(Ln(e,0,bo),r===void 0?r=a.rounding:Ln(r,0,8),n=dr(new a(i),e+i.e+1,r),t=ca(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+t:t};Ue.toFraction=function(e){var r,t,n,i,a,s,c,f,o,u,p,h,d=this,x=d.d,v=d.constructor;if(!x)return new v(d);if(o=t=new v(1),n=f=new v(0),r=new v(n),a=r.e=Vy(x)-d.e-1,s=a%br,r.d[0]=Jt(10,s<0?br+s:s),e==null)e=a>0?r:o;else{if(c=new v(e),!c.isInt()||c.lt(o))throw Error(yo+c);e=c.gt(r)?a>0?r:o:c}for(Er=!1,c=new v(ln(x)),u=v.precision,v.precision=a=x.length*br*2;p=xt(c,r,0,1,1),i=t.plus(p.times(n)),i.cmp(e)!=1;)t=n,n=i,i=o,o=f.plus(p.times(i)),f=i,i=r,r=c.minus(p.times(i)),c=i;return i=xt(e.minus(t),n,0,1,1),f=f.plus(i.times(o)),t=t.plus(i.times(n)),f.s=o.s=d.s,h=xt(o,n,a,1).minus(d).abs().cmp(xt(f,t,a,1).minus(d).abs())<1?[o,n]:[f,t],v.precision=u,Er=!0,h};Ue.toHexadecimal=Ue.toHex=function(e,r){return iv(this,16,e,r)};Ue.toNearest=function(e,r){var t=this,n=t.constructor;if(t=new n(t),e==null){if(!t.d)return t;e=new n(1),r=n.rounding}else{if(e=new n(e),r===void 0?r=n.rounding:Ln(r,0,8),!t.d)return e.s?t:e;if(!e.d)return e.s&&(e.s=t.s),e}return e.d[0]?(Er=!1,t=xt(t,e,0,r,1).times(e),Er=!0,dr(t)):(e.s=t.s,t=e),t};Ue.toNumber=function(){return+this};Ue.toOctal=function(e,r){return iv(this,8,e,r)};Ue.toPower=Ue.pow=function(e){var r,t,n,i,a,s,c=this,f=c.constructor,o=+(e=new f(e));if(!c.d||!e.d||!c.d[0]||!e.d[0])return new f(Jt(+c,o));if(c=new f(c),c.eq(1))return c;if(n=f.precision,a=f.rounding,e.eq(1))return dr(c,n,a);if(r=mn(e.e/br),r>=e.d.length-1&&(t=o<0?-o:o)<=Bk)return i=Yy(f,c,t,n),e.s<0?new f(1).div(i):dr(i,n,a);if(s=c.s,s<0){if(rf.maxE+1||r0?s/0:0):(Er=!1,f.rounding=c.s=1,t=Math.min(12,(r+"").length),i=tv(e.times(xo(c,n+t)),n),i.d&&(i=dr(i,n+5,1),yf(i.d,n,a)&&(r=n+10,i=dr(tv(e.times(xo(c,r+t)),r),r+5,1),+ln(i.d).slice(n+1,n+15)+1==1e14&&(i=dr(i,n+1,0)))),i.s=s,Er=!0,f.rounding=a,dr(i,n,a))};Ue.toPrecision=function(e,r){var t,n=this,i=n.constructor;return e===void 0?t=ca(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(Ln(e,1,bo),r===void 0?r=i.rounding:Ln(r,0,8),n=dr(new i(n),e,r),t=ca(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+t:t};Ue.toSignificantDigits=Ue.toSD=function(e,r){var t=this,n=t.constructor;return e===void 0?(e=n.precision,r=n.rounding):(Ln(e,1,bo),r===void 0?r=n.rounding:Ln(r,0,8)),dr(new n(t),e,r)};Ue.toString=function(){var e=this,r=e.constructor,t=ca(e,e.e<=r.toExpNeg||e.e>=r.toExpPos);return e.isNeg()&&!e.isZero()?"-"+t:t};Ue.truncated=Ue.trunc=function(){return dr(new this.constructor(this),this.e+1,1)};Ue.valueOf=Ue.toJSON=function(){var e=this,r=e.constructor,t=ca(e,e.e<=r.toExpNeg||e.e>=r.toExpPos);return e.isNeg()?"-"+t:t};function ln(e){var r,t,n,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,r=1;rt)throw Error(yo+e)}function yf(e,r,t,n){var i,a,s,c;for(a=e[0];a>=10;a/=10)--r;return--r<0?(r+=br,i=0):(i=Math.ceil((r+1)/br),r%=br),a=Jt(10,br-r),c=e[i]%a|0,n==null?r<3?(r==0?c=c/100|0:r==1&&(c=c/10|0),s=t<4&&c==99999||t>3&&c==49999||c==5e4||c==0):s=(t<4&&c+1==a||t>3&&c+1==a/2)&&(e[i+1]/a/100|0)==Jt(10,r-2)-1||(c==a/2||c==0)&&(e[i+1]/a/100|0)==0:r<4?(r==0?c=c/1e3|0:r==1?c=c/100|0:r==2&&(c=c/10|0),s=(n||t<4)&&c==9999||!n&&t>3&&c==4999):s=((n||t<4)&&c+1==a||!n&&t>3&&c+1==a/2)&&(e[i+1]/a/1e3|0)==Jt(10,r-3)-1,s}function Ec(e,r,t){for(var n,i=[0],a,s=0,c=e.length;st-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/t|0,i[n]%=t)}return i.reverse()}function Pk(e,r){var t,n,i;if(r.isZero())return r;n=r.d.length,n<32?(t=Math.ceil(n/3),i=(1/Oc(4,t)).toString()):(t=16,i="2.3283064365386962890625e-10"),e.precision+=t,r=ru(e,1,r.times(i),new e(1));for(var a=t;a--;){var s=r.times(r);r=s.times(s).minus(s).times(8).plus(1)}return e.precision-=t,r}var xt=function(){function e(n,i,a){var s,c=0,f=n.length;for(n=n.slice();f--;)s=n[f]*i+c,n[f]=s%a|0,c=s/a|0;return c&&n.unshift(c),n}function r(n,i,a,s){var c,f;if(a!=s)f=a>s?1:-1;else for(c=f=0;ci[c]?1:-1;break}return f}function t(n,i,a,s){for(var c=0;a--;)n[a]-=c,c=n[a]1;)n.shift()}return function(n,i,a,s,c,f){var o,u,p,h,d,x,v,y,w,C,b,A,E,S,O,F,M,_,k,L,Y=n.constructor,$=n.s==i.s?1:-1,V=n.d,q=i.d;if(!V||!V[0]||!q||!q[0])return new Y(!n.s||!i.s||(V?q&&V[0]==q[0]:!q)?NaN:V&&V[0]==0||!q?$*0:$/0);for(f?(d=1,u=n.e-i.e):(f=Yi,d=br,u=mn(n.e/d)-mn(i.e/d)),k=q.length,M=V.length,w=new Y($),C=w.d=[],p=0;q[p]==(V[p]||0);p++);if(q[p]>(V[p]||0)&&u--,a==null?(S=a=Y.precision,s=Y.rounding):c?S=a+(n.e-i.e)+1:S=a,S<0)C.push(1),x=!0;else{if(S=S/d+2|0,p=0,k==1){for(h=0,q=q[0],S++;(p1&&(q=e(q,h,f),V=e(V,h,f),k=q.length,M=V.length),F=k,b=V.slice(0,k),A=b.length;A=f/2&&++_;do h=0,o=r(q,b,k,A),o<0?(E=b[0],k!=A&&(E=E*f+(b[1]||0)),h=E/_|0,h>1?(h>=f&&(h=f-1),v=e(q,h,f),y=v.length,A=b.length,o=r(v,b,y,A),o==1&&(h--,t(v,k=10;h/=10)p++;w.e=p+u*d-1,dr(w,c?a+w.e+1:a,s,x)}return w}}();function dr(e,r,t,n){var i,a,s,c,f,o,u,p,h,d=e.constructor;e:if(r!=null){if(p=e.d,!p)return e;for(i=1,c=p[0];c>=10;c/=10)i++;if(a=r-i,a<0)a+=br,s=r,u=p[h=0],f=u/Jt(10,i-s-1)%10|0;else if(h=Math.ceil((a+1)/br),c=p.length,h>=c)if(n){for(;c++<=h;)p.push(0);u=f=0,i=1,a%=br,s=a-br+1}else break e;else{for(u=c=p[h],i=1;c>=10;c/=10)i++;a%=br,s=a-br+i,f=s<0?0:u/Jt(10,i-s-1)%10|0}if(n=n||r<0||p[h+1]!==void 0||(s<0?u:u%Jt(10,i-s-1)),o=t<4?(f||n)&&(t==0||t==(e.s<0?3:2)):f>5||f==5&&(t==4||n||t==6&&(a>0?s>0?u/Jt(10,i-s):0:p[h-1])%10&1||t==(e.s<0?8:7)),r<1||!p[0])return p.length=0,o?(r-=e.e+1,p[0]=Jt(10,(br-r%br)%br),e.e=-r||0):p[0]=e.e=0,e;if(a==0?(p.length=h,c=1,h--):(p.length=h+1,c=Jt(10,br-a),p[h]=s>0?(u/Jt(10,i-s)%Jt(10,s)|0)*c:0),o)for(;;)if(h==0){for(a=1,s=p[0];s>=10;s/=10)a++;for(s=p[0]+=c,c=1;s>=10;s/=10)c++;a!=c&&(e.e++,p[0]==Yi&&(p[0]=1));break}else{if(p[h]+=c,p[h]!=Yi)break;p[h--]=0,c=1}for(a=p.length;p[--a]===0;)p.pop()}return Er&&(e.e>d.maxE?(e.d=null,e.e=NaN):e.e0?a=a.charAt(0)+"."+a.slice(1)+go(n):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):i<0?(a="0."+go(-i-1)+a,t&&(n=t-s)>0&&(a+=go(n))):i>=s?(a+=go(i+1-s),t&&(n=t-i-1)>0&&(a=a+"."+go(n))):((n=i+1)0&&(i+1===s&&(a+="."),a+=go(n))),a}function Fc(e,r){var t=e[0];for(r*=br;t>=10;t/=10)r++;return r}function _c(e,r,t){if(r>Ik)throw Er=!0,t&&(e.precision=t),Error(qy);return dr(new e(Cc),r,1,!0)}function Vi(e,r,t){if(r>rv)throw Error(qy);return dr(new e(Mc),r,t,!0)}function Vy(e){var r=e.length-1,t=r*br+1;if(r=e[r],r){for(;r%10==0;r/=10)t--;for(r=e[0];r>=10;r/=10)t++}return t}function go(e){for(var r="";e--;)r+="0";return r}function Yy(e,r,t,n){var i,a=new e(1),s=Math.ceil(n/br+4);for(Er=!1;;){if(t%2&&(a=a.times(r),ky(a.d,s)&&(i=!0)),t=mn(t/2),t===0){t=a.d.length-1,i&&a.d[t]===0&&++a.d[t];break}r=r.times(r),ky(r.d,s)}return Er=!0,a}function Py(e){return e.d[e.d.length-1]&1}function Hy(e,r,t){for(var n,i=new e(r[0]),a=0;++a17)return new h(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:0/0);for(r==null?(Er=!1,f=x):f=r,c=new h(.03125);e.e>-2;)e=e.times(c),p+=5;for(n=Math.log(Jt(2,p))/Math.LN10*2+5|0,f+=n,t=a=s=new h(1),h.precision=f;;){if(a=dr(a.times(e),f,1),t=t.times(++u),c=s.plus(xt(a,t,f,1)),ln(c.d).slice(0,f)===ln(s.d).slice(0,f)){for(i=p;i--;)s=dr(s.times(s),f,1);if(r==null)if(o<3&&yf(s.d,f-n,d,o))h.precision=f+=10,t=a=c=new h(1),u=0,o++;else return dr(s,h.precision=x,d,Er=!0);else return h.precision=x,s}s=c}}function xo(e,r){var t,n,i,a,s,c,f,o,u,p,h,d=1,x=10,v=e,y=v.d,w=v.constructor,C=w.rounding,b=w.precision;if(v.s<0||!y||!y[0]||!v.e&&y[0]==1&&y.length==1)return new w(y&&!y[0]?-1/0:v.s!=1?NaN:y?0:v);if(r==null?(Er=!1,u=b):u=r,w.precision=u+=x,t=ln(y),n=t.charAt(0),Math.abs(a=v.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)v=v.times(e),t=ln(v.d),n=t.charAt(0),d++;a=v.e,n>1?(v=new w("0."+t),a++):v=new w(n+"."+t.slice(1))}else return o=_c(w,u+2,b).times(a+""),v=xo(new w(n+"."+t.slice(1)),u-x).plus(o),w.precision=b,r==null?dr(v,b,C,Er=!0):v;for(p=v,f=s=v=xt(v.minus(1),v.plus(1),u,1),h=dr(v.times(v),u,1),i=3;;){if(s=dr(s.times(h),u,1),o=f.plus(xt(s,new w(i),u,1)),ln(o.d).slice(0,u)===ln(f.d).slice(0,u))if(f=f.times(2),a!==0&&(f=f.plus(_c(w,u+2,b).times(a+""))),f=xt(f,new w(d),u,1),r==null)if(yf(f.d,u-x,C,c))w.precision=u+=x,o=s=v=xt(p.minus(1),p.plus(1),u,1),h=dr(v.times(v),u,1),i=c=1;else return dr(f,w.precision=b,C,Er=!0);else return w.precision=b,f;f=o,i+=2}}function Gy(e){return String(e.s*e.s/0)}function nv(e,r){var t,n,i;for((t=r.indexOf("."))>-1&&(r=r.replace(".","")),(n=r.search(/e/i))>0?(t<0&&(t=n),t+=+r.slice(n+1),r=r.substring(0,n)):t<0&&(t=r.length),n=0;r.charCodeAt(n)===48;n++);for(i=r.length;r.charCodeAt(i-1)===48;--i);if(r=r.slice(n,i),r){if(i-=n,e.e=t=t-n-1,e.d=[],n=(t+1)%br,t<0&&(n+=br),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(r=r.replace(/(\\d)_(?=\\d)/g,"$1"),Wy.test(r))return nv(e,r)}else if(r==="Infinity"||r==="NaN")return+r||(e.s=NaN),e.e=NaN,e.d=null,e;if(Fk.test(r))t=16,r=r.toLowerCase();else if(Tk.test(r))t=2;else if(Ok.test(r))t=8;else throw Error(yo+r);for(a=r.search(/p/i),a>0?(f=+r.slice(a+1),r=r.substring(2,a)):r=r.slice(2),a=r.indexOf("."),s=a>=0,n=e.constructor,s&&(r=r.replace(".",""),c=r.length,a=c-a,i=Yy(n,new n(t),a,a*2)),o=Ec(r,t,Yi),u=o.length-1,a=u;o[a]===0;--a)o.pop();return a<0?new n(e.s*0):(e.e=Fc(o,u),e.d=o,Er=!1,s&&(e=xt(e,i,c*4)),f&&(e=e.times(Math.abs(f)<54?Jt(2,f):bf.pow(2,f))),Er=!0,e)}function Rk(e,r){var t,n=r.d.length;if(n<3)return r.isZero()?r:ru(e,2,r,r);t=1.4*Math.sqrt(n),t=t>16?16:t|0,r=r.times(1/Oc(5,t)),r=ru(e,2,r,r);for(var i,a=new e(5),s=new e(16),c=new e(20);t--;)i=r.times(r),r=r.times(a.plus(i.times(s.times(i).minus(c))));return r}function ru(e,r,t,n,i){var a,s,c,f,o=1,u=e.precision,p=Math.ceil(u/br);for(Er=!1,f=t.times(t),c=new e(n);;){if(s=xt(c.times(f),new e(r++*r++),u,1),c=i?n.plus(s):n.minus(s),n=xt(s.times(f),new e(r++*r++),u,1),s=c.plus(n),s.d[p]!==void 0){for(a=p;s.d[a]===c.d[a]&&a--;);if(a==-1)break}a=c,c=n,n=s,s=a,o++}return Er=!0,s.d.length=p+1,s}function Oc(e,r){for(var t=e;--r;)t*=e;return t}function $y(e,r){var t,n=r.s<0,i=Vi(e,e.precision,1),a=i.times(.5);if(r=r.abs(),r.lte(a))return ka=n?4:1,r;if(t=r.divToInt(i),t.isZero())ka=n?3:2;else{if(r=r.minus(t.times(i)),r.lte(a))return ka=Py(t)?n?2:3:n?4:1,r;ka=Py(t)?n?1:4:n?3:2}return r.minus(i).abs()}function iv(e,r,t,n){var i,a,s,c,f,o,u,p,h,d=e.constructor,x=t!==void 0;if(x?(Ln(t,1,bo),n===void 0?n=d.rounding:Ln(n,0,8)):(t=d.precision,n=d.rounding),!e.isFinite())u=Gy(e);else{for(u=ca(e),s=u.indexOf("."),x?(i=2,r==16?t=t*4-3:r==8&&(t=t*3-2)):i=r,s>=0&&(u=u.replace(".",""),h=new d(1),h.e=u.length-s,h.d=Ec(ca(h),10,i),h.e=h.d.length),p=Ec(u,10,i),a=f=p.length;p[--f]==0;)p.pop();if(!p[0])u=x?"0p+0":"0";else{if(s<0?a--:(e=new d(e),e.d=p,e.e=a,e=xt(e,h,t,n,0,i),p=e.d,a=e.e,o=Ly),s=p[t],c=i/2,o=o||p[t+1]!==void 0,o=n<4?(s!==void 0||o)&&(n===0||n===(e.s<0?3:2)):s>c||s===c&&(n===4||o||n===6&&p[t-1]&1||n===(e.s<0?8:7)),p.length=t,o)for(;++p[--t]>i-1;)p[t]=0,t||(++a,p.unshift(1));for(f=p.length;!p[f-1];--f);for(s=0,u="";s1)if(r==16||r==8){for(s=r==16?4:3,--f;f%s;f++)u+="0";for(p=Ec(u,i,r),f=p.length;!p[f-1];--f);for(s=1,u="1.";sf)for(a-=f;a--;)u+="0";else ar)return e.length=r,!0}function Lk(e){return new this(e).abs()}function qk(e){return new this(e).acos()}function Uk(e){return new this(e).acosh()}function zk(e,r){return new this(e).plus(r)}function Wk(e){return new this(e).asin()}function Vk(e){return new this(e).asinh()}function Yk(e){return new this(e).atan()}function Hk(e){return new this(e).atanh()}function Gk(e,r){e=new this(e),r=new this(r);var t,n=this.precision,i=this.rounding,a=n+4;return!e.s||!r.s?t=new this(NaN):!e.d&&!r.d?(t=Vi(this,a,1).times(r.s>0?.25:.75),t.s=e.s):!r.d||e.isZero()?(t=r.s<0?Vi(this,n,i):new this(0),t.s=e.s):!e.d||r.isZero()?(t=Vi(this,a,1).times(.5),t.s=e.s):r.s<0?(this.precision=a,this.rounding=1,t=this.atan(xt(e,r,a,1)),r=Vi(this,a,1),this.precision=n,this.rounding=i,t=e.s<0?t.minus(r):t.plus(r)):t=this.atan(xt(e,r,a,1)),t}function $k(e){return new this(e).cbrt()}function Zk(e){return dr(e=new this(e),e.e+1,2)}function Qk(e,r,t){return new this(e).clamp(r,t)}function Xk(e){if(!e||typeof e!="object")throw Error(Tc+"Object expected");var r,t,n,i=e.defaults===!0,a=["precision",1,bo,"rounding",0,8,"toExpNeg",-eu,0,"toExpPos",0,eu,"maxE",0,eu,"minE",-eu,0,"modulo",0,9];for(r=0;r=a[r+1]&&n<=a[r+2])this[t]=n;else throw Error(yo+t+": "+n);if(t="crypto",i&&(this[t]=ev[t]),(n=e[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(Uy);else this[t]=!1;else throw Error(yo+t+": "+n);return this}function Jk(e){return new this(e).cos()}function Kk(e){return new this(e).cosh()}function Zy(e){var r,t,n;function i(a){var s,c,f,o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,Ry(a)){o.s=a.s,Er?!a.d||a.e>i.maxE?(o.e=NaN,o.d=null):a.e=10;c/=10)s++;Er?s>i.maxE?(o.e=NaN,o.d=null):s=429e7?r[a]=crypto.getRandomValues(new Uint32Array(1))[0]:c[a++]=i%1e7;else if(crypto.randomBytes){for(r=crypto.randomBytes(n*=4);a=214e7?crypto.randomBytes(4).copy(r,a):(c.push(i%1e7),a+=4);a=n/4}else throw Error(Uy);else for(;a=10;i/=10)n++;n{var{on:r,config:t}=e,n=rs.clone({precision:t.precision,modulo:rs.EUCLID});return n.prototype=Object.create(n.prototype),n.prototype.type="BigNumber",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},n.fromJSON=function(i){return new n(i.value)},r&&r("config",function(i,a){i.precision!==a.precision&&n.config({precision:i.precision})}),n},{isClass:!0});var tn=li(Jy(),1);var AR="Complex",ER=[],Ky=T(AR,ER,()=>(Object.defineProperty(tn.default,"name",{value:"Complex"}),tn.default.prototype.constructor=tn.default,tn.default.prototype.type="Complex",tn.default.prototype.isComplex=!0,tn.default.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},tn.default.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},tn.default.prototype.format=function(e){var r="",t=this.im,n=this.re,i=zi(this.re,e),a=zi(this.im,e),s=ar(e)?e:e?e.precision:null;if(s!==null){var c=Math.pow(10,-s);Math.abs(n/t)r.re?1:e.rer.im?1:e.im(Object.defineProperty(pa.default,"name",{value:"Fraction"}),pa.default.prototype.constructor=pa.default,pa.default.prototype.type="Fraction",pa.default.prototype.isFraction=!0,pa.default.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},pa.default.fromJSON=function(e){return new pa.default(e)},pa.default),{isClass:!0});var _R="Range",TR=[],t1=T(_R,TR,()=>{function e(r,t,n){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");var i=r!=null,a=t!=null,s=n!=null;if(i){if(je(r))r=r.toNumber();else if(typeof r!="number")throw new TypeError("Parameter start must be a number")}if(a){if(je(t))t=t.toNumber();else if(typeof t!="number")throw new TypeError("Parameter end must be a number")}if(s){if(je(n))n=n.toNumber();else if(typeof n!="number")throw new TypeError("Parameter step must be a number")}this.start=i?parseFloat(r):0,this.end=a?parseFloat(t):0,this.step=s?parseFloat(n):1}return e.prototype.type="Range",e.prototype.isRange=!0,e.parse=function(r){if(typeof r!="string")return null;var t=r.split(":"),n=t.map(function(a){return parseFloat(a)}),i=n.some(function(a){return isNaN(a)});if(i)return null;switch(n.length){case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[2],n[1]);default:return null}},e.prototype.clone=function(){return new e(this.start,this.end,this.step)},e.prototype.size=function(){var r=0,t=this.start,n=this.step,i=this.end,a=i-t;return mi(n)===mi(a)?r=Math.ceil(a/n):a===0&&(r=0),isNaN(r)&&(r=0),[r]},e.prototype.min=function(){var r=this.size()[0];if(r>0)return this.step>0?this.start:this.start+(r-1)*this.step},e.prototype.max=function(){var r=this.size()[0];if(r>0)return this.step>0?this.start+(r-1)*this.step:this.start},e.prototype.forEach=function(r){var t=this.start,n=this.step,i=this.end,a=0;if(n>0)for(;ti;)r(t,[a],this),t+=n,a++},e.prototype.map=function(r){var t=[];return this.forEach(function(n,i,a){t[i[0]]=r(n,i,a)}),t},e.prototype.toArray=function(){var r=[];return this.forEach(function(t,n){r[n[0]]=t}),r},e.prototype.valueOf=function(){return this.toArray()},e.prototype.format=function(r){var t=zi(this.start,r);return this.step!==1&&(t+=":"+zi(this.step,r)),t+=":"+zi(this.end,r),t},e.prototype.toString=function(){return this.format()},e.prototype.toJSON=function(){return{mathjs:"Range",start:this.start,end:this.end,step:this.step}},e.fromJSON=function(r){return new e(r.start,r.end,r.step)},e},{isClass:!0});var FR="Matrix",OR=[],n1=T(FR,OR,()=>{function e(){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator")}return e.prototype.type="Matrix",e.prototype.isMatrix=!0,e.prototype.storage=function(){throw new Error("Cannot invoke storage on a Matrix interface")},e.prototype.datatype=function(){throw new Error("Cannot invoke datatype on a Matrix interface")},e.prototype.create=function(r,t){throw new Error("Cannot invoke create on a Matrix interface")},e.prototype.subset=function(r,t,n){throw new Error("Cannot invoke subset on a Matrix interface")},e.prototype.get=function(r){throw new Error("Cannot invoke get on a Matrix interface")},e.prototype.set=function(r,t,n){throw new Error("Cannot invoke set on a Matrix interface")},e.prototype.resize=function(r,t){throw new Error("Cannot invoke resize on a Matrix interface")},e.prototype.reshape=function(r,t){throw new Error("Cannot invoke reshape on a Matrix interface")},e.prototype.clone=function(){throw new Error("Cannot invoke clone on a Matrix interface")},e.prototype.size=function(){throw new Error("Cannot invoke size on a Matrix interface")},e.prototype.map=function(r,t){throw new Error("Cannot invoke map on a Matrix interface")},e.prototype.forEach=function(r){throw new Error("Cannot invoke forEach on a Matrix interface")},e.prototype[Symbol.iterator]=function(){throw new Error("Cannot iterate a Matrix interface")},e.prototype.toArray=function(){throw new Error("Cannot invoke toArray on a Matrix interface")},e.prototype.valueOf=function(){throw new Error("Cannot invoke valueOf on a Matrix interface")},e.prototype.format=function(r){throw new Error("Cannot invoke format on a Matrix interface")},e.prototype.toString=function(){throw new Error("Cannot invoke toString on a Matrix interface")},e},{isClass:!0});function i1(e){var r=0,t=1,n=Object.create(null),i=Object.create(null),a=0,s=function(f){var o=i[f];if(!!o&&(delete n[o],delete i[f],--r,t===o)){if(!r){a=0,t=1;return}for(;!Object.prototype.hasOwnProperty.call(n,++t););}};return e=Math.abs(e),{hit:function(f){var o=i[f],u=++a;if(n[u]=f,i[f]=u,!o)return++r,r<=e?void 0:(f=n[t],s(f),f);if(delete n[o],t===o)for(;!Object.prototype.hasOwnProperty.call(n,++t););},delete:s,clear:function(){r=a=0,t=1,n=Object.create(null),i=Object.create(null)}}}function ts(e){var{hasher:r,limit:t}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t=t??Number.POSITIVE_INFINITY,r=r??JSON.stringify,function n(){typeof n.cache!="object"&&(n.cache={values:new Map,lru:i1(t||Number.POSITIVE_INFINITY)});for(var i=[],a=0;a{var{Matrix:r}=e;function t(u,p){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(p&&!yt(p))throw new Error("Invalid datatype: "+p);if(Ge(u))u.type==="DenseMatrix"?(this._data=tr(u._data),this._size=tr(u._size),this._datatype=p||u._datatype):(this._data=u.toArray(),this._size=u.size(),this._datatype=p||u._datatype);else if(u&&Ar(u.data)&&Ar(u.size))this._data=u.data,this._size=u.size,Vd(this._data,this._size),this._datatype=p||u.datatype;else if(Ar(u))this._data=o(u),this._size=or(this._data),Vd(this._data,this._size),this._datatype=p;else{if(u)throw new TypeError("Unsupported type of data ("+_r(u)+")");this._data=[],this._size=[0],this._datatype=p}}t.prototype=new r,t.prototype.createDenseMatrix=function(u,p){return new t(u,p)},Object.defineProperty(t,"name",{value:"DenseMatrix"}),t.prototype.constructor=t,t.prototype.type="DenseMatrix",t.prototype.isDenseMatrix=!0,t.prototype.getDataType=function(){return ho(this._data,_r)},t.prototype.storage=function(){return"dense"},t.prototype.datatype=function(){return this._datatype},t.prototype.create=function(u,p){return new t(u,p)},t.prototype.subset=function(u,p,h){switch(arguments.length){case 1:return n(this,u);case 2:case 3:return a(this,u,p,h);default:throw new SyntaxError("Wrong number of arguments")}},t.prototype.get=function(u){if(!Ar(u))throw new TypeError("Array expected");if(u.length!==this._size.length)throw new pr(u.length,this._size.length);for(var p=0;p");var b=p.max().map(function(S){return S+1});f(u,b,d);var A=x.length,E=0;s(u._data,p,h,A,E)}return u}function s(u,p,h,d,x){var v=x===d-1,y=p.dimension(x);v?y.forEach(function(w,C){Xr(w),u[w]=h[C[0]]}):y.forEach(function(w,C){Xr(w),s(u[w],p,h[C[0]],d,x+1)})}t.prototype.resize=function(u,p,h){if(!bt(u))throw new TypeError("Array or Matrix expected");var d=u.valueOf().map(v=>Array.isArray(v)&&v.length===1?v[0]:v),x=h?this.clone():this;return c(x,d,p)};function c(u,p,h){if(p.length===0){for(var d=u._data;Ar(d);)d=d[0];return d}return u._size=p.slice(0),u._data=Wi(u._data,u._size,h),u}t.prototype.reshape=function(u,p){var h=p?this.clone():this;h._data=vf(h._data,u);var d=h._size.reduce((x,v)=>x*v);return h._size=gf(u,d),h};function f(u,p,h){for(var d=u._size.slice(0),x=!1;d.lengthd[v]&&(d[v]=p[v],x=!0);x&&c(u,d,h)}t.prototype.clone=function(){var u=new t({data:tr(this._data),size:tr(this._size),datatype:this._datatype});return u},t.prototype.size=function(){return this._size.slice(0)},t.prototype.map=function(u){var p=this,h=Bc(u),d=function y(w,C){return Ar(w)?w.map(function(b,A){return y(b,C.concat(A))}):h===1?u(w):h===2?u(w,C):u(w,C,p)},x=d(this._data,[]),v=this._datatype!==void 0?ho(x,_r):void 0;return new t(x,v)},t.prototype.forEach=function(u){var p=this,h=function d(x,v){Ar(x)?x.forEach(function(y,w){d(y,v.concat(w))}):u(x,v,p)};h(this._data,[])},t.prototype[Symbol.iterator]=function*(){var u=function*p(h,d){if(Ar(h))for(var x=0;x[b[w]]);p.push(new t(C,u._datatype))},v=0;v0?u:0,h=u<0?-u:0,d=this._size[0],x=this._size[1],v=Math.min(d-h,x-p),y=[],w=0;w0?h:0,v=h<0?-h:0,y=u[0],w=u[1],C=Math.min(y-v,w-x),b;if(Ar(p)){if(p.length!==C)throw new Error("Invalid value array length");b=function(F){return p[F]}}else if(Ge(p)){var A=p.size();if(A.length!==1||A[0]!==C)throw new Error("Invalid matrix length");b=function(F){return p.get([F])}}else b=function(){return p};d||(d=je(b(0))?b(0).mul(0):0);var E=[];if(u.length>0){E=Wi(E,u,d);for(var S=0;S{var{typed:r}=e;return r(o1,{any:tr})});function Ic(e){var r=e.length,t=e[0].length,n,i,a=[];for(i=0;i=n.length)throw new Xt(r,n.length);return Ge(e)?e.create(Pc(e.valueOf(),r,t)):Pc(e,r,t)}function Pc(e,r,t){var n,i,a,s;if(r<=0)if(Array.isArray(e[0])){for(s=Ic(e),i=[],n=0;n{var{typed:r}=e;return r(u1,{number:He,BigNumber:function(n){return n.isInt()},Fraction:function(n){return n.d===1&&isFinite(n.n)},"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var qn="number",Ra="number, number";function uv(e){return Math.abs(e)}uv.signature=qn;function fv(e,r){return e+r}fv.signature=Ra;function lv(e,r){return e-r}lv.signature=Ra;function cv(e,r){return e*r}cv.signature=Ra;function RR(e,r){return e/r}RR.signature=Ra;function pv(e){return-e}pv.signature=qn;function mv(e){return e}mv.signature=qn;function tu(e){return oy(e)}tu.signature=qn;function hv(e){return e*e*e}hv.signature=qn;function dv(e){return Math.exp(e)}dv.signature=qn;function vv(e){return sy(e)}vv.signature=qn;function LR(e,r){if(!He(e)||!He(r))throw new Error("Parameters in function gcd must be integer numbers");for(var t;r!==0;)t=e%r,e=r,r=t;return e<0?-e:e}LR.signature=Ra;function gv(e,r){if(!He(e)||!He(r))throw new Error("Parameters in function lcm must be integer numbers");if(e===0||r===0)return 0;for(var t,n=e*r;r!==0;)t=r,r=e%t,e=t;return Math.abs(n/e)}gv.signature=Ra;function l1(e,r){return r?Math.log(e)/Math.log(r):Math.log(e)}function xv(e){return ay(e)}xv.signature=qn;function yv(e){return iy(e)}yv.signature=qn;function qR(e){return gc(e)}qR.signature=qn;function UR(e,r){return r===0?e:e-r*Math.floor(e/r)}UR.signature=Ra;function bv(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,t=r<0;if(t&&(r=-r),r===0)throw new Error("Root must be non-zero");if(e<0&&Math.abs(r)%2!==1)throw new Error("Root must be odd when a is negative.");if(e===0)return t?1/0:0;if(!isFinite(e))return t?0:e;var n=Math.pow(Math.abs(e),1/r);return n=e<0?-n:n,t?1/n:n}function kc(e){return mi(e)}kc.signature=qn;function zR(e){return Math.sqrt(e)}zR.signature=qn;function wv(e){return e*e}wv.signature=qn;function Dv(e,r){var t,n,i,a=0,s=1,c=1,f=0;if(!He(e)||!He(r))throw new Error("Parameters in function xgcd must be integer numbers");for(;r;)n=Math.floor(e/r),i=e-n*r,t=a,a=s-n*a,s=t,t=c,c=f-n*c,f=t,e=r,r=i;var o;return e<0?o=[-e,-s,-f]:o=[e,e?s:0,f],o}Dv.signature=Ra;function Sv(e,r){return e*e<1&&r===1/0||e*e>1&&r===-1/0?0:Math.pow(e,r)}Sv.signature=Ra;function nu(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!He(r)||r<0||r>15)throw new Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");return parseFloat(Ud(e,r))}function WR(e){return Math.abs(e)}WR.signature=qn;var VR="number",iu="number, number";function Nv(e,r){if(!He(e)||!He(r))throw new Error("Integers expected in function bitAnd");return e&r}Nv.signature=iu;function Av(e){if(!He(e))throw new Error("Integer expected in function bitNot");return~e}Av.signature=VR;function Ev(e,r){if(!He(e)||!He(r))throw new Error("Integers expected in function bitOr");return e|r}Ev.signature=iu;function Cv(e,r){if(!He(e)||!He(r))throw new Error("Integers expected in function bitXor");return e^r}Cv.signature=iu;function Mv(e,r){if(!He(e)||!He(r))throw new Error("Integers expected in function leftShift");return e<>r}_v.signature=iu;function Tv(e,r){if(!He(e)||!He(r))throw new Error("Integers expected in function rightLogShift");return e>>>r}Tv.signature=iu;function Kn(e,r){if(r>1;return Kn(e,t)*Kn(t+1,r)}function Fv(e,r){if(!He(e)||e<0)throw new TypeError("Positive integer value expected in function combinations");if(!He(r)||r<0)throw new TypeError("Positive integer value expected in function combinations");if(r>e)throw new TypeError("k must be less than or equal to n");for(var t=e-r,n=1,i=r171?1/0:Kn(1,e-1);if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*wf(1-e));if(e>=171.35)return 1/0;if(e>85){var t=e*e,n=t*e,i=n*e,a=i*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*t)-139/(51840*n)-571/(2488320*i)+163879/(209018880*a)+5246819/(75246796800*a*e))}--e,r=ns[0];for(var s=1;s=1;n--)t+=d1[n]/(e+n);return Lv+(e+.5)*Math.log(r)-r+Math.log(t)}Df.signature="number";var Dt="number",$R="number, number";function ZR(e){return Math.acos(e)}ZR.signature=Dt;function qv(e){return ly(e)}qv.signature=Dt;function Uv(e){return Math.atan(1/e)}Uv.signature=Dt;function zv(e){return isFinite(e)?(Math.log((e+1)/e)+Math.log(e/(e-1)))/2:0}zv.signature=Dt;function Wv(e){return Math.asin(1/e)}Wv.signature=Dt;function Vv(e){var r=1/e;return Math.log(r+Math.sqrt(r*r+1))}Vv.signature=Dt;function Yv(e){return Math.acos(1/e)}Yv.signature=Dt;function Hv(e){var r=1/e,t=Math.sqrt(r*r-1);return Math.log(t+r)}Hv.signature=Dt;function QR(e){return Math.asin(e)}QR.signature=Dt;function Gv(e){return cy(e)}Gv.signature=Dt;function XR(e){return Math.atan(e)}XR.signature=Dt;function JR(e,r){return Math.atan2(e,r)}JR.signature=$R;function $v(e){return py(e)}$v.signature=Dt;function KR(e){return Math.cos(e)}KR.signature=Dt;function jR(e){return yc(e)}jR.signature=Dt;function Zv(e){return 1/Math.tan(e)}Zv.signature=Dt;function Qv(e){var r=Math.exp(2*e);return(r+1)/(r-1)}Qv.signature=Dt;function Xv(e){return 1/Math.sin(e)}Xv.signature=Dt;function Jv(e){return e===0?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(e)-Math.exp(-e)))*mi(e)}Jv.signature=Dt;function Kv(e){return 1/Math.cos(e)}Kv.signature=Dt;function jv(e){return 2/(Math.exp(e)+Math.exp(-e))}jv.signature=Dt;function e9(e){return Math.sin(e)}e9.signature=Dt;function eg(e){return my(e)}eg.signature=Dt;function r9(e){return Math.tan(e)}r9.signature=Dt;function t9(e){return bc(e)}t9.signature=Dt;var Sf="number";function n9(e){return He(e)}n9.signature=Sf;function rg(e){return e<0}rg.signature=Sf;function tg(e){return e>0}tg.signature=Sf;function ng(e){return e===0}ng.signature=Sf;function ig(e){return Number.isNaN(e)}ig.signature=Sf;var v1="isNegative",i9=["typed"],g1=T(v1,i9,e=>{var{typed:r}=e;return r(v1,{number:rg,BigNumber:function(n){return n.isNeg()&&!n.isZero()&&!n.isNaN()},Fraction:function(n){return n.s<0},Unit:r.referToSelf(t=>n=>r.find(t,n.valueType())(n.value)),"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var x1="isNumeric",a9=["typed"],y1=T(x1,a9,e=>{var{typed:r}=e;return r(x1,{"number | BigNumber | Fraction | boolean":()=>!0,"Complex | Unit | string | null | undefined | Node":()=>!1,"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var b1="hasNumericValue",o9=["typed","isNumeric"],w1=T(b1,o9,e=>{var{typed:r,isNumeric:t}=e;return r(b1,{boolean:()=>!0,string:function(i){return i.trim().length>0&&!isNaN(Number(i))},any:function(i){return t(i)}})});var D1="isPositive",s9=["typed"],S1=T(D1,s9,e=>{var{typed:r}=e;return r(D1,{number:tg,BigNumber:function(n){return!n.isNeg()&&!n.isZero()&&!n.isNaN()},Fraction:function(n){return n.s>0&&n.n>0},Unit:r.referToSelf(t=>n=>r.find(t,n.valueType())(n.value)),"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var N1="isZero",u9=["typed"],A1=T(N1,u9,e=>{var{typed:r}=e;return r(N1,{number:ng,BigNumber:function(n){return n.isZero()},Complex:function(n){return n.re===0&&n.im===0},Fraction:function(n){return n.d===1&&n.n===0},Unit:r.referToSelf(t=>n=>r.find(t,n.valueType())(n.value)),"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var E1="isNaN",f9=["typed"],C1=T(E1,f9,e=>{var{typed:r}=e;return r(E1,{number:ig,BigNumber:function(n){return n.isNaN()},Fraction:function(n){return!1},Complex:function(n){return n.isNaN()},Unit:function(n){return Number.isNaN(n.value)},"Array | Matrix":function(n){return Je(n,Number.isNaN)}})});var M1="typeOf",l9=["typed"],_1=T(M1,l9,e=>{var{typed:r}=e;return r(M1,{any:_r})});function Ut(e,r,t){if(t==null)return e.eq(r);if(e.eq(r))return!0;if(e.isNaN()||r.isNaN())return!1;if(e.isFinite()&&r.isFinite()){var n=e.minus(r).abs();if(n.isZero())return!0;var i=e.constructor.max(e.abs(),r.abs());return n.lte(i.times(t))}return!1}function T1(e,r,t){return wt(e.re,r.re,t)&&wt(e.im,r.im,t)}var di=T("compareUnits",["typed"],e=>{var{typed:r}=e;return{"Unit, Unit":r.referToSelf(t=>(n,i)=>{if(!n.equalBase(i))throw new Error("Cannot compare units with different base");return r.find(t,[n.valueType(),i.valueType()])(n.value,i.value)})}});var Rc="equalScalar",c9=["typed","config"],F1=T(Rc,c9,e=>{var{typed:r,config:t}=e,n=di({typed:r});return r(Rc,{"boolean, boolean":function(a,s){return a===s},"number, number":function(a,s){return wt(a,s,t.epsilon)},"BigNumber, BigNumber":function(a,s){return a.eq(s)||Ut(a,s,t.epsilon)},"Fraction, Fraction":function(a,s){return a.equals(s)},"Complex, Complex":function(a,s){return T1(a,s,t.epsilon)}},n)}),DX=T(Rc,["typed","config"],e=>{var{typed:r,config:t}=e;return r(Rc,{"number, number":function(i,a){return wt(i,a,t.epsilon)}})});var p9="SparseMatrix",m9=["typed","equalScalar","Matrix"],O1=T(p9,m9,e=>{var{typed:r,equalScalar:t,Matrix:n}=e;function i(v,y){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if(y&&!yt(y))throw new Error("Invalid datatype: "+y);if(Ge(v))a(this,v,y);else if(v&&Ar(v.index)&&Ar(v.ptr)&&Ar(v.size))this._values=v.values,this._index=v.index,this._ptr=v.ptr,this._size=v.size,this._datatype=y||v.datatype;else if(Ar(v))s(this,v,y);else{if(v)throw new TypeError("Unsupported type of data ("+_r(v)+")");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=y}}function a(v,y,w){y.type==="SparseMatrix"?(v._values=y._values?tr(y._values):void 0,v._index=tr(y._index),v._ptr=tr(y._ptr),v._size=tr(y._size),v._datatype=w||y._datatype):s(v,y.valueOf(),w||y._datatype)}function s(v,y,w){v._values=[],v._index=[],v._ptr=[],v._datatype=w;var C=y.length,b=0,A=t,E=0;if(yt(w)&&(A=r.find(t,[w,w])||t,E=r.convert(0,w)),C>0){var S=0;do{v._ptr.push(v._index.length);for(var O=0;O");if(b.length===1){var F=y.dimension(0);F.forEach(function(k,L){Xr(k),v.set([k,0],w[L[0]],C)})}else{var M=y.dimension(0),_=y.dimension(1);M.forEach(function(k,L){Xr(k),_.forEach(function(Y,$){Xr(Y),v.set([k,Y],w[L[0]][$[0]],C)})})}}return v}i.prototype.get=function(v){if(!Ar(v))throw new TypeError("Array expected");if(v.length!==this._size.length)throw new pr(v.length,this._size.length);if(!this._values)throw new Error("Cannot invoke get on a Pattern only matrix");var y=v[0],w=v[1];Xr(y,this._size[0]),Xr(w,this._size[1]);var C=o(y,this._ptr[w],this._ptr[w+1],this._index);return CA-1||b>E-1)&&(h(this,Math.max(C+1,A),Math.max(b+1,E),w),A=this._size[0],E=this._size[1]),Xr(C,A),Xr(b,E);var F=o(C,this._ptr[b],this._ptr[b+1],this._index);return FArray.isArray(A)&&A.length===1?A[0]:A);if(C.length!==2)throw new Error("Only two dimensions matrix are supported");C.forEach(function(A){if(!ar(A)||!He(A)||A<0)throw new TypeError("Invalid size, must contain positive integers (size: "+lr(C)+")")});var b=w?this.clone():this;return h(b,C[0],C[1],y)};function h(v,y,w,C){var b=C||0,A=t,E=0;yt(v._datatype)&&(A=r.find(t,[v._datatype,v._datatype])||t,E=r.convert(0,v._datatype),b=r.convert(b,v._datatype));var S=!A(b,E),O=v._size[0],F=v._size[1],M,_,k;if(w>F){for(_=F;_O){if(S){var L=0;for(_=0;_y-1&&(v._values.splice(k,1),v._index.splice(k,1),$++)}v._ptr[_]=v._values.length}return v._size[0]=y,v._size[1]=w,v}i.prototype.reshape=function(v,y){if(!Ar(v))throw new TypeError("Array expected");if(v.length!==2)throw new Error("Sparse matrices can only be reshaped in two dimensions");v.forEach(function(U){if(!ar(U)||!He(U)||U<=-2||U===0)throw new TypeError("Invalid size, must contain positive integers or -1 (size: "+lr(v)+")")});var w=this._size[0]*this._size[1];v=gf(v,w);var C=v[0]*v[1];if(w!==C)throw new Error("Reshaping sparse matrix will result in the wrong number of elements");var b=y?this.clone():this;if(this._size[0]===v[0]&&this._size[1]===v[1])return b;for(var A=[],E=0;E=y&&q<=w&&k(v._values[V],q-y,L-C)}else{for(var R={},j=Y;j<$;j++){var U=v._index[j];R[U]=v._values[j]}for(var oe=y;oe<=w;oe++){var me=oe in R?R[oe]:0;k(me,oe-y,L-C)}}}return F.push(S.length),new i({values:S,index:O,ptr:F,size:[w-y+1,b-C+1]})}i.prototype.forEach=function(v,y){if(!this._values)throw new Error("Cannot invoke forEach on a Pattern only matrix");for(var w=this,C=this._size[0],b=this._size[1],A=0;A "+(this._values?lr(this._values[O],v):"X")}return b},i.prototype.toString=function(){return lr(this.toArray())},i.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(v){if(v){if(je(v)&&(v=v.toNumber()),!ar(v)||!He(v))throw new TypeError("The parameter k must be an integer number")}else v=0;var y=v>0?v:0,w=v<0?-v:0,C=this._size[0],b=this._size[1],A=Math.min(C-w,b-y),E=[],S=[],O=[];O[0]=0;for(var F=y;F0?w:0,O=w<0?-w:0,F=v[0],M=v[1],_=Math.min(F-O,M-S),k;if(Ar(y)){if(y.length!==_)throw new Error("Invalid value array length");k=function(oe){return y[oe]}}else if(Ge(y)){var L=y.size();if(L.length!==1||L[0]!==_)throw new Error("Invalid matrix length");k=function(oe){return y.get([oe])}}else k=function(){return y};for(var Y=[],$=[],V=[],q=0;q=0&&R<_){var j=k(R);A(j,E)||($.push(R+O),Y.push(j))}}return V.push(Y.length),new i({values:Y,index:$,ptr:V,size:[F,M]})},i.prototype.swapRows=function(v,y){if(!ar(v)||!He(v)||!ar(y)||!He(y))throw new Error("Row index must be positive integers");if(this._size.length!==2)throw new Error("Only two dimensional matrix is supported");return Xr(v,this._size[0]),Xr(y,this._size[0]),i._swapRows(v,y,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(v,y,w,C,b){for(var A=C[v],E=C[v+1],S=A;S=O||b[M]!==y)){var k=C?C[F]:void 0;b.splice(M,0,y),C&&C.splice(M,0,k),b.splice(M<=F?F+1:F,1),C&&C.splice(M<=F?F+1:F,1);continue}if(M=O||b[F]!==v)){var L=C?C[M]:void 0;b.splice(F,0,v),C&&C.splice(F,0,L),b.splice(F<=M?M+1:M,1),C&&C.splice(F<=M?M+1:M,1)}}},i},{isClass:!0});var h9="number",d9=["typed"];function v9(e){var r=e.match(/(0[box])([0-9a-fA-F]*)\\.([0-9a-fA-F]*)/);if(r){var t={"0b":2,"0o":8,"0x":16}[r[1]],n=r[2],i=r[3];return{input:e,radix:t,integerPart:n,fractionalPart:i}}else return null}function g9(e){for(var r=parseInt(e.integerPart,e.radix),t=0,n=0;n{var{typed:r}=e,t=r("number",{"":function(){return 0},number:function(i){return i},string:function(i){if(i==="NaN")return NaN;var a=v9(i);if(a)return g9(a);var s=0,c=i.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);c&&(s=Number(c[2]),i=c[1]);var f=Number(i);if(isNaN(f))throw new SyntaxError('String "'+i+'" is not a valid number');if(c){if(f>2**s-1)throw new SyntaxError('String "'.concat(i,'" is out of range'));f>=2**(s-1)&&(f=f-2**s)}return f},BigNumber:function(i){return i.toNumber()},Fraction:function(i){return i.valueOf()},Unit:r.referToSelf(n=>i=>{var a=i.clone();return a.value=n(i.value),a}),null:function(i){return 0},"Unit, string | Unit":function(i,a){return i.toNumber(a)},"Array | Matrix":r.referToSelf(n=>i=>Je(i,n))});return t.fromJSON=function(n){return parseFloat(n.value)},t});var I1="string",x9=["typed"],P1=T(I1,x9,e=>{var{typed:r}=e;return r(I1,{"":function(){return""},number:zi,null:function(n){return"null"},boolean:function(n){return n+""},string:function(n){return n},"Array | Matrix":r.referToSelf(t=>n=>Je(n,t)),any:function(n){return String(n)}})});var k1="boolean",y9=["typed"],R1=T(k1,y9,e=>{var{typed:r}=e;return r(k1,{"":function(){return!1},boolean:function(n){return n},number:function(n){return!!n},null:function(n){return!1},BigNumber:function(n){return!n.isZero()},string:function(n){var i=n.toLowerCase();if(i==="true")return!0;if(i==="false")return!1;var a=Number(n);if(n!==""&&!isNaN(a))return!!a;throw new Error('Cannot convert "'+n+'" to a boolean')},"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var b9="bignumber",w9=["typed","BigNumber"],L1=T(b9,w9,e=>{var{typed:r,BigNumber:t}=e;return r("bignumber",{"":function(){return new t(0)},number:function(i){return new t(i+"")},string:function(i){var a=i.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(a){var s=a[2],c=t(a[1]),f=new t(2).pow(Number(s));if(c.gt(f.sub(1)))throw new SyntaxError('String "'.concat(i,'" is out of range'));var o=new t(2).pow(Number(s)-1);return c.gte(o)?c.sub(f):c}return new t(i)},BigNumber:function(i){return i},Unit:r.referToSelf(n=>i=>{var a=i.clone();return a.value=n(i.value),a}),Fraction:function(i){return new t(i.n).div(i.d).times(i.s)},null:function(i){return new t(0)},"Array | Matrix":r.referToSelf(n=>i=>Je(i,n))})});var D9="complex",S9=["typed","Complex"],q1=T(D9,S9,e=>{var{typed:r,Complex:t}=e;return r("complex",{"":function(){return t.ZERO},number:function(i){return new t(i,0)},"number, number":function(i,a){return new t(i,a)},"BigNumber, BigNumber":function(i,a){return new t(i.toNumber(),a.toNumber())},Fraction:function(i){return new t(i.valueOf(),0)},Complex:function(i){return i.clone()},string:function(i){return t(i)},null:function(i){return t(0)},Object:function(i){if("re"in i&&"im"in i)return new t(i.re,i.im);if("r"in i&&"phi"in i||"abs"in i&&"arg"in i)return new t(i);throw new Error("Expected object with properties (re and im) or (r and phi) or (abs and arg)")},"Array | Matrix":r.referToSelf(n=>i=>Je(i,n))})});var N9="fraction",A9=["typed","Fraction"],U1=T(N9,A9,e=>{var{typed:r,Fraction:t}=e;return r("fraction",{number:function(i){if(!isFinite(i)||isNaN(i))throw new Error(i+" cannot be represented as a fraction");return new t(i)},string:function(i){return new t(i)},"number, number":function(i,a){return new t(i,a)},null:function(i){return new t(0)},BigNumber:function(i){return new t(i.toString())},Fraction:function(i){return i},Unit:r.referToSelf(n=>i=>{var a=i.clone();return a.value=n(i.value),a}),Object:function(i){return new t(i)},"Array | Matrix":r.referToSelf(n=>i=>Je(i,n))})});var z1="matrix",E9=["typed","Matrix","DenseMatrix","SparseMatrix"],W1=T(z1,E9,e=>{var{typed:r,Matrix:t,DenseMatrix:n,SparseMatrix:i}=e;return r(z1,{"":function(){return a([])},string:function(c){return a([],c)},"string, string":function(c,f){return a([],c,f)},Array:function(c){return a(c)},Matrix:function(c){return a(c,c.storage())},"Array | Matrix, string":a,"Array | Matrix, string, string":a});function a(s,c,f){if(c==="dense"||c==="default"||c===void 0)return new n(s,f);if(c==="sparse")return new i(s,f);throw new TypeError("Unknown matrix type "+JSON.stringify(c)+".")}});var V1="matrixFromFunction",C9=["typed","matrix","isZero"],Y1=T(V1,C9,e=>{var{typed:r,matrix:t,isZero:n}=e;return r(V1,{"Array | Matrix, function, string, string":function(s,c,f,o){return i(s,c,f,o)},"Array | Matrix, function, string":function(s,c,f){return i(s,c,f)},"Matrix, function":function(s,c){return i(s,c,"dense")},"Array, function":function(s,c){return i(s,c,"dense").toArray()},"Array | Matrix, string, function":function(s,c,f){return i(s,f,c)},"Array | Matrix, string, string, function":function(s,c,f,o){return i(s,o,c,f)}});function i(a,s,c,f){var o;return f!==void 0?o=t(c,f):o=t(c),o.resize(a),o.forEach(function(u,p){var h=s(p);n(h)||o.set(p,h)}),o}});var H1="matrixFromRows",M9=["typed","matrix","flatten","size"],G1=T(H1,M9,e=>{var{typed:r,matrix:t,flatten:n,size:i}=e;return r(H1,{"...Array":function(f){return a(f)},"...Matrix":function(f){return t(a(f.map(o=>o.toArray())))}});function a(c){if(c.length===0)throw new TypeError("At least one row is needed to construct a matrix.");var f=s(c[0]),o=[];for(var u of c){var p=s(u);if(p!==f)throw new TypeError("The vectors had different length: "+(f|0)+" \\u2260 "+(p|0));o.push(n(u))}return o}function s(c){var f=i(c);if(f.length===1)return f[0];if(f.length===2){if(f[0]===1)return f[1];if(f[1]===1)return f[0];throw new TypeError("At least one of the arguments is not a vector.")}else throw new TypeError("Only one- or two-dimensional vectors are supported.")}});var $1="matrixFromColumns",_9=["typed","matrix","flatten","size"],Z1=T($1,_9,e=>{var{typed:r,matrix:t,flatten:n,size:i}=e;return r($1,{"...Array":function(f){return a(f)},"...Matrix":function(f){return t(a(f.map(o=>o.toArray())))}});function a(c){if(c.length===0)throw new TypeError("At least one column is needed to construct a matrix.");for(var f=s(c[0]),o=[],u=0;u{var{typed:r}=e;return r(Q1,{"Unit, Array":function(n,i){return n.splitUnit(i)}})});var J1="unaryMinus",F9=["typed"],K1=T(J1,F9,e=>{var{typed:r}=e;return r(J1,{number:pv,"Complex | BigNumber | Fraction":t=>t.neg(),Unit:r.referToSelf(t=>n=>{var i=n.clone();return i.value=r.find(t,i.valueType())(n.value),i}),"Array | Matrix":r.referToSelf(t=>n=>Je(n,t,!0))})});var j1="unaryPlus",O9=["typed","config","BigNumber"],eb=T(j1,O9,e=>{var{typed:r,config:t,BigNumber:n}=e;return r(j1,{number:mv,Complex:function(a){return a},BigNumber:function(a){return a},Fraction:function(a){return a},Unit:function(a){return a.clone()},"Array | Matrix":r.referToSelf(i=>a=>Je(a,i,!0)),"boolean | string":function(a){return t.number==="BigNumber"?new n(+a):+a}})});var rb="abs",B9=["typed"],tb=T(rb,B9,e=>{var{typed:r}=e;return r(rb,{number:uv,"Complex | BigNumber | Fraction | Unit":t=>t.abs(),"Array | Matrix":r.referToSelf(t=>n=>Je(n,t,!0))})});var nb="apply",I9=["typed","isInteger"],au=T(nb,I9,e=>{var{typed:r,isInteger:t}=e;return r(nb,{"Array | Matrix, number | BigNumber, function":function(i,a,s){if(!t(a))throw new TypeError("Integer number expected for dimension");var c=Array.isArray(i)?or(i):i.size();if(a<0||a>=c.length)throw new Xt(a,c.length);return Ge(i)?i.create(Lc(i.valueOf(),a,s)):Lc(i,a,s)}})});function Lc(e,r,t){var n,i,a;if(r<=0)if(Array.isArray(e[0])){for(a=P9(e),i=[],n=0;n{var{typed:r}=e;return r(ib,{"number, number":fv,"Complex, Complex":function(n,i){return n.add(i)},"BigNumber, BigNumber":function(n,i){return n.plus(i)},"Fraction, Fraction":function(n,i){return n.add(i)},"Unit, Unit":r.referToSelf(t=>(n,i)=>{if(n.value===null||n.value===void 0)throw new Error("Parameter x contains a unit with undefined value");if(i.value===null||i.value===void 0)throw new Error("Parameter y contains a unit with undefined value");if(!n.equalBase(i))throw new Error("Units do not match");var a=n.clone();return a.value=r.find(t,[a.valueType(),i.valueType()])(a.value,i.value),a.fixPrefix=!1,a})})});var ob="subtractScalar",R9=["typed"],sb=T(ob,R9,e=>{var{typed:r}=e;return r(ob,{"number, number":lv,"Complex, Complex":function(n,i){return n.sub(i)},"BigNumber, BigNumber":function(n,i){return n.minus(i)},"Fraction, Fraction":function(n,i){return n.sub(i)},"Unit, Unit":r.referToSelf(t=>(n,i)=>{if(n.value===null||n.value===void 0)throw new Error("Parameter x contains a unit with undefined value");if(i.value===null||i.value===void 0)throw new Error("Parameter y contains a unit with undefined value");if(!n.equalBase(i))throw new Error("Units do not match");var a=n.clone();return a.value=r.find(t,[a.valueType(),i.valueType()])(a.value,i.value),a.fixPrefix=!1,a})})});var ub="cbrt",L9=["config","typed","isNegative","unaryMinus","matrix","Complex","BigNumber","Fraction"],fb=T(ub,L9,e=>{var{config:r,typed:t,isNegative:n,unaryMinus:i,matrix:a,Complex:s,BigNumber:c,Fraction:f}=e;return t(ub,{number:tu,Complex:o,"Complex, boolean":o,BigNumber:function(h){return h.cbrt()},Unit:u});function o(p,h){var d=p.arg()/3,x=p.abs(),v=new s(tu(x),0).mul(new s(0,d).exp());if(h){var y=[v,new s(tu(x),0).mul(new s(0,d+Math.PI*2/3).exp()),new s(tu(x),0).mul(new s(0,d-Math.PI*2/3).exp())];return r.matrix==="Array"?y:a(y)}else return v}function u(p){if(p.value&&Gt(p.value)){var h=p.clone();return h.value=1,h=h.pow(1/3),h.value=o(p.value),h}else{var d=n(p.value);d&&(p.value=i(p.value));var x;je(p.value)?x=new c(1).div(3):Xn(p.value)?x=new f(1,3):x=1/3;var v=p.pow(x);return d&&(v.value=i(v.value)),v}}});var q9="matAlgo11xS0s",U9=["typed","equalScalar"],Jr=T(q9,U9,e=>{var{typed:r,equalScalar:t}=e;return function(i,a,s,c){var f=i._values,o=i._index,u=i._ptr,p=i._size,h=i._datatype;if(!f)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var d=p[0],x=p[1],v,y=t,w=0,C=s;typeof h=="string"&&(v=h,y=r.find(t,[v,v]),w=r.convert(0,v),a=r.convert(a,v),C=r.find(s,[v,v]));for(var b=[],A=[],E=[],S=0;S{var{typed:r,DenseMatrix:t}=e;return function(i,a,s,c){var f=i._values,o=i._index,u=i._ptr,p=i._size,h=i._datatype;if(!f)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var d=p[0],x=p[1],v,y=s;typeof h=="string"&&(v=h,a=r.convert(a,v),y=r.find(s,[v,v]));for(var w=[],C=[],b=[],A=0;A{var{typed:r}=e;return function(i,a,s,c){var f=i._data,o=i._size,u=i._datatype,p,h=s;typeof u=="string"&&(p=u,a=r.convert(a,p),h=r.find(s,[p,p]));var d=o.length>0?t(h,0,o,o[0],f,a,c):[];return i.createDenseMatrix({data:d,size:tr(o),datatype:p})};function t(n,i,a,s,c,f,o){var u=[];if(i===a.length-1)for(var p=0;p{var{typed:r,config:t,round:n}=e;return r(ag,{number:function(a){return wt(a,n(a),t.epsilon)?n(a):Math.ceil(a)},"number, number":function(a,s){if(wt(a,n(a,s),t.epsilon))return n(a,s);var[c,f]="".concat(a,"e").split("e"),o=Math.ceil(Number("".concat(c,"e").concat(Number(f)+s)));return[c,f]="".concat(o,"e").split("e"),Number("".concat(c,"e").concat(Number(f)-s))}})}),lb=T(ag,H9,e=>{var{typed:r,config:t,round:n,matrix:i,equalScalar:a,zeros:s,DenseMatrix:c}=e,f=Jr({typed:r,equalScalar:a}),o=Lr({typed:r,DenseMatrix:c}),u=Bt({typed:r}),p=G9({typed:r,config:t,round:n});return r("ceil",{number:p.signatures.number,"number,number":p.signatures["number,number"],Complex:function(d){return d.ceil()},"Complex, number":function(d,x){return d.ceil(x)},"Complex, BigNumber":function(d,x){return d.ceil(x.toNumber())},BigNumber:function(d){return Ut(d,n(d),t.epsilon)?n(d):d.ceil()},"BigNumber, BigNumber":function(d,x){return Ut(d,n(d,x),t.epsilon)?n(d,x):d.toDecimalPlaces(x.toNumber(),rs.ROUND_CEIL)},Fraction:function(d){return d.ceil()},"Fraction, number":function(d,x){return d.ceil(x)},"Fraction, BigNumber":function(d,x){return d.ceil(x.toNumber())},"Array | Matrix":r.referToSelf(h=>d=>Je(d,h,!0)),"Array, number | BigNumber":r.referToSelf(h=>(d,x)=>Je(d,v=>h(v,x),!0)),"SparseMatrix, number | BigNumber":r.referToSelf(h=>(d,x)=>f(d,x,h,!1)),"DenseMatrix, number | BigNumber":r.referToSelf(h=>(d,x)=>u(d,x,h,!1)),"number | Complex | Fraction | BigNumber, Array":r.referToSelf(h=>(d,x)=>u(i(x),d,h,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":r.referToSelf(h=>(d,x)=>a(d,0)?s(x.size(),x.storage()):x.storage()==="dense"?u(x,d,h,!0):o(x,d,h,!0))})});var cb="cube",$9=["typed"],pb=T(cb,$9,e=>{var{typed:r}=e;return r(cb,{number:hv,Complex:function(n){return n.mul(n).mul(n)},BigNumber:function(n){return n.times(n).times(n)},Fraction:function(n){return n.pow(3)},Unit:function(n){return n.pow(3)}})});var mb="exp",Z9=["typed"],hb=T(mb,Z9,e=>{var{typed:r}=e;return r(mb,{number:dv,Complex:function(n){return n.exp()},BigNumber:function(n){return n.exp()}})});var db="expm1",Q9=["typed","Complex"],vb=T(db,Q9,e=>{var{typed:r,Complex:t}=e;return r(db,{number:vv,Complex:function(i){var a=Math.exp(i.re);return new t(a*Math.cos(i.im)-1,a*Math.sin(i.im))},BigNumber:function(i){return i.exp().minus(1)}})});var og="fix",X9=["typed","Complex","matrix","ceil","floor","equalScalar","zeros","DenseMatrix"],J9=T(og,["typed","ceil","floor"],e=>{var{typed:r,ceil:t,floor:n}=e;return r(og,{number:function(a){return a>0?n(a):t(a)},"number, number":function(a,s){return a>0?n(a,s):t(a,s)}})}),gb=T(og,X9,e=>{var{typed:r,Complex:t,matrix:n,ceil:i,floor:a,equalScalar:s,zeros:c,DenseMatrix:f}=e,o=Lr({typed:r,DenseMatrix:f}),u=Bt({typed:r}),p=J9({typed:r,ceil:i,floor:a});return r("fix",{number:p.signatures.number,"number, number | BigNumber":p.signatures["number,number"],Complex:function(d){return new t(d.re>0?Math.floor(d.re):Math.ceil(d.re),d.im>0?Math.floor(d.im):Math.ceil(d.im))},"Complex, number":function(d,x){return new t(d.re>0?a(d.re,x):i(d.re,x),d.im>0?a(d.im,x):i(d.im,x))},"Complex, BigNumber":function(d,x){var v=x.toNumber();return new t(d.re>0?a(d.re,v):i(d.re,v),d.im>0?a(d.im,v):i(d.im,v))},BigNumber:function(d){return d.isNegative()?i(d):a(d)},"BigNumber, number | BigNumber":function(d,x){return d.isNegative()?i(d,x):a(d,x)},Fraction:function(d){return d.s<0?d.ceil():d.floor()},"Fraction, number | BigNumber":function(d,x){return d.s<0?i(d,x):a(d,x)},"Array | Matrix":r.referToSelf(h=>d=>Je(d,h,!0)),"Array | Matrix, number | BigNumber":r.referToSelf(h=>(d,x)=>Je(d,v=>h(v,x),!0)),"number | Complex | Fraction | BigNumber, Array":r.referToSelf(h=>(d,x)=>u(n(x),d,h,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":r.referToSelf(h=>(d,x)=>s(d,0)?c(x.size(),x.storage()):x.storage()==="dense"?u(x,d,h,!0):o(x,d,h,!0))})});var sg="floor",K9=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],j9=T(sg,["typed","config","round"],e=>{var{typed:r,config:t,round:n}=e;return r(sg,{number:function(a){return wt(a,n(a),t.epsilon)?n(a):Math.floor(a)},"number, number":function(a,s){if(wt(a,n(a,s),t.epsilon))return n(a,s);var[c,f]="".concat(a,"e").split("e"),o=Math.floor(Number("".concat(c,"e").concat(Number(f)+s)));return[c,f]="".concat(o,"e").split("e"),Number("".concat(c,"e").concat(Number(f)-s))}})}),qc=T(sg,K9,e=>{var{typed:r,config:t,round:n,matrix:i,equalScalar:a,zeros:s,DenseMatrix:c}=e,f=Jr({typed:r,equalScalar:a}),o=Lr({typed:r,DenseMatrix:c}),u=Bt({typed:r}),p=j9({typed:r,config:t,round:n});return r("floor",{number:p.signatures.number,"number,number":p.signatures["number,number"],Complex:function(d){return d.floor()},"Complex, number":function(d,x){return d.floor(x)},"Complex, BigNumber":function(d,x){return d.floor(x.toNumber())},BigNumber:function(d){return Ut(d,n(d),t.epsilon)?n(d):d.floor()},"BigNumber, BigNumber":function(d,x){return Ut(d,n(d,x),t.epsilon)?n(d,x):d.toDecimalPlaces(x.toNumber(),rs.ROUND_FLOOR)},Fraction:function(d){return d.floor()},"Fraction, number":function(d,x){return d.floor(x)},"Fraction, BigNumber":function(d,x){return d.floor(x.toNumber())},"Array | Matrix":r.referToSelf(h=>d=>Je(d,h,!0)),"Array, number | BigNumber":r.referToSelf(h=>(d,x)=>Je(d,v=>h(v,x),!0)),"SparseMatrix, number | BigNumber":r.referToSelf(h=>(d,x)=>f(d,x,h,!1)),"DenseMatrix, number | BigNumber":r.referToSelf(h=>(d,x)=>u(d,x,h,!1)),"number | Complex | Fraction | BigNumber, Array":r.referToSelf(h=>(d,x)=>u(i(x),d,h,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":r.referToSelf(h=>(d,x)=>a(d,0)?s(x.size(),x.storage()):x.storage()==="dense"?u(x,d,h,!0):o(x,d,h,!0))})});var e7="matAlgo02xDS0",r7=["typed","equalScalar"],It=T(e7,r7,e=>{var{typed:r,equalScalar:t}=e;return function(i,a,s,c){var f=i._data,o=i._size,u=i._datatype||i.getDataType(),p=a._values,h=a._index,d=a._ptr,x=a._size,v=a._datatype||a._data===void 0?a._datatype:a.getDataType();if(o.length!==x.length)throw new pr(o.length,x.length);if(o[0]!==x[0]||o[1]!==x[1])throw new RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+x+")");if(!p)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var y=o[0],w=o[1],C,b=t,A=0,E=s;typeof u=="string"&&u===v&&u!=="mixed"&&(C=u,b=r.find(t,[C,C]),A=r.convert(0,C),E=r.find(s,[C,C]));for(var S=[],O=[],F=[],M=0;M{var{typed:r}=e;return function(n,i,a,s){var c=n._data,f=n._size,o=n._datatype||n.getDataType(),u=i._values,p=i._index,h=i._ptr,d=i._size,x=i._datatype||i._data===void 0?i._datatype:i.getDataType();if(f.length!==d.length)throw new pr(f.length,d.length);if(f[0]!==d[0]||f[1]!==d[1])throw new RangeError("Dimension mismatch. Matrix A ("+f+") must match Matrix B ("+d+")");if(!u)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var v=f[0],y=f[1],w,C=0,b=a;typeof o=="string"&&o===x&&o!=="mixed"&&(w=o,C=r.convert(0,w),b=r.find(a,[w,w]));for(var A=[],E=0;E{var{typed:r,equalScalar:t}=e;return function(i,a,s){var c=i._values,f=i._index,o=i._ptr,u=i._size,p=i._datatype||i._data===void 0?i._datatype:i.getDataType(),h=a._values,d=a._index,x=a._ptr,v=a._size,y=a._datatype||a._data===void 0?a._datatype:a.getDataType();if(u.length!==v.length)throw new pr(u.length,v.length);if(u[0]!==v[0]||u[1]!==v[1])throw new RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+v+")");var w=u[0],C=u[1],b,A=t,E=0,S=s;typeof p=="string"&&p===y&&p!=="mixed"&&(b=p,A=r.find(t,[b,b]),E=r.convert(0,b),S=r.find(s,[b,b]));var O=c&&h?[]:void 0,F=[],M=[],_=O?[]:void 0,k=O?[]:void 0,L=[],Y=[],$,V,q,R;for(V=0;V{var{typed:r}=e;return function(i,a,s){var c=i._data,f=i._size,o=i._datatype,u=a._data,p=a._size,h=a._datatype,d=[];if(f.length!==p.length)throw new pr(f.length,p.length);for(var x=0;x0?t(y,0,d,d[0],c,u):[];return i.createDenseMatrix({data:w,size:d,datatype:v})};function t(n,i,a,s,c,f){var o=[];if(i===a.length-1)for(var u=0;u{var{concat:r}=e;return function(i,a){var s=Math.max(i._size.length,a._size.length);if(i._size.length===a._size.length&&i._size.every((x,v)=>x===a._size[v]))return[i,a];for(var c=t(i._size,s,0),f=t(a._size,s,0),o=[],u=0;u{var{typed:r,matrix:t,concat:n}=e,i=xb({typed:r}),a=Bt({typed:r}),s=yb({concat:n});return function(f){var o=f.elop,u=f.SD||f.DS,p;o?(p={"DenseMatrix, DenseMatrix":(v,y)=>i(...s(v,y),o),"Array, Array":(v,y)=>i(...s(t(v),t(y)),o).valueOf(),"Array, DenseMatrix":(v,y)=>i(...s(t(v),y),o),"DenseMatrix, Array":(v,y)=>i(...s(v,t(y)),o)},f.SS&&(p["SparseMatrix, SparseMatrix"]=(v,y)=>f.SS(...s(v,y),o,!1)),f.DS&&(p["DenseMatrix, SparseMatrix"]=(v,y)=>f.DS(...s(v,y),o,!1),p["Array, SparseMatrix"]=(v,y)=>f.DS(...s(t(v),y),o,!1)),u&&(p["SparseMatrix, DenseMatrix"]=(v,y)=>u(...s(y,v),o,!0),p["SparseMatrix, Array"]=(v,y)=>u(...s(t(y),v),o,!0))):(p={"DenseMatrix, DenseMatrix":r.referToSelf(v=>(y,w)=>i(...s(y,w),v)),"Array, Array":r.referToSelf(v=>(y,w)=>i(...s(t(y),t(w)),v).valueOf()),"Array, DenseMatrix":r.referToSelf(v=>(y,w)=>i(...s(t(y),w),v)),"DenseMatrix, Array":r.referToSelf(v=>(y,w)=>i(...s(y,t(w)),v))},f.SS&&(p["SparseMatrix, SparseMatrix"]=r.referToSelf(v=>(y,w)=>f.SS(...s(y,w),v,!1))),f.DS&&(p["DenseMatrix, SparseMatrix"]=r.referToSelf(v=>(y,w)=>f.DS(...s(y,w),v,!1)),p["Array, SparseMatrix"]=r.referToSelf(v=>(y,w)=>f.DS(...s(t(y),w),v,!1))),u&&(p["SparseMatrix, DenseMatrix"]=r.referToSelf(v=>(y,w)=>u(...s(w,y),v,!0)),p["SparseMatrix, Array"]=r.referToSelf(v=>(y,w)=>u(...s(t(w),y),v,!0))));var h=f.scalar||"any",d=f.Ds||f.Ss;d&&(o?(p["DenseMatrix,"+h]=(v,y)=>a(v,y,o,!1),p[h+", DenseMatrix"]=(v,y)=>a(y,v,o,!0),p["Array,"+h]=(v,y)=>a(t(v),y,o,!1).valueOf(),p[h+", Array"]=(v,y)=>a(t(y),v,o,!0).valueOf()):(p["DenseMatrix,"+h]=r.referToSelf(v=>(y,w)=>a(y,w,v,!1)),p[h+", DenseMatrix"]=r.referToSelf(v=>(y,w)=>a(w,y,v,!0)),p["Array,"+h]=r.referToSelf(v=>(y,w)=>a(t(y),w,v,!1).valueOf()),p[h+", Array"]=r.referToSelf(v=>(y,w)=>a(t(w),y,v,!0).valueOf())));var x=f.sS!==void 0?f.sS:f.Ss;return o?(f.Ss&&(p["SparseMatrix,"+h]=(v,y)=>f.Ss(v,y,o,!1)),x&&(p[h+", SparseMatrix"]=(v,y)=>x(y,v,o,!0))):(f.Ss&&(p["SparseMatrix,"+h]=r.referToSelf(v=>(y,w)=>f.Ss(y,w,v,!1))),x&&(p[h+", SparseMatrix"]=r.referToSelf(v=>(y,w)=>x(w,y,v,!0)))),o&&o.signatures&&dc(p,o.signatures),p}});var bb="mod",p7=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix","concat"],Uc=T(bb,p7,e=>{var{typed:r,config:t,round:n,matrix:i,equalScalar:a,zeros:s,DenseMatrix:c,concat:f}=e,o=qc({typed:r,config:t,round:n,matrix:i,equalScalar:a,zeros:s,DenseMatrix:c}),u=It({typed:r,equalScalar:a}),p=ft({typed:r}),h=Do({typed:r,equalScalar:a}),d=Jr({typed:r,equalScalar:a}),x=Lr({typed:r,DenseMatrix:c}),v=vr({typed:r,matrix:i,concat:f});return r(bb,{"number, number":y,"BigNumber, BigNumber":function(C,b){return b.isZero()?C:C.sub(b.mul(o(C.div(b))))},"Fraction, Fraction":function(C,b){return b.equals(0)?C:C.sub(b.mul(o(C.div(b))))}},v({SS:h,DS:p,SD:u,Ss:d,sS:x}));function y(w,C){return C===0?w:w-C*o(w/C)}});var m7="matAlgo01xDSid",h7=["typed"],dn=T(m7,h7,e=>{var{typed:r}=e;return function(n,i,a,s){var c=n._data,f=n._size,o=n._datatype||n.getDataType(),u=i._values,p=i._index,h=i._ptr,d=i._size,x=i._datatype||i._data===void 0?i._datatype:i.getDataType();if(f.length!==d.length)throw new pr(f.length,d.length);if(f[0]!==d[0]||f[1]!==d[1])throw new RangeError("Dimension mismatch. Matrix A ("+f+") must match Matrix B ("+d+")");if(!u)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var v=f[0],y=f[1],w=typeof o=="string"&&o!=="mixed"&&o===x?o:void 0,C=w?r.find(a,[w,w]):a,b,A,E=[];for(b=0;b{var{typed:r,equalScalar:t}=e;return function(i,a,s){var c=i._values,f=i._index,o=i._ptr,u=i._size,p=i._datatype||i._data===void 0?i._datatype:i.getDataType(),h=a._values,d=a._index,x=a._ptr,v=a._size,y=a._datatype||a._data===void 0?a._datatype:a.getDataType();if(u.length!==v.length)throw new pr(u.length,v.length);if(u[0]!==v[0]||u[1]!==v[1])throw new RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+v+")");var w=u[0],C=u[1],b,A=t,E=0,S=s;typeof p=="string"&&p===y&&p!=="mixed"&&(b=p,A=r.find(t,[b,b]),E=r.convert(0,b),S=r.find(s,[b,b]));var O=c&&h?[]:void 0,F=[],M=[],_=c&&h?[]:void 0,k=c&&h?[]:void 0,L=[],Y=[],$,V,q,R,j;for(V=0;V{var{typed:r,DenseMatrix:t}=e;return function(i,a,s,c){var f=i._values,o=i._index,u=i._ptr,p=i._size,h=i._datatype;if(!f)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var d=p[0],x=p[1],v,y=s;typeof h=="string"&&(v=h,a=r.convert(a,v),y=r.find(s,[v,v]));for(var w=[],C=[],b=[],A=0;AArray.isArray(r))}var Sb=T(wb,y7,e=>{var{typed:r,matrix:t,config:n,round:i,equalScalar:a,zeros:s,BigNumber:c,DenseMatrix:f,concat:o}=e,u=Uc({typed:r,config:n,round:i,matrix:t,equalScalar:a,zeros:s,DenseMatrix:f,concat:o}),p=dn({typed:r}),h=ou({typed:r,equalScalar:a}),d=Un({typed:r,DenseMatrix:f}),x=vr({typed:r,matrix:t,concat:o});return r(wb,{"number, number":v,"BigNumber, BigNumber":y,"Fraction, Fraction":(w,C)=>w.gcd(C)},x({SS:h,DS:p,Ss:d}),{[b7]:r.referToSelf(w=>(C,b,A)=>{for(var E=w(C,b),S=0;SC=>{if(C.length===1&&Array.isArray(C[0])&&Db(C[0]))return w(...C[0]);if(Db(C))return w(...C);throw new jn("gcd() supports only 1d matrices!")}),Matrix:r.referToSelf(w=>C=>w(C.toArray()))});function v(w,C){if(!He(w)||!He(C))throw new Error("Parameters in function gcd must be integer numbers");for(var b;C!==0;)b=u(w,C),w=C,C=b;return w<0?-w:w}function y(w,C){if(!w.isInt()||!C.isInt())throw new Error("Parameters in function gcd must be integer numbers");for(var b=new c(0);!C.isZero();){var A=u(w,C);w=C,C=A}return w.lt(b)?w.neg():w}});var w7="matAlgo06xS0S0",D7=["typed","equalScalar"],So=T(w7,D7,e=>{var{typed:r,equalScalar:t}=e;return function(i,a,s){var c=i._values,f=i._size,o=i._datatype||i._data===void 0?i._datatype:i.getDataType(),u=a._values,p=a._size,h=a._datatype||a._data===void 0?a._datatype:a.getDataType();if(f.length!==p.length)throw new pr(f.length,p.length);if(f[0]!==p[0]||f[1]!==p[1])throw new RangeError("Dimension mismatch. Matrix A ("+f+") must match Matrix B ("+p+")");var d=f[0],x=f[1],v,y=t,w=0,C=s;typeof o=="string"&&o===h&&o!=="mixed"&&(v=o,y=r.find(t,[v,v]),w=r.convert(0,v),C=r.find(s,[v,v]));for(var b=c&&u?[]:void 0,A=[],E=[],S=b?[]:void 0,O=[],F=[],M=0;M{var{typed:r,matrix:t,equalScalar:n,concat:i}=e,a=It({typed:r,equalScalar:n}),s=So({typed:r,equalScalar:n}),c=Jr({typed:r,equalScalar:n}),f=vr({typed:r,matrix:t,concat:i}),o="number | BigNumber | Fraction | Matrix | Array",u={};return u["".concat(o,", ").concat(o,", ...").concat(o)]=r.referToSelf(h=>(d,x,v)=>{for(var y=h(d,x),w=0;wh.lcm(d)},f({SS:s,DS:a,Ss:c}),u);function p(h,d){if(!h.isInt()||!d.isInt())throw new Error("Parameters in function lcm must be integer numbers");if(h.isZero())return h;if(d.isZero())return d;for(var x=h.times(d);!d.isZero();){var v=d;d=h.mod(v),h=v}return x.div(h).abs()}});var Eb="log10",N7=["typed","config","Complex"],Cb=T(Eb,N7,e=>{var{typed:r,config:t,Complex:n}=e;return r(Eb,{number:function(a){return a>=0||t.predictable?xv(a):new n(a,0).log().div(Math.LN10)},Complex:function(a){return new n(a).log().div(Math.LN10)},BigNumber:function(a){return!a.isNegative()||t.predictable?a.log():new n(a.toNumber(),0).log().div(Math.LN10)},"Array | Matrix":r.referToSelf(i=>a=>Je(a,i))})});var Mb="log2",A7=["typed","config","Complex"],_b=T(Mb,A7,e=>{var{typed:r,config:t,Complex:n}=e;return r(Mb,{number:function(s){return s>=0||t.predictable?yv(s):i(new n(s,0))},Complex:i,BigNumber:function(s){return!s.isNegative()||t.predictable?s.log(2):i(new n(s.toNumber(),0))},"Array | Matrix":r.referToSelf(a=>s=>Je(s,a))});function i(a){var s=Math.sqrt(a.re*a.re+a.im*a.im);return new n(Math.log2?Math.log2(s):Math.log(s)/Math.LN2,Math.atan2(a.im,a.re)/Math.LN2)}});var E7="multiplyScalar",C7=["typed"],Tb=T(E7,C7,e=>{var{typed:r}=e;return r("multiplyScalar",{"number, number":cv,"Complex, Complex":function(n,i){return n.mul(i)},"BigNumber, BigNumber":function(n,i){return n.times(i)},"Fraction, Fraction":function(n,i){return n.mul(i)},"number | Fraction | BigNumber | Complex, Unit":(t,n)=>n.multiply(t),"Unit, number | Fraction | BigNumber | Complex | Unit":(t,n)=>t.multiply(n)})});var Fb="multiply",M7=["typed","matrix","addScalar","multiplyScalar","equalScalar","dot"],Ob=T(Fb,M7,e=>{var{typed:r,matrix:t,addScalar:n,multiplyScalar:i,equalScalar:a,dot:s}=e,c=Jr({typed:r,equalScalar:a}),f=Bt({typed:r});function o(E,S){switch(E.length){case 1:switch(S.length){case 1:if(E[0]!==S[0])throw new RangeError("Dimension mismatch in multiplication. Vectors must have the same length");break;case 2:if(E[0]!==S[0])throw new RangeError("Dimension mismatch in multiplication. Vector length ("+E[0]+") must match Matrix rows ("+S[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+S.length+" dimensions)")}break;case 2:switch(S.length){case 1:if(E[1]!==S[0])throw new RangeError("Dimension mismatch in multiplication. Matrix columns ("+E[1]+") must match Vector length ("+S[0]+")");break;case 2:if(E[1]!==S[0])throw new RangeError("Dimension mismatch in multiplication. Matrix A columns ("+E[1]+") must match Matrix B rows ("+S[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+S.length+" dimensions)")}break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix A has "+E.length+" dimensions)")}}function u(E,S,O){if(O===0)throw new Error("Cannot multiply two empty vectors");return s(E,S)}function p(E,S){if(S.storage()!=="dense")throw new Error("Support for SparseMatrix not implemented");return h(E,S)}function h(E,S){var O=E._data,F=E._size,M=E._datatype||E.getDataType(),_=S._data,k=S._size,L=S._datatype||S.getDataType(),Y=F[0],$=k[1],V,q=n,R=i;M&&L&&M===L&&typeof M=="string"&&M!=="mixed"&&(V=M,q=r.find(n,[V,V]),R=r.find(i,[V,V]));for(var j=[],U=0;U<$;U++){for(var oe=R(O[0],_[0][U]),me=1;mege)for(var xe=0,be=0;be(S,O)=>{o(or(S),or(O));var F=E(t(S),t(O));return Ge(F)?F.valueOf():F}),"Matrix, Matrix":function(S,O){var F=S.size(),M=O.size();return o(F,M),F.length===1?M.length===1?u(S,O,F[0]):p(S,O):M.length===1?d(S,O):x(S,O)},"Matrix, Array":r.referTo("Matrix,Matrix",E=>(S,O)=>E(S,t(O))),"Array, Matrix":r.referToSelf(E=>(S,O)=>E(t(S,O.storage()),O)),"SparseMatrix, any":function(S,O){return c(S,O,i,!1)},"DenseMatrix, any":function(S,O){return f(S,O,i,!1)},"any, SparseMatrix":function(S,O){return c(O,S,i,!0)},"any, DenseMatrix":function(S,O){return f(O,S,i,!0)},"Array, any":function(S,O){return f(t(S),O,i,!1).valueOf()},"any, Array":function(S,O){return f(t(O),S,i,!0).valueOf()},"any, any":i,"any, any, ...any":r.referToSelf(E=>(S,O,F)=>{for(var M=E(S,O),_=0;_{var{typed:r,matrix:t,equalScalar:n,BigNumber:i,concat:a}=e,s=dn({typed:r}),c=It({typed:r,equalScalar:n}),f=So({typed:r,equalScalar:n}),o=Jr({typed:r,equalScalar:n}),u=vr({typed:r,matrix:t,concat:a});function p(){throw new Error("Complex number not supported in function nthRoot. Use nthRoots instead.")}return r(Bb,{number:bv,"number, number":bv,BigNumber:d=>h(d,new i(2)),"BigNumber, BigNumber":h,Complex:p,"Complex, number":p,Array:r.referTo("DenseMatrix,number",d=>x=>d(t(x),2).valueOf()),DenseMatrix:r.referTo("DenseMatrix,number",d=>x=>d(x,2)),SparseMatrix:r.referTo("SparseMatrix,number",d=>x=>d(x,2)),"SparseMatrix, SparseMatrix":r.referToSelf(d=>(x,v)=>{if(v.density()===1)return f(x,v,d);throw new Error("Root must be non-zero")}),"DenseMatrix, SparseMatrix":r.referToSelf(d=>(x,v)=>{if(v.density()===1)return s(x,v,d,!1);throw new Error("Root must be non-zero")}),"Array, SparseMatrix":r.referTo("DenseMatrix,SparseMatrix",d=>(x,v)=>d(t(x),v)),"number | BigNumber, SparseMatrix":r.referToSelf(d=>(x,v)=>{if(v.density()===1)return o(v,x,d,!0);throw new Error("Root must be non-zero")})},u({scalar:"number | BigNumber",SD:c,Ss:o,sS:!1}));function h(d,x){var v=i.precision,y=i.clone({precision:v+2}),w=new i(0),C=new y(1),b=x.isNegative();if(b&&(x=x.neg()),x.isZero())throw new Error("Root must be non-zero");if(d.isNegative()&&!x.abs().mod(2).equals(1))throw new Error("Root must be odd when a is negative.");if(d.isZero())return b?new y(1/0):0;if(!d.isFinite())return b?w:d;var A=d.abs().pow(C.div(x));return A=d.isNeg()?A.neg():A,new i((b?C.div(A):A).toPrecision(v))}});var Pb="sign",T7=["typed","BigNumber","Fraction","complex"],kb=T(Pb,T7,e=>{var{typed:r,BigNumber:t,complex:n,Fraction:i}=e;return r(Pb,{number:kc,Complex:function(s){return s.im===0?n(kc(s.re)):s.sign()},BigNumber:function(s){return new t(s.cmp(0))},Fraction:function(s){return new i(s.s,1)},"Array | Matrix":r.referToSelf(a=>s=>Je(s,a,!0)),Unit:r.referToSelf(a=>s=>{if(!s._isDerived()&&s.units[0].unit.offset!==0)throw new TypeError("sign is ambiguous for units with offset");return r.find(a,s.valueType())(s.value)})})});var F7="sqrt",O7=["config","typed","Complex"],Rb=T(F7,O7,e=>{var{config:r,typed:t,Complex:n}=e;return t("sqrt",{number:i,Complex:function(s){return s.sqrt()},BigNumber:function(s){return!s.isNegative()||r.predictable?s.sqrt():i(s.toNumber())},Unit:function(s){return s.pow(.5)}});function i(a){return isNaN(a)?NaN:a>=0||r.predictable?Math.sqrt(a):new n(a,0).sqrt()}});var Lb="square",B7=["typed"],qb=T(Lb,B7,e=>{var{typed:r}=e;return r(Lb,{number:wv,Complex:function(n){return n.mul(n)},BigNumber:function(n){return n.times(n)},Fraction:function(n){return n.mul(n)},Unit:function(n){return n.pow(2)}})});var Ub="subtract",I7=["typed","matrix","equalScalar","subtractScalar","unaryMinus","DenseMatrix","concat"],zb=T(Ub,I7,e=>{var{typed:r,matrix:t,equalScalar:n,subtractScalar:i,unaryMinus:a,DenseMatrix:s,concat:c}=e,f=dn({typed:r}),o=ft({typed:r}),u=Do({typed:r,equalScalar:n}),p=Un({typed:r,DenseMatrix:s}),h=Lr({typed:r,DenseMatrix:s}),d=vr({typed:r,matrix:t,concat:c});return r(Ub,{"any, any":i},d({elop:i,SS:u,DS:f,SD:o,Ss:h,sS:p}))});var Wb="xgcd",P7=["typed","config","matrix","BigNumber"],Vb=T(Wb,P7,e=>{var{typed:r,config:t,matrix:n,BigNumber:i}=e;return r(Wb,{"number, number":function(c,f){var o=Dv(c,f);return t.matrix==="Array"?o:n(o)},"BigNumber, BigNumber":a});function a(s,c){var f,o,u,p=new i(0),h=new i(1),d=p,x=h,v=h,y=p;if(!s.isInt()||!c.isInt())throw new Error("Parameters in function xgcd must be integer numbers");for(;!c.isZero();)o=s.div(c).floor(),u=s.mod(c),f=d,d=x.minus(o.times(d)),x=f,f=v,v=y.minus(o.times(v)),y=f,s=c,c=u;var w;return s.lt(p)?w=[s.neg(),x.neg(),y.neg()]:w=[s,s.isZero()?0:x,y],t.matrix==="Array"?w:n(w)}});var Yb="invmod",k7=["typed","config","BigNumber","xgcd","equal","smaller","mod","add","isInteger"],Hb=T(Yb,k7,e=>{var{typed:r,config:t,BigNumber:n,xgcd:i,equal:a,smaller:s,mod:c,add:f,isInteger:o}=e;return r(Yb,{"number, number":u,"BigNumber, BigNumber":u});function u(p,h){if(!o(p)||!o(h))throw new Error("Parameters in function invmod must be integer numbers");if(p=c(p,h),a(h,0))throw new Error("Divisor must be non zero");var d=i(p,h);d=d.valueOf();var[x,v]=d;return a(x,n(1))?(v=c(v,h),s(v,n(0))&&(v=f(v,h)),v):NaN}});var R7="matAlgo09xS0Sf",L7=["typed","equalScalar"],zc=T(R7,L7,e=>{var{typed:r,equalScalar:t}=e;return function(i,a,s){var c=i._values,f=i._index,o=i._ptr,u=i._size,p=i._datatype||i._data===void 0?i._datatype:i.getDataType(),h=a._values,d=a._index,x=a._ptr,v=a._size,y=a._datatype||a._data===void 0?a._datatype:a.getDataType();if(u.length!==v.length)throw new pr(u.length,v.length);if(u[0]!==v[0]||u[1]!==v[1])throw new RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+v+")");var w=u[0],C=u[1],b,A=t,E=0,S=s;typeof p=="string"&&p===y&&p!=="mixed"&&(b=p,A=r.find(t,[b,b]),E=r.convert(0,b),S=r.find(s,[b,b]));var O=c&&h?[]:void 0,F=[],M=[],_=O?[]:void 0,k=[],L,Y,$,V,q;for(Y=0;Y{var{typed:r,matrix:t,equalScalar:n,multiplyScalar:i,concat:a}=e,s=It({typed:r,equalScalar:n}),c=zc({typed:r,equalScalar:n}),f=Jr({typed:r,equalScalar:n}),o=vr({typed:r,matrix:t,concat:a});return r(Gb,o({elop:i,SS:c,DS:s,Ss:f}))});function Zb(e,r){if(e.isFinite()&&!e.isInteger()||r.isFinite()&&!r.isInteger())throw new Error("Integers expected in function bitAnd");var t=e.constructor;if(e.isNaN()||r.isNaN())return new t(NaN);if(e.isZero()||r.eq(-1)||e.eq(r))return e;if(r.isZero()||e.eq(-1))return r;if(!e.isFinite()||!r.isFinite()){if(!e.isFinite()&&!r.isFinite())return e.isNegative()===r.isNegative()?e:new t(0);if(!e.isFinite())return r.isNegative()?e:e.isNegative()?new t(0):r;if(!r.isFinite())return e.isNegative()?r:r.isNegative()?new t(0):e}return fg(e,r,function(n,i){return n&i})}function su(e){if(e.isFinite()&&!e.isInteger())throw new Error("Integer expected in function bitNot");var r=e.constructor,t=r.precision;r.config({precision:1e9});var n=e.plus(new r(1));return n.s=-n.s||null,r.config({precision:t}),n}function Qb(e,r){if(e.isFinite()&&!e.isInteger()||r.isFinite()&&!r.isInteger())throw new Error("Integers expected in function bitOr");var t=e.constructor;if(e.isNaN()||r.isNaN())return new t(NaN);var n=new t(-1);return e.isZero()||r.eq(n)||e.eq(r)?r:r.isZero()||e.eq(n)?e:!e.isFinite()||!r.isFinite()?!e.isFinite()&&!e.isNegative()&&r.isNegative()||e.isNegative()&&!r.isNegative()&&!r.isFinite()?n:e.isNegative()&&r.isNegative()?e.isFinite()?e:r:e.isFinite()?r:e:fg(e,r,function(i,a){return i|a})}function fg(e,r,t){var n=e.constructor,i,a,s=+(e.s<0),c=+(r.s<0);if(s){i=Wc(su(e));for(var f=0;f0;)t(u[--d],p[--x])===v&&(y=y.plus(w)),w=w.times(C);for(;x>0;)t(h,p[--x])===v&&(y=y.plus(w)),w=w.times(C);return n.config({precision:b}),v===0&&(y.s=-y.s),y}function Wc(e){for(var r=e.d,t=r[0]+"",n=1;n0)if(++c>o)for(c-=o;c--;)f+="0";else c1&&((u[d+1]===null||u[d+1]===void 0)&&(u[d+1]=0),u[d+1]+=u[d]>>1,u[d]&=1)}return u.reverse()}function Xb(e,r){if(e.isFinite()&&!e.isInteger()||r.isFinite()&&!r.isInteger())throw new Error("Integers expected in function bitXor");var t=e.constructor;if(e.isNaN()||r.isNaN())return new t(NaN);if(e.isZero())return r;if(r.isZero())return e;if(e.eq(r))return new t(0);var n=new t(-1);return e.eq(n)?su(r):r.eq(n)?su(e):!e.isFinite()||!r.isFinite()?!e.isFinite()&&!r.isFinite()?n:new t(e.isNegative()===r.isNegative()?1/0:-1/0):fg(e,r,function(i,a){return i^a})}function Jb(e,r){if(e.isFinite()&&!e.isInteger()||r.isFinite()&&!r.isInteger())throw new Error("Integers expected in function leftShift");var t=e.constructor;return e.isNaN()||r.isNaN()||r.isNegative()&&!r.isZero()?new t(NaN):e.isZero()||r.isZero()?e:!e.isFinite()&&!r.isFinite()?new t(NaN):r.lt(55)?e.times(Math.pow(2,r.toNumber())+""):e.times(new t(2).pow(r))}function Kb(e,r){if(e.isFinite()&&!e.isInteger()||r.isFinite()&&!r.isInteger())throw new Error("Integers expected in function rightArithShift");var t=e.constructor;return e.isNaN()||r.isNaN()||r.isNegative()&&!r.isZero()?new t(NaN):e.isZero()||r.isZero()?e:r.isFinite()?r.lt(55)?e.div(Math.pow(2,r.toNumber())+"").floor():e.div(new t(2).pow(r)).floor():e.isNegative()?new t(-1):e.isFinite()?new t(0):new t(NaN)}var jb="bitAnd",U7=["typed","matrix","equalScalar","concat"],Vc=T(jb,U7,e=>{var{typed:r,matrix:t,equalScalar:n,concat:i}=e,a=It({typed:r,equalScalar:n}),s=So({typed:r,equalScalar:n}),c=Jr({typed:r,equalScalar:n}),f=vr({typed:r,matrix:t,concat:i});return r(jb,{"number, number":Nv,"BigNumber, BigNumber":Zb},f({SS:s,DS:a,Ss:c}))});var ew="bitNot",z7=["typed"],rw=T(ew,z7,e=>{var{typed:r}=e;return r(ew,{number:Av,BigNumber:su,"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var tw="bitOr",W7=["typed","matrix","equalScalar","DenseMatrix","concat"],Yc=T(tw,W7,e=>{var{typed:r,matrix:t,equalScalar:n,DenseMatrix:i,concat:a}=e,s=dn({typed:r}),c=ou({typed:r,equalScalar:n}),f=Un({typed:r,DenseMatrix:i}),o=vr({typed:r,matrix:t,concat:a});return r(tw,{"number, number":Ev,"BigNumber, BigNumber":Qb},o({SS:c,DS:s,Ss:f}))});var V7="matAlgo07xSSf",Y7=["typed","DenseMatrix"],Vt=T(V7,Y7,e=>{var{typed:r,DenseMatrix:t}=e;return function(a,s,c){var f=a._size,o=a._datatype||a._data===void 0?a._datatype:a.getDataType(),u=s._size,p=s._datatype||s._data===void 0?s._datatype:s.getDataType();if(f.length!==u.length)throw new pr(f.length,u.length);if(f[0]!==u[0]||f[1]!==u[1])throw new RangeError("Dimension mismatch. Matrix A ("+f+") must match Matrix B ("+u+")");var h=f[0],d=f[1],x,v=0,y=c;typeof o=="string"&&o===p&&o!=="mixed"&&(x=o,v=r.convert(0,x),y=r.find(c,[x,x]));var w,C,b=[];for(w=0;w{var{typed:r,matrix:t,DenseMatrix:n,concat:i}=e,a=ft({typed:r}),s=Vt({typed:r,DenseMatrix:n}),c=Lr({typed:r,DenseMatrix:n}),f=vr({typed:r,matrix:t,concat:i});return r(nw,{"number, number":Cv,"BigNumber, BigNumber":Xb},f({SS:s,DS:a,Ss:c}))});var aw="arg",G7=["typed"],ow=T(aw,G7,e=>{var{typed:r}=e;return r(aw,{number:function(n){return Math.atan2(0,n)},BigNumber:function(n){return n.constructor.atan2(0,n)},Complex:function(n){return n.arg()},"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var sw="conj",$7=["typed"],uw=T(sw,$7,e=>{var{typed:r}=e;return r(sw,{"number | BigNumber | Fraction":t=>t,Complex:t=>t.conjugate(),"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var fw="im",Z7=["typed"],lw=T(fw,Z7,e=>{var{typed:r}=e;return r(fw,{number:()=>0,"BigNumber | Fraction":t=>t.mul(0),Complex:t=>t.im,"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var cw="re",Q7=["typed"],pw=T(cw,Q7,e=>{var{typed:r}=e;return r(cw,{"number | BigNumber | Fraction":t=>t,Complex:t=>t.re,"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var mw="not",X7=["typed"],hw=T(mw,X7,e=>{var{typed:r}=e;return r(mw,{"null | undefined":()=>!0,number:Bv,Complex:function(n){return n.re===0&&n.im===0},BigNumber:function(n){return n.isZero()||n.isNaN()},Unit:r.referToSelf(t=>n=>r.find(t,n.valueType())(n.value)),"Array | Matrix":r.referToSelf(t=>n=>Je(n,t))})});var dw="or",J7=["typed","matrix","equalScalar","DenseMatrix","concat"],Hc=T(dw,J7,e=>{var{typed:r,matrix:t,equalScalar:n,DenseMatrix:i,concat:a}=e,s=ft({typed:r}),c=Do({typed:r,equalScalar:n}),f=Lr({typed:r,DenseMatrix:i}),o=vr({typed:r,matrix:t,concat:a});return r(dw,{"number, number":Iv,"Complex, Complex":function(p,h){return p.re!==0||p.im!==0||h.re!==0||h.im!==0},"BigNumber, BigNumber":function(p,h){return!p.isZero()&&!p.isNaN()||!h.isZero()&&!h.isNaN()},"Unit, Unit":r.referToSelf(u=>(p,h)=>u(p.value||0,h.value||0))},o({SS:c,DS:s,Ss:f}))});var vw="xor",K7=["typed","matrix","DenseMatrix","concat"],gw=T(vw,K7,e=>{var{typed:r,matrix:t,DenseMatrix:n,concat:i}=e,a=ft({typed:r}),s=Vt({typed:r,DenseMatrix:n}),c=Lr({typed:r,DenseMatrix:n}),f=vr({typed:r,matrix:t,concat:i});return r(vw,{"number, number":Pv,"Complex, Complex":function(u,p){return(u.re!==0||u.im!==0)!=(p.re!==0||p.im!==0)},"BigNumber, BigNumber":function(u,p){return(!u.isZero()&&!u.isNaN())!=(!p.isZero()&&!p.isNaN())},"Unit, Unit":r.referToSelf(o=>(u,p)=>o(u.value||0,p.value||0))},f({SS:s,DS:a,Ss:c}))});var xw="concat",j7=["typed","matrix","isInteger"],Gc=T(xw,j7,e=>{var{typed:r,matrix:t,isInteger:n}=e;return r(xw,{"...Array | Matrix | number | BigNumber":function(a){var s,c=a.length,f=-1,o,u=!1,p=[];for(s=0;s0&&f>o)throw new Xt(f,o+1)}else{var d=tr(h).valueOf(),x=or(d);if(p[s]=d,o=f,f=x.length-1,s>0&&f!==o)throw new pr(o+1,f+1)}}if(p.length===0)throw new SyntaxError("At least one matrix expected");for(var v=p.shift();p.length;)v=Gd(v,p.shift(),f);return u?t(v):v},"...string":function(a){return a.join("")}})});var yw="column",eL=["typed","Index","matrix","range"],$c=T(yw,eL,e=>{var{typed:r,Index:t,matrix:n,range:i}=e;return r(yw,{"Matrix, number":a,"Array, number":function(c,f){return a(n(tr(c)),f).valueOf()}});function a(s,c){if(s.size().length!==2)throw new Error("Only two dimensional matrix is supported");Xr(c,s.size()[1]);var f=i(0,s.size()[0]),o=new t(f,c),u=s.subset(o);return Ge(u)?u:n([[u]])}});var bw="count",rL=["typed","size","prod"],ww=T(bw,rL,e=>{var{typed:r,size:t,prod:n}=e;return r(bw,{string:function(a){return a.length},"Matrix | Array":function(a){return n(t(a))}})});var Dw="cross",tL=["typed","matrix","subtract","multiply"],Sw=T(Dw,tL,e=>{var{typed:r,matrix:t,subtract:n,multiply:i}=e;return r(Dw,{"Matrix, Matrix":function(c,f){return t(a(c.toArray(),f.toArray()))},"Matrix, Array":function(c,f){return t(a(c.toArray(),f))},"Array, Matrix":function(c,f){return t(a(c,f.toArray()))},"Array, Array":a});function a(s,c){var f=Math.max(or(s).length,or(c).length);s=Xs(s),c=Xs(c);var o=or(s),u=or(c);if(o.length!==1||u.length!==1||o[0]!==3||u[0]!==3)throw new RangeError("Vectors with length 3 expected (Size A = ["+o.join(", ")+"], B = ["+u.join(", ")+"])");var p=[n(i(s[1],c[2]),i(s[2],c[1])),n(i(s[2],c[0]),i(s[0],c[2])),n(i(s[0],c[1]),i(s[1],c[0]))];return f>1?[p]:p}});var Nw="diag",nL=["typed","matrix","DenseMatrix","SparseMatrix"],Aw=T(Nw,nL,e=>{var{typed:r,matrix:t,DenseMatrix:n,SparseMatrix:i}=e;return r(Nw,{Array:function(o){return a(o,0,or(o),null)},"Array, number":function(o,u){return a(o,u,or(o),null)},"Array, BigNumber":function(o,u){return a(o,u.toNumber(),or(o),null)},"Array, string":function(o,u){return a(o,0,or(o),u)},"Array, number, string":function(o,u,p){return a(o,u,or(o),p)},"Array, BigNumber, string":function(o,u,p){return a(o,u.toNumber(),or(o),p)},Matrix:function(o){return a(o,0,o.size(),o.storage())},"Matrix, number":function(o,u){return a(o,u,o.size(),o.storage())},"Matrix, BigNumber":function(o,u){return a(o,u.toNumber(),o.size(),o.storage())},"Matrix, string":function(o,u){return a(o,0,o.size(),u)},"Matrix, number, string":function(o,u,p){return a(o,u,o.size(),p)},"Matrix, BigNumber, string":function(o,u,p){return a(o,u.toNumber(),o.size(),p)}});function a(f,o,u,p){if(!He(o))throw new TypeError("Second parameter in function diag must be an integer");var h=o>0?o:0,d=o<0?-o:0;switch(u.length){case 1:return s(f,o,p,u[0],d,h);case 2:return c(f,o,p,u,d,h)}throw new RangeError("Matrix for function diag must be 2 dimensional")}function s(f,o,u,p,h,d){var x=[p+h,p+d];if(u&&u!=="sparse"&&u!=="dense")throw new TypeError("Unknown matrix type ".concat(u,'"'));var v=u==="sparse"?i.diagonal(x,f,o):n.diagonal(x,f,o);return u!==null?v:v.valueOf()}function c(f,o,u,p,h,d){if(Ge(f)){var x=f.diagonal(o);return u!==null?u!==x.storage()?t(x,u):x:x.valueOf()}for(var v=Math.min(p[0]-h,p[1]-d),y=[],w=0;w=2&&v.push("index: ".concat(_r(t))),d.length>=3&&v.push("array: ".concat(_r(n))),new TypeError("Function ".concat(i," cannot apply callback arguments ")+"".concat(e.name,"(").concat(v.join(", "),") at index ").concat(JSON.stringify(t)))}else throw new TypeError("Function ".concat(i," cannot apply callback arguments ")+"to function ".concat(e.name,": ").concat(y.message))}}}var iL="filter",aL=["typed"],Cw=T(iL,aL,e=>{var{typed:r}=e;return r("filter",{"Array, function":Ew,"Matrix, function":function(n,i){return n.create(Ew(n.toArray(),i))},"Array, RegExp":Js,"Matrix, RegExp":function(n,i){return n.create(Js(n.toArray(),i))}})});function Ew(e,r){return Sc(e,function(t,n,i){return vi(r,t,[n],i,"filter")})}var Mw="flatten",oL=["typed","matrix"],_w=T(Mw,oL,e=>{var{typed:r,matrix:t}=e;return r(Mw,{Array:function(i){return gr(i)},Matrix:function(i){var a=gr(i.toArray());return t(a)}})});var Tw="forEach",sL=["typed"],Fw=T(Tw,sL,e=>{var{typed:r}=e;return r(Tw,{"Array, function":uL,"Matrix, function":function(n,i){n.forEach(i)}})});function uL(e,r){var t=function n(i,a){if(Array.isArray(i))mo(i,function(s,c){n(s,a.concat(c))});else return vi(r,i,a,e,"forEach")};t(e,[])}var Ow="getMatrixDataType",fL=["typed"],Bw=T(Ow,fL,e=>{var{typed:r}=e;return r(Ow,{Array:function(n){return ho(n,_r)},Matrix:function(n){return n.getDataType()}})});var Iw="identity",lL=["typed","config","matrix","BigNumber","DenseMatrix","SparseMatrix"],Pw=T(Iw,lL,e=>{var{typed:r,config:t,matrix:n,BigNumber:i,DenseMatrix:a,SparseMatrix:s}=e;return r(Iw,{"":function(){return t.matrix==="Matrix"?n([]):[]},string:function(u){return n(u)},"number | BigNumber":function(u){return f(u,u,t.matrix==="Matrix"?"dense":void 0)},"number | BigNumber, string":function(u,p){return f(u,u,p)},"number | BigNumber, number | BigNumber":function(u,p){return f(u,p,t.matrix==="Matrix"?"dense":void 0)},"number | BigNumber, number | BigNumber, string":function(u,p,h){return f(u,p,h)},Array:function(u){return c(u)},"Array, string":function(u,p){return c(u,p)},Matrix:function(u){return c(u.valueOf(),u.storage())},"Matrix, string":function(u,p){return c(u.valueOf(),p)}});function c(o,u){switch(o.length){case 0:return u?n(u):[];case 1:return f(o[0],o[0],u);case 2:return f(o[0],o[1],u);default:throw new Error("Vector containing two values expected")}}function f(o,u,p){var h=je(o)||je(u)?i:null;if(je(o)&&(o=o.toNumber()),je(u)&&(u=u.toNumber()),!He(o)||o<1)throw new Error("Parameters in function identity must be positive integers");if(!He(u)||u<1)throw new Error("Parameters in function identity must be positive integers");var d=h?new i(1):1,x=h?new h(0):0,v=[o,u];if(p){if(p==="sparse")return s.diagonal(v,d,0,x);if(p==="dense")return a.diagonal(v,d,0,x);throw new TypeError('Unknown matrix type "'.concat(p,'"'))}for(var y=Wi([],v,x),w=o{var{typed:r,matrix:t,multiplyScalar:n}=e;return r(kw,{"Matrix, Matrix":function(s,c){return t(i(s.toArray(),c.toArray()))},"Matrix, Array":function(s,c){return t(i(s.toArray(),c))},"Array, Matrix":function(s,c){return t(i(s,c.toArray()))},"Array, Array":i});function i(a,s){if(or(a).length===1&&(a=[a]),or(s).length===1&&(s=[s]),or(a).length>2||or(s).length>2)throw new RangeError("Vectors with dimensions greater then 2 are not supported expected (Size x = "+JSON.stringify(a.length)+", y = "+JSON.stringify(s.length)+")");var c=[],f=[];return a.map(function(o){return s.map(function(u){return f=[],c.push(f),o.map(function(p){return u.map(function(h){return f.push(n(p,h))})})})})&&c}});var Lw="map",pL=["typed"],qw=T(Lw,pL,e=>{var{typed:r}=e;return r(Lw,{"Array, function":mL,"Matrix, function":function(n,i){return n.map(i)}})});function mL(e,r){var t=function n(i,a){return Array.isArray(i)?i.map(function(s,c){return n(s,a.concat(c))}):vi(r,i,a,e,"map")};return t(e,[])}var Uw="diff",hL=["typed","matrix","subtract","number"],Zc=T(Uw,hL,e=>{var{typed:r,matrix:t,subtract:n,number:i}=e;return r(Uw,{"Array | Matrix":function(u){return Ge(u)?t(s(u.toArray())):s(u)},"Array | Matrix, number":function(u,p){if(!He(p))throw new RangeError("Dimension must be a whole number");return Ge(u)?t(a(u.toArray(),p)):a(u,p)},"Array, BigNumber":r.referTo("Array,number",o=>(u,p)=>o(u,i(p))),"Matrix, BigNumber":r.referTo("Matrix,number",o=>(u,p)=>o(u,i(p)))});function a(o,u){if(Ge(o)&&(o=o.toArray()),!Array.isArray(o))throw RangeError("Array/Matrix does not have that many dimensions");if(u>0){var p=[];return o.forEach(h=>{p.push(a(h,u-1))}),p}else{if(u===0)return s(o);throw RangeError("Cannot have negative dimension")}}function s(o){for(var u=[],p=o.length,h=1;h{var{typed:r,config:t,matrix:n,BigNumber:i}=e;return r("ones",{"":function(){return t.matrix==="Array"?a([]):a([],"default")},"...number | BigNumber | string":function(o){var u=o[o.length-1];if(typeof u=="string"){var p=o.pop();return a(o,p)}else return t.matrix==="Array"?a(o):a(o,"default")},Array:a,Matrix:function(o){var u=o.storage();return a(o.valueOf(),u)},"Array | Matrix, string":function(o,u){return a(o.valueOf(),u)}});function a(f,o){var u=s(f),p=u?new i(1):1;if(c(f),o){var h=n(o);return f.length>0?h.resize(f,p):h}else{var d=[];return f.length>0?Wi(d,f,p):d}}function s(f){var o=!1;return f.forEach(function(u,p,h){je(u)&&(o=!0,h[p]=u.toNumber())}),o}function c(f){f.forEach(function(o){if(typeof o!="number"||!He(o)||o<0)throw new Error("Parameters in function ones must be positive integers")})}});function uu(){throw new Error('No "bignumber" implementation available')}function Qc(){throw new Error('No "fraction" implementation available')}function Xc(){throw new Error('No "matrix" implementation available')}var Ww="range",gL=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq","add","isPositive"],Jc=T(Ww,gL,e=>{var{typed:r,config:t,matrix:n,bignumber:i,smaller:a,smallerEq:s,larger:c,largerEq:f,add:o,isPositive:u}=e;return r(Ww,{string:h,"string, boolean":h,"number, number":function(y,w){return p(d(y,w,1,!1))},"number, number, number":function(y,w,C){return p(d(y,w,C,!1))},"number, number, boolean":function(y,w,C){return p(d(y,w,1,C))},"number, number, number, boolean":function(y,w,C,b){return p(d(y,w,C,b))},"BigNumber, BigNumber":function(y,w){var C=y.constructor;return p(d(y,w,new C(1),!1))},"BigNumber, BigNumber, BigNumber":function(y,w,C){return p(d(y,w,C,!1))},"BigNumber, BigNumber, boolean":function(y,w,C){var b=y.constructor;return p(d(y,w,new b(1),C))},"BigNumber, BigNumber, BigNumber, boolean":function(y,w,C,b){return p(d(y,w,C,b))},"Unit, Unit, Unit":function(y,w,C){return p(d(y,w,C,!1))},"Unit, Unit, Unit, boolean":function(y,w,C,b){return p(d(y,w,C,b))}});function p(v){return t.matrix==="Matrix"?n?n(v):Xc():v}function h(v,y){var w=x(v);if(!w)throw new SyntaxError('String "'+v+'" is no valid range');return t.number==="BigNumber"?(i===void 0&&uu(),p(d(i(w.start),i(w.end),i(w.step)),y)):p(d(w.start,w.end,w.step,y))}function d(v,y,w,C){for(var b=[],A=u(w)?C?s:a:C?f:c,E=v;A(E,y);)b.push(E),E=o(E,w);return b}function x(v){var y=v.split(":"),w=y.map(function(b){return Number(b)}),C=w.some(function(b){return isNaN(b)});if(C)return null;switch(w.length){case 2:return{start:w[0],end:w[1],step:1};case 3:return{start:w[0],end:w[2],step:w[1]};default:return null}}});var Vw="reshape",xL=["typed","isInteger","matrix"],Yw=T(Vw,xL,e=>{var{typed:r,isInteger:t}=e;return r(Vw,{"Matrix, Array":function(i,a){return i.reshape(a,!0)},"Array, Array":function(i,a){return a.forEach(function(s){if(!t(s))throw new TypeError("Invalid size for dimension: "+s)}),vf(i,a)}})});var yL="resize",bL=["config","matrix"],Hw=T(yL,bL,e=>{var{config:r,matrix:t}=e;return function(a,s,c){if(arguments.length!==2&&arguments.length!==3)throw new jn("resize",arguments.length,2,3);if(Ge(s)&&(s=s.valueOf()),je(s[0])&&(s=s.map(function(u){return je(u)?u.toNumber():u})),Ge(a))return a.resize(s,c,!0);if(typeof a=="string")return n(a,s,c);var f=Array.isArray(a)?!1:r.matrix!=="Array";if(s.length===0){for(;Array.isArray(a);)a=a[0];return tr(a)}else{Array.isArray(a)||(a=[a]),a=tr(a);var o=Wi(a,s,c);return f?t(o):o}};function n(i,a,s){if(s!==void 0){if(typeof s!="string"||s.length!==1)throw new TypeError("Single character expected as defaultValue")}else s=" ";if(a.length!==1)throw new pr(a.length,1);var c=a[0];if(typeof c!="number"||!He(c))throw new TypeError("Invalid size, must contain positive integers (size: "+lr(a)+")");if(i.length>c)return i.substring(0,c);if(i.length{var{typed:r,multiply:t,rotationMatrix:n}=e;return r(Gw,{"Array , number | BigNumber | Complex | Unit":function(s,c){i(s,2);var f=t(n(c),s);return f.toArray()},"Matrix , number | BigNumber | Complex | Unit":function(s,c){return i(s,2),t(n(c),s)},"Array, number | BigNumber | Complex | Unit, Array | Matrix":function(s,c,f){i(s,3);var o=t(n(c,f),s);return o},"Matrix, number | BigNumber | Complex | Unit, Array | Matrix":function(s,c,f){return i(s,3),t(n(c,f),s)}});function i(a,s){var c=Array.isArray(a)?or(a):a.size();if(c.length>2)throw new RangeError("Vector must be of dimensions 1x".concat(s));if(c.length===2&&c[1]!==1)throw new RangeError("Vector must be of dimensions 1x".concat(s));if(c[0]!==s)throw new RangeError("Vector must be of dimensions 1x".concat(s))}});var Zw="rotationMatrix",DL=["typed","config","multiplyScalar","addScalar","unaryMinus","norm","matrix","BigNumber","DenseMatrix","SparseMatrix","cos","sin"],Qw=T(Zw,DL,e=>{var{typed:r,config:t,multiplyScalar:n,addScalar:i,unaryMinus:a,norm:s,BigNumber:c,matrix:f,DenseMatrix:o,SparseMatrix:u,cos:p,sin:h}=e;return r(Zw,{"":function(){return t.matrix==="Matrix"?f([]):[]},string:function(b){return f(b)},"number | BigNumber | Complex | Unit":function(b){return d(b,t.matrix==="Matrix"?"dense":void 0)},"number | BigNumber | Complex | Unit, string":function(b,A){return d(b,A)},"number | BigNumber | Complex | Unit, Array":function(b,A){var E=f(A);return x(E),w(b,E,void 0)},"number | BigNumber | Complex | Unit, Matrix":function(b,A){x(A);var E=A.storage()||(t.matrix==="Matrix"?"dense":void 0);return w(b,A,E)},"number | BigNumber | Complex | Unit, Array, string":function(b,A,E){var S=f(A);return x(S),w(b,S,E)},"number | BigNumber | Complex | Unit, Matrix, string":function(b,A,E){return x(A),w(b,A,E)}});function d(C,b){var A=je(C),E=A?new c(-1):-1,S=p(C),O=h(C),F=[[S,n(E,O)],[O,S]];return y(F,b)}function x(C){var b=C.size();if(b.length<1||b[0]!==3)throw new RangeError("Vector must be of dimensions 1x3")}function v(C){return C.reduce((b,A)=>n(b,A))}function y(C,b){if(b){if(b==="sparse")return new u(C);if(b==="dense")return new o(C);throw new TypeError('Unknown matrix type "'.concat(b,'"'))}return C}function w(C,b,A){var E=s(b);if(E===0)throw new RangeError("Rotation around zero vector");var S=je(C)?c:null,O=S?new S(1):1,F=S?new S(-1):-1,M=S?new S(b.get([0])/E):b.get([0])/E,_=S?new S(b.get([1])/E):b.get([1])/E,k=S?new S(b.get([2])/E):b.get([2])/E,L=p(C),Y=i(O,a(L)),$=h(C),V=i(L,v([M,M,Y])),q=i(v([M,_,Y]),v([F,k,$])),R=i(v([M,k,Y]),v([_,$])),j=i(v([M,_,Y]),v([k,$])),U=i(L,v([_,_,Y])),oe=i(v([_,k,Y]),v([F,M,$])),me=i(v([M,k,Y]),v([F,_,$])),ie=i(v([_,k,Y]),v([M,$])),H=i(L,v([k,k,Y])),ce=[[V,q,R],[j,U,oe],[me,ie,H]];return y(ce,A)}});var Xw="row",SL=["typed","Index","matrix","range"],Kc=T(Xw,SL,e=>{var{typed:r,Index:t,matrix:n,range:i}=e;return r(Xw,{"Matrix, number":a,"Array, number":function(c,f){return a(n(tr(c)),f).valueOf()}});function a(s,c){if(s.size().length!==2)throw new Error("Only two dimensional matrix is supported");Xr(c,s.size()[0]);var f=i(0,s.size()[1]),o=new t(c,f),u=s.subset(o);return Ge(u)?u:n([[u]])}});var Jw="size",NL=["typed","config","?matrix"],Kw=T(Jw,NL,e=>{var{typed:r,config:t,matrix:n}=e;return r(Jw,{Matrix:function(a){return a.create(a.size())},Array:or,string:function(a){return t.matrix==="Array"?[a.length]:n([a.length])},"number | Complex | BigNumber | Unit | boolean | null":function(a){return t.matrix==="Array"?[]:n?n([]):Xc()}})});var jw="squeeze",AL=["typed","matrix"],eD=T(jw,AL,e=>{var{typed:r,matrix:t}=e;return r(jw,{Array:function(i){return Xs(tr(i))},Matrix:function(i){var a=Xs(i.toArray());return Array.isArray(a)?t(a):a},any:function(i){return tr(i)}})});var rD="subset",EL=["typed","matrix","zeros","add"],jc=T(rD,EL,e=>{var{typed:r,matrix:t,zeros:n,add:i}=e;return r(rD,{"Matrix, Index":function(c,f){return Ko(f)?t():(df(c,f),c.subset(f))},"Array, Index":r.referTo("Matrix, Index",function(s){return function(c,f){var o=s(t(c),f);return f.isScalar()?o:o.valueOf()}}),"Object, Index":ML,"string, Index":CL,"Matrix, Index, any, any":function(c,f,o,u){return Ko(f)?c:(df(c,f),c.clone().subset(f,a(o,f),u))},"Array, Index, any, any":r.referTo("Matrix, Index, any, any",function(s){return function(c,f,o,u){var p=s(t(c),f,o,u);return p.isMatrix?p.valueOf():p}}),"Array, Index, any":r.referTo("Matrix, Index, any, any",function(s){return function(c,f,o){return s(t(c),f,o,void 0).valueOf()}}),"Matrix, Index, any":r.referTo("Matrix, Index, any, any",function(s){return function(c,f,o){return s(c,f,o,void 0)}}),"string, Index, string":tD,"string, Index, string, string":tD,"Object, Index, any":_L});function a(s,c){if(typeof s=="string")throw new Error("can't boradcast a string");if(c._isScalar)return s;var f=c.size();if(f.every(o=>o>0))try{return i(s,n(f))}catch{return s}else return s}});function CL(e,r){if(!sa(r))throw new TypeError("Index expected");if(Ko(r))return"";if(df(Array.from(e),r),r.size().length!==1)throw new pr(r.size().length,1);var t=e.length;Xr(r.min()[0],t),Xr(r.max()[0],t);var n=r.dimension(0),i="";return n.forEach(function(a){i+=e.charAt(a)}),i}function tD(e,r,t,n){if(!r||r.isIndex!==!0)throw new TypeError("Index expected");if(Ko(r))return e;if(df(Array.from(e),r),r.size().length!==1)throw new pr(r.size().length,1);if(n!==void 0){if(typeof n!="string"||n.length!==1)throw new TypeError("Single character expected as defaultValue")}else n=" ";var i=r.dimension(0),a=i.size()[0];if(a!==t.length)throw new pr(i.size()[0],t.length);var s=e.length;Xr(r.min()[0]),Xr(r.max()[0]);for(var c=[],f=0;fs)for(var o=s-1,u=c.length;o{var{typed:r,matrix:t}=e;return r(nD,{Array:s=>n(t(s)).valueOf(),Matrix:n,any:tr});function n(s){var c=s.size(),f;switch(c.length){case 1:f=s.clone();break;case 2:{var o=c[0],u=c[1];if(u===0)throw new RangeError("Cannot transpose a 2D matrix with no columns (size: "+lr(c)+")");switch(s.storage()){case"dense":f=i(s,o,u);break;case"sparse":f=a(s,o,u);break}}break;default:throw new RangeError("Matrix must be a vector or two dimensional (size: "+lr(c)+")")}return f}function i(s,c,f){for(var o=s._data,u=[],p,h=0;h{var{typed:r,transpose:t,conj:n}=e;return r(aD,{any:function(a){return n(t(a))}})});var sD="zeros",OL=["typed","config","matrix","BigNumber"],uD=T(sD,OL,e=>{var{typed:r,config:t,matrix:n,BigNumber:i}=e;return r(sD,{"":function(){return t.matrix==="Array"?a([]):a([],"default")},"...number | BigNumber | string":function(o){var u=o[o.length-1];if(typeof u=="string"){var p=o.pop();return a(o,p)}else return t.matrix==="Array"?a(o):a(o,"default")},Array:a,Matrix:function(o){var u=o.storage();return a(o.valueOf(),u)},"Array | Matrix, string":function(o,u){return a(o.valueOf(),u)}});function a(f,o){var u=s(f),p=u?new i(0):0;if(c(f),o){var h=n(o);return f.length>0?h.resize(f,p):h}else{var d=[];return f.length>0?Wi(d,f,p):d}}function s(f){var o=!1;return f.forEach(function(u,p,h){je(u)&&(o=!0,h[p]=u.toNumber())}),o}function c(f){f.forEach(function(o){if(typeof o!="number"||!He(o)||o<0)throw new Error("Parameters in function zeros must be positive integers")})}});var fD="fft",BL=["typed","matrix","addScalar","multiplyScalar","divideScalar","exp","tau","i","dotDivide","conj","pow","ceil","log2"],lD=T(fD,BL,e=>{var{typed:r,matrix:t,addScalar:n,multiplyScalar:i,divideScalar:a,exp:s,tau:c,i:f,dotDivide:o,conj:u,pow:p,ceil:h,log2:d}=e;return r(fD,{Array:x,Matrix:function(b){return b.create(x(b.toArray()))}});function x(C){var b=or(C);return b.length===1?w(C,b[0]):v(C.map(A=>x(A,b.slice(1))),0)}function v(C,b){var A=or(C);if(b!==0)return new Array(A[0]).fill(0).map((S,O)=>v(C[O],b-1));if(A.length===1)return w(C);function E(S){var O=or(S);return new Array(O[1]).fill(0).map((F,M)=>new Array(O[0]).fill(0).map((_,k)=>S[k][M]))}return E(v(E(C),1))}function y(C){for(var b=C.length,A=s(a(i(-1,i(f,c)),b)),E=[],S=1-b;Si(C[R],E[b-1+R])),...new Array(O-b).fill(0)],M=[...new Array(b+b-1).fill(0).map((q,R)=>a(1,E[R])),...new Array(O-(b+b-1)).fill(0)],_=w(F),k=w(M),L=new Array(O).fill(0).map((q,R)=>i(_[R],k[R])),Y=o(u(x(u(L))),O),$=[],V=b-1;VM%2===0),b/2),...w(C.filter((F,M)=>M%2===1),b/2)],E=0;E{var{typed:r,fft:t,dotDivide:n,conj:i}=e;return r(cD,{"Array | Matrix":function(s){var c=Ge(s)?s.size():or(s);return n(i(t(i(s))),c.reduce((f,o)=>f*o,1))}})});function mD(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function PL(e){for(var r=1;r{var{typed:r,add:t,subtract:n,multiply:i,divide:a,max:s,map:c,abs:f,isPositive:o,isNegative:u,larger:p,smaller:h,matrix:d,bignumber:x,unaryMinus:v}=e;function y(F){return function(M,_,k,L){var Y=!(_.length===2&&(_.every(S)||_.every(qt)));if(Y)throw new Error('"tspan" must be an Array of two numeric values or two units [tStart, tEnd]');var $=_[0],V=_[1],q=p(V,$),R=L.firstStep;if(R!==void 0&&!o(R))throw new Error('"firstStep" must be positive');var j=L.maxStep;if(j!==void 0&&!o(j))throw new Error('"maxStep" must be positive');var U=L.minStep;if(U&&u(U))throw new Error('"minStep" must be positive or zero');var oe=[$,V,R,U,j].filter(Le=>Le!==void 0);if(!(oe.every(S)||oe.every(qt)))throw new Error('Inconsistent type of "t" dependant variables');for(var me=1,ie=L.tol?L.tol:1e-4,H=L.minDelta?L.minDelta:.2,ce=L.maxDelta?L.maxDelta:5,Me=L.maxIter?L.maxIter:1e4,pe=[$,V,...k,j,U].some(je),[ge,Se,xe,be]=pe?[x(F.a),x(F.c),x(F.b),x(F.bp)]:[F.a,F.c,F.b,F.bp],De=R?q?R:v(R):a(n(V,$),me),Ae=[$],ze=[k],Ze=n(xe,be),K=0,te=0,ye=A(q),ee=E(q);ye(Ae[K],V);){var ne=[];De=ee(Ae[K],V,De),ne.push(M(Ae[K],ze[K]));for(var ue=1;ueqt(Le)?Le.value:Le)));Ee1/4&&(Ae.push(t(Ae[K],De)),ze.push(t(ze[K],i(De,xe,ne))),K++);var Ce=.84*(ie/Ee)**(1/5);if(h(Ce,H)?Ce=H:p(Ce,ce)&&(Ce=ce),Ce=pe?x(Ce):Ce,De=i(De,Ce),j&&p(f(De),j)?De=q?j:v(j):U&&h(f(De),U)&&(De=q?U:v(U)),te++,te>Me)throw new Error("Maximum number of iterations reached, try changing options")}return{t:Ae,y:ze}}}function w(F,M,_,k){var L=[[],[.5],[0,.75],[.2222222222222222,.3333333333333333,.4444444444444444]],Y=[null,1/2,3/4,1],$=[2/9,1/3,4/9,0],V=[7/24,1/4,1/3,1/8],q={a:L,c:Y,b:$,bp:V};return y(q)(F,M,_,k)}function C(F,M,_,k){var L=[[],[.2],[.075,.225],[.9777777777777777,-3.7333333333333334,3.5555555555555554],[2.9525986892242035,-11.595793324188385,9.822892851699436,-.2908093278463649],[2.8462752525252526,-10.757575757575758,8.906422717743473,.2784090909090909,-.2735313036020583],[.09114583333333333,0,.44923629829290207,.6510416666666666,-.322376179245283,.13095238095238096]],Y=[null,1/5,3/10,4/5,8/9,1,1],$=[35/384,0,500/1113,125/192,-2187/6784,11/84,0],V=[5179/57600,0,7571/16695,393/640,-92097/339200,187/2100,1/40],q={a:L,c:Y,b:$,bp:V};return y(q)(F,M,_,k)}function b(F,M,_,k){var L=k.method?k.method:"RK45",Y={RK23:w,RK45:C};if(L.toUpperCase()in Y){var $=PL({},k);return delete $.method,Y[L.toUpperCase()](F,M,_,$)}else{var V=Object.keys(Y).map(R=>'"'.concat(R,'"')),q="".concat(V.slice(0,-1).join(", ")," and ").concat(V.slice(-1));throw new Error('Unavailable method "'.concat(L,'". Available methods are ').concat(q))}}function A(F){return F?h:p}function E(F){var M=F?p:h;return function(_,k,L){var Y=t(_,L);return M(Y,k)?n(k,_):L}}function S(F){return je(F)||ar(F)}function O(F,M,_,k){var L=b(F,M.toArray(),_.toArray(),k);return{t:d(L.t),y:d(L.y)}}return r("solveODE",{"function, Array, Array, Object":b,"function, Matrix, Matrix, Object":O,"function, Array, Array":(F,M,_)=>b(F,M,_,{}),"function, Matrix, Matrix":(F,M,_)=>O(F,M,_,{}),"function, Array, number | BigNumber | Unit":(F,M,_)=>{var k=b(F,M,[_],{});return{t:k.t,y:k.y.map(L=>L[0])}},"function, Matrix, number | BigNumber | Unit":(F,M,_)=>{var k=b(F,M.toArray(),[_],{});return{t:d(k.t),y:d(k.y.map(L=>L[0]))}},"function, Array, number | BigNumber | Unit, Object":(F,M,_,k)=>{var L=b(F,M,[_],k);return{t:L.t,y:L.y.map(Y=>Y[0])}},"function, Matrix, number | BigNumber | Unit, Object":(F,M,_,k)=>{var L=b(F,M.toArray(),[_],k);return{t:d(L.t),y:d(L.y.map(Y=>Y[0]))}}})});var LL="erf",qL=["typed"],dD=T(LL,qL,e=>{var{typed:r}=e;return r("name",{number:function(s){var c=Math.abs(s);return c>=WL?mi(s):c<=UL?mi(s)*t(c):c<=4?mi(s)*(1-n(c)):mi(s)*(1-i(c))},"Array | Matrix":r.referToSelf(a=>s=>Je(s,a))});function t(a){var s=a*a,c=La[0][4]*s,f=s,o;for(o=0;o<3;o+=1)c=(c+La[0][o])*s,f=(f+fu[0][o])*s;return a*(c+La[0][3])/(f+fu[0][3])}function n(a){var s=La[1][8]*a,c=a,f;for(f=0;f<7;f+=1)s=(s+La[1][f])*a,c=(c+fu[1][f])*a;var o=(s+La[1][7])/(c+fu[1][7]),u=parseInt(a*16)/16,p=(a-u)*(a+u);return Math.exp(-u*u)*Math.exp(-p)*o}function i(a){var s=1/(a*a),c=La[2][5]*s,f=s,o;for(o=0;o<4;o+=1)c=(c+La[2][o])*s,f=(f+fu[2][o])*s;var u=s*(c+La[2][4])/(f+fu[2][4]);u=(zL-u)/a,s=parseInt(a*16)/16;var p=(a-s)*(a+s);return Math.exp(-s*s)*Math.exp(-p)*u}}),UL=.46875,zL=.5641895835477563,La=[[3.1611237438705655,113.86415415105016,377.485237685302,3209.3775891384694,.18577770618460315],[.5641884969886701,8.883149794388377,66.11919063714163,298.6351381974001,881.952221241769,1712.0476126340707,2051.0783778260716,1230.3393547979972,21531153547440383e-24],[.30532663496123236,.36034489994980445,.12578172611122926,.016083785148742275,.0006587491615298378,.016315387137302097]],fu=[[23.601290952344122,244.02463793444417,1282.6165260773723,2844.236833439171],[15.744926110709835,117.6939508913125,537.1811018620099,1621.3895745666903,3290.7992357334597,4362.619090143247,3439.3676741437216,1230.3393548037495],[2.568520192289822,1.8729528499234604,.5279051029514285,.06051834131244132,.0023352049762686918]],WL=Math.pow(2,53);var vD="zeta",VL=["typed","config","multiply","pow","divide","factorial","equal","smallerEq","isNegative","gamma","sin","subtract","add","?Complex","?BigNumber","pi"],gD=T(vD,VL,e=>{var{typed:r,config:t,multiply:n,pow:i,divide:a,factorial:s,equal:c,smallerEq:f,isNegative:o,gamma:u,sin:p,subtract:h,add:d,Complex:x,BigNumber:v,pi:y}=e;return r(vD,{number:S=>w(S,O=>O,()=>20),BigNumber:S=>w(S,O=>new v(O),()=>Math.abs(Math.log10(t.epsilon))),Complex:C});function w(S,O,F){return c(S,0)?O(-.5):c(S,1)?O(NaN):isFinite(S)?b(S,O,F,M=>M):o(S)?O(NaN):O(1)}function C(S){return S.re===0&&S.im===0?new x(-.5):S.re===1?new x(NaN,NaN):S.re===1/0&&S.im===0?new x(1):S.im===1/0||S.re===-1/0?new x(NaN,NaN):b(S,O=>O,O=>Math.round(1.3*15+.9*Math.abs(O.im)),O=>O.re)}function b(S,O,F,M){var _=F(S);if(M(S)>-(_-1)/2)return E(S,O(_),O);var k=n(i(2,S),i(O(y),h(S,1)));return k=n(k,p(n(a(O(y),2),S))),k=n(k,u(h(1,S))),n(k,b(h(1,S),O,F,M))}function A(S,O){for(var F=S,M=S;f(M,O);M=d(M,1)){var _=a(n(s(d(O,h(M,1))),i(4,M)),n(s(h(O,M)),s(n(2,M))));F=d(F,_)}return n(O,F)}function E(S,O,F){for(var M=a(1,n(A(F(0),O),h(1,i(2,h(1,S))))),_=F(0),k=F(1);f(k,O);k=d(k,1))_=d(_,a(n((-1)**(k-1),A(k,O)),i(k,S)));return n(M,_)}});var xD="mode",YL=["typed","isNaN","isNumeric"],yD=T(xD,YL,e=>{var{typed:r,isNaN:t,isNumeric:n}=e;return r(xD,{"Array | Matrix":i,"...":function(s){return i(s)}});function i(a){a=gr(a.valueOf());var s=a.length;if(s===0)throw new Error("Cannot calculate mode of an empty array");for(var c={},f=[],o=0,u=0;uo&&(o=c[p],f=[p])}return f}});function St(e,r,t){var n;return String(e).indexOf("Unexpected type")!==-1?(n=arguments.length>2?" (type: "+_r(t)+", value: "+JSON.stringify(t)+")":" (type: "+e.data.actual+")",new TypeError("Cannot calculate "+r+", unexpected type of argument"+n)):String(e).indexOf("complex numbers")!==-1?(n=arguments.length>2?" (type: "+_r(t)+", value: "+JSON.stringify(t)+")":"",new TypeError("Cannot calculate "+r+", no ordering relation is defined for complex numbers"+n)):e}var bD="prod",HL=["typed","config","multiplyScalar","numeric"],wD=T(bD,HL,e=>{var{typed:r,config:t,multiplyScalar:n,numeric:i}=e;return r(bD,{"Array | Matrix":a,"Array | Matrix, number | BigNumber":function(c,f){throw new Error("prod(A, dim) is not yet supported")},"...":function(c){return a(c)}});function a(s){var c;if(hn(s,function(f){try{c=c===void 0?f:n(c,f)}catch(o){throw St(o,"prod",f)}}),typeof c=="string"&&(c=i(c,t.number)),c===void 0)throw new Error("Cannot calculate prod of an empty array");return c}});var DD="format",GL=["typed"],SD=T(DD,GL,e=>{var{typed:r}=e;return r(DD,{any:lr,"any, Object | function | number | BigNumber":lr})});var ND="bin",$L=["typed","format"],AD=T(ND,$L,e=>{var{typed:r,format:t}=e;return r(ND,{"number | BigNumber":function(i){return t(i,{notation:"bin"})},"number | BigNumber, number | BigNumber":function(i,a){return t(i,{notation:"bin",wordSize:a})}})});var ED="oct",ZL=["typed","format"],CD=T(ED,ZL,e=>{var{typed:r,format:t}=e;return r(ED,{"number | BigNumber":function(i){return t(i,{notation:"oct"})},"number | BigNumber, number | BigNumber":function(i,a){return t(i,{notation:"oct",wordSize:a})}})});var MD="hex",QL=["typed","format"],_D=T(MD,QL,e=>{var{typed:r,format:t}=e;return r(MD,{"number | BigNumber":function(i){return t(i,{notation:"hex"})},"number | BigNumber, number | BigNumber":function(i,a){return t(i,{notation:"hex",wordSize:a})}})});var ep=/\\$([\\w.]+)/g;var TD="print",XL=["typed"],rp=T(TD,XL,e=>{var{typed:r}=e;return r(TD,{"string, Object | Array":FD,"string, Object | Array, number | Object":FD})});function FD(e,r,t){return e.replace(ep,function(n,i){var a=i.split("."),s=r[a.shift()];for(s!==void 0&&s.isMatrix&&(s=s.toArray());a.length&&s!==void 0;){var c=a.shift();s=c?s[c]:s+"."}return s!==void 0?yt(s)?s:lr(s,t):n})}var OD="to",JL=["typed","matrix","concat"],BD=T(OD,JL,e=>{var{typed:r,matrix:t,concat:n}=e,i=vr({typed:r,matrix:t,concat:n});return r(OD,{"Unit, Unit | string":(a,s)=>a.to(s)},i({Ds:!0}))});var ID="isPrime",KL=["typed"],PD=T(ID,KL,e=>{var{typed:r}=e;return r(ID,{number:function(n){if(n*0!==0)return!1;if(n<=3)return n>1;if(n%2===0||n%3===0)return!1;for(var i=5;i*i<=n;i+=6)if(n%i===0||n%(i+2)===0)return!1;return!0},BigNumber:function(n){if(n.toNumber()*0!==0)return!1;if(n.lte(3))return n.gt(1);if(n.mod(2).eq(0)||n.mod(3).eq(0))return!1;if(n.lt(Math.pow(2,32))){for(var i=n.toNumber(),a=5;a*a<=i;a+=6)if(i%a===0||i%(a+2)===0)return!1;return!0}function s(C,b,A){for(var E=1;!b.eq(0);)b.mod(2).eq(0)?(b=b.div(2),C=C.mul(C).mod(A)):(b=b.sub(1),E=C.mul(E).mod(A));return E}var c=n.constructor.clone({precision:n.toFixed(0).length*2});n=new c(n);for(var f=0,o=n.sub(1);o.mod(2).eq(0);)o=o.div(2),f+=1;var u=null;if(n.lt("3317044064679887385961981"))u=[2,3,5,7,11,13,17,19,23,29,31,37,41].filter(C=>Cn=>Je(n,t))})});var jL="numeric",eq=["number","?bignumber","?fraction"],kD=T(jL,eq,e=>{var{number:r,bignumber:t,fraction:n}=e,i={string:!0,number:!0,BigNumber:!0,Fraction:!0},a={number:s=>r(s),BigNumber:t?s=>t(s):uu,Fraction:n?s=>n(s):Qc};return function(c){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"number",o=arguments.length>2?arguments[2]:void 0;if(o!==void 0)throw new SyntaxError("numeric() takes one or two arguments");var u=_r(c);if(!(u in i))throw new TypeError("Cannot convert "+c+' of type "'+u+'"; valid input types are '+Object.keys(i).join(", "));if(!(f in a))throw new TypeError("Cannot convert "+c+' to type "'+f+'"; valid output types are '+Object.keys(a).join(", "));return f===u?c:a[f](c)}});var RD="divideScalar",rq=["typed","numeric"],LD=T(RD,rq,e=>{var{typed:r,numeric:t}=e;return r(RD,{"number, number":function(i,a){return i/a},"Complex, Complex":function(i,a){return i.div(a)},"BigNumber, BigNumber":function(i,a){return i.div(a)},"Fraction, Fraction":function(i,a){return i.div(a)},"Unit, number | Complex | Fraction | BigNumber | Unit":(n,i)=>n.divide(i),"number | Fraction | Complex | BigNumber, Unit":(n,i)=>i.divideInto(n)})});var qD="pow",tq=["typed","config","identity","multiply","matrix","inv","fraction","number","Complex"],UD=T(qD,tq,e=>{var{typed:r,config:t,identity:n,multiply:i,matrix:a,inv:s,number:c,fraction:f,Complex:o}=e;return r(qD,{"number, number":u,"Complex, Complex":function(x,v){return x.pow(v)},"BigNumber, BigNumber":function(x,v){return v.isInteger()||x>=0||t.predictable?x.pow(v):new o(x.toNumber(),0).pow(v.toNumber(),0)},"Fraction, Fraction":function(x,v){var y=x.pow(v);if(y!=null)return y;if(t.predictable)throw new Error("Result of pow is non-rational and cannot be expressed as a fraction");return u(x.valueOf(),v.valueOf())},"Array, number":p,"Array, BigNumber":function(x,v){return p(x,v.toNumber())},"Matrix, number":h,"Matrix, BigNumber":function(x,v){return h(x,v.toNumber())},"Unit, number | BigNumber":function(x,v){return x.pow(v)}});function u(d,x){if(t.predictable&&!He(x)&&d<0)try{var v=f(x),y=c(v);if((x===y||Math.abs((x-y)/x)<1e-14)&&v.d%2===1)return(v.n%2===0?1:-1)*Math.pow(-d,x)}catch{}return t.predictable&&(d<-1&&x===1/0||d>-1&&d<0&&x===-1/0)?NaN:He(x)||d>=0||t.predictable?Sv(d,x):d*d<1&&x===1/0||d*d>1&&x===-1/0?0:new o(d,0).pow(x,0)}function p(d,x){if(!He(x))throw new TypeError("For A^b, b must be an integer (value is "+x+")");var v=or(d);if(v.length!==2)throw new Error("For A^b, A must be 2 dimensional (A has "+v.length+" dimensions)");if(v[0]!==v[1])throw new Error("For A^b, A must be square (size is "+v[0]+"x"+v[1]+")");if(x<0)try{return p(s(d),-x)}catch(C){throw C.message==="Cannot calculate inverse, determinant is zero"?new TypeError("For A^b, when A is not invertible, b must be a positive integer (value is "+x+")"):C}for(var y=n(v[0]).valueOf(),w=d;x>=1;)(x&1)===1&&(y=i(w,y)),x>>=1,w=i(w,w);return y}function h(d,x){return a(p(d.valueOf(),x))}});var lu="Number of decimals in function round must be an integer",zD="round",nq=["typed","config","matrix","equalScalar","zeros","BigNumber","DenseMatrix"],WD=T(zD,nq,e=>{var{typed:r,config:t,matrix:n,equalScalar:i,zeros:a,BigNumber:s,DenseMatrix:c}=e,f=Jr({typed:r,equalScalar:i}),o=Lr({typed:r,DenseMatrix:c}),u=Bt({typed:r});function p(h){return Math.abs(Qs(h).exponent)}return r(zD,{number:function(d){var x=nu(d,p(t.epsilon)),v=wt(d,x,t.epsilon)?x:d;return nu(v)},"number, number":function(d,x){var v=p(t.epsilon);if(x>=v)return nu(d,x);var y=nu(d,v),w=wt(d,y,t.epsilon)?y:d;return nu(w,x)},"number, BigNumber":function(d,x){if(!x.isInteger())throw new TypeError(lu);return new s(d).toDecimalPlaces(x.toNumber())},Complex:function(d){return d.round()},"Complex, number":function(d,x){if(x%1)throw new TypeError(lu);return d.round(x)},"Complex, BigNumber":function(d,x){if(!x.isInteger())throw new TypeError(lu);var v=x.toNumber();return d.round(v)},BigNumber:function(d){var x=new s(d).toDecimalPlaces(p(t.epsilon)),v=Ut(d,x,t.epsilon)?x:d;return v.toDecimalPlaces(0)},"BigNumber, BigNumber":function(d,x){if(!x.isInteger())throw new TypeError(lu);var v=p(t.epsilon);if(x>=v)return d.toDecimalPlaces(x.toNumber());var y=d.toDecimalPlaces(v),w=Ut(d,y,t.epsilon)?y:d;return w.toDecimalPlaces(x.toNumber())},Fraction:function(d){return d.round()},"Fraction, number":function(d,x){if(x%1)throw new TypeError(lu);return d.round(x)},"Fraction, BigNumber":function(d,x){if(!x.isInteger())throw new TypeError(lu);return d.round(x.toNumber())},"Unit, number, Unit":r.referToSelf(h=>function(d,x,v){var y=d.toNumeric(v);return v.multiply(h(y,x))}),"Unit, BigNumber, Unit":r.referToSelf(h=>(d,x,v)=>h(d,x.toNumber(),v)),"Unit, Unit":r.referToSelf(h=>(d,x)=>h(d,0,x)),"Array | Matrix, number, Unit":r.referToSelf(h=>(d,x,v)=>Je(d,y=>h(y,x,v),!0)),"Array | Matrix, BigNumber, Unit":r.referToSelf(h=>(d,x,v)=>h(d,x.toNumber(),v)),"Array | Matrix, Unit":r.referToSelf(h=>(d,x)=>h(d,0,x)),"Array | Matrix":r.referToSelf(h=>d=>Je(d,h,!0)),"SparseMatrix, number | BigNumber":r.referToSelf(h=>(d,x)=>f(d,x,h,!1)),"DenseMatrix, number | BigNumber":r.referToSelf(h=>(d,x)=>u(d,x,h,!1)),"Array, number | BigNumber":r.referToSelf(h=>(d,x)=>u(n(d),x,h,!1).valueOf()),"number | Complex | BigNumber | Fraction, SparseMatrix":r.referToSelf(h=>(d,x)=>i(d,0)?a(x.size(),x.storage()):o(x,d,h,!0)),"number | Complex | BigNumber | Fraction, DenseMatrix":r.referToSelf(h=>(d,x)=>i(d,0)?a(x.size(),x.storage()):u(x,d,h,!0)),"number | Complex | BigNumber | Fraction, Array":r.referToSelf(h=>(d,x)=>u(n(x),d,h,!0).valueOf())})});var VD="log",iq=["config","typed","divideScalar","Complex"],YD=T(VD,iq,e=>{var{typed:r,config:t,divideScalar:n,Complex:i}=e;return r(VD,{number:function(s){return s>=0||t.predictable?l1(s):new i(s,0).log()},Complex:function(s){return s.log()},BigNumber:function(s){return!s.isNegative()||t.predictable?s.ln():new i(s.toNumber(),0).log()},"any, any":r.referToSelf(a=>(s,c)=>n(a(s),a(c)))})});var HD="log1p",aq=["typed","config","divideScalar","log","Complex"],GD=T(HD,aq,e=>{var{typed:r,config:t,divideScalar:n,log:i,Complex:a}=e;return r(HD,{number:function(f){return f>=-1||t.predictable?gc(f):s(new a(f,0))},Complex:s,BigNumber:function(f){var o=f.plus(1);return!o.isNegative()||t.predictable?o.ln():s(new a(f.toNumber(),0))},"Array | Matrix":r.referToSelf(c=>f=>Je(f,c)),"any, any":r.referToSelf(c=>(f,o)=>n(c(f),i(o)))});function s(c){var f=c.re+1;return new a(Math.log(Math.sqrt(f*f+c.im*c.im)),Math.atan2(c.im,f))}});var $D="nthRoots",oq=["config","typed","divideScalar","Complex"],ZD=T($D,oq,e=>{var{typed:r,config:t,divideScalar:n,Complex:i}=e,a=[function(f){return new i(f,0)},function(f){return new i(0,f)},function(f){return new i(-f,0)},function(f){return new i(0,-f)}];function s(c,f){if(f<0)throw new Error("Root must be greater than zero");if(f===0)throw new Error("Root must be non-zero");if(f%1!==0)throw new Error("Root must be an integer");if(c===0||c.abs()===0)return[new i(0,0)];var o=typeof c=="number",u;(o||c.re===0||c.im===0)&&(o?u=2*+(c<0):c.im===0?u=2*+(c.re<0):u=2*+(c.im<0)+1);for(var p=c.arg(),h=c.abs(),d=[],x=Math.pow(h,1/f),v=0;v{var{typed:r,equalScalar:t,matrix:n,pow:i,DenseMatrix:a,concat:s}=e,c=ft({typed:r}),f=Vt({typed:r,DenseMatrix:a}),o=Jr({typed:r,equalScalar:t}),u=Lr({typed:r,DenseMatrix:a}),p=vr({typed:r,matrix:n,concat:s}),h={};for(var d in i.signatures)Object.prototype.hasOwnProperty.call(i.signatures,d)&&!d.includes("Matrix")&&!d.includes("Array")&&(h[d]=i.signatures[d]);var x=r(h);return r(QD,p({elop:x,SS:f,DS:c,Ss:o,sS:u}))});var JD="dotDivide",uq=["typed","matrix","equalScalar","divideScalar","DenseMatrix","concat"],KD=T(JD,uq,e=>{var{typed:r,matrix:t,equalScalar:n,divideScalar:i,DenseMatrix:a,concat:s}=e,c=It({typed:r,equalScalar:n}),f=ft({typed:r}),o=Vt({typed:r,DenseMatrix:a}),u=Jr({typed:r,equalScalar:n}),p=Lr({typed:r,DenseMatrix:a}),h=vr({typed:r,matrix:t,concat:s});return r(JD,h({elop:i,SS:o,DS:f,SD:c,Ss:u,sS:p}))});function ma(e){var{DenseMatrix:r}=e;return function(n,i,a){var s=n.size();if(s.length!==2)throw new RangeError("Matrix must be two dimensional (size: "+lr(s)+")");var c=s[0],f=s[1];if(c!==f)throw new RangeError("Matrix must be square (size: "+lr(s)+")");var o=[];if(Ge(i)){var u=i.size(),p=i._data;if(u.length===1){if(u[0]!==c)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var h=0;h{var{typed:r,matrix:t,divideScalar:n,multiplyScalar:i,subtractScalar:a,equalScalar:s,DenseMatrix:c}=e,f=ma({DenseMatrix:c});return r(jD,{"SparseMatrix, Array | Matrix":function(h,d){return u(h,d)},"DenseMatrix, Array | Matrix":function(h,d){return o(h,d)},"Array, Array | Matrix":function(h,d){var x=t(h),v=o(x,d);return v.valueOf()}});function o(p,h){h=f(p,h,!0);for(var d=h._data,x=p._size[0],v=p._size[1],y=[],w=p._data,C=0;CA&&(O.push(y[k]),F.push(L))}if(s(S,0))throw new Error("Linear system cannot be solved since matrix is singular");for(var Y=n(E,S),$=0,V=F.length;${var{typed:r,matrix:t,divideScalar:n,multiplyScalar:i,subtractScalar:a,equalScalar:s,DenseMatrix:c}=e,f=ma({DenseMatrix:c});return r(rS,{"SparseMatrix, Array | Matrix":function(h,d){return u(h,d)},"DenseMatrix, Array | Matrix":function(h,d){return o(h,d)},"Array, Array | Matrix":function(h,d){var x=t(h),v=o(x,d);return v.valueOf()}});function o(p,h){h=f(p,h,!0);for(var d=h._data,x=p._size[0],v=p._size[1],y=[],w=p._data,C=v-1;C>=0;C--){var b=d[C][0]||0,A=void 0;if(s(b,0))A=0;else{var E=w[C][C];if(s(E,0))throw new Error("Linear system cannot be solved since matrix is singular");A=n(b,E);for(var S=C-1;S>=0;S--)d[S]=[a(d[S][0]||0,i(A,w[S][C]))]}y[C]=[A]}return new c({data:y,size:[x,1]})}function u(p,h){h=f(p,h,!0);for(var d=h._data,x=p._size[0],v=p._size[1],y=p._values,w=p._index,C=p._ptr,b=[],A=v-1;A>=0;A--){var E=d[A][0]||0;if(s(E,0))b[A]=[0];else{for(var S=0,O=[],F=[],M=C[A],_=C[A+1],k=_-1;k>=M;k--){var L=w[k];L===A?S=y[k]:L{var{typed:r,matrix:t,divideScalar:n,multiplyScalar:i,subtractScalar:a,equalScalar:s,DenseMatrix:c}=e,f=ma({DenseMatrix:c});return r(nS,{"SparseMatrix, Array | Matrix":function(h,d){return u(h,d)},"DenseMatrix, Array | Matrix":function(h,d){return o(h,d)},"Array, Array | Matrix":function(h,d){var x=t(h),v=o(x,d);return v.map(y=>y.valueOf())}});function o(p,h){for(var d=[f(p,h,!0)._data.map(F=>F[0])],x=p._data,v=p._size[0],y=p._size[1],w=0;wnew c({data:F.map(M=>[M]),size:[v,1]}))}function u(p,h){for(var d=[f(p,h,!0)._data.map(me=>me[0])],x=p._size[0],v=p._size[1],y=p._values,w=p._index,C=p._ptr,b=0;bb&&(O.push(y[L]),F.push(Y))}if(s(k,0))if(s(S[b],0)){if(E===0){var R=[...S];R[b]=1;for(var j=0,U=F.length;jnew c({data:me.map(ie=>[ie]),size:[x,1]}))}});var aS="usolveAll",pq=["typed","matrix","divideScalar","multiplyScalar","subtractScalar","equalScalar","DenseMatrix"],oS=T(aS,pq,e=>{var{typed:r,matrix:t,divideScalar:n,multiplyScalar:i,subtractScalar:a,equalScalar:s,DenseMatrix:c}=e,f=ma({DenseMatrix:c});return r(aS,{"SparseMatrix, Array | Matrix":function(h,d){return u(h,d)},"DenseMatrix, Array | Matrix":function(h,d){return o(h,d)},"Array, Array | Matrix":function(h,d){var x=t(h),v=o(x,d);return v.map(y=>y.valueOf())}});function o(p,h){for(var d=[f(p,h,!0)._data.map(F=>F[0])],x=p._data,v=p._size[0],y=p._size[1],w=y-1;w>=0;w--)for(var C=d.length,b=0;b=0;O--)S[O]=a(S[O],x[O][w]);d.push(S)}}else{if(b===0)return[];d.splice(b,1),b-=1,C-=1}else{A[w]=n(A[w],x[w][w]);for(var E=w-1;E>=0;E--)A[E]=a(A[E],i(A[w],x[E][w]))}}return d.map(F=>new c({data:F.map(M=>[M]),size:[v,1]}))}function u(p,h){for(var d=[f(p,h,!0)._data.map(me=>me[0])],x=p._size[0],v=p._size[1],y=p._values,w=p._index,C=p._ptr,b=v-1;b>=0;b--)for(var A=d.length,E=0;E=M;L--){var Y=w[L];Y===b?k=y[L]:Ynew c({data:me.map(ie=>[ie]),size:[x,1]}))}});var mq="matAlgo08xS0Sid",hq=["typed","equalScalar"],cu=T(mq,hq,e=>{var{typed:r,equalScalar:t}=e;return function(i,a,s){var c=i._values,f=i._index,o=i._ptr,u=i._size,p=i._datatype||i._data===void 0?i._datatype:i.getDataType(),h=a._values,d=a._index,x=a._ptr,v=a._size,y=a._datatype||a._data===void 0?a._datatype:a.getDataType();if(u.length!==v.length)throw new pr(u.length,v.length);if(u[0]!==v[0]||u[1]!==v[1])throw new RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+v+")");if(!c||!h)throw new Error("Cannot perform operation on Pattern Sparse Matrices");var w=u[0],C=u[1],b,A=t,E=0,S=s;typeof p=="string"&&p===y&&p!=="mixed"&&(b=p,A=r.find(t,[b,b]),E=r.convert(0,b),S=r.find(s,[b,b]));for(var O=[],F=[],M=[],_=[],k=[],L,Y,$,V,q=0;q{var{typed:r,matrix:t}=e;return{"Array, number":r.referTo("DenseMatrix, number",n=>(i,a)=>n(t(i),a).valueOf()),"Array, BigNumber":r.referTo("DenseMatrix, BigNumber",n=>(i,a)=>n(t(i),a).valueOf()),"number, Array":r.referTo("number, DenseMatrix",n=>(i,a)=>n(i,t(a)).valueOf()),"BigNumber, Array":r.referTo("BigNumber, DenseMatrix",n=>(i,a)=>n(i,t(a)).valueOf())}});var sS="leftShift",dq=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],uS=T(sS,dq,e=>{var{typed:r,matrix:t,equalScalar:n,zeros:i,DenseMatrix:a,concat:s}=e,c=dn({typed:r}),f=It({typed:r,equalScalar:n}),o=cu({typed:r,equalScalar:n}),u=Un({typed:r,DenseMatrix:a}),p=Jr({typed:r,equalScalar:n}),h=Bt({typed:r}),d=vr({typed:r,matrix:t,concat:s}),x=pu({typed:r,matrix:t});return r(sS,{"number, number":Mv,"BigNumber, BigNumber":Jb,"SparseMatrix, number | BigNumber":r.referToSelf(v=>(y,w)=>n(w,0)?y.clone():p(y,w,v,!1)),"DenseMatrix, number | BigNumber":r.referToSelf(v=>(y,w)=>n(w,0)?y.clone():h(y,w,v,!1)),"number | BigNumber, SparseMatrix":r.referToSelf(v=>(y,w)=>n(y,0)?i(w.size(),w.storage()):u(w,y,v,!0)),"number | BigNumber, DenseMatrix":r.referToSelf(v=>(y,w)=>n(y,0)?i(w.size(),w.storage()):h(w,y,v,!0))},x,d({SS:o,DS:c,SD:f}))});var fS="rightArithShift",vq=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],lS=T(fS,vq,e=>{var{typed:r,matrix:t,equalScalar:n,zeros:i,DenseMatrix:a,concat:s}=e,c=dn({typed:r}),f=It({typed:r,equalScalar:n}),o=cu({typed:r,equalScalar:n}),u=Un({typed:r,DenseMatrix:a}),p=Jr({typed:r,equalScalar:n}),h=Bt({typed:r}),d=vr({typed:r,matrix:t,concat:s}),x=pu({typed:r,matrix:t});return r(fS,{"number, number":_v,"BigNumber, BigNumber":Kb,"SparseMatrix, number | BigNumber":r.referToSelf(v=>(y,w)=>n(w,0)?y.clone():p(y,w,v,!1)),"DenseMatrix, number | BigNumber":r.referToSelf(v=>(y,w)=>n(w,0)?y.clone():h(y,w,v,!1)),"number | BigNumber, SparseMatrix":r.referToSelf(v=>(y,w)=>n(y,0)?i(w.size(),w.storage()):u(w,y,v,!0)),"number | BigNumber, DenseMatrix":r.referToSelf(v=>(y,w)=>n(y,0)?i(w.size(),w.storage()):h(w,y,v,!0))},x,d({SS:o,DS:c,SD:f}))});var cS="rightLogShift",gq=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],pS=T(cS,gq,e=>{var{typed:r,matrix:t,equalScalar:n,zeros:i,DenseMatrix:a,concat:s}=e,c=dn({typed:r}),f=It({typed:r,equalScalar:n}),o=cu({typed:r,equalScalar:n}),u=Un({typed:r,DenseMatrix:a}),p=Jr({typed:r,equalScalar:n}),h=Bt({typed:r}),d=vr({typed:r,matrix:t,concat:s}),x=pu({typed:r,matrix:t});return r(cS,{"number, number":Tv,"SparseMatrix, number | BigNumber":r.referToSelf(v=>(y,w)=>n(w,0)?y.clone():p(y,w,v,!1)),"DenseMatrix, number | BigNumber":r.referToSelf(v=>(y,w)=>n(w,0)?y.clone():h(y,w,v,!1)),"number | BigNumber, SparseMatrix":r.referToSelf(v=>(y,w)=>n(y,0)?i(w.size(),w.storage()):u(w,y,v,!0)),"number | BigNumber, DenseMatrix":r.referToSelf(v=>(y,w)=>n(y,0)?i(w.size(),w.storage()):h(w,y,v,!0))},x,d({SS:o,DS:c,SD:f}))});var mS="and",xq=["typed","matrix","equalScalar","zeros","not","concat"],tp=T(mS,xq,e=>{var{typed:r,matrix:t,equalScalar:n,zeros:i,not:a,concat:s}=e,c=It({typed:r,equalScalar:n}),f=So({typed:r,equalScalar:n}),o=Jr({typed:r,equalScalar:n}),u=Bt({typed:r}),p=vr({typed:r,matrix:t,concat:s});return r(mS,{"number, number":kv,"Complex, Complex":function(d,x){return(d.re!==0||d.im!==0)&&(x.re!==0||x.im!==0)},"BigNumber, BigNumber":function(d,x){return!d.isZero()&&!x.isZero()&&!d.isNaN()&&!x.isNaN()},"Unit, Unit":r.referToSelf(h=>(d,x)=>h(d.value||0,x.value||0)),"SparseMatrix, any":r.referToSelf(h=>(d,x)=>a(x)?i(d.size(),d.storage()):o(d,x,h,!1)),"DenseMatrix, any":r.referToSelf(h=>(d,x)=>a(x)?i(d.size(),d.storage()):u(d,x,h,!1)),"any, SparseMatrix":r.referToSelf(h=>(d,x)=>a(d)?i(d.size(),d.storage()):o(x,d,h,!0)),"any, DenseMatrix":r.referToSelf(h=>(d,x)=>a(d)?i(d.size(),d.storage()):u(x,d,h,!0)),"Array, any":r.referToSelf(h=>(d,x)=>h(t(d),x).valueOf()),"any, Array":r.referToSelf(h=>(d,x)=>h(d,t(x)).valueOf())},p({SS:f,DS:c}))});var np="compare",yq=["typed","config","matrix","equalScalar","BigNumber","Fraction","DenseMatrix","concat"],hS=T(np,yq,e=>{var{typed:r,config:t,equalScalar:n,matrix:i,BigNumber:a,Fraction:s,DenseMatrix:c,concat:f}=e,o=ft({typed:r}),u=Do({typed:r,equalScalar:n}),p=Lr({typed:r,DenseMatrix:c}),h=vr({typed:r,matrix:i,concat:f}),d=di({typed:r});return r(np,bq({typed:r,config:t}),{"boolean, boolean":function(v,y){return v===y?0:v>y?1:-1},"BigNumber, BigNumber":function(v,y){return Ut(v,y,t.epsilon)?new a(0):new a(v.cmp(y))},"Fraction, Fraction":function(v,y){return new s(v.compare(y))},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},d,h({SS:u,DS:o,Ss:p}))}),bq=T(np,["typed","config"],e=>{var{typed:r,config:t}=e;return r(np,{"number, number":function(i,a){return wt(i,a,t.epsilon)?0:i>a?1:-1}})});var is=li(vS(),1);var gS="compareNatural",wq=["typed","compare"],xS=T(gS,wq,e=>{var{typed:r,compare:t}=e,n=t.signatures["boolean,boolean"];return r(gS,{"any, any":i});function i(f,o){var u=_r(f),p=_r(o),h;if((u==="number"||u==="BigNumber"||u==="Fraction")&&(p==="number"||p==="BigNumber"||p==="Fraction"))return h=t(f,o),h.toString()!=="0"?h>0?1:-1:(0,is.default)(u,p);var d=["Array","DenseMatrix","SparseMatrix"];if(d.includes(u)||d.includes(p))return h=a(i,f,o),h!==0?h:(0,is.default)(u,p);if(u!==p)return(0,is.default)(u,p);if(u==="Complex")return Dq(f,o);if(u==="Unit")return f.equalBase(o)?i(f.value,o.value):s(i,f.formatUnits(),o.formatUnits());if(u==="boolean")return n(f,o);if(u==="string")return(0,is.default)(f,o);if(u==="Object")return c(i,f,o);if(u==="null"||u==="undefined")return 0;throw new TypeError('Unsupported type of value "'+u+'"')}function a(f,o,u){return Jn(o)&&Jn(u)?s(f,o.toJSON().values,u.toJSON().values):Jn(o)?a(f,o.toArray(),u):Jn(u)?a(f,o,u.toArray()):Ba(o)?a(f,o.toJSON().data,u):Ba(u)?a(f,o,u.toJSON().data):Array.isArray(o)?Array.isArray(u)?s(f,o,u):a(f,o,[u]):a(f,[o],u)}function s(f,o,u){for(var p=0,h=Math.min(o.length,u.length);pu.length?1:o.lengthr.re?1:e.rer.im?1:e.im{var{typed:r,matrix:t,concat:n}=e,i=vr({typed:r,matrix:t,concat:n});return r(yS,wc,i({elop:wc,Ds:!0}))});var ip="equal",Nq=["typed","matrix","equalScalar","DenseMatrix","concat"],wS=T(ip,Nq,e=>{var{typed:r,matrix:t,equalScalar:n,DenseMatrix:i,concat:a}=e,s=ft({typed:r}),c=Vt({typed:r,DenseMatrix:i}),f=Lr({typed:r,DenseMatrix:i}),o=vr({typed:r,matrix:t,concat:a});return r(ip,Aq({typed:r,equalScalar:n}),o({elop:n,SS:c,DS:s,Ss:f}))}),Aq=T(ip,["typed","equalScalar"],e=>{var{typed:r,equalScalar:t}=e;return r(ip,{"any, any":function(i,a){return i===null?a===null:a===null?i===null:i===void 0?a===void 0:a===void 0?i===void 0:t(i,a)}})});var DS="equalText",Eq=["typed","compareText","isZero"],SS=T(DS,Eq,e=>{var{typed:r,compareText:t,isZero:n}=e;return r(DS,{"any, any":function(a,s){return n(t(a,s))}})});var ap="smaller",Cq=["typed","config","matrix","DenseMatrix","concat"],NS=T(ap,Cq,e=>{var{typed:r,config:t,matrix:n,DenseMatrix:i,concat:a}=e,s=ft({typed:r}),c=Vt({typed:r,DenseMatrix:i}),f=Lr({typed:r,DenseMatrix:i}),o=vr({typed:r,matrix:n,concat:a}),u=di({typed:r});return r(ap,Mq({typed:r,config:t}),{"boolean, boolean":(p,h)=>pp.compare(h)===-1,"Complex, Complex":function(h,d){throw new TypeError("No ordering relation is defined for complex numbers")}},u,o({SS:c,DS:s,Ss:f}))}),Mq=T(ap,["typed","config"],e=>{var{typed:r,config:t}=e;return r(ap,{"number, number":function(i,a){return i{var{typed:r,config:t,matrix:n,DenseMatrix:i,concat:a}=e,s=ft({typed:r}),c=Vt({typed:r,DenseMatrix:i}),f=Lr({typed:r,DenseMatrix:i}),o=vr({typed:r,matrix:n,concat:a}),u=di({typed:r});return r(op,Tq({typed:r,config:t}),{"boolean, boolean":(p,h)=>p<=h,"BigNumber, BigNumber":function(h,d){return h.lte(d)||Ut(h,d,t.epsilon)},"Fraction, Fraction":(p,h)=>p.compare(h)!==1,"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},u,o({SS:c,DS:s,Ss:f}))}),Tq=T(op,["typed","config"],e=>{var{typed:r,config:t}=e;return r(op,{"number, number":function(i,a){return i<=a||wt(i,a,t.epsilon)}})});var sp="larger",Fq=["typed","config","matrix","DenseMatrix","concat"],ES=T(sp,Fq,e=>{var{typed:r,config:t,matrix:n,DenseMatrix:i,concat:a}=e,s=ft({typed:r}),c=Vt({typed:r,DenseMatrix:i}),f=Lr({typed:r,DenseMatrix:i}),o=vr({typed:r,matrix:n,concat:a}),u=di({typed:r});return r(sp,Oq({typed:r,config:t}),{"boolean, boolean":(p,h)=>p>h,"BigNumber, BigNumber":function(h,d){return h.gt(d)&&!Ut(h,d,t.epsilon)},"Fraction, Fraction":(p,h)=>p.compare(h)===1,"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},u,o({SS:c,DS:s,Ss:f}))}),Oq=T(sp,["typed","config"],e=>{var{typed:r,config:t}=e;return r(sp,{"number, number":function(i,a){return i>a&&!wt(i,a,t.epsilon)}})});var up="largerEq",Bq=["typed","config","matrix","DenseMatrix","concat"],CS=T(up,Bq,e=>{var{typed:r,config:t,matrix:n,DenseMatrix:i,concat:a}=e,s=ft({typed:r}),c=Vt({typed:r,DenseMatrix:i}),f=Lr({typed:r,DenseMatrix:i}),o=vr({typed:r,matrix:n,concat:a}),u=di({typed:r});return r(up,Iq({typed:r,config:t}),{"boolean, boolean":(p,h)=>p>=h,"BigNumber, BigNumber":function(h,d){return h.gte(d)||Ut(h,d,t.epsilon)},"Fraction, Fraction":(p,h)=>p.compare(h)!==-1,"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},u,o({SS:c,DS:s,Ss:f}))}),Iq=T(up,["typed","config"],e=>{var{typed:r,config:t}=e;return r(up,{"number, number":function(i,a){return i>=a||wt(i,a,t.epsilon)}})});var MS="deepEqual",Pq=["typed","equal"],_S=T(MS,Pq,e=>{var{typed:r,equal:t}=e;return r(MS,{"any, any":function(a,s){return n(a.valueOf(),s.valueOf())}});function n(i,a){if(Array.isArray(i))if(Array.isArray(a)){var s=i.length;if(s!==a.length)return!1;for(var c=0;c{var{typed:r,config:t,equalScalar:n,matrix:i,DenseMatrix:a,concat:s}=e,c=ft({typed:r}),f=Vt({typed:r,DenseMatrix:a}),o=Lr({typed:r,DenseMatrix:a}),u=vr({typed:r,matrix:i,concat:s});return r(fp,Rq({typed:r,equalScalar:n}),u({elop:p,SS:f,DS:c,Ss:o}));function p(h,d){return!n(h,d)}}),Rq=T(fp,["typed","equalScalar"],e=>{var{typed:r,equalScalar:t}=e;return r(fp,{"any, any":function(i,a){return i===null?a!==null:a===null?i!==null:i===void 0?a!==void 0:a===void 0?i!==void 0:!t(i,a)}})});var FS="partitionSelect",Lq=["typed","isNumeric","isNaN","compare"],OS=T(FS,Lq,e=>{var{typed:r,isNumeric:t,isNaN:n,compare:i}=e,a=i,s=(o,u)=>-i(o,u);return r(FS,{"Array | Matrix, number":function(u,p){return c(u,p,a)},"Array | Matrix, number, string":function(u,p,h){if(h==="asc")return c(u,p,a);if(h==="desc")return c(u,p,s);throw new Error('Compare string must be "asc" or "desc"')},"Array | Matrix, number, function":c});function c(o,u,p){if(!He(u)||u<0)throw new Error("k must be a non-negative integer");if(Ge(o)){var h=o.size();if(h.length>1)throw new Error("Only one dimensional matrices supported");return f(o.valueOf(),u,p)}if(Array.isArray(o))return f(o,u,p)}function f(o,u,p){if(u>=o.length)throw new Error("k out of bounds");for(var h=0;h=0){var C=o[y];o[y]=o[v],o[v]=C,--y}else++v;p(o[v],w)>0&&--v,u<=v?x=v:d=v+1}return o[u]}});var BS="sort",qq=["typed","matrix","compare","compareNatural"],IS=T(BS,qq,e=>{var{typed:r,matrix:t,compare:n,compareNatural:i}=e,a=n,s=(u,p)=>-n(u,p);return r(BS,{Array:function(p){return f(p),p.sort(a)},Matrix:function(p){return o(p),t(p.toArray().sort(a),p.storage())},"Array, function":function(p,h){return f(p),p.sort(h)},"Matrix, function":function(p,h){return o(p),t(p.toArray().sort(h),p.storage())},"Array, string":function(p,h){return f(p),p.sort(c(h))},"Matrix, string":function(p,h){return o(p),t(p.toArray().sort(c(h)),p.storage())}});function c(u){if(u==="asc")return a;if(u==="desc")return s;if(u==="natural")return i;throw new Error('String "asc", "desc", or "natural" expected')}function f(u){if(or(u).length!==1)throw new Error("One dimensional array expected")}function o(u){if(u.size().length!==1)throw new Error("One dimensional matrix expected")}});var PS="max",Uq=["typed","config","numeric","larger"],lp=T(PS,Uq,e=>{var{typed:r,config:t,numeric:n,larger:i}=e;return r(PS,{"Array | Matrix":s,"Array | Matrix, number | BigNumber":function(f,o){return wo(f,o.valueOf(),a)},"...":function(f){if(hi(f))throw new TypeError("Scalar values expected in function max");return s(f)}});function a(c,f){try{return i(c,f)?c:f}catch(o){throw St(o,"max",f)}}function s(c){var f;if(hn(c,function(o){try{isNaN(o)&&typeof o=="number"?f=NaN:(f===void 0||i(o,f))&&(f=o)}catch(u){throw St(u,"max",o)}}),f===void 0)throw new Error("Cannot calculate max of an empty array");return typeof f=="string"&&(f=n(f,t.number)),f}});var kS="min",zq=["typed","config","numeric","smaller"],cp=T(kS,zq,e=>{var{typed:r,config:t,numeric:n,smaller:i}=e;return r(kS,{"Array | Matrix":s,"Array | Matrix, number | BigNumber":function(f,o){return wo(f,o.valueOf(),a)},"...":function(f){if(hi(f))throw new TypeError("Scalar values expected in function min");return s(f)}});function a(c,f){try{return i(c,f)?c:f}catch(o){throw St(o,"min",f)}}function s(c){var f;if(hn(c,function(o){try{isNaN(o)&&typeof o=="number"?f=NaN:(f===void 0||i(o,f))&&(f=o)}catch(u){throw St(u,"min",o)}}),f===void 0)throw new Error("Cannot calculate min of an empty array");return typeof f=="string"&&(f=n(f,t.number)),f}});var Wq="ImmutableDenseMatrix",Vq=["smaller","DenseMatrix"],RS=T(Wq,Vq,e=>{var{smaller:r,DenseMatrix:t}=e;function n(i,a){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(a&&!yt(a))throw new Error("Invalid datatype: "+a);if(Ge(i)||Ar(i)){var s=new t(i,a);this._data=s._data,this._size=s._size,this._datatype=s._datatype,this._min=null,this._max=null}else if(i&&Ar(i.data)&&Ar(i.size))this._data=i.data,this._size=i.size,this._datatype=i.datatype,this._min=typeof i.min<"u"?i.min:null,this._max=typeof i.max<"u"?i.max:null;else{if(i)throw new TypeError("Unsupported type of data ("+_r(i)+")");this._data=[],this._size=[0],this._datatype=a,this._min=null,this._max=null}}return n.prototype=new t,n.prototype.type="ImmutableDenseMatrix",n.prototype.isImmutableDenseMatrix=!0,n.prototype.subset=function(i){switch(arguments.length){case 1:{var a=t.prototype.subset.call(this,i);return Ge(a)?new n({data:a._data,size:a._size,datatype:a._datatype}):a}case 2:case 3:throw new Error("Cannot invoke set subset on an Immutable Matrix instance");default:throw new SyntaxError("Wrong number of arguments")}},n.prototype.set=function(){throw new Error("Cannot invoke set on an Immutable Matrix instance")},n.prototype.resize=function(){throw new Error("Cannot invoke resize on an Immutable Matrix instance")},n.prototype.reshape=function(){throw new Error("Cannot invoke reshape on an Immutable Matrix instance")},n.prototype.clone=function(){return new n({data:tr(this._data),size:tr(this._size),datatype:this._datatype})},n.prototype.toJSON=function(){return{mathjs:"ImmutableDenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},n.fromJSON=function(i){return new n(i)},n.prototype.swapRows=function(){throw new Error("Cannot invoke swapRows on an Immutable Matrix instance")},n.prototype.min=function(){if(this._min===null){var i=null;this.forEach(function(a){(i===null||r(a,i))&&(i=a)}),this._min=i!==null?i:void 0}return this._min},n.prototype.max=function(){if(this._max===null){var i=null;this.forEach(function(a){(i===null||r(i,a))&&(i=a)}),this._max=i!==null?i:void 0}return this._max},n},{isClass:!0});var Yq="Index",Hq=["ImmutableDenseMatrix","getMatrixDataType"],qS=T(Yq,Hq,e=>{var{ImmutableDenseMatrix:r,getMatrixDataType:t}=e;function n(a){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");this._dimensions=[],this._sourceSize=[],this._isScalar=!0;for(var s=0,c=arguments.length;s{t&&r.push(n)}),r}var Gq="FibonacciHeap",$q=["smaller","larger"],US=T(Gq,$q,e=>{var{smaller:r,larger:t}=e,n=1/Math.log((1+Math.sqrt(5))/2);function i(){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");this._minimum=null,this._size=0}i.prototype.type="FibonacciHeap",i.prototype.isFibonacciHeap=!0,i.prototype.insert=function(u,p){var h={key:u,value:p,degree:0};if(this._minimum){var d=this._minimum;h.left=d,h.right=d.right,d.right=h,h.right.left=h,r(u,d.key)&&(this._minimum=h)}else h.left=h,h.right=h,this._minimum=h;return this._size++,h},i.prototype.size=function(){return this._size},i.prototype.clear=function(){this._minimum=null,this._size=0},i.prototype.isEmpty=function(){return this._size===0},i.prototype.extractMinimum=function(){var u=this._minimum;if(u===null)return u;for(var p=this._minimum,h=u.degree,d=u.child;h>0;){var x=d.right;d.left.right=d.right,d.right.left=d.left,d.left=p,d.right=p.right,p.right=d,d.right.left=d,d.parent=null,d=x,h--}return u.left.right=u.right,u.right.left=u.left,u===u.right?p=null:(p=u.right,p=o(p,this._size)),this._size--,this._minimum=p,u},i.prototype.remove=function(u){this._minimum=a(this._minimum,u,-1),this.extractMinimum()};function a(u,p,h){p.key=h;var d=p.parent;return d&&r(p.key,d.key)&&(s(u,p,d),c(u,d)),r(p.key,u.key)&&(u=p),u}function s(u,p,h){p.left.right=p.right,p.right.left=p.left,h.degree--,h.child===p&&(h.child=p.right),h.degree===0&&(h.child=null),p.left=u,p.right=u.right,u.right=p,p.right.left=p,p.parent=null,p.mark=!1}function c(u,p){var h=p.parent;!h||(p.mark?(s(u,p,h),c(h)):p.mark=!0)}var f=function(p,h){p.left.right=p.right,p.right.left=p.left,p.parent=h,h.child?(p.left=h.child,p.right=h.child.right,h.child.right=p,p.right.left=p):(h.child=p,p.right=p,p.left=p),h.degree++,p.mark=!1};function o(u,p){var h=Math.floor(Math.log(p)*n)+1,d=new Array(h),x=0,v=u;if(v)for(x++,v=v.right;v!==u;)x++,v=v.right;for(var y;x>0;){for(var w=v.degree,C=v.right;y=d[w],!!y;){if(t(v.key,y.key)){var b=y;y=v,v=b}f(y,v),d[w]=null,w++}d[w]=v,v=C,x--}u=null;for(var A=0;A{var{addScalar:r,equalScalar:t,FibonacciHeap:n}=e;function i(){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");this._values=[],this._heap=new n}return i.prototype.type="Spa",i.prototype.isSpa=!0,i.prototype.set=function(a,s){if(this._values[a])this._values[a].value=s;else{var c=this._heap.insert(a,s);this._values[a]=c}},i.prototype.get=function(a){var s=this._values[a];return s?s.value:0},i.prototype.accumulate=function(a,s){var c=this._values[a];c?c.value=r(c.value,s):(c=this._heap.insert(a,s),this._values[a]=c)},i.prototype.forEach=function(a,s,c){var f=this._heap,o=this._values,u=[],p=f.extractMinimum();for(p&&u.push(p);p&&p.key<=s;)p.key>=a&&(t(p.value,0)||c(p.key,p.value,this)),p=f.extractMinimum(),p&&u.push(p);for(var h=0;h{var{on:r,config:t,addScalar:n,subtractScalar:i,multiplyScalar:a,divideScalar:s,pow:c,abs:f,fix:o,round:u,equal:p,isNumeric:h,format:d,number:x,Complex:v,BigNumber:y,Fraction:w}=e,C=x;function b(K,te){if(!(this instanceof b))throw new Error("Constructor must be called with the new operator");if(!(K==null||h(K)||Gt(K)))throw new TypeError("First parameter in Unit constructor must be number, BigNumber, Fraction, Complex, or undefined");if(this.fixPrefix=!1,this.skipAutomaticSimplification=!0,te===void 0)this.units=[],this.dimensions=j.map(ee=>0);else if(typeof te=="string"){var ye=b.parse(te);this.units=ye.units,this.dimensions=ye.dimensions}else if(qt(te)&&te.value===null)this.fixPrefix=te.fixPrefix,this.skipAutomaticSimplification=te.skipAutomaticSimplification,this.dimensions=te.dimensions.slice(0),this.units=te.units.map(ee=>Mt({},ee));else throw new TypeError("Second parameter in Unit constructor must be a string or valueless Unit");this.value=this._normalize(K)}Object.defineProperty(b,"name",{value:"Unit"}),b.prototype.constructor=b,b.prototype.type="Unit",b.prototype.isUnit=!0;var A,E,S;function O(){for(;S===" "||S===" ";)_()}function F(K){return K>="0"&&K<="9"||K==="."}function M(K){return K>="0"&&K<="9"}function _(){E++,S=A.charAt(E)}function k(K){E=K,S=A.charAt(E)}function L(){var K="",te=E;if(S==="+"?_():S==="-"&&(K+=S,_()),!F(S))return k(te),null;if(S==="."){if(K+=S,_(),!M(S))return k(te),null}else{for(;M(S);)K+=S,_();S==="."&&(K+=S,_())}for(;M(S);)K+=S,_();if(S==="E"||S==="e"){var ye="",ee=E;if(ye+=S,_(),(S==="+"||S==="-")&&(ye+=S,_()),!M(S))return k(ee),K;for(K=K+ye;M(S);)K+=S,_()}return K}function Y(){for(var K="";M(S)||b.isValidAlpha(S);)K+=S,_();var te=K.charAt(0);return b.isValidAlpha(te)?K:null}function $(K){return S===K?(_(),K):null}b.parse=function(K,te){if(te=te||{},A=K,E=-1,S="",typeof A!="string")throw new TypeError("Invalid argument in Unit.parse, string expected");var ye=new b;ye.units=[];var ee=1,ne=!1;_(),O();var ue=L(),Ee=null;if(ue){if(t.number==="BigNumber")Ee=new y(ue);else if(t.number==="Fraction")try{Ee=new w(ue)}catch{Ee=parseFloat(ue)}else Ee=parseFloat(ue);O(),$("*")?(ee=1,ne=!0):$("/")&&(ee=-1,ne=!0)}for(var Ce=[],Le=1;;){for(O();S==="(";)Ce.push(ee),Le*=ee,ee=1,_(),O();var Ie=void 0;if(S){var sr=S;if(Ie=Y(),Ie===null)throw new SyntaxError('Unexpected "'+sr+'" in "'+A+'" at index '+E.toString())}else break;var ir=V(Ie);if(ir===null)throw new SyntaxError('Unit "'+Ie+'" not found.');var Xe=ee*Le;if(O(),$("^")){O();var Or=L();if(Or===null)throw new SyntaxError('In "'+K+'", "^" must be followed by a floating-point number');Xe*=Or}ye.units.push({unit:ir.unit,prefix:ir.prefix,power:Xe});for(var re=0;re1||Math.abs(this.units[0].power-1)>1e-15},b.prototype._normalize=function(K){if(K==null||this.units.length===0)return K;for(var te=K,ye=b._getNumberConverter(_r(K)),ee=0;ee{if($e(H,K)){var te=H[K],ye=te.prefixes[""];return{unit:te,prefix:ye}}for(var ee in H)if($e(H,ee)&&yy(K,ee)){var ne=H[ee],ue=K.length-ee.length,Ee=K.substring(0,ue),Ce=$e(ne.prefixes,Ee)?ne.prefixes[Ee]:void 0;if(Ce!==void 0)return{unit:ne,prefix:Ce}}return null},{hasher:K=>K[0],limit:100});b.isValuelessUnit=function(K){return V(K)!==null},b.prototype.hasBase=function(K){if(typeof K=="string"&&(K=U[K]),!K)return!1;for(var te=0;te1e-12)return!1;return!0},b.prototype.equalBase=function(K){for(var te=0;te1e-12)return!1;return!0},b.prototype.equals=function(K){return this.equalBase(K)&&p(this.value,K.value)},b.prototype.multiply=function(K){for(var te=this.clone(),ye=qt(K)?K:new b(K),ee=0;ee1e-12&&($e(ge,Ce)?te.push({unit:ge[Ce].unit,prefix:ge[Ce].prefix,power:K.dimensions[Ee]||0}):ue=!0)}te.length1e-12)if($e(pe.si,ee))te.push({unit:pe.si[ee].unit,prefix:pe.si[ee].prefix,power:K.dimensions[ye]||0});else throw new Error("Cannot express custom unit "+ee+" in SI units")}return K.units=te,K.fixPrefix=!0,K.skipAutomaticSimplification=!0,this.value!==null?(K.value=null,this.to(K)):K},b.prototype.formatUnits=function(){for(var K="",te="",ye=0,ee=0,ne=0;ne0?(ye++,K+=" "+this.units[ne].prefix.name+this.units[ne].unit.name,Math.abs(this.units[ne].power-1)>1e-15&&(K+="^"+this.units[ne].power)):this.units[ne].power<0&&ee++;if(ee>0)for(var ue=0;ue0?(te+=" "+this.units[ue].prefix.name+this.units[ue].unit.name,Math.abs(this.units[ue].power+1)>1e-15&&(te+="^"+-this.units[ue].power)):(te+=" "+this.units[ue].prefix.name+this.units[ue].unit.name,te+="^"+this.units[ue].power));K=K.substr(1),te=te.substr(1),ye>1&&ee>0&&(K="("+K+")"),ee>1&&ye>0&&(te="("+te+")");var Ee=K;return ye>0&&ee>0&&(Ee+=" / "),Ee+=te,Ee},b.prototype.format=function(K){var te=this.skipAutomaticSimplification||this.value===null?this.clone():this.simplify(),ye=!1;typeof te.value<"u"&&te.value!==null&&Gt(te.value)&&(ye=Math.abs(te.value.re)<1e-14);for(var ee in te.units)$e(te.units,ee)&&te.units[ee].unit&&(te.units[ee].unit.name==="VA"&&ye?te.units[ee].unit=H.VAR:te.units[ee].unit.name==="VAR"&&!ye&&(te.units[ee].unit=H.VA));te.units.length===1&&!te.fixPrefix&&Math.abs(te.units[0].power-Math.round(te.units[0].power))<1e-14&&(te.units[0].prefix=te._bestPrefix());var ne=te._denormalize(te.value),ue=te.value!==null?d(ne,K||{}):"",Ee=te.formatUnits();return te.value&&Gt(te.value)&&(ue="("+ue+")"),Ee.length>0&&ue.length>0&&(ue+=" "),ue+=Ee,ue},b.prototype._bestPrefix=function(){if(this.units.length!==1)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");if(Math.abs(this.units[0].power-Math.round(this.units[0].power))>=1e-14)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");var K=this.value!==null?f(this.value):0,te=f(this.units[0].unit.value),ye=this.units[0].prefix;if(K===0)return ye;var ee=this.units[0].power,ne=Math.log(K/Math.pow(ye.value*te,ee))/Math.LN10-1.2;if(ne>-2.200001&&ne<1.800001)return ye;ne=Math.abs(ne);var ue=this.units[0].unit.prefixes;for(var Ee in ue)if($e(ue,Ee)){var Ce=ue[Ee];if(Ce.scientific){var Le=Math.abs(Math.log(K/Math.pow(Ce.value*te,ee))/Math.LN10-1.2);(Le0)},H={meter:{name:"meter",base:U.LENGTH,prefixes:R.LONG,value:1,offset:0},inch:{name:"inch",base:U.LENGTH,prefixes:R.NONE,value:.0254,offset:0},foot:{name:"foot",base:U.LENGTH,prefixes:R.NONE,value:.3048,offset:0},yard:{name:"yard",base:U.LENGTH,prefixes:R.NONE,value:.9144,offset:0},mile:{name:"mile",base:U.LENGTH,prefixes:R.NONE,value:1609.344,offset:0},link:{name:"link",base:U.LENGTH,prefixes:R.NONE,value:.201168,offset:0},rod:{name:"rod",base:U.LENGTH,prefixes:R.NONE,value:5.0292,offset:0},chain:{name:"chain",base:U.LENGTH,prefixes:R.NONE,value:20.1168,offset:0},angstrom:{name:"angstrom",base:U.LENGTH,prefixes:R.NONE,value:1e-10,offset:0},m:{name:"m",base:U.LENGTH,prefixes:R.SHORT,value:1,offset:0},in:{name:"in",base:U.LENGTH,prefixes:R.NONE,value:.0254,offset:0},ft:{name:"ft",base:U.LENGTH,prefixes:R.NONE,value:.3048,offset:0},yd:{name:"yd",base:U.LENGTH,prefixes:R.NONE,value:.9144,offset:0},mi:{name:"mi",base:U.LENGTH,prefixes:R.NONE,value:1609.344,offset:0},li:{name:"li",base:U.LENGTH,prefixes:R.NONE,value:.201168,offset:0},rd:{name:"rd",base:U.LENGTH,prefixes:R.NONE,value:5.02921,offset:0},ch:{name:"ch",base:U.LENGTH,prefixes:R.NONE,value:20.1168,offset:0},mil:{name:"mil",base:U.LENGTH,prefixes:R.NONE,value:254e-7,offset:0},m2:{name:"m2",base:U.SURFACE,prefixes:R.SQUARED,value:1,offset:0},sqin:{name:"sqin",base:U.SURFACE,prefixes:R.NONE,value:64516e-8,offset:0},sqft:{name:"sqft",base:U.SURFACE,prefixes:R.NONE,value:.09290304,offset:0},sqyd:{name:"sqyd",base:U.SURFACE,prefixes:R.NONE,value:.83612736,offset:0},sqmi:{name:"sqmi",base:U.SURFACE,prefixes:R.NONE,value:2589988110336e-6,offset:0},sqrd:{name:"sqrd",base:U.SURFACE,prefixes:R.NONE,value:25.29295,offset:0},sqch:{name:"sqch",base:U.SURFACE,prefixes:R.NONE,value:404.6873,offset:0},sqmil:{name:"sqmil",base:U.SURFACE,prefixes:R.NONE,value:64516e-14,offset:0},acre:{name:"acre",base:U.SURFACE,prefixes:R.NONE,value:4046.86,offset:0},hectare:{name:"hectare",base:U.SURFACE,prefixes:R.NONE,value:1e4,offset:0},m3:{name:"m3",base:U.VOLUME,prefixes:R.CUBIC,value:1,offset:0},L:{name:"L",base:U.VOLUME,prefixes:R.SHORT,value:.001,offset:0},l:{name:"l",base:U.VOLUME,prefixes:R.SHORT,value:.001,offset:0},litre:{name:"litre",base:U.VOLUME,prefixes:R.LONG,value:.001,offset:0},cuin:{name:"cuin",base:U.VOLUME,prefixes:R.NONE,value:16387064e-12,offset:0},cuft:{name:"cuft",base:U.VOLUME,prefixes:R.NONE,value:.028316846592,offset:0},cuyd:{name:"cuyd",base:U.VOLUME,prefixes:R.NONE,value:.764554857984,offset:0},teaspoon:{name:"teaspoon",base:U.VOLUME,prefixes:R.NONE,value:5e-6,offset:0},tablespoon:{name:"tablespoon",base:U.VOLUME,prefixes:R.NONE,value:15e-6,offset:0},drop:{name:"drop",base:U.VOLUME,prefixes:R.NONE,value:5e-8,offset:0},gtt:{name:"gtt",base:U.VOLUME,prefixes:R.NONE,value:5e-8,offset:0},minim:{name:"minim",base:U.VOLUME,prefixes:R.NONE,value:6161152e-14,offset:0},fluiddram:{name:"fluiddram",base:U.VOLUME,prefixes:R.NONE,value:36966911e-13,offset:0},fluidounce:{name:"fluidounce",base:U.VOLUME,prefixes:R.NONE,value:2957353e-11,offset:0},gill:{name:"gill",base:U.VOLUME,prefixes:R.NONE,value:.0001182941,offset:0},cc:{name:"cc",base:U.VOLUME,prefixes:R.NONE,value:1e-6,offset:0},cup:{name:"cup",base:U.VOLUME,prefixes:R.NONE,value:.0002365882,offset:0},pint:{name:"pint",base:U.VOLUME,prefixes:R.NONE,value:.0004731765,offset:0},quart:{name:"quart",base:U.VOLUME,prefixes:R.NONE,value:.0009463529,offset:0},gallon:{name:"gallon",base:U.VOLUME,prefixes:R.NONE,value:.003785412,offset:0},beerbarrel:{name:"beerbarrel",base:U.VOLUME,prefixes:R.NONE,value:.1173478,offset:0},oilbarrel:{name:"oilbarrel",base:U.VOLUME,prefixes:R.NONE,value:.1589873,offset:0},hogshead:{name:"hogshead",base:U.VOLUME,prefixes:R.NONE,value:.238481,offset:0},fldr:{name:"fldr",base:U.VOLUME,prefixes:R.NONE,value:36966911e-13,offset:0},floz:{name:"floz",base:U.VOLUME,prefixes:R.NONE,value:2957353e-11,offset:0},gi:{name:"gi",base:U.VOLUME,prefixes:R.NONE,value:.0001182941,offset:0},cp:{name:"cp",base:U.VOLUME,prefixes:R.NONE,value:.0002365882,offset:0},pt:{name:"pt",base:U.VOLUME,prefixes:R.NONE,value:.0004731765,offset:0},qt:{name:"qt",base:U.VOLUME,prefixes:R.NONE,value:.0009463529,offset:0},gal:{name:"gal",base:U.VOLUME,prefixes:R.NONE,value:.003785412,offset:0},bbl:{name:"bbl",base:U.VOLUME,prefixes:R.NONE,value:.1173478,offset:0},obl:{name:"obl",base:U.VOLUME,prefixes:R.NONE,value:.1589873,offset:0},g:{name:"g",base:U.MASS,prefixes:R.SHORT,value:.001,offset:0},gram:{name:"gram",base:U.MASS,prefixes:R.LONG,value:.001,offset:0},ton:{name:"ton",base:U.MASS,prefixes:R.SHORT,value:907.18474,offset:0},t:{name:"t",base:U.MASS,prefixes:R.SHORT,value:1e3,offset:0},tonne:{name:"tonne",base:U.MASS,prefixes:R.LONG,value:1e3,offset:0},grain:{name:"grain",base:U.MASS,prefixes:R.NONE,value:6479891e-11,offset:0},dram:{name:"dram",base:U.MASS,prefixes:R.NONE,value:.0017718451953125,offset:0},ounce:{name:"ounce",base:U.MASS,prefixes:R.NONE,value:.028349523125,offset:0},poundmass:{name:"poundmass",base:U.MASS,prefixes:R.NONE,value:.45359237,offset:0},hundredweight:{name:"hundredweight",base:U.MASS,prefixes:R.NONE,value:45.359237,offset:0},stick:{name:"stick",base:U.MASS,prefixes:R.NONE,value:.115,offset:0},stone:{name:"stone",base:U.MASS,prefixes:R.NONE,value:6.35029318,offset:0},gr:{name:"gr",base:U.MASS,prefixes:R.NONE,value:6479891e-11,offset:0},dr:{name:"dr",base:U.MASS,prefixes:R.NONE,value:.0017718451953125,offset:0},oz:{name:"oz",base:U.MASS,prefixes:R.NONE,value:.028349523125,offset:0},lbm:{name:"lbm",base:U.MASS,prefixes:R.NONE,value:.45359237,offset:0},cwt:{name:"cwt",base:U.MASS,prefixes:R.NONE,value:45.359237,offset:0},s:{name:"s",base:U.TIME,prefixes:R.SHORT,value:1,offset:0},min:{name:"min",base:U.TIME,prefixes:R.NONE,value:60,offset:0},h:{name:"h",base:U.TIME,prefixes:R.NONE,value:3600,offset:0},second:{name:"second",base:U.TIME,prefixes:R.LONG,value:1,offset:0},sec:{name:"sec",base:U.TIME,prefixes:R.LONG,value:1,offset:0},minute:{name:"minute",base:U.TIME,prefixes:R.NONE,value:60,offset:0},hour:{name:"hour",base:U.TIME,prefixes:R.NONE,value:3600,offset:0},day:{name:"day",base:U.TIME,prefixes:R.NONE,value:86400,offset:0},week:{name:"week",base:U.TIME,prefixes:R.NONE,value:7*86400,offset:0},month:{name:"month",base:U.TIME,prefixes:R.NONE,value:2629800,offset:0},year:{name:"year",base:U.TIME,prefixes:R.NONE,value:31557600,offset:0},decade:{name:"decade",base:U.TIME,prefixes:R.NONE,value:315576e3,offset:0},century:{name:"century",base:U.TIME,prefixes:R.NONE,value:315576e4,offset:0},millennium:{name:"millennium",base:U.TIME,prefixes:R.NONE,value:315576e5,offset:0},hertz:{name:"Hertz",base:U.FREQUENCY,prefixes:R.LONG,value:1,offset:0,reciprocal:!0},Hz:{name:"Hz",base:U.FREQUENCY,prefixes:R.SHORT,value:1,offset:0,reciprocal:!0},rad:{name:"rad",base:U.ANGLE,prefixes:R.SHORT,value:1,offset:0},radian:{name:"radian",base:U.ANGLE,prefixes:R.LONG,value:1,offset:0},deg:{name:"deg",base:U.ANGLE,prefixes:R.SHORT,value:null,offset:0},degree:{name:"degree",base:U.ANGLE,prefixes:R.LONG,value:null,offset:0},grad:{name:"grad",base:U.ANGLE,prefixes:R.SHORT,value:null,offset:0},gradian:{name:"gradian",base:U.ANGLE,prefixes:R.LONG,value:null,offset:0},cycle:{name:"cycle",base:U.ANGLE,prefixes:R.NONE,value:null,offset:0},arcsec:{name:"arcsec",base:U.ANGLE,prefixes:R.NONE,value:null,offset:0},arcmin:{name:"arcmin",base:U.ANGLE,prefixes:R.NONE,value:null,offset:0},A:{name:"A",base:U.CURRENT,prefixes:R.SHORT,value:1,offset:0},ampere:{name:"ampere",base:U.CURRENT,prefixes:R.LONG,value:1,offset:0},K:{name:"K",base:U.TEMPERATURE,prefixes:R.SHORT,value:1,offset:0},degC:{name:"degC",base:U.TEMPERATURE,prefixes:R.SHORT,value:1,offset:273.15},degF:{name:"degF",base:U.TEMPERATURE,prefixes:R.SHORT,value:new w(5,9),offset:459.67},degR:{name:"degR",base:U.TEMPERATURE,prefixes:R.SHORT,value:new w(5,9),offset:0},kelvin:{name:"kelvin",base:U.TEMPERATURE,prefixes:R.LONG,value:1,offset:0},celsius:{name:"celsius",base:U.TEMPERATURE,prefixes:R.LONG,value:1,offset:273.15},fahrenheit:{name:"fahrenheit",base:U.TEMPERATURE,prefixes:R.LONG,value:new w(5,9),offset:459.67},rankine:{name:"rankine",base:U.TEMPERATURE,prefixes:R.LONG,value:new w(5,9),offset:0},mol:{name:"mol",base:U.AMOUNT_OF_SUBSTANCE,prefixes:R.SHORT,value:1,offset:0},mole:{name:"mole",base:U.AMOUNT_OF_SUBSTANCE,prefixes:R.LONG,value:1,offset:0},cd:{name:"cd",base:U.LUMINOUS_INTENSITY,prefixes:R.SHORT,value:1,offset:0},candela:{name:"candela",base:U.LUMINOUS_INTENSITY,prefixes:R.LONG,value:1,offset:0},N:{name:"N",base:U.FORCE,prefixes:R.SHORT,value:1,offset:0},newton:{name:"newton",base:U.FORCE,prefixes:R.LONG,value:1,offset:0},dyn:{name:"dyn",base:U.FORCE,prefixes:R.SHORT,value:1e-5,offset:0},dyne:{name:"dyne",base:U.FORCE,prefixes:R.LONG,value:1e-5,offset:0},lbf:{name:"lbf",base:U.FORCE,prefixes:R.NONE,value:4.4482216152605,offset:0},poundforce:{name:"poundforce",base:U.FORCE,prefixes:R.NONE,value:4.4482216152605,offset:0},kip:{name:"kip",base:U.FORCE,prefixes:R.LONG,value:4448.2216,offset:0},kilogramforce:{name:"kilogramforce",base:U.FORCE,prefixes:R.NONE,value:9.80665,offset:0},J:{name:"J",base:U.ENERGY,prefixes:R.SHORT,value:1,offset:0},joule:{name:"joule",base:U.ENERGY,prefixes:R.LONG,value:1,offset:0},erg:{name:"erg",base:U.ENERGY,prefixes:R.SHORTLONG,value:1e-7,offset:0},Wh:{name:"Wh",base:U.ENERGY,prefixes:R.SHORT,value:3600,offset:0},BTU:{name:"BTU",base:U.ENERGY,prefixes:R.BTU,value:1055.05585262,offset:0},eV:{name:"eV",base:U.ENERGY,prefixes:R.SHORT,value:1602176565e-28,offset:0},electronvolt:{name:"electronvolt",base:U.ENERGY,prefixes:R.LONG,value:1602176565e-28,offset:0},W:{name:"W",base:U.POWER,prefixes:R.SHORT,value:1,offset:0},watt:{name:"watt",base:U.POWER,prefixes:R.LONG,value:1,offset:0},hp:{name:"hp",base:U.POWER,prefixes:R.NONE,value:745.6998715386,offset:0},VAR:{name:"VAR",base:U.POWER,prefixes:R.SHORT,value:v.I,offset:0},VA:{name:"VA",base:U.POWER,prefixes:R.SHORT,value:1,offset:0},Pa:{name:"Pa",base:U.PRESSURE,prefixes:R.SHORT,value:1,offset:0},psi:{name:"psi",base:U.PRESSURE,prefixes:R.NONE,value:6894.75729276459,offset:0},atm:{name:"atm",base:U.PRESSURE,prefixes:R.NONE,value:101325,offset:0},bar:{name:"bar",base:U.PRESSURE,prefixes:R.SHORTLONG,value:1e5,offset:0},torr:{name:"torr",base:U.PRESSURE,prefixes:R.NONE,value:133.322,offset:0},mmHg:{name:"mmHg",base:U.PRESSURE,prefixes:R.NONE,value:133.322,offset:0},mmH2O:{name:"mmH2O",base:U.PRESSURE,prefixes:R.NONE,value:9.80665,offset:0},cmH2O:{name:"cmH2O",base:U.PRESSURE,prefixes:R.NONE,value:98.0665,offset:0},coulomb:{name:"coulomb",base:U.ELECTRIC_CHARGE,prefixes:R.LONG,value:1,offset:0},C:{name:"C",base:U.ELECTRIC_CHARGE,prefixes:R.SHORT,value:1,offset:0},farad:{name:"farad",base:U.ELECTRIC_CAPACITANCE,prefixes:R.LONG,value:1,offset:0},F:{name:"F",base:U.ELECTRIC_CAPACITANCE,prefixes:R.SHORT,value:1,offset:0},volt:{name:"volt",base:U.ELECTRIC_POTENTIAL,prefixes:R.LONG,value:1,offset:0},V:{name:"V",base:U.ELECTRIC_POTENTIAL,prefixes:R.SHORT,value:1,offset:0},ohm:{name:"ohm",base:U.ELECTRIC_RESISTANCE,prefixes:R.SHORTLONG,value:1,offset:0},henry:{name:"henry",base:U.ELECTRIC_INDUCTANCE,prefixes:R.LONG,value:1,offset:0},H:{name:"H",base:U.ELECTRIC_INDUCTANCE,prefixes:R.SHORT,value:1,offset:0},siemens:{name:"siemens",base:U.ELECTRIC_CONDUCTANCE,prefixes:R.LONG,value:1,offset:0},S:{name:"S",base:U.ELECTRIC_CONDUCTANCE,prefixes:R.SHORT,value:1,offset:0},weber:{name:"weber",base:U.MAGNETIC_FLUX,prefixes:R.LONG,value:1,offset:0},Wb:{name:"Wb",base:U.MAGNETIC_FLUX,prefixes:R.SHORT,value:1,offset:0},tesla:{name:"tesla",base:U.MAGNETIC_FLUX_DENSITY,prefixes:R.LONG,value:1,offset:0},T:{name:"T",base:U.MAGNETIC_FLUX_DENSITY,prefixes:R.SHORT,value:1,offset:0},b:{name:"b",base:U.BIT,prefixes:R.BINARY_SHORT,value:1,offset:0},bits:{name:"bits",base:U.BIT,prefixes:R.BINARY_LONG,value:1,offset:0},B:{name:"B",base:U.BIT,prefixes:R.BINARY_SHORT,value:8,offset:0},bytes:{name:"bytes",base:U.BIT,prefixes:R.BINARY_LONG,value:8,offset:0}},ce={meters:"meter",inches:"inch",feet:"foot",yards:"yard",miles:"mile",links:"link",rods:"rod",chains:"chain",angstroms:"angstrom",lt:"l",litres:"litre",liter:"litre",liters:"litre",teaspoons:"teaspoon",tablespoons:"tablespoon",minims:"minim",fluiddrams:"fluiddram",fluidounces:"fluidounce",gills:"gill",cups:"cup",pints:"pint",quarts:"quart",gallons:"gallon",beerbarrels:"beerbarrel",oilbarrels:"oilbarrel",hogsheads:"hogshead",gtts:"gtt",grams:"gram",tons:"ton",tonnes:"tonne",grains:"grain",drams:"dram",ounces:"ounce",poundmasses:"poundmass",hundredweights:"hundredweight",sticks:"stick",lb:"lbm",lbs:"lbm",kips:"kip",kgf:"kilogramforce",acres:"acre",hectares:"hectare",sqfeet:"sqft",sqyard:"sqyd",sqmile:"sqmi",sqmiles:"sqmi",mmhg:"mmHg",mmh2o:"mmH2O",cmh2o:"cmH2O",seconds:"second",secs:"second",minutes:"minute",mins:"minute",hours:"hour",hr:"hour",hrs:"hour",days:"day",weeks:"week",months:"month",years:"year",decades:"decade",centuries:"century",millennia:"millennium",hertz:"hertz",radians:"radian",degrees:"degree",gradians:"gradian",cycles:"cycle",arcsecond:"arcsec",arcseconds:"arcsec",arcminute:"arcmin",arcminutes:"arcmin",BTUs:"BTU",watts:"watt",joules:"joule",amperes:"ampere",amps:"ampere",amp:"ampere",coulombs:"coulomb",volts:"volt",ohms:"ohm",farads:"farad",webers:"weber",teslas:"tesla",electronvolts:"electronvolt",moles:"mole",bit:"bits",byte:"bytes"};function Me(K){if(K.number==="BigNumber"){var te=Af(y);H.rad.value=new y(1),H.deg.value=te.div(180),H.grad.value=te.div(200),H.cycle.value=te.times(2),H.arcsec.value=te.div(648e3),H.arcmin.value=te.div(10800)}else H.rad.value=1,H.deg.value=Math.PI/180,H.grad.value=Math.PI/200,H.cycle.value=Math.PI*2,H.arcsec.value=Math.PI/648e3,H.arcmin.value=Math.PI/10800;H.radian.value=H.rad.value,H.degree.value=H.deg.value,H.gradian.value=H.grad.value}Me(t),r&&r("config",function(K,te){K.number!==te.number&&Me(K)});var pe={si:{NONE:{unit:ie,prefix:R.NONE[""]},LENGTH:{unit:H.m,prefix:R.SHORT[""]},MASS:{unit:H.g,prefix:R.SHORT.k},TIME:{unit:H.s,prefix:R.SHORT[""]},CURRENT:{unit:H.A,prefix:R.SHORT[""]},TEMPERATURE:{unit:H.K,prefix:R.SHORT[""]},LUMINOUS_INTENSITY:{unit:H.cd,prefix:R.SHORT[""]},AMOUNT_OF_SUBSTANCE:{unit:H.mol,prefix:R.SHORT[""]},ANGLE:{unit:H.rad,prefix:R.SHORT[""]},BIT:{unit:H.bits,prefix:R.SHORT[""]},FORCE:{unit:H.N,prefix:R.SHORT[""]},ENERGY:{unit:H.J,prefix:R.SHORT[""]},POWER:{unit:H.W,prefix:R.SHORT[""]},PRESSURE:{unit:H.Pa,prefix:R.SHORT[""]},ELECTRIC_CHARGE:{unit:H.C,prefix:R.SHORT[""]},ELECTRIC_CAPACITANCE:{unit:H.F,prefix:R.SHORT[""]},ELECTRIC_POTENTIAL:{unit:H.V,prefix:R.SHORT[""]},ELECTRIC_RESISTANCE:{unit:H.ohm,prefix:R.SHORT[""]},ELECTRIC_INDUCTANCE:{unit:H.H,prefix:R.SHORT[""]},ELECTRIC_CONDUCTANCE:{unit:H.S,prefix:R.SHORT[""]},MAGNETIC_FLUX:{unit:H.Wb,prefix:R.SHORT[""]},MAGNETIC_FLUX_DENSITY:{unit:H.T,prefix:R.SHORT[""]},FREQUENCY:{unit:H.Hz,prefix:R.SHORT[""]}}};pe.cgs=JSON.parse(JSON.stringify(pe.si)),pe.cgs.LENGTH={unit:H.m,prefix:R.SHORT.c},pe.cgs.MASS={unit:H.g,prefix:R.SHORT[""]},pe.cgs.FORCE={unit:H.dyn,prefix:R.SHORT[""]},pe.cgs.ENERGY={unit:H.erg,prefix:R.NONE[""]},pe.us=JSON.parse(JSON.stringify(pe.si)),pe.us.LENGTH={unit:H.ft,prefix:R.NONE[""]},pe.us.MASS={unit:H.lbm,prefix:R.NONE[""]},pe.us.TEMPERATURE={unit:H.degF,prefix:R.NONE[""]},pe.us.FORCE={unit:H.lbf,prefix:R.NONE[""]},pe.us.ENERGY={unit:H.BTU,prefix:R.BTU[""]},pe.us.POWER={unit:H.hp,prefix:R.NONE[""]},pe.us.PRESSURE={unit:H.psi,prefix:R.NONE[""]},pe.auto=JSON.parse(JSON.stringify(pe.si));var ge=pe.auto;b.setUnitSystem=function(K){if($e(pe,K))ge=pe[K];else throw new Error("Unit system "+K+" does not exist. Choices are: "+Object.keys(pe).join(", "))},b.getUnitSystem=function(){for(var K in pe)if($e(pe,K)&&pe[K]===ge)return K},b.typeConverters={BigNumber:function(te){return te!=null&&te.isFraction?new y(te.n).div(te.d).times(te.s):new y(te+"")},Fraction:function(te){return new w(te)},Complex:function(te){return te},number:function(te){return te!=null&&te.isFraction?x(te):te}},b.prototype._numberConverter=function(){var K=b.typeConverters[this.valueType()];if(K)return K;throw new TypeError('Unsupported Unit value type "'+this.valueType()+'"')},b._getNumberConverter=function(K){if(!b.typeConverters[K])throw new TypeError('Unsupported type "'+K+'"');return b.typeConverters[K]};for(var Se in H)if($e(H,Se)){var xe=H[Se];xe.dimensions=xe.base.dimensions}for(var be in ce)if($e(ce,be)){var De=H[ce[be]],Ae={};for(var ze in De)$e(De,ze)&&(Ae[ze]=De[ze]);Ae.name=be,H[be]=Ae}b.isValidAlpha=function(te){return/^[a-zA-Z]$/.test(te)};function Ze(K){for(var te=0;te0&&!(b.isValidAlpha(S)||M(S)))throw new Error('Invalid unit name (only alphanumeric characters are allowed): "'+K+'"')}}return b.createUnit=function(K,te){if(typeof K!="object")throw new TypeError("createUnit expects first parameter to be of type 'Object'");if(te&&te.override){for(var ye in K)if($e(K,ye)&&b.deleteUnit(ye),K[ye].aliases)for(var ee=0;ee"u"||te===null)&&(te={}),typeof K!="string")throw new TypeError("createUnitSingle expects first parameter to be of type 'string'");if($e(H,K))throw new Error('Cannot create unit "'+K+'": a unit with that name already exists');Ze(K);var ye=null,ee=[],ne=0,ue,Ee,Ce;if(te&&te.type==="Unit")ye=te.clone();else if(typeof te=="string")te!==""&&(ue=te);else if(typeof te=="object")ue=te.definition,Ee=te.prefixes,ne=te.offset,Ce=te.baseName,te.aliases&&(ee=te.aliases.valueOf());else throw new TypeError('Cannot create unit "'+K+'" from "'+te.toString()+'": expecting "string" or "Unit" or "Object"');if(ee){for(var Le=0;Le1e-12){le=!1;break}if(le){Or=!0,Ie.base=U[re];break}}if(!Or){Ce=Ce||K+"_STUFF";var Oe={dimensions:ye.dimensions.slice(0)};Oe.key=Ce,U[Ce]=Oe,ge[Ce]={unit:Ie,prefix:R.NONE[""]},Ie.base=U[Ce]}}else{if(Ce=Ce||K+"_STUFF",j.indexOf(Ce)>=0)throw new Error('Cannot create new base unit "'+K+'": a base unit with that name already exists (and cannot be overridden)');j.push(Ce);for(var sr in U)$e(U,sr)&&(U[sr].dimensions[j.length-1]=0);for(var ir={dimensions:[]},Xe=0;Xe{var{typed:r,Unit:t}=e;return r($S,{Unit:function(i){return i.clone()},string:function(i){return t.isValuelessUnit(i)?new t(null,i):t.parse(i,{allowNoUnits:!0})},"number | BigNumber | Fraction | Complex, string | Unit":function(i,a){return new t(i,a)},"number | BigNumber | Fraction":function(i){return new t(i)},"Array | Matrix":r.referToSelf(n=>i=>Je(i,n))})});var QS="sparse",jq=["typed","SparseMatrix"],XS=T(QS,jq,e=>{var{typed:r,SparseMatrix:t}=e;return r(QS,{"":function(){return new t([])},string:function(i){return new t([],i)},"Array | Matrix":function(i){return new t(i)},"Array | Matrix, string":function(i,a){return new t(i,a)}})});var JS="createUnit",eU=["typed","Unit"],KS=T(JS,eU,e=>{var{typed:r,Unit:t}=e;return r(JS,{"Object, Object":function(i,a){return t.createUnit(i,a)},Object:function(i){return t.createUnit(i,{})},"string, Unit | string | Object, Object":function(i,a,s){var c={};return c[i]=a,t.createUnit(c,s)},"string, Unit | string | Object":function(i,a){var s={};return s[i]=a,t.createUnit(s,{})},string:function(i){var a={};return a[i]={},t.createUnit(a,{})}})});var jS="acos",rU=["typed","config","Complex"],eN=T(jS,rU,e=>{var{typed:r,config:t,Complex:n}=e;return r(jS,{number:function(a){return a>=-1&&a<=1||t.predictable?Math.acos(a):new n(a,0).acos()},Complex:function(a){return a.acos()},BigNumber:function(a){return a.acos()}})});var rN="acosh",tU=["typed","config","Complex"],tN=T(rN,tU,e=>{var{typed:r,config:t,Complex:n}=e;return r(rN,{number:function(a){return a>=1||t.predictable?qv(a):a<=-1?new n(Math.log(Math.sqrt(a*a-1)-a),Math.PI):new n(a,0).acosh()},Complex:function(a){return a.acosh()},BigNumber:function(a){return a.acosh()}})});var nN="acot",nU=["typed","BigNumber"],iN=T(nN,nU,e=>{var{typed:r,BigNumber:t}=e;return r(nN,{number:Uv,Complex:function(i){return i.acot()},BigNumber:function(i){return new t(1).div(i).atan()}})});var aN="acoth",iU=["typed","config","Complex","BigNumber"],oN=T(aN,iU,e=>{var{typed:r,config:t,Complex:n,BigNumber:i}=e;return r(aN,{number:function(s){return s>=1||s<=-1||t.predictable?zv(s):new n(s,0).acoth()},Complex:function(s){return s.acoth()},BigNumber:function(s){return new i(1).div(s).atanh()}})});var sN="acsc",aU=["typed","config","Complex","BigNumber"],uN=T(sN,aU,e=>{var{typed:r,config:t,Complex:n,BigNumber:i}=e;return r(sN,{number:function(s){return s<=-1||s>=1||t.predictable?Wv(s):new n(s,0).acsc()},Complex:function(s){return s.acsc()},BigNumber:function(s){return new i(1).div(s).asin()}})});var fN="acsch",oU=["typed","BigNumber"],lN=T(fN,oU,e=>{var{typed:r,BigNumber:t}=e;return r(fN,{number:Vv,Complex:function(i){return i.acsch()},BigNumber:function(i){return new t(1).div(i).asinh()}})});var cN="asec",sU=["typed","config","Complex","BigNumber"],pN=T(cN,sU,e=>{var{typed:r,config:t,Complex:n,BigNumber:i}=e;return r(cN,{number:function(s){return s<=-1||s>=1||t.predictable?Yv(s):new n(s,0).asec()},Complex:function(s){return s.asec()},BigNumber:function(s){return new i(1).div(s).acos()}})});var mN="asech",uU=["typed","config","Complex","BigNumber"],hN=T(mN,uU,e=>{var{typed:r,config:t,Complex:n,BigNumber:i}=e;return r(mN,{number:function(s){if(s<=1&&s>=-1||t.predictable){var c=1/s;if(c>0||t.predictable)return Hv(s);var f=Math.sqrt(c*c-1);return new n(Math.log(f-c),Math.PI)}return new n(s,0).asech()},Complex:function(s){return s.asech()},BigNumber:function(s){return new i(1).div(s).acosh()}})});var dN="asin",fU=["typed","config","Complex"],vN=T(dN,fU,e=>{var{typed:r,config:t,Complex:n}=e;return r(dN,{number:function(a){return a>=-1&&a<=1||t.predictable?Math.asin(a):new n(a,0).asin()},Complex:function(a){return a.asin()},BigNumber:function(a){return a.asin()}})});var lU="asinh",cU=["typed"],gN=T(lU,cU,e=>{var{typed:r}=e;return r("asinh",{number:Gv,Complex:function(n){return n.asinh()},BigNumber:function(n){return n.asinh()}})});var pU="atan",mU=["typed"],xN=T(pU,mU,e=>{var{typed:r}=e;return r("atan",{number:function(n){return Math.atan(n)},Complex:function(n){return n.atan()},BigNumber:function(n){return n.atan()}})});var yN="atan2",hU=["typed","matrix","equalScalar","BigNumber","DenseMatrix","concat"],bN=T(yN,hU,e=>{var{typed:r,matrix:t,equalScalar:n,BigNumber:i,DenseMatrix:a,concat:s}=e,c=It({typed:r,equalScalar:n}),f=ft({typed:r}),o=zc({typed:r,equalScalar:n}),u=Jr({typed:r,equalScalar:n}),p=Lr({typed:r,DenseMatrix:a}),h=vr({typed:r,matrix:t,concat:s});return r(yN,{"number, number":Math.atan2,"BigNumber, BigNumber":(d,x)=>i.atan2(d,x)},h({scalar:"number | BigNumber",SS:o,DS:f,SD:c,Ss:u,sS:p}))});var wN="atanh",dU=["typed","config","Complex"],DN=T(wN,dU,e=>{var{typed:r,config:t,Complex:n}=e;return r(wN,{number:function(a){return a<=1&&a>=-1||t.predictable?$v(a):new n(a,0).atanh()},Complex:function(a){return a.atanh()},BigNumber:function(a){return a.atanh()}})});var gi=T("trigUnit",["typed"],e=>{var{typed:r}=e;return{Unit:r.referToSelf(t=>n=>{if(!n.hasBase(n.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cot is no angle");return r.find(t,n.valueType())(n.value)})}});var SN="cos",vU=["typed"],NN=T(SN,vU,e=>{var{typed:r}=e,t=gi({typed:r});return r(SN,{number:Math.cos,"Complex | BigNumber":n=>n.cos()},t)});var AN="cosh",gU=["typed"],EN=T(AN,gU,e=>{var{typed:r}=e;return r(AN,{number:yc,"Complex | BigNumber":t=>t.cosh()})});var CN="cot",xU=["typed","BigNumber"],MN=T(CN,xU,e=>{var{typed:r,BigNumber:t}=e,n=gi({typed:r});return r(CN,{number:Zv,Complex:i=>i.cot(),BigNumber:i=>new t(1).div(i.tan())},n)});var _N="coth",yU=["typed","BigNumber"],TN=T(_N,yU,e=>{var{typed:r,BigNumber:t}=e;return r(_N,{number:Qv,Complex:n=>n.coth(),BigNumber:n=>new t(1).div(n.tanh())})});var FN="csc",bU=["typed","BigNumber"],ON=T(FN,bU,e=>{var{typed:r,BigNumber:t}=e,n=gi({typed:r});return r(FN,{number:Xv,Complex:i=>i.csc(),BigNumber:i=>new t(1).div(i.sin())},n)});var BN="csch",wU=["typed","BigNumber"],IN=T(BN,wU,e=>{var{typed:r,BigNumber:t}=e;return r(BN,{number:Jv,Complex:n=>n.csch(),BigNumber:n=>new t(1).div(n.sinh())})});var PN="sec",DU=["typed","BigNumber"],kN=T(PN,DU,e=>{var{typed:r,BigNumber:t}=e,n=gi({typed:r});return r(PN,{number:Kv,Complex:i=>i.sec(),BigNumber:i=>new t(1).div(i.cos())},n)});var RN="sech",SU=["typed","BigNumber"],LN=T(RN,SU,e=>{var{typed:r,BigNumber:t}=e;return r(RN,{number:jv,Complex:n=>n.sech(),BigNumber:n=>new t(1).div(n.cosh())})});var qN="sin",NU=["typed"],UN=T(qN,NU,e=>{var{typed:r}=e,t=gi({typed:r});return r(qN,{number:Math.sin,"Complex | BigNumber":n=>n.sin()},t)});var zN="sinh",AU=["typed"],WN=T(zN,AU,e=>{var{typed:r}=e;return r(zN,{number:eg,"Complex | BigNumber":t=>t.sinh()})});var VN="tan",EU=["typed"],YN=T(VN,EU,e=>{var{typed:r}=e,t=gi({typed:r});return r(VN,{number:Math.tan,"Complex | BigNumber":n=>n.tan()},t)});var CU="tanh",MU=["typed"],HN=T(CU,MU,e=>{var{typed:r}=e;return r("tanh",{number:bc,"Complex | BigNumber":t=>t.tanh()})});var GN="setCartesian",_U=["typed","size","subset","compareNatural","Index","DenseMatrix"],$N=T(GN,_U,e=>{var{typed:r,size:t,subset:n,compareNatural:i,Index:a,DenseMatrix:s}=e;return r(GN,{"Array | Matrix, Array | Matrix":function(f,o){var u=[];if(n(t(f),new a(0))!==0&&n(t(o),new a(0))!==0){var p=gr(Array.isArray(f)?f:f.toArray()).sort(i),h=gr(Array.isArray(o)?o:o.toArray()).sort(i);u=[];for(var d=0;d{var{typed:r,size:t,subset:n,compareNatural:i,Index:a,DenseMatrix:s}=e;return r(ZN,{"Array | Matrix, Array | Matrix":function(f,o){var u;if(n(t(f),new a(0))===0)u=[];else{if(n(t(o),new a(0))===0)return gr(f.toArray());var p=Ia(gr(Array.isArray(f)?f:f.toArray()).sort(i)),h=Ia(gr(Array.isArray(o)?o:o.toArray()).sort(i));u=[];for(var d,x=0;x{var{typed:r,size:t,subset:n,compareNatural:i,Index:a,DenseMatrix:s}=e;return r(XN,{"Array | Matrix":function(f){var o;if(n(t(f),new a(0))===0)o=[];else{var u=gr(Array.isArray(f)?f:f.toArray()).sort(i);o=[],o.push(u[0]);for(var p=1;p{var{typed:r,size:t,subset:n,compareNatural:i,Index:a,DenseMatrix:s}=e;return r(KN,{"Array | Matrix, Array | Matrix":function(f,o){var u;if(n(t(f),new a(0))===0||n(t(o),new a(0))===0)u=[];else{var p=Ia(gr(Array.isArray(f)?f:f.toArray()).sort(i)),h=Ia(gr(Array.isArray(o)?o:o.toArray()).sort(i));u=[];for(var d=0;d{var{typed:r,size:t,subset:n,compareNatural:i,Index:a}=e;return r(e2,{"Array | Matrix, Array | Matrix":function(c,f){if(n(t(c),new a(0))===0)return!0;if(n(t(f),new a(0))===0)return!1;for(var o=Ia(gr(Array.isArray(c)?c:c.toArray()).sort(i)),u=Ia(gr(Array.isArray(f)?f:f.toArray()).sort(i)),p,h=0;h{var{typed:r,size:t,subset:n,compareNatural:i,Index:a}=e;return r(t2,{"number | BigNumber | Fraction | Complex, Array | Matrix":function(c,f){if(n(t(f),new a(0))===0)return 0;for(var o=gr(Array.isArray(f)?f:f.toArray()),u=0,p=0;p{var{typed:r,size:t,subset:n,compareNatural:i,Index:a}=e;return r(i2,{"Array | Matrix":function(o){if(n(t(o),new a(0))===0)return[];for(var u=gr(Array.isArray(o)?o:o.toArray()).sort(i),p=[],h=0;h.toString(2).length<=u.length;)p.push(s(u,h.toString(2).split("").reverse())),h++;return c(p)}});function s(f,o){for(var u=[],p=0;p0;u--)for(var p=0;pf[p+1].length&&(o=f[p],f[p]=f[p+1],f[p+1]=o);return f}});var o2="setSize",kU=["typed","compareNatural"],s2=T(o2,kU,e=>{var{typed:r,compareNatural:t}=e;return r(o2,{"Array | Matrix":function(i){return Array.isArray(i)?gr(i).length:gr(i.toArray()).length},"Array | Matrix, boolean":function(i,a){if(a===!1||i.length===0)return Array.isArray(i)?gr(i).length:gr(i.toArray()).length;for(var s=gr(Array.isArray(i)?i:i.toArray()).sort(t),c=1,f=1;f{var{typed:r,size:t,concat:n,subset:i,setDifference:a,Index:s}=e;return r(u2,{"Array | Matrix, Array | Matrix":function(f,o){if(i(t(f),new s(0))===0)return gr(o);if(i(t(o),new s(0))===0)return gr(f);var u=gr(f),p=gr(o);return n(a(u,p),a(p,u))}})});var l2="setUnion",LU=["typed","size","concat","subset","setIntersect","setSymDifference","Index"],c2=T(l2,LU,e=>{var{typed:r,size:t,concat:n,subset:i,setIntersect:a,setSymDifference:s,Index:c}=e;return r(l2,{"Array | Matrix, Array | Matrix":function(o,u){if(i(t(o),new c(0))===0)return gr(u);if(i(t(u),new c(0))===0)return gr(o);var p=gr(o),h=gr(u);return n(s(p,h),a(p,h))}})});var p2="add",qU=["typed","matrix","addScalar","equalScalar","DenseMatrix","SparseMatrix","concat"],m2=T(p2,qU,e=>{var{typed:r,matrix:t,addScalar:n,equalScalar:i,DenseMatrix:a,SparseMatrix:s,concat:c}=e,f=dn({typed:r}),o=ou({typed:r,equalScalar:i}),u=Un({typed:r,DenseMatrix:a}),p=vr({typed:r,matrix:t,concat:c});return r(p2,{"any, any":n,"any, any, ...any":r.referToSelf(h=>(d,x,v)=>{for(var y=h(d,x),w=0;w{var{typed:r,abs:t,addScalar:n,divideScalar:i,multiplyScalar:a,sqrt:s,smaller:c,isPositive:f}=e;return r(h2,{"... number | BigNumber":o,Array:o,Matrix:u=>o(gr(u.toArray()))});function o(u){for(var p=0,h=0,d=0;d{var{typed:r,abs:t,add:n,pow:i,conj:a,sqrt:s,multiply:c,equalScalar:f,larger:o,smaller:u,matrix:p,ctranspose:h,eigs:d}=e;return r(v2,{number:Math.abs,Complex:function(F){return F.abs()},BigNumber:function(F){return F.abs()},boolean:function(F){return Math.abs(F)},Array:function(F){return S(p(F),2)},Matrix:function(F){return S(F,2)},"Array, number | BigNumber | string":function(F,M){return S(p(F),M)},"Matrix, number | BigNumber | string":function(F,M){return S(F,M)}});function x(O){var F=0;return O.forEach(function(M){var _=t(M);o(_,F)&&(F=_)},!0),F}function v(O){var F;return O.forEach(function(M){var _=t(M);(!F||u(_,F))&&(F=_)},!0),F||0}function y(O,F){if(F===Number.POSITIVE_INFINITY||F==="inf")return x(O);if(F===Number.NEGATIVE_INFINITY||F==="-inf")return v(O);if(F==="fro")return S(O,2);if(typeof F=="number"&&!isNaN(F)){if(!f(F,0)){var M=0;return O.forEach(function(_){M=n(i(t(_),F),M)},!0),i(M,1/F)}return Number.POSITIVE_INFINITY}throw new Error("Unsupported parameter value")}function w(O){var F=0;return O.forEach(function(M,_){F=n(F,c(M,a(M)))}),t(s(F))}function C(O){var F=[],M=0;return O.forEach(function(_,k){var L=k[1],Y=n(F[L]||0,t(_));o(Y,M)&&(M=Y),F[L]=Y},!0),M}function b(O){var F=O.size();if(F[0]!==F[1])throw new RangeError("Invalid matrix dimensions");var M=h(O),_=c(M,O),k=d(_).values.toArray(),L=k[k.length-1];return t(s(L))}function A(O){var F=[],M=0;return O.forEach(function(_,k){var L=k[0],Y=n(F[L]||0,t(_));o(Y,M)&&(M=Y),F[L]=Y},!0),M}function E(O,F){if(F===1)return C(O);if(F===Number.POSITIVE_INFINITY||F==="inf")return A(O);if(F==="fro")return w(O);if(F===2)return b(O);throw new Error("Unsupported parameter value "+F)}function S(O,F){var M=O.size();if(M.length===1)return y(O,F);if(M.length===2){if(M[0]&&M[1])return E(O,F);throw new RangeError("Invalid matrix dimensions")}}});var x2="dot",WU=["typed","addScalar","multiplyScalar","conj","size"],y2=T(x2,WU,e=>{var{typed:r,addScalar:t,multiplyScalar:n,conj:i,size:a}=e;return r(x2,{"Array | DenseMatrix, Array | DenseMatrix":c,"SparseMatrix, SparseMatrix":f});function s(u,p){var h=o(u),d=o(p),x,v;if(h.length===1)x=h[0];else if(h.length===2&&h[1]===1)x=h[0];else throw new RangeError("Expected a column vector, instead got a matrix of size ("+h.join(", ")+")");if(d.length===1)v=d[0];else if(d.length===2&&d[1]===1)v=d[0];else throw new RangeError("Expected a column vector, instead got a matrix of size ("+d.join(", ")+")");if(x!==v)throw new RangeError("Vectors must have equal length ("+x+" != "+v+")");if(x===0)throw new RangeError("Cannot calculate the dot product of empty vectors");return x}function c(u,p){var h=s(u,p),d=Ge(u)?u._data:u,x=Ge(u)?u._datatype||u.getDataType():void 0,v=Ge(p)?p._data:p,y=Ge(p)?p._datatype||p.getDataType():void 0,w=o(u).length===2,C=o(p).length===2,b=t,A=n;if(x&&y&&x===y&&typeof x=="string"&&x!=="mixed"){var E=x;b=r.find(t,[E,E]),A=r.find(n,[E,E])}if(!w&&!C){for(var S=A(i(d[0]),v[0]),O=1;OS){A++;continue}E===S&&(y=w(y,C(d[b],v[A])),b++,A++)}return y}function o(u){return Ge(u)?u.size():a(u)}});var VU="trace",YU=["typed","matrix","add"],b2=T(VU,YU,e=>{var{typed:r,matrix:t,add:n}=e;return r("trace",{Array:function(c){return i(t(c))},SparseMatrix:a,DenseMatrix:i,any:tr});function i(s){var c=s._size,f=s._data;switch(c.length){case 1:if(c[0]===1)return tr(f[0]);throw new RangeError("Matrix must be square (size: "+lr(c)+")");case 2:{var o=c[0],u=c[1];if(o===u){for(var p=0,h=0;h0)for(var x=0;xx)break}return d}throw new RangeError("Matrix must be square (size: "+lr(u)+")")}});var w2="index",HU=["typed","Index"],D2=T(w2,HU,e=>{var{typed:r,Index:t}=e;return r(w2,{"...number | string | BigNumber | Range | Array | Matrix":function(i){var a=i.map(function(c){return je(c)?c.toNumber():Ar(c)||Ge(c)?c.map(function(f){return je(f)?f.toNumber():f}):c}),s=new t;return t.apply(s,a),s}})});var mp=new Set(["end"]);var GU="Node",$U=["mathWithTransform"],S2=T(GU,$U,e=>{var{mathWithTransform:r}=e;function t(i){for(var a of[...mp])if(i.has(a))throw new Error('Scope contains an illegal symbol, "'+a+'" is a reserved keyword')}class n{get type(){return"Node"}get isNode(){return!0}evaluate(a){return this.compile().evaluate(a)}compile(){var a=this._compile(r,{}),s={},c=null;function f(o){var u=Pa(o);return t(u),a(u,s,c)}return{evaluate:f}}_compile(a,s){throw new Error("Method _compile must be implemented by type "+this.type)}forEach(a){throw new Error("Cannot run forEach on a Node interface")}map(a){throw new Error("Cannot run map on a Node interface")}_ifNode(a){if(!Sr(a))throw new TypeError("Callback function must return a Node");return a}traverse(a){a(this,null,null);function s(c,f){c.forEach(function(o,u,p){f(o,u,p),s(o,f)})}s(this,a)}transform(a){function s(c,f,o){var u=a(c,f,o);return u!==c?u:c.map(s)}return s(this,null,null)}filter(a){var s=[];return this.traverse(function(c,f,o){a(c,f,o)&&s.push(c)}),s}clone(){throw new Error("Cannot clone a Node interface")}cloneDeep(){return this.map(function(a){return a.cloneDeep()})}equals(a){return a?this.type===a.type&&Ui(this,a):!1}toString(a){var s=this._getCustomString(a);return typeof s<"u"?s:this._toString(a)}_toString(){throw new Error("_toString not implemented for "+this.type)}toJSON(){throw new Error("Cannot serialize object: toJSON not implemented by "+this.type)}toHTML(a){var s=this._getCustomString(a);return typeof s<"u"?s:this._toHTML(a)}_toHTML(){throw new Error("_toHTML not implemented for "+this.type)}toTex(a){var s=this._getCustomString(a);return typeof s<"u"?s:this._toTex(a)}_toTex(a){throw new Error("_toTex not implemented for "+this.type)}_getCustomString(a){if(a&&typeof a=="object")switch(typeof a.handler){case"object":case"undefined":return;case"function":return a.handler(this,a);default:throw new TypeError("Object or function expected as callback")}}getIdentifier(){return this.type}getContent(){return this}}return n},{isClass:!0,isNode:!0});function lt(e){return e&&e.isIndexError?new Xt(e.index+1,e.min+1,e.max!==void 0?e.max+1:void 0):e}function hp(e){var{subset:r}=e;return function(n,i){try{if(Array.isArray(n))return r(n,i);if(n&&typeof n.subset=="function")return n.subset(i);if(typeof n=="string")return r(n,i);if(typeof n=="object"){if(!i.isObjectProperty())throw new TypeError("Cannot apply a numeric index as object property");return gt(n,i.getObjectProperty())}else throw new TypeError("Cannot apply index: unsupported type of object")}catch(a){throw lt(a)}}}var dp="AccessorNode",ZU=["subset","Node"],N2=T(dp,ZU,e=>{var{subset:r,Node:t}=e,n=hp({subset:r});function i(s){return!(Sn(s)||$t(s)||yr(s)||fn(s)||fa(s)||Zt(s)||rt(s))}class a extends t{constructor(c,f){if(super(),!Sr(c))throw new TypeError('Node expected for parameter "object"');if(!kn(f))throw new TypeError('IndexNode expected for parameter "index"');this.object=c,this.index=f}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return dp}get isAccessorNode(){return!0}_compile(c,f){var o=this.object._compile(c,f),u=this.index._compile(c,f);if(this.index.isObjectProperty()){var p=this.index.getObjectProperty();return function(d,x,v){return gt(o(d,x,v),p)}}else return function(d,x,v){var y=o(d,x,v),w=u(d,x,y);return n(y,w)}}forEach(c){c(this.object,"object",this),c(this.index,"index",this)}map(c){return new a(this._ifNode(c(this.object,"object",this)),this._ifNode(c(this.index,"index",this)))}clone(){return new a(this.object,this.index)}_toString(c){var f=this.object.toString(c);return i(this.object)&&(f="("+f+")"),f+this.index.toString(c)}_toHTML(c){var f=this.object.toHTML(c);return i(this.object)&&(f='('+f+')'),f+this.index.toHTML(c)}_toTex(c){var f=this.object.toTex(c);return i(this.object)&&(f="\\\\left(' + object + '\\\\right)"),f+this.index.toTex(c)}toJSON(){return{mathjs:dp,object:this.object,index:this.index}}static fromJSON(c){return new a(c.object,c.index)}}return Ur(a,"name",dp),a},{isClass:!0,isNode:!0});var vp="ArrayNode",QU=["Node"],A2=T(vp,QU,e=>{var{Node:r}=e;class t extends r{constructor(i){if(super(),this.items=i||[],!Array.isArray(this.items)||!this.items.every(Sr))throw new TypeError("Array containing Nodes expected")}get type(){return vp}get isArrayNode(){return!0}_compile(i,a){var s=Rn(this.items,function(o){return o._compile(i,a)}),c=i.config.matrix!=="Array";if(c){var f=i.matrix;return function(u,p,h){return f(Rn(s,function(d){return d(u,p,h)}))}}else return function(u,p,h){return Rn(s,function(d){return d(u,p,h)})}}forEach(i){for(var a=0;a['+a.join(',')+']'}_toTex(i){function a(s,c){var f=s.some($t)&&!s.every($t),o=c||f,u=o?"&":"\\\\\\\\",p=s.map(function(h){return h.items?a(h.items,!c):h.toTex(i)}).join(u);return f||!o||o&&!c?"\\\\begin{bmatrix}"+p+"\\\\end{bmatrix}":p}return a(this.items,!1)}}return Ur(t,"name",vp),t},{isClass:!0,isNode:!0});function E2(e){var{subset:r,matrix:t}=e;return function(i,a,s){try{if(Array.isArray(i)){var c=t(i).subset(a,s).valueOf();return c.forEach((f,o)=>{i[o]=f}),i}else{if(i&&typeof i.subset=="function")return i.subset(a,s);if(typeof i=="string")return r(i,a,s);if(typeof i=="object"){if(!a.isObjectProperty())throw TypeError("Cannot apply a numeric index as object property");return la(i,a.getObjectProperty(),s),i}else throw new TypeError("Cannot apply index: unsupported type of object")}}catch(f){throw lt(f)}}}var xi=[{AssignmentNode:{},FunctionAssignmentNode:{}},{ConditionalNode:{latexLeftParens:!1,latexRightParens:!1,latexParens:!1}},{"OperatorNode:or":{op:"or",associativity:"left",associativeWith:[]}},{"OperatorNode:xor":{op:"xor",associativity:"left",associativeWith:[]}},{"OperatorNode:and":{op:"and",associativity:"left",associativeWith:[]}},{"OperatorNode:bitOr":{op:"|",associativity:"left",associativeWith:[]}},{"OperatorNode:bitXor":{op:"^|",associativity:"left",associativeWith:[]}},{"OperatorNode:bitAnd":{op:"&",associativity:"left",associativeWith:[]}},{"OperatorNode:equal":{op:"==",associativity:"left",associativeWith:[]},"OperatorNode:unequal":{op:"!=",associativity:"left",associativeWith:[]},"OperatorNode:smaller":{op:"<",associativity:"left",associativeWith:[]},"OperatorNode:larger":{op:">",associativity:"left",associativeWith:[]},"OperatorNode:smallerEq":{op:"<=",associativity:"left",associativeWith:[]},"OperatorNode:largerEq":{op:">=",associativity:"left",associativeWith:[]},RelationalNode:{associativity:"left",associativeWith:[]}},{"OperatorNode:leftShift":{op:"<<",associativity:"left",associativeWith:[]},"OperatorNode:rightArithShift":{op:">>",associativity:"left",associativeWith:[]},"OperatorNode:rightLogShift":{op:">>>",associativity:"left",associativeWith:[]}},{"OperatorNode:to":{op:"to",associativity:"left",associativeWith:[]}},{RangeNode:{}},{"OperatorNode:add":{op:"+",associativity:"left",associativeWith:["OperatorNode:add","OperatorNode:subtract"]},"OperatorNode:subtract":{op:"-",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{op:"*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]},"OperatorNode:divide":{op:"/",associativity:"left",associativeWith:[],latexLeftParens:!1,latexRightParens:!1,latexParens:!1},"OperatorNode:dotMultiply":{op:".*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","OperatorNode:dotMultiply","OperatorNode:doDivide"]},"OperatorNode:dotDivide":{op:"./",associativity:"left",associativeWith:[]},"OperatorNode:mod":{op:"mod",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]}},{"OperatorNode:unaryPlus":{op:"+",associativity:"right"},"OperatorNode:unaryMinus":{op:"-",associativity:"right"},"OperatorNode:bitNot":{op:"~",associativity:"right"},"OperatorNode:not":{op:"not",associativity:"right"}},{"OperatorNode:pow":{op:"^",associativity:"right",associativeWith:[],latexRightParens:!1},"OperatorNode:dotPow":{op:".^",associativity:"right",associativeWith:[]}},{"OperatorNode:factorial":{op:"!",associativity:"left"}},{"OperatorNode:ctranspose":{op:"'",associativity:"left"}}];function gp(e,r){if(!r||r!=="auto")return e;for(var t=e;Zt(t);)t=t.content;return t}function Gr(e,r,t,n){var i=e;r!=="keep"&&(i=e.getContent());for(var a=i.getIdentifier(),s=null,c=0;c{var{subset:r,matrix:t,Node:n}=e,i=hp({subset:r}),a=E2({subset:r,matrix:t});function s(f,o,u){o||(o="keep");var p=Gr(f,o,u),h=Gr(f.value,o,u);return o==="all"||h!==null&&h<=p}class c extends n{constructor(o,u,p){if(super(),this.object=o,this.index=p?u:null,this.value=p||u,!rt(o)&&!Sn(o))throw new TypeError('SymbolNode or AccessorNode expected as "object"');if(rt(o)&&o.name==="end")throw new Error('Cannot assign to symbol "end"');if(this.index&&!kn(this.index))throw new TypeError('IndexNode expected as "index"');if(!Sr(this.value))throw new TypeError('Node expected as "value"')}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return yp}get isAssignmentNode(){return!0}_compile(o,u){var p=this.object._compile(o,u),h=this.index?this.index._compile(o,u):null,d=this.value._compile(o,u),x=this.object.name;if(this.index)if(this.index.isObjectProperty()){var v=this.index.getObjectProperty();return function(A,E,S){var O=p(A,E,S),F=d(A,E,S);return la(O,v,F),F}}else{if(rt(this.object))return function(A,E,S){var O=p(A,E,S),F=d(A,E,S),M=h(A,E,O);return A.set(x,a(O,M,F)),F};var y=this.object.object._compile(o,u);if(this.object.index.isObjectProperty()){var w=this.object.index.getObjectProperty();return function(A,E,S){var O=y(A,E,S),F=gt(O,w),M=h(A,E,F),_=d(A,E,S);return la(O,w,a(F,M,_)),_}}else{var C=this.object.index._compile(o,u);return function(A,E,S){var O=y(A,E,S),F=C(A,E,O),M=i(O,F),_=h(A,E,M),k=d(A,E,S);return a(O,F,a(M,_,k)),k}}}else{if(!rt(this.object))throw new TypeError("SymbolNode expected as object");return function(A,E,S){var O=d(A,E,S);return A.set(x,O),O}}}forEach(o){o(this.object,"object",this),this.index&&o(this.index,"index",this),o(this.value,"value",this)}map(o){var u=this._ifNode(o(this.object,"object",this)),p=this.index?this._ifNode(o(this.index,"index",this)):null,h=this._ifNode(o(this.value,"value",this));return new c(u,p,h)}clone(){return new c(this.object,this.index,this.value)}_toString(o){var u=this.object.toString(o),p=this.index?this.index.toString(o):"",h=this.value.toString(o);return s(this,o&&o.parenthesis,o&&o.implicit)&&(h="("+h+")"),u+p+" = "+h}toJSON(){return{mathjs:yp,object:this.object,index:this.index,value:this.value}}static fromJSON(o){return new c(o.object,o.index,o.value)}_toHTML(o){var u=this.object.toHTML(o),p=this.index?this.index.toHTML(o):"",h=this.value.toHTML(o);return s(this,o&&o.parenthesis,o&&o.implicit)&&(h='('+h+')'),u+p+'='+h}_toTex(o){var u=this.object.toTex(o),p=this.index?this.index.toTex(o):"",h=this.value.toTex(o);return s(this,o&&o.parenthesis,o&&o.implicit)&&(h="\\\\left(".concat(h,"\\\\right)")),u+p+"="+h}}return Ur(c,"name",yp),c},{isClass:!0,isNode:!0});var bp="BlockNode",JU=["ResultSet","Node"],_2=T(bp,JU,e=>{var{ResultSet:r,Node:t}=e;class n extends t{constructor(a){if(super(),!Array.isArray(a))throw new Error("Array expected");this.blocks=a.map(function(s){var c=s&&s.node,f=s&&s.visible!==void 0?s.visible:!0;if(!Sr(c))throw new TypeError('Property "node" must be a Node');if(typeof f!="boolean")throw new TypeError('Property "visible" must be a boolean');return{node:c,visible:f}})}get type(){return bp}get isBlockNode(){return!0}_compile(a,s){var c=Rn(this.blocks,function(f){return{evaluate:f.node._compile(a,s),visible:f.visible}});return function(o,u,p){var h=[];return mo(c,function(x){var v=x.evaluate(o,u,p);x.visible&&h.push(v)}),new r(h)}}forEach(a){for(var s=0;s;')}).join('
')}_toTex(a){return this.blocks.map(function(s){return s.node.toTex(a)+(s.visible?"":";")}).join(\`\\\\;\\\\; @@ -88100,7 +88286,7 @@ Defaulting to 2020, but this will stop working in the future.\`)),r.ecmaVersion= \`,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Si).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=X.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=r.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&r.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Ff),this.regexpState=null,this.privateNameStack=[]},ha={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Kt.prototype.parse=function(){var r=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(r)};ha.inFunction.get=function(){return(this.currentVarScope().flags&xu)>0};ha.inGenerator.get=function(){return(this.currentVarScope().flags&pB)>0&&!this.currentVarScope().inClassFieldInit};ha.inAsync.get=function(){return(this.currentVarScope().flags&qg)>0&&!this.currentVarScope().inClassFieldInit};ha.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var r=this.scopeStack[e];if(r.inClassFieldInit||r.flags&Bf)return!1;if(r.flags&xu)return(r.flags&qg)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};ha.allowSuper.get=function(){var e=this.currentThisScope(),r=e.flags,t=e.inClassFieldInit;return(r&Ug)>0||t||this.options.allowSuperOutsideMethod};ha.allowDirectSuper.get=function(){return(this.currentThisScope().flags&dB)>0};ha.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};ha.allowNewDotTarget.get=function(){var e=this.currentThisScope(),r=e.flags,t=e.inClassFieldInit;return(r&(xu|Bf))>0||t};ha.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Bf)>0};Kt.extend=function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];for(var n=this,i=0;i=,?^&]/.test(i)||i==="!"&&this.input.charAt(n+1)==="=")}e+=r[0].length,wi.lastIndex=e,e+=wi.exec(this.input)[0].length,this.input[e]===";"&&e++}};Nn.eat=function(e){return this.type===e?(this.next(),!0):!1};Nn.isContextual=function(e){return this.type===X.name&&this.value===e&&!this.containsEsc};Nn.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Nn.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Nn.canInsertSemicolon=function(){return this.type===X.eof||this.type===X.braceR||Si.test(this.input.slice(this.lastTokEnd,this.start))};Nn.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Nn.semicolon=function(){!this.eat(X.semi)&&!this.insertSemicolon()&&this.unexpected()};Nn.afterTrailingComma=function(e,r){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),r||this.next(),!0};Nn.expect=function(e){this.eat(e)||this.unexpected()};Nn.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Xp=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Nn.checkPatternErrors=function(e,r){if(!!e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var t=r?e.parenthesizedAssign:e.parenthesizedBind;t>-1&&this.raiseRecoverable(t,r?"Assigning to rvalue":"Parenthesized pattern")}};Nn.checkExpressionErrors=function(e,r){if(!e)return!1;var t=e.shorthandAssign,n=e.doubleProto;if(!r)return t>=0||n>=0;t>=0&&this.raise(t,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")};Nn.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&n<56320)return!0;if(Ua(n,!0)){for(var i=t+1;vu(n=this.input.charCodeAt(i),!0);)++i;if(n===92||n>55295&&n<56320)return!0;var a=this.input.slice(t,i);if(!YV.test(a))return!0}return!1};hr.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;wi.lastIndex=this.pos;var e=wi.exec(this.input),r=this.pos+e[0].length,t;return!Si.test(this.input.slice(this.pos,r))&&this.input.slice(r,r+8)==="function"&&(r+8===this.input.length||!(vu(t=this.input.charCodeAt(r+8))||t>55295&&t<56320))};hr.parseStatement=function(e,r,t){var n=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(n=X._var,a="let"),n){case X._break:case X._continue:return this.parseBreakContinueStatement(i,n.keyword);case X._debugger:return this.parseDebuggerStatement(i);case X._do:return this.parseDoStatement(i);case X._for:return this.parseForStatement(i);case X._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case X._class:return e&&this.unexpected(),this.parseClass(i,!0);case X._if:return this.parseIfStatement(i);case X._return:return this.parseReturnStatement(i);case X._switch:return this.parseSwitchStatement(i);case X._throw:return this.parseThrowStatement(i);case X._try:return this.parseTryStatement(i);case X._const:case X._var:return a=a||this.value,e&&a!=="var"&&this.unexpected(),this.parseVarStatement(i,a);case X._while:return this.parseWhileStatement(i);case X._with:return this.parseWithStatement(i);case X.braceL:return this.parseBlock(!0,i);case X.semi:return this.parseEmptyStatement(i);case X._export:case X._import:if(this.options.ecmaVersion>10&&n===X._import){wi.lastIndex=this.pos;var s=wi.exec(this.input),c=this.pos+s[0].length,f=this.input.charCodeAt(c);if(f===40||f===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(r||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===X._import?this.parseImport(i):this.parseExport(i,t);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var o=this.value,u=this.parseExpression();return n===X.name&&u.type==="Identifier"&&this.eat(X.colon)?this.parseLabeledStatement(i,o,u,e):this.parseExpressionStatement(i,u)}};hr.parseBreakContinueStatement=function(e,r){var t=r==="break";this.next(),this.eat(X.semi)||this.insertSemicolon()?e.label=null:this.type!==X.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n=6?this.eat(X.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};hr.parseForStatement=function(e){this.next();var r=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Yg),this.enterScope(0),this.expect(X.parenL),this.type===X.semi)return r>-1&&this.unexpected(r),this.parseFor(e,null);var t=this.isLet();if(this.type===X._var||this.type===X._const||t){var n=this.startNode(),i=t?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.type===X._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&n.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===X._in?r>-1&&this.unexpected(r):e.await=r>-1),this.parseForIn(e,n)):(r>-1&&this.unexpected(r),this.parseFor(e,n))}var a=this.isContextual("let"),s=!1,c=new Xp,f=this.parseExpression(r>-1?"await":!0,c);return this.type===X._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===X._in?r>-1&&this.unexpected(r):e.await=r>-1),a&&s&&this.raise(f.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(f,!1,c),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(c,!0),r>-1&&this.unexpected(r),this.parseFor(e,f))};hr.parseFunctionStatement=function(e,r,t){return this.next(),this.parseFunction(e,_f|(t?0:Rg),!1,r)};hr.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(X._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};hr.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(X.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};hr.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(X.braceL),this.labels.push(eY),this.enterScope(0);for(var r,t=!1;this.type!==X.braceR;)if(this.type===X._case||this.type===X._default){var n=this.type===X._case;r&&this.finishNode(r,"SwitchCase"),e.cases.push(r=this.startNode()),r.consequent=[],this.next(),n?r.test=this.parseExpression():(t&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),t=!0,r.test=null),this.expect(X.colon)}else r||this.unexpected(),r.consequent.push(this.parseStatement(null));return this.exitScope(),r&&this.finishNode(r,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};hr.parseThrowStatement=function(e){return this.next(),Si.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var rY=[];hr.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),r=e.type==="Identifier";return this.enterScope(r?hB:0),this.checkLValPattern(e,r?gB:Wa),this.expect(X.parenR),e};hr.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===X._catch){var r=this.startNode();this.next(),this.eat(X.parenL)?r.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),r.param=null,this.enterScope(0)),r.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(X._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};hr.parseVarStatement=function(e,r,t){return this.next(),this.parseVar(e,!1,r,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")};hr.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Yg),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};hr.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};hr.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};hr.parseLabeledStatement=function(e,r,t,n){for(var i=0,a=this.labels;i=0;f--){var o=this.labels[f];if(o.statementStart===e.start)o.statementStart=this.start,o.kind=c;else break}return this.labels.push({name:r,kind:c,statementStart:this.start}),e.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label"),this.labels.pop(),e.label=t,this.finishNode(e,"LabeledStatement")};hr.parseExpressionStatement=function(e,r){return e.expression=r,this.semicolon(),this.finishNode(e,"ExpressionStatement")};hr.parseBlock=function(e,r,t){for(e===void 0&&(e=!0),r===void 0&&(r=this.startNode()),r.body=[],this.expect(X.braceL),e&&this.enterScope(0);this.type!==X.braceR;){var n=this.parseStatement(null);r.body.push(n)}return t&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(r,"BlockStatement")};hr.parseFor=function(e,r){return e.init=r,this.expect(X.semi),e.test=this.type===X.semi?null:this.parseExpression(),this.expect(X.semi),e.update=this.type===X.parenR?null:this.parseExpression(),this.expect(X.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};hr.parseForIn=function(e,r){var t=this.type===X._in;return this.next(),r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!t||this.options.ecmaVersion<8||this.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(r.start,(t?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=r,e.right=t?this.parseExpression():this.parseMaybeAssign(),this.expect(X.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,t?"ForInStatement":"ForOfStatement")};hr.parseVar=function(e,r,t,n){for(e.declarations=[],e.kind=t;;){var i=this.startNode();if(this.parseVarId(i,t),this.eat(X.eq)?i.init=this.parseMaybeAssign(r):!n&&t==="const"&&!(this.type===X._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!n&&i.id.type!=="Identifier"&&!(r&&(this.type===X._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(X.comma))break}return e};hr.parseVarId=function(e,r){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,r==="var"?Vg:Wa,!1)};var _f=1,Rg=2,yB=4;hr.parseFunction=function(e,r,t,n,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===X.star&&r&Rg&&this.unexpected(),e.generator=this.eat(X.star)),this.options.ecmaVersion>=8&&(e.async=!!n),r&_f&&(e.id=r&yB&&this.type!==X.name?null:this.parseIdent(),e.id&&!(r&Rg)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Vg:Wa:vB));var a=this.yieldPos,s=this.awaitPos,c=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Wg(e.async,e.generator)),r&_f||(e.id=this.type===X.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,t,!1,i),this.yieldPos=a,this.awaitPos=s,this.awaitIdentPos=c,this.finishNode(e,r&_f?"FunctionDeclaration":"FunctionExpression")};hr.parseFunctionParams=function(e){this.expect(X.parenL),e.params=this.parseBindingList(X.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};hr.parseClass=function(e,r){this.next();var t=this.strict;this.strict=!0,this.parseClassId(e,r),this.parseClassSuper(e);var n=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(X.braceL);this.type!==X.braceR;){var s=this.parseClassElement(e.superClass!==null);s&&(i.body.push(s),s.type==="MethodDefinition"&&s.kind==="constructor"?(a&&this.raiseRecoverable(s.start,"Duplicate constructor in the same class"),a=!0):s.key&&s.key.type==="PrivateIdentifier"&&tY(n,s)&&this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared"))}return this.strict=t,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,r?"ClassDeclaration":"ClassExpression")};hr.parseClassElement=function(e){if(this.eat(X.semi))return null;var r=this.options.ecmaVersion,t=this.startNode(),n="",i=!1,a=!1,s="method",c=!1;if(this.eatContextual("static")){if(r>=13&&this.eat(X.braceL))return this.parseClassStaticBlock(t),t;this.isClassElementNameStart()||this.type===X.star?c=!0:n="static"}if(t.static=c,!n&&r>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===X.star)&&!this.canInsertSemicolon()?a=!0:n="async"),!n&&(r>=9||!a)&&this.eat(X.star)&&(i=!0),!n&&!a&&!i){var f=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?s=f:n=f)}if(n?(t.computed=!1,t.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),t.key.name=n,this.finishNode(t.key,"Identifier")):this.parseClassElementName(t),r<13||this.type===X.parenL||s!=="method"||i||a){var o=!t.static&&$p(t,"constructor"),u=o&&e;o&&s!=="method"&&this.raise(t.key.start,"Constructor can't have get/set modifier"),t.kind=o?"constructor":s,this.parseClassMethod(t,i,a,u)}else this.parseClassField(t);return t};hr.isClassElementNameStart=function(){return this.type===X.name||this.type===X.privateId||this.type===X.num||this.type===X.string||this.type===X.bracketL||this.type.keyword};hr.parseClassElementName=function(e){this.type===X.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};hr.parseClassMethod=function(e,r,t,n){var i=e.key;e.kind==="constructor"?(r&&this.raise(i.start,"Constructor can't be a generator"),t&&this.raise(i.start,"Constructor can't be an async method")):e.static&&$p(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(r,t,n);return e.kind==="get"&&a.params.length!==0&&this.raiseRecoverable(a.start,"getter should have no params"),e.kind==="set"&&a.params.length!==1&&this.raiseRecoverable(a.start,"setter should have exactly one param"),e.kind==="set"&&a.params[0].type==="RestElement"&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};hr.parseClassField=function(e){if($p(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&$p(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(X.eq)){var r=this.currentThisScope(),t=r.inClassFieldInit;r.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),r.inClassFieldInit=t}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};hr.parseClassStaticBlock=function(e){e.body=[];var r=this.labels;for(this.labels=[],this.enterScope(Bf|Ug);this.type!==X.braceR;){var t=this.parseStatement(null);e.body.push(t)}return this.next(),this.exitScope(),this.labels=r,this.finishNode(e,"StaticBlock")};hr.parseClassId=function(e,r){this.type===X.name?(e.id=this.parseIdent(),r&&this.checkLValSimple(e.id,Wa,!1)):(r===!0&&this.unexpected(),e.id=null)};hr.parseClassSuper=function(e){e.superClass=this.eat(X._extends)?this.parseExprSubscripts(null,!1):null};hr.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};hr.exitClassBody=function(){var e=this.privateNameStack.pop(),r=e.declared,t=e.used;if(!!this.options.checkPrivateFields)for(var n=this.privateNameStack.length,i=n===0?null:this.privateNameStack[n-1],a=0;a=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(r,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==X.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};hr.parseExport=function(e,r){if(this.next(),this.eat(X.star))return this.parseExportAllDeclaration(e,r);if(this.eat(X._default))return this.checkExport(r,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(r,e.declaration.declarations):this.checkExport(r,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(r),this.eatContextual("from"))this.type!==X.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var t=0,n=e.specifiers;t=13&&this.type===X.string){var e=this.parseLiteral(this.value);return XV.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};hr.adaptDirectivePrologue=function(e){for(var r=0;r=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Ni=Kt.prototype;Ni.toAssignable=function(e,r,t){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",t&&this.checkPatternErrors(t,!0);for(var n=0,i=e.properties;n=8&&!c&&f.name==="async"&&!this.canInsertSemicolon()&&this.eat(X._function))return this.overrideContext(Nt.f_expr),this.parseFunction(this.startNodeAt(a,s),0,!1,!0,r);if(i&&!this.canInsertSemicolon()){if(this.eat(X.arrow))return this.parseArrowExpression(this.startNodeAt(a,s),[f],!1,r);if(this.options.ecmaVersion>=8&&f.name==="async"&&this.type===X.name&&!c&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return f=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(X.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,s),[f],!0,r)}return f;case X.regexp:var o=this.value;return n=this.parseLiteral(o.value),n.regex={pattern:o.pattern,flags:o.flags},n;case X.num:case X.string:return this.parseLiteral(this.value);case X._null:case X._true:case X._false:return n=this.startNode(),n.value=this.type===X._null?null:this.type===X._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case X.parenL:var u=this.start,p=this.parseParenAndDistinguishExpression(i,r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),p;case X.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(X.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case X.braceL:return this.overrideContext(Nt.b_expr),this.parseObj(!1,e);case X._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case X._class:return this.parseClass(this.startNode(),!1);case X._new:return this.parseNew();case X.backQuote:return this.parseTemplate();case X._import:return this.options.ecmaVersion>=11?this.parseExprImport(t):this.unexpected();default:return this.parseExprAtomDefault()}};Mr.parseExprAtomDefault=function(){this.unexpected()};Mr.parseExprImport=function(e){var r=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===X.parenL&&!e)return this.parseDynamicImport(r);if(this.type===X.dot){var t=this.startNodeAt(r.start,r.loc&&r.loc.start);return t.name="import",r.meta=this.finishNode(t,"Identifier"),this.parseImportMeta(r)}else this.unexpected()};Mr.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(X.parenR)){var r=this.start;this.eat(X.comma)&&this.eat(X.parenR)?this.raiseRecoverable(r,"Trailing comma is not allowed in import()"):this.unexpected(r)}return this.finishNode(e,"ImportExpression")};Mr.parseImportMeta=function(e){this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),r&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};Mr.parseLiteral=function(e){var r=this.startNode();return r.value=e,r.raw=this.input.slice(this.start,this.end),r.raw.charCodeAt(r.raw.length-1)===110&&(r.bigint=r.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(r,"Literal")};Mr.parseParenExpression=function(){this.expect(X.parenL);var e=this.parseExpression();return this.expect(X.parenR),e};Mr.shouldParseArrow=function(e){return!this.canInsertSemicolon()};Mr.parseParenAndDistinguishExpression=function(e,r){var t=this.start,n=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s=this.start,c=this.startLoc,f=[],o=!0,u=!1,p=new Xp,h=this.yieldPos,d=this.awaitPos,x;for(this.yieldPos=0,this.awaitPos=0;this.type!==X.parenR;)if(o?o=!1:this.expect(X.comma),a&&this.afterTrailingComma(X.parenR,!0)){u=!0;break}else if(this.type===X.ellipsis){x=this.start,f.push(this.parseParenItem(this.parseRestBinding())),this.type===X.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else f.push(this.parseMaybeAssign(!1,p,this.parseParenItem));var v=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(X.parenR),e&&this.shouldParseArrow(f)&&this.eat(X.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=d,this.parseParenArrowList(t,n,f,r);(!f.length||u)&&this.unexpected(this.lastTokStart),x&&this.unexpected(x),this.checkExpressionErrors(p,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=d||this.awaitPos,f.length>1?(i=this.startNodeAt(s,c),i.expressions=f,this.finishNodeAt(i,"SequenceExpression",v,y)):i=f[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var w=this.startNodeAt(t,n);return w.expression=i,this.finishNode(w,"ParenthesizedExpression")}else return i};Mr.parseParenItem=function(e){return e};Mr.parseParenArrowList=function(e,r,t,n){return this.parseArrowExpression(this.startNodeAt(e,r),t,!1,n)};var nY=[];Mr.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===X.dot){var r=this.startNodeAt(e.start,e.loc&&e.loc.start);r.name="new",e.meta=this.finishNode(r,"Identifier"),this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),t&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,i,!0,!1),this.eat(X.parenL)?e.arguments=this.parseExprList(X.parenR,this.options.ecmaVersion>=8,!1):e.arguments=nY,this.finishNode(e,"NewExpression")};Mr.parseTemplateElement=function(e){var r=e.isTagged,t=this.startNode();return this.type===X.invalidTemplate?(r||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),t.value={raw:this.value,cooked:null}):t.value={raw:this.input.slice(this.start,this.end).replace(/\\r\\n?/g,\` \`),cooked:this.value},this.next(),t.tail=this.type===X.backQuote,this.finishNode(t,"TemplateElement")};Mr.parseTemplate=function(e){e===void 0&&(e={});var r=e.isTagged;r===void 0&&(r=!1);var t=this.startNode();this.next(),t.expressions=[];var n=this.parseTemplateElement({isTagged:r});for(t.quasis=[n];!n.tail;)this.type===X.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(X.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(X.braceR),t.quasis.push(n=this.parseTemplateElement({isTagged:r}));return this.next(),this.finishNode(t,"TemplateLiteral")};Mr.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===X.name||this.type===X.num||this.type===X.string||this.type===X.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===X.star)&&!Si.test(this.input.slice(this.lastTokEnd,this.start))};Mr.parseObj=function(e,r){var t=this.startNode(),n=!0,i={};for(t.properties=[],this.next();!this.eat(X.braceR);){if(n)n=!1;else if(this.expect(X.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(X.braceR))break;var a=this.parseProperty(e,r);e||this.checkPropClash(a,i,r),t.properties.push(a)}return this.finishNode(t,e?"ObjectPattern":"ObjectExpression")};Mr.parseProperty=function(e,r){var t=this.startNode(),n,i,a,s;if(this.options.ecmaVersion>=9&&this.eat(X.ellipsis))return e?(t.argument=this.parseIdent(!1),this.type===X.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(t,"RestElement")):(t.argument=this.parseMaybeAssign(!1,r),this.type===X.comma&&r&&r.trailingComma<0&&(r.trailingComma=this.start),this.finishNode(t,"SpreadElement"));this.options.ecmaVersion>=6&&(t.method=!1,t.shorthand=!1,(e||r)&&(a=this.start,s=this.startLoc),e||(n=this.eat(X.star)));var c=this.containsEsc;return this.parsePropertyName(t),!e&&!c&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(t)?(i=!0,n=this.options.ecmaVersion>=9&&this.eat(X.star),this.parsePropertyName(t)):i=!1,this.parsePropertyValue(t,e,n,i,a,s,r,c),this.finishNode(t,"Property")};Mr.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var r=e.kind==="get"?0:1;if(e.value.params.length!==r){var t=e.value.start;e.kind==="get"?this.raiseRecoverable(t,"getter should have no params"):this.raiseRecoverable(t,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};Mr.parsePropertyValue=function(e,r,t,n,i,a,s,c){(t||n)&&this.type===X.colon&&this.unexpected(),this.eat(X.colon)?(e.value=r?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init"):this.options.ecmaVersion>=6&&this.type===X.parenL?(r&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(t,n)):!r&&!c&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==X.comma&&this.type!==X.braceR&&this.type!==X.eq?((t||n)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((t||n)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind="init",r?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===X.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};Mr.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(X.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(X.bracketR),e.key;e.computed=!1}return e.key=this.type===X.num||this.type===X.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};Mr.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};Mr.parseMethod=function(e,r,t){var n=this.startNode(),i=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Wg(r,n.generator)|Ug|(t?dB:0)),this.expect(X.parenL),n.params=this.parseBindingList(X.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(n,"FunctionExpression")};Mr.parseArrowExpression=function(e,r,t,n){var i=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(Wg(t,!1)|mB),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(r,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")};Mr.parseFunctionBody=function(e,r,t,n){var i=r&&this.type!==X.braceL,a=this.strict,s=!1;if(i)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var c=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||c)&&(s=this.strictDirective(this.end),s&&c&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var f=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!a&&!s&&!r&&!t&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,xB),e.body=this.parseBlock(!1,void 0,s&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=f}this.exitScope()};Mr.isSimpleParamList=function(e){for(var r=0,t=e;r-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&Ff&&delete this.undefinedExports[e]}else if(r===gB){var a=this.currentScope();a.lexical.push(e)}else if(r===vB){var s=this.currentScope();this.treatFunctionsAsVar?n=s.lexical.indexOf(e)>-1:n=s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var c=this.scopeStack.length-1;c>=0;--c){var f=this.scopeStack[c];if(f.lexical.indexOf(e)>-1&&!(f.flags&hB&&f.lexical[0]===e)||!this.treatFunctionsAsVarInScope(f)&&f.functions.indexOf(e)>-1){n=!0;break}if(f.var.push(e),this.inModule&&f.flags&Ff&&delete this.undefinedExports[e],f.flags&zg)break}n&&this.raiseRecoverable(t,"Identifier '"+e+"' has already been declared")};Eo.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};Eo.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Eo.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var r=this.scopeStack[e];if(r.flags&zg)return r}};Eo.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var r=this.scopeStack[e];if(r.flags&zg&&!(r.flags&mB))return r}};var Jp=function(r,t,n){this.type="",this.start=t,this.end=0,r.options.locations&&(this.loc=new Qp(r,n)),r.options.directSourceFile&&(this.sourceFile=r.options.directSourceFile),r.options.ranges&&(this.range=[t,0])},If=Kt.prototype;If.startNode=function(){return new Jp(this,this.start,this.startLoc)};If.startNodeAt=function(e,r){return new Jp(this,e,r)};function wB(e,r,t,n){return e.type=r,e.end=t,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=t),e}If.finishNode=function(e,r){return wB.call(this,e,r,this.lastTokEnd,this.lastTokEndLoc)};If.finishNodeAt=function(e,r,t,n){return wB.call(this,e,r,t,n)};If.copyNode=function(e){var r=new Jp(this,e.start,this.startLoc);for(var t in e)r[t]=e[t];return r};var DB="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",SB=DB+" Extended_Pictographic",NB=SB,AB=NB+" EBase EComp EMod EPres ExtPict",EB=AB,aY=EB,oY={9:DB,10:SB,11:NB,12:AB,13:EB,14:aY},sY="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",uY={9:"",10:"",11:"",12:"",13:"",14:sY},iB="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",CB="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",MB=CB+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",_B=MB+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",TB=_B+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",FB=TB+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",fY=FB+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",lY={9:CB,10:MB,11:_B,12:TB,13:FB,14:fY},OB={};function cY(e){var r=OB[e]={binary:No(oY[e]+" "+iB),binaryOfStrings:No(uY[e]),nonBinary:{General_Category:No(iB),Script:No(lY[e])}};r.nonBinary.Script_Extensions=r.nonBinary.Script,r.nonBinary.gc=r.nonBinary.General_Category,r.nonBinary.sc=r.nonBinary.Script,r.nonBinary.scx=r.nonBinary.Script_Extensions}for(Hp=0,Ig=[9,10,11,12,13,14];Hp=6?"uy":"")+(r.options.ecmaVersion>=9?"s":"")+(r.options.ecmaVersion>=13?"d":"")+(r.options.ecmaVersion>=15?"v":""),this.unicodeProperties=OB[r.options.ecmaVersion>=14?14:r.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};da.prototype.reset=function(r,t,n){var i=n.indexOf("v")!==-1,a=n.indexOf("u")!==-1;this.start=r|0,this.source=t+"",this.flags=n,i&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=a&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=a&&this.parser.options.ecmaVersion>=9)};da.prototype.raise=function(r){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+r)};da.prototype.at=function(r,t){t===void 0&&(t=!1);var n=this.source,i=n.length;if(r>=i)return-1;var a=n.charCodeAt(r);if(!(t||this.switchU)||a<=55295||a>=57344||r+1>=i)return a;var s=n.charCodeAt(r+1);return s>=56320&&s<=57343?(a<<10)+s-56613888:a};da.prototype.nextIndex=function(r,t){t===void 0&&(t=!1);var n=this.source,i=n.length;if(r>=i)return i;var a=n.charCodeAt(r),s;return!(t||this.switchU)||a<=55295||a>=57344||r+1>=i||(s=n.charCodeAt(r+1))<56320||s>57343?r+1:r+2};da.prototype.current=function(r){return r===void 0&&(r=!1),this.at(this.pos,r)};da.prototype.lookahead=function(r){return r===void 0&&(r=!1),this.at(this.nextIndex(this.pos,r),r)};da.prototype.advance=function(r){r===void 0&&(r=!1),this.pos=this.nextIndex(this.pos,r)};da.prototype.eat=function(r,t){return t===void 0&&(t=!1),this.current(t)===r?(this.advance(t),!0):!1};da.prototype.eatChars=function(r,t){t===void 0&&(t=!1);for(var n=this.pos,i=0,a=r;i-1&&this.raise(e.start,"Duplicate regular expression flag"),s==="u"&&(n=!0),s==="v"&&(i=!0)}this.options.ecmaVersion>=15&&n&&i&&this.raise(e.start,"Invalid regular expression flag")};ur.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))};ur.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var r=0,t=e.backReferenceNames;r=9&&(t=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!t,!0}return e.pos=r,!1};ur.regexp_eatQuantifier=function(e,r){return r===void 0&&(r=!1),this.regexp_eatQuantifierPrefix(e,r)?(e.eat(63),!0):!1};ur.regexp_eatQuantifierPrefix=function(e,r){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,r)};ur.regexp_eatBracedQuantifier=function(e,r){var t=e.pos;if(e.eat(123)){var n=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};ur.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};ur.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};ur.regexp_eatSyntaxCharacter=function(e){var r=e.current();return BB(r)?(e.lastIntValue=r,e.advance(),!0):!1};function BB(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}ur.regexp_eatPatternCharacters=function(e){for(var r=e.pos,t=0;(t=e.current())!==-1&&!BB(t);)e.advance();return e.pos!==r};ur.regexp_eatExtendedPatternCharacter=function(e){var r=e.current();return r!==-1&&r!==36&&!(r>=40&&r<=43)&&r!==46&&r!==63&&r!==91&&r!==94&&r!==124?(e.advance(),!0):!1};ur.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};ur.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};ur.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Ao(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Ao(e.lastIntValue);return!0}return!1};ur.regexp_eatRegExpIdentifierStart=function(e){var r=e.pos,t=this.options.ecmaVersion>=11,n=e.current(t);return e.advance(t),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,t)&&(n=e.lastIntValue),pY(n)?(e.lastIntValue=n,!0):(e.pos=r,!1)};function pY(e){return Ua(e,!0)||e===36||e===95}ur.regexp_eatRegExpIdentifierPart=function(e){var r=e.pos,t=this.options.ecmaVersion>=11,n=e.current(t);return e.advance(t),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,t)&&(n=e.lastIntValue),mY(n)?(e.lastIntValue=n,!0):(e.pos=r,!1)};function mY(e){return vu(e,!0)||e===36||e===95||e===8204||e===8205}ur.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};ur.regexp_eatBackReference=function(e){var r=e.pos;if(this.regexp_eatDecimalEscape(e)){var t=e.lastIntValue;if(e.switchU)return t>e.maxBackReference&&(e.maxBackReference=t),!0;if(t<=e.numCapturingParens)return!0;e.pos=r}return!1};ur.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};ur.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};ur.regexp_eatCControlLetter=function(e){var r=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=r}return!1};ur.regexp_eatZero=function(e){return e.current()===48&&!Kp(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};ur.regexp_eatControlEscape=function(e){var r=e.current();return r===116?(e.lastIntValue=9,e.advance(),!0):r===110?(e.lastIntValue=10,e.advance(),!0):r===118?(e.lastIntValue=11,e.advance(),!0):r===102?(e.lastIntValue=12,e.advance(),!0):r===114?(e.lastIntValue=13,e.advance(),!0):!1};ur.regexp_eatControlLetter=function(e){var r=e.current();return IB(r)?(e.lastIntValue=r%32,e.advance(),!0):!1};function IB(e){return e>=65&&e<=90||e>=97&&e<=122}ur.regexp_eatRegExpUnicodeEscapeSequence=function(e,r){r===void 0&&(r=!1);var t=e.pos,n=r||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(n&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=(i-55296)*1024+(s-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&hY(e.lastIntValue))return!0;n&&e.raise("Invalid unicode escape"),e.pos=t}return!1};function hY(e){return e>=0&&e<=1114111}ur.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var r=e.current();return r!==99&&(!e.switchN||r!==107)?(e.lastIntValue=r,e.advance(),!0):!1};ur.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var r=e.current();if(r>=49&&r<=57){do e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();while((r=e.current())>=48&&r<=57);return!0}return!1};var PB=0,za=1,Di=2;ur.regexp_eatCharacterClassEscape=function(e){var r=e.current();if(dY(r))return e.lastIntValue=-1,e.advance(),za;var t=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((t=r===80)||r===112)){e.lastIntValue=-1,e.advance();var n;if(e.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return t&&n===Di&&e.raise("Invalid property name"),n;e.raise("Invalid property name")}return PB};function dY(e){return e===100||e===68||e===115||e===83||e===119||e===87}ur.regexp_eatUnicodePropertyValueExpression=function(e){var r=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var t=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,t,n),za}}if(e.pos=r,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return PB};ur.regexp_validateUnicodePropertyNameAndValue=function(e,r,t){Of(e.unicodeProperties.nonBinary,r)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[r].test(t)||e.raise("Invalid property value")};ur.regexp_validateUnicodePropertyNameOrValue=function(e,r){if(e.unicodeProperties.binary.test(r))return za;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(r))return Di;e.raise("Invalid property name")};ur.regexp_eatUnicodePropertyName=function(e){var r=0;for(e.lastStringValue="";kB(r=e.current());)e.lastStringValue+=Ao(r),e.advance();return e.lastStringValue!==""};function kB(e){return IB(e)||e===95}ur.regexp_eatUnicodePropertyValue=function(e){var r=0;for(e.lastStringValue="";vY(r=e.current());)e.lastStringValue+=Ao(r),e.advance();return e.lastStringValue!==""};function vY(e){return kB(e)||Kp(e)}ur.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};ur.regexp_eatCharacterClass=function(e){if(e.eat(91)){var r=e.eat(94),t=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),r&&t===Di&&e.raise("Negated character class may contain strings"),!0}return!1};ur.regexp_classContents=function(e){return e.current()===93?za:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),za)};ur.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var t=e.lastIntValue;e.switchU&&(r===-1||t===-1)&&e.raise("Invalid character class"),r!==-1&&t!==-1&&r>t&&e.raise("Range out of order in character class")}}};ur.regexp_eatClassAtom=function(e){var r=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var t=e.current();(t===99||qB(t))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=r}var n=e.current();return n!==93?(e.lastIntValue=n,e.advance(),!0):!1};ur.regexp_eatClassEscape=function(e){var r=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=r}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};ur.regexp_classSetExpression=function(e){var r=za,t;if(!this.regexp_eatClassSetRange(e))if(t=this.regexp_eatClassSetOperand(e)){t===Di&&(r=Di);for(var n=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(t=this.regexp_eatClassSetOperand(e))){t!==Di&&(r=za);continue}e.raise("Invalid character in character class")}if(n!==e.pos)return r;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(n!==e.pos)return r}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(t=this.regexp_eatClassSetOperand(e),!t)return r;t===Di&&(r=Di)}};ur.regexp_eatClassSetRange=function(e){var r=e.pos;if(this.regexp_eatClassSetCharacter(e)){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;return t!==-1&&n!==-1&&t>n&&e.raise("Range out of order in character class"),!0}e.pos=r}return!1};ur.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?za:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};ur.regexp_eatNestedClass=function(e){var r=e.pos;if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);if(e.eat(93))return t&&n===Di&&e.raise("Negated character class may contain strings"),n;e.pos=r}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=r}return null};ur.regexp_eatClassStringDisjunction=function(e){var r=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var t=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return t}else e.raise("Invalid escape");e.pos=r}return null};ur.regexp_classStringDisjunctionContents=function(e){for(var r=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Di&&(r=Di);return r};ur.regexp_classString=function(e){for(var r=0;this.regexp_eatClassSetCharacter(e);)r++;return r===1?za:Di};ur.regexp_eatClassSetCharacter=function(e){var r=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=r,!1);var t=e.current();return t<0||t===e.lookahead()&&gY(t)||xY(t)?!1:(e.advance(),e.lastIntValue=t,!0)};function gY(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function xY(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}ur.regexp_eatClassSetReservedPunctuator=function(e){var r=e.current();return yY(r)?(e.lastIntValue=r,e.advance(),!0):!1};function yY(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}ur.regexp_eatClassControlLetter=function(e){var r=e.current();return Kp(r)||r===95?(e.lastIntValue=r%32,e.advance(),!0):!1};ur.regexp_eatHexEscapeSequence=function(e){var r=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=r}return!1};ur.regexp_eatDecimalDigits=function(e){var r=e.pos,t=0;for(e.lastIntValue=0;Kp(t=e.current());)e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();return e.pos!==r};function Kp(e){return e>=48&&e<=57}ur.regexp_eatHexDigits=function(e){var r=e.pos,t=0;for(e.lastIntValue=0;RB(t=e.current());)e.lastIntValue=16*e.lastIntValue+LB(t),e.advance();return e.pos!==r};function RB(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function LB(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}ur.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;r<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=r*64+t*8+e.lastIntValue:e.lastIntValue=r*8+t}else e.lastIntValue=r;return!0}return!1};ur.regexp_eatOctalDigit=function(e){var r=e.current();return qB(r)?(e.lastIntValue=r-48,e.advance(),!0):(e.lastIntValue=0,!1)};function qB(e){return e>=48&&e<=55}ur.regexp_eatFixedHexDigits=function(e,r){var t=e.pos;e.lastIntValue=0;for(var n=0;n=this.input.length)return this.finishToken(X.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};Yr.readToken=function(e){return Ua(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};Yr.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var r=this.input.charCodeAt(this.pos+1);return r<=56319||r>=57344?e:(e<<10)+r-56613888};Yr.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),r=this.pos,t=this.input.indexOf("*/",this.pos+=2);if(t===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=t+2,this.options.locations)for(var n=void 0,i=r;(n=uB(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(r+2,t),r,this.pos,e,this.curPosition())};Yr.skipLineComment=function(e){for(var r=this.pos,t=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&fB.test(String.fromCharCode(e)))++this.pos;else break e}}};Yr.finishToken=function(e,r){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var t=this.type;this.type=e,this.value=r,this.updateContext(t)};Yr.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var r=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&r===46?(this.pos+=3,this.finishToken(X.ellipsis)):(++this.pos,this.finishToken(X.dot))};Yr.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(X.assign,2):this.finishOp(X.slash,1)};Yr.readToken_mult_modulo_exp=function(e){var r=this.input.charCodeAt(this.pos+1),t=1,n=e===42?X.star:X.modulo;return this.options.ecmaVersion>=7&&e===42&&r===42&&(++t,n=X.starstar,r=this.input.charCodeAt(this.pos+2)),r===61?this.finishOp(X.assign,t+1):this.finishOp(n,t)};Yr.readToken_pipe_amp=function(e){var r=this.input.charCodeAt(this.pos+1);if(r===e){if(this.options.ecmaVersion>=12){var t=this.input.charCodeAt(this.pos+2);if(t===61)return this.finishOp(X.assign,3)}return this.finishOp(e===124?X.logicalOR:X.logicalAND,2)}return r===61?this.finishOp(X.assign,2):this.finishOp(e===124?X.bitwiseOR:X.bitwiseAND,1)};Yr.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(X.assign,2):this.finishOp(X.bitwiseXOR,1)};Yr.readToken_plus_min=function(e){var r=this.input.charCodeAt(this.pos+1);return r===e?r===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Si.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(X.incDec,2):r===61?this.finishOp(X.assign,2):this.finishOp(X.plusMin,1)};Yr.readToken_lt_gt=function(e){var r=this.input.charCodeAt(this.pos+1),t=1;return r===e?(t=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+t)===61?this.finishOp(X.assign,t+1):this.finishOp(X.bitShift,t)):r===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(r===61&&(t=2),this.finishOp(X.relational,t))};Yr.readToken_eq_excl=function(e){var r=this.input.charCodeAt(this.pos+1);return r===61?this.finishOp(X.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&r===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(X.arrow)):this.finishOp(e===61?X.eq:X.prefix,1)};Yr.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var r=this.input.charCodeAt(this.pos+1);if(r===46){var t=this.input.charCodeAt(this.pos+2);if(t<48||t>57)return this.finishOp(X.questionDot,2)}if(r===63){if(e>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(X.assign,3)}return this.finishOp(X.coalesce,2)}}return this.finishOp(X.question,1)};Yr.readToken_numberSign=function(){var e=this.options.ecmaVersion,r=35;if(e>=13&&(++this.pos,r=this.fullCharCodeAtPos(),Ua(r,!0)||r===92))return this.finishToken(X.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Ao(r)+"'")};Yr.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(X.parenL);case 41:return++this.pos,this.finishToken(X.parenR);case 59:return++this.pos,this.finishToken(X.semi);case 44:return++this.pos,this.finishToken(X.comma);case 91:return++this.pos,this.finishToken(X.bracketL);case 93:return++this.pos,this.finishToken(X.bracketR);case 123:return++this.pos,this.finishToken(X.braceL);case 125:return++this.pos,this.finishToken(X.braceR);case 58:return++this.pos,this.finishToken(X.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(X.backQuote);case 48:var r=this.input.charCodeAt(this.pos+1);if(r===120||r===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(r===111||r===79)return this.readRadixNumber(8);if(r===98||r===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(X.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Ao(e)+"'")};Yr.finishOp=function(e,r){var t=this.input.slice(this.pos,this.pos+r);return this.pos+=r,this.finishToken(e,t)};Yr.readRegexp=function(){for(var e,r,t=this.pos;;){this.pos>=this.input.length&&this.raise(t,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(Si.test(n)&&this.raise(t,"Unterminated regular expression"),e)e=!1;else{if(n==="[")r=!0;else if(n==="]"&&r)r=!1;else if(n==="/"&&!r)break;e=n==="\\\\"}++this.pos}var i=this.input.slice(t,this.pos);++this.pos;var a=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(a);var c=this.regexpState||(this.regexpState=new da(this));c.reset(t,i,s),this.validateRegExpFlags(c),this.validateRegExpPattern(c);var f=null;try{f=new RegExp(i,s)}catch{}return this.finishToken(X.regexp,{pattern:i,flags:s,value:f})};Yr.readInt=function(e,r,t){for(var n=this.options.ecmaVersion>=12&&r===void 0,i=t&&this.input.charCodeAt(this.pos)===48,a=this.pos,s=0,c=0,f=0,o=r??1/0;f=97?p=u-97+10:u>=65?p=u-65+10:u>=48&&u<=57?p=u-48:p=1/0,p>=e)break;c=u,s=s*e+p}return n&&c===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||r!=null&&this.pos-a!==r?null:s};function bY(e,r){return r?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function UB(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}Yr.readRadixNumber=function(e){var r=this.pos;this.pos+=2;var t=this.readInt(e);return t==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(t=UB(this.input.slice(r,this.pos)),++this.pos):Ua(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(X.num,t)};Yr.readNumber=function(e){var r=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(r,"Invalid number");var t=this.pos-r>=2&&this.input.charCodeAt(r)===48;t&&this.strict&&this.raise(r,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!t&&!e&&this.options.ecmaVersion>=11&&n===110){var i=UB(this.input.slice(r,this.pos));return++this.pos,Ua(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(X.num,i)}t&&/[89]/.test(this.input.slice(r,this.pos))&&(t=!1),n===46&&!t&&(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),(n===69||n===101)&&!t&&(n=this.input.charCodeAt(++this.pos),(n===43||n===45)&&++this.pos,this.readInt(10)===null&&this.raise(r,"Invalid number")),Ua(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=bY(this.input.slice(r,this.pos),t);return this.finishToken(X.num,a)};Yr.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),r;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;r=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,r>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else r=this.readHexChar(4);return r};Yr.readString=function(e){for(var r="",t=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;n===92?(r+=this.input.slice(t,this.pos),r+=this.readEscapedChar(!1),t=this.pos):n===8232||n===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(gu(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return r+=this.input.slice(t,this.pos++),this.finishToken(X.string,r)};var zB={};Yr.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===zB)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};Yr.invalidStringToken=function(e,r){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw zB;this.raise(e,r)};Yr.readTmplToken=function(){for(var e="",r=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var t=this.input.charCodeAt(this.pos);if(t===96||t===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===X.template||this.type===X.invalidTemplate)?t===36?(this.pos+=2,this.finishToken(X.dollarBraceL)):(++this.pos,this.finishToken(X.backQuote)):(e+=this.input.slice(r,this.pos),this.finishToken(X.template,e));if(t===92)e+=this.input.slice(r,this.pos),e+=this.readEscapedChar(!0),r=this.pos;else if(gu(t)){switch(e+=this.input.slice(r,this.pos),++this.pos,t){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=\` \`;break;default:e+=String.fromCharCode(t);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),r=this.pos}else++this.pos}};Yr.readInvalidTemplateToken=function(){for(;this.pos=48&&r<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,r=this.input.charCodeAt(this.pos),(n!=="0"||r===56||r===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return gu(r)?"":String.fromCharCode(r)}};Yr.readHexChar=function(e){var r=this.pos,t=this.readInt(16,e);return t===null&&this.invalidStringToken(r,"Bad character escape sequence"),t};Yr.readWord1=function(){this.containsEsc=!1;for(var e="",r=!0,t=this.pos,n=this.options.ecmaVersion>=6;this.pos{let r=/^["'](?:[^"\\\\]|\\\\.)*["'](?:;)?$/.test(e),t=e?.replace(/;+$/,""),n=!isNaN(parseFloat(t))&&!isNaN(t);return r||n||e==null||e==""};var Gg=(e,r)=>{let t=r?\`($event, $value, $state, $saveState, $api) => { \${e} }\`:e,n=typeof t=="string"||t instanceof String?t.includes(\` +\`;case 114:return"\\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Ao(this.readCodePoint());case 116:return" ";case 98:return"\\b";case 118:return"\\v";case 102:return"\\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var t=this.pos-1;this.invalidStringToken(t,"Invalid escape sequence in template string")}default:if(r>=48&&r<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,r=this.input.charCodeAt(this.pos),(n!=="0"||r===56||r===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return gu(r)?"":String.fromCharCode(r)}};Yr.readHexChar=function(e){var r=this.pos,t=this.readInt(16,e);return t===null&&this.invalidStringToken(r,"Bad character escape sequence"),t};Yr.readWord1=function(){this.containsEsc=!1;for(var e="",r=!0,t=this.pos,n=this.options.ecmaVersion>=6;this.pos{let r=/^["'](?:[^"\\\\]|\\\\.)*["'](?:;)?$/.test(e),t=e?.replace(/;+$/,""),n=!isNaN(parseFloat(t))&&!isNaN(t);return r||n||t=="false"||t=="true"||e==null||e==""};var Gg=(e,r)=>{let t=r?\`($event, $value, $state, $saveState, $api) => { \${e} }\`:e,n=typeof t=="string"||t instanceof String?t.includes(\` \`):!1,i;try{i=n&&!r&&!t.startsWith("(")?new Function(\`with(this) { \${t} }\`):new Function(\`with(this) { return \${t}; }\`)}catch(a){console.log(a,e)}return i},$g=e=>{let r={...e,execActions:{},execProps:{},execStyles:{},execPropsOptions:[]},{sortedKeys:t,dependencies:n}=NY(r.node.props,\`\${r.id}.props\`);return r.execPropsOptions=t.map(i=>({name:i,isConst:VB(r.node.props[i]),deps:n.get(i)||[]})),r.execProps=em(r.node.props,i=>Gg(i,!1)),r.execStyles=em(r.node.styles,i=>Gg(i,!1)),r.execActions=em(r.node.actions,i=>Gg(i,!0)),r.children=r.children.map(i=>$g(i)),r.node.type=="list"&&(r.template=r.children),r};function SY(e){let r=[];function t(i,a=[]){if(i.type==="Identifier")return a.push(i.name),a;if(i.type==="MemberExpression"){let s=t(i.object,a);if(s&&i.computed)return i.property.type==="Literal"?(s.push(String(i.property.value)),s):null;if(s)return t(i.property,s)}else if(i.type==="Literal")return a.push(String(i.value)),a;return null}function n(i){if(i.type==="MemberExpression"){let a=t(i);a&&r.push(a);return}for(let a in i)typeof i[a]=="object"&&i[a]!==null&&n(i[a])}try{let i=jp(e.replace("return ",""),{ecmaVersion:2020});n(i)}catch{return[]}return r}function NY(e,r){let t=new Map,n=new Map,i=new Map;for(let o in e){let u=e[o],p=SY(u),h=p.filter(d=>d.slice(0,-1).join(".")===r);n.set(o,h),i.set(o,p),t.has(o)||t.set(o,new Set);for(let d of h){let x=d[d.length-1];x!==o&&t.get(o).add(x)}}let a=new Set,s=[],c=new Set,f=o=>{if(c.has(o))throw new Error("Circular dependency detected");if(!a.has(o)){c.add(o);let u=t.get(o)||new Set;for(let p of u)f(p);a.add(o),c.delete(o),s.push(o)}};for(let o in e)a.has(o)||f(o);return{sortedKeys:s,dependencies:i}}function YB(e,r,t,n,i){var a=[];t||(t=Qe),function s(c,f,o){var u=o||c.type,p=c!==a[a.length-1];p&&a.push(c),t[u](c,f,s),r[u]&&r[u](c,f||a,a),p&&a.pop()}(e,n,i)}function Zg(e,r,t){t(e,r)}function ss(e,r,t){}var Qe={};Qe.Program=Qe.BlockStatement=Qe.StaticBlock=function(e,r,t){for(var n=0,i=e.body;n":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},$i=17,EY={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:$i,ClassExpression:$i,FunctionExpression:$i,ObjectExpression:$i,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function bu(e,r){let{generator:t}=e;if(e.write("("),r!=null&&r.length>0){t[r[0].type](r[0],e);let{length:n}=r;for(let i=1;i0){e.write(n);for(let s=1;s0){t.VariableDeclarator(n[0],e);for(let a=1;a0){r.write(n),i&&e.comments!=null&&An(r,e.comments,a,n);let{length:c}=s;for(let f=0;f0){for(;i0&&r.write(", ");let a=t[i],s=a.type[6];if(s==="D")r.write(a.local.name,a),i++;else if(s==="N")r.write("* as "+a.local.name,a),i++;else break}if(i0)for(let i=0;;){let a=t[i],{name:s}=a.local;if(r.write(s,a),s!==a.exported.name&&r.write(" as "+a.exported.name),++i "),e.body.type[0]==="O"?(r.write("("),this.ObjectExpression(e.body,r),r.write(")")):this[e.body.type](e.body,r)},ThisExpression(e,r){r.write("this",e)},Super(e,r){r.write("super",e)},RestElement:$B=function(e,r){r.write("..."),this[e.argument.type](e.argument,r)},SpreadElement:$B,YieldExpression(e,r){r.write(e.delegate?"yield*":"yield"),e.argument&&(r.write(" "),this[e.argument.type](e.argument,r))},AwaitExpression(e,r){r.write("await ",e),tm(r,e.argument,e)},TemplateLiteral(e,r){let{quasis:t,expressions:n}=e;r.write("\`");let{length:i}=n;for(let s=0;s0){let{elements:t}=e,{length:n}=t;for(let i=0;;){let a=t[i];if(a!=null&&this[a.type](a,r),++i0){r.write(n),i&&e.comments!=null&&An(r,e.comments,a,n);let s=","+n,{properties:c}=e,{length:f}=c;for(let o=0;;){let u=c[o];if(i&&u.comments!=null&&An(r,u.comments,a,n),r.write(a),this[u.type](u,r),++o0){let{properties:t}=e,{length:n}=t;for(let i=0;this[t[i].type](t[i],r),++i1||i[0]==="U"&&(i[1]==="n"||i[1]==="p")&&n.prefix&&n.operator[0]===t&&(t==="+"||t==="-"))&&r.write(" "),a?(r.write(t.length>1?" (":"("),this[i](n,r),r.write(")")):this[i](n,r)}else this[e.argument.type](e.argument,r),r.write(e.operator)},UpdateExpression(e,r){e.prefix?(r.write(e.operator),this[e.argument.type](e.argument,r)):(this[e.argument.type](e.argument,r),r.write(e.operator))},AssignmentExpression(e,r){this[e.left.type](e.left,r),r.write(" "+e.operator+" "),this[e.right.type](e.right,r)},AssignmentPattern(e,r){this[e.left.type](e.left,r),r.write(" = "),this[e.right.type](e.right,r)},BinaryExpression:ZB=function(e,r){let t=e.operator==="in";t&&r.write("("),tm(r,e.left,e,!1),r.write(" "+e.operator+" "),tm(r,e.right,e,!0),t&&r.write(")")},LogicalExpression:ZB,ConditionalExpression(e,r){let{test:t}=e,n=r.expressionsPrecedence[t.type];n===$i||n<=r.expressionsPrecedence.ConditionalExpression?(r.write("("),this[t.type](t,r),r.write(")")):this[t.type](t,r),r.write(" ? "),this[e.consequent.type](e.consequent,r),r.write(" : "),this[e.alternate.type](e.alternate,r)},NewExpression(e,r){r.write("new ");let t=r.expressionsPrecedence[e.callee.type];t===$i||t { onClick: (e4) => editable && !props.multi && showMenu2(), className: "mk-cell-option-select mk-icon-xxsmall mk-icon-rotated", dangerouslySetInnerHTML: { - __html: props.superstate.ui.getSticker("ui//collapse-sm") + __html: props.superstate.ui.getSticker("ui//collapse-solid") } })) : /* @__PURE__ */ import_react28.default.createElement(import_react28.default.Fragment, null))) : editable && !props.multi ? /* @__PURE__ */ import_react28.default.createElement("div", { className: "mk-cell-option-item" @@ -104694,7 +104882,7 @@ var PathCell = (props) => { type: "text", placeholder: i18n_default.buttons.newNote, ref: ref2, - value: v2.path, + defaultValue: v2.path, onKeyDown, onBlur }) : /* @__PURE__ */ import_react39.default.createElement("div", { @@ -105762,7 +105950,7 @@ var CollapseToggleSmall = (props) => { e4.stopPropagation(); }, dangerouslySetInnerHTML: { - __html: props.superstate.ui.getSticker("ui//collapse-sm") + __html: props.superstate.ui.getSticker("ui//collapse-solid") } }); }; @@ -107501,7 +107689,7 @@ var SpaceCell = (props) => { onClick: (e4) => showMenu2(), className: "mk-cell-option-select mk-icon-xxsmall mk-icon-rotated", dangerouslySetInnerHTML: { - __html: props.superstate.ui.getSticker("ui//collapse-sm") + __html: props.superstate.ui.getSticker("ui//collapse-solid") } }))), props.isTable && /* @__PURE__ */ import_react61.default.createElement("div", { className: "mk-cell-option-item" @@ -107511,7 +107699,7 @@ var SpaceCell = (props) => { onClick: (e4) => showSchemaMenu(), className: "mk-cell-option-select mk-icon-xxsmall mk-icon-rotated", dangerouslySetInnerHTML: { - __html: props.superstate.ui.getSticker("ui//collapse-sm") + __html: props.superstate.ui.getSticker("ui//collapse-solid") } }))); }; @@ -109080,6 +109268,8 @@ var showNewFrameMenu = (rect, superstate, space2, addNode, options = { searchabl const defaultFrames = [ buttonNode, ratingNode, + toggleNode, + callout, progressNode, circularProgressNode ]; @@ -110614,7 +110804,7 @@ var SidebarProvider = (props) => { props.superstate.waypoints ); const [activeViewSpaces, setActiveViewSpaces] = (0, import_react88.useState)( - (props.superstate.waypoints[props.superstate.settings.currentWaypoint]?.paths ?? []).map((f2) => props.superstate.spacesIndex.get(f2)) + (props.superstate.waypoints[props.superstate.settings.currentWaypoint]?.paths ?? []).map((f2) => props.superstate.spacesIndex.get(f2)).filter((f2) => f2) ); const setActiveViewSpaceByPath = (path) => { const newWaypoint = props.superstate.waypoints[props.superstate.settings.currentWaypoint] ?? { sticker: "", name: "Waypoint", paths: [] }; @@ -110650,14 +110840,14 @@ var SidebarProvider = (props) => { const refreshSpaces = (payload) => { if (props.superstate.waypoints[props.superstate.settings.currentWaypoint]?.paths?.includes(payload.path)) { setActiveViewSpaces( - (props.superstate.waypoints[props.superstate.settings.currentWaypoint]?.paths ?? []).map((f2) => props.superstate.spacesIndex.get(f2)) + (props.superstate.waypoints[props.superstate.settings.currentWaypoint]?.paths ?? []).map((f2) => props.superstate.spacesIndex.get(f2)).filter((f2) => f2) ); } }; const reloadPaths = () => { setWaypoints(props.superstate.waypoints); setActiveViewSpaces( - (props.superstate.waypoints[props.superstate.settings.currentWaypoint]?.paths ?? []).map((f2) => props.superstate.spacesIndex.get(f2)) + (props.superstate.waypoints[props.superstate.settings.currentWaypoint]?.paths ?? []).map((f2) => props.superstate.spacesIndex.get(f2)).filter((f2) => f2) ); }; (0, import_react88.useEffect)(() => { @@ -117286,13 +117476,31 @@ var PathView = (props) => { ); const ref2 = (0, import_react114.useRef)(null); (0, import_react114.useEffect)(() => { + const uri = props.superstate.spaceManager.uriByString(props.path); + if (uri?.scheme == "https" || uri?.scheme == "http") { + setPathState({ + path: props.path, + displayName: uri.path, + label: { + sticker: uri.scheme, + name: uri.path, + color: "" + }, + hidden: false, + subtype: "md", + type: "remote" + }); + return; + } const pathState2 = props.superstate.pathsIndex.get(props.path); setPathState(pathState2); }, [props.path]); return /* @__PURE__ */ import_react114.default.createElement("div", { className: "mk-path-view", style: { ...props.styles ?? {} } - }, pathState?.type == "space" ? /* @__PURE__ */ import_react114.default.createElement(SpaceView, { + }, pathState?.type == "remote" ? /* @__PURE__ */ import_react114.default.createElement("iframe", { + src: props.path + }) : pathState?.type == "space" ? /* @__PURE__ */ import_react114.default.createElement(SpaceView, { superstate: props.superstate, path: props.path }, /* @__PURE__ */ import_react114.default.createElement(SpaceOuter_default, { @@ -117491,9 +117699,27 @@ function parseContent(input) { var FlowNodeView = (props) => { const pathState = (0, import_react116.useMemo)(() => { const fullPath = props.state?.props?.value; - const path = fullPath ? parseContent(fullPath) : null; + const path = fullPath ? props.superstate.spaceManager.resolvePath( + parseContent(fullPath), + props.source + ) : null; + const uri = props.superstate.spaceManager.uriByString(fullPath); + if (uri?.scheme == "https" || uri?.scheme == "http") { + return { + path: fullPath, + displayName: uri.path, + label: { + sticker: uri.scheme, + name: uri.path, + color: "" + }, + hidden: false, + subtype: "md", + type: "remote" + }; + } return props.superstate.pathsIndex.get(path); - }, [props.state]); + }, [props.state, props.source]); const { updateNode } = (0, import_react116.useContext)(FramesEditorRootContext); const { selectionMode } = (0, import_react116.useContext)(FrameSelectionContext); const [expanded, setExpanded] = (0, import_react116.useState)( @@ -117538,7 +117764,7 @@ var FlowNodeView = (props) => { onToggle: toggleCollapse })) : selectionMode > 0 /* Read */ && /* @__PURE__ */ import_react116.default.createElement("div", { className: "mk-node-text-placeholder" - }, props.state?.props?.value, /* @__PURE__ */ import_react116.default.createElement(Suggester, { + }, /* @__PURE__ */ import_react116.default.createElement(Suggester, { placeholder: i18n_default.hintText.selectNote, onChange: (e4) => { setPathString(e4); @@ -117556,7 +117782,7 @@ var FlowNodeView = (props) => { }))), props.state && expanded && /* @__PURE__ */ import_react116.default.createElement(PathView, { id: id3, superstate: props.superstate, - path: props.state?.props?.value, + path: pathState?.path ?? props.state?.props?.value, containerRef: props.containerRef, styles: {} })); @@ -119811,7 +120037,7 @@ var SpaceCommand = (props) => { }, /* @__PURE__ */ import_react129.default.createElement("div", null, menuItems.find((f2) => f2.value == command.schema.type)?.name), /* @__PURE__ */ import_react129.default.createElement("div", { className: "mk-cell-option-select mk-icon-xxsmall mk-icon-rotated", dangerouslySetInnerHTML: { - __html: props.superstate.ui.getSticker("ui//collapse-sm") + __html: props.superstate.ui.getSticker("ui//collapse-solid") } }))), /* @__PURE__ */ import_react129.default.createElement("div", { className: "mk-space-editor-title" @@ -119917,8 +120143,8 @@ var FrameInstanceView = (props) => { // src/core/react/components/SpaceView/Editor/EmbedView/SpaceFragmentView.tsx var SpaceFragmentViewComponent = (props) => { const path = (0, import_react131.useMemo)( - () => props.superstate.spaceManager.uriByString(props.path), - [props.path] + () => props.superstate.spaceManager.uriByString(props.path, props.source), + [props.path, props.source] ); const [spaceFragment, setSpaceFragment] = (0, import_react131.useState)(null); (0, import_react131.useEffect)(() => { @@ -120033,6 +120259,7 @@ var ContextNodeView = (props) => { }; return props.state && fullPath ? /* @__PURE__ */ import_react132.default.createElement(SpaceFragmentViewComponent, { id: id3, + source: props.source, superstate: props.superstate, path: fullPath, minMode: props.state?.styles?.["--mk-min-mode"], @@ -120446,7 +120673,8 @@ var FrameView = (props) => { }) : props.treeNode.node.type == "image" ? /* @__PURE__ */ import_react140.default.createElement(ImageNodeView, { ...nodeProps }) : props.treeNode.node.type == "space" ? /* @__PURE__ */ import_react140.default.createElement(ContextNodeView, { - ...nodeProps + ...nodeProps, + source: props.source }) : props.treeNode.node.type == "content" ? /* @__PURE__ */ import_react140.default.createElement(ContentNodeView, null, props.treeNode.children.filter((f2) => f2.node.type != "slides").map((c3, i3) => /* @__PURE__ */ import_react140.default.createElement(FrameView, { superstate: props.superstate, key: i3, @@ -120592,15 +120820,20 @@ var NewNodeView = (props) => { section: "base", description: f2.def?.description })), - ...[buttonNode, ratingNode, progressNode, circularProgressNode].map( - (f2) => ({ - name: f2.node.name, - value: f2, - icon: f2.def?.icon, - section: "kit", - description: f2.def?.description - }) - ) + ...[ + buttonNode, + ratingNode, + callout, + toggleNode, + progressNode, + circularProgressNode + ].map((f2) => ({ + name: f2.node.name, + value: f2, + icon: f2.def?.icon, + section: "kit", + description: f2.def?.description + })) ]; const fuse = new Fuse(kit, fuseOptions); const kitOptions = query.length == 0 ? kit : fuse.search(query).map((result) => result.item).slice(0, 10); @@ -120639,6 +120872,7 @@ var NewNodeView = (props) => { { ...node, type: option.section == "base" ? node.type : "frame", + styles: option.value.node.styles, ref: option.section == "base" ? "" : "spaces://$kit/#*" + option.value.def.id, parentId: props.treeNode.node.parentId, schemaId: props.treeNode.node.schemaId, @@ -120651,6 +120885,7 @@ var NewNodeView = (props) => { option.section == "base" ? option.value.node : { ...option.value.node, type: "frame", + styles: option.value.node.styles, ref: "spaces://$kit/#*" + option.value.def.id }, instance.root.node, @@ -120812,6 +121047,7 @@ var FrameEditorInner = (0, import_react142.memo)(function FrameEditorInner2(prop state: props.state }; const { treeNode } = props; + const { pathState } = (0, import_react142.useContext)(PathContext); const { instance } = (0, import_react142.useContext)(FrameInstanceContext); return /* @__PURE__ */ import_react142.default.createElement(import_react142.default.Fragment, null, treeNode.node.type == "new" ? /* @__PURE__ */ import_react142.default.createElement(NewNodeView, { ...nodeProps @@ -120825,14 +121061,24 @@ var FrameEditorInner = (0, import_react142.memo)(function FrameEditorInner2(prop ...nodeProps }) : treeNode.node.type == "space" ? /* @__PURE__ */ import_react142.default.createElement(ContextNodeView, { ...nodeProps, - containerRef: props.containerRef + containerRef: props.containerRef, + source: pathState.path }) : treeNode.node.type == "flow" ? /* @__PURE__ */ import_react142.default.createElement(FlowNodeView, { ...nodeProps, + source: pathState.path, containerRef: props.containerRef }) : treeNode.node.type == "content" ? /* @__PURE__ */ import_react142.default.createElement(ContentNodeView, { editable: !props.treeNode.isRef - }, props.children) : (treeNode.node.type == "column" || treeNode.node.type == "container") && treeNode.children.length == 0 ? /* @__PURE__ */ import_react142.default.createElement(import_react142.default.Fragment, null) : props.treeNode.id == props.instance.root.id || treeNode.node.type == "column" || treeNode.node.type == "container" ? props.treeNode.children.map( - (c3, i3) => c3.node.type == "slides" ? /* @__PURE__ */ import_react142.default.createElement(import_react142.default.Fragment, null) : /* @__PURE__ */ import_react142.default.createElement(FrameEditorNodeView, { + }, props.treeNode.children.map( + (c3, i3) => c3.node.type == "slides" ? null : /* @__PURE__ */ import_react142.default.createElement(FrameEditorNodeView, { + superstate: props.superstate, + key: c3.id, + treeNode: c3, + instance: props.instance, + containerRef: props.containerRef + }, props.children) + ), props.children) : (treeNode.node.type == "column" || treeNode.node.type == "container") && treeNode.children.length == 0 ? null : props.treeNode.id == props.instance.root.id || treeNode.node.type == "column" || treeNode.node.type == "container" ? props.treeNode.children.map( + (c3, i3) => c3.node.type == "slides" ? null : /* @__PURE__ */ import_react142.default.createElement(FrameEditorNodeView, { superstate: props.superstate, key: c3.id, treeNode: c3, @@ -120844,7 +121090,7 @@ var FrameEditorInner = (0, import_react142.memo)(function FrameEditorInner2(prop id: treeNode.id, editMode: props.editMode }, treeNode.children.map( - (c3, i3) => c3.node.type == "slides" ? /* @__PURE__ */ import_react142.default.createElement(import_react142.default.Fragment, null) : /* @__PURE__ */ import_react142.default.createElement(FrameEditorNodeView, { + (c3, i3) => c3.node.type == "slides" ? null : /* @__PURE__ */ import_react142.default.createElement(FrameEditorNodeView, { superstate: props.superstate, key: c3.id, treeNode: c3, @@ -128988,7 +129234,7 @@ var uiIconSet = { `, - "collapse-sm": ` + "collapse-solid": ` `, "search": ` @@ -129186,6 +129432,7 @@ var uiIconSet = { `, + "callout": ``, "mk-make-table": ` diff --git a/manifest.json b/manifest.json index 2b52cdb..843b253 100755 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "make-md", "name": "MAKE.md", - "version": "0.9.12", + "version": "0.9.13", "minAppVersion": "0.16.0", "description": "Make.md brings powerful and modern note-taking features to Obsidian. Capture, organize and connect information with more flexibility without any code.", "author": "MAKE.md",