diff --git a/.obsidian/community-plugins.json b/.obsidian/community-plugins.json index 858ab734..79536194 100644 --- a/.obsidian/community-plugins.json +++ b/.obsidian/community-plugins.json @@ -61,5 +61,6 @@ "obsidian-bulk-rename-plugin", "msg-handler", "obsidian-timelines", - "cron" + "cron", + "obsidian-full-calendar" ] \ No newline at end of file diff --git a/.obsidian/graph.json b/.obsidian/graph.json index d28fd1a3..ea290642 100644 --- a/.obsidian/graph.json +++ b/.obsidian/graph.json @@ -95,6 +95,6 @@ "repelStrength": 10, "linkStrength": 1, "linkDistance": 250, - "scale": 0.1661354152177926, + "scale": 0.16445482949637327, "close": true } \ No newline at end of file diff --git a/.obsidian/plugins/cmdr/main.js b/.obsidian/plugins/cmdr/main.js index 494039ad..29b4cc2b 100644 --- a/.obsidian/plugins/cmdr/main.js +++ b/.obsidian/plugins/cmdr/main.js @@ -3,7 +3,7 @@ THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin (https://github.com/phibr0/obsidian-commander) */ -var Oe=Object.defineProperty,Hn=Object.defineProperties,Rn=Object.getOwnPropertyDescriptor,Fn=Object.getOwnPropertyDescriptors,On=Object.getOwnPropertyNames,Fe=Object.getOwnPropertySymbols;var ht=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable;var jt=(e,o,t)=>o in e?Oe(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,Ve=(e,o)=>{for(var t in o||(o={}))ht.call(o,t)&&jt(e,t,o[t]);if(Fe)for(var t of Fe(o))$t.call(o,t)&&jt(e,t,o[t]);return e},Yt=(e,o)=>Hn(e,Fn(o));var Gt=(e,o)=>{var t={};for(var n in e)ht.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&Fe)for(var n of Fe(e))o.indexOf(n)<0&&$t.call(e,n)&&(t[n]=e[n]);return t};var Vn=(e,o)=>{for(var t in o)Oe(e,t,{get:o[t],enumerable:!0})},zn=(e,o,t,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of On(o))!ht.call(e,i)&&i!==t&&Oe(e,i,{get:()=>o[i],enumerable:!(n=Rn(o,i))||n.enumerable});return e};var Wn=e=>zn(Oe({},"__esModule",{value:!0}),e);var Vi={};Vn(Vi,{default:()=>dt});module.exports=Wn(Vi);var ze=require("obsidian");var bt=require("obsidian");var Kt={};var Qt={};var eo={};var to={"Open Commander Settings":"Commander Einstellungen \xF6ffnen","Open Macro Builder":"Makro Baukasten \xF6ffnen","Change Icon":"Symbol ver\xE4ndern",Rename:"Umbenennen",Delete:"L\xF6schen","Add command":"Befehl hinzuf\xFCgen","Add new":"Neuen Befehl hinzuf\xFCgen","This Command seems to have been removed. {{command_name}}":"Dieser Befehl wurde entfernt. {{command_name}}","Choose a Command to add":"W\xE4hle einen Befehl zum hinzuf\xFCgen","to navigate":"zum navigieren","to choose an icon":"um ein symbol auszuw\xE4hlen","to cancel":"zum abbrechen","Use a custom name":"Nutze einen benutzerdefinierten Namen","Choose a custom Name for your new Command":"W\xE4hle einen benutzerdefinierten Namen f\xFCr deinen neuen Befehl","to save":"zum speichern","Choose a Icon for your new Command":"W\xE4hle ein Symbol f\xFCr deinen neuen Befehl","to choose a custom icon":"um ein benutzerdefiniertes Symbol auszuw\xE4hlen","Remove Command":"Befehl entfernen","Double click to rename":"Zum umbenennen doppelklicken","This device":"Dieses Ger\xE4t","Added by {{plugin_name}}.":"Hinzugef\xFCgt von {{plugin_name}}.","Warning: This is a checked Command, meaning it might not run under every circumstance.":"Warnung: Dieser Befehl wird nur unter bestimmten Vorraussetzungen ausgef\xFChrt.","Move down":"Nach unten","Move up":"Nach oben","Change Mode (Currently: {{current_mode}})":"Modus ver\xE4ndern (Momentan: {{current_mode}})","Are you sure you want to delete the Command?":"Bist du dir sicher, dass du diesen Befehl entfernen m\xF6chtest?","Remove and don't ask again":"Entfernen und Auswahl speichern",Remove:"Entfernen",Cancel:"Abbrechen","Always ask before removing?":"Immer fragen, bevor ein Befehl gel\xF6scht wird?","Always show a Popup to confirm deletion of a Command.":"Zeige immer ein Popup um L\xF6schen zu best\xE4tigen.",'Show "Add Command" Button':'Zeige "Befehl hinzuf\xFCgen" Knopf','Show the "Add Command" Button in every Menu. Requires restart.':'Zeige den "Befehl hinzuf\xFCgen" Knopf in jedem Men\xFC. Erfordert neustart.',"Please restart Obsidian for these changes to take effect.":"Bitte starte Obsidian neu, damit diese \xC4nderungen in Kraft treten.","Enable debugging":"Aktiviere debugging","Enable console output.":"Aktiviere Konsolen-Output (F\xFCr Entwickler)",General:"Allgemein","Editor Menu":"Editor-Men\xFC","File Menu":"Datei-Men\xFC","Left Ribbon":"Band","Right Ribbon":"Rechtes Band",Titlebar:"Titelleiste",Statusbar:"Statusleiste","Page Header":"Kopfzeile","Support development":"Entwicklung unterst\xFCtzen","No commands here!":"Keine Befehle da!","Would you like to add one now?":"M\xF6chtest du jetzt einen hinzuf\xFCgen?","Hide Commands":"Befehle verstecken","Choose new":"W\xE4hle neu","Hide Commands of other Plugins":"Hide Commands of other Plugins",Icon:"Symbol",Name:"Name","Custom Name":"Benutzerdefinierter Name","Add command to all devices":"F\xFCge Befehl allen Ger\xE4ten hinzu","Add command only to mobile devices":"F\xFCge Befehl nur Mobilen Ger\xE4ten hinzu","Add command only to desktop devices":"F\xFCge Befehl nur Desktop Ger\xE4ten hinzu","Add command only to this device":"F\xFCge Befehl nur diesem Ger\xE4t hinzu",Done:"Fertig","By Johnny\u2728 and phibr0":"Von Johnny\u2728 und phibr0","Leave feedback":"Feedback geben",Donate:"Spenden","Share feedback, issues, and ideas with our feedback form.":"Teile Feedback, Probleme und Ideen mit unserem Feedback Formular!","Consider donating to support development.":"Spende um die Entwicklung zu unterst\xFCtzen.",Save:"Speichern","This Command is not available on this device.":"Dieser Befehl ist auf diesem Ger\xE4t nicht verf\xFCgbar.",Show:"Anzeigen",Hide:"Verstecken","Hide other Commands":"Andere Befehle verstecken","Double click to enter custom value":"Doppelklicken um eigenen Wert einzutragen","Choose custom spacing for Command Buttons":"W\xE4hle den Abstand zwischen Befehlen","Change the spacing between commands. You can set different values on mobile and desktop.":"Ver\xE4ndert den Abstand zwischen Befehlen.",Warning:"Achtung","As of Obsidian 0.16.0 you need to explicitly enable the View Header.":'Ab Obsidian Version 0.16.0 m\xFCssen Sie den "View Header" explizit aktivieren. Anschlie\xDFend muss Obsidian neugestartet werden.',"Open Appearance Settings":"\xD6ffne Darstellungs-Einstellungen",Explorer:"Explorer"};var vt={"Open Commander Settings":"Open Commander Settings","Open Macro Builder":"Open Macro Builder","Change Icon":"Change Icon",Rename:"Rename",Delete:"Delete","Add command":"Add command","Add new":"Add new command","This Command seems to have been removed. {{command_name}}":"This Command seems to have been removed. {{command_name}}","Choose a Command to add":"Choose a Command to add","to navigate":"to navigate","to choose an icon":"to choose an icon","to cancel":"to cancel","Use a custom name":"Use a custom name","Choose a custom Name for your new Command":"Choose a custom Name for your new Command","to save":"to save","Choose a Icon for your new Command":"Choose a Icon for your new Command","to choose a custom icon":"to choose a custom icon","Remove Command":"Remove Command","Double click to rename":"Double click to rename","This device":"This device","Added by {{plugin_name}}.":"Added by {{plugin_name}}.","Warning: This is a checked Command, meaning it might not run under every circumstance.":"Warning: This is a checked Command, meaning it might not run under every circumstance.","Move down":"Move down","Move up":"Move up","Change Mode (Currently: {{current_mode}})":"Change Mode (Currently: {{current_mode}})","Are you sure you want to delete the Command?":"Are you sure you want to delete the Command?","Remove and don't ask again":"Remove and don't ask again",Remove:"Remove",Cancel:"Cancel","Always ask before removing?":"Always ask before removing?","Always show a Popup to confirm deletion of a Command.":"Always show a Popup to confirm deletion of a Command.",'Show "Add Command" Button':'Show "Add Command" Button','Show the "Add Command" Button in every Menu. Requires restart.':'Show the "Add Command" Button in every Menu. Requires restart.',"Please restart Obsidian for these changes to take effect.":"Please restart Obsidian for these changes to take effect.","Enable debugging":"Enable debugging","Enable console output.":"Enable console output.",General:"General","Editor Menu":"Editor Menu","File Menu":"File Menu","Left Ribbon":"Ribbon","Right Ribbon":"Right Ribbon",Titlebar:"Titlebar",Statusbar:"Status Bar","Page Header":"Tab Bar","Support development":"Support development","No commands here!":"No commands here!","Would you like to add one now?":"Would you like to add one now?","Hide Commands":"Hide Commands","Choose new":"Choose new","Hide Commands of other Plugins":"Hide Commands of other Plugins",Icon:"Icon",Name:"Name","Custom Name":"Custom Name","Add command to all devices":"Add command to all devices","Add command only to mobile devices":"Add command only to mobile devices","Add command only to desktop devices":"Add command only to desktop devices","Add command only to this device":"Add command only to this device",Done:"Done","By Johnny\u2728 and phibr0":"By Johnny\u2728 and phibr0","Leave feedback":"Leave feedback",Donate:"Donate","Share feedback, issues, and ideas with our feedback form.":"Share feedback, issues, and ideas with our feedback form.","Consider donating to support development.":"Consider donating to support development.",Save:"Save","This Command is not available on this device.":"This Command is not available on this device.",Show:"Show",Hide:"Hide","Hide other Commands":"Hide other Commands","Double click to enter custom value":"Double click to enter custom value","Choose custom spacing for Command Buttons":"Choose custom spacing for Command Buttons","Change the spacing between commands. You can set different values on mobile and desktop.":"Change the spacing between commands.",Warning:"Warning","As of Obsidian 0.16.0 you need to explicitly enable the View Header.":"As of Obsidian 0.16.0 you need to explicitly enable the Tab Title Bar. Once enabled, you might need to restart Obsidian.","Open Appearance Settings":"Open Appearance Settings",Explorer:"Explorer"};var oo={};var no={};var io={};var ao={};var ro={};var so={};var co={};var lo={};var mo={};var uo={};var po={};var fo={};var ho={};var vo={};var go={};var bo={};var _o={"Open Commander Settings":"\u6253\u5F00 Commander \u8BBE\u7F6E","Open Macro Builder":"\u6253\u5F00\u5B8F\u6307\u4EE4\u751F\u6210\u5668","Change Icon":"\u66F4\u6362\u56FE\u6807",Rename:"\u91CD\u547D\u540D",Delete:"\u5220\u9664","Add command":"\u6DFB\u52A0\u547D\u4EE4","Add new":"\u6DFB\u52A0\u65B0\u547D\u4EE4","This Command seems to have been removed. {{command_name}}":"\u8BE5\u547D\u4EE4\u4F3C\u4E4E\u5DF2\u88AB\u79FB\u9664\u3002{{command_name}}","Choose a Command to add":"\u9009\u62E9\u4E00\u4E2A\u547D\u4EE4\u5E76\u6DFB\u52A0","to navigate":"\u5BFC\u822A","to choose an icon":"\u9009\u4E2D\u4E00\u4E2A\u56FE\u6807","to cancel":"\u53D6\u6D88","Use a custom name":"\u4F7F\u7528\u4E00\u4E2A\u81EA\u5B9A\u4E49\u540D\u79F0","Choose a custom Name for your new Command":"\u4E3A\u4F60\u7684\u65B0\u547D\u4EE4\u9009\u62E9\u4E00\u4E2A\u81EA\u5B9A\u4E49\u540D\u79F0","to save":"\u4FDD\u5B58","Choose a Icon for your new Command":"\u4E3A\u4F60\u7684\u65B0\u547D\u4EE4\u9009\u62E9\u4E00\u4E2A\u56FE\u6807","to choose a custom icon":"\u9009\u62E9\u4E00\u4E2A\u81EA\u5B9A\u4E49\u56FE\u6807","Remove Command":"\u79FB\u9664\u547D\u4EE4","Double click to rename":"\u53CC\u51FB\u4EE5\u91CD\u547D\u540D","This device":"\u8BE5\u8BBE\u5907","Added by {{plugin_name}}.":"\u7531{{plugin_name}}\u6DFB\u52A0\u3002","Warning: This is a checked Command, meaning it might not run under every circumstance.":"\u8B66\u544A\uFF1A\u8FD9\u662F\u4E00\u4E2A\u53D7\u68C0\u7684\u547D\u4EE4\uFF0C\u8FD9\u610F\u5473\u7740\u5B83\u672A\u5FC5\u80FD\u5728\u6240\u4EE5\u73AF\u5883\u4E0B\u8FD0\u884C\u3002","Move down":"\u5411\u4E0B\u79FB\u52A8","Move up":"\u5411\u4E0A\u79FB\u52A8","Change Mode (Currently: {{current_mode}})":"\u5207\u6362\u6A21\u5F0F\uFF08\u5F53\u524D\uFF1A{{current_mode}}\uFF09","Are you sure you want to delete the Command?":"\u662F\u5426\u786E\u8BA4\u79FB\u9664\u8BE5\u547D\u4EE4\uFF1F","Remove and don't ask again":"\u79FB\u9664\u4E14\u4E0D\u8981\u518D\u8BE2\u95EE",Remove:"\u79FB\u9664",Cancel:"\u53D6\u6D88","Always ask before removing?":"\u5728\u79FB\u9664\u524D\u603B\u662F\u8BE2\u95EE\uFF1F","Always show a Popup to confirm deletion of a Command.":"\u5728\u786E\u8BA4\u79FB\u9664\u547D\u4EE4\u524D\u603B\u662F\u5F39\u7A97\u3002",'Show "Add Command" Button':"\u663E\u793A\u201C\u6DFB\u52A0\u547D\u4EE4\u201D\u6309\u94AE",'Show the "Add Command" Button in every Menu. Requires restart.':"\u5728\u6BCF\u4E2A\u83DC\u5355\u90FD\u5C55\u793A\u201C\u6DFB\u52A0\u547D\u4EE4\u201D\u6309\u94AE\u3002\u9700\u8981\u91CD\u542F\u3002","Please restart Obsidian for these changes to take effect.":"\u8BF7\u91CD\u542F Obsidian \u4EE5\u4F7F\u8FD9\u4E9B\u66F4\u6539\u751F\u6548\u3002","Enable debugging":"\u542F\u7528\u9664\u9519","Enable console output.":"\u542F\u7528\u63A7\u5236\u53F0\u8F93\u51FA\u3002",General:"\u901A\u7528","Editor Menu":"\u7F16\u8F91\u5668\u83DC\u5355","File Menu":"\u6587\u4EF6\u83DC\u5355","Left Ribbon":"\u5DE6\u4FA7\u8FB9\u680F","Right Ribbon":"\u53F3\u4FA7\u8FB9\u680F",Titlebar:"\u6807\u9898\u680F",Statusbar:"\u72B6\u6001\u680F","Page Header":"\u9875\u9996","Support development":"\u652F\u6301\u5F00\u53D1","No commands here!":"\u8FD9\u91CC\u6CA1\u6709\u547D\u4EE4\uFF01","Would you like to add one now?":"\u4F60\u73B0\u5728\u60F3\u8981\u52A0\u4E00\u4E2A\u5417\uFF1F","Hide Commands":"\u9690\u85CF\u547D\u4EE4","Choose new":"\u9009\u62E9\u65B0\u7684","Hide Commands of other Plugins":"\u9690\u85CF\u5176\u4ED6\u63D2\u4EF6\u7684\u547D\u4EE4",Icon:"\u56FE\u6807",Name:"\u540D\u79F0","Custom Name":"\u81EA\u5B9A\u4E49\u540D\u79F0","Add command to all devices":"\u5411\u6240\u6709\u8BBE\u5907\u6DFB\u52A0\u547D\u4EE4","Add command only to mobile devices":"\u53EA\u5411\u79FB\u52A8\u8BBE\u5907\u6DFB\u52A0\u547D\u4EE4","Add command only to desktop devices":"\u53EA\u5411\u684C\u9762\u8BBE\u5907\u6DFB\u52A0\u547D\u4EE4","Add command only to this device":"\u53EA\u5411\u5F53\u524D\u8BBE\u5907\u6DFB\u52A0\u547D\u4EE4",Done:"\u5B8C\u6210","By Johnny\u2728 and phibr0":"\u7531 Johnny\u2728 \u548C phibr0 \u5F00\u53D1","Leave feedback":"\u7559\u4E0B\u53CD\u9988",Donate:"\u6350\u8D60","Share feedback, issues, and ideas with our feedback form.":"\u4EE5\u6211\u4EEC\u7684\u53CD\u9988\u8868\uFF0C\u5206\u4EAB\u53CD\u9988\u3001\u8BAE\u9898\u6216\u8005\u4F60\u7684\u60F3\u6CD5\u3002","Consider donating to support development.":"\u8003\u8651\u6350\u8D60\u4EE5\u652F\u6301\u5F00\u53D1\u3002",Save:"\u4FDD\u5B58","This Command is not available on this device.":"\u8FD9\u4E00\u547D\u4EE4\u5728\u5F53\u524D\u8BBE\u5907\u4E0D\u53EF\u7528\u3002",Show:"\u663E\u793A",Hide:"\u9690\u85CF","Hide other Commands":"\u9690\u85CF\u5176\u4F59\u547D\u4EE4","Double click to enter custom value":"\u53CC\u51FB\u4EE5\u6DFB\u52A0\u81EA\u5B9A\u4E49\u503C","Choose custom spacing for Command Buttons":"\u4E3A\u547D\u4EE4\u6309\u94AE\u9009\u62E9\u81EA\u5B9A\u4E49\u95F4\u8DDD","Change the spacing between commands. You can set different values on mobile and desktop.":"\u6539\u53D8\u547D\u4EE4\u4E4B\u95F4\u7684\u95F4\u8DDD\u3002\u4F60\u53EF\u4EE5\u4E3A\u79FB\u52A8\u548C\u684C\u9762\u8BBE\u5907\u8BBE\u7F6E\u4E0D\u540C\u7684\u503C\u3002"};var Co={};var ui={ar:Kt,cs:Qt,da:eo,de:to,en:vt,"en-gb":oo,es:no,fr:io,hi:ao,id:ro,it:so,ja:co,ko:lo,nl:mo,nn:uo,pl:po,pt:fo,"pt-br":ho,ro:vo,ru:go,tr:bo,"zh-cn":_o,"zh-tw":Co},gt=ui[bt.moment.locale()];function u(e){return gt||console.error("Error: dictionary locale not found",bt.moment.locale()),gt&>[e]||vt[e]}var ne=class extends ze.FuzzySuggestModal{constructor(t){super(app);this.plugin=t,this.commands=Object.values(app.commands.commands),this.setPlaceholder(u("Choose a Command to add")),this.setInstructions([{command:"\u2191\u2193",purpose:u("to navigate")},{command:"\u21B5",purpose:u("to choose an icon")},{command:"esc",purpose:u("to cancel")}])}async awaitSelection(){return this.open(),new Promise((t,n)=>{this.onChooseItem=i=>t(i),this.onClose=()=>window.setTimeout(()=>n("No Command selected"),0)})}renderSuggestion(t,n){if(n.addClass("mod-complex"),n.createDiv({cls:"suggestion-content"}).createDiv({cls:"suggestion-title"}).setText(t.item.name),t.item.icon){let a=n.createDiv({cls:"suggestion-aux"});(0,ze.setIcon)(a.createSpan({cls:"suggestion-flair"}),t.item.icon)}}getItems(){return this.commands}getItemText(t){return t.name}onChooseItem(t,n){}};var yo={confirmDeletion:!0,showAddCommand:!0,debug:!1,editorMenu:[],fileMenu:[],leftRibbon:[],rightRibbon:[],titleBar:[],statusBar:[],pageHeader:[],macros:[],explorer:[],hide:{statusbar:[],leftRibbon:[]},spacing:8,advancedToolbar:{rowHeight:48,rowCount:1,spacing:0,buttonWidth:48,columnLayout:!1,mappedIcons:[],tooltips:!1,heightOffset:0}},wo=["activity","airplay","alarm-check","alarm-clock-off","alarm-clock","alarm-minus","alarm-plus","album","alert-circle","alert-octagon","alert-triangle","align-center-horizontal","align-center-vertical","align-center","align-end-horizontal","align-end-vertical","align-horizontal-distribute-center","align-horizontal-distribute-end","align-horizontal-distribute-start","align-horizontal-justify-center","align-horizontal-justify-end","align-horizontal-justify-start","align-horizontal-space-around","align-horizontal-space-between","align-justify","align-left","align-right","align-start-horizontal","align-start-vertical","align-vertical-distribute-center","align-vertical-distribute-end","align-vertical-distribute-start","align-vertical-justify-center","align-vertical-justify-end","align-vertical-justify-start","align-vertical-space-around","align-vertical-space-between","anchor","aperture","archive","arrow-big-down","arrow-big-left","arrow-big-right","arrow-big-up","arrow-down-circle","arrow-down-left","arrow-down-right","arrow-down","arrow-left-circle","arrow-left-right","arrow-left","arrow-right-circle","arrow-right","arrow-up-circle","arrow-up-left","arrow-up-right","arrow-up","asterisk","at-sign","award","axe","banknote","bar-chart-2","bar-chart","baseline","battery-charging","battery-full","battery-low","battery-medium","battery","beaker","bell-minus","bell-off","bell-plus","bell-ring","bell","bike","binary","bitcoin","bluetooth-connected","bluetooth-off","bluetooth-searching","bluetooth","bold","book-open","book","bookmark-minus","bookmark-plus","bookmark","bot","box-select","box","briefcase","brush","bug","building-2","building","bus","calculator","calendar","camera-off","camera","car","carrot","cast","check-circle-2","check-circle","check-square","check","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-up","chevrons-down-up","chevrons-down","chevrons-left","chevrons-right","chevrons-up-down","chevrons-up","chrome","circle-slashed","circle","clipboard-check","clipboard-copy","clipboard-list","clipboard-x","clipboard","clock-1","clock-10","clock-11","clock-12","clock-2","clock-3","clock-4","clock-5","clock-6","clock-7","clock-8","clock-9","lucide-clock","cloud-drizzle","cloud-fog","cloud-hail","cloud-lightning","cloud-moon","cloud-off","cloud-rain-wind","cloud-rain","cloud-snow","cloud-sun","lucide-cloud","cloudy","clover","code-2","code","codepen","codesandbox","coffee","coins","columns","command","compass","contact","contrast","cookie","copy","copyleft","copyright","corner-down-left","corner-down-right","corner-left-down","corner-left-up","corner-right-down","corner-right-up","corner-up-left","corner-up-right","cpu","credit-card","crop","lucide-cross","crosshair","crown","currency","database","delete","dice-1","dice-2","dice-3","dice-4","dice-5","dice-6","disc","divide-circle","divide-square","divide","dollar-sign","download-cloud","download","dribbble","droplet","droplets","drumstick","edit-2","edit-3","edit","egg","equal-not","equal","eraser","euro","expand","external-link","eye-off","eye","facebook","fast-forward","feather","figma","file-check-2","file-check","file-code","file-digit","file-input","file-minus-2","file-minus","file-output","file-plus-2","file-plus","file-search","file-text","file-x-2","file-x","file","files","film","filter","flag-off","flag-triangle-left","flag-triangle-right","flag","flame","flashlight-off","flashlight","flask-conical","flask-round","folder-minus","folder-open","folder-plus","lucide-folder","form-input","forward","frame","framer","frown","function-square","gamepad-2","gamepad","gauge","gavel","gem","ghost","gift","git-branch-plus","git-branch","git-commit","git-fork","git-merge","git-pull-request","github","gitlab","glasses","globe-2","globe","grab","graduation-cap","grid","grip-horizontal","grip-vertical","hammer","hand-metal","hand","hard-drive","hard-hat","hash","haze","headphones","heart","help-circle","hexagon","highlighter","history","home","image-minus","image-off","image-plus","image","import","inbox","indent","indian-rupee","infinity","lucide-info","inspect","instagram","italic","japanese-yen","key","keyboard","landmark","lucide-languages","laptop-2","laptop","lasso-select","lasso","layers","layout-dashboard","layout-grid","layout-list","layout-template","layout","library","life-buoy","lightbulb-off","lightbulb","link-2-off","link-2","lucide-link","linkedin","list-checks","list-minus","list-ordered","list-plus","list-x","list","loader-2","loader","locate-fixed","locate-off","locate","lock","log-in","log-out","mail","map-pin","map","maximize-2","maximize","megaphone","meh","menu","message-circle","message-square","mic-off","mic","minimize-2","minimize","minus-circle","minus-square","minus","monitor-off","monitor-speaker","monitor","moon","more-horizontal","more-vertical","mountain-snow","mountain","mouse-pointer-2","mouse-pointer-click","mouse-pointer","mouse","move-diagonal-2","move-diagonal","move-horizontal","move-vertical","move","music","navigation-2","navigation","network","octagon","option","outdent","package-check","package-minus","package-plus","package-search","package-x","package","palette","palmtree","paperclip","pause-circle","pause-octagon","pause","pen-tool","lucide-pencil","percent","person-standing","phone-call","phone-forwarded","phone-incoming","phone-missed","phone-off","phone-outgoing","phone","pie-chart","piggy-bank","lucide-pin","pipette","plane","play-circle","play","plug-zap","plus-circle","plus-square","plus","pocket","podcast","pointer","pound-sterling","power-off","power","printer","qr-code","quote","radio-receiver","radio","redo","refresh-ccw","refresh-cw","regex","repeat-1","repeat","reply-all","reply","rewind","rocket","rocking-chair","rotate-ccw","rotate-cw","rss","ruler","russian-ruble","save","scale","scan-line","scan","scissors","screen-share-off","screen-share","lucide-search","send","separator-horizontal","separator-vertical","server-crash","server-off","server","settings-2","settings","share-2","share","sheet","shield-alert","shield-check","shield-close","shield-off","shield","shirt","shopping-bag","shopping-cart","shovel","shrink","shuffle","sidebar-close","sidebar-open","sidebar","sigma","signal-high","signal-low","signal-medium","signal-zero","signal","skip-back","skip-forward","skull","slack","slash","sliders","smartphone-charging","smartphone","smile","snowflake","sort-asc","sort-desc","speaker","sprout","square","star-half","lucide-star","stop-circle","stretch-horizontal","stretch-vertical","strikethrough","subscript","sun","sunrise","sunset","superscript","swiss-franc","switch-camera","table","tablet","tag","target","tent","terminal-square","terminal","text-cursor-input","text-cursor","thermometer-snowflake","thermometer-sun","thermometer","thumbs-down","thumbs-up","ticket","timer-off","timer-reset","timer","toggle-left","toggle-right","tornado","trash-2","lucide-trash","trello","trending-down","trending-up","triangle","truck","tv-2","tv","twitch","twitter","type","umbrella","underline","undo","unlink-2","unlink","unlock","upload-cloud","upload","user-check","user-minus","user-plus","user-x","user","users","verified","vibrate","video-off","video","view","voicemail","volume-1","volume-2","volume-x","volume","wallet","wand","watch","waves","webcam","wifi-off","wifi","wind","wrap-text","wrench","x-circle","x-octagon","x-square","x","youtube","zap-off","zap","zoom-in","zoom-out","search-large"];var We=require("obsidian");var R=class extends We.FuzzySuggestModal{constructor(t){super(app);this.plugin=t,this.setPlaceholder(u("Choose a Icon for your new Command")),this.setInstructions([{command:"\u2191\u2193",purpose:u("to navigate")},{command:"\u21B5",purpose:u("to choose a custom icon")},{command:"esc",purpose:u("to cancel")}])}async awaitSelection(){return this.open(),new Promise((t,n)=>{this.onChooseItem=i=>t(i),this.onClose=()=>window.setTimeout(()=>n("No Icon selected"),0)})}renderSuggestion(t,n){n.addClass("mod-complex"),n.createDiv({cls:"suggestion-content"}).createDiv({cls:"suggestion-title"}).setText(t.item.replace(/-/g," ").replace(/(^\w{1})|(\s+\w{1})/g,c=>c.toUpperCase()));let a=n.createDiv({cls:"suggestion-aux"});(0,We.setIcon)(a.createSpan({cls:"suggestion-flair"}),t.item)}getItems(){return wo}getItemText(t){return t}onChooseItem(t,n){}};var et=require("obsidian");var ko=require("obsidian");var Z=class extends ko.SuggestModal{constructor(t){super(app);this.defaultName=t;this.setPlaceholder(u("Use a custom name")),this.resultContainerEl.style.display="none",this.setInstructions([{command:"",purpose:u("Choose a custom Name for your new Command")},{command:"\u21B5",purpose:u("to save")},{command:"esc",purpose:u("to cancel")}])}onOpen(){var i;super.onOpen(),this.inputEl.value=this.defaultName;let t=createDiv({cls:"cmdr-name-input-wrapper"});(i=this.inputEl.parentNode)==null||i.insertBefore(t,this.inputEl),t.appendChild(this.inputEl),t.parentElement.style.display="block";let n=createEl("button",{text:u("Save"),cls:"mod-cta"});n.onclick=a=>this.selectSuggestion(this.inputEl.value,a),t.appendChild(n)}async awaitSelection(){return this.open(),new Promise((t,n)=>{this.onChooseSuggestion=i=>t(i),this.onClose=()=>window.setTimeout(()=>n("No Name selected"),0)})}getSuggestions(t){return[t]}renderSuggestion(t,n){}onChooseSuggestion(t,n){}};var Je,C,So,pi,Ce,Mo,Po,Ze={},Lo=[],fi=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ie(e,o){for(var t in o)e[t]=o[t];return e}function To(e){var o=e.parentNode;o&&o.removeChild(e)}function r(e,o,t){var n,i,a,c={};for(a in o)a=="key"?n=o[a]:a=="ref"?i=o[a]:c[a]=o[a];if(arguments.length>2&&(c.children=arguments.length>3?Je.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)c[a]===void 0&&(c[a]=e.defaultProps[a]);return Ue(e,c,n,i,null)}function Ue(e,o,t,n,i){var a={type:e,props:o,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++So:i};return i==null&&C.vnode!=null&&C.vnode(a),a}function S(e){return e.children}function G(e,o){this.props=e,this.context=o}function ye(e,o){if(o==null)return e.__?ye(e.__,e.__.__k.indexOf(e)+1):null;for(var t;o0?Ue(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=t,f.__b=t.__b+1,(_=L[s])===null||_&&f.key==_.key&&f.type===_.type)L[s]=void 0;else for(g=0;g=t.__.length&&t.__.push({__V:$e}),t.__[e]}function B(e){return Ge=1,Jo(jo,e)}function Jo(e,o,t){var n=Ke(ke++,2);if(n.t=e,!n.__c&&(n.__=[t?t(o):jo(void 0,o),function(a){var c=n.__N?n.__N[0]:n.__[0],d=n.t(c,a);c!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=F,!F.u)){F.u=!0;var i=F.shouldComponentUpdate;F.shouldComponentUpdate=function(a,c,d){if(!n.__c.__H)return!0;var m=n.__c.__H.__.filter(function(s){return s.__c});if(m.every(function(s){return!s.__N}))return!i||i.call(this,a,c,d);var h=!1;return m.forEach(function(s){if(s.__N){var g=s.__[0];s.__=s.__N,s.__N=void 0,g!==s.__[0]&&(h=!0)}}),!(!h&&n.__c.props===a)&&(!i||i.call(this,a,c,d))}}return n.__N||n.__}function O(e,o){var t=Ke(ke++,3);!C.__s&&Mt(t.__H,o)&&(t.__=e,t.i=o,F.__H.__h.push(t))}function kt(e,o){var t=Ke(ke++,4);!C.__s&&Mt(t.__H,o)&&(t.__=e,t.i=o,F.__h.push(t))}function K(e){return Ge=5,Qe(function(){return{current:e}},[])}function Qe(e,o){var t=Ke(ke++,7);return Mt(t.__H,o)?(t.__V=e(),t.i=o,t.__h=e,t.__V):t.__}function bi(){for(var e;e=Xo.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ye),e.__H.__h.forEach(wt),e.__H.__h=[]}catch(o){e.__H.__h=[],C.__e(o,e.__v)}}C.__b=function(e){F=null,Vo&&Vo(e)},C.__r=function(e){zo&&zo(e),ke=0;var o=(F=e.__c).__H;o&&(yt===F?(o.__h=[],F.__h=[],o.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=$e,t.__N=t.i=void 0})):(o.__h.forEach(Ye),o.__h.forEach(wt),o.__h=[])),yt=F},C.diffed=function(e){Wo&&Wo(e);var o=e.__c;o&&o.__H&&(o.__H.__h.length&&(Xo.push(o)!==1&&Oo===C.requestAnimationFrame||((Oo=C.requestAnimationFrame)||_i)(bi)),o.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==$e&&(t.__=t.__V),t.i=void 0,t.__V=$e})),yt=F=null},C.__c=function(e,o){o.some(function(t){try{t.__h.forEach(Ye),t.__h=t.__h.filter(function(n){return!n.__||wt(n)})}catch(n){o.some(function(i){i.__h&&(i.__h=[])}),o=[],C.__e(n,t.__v)}}),Uo&&Uo(e,o)},C.unmount=function(e){Zo&&Zo(e);var o,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{Ye(n)}catch(i){o=i}}),t.__H=void 0,o&&C.__e(o,t.__v))};var qo=typeof requestAnimationFrame=="function";function _i(e){var o,t=function(){clearTimeout(n),qo&&cancelAnimationFrame(o),setTimeout(e)},n=setTimeout(t,100);qo&&(o=requestAnimationFrame(t))}function Ye(e){var o=F,t=e.__c;typeof t=="function"&&(e.__c=void 0,t()),F=o}function wt(e){var o=F;e.__c=e.__(),F=o}function Mt(e,o){return!e||e.length!==o.length||o.some(function(t,n){return t!==e[n]})}function jo(e,o){return typeof o=="function"?o(e):o}var Et={};(function e(o,t,n,i){var a=!!(o.Worker&&o.Blob&&o.Promise&&o.OffscreenCanvas&&o.OffscreenCanvasRenderingContext2D&&o.HTMLCanvasElement&&o.HTMLCanvasElement.prototype.transferControlToOffscreen&&o.URL&&o.URL.createObjectURL);function c(){}function d(p){var l=t.exports.Promise,I=l!==void 0?l:o.Promise;return typeof I=="function"?new I(p):(p(c,c),null)}var m=function(){var p=Math.floor(16.666666666666668),l,I,M={},T=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(l=function(P){var E=Math.random();return M[E]=requestAnimationFrame(function x(D){T===D||T+p-1{(0,et.setIcon)(a.current,e)},[e,o]),r("div",Ve({ref:a},t))}function j(e){let{isMobile:o,appId:t}=app;return e==="any"||e===t||e==="mobile"&&o||e==="desktop"&&!o}function Me(e){var t,n;let o="";for(let i of(t=e.hide.leftRibbon)!=null?t:[])o+=`div.side-dock-ribbon-action[aria-label="${i}"] {display: none !important; content-visibility: hidden;}`;for(let i of e.hide.statusbar)o+=`div.status-bar-item.plugin-${i} {display: none !important; content-visibility: hidden;}`;(n=document.head.querySelector("style#cmdr"))==null||n.remove(),o&&document.head.appendChild(createEl("style",{attr:{id:"cmdr"},text:o,type:"text/css"}))}async function xt({target:e}){let o=activeDocument.createElement("canvas");activeDocument.body.appendChild(o),o.style.position="fixed",o.style.width="100vw",o.style.height="100vh",o.style.top="0px",o.style.left="0px",o.style["pointer-events"]="none",o.style["z-index"]="100";let t=$o.create(o,{resize:!0,useWorker:!0}),n=e.getBoundingClientRect();await t({particleCount:et.Platform.isDesktop?160:80,startVelocity:55,spread:75,angle:90,drift:-1,ticks:250,origin:{x:(n.x+n.width/2)/activeWindow.innerWidth,y:(n.y+n.height/2)/activeWindow.innerHeight}}),o.remove()}function tt(e){activeDocument.body.style.setProperty("--cmdr-spacing",`${e}px`)}function Ee(e){let o=Object.keys(app.commands.commands).filter(n=>n.startsWith("cmdr:macro-"));for(let n of o)app.commands.removeCommand(n);let t=e.settings.macros;for(let[n,i]of Object.entries(t))e.addCommand({id:`macro-${n}`,name:i.name,callback:()=>{e.executeMacro(parseInt(n))}})}function oe(e){var n,i;let{classList:o,style:t}=document.body;t.setProperty("--at-button-height",((n=e.rowHeight)!=null?n:48)+"px"),t.setProperty("--at-button-width",((i=e.buttonWidth)!=null?i:48)+"px"),t.setProperty("--at-row-count",e.rowCount.toString()),t.setProperty("--at-spacing",e.spacing+"px"),t.setProperty("--at-offset",e.heightOffset+"px"),o.toggle("AT-multirow",e.rowCount>1),o.toggle("AT-row",!e.columnLayout),o.toggle("AT-column",e.columnLayout),o.toggle("AT-no-toolbar",e.rowCount===0)}function Yo(){let{classList:e,style:o}=document.body;o.removeProperty("--at-button-height"),o.removeProperty("--at-button-width"),o.removeProperty("--at-row-count"),o.removeProperty("--at-spacing"),o.removeProperty("--at-offset"),e.remove("AT-multirow"),e.remove("AT-row"),e.remove("AT-column"),e.remove("AT-no-toolbar"),e.remove("advanced-toolbar")}function ot(e){e.mappedIcons.forEach(o=>{let t=app.commands.commands[o.commandID];t?t.icon=o.iconID:e.mappedIcons.remove(o)})}var In=require("obsidian");var xe=require("obsidian");var Ko=require("obsidian");function Go({modal:e}){return r(S,null,r("p",null,u("Are you sure you want to delete the Command?")),r("div",{className:"modal-button-container"},r("button",{className:"mod-warning",onClick:async()=>{e.plugin.settings.confirmDeletion=!1,e.plugin.saveSettings(),e.remove=!0,e.close()}},u("Remove and don't ask again")),r("button",{className:"mod-warning",onClick:()=>{e.remove=!0,e.close()}},u("Remove")),r("button",{onClick:()=>{e.remove=!1,e.close()}},u("Cancel"))))}var V=class extends Ko.Modal{constructor(t){super(app);this.plugin=t}async onOpen(){this.titleEl.innerText=u("Remove Command"),this.containerEl.style.zIndex="99",this.reactComponent=r(Go,{modal:this}),W(this.reactComponent,this.contentEl)}async didChooseRemove(){return this.open(),new Promise(t=>{this.onClose=()=>{var n;return t((n=this.remove)!=null?n:!1)}})}onClose(){W(null,this.contentEl)}};var X=class{constructor(o,t){this.plugin=o,this.pairs=t}};var ve=class extends X{constructor(t,n){super(t,n);this.actions=new Map;this.init(),this.plugin.register(()=>this.actions.forEach((i,a)=>this.removeAction(a)))}getFileExplorers(){return app.workspace.getLeavesOfType("file-explorer")}init(){app.workspace.onLayoutReady(()=>{for(let t of this.pairs)j(t.mode)&&(app.workspace.onLayoutReady(()=>{this.getFileExplorers().forEach(i=>{this.addAction(t,i)})}),this.plugin.registerEvent(app.workspace.on("layout-change",()=>{this.getFileExplorers().forEach(i=>{this.addAction(t,i)})})))})}reorder(){this.actions.forEach((t,n)=>this.removeAction(n,!0)),this.init()}async addCommand(t){this.pairs.push(t),app.workspace.onLayoutReady(()=>{this.getFileExplorers().forEach(i=>{this.addAction(t,i)})}),this.plugin.registerEvent(app.workspace.on("layout-change",()=>{this.getFileExplorers().forEach(i=>{this.addAction(t,i)})})),await this.plugin.saveSettings()}async removeCommand(t){this.pairs.remove(t),this.removeAction(t),await this.plugin.saveSettings()}buttonExists(t,n){return[...t.view.containerEl.querySelectorAll("div.nav-buttons-container > .cmdr.clickable-icon")].some(i=>i.getAttribute("data-cmdr")===n.icon+n.name)}addAction(t,n){var m,h,s,g,_;if(this.buttonExists(n,t))return;let i=createDiv({cls:"cmdr clickable-icon",attr:{"aria-label-position":"top","aria-label":t.name,"data-cmdr":t.icon+t.name}});this.actions.set(t,i),i.style.color=t.color==="#000000"||t.color===void 0?"inherit":t.color;let a=!1,c=()=>{i.empty(),(0,xe.setIcon)(i,t.icon),i.onclick=()=>app.commands.executeCommandById(t.id)},d=()=>{i.empty(),(0,xe.setIcon)(i,"trash"),i.onclick=async()=>{(!this.plugin.settings.confirmDeletion||await new V(this.plugin).didChooseRemove())&&this.removeCommand(t)}};i.addEventListener("mouseleave",()=>{c(),a=!1}),i.addEventListener("mousemove",f=>{f.preventDefault(),f.stopImmediatePropagation(),f.shiftKey&&(a||d(),a=!0)}),i.addEventListener("contextmenu",f=>{f.stopImmediatePropagation(),new xe.Menu().addItem(b=>{b.setTitle(u("Add command")).setIcon("command").onClick(async()=>{let y=await q(this.plugin);this.addCommand(y)})}).addSeparator().addItem(b=>{b.setTitle(u("Change Icon")).setIcon("box").onClick(async()=>{let y=await new R(this.plugin).awaitSelection();y&&y!==t.icon&&(t.icon=y,await this.plugin.saveSettings(),this.reorder())})}).addItem(b=>{b.setTitle(u("Rename")).setIcon("text-cursor-input").onClick(async()=>{let y=await new Z(t.name).awaitSelection();y&&y!==t.name&&(t.name=y,await this.plugin.saveSettings(),this.reorder())})}).addItem(b=>{b.dom.addClass("is-warning"),b.setTitle(u("Delete")).setIcon("lucide-trash").onClick(async()=>{(!this.plugin.settings.confirmDeletion||await new V(this.plugin).didChooseRemove())&&this.removeCommand(t)})}).showAtMouseEvent(f)}),c(),(_=(g=(s=(h=(m=n.view)==null?void 0:m.containerEl)==null?void 0:h.querySelector)==null?void 0:s.call(h,"div.nav-buttons-container"))==null?void 0:g.appendChild)==null||_.call(g,i)}removeAction(t,n=!1){let i=this.actions.get(t);if(!!i){if(n){i.remove(),this.actions.delete(t);return}i.addClass("cmdr-ribbon-removing"),i.addEventListener("transitionend",async()=>{i.remove(),this.actions.delete(t)})}}};var se=require("obsidian");var nt=class extends X{async addCommand(o){this.pairs.push(o),await this.plugin.saveSettings()}async removeCommand(o){this.pairs.remove(o),await this.plugin.saveSettings()}reorder(){}addRemovableCommand(o,t,n,i,a){return c=>{var f;c.dom.addClass("cmdr"),c.dom.style.color=t.color==="#000000"||t.color===void 0?"inherit":t.color,c.setSection("cmdr"),c.dom.style.display="flex";let d=createDiv({cls:"cmdr-menu-more-options"}),m=null;d.addEventListener("click",b=>{b.preventDefault(),b.stopImmediatePropagation(),m?(m.hide(),m=null):m=new se.Menu().addItem(y=>{y.setTitle(u("Change Icon")).setIcon("box").onClick(async()=>{let v=await new R(n).awaitSelection();v&&v!==t.icon&&(t.icon=v,await n.saveSettings())})}).addItem(y=>{y.setTitle(u("Rename")).setIcon("text-cursor-input").onClick(async()=>{let v=await new Z(t.name).awaitSelection();v&&v!==t.name&&(t.name=v,await n.saveSettings())})}).addItem(y=>{y.dom.addClass("is-warning"),y.setTitle(u("Delete")).setIcon("lucide-trash").onClick(async()=>{(!n.settings.confirmDeletion||await new V(n).didChooseRemove())&&_()})}).showAtMouseEvent(b)}),(0,se.setIcon)(d,"more-vertical"),c.dom.append(d),c.setTitle((f=t.name)!=null?f:o.name).setIcon(t.icon).onClick(()=>app.commands.executeCommandById(t.id));let h=!1,s=()=>{d.style.display="none"},g=()=>{d.style.display="block"},_=async()=>{c.dom.addClass("cmdr-removing"),i.registerDomEvent(c.dom,"transitionend",()=>{c.dom.remove()}),a.remove(t),await n.saveSettings()};i.registerDomEvent(c.dom,"mousemove",b=>{b.preventDefault(),b.stopImmediatePropagation(),h||g(),h=!0}),i.registerDomEvent(c.dom,"mouseleave",()=>{s(),h=!1}),s()}}addCommandAddButton(o,t,n){o.settings.showAddCommand&&t.addItem(i=>{i.setTitle(u("Add command")).setIcon("plus-circle").setSection("cmdr").onClick(async()=>{try{let a=await q(o);n.push(a),await o.saveSettings()}catch(a){console.log(a)}})})}},Ie=class extends nt{applyEditorMenuCommands(o){return async(t,n,i)=>{this.addCommandAddButton(o,t,o.settings.editorMenu);for(let a of o.settings.editorMenu){let c=Q(a.id);!c||!j(a.mode)||c.checkCallback&&!c.checkCallback(!0)||c.editorCheckCallback&&!c.editorCheckCallback(!0,n,i)||t.addItem(this.addRemovableCommand.call(this,c,a,o,t,o.settings.editorMenu))}}}},Se=class extends nt{applyFileMenuCommands(o){return async(t,n,i,a)=>{this.addCommandAddButton(o,t,o.settings.fileMenu);for(let c of o.settings.fileMenu){let d=Q(c.id);if(!!d&&!(d.checkCallback&&!d.checkCallback(!0))){if(d.editorCallback){if(!((a==null?void 0:a.view)instanceof se.MarkdownView))continue}else if(d.editorCheckCallback)if((a==null?void 0:a.view)instanceof se.MarkdownView){if(!d.editorCheckCallback(!0,a.view.editor,a.view))continue}else continue;t.addItem(this.addRemovableCommand.call(this,d,c,o,t,o.settings.fileMenu))}}}}};var ce=require("obsidian");var ge=class extends X{constructor(t,n){super(t,n);this.buttons=new WeakMap;this.init()}addPageHeaderButton(t,n){let{id:i,icon:a,name:c}=n,{view:d}=t;if(!(d instanceof ce.ItemView))return;let m=this.buttonsFor(t,!0);if(!m||m.has(i))return;let h=d.addAction(a,c,()=>{app.workspace.setActiveLeaf(t,{focus:!0}),app.commands.executeCommandById(i)});m.set(i,h),h.addClasses(["cmdr-page-header",i]),h.style.color=n.color==="#000000"||n.color===void 0?"inherit":n.color,h.addEventListener("contextmenu",s=>{s.stopImmediatePropagation(),new ce.Menu().addItem(g=>{g.setTitle(u("Add command")).setIcon("command").onClick(async()=>{let _=await q(this.plugin);this.addCommand(_)})}).addSeparator().addItem(g=>{g.setTitle(u("Change Icon")).setIcon("box").onClick(async()=>{let _=await new R(this.plugin).awaitSelection();_&&_!==n.icon&&(n.icon=_,await this.plugin.saveSettings(),this.reorder())})}).addItem(g=>{g.setTitle(u("Rename")).setIcon("text-cursor-input").onClick(async()=>{let _=await new Z(n.name).awaitSelection();_&&_!==n.name&&(n.name=_,await this.plugin.saveSettings(),this.reorder())})}).addItem(g=>{g.dom.addClass("is-warning"),g.setTitle(u("Delete")).setIcon("lucide-trash").onClick(async()=>{(!this.plugin.settings.confirmDeletion||await new V(this.plugin).didChooseRemove())&&this.removeCommand(n)})}).showAtMouseEvent(s)})}init(){this.plugin.register(()=>{this.removeButtonsFromAllLeaves()}),this.plugin.registerEvent(app.workspace.on("layout-change",()=>{this.addButtonsToAllLeaves()})),app.workspace.onLayoutReady(()=>setTimeout(()=>this.addButtonsToAllLeaves(),100))}addAdderButton(t){var c;let{view:n}=t,i="cmdr-adder";if(!(n instanceof ce.ItemView)||(c=this.buttons.get(n))!=null&&c.has(i))return;let a=n.addAction("plus",u("Add new"),async()=>{this.addCommand(await q(this.plugin))});a.addClasses(["cmdr",i]),this.buttons.has(n)||this.buttons.set(n,new Map),this.buttons.get(n).set(i,a)}addButtonsToAllLeaves(t=!1){activeWindow.requestAnimationFrame(()=>app.workspace.iterateAllLeaves(n=>this.addButtonsToLeaf(n,t)))}removeButtonsFromAllLeaves(){activeWindow.requestAnimationFrame(()=>app.workspace.iterateAllLeaves(t=>this.removeButtonsFromLeaf(t)))}buttonsFor(t,n=!1){if(t.view instanceof ce.ItemView)return n&&!this.buttons.has(t.view)&&this.buttons.set(t.view,new Map),this.buttons.get(t.view)}addButtonsToLeaf(t,n=!1){var i;if(t.view instanceof ce.ItemView){if(n)this.removeButtonsFromLeaf(t);else if((i=this.buttonsFor(t))!=null&&i.size)return;for(let a=this.pairs.length-1;a>=0;a--){let c=this.pairs[a];j(c.mode)&&this.addPageHeaderButton(t,c)}this.plugin.settings.showAddCommand&&this.addAdderButton(t)}}removeButtonsFromLeaf(t){let n=this.buttonsFor(t);if(n){for(let i of n.values())i.detach();n==null||n.clear()}}reorder(){this.addButtonsToAllLeaves(!0)}async addCommand(t){this.pairs.push(t),this.addButtonsToAllLeaves(!0),await this.plugin.saveSettings()}async removeCommand(t){this.pairs.remove(t),this.addButtonsToAllLeaves(!0),await this.plugin.saveSettings()}};var le=require("obsidian");var be=class extends X{constructor(t,n){super(t,n);this.actions=new Map;this.addBtn=createDiv({cls:"cmdr status-bar-item cmdr-adder",attr:{"aria-label-position":"top","aria-label":u("Add new")}});this.init(),this.plugin.register(()=>this.actions.forEach((i,a)=>this.removeAction(a)))}init(){app.workspace.onLayoutReady(()=>{this.container=app.statusBar.containerEl;for(let t of this.pairs)Q(t.id)||this.pairs.remove(t),j(t.mode)&&this.addAction(t);this.plugin.saveSettings(),this.plugin.registerDomEvent(this.container,"contextmenu",t=>{t.target===this.container&&new le.Menu().addItem(n=>{n.setTitle(u("Add command")).setIcon("command").onClick(async()=>{let i=await q(this.plugin);this.addCommand(i)})}).showAtMouseEvent(t)}),this.plugin.register(()=>this.addBtn.remove()),(0,le.setIcon)(this.addBtn,"plus"),this.addBtn.onclick=async()=>{let t=await q(this.plugin);this.addCommand(t),this.reorder()},this.plugin.settings.showAddCommand&&this.container.prepend(this.addBtn)})}reorder(){this.addBtn.remove(),this.actions.forEach((t,n)=>this.removeAction(n,!0)),this.init()}async addCommand(t){this.pairs.push(t),this.addAction(t),await this.plugin.saveSettings()}async removeCommand(t){this.pairs.remove(t),this.removeAction(t),await this.plugin.saveSettings()}addAction(t){let n=createDiv({cls:"cmdr status-bar-item clickable-icon",attr:{"aria-label-position":"top","aria-label":t.name}});this.actions.set(t,n),n.style.color=t.color==="#000000"||t.color===void 0?"inherit":t.color;let i=!1,a=()=>{n.empty(),(0,le.setIcon)(n,t.icon),n.onclick=()=>app.commands.executeCommandById(t.id)},c=()=>{n.empty(),(0,le.setIcon)(n,"trash"),n.onclick=async()=>{(!this.plugin.settings.confirmDeletion||await new V(this.plugin).didChooseRemove())&&this.removeCommand(t)}};n.addEventListener("mouseleave",()=>{a(),i=!1}),n.addEventListener("mousemove",d=>{d.preventDefault(),d.stopImmediatePropagation(),d.shiftKey&&(i||c(),i=!0)}),n.addEventListener("contextmenu",d=>{d.stopImmediatePropagation(),new le.Menu().addItem(m=>{m.setTitle(u("Add command")).setIcon("command").onClick(async()=>{let h=await q(this.plugin);this.addCommand(h)})}).addSeparator().addItem(m=>{m.setTitle(u("Change Icon")).setIcon("box").onClick(async()=>{let h=await new R(this.plugin).awaitSelection();h&&h!==t.icon&&(t.icon=h,await this.plugin.saveSettings(),this.reorder())})}).addItem(m=>{m.setTitle(u("Rename")).setIcon("text-cursor-input").onClick(async()=>{let h=await new Z(t.name).awaitSelection();h&&h!==t.name&&(t.name=h,await this.plugin.saveSettings(),this.reorder())})}).addItem(m=>{m.dom.addClass("is-warning"),m.setTitle(u("Delete")).setIcon("lucide-trash").onClick(async()=>{(!this.plugin.settings.confirmDeletion||await new V(this.plugin).didChooseRemove())&&this.removeCommand(t)})}).showAtMouseEvent(d)}),a(),this.container.prepend(n)}removeAction(t,n=!1){let i=this.actions.get(t);if(!!i){if(n){i.remove(),this.actions.delete(t);return}i.addClass("cmdr-ribbon-removing"),i.addEventListener("transitionend",async()=>{i.remove(),this.actions.delete(t)})}}};var Qo=require("obsidian");var ct=require("obsidian");var J=require("obsidian");var Lt=require("obsidian");var en=["https://github.com/jsmorabito","https://github.com/phibr0","https://www.youtube.com/watch?v=dQw4w9WgXcQ"];function It(){let[e,o]=B(0);return r("div",{className:"cmdr-credits"},r("span",{onClick:()=>{o(t=>t+1),location.replace(en[e%en.length])}},u("By Johnny\u2728 and phibr0")))}function yi(e,o){for(var t in o)e[t]=o[t];return e}function Pt(e,o){for(var t in e)if(t!=="__source"&&!(t in o))return!0;for(var n in o)if(n!=="__source"&&e[n]!==o[n])return!0;return!1}function tn(e){this.props=e}function dn(e,o){function t(i){var a=this.props.ref,c=a==i.ref;return!c&&a&&(a.call?a(null):a.current=null),o?!o(this.props,i)||!c:Pt(this.props,i)}function n(i){return this.shouldComponentUpdate=t,r(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(tn.prototype=new G).isPureReactComponent=!0,tn.prototype.shouldComponentUpdate=function(e,o){return Pt(this.props,e)||Pt(this.state,o)};var on=C.__b;C.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),on&&on(e)};var xs=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var wi=C.__e;C.__e=function(e,o,t,n){if(e.then){for(var i,a=o;a=a.__;)if((i=a.__c)&&i.__c)return o.__e==null&&(o.__e=t.__e,o.__k=t.__k),i.__c(e,o)}wi(e,o,t,n)};var nn=C.unmount;function mn(e,o,t){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=yi({},e)).__c!=null&&(e.__c.__P===t&&(e.__c.__P=o),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return mn(n,o,t)})),e}function un(e,o,t){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return un(n,o,t)}),e.__c&&e.__c.__P===o&&(e.__e&&t.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=t)),e}function St(){this.__u=0,this.t=null,this.__b=null}function pn(e){var o=e.__.__c;return o&&o.__a&&o.__a(e)}function it(){this.u=null,this.o=null}C.unmount=function(e){var o=e.__c;o&&o.__R&&o.__R(),o&&e.__h===!0&&(e.type=null),nn&&nn(e)},(St.prototype=new G).__c=function(e,o){var t=o.__c,n=this;n.t==null&&(n.t=[]),n.t.push(t);var i=pn(n.__v),a=!1,c=function(){a||(a=!0,t.__R=null,i?i(d):d())};t.__R=c;var d=function(){if(!--n.__u){if(n.state.__a){var h=n.state.__a;n.__v.__k[0]=un(h,h.__c.__P,h.__c.__O)}var s;for(n.setState({__a:n.__b=null});s=n.t.pop();)s.forceUpdate()}},m=o.__h===!0;n.__u++||m||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(c,c)},St.prototype.componentWillUnmount=function(){this.t=[]},St.prototype.render=function(e,o){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=mn(this.__b,t,n.__O=n.__P)}this.__b=null}var i=o.__a&&r(S,null,e.fallback);return i&&(i.__h=null),[r(S,null,o.__a?null:e.children),i]};var an=function(e,o,t){if(++t[1]===t[0]&&e.o.delete(o),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]{xt(n),setTimeout(()=>location.replace("https://forms.gle/hPjn61G9bqqFb3256"),Math.random()*800+500)}},r(k,{icon:"message-square",size:20}),u("Leave feedback")),t=r("button",{className:"mod-cta",onClick:n=>{xt(n),setTimeout(()=>location.replace("https://ko-fi.com/phibr0"),Math.random()*800+500)}},r(k,{icon:"coffee",size:20}),u("Support development"));return r("div",{className:"cmdr-about"},Lt.Platform.isMobile&&[r("hr",null),o,t],Lt.Platform.isDesktop&&[r("div",{className:"setting-item mod-toggle",style:{width:"100%",borderTop:"1px solid var(--background-modifier-border)",paddingTop:"18px"}},r("div",{className:"setting-item-info"},r("div",{className:"setting-item-name"},u("Leave feedback")),r("div",{className:"setting-item-description"},u("Share feedback, issues, and ideas with our feedback form."))),r("div",{className:"setting-item-control"},o)),r("div",{className:"setting-item mod-toggle",style:{width:"100%"}},r("div",{className:"setting-item-info"},r("div",{className:"setting-item-name"},u("Donate")),r("div",{className:"setting-item-description"},u("Consider donating to support development."))),r("div",{className:"setting-item-control"},t)),r("hr",null)],r(_e,null),r("b",null,e.name),r(It,null),r("a",{className:"cmdr-version",href:"https://github.com/phibr0/obsidian-commander/releases/tag/"+e.version},e.version))}var z=require("obsidian");function Nt(e,o){if(e.empty(),new z.Setting(e).setName("Toolbar Row Count").setDesc("Set how many Rows the Mobile Toolbar should have. Set this to 0 to remove the Toolbar.").addSlider(n=>n.setLimits(0,5,1).setValue(o.settings.advancedToolbar.rowCount).setDynamicTooltip().onChange(async i=>{o.settings.advancedToolbar.rowCount=i,await o.saveSettings(),oe(o.settings.advancedToolbar)})),new z.Setting(e).setName("Column Layout").setDesc("Use a column based layout instead of the default row. This makes it easier to arrange the Commands.").addToggle(n=>n.setValue(o.settings.advancedToolbar.columnLayout).onChange(async i=>{o.settings.advancedToolbar.columnLayout=i,await o.saveSettings(),oe(o.settings.advancedToolbar)})),new z.Setting(e).setName("Bottom Offset").setDesc("Offset the Toolbar from the Bottom of the Screen. This is useful if the toolbar is partially obscured by other UI Elements.").addSlider(n=>n.setLimits(0,32,1).setValue(o.settings.advancedToolbar.heightOffset).setDynamicTooltip().onChange(async i=>{o.settings.advancedToolbar.heightOffset=i,await o.saveSettings(),oe(o.settings.advancedToolbar)})),z.Platform.isMobile){let n=document.createDocumentFragment();n.appendChild(createEl("h3",{text:"Custom Icons"})),e.appendChild(n),o.getCommandsWithoutIcons().forEach(i=>{new z.Setting(e).setName(i.name).setDesc(`ID: ${i.id}`).addButton(a=>{var d;let c=a.buttonEl.createDiv({cls:"AT-settings-icon"});if(i.icon)(0,z.setIcon)(c,i.icon);else{let m=(d=o.settings.advancedToolbar.mappedIcons.find(h=>h.commandID===i.id))==null?void 0:d.iconID;m?(0,z.setIcon)(c,m):a.setButtonText("No Icon")}a.onClick(async()=>{let m=await new R(o).awaitSelection(),h=o.settings.advancedToolbar.mappedIcons.find(s=>s.commandID===i.id);h?h.iconID=m:o.settings.advancedToolbar.mappedIcons.push({commandID:i.id,iconID:m}),await o.saveSettings(),ot(o.settings.advancedToolbar),Nt(e,o)})}).addExtraButton(a=>{a.setIcon("reset").setTooltip("Reset to default - Requires a restart").onClick(async()=>{o.settings.advancedToolbar.mappedIcons=o.settings.advancedToolbar.mappedIcons.filter(c=>c.commandID!==i.id),delete i.icon,delete app.commands.commands[i.id].icon,await o.saveSettings(),Nt(e,o),new z.Notice("If the default Icon doesn't appear, you might have to restart Obsidian.")})})})}let t=e.appendChild(createEl("div",{cls:"cmdr-sep-con",attr:{style:"margin-top: 64px"}}));t.appendChild(createEl("div",{text:"Advanced Settings",attr:{style:"margin-bottom: 8px; font-weight: bold"}})),new z.Setting(t).setName("Button Height").setDesc("Change the Height of each Button inside the Mobile Toolbar (in px).").addText(n=>{var i,a;return n.setValue((a=(i=o.settings.advancedToolbar.rowHeight)==null?void 0:i.toString())!=null?a:"48").setPlaceholder("48").onChange(async c=>{let d=Number(c),m=isNaN(d);n.inputEl.toggleClass("is-invalid",m),m||(o.settings.advancedToolbar.rowHeight=d,await o.saveSettings(),oe(o.settings.advancedToolbar))})}),new z.Setting(t).setName("Button Width").setDesc("Change the Width of each Button inside the Mobile Toolbar (in px).").addText(n=>{var i,a;return n.setValue((a=(i=o.settings.advancedToolbar.buttonWidth)==null?void 0:i.toString())!=null?a:"48").setPlaceholder("48").onChange(async c=>{let d=Number(c),m=isNaN(d);n.inputEl.toggleClass("is-invalid",m),m||(o.settings.advancedToolbar.buttonWidth=d,await o.saveSettings(),oe(o.settings.advancedToolbar))})}),new z.Setting(t).setName("Toolbar Extra Spacing").setDesc("Some Themes need extra spacing in the toolbar. If your Toolbar doesn't wrap properly, try increasing this value.").addSlider(n=>n.setLimits(0,64,1).setValue(o.settings.advancedToolbar.spacing).setDynamicTooltip().onChange(async i=>{o.settings.advancedToolbar.spacing=i,await o.saveSettings(),oe(o.settings.advancedToolbar)}))}function At({plugin:e}){let o=K(null);return O(()=>(o.current&&Nt(o.current,e),()=>o.current&&o.current.empty()),[]),r(S,null,r("div",{className:"cmdr-sep-con callout","data-callout":"info"},r("span",{className:"cmdr-callout-warning"},r(k,{icon:"alert-circle"})," ","Info"),r("p",{className:"cmdr-warning-description"},"The Toolbar is only available in Obsidian Mobile. ",z.Platform.isMobile&&r(S,null,"To configure which Commands show up in the Toolbar, open the Mobile Settings.")),z.Platform.isMobile&&r("button",{onClick:()=>{app.setting.openTabById("mobile")},className:"mod-cta"},"Open Mobile Settings")),r("div",{ref:o,style:{paddingBottom:"128px"}}))}var me=require("obsidian");var _n=require("obsidian");var bn=require("obsidian");var at=({initialColor:e,onChange:o})=>{let t=K(null);return O(()=>(t.current&&new bn.ColorComponent(t.current).setValue(e).onChange(o),()=>{var n,i;return(i=(n=t.current)==null?void 0:n.empty)==null?void 0:i.call(n)}),[o,e]),r("div",{ref:t,className:"cmdr-flex cmdr-items-center"})};function Bt({modal:e}){var o;return O(()=>{let t=()=>{this.forceUpdate()};return addEventListener("cmdr-icon-changed",t),()=>removeEventListener("cmdr-icon-changed",t)},[]),r("div",{className:"cmdr-mobile-modify-grid"},r("div",{className:"cmdr-mobile-modify-option",onClick:e.handleNewIcon},r("span",null,u("Icon")),r("span",{className:"cmdr-flex cmdr-gap-1"},r(k,{icon:e.pair.icon,size:20,className:"clickable-icon",style:{marginRight:"0px"}}),r(at,{initialColor:(o=e.pair.color)!=null?o:"#000",onChange:e.handleColorChange}))),r("div",{className:"cmdr-mobile-modify-option"},r("span",null,u("Name")),r("input",{onBlur:({currentTarget:t})=>e.handleRename(t.value),type:"text",placeholder:u("Custom Name"),value:e.pair.name})),r("div",{className:"cmdr-mobile-modify-option"},r("select",{className:"dropdown",value:e.pair.mode,onChange:({currentTarget:t})=>e.handleModeChange(t.value)},r("option",{value:"any"},u("Add command to all devices")),r("option",{value:"mobile"},u("Add command only to mobile devices")),r("option",{value:"desktop"},u("Add command only to desktop devices")),r("option",{value:app.appId},u("Add command only to this device")))),r("div",{className:"modal-button-container"},r("button",{className:"mod-cta",onClick:()=>e.close()},u("Done"))))}var de=class extends _n.Modal{constructor(t,n,i,a,c){super(app);this.pair=t;this.handleRename=n;this.handleNewIcon=i;this.handleModeChange=a;this.handleColorChange=c}async onOpen(){this.titleEl.innerText=this.pair.name,this.reactComponent=r(Bt,{modal:this}),W(this.reactComponent,this.contentEl)}onClose(){W(null,this.contentEl)}};function Pe({value:e,handleChange:o,ariaLabel:t}){let[n,i]=B(!1),a=K(null),[c,d]=B(0);return O(()=>{var m,h;(m=a==null?void 0:a.current)==null||m.select(),(h=a==null?void 0:a.current)==null||h.focus()}),r("div",{class:"cmdr-editable"},n?r("input",{type:"text",value:e,style:{width:c+25+"px"},onKeyDown:m=>{m.key==="Enter"&&m.target.value.length>0&&(i(!1),o(m))},onBlur:()=>i(!1),ref:a}):r("span",{onDblClick:({target:m})=>{d(m==null?void 0:m.offsetWidth),i(!0)},"aria-label":t},e))}function Dt({pair:e,handleRemove:o,handleDown:t,handleUp:n,handleNewIcon:i,handleRename:a,handleModeChange:c,handleColorChange:d,sortable:m=!0}){var v;let h=Q(e.id);if(!h)return r(S,null,me.Platform.isDesktop&&r("div",{className:"setting-item mod-toggle"},r(k,{icon:"alert-triangle",size:20,className:"cmdr-icon clickable-icon mod-warning"}),r("div",{className:"setting-item-info"},r("div",{className:"setting-item-name"},e.name),r("div",{className:"setting-item-description"},u("This Command is not available on this device."))),r("div",{className:"setting-item-control"},r("button",{className:"mod-warning",style:"display: flex",onClick:o,"aria-label":u("Delete")},r(k,{icon:"lucide-trash"})))),me.Platform.isMobile&&r("div",{className:"mobile-option-setting-item",onClick:()=>{new me.Notice(u("This Command is not available on this device."))}},r("span",{className:"mobile-option-setting-item-remove-icon",onClick:o},r(k,{icon:"minus-with-circle",size:22,style:{color:"var(--text-error)"}})),r("span",{className:"mobile-option-setting-item-option-icon mod-warning"},r(k,{icon:"alert-triangle",size:22})),r("span",{className:"mobile-option-setting-item-name"},e.name)));let s=h.id.split(":").first(),g=app.plugins.manifests[s],_=!g,f=h.hasOwnProperty("checkCallback")||h.hasOwnProperty("editorCheckCallback"),b=Hi(e.mode),y=e.mode.match(/desktop|mobile|any/)?e.mode[0].toUpperCase()+e.mode.substring(1):u("This device");return r(S,null,me.Platform.isDesktop&&r("div",{className:"setting-item mod-toggle"},r(k,{icon:e.icon,size:20,"aria-label":u("Choose new"),onClick:i,className:"cmdr-icon clickable-icon"}),r("div",{className:"setting-item-info"},r("div",{className:"setting-item-name"},r(Pe,{ariaLabel:u("Double click to rename"),handleChange:({target:L})=>{a(L==null?void 0:L.value)},value:e.name}),e.name!==h.name&&r("span",{style:"margin-left: .8ex"},"(",h.name,")")),r("div",{className:"setting-item-description"},u("Added by {{plugin_name}}.".replace("{{plugin_name}}",_?"Obsidian":g.name))," ",f?u("Warning: This is a checked Command, meaning it might not run under every circumstance."):"")),r("div",{className:"setting-item-control"},r(at,{initialColor:(v=e.color)!=null?v:"#000",onChange:d}),m&&r(S,null,r(k,{icon:"arrow-down",className:"setting-editor-extra-setting-button clickable-icon",onClick:t,"aria-label":u("Move down")}),r(k,{icon:"arrow-up",className:"setting-editor-extra-setting-button clickable-icon",onClick:n,"aria-label":u("Move up")})),r(k,{icon:b,className:"setting-editor-extra-setting-button clickable-icon",onClick:()=>c(),"aria-label":u("Change Mode (Currently: {{current_mode}})").replace("{{current_mode}}",y)}),r("button",{className:"mod-warning",style:"display: flex",onClick:o,"aria-label":u("Delete")},r(k,{icon:"lucide-trash"})))),me.Platform.isMobile&&r("div",{className:"mobile-option-setting-item"},r("span",{className:"mobile-option-setting-item-remove-icon",onClick:o},r(k,{icon:"minus-with-circle",size:22,style:{color:"var(--text-error)"}})),r("span",{className:"mobile-option-setting-item-option-icon"},r(k,{icon:e.icon,size:22,onClick:()=>{new de(e,a,i,c,d).open()}})),r("span",{className:"mobile-option-setting-item-name",onClick:()=>{new de(e,a,i,c,d).open()}},e.name,e.name!==h.name&&r("span",{className:"cmdr-option-setting-name"},"(",h.name,")")),r("span",{className:"mobile-option-setting-item-option-icon"},m&&r(S,null,r(k,{icon:"arrow-down",className:"clickable-icon",onClick:t}),r(k,{icon:"arrow-up",className:"clickable-icon",onClick:n})),r(k,{icon:"three-horizontal-bars",className:"clickable-icon",onClick:()=>{new de(e,a,i,c,d).open()}}))))}function Hi(e){return e==="mobile"?"smartphone":e==="desktop"?"monitor":e==="any"?"cmdr-all-devices":"airplay"}function Ht(e,o,t){let n=o<0?e.length+o:o;if(n>=0&&n{if(i.mode.match(/desktop|mobile|any/)||i.mode===app.appId)return r(Dt,{sortable:n,key:i.id,pair:i,handleRemove:async()=>{(!o.settings.confirmDeletion||await new V(o).didChooseRemove())&&(await e.removeCommand(i),this.forceUpdate())},handleUp:()=>{Ht(e.pairs,a,a-1),e.reorder(),this.forceUpdate()},handleDown:()=>{Ht(e.pairs,a,a+1),e.reorder(),this.forceUpdate()},handleRename:async c=>{i.name=c,await o.saveSettings(),e.reorder(),this.forceUpdate()},handleNewIcon:async()=>{let c=await new R(o).awaitSelection();c&&c!==i.icon&&(i.icon=c,await o.saveSettings(),e.reorder(),this.forceUpdate()),dispatchEvent(new Event("cmdr-icon-changed"))},handleModeChange:async c=>{let d=["any","desktop","mobile",app.appId],m=d.indexOf(i.mode);m===3&&(m=-1),i.mode=c||d[m+1],await o.saveSettings(),e.reorder(),this.forceUpdate()},handleColorChange:async c=>{i.color=c,await o.saveSettings(),e.reorder()}})})),!e.pairs.some(i=>j(i.mode)||i.mode.match(/mobile|desktop/))&&r("div",{class:"cmdr-commands-empty"},r(_e,null),r("h3",null,u("No commands here!")),r("span",null,u("Would you like to add one now?"))),Cn.Platform.isMobile&&r("hr",null),r("div",{className:"cmdr-add-new-wrapper"},r("button",{className:"mod-cta",onClick:async()=>{let i=await q(o);await e.addCommand(i),e.reorder(),this.forceUpdate()}},u("Add command")))),t)}function rt({title:e,children:o}){let[t,n]=B(!1);return r("div",{className:"cmdr-accordion cmdr-sep-con","aria-expanded":t},r("div",{className:"cmdr-accordion-header cmdr-mb-1",onClick:()=>{n(!t)}},r(k,{className:"cmdr-accordion-chevron clickable-icon",icon:"chevron-down",size:24}),r("span",null,e)),r("div",{className:"cmdr-accordion-content",style:{maxHeight:[o].flat().length*120+"px"}},o))}function Rt({name:e,description:o,children:t,className:n}){return r("div",{className:`setting-item ${n}`},r("div",{className:"setting-item-info"},r("div",{className:"setting-item-name"},e),r("div",{className:"setting-item-description"},o)),r("div",{className:"setting-item-control"},t))}function Ft(e){let[o,t]=B(e.value);return r(Rt,{name:e.name,description:e.description,className:"mod-toggle"},r("div",{className:`checkbox-container ${o?"is-enabled":""}`,onClick:()=>{t(!o),e.changeHandler(o)}}))}function Ot({name:e,description:o,changeHandler:t,value:n,hideLabel:i,showLabel:a}){let[c,d]=B(n);return r(Rt,{name:e,description:o,className:"mod-toggle"},r(k,{"aria-label":c?a:i,icon:c?"eye-off":"eye",size:20,className:"clickable-icon",onClick:()=>{d(!c),t(c)}}))}function st(e){var n,i,a;let[o,t]=B(e.value);return r(Rt,{description:e.description,name:e.name,className:"cmdr-slider"},r("div",null,r(Pe,{ariaLabel:u("Double click to enter custom value"),value:o.toString(),handleChange:({target:c})=>{let d=Number(c.value);!isNaN(d)&&o!==d&&(t(d),e.changeHandler(d))}}),r("input",{class:"slider",type:"range",min:(n=e.min)!=null?n:"0",max:(i=e.max)!=null?i:"32",step:(a=e.step)!=null?a:"1",value:o,onPointerMove:({target:c})=>{o!==c.value&&(t(c.value),e.changeHandler(c.value))}})))}function yn({plugin:e}){let[o,t]=B([]),n=e.settings.hide.leftRibbon;return O(()=>{t(app.workspace.leftRibbon.items.map(i=>({name:i.title,icon:i.icon})))},[]),r(S,null,r("hr",null),r(rt,{title:u("Hide other Commands")},o.map(i=>r(Ot,{name:i.name,description:"",hideLabel:u("Hide"),showLabel:u("Show"),changeHandler:async a=>{a?n.contains(i.name)&&n.remove(i.name):n.push(i.name),Me(e.settings),await e.saveSettings()},value:n.contains(i.name)}))))}function wn({plugin:e}){let o=e.settings.hide.statusbar,[t,n]=B([]);return O(()=>{let a=[...app.statusBar.containerEl.getElementsByClassName("status-bar-item")].map(c=>[...c.classList].find(d=>d.startsWith("plugin-"))).filter(c=>c).map(c=>c.substring(7));n(a.map(c=>app.plugins.manifests[c]||{id:c,name:c.replace(/-/g," ").replace(/(^\w{1})|(\s+\w{1})/g,d=>d.toUpperCase()),description:"Core Plugin"}))},[]),r(S,null,r("hr",null),r(rt,{title:u("Hide other Commands")},t.map(i=>r(Ot,{name:i.name,description:i.description,value:o.contains(i.id),hideLabel:u("Hide"),showLabel:u("Show"),changeHandler:async a=>{a?o.contains(i.id)&&o.remove(i.id):o.push(i.id),Me(e.settings),await e.saveSettings()}}))))}var En=require("obsidian");var Mn=require("obsidian");function kn({plugin:e,macro:o,onSave:t,onCancel:n}){let[i,a]=B(o.name||"Macro Name"),[c,d]=B(o.icon||"star"),[m,h]=B(o.startup||!1),[s,g]=B(JSON.parse(JSON.stringify(o.macro))||[]),_=this.forceUpdate.bind(this),f=async()=>{let y=await new ne(e).awaitSelection();y&&g([...s,{action:0,commandId:y.id}])},b=async()=>{g([...s,{action:1,delay:250}])};return r("div",null,r("div",{class:"setting-item cmdr-mm-item"},r("div",null,r("span",null,"Name"),r("input",{type:"text",placeholder:"Macro Name",value:i,onChange:y=>a(y.currentTarget.value),width:"100%"})),r("div",null,r("span",null,"Icon"),r("button",{onClick:async()=>d(await new R(e).awaitSelection())},r(k,{icon:c})))),s.map((y,v)=>{switch(y.action){case 0:let L=Q(y.commandId);return r("div",{class:"setting-item cmdr-mm-item"},r("div",null,r("button",{onClick:async()=>{let w=await new ne(e).awaitSelection();g(s.map((H,ee)=>ee===v?Yt(Ve({},H),{commandId:w.id}):H))}},(L==null?void 0:L.name)||"Cannot find Command")),r("div",null,r("div",{class:"cmdr-mm-action-options"},r(k,{class:"clickable-icon",icon:"arrow-down",onClick:()=>{if(v===s.length-1)return;let w=[...s],H=w[v];w[v]=w[v+1],w[v+1]=H,g(w)}}),r(k,{class:"clickable-icon",icon:"arrow-up",onClick:()=>{if(v===0)return;let w=[...s],H=w[v];w[v]=w[v-1],w[v-1]=H,g(w)}}),r(k,{class:"clickable-icon",icon:"cross",onClick:()=>{g(s.filter((w,H)=>H!==v))}}))));case 1:return r("div",{class:"setting-item cmdr-mm-item"},r("div",null,r(st,{name:"Delay",min:0,max:1e4,step:50,description:"Delay in milliseconds",value:y.delay,changeHandler:w=>y.delay=w})),r("div",null,r("div",{class:"cmdr-mm-action-options"},r(k,{class:"clickable-icon",icon:"arrow-down",onClick:()=>{if(v===s.length-1)return;let w=[...s],H=w[v];w[v]=w[v+1],w[v+1]=H,g(w)}}),r(k,{class:"clickable-icon",icon:"arrow-up",onClick:()=>{if(v===0)return;let w=[...s],H=w[v];w[v]=w[v-1],w[v-1]=H,g(w)}}),r(k,{class:"clickable-icon",icon:"cross",onClick:()=>{g(s.filter((w,H)=>H!==v))}}))));case 2:return r("div",null,"Editor: ",y.action);case 3:return r("div",null,"Loop: ",y.times)}}),r("div",{className:"setting-item cmdr-mm-actions cmdr-justify-between"},r("div",{className:"cmdr-flex cmdr-items-center cmdr-justify-self-start"},r("input",{type:"checkbox",id:"checkbox",checked:m,onChange:({target:y})=>{var v;h((v=y==null?void 0:y.checked)!=null?v:!1)}}),r("label",{htmlFor:"checkbox"},"Auto-Run on Startup")),r("div",null,r("button",{onClick:f},"Add Command"),r("button",{onClick:b},"Add Delay"))),r("div",{className:"cmdr-mm-control"},r("button",{class:s.length===0?"disabled":"mod-cta",disabled:s.length===0,onClick:()=>s.length&&t({macro:s,name:i,icon:c,startup:m})},"Save"),r("button",{onClick:n},"Cancel")))}var Le=class extends Mn.Modal{constructor(t,n,i){super(app);this.macro=n,this.plugin=t,this.onSave=i}onOpen(){this.titleEl.setText("Macro Builder"),W(r(kn,{plugin:this.plugin,macro:this.macro,onSave:this.onSave,onCancel:this.close.bind(this)}),this.contentEl)}onClose(){W(null,this.contentEl)}};function Vt({plugin:e,macros:o}){let t=(i,a)=>{let c=m=>{o.splice(a!==void 0?a:o.length,a!==void 0?1:0,m),e.saveSettings(),this.forceUpdate(),Ee(e),d.close()},d=new Le(e,i,c);d.open()},n=i=>{o.splice(i,1),e.saveSettings(),this.forceUpdate(),Ee(e)};return r(S,null,r("div",{className:"cmdr-sep-con"},o.map((i,a)=>r("div",{class:"setting-item mod-toggle"},r("div",{className:"setting-item-info"},r("div",{className:"setting-item-name"},i.name),r("div",{className:"setting-item-description"},i.macro.length," Actions")),r("div",{className:"setting-item-control"},r("button",{"aria-label":"Edit Macro",onClick:()=>t(i,a)},r(k,{icon:"lucide-pencil"})),r("button",{"aria-label":"Delete",class:"mod-warning",onClick:async()=>{(!e.settings.confirmDeletion||await new V(e).didChooseRemove())&&n(a)}},r(k,{icon:"trash"})))))),!o.length&&r("div",{class:"cmdr-commands-empty"},r(_e,null),r("h3",null,"No Macros yet!"),r("span",null,u("Would you like to add one now?"))),En.Platform.isMobile&&r("hr",null),r("div",{className:"cmdr-add-new-wrapper"},r("button",{class:"mod-cta",onClick:()=>t({name:"",macro:[],icon:"star"})},"Add Macro")))}function Te({plugin:e,mobileMode:o}){let[t,n]=B(0),[i,a]=B(!0),c=({key:m,shiftKey:h})=>{h&&m==="Tab"?t>0?n((t-1)%d.length):n(d.length-1):m==="Tab"&&n((t+1)%d.length)};O(()=>(addEventListener("keydown",c),()=>removeEventListener("keydown",c)),[t]),J.Platform.isMobile&&O(()=>{let m=document.querySelector(".modal-setting-back-button"),h=m.cloneNode(!0);m.parentNode.replaceChild(h,m),a(!0)},[]),O(()=>{let m=document.querySelector(".modal-setting-back-button");!m||(i?(m.parentElement.lastChild.textContent="Commander",m.onclick=()=>app.setting.closeActiveTab()):(m.parentElement.lastChild.textContent=d[t].name,m.onclick=()=>a(!0)))},[i]);let d=Qe(()=>[{name:u("General"),tab:r(S,null,r(Ft,{name:u("Always ask before removing?"),description:u("Always show a Popup to confirm deletion of a Command."),value:e.settings.confirmDeletion,changeHandler:async m=>{e.settings.confirmDeletion=!m,await e.saveSettings()}}),r(Ft,{value:e.settings.showAddCommand,name:u('Show "Add Command" Button'),description:'Show the "Add Command" Button in every Menu.',changeHandler:async m=>{e.settings.showAddCommand=!m,e.manager.pageHeader.reorder(),await e.saveSettings()}}),r(st,{value:e.settings.spacing,name:u("Choose custom spacing for Command Buttons"),description:u("Change the spacing between commands. You can set different values on mobile and desktop."),changeHandler:async m=>{tt(m),e.settings.spacing=m,await e.saveSettings()}}))},{name:u("Left Ribbon"),tab:r(ae,{manager:e.manager.leftRibbon,plugin:e,sortable:!1},r(yn,{plugin:e}),r("div",{className:"cmdr-sep-con callout","data-callout":"warning"},r("span",{className:"cmdr-callout-warning"},r(k,{icon:"alert-triangle"})," ","Reordering and Sorting"),r("p",{className:"cmdr-warning-description"},"As of Obsidian 1.1.0 you can reorder the Buttons in the left ribbon by dragging. This will replace the old sorting feature.")))},{name:u("Page Header"),tab:r(ae,{manager:e.manager.pageHeader,plugin:e},r("hr",null),r("div",{className:"cmdr-sep-con callout","data-callout":"warning"},r("span",{className:"cmdr-callout-warning"},r(k,{icon:"alert-triangle"})," ",u("Warning")),r("p",{className:"cmdr-warning-description"},u("As of Obsidian 0.16.0 you need to explicitly enable the View Header.")),r("button",{onClick:()=>{app.setting.openTabById("appearance"),setTimeout(()=>{var m,h,s,g;app.setting.activeTab.containerEl.scroll({behavior:"smooth",top:250}),(g=(s=(h=(m=app.setting.activeTab.containerEl.querySelectorAll(".setting-item-heading")[1].nextSibling)==null?void 0:m.nextSibling)==null?void 0:h.nextSibling)==null?void 0:s.addClass)==null||g.call(s,"cmdr-cta")},50)},className:"mod-cta"},u("Open Appearance Settings"))))},{name:u("Statusbar"),tab:r(ae,{manager:e.manager.statusBar,plugin:e},r(wn,{plugin:e}))},{name:u("Editor Menu"),tab:r(ae,{manager:e.manager.editorMenu,plugin:e})},{name:u("File Menu"),tab:r(ae,{manager:e.manager.fileMenu,plugin:e})},{name:u("Explorer"),tab:r(ae,{manager:e.manager.explorerManager,plugin:e},r("hr",null),r("div",{className:"cmdr-sep-con callout","data-callout":"warning"},r("span",{className:"cmdr-callout-warning"},r(k,{icon:"alert-triangle"})," ",u("Warning")),r("p",{className:"cmdr-warning-description"},"When clicking on a Command in the Explorer, the Explorer view will become focused. This might interfere with Commands that are supposed to be executed on an active File/Explorer.")))},{name:J.Platform.isMobile?"Mobile Toolbar":"Toolbar",tab:r(At,{plugin:e})},{name:"Macros",tab:r(Vt,{plugin:e,macros:e.settings.macros})}],[]);return r(S,null,J.Platform.isDesktop&&r("div",{className:"cmdr-setting-title"},r("h1",null,e.manifest.name)),(J.Platform.isDesktop||i)&&r(Oi,{tabs:d,activeTab:t,setActiveTab:n,setOpen:a}),r("div",{class:`cmdr-setting-content ${o?"cmdr-mobile":""}`},(J.Platform.isDesktop||!i)&&d[t].tab,(J.Platform.isMobile&&i||J.Platform.isDesktop&&t===0)&&r(Tt,{manifest:e.manifest})))}function Oi({tabs:e,activeTab:o,setActiveTab:t,setOpen:n}){let i=K(null),a=c=>{var d;c.preventDefault(),(d=i.current)==null||d.scrollBy({left:c.deltaY>0?16:-16})};return O(()=>{let c=i.current;if(!(!c||J.Platform.isMobile))return c.addEventListener("wheel",a),()=>c.removeEventListener("wheel",a)},[]),O(()=>{var c;return(c=document.querySelector(".cmdr-tab-active"))==null?void 0:c.scrollIntoView({behavior:"smooth",block:"nearest"})},[o]),r("nav",{class:`cmdr-setting-header ${J.Platform.isMobile?"cmdr-mobile":""}`,ref:i},r("div",{class:`cmdr-setting-tab-group ${J.Platform.isMobile?"vertical-tab-header-group-items":""}`},e.map((c,d)=>r("div",{className:`cmdr-tab ${o===d?"cmdr-tab-active":""} ${J.Platform.isMobile?"vertical-tab-nav-item":""}`,onClick:()=>{t(d),n(!1)}},c.name,J.Platform.isMobile&&r(k,{className:"vertical-tab-nav-item-chevron cmdr-block",icon:"chevron-right",size:24})))),J.Platform.isDesktop&&r("div",{className:"cmdr-fill"}))}var Ne=class extends ct.PluginSettingTab{constructor(t){super(app,t);this.plugin=t}display(){W(r(Te,{plugin:this.plugin,mobileMode:ct.Platform.isMobile}),this.containerEl)}hide(){W(null,this.containerEl)}};var lt=require("obsidian");var Ae=class extends lt.Modal{constructor(t){super(app);this.plugin=t,this.containerEl.addClass("cmdr-setting-modal")}onOpen(){let t=lt.Platform.isMobile;W(r(Te,{plugin:this.plugin,mobileMode:t}),this.contentEl)}onClose(){W(null,this.contentEl)}};var xn=require("obsidian");function zt(){(0,xn.addIcon)("cmdr-all-devices",'')}var Be=class extends X{constructor(t){super(t,t.settings.leftRibbon);this.plugin=t,this.plugin.settings.leftRibbon.forEach(n=>this.addCommand(n,!1)),app.workspace.onLayoutReady(()=>{})}async addCommand(t,n=!0){if(n&&(this.plugin.settings.leftRibbon.push(t),await this.plugin.saveSettings()),j(t.mode)){this.plugin.addRibbonIcon(t.icon,t.name,()=>app.commands.executeCommandById(t.id));let i=app.workspace.leftRibbon.items.find(a=>a.icon===t.icon&&a.name===a.name);i&&(i.buttonEl.style.color=t.color==="#000000"||t.color===void 0?"inherit":t.color),this.plugin.register(()=>this.removeCommand(t,!1))}}async removeCommand(t,n=!0){n&&(this.plugin.settings.leftRibbon.remove(t),await this.plugin.saveSettings());let i=app.workspace.leftRibbon.items.find(a=>a.icon===t.icon&&a.name===a.name);i&&i.buttonEl.remove(),app.workspace.leftRibbon.items.remove(i)}reorder(){this.plugin.settings.leftRibbon.forEach(t=>{this.removeCommand(t,!1),this.addCommand(t,!1)})}};var dt=class extends In.Plugin{async executeStartupMacros(){this.settings.macros.forEach((t,n)=>{t.startup&&this.executeMacro(n)})}async executeMacro(t){let n=this.settings.macros[t];if(!n)throw new Error("Macro not found");for(let i of n.macro)switch(i.action){case 0:{await app.commands.executeCommandById(i.commandId);continue}case 1:{await new Promise(a=>setTimeout(a,i.delay));continue}case 2:continue;case 3:{for(let a=0;anew Ae(this).open()}),this.registerEvent(app.workspace.on("editor-menu",this.manager.editorMenu.applyEditorMenuCommands(this))),this.registerEvent(app.workspace.on("file-menu",this.manager.fileMenu.applyFileMenuCommands(this))),app.workspace.onLayoutReady(()=>{Me(this.settings),Ee(this),tt(this.settings.spacing),oe(this.settings.advancedToolbar),ot(this.settings.advancedToolbar),this.executeStartupMacros()})}onunload(){var t;(t=document.head.querySelector("style#cmdr"))==null||t.remove(),Yo()}async loadSettings(){let t=Object.assign({},yo,await this.loadData());this.settings=t}async saveSettings(){await this.saveData(this.settings)}listActiveToolbarCommands(){return this.app.vault.getConfig("mobileToolbarCommands")}getCommands(){let t=[];return this.listActiveToolbarCommands().forEach(n=>{let i=this.app.commands.commands[n];i&&t.push(i)}),t}getCommandsWithoutIcons(t=!0){let n=[];return this.getCommands().forEach(i=>{i&&!i.icon&&n.push(i)}),t&&this.getCommands().forEach(i=>{this.settings.advancedToolbar.mappedIcons.find(a=>a.commandID===i.id)&&n.push(i)}),n}}; +var Oe=Object.defineProperty,Hn=Object.defineProperties,Rn=Object.getOwnPropertyDescriptor,Fn=Object.getOwnPropertyDescriptors,On=Object.getOwnPropertyNames,Fe=Object.getOwnPropertySymbols;var ht=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable;var Jt=(e,o,t)=>o in e?Oe(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,Ve=(e,o)=>{for(var t in o||(o={}))ht.call(o,t)&&Jt(e,t,o[t]);if(Fe)for(var t of Fe(o))$t.call(o,t)&&Jt(e,t,o[t]);return e},Yt=(e,o)=>Hn(e,Fn(o));var Kt=(e,o)=>{var t={};for(var n in e)ht.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&Fe)for(var n of Fe(e))o.indexOf(n)<0&&$t.call(e,n)&&(t[n]=e[n]);return t};var Vn=(e,o)=>{for(var t in o)Oe(e,t,{get:o[t],enumerable:!0})},zn=(e,o,t,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of On(o))!ht.call(e,a)&&a!==t&&Oe(e,a,{get:()=>o[a],enumerable:!(n=Rn(o,a))||n.enumerable});return e};var Wn=e=>zn(Oe({},"__esModule",{value:!0}),e);var Va={};Vn(Va,{default:()=>dt});module.exports=Wn(Va);var ze=require("obsidian");var bt=require("obsidian");var Gt={};var Qt={};var eo={};var to={"Open Commander Settings":"Commander Einstellungen \xF6ffnen","Open Macro Builder":"Makro Baukasten \xF6ffnen","Change Icon":"Symbol ver\xE4ndern",Rename:"Umbenennen",Delete:"L\xF6schen","Add command":"Befehl hinzuf\xFCgen","Add new":"Neuen Befehl hinzuf\xFCgen","This Command seems to have been removed. {{command_name}}":"Dieser Befehl wurde entfernt. {{command_name}}","Choose a Command to add":"W\xE4hle einen Befehl zum hinzuf\xFCgen","to navigate":"zum navigieren","to choose an icon":"um ein symbol auszuw\xE4hlen","to cancel":"zum abbrechen","Use a custom name":"Nutze einen benutzerdefinierten Namen","Choose a custom Name for your new Command":"W\xE4hle einen benutzerdefinierten Namen f\xFCr deinen neuen Befehl","to save":"zum speichern","Choose a Icon for your new Command":"W\xE4hle ein Symbol f\xFCr deinen neuen Befehl","to choose a custom icon":"um ein benutzerdefiniertes Symbol auszuw\xE4hlen","Remove Command":"Befehl entfernen","Double click to rename":"Zum umbenennen doppelklicken","This device":"Dieses Ger\xE4t","Added by {{plugin_name}}.":"Hinzugef\xFCgt von {{plugin_name}}.","Warning: This is a checked Command, meaning it might not run under every circumstance.":"Warnung: Dieser Befehl wird nur unter bestimmten Vorraussetzungen ausgef\xFChrt.","Move down":"Nach unten","Move up":"Nach oben","Change Mode (Currently: {{current_mode}})":"Modus ver\xE4ndern (Momentan: {{current_mode}})","Are you sure you want to delete the Command?":"Bist du dir sicher, dass du diesen Befehl entfernen m\xF6chtest?","Remove and don't ask again":"Entfernen und Auswahl speichern",Remove:"Entfernen",Cancel:"Abbrechen","Always ask before removing?":"Immer fragen, bevor ein Befehl gel\xF6scht wird?","Always show a Popup to confirm deletion of a Command.":"Zeige immer ein Popup um L\xF6schen zu best\xE4tigen.",'Show "Add Command" Button':'Zeige "Befehl hinzuf\xFCgen" Knopf','Show the "Add Command" Button in every Menu. Requires restart.':'Zeige den "Befehl hinzuf\xFCgen" Knopf in jedem Men\xFC. Erfordert neustart.',"Please restart Obsidian for these changes to take effect.":"Bitte starte Obsidian neu, damit diese \xC4nderungen in Kraft treten.","Enable debugging":"Aktiviere debugging","Enable console output.":"Aktiviere Konsolen-Output (F\xFCr Entwickler)",General:"Allgemein","Editor Menu":"Editor-Men\xFC","File Menu":"Datei-Men\xFC","Left Ribbon":"Band","Right Ribbon":"Rechtes Band",Titlebar:"Titelleiste",Statusbar:"Statusleiste","Page Header":"Kopfzeile","Support development":"Entwicklung unterst\xFCtzen","No commands here!":"Keine Befehle da!","Would you like to add one now?":"M\xF6chtest du jetzt einen hinzuf\xFCgen?","Hide Commands":"Befehle verstecken","Choose new":"W\xE4hle neu","Hide Commands of other Plugins":"Hide Commands of other Plugins",Icon:"Symbol",Name:"Name","Custom Name":"Benutzerdefinierter Name","Add command to all devices":"F\xFCge Befehl allen Ger\xE4ten hinzu","Add command only to mobile devices":"F\xFCge Befehl nur Mobilen Ger\xE4ten hinzu","Add command only to desktop devices":"F\xFCge Befehl nur Desktop Ger\xE4ten hinzu","Add command only to this device":"F\xFCge Befehl nur diesem Ger\xE4t hinzu",Done:"Fertig","By Johnny\u2728 and phibr0":"Von Johnny\u2728 und phibr0","Leave feedback":"Feedback geben",Donate:"Spenden","Share feedback, issues, and ideas with our feedback form.":"Teile Feedback, Probleme und Ideen mit unserem Feedback Formular!","Consider donating to support development.":"Spende um die Entwicklung zu unterst\xFCtzen.",Save:"Speichern","This Command is not available on this device.":"Dieser Befehl ist auf diesem Ger\xE4t nicht verf\xFCgbar.",Show:"Anzeigen",Hide:"Verstecken","Hide other Commands":"Andere Befehle verstecken","Double click to enter custom value":"Doppelklicken um eigenen Wert einzutragen","Choose custom spacing for Command Buttons":"W\xE4hle den Abstand zwischen Befehlen","Change the spacing between commands. You can set different values on mobile and desktop.":"Ver\xE4ndert den Abstand zwischen Befehlen.",Warning:"Achtung","As of Obsidian 0.16.0 you need to explicitly enable the View Header.":'Ab Obsidian Version 0.16.0 m\xFCssen Sie den "View Header" explizit aktivieren. Anschlie\xDFend muss Obsidian neugestartet werden.',"Open Appearance Settings":"\xD6ffne Darstellungs-Einstellungen",Explorer:"Explorer"};var vt={"Open Commander Settings":"Open Commander Settings","Open Macro Builder":"Open Macro Builder","Change Icon":"Change Icon",Rename:"Rename",Delete:"Delete","Add command":"Add command","Add new":"Add new command","This Command seems to have been removed. {{command_name}}":"This Command seems to have been removed. {{command_name}}","Choose a Command to add":"Choose a Command to add","to navigate":"to navigate","to choose an icon":"to choose an icon","to cancel":"to cancel","Use a custom name":"Use a custom name","Choose a custom Name for your new Command":"Choose a custom Name for your new Command","to save":"to save","Choose a Icon for your new Command":"Choose a Icon for your new Command","to choose a custom icon":"to choose a custom icon","Remove Command":"Remove Command","Double click to rename":"Double click to rename","This device":"This device","Added by {{plugin_name}}.":"Added by {{plugin_name}}.","Warning: This is a checked Command, meaning it might not run under every circumstance.":"Warning: This is a checked Command, meaning it might not run under every circumstance.","Move down":"Move down","Move up":"Move up","Change Mode (Currently: {{current_mode}})":"Change Mode (Currently: {{current_mode}})","Are you sure you want to delete the Command?":"Are you sure you want to delete the Command?","Remove and don't ask again":"Remove and don't ask again",Remove:"Remove",Cancel:"Cancel","Always ask before removing?":"Always ask before removing?","Always show a Popup to confirm deletion of a Command.":"Always show a Popup to confirm deletion of a Command.",'Show "Add Command" Button':'Show "Add Command" Button','Show the "Add Command" Button in every Menu. Requires restart.':'Show the "Add Command" Button in every Menu. Requires restart.',"Please restart Obsidian for these changes to take effect.":"Please restart Obsidian for these changes to take effect.","Enable debugging":"Enable debugging","Enable console output.":"Enable console output.",General:"General","Editor Menu":"Editor Menu","File Menu":"File Menu","Left Ribbon":"Ribbon","Right Ribbon":"Right Ribbon",Titlebar:"Titlebar",Statusbar:"Status Bar","Page Header":"Tab Bar","Support development":"Support development","No commands here!":"No commands here!","Would you like to add one now?":"Would you like to add one now?","Hide Commands":"Hide Commands","Choose new":"Choose new","Hide Commands of other Plugins":"Hide Commands of other Plugins",Icon:"Icon",Name:"Name","Custom Name":"Custom Name","Add command to all devices":"Add command to all devices","Add command only to mobile devices":"Add command only to mobile devices","Add command only to desktop devices":"Add command only to desktop devices","Add command only to this device":"Add command only to this device",Done:"Done","By Johnny\u2728 and phibr0":"By Johnny\u2728 and phibr0","Leave feedback":"Leave feedback",Donate:"Donate","Share feedback, issues, and ideas with our feedback form.":"Share feedback, issues, and ideas with our feedback form.","Consider donating to support development.":"Consider donating to support development.",Save:"Save","This Command is not available on this device.":"This Command is not available on this device.",Show:"Show",Hide:"Hide","Hide other Commands":"Hide other Commands","Double click to enter custom value":"Double click to enter custom value","Choose custom spacing for Command Buttons":"Choose custom spacing for Command Buttons","Change the spacing between commands. You can set different values on mobile and desktop.":"Change the spacing between commands.",Warning:"Warning","As of Obsidian 0.16.0 you need to explicitly enable the View Header.":"As of Obsidian 0.16.0 you need to explicitly enable the Tab Title Bar. Once enabled, you might need to restart Obsidian.","Open Appearance Settings":"Open Appearance Settings",Explorer:"Explorer"};var oo={};var no={};var ao={"Open Commander Settings":"Ouvrir les param\xE8tres de Commander","Open Macro Builder":"Ouvrir le constructeur de Macro","Change Icon":"Changer l'ic\xF4ne",Rename:"Renommer",Delete:"Supprimer","Add command":"Ajouter une commande","Add new":"Ajouter une nouvelle commande","This Command seems to have been removed. {{command_name}}":"Cette commande semble avoir \xE9t\xE9 supprim\xE9e. {{command_name}}","Choose a Command to add":"Choisissez une commande \xE0 ajouter","to navigate":"pour naviguer","to choose an icon":"pour choisir une ic\xF4ne","to cancel":"pour annuler","Use a custom name":"Utiliser un nom personnalis\xE9","Choose a custom Name for your new Command":"Choisissez un nom personnalis\xE9 pour votre nouvelle commande","to save":"pour enregistrer","Choose a Icon for your new Command":"Choisissez une ic\xF4ne pour votre nouvelle commande","to choose a custom icon":"pour choisir une ic\xF4ne personnalis\xE9e","Remove Command":"Supprimer la commande","Double click to rename":"Double-cliquez pour renommer","This device":"Cet appareil","Added by {{plugin_name}}.":"Ajout\xE9 par {{plugin_name}}.","Warning: This is a checked Command, meaning it might not run under every circumstance.":"Attention : Cette commande est coch\xE9e, ce qui signifie qu'elle pourrait ne pas fonctionner dans toutes les situations.","Move down":"Descendre","Move up":"Monter","Change Mode (Currently: {{current_mode}})":"Changer de mode (Actuellement : {{current_mode}})","Are you sure you want to delete the Command?":"\xCAtes-vous s\xFBr de vouloir supprimer la commande ?","Remove and don't ask again":"Supprimer et ne plus demander",Remove:"Supprimer",Cancel:"Annuler","Always ask before removing?":"Toujours demander avant de supprimer ?","Always show a Popup to confirm deletion of a Command.":"Toujours afficher une fen\xEAtre contextuelle pour confirmer la suppression d'une commande.",'Show "Add Command" Button':'Afficher le bouton "Ajouter une commande"','Show the "Add Command" Button in every Menu. Requires restart.':'Afficher le bouton "Ajouter une commande" dans chaque menu. N\xE9cessite un red\xE9marrage.',"Please restart Obsidian for these changes to take effect.":"Veuillez red\xE9marrer Obsidian pour que ces modifications prennent effet.","Enable debugging":"Activer le d\xE9bogage","Enable console output.":"Activer la sortie console.",General:"G\xE9n\xE9ral","Editor Menu":"Menu \xE9diteur","File Menu":"Menu fichier","Left Ribbon":"Ruban gauche","Right Ribbon":"Ruban droit",Titlebar:"Barre de titre",Statusbar:"Barre d'\xE9tat","Page Header":"En-t\xEAte de page","Support development":"Soutenir le d\xE9veloppement","No commands here!":"Aucune commande ici !","Would you like to add one now?":"Voulez-vous en ajouter une maintenant ?","Hide Commands":"Masquer les commandes","Choose new":"Choisir nouveau","Hide Commands of other Plugins":"Masquer les commandes d'autres plugins",Icon:"Ic\xF4ne",Name:"Nom","Custom Name":"Nom personnalis\xE9","Add command to all devices":"Ajouter la commande \xE0 tous les appareils","Add command only to mobile devices":"Ajouter la commande uniquement sur les appareils mobiles","Add command only to desktop devices":"Ajouter la commande uniquement sur les ordinateurs de bureau","Add command only to this device":"Ajouter la commande uniquement sur cet appareil",Done:"Termin\xE9","By Johnny\u2728 and phibr0":"Par Johnny\u2728 et phibr0","Leave feedback":"Laisser un commentaire",Donate:"Faire un don","Share feedback, issues, and ideas with our feedback form.":"Partagez vos commentaires, probl\xE8mes et id\xE9es avec notre formulaire de retour d'information.","Consider donating to support development.":"Envisagez de faire un don pour soutenir le d\xE9veloppement.",Save:"Enregistrer","This Command is not available on this device.":"Cette commande n'est pas disponible sur cet appareil.",Show:"Afficher",Hide:"Masquer","Hide other Commands":"Masquer les autres commandes","Double click to enter custom value":"Double-cliquez pour entrer une valeur personnalis\xE9e","Choose custom spacing for Command Buttons":"Choisissez un espacement personnalis\xE9 pour les boutons de commande","Change the spacing between commands.":"Modifier l'espacement entre les commandes.",Warning:"Avertissement","As of Obsidian 0.16.0 you need to explicitly enable the Tab Title Bar. Once enabled, you might need to restart Obsidian.":"\xC0 partir d'Obsidian 0.16.0, vous devez activer explicitement la barre de titre des onglets. Une fois activ\xE9e, il se peut que vous deviez red\xE9marrer Obsidian.","Open Appearance Settings":"Ouvrir les param\xE8tres d'apparence",Explorer:"Explorateur"};var io={};var ro={};var so={};var co={};var lo={};var mo={"Open Commander Settings":"Open Commander Instellingen","Open Macro Builder":"Open Macro Bouwer","Change Icon":"Verander Icoon",Rename:"Hernoem",Delete:"Verwijder","Add command":"Voeg commando toe","Add new":"Voeg nieuw commando toe","This Command seems to have been removed. {{command_name}}":"Het lijkt er op dat dit commando is verwijderd. {{command_name}}","Choose a Command to add":"Kies een commando om toe te voegen","to navigate":"naar navigatie","to choose an icon":"naar kies een icoon","to cancel":"naar annuleren","Use a custom name":"Gebruik een aangepaste naam","Choose a custom Name for your new Command":"Kies een aangepaste naam voor je nieuwe commando","to save":"naar opslaan","Choose a Icon for your new Command":"Kies een icoon voor je nieuwe commando","to choose a custom icon":"to choose a custom icon","Remove Command":"Verwijder commando","Double click to rename":"Dubbel klik om te hernoemen","This device":"Dit apparaat","Added by {{plugin_name}}.":"Toegevoegd door {{plugin_name}}.","Warning: This is a checked Command, meaning it might not run under every circumstance.":"Waarschuwing: Dit is een aangevinkte opdracht, wat betekent dat deze mogelijk niet onder alle omstandigheden wordt uitgevoerd.","Move down":"Naar beneden","Move up":"Naar boven","Change Mode (Currently: {{current_mode}})":"Verander modus (Currently: {{current_mode}})","Are you sure you want to delete the Command?":"Weet je zeker dat je dit commando wilt verwijderen??","Remove and don't ask again":"Verwijder en vraag niet opnieuw",Remove:"Verwijder",Cancel:"Annuleer","Always ask before removing?":"Altijd vragen voor verwijderen?","Always show a Popup to confirm deletion of a Command.":"Laat altijd een venster zien om het verwijderen van een commando te bevestigen.",'Show "Add Command" Button':'Laat "Voeg Commando toe" knop zien','Show the "Add Command" Button in every Menu. Requires restart.':'Laat de "Voeg Commenado toe" knop zien in elk menu. Vereist herstart.',"Please restart Obsidian for these changes to take effect.":"Start Obsidian a.u.b. opnieuw op om deze wijzigingen toe te passen.","Enable debugging":"Activeer debugging","Enable console output.":"Activeer console output.",General:"Algemeen","Editor Menu":"Editor Menu","File Menu":"Bestand Menu","Left Ribbon":"Linkse Lint","Right Ribbon":"Rechtse Lint",Titlebar:"Titelbalk",Statusbar:"Statusbalk","Page Header":"Pagina Kop","Support development":"Steun ontwikkeling","No commands here!":"Geen commando's hier!","Would you like to add one now?":"Zou je er \xE9\xE9n willen toevoegen?","Hide Commands":"Verberg Commando's","Choose new":"Kies nieuw","Hide Commands of other Plugins":"Verberg Commando's van andere Plugins",Icon:"Icoon",Name:"Naam","Custom Name":"Aangepaste naam","Add command to all devices":"Voeg commando toe aan alle apparaten","Add command only to mobile devices":"Voeg commando toe aan alleen mobiele apparaten","Add command only to desktop devices":"Voeg commando toe aan alleen dekstop apparaten","Add command only to this device":"Voed commando toe aan alleen dit apparaat",Done:"Klaar","By Johnny\u2728 and phibr0":"Door Johnny\u2728 en phibr0","Leave feedback":"Laat feedback achter",Donate:"Doneer","Share feedback, issues, and ideas with our feedback form.":"Deel feedback, problemen en idee\xEBn met ons feedback formulier.","Consider donating to support development.":"Overweeg te doneren om ontwikkeling te steunen.",Save:"Opslaan","This Command is not available on this device.":"Dit Commando is niet beschikbaar op dit apparaat.",Show:"Laat zien",Hide:"Verberg","Hide other Commands":"Verberg andere Commando's","Double click to enter custom value":"Dubbel klik om een aangepaste waarde in te vullen","Choose custom spacing for Command Buttons":"Kies aangepaste regelafstand voor Commando Knoppen","Change the spacing between commands. You can set different values on mobile and desktop.":"Verander regelafstand tussen Commando's. Dit kan verschillen tussen mobiel en dekstop.",Warning:"Waarschuwing","As of Obsidian 0.16.0 you need to explicitly enable the View Header.":"Sinds Obsidian 0.16.0 moet je de kop expliciet inschakelen. Wanneer ingeschakeld moet je mogelijk Obsidian herstarten.","Open Appearance Settings":"Open Weergave Instellingen",Explorer:"Verkenner"};var uo={};var po={};var fo={};var ho={};var vo={};var go={};var bo={};var Co={"Open Commander Settings":"\u6253\u5F00 Commander \u8BBE\u7F6E","Open Macro Builder":"\u6253\u5F00\u5B8F\u6307\u4EE4\u751F\u6210\u5668","Change Icon":"\u66F4\u6362\u56FE\u6807",Rename:"\u91CD\u547D\u540D",Delete:"\u5220\u9664","Add command":"\u6DFB\u52A0\u547D\u4EE4","Add new":"\u6DFB\u52A0\u65B0\u547D\u4EE4","This Command seems to have been removed. {{command_name}}":"\u8BE5\u547D\u4EE4\u4F3C\u4E4E\u5DF2\u88AB\u79FB\u9664\u3002{{command_name}}","Choose a Command to add":"\u9009\u62E9\u4E00\u4E2A\u547D\u4EE4\u5E76\u6DFB\u52A0","to navigate":"\u5BFC\u822A","to choose an icon":"\u9009\u4E2D\u4E00\u4E2A\u56FE\u6807","to cancel":"\u53D6\u6D88","Use a custom name":"\u4F7F\u7528\u4E00\u4E2A\u81EA\u5B9A\u4E49\u540D\u79F0","Choose a custom Name for your new Command":"\u4E3A\u4F60\u7684\u65B0\u547D\u4EE4\u9009\u62E9\u4E00\u4E2A\u81EA\u5B9A\u4E49\u540D\u79F0","to save":"\u4FDD\u5B58","Choose a Icon for your new Command":"\u4E3A\u4F60\u7684\u65B0\u547D\u4EE4\u9009\u62E9\u4E00\u4E2A\u56FE\u6807","to choose a custom icon":"\u9009\u62E9\u4E00\u4E2A\u81EA\u5B9A\u4E49\u56FE\u6807","Remove Command":"\u79FB\u9664\u547D\u4EE4","Double click to rename":"\u53CC\u51FB\u4EE5\u91CD\u547D\u540D","This device":"\u8BE5\u8BBE\u5907","Added by {{plugin_name}}.":"\u7531{{plugin_name}}\u6DFB\u52A0\u3002","Warning: This is a checked Command, meaning it might not run under every circumstance.":"\u8B66\u544A\uFF1A\u8FD9\u662F\u4E00\u4E2A\u53D7\u68C0\u7684\u547D\u4EE4\uFF0C\u8FD9\u610F\u5473\u7740\u5B83\u672A\u5FC5\u80FD\u5728\u6240\u4EE5\u73AF\u5883\u4E0B\u8FD0\u884C\u3002","Move down":"\u5411\u4E0B\u79FB\u52A8","Move up":"\u5411\u4E0A\u79FB\u52A8","Change Mode (Currently: {{current_mode}})":"\u5207\u6362\u6A21\u5F0F\uFF08\u5F53\u524D\uFF1A{{current_mode}}\uFF09","Are you sure you want to delete the Command?":"\u662F\u5426\u786E\u8BA4\u79FB\u9664\u8BE5\u547D\u4EE4\uFF1F","Remove and don't ask again":"\u79FB\u9664\u4E14\u4E0D\u8981\u518D\u8BE2\u95EE",Remove:"\u79FB\u9664",Cancel:"\u53D6\u6D88","Always ask before removing?":"\u5728\u79FB\u9664\u524D\u603B\u662F\u8BE2\u95EE\uFF1F","Always show a Popup to confirm deletion of a Command.":"\u5728\u786E\u8BA4\u79FB\u9664\u547D\u4EE4\u524D\u603B\u662F\u5F39\u7A97\u3002",'Show "Add Command" Button':"\u663E\u793A\u201C\u6DFB\u52A0\u547D\u4EE4\u201D\u6309\u94AE",'Show the "Add Command" Button in every Menu. Requires restart.':"\u5728\u6BCF\u4E2A\u83DC\u5355\u90FD\u5C55\u793A\u201C\u6DFB\u52A0\u547D\u4EE4\u201D\u6309\u94AE\u3002\u9700\u8981\u91CD\u542F\u3002","Please restart Obsidian for these changes to take effect.":"\u8BF7\u91CD\u542F Obsidian \u4EE5\u4F7F\u8FD9\u4E9B\u66F4\u6539\u751F\u6548\u3002","Enable debugging":"\u542F\u7528\u9664\u9519","Enable console output.":"\u542F\u7528\u63A7\u5236\u53F0\u8F93\u51FA\u3002",General:"\u901A\u7528","Editor Menu":"\u7F16\u8F91\u5668\u83DC\u5355","File Menu":"\u6587\u4EF6\u83DC\u5355","Left Ribbon":"\u5DE6\u4FA7\u8FB9\u680F","Right Ribbon":"\u53F3\u4FA7\u8FB9\u680F",Titlebar:"\u6807\u9898\u680F",Statusbar:"\u72B6\u6001\u680F","Page Header":"\u9875\u9996","Support development":"\u652F\u6301\u5F00\u53D1","No commands here!":"\u8FD9\u91CC\u6CA1\u6709\u547D\u4EE4\uFF01","Would you like to add one now?":"\u4F60\u73B0\u5728\u60F3\u8981\u52A0\u4E00\u4E2A\u5417\uFF1F","Hide Commands":"\u9690\u85CF\u547D\u4EE4","Choose new":"\u9009\u62E9\u65B0\u7684","Hide Commands of other Plugins":"\u9690\u85CF\u5176\u4ED6\u63D2\u4EF6\u7684\u547D\u4EE4",Icon:"\u56FE\u6807",Name:"\u540D\u79F0","Custom Name":"\u81EA\u5B9A\u4E49\u540D\u79F0","Add command to all devices":"\u5411\u6240\u6709\u8BBE\u5907\u6DFB\u52A0\u547D\u4EE4","Add command only to mobile devices":"\u53EA\u5411\u79FB\u52A8\u8BBE\u5907\u6DFB\u52A0\u547D\u4EE4","Add command only to desktop devices":"\u53EA\u5411\u684C\u9762\u8BBE\u5907\u6DFB\u52A0\u547D\u4EE4","Add command only to this device":"\u53EA\u5411\u5F53\u524D\u8BBE\u5907\u6DFB\u52A0\u547D\u4EE4",Done:"\u5B8C\u6210","By Johnny\u2728 and phibr0":"\u7531 Johnny\u2728 \u548C phibr0 \u5F00\u53D1","Leave feedback":"\u7559\u4E0B\u53CD\u9988",Donate:"\u6350\u8D60","Share feedback, issues, and ideas with our feedback form.":"\u4EE5\u6211\u4EEC\u7684\u53CD\u9988\u8868\uFF0C\u5206\u4EAB\u53CD\u9988\u3001\u8BAE\u9898\u6216\u8005\u4F60\u7684\u60F3\u6CD5\u3002","Consider donating to support development.":"\u8003\u8651\u6350\u8D60\u4EE5\u652F\u6301\u5F00\u53D1\u3002",Save:"\u4FDD\u5B58","This Command is not available on this device.":"\u8FD9\u4E00\u547D\u4EE4\u5728\u5F53\u524D\u8BBE\u5907\u4E0D\u53EF\u7528\u3002",Show:"\u663E\u793A",Hide:"\u9690\u85CF","Hide other Commands":"\u9690\u85CF\u5176\u4F59\u547D\u4EE4","Double click to enter custom value":"\u53CC\u51FB\u4EE5\u6DFB\u52A0\u81EA\u5B9A\u4E49\u503C","Choose custom spacing for Command Buttons":"\u4E3A\u547D\u4EE4\u6309\u94AE\u9009\u62E9\u81EA\u5B9A\u4E49\u95F4\u8DDD","Change the spacing between commands. You can set different values on mobile and desktop.":"\u6539\u53D8\u547D\u4EE4\u4E4B\u95F4\u7684\u95F4\u8DDD\u3002\u4F60\u53EF\u4EE5\u4E3A\u79FB\u52A8\u548C\u684C\u9762\u8BBE\u5907\u8BBE\u7F6E\u4E0D\u540C\u7684\u503C\u3002"};var _o={};var ua={ar:Gt,cs:Qt,da:eo,de:to,en:vt,"en-gb":oo,es:no,fr:ao,hi:io,id:ro,it:so,ja:co,ko:lo,nl:mo,nn:uo,pl:po,pt:fo,"pt-br":ho,ro:vo,ru:go,tr:bo,"zh-cn":Co,"zh-tw":_o},gt=ua[bt.moment.locale()];function u(e){return gt||console.error("Error: dictionary locale not found",bt.moment.locale()),gt&>[e]||vt[e]}var ne=class extends ze.FuzzySuggestModal{constructor(t){super(app);this.plugin=t,this.commands=Object.values(app.commands.commands),this.setPlaceholder(u("Choose a Command to add")),this.setInstructions([{command:"\u2191\u2193",purpose:u("to navigate")},{command:"\u21B5",purpose:u("to choose an icon")},{command:"esc",purpose:u("to cancel")}])}async awaitSelection(){return this.open(),new Promise((t,n)=>{this.onChooseItem=a=>t(a),this.onClose=()=>window.setTimeout(()=>n("No Command selected"),0)})}renderSuggestion(t,n){if(n.addClass("mod-complex"),n.createDiv({cls:"suggestion-content"}).createDiv({cls:"suggestion-title"}).setText(t.item.name),t.item.icon){let i=n.createDiv({cls:"suggestion-aux"});(0,ze.setIcon)(i.createSpan({cls:"suggestion-flair"}),t.item.icon)}}getItems(){return this.commands}getItemText(t){return t.name}onChooseItem(t,n){}};var yo={confirmDeletion:!0,showAddCommand:!0,debug:!1,editorMenu:[],fileMenu:[],leftRibbon:[],rightRibbon:[],titleBar:[],statusBar:[],pageHeader:[],macros:[],explorer:[],hide:{statusbar:[],leftRibbon:[]},spacing:8,advancedToolbar:{rowHeight:48,rowCount:1,spacing:0,buttonWidth:48,columnLayout:!1,mappedIcons:[],tooltips:!1,heightOffset:0}},wo=["activity","airplay","alarm-check","alarm-clock-off","alarm-clock","alarm-minus","alarm-plus","album","alert-circle","alert-octagon","alert-triangle","align-center-horizontal","align-center-vertical","align-center","align-end-horizontal","align-end-vertical","align-horizontal-distribute-center","align-horizontal-distribute-end","align-horizontal-distribute-start","align-horizontal-justify-center","align-horizontal-justify-end","align-horizontal-justify-start","align-horizontal-space-around","align-horizontal-space-between","align-justify","align-left","align-right","align-start-horizontal","align-start-vertical","align-vertical-distribute-center","align-vertical-distribute-end","align-vertical-distribute-start","align-vertical-justify-center","align-vertical-justify-end","align-vertical-justify-start","align-vertical-space-around","align-vertical-space-between","anchor","aperture","archive","arrow-big-down","arrow-big-left","arrow-big-right","arrow-big-up","arrow-down-circle","arrow-down-left","arrow-down-right","arrow-down","arrow-left-circle","arrow-left-right","arrow-left","arrow-right-circle","arrow-right","arrow-up-circle","arrow-up-left","arrow-up-right","arrow-up","asterisk","at-sign","award","axe","banknote","bar-chart-2","bar-chart","baseline","battery-charging","battery-full","battery-low","battery-medium","battery","beaker","bell-minus","bell-off","bell-plus","bell-ring","bell","bike","binary","bitcoin","bluetooth-connected","bluetooth-off","bluetooth-searching","bluetooth","bold","book-open","book","bookmark-minus","bookmark-plus","bookmark","bot","box-select","box","briefcase","brush","bug","building-2","building","bus","calculator","calendar","camera-off","camera","car","carrot","cast","check-circle-2","check-circle","check-square","check","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-up","chevrons-down-up","chevrons-down","chevrons-left","chevrons-right","chevrons-up-down","chevrons-up","chrome","circle-slashed","circle","clipboard-check","clipboard-copy","clipboard-list","clipboard-x","clipboard","clock-1","clock-10","clock-11","clock-12","clock-2","clock-3","clock-4","clock-5","clock-6","clock-7","clock-8","clock-9","lucide-clock","cloud-drizzle","cloud-fog","cloud-hail","cloud-lightning","cloud-moon","cloud-off","cloud-rain-wind","cloud-rain","cloud-snow","cloud-sun","lucide-cloud","cloudy","clover","code-2","code","codepen","codesandbox","coffee","coins","columns","command","compass","contact","contrast","cookie","copy","copyleft","copyright","corner-down-left","corner-down-right","corner-left-down","corner-left-up","corner-right-down","corner-right-up","corner-up-left","corner-up-right","cpu","credit-card","crop","lucide-cross","crosshair","crown","currency","database","delete","dice-1","dice-2","dice-3","dice-4","dice-5","dice-6","disc","divide-circle","divide-square","divide","dollar-sign","download-cloud","download","dribbble","droplet","droplets","drumstick","edit-2","edit-3","edit","egg","equal-not","equal","eraser","euro","expand","external-link","eye-off","eye","facebook","fast-forward","feather","figma","file-check-2","file-check","file-code","file-digit","file-input","file-minus-2","file-minus","file-output","file-plus-2","file-plus","file-search","file-text","file-x-2","file-x","file","files","film","filter","flag-off","flag-triangle-left","flag-triangle-right","flag","flame","flashlight-off","flashlight","flask-conical","flask-round","folder-minus","folder-open","folder-plus","lucide-folder","form-input","forward","frame","framer","frown","function-square","gamepad-2","gamepad","gauge","gavel","gem","ghost","gift","git-branch-plus","git-branch","git-commit","git-fork","git-merge","git-pull-request","github","gitlab","glasses","globe-2","globe","grab","graduation-cap","grid","grip-horizontal","grip-vertical","hammer","hand-metal","hand","hard-drive","hard-hat","hash","haze","headphones","heart","help-circle","hexagon","highlighter","history","home","image-minus","image-off","image-plus","image","import","inbox","indent","indian-rupee","infinity","lucide-info","inspect","instagram","italic","japanese-yen","key","keyboard","landmark","lucide-languages","laptop-2","laptop","lasso-select","lasso","layers","layout-dashboard","layout-grid","layout-list","layout-template","layout","library","life-buoy","lightbulb-off","lightbulb","link-2-off","link-2","lucide-link","linkedin","list-checks","list-minus","list-ordered","list-plus","list-x","list","loader-2","loader","locate-fixed","locate-off","locate","lock","log-in","log-out","mail","map-pin","map","maximize-2","maximize","megaphone","meh","menu","message-circle","message-square","mic-off","mic","minimize-2","minimize","minus-circle","minus-square","minus","monitor-off","monitor-speaker","monitor","moon","more-horizontal","more-vertical","mountain-snow","mountain","mouse-pointer-2","mouse-pointer-click","mouse-pointer","mouse","move-diagonal-2","move-diagonal","move-horizontal","move-vertical","move","music","navigation-2","navigation","network","octagon","option","outdent","package-check","package-minus","package-plus","package-search","package-x","package","palette","palmtree","paperclip","pause-circle","pause-octagon","pause","pen-tool","lucide-pencil","percent","person-standing","phone-call","phone-forwarded","phone-incoming","phone-missed","phone-off","phone-outgoing","phone","pie-chart","piggy-bank","lucide-pin","pipette","plane","play-circle","play","plug-zap","plus-circle","plus-square","plus","pocket","podcast","pointer","pound-sterling","power-off","power","printer","qr-code","quote","radio-receiver","radio","redo","refresh-ccw","refresh-cw","regex","repeat-1","repeat","reply-all","reply","rewind","rocket","rocking-chair","rotate-ccw","rotate-cw","rss","ruler","russian-ruble","save","scale","scan-line","scan","scissors","screen-share-off","screen-share","lucide-search","send","separator-horizontal","separator-vertical","server-crash","server-off","server","settings-2","settings","share-2","share","sheet","shield-alert","shield-check","shield-close","shield-off","shield","shirt","shopping-bag","shopping-cart","shovel","shrink","shuffle","sidebar-close","sidebar-open","sidebar","sigma","signal-high","signal-low","signal-medium","signal-zero","signal","skip-back","skip-forward","skull","slack","slash","sliders","smartphone-charging","smartphone","smile","snowflake","sort-asc","sort-desc","speaker","sprout","square","star-half","lucide-star","stop-circle","stretch-horizontal","stretch-vertical","strikethrough","subscript","sun","sunrise","sunset","superscript","swiss-franc","switch-camera","table","tablet","tag","target","tent","terminal-square","terminal","text-cursor-input","text-cursor","thermometer-snowflake","thermometer-sun","thermometer","thumbs-down","thumbs-up","ticket","timer-off","timer-reset","timer","toggle-left","toggle-right","tornado","trash-2","lucide-trash","trello","trending-down","trending-up","triangle","truck","tv-2","tv","twitch","twitter","type","umbrella","underline","undo","unlink-2","unlink","unlock","upload-cloud","upload","user-check","user-minus","user-plus","user-x","user","users","verified","vibrate","video-off","video","view","voicemail","volume-1","volume-2","volume-x","volume","wallet","wand","watch","waves","webcam","wifi-off","wifi","wind","wrap-text","wrench","x-circle","x-octagon","x-square","x","youtube","zap-off","zap","zoom-in","zoom-out","search-large"];var We=require("obsidian");var R=class extends We.FuzzySuggestModal{constructor(t){super(app);this.plugin=t,this.setPlaceholder(u("Choose a Icon for your new Command")),this.setInstructions([{command:"\u2191\u2193",purpose:u("to navigate")},{command:"\u21B5",purpose:u("to choose a custom icon")},{command:"esc",purpose:u("to cancel")}])}async awaitSelection(){return this.open(),new Promise((t,n)=>{this.onChooseItem=a=>t(a),this.onClose=()=>window.setTimeout(()=>n("No Icon selected"),0)})}renderSuggestion(t,n){n.addClass("mod-complex"),n.createDiv({cls:"suggestion-content"}).createDiv({cls:"suggestion-title"}).setText(t.item.replace(/-/g," ").replace(/(^\w{1})|(\s+\w{1})/g,c=>c.toUpperCase()));let i=n.createDiv({cls:"suggestion-aux"});(0,We.setIcon)(i.createSpan({cls:"suggestion-flair"}),t.item)}getItems(){return wo}getItemText(t){return t}onChooseItem(t,n){}};var et=require("obsidian");var ko=require("obsidian");var j=class extends ko.SuggestModal{constructor(t){super(app);this.defaultName=t;this.setPlaceholder(u("Use a custom name")),this.resultContainerEl.style.display="none",this.setInstructions([{command:"",purpose:u("Choose a custom Name for your new Command")},{command:"\u21B5",purpose:u("to save")},{command:"esc",purpose:u("to cancel")}])}onOpen(){var a;super.onOpen(),this.inputEl.value=this.defaultName;let t=createDiv({cls:"cmdr-name-input-wrapper"});(a=this.inputEl.parentNode)==null||a.insertBefore(t,this.inputEl),t.appendChild(this.inputEl),t.parentElement.style.display="block";let n=createEl("button",{text:u("Save"),cls:"mod-cta"});n.onclick=i=>this.selectSuggestion(this.inputEl.value,i),t.appendChild(n)}async awaitSelection(){return this.open(),new Promise((t,n)=>{this.onChooseSuggestion=a=>t(a),this.onClose=()=>window.setTimeout(()=>n("No Name selected"),0)})}getSuggestions(t){return[t]}renderSuggestion(t,n){}onChooseSuggestion(t,n){}};var Xe,_,Io,pa,_e,Mo,Po,je={},To=[],fa=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ae(e,o){for(var t in o)e[t]=o[t];return e}function Lo(e){var o=e.parentNode;o&&o.removeChild(e)}function r(e,o,t){var n,a,i,c={};for(i in o)i=="key"?n=o[i]:i=="ref"?a=o[i]:c[i]=o[i];if(arguments.length>2&&(c.children=arguments.length>3?Xe.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)c[i]===void 0&&(c[i]=e.defaultProps[i]);return Ue(e,c,n,a,null)}function Ue(e,o,t,n,a){var i={type:e,props:o,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a==null?++Io:a};return a==null&&_.vnode!=null&&_.vnode(i),i}function I(e){return e.children}function K(e,o){this.props=e,this.context=o}function ye(e,o){if(o==null)return e.__?ye(e.__,e.__.__k.indexOf(e)+1):null;for(var t;o0?Ue(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=t,f.__b=t.__b+1,(C=T[s])===null||C&&f.key==C.key&&f.type===C.type)T[s]=void 0;else for(g=0;g=t.__.length&&t.__.push({__V:$e}),t.__[e]}function D(e){return Ke=1,Xo(Jo,e)}function Xo(e,o,t){var n=Ge(ke++,2);if(n.t=e,!n.__c&&(n.__=[t?t(o):Jo(void 0,o),function(i){var c=n.__N?n.__N[0]:n.__[0],d=n.t(c,i);c!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=F,!F.u)){F.u=!0;var a=F.shouldComponentUpdate;F.shouldComponentUpdate=function(i,c,d){if(!n.__c.__H)return!0;var m=n.__c.__H.__.filter(function(s){return s.__c});if(m.every(function(s){return!s.__N}))return!a||a.call(this,i,c,d);var h=!1;return m.forEach(function(s){if(s.__N){var g=s.__[0];s.__=s.__N,s.__N=void 0,g!==s.__[0]&&(h=!0)}}),!(!h&&n.__c.props===i)&&(!a||a.call(this,i,c,d))}}return n.__N||n.__}function O(e,o){var t=Ge(ke++,3);!_.__s&&Mt(t.__H,o)&&(t.__=e,t.i=o,F.__H.__h.push(t))}function kt(e,o){var t=Ge(ke++,4);!_.__s&&Mt(t.__H,o)&&(t.__=e,t.i=o,F.__h.push(t))}function G(e){return Ke=5,Qe(function(){return{current:e}},[])}function Qe(e,o){var t=Ge(ke++,7);return Mt(t.__H,o)?(t.__V=e(),t.i=o,t.__h=e,t.__V):t.__}function ba(){for(var e;e=Zo.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ye),e.__H.__h.forEach(wt),e.__H.__h=[]}catch(o){e.__H.__h=[],_.__e(o,e.__v)}}_.__b=function(e){F=null,Vo&&Vo(e)},_.__r=function(e){zo&&zo(e),ke=0;var o=(F=e.__c).__H;o&&(yt===F?(o.__h=[],F.__h=[],o.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=$e,t.__N=t.i=void 0})):(o.__h.forEach(Ye),o.__h.forEach(wt),o.__h=[])),yt=F},_.diffed=function(e){Wo&&Wo(e);var o=e.__c;o&&o.__H&&(o.__H.__h.length&&(Zo.push(o)!==1&&Oo===_.requestAnimationFrame||((Oo=_.requestAnimationFrame)||Ca)(ba)),o.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==$e&&(t.__=t.__V),t.i=void 0,t.__V=$e})),yt=F=null},_.__c=function(e,o){o.some(function(t){try{t.__h.forEach(Ye),t.__h=t.__h.filter(function(n){return!n.__||wt(n)})}catch(n){o.some(function(a){a.__h&&(a.__h=[])}),o=[],_.__e(n,t.__v)}}),Uo&&Uo(e,o)},_.unmount=function(e){jo&&jo(e);var o,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{Ye(n)}catch(a){o=a}}),t.__H=void 0,o&&_.__e(o,t.__v))};var qo=typeof requestAnimationFrame=="function";function Ca(e){var o,t=function(){clearTimeout(n),qo&&cancelAnimationFrame(o),setTimeout(e)},n=setTimeout(t,100);qo&&(o=requestAnimationFrame(t))}function Ye(e){var o=F,t=e.__c;typeof t=="function"&&(e.__c=void 0,t()),F=o}function wt(e){var o=F;e.__c=e.__(),F=o}function Mt(e,o){return!e||e.length!==o.length||o.some(function(t,n){return t!==e[n]})}function Jo(e,o){return typeof o=="function"?o(e):o}var Et={};(function e(o,t,n,a){var i=!!(o.Worker&&o.Blob&&o.Promise&&o.OffscreenCanvas&&o.OffscreenCanvasRenderingContext2D&&o.HTMLCanvasElement&&o.HTMLCanvasElement.prototype.transferControlToOffscreen&&o.URL&&o.URL.createObjectURL);function c(){}function d(p){var l=t.exports.Promise,S=l!==void 0?l:o.Promise;return typeof S=="function"?new S(p):(p(c,c),null)}var m=function(){var p=Math.floor(16.666666666666668),l,S,M={},L=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(l=function(P){var E=Math.random();return M[E]=requestAnimationFrame(function x(B){L===B||L+p-1{(0,et.setIcon)(i.current,e)},[e,o]),r("div",Ve({ref:i},t))}function J(e){let{isMobile:o,appId:t}=app;return e==="any"||e===t||e==="mobile"&&o||e==="desktop"&&!o}function Me(e){var t,n;let o="";for(let a of(t=e.hide.leftRibbon)!=null?t:[])o+=`div.side-dock-ribbon-action[aria-label="${a}"] {display: none !important; content-visibility: hidden;}`;for(let a of e.hide.statusbar)o+=`div.status-bar-item.plugin-${a} {display: none !important; content-visibility: hidden;}`;(n=document.head.querySelector("style#cmdr"))==null||n.remove(),o&&document.head.appendChild(createEl("style",{attr:{id:"cmdr"},text:o,type:"text/css"}))}async function xt({target:e}){let o=activeDocument.createElement("canvas");activeDocument.body.appendChild(o),o.style.position="fixed",o.style.width="100vw",o.style.height="100vh",o.style.top="0px",o.style.left="0px",o.style["pointer-events"]="none",o.style["z-index"]="100";let t=$o.create(o,{resize:!0,useWorker:!0}),n=e.getBoundingClientRect();await t({particleCount:et.Platform.isDesktop?160:80,startVelocity:55,spread:75,angle:90,drift:-1,ticks:250,origin:{x:(n.x+n.width/2)/activeWindow.innerWidth,y:(n.y+n.height/2)/activeWindow.innerHeight}}),o.remove()}function tt(e){activeDocument.body.style.setProperty("--cmdr-spacing",`${e}px`)}function Ee(e){let o=Object.keys(app.commands.commands).filter(n=>n.startsWith("cmdr:macro-"));for(let n of o)app.commands.removeCommand(n);let t=e.settings.macros;for(let[n,a]of Object.entries(t))e.addCommand({id:`macro-${n}`,name:a.name,callback:()=>{e.executeMacro(parseInt(n))}})}function oe(e){var n,a;let{classList:o,style:t}=document.body;t.setProperty("--at-button-height",((n=e.rowHeight)!=null?n:48)+"px"),t.setProperty("--at-button-width",((a=e.buttonWidth)!=null?a:48)+"px"),t.setProperty("--at-row-count",e.rowCount.toString()),t.setProperty("--at-spacing",e.spacing+"px"),t.setProperty("--at-offset",e.heightOffset+"px"),o.toggle("AT-multirow",e.rowCount>1),o.toggle("AT-row",!e.columnLayout),o.toggle("AT-column",e.columnLayout),o.toggle("AT-no-toolbar",e.rowCount===0)}function Yo(){let{classList:e,style:o}=document.body;o.removeProperty("--at-button-height"),o.removeProperty("--at-button-width"),o.removeProperty("--at-row-count"),o.removeProperty("--at-spacing"),o.removeProperty("--at-offset"),e.remove("AT-multirow"),e.remove("AT-row"),e.remove("AT-column"),e.remove("AT-no-toolbar"),e.remove("advanced-toolbar")}function ot(e){e.mappedIcons.forEach(o=>{let t=app.commands.commands[o.commandID];t?t.icon=o.iconID:e.mappedIcons.remove(o)})}var Sn=require("obsidian");var xe=require("obsidian");var Go=require("obsidian");function Ko({modal:e}){return r(I,null,r("p",null,u("Are you sure you want to delete the Command?")),r("div",{className:"modal-button-container"},r("button",{className:"mod-warning",onClick:async()=>{e.plugin.settings.confirmDeletion=!1,e.plugin.saveSettings(),e.remove=!0,e.close()}},u("Remove and don't ask again")),r("button",{className:"mod-warning",onClick:()=>{e.remove=!0,e.close()}},u("Remove")),r("button",{onClick:()=>{e.remove=!1,e.close()}},u("Cancel"))))}var V=class extends Go.Modal{constructor(t){super(app);this.plugin=t}async onOpen(){this.titleEl.innerText=u("Remove Command"),this.containerEl.style.zIndex="99",this.reactComponent=r(Ko,{modal:this}),W(this.reactComponent,this.contentEl)}async didChooseRemove(){return this.open(),new Promise(t=>{this.onClose=()=>{var n;return t((n=this.remove)!=null?n:!1)}})}onClose(){W(null,this.contentEl)}};var Z=class{constructor(o,t){this.plugin=o,this.pairs=t}};var ve=class extends Z{constructor(t,n){super(t,n);this.actions=new Map;this.init(),this.plugin.register(()=>this.actions.forEach((a,i)=>this.removeAction(i)))}getFileExplorers(){return app.workspace.getLeavesOfType("file-explorer")}init(){app.workspace.onLayoutReady(()=>{for(let t of this.pairs)J(t.mode)&&(app.workspace.onLayoutReady(()=>{this.getFileExplorers().forEach(a=>{this.addAction(t,a)})}),this.plugin.registerEvent(app.workspace.on("layout-change",()=>{this.getFileExplorers().forEach(a=>{this.addAction(t,a)})})))})}reorder(){this.actions.forEach((t,n)=>this.removeAction(n,!0)),this.init()}async addCommand(t){this.pairs.push(t),app.workspace.onLayoutReady(()=>{this.getFileExplorers().forEach(a=>{this.addAction(t,a)})}),this.plugin.registerEvent(app.workspace.on("layout-change",()=>{this.getFileExplorers().forEach(a=>{this.addAction(t,a)})})),await this.plugin.saveSettings()}async removeCommand(t){this.pairs.remove(t),this.removeAction(t),await this.plugin.saveSettings()}buttonExists(t,n){return[...t.view.containerEl.querySelectorAll("div.nav-buttons-container > .cmdr.clickable-icon")].some(a=>a.getAttribute("data-cmdr")===n.icon+n.name)}addAction(t,n){var m,h,s,g,C;if(this.buttonExists(n,t))return;let a=createDiv({cls:"cmdr clickable-icon",attr:{"aria-label-position":"top","aria-label":t.name,"data-cmdr":t.icon+t.name}});this.actions.set(t,a),a.style.color=t.color==="#000000"||t.color===void 0?"inherit":t.color;let i=!1,c=()=>{a.empty(),(0,xe.setIcon)(a,t.icon),a.onclick=()=>app.commands.executeCommandById(t.id)},d=()=>{a.empty(),(0,xe.setIcon)(a,"trash"),a.onclick=async()=>{(!this.plugin.settings.confirmDeletion||await new V(this.plugin).didChooseRemove())&&this.removeCommand(t)}};a.addEventListener("mouseleave",()=>{c(),i=!1}),a.addEventListener("mousemove",f=>{f.preventDefault(),f.stopImmediatePropagation(),f.shiftKey&&(i||d(),i=!0)}),a.addEventListener("contextmenu",f=>{f.stopImmediatePropagation(),new xe.Menu().addItem(b=>{b.setTitle(u("Add command")).setIcon("command").onClick(async()=>{let y=await q(this.plugin);this.addCommand(y)})}).addSeparator().addItem(b=>{b.setTitle(u("Change Icon")).setIcon("box").onClick(async()=>{let y=await new R(this.plugin).awaitSelection();y&&y!==t.icon&&(t.icon=y,await this.plugin.saveSettings(),this.reorder())})}).addItem(b=>{b.setTitle(u("Rename")).setIcon("text-cursor-input").onClick(async()=>{let y=await new j(t.name).awaitSelection();y&&y!==t.name&&(t.name=y,await this.plugin.saveSettings(),this.reorder())})}).addItem(b=>{b.dom.addClass("is-warning"),b.setTitle(u("Delete")).setIcon("lucide-trash").onClick(async()=>{(!this.plugin.settings.confirmDeletion||await new V(this.plugin).didChooseRemove())&&this.removeCommand(t)})}).showAtMouseEvent(f)}),c(),(C=(g=(s=(h=(m=n.view)==null?void 0:m.containerEl)==null?void 0:h.querySelector)==null?void 0:s.call(h,"div.nav-buttons-container"))==null?void 0:g.appendChild)==null||C.call(g,a)}removeAction(t,n=!1){let a=this.actions.get(t);if(!!a){if(n){a.remove(),this.actions.delete(t);return}a.addClass("cmdr-ribbon-removing"),a.addEventListener("transitionend",async()=>{a.remove(),this.actions.delete(t)})}}};var se=require("obsidian");var nt=class extends Z{async addCommand(o){this.pairs.push(o),await this.plugin.saveSettings()}async removeCommand(o){this.pairs.remove(o),await this.plugin.saveSettings()}reorder(){}addRemovableCommand(o,t,n,a,i){return c=>{var f;c.dom.addClass("cmdr"),c.dom.style.color=t.color==="#000000"||t.color===void 0?"inherit":t.color,c.setSection("cmdr"),c.dom.style.display="flex";let d=createDiv({cls:"cmdr-menu-more-options"}),m=null;d.addEventListener("click",b=>{b.preventDefault(),b.stopImmediatePropagation(),m?(m.hide(),m=null):m=new se.Menu().addItem(y=>{y.setTitle(u("Change Icon")).setIcon("box").onClick(async()=>{let v=await new R(n).awaitSelection();v&&v!==t.icon&&(t.icon=v,await n.saveSettings())})}).addItem(y=>{y.setTitle(u("Rename")).setIcon("text-cursor-input").onClick(async()=>{let v=await new j(t.name).awaitSelection();v&&v!==t.name&&(t.name=v,await n.saveSettings())})}).addItem(y=>{y.dom.addClass("is-warning"),y.setTitle(u("Delete")).setIcon("lucide-trash").onClick(async()=>{(!n.settings.confirmDeletion||await new V(n).didChooseRemove())&&C()})}).showAtMouseEvent(b)}),(0,se.setIcon)(d,"more-vertical"),c.dom.append(d),c.setTitle((f=t.name)!=null?f:o.name).setIcon(t.icon).onClick(()=>app.commands.executeCommandById(t.id));let h=!1,s=()=>{d.style.display="none"},g=()=>{d.style.display="block"},C=async()=>{c.dom.addClass("cmdr-removing"),a.registerDomEvent(c.dom,"transitionend",()=>{c.dom.remove()}),i.remove(t),await n.saveSettings()};a.registerDomEvent(c.dom,"mousemove",b=>{b.preventDefault(),b.stopImmediatePropagation(),h||g(),h=!0}),a.registerDomEvent(c.dom,"mouseleave",()=>{s(),h=!1}),s()}}addCommandAddButton(o,t,n){o.settings.showAddCommand&&t.addItem(a=>{a.setTitle(u("Add command")).setIcon("plus-circle").setSection("cmdr").onClick(async()=>{try{let i=await q(o);n.push(i),await o.saveSettings()}catch(i){console.log(i)}})})}},Se=class extends nt{applyEditorMenuCommands(o){return async(t,n,a)=>{this.addCommandAddButton(o,t,o.settings.editorMenu);for(let i of o.settings.editorMenu){let c=Q(i.id);!c||!J(i.mode)||c.checkCallback&&!c.checkCallback(!0)||c.editorCheckCallback&&!c.editorCheckCallback(!0,n,a)||t.addItem(this.addRemovableCommand.call(this,c,i,o,t,o.settings.editorMenu))}}}},Ie=class extends nt{applyFileMenuCommands(o){return async(t,n,a,i)=>{this.addCommandAddButton(o,t,o.settings.fileMenu);for(let c of o.settings.fileMenu){let d=Q(c.id);if(!!d&&!(d.checkCallback&&!d.checkCallback(!0))){if(d.editorCallback){if(!((i==null?void 0:i.view)instanceof se.MarkdownView))continue}else if(d.editorCheckCallback)if((i==null?void 0:i.view)instanceof se.MarkdownView){if(!d.editorCheckCallback(!0,i.view.editor,i.view))continue}else continue;t.addItem(this.addRemovableCommand.call(this,d,c,o,t,o.settings.fileMenu))}}}}};var ce=require("obsidian");var ge=class extends Z{constructor(t,n){super(t,n);this.buttons=new WeakMap;this.init()}addPageHeaderButton(t,n){let{id:a,icon:i,name:c}=n,{view:d}=t;if(!(d instanceof ce.ItemView))return;let m=this.buttonsFor(t,!0);if(!m||m.has(a))return;let h=d.addAction(i,c,()=>{app.workspace.setActiveLeaf(t,{focus:!0}),app.commands.executeCommandById(a)});m.set(a,h),h.addClasses(["cmdr-page-header",a]),h.style.color=n.color==="#000000"||n.color===void 0?"inherit":n.color,h.addEventListener("contextmenu",s=>{s.stopImmediatePropagation(),new ce.Menu().addItem(g=>{g.setTitle(u("Add command")).setIcon("command").onClick(async()=>{let C=await q(this.plugin);this.addCommand(C)})}).addSeparator().addItem(g=>{g.setTitle(u("Change Icon")).setIcon("box").onClick(async()=>{let C=await new R(this.plugin).awaitSelection();C&&C!==n.icon&&(n.icon=C,await this.plugin.saveSettings(),this.reorder())})}).addItem(g=>{g.setTitle(u("Rename")).setIcon("text-cursor-input").onClick(async()=>{let C=await new j(n.name).awaitSelection();C&&C!==n.name&&(n.name=C,await this.plugin.saveSettings(),this.reorder())})}).addItem(g=>{g.dom.addClass("is-warning"),g.setTitle(u("Delete")).setIcon("lucide-trash").onClick(async()=>{(!this.plugin.settings.confirmDeletion||await new V(this.plugin).didChooseRemove())&&this.removeCommand(n)})}).showAtMouseEvent(s)})}init(){this.plugin.register(()=>{this.removeButtonsFromAllLeaves()}),this.plugin.registerEvent(app.workspace.on("layout-change",()=>{this.addButtonsToAllLeaves()})),app.workspace.onLayoutReady(()=>setTimeout(()=>this.addButtonsToAllLeaves(),100))}addAdderButton(t){var c;let{view:n}=t,a="cmdr-adder";if(!(n instanceof ce.ItemView)||(c=this.buttons.get(n))!=null&&c.has(a))return;let i=n.addAction("plus",u("Add new"),async()=>{this.addCommand(await q(this.plugin))});i.addClasses(["cmdr",a]),this.buttons.has(n)||this.buttons.set(n,new Map),this.buttons.get(n).set(a,i)}addButtonsToAllLeaves(t=!1){activeWindow.requestAnimationFrame(()=>app.workspace.iterateAllLeaves(n=>this.addButtonsToLeaf(n,t)))}removeButtonsFromAllLeaves(){activeWindow.requestAnimationFrame(()=>app.workspace.iterateAllLeaves(t=>this.removeButtonsFromLeaf(t)))}buttonsFor(t,n=!1){if(t.view instanceof ce.ItemView)return n&&!this.buttons.has(t.view)&&this.buttons.set(t.view,new Map),this.buttons.get(t.view)}addButtonsToLeaf(t,n=!1){var a;if(t.view instanceof ce.ItemView){if(n)this.removeButtonsFromLeaf(t);else if((a=this.buttonsFor(t))!=null&&a.size)return;for(let i=this.pairs.length-1;i>=0;i--){let c=this.pairs[i];J(c.mode)&&this.addPageHeaderButton(t,c)}this.plugin.settings.showAddCommand&&this.addAdderButton(t)}}removeButtonsFromLeaf(t){let n=this.buttonsFor(t);if(n){for(let a of n.values())a.detach();n==null||n.clear()}}reorder(){this.addButtonsToAllLeaves(!0)}async addCommand(t){this.pairs.push(t),this.addButtonsToAllLeaves(!0),await this.plugin.saveSettings()}async removeCommand(t){this.pairs.remove(t),this.addButtonsToAllLeaves(!0),await this.plugin.saveSettings()}};var le=require("obsidian");var be=class extends Z{constructor(t,n){super(t,n);this.actions=new Map;this.addBtn=createDiv({cls:"cmdr status-bar-item cmdr-adder",attr:{"aria-label-position":"top","aria-label":u("Add new")}});this.init(),this.plugin.register(()=>this.actions.forEach((a,i)=>this.removeAction(i)))}init(){app.workspace.onLayoutReady(()=>{this.container=app.statusBar.containerEl;for(let t of this.pairs)Q(t.id)||this.pairs.remove(t),J(t.mode)&&this.addAction(t);this.plugin.saveSettings(),this.plugin.registerDomEvent(this.container,"contextmenu",t=>{t.target===this.container&&new le.Menu().addItem(n=>{n.setTitle(u("Add command")).setIcon("command").onClick(async()=>{let a=await q(this.plugin);this.addCommand(a)})}).showAtMouseEvent(t)}),this.plugin.register(()=>this.addBtn.remove()),(0,le.setIcon)(this.addBtn,"plus"),this.addBtn.onclick=async()=>{let t=await q(this.plugin);this.addCommand(t),this.reorder()},this.plugin.settings.showAddCommand&&this.container.prepend(this.addBtn)})}reorder(){this.addBtn.remove(),this.actions.forEach((t,n)=>this.removeAction(n,!0)),this.init()}async addCommand(t){this.pairs.push(t),this.addAction(t),await this.plugin.saveSettings()}async removeCommand(t){this.pairs.remove(t),this.removeAction(t),await this.plugin.saveSettings()}addAction(t){let n=createDiv({cls:"cmdr status-bar-item clickable-icon",attr:{"aria-label-position":"top","aria-label":t.name}});this.actions.set(t,n),n.style.color=t.color==="#000000"||t.color===void 0?"inherit":t.color;let a=!1,i=()=>{n.empty(),(0,le.setIcon)(n,t.icon),n.onclick=()=>app.commands.executeCommandById(t.id)},c=()=>{n.empty(),(0,le.setIcon)(n,"trash"),n.onclick=async()=>{(!this.plugin.settings.confirmDeletion||await new V(this.plugin).didChooseRemove())&&this.removeCommand(t)}};n.addEventListener("mouseleave",()=>{i(),a=!1}),n.addEventListener("mousemove",d=>{d.preventDefault(),d.stopImmediatePropagation(),d.shiftKey&&(a||c(),a=!0)}),n.addEventListener("contextmenu",d=>{d.stopImmediatePropagation(),new le.Menu().addItem(m=>{m.setTitle(u("Add command")).setIcon("command").onClick(async()=>{let h=await q(this.plugin);this.addCommand(h)})}).addSeparator().addItem(m=>{m.setTitle(u("Change Icon")).setIcon("box").onClick(async()=>{let h=await new R(this.plugin).awaitSelection();h&&h!==t.icon&&(t.icon=h,await this.plugin.saveSettings(),this.reorder())})}).addItem(m=>{m.setTitle(u("Rename")).setIcon("text-cursor-input").onClick(async()=>{let h=await new j(t.name).awaitSelection();h&&h!==t.name&&(t.name=h,await this.plugin.saveSettings(),this.reorder())})}).addItem(m=>{m.dom.addClass("is-warning"),m.setTitle(u("Delete")).setIcon("lucide-trash").onClick(async()=>{(!this.plugin.settings.confirmDeletion||await new V(this.plugin).didChooseRemove())&&this.removeCommand(t)})}).showAtMouseEvent(d)}),i(),this.container.prepend(n)}removeAction(t,n=!1){let a=this.actions.get(t);if(!!a){if(n){a.remove(),this.actions.delete(t);return}a.addClass("cmdr-ribbon-removing"),a.addEventListener("transitionend",async()=>{a.remove(),this.actions.delete(t)})}}};var Qo=require("obsidian");var ct=require("obsidian");var X=require("obsidian");var Tt=require("obsidian");var en=["https://github.com/jsmorabito","https://github.com/phibr0","https://www.youtube.com/watch?v=dQw4w9WgXcQ"];function St(){let[e,o]=D(0);return r("div",{className:"cmdr-credits"},r("span",{onClick:()=>{o(t=>t+1),location.replace(en[e%en.length])}},u("By Johnny\u2728 and phibr0")))}function ya(e,o){for(var t in o)e[t]=o[t];return e}function Pt(e,o){for(var t in e)if(t!=="__source"&&!(t in o))return!0;for(var n in o)if(n!=="__source"&&e[n]!==o[n])return!0;return!1}function tn(e){this.props=e}function dn(e,o){function t(a){var i=this.props.ref,c=i==a.ref;return!c&&i&&(i.call?i(null):i.current=null),o?!o(this.props,a)||!c:Pt(this.props,a)}function n(a){return this.shouldComponentUpdate=t,r(e,a)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(tn.prototype=new K).isPureReactComponent=!0,tn.prototype.shouldComponentUpdate=function(e,o){return Pt(this.props,e)||Pt(this.state,o)};var on=_.__b;_.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),on&&on(e)};var xs=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var wa=_.__e;_.__e=function(e,o,t,n){if(e.then){for(var a,i=o;i=i.__;)if((a=i.__c)&&a.__c)return o.__e==null&&(o.__e=t.__e,o.__k=t.__k),a.__c(e,o)}wa(e,o,t,n)};var nn=_.unmount;function mn(e,o,t){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=ya({},e)).__c!=null&&(e.__c.__P===t&&(e.__c.__P=o),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return mn(n,o,t)})),e}function un(e,o,t){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return un(n,o,t)}),e.__c&&e.__c.__P===o&&(e.__e&&t.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=t)),e}function It(){this.__u=0,this.t=null,this.__b=null}function pn(e){var o=e.__.__c;return o&&o.__a&&o.__a(e)}function at(){this.u=null,this.o=null}_.unmount=function(e){var o=e.__c;o&&o.__R&&o.__R(),o&&e.__h===!0&&(e.type=null),nn&&nn(e)},(It.prototype=new K).__c=function(e,o){var t=o.__c,n=this;n.t==null&&(n.t=[]),n.t.push(t);var a=pn(n.__v),i=!1,c=function(){i||(i=!0,t.__R=null,a?a(d):d())};t.__R=c;var d=function(){if(!--n.__u){if(n.state.__a){var h=n.state.__a;n.__v.__k[0]=un(h,h.__c.__P,h.__c.__O)}var s;for(n.setState({__a:n.__b=null});s=n.t.pop();)s.forceUpdate()}},m=o.__h===!0;n.__u++||m||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(c,c)},It.prototype.componentWillUnmount=function(){this.t=[]},It.prototype.render=function(e,o){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=mn(this.__b,t,n.__O=n.__P)}this.__b=null}var a=o.__a&&r(I,null,e.fallback);return a&&(a.__h=null),[r(I,null,o.__a?null:e.children),a]};var an=function(e,o,t){if(++t[1]===t[0]&&e.o.delete(o),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]{xt(n),setTimeout(()=>location.replace("https://forms.gle/hPjn61G9bqqFb3256"),Math.random()*800+500)}},r(k,{icon:"message-square",size:20}),u("Leave feedback")),t=r("button",{className:"mod-cta",onClick:n=>{xt(n),setTimeout(()=>location.replace("https://ko-fi.com/phibr0"),Math.random()*800+500)}},r(k,{icon:"coffee",size:20}),u("Support development"));return r("div",{className:"cmdr-about"},Tt.Platform.isMobile&&[r("hr",null),o,t],Tt.Platform.isDesktop&&[r("div",{className:"setting-item mod-toggle",style:{width:"100%",borderTop:"1px solid var(--background-modifier-border)",paddingTop:"18px"}},r("div",{className:"setting-item-info"},r("div",{className:"setting-item-name"},u("Leave feedback")),r("div",{className:"setting-item-description"},u("Share feedback, issues, and ideas with our feedback form."))),r("div",{className:"setting-item-control"},o)),r("div",{className:"setting-item mod-toggle",style:{width:"100%"}},r("div",{className:"setting-item-info"},r("div",{className:"setting-item-name"},u("Donate")),r("div",{className:"setting-item-description"},u("Consider donating to support development."))),r("div",{className:"setting-item-control"},t)),r("hr",null)],r(Ce,null),r("b",null,e.name),r(St,null),r("a",{className:"cmdr-version",href:"https://github.com/phibr0/obsidian-commander/releases/tag/"+e.version},e.version))}var z=require("obsidian");function At(e,o){if(e.empty(),new z.Setting(e).setName("Toolbar Row Count").setDesc("Set how many Rows the Mobile Toolbar should have. Set this to 0 to remove the Toolbar.").addSlider(n=>n.setLimits(0,5,1).setValue(o.settings.advancedToolbar.rowCount).setDynamicTooltip().onChange(async a=>{o.settings.advancedToolbar.rowCount=a,await o.saveSettings(),oe(o.settings.advancedToolbar)})),new z.Setting(e).setName("Column Layout").setDesc("Use a column based layout instead of the default row. This makes it easier to arrange the Commands.").addToggle(n=>n.setValue(o.settings.advancedToolbar.columnLayout).onChange(async a=>{o.settings.advancedToolbar.columnLayout=a,await o.saveSettings(),oe(o.settings.advancedToolbar)})),new z.Setting(e).setName("Bottom Offset").setDesc("Offset the Toolbar from the Bottom of the Screen. This is useful if the toolbar is partially obscured by other UI Elements.").addSlider(n=>n.setLimits(0,32,1).setValue(o.settings.advancedToolbar.heightOffset).setDynamicTooltip().onChange(async a=>{o.settings.advancedToolbar.heightOffset=a,await o.saveSettings(),oe(o.settings.advancedToolbar)})),z.Platform.isMobile){let n=document.createDocumentFragment();n.appendChild(createEl("h3",{text:"Custom Icons"})),e.appendChild(n),o.getCommandsWithoutIcons().forEach(a=>{new z.Setting(e).setName(a.name).setDesc(`ID: ${a.id}`).addButton(i=>{var d;let c=i.buttonEl.createDiv({cls:"AT-settings-icon"});if(a.icon)(0,z.setIcon)(c,a.icon);else{let m=(d=o.settings.advancedToolbar.mappedIcons.find(h=>h.commandID===a.id))==null?void 0:d.iconID;m?(0,z.setIcon)(c,m):i.setButtonText("No Icon")}i.onClick(async()=>{let m=await new R(o).awaitSelection(),h=o.settings.advancedToolbar.mappedIcons.find(s=>s.commandID===a.id);h?h.iconID=m:o.settings.advancedToolbar.mappedIcons.push({commandID:a.id,iconID:m}),await o.saveSettings(),ot(o.settings.advancedToolbar),At(e,o)})}).addExtraButton(i=>{i.setIcon("reset").setTooltip("Reset to default - Requires a restart").onClick(async()=>{o.settings.advancedToolbar.mappedIcons=o.settings.advancedToolbar.mappedIcons.filter(c=>c.commandID!==a.id),delete a.icon,delete app.commands.commands[a.id].icon,await o.saveSettings(),At(e,o),new z.Notice("If the default Icon doesn't appear, you might have to restart Obsidian.")})})})}let t=e.appendChild(createEl("div",{cls:"cmdr-sep-con",attr:{style:"margin-top: 64px"}}));t.appendChild(createEl("div",{text:"Advanced Settings",attr:{style:"margin-bottom: 8px; font-weight: bold"}})),new z.Setting(t).setName("Button Height").setDesc("Change the Height of each Button inside the Mobile Toolbar (in px).").addText(n=>{var a,i;return n.setValue((i=(a=o.settings.advancedToolbar.rowHeight)==null?void 0:a.toString())!=null?i:"48").setPlaceholder("48").onChange(async c=>{let d=Number(c),m=isNaN(d);n.inputEl.toggleClass("is-invalid",m),m||(o.settings.advancedToolbar.rowHeight=d,await o.saveSettings(),oe(o.settings.advancedToolbar))})}),new z.Setting(t).setName("Button Width").setDesc("Change the Width of each Button inside the Mobile Toolbar (in px).").addText(n=>{var a,i;return n.setValue((i=(a=o.settings.advancedToolbar.buttonWidth)==null?void 0:a.toString())!=null?i:"48").setPlaceholder("48").onChange(async c=>{let d=Number(c),m=isNaN(d);n.inputEl.toggleClass("is-invalid",m),m||(o.settings.advancedToolbar.buttonWidth=d,await o.saveSettings(),oe(o.settings.advancedToolbar))})}),new z.Setting(t).setName("Toolbar Extra Spacing").setDesc("Some Themes need extra spacing in the toolbar. If your Toolbar doesn't wrap properly, try increasing this value.").addSlider(n=>n.setLimits(0,64,1).setValue(o.settings.advancedToolbar.spacing).setDynamicTooltip().onChange(async a=>{o.settings.advancedToolbar.spacing=a,await o.saveSettings(),oe(o.settings.advancedToolbar)}))}function Nt({plugin:e}){let o=G(null);return O(()=>(o.current&&At(o.current,e),()=>o.current&&o.current.empty()),[]),r(I,null,r("div",{className:"cmdr-sep-con callout","data-callout":"info"},r("span",{className:"cmdr-callout-warning"},r(k,{icon:"alert-circle"})," ","Info"),r("p",{className:"cmdr-warning-description"},"The Toolbar is only available in Obsidian Mobile. ",z.Platform.isMobile&&r(I,null,"To configure which Commands show up in the Toolbar, open the Mobile Settings.")),z.Platform.isMobile&&r("button",{onClick:()=>{app.setting.openTabById("mobile")},className:"mod-cta"},"Open Mobile Settings")),r("div",{ref:o,style:{paddingBottom:"128px"}}))}var me=require("obsidian");var Cn=require("obsidian");var bn=require("obsidian");var it=({initialColor:e,onChange:o})=>{let t=G(null);return O(()=>(t.current&&new bn.ColorComponent(t.current).setValue(e).onChange(o),()=>{var n,a;return(a=(n=t.current)==null?void 0:n.empty)==null?void 0:a.call(n)}),[o,e]),r("div",{ref:t,className:"cmdr-flex cmdr-items-center"})};function Dt({modal:e}){var o;return O(()=>{let t=()=>{this.forceUpdate()};return addEventListener("cmdr-icon-changed",t),()=>removeEventListener("cmdr-icon-changed",t)},[]),r("div",{className:"cmdr-mobile-modify-grid"},r("div",{className:"cmdr-mobile-modify-option",onClick:e.handleNewIcon},r("span",null,u("Icon")),r("span",{className:"cmdr-flex cmdr-gap-1"},r(k,{icon:e.pair.icon,size:20,className:"clickable-icon",style:{marginRight:"0px"}}),r(it,{initialColor:(o=e.pair.color)!=null?o:"#000",onChange:e.handleColorChange}))),r("div",{className:"cmdr-mobile-modify-option"},r("span",null,u("Name")),r("input",{onBlur:({currentTarget:t})=>e.handleRename(t.value),type:"text",placeholder:u("Custom Name"),value:e.pair.name})),r("div",{className:"cmdr-mobile-modify-option"},r("select",{className:"dropdown",value:e.pair.mode,onChange:({currentTarget:t})=>e.handleModeChange(t.value)},r("option",{value:"any"},u("Add command to all devices")),r("option",{value:"mobile"},u("Add command only to mobile devices")),r("option",{value:"desktop"},u("Add command only to desktop devices")),r("option",{value:app.appId},u("Add command only to this device")))),r("div",{className:"modal-button-container"},r("button",{className:"mod-cta",onClick:()=>e.close()},u("Done"))))}var de=class extends Cn.Modal{constructor(t,n,a,i,c){super(app);this.pair=t;this.handleRename=n;this.handleNewIcon=a;this.handleModeChange=i;this.handleColorChange=c}async onOpen(){this.titleEl.innerText=this.pair.name,this.reactComponent=r(Dt,{modal:this}),W(this.reactComponent,this.contentEl)}onClose(){W(null,this.contentEl)}};function Pe({value:e,handleChange:o,ariaLabel:t}){let[n,a]=D(!1),i=G(null),[c,d]=D(0);return O(()=>{var m,h;(m=i==null?void 0:i.current)==null||m.select(),(h=i==null?void 0:i.current)==null||h.focus()}),r("div",{class:"cmdr-editable"},n?r("input",{type:"text",value:e,style:{width:c+25+"px"},onKeyDown:m=>{m.key==="Enter"&&m.target.value.length>0&&(a(!1),o(m))},onBlur:()=>a(!1),ref:i}):r("span",{onDblClick:({target:m})=>{d(m==null?void 0:m.offsetWidth),a(!0)},"aria-label":t},e))}function Bt({pair:e,handleRemove:o,handleDown:t,handleUp:n,handleNewIcon:a,handleRename:i,handleModeChange:c,handleColorChange:d,sortable:m=!0}){var v;let h=Q(e.id);if(!h)return r(I,null,me.Platform.isDesktop&&r("div",{className:"setting-item mod-toggle"},r(k,{icon:"alert-triangle",size:20,className:"cmdr-icon clickable-icon mod-warning"}),r("div",{className:"setting-item-info"},r("div",{className:"setting-item-name"},e.name),r("div",{className:"setting-item-description"},u("This Command is not available on this device."))),r("div",{className:"setting-item-control"},r("button",{className:"mod-warning",style:"display: flex",onClick:o,"aria-label":u("Delete")},r(k,{icon:"lucide-trash"})))),me.Platform.isMobile&&r("div",{className:"mobile-option-setting-item",onClick:()=>{new me.Notice(u("This Command is not available on this device."))}},r("span",{className:"mobile-option-setting-item-remove-icon",onClick:o},r(k,{icon:"minus-with-circle",size:22,style:{color:"var(--text-error)"}})),r("span",{className:"mobile-option-setting-item-option-icon mod-warning"},r(k,{icon:"alert-triangle",size:22})),r("span",{className:"mobile-option-setting-item-name"},e.name)));let s=h.id.split(":").first(),g=app.plugins.manifests[s],C=!g,f=h.hasOwnProperty("checkCallback")||h.hasOwnProperty("editorCheckCallback"),b=Ha(e.mode),y=e.mode.match(/desktop|mobile|any/)?e.mode[0].toUpperCase()+e.mode.substring(1):u("This device");return r(I,null,me.Platform.isDesktop&&r("div",{className:"setting-item mod-toggle"},r(k,{icon:e.icon,size:20,"aria-label":u("Choose new"),onClick:a,className:"cmdr-icon clickable-icon"}),r("div",{className:"setting-item-info"},r("div",{className:"setting-item-name"},r(Pe,{ariaLabel:u("Double click to rename"),handleChange:({target:T})=>{i(T==null?void 0:T.value)},value:e.name}),e.name!==h.name&&r("span",{style:"margin-left: .8ex"},"(",h.name,")")),r("div",{className:"setting-item-description"},u("Added by {{plugin_name}}.".replace("{{plugin_name}}",C?"Obsidian":g.name))," ",f?u("Warning: This is a checked Command, meaning it might not run under every circumstance."):"")),r("div",{className:"setting-item-control"},r(it,{initialColor:(v=e.color)!=null?v:"#000",onChange:d}),m&&r(I,null,r(k,{icon:"arrow-down",className:"setting-editor-extra-setting-button clickable-icon",onClick:t,"aria-label":u("Move down")}),r(k,{icon:"arrow-up",className:"setting-editor-extra-setting-button clickable-icon",onClick:n,"aria-label":u("Move up")})),r(k,{icon:b,className:"setting-editor-extra-setting-button clickable-icon",onClick:()=>c(),"aria-label":u("Change Mode (Currently: {{current_mode}})").replace("{{current_mode}}",y)}),r("button",{className:"mod-warning",style:"display: flex",onClick:o,"aria-label":u("Delete")},r(k,{icon:"lucide-trash"})))),me.Platform.isMobile&&r("div",{className:"mobile-option-setting-item"},r("span",{className:"mobile-option-setting-item-remove-icon",onClick:o},r(k,{icon:"minus-with-circle",size:22,style:{color:"var(--text-error)"}})),r("span",{className:"mobile-option-setting-item-option-icon"},r(k,{icon:e.icon,size:22,onClick:()=>{new de(e,i,a,c,d).open()}})),r("span",{className:"mobile-option-setting-item-name",onClick:()=>{new de(e,i,a,c,d).open()}},e.name,e.name!==h.name&&r("span",{className:"cmdr-option-setting-name"},"(",h.name,")")),r("span",{className:"mobile-option-setting-item-option-icon"},m&&r(I,null,r(k,{icon:"arrow-down",className:"clickable-icon",onClick:t}),r(k,{icon:"arrow-up",className:"clickable-icon",onClick:n})),r(k,{icon:"three-horizontal-bars",className:"clickable-icon",onClick:()=>{new de(e,i,a,c,d).open()}}))))}function Ha(e){return e==="mobile"?"smartphone":e==="desktop"?"monitor":e==="any"?"cmdr-all-devices":"airplay"}function Ht(e,o,t){let n=o<0?e.length+o:o;if(n>=0&&n{if(a.mode.match(/desktop|mobile|any/)||a.mode===app.appId)return r(Bt,{sortable:n,key:a.id,pair:a,handleRemove:async()=>{(!o.settings.confirmDeletion||await new V(o).didChooseRemove())&&(await e.removeCommand(a),this.forceUpdate())},handleUp:()=>{Ht(e.pairs,i,i-1),e.reorder(),this.forceUpdate()},handleDown:()=>{Ht(e.pairs,i,i+1),e.reorder(),this.forceUpdate()},handleRename:async c=>{a.name=c,await o.saveSettings(),e.reorder(),this.forceUpdate()},handleNewIcon:async()=>{let c=await new R(o).awaitSelection();c&&c!==a.icon&&(a.icon=c,await o.saveSettings(),e.reorder(),this.forceUpdate()),dispatchEvent(new Event("cmdr-icon-changed"))},handleModeChange:async c=>{let d=["any","desktop","mobile",app.appId],m=d.indexOf(a.mode);m===3&&(m=-1),a.mode=c||d[m+1],await o.saveSettings(),e.reorder(),this.forceUpdate()},handleColorChange:async c=>{a.color=c,await o.saveSettings(),e.reorder()}})})),!e.pairs.some(a=>J(a.mode)||a.mode.match(/mobile|desktop/))&&r("div",{class:"cmdr-commands-empty"},r(Ce,null),r("h3",null,u("No commands here!")),r("span",null,u("Would you like to add one now?"))),_n.Platform.isMobile&&r("hr",null),r("div",{className:"cmdr-add-new-wrapper"},r("button",{className:"mod-cta",onClick:async()=>{let a=await q(o);await e.addCommand(a),e.reorder(),this.forceUpdate()}},u("Add command")))),t)}function rt({title:e,children:o}){let[t,n]=D(!1);return r("div",{className:"cmdr-accordion cmdr-sep-con","aria-expanded":t},r("div",{className:"cmdr-accordion-header cmdr-mb-1",onClick:()=>{n(!t)}},r(k,{className:"cmdr-accordion-chevron clickable-icon",icon:"chevron-down",size:24}),r("span",null,e)),r("div",{className:"cmdr-accordion-content",style:{maxHeight:[o].flat().length*120+"px"}},o))}function Rt({name:e,description:o,children:t,className:n}){return r("div",{className:`setting-item ${n}`},r("div",{className:"setting-item-info"},r("div",{className:"setting-item-name"},e),r("div",{className:"setting-item-description"},o)),r("div",{className:"setting-item-control"},t))}function Ft(e){let[o,t]=D(e.value);return r(Rt,{name:e.name,description:e.description,className:"mod-toggle"},r("div",{className:`checkbox-container ${o?"is-enabled":""}`,onClick:()=>{t(!o),e.changeHandler(o)}}))}function Ot({name:e,description:o,changeHandler:t,value:n,hideLabel:a,showLabel:i}){let[c,d]=D(n);return r(Rt,{name:e,description:o,className:"mod-toggle"},r(k,{"aria-label":c?i:a,icon:c?"eye-off":"eye",size:20,className:"clickable-icon",onClick:()=>{d(!c),t(c)}}))}function st(e){var n,a,i;let[o,t]=D(e.value);return r(Rt,{description:e.description,name:e.name,className:"cmdr-slider"},r("div",null,r(Pe,{ariaLabel:u("Double click to enter custom value"),value:o.toString(),handleChange:({target:c})=>{let d=Number(c.value);!isNaN(d)&&o!==d&&(t(d),e.changeHandler(d))}}),r("input",{class:"slider",type:"range",min:(n=e.min)!=null?n:"0",max:(a=e.max)!=null?a:"32",step:(i=e.step)!=null?i:"1",value:o,onPointerMove:({target:c})=>{o!==c.value&&(t(c.value),e.changeHandler(c.value))}})))}function yn({plugin:e}){let[o,t]=D([]),n=e.settings.hide.leftRibbon;return O(()=>{t(app.workspace.leftRibbon.items.map(a=>({name:a.title,icon:a.icon})))},[]),r(I,null,r("hr",null),r(rt,{title:u("Hide other Commands")},o.map(a=>r(Ot,{name:a.name,description:"",hideLabel:u("Hide"),showLabel:u("Show"),changeHandler:async i=>{i?n.contains(a.name)&&n.remove(a.name):n.push(a.name),Me(e.settings),await e.saveSettings()},value:n.contains(a.name)}))))}function wn({plugin:e}){let o=e.settings.hide.statusbar,[t,n]=D([]);return O(()=>{let i=[...app.statusBar.containerEl.getElementsByClassName("status-bar-item")].map(c=>[...c.classList].find(d=>d.startsWith("plugin-"))).filter(c=>c).map(c=>c.substring(7));n(i.map(c=>app.plugins.manifests[c]||{id:c,name:c.replace(/-/g," ").replace(/(^\w{1})|(\s+\w{1})/g,d=>d.toUpperCase()),description:"Core Plugin"}))},[]),r(I,null,r("hr",null),r(rt,{title:u("Hide other Commands")},t.map(a=>r(Ot,{name:a.name,description:a.description,value:o.contains(a.id),hideLabel:u("Hide"),showLabel:u("Show"),changeHandler:async i=>{i?o.contains(a.id)&&o.remove(a.id):o.push(a.id),Me(e.settings),await e.saveSettings()}}))))}var En=require("obsidian");var Mn=require("obsidian");function kn({plugin:e,macro:o,onSave:t,onCancel:n}){let[a,i]=D(o.name||"Macro Name"),[c,d]=D(o.icon||"star"),[m,h]=D(o.startup||!1),[s,g]=D(JSON.parse(JSON.stringify(o.macro))||[]),C=this.forceUpdate.bind(this),f=async()=>{let y=await new ne(e).awaitSelection();y&&g([...s,{action:0,commandId:y.id}])},b=async()=>{g([...s,{action:1,delay:250}])};return r("div",null,r("div",{class:"setting-item cmdr-mm-item"},r("div",null,r("span",null,"Name"),r("input",{type:"text",placeholder:"Macro Name",value:a,onChange:y=>i(y.currentTarget.value),width:"100%"})),r("div",null,r("span",null,"Icon"),r("button",{onClick:async()=>d(await new R(e).awaitSelection())},r(k,{icon:c})))),s.map((y,v)=>{switch(y.action){case 0:let T=Q(y.commandId);return r("div",{class:"setting-item cmdr-mm-item"},r("div",null,r("button",{onClick:async()=>{let w=await new ne(e).awaitSelection();g(s.map((H,ee)=>ee===v?Yt(Ve({},H),{commandId:w.id}):H))}},(T==null?void 0:T.name)||"Cannot find Command")),r("div",null,r("div",{class:"cmdr-mm-action-options"},r(k,{class:"clickable-icon",icon:"arrow-down",onClick:()=>{if(v===s.length-1)return;let w=[...s],H=w[v];w[v]=w[v+1],w[v+1]=H,g(w)}}),r(k,{class:"clickable-icon",icon:"arrow-up",onClick:()=>{if(v===0)return;let w=[...s],H=w[v];w[v]=w[v-1],w[v-1]=H,g(w)}}),r(k,{class:"clickable-icon",icon:"cross",onClick:()=>{g(s.filter((w,H)=>H!==v))}}))));case 1:return r("div",{class:"setting-item cmdr-mm-item"},r("div",null,r(st,{name:"Delay",min:0,max:1e4,step:50,description:"Delay in milliseconds",value:y.delay,changeHandler:w=>y.delay=w})),r("div",null,r("div",{class:"cmdr-mm-action-options"},r(k,{class:"clickable-icon",icon:"arrow-down",onClick:()=>{if(v===s.length-1)return;let w=[...s],H=w[v];w[v]=w[v+1],w[v+1]=H,g(w)}}),r(k,{class:"clickable-icon",icon:"arrow-up",onClick:()=>{if(v===0)return;let w=[...s],H=w[v];w[v]=w[v-1],w[v-1]=H,g(w)}}),r(k,{class:"clickable-icon",icon:"cross",onClick:()=>{g(s.filter((w,H)=>H!==v))}}))));case 2:return r("div",null,"Editor: ",y.action);case 3:return r("div",null,"Loop: ",y.times)}}),r("div",{className:"setting-item cmdr-mm-actions cmdr-justify-between"},r("div",{className:"cmdr-flex cmdr-items-center cmdr-justify-self-start"},r("input",{type:"checkbox",id:"checkbox",checked:m,onChange:({target:y})=>{var v;h((v=y==null?void 0:y.checked)!=null?v:!1)}}),r("label",{htmlFor:"checkbox"},"Auto-Run on Startup")),r("div",null,r("button",{onClick:f},"Add Command"),r("button",{onClick:b},"Add Delay"))),r("div",{className:"cmdr-mm-control"},r("button",{class:s.length===0?"disabled":"mod-cta",disabled:s.length===0,onClick:()=>s.length&&t({macro:s,name:a,icon:c,startup:m})},"Save"),r("button",{onClick:n},"Cancel")))}var Te=class extends Mn.Modal{constructor(t,n,a){super(app);this.macro=n,this.plugin=t,this.onSave=a}onOpen(){this.titleEl.setText("Macro Builder"),W(r(kn,{plugin:this.plugin,macro:this.macro,onSave:this.onSave,onCancel:this.close.bind(this)}),this.contentEl)}onClose(){W(null,this.contentEl)}};function Vt({plugin:e,macros:o}){let t=(a,i)=>{let c=m=>{o.splice(i!==void 0?i:o.length,i!==void 0?1:0,m),e.saveSettings(),this.forceUpdate(),Ee(e),d.close()},d=new Te(e,a,c);d.open()},n=a=>{o.splice(a,1),e.saveSettings(),this.forceUpdate(),Ee(e)};return r(I,null,r("div",{className:"cmdr-sep-con"},o.map((a,i)=>r("div",{class:"setting-item mod-toggle"},r("div",{className:"setting-item-info"},r("div",{className:"setting-item-name"},a.name),r("div",{className:"setting-item-description"},a.macro.length," Actions")),r("div",{className:"setting-item-control"},r("button",{"aria-label":"Edit Macro",onClick:()=>t(a,i)},r(k,{icon:"lucide-pencil"})),r("button",{"aria-label":"Delete",class:"mod-warning",onClick:async()=>{(!e.settings.confirmDeletion||await new V(e).didChooseRemove())&&n(i)}},r(k,{icon:"trash"})))))),!o.length&&r("div",{class:"cmdr-commands-empty"},r(Ce,null),r("h3",null,"No Macros yet!"),r("span",null,u("Would you like to add one now?"))),En.Platform.isMobile&&r("hr",null),r("div",{className:"cmdr-add-new-wrapper"},r("button",{class:"mod-cta",onClick:()=>t({name:"",macro:[],icon:"star"})},"Add Macro")))}function Le({plugin:e,mobileMode:o}){let[t,n]=D(0),[a,i]=D(!0),c=({key:m,shiftKey:h})=>{h&&m==="Tab"?t>0?n((t-1)%d.length):n(d.length-1):m==="Tab"&&n((t+1)%d.length)};O(()=>(addEventListener("keydown",c),()=>removeEventListener("keydown",c)),[t]),X.Platform.isMobile&&O(()=>{let m=document.querySelector(".modal-setting-back-button"),h=m.cloneNode(!0);m.parentNode.replaceChild(h,m),i(!0)},[]),O(()=>{let m=document.querySelector(".modal-setting-back-button");!m||(a?(m.parentElement.lastChild.textContent="Commander",m.onclick=()=>app.setting.closeActiveTab()):(m.parentElement.lastChild.textContent=d[t].name,m.onclick=()=>i(!0)))},[a]);let d=Qe(()=>[{name:u("General"),tab:r(I,null,r(Ft,{name:u("Always ask before removing?"),description:u("Always show a Popup to confirm deletion of a Command."),value:e.settings.confirmDeletion,changeHandler:async m=>{e.settings.confirmDeletion=!m,await e.saveSettings()}}),r(Ft,{value:e.settings.showAddCommand,name:u('Show "Add Command" Button'),description:'Show the "Add Command" Button in every Menu.',changeHandler:async m=>{e.settings.showAddCommand=!m,e.manager.pageHeader.reorder(),await e.saveSettings()}}),r(st,{value:e.settings.spacing,name:u("Choose custom spacing for Command Buttons"),description:u("Change the spacing between commands. You can set different values on mobile and desktop."),changeHandler:async m=>{tt(m),e.settings.spacing=m,await e.saveSettings()}}))},{name:u("Left Ribbon"),tab:r(ie,{manager:e.manager.leftRibbon,plugin:e,sortable:!1},r(yn,{plugin:e}),r("div",{className:"cmdr-sep-con callout","data-callout":"warning"},r("span",{className:"cmdr-callout-warning"},r(k,{icon:"alert-triangle"})," ","Reordering and Sorting"),r("p",{className:"cmdr-warning-description"},"As of Obsidian 1.1.0 you can reorder the Buttons in the left ribbon by dragging. This will replace the old sorting feature.")))},{name:u("Page Header"),tab:r(ie,{manager:e.manager.pageHeader,plugin:e},r("hr",null),r("div",{className:"cmdr-sep-con callout","data-callout":"warning"},r("span",{className:"cmdr-callout-warning"},r(k,{icon:"alert-triangle"})," ",u("Warning")),r("p",{className:"cmdr-warning-description"},u("As of Obsidian 0.16.0 you need to explicitly enable the View Header.")),r("button",{onClick:()=>{app.setting.openTabById("appearance"),setTimeout(()=>{var m,h,s,g;app.setting.activeTab.containerEl.scroll({behavior:"smooth",top:250}),(g=(s=(h=(m=app.setting.activeTab.containerEl.querySelectorAll(".setting-item-heading")[1].nextSibling)==null?void 0:m.nextSibling)==null?void 0:h.nextSibling)==null?void 0:s.addClass)==null||g.call(s,"cmdr-cta")},50)},className:"mod-cta"},u("Open Appearance Settings"))))},{name:u("Statusbar"),tab:r(ie,{manager:e.manager.statusBar,plugin:e},r(wn,{plugin:e}))},{name:u("Editor Menu"),tab:r(ie,{manager:e.manager.editorMenu,plugin:e})},{name:u("File Menu"),tab:r(ie,{manager:e.manager.fileMenu,plugin:e})},{name:u("Explorer"),tab:r(ie,{manager:e.manager.explorerManager,plugin:e},r("hr",null),r("div",{className:"cmdr-sep-con callout","data-callout":"warning"},r("span",{className:"cmdr-callout-warning"},r(k,{icon:"alert-triangle"})," ",u("Warning")),r("p",{className:"cmdr-warning-description"},"When clicking on a Command in the Explorer, the Explorer view will become focused. This might interfere with Commands that are supposed to be executed on an active File/Explorer.")))},{name:X.Platform.isMobile?"Mobile Toolbar":"Toolbar",tab:r(Nt,{plugin:e})},{name:"Macros",tab:r(Vt,{plugin:e,macros:e.settings.macros})}],[]);return r(I,null,X.Platform.isDesktop&&r("div",{className:"cmdr-setting-title"},r("h1",null,e.manifest.name)),(X.Platform.isDesktop||a)&&r(Oa,{tabs:d,activeTab:t,setActiveTab:n,setOpen:i}),r("div",{class:`cmdr-setting-content ${o?"cmdr-mobile":""}`},(X.Platform.isDesktop||!a)&&d[t].tab,(X.Platform.isMobile&&a||X.Platform.isDesktop&&t===0)&&r(Lt,{manifest:e.manifest})))}function Oa({tabs:e,activeTab:o,setActiveTab:t,setOpen:n}){let a=G(null),i=c=>{var d;c.preventDefault(),(d=a.current)==null||d.scrollBy({left:c.deltaY>0?16:-16})};return O(()=>{let c=a.current;if(!(!c||X.Platform.isMobile))return c.addEventListener("wheel",i),()=>c.removeEventListener("wheel",i)},[]),O(()=>{var c;return(c=document.querySelector(".cmdr-tab-active"))==null?void 0:c.scrollIntoView({behavior:"smooth",block:"nearest"})},[o]),r("nav",{class:`cmdr-setting-header ${X.Platform.isMobile?"cmdr-mobile":""}`,ref:a},r("div",{class:`cmdr-setting-tab-group ${X.Platform.isMobile?"vertical-tab-header-group-items":""}`},e.map((c,d)=>r("div",{className:`cmdr-tab ${o===d?"cmdr-tab-active":""} ${X.Platform.isMobile?"vertical-tab-nav-item":""}`,onClick:()=>{t(d),n(!1)}},c.name,X.Platform.isMobile&&r(k,{className:"vertical-tab-nav-item-chevron cmdr-block",icon:"chevron-right",size:24})))),X.Platform.isDesktop&&r("div",{className:"cmdr-fill"}))}var Ae=class extends ct.PluginSettingTab{constructor(t){super(app,t);this.plugin=t}display(){W(r(Le,{plugin:this.plugin,mobileMode:ct.Platform.isMobile}),this.containerEl)}hide(){W(null,this.containerEl)}};var lt=require("obsidian");var Ne=class extends lt.Modal{constructor(t){super(app);this.plugin=t,this.containerEl.addClass("cmdr-setting-modal")}onOpen(){let t=lt.Platform.isMobile;W(r(Le,{plugin:this.plugin,mobileMode:t}),this.contentEl)}onClose(){W(null,this.contentEl)}};var xn=require("obsidian");function zt(){(0,xn.addIcon)("cmdr-all-devices",'')}var De=class extends Z{constructor(t){super(t,t.settings.leftRibbon);this.plugin=t,this.plugin.settings.leftRibbon.forEach(n=>this.addCommand(n,!1)),app.workspace.onLayoutReady(()=>{})}async addCommand(t,n=!0){if(n&&(this.plugin.settings.leftRibbon.push(t),await this.plugin.saveSettings()),J(t.mode)){this.plugin.addRibbonIcon(t.icon,t.name,()=>app.commands.executeCommandById(t.id));let a=app.workspace.leftRibbon.items.find(i=>i.icon===t.icon&&i.name===i.name);a&&(a.buttonEl.style.color=t.color==="#000000"||t.color===void 0?"inherit":t.color),this.plugin.register(()=>this.removeCommand(t,!1))}}async removeCommand(t,n=!0){n&&(this.plugin.settings.leftRibbon.remove(t),await this.plugin.saveSettings());let a=app.workspace.leftRibbon.items.find(i=>i.icon===t.icon&&i.name===i.name);a&&a.buttonEl.remove(),app.workspace.leftRibbon.items.remove(a)}reorder(){this.plugin.settings.leftRibbon.forEach(t=>{this.removeCommand(t,!1),this.addCommand(t,!1)})}};var dt=class extends Sn.Plugin{async executeStartupMacros(){this.settings.macros.forEach((t,n)=>{t.startup&&this.executeMacro(n)})}async executeMacro(t){let n=this.settings.macros[t];if(!n)throw new Error("Macro not found");for(let a of n.macro)switch(a.action){case 0:{await app.commands.executeCommandById(a.commandId);continue}case 1:{await new Promise(i=>setTimeout(i,a.delay));continue}case 2:continue;case 3:{for(let i=0;inew Ne(this).open()}),this.registerEvent(app.workspace.on("editor-menu",this.manager.editorMenu.applyEditorMenuCommands(this))),this.registerEvent(app.workspace.on("file-menu",this.manager.fileMenu.applyFileMenuCommands(this))),app.workspace.onLayoutReady(()=>{Me(this.settings),Ee(this),tt(this.settings.spacing),oe(this.settings.advancedToolbar),ot(this.settings.advancedToolbar),this.executeStartupMacros()})}onunload(){var t;(t=document.head.querySelector("style#cmdr"))==null||t.remove(),Yo()}async loadSettings(){let t=Object.assign({},yo,await this.loadData());this.settings=t}async saveSettings(){await this.saveData(this.settings)}listActiveToolbarCommands(){return this.app.vault.getConfig("mobileToolbarCommands")}getCommands(){let t=[];return this.listActiveToolbarCommands().forEach(n=>{let a=this.app.commands.commands[n];a&&t.push(a)}),t}getCommandsWithoutIcons(t=!0){let n=[];return this.getCommands().forEach(a=>{a&&!a.icon&&n.push(a)}),t&&this.getCommands().forEach(a=>{this.settings.advancedToolbar.mappedIcons.find(i=>i.commandID===a.id)&&n.push(a)}),n}}; /* by phibr0 */ diff --git a/.obsidian/plugins/cmdr/manifest.json b/.obsidian/plugins/cmdr/manifest.json index 42f160d3..a12c2553 100644 --- a/.obsidian/plugins/cmdr/manifest.json +++ b/.obsidian/plugins/cmdr/manifest.json @@ -1,7 +1,7 @@ { "id": "cmdr", "name": "Commander", - "version": "0.4.9", + "version": "0.5.0", "minAppVersion": "1.1.0", "description": "Customize your workspace by adding commands everywhere, create Macros and supercharge your mobile toolbar.", "author": "jsmorabito & phibr0", diff --git a/.obsidian/plugins/cron/data.json b/.obsidian/plugins/cron/data.json index 84a84baa..04790dbc 100644 --- a/.obsidian/plugins/cron/data.json +++ b/.obsidian/plugins/cron/data.json @@ -19,7 +19,7 @@ "601d1cc7-a4f3-4f19-aa9f-3bddd7ab6b1d": { "locked": false, "lockedDeviceName": "iPhone", - "lastRun": "2023-04-07T08:27:00+02:00" + "lastRun": "2023-04-10T09:34:29+02:00" } } } \ No newline at end of file diff --git a/.obsidian/plugins/emoji-shortcodes/data.json b/.obsidian/plugins/emoji-shortcodes/data.json index bce7ed02..be00f79d 100644 --- a/.obsidian/plugins/emoji-shortcodes/data.json +++ b/.obsidian/plugins/emoji-shortcodes/data.json @@ -6,15 +6,20 @@ "history": [ ":tv:", ":plate_with_cutlery:", + ":fork_and_knife:", + ":soccer:", + ":stadium:", + ":herb:", + ":chicken:", + ":meat_on_bone:", + ":avocado:", ":train2:", ":racehorse:", ":book:", - ":fork_and_knife:", ":broken_heart:", ":warning:", ":musical_score:", ":clapper:", - ":soccer:", ":car:", ":crocodile:", ":ferris_wheel:", diff --git a/.obsidian/plugins/meld-encrypt/main.js b/.obsidian/plugins/meld-encrypt/main.js index 61961aee..facd36b6 100644 --- a/.obsidian/plugins/meld-encrypt/main.js +++ b/.obsidian/plugins/meld-encrypt/main.js @@ -3,4 +3,9 @@ THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin */ -var X=Object.defineProperty;var it=Object.getOwnPropertyDescriptor;var rt=Object.getOwnPropertyNames;var ot=Object.prototype.hasOwnProperty;var at=(h,e)=>{for(var t in e)X(h,t,{get:e[t],enumerable:!0})},ct=(h,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of rt(e))!ot.call(h,s)&&s!==t&&X(h,s,{get:()=>e[s],enumerable:!(n=it(e,s))||n.enumerable});return h};var lt=h=>ct(X({},"__esModule",{value:!0}),h);var ft={};at(ft,{default:()=>G});module.exports=lt(ft);var st=require("obsidian");var S=require("obsidian");var O=class{constructor(){this.values=new Map}put(e,t){this.values.set(e,t)}get(e,t){var n;return(n=this.values.get(e))!=null?n:t}getFirst(e,t){for(let n=0;n{i.setValue(this.settings.confirmPassword).onChange(async r=>{this.settings.confirmPassword=r,await this.plugin.saveSettings()})});let n=()=>{if(!this.settings.rememberPassword){s.settingEl.hide();return}s.settingEl.show();let i=this.settings.rememberPasswordTimeout,r=`${i} minutes`;i==0&&(r="Never forget"),s.setName(`Remember Password Timeout (${r})`)};new S.Setting(t).setName("Remember password?").setDesc("Remember the last used passwords when encrypting or decrypting.").addToggle(i=>{i.setValue(this.settings.rememberPassword).onChange(async r=>{this.settings.rememberPassword=r,await this.plugin.saveSettings(),f.setActive(this.settings.rememberPassword),n()})});let s=new S.Setting(t).setDesc("The number of minutes to remember passwords.").addSlider(i=>{i.setLimits(0,120,5).setValue(this.settings.rememberPasswordTimeout).onChange(async r=>{this.settings.rememberPasswordTimeout=r,await this.plugin.saveSettings(),f.setAutoExpire(this.settings.rememberPasswordTimeout),n()})});n(),this.features.forEach(i=>{i.buildSettingsUi(t,async()=>await this.plugin.saveSettings())})}};var v=require("obsidian");var q=new TextEncoder,pt=new TextDecoder,dt=1e3,ut=q.encode("XHWnDAT6ehMVY2zD"),C=class{async deriveKey(e){let t=q.encode(e),n=await crypto.subtle.importKey("raw",t,{name:"PBKDF2"},!1,["deriveKey"]);return crypto.subtle.deriveKey({name:"PBKDF2",hash:{name:"SHA-256"},iterations:dt,salt:ut},n,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}async encryptToBytes(e,t){let n=await this.deriveKey(t),s=q.encode(e),i=crypto.getRandomValues(new Uint8Array(16)),r=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:i},n,s)),o=new Uint8Array(i.byteLength+r.byteLength);return o.set(i,0),o.set(r,i.byteLength),o}convertToString(e){let t="";for(let n=0;n{n=o,o.setValue(this.text),o.inputEl.setSelectionRange(0,0),o.inputEl.readOnly=!0,o.inputEl.rows=10,o.inputEl.style.width="100%",o.inputEl.style.minHeight="3em",o.inputEl.style.resize="vertical"}).settingEl.querySelector(".setting-item-info"))==null||r.remove(),new I.Setting(t).addButton(o=>{o.setButtonText("Copy").onClick(c=>{navigator.clipboard.writeText(n.getValue()),new I.Notice("Copied!")})}).addButton(o=>{o.setWarning().setButtonText("Decrypt in-place").onClick(c=>{this.decryptInPlace=!0,this.close()})})}};var w=require("obsidian");var k=require("obsidian"),m=class{static isSettingsModalOpen(){return document.querySelector(".mod-settings")!==null}static buildPasswordSetting({container:e,name:t,desc:n="",autoFocus:s=!1,placeholder:i="",initialValue:r="",onChangeCallback:o,onEnterCallback:c}){let d=new k.Setting(e).setName(t).setDesc(n).addButton(l=>{l.setIcon("reading-glasses").onClick(a=>{let p=d.components.find((u,P,E)=>u instanceof k.TextComponent);p instanceof k.TextComponent&&(p.inputEl.type=p.inputEl.type=="password"?"text":"password")})}).addText(l=>{l.setPlaceholder(i),l.setValue(r),l.inputEl.type="password",o!=null&&l.onChange(o),c!=null&&(l.inputEl.onkeydown=a=>{a.key==="Enter"&&(a.preventDefault(),c(l.getValue()))}),s&&setTimeout(()=>l.inputEl.focus(),0)});return d}};var A=class extends w.Modal{constructor(t,n,s,i=null,r=null){super(t);this.defaultPassword=null;this.defaultHint=null;this.resultConfirmed=!1;this.resultPassword=null;this.resultHint=null;this.defaultPassword=i,this.confirmPassword=s,this.isEncrypting=n,this.defaultHint=r}onOpen(){var d,l;let{contentEl:t}=this;t.empty(),this.invalidate();let n=(d=this.defaultPassword)!=null?d:"",s="",i=(l=this.defaultHint)!=null?l:"";new w.Setting(t).setHeading().setName(this.isEncrypting?"Encrypting":"Decrypting"),m.buildPasswordSetting({container:t,name:"Password:",placeholder:this.isEncrypting?"":`Hint: ${this.defaultHint}`,initialValue:n,autoFocus:!0,onChangeCallback:a=>{n=a,this.invalidate()},onEnterCallback:a=>{if(n=a,this.invalidate(),n.length>0)if(r.settingEl.isShown()){let p=r.components.find(u=>u instanceof w.TextComponent);p instanceof w.TextComponent&&p.inputEl.focus()}else if(o.settingEl.isShown()){let p=o.components.find(u=>u instanceof w.TextComponent);p instanceof w.TextComponent&&p.inputEl.focus()}else c()&&this.close()}});let r=m.buildPasswordSetting({container:t,name:"Confirm Password:",onChangeCallback:a=>{s=a,this.invalidate()},onEnterCallback:a=>{if(s=a,this.invalidate(),s.length>0&&c()&&o.settingEl.isShown()){let p=o.components.find(u=>u instanceof w.TextComponent);p instanceof w.TextComponent&&p.inputEl.focus()}}});this.confirmPassword||r.settingEl.hide();let o=new w.Setting(t).setName("Optional Password Hint").addText(a=>{a.inputEl.placeholder="Password Hint",a.setValue(i),a.onChange(p=>i=p),a.inputEl.on("keypress","*",(p,u)=>{p.key=="Enter"&&u instanceof HTMLInputElement&&u.value.length>0&&(p.preventDefault(),c()&&this.close())})});this.isEncrypting||o.settingEl.hide(),new w.Setting(t).addButton(a=>{a.setButtonText("Confirm").onClick(p=>{c()&&this.close()})});let c=()=>(this.invalidate(),r.setDesc(""),this.confirmPassword&&n!=s?(r.setDesc("Passwords don't match"),!1):(this.resultConfirmed=!0,this.resultPassword=n,this.resultHint=i,!0))}invalidate(){this.resultConfirmed=!1,this.resultPassword=null,this.resultHint=null}};var _="%%\u{1F510}\u03B1 ",ht="\u{1F510}\u03B1 ",nt="%%\u{1F510} ",M=[_,ht,nt],$=" \u{1F510}%%",gt=" \u{1F510}",F=[$,gt],T="\u{1F4A1}",H=class{async onload(e,t){this.plugin=e,this.pluginSettings=t,this.featureSettings=t.featureInplaceEncrypt,e.addCommand({id:"meld-encrypt",name:"Encrypt/Decrypt",icon:"lock",editorCheckCallback:(n,s,i)=>this.processEncryptDecryptCommand(n,s,!1)}),e.addCommand({id:"meld-encrypt-in-place",name:"Encrypt/Decrypt In-place",icon:"lock",editorCheckCallback:(n,s,i)=>this.processEncryptDecryptCommand(n,s,!0)})}onunload(){}buildSettingsUi(e,t){new v.Setting(e).setHeading().setName("In-place Encryption Settings"),new v.Setting(e).setName("Expand selection to whole line?").setDesc("Partial selections will get expanded to the whole line.").addToggle(n=>{n.setValue(this.featureSettings.expandToWholeLines).onChange(async s=>{this.featureSettings.expandToWholeLines=s,await t()})})}processEncryptDecryptCommand(e,t,n){if(e&&m.isSettingsModalOpen())return!0;let s=t.getCursor("from"),i=t.getCursor("to");if(this.featureSettings.expandToWholeLines){s={line:s.line,ch:0};let c=i.line,d=t.getLine(c);i={line:c,ch:d.length}}else if(!t.somethingSelected()){let o=this.getClosestPrefixCursorPos(t);if(o==null)return!1;s=o;let c=this.getClosestSuffixCursorPos(t);if(c==null)return!1;i=c}let r=t.getRange(s,i);return this.processSelection(e,t,r,s,i,n)}getClosestPrefixCursorPos(e){let t=M.reduce((s,i,r)=>r==0||i.length>s.length?i:s),n=e.posToOffset(e.getCursor("from"))+t.length;for(let s=n;s>=0;s--){let i=e.offsetToPos(s);for(let r of M){let o=s-r.length,c=e.offsetToPos(o);if(e.getRange(c,i)==r)return e.offsetToPos(o)}}return null}getClosestSuffixCursorPos(e){let t=M.reduce((r,o,c)=>c==0||o.length>r.length?o:r),n=e.posToOffset(e.getCursor("from"))-t.length+1,s=e.lastLine(),i=e.posToOffset({line:s,ch:e.getLine(s).length});for(let r=n;r<=i;r++){let o=e.offsetToPos(r);for(let c of F){let d=r+c.length,l=e.offsetToPos(d);if(e.getRange(o,l)==c)return l}}return null}processSelection(e,t,n,s,i,r,o=!0){var P;let c=new j(n);if(c.isEmpty)return e||new v.Notice("Nothing to Encrypt."),!1;if(!c.canDecrypt&&!c.canEncrypt)return e||new v.Notice("Unable to Encrypt or Decrypt that."),!1;if(c.canEncrypt&&!o)return!1;let d=this.plugin.app.workspace.getActiveFile();if(d==null)return!1;if(e)return!0;let l="",a=(P=c.decryptable)==null?void 0:P.hint;if(this.pluginSettings.rememberPassword){let E=f.getBestGuess(d);l=E.password,a=a!=null?a:E.hint}let p=c.canEncrypt&&this.pluginSettings.confirmPassword,u=new A(this.plugin.app,c.canEncrypt,p,l,a);return u.onClose=async()=>{var Z,tt,et;if(!u.resultConfirmed)return;let E=(Z=u.resultPassword)!=null?Z:"",Y=(tt=u.resultHint)!=null?tt:"";if(c.canEncrypt){let x=new J;x.text=n,x.hint=Y,this.encryptSelection(t,x,E,s,i),f.put({password:E,hint:Y},d)}else{let x;((et=c.decryptable)==null?void 0:et.version)==1?x=await this.decryptSelection_a(t,c.decryptable,E,s,i,r):x=await this.decryptSelectionObsolete(t,c,E,s,i,r),x&&f.put({password:E,hint:Y},d)}},u.open(),!0}async encryptSelection(e,t,n,s,i){let r=new C,o=this.encodeEncryption(await r.encryptToBase64(t.text,n),t.hint);e.setSelection(s,i),e.replaceSelection(o)}async decryptSelection_a(e,t,n,s,i,r){let c=await new C().decryptFromBase64(t.base64CipherText,n);if(c===null)return new v.Notice("\u274C Decryption failed!"),!1;if(r)e.setSelection(s,i),e.replaceSelection(c);else{let d=new D(this.plugin.app,"\u{1F513}",c);d.onClose=()=>{e.focus(),d.decryptInPlace&&(e.setSelection(s,i),e.replaceSelection(c))},d.open()}return!0}async decryptSelectionObsolete(e,t,n,s,i,r){let o=t.decryptable.base64CipherText,d=await new U().decryptFromBase64(o,n);if(d===null)return new v.Notice("\u274C Decryption failed!"),!1;if(r)e.setSelection(s,i),e.replaceSelection(d);else{let l=new D(this.plugin.app,"\u{1F513}",d);l.onClose=()=>{e.focus(),l.decryptInPlace&&(e.setSelection(s,i),e.replaceSelection(d))},l.open()}return!0}encodeEncryption(e,t){return!M.some(n=>e.contains(n))&&!F.some(n=>e.contains(n))?t.length>0?_.concat(T,t,T,e,$):_.concat(e,$):e}},j=class{constructor(e){this.process(e)}process(e){var t,n;if(this.processedText=e,this.isEmpty=e.length===0,this.prefix=(t=M.find(s=>e.startsWith(s)))!=null?t:"",this.suffix=(n=F.find(s=>e.endsWith(s)))!=null?n:"",this.hasEncryptedPrefix=this.prefix.length>0,this.hasEncryptedSuffix=this.suffix.length>0,this.hasObsoleteEncryptedPrefix=this.prefix===nt,this.containsEncryptedMarkers=[...M,...F].some(s=>e.contains(s)),this.canDecrypt=this.hasEncryptedPrefix&&this.hasEncryptedSuffix,this.canEncrypt=!this.hasEncryptedPrefix&&!this.containsEncryptedMarkers,this.canDecrypt){let s=this.parseDecryptableContent(e);s!=null?this.decryptable=s:this.canDecrypt=!1}}parseDecryptableContent(e){let t=new Q;if(!this.hasEncryptedPrefix||!this.hasEncryptedSuffix)return null;t.version=this.hasObsoleteEncryptedPrefix?0:1;let n=e.substring(this.prefix.length,e.length-this.suffix.length);if([...M,...F].some(s=>n.contains(s)))return null;if(n.substring(0,T.length)==T){let s=n.indexOf(T,T.length);if(s<0)return null;t.hint=n.substring(T.length,s),t.base64CipherText=n.substring(s+T.length)}else t.base64CipherText=n;return t}},J=class{},Q=class{};var b=require("obsidian");var y=require("obsidian");var L="meld-encrypted-file-content-view",R=class extends y.TextFileView{constructor(t){super(t);this.currentView=0;this.encryptionPassword="";this.hint="";this.currentEditorText="";this.elActionIconLockNote=this.addAction("lock","Lock",()=>this.actionLockFile()),this.elActionChangePassword=this.addAction("key","Change Password",()=>this.actionChangePassword()),this.contentEl.style.display="flex",this.contentEl.style.flexDirection="column",this.contentEl.style.alignItems="center"}actionLockFile(){this.encryptionPassword="",this.refreshView(1)}actionChangePassword(){this.refreshView(3)}onPaneMenu(t,n){n=="tab-header"&&this.currentView==2&&(t.addItem(s=>{s.setSection("action").setIcon("lock").setTitle("Lock").onClick(()=>this.actionLockFile())}),t.addItem(s=>{s.setSection("action").setIcon("key").setTitle("Change Password").onClick(()=>this.actionChangePassword())})),super.onPaneMenu(t,n)}createTitle(t){return this.contentEl.createDiv({text:`\u{1F510} ${t} \u{1F510}`,attr:{style:"margin-bottom:2em;"}})}validatePassword(t){return t.length==0?"Password is too short":""}validateConfirm(t,n){return t===n?"":"Password doesn't match"}createNewNoteView(){let t=this.createInputContainer();new y.Setting(t).setDesc("Please provide a password and hint to start editing this note.");let n=async(a,p,u)=>{let P=this.validatePassword(a),E=this.validateConfirm(a,p);c.setDesc(P),d.setDesc(E),P.length===0&&E.length===0&&(this.encryptionPassword=a,this.hint=u,this.currentEditorText=this.file.basename,await this.encodeAndSave(),f.put({password:a,hint:u},this.file),this.refreshView(2))},s=f.getBestGuess(this.file),i=s.password,r="",o=s.hint,c=m.buildPasswordSetting({container:t,name:"Password:",autoFocus:!0,initialValue:i,onChangeCallback:a=>{i=a,c.setDesc(this.validatePassword(i)),d.setDesc(this.validateConfirm(i,r))},onEnterCallback:a=>{var p;i=a,i.length>0&&((p=d.controlEl.querySelector("input"))==null||p.focus())}}),d=m.buildPasswordSetting({container:t,name:"Confirm:",autoFocus:!1,onChangeCallback:a=>{r=a,c.setDesc(this.validatePassword(i)),d.setDesc(this.validateConfirm(i,r))},onEnterCallback:a=>{var u;r=a,i===r&&((u=l.controlEl.querySelector("input"))==null||u.focus())}}),l=new y.Setting(t).setName("Hint:").addText(a=>{a.setValue(o),a.onChange(p=>{o=p})});return l.controlEl.on("keydown","*",a=>{a.key==="Enter"&&(a.preventDefault(),n(i,r,o))}),new y.Setting(t).addButton(a=>{a.setCta().setIcon("go-to-file").setTooltip("Edit").onClick(p=>n(i,r,o))}),t}createDecryptNoteView(){let t=this.createInputContainer();new y.Setting(t).setDesc("Please provide a password to unlock this note.");let n=f.getBestGuess(this.file);return this.encryptionPassword=n.password,m.buildPasswordSetting({container:t,name:"Password:",initialValue:this.encryptionPassword,autoFocus:!0,placeholder:this.formatHint(this.hint),onChangeCallback:s=>{this.encryptionPassword=s},onEnterCallback:async()=>await this.handleDecryptButtonClick()}),new y.Setting(t).addButton(s=>{s.setCta().setIcon("checkmark").setTooltip("Unlock & Edit").onClick(i=>this.handleDecryptButtonClick())}),t}async encodeAndSave(){try{let t=await K.encode(this.encryptionPassword,this.hint,this.currentEditorText);this.data=V.encode(t),this.requestSave()}catch(t){console.error(t),new y.Notice(t,1e4)}}createEditorView(){let t=this.contentEl.createDiv();return t.contentEditable="true",t.style.flexGrow="1",t.style.alignSelf="stretch",t.innerText=this.currentEditorText,t.focus(),t.on("input","*",async(n,s)=>{this.currentEditorText=t.innerText,await this.encodeAndSave()}),t}createInputContainer(){return this.contentEl.createDiv({attr:{style:"width:100%; max-width:400px;"}})}createChangePasswordView(){let t=this.createInputContainer(),n="",s="",i="",r=async(l,a,p)=>{let u=this.validatePassword(l),P=this.validateConfirm(l,a);o.setDesc(u),c.setDesc(P),u.length===0&&P.length===0&&(this.encryptionPassword=l,this.hint=p,this.encodeAndSave(),this.refreshView(2),new y.Notice("Password and Hint were changed"))},o=m.buildPasswordSetting({container:t,name:"New Password:",autoFocus:!0,onChangeCallback:l=>{n=l,o.setDesc(this.validatePassword(n)),c.setDesc(this.validateConfirm(n,s))},onEnterCallback:l=>{var a;n=l,n.length>0&&((a=c.controlEl.querySelector("input"))==null||a.focus())}}),c=m.buildPasswordSetting({container:t,name:"Confirm:",onChangeCallback:l=>{s=l,o.setDesc(this.validatePassword(n)),c.setDesc(this.validateConfirm(n,s))},onEnterCallback:l=>{var p;s=l,n===s&&((p=d.controlEl.querySelector("input"))==null||p.focus())}}),d=new y.Setting(t).setName("New Hint:").addText(l=>{l.onChange(a=>{i=a})});return d.controlEl.on("keydown","*",l=>{l.key==="Enter"&&(l.preventDefault(),r(n,s,i))}),new y.Setting(t).addButton(l=>{l.removeCta().setIcon("cross").setTooltip("Cancel").onClick(()=>{this.refreshView(2)})}).addButton(l=>{l.setCta().setIcon("checkmark").setTooltip("Change Password").setWarning().onClick(a=>{r(n,s,i)})}),t}formatHint(t){return t.length>0?`Hint: ${t}`:""}refreshView(t){switch(this.elActionIconLockNote.hide(),this.elActionChangePassword.hide(),this.contentEl.empty(),this.currentView=t,this.currentView){case 4:this.createTitle("This note will be encrypted"),this.createNewNoteView();break;case 1:this.createTitle("This note is encrypted"),this.createDecryptNoteView();break;case 2:this.elActionIconLockNote.show(),this.elActionChangePassword.show(),this.createTitle("This note is encrypted"),this.createEditorView();break;case 3:this.createTitle("Change encrypted note password"),this.createChangePasswordView();break}}async handleDecryptButtonClick(){let t=V.decode(this.data),n=await K.decrypt(t,this.encryptionPassword);n===null?new y.Notice("Decryption failed"):(f.put({password:this.encryptionPassword,hint:this.hint},this.file),this.currentEditorText=n,this.refreshView(2))}canAcceptExtension(t){return t=="encrypted"}getViewType(){return L}setViewData(t,n){if(n){let s;t===""?s=4:s=1,this.encryptionPassword="";let i=V.decode(this.data);this.hint=i.hint,this.refreshView(s)}else this.leaf.detach(),new y.Notice("Multiple views of the same encrypted note isn't supported")}getViewData(){return this.data}clear(){}},W=class{constructor(e,t){this.version="1.0";this.hint=e,this.encodedData=t}},K=class{static async encode(e,t,n){let i=await new C().encryptToBase64(n,e);return new W(t,i)}static async decrypt(e,t){return e.encodedData==""?"":await new C().decryptFromBase64(e.encodedData,t)}},V=class{static encode(e){return JSON.stringify(e,null,2)}static decode(e){return e===""?new W("",""):JSON.parse(e)}};var B=class{async onload(e,t){this.plugin=e,this.settings=t.featureWholeNoteEncrypt,this.updateUiForSettings(),this.plugin.registerView(L,n=>new R(n)),this.plugin.registerExtensions(["encrypted"],L),this.plugin.addCommand({id:"meld-encrypt-create-new-note",name:"Create new encrypted note",icon:"lock",callback:()=>this.processCreateNewEncryptedNoteCommand()})}onunload(){this.plugin.app.workspace.detachLeavesOfType(L)}processCreateNewEncryptedNoteCommand(){try{let e=(0,b.moment)().format("[Untitled] YYYYMMDD hhmmss[.encrypted]"),t,n=this.plugin.app.workspace.getActiveFile();n!=null?t=this.plugin.app.fileManager.getNewFileParent(n.path):t=this.plugin.app.fileManager.getNewFileParent("");let s=(0,b.normalizePath)(t.path+"/"+e);return this.plugin.app.vault.create(s,"").then(async i=>{await this.plugin.app.workspace.getLeaf(!1).openFile(i)}).catch(i=>{new b.Notice(i,1e4)}),!0}catch(e){return console.error(e),new b.Notice(e,1e4),!1}}buildSettingsUi(e,t){new b.Setting(e).setHeading().setName("Whole Note Encryption Settings"),new b.Setting(e).setName("Add ribbon icon to create note").setDesc("Adds a ribbon icon to the left bar to create an encrypted note.").addToggle(n=>{n.setValue(this.settings.addRibbonIconToCreateNote).onChange(async s=>{this.settings.addRibbonIconToCreateNote=s,await t(),this.updateUiForSettings()})})}updateUiForSettings(){this.settings.addRibbonIconToCreateNote?this.ribbonIconCreateNewNote==null&&(this.ribbonIconCreateNewNote=this.plugin.addRibbonIcon("lock","Create new encrypted note",e=>{this.processCreateNewEncryptedNoteCommand()})):this.ribbonIconCreateNewNote!=null&&(this.ribbonIconCreateNewNote.remove(),this.ribbonIconCreateNewNote=null)}};var G=class extends st.Plugin{constructor(){super(...arguments);this.enabledFeatures=[]}async onload(){await this.loadSettings(),this.enabledFeatures.push(new B,new H),this.addSettingTab(new N(this.app,this,this.settings,this.enabledFeatures)),this.enabledFeatures.forEach(async t=>{await t.onload(this,this.settings)})}onunload(){this.enabledFeatures.forEach(async t=>{t.onunload()})}async loadSettings(){let t={confirmPassword:!0,rememberPassword:!0,rememberPasswordTimeout:30,featureWholeNoteEncrypt:{addRibbonIconToCreateNote:!0},featureInplaceEncrypt:{expandToWholeLines:!1}};this.settings=Object.assign(t,await this.loadData()),f.setActive(this.settings.rememberPassword),f.setAutoExpire(this.settings.rememberPasswordTimeout==0?null:this.settings.rememberPasswordTimeout)}async saveSettings(){await this.saveData(this.settings)}}; +var z=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var pe=Object.prototype.hasOwnProperty;var ue=(w,t)=>{for(var e in t)z(w,e,{get:t[e],enumerable:!0})},he=(w,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of de(t))!pe.call(w,i)&&i!==e&&z(w,i,{get:()=>t[i],enumerable:!(n=le(t,i))||n.enumerable});return w};var ge=w=>he(z({},"__esModule",{value:!0}),w);var Ee={};ue(Ee,{default:()=>q});module.exports=ge(Ee);var ce=require("obsidian");var T=require("obsidian");var W=class{constructor(){this.values=new Map}put(t,e){this.values.set(t,e)}get(t,e){var n;return(n=this.values.get(t))!=null?n:e}getFirst(t,e){for(let n=0;n{r.setValue(this.settings.confirmPassword).onChange(async o=>{this.settings.confirmPassword=o,await this.plugin.saveSettings()})});let n=()=>{if(!this.settings.rememberPassword){i.settingEl.hide(),s.settingEl.hide();return}i.settingEl.show(),s.settingEl.show();let r=this.settings.rememberPasswordTimeout,o=`For ${r} minutes`;r==0&&(o="Always"),i.setName(`Remember Password (${o})`)};new T.Setting(e).setName("Remember password?").setDesc("Remember the last used passwords when encrypting or decrypting.").addToggle(r=>{r.setValue(this.settings.rememberPassword).onChange(async o=>{this.settings.rememberPassword=o,await this.plugin.saveSettings(),h.setActive(this.settings.rememberPassword),n()})});let i=new T.Setting(e).setDesc("The number of minutes to remember passwords.").addSlider(r=>{r.setLimits(0,120,5).setValue(this.settings.rememberPasswordTimeout).onChange(async o=>{this.settings.rememberPasswordTimeout=o,await this.plugin.saveSettings(),h.setAutoExpire(this.settings.rememberPasswordTimeout),n()})}),s=new T.Setting(e).setDesc("Remember passwords by using").addDropdown(r=>{r.addOption(h.LevelFullPath,"Full Path").addOption(h.LevelParentPath,"Parent Path").setValue(this.settings.rememberPasswordLevel).onChange(async o=>{this.settings.rememberPasswordLevel=o,await this.plugin.saveSettings(),h.setLevel(this.settings.rememberPasswordLevel),n()})});n(),this.features.forEach(r=>{r.buildSettingsUi(e,async()=>await this.plugin.saveSettings())})}};var v=require("obsidian");var j=new TextEncoder,fe=new TextDecoder,we=1e3,ye=j.encode("XHWnDAT6ehMVY2zD"),C=class{async deriveKey(t){let e=j.encode(t),n=await crypto.subtle.importKey("raw",e,{name:"PBKDF2"},!1,["deriveKey"]);return crypto.subtle.deriveKey({name:"PBKDF2",hash:{name:"SHA-256"},iterations:we,salt:ye},n,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}async encryptToBytes(t,e){let n=await this.deriveKey(e),i=j.encode(t),s=crypto.getRandomValues(new Uint8Array(16)),r=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:s},n,i)),o=new Uint8Array(s.byteLength+r.byteLength);return o.set(s,0),o.set(r,s.byteLength),o}convertToString(t){let e="";for(let n=0;n{n=o,o.setValue(this.text),o.inputEl.setSelectionRange(0,0),o.inputEl.readOnly=!0,o.inputEl.rows=10}).settingEl.querySelector(".setting-item-info"))==null||r.remove();let s=new I.Setting(e);s.addButton(o=>{o.setButtonText("Copy").onClick(a=>{navigator.clipboard.writeText(n.getValue()),new I.Notice("Copied!")})}),this.canDecryptInPlace&&s.addButton(o=>{o.setWarning().setButtonText("Decrypt in-place").onClick(a=>{this.decryptInPlace=!0,this.close()})})}};var E=require("obsidian");var H=require("obsidian"),P=class{static isSettingsModalOpen(){return document.querySelector(".mod-settings")!==null}static buildPasswordSetting({container:t,name:e,desc:n="",autoFocus:i=!1,placeholder:s="",initialValue:r="",onChangeCallback:o,onEnterCallback:a}){let p=new H.Setting(t).setName(e).setDesc(n).addButton(u=>{u.setIcon("reading-glasses").onClick(l=>{let d=p.components.find((c,g,y)=>c instanceof H.TextComponent);d instanceof H.TextComponent&&(d.inputEl.type=d.inputEl.type=="password"?"text":"password")})}).addText(u=>{u.setPlaceholder(s),u.setValue(r),u.inputEl.type="password",o!=null&&u.onChange(o),a!=null&&(u.inputEl.onkeydown=l=>{l.key==="Enter"&&(l.preventDefault(),a(u.getValue()))}),i&&setTimeout(()=>u.inputEl.focus(),0)});return p}};var A=class extends E.Modal{constructor(e,n,i,s,r=null,o=null){super(e);this.defaultPassword=null;this.defaultHint=null;this.resultConfirmed=!1;this.resultPassword=null;this.resultHint=null;this.resultShowInReadingView=null;this.defaultPassword=r,this.confirmPassword=i,this.showInReadingView=s,this.isEncrypting=n,this.defaultHint=o}onOpen(){var l,d;let{contentEl:e}=this;e.empty(),this.invalidate();let n=(l=this.defaultPassword)!=null?l:"",i="",s=(d=this.defaultHint)!=null?d:"",r=this.showInReadingView;new E.Setting(e).setHeading().setName(this.isEncrypting?"Encrypting":"Decrypting"),P.buildPasswordSetting({container:e,name:"Password:",placeholder:this.isEncrypting?"":`Hint: ${this.defaultHint}`,initialValue:n,autoFocus:!0,onChangeCallback:c=>{n=c,this.invalidate()},onEnterCallback:c=>{if(n=c,this.invalidate(),n.length>0)if(o.settingEl.isShown()){let g=o.components.find(y=>y instanceof E.TextComponent);g instanceof E.TextComponent&&g.inputEl.focus()}else if(a.settingEl.isShown()){let g=a.components.find(y=>y instanceof E.TextComponent);g instanceof E.TextComponent&&g.inputEl.focus()}else u()&&this.close()}});let o=P.buildPasswordSetting({container:e,name:"Confirm Password:",onChangeCallback:c=>{i=c,this.invalidate()},onEnterCallback:c=>{if(i=c,this.invalidate(),i.length>0&&u()&&a.settingEl.isShown()){let g=a.components.find(y=>y instanceof E.TextComponent);g instanceof E.TextComponent&&g.inputEl.focus()}}});this.confirmPassword||o.settingEl.hide();let a=new E.Setting(e).setName("Optional Password Hint").addText(c=>{c.inputEl.placeholder="Password Hint",c.setValue(s),c.onChange(g=>s=g),c.inputEl.on("keypress","*",(g,y)=>{g.key=="Enter"&&y instanceof HTMLInputElement&&y.value.length>0&&(g.preventDefault(),u()&&this.close())})});this.isEncrypting||a.settingEl.hide();let p=new E.Setting(e).setName("Show encrypted marker in Reading view").addToggle(c=>{c.setValue(r).onChange(g=>{r=g})});this.isEncrypting||p.settingEl.hide(),new E.Setting(e).addButton(c=>{c.setButtonText("Confirm").onClick(g=>{u()&&this.close()})});let u=()=>(this.invalidate(),o.setDesc(""),this.confirmPassword&&n!=i?(o.setDesc("Passwords don't match"),!1):(this.resultConfirmed=!0,this.resultPassword=n,this.resultHint=s,this.resultShowInReadingView=r,!0))}invalidate(){this.resultConfirmed=!1,this.resultPassword=null,this.resultHint=null}};var se="%%\u{1F510}\u03B1 ",J="\u{1F510}\u03B1 ",re="%%\u{1F510} ",M=[se,J,re],oe=" \u{1F510}%%",ae=" \u{1F510}",F=[oe,ae],x="\u{1F4A1}",B=class{async onload(t,e){this.plugin=t,this.pluginSettings=e,this.featureSettings=e.featureInplaceEncrypt,this.plugin.registerMarkdownPostProcessor((n,i)=>this.processEncryptedCodeBlockProcessor(n,i)),t.addCommand({id:"meld-encrypt",name:"Encrypt/Decrypt",icon:"lock",editorCheckCallback:(n,i,s)=>this.processEncryptDecryptCommand(n,i,!1)}),t.addCommand({id:"meld-encrypt-in-place",name:"Encrypt/Decrypt In-place",icon:"lock",editorCheckCallback:(n,i,s)=>this.processEncryptDecryptCommand(n,i,!0)})}onunload(){}processEncryptedCodeBlockProcessor(t,e){let n=e.getSectionInfo(t);if(n==null)return;let i=S.extractTextLines(n.text,n.lineStart,n.lineEnd),s=S.findFirstMarker(M,i);if(s==null||s.marker!=J)return;let r=S.findFirstMarker(F,i,s.position+s.marker.length);if(r==null)return;let o=S.removeMarkers(i,s,r),a=new G(o);if(!a.canDecrypt)return;let p=S.extractTextBeforeMarker(i,s),u=S.extractTextAfterMarker(i,r),l=createSpan({text:p}),d=createSpan({text:u}),c=createSpan({text:"\u{1F510}",cls:"meld-encrypt-inline-reading-marker"});c.onClickEvent(async()=>await this.handleReadingIndicatorClick(e.sourcePath,a.decryptable)),t.empty(),t.append(l,c,d)}async handleReadingIndicatorClick(t,e){if(await this.showDecryptedTextIfPasswordKnown(t,e))return;let n=await this.fetchPasswordFromUser(e.hint);n!=null&&(await this.showDecryptedResultForPassword(e,n)?h.putByPath({password:n,hint:e.hint},t):new v.Notice("\u274C Decryption failed!"))}async showDecryptedResultForPassword(t,e){let i=await new C().decryptFromBase64(t.base64CipherText,e);return i===null?!1:new Promise(s=>{let r=new D(this.plugin.app,"\u{1F513}",i);r.canDecryptInPlace=!1,r.onClose=()=>{s(!0)},r.open()})}async fetchPasswordFromUser(t){return new Promise(e=>{let n=new A(this.plugin.app,!1,!1,this.featureSettings.showMarkerWhenReadingDefault,"",t);n.onClose=()=>{e(n.resultPassword)},n.open()})}async showDecryptedTextIfPasswordKnown(t,e){let n=h.getByPath(t);return n.password==null?!1:await this.showDecryptedResultForPassword(e,n.password)}buildSettingsUi(t,e){new v.Setting(t).setHeading().setName("In-place Encryption Settings"),new v.Setting(t).setName("Expand selection to whole line?").setDesc("Partial selections will get expanded to the whole line.").addToggle(n=>{n.setValue(this.featureSettings.expandToWholeLines).onChange(async i=>{this.featureSettings.expandToWholeLines=i,await e()})}),new v.Setting(t).setName("By default, show encrypted marker when reading").setDesc("When encrypting inline text, should the default be to have a visible marker in Reading view?").addToggle(n=>{n.setValue(this.featureSettings.showMarkerWhenReadingDefault).onChange(async i=>{this.featureSettings.showMarkerWhenReadingDefault=i,await e()})})}processEncryptDecryptCommand(t,e,n){if(t&&P.isSettingsModalOpen())return!0;let i=e.getCursor("from"),s=e.getCursor("to");if(this.featureSettings.expandToWholeLines){i={line:i.line,ch:0};let a=s.line,p=e.getLine(a);s={line:a,ch:p.length}}else if(!e.somethingSelected()){let o=this.getClosestPrefixCursorPos(e);if(o==null)return!1;i=o;let a=this.getClosestSuffixCursorPos(e);if(a==null)return!1;s=a}let r=e.getRange(i,s);return this.processSelection(t,e,r,i,s,n)}getClosestPrefixCursorPos(t){let e=M.reduce((i,s,r)=>r==0||s.length>i.length?s:i),n=t.posToOffset(t.getCursor("from"))+e.length;for(let i=n;i>=0;i--){let s=t.offsetToPos(i);for(let r of M){let o=i-r.length,a=t.offsetToPos(o);if(t.getRange(a,s)==r)return t.offsetToPos(o)}}return null}getClosestSuffixCursorPos(t){let e=M.reduce((r,o,a)=>a==0||o.length>r.length?o:r),n=t.posToOffset(t.getCursor("from"))-e.length+1,i=t.lastLine(),s=t.posToOffset({line:i,ch:t.getLine(i).length});for(let r=n;r<=s;r++){let o=t.offsetToPos(r);for(let a of F){let p=r+a.length,u=t.offsetToPos(p);if(t.getRange(o,u)==a)return u}}return null}processSelection(t,e,n,i,s,r,o=!0){var g;let a=new G(n);if(a.isEmpty)return t||new v.Notice("Nothing to Encrypt."),!1;if(!a.canDecrypt&&!a.canEncrypt)return t||new v.Notice("Unable to Encrypt or Decrypt that."),!1;if(a.canEncrypt&&!o)return!1;let p=this.plugin.app.workspace.getActiveFile();if(p==null)return!1;if(t)return!0;let u="",l=(g=a.decryptable)==null?void 0:g.hint;if(this.pluginSettings.rememberPassword){let y=h.getByPath(p.path);u=y.password,l=l!=null?l:y.hint}let d=a.canEncrypt&&this.pluginSettings.confirmPassword,c=new A(this.plugin.app,a.canEncrypt,d,this.featureSettings.showMarkerWhenReadingDefault,u,l);return c.onClose=async()=>{var ee,te,ne,ie;if(!c.resultConfirmed)return;let y=(ee=c.resultPassword)!=null?ee:"",N=(te=c.resultHint)!=null?te:"";if(a.canEncrypt){let k=new Q;k.text=n,k.hint=N,this.encryptSelection(e,k,y,i,s,(ne=c.resultShowInReadingView)!=null?ne:this.featureSettings.showMarkerWhenReadingDefault),h.putByPath({password:y,hint:N},p.path)}else{let k;((ie=a.decryptable)==null?void 0:ie.version)==1?k=await this.decryptSelection_a(e,a.decryptable,y,i,s,r):k=await this.decryptSelectionObsolete(e,a,y,i,s,r),k&&h.putByPath({password:y,hint:N},p.path)}},c.open(),!0}async encryptSelection(t,e,n,i,s,r){let o=new C,a=this.encodeEncryption(await o.encryptToBase64(e.text,n),e.hint,r);t.setSelection(i,s),t.replaceSelection(a)}async decryptSelection_a(t,e,n,i,s,r){let a=await new C().decryptFromBase64(e.base64CipherText,n);if(a===null)return new v.Notice("\u274C Decryption failed!"),!1;if(r)t.setSelection(i,s),t.replaceSelection(a);else{let p=new D(this.plugin.app,"\u{1F513}",a);p.onClose=()=>{t.focus(),p.decryptInPlace&&(t.setSelection(i,s),t.replaceSelection(a))},p.open()}return!0}async decryptSelectionObsolete(t,e,n,i,s,r){let o=e.decryptable.base64CipherText,p=await new K().decryptFromBase64(o,n);if(p===null)return new v.Notice("\u274C Decryption failed!"),!1;if(r)t.setSelection(i,s),t.replaceSelection(p);else{let u=new D(this.plugin.app,"\u{1F513}",p);u.onClose=()=>{t.focus(),u.decryptInPlace&&(t.setSelection(i,s),t.replaceSelection(p))},u.open()}return!0}encodeEncryption(t,e,n){if(!M.some(i=>t.contains(i))&&!F.some(i=>t.contains(i))){let i=n?J:se,s=n?ae:oe;return e.length>0?i.concat(x,e,x,t,s):i.concat(t,s)}return t}},G=class{constructor(t){this.process(t)}process(t){var e,n;if(this.processedText=t,this.isEmpty=t.length===0,this.prefix=(e=M.find(i=>t.startsWith(i)))!=null?e:"",this.suffix=(n=F.find(i=>t.endsWith(i)))!=null?n:"",this.hasEncryptedPrefix=this.prefix.length>0,this.hasEncryptedSuffix=this.suffix.length>0,this.hasObsoleteEncryptedPrefix=this.prefix===re,this.containsEncryptedMarkers=[...M,...F].some(i=>t.contains(i)),this.canDecrypt=this.hasEncryptedPrefix&&this.hasEncryptedSuffix,this.canEncrypt=!this.hasEncryptedPrefix&&!this.containsEncryptedMarkers,this.canDecrypt){let i=this.parseDecryptableContent(t);i!=null?this.decryptable=i:this.canDecrypt=!1}}parseDecryptableContent(t){let e=new Z;if(!this.hasEncryptedPrefix||!this.hasEncryptedSuffix)return null;e.version=this.hasObsoleteEncryptedPrefix?0:1;let n=t.substring(this.prefix.length,t.length-this.suffix.length);if([...M,...F].some(i=>n.contains(i)))return null;if(n.substring(0,x.length)==x){let i=n.indexOf(x,x.length);if(i<0)return null;e.hint=n.substring(x.length,i),e.base64CipherText=n.substring(i+x.length)}else e.base64CipherText=n;return e}},Q=class{},Z=class{},S=class{static extractTextBeforeMarker(t,e){return t.substring(0,e.position)}static extractTextAfterMarker(t,e){return t.substring(e.position+e.marker.length)}static removeMarkers(t,e,n){return t.substring(e.position,n.position+n.marker.length)}static extractTextLines(t,e,n){return t.split(` +`).slice(e,n+1).join(` +`)}static findFirstMarker(t,e,n=0){let i=null,s=null;return t.forEach(r=>{let o=e.indexOf(r,n);o!=-1&&(i==null||othis.actionToggleEditMode()),this.elActionReadingView=this.addAction(this.iconReadingView,"Reading",()=>this.actionToggleEditMode()),this.elActionIconLockNote=this.addAction(this.iconLockFile,"Lock",()=>this.actionLockFile()),this.elActionChangePassword=this.addAction(this.iconChangePassword,"Change Password",()=>this.actionChangePassword()),this.elActionEditView.hide(),this.elActionReadingView.hide(),this.elActionIconLockNote.hide(),this.elActionChangePassword.hide(),this.containerEl.classList.add("meld-encrypt-encrypted-note-view"),this.contentEl.classList.add("meld-encrypt-encrypted-note-view-content")}actionToggleEditMode(){this.currentView==2&&(this.currentEditNoteMode=="Reading"?this.currentEditNoteMode="Source":this.currentEditNoteMode=="Source"&&(this.currentEditNoteMode="Reading"),this.refreshView(2))}actionLockFile(){this.encryptionPassword="",h.clearForPath(this.file.path),this.refreshView(1)}actionChangePassword(){this.refreshView(3)}onPaneMenu(e,n){n=="tab-header"&&this.currentView==2&&(e.addItem(i=>{i.setSection("action").setIcon(this.iconToggleEditView).setTitle("Toggle Editing/Reading").onClick(()=>this.actionToggleEditMode())}),e.addItem(i=>{i.setSection("action").setIcon(this.iconLockFile).setTitle("Lock").onClick(()=>this.actionLockFile())}),e.addItem(i=>{i.setSection("action").setIcon(this.iconChangePassword).setTitle("Change Password").onClick(()=>this.actionChangePassword())})),super.onPaneMenu(e,n)}addHeader(e,n){var i;e.createDiv({text:`\u{1F510} ${n} \u{1F510}`,cls:"encrypted-note-message"}),V.showInlineTitle&&e.createDiv({text:(i=this.file)==null?void 0:i.basename,cls:"inline-title"})}validatePassword(e){return e.length==0?"Password is too short":""}validateConfirm(e,n){return e===n?"":"Password doesn't match"}addNewNoteView(e){this.addHeader(e,"This note will be encrypted");let n=this.addUserInputContainer(e);new m.Setting(n).setDesc("Please provide a password and hint to start editing this note.");let i=async(d,c,g)=>{let y=this.validatePassword(d),N=this.validateConfirm(d,c);p.setDesc(y),u.setDesc(N),y.length===0&&N.length===0&&(this.encryptionPassword=d,this.hint=g,V.showInlineTitle||(this.currentEditorSourceText=`# ${this.file.basename} + + +`),await this.encodeAndSave(),h.putByPath({password:d,hint:g},this.file.path),this.currentEditNoteMode="Source",this.refreshView(2))},s=h.getByPath(this.file.path),r=s.password,o="",a=s.hint,p=P.buildPasswordSetting({container:n,name:"Password:",autoFocus:!0,initialValue:r,onChangeCallback:d=>{r=d,p.setDesc(this.validatePassword(r)),u.setDesc(this.validateConfirm(r,o))},onEnterCallback:d=>{var c;r=d,r.length>0&&((c=u.controlEl.querySelector("input"))==null||c.focus())}}),u=P.buildPasswordSetting({container:n,name:"Confirm:",autoFocus:!1,onChangeCallback:d=>{o=d,p.setDesc(this.validatePassword(r)),u.setDesc(this.validateConfirm(r,o))},onEnterCallback:d=>{var g;o=d,r===o&&((g=l.controlEl.querySelector("input"))==null||g.focus())}}),l=new m.Setting(n).setName("Hint:").addText(d=>{d.setValue(a),d.onChange(c=>{a=c})});l.controlEl.on("keydown","*",d=>{d.key==="Enter"&&(d.preventDefault(),i(r,o,a))}),new m.Setting(n).addButton(d=>{d.setCta().setIcon("go-to-file").setTooltip("Edit").onClick(c=>i(r,o,a))})}addDecryptNoteView(e){this.addHeader(e,"This note is encrypted");let n=this.addUserInputContainer(e);new m.Setting(n).setDesc("Please provide a password to unlock this note."),P.buildPasswordSetting({container:n,name:"Password:",autoFocus:!0,placeholder:this.formatHint(this.hint),onChangeCallback:s=>{this.encryptionPassword=s},onEnterCallback:async()=>await this.handleDecryptButtonClick()}),new m.Setting(n).addButton(s=>{s.setCta().setIcon("checkmark").setTooltip("Unlock & Edit").onClick(r=>this.handleDecryptButtonClick())});let i=h.getByPath(this.file.path);this.encryptionPassword=i.password,this.decryptWithPassword(i.password).then(s=>{s!=null&&(this.currentEditorSourceText=s,this.refreshView(2),new m.Notice("Decrypted using remembered password",2e3))})}async encodeAndSave(){try{let e=await X.encode(this.encryptionPassword,this.hint,this.currentEditorSourceText);this.data=R.encode(e),this.requestSave()}catch(e){console.error(e),new m.Notice(e,1e4)}}addEditorSourceView(e){this.elActionReadingView.show(),this.elActionIconLockNote.show(),this.elActionChangePassword.show(),this.addHeader(e,"Editing an encrypted note");let n=e.createDiv({cls:"editor-source-view"});n.spellcheck=!0,n.autocapitalize="on",n.translate=!1,n.contentEditable="true",n.innerText=this.currentEditorSourceText,n.focus(),n.on("input","*",async(i,s)=>{console.debug({container:n}),this.currentEditorSourceText=n.innerText,await this.encodeAndSave()})}addEditorReadingView(e){this.elActionEditView.show(),this.elActionIconLockNote.show(),this.elActionChangePassword.show(),this.addHeader(e,"Reading an encrypted note");let n=e.createDiv({cls:"editor-reading-view"});m.MarkdownRenderer.renderMarkdown(this.currentEditorSourceText,n,this.file.path,this).catch(i=>{console.error(i)})}addUserInputContainer(e){return e.createDiv({cls:"input-container"})}addChangePasswordView(e){this.addHeader(e,"Change encrypted note password");let n=this.addUserInputContainer(e),i="",s="",r="",o=async(l,d,c)=>{let g=this.validatePassword(l),y=this.validateConfirm(l,d);a.setDesc(g),p.setDesc(y),g.length===0&&y.length===0&&(this.encryptionPassword=l,this.hint=c,this.encodeAndSave(),this.refreshView(2),h.putByPath({password:l,hint:c},this.file.path),new m.Notice("Password and Hint were changed"))},a=P.buildPasswordSetting({container:n,name:"New Password:",autoFocus:!0,onChangeCallback:l=>{i=l,a.setDesc(this.validatePassword(i)),p.setDesc(this.validateConfirm(i,s))},onEnterCallback:l=>{var d;i=l,i.length>0&&((d=p.controlEl.querySelector("input"))==null||d.focus())}}),p=P.buildPasswordSetting({container:n,name:"Confirm:",onChangeCallback:l=>{s=l,a.setDesc(this.validatePassword(i)),p.setDesc(this.validateConfirm(i,s))},onEnterCallback:l=>{var c;s=l,i===s&&((c=u.controlEl.querySelector("input"))==null||c.focus())}}),u=new m.Setting(n).setName("New Hint:").addText(l=>{l.onChange(d=>{r=d})});u.controlEl.on("keydown","*",l=>{l.key==="Enter"&&(l.preventDefault(),o(i,s,r))}),new m.Setting(n).addButton(l=>{l.removeCta().setIcon("cross").setTooltip("Cancel").onClick(()=>{this.refreshView(2)})}).addButton(l=>{l.setCta().setIcon("checkmark").setTooltip("Change Password").setWarning().onClick(d=>{o(i,s,r)})})}formatHint(e){return e.length>0?`Hint: ${e}`:""}refreshView(e){this.currentView=e,this.elActionEditView.hide(),this.elActionReadingView.hide(),this.elActionIconLockNote.hide(),this.elActionChangePassword.hide(),this.contentEl.empty(),V.readableLineLength?this.contentEl.classList.add("is-readable-line-width"):this.contentEl.classList.remove("is-readable-line-width");let n=this.contentEl.createDiv({cls:"content-container"});switch(this.currentView){case 4:this.addNewNoteView(n);break;case 1:this.addDecryptNoteView(n);break;case 2:this.currentEditNoteMode=="Source"?this.addEditorSourceView(n):this.addEditorReadingView(n);break;case 3:this.addChangePasswordView(n);break}}async decryptWithPassword(e){if(e.length==0)return null;let n=R.decode(this.data);return await X.decrypt(n,e)}async handleDecryptButtonClick(){let e=await this.decryptWithPassword(this.encryptionPassword);e===null?new m.Notice("Decryption failed"):(h.putByPath({password:this.encryptionPassword,hint:this.hint},this.file.path),this.currentEditorSourceText=e,this.refreshView(2))}canAcceptExtension(e){return e=="encrypted"}getViewType(){return O}setViewData(e,n){if(n){let i;e===""?i=4:i=1,this.encryptionPassword="";let s=R.decode(this.data);this.hint=s.hint,this.refreshView(i)}else this.leaf.detach(),new m.Notice("Multiple views of the same encrypted note isn't supported")}getViewData(){return this.data}clear(){}},$=class{constructor(t,e){this.version="1.0";this.hint=t,this.encodedData=e}},X=class{static async encode(t,e,n){let s=await new C().encryptToBase64(n,t);return new $(e,s)}static async decrypt(t,e){return t.encodedData==""?"":await new C().decryptFromBase64(t.encodedData,e)}},R=class{static encode(t){return JSON.stringify(t,null,2)}static decode(t){return t===""?new $("",""):JSON.parse(t)}};var U=class{async onload(t,e){this.plugin=t,this.settings=e.featureWholeNoteEncrypt,this.updateUiForSettings(),this.plugin.registerView(O,n=>new Y(n,this.settings)),this.plugin.registerExtensions(["encrypted"],O),this.plugin.addCommand({id:"meld-encrypt-create-new-note",name:"Create new encrypted note",icon:"lock",callback:()=>this.processCreateNewEncryptedNoteCommand()})}onunload(){this.plugin.app.workspace.detachLeavesOfType(O)}processCreateNewEncryptedNoteCommand(){try{let t=(0,b.moment)().format("[Untitled] YYYYMMDD hhmmss[.encrypted]"),e,n=this.plugin.app.workspace.getActiveFile();n!=null?e=this.plugin.app.fileManager.getNewFileParent(n.path):e=this.plugin.app.fileManager.getNewFileParent("");let i=(0,b.normalizePath)(e.path+"/"+t);return this.plugin.app.vault.create(i,"").then(async s=>{await this.plugin.app.workspace.getLeaf(!1).openFile(s)}).catch(s=>{new b.Notice(s,1e4)}),!0}catch(t){return console.error(t),new b.Notice(t,1e4),!1}}buildSettingsUi(t,e){new b.Setting(t).setHeading().setName("Whole Note Encryption Settings"),new b.Setting(t).setName("Add ribbon icon to create note").setDesc("Adds a ribbon icon to the left bar to create an encrypted note.").addToggle(n=>{n.setValue(this.settings.addRibbonIconToCreateNote).onChange(async i=>{this.settings.addRibbonIconToCreateNote=i,await e(),this.updateUiForSettings()})}),new b.Setting(t).setName("Default view for new tabs").setDesc("The default view that a new encrypted note tab gets opened in").addDropdown(n=>{var i;n.addOption(`${"Source"}`,"Source view").addOption(`${"Reading"}`,"Reading view").setValue(`${(i=this.settings.defaultView)!=null?i:"Source"}`).onChange(async s=>{this.settings.defaultView=s,await e()})})}updateUiForSettings(){this.settings.addRibbonIconToCreateNote?this.ribbonIconCreateNewNote==null&&(this.ribbonIconCreateNewNote=this.plugin.addRibbonIcon("lock","Create new encrypted note",t=>{this.processCreateNewEncryptedNoteCommand()})):this.ribbonIconCreateNewNote!=null&&(this.ribbonIconCreateNewNote.remove(),this.ribbonIconCreateNewNote=null)}};var q=class extends ce.Plugin{constructor(){super(...arguments);this.enabledFeatures=[]}async onload(){await this.loadSettings(),this.enabledFeatures.push(new U,new B),this.addSettingTab(new L(this.app,this,this.settings,this.enabledFeatures)),this.enabledFeatures.forEach(async e=>{await e.onload(this,this.settings)})}onunload(){this.enabledFeatures.forEach(async e=>{e.onunload()})}async loadSettings(){let e={confirmPassword:!0,rememberPassword:!0,rememberPasswordTimeout:30,rememberPasswordLevel:h.LevelFullPath,featureWholeNoteEncrypt:{addRibbonIconToCreateNote:!0,defaultView:"Source".toString()},featureInplaceEncrypt:{expandToWholeLines:!1,showMarkerWhenReadingDefault:!0}};this.settings=Object.assign(e,await this.loadData()),h.setActive(this.settings.rememberPassword),h.setAutoExpire(this.settings.rememberPasswordTimeout==0?null:this.settings.rememberPasswordTimeout),h.setLevel(this.settings.rememberPasswordLevel)}async saveSettings(){await this.saveData(this.settings)}}; diff --git a/.obsidian/plugins/meld-encrypt/manifest.json b/.obsidian/plugins/meld-encrypt/manifest.json index a44ee6ec..7b262953 100644 --- a/.obsidian/plugins/meld-encrypt/manifest.json +++ b/.obsidian/plugins/meld-encrypt/manifest.json @@ -1,7 +1,7 @@ { "id": "meld-encrypt", "name": "Meld Encrypt", - "version": "2.0.5", + "version": "2.1.3", "minAppVersion": "1.0.3", "description": "Hide secrets in your vault", "author": "meld-cp", diff --git a/.obsidian/plugins/meld-encrypt/styles.css b/.obsidian/plugins/meld-encrypt/styles.css index e7d702ab..15390c50 100644 --- a/.obsidian/plugins/meld-encrypt/styles.css +++ b/.obsidian/plugins/meld-encrypt/styles.css @@ -1,44 +1,49 @@ -/* DEPRECATED */ +/* FEATURE WHOLE NOTE */ -.meld-e-row{ - display: flex; - margin-bottom: 1em; +.meld-encrypt-encrypted-note-view-content{ + display: flex; + flex-direction: column; + height: 100%; } -.meld-e-icon{ - flex: 1; - display: inline-block; - margin-right: 1em; +.meld-encrypt-encrypted-note-view .encrypted-note-message{ + text-align: center; + padding-bottom: 0.5em; } -.meld-e-row input{ - flex: 20; + +.meld-encrypt-encrypted-note-view .input-container{ + max-width: 400px; } -.meld-e-platform-desktop .meld-e-button-confirm { - margin-left: 2.8em; - padding: 1em 2em; +.meld-encrypt-encrypted-note-view .content-container{ + width: 100%; + height: 90%; } -.meld-e-platform-desktop .meld-e-button-confirm:focus{ - font-weight: bold; + +.meld-encrypt-encrypted-note-view .is-readable-line-width .content-container{ + max-width: var(--file-line-width); + margin-left: auto; + margin-right: auto; } -.meld-e-message{ - margin-left: 2.8em; - margin-bottom: 1em; +.meld-encrypt-encrypted-note-view .editor-reading-view, +.meld-encrypt-encrypted-note-view .editor-source-view{ + height: 100%; } -.meld-e-button-next{ - margin-left: 1em; - flex: 3; +/* END FEATURE WHOLE NOTE */ + +/* FEATURE IN LINE */ + +.meld-encrypt-inline-reading-marker { + cursor: pointer; } -.meld-e-platform-mobile .meld-e-button-next{ - display: inline-block; - margin: 0 0 0 1em; - width: auto; +.meld-encrypt-decrypt-modal textarea{ + width: 100%; + min-height: 3em; + resize: vertical; } -.meld-e-hint{ - flex: 20; -} \ No newline at end of file +/* END FEATURE IN LINE */ \ No newline at end of file diff --git a/.obsidian/plugins/obsidian-activity-history/data.json b/.obsidian/plugins/obsidian-activity-history/data.json index d89e5f1a..200f3c85 100644 --- a/.obsidian/plugins/obsidian-activity-history/data.json +++ b/.obsidian/plugins/obsidian-activity-history/data.json @@ -12,8 +12,8 @@ "checkpointList": [ { "path": "/", - "date": "2023-04-07", - "size": 14348477 + "date": "2023-04-10", + "size": 14459503 } ], "activityHistory": [ @@ -1830,7 +1830,19 @@ }, { "date": "2023-04-07", - "value": 1321 + "value": 2341 + }, + { + "date": "2023-04-08", + "value": 3485 + }, + { + "date": "2023-04-09", + "value": 4382 + }, + { + "date": "2023-04-10", + "value": 105967 } ] } diff --git a/.obsidian/plugins/obsidian-commits/data.json b/.obsidian/plugins/obsidian-commits/data.json index b3a2b07f..703cf143 100644 --- a/.obsidian/plugins/obsidian-commits/data.json +++ b/.obsidian/plugins/obsidian-commits/data.json @@ -961,7 +961,7 @@ }, "04.01 lebv.org/Les Le Bastart de Villeneuve.md": { "size": 971, - "tags": 5, + "tags": 6, "links": 3 }, "04.01 lebv.org/lebv Website Scope.md": { @@ -1520,7 +1520,7 @@ "links": 18 }, "05.02 Networks/Configuring UFW.md": { - "size": 5831, + "size": 6475, "tags": 2, "links": 7 }, @@ -1545,7 +1545,7 @@ "links": 16 }, "05.02 Networks/Server VPN.md": { - "size": 5649, + "size": 6228, "tags": 4, "links": 11 }, @@ -1655,7 +1655,7 @@ "links": 1 }, "01.02 Home/@Shopping list.md": { - "size": 4245, + "size": 4736, "tags": 1, "links": 1 }, @@ -3890,7 +3890,7 @@ "links": 3 }, "01.02 Home/Life - Practical infos.md": { - "size": 2134, + "size": 2377, "tags": 2, "links": 13 }, @@ -4041,7 +4041,7 @@ }, "03.02 Travels/Palermo.md": { "size": 1034, - "tags": 3, + "tags": 4, "links": 1 }, "03.02 Travels/Milan.md": { @@ -4051,7 +4051,7 @@ }, "03.02 Travels/Ticino.md": { "size": 1696, - "tags": 3, + "tags": 4, "links": 1 }, "00.03 News/The markets are in meltdown – but at least Kwasi Kwarteng’s doomsday cult isn’t to blame Marina Hyde.md": { @@ -4401,7 +4401,7 @@ }, "03.03 Food & Wine/Lemon Chicken.md": { "size": 3490, - "tags": 1, + "tags": 4, "links": 2 }, "00.03 News/How Ukrainians Are Protecting Their Centuries-Old Culture From Putin’s Invasion.md": { @@ -7434,11 +7434,6 @@ "tags": 0, "links": 5 }, - "00.01 Admin/Calendars/Events/2023-04-08 FC Zürich - FC Basel.md": { - "size": 269, - "tags": 0, - "links": 3 - }, "00.01 Admin/Calendars/Events/2023-04-29 Mariage Marguerite & Arnold.md": { "size": 858, "tags": 0, @@ -7799,11 +7794,6 @@ "tags": 2, "links": 2 }, - "00.01 Admin/Calendars/Events/2023-04-07 Mum in Zürich.md": { - "size": 235, - "tags": 0, - "links": 4 - }, "00.01 Admin/Calendars/2023-01-26.md": { "size": 1554, "tags": 0, @@ -8286,7 +8276,7 @@ }, "02.03 Zürich/Lennox.md": { "size": 1567, - "tags": 0, + "tags": 1, "links": 4 }, "00.01 Admin/Calendars/Events/2023-12-27 Miami.md": { @@ -8599,11 +8589,6 @@ "tags": 0, "links": 2 }, - "02.02 Paris/Andy Wahlou.md": { - "size": 1005, - "tags": 1, - "links": 2 - }, "02.02 Paris/Le Ballroom du Beef Club.md": { "size": 1035, "tags": 1, @@ -9067,17 +9052,17 @@ "00.03 News/Jaylen Brown Is Trying to Find a Balance.md": { "size": 36224, "tags": 4, - "links": 1 + "links": 2 }, "00.03 News/I Went on a Package Trip for Millennials Who Travel Alone. Help Me..md": { "size": 30666, "tags": 2, - "links": 1 + "links": 2 }, "00.03 News/Gisele Bündchen on Tom Brady, FTX Blind Side, and Being a “Witch of Love”.md": { "size": 41483, "tags": 4, - "links": 1 + "links": 2 }, "00.03 News/How Michael Cohen’s Big Mouth Could Be Derailing the Trump Prosecution.md": { "size": 12951, @@ -9132,7 +9117,7 @@ "00.03 News/We want objective judges and doctors. Why not journalists too.md": { "size": 21046, "tags": 2, - "links": 1 + "links": 2 }, "00.03 News/The Unimaginable Horror of Evan Gershkovich’s Arrest in Moscow.md": { "size": 8932, @@ -9167,15 +9152,70 @@ "00.01 Admin/Calendars/2023-04-07.md": { "size": 1412, "tags": 0, - "links": 4 + "links": 5 + }, + "00.01 Admin/Calendars/2023-04-08.md": { + "size": 1412, + "tags": 0, + "links": 6 + }, + "00.01 Admin/Calendars/Events/2023-04-08 FC Zürich - FC Basel (1-1).md": { + "size": 269, + "tags": 0, + "links": 2 + }, + "00.01 Admin/Templates/Template Animal.md": { + "size": 1168, + "tags": 0, + "links": 0 + }, + "00.01 Admin/Calendars/Events/2023-04-08 OGC Nice - PSG (0-2).md": { + "size": 212, + "tags": 0, + "links": 2 + }, + "00.01 Admin/Calendars/2023-04-09.md": { + "size": 1661, + "tags": 0, + "links": 7 + }, + "02.03 Zürich/Miss Miu.md": { + "size": 1539, + "tags": 2, + "links": 2 + }, + "00.01 Admin/Calendars/2023-04-10.md": { + "size": 1412, + "tags": 0, + "links": 6 + }, + "00.03 News/Saving the Horses of Our Imagination.md": { + "size": 35135, + "tags": 3, + "links": 1 + }, + "00.03 News/Gambler Who Beat Roulette Found Way to Win Beyond Red or Black.md": { + "size": 41340, + "tags": 4, + "links": 1 + }, + "00.03 News/Clarence Thomas Secretly Accepted Luxury Trips From Major GOP Donor.md": { + "size": 25190, + "tags": 4, + "links": 1 + }, + "03.04 Cinematheque/Rebel Without a Cause (1955).md": { + "size": 2047, + "tags": 0, + "links": 1 } }, "commitTypes": { "/": { - "Refactor": 2775, - "Create": 1640, - "Link": 3961, - "Expand": 1588 + "Refactor": 2788, + "Create": 1651, + "Link": 3990, + "Expand": 1598 } }, "dailyCommits": { @@ -9187,39 +9227,49 @@ "4": 17, "5": 13, "6": 64, - "7": 623, + "7": 625, "8": 826, - "9": 694, - "10": 519, - "11": 404, - "12": 379, + "9": 700, + "10": 521, + "11": 406, + "12": 381, "13": 421, - "14": 414, - "15": 418, - "16": 535, - "17": 565, + "14": 418, + "15": 430, + "16": 536, + "17": 567, "18": 760, - "19": 482, - "20": 447, - "21": 453, - "22": 455, - "23": 1231 + "19": 484, + "20": 451, + "21": 473, + "22": 457, + "23": 1233 } }, "weeklyCommits": { "/": { - "Mon": 2282, + "Mon": 2309, "Tue": 1272, "Wed": 1280, "Thu": 862, - "Fri": 932, + "Fri": 936, "Sat": 0, - "Sun": 3336 + "Sun": 3368 } }, "recentCommits": { "/": { "Expanded": [ + " Server VPN ", + " 2023-04-09 ", + " Life - Practical infos ", + " Miss Miu ", + " Template Animal ", + " Template Animal ", + " Template Animal ", + " 2023-04-08 OGC Nice - PSG ", + " @Shopping list ", + " Configuring UFW ", " Hosting Tasks ", " Household ", " Mallorca ", @@ -9260,19 +9310,20 @@ " 2023-03-08 ", " Configuring Telegram bots ", " 2023-04-14 Médecin ", - " @Health ", - " Portofino am See ", - " Household ", - " 2023-02-24 Kidney inflammation ", - " 2023-02-24 Kidney inflammation ", - " 2023-01-23 Checkup ", - " Checkup ", - " Checkup ", - " Template Timeline ", - " Checkup ", - " Health " + " @Health " ], "Created": [ + " Rebel Without a Cause (1955) ", + " Clarence Thomas Secretly Accepted Luxury Trips From Major GOP Donor ", + " Gambler Who Beat Roulette Found Way to Win Beyond Red or Black ", + " Saving the Horses of Our Imagination ", + " 2023-04-10 ", + " Untitled ", + " 2023-04-09 ", + " Untitled ", + " Untitled ", + " 2023-04-08 OGC Nice - PSG ", + " 2023-04-08 ", " 2023-04-07 ", " The Guard (2011) ", " 2023-04-06 ", @@ -9312,20 +9363,18 @@ " The Brilliant Inventor Who Made Two of History’s Biggest Mistakes ", " How an FBI agent stained an NCAA basketball corruption probe - Los Angeles Times ", " Leopards Are Living among People. And That Could Save the Species ", - " Why Joe Biden’s Honeymoon With Progressives Is Coming to an End ", - " Are Helicopter Parents Actually Lazy ", - " The Purposeful Presence of Lance Reddick ", - " The Dark Knight (2008) ", - " 2023-03-21 ", - " Batman Begins (2005) ", - " Untitled ", - " 2023-03-20 ", - " 2023-03-19 ", - " Untitled ", - " Striking French workers dispute that they want a right to ‘laziness’ ", - " Les Combrailles, à la découverte de l’Auvergne secrète " + " Why Joe Biden’s Honeymoon With Progressives Is Coming to an End " ], "Renamed": [ + " Rebel Without a Cause (1955) ", + " Clarence Thomas Secretly Accepted Luxury Trips From Major GOP Donor ", + " Gambler Who Beat Roulette Found Way to Win Beyond Red or Black ", + " Saving the Horses of Our Imagination ", + " Miss Miu ", + " 2023-04-08 OGC Nice - PSG (0-2) ", + " Template Animal ", + " Template - Animal ", + " 2023-04-08 FC Zürich - FC Basel (1-1) ", " The Guard (2011) ", " The Big Coin Heist ", " The Big Coin Heist ", @@ -9367,18 +9416,18 @@ " Striking French workers dispute that they want a right to ‘laziness’ ", " Law Roach on Why He Retired From Celebrity Fashion Styling ", " Is Fox News Really Doomed ", - " Le Camp des Saints ", - " The Camp of the Saints ", - " The Power And The Glory ", - " Korean Barbecue-Style Meatballs Recipe ", - " Read Your Way Through Miami ", - " John Wick - Chapter 3 - Parabellum (2019) ", - " John Wick - Chapter 2 (2017) ", - " Bull elephants – their importance as individuals in elephant societies - Africa Geographic ", - " The Silicon Valley Bank Contagion Is Just Beginning ", - " John Wick (2014) " + " Le Camp des Saints " ], "Tagged": [ + " Les Le Bastart de Villeneuve ", + " Palermo ", + " Ticino ", + " Lennox ", + " Clarence Thomas Secretly Accepted Luxury Trips From Major GOP Donor ", + " Saving the Horses of Our Imagination ", + " Gambler Who Beat Roulette Found Way to Win Beyond Red or Black ", + " Miss Miu ", + " Lemon Chicken ", " The Big Coin Heist ", " The Unimaginable Horror of Evan Gershkovich’s Arrest in Moscow ", " We want objective judges and doctors. Why not journalists too ", @@ -9420,16 +9469,7 @@ " Mel Brooks Isn’t Done Punching Up the History of the World ", " William's Butcherstable ", " The One Big Question Bernie Sanders Won’t Answer ", - " On the Trail of the Fentanyl King ", - " Humans Started Riding Horses 5,000 Years Ago, New Evidence Suggests ", - " 2021-12-31 Quits smoking ", - " 2020-05-06 Checkup ", - " 2021-05-25 COVID Vaccine 1 ", - " 2021-12-22 Covid booster ", - " 2021-06-29 COVID Vaccine 2 ", - " 2021-12-22 Covid booster ", - " Portofino am See ", - " 2023-02-24 Kidney inflammation " + " On the Trail of the Fentanyl King " ], "Refactored": [ " Storage and Syncing ", @@ -9485,6 +9525,9 @@ " 2022-10-03 Meggi leaving to Belfast " ], "Deleted": [ + " Andy Wahlou ", + " 2023-04-07 Mum in Zürich ", + " Test ", " Why are Americans dying so young ", " How Michael Cohen’s Big Mouth Could Be Derailing the Trump Prosecution ", " Les Combrailles, à la découverte de l’Auvergne secrète ", @@ -9532,12 +9575,29 @@ " 2022-12-15 Test ", " Life admin ", " Tomorrow Never Dies (1997) ", - " ‘The Hole’ Gruesome Accounts of Russian Occupation Emerge From Ukrainian Nuclear Plant ", - " 2022-11-10 Dinner @ Swiss Re ", - " 2022-11-06 ", - " Lemon Chicken Recipe (with Lemon Butter Sauce) - NatashasKitchen.com " + " ‘The Hole’ Gruesome Accounts of Russian Occupation Emerge From Ukrainian Nuclear Plant " ], "Linked": [ + " 2023-04-10 ", + " Rebel Without a Cause (1955) ", + " 2023-04-10 ", + " Gisele Bündchen on Tom Brady, FTX Blind Side, and Being a “Witch of Love” ", + " Clarence Thomas Secretly Accepted Luxury Trips From Major GOP Donor ", + " Saving the Horses of Our Imagination ", + " Gambler Who Beat Roulette Found Way to Win Beyond Red or Black ", + " 2023-04-10 ", + " 2023-04-09 ", + " 2023-04-09 ", + " Miss Miu ", + " 2023-04-09 ", + " We want objective judges and doctors. Why not journalists too ", + " 2023-04-08 OGC Nice - PSG ", + " 2023-04-08 ", + " I Went on a Package Trip for Millennials Who Travel Alone. Help Me. ", + " 2023-04-08 ", + " 2023-04-08 ", + " 2023-04-07 ", + " Jaylen Brown Is Trying to Find a Balance ", " 2023-04-07 ", " 2023-04-06 ", " The Guard (2011) ", @@ -9568,27 +9628,7 @@ " Adam Sandler doesn’t need your respect. But he’s getting it anyway. ", " 2023-03-28 ", " Gisele Bündchen on Tom Brady, FTX Blind Side, and Being a “Witch of Love” ", - " Jaylen Brown Is Trying to Find a Balance ", - " I Went on a Package Trip for Millennials Who Travel Alone. Help Me. ", - " 2023-03-27 ", - " The Limits and Wonders of John Wick’s Last Fight ", - " 2023-03-26 ", - " 2023-03-26 ", - " Narro ", - " Mel Brooks Isn’t Done Punching Up the History of the World ", - " 2023-03-25 ", - " An Icelandic Town Goes All Out to Save Baby Puffins ", - " How an FBI agent stained an NCAA basketball corruption probe ", - " Last Stand of the Hot Dog King ", - " The Limits and Wonders of John Wick’s Last Fight ", - " Last Stand of the Hot Dog King ", - " 2023-03-24 ", - " The Silicon Valley Bank Contagion Is Just Beginning ", - " Taktouka ", - " Zaalouk ", - " 2023-03-22 ", - " 2023-03-23 ", - " Esterno notte (2022) " + " Jaylen Brown Is Trying to Find a Balance " ], "Removed Tags from": [ " ‘Incredibly intelligent, highly elusive’ US faces new threat from Canadian ‘super pig’ ", @@ -9679,7 +9719,8 @@ " Life - Practical infos ", " ‘Incredibly intelligent, highly elusive’ US faces new threat from Canadian ‘super pig’ ", " @Desserts ", - " Server Tools " + " Server Tools ", + " 2023-04-08 FC Zürich - FC Basel " ] } }, diff --git a/.obsidian/plugins/obsidian-map-view/data.json b/.obsidian/plugins/obsidian-map-view/data.json index f49e7bbb..6d0022d9 100644 --- a/.obsidian/plugins/obsidian-map-view/data.json +++ b/.obsidian/plugins/obsidian-map-view/data.json @@ -136,6 +136,24 @@ "markerColor": "red", "icon": "fa-house" } + }, + { + "ruleName": "#🖥️", + "preset": false, + "iconDetails": { + "prefix": "fas", + "icon": "fa-server", + "markerColor": "orange-dark" + } + }, + { + "ruleName": "#⚜️", + "preset": false, + "iconDetails": { + "prefix": "fas", + "icon": "fa-scroll", + "markerColor": "blue-dark" + } } ], "zoomOnGoFromNote": 15, diff --git a/.obsidian/plugins/obsidian-reminder-plugin/data.json b/.obsidian/plugins/obsidian-reminder-plugin/data.json index dc566d7b..0be70f9e 100644 --- a/.obsidian/plugins/obsidian-reminder-plugin/data.json +++ b/.obsidian/plugins/obsidian-reminder-plugin/data.json @@ -31,13 +31,13 @@ "06.01 Finances/hLedger.md": [ { "title": ":heavy_dollar_sign: [[hLedger]]: Update Price file %%done_del%%", - "time": "2023-04-07", + "time": "2023-07-07", "rowNumber": 418 }, { "title": ":heavy_dollar_sign: [[hLedger]]: Update current ledger %%done_del%%", - "time": "2023-04-07", - "rowNumber": 419 + "time": "2023-07-07", + "rowNumber": 420 } ], "05.02 Networks/Server Cloud.md": [ @@ -68,22 +68,22 @@ { "title": ":closed_lock_with_key: [[Selfhosting]], [[Server Tools|Tools]]: Upgrader Bitwarden & Health checks %%done_del%%", "time": "2023-04-18", - "rowNumber": 589 + "rowNumber": 590 }, { "title": ":hammer_and_wrench: [[Selfhosting]], [[Server Tools|Tools]]: Upgrader Standard Notes & Health checks %%done_del%%", "time": "2023-05-18", - "rowNumber": 594 + "rowNumber": 595 }, { "title": ":desktop_computer: [[Selfhosting]], [[Server Tools|Tools]]: Upgrader Gitea & Health checks %%done_del%%", "time": "2023-06-18", - "rowNumber": 584 + "rowNumber": 585 }, { "title": ":hammer_and_wrench: [[Server Tools]]: Backup server %%done_del%%", "time": "2023-10-03", - "rowNumber": 576 + "rowNumber": 577 } ], "05.02 Networks/Server VPN.md": [ @@ -351,11 +351,6 @@ } ], "01.02 Home/Household.md": [ - { - "title": "🛎 🧻 REMINDER [[Household]]: check need for toilet paper %%done_del%%", - "time": "2023-04-10", - "rowNumber": 98 - }, { "title": "♻ [[Household]]: *Paper* recycling collection %%done_del%%", "time": "2023-04-11", @@ -364,7 +359,12 @@ { "title": ":bed: [[Household]] Change bedsheets %%done_del%%", "time": "2023-04-15", - "rowNumber": 108 + "rowNumber": 109 + }, + { + "title": "🛎 🧻 REMINDER [[Household]]: check need for toilet paper %%done_del%%", + "time": "2023-04-17", + "rowNumber": 98 }, { "title": "♻ [[Household]]: *Cardboard* recycling collection %%done_del%%", @@ -453,27 +453,27 @@ } ], "06.02 Investments/Crypto Tasks.md": [ - { - "title": ":chart: Check [[Nimbus]] earnings %%done_del%%", - "time": "2023-04-10", - "rowNumber": 77 - }, { "title": ":ballot_box: [[Crypto Tasks]]: Vote for [[EOS]] block producers %%done_del%%", "time": "2023-05-02", "rowNumber": 72 + }, + { + "title": ":chart: Check [[Nimbus]] earnings %%done_del%%", + "time": "2023-05-08", + "rowNumber": 77 } ], "05.02 Networks/Configuring UFW.md": [ { "title": "🖥 [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix %%done_del%%", - "time": "2023-04-08", + "time": "2023-04-15", "rowNumber": 239 }, { "title": "🖥 [[Selfhosting]], [[Configuring UFW|Firewall]]: Update the Blocked IP list %%done_del%%", - "time": "2023-04-08", - "rowNumber": 249 + "time": "2023-04-15", + "rowNumber": 250 } ], "01.03 Family/Amélie Solanet.md": [ @@ -608,13 +608,13 @@ ], "00.01 Admin/Calendars/2023-01-03.md": [ { - "title": "10:30 :bed: [[2023-01-03|Memo]], [[@Life Admin|Admin]], [[@@MRCK|Meggi]]: Replace the bed", - "time": "2023-12-31", - "rowNumber": 84 + "title": "13:08 🛞 [[2023-01-03|Memo]], [[@Life Admin|Admin]]: Buy summer tires", + "time": "2023-04-20", + "rowNumber": 97 }, { "title": "10:31 :tooth: [[2023-01-03|Memo]], [[@Life Admin|Admin]]: Find a dentist", - "time": "2023-03-31", + "time": "2023-04-30", "rowNumber": 85 }, { @@ -628,9 +628,9 @@ "rowNumber": 91 }, { - "title": "13:08 🛞 [[2023-01-03|Memo]], [[@Life Admin|Admin]]: Buy summer tires", - "time": "2023-04-10", - "rowNumber": 97 + "title": "10:30 :bed: [[2023-01-03|Memo]], [[@Life Admin|Admin]], [[@@MRCK|Meggi]]: Replace the bed", + "time": "2023-12-31", + "rowNumber": 84 } ], "01.01 Life Orga/@Life Admin.md": [ @@ -690,13 +690,6 @@ "rowNumber": 69 } ], - "00.01 Admin/Calendars/2023-02-01.md": [ - { - "title": "12:29 :moneybag: [[2023-02-01|Memo]], [[@Finances|Finances]]: Tax declaration 2022", - "time": "2023-04-10", - "rowNumber": 103 - } - ], "00.01 Admin/Calendars/2023-02-18.md": [ { "title": "18:18 :crocodile: [[2023-02-18|Memo]], [[Miami]]: Book a NYE party", @@ -793,6 +786,23 @@ "time": "2023-06-18", "rowNumber": 106 } + ], + "00.01 Admin/Calendars/2023-04-09.md": [ + { + "title": "20:37 :racehorse: [[Polo Park Zürich]], [[2023-04-09|Memo]]: Check EHV-1 vaccination for Sally", + "time": "2023-04-16", + "rowNumber": 103 + }, + { + "title": "20:37 :racehorse: [[Polo Park Zürich]], [[2023-04-09|Memo]]: Send liability insurance to PPZ", + "time": "2023-04-16", + "rowNumber": 104 + }, + { + "title": "20:41 :racehorse: [[Polo Park Zürich]], [[2023-04-09|Memo]]: Answer for Season Launch lunch", + "time": "2023-04-23", + "rowNumber": 105 + } ] }, "debug": false, diff --git a/.obsidian/plugins/obsidian-tasks-plugin/main.js b/.obsidian/plugins/obsidian-tasks-plugin/main.js index 971b9cd1..146c61f5 100644 --- a/.obsidian/plugins/obsidian-tasks-plugin/main.js +++ b/.obsidian/plugins/obsidian-tasks-plugin/main.js @@ -122,17 +122,17 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -"use strict";var mk=Object.create;var Li=Object.defineProperty,yk=Object.defineProperties,gk=Object.getOwnPropertyDescriptor,_k=Object.getOwnPropertyDescriptors,Tk=Object.getOwnPropertyNames,zp=Object.getOwnPropertySymbols,bk=Object.getPrototypeOf,Kp=Object.prototype.hasOwnProperty,vk=Object.prototype.propertyIsEnumerable;var Vp=(r,e,t)=>e in r?Li(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Ce=(r,e)=>{for(var t in e||(e={}))Kp.call(e,t)&&Vp(r,t,e[t]);if(zp)for(var t of zp(e))vk.call(e,t)&&Vp(r,t,e[t]);return r},er=(r,e)=>yk(r,_k(e));var O=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),wk=(r,e)=>{for(var t in e)Li(r,t,{get:e[t],enumerable:!0})},Zp=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Tk(e))!Kp.call(r,s)&&s!==t&&Li(r,s,{get:()=>e[s],enumerable:!(n=gk(e,s))||n.enumerable});return r};var ns=(r,e,t)=>(t=r!=null?mk(bk(r)):{},Zp(e||!r||!r.__esModule?Li(t,"default",{value:r,enumerable:!0}):t,r)),kk=r=>Zp(Li({},"__esModule",{value:!0}),r);var J=(r,e,t)=>new Promise((n,s)=>{var a=c=>{try{l(t.next(c))}catch(f){s(f)}},o=c=>{try{l(t.throw(c))}catch(f){s(f)}},l=c=>c.done?n(c.value):Promise.resolve(c.value).then(a,o);l((t=t.apply(r,e)).next())});var Le=O(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.matchAnyPattern=xn.extractTerms=xn.repeatedTimeunitPattern=void 0;function Ok(r,e){let t=e.replace(/\((?!\?)/g,"(?:");return`${r}${t}\\s{0,5}(?:,?\\s{0,5}${t}){0,10}`}xn.repeatedTimeunitPattern=Ok;function Xp(r){let e;return r instanceof Array?e=[...r]:r instanceof Map?e=Array.from(r.keys()):e=Object.keys(r),e}xn.extractTerms=Xp;function Mk(r){return`(?:${Xp(r).sort((t,n)=>n.length-t.length).join("|").replace(/\./g,"\\.")})`}xn.matchAnyPattern=Mk});var Pe=O((Ml,Rl)=>{(function(r,e){typeof Ml=="object"&&typeof Rl!="undefined"?Rl.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis!="undefined"?globalThis:r||self).dayjs=e()})(Ml,function(){"use strict";var r=1e3,e=6e4,t=36e5,n="millisecond",s="second",a="minute",o="hour",l="day",c="week",f="month",m="quarter",g="year",T="date",E="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},q=function(V,W,x){var Q=String(V);return!Q||Q.length>=W?V:""+Array(W+1-Q.length).join(x)+V},$={s:q,z:function(V){var W=-V.utcOffset(),x=Math.abs(W),Q=Math.floor(x/60),Y=x%60;return(W<=0?"+":"-")+q(Q,2,"0")+":"+q(Y,2,"0")},m:function V(W,x){if(W.date(){"use strict";var Rk=An&&An.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(An,"__esModule",{value:!0});An.findYearClosestToRef=An.findMostLikelyADYear=void 0;var Pk=Rk(Pe());function xk(r){return r<100&&(r>50?r=r+1900:r=r+2e3),r}An.findMostLikelyADYear=xk;function Ak(r,e,t){let n=Pk.default(r),s=n;s=s.month(t-1),s=s.date(e),s=s.year(n.year());let a=s.add(1,"y"),o=s.add(-1,"y");return Math.abs(a.diff(n)){"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.parseTimeUnits=_e.TIME_UNITS_PATTERN=_e.parseYear=_e.YEAR_PATTERN=_e.parseOrdinalNumberPattern=_e.ORDINAL_NUMBER_PATTERN=_e.parseNumberPattern=_e.NUMBER_PATTERN=_e.TIME_UNIT_DICTIONARY=_e.ORDINAL_WORD_DICTIONARY=_e.INTEGER_WORD_DICTIONARY=_e.MONTH_DICTIONARY=_e.FULL_MONTH_NAME_DICTIONARY=_e.WEEKDAY_DICTIONARY=void 0;var Do=Le(),Nk=Rt();_e.WEEKDAY_DICTIONARY={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6};_e.FULL_MONTH_NAME_DICTIONARY={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12};_e.MONTH_DICTIONARY=Object.assign(Object.assign({},_e.FULL_MONTH_NAME_DICTIONARY),{jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12});_e.INTEGER_WORD_DICTIONARY={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12};_e.ORDINAL_WORD_DICTIONARY={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31};_e.TIME_UNIT_DICTIONARY={sec:"second",second:"second",seconds:"second",min:"minute",mins:"minute",minute:"minute",minutes:"minute",h:"hour",hr:"hour",hrs:"hour",hour:"hour",hours:"hour",day:"d",days:"d",week:"week",weeks:"week",month:"month",months:"month",qtr:"quarter",quarter:"quarter",quarters:"quarter",y:"year",yr:"year",year:"year",years:"year"};_e.NUMBER_PATTERN=`(?:${Do.matchAnyPattern(_e.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;function Jp(r){let e=r.toLowerCase();return _e.INTEGER_WORD_DICTIONARY[e]!==void 0?_e.INTEGER_WORD_DICTIONARY[e]:e==="a"||e==="an"?1:e.match(/few/)?3:e.match(/half/)?.5:e.match(/couple/)?2:e.match(/several/)?7:parseFloat(e)}_e.parseNumberPattern=Jp;_e.ORDINAL_NUMBER_PATTERN=`(?:${Do.matchAnyPattern(_e.ORDINAL_WORD_DICTIONARY)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function Ck(r){let e=r.toLowerCase();return _e.ORDINAL_WORD_DICTIONARY[e]!==void 0?_e.ORDINAL_WORD_DICTIONARY[e]:(e=e.replace(/(?:st|nd|rd|th)$/i,""),parseInt(e))}_e.parseOrdinalNumberPattern=Ck;_e.YEAR_PATTERN="(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-2][0-9]{3}|[5-9][0-9])";function Ik(r){if(/BE/i.test(r))return r=r.replace(/BE/i,""),parseInt(r)-543;if(/BCE?/i.test(r))return r=r.replace(/BCE?/i,""),-parseInt(r);if(/(AD|CE)/i.test(r))return r=r.replace(/(AD|CE)/i,""),parseInt(r);let e=parseInt(r);return Nk.findMostLikelyADYear(e)}_e.parseYear=Ik;var em=`(${_e.NUMBER_PATTERN})\\s{0,3}(${Do.matchAnyPattern(_e.TIME_UNIT_DICTIONARY)})`,Qp=new RegExp(em,"i");_e.TIME_UNITS_PATTERN=Do.repeatedTimeunitPattern("(?:(?:about|around)\\s{0,3})?",em);function Fk(r){let e={},t=r,n=Qp.exec(t);for(;n;)Lk(e,n),t=t.substring(n[0].length).trim(),n=Qp.exec(t);return e}_e.parseTimeUnits=Fk;function Lk(r,e){let t=Jp(e[1]),n=_e.TIME_UNIT_DICTIONARY[e[2].toLowerCase()];r[n]=t}});var tm=O((Pl,xl)=>{(function(r,e){typeof Pl=="object"&&typeof xl!="undefined"?xl.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis!="undefined"?globalThis:r||self).dayjs_plugin_quarterOfYear=e()})(Pl,function(){"use strict";var r="month",e="quarter";return function(t,n){var s=n.prototype;s.quarter=function(l){return this.$utils().u(l)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(l-1))};var a=s.add;s.add=function(l,c){return l=Number(l),this.$utils().p(c)===e?this.add(3*l,r):a.bind(this)(l,c)};var o=s.startOf;s.startOf=function(l,c){var f=this.$utils(),m=!!f.u(c)||c;if(f.p(l)===e){var g=this.quarter()-1;return m?this.month(3*g).startOf(r).startOf("day"):this.month(3*g+2).endOf(r).endOf("day")}return o.bind(this)(l,c)}}})});var pr=O(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.implySimilarTime=Lr.assignSimilarTime=Lr.assignSimilarDate=Lr.assignTheNextDay=void 0;var rm=ht();function Yk(r,e){e=e.add(1,"day"),nm(r,e),sm(r,e)}Lr.assignTheNextDay=Yk;function nm(r,e){r.assign("day",e.date()),r.assign("month",e.month()+1),r.assign("year",e.year())}Lr.assignSimilarDate=nm;function Uk(r,e){r.assign("hour",e.hour()),r.assign("minute",e.minute()),r.assign("second",e.second()),r.assign("millisecond",e.millisecond()),r.get("hour")<12?r.assign("meridiem",rm.Meridiem.AM):r.assign("meridiem",rm.Meridiem.PM)}Lr.assignSimilarTime=Uk;function sm(r,e){r.imply("hour",e.hour()),r.imply("minute",e.minute()),r.imply("second",e.second()),r.imply("millisecond",e.millisecond())}Lr.implySimilarTime=sm});var im=O(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.toTimezoneOffset=ss.TIMEZONE_ABBR_MAP=void 0;ss.TIMEZONE_ABBR_MAP={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:60,CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:-300,FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:-480,PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function Wk(r){var e;return r==null?null:typeof r=="number"?r:(e=ss.TIMEZONE_ABBR_MAP[r])!==null&&e!==void 0?e:null}ss.toTimezoneOffset=Wk});var tt=O(Yr=>{"use strict";var am=Yr&&Yr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.ParsingResult=Yr.ParsingComponents=Yr.ReferenceWithTimezone=void 0;var qk=am(tm()),Eo=am(Pe()),Al=pr(),jk=im();Eo.default.extend(qk.default);var Nl=class{constructor(e){var t;e=e!=null?e:new Date,e instanceof Date?this.instant=e:(this.instant=(t=e.instant)!==null&&t!==void 0?t:new Date,this.timezoneOffset=jk.toTimezoneOffset(e.timezone))}};Yr.ReferenceWithTimezone=Nl;var is=class{constructor(e,t){if(this.reference=e,this.knownValues={},this.impliedValues={},t)for(let s in t)this.knownValues[s]=t[s];let n=Eo.default(e.instant);this.imply("day",n.date()),this.imply("month",n.month()+1),this.imply("year",n.year()),this.imply("hour",12),this.imply("minute",0),this.imply("second",0),this.imply("millisecond",0)}get(e){return e in this.knownValues?this.knownValues[e]:e in this.impliedValues?this.impliedValues[e]:null}isCertain(e){return e in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(e,t){return e in this.knownValues?this:(this.impliedValues[e]=t,this)}assign(e,t){return this.knownValues[e]=t,delete this.impliedValues[e],this}delete(e){delete this.knownValues[e],delete this.impliedValues[e]}clone(){let e=new is(this.reference);e.knownValues={},e.impliedValues={};for(let t in this.knownValues)e.knownValues[t]=this.knownValues[t];for(let t in this.impliedValues)e.impliedValues[t]=this.impliedValues[t];return e}isOnlyDate(){return!this.isCertain("hour")&&!this.isCertain("minute")&&!this.isCertain("second")}isOnlyTime(){return!this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")}isOnlyWeekdayComponent(){return this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")}isOnlyDayMonthComponent(){return this.isCertain("day")&&this.isCertain("month")&&!this.isCertain("year")}isValidDate(){let e=this.dateWithoutTimezoneAdjustment();return!(e.getFullYear()!==this.get("year")||e.getMonth()!==this.get("month")-1||e.getDate()!==this.get("day")||this.get("hour")!=null&&e.getHours()!=this.get("hour")||this.get("minute")!=null&&e.getMinutes()!=this.get("minute"))}toString(){return`[ParsingComponents {knownValues: ${JSON.stringify(this.knownValues)}, impliedValues: ${JSON.stringify(this.impliedValues)}}, reference: ${JSON.stringify(this.reference)}]`}dayjs(){return Eo.default(this.date())}date(){let e=this.dateWithoutTimezoneAdjustment();return new Date(e.getTime()+this.getSystemTimezoneAdjustmentMinute(e)*6e4)}dateWithoutTimezoneAdjustment(){let e=new Date(this.get("year"),this.get("month")-1,this.get("day"),this.get("hour"),this.get("minute"),this.get("second"),this.get("millisecond"));return e.setFullYear(this.get("year")),e}getSystemTimezoneAdjustmentMinute(e){var t,n;(!e||e.getTime()<0)&&(e=new Date);let s=-e.getTimezoneOffset(),a=(n=(t=this.get("timezoneOffset"))!==null&&t!==void 0?t:this.reference.timezoneOffset)!==null&&n!==void 0?n:s;return s-a}static createRelativeFromReference(e,t){let n=Eo.default(e.instant);for(let a in t)n=n.add(t[a],a);let s=new is(e);return t.hour||t.minute||t.second?(Al.assignSimilarTime(s,n),Al.assignSimilarDate(s,n),e.timezoneOffset!==null&&s.assign("timezoneOffset",-e.instant.getTimezoneOffset())):(Al.implySimilarTime(s,n),e.timezoneOffset!==null&&s.imply("timezoneOffset",-e.instant.getTimezoneOffset()),t.d?(s.assign("day",n.date()),s.assign("month",n.month()+1),s.assign("year",n.year())):(t.week&&s.imply("weekday",n.day()),s.imply("day",n.date()),t.month?(s.assign("month",n.month()+1),s.assign("year",n.year())):(s.imply("month",n.month()+1),t.year?s.assign("year",n.year()):s.imply("year",n.year())))),s}};Yr.ParsingComponents=is;var Yi=class{constructor(e,t,n,s,a){this.reference=e,this.refDate=e.instant,this.index=t,this.text=n,this.start=s||new is(e),this.end=a}clone(){let e=new Yi(this.reference,this.index,this.text);return e.start=this.start?this.start.clone():null,e.end=this.end?this.end.clone():null,e}date(){return this.start.date()}toString(){return`[ParsingResult {index: ${this.index}, text: '${this.text}', ...}]`}};Yr.ParsingResult=Yi});var Z=O(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.AbstractParserWithWordBoundaryChecking=void 0;var Cl=class{constructor(){this.cachedInnerPattern=null,this.cachedPattern=null}patternLeftBoundary(){return"(\\W|^)"}pattern(e){let t=this.innerPattern(e);return t==this.cachedInnerPattern?this.cachedPattern:(this.cachedPattern=new RegExp(`${this.patternLeftBoundary()}${t.source}`,t.flags),this.cachedInnerPattern=t,this.cachedPattern)}extract(e,t){var n;let s=(n=t[1])!==null&&n!==void 0?n:"";t.index=t.index+s.length,t[0]=t[0].substring(s.length);for(let a=2;a{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var Fl=Pt(),$k=tt(),Bk=Z(),Gk=new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${Fl.TIME_UNITS_PATTERN})(?=\\W|$)`,"i"),Hk=new RegExp(`(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${Fl.TIME_UNITS_PATTERN})(?=\\W|$)`,"i"),Il=class extends Bk.AbstractParserWithWordBoundaryChecking{innerPattern(e){return e.option.forwardDate?Hk:Gk}innerExtract(e,t){let n=Fl.parseTimeUnits(t[1]);return $k.ParsingComponents.createRelativeFromReference(e.reference,n)}};Ll.default=Il});var hm=O(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var zk=Rt(),dm=Pt(),fm=Pt(),Oo=Pt(),Vk=Le(),Kk=Z(),Zk=new RegExp(`(?:on\\s{0,3})?(${Oo.ORDINAL_NUMBER_PATTERN})(?:\\s{0,3}(?:to|\\-|\\\u2013|until|through|till)?\\s{0,3}(${Oo.ORDINAL_NUMBER_PATTERN}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${Vk.matchAnyPattern(dm.MONTH_DICTIONARY)})(?:(?:-|/|,?\\s{0,3})(${fm.YEAR_PATTERN}(?![^\\s]\\d)))?(?=\\W|$)`,"i"),um=1,lm=2,Xk=3,cm=4,Yl=class extends Kk.AbstractParserWithWordBoundaryChecking{innerPattern(){return Zk}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=dm.MONTH_DICTIONARY[t[Xk].toLowerCase()],a=Oo.parseOrdinalNumberPattern(t[um]);if(a>31)return t.index=t.index+t[um].length,null;if(n.start.assign("month",s),n.start.assign("day",a),t[cm]){let o=fm.parseYear(t[cm]);n.start.assign("year",o)}else{let o=zk.findYearClosestToRef(e.refDate,a,s);n.start.imply("year",o)}if(t[lm]){let o=Oo.parseOrdinalNumberPattern(t[lm]);n.end=n.start.clone(),n.end.assign("day",o)}return n}};Ul.default=Yl});var _m=O(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var Qk=Rt(),ym=Pt(),Mo=Pt(),gm=Pt(),Jk=Le(),eD=Z(),tD=new RegExp(`(${Jk.matchAnyPattern(ym.MONTH_DICTIONARY)})(?:-|/|\\s*,?\\s*)(${Mo.ORDINAL_NUMBER_PATTERN})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${Mo.ORDINAL_NUMBER_PATTERN})\\s*)?(?:(?:-|/|\\s*,?\\s*)(${gm.YEAR_PATTERN}))?(?=\\W|$)(?!\\:\\d)`,"i"),rD=1,nD=2,pm=3,mm=4,Wl=class extends eD.AbstractParserWithWordBoundaryChecking{innerPattern(){return tD}innerExtract(e,t){let n=ym.MONTH_DICTIONARY[t[rD].toLowerCase()],s=Mo.parseOrdinalNumberPattern(t[nD]);if(s>31)return null;let a=e.createParsingComponents({day:s,month:n});if(t[mm]){let c=gm.parseYear(t[mm]);a.assign("year",c)}else{let c=Qk.findYearClosestToRef(e.refDate,s,n);a.imply("year",c)}if(!t[pm])return a;let o=Mo.parseOrdinalNumberPattern(t[pm]),l=e.createParsingResult(t.index,t[0]);return l.start=a,l.end=a.clone(),l.end.assign("day",o),l}};ql.default=Wl});var vm=O(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var jl=Pt(),sD=Rt(),iD=Le(),bm=Pt(),aD=Z(),oD=new RegExp(`((?:in)\\s*)?(${iD.matchAnyPattern(jl.MONTH_DICTIONARY)})\\s*(?:[,-]?\\s*(${bm.YEAR_PATTERN})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i"),uD=1,lD=2,Tm=3,$l=class extends aD.AbstractParserWithWordBoundaryChecking{innerPattern(){return oD}innerExtract(e,t){let n=t[lD].toLowerCase();if(t[0].length<=3&&!jl.FULL_MONTH_NAME_DICTIONARY[n])return null;let s=e.createParsingResult(t.index+(t[uD]||"").length,t.index+t[0].length);s.start.imply("day",1);let a=jl.MONTH_DICTIONARY[n];if(s.start.assign("month",a),t[Tm]){let o=bm.parseYear(t[Tm]);s.start.assign("year",o)}else{let o=sD.findYearClosestToRef(e.refDate,1,a);s.start.imply("year",o)}return s}};Bl.default=$l});var Dm=O(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var km=Pt(),cD=Le(),dD=Z(),fD=new RegExp(`([0-9]{4})[\\.\\/\\s](?:(${cD.matchAnyPattern(km.MONTH_DICTIONARY)})|([0-9]{1,2}))[\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i"),hD=1,pD=2,wm=3,mD=4,Gl=class extends dD.AbstractParserWithWordBoundaryChecking{innerPattern(){return fD}innerExtract(e,t){let n=t[wm]?parseInt(t[wm]):km.MONTH_DICTIONARY[t[pD].toLowerCase()];if(n<1||n>12)return null;let s=parseInt(t[hD]);return{day:parseInt(t[mD]),month:n,year:s}}};Hl.default=Gl});var Em=O(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var yD=Z(),gD=new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i"),_D=1,TD=2,zl=class extends yD.AbstractParserWithWordBoundaryChecking{innerPattern(){return gD}innerExtract(e,t){let n=parseInt(t[TD]),s=parseInt(t[_D]);return e.createParsingComponents().imply("day",1).assign("month",s).assign("year",n)}};Vl.default=zl});var as=O(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.AbstractTimeExpressionParser=void 0;var $t=ht();function bD(r,e,t,n){return new RegExp(`${r}${e}(\\d{1,4})(?:(?:\\.|:|\uFF1A)(\\d{1,2})(?:(?::|\uFF1A)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`,n)}function vD(r,e){return new RegExp(`^(${r})(\\d{1,4})(?:(?:\\.|\\:|\\\uFF1A)(\\d{1,2})(?:(?:\\.|\\:|\\\uFF1A)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${e}`,"i")}var Sm=2,qs=3,Ro=4,Po=5,Ui=6,Kl=class{constructor(e=!1){this.cachedPrimaryPrefix=null,this.cachedPrimarySuffix=null,this.cachedPrimaryTimePattern=null,this.cachedFollowingPhase=null,this.cachedFollowingSuffix=null,this.cachedFollowingTimePatten=null,this.strictMode=e}patternFlags(){return"i"}primaryPatternLeftBoundary(){return"(^|\\s|T|\\b)"}primarySuffix(){return"(?=\\W|$)"}followingSuffix(){return"(?=\\W|$)"}pattern(e){return this.getPrimaryTimePatternThroughCache()}extract(e,t){let n=this.extractPrimaryTimeComponents(e,t);if(!n)return t.index+=t[0].length,null;let s=t.index+t[1].length,a=t[0].substring(t[1].length),o=e.createParsingResult(s,a,n);t.index+=t[0].length;let l=e.text.substring(t.index),f=this.getFollowingTimePatternThroughCache().exec(l);return a.match(/^\d{3,4}/)&&f&&f[0].match(/^\s*([+-])\s*\d{2,4}$/)?null:!f||f[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(o):(o.end=this.extractFollowingTimeComponents(e,f,o),o.end&&(o.text+=f[0]),this.checkAndReturnWithFollowingPattern(o))}extractPrimaryTimeComponents(e,t,n=!1){let s=e.createParsingComponents(),a=0,o=null,l=parseInt(t[Sm]);if(l>100){if(this.strictMode||t[qs]!=null)return null;a=l%100,l=Math.floor(l/100)}if(l>24)return null;if(t[qs]!=null){if(t[qs].length==1&&!t[Ui])return null;a=parseInt(t[qs])}if(a>=60)return null;if(l>12&&(o=$t.Meridiem.PM),t[Ui]!=null){if(l>12)return null;let c=t[Ui][0].toLowerCase();c=="a"&&(o=$t.Meridiem.AM,l==12&&(l=0)),c=="p"&&(o=$t.Meridiem.PM,l!=12&&(l+=12))}if(s.assign("hour",l),s.assign("minute",a),o!==null?s.assign("meridiem",o):l<12?s.imply("meridiem",$t.Meridiem.AM):s.imply("meridiem",$t.Meridiem.PM),t[Po]!=null){let c=parseInt(t[Po].substring(0,3));if(c>=1e3)return null;s.assign("millisecond",c)}if(t[Ro]!=null){let c=parseInt(t[Ro]);if(c>=60)return null;s.assign("second",c)}return s}extractFollowingTimeComponents(e,t,n){let s=e.createParsingComponents();if(t[Po]!=null){let c=parseInt(t[Po].substring(0,3));if(c>=1e3)return null;s.assign("millisecond",c)}if(t[Ro]!=null){let c=parseInt(t[Ro]);if(c>=60)return null;s.assign("second",c)}let a=parseInt(t[Sm]),o=0,l=-1;if(t[qs]!=null?o=parseInt(t[qs]):a>100&&(o=a%100,a=Math.floor(a/100)),o>=60||a>24)return null;if(a>=12&&(l=$t.Meridiem.PM),t[Ui]!=null){if(a>12)return null;let c=t[Ui][0].toLowerCase();c=="a"&&(l=$t.Meridiem.AM,a==12&&(a=0,s.isCertain("day")||s.imply("day",s.get("day")+1))),c=="p"&&(l=$t.Meridiem.PM,a!=12&&(a+=12)),n.start.isCertain("meridiem")||(l==$t.Meridiem.AM?(n.start.imply("meridiem",$t.Meridiem.AM),n.start.get("hour")==12&&n.start.assign("hour",0)):(n.start.imply("meridiem",$t.Meridiem.PM),n.start.get("hour")!=12&&n.start.assign("hour",n.start.get("hour")+12)))}return s.assign("hour",a),s.assign("minute",o),l>=0?s.assign("meridiem",l):n.start.isCertain("meridiem")&&n.start.get("hour")>12?n.start.get("hour")-12>a?s.imply("meridiem",$t.Meridiem.AM):a<=12&&(s.assign("hour",a+12),s.assign("meridiem",$t.Meridiem.PM)):a>12?s.imply("meridiem",$t.Meridiem.PM):a<=12&&s.imply("meridiem",$t.Meridiem.AM),s.date().getTime()24)return null}return e}checkAndReturnWithFollowingPattern(e){if(e.text.match(/^\d+-\d+$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(t){if(this.strictMode)return null;let n=t[1],s=t[2];if(s.includes(".")&&!s.match(/\d(\.\d{2})+$/))return null;let a=parseInt(s),o=parseInt(n);if(a>24||o>24)return null}return e}getPrimaryTimePatternThroughCache(){let e=this.primaryPrefix(),t=this.primarySuffix();return this.cachedPrimaryPrefix===e&&this.cachedPrimarySuffix===t?this.cachedPrimaryTimePattern:(this.cachedPrimaryTimePattern=bD(this.primaryPatternLeftBoundary(),e,t,this.patternFlags()),this.cachedPrimaryPrefix=e,this.cachedPrimarySuffix=t,this.cachedPrimaryTimePattern)}getFollowingTimePatternThroughCache(){let e=this.followingPhase(),t=this.followingSuffix();return this.cachedFollowingPhase===e&&this.cachedFollowingSuffix===t?this.cachedFollowingTimePatten:(this.cachedFollowingTimePatten=vD(e,t),this.cachedFollowingPhase=e,this.cachedFollowingSuffix=t,this.cachedFollowingTimePatten)}};xo.AbstractTimeExpressionParser=Kl});var Om=O(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var Ao=ht(),wD=as(),Zl=class extends wD.AbstractTimeExpressionParser{constructor(e){super(e)}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|to|\\?)\\s*"}primaryPrefix(){return"(?:(?:at|from)\\s*)??"}primarySuffix(){return"(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(n){if(t[0].endsWith("night")){let s=n.get("hour");s>=6&&s<12?(n.assign("hour",n.get("hour")+12),n.assign("meridiem",Ao.Meridiem.PM)):s<6&&n.assign("meridiem",Ao.Meridiem.AM)}if(t[0].endsWith("afternoon")){n.assign("meridiem",Ao.Meridiem.PM);let s=n.get("hour");s>=0&&s<=6&&n.assign("hour",n.get("hour")+12)}t[0].endsWith("morning")&&(n.assign("meridiem",Ao.Meridiem.AM),n.get("hour")<12&&n.assign("hour",n.get("hour")))}return n}};Xl.default=Zl});var mr=O(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.addImpliedTimeUnits=js.reverseTimeUnits=void 0;function kD(r){let e={};for(let t in r)e[t]=-r[t];return e}js.reverseTimeUnits=kD;function DD(r,e){let t=r.clone(),n=r.dayjs();for(let s in e)n=n.add(e[s],s);return("day"in e||"d"in e||"week"in e||"month"in e||"year"in e)&&(t.imply("day",n.date()),t.imply("month",n.month()+1),t.imply("year",n.year())),("second"in e||"minute"in e||"hour"in e)&&(t.imply("second",n.second()),t.imply("minute",n.minute()),t.imply("hour",n.hour())),t}js.addImpliedTimeUnits=DD});var Mm=O(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var Jl=Pt(),ED=tt(),SD=Z(),OD=mr(),MD=new RegExp(`(${Jl.TIME_UNITS_PATTERN})\\s{0,5}(?:ago|before|earlier)(?=(?:\\W|$))`,"i"),RD=new RegExp(`(${Jl.TIME_UNITS_PATTERN})\\s{0,5}ago(?=(?:\\W|$))`,"i"),Ql=class extends SD.AbstractParserWithWordBoundaryChecking{constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?RD:MD}innerExtract(e,t){let n=Jl.parseTimeUnits(t[1]),s=OD.reverseTimeUnits(n);return ED.ParsingComponents.createRelativeFromReference(e.reference,s)}};ec.default=Ql});var Rm=O(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var rc=Pt(),PD=tt(),xD=Z(),AD=new RegExp(`(${rc.TIME_UNITS_PATTERN})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,"i"),ND=new RegExp("("+rc.TIME_UNITS_PATTERN+")(later|from now)(?=(?:\\W|$))","i"),CD=1,tc=class extends xD.AbstractParserWithWordBoundaryChecking{constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?ND:AD}innerExtract(e,t){let n=rc.parseTimeUnits(t[CD]);return PD.ParsingComponents.createRelativeFromReference(e.reference,n)}};nc.default=tc});var Bs=O($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.MergingRefiner=$s.Filter=void 0;var sc=class{refine(e,t){return t.filter(n=>this.isValid(e,n))}};$s.Filter=sc;var ic=class{refine(e,t){if(t.length<2)return t;let n=[],s=t[0],a=null;for(let o=1;o{console.log(`${this.constructor.name} merged ${c} and ${f} into ${m}`)}),s=m}}return s!=null&&n.push(s),n}};$s.MergingRefiner=ic});var Ur=O(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var ID=Bs(),ac=class extends ID.MergingRefiner{shouldMergeResults(e,t,n){return!t.end&&!n.end&&e.match(this.patternBetween())!=null}mergeResults(e,t,n){if(!t.start.isOnlyWeekdayComponent()&&!n.start.isOnlyWeekdayComponent()&&(n.start.getCertainComponents().forEach(a=>{t.start.isCertain(a)||t.start.assign(a,n.start.get(a))}),t.start.getCertainComponents().forEach(a=>{n.start.isCertain(a)||n.start.assign(a,t.start.get(a))})),t.start.date().getTime()>n.start.date().getTime()){let a=t.start.dayjs(),o=n.start.dayjs();t.start.isOnlyWeekdayComponent()&&a.add(-7,"days").isBefore(o)?(a=a.add(-7,"days"),t.start.imply("day",a.date()),t.start.imply("month",a.month()+1),t.start.imply("year",a.year())):n.start.isOnlyWeekdayComponent()&&o.add(7,"days").isAfter(a)?(o=o.add(7,"days"),n.start.imply("day",o.date()),n.start.imply("month",o.month()+1),n.start.imply("year",o.year())):[n,t]=[t,n]}let s=t.clone();return s.start=t.start,s.end=n.start,s.index=Math.min(t.index,n.index),t.index{"use strict";var FD=Wi&&Wi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Wi,"__esModule",{value:!0});var LD=FD(Ur()),uc=class extends LD.default{patternBetween(){return/^\s*(to|-)\s*$/i}};Wi.default=uc});var xm=O(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.mergeDateTimeComponent=Gs.mergeDateTimeResult=void 0;var YD=ht();function UD(r,e){let t=r.clone(),n=r.start,s=e.start;if(t.start=lc(n,s),r.end!=null||e.end!=null){let a=r.end==null?r.start:r.end,o=e.end==null?e.start:e.end,l=lc(a,o);r.end==null&&l.date().getTime(){"use strict";Object.defineProperty(dc,"__esModule",{value:!0});var WD=Bs(),Am=xm(),cc=class extends WD.MergingRefiner{shouldMergeResults(e,t,n){return(t.start.isOnlyDate()&&n.start.isOnlyTime()||n.start.isOnlyDate()&&t.start.isOnlyTime())&&e.match(this.patternBetween())!=null}mergeResults(e,t,n){let s=t.start.isOnlyDate()?Am.mergeDateTimeResult(t,n):Am.mergeDateTimeResult(n,t);return s.index=t.index,s.text=t.text+e+n.text,s}};dc.default=cc});var Nm=O(qi=>{"use strict";var qD=qi&&qi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(qi,"__esModule",{value:!0});var jD=qD(rn()),fc=class extends jD.default{patternBetween(){return new RegExp("^\\s*(T|at|after|before|on|of|,|-)?\\s*$")}};qi.default=fc});var Cm=O(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var $D=new RegExp("^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)","i"),BD={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:60,CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:-300,FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:240,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:-480,PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360},hc=class{constructor(e){this.timezone=Object.assign(Object.assign({},BD),e)}refine(e,t){var n;let s=(n=e.option.timezones)!==null&&n!==void 0?n:{};return t.forEach(a=>{var o,l;let c=e.text.substring(a.index+a.text.length),f=$D.exec(c);if(!f)return;let m=f[1].toUpperCase(),g=(l=(o=s[m])!==null&&o!==void 0?o:this.timezone[m])!==null&&l!==void 0?l:null;if(g===null)return;e.debug(()=>{console.log(`Extracting timezone: '${m}' into: ${g} for: ${a.start}`)});let T=a.start.get("timezoneOffset");T!==null&&g!=T&&(a.start.isCertain("timezoneOffset")||m!=f[1])||a.start.isOnlyDate()&&m!=f[1]||(a.text+=f[0],a.start.isCertain("timezoneOffset")||a.start.assign("timezoneOffset",g),a.end!=null&&!a.end.isCertain("timezoneOffset")&&a.end.assign("timezoneOffset",g))}),t}};pc.default=hc});var No=O(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var GD=new RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?","i"),HD=1,zD=2,VD=3,mc=class{refine(e,t){return t.forEach(function(n){if(n.start.isCertain("timezoneOffset"))return;let s=e.text.substring(n.index+n.text.length),a=GD.exec(s);if(!a)return;e.debug(()=>{console.log(`Extracting timezone: '${a[0]}' into : ${n}`)});let o=parseInt(a[zD]),l=parseInt(a[VD]||"0"),c=o*60+l;c>14*60||(a[HD]==="-"&&(c=-c),n.end!=null&&n.end.assign("timezoneOffset",c),n.start.assign("timezoneOffset",c),n.text+=a[0])}),t}};yc.default=mc});var Im=O(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});var gc=class{refine(e,t){if(t.length<2)return t;let n=[],s=t[0];for(let a=1;as.text.length&&(s=o):(n.push(s),s=o)}return s!=null&&n.push(s),n}};_c.default=gc});var Fm=O(ji=>{"use strict";var KD=ji&&ji.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ji,"__esModule",{value:!0});var ZD=KD(Pe()),Tc=class{refine(e,t){return e.option.forwardDate&&t.forEach(function(n){let s=ZD.default(e.refDate);if(n.start.isOnlyDayMonthComponent()&&s.isAfter(n.start.dayjs()))for(let a=0;a<3&&s.isAfter(n.start.dayjs());a++)n.start.imply("year",n.start.get("year")+1),e.debug(()=>{console.log(`Forward yearly adjusted for ${n} (${n.start})`)}),n.end&&!n.end.isCertain("year")&&(n.end.imply("year",n.end.get("year")+1),e.debug(()=>{console.log(`Forward yearly adjusted for ${n} (${n.end})`)}));n.start.isOnlyWeekdayComponent()&&s.isAfter(n.start.dayjs())&&(s.day()>=n.start.get("weekday")?s=s.day(n.start.get("weekday")+7):s=s.day(n.start.get("weekday")),n.start.imply("day",s.date()),n.start.imply("month",s.month()+1),n.start.imply("year",s.year()),e.debug(()=>{console.log(`Forward weekly adjusted for ${n} (${n.start})`)}),n.end&&n.end.isOnlyWeekdayComponent()&&(s.day()>n.end.get("weekday")?s=s.day(n.end.get("weekday")+7):s=s.day(n.end.get("weekday")),n.end.imply("day",s.date()),n.end.imply("month",s.month()+1),n.end.imply("year",s.year()),e.debug(()=>{console.log(`Forward weekly adjusted for ${n} (${n.end})`)})))}),t}};ji.default=Tc});var Lm=O(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var XD=Bs(),bc=class extends XD.Filter{constructor(e){super(),this.strictMode=e}isValid(e,t){return t.text.replace(" ","").match(/^\d*(\.\d*)?$/)?(e.debug(()=>{console.log(`Removing unlikely result '${t.text}'`)}),!1):t.start.isValidDate()?t.end&&!t.end.isValidDate()?(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.end})`)}),!1):this.strictMode?this.isStrictModeValid(e,t):!0:(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.start})`)}),!1)}isStrictModeValid(e,t){return t.start.isOnlyWeekdayComponent()?(e.debug(()=>{console.log(`(Strict) Removing weekday only component: ${t} (${t.end})`)}),!1):t.start.isOnlyTime()&&(!t.start.isCertain("hour")||!t.start.isCertain("minute"))?(e.debug(()=>{console.log(`(Strict) Removing uncertain time component: ${t} (${t.end})`)}),!1):!0}};vc.default=bc});var Dc=O(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});var QD=Z(),JD=new RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(?:Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)","i"),eE=1,tE=2,rE=3,Ym=4,nE=5,Um=6,Wm=7,qm=8,jm=9,wc=class extends QD.AbstractParserWithWordBoundaryChecking{innerPattern(){return JD}innerExtract(e,t){let n={};if(n.year=parseInt(t[eE]),n.month=parseInt(t[tE]),n.day=parseInt(t[rE]),t[Ym]!=null)if(n.hour=parseInt(t[Ym]),n.minute=parseInt(t[nE]),t[Um]!=null&&(n.second=parseInt(t[Um])),t[Wm]!=null&&(n.millisecond=parseInt(t[Wm])),t[qm]==null)n.timezoneOffset=0;else{let s=parseInt(t[qm]),a=0;t[jm]!=null&&(a=parseInt(t[jm]));let o=s*60;o<0?o-=a:o+=a,n.timezoneOffset=o}return n}};kc.default=wc});var $m=O(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var sE=Bs(),Ec=class extends sE.MergingRefiner{mergeResults(e,t,n){let s=n.clone();return s.index=t.index,s.text=t.text+e+s.text,s.start.assign("weekday",t.start.get("weekday")),s.end&&s.end.assign("weekday",t.start.get("weekday")),s}shouldMergeResults(e,t,n){return t.start.isOnlyWeekdayComponent()&&!t.start.isCertain("hour")&&n.start.isCertain("day")&&e.match(/^,?\s*$/)!=null}};Sc.default=Ec});var nn=O(Hs=>{"use strict";var os=Hs&&Hs.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.includeCommonConfiguration=void 0;var iE=os(Cm()),aE=os(No()),Bm=os(Im()),oE=os(Fm()),uE=os(Lm()),lE=os(Dc()),cE=os($m());function dE(r,e=!1){return r.parsers.unshift(new lE.default),r.refiners.unshift(new cE.default),r.refiners.unshift(new iE.default),r.refiners.unshift(new aE.default),r.refiners.unshift(new Bm.default),r.refiners.push(new Bm.default),r.refiners.push(new oE.default),r.refiners.push(new uE.default(e)),r}Hs.includeCommonConfiguration=dE});var an=O(Ie=>{"use strict";var fE=Ie&&Ie.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.noon=Ie.morning=Ie.midnight=Ie.yesterdayEvening=Ie.evening=Ie.lastNight=Ie.tonight=Ie.theDayAfter=Ie.tomorrow=Ie.theDayBefore=Ie.yesterday=Ie.today=Ie.now=void 0;var Wr=tt(),zs=fE(Pe()),sn=pr(),$i=ht();function hE(r){let e=zs.default(r.instant),t=new Wr.ParsingComponents(r,{});return sn.assignSimilarDate(t,e),sn.assignSimilarTime(t,e),r.timezoneOffset!==null&&t.assign("timezoneOffset",e.utcOffset()),t}Ie.now=hE;function pE(r){let e=zs.default(r.instant),t=new Wr.ParsingComponents(r,{});return sn.assignSimilarDate(t,e),sn.implySimilarTime(t,e),t}Ie.today=pE;function mE(r){return Gm(r,1)}Ie.yesterday=mE;function Gm(r,e){return Oc(r,-e)}Ie.theDayBefore=Gm;function yE(r){return Oc(r,1)}Ie.tomorrow=yE;function Oc(r,e){let t=zs.default(r.instant),n=new Wr.ParsingComponents(r,{});return t=t.add(e,"day"),sn.assignSimilarDate(n,t),sn.implySimilarTime(n,t),n}Ie.theDayAfter=Oc;function gE(r,e=22){let t=zs.default(r.instant),n=new Wr.ParsingComponents(r,{});return n.imply("hour",e),n.imply("meridiem",$i.Meridiem.PM),sn.assignSimilarDate(n,t),n}Ie.tonight=gE;function _E(r,e=0){let t=zs.default(r.instant),n=new Wr.ParsingComponents(r,{});return t.hour()<6&&(t=t.add(-1,"day")),sn.assignSimilarDate(n,t),n.imply("hour",e),n}Ie.lastNight=_E;function TE(r,e=20){let t=new Wr.ParsingComponents(r,{});return t.imply("meridiem",$i.Meridiem.PM),t.imply("hour",e),t}Ie.evening=TE;function bE(r,e=20){let t=zs.default(r.instant),n=new Wr.ParsingComponents(r,{});return t=t.add(-1,"day"),sn.assignSimilarDate(n,t),n.imply("hour",e),n.imply("meridiem",$i.Meridiem.PM),n}Ie.yesterdayEvening=bE;function vE(r){let e=new Wr.ParsingComponents(r,{});return e.imply("hour",0),e.imply("minute",0),e.imply("second",0),e}Ie.midnight=vE;function wE(r,e=6){let t=new Wr.ParsingComponents(r,{});return t.imply("meridiem",$i.Meridiem.AM),t.imply("hour",e),t}Ie.morning=wE;function kE(r){let e=new Wr.ParsingComponents(r,{});return e.imply("meridiem",$i.Meridiem.AM),e.imply("hour",12),e}Ie.noon=kE});var Hm=O(Sr=>{"use strict";var DE=Sr&&Sr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),EE=Sr&&Sr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),SE=Sr&&Sr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&DE(e,r,t);return EE(e,r),e},OE=Sr&&Sr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Sr,"__esModule",{value:!0});var ME=OE(Pe()),RE=Z(),PE=pr(),Bi=SE(an()),xE=/(now|today|tonight|tomorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i,Mc=class extends RE.AbstractParserWithWordBoundaryChecking{innerPattern(e){return xE}innerExtract(e,t){let n=ME.default(e.refDate),s=t[0].toLowerCase(),a=e.createParsingComponents();switch(s){case"now":return Bi.now(e.reference);case"today":return Bi.today(e.reference);case"yesterday":return Bi.yesterday(e.reference);case"tomorrow":case"tmr":case"tmrw":return Bi.tomorrow(e.reference);case"tonight":return Bi.tonight(e.reference);default:s.match(/last\s*night/)&&(n.hour()>6&&(n=n.add(-1,"day")),PE.assignSimilarDate(a,n),a.imply("hour",0));break}return a}};Sr.default=Mc});var zm=O(Gi=>{"use strict";var AE=Gi&&Gi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Gi,"__esModule",{value:!0});var Co=ht(),NE=Z(),CE=AE(Pe()),IE=pr(),FE=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|noon)(?=\W|$)/i,Rc=class extends NE.AbstractParserWithWordBoundaryChecking{innerPattern(){return FE}innerExtract(e,t){let n=CE.default(e.refDate),s=e.createParsingComponents();switch(t[1].toLowerCase()){case"afternoon":s.imply("meridiem",Co.Meridiem.PM),s.imply("hour",15);break;case"evening":case"night":s.imply("meridiem",Co.Meridiem.PM),s.imply("hour",20);break;case"midnight":IE.assignTheNextDay(s,n),s.imply("hour",0),s.imply("minute",0),s.imply("second",0);break;case"morning":s.imply("meridiem",Co.Meridiem.AM),s.imply("hour",6);break;case"noon":s.imply("meridiem",Co.Meridiem.AM),s.imply("hour",12);break}return s}};Gi.default=Rc});var us=O(Nn=>{"use strict";var LE=Nn&&Nn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.toDayJSClosestWeekday=Nn.toDayJSWeekday=void 0;var Vm=LE(Pe());function YE(r,e,t){if(!t)return Km(r,e);let n=Vm.default(r);switch(t){case"this":n=n.day(e);break;case"next":n=n.day(e+7);break;case"last":n=n.day(e-7);break}return n}Nn.toDayJSWeekday=YE;function Km(r,e){let t=Vm.default(r),n=t.day();return Math.abs(e-7-n){"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var Zm=Pt(),UE=Le(),WE=Z(),qE=us(),jE=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${UE.matchAnyPattern(Zm.WEEKDAY_DICTIONARY)})(?:\\s*(?:\\,|\\)|\\\uFF09))?(?:\\s*(this|last|past|next)\\s*week)?(?=\\W|$)`,"i"),$E=1,BE=2,GE=3,Pc=class extends WE.AbstractParserWithWordBoundaryChecking{innerPattern(){return jE}innerExtract(e,t){let n=t[BE].toLowerCase(),s=Zm.WEEKDAY_DICTIONARY[n],a=t[$E],o=t[GE],l=a||o;l=l||"",l=l.toLowerCase();let c=null;l=="last"||l=="past"?c="last":l=="next"?c="next":l=="this"&&(c="this");let f=qE.toDayJSWeekday(e.refDate,s,c);return e.createParsingComponents().assign("weekday",s).imply("day",f.date()).imply("month",f.month()+1).imply("year",f.year())}};xc.default=Pc});var ey=O(Hi=>{"use strict";var HE=Hi&&Hi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Hi,"__esModule",{value:!0});var Jm=Pt(),Qm=tt(),zE=HE(Pe()),VE=Z(),KE=Le(),ZE=new RegExp(`(this|last|past|next|after\\s*this)\\s*(${KE.matchAnyPattern(Jm.TIME_UNIT_DICTIONARY)})(?=\\s*)(?=\\W|$)`,"i"),XE=1,QE=2,Ac=class extends VE.AbstractParserWithWordBoundaryChecking{innerPattern(){return ZE}innerExtract(e,t){let n=t[XE].toLowerCase(),s=t[QE].toLowerCase(),a=Jm.TIME_UNIT_DICTIONARY[s];if(n=="next"||n.startsWith("after")){let c={};return c[a]=1,Qm.ParsingComponents.createRelativeFromReference(e.reference,c)}if(n=="last"||n=="past"){let c={};return c[a]=-1,Qm.ParsingComponents.createRelativeFromReference(e.reference,c)}let o=e.createParsingComponents(),l=zE.default(e.reference.instant);return s.match(/week/i)?(l=l.add(-l.get("d"),"d"),o.imply("day",l.date()),o.imply("month",l.month()+1),o.imply("year",l.year())):s.match(/month/i)?(l=l.add(-l.date()+1,"d"),o.imply("day",l.date()),o.assign("year",l.year()),o.assign("month",l.month()+1)):s.match(/year/i)&&(l=l.add(-l.date()+1,"d"),l=l.add(-l.month(),"month"),o.imply("day",l.date()),o.imply("month",l.month()+1),o.assign("year",l.year())),o}};Hi.default=Ac});var Or=O(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.ParsingContext=Zs.Chrono=void 0;var Vs=tt(),JE=Nc(),Ks=class{constructor(e){e=e||JE.createCasualConfiguration(),this.parsers=[...e.parsers],this.refiners=[...e.refiners]}clone(){return new Ks({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(e,t,n){let s=this.parse(e,t,n);return s.length>0?s[0].start.date():null}parse(e,t,n){let s=new Io(e,t,n),a=[];return this.parsers.forEach(o=>{let l=Ks.executeParser(s,o);a=a.concat(l)}),a.sort((o,l)=>o.index-l.index),this.refiners.forEach(function(o){a=o.refine(s,a)}),a}static executeParser(e,t){let n=[],s=t.pattern(e),a=e.text,o=e.text,l=s.exec(o);for(;l;){let c=l.index+a.length-o.length;l.index=c;let f=t.extract(e,l);if(!f){o=a.substring(l.index+1),l=s.exec(o);continue}let m=null;f instanceof Vs.ParsingResult?m=f:f instanceof Vs.ParsingComponents?(m=e.createParsingResult(l.index,l[0]),m.start=f):m=e.createParsingResult(l.index,l[0],f),e.debug(()=>console.log(`${t.constructor.name} extracted result ${m}`)),n.push(m),o=a.substring(c+m.text.length),l=s.exec(o)}return n}};Zs.Chrono=Ks;var Io=class{constructor(e,t,n){this.text=e,this.reference=new Vs.ReferenceWithTimezone(t),this.option=n!=null?n:{},this.refDate=this.reference.instant}createParsingComponents(e){return e instanceof Vs.ParsingComponents?e:new Vs.ParsingComponents(this.reference,e)}createParsingResult(e,t,n,s){let a=typeof t=="string"?t:this.text.substring(e,t),o=n?this.createParsingComponents(n):null,l=s?this.createParsingComponents(s):null;return new Vs.ParsingResult(this.reference,e,a,o,l)}debug(e){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(e):this.option.debug.debug(e))}};Zs.ParsingContext=Io});var ls=O(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var ty=Rt(),eS=new RegExp("([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)","i"),Fo=1,ry=5,ny=2,sy=3,Cc=4,Ic=class{constructor(e){this.groupNumberMonth=e?sy:ny,this.groupNumberDay=e?ny:sy}pattern(){return eS}extract(e,t){if(t[Fo]=="/"||t[ry]=="/"){t.index+=t[0].length;return}let n=t.index+t[Fo].length,s=t[0].substr(t[Fo].length,t[0].length-t[Fo].length-t[ry].length);if(s.match(/^\d\.\d$/)||s.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)||!t[Cc]&&t[0].indexOf("/")<0)return;let a=e.createParsingResult(n,s),o=parseInt(t[this.groupNumberMonth]),l=parseInt(t[this.groupNumberDay]);if((o<1||o>12)&&o>12)if(l>=1&&l<=12&&o<=31)[l,o]=[o,l];else return null;if(l<1||l>31)return null;if(a.start.assign("day",l),a.start.assign("month",o),t[Cc]){let c=parseInt(t[Cc]),f=ty.findMostLikelyADYear(c);a.start.assign("year",f)}else{let c=ty.findYearClosestToRef(e.refDate,l,o);a.start.imply("year",c)}return a}};Fc.default=Ic});var ay=O(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var iy=Pt(),tS=tt(),rS=Z(),nS=mr(),sS=new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${iy.TIME_UNITS_PATTERN})(?=\\W|$)`,"i"),Lc=class extends rS.AbstractParserWithWordBoundaryChecking{innerPattern(){return sS}innerExtract(e,t){let n=t[1].toLowerCase(),s=iy.parseTimeUnits(t[2]);switch(n){case"last":case"past":case"-":s=nS.reverseTimeUnits(s);break}return tS.ParsingComponents.createRelativeFromReference(e.reference,s)}};Yc.default=Lc});var uy=O(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var iS=Bs(),Uc=tt(),aS=Pt(),oS=mr();function oy(r){return r.text.match(/\s+(before|from)$/i)!=null}function uS(r){return r.text.match(/\s+(after|since)$/i)!=null}var Wc=class extends iS.MergingRefiner{patternBetween(){return/^\s*$/i}shouldMergeResults(e,t,n){return!e.match(this.patternBetween())||!oy(t)&&!uS(t)?!1:!!n.start.get("day")&&!!n.start.get("month")&&!!n.start.get("year")}mergeResults(e,t,n){let s=aS.parseTimeUnits(t.text);oy(t)&&(s=oS.reverseTimeUnits(s));let a=Uc.ParsingComponents.createRelativeFromReference(new Uc.ReferenceWithTimezone(n.start.date()),s);return new Uc.ParsingResult(n.reference,t.index,`${t.text}${e}${n.text}`,a)}};qc.default=Wc});var Nc=O(ot=>{"use strict";var _t=ot&&ot.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ot,"__esModule",{value:!0});ot.createConfiguration=ot.createCasualConfiguration=ot.parseDate=ot.parse=ot.GB=ot.strict=ot.casual=void 0;var lS=_t(om()),cS=_t(hm()),dS=_t(_m()),fS=_t(vm()),hS=_t(Dm()),pS=_t(Em()),mS=_t(Om()),yS=_t(Mm()),gS=_t(Rm()),_S=_t(Pm()),TS=_t(Nm()),bS=nn(),vS=_t(Hm()),wS=_t(zm()),kS=_t(Xm()),DS=_t(ey()),jc=Or(),ES=_t(ls()),SS=_t(ay()),OS=_t(uy());ot.casual=new jc.Chrono(ly(!1));ot.strict=new jc.Chrono(Lo(!0,!1));ot.GB=new jc.Chrono(Lo(!1,!0));function MS(r,e,t){return ot.casual.parse(r,e,t)}ot.parse=MS;function RS(r,e,t){return ot.casual.parseDate(r,e,t)}ot.parseDate=RS;function ly(r=!1){let e=Lo(!1,r);return e.parsers.unshift(new vS.default),e.parsers.unshift(new wS.default),e.parsers.unshift(new fS.default),e.parsers.unshift(new DS.default),e.parsers.unshift(new SS.default),e}ot.createCasualConfiguration=ly;function Lo(r=!0,e=!1){return bS.includeCommonConfiguration({parsers:[new ES.default(e),new lS.default,new cS.default,new dS.default,new kS.default,new hS.default,new pS.default,new mS.default(r),new yS.default(r),new gS.default(r)],refiners:[new OS.default,new TS.default,new _S.default]},r)}ot.createConfiguration=Lo});var cy=O(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});var PS=as(),$c=class extends PS.AbstractTimeExpressionParser{primaryPrefix(){return"(?:(?:um|von)\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|bis)\\s*"}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}};Bc.default=$c});var zi=O(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.parseTimeUnits=We.TIME_UNITS_PATTERN=We.parseYear=We.YEAR_PATTERN=We.parseNumberPattern=We.NUMBER_PATTERN=We.TIME_UNIT_DICTIONARY=We.INTEGER_WORD_DICTIONARY=We.MONTH_DICTIONARY=We.WEEKDAY_DICTIONARY=void 0;var Gc=Le(),xS=Rt();We.WEEKDAY_DICTIONARY={sonntag:0,so:0,montag:1,mo:1,dienstag:2,di:2,mittwoch:3,mi:3,donnerstag:4,do:4,freitag:5,fr:5,samstag:6,sa:6};We.MONTH_DICTIONARY={januar:1,j\u00E4nner:1,janner:1,jan:1,"jan.":1,februar:2,feber:2,feb:2,"feb.":2,m\u00E4rz:3,maerz:3,m\u00E4r:3,"m\xE4r.":3,mrz:3,"mrz.":3,april:4,apr:4,"apr.":4,mai:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,august:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,dezember:12,dez:12,"dez.":12};We.INTEGER_WORD_DICTIONARY={eins:1,eine:1,einem:1,einen:1,einer:1,zwei:2,drei:3,vier:4,f\u00FCnf:5,fuenf:5,sechs:6,sieben:7,acht:8,neun:9,zehn:10,elf:11,zw\u00F6lf:12,zwoelf:12};We.TIME_UNIT_DICTIONARY={sek:"second",sekunde:"second",sekunden:"second",min:"minute",minute:"minute",minuten:"minute",h:"hour",std:"hour",stunde:"hour",stunden:"hour",tag:"d",tage:"d",tagen:"d",woche:"week",wochen:"week",monat:"month",monate:"month",monaten:"month",monats:"month",quartal:"quarter",quartals:"quarter",quartale:"quarter",quartalen:"quarter",a:"year",j:"year",jr:"year",jahr:"year",jahre:"year",jahren:"year",jahres:"year"};We.NUMBER_PATTERN=`(?:${Gc.matchAnyPattern(We.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s*an?)?|an?\\b(?:\\s*few)?|few|several|a?\\s*couple\\s*(?:of)?)`;function fy(r){let e=r.toLowerCase();return We.INTEGER_WORD_DICTIONARY[e]!==void 0?We.INTEGER_WORD_DICTIONARY[e]:e==="a"||e==="an"?1:e.match(/few/)?3:e.match(/half/)?.5:e.match(/couple/)?2:e.match(/several/)?7:parseFloat(e)}We.parseNumberPattern=fy;We.YEAR_PATTERN="(?:[0-9]{1,4}(?:\\s*[vn]\\.?\\s*(?:C(?:hr)?|(?:u\\.?|d\\.?(?:\\s*g\\.?)?)?\\s*Z)\\.?|\\s*(?:u\\.?|d\\.?(?:\\s*g\\.)?)\\s*Z\\.?)?)";function AS(r){if(/v/i.test(r))return-parseInt(r.replace(/[^0-9]+/gi,""));if(/n/i.test(r))return parseInt(r.replace(/[^0-9]+/gi,""));if(/z/i.test(r))return parseInt(r.replace(/[^0-9]+/gi,""));let e=parseInt(r);return xS.findMostLikelyADYear(e)}We.parseYear=AS;var hy=`(${We.NUMBER_PATTERN})\\s{0,5}(${Gc.matchAnyPattern(We.TIME_UNIT_DICTIONARY)})\\s{0,5}`,dy=new RegExp(hy,"i");We.TIME_UNITS_PATTERN=Gc.repeatedTimeunitPattern("",hy);function NS(r){let e={},t=r,n=dy.exec(t);for(;n;)CS(e,n),t=t.substring(n[0].length),n=dy.exec(t);return e}We.parseTimeUnits=NS;function CS(r,e){let t=fy(e[1]),n=We.TIME_UNIT_DICTIONARY[e[2].toLowerCase()];r[n]=t}});var my=O(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});var py=zi(),IS=Le(),FS=Z(),LS=us(),YS=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:a[mn]\\s*?)?(?:(diese[mn]|letzte[mn]|n(?:\xE4|ae)chste[mn])\\s*)?(${IS.matchAnyPattern(py.WEEKDAY_DICTIONARY)})(?:\\s*(?:\\,|\\)|\\\uFF09))?(?:\\s*(diese|letzte|n(?:\xE4|ae)chste)\\s*woche)?(?=\\W|$)`,"i"),US=1,WS=3,qS=2,Hc=class extends FS.AbstractParserWithWordBoundaryChecking{innerPattern(){return YS}innerExtract(e,t){let n=t[qS].toLowerCase(),s=py.WEEKDAY_DICTIONARY[n],a=t[US],o=t[WS],l=a||o;l=l||"",l=l.toLowerCase();let c=null;l.match(/letzte/)?c="last":l.match(/chste/)?c="next":l.match(/diese/)&&(c="this");let f=LS.toDayJSWeekday(e.refDate,s,c);return e.createParsingComponents().assign("weekday",s).imply("day",f.date()).imply("month",f.month()+1).imply("year",f.year())}};zc.default=Hc});var Ty=O(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});var Cn=ht(),jS=new RegExp("(^|\\s|T)(?:(?:um|von)\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s)?)?(?:\\s*Uhr)?(?:\\s*(morgens|vormittags|nachmittags|abends|nachts|am\\s+(?:Morgen|Vormittag|Nachmittag|Abend)|in\\s+der\\s+Nacht))?(?=\\W|$)","i"),$S=new RegExp("^\\s*(\\-|\\\u2013|\\~|\\\u301C|bis(?:\\s+um)?|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s)?)?(?:\\s*Uhr)?(?:\\s*(morgens|vormittags|nachmittags|abends|nachts|am\\s+(?:Morgen|Vormittag|Nachmittag|Abend)|in\\s+der\\s+Nacht))?(?=\\W|$)","i"),BS=2,yy=3,gy=4,_y=5,Xs=class{pattern(e){return jS}extract(e,t){let n=e.createParsingResult(t.index+t[1].length,t[0].substring(t[1].length));if(n.text.match(/^\d{4}$/)||(n.start=Xs.extractTimeComponent(n.start.clone(),t),!n.start))return t.index+=t[0].length,null;let s=e.text.substring(t.index+t[0].length),a=$S.exec(s);return a&&(n.end=Xs.extractTimeComponent(n.start.clone(),a),n.end&&(n.text+=a[0])),n}static extractTimeComponent(e,t){let n=0,s=0,a=null;if(n=parseInt(t[BS]),t[yy]!=null&&(s=parseInt(t[yy])),s>=60||n>24)return null;if(n>=12&&(a=Cn.Meridiem.PM),t[_y]!=null){if(n>12)return null;let o=t[_y].toLowerCase();o.match(/morgen|vormittag/)&&(a=Cn.Meridiem.AM,n==12&&(n=0)),o.match(/nachmittag|abend/)&&(a=Cn.Meridiem.PM,n!=12&&(n+=12)),o.match(/nacht/)&&(n==12?(a=Cn.Meridiem.AM,n=0):n<6?a=Cn.Meridiem.AM:(a=Cn.Meridiem.PM,n+=12))}if(e.assign("hour",n),e.assign("minute",s),a!==null?e.assign("meridiem",a):n<12?e.imply("meridiem",Cn.Meridiem.AM):e.imply("meridiem",Cn.Meridiem.PM),t[gy]!=null){let o=parseInt(t[gy]);if(o>=60)return null;e.assign("second",o)}return e}};Vc.default=Xs});var by=O(Vi=>{"use strict";var GS=Vi&&Vi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Vi,"__esModule",{value:!0});var HS=GS(Ur()),Kc=class extends HS.default{patternBetween(){return/^\s*(bis(?:\s*(?:am|zum))?|-)\s*$/i}};Vi.default=Kc});var vy=O(Ki=>{"use strict";var zS=Ki&&Ki.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ki,"__esModule",{value:!0});var VS=zS(rn()),Zc=class extends VS.default{patternBetween(){return new RegExp("^\\s*(T|um|am|,|-)?\\s*$")}};Ki.default=Zc});var Xc=O(Xi=>{"use strict";var KS=Xi&&Xi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xi,"__esModule",{value:!0});var ZS=KS(Pe()),cs=ht(),XS=Z(),QS=pr(),JS=mr(),Zi=class extends XS.AbstractParserWithWordBoundaryChecking{innerPattern(e){return/(diesen)?\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht)(?=\W|$)/i}innerExtract(e,t){let n=ZS.default(e.refDate),s=t[2].toLowerCase(),a=e.createParsingComponents();return QS.implySimilarTime(a,n),Zi.extractTimeComponents(a,s)}static extractTimeComponents(e,t){switch(t){case"morgen":e.imply("hour",6),e.imply("minute",0),e.imply("second",0),e.imply("meridiem",cs.Meridiem.AM);break;case"vormittag":e.imply("hour",9),e.imply("minute",0),e.imply("second",0),e.imply("meridiem",cs.Meridiem.AM);break;case"mittag":case"mittags":e.imply("hour",12),e.imply("minute",0),e.imply("second",0),e.imply("meridiem",cs.Meridiem.AM);break;case"nachmittag":e.imply("hour",15),e.imply("minute",0),e.imply("second",0),e.imply("meridiem",cs.Meridiem.PM);break;case"abend":e.imply("hour",18),e.imply("minute",0),e.imply("second",0),e.imply("meridiem",cs.Meridiem.PM);break;case"nacht":e.imply("hour",22),e.imply("minute",0),e.imply("second",0),e.imply("meridiem",cs.Meridiem.PM);break;case"mitternacht":e.get("hour")>1&&(e=JS.addImpliedTimeUnits(e,{day:1})),e.imply("hour",0),e.imply("minute",0),e.imply("second",0),e.imply("meridiem",cs.Meridiem.AM);break}return e}};Xi.default=Zi});var Dy=O(Mr=>{"use strict";var eO=Mr&&Mr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),tO=Mr&&Mr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),rO=Mr&&Mr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&eO(e,r,t);return tO(e,r),e},ky=Mr&&Mr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Mr,"__esModule",{value:!0});var nO=ky(Pe()),sO=Z(),ds=pr(),iO=ky(Xc()),wy=rO(an()),aO=new RegExp("(jetzt|heute|morgen|\xFCbermorgen|uebermorgen|gestern|vorgestern|letzte\\s*nacht)(?:\\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht))?(?=\\W|$)","i"),oO=1,uO=2,Qc=class extends sO.AbstractParserWithWordBoundaryChecking{innerPattern(e){return aO}innerExtract(e,t){let n=nO.default(e.refDate),s=(t[oO]||"").toLowerCase(),a=(t[uO]||"").toLowerCase(),o=e.createParsingComponents();switch(s){case"jetzt":o=wy.now(e.reference);break;case"heute":o=wy.today(e.reference);break;case"morgen":ds.assignTheNextDay(o,n);break;case"\xFCbermorgen":case"uebermorgen":n=n.add(1,"day"),ds.assignTheNextDay(o,n);break;case"gestern":n=n.add(-1,"day"),ds.assignSimilarDate(o,n),ds.implySimilarTime(o,n);break;case"vorgestern":n=n.add(-2,"day"),ds.assignSimilarDate(o,n),ds.implySimilarTime(o,n);break;default:s.match(/letzte\s*nacht/)&&(n.hour()>6&&(n=n.add(-1,"day")),ds.assignSimilarDate(o,n),o.imply("hour",0));break}return a&&(o=iO.default.extractTimeComponents(o,a)),o}};Mr.default=Qc});var Py=O(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var lO=Rt(),My=zi(),Ry=zi(),cO=Le(),dO=Z(),fO=new RegExp(`(?:am\\s*?)?(?:den\\s*?)?([0-9]{1,2})\\.(?:\\s*(?:bis(?:\\s*(?:am|zum))?|\\-|\\\u2013|\\s)\\s*([0-9]{1,2})\\.?)?\\s*(${cO.matchAnyPattern(My.MONTH_DICTIONARY)})(?:(?:-|/|,?\\s*)(${Ry.YEAR_PATTERN}(?![^\\s]\\d)))?(?=\\W|$)`,"i"),Ey=1,Sy=2,hO=3,Oy=4,Jc=class extends dO.AbstractParserWithWordBoundaryChecking{innerPattern(){return fO}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=My.MONTH_DICTIONARY[t[hO].toLowerCase()],a=parseInt(t[Ey]);if(a>31)return t.index=t.index+t[Ey].length,null;if(n.start.assign("month",s),n.start.assign("day",a),t[Oy]){let o=Ry.parseYear(t[Oy]);n.start.assign("year",o)}else{let o=lO.findYearClosestToRef(e.refDate,a,s);n.start.imply("year",o)}if(t[Sy]){let o=parseInt(t[Sy]);n.end=n.start.clone(),n.end.assign("day",o)}return n}};ed.default=Jc});var xy=O(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var Yo=zi(),pO=tt(),mO=Z(),yO=mr(),gO=Le(),td=class extends mO.AbstractParserWithWordBoundaryChecking{constructor(){super()}innerPattern(){return new RegExp(`(?:\\s*((?:n\xE4chste|kommende|folgende|letzte|vergangene|vorige|vor(?:her|an)gegangene)(?:s|n|m|r)?|vor|in)\\s*)?(${Yo.NUMBER_PATTERN})?(?:\\s*(n\xE4chste|kommende|folgende|letzte|vergangene|vorige|vor(?:her|an)gegangene)(?:s|n|m|r)?)?\\s*(${gO.matchAnyPattern(Yo.TIME_UNIT_DICTIONARY)})`,"i")}innerExtract(e,t){let n=t[2]?Yo.parseNumberPattern(t[2]):1,s=Yo.TIME_UNIT_DICTIONARY[t[4].toLowerCase()],a={};a[s]=n;let o=t[1]||t[3]||"";if(o=o.toLowerCase(),!!o)return(/vor/.test(o)||/letzte/.test(o)||/vergangen/.test(o))&&(a=yO.reverseTimeUnits(a)),pO.ParsingComponents.createRelativeFromReference(e.reference,a)}};rd.default=td});var Cy=O(Tt=>{"use strict";var Rr=Tt&&Tt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.createConfiguration=Tt.createCasualConfiguration=Tt.parseDate=Tt.parse=Tt.strict=Tt.casual=void 0;var _O=nn(),Ay=Or(),TO=Rr(ls()),bO=Rr(Dc()),vO=Rr(cy()),wO=Rr(my()),kO=Rr(Ty()),DO=Rr(by()),EO=Rr(vy()),SO=Rr(Dy()),OO=Rr(Xc()),MO=Rr(Py()),RO=Rr(xy());Tt.casual=new Ay.Chrono(Ny());Tt.strict=new Ay.Chrono(nd(!0));function PO(r,e,t){return Tt.casual.parse(r,e,t)}Tt.parse=PO;function xO(r,e,t){return Tt.casual.parseDate(r,e,t)}Tt.parseDate=xO;function Ny(r=!0){let e=nd(!1,r);return e.parsers.unshift(new OO.default),e.parsers.unshift(new SO.default),e.parsers.unshift(new RO.default),e}Tt.createCasualConfiguration=Ny;function nd(r=!0,e=!0){return _O.includeCommonConfiguration({parsers:[new bO.default,new TO.default(e),new vO.default,new kO.default,new MO.default,new wO.default],refiners:[new DO.default,new EO.default]},r)}Tt.createConfiguration=nd});var Fy=O(Pr=>{"use strict";var AO=Pr&&Pr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),NO=Pr&&Pr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),CO=Pr&&Pr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&AO(e,r,t);return NO(e,r),e},IO=Pr&&Pr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pr,"__esModule",{value:!0});var FO=IO(Pe()),LO=ht(),YO=Z(),Iy=pr(),Uo=CO(an()),sd=class extends YO.AbstractParserWithWordBoundaryChecking{innerPattern(e){return/(maintenant|aujourd'hui|demain|hier|cette\s*nuit|la\s*veille)(?=\W|$)/i}innerExtract(e,t){let n=FO.default(e.refDate),s=t[0].toLowerCase(),a=e.createParsingComponents();switch(s){case"maintenant":return Uo.now(e.reference);case"aujourd'hui":return Uo.today(e.reference);case"hier":return Uo.yesterday(e.reference);case"demain":return Uo.tomorrow(e.reference);default:s.match(/cette\s*nuit/)?(Iy.assignSimilarDate(a,n),a.imply("hour",22),a.imply("meridiem",LO.Meridiem.PM)):s.match(/la\s*veille/)&&(n=n.add(-1,"day"),Iy.assignSimilarDate(a,n),a.imply("hour",0))}return a}};Pr.default=sd});var Ly=O(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});var Qi=ht(),UO=Z(),id=class extends UO.AbstractParserWithWordBoundaryChecking{innerPattern(e){return/(cet?)?\s*(matin|soir|après-midi|aprem|a midi|à minuit)(?=\W|$)/i}innerExtract(e,t){let n=t[2].toLowerCase(),s=e.createParsingComponents();switch(n){case"apr\xE8s-midi":case"aprem":s.imply("hour",14),s.imply("minute",0),s.imply("meridiem",Qi.Meridiem.PM);break;case"soir":s.imply("hour",18),s.imply("minute",0),s.imply("meridiem",Qi.Meridiem.PM);break;case"matin":s.imply("hour",8),s.imply("minute",0),s.imply("meridiem",Qi.Meridiem.AM);break;case"a midi":s.imply("hour",12),s.imply("minute",0),s.imply("meridiem",Qi.Meridiem.AM);break;case"\xE0 minuit":s.imply("hour",0),s.imply("meridiem",Qi.Meridiem.AM);break}return s}};ad.default=id});var Yy=O(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var WO=as(),od=class extends WO.AbstractTimeExpressionParser{primaryPrefix(){return"(?:(?:[\xE0a])\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|[\xE0a]|\\?)\\s*"}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}};ud.default=od});var Uy=O(Ji=>{"use strict";var qO=Ji&&Ji.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ji,"__esModule",{value:!0});var jO=qO(rn()),ld=class extends jO.default{patternBetween(){return new RegExp("^\\s*(T|\xE0|a|vers|de|,|-)?\\s*$")}};Ji.default=ld});var Wy=O(ea=>{"use strict";var $O=ea&&ea.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ea,"__esModule",{value:!0});var BO=$O(Ur()),cd=class extends BO.default{patternBetween(){return/^\s*(à|a|-)\s*$/i}};ea.default=cd});var In=O(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.parseTimeUnits=xe.TIME_UNITS_PATTERN=xe.parseYear=xe.YEAR_PATTERN=xe.parseOrdinalNumberPattern=xe.ORDINAL_NUMBER_PATTERN=xe.parseNumberPattern=xe.NUMBER_PATTERN=xe.TIME_UNIT_DICTIONARY=xe.INTEGER_WORD_DICTIONARY=xe.MONTH_DICTIONARY=xe.WEEKDAY_DICTIONARY=void 0;var dd=Le();xe.WEEKDAY_DICTIONARY={dimanche:0,dim:0,lundi:1,lun:1,mardi:2,mar:2,mercredi:3,mer:3,jeudi:4,jeu:4,vendredi:5,ven:5,samedi:6,sam:6};xe.MONTH_DICTIONARY={janvier:1,jan:1,"jan.":1,f\u00E9vrier:2,f\u00E9v:2,"f\xE9v.":2,fevrier:2,fev:2,"fev.":2,mars:3,mar:3,"mar.":3,avril:4,avr:4,"avr.":4,mai:5,juin:6,jun:6,juillet:7,juil:7,jul:7,"jul.":7,ao\u00FBt:8,aout:8,septembre:9,sep:9,"sep.":9,sept:9,"sept.":9,octobre:10,oct:10,"oct.":10,novembre:11,nov:11,"nov.":11,d\u00E9cembre:12,decembre:12,dec:12,"dec.":12};xe.INTEGER_WORD_DICTIONARY={un:1,deux:2,trois:3,quatre:4,cinq:5,six:6,sept:7,huit:8,neuf:9,dix:10,onze:11,douze:12,treize:13};xe.TIME_UNIT_DICTIONARY={sec:"second",seconde:"second",secondes:"second",min:"minute",mins:"minute",minute:"minute",minutes:"minute",h:"hour",hr:"hour",hrs:"hour",heure:"hour",heures:"hour",jour:"d",jours:"d",semaine:"week",semaines:"week",mois:"month",trimestre:"quarter",trimestres:"quarter",ans:"year",ann\u00E9e:"year",ann\u00E9es:"year"};xe.NUMBER_PATTERN=`(?:${dd.matchAnyPattern(xe.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|une?\\b|quelques?|demi-?)`;function jy(r){let e=r.toLowerCase();return xe.INTEGER_WORD_DICTIONARY[e]!==void 0?xe.INTEGER_WORD_DICTIONARY[e]:e==="une"||e==="un"?1:e.match(/quelques?/)?3:e.match(/demi-?/)?.5:parseFloat(e)}xe.parseNumberPattern=jy;xe.ORDINAL_NUMBER_PATTERN="(?:[0-9]{1,2}(?:er)?)";function GO(r){let e=r.toLowerCase();return e=e.replace(/(?:er)$/i,""),parseInt(e)}xe.parseOrdinalNumberPattern=GO;xe.YEAR_PATTERN="(?:[1-9][0-9]{0,3}\\s*(?:AC|AD|p\\.\\s*C(?:hr?)?\\.\\s*n\\.)|[1-2][0-9]{3}|[5-9][0-9])";function HO(r){if(/AC/i.test(r))return r=r.replace(/BC/i,""),-parseInt(r);if(/AD/i.test(r)||/C/i.test(r))return r=r.replace(/[^\d]+/i,""),parseInt(r);let e=parseInt(r);return e<100&&(e>50?e=e+1900:e=e+2e3),e}xe.parseYear=HO;var $y=`(${xe.NUMBER_PATTERN})\\s{0,5}(${dd.matchAnyPattern(xe.TIME_UNIT_DICTIONARY)})\\s{0,5}`,qy=new RegExp($y,"i");xe.TIME_UNITS_PATTERN=dd.repeatedTimeunitPattern("",$y);function zO(r){let e={},t=r,n=qy.exec(t);for(;n;)VO(e,n),t=t.substring(n[0].length),n=qy.exec(t);return e}xe.parseTimeUnits=zO;function VO(r,e){let t=jy(e[1]),n=xe.TIME_UNIT_DICTIONARY[e[2].toLowerCase()];r[n]=t}});var Gy=O(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});var By=In(),KO=Le(),ZO=Z(),XO=us(),QO=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:(?:ce)\\s*)?(${KO.matchAnyPattern(By.WEEKDAY_DICTIONARY)})(?:\\s*(?:\\,|\\)|\\\uFF09))?(?:\\s*(dernier|prochain)\\s*)?(?=\\W|\\d|$)`,"i"),JO=1,eM=2,fd=class extends ZO.AbstractParserWithWordBoundaryChecking{innerPattern(){return QO}innerExtract(e,t){let n=t[JO].toLowerCase(),s=By.WEEKDAY_DICTIONARY[n];if(s===void 0)return null;let a=t[eM];a=a||"",a=a.toLowerCase();let o=null;a=="dernier"?o="last":a=="prochain"&&(o="next");let l=XO.toDayJSWeekday(e.refDate,s,o);return e.createParsingComponents().assign("weekday",s).imply("day",l.date()).imply("month",l.month()+1).imply("year",l.year())}};hd.default=fd});var Ky=O(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});var ta=ht(),tM=new RegExp("(^|\\s|T)(?:(?:[\xE0a])\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)","i"),rM=new RegExp("^\\s*(\\-|\\\u2013|\\~|\\\u301C|[\xE0a]|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)","i"),nM=2,Hy=3,zy=4,Vy=5,Qs=class{pattern(e){return tM}extract(e,t){let n=e.createParsingResult(t.index+t[1].length,t[0].substring(t[1].length));if(n.text.match(/^\d{4}$/)||(n.start=Qs.extractTimeComponent(n.start.clone(),t),!n.start))return t.index+=t[0].length,null;let s=e.text.substring(t.index+t[0].length),a=rM.exec(s);return a&&(n.end=Qs.extractTimeComponent(n.start.clone(),a),n.end&&(n.text+=a[0])),n}static extractTimeComponent(e,t){let n=0,s=0,a=null;if(n=parseInt(t[nM]),t[Hy]!=null&&(s=parseInt(t[Hy])),s>=60||n>24)return null;if(n>=12&&(a=ta.Meridiem.PM),t[Vy]!=null){if(n>12)return null;let o=t[Vy][0].toLowerCase();o=="a"&&(a=ta.Meridiem.AM,n==12&&(n=0)),o=="p"&&(a=ta.Meridiem.PM,n!=12&&(n+=12))}if(e.assign("hour",n),e.assign("minute",s),a!==null?e.assign("meridiem",a):n<12?e.imply("meridiem",ta.Meridiem.AM):e.imply("meridiem",ta.Meridiem.PM),t[zy]!=null){let o=parseInt(t[zy]);if(o>=60)return null;e.assign("second",o)}return e}};pd.default=Qs});var tg=O(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});var sM=Rt(),Jy=In(),eg=In(),Wo=In(),iM=Le(),aM=Z(),oM=new RegExp(`(?:on\\s*?)?(${Wo.ORDINAL_NUMBER_PATTERN})(?:\\s*(?:au|\\-|\\\u2013|jusqu'au?|\\s)\\s*(${Wo.ORDINAL_NUMBER_PATTERN}))?(?:-|/|\\s*(?:de)?\\s*)(${iM.matchAnyPattern(Jy.MONTH_DICTIONARY)})(?:(?:-|/|,?\\s*)(${eg.YEAR_PATTERN}(?![^\\s]\\d)))?(?=\\W|$)`,"i"),Zy=1,Xy=2,uM=3,Qy=4,md=class extends aM.AbstractParserWithWordBoundaryChecking{innerPattern(){return oM}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=Jy.MONTH_DICTIONARY[t[uM].toLowerCase()],a=Wo.parseOrdinalNumberPattern(t[Zy]);if(a>31)return t.index=t.index+t[Zy].length,null;if(n.start.assign("month",s),n.start.assign("day",a),t[Qy]){let o=eg.parseYear(t[Qy]);n.start.assign("year",o)}else{let o=sM.findYearClosestToRef(e.refDate,a,s);n.start.imply("year",o)}if(t[Xy]){let o=Wo.parseOrdinalNumberPattern(t[Xy]);n.end=n.start.clone(),n.end.assign("day",o)}return n}};yd.default=md});var ng=O(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});var rg=In(),lM=tt(),cM=Z(),dM=mr(),gd=class extends cM.AbstractParserWithWordBoundaryChecking{constructor(){super()}innerPattern(){return new RegExp(`il y a\\s*(${rg.TIME_UNITS_PATTERN})(?=(?:\\W|$))`,"i")}innerExtract(e,t){let n=rg.parseTimeUnits(t[1]),s=dM.reverseTimeUnits(n);return lM.ParsingComponents.createRelativeFromReference(e.reference,s)}};_d.default=gd});var ig=O(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});var sg=In(),fM=tt(),hM=Z(),Td=class extends hM.AbstractParserWithWordBoundaryChecking{innerPattern(){return new RegExp(`(?:dans|en|pour|pendant|de)\\s*(${sg.TIME_UNITS_PATTERN})(?=\\W|$)`,"i")}innerExtract(e,t){let n=sg.parseTimeUnits(t[1]);return fM.ParsingComponents.createRelativeFromReference(e.reference,n)}};bd.default=Td});var ag=O(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});var qo=In(),pM=tt(),mM=Z(),yM=mr(),gM=Le(),vd=class extends mM.AbstractParserWithWordBoundaryChecking{constructor(){super()}innerPattern(){return new RegExp(`(?:les?|la|l'|du|des?)\\s*(${qo.NUMBER_PATTERN})?(?:\\s*(prochaine?s?|derni[e\xE8]re?s?|pass[\xE9e]e?s?|pr[\xE9e]c[\xE9e]dents?|suivante?s?))?\\s*(${gM.matchAnyPattern(qo.TIME_UNIT_DICTIONARY)})(?:\\s*(prochaine?s?|derni[e\xE8]re?s?|pass[\xE9e]e?s?|pr[\xE9e]c[\xE9e]dents?|suivante?s?))?`,"i")}innerExtract(e,t){let n=t[1]?qo.parseNumberPattern(t[1]):1,s=qo.TIME_UNIT_DICTIONARY[t[3].toLowerCase()],a={};a[s]=n;let o=t[2]||t[4]||"";if(o=o.toLowerCase(),!!o)return(/derni[eè]re?s?/.test(o)||/pass[ée]e?s?/.test(o)||/pr[ée]c[ée]dents?/.test(o))&&(a=yM.reverseTimeUnits(a)),pM.ParsingComponents.createRelativeFromReference(e.reference,a)}};wd.default=vd});var lg=O(bt=>{"use strict";var yr=bt&&bt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(bt,"__esModule",{value:!0});bt.createConfiguration=bt.createCasualConfiguration=bt.parseDate=bt.parse=bt.strict=bt.casual=void 0;var _M=nn(),og=Or(),TM=yr(Fy()),bM=yr(Ly()),vM=yr(ls()),wM=yr(Yy()),kM=yr(Uy()),DM=yr(Wy()),EM=yr(Gy()),SM=yr(Ky()),OM=yr(tg()),MM=yr(ng()),RM=yr(ig()),PM=yr(ag());bt.casual=new og.Chrono(ug());bt.strict=new og.Chrono(kd(!0));function xM(r,e,t){return bt.casual.parse(r,e,t)}bt.parse=xM;function AM(r,e,t){return bt.casual.parseDate(r,e,t)}bt.parseDate=AM;function ug(r=!0){let e=kd(!1,r);return e.parsers.unshift(new TM.default),e.parsers.unshift(new bM.default),e.parsers.unshift(new PM.default),e}bt.createCasualConfiguration=ug;function kd(r=!0,e=!0){return _M.includeCommonConfiguration({parsers:[new vM.default(e),new OM.default,new wM.default,new SM.default,new MM.default,new RM.default,new EM.default],refiners:[new kM.default,new DM.default]},r)}bt.createConfiguration=kd});var cg=O(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.toHankaku=void 0;function NM(r){return String(r).replace(/\u2019/g,"'").replace(/\u201D/g,'"').replace(/\u3000/g," ").replace(/\uFFE5/g,"\xA5").replace(/[\uFF01\uFF03-\uFF06\uFF08\uFF09\uFF0C-\uFF19\uFF1C-\uFF1F\uFF21-\uFF3B\uFF3D\uFF3F\uFF41-\uFF5B\uFF5D\uFF5E]/g,CM)}jo.toHankaku=NM;function CM(r){return String.fromCharCode(r.charCodeAt(0)-65248)}});var fg=O(ra=>{"use strict";var IM=ra&&ra.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ra,"__esModule",{value:!0});var Dd=cg(),FM=Rt(),LM=IM(Pe()),YM=/(?:(?:([同今本])|((昭和|平成|令和)?([0-90-9]{1,4}|元)))年\s*)?([0-90-9]{1,2})月\s*([0-90-9]{1,2})日/i,dg=1,UM=2,Ed=3,WM=4,qM=5,jM=6,Sd=class{pattern(){return YM}extract(e,t){let n=parseInt(Dd.toHankaku(t[qM])),s=parseInt(Dd.toHankaku(t[jM])),a=e.createParsingComponents({day:s,month:n});if(t[dg]&&t[dg].match("\u540C|\u4ECA|\u672C")){let o=LM.default(e.refDate);a.assign("year",o.year())}if(t[UM]){let o=t[WM],l=o=="\u5143"?1:parseInt(Dd.toHankaku(o));t[Ed]=="\u4EE4\u548C"?l+=2018:t[Ed]=="\u5E73\u6210"?l+=1988:t[Ed]=="\u662D\u548C"&&(l+=1925),a.assign("year",l)}else{let o=FM.findYearClosestToRef(e.refDate,s,n);a.imply("year",o)}return a}};ra.default=Sd});var hg=O(na=>{"use strict";var $M=na&&na.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(na,"__esModule",{value:!0});var BM=$M(Ur()),Od=class extends BM.default{patternBetween(){return/^\s*(から|ー|-)\s*$/i}};na.default=Od});var mg=O(xr=>{"use strict";var GM=xr&&xr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),HM=xr&&xr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),zM=xr&&xr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&GM(e,r,t);return HM(e,r),e},VM=xr&&xr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(xr,"__esModule",{value:!0});var KM=VM(Pe()),pg=ht(),Md=zM(an()),ZM=/今日|当日|昨日|明日|今夜|今夕|今晩|今朝/i,Rd=class{pattern(){return ZM}extract(e,t){let n=t[0],s=KM.default(e.refDate),a=e.createParsingComponents();switch(n){case"\u6628\u65E5":return Md.yesterday(e.reference);case"\u660E\u65E5":return Md.tomorrow(e.reference);case"\u4ECA\u65E5":case"\u5F53\u65E5":return Md.today(e.reference)}return n=="\u4ECA\u591C"||n=="\u4ECA\u5915"||n=="\u4ECA\u6669"?(a.imply("hour",22),a.assign("meridiem",pg.Meridiem.PM)):n.match("\u4ECA\u671D")&&(a.imply("hour",6),a.assign("meridiem",pg.Meridiem.AM)),a.assign("day",s.date()),a.assign("month",s.month()+1),a.assign("year",s.year()),a}};xr.default=Rd});var _g=O(vt=>{"use strict";var Pd=vt&&vt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConfiguration=vt.createCasualConfiguration=vt.parseDate=vt.parse=vt.strict=vt.casual=void 0;var XM=Pd(fg()),QM=Pd(hg()),JM=Pd(mg()),yg=Or();vt.casual=new yg.Chrono(gg());vt.strict=new yg.Chrono(xd());function eR(r,e,t){return vt.casual.parse(r,e,t)}vt.parse=eR;function tR(r,e,t){return vt.casual.parseDate(r,e,t)}vt.parseDate=tR;function gg(){let r=xd();return r.parsers.unshift(new JM.default),r}vt.createCasualConfiguration=gg;function xd(){return{parsers:[new XM.default],refiners:[new QM.default]}}vt.createConfiguration=xd});var $o=O(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.parseYear=qr.YEAR_PATTERN=qr.MONTH_DICTIONARY=qr.WEEKDAY_DICTIONARY=void 0;qr.WEEKDAY_DICTIONARY={domingo:0,dom:0,segunda:1,"segunda-feira":1,seg:1,ter\u00E7a:2,"ter\xE7a-feira":2,ter:2,quarta:3,"quarta-feira":3,qua:3,quinta:4,"quinta-feira":4,qui:4,sexta:5,"sexta-feira":5,sex:5,s\u00E1bado:6,sabado:6,sab:6};qr.MONTH_DICTIONARY={janeiro:1,jan:1,"jan.":1,fevereiro:2,fev:2,"fev.":2,mar\u00E7o:3,mar:3,"mar.":3,abril:4,abr:4,"abr.":4,maio:5,mai:5,"mai.":5,junho:6,jun:6,"jun.":6,julho:7,jul:7,"jul.":7,agosto:8,ago:8,"ago.":8,setembro:9,set:9,"set.":9,outubro:10,out:10,"out.":10,novembro:11,nov:11,"nov.":11,dezembro:12,dez:12,"dez.":12};qr.YEAR_PATTERN="[0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?";function rR(r){if(r.match(/^[0-9]{1,4}$/)){let e=parseInt(r);return e<100&&(e>50?e=e+1900:e=e+2e3),e}return r.match(/a\.?\s*c\.?/i)?(r=r.replace(/a\.?\s*c\.?/i,""),-parseInt(r)):parseInt(r)}qr.parseYear=rR});var bg=O(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var Tg=$o(),nR=Le(),sR=Z(),iR=us(),aR=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:(este|esta|passado|pr[o\xF3]ximo)\\s*)?(${nR.matchAnyPattern(Tg.WEEKDAY_DICTIONARY)})(?:\\s*(?:\\,|\\)|\\\uFF09))?(?:\\s*(este|esta|passado|pr[\xF3o]ximo)\\s*semana)?(?=\\W|\\d|$)`,"i"),oR=1,uR=2,lR=3,Ad=class extends sR.AbstractParserWithWordBoundaryChecking{innerPattern(){return aR}innerExtract(e,t){let n=t[uR].toLowerCase(),s=Tg.WEEKDAY_DICTIONARY[n];if(s===void 0)return null;let a=t[oR],o=t[lR],l=a||o||"";l=l.toLowerCase();let c=null;l=="passado"?c="this":l=="pr\xF3ximo"||l=="proximo"?c="next":l=="este"&&(c="this");let f=iR.toDayJSWeekday(e.refDate,s,c);return e.createParsingComponents().assign("weekday",s).imply("day",f.date()).imply("month",f.month()+1).imply("year",f.year())}};Nd.default=Ad});var vg=O(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});var cR=as(),Cd=class extends cR.AbstractTimeExpressionParser{primaryPrefix(){return"(?:(?:ao?|\xE0s?|das|da|de|do)\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|a(?:o)?|\\?)\\s*"}};Id.default=Cd});var wg=O(sa=>{"use strict";var dR=sa&&sa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(sa,"__esModule",{value:!0});var fR=dR(rn()),Fd=class extends fR.default{patternBetween(){return new RegExp("^\\s*(?:,|\xE0)?\\s*$")}};sa.default=Fd});var kg=O(ia=>{"use strict";var hR=ia&&ia.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ia,"__esModule",{value:!0});var pR=hR(Ur()),Ld=class extends pR.default{patternBetween(){return/^\s*(?:-)\s*$/i}};ia.default=Ld});var Rg=O(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});var mR=Rt(),Og=$o(),Mg=$o(),yR=Le(),gR=Z(),_R=new RegExp(`([0-9]{1,2})(?:\xBA|\xAA|\xB0)?(?:\\s*(?:desde|de|\\-|\\\u2013|ao?|\\s)\\s*([0-9]{1,2})(?:\xBA|\xAA|\xB0)?)?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)(${yR.matchAnyPattern(Og.MONTH_DICTIONARY)})(?:\\s*(?:de|,)?\\s*(${Mg.YEAR_PATTERN}))?(?=\\W|$)`,"i"),Dg=1,Eg=2,TR=3,Sg=4,Yd=class extends gR.AbstractParserWithWordBoundaryChecking{innerPattern(){return _R}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=Og.MONTH_DICTIONARY[t[TR].toLowerCase()],a=parseInt(t[Dg]);if(a>31)return t.index=t.index+t[Dg].length,null;if(n.start.assign("month",s),n.start.assign("day",a),t[Sg]){let o=Mg.parseYear(t[Sg]);n.start.assign("year",o)}else{let o=mR.findYearClosestToRef(e.refDate,a,s);n.start.imply("year",o)}if(t[Eg]){let o=parseInt(t[Eg]);n.end=n.start.clone(),n.end.assign("day",o)}return n}};Ud.default=Yd});var Pg=O(on=>{"use strict";var bR=on&&on.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),vR=on&&on.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),wR=on&&on.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&bR(e,r,t);return vR(e,r),e};Object.defineProperty(on,"__esModule",{value:!0});var kR=Z(),Bo=wR(an()),Wd=class extends kR.AbstractParserWithWordBoundaryChecking{innerPattern(e){return/(agora|hoje|amanha|amanhã|ontem)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),s=e.createParsingComponents();switch(n){case"agora":return Bo.now(e.reference);case"hoje":return Bo.today(e.reference);case"amanha":case"amanh\xE3":return Bo.tomorrow(e.reference);case"ontem":return Bo.yesterday(e.reference)}return s}};on.default=Wd});var xg=O(aa=>{"use strict";var DR=aa&&aa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(aa,"__esModule",{value:!0});var Go=ht(),ER=Z(),SR=pr(),OR=DR(Pe()),qd=class extends ER.AbstractParserWithWordBoundaryChecking{innerPattern(){return/(?:esta\s*)?(manha|manhã|tarde|meia-noite|meio-dia|noite)(?=\W|$)/i}innerExtract(e,t){let n=OR.default(e.refDate),s=e.createParsingComponents();switch(t[1].toLowerCase()){case"tarde":s.imply("meridiem",Go.Meridiem.PM),s.imply("hour",15);break;case"noite":s.imply("meridiem",Go.Meridiem.PM),s.imply("hour",22);break;case"manha":case"manh\xE3":s.imply("meridiem",Go.Meridiem.AM),s.imply("hour",6);break;case"meia-noite":SR.assignTheNextDay(s,n),s.imply("hour",0),s.imply("minute",0),s.imply("second",0);break;case"meio-dia":s.imply("meridiem",Go.Meridiem.AM),s.imply("hour",12);break}return s}};aa.default=qd});var Cg=O(wt=>{"use strict";var Fn=wt&&wt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wt,"__esModule",{value:!0});wt.createConfiguration=wt.createCasualConfiguration=wt.parseDate=wt.parse=wt.strict=wt.casual=void 0;var MR=nn(),Ag=Or(),RR=Fn(ls()),PR=Fn(bg()),xR=Fn(vg()),AR=Fn(wg()),NR=Fn(kg()),CR=Fn(Rg()),IR=Fn(Pg()),FR=Fn(xg());wt.casual=new Ag.Chrono(Ng());wt.strict=new Ag.Chrono(jd(!0));function LR(r,e,t){return wt.casual.parse(r,e,t)}wt.parse=LR;function YR(r,e,t){return wt.casual.parseDate(r,e,t)}wt.parseDate=YR;function Ng(r=!0){let e=jd(!1,r);return e.parsers.push(new IR.default),e.parsers.push(new FR.default),e}wt.createCasualConfiguration=Ng;function jd(r=!0,e=!0){return MR.includeCommonConfiguration({parsers:[new RR.default(e),new PR.default,new xR.default,new CR.default],refiners:[new AR.default,new NR.default]},r)}wt.createConfiguration=jd});var Ig=O(oa=>{"use strict";var UR=oa&&oa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(oa,"__esModule",{value:!0});var WR=UR(Ur()),$d=class extends WR.default{patternBetween(){return/^\s*(tot|-)\s*$/i}};oa.default=$d});var Fg=O(ua=>{"use strict";var qR=ua&&ua.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ua,"__esModule",{value:!0});var jR=qR(rn()),Bd=class extends jR.default{patternBetween(){return new RegExp("^\\s*(om|na|voor|in de|,|-)?\\s*$")}};ua.default=Bd});var Lg=O(un=>{"use strict";var $R=un&&un.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),BR=un&&un.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),GR=un&&un.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&$R(e,r,t);return BR(e,r),e};Object.defineProperty(un,"__esModule",{value:!0});var HR=Z(),Ho=GR(an()),Gd=class extends HR.AbstractParserWithWordBoundaryChecking{innerPattern(e){return/(nu|vandaag|morgen|morgend|gisteren)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),s=e.createParsingComponents();switch(n){case"nu":return Ho.now(e.reference);case"vandaag":return Ho.today(e.reference);case"morgen":case"morgend":return Ho.tomorrow(e.reference);case"gisteren":return Ho.yesterday(e.reference)}return s}};un.default=Gd});var Yg=O(la=>{"use strict";var zR=la&&la.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(la,"__esModule",{value:!0});var zo=ht(),VR=Z(),KR=zR(Pe()),ZR=pr(),XR=1,QR=2,Hd=class extends VR.AbstractParserWithWordBoundaryChecking{innerPattern(){return/(deze)?\s*(namiddag|avond|middernacht|ochtend|middag|'s middags|'s avonds|'s ochtends)(?=\W|$)/i}innerExtract(e,t){let n=KR.default(e.refDate),s=e.createParsingComponents();switch(t[XR]==="deze"&&(s.assign("day",e.refDate.getDate()),s.assign("month",e.refDate.getMonth()+1),s.assign("year",e.refDate.getFullYear())),t[QR].toLowerCase()){case"namiddag":case"'s namiddags":s.imply("meridiem",zo.Meridiem.PM),s.imply("hour",15);break;case"avond":case"'s avonds'":s.imply("meridiem",zo.Meridiem.PM),s.imply("hour",20);break;case"middernacht":ZR.assignTheNextDay(s,n),s.imply("hour",0),s.imply("minute",0),s.imply("second",0);break;case"ochtend":case"'s ochtends":s.imply("meridiem",zo.Meridiem.AM),s.imply("hour",6);break;case"middag":case"'s middags":s.imply("meridiem",zo.Meridiem.AM),s.imply("hour",12);break}return s}};la.default=Hd});var tr=O(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.parseTimeUnits=we.TIME_UNITS_PATTERN=we.parseYear=we.YEAR_PATTERN=we.parseOrdinalNumberPattern=we.ORDINAL_NUMBER_PATTERN=we.parseNumberPattern=we.NUMBER_PATTERN=we.TIME_UNIT_DICTIONARY=we.ORDINAL_WORD_DICTIONARY=we.INTEGER_WORD_DICTIONARY=we.MONTH_DICTIONARY=we.WEEKDAY_DICTIONARY=void 0;var Vo=Le(),JR=Rt();we.WEEKDAY_DICTIONARY={zondag:0,zon:0,"zon.":0,zo:0,"zo.":0,maandag:1,ma:1,"ma.":1,dinsdag:2,din:2,"din.":2,di:2,"di.":2,woensdag:3,woe:3,"woe.":3,wo:3,"wo.":3,donderdag:4,dond:4,"dond.":4,do:4,"do.":4,vrijdag:5,vrij:5,"vrij.":5,vr:5,"vr.":5,zaterdag:6,zat:6,"zat.":6,za:6,"za.":6};we.MONTH_DICTIONARY={januari:1,jan:1,"jan.":1,februari:2,feb:2,"feb.":2,maart:3,mar:3,"mar.":3,april:4,apr:4,"apr.":4,mei:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,augustus:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,december:12,dec:12,"dec.":12};we.INTEGER_WORD_DICTIONARY={een:1,twee:2,drie:3,vier:4,vijf:5,zes:6,zeven:7,acht:8,negen:9,tien:10,elf:11,twaalf:12};we.ORDINAL_WORD_DICTIONARY={eerste:1,tweede:2,derde:3,vierde:4,vijfde:5,zesde:6,zevende:7,achtste:8,negende:9,tiende:10,elfde:11,twaalfde:12,dertiende:13,veertiende:14,vijftiende:15,zestiende:16,zeventiende:17,achttiende:18,negentiende:19,twintigste:20,eenentwintigste:21,twee\u00EBntwintigste:22,drieentwintigste:23,vierentwintigste:24,vijfentwintigste:25,zesentwintigste:26,zevenentwintigste:27,achtentwintig:28,negenentwintig:29,dertigste:30,eenendertigste:31};we.TIME_UNIT_DICTIONARY={sec:"second",second:"second",seconden:"second",min:"minute",mins:"minute",minute:"minute",minuut:"minute",minuten:"minute",minuutje:"minute",h:"hour",hr:"hour",hrs:"hour",uur:"hour",u:"hour",uren:"hour",dag:"d",dagen:"d",week:"week",weken:"week",maand:"month",maanden:"month",jaar:"year",jr:"year",jaren:"year"};we.NUMBER_PATTERN=`(?:${Vo.matchAnyPattern(we.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+[\\.,][0-9]+|halve?|half|paar)`;function Wg(r){let e=r.toLowerCase();return we.INTEGER_WORD_DICTIONARY[e]!==void 0?we.INTEGER_WORD_DICTIONARY[e]:e==="paar"?2:e==="half"||e.match(/halve?/)?.5:parseFloat(e.replace(",","."))}we.parseNumberPattern=Wg;we.ORDINAL_NUMBER_PATTERN=`(?:${Vo.matchAnyPattern(we.ORDINAL_WORD_DICTIONARY)}|[0-9]{1,2}(?:ste|de)?)`;function eP(r){let e=r.toLowerCase();return we.ORDINAL_WORD_DICTIONARY[e]!==void 0?we.ORDINAL_WORD_DICTIONARY[e]:(e=e.replace(/(?:ste|de)$/i,""),parseInt(e))}we.parseOrdinalNumberPattern=eP;we.YEAR_PATTERN="(?:[1-9][0-9]{0,3}\\s*(?:voor Christus|na Christus)|[1-2][0-9]{3}|[5-9][0-9])";function tP(r){if(/voor Christus/i.test(r))return r=r.replace(/voor Christus/i,""),-parseInt(r);if(/na Christus/i.test(r))return r=r.replace(/na Christus/i,""),parseInt(r);let e=parseInt(r);return JR.findMostLikelyADYear(e)}we.parseYear=tP;var qg=`(${we.NUMBER_PATTERN})\\s{0,5}(${Vo.matchAnyPattern(we.TIME_UNIT_DICTIONARY)})\\s{0,5}`,Ug=new RegExp(qg,"i");we.TIME_UNITS_PATTERN=Vo.repeatedTimeunitPattern("(?:(?:binnen|in)\\s*)?",qg);function rP(r){let e={},t=r,n=Ug.exec(t);for(;n;)nP(e,n),t=t.substring(n[0].length),n=Ug.exec(t);return e}we.parseTimeUnits=rP;function nP(r,e){let t=Wg(e[1]),n=we.TIME_UNIT_DICTIONARY[e[2].toLowerCase()];r[n]=t}});var $g=O(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});var jg=tr(),sP=tt(),iP=Z(),zd=class extends iP.AbstractParserWithWordBoundaryChecking{innerPattern(){return new RegExp("(?:binnen|in|binnen de|voor)\\s*("+jg.TIME_UNITS_PATTERN+")(?=\\W|$)","i")}innerExtract(e,t){let n=jg.parseTimeUnits(t[1]);return sP.ParsingComponents.createRelativeFromReference(e.reference,n)}};Vd.default=zd});var Gg=O(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var Bg=tr(),aP=Le(),oP=Z(),uP=us(),lP=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:op\\s*?)?(?:(deze|vorige|volgende)\\s*(?:week\\s*)?)?(${aP.matchAnyPattern(Bg.WEEKDAY_DICTIONARY)})(?=\\W|$)`,"i"),cP=1,dP=2,fP=3,Kd=class extends oP.AbstractParserWithWordBoundaryChecking{innerPattern(){return lP}innerExtract(e,t){let n=t[dP].toLowerCase(),s=Bg.WEEKDAY_DICTIONARY[n],a=t[cP],o=t[fP],l=a||o;l=l||"",l=l.toLowerCase();let c=null;l=="vorige"?c="last":l=="volgende"?c="next":l=="deze"&&(c="this");let f=uP.toDayJSWeekday(e.refDate,s,c);return e.createParsingComponents().assign("weekday",s).imply("day",f.date()).imply("month",f.month()+1).imply("year",f.year())}};Zd.default=Kd});var Xg=O(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var hP=Rt(),Kg=tr(),Ko=tr(),Zg=tr(),pP=Le(),mP=Z(),yP=new RegExp(`(?:on\\s*?)?(${Ko.ORDINAL_NUMBER_PATTERN})(?:\\s*(?:tot|\\-|\\\u2013|until|through|till|\\s)\\s*(${Ko.ORDINAL_NUMBER_PATTERN}))?(?:-|/|\\s*(?:of)?\\s*)(`+pP.matchAnyPattern(Kg.MONTH_DICTIONARY)+`)(?:(?:-|/|,?\\s*)(${Zg.YEAR_PATTERN}(?![^\\s]\\d)))?(?=\\W|$)`,"i"),gP=3,Hg=1,zg=2,Vg=4,Xd=class extends mP.AbstractParserWithWordBoundaryChecking{innerPattern(){return yP}innerExtract(e,t){let n=Kg.MONTH_DICTIONARY[t[gP].toLowerCase()],s=Ko.parseOrdinalNumberPattern(t[Hg]);if(s>31)return t.index=t.index+t[Hg].length,null;let a=e.createParsingComponents({day:s,month:n});if(t[Vg]){let c=Zg.parseYear(t[Vg]);a.assign("year",c)}else{let c=hP.findYearClosestToRef(e.refDate,s,n);a.imply("year",c)}if(!t[zg])return a;let o=Ko.parseOrdinalNumberPattern(t[zg]),l=e.createParsingResult(t.index,t[0]);return l.start=a,l.end=a.clone(),l.end.assign("day",o),l}};Qd.default=Xd});var t_=O(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});var Jg=tr(),_P=Rt(),TP=Le(),e_=tr(),bP=Z(),vP=new RegExp(`(${TP.matchAnyPattern(Jg.MONTH_DICTIONARY)})\\s*(?:[,-]?\\s*(${e_.YEAR_PATTERN})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i"),wP=1,Qg=2,Jd=class extends bP.AbstractParserWithWordBoundaryChecking{innerPattern(){return vP}innerExtract(e,t){let n=e.createParsingComponents();n.imply("day",1);let s=t[wP],a=Jg.MONTH_DICTIONARY[s.toLowerCase()];if(n.assign("month",a),t[Qg]){let o=e_.parseYear(t[Qg]);n.assign("year",o)}else{let o=_P.findYearClosestToRef(e.refDate,1,a);n.imply("year",o)}return n}};ef.default=Jd});var r_=O(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});var kP=Z(),DP=new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i"),EP=1,SP=2,tf=class extends kP.AbstractParserWithWordBoundaryChecking{innerPattern(){return DP}innerExtract(e,t){let n=parseInt(t[SP]),s=parseInt(t[EP]);return e.createParsingComponents().imply("day",1).assign("month",s).assign("year",n)}};rf.default=tf});var n_=O(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});var OP=as(),nf=class extends OP.AbstractTimeExpressionParser{primaryPrefix(){return"(?:(?:om)\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|om|\\?)\\s*"}primarySuffix(){return"(?:\\s*(?:uur))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}};sf.default=nf});var a_=O(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var i_=tr(),MP=Le(),RP=Z(),PP=new RegExp(`([0-9]{4})[\\.\\/\\s](?:(${MP.matchAnyPattern(i_.MONTH_DICTIONARY)})|([0-9]{1,2}))[\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i"),xP=1,AP=2,s_=3,NP=4,af=class extends RP.AbstractParserWithWordBoundaryChecking{innerPattern(){return PP}innerExtract(e,t){let n=t[s_]?parseInt(t[s_]):i_.MONTH_DICTIONARY[t[AP].toLowerCase()];if(n<1||n>12)return null;let s=parseInt(t[xP]);return{day:parseInt(t[NP]),month:n,year:s}}};of.default=af});var o_=O(ca=>{"use strict";var CP=ca&&ca.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ca,"__esModule",{value:!0});var IP=Z(),Zo=ht(),uf=pr(),FP=CP(Pe()),LP=1,YP=2,lf=class extends IP.AbstractParserWithWordBoundaryChecking{innerPattern(e){return/(gisteren|morgen|van)(ochtend|middag|namiddag|avond|nacht)(?=\W|$)/i}innerExtract(e,t){let n=t[LP].toLowerCase(),s=t[YP].toLowerCase(),a=e.createParsingComponents(),o=FP.default(e.refDate);switch(n){case"gisteren":uf.assignSimilarDate(a,o.add(-1,"day"));break;case"van":uf.assignSimilarDate(a,o);break;case"morgen":uf.assignTheNextDay(a,o);break}switch(s){case"ochtend":a.imply("meridiem",Zo.Meridiem.AM),a.imply("hour",6);break;case"middag":a.imply("meridiem",Zo.Meridiem.AM),a.imply("hour",12);break;case"namiddag":a.imply("meridiem",Zo.Meridiem.PM),a.imply("hour",15);break;case"avond":a.imply("meridiem",Zo.Meridiem.PM),a.imply("hour",20);break}return a}};ca.default=lf});var l_=O(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});var u_=tr(),UP=tt(),WP=Z(),qP=mr(),jP=new RegExp(`(deze|vorige|afgelopen|komende|over|\\+|-)\\s*(${u_.TIME_UNITS_PATTERN})(?=\\W|$)`,"i"),cf=class extends WP.AbstractParserWithWordBoundaryChecking{innerPattern(){return jP}innerExtract(e,t){let n=t[1].toLowerCase(),s=u_.parseTimeUnits(t[2]);switch(n){case"vorige":case"afgelopen":case"-":s=qP.reverseTimeUnits(s);break}return UP.ParsingComponents.createRelativeFromReference(e.reference,s)}};df.default=cf});var f_=O(da=>{"use strict";var $P=da&&da.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(da,"__esModule",{value:!0});var d_=tr(),c_=tt(),BP=$P(Pe()),GP=Z(),HP=Le(),zP=new RegExp(`(dit|deze|komende|volgend|volgende|afgelopen|vorige)\\s*(${HP.matchAnyPattern(d_.TIME_UNIT_DICTIONARY)})(?=\\s*)(?=\\W|$)`,"i"),VP=1,KP=2,ff=class extends GP.AbstractParserWithWordBoundaryChecking{innerPattern(){return zP}innerExtract(e,t){let n=t[VP].toLowerCase(),s=t[KP].toLowerCase(),a=d_.TIME_UNIT_DICTIONARY[s];if(n=="volgend"||n=="volgende"||n=="komende"){let c={};return c[a]=1,c_.ParsingComponents.createRelativeFromReference(e.reference,c)}if(n=="afgelopen"||n=="vorige"){let c={};return c[a]=-1,c_.ParsingComponents.createRelativeFromReference(e.reference,c)}let o=e.createParsingComponents(),l=BP.default(e.reference.instant);return s.match(/week/i)?(l=l.add(-l.get("d"),"d"),o.imply("day",l.date()),o.imply("month",l.month()+1),o.imply("year",l.year())):s.match(/maand/i)?(l=l.add(-l.date()+1,"d"),o.imply("day",l.date()),o.assign("year",l.year()),o.assign("month",l.month()+1)):s.match(/jaar/i)&&(l=l.add(-l.date()+1,"d"),l=l.add(-l.month(),"month"),o.imply("day",l.date()),o.imply("month",l.month()+1),o.assign("year",l.year())),o}};da.default=ff});var h_=O(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});var pf=tr(),ZP=tt(),XP=Z(),QP=mr(),JP=new RegExp("("+pf.TIME_UNITS_PATTERN+")(?:geleden|voor|eerder)(?=(?:\\W|$))","i"),ex=new RegExp("("+pf.TIME_UNITS_PATTERN+")geleden(?=(?:\\W|$))","i"),hf=class extends XP.AbstractParserWithWordBoundaryChecking{constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?ex:JP}innerExtract(e,t){let n=pf.parseTimeUnits(t[1]),s=QP.reverseTimeUnits(n);return ZP.ParsingComponents.createRelativeFromReference(e.reference,s)}};mf.default=hf});var p_=O(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});var gf=tr(),tx=tt(),rx=Z(),nx=new RegExp("("+gf.TIME_UNITS_PATTERN+")(later|na|vanaf nu|voortaan|vooruit|uit)(?=(?:\\W|$))","i"),sx=new RegExp("("+gf.TIME_UNITS_PATTERN+")(later|vanaf nu)(?=(?:\\W|$))","i"),ix=1,yf=class extends rx.AbstractParserWithWordBoundaryChecking{constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?sx:nx}innerExtract(e,t){let n=gf.parseTimeUnits(t[ix]);return tx.ParsingComponents.createRelativeFromReference(e.reference,n)}};_f.default=yf});var __=O(kt=>{"use strict";var xt=kt&&kt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(kt,"__esModule",{value:!0});kt.createConfiguration=kt.createCasualConfiguration=kt.parseDate=kt.parse=kt.strict=kt.casual=void 0;var ax=nn(),m_=Or(),ox=xt(Ig()),ux=xt(Fg()),lx=xt(Lg()),cx=xt(Yg()),dx=xt(ls()),fx=xt($g()),hx=xt(Gg()),px=xt(Xg()),y_=xt(t_()),mx=xt(r_()),yx=xt(n_()),gx=xt(a_()),_x=xt(o_()),Tx=xt(l_()),bx=xt(f_()),vx=xt(h_()),wx=xt(p_());kt.casual=new m_.Chrono(g_());kt.strict=new m_.Chrono(Tf(!0));function kx(r,e,t){return kt.casual.parse(r,e,t)}kt.parse=kx;function Dx(r,e,t){return kt.casual.parseDate(r,e,t)}kt.parseDate=Dx;function g_(r=!0){let e=Tf(!1,r);return e.parsers.unshift(new lx.default),e.parsers.unshift(new cx.default),e.parsers.unshift(new _x.default),e.parsers.unshift(new y_.default),e.parsers.unshift(new bx.default),e.parsers.unshift(new Tx.default),e}kt.createCasualConfiguration=g_;function Tf(r=!0,e=!0){return ax.includeCommonConfiguration({parsers:[new dx.default(e),new fx.default,new px.default,new y_.default,new hx.default,new gx.default,new mx.default,new yx.default(r),new vx.default(r),new wx.default(r)],refiners:[new ux.default,new ox.default]},r)}kt.createConfiguration=Tf});var w_=O(fa=>{"use strict";var Ex=fa&&fa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(fa,"__esModule",{value:!0});var Sx=Ex(Pe()),Ox=Z(),Mx=1,T_=2,Rx=3,b_=4,v_=5,Px=6,bf=class extends Ox.AbstractParserWithWordBoundaryChecking{innerPattern(e){return new RegExp("(\u800C\u5BB6|\u7ACB(?:\u523B|\u5373)|\u5373\u523B)|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(?:\u65E5|\u5929)(?:[\\s|,|\uFF0C]*)(?:(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?","i")}innerExtract(e,t){let n=t.index,s=e.createParsingResult(n,t[0]),a=Sx.default(e.refDate),o=a;if(t[Mx])s.start.imply("hour",a.hour()),s.start.imply("minute",a.minute()),s.start.imply("second",a.second()),s.start.imply("millisecond",a.millisecond());else if(t[T_]){let l=t[T_],c=t[Rx];l=="\u660E"||l=="\u807D"?a.hour()>1&&(o=o.add(1,"day")):l=="\u6628"||l=="\u5C0B"||l=="\u7434"?o=o.add(-1,"day"):l=="\u524D"?o=o.add(-2,"day"):l=="\u5927\u524D"?o=o.add(-3,"day"):l=="\u5F8C"?o=o.add(2,"day"):l=="\u5927\u5F8C"&&(o=o.add(3,"day")),c=="\u65E9"||c=="\u671D"?s.start.imply("hour",6):c=="\u665A"&&(s.start.imply("hour",22),s.start.imply("meridiem",1))}else if(t[b_]){let c=t[b_][0];c=="\u65E9"||c=="\u671D"||c=="\u4E0A"?s.start.imply("hour",6):c=="\u4E0B"||c=="\u664F"?(s.start.imply("hour",15),s.start.imply("meridiem",1)):c=="\u4E2D"?(s.start.imply("hour",12),s.start.imply("meridiem",1)):c=="\u591C"||c=="\u665A"?(s.start.imply("hour",22),s.start.imply("meridiem",1)):c=="\u51CC"&&s.start.imply("hour",0)}else if(t[v_]){let l=t[v_];l=="\u660E"||l=="\u807D"?a.hour()>1&&(o=o.add(1,"day")):l=="\u6628"||l=="\u5C0B"||l=="\u7434"?o=o.add(-1,"day"):l=="\u524D"?o=o.add(-2,"day"):l=="\u5927\u524D"?o=o.add(-3,"day"):l=="\u5F8C"?o=o.add(2,"day"):l=="\u5927\u5F8C"&&(o=o.add(3,"day"));let c=t[Px];if(c){let f=c[0];f=="\u65E9"||f=="\u671D"||f=="\u4E0A"?s.start.imply("hour",6):f=="\u4E0B"||f=="\u664F"?(s.start.imply("hour",15),s.start.imply("meridiem",1)):f=="\u4E2D"?(s.start.imply("hour",12),s.start.imply("meridiem",1)):f=="\u591C"||f=="\u665A"?(s.start.imply("hour",22),s.start.imply("meridiem",1)):f=="\u51CC"&&s.start.imply("hour",0)}}return s.start.assign("day",o.date()),s.start.assign("month",o.month()+1),s.start.assign("year",o.year()),s}};fa.default=bf});var Js=O(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.zhStringToYear=zt.zhStringToNumber=zt.WEEKDAY_OFFSET=zt.NUMBER=void 0;zt.NUMBER={\u96F6:0,\u4E00:1,\u4E8C:2,\u5169:2,\u4E09:3,\u56DB:4,\u4E94:5,\u516D:6,\u4E03:7,\u516B:8,\u4E5D:9,\u5341:10,\u5EFF:20,\u5345:30};zt.WEEKDAY_OFFSET={\u5929:0,\u65E5:0,\u4E00:1,\u4E8C:2,\u4E09:3,\u56DB:4,\u4E94:5,\u516D:6};function xx(r){let e=0;for(let t=0;t{"use strict";var Nx=ha&&ha.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ha,"__esModule",{value:!0});var Cx=Nx(Pe()),Ix=Z(),fs=Js(),vf=1,k_=2,wf=3,kf=class extends Ix.AbstractParserWithWordBoundaryChecking{innerPattern(){return new RegExp("(\\d{2,4}|["+Object.keys(fs.NUMBER).join("")+"]{4}|["+Object.keys(fs.NUMBER).join("")+"]{2})?(?:\\s*)(?:\u5E74)?(?:[\\s|,|\uFF0C]*)(\\d{1,2}|["+Object.keys(fs.NUMBER).join("")+"]{1,2})(?:\\s*)(?:\u6708)(?:\\s*)(\\d{1,2}|["+Object.keys(fs.NUMBER).join("")+"]{1,2})?(?:\\s*)(?:\u65E5|\u865F)?")}innerExtract(e,t){let n=Cx.default(e.refDate),s=e.createParsingResult(t.index,t[0]),a=parseInt(t[k_]);if(isNaN(a)&&(a=fs.zhStringToNumber(t[k_])),s.start.assign("month",a),t[wf]){let o=parseInt(t[wf]);isNaN(o)&&(o=fs.zhStringToNumber(t[wf])),s.start.assign("day",o)}else s.start.imply("day",n.date());if(t[vf]){let o=parseInt(t[vf]);isNaN(o)&&(o=fs.zhStringToYear(t[vf])),s.start.assign("year",o)}else s.start.imply("year",n.year());return s}};ha.default=kf});var S_=O(pa=>{"use strict";var Fx=pa&&pa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(pa,"__esModule",{value:!0});var Lx=Fx(Pe()),Yx=Z(),E_=Js(),Ux=new RegExp("(\\d+|["+Object.keys(E_.NUMBER).join("")+"]+|\u534A|\u5E7E)(?:\\s*)(?:\u500B)?(\u79D2(?:\u9418)?|\u5206\u9418|\u5C0F\u6642|\u9418|\u65E5|\u5929|\u661F\u671F|\u79AE\u62DC|\u6708|\u5E74)(?:(?:\u4E4B|\u904E)?\u5F8C|(?:\u4E4B)?\u5167)","i"),Df=1,Wx=2,Ef=class extends Yx.AbstractParserWithWordBoundaryChecking{innerPattern(){return Ux}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=parseInt(t[Df]);if(isNaN(s)&&(s=E_.zhStringToNumber(t[Df])),isNaN(s)){let c=t[Df];if(c==="\u5E7E")s=3;else if(c==="\u534A")s=.5;else return null}let a=Lx.default(e.refDate),l=t[Wx][0];return l.match(/[日天星禮月年]/)?(l=="\u65E5"||l=="\u5929"?a=a.add(s,"d"):l=="\u661F"||l=="\u79AE"?a=a.add(s*7,"d"):l=="\u6708"?a=a.add(s,"month"):l=="\u5E74"&&(a=a.add(s,"year")),n.start.assign("year",a.year()),n.start.assign("month",a.month()+1),n.start.assign("day",a.date()),n):(l=="\u79D2"?a=a.add(s,"second"):l=="\u5206"?a=a.add(s,"minute"):(l=="\u5C0F"||l=="\u9418")&&(a=a.add(s,"hour")),n.start.imply("year",a.year()),n.start.imply("month",a.month()+1),n.start.imply("day",a.date()),n.start.assign("hour",a.hour()),n.start.assign("minute",a.minute()),n.start.assign("second",a.second()),n)}};pa.default=Ef});var M_=O(ma=>{"use strict";var qx=ma&&ma.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ma,"__esModule",{value:!0});var jx=qx(Pe()),$x=Z(),O_=Js(),Bx=new RegExp("(?\u4E0A|\u4ECA|\u4E0B|\u9019|\u5462)(?:\u500B)?(?:\u661F\u671F|\u79AE\u62DC|\u9031)(?"+Object.keys(O_.WEEKDAY_OFFSET).join("|")+")"),Sf=class extends $x.AbstractParserWithWordBoundaryChecking{innerPattern(){return Bx}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=t.groups.weekday,a=O_.WEEKDAY_OFFSET[s];if(a===void 0)return null;let o=null,l=t.groups.prefix;l=="\u4E0A"?o="last":l=="\u4E0B"?o="next":(l=="\u4ECA"||l=="\u9019"||l=="\u5462")&&(o="this");let c=jx.default(e.refDate),f=!1,m=c.day();return o=="last"||o=="past"?(c=c.day(a-7),f=!0):o=="next"?(c=c.day(a+7),f=!0):o=="this"?c=c.day(a):Math.abs(a-7-m){"use strict";var Gx=ya&&ya.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ya,"__esModule",{value:!0});var Hx=Gx(Pe()),zx=Z(),_r=Js(),Vx=new RegExp("(?:\u7531|\u5F9E|\u81EA)?(?:(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(?:\u65E5|\u5929)(?:[\\s,\uFF0C]*)(?:(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?)?(?:[\\s,\uFF0C]*)(?:(\\d+|["+Object.keys(_r.NUMBER).join("")+"]+)(?:\\s*)(?:\u9EDE|\u6642|:|\uFF1A)(?:\\s*)(\\d+|\u534A|\u6B63|\u6574|["+Object.keys(_r.NUMBER).join("")+"]+)?(?:\\s*)(?:\u5206|:|\uFF1A)?(?:\\s*)(\\d+|["+Object.keys(_r.NUMBER).join("")+"]+)?(?:\\s*)(?:\u79D2)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),Kx=new RegExp("(?:^\\s*(?:\u5230|\u81F3|\\-|\\\u2013|\\~|\\\u301C)\\s*)(?:(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(?:\u65E5|\u5929)(?:[\\s,\uFF0C]*)(?:(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?)?(?:[\\s,\uFF0C]*)(?:(\\d+|["+Object.keys(_r.NUMBER).join("")+"]+)(?:\\s*)(?:\u9EDE|\u6642|:|\uFF1A)(?:\\s*)(\\d+|\u534A|\u6B63|\u6574|["+Object.keys(_r.NUMBER).join("")+"]+)?(?:\\s*)(?:\u5206|:|\uFF1A)?(?:\\s*)(\\d+|["+Object.keys(_r.NUMBER).join("")+"]+)?(?:\\s*)(?:\u79D2)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),Xo=1,Qo=2,Jo=3,eu=4,tu=5,ru=6,gr=7,ei=8,nu=9,Of=class extends zx.AbstractParserWithWordBoundaryChecking{innerPattern(){return Vx}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=Hx.default(e.refDate),s=e.createParsingResult(t.index,t[0]),a=n.clone();if(t[Xo]){var o=t[Xo];o=="\u660E"||o=="\u807D"?n.hour()>1&&a.add(1,"day"):o=="\u6628"||o=="\u5C0B"||o=="\u7434"?a.add(-1,"day"):o=="\u524D"?a.add(-2,"day"):o=="\u5927\u524D"?a.add(-3,"day"):o=="\u5F8C"?a.add(2,"day"):o=="\u5927\u5F8C"&&a.add(3,"day"),s.start.assign("day",a.date()),s.start.assign("month",a.month()+1),s.start.assign("year",a.year())}else if(t[eu]){var l=t[eu];l=="\u660E"||l=="\u807D"?a.add(1,"day"):l=="\u6628"||l=="\u5C0B"||l=="\u7434"?a.add(-1,"day"):l=="\u524D"?a.add(-2,"day"):l=="\u5927\u524D"?a.add(-3,"day"):l=="\u5F8C"?a.add(2,"day"):l=="\u5927\u5F8C"&&a.add(3,"day"),s.start.assign("day",a.date()),s.start.assign("month",a.month()+1),s.start.assign("year",a.year())}else s.start.imply("day",a.date()),s.start.imply("month",a.month()+1),s.start.imply("year",a.year());let c=0,f=0,m=-1;if(t[ei]){var g=parseInt(t[ei]);if(isNaN(g)&&(g=_r.zhStringToNumber(t[ei])),g>=60)return null;s.start.assign("second",g)}if(c=parseInt(t[ru]),isNaN(c)&&(c=_r.zhStringToNumber(t[ru])),t[gr]?t[gr]=="\u534A"?f=30:t[gr]=="\u6B63"||t[gr]=="\u6574"?f=0:(f=parseInt(t[gr]),isNaN(f)&&(f=_r.zhStringToNumber(t[gr]))):c>100&&(f=c%100,c=Math.floor(c/100)),f>=60||c>24)return null;if(c>=12&&(m=1),t[nu]){if(c>12)return null;var T=t[nu][0].toLowerCase();T=="a"&&(m=0,c==12&&(c=0)),T=="p"&&(m=1,c!=12&&(c+=12))}else if(t[Qo]){var E=t[Qo],v=E[0];v=="\u671D"||v=="\u65E9"?(m=0,c==12&&(c=0)):v=="\u665A"&&(m=1,c!=12&&(c+=12))}else if(t[Jo]){var R=t[Jo],C=R[0];C=="\u4E0A"||C=="\u671D"||C=="\u65E9"||C=="\u51CC"?(m=0,c==12&&(c=0)):(C=="\u4E0B"||C=="\u664F"||C=="\u665A")&&(m=1,c!=12&&(c+=12))}else if(t[tu]){var q=t[tu],$=q[0];$=="\u4E0A"||$=="\u671D"||$=="\u65E9"||$=="\u51CC"?(m=0,c==12&&(c=0)):($=="\u4E0B"||$=="\u664F"||$=="\u665A")&&(m=1,c!=12&&(c+=12))}if(s.start.assign("hour",c),s.start.assign("minute",f),m>=0?s.start.assign("meridiem",m):c<12?s.start.imply("meridiem",0):s.start.imply("meridiem",1),t=Kx.exec(e.text.substring(s.index+s.text.length)),!t)return s.text.match(/^\d+$/)?null:s;let B=a.clone();if(s.end=e.createParsingComponents(),t[Xo]){var o=t[Xo];o=="\u660E"||o=="\u807D"?n.hour()>1&&B.add(1,"day"):o=="\u6628"||o=="\u5C0B"||o=="\u7434"?B.add(-1,"day"):o=="\u524D"?B.add(-2,"day"):o=="\u5927\u524D"?B.add(-3,"day"):o=="\u5F8C"?B.add(2,"day"):o=="\u5927\u5F8C"&&B.add(3,"day"),s.end.assign("day",B.date()),s.end.assign("month",B.month()+1),s.end.assign("year",B.year())}else if(t[eu]){var l=t[eu];l=="\u660E"||l=="\u807D"?B.add(1,"day"):l=="\u6628"||l=="\u5C0B"||l=="\u7434"?B.add(-1,"day"):l=="\u524D"?B.add(-2,"day"):l=="\u5927\u524D"?B.add(-3,"day"):l=="\u5F8C"?B.add(2,"day"):l=="\u5927\u5F8C"&&B.add(3,"day"),s.end.assign("day",B.date()),s.end.assign("month",B.month()+1),s.end.assign("year",B.year())}else s.end.imply("day",B.date()),s.end.imply("month",B.month()+1),s.end.imply("year",B.year());if(c=0,f=0,m=-1,t[ei]){var g=parseInt(t[ei]);if(isNaN(g)&&(g=_r.zhStringToNumber(t[ei])),g>=60)return null;s.end.assign("second",g)}if(c=parseInt(t[ru]),isNaN(c)&&(c=_r.zhStringToNumber(t[ru])),t[gr]?t[gr]=="\u534A"?f=30:t[gr]=="\u6B63"||t[gr]=="\u6574"?f=0:(f=parseInt(t[gr]),isNaN(f)&&(f=_r.zhStringToNumber(t[gr]))):c>100&&(f=c%100,c=Math.floor(c/100)),f>=60||c>24)return null;if(c>=12&&(m=1),t[nu]){if(c>12)return null;var T=t[nu][0].toLowerCase();T=="a"&&(m=0,c==12&&(c=0)),T=="p"&&(m=1,c!=12&&(c+=12)),s.start.isCertain("meridiem")||(m==0?(s.start.imply("meridiem",0),s.start.get("hour")==12&&s.start.assign("hour",0)):(s.start.imply("meridiem",1),s.start.get("hour")!=12&&s.start.assign("hour",s.start.get("hour")+12)))}else if(t[Qo]){var E=t[Qo],v=E[0];v=="\u671D"||v=="\u65E9"?(m=0,c==12&&(c=0)):v=="\u665A"&&(m=1,c!=12&&(c+=12))}else if(t[Jo]){var R=t[Jo],C=R[0];C=="\u4E0A"||C=="\u671D"||C=="\u65E9"||C=="\u51CC"?(m=0,c==12&&(c=0)):(C=="\u4E0B"||C=="\u664F"||C=="\u665A")&&(m=1,c!=12&&(c+=12))}else if(t[tu]){var q=t[tu],$=q[0];$=="\u4E0A"||$=="\u671D"||$=="\u65E9"||$=="\u51CC"?(m=0,c==12&&(c=0)):($=="\u4E0B"||$=="\u664F"||$=="\u665A")&&(m=1,c!=12&&(c+=12))}return s.text=s.text+t[0],s.end.assign("hour",c),s.end.assign("minute",f),m>=0?s.end.assign("meridiem",m):s.start.isCertain("meridiem")&&s.start.get("meridiem")==1&&s.start.get("hour")>c?s.end.imply("meridiem",0):c>12&&s.end.imply("meridiem",1),s.end.date().getTime(){"use strict";var Zx=ga&&ga.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ga,"__esModule",{value:!0});var Xx=Zx(Pe()),Qx=Z(),P_=Js(),Jx=new RegExp("(?:\u661F\u671F|\u79AE\u62DC|\u9031)(?"+Object.keys(P_.WEEKDAY_OFFSET).join("|")+")"),Mf=class extends Qx.AbstractParserWithWordBoundaryChecking{innerPattern(){return Jx}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=t.groups.weekday,a=P_.WEEKDAY_OFFSET[s];if(a===void 0)return null;let o=Xx.default(e.refDate),l=!1,c=o.day();return Math.abs(a-7-c){"use strict";var eA=_a&&_a.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_a,"__esModule",{value:!0});var tA=eA(Ur()),Rf=class extends tA.default{patternBetween(){return/^\s*(至|到|\-|\~|~|-|ー)\s*$/i}};_a.default=Rf});var N_=O(Ta=>{"use strict";var rA=Ta&&Ta.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ta,"__esModule",{value:!0});var nA=rA(rn()),Pf=class extends nA.default{patternBetween(){return/^\s*$/i}};Ta.default=Pf});var C_=O(ut=>{"use strict";var ln=ut&&ut.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ut,"__esModule",{value:!0});ut.createConfiguration=ut.createCasualConfiguration=ut.parseDate=ut.parse=ut.strict=ut.casual=ut.hant=void 0;var xf=Or(),sA=ln(No()),iA=nn(),aA=ln(w_()),oA=ln(D_()),uA=ln(S_()),lA=ln(M_()),cA=ln(R_()),dA=ln(x_()),fA=ln(A_()),hA=ln(N_());ut.hant=new xf.Chrono(Af());ut.casual=new xf.Chrono(Af());ut.strict=new xf.Chrono(Nf());function pA(r,e,t){return ut.casual.parse(r,e,t)}ut.parse=pA;function mA(r,e,t){return ut.casual.parseDate(r,e,t)}ut.parseDate=mA;function Af(){let r=Nf();return r.parsers.unshift(new aA.default),r}ut.createCasualConfiguration=Af;function Nf(){let r=iA.includeCommonConfiguration({parsers:[new oA.default,new lA.default,new dA.default,new cA.default,new uA.default],refiners:[new fA.default,new hA.default]});return r.refiners=r.refiners.filter(e=>!(e instanceof sA.default)),r}ut.createConfiguration=Nf});var Y_=O(ba=>{"use strict";var yA=ba&&ba.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ba,"__esModule",{value:!0});var gA=yA(Pe()),_A=Z(),TA=1,I_=2,bA=3,F_=4,L_=5,vA=6,Cf=class extends _A.AbstractParserWithWordBoundaryChecking{innerPattern(e){return new RegExp("(\u73B0\u5728|\u7ACB(?:\u523B|\u5373)|\u5373\u523B)|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(\u65E9|\u665A)|(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(?:\u65E5|\u5929)(?:[\\s|,|\uFF0C]*)(?:(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?","i")}innerExtract(e,t){let n=t.index,s=e.createParsingResult(n,t[0]),a=gA.default(e.refDate),o=a;if(t[TA])s.start.imply("hour",a.hour()),s.start.imply("minute",a.minute()),s.start.imply("second",a.second()),s.start.imply("millisecond",a.millisecond());else if(t[I_]){let l=t[I_],c=t[bA];l=="\u660E"?a.hour()>1&&(o=o.add(1,"day")):l=="\u6628"?o=o.add(-1,"day"):l=="\u524D"?o=o.add(-2,"day"):l=="\u5927\u524D"?o=o.add(-3,"day"):l=="\u540E"?o=o.add(2,"day"):l=="\u5927\u540E"&&(o=o.add(3,"day")),c=="\u65E9"?s.start.imply("hour",6):c=="\u665A"&&(s.start.imply("hour",22),s.start.imply("meridiem",1))}else if(t[F_]){let c=t[F_][0];c=="\u65E9"||c=="\u4E0A"?s.start.imply("hour",6):c=="\u4E0B"?(s.start.imply("hour",15),s.start.imply("meridiem",1)):c=="\u4E2D"?(s.start.imply("hour",12),s.start.imply("meridiem",1)):c=="\u591C"||c=="\u665A"?(s.start.imply("hour",22),s.start.imply("meridiem",1)):c=="\u51CC"&&s.start.imply("hour",0)}else if(t[L_]){let l=t[L_];l=="\u660E"?a.hour()>1&&(o=o.add(1,"day")):l=="\u6628"?o=o.add(-1,"day"):l=="\u524D"?o=o.add(-2,"day"):l=="\u5927\u524D"?o=o.add(-3,"day"):l=="\u540E"?o=o.add(2,"day"):l=="\u5927\u540E"&&(o=o.add(3,"day"));let c=t[vA];if(c){let f=c[0];f=="\u65E9"||f=="\u4E0A"?s.start.imply("hour",6):f=="\u4E0B"?(s.start.imply("hour",15),s.start.imply("meridiem",1)):f=="\u4E2D"?(s.start.imply("hour",12),s.start.imply("meridiem",1)):f=="\u591C"||f=="\u665A"?(s.start.imply("hour",22),s.start.imply("meridiem",1)):f=="\u51CC"&&s.start.imply("hour",0)}}return s.start.assign("day",o.date()),s.start.assign("month",o.month()+1),s.start.assign("year",o.year()),s}};ba.default=Cf});var ti=O(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.zhStringToYear=Vt.zhStringToNumber=Vt.WEEKDAY_OFFSET=Vt.NUMBER=void 0;Vt.NUMBER={\u96F6:0,"\u3007":0,\u4E00:1,\u4E8C:2,\u4E24:2,\u4E09:3,\u56DB:4,\u4E94:5,\u516D:6,\u4E03:7,\u516B:8,\u4E5D:9,\u5341:10};Vt.WEEKDAY_OFFSET={\u5929:0,\u65E5:0,\u4E00:1,\u4E8C:2,\u4E09:3,\u56DB:4,\u4E94:5,\u516D:6};function wA(r){let e=0;for(let t=0;t{"use strict";var DA=va&&va.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(va,"__esModule",{value:!0});var EA=DA(Pe()),SA=Z(),hs=ti(),If=1,U_=2,Ff=3,Lf=class extends SA.AbstractParserWithWordBoundaryChecking{innerPattern(){return new RegExp("(\\d{2,4}|["+Object.keys(hs.NUMBER).join("")+"]{4}|["+Object.keys(hs.NUMBER).join("")+"]{2})?(?:\\s*)(?:\u5E74)?(?:[\\s|,|\uFF0C]*)(\\d{1,2}|["+Object.keys(hs.NUMBER).join("")+"]{1,3})(?:\\s*)(?:\u6708)(?:\\s*)(\\d{1,2}|["+Object.keys(hs.NUMBER).join("")+"]{1,3})?(?:\\s*)(?:\u65E5|\u53F7)?")}innerExtract(e,t){let n=EA.default(e.refDate),s=e.createParsingResult(t.index,t[0]),a=parseInt(t[U_]);if(isNaN(a)&&(a=hs.zhStringToNumber(t[U_])),s.start.assign("month",a),t[Ff]){let o=parseInt(t[Ff]);isNaN(o)&&(o=hs.zhStringToNumber(t[Ff])),s.start.assign("day",o)}else s.start.imply("day",n.date());if(t[If]){let o=parseInt(t[If]);isNaN(o)&&(o=hs.zhStringToYear(t[If])),s.start.assign("year",o)}else s.start.imply("year",n.year());return s}};va.default=Lf});var j_=O(wa=>{"use strict";var OA=wa&&wa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wa,"__esModule",{value:!0});var MA=OA(Pe()),RA=Z(),q_=ti(),PA=new RegExp("(\\d+|["+Object.keys(q_.NUMBER).join("")+"]+|\u534A|\u51E0)(?:\\s*)(?:\u4E2A)?(\u79D2(?:\u949F)?|\u5206\u949F|\u5C0F\u65F6|\u949F|\u65E5|\u5929|\u661F\u671F|\u793C\u62DC|\u6708|\u5E74)(?:(?:\u4E4B|\u8FC7)?\u540E|(?:\u4E4B)?\u5185)","i"),Yf=1,xA=2,Uf=class extends RA.AbstractParserWithWordBoundaryChecking{innerPattern(){return PA}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=parseInt(t[Yf]);if(isNaN(s)&&(s=q_.zhStringToNumber(t[Yf])),isNaN(s)){let c=t[Yf];if(c==="\u51E0")s=3;else if(c==="\u534A")s=.5;else return null}let a=MA.default(e.refDate),l=t[xA][0];return l.match(/[日天星礼月年]/)?(l=="\u65E5"||l=="\u5929"?a=a.add(s,"d"):l=="\u661F"||l=="\u793C"?a=a.add(s*7,"d"):l=="\u6708"?a=a.add(s,"month"):l=="\u5E74"&&(a=a.add(s,"year")),n.start.assign("year",a.year()),n.start.assign("month",a.month()+1),n.start.assign("day",a.date()),n):(l=="\u79D2"?a=a.add(s,"second"):l=="\u5206"?a=a.add(s,"minute"):(l=="\u5C0F"||l=="\u949F")&&(a=a.add(s,"hour")),n.start.imply("year",a.year()),n.start.imply("month",a.month()+1),n.start.imply("day",a.date()),n.start.assign("hour",a.hour()),n.start.assign("minute",a.minute()),n.start.assign("second",a.second()),n)}};wa.default=Uf});var B_=O(ka=>{"use strict";var AA=ka&&ka.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ka,"__esModule",{value:!0});var NA=AA(Pe()),CA=Z(),$_=ti(),IA=new RegExp("(?\u4E0A|\u4E0B|\u8FD9)(?:\u4E2A)?(?:\u661F\u671F|\u793C\u62DC|\u5468)(?"+Object.keys($_.WEEKDAY_OFFSET).join("|")+")"),Wf=class extends CA.AbstractParserWithWordBoundaryChecking{innerPattern(){return IA}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=t.groups.weekday,a=$_.WEEKDAY_OFFSET[s];if(a===void 0)return null;let o=null,l=t.groups.prefix;l=="\u4E0A"?o="last":l=="\u4E0B"?o="next":l=="\u8FD9"&&(o="this");let c=NA.default(e.refDate),f=!1,m=c.day();return o=="last"||o=="past"?(c=c.day(a-7),f=!0):o=="next"?(c=c.day(a+7),f=!0):o=="this"?c=c.day(a):Math.abs(a-7-m){"use strict";var FA=Da&&Da.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Da,"__esModule",{value:!0});var LA=FA(Pe()),YA=Z(),br=ti(),UA=new RegExp("(?:\u4ECE|\u81EA)?(?:(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(?:\u65E5|\u5929)(?:[\\s,\uFF0C]*)(?:(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?)?(?:[\\s,\uFF0C]*)(?:(\\d+|["+Object.keys(br.NUMBER).join("")+"]+)(?:\\s*)(?:\u70B9|\u65F6|:|\uFF1A)(?:\\s*)(\\d+|\u534A|\u6B63|\u6574|["+Object.keys(br.NUMBER).join("")+"]+)?(?:\\s*)(?:\u5206|:|\uFF1A)?(?:\\s*)(\\d+|["+Object.keys(br.NUMBER).join("")+"]+)?(?:\\s*)(?:\u79D2)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),WA=new RegExp("(?:^\\s*(?:\u5230|\u81F3|\\-|\\\u2013|\\~|\\\u301C)\\s*)(?:(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(?:\u65E5|\u5929)(?:[\\s,\uFF0C]*)(?:(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?)?(?:[\\s,\uFF0C]*)(?:(\\d+|["+Object.keys(br.NUMBER).join("")+"]+)(?:\\s*)(?:\u70B9|\u65F6|:|\uFF1A)(?:\\s*)(\\d+|\u534A|\u6B63|\u6574|["+Object.keys(br.NUMBER).join("")+"]+)?(?:\\s*)(?:\u5206|:|\uFF1A)?(?:\\s*)(\\d+|["+Object.keys(br.NUMBER).join("")+"]+)?(?:\\s*)(?:\u79D2)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),su=1,iu=2,au=3,ou=4,uu=5,lu=6,Tr=7,ri=8,cu=9,qf=class extends YA.AbstractParserWithWordBoundaryChecking{innerPattern(){return UA}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=LA.default(e.refDate),s=e.createParsingResult(t.index,t[0]),a=n.clone();if(t[su]){let m=t[su];m=="\u660E"?n.hour()>1&&a.add(1,"day"):m=="\u6628"?a.add(-1,"day"):m=="\u524D"?a.add(-2,"day"):m=="\u5927\u524D"?a.add(-3,"day"):m=="\u540E"?a.add(2,"day"):m=="\u5927\u540E"&&a.add(3,"day"),s.start.assign("day",a.date()),s.start.assign("month",a.month()+1),s.start.assign("year",a.year())}else if(t[ou]){let m=t[ou];m=="\u660E"?a.add(1,"day"):m=="\u6628"?a.add(-1,"day"):m=="\u524D"?a.add(-2,"day"):m=="\u5927\u524D"?a.add(-3,"day"):m=="\u540E"?a.add(2,"day"):m=="\u5927\u540E"&&a.add(3,"day"),s.start.assign("day",a.date()),s.start.assign("month",a.month()+1),s.start.assign("year",a.year())}else s.start.imply("day",a.date()),s.start.imply("month",a.month()+1),s.start.imply("year",a.year());let o=0,l=0,c=-1;if(t[ri]){let m=parseInt(t[ri]);if(isNaN(m)&&(m=br.zhStringToNumber(t[ri])),m>=60)return null;s.start.assign("second",m)}if(o=parseInt(t[lu]),isNaN(o)&&(o=br.zhStringToNumber(t[lu])),t[Tr]?t[Tr]=="\u534A"?l=30:t[Tr]=="\u6B63"||t[Tr]=="\u6574"?l=0:(l=parseInt(t[Tr]),isNaN(l)&&(l=br.zhStringToNumber(t[Tr]))):o>100&&(l=o%100,o=Math.floor(o/100)),l>=60||o>24)return null;if(o>=12&&(c=1),t[cu]){if(o>12)return null;let m=t[cu][0].toLowerCase();m=="a"&&(c=0,o==12&&(o=0)),m=="p"&&(c=1,o!=12&&(o+=12))}else if(t[iu]){let g=t[iu][0];g=="\u65E9"?(c=0,o==12&&(o=0)):g=="\u665A"&&(c=1,o!=12&&(o+=12))}else if(t[au]){let g=t[au][0];g=="\u4E0A"||g=="\u65E9"||g=="\u51CC"?(c=0,o==12&&(o=0)):(g=="\u4E0B"||g=="\u665A")&&(c=1,o!=12&&(o+=12))}else if(t[uu]){let g=t[uu][0];g=="\u4E0A"||g=="\u65E9"||g=="\u51CC"?(c=0,o==12&&(o=0)):(g=="\u4E0B"||g=="\u665A")&&(c=1,o!=12&&(o+=12))}if(s.start.assign("hour",o),s.start.assign("minute",l),c>=0?s.start.assign("meridiem",c):o<12?s.start.imply("meridiem",0):s.start.imply("meridiem",1),t=WA.exec(e.text.substring(s.index+s.text.length)),!t)return s.text.match(/^\d+$/)?null:s;let f=a.clone();if(s.end=e.createParsingComponents(),t[su]){let m=t[su];m=="\u660E"?n.hour()>1&&f.add(1,"day"):m=="\u6628"?f.add(-1,"day"):m=="\u524D"?f.add(-2,"day"):m=="\u5927\u524D"?f.add(-3,"day"):m=="\u540E"?f.add(2,"day"):m=="\u5927\u540E"&&f.add(3,"day"),s.end.assign("day",f.date()),s.end.assign("month",f.month()+1),s.end.assign("year",f.year())}else if(t[ou]){let m=t[ou];m=="\u660E"?f.add(1,"day"):m=="\u6628"?f.add(-1,"day"):m=="\u524D"?f.add(-2,"day"):m=="\u5927\u524D"?f.add(-3,"day"):m=="\u540E"?f.add(2,"day"):m=="\u5927\u540E"&&f.add(3,"day"),s.end.assign("day",f.date()),s.end.assign("month",f.month()+1),s.end.assign("year",f.year())}else s.end.imply("day",f.date()),s.end.imply("month",f.month()+1),s.end.imply("year",f.year());if(o=0,l=0,c=-1,t[ri]){let m=parseInt(t[ri]);if(isNaN(m)&&(m=br.zhStringToNumber(t[ri])),m>=60)return null;s.end.assign("second",m)}if(o=parseInt(t[lu]),isNaN(o)&&(o=br.zhStringToNumber(t[lu])),t[Tr]?t[Tr]=="\u534A"?l=30:t[Tr]=="\u6B63"||t[Tr]=="\u6574"?l=0:(l=parseInt(t[Tr]),isNaN(l)&&(l=br.zhStringToNumber(t[Tr]))):o>100&&(l=o%100,o=Math.floor(o/100)),l>=60||o>24)return null;if(o>=12&&(c=1),t[cu]){if(o>12)return null;let m=t[cu][0].toLowerCase();m=="a"&&(c=0,o==12&&(o=0)),m=="p"&&(c=1,o!=12&&(o+=12)),s.start.isCertain("meridiem")||(c==0?(s.start.imply("meridiem",0),s.start.get("hour")==12&&s.start.assign("hour",0)):(s.start.imply("meridiem",1),s.start.get("hour")!=12&&s.start.assign("hour",s.start.get("hour")+12)))}else if(t[iu]){let g=t[iu][0];g=="\u65E9"?(c=0,o==12&&(o=0)):g=="\u665A"&&(c=1,o!=12&&(o+=12))}else if(t[au]){let g=t[au][0];g=="\u4E0A"||g=="\u65E9"||g=="\u51CC"?(c=0,o==12&&(o=0)):(g=="\u4E0B"||g=="\u665A")&&(c=1,o!=12&&(o+=12))}else if(t[uu]){let g=t[uu][0];g=="\u4E0A"||g=="\u65E9"||g=="\u51CC"?(c=0,o==12&&(o=0)):(g=="\u4E0B"||g=="\u665A")&&(c=1,o!=12&&(o+=12))}return s.text=s.text+t[0],s.end.assign("hour",o),s.end.assign("minute",l),c>=0?s.end.assign("meridiem",c):s.start.isCertain("meridiem")&&s.start.get("meridiem")==1&&s.start.get("hour")>o?s.end.imply("meridiem",0):o>12&&s.end.imply("meridiem",1),s.end.date().getTime(){"use strict";var qA=Ea&&Ea.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ea,"__esModule",{value:!0});var jA=qA(Pe()),$A=Z(),H_=ti(),BA=new RegExp("(?:\u661F\u671F|\u793C\u62DC|\u5468)(?"+Object.keys(H_.WEEKDAY_OFFSET).join("|")+")"),jf=class extends $A.AbstractParserWithWordBoundaryChecking{innerPattern(){return BA}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=t.groups.weekday,a=H_.WEEKDAY_OFFSET[s];if(a===void 0)return null;let o=jA.default(e.refDate),l=!1,c=o.day();return Math.abs(a-7-c){"use strict";var GA=Sa&&Sa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Sa,"__esModule",{value:!0});var HA=GA(Ur()),$f=class extends HA.default{patternBetween(){return/^\s*(至|到|-|~|~|-|ー)\s*$/i}};Sa.default=$f});var K_=O(Oa=>{"use strict";var zA=Oa&&Oa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Oa,"__esModule",{value:!0});var VA=zA(rn()),Bf=class extends VA.default{patternBetween(){return/^\s*$/i}};Oa.default=Bf});var Z_=O(lt=>{"use strict";var cn=lt&<.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(lt,"__esModule",{value:!0});lt.createConfiguration=lt.createCasualConfiguration=lt.parseDate=lt.parse=lt.strict=lt.casual=lt.hans=void 0;var Gf=Or(),KA=cn(No()),ZA=nn(),XA=cn(Y_()),QA=cn(W_()),JA=cn(j_()),eN=cn(B_()),tN=cn(G_()),rN=cn(z_()),nN=cn(V_()),sN=cn(K_());lt.hans=new Gf.Chrono(Hf());lt.casual=new Gf.Chrono(Hf());lt.strict=new Gf.Chrono(zf());function iN(r,e,t){return lt.casual.parse(r,e,t)}lt.parse=iN;function aN(r,e,t){return lt.casual.parseDate(r,e,t)}lt.parseDate=aN;function Hf(){let r=zf();return r.parsers.unshift(new XA.default),r}lt.createCasualConfiguration=Hf;function zf(){let r=ZA.includeCommonConfiguration({parsers:[new QA.default,new eN.default,new rN.default,new tN.default,new JA.default],refiners:[new nN.default,new sN.default]});return r.refiners=r.refiners.filter(e=>!(e instanceof KA.default)),r}lt.createConfiguration=zf});var Q_=O(rr=>{"use strict";var X_=rr&&rr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),oN=rr&&rr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),uN=rr&&rr.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&X_(e,r,t)},lN=rr&&rr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&X_(e,r,t);return oN(e,r),e};Object.defineProperty(rr,"__esModule",{value:!0});rr.hans=void 0;uN(C_(),rr);rr.hans=lN(Z_())});var Kt=O(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.parseTimeUnits=he.TIME_UNITS_PATTERN=he.parseYear=he.YEAR_PATTERN=he.parseOrdinalNumberPattern=he.ORDINAL_NUMBER_PATTERN=he.parseNumberPattern=he.NUMBER_PATTERN=he.TIME_UNIT_DICTIONARY=he.ORDINAL_WORD_DICTIONARY=he.INTEGER_WORD_DICTIONARY=he.MONTH_DICTIONARY=he.FULL_MONTH_NAME_DICTIONARY=he.WEEKDAY_DICTIONARY=he.REGEX_PARTS=void 0;var du=Le(),cN=Rt();he.REGEX_PARTS={leftBoundary:"([^\\p{L}\\p{N}_]|^)",rightBoundary:"(?=[^\\p{L}\\p{N}_]|$)",flags:"iu"};he.WEEKDAY_DICTIONARY={\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435:0,\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u044F:0,\u0432\u0441\u043A:0,"\u0432\u0441\u043A.":0,\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A:1,\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A\u0430:1,\u043F\u043D:1,"\u043F\u043D.":1,\u0432\u0442\u043E\u0440\u043D\u0438\u043A:2,\u0432\u0442\u043E\u0440\u043D\u0438\u043A\u0430:2,\u0432\u0442:2,"\u0432\u0442.":2,\u0441\u0440\u0435\u0434\u0430:3,\u0441\u0440\u0435\u0434\u044B:3,\u0441\u0440\u0435\u0434\u0443:3,\u0441\u0440:3,"\u0441\u0440.":3,\u0447\u0435\u0442\u0432\u0435\u0440\u0433:4,\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430:4,\u0447\u0442:4,"\u0447\u0442.":4,\u043F\u044F\u0442\u043D\u0438\u0446\u0430:5,\u043F\u044F\u0442\u043D\u0438\u0446\u0443:5,\u043F\u044F\u0442\u043D\u0438\u0446\u044B:5,\u043F\u0442:5,"\u043F\u0442.":5,\u0441\u0443\u0431\u0431\u043E\u0442\u0430:6,\u0441\u0443\u0431\u0431\u043E\u0442\u0443:6,\u0441\u0443\u0431\u0431\u043E\u0442\u044B:6,\u0441\u0431:6,"\u0441\u0431.":6};he.FULL_MONTH_NAME_DICTIONARY={\u044F\u043D\u0432\u0430\u0440\u044C:1,\u044F\u043D\u0432\u0430\u0440\u044F:1,\u044F\u043D\u0432\u0430\u0440\u0435:1,\u0444\u0435\u0432\u0440\u044F\u043B\u044C:2,\u0444\u0435\u0432\u0440\u044F\u043B\u044F:2,\u0444\u0435\u0432\u0440\u044F\u043B\u0435:2,\u043C\u0430\u0440\u0442:3,\u043C\u0430\u0440\u0442\u0430:3,\u043C\u0430\u0440\u0442\u0435:3,\u0430\u043F\u0440\u0435\u043B\u044C:4,\u0430\u043F\u0440\u0435\u043B\u044F:4,\u0430\u043F\u0440\u0435\u043B\u0435:4,\u043C\u0430\u0439:5,\u043C\u0430\u044F:5,\u043C\u0430\u0435:5,\u0438\u044E\u043D\u044C:6,\u0438\u044E\u043D\u044F:6,\u0438\u044E\u043D\u0435:6,\u0438\u044E\u043B\u044C:7,\u0438\u044E\u043B\u044F:7,\u0438\u044E\u043B\u0435:7,\u0430\u0432\u0433\u0443\u0441\u0442:8,\u0430\u0432\u0433\u0443\u0441\u0442\u0430:8,\u0430\u0432\u0433\u0443\u0441\u0442\u0435:8,\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C:9,\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F:9,\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u0435:9,\u043E\u043A\u0442\u044F\u0431\u0440\u044C:10,\u043E\u043A\u0442\u044F\u0431\u0440\u044F:10,\u043E\u043A\u0442\u044F\u0431\u0440\u0435:10,\u043D\u043E\u044F\u0431\u0440\u044C:11,\u043D\u043E\u044F\u0431\u0440\u044F:11,\u043D\u043E\u044F\u0431\u0440\u0435:11,\u0434\u0435\u043A\u0430\u0431\u0440\u044C:12,\u0434\u0435\u043A\u0430\u0431\u0440\u044F:12,\u0434\u0435\u043A\u0430\u0431\u0440\u0435:12};he.MONTH_DICTIONARY=Object.assign(Object.assign({},he.FULL_MONTH_NAME_DICTIONARY),{\u044F\u043D\u0432:1,"\u044F\u043D\u0432.":1,\u0444\u0435\u0432:2,"\u0444\u0435\u0432.":2,\u043C\u0430\u0440:3,"\u043C\u0430\u0440.":3,\u0430\u043F\u0440:4,"\u0430\u043F\u0440.":4,\u0430\u0432\u0433:8,"\u0430\u0432\u0433.":8,\u0441\u0435\u043D:9,"\u0441\u0435\u043D.":9,\u043E\u043A\u0442:10,"\u043E\u043A\u0442.":10,\u043D\u043E\u044F:11,"\u043D\u043E\u044F.":11,\u0434\u0435\u043A:12,"\u0434\u0435\u043A.":12});he.INTEGER_WORD_DICTIONARY={\u043E\u0434\u0438\u043D:1,\u043E\u0434\u043D\u0430:1,\u043E\u0434\u043D\u043E\u0439:1,\u043E\u0434\u043D\u0443:1,\u0434\u0432\u0435:2,\u0434\u0432\u0430:2,\u0434\u0432\u0443\u0445:2,\u0442\u0440\u0438:3,\u0442\u0440\u0435\u0445:3,\u0442\u0440\u0451\u0445:3,\u0447\u0435\u0442\u044B\u0440\u0435:4,\u0447\u0435\u0442\u044B\u0440\u0435\u0445:4,\u0447\u0435\u0442\u044B\u0440\u0451\u0445:4,\u043F\u044F\u0442\u044C:5,\u043F\u044F\u0442\u0438:5,\u0448\u0435\u0441\u0442\u044C:6,\u0448\u0435\u0441\u0442\u0438:6,\u0441\u0435\u043C\u044C:7,\u0441\u0435\u043C\u0438:7,\u0432\u043E\u0441\u0435\u043C\u044C:8,\u0432\u043E\u0441\u0435\u043C\u044C\u043C\u0438:8,\u0434\u0435\u0432\u044F\u0442\u044C:9,\u0434\u0435\u0432\u044F\u0442\u0438:9,\u0434\u0435\u0441\u044F\u0442\u044C:10,\u0434\u0435\u0441\u044F\u0442\u0438:10,\u043E\u0434\u0438\u043D\u043D\u0430\u0434\u0446\u0430\u0442\u044C:11,\u043E\u0434\u0438\u043D\u043D\u0430\u0434\u0446\u0430\u0442\u0438:11,\u0434\u0432\u0435\u043D\u0430\u0434\u0446\u0430\u0442\u044C:12,\u0434\u0432\u0435\u043D\u0430\u0434\u0446\u0430\u0442\u0438:12};he.ORDINAL_WORD_DICTIONARY={\u043F\u0435\u0440\u0432\u043E\u0435:1,\u043F\u0435\u0440\u0432\u043E\u0433\u043E:1,\u0432\u0442\u043E\u0440\u043E\u0435:2,\u0432\u0442\u043E\u0440\u043E\u0433\u043E:2,\u0442\u0440\u0435\u0442\u044C\u0435:3,\u0442\u0440\u0435\u0442\u044C\u0435\u0433\u043E:3,\u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043E\u0435:4,\u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043E\u0433\u043E:4,\u043F\u044F\u0442\u043E\u0435:5,\u043F\u044F\u0442\u043E\u0433\u043E:5,\u0448\u0435\u0441\u0442\u043E\u0435:6,\u0448\u0435\u0441\u0442\u043E\u0433\u043E:6,\u0441\u0435\u0434\u044C\u043C\u043E\u0435:7,\u0441\u0435\u0434\u044C\u043C\u043E\u0433\u043E:7,\u0432\u043E\u0441\u044C\u043C\u043E\u0435:8,\u0432\u043E\u0441\u044C\u043C\u043E\u0433\u043E:8,\u0434\u0435\u0432\u044F\u0442\u043E\u0435:9,\u0434\u0435\u0432\u044F\u0442\u043E\u0433\u043E:9,\u0434\u0435\u0441\u044F\u0442\u043E\u0435:10,\u0434\u0435\u0441\u044F\u0442\u043E\u0433\u043E:10,\u043E\u0434\u0438\u043D\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:11,\u043E\u0434\u0438\u043D\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:11,\u0434\u0432\u0435\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:12,\u0434\u0432\u0435\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:12,\u0442\u0440\u0438\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:13,\u0442\u0440\u0438\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:13,\u0447\u0435\u0442\u044B\u0440\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:14,\u0447\u0435\u0442\u044B\u0440\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:14,\u043F\u044F\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:15,\u043F\u044F\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:15,\u0448\u0435\u0441\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:16,\u0448\u0435\u0441\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:16,\u0441\u0435\u043C\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:17,\u0441\u0435\u043C\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:17,\u0432\u043E\u0441\u0435\u043C\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:18,\u0432\u043E\u0441\u0435\u043C\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:18,\u0434\u0435\u0432\u044F\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:19,\u0434\u0435\u0432\u044F\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:19,\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u043E\u0435:20,\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:20,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u043F\u0435\u0440\u0432\u043E\u0435":21,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u043F\u0435\u0440\u0432\u043E\u0433\u043E":21,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0432\u0442\u043E\u0440\u043E\u0435":22,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0432\u0442\u043E\u0440\u043E\u0433\u043E":22,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0442\u0440\u0435\u0442\u044C\u0435":23,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0442\u0440\u0435\u0442\u044C\u0435\u0433\u043E":23,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043E\u0435":24,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043E\u0433\u043E":24,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u043F\u044F\u0442\u043E\u0435":25,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u043F\u044F\u0442\u043E\u0433\u043E":25,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0448\u0435\u0441\u0442\u043E\u0435":26,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0448\u0435\u0441\u0442\u043E\u0433\u043E":26,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0441\u0435\u0434\u044C\u043C\u043E\u0435":27,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0441\u0435\u0434\u044C\u043C\u043E\u0433\u043E":27,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0432\u043E\u0441\u044C\u043C\u043E\u0435":28,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0432\u043E\u0441\u044C\u043C\u043E\u0433\u043E":28,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0434\u0435\u0432\u044F\u0442\u043E\u0435":29,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0434\u0435\u0432\u044F\u0442\u043E\u0433\u043E":29,\u0442\u0440\u0438\u0434\u0446\u0430\u0442\u043E\u0435:30,\u0442\u0440\u0438\u0434\u0446\u0430\u0442\u043E\u0433\u043E:30,"\u0442\u0440\u0438\u0434\u0446\u0430\u0442\u044C \u043F\u0435\u0440\u0432\u043E\u0435":31,"\u0442\u0440\u0438\u0434\u0446\u0430\u0442\u044C \u043F\u0435\u0440\u0432\u043E\u0433\u043E":31};he.TIME_UNIT_DICTIONARY={\u0441\u0435\u043A:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u0430:"second",\u0441\u0435\u043A\u0443\u043D\u0434:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u044B:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u0443:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u043E\u0447\u043A\u0430:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u043E\u0447\u043A\u0438:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u043E\u0447\u0435\u043A:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u043E\u0447\u043A\u0443:"second",\u043C\u0438\u043D:"minute",\u043C\u0438\u043D\u0443\u0442\u0430:"minute",\u043C\u0438\u043D\u0443\u0442:"minute",\u043C\u0438\u043D\u0443\u0442\u044B:"minute",\u043C\u0438\u043D\u0443\u0442\u0443:"minute",\u043C\u0438\u043D\u0443\u0442\u043E\u043A:"minute",\u043C\u0438\u043D\u0443\u0442\u043A\u0438:"minute",\u043C\u0438\u043D\u0443\u0442\u043A\u0443:"minute",\u0447\u0430\u0441:"hour",\u0447\u0430\u0441\u043E\u0432:"hour",\u0447\u0430\u0441\u0430:"hour",\u0447\u0430\u0441\u0443:"hour",\u0447\u0430\u0441\u0438\u043A\u043E\u0432:"hour",\u0447\u0430\u0441\u0438\u043A\u0430:"hour",\u0447\u0430\u0441\u0438\u043A\u0435:"hour",\u0447\u0430\u0441\u0438\u043A:"hour",\u0434\u0435\u043D\u044C:"d",\u0434\u043D\u044F:"d",\u0434\u043D\u0435\u0439:"d",\u0441\u0443\u0442\u043E\u043A:"d",\u0441\u0443\u0442\u043A\u0438:"d",\u043D\u0435\u0434\u0435\u043B\u044F:"week",\u043D\u0435\u0434\u0435\u043B\u0435:"week",\u043D\u0435\u0434\u0435\u043B\u0438:"week",\u043D\u0435\u0434\u0435\u043B\u044E:"week",\u043D\u0435\u0434\u0435\u043B\u044C:"week",\u043D\u0435\u0434\u0435\u043B\u044C\u043A\u0435:"week",\u043D\u0435\u0434\u0435\u043B\u044C\u043A\u0438:"week",\u043D\u0435\u0434\u0435\u043B\u0435\u043A:"week",\u043C\u0435\u0441\u044F\u0446:"month",\u043C\u0435\u0441\u044F\u0446\u0435:"month",\u043C\u0435\u0441\u044F\u0446\u0435\u0432:"month",\u043C\u0435\u0441\u044F\u0446\u0430:"month",\u043A\u0432\u0430\u0440\u0442\u0430\u043B:"quarter",\u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0435:"quarter",\u043A\u0432\u0430\u0440\u0442\u0430\u043B\u043E\u0432:"quarter",\u0433\u043E\u0434:"year",\u0433\u043E\u0434\u0430:"year",\u0433\u043E\u0434\u0443:"year",\u0433\u043E\u0434\u043E\u0432:"year",\u043B\u0435\u0442:"year",\u0433\u043E\u0434\u0438\u043A:"year",\u0433\u043E\u0434\u0438\u043A\u0430:"year",\u0433\u043E\u0434\u0438\u043A\u043E\u0432:"year"};he.NUMBER_PATTERN=`(?:${du.matchAnyPattern(he.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|\u043F\u043E\u043B|\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E|\u043F\u0430\u0440(?:\u044B|\u0443)|\\s{0,3})`;function eT(r){let e=r.toLowerCase();return he.INTEGER_WORD_DICTIONARY[e]!==void 0?he.INTEGER_WORD_DICTIONARY[e]:e.match(/несколько/)?3:e.match(/пол/)?.5:e.match(/пар/)?2:e===""?1:parseFloat(e)}he.parseNumberPattern=eT;he.ORDINAL_NUMBER_PATTERN=`(?:${du.matchAnyPattern(he.ORDINAL_WORD_DICTIONARY)}|[0-9]{1,2}(?:\u0433\u043E|\u043E\u0433\u043E|\u0435|\u043E\u0435)?)`;function dN(r){let e=r.toLowerCase();return he.ORDINAL_WORD_DICTIONARY[e]!==void 0?he.ORDINAL_WORD_DICTIONARY[e]:(e=e.replace(/(?:st|nd|rd|th)$/i,""),parseInt(e))}he.parseOrdinalNumberPattern=dN;var Vf="(?:\\s+(?:\u0433\u043E\u0434\u0443|\u0433\u043E\u0434\u0430|\u0433\u043E\u0434|\u0433|\u0433.))?";he.YEAR_PATTERN=`(?:[1-9][0-9]{0,3}${Vf}\\s*(?:\u043D.\u044D.|\u0434\u043E \u043D.\u044D.|\u043D. \u044D.|\u0434\u043E \u043D. \u044D.)|[1-2][0-9]{3}${Vf}|[5-9][0-9]${Vf})`;function fN(r){if(/(год|года|г|г.)/i.test(r)&&(r=r.replace(/(год|года|г|г.)/i,"")),/(до н.э.|до н. э.)/i.test(r))return r=r.replace(/(до н.э.|до н. э.)/i,""),-parseInt(r);if(/(н. э.|н.э.)/i.test(r))return r=r.replace(/(н. э.|н.э.)/i,""),parseInt(r);let e=parseInt(r);return cN.findMostLikelyADYear(e)}he.parseYear=fN;var tT=`(${he.NUMBER_PATTERN})\\s{0,3}(${du.matchAnyPattern(he.TIME_UNIT_DICTIONARY)})`,J_=new RegExp(tT,"i");he.TIME_UNITS_PATTERN=du.repeatedTimeunitPattern("(?:(?:\u043E\u043A\u043E\u043B\u043E|\u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E)\\s{0,3})?",tT);function hN(r){let e={},t=r,n=J_.exec(t);for(;n;)pN(e,n),t=t.substring(n[0].length).trim(),n=J_.exec(t);return e}he.parseTimeUnits=hN;function pN(r,e){let t=eT(e[1]),n=he.TIME_UNIT_DICTIONARY[e[2].toLowerCase()];r[n]=t}});var nT=O(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var Ma=Kt(),mN=tt(),yN=Z(),rT=`(?:(?:\u043E\u043A\u043E\u043B\u043E|\u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E)\\s*(?:~\\s*)?)?(${Ma.TIME_UNITS_PATTERN})${Ma.REGEX_PARTS.rightBoundary}`,gN=new RegExp(`(?:\u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435|\u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0438)\\s*${rT}`,Ma.REGEX_PARTS.flags),_N=new RegExp(rT,"i"),Kf=class extends yN.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return Ma.REGEX_PARTS.leftBoundary}innerPattern(e){return e.option.forwardDate?_N:gN}innerExtract(e,t){let n=Ma.parseTimeUnits(t[1]);return mN.ParsingComponents.createRelativeFromReference(e.reference,n)}};Zf.default=Kf});var uT=O(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var TN=Rt(),Ra=Kt(),oT=Kt(),fu=Kt(),bN=Le(),vN=Z(),wN=new RegExp(`(?:\u0441)?\\s*(${fu.ORDINAL_NUMBER_PATTERN})(?:\\s{0,3}(?:\u043F\u043E|-|\u2013|\u0434\u043E)?\\s{0,3}(${fu.ORDINAL_NUMBER_PATTERN}))?(?:-|\\/|\\s{0,3}(?:of)?\\s{0,3})(${bN.matchAnyPattern(Ra.MONTH_DICTIONARY)})(?:(?:-|\\/|,?\\s{0,3})(${oT.YEAR_PATTERN}(?![^\\s]\\d)))?${Ra.REGEX_PARTS.rightBoundary}`,Ra.REGEX_PARTS.flags),sT=1,iT=2,kN=3,aT=4,Xf=class extends vN.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return Ra.REGEX_PARTS.leftBoundary}innerPattern(){return wN}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=Ra.MONTH_DICTIONARY[t[kN].toLowerCase()],a=fu.parseOrdinalNumberPattern(t[sT]);if(a>31)return t.index=t.index+t[sT].length,null;if(n.start.assign("month",s),n.start.assign("day",a),t[aT]){let o=oT.parseYear(t[aT]);n.start.assign("year",o)}else{let o=TN.findYearClosestToRef(e.refDate,a,s);n.start.imply("year",o)}if(t[iT]){let o=fu.parseOrdinalNumberPattern(t[iT]);n.end=n.start.clone(),n.end.assign("day",o)}return n}};Qf.default=Xf});var dT=O(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var Pa=Kt(),DN=Rt(),EN=Le(),cT=Kt(),SN=Z(),ON=new RegExp(`((?:\u0432)\\s*)?(${EN.matchAnyPattern(Pa.MONTH_DICTIONARY)})\\s*(?:[,-]?\\s*(${cT.YEAR_PATTERN})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,Pa.REGEX_PARTS.flags),MN=2,lT=3,Jf=class extends SN.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return Pa.REGEX_PARTS.leftBoundary}innerPattern(){return ON}innerExtract(e,t){let n=t[MN].toLowerCase();if(t[0].length<=3&&!Pa.FULL_MONTH_NAME_DICTIONARY[n])return null;let s=e.createParsingResult(t.index,t.index+t[0].length);s.start.imply("day",1);let a=Pa.MONTH_DICTIONARY[n];if(s.start.assign("month",a),t[lT]){let o=cT.parseYear(t[lT]);s.start.assign("year",o)}else{let o=DN.findYearClosestToRef(e.refDate,1,a);s.start.imply("year",o)}return s}};eh.default=Jf});var hT=O(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var hu=ht(),RN=as(),fT=Kt(),th=class extends RN.AbstractTimeExpressionParser{constructor(e){super(e)}patternFlags(){return fT.REGEX_PARTS.flags}primaryPatternLeftBoundary(){return"(^|\\s|T|(?:[^\\p{L}\\p{N}_]))"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|\u0434\u043E|\u0438|\u043F\u043E|\\?)\\s*"}primaryPrefix(){return"(?:(?:\u0432|\u0441)\\s*)??"}primarySuffix(){return`(?:\\s*(?:\u0443\u0442\u0440\u0430|\u0432\u0435\u0447\u0435\u0440\u0430|\u043F\u043E\u0441\u043B\u0435 \u043F\u043E\u043B\u0443\u0434\u043D\u044F))?(?!\\/)${fT.REGEX_PARTS.rightBoundary}`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(n){if(t[0].endsWith("\u0432\u0435\u0447\u0435\u0440\u0430")){let s=n.get("hour");s>=6&&s<12?(n.assign("hour",n.get("hour")+12),n.assign("meridiem",hu.Meridiem.PM)):s<6&&n.assign("meridiem",hu.Meridiem.AM)}if(t[0].endsWith("\u043F\u043E\u0441\u043B\u0435 \u043F\u043E\u043B\u0443\u0434\u043D\u044F")){n.assign("meridiem",hu.Meridiem.PM);let s=n.get("hour");s>=0&&s<=6&&n.assign("hour",n.get("hour")+12)}t[0].endsWith("\u0443\u0442\u0440\u0430")&&(n.assign("meridiem",hu.Meridiem.AM),n.get("hour")<12&&n.assign("hour",n.get("hour")))}return n}};rh.default=th});var pT=O(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var pu=Kt(),PN=tt(),xN=Z(),AN=mr(),NN=new RegExp(`(${pu.TIME_UNITS_PATTERN})\\s{0,5}\u043D\u0430\u0437\u0430\u0434(?=(?:\\W|$))`,pu.REGEX_PARTS.flags),nh=class extends xN.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return pu.REGEX_PARTS.leftBoundary}innerPattern(){return NN}innerExtract(e,t){let n=pu.parseTimeUnits(t[1]),s=AN.reverseTimeUnits(n);return PN.ParsingComponents.createRelativeFromReference(e.reference,s)}};sh.default=nh});var mT=O(xa=>{"use strict";var CN=xa&&xa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(xa,"__esModule",{value:!0});var IN=CN(Ur()),ih=class extends IN.default{patternBetween(){return/^\s*(и до|и по|до|по|-)\s*$/i}};xa.default=ih});var yT=O(Aa=>{"use strict";var FN=Aa&&Aa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Aa,"__esModule",{value:!0});var LN=FN(rn()),ah=class extends LN.default{patternBetween(){return new RegExp("^\\s*(T|\u0432|,|-)?\\s*$")}};Aa.default=ah});var gT=O(dn=>{"use strict";var YN=dn&&dn.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),UN=dn&&dn.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),WN=dn&&dn.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&YN(e,r,t);return UN(e,r),e};Object.defineProperty(dn,"__esModule",{value:!0});var qN=Z(),Na=WN(an()),oh=Kt(),jN=new RegExp(`(?:\u0441|\u0441\u043E)?\\s*(\u0441\u0435\u0433\u043E\u0434\u043D\u044F|\u0432\u0447\u0435\u0440\u0430|\u0437\u0430\u0432\u0442\u0440\u0430|\u043F\u043E\u0441\u043B\u0435\u0437\u0430\u0432\u0442\u0440\u0430|\u043F\u043E\u0437\u0430\u0432\u0447\u0435\u0440\u0430)${oh.REGEX_PARTS.rightBoundary}`,oh.REGEX_PARTS.flags),uh=class extends qN.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return oh.REGEX_PARTS.leftBoundary}innerPattern(e){return jN}innerExtract(e,t){let n=t[1].toLowerCase(),s=e.createParsingComponents();switch(n){case"\u0441\u0435\u0433\u043E\u0434\u043D\u044F":return Na.today(e.reference);case"\u0432\u0447\u0435\u0440\u0430":return Na.yesterday(e.reference);case"\u0437\u0430\u0432\u0442\u0440\u0430":return Na.tomorrow(e.reference);case"\u043F\u043E\u0441\u043B\u0435\u0437\u0430\u0432\u0442\u0440\u0430":return Na.theDayAfter(e.reference,2);case"\u043F\u043E\u0437\u0430\u0432\u0447\u0435\u0440\u0430":return Na.theDayBefore(e.reference,2)}return s}};dn.default=uh});var _T=O(Ar=>{"use strict";var $N=Ar&&Ar.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),BN=Ar&&Ar.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),GN=Ar&&Ar.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&$N(e,r,t);return BN(e,r),e},HN=Ar&&Ar.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ar,"__esModule",{value:!0});var zN=Z(),ps=GN(an()),VN=pr(),KN=HN(Pe()),lh=Kt(),ZN=new RegExp(`(\u0441\u0435\u0439\u0447\u0430\u0441|\u043F\u0440\u043E\u0448\u043B\u044B\u043C\\s*\u0432\u0435\u0447\u0435\u0440\u043E\u043C|\u043F\u0440\u043E\u0448\u043B\u043E\u0439\\s*\u043D\u043E\u0447\u044C\u044E|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439\\s*\u043D\u043E\u0447\u044C\u044E|\u0441\u0435\u0433\u043E\u0434\u043D\u044F\\s*\u043D\u043E\u0447\u044C\u044E|\u044D\u0442\u043E\u0439\\s*\u043D\u043E\u0447\u044C\u044E|\u043D\u043E\u0447\u044C\u044E|\u044D\u0442\u0438\u043C \u0443\u0442\u0440\u043E\u043C|\u0443\u0442\u0440\u043E\u043C|\u0443\u0442\u0440\u0430|\u0432\\s*\u043F\u043E\u043B\u0434\u0435\u043D\u044C|\u0432\u0435\u0447\u0435\u0440\u043E\u043C|\u0432\u0435\u0447\u0435\u0440\u0430|\u0432\\s*\u043F\u043E\u043B\u043D\u043E\u0447\u044C)${lh.REGEX_PARTS.rightBoundary}`,lh.REGEX_PARTS.flags),ch=class extends zN.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return lh.REGEX_PARTS.leftBoundary}innerPattern(){return ZN}innerExtract(e,t){let n=KN.default(e.refDate),s=t[0].toLowerCase(),a=e.createParsingComponents();if(s==="\u0441\u0435\u0439\u0447\u0430\u0441")return ps.now(e.reference);if(s==="\u0432\u0435\u0447\u0435\u0440\u043E\u043C"||s==="\u0432\u0435\u0447\u0435\u0440\u0430")return ps.evening(e.reference);if(s.endsWith("\u0443\u0442\u0440\u043E\u043C")||s.endsWith("\u0443\u0442\u0440\u0430"))return ps.morning(e.reference);if(s.match(/в\s*полдень/))return ps.noon(e.reference);if(s.match(/прошлой\s*ночью/))return ps.lastNight(e.reference);if(s.match(/прошлым\s*вечером/))return ps.yesterdayEvening(e.reference);if(s.match(/следующей\s*ночью/)){let o=n.hour()<22?1:2;n=n.add(o,"day"),VN.assignSimilarDate(a,n),a.imply("hour",0)}return s.match(/в\s*полночь/)||s.endsWith("\u043D\u043E\u0447\u044C\u044E")?ps.midnight(e.reference):a}};Ar.default=ch});var TT=O(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var Ca=Kt(),XN=Le(),QN=Z(),JN=us(),eC=new RegExp(`(?:(?:,|\\(|\uFF08)\\s*)?(?:\u0432\\s*?)?(?:(\u044D\u0442\u0443|\u044D\u0442\u043E\u0442|\u043F\u0440\u043E\u0448\u043B\u044B\u0439|\u043F\u0440\u043E\u0448\u043B\u0443\u044E|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E)\\s*)?(${XN.matchAnyPattern(Ca.WEEKDAY_DICTIONARY)})(?:\\s*(?:,|\\)|\uFF09))?(?:\\s*\u043D\u0430\\s*(\u044D\u0442\u043E\u0439|\u043F\u0440\u043E\u0448\u043B\u043E\u0439|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439)\\s*\u043D\u0435\u0434\u0435\u043B\u0435)?${Ca.REGEX_PARTS.rightBoundary}`,Ca.REGEX_PARTS.flags),tC=1,rC=2,nC=3,dh=class extends QN.AbstractParserWithWordBoundaryChecking{innerPattern(){return eC}patternLeftBoundary(){return Ca.REGEX_PARTS.leftBoundary}innerExtract(e,t){let n=t[rC].toLowerCase(),s=Ca.WEEKDAY_DICTIONARY[n],a=t[tC],o=t[nC],l=a||o;l=l||"",l=l.toLowerCase();let c=null;l=="\u043F\u0440\u043E\u0448\u043B\u044B\u0439"||l=="\u043F\u0440\u043E\u0448\u043B\u0443\u044E"||l=="\u043F\u0440\u043E\u0448\u043B\u043E\u0439"?c="last":l=="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439"||l=="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E"||l=="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439"||l=="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E"?c="next":(l=="\u044D\u0442\u043E\u0442"||l=="\u044D\u0442\u0443"||l=="\u044D\u0442\u043E\u0439")&&(c="this");let f=JN.toDayJSWeekday(e.refDate,s,c);return e.createParsingComponents().assign("weekday",s).imply("day",f.date()).imply("month",f.month()+1).imply("year",f.year())}};fh.default=dh});var vT=O(Fa=>{"use strict";var sC=Fa&&Fa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Fa,"__esModule",{value:!0});var Ia=Kt(),bT=tt(),iC=sC(Pe()),aC=Z(),oC=Le(),uC=new RegExp(`(\u0432 \u043F\u0440\u043E\u0448\u043B\u043E\u043C|\u043D\u0430 \u043F\u0440\u043E\u0448\u043B\u043E\u0439|\u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439|\u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C|\u043D\u0430 \u044D\u0442\u043E\u0439|\u0432 \u044D\u0442\u043E\u043C)\\s*(${oC.matchAnyPattern(Ia.TIME_UNIT_DICTIONARY)})(?=\\s*)${Ia.REGEX_PARTS.rightBoundary}`,Ia.REGEX_PARTS.flags),lC=1,cC=2,hh=class extends aC.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return Ia.REGEX_PARTS.leftBoundary}innerPattern(){return uC}innerExtract(e,t){let n=t[lC].toLowerCase(),s=t[cC].toLowerCase(),a=Ia.TIME_UNIT_DICTIONARY[s];if(n=="\u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439"||n=="\u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C"){let c={};return c[a]=1,bT.ParsingComponents.createRelativeFromReference(e.reference,c)}if(n=="\u0432 \u043F\u0440\u043E\u0448\u043B\u043E\u043C"||n=="\u043D\u0430 \u043F\u0440\u043E\u0448\u043B\u043E\u0439"){let c={};return c[a]=-1,bT.ParsingComponents.createRelativeFromReference(e.reference,c)}let o=e.createParsingComponents(),l=iC.default(e.reference.instant);return a.match(/week/i)?(l=l.add(-l.get("d"),"d"),o.imply("day",l.date()),o.imply("month",l.month()+1),o.imply("year",l.year())):a.match(/month/i)?(l=l.add(-l.date()+1,"d"),o.imply("day",l.date()),o.assign("year",l.year()),o.assign("month",l.month()+1)):a.match(/year/i)&&(l=l.add(-l.date()+1,"d"),l=l.add(-l.month(),"month"),o.imply("day",l.date()),o.imply("month",l.month()+1),o.assign("year",l.year())),o}};Fa.default=hh});var wT=O(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var La=Kt(),dC=tt(),fC=Z(),hC=mr(),pC=new RegExp(`(\u044D\u0442\u0438|\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435|\u043F\u0440\u043E\u0448\u043B\u044B\u0435|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435|\u043F\u043E\u0441\u043B\u0435|\u0447\u0435\u0440\u0435\u0437|\\+|-)\\s*(${La.TIME_UNITS_PATTERN})${La.REGEX_PARTS.rightBoundary}`,La.REGEX_PARTS.flags),ph=class extends fC.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return La.REGEX_PARTS.leftBoundary}innerPattern(){return pC}innerExtract(e,t){let n=t[1].toLowerCase(),s=La.parseTimeUnits(t[2]);switch(n){case"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435":case"\u043F\u0440\u043E\u0448\u043B\u044B\u0435":case"-":s=hC.reverseTimeUnits(s);break}return dC.ParsingComponents.createRelativeFromReference(e.reference,s)}};mh.default=ph});var ET=O(Dt=>{"use strict";var nr=Dt&&Dt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.createConfiguration=Dt.createCasualConfiguration=Dt.parseDate=Dt.parse=Dt.strict=Dt.casual=void 0;var mC=nr(nT()),yC=nr(uT()),gC=nr(dT()),_C=nr(hT()),TC=nr(pT()),bC=nr(mT()),vC=nr(yT()),wC=nn(),kC=nr(gT()),DC=nr(_T()),EC=nr(TT()),SC=nr(vT()),kT=Or(),OC=nr(ls()),MC=nr(wT());Dt.casual=new kT.Chrono(DT());Dt.strict=new kT.Chrono(yh(!0));function RC(r,e,t){return Dt.casual.parse(r,e,t)}Dt.parse=RC;function PC(r,e,t){return Dt.casual.parseDate(r,e,t)}Dt.parseDate=PC;function DT(){let r=yh(!1);return r.parsers.unshift(new kC.default),r.parsers.unshift(new DC.default),r.parsers.unshift(new gC.default),r.parsers.unshift(new SC.default),r.parsers.unshift(new MC.default),r}Dt.createCasualConfiguration=DT;function yh(r=!0){return wC.includeCommonConfiguration({parsers:[new OC.default(!0),new mC.default,new yC.default,new EC.default,new _C.default(r),new TC.default],refiners:[new vC.default,new bC.default]},r)}Dt.createConfiguration=yh});var ht=O(Te=>{"use strict";var xC=Te&&Te.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),AC=Te&&Te.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Ln=Te&&Te.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&xC(e,r,t);return AC(e,r),e};Object.defineProperty(Te,"__esModule",{value:!0});Te.parseDate=Te.parse=Te.casual=Te.strict=Te.ru=Te.zh=Te.nl=Te.pt=Te.ja=Te.fr=Te.de=Te.Meridiem=Te.Chrono=Te.en=void 0;var gh=Ln(Nc());Te.en=gh;var NC=Or();Object.defineProperty(Te,"Chrono",{enumerable:!0,get:function(){return NC.Chrono}});var CC;(function(r){r[r.AM=0]="AM",r[r.PM=1]="PM"})(CC=Te.Meridiem||(Te.Meridiem={}));var IC=Ln(Cy());Te.de=IC;var FC=Ln(lg());Te.fr=FC;var LC=Ln(_g());Te.ja=LC;var YC=Ln(Cg());Te.pt=YC;var UC=Ln(__());Te.nl=UC;var WC=Ln(Q_());Te.zh=WC;var qC=Ln(ET());Te.ru=qC;Te.strict=gh.strict;Te.casual=gh.casual;function jC(r,e,t){return Te.casual.parse(r,e,t)}Te.parse=jC;function $C(r,e,t){return Te.casual.parseDate(r,e,t)}Te.parseDate=$C});var Th=O((_h,ni)=>{(function(r,e){typeof _h=="object"&&typeof ni!="undefined"?ni.exports=e():typeof define=="function"&&define.amd?define(e):r.moment=e()})(_h,function(){"use strict";var r;function e(){return r.apply(null,arguments)}function t(i){r=i}function n(i){return i instanceof Array||Object.prototype.toString.call(i)==="[object Array]"}function s(i){return i!=null&&Object.prototype.toString.call(i)==="[object Object]"}function a(i,u){return Object.prototype.hasOwnProperty.call(i,u)}function o(i){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(i).length===0;var u;for(u in i)if(a(i,u))return!1;return!0}function l(i){return i===void 0}function c(i){return typeof i=="number"||Object.prototype.toString.call(i)==="[object Number]"}function f(i){return i instanceof Date||Object.prototype.toString.call(i)==="[object Date]"}function m(i,u){var d=[],h,p=i.length;for(h=0;h>>0,h;for(h=0;h0)for(d=0;de in r?Ui(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Ne=(r,e)=>{for(var t in e||(e={}))Xp.call(e,t)&&Zp(r,t,e[t]);if(Kp)for(var t of Kp(e))DD.call(e,t)&&Zp(r,t,e[t]);return r},rr=(r,e)=>_D(r,bD(e));var O=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),kD=(r,e)=>{for(var t in e)Ui(r,t,{get:e[t],enumerable:!0})},Qp=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of vD(e))!Xp.call(r,s)&&s!==t&&Ui(r,s,{get:()=>e[s],enumerable:!(n=TD(e,s))||n.enumerable});return r};var os=(r,e,t)=>(t=r!=null?gD(wD(r)):{},Qp(e||!r||!r.__esModule?Ui(t,"default",{value:r,enumerable:!0}):t,r)),ED=r=>Qp(Ui({},"__esModule",{value:!0}),r);var J=(r,e,t)=>new Promise((n,s)=>{var a=c=>{try{l(t.next(c))}catch(f){s(f)}},o=c=>{try{l(t.throw(c))}catch(f){s(f)}},l=c=>c.done?n(c.value):Promise.resolve(c.value).then(a,o);l((t=t.apply(r,e)).next())});var Fe=O(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.matchAnyPattern=Cn.extractTerms=Cn.repeatedTimeunitPattern=void 0;function RD(r,e){let t=e.replace(/\((?!\?)/g,"(?:");return`${r}${t}\\s{0,5}(?:,?\\s{0,5}${t}){0,10}`}Cn.repeatedTimeunitPattern=RD;function Jp(r){let e;return r instanceof Array?e=[...r]:r instanceof Map?e=Array.from(r.keys()):e=Object.keys(r),e}Cn.extractTerms=Jp;function xD(r){return`(?:${Jp(r).sort((t,n)=>n.length-t.length).join("|").replace(/\./g,"\\.")})`}Cn.matchAnyPattern=xD});var xe=O((xl,Pl)=>{(function(r,e){typeof xl=="object"&&typeof Pl!="undefined"?Pl.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis!="undefined"?globalThis:r||self).dayjs=e()})(xl,function(){"use strict";var r=1e3,e=6e4,t=36e5,n="millisecond",s="second",a="minute",o="hour",l="day",c="week",f="month",m="quarter",g="year",T="date",S="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},$=function(V,q,P){var Q=String(V);return!Q||Q.length>=q?V:""+Array(q+1-Q.length).join(P)+V},B={s:$,z:function(V){var q=-V.utcOffset(),P=Math.abs(q),Q=Math.floor(P/60),Y=P%60;return(q<=0?"+":"-")+$(Q,2,"0")+":"+$(Y,2,"0")},m:function V(q,P){if(q.date(){"use strict";var PD=In&&In.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(In,"__esModule",{value:!0});In.findYearClosestToRef=In.findMostLikelyADYear=void 0;var AD=PD(xe());function ND(r){return r<100&&(r>50?r=r+1900:r=r+2e3),r}In.findMostLikelyADYear=ND;function CD(r,e,t){let n=AD.default(r),s=n;s=s.month(t-1),s=s.date(e),s=s.year(n.year());let a=s.add(1,"y"),o=s.add(-1,"y");return Math.abs(a.diff(n)){"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.parseTimeUnits=ye.TIME_UNITS_PATTERN=ye.parseYear=ye.YEAR_PATTERN=ye.parseOrdinalNumberPattern=ye.ORDINAL_NUMBER_PATTERN=ye.parseNumberPattern=ye.NUMBER_PATTERN=ye.TIME_UNIT_DICTIONARY=ye.ORDINAL_WORD_DICTIONARY=ye.INTEGER_WORD_DICTIONARY=ye.MONTH_DICTIONARY=ye.FULL_MONTH_NAME_DICTIONARY=ye.WEEKDAY_DICTIONARY=void 0;var So=Fe(),ID=xt();ye.WEEKDAY_DICTIONARY={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6};ye.FULL_MONTH_NAME_DICTIONARY={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12};ye.MONTH_DICTIONARY=Object.assign(Object.assign({},ye.FULL_MONTH_NAME_DICTIONARY),{jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12});ye.INTEGER_WORD_DICTIONARY={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12};ye.ORDINAL_WORD_DICTIONARY={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31};ye.TIME_UNIT_DICTIONARY={sec:"second",second:"second",seconds:"second",min:"minute",mins:"minute",minute:"minute",minutes:"minute",h:"hour",hr:"hour",hrs:"hour",hour:"hour",hours:"hour",day:"d",days:"d",week:"week",weeks:"week",month:"month",months:"month",qtr:"quarter",quarter:"quarter",quarters:"quarter",y:"year",yr:"year",year:"year",years:"year"};ye.NUMBER_PATTERN=`(?:${So.matchAnyPattern(ye.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;function tm(r){let e=r.toLowerCase();return ye.INTEGER_WORD_DICTIONARY[e]!==void 0?ye.INTEGER_WORD_DICTIONARY[e]:e==="a"||e==="an"?1:e.match(/few/)?3:e.match(/half/)?.5:e.match(/couple/)?2:e.match(/several/)?7:parseFloat(e)}ye.parseNumberPattern=tm;ye.ORDINAL_NUMBER_PATTERN=`(?:${So.matchAnyPattern(ye.ORDINAL_WORD_DICTIONARY)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function FD(r){let e=r.toLowerCase();return ye.ORDINAL_WORD_DICTIONARY[e]!==void 0?ye.ORDINAL_WORD_DICTIONARY[e]:(e=e.replace(/(?:st|nd|rd|th)$/i,""),parseInt(e))}ye.parseOrdinalNumberPattern=FD;ye.YEAR_PATTERN="(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-2][0-9]{3}|[5-9][0-9])";function LD(r){if(/BE/i.test(r))return r=r.replace(/BE/i,""),parseInt(r)-543;if(/BCE?/i.test(r))return r=r.replace(/BCE?/i,""),-parseInt(r);if(/(AD|CE)/i.test(r))return r=r.replace(/(AD|CE)/i,""),parseInt(r);let e=parseInt(r);return ID.findMostLikelyADYear(e)}ye.parseYear=LD;var rm=`(${ye.NUMBER_PATTERN})\\s{0,3}(${So.matchAnyPattern(ye.TIME_UNIT_DICTIONARY)})`,em=new RegExp(rm,"i");ye.TIME_UNITS_PATTERN=So.repeatedTimeunitPattern("(?:(?:about|around)\\s{0,3})?",rm);function YD(r){let e={},t=r,n=em.exec(t);for(;n;)UD(e,n),t=t.substring(n[0].length).trim(),n=em.exec(t);return e}ye.parseTimeUnits=YD;function UD(r,e){let t=tm(e[1]),n=ye.TIME_UNIT_DICTIONARY[e[2].toLowerCase()];r[n]=t}});var nm=O((Al,Nl)=>{(function(r,e){typeof Al=="object"&&typeof Nl!="undefined"?Nl.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis!="undefined"?globalThis:r||self).dayjs_plugin_quarterOfYear=e()})(Al,function(){"use strict";var r="month",e="quarter";return function(t,n){var s=n.prototype;s.quarter=function(l){return this.$utils().u(l)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(l-1))};var a=s.add;s.add=function(l,c){return l=Number(l),this.$utils().p(c)===e?this.add(3*l,r):a.bind(this)(l,c)};var o=s.startOf;s.startOf=function(l,c){var f=this.$utils(),m=!!f.u(c)||c;if(f.p(l)===e){var g=this.quarter()-1;return m?this.month(3*g).startOf(r).startOf("day"):this.month(3*g+2).endOf(r).endOf("day")}return o.bind(this)(l,c)}}})});var yr=O(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.implySimilarTime=Wr.assignSimilarTime=Wr.assignSimilarDate=Wr.assignTheNextDay=void 0;var sm=mt();function WD(r,e){e=e.add(1,"day"),im(r,e),am(r,e)}Wr.assignTheNextDay=WD;function im(r,e){r.assign("day",e.date()),r.assign("month",e.month()+1),r.assign("year",e.year())}Wr.assignSimilarDate=im;function qD(r,e){r.assign("hour",e.hour()),r.assign("minute",e.minute()),r.assign("second",e.second()),r.assign("millisecond",e.millisecond()),r.get("hour")<12?r.assign("meridiem",sm.Meridiem.AM):r.assign("meridiem",sm.Meridiem.PM)}Wr.assignSimilarTime=qD;function am(r,e){r.imply("hour",e.hour()),r.imply("minute",e.minute()),r.imply("second",e.second()),r.imply("millisecond",e.millisecond())}Wr.implySimilarTime=am});var om=O(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.toTimezoneOffset=us.TIMEZONE_ABBR_MAP=void 0;us.TIMEZONE_ABBR_MAP={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:60,CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:-300,FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:-480,PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function jD(r){var e;return r==null?null:typeof r=="number"?r:(e=us.TIMEZONE_ABBR_MAP[r])!==null&&e!==void 0?e:null}us.toTimezoneOffset=jD});var rt=O(qr=>{"use strict";var um=qr&&qr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(qr,"__esModule",{value:!0});qr.ParsingResult=qr.ParsingComponents=qr.ReferenceWithTimezone=void 0;var $D=um(nm()),Oo=um(xe()),Cl=yr(),GD=om();Oo.default.extend($D.default);var Il=class{constructor(e){var t;e=e!=null?e:new Date,e instanceof Date?this.instant=e:(this.instant=(t=e.instant)!==null&&t!==void 0?t:new Date,this.timezoneOffset=GD.toTimezoneOffset(e.timezone))}};qr.ReferenceWithTimezone=Il;var ls=class{constructor(e,t){if(this.reference=e,this.knownValues={},this.impliedValues={},t)for(let s in t)this.knownValues[s]=t[s];let n=Oo.default(e.instant);this.imply("day",n.date()),this.imply("month",n.month()+1),this.imply("year",n.year()),this.imply("hour",12),this.imply("minute",0),this.imply("second",0),this.imply("millisecond",0)}get(e){return e in this.knownValues?this.knownValues[e]:e in this.impliedValues?this.impliedValues[e]:null}isCertain(e){return e in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(e,t){return e in this.knownValues?this:(this.impliedValues[e]=t,this)}assign(e,t){return this.knownValues[e]=t,delete this.impliedValues[e],this}delete(e){delete this.knownValues[e],delete this.impliedValues[e]}clone(){let e=new ls(this.reference);e.knownValues={},e.impliedValues={};for(let t in this.knownValues)e.knownValues[t]=this.knownValues[t];for(let t in this.impliedValues)e.impliedValues[t]=this.impliedValues[t];return e}isOnlyDate(){return!this.isCertain("hour")&&!this.isCertain("minute")&&!this.isCertain("second")}isOnlyTime(){return!this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")}isOnlyWeekdayComponent(){return this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")}isOnlyDayMonthComponent(){return this.isCertain("day")&&this.isCertain("month")&&!this.isCertain("year")}isValidDate(){let e=this.dateWithoutTimezoneAdjustment();return!(e.getFullYear()!==this.get("year")||e.getMonth()!==this.get("month")-1||e.getDate()!==this.get("day")||this.get("hour")!=null&&e.getHours()!=this.get("hour")||this.get("minute")!=null&&e.getMinutes()!=this.get("minute"))}toString(){return`[ParsingComponents {knownValues: ${JSON.stringify(this.knownValues)}, impliedValues: ${JSON.stringify(this.impliedValues)}}, reference: ${JSON.stringify(this.reference)}]`}dayjs(){return Oo.default(this.date())}date(){let e=this.dateWithoutTimezoneAdjustment();return new Date(e.getTime()+this.getSystemTimezoneAdjustmentMinute(e)*6e4)}dateWithoutTimezoneAdjustment(){let e=new Date(this.get("year"),this.get("month")-1,this.get("day"),this.get("hour"),this.get("minute"),this.get("second"),this.get("millisecond"));return e.setFullYear(this.get("year")),e}getSystemTimezoneAdjustmentMinute(e){var t,n;(!e||e.getTime()<0)&&(e=new Date);let s=-e.getTimezoneOffset(),a=(n=(t=this.get("timezoneOffset"))!==null&&t!==void 0?t:this.reference.timezoneOffset)!==null&&n!==void 0?n:s;return s-a}static createRelativeFromReference(e,t){let n=Oo.default(e.instant);for(let a in t)n=n.add(t[a],a);let s=new ls(e);return t.hour||t.minute||t.second?(Cl.assignSimilarTime(s,n),Cl.assignSimilarDate(s,n),e.timezoneOffset!==null&&s.assign("timezoneOffset",-e.instant.getTimezoneOffset())):(Cl.implySimilarTime(s,n),e.timezoneOffset!==null&&s.imply("timezoneOffset",-e.instant.getTimezoneOffset()),t.d?(s.assign("day",n.date()),s.assign("month",n.month()+1),s.assign("year",n.year())):(t.week&&s.imply("weekday",n.day()),s.imply("day",n.date()),t.month?(s.assign("month",n.month()+1),s.assign("year",n.year())):(s.imply("month",n.month()+1),t.year?s.assign("year",n.year()):s.imply("year",n.year())))),s}};qr.ParsingComponents=ls;var Wi=class{constructor(e,t,n,s,a){this.reference=e,this.refDate=e.instant,this.index=t,this.text=n,this.start=s||new ls(e),this.end=a}clone(){let e=new Wi(this.reference,this.index,this.text);return e.start=this.start?this.start.clone():null,e.end=this.end?this.end.clone():null,e}date(){return this.start.date()}toString(){return`[ParsingResult {index: ${this.index}, text: '${this.text}', ...}]`}};qr.ParsingResult=Wi});var Z=O(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.AbstractParserWithWordBoundaryChecking=void 0;var Fl=class{constructor(){this.cachedInnerPattern=null,this.cachedPattern=null}patternLeftBoundary(){return"(\\W|^)"}pattern(e){let t=this.innerPattern(e);return t==this.cachedInnerPattern?this.cachedPattern:(this.cachedPattern=new RegExp(`${this.patternLeftBoundary()}${t.source}`,t.flags),this.cachedInnerPattern=t,this.cachedPattern)}extract(e,t){var n;let s=(n=t[1])!==null&&n!==void 0?n:"";t.index=t.index+s.length,t[0]=t[0].substring(s.length);for(let a=2;a{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var Yl=Pt(),BD=rt(),HD=Z(),zD=new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${Yl.TIME_UNITS_PATTERN})(?=\\W|$)`,"i"),VD=new RegExp(`(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${Yl.TIME_UNITS_PATTERN})(?=\\W|$)`,"i"),Ll=class extends HD.AbstractParserWithWordBoundaryChecking{innerPattern(e){return e.option.forwardDate?VD:zD}innerExtract(e,t){let n=Yl.parseTimeUnits(t[1]);return BD.ParsingComponents.createRelativeFromReference(e.reference,n)}};Ul.default=Ll});var mm=O(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var KD=xt(),hm=Pt(),pm=Pt(),Ro=Pt(),ZD=Fe(),XD=Z(),QD=new RegExp(`(?:on\\s{0,3})?(${Ro.ORDINAL_NUMBER_PATTERN})(?:\\s{0,3}(?:to|\\-|\\\u2013|until|through|till)?\\s{0,3}(${Ro.ORDINAL_NUMBER_PATTERN}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${ZD.matchAnyPattern(hm.MONTH_DICTIONARY)})(?:(?:-|/|,?\\s{0,3})(${pm.YEAR_PATTERN}(?![^\\s]\\d)))?(?=\\W|$)`,"i"),cm=1,dm=2,JD=3,fm=4,Wl=class extends XD.AbstractParserWithWordBoundaryChecking{innerPattern(){return QD}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=hm.MONTH_DICTIONARY[t[JD].toLowerCase()],a=Ro.parseOrdinalNumberPattern(t[cm]);if(a>31)return t.index=t.index+t[cm].length,null;if(n.start.assign("month",s),n.start.assign("day",a),t[fm]){let o=pm.parseYear(t[fm]);n.start.assign("year",o)}else{let o=KD.findYearClosestToRef(e.refDate,a,s);n.start.imply("year",o)}if(t[dm]){let o=Ro.parseOrdinalNumberPattern(t[dm]);n.end=n.start.clone(),n.end.assign("day",o)}return n}};ql.default=Wl});var bm=O($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var ek=xt(),_m=Pt(),xo=Pt(),Tm=Pt(),tk=Fe(),rk=Z(),nk=new RegExp(`(${tk.matchAnyPattern(_m.MONTH_DICTIONARY)})(?:-|/|\\s*,?\\s*)(${xo.ORDINAL_NUMBER_PATTERN})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${xo.ORDINAL_NUMBER_PATTERN})\\s*)?(?:(?:-|/|\\s*,?\\s*)(${Tm.YEAR_PATTERN}))?(?=\\W|$)(?!\\:\\d)`,"i"),sk=1,ik=2,ym=3,gm=4,jl=class extends rk.AbstractParserWithWordBoundaryChecking{innerPattern(){return nk}innerExtract(e,t){let n=_m.MONTH_DICTIONARY[t[sk].toLowerCase()],s=xo.parseOrdinalNumberPattern(t[ik]);if(s>31)return null;let a=e.createParsingComponents({day:s,month:n});if(t[gm]){let c=Tm.parseYear(t[gm]);a.assign("year",c)}else{let c=ek.findYearClosestToRef(e.refDate,s,n);a.imply("year",c)}if(!t[ym])return a;let o=xo.parseOrdinalNumberPattern(t[ym]),l=e.createParsingResult(t.index,t[0]);return l.start=a,l.end=a.clone(),l.end.assign("day",o),l}};$l.default=jl});var Dm=O(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var Gl=Pt(),ak=xt(),ok=Fe(),wm=Pt(),uk=Z(),lk=new RegExp(`((?:in)\\s*)?(${ok.matchAnyPattern(Gl.MONTH_DICTIONARY)})\\s*(?:[,-]?\\s*(${wm.YEAR_PATTERN})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i"),ck=1,dk=2,vm=3,Bl=class extends uk.AbstractParserWithWordBoundaryChecking{innerPattern(){return lk}innerExtract(e,t){let n=t[dk].toLowerCase();if(t[0].length<=3&&!Gl.FULL_MONTH_NAME_DICTIONARY[n])return null;let s=e.createParsingResult(t.index+(t[ck]||"").length,t.index+t[0].length);s.start.imply("day",1);let a=Gl.MONTH_DICTIONARY[n];if(s.start.assign("month",a),t[vm]){let o=wm.parseYear(t[vm]);s.start.assign("year",o)}else{let o=ak.findYearClosestToRef(e.refDate,1,a);s.start.imply("year",o)}return s}};Hl.default=Bl});var Sm=O(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var Em=Pt(),fk=Fe(),hk=Z(),pk=new RegExp(`([0-9]{4})[\\.\\/\\s](?:(${fk.matchAnyPattern(Em.MONTH_DICTIONARY)})|([0-9]{1,2}))[\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i"),mk=1,yk=2,km=3,gk=4,zl=class extends hk.AbstractParserWithWordBoundaryChecking{innerPattern(){return pk}innerExtract(e,t){let n=t[km]?parseInt(t[km]):Em.MONTH_DICTIONARY[t[yk].toLowerCase()];if(n<1||n>12)return null;let s=parseInt(t[mk]);return{day:parseInt(t[gk]),month:n,year:s}}};Vl.default=zl});var Om=O(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});var _k=Z(),Tk=new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i"),bk=1,vk=2,Kl=class extends _k.AbstractParserWithWordBoundaryChecking{innerPattern(){return Tk}innerExtract(e,t){let n=parseInt(t[vk]),s=parseInt(t[bk]);return e.createParsingComponents().imply("day",1).assign("month",s).assign("year",n)}};Zl.default=Kl});var cs=O(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.AbstractTimeExpressionParser=void 0;var Bt=mt();function wk(r,e,t,n){return new RegExp(`${r}${e}(\\d{1,4})(?:(?:\\.|:|\uFF1A)(\\d{1,2})(?:(?::|\uFF1A)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`,n)}function Dk(r,e){return new RegExp(`^(${r})(\\d{1,4})(?:(?:\\.|\\:|\\\uFF1A)(\\d{1,2})(?:(?:\\.|\\:|\\\uFF1A)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${e}`,"i")}var Mm=2,Gs=3,Po=4,Ao=5,qi=6,Xl=class{constructor(e=!1){this.cachedPrimaryPrefix=null,this.cachedPrimarySuffix=null,this.cachedPrimaryTimePattern=null,this.cachedFollowingPhase=null,this.cachedFollowingSuffix=null,this.cachedFollowingTimePatten=null,this.strictMode=e}patternFlags(){return"i"}primaryPatternLeftBoundary(){return"(^|\\s|T|\\b)"}primarySuffix(){return"(?=\\W|$)"}followingSuffix(){return"(?=\\W|$)"}pattern(e){return this.getPrimaryTimePatternThroughCache()}extract(e,t){let n=this.extractPrimaryTimeComponents(e,t);if(!n)return t.index+=t[0].length,null;let s=t.index+t[1].length,a=t[0].substring(t[1].length),o=e.createParsingResult(s,a,n);t.index+=t[0].length;let l=e.text.substring(t.index),f=this.getFollowingTimePatternThroughCache().exec(l);return a.match(/^\d{3,4}/)&&f&&f[0].match(/^\s*([+-])\s*\d{2,4}$/)?null:!f||f[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(o):(o.end=this.extractFollowingTimeComponents(e,f,o),o.end&&(o.text+=f[0]),this.checkAndReturnWithFollowingPattern(o))}extractPrimaryTimeComponents(e,t,n=!1){let s=e.createParsingComponents(),a=0,o=null,l=parseInt(t[Mm]);if(l>100){if(this.strictMode||t[Gs]!=null)return null;a=l%100,l=Math.floor(l/100)}if(l>24)return null;if(t[Gs]!=null){if(t[Gs].length==1&&!t[qi])return null;a=parseInt(t[Gs])}if(a>=60)return null;if(l>12&&(o=Bt.Meridiem.PM),t[qi]!=null){if(l>12)return null;let c=t[qi][0].toLowerCase();c=="a"&&(o=Bt.Meridiem.AM,l==12&&(l=0)),c=="p"&&(o=Bt.Meridiem.PM,l!=12&&(l+=12))}if(s.assign("hour",l),s.assign("minute",a),o!==null?s.assign("meridiem",o):l<12?s.imply("meridiem",Bt.Meridiem.AM):s.imply("meridiem",Bt.Meridiem.PM),t[Ao]!=null){let c=parseInt(t[Ao].substring(0,3));if(c>=1e3)return null;s.assign("millisecond",c)}if(t[Po]!=null){let c=parseInt(t[Po]);if(c>=60)return null;s.assign("second",c)}return s}extractFollowingTimeComponents(e,t,n){let s=e.createParsingComponents();if(t[Ao]!=null){let c=parseInt(t[Ao].substring(0,3));if(c>=1e3)return null;s.assign("millisecond",c)}if(t[Po]!=null){let c=parseInt(t[Po]);if(c>=60)return null;s.assign("second",c)}let a=parseInt(t[Mm]),o=0,l=-1;if(t[Gs]!=null?o=parseInt(t[Gs]):a>100&&(o=a%100,a=Math.floor(a/100)),o>=60||a>24)return null;if(a>=12&&(l=Bt.Meridiem.PM),t[qi]!=null){if(a>12)return null;let c=t[qi][0].toLowerCase();c=="a"&&(l=Bt.Meridiem.AM,a==12&&(a=0,s.isCertain("day")||s.imply("day",s.get("day")+1))),c=="p"&&(l=Bt.Meridiem.PM,a!=12&&(a+=12)),n.start.isCertain("meridiem")||(l==Bt.Meridiem.AM?(n.start.imply("meridiem",Bt.Meridiem.AM),n.start.get("hour")==12&&n.start.assign("hour",0)):(n.start.imply("meridiem",Bt.Meridiem.PM),n.start.get("hour")!=12&&n.start.assign("hour",n.start.get("hour")+12)))}return s.assign("hour",a),s.assign("minute",o),l>=0?s.assign("meridiem",l):n.start.isCertain("meridiem")&&n.start.get("hour")>12?n.start.get("hour")-12>a?s.imply("meridiem",Bt.Meridiem.AM):a<=12&&(s.assign("hour",a+12),s.assign("meridiem",Bt.Meridiem.PM)):a>12?s.imply("meridiem",Bt.Meridiem.PM):a<=12&&s.imply("meridiem",Bt.Meridiem.AM),s.date().getTime()24)return null}return e}checkAndReturnWithFollowingPattern(e){if(e.text.match(/^\d+-\d+$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(t){if(this.strictMode)return null;let n=t[1],s=t[2];if(s.includes(".")&&!s.match(/\d(\.\d{2})+$/))return null;let a=parseInt(s),o=parseInt(n);if(a>24||o>24)return null}return e}getPrimaryTimePatternThroughCache(){let e=this.primaryPrefix(),t=this.primarySuffix();return this.cachedPrimaryPrefix===e&&this.cachedPrimarySuffix===t?this.cachedPrimaryTimePattern:(this.cachedPrimaryTimePattern=wk(this.primaryPatternLeftBoundary(),e,t,this.patternFlags()),this.cachedPrimaryPrefix=e,this.cachedPrimarySuffix=t,this.cachedPrimaryTimePattern)}getFollowingTimePatternThroughCache(){let e=this.followingPhase(),t=this.followingSuffix();return this.cachedFollowingPhase===e&&this.cachedFollowingSuffix===t?this.cachedFollowingTimePatten:(this.cachedFollowingTimePatten=Dk(e,t),this.cachedFollowingPhase=e,this.cachedFollowingSuffix=t,this.cachedFollowingTimePatten)}};No.AbstractTimeExpressionParser=Xl});var Rm=O(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var Co=mt(),kk=cs(),Ql=class extends kk.AbstractTimeExpressionParser{constructor(e){super(e)}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|to|\\?)\\s*"}primaryPrefix(){return"(?:(?:at|from)\\s*)??"}primarySuffix(){return"(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(n){if(t[0].endsWith("night")){let s=n.get("hour");s>=6&&s<12?(n.assign("hour",n.get("hour")+12),n.assign("meridiem",Co.Meridiem.PM)):s<6&&n.assign("meridiem",Co.Meridiem.AM)}if(t[0].endsWith("afternoon")){n.assign("meridiem",Co.Meridiem.PM);let s=n.get("hour");s>=0&&s<=6&&n.assign("hour",n.get("hour")+12)}t[0].endsWith("morning")&&(n.assign("meridiem",Co.Meridiem.AM),n.get("hour")<12&&n.assign("hour",n.get("hour")))}return n}};Jl.default=Ql});var gr=O(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.addImpliedTimeUnits=Bs.reverseTimeUnits=void 0;function Ek(r){let e={};for(let t in r)e[t]=-r[t];return e}Bs.reverseTimeUnits=Ek;function Sk(r,e){let t=r.clone(),n=r.dayjs();for(let s in e)n=n.add(e[s],s);return("day"in e||"d"in e||"week"in e||"month"in e||"year"in e)&&(t.imply("day",n.date()),t.imply("month",n.month()+1),t.imply("year",n.year())),("second"in e||"minute"in e||"hour"in e)&&(t.imply("second",n.second()),t.imply("minute",n.minute()),t.imply("hour",n.hour())),t}Bs.addImpliedTimeUnits=Sk});var xm=O(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var tc=Pt(),Ok=rt(),Mk=Z(),Rk=gr(),xk=new RegExp(`(${tc.TIME_UNITS_PATTERN})\\s{0,5}(?:ago|before|earlier)(?=(?:\\W|$))`,"i"),Pk=new RegExp(`(${tc.TIME_UNITS_PATTERN})\\s{0,5}ago(?=(?:\\W|$))`,"i"),ec=class extends Mk.AbstractParserWithWordBoundaryChecking{constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?Pk:xk}innerExtract(e,t){let n=tc.parseTimeUnits(t[1]),s=Rk.reverseTimeUnits(n);return Ok.ParsingComponents.createRelativeFromReference(e.reference,s)}};rc.default=ec});var Pm=O(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var sc=Pt(),Ak=rt(),Nk=Z(),Ck=new RegExp(`(${sc.TIME_UNITS_PATTERN})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,"i"),Ik=new RegExp("("+sc.TIME_UNITS_PATTERN+")(later|from now)(?=(?:\\W|$))","i"),Fk=1,nc=class extends Nk.AbstractParserWithWordBoundaryChecking{constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?Ik:Ck}innerExtract(e,t){let n=sc.parseTimeUnits(t[Fk]);return Ak.ParsingComponents.createRelativeFromReference(e.reference,n)}};ic.default=nc});var zs=O(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.MergingRefiner=Hs.Filter=void 0;var ac=class{refine(e,t){return t.filter(n=>this.isValid(e,n))}};Hs.Filter=ac;var oc=class{refine(e,t){if(t.length<2)return t;let n=[],s=t[0],a=null;for(let o=1;o{console.log(`${this.constructor.name} merged ${c} and ${f} into ${m}`)}),s=m}}return s!=null&&n.push(s),n}};Hs.MergingRefiner=oc});var jr=O(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var Lk=zs(),uc=class extends Lk.MergingRefiner{shouldMergeResults(e,t,n){return!t.end&&!n.end&&e.match(this.patternBetween())!=null}mergeResults(e,t,n){if(!t.start.isOnlyWeekdayComponent()&&!n.start.isOnlyWeekdayComponent()&&(n.start.getCertainComponents().forEach(a=>{t.start.isCertain(a)||t.start.assign(a,n.start.get(a))}),t.start.getCertainComponents().forEach(a=>{n.start.isCertain(a)||n.start.assign(a,t.start.get(a))})),t.start.date().getTime()>n.start.date().getTime()){let a=t.start.dayjs(),o=n.start.dayjs();t.start.isOnlyWeekdayComponent()&&a.add(-7,"days").isBefore(o)?(a=a.add(-7,"days"),t.start.imply("day",a.date()),t.start.imply("month",a.month()+1),t.start.imply("year",a.year())):n.start.isOnlyWeekdayComponent()&&o.add(7,"days").isAfter(a)?(o=o.add(7,"days"),n.start.imply("day",o.date()),n.start.imply("month",o.month()+1),n.start.imply("year",o.year())):[n,t]=[t,n]}let s=t.clone();return s.start=t.start,s.end=n.start,s.index=Math.min(t.index,n.index),t.index{"use strict";var Yk=ji&&ji.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ji,"__esModule",{value:!0});var Uk=Yk(jr()),cc=class extends Uk.default{patternBetween(){return/^\s*(to|-)\s*$/i}};ji.default=cc});var Nm=O(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.mergeDateTimeComponent=Vs.mergeDateTimeResult=void 0;var Wk=mt();function qk(r,e){let t=r.clone(),n=r.start,s=e.start;if(t.start=dc(n,s),r.end!=null||e.end!=null){let a=r.end==null?r.start:r.end,o=e.end==null?e.start:e.end,l=dc(a,o);r.end==null&&l.date().getTime(){"use strict";Object.defineProperty(hc,"__esModule",{value:!0});var jk=zs(),Cm=Nm(),fc=class extends jk.MergingRefiner{shouldMergeResults(e,t,n){return(t.start.isOnlyDate()&&n.start.isOnlyTime()||n.start.isOnlyDate()&&t.start.isOnlyTime())&&e.match(this.patternBetween())!=null}mergeResults(e,t,n){let s=t.start.isOnlyDate()?Cm.mergeDateTimeResult(t,n):Cm.mergeDateTimeResult(n,t);return s.index=t.index,s.text=t.text+e+n.text,s}};hc.default=fc});var Im=O($i=>{"use strict";var $k=$i&&$i.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($i,"__esModule",{value:!0});var Gk=$k(an()),pc=class extends Gk.default{patternBetween(){return new RegExp("^\\s*(T|at|after|before|on|of|,|-)?\\s*$")}};$i.default=pc});var Fm=O(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var Bk=new RegExp("^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)","i"),Hk={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:60,CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:-300,FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:240,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:-480,PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360},mc=class{constructor(e){this.timezone=Object.assign(Object.assign({},Hk),e)}refine(e,t){var n;let s=(n=e.option.timezones)!==null&&n!==void 0?n:{};return t.forEach(a=>{var o,l;let c=e.text.substring(a.index+a.text.length),f=Bk.exec(c);if(!f)return;let m=f[1].toUpperCase(),g=(l=(o=s[m])!==null&&o!==void 0?o:this.timezone[m])!==null&&l!==void 0?l:null;if(g===null)return;e.debug(()=>{console.log(`Extracting timezone: '${m}' into: ${g} for: ${a.start}`)});let T=a.start.get("timezoneOffset");T!==null&&g!=T&&(a.start.isCertain("timezoneOffset")||m!=f[1])||a.start.isOnlyDate()&&m!=f[1]||(a.text+=f[0],a.start.isCertain("timezoneOffset")||a.start.assign("timezoneOffset",g),a.end!=null&&!a.end.isCertain("timezoneOffset")&&a.end.assign("timezoneOffset",g))}),t}};yc.default=mc});var Io=O(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});var zk=new RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?","i"),Vk=1,Kk=2,Zk=3,gc=class{refine(e,t){return t.forEach(function(n){if(n.start.isCertain("timezoneOffset"))return;let s=e.text.substring(n.index+n.text.length),a=zk.exec(s);if(!a)return;e.debug(()=>{console.log(`Extracting timezone: '${a[0]}' into : ${n}`)});let o=parseInt(a[Kk]),l=parseInt(a[Zk]||"0"),c=o*60+l;c>14*60||(a[Vk]==="-"&&(c=-c),n.end!=null&&n.end.assign("timezoneOffset",c),n.start.assign("timezoneOffset",c),n.text+=a[0])}),t}};_c.default=gc});var Lm=O(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var Tc=class{refine(e,t){if(t.length<2)return t;let n=[],s=t[0];for(let a=1;as.text.length&&(s=o):(n.push(s),s=o)}return s!=null&&n.push(s),n}};bc.default=Tc});var Ym=O(Gi=>{"use strict";var Xk=Gi&&Gi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Gi,"__esModule",{value:!0});var Qk=Xk(xe()),vc=class{refine(e,t){return e.option.forwardDate&&t.forEach(function(n){let s=Qk.default(e.refDate);if(n.start.isOnlyDayMonthComponent()&&s.isAfter(n.start.dayjs()))for(let a=0;a<3&&s.isAfter(n.start.dayjs());a++)n.start.imply("year",n.start.get("year")+1),e.debug(()=>{console.log(`Forward yearly adjusted for ${n} (${n.start})`)}),n.end&&!n.end.isCertain("year")&&(n.end.imply("year",n.end.get("year")+1),e.debug(()=>{console.log(`Forward yearly adjusted for ${n} (${n.end})`)}));n.start.isOnlyWeekdayComponent()&&s.isAfter(n.start.dayjs())&&(s.day()>=n.start.get("weekday")?s=s.day(n.start.get("weekday")+7):s=s.day(n.start.get("weekday")),n.start.imply("day",s.date()),n.start.imply("month",s.month()+1),n.start.imply("year",s.year()),e.debug(()=>{console.log(`Forward weekly adjusted for ${n} (${n.start})`)}),n.end&&n.end.isOnlyWeekdayComponent()&&(s.day()>n.end.get("weekday")?s=s.day(n.end.get("weekday")+7):s=s.day(n.end.get("weekday")),n.end.imply("day",s.date()),n.end.imply("month",s.month()+1),n.end.imply("year",s.year()),e.debug(()=>{console.log(`Forward weekly adjusted for ${n} (${n.end})`)})))}),t}};Gi.default=vc});var Um=O(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});var Jk=zs(),wc=class extends Jk.Filter{constructor(e){super(),this.strictMode=e}isValid(e,t){return t.text.replace(" ","").match(/^\d*(\.\d*)?$/)?(e.debug(()=>{console.log(`Removing unlikely result '${t.text}'`)}),!1):t.start.isValidDate()?t.end&&!t.end.isValidDate()?(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.end})`)}),!1):this.strictMode?this.isStrictModeValid(e,t):!0:(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.start})`)}),!1)}isStrictModeValid(e,t){return t.start.isOnlyWeekdayComponent()?(e.debug(()=>{console.log(`(Strict) Removing weekday only component: ${t} (${t.end})`)}),!1):t.start.isOnlyTime()&&(!t.start.isCertain("hour")||!t.start.isCertain("minute"))?(e.debug(()=>{console.log(`(Strict) Removing uncertain time component: ${t} (${t.end})`)}),!1):!0}};Dc.default=wc});var Sc=O(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});var eE=Z(),tE=new RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(?:Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)","i"),rE=1,nE=2,sE=3,Wm=4,iE=5,qm=6,jm=7,$m=8,Gm=9,kc=class extends eE.AbstractParserWithWordBoundaryChecking{innerPattern(){return tE}innerExtract(e,t){let n={};if(n.year=parseInt(t[rE]),n.month=parseInt(t[nE]),n.day=parseInt(t[sE]),t[Wm]!=null)if(n.hour=parseInt(t[Wm]),n.minute=parseInt(t[iE]),t[qm]!=null&&(n.second=parseInt(t[qm])),t[jm]!=null&&(n.millisecond=parseInt(t[jm])),t[$m]==null)n.timezoneOffset=0;else{let s=parseInt(t[$m]),a=0;t[Gm]!=null&&(a=parseInt(t[Gm]));let o=s*60;o<0?o-=a:o+=a,n.timezoneOffset=o}return n}};Ec.default=kc});var Bm=O(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});var aE=zs(),Oc=class extends aE.MergingRefiner{mergeResults(e,t,n){let s=n.clone();return s.index=t.index,s.text=t.text+e+s.text,s.start.assign("weekday",t.start.get("weekday")),s.end&&s.end.assign("weekday",t.start.get("weekday")),s}shouldMergeResults(e,t,n){return t.start.isOnlyWeekdayComponent()&&!t.start.isCertain("hour")&&n.start.isCertain("day")&&e.match(/^,?\s*$/)!=null}};Mc.default=Oc});var on=O(Ks=>{"use strict";var ds=Ks&&Ks.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ks,"__esModule",{value:!0});Ks.includeCommonConfiguration=void 0;var oE=ds(Fm()),uE=ds(Io()),Hm=ds(Lm()),lE=ds(Ym()),cE=ds(Um()),dE=ds(Sc()),fE=ds(Bm());function hE(r,e=!1){return r.parsers.unshift(new dE.default),r.refiners.unshift(new fE.default),r.refiners.unshift(new oE.default),r.refiners.unshift(new uE.default),r.refiners.unshift(new Hm.default),r.refiners.push(new Hm.default),r.refiners.push(new lE.default),r.refiners.push(new cE.default(e)),r}Ks.includeCommonConfiguration=hE});var ln=O(Ce=>{"use strict";var pE=Ce&&Ce.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.noon=Ce.morning=Ce.midnight=Ce.yesterdayEvening=Ce.evening=Ce.lastNight=Ce.tonight=Ce.theDayAfter=Ce.tomorrow=Ce.theDayBefore=Ce.yesterday=Ce.today=Ce.now=void 0;var $r=rt(),Zs=pE(xe()),un=yr(),Bi=mt();function mE(r){let e=Zs.default(r.instant),t=new $r.ParsingComponents(r,{});return un.assignSimilarDate(t,e),un.assignSimilarTime(t,e),r.timezoneOffset!==null&&t.assign("timezoneOffset",e.utcOffset()),t}Ce.now=mE;function yE(r){let e=Zs.default(r.instant),t=new $r.ParsingComponents(r,{});return un.assignSimilarDate(t,e),un.implySimilarTime(t,e),t}Ce.today=yE;function gE(r){return zm(r,1)}Ce.yesterday=gE;function zm(r,e){return Rc(r,-e)}Ce.theDayBefore=zm;function _E(r){return Rc(r,1)}Ce.tomorrow=_E;function Rc(r,e){let t=Zs.default(r.instant),n=new $r.ParsingComponents(r,{});return t=t.add(e,"day"),un.assignSimilarDate(n,t),un.implySimilarTime(n,t),n}Ce.theDayAfter=Rc;function TE(r,e=22){let t=Zs.default(r.instant),n=new $r.ParsingComponents(r,{});return n.imply("hour",e),n.imply("meridiem",Bi.Meridiem.PM),un.assignSimilarDate(n,t),n}Ce.tonight=TE;function bE(r,e=0){let t=Zs.default(r.instant),n=new $r.ParsingComponents(r,{});return t.hour()<6&&(t=t.add(-1,"day")),un.assignSimilarDate(n,t),n.imply("hour",e),n}Ce.lastNight=bE;function vE(r,e=20){let t=new $r.ParsingComponents(r,{});return t.imply("meridiem",Bi.Meridiem.PM),t.imply("hour",e),t}Ce.evening=vE;function wE(r,e=20){let t=Zs.default(r.instant),n=new $r.ParsingComponents(r,{});return t=t.add(-1,"day"),un.assignSimilarDate(n,t),n.imply("hour",e),n.imply("meridiem",Bi.Meridiem.PM),n}Ce.yesterdayEvening=wE;function DE(r){let e=new $r.ParsingComponents(r,{});return e.imply("hour",0),e.imply("minute",0),e.imply("second",0),e}Ce.midnight=DE;function kE(r,e=6){let t=new $r.ParsingComponents(r,{});return t.imply("meridiem",Bi.Meridiem.AM),t.imply("hour",e),t}Ce.morning=kE;function EE(r){let e=new $r.ParsingComponents(r,{});return e.imply("meridiem",Bi.Meridiem.AM),e.imply("hour",12),e}Ce.noon=EE});var Vm=O(Rr=>{"use strict";var SE=Rr&&Rr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),OE=Rr&&Rr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),ME=Rr&&Rr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&SE(e,r,t);return OE(e,r),e},RE=Rr&&Rr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Rr,"__esModule",{value:!0});var xE=RE(xe()),PE=Z(),AE=yr(),Hi=ME(ln()),NE=/(now|today|tonight|tomorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i,xc=class extends PE.AbstractParserWithWordBoundaryChecking{innerPattern(e){return NE}innerExtract(e,t){let n=xE.default(e.refDate),s=t[0].toLowerCase(),a=e.createParsingComponents();switch(s){case"now":return Hi.now(e.reference);case"today":return Hi.today(e.reference);case"yesterday":return Hi.yesterday(e.reference);case"tomorrow":case"tmr":case"tmrw":return Hi.tomorrow(e.reference);case"tonight":return Hi.tonight(e.reference);default:s.match(/last\s*night/)&&(n.hour()>6&&(n=n.add(-1,"day")),AE.assignSimilarDate(a,n),a.imply("hour",0));break}return a}};Rr.default=xc});var Km=O(zi=>{"use strict";var CE=zi&&zi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(zi,"__esModule",{value:!0});var Fo=mt(),IE=Z(),FE=CE(xe()),LE=yr(),YE=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|noon)(?=\W|$)/i,Pc=class extends IE.AbstractParserWithWordBoundaryChecking{innerPattern(){return YE}innerExtract(e,t){let n=FE.default(e.refDate),s=e.createParsingComponents();switch(t[1].toLowerCase()){case"afternoon":s.imply("meridiem",Fo.Meridiem.PM),s.imply("hour",15);break;case"evening":case"night":s.imply("meridiem",Fo.Meridiem.PM),s.imply("hour",20);break;case"midnight":LE.assignTheNextDay(s,n),s.imply("hour",0),s.imply("minute",0),s.imply("second",0);break;case"morning":s.imply("meridiem",Fo.Meridiem.AM),s.imply("hour",6);break;case"noon":s.imply("meridiem",Fo.Meridiem.AM),s.imply("hour",12);break}return s}};zi.default=Pc});var fs=O(Fn=>{"use strict";var UE=Fn&&Fn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.toDayJSClosestWeekday=Fn.toDayJSWeekday=void 0;var Zm=UE(xe());function WE(r,e,t){if(!t)return Xm(r,e);let n=Zm.default(r);switch(t){case"this":n=n.day(e);break;case"next":n=n.day(e+7);break;case"last":n=n.day(e-7);break}return n}Fn.toDayJSWeekday=WE;function Xm(r,e){let t=Zm.default(r),n=t.day();return Math.abs(e-7-n){"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});var Qm=Pt(),qE=Fe(),jE=Z(),$E=fs(),GE=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${qE.matchAnyPattern(Qm.WEEKDAY_DICTIONARY)})(?:\\s*(?:\\,|\\)|\\\uFF09))?(?:\\s*(this|last|past|next)\\s*week)?(?=\\W|$)`,"i"),BE=1,HE=2,zE=3,Ac=class extends jE.AbstractParserWithWordBoundaryChecking{innerPattern(){return GE}innerExtract(e,t){let n=t[HE].toLowerCase(),s=Qm.WEEKDAY_DICTIONARY[n],a=t[BE],o=t[zE],l=a||o;l=l||"",l=l.toLowerCase();let c=null;l=="last"||l=="past"?c="last":l=="next"?c="next":l=="this"&&(c="this");let f=$E.toDayJSWeekday(e.refDate,s,c);return e.createParsingComponents().assign("weekday",s).imply("day",f.date()).imply("month",f.month()+1).imply("year",f.year())}};Nc.default=Ac});var ry=O(Vi=>{"use strict";var VE=Vi&&Vi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Vi,"__esModule",{value:!0});var ty=Pt(),ey=rt(),KE=VE(xe()),ZE=Z(),XE=Fe(),QE=new RegExp(`(this|last|past|next|after\\s*this)\\s*(${XE.matchAnyPattern(ty.TIME_UNIT_DICTIONARY)})(?=\\s*)(?=\\W|$)`,"i"),JE=1,eS=2,Cc=class extends ZE.AbstractParserWithWordBoundaryChecking{innerPattern(){return QE}innerExtract(e,t){let n=t[JE].toLowerCase(),s=t[eS].toLowerCase(),a=ty.TIME_UNIT_DICTIONARY[s];if(n=="next"||n.startsWith("after")){let c={};return c[a]=1,ey.ParsingComponents.createRelativeFromReference(e.reference,c)}if(n=="last"||n=="past"){let c={};return c[a]=-1,ey.ParsingComponents.createRelativeFromReference(e.reference,c)}let o=e.createParsingComponents(),l=KE.default(e.reference.instant);return s.match(/week/i)?(l=l.add(-l.get("d"),"d"),o.imply("day",l.date()),o.imply("month",l.month()+1),o.imply("year",l.year())):s.match(/month/i)?(l=l.add(-l.date()+1,"d"),o.imply("day",l.date()),o.assign("year",l.year()),o.assign("month",l.month()+1)):s.match(/year/i)&&(l=l.add(-l.date()+1,"d"),l=l.add(-l.month(),"month"),o.imply("day",l.date()),o.imply("month",l.month()+1),o.assign("year",l.year())),o}};Vi.default=Cc});var xr=O(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.ParsingContext=Js.Chrono=void 0;var Xs=rt(),tS=Ic(),Qs=class{constructor(e){e=e||tS.createCasualConfiguration(),this.parsers=[...e.parsers],this.refiners=[...e.refiners]}clone(){return new Qs({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(e,t,n){let s=this.parse(e,t,n);return s.length>0?s[0].start.date():null}parse(e,t,n){let s=new Lo(e,t,n),a=[];return this.parsers.forEach(o=>{let l=Qs.executeParser(s,o);a=a.concat(l)}),a.sort((o,l)=>o.index-l.index),this.refiners.forEach(function(o){a=o.refine(s,a)}),a}static executeParser(e,t){let n=[],s=t.pattern(e),a=e.text,o=e.text,l=s.exec(o);for(;l;){let c=l.index+a.length-o.length;l.index=c;let f=t.extract(e,l);if(!f){o=a.substring(l.index+1),l=s.exec(o);continue}let m=null;f instanceof Xs.ParsingResult?m=f:f instanceof Xs.ParsingComponents?(m=e.createParsingResult(l.index,l[0]),m.start=f):m=e.createParsingResult(l.index,l[0],f),e.debug(()=>console.log(`${t.constructor.name} extracted result ${m}`)),n.push(m),o=a.substring(c+m.text.length),l=s.exec(o)}return n}};Js.Chrono=Qs;var Lo=class{constructor(e,t,n){this.text=e,this.reference=new Xs.ReferenceWithTimezone(t),this.option=n!=null?n:{},this.refDate=this.reference.instant}createParsingComponents(e){return e instanceof Xs.ParsingComponents?e:new Xs.ParsingComponents(this.reference,e)}createParsingResult(e,t,n,s){let a=typeof t=="string"?t:this.text.substring(e,t),o=n?this.createParsingComponents(n):null,l=s?this.createParsingComponents(s):null;return new Xs.ParsingResult(this.reference,e,a,o,l)}debug(e){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(e):this.option.debug.debug(e))}};Js.ParsingContext=Lo});var hs=O(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var ny=xt(),rS=new RegExp("([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)","i"),Yo=1,sy=5,iy=2,ay=3,Fc=4,Lc=class{constructor(e){this.groupNumberMonth=e?ay:iy,this.groupNumberDay=e?iy:ay}pattern(){return rS}extract(e,t){if(t[Yo]=="/"||t[sy]=="/"){t.index+=t[0].length;return}let n=t.index+t[Yo].length,s=t[0].substr(t[Yo].length,t[0].length-t[Yo].length-t[sy].length);if(s.match(/^\d\.\d$/)||s.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)||!t[Fc]&&t[0].indexOf("/")<0)return;let a=e.createParsingResult(n,s),o=parseInt(t[this.groupNumberMonth]),l=parseInt(t[this.groupNumberDay]);if((o<1||o>12)&&o>12)if(l>=1&&l<=12&&o<=31)[l,o]=[o,l];else return null;if(l<1||l>31)return null;if(a.start.assign("day",l),a.start.assign("month",o),t[Fc]){let c=parseInt(t[Fc]),f=ny.findMostLikelyADYear(c);a.start.assign("year",f)}else{let c=ny.findYearClosestToRef(e.refDate,l,o);a.start.imply("year",c)}return a}};Yc.default=Lc});var uy=O(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var oy=Pt(),nS=rt(),sS=Z(),iS=gr(),aS=new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${oy.TIME_UNITS_PATTERN})(?=\\W|$)`,"i"),Uc=class extends sS.AbstractParserWithWordBoundaryChecking{innerPattern(){return aS}innerExtract(e,t){let n=t[1].toLowerCase(),s=oy.parseTimeUnits(t[2]);switch(n){case"last":case"past":case"-":s=iS.reverseTimeUnits(s);break}return nS.ParsingComponents.createRelativeFromReference(e.reference,s)}};Wc.default=Uc});var cy=O($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});var oS=zs(),qc=rt(),uS=Pt(),lS=gr();function ly(r){return r.text.match(/\s+(before|from)$/i)!=null}function cS(r){return r.text.match(/\s+(after|since)$/i)!=null}var jc=class extends oS.MergingRefiner{patternBetween(){return/^\s*$/i}shouldMergeResults(e,t,n){return!e.match(this.patternBetween())||!ly(t)&&!cS(t)?!1:!!n.start.get("day")&&!!n.start.get("month")&&!!n.start.get("year")}mergeResults(e,t,n){let s=uS.parseTimeUnits(t.text);ly(t)&&(s=lS.reverseTimeUnits(s));let a=qc.ParsingComponents.createRelativeFromReference(new qc.ReferenceWithTimezone(n.start.date()),s);return new qc.ParsingResult(n.reference,t.index,`${t.text}${e}${n.text}`,a)}};$c.default=jc});var Ic=O(ot=>{"use strict";var bt=ot&&ot.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ot,"__esModule",{value:!0});ot.createConfiguration=ot.createCasualConfiguration=ot.parseDate=ot.parse=ot.GB=ot.strict=ot.casual=void 0;var dS=bt(lm()),fS=bt(mm()),hS=bt(bm()),pS=bt(Dm()),mS=bt(Sm()),yS=bt(Om()),gS=bt(Rm()),_S=bt(xm()),TS=bt(Pm()),bS=bt(Am()),vS=bt(Im()),wS=on(),DS=bt(Vm()),kS=bt(Km()),ES=bt(Jm()),SS=bt(ry()),Gc=xr(),OS=bt(hs()),MS=bt(uy()),RS=bt(cy());ot.casual=new Gc.Chrono(dy(!1));ot.strict=new Gc.Chrono(Uo(!0,!1));ot.GB=new Gc.Chrono(Uo(!1,!0));function xS(r,e,t){return ot.casual.parse(r,e,t)}ot.parse=xS;function PS(r,e,t){return ot.casual.parseDate(r,e,t)}ot.parseDate=PS;function dy(r=!1){let e=Uo(!1,r);return e.parsers.unshift(new DS.default),e.parsers.unshift(new kS.default),e.parsers.unshift(new pS.default),e.parsers.unshift(new SS.default),e.parsers.unshift(new MS.default),e}ot.createCasualConfiguration=dy;function Uo(r=!0,e=!1){return wS.includeCommonConfiguration({parsers:[new OS.default(e),new dS.default,new fS.default,new hS.default,new ES.default,new mS.default,new yS.default,new gS.default(r),new _S.default(r),new TS.default(r)],refiners:[new RS.default,new vS.default,new bS.default]},r)}ot.createConfiguration=Uo});var fy=O(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var AS=cs(),Bc=class extends AS.AbstractTimeExpressionParser{primaryPrefix(){return"(?:(?:um|von)\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|bis)\\s*"}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}};Hc.default=Bc});var Ki=O(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.parseTimeUnits=We.TIME_UNITS_PATTERN=We.parseYear=We.YEAR_PATTERN=We.parseNumberPattern=We.NUMBER_PATTERN=We.TIME_UNIT_DICTIONARY=We.INTEGER_WORD_DICTIONARY=We.MONTH_DICTIONARY=We.WEEKDAY_DICTIONARY=void 0;var zc=Fe(),NS=xt();We.WEEKDAY_DICTIONARY={sonntag:0,so:0,montag:1,mo:1,dienstag:2,di:2,mittwoch:3,mi:3,donnerstag:4,do:4,freitag:5,fr:5,samstag:6,sa:6};We.MONTH_DICTIONARY={januar:1,j\u00E4nner:1,janner:1,jan:1,"jan.":1,februar:2,feber:2,feb:2,"feb.":2,m\u00E4rz:3,maerz:3,m\u00E4r:3,"m\xE4r.":3,mrz:3,"mrz.":3,april:4,apr:4,"apr.":4,mai:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,august:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,dezember:12,dez:12,"dez.":12};We.INTEGER_WORD_DICTIONARY={eins:1,eine:1,einem:1,einen:1,einer:1,zwei:2,drei:3,vier:4,f\u00FCnf:5,fuenf:5,sechs:6,sieben:7,acht:8,neun:9,zehn:10,elf:11,zw\u00F6lf:12,zwoelf:12};We.TIME_UNIT_DICTIONARY={sek:"second",sekunde:"second",sekunden:"second",min:"minute",minute:"minute",minuten:"minute",h:"hour",std:"hour",stunde:"hour",stunden:"hour",tag:"d",tage:"d",tagen:"d",woche:"week",wochen:"week",monat:"month",monate:"month",monaten:"month",monats:"month",quartal:"quarter",quartals:"quarter",quartale:"quarter",quartalen:"quarter",a:"year",j:"year",jr:"year",jahr:"year",jahre:"year",jahren:"year",jahres:"year"};We.NUMBER_PATTERN=`(?:${zc.matchAnyPattern(We.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s*an?)?|an?\\b(?:\\s*few)?|few|several|a?\\s*couple\\s*(?:of)?)`;function py(r){let e=r.toLowerCase();return We.INTEGER_WORD_DICTIONARY[e]!==void 0?We.INTEGER_WORD_DICTIONARY[e]:e==="a"||e==="an"?1:e.match(/few/)?3:e.match(/half/)?.5:e.match(/couple/)?2:e.match(/several/)?7:parseFloat(e)}We.parseNumberPattern=py;We.YEAR_PATTERN="(?:[0-9]{1,4}(?:\\s*[vn]\\.?\\s*(?:C(?:hr)?|(?:u\\.?|d\\.?(?:\\s*g\\.?)?)?\\s*Z)\\.?|\\s*(?:u\\.?|d\\.?(?:\\s*g\\.)?)\\s*Z\\.?)?)";function CS(r){if(/v/i.test(r))return-parseInt(r.replace(/[^0-9]+/gi,""));if(/n/i.test(r))return parseInt(r.replace(/[^0-9]+/gi,""));if(/z/i.test(r))return parseInt(r.replace(/[^0-9]+/gi,""));let e=parseInt(r);return NS.findMostLikelyADYear(e)}We.parseYear=CS;var my=`(${We.NUMBER_PATTERN})\\s{0,5}(${zc.matchAnyPattern(We.TIME_UNIT_DICTIONARY)})\\s{0,5}`,hy=new RegExp(my,"i");We.TIME_UNITS_PATTERN=zc.repeatedTimeunitPattern("",my);function IS(r){let e={},t=r,n=hy.exec(t);for(;n;)FS(e,n),t=t.substring(n[0].length),n=hy.exec(t);return e}We.parseTimeUnits=IS;function FS(r,e){let t=py(e[1]),n=We.TIME_UNIT_DICTIONARY[e[2].toLowerCase()];r[n]=t}});var gy=O(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var yy=Ki(),LS=Fe(),YS=Z(),US=fs(),WS=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:a[mn]\\s*?)?(?:(diese[mn]|letzte[mn]|n(?:\xE4|ae)chste[mn])\\s*)?(${LS.matchAnyPattern(yy.WEEKDAY_DICTIONARY)})(?:\\s*(?:\\,|\\)|\\\uFF09))?(?:\\s*(diese|letzte|n(?:\xE4|ae)chste)\\s*woche)?(?=\\W|$)`,"i"),qS=1,jS=3,$S=2,Vc=class extends YS.AbstractParserWithWordBoundaryChecking{innerPattern(){return WS}innerExtract(e,t){let n=t[$S].toLowerCase(),s=yy.WEEKDAY_DICTIONARY[n],a=t[qS],o=t[jS],l=a||o;l=l||"",l=l.toLowerCase();let c=null;l.match(/letzte/)?c="last":l.match(/chste/)?c="next":l.match(/diese/)&&(c="this");let f=US.toDayJSWeekday(e.refDate,s,c);return e.createParsingComponents().assign("weekday",s).imply("day",f.date()).imply("month",f.month()+1).imply("year",f.year())}};Kc.default=Vc});var vy=O(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var Ln=mt(),GS=new RegExp("(^|\\s|T)(?:(?:um|von)\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s)?)?(?:\\s*Uhr)?(?:\\s*(morgens|vormittags|nachmittags|abends|nachts|am\\s+(?:Morgen|Vormittag|Nachmittag|Abend)|in\\s+der\\s+Nacht))?(?=\\W|$)","i"),BS=new RegExp("^\\s*(\\-|\\\u2013|\\~|\\\u301C|bis(?:\\s+um)?|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s)?)?(?:\\s*Uhr)?(?:\\s*(morgens|vormittags|nachmittags|abends|nachts|am\\s+(?:Morgen|Vormittag|Nachmittag|Abend)|in\\s+der\\s+Nacht))?(?=\\W|$)","i"),HS=2,_y=3,Ty=4,by=5,ei=class{pattern(e){return GS}extract(e,t){let n=e.createParsingResult(t.index+t[1].length,t[0].substring(t[1].length));if(n.text.match(/^\d{4}$/)||(n.start=ei.extractTimeComponent(n.start.clone(),t),!n.start))return t.index+=t[0].length,null;let s=e.text.substring(t.index+t[0].length),a=BS.exec(s);return a&&(n.end=ei.extractTimeComponent(n.start.clone(),a),n.end&&(n.text+=a[0])),n}static extractTimeComponent(e,t){let n=0,s=0,a=null;if(n=parseInt(t[HS]),t[_y]!=null&&(s=parseInt(t[_y])),s>=60||n>24)return null;if(n>=12&&(a=Ln.Meridiem.PM),t[by]!=null){if(n>12)return null;let o=t[by].toLowerCase();o.match(/morgen|vormittag/)&&(a=Ln.Meridiem.AM,n==12&&(n=0)),o.match(/nachmittag|abend/)&&(a=Ln.Meridiem.PM,n!=12&&(n+=12)),o.match(/nacht/)&&(n==12?(a=Ln.Meridiem.AM,n=0):n<6?a=Ln.Meridiem.AM:(a=Ln.Meridiem.PM,n+=12))}if(e.assign("hour",n),e.assign("minute",s),a!==null?e.assign("meridiem",a):n<12?e.imply("meridiem",Ln.Meridiem.AM):e.imply("meridiem",Ln.Meridiem.PM),t[Ty]!=null){let o=parseInt(t[Ty]);if(o>=60)return null;e.assign("second",o)}return e}};Zc.default=ei});var wy=O(Zi=>{"use strict";var zS=Zi&&Zi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Zi,"__esModule",{value:!0});var VS=zS(jr()),Xc=class extends VS.default{patternBetween(){return/^\s*(bis(?:\s*(?:am|zum))?|-)\s*$/i}};Zi.default=Xc});var Dy=O(Xi=>{"use strict";var KS=Xi&&Xi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xi,"__esModule",{value:!0});var ZS=KS(an()),Qc=class extends ZS.default{patternBetween(){return new RegExp("^\\s*(T|um|am|,|-)?\\s*$")}};Xi.default=Qc});var Jc=O(Ji=>{"use strict";var XS=Ji&&Ji.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ji,"__esModule",{value:!0});var QS=XS(xe()),ps=mt(),JS=Z(),eO=yr(),tO=gr(),Qi=class extends JS.AbstractParserWithWordBoundaryChecking{innerPattern(e){return/(diesen)?\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht)(?=\W|$)/i}innerExtract(e,t){let n=QS.default(e.refDate),s=t[2].toLowerCase(),a=e.createParsingComponents();return eO.implySimilarTime(a,n),Qi.extractTimeComponents(a,s)}static extractTimeComponents(e,t){switch(t){case"morgen":e.imply("hour",6),e.imply("minute",0),e.imply("second",0),e.imply("meridiem",ps.Meridiem.AM);break;case"vormittag":e.imply("hour",9),e.imply("minute",0),e.imply("second",0),e.imply("meridiem",ps.Meridiem.AM);break;case"mittag":case"mittags":e.imply("hour",12),e.imply("minute",0),e.imply("second",0),e.imply("meridiem",ps.Meridiem.AM);break;case"nachmittag":e.imply("hour",15),e.imply("minute",0),e.imply("second",0),e.imply("meridiem",ps.Meridiem.PM);break;case"abend":e.imply("hour",18),e.imply("minute",0),e.imply("second",0),e.imply("meridiem",ps.Meridiem.PM);break;case"nacht":e.imply("hour",22),e.imply("minute",0),e.imply("second",0),e.imply("meridiem",ps.Meridiem.PM);break;case"mitternacht":e.get("hour")>1&&(e=tO.addImpliedTimeUnits(e,{day:1})),e.imply("hour",0),e.imply("minute",0),e.imply("second",0),e.imply("meridiem",ps.Meridiem.AM);break}return e}};Ji.default=Qi});var Sy=O(Pr=>{"use strict";var rO=Pr&&Pr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),nO=Pr&&Pr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),sO=Pr&&Pr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&rO(e,r,t);return nO(e,r),e},Ey=Pr&&Pr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pr,"__esModule",{value:!0});var iO=Ey(xe()),aO=Z(),ms=yr(),oO=Ey(Jc()),ky=sO(ln()),uO=new RegExp("(jetzt|heute|morgen|\xFCbermorgen|uebermorgen|gestern|vorgestern|letzte\\s*nacht)(?:\\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht))?(?=\\W|$)","i"),lO=1,cO=2,ed=class extends aO.AbstractParserWithWordBoundaryChecking{innerPattern(e){return uO}innerExtract(e,t){let n=iO.default(e.refDate),s=(t[lO]||"").toLowerCase(),a=(t[cO]||"").toLowerCase(),o=e.createParsingComponents();switch(s){case"jetzt":o=ky.now(e.reference);break;case"heute":o=ky.today(e.reference);break;case"morgen":ms.assignTheNextDay(o,n);break;case"\xFCbermorgen":case"uebermorgen":n=n.add(1,"day"),ms.assignTheNextDay(o,n);break;case"gestern":n=n.add(-1,"day"),ms.assignSimilarDate(o,n),ms.implySimilarTime(o,n);break;case"vorgestern":n=n.add(-2,"day"),ms.assignSimilarDate(o,n),ms.implySimilarTime(o,n);break;default:s.match(/letzte\s*nacht/)&&(n.hour()>6&&(n=n.add(-1,"day")),ms.assignSimilarDate(o,n),o.imply("hour",0));break}return a&&(o=oO.default.extractTimeComponents(o,a)),o}};Pr.default=ed});var Ay=O(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var dO=xt(),xy=Ki(),Py=Ki(),fO=Fe(),hO=Z(),pO=new RegExp(`(?:am\\s*?)?(?:den\\s*?)?([0-9]{1,2})\\.(?:\\s*(?:bis(?:\\s*(?:am|zum))?|\\-|\\\u2013|\\s)\\s*([0-9]{1,2})\\.?)?\\s*(${fO.matchAnyPattern(xy.MONTH_DICTIONARY)})(?:(?:-|/|,?\\s*)(${Py.YEAR_PATTERN}(?![^\\s]\\d)))?(?=\\W|$)`,"i"),Oy=1,My=2,mO=3,Ry=4,td=class extends hO.AbstractParserWithWordBoundaryChecking{innerPattern(){return pO}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=xy.MONTH_DICTIONARY[t[mO].toLowerCase()],a=parseInt(t[Oy]);if(a>31)return t.index=t.index+t[Oy].length,null;if(n.start.assign("month",s),n.start.assign("day",a),t[Ry]){let o=Py.parseYear(t[Ry]);n.start.assign("year",o)}else{let o=dO.findYearClosestToRef(e.refDate,a,s);n.start.imply("year",o)}if(t[My]){let o=parseInt(t[My]);n.end=n.start.clone(),n.end.assign("day",o)}return n}};rd.default=td});var Ny=O(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});var Wo=Ki(),yO=rt(),gO=Z(),_O=gr(),TO=Fe(),nd=class extends gO.AbstractParserWithWordBoundaryChecking{constructor(){super()}innerPattern(){return new RegExp(`(?:\\s*((?:n\xE4chste|kommende|folgende|letzte|vergangene|vorige|vor(?:her|an)gegangene)(?:s|n|m|r)?|vor|in)\\s*)?(${Wo.NUMBER_PATTERN})?(?:\\s*(n\xE4chste|kommende|folgende|letzte|vergangene|vorige|vor(?:her|an)gegangene)(?:s|n|m|r)?)?\\s*(${TO.matchAnyPattern(Wo.TIME_UNIT_DICTIONARY)})`,"i")}innerExtract(e,t){let n=t[2]?Wo.parseNumberPattern(t[2]):1,s=Wo.TIME_UNIT_DICTIONARY[t[4].toLowerCase()],a={};a[s]=n;let o=t[1]||t[3]||"";if(o=o.toLowerCase(),!!o)return(/vor/.test(o)||/letzte/.test(o)||/vergangen/.test(o))&&(a=_O.reverseTimeUnits(a)),yO.ParsingComponents.createRelativeFromReference(e.reference,a)}};sd.default=nd});var Fy=O(vt=>{"use strict";var Ar=vt&&vt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConfiguration=vt.createCasualConfiguration=vt.parseDate=vt.parse=vt.strict=vt.casual=void 0;var bO=on(),Cy=xr(),vO=Ar(hs()),wO=Ar(Sc()),DO=Ar(fy()),kO=Ar(gy()),EO=Ar(vy()),SO=Ar(wy()),OO=Ar(Dy()),MO=Ar(Sy()),RO=Ar(Jc()),xO=Ar(Ay()),PO=Ar(Ny());vt.casual=new Cy.Chrono(Iy());vt.strict=new Cy.Chrono(id(!0));function AO(r,e,t){return vt.casual.parse(r,e,t)}vt.parse=AO;function NO(r,e,t){return vt.casual.parseDate(r,e,t)}vt.parseDate=NO;function Iy(r=!0){let e=id(!1,r);return e.parsers.unshift(new RO.default),e.parsers.unshift(new MO.default),e.parsers.unshift(new PO.default),e}vt.createCasualConfiguration=Iy;function id(r=!0,e=!0){return bO.includeCommonConfiguration({parsers:[new wO.default,new vO.default(e),new DO.default,new EO.default,new xO.default,new kO.default],refiners:[new SO.default,new OO.default]},r)}vt.createConfiguration=id});var Yy=O(Nr=>{"use strict";var CO=Nr&&Nr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),IO=Nr&&Nr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),FO=Nr&&Nr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&CO(e,r,t);return IO(e,r),e},LO=Nr&&Nr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Nr,"__esModule",{value:!0});var YO=LO(xe()),UO=mt(),WO=Z(),Ly=yr(),qo=FO(ln()),ad=class extends WO.AbstractParserWithWordBoundaryChecking{innerPattern(e){return/(maintenant|aujourd'hui|demain|hier|cette\s*nuit|la\s*veille)(?=\W|$)/i}innerExtract(e,t){let n=YO.default(e.refDate),s=t[0].toLowerCase(),a=e.createParsingComponents();switch(s){case"maintenant":return qo.now(e.reference);case"aujourd'hui":return qo.today(e.reference);case"hier":return qo.yesterday(e.reference);case"demain":return qo.tomorrow(e.reference);default:s.match(/cette\s*nuit/)?(Ly.assignSimilarDate(a,n),a.imply("hour",22),a.imply("meridiem",UO.Meridiem.PM)):s.match(/la\s*veille/)&&(n=n.add(-1,"day"),Ly.assignSimilarDate(a,n),a.imply("hour",0))}return a}};Nr.default=ad});var Uy=O(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var ea=mt(),qO=Z(),od=class extends qO.AbstractParserWithWordBoundaryChecking{innerPattern(e){return/(cet?)?\s*(matin|soir|après-midi|aprem|a midi|à minuit)(?=\W|$)/i}innerExtract(e,t){let n=t[2].toLowerCase(),s=e.createParsingComponents();switch(n){case"apr\xE8s-midi":case"aprem":s.imply("hour",14),s.imply("minute",0),s.imply("meridiem",ea.Meridiem.PM);break;case"soir":s.imply("hour",18),s.imply("minute",0),s.imply("meridiem",ea.Meridiem.PM);break;case"matin":s.imply("hour",8),s.imply("minute",0),s.imply("meridiem",ea.Meridiem.AM);break;case"a midi":s.imply("hour",12),s.imply("minute",0),s.imply("meridiem",ea.Meridiem.AM);break;case"\xE0 minuit":s.imply("hour",0),s.imply("meridiem",ea.Meridiem.AM);break}return s}};ud.default=od});var Wy=O(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var jO=cs(),ld=class extends jO.AbstractTimeExpressionParser{primaryPrefix(){return"(?:(?:[\xE0a])\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|[\xE0a]|\\?)\\s*"}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}};cd.default=ld});var qy=O(ta=>{"use strict";var $O=ta&&ta.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ta,"__esModule",{value:!0});var GO=$O(an()),dd=class extends GO.default{patternBetween(){return new RegExp("^\\s*(T|\xE0|a|vers|de|,|-)?\\s*$")}};ta.default=dd});var jy=O(ra=>{"use strict";var BO=ra&&ra.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ra,"__esModule",{value:!0});var HO=BO(jr()),fd=class extends HO.default{patternBetween(){return/^\s*(à|a|-)\s*$/i}};ra.default=fd});var Yn=O(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.parseTimeUnits=Pe.TIME_UNITS_PATTERN=Pe.parseYear=Pe.YEAR_PATTERN=Pe.parseOrdinalNumberPattern=Pe.ORDINAL_NUMBER_PATTERN=Pe.parseNumberPattern=Pe.NUMBER_PATTERN=Pe.TIME_UNIT_DICTIONARY=Pe.INTEGER_WORD_DICTIONARY=Pe.MONTH_DICTIONARY=Pe.WEEKDAY_DICTIONARY=void 0;var hd=Fe();Pe.WEEKDAY_DICTIONARY={dimanche:0,dim:0,lundi:1,lun:1,mardi:2,mar:2,mercredi:3,mer:3,jeudi:4,jeu:4,vendredi:5,ven:5,samedi:6,sam:6};Pe.MONTH_DICTIONARY={janvier:1,jan:1,"jan.":1,f\u00E9vrier:2,f\u00E9v:2,"f\xE9v.":2,fevrier:2,fev:2,"fev.":2,mars:3,mar:3,"mar.":3,avril:4,avr:4,"avr.":4,mai:5,juin:6,jun:6,juillet:7,juil:7,jul:7,"jul.":7,ao\u00FBt:8,aout:8,septembre:9,sep:9,"sep.":9,sept:9,"sept.":9,octobre:10,oct:10,"oct.":10,novembre:11,nov:11,"nov.":11,d\u00E9cembre:12,decembre:12,dec:12,"dec.":12};Pe.INTEGER_WORD_DICTIONARY={un:1,deux:2,trois:3,quatre:4,cinq:5,six:6,sept:7,huit:8,neuf:9,dix:10,onze:11,douze:12,treize:13};Pe.TIME_UNIT_DICTIONARY={sec:"second",seconde:"second",secondes:"second",min:"minute",mins:"minute",minute:"minute",minutes:"minute",h:"hour",hr:"hour",hrs:"hour",heure:"hour",heures:"hour",jour:"d",jours:"d",semaine:"week",semaines:"week",mois:"month",trimestre:"quarter",trimestres:"quarter",ans:"year",ann\u00E9e:"year",ann\u00E9es:"year"};Pe.NUMBER_PATTERN=`(?:${hd.matchAnyPattern(Pe.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|une?\\b|quelques?|demi-?)`;function Gy(r){let e=r.toLowerCase();return Pe.INTEGER_WORD_DICTIONARY[e]!==void 0?Pe.INTEGER_WORD_DICTIONARY[e]:e==="une"||e==="un"?1:e.match(/quelques?/)?3:e.match(/demi-?/)?.5:parseFloat(e)}Pe.parseNumberPattern=Gy;Pe.ORDINAL_NUMBER_PATTERN="(?:[0-9]{1,2}(?:er)?)";function zO(r){let e=r.toLowerCase();return e=e.replace(/(?:er)$/i,""),parseInt(e)}Pe.parseOrdinalNumberPattern=zO;Pe.YEAR_PATTERN="(?:[1-9][0-9]{0,3}\\s*(?:AC|AD|p\\.\\s*C(?:hr?)?\\.\\s*n\\.)|[1-2][0-9]{3}|[5-9][0-9])";function VO(r){if(/AC/i.test(r))return r=r.replace(/BC/i,""),-parseInt(r);if(/AD/i.test(r)||/C/i.test(r))return r=r.replace(/[^\d]+/i,""),parseInt(r);let e=parseInt(r);return e<100&&(e>50?e=e+1900:e=e+2e3),e}Pe.parseYear=VO;var By=`(${Pe.NUMBER_PATTERN})\\s{0,5}(${hd.matchAnyPattern(Pe.TIME_UNIT_DICTIONARY)})\\s{0,5}`,$y=new RegExp(By,"i");Pe.TIME_UNITS_PATTERN=hd.repeatedTimeunitPattern("",By);function KO(r){let e={},t=r,n=$y.exec(t);for(;n;)ZO(e,n),t=t.substring(n[0].length),n=$y.exec(t);return e}Pe.parseTimeUnits=KO;function ZO(r,e){let t=Gy(e[1]),n=Pe.TIME_UNIT_DICTIONARY[e[2].toLowerCase()];r[n]=t}});var zy=O(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var Hy=Yn(),XO=Fe(),QO=Z(),JO=fs(),eM=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:(?:ce)\\s*)?(${XO.matchAnyPattern(Hy.WEEKDAY_DICTIONARY)})(?:\\s*(?:\\,|\\)|\\\uFF09))?(?:\\s*(dernier|prochain)\\s*)?(?=\\W|\\d|$)`,"i"),tM=1,rM=2,pd=class extends QO.AbstractParserWithWordBoundaryChecking{innerPattern(){return eM}innerExtract(e,t){let n=t[tM].toLowerCase(),s=Hy.WEEKDAY_DICTIONARY[n];if(s===void 0)return null;let a=t[rM];a=a||"",a=a.toLowerCase();let o=null;a=="dernier"?o="last":a=="prochain"&&(o="next");let l=JO.toDayJSWeekday(e.refDate,s,o);return e.createParsingComponents().assign("weekday",s).imply("day",l.date()).imply("month",l.month()+1).imply("year",l.year())}};md.default=pd});var Xy=O(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});var na=mt(),nM=new RegExp("(^|\\s|T)(?:(?:[\xE0a])\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)","i"),sM=new RegExp("^\\s*(\\-|\\\u2013|\\~|\\\u301C|[\xE0a]|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)","i"),iM=2,Vy=3,Ky=4,Zy=5,ti=class{pattern(e){return nM}extract(e,t){let n=e.createParsingResult(t.index+t[1].length,t[0].substring(t[1].length));if(n.text.match(/^\d{4}$/)||(n.start=ti.extractTimeComponent(n.start.clone(),t),!n.start))return t.index+=t[0].length,null;let s=e.text.substring(t.index+t[0].length),a=sM.exec(s);return a&&(n.end=ti.extractTimeComponent(n.start.clone(),a),n.end&&(n.text+=a[0])),n}static extractTimeComponent(e,t){let n=0,s=0,a=null;if(n=parseInt(t[iM]),t[Vy]!=null&&(s=parseInt(t[Vy])),s>=60||n>24)return null;if(n>=12&&(a=na.Meridiem.PM),t[Zy]!=null){if(n>12)return null;let o=t[Zy][0].toLowerCase();o=="a"&&(a=na.Meridiem.AM,n==12&&(n=0)),o=="p"&&(a=na.Meridiem.PM,n!=12&&(n+=12))}if(e.assign("hour",n),e.assign("minute",s),a!==null?e.assign("meridiem",a):n<12?e.imply("meridiem",na.Meridiem.AM):e.imply("meridiem",na.Meridiem.PM),t[Ky]!=null){let o=parseInt(t[Ky]);if(o>=60)return null;e.assign("second",o)}return e}};yd.default=ti});var ng=O(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});var aM=xt(),tg=Yn(),rg=Yn(),jo=Yn(),oM=Fe(),uM=Z(),lM=new RegExp(`(?:on\\s*?)?(${jo.ORDINAL_NUMBER_PATTERN})(?:\\s*(?:au|\\-|\\\u2013|jusqu'au?|\\s)\\s*(${jo.ORDINAL_NUMBER_PATTERN}))?(?:-|/|\\s*(?:de)?\\s*)(${oM.matchAnyPattern(tg.MONTH_DICTIONARY)})(?:(?:-|/|,?\\s*)(${rg.YEAR_PATTERN}(?![^\\s]\\d)))?(?=\\W|$)`,"i"),Qy=1,Jy=2,cM=3,eg=4,gd=class extends uM.AbstractParserWithWordBoundaryChecking{innerPattern(){return lM}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=tg.MONTH_DICTIONARY[t[cM].toLowerCase()],a=jo.parseOrdinalNumberPattern(t[Qy]);if(a>31)return t.index=t.index+t[Qy].length,null;if(n.start.assign("month",s),n.start.assign("day",a),t[eg]){let o=rg.parseYear(t[eg]);n.start.assign("year",o)}else{let o=aM.findYearClosestToRef(e.refDate,a,s);n.start.imply("year",o)}if(t[Jy]){let o=jo.parseOrdinalNumberPattern(t[Jy]);n.end=n.start.clone(),n.end.assign("day",o)}return n}};_d.default=gd});var ig=O(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});var sg=Yn(),dM=rt(),fM=Z(),hM=gr(),Td=class extends fM.AbstractParserWithWordBoundaryChecking{constructor(){super()}innerPattern(){return new RegExp(`il y a\\s*(${sg.TIME_UNITS_PATTERN})(?=(?:\\W|$))`,"i")}innerExtract(e,t){let n=sg.parseTimeUnits(t[1]),s=hM.reverseTimeUnits(n);return dM.ParsingComponents.createRelativeFromReference(e.reference,s)}};bd.default=Td});var og=O(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});var ag=Yn(),pM=rt(),mM=Z(),vd=class extends mM.AbstractParserWithWordBoundaryChecking{innerPattern(){return new RegExp(`(?:dans|en|pour|pendant|de)\\s*(${ag.TIME_UNITS_PATTERN})(?=\\W|$)`,"i")}innerExtract(e,t){let n=ag.parseTimeUnits(t[1]);return pM.ParsingComponents.createRelativeFromReference(e.reference,n)}};wd.default=vd});var ug=O(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var $o=Yn(),yM=rt(),gM=Z(),_M=gr(),TM=Fe(),Dd=class extends gM.AbstractParserWithWordBoundaryChecking{constructor(){super()}innerPattern(){return new RegExp(`(?:les?|la|l'|du|des?)\\s*(${$o.NUMBER_PATTERN})?(?:\\s*(prochaine?s?|derni[e\xE8]re?s?|pass[\xE9e]e?s?|pr[\xE9e]c[\xE9e]dents?|suivante?s?))?\\s*(${TM.matchAnyPattern($o.TIME_UNIT_DICTIONARY)})(?:\\s*(prochaine?s?|derni[e\xE8]re?s?|pass[\xE9e]e?s?|pr[\xE9e]c[\xE9e]dents?|suivante?s?))?`,"i")}innerExtract(e,t){let n=t[1]?$o.parseNumberPattern(t[1]):1,s=$o.TIME_UNIT_DICTIONARY[t[3].toLowerCase()],a={};a[s]=n;let o=t[2]||t[4]||"";if(o=o.toLowerCase(),!!o)return(/derni[eè]re?s?/.test(o)||/pass[ée]e?s?/.test(o)||/pr[ée]c[ée]dents?/.test(o))&&(a=_M.reverseTimeUnits(a)),yM.ParsingComponents.createRelativeFromReference(e.reference,a)}};kd.default=Dd});var dg=O(wt=>{"use strict";var _r=wt&&wt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wt,"__esModule",{value:!0});wt.createConfiguration=wt.createCasualConfiguration=wt.parseDate=wt.parse=wt.strict=wt.casual=void 0;var bM=on(),lg=xr(),vM=_r(Yy()),wM=_r(Uy()),DM=_r(hs()),kM=_r(Wy()),EM=_r(qy()),SM=_r(jy()),OM=_r(zy()),MM=_r(Xy()),RM=_r(ng()),xM=_r(ig()),PM=_r(og()),AM=_r(ug());wt.casual=new lg.Chrono(cg());wt.strict=new lg.Chrono(Ed(!0));function NM(r,e,t){return wt.casual.parse(r,e,t)}wt.parse=NM;function CM(r,e,t){return wt.casual.parseDate(r,e,t)}wt.parseDate=CM;function cg(r=!0){let e=Ed(!1,r);return e.parsers.unshift(new vM.default),e.parsers.unshift(new wM.default),e.parsers.unshift(new AM.default),e}wt.createCasualConfiguration=cg;function Ed(r=!0,e=!0){return bM.includeCommonConfiguration({parsers:[new DM.default(e),new RM.default,new kM.default,new MM.default,new xM.default,new PM.default,new OM.default],refiners:[new EM.default,new SM.default]},r)}wt.createConfiguration=Ed});var fg=O(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.toHankaku=void 0;function IM(r){return String(r).replace(/\u2019/g,"'").replace(/\u201D/g,'"').replace(/\u3000/g," ").replace(/\uFFE5/g,"\xA5").replace(/[\uFF01\uFF03-\uFF06\uFF08\uFF09\uFF0C-\uFF19\uFF1C-\uFF1F\uFF21-\uFF3B\uFF3D\uFF3F\uFF41-\uFF5B\uFF5D\uFF5E]/g,FM)}Go.toHankaku=IM;function FM(r){return String.fromCharCode(r.charCodeAt(0)-65248)}});var pg=O(sa=>{"use strict";var LM=sa&&sa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(sa,"__esModule",{value:!0});var Sd=fg(),YM=xt(),UM=LM(xe()),WM=/(?:(?:([同今本])|((昭和|平成|令和)?([0-90-9]{1,4}|元)))年\s*)?([0-90-9]{1,2})月\s*([0-90-9]{1,2})日/i,hg=1,qM=2,Od=3,jM=4,$M=5,GM=6,Md=class{pattern(){return WM}extract(e,t){let n=parseInt(Sd.toHankaku(t[$M])),s=parseInt(Sd.toHankaku(t[GM])),a=e.createParsingComponents({day:s,month:n});if(t[hg]&&t[hg].match("\u540C|\u4ECA|\u672C")){let o=UM.default(e.refDate);a.assign("year",o.year())}if(t[qM]){let o=t[jM],l=o=="\u5143"?1:parseInt(Sd.toHankaku(o));t[Od]=="\u4EE4\u548C"?l+=2018:t[Od]=="\u5E73\u6210"?l+=1988:t[Od]=="\u662D\u548C"&&(l+=1925),a.assign("year",l)}else{let o=YM.findYearClosestToRef(e.refDate,s,n);a.imply("year",o)}return a}};sa.default=Md});var mg=O(ia=>{"use strict";var BM=ia&&ia.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ia,"__esModule",{value:!0});var HM=BM(jr()),Rd=class extends HM.default{patternBetween(){return/^\s*(から|ー|-)\s*$/i}};ia.default=Rd});var gg=O(Cr=>{"use strict";var zM=Cr&&Cr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),VM=Cr&&Cr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),KM=Cr&&Cr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&zM(e,r,t);return VM(e,r),e},ZM=Cr&&Cr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Cr,"__esModule",{value:!0});var XM=ZM(xe()),yg=mt(),xd=KM(ln()),QM=/今日|当日|昨日|明日|今夜|今夕|今晩|今朝/i,Pd=class{pattern(){return QM}extract(e,t){let n=t[0],s=XM.default(e.refDate),a=e.createParsingComponents();switch(n){case"\u6628\u65E5":return xd.yesterday(e.reference);case"\u660E\u65E5":return xd.tomorrow(e.reference);case"\u4ECA\u65E5":case"\u5F53\u65E5":return xd.today(e.reference)}return n=="\u4ECA\u591C"||n=="\u4ECA\u5915"||n=="\u4ECA\u6669"?(a.imply("hour",22),a.assign("meridiem",yg.Meridiem.PM)):n.match("\u4ECA\u671D")&&(a.imply("hour",6),a.assign("meridiem",yg.Meridiem.AM)),a.assign("day",s.date()),a.assign("month",s.month()+1),a.assign("year",s.year()),a}};Cr.default=Pd});var bg=O(Dt=>{"use strict";var Ad=Dt&&Dt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.createConfiguration=Dt.createCasualConfiguration=Dt.parseDate=Dt.parse=Dt.strict=Dt.casual=void 0;var JM=Ad(pg()),eR=Ad(mg()),tR=Ad(gg()),_g=xr();Dt.casual=new _g.Chrono(Tg());Dt.strict=new _g.Chrono(Nd());function rR(r,e,t){return Dt.casual.parse(r,e,t)}Dt.parse=rR;function nR(r,e,t){return Dt.casual.parseDate(r,e,t)}Dt.parseDate=nR;function Tg(){let r=Nd();return r.parsers.unshift(new tR.default),r}Dt.createCasualConfiguration=Tg;function Nd(){return{parsers:[new JM.default],refiners:[new eR.default]}}Dt.createConfiguration=Nd});var Bo=O(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.parseYear=Gr.YEAR_PATTERN=Gr.MONTH_DICTIONARY=Gr.WEEKDAY_DICTIONARY=void 0;Gr.WEEKDAY_DICTIONARY={domingo:0,dom:0,segunda:1,"segunda-feira":1,seg:1,ter\u00E7a:2,"ter\xE7a-feira":2,ter:2,quarta:3,"quarta-feira":3,qua:3,quinta:4,"quinta-feira":4,qui:4,sexta:5,"sexta-feira":5,sex:5,s\u00E1bado:6,sabado:6,sab:6};Gr.MONTH_DICTIONARY={janeiro:1,jan:1,"jan.":1,fevereiro:2,fev:2,"fev.":2,mar\u00E7o:3,mar:3,"mar.":3,abril:4,abr:4,"abr.":4,maio:5,mai:5,"mai.":5,junho:6,jun:6,"jun.":6,julho:7,jul:7,"jul.":7,agosto:8,ago:8,"ago.":8,setembro:9,set:9,"set.":9,outubro:10,out:10,"out.":10,novembro:11,nov:11,"nov.":11,dezembro:12,dez:12,"dez.":12};Gr.YEAR_PATTERN="[0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?";function sR(r){if(r.match(/^[0-9]{1,4}$/)){let e=parseInt(r);return e<100&&(e>50?e=e+1900:e=e+2e3),e}return r.match(/a\.?\s*c\.?/i)?(r=r.replace(/a\.?\s*c\.?/i,""),-parseInt(r)):parseInt(r)}Gr.parseYear=sR});var wg=O(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});var vg=Bo(),iR=Fe(),aR=Z(),oR=fs(),uR=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:(este|esta|passado|pr[o\xF3]ximo)\\s*)?(${iR.matchAnyPattern(vg.WEEKDAY_DICTIONARY)})(?:\\s*(?:\\,|\\)|\\\uFF09))?(?:\\s*(este|esta|passado|pr[\xF3o]ximo)\\s*semana)?(?=\\W|\\d|$)`,"i"),lR=1,cR=2,dR=3,Cd=class extends aR.AbstractParserWithWordBoundaryChecking{innerPattern(){return uR}innerExtract(e,t){let n=t[cR].toLowerCase(),s=vg.WEEKDAY_DICTIONARY[n];if(s===void 0)return null;let a=t[lR],o=t[dR],l=a||o||"";l=l.toLowerCase();let c=null;l=="passado"?c="this":l=="pr\xF3ximo"||l=="proximo"?c="next":l=="este"&&(c="this");let f=oR.toDayJSWeekday(e.refDate,s,c);return e.createParsingComponents().assign("weekday",s).imply("day",f.date()).imply("month",f.month()+1).imply("year",f.year())}};Id.default=Cd});var Dg=O(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});var fR=cs(),Fd=class extends fR.AbstractTimeExpressionParser{primaryPrefix(){return"(?:(?:ao?|\xE0s?|das|da|de|do)\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|a(?:o)?|\\?)\\s*"}};Ld.default=Fd});var kg=O(aa=>{"use strict";var hR=aa&&aa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(aa,"__esModule",{value:!0});var pR=hR(an()),Yd=class extends pR.default{patternBetween(){return new RegExp("^\\s*(?:,|\xE0)?\\s*$")}};aa.default=Yd});var Eg=O(oa=>{"use strict";var mR=oa&&oa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(oa,"__esModule",{value:!0});var yR=mR(jr()),Ud=class extends yR.default{patternBetween(){return/^\s*(?:-)\s*$/i}};oa.default=Ud});var Pg=O(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var gR=xt(),Rg=Bo(),xg=Bo(),_R=Fe(),TR=Z(),bR=new RegExp(`([0-9]{1,2})(?:\xBA|\xAA|\xB0)?(?:\\s*(?:desde|de|\\-|\\\u2013|ao?|\\s)\\s*([0-9]{1,2})(?:\xBA|\xAA|\xB0)?)?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)(${_R.matchAnyPattern(Rg.MONTH_DICTIONARY)})(?:\\s*(?:de|,)?\\s*(${xg.YEAR_PATTERN}))?(?=\\W|$)`,"i"),Sg=1,Og=2,vR=3,Mg=4,Wd=class extends TR.AbstractParserWithWordBoundaryChecking{innerPattern(){return bR}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=Rg.MONTH_DICTIONARY[t[vR].toLowerCase()],a=parseInt(t[Sg]);if(a>31)return t.index=t.index+t[Sg].length,null;if(n.start.assign("month",s),n.start.assign("day",a),t[Mg]){let o=xg.parseYear(t[Mg]);n.start.assign("year",o)}else{let o=gR.findYearClosestToRef(e.refDate,a,s);n.start.imply("year",o)}if(t[Og]){let o=parseInt(t[Og]);n.end=n.start.clone(),n.end.assign("day",o)}return n}};qd.default=Wd});var Ag=O(cn=>{"use strict";var wR=cn&&cn.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),DR=cn&&cn.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),kR=cn&&cn.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&wR(e,r,t);return DR(e,r),e};Object.defineProperty(cn,"__esModule",{value:!0});var ER=Z(),Ho=kR(ln()),jd=class extends ER.AbstractParserWithWordBoundaryChecking{innerPattern(e){return/(agora|hoje|amanha|amanhã|ontem)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),s=e.createParsingComponents();switch(n){case"agora":return Ho.now(e.reference);case"hoje":return Ho.today(e.reference);case"amanha":case"amanh\xE3":return Ho.tomorrow(e.reference);case"ontem":return Ho.yesterday(e.reference)}return s}};cn.default=jd});var Ng=O(ua=>{"use strict";var SR=ua&&ua.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ua,"__esModule",{value:!0});var zo=mt(),OR=Z(),MR=yr(),RR=SR(xe()),$d=class extends OR.AbstractParserWithWordBoundaryChecking{innerPattern(){return/(?:esta\s*)?(manha|manhã|tarde|meia-noite|meio-dia|noite)(?=\W|$)/i}innerExtract(e,t){let n=RR.default(e.refDate),s=e.createParsingComponents();switch(t[1].toLowerCase()){case"tarde":s.imply("meridiem",zo.Meridiem.PM),s.imply("hour",15);break;case"noite":s.imply("meridiem",zo.Meridiem.PM),s.imply("hour",22);break;case"manha":case"manh\xE3":s.imply("meridiem",zo.Meridiem.AM),s.imply("hour",6);break;case"meia-noite":MR.assignTheNextDay(s,n),s.imply("hour",0),s.imply("minute",0),s.imply("second",0);break;case"meio-dia":s.imply("meridiem",zo.Meridiem.AM),s.imply("hour",12);break}return s}};ua.default=$d});var Fg=O(kt=>{"use strict";var Un=kt&&kt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(kt,"__esModule",{value:!0});kt.createConfiguration=kt.createCasualConfiguration=kt.parseDate=kt.parse=kt.strict=kt.casual=void 0;var xR=on(),Cg=xr(),PR=Un(hs()),AR=Un(wg()),NR=Un(Dg()),CR=Un(kg()),IR=Un(Eg()),FR=Un(Pg()),LR=Un(Ag()),YR=Un(Ng());kt.casual=new Cg.Chrono(Ig());kt.strict=new Cg.Chrono(Gd(!0));function UR(r,e,t){return kt.casual.parse(r,e,t)}kt.parse=UR;function WR(r,e,t){return kt.casual.parseDate(r,e,t)}kt.parseDate=WR;function Ig(r=!0){let e=Gd(!1,r);return e.parsers.push(new LR.default),e.parsers.push(new YR.default),e}kt.createCasualConfiguration=Ig;function Gd(r=!0,e=!0){return xR.includeCommonConfiguration({parsers:[new PR.default(e),new AR.default,new NR.default,new FR.default],refiners:[new CR.default,new IR.default]},r)}kt.createConfiguration=Gd});var Lg=O(la=>{"use strict";var qR=la&&la.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(la,"__esModule",{value:!0});var jR=qR(jr()),Bd=class extends jR.default{patternBetween(){return/^\s*(tot|-)\s*$/i}};la.default=Bd});var Yg=O(ca=>{"use strict";var $R=ca&&ca.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ca,"__esModule",{value:!0});var GR=$R(an()),Hd=class extends GR.default{patternBetween(){return new RegExp("^\\s*(om|na|voor|in de|,|-)?\\s*$")}};ca.default=Hd});var Ug=O(dn=>{"use strict";var BR=dn&&dn.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),HR=dn&&dn.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),zR=dn&&dn.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&BR(e,r,t);return HR(e,r),e};Object.defineProperty(dn,"__esModule",{value:!0});var VR=Z(),Vo=zR(ln()),zd=class extends VR.AbstractParserWithWordBoundaryChecking{innerPattern(e){return/(nu|vandaag|morgen|morgend|gisteren)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),s=e.createParsingComponents();switch(n){case"nu":return Vo.now(e.reference);case"vandaag":return Vo.today(e.reference);case"morgen":case"morgend":return Vo.tomorrow(e.reference);case"gisteren":return Vo.yesterday(e.reference)}return s}};dn.default=zd});var Wg=O(da=>{"use strict";var KR=da&&da.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(da,"__esModule",{value:!0});var Ko=mt(),ZR=Z(),XR=KR(xe()),QR=yr(),JR=1,ex=2,Vd=class extends ZR.AbstractParserWithWordBoundaryChecking{innerPattern(){return/(deze)?\s*(namiddag|avond|middernacht|ochtend|middag|'s middags|'s avonds|'s ochtends)(?=\W|$)/i}innerExtract(e,t){let n=XR.default(e.refDate),s=e.createParsingComponents();switch(t[JR]==="deze"&&(s.assign("day",e.refDate.getDate()),s.assign("month",e.refDate.getMonth()+1),s.assign("year",e.refDate.getFullYear())),t[ex].toLowerCase()){case"namiddag":case"'s namiddags":s.imply("meridiem",Ko.Meridiem.PM),s.imply("hour",15);break;case"avond":case"'s avonds'":s.imply("meridiem",Ko.Meridiem.PM),s.imply("hour",20);break;case"middernacht":QR.assignTheNextDay(s,n),s.imply("hour",0),s.imply("minute",0),s.imply("second",0);break;case"ochtend":case"'s ochtends":s.imply("meridiem",Ko.Meridiem.AM),s.imply("hour",6);break;case"middag":case"'s middags":s.imply("meridiem",Ko.Meridiem.AM),s.imply("hour",12);break}return s}};da.default=Vd});var nr=O(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.parseTimeUnits=ve.TIME_UNITS_PATTERN=ve.parseYear=ve.YEAR_PATTERN=ve.parseOrdinalNumberPattern=ve.ORDINAL_NUMBER_PATTERN=ve.parseNumberPattern=ve.NUMBER_PATTERN=ve.TIME_UNIT_DICTIONARY=ve.ORDINAL_WORD_DICTIONARY=ve.INTEGER_WORD_DICTIONARY=ve.MONTH_DICTIONARY=ve.WEEKDAY_DICTIONARY=void 0;var Zo=Fe(),tx=xt();ve.WEEKDAY_DICTIONARY={zondag:0,zon:0,"zon.":0,zo:0,"zo.":0,maandag:1,ma:1,"ma.":1,dinsdag:2,din:2,"din.":2,di:2,"di.":2,woensdag:3,woe:3,"woe.":3,wo:3,"wo.":3,donderdag:4,dond:4,"dond.":4,do:4,"do.":4,vrijdag:5,vrij:5,"vrij.":5,vr:5,"vr.":5,zaterdag:6,zat:6,"zat.":6,za:6,"za.":6};ve.MONTH_DICTIONARY={januari:1,jan:1,"jan.":1,februari:2,feb:2,"feb.":2,maart:3,mar:3,"mar.":3,april:4,apr:4,"apr.":4,mei:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,augustus:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,december:12,dec:12,"dec.":12};ve.INTEGER_WORD_DICTIONARY={een:1,twee:2,drie:3,vier:4,vijf:5,zes:6,zeven:7,acht:8,negen:9,tien:10,elf:11,twaalf:12};ve.ORDINAL_WORD_DICTIONARY={eerste:1,tweede:2,derde:3,vierde:4,vijfde:5,zesde:6,zevende:7,achtste:8,negende:9,tiende:10,elfde:11,twaalfde:12,dertiende:13,veertiende:14,vijftiende:15,zestiende:16,zeventiende:17,achttiende:18,negentiende:19,twintigste:20,eenentwintigste:21,twee\u00EBntwintigste:22,drieentwintigste:23,vierentwintigste:24,vijfentwintigste:25,zesentwintigste:26,zevenentwintigste:27,achtentwintig:28,negenentwintig:29,dertigste:30,eenendertigste:31};ve.TIME_UNIT_DICTIONARY={sec:"second",second:"second",seconden:"second",min:"minute",mins:"minute",minute:"minute",minuut:"minute",minuten:"minute",minuutje:"minute",h:"hour",hr:"hour",hrs:"hour",uur:"hour",u:"hour",uren:"hour",dag:"d",dagen:"d",week:"week",weken:"week",maand:"month",maanden:"month",jaar:"year",jr:"year",jaren:"year"};ve.NUMBER_PATTERN=`(?:${Zo.matchAnyPattern(ve.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+[\\.,][0-9]+|halve?|half|paar)`;function jg(r){let e=r.toLowerCase();return ve.INTEGER_WORD_DICTIONARY[e]!==void 0?ve.INTEGER_WORD_DICTIONARY[e]:e==="paar"?2:e==="half"||e.match(/halve?/)?.5:parseFloat(e.replace(",","."))}ve.parseNumberPattern=jg;ve.ORDINAL_NUMBER_PATTERN=`(?:${Zo.matchAnyPattern(ve.ORDINAL_WORD_DICTIONARY)}|[0-9]{1,2}(?:ste|de)?)`;function rx(r){let e=r.toLowerCase();return ve.ORDINAL_WORD_DICTIONARY[e]!==void 0?ve.ORDINAL_WORD_DICTIONARY[e]:(e=e.replace(/(?:ste|de)$/i,""),parseInt(e))}ve.parseOrdinalNumberPattern=rx;ve.YEAR_PATTERN="(?:[1-9][0-9]{0,3}\\s*(?:voor Christus|na Christus)|[1-2][0-9]{3}|[5-9][0-9])";function nx(r){if(/voor Christus/i.test(r))return r=r.replace(/voor Christus/i,""),-parseInt(r);if(/na Christus/i.test(r))return r=r.replace(/na Christus/i,""),parseInt(r);let e=parseInt(r);return tx.findMostLikelyADYear(e)}ve.parseYear=nx;var $g=`(${ve.NUMBER_PATTERN})\\s{0,5}(${Zo.matchAnyPattern(ve.TIME_UNIT_DICTIONARY)})\\s{0,5}`,qg=new RegExp($g,"i");ve.TIME_UNITS_PATTERN=Zo.repeatedTimeunitPattern("(?:(?:binnen|in)\\s*)?",$g);function sx(r){let e={},t=r,n=qg.exec(t);for(;n;)ix(e,n),t=t.substring(n[0].length),n=qg.exec(t);return e}ve.parseTimeUnits=sx;function ix(r,e){let t=jg(e[1]),n=ve.TIME_UNIT_DICTIONARY[e[2].toLowerCase()];r[n]=t}});var Bg=O(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var Gg=nr(),ax=rt(),ox=Z(),Kd=class extends ox.AbstractParserWithWordBoundaryChecking{innerPattern(){return new RegExp("(?:binnen|in|binnen de|voor)\\s*("+Gg.TIME_UNITS_PATTERN+")(?=\\W|$)","i")}innerExtract(e,t){let n=Gg.parseTimeUnits(t[1]);return ax.ParsingComponents.createRelativeFromReference(e.reference,n)}};Zd.default=Kd});var zg=O(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var Hg=nr(),ux=Fe(),lx=Z(),cx=fs(),dx=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:op\\s*?)?(?:(deze|vorige|volgende)\\s*(?:week\\s*)?)?(${ux.matchAnyPattern(Hg.WEEKDAY_DICTIONARY)})(?=\\W|$)`,"i"),fx=1,hx=2,px=3,Xd=class extends lx.AbstractParserWithWordBoundaryChecking{innerPattern(){return dx}innerExtract(e,t){let n=t[hx].toLowerCase(),s=Hg.WEEKDAY_DICTIONARY[n],a=t[fx],o=t[px],l=a||o;l=l||"",l=l.toLowerCase();let c=null;l=="vorige"?c="last":l=="volgende"?c="next":l=="deze"&&(c="this");let f=cx.toDayJSWeekday(e.refDate,s,c);return e.createParsingComponents().assign("weekday",s).imply("day",f.date()).imply("month",f.month()+1).imply("year",f.year())}};Qd.default=Xd});var Jg=O(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});var mx=xt(),Xg=nr(),Xo=nr(),Qg=nr(),yx=Fe(),gx=Z(),_x=new RegExp(`(?:on\\s*?)?(${Xo.ORDINAL_NUMBER_PATTERN})(?:\\s*(?:tot|\\-|\\\u2013|until|through|till|\\s)\\s*(${Xo.ORDINAL_NUMBER_PATTERN}))?(?:-|/|\\s*(?:of)?\\s*)(`+yx.matchAnyPattern(Xg.MONTH_DICTIONARY)+`)(?:(?:-|/|,?\\s*)(${Qg.YEAR_PATTERN}(?![^\\s]\\d)))?(?=\\W|$)`,"i"),Tx=3,Vg=1,Kg=2,Zg=4,Jd=class extends gx.AbstractParserWithWordBoundaryChecking{innerPattern(){return _x}innerExtract(e,t){let n=Xg.MONTH_DICTIONARY[t[Tx].toLowerCase()],s=Xo.parseOrdinalNumberPattern(t[Vg]);if(s>31)return t.index=t.index+t[Vg].length,null;let a=e.createParsingComponents({day:s,month:n});if(t[Zg]){let c=Qg.parseYear(t[Zg]);a.assign("year",c)}else{let c=mx.findYearClosestToRef(e.refDate,s,n);a.imply("year",c)}if(!t[Kg])return a;let o=Xo.parseOrdinalNumberPattern(t[Kg]),l=e.createParsingResult(t.index,t[0]);return l.start=a,l.end=a.clone(),l.end.assign("day",o),l}};ef.default=Jd});var n_=O(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});var t_=nr(),bx=xt(),vx=Fe(),r_=nr(),wx=Z(),Dx=new RegExp(`(${vx.matchAnyPattern(t_.MONTH_DICTIONARY)})\\s*(?:[,-]?\\s*(${r_.YEAR_PATTERN})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i"),kx=1,e_=2,tf=class extends wx.AbstractParserWithWordBoundaryChecking{innerPattern(){return Dx}innerExtract(e,t){let n=e.createParsingComponents();n.imply("day",1);let s=t[kx],a=t_.MONTH_DICTIONARY[s.toLowerCase()];if(n.assign("month",a),t[e_]){let o=r_.parseYear(t[e_]);n.assign("year",o)}else{let o=bx.findYearClosestToRef(e.refDate,1,a);n.imply("year",o)}return n}};rf.default=tf});var s_=O(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});var Ex=Z(),Sx=new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i"),Ox=1,Mx=2,nf=class extends Ex.AbstractParserWithWordBoundaryChecking{innerPattern(){return Sx}innerExtract(e,t){let n=parseInt(t[Mx]),s=parseInt(t[Ox]);return e.createParsingComponents().imply("day",1).assign("month",s).assign("year",n)}};sf.default=nf});var i_=O(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var Rx=cs(),af=class extends Rx.AbstractTimeExpressionParser{primaryPrefix(){return"(?:(?:om)\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|om|\\?)\\s*"}primarySuffix(){return"(?:\\s*(?:uur))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}};of.default=af});var u_=O(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});var o_=nr(),xx=Fe(),Px=Z(),Ax=new RegExp(`([0-9]{4})[\\.\\/\\s](?:(${xx.matchAnyPattern(o_.MONTH_DICTIONARY)})|([0-9]{1,2}))[\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i"),Nx=1,Cx=2,a_=3,Ix=4,uf=class extends Px.AbstractParserWithWordBoundaryChecking{innerPattern(){return Ax}innerExtract(e,t){let n=t[a_]?parseInt(t[a_]):o_.MONTH_DICTIONARY[t[Cx].toLowerCase()];if(n<1||n>12)return null;let s=parseInt(t[Nx]);return{day:parseInt(t[Ix]),month:n,year:s}}};lf.default=uf});var l_=O(fa=>{"use strict";var Fx=fa&&fa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(fa,"__esModule",{value:!0});var Lx=Z(),Qo=mt(),cf=yr(),Yx=Fx(xe()),Ux=1,Wx=2,df=class extends Lx.AbstractParserWithWordBoundaryChecking{innerPattern(e){return/(gisteren|morgen|van)(ochtend|middag|namiddag|avond|nacht)(?=\W|$)/i}innerExtract(e,t){let n=t[Ux].toLowerCase(),s=t[Wx].toLowerCase(),a=e.createParsingComponents(),o=Yx.default(e.refDate);switch(n){case"gisteren":cf.assignSimilarDate(a,o.add(-1,"day"));break;case"van":cf.assignSimilarDate(a,o);break;case"morgen":cf.assignTheNextDay(a,o);break}switch(s){case"ochtend":a.imply("meridiem",Qo.Meridiem.AM),a.imply("hour",6);break;case"middag":a.imply("meridiem",Qo.Meridiem.AM),a.imply("hour",12);break;case"namiddag":a.imply("meridiem",Qo.Meridiem.PM),a.imply("hour",15);break;case"avond":a.imply("meridiem",Qo.Meridiem.PM),a.imply("hour",20);break}return a}};fa.default=df});var d_=O(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var c_=nr(),qx=rt(),jx=Z(),$x=gr(),Gx=new RegExp(`(deze|vorige|afgelopen|komende|over|\\+|-)\\s*(${c_.TIME_UNITS_PATTERN})(?=\\W|$)`,"i"),ff=class extends jx.AbstractParserWithWordBoundaryChecking{innerPattern(){return Gx}innerExtract(e,t){let n=t[1].toLowerCase(),s=c_.parseTimeUnits(t[2]);switch(n){case"vorige":case"afgelopen":case"-":s=$x.reverseTimeUnits(s);break}return qx.ParsingComponents.createRelativeFromReference(e.reference,s)}};hf.default=ff});var p_=O(ha=>{"use strict";var Bx=ha&&ha.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ha,"__esModule",{value:!0});var h_=nr(),f_=rt(),Hx=Bx(xe()),zx=Z(),Vx=Fe(),Kx=new RegExp(`(dit|deze|komende|volgend|volgende|afgelopen|vorige)\\s*(${Vx.matchAnyPattern(h_.TIME_UNIT_DICTIONARY)})(?=\\s*)(?=\\W|$)`,"i"),Zx=1,Xx=2,pf=class extends zx.AbstractParserWithWordBoundaryChecking{innerPattern(){return Kx}innerExtract(e,t){let n=t[Zx].toLowerCase(),s=t[Xx].toLowerCase(),a=h_.TIME_UNIT_DICTIONARY[s];if(n=="volgend"||n=="volgende"||n=="komende"){let c={};return c[a]=1,f_.ParsingComponents.createRelativeFromReference(e.reference,c)}if(n=="afgelopen"||n=="vorige"){let c={};return c[a]=-1,f_.ParsingComponents.createRelativeFromReference(e.reference,c)}let o=e.createParsingComponents(),l=Hx.default(e.reference.instant);return s.match(/week/i)?(l=l.add(-l.get("d"),"d"),o.imply("day",l.date()),o.imply("month",l.month()+1),o.imply("year",l.year())):s.match(/maand/i)?(l=l.add(-l.date()+1,"d"),o.imply("day",l.date()),o.assign("year",l.year()),o.assign("month",l.month()+1)):s.match(/jaar/i)&&(l=l.add(-l.date()+1,"d"),l=l.add(-l.month(),"month"),o.imply("day",l.date()),o.imply("month",l.month()+1),o.assign("year",l.year())),o}};ha.default=pf});var m_=O(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var yf=nr(),Qx=rt(),Jx=Z(),eP=gr(),tP=new RegExp("("+yf.TIME_UNITS_PATTERN+")(?:geleden|voor|eerder)(?=(?:\\W|$))","i"),rP=new RegExp("("+yf.TIME_UNITS_PATTERN+")geleden(?=(?:\\W|$))","i"),mf=class extends Jx.AbstractParserWithWordBoundaryChecking{constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?rP:tP}innerExtract(e,t){let n=yf.parseTimeUnits(t[1]),s=eP.reverseTimeUnits(n);return Qx.ParsingComponents.createRelativeFromReference(e.reference,s)}};gf.default=mf});var y_=O(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});var Tf=nr(),nP=rt(),sP=Z(),iP=new RegExp("("+Tf.TIME_UNITS_PATTERN+")(later|na|vanaf nu|voortaan|vooruit|uit)(?=(?:\\W|$))","i"),aP=new RegExp("("+Tf.TIME_UNITS_PATTERN+")(later|vanaf nu)(?=(?:\\W|$))","i"),oP=1,_f=class extends sP.AbstractParserWithWordBoundaryChecking{constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?aP:iP}innerExtract(e,t){let n=Tf.parseTimeUnits(t[oP]);return nP.ParsingComponents.createRelativeFromReference(e.reference,n)}};bf.default=_f});var b_=O(Et=>{"use strict";var At=Et&&Et.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Et,"__esModule",{value:!0});Et.createConfiguration=Et.createCasualConfiguration=Et.parseDate=Et.parse=Et.strict=Et.casual=void 0;var uP=on(),g_=xr(),lP=At(Lg()),cP=At(Yg()),dP=At(Ug()),fP=At(Wg()),hP=At(hs()),pP=At(Bg()),mP=At(zg()),yP=At(Jg()),__=At(n_()),gP=At(s_()),_P=At(i_()),TP=At(u_()),bP=At(l_()),vP=At(d_()),wP=At(p_()),DP=At(m_()),kP=At(y_());Et.casual=new g_.Chrono(T_());Et.strict=new g_.Chrono(vf(!0));function EP(r,e,t){return Et.casual.parse(r,e,t)}Et.parse=EP;function SP(r,e,t){return Et.casual.parseDate(r,e,t)}Et.parseDate=SP;function T_(r=!0){let e=vf(!1,r);return e.parsers.unshift(new dP.default),e.parsers.unshift(new fP.default),e.parsers.unshift(new bP.default),e.parsers.unshift(new __.default),e.parsers.unshift(new wP.default),e.parsers.unshift(new vP.default),e}Et.createCasualConfiguration=T_;function vf(r=!0,e=!0){return uP.includeCommonConfiguration({parsers:[new hP.default(e),new pP.default,new yP.default,new __.default,new mP.default,new TP.default,new gP.default,new _P.default(r),new DP.default(r),new kP.default(r)],refiners:[new cP.default,new lP.default]},r)}Et.createConfiguration=vf});var k_=O(pa=>{"use strict";var OP=pa&&pa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(pa,"__esModule",{value:!0});var MP=OP(xe()),RP=Z(),xP=1,v_=2,PP=3,w_=4,D_=5,AP=6,wf=class extends RP.AbstractParserWithWordBoundaryChecking{innerPattern(e){return new RegExp("(\u800C\u5BB6|\u7ACB(?:\u523B|\u5373)|\u5373\u523B)|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(?:\u65E5|\u5929)(?:[\\s|,|\uFF0C]*)(?:(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?","i")}innerExtract(e,t){let n=t.index,s=e.createParsingResult(n,t[0]),a=MP.default(e.refDate),o=a;if(t[xP])s.start.imply("hour",a.hour()),s.start.imply("minute",a.minute()),s.start.imply("second",a.second()),s.start.imply("millisecond",a.millisecond());else if(t[v_]){let l=t[v_],c=t[PP];l=="\u660E"||l=="\u807D"?a.hour()>1&&(o=o.add(1,"day")):l=="\u6628"||l=="\u5C0B"||l=="\u7434"?o=o.add(-1,"day"):l=="\u524D"?o=o.add(-2,"day"):l=="\u5927\u524D"?o=o.add(-3,"day"):l=="\u5F8C"?o=o.add(2,"day"):l=="\u5927\u5F8C"&&(o=o.add(3,"day")),c=="\u65E9"||c=="\u671D"?s.start.imply("hour",6):c=="\u665A"&&(s.start.imply("hour",22),s.start.imply("meridiem",1))}else if(t[w_]){let c=t[w_][0];c=="\u65E9"||c=="\u671D"||c=="\u4E0A"?s.start.imply("hour",6):c=="\u4E0B"||c=="\u664F"?(s.start.imply("hour",15),s.start.imply("meridiem",1)):c=="\u4E2D"?(s.start.imply("hour",12),s.start.imply("meridiem",1)):c=="\u591C"||c=="\u665A"?(s.start.imply("hour",22),s.start.imply("meridiem",1)):c=="\u51CC"&&s.start.imply("hour",0)}else if(t[D_]){let l=t[D_];l=="\u660E"||l=="\u807D"?a.hour()>1&&(o=o.add(1,"day")):l=="\u6628"||l=="\u5C0B"||l=="\u7434"?o=o.add(-1,"day"):l=="\u524D"?o=o.add(-2,"day"):l=="\u5927\u524D"?o=o.add(-3,"day"):l=="\u5F8C"?o=o.add(2,"day"):l=="\u5927\u5F8C"&&(o=o.add(3,"day"));let c=t[AP];if(c){let f=c[0];f=="\u65E9"||f=="\u671D"||f=="\u4E0A"?s.start.imply("hour",6):f=="\u4E0B"||f=="\u664F"?(s.start.imply("hour",15),s.start.imply("meridiem",1)):f=="\u4E2D"?(s.start.imply("hour",12),s.start.imply("meridiem",1)):f=="\u591C"||f=="\u665A"?(s.start.imply("hour",22),s.start.imply("meridiem",1)):f=="\u51CC"&&s.start.imply("hour",0)}}return s.start.assign("day",o.date()),s.start.assign("month",o.month()+1),s.start.assign("year",o.year()),s}};pa.default=wf});var ri=O(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.zhStringToYear=Vt.zhStringToNumber=Vt.WEEKDAY_OFFSET=Vt.NUMBER=void 0;Vt.NUMBER={\u96F6:0,\u4E00:1,\u4E8C:2,\u5169:2,\u4E09:3,\u56DB:4,\u4E94:5,\u516D:6,\u4E03:7,\u516B:8,\u4E5D:9,\u5341:10,\u5EFF:20,\u5345:30};Vt.WEEKDAY_OFFSET={\u5929:0,\u65E5:0,\u4E00:1,\u4E8C:2,\u4E09:3,\u56DB:4,\u4E94:5,\u516D:6};function NP(r){let e=0;for(let t=0;t{"use strict";var IP=ma&&ma.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ma,"__esModule",{value:!0});var FP=IP(xe()),LP=Z(),ys=ri(),Df=1,E_=2,kf=3,Ef=class extends LP.AbstractParserWithWordBoundaryChecking{innerPattern(){return new RegExp("(\\d{2,4}|["+Object.keys(ys.NUMBER).join("")+"]{4}|["+Object.keys(ys.NUMBER).join("")+"]{2})?(?:\\s*)(?:\u5E74)?(?:[\\s|,|\uFF0C]*)(\\d{1,2}|["+Object.keys(ys.NUMBER).join("")+"]{1,2})(?:\\s*)(?:\u6708)(?:\\s*)(\\d{1,2}|["+Object.keys(ys.NUMBER).join("")+"]{1,2})?(?:\\s*)(?:\u65E5|\u865F)?")}innerExtract(e,t){let n=FP.default(e.refDate),s=e.createParsingResult(t.index,t[0]),a=parseInt(t[E_]);if(isNaN(a)&&(a=ys.zhStringToNumber(t[E_])),s.start.assign("month",a),t[kf]){let o=parseInt(t[kf]);isNaN(o)&&(o=ys.zhStringToNumber(t[kf])),s.start.assign("day",o)}else s.start.imply("day",n.date());if(t[Df]){let o=parseInt(t[Df]);isNaN(o)&&(o=ys.zhStringToYear(t[Df])),s.start.assign("year",o)}else s.start.imply("year",n.year());return s}};ma.default=Ef});var M_=O(ya=>{"use strict";var YP=ya&&ya.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ya,"__esModule",{value:!0});var UP=YP(xe()),WP=Z(),O_=ri(),qP=new RegExp("(\\d+|["+Object.keys(O_.NUMBER).join("")+"]+|\u534A|\u5E7E)(?:\\s*)(?:\u500B)?(\u79D2(?:\u9418)?|\u5206\u9418|\u5C0F\u6642|\u9418|\u65E5|\u5929|\u661F\u671F|\u79AE\u62DC|\u6708|\u5E74)(?:(?:\u4E4B|\u904E)?\u5F8C|(?:\u4E4B)?\u5167)","i"),Sf=1,jP=2,Of=class extends WP.AbstractParserWithWordBoundaryChecking{innerPattern(){return qP}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=parseInt(t[Sf]);if(isNaN(s)&&(s=O_.zhStringToNumber(t[Sf])),isNaN(s)){let c=t[Sf];if(c==="\u5E7E")s=3;else if(c==="\u534A")s=.5;else return null}let a=UP.default(e.refDate),l=t[jP][0];return l.match(/[日天星禮月年]/)?(l=="\u65E5"||l=="\u5929"?a=a.add(s,"d"):l=="\u661F"||l=="\u79AE"?a=a.add(s*7,"d"):l=="\u6708"?a=a.add(s,"month"):l=="\u5E74"&&(a=a.add(s,"year")),n.start.assign("year",a.year()),n.start.assign("month",a.month()+1),n.start.assign("day",a.date()),n):(l=="\u79D2"?a=a.add(s,"second"):l=="\u5206"?a=a.add(s,"minute"):(l=="\u5C0F"||l=="\u9418")&&(a=a.add(s,"hour")),n.start.imply("year",a.year()),n.start.imply("month",a.month()+1),n.start.imply("day",a.date()),n.start.assign("hour",a.hour()),n.start.assign("minute",a.minute()),n.start.assign("second",a.second()),n)}};ya.default=Of});var x_=O(ga=>{"use strict";var $P=ga&&ga.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ga,"__esModule",{value:!0});var GP=$P(xe()),BP=Z(),R_=ri(),HP=new RegExp("(?\u4E0A|\u4ECA|\u4E0B|\u9019|\u5462)(?:\u500B)?(?:\u661F\u671F|\u79AE\u62DC|\u9031)(?"+Object.keys(R_.WEEKDAY_OFFSET).join("|")+")"),Mf=class extends BP.AbstractParserWithWordBoundaryChecking{innerPattern(){return HP}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=t.groups.weekday,a=R_.WEEKDAY_OFFSET[s];if(a===void 0)return null;let o=null,l=t.groups.prefix;l=="\u4E0A"?o="last":l=="\u4E0B"?o="next":(l=="\u4ECA"||l=="\u9019"||l=="\u5462")&&(o="this");let c=GP.default(e.refDate),f=!1,m=c.day();return o=="last"||o=="past"?(c=c.day(a-7),f=!0):o=="next"?(c=c.day(a+7),f=!0):o=="this"?c=c.day(a):Math.abs(a-7-m){"use strict";var zP=_a&&_a.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_a,"__esModule",{value:!0});var VP=zP(xe()),KP=Z(),br=ri(),ZP=new RegExp("(?:\u7531|\u5F9E|\u81EA)?(?:(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(?:\u65E5|\u5929)(?:[\\s,\uFF0C]*)(?:(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?)?(?:[\\s,\uFF0C]*)(?:(\\d+|["+Object.keys(br.NUMBER).join("")+"]+)(?:\\s*)(?:\u9EDE|\u6642|:|\uFF1A)(?:\\s*)(\\d+|\u534A|\u6B63|\u6574|["+Object.keys(br.NUMBER).join("")+"]+)?(?:\\s*)(?:\u5206|:|\uFF1A)?(?:\\s*)(\\d+|["+Object.keys(br.NUMBER).join("")+"]+)?(?:\\s*)(?:\u79D2)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),XP=new RegExp("(?:^\\s*(?:\u5230|\u81F3|\\-|\\\u2013|\\~|\\\u301C)\\s*)(?:(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(?:\u65E5|\u5929)(?:[\\s,\uFF0C]*)(?:(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?)?(?:[\\s,\uFF0C]*)(?:(\\d+|["+Object.keys(br.NUMBER).join("")+"]+)(?:\\s*)(?:\u9EDE|\u6642|:|\uFF1A)(?:\\s*)(\\d+|\u534A|\u6B63|\u6574|["+Object.keys(br.NUMBER).join("")+"]+)?(?:\\s*)(?:\u5206|:|\uFF1A)?(?:\\s*)(\\d+|["+Object.keys(br.NUMBER).join("")+"]+)?(?:\\s*)(?:\u79D2)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),Jo=1,eu=2,tu=3,ru=4,nu=5,su=6,Tr=7,ni=8,iu=9,Rf=class extends KP.AbstractParserWithWordBoundaryChecking{innerPattern(){return ZP}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=VP.default(e.refDate),s=e.createParsingResult(t.index,t[0]),a=n.clone();if(t[Jo]){var o=t[Jo];o=="\u660E"||o=="\u807D"?n.hour()>1&&a.add(1,"day"):o=="\u6628"||o=="\u5C0B"||o=="\u7434"?a.add(-1,"day"):o=="\u524D"?a.add(-2,"day"):o=="\u5927\u524D"?a.add(-3,"day"):o=="\u5F8C"?a.add(2,"day"):o=="\u5927\u5F8C"&&a.add(3,"day"),s.start.assign("day",a.date()),s.start.assign("month",a.month()+1),s.start.assign("year",a.year())}else if(t[ru]){var l=t[ru];l=="\u660E"||l=="\u807D"?a.add(1,"day"):l=="\u6628"||l=="\u5C0B"||l=="\u7434"?a.add(-1,"day"):l=="\u524D"?a.add(-2,"day"):l=="\u5927\u524D"?a.add(-3,"day"):l=="\u5F8C"?a.add(2,"day"):l=="\u5927\u5F8C"&&a.add(3,"day"),s.start.assign("day",a.date()),s.start.assign("month",a.month()+1),s.start.assign("year",a.year())}else s.start.imply("day",a.date()),s.start.imply("month",a.month()+1),s.start.imply("year",a.year());let c=0,f=0,m=-1;if(t[ni]){var g=parseInt(t[ni]);if(isNaN(g)&&(g=br.zhStringToNumber(t[ni])),g>=60)return null;s.start.assign("second",g)}if(c=parseInt(t[su]),isNaN(c)&&(c=br.zhStringToNumber(t[su])),t[Tr]?t[Tr]=="\u534A"?f=30:t[Tr]=="\u6B63"||t[Tr]=="\u6574"?f=0:(f=parseInt(t[Tr]),isNaN(f)&&(f=br.zhStringToNumber(t[Tr]))):c>100&&(f=c%100,c=Math.floor(c/100)),f>=60||c>24)return null;if(c>=12&&(m=1),t[iu]){if(c>12)return null;var T=t[iu][0].toLowerCase();T=="a"&&(m=0,c==12&&(c=0)),T=="p"&&(m=1,c!=12&&(c+=12))}else if(t[eu]){var S=t[eu],v=S[0];v=="\u671D"||v=="\u65E9"?(m=0,c==12&&(c=0)):v=="\u665A"&&(m=1,c!=12&&(c+=12))}else if(t[tu]){var R=t[tu],C=R[0];C=="\u4E0A"||C=="\u671D"||C=="\u65E9"||C=="\u51CC"?(m=0,c==12&&(c=0)):(C=="\u4E0B"||C=="\u664F"||C=="\u665A")&&(m=1,c!=12&&(c+=12))}else if(t[nu]){var $=t[nu],B=$[0];B=="\u4E0A"||B=="\u671D"||B=="\u65E9"||B=="\u51CC"?(m=0,c==12&&(c=0)):(B=="\u4E0B"||B=="\u664F"||B=="\u665A")&&(m=1,c!=12&&(c+=12))}if(s.start.assign("hour",c),s.start.assign("minute",f),m>=0?s.start.assign("meridiem",m):c<12?s.start.imply("meridiem",0):s.start.imply("meridiem",1),t=XP.exec(e.text.substring(s.index+s.text.length)),!t)return s.text.match(/^\d+$/)?null:s;let W=a.clone();if(s.end=e.createParsingComponents(),t[Jo]){var o=t[Jo];o=="\u660E"||o=="\u807D"?n.hour()>1&&W.add(1,"day"):o=="\u6628"||o=="\u5C0B"||o=="\u7434"?W.add(-1,"day"):o=="\u524D"?W.add(-2,"day"):o=="\u5927\u524D"?W.add(-3,"day"):o=="\u5F8C"?W.add(2,"day"):o=="\u5927\u5F8C"&&W.add(3,"day"),s.end.assign("day",W.date()),s.end.assign("month",W.month()+1),s.end.assign("year",W.year())}else if(t[ru]){var l=t[ru];l=="\u660E"||l=="\u807D"?W.add(1,"day"):l=="\u6628"||l=="\u5C0B"||l=="\u7434"?W.add(-1,"day"):l=="\u524D"?W.add(-2,"day"):l=="\u5927\u524D"?W.add(-3,"day"):l=="\u5F8C"?W.add(2,"day"):l=="\u5927\u5F8C"&&W.add(3,"day"),s.end.assign("day",W.date()),s.end.assign("month",W.month()+1),s.end.assign("year",W.year())}else s.end.imply("day",W.date()),s.end.imply("month",W.month()+1),s.end.imply("year",W.year());if(c=0,f=0,m=-1,t[ni]){var g=parseInt(t[ni]);if(isNaN(g)&&(g=br.zhStringToNumber(t[ni])),g>=60)return null;s.end.assign("second",g)}if(c=parseInt(t[su]),isNaN(c)&&(c=br.zhStringToNumber(t[su])),t[Tr]?t[Tr]=="\u534A"?f=30:t[Tr]=="\u6B63"||t[Tr]=="\u6574"?f=0:(f=parseInt(t[Tr]),isNaN(f)&&(f=br.zhStringToNumber(t[Tr]))):c>100&&(f=c%100,c=Math.floor(c/100)),f>=60||c>24)return null;if(c>=12&&(m=1),t[iu]){if(c>12)return null;var T=t[iu][0].toLowerCase();T=="a"&&(m=0,c==12&&(c=0)),T=="p"&&(m=1,c!=12&&(c+=12)),s.start.isCertain("meridiem")||(m==0?(s.start.imply("meridiem",0),s.start.get("hour")==12&&s.start.assign("hour",0)):(s.start.imply("meridiem",1),s.start.get("hour")!=12&&s.start.assign("hour",s.start.get("hour")+12)))}else if(t[eu]){var S=t[eu],v=S[0];v=="\u671D"||v=="\u65E9"?(m=0,c==12&&(c=0)):v=="\u665A"&&(m=1,c!=12&&(c+=12))}else if(t[tu]){var R=t[tu],C=R[0];C=="\u4E0A"||C=="\u671D"||C=="\u65E9"||C=="\u51CC"?(m=0,c==12&&(c=0)):(C=="\u4E0B"||C=="\u664F"||C=="\u665A")&&(m=1,c!=12&&(c+=12))}else if(t[nu]){var $=t[nu],B=$[0];B=="\u4E0A"||B=="\u671D"||B=="\u65E9"||B=="\u51CC"?(m=0,c==12&&(c=0)):(B=="\u4E0B"||B=="\u664F"||B=="\u665A")&&(m=1,c!=12&&(c+=12))}return s.text=s.text+t[0],s.end.assign("hour",c),s.end.assign("minute",f),m>=0?s.end.assign("meridiem",m):s.start.isCertain("meridiem")&&s.start.get("meridiem")==1&&s.start.get("hour")>c?s.end.imply("meridiem",0):c>12&&s.end.imply("meridiem",1),s.end.date().getTime(){"use strict";var QP=Ta&&Ta.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ta,"__esModule",{value:!0});var JP=QP(xe()),eA=Z(),A_=ri(),tA=new RegExp("(?:\u661F\u671F|\u79AE\u62DC|\u9031)(?"+Object.keys(A_.WEEKDAY_OFFSET).join("|")+")"),xf=class extends eA.AbstractParserWithWordBoundaryChecking{innerPattern(){return tA}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=t.groups.weekday,a=A_.WEEKDAY_OFFSET[s];if(a===void 0)return null;let o=JP.default(e.refDate),l=!1,c=o.day();return Math.abs(a-7-c){"use strict";var rA=ba&&ba.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ba,"__esModule",{value:!0});var nA=rA(jr()),Pf=class extends nA.default{patternBetween(){return/^\s*(至|到|\-|\~|~|-|ー)\s*$/i}};ba.default=Pf});var I_=O(va=>{"use strict";var sA=va&&va.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(va,"__esModule",{value:!0});var iA=sA(an()),Af=class extends iA.default{patternBetween(){return/^\s*$/i}};va.default=Af});var F_=O(ut=>{"use strict";var fn=ut&&ut.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ut,"__esModule",{value:!0});ut.createConfiguration=ut.createCasualConfiguration=ut.parseDate=ut.parse=ut.strict=ut.casual=ut.hant=void 0;var Nf=xr(),aA=fn(Io()),oA=on(),uA=fn(k_()),lA=fn(S_()),cA=fn(M_()),dA=fn(x_()),fA=fn(P_()),hA=fn(N_()),pA=fn(C_()),mA=fn(I_());ut.hant=new Nf.Chrono(Cf());ut.casual=new Nf.Chrono(Cf());ut.strict=new Nf.Chrono(If());function yA(r,e,t){return ut.casual.parse(r,e,t)}ut.parse=yA;function gA(r,e,t){return ut.casual.parseDate(r,e,t)}ut.parseDate=gA;function Cf(){let r=If();return r.parsers.unshift(new uA.default),r}ut.createCasualConfiguration=Cf;function If(){let r=oA.includeCommonConfiguration({parsers:[new lA.default,new dA.default,new hA.default,new fA.default,new cA.default],refiners:[new pA.default,new mA.default]});return r.refiners=r.refiners.filter(e=>!(e instanceof aA.default)),r}ut.createConfiguration=If});var W_=O(wa=>{"use strict";var _A=wa&&wa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wa,"__esModule",{value:!0});var TA=_A(xe()),bA=Z(),vA=1,L_=2,wA=3,Y_=4,U_=5,DA=6,Ff=class extends bA.AbstractParserWithWordBoundaryChecking{innerPattern(e){return new RegExp("(\u73B0\u5728|\u7ACB(?:\u523B|\u5373)|\u5373\u523B)|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(\u65E9|\u665A)|(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(?:\u65E5|\u5929)(?:[\\s|,|\uFF0C]*)(?:(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?","i")}innerExtract(e,t){let n=t.index,s=e.createParsingResult(n,t[0]),a=TA.default(e.refDate),o=a;if(t[vA])s.start.imply("hour",a.hour()),s.start.imply("minute",a.minute()),s.start.imply("second",a.second()),s.start.imply("millisecond",a.millisecond());else if(t[L_]){let l=t[L_],c=t[wA];l=="\u660E"?a.hour()>1&&(o=o.add(1,"day")):l=="\u6628"?o=o.add(-1,"day"):l=="\u524D"?o=o.add(-2,"day"):l=="\u5927\u524D"?o=o.add(-3,"day"):l=="\u540E"?o=o.add(2,"day"):l=="\u5927\u540E"&&(o=o.add(3,"day")),c=="\u65E9"?s.start.imply("hour",6):c=="\u665A"&&(s.start.imply("hour",22),s.start.imply("meridiem",1))}else if(t[Y_]){let c=t[Y_][0];c=="\u65E9"||c=="\u4E0A"?s.start.imply("hour",6):c=="\u4E0B"?(s.start.imply("hour",15),s.start.imply("meridiem",1)):c=="\u4E2D"?(s.start.imply("hour",12),s.start.imply("meridiem",1)):c=="\u591C"||c=="\u665A"?(s.start.imply("hour",22),s.start.imply("meridiem",1)):c=="\u51CC"&&s.start.imply("hour",0)}else if(t[U_]){let l=t[U_];l=="\u660E"?a.hour()>1&&(o=o.add(1,"day")):l=="\u6628"?o=o.add(-1,"day"):l=="\u524D"?o=o.add(-2,"day"):l=="\u5927\u524D"?o=o.add(-3,"day"):l=="\u540E"?o=o.add(2,"day"):l=="\u5927\u540E"&&(o=o.add(3,"day"));let c=t[DA];if(c){let f=c[0];f=="\u65E9"||f=="\u4E0A"?s.start.imply("hour",6):f=="\u4E0B"?(s.start.imply("hour",15),s.start.imply("meridiem",1)):f=="\u4E2D"?(s.start.imply("hour",12),s.start.imply("meridiem",1)):f=="\u591C"||f=="\u665A"?(s.start.imply("hour",22),s.start.imply("meridiem",1)):f=="\u51CC"&&s.start.imply("hour",0)}}return s.start.assign("day",o.date()),s.start.assign("month",o.month()+1),s.start.assign("year",o.year()),s}};wa.default=Ff});var si=O(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.zhStringToYear=Kt.zhStringToNumber=Kt.WEEKDAY_OFFSET=Kt.NUMBER=void 0;Kt.NUMBER={\u96F6:0,"\u3007":0,\u4E00:1,\u4E8C:2,\u4E24:2,\u4E09:3,\u56DB:4,\u4E94:5,\u516D:6,\u4E03:7,\u516B:8,\u4E5D:9,\u5341:10};Kt.WEEKDAY_OFFSET={\u5929:0,\u65E5:0,\u4E00:1,\u4E8C:2,\u4E09:3,\u56DB:4,\u4E94:5,\u516D:6};function kA(r){let e=0;for(let t=0;t{"use strict";var SA=Da&&Da.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Da,"__esModule",{value:!0});var OA=SA(xe()),MA=Z(),gs=si(),Lf=1,q_=2,Yf=3,Uf=class extends MA.AbstractParserWithWordBoundaryChecking{innerPattern(){return new RegExp("(\\d{2,4}|["+Object.keys(gs.NUMBER).join("")+"]{4}|["+Object.keys(gs.NUMBER).join("")+"]{2})?(?:\\s*)(?:\u5E74)?(?:[\\s|,|\uFF0C]*)(\\d{1,2}|["+Object.keys(gs.NUMBER).join("")+"]{1,3})(?:\\s*)(?:\u6708)(?:\\s*)(\\d{1,2}|["+Object.keys(gs.NUMBER).join("")+"]{1,3})?(?:\\s*)(?:\u65E5|\u53F7)?")}innerExtract(e,t){let n=OA.default(e.refDate),s=e.createParsingResult(t.index,t[0]),a=parseInt(t[q_]);if(isNaN(a)&&(a=gs.zhStringToNumber(t[q_])),s.start.assign("month",a),t[Yf]){let o=parseInt(t[Yf]);isNaN(o)&&(o=gs.zhStringToNumber(t[Yf])),s.start.assign("day",o)}else s.start.imply("day",n.date());if(t[Lf]){let o=parseInt(t[Lf]);isNaN(o)&&(o=gs.zhStringToYear(t[Lf])),s.start.assign("year",o)}else s.start.imply("year",n.year());return s}};Da.default=Uf});var G_=O(ka=>{"use strict";var RA=ka&&ka.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ka,"__esModule",{value:!0});var xA=RA(xe()),PA=Z(),$_=si(),AA=new RegExp("(\\d+|["+Object.keys($_.NUMBER).join("")+"]+|\u534A|\u51E0)(?:\\s*)(?:\u4E2A)?(\u79D2(?:\u949F)?|\u5206\u949F|\u5C0F\u65F6|\u949F|\u65E5|\u5929|\u661F\u671F|\u793C\u62DC|\u6708|\u5E74)(?:(?:\u4E4B|\u8FC7)?\u540E|(?:\u4E4B)?\u5185)","i"),Wf=1,NA=2,qf=class extends PA.AbstractParserWithWordBoundaryChecking{innerPattern(){return AA}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=parseInt(t[Wf]);if(isNaN(s)&&(s=$_.zhStringToNumber(t[Wf])),isNaN(s)){let c=t[Wf];if(c==="\u51E0")s=3;else if(c==="\u534A")s=.5;else return null}let a=xA.default(e.refDate),l=t[NA][0];return l.match(/[日天星礼月年]/)?(l=="\u65E5"||l=="\u5929"?a=a.add(s,"d"):l=="\u661F"||l=="\u793C"?a=a.add(s*7,"d"):l=="\u6708"?a=a.add(s,"month"):l=="\u5E74"&&(a=a.add(s,"year")),n.start.assign("year",a.year()),n.start.assign("month",a.month()+1),n.start.assign("day",a.date()),n):(l=="\u79D2"?a=a.add(s,"second"):l=="\u5206"?a=a.add(s,"minute"):(l=="\u5C0F"||l=="\u949F")&&(a=a.add(s,"hour")),n.start.imply("year",a.year()),n.start.imply("month",a.month()+1),n.start.imply("day",a.date()),n.start.assign("hour",a.hour()),n.start.assign("minute",a.minute()),n.start.assign("second",a.second()),n)}};ka.default=qf});var H_=O(Ea=>{"use strict";var CA=Ea&&Ea.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ea,"__esModule",{value:!0});var IA=CA(xe()),FA=Z(),B_=si(),LA=new RegExp("(?\u4E0A|\u4E0B|\u8FD9)(?:\u4E2A)?(?:\u661F\u671F|\u793C\u62DC|\u5468)(?"+Object.keys(B_.WEEKDAY_OFFSET).join("|")+")"),jf=class extends FA.AbstractParserWithWordBoundaryChecking{innerPattern(){return LA}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=t.groups.weekday,a=B_.WEEKDAY_OFFSET[s];if(a===void 0)return null;let o=null,l=t.groups.prefix;l=="\u4E0A"?o="last":l=="\u4E0B"?o="next":l=="\u8FD9"&&(o="this");let c=IA.default(e.refDate),f=!1,m=c.day();return o=="last"||o=="past"?(c=c.day(a-7),f=!0):o=="next"?(c=c.day(a+7),f=!0):o=="this"?c=c.day(a):Math.abs(a-7-m){"use strict";var YA=Sa&&Sa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Sa,"__esModule",{value:!0});var UA=YA(xe()),WA=Z(),wr=si(),qA=new RegExp("(?:\u4ECE|\u81EA)?(?:(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(?:\u65E5|\u5929)(?:[\\s,\uFF0C]*)(?:(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?)?(?:[\\s,\uFF0C]*)(?:(\\d+|["+Object.keys(wr.NUMBER).join("")+"]+)(?:\\s*)(?:\u70B9|\u65F6|:|\uFF1A)(?:\\s*)(\\d+|\u534A|\u6B63|\u6574|["+Object.keys(wr.NUMBER).join("")+"]+)?(?:\\s*)(?:\u5206|:|\uFF1A)?(?:\\s*)(\\d+|["+Object.keys(wr.NUMBER).join("")+"]+)?(?:\\s*)(?:\u79D2)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),jA=new RegExp("(?:^\\s*(?:\u5230|\u81F3|\\-|\\\u2013|\\~|\\\u301C)\\s*)(?:(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(?:\u65E5|\u5929)(?:[\\s,\uFF0C]*)(?:(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?)?(?:[\\s,\uFF0C]*)(?:(\\d+|["+Object.keys(wr.NUMBER).join("")+"]+)(?:\\s*)(?:\u70B9|\u65F6|:|\uFF1A)(?:\\s*)(\\d+|\u534A|\u6B63|\u6574|["+Object.keys(wr.NUMBER).join("")+"]+)?(?:\\s*)(?:\u5206|:|\uFF1A)?(?:\\s*)(\\d+|["+Object.keys(wr.NUMBER).join("")+"]+)?(?:\\s*)(?:\u79D2)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),au=1,ou=2,uu=3,lu=4,cu=5,du=6,vr=7,ii=8,fu=9,$f=class extends WA.AbstractParserWithWordBoundaryChecking{innerPattern(){return qA}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=UA.default(e.refDate),s=e.createParsingResult(t.index,t[0]),a=n.clone();if(t[au]){let m=t[au];m=="\u660E"?n.hour()>1&&a.add(1,"day"):m=="\u6628"?a.add(-1,"day"):m=="\u524D"?a.add(-2,"day"):m=="\u5927\u524D"?a.add(-3,"day"):m=="\u540E"?a.add(2,"day"):m=="\u5927\u540E"&&a.add(3,"day"),s.start.assign("day",a.date()),s.start.assign("month",a.month()+1),s.start.assign("year",a.year())}else if(t[lu]){let m=t[lu];m=="\u660E"?a.add(1,"day"):m=="\u6628"?a.add(-1,"day"):m=="\u524D"?a.add(-2,"day"):m=="\u5927\u524D"?a.add(-3,"day"):m=="\u540E"?a.add(2,"day"):m=="\u5927\u540E"&&a.add(3,"day"),s.start.assign("day",a.date()),s.start.assign("month",a.month()+1),s.start.assign("year",a.year())}else s.start.imply("day",a.date()),s.start.imply("month",a.month()+1),s.start.imply("year",a.year());let o=0,l=0,c=-1;if(t[ii]){let m=parseInt(t[ii]);if(isNaN(m)&&(m=wr.zhStringToNumber(t[ii])),m>=60)return null;s.start.assign("second",m)}if(o=parseInt(t[du]),isNaN(o)&&(o=wr.zhStringToNumber(t[du])),t[vr]?t[vr]=="\u534A"?l=30:t[vr]=="\u6B63"||t[vr]=="\u6574"?l=0:(l=parseInt(t[vr]),isNaN(l)&&(l=wr.zhStringToNumber(t[vr]))):o>100&&(l=o%100,o=Math.floor(o/100)),l>=60||o>24)return null;if(o>=12&&(c=1),t[fu]){if(o>12)return null;let m=t[fu][0].toLowerCase();m=="a"&&(c=0,o==12&&(o=0)),m=="p"&&(c=1,o!=12&&(o+=12))}else if(t[ou]){let g=t[ou][0];g=="\u65E9"?(c=0,o==12&&(o=0)):g=="\u665A"&&(c=1,o!=12&&(o+=12))}else if(t[uu]){let g=t[uu][0];g=="\u4E0A"||g=="\u65E9"||g=="\u51CC"?(c=0,o==12&&(o=0)):(g=="\u4E0B"||g=="\u665A")&&(c=1,o!=12&&(o+=12))}else if(t[cu]){let g=t[cu][0];g=="\u4E0A"||g=="\u65E9"||g=="\u51CC"?(c=0,o==12&&(o=0)):(g=="\u4E0B"||g=="\u665A")&&(c=1,o!=12&&(o+=12))}if(s.start.assign("hour",o),s.start.assign("minute",l),c>=0?s.start.assign("meridiem",c):o<12?s.start.imply("meridiem",0):s.start.imply("meridiem",1),t=jA.exec(e.text.substring(s.index+s.text.length)),!t)return s.text.match(/^\d+$/)?null:s;let f=a.clone();if(s.end=e.createParsingComponents(),t[au]){let m=t[au];m=="\u660E"?n.hour()>1&&f.add(1,"day"):m=="\u6628"?f.add(-1,"day"):m=="\u524D"?f.add(-2,"day"):m=="\u5927\u524D"?f.add(-3,"day"):m=="\u540E"?f.add(2,"day"):m=="\u5927\u540E"&&f.add(3,"day"),s.end.assign("day",f.date()),s.end.assign("month",f.month()+1),s.end.assign("year",f.year())}else if(t[lu]){let m=t[lu];m=="\u660E"?f.add(1,"day"):m=="\u6628"?f.add(-1,"day"):m=="\u524D"?f.add(-2,"day"):m=="\u5927\u524D"?f.add(-3,"day"):m=="\u540E"?f.add(2,"day"):m=="\u5927\u540E"&&f.add(3,"day"),s.end.assign("day",f.date()),s.end.assign("month",f.month()+1),s.end.assign("year",f.year())}else s.end.imply("day",f.date()),s.end.imply("month",f.month()+1),s.end.imply("year",f.year());if(o=0,l=0,c=-1,t[ii]){let m=parseInt(t[ii]);if(isNaN(m)&&(m=wr.zhStringToNumber(t[ii])),m>=60)return null;s.end.assign("second",m)}if(o=parseInt(t[du]),isNaN(o)&&(o=wr.zhStringToNumber(t[du])),t[vr]?t[vr]=="\u534A"?l=30:t[vr]=="\u6B63"||t[vr]=="\u6574"?l=0:(l=parseInt(t[vr]),isNaN(l)&&(l=wr.zhStringToNumber(t[vr]))):o>100&&(l=o%100,o=Math.floor(o/100)),l>=60||o>24)return null;if(o>=12&&(c=1),t[fu]){if(o>12)return null;let m=t[fu][0].toLowerCase();m=="a"&&(c=0,o==12&&(o=0)),m=="p"&&(c=1,o!=12&&(o+=12)),s.start.isCertain("meridiem")||(c==0?(s.start.imply("meridiem",0),s.start.get("hour")==12&&s.start.assign("hour",0)):(s.start.imply("meridiem",1),s.start.get("hour")!=12&&s.start.assign("hour",s.start.get("hour")+12)))}else if(t[ou]){let g=t[ou][0];g=="\u65E9"?(c=0,o==12&&(o=0)):g=="\u665A"&&(c=1,o!=12&&(o+=12))}else if(t[uu]){let g=t[uu][0];g=="\u4E0A"||g=="\u65E9"||g=="\u51CC"?(c=0,o==12&&(o=0)):(g=="\u4E0B"||g=="\u665A")&&(c=1,o!=12&&(o+=12))}else if(t[cu]){let g=t[cu][0];g=="\u4E0A"||g=="\u65E9"||g=="\u51CC"?(c=0,o==12&&(o=0)):(g=="\u4E0B"||g=="\u665A")&&(c=1,o!=12&&(o+=12))}return s.text=s.text+t[0],s.end.assign("hour",o),s.end.assign("minute",l),c>=0?s.end.assign("meridiem",c):s.start.isCertain("meridiem")&&s.start.get("meridiem")==1&&s.start.get("hour")>o?s.end.imply("meridiem",0):o>12&&s.end.imply("meridiem",1),s.end.date().getTime(){"use strict";var $A=Oa&&Oa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Oa,"__esModule",{value:!0});var GA=$A(xe()),BA=Z(),V_=si(),HA=new RegExp("(?:\u661F\u671F|\u793C\u62DC|\u5468)(?"+Object.keys(V_.WEEKDAY_OFFSET).join("|")+")"),Gf=class extends BA.AbstractParserWithWordBoundaryChecking{innerPattern(){return HA}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=t.groups.weekday,a=V_.WEEKDAY_OFFSET[s];if(a===void 0)return null;let o=GA.default(e.refDate),l=!1,c=o.day();return Math.abs(a-7-c){"use strict";var zA=Ma&&Ma.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ma,"__esModule",{value:!0});var VA=zA(jr()),Bf=class extends VA.default{patternBetween(){return/^\s*(至|到|-|~|~|-|ー)\s*$/i}};Ma.default=Bf});var X_=O(Ra=>{"use strict";var KA=Ra&&Ra.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ra,"__esModule",{value:!0});var ZA=KA(an()),Hf=class extends ZA.default{patternBetween(){return/^\s*$/i}};Ra.default=Hf});var Q_=O(lt=>{"use strict";var hn=lt&<.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(lt,"__esModule",{value:!0});lt.createConfiguration=lt.createCasualConfiguration=lt.parseDate=lt.parse=lt.strict=lt.casual=lt.hans=void 0;var zf=xr(),XA=hn(Io()),QA=on(),JA=hn(W_()),eN=hn(j_()),tN=hn(G_()),rN=hn(H_()),nN=hn(z_()),sN=hn(K_()),iN=hn(Z_()),aN=hn(X_());lt.hans=new zf.Chrono(Vf());lt.casual=new zf.Chrono(Vf());lt.strict=new zf.Chrono(Kf());function oN(r,e,t){return lt.casual.parse(r,e,t)}lt.parse=oN;function uN(r,e,t){return lt.casual.parseDate(r,e,t)}lt.parseDate=uN;function Vf(){let r=Kf();return r.parsers.unshift(new JA.default),r}lt.createCasualConfiguration=Vf;function Kf(){let r=QA.includeCommonConfiguration({parsers:[new eN.default,new rN.default,new sN.default,new nN.default,new tN.default],refiners:[new iN.default,new aN.default]});return r.refiners=r.refiners.filter(e=>!(e instanceof XA.default)),r}lt.createConfiguration=Kf});var eT=O(sr=>{"use strict";var J_=sr&&sr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),lN=sr&&sr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),cN=sr&&sr.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&J_(e,r,t)},dN=sr&&sr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&J_(e,r,t);return lN(e,r),e};Object.defineProperty(sr,"__esModule",{value:!0});sr.hans=void 0;cN(F_(),sr);sr.hans=dN(Q_())});var Zt=O(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.parseTimeUnits=de.TIME_UNITS_PATTERN=de.parseYear=de.YEAR_PATTERN=de.parseOrdinalNumberPattern=de.ORDINAL_NUMBER_PATTERN=de.parseNumberPattern=de.NUMBER_PATTERN=de.TIME_UNIT_DICTIONARY=de.ORDINAL_WORD_DICTIONARY=de.INTEGER_WORD_DICTIONARY=de.MONTH_DICTIONARY=de.FULL_MONTH_NAME_DICTIONARY=de.WEEKDAY_DICTIONARY=de.REGEX_PARTS=void 0;var hu=Fe(),fN=xt();de.REGEX_PARTS={leftBoundary:"([^\\p{L}\\p{N}_]|^)",rightBoundary:"(?=[^\\p{L}\\p{N}_]|$)",flags:"iu"};de.WEEKDAY_DICTIONARY={\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435:0,\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u044F:0,\u0432\u0441\u043A:0,"\u0432\u0441\u043A.":0,\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A:1,\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A\u0430:1,\u043F\u043D:1,"\u043F\u043D.":1,\u0432\u0442\u043E\u0440\u043D\u0438\u043A:2,\u0432\u0442\u043E\u0440\u043D\u0438\u043A\u0430:2,\u0432\u0442:2,"\u0432\u0442.":2,\u0441\u0440\u0435\u0434\u0430:3,\u0441\u0440\u0435\u0434\u044B:3,\u0441\u0440\u0435\u0434\u0443:3,\u0441\u0440:3,"\u0441\u0440.":3,\u0447\u0435\u0442\u0432\u0435\u0440\u0433:4,\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430:4,\u0447\u0442:4,"\u0447\u0442.":4,\u043F\u044F\u0442\u043D\u0438\u0446\u0430:5,\u043F\u044F\u0442\u043D\u0438\u0446\u0443:5,\u043F\u044F\u0442\u043D\u0438\u0446\u044B:5,\u043F\u0442:5,"\u043F\u0442.":5,\u0441\u0443\u0431\u0431\u043E\u0442\u0430:6,\u0441\u0443\u0431\u0431\u043E\u0442\u0443:6,\u0441\u0443\u0431\u0431\u043E\u0442\u044B:6,\u0441\u0431:6,"\u0441\u0431.":6};de.FULL_MONTH_NAME_DICTIONARY={\u044F\u043D\u0432\u0430\u0440\u044C:1,\u044F\u043D\u0432\u0430\u0440\u044F:1,\u044F\u043D\u0432\u0430\u0440\u0435:1,\u0444\u0435\u0432\u0440\u044F\u043B\u044C:2,\u0444\u0435\u0432\u0440\u044F\u043B\u044F:2,\u0444\u0435\u0432\u0440\u044F\u043B\u0435:2,\u043C\u0430\u0440\u0442:3,\u043C\u0430\u0440\u0442\u0430:3,\u043C\u0430\u0440\u0442\u0435:3,\u0430\u043F\u0440\u0435\u043B\u044C:4,\u0430\u043F\u0440\u0435\u043B\u044F:4,\u0430\u043F\u0440\u0435\u043B\u0435:4,\u043C\u0430\u0439:5,\u043C\u0430\u044F:5,\u043C\u0430\u0435:5,\u0438\u044E\u043D\u044C:6,\u0438\u044E\u043D\u044F:6,\u0438\u044E\u043D\u0435:6,\u0438\u044E\u043B\u044C:7,\u0438\u044E\u043B\u044F:7,\u0438\u044E\u043B\u0435:7,\u0430\u0432\u0433\u0443\u0441\u0442:8,\u0430\u0432\u0433\u0443\u0441\u0442\u0430:8,\u0430\u0432\u0433\u0443\u0441\u0442\u0435:8,\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C:9,\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F:9,\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u0435:9,\u043E\u043A\u0442\u044F\u0431\u0440\u044C:10,\u043E\u043A\u0442\u044F\u0431\u0440\u044F:10,\u043E\u043A\u0442\u044F\u0431\u0440\u0435:10,\u043D\u043E\u044F\u0431\u0440\u044C:11,\u043D\u043E\u044F\u0431\u0440\u044F:11,\u043D\u043E\u044F\u0431\u0440\u0435:11,\u0434\u0435\u043A\u0430\u0431\u0440\u044C:12,\u0434\u0435\u043A\u0430\u0431\u0440\u044F:12,\u0434\u0435\u043A\u0430\u0431\u0440\u0435:12};de.MONTH_DICTIONARY=Object.assign(Object.assign({},de.FULL_MONTH_NAME_DICTIONARY),{\u044F\u043D\u0432:1,"\u044F\u043D\u0432.":1,\u0444\u0435\u0432:2,"\u0444\u0435\u0432.":2,\u043C\u0430\u0440:3,"\u043C\u0430\u0440.":3,\u0430\u043F\u0440:4,"\u0430\u043F\u0440.":4,\u0430\u0432\u0433:8,"\u0430\u0432\u0433.":8,\u0441\u0435\u043D:9,"\u0441\u0435\u043D.":9,\u043E\u043A\u0442:10,"\u043E\u043A\u0442.":10,\u043D\u043E\u044F:11,"\u043D\u043E\u044F.":11,\u0434\u0435\u043A:12,"\u0434\u0435\u043A.":12});de.INTEGER_WORD_DICTIONARY={\u043E\u0434\u0438\u043D:1,\u043E\u0434\u043D\u0430:1,\u043E\u0434\u043D\u043E\u0439:1,\u043E\u0434\u043D\u0443:1,\u0434\u0432\u0435:2,\u0434\u0432\u0430:2,\u0434\u0432\u0443\u0445:2,\u0442\u0440\u0438:3,\u0442\u0440\u0435\u0445:3,\u0442\u0440\u0451\u0445:3,\u0447\u0435\u0442\u044B\u0440\u0435:4,\u0447\u0435\u0442\u044B\u0440\u0435\u0445:4,\u0447\u0435\u0442\u044B\u0440\u0451\u0445:4,\u043F\u044F\u0442\u044C:5,\u043F\u044F\u0442\u0438:5,\u0448\u0435\u0441\u0442\u044C:6,\u0448\u0435\u0441\u0442\u0438:6,\u0441\u0435\u043C\u044C:7,\u0441\u0435\u043C\u0438:7,\u0432\u043E\u0441\u0435\u043C\u044C:8,\u0432\u043E\u0441\u0435\u043C\u044C\u043C\u0438:8,\u0434\u0435\u0432\u044F\u0442\u044C:9,\u0434\u0435\u0432\u044F\u0442\u0438:9,\u0434\u0435\u0441\u044F\u0442\u044C:10,\u0434\u0435\u0441\u044F\u0442\u0438:10,\u043E\u0434\u0438\u043D\u043D\u0430\u0434\u0446\u0430\u0442\u044C:11,\u043E\u0434\u0438\u043D\u043D\u0430\u0434\u0446\u0430\u0442\u0438:11,\u0434\u0432\u0435\u043D\u0430\u0434\u0446\u0430\u0442\u044C:12,\u0434\u0432\u0435\u043D\u0430\u0434\u0446\u0430\u0442\u0438:12};de.ORDINAL_WORD_DICTIONARY={\u043F\u0435\u0440\u0432\u043E\u0435:1,\u043F\u0435\u0440\u0432\u043E\u0433\u043E:1,\u0432\u0442\u043E\u0440\u043E\u0435:2,\u0432\u0442\u043E\u0440\u043E\u0433\u043E:2,\u0442\u0440\u0435\u0442\u044C\u0435:3,\u0442\u0440\u0435\u0442\u044C\u0435\u0433\u043E:3,\u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043E\u0435:4,\u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043E\u0433\u043E:4,\u043F\u044F\u0442\u043E\u0435:5,\u043F\u044F\u0442\u043E\u0433\u043E:5,\u0448\u0435\u0441\u0442\u043E\u0435:6,\u0448\u0435\u0441\u0442\u043E\u0433\u043E:6,\u0441\u0435\u0434\u044C\u043C\u043E\u0435:7,\u0441\u0435\u0434\u044C\u043C\u043E\u0433\u043E:7,\u0432\u043E\u0441\u044C\u043C\u043E\u0435:8,\u0432\u043E\u0441\u044C\u043C\u043E\u0433\u043E:8,\u0434\u0435\u0432\u044F\u0442\u043E\u0435:9,\u0434\u0435\u0432\u044F\u0442\u043E\u0433\u043E:9,\u0434\u0435\u0441\u044F\u0442\u043E\u0435:10,\u0434\u0435\u0441\u044F\u0442\u043E\u0433\u043E:10,\u043E\u0434\u0438\u043D\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:11,\u043E\u0434\u0438\u043D\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:11,\u0434\u0432\u0435\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:12,\u0434\u0432\u0435\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:12,\u0442\u0440\u0438\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:13,\u0442\u0440\u0438\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:13,\u0447\u0435\u0442\u044B\u0440\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:14,\u0447\u0435\u0442\u044B\u0440\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:14,\u043F\u044F\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:15,\u043F\u044F\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:15,\u0448\u0435\u0441\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:16,\u0448\u0435\u0441\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:16,\u0441\u0435\u043C\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:17,\u0441\u0435\u043C\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:17,\u0432\u043E\u0441\u0435\u043C\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:18,\u0432\u043E\u0441\u0435\u043C\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:18,\u0434\u0435\u0432\u044F\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:19,\u0434\u0435\u0432\u044F\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:19,\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u043E\u0435:20,\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:20,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u043F\u0435\u0440\u0432\u043E\u0435":21,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u043F\u0435\u0440\u0432\u043E\u0433\u043E":21,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0432\u0442\u043E\u0440\u043E\u0435":22,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0432\u0442\u043E\u0440\u043E\u0433\u043E":22,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0442\u0440\u0435\u0442\u044C\u0435":23,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0442\u0440\u0435\u0442\u044C\u0435\u0433\u043E":23,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043E\u0435":24,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043E\u0433\u043E":24,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u043F\u044F\u0442\u043E\u0435":25,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u043F\u044F\u0442\u043E\u0433\u043E":25,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0448\u0435\u0441\u0442\u043E\u0435":26,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0448\u0435\u0441\u0442\u043E\u0433\u043E":26,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0441\u0435\u0434\u044C\u043C\u043E\u0435":27,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0441\u0435\u0434\u044C\u043C\u043E\u0433\u043E":27,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0432\u043E\u0441\u044C\u043C\u043E\u0435":28,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0432\u043E\u0441\u044C\u043C\u043E\u0433\u043E":28,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0434\u0435\u0432\u044F\u0442\u043E\u0435":29,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0434\u0435\u0432\u044F\u0442\u043E\u0433\u043E":29,\u0442\u0440\u0438\u0434\u0446\u0430\u0442\u043E\u0435:30,\u0442\u0440\u0438\u0434\u0446\u0430\u0442\u043E\u0433\u043E:30,"\u0442\u0440\u0438\u0434\u0446\u0430\u0442\u044C \u043F\u0435\u0440\u0432\u043E\u0435":31,"\u0442\u0440\u0438\u0434\u0446\u0430\u0442\u044C \u043F\u0435\u0440\u0432\u043E\u0433\u043E":31};de.TIME_UNIT_DICTIONARY={\u0441\u0435\u043A:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u0430:"second",\u0441\u0435\u043A\u0443\u043D\u0434:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u044B:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u0443:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u043E\u0447\u043A\u0430:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u043E\u0447\u043A\u0438:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u043E\u0447\u0435\u043A:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u043E\u0447\u043A\u0443:"second",\u043C\u0438\u043D:"minute",\u043C\u0438\u043D\u0443\u0442\u0430:"minute",\u043C\u0438\u043D\u0443\u0442:"minute",\u043C\u0438\u043D\u0443\u0442\u044B:"minute",\u043C\u0438\u043D\u0443\u0442\u0443:"minute",\u043C\u0438\u043D\u0443\u0442\u043E\u043A:"minute",\u043C\u0438\u043D\u0443\u0442\u043A\u0438:"minute",\u043C\u0438\u043D\u0443\u0442\u043A\u0443:"minute",\u0447\u0430\u0441:"hour",\u0447\u0430\u0441\u043E\u0432:"hour",\u0447\u0430\u0441\u0430:"hour",\u0447\u0430\u0441\u0443:"hour",\u0447\u0430\u0441\u0438\u043A\u043E\u0432:"hour",\u0447\u0430\u0441\u0438\u043A\u0430:"hour",\u0447\u0430\u0441\u0438\u043A\u0435:"hour",\u0447\u0430\u0441\u0438\u043A:"hour",\u0434\u0435\u043D\u044C:"d",\u0434\u043D\u044F:"d",\u0434\u043D\u0435\u0439:"d",\u0441\u0443\u0442\u043E\u043A:"d",\u0441\u0443\u0442\u043A\u0438:"d",\u043D\u0435\u0434\u0435\u043B\u044F:"week",\u043D\u0435\u0434\u0435\u043B\u0435:"week",\u043D\u0435\u0434\u0435\u043B\u0438:"week",\u043D\u0435\u0434\u0435\u043B\u044E:"week",\u043D\u0435\u0434\u0435\u043B\u044C:"week",\u043D\u0435\u0434\u0435\u043B\u044C\u043A\u0435:"week",\u043D\u0435\u0434\u0435\u043B\u044C\u043A\u0438:"week",\u043D\u0435\u0434\u0435\u043B\u0435\u043A:"week",\u043C\u0435\u0441\u044F\u0446:"month",\u043C\u0435\u0441\u044F\u0446\u0435:"month",\u043C\u0435\u0441\u044F\u0446\u0435\u0432:"month",\u043C\u0435\u0441\u044F\u0446\u0430:"month",\u043A\u0432\u0430\u0440\u0442\u0430\u043B:"quarter",\u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0435:"quarter",\u043A\u0432\u0430\u0440\u0442\u0430\u043B\u043E\u0432:"quarter",\u0433\u043E\u0434:"year",\u0433\u043E\u0434\u0430:"year",\u0433\u043E\u0434\u0443:"year",\u0433\u043E\u0434\u043E\u0432:"year",\u043B\u0435\u0442:"year",\u0433\u043E\u0434\u0438\u043A:"year",\u0433\u043E\u0434\u0438\u043A\u0430:"year",\u0433\u043E\u0434\u0438\u043A\u043E\u0432:"year"};de.NUMBER_PATTERN=`(?:${hu.matchAnyPattern(de.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|\u043F\u043E\u043B|\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E|\u043F\u0430\u0440(?:\u044B|\u0443)|\\s{0,3})`;function rT(r){let e=r.toLowerCase();return de.INTEGER_WORD_DICTIONARY[e]!==void 0?de.INTEGER_WORD_DICTIONARY[e]:e.match(/несколько/)?3:e.match(/пол/)?.5:e.match(/пар/)?2:e===""?1:parseFloat(e)}de.parseNumberPattern=rT;de.ORDINAL_NUMBER_PATTERN=`(?:${hu.matchAnyPattern(de.ORDINAL_WORD_DICTIONARY)}|[0-9]{1,2}(?:\u0433\u043E|\u043E\u0433\u043E|\u0435|\u043E\u0435)?)`;function hN(r){let e=r.toLowerCase();return de.ORDINAL_WORD_DICTIONARY[e]!==void 0?de.ORDINAL_WORD_DICTIONARY[e]:(e=e.replace(/(?:st|nd|rd|th)$/i,""),parseInt(e))}de.parseOrdinalNumberPattern=hN;var Zf="(?:\\s+(?:\u0433\u043E\u0434\u0443|\u0433\u043E\u0434\u0430|\u0433\u043E\u0434|\u0433|\u0433.))?";de.YEAR_PATTERN=`(?:[1-9][0-9]{0,3}${Zf}\\s*(?:\u043D.\u044D.|\u0434\u043E \u043D.\u044D.|\u043D. \u044D.|\u0434\u043E \u043D. \u044D.)|[1-2][0-9]{3}${Zf}|[5-9][0-9]${Zf})`;function pN(r){if(/(год|года|г|г.)/i.test(r)&&(r=r.replace(/(год|года|г|г.)/i,"")),/(до н.э.|до н. э.)/i.test(r))return r=r.replace(/(до н.э.|до н. э.)/i,""),-parseInt(r);if(/(н. э.|н.э.)/i.test(r))return r=r.replace(/(н. э.|н.э.)/i,""),parseInt(r);let e=parseInt(r);return fN.findMostLikelyADYear(e)}de.parseYear=pN;var nT=`(${de.NUMBER_PATTERN})\\s{0,3}(${hu.matchAnyPattern(de.TIME_UNIT_DICTIONARY)})`,tT=new RegExp(nT,"i");de.TIME_UNITS_PATTERN=hu.repeatedTimeunitPattern("(?:(?:\u043E\u043A\u043E\u043B\u043E|\u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E)\\s{0,3})?",nT);function mN(r){let e={},t=r,n=tT.exec(t);for(;n;)yN(e,n),t=t.substring(n[0].length).trim(),n=tT.exec(t);return e}de.parseTimeUnits=mN;function yN(r,e){let t=rT(e[1]),n=de.TIME_UNIT_DICTIONARY[e[2].toLowerCase()];r[n]=t}});var iT=O(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var xa=Zt(),gN=rt(),_N=Z(),sT=`(?:(?:\u043E\u043A\u043E\u043B\u043E|\u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E)\\s*(?:~\\s*)?)?(${xa.TIME_UNITS_PATTERN})${xa.REGEX_PARTS.rightBoundary}`,TN=new RegExp(`(?:\u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435|\u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0438)\\s*${sT}`,xa.REGEX_PARTS.flags),bN=new RegExp(sT,"i"),Xf=class extends _N.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return xa.REGEX_PARTS.leftBoundary}innerPattern(e){return e.option.forwardDate?bN:TN}innerExtract(e,t){let n=xa.parseTimeUnits(t[1]);return gN.ParsingComponents.createRelativeFromReference(e.reference,n)}};Qf.default=Xf});var cT=O(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var vN=xt(),Pa=Zt(),lT=Zt(),pu=Zt(),wN=Fe(),DN=Z(),kN=new RegExp(`(?:\u0441)?\\s*(${pu.ORDINAL_NUMBER_PATTERN})(?:\\s{0,3}(?:\u043F\u043E|-|\u2013|\u0434\u043E)?\\s{0,3}(${pu.ORDINAL_NUMBER_PATTERN}))?(?:-|\\/|\\s{0,3}(?:of)?\\s{0,3})(${wN.matchAnyPattern(Pa.MONTH_DICTIONARY)})(?:(?:-|\\/|,?\\s{0,3})(${lT.YEAR_PATTERN}(?![^\\s]\\d)))?${Pa.REGEX_PARTS.rightBoundary}`,Pa.REGEX_PARTS.flags),aT=1,oT=2,EN=3,uT=4,Jf=class extends DN.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return Pa.REGEX_PARTS.leftBoundary}innerPattern(){return kN}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),s=Pa.MONTH_DICTIONARY[t[EN].toLowerCase()],a=pu.parseOrdinalNumberPattern(t[aT]);if(a>31)return t.index=t.index+t[aT].length,null;if(n.start.assign("month",s),n.start.assign("day",a),t[uT]){let o=lT.parseYear(t[uT]);n.start.assign("year",o)}else{let o=vN.findYearClosestToRef(e.refDate,a,s);n.start.imply("year",o)}if(t[oT]){let o=pu.parseOrdinalNumberPattern(t[oT]);n.end=n.start.clone(),n.end.assign("day",o)}return n}};eh.default=Jf});var hT=O(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var Aa=Zt(),SN=xt(),ON=Fe(),fT=Zt(),MN=Z(),RN=new RegExp(`((?:\u0432)\\s*)?(${ON.matchAnyPattern(Aa.MONTH_DICTIONARY)})\\s*(?:[,-]?\\s*(${fT.YEAR_PATTERN})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,Aa.REGEX_PARTS.flags),xN=2,dT=3,th=class extends MN.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return Aa.REGEX_PARTS.leftBoundary}innerPattern(){return RN}innerExtract(e,t){let n=t[xN].toLowerCase();if(t[0].length<=3&&!Aa.FULL_MONTH_NAME_DICTIONARY[n])return null;let s=e.createParsingResult(t.index,t.index+t[0].length);s.start.imply("day",1);let a=Aa.MONTH_DICTIONARY[n];if(s.start.assign("month",a),t[dT]){let o=fT.parseYear(t[dT]);s.start.assign("year",o)}else{let o=SN.findYearClosestToRef(e.refDate,1,a);s.start.imply("year",o)}return s}};rh.default=th});var mT=O(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var mu=mt(),PN=cs(),pT=Zt(),nh=class extends PN.AbstractTimeExpressionParser{constructor(e){super(e)}patternFlags(){return pT.REGEX_PARTS.flags}primaryPatternLeftBoundary(){return"(^|\\s|T|(?:[^\\p{L}\\p{N}_]))"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|\u0434\u043E|\u0438|\u043F\u043E|\\?)\\s*"}primaryPrefix(){return"(?:(?:\u0432|\u0441)\\s*)??"}primarySuffix(){return`(?:\\s*(?:\u0443\u0442\u0440\u0430|\u0432\u0435\u0447\u0435\u0440\u0430|\u043F\u043E\u0441\u043B\u0435 \u043F\u043E\u043B\u0443\u0434\u043D\u044F))?(?!\\/)${pT.REGEX_PARTS.rightBoundary}`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(n){if(t[0].endsWith("\u0432\u0435\u0447\u0435\u0440\u0430")){let s=n.get("hour");s>=6&&s<12?(n.assign("hour",n.get("hour")+12),n.assign("meridiem",mu.Meridiem.PM)):s<6&&n.assign("meridiem",mu.Meridiem.AM)}if(t[0].endsWith("\u043F\u043E\u0441\u043B\u0435 \u043F\u043E\u043B\u0443\u0434\u043D\u044F")){n.assign("meridiem",mu.Meridiem.PM);let s=n.get("hour");s>=0&&s<=6&&n.assign("hour",n.get("hour")+12)}t[0].endsWith("\u0443\u0442\u0440\u0430")&&(n.assign("meridiem",mu.Meridiem.AM),n.get("hour")<12&&n.assign("hour",n.get("hour")))}return n}};sh.default=nh});var yT=O(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var yu=Zt(),AN=rt(),NN=Z(),CN=gr(),IN=new RegExp(`(${yu.TIME_UNITS_PATTERN})\\s{0,5}\u043D\u0430\u0437\u0430\u0434(?=(?:\\W|$))`,yu.REGEX_PARTS.flags),ih=class extends NN.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return yu.REGEX_PARTS.leftBoundary}innerPattern(){return IN}innerExtract(e,t){let n=yu.parseTimeUnits(t[1]),s=CN.reverseTimeUnits(n);return AN.ParsingComponents.createRelativeFromReference(e.reference,s)}};ah.default=ih});var gT=O(Na=>{"use strict";var FN=Na&&Na.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Na,"__esModule",{value:!0});var LN=FN(jr()),oh=class extends LN.default{patternBetween(){return/^\s*(и до|и по|до|по|-)\s*$/i}};Na.default=oh});var _T=O(Ca=>{"use strict";var YN=Ca&&Ca.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ca,"__esModule",{value:!0});var UN=YN(an()),uh=class extends UN.default{patternBetween(){return new RegExp("^\\s*(T|\u0432|,|-)?\\s*$")}};Ca.default=uh});var TT=O(pn=>{"use strict";var WN=pn&&pn.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),qN=pn&&pn.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),jN=pn&&pn.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&WN(e,r,t);return qN(e,r),e};Object.defineProperty(pn,"__esModule",{value:!0});var $N=Z(),Ia=jN(ln()),lh=Zt(),GN=new RegExp(`(?:\u0441|\u0441\u043E)?\\s*(\u0441\u0435\u0433\u043E\u0434\u043D\u044F|\u0432\u0447\u0435\u0440\u0430|\u0437\u0430\u0432\u0442\u0440\u0430|\u043F\u043E\u0441\u043B\u0435\u0437\u0430\u0432\u0442\u0440\u0430|\u043F\u043E\u0437\u0430\u0432\u0447\u0435\u0440\u0430)${lh.REGEX_PARTS.rightBoundary}`,lh.REGEX_PARTS.flags),ch=class extends $N.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return lh.REGEX_PARTS.leftBoundary}innerPattern(e){return GN}innerExtract(e,t){let n=t[1].toLowerCase(),s=e.createParsingComponents();switch(n){case"\u0441\u0435\u0433\u043E\u0434\u043D\u044F":return Ia.today(e.reference);case"\u0432\u0447\u0435\u0440\u0430":return Ia.yesterday(e.reference);case"\u0437\u0430\u0432\u0442\u0440\u0430":return Ia.tomorrow(e.reference);case"\u043F\u043E\u0441\u043B\u0435\u0437\u0430\u0432\u0442\u0440\u0430":return Ia.theDayAfter(e.reference,2);case"\u043F\u043E\u0437\u0430\u0432\u0447\u0435\u0440\u0430":return Ia.theDayBefore(e.reference,2)}return s}};pn.default=ch});var bT=O(Ir=>{"use strict";var BN=Ir&&Ir.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),HN=Ir&&Ir.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),zN=Ir&&Ir.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&BN(e,r,t);return HN(e,r),e},VN=Ir&&Ir.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ir,"__esModule",{value:!0});var KN=Z(),_s=zN(ln()),ZN=yr(),XN=VN(xe()),dh=Zt(),QN=new RegExp(`(\u0441\u0435\u0439\u0447\u0430\u0441|\u043F\u0440\u043E\u0448\u043B\u044B\u043C\\s*\u0432\u0435\u0447\u0435\u0440\u043E\u043C|\u043F\u0440\u043E\u0448\u043B\u043E\u0439\\s*\u043D\u043E\u0447\u044C\u044E|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439\\s*\u043D\u043E\u0447\u044C\u044E|\u0441\u0435\u0433\u043E\u0434\u043D\u044F\\s*\u043D\u043E\u0447\u044C\u044E|\u044D\u0442\u043E\u0439\\s*\u043D\u043E\u0447\u044C\u044E|\u043D\u043E\u0447\u044C\u044E|\u044D\u0442\u0438\u043C \u0443\u0442\u0440\u043E\u043C|\u0443\u0442\u0440\u043E\u043C|\u0443\u0442\u0440\u0430|\u0432\\s*\u043F\u043E\u043B\u0434\u0435\u043D\u044C|\u0432\u0435\u0447\u0435\u0440\u043E\u043C|\u0432\u0435\u0447\u0435\u0440\u0430|\u0432\\s*\u043F\u043E\u043B\u043D\u043E\u0447\u044C)${dh.REGEX_PARTS.rightBoundary}`,dh.REGEX_PARTS.flags),fh=class extends KN.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return dh.REGEX_PARTS.leftBoundary}innerPattern(){return QN}innerExtract(e,t){let n=XN.default(e.refDate),s=t[0].toLowerCase(),a=e.createParsingComponents();if(s==="\u0441\u0435\u0439\u0447\u0430\u0441")return _s.now(e.reference);if(s==="\u0432\u0435\u0447\u0435\u0440\u043E\u043C"||s==="\u0432\u0435\u0447\u0435\u0440\u0430")return _s.evening(e.reference);if(s.endsWith("\u0443\u0442\u0440\u043E\u043C")||s.endsWith("\u0443\u0442\u0440\u0430"))return _s.morning(e.reference);if(s.match(/в\s*полдень/))return _s.noon(e.reference);if(s.match(/прошлой\s*ночью/))return _s.lastNight(e.reference);if(s.match(/прошлым\s*вечером/))return _s.yesterdayEvening(e.reference);if(s.match(/следующей\s*ночью/)){let o=n.hour()<22?1:2;n=n.add(o,"day"),ZN.assignSimilarDate(a,n),a.imply("hour",0)}return s.match(/в\s*полночь/)||s.endsWith("\u043D\u043E\u0447\u044C\u044E")?_s.midnight(e.reference):a}};Ir.default=fh});var vT=O(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});var Fa=Zt(),JN=Fe(),eC=Z(),tC=fs(),rC=new RegExp(`(?:(?:,|\\(|\uFF08)\\s*)?(?:\u0432\\s*?)?(?:(\u044D\u0442\u0443|\u044D\u0442\u043E\u0442|\u043F\u0440\u043E\u0448\u043B\u044B\u0439|\u043F\u0440\u043E\u0448\u043B\u0443\u044E|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E)\\s*)?(${JN.matchAnyPattern(Fa.WEEKDAY_DICTIONARY)})(?:\\s*(?:,|\\)|\uFF09))?(?:\\s*\u043D\u0430\\s*(\u044D\u0442\u043E\u0439|\u043F\u0440\u043E\u0448\u043B\u043E\u0439|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439)\\s*\u043D\u0435\u0434\u0435\u043B\u0435)?${Fa.REGEX_PARTS.rightBoundary}`,Fa.REGEX_PARTS.flags),nC=1,sC=2,iC=3,hh=class extends eC.AbstractParserWithWordBoundaryChecking{innerPattern(){return rC}patternLeftBoundary(){return Fa.REGEX_PARTS.leftBoundary}innerExtract(e,t){let n=t[sC].toLowerCase(),s=Fa.WEEKDAY_DICTIONARY[n],a=t[nC],o=t[iC],l=a||o;l=l||"",l=l.toLowerCase();let c=null;l=="\u043F\u0440\u043E\u0448\u043B\u044B\u0439"||l=="\u043F\u0440\u043E\u0448\u043B\u0443\u044E"||l=="\u043F\u0440\u043E\u0448\u043B\u043E\u0439"?c="last":l=="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439"||l=="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E"||l=="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439"||l=="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E"?c="next":(l=="\u044D\u0442\u043E\u0442"||l=="\u044D\u0442\u0443"||l=="\u044D\u0442\u043E\u0439")&&(c="this");let f=tC.toDayJSWeekday(e.refDate,s,c);return e.createParsingComponents().assign("weekday",s).imply("day",f.date()).imply("month",f.month()+1).imply("year",f.year())}};ph.default=hh});var DT=O(Ya=>{"use strict";var aC=Ya&&Ya.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ya,"__esModule",{value:!0});var La=Zt(),wT=rt(),oC=aC(xe()),uC=Z(),lC=Fe(),cC=new RegExp(`(\u0432 \u043F\u0440\u043E\u0448\u043B\u043E\u043C|\u043D\u0430 \u043F\u0440\u043E\u0448\u043B\u043E\u0439|\u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439|\u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C|\u043D\u0430 \u044D\u0442\u043E\u0439|\u0432 \u044D\u0442\u043E\u043C)\\s*(${lC.matchAnyPattern(La.TIME_UNIT_DICTIONARY)})(?=\\s*)${La.REGEX_PARTS.rightBoundary}`,La.REGEX_PARTS.flags),dC=1,fC=2,mh=class extends uC.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return La.REGEX_PARTS.leftBoundary}innerPattern(){return cC}innerExtract(e,t){let n=t[dC].toLowerCase(),s=t[fC].toLowerCase(),a=La.TIME_UNIT_DICTIONARY[s];if(n=="\u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439"||n=="\u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C"){let c={};return c[a]=1,wT.ParsingComponents.createRelativeFromReference(e.reference,c)}if(n=="\u0432 \u043F\u0440\u043E\u0448\u043B\u043E\u043C"||n=="\u043D\u0430 \u043F\u0440\u043E\u0448\u043B\u043E\u0439"){let c={};return c[a]=-1,wT.ParsingComponents.createRelativeFromReference(e.reference,c)}let o=e.createParsingComponents(),l=oC.default(e.reference.instant);return a.match(/week/i)?(l=l.add(-l.get("d"),"d"),o.imply("day",l.date()),o.imply("month",l.month()+1),o.imply("year",l.year())):a.match(/month/i)?(l=l.add(-l.date()+1,"d"),o.imply("day",l.date()),o.assign("year",l.year()),o.assign("month",l.month()+1)):a.match(/year/i)&&(l=l.add(-l.date()+1,"d"),l=l.add(-l.month(),"month"),o.imply("day",l.date()),o.imply("month",l.month()+1),o.assign("year",l.year())),o}};Ya.default=mh});var kT=O(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var Ua=Zt(),hC=rt(),pC=Z(),mC=gr(),yC=new RegExp(`(\u044D\u0442\u0438|\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435|\u043F\u0440\u043E\u0448\u043B\u044B\u0435|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435|\u043F\u043E\u0441\u043B\u0435|\u0447\u0435\u0440\u0435\u0437|\\+|-)\\s*(${Ua.TIME_UNITS_PATTERN})${Ua.REGEX_PARTS.rightBoundary}`,Ua.REGEX_PARTS.flags),yh=class extends pC.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return Ua.REGEX_PARTS.leftBoundary}innerPattern(){return yC}innerExtract(e,t){let n=t[1].toLowerCase(),s=Ua.parseTimeUnits(t[2]);switch(n){case"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435":case"\u043F\u0440\u043E\u0448\u043B\u044B\u0435":case"-":s=mC.reverseTimeUnits(s);break}return hC.ParsingComponents.createRelativeFromReference(e.reference,s)}};gh.default=yh});var OT=O(St=>{"use strict";var ir=St&&St.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(St,"__esModule",{value:!0});St.createConfiguration=St.createCasualConfiguration=St.parseDate=St.parse=St.strict=St.casual=void 0;var gC=ir(iT()),_C=ir(cT()),TC=ir(hT()),bC=ir(mT()),vC=ir(yT()),wC=ir(gT()),DC=ir(_T()),kC=on(),EC=ir(TT()),SC=ir(bT()),OC=ir(vT()),MC=ir(DT()),ET=xr(),RC=ir(hs()),xC=ir(kT());St.casual=new ET.Chrono(ST());St.strict=new ET.Chrono(_h(!0));function PC(r,e,t){return St.casual.parse(r,e,t)}St.parse=PC;function AC(r,e,t){return St.casual.parseDate(r,e,t)}St.parseDate=AC;function ST(){let r=_h(!1);return r.parsers.unshift(new EC.default),r.parsers.unshift(new SC.default),r.parsers.unshift(new TC.default),r.parsers.unshift(new MC.default),r.parsers.unshift(new xC.default),r}St.createCasualConfiguration=ST;function _h(r=!0){return kC.includeCommonConfiguration({parsers:[new RC.default(!0),new gC.default,new _C.default,new OC.default,new bC.default(r),new vC.default],refiners:[new DC.default,new wC.default]},r)}St.createConfiguration=_h});var mt=O(ge=>{"use strict";var NC=ge&&ge.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),CC=ge&&ge.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Wn=ge&&ge.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&NC(e,r,t);return CC(e,r),e};Object.defineProperty(ge,"__esModule",{value:!0});ge.parseDate=ge.parse=ge.casual=ge.strict=ge.ru=ge.zh=ge.nl=ge.pt=ge.ja=ge.fr=ge.de=ge.Meridiem=ge.Chrono=ge.en=void 0;var Th=Wn(Ic());ge.en=Th;var IC=xr();Object.defineProperty(ge,"Chrono",{enumerable:!0,get:function(){return IC.Chrono}});var FC;(function(r){r[r.AM=0]="AM",r[r.PM=1]="PM"})(FC=ge.Meridiem||(ge.Meridiem={}));var LC=Wn(Fy());ge.de=LC;var YC=Wn(dg());ge.fr=YC;var UC=Wn(bg());ge.ja=UC;var WC=Wn(Fg());ge.pt=WC;var qC=Wn(b_());ge.nl=qC;var jC=Wn(eT());ge.zh=jC;var $C=Wn(OT());ge.ru=$C;ge.strict=Th.strict;ge.casual=Th.casual;function GC(r,e,t){return ge.casual.parse(r,e,t)}ge.parse=GC;function BC(r,e,t){return ge.casual.parseDate(r,e,t)}ge.parseDate=BC});var vh=O((bh,ai)=>{(function(r,e){typeof bh=="object"&&typeof ai!="undefined"?ai.exports=e():typeof define=="function"&&define.amd?define(e):r.moment=e()})(bh,function(){"use strict";var r;function e(){return r.apply(null,arguments)}function t(i){r=i}function n(i){return i instanceof Array||Object.prototype.toString.call(i)==="[object Array]"}function s(i){return i!=null&&Object.prototype.toString.call(i)==="[object Object]"}function a(i,u){return Object.prototype.hasOwnProperty.call(i,u)}function o(i){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(i).length===0;var u;for(u in i)if(a(i,u))return!1;return!0}function l(i){return i===void 0}function c(i){return typeof i=="number"||Object.prototype.toString.call(i)==="[object Number]"}function f(i){return i instanceof Date||Object.prototype.toString.call(i)==="[object Date]"}function m(i,u){var d=[],h,p=i.length;for(h=0;h>>0,h;for(h=0;h0)for(d=0;d=0;return(b?d?"+":"":"-")+Math.pow(10,Math.max(0,p)).toString().substr(1)+h}var w=/(\[[^\[]*\])|(\\)?([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,k=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,S={},M={};function D(i,u,d,h){var p=h;typeof h=="string"&&(p=function(){return this[h]()}),i&&(M[i]=p),u&&(M[u[0]]=function(){return _(p.apply(this,arguments),u[1],u[2])}),d&&(M[d]=function(){return this.localeData().ordinal(p.apply(this,arguments),i)})}function I(i){return i.match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"")}function A(i){var u=i.match(w),d,h;for(d=0,h=u.length;d=0&&k.test(i);)i=i.replace(k,h),k.lastIndex=0,d-=1;return i}var De={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 ye(i){var u=this._longDateFormat[i],d=this._longDateFormat[i.toUpperCase()];return u||!d?u:(this._longDateFormat[i]=d.match(w).map(function(h){return h==="MMMM"||h==="MM"||h==="DD"||h==="dddd"?h.slice(1):h}).join(""),this._longDateFormat[i])}var ce="Invalid date";function Fe(){return this._invalidDate}var K="%d",qe=/\d{1,2}/;function Je(i){return this._ordinal.replace("%d",i)}var Ze={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 Dr(i,u,d,h){var p=this._relativeTime[d];return V(p)?p(i,u,d,h):p.replace(/%d/i,i)}function Ot(i,u){var d=this._relativeTime[i>0?"future":"past"];return V(d)?d(u):d.replace(/%s/i,u)}var Ae={};function nt(i,u){var d=i.toLowerCase();Ae[d]=Ae[d+"s"]=Ae[u]=i}function yt(i){return typeof i=="string"?Ae[i]||Ae[i.toLowerCase()]:void 0}function kn(i){var u={},d,h;for(h in i)a(i,h)&&(d=yt(h),d&&(u[d]=i[h]));return u}var Ri={};function je(i,u){Ri[i]=u}function Ns(i){var u=[],d;for(d in i)a(i,d)&&u.push({unit:d,priority:Ri[d]});return u.sort(function(h,p){return h.priority-p.priority}),u}function Kn(i){return i%4===0&&i%100!==0||i%400===0}function dt(i){return i<0?Math.ceil(i)||0:Math.floor(i)}function de(i){var u=+i,d=0;return u!==0&&isFinite(u)&&(d=dt(u)),d}function zr(i,u){return function(d){return d!=null?(Zn(this,i,d),e.updateOffset(this,u),this):Mt(this,i)}}function Mt(i,u){return i.isValid()?i._d["get"+(i._isUTC?"UTC":"")+u]():NaN}function Zn(i,u,d){i.isValid()&&!isNaN(d)&&(u==="FullYear"&&Kn(i.year())&&i.month()===1&&i.date()===29?(d=de(d),i._d["set"+(i._isUTC?"UTC":"")+u](d,i.month(),co(d,i.month()))):i._d["set"+(i._isUTC?"UTC":"")+u](d))}function ao(i){return i=yt(i),V(this[i])?this[i]():this}function Fr(i,u){if(typeof i=="object"){i=kn(i);var d=Ns(i),h,p=d.length;for(h=0;h68?1900:2e3)};var mp=zr("FullYear",!0);function Jv(){return Kn(this.year())}function ew(i,u,d,h,p,b,P){var re;return i<100&&i>=0?(re=new Date(i+400,u,d,h,p,b,P),isFinite(re.getFullYear())&&re.setFullYear(i)):re=new Date(i,u,d,h,p,b,P),re}function Ai(i){var u,d;return i<100&&i>=0?(d=Array.prototype.slice.call(arguments),d[0]=i+400,u=new Date(Date.UTC.apply(null,d)),isFinite(u.getUTCFullYear())&&u.setUTCFullYear(i)):u=new Date(Date.UTC.apply(null,arguments)),u}function fo(i,u,d){var h=7+u-d,p=(7+Ai(i,0,h).getUTCDay()-u)%7;return-p+h-1}function yp(i,u,d,h,p){var b=(7+d-h)%7,P=fo(i,h,p),re=1+7*(u-1)+b+P,ge,Ue;return re<=0?(ge=i-1,Ue=xi(ge)+re):re>xi(i)?(ge=i+1,Ue=re-xi(i)):(ge=i,Ue=re),{year:ge,dayOfYear:Ue}}function Ni(i,u,d){var h=fo(i.year(),u,d),p=Math.floor((i.dayOfYear()-h-1)/7)+1,b,P;return p<1?(P=i.year()-1,b=p+Zr(P,u,d)):p>Zr(i.year(),u,d)?(b=p-Zr(i.year(),u,d),P=i.year()+1):(P=i.year(),b=p),{week:b,year:P}}function Zr(i,u,d){var h=fo(i,u,d),p=fo(i+1,u,d);return(xi(i)-h+p)/7}D("w",["ww",2],"wo","week"),D("W",["WW",2],"Wo","isoWeek"),nt("week","w"),nt("isoWeek","W"),je("week",5),je("isoWeek",5),H("w",Ye),H("ww",Ye,gt),H("W",Ye),H("WW",Ye,gt),hr(["w","ww","W","WW"],function(i,u,d,h){u[h.substr(0,1)]=de(i)});function tw(i){return Ni(i,this._week.dow,this._week.doy).week}var rw={dow:0,doy:6};function nw(){return this._week.dow}function sw(){return this._week.doy}function iw(i){var u=this.localeData().week(this);return i==null?u:this.add((i-u)*7,"d")}function aw(i){var u=Ni(this,1,4).week;return i==null?u:this.add((i-u)*7,"d")}D("d",0,"do","day"),D("dd",0,0,function(i){return this.localeData().weekdaysMin(this,i)}),D("ddd",0,0,function(i){return this.localeData().weekdaysShort(this,i)}),D("dddd",0,0,function(i){return this.localeData().weekdays(this,i)}),D("e",0,0,"weekday"),D("E",0,0,"isoWeekday"),nt("day","d"),nt("weekday","e"),nt("isoWeekday","E"),je("day",11),je("weekday",11),je("isoWeekday",11),H("d",Ye),H("e",Ye),H("E",Ye),H("dd",function(i,u){return u.weekdaysMinRegex(i)}),H("ddd",function(i,u){return u.weekdaysShortRegex(i)}),H("dddd",function(i,u){return u.weekdaysRegex(i)}),hr(["dd","ddd","dddd"],function(i,u,d,h){var p=d._locale.weekdaysParse(i,h,d._strict);p!=null?u.d=p:v(d).invalidWeekday=i}),hr(["d","e","E"],function(i,u,d,h){u[h]=de(i)});function ow(i,u){return typeof i!="string"?i:isNaN(i)?(i=u.weekdaysParse(i),typeof i=="number"?i:null):parseInt(i,10)}function uw(i,u){return typeof i=="string"?u.weekdaysParse(i)%7||7:isNaN(i)?null:i}function cl(i,u){return i.slice(u,7).concat(i.slice(0,u))}var lw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gp="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),cw="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),dw=dr,fw=dr,hw=dr;function pw(i,u){var d=n(this._weekdays)?this._weekdays:this._weekdays[i&&i!==!0&&this._weekdays.isFormat.test(u)?"format":"standalone"];return i===!0?cl(d,this._week.dow):i?d[i.day()]:d}function mw(i){return i===!0?cl(this._weekdaysShort,this._week.dow):i?this._weekdaysShort[i.day()]:this._weekdaysShort}function yw(i){return i===!0?cl(this._weekdaysMin,this._week.dow):i?this._weekdaysMin[i.day()]:this._weekdaysMin}function gw(i,u,d){var h,p,b,P=i.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],h=0;h<7;++h)b=T([2e3,1]).day(h),this._minWeekdaysParse[h]=this.weekdaysMin(b,"").toLocaleLowerCase(),this._shortWeekdaysParse[h]=this.weekdaysShort(b,"").toLocaleLowerCase(),this._weekdaysParse[h]=this.weekdays(b,"").toLocaleLowerCase();return d?u==="dddd"?(p=st.call(this._weekdaysParse,P),p!==-1?p:null):u==="ddd"?(p=st.call(this._shortWeekdaysParse,P),p!==-1?p:null):(p=st.call(this._minWeekdaysParse,P),p!==-1?p:null):u==="dddd"?(p=st.call(this._weekdaysParse,P),p!==-1||(p=st.call(this._shortWeekdaysParse,P),p!==-1)?p:(p=st.call(this._minWeekdaysParse,P),p!==-1?p:null)):u==="ddd"?(p=st.call(this._shortWeekdaysParse,P),p!==-1||(p=st.call(this._weekdaysParse,P),p!==-1)?p:(p=st.call(this._minWeekdaysParse,P),p!==-1?p:null)):(p=st.call(this._minWeekdaysParse,P),p!==-1||(p=st.call(this._weekdaysParse,P),p!==-1)?p:(p=st.call(this._shortWeekdaysParse,P),p!==-1?p:null))}function _w(i,u,d){var h,p,b;if(this._weekdaysParseExact)return gw.call(this,i,u,d);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),h=0;h<7;h++){if(p=T([2e3,1]).day(h),d&&!this._fullWeekdaysParse[h]&&(this._fullWeekdaysParse[h]=new RegExp("^"+this.weekdays(p,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[h]=new RegExp("^"+this.weekdaysShort(p,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[h]=new RegExp("^"+this.weekdaysMin(p,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[h]||(b="^"+this.weekdays(p,"")+"|^"+this.weekdaysShort(p,"")+"|^"+this.weekdaysMin(p,""),this._weekdaysParse[h]=new RegExp(b.replace(".",""),"i")),d&&u==="dddd"&&this._fullWeekdaysParse[h].test(i))return h;if(d&&u==="ddd"&&this._shortWeekdaysParse[h].test(i))return h;if(d&&u==="dd"&&this._minWeekdaysParse[h].test(i))return h;if(!d&&this._weekdaysParse[h].test(i))return h}}function Tw(i){if(!this.isValid())return i!=null?this:NaN;var u=this._isUTC?this._d.getUTCDay():this._d.getDay();return i!=null?(i=ow(i,this.localeData()),this.add(i-u,"d")):u}function bw(i){if(!this.isValid())return i!=null?this:NaN;var u=(this.day()+7-this.localeData()._week.dow)%7;return i==null?u:this.add(i-u,"d")}function vw(i){if(!this.isValid())return i!=null?this:NaN;if(i!=null){var u=uw(i,this.localeData());return this.day(this.day()%7?u:u-7)}else return this.day()||7}function ww(i){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||dl.call(this),i?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=dw),this._weekdaysStrictRegex&&i?this._weekdaysStrictRegex:this._weekdaysRegex)}function kw(i){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||dl.call(this),i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=fw),this._weekdaysShortStrictRegex&&i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Dw(i){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||dl.call(this),i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=hw),this._weekdaysMinStrictRegex&&i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function dl(){function i(jt,tn){return tn.length-jt.length}var u=[],d=[],h=[],p=[],b,P,re,ge,Ue;for(b=0;b<7;b++)P=T([2e3,1]).day(b),re=ft(this.weekdaysMin(P,"")),ge=ft(this.weekdaysShort(P,"")),Ue=ft(this.weekdays(P,"")),u.push(re),d.push(ge),h.push(Ue),p.push(re),p.push(ge),p.push(Ue);u.sort(i),d.sort(i),h.sort(i),p.sort(i),this._weekdaysRegex=new RegExp("^("+p.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+u.join("|")+")","i")}function fl(){return this.hours()%12||12}function Ew(){return this.hours()||24}D("H",["HH",2],0,"hour"),D("h",["hh",2],0,fl),D("k",["kk",2],0,Ew),D("hmm",0,0,function(){return""+fl.apply(this)+_(this.minutes(),2)}),D("hmmss",0,0,function(){return""+fl.apply(this)+_(this.minutes(),2)+_(this.seconds(),2)}),D("Hmm",0,0,function(){return""+this.hours()+_(this.minutes(),2)}),D("Hmmss",0,0,function(){return""+this.hours()+_(this.minutes(),2)+_(this.seconds(),2)});function _p(i,u){D(i,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),u)})}_p("a",!0),_p("A",!1),nt("hour","h"),je("hour",13);function Tp(i,u){return u._meridiemParse}H("a",Tp),H("A",Tp),H("H",Ye),H("h",Ye),H("k",Ye),H("HH",Ye,gt),H("hh",Ye,gt),H("kk",Ye,gt),H("hmm",En),H("hmmss",Cs),H("Hmm",En),H("Hmmss",Cs),Ne(["H","HH"],ne),Ne(["k","kk"],function(i,u,d){var h=de(i);u[ne]=h===24?0:h}),Ne(["a","A"],function(i,u,d){d._isPm=d._locale.isPM(i),d._meridiem=i}),Ne(["h","hh"],function(i,u,d){u[ne]=de(i),v(d).bigHour=!0}),Ne("hmm",function(i,u,d){var h=i.length-2;u[ne]=de(i.substr(0,h)),u[le]=de(i.substr(h)),v(d).bigHour=!0}),Ne("hmmss",function(i,u,d){var h=i.length-4,p=i.length-2;u[ne]=de(i.substr(0,h)),u[le]=de(i.substr(h,2)),u[qt]=de(i.substr(p)),v(d).bigHour=!0}),Ne("Hmm",function(i,u,d){var h=i.length-2;u[ne]=de(i.substr(0,h)),u[le]=de(i.substr(h))}),Ne("Hmmss",function(i,u,d){var h=i.length-4,p=i.length-2;u[ne]=de(i.substr(0,h)),u[le]=de(i.substr(h,2)),u[qt]=de(i.substr(p))});function Sw(i){return(i+"").toLowerCase().charAt(0)==="p"}var Ow=/[ap]\.?m?\.?/i,Mw=zr("Hours",!0);function Rw(i,u,d){return i>11?d?"pm":"PM":d?"am":"AM"}var bp={calendar:ue,longDateFormat:De,invalidDate:ce,ordinal:K,dayOfMonthOrdinalParse:qe,relativeTime:Ze,months:$v,monthsShort:cp,week:rw,weekdays:lw,weekdaysMin:cw,weekdaysShort:gp,meridiemParse:Ow},Qe={},Ci={},Ii;function Pw(i,u){var d,h=Math.min(i.length,u.length);for(d=0;d0;){if(p=ho(b.slice(0,d).join("-")),p)return p;if(h&&h.length>=d&&Pw(b,h)>=d-1)break;d--}u++}return Ii}function Aw(i){return i.match("^[^/\\\\]*$")!=null}function ho(i){var u=null,d;if(Qe[i]===void 0&&typeof ni!="undefined"&&ni&&ni.exports&&Aw(i))try{u=Ii._abbr,d=require,d("./locale/"+i),Mn(u)}catch(h){Qe[i]=null}return Qe[i]}function Mn(i,u){var d;return i&&(l(u)?d=Xr(i):d=hl(i,u),d?Ii=d:typeof console!="undefined"&&console.warn&&console.warn("Locale "+i+" not found. Did you forget to load it?")),Ii._abbr}function hl(i,u){if(u!==null){var d,h=bp;if(u.abbr=i,Qe[i]!=null)mt("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=Qe[i]._config;else if(u.parentLocale!=null)if(Qe[u.parentLocale]!=null)h=Qe[u.parentLocale]._config;else if(d=ho(u.parentLocale),d!=null)h=d._config;else return Ci[u.parentLocale]||(Ci[u.parentLocale]=[]),Ci[u.parentLocale].push({name:i,config:u}),null;return Qe[i]=new Q(x(h,u)),Ci[i]&&Ci[i].forEach(function(p){hl(p.name,p.config)}),Mn(i),Qe[i]}else return delete Qe[i],null}function Nw(i,u){if(u!=null){var d,h,p=bp;Qe[i]!=null&&Qe[i].parentLocale!=null?Qe[i].set(x(Qe[i]._config,u)):(h=ho(i),h!=null&&(p=h._config),u=x(p,u),h==null&&(u.abbr=i),d=new Q(u),d.parentLocale=Qe[i],Qe[i]=d),Mn(i)}else Qe[i]!=null&&(Qe[i].parentLocale!=null?(Qe[i]=Qe[i].parentLocale,i===Mn()&&Mn(i)):Qe[i]!=null&&delete Qe[i]);return Qe[i]}function Xr(i){var u;if(i&&i._locale&&i._locale._abbr&&(i=i._locale._abbr),!i)return Ii;if(!n(i)){if(u=ho(i),u)return u;i=[i]}return xw(i)}function Cw(){return Y(Qe)}function pl(i){var u,d=i._a;return d&&v(i).overflow===-2&&(u=d[Xe]<0||d[Xe]>11?Xe:d[G]<1||d[G]>co(d[et],d[Xe])?G:d[ne]<0||d[ne]>24||d[ne]===24&&(d[le]!==0||d[qt]!==0||d[es]!==0)?ne:d[le]<0||d[le]>59?le:d[qt]<0||d[qt]>59?qt:d[es]<0||d[es]>999?es:-1,v(i)._overflowDayOfYear&&(uG)&&(u=G),v(i)._overflowWeeks&&u===-1&&(u=Wv),v(i)._overflowWeekday&&u===-1&&(u=qv),v(i).overflow=u),i}var Iw=/^\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)?)?$/,Fw=/^\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)?)?$/,Lw=/Z|[+-]\d\d(?::?\d\d)?/,po=[["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]],ml=[["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/]],Yw=/^\/?Date\((-?\d+)/i,Uw=/^(?:(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}))$/,Ww={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 wp(i){var u,d,h=i._i,p=Iw.exec(h)||Fw.exec(h),b,P,re,ge,Ue=po.length,jt=ml.length;if(p){for(v(i).iso=!0,u=0,d=Ue;uxi(P)||i._dayOfYear===0)&&(v(i)._overflowDayOfYear=!0),d=Ai(P,0,i._dayOfYear),i._a[Xe]=d.getUTCMonth(),i._a[G]=d.getUTCDate()),u=0;u<3&&i._a[u]==null;++u)i._a[u]=h[u]=p[u];for(;u<7;u++)i._a[u]=h[u]=i._a[u]==null?u===2?1:0:i._a[u];i._a[ne]===24&&i._a[le]===0&&i._a[qt]===0&&i._a[es]===0&&(i._nextDay=!0,i._a[ne]=0),i._d=(i._useUTC?Ai:ew).apply(null,h),b=i._useUTC?i._d.getUTCDay():i._d.getDay(),i._tzm!=null&&i._d.setUTCMinutes(i._d.getUTCMinutes()-i._tzm),i._nextDay&&(i._a[ne]=24),i._w&&typeof i._w.d!="undefined"&&i._w.d!==b&&(v(i).weekdayMismatch=!0)}}function Vw(i){var u,d,h,p,b,P,re,ge,Ue;u=i._w,u.GG!=null||u.W!=null||u.E!=null?(b=1,P=4,d=Fs(u.GG,i._a[et],Ni(ze(),1,4).year),h=Fs(u.W,1),p=Fs(u.E,1),(p<1||p>7)&&(ge=!0)):(b=i._locale._week.dow,P=i._locale._week.doy,Ue=Ni(ze(),b,P),d=Fs(u.gg,i._a[et],Ue.year),h=Fs(u.w,Ue.week),u.d!=null?(p=u.d,(p<0||p>6)&&(ge=!0)):u.e!=null?(p=u.e+b,(u.e<0||u.e>6)&&(ge=!0)):p=b),h<1||h>Zr(d,b,P)?v(i)._overflowWeeks=!0:ge!=null?v(i)._overflowWeekday=!0:(re=yp(d,h,p,b,P),i._a[et]=re.year,i._dayOfYear=re.dayOfYear)}e.ISO_8601=function(){},e.RFC_2822=function(){};function gl(i){if(i._f===e.ISO_8601){wp(i);return}if(i._f===e.RFC_2822){kp(i);return}i._a=[],v(i).empty=!0;var u=""+i._i,d,h,p,b,P,re=u.length,ge=0,Ue,jt;for(p=j(i._f,i._locale).match(w)||[],jt=p.length,d=0;d0&&v(i).unusedInput.push(P),u=u.slice(u.indexOf(h)+h.length),ge+=h.length),M[b]?(h?v(i).empty=!1:v(i).unusedTokens.push(b),It(b,h,i)):i._strict&&!h&&v(i).unusedTokens.push(b);v(i).charsLeftOver=re-ge,u.length>0&&v(i).unusedInput.push(u),i._a[ne]<=12&&v(i).bigHour===!0&&i._a[ne]>0&&(v(i).bigHour=void 0),v(i).parsedDateParts=i._a.slice(0),v(i).meridiem=i._meridiem,i._a[ne]=Kw(i._locale,i._a[ne],i._meridiem),Ue=v(i).era,Ue!==null&&(i._a[et]=i._locale.erasConvertYear(Ue,i._a[et])),yl(i),pl(i)}function Kw(i,u,d){var h;return d==null?u:i.meridiemHour!=null?i.meridiemHour(u,d):(i.isPM!=null&&(h=i.isPM(d),h&&u<12&&(u+=12),!h&&u===12&&(u=0)),u)}function Zw(i){var u,d,h,p,b,P,re=!1,ge=i._f.length;if(ge===0){v(i).invalidFormat=!0,i._d=new Date(NaN);return}for(p=0;pthis?this:i:q()});function Sp(i,u){var d,h;if(u.length===1&&n(u[0])&&(u=u[0]),!u.length)return ze();for(d=u[0],h=1;hthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function g0(){if(!l(this._isDSTShifted))return this._isDSTShifted;var i={},u;return me(i,this),i=Dp(i),i._a?(u=i._isUTC?T(i._a):ze(i._a),this._isDSTShifted=this.isValid()&&u0(i._a,u.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function _0(){return this.isValid()?!this._isUTC:!1}function T0(){return this.isValid()?this._isUTC:!1}function Mp(){return this.isValid()?this._isUTC&&this._offset===0:!1}var b0=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,v0=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Er(i,u){var d=i,h=null,p,b,P;return yo(i)?d={ms:i._milliseconds,d:i._days,M:i._months}:c(i)||!isNaN(+i)?(d={},u?d[u]=+i:d.milliseconds=+i):(h=b0.exec(i))?(p=h[1]==="-"?-1:1,d={y:0,d:de(h[G])*p,h:de(h[ne])*p,m:de(h[le])*p,s:de(h[qt])*p,ms:de(_l(h[es]*1e3))*p}):(h=v0.exec(i))?(p=h[1]==="-"?-1:1,d={y:ts(h[2],p),M:ts(h[3],p),w:ts(h[4],p),d:ts(h[5],p),h:ts(h[6],p),m:ts(h[7],p),s:ts(h[8],p)}):d==null?d={}:typeof d=="object"&&("from"in d||"to"in d)&&(P=w0(ze(d.from),ze(d.to)),d={},d.ms=P.milliseconds,d.M=P.months),b=new mo(d),yo(i)&&a(i,"_locale")&&(b._locale=i._locale),yo(i)&&a(i,"_isValid")&&(b._isValid=i._isValid),b}Er.fn=mo.prototype,Er.invalid=o0;function ts(i,u){var d=i&&parseFloat(i.replace(",","."));return(isNaN(d)?0:d)*u}function Rp(i,u){var d={};return d.months=u.month()-i.month()+(u.year()-i.year())*12,i.clone().add(d.months,"M").isAfter(u)&&--d.months,d.milliseconds=+u-+i.clone().add(d.months,"M"),d}function w0(i,u){var d;return i.isValid()&&u.isValid()?(u=bl(u,i),i.isBefore(u)?d=Rp(i,u):(d=Rp(u,i),d.milliseconds=-d.milliseconds,d.months=-d.months),d):{milliseconds:0,months:0}}function Pp(i,u){return function(d,h){var p,b;return h!==null&&!isNaN(+h)&&(mt(u,"moment()."+u+"(period, number) is deprecated. Please use moment()."+u+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),b=d,d=h,h=b),p=Er(d,h),xp(this,p,i),this}}function xp(i,u,d,h){var p=u._milliseconds,b=_l(u._days),P=_l(u._months);!i.isValid()||(h=h==null?!0:h,P&&fp(i,Mt(i,"Month")+P*d),b&&Zn(i,"Date",Mt(i,"Date")+b*d),p&&i._d.setTime(i._d.valueOf()+p*d),h&&e.updateOffset(i,b||P))}var k0=Pp(1,"add"),D0=Pp(-1,"subtract");function Ap(i){return typeof i=="string"||i instanceof String}function E0(i){return ve(i)||f(i)||Ap(i)||c(i)||O0(i)||S0(i)||i===null||i===void 0}function S0(i){var u=s(i)&&!o(i),d=!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"],p,b,P=h.length;for(p=0;pd.valueOf():d.valueOf()9999?N(d,u?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):V(Date.prototype.toISOString)?u?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",N(d,"Z")):N(d,u?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function q0(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var i="moment",u="",d,h,p,b;return this.isLocal()||(i=this.utcOffset()===0?"moment.utc":"moment.parseZone",u="Z"),d="["+i+'("]',h=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",p="-MM-DD[T]HH:mm:ss.SSS",b=u+'[")]',this.format(d+h+p+b)}function j0(i){i||(i=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var u=N(this,i);return this.localeData().postformat(u)}function $0(i,u){return this.isValid()&&(ve(i)&&i.isValid()||ze(i).isValid())?Er({to:this,from:i}).locale(this.locale()).humanize(!u):this.localeData().invalidDate()}function B0(i){return this.from(ze(),i)}function G0(i,u){return this.isValid()&&(ve(i)&&i.isValid()||ze(i).isValid())?Er({from:this,to:i}).locale(this.locale()).humanize(!u):this.localeData().invalidDate()}function H0(i){return this.to(ze(),i)}function Np(i){var u;return i===void 0?this._locale._abbr:(u=Xr(i),u!=null&&(this._locale=u),this)}var Cp=te("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 Ip(){return this._locale}var _o=1e3,Ls=60*_o,To=60*Ls,Fp=(365*400+97)*24*To;function Ys(i,u){return(i%u+u)%u}function Lp(i,u,d){return i<100&&i>=0?new Date(i+400,u,d)-Fp:new Date(i,u,d).valueOf()}function Yp(i,u,d){return i<100&&i>=0?Date.UTC(i+400,u,d)-Fp:Date.UTC(i,u,d)}function z0(i){var u,d;if(i=yt(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(d=this._isUTC?Yp:Lp,i){case"year":u=d(this.year(),0,1);break;case"quarter":u=d(this.year(),this.month()-this.month()%3,1);break;case"month":u=d(this.year(),this.month(),1);break;case"week":u=d(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":u=d(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":u=d(this.year(),this.month(),this.date());break;case"hour":u=this._d.valueOf(),u-=Ys(u+(this._isUTC?0:this.utcOffset()*Ls),To);break;case"minute":u=this._d.valueOf(),u-=Ys(u,Ls);break;case"second":u=this._d.valueOf(),u-=Ys(u,_o);break}return this._d.setTime(u),e.updateOffset(this,!0),this}function V0(i){var u,d;if(i=yt(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(d=this._isUTC?Yp:Lp,i){case"year":u=d(this.year()+1,0,1)-1;break;case"quarter":u=d(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":u=d(this.year(),this.month()+1,1)-1;break;case"week":u=d(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":u=d(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":u=d(this.year(),this.month(),this.date()+1)-1;break;case"hour":u=this._d.valueOf(),u+=To-Ys(u+(this._isUTC?0:this.utcOffset()*Ls),To)-1;break;case"minute":u=this._d.valueOf(),u+=Ls-Ys(u,Ls)-1;break;case"second":u=this._d.valueOf(),u+=_o-Ys(u,_o)-1;break}return this._d.setTime(u),e.updateOffset(this,!0),this}function K0(){return this._d.valueOf()-(this._offset||0)*6e4}function Z0(){return Math.floor(this.valueOf()/1e3)}function X0(){return new Date(this.valueOf())}function Q0(){var i=this;return[i.year(),i.month(),i.date(),i.hour(),i.minute(),i.second(),i.millisecond()]}function J0(){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 e1(){return this.isValid()?this.toISOString():null}function t1(){return C(this)}function r1(){return g({},v(this))}function n1(){return v(this).overflow}function s1(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}D("N",0,0,"eraAbbr"),D("NN",0,0,"eraAbbr"),D("NNN",0,0,"eraAbbr"),D("NNNN",0,0,"eraName"),D("NNNNN",0,0,"eraNarrow"),D("y",["y",1],"yo","eraYear"),D("y",["yy",2],0,"eraYear"),D("y",["yyy",3],0,"eraYear"),D("y",["yyyy",4],0,"eraYear"),H("N",wl),H("NN",wl),H("NNN",wl),H("NNNN",m1),H("NNNNN",y1),Ne(["N","NN","NNN","NNNN","NNNNN"],function(i,u,d,h){var p=d._locale.erasParse(i,h,d._strict);p?v(d).era=p:v(d).invalidEra=i}),H("y",cr),H("yy",cr),H("yyy",cr),H("yyyy",cr),H("yo",g1),Ne(["y","yy","yyy","yyyy"],et),Ne(["yo"],function(i,u,d,h){var p;d._locale._eraYearOrdinalRegex&&(p=i.match(d._locale._eraYearOrdinalRegex)),d._locale.eraYearOrdinalParse?u[et]=d._locale.eraYearOrdinalParse(i,p):u[et]=parseInt(i,10)});function i1(i,u){var d,h,p,b=this._eras||Xr("en")._eras;for(d=0,h=b.length;d=0)return b[h]}function o1(i,u){var d=i.since<=i.until?1:-1;return u===void 0?e(i.since).year():e(i.since).year()+(u-i.offset)*d}function u1(){var i,u,d,h=this.localeData().eras();for(i=0,u=h.length;ib&&(u=b),D1.call(this,i,u,d,h,p))}function D1(i,u,d,h,p){var b=yp(i,u,d,h,p),P=Ai(b.year,0,b.dayOfYear);return this.year(P.getUTCFullYear()),this.month(P.getUTCMonth()),this.date(P.getUTCDate()),this}D("Q",0,"Qo","quarter"),nt("quarter","Q"),je("quarter",7),H("Q",Dn),Ne("Q",function(i,u){u[Xe]=(de(i)-1)*3});function E1(i){return i==null?Math.ceil((this.month()+1)/3):this.month((i-1)*3+this.month()%3)}D("D",["DD",2],"Do","date"),nt("date","D"),je("date",9),H("D",Ye),H("DD",Ye,gt),H("Do",function(i,u){return i?u._dayOfMonthOrdinalParse||u._ordinalParse:u._dayOfMonthOrdinalParseLenient}),Ne(["D","DD"],G),Ne("Do",function(i,u){u[G]=de(i.match(Ye)[0])});var Wp=zr("Date",!0);D("DDD",["DDDD",3],"DDDo","dayOfYear"),nt("dayOfYear","DDD"),je("dayOfYear",4),H("DDD",Xn),H("DDDD",Pi),Ne(["DDD","DDDD"],function(i,u,d){d._dayOfYear=de(i)});function S1(i){var u=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return i==null?u:this.add(i-u,"d")}D("m",["mm",2],0,"minute"),nt("minute","m"),je("minute",14),H("m",Ye),H("mm",Ye,gt),Ne(["m","mm"],le);var O1=zr("Minutes",!1);D("s",["ss",2],0,"second"),nt("second","s"),je("second",15),H("s",Ye),H("ss",Ye,gt),Ne(["s","ss"],qt);var M1=zr("Seconds",!1);D("S",0,0,function(){return~~(this.millisecond()/100)}),D(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),D(0,["SSS",3],0,"millisecond"),D(0,["SSSS",4],0,function(){return this.millisecond()*10}),D(0,["SSSSS",5],0,function(){return this.millisecond()*100}),D(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),D(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),D(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),D(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),nt("millisecond","ms"),je("millisecond",16),H("S",Xn,Dn),H("SS",Xn,gt),H("SSS",Xn,Pi);var Rn,qp;for(Rn="SSSS";Rn.length<=9;Rn+="S")H(Rn,cr);function R1(i,u){u[es]=de(("0."+i)*1e3)}for(Rn="S";Rn.length<=9;Rn+="S")Ne(Rn,R1);qp=zr("Milliseconds",!1),D("z",0,0,"zoneAbbr"),D("zz",0,0,"zoneName");function P1(){return this._isUTC?"UTC":""}function x1(){return this._isUTC?"Coordinated Universal Time":""}var F=fe.prototype;F.add=k0,F.calendar=P0,F.clone=x0,F.diff=Y0,F.endOf=V0,F.format=j0,F.from=$0,F.fromNow=B0,F.to=G0,F.toNow=H0,F.get=ao,F.invalidAt=n1,F.isAfter=A0,F.isBefore=N0,F.isBetween=C0,F.isSame=I0,F.isSameOrAfter=F0,F.isSameOrBefore=L0,F.isValid=t1,F.lang=Cp,F.locale=Np,F.localeData=Ip,F.max=t0,F.min=e0,F.parsingFlags=r1,F.set=Fr,F.startOf=z0,F.subtract=D0,F.toArray=Q0,F.toObject=J0,F.toDate=X0,F.toISOString=W0,F.inspect=q0,typeof Symbol!="undefined"&&Symbol.for!=null&&(F[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),F.toJSON=e1,F.toString=U0,F.unix=Z0,F.valueOf=K0,F.creationData=s1,F.eraName=u1,F.eraNarrow=l1,F.eraAbbr=c1,F.eraYear=d1,F.year=mp,F.isLeapYear=Jv,F.weekYear=_1,F.isoWeekYear=T1,F.quarter=F.quarters=E1,F.month=hp,F.daysInMonth=Zv,F.week=F.weeks=iw,F.isoWeek=F.isoWeeks=aw,F.weeksInYear=w1,F.weeksInWeekYear=k1,F.isoWeeksInYear=b1,F.isoWeeksInISOWeekYear=v1,F.date=Wp,F.day=F.days=Tw,F.weekday=bw,F.isoWeekday=vw,F.dayOfYear=S1,F.hour=F.hours=Mw,F.minute=F.minutes=O1,F.second=F.seconds=M1,F.millisecond=F.milliseconds=qp,F.utcOffset=c0,F.utc=f0,F.local=h0,F.parseZone=p0,F.hasAlignedHourOffset=m0,F.isDST=y0,F.isLocal=_0,F.isUtcOffset=T0,F.isUtc=Mp,F.isUTC=Mp,F.zoneAbbr=P1,F.zoneName=x1,F.dates=te("dates accessor is deprecated. Use date instead.",Wp),F.months=te("months accessor is deprecated. Use month instead",hp),F.years=te("years accessor is deprecated. Use year instead",mp),F.zone=te("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",d0),F.isDSTShifted=te("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",g0);function A1(i){return ze(i*1e3)}function N1(){return ze.apply(null,arguments).parseZone()}function jp(i){return i}var Re=Q.prototype;Re.calendar=y,Re.longDateFormat=ye,Re.invalidDate=Fe,Re.ordinal=Je,Re.preparse=jp,Re.postformat=jp,Re.relativeTime=Dr,Re.pastFuture=Ot,Re.set=W,Re.eras=i1,Re.erasParse=a1,Re.erasConvertYear=o1,Re.erasAbbrRegex=h1,Re.erasNameRegex=f1,Re.erasNarrowRegex=p1,Re.months=Hv,Re.monthsShort=zv,Re.monthsParse=Kv,Re.monthsRegex=Qv,Re.monthsShortRegex=Xv,Re.week=tw,Re.firstDayOfYear=sw,Re.firstDayOfWeek=nw,Re.weekdays=pw,Re.weekdaysMin=yw,Re.weekdaysShort=mw,Re.weekdaysParse=_w,Re.weekdaysRegex=ww,Re.weekdaysShortRegex=kw,Re.weekdaysMinRegex=Dw,Re.isPM=Sw,Re.meridiem=Rw;function vo(i,u,d,h){var p=Xr(),b=T().set(h,u);return p[d](b,i)}function $p(i,u,d){if(c(i)&&(u=i,i=void 0),i=i||"",u!=null)return vo(i,u,d,"month");var h,p=[];for(h=0;h<12;h++)p[h]=vo(i,h,d,"month");return p}function Dl(i,u,d,h){typeof i=="boolean"?(c(u)&&(d=u,u=void 0),u=u||""):(u=i,d=u,i=!1,c(u)&&(d=u,u=void 0),u=u||"");var p=Xr(),b=i?p._week.dow:0,P,re=[];if(d!=null)return vo(u,(d+b)%7,h,"day");for(P=0;P<7;P++)re[P]=vo(u,(P+b)%7,h,"day");return re}function C1(i,u){return $p(i,u,"months")}function I1(i,u){return $p(i,u,"monthsShort")}function F1(i,u,d){return Dl(i,u,d,"weekdays")}function L1(i,u,d){return Dl(i,u,d,"weekdaysShort")}function Y1(i,u,d){return Dl(i,u,d,"weekdaysMin")}Mn("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 u=i%10,d=de(i%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th";return i+d}}),e.lang=te("moment.lang is deprecated. Use moment.locale instead.",Mn),e.langData=te("moment.langData is deprecated. Use moment.localeData instead.",Xr);var Qr=Math.abs;function U1(){var i=this._data;return this._milliseconds=Qr(this._milliseconds),this._days=Qr(this._days),this._months=Qr(this._months),i.milliseconds=Qr(i.milliseconds),i.seconds=Qr(i.seconds),i.minutes=Qr(i.minutes),i.hours=Qr(i.hours),i.months=Qr(i.months),i.years=Qr(i.years),this}function Bp(i,u,d,h){var p=Er(u,d);return i._milliseconds+=h*p._milliseconds,i._days+=h*p._days,i._months+=h*p._months,i._bubble()}function W1(i,u){return Bp(this,i,u,1)}function q1(i,u){return Bp(this,i,u,-1)}function Gp(i){return i<0?Math.floor(i):Math.ceil(i)}function j1(){var i=this._milliseconds,u=this._days,d=this._months,h=this._data,p,b,P,re,ge;return i>=0&&u>=0&&d>=0||i<=0&&u<=0&&d<=0||(i+=Gp(El(d)+u)*864e5,u=0,d=0),h.milliseconds=i%1e3,p=dt(i/1e3),h.seconds=p%60,b=dt(p/60),h.minutes=b%60,P=dt(b/60),h.hours=P%24,u+=dt(P/24),ge=dt(Hp(u)),d+=ge,u-=Gp(El(ge)),re=dt(d/12),d%=12,h.days=u,h.months=d,h.years=re,this}function Hp(i){return i*4800/146097}function El(i){return i*146097/4800}function $1(i){if(!this.isValid())return NaN;var u,d,h=this._milliseconds;if(i=yt(i),i==="month"||i==="quarter"||i==="year")switch(u=this._days+h/864e5,d=this._months+Hp(u),i){case"month":return d;case"quarter":return d/3;case"year":return d/12}else switch(u=this._days+Math.round(El(this._months)),i){case"week":return u/7+h/6048e5;case"day":return u+h/864e5;case"hour":return u*24+h/36e5;case"minute":return u*1440+h/6e4;case"second":return u*86400+h/1e3;case"millisecond":return Math.floor(u*864e5)+h;default:throw new Error("Unknown unit "+i)}}function B1(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+de(this._months/12)*31536e6:NaN}function Jr(i){return function(){return this.as(i)}}var G1=Jr("ms"),H1=Jr("s"),z1=Jr("m"),V1=Jr("h"),K1=Jr("d"),Z1=Jr("w"),X1=Jr("M"),Q1=Jr("Q"),J1=Jr("y");function ek(){return Er(this)}function tk(i){return i=yt(i),this.isValid()?this[i+"s"]():NaN}function rs(i){return function(){return this.isValid()?this._data[i]:NaN}}var rk=rs("milliseconds"),nk=rs("seconds"),sk=rs("minutes"),ik=rs("hours"),ak=rs("days"),ok=rs("months"),uk=rs("years");function lk(){return dt(this.days()/7)}var en=Math.round,Us={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ck(i,u,d,h,p){return p.relativeTime(u||1,!!d,i,h)}function dk(i,u,d,h){var p=Er(i).abs(),b=en(p.as("s")),P=en(p.as("m")),re=en(p.as("h")),ge=en(p.as("d")),Ue=en(p.as("M")),jt=en(p.as("w")),tn=en(p.as("y")),Pn=b<=d.ss&&["s",b]||b0,Pn[4]=h,ck.apply(null,Pn)}function fk(i){return i===void 0?en:typeof i=="function"?(en=i,!0):!1}function hk(i,u){return Us[i]===void 0?!1:u===void 0?Us[i]:(Us[i]=u,i==="s"&&(Us.ss=u-1),!0)}function pk(i,u){if(!this.isValid())return this.localeData().invalidDate();var d=!1,h=Us,p,b;return typeof i=="object"&&(u=i,i=!1),typeof i=="boolean"&&(d=i),typeof u=="object"&&(h=Object.assign({},Us,u),u.s!=null&&u.ss==null&&(h.ss=u.s-1)),p=this.localeData(),b=dk(this,!d,h,p),d&&(b=p.pastFuture(+this,b)),p.postformat(b)}var Sl=Math.abs;function Ws(i){return(i>0)-(i<0)||+i}function wo(){if(!this.isValid())return this.localeData().invalidDate();var i=Sl(this._milliseconds)/1e3,u=Sl(this._days),d=Sl(this._months),h,p,b,P,re=this.asSeconds(),ge,Ue,jt,tn;return re?(h=dt(i/60),p=dt(h/60),i%=60,h%=60,b=dt(d/12),d%=12,P=i?i.toFixed(3).replace(/\.?0+$/,""):"",ge=re<0?"-":"",Ue=Ws(this._months)!==Ws(re)?"-":"",jt=Ws(this._days)!==Ws(re)?"-":"",tn=Ws(this._milliseconds)!==Ws(re)?"-":"",ge+"P"+(b?Ue+b+"Y":"")+(d?Ue+d+"M":"")+(u?jt+u+"D":"")+(p||h||i?"T":"")+(p?tn+p+"H":"")+(h?tn+h+"M":"")+(i?tn+P+"S":"")):"P0D"}var Oe=mo.prototype;Oe.isValid=a0,Oe.abs=U1,Oe.add=W1,Oe.subtract=q1,Oe.as=$1,Oe.asMilliseconds=G1,Oe.asSeconds=H1,Oe.asMinutes=z1,Oe.asHours=V1,Oe.asDays=K1,Oe.asWeeks=Z1,Oe.asMonths=X1,Oe.asQuarters=Q1,Oe.asYears=J1,Oe.valueOf=B1,Oe._bubble=j1,Oe.clone=ek,Oe.get=tk,Oe.milliseconds=rk,Oe.seconds=nk,Oe.minutes=sk,Oe.hours=ik,Oe.days=ak,Oe.weeks=lk,Oe.months=ok,Oe.years=uk,Oe.humanize=pk,Oe.toISOString=wo,Oe.toString=wo,Oe.toJSON=wo,Oe.locale=Np,Oe.localeData=Ip,Oe.toIsoString=te("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",wo),Oe.lang=Cp,D("X",0,0,"unix"),D("x",0,0,"valueOf"),H("x",On),H("X",uo),Ne("X",function(i,u,d){d._d=new Date(parseFloat(i)*1e3)}),Ne("x",function(i,u,d){d._d=new Date(de(i))});return e.version="2.29.4",t(ze),e.fn=F,e.min=r0,e.max=n0,e.now=s0,e.utc=T,e.unix=A1,e.months=C1,e.isDate=f,e.locale=Mn,e.invalid=q,e.duration=Er,e.isMoment=ve,e.weekdays=F1,e.parseZone=N1,e.localeData=Xr,e.isDuration=yo,e.monthsShort=I1,e.weekdaysMin=Y1,e.defineLocale=hl,e.updateLocale=Nw,e.locales=Cw,e.weekdaysShort=L1,e.normalizeUnits=yt,e.relativeTimeRounding=fk,e.relativeTimeThreshold=hk,e.calendarFormat=R0,e.prototype=F,e.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"},e})});var KT=O((nY,bu)=>{var MT,RT,PT,xT,AT,NT,CT,IT,FT,_u,vh,LT,YT,UT,ai,WT,qT,jT,$T,BT,GT,HT,zT,VT,Tu;(function(r){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof bu=="object"&&typeof bu.exports=="object"?r(t(e,t(bu.exports))):r(t(e));function t(n,s){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(a,o){return n[a]=s?s(a,o):o}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(n[a]=s[a])};MT=function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");e(n,s);function a(){this.constructor=n}n.prototype=s===null?Object.create(s):(a.prototype=s.prototype,new a)},RT=Object.assign||function(n){for(var s,a=1,o=arguments.length;a=0;m--)(f=n[m])&&(c=(l<3?f(c):l>3?f(s,a,c):f(s,a))||c);return l>3&&c&&Object.defineProperty(s,a,c),c},AT=function(n,s){return function(a,o){s(a,o,n)}},NT=function(n,s){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,s)},CT=function(n,s,a,o){function l(c){return c instanceof a?c:new a(function(f){f(c)})}return new(a||(a=Promise))(function(c,f){function m(E){try{T(o.next(E))}catch(v){f(v)}}function g(E){try{T(o.throw(E))}catch(v){f(v)}}function T(E){E.done?c(E.value):l(E.value).then(m,g)}T((o=o.apply(n,s||[])).next())})},IT=function(n,s){var a={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},o,l,c,f;return f={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function m(T){return function(E){return g([T,E])}}function g(T){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,l&&(c=T[0]&2?l.return:T[0]?l.throw||((c=l.return)&&c.call(l),0):l.next)&&!(c=c.call(l,T[1])).done)return c;switch(l=0,c&&(T=[T[0]&2,c.value]),T[0]){case 0:case 1:c=T;break;case 4:return a.label++,{value:T[1],done:!1};case 5:a.label++,l=T[1],T=[0];continue;case 7:T=a.ops.pop(),a.trys.pop();continue;default:if(c=a.trys,!(c=c.length>0&&c[c.length-1])&&(T[0]===6||T[0]===2)){a=0;continue}if(T[0]===3&&(!c||T[1]>c[0]&&T[1]=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},vh=function(n,s){var a=typeof Symbol=="function"&&n[Symbol.iterator];if(!a)return n;var o=a.call(n),l,c=[],f;try{for(;(s===void 0||s-- >0)&&!(l=o.next()).done;)c.push(l.value)}catch(m){f={error:m}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(f)throw f.error}}return c},LT=function(){for(var n=[],s=0;s1||m(R,C)})})}function m(R,C){try{g(o[R](C))}catch(q){v(c[0][3],q)}}function g(R){R.value instanceof ai?Promise.resolve(R.value.v).then(T,E):v(c[0][2],R)}function T(R){m("next",R)}function E(R){m("throw",R)}function v(R,C){R(C),c.shift(),c.length&&m(c[0][0],c[0][1])}},qT=function(n){var s,a;return s={},o("next"),o("throw",function(l){throw l}),o("return"),s[Symbol.iterator]=function(){return this},s;function o(l,c){s[l]=n[l]?function(f){return(a=!a)?{value:ai(n[l](f)),done:l==="return"}:c?c(f):f}:c}},jT=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=n[Symbol.asyncIterator],a;return s?s.call(n):(n=typeof _u=="function"?_u(n):n[Symbol.iterator](),a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a);function o(c){a[c]=n[c]&&function(f){return new Promise(function(m,g){f=n[c](f),l(m,g,f.done,f.value)})}}function l(c,f,m,g){Promise.resolve(g).then(function(T){c({value:T,done:m})},f)}},$T=function(n,s){return Object.defineProperty?Object.defineProperty(n,"raw",{value:s}):n.raw=s,n};var t=Object.create?function(n,s){Object.defineProperty(n,"default",{enumerable:!0,value:s})}:function(n,s){n.default=s};BT=function(n){if(n&&n.__esModule)return n;var s={};if(n!=null)for(var a in n)a!=="default"&&Object.prototype.hasOwnProperty.call(n,a)&&Tu(s,n,a);return t(s,n),s},GT=function(n){return n&&n.__esModule?n:{default:n}},HT=function(n,s,a,o){if(a==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof s=="function"?n!==s||!o:!s.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?o:a==="a"?o.call(n):o?o.value:s.get(n)},zT=function(n,s,a,o,l){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a setter");if(typeof s=="function"?n!==s||!l:!s.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?l.call(n,a):l?l.value=a:s.set(n,a),a},VT=function(n,s){if(s===null||typeof s!="object"&&typeof s!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?s===n:n.has(s)},r("__extends",MT),r("__assign",RT),r("__rest",PT),r("__decorate",xT),r("__param",AT),r("__metadata",NT),r("__awaiter",CT),r("__generator",IT),r("__exportStar",FT),r("__createBinding",Tu),r("__values",_u),r("__read",vh),r("__spread",LT),r("__spreadArrays",YT),r("__spreadArray",UT),r("__await",ai),r("__asyncGenerator",WT),r("__asyncDelegator",qT),r("__asyncValues",jT),r("__makeTemplateObject",$T),r("__importStar",BT),r("__importDefault",GT),r("__classPrivateFieldGet",HT),r("__classPrivateFieldSet",zT),r("__classPrivateFieldIn",VT)})});var Cb=O((Ab,Nb)=>{(function(r){var e=Object.hasOwnProperty,t=Array.isArray?Array.isArray:function(_){return Object.prototype.toString.call(_)==="[object Array]"},n=10,s=typeof process=="object"&&typeof process.nextTick=="function",a=typeof Symbol=="function",o=typeof Reflect=="object",l=typeof setImmediate=="function",c=l?setImmediate:setTimeout,f=a?o&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(y){var _=Object.getOwnPropertyNames(y);return _.push.apply(_,Object.getOwnPropertySymbols(y)),_}:Object.keys;function m(){this._events={},this._conf&&g.call(this,this._conf)}function g(y){y&&(this._conf=y,y.delimiter&&(this.delimiter=y.delimiter),y.maxListeners!==r&&(this._maxListeners=y.maxListeners),y.wildcard&&(this.wildcard=y.wildcard),y.newListener&&(this._newListener=y.newListener),y.removeListener&&(this._removeListener=y.removeListener),y.verboseMemoryLeak&&(this.verboseMemoryLeak=y.verboseMemoryLeak),y.ignoreErrors&&(this.ignoreErrors=y.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function T(y,_){var w="(node) warning: possible EventEmitter memory leak detected. "+y+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(w+=" Event name: "+_+"."),typeof process!="undefined"&&process.emitWarning){var k=new Error(w);k.name="MaxListenersExceededWarning",k.emitter=this,k.count=y,process.emitWarning(k)}else console.error(w),console.trace&&console.trace()}var E=function(y,_,w){var k=arguments.length;switch(k){case 0:return[];case 1:return[y];case 2:return[y,_];case 3:return[y,_,w];default:for(var S=new Array(k);k--;)S[k]=arguments[k];return S}};function v(y,_){for(var w={},k,S=y.length,M=_?_.length:0,D=0;D0;)y=M[A],D.call(I,y,w[y]);this._listeners={},this._listenersCount=0,N()}}});function C(y,_,w,k){var S=Object.assign({},_);if(!y)return S;if(typeof y!="object")throw TypeError("options must be an object");var M=Object.keys(y),D=M.length,I,A,N;function j(ye){throw Error('Invalid "'+I+'" option value'+(ye?". Reason: "+ye:""))}for(var De=0;De0;)if(I===y[A])return M;D(_)}}var B=$(["function"]),me=$(["object","function"]);function fe(y,_,w){var k,S,M=0,D,I=new y(function(A,N,j){w=C(w,{timeout:0,overload:!1},{timeout:function(Fe,K){return Fe*=1,(typeof Fe!="number"||Fe<0||!Number.isFinite(Fe))&&K("timeout must be a positive number"),Fe}}),k=!w.overload&&typeof y.prototype.cancel=="function"&&typeof j=="function";function De(){S&&(S=null),M&&(clearTimeout(M),M=0)}var ye=function(Fe){De(),A(Fe)},ce=function(Fe){De(),N(Fe)};k?_(ye,ce,j):(S=[function(Fe){ce(Fe||Error("canceled"))}],_(ye,ce,function(Fe){if(D)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof Fe!="function")throw TypeError("onCancel callback must be a function");S.push(Fe)}),D=!0),w.timeout>0&&(M=setTimeout(function(){var Fe=Error("timeout");Fe.code="ETIMEDOUT",M=0,I.cancel(Fe),N(Fe)},w.timeout))});return k||(I.cancel=function(A){if(!!S){for(var N=S.length,j=1;j0;)ce=Ot[I],ce!=="_listeners"&&(Ae=ee(y,_,w[ce],k+1,S),Ae&&(ye?ye.push.apply(ye,Ae):ye=Ae));return ye}else if(Ze==="**"){for(Je=k+1===S||k+2===S&&Dr==="*",Je&&w._listeners&&(ye=ee(y,_,w,S,S)),Ot=f(w),I=Ot.length;I-- >0;)ce=Ot[I],ce!=="_listeners"&&(ce==="*"||ce==="**"?(w[ce]._listeners&&!Je&&(Ae=ee(y,_,w[ce],S,S),Ae&&(ye?ye.push.apply(ye,Ae):ye=Ae)),Ae=ee(y,_,w[ce],k,S)):ce===Dr?Ae=ee(y,_,w[ce],k+2,S):Ae=ee(y,_,w[ce],k,S),Ae&&(ye?ye.push.apply(ye,Ae):ye=Ae));return ye}else w[Ze]&&(ye=ee(y,_,w[Ze],k+1,S));if(Fe=w["*"],Fe&&ee(y,_,Fe,k+1,S),K=w["**"],K)if(k0;)ce=Ot[I],ce!=="_listeners"&&(ce===Dr?ee(y,_,K[ce],k+2,S):ce===Ze?ee(y,_,K[ce],k+1,S):(qe={},qe[ce]=K[ce],ee(y,_,{"**":qe},k+1,S)));else K._listeners?ee(y,_,K,S,S):K["*"]&&K["*"]._listeners&&ee(y,_,K["*"],S,S);return ye}function te(y,_,w){var k=0,S=0,M,D=this.delimiter,I=D.length,A;if(typeof y=="string")if((M=y.indexOf(D))!==-1){A=new Array(5);do A[k++]=y.slice(S,M),S=M+I;while((M=y.indexOf(D,S))!==-1);A[k++]=y.slice(S)}else A=[y],k=1;else A=y,k=y.length;if(k>1){for(M=0;M+10&&N._listeners.length>this._maxListeners&&(N._listeners.warned=!0,T.call(this,N._listeners.length,j))):N._listeners=_,!0;return!0}function Ct(y,_,w,k){for(var S=f(y),M=S.length,D,I,A,N=y._listeners,j;M-- >0;)I=S[M],D=y[I],I==="_listeners"?A=w:A=w?w.concat(I):[I],j=k||typeof I=="symbol",N&&_.push(j?A:A.join(this.delimiter)),typeof D=="object"&&Ct.call(this,D,_,A,j);return _}function mt(y){for(var _=f(y),w=_.length,k,S,M;w-- >0;)S=_[w],k=y[S],k&&(M=!0,S!=="_listeners"&&!mt(k)&&delete y[S]);return M}function V(y,_,w){this.emitter=y,this.event=_,this.listener=w}V.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function W(y,_,w){if(w===!0)S=!0;else if(w===!1)k=!0;else{if(!w||typeof w!="object")throw TypeError("options should be an object or true");var k=w.async,S=w.promisify,M=w.nextTick,D=w.objectify}if(k||M||S){var I=_,A=_._origin||_;if(M&&!s)throw Error("process.nextTick is not supported");S===r&&(S=_.constructor.name==="AsyncFunction"),_=function(){var N=arguments,j=this,De=this.event;return S?M?Promise.resolve():new Promise(function(ye){c(ye)}).then(function(){return j.event=De,I.apply(j,N)}):(M?process.nextTick:c)(function(){j.event=De,I.apply(j,N)})},_._async=!0,_._origin=A}return[_,D?new V(this,y,_):this]}function x(y){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,g.call(this,y)}x.EventEmitter2=x,x.prototype.listenTo=function(y,_,w){if(typeof y!="object")throw TypeError("target musts be an object");var k=this;w=C(w,{on:r,off:r,reducers:r},{on:B,off:B,reducers:me});function S(M){if(typeof M!="object")throw TypeError("events must be an object");var D=w.reducers,I=ve.call(k,y),A;I===-1?A=new R(k,y,w):A=k._observers[I];for(var N=f(M),j=N.length,De,ye=typeof D=="function",ce=0;ce0;)S=w[k],(!y||S._target===y)&&(S.unsubscribe(_),M=!0);return M},x.prototype.delimiter=".",x.prototype.setMaxListeners=function(y){y!==r&&(this._maxListeners=y,this._conf||(this._conf={}),this._conf.maxListeners=y)},x.prototype.getMaxListeners=function(){return this._maxListeners},x.prototype.event="",x.prototype.once=function(y,_,w){return this._once(y,_,!1,w)},x.prototype.prependOnceListener=function(y,_,w){return this._once(y,_,!0,w)},x.prototype._once=function(y,_,w,k){return this._many(y,1,_,w,k)},x.prototype.many=function(y,_,w,k){return this._many(y,_,w,!1,k)},x.prototype.prependMany=function(y,_,w,k){return this._many(y,_,w,!0,k)},x.prototype._many=function(y,_,w,k,S){var M=this;if(typeof w!="function")throw new Error("many only accepts instances of Function");function D(){return--_===0&&M.off(y,D),w.apply(this,arguments)}return D._origin=w,this._on(y,D,k,S)},x.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||m.call(this);var y=arguments[0],_,w=this.wildcard,k,S,M,D,I;if(y==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(w&&(_=y,y!=="newListener"&&y!=="removeListener"&&typeof y=="object")){if(S=y.length,a){for(M=0;M3)for(k=new Array(A-1),D=1;D3)for(S=new Array(N-1),I=1;I0&&this._events[y].length>this._maxListeners&&(this._events[y].warned=!0,T.call(this,this._events[y].length,y))):this._events[y]=_,S)},x.prototype.off=function(y,_){if(typeof _!="function")throw new Error("removeListener only takes instances of Function");var w,k=[];if(this.wildcard){var S=typeof y=="string"?y.split(this.delimiter):y.slice();if(k=ee.call(this,null,S,this.listenerTree,0),!k)return this}else{if(!this._events[y])return this;w=this._events[y],k.push({_listeners:w})}for(var M=0;M0){for(k=this._all,_=0,w=k.length;_0;)k=_[w[M]],typeof k=="function"?S.push(k):S.push.apply(S,k);return S}else{if(this.wildcard){if(D=this.listenerTree,!D)return[];var I=[],A=typeof y=="string"?y.split(this.delimiter):y.slice();return ee.call(this,I,A,D,0),I}return _?(k=_[y],k?typeof k=="function"?[k]:k:[]):[]}},x.prototype.eventNames=function(y){var _=this._events;return this.wildcard?Ct.call(this,this.listenerTree,[],null,y):_?f(_):[]},x.prototype.listenerCount=function(y){return this.listeners(y).length},x.prototype.hasListeners=function(y){if(this.wildcard){var _=[],w=typeof y=="string"?y.split(this.delimiter):y.slice();return ee.call(this,_,w,this.listenerTree,0),_.length>0}var k=this._events,S=this._all;return!!(S&&S.length||k&&(y===r?f(k).length:k[y]))},x.prototype.listenersAny=function(){return this._all?this._all:[]},x.prototype.waitFor=function(y,_){var w=this,k=typeof _;return k==="number"?_={timeout:_}:k==="function"&&(_={filter:_}),_=C(_,{timeout:0,filter:r,handleError:!1,Promise,overload:!1},{filter:B,Promise:q}),fe(_.Promise,function(S,M,D){function I(){var A=_.filter;if(!(A&&!A.apply(w,arguments)))if(w.off(y,I),_.handleError){var N=arguments[0];N?M(N):S(E.apply(null,arguments).slice(1))}else S(E.apply(null,arguments))}D(function(){w.off(y,I)}),w._on(y,I,!1)},{timeout:_.timeout,overload:_.overload})};function Q(y,_,w){w=C(w,{Promise,timeout:0,overload:!1},{Promise:q});var k=w.Promise;return fe(k,function(S,M,D){var I;if(typeof y.addEventListener=="function"){I=function(){S(E.apply(null,arguments))},D(function(){y.removeEventListener(_,I)}),y.addEventListener(_,I,{once:!0});return}var A=function(){N&&y.removeListener("error",N),S(E.apply(null,arguments))},N;_!=="error"&&(N=function(j){y.removeListener(_,A),M(j)},y.once("error",N)),D(function(){N&&y.removeListener("error",N),y.removeListener(_,A)}),y.once(_,A)},{timeout:w.timeout,overload:w.overload})}var Y=x.prototype;if(Object.defineProperties(x,{defaultMaxListeners:{get:function(){return Y._maxListeners},set:function(y){if(typeof y!="number"||y<0||Number.isNaN(y))throw TypeError("n must be a non-negative number");Y._maxListeners=y},enumerable:!0},once:{value:Q,writable:!0,configurable:!0}}),Object.defineProperties(Y,{_maxListeners:{value:n,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),typeof define=="function"&&define.amd)define(function(){return x});else if(typeof Ab=="object")Nb.exports=x;else{var ue=new Function("","return this")();ue.EventEmitter2=x}})()});var Hr=O(zn=>{"use strict";zn.__esModule=!0;var iF;(function(r){r.AND="AND",r.OR="OR",r.XOR="XOR",r.NOT="NOT"})(iF=zn.Operators||(zn.Operators={}));var aF;(function(r){r.OPEN_PARENTHESIS="(",r.CLOSE_PARENTHESIS=")"})(aF=zn.StructuralCharacters||(zn.StructuralCharacters={}));var oF;(function(r){r.IDENTIFIER="IDENTIFIER",r.OPERATOR="OPERATOR",r.STRUCTURAL_CHARACTER="STRUCTURAL_CHARACTER",r.EOF="EOF",r.COMMENT="COMMENT"})(oF=zn.Tokens||(zn.Tokens={}))});var Xh=O(Bu=>{"use strict";Bu.__esModule=!0;var rt=Hr();Bu.OPERATOR_PRECEDENCE={NOT:0,XOR:1,AND:2,OR:3};Bu.VALID_TOKENS={identifierOnly:[{name:rt.Tokens.IDENTIFIER},{name:rt.Tokens.STRUCTURAL_CHARACTER,value:rt.StructuralCharacters.OPEN_PARENTHESIS}],identifierOrNot:[{name:rt.Tokens.IDENTIFIER},{name:rt.Tokens.STRUCTURAL_CHARACTER,value:rt.StructuralCharacters.OPEN_PARENTHESIS},{name:rt.Tokens.OPERATOR,value:rt.Operators.NOT}],binaryOperator:[{name:rt.Tokens.OPERATOR,value:rt.Operators.AND},{name:rt.Tokens.OPERATOR,value:rt.Operators.OR},{name:rt.Tokens.OPERATOR,value:rt.Operators.XOR}],binaryOperatorOrClose:[{name:rt.Tokens.OPERATOR,value:rt.Operators.AND},{name:rt.Tokens.OPERATOR,value:rt.Operators.OR},{name:rt.Tokens.OPERATOR,value:rt.Operators.XOR},{name:rt.Tokens.STRUCTURAL_CHARACTER,value:rt.StructuralCharacters.CLOSE_PARENTHESIS}]}});var Qh=O(_n=>{"use strict";_n.__esModule=!0;var vi=Hr();_n.STRUCTURAL_CHARACTERS={"(":vi.StructuralCharacters.OPEN_PARENTHESIS,")":vi.StructuralCharacters.CLOSE_PARENTHESIS};_n.OPERATORS={AND:vi.Operators.AND,OR:vi.Operators.OR,XOR:vi.Operators.XOR,NOT:vi.Operators.NOT};_n.SEPARATORS=new Set([32,9,10,13].map(function(r){return String.fromCodePoint(r)}));_n.QUOTED_IDENTIFIER_DELIMITER=String.fromCodePoint(34);_n.COMMENT_DELIMITER=String.fromCodePoint(35);_n.EOL=String.fromCodePoint(10);_n.ESCAPE_CHARACTER=String.fromCodePoint(92)});var hv=O(Tn=>{"use strict";var Jh=Tn&&Tn.__assign||function(){return Jh=Object.assign||function(r){for(var e,t=1,n=arguments.length;t{"use strict";ep.__esModule=!0;var wi=Hr(),or=Qh(),ki=hv();ep.lex=function(r){for(var e=null,t=null,n=null,s=0;s{"use strict";var uF=bn&&bn.__spreadArrays||function(){for(var r=0,e=0,t=arguments.length;e{"use strict";var Ei=ro&&ro.__spreadArrays||function(){for(var r=0,e=0,t=arguments.length;e{"use strict";vn.__esModule=!0;var _v=Hr();vn.andUtil=function(r,e){return r&&e};vn.orUtil=function(r,e){return r||e};vn.xorUtil=function(r,e){return r!==e};vn.notUtil=function(r){return!r};vn.isIdentifier=function(r){var e=r.name,t=r.value;return e===_v.Tokens.IDENTIFIER&&typeof t=="string"};vn.isOperator=function(r){var e=r.name,t=r.value;return e===_v.Tokens.OPERATOR&&typeof t=="string"};vn.throwInvalidExpression=function(r){throw new TypeError("Invalid postfix expression: "+r)}});var Tv=O(ap=>{"use strict";var no;ap.__esModule=!0;var sp=Hr(),ip=np();ap.OPERATOR_MAP=(no={},no[sp.Operators.AND]=ip.andUtil,no[sp.Operators.OR]=ip.orUtil,no[sp.Operators.XOR]=ip.xorUtil,no)});var vv=O(Ps=>{"use strict";var op=Ps&&Ps.__spreadArrays||function(){for(var r=0,e=0,t=arguments.length;e{"use strict";so.__esModule=!0;var wv=vv();so.getEvaluator=wv.getEvaluator;so.evaluate=wv.evaluate;var fF=rp();so.parse=fF.parse});var gF={};wk(gF,{default:()=>ll});module.exports=kk(gF);var Uv=require("obsidian");var di=require("obsidian");var TF=new Error("timeout while waiting for mutex to become available"),bF=new Error("mutex already locked"),Dk=new Error("request for lock canceled"),Ek=function(r,e,t,n){function s(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function l(m){try{f(n.next(m))}catch(g){o(g)}}function c(m){try{f(n.throw(m))}catch(g){o(g)}}function f(m){m.done?a(m.value):s(m.value).then(l,c)}f((n=n.apply(r,e||[])).next())})},Ol=class{constructor(e,t=Dk){this._value=e,this._cancelError=t,this._weightedQueues=[],this._weightedWaiters=[]}acquire(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return new Promise((t,n)=>{this._weightedQueues[e-1]||(this._weightedQueues[e-1]=[]),this._weightedQueues[e-1].push({resolve:t,reject:n}),this._dispatch()})}runExclusive(e,t=1){return Ek(this,void 0,void 0,function*(){let[n,s]=yield this.acquire(t);try{return yield e(n)}finally{s()}})}waitForUnlock(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return new Promise(t=>{this._weightedWaiters[e-1]||(this._weightedWaiters[e-1]=[]),this._weightedWaiters[e-1].push(t),this._dispatch()})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(e){this._value=e,this._dispatch()}release(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);this._value+=e,this._dispatch()}cancel(){this._weightedQueues.forEach(e=>e.forEach(t=>t.reject(this._cancelError))),this._weightedQueues=[]}_dispatch(){var e;for(let t=this._value;t>0;t--){let n=(e=this._weightedQueues[t-1])===null||e===void 0?void 0:e.shift();if(!n)continue;let s=this._value,a=t;this._value-=t,t=this._value+1,n.resolve([s,this._newReleaser(a)])}this._drainUnlockWaiters()}_newReleaser(e){let t=!1;return()=>{t||(t=!0,this.release(e))}}_drainUnlockWaiters(){for(let e=this._value;e>0;e--)!this._weightedWaiters[e-1]||(this._weightedWaiters[e-1].forEach(t=>t()),this._weightedWaiters[e-1]=[])}},Sk=function(r,e,t,n){function s(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function l(m){try{f(n.next(m))}catch(g){o(g)}}function c(m){try{f(n.throw(m))}catch(g){o(g)}}function f(m){m.done?a(m.value):s(m.value).then(l,c)}f((n=n.apply(r,e||[])).next())})},ko=class{constructor(e){this._semaphore=new Ol(1,e)}acquire(){return Sk(this,void 0,void 0,function*(){let[,e]=yield this._semaphore.acquire();return e})}runExclusive(e){return this._semaphore.runExclusive(()=>e())}isLocked(){return this._semaphore.isLocked()}waitForUnlock(){return this._semaphore.waitForUnlock()}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}};var mu=ns(ht()),si=ns(Th()),ms=class{static parseDate(e,t=!1){return window.moment(mu.parseDate(e,void 0,{forwardDate:t})).startOf("day")}static parseDateRange(e){let t=mu.parse(e,void 0,{forwardDate:!0});if(t.length===0)return[si.default.invalid(),si.default.invalid()];let n=t[0].start,s=t[1]&&t[1].start?t[1].start:n,a=window.moment(n.date()),o=window.moment(s.date()),l=[a,o];o.isBefore(a)&&(l=[o,a]);let c=/(last|this|next) (week|month|quarter|year)/,f=e.match(c);if(f&&f.length===3){let m=f[1],g=si.default.duration(),T=f[2];switch(T){case"month":case"quarter":case"year":case"week":g.add(1,T)}switch(l=[(0,si.default)(),(0,si.default)()],m){case"last":l.forEach(E=>E.subtract(g));break;case"next":l.forEach(E=>E.add(g));break}switch(T){case"month":case"quarter":case"year":l=[l[0].startOf(T),l[1].endOf(T)];break;case"week":l=[l[0].startOf("isoWeek"),l[1].endOf("isoWeek")];break}}return l.forEach(m=>m.startOf("day")),l}};var BC={td:"today",tm:"tomorrow",yd:"yesterday",tw:"this week",nw:"next week",weekend:"sat",we:"sat"};function ii(r){for(let[e,t]of Object.entries(BC))r=r.replace(RegExp(`\\b${e}\\s`,"i"),t);return r}var yu=["MO","TU","WE","TH","FR","SA","SU"],ct=function(){function r(e,t){if(t===0)throw new Error("Can't create weekday with n == 0");this.weekday=e,this.n=t}return r.fromStr=function(e){return new r(yu.indexOf(e))},r.prototype.nth=function(e){return this.n===e?this:new r(this.weekday,e)},r.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},r.prototype.toString=function(){var e=yu[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},r.prototype.getJsWeekday=function(){return this.weekday===6?0:this.weekday+1},r}();var He=function(r){return r!=null},sr=function(r){return typeof r=="number"},bh=function(r){return typeof r=="string"&&yu.includes(r)},At=Array.isArray,vr=function(r,e){e===void 0&&(e=r),arguments.length===1&&(e=r,r=0);for(var t=[],n=r;n>0,n.length>e?String(n):(e=e-n.length,e>t.length&&(t+=ke(t,e/t.length)),t.slice(0,e)+String(n))}var OT=function(r,e,t){var n=r.split(e);return t?n.slice(0,t).concat([n.slice(t).join(e)]):n},Ft=function(r,e){var t=r%e;return t*e<0?t+e:t},gu=function(r,e){return{div:Math.floor(r/e),mod:Ft(r,e)}},ir=function(r){return!He(r)||r.length===0},it=function(r){return!ir(r)},Ee=function(r,e){return it(r)&&r.indexOf(e)!==-1};var Yn;(function(r){r.MONTH_DAYS=[31,28,31,30,31,30,31,31,30,31,30,31],r.ONE_DAY=1e3*60*60*24,r.MAXYEAR=9999,r.ORDINAL_BASE=new Date(Date.UTC(1970,0,1)),r.PY_WEEKDAYS=[6,0,1,2,3,4,5],r.getYearDay=function(e){var t=new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate());return Math.ceil((t.valueOf()-new Date(e.getUTCFullYear(),0,1).valueOf())/r.ONE_DAY)+1},r.isLeapYear=function(e){return e%4===0&&e%100!==0||e%400===0},r.isDate=function(e){return e instanceof Date},r.isValidDate=function(e){return r.isDate(e)&&!isNaN(e.getTime())},r.tzOffset=function(e){return e.getTimezoneOffset()*60*1e3},r.daysBetween=function(e,t){var n=e.getTime()-r.tzOffset(e),s=t.getTime()-r.tzOffset(t),a=n-s;return Math.round(a/r.ONE_DAY)},r.toOrdinal=function(e){return r.daysBetween(e,r.ORDINAL_BASE)},r.fromOrdinal=function(e){return new Date(r.ORDINAL_BASE.getTime()+e*r.ONE_DAY)},r.getMonthDays=function(e){var t=e.getUTCMonth();return t===1&&r.isLeapYear(e.getUTCFullYear())?29:r.MONTH_DAYS[t]},r.getWeekday=function(e){return r.PY_WEEKDAYS[e.getUTCDay()]},r.monthRange=function(e,t){var n=new Date(Date.UTC(e,t,1));return[r.getWeekday(n),r.getMonthDays(n)]},r.combine=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},r.clone=function(e){var t=new Date(e.getTime());return t},r.cloneDates=function(e){for(var t=[],n=0;nthis.maxDate;if(this.method==="between"){if(t)return!0;if(n)return!1}else if(this.method==="before"){if(n)return!1}else if(this.method==="after")return t?!0:(this.add(e),!1);return this.add(e)},r.prototype.add=function(e){return this._result.push(e),!0},r.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;case"before":case"after":default:return e.length?e[e.length-1]:null}},r.prototype.clone=function(){return new r(this.method,this.args)},r}(),fn=GC;var ZT=ns(KT(),1),{__extends:oi,__assign:Bt,__rest:sY,__decorate:iY,__param:aY,__metadata:oY,__awaiter:uY,__generator:lY,__exportStar:cY,__createBinding:dY,__values:fY,__read:hY,__spread:pY,__spreadArrays:mY,__spreadArray:U,__await:yY,__asyncGenerator:gY,__asyncDelegator:_Y,__asyncValues:TY,__makeTemplateObject:bY,__importStar:vY,__importDefault:wY,__classPrivateFieldGet:kY,__classPrivateFieldSet:DY,__classPrivateFieldIn:EY}=ZT.default;var HC=function(r){oi(e,r);function e(t,n,s){var a=r.call(this,t,n)||this;return a.iterator=s,a}return e.prototype.add=function(t){return this.iterator(t,this._result.length)?(this._result.push(t),!0):!1},e}(fn),wh=HC;var zC={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},gs=zC;var XT=function(r,e){return r.indexOf(e)!==-1},VC=function(r){return r.toString()},KC=function(r,e,t){return"".concat(e," ").concat(t,", ").concat(r)},ZC=function(){function r(e,t,n,s){if(t===void 0&&(t=VC),n===void 0&&(n=gs),s===void 0&&(s=KC),this.text=[],this.language=n||gs,this.gettext=t,this.dateFormatter=s,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var a=[].concat(this.options.bymonthday),o=[].concat(this.options.bynmonthday);a.sort(function(m,g){return m-g}),o.sort(function(m,g){return g-m}),this.bymonthday=a.concat(o),this.bymonthday.length||(this.bymonthday=null)}if(He(this.origOptions.byweekday)){var l=At(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],c=String(l);this.byweekday={allWeeks:l.filter(function(m){return!m.n}),someWeeks:l.filter(function(m){return Boolean(m.n)}),isWeekdays:c.indexOf("MO")!==-1&&c.indexOf("TU")!==-1&&c.indexOf("WE")!==-1&&c.indexOf("TH")!==-1&&c.indexOf("FR")!==-1&&c.indexOf("SA")===-1&&c.indexOf("SU")===-1,isEveryDay:c.indexOf("MO")!==-1&&c.indexOf("TU")!==-1&&c.indexOf("WE")!==-1&&c.indexOf("TH")!==-1&&c.indexOf("FR")!==-1&&c.indexOf("SA")!==-1&&c.indexOf("SU")!==-1};var f=function(m,g){return m.weekday-g.weekday};this.byweekday.allWeeks.sort(f),this.byweekday.someWeeks.sort(f),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return r.isFullyConvertible=function(e){var t=!0;if(!(e.options.freq in r.IMPLEMENTED)||e.origOptions.until&&e.origOptions.count)return!1;for(var n in e.origOptions){if(XT(["dtstart","wkst","freq"],n))return!0;if(!XT(r.IMPLEMENTED[e.options.freq],n))return!1}return t},r.prototype.isFullyConvertible=function(){return r.isFullyConvertible(this.rrule)},r.prototype.toString=function(){var e=this.gettext;if(!(this.options.freq in r.IMPLEMENTED))return e("RRule error: Unable to fully convert this rrule to text");if(this.text=[e("every")],this[X.FREQUENCIES[this.options.freq]](),this.options.until){this.add(e("until"));var t=this.options.until;this.add(this.dateFormatter(t.getUTCFullYear(),this.language.monthNames[t.getUTCMonth()],t.getUTCDate()))}else this.options.count&&this.add(e("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?e("times"):e("time"));return this.isFullyConvertible()||this.add(e("(~ approximate)")),this.text.join("")},r.prototype.HOURLY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("hours"):e("hour"))},r.prototype.MINUTELY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("minutes"):e("minute"))},r.prototype.DAILY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(this.plural(this.options.interval)?e("days"):e("day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},r.prototype.WEEKLY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?e("weeks"):e("week")),this.byweekday&&this.byweekday.isWeekdays?this.options.interval===1?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?e("days"):e("day")):(this.options.interval===1&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday())},r.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("months"):e("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},r.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("years"):e("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(this.plural(this.options.byweekno.length)?e("weeks"):e("week")).add(this.list(this.options.byweekno,void 0,e("and")))},r.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},r.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},r.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},r.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},r.prototype.nth=function(e){e=parseInt(e.toString(),10);var t,n=this.gettext;if(e===-1)return n("last");var s=Math.abs(e);switch(s){case 1:case 21:case 31:t=s+n("st");break;case 2:case 22:t=s+n("nd");break;case 3:case 23:t=s+n("rd");break;default:t=s+n("th")}return e<0?t+" "+n("last"):t},r.prototype.monthtext=function(e){return this.language.monthNames[e-1]},r.prototype.weekdaytext=function(e){var t=sr(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[t]},r.prototype.plural=function(e){return e%100!==1},r.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},r.prototype.list=function(e,t,n,s){var a=this;s===void 0&&(s=","),At(e)||(e=[e]);var o=function(c,f,m){for(var g="",T=0;Te[0].length)&&(e=a,t=s)}if(e!=null&&(this.text=this.text.substr(e[0].length),this.text===""&&(this.done=!0)),e==null){this.done=!0,this.symbol=null,this.value=null;return}}while(t==="SKIP");return this.symbol=t,this.value=e,!0},r.prototype.accept=function(e){if(this.symbol===e){if(this.value){var t=this.value;return this.nextSymbol(),t}return this.nextSymbol(),!0}return!1},r.prototype.acceptNumber=function(){return this.accept("number")},r.prototype.expect=function(e){if(this.accept(e))return!0;throw new Error("expected "+e+" but found "+this.symbol)},r}();function Ya(r,e){e===void 0&&(e=gs);var t={},n=new XC(e.tokens);if(!n.start(r))return null;return s(),t;function s(){n.expect("every");var T=n.acceptNumber();if(T&&(t.interval=parseInt(T[0],10)),n.isDone())throw new Error("Unexpected end");switch(n.symbol){case"day(s)":t.freq=X.DAILY,n.nextSymbol()&&(o(),g());break;case"weekday(s)":t.freq=X.WEEKLY,t.byweekday=[X.MO,X.TU,X.WE,X.TH,X.FR],n.nextSymbol(),g();break;case"week(s)":t.freq=X.WEEKLY,n.nextSymbol()&&(a(),g());break;case"hour(s)":t.freq=X.HOURLY,n.nextSymbol()&&(a(),g());break;case"minute(s)":t.freq=X.MINUTELY,n.nextSymbol()&&(a(),g());break;case"month(s)":t.freq=X.MONTHLY,n.nextSymbol()&&(a(),g());break;case"year(s)":t.freq=X.YEARLY,n.nextSymbol()&&(a(),g());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":t.freq=X.WEEKLY;var E=n.symbol.substr(0,2).toUpperCase();if(t.byweekday=[X[E]],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var v=c();if(!v)throw new Error("Unexpected symbol "+n.symbol+", expected weekday");t.byweekday.push(X[v]),n.nextSymbol()}m(),g();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(t.freq=X.YEARLY,t.bymonth=[l()],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var R=l();if(!R)throw new Error("Unexpected symbol "+n.symbol+", expected month");t.bymonth.push(R),n.nextSymbol()}a(),g();break;default:throw new Error("Unknown symbol")}}function a(){var T=n.accept("on"),E=n.accept("the");if(!!(T||E))do{var v=f(),R=c(),C=l();if(v)R?(n.nextSymbol(),t.byweekday||(t.byweekday=[]),t.byweekday.push(X[R].nth(v))):(t.bymonthday||(t.bymonthday=[]),t.bymonthday.push(v),n.accept("day(s)"));else if(R)n.nextSymbol(),t.byweekday||(t.byweekday=[]),t.byweekday.push(X[R]);else if(n.symbol==="weekday(s)")n.nextSymbol(),t.byweekday||(t.byweekday=[X.MO,X.TU,X.WE,X.TH,X.FR]);else if(n.symbol==="week(s)"){n.nextSymbol();var q=n.acceptNumber();if(!q)throw new Error("Unexpected symbol "+n.symbol+", expected week number");for(t.byweekno=[parseInt(q[0],10)];n.accept("comma");){if(q=n.acceptNumber(),!q)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");t.byweekno.push(parseInt(q[0],10))}}else if(C)n.nextSymbol(),t.bymonth||(t.bymonth=[]),t.bymonth.push(C);else return}while(n.accept("comma")||n.accept("the")||n.accept("on"))}function o(){var T=n.accept("at");if(!!T)do{var E=n.acceptNumber();if(!E)throw new Error("Unexpected symbol "+n.symbol+", expected hour");for(t.byhour=[parseInt(E[0],10)];n.accept("comma");){if(E=n.acceptNumber(),!E)throw new Error("Unexpected symbol "+n.symbol+"; expected hour");t.byhour.push(parseInt(E[0],10))}}while(n.accept("comma")||n.accept("at"))}function l(){switch(n.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function c(){switch(n.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return n.symbol.substr(0,2).toUpperCase();default:return!1}}function f(){switch(n.symbol){case"last":return n.nextSymbol(),-1;case"first":return n.nextSymbol(),1;case"second":return n.nextSymbol(),n.accept("last")?-2:2;case"third":return n.nextSymbol(),n.accept("last")?-3:3;case"nth":var T=parseInt(n.value[1],10);if(T<-366||T>366)throw new Error("Nth out of range: "+T);return n.nextSymbol(),n.accept("last")?-T:T;default:return!1}}function m(){n.accept("on"),n.accept("the");var T=f();if(!!T)for(t.bymonthday=[T],n.nextSymbol();n.accept("comma");){if(T=f(),!T)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");t.bymonthday.push(T),n.nextSymbol()}}function g(){if(n.symbol==="until"){var T=Date.parse(n.text);if(!T)throw new Error("Cannot parse until date:"+n.text);t.until=new Date(T)}else n.accept("for")&&(t.count=parseInt(n.value[0],10),n.expect("number"))}}var be;(function(r){r[r.YEARLY=0]="YEARLY",r[r.MONTHLY=1]="MONTHLY",r[r.WEEKLY=2]="WEEKLY",r[r.DAILY=3]="DAILY",r[r.HOURLY=4]="HOURLY",r[r.MINUTELY=5]="MINUTELY",r[r.SECONDLY=6]="SECONDLY"})(be||(be={}));function Ua(r){return r12){var n=Math.floor(this.month/12),s=Ft(this.month,12);this.month=s,this.year+=n,this.month===0&&(this.month=12,--this.year)}},e.prototype.addWeekly=function(t,n){n>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-n))+t*7:this.day+=-(this.getWeekday()-n)+t*7,this.fixDay()},e.prototype.addDaily=function(t){this.day+=t,this.fixDay()},e.prototype.addHours=function(t,n,s){for(n&&(this.hour+=Math.floor((23-this.hour)/t)*t);;){this.hour+=t;var a=gu(this.hour,24),o=a.div,l=a.mod;if(o&&(this.hour=l,this.addDaily(o)),ir(s)||Ee(s,this.hour))break}},e.prototype.addMinutes=function(t,n,s,a){for(n&&(this.minute+=Math.floor((1439-(this.hour*60+this.minute))/t)*t);;){this.minute+=t;var o=gu(this.minute,60),l=o.div,c=o.mod;if(l&&(this.minute=c,this.addHours(l,!1,s)),(ir(s)||Ee(s,this.hour))&&(ir(a)||Ee(a,this.minute)))break}},e.prototype.addSeconds=function(t,n,s,a,o){for(n&&(this.second+=Math.floor((86399-(this.hour*3600+this.minute*60+this.second))/t)*t);;){this.second+=t;var l=gu(this.second,60),c=l.div,f=l.mod;if(c&&(this.second=f,this.addMinutes(c,!1,s,a)),(ir(s)||Ee(s,this.hour))&&(ir(a)||Ee(a,this.minute))&&(ir(o)||Ee(o,this.second)))break}},e.prototype.fixDay=function(){if(!(this.day<=28)){var t=Yn.monthRange(this.year,this.month-1)[1];if(!(this.day<=t))for(;this.day>t;){if(this.day-=t,++this.month,this.month===13&&(this.month=1,++this.year,this.year>Yn.MAXYEAR))return;t=Yn.monthRange(this.year,this.month-1)[1]}}},e.prototype.add=function(t,n){var s=t.freq,a=t.interval,o=t.wkst,l=t.byhour,c=t.byminute,f=t.bysecond;switch(s){case be.YEARLY:return this.addYears(a);case be.MONTHLY:return this.addMonths(a);case be.WEEKLY:return this.addWeekly(a,o);case be.DAILY:return this.addDaily(a);case be.HOURLY:return this.addHours(a,n,l);case be.MINUTELY:return this.addMinutes(a,n,l,c);case be.SECONDLY:return this.addSeconds(a,n,l,c,f)}},e}(li);function kh(r){for(var e=[],t=Object.keys(r),n=0,s=t;n=-366&&n<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(Boolean(e.byweekno)||it(e.byweekno)||it(e.byyearday)||Boolean(e.bymonthday)||it(e.bymonthday)||He(e.byweekday)||He(e.byeaster)))switch(e.freq){case X.YEARLY:e.bymonth||(e.bymonth=e.dtstart.getUTCMonth()+1),e.bymonthday=e.dtstart.getUTCDate();break;case X.MONTHLY:e.bymonthday=e.dtstart.getUTCDate();break;case X.WEEKLY:e.byweekday=[ie.getWeekday(e.dtstart)];break}if(He(e.bymonth)&&!At(e.bymonth)&&(e.bymonth=[e.bymonth]),He(e.byyearday)&&!At(e.byyearday)&&sr(e.byyearday)&&(e.byyearday=[e.byyearday]),!He(e.bymonthday))e.bymonthday=[],e.bynmonthday=[];else if(At(e.bymonthday)){for(var s=[],a=[],t=0;t0?s.push(n):n<0&&a.push(n)}e.bymonthday=s,e.bynmonthday=a}else e.bymonthday<0?(e.bynmonthday=[e.bymonthday],e.bymonthday=[]):(e.bynmonthday=[],e.bymonthday=[e.bymonthday]);if(He(e.byweekno)&&!At(e.byweekno)&&(e.byweekno=[e.byweekno]),!He(e.byweekday))e.bynweekday=null;else if(sr(e.byweekday))e.byweekday=[e.byweekday],e.bynweekday=null;else if(bh(e.byweekday))e.byweekday=[ct.fromStr(e.byweekday).weekday],e.bynweekday=null;else if(e.byweekday instanceof ct)!e.byweekday.n||e.freq>X.MONTHLY?(e.byweekday=[e.byweekday.weekday],e.bynweekday=null):(e.bynweekday=[[e.byweekday.weekday,e.byweekday.n]],e.byweekday=null);else{for(var o=[],l=[],t=0;tX.MONTHLY?o.push(c.weekday):l.push([c.weekday,c.n])}e.byweekday=it(o)?o:null,e.bynweekday=it(l)?l:null}return He(e.byhour)?sr(e.byhour)&&(e.byhour=[e.byhour]):e.byhour=e.freq=4?(m=0,f=l.yearlen+Ft(o-e.wkst,7)):f=n-m;for(var g=Math.floor(f/7),T=Ft(f,7),E=Math.floor(g+T/4),v=0;v0&&R<=E){var C=void 0;R>1?(C=m+(R-1)*7,m!==c&&(C-=7-c)):C=m;for(var q=0;q<7&&(l.wnomask[C]=1,C++,l.wdaymask[C]!==e.wkst);q++);}}if(Ee(e.byweekno,1)){var C=m+E*7;if(m!==c&&(C-=7-c),C=4?(me=0,ve=fe+Ft(B-e.wkst,7)):ve=n-m,$=Math.floor(52+Ft(ve,7)/4)}if(Ee(e.byweekno,$))for(var C=0;Ca)return hn(r);if($>=t){var B=vb($,e);if(!r.accept(B)||l&&(--l,!l))return hn(r)}}else for(var q=E;qa)return hn(r);if($>=t){var B=vb($,e);if(!r.accept(B)||l&&(--l,!l))return hn(r)}}}if(e.interval===0||(c.add(e,R),c.year>ie.MAXYEAR))return hn(r);Ua(n)||(m=f.gettimeset(n)(c.hour,c.minute,c.second,0)),f.rebuild(c.year,c.month)}}function lI(r,e,t){var n=t.bymonth,s=t.byweekno,a=t.byweekday,o=t.byeaster,l=t.bymonthday,c=t.bynmonthday,f=t.byyearday;return it(n)&&!Ee(n,r.mmask[e])||it(s)&&!r.wnomask[e]||it(a)&&!Ee(a,r.wdaymask[e])||it(r.nwdaymask)&&!r.nwdaymask[e]||o!==null&&!Ee(r.eastermask,e)||(it(l)||it(c))&&!Ee(l,r.mdaymask[e])&&!Ee(c,r.nmdaymask[e])||it(f)&&(e=r.yearlen&&!Ee(f,e+1-r.yearlen)&&!Ee(f,-r.nextyearlen+e-r.yearlen))}function vb(r,e){return new _s(r,e.tzid).rezonedDate()}function hn(r){return r.getValue()}function cI(r,e,t,n,s){for(var a=!1,o=e;o=X.HOURLY&&it(s)&&!Ee(s,e.hour)||n>=X.MINUTELY&&it(a)&&!Ee(a,e.minute)||n>=X.SECONDLY&&it(o)&&!Ee(o,e.second)?[]:r.gettimeset(n)(e.hour,e.minute,e.second,e.millisecond)}var wr={MO:new ct(0),TU:new ct(1),WE:new ct(2),TH:new ct(3),FR:new ct(4),SA:new ct(5),SU:new ct(6)},Wa={freq:be.YEARLY,dtstart:null,interval:1,wkst:wr.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},sb=Object.keys(Wa),X=function(){function r(e,t){e===void 0&&(e={}),t===void 0&&(t=!1),this._cache=t?null:new ob,this.origOptions=kh(e);var n=rb(e).parsedOptions;this.options=n}return r.parseText=function(e,t){return Ya(e,t)},r.fromText=function(e,t){return QT(e,t)},r.fromString=function(e){return new r(r.parseString(e)||void 0)},r.prototype._iter=function(e){return vu(e,this.options)},r.prototype._cacheGet=function(e,t){return this._cache?this._cache._cacheGet(e,t):!1},r.prototype._cacheAdd=function(e,t,n){if(!!this._cache)return this._cache._cacheAdd(e,t,n)},r.prototype.all=function(e){if(e)return this._iter(new wh("all",{},e));var t=this._cacheGet("all");return t===!1&&(t=this._iter(new fn("all",{})),this._cacheAdd("all",t)),t},r.prototype.between=function(e,t,n,s){if(n===void 0&&(n=!1),!ie.isValidDate(e)||!ie.isValidDate(t))throw new Error("Invalid date passed in to RRule.between");var a={before:t,after:e,inc:n};if(s)return this._iter(new wh("between",a,s));var o=this._cacheGet("between",a);return o===!1&&(o=this._iter(new fn("between",a)),this._cacheAdd("between",o,a)),o},r.prototype.before=function(e,t){if(t===void 0&&(t=!1),!ie.isValidDate(e))throw new Error("Invalid date passed in to RRule.before");var n={dt:e,inc:t},s=this._cacheGet("before",n);return s===!1&&(s=this._iter(new fn("before",n)),this._cacheAdd("before",s,n)),s},r.prototype.after=function(e,t){if(t===void 0&&(t=!1),!ie.isValidDate(e))throw new Error("Invalid date passed in to RRule.after");var n={dt:e,inc:t},s=this._cacheGet("after",n);return s===!1&&(s=this._iter(new fn("after",n)),this._cacheAdd("after",s,n)),s},r.prototype.count=function(){return this.all().length},r.prototype.toString=function(){return $a(this.origOptions)},r.prototype.toText=function(e,t,n){return JT(this,e,t,n)},r.prototype.isFullyConvertibleToText=function(){return eb(this)},r.prototype.clone=function(){return new r(this.origOptions)},r.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],r.YEARLY=be.YEARLY,r.MONTHLY=be.MONTHLY,r.WEEKLY=be.WEEKLY,r.DAILY=be.DAILY,r.HOURLY=be.HOURLY,r.MINUTELY=be.MINUTELY,r.SECONDLY=be.SECONDLY,r.MO=wr.MO,r.TU=wr.TU,r.WE=wr.WE,r.TH=wr.TH,r.FR=wr.FR,r.SA=wr.SA,r.SU=wr.SU,r.parseString=ja,r.optionsToString=$a,r}();function wb(r,e,t,n,s,a){var o={},l=r.accept;function c(T,E){t.forEach(function(v){v.between(T,E,!0).forEach(function(R){o[Number(R)]=!0})})}s.forEach(function(T){var E=new _s(T,a).rezonedDate();o[Number(E)]=!0}),r.accept=function(T){var E=Number(T);return isNaN(E)?l.call(this,T):!o[E]&&(c(new Date(E-1),new Date(E+1)),!o[E])?(o[E]=!0,l.call(this,T)):!0},r.method==="between"&&(c(r.args.after,r.args.before),r.accept=function(T){var E=Number(T);return o[E]?!0:(o[E]=!0,l.call(this,T))});for(var f=0;f1||s.length||a.length||o.length){var m=new Sh(f);return m.dtstart(l),m.tzid(c||void 0),n.forEach(function(T){m.rrule(new X(Eh(T,l,c),f))}),s.forEach(function(T){m.rdate(T)}),a.forEach(function(T){m.exrule(new X(Eh(T,l,c),f))}),o.forEach(function(T){m.exdate(T)}),e.compatible&&e.dtstart&&m.rdate(l),m}var g=n[0]||{};return new X(Eh(g,g.dtstart||e.dtstart||l,g.tzid||e.tzid||c),f)}function wu(r,e){return e===void 0&&(e={}),hI(r,pI(e))}function Eh(r,e,t){return Bt(Bt({},r),{dtstart:e,tzid:t})}function pI(r){var e=[],t=Object.keys(r),n=Object.keys(kb);if(t.forEach(function(s){Ee(n,s)||e.push(s)}),e.length)throw new Error("Invalid options: "+e.join(", "));return Bt(Bt({},kb),r)}function mI(r){if(r.indexOf(":")===-1)return{name:"RRULE",value:r};var e=OT(r,":",1),t=e[0],n=e[1];return{name:t,value:n}}function yI(r){var e=mI(r),t=e.name,n=e.value,s=t.split(";");if(!s)throw new Error("empty property name");return{name:s[0].toUpperCase(),parms:s.slice(1),value:n}}function gI(r,e){if(e===void 0&&(e=!1),r=r&&r.trim(),!r)throw new Error("Invalid empty string");if(!e)return r.split(/\s/);for(var t=r.split(` -`),n=0;n0&&s[0]===" "?(t[n-1]+=s.slice(1),t.splice(n,1)):n+=1:t.splice(n,1)}return t}function _I(r){r.forEach(function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw new Error("unsupported RDATE/EXDATE parm: "+e)})}function Db(r,e){return _I(e),r.split(",").map(function(t){return ie.untilStringToDate(t)})}function Eb(r){var e=this;return function(t){if(t!==void 0&&(e["_".concat(r)]=t),e["_".concat(r)]!==void 0)return e["_".concat(r)];for(var n=0;n=0;return(b?d?"+":"":"-")+Math.pow(10,Math.max(0,p)).toString().substr(1)+h}var w=/(\[[^\[]*\])|(\\)?([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,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,E={},M={};function k(i,u,d,h){var p=h;typeof h=="string"&&(p=function(){return this[h]()}),i&&(M[i]=p),u&&(M[u[0]]=function(){return _(p.apply(this,arguments),u[1],u[2])}),d&&(M[d]=function(){return this.localeData().ordinal(p.apply(this,arguments),i)})}function I(i){return i.match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"")}function A(i){var u=i.match(w),d,h;for(d=0,h=u.length;d=0&&D.test(i);)i=i.replace(D,h),D.lastIndex=0,d-=1;return i}var ke={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 pe(i){var u=this._longDateFormat[i],d=this._longDateFormat[i.toUpperCase()];return u||!d?u:(this._longDateFormat[i]=d.match(w).map(function(h){return h==="MMMM"||h==="MM"||h==="DD"||h==="dddd"?h.slice(1):h}).join(""),this._longDateFormat[i])}var le="Invalid date";function Ie(){return this._invalidDate}var K="%d",qe=/\d{1,2}/;function Qe(i){return this._ordinal.replace("%d",i)}var dt={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 Or(i,u,d,h){var p=this._relativeTime[d];return V(p)?p(i,u,d,h):p.replace(/%d/i,i)}function at(i,u){var d=this._relativeTime[i>0?"future":"past"];return V(d)?d(u):d.replace(/%s/i,u)}var je={};function ft(i,u){var d=i.toLowerCase();je[d]=je[d+"s"]=je[u]=i}function _t(i){return typeof i=="string"?je[i]||je[i.toLowerCase()]:void 0}function Sn(i){var u={},d,h;for(h in i)a(i,h)&&(d=_t(h),d&&(u[d]=i[h]));return u}var Pi={};function $e(i,u){Pi[i]=u}function Fs(i){var u=[],d;for(d in i)a(i,d)&&u.push({unit:d,priority:Pi[d]});return u.sort(function(h,p){return h.priority-p.priority}),u}function Jn(i){return i%4===0&&i%100!==0||i%400===0}function ht(i){return i<0?Math.ceil(i)||0:Math.floor(i)}function ce(i){var u=+i,d=0;return u!==0&&isFinite(u)&&(d=ht(u)),d}function Zr(i,u){return function(d){return d!=null?(es(this,i,d),e.updateOffset(this,u),this):Rt(this,i)}}function Rt(i,u){return i.isValid()?i._d["get"+(i._isUTC?"UTC":"")+u]():NaN}function es(i,u,d){i.isValid()&&!isNaN(d)&&(u==="FullYear"&&Jn(i.year())&&i.month()===1&&i.date()===29?(d=ce(d),i._d["set"+(i._isUTC?"UTC":"")+u](d,i.month(),ho(d,i.month()))):i._d["set"+(i._isUTC?"UTC":"")+u](d))}function uo(i){return i=_t(i),V(this[i])?this[i]():this}function Ur(i,u){if(typeof i=="object"){i=Sn(i);var d=Fs(i),h,p=d.length;for(h=0;h68?1900:2e3)};var gp=Zr("FullYear",!0);function tw(){return Jn(this.year())}function rw(i,u,d,h,p,b,x){var re;return i<100&&i>=0?(re=new Date(i+400,u,d,h,p,b,x),isFinite(re.getFullYear())&&re.setFullYear(i)):re=new Date(i,u,d,h,p,b,x),re}function Ci(i){var u,d;return i<100&&i>=0?(d=Array.prototype.slice.call(arguments),d[0]=i+400,u=new Date(Date.UTC.apply(null,d)),isFinite(u.getUTCFullYear())&&u.setUTCFullYear(i)):u=new Date(Date.UTC.apply(null,arguments)),u}function po(i,u,d){var h=7+u-d,p=(7+Ci(i,0,h).getUTCDay()-u)%7;return-p+h-1}function _p(i,u,d,h,p){var b=(7+d-h)%7,x=po(i,h,p),re=1+7*(u-1)+b+x,me,Ue;return re<=0?(me=i-1,Ue=Ni(me)+re):re>Ni(i)?(me=i+1,Ue=re-Ni(i)):(me=i,Ue=re),{year:me,dayOfYear:Ue}}function Ii(i,u,d){var h=po(i.year(),u,d),p=Math.floor((i.dayOfYear()-h-1)/7)+1,b,x;return p<1?(x=i.year()-1,b=p+Jr(x,u,d)):p>Jr(i.year(),u,d)?(b=p-Jr(i.year(),u,d),x=i.year()+1):(x=i.year(),b=p),{week:b,year:x}}function Jr(i,u,d){var h=po(i,u,d),p=po(i+1,u,d);return(Ni(i)-h+p)/7}k("w",["ww",2],"wo","week"),k("W",["WW",2],"Wo","isoWeek"),ft("week","w"),ft("isoWeek","W"),$e("week",5),$e("isoWeek",5),H("w",Ye),H("ww",Ye,Tt),H("W",Ye),H("WW",Ye,Tt),mr(["w","ww","W","WW"],function(i,u,d,h){u[h.substr(0,1)]=ce(i)});function nw(i){return Ii(i,this._week.dow,this._week.doy).week}var sw={dow:0,doy:6};function iw(){return this._week.dow}function aw(){return this._week.doy}function ow(i){var u=this.localeData().week(this);return i==null?u:this.add((i-u)*7,"d")}function uw(i){var u=Ii(this,1,4).week;return i==null?u:this.add((i-u)*7,"d")}k("d",0,"do","day"),k("dd",0,0,function(i){return this.localeData().weekdaysMin(this,i)}),k("ddd",0,0,function(i){return this.localeData().weekdaysShort(this,i)}),k("dddd",0,0,function(i){return this.localeData().weekdays(this,i)}),k("e",0,0,"weekday"),k("E",0,0,"isoWeekday"),ft("day","d"),ft("weekday","e"),ft("isoWeekday","E"),$e("day",11),$e("weekday",11),$e("isoWeekday",11),H("d",Ye),H("e",Ye),H("E",Ye),H("dd",function(i,u){return u.weekdaysMinRegex(i)}),H("ddd",function(i,u){return u.weekdaysShortRegex(i)}),H("dddd",function(i,u){return u.weekdaysRegex(i)}),mr(["dd","ddd","dddd"],function(i,u,d,h){var p=d._locale.weekdaysParse(i,h,d._strict);p!=null?u.d=p:v(d).invalidWeekday=i}),mr(["d","e","E"],function(i,u,d,h){u[h]=ce(i)});function lw(i,u){return typeof i!="string"?i:isNaN(i)?(i=u.weekdaysParse(i),typeof i=="number"?i:null):parseInt(i,10)}function cw(i,u){return typeof i=="string"?u.weekdaysParse(i)%7||7:isNaN(i)?null:i}function fl(i,u){return i.slice(u,7).concat(i.slice(0,u))}var dw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Tp="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),fw="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),hw=hr,pw=hr,mw=hr;function yw(i,u){var d=n(this._weekdays)?this._weekdays:this._weekdays[i&&i!==!0&&this._weekdays.isFormat.test(u)?"format":"standalone"];return i===!0?fl(d,this._week.dow):i?d[i.day()]:d}function gw(i){return i===!0?fl(this._weekdaysShort,this._week.dow):i?this._weekdaysShort[i.day()]:this._weekdaysShort}function _w(i){return i===!0?fl(this._weekdaysMin,this._week.dow):i?this._weekdaysMin[i.day()]:this._weekdaysMin}function Tw(i,u,d){var h,p,b,x=i.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],h=0;h<7;++h)b=T([2e3,1]).day(h),this._minWeekdaysParse[h]=this.weekdaysMin(b,"").toLocaleLowerCase(),this._shortWeekdaysParse[h]=this.weekdaysShort(b,"").toLocaleLowerCase(),this._weekdaysParse[h]=this.weekdays(b,"").toLocaleLowerCase();return d?u==="dddd"?(p=st.call(this._weekdaysParse,x),p!==-1?p:null):u==="ddd"?(p=st.call(this._shortWeekdaysParse,x),p!==-1?p:null):(p=st.call(this._minWeekdaysParse,x),p!==-1?p:null):u==="dddd"?(p=st.call(this._weekdaysParse,x),p!==-1||(p=st.call(this._shortWeekdaysParse,x),p!==-1)?p:(p=st.call(this._minWeekdaysParse,x),p!==-1?p:null)):u==="ddd"?(p=st.call(this._shortWeekdaysParse,x),p!==-1||(p=st.call(this._weekdaysParse,x),p!==-1)?p:(p=st.call(this._minWeekdaysParse,x),p!==-1?p:null)):(p=st.call(this._minWeekdaysParse,x),p!==-1||(p=st.call(this._weekdaysParse,x),p!==-1)?p:(p=st.call(this._shortWeekdaysParse,x),p!==-1?p:null))}function bw(i,u,d){var h,p,b;if(this._weekdaysParseExact)return Tw.call(this,i,u,d);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),h=0;h<7;h++){if(p=T([2e3,1]).day(h),d&&!this._fullWeekdaysParse[h]&&(this._fullWeekdaysParse[h]=new RegExp("^"+this.weekdays(p,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[h]=new RegExp("^"+this.weekdaysShort(p,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[h]=new RegExp("^"+this.weekdaysMin(p,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[h]||(b="^"+this.weekdays(p,"")+"|^"+this.weekdaysShort(p,"")+"|^"+this.weekdaysMin(p,""),this._weekdaysParse[h]=new RegExp(b.replace(".",""),"i")),d&&u==="dddd"&&this._fullWeekdaysParse[h].test(i))return h;if(d&&u==="ddd"&&this._shortWeekdaysParse[h].test(i))return h;if(d&&u==="dd"&&this._minWeekdaysParse[h].test(i))return h;if(!d&&this._weekdaysParse[h].test(i))return h}}function vw(i){if(!this.isValid())return i!=null?this:NaN;var u=this._isUTC?this._d.getUTCDay():this._d.getDay();return i!=null?(i=lw(i,this.localeData()),this.add(i-u,"d")):u}function ww(i){if(!this.isValid())return i!=null?this:NaN;var u=(this.day()+7-this.localeData()._week.dow)%7;return i==null?u:this.add(i-u,"d")}function Dw(i){if(!this.isValid())return i!=null?this:NaN;if(i!=null){var u=cw(i,this.localeData());return this.day(this.day()%7?u:u-7)}else return this.day()||7}function kw(i){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||hl.call(this),i?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=hw),this._weekdaysStrictRegex&&i?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ew(i){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||hl.call(this),i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=pw),this._weekdaysShortStrictRegex&&i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Sw(i){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||hl.call(this),i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=mw),this._weekdaysMinStrictRegex&&i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function hl(){function i(Gt,sn){return sn.length-Gt.length}var u=[],d=[],h=[],p=[],b,x,re,me,Ue;for(b=0;b<7;b++)x=T([2e3,1]).day(b),re=pt(this.weekdaysMin(x,"")),me=pt(this.weekdaysShort(x,"")),Ue=pt(this.weekdays(x,"")),u.push(re),d.push(me),h.push(Ue),p.push(re),p.push(me),p.push(Ue);u.sort(i),d.sort(i),h.sort(i),p.sort(i),this._weekdaysRegex=new RegExp("^("+p.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+u.join("|")+")","i")}function pl(){return this.hours()%12||12}function Ow(){return this.hours()||24}k("H",["HH",2],0,"hour"),k("h",["hh",2],0,pl),k("k",["kk",2],0,Ow),k("hmm",0,0,function(){return""+pl.apply(this)+_(this.minutes(),2)}),k("hmmss",0,0,function(){return""+pl.apply(this)+_(this.minutes(),2)+_(this.seconds(),2)}),k("Hmm",0,0,function(){return""+this.hours()+_(this.minutes(),2)}),k("Hmmss",0,0,function(){return""+this.hours()+_(this.minutes(),2)+_(this.seconds(),2)});function bp(i,u){k(i,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),u)})}bp("a",!0),bp("A",!1),ft("hour","h"),$e("hour",13);function vp(i,u){return u._meridiemParse}H("a",vp),H("A",vp),H("H",Ye),H("h",Ye),H("k",Ye),H("HH",Ye,Tt),H("hh",Ye,Tt),H("kk",Ye,Tt),H("hmm",Mn),H("hmmss",Ls),H("Hmm",Mn),H("Hmmss",Ls),Ae(["H","HH"],ne),Ae(["k","kk"],function(i,u,d){var h=ce(i);u[ne]=h===24?0:h}),Ae(["a","A"],function(i,u,d){d._isPm=d._locale.isPM(i),d._meridiem=i}),Ae(["h","hh"],function(i,u,d){u[ne]=ce(i),v(d).bigHour=!0}),Ae("hmm",function(i,u,d){var h=i.length-2;u[ne]=ce(i.substr(0,h)),u[ue]=ce(i.substr(h)),v(d).bigHour=!0}),Ae("hmmss",function(i,u,d){var h=i.length-4,p=i.length-2;u[ne]=ce(i.substr(0,h)),u[ue]=ce(i.substr(h,2)),u[$t]=ce(i.substr(p)),v(d).bigHour=!0}),Ae("Hmm",function(i,u,d){var h=i.length-2;u[ne]=ce(i.substr(0,h)),u[ue]=ce(i.substr(h))}),Ae("Hmmss",function(i,u,d){var h=i.length-4,p=i.length-2;u[ne]=ce(i.substr(0,h)),u[ue]=ce(i.substr(h,2)),u[$t]=ce(i.substr(p))});function Mw(i){return(i+"").toLowerCase().charAt(0)==="p"}var Rw=/[ap]\.?m?\.?/i,xw=Zr("Hours",!0);function Pw(i,u,d){return i>11?d?"pm":"PM":d?"am":"AM"}var wp={calendar:oe,longDateFormat:ke,invalidDate:le,ordinal:K,dayOfMonthOrdinalParse:qe,relativeTime:dt,months:Bv,monthsShort:fp,week:sw,weekdays:dw,weekdaysMin:fw,weekdaysShort:Tp,meridiemParse:Rw},et={},Fi={},Li;function Aw(i,u){var d,h=Math.min(i.length,u.length);for(d=0;d0;){if(p=mo(b.slice(0,d).join("-")),p)return p;if(h&&h.length>=d&&Aw(b,h)>=d-1)break;d--}u++}return Li}function Cw(i){return i.match("^[^/\\\\]*$")!=null}function mo(i){var u=null,d;if(et[i]===void 0&&typeof ai!="undefined"&&ai&&ai.exports&&Cw(i))try{u=Li._abbr,d=require,d("./locale/"+i),Pn(u)}catch(h){et[i]=null}return et[i]}function Pn(i,u){var d;return i&&(l(u)?d=en(i):d=ml(i,u),d?Li=d:typeof console!="undefined"&&console.warn&&console.warn("Locale "+i+" not found. Did you forget to load it?")),Li._abbr}function ml(i,u){if(u!==null){var d,h=wp;if(u.abbr=i,et[i]!=null)gt("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=et[i]._config;else if(u.parentLocale!=null)if(et[u.parentLocale]!=null)h=et[u.parentLocale]._config;else if(d=mo(u.parentLocale),d!=null)h=d._config;else return Fi[u.parentLocale]||(Fi[u.parentLocale]=[]),Fi[u.parentLocale].push({name:i,config:u}),null;return et[i]=new Q(P(h,u)),Fi[i]&&Fi[i].forEach(function(p){ml(p.name,p.config)}),Pn(i),et[i]}else return delete et[i],null}function Iw(i,u){if(u!=null){var d,h,p=wp;et[i]!=null&&et[i].parentLocale!=null?et[i].set(P(et[i]._config,u)):(h=mo(i),h!=null&&(p=h._config),u=P(p,u),h==null&&(u.abbr=i),d=new Q(u),d.parentLocale=et[i],et[i]=d),Pn(i)}else et[i]!=null&&(et[i].parentLocale!=null?(et[i]=et[i].parentLocale,i===Pn()&&Pn(i)):et[i]!=null&&delete et[i]);return et[i]}function en(i){var u;if(i&&i._locale&&i._locale._abbr&&(i=i._locale._abbr),!i)return Li;if(!n(i)){if(u=mo(i),u)return u;i=[i]}return Nw(i)}function Fw(){return Y(et)}function yl(i){var u,d=i._a;return d&&v(i).overflow===-2&&(u=d[Je]<0||d[Je]>11?Je:d[G]<1||d[G]>ho(d[tt],d[Je])?G:d[ne]<0||d[ne]>24||d[ne]===24&&(d[ue]!==0||d[$t]!==0||d[ss]!==0)?ne:d[ue]<0||d[ue]>59?ue:d[$t]<0||d[$t]>59?$t:d[ss]<0||d[ss]>999?ss:-1,v(i)._overflowDayOfYear&&(uG)&&(u=G),v(i)._overflowWeeks&&u===-1&&(u=jv),v(i)._overflowWeekday&&u===-1&&(u=$v),v(i).overflow=u),i}var Lw=/^\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)?)?$/,Yw=/^\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)?)?$/,Uw=/Z|[+-]\d\d(?::?\d\d)?/,yo=[["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]],gl=[["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/]],Ww=/^\/?Date\((-?\d+)/i,qw=/^(?:(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}))$/,jw={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 kp(i){var u,d,h=i._i,p=Lw.exec(h)||Yw.exec(h),b,x,re,me,Ue=yo.length,Gt=gl.length;if(p){for(v(i).iso=!0,u=0,d=Ue;uNi(x)||i._dayOfYear===0)&&(v(i)._overflowDayOfYear=!0),d=Ci(x,0,i._dayOfYear),i._a[Je]=d.getUTCMonth(),i._a[G]=d.getUTCDate()),u=0;u<3&&i._a[u]==null;++u)i._a[u]=h[u]=p[u];for(;u<7;u++)i._a[u]=h[u]=i._a[u]==null?u===2?1:0:i._a[u];i._a[ne]===24&&i._a[ue]===0&&i._a[$t]===0&&i._a[ss]===0&&(i._nextDay=!0,i._a[ne]=0),i._d=(i._useUTC?Ci:rw).apply(null,h),b=i._useUTC?i._d.getUTCDay():i._d.getDay(),i._tzm!=null&&i._d.setUTCMinutes(i._d.getUTCMinutes()-i._tzm),i._nextDay&&(i._a[ne]=24),i._w&&typeof i._w.d!="undefined"&&i._w.d!==b&&(v(i).weekdayMismatch=!0)}}function Zw(i){var u,d,h,p,b,x,re,me,Ue;u=i._w,u.GG!=null||u.W!=null||u.E!=null?(b=1,x=4,d=Us(u.GG,i._a[tt],Ii(Ve(),1,4).year),h=Us(u.W,1),p=Us(u.E,1),(p<1||p>7)&&(me=!0)):(b=i._locale._week.dow,x=i._locale._week.doy,Ue=Ii(Ve(),b,x),d=Us(u.gg,i._a[tt],Ue.year),h=Us(u.w,Ue.week),u.d!=null?(p=u.d,(p<0||p>6)&&(me=!0)):u.e!=null?(p=u.e+b,(u.e<0||u.e>6)&&(me=!0)):p=b),h<1||h>Jr(d,b,x)?v(i)._overflowWeeks=!0:me!=null?v(i)._overflowWeekday=!0:(re=_p(d,h,p,b,x),i._a[tt]=re.year,i._dayOfYear=re.dayOfYear)}e.ISO_8601=function(){},e.RFC_2822=function(){};function Tl(i){if(i._f===e.ISO_8601){kp(i);return}if(i._f===e.RFC_2822){Ep(i);return}i._a=[],v(i).empty=!0;var u=""+i._i,d,h,p,b,x,re=u.length,me=0,Ue,Gt;for(p=j(i._f,i._locale).match(w)||[],Gt=p.length,d=0;d0&&v(i).unusedInput.push(x),u=u.slice(u.indexOf(h)+h.length),me+=h.length),M[b]?(h?v(i).empty=!1:v(i).unusedTokens.push(b),Lt(b,h,i)):i._strict&&!h&&v(i).unusedTokens.push(b);v(i).charsLeftOver=re-me,u.length>0&&v(i).unusedInput.push(u),i._a[ne]<=12&&v(i).bigHour===!0&&i._a[ne]>0&&(v(i).bigHour=void 0),v(i).parsedDateParts=i._a.slice(0),v(i).meridiem=i._meridiem,i._a[ne]=Xw(i._locale,i._a[ne],i._meridiem),Ue=v(i).era,Ue!==null&&(i._a[tt]=i._locale.erasConvertYear(Ue,i._a[tt])),_l(i),yl(i)}function Xw(i,u,d){var h;return d==null?u:i.meridiemHour!=null?i.meridiemHour(u,d):(i.isPM!=null&&(h=i.isPM(d),h&&u<12&&(u+=12),!h&&u===12&&(u=0)),u)}function Qw(i){var u,d,h,p,b,x,re=!1,me=i._f.length;if(me===0){v(i).invalidFormat=!0,i._d=new Date(NaN);return}for(p=0;pthis?this:i:$()});function Mp(i,u){var d,h;if(u.length===1&&n(u[0])&&(u=u[0]),!u.length)return Ve();for(d=u[0],h=1;hthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function T0(){if(!l(this._isDSTShifted))return this._isDSTShifted;var i={},u;return De(i,this),i=Sp(i),i._a?(u=i._isUTC?T(i._a):Ve(i._a),this._isDSTShifted=this.isValid()&&c0(i._a,u.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function b0(){return this.isValid()?!this._isUTC:!1}function v0(){return this.isValid()?this._isUTC:!1}function xp(){return this.isValid()?this._isUTC&&this._offset===0:!1}var w0=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,D0=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Mr(i,u){var d=i,h=null,p,b,x;return _o(i)?d={ms:i._milliseconds,d:i._days,M:i._months}:c(i)||!isNaN(+i)?(d={},u?d[u]=+i:d.milliseconds=+i):(h=w0.exec(i))?(p=h[1]==="-"?-1:1,d={y:0,d:ce(h[G])*p,h:ce(h[ne])*p,m:ce(h[ue])*p,s:ce(h[$t])*p,ms:ce(bl(h[ss]*1e3))*p}):(h=D0.exec(i))?(p=h[1]==="-"?-1:1,d={y:is(h[2],p),M:is(h[3],p),w:is(h[4],p),d:is(h[5],p),h:is(h[6],p),m:is(h[7],p),s:is(h[8],p)}):d==null?d={}:typeof d=="object"&&("from"in d||"to"in d)&&(x=k0(Ve(d.from),Ve(d.to)),d={},d.ms=x.milliseconds,d.M=x.months),b=new go(d),_o(i)&&a(i,"_locale")&&(b._locale=i._locale),_o(i)&&a(i,"_isValid")&&(b._isValid=i._isValid),b}Mr.fn=go.prototype,Mr.invalid=l0;function is(i,u){var d=i&&parseFloat(i.replace(",","."));return(isNaN(d)?0:d)*u}function Pp(i,u){var d={};return d.months=u.month()-i.month()+(u.year()-i.year())*12,i.clone().add(d.months,"M").isAfter(u)&&--d.months,d.milliseconds=+u-+i.clone().add(d.months,"M"),d}function k0(i,u){var d;return i.isValid()&&u.isValid()?(u=wl(u,i),i.isBefore(u)?d=Pp(i,u):(d=Pp(u,i),d.milliseconds=-d.milliseconds,d.months=-d.months),d):{milliseconds:0,months:0}}function Ap(i,u){return function(d,h){var p,b;return h!==null&&!isNaN(+h)&&(gt(u,"moment()."+u+"(period, number) is deprecated. Please use moment()."+u+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),b=d,d=h,h=b),p=Mr(d,h),Np(this,p,i),this}}function Np(i,u,d,h){var p=u._milliseconds,b=bl(u._days),x=bl(u._months);!i.isValid()||(h=h==null?!0:h,x&&pp(i,Rt(i,"Month")+x*d),b&&es(i,"Date",Rt(i,"Date")+b*d),p&&i._d.setTime(i._d.valueOf()+p*d),h&&e.updateOffset(i,b||x))}var E0=Ap(1,"add"),S0=Ap(-1,"subtract");function Cp(i){return typeof i=="string"||i instanceof String}function O0(i){return be(i)||f(i)||Cp(i)||c(i)||R0(i)||M0(i)||i===null||i===void 0}function M0(i){var u=s(i)&&!o(i),d=!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"],p,b,x=h.length;for(p=0;pd.valueOf():d.valueOf()9999?N(d,u?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):V(Date.prototype.toISOString)?u?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",N(d,"Z")):N(d,u?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $0(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var i="moment",u="",d,h,p,b;return this.isLocal()||(i=this.utcOffset()===0?"moment.utc":"moment.parseZone",u="Z"),d="["+i+'("]',h=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",p="-MM-DD[T]HH:mm:ss.SSS",b=u+'[")]',this.format(d+h+p+b)}function G0(i){i||(i=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var u=N(this,i);return this.localeData().postformat(u)}function B0(i,u){return this.isValid()&&(be(i)&&i.isValid()||Ve(i).isValid())?Mr({to:this,from:i}).locale(this.locale()).humanize(!u):this.localeData().invalidDate()}function H0(i){return this.from(Ve(),i)}function z0(i,u){return this.isValid()&&(be(i)&&i.isValid()||Ve(i).isValid())?Mr({from:this,to:i}).locale(this.locale()).humanize(!u):this.localeData().invalidDate()}function V0(i){return this.to(Ve(),i)}function Ip(i){var u;return i===void 0?this._locale._abbr:(u=en(i),u!=null&&(this._locale=u),this)}var Fp=te("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 Lp(){return this._locale}var bo=1e3,Ws=60*bo,vo=60*Ws,Yp=(365*400+97)*24*vo;function qs(i,u){return(i%u+u)%u}function Up(i,u,d){return i<100&&i>=0?new Date(i+400,u,d)-Yp:new Date(i,u,d).valueOf()}function Wp(i,u,d){return i<100&&i>=0?Date.UTC(i+400,u,d)-Yp:Date.UTC(i,u,d)}function K0(i){var u,d;if(i=_t(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(d=this._isUTC?Wp:Up,i){case"year":u=d(this.year(),0,1);break;case"quarter":u=d(this.year(),this.month()-this.month()%3,1);break;case"month":u=d(this.year(),this.month(),1);break;case"week":u=d(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":u=d(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":u=d(this.year(),this.month(),this.date());break;case"hour":u=this._d.valueOf(),u-=qs(u+(this._isUTC?0:this.utcOffset()*Ws),vo);break;case"minute":u=this._d.valueOf(),u-=qs(u,Ws);break;case"second":u=this._d.valueOf(),u-=qs(u,bo);break}return this._d.setTime(u),e.updateOffset(this,!0),this}function Z0(i){var u,d;if(i=_t(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(d=this._isUTC?Wp:Up,i){case"year":u=d(this.year()+1,0,1)-1;break;case"quarter":u=d(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":u=d(this.year(),this.month()+1,1)-1;break;case"week":u=d(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":u=d(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":u=d(this.year(),this.month(),this.date()+1)-1;break;case"hour":u=this._d.valueOf(),u+=vo-qs(u+(this._isUTC?0:this.utcOffset()*Ws),vo)-1;break;case"minute":u=this._d.valueOf(),u+=Ws-qs(u,Ws)-1;break;case"second":u=this._d.valueOf(),u+=bo-qs(u,bo)-1;break}return this._d.setTime(u),e.updateOffset(this,!0),this}function X0(){return this._d.valueOf()-(this._offset||0)*6e4}function Q0(){return Math.floor(this.valueOf()/1e3)}function J0(){return new Date(this.valueOf())}function e1(){var i=this;return[i.year(),i.month(),i.date(),i.hour(),i.minute(),i.second(),i.millisecond()]}function t1(){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 r1(){return this.isValid()?this.toISOString():null}function n1(){return C(this)}function s1(){return g({},v(this))}function i1(){return v(this).overflow}function a1(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}k("N",0,0,"eraAbbr"),k("NN",0,0,"eraAbbr"),k("NNN",0,0,"eraAbbr"),k("NNNN",0,0,"eraName"),k("NNNNN",0,0,"eraNarrow"),k("y",["y",1],"yo","eraYear"),k("y",["yy",2],0,"eraYear"),k("y",["yyy",3],0,"eraYear"),k("y",["yyyy",4],0,"eraYear"),H("N",kl),H("NN",kl),H("NNN",kl),H("NNNN",g1),H("NNNNN",_1),Ae(["N","NN","NNN","NNNN","NNNNN"],function(i,u,d,h){var p=d._locale.erasParse(i,h,d._strict);p?v(d).era=p:v(d).invalidEra=i}),H("y",fr),H("yy",fr),H("yyy",fr),H("yyyy",fr),H("yo",T1),Ae(["y","yy","yyy","yyyy"],tt),Ae(["yo"],function(i,u,d,h){var p;d._locale._eraYearOrdinalRegex&&(p=i.match(d._locale._eraYearOrdinalRegex)),d._locale.eraYearOrdinalParse?u[tt]=d._locale.eraYearOrdinalParse(i,p):u[tt]=parseInt(i,10)});function o1(i,u){var d,h,p,b=this._eras||en("en")._eras;for(d=0,h=b.length;d=0)return b[h]}function l1(i,u){var d=i.since<=i.until?1:-1;return u===void 0?e(i.since).year():e(i.since).year()+(u-i.offset)*d}function c1(){var i,u,d,h=this.localeData().eras();for(i=0,u=h.length;ib&&(u=b),S1.call(this,i,u,d,h,p))}function S1(i,u,d,h,p){var b=_p(i,u,d,h,p),x=Ci(b.year,0,b.dayOfYear);return this.year(x.getUTCFullYear()),this.month(x.getUTCMonth()),this.date(x.getUTCDate()),this}k("Q",0,"Qo","quarter"),ft("quarter","Q"),$e("quarter",7),H("Q",On),Ae("Q",function(i,u){u[Je]=(ce(i)-1)*3});function O1(i){return i==null?Math.ceil((this.month()+1)/3):this.month((i-1)*3+this.month()%3)}k("D",["DD",2],"Do","date"),ft("date","D"),$e("date",9),H("D",Ye),H("DD",Ye,Tt),H("Do",function(i,u){return i?u._dayOfMonthOrdinalParse||u._ordinalParse:u._dayOfMonthOrdinalParseLenient}),Ae(["D","DD"],G),Ae("Do",function(i,u){u[G]=ce(i.match(Ye)[0])});var jp=Zr("Date",!0);k("DDD",["DDDD",3],"DDDo","dayOfYear"),ft("dayOfYear","DDD"),$e("dayOfYear",4),H("DDD",ts),H("DDDD",Ai),Ae(["DDD","DDDD"],function(i,u,d){d._dayOfYear=ce(i)});function M1(i){var u=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return i==null?u:this.add(i-u,"d")}k("m",["mm",2],0,"minute"),ft("minute","m"),$e("minute",14),H("m",Ye),H("mm",Ye,Tt),Ae(["m","mm"],ue);var R1=Zr("Minutes",!1);k("s",["ss",2],0,"second"),ft("second","s"),$e("second",15),H("s",Ye),H("ss",Ye,Tt),Ae(["s","ss"],$t);var x1=Zr("Seconds",!1);k("S",0,0,function(){return~~(this.millisecond()/100)}),k(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),k(0,["SSS",3],0,"millisecond"),k(0,["SSSS",4],0,function(){return this.millisecond()*10}),k(0,["SSSSS",5],0,function(){return this.millisecond()*100}),k(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),k(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),k(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),k(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ft("millisecond","ms"),$e("millisecond",16),H("S",ts,On),H("SS",ts,Tt),H("SSS",ts,Ai);var An,$p;for(An="SSSS";An.length<=9;An+="S")H(An,fr);function P1(i,u){u[ss]=ce(("0."+i)*1e3)}for(An="S";An.length<=9;An+="S")Ae(An,P1);$p=Zr("Milliseconds",!1),k("z",0,0,"zoneAbbr"),k("zz",0,0,"zoneName");function A1(){return this._isUTC?"UTC":""}function N1(){return this._isUTC?"Coordinated Universal Time":""}var F=Te.prototype;F.add=E0,F.calendar=A0,F.clone=N0,F.diff=W0,F.endOf=Z0,F.format=G0,F.from=B0,F.fromNow=H0,F.to=z0,F.toNow=V0,F.get=uo,F.invalidAt=i1,F.isAfter=C0,F.isBefore=I0,F.isBetween=F0,F.isSame=L0,F.isSameOrAfter=Y0,F.isSameOrBefore=U0,F.isValid=n1,F.lang=Fp,F.locale=Ip,F.localeData=Lp,F.max=n0,F.min=r0,F.parsingFlags=s1,F.set=Ur,F.startOf=K0,F.subtract=S0,F.toArray=e1,F.toObject=t1,F.toDate=J0,F.toISOString=j0,F.inspect=$0,typeof Symbol!="undefined"&&Symbol.for!=null&&(F[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),F.toJSON=r1,F.toString=q0,F.unix=Q0,F.valueOf=X0,F.creationData=a1,F.eraName=c1,F.eraNarrow=d1,F.eraAbbr=f1,F.eraYear=h1,F.year=gp,F.isLeapYear=tw,F.weekYear=b1,F.isoWeekYear=v1,F.quarter=F.quarters=O1,F.month=mp,F.daysInMonth=Qv,F.week=F.weeks=ow,F.isoWeek=F.isoWeeks=uw,F.weeksInYear=k1,F.weeksInWeekYear=E1,F.isoWeeksInYear=w1,F.isoWeeksInISOWeekYear=D1,F.date=jp,F.day=F.days=vw,F.weekday=ww,F.isoWeekday=Dw,F.dayOfYear=M1,F.hour=F.hours=xw,F.minute=F.minutes=R1,F.second=F.seconds=x1,F.millisecond=F.milliseconds=$p,F.utcOffset=f0,F.utc=p0,F.local=m0,F.parseZone=y0,F.hasAlignedHourOffset=g0,F.isDST=_0,F.isLocal=b0,F.isUtcOffset=v0,F.isUtc=xp,F.isUTC=xp,F.zoneAbbr=A1,F.zoneName=N1,F.dates=te("dates accessor is deprecated. Use date instead.",jp),F.months=te("months accessor is deprecated. Use month instead",mp),F.years=te("years accessor is deprecated. Use year instead",gp),F.zone=te("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",h0),F.isDSTShifted=te("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",T0);function C1(i){return Ve(i*1e3)}function I1(){return Ve.apply(null,arguments).parseZone()}function Gp(i){return i}var Re=Q.prototype;Re.calendar=y,Re.longDateFormat=pe,Re.invalidDate=Ie,Re.ordinal=Qe,Re.preparse=Gp,Re.postformat=Gp,Re.relativeTime=Or,Re.pastFuture=at,Re.set=q,Re.eras=o1,Re.erasParse=u1,Re.erasConvertYear=l1,Re.erasAbbrRegex=m1,Re.erasNameRegex=p1,Re.erasNarrowRegex=y1,Re.months=Vv,Re.monthsShort=Kv,Re.monthsParse=Xv,Re.monthsRegex=ew,Re.monthsShortRegex=Jv,Re.week=nw,Re.firstDayOfYear=aw,Re.firstDayOfWeek=iw,Re.weekdays=yw,Re.weekdaysMin=_w,Re.weekdaysShort=gw,Re.weekdaysParse=bw,Re.weekdaysRegex=kw,Re.weekdaysShortRegex=Ew,Re.weekdaysMinRegex=Sw,Re.isPM=Mw,Re.meridiem=Pw;function Do(i,u,d,h){var p=en(),b=T().set(h,u);return p[d](b,i)}function Bp(i,u,d){if(c(i)&&(u=i,i=void 0),i=i||"",u!=null)return Do(i,u,d,"month");var h,p=[];for(h=0;h<12;h++)p[h]=Do(i,h,d,"month");return p}function Sl(i,u,d,h){typeof i=="boolean"?(c(u)&&(d=u,u=void 0),u=u||""):(u=i,d=u,i=!1,c(u)&&(d=u,u=void 0),u=u||"");var p=en(),b=i?p._week.dow:0,x,re=[];if(d!=null)return Do(u,(d+b)%7,h,"day");for(x=0;x<7;x++)re[x]=Do(u,(x+b)%7,h,"day");return re}function F1(i,u){return Bp(i,u,"months")}function L1(i,u){return Bp(i,u,"monthsShort")}function Y1(i,u,d){return Sl(i,u,d,"weekdays")}function U1(i,u,d){return Sl(i,u,d,"weekdaysShort")}function W1(i,u,d){return Sl(i,u,d,"weekdaysMin")}Pn("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 u=i%10,d=ce(i%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th";return i+d}}),e.lang=te("moment.lang is deprecated. Use moment.locale instead.",Pn),e.langData=te("moment.langData is deprecated. Use moment.localeData instead.",en);var tn=Math.abs;function q1(){var i=this._data;return this._milliseconds=tn(this._milliseconds),this._days=tn(this._days),this._months=tn(this._months),i.milliseconds=tn(i.milliseconds),i.seconds=tn(i.seconds),i.minutes=tn(i.minutes),i.hours=tn(i.hours),i.months=tn(i.months),i.years=tn(i.years),this}function Hp(i,u,d,h){var p=Mr(u,d);return i._milliseconds+=h*p._milliseconds,i._days+=h*p._days,i._months+=h*p._months,i._bubble()}function j1(i,u){return Hp(this,i,u,1)}function $1(i,u){return Hp(this,i,u,-1)}function zp(i){return i<0?Math.floor(i):Math.ceil(i)}function G1(){var i=this._milliseconds,u=this._days,d=this._months,h=this._data,p,b,x,re,me;return i>=0&&u>=0&&d>=0||i<=0&&u<=0&&d<=0||(i+=zp(Ol(d)+u)*864e5,u=0,d=0),h.milliseconds=i%1e3,p=ht(i/1e3),h.seconds=p%60,b=ht(p/60),h.minutes=b%60,x=ht(b/60),h.hours=x%24,u+=ht(x/24),me=ht(Vp(u)),d+=me,u-=zp(Ol(me)),re=ht(d/12),d%=12,h.days=u,h.months=d,h.years=re,this}function Vp(i){return i*4800/146097}function Ol(i){return i*146097/4800}function B1(i){if(!this.isValid())return NaN;var u,d,h=this._milliseconds;if(i=_t(i),i==="month"||i==="quarter"||i==="year")switch(u=this._days+h/864e5,d=this._months+Vp(u),i){case"month":return d;case"quarter":return d/3;case"year":return d/12}else switch(u=this._days+Math.round(Ol(this._months)),i){case"week":return u/7+h/6048e5;case"day":return u+h/864e5;case"hour":return u*24+h/36e5;case"minute":return u*1440+h/6e4;case"second":return u*86400+h/1e3;case"millisecond":return Math.floor(u*864e5)+h;default:throw new Error("Unknown unit "+i)}}function H1(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ce(this._months/12)*31536e6:NaN}function rn(i){return function(){return this.as(i)}}var z1=rn("ms"),V1=rn("s"),K1=rn("m"),Z1=rn("h"),X1=rn("d"),Q1=rn("w"),J1=rn("M"),eD=rn("Q"),tD=rn("y");function rD(){return Mr(this)}function nD(i){return i=_t(i),this.isValid()?this[i+"s"]():NaN}function as(i){return function(){return this.isValid()?this._data[i]:NaN}}var sD=as("milliseconds"),iD=as("seconds"),aD=as("minutes"),oD=as("hours"),uD=as("days"),lD=as("months"),cD=as("years");function dD(){return ht(this.days()/7)}var nn=Math.round,js={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function fD(i,u,d,h,p){return p.relativeTime(u||1,!!d,i,h)}function hD(i,u,d,h){var p=Mr(i).abs(),b=nn(p.as("s")),x=nn(p.as("m")),re=nn(p.as("h")),me=nn(p.as("d")),Ue=nn(p.as("M")),Gt=nn(p.as("w")),sn=nn(p.as("y")),Nn=b<=d.ss&&["s",b]||b0,Nn[4]=h,fD.apply(null,Nn)}function pD(i){return i===void 0?nn:typeof i=="function"?(nn=i,!0):!1}function mD(i,u){return js[i]===void 0?!1:u===void 0?js[i]:(js[i]=u,i==="s"&&(js.ss=u-1),!0)}function yD(i,u){if(!this.isValid())return this.localeData().invalidDate();var d=!1,h=js,p,b;return typeof i=="object"&&(u=i,i=!1),typeof i=="boolean"&&(d=i),typeof u=="object"&&(h=Object.assign({},js,u),u.s!=null&&u.ss==null&&(h.ss=u.s-1)),p=this.localeData(),b=hD(this,!d,h,p),d&&(b=p.pastFuture(+this,b)),p.postformat(b)}var Ml=Math.abs;function $s(i){return(i>0)-(i<0)||+i}function ko(){if(!this.isValid())return this.localeData().invalidDate();var i=Ml(this._milliseconds)/1e3,u=Ml(this._days),d=Ml(this._months),h,p,b,x,re=this.asSeconds(),me,Ue,Gt,sn;return re?(h=ht(i/60),p=ht(h/60),i%=60,h%=60,b=ht(d/12),d%=12,x=i?i.toFixed(3).replace(/\.?0+$/,""):"",me=re<0?"-":"",Ue=$s(this._months)!==$s(re)?"-":"",Gt=$s(this._days)!==$s(re)?"-":"",sn=$s(this._milliseconds)!==$s(re)?"-":"",me+"P"+(b?Ue+b+"Y":"")+(d?Ue+d+"M":"")+(u?Gt+u+"D":"")+(p||h||i?"T":"")+(p?sn+p+"H":"")+(h?sn+h+"M":"")+(i?sn+x+"S":"")):"P0D"}var Oe=go.prototype;Oe.isValid=u0,Oe.abs=q1,Oe.add=j1,Oe.subtract=$1,Oe.as=B1,Oe.asMilliseconds=z1,Oe.asSeconds=V1,Oe.asMinutes=K1,Oe.asHours=Z1,Oe.asDays=X1,Oe.asWeeks=Q1,Oe.asMonths=J1,Oe.asQuarters=eD,Oe.asYears=tD,Oe.valueOf=H1,Oe._bubble=G1,Oe.clone=rD,Oe.get=nD,Oe.milliseconds=sD,Oe.seconds=iD,Oe.minutes=aD,Oe.hours=oD,Oe.days=uD,Oe.weeks=dD,Oe.months=lD,Oe.years=cD,Oe.humanize=yD,Oe.toISOString=ko,Oe.toString=ko,Oe.toJSON=ko,Oe.locale=Ip,Oe.localeData=Lp,Oe.toIsoString=te("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ko),Oe.lang=Fp,k("X",0,0,"unix"),k("x",0,0,"valueOf"),H("x",xn),H("X",co),Ae("X",function(i,u,d){d._d=new Date(parseFloat(i)*1e3)}),Ae("x",function(i,u,d){d._d=new Date(ce(i))});return e.version="2.29.4",t(Ve),e.fn=F,e.min=s0,e.max=i0,e.now=a0,e.utc=T,e.unix=C1,e.months=F1,e.isDate=f,e.locale=Pn,e.invalid=$,e.duration=Mr,e.isMoment=be,e.weekdays=Y1,e.parseZone=I1,e.localeData=en,e.isDuration=_o,e.monthsShort=L1,e.weekdaysMin=W1,e.defineLocale=ml,e.updateLocale=Iw,e.locales=Fw,e.weekdaysShort=U1,e.normalizeUnits=_t,e.relativeTimeRounding=pD,e.relativeTimeThreshold=mD,e.calendarFormat=P0,e.prototype=F,e.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"},e})});var XT=O((sY,wu)=>{var xT,PT,AT,NT,CT,IT,FT,LT,YT,bu,Dh,UT,WT,qT,ui,jT,$T,GT,BT,HT,zT,VT,KT,ZT,vu;(function(r){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof wu=="object"&&typeof wu.exports=="object"?r(t(e,t(wu.exports))):r(t(e));function t(n,s){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(a,o){return n[a]=s?s(a,o):o}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(n[a]=s[a])};xT=function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");e(n,s);function a(){this.constructor=n}n.prototype=s===null?Object.create(s):(a.prototype=s.prototype,new a)},PT=Object.assign||function(n){for(var s,a=1,o=arguments.length;a=0;m--)(f=n[m])&&(c=(l<3?f(c):l>3?f(s,a,c):f(s,a))||c);return l>3&&c&&Object.defineProperty(s,a,c),c},CT=function(n,s){return function(a,o){s(a,o,n)}},IT=function(n,s){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,s)},FT=function(n,s,a,o){function l(c){return c instanceof a?c:new a(function(f){f(c)})}return new(a||(a=Promise))(function(c,f){function m(S){try{T(o.next(S))}catch(v){f(v)}}function g(S){try{T(o.throw(S))}catch(v){f(v)}}function T(S){S.done?c(S.value):l(S.value).then(m,g)}T((o=o.apply(n,s||[])).next())})},LT=function(n,s){var a={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},o,l,c,f;return f={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function m(T){return function(S){return g([T,S])}}function g(T){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,l&&(c=T[0]&2?l.return:T[0]?l.throw||((c=l.return)&&c.call(l),0):l.next)&&!(c=c.call(l,T[1])).done)return c;switch(l=0,c&&(T=[T[0]&2,c.value]),T[0]){case 0:case 1:c=T;break;case 4:return a.label++,{value:T[1],done:!1};case 5:a.label++,l=T[1],T=[0];continue;case 7:T=a.ops.pop(),a.trys.pop();continue;default:if(c=a.trys,!(c=c.length>0&&c[c.length-1])&&(T[0]===6||T[0]===2)){a=0;continue}if(T[0]===3&&(!c||T[1]>c[0]&&T[1]=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},Dh=function(n,s){var a=typeof Symbol=="function"&&n[Symbol.iterator];if(!a)return n;var o=a.call(n),l,c=[],f;try{for(;(s===void 0||s-- >0)&&!(l=o.next()).done;)c.push(l.value)}catch(m){f={error:m}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(f)throw f.error}}return c},UT=function(){for(var n=[],s=0;s1||m(R,C)})})}function m(R,C){try{g(o[R](C))}catch($){v(c[0][3],$)}}function g(R){R.value instanceof ui?Promise.resolve(R.value.v).then(T,S):v(c[0][2],R)}function T(R){m("next",R)}function S(R){m("throw",R)}function v(R,C){R(C),c.shift(),c.length&&m(c[0][0],c[0][1])}},$T=function(n){var s,a;return s={},o("next"),o("throw",function(l){throw l}),o("return"),s[Symbol.iterator]=function(){return this},s;function o(l,c){s[l]=n[l]?function(f){return(a=!a)?{value:ui(n[l](f)),done:l==="return"}:c?c(f):f}:c}},GT=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=n[Symbol.asyncIterator],a;return s?s.call(n):(n=typeof bu=="function"?bu(n):n[Symbol.iterator](),a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a);function o(c){a[c]=n[c]&&function(f){return new Promise(function(m,g){f=n[c](f),l(m,g,f.done,f.value)})}}function l(c,f,m,g){Promise.resolve(g).then(function(T){c({value:T,done:m})},f)}},BT=function(n,s){return Object.defineProperty?Object.defineProperty(n,"raw",{value:s}):n.raw=s,n};var t=Object.create?function(n,s){Object.defineProperty(n,"default",{enumerable:!0,value:s})}:function(n,s){n.default=s};HT=function(n){if(n&&n.__esModule)return n;var s={};if(n!=null)for(var a in n)a!=="default"&&Object.prototype.hasOwnProperty.call(n,a)&&vu(s,n,a);return t(s,n),s},zT=function(n){return n&&n.__esModule?n:{default:n}},VT=function(n,s,a,o){if(a==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof s=="function"?n!==s||!o:!s.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?o:a==="a"?o.call(n):o?o.value:s.get(n)},KT=function(n,s,a,o,l){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a setter");if(typeof s=="function"?n!==s||!l:!s.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?l.call(n,a):l?l.value=a:s.set(n,a),a},ZT=function(n,s){if(s===null||typeof s!="object"&&typeof s!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?s===n:n.has(s)},r("__extends",xT),r("__assign",PT),r("__rest",AT),r("__decorate",NT),r("__param",CT),r("__metadata",IT),r("__awaiter",FT),r("__generator",LT),r("__exportStar",YT),r("__createBinding",vu),r("__values",bu),r("__read",Dh),r("__spread",UT),r("__spreadArrays",WT),r("__spreadArray",qT),r("__await",ui),r("__asyncGenerator",jT),r("__asyncDelegator",$T),r("__asyncValues",GT),r("__makeTemplateObject",BT),r("__importStar",HT),r("__importDefault",zT),r("__classPrivateFieldGet",VT),r("__classPrivateFieldSet",KT),r("__classPrivateFieldIn",ZT)})});var Lb=O((Ib,Fb)=>{(function(r){var e=Object.hasOwnProperty,t=Array.isArray?Array.isArray:function(_){return Object.prototype.toString.call(_)==="[object Array]"},n=10,s=typeof process=="object"&&typeof process.nextTick=="function",a=typeof Symbol=="function",o=typeof Reflect=="object",l=typeof setImmediate=="function",c=l?setImmediate:setTimeout,f=a?o&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(y){var _=Object.getOwnPropertyNames(y);return _.push.apply(_,Object.getOwnPropertySymbols(y)),_}:Object.keys;function m(){this._events={},this._conf&&g.call(this,this._conf)}function g(y){y&&(this._conf=y,y.delimiter&&(this.delimiter=y.delimiter),y.maxListeners!==r&&(this._maxListeners=y.maxListeners),y.wildcard&&(this.wildcard=y.wildcard),y.newListener&&(this._newListener=y.newListener),y.removeListener&&(this._removeListener=y.removeListener),y.verboseMemoryLeak&&(this.verboseMemoryLeak=y.verboseMemoryLeak),y.ignoreErrors&&(this.ignoreErrors=y.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function T(y,_){var w="(node) warning: possible EventEmitter memory leak detected. "+y+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(w+=" Event name: "+_+"."),typeof process!="undefined"&&process.emitWarning){var D=new Error(w);D.name="MaxListenersExceededWarning",D.emitter=this,D.count=y,process.emitWarning(D)}else console.error(w),console.trace&&console.trace()}var S=function(y,_,w){var D=arguments.length;switch(D){case 0:return[];case 1:return[y];case 2:return[y,_];case 3:return[y,_,w];default:for(var E=new Array(D);D--;)E[D]=arguments[D];return E}};function v(y,_){for(var w={},D,E=y.length,M=_?_.length:0,k=0;k0;)y=M[A],k.call(I,y,w[y]);this._listeners={},this._listenersCount=0,N()}}});function C(y,_,w,D){var E=Object.assign({},_);if(!y)return E;if(typeof y!="object")throw TypeError("options must be an object");var M=Object.keys(y),k=M.length,I,A,N;function j(pe){throw Error('Invalid "'+I+'" option value'+(pe?". Reason: "+pe:""))}for(var ke=0;ke0;)if(I===y[A])return M;k(_)}}var W=B(["function"]),De=B(["object","function"]);function Te(y,_,w){var D,E,M=0,k,I=new y(function(A,N,j){w=C(w,{timeout:0,overload:!1},{timeout:function(Ie,K){return Ie*=1,(typeof Ie!="number"||Ie<0||!Number.isFinite(Ie))&&K("timeout must be a positive number"),Ie}}),D=!w.overload&&typeof y.prototype.cancel=="function"&&typeof j=="function";function ke(){E&&(E=null),M&&(clearTimeout(M),M=0)}var pe=function(Ie){ke(),A(Ie)},le=function(Ie){ke(),N(Ie)};D?_(pe,le,j):(E=[function(Ie){le(Ie||Error("canceled"))}],_(pe,le,function(Ie){if(k)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof Ie!="function")throw TypeError("onCancel callback must be a function");E.push(Ie)}),k=!0),w.timeout>0&&(M=setTimeout(function(){var Ie=Error("timeout");Ie.code="ETIMEDOUT",M=0,I.cancel(Ie),N(Ie)},w.timeout))});return D||(I.cancel=function(A){if(!!E){for(var N=E.length,j=1;j0;)le=at[I],le!=="_listeners"&&(je=ee(y,_,w[le],D+1,E),je&&(pe?pe.push.apply(pe,je):pe=je));return pe}else if(dt==="**"){for(Qe=D+1===E||D+2===E&&Or==="*",Qe&&w._listeners&&(pe=ee(y,_,w,E,E)),at=f(w),I=at.length;I-- >0;)le=at[I],le!=="_listeners"&&(le==="*"||le==="**"?(w[le]._listeners&&!Qe&&(je=ee(y,_,w[le],E,E),je&&(pe?pe.push.apply(pe,je):pe=je)),je=ee(y,_,w[le],D,E)):le===Or?je=ee(y,_,w[le],D+2,E):je=ee(y,_,w[le],D,E),je&&(pe?pe.push.apply(pe,je):pe=je));return pe}else w[dt]&&(pe=ee(y,_,w[dt],D+1,E));if(Ie=w["*"],Ie&&ee(y,_,Ie,D+1,E),K=w["**"],K)if(D0;)le=at[I],le!=="_listeners"&&(le===Or?ee(y,_,K[le],D+2,E):le===dt?ee(y,_,K[le],D+1,E):(qe={},qe[le]=K[le],ee(y,_,{"**":qe},D+1,E)));else K._listeners?ee(y,_,K,E,E):K["*"]&&K["*"]._listeners&&ee(y,_,K["*"],E,E);return pe}function te(y,_,w){var D=0,E=0,M,k=this.delimiter,I=k.length,A;if(typeof y=="string")if((M=y.indexOf(k))!==-1){A=new Array(5);do A[D++]=y.slice(E,M),E=M+I;while((M=y.indexOf(k,E))!==-1);A[D++]=y.slice(E)}else A=[y],D=1;else A=y,D=y.length;if(D>1){for(M=0;M+10&&N._listeners.length>this._maxListeners&&(N._listeners.warned=!0,T.call(this,N._listeners.length,j))):N._listeners=_,!0;return!0}function Ft(y,_,w,D){for(var E=f(y),M=E.length,k,I,A,N=y._listeners,j;M-- >0;)I=E[M],k=y[I],I==="_listeners"?A=w:A=w?w.concat(I):[I],j=D||typeof I=="symbol",N&&_.push(j?A:A.join(this.delimiter)),typeof k=="object"&&Ft.call(this,k,_,A,j);return _}function gt(y){for(var _=f(y),w=_.length,D,E,M;w-- >0;)E=_[w],D=y[E],D&&(M=!0,E!=="_listeners"&&!gt(D)&&delete y[E]);return M}function V(y,_,w){this.emitter=y,this.event=_,this.listener=w}V.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function q(y,_,w){if(w===!0)E=!0;else if(w===!1)D=!0;else{if(!w||typeof w!="object")throw TypeError("options should be an object or true");var D=w.async,E=w.promisify,M=w.nextTick,k=w.objectify}if(D||M||E){var I=_,A=_._origin||_;if(M&&!s)throw Error("process.nextTick is not supported");E===r&&(E=_.constructor.name==="AsyncFunction"),_=function(){var N=arguments,j=this,ke=this.event;return E?M?Promise.resolve():new Promise(function(pe){c(pe)}).then(function(){return j.event=ke,I.apply(j,N)}):(M?process.nextTick:c)(function(){j.event=ke,I.apply(j,N)})},_._async=!0,_._origin=A}return[_,k?new V(this,y,_):this]}function P(y){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,g.call(this,y)}P.EventEmitter2=P,P.prototype.listenTo=function(y,_,w){if(typeof y!="object")throw TypeError("target musts be an object");var D=this;w=C(w,{on:r,off:r,reducers:r},{on:W,off:W,reducers:De});function E(M){if(typeof M!="object")throw TypeError("events must be an object");var k=w.reducers,I=be.call(D,y),A;I===-1?A=new R(D,y,w):A=D._observers[I];for(var N=f(M),j=N.length,ke,pe=typeof k=="function",le=0;le0;)E=w[D],(!y||E._target===y)&&(E.unsubscribe(_),M=!0);return M},P.prototype.delimiter=".",P.prototype.setMaxListeners=function(y){y!==r&&(this._maxListeners=y,this._conf||(this._conf={}),this._conf.maxListeners=y)},P.prototype.getMaxListeners=function(){return this._maxListeners},P.prototype.event="",P.prototype.once=function(y,_,w){return this._once(y,_,!1,w)},P.prototype.prependOnceListener=function(y,_,w){return this._once(y,_,!0,w)},P.prototype._once=function(y,_,w,D){return this._many(y,1,_,w,D)},P.prototype.many=function(y,_,w,D){return this._many(y,_,w,!1,D)},P.prototype.prependMany=function(y,_,w,D){return this._many(y,_,w,!0,D)},P.prototype._many=function(y,_,w,D,E){var M=this;if(typeof w!="function")throw new Error("many only accepts instances of Function");function k(){return--_===0&&M.off(y,k),w.apply(this,arguments)}return k._origin=w,this._on(y,k,D,E)},P.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||m.call(this);var y=arguments[0],_,w=this.wildcard,D,E,M,k,I;if(y==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(w&&(_=y,y!=="newListener"&&y!=="removeListener"&&typeof y=="object")){if(E=y.length,a){for(M=0;M3)for(D=new Array(A-1),k=1;k3)for(E=new Array(N-1),I=1;I0&&this._events[y].length>this._maxListeners&&(this._events[y].warned=!0,T.call(this,this._events[y].length,y))):this._events[y]=_,E)},P.prototype.off=function(y,_){if(typeof _!="function")throw new Error("removeListener only takes instances of Function");var w,D=[];if(this.wildcard){var E=typeof y=="string"?y.split(this.delimiter):y.slice();if(D=ee.call(this,null,E,this.listenerTree,0),!D)return this}else{if(!this._events[y])return this;w=this._events[y],D.push({_listeners:w})}for(var M=0;M0){for(D=this._all,_=0,w=D.length;_0;)D=_[w[M]],typeof D=="function"?E.push(D):E.push.apply(E,D);return E}else{if(this.wildcard){if(k=this.listenerTree,!k)return[];var I=[],A=typeof y=="string"?y.split(this.delimiter):y.slice();return ee.call(this,I,A,k,0),I}return _?(D=_[y],D?typeof D=="function"?[D]:D:[]):[]}},P.prototype.eventNames=function(y){var _=this._events;return this.wildcard?Ft.call(this,this.listenerTree,[],null,y):_?f(_):[]},P.prototype.listenerCount=function(y){return this.listeners(y).length},P.prototype.hasListeners=function(y){if(this.wildcard){var _=[],w=typeof y=="string"?y.split(this.delimiter):y.slice();return ee.call(this,_,w,this.listenerTree,0),_.length>0}var D=this._events,E=this._all;return!!(E&&E.length||D&&(y===r?f(D).length:D[y]))},P.prototype.listenersAny=function(){return this._all?this._all:[]},P.prototype.waitFor=function(y,_){var w=this,D=typeof _;return D==="number"?_={timeout:_}:D==="function"&&(_={filter:_}),_=C(_,{timeout:0,filter:r,handleError:!1,Promise,overload:!1},{filter:W,Promise:$}),Te(_.Promise,function(E,M,k){function I(){var A=_.filter;if(!(A&&!A.apply(w,arguments)))if(w.off(y,I),_.handleError){var N=arguments[0];N?M(N):E(S.apply(null,arguments).slice(1))}else E(S.apply(null,arguments))}k(function(){w.off(y,I)}),w._on(y,I,!1)},{timeout:_.timeout,overload:_.overload})};function Q(y,_,w){w=C(w,{Promise,timeout:0,overload:!1},{Promise:$});var D=w.Promise;return Te(D,function(E,M,k){var I;if(typeof y.addEventListener=="function"){I=function(){E(S.apply(null,arguments))},k(function(){y.removeEventListener(_,I)}),y.addEventListener(_,I,{once:!0});return}var A=function(){N&&y.removeListener("error",N),E(S.apply(null,arguments))},N;_!=="error"&&(N=function(j){y.removeListener(_,A),M(j)},y.once("error",N)),k(function(){N&&y.removeListener("error",N),y.removeListener(_,A)}),y.once(_,A)},{timeout:w.timeout,overload:w.overload})}var Y=P.prototype;if(Object.defineProperties(P,{defaultMaxListeners:{get:function(){return Y._maxListeners},set:function(y){if(typeof y!="number"||y<0||Number.isNaN(y))throw TypeError("n must be a non-negative number");Y._maxListeners=y},enumerable:!0},once:{value:Q,writable:!0,configurable:!0}}),Object.defineProperties(Y,{_maxListeners:{value:n,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),typeof define=="function"&&define.amd)define(function(){return P});else if(typeof Ib=="object")Fb.exports=P;else{var oe=new Function("","return this")();oe.EventEmitter2=P}})()});var Kr=O(Xn=>{"use strict";Xn.__esModule=!0;var aF;(function(r){r.AND="AND",r.OR="OR",r.XOR="XOR",r.NOT="NOT"})(aF=Xn.Operators||(Xn.Operators={}));var oF;(function(r){r.OPEN_PARENTHESIS="(",r.CLOSE_PARENTHESIS=")"})(oF=Xn.StructuralCharacters||(Xn.StructuralCharacters={}));var uF;(function(r){r.IDENTIFIER="IDENTIFIER",r.OPERATOR="OPERATOR",r.STRUCTURAL_CHARACTER="STRUCTURAL_CHARACTER",r.EOF="EOF",r.COMMENT="COMMENT"})(uF=Xn.Tokens||(Xn.Tokens={}))});var Jh=O(Hu=>{"use strict";Hu.__esModule=!0;var nt=Kr();Hu.OPERATOR_PRECEDENCE={NOT:0,XOR:1,AND:2,OR:3};Hu.VALID_TOKENS={identifierOnly:[{name:nt.Tokens.IDENTIFIER},{name:nt.Tokens.STRUCTURAL_CHARACTER,value:nt.StructuralCharacters.OPEN_PARENTHESIS}],identifierOrNot:[{name:nt.Tokens.IDENTIFIER},{name:nt.Tokens.STRUCTURAL_CHARACTER,value:nt.StructuralCharacters.OPEN_PARENTHESIS},{name:nt.Tokens.OPERATOR,value:nt.Operators.NOT}],binaryOperator:[{name:nt.Tokens.OPERATOR,value:nt.Operators.AND},{name:nt.Tokens.OPERATOR,value:nt.Operators.OR},{name:nt.Tokens.OPERATOR,value:nt.Operators.XOR}],binaryOperatorOrClose:[{name:nt.Tokens.OPERATOR,value:nt.Operators.AND},{name:nt.Tokens.OPERATOR,value:nt.Operators.OR},{name:nt.Tokens.OPERATOR,value:nt.Operators.XOR},{name:nt.Tokens.STRUCTURAL_CHARACTER,value:nt.StructuralCharacters.CLOSE_PARENTHESIS}]}});var ep=O(vn=>{"use strict";vn.__esModule=!0;var Di=Kr();vn.STRUCTURAL_CHARACTERS={"(":Di.StructuralCharacters.OPEN_PARENTHESIS,")":Di.StructuralCharacters.CLOSE_PARENTHESIS};vn.OPERATORS={AND:Di.Operators.AND,OR:Di.Operators.OR,XOR:Di.Operators.XOR,NOT:Di.Operators.NOT};vn.SEPARATORS=new Set([32,9,10,13].map(function(r){return String.fromCodePoint(r)}));vn.QUOTED_IDENTIFIER_DELIMITER=String.fromCodePoint(34);vn.COMMENT_DELIMITER=String.fromCodePoint(35);vn.EOL=String.fromCodePoint(10);vn.ESCAPE_CHARACTER=String.fromCodePoint(92)});var mv=O(wn=>{"use strict";var tp=wn&&wn.__assign||function(){return tp=Object.assign||function(r){for(var e,t=1,n=arguments.length;t{"use strict";rp.__esModule=!0;var ki=Kr(),lr=ep(),Ei=mv();rp.lex=function(r){for(var e=null,t=null,n=null,s=0;s{"use strict";var lF=Dn&&Dn.__spreadArrays||function(){for(var r=0,e=0,t=arguments.length;e{"use strict";var Oi=so&&so.__spreadArrays||function(){for(var r=0,e=0,t=arguments.length;e{"use strict";kn.__esModule=!0;var bv=Kr();kn.andUtil=function(r,e){return r&&e};kn.orUtil=function(r,e){return r||e};kn.xorUtil=function(r,e){return r!==e};kn.notUtil=function(r){return!r};kn.isIdentifier=function(r){var e=r.name,t=r.value;return e===bv.Tokens.IDENTIFIER&&typeof t=="string"};kn.isOperator=function(r){var e=r.name,t=r.value;return e===bv.Tokens.OPERATOR&&typeof t=="string"};kn.throwInvalidExpression=function(r){throw new TypeError("Invalid postfix expression: "+r)}});var vv=O(up=>{"use strict";var io;up.__esModule=!0;var ap=Kr(),op=ip();up.OPERATOR_MAP=(io={},io[ap.Operators.AND]=op.andUtil,io[ap.Operators.OR]=op.orUtil,io[ap.Operators.XOR]=op.xorUtil,io)});var Dv=O(Ns=>{"use strict";var lp=Ns&&Ns.__spreadArrays||function(){for(var r=0,e=0,t=arguments.length;e{"use strict";ao.__esModule=!0;var kv=Dv();ao.getEvaluator=kv.getEvaluator;ao.evaluate=kv.evaluate;var hF=sp();ao.parse=hF.parse});var _F={};kD(_F,{default:()=>dl});module.exports=ED(_F);var qv=require("obsidian");var hi=require("obsidian");var bF=new Error("timeout while waiting for mutex to become available"),vF=new Error("mutex already locked"),SD=new Error("request for lock canceled"),OD=function(r,e,t,n){function s(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function l(m){try{f(n.next(m))}catch(g){o(g)}}function c(m){try{f(n.throw(m))}catch(g){o(g)}}function f(m){m.done?a(m.value):s(m.value).then(l,c)}f((n=n.apply(r,e||[])).next())})},Rl=class{constructor(e,t=SD){this._value=e,this._cancelError=t,this._weightedQueues=[],this._weightedWaiters=[]}acquire(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return new Promise((t,n)=>{this._weightedQueues[e-1]||(this._weightedQueues[e-1]=[]),this._weightedQueues[e-1].push({resolve:t,reject:n}),this._dispatch()})}runExclusive(e,t=1){return OD(this,void 0,void 0,function*(){let[n,s]=yield this.acquire(t);try{return yield e(n)}finally{s()}})}waitForUnlock(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);return new Promise(t=>{this._weightedWaiters[e-1]||(this._weightedWaiters[e-1]=[]),this._weightedWaiters[e-1].push(t),this._dispatch()})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(e){this._value=e,this._dispatch()}release(e=1){if(e<=0)throw new Error(`invalid weight ${e}: must be positive`);this._value+=e,this._dispatch()}cancel(){this._weightedQueues.forEach(e=>e.forEach(t=>t.reject(this._cancelError))),this._weightedQueues=[]}_dispatch(){var e;for(let t=this._value;t>0;t--){let n=(e=this._weightedQueues[t-1])===null||e===void 0?void 0:e.shift();if(!n)continue;let s=this._value,a=t;this._value-=t,t=this._value+1,n.resolve([s,this._newReleaser(a)])}this._drainUnlockWaiters()}_newReleaser(e){let t=!1;return()=>{t||(t=!0,this.release(e))}}_drainUnlockWaiters(){for(let e=this._value;e>0;e--)!this._weightedWaiters[e-1]||(this._weightedWaiters[e-1].forEach(t=>t()),this._weightedWaiters[e-1]=[])}},MD=function(r,e,t,n){function s(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function l(m){try{f(n.next(m))}catch(g){o(g)}}function c(m){try{f(n.throw(m))}catch(g){o(g)}}function f(m){m.done?a(m.value):s(m.value).then(l,c)}f((n=n.apply(r,e||[])).next())})},Eo=class{constructor(e){this._semaphore=new Rl(1,e)}acquire(){return MD(this,void 0,void 0,function*(){let[,e]=yield this._semaphore.acquire();return e})}runExclusive(e){return this._semaphore.runExclusive(()=>e())}isLocked(){return this._semaphore.isLocked()}waitForUnlock(){return this._semaphore.waitForUnlock()}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}};var gu=os(mt()),qn=os(vh()),Xt=class{static parseDate(e,t=!1){return window.moment(gu.parseDate(e,void 0,{forwardDate:t})).startOf("day")}static parseDateRange(e){let t=[Xt.parseRelativeDateRange,Xt.parseSpecificDateRange,Xt.parseAbsoluteDateRange];for(let n of t){let s=n(e);if(s!==void 0)return s}return[qn.default.invalid(),qn.default.invalid()]}static parseAbsoluteDateRange(e){let t=gu.parse(e,void 0,{forwardDate:!0});if(t.length===0)return;let n=t[0].start,s=t[1]&&t[1].start?t[1].start:n,a=window.moment(n.date()),o=window.moment(s.date()),l=[a,o];return o.isBefore(a)&&(l=[o,a]),Xt.setDateRangeToStartOfDay(l)}static parseRelativeDateRange(e){let t=/(last|this|next) (week|month|quarter|year)/,n=e.match(t);if(n&&n.length===3){let s=n[1],a=n[2],o=qn.default.duration(1,a),l=[(0,qn.default)(),(0,qn.default)()];switch(s){case"last":l.forEach(f=>f.subtract(o));break;case"next":l.forEach(f=>f.add(o));break}let c=a==="week"?"isoWeek":a;return l=[l[0].startOf(c),l[1].endOf(c)],Xt.setDateRangeToStartOfDay(l)}}static parseSpecificDateRange(e){let t=[[/^\s*[0-9]{4}\s*$/,"YYYY","year"],[/^\s*[0-9]{4}-Q[1-4]\s*$/,"YYYY-Q","quarter"],[/^\s*[0-9]{4}-[0-9]{2}\s*$/,"YYYY-MM","month"],[/^\s*[0-9]{4}-W[0-9]{2}\s*$/,"YYYY-WW","isoWeek"]];for(let[n,s,a]of t){let o=e.match(n);if(o){let l=o[0].trim(),c=[(0,qn.default)(l,s).startOf(a),(0,qn.default)(l,s).endOf(a)];return Xt.setDateRangeToStartOfDay(c)}}}static setDateRangeToStartOfDay(e){return e.forEach(t=>t.startOf("day")),e}};var HC={td:"today",tm:"tomorrow",yd:"yesterday",tw:"this week",nw:"next week",weekend:"sat",we:"sat"};function oi(r){for(let[e,t]of Object.entries(HC))r=r.replace(RegExp(`\\b${e}\\s`,"i"),t);return r}var _u=["MO","TU","WE","TH","FR","SA","SU"],ct=function(){function r(e,t){if(t===0)throw new Error("Can't create weekday with n == 0");this.weekday=e,this.n=t}return r.fromStr=function(e){return new r(_u.indexOf(e))},r.prototype.nth=function(e){return this.n===e?this:new r(this.weekday,e)},r.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},r.prototype.toString=function(){var e=_u[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},r.prototype.getJsWeekday=function(){return this.weekday===6?0:this.weekday+1},r}();var ze=function(r){return r!=null},ar=function(r){return typeof r=="number"},wh=function(r){return typeof r=="string"&&_u.includes(r)},Nt=Array.isArray,Dr=function(r,e){e===void 0&&(e=r),arguments.length===1&&(e=r,r=0);for(var t=[],n=r;n>0,n.length>e?String(n):(e=e-n.length,e>t.length&&(t+=we(t,e/t.length)),t.slice(0,e)+String(n))}var RT=function(r,e,t){var n=r.split(e);return t?n.slice(0,t).concat([n.slice(t).join(e)]):n},Yt=function(r,e){var t=r%e;return t*e<0?t+e:t},Tu=function(r,e){return{div:Math.floor(r/e),mod:Yt(r,e)}},or=function(r){return!ze(r)||r.length===0},it=function(r){return!or(r)},Ee=function(r,e){return it(r)&&r.indexOf(e)!==-1};var jn;(function(r){r.MONTH_DAYS=[31,28,31,30,31,30,31,31,30,31,30,31],r.ONE_DAY=1e3*60*60*24,r.MAXYEAR=9999,r.ORDINAL_BASE=new Date(Date.UTC(1970,0,1)),r.PY_WEEKDAYS=[6,0,1,2,3,4,5],r.getYearDay=function(e){var t=new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate());return Math.ceil((t.valueOf()-new Date(e.getUTCFullYear(),0,1).valueOf())/r.ONE_DAY)+1},r.isLeapYear=function(e){return e%4===0&&e%100!==0||e%400===0},r.isDate=function(e){return e instanceof Date},r.isValidDate=function(e){return r.isDate(e)&&!isNaN(e.getTime())},r.tzOffset=function(e){return e.getTimezoneOffset()*60*1e3},r.daysBetween=function(e,t){var n=e.getTime()-r.tzOffset(e),s=t.getTime()-r.tzOffset(t),a=n-s;return Math.round(a/r.ONE_DAY)},r.toOrdinal=function(e){return r.daysBetween(e,r.ORDINAL_BASE)},r.fromOrdinal=function(e){return new Date(r.ORDINAL_BASE.getTime()+e*r.ONE_DAY)},r.getMonthDays=function(e){var t=e.getUTCMonth();return t===1&&r.isLeapYear(e.getUTCFullYear())?29:r.MONTH_DAYS[t]},r.getWeekday=function(e){return r.PY_WEEKDAYS[e.getUTCDay()]},r.monthRange=function(e,t){var n=new Date(Date.UTC(e,t,1));return[r.getWeekday(n),r.getMonthDays(n)]},r.combine=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},r.clone=function(e){var t=new Date(e.getTime());return t},r.cloneDates=function(e){for(var t=[],n=0;nthis.maxDate;if(this.method==="between"){if(t)return!0;if(n)return!1}else if(this.method==="before"){if(n)return!1}else if(this.method==="after")return t?!0:(this.add(e),!1);return this.add(e)},r.prototype.add=function(e){return this._result.push(e),!0},r.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;case"before":case"after":default:return e.length?e[e.length-1]:null}},r.prototype.clone=function(){return new r(this.method,this.args)},r}(),mn=zC;var QT=os(XT(),1),{__extends:li,__assign:Ht,__rest:iY,__decorate:aY,__param:oY,__metadata:uY,__awaiter:lY,__generator:cY,__exportStar:dY,__createBinding:fY,__values:hY,__read:pY,__spread:mY,__spreadArrays:yY,__spreadArray:U,__await:gY,__asyncGenerator:_Y,__asyncDelegator:TY,__asyncValues:bY,__makeTemplateObject:vY,__importStar:wY,__importDefault:DY,__classPrivateFieldGet:kY,__classPrivateFieldSet:EY,__classPrivateFieldIn:SY}=QT.default;var VC=function(r){li(e,r);function e(t,n,s){var a=r.call(this,t,n)||this;return a.iterator=s,a}return e.prototype.add=function(t){return this.iterator(t,this._result.length)?(this._result.push(t),!0):!1},e}(mn),kh=VC;var KC={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},bs=KC;var JT=function(r,e){return r.indexOf(e)!==-1},ZC=function(r){return r.toString()},XC=function(r,e,t){return"".concat(e," ").concat(t,", ").concat(r)},QC=function(){function r(e,t,n,s){if(t===void 0&&(t=ZC),n===void 0&&(n=bs),s===void 0&&(s=XC),this.text=[],this.language=n||bs,this.gettext=t,this.dateFormatter=s,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var a=[].concat(this.options.bymonthday),o=[].concat(this.options.bynmonthday);a.sort(function(m,g){return m-g}),o.sort(function(m,g){return g-m}),this.bymonthday=a.concat(o),this.bymonthday.length||(this.bymonthday=null)}if(ze(this.origOptions.byweekday)){var l=Nt(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],c=String(l);this.byweekday={allWeeks:l.filter(function(m){return!m.n}),someWeeks:l.filter(function(m){return Boolean(m.n)}),isWeekdays:c.indexOf("MO")!==-1&&c.indexOf("TU")!==-1&&c.indexOf("WE")!==-1&&c.indexOf("TH")!==-1&&c.indexOf("FR")!==-1&&c.indexOf("SA")===-1&&c.indexOf("SU")===-1,isEveryDay:c.indexOf("MO")!==-1&&c.indexOf("TU")!==-1&&c.indexOf("WE")!==-1&&c.indexOf("TH")!==-1&&c.indexOf("FR")!==-1&&c.indexOf("SA")!==-1&&c.indexOf("SU")!==-1};var f=function(m,g){return m.weekday-g.weekday};this.byweekday.allWeeks.sort(f),this.byweekday.someWeeks.sort(f),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return r.isFullyConvertible=function(e){var t=!0;if(!(e.options.freq in r.IMPLEMENTED)||e.origOptions.until&&e.origOptions.count)return!1;for(var n in e.origOptions){if(JT(["dtstart","wkst","freq"],n))return!0;if(!JT(r.IMPLEMENTED[e.options.freq],n))return!1}return t},r.prototype.isFullyConvertible=function(){return r.isFullyConvertible(this.rrule)},r.prototype.toString=function(){var e=this.gettext;if(!(this.options.freq in r.IMPLEMENTED))return e("RRule error: Unable to fully convert this rrule to text");if(this.text=[e("every")],this[X.FREQUENCIES[this.options.freq]](),this.options.until){this.add(e("until"));var t=this.options.until;this.add(this.dateFormatter(t.getUTCFullYear(),this.language.monthNames[t.getUTCMonth()],t.getUTCDate()))}else this.options.count&&this.add(e("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?e("times"):e("time"));return this.isFullyConvertible()||this.add(e("(~ approximate)")),this.text.join("")},r.prototype.HOURLY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("hours"):e("hour"))},r.prototype.MINUTELY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("minutes"):e("minute"))},r.prototype.DAILY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(this.plural(this.options.interval)?e("days"):e("day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},r.prototype.WEEKLY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?e("weeks"):e("week")),this.byweekday&&this.byweekday.isWeekdays?this.options.interval===1?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?e("days"):e("day")):(this.options.interval===1&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday())},r.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("months"):e("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},r.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("years"):e("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(this.plural(this.options.byweekno.length)?e("weeks"):e("week")).add(this.list(this.options.byweekno,void 0,e("and")))},r.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},r.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},r.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},r.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},r.prototype.nth=function(e){e=parseInt(e.toString(),10);var t,n=this.gettext;if(e===-1)return n("last");var s=Math.abs(e);switch(s){case 1:case 21:case 31:t=s+n("st");break;case 2:case 22:t=s+n("nd");break;case 3:case 23:t=s+n("rd");break;default:t=s+n("th")}return e<0?t+" "+n("last"):t},r.prototype.monthtext=function(e){return this.language.monthNames[e-1]},r.prototype.weekdaytext=function(e){var t=ar(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[t]},r.prototype.plural=function(e){return e%100!==1},r.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},r.prototype.list=function(e,t,n,s){var a=this;s===void 0&&(s=","),Nt(e)||(e=[e]);var o=function(c,f,m){for(var g="",T=0;Te[0].length)&&(e=a,t=s)}if(e!=null&&(this.text=this.text.substr(e[0].length),this.text===""&&(this.done=!0)),e==null){this.done=!0,this.symbol=null,this.value=null;return}}while(t==="SKIP");return this.symbol=t,this.value=e,!0},r.prototype.accept=function(e){if(this.symbol===e){if(this.value){var t=this.value;return this.nextSymbol(),t}return this.nextSymbol(),!0}return!1},r.prototype.acceptNumber=function(){return this.accept("number")},r.prototype.expect=function(e){if(this.accept(e))return!0;throw new Error("expected "+e+" but found "+this.symbol)},r}();function Wa(r,e){e===void 0&&(e=bs);var t={},n=new JC(e.tokens);if(!n.start(r))return null;return s(),t;function s(){n.expect("every");var T=n.acceptNumber();if(T&&(t.interval=parseInt(T[0],10)),n.isDone())throw new Error("Unexpected end");switch(n.symbol){case"day(s)":t.freq=X.DAILY,n.nextSymbol()&&(o(),g());break;case"weekday(s)":t.freq=X.WEEKLY,t.byweekday=[X.MO,X.TU,X.WE,X.TH,X.FR],n.nextSymbol(),g();break;case"week(s)":t.freq=X.WEEKLY,n.nextSymbol()&&(a(),g());break;case"hour(s)":t.freq=X.HOURLY,n.nextSymbol()&&(a(),g());break;case"minute(s)":t.freq=X.MINUTELY,n.nextSymbol()&&(a(),g());break;case"month(s)":t.freq=X.MONTHLY,n.nextSymbol()&&(a(),g());break;case"year(s)":t.freq=X.YEARLY,n.nextSymbol()&&(a(),g());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":t.freq=X.WEEKLY;var S=n.symbol.substr(0,2).toUpperCase();if(t.byweekday=[X[S]],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var v=c();if(!v)throw new Error("Unexpected symbol "+n.symbol+", expected weekday");t.byweekday.push(X[v]),n.nextSymbol()}m(),g();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(t.freq=X.YEARLY,t.bymonth=[l()],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var R=l();if(!R)throw new Error("Unexpected symbol "+n.symbol+", expected month");t.bymonth.push(R),n.nextSymbol()}a(),g();break;default:throw new Error("Unknown symbol")}}function a(){var T=n.accept("on"),S=n.accept("the");if(!!(T||S))do{var v=f(),R=c(),C=l();if(v)R?(n.nextSymbol(),t.byweekday||(t.byweekday=[]),t.byweekday.push(X[R].nth(v))):(t.bymonthday||(t.bymonthday=[]),t.bymonthday.push(v),n.accept("day(s)"));else if(R)n.nextSymbol(),t.byweekday||(t.byweekday=[]),t.byweekday.push(X[R]);else if(n.symbol==="weekday(s)")n.nextSymbol(),t.byweekday||(t.byweekday=[X.MO,X.TU,X.WE,X.TH,X.FR]);else if(n.symbol==="week(s)"){n.nextSymbol();var $=n.acceptNumber();if(!$)throw new Error("Unexpected symbol "+n.symbol+", expected week number");for(t.byweekno=[parseInt($[0],10)];n.accept("comma");){if($=n.acceptNumber(),!$)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");t.byweekno.push(parseInt($[0],10))}}else if(C)n.nextSymbol(),t.bymonth||(t.bymonth=[]),t.bymonth.push(C);else return}while(n.accept("comma")||n.accept("the")||n.accept("on"))}function o(){var T=n.accept("at");if(!!T)do{var S=n.acceptNumber();if(!S)throw new Error("Unexpected symbol "+n.symbol+", expected hour");for(t.byhour=[parseInt(S[0],10)];n.accept("comma");){if(S=n.acceptNumber(),!S)throw new Error("Unexpected symbol "+n.symbol+"; expected hour");t.byhour.push(parseInt(S[0],10))}}while(n.accept("comma")||n.accept("at"))}function l(){switch(n.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function c(){switch(n.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return n.symbol.substr(0,2).toUpperCase();default:return!1}}function f(){switch(n.symbol){case"last":return n.nextSymbol(),-1;case"first":return n.nextSymbol(),1;case"second":return n.nextSymbol(),n.accept("last")?-2:2;case"third":return n.nextSymbol(),n.accept("last")?-3:3;case"nth":var T=parseInt(n.value[1],10);if(T<-366||T>366)throw new Error("Nth out of range: "+T);return n.nextSymbol(),n.accept("last")?-T:T;default:return!1}}function m(){n.accept("on"),n.accept("the");var T=f();if(!!T)for(t.bymonthday=[T],n.nextSymbol();n.accept("comma");){if(T=f(),!T)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");t.bymonthday.push(T),n.nextSymbol()}}function g(){if(n.symbol==="until"){var T=Date.parse(n.text);if(!T)throw new Error("Cannot parse until date:"+n.text);t.until=new Date(T)}else n.accept("for")&&(t.count=parseInt(n.value[0],10),n.expect("number"))}}var _e;(function(r){r[r.YEARLY=0]="YEARLY",r[r.MONTHLY=1]="MONTHLY",r[r.WEEKLY=2]="WEEKLY",r[r.DAILY=3]="DAILY",r[r.HOURLY=4]="HOURLY",r[r.MINUTELY=5]="MINUTELY",r[r.SECONDLY=6]="SECONDLY"})(_e||(_e={}));function qa(r){return r<_e.HOURLY}var eb=function(r,e){return e===void 0&&(e=bs),new X(Wa(r,e)||void 0)},ci=["count","until","interval","byweekday","bymonthday","bymonth"];Br.IMPLEMENTED=[];Br.IMPLEMENTED[_e.HOURLY]=ci;Br.IMPLEMENTED[_e.MINUTELY]=ci;Br.IMPLEMENTED[_e.DAILY]=["byhour"].concat(ci);Br.IMPLEMENTED[_e.WEEKLY]=ci;Br.IMPLEMENTED[_e.MONTHLY]=ci;Br.IMPLEMENTED[_e.YEARLY]=["byweekno","byyearday"].concat(ci);var tb=function(r,e,t,n){return new Br(r,e,t,n).toString()},rb=Br.isFullyConvertible;var di=function(){function r(e,t,n,s){this.hour=e,this.minute=t,this.second=n,this.millisecond=s||0}return r.prototype.getHours=function(){return this.hour},r.prototype.getMinutes=function(){return this.minute},r.prototype.getSeconds=function(){return this.second},r.prototype.getMilliseconds=function(){return this.millisecond},r.prototype.getTime=function(){return(this.hour*60*60+this.minute*60+this.second)*1e3+this.millisecond},r}();var nb=function(r){li(e,r);function e(t,n,s,a,o,l,c){var f=r.call(this,a,o,l,c)||this;return f.year=t,f.month=n,f.day=s,f}return e.fromDate=function(t){return new this(t.getUTCFullYear(),t.getUTCMonth()+1,t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.valueOf()%1e3)},e.prototype.getWeekday=function(){return jn.getWeekday(new Date(this.getTime()))},e.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},e.prototype.getDay=function(){return this.day},e.prototype.getMonth=function(){return this.month},e.prototype.getYear=function(){return this.year},e.prototype.addYears=function(t){this.year+=t},e.prototype.addMonths=function(t){if(this.month+=t,this.month>12){var n=Math.floor(this.month/12),s=Yt(this.month,12);this.month=s,this.year+=n,this.month===0&&(this.month=12,--this.year)}},e.prototype.addWeekly=function(t,n){n>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-n))+t*7:this.day+=-(this.getWeekday()-n)+t*7,this.fixDay()},e.prototype.addDaily=function(t){this.day+=t,this.fixDay()},e.prototype.addHours=function(t,n,s){for(n&&(this.hour+=Math.floor((23-this.hour)/t)*t);;){this.hour+=t;var a=Tu(this.hour,24),o=a.div,l=a.mod;if(o&&(this.hour=l,this.addDaily(o)),or(s)||Ee(s,this.hour))break}},e.prototype.addMinutes=function(t,n,s,a){for(n&&(this.minute+=Math.floor((1439-(this.hour*60+this.minute))/t)*t);;){this.minute+=t;var o=Tu(this.minute,60),l=o.div,c=o.mod;if(l&&(this.minute=c,this.addHours(l,!1,s)),(or(s)||Ee(s,this.hour))&&(or(a)||Ee(a,this.minute)))break}},e.prototype.addSeconds=function(t,n,s,a,o){for(n&&(this.second+=Math.floor((86399-(this.hour*3600+this.minute*60+this.second))/t)*t);;){this.second+=t;var l=Tu(this.second,60),c=l.div,f=l.mod;if(c&&(this.second=f,this.addMinutes(c,!1,s,a)),(or(s)||Ee(s,this.hour))&&(or(a)||Ee(a,this.minute))&&(or(o)||Ee(o,this.second)))break}},e.prototype.fixDay=function(){if(!(this.day<=28)){var t=jn.monthRange(this.year,this.month-1)[1];if(!(this.day<=t))for(;this.day>t;){if(this.day-=t,++this.month,this.month===13&&(this.month=1,++this.year,this.year>jn.MAXYEAR))return;t=jn.monthRange(this.year,this.month-1)[1]}}},e.prototype.add=function(t,n){var s=t.freq,a=t.interval,o=t.wkst,l=t.byhour,c=t.byminute,f=t.bysecond;switch(s){case _e.YEARLY:return this.addYears(a);case _e.MONTHLY:return this.addMonths(a);case _e.WEEKLY:return this.addWeekly(a,o);case _e.DAILY:return this.addDaily(a);case _e.HOURLY:return this.addHours(a,n,l);case _e.MINUTELY:return this.addMinutes(a,n,l,c);case _e.SECONDLY:return this.addSeconds(a,n,l,c,f)}},e}(di);function Eh(r){for(var e=[],t=Object.keys(r),n=0,s=t;n=-366&&n<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(Boolean(e.byweekno)||it(e.byweekno)||it(e.byyearday)||Boolean(e.bymonthday)||it(e.bymonthday)||ze(e.byweekday)||ze(e.byeaster)))switch(e.freq){case X.YEARLY:e.bymonth||(e.bymonth=e.dtstart.getUTCMonth()+1),e.bymonthday=e.dtstart.getUTCDate();break;case X.MONTHLY:e.bymonthday=e.dtstart.getUTCDate();break;case X.WEEKLY:e.byweekday=[se.getWeekday(e.dtstart)];break}if(ze(e.bymonth)&&!Nt(e.bymonth)&&(e.bymonth=[e.bymonth]),ze(e.byyearday)&&!Nt(e.byyearday)&&ar(e.byyearday)&&(e.byyearday=[e.byyearday]),!ze(e.bymonthday))e.bymonthday=[],e.bynmonthday=[];else if(Nt(e.bymonthday)){for(var s=[],a=[],t=0;t0?s.push(n):n<0&&a.push(n)}e.bymonthday=s,e.bynmonthday=a}else e.bymonthday<0?(e.bynmonthday=[e.bymonthday],e.bymonthday=[]):(e.bynmonthday=[],e.bymonthday=[e.bymonthday]);if(ze(e.byweekno)&&!Nt(e.byweekno)&&(e.byweekno=[e.byweekno]),!ze(e.byweekday))e.bynweekday=null;else if(ar(e.byweekday))e.byweekday=[e.byweekday],e.bynweekday=null;else if(wh(e.byweekday))e.byweekday=[ct.fromStr(e.byweekday).weekday],e.bynweekday=null;else if(e.byweekday instanceof ct)!e.byweekday.n||e.freq>X.MONTHLY?(e.byweekday=[e.byweekday.weekday],e.bynweekday=null):(e.bynweekday=[[e.byweekday.weekday,e.byweekday.n]],e.byweekday=null);else{for(var o=[],l=[],t=0;tX.MONTHLY?o.push(c.weekday):l.push([c.weekday,c.n])}e.byweekday=it(o)?o:null,e.bynweekday=it(l)?l:null}return ze(e.byhour)?ar(e.byhour)&&(e.byhour=[e.byhour]):e.byhour=e.freq=4?(m=0,f=l.yearlen+Yt(o-e.wkst,7)):f=n-m;for(var g=Math.floor(f/7),T=Yt(f,7),S=Math.floor(g+T/4),v=0;v0&&R<=S){var C=void 0;R>1?(C=m+(R-1)*7,m!==c&&(C-=7-c)):C=m;for(var $=0;$<7&&(l.wnomask[C]=1,C++,l.wdaymask[C]!==e.wkst);$++);}}if(Ee(e.byweekno,1)){var C=m+S*7;if(m!==c&&(C-=7-c),C=4?(De=0,be=Te+Yt(W-e.wkst,7)):be=n-m,B=Math.floor(52+Yt(be,7)/4)}if(Ee(e.byweekno,B))for(var C=0;Ca)return yn(r);if(B>=t){var W=Db(B,e);if(!r.accept(W)||l&&(--l,!l))return yn(r)}}else for(var $=S;$a)return yn(r);if(B>=t){var W=Db(B,e);if(!r.accept(W)||l&&(--l,!l))return yn(r)}}}if(e.interval===0||(c.add(e,R),c.year>se.MAXYEAR))return yn(r);qa(n)||(m=f.gettimeset(n)(c.hour,c.minute,c.second,0)),f.rebuild(c.year,c.month)}}function dI(r,e,t){var n=t.bymonth,s=t.byweekno,a=t.byweekday,o=t.byeaster,l=t.bymonthday,c=t.bynmonthday,f=t.byyearday;return it(n)&&!Ee(n,r.mmask[e])||it(s)&&!r.wnomask[e]||it(a)&&!Ee(a,r.wdaymask[e])||it(r.nwdaymask)&&!r.nwdaymask[e]||o!==null&&!Ee(r.eastermask,e)||(it(l)||it(c))&&!Ee(l,r.mdaymask[e])&&!Ee(c,r.nmdaymask[e])||it(f)&&(e=r.yearlen&&!Ee(f,e+1-r.yearlen)&&!Ee(f,-r.nextyearlen+e-r.yearlen))}function Db(r,e){return new vs(r,e.tzid).rezonedDate()}function yn(r){return r.getValue()}function fI(r,e,t,n,s){for(var a=!1,o=e;o=X.HOURLY&&it(s)&&!Ee(s,e.hour)||n>=X.MINUTELY&&it(a)&&!Ee(a,e.minute)||n>=X.SECONDLY&&it(o)&&!Ee(o,e.second)?[]:r.gettimeset(n)(e.hour,e.minute,e.second,e.millisecond)}var kr={MO:new ct(0),TU:new ct(1),WE:new ct(2),TH:new ct(3),FR:new ct(4),SA:new ct(5),SU:new ct(6)},ja={freq:_e.YEARLY,dtstart:null,interval:1,wkst:kr.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},ab=Object.keys(ja),X=function(){function r(e,t){e===void 0&&(e={}),t===void 0&&(t=!1),this._cache=t?null:new lb,this.origOptions=Eh(e);var n=sb(e).parsedOptions;this.options=n}return r.parseText=function(e,t){return Wa(e,t)},r.fromText=function(e,t){return eb(e,t)},r.fromString=function(e){return new r(r.parseString(e)||void 0)},r.prototype._iter=function(e){return Du(e,this.options)},r.prototype._cacheGet=function(e,t){return this._cache?this._cache._cacheGet(e,t):!1},r.prototype._cacheAdd=function(e,t,n){if(!!this._cache)return this._cache._cacheAdd(e,t,n)},r.prototype.all=function(e){if(e)return this._iter(new kh("all",{},e));var t=this._cacheGet("all");return t===!1&&(t=this._iter(new mn("all",{})),this._cacheAdd("all",t)),t},r.prototype.between=function(e,t,n,s){if(n===void 0&&(n=!1),!se.isValidDate(e)||!se.isValidDate(t))throw new Error("Invalid date passed in to RRule.between");var a={before:t,after:e,inc:n};if(s)return this._iter(new kh("between",a,s));var o=this._cacheGet("between",a);return o===!1&&(o=this._iter(new mn("between",a)),this._cacheAdd("between",o,a)),o},r.prototype.before=function(e,t){if(t===void 0&&(t=!1),!se.isValidDate(e))throw new Error("Invalid date passed in to RRule.before");var n={dt:e,inc:t},s=this._cacheGet("before",n);return s===!1&&(s=this._iter(new mn("before",n)),this._cacheAdd("before",s,n)),s},r.prototype.after=function(e,t){if(t===void 0&&(t=!1),!se.isValidDate(e))throw new Error("Invalid date passed in to RRule.after");var n={dt:e,inc:t},s=this._cacheGet("after",n);return s===!1&&(s=this._iter(new mn("after",n)),this._cacheAdd("after",s,n)),s},r.prototype.count=function(){return this.all().length},r.prototype.toString=function(){return Ba(this.origOptions)},r.prototype.toText=function(e,t,n){return tb(this,e,t,n)},r.prototype.isFullyConvertibleToText=function(){return rb(this)},r.prototype.clone=function(){return new r(this.origOptions)},r.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],r.YEARLY=_e.YEARLY,r.MONTHLY=_e.MONTHLY,r.WEEKLY=_e.WEEKLY,r.DAILY=_e.DAILY,r.HOURLY=_e.HOURLY,r.MINUTELY=_e.MINUTELY,r.SECONDLY=_e.SECONDLY,r.MO=kr.MO,r.TU=kr.TU,r.WE=kr.WE,r.TH=kr.TH,r.FR=kr.FR,r.SA=kr.SA,r.SU=kr.SU,r.parseString=Ga,r.optionsToString=Ba,r}();function kb(r,e,t,n,s,a){var o={},l=r.accept;function c(T,S){t.forEach(function(v){v.between(T,S,!0).forEach(function(R){o[Number(R)]=!0})})}s.forEach(function(T){var S=new vs(T,a).rezonedDate();o[Number(S)]=!0}),r.accept=function(T){var S=Number(T);return isNaN(S)?l.call(this,T):!o[S]&&(c(new Date(S-1),new Date(S+1)),!o[S])?(o[S]=!0,l.call(this,T)):!0},r.method==="between"&&(c(r.args.after,r.args.before),r.accept=function(T){var S=Number(T);return o[S]?!0:(o[S]=!0,l.call(this,T))});for(var f=0;f1||s.length||a.length||o.length){var m=new Mh(f);return m.dtstart(l),m.tzid(c||void 0),n.forEach(function(T){m.rrule(new X(Oh(T,l,c),f))}),s.forEach(function(T){m.rdate(T)}),a.forEach(function(T){m.exrule(new X(Oh(T,l,c),f))}),o.forEach(function(T){m.exdate(T)}),e.compatible&&e.dtstart&&m.rdate(l),m}var g=n[0]||{};return new X(Oh(g,g.dtstart||e.dtstart||l,g.tzid||e.tzid||c),f)}function ku(r,e){return e===void 0&&(e={}),mI(r,yI(e))}function Oh(r,e,t){return Ht(Ht({},r),{dtstart:e,tzid:t})}function yI(r){var e=[],t=Object.keys(r),n=Object.keys(Eb);if(t.forEach(function(s){Ee(n,s)||e.push(s)}),e.length)throw new Error("Invalid options: "+e.join(", "));return Ht(Ht({},Eb),r)}function gI(r){if(r.indexOf(":")===-1)return{name:"RRULE",value:r};var e=RT(r,":",1),t=e[0],n=e[1];return{name:t,value:n}}function _I(r){var e=gI(r),t=e.name,n=e.value,s=t.split(";");if(!s)throw new Error("empty property name");return{name:s[0].toUpperCase(),parms:s.slice(1),value:n}}function TI(r,e){if(e===void 0&&(e=!1),r=r&&r.trim(),!r)throw new Error("Invalid empty string");if(!e)return r.split(/\s/);for(var t=r.split(` +`),n=0;n0&&s[0]===" "?(t[n-1]+=s.slice(1),t.splice(n,1)):n+=1:t.splice(n,1)}return t}function bI(r){r.forEach(function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw new Error("unsupported RDATE/EXDATE parm: "+e)})}function Sb(r,e){return bI(e),r.split(",").map(function(t){return se.untilStringToDate(t)})}function Ob(r){var e=this;return function(t){if(t!==void 0&&(e["_".concat(r)]=t),e["_".concat(r)]!==void 0)return e["_".concat(r)];for(var n=0;nn}static nextAfterYears(e,t,n,s){let a=1;for(s!==void 0&&(a=Number.parseInt(s.trim(),10));Et.isSkippingTooManyYears(e,t,a);)t=Et.fromOneDayEarlier(e,n);return t}static isSkippingTooManyYears(e,t,n){return t.year()-e.year()>n}static fromOneDayEarlier(e,t){e.subtract(1,"days").endOf("day");let n=t.origOptions;return n.dtstart=e.startOf("day").toDate(),t=new X(n),window.moment(t.after(e.toDate()))}static addTimezone(e){return window.moment.utc(e).local(!0).startOf("day")}};function Rb(r){let e=`${r.startDateSymbol}${r.scheduledDateSymbol}${r.dueDateSymbol}`;return(t,n,s)=>{let a=[];a=a.concat(bI(t,n,s,e)),a=a.concat(vI(t,n,s,r.recurrenceSymbol));let o=TI(t,s,r),l=Oh(t,/([a-zA-Z'_-]*)/g,n),c=!1;if(l&&l.length>0){let f=l[0];if(f.length>=Math.max(1,s.autoSuggestMinMatch)){let m=o.filter(g=>g.displayText.toLowerCase().includes(f.toLowerCase()));for(let g of m)a.push({suggestionType:"match",displayText:g.displayText,appendText:g.appendText,insertAt:l.index,insertSkip:f.length}),c=!0}}return!c&&s.autoSuggestMinMatch===0&&(a=a.concat(o)),a.length>0&&!a.some(f=>f.suggestionType==="match")&&a.unshift({suggestionType:"empty",displayText:"\u23CE",appendText:` -`}),a=a.slice(0,s.autoSuggestMaxItems),a}}function TI(r,e,t){let n=a=>Object.values(t.prioritySymbols).some(o=>o.length>0&&a.includes(o)),s=[];return r.includes(t.dueDateSymbol)||s.push({displayText:`${t.dueDateSymbol} due date`,appendText:`${t.dueDateSymbol} `}),r.includes(t.startDateSymbol)||s.push({displayText:`${t.startDateSymbol} start date`,appendText:`${t.startDateSymbol} `}),r.includes(t.scheduledDateSymbol)||s.push({displayText:`${t.scheduledDateSymbol} scheduled date`,appendText:`${t.scheduledDateSymbol} `}),n(r)||(s.push({displayText:`${t.prioritySymbols.High} high priority`,appendText:`${t.prioritySymbols.High} `}),s.push({displayText:`${t.prioritySymbols.Medium} medium priority`,appendText:`${t.prioritySymbols.Medium} `}),s.push({displayText:`${t.prioritySymbols.Low} low priority`,appendText:`${t.prioritySymbols.Low} `})),r.includes(t.recurrenceSymbol)||s.push({displayText:`${t.recurrenceSymbol} recurring (repeat)`,appendText:`${t.recurrenceSymbol} `}),s}function bI(r,e,t,n){let s=["today","tomorrow","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","next week","next month","next year"],a=[],o=new RegExp(`([${n}])\\s*([0-9a-zA-Z ]*)`,"ug"),l=Oh(r,o,e);if(l&&l.length>=2){let c=l[1],f=l[2];if(f.length1?ms.parseDate(ii(f),!0):null;m&&m.isValid()&&a.push({displayText:`${m.format(ae.dateFormat)}`,appendText:`${c} ${m.format(ae.dateFormat)} `,insertAt:l.index,insertSkip:l[0].length});let g=1,T=5,E=s.filter(v=>f&&f.length>=g&&v.toLowerCase().includes(f.toLowerCase())).slice(0,T);E.length===0&&(E=s.slice(0,T));for(let v of E){let C=`${ms.parseDate(v,!0).format(ae.dateFormat)}`;a.push({suggestionType:"match",displayText:`${v} (${C})`,appendText:`${c} ${C} `,insertAt:l.index,insertSkip:l[0].length})}}return a}function vI(r,e,t,n){var c;let s=["every","every day","every week","every month","every month on the","every year","every week on Sunday","every week on Monday","every week on Tuesday","every week on Wednesday","every week on Thursday","every week on Friday","every week on Saturday"],a=[],o=new RegExp(`(${n})\\s*([0-9a-zA-Z ]*)`,"ug"),l=Oh(r,o,e);if(l&&l.length>=2){let f=l[1],m=l[2];if(m.length0){let v=(c=Et.fromText({recurrenceRuleText:m,startDate:null,scheduledDate:null,dueDate:null}))==null?void 0:c.toText();if(v){let R=`${f} ${v} `;if(a.push({suggestionType:"match",displayText:`\u2705 ${v}`,appendText:R,insertAt:l.index,insertSkip:l[0].length}),l[0]==R)return[]}}let g=1,T=t.autoSuggestMaxItems/2,E=s.filter(v=>m&&m.length>=g&&v.toLowerCase().includes(m.toLowerCase())).slice(0,T);E.length===0&&m.trim().length===0&&(E=s.slice(0,T));for(let v of E)a.push({suggestionType:"match",displayText:`${v}`,appendText:`${f} ${v} `,insertAt:l.index,insertSkip:l[0].length})}return a}function Oh(r,e,t){let n=r.matchAll(e);for(let s of n)if((s==null?void 0:s.index)&&s.index<=t&&t<=s.index+s[0].length)return s;return[]}var Ba=class{constructor(){this.hideTaskCount=!1;this.hideBacklinks=!1;this.hidePriority=!1;this.hideCreatedDate=!1;this.hideStartDate=!1;this.hideScheduledDate=!1;this.hideDoneDate=!1;this.hideDueDate=!1;this.hideRecurrenceRule=!1;this.hideEditButton=!1;this.hideUrgency=!0;this.shortMode=!1;this.explainQuery=!1}},qn=class{constructor(e,t){this.defaultLayout=["description","priority","recurrenceRule","createdDate","startDate","scheduledDate","dueDate","doneDate","blockLink"];this.hiddenComponents=[];this.specificClasses=[];e?this.options=e:this.options=new Ba,t?this.layoutComponents=t:this.layoutComponents=this.defaultLayout,this.layoutComponents=this.applyOptions(this.options)}applyOptions(e){let t=(s,a,o)=>a?(this.specificClasses.push(`tasks-layout-hide-${o}`),this.hiddenComponents.push(o),s.filter(l=>l!=o)):s,n=this.layoutComponents;return n=t(n,e.hidePriority,"priority"),n=t(n,e.hideRecurrenceRule,"recurrenceRule"),n=t(n,e.hideCreatedDate,"createdDate"),n=t(n,e.hideStartDate,"startDate"),n=t(n,e.hideScheduledDate,"scheduledDate"),n=t(n,e.hideDueDate,"dueDate"),n=t(n,e.hideDoneDate,"doneDate"),e.shortMode&&this.specificClasses.push("tasks-layout-short-mode"),n}};var Mh={prioritySymbols:{High:"\u23EB",Medium:"\u{1F53C}",Low:"\u{1F53D}",None:""},startDateSymbol:"\u{1F6EB}",createdDateSymbol:"\u2795",scheduledDateSymbol:"\u23F3",dueDateSymbol:"\u{1F4C5}",doneDateSymbol:"\u2705",recurrenceSymbol:"\u{1F501}",TaskFormatRegularExpressions:{priorityRegex:/([⏫🔼🔽])$/u,startDateRegex:/🛫 *(\d{4}-\d{2}-\d{2})$/u,createdDateRegex:/➕ *(\d{4}-\d{2}-\d{2})$/u,scheduledDateRegex:/[⏳⌛] *(\d{4}-\d{2}-\d{2})$/u,dueDateRegex:/[📅📆🗓] *(\d{4}-\d{2}-\d{2})$/u,doneDateRegex:/✅ *(\d{4}-\d{2}-\d{2})$/u,recurrenceRegex:/🔁 ?([a-zA-Z0-9, !]+)$/iu}},Ga=class{constructor(e){this.symbols=e}serialize(e){let t=new qn,n="";for(let s of t.layoutComponents)n+=this.componentToString(e,t,s);return n}componentToString(e,t,n){var g;let{prioritySymbols:s,startDateSymbol:a,createdDateSymbol:o,scheduledDateSymbol:l,doneDateSymbol:c,recurrenceSymbol:f,dueDateSymbol:m}=this.symbols;switch(n){case"description":return e.description;case"priority":{let T="";return e.priority==="1"?T=" "+s.High:e.priority==="2"?T=" "+s.Medium:e.priority==="4"&&(T=" "+s.Low),T}case"startDate":return e.startDate?t.options.shortMode?" "+a:` ${a} ${e.startDate.format(ae.dateFormat)}`:"";case"createdDate":return e.createdDate?t.options.shortMode?" "+o:` ${o} ${e.createdDate.format(ae.dateFormat)}`:"";case"scheduledDate":return!e.scheduledDate||e.scheduledDateIsInferred?"":t.options.shortMode?" "+l:` ${l} ${e.scheduledDate.format(ae.dateFormat)}`;case"doneDate":return e.doneDate?t.options.shortMode?" "+c:` ${c} ${e.doneDate.format(ae.dateFormat)}`:"";case"dueDate":return e.dueDate?t.options.shortMode?" "+m:` ${m} ${e.dueDate.format(ae.dateFormat)}`:"";case"recurrenceRule":return e.recurrence?t.options.shortMode?" "+f:` ${f} ${e.recurrence.toText()}`:"";case"blockLink":return(g=e.blockLink)!=null?g:"";default:throw new Error(`Don't know how to render task component of type '${n}'`)}}deserialize(e){let{prioritySymbols:t,TaskFormatRegularExpressions:n}=this.symbols,s,a="3",o=null,l=null,c=null,f=null,m=null,g="",T=null,E="",v=20,R=0;do{s=!1;let C=e.match(n.priorityRegex);if(C!==null){switch(C[1]){case t.Low:a="4";break;case t.Medium:a="2";break;case t.High:a="1";break}e=e.replace(n.priorityRegex,"").trim(),s=!0}let q=e.match(n.doneDateRegex);q!==null&&(f=window.moment(q[1],ae.dateFormat),e=e.replace(n.doneDateRegex,"").trim(),s=!0);let $=e.match(n.dueDateRegex);$!==null&&(c=window.moment($[1],ae.dateFormat),e=e.replace(n.dueDateRegex,"").trim(),s=!0);let B=e.match(n.scheduledDateRegex);B!==null&&(l=window.moment(B[1],ae.dateFormat),e=e.replace(n.scheduledDateRegex,"").trim(),s=!0);let me=e.match(n.startDateRegex);me!==null&&(o=window.moment(me[1],ae.dateFormat),e=e.replace(n.startDateRegex,"").trim(),s=!0);let fe=e.match(n.createdDateRegex);fe!==null&&(m=window.moment(fe[1],ae.dateFormat),e=e.replace(n.createdDateRegex,"").trim(),s=!0);let ve=e.match(n.recurrenceRegex);ve!==null&&(g=ve[1].trim(),e=e.replace(n.recurrenceRegex,"").trim(),s=!0);let ee=e.match(ae.hashTagsFromEnd);if(ee!=null){e=e.replace(ae.hashTagsFromEnd,"").trim(),s=!0;let te=ee[0].trim();E=E.length>0?[te,E].join(" "):te}R++}while(s&&R<=v);return g.length>0&&(T=Et.fromText({recurrenceRuleText:g,startDate:o,scheduledDate:l,dueDate:c})),E.length>0&&(e+=" "+E),{description:e,priority:a,startDate:o,createdDate:m,scheduledDate:l,dueDate:c,doneDate:f,recurrence:T,tags:$e.extractHashtags(e)}}};var kr=(o=>(o.TODO="TODO",o.DONE="DONE",o.IN_PROGRESS="IN_PROGRESS",o.CANCELLED="CANCELLED",o.NON_TASK="NON_TASK",o.EMPTY="EMPTY",o))(kr||{}),St=class{constructor(e,t,n,s,a="TODO"){this.symbol=e,this.name=t,this.nextStatusSymbol=n,this.availableAsCommand=s,this.type=a}};var Zt=class{get symbol(){return this.configuration.symbol}get name(){return this.configuration.name}get nextStatusSymbol(){return this.configuration.nextStatusSymbol}get availableAsCommand(){return this.configuration.availableAsCommand}get type(){return this.configuration.type}constructor(e){this.configuration=e}static makeDone(){return new Zt(new St("x","Done"," ",!0,"DONE"))}static makeEmpty(){return new Zt(new St("","EMPTY","",!0,"EMPTY"))}static makeTodo(){return new Zt(new St(" ","Todo","x",!0,"TODO"))}static makeCancelled(){return new Zt(new St("-","Cancelled"," ",!0,"CANCELLED"))}static makeInProgress(){return new Zt(new St("/","In Progress","x",!0,"IN_PROGRESS"))}static getTypeForUnknownSymbol(e){switch(e){case"x":case"X":return"DONE";case"/":return"IN_PROGRESS";case"-":return"CANCELLED";case"":return"EMPTY";case" ":default:return"TODO"}}static getTypeFromStatusTypeString(e){return kr[e]||"TODO"}static createUnknownStatus(e){return new Zt(new St(e,"Unknown","x",!1,"TODO"))}static createFromImportedValue(e){let t=e[0],n=Zt.getTypeFromStatusTypeString(e[3]);return new Zt(new St(t,e[1],e[2],!1,n))}isCompleted(){return this.type==="DONE"}previewText(){let e="";return Zt.tasksPluginCanCreateCommandsForStatuses()&&this.availableAsCommand&&(e=" Available as a command."),`- [${this.symbol}] => [${this.nextStatusSymbol}], name: '${this.name}', type: '${this.configuration.type}'.${e}`}static tasksPluginCanCreateCommandsForStatuses(){return!1}},pe=Zt;pe.DONE=Zt.makeDone(),pe.EMPTY=Zt.makeEmpty(),pe.TODO=Zt.makeTodo();var ku=class{constructor(e=!1,t=!1){this.ignoreSortInstructions=e,this.showTaskHiddenData=t}};var pt=class{constructor(){this.coreStatuses=[pe.makeTodo().configuration,pe.makeDone().configuration],this.customStatuses=[pe.makeInProgress().configuration,pe.makeCancelled().configuration]}static addStatus(e,t){e.push(t)}static replaceStatus(e,t,n){let s=this.findStatusIndex(t,e);return s<=-1?!1:(e.splice(s,1,n),!0)}static findStatusIndex(e,t){let n=new pe(e);return t.findIndex(s=>new pe(s).previewText()==n.previewText())}static deleteStatus(e,t){let n=this.findStatusIndex(t,e);return n<=-1?!1:(e.splice(n,1),!0)}static deleteAllCustomStatuses(e){e.customStatuses.splice(0)}static resetAllCustomStatuses(e){pt.deleteAllCustomStatuses(e),new pt().customStatuses.forEach(n=>{pt.addStatus(e.customStatuses,n)})}static bulkAddStatusCollection(e,t){let n=[];return t.forEach(s=>{e.customStatuses.find(o=>o.symbol==s[0]&&o.name==s[1]&&o.nextStatusSymbol==s[2])?n.push(`The status ${s[1]} (${s[0]}) is already added.`):pt.addStatus(e.customStatuses,pe.createFromImportedValue(s))}),n}static applyToStatusRegistry(e,t){t.clearStatuses(),e.coreStatuses.forEach(n=>{t.add(n)}),e.customStatuses.forEach(n=>{t.add(n)})}};var Pb=[{index:9999,internalName:"INTERNAL_TESTING_ENABLED_BY_DEFAULT",displayName:"Test Item. Used to validate the Feature Framework.",description:"Description",enabledByDefault:!0,stable:!1}];var Br=class{constructor(e,t,n,s,a,o){this.internalName=e;this.index=t;this.description=n;this.displayName=s;this.enabledByDefault=a;this.stable=o}static get values(){let e=[];return Pb.forEach(t=>{e=[...e,new Br(t.internalName,t.index,t.description,t.displayName,t.enabledByDefault,t.stable)]}),e}static get settingsFlags(){let e={};return Br.values.forEach(t=>{e[t.internalName]=t.enabledByDefault}),e}static fromString(e){for(let t of Br.values)if(e===t.internalName)return t;throw new RangeError(`Illegal argument passed to fromString(): ${e} does not correspond to any available Feature ${this.prototype.constructor.name}`)}};var ci={tasksPluginEmoji:{displayName:"Default",taskSerializer:new Ga(Mh),buildSuggestions:Rb(Mh)}},kI={globalFilter:"",removeGlobalFilter:!1,taskFormat:"tasksPluginEmoji",setCreatedDate:!1,setDoneDate:!0,autoSuggestInEditor:!0,autoSuggestMinMatch:0,autoSuggestMaxItems:6,provideAccessKeys:!0,useFilenameAsScheduledDate:!1,filenameAsDateFolders:[],statusSettings:new pt,features:Br.settingsFlags,generalSettings:{},headingOpened:{},debugSettings:new ku},jn=Ce({},kI),se=()=>{for(let r in Br.settingsFlags)jn.features[r]===void 0&&(jn.features[r]=Br.settingsFlags[r]);return jn.statusSettings.customStatuses.forEach((r,e,t)=>{var s,a;let n=pe.getTypeFromStatusTypeString(r.type);t[e]=new St((s=r.symbol)!=null?s:" ",r.name,(a=r.nextStatusSymbol)!=null?a:"x",r.availableAsCommand,n)}),Ce({},jn)},Gt=r=>(jn=Ce(Ce({},jn),r),se());var Ts=(r,e)=>(jn.generalSettings[r]=e,se()),xb=r=>{var e;return(e=jn.features[r])!=null?e:!1};function za(){return ci[se().taskFormat]}var Be=class{constructor(){this._registeredStatuses=[];this.addDefaultStatusTypes()}get registeredStatuses(){return this._registeredStatuses.filter(({symbol:e})=>e!==pe.EMPTY.symbol)}static getInstance(){return Be.instance||(Be.instance=new Be),Be.instance}add(e){this.hasSymbol(e.symbol)||(e instanceof pe?this._registeredStatuses.push(e):this._registeredStatuses.push(new pe(e)))}bySymbol(e){return this.hasSymbol(e)?this.getSymbol(e):pe.EMPTY}bySymbolOrCreate(e){return this.hasSymbol(e)?this.getSymbol(e):pe.createUnknownStatus(e)}byName(e){return this._registeredStatuses.filter(({name:t})=>t===e).length>0?this._registeredStatuses.filter(({name:t})=>t===e)[0]:pe.EMPTY}resetToDefaultStatuses(){this.clearStatuses(),this.addDefaultStatusTypes()}clearStatuses(){this._registeredStatuses=[]}getNextStatus(e){if(e.nextStatusSymbol!==""){let t=this.bySymbol(e.nextStatusSymbol);if(t!==null)return t}return pe.EMPTY}getNextStatusOrCreate(e){let t=this.getNextStatus(e);return t.type!=="EMPTY"?t:pe.createUnknownStatus(e.nextStatusSymbol)}findUnknownStatuses(e){let t=e.filter(a=>!this.hasSymbol(a.symbol)),n=new Be,s=[];return t.forEach(a=>{if(n.hasSymbol(a.symbol))return;let o=Be.copyStatusWithNewName(a,`Unknown (${a.symbol})`);s.push(o),n.add(o)}),s}static copyStatusWithNewName(e,t){let n=new St(e.symbol,t,e.nextStatusSymbol,e.availableAsCommand,e.type);return new pe(n)}getSymbol(e){return this._registeredStatuses.filter(({symbol:t})=>t===e)[0]}hasSymbol(e){return this._registeredStatuses.find(t=>t.symbol===e)!==void 0}addDefaultStatusTypes(){[pe.makeTodo(),pe.makeInProgress(),pe.makeDone(),pe.makeCancelled()].forEach(t=>{this.add(t)})}};var mn=class{static calculate(e){let t=0;if(e.dueDate!==null){let n=Math.round(window.moment().diff(e.dueDate)/mn.milliSecondsPerDay),s;n>=7?s=1:n>=-14?s=(n+14)*.8/21+.2:s=.2,t+=s*mn.dueCoefficient}switch(e.scheduledDate!==null&&window.moment().isSameOrAfter(e.scheduledDate)&&(t+=1*mn.scheduledCoefficient),e.startDate!==null&&window.moment().isBefore(e.startDate)&&(t+=1*mn.startedCoefficient),e.priority){case"1":t+=1*mn.priorityCoefficient;break;case"2":t+=.65*mn.priorityCoefficient;break;case"3":t+=.325*mn.priorityCoefficient;break}return t}},pn=mn;pn.dueCoefficient=12,pn.scheduledCoefficient=5,pn.startedCoefficient=-3,pn.priorityCoefficient=6,pn.milliSecondsPerDay=1e3*60*60*24;var Wb=require("obsidian");var Ka=require("obsidian");var Ib=ns(Th()),DI=require("obsidian"),Fb=ns(Cb());var Rh=class extends Fb.EventEmitter2{constructor(){super(...arguments);this.options={minLevels:{"":"info",tasks:"info"}};this.consoleLoggerRegistered=!1;this.arrAvg=t=>t.reduce((n,s)=>n+s,0)/t.length}configure(t){return this.options=Object.assign({},this.options,t),this}getLogger(t){let n="none",s="";for(let a in this.options.minLevels)t.startsWith(a)&&a.length>=s.length&&(n=this.options.minLevels[a],s=a);return new Ph(this,t,n)}onLogEntry(t){return this.on("log",t),this}registerConsoleLogger(){return this.consoleLoggerRegistered?this:(this.onLogEntry(t=>{let n=`[${(0,Ib.default)().format("YYYY-MM-DD-HH:mm:ss.SSS")}][${t.level}][${t.module}]`;switch(t.traceId&&(n+=`[${t.traceId}]`),n+=` ${t.message}`,t.objects===void 0&&(t.objects=""),t.level){case"trace":console.trace(n,t.objects);break;case"debug":console.debug(n,t.objects);break;case"info":console.info(n,t.objects);break;case"warn":console.warn(n,t.objects);break;case"error":console.error(n,t.objects);break;default:console.log(`{${t.level}} ${n}`,t.objects)}}),this.consoleLoggerRegistered=!0,this)}},Du=new Rh,Ph=class{constructor(e,t,n){this.levels={trace:1,debug:2,info:3,warn:4,error:5};this.logManager=e,this.module=t,this.minLevel=this.levelToInt(n)}levelToInt(e){return e.toLowerCase()in this.levels?this.levels[e.toLowerCase()]:99}log(e,t,n){if(this.levelToInt(e){Ah=r,Nh=e,Ch=t},Eu=t=>J(void 0,[t],function*({originalTask:r,newTasks:e}){if(Nh===void 0||Ah===void 0||Ch===void 0){Ih("Tasks: cannot use File before initializing it.");return}Array.isArray(e)||(e=[e]),Va.debug(`replaceTaskWithTasks entered. ${r.path}`),Yb({originalTask:r,newTasks:e,vault:Nh,metadataCache:Ah,workspace:Ch,previousTries:0})});function Ih(r){console.error(r),new Ka.Notice(r,15e3)}function xh(r){console.warn(r),new Ka.Notice(r,1e4)}function SI(r){Va.debug(r)}var Yb=o=>J(void 0,[o],function*({originalTask:r,newTasks:e,vault:t,metadataCache:n,workspace:s,previousTries:a}){Va.debug(`tryRepetitive after ${a} previous tries`);let l=()=>{if(a>10){let C=`Tasks: Could not find the correct task line to update. +`).map(function(s){return s.replace(/^RRULE:/,"EXRULE:")}).filter(function(s){return!/^DTSTART/.test(s)}))}),this._rdate.length&&t.push(xb("RDATE",this._rdate,this.tzid())),this._exdate.length&&t.push(xb("EXDATE",this._exdate,this.tzid())),t},e.prototype.toString=function(){return this.valueOf().join(` +`)},e.prototype.clone=function(){var t=new e(!!this._cache);return this._rrule.forEach(function(n){return t.rrule(n.clone())}),this._exrule.forEach(function(n){return t.exrule(n.clone())}),this._rdate.forEach(function(n){return t.rdate(new Date(n.getTime()))}),this._exdate.forEach(function(n){return t.exdate(new Date(n.getTime()))}),t},e}(X);function Mb(r,e){if(!(r instanceof X))throw new TypeError(String(r)+" is not RRule instance");Ee(e.map(String),String(r))||e.push(r)}function Rb(r,e){if(!(r instanceof Date))throw new TypeError(String(r)+" is not Date instance");Ee(e.map(Number),Number(r))||(e.push(r),se.sort(e))}function xb(r,e,t){var n=!t||t.toUpperCase()==="UTC",s=n?"".concat(r,":"):"".concat(r,";TZID=").concat(t,":"),a=e.map(function(o){return se.timeToUntilString(o.valueOf(),n)}).join(",");return"".concat(s).concat(a)}function Hr(r,e){return r!==null&&e===null?-1:r===null&&e!==null?1:r!==null&&e!==null?r.isValid()&&!e.isValid()?-1:!r.isValid()&&e.isValid()||r.isAfter(e)?1:r.isBefore(e)?-1:0:0}var Ot=class{constructor({rrule:e,baseOnToday:t,referenceDate:n,startDate:s,scheduledDate:a,dueDate:o}){this.rrule=e,this.baseOnToday=t,this.referenceDate=n,this.startDate=s,this.scheduledDate=a,this.dueDate=o}static fromText({recurrenceRuleText:e,startDate:t,scheduledDate:n,dueDate:s}){try{let a=e.match(/^([a-zA-Z0-9, !]+?)( when done)?$/i);if(a==null)return null;let o=a[1].trim(),l=a[2]!==void 0,c=X.parseText(o);if(c!==null){let f=null;s?f=window.moment(s):n?f=window.moment(n):t&&(f=window.moment(t)),!l&&f!==null?c.dtstart=window.moment(f).startOf("day").utc(!0).toDate():c.dtstart=window.moment().startOf("day").utc(!0).toDate();let m=new X(c);return new Ot({rrule:m,baseOnToday:l,referenceDate:f,startDate:t,scheduledDate:n,dueDate:s})}}catch(a){}return null}toText(){let e=this.rrule.toText();return this.baseOnToday&&(e+=" when done"),e}next(){var t;let e;if(this.baseOnToday){let n=window.moment(),s=new X(rr(Ne({},this.rrule.origOptions),{dtstart:n.startOf("day").utc(!0).toDate()}));e=this.nextAfter(n.endOf("day"),s)}else{let n=window.moment((t=this.referenceDate)!=null?t:void 0).endOf("day");e=this.nextAfter(n,this.rrule)}if(e!==null){let n=null,s=null,a=null;if(this.referenceDate){if(this.startDate){let o=window.moment.duration(this.startDate.diff(this.referenceDate));n=window.moment(e),n.add(Math.round(o.asDays()),"days")}if(this.scheduledDate){let o=window.moment.duration(this.scheduledDate.diff(this.referenceDate));s=window.moment(e),s.add(Math.round(o.asDays()),"days")}if(this.dueDate){let o=window.moment.duration(this.dueDate.diff(this.referenceDate));a=window.moment(e),a.add(Math.round(o.asDays()),"days")}}return{startDate:n,scheduledDate:s,dueDate:a}}return null}identicalTo(e){return this.baseOnToday!==e.baseOnToday||Hr(this.startDate,e.startDate)!==0||Hr(this.scheduledDate,e.scheduledDate)!==0||Hr(this.dueDate,e.dueDate)!==0?!1:this.toText()===e.toText()}nextAfter(e,t){e.utc(!0);let n=window.moment(t.after(e.toDate())),s=this.toText(),a=s.match(/every( \d+)? month(s)?(.*)?/);a!==null&&(s.includes(" on ")||(n=Ot.nextAfterMonths(e,n,t,a[1])));let o=s.match(/every( \d+)? year(s)?(.*)?/);return o!==null&&(n=Ot.nextAfterYears(e,n,t,o[1])),Ot.addTimezone(n).toDate()}static nextAfterMonths(e,t,n,s){let a=1;for(s!==void 0&&(a=Number.parseInt(s.trim(),10));Ot.isSkippingTooManyMonths(e,t,a);)t=Ot.fromOneDayEarlier(e,n);return t}static isSkippingTooManyMonths(e,t,n){let s=t.month()-e.month();return s+=(t.year()-e.year())*12,s>n}static nextAfterYears(e,t,n,s){let a=1;for(s!==void 0&&(a=Number.parseInt(s.trim(),10));Ot.isSkippingTooManyYears(e,t,a);)t=Ot.fromOneDayEarlier(e,n);return t}static isSkippingTooManyYears(e,t,n){return t.year()-e.year()>n}static fromOneDayEarlier(e,t){e.subtract(1,"days").endOf("day");let n=t.origOptions;return n.dtstart=e.startOf("day").toDate(),t=new X(n),window.moment(t.after(e.toDate()))}static addTimezone(e){return window.moment.utc(e).local(!0).startOf("day")}};function Pb(r){let e=`${r.startDateSymbol}${r.scheduledDateSymbol}${r.dueDateSymbol}`;return(t,n,s)=>{let a=[];a=a.concat(wI(t,n,s,e)),a=a.concat(DI(t,n,s,r.recurrenceSymbol));let o=vI(t,s,r),l=Rh(t,/([a-zA-Z'_-]*)/g,n),c=!1;if(l&&l.length>0){let f=l[0];if(f.length>=Math.max(1,s.autoSuggestMinMatch)){let m=o.filter(g=>g.displayText.toLowerCase().includes(f.toLowerCase()));for(let g of m)a.push({suggestionType:"match",displayText:g.displayText,appendText:g.appendText,insertAt:l.index,insertSkip:f.length}),c=!0}}return!c&&s.autoSuggestMinMatch===0&&(a=a.concat(o)),a.length>0&&!a.some(f=>f.suggestionType==="match")&&a.unshift({suggestionType:"empty",displayText:"\u23CE",appendText:` +`}),a=a.slice(0,s.autoSuggestMaxItems),a}}function vI(r,e,t){let n=a=>Object.values(t.prioritySymbols).some(o=>o.length>0&&a.includes(o)),s=[];return r.includes(t.dueDateSymbol)||s.push({displayText:`${t.dueDateSymbol} due date`,appendText:`${t.dueDateSymbol} `}),r.includes(t.startDateSymbol)||s.push({displayText:`${t.startDateSymbol} start date`,appendText:`${t.startDateSymbol} `}),r.includes(t.scheduledDateSymbol)||s.push({displayText:`${t.scheduledDateSymbol} scheduled date`,appendText:`${t.scheduledDateSymbol} `}),n(r)||(s.push({displayText:`${t.prioritySymbols.High} high priority`,appendText:`${t.prioritySymbols.High} `}),s.push({displayText:`${t.prioritySymbols.Medium} medium priority`,appendText:`${t.prioritySymbols.Medium} `}),s.push({displayText:`${t.prioritySymbols.Low} low priority`,appendText:`${t.prioritySymbols.Low} `})),r.includes(t.recurrenceSymbol)||s.push({displayText:`${t.recurrenceSymbol} recurring (repeat)`,appendText:`${t.recurrenceSymbol} `}),s}function wI(r,e,t,n){let s=["today","tomorrow","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","next week","next month","next year"],a=[],o=new RegExp(`([${n}])\\s*([0-9a-zA-Z ]*)`,"ug"),l=Rh(r,o,e);if(l&&l.length>=2){let c=l[1],f=l[2];if(f.length1?Xt.parseDate(oi(f),!0):null;m&&m.isValid()&&a.push({displayText:`${m.format(ie.dateFormat)}`,appendText:`${c} ${m.format(ie.dateFormat)} `,insertAt:l.index,insertSkip:l[0].length});let g=1,T=5,S=s.filter(v=>f&&f.length>=g&&v.toLowerCase().includes(f.toLowerCase())).slice(0,T);S.length===0&&(S=s.slice(0,T));for(let v of S){let C=`${Xt.parseDate(v,!0).format(ie.dateFormat)}`;a.push({suggestionType:"match",displayText:`${v} (${C})`,appendText:`${c} ${C} `,insertAt:l.index,insertSkip:l[0].length})}}return a}function DI(r,e,t,n){var c;let s=["every","every day","every week","every month","every month on the","every year","every week on Sunday","every week on Monday","every week on Tuesday","every week on Wednesday","every week on Thursday","every week on Friday","every week on Saturday"],a=[],o=new RegExp(`(${n})\\s*([0-9a-zA-Z ]*)`,"ug"),l=Rh(r,o,e);if(l&&l.length>=2){let f=l[1],m=l[2];if(m.length0){let v=(c=Ot.fromText({recurrenceRuleText:m,startDate:null,scheduledDate:null,dueDate:null}))==null?void 0:c.toText();if(v){let R=`${f} ${v} `;if(a.push({suggestionType:"match",displayText:`\u2705 ${v}`,appendText:R,insertAt:l.index,insertSkip:l[0].length}),l[0]==R)return[]}}let g=1,T=t.autoSuggestMaxItems/2,S=s.filter(v=>m&&m.length>=g&&v.toLowerCase().includes(m.toLowerCase())).slice(0,T);S.length===0&&m.trim().length===0&&(S=s.slice(0,T));for(let v of S)a.push({suggestionType:"match",displayText:`${v}`,appendText:`${f} ${v} `,insertAt:l.index,insertSkip:l[0].length})}return a}function Rh(r,e,t){let n=r.matchAll(e);for(let s of n)if((s==null?void 0:s.index)&&s.index<=t&&t<=s.index+s[0].length)return s;return[]}var Ha=class{constructor(){this.hideTaskCount=!1;this.hideBacklinks=!1;this.hidePriority=!1;this.hideCreatedDate=!1;this.hideStartDate=!1;this.hideScheduledDate=!1;this.hideDoneDate=!1;this.hideDueDate=!1;this.hideRecurrenceRule=!1;this.hideEditButton=!1;this.hideUrgency=!0;this.shortMode=!1;this.explainQuery=!1}},Bn=class{constructor(e,t){this.defaultLayout=["description","priority","recurrenceRule","createdDate","startDate","scheduledDate","dueDate","doneDate","blockLink"];this.hiddenComponents=[];this.specificClasses=[];e?this.options=e:this.options=new Ha,t?this.layoutComponents=t:this.layoutComponents=this.defaultLayout,this.layoutComponents=this.applyOptions(this.options)}applyOptions(e){let t=(s,a,o)=>a?(this.specificClasses.push(`tasks-layout-hide-${o}`),this.hiddenComponents.push(o),s.filter(l=>l!=o)):s,n=this.layoutComponents;return n=t(n,e.hidePriority,"priority"),n=t(n,e.hideRecurrenceRule,"recurrenceRule"),n=t(n,e.hideCreatedDate,"createdDate"),n=t(n,e.hideStartDate,"startDate"),n=t(n,e.hideScheduledDate,"scheduledDate"),n=t(n,e.hideDueDate,"dueDate"),n=t(n,e.hideDoneDate,"doneDate"),e.shortMode&&this.specificClasses.push("tasks-layout-short-mode"),n}};var xh={prioritySymbols:{High:"\u23EB",Medium:"\u{1F53C}",Low:"\u{1F53D}",None:""},startDateSymbol:"\u{1F6EB}",createdDateSymbol:"\u2795",scheduledDateSymbol:"\u23F3",dueDateSymbol:"\u{1F4C5}",doneDateSymbol:"\u2705",recurrenceSymbol:"\u{1F501}",TaskFormatRegularExpressions:{priorityRegex:/([⏫🔼🔽])$/u,startDateRegex:/🛫 *(\d{4}-\d{2}-\d{2})$/u,createdDateRegex:/➕ *(\d{4}-\d{2}-\d{2})$/u,scheduledDateRegex:/[⏳⌛] *(\d{4}-\d{2}-\d{2})$/u,dueDateRegex:/[📅📆🗓] *(\d{4}-\d{2}-\d{2})$/u,doneDateRegex:/✅ *(\d{4}-\d{2}-\d{2})$/u,recurrenceRegex:/🔁 ?([a-zA-Z0-9, !]+)$/iu}},za=class{constructor(e){this.symbols=e}serialize(e){let t=new Bn,n="";for(let s of t.layoutComponents)n+=this.componentToString(e,t,s);return n}componentToString(e,t,n){var g;let{prioritySymbols:s,startDateSymbol:a,createdDateSymbol:o,scheduledDateSymbol:l,doneDateSymbol:c,recurrenceSymbol:f,dueDateSymbol:m}=this.symbols;switch(n){case"description":return e.description;case"priority":{let T="";return e.priority==="1"?T=" "+s.High:e.priority==="2"?T=" "+s.Medium:e.priority==="4"&&(T=" "+s.Low),T}case"startDate":return e.startDate?t.options.shortMode?" "+a:` ${a} ${e.startDate.format(ie.dateFormat)}`:"";case"createdDate":return e.createdDate?t.options.shortMode?" "+o:` ${o} ${e.createdDate.format(ie.dateFormat)}`:"";case"scheduledDate":return!e.scheduledDate||e.scheduledDateIsInferred?"":t.options.shortMode?" "+l:` ${l} ${e.scheduledDate.format(ie.dateFormat)}`;case"doneDate":return e.doneDate?t.options.shortMode?" "+c:` ${c} ${e.doneDate.format(ie.dateFormat)}`:"";case"dueDate":return e.dueDate?t.options.shortMode?" "+m:` ${m} ${e.dueDate.format(ie.dateFormat)}`:"";case"recurrenceRule":return e.recurrence?t.options.shortMode?" "+f:` ${f} ${e.recurrence.toText()}`:"";case"blockLink":return(g=e.blockLink)!=null?g:"";default:throw new Error(`Don't know how to render task component of type '${n}'`)}}deserialize(e){let{prioritySymbols:t,TaskFormatRegularExpressions:n}=this.symbols,s,a="3",o=null,l=null,c=null,f=null,m=null,g="",T=null,S="",v=20,R=0;do{s=!1;let C=e.match(n.priorityRegex);if(C!==null){switch(C[1]){case t.Low:a="4";break;case t.Medium:a="2";break;case t.High:a="1";break}e=e.replace(n.priorityRegex,"").trim(),s=!0}let $=e.match(n.doneDateRegex);$!==null&&(f=window.moment($[1],ie.dateFormat),e=e.replace(n.doneDateRegex,"").trim(),s=!0);let B=e.match(n.dueDateRegex);B!==null&&(c=window.moment(B[1],ie.dateFormat),e=e.replace(n.dueDateRegex,"").trim(),s=!0);let W=e.match(n.scheduledDateRegex);W!==null&&(l=window.moment(W[1],ie.dateFormat),e=e.replace(n.scheduledDateRegex,"").trim(),s=!0);let De=e.match(n.startDateRegex);De!==null&&(o=window.moment(De[1],ie.dateFormat),e=e.replace(n.startDateRegex,"").trim(),s=!0);let Te=e.match(n.createdDateRegex);Te!==null&&(m=window.moment(Te[1],ie.dateFormat),e=e.replace(n.createdDateRegex,"").trim(),s=!0);let be=e.match(n.recurrenceRegex);be!==null&&(g=be[1].trim(),e=e.replace(n.recurrenceRegex,"").trim(),s=!0);let ee=e.match(ie.hashTagsFromEnd);if(ee!=null){e=e.replace(ie.hashTagsFromEnd,"").trim(),s=!0;let te=ee[0].trim();S=S.length>0?[te,S].join(" "):te}R++}while(s&&R<=v);return g.length>0&&(T=Ot.fromText({recurrenceRuleText:g,startDate:o,scheduledDate:l,dueDate:c})),S.length>0&&(e+=" "+S),{description:e,priority:a,startDate:o,createdDate:m,scheduledDate:l,dueDate:c,doneDate:f,recurrence:T,tags:Ge.extractHashtags(e)}}};var Er=(o=>(o.TODO="TODO",o.DONE="DONE",o.IN_PROGRESS="IN_PROGRESS",o.CANCELLED="CANCELLED",o.NON_TASK="NON_TASK",o.EMPTY="EMPTY",o))(Er||{}),Mt=class{constructor(e,t,n,s,a="TODO"){this.symbol=e,this.name=t,this.nextStatusSymbol=n,this.availableAsCommand=s,this.type=a}};var Qt=class{get symbol(){return this.configuration.symbol}get name(){return this.configuration.name}get nextStatusSymbol(){return this.configuration.nextStatusSymbol}get availableAsCommand(){return this.configuration.availableAsCommand}get type(){return this.configuration.type}constructor(e){this.configuration=e}static makeDone(){return new Qt(new Mt("x","Done"," ",!0,"DONE"))}static makeEmpty(){return new Qt(new Mt("","EMPTY","",!0,"EMPTY"))}static makeTodo(){return new Qt(new Mt(" ","Todo","x",!0,"TODO"))}static makeCancelled(){return new Qt(new Mt("-","Cancelled"," ",!0,"CANCELLED"))}static makeInProgress(){return new Qt(new Mt("/","In Progress","x",!0,"IN_PROGRESS"))}static getTypeForUnknownSymbol(e){switch(e){case"x":case"X":return"DONE";case"/":return"IN_PROGRESS";case"-":return"CANCELLED";case"":return"EMPTY";case" ":default:return"TODO"}}static getTypeFromStatusTypeString(e){return Er[e]||"TODO"}static createUnknownStatus(e){return new Qt(new Mt(e,"Unknown","x",!1,"TODO"))}static createFromImportedValue(e){let t=e[0],n=Qt.getTypeFromStatusTypeString(e[3]);return new Qt(new Mt(t,e[1],e[2],!1,n))}isCompleted(){return this.type==="DONE"}previewText(){let e="";return Qt.tasksPluginCanCreateCommandsForStatuses()&&this.availableAsCommand&&(e=" Available as a command."),`- [${this.symbol}] => [${this.nextStatusSymbol}], name: '${this.name}', type: '${this.configuration.type}'.${e}`}static tasksPluginCanCreateCommandsForStatuses(){return!1}},fe=Qt;fe.DONE=Qt.makeDone(),fe.EMPTY=Qt.makeEmpty(),fe.TODO=Qt.makeTodo();var Eu=class{constructor(e=!1,t=!1){this.ignoreSortInstructions=e,this.showTaskHiddenData=t}};var yt=class{constructor(){this.coreStatuses=[fe.makeTodo().configuration,fe.makeDone().configuration],this.customStatuses=[fe.makeInProgress().configuration,fe.makeCancelled().configuration]}static addStatus(e,t){e.push(t)}static replaceStatus(e,t,n){let s=this.findStatusIndex(t,e);return s<=-1?!1:(e.splice(s,1,n),!0)}static findStatusIndex(e,t){let n=new fe(e);return t.findIndex(s=>new fe(s).previewText()==n.previewText())}static deleteStatus(e,t){let n=this.findStatusIndex(t,e);return n<=-1?!1:(e.splice(n,1),!0)}static deleteAllCustomStatuses(e){e.customStatuses.splice(0)}static resetAllCustomStatuses(e){yt.deleteAllCustomStatuses(e),new yt().customStatuses.forEach(n=>{yt.addStatus(e.customStatuses,n)})}static bulkAddStatusCollection(e,t){let n=[];return t.forEach(s=>{e.customStatuses.find(o=>o.symbol==s[0]&&o.name==s[1]&&o.nextStatusSymbol==s[2])?n.push(`The status ${s[1]} (${s[0]}) is already added.`):yt.addStatus(e.customStatuses,fe.createFromImportedValue(s))}),n}static applyToStatusRegistry(e,t){t.clearStatuses(),e.coreStatuses.forEach(n=>{t.add(n)}),e.customStatuses.forEach(n=>{t.add(n)})}};var Ab=[{index:9999,internalName:"INTERNAL_TESTING_ENABLED_BY_DEFAULT",displayName:"Test Item. Used to validate the Feature Framework.",description:"Description",enabledByDefault:!0,stable:!1}];var zr=class{constructor(e,t,n,s,a,o){this.internalName=e;this.index=t;this.description=n;this.displayName=s;this.enabledByDefault=a;this.stable=o}static get values(){let e=[];return Ab.forEach(t=>{e=[...e,new zr(t.internalName,t.index,t.description,t.displayName,t.enabledByDefault,t.stable)]}),e}static get settingsFlags(){let e={};return zr.values.forEach(t=>{e[t.internalName]=t.enabledByDefault}),e}static fromString(e){for(let t of zr.values)if(e===t.internalName)return t;throw new RangeError(`Illegal argument passed to fromString(): ${e} does not correspond to any available Feature ${this.prototype.constructor.name}`)}};function Su(r){return r.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")}var Sr=class{static get(){let{globalFilter:e}=he();return e}static set(e){Ct({globalFilter:e})}static reset(){Ct({globalFilter:Sr.empty})}static isEmpty(){return Sr.get()===Sr.empty}static equals(e){return Sr.get()===e}static includedIn(e){let t=Sr.get();return e.includes(t)}static prependTo(e){return Sr.get()+" "+e}static removeAsWordFrom(e){if(Sr.isEmpty())return e;let t=RegExp("(^|\\s)"+Su(Sr.get())+"($|\\s)","ug");return e.search(t)>-1&&(e=e.replace(t,"$1$2").replace(" "," ").trim()),e}static removeAsSubstringFrom(e){let t=Sr.get();return e.replace(t,"").trim()}static removeAsSubstringFromDependingOnSettings(e){let{removeGlobalFilter:t}=he();return t?Sr.removeAsSubstringFrom(e):e}},Le=Sr;Le.empty="";var fi={tasksPluginEmoji:{displayName:"Default",taskSerializer:new za(xh),buildSuggestions:Pb(xh)}},EI={globalFilter:Le.empty,removeGlobalFilter:!1,taskFormat:"tasksPluginEmoji",setCreatedDate:!1,setDoneDate:!0,autoSuggestInEditor:!0,autoSuggestMinMatch:0,autoSuggestMaxItems:6,provideAccessKeys:!0,useFilenameAsScheduledDate:!1,filenameAsDateFolders:[],statusSettings:new yt,features:zr.settingsFlags,generalSettings:{},headingOpened:{},debugSettings:new Eu},Hn=Ne({},EI),he=()=>{for(let r in zr.settingsFlags)Hn.features[r]===void 0&&(Hn.features[r]=zr.settingsFlags[r]);return Hn.statusSettings.customStatuses.forEach((r,e,t)=>{var s,a;let n=fe.getTypeFromStatusTypeString(r.type);t[e]=new Mt((s=r.symbol)!=null?s:" ",r.name,(a=r.nextStatusSymbol)!=null?a:"x",r.availableAsCommand,n)}),Ne({},Hn)},Ct=r=>(Hn=Ne(Ne({},Hn),r),he());var ws=(r,e)=>(Hn.generalSettings[r]=e,he()),Cb=r=>{var e;return(e=Hn.features[r])!=null?e:!1};function Ka(){return fi[he().taskFormat]}var Be=class{constructor(){this._registeredStatuses=[];this.addDefaultStatusTypes()}get registeredStatuses(){return this._registeredStatuses.filter(({symbol:e})=>e!==fe.EMPTY.symbol)}static getInstance(){return Be.instance||(Be.instance=new Be),Be.instance}add(e){this.hasSymbol(e.symbol)||(e instanceof fe?this._registeredStatuses.push(e):this._registeredStatuses.push(new fe(e)))}bySymbol(e){return this.hasSymbol(e)?this.getSymbol(e):fe.EMPTY}bySymbolOrCreate(e){return this.hasSymbol(e)?this.getSymbol(e):fe.createUnknownStatus(e)}byName(e){return this._registeredStatuses.filter(({name:t})=>t===e).length>0?this._registeredStatuses.filter(({name:t})=>t===e)[0]:fe.EMPTY}resetToDefaultStatuses(){this.clearStatuses(),this.addDefaultStatusTypes()}clearStatuses(){this._registeredStatuses=[]}getNextStatus(e){if(e.nextStatusSymbol!==""){let t=this.bySymbol(e.nextStatusSymbol);if(t!==null)return t}return fe.EMPTY}getNextStatusOrCreate(e){let t=this.getNextStatus(e);return t.type!=="EMPTY"?t:fe.createUnknownStatus(e.nextStatusSymbol)}findUnknownStatuses(e){let t=e.filter(a=>!this.hasSymbol(a.symbol)),n=new Be,s=[];return t.forEach(a=>{if(n.hasSymbol(a.symbol))return;let o=Be.copyStatusWithNewName(a,`Unknown (${a.symbol})`);s.push(o),n.add(o)}),s}static copyStatusWithNewName(e,t){let n=new Mt(e.symbol,t,e.nextStatusSymbol,e.availableAsCommand,e.type);return new fe(n)}getSymbol(e){return this._registeredStatuses.filter(({symbol:t})=>t===e)[0]}hasSymbol(e){return this._registeredStatuses.find(t=>t.symbol===e)!==void 0}addDefaultStatusTypes(){[fe.makeTodo(),fe.makeInProgress(),fe.makeDone(),fe.makeCancelled()].forEach(t=>{this.add(t)})}};var _n=class{static calculate(e){let t=0;if(e.dueDate!==null){let n=Math.round(window.moment().diff(e.dueDate)/_n.milliSecondsPerDay),s;n>=7?s=1:n>=-14?s=(n+14)*.8/21+.2:s=.2,t+=s*_n.dueCoefficient}switch(e.scheduledDate!==null&&window.moment().isSameOrAfter(e.scheduledDate)&&(t+=1*_n.scheduledCoefficient),e.startDate!==null&&window.moment().isBefore(e.startDate)&&(t+=1*_n.startedCoefficient),e.priority){case"1":t+=1*_n.priorityCoefficient;break;case"2":t+=.65*_n.priorityCoefficient;break;case"3":t+=.325*_n.priorityCoefficient;break}return t}},gn=_n;gn.dueCoefficient=12,gn.scheduledCoefficient=5,gn.startedCoefficient=-3,gn.priorityCoefficient=6,gn.milliSecondsPerDay=1e3*60*60*24;var $b=require("obsidian");var Xa=require("obsidian");var Yb=os(vh()),SI=require("obsidian"),Ub=os(Lb());var Ph=class extends Ub.EventEmitter2{constructor(){super(...arguments);this.options={minLevels:{"":"info",tasks:"info"}};this.consoleLoggerRegistered=!1;this.arrAvg=t=>t.reduce((n,s)=>n+s,0)/t.length}configure(t){return this.options=Object.assign({},this.options,t),this}getLogger(t){let n="none",s="";for(let a in this.options.minLevels)t.startsWith(a)&&a.length>=s.length&&(n=this.options.minLevels[a],s=a);return new Ah(this,t,n)}onLogEntry(t){return this.on("log",t),this}registerConsoleLogger(){return this.consoleLoggerRegistered?this:(this.onLogEntry(t=>{let n=`[${(0,Yb.default)().format("YYYY-MM-DD-HH:mm:ss.SSS")}][${t.level}][${t.module}]`;switch(t.traceId&&(n+=`[${t.traceId}]`),n+=` ${t.message}`,t.objects===void 0&&(t.objects=""),t.level){case"trace":console.trace(n,t.objects);break;case"debug":console.debug(n,t.objects);break;case"info":console.info(n,t.objects);break;case"warn":console.warn(n,t.objects);break;case"error":console.error(n,t.objects);break;default:console.log(`{${t.level}} ${n}`,t.objects)}}),this.consoleLoggerRegistered=!0,this)}},Ou=new Ph,Ah=class{constructor(e,t,n){this.levels={trace:1,debug:2,info:3,warn:4,error:5};this.logManager=e,this.module=t,this.minLevel=this.levelToInt(n)}levelToInt(e){return e.toLowerCase()in this.levels?this.levels[e.toLowerCase()]:99}log(e,t,n){if(this.levelToInt(e){Ch=r,Ih=e,Fh=t},Mu=t=>J(void 0,[t],function*({originalTask:r,newTasks:e}){if(Ih===void 0||Ch===void 0||Fh===void 0){Lh("Tasks: cannot use File before initializing it.");return}Array.isArray(e)||(e=[e]),Za.debug(`replaceTaskWithTasks entered. ${r.path}`),qb({originalTask:r,newTasks:e,vault:Ih,metadataCache:Ch,workspace:Fh,previousTries:0})});function Lh(r){console.error(r),new Xa.Notice(r,15e3)}function Nh(r){console.warn(r),new Xa.Notice(r,1e4)}function MI(r){Za.debug(r)}var qb=o=>J(void 0,[o],function*({originalTask:r,newTasks:e,vault:t,metadataCache:n,workspace:s,previousTries:a}){Za.debug(`tryRepetitive after ${a} previous tries`);let l=()=>{if(a>10){let C=`Tasks: Could not find the correct task line to update. The task line not updated is: ${r.originalMarkdown} @@ -147,14 +147,14 @@ Recommendations: 1. Close all panes that have the above file open, and then re-open the file. 2. Check for exactly identical copies of the task line, in this file, and see if you can make them different. -`;Ih(C);return}let R=Math.min(Math.pow(10,a),100);Va.debug(`timeout = ${R}`),setTimeout(()=>{Yb({originalTask:r,newTasks:e,vault:t,metadataCache:n,workspace:s,previousTries:a+1})},R)},c=t.getAbstractFileByPath(r.path);if(!(c instanceof Ka.TFile))return xh(`Tasks: No file found for task ${r.description}. Retrying ...`),l();if(!EI.includes(c.extension)){Ih(`Tasks: Does not support files with the ${c.extension} file extension.`);return}let f=n.getFileCache(c);if(f==null||f===null)return xh(`Tasks: No file cache found for file ${c.path}. Retrying ...`),l();let m=f.listItems;if(m===void 0||m.length===0)return xh(`Tasks: No list items found in file cache of ${c.path}. Retrying ...`),l();let T=(yield t.read(c)).split(` -`),E=OI(r,T,m,SI);if(E===void 0)return l();let v=[...T.slice(0,E),...e.map(R=>R.toFileLineString()),...T.slice(E+1)];yield t.modify(c,v.join(` -`))});function Ub(r,e){return r{qb({originalTask:r,newTasks:e,vault:t,metadataCache:n,workspace:s,previousTries:a+1})},R)},c=t.getAbstractFileByPath(r.path);if(!(c instanceof Xa.TFile))return Nh(`Tasks: No file found for task ${r.description}. Retrying ...`),l();if(!OI.includes(c.extension)){Lh(`Tasks: Does not support files with the ${c.extension} file extension.`);return}let f=n.getFileCache(c);if(f==null||f===null)return Nh(`Tasks: No file cache found for file ${c.path}. Retrying ...`),l();let m=f.listItems;if(m===void 0||m.length===0)return Nh(`Tasks: No list items found in file cache of ${c.path}. Retrying ...`),l();let T=(yield t.read(c)).split(` +`),S=RI(r,T,m,MI);if(S===void 0)return l();let v=[...T.slice(0,S),...e.map(R=>R.toFileLineString()),...T.slice(S+1)];yield t.modify(c,v.join(` +`))});function jb(r,e){return r{c.preventDefault(),c.stopPropagation(),o.disabled=!0;let f=r.toggle();Eu({originalTask:r,newTasks:f})}),n.prepend(o),n.setAttribute("data-task",r.status.symbol.trim()),n.setAttribute("data-line",e.listIndex.toString()),n.setAttribute("data-task-status-name",r.status.name),n.setAttribute("data-task-status-type",r.status.type),o.setAttribute("data-line",e.listIndex.toString()),(l=e.layoutOptions)!=null&&l.shortMode&&UI({task:r,element:s,isFilenameUnique:e.isFilenameUnique}),n})}function CI(r,e,t,n){return J(this,null,function*(){let s={},a=new qn(e.layoutOptions),o=ci.tasksPluginEmoji.taskSerializer;for(let l of a.layoutComponents){let c=o.componentToString(r,a,l);if(c){l==="description"&&(c=WI(c));let f=document.createElement("span");if(t.appendChild(f),f){let m=document.createElement("span");f.appendChild(m),yield II(m,c,l,r,n);let[g,T]=Fh(l,r);FI(l,m),f.classList.add(...g);for(let E in T)f.dataset[E]=T[E];s=Ce(Ce({},s),T)}}}for(let l of a.hiddenComponents){let[c,f]=Fh(l,r);s=Ce(Ce({},s),f)}if(s.taskPriority===void 0){let[l,c]=Fh("priority",r);s=Ce(Ce({},s),c)}return s})}function II(r,e,t,n,s){return J(this,null,function*(){if(t==="description"){let{debugSettings:a}=se();a.showTaskHiddenData&&(e+=`
\u{1F41B} ${n.lineNumber} . ${n.sectionStart} . ${n.sectionIndex} . '${n.originalMarkdown}'
'${n.path}' > '${n.precedingHeader}'
`),yield s(e,r,n.path);let o=r.querySelector("blockquote"),l=o!=null?o:r,c=l.querySelector("p");if(c!==null){for(;c.firstChild;)l.insertBefore(c.firstChild,c);c.remove()}r.querySelectorAll("p").forEach(f=>{f.hasChildNodes()||f.remove()}),r.querySelectorAll(".footnotes").forEach(f=>{f.remove()})}else r.innerHTML=e})}function Fh(r,e){let t=[],n={},s=(a,o)=>{let l=LI(a);l&&(n[o]=l)};switch(r){case"description":t.push($n.description);break;case"priority":{let a=null;e.priority==="1"?a="high":e.priority==="2"?a="medium":e.priority==="4"?a="low":a="normal",n.taskPriority=a,t.push($n.priority);break}case"createdDate":{let a=e.createdDate;a&&(t.push($n.createdDate),s(a,"taskCreated"));break}case"dueDate":{let a=e.dueDate;a&&(t.push($n.dueDate),s(a,"taskDue"));break}case"startDate":{let a=e.startDate;a&&(t.push($n.startDate),s(a,"taskStart"));break}case"scheduledDate":{let a=e.scheduledDate;a&&(t.push($n.scheduledDate),s(a,"taskScheduled"));break}case"doneDate":{let a=e.doneDate;a&&(t.push($n.doneDate),s(a,"taskDone"));break}case"recurrenceRule":{t.push($n.recurrenceRule);break}}return[t,n]}function FI(r,e){if(r==="description"){let t=e.getElementsByClassName("tag");for(let n=0;n0?t+="past-":n<0&&(t+="future-"),Math.abs(n)<=xI?t+=Math.abs(n).toString()+"d":t+=AI,t)}function YI(r){let e=/["&\x00\r\n]/g,t=r.replace(e,"-");return t=t.replace(/^[-_]+/,""),t.length>0?t:null}function UI({task:r,element:e,isFilenameUnique:t}){let{recurrenceSymbol:n,startDateSymbol:s,createdDateSymbol:a,scheduledDateSymbol:o,dueDateSymbol:l,doneDateSymbol:c}=ci.tasksPluginEmoji.taskSerializer.symbols;e.addEventListener("mouseenter",()=>{let f=e.createDiv();f.addClasses(["tooltip","pop-up"]),r.recurrence&&f.createDiv().setText(`${n} ${r.recurrence.toText()}`),r.createdDate&&f.createDiv().setText(Za({signifier:a,date:r.createdDate})),r.startDate&&f.createDiv().setText(Za({signifier:s,date:r.startDate})),r.scheduledDate&&f.createDiv().setText(Za({signifier:o,date:r.scheduledDate})),r.dueDate&&f.createDiv().setText(Za({signifier:l,date:r.dueDate})),r.doneDate&&f.createDiv().setText(Za({signifier:c,date:r.doneDate}));let m=r.getLinkText({isFilenameUnique:t});m&&f.createDiv().setText(`\u{1F517} ${m}`),e.addEventListener("mouseleave",()=>{f.remove()})})}function Za({signifier:r,date:e}){return`${r} ${e.format(ae.dateFormat)} (${e.from(window.moment().startOf("day"))})`}function WI(r){let{globalFilter:e,removeGlobalFilter:t}=se();return t?r.replace(e,"").trim():r}var Xt=class{static fromPath(e){let{useFilenameAsScheduledDate:t,filenameAsDateFolders:n}=se();return!t||!this.matchesAnyFolder(n,e)?null:this.extractDateFromPath(e)}static matchesAnyFolder(e,t){return e.length===0?!0:e.some(n=>t.startsWith(n+"/"))}static extractDateFromPath(e){let t=Math.max(0,e.lastIndexOf("/")+1),n=e.lastIndexOf("."),s=e.substring(t,n),a=/(\d{4})-(\d{2})-(\d{2})/.exec(s);if(a||(a=/(\d{4})(\d{2})(\d{2})/.exec(s)),a){let o=window.moment([parseInt(a[1]),parseInt(a[2])-1,parseInt(a[3])]);if(o.isValid())return o}return null}static canApplyFallback({startDate:e,scheduledDate:t,dueDate:n}){return e===null&&n===null&&t===null}static updateTaskPath(e,t,n){let s=e.scheduledDate,a=e.scheduledDateIsInferred;return n===null?a&&(a=!1,s=null):a?s=n:this.canApplyFallback(e)&&(s=n,a=!0),new $e(er(Ce({},e),{taskLocation:e.taskLocation.fromRenamedFile(t),scheduledDate:s,scheduledDateIsInferred:a}))}static removeInferredStatusIfNeeded(e,t){let n=e.scheduledDateIsInferred?e.scheduledDate:null;return t.map(s=>(n!==null&&!n.isSame(s.scheduledDate,"day")&&(s=new $e(er(Ce({},s),{scheduledDateIsInferred:!1}))),s))}};function Su(r){return r.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")}var ar=class{},ae=ar;ae.dateFormat="YYYY-MM-DD",ae.indentationRegex=/^([\s\t>]*)/,ae.listMarkerRegex=/([-*]|[0-9]+\.)/,ae.checkboxRegex=/\[(.)\]/u,ae.afterCheckboxRegex=/ *(.*)/u,ae.taskRegex=new RegExp(ar.indentationRegex.source+ar.listMarkerRegex.source+" +"+ar.checkboxRegex.source+ar.afterCheckboxRegex.source,"u"),ae.nonTaskRegex=new RegExp(ar.indentationRegex.source+ar.listMarkerRegex.source+"? *("+ar.checkboxRegex.source+")?"+ar.afterCheckboxRegex.source,"u"),ae.listItemRegex=new RegExp(ar.indentationRegex.source+ar.listMarkerRegex.source),ae.blockLinkRegex=/ \^[a-zA-Z0-9-]+$/u,ae.hashTags=/(^|\s)#[^ !@#$%^&*(),.?":{}|<>]*/g,ae.hashTagsFromEnd=new RegExp(ar.hashTags.source+"$");var $e=class{constructor({status:e,description:t,taskLocation:n,indentation:s,listMarker:a,priority:o,createdDate:l,startDate:c,scheduledDate:f,dueDate:m,doneDate:g,recurrence:T,blockLink:E,tags:v,originalMarkdown:R,scheduledDateIsInferred:C}){this._urgency=null;this.status=e,this.description=t,this.indentation=s,this.listMarker=a,this.taskLocation=n,this.tags=v,this.priority=o,this.createdDate=l,this.startDate=c,this.scheduledDate=f,this.dueDate=m,this.doneDate=g,this.recurrence=T,this.blockLink=E,this.originalMarkdown=R,this.scheduledDateIsInferred=C}static fromLine({line:e,taskLocation:t,fallbackDate:n}){let s=e.match(ae.taskRegex);if(s===null)return null;let a=s[4].trim(),{globalFilter:o}=se();if(!a.includes(o))return null;let l=a,c=s[1],f=s[2],m=s[3],g=Be.getInstance().bySymbolOrCreate(m),T=l.match(ae.blockLinkRegex),E=T!==null?T[0]:"";E!==""&&(l=l.replace(ae.blockLinkRegex,"").trim());let{taskSerializer:v}=za(),R=v.deserialize(l),C=!1;return Xt.canApplyFallback(R)&&n!==null&&(R.scheduledDate=n,C=!0),R.tags=R.tags.map(q=>q.trim()),o&&(R.tags=R.tags.filter(q=>q!==o)),new $e(er(Ce({},R),{status:g,indentation:c,listMarker:f,taskLocation:t,blockLink:E,originalMarkdown:e,scheduledDateIsInferred:C}))}toLi(e){return J(this,null,function*(){return qb(this,e)})}toString(){return za().taskSerializer.serialize(this)}toFileLineString(){return`${this.indentation}${this.listMarker} [${this.status.symbol}] ${this.toString()}`}toggle(){let e=Be.getInstance().getNextStatusOrCreate(this.status),t=null,n=null;if(e.isCompleted()){let{setDoneDate:o}=se();o&&(t=window.moment()),this.recurrence!==null&&(n=this.recurrence.next())}let s=new $e(er(Ce({},this),{status:e,doneDate:t})),a=[];if(n!==null){let{setCreatedDate:o}=se(),l=null;o&&(l=window.moment());let c=Be.getInstance().getNextStatusOrCreate(e),f=new $e(er(Ce(Ce({},this),n),{status:c,blockLink:"",createdDate:l}));a.push(f)}return a.push(s),a}get urgency(){return this._urgency===null&&(this._urgency=pn.calculate(this)),this._urgency}get path(){return this.taskLocation.path}get filename(){let e=this.path.match(/([^/]+)\.md$/);return e!==null?e[1]:null}get lineNumber(){return this.taskLocation.lineNumber}get sectionStart(){return this.taskLocation.sectionStart}get sectionIndex(){return this.taskLocation.sectionIndex}get precedingHeader(){return this.taskLocation.precedingHeader}getLinkText({isFilenameUnique:e}){let t;return e?t=this.filename:t="/"+this.path,t===null?null:(this.precedingHeader!==null&&this.precedingHeader!==t&&(t=t+" > "+this.precedingHeader),t)}static tasksListsIdentical(e,t){return e.length!==t.length?!1:e.every((n,s)=>n.identicalTo(t[s]))}identicalTo(e){let t=["status","description","path","indentation","listMarker","lineNumber","sectionStart","sectionIndex","precedingHeader","priority","blockLink","scheduledDateIsInferred"];for(let a of t)if(this[a]!==e[a])return!1;if(this.tags.length!==e.tags.length||!this.tags.every(function(a,o){return a===e.tags[o]}))return!1;t=["createdDate","startDate","scheduledDate","dueDate","doneDate"];for(let a of t){let o=this[a],l=e[a];if($r(o,l)!==0)return!1}let n=this.recurrence,s=e.recurrence;return n===null&&s!==null||n!==null&&s===null?!1:!(n&&s&&!n.identicalTo(s))}static extractHashtags(e){var t,n;return(n=(t=e.match(ae.hashTags))==null?void 0:t.map(s=>s.trim()))!=null?n:[]}getDescriptionWithoutGlobalFilter(){let{globalFilter:e}=se(),t=this.description;if(e.length===0)return t;let n=RegExp("(^|\\s)"+Su(e)+"($|\\s)","ug");return this.description.search(n)>-1&&(t=t.replace(n,"$1$2").replace(" "," ").trim()),t}};var Xa=class{constructor(e){this.fetch=e;this._value=void 0}get value(){return this._value===void 0&&(this._value=this.fetch()),this._value}};var Nt=class{constructor(e,t,n,s,a){this._path=e,this._lineNumber=t,this._sectionStart=n,this._sectionIndex=s,this._precedingHeader=a}static fromUnknownPosition(e){return new Nt(e,0,0,0,null)}fromRenamedFile(e){return new Nt(e,this.lineNumber,this.sectionStart,this.sectionIndex,this.precedingHeader)}get path(){return this._path}get lineNumber(){return this._lineNumber}get sectionStart(){return this._sectionStart}get sectionIndex(){return this._sectionIndex}get precedingHeader(){return this._precedingHeader}};var bs=class{constructor({metadataCache:e,vault:t,events:n}){this.metadataCache=e,this.metadataCacheEventReferences=[],this.vault=t,this.vaultEventReferences=[],this.events=n,this.eventsEventReferences=[],this.tasksMutex=new ko,this.state="Cold",this.tasks=[],this.loadedAfterFirstResolve=!1,this.subscribeToCache(),this.subscribeToVault(),this.subscribeToEvents(),this.loadVault()}unload(){for(let e of this.metadataCacheEventReferences)this.metadataCache.offref(e);for(let e of this.vaultEventReferences)this.vault.offref(e);for(let e of this.eventsEventReferences)this.events.off(e)}getTasks(){return this.tasks}getState(){return this.state}notifySubscribers(){this.events.triggerCacheUpdate({tasks:this.tasks,state:this.state})}subscribeToCache(){let e=this.metadataCache.on("resolved",()=>J(this,null,function*(){this.loadedAfterFirstResolve||(this.loadedAfterFirstResolve=!0,this.loadVault())}));this.metadataCacheEventReferences.push(e);let t=this.metadataCache.on("changed",n=>{this.tasksMutex.runExclusive(()=>{this.indexFile(n)})});this.metadataCacheEventReferences.push(t)}subscribeToVault(){let{useFilenameAsScheduledDate:e}=se(),t=this.vault.on("create",a=>{a instanceof di.TFile&&this.tasksMutex.runExclusive(()=>{this.indexFile(a)})});this.vaultEventReferences.push(t);let n=this.vault.on("delete",a=>{a instanceof di.TFile&&this.tasksMutex.runExclusive(()=>{this.tasks=this.tasks.filter(o=>o.path!==a.path),this.notifySubscribers()})});this.vaultEventReferences.push(n);let s=this.vault.on("rename",(a,o)=>{a instanceof di.TFile&&this.tasksMutex.runExclusive(()=>{let l=new Xa(()=>Xt.fromPath(a.path));this.tasks=this.tasks.map(c=>c.path===o?e?Xt.updateTaskPath(c,a.path,l.value):new $e(er(Ce({},c),{taskLocation:c.taskLocation.fromRenamedFile(a.path)})):c),this.notifySubscribers()})});this.vaultEventReferences.push(s)}subscribeToEvents(){let e=this.events.onRequestCacheUpdate(t=>{t({tasks:this.tasks,state:this.state})});this.eventsEventReferences.push(e)}loadVault(){return this.tasksMutex.runExclusive(()=>J(this,null,function*(){this.state="Initializing",yield Promise.all(this.vault.getMarkdownFiles().map(e=>this.indexFile(e))),this.state="Warm",this.notifySubscribers()}))}indexFile(e){return J(this,null,function*(){let t=this.metadataCache.getFileCache(e);if(t==null)return;let n=this.tasks.filter(o=>o.path===e.path),s=t.listItems,a=[];if(s!==void 0){let o=yield this.vault.cachedRead(e);a=this.getTasksFromFileContent(o,s,t,e)}$e.tasksListsIdentical(n,a)||(this.getState()=="Warm"&&console.debug(`At least one task, its line number or its heading has changed in ${e.path}: triggering a refresh of all active Tasks blocks in Live Preview and Reading mode views.`),this.tasks=this.tasks.filter(o=>o.path!==e.path),this.tasks.push(...a),this.notifySubscribers())})}getTasksFromFileContent(e,t,n,s){let a=[],o=e.split(` -`),l=o.length,c=new Xa(()=>Xt.fromPath(s.path)),f=null,m=0;for(let g of t)if(g.task!==void 0){let T=g.position.start.line;if(T>=l)return console.log(`${s.path} Obsidian gave us a line number ${T} past the end of the file. ${l}.`),a;if((f===null||f.position.end.line{c.preventDefault(),c.stopPropagation(),o.disabled=!0;let f=r.toggle();Mu({originalTask:r,newTasks:f})}),n.prepend(o),n.setAttribute("data-task",r.status.symbol.trim()),n.setAttribute("data-line",e.listIndex.toString()),n.setAttribute("data-task-status-name",r.status.name),n.setAttribute("data-task-status-type",r.status.type),o.setAttribute("data-line",e.listIndex.toString()),(l=e.layoutOptions)!=null&&l.shortMode&&qI({task:r,element:s,isFilenameUnique:e.isFilenameUnique}),n})}function FI(r,e,t,n){return J(this,null,function*(){let s={},a=new Bn(e.layoutOptions),o=fi.tasksPluginEmoji.taskSerializer;for(let l of a.layoutComponents){let c=o.componentToString(r,a,l);if(c){l==="description"&&(c=Le.removeAsSubstringFromDependingOnSettings(c));let f=document.createElement("span");if(t.appendChild(f),f){let m=document.createElement("span");f.appendChild(m),yield LI(m,c,l,r,n);let[g,T]=Yh(l,r);YI(l,m),f.classList.add(...g);for(let S in T)f.dataset[S]=T[S];s=Ne(Ne({},s),T)}}}for(let l of a.hiddenComponents){let[c,f]=Yh(l,r);s=Ne(Ne({},s),f)}if(s.taskPriority===void 0){let[l,c]=Yh("priority",r);s=Ne(Ne({},s),c)}return s})}function LI(r,e,t,n,s){return J(this,null,function*(){if(t==="description"){let{debugSettings:a}=he();a.showTaskHiddenData&&(e+=`
\u{1F41B} ${n.lineNumber} . ${n.sectionStart} . ${n.sectionIndex} . '${n.originalMarkdown}'
'${n.path}' > '${n.precedingHeader}'
`),yield s(e,r,n.path);let o=r.querySelector("blockquote"),l=o!=null?o:r,c=l.querySelector("p");if(c!==null){for(;c.firstChild;)l.insertBefore(c.firstChild,c);c.remove()}r.querySelectorAll("p").forEach(f=>{f.hasChildNodes()||f.remove()}),r.querySelectorAll(".footnotes").forEach(f=>{f.remove()})}else r.innerHTML=e})}function Yh(r,e){let t=[],n={},s=(a,o)=>{let l=UI(a);l&&(n[o]=l)};switch(r){case"description":t.push(zn.description);break;case"priority":{let a=null;e.priority==="1"?a="high":e.priority==="2"?a="medium":e.priority==="4"?a="low":a="normal",n.taskPriority=a,t.push(zn.priority);break}case"createdDate":{let a=e.createdDate;a&&(t.push(zn.createdDate),s(a,"taskCreated"));break}case"dueDate":{let a=e.dueDate;a&&(t.push(zn.dueDate),s(a,"taskDue"));break}case"startDate":{let a=e.startDate;a&&(t.push(zn.startDate),s(a,"taskStart"));break}case"scheduledDate":{let a=e.scheduledDate;a&&(t.push(zn.scheduledDate),s(a,"taskScheduled"));break}case"doneDate":{let a=e.doneDate;a&&(t.push(zn.doneDate),s(a,"taskDone"));break}case"recurrenceRule":{t.push(zn.recurrenceRule);break}}return[t,n]}function YI(r,e){if(r==="description"){let t=e.getElementsByClassName("tag");for(let n=0;n0?t+="past-":n<0&&(t+="future-"),Math.abs(n)<=NI?t+=Math.abs(n).toString()+"d":t+=CI,t)}function WI(r){let e=/["&\x00\r\n]/g,t=r.replace(e,"-");return t=t.replace(/^[-_]+/,""),t.length>0?t:null}function qI({task:r,element:e,isFilenameUnique:t}){let{recurrenceSymbol:n,startDateSymbol:s,createdDateSymbol:a,scheduledDateSymbol:o,dueDateSymbol:l,doneDateSymbol:c}=fi.tasksPluginEmoji.taskSerializer.symbols;e.addEventListener("mouseenter",()=>{let f=e.createDiv();f.addClasses(["tooltip","pop-up"]),r.recurrence&&f.createDiv().setText(`${n} ${r.recurrence.toText()}`),r.createdDate&&f.createDiv().setText(Qa({signifier:a,date:r.createdDate})),r.startDate&&f.createDiv().setText(Qa({signifier:s,date:r.startDate})),r.scheduledDate&&f.createDiv().setText(Qa({signifier:o,date:r.scheduledDate})),r.dueDate&&f.createDiv().setText(Qa({signifier:l,date:r.dueDate})),r.doneDate&&f.createDiv().setText(Qa({signifier:c,date:r.doneDate}));let m=r.getLinkText({isFilenameUnique:t});m&&f.createDiv().setText(`\u{1F517} ${m}`),e.addEventListener("mouseleave",()=>{f.remove()})})}function Qa({signifier:r,date:e}){return`${r} ${e.format(ie.dateFormat)} (${e.from(window.moment().startOf("day"))})`}var Jt=class{static fromPath(e){let{useFilenameAsScheduledDate:t,filenameAsDateFolders:n}=he();return!t||!this.matchesAnyFolder(n,e)?null:this.extractDateFromPath(e)}static matchesAnyFolder(e,t){return e.length===0?!0:e.some(n=>t.startsWith(n+"/"))}static extractDateFromPath(e){let t=Math.max(0,e.lastIndexOf("/")+1),n=e.lastIndexOf("."),s=e.substring(t,n),a=/(\d{4})-(\d{2})-(\d{2})/.exec(s);if(a||(a=/(\d{4})(\d{2})(\d{2})/.exec(s)),a){let o=window.moment([parseInt(a[1]),parseInt(a[2])-1,parseInt(a[3])]);if(o.isValid())return o}return null}static canApplyFallback({startDate:e,scheduledDate:t,dueDate:n}){return e===null&&n===null&&t===null}static updateTaskPath(e,t,n){let s=e.scheduledDate,a=e.scheduledDateIsInferred;return n===null?a&&(a=!1,s=null):a?s=n:this.canApplyFallback(e)&&(s=n,a=!0),new Ge(rr(Ne({},e),{taskLocation:e.taskLocation.fromRenamedFile(t),scheduledDate:s,scheduledDateIsInferred:a}))}static removeInferredStatusIfNeeded(e,t){let n=e.scheduledDateIsInferred?e.scheduledDate:null;return t.map(s=>(n!==null&&!n.isSame(s.scheduledDate,"day")&&(s=new Ge(rr(Ne({},s),{scheduledDateIsInferred:!1}))),s))}};var ur=class{},ie=ur;ie.dateFormat="YYYY-MM-DD",ie.indentationRegex=/^([\s\t>]*)/,ie.listMarkerRegex=/([-*]|[0-9]+\.)/,ie.checkboxRegex=/\[(.)\]/u,ie.afterCheckboxRegex=/ *(.*)/u,ie.taskRegex=new RegExp(ur.indentationRegex.source+ur.listMarkerRegex.source+" +"+ur.checkboxRegex.source+ur.afterCheckboxRegex.source,"u"),ie.nonTaskRegex=new RegExp(ur.indentationRegex.source+ur.listMarkerRegex.source+"? *("+ur.checkboxRegex.source+")?"+ur.afterCheckboxRegex.source,"u"),ie.listItemRegex=new RegExp(ur.indentationRegex.source+ur.listMarkerRegex.source),ie.blockLinkRegex=/ \^[a-zA-Z0-9-]+$/u,ie.hashTags=/(^|\s)#[^ !@#$%^&*(),.?":{}|<>]*/g,ie.hashTagsFromEnd=new RegExp(ur.hashTags.source+"$");var Ge=class{constructor({status:e,description:t,taskLocation:n,indentation:s,listMarker:a,priority:o,createdDate:l,startDate:c,scheduledDate:f,dueDate:m,doneDate:g,recurrence:T,blockLink:S,tags:v,originalMarkdown:R,scheduledDateIsInferred:C}){this._urgency=null;this.status=e,this.description=t,this.indentation=s,this.listMarker=a,this.taskLocation=n,this.tags=v,this.priority=o,this.createdDate=l,this.startDate=c,this.scheduledDate=f,this.dueDate=m,this.doneDate=g,this.recurrence=T,this.blockLink=S,this.originalMarkdown=R,this.scheduledDateIsInferred=C}static fromLine({line:e,taskLocation:t,fallbackDate:n}){let s=e.match(ie.taskRegex);if(s===null)return null;let a=s[4].trim();if(!Le.includedIn(a))return null;let o=a,l=s[1],c=s[2],f=s[3],m=Be.getInstance().bySymbolOrCreate(f),g=o.match(ie.blockLinkRegex),T=g!==null?g[0]:"";T!==""&&(o=o.replace(ie.blockLinkRegex,"").trim());let{taskSerializer:S}=Ka(),v=S.deserialize(o),R=!1;return Jt.canApplyFallback(v)&&n!==null&&(v.scheduledDate=n,R=!0),v.tags=v.tags.map(C=>C.trim()),v.tags=v.tags.filter(C=>!Le.equals(C)),new Ge(rr(Ne({},v),{status:m,indentation:l,listMarker:c,taskLocation:t,blockLink:T,originalMarkdown:e,scheduledDateIsInferred:R}))}toLi(e){return J(this,null,function*(){return Gb(this,e)})}toString(){return Ka().taskSerializer.serialize(this)}toFileLineString(){return`${this.indentation}${this.listMarker} [${this.status.symbol}] ${this.toString()}`}toggle(){let e=Be.getInstance().getNextStatusOrCreate(this.status),t=null,n=null;if(e.isCompleted()){let{setDoneDate:o}=he();o&&(t=window.moment()),this.recurrence!==null&&(n=this.recurrence.next())}let s=new Ge(rr(Ne({},this),{status:e,doneDate:t})),a=[];if(n!==null){let{setCreatedDate:o}=he(),l=null;o&&(l=window.moment());let c=Be.getInstance().getNextStatusOrCreate(e),f=new Ge(rr(Ne(Ne({},this),n),{status:c,blockLink:"",createdDate:l}));a.push(f)}return a.push(s),a}get urgency(){return this._urgency===null&&(this._urgency=gn.calculate(this)),this._urgency}get path(){return this.taskLocation.path}get filename(){let e=this.path.match(/([^/]+)\.md$/);return e!==null?e[1]:null}get lineNumber(){return this.taskLocation.lineNumber}get sectionStart(){return this.taskLocation.sectionStart}get sectionIndex(){return this.taskLocation.sectionIndex}get precedingHeader(){return this.taskLocation.precedingHeader}getLinkText({isFilenameUnique:e}){let t;return e?t=this.filename:t="/"+this.path,t===null?null:(this.precedingHeader!==null&&this.precedingHeader!==t&&(t=t+" > "+this.precedingHeader),t)}static tasksListsIdentical(e,t){return e.length!==t.length?!1:e.every((n,s)=>n.identicalTo(t[s]))}identicalTo(e){let t=["status","description","path","indentation","listMarker","lineNumber","sectionStart","sectionIndex","precedingHeader","priority","blockLink","scheduledDateIsInferred"];for(let a of t)if(this[a]!==e[a])return!1;if(this.tags.length!==e.tags.length||!this.tags.every(function(a,o){return a===e.tags[o]}))return!1;t=["createdDate","startDate","scheduledDate","dueDate","doneDate"];for(let a of t){let o=this[a],l=e[a];if(Hr(o,l)!==0)return!1}let n=this.recurrence,s=e.recurrence;return n===null&&s!==null||n!==null&&s===null?!1:!(n&&s&&!n.identicalTo(s))}static extractHashtags(e){var t,n;return(n=(t=e.match(ie.hashTags))==null?void 0:t.map(s=>s.trim()))!=null?n:[]}};var Ja=class{constructor(e){this.fetch=e;this._value=void 0}get value(){return this._value===void 0&&(this._value=this.fetch()),this._value}};var It=class{constructor(e,t,n,s,a){this._path=e,this._lineNumber=t,this._sectionStart=n,this._sectionIndex=s,this._precedingHeader=a}static fromUnknownPosition(e){return new It(e,0,0,0,null)}fromRenamedFile(e){return new It(e,this.lineNumber,this.sectionStart,this.sectionIndex,this.precedingHeader)}get path(){return this._path}get lineNumber(){return this._lineNumber}get sectionStart(){return this._sectionStart}get sectionIndex(){return this._sectionIndex}get precedingHeader(){return this._precedingHeader}};var Ds=class{constructor({metadataCache:e,vault:t,events:n}){this.metadataCache=e,this.metadataCacheEventReferences=[],this.vault=t,this.vaultEventReferences=[],this.events=n,this.eventsEventReferences=[],this.tasksMutex=new Eo,this.state="Cold",this.tasks=[],this.loadedAfterFirstResolve=!1,this.subscribeToCache(),this.subscribeToVault(),this.subscribeToEvents(),this.loadVault()}unload(){for(let e of this.metadataCacheEventReferences)this.metadataCache.offref(e);for(let e of this.vaultEventReferences)this.vault.offref(e);for(let e of this.eventsEventReferences)this.events.off(e)}getTasks(){return this.tasks}getState(){return this.state}notifySubscribers(){this.events.triggerCacheUpdate({tasks:this.tasks,state:this.state})}subscribeToCache(){let e=this.metadataCache.on("resolved",()=>J(this,null,function*(){this.loadedAfterFirstResolve||(this.loadedAfterFirstResolve=!0,this.loadVault())}));this.metadataCacheEventReferences.push(e);let t=this.metadataCache.on("changed",n=>{this.tasksMutex.runExclusive(()=>{this.indexFile(n)})});this.metadataCacheEventReferences.push(t)}subscribeToVault(){let{useFilenameAsScheduledDate:e}=he(),t=this.vault.on("create",a=>{a instanceof hi.TFile&&this.tasksMutex.runExclusive(()=>{this.indexFile(a)})});this.vaultEventReferences.push(t);let n=this.vault.on("delete",a=>{a instanceof hi.TFile&&this.tasksMutex.runExclusive(()=>{this.tasks=this.tasks.filter(o=>o.path!==a.path),this.notifySubscribers()})});this.vaultEventReferences.push(n);let s=this.vault.on("rename",(a,o)=>{a instanceof hi.TFile&&this.tasksMutex.runExclusive(()=>{let l=new Ja(()=>Jt.fromPath(a.path));this.tasks=this.tasks.map(c=>c.path===o?e?Jt.updateTaskPath(c,a.path,l.value):new Ge(rr(Ne({},c),{taskLocation:c.taskLocation.fromRenamedFile(a.path)})):c),this.notifySubscribers()})});this.vaultEventReferences.push(s)}subscribeToEvents(){let e=this.events.onRequestCacheUpdate(t=>{t({tasks:this.tasks,state:this.state})});this.eventsEventReferences.push(e)}loadVault(){return this.tasksMutex.runExclusive(()=>J(this,null,function*(){this.state="Initializing",yield Promise.all(this.vault.getMarkdownFiles().map(e=>this.indexFile(e))),this.state="Warm",this.notifySubscribers()}))}indexFile(e){return J(this,null,function*(){let t=this.metadataCache.getFileCache(e);if(t==null)return;let n=this.tasks.filter(o=>o.path===e.path),s=t.listItems,a=[];if(s!==void 0){let o=yield this.vault.cachedRead(e);a=this.getTasksFromFileContent(o,s,t,e)}Ge.tasksListsIdentical(n,a)||(this.getState()=="Warm"&&console.debug(`At least one task, its line number or its heading has changed in ${e.path}: triggering a refresh of all active Tasks blocks in Live Preview and Reading mode views.`),this.tasks=this.tasks.filter(o=>o.path!==e.path),this.tasks.push(...a),this.notifySubscribers())})}getTasksFromFileContent(e,t,n,s){let a=[],o=e.split(` +`),l=o.length,c=new Ja(()=>Jt.fromPath(s.path)),f=null,m=0;for(let g of t)if(g.task!==void 0){let T=g.position.start.line;if(T>=l)return console.log(`${s.path} Obsidian gave us a line number ${T} past the end of the file. ${l}.`),a;if((f===null||f.position.end.line=e)return n;return null}static getPrecedingHeader(e,t){if(t===void 0)return null;let n=null;for(let s of t){if(s.position.start.line>e)return n;n=s.heading}return n}};var zh=require("obsidian");var av=require("obsidian");function ws(){}function Uh(r){return r()}function Bb(){return Object.create(null)}function ks(r){r.forEach(Uh)}function Hb(r){return typeof r=="function"}function zb(r,e){return r!=r?e==e:r!==e||r&&typeof r=="object"||typeof r=="function"}function Vb(r){return Object.keys(r).length===0}var Kb=!1;function qI(){Kb=!0}function jI(){Kb=!1}function L(r,e){r.appendChild(e)}function fi(r,e,t){r.insertBefore(e,t||null)}function Ds(r){r.parentNode.removeChild(r)}function Wh(r,e){for(let t=0;tr.removeEventListener(e,t,n)}function Zb(r){return function(e){return e.preventDefault(),r.call(this,e)}}function z(r,e,t){t==null?r.removeAttribute(e):r.getAttribute(e)!==t&&r.setAttribute(e,t)}function BI(r){return Array.from(r.childNodes)}function qh(r,e){e=""+e,r.wholeText!==e&&(r.data=e)}function Nr(r,e){r.value=e==null?"":e}function jh(r,e){for(let t=0;t{let c=a.map(Uh).filter(Hb);o?o.push(...c):ks(c),r.$$.on_mount=[]}),l.forEach(to)}function Jb(r,e){let t=r.$$;t.fragment!==null&&(ks(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function QI(r,e){r.$$.dirty[0]===-1&&(Qa.push(r),zI(),r.$$.dirty.fill(0)),r.$$.dirty[e/31|0]|=1<{let v=E.length?E[0]:T;return f.ctx&&s(f.ctx[g],f.ctx[g]=v)&&(!f.skip_bound&&f.bound[g]&&f.bound[g](v),m&&QI(r,g)),T}):[],f.update(),m=!0,ks(f.before_update),f.fragment=n?n(f.ctx):!1,e.target){if(e.hydrate){qI();let g=BI(e.target);f.fragment&&f.fragment.l(g),g.forEach(Ds)}else f.fragment&&f.fragment.c();e.intro&&ZI(r.$$.fragment),XI(r,e.target,e.anchor,e.customElement),jI(),Qb()}Ja(c)}var JI;typeof HTMLElement=="function"&&(JI=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let{on_mount:r}=this.$$;this.$$.on_disconnect=r.map(Uh).filter(Hb);for(let e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(r,e,t){this[r]=t}disconnectedCallback(){ks(this.$$.on_disconnect)}$destroy(){Jb(this,1),this.$destroy=ws}$on(r,e){let t=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return t.push(e),()=>{let n=t.indexOf(e);n!==-1&&t.splice(n,1)}}$set(r){this.$$set&&!Vb(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}});var Pu=class{$destroy(){Jb(this,1),this.$destroy=ws}$on(e,t){let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let s=n.indexOf(t);s!==-1&&n.splice(s,1)}}$set(e){this.$$set&&!Vb(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Gh=ns(ht());function tv(r,e,t){let n=r.slice();return n[45]=e[t],n}function rv(r,e,t){let n=r.slice();return n[48]=e[t].value,n[49]=e[t].label,n[50]=e[t].symbol,n}function eF(r){let e,t=r[50]+"",n;return{c(){e=oe("span"),n=Qt(t)},m(s,a){fi(s,e,a),L(e,n)},p:ws,d(s){s&&Ds(e)}}}function nv(r){let e,t,n,s,a,o,l,c,f=r[49]+"",m,g,T=r[50]&&r[50].charCodeAt(0)>=256,E,v,R,C,q=T&&eF(r);return{c(){e=oe("span"),t=oe("input"),o=Se(),l=oe("label"),c=oe("span"),m=Qt(f),g=Se(),q&&q.c(),v=Se(),z(t,"type","radio"),z(t,"id",n="priority-"+r[48]),t.__value=s=r[48],t.value=t.__value,z(t,"accesskey",a=r[15](r[49].charAt(0).toLowerCase())),r[33][0].push(t),z(c,"class","accesskey-first"),z(l,"for",E="priority-"+r[48])},m($,B){fi($,e,B),L(e,t),t.checked=t.__value===r[1].priority,L(e,o),L(e,l),L(l,c),L(c,m),L(l,g),q&&q.m(l,null),L(e,v),R||(C=Ht(t,"change",r[32]),R=!0)},p($,B){B[0]&32768&&a!==(a=$[15]($[49].charAt(0).toLowerCase()))&&z(t,"accesskey",a),B[0]&3&&(t.checked=t.__value===$[1].priority),T&&q.p($,B)},d($){$&&Ds(e),r[33][0].splice(r[33][0].indexOf(t),1),q&&q.d(),R=!1,C()}}}function sv(r){let e,t=r[45].name+"",n,s,a=r[45].symbol+"",o,l,c;return{c(){e=oe("option"),n=Qt(t),s=Qt(" ["),o=Qt(a),l=Qt("]"),e.__value=c=r[45],e.value=e.__value},m(f,m){fi(f,e,m),L(e,n),L(e,s),L(e,o),L(e,l)},p(f,m){m[0]&1&&t!==(t=f[45].name+"")&&qh(n,t),m[0]&1&&a!==(a=f[45].symbol+"")&&qh(o,a),m[0]&1&&c!==(c=f[45])&&(e.__value=c,e.value=e.__value)},d(f){f&&Ds(e)}}}function tF(r){let e,t,n,s,a,o,l,c,f,m,g,T,E,v,R,C,q,$,B,me,fe,ve,ee,te,Ct,mt,V,W,x,Q,Y,ue,y,_,w,k,S,M,D,I,A,N,j,De,ye,ce,Fe,K,qe,Je,Ze,Dr,Ot,Ae,nt,yt,kn,Ri,je,Ns,Kn,dt,de,zr,Mt,Zn,ao,Fr,Dn,gt,Pi,lr,Vr,Ye,En,Cs,Xn,Sn,Qn,cr,On,oo,Kr,uo,dr,fr,H,Is,lo,ft,Jn,Ne,hr=r[20],It=[];for(let G=0;Gtion',a=Se(),o=oe("textarea"),c=Se(),f=oe("div"),m=oe("label"),g=Qt("Priority"),E=Se();for(let G=0;Gart',Fe=Se(),K=oe("input"),Je=Se(),Ze=oe("code"),Dr=Qt(r[17]),Ot=Se(),Ae=new vs(!1),nt=Se(),yt=oe("div"),kn=oe("label"),kn.innerHTML=`Only - future dates:`,Ri=Se(),je=oe("input"),Kn=Se(),dt=oe("div"),de=oe("label"),de.innerHTML='Status',zr=Se(),Mt=oe("select");for(let G=0;Gr[39].call(Mt)),z(dt,"class","tasks-modal-section"),z(gt,"for","status"),z(lr,"id","status"),z(lr,"type","checkbox"),z(lr,"class","task-list-item-checkbox tasks-modal-checkbox"),lr.checked=Vr=r[1].status.isCompleted(),lr.disabled=!0,z(Fr,"class","tasks-modal-section tasks-modal-status"),fr.disabled=Is=!r[14],z(fr,"type","submit"),z(fr,"class","mod-cta"),z(ft,"type","button"),z(dr,"class","tasks-modal-section tasks-modal-buttons"),Cr(t,"with-accesskeys",r[9]),z(e,"class","tasks-modal")},m(G,ne){fi(G,e,ne),L(e,t),L(t,n),L(n,s),L(n,a),L(n,o),Nr(o,r[1].description),r[31](o),L(t,c),L(t,f),L(f,m),L(m,g),L(f,E);for(let le=0;leno ${K} date`;let Ze=Gh.parseDate(qe,Je,{forwardDate:Je!=null});return Ze!==null?window.moment(Ze).format("YYYY-MM-DD"):`invalid ${K} date`}function Y(K,qe){return Q(K,qe,v.forwardOnly?new Date:void 0)}function ue(K){let qe=null,Je=Gh.parseDate(K,new Date,{forwardDate:v.forwardOnly});return Je!==null&&(qe=window.moment(Je)),qe}$h(()=>{let{globalFilter:K,provideAccessKeys:qe}=se();t(9,V=qe);let Je=a.getDescriptionWithoutGlobalFilter();(Je!=a.description||Je.indexOf(K)==-1)&&(mt=!0);let Ze="none";a.priority==="4"?Ze="low":a.priority==="2"?Ze="medium":a.priority==="1"&&(Ze="high"),t(1,v={description:Je,status:a.status,priority:Ze,recurrenceRule:a.recurrence?a.recurrence.toText():"",createdDate:a.createdDate?a.createdDate.format("YYYY-MM-DD"):"",startDate:a.startDate?a.startDate.format("YYYY-MM-DD"):"",scheduledDate:a.scheduledDate?a.scheduledDate.format("YYYY-MM-DD"):"",dueDate:a.dueDate?a.dueDate.format("YYYY-MM-DD"):"",doneDate:a.doneDate?a.doneDate.format("YYYY-MM-DD"):"",forwardOnly:!0}),setTimeout(()=>{E.focus()},10)});let y=K=>{if(K.key&&!K.altKey&&!K.ctrlKey){let qe=x.find(Je=>Je.label.charAt(0).toLowerCase()==K.key);qe&&t(1,v.priority=qe.value,v)}},_=()=>{o([])},w=K=>{K.key==="Enter"&&(K.preventDefault(),W&&S())},k=()=>{setTimeout(()=>{t(1,v.description=v.description.replace(/[\r\n]+/g," "),v)},0)},S=()=>{let{globalFilter:K}=se(),qe=v.description.trim();mt&&(qe=K+" "+qe);let Je=ue(v.startDate),Ze=ue(v.scheduledDate),Dr=ue(v.dueDate),Ot=null;v.recurrenceRule&&(Ot=Et.fromText({recurrenceRuleText:v.recurrenceRule,startDate:Je,scheduledDate:Ze,dueDate:Dr}));let Ae;switch(v.priority){case"low":Ae="4";break;case"medium":Ae="2";break;case"high":Ae="1";break;default:Ae="3"}let nt=new $e(Object.assign(Object.assign({},a),{description:qe,status:v.status,priority:Ae,recurrence:Ot,startDate:Je,scheduledDate:Ze,dueDate:Dr,doneDate:window.moment(v.doneDate,"YYYY-MM-DD").isValid()?window.moment(v.doneDate,"YYYY-MM-DD"):null}));o([nt])},M=[[]];function D(){v.description=this.value,t(1,v),t(6,fe),t(2,q),t(4,B),t(0,l)}function I(K){Ru[K?"unshift":"push"](()=>{E=K,t(10,E)})}function A(){v.priority=this.__value,t(1,v),t(6,fe),t(2,q),t(4,B),t(0,l)}function N(){v.recurrenceRule=this.value,t(1,v),t(6,fe),t(2,q),t(4,B),t(0,l)}function j(){v.dueDate=this.value,t(1,v),t(6,fe),t(2,q),t(4,B),t(0,l)}function De(){v.scheduledDate=this.value,t(1,v),t(6,fe),t(2,q),t(4,B),t(0,l)}function ye(){v.startDate=this.value,t(1,v),t(6,fe),t(2,q),t(4,B),t(0,l)}function ce(){v.forwardOnly=this.checked,t(1,v),t(6,fe),t(2,q),t(4,B),t(0,l)}function Fe(){v.status=Xb(this),t(1,v),t(6,fe),t(2,q),t(4,B),t(0,l)}return r.$$set=K=>{"task"in K&&t(26,a=K.task),"onSubmit"in K&&t(27,o=K.onSubmit),"statusOptions"in K&&t(0,l=K.statusOptions)},r.$$.update=()=>{if(r.$$.dirty[0]&512){e:t(15,n=K=>V?K:null)}if(r.$$.dirty[0]&66){e:t(1,v.dueDate=ii(v.dueDate),v),t(6,fe=Y("due",v.dueDate)),t(7,ve=!fe.includes("invalid"))}if(r.$$.dirty[0]&6){e:t(1,v.startDate=ii(v.startDate),v),t(2,q=Y("start",v.startDate)),t(3,$=!q.includes("invalid"))}if(r.$$.dirty[0]&18){e:t(1,v.scheduledDate=ii(v.scheduledDate),v),t(4,B=Y("scheduled",v.scheduledDate)),t(5,me=!B.includes("invalid"))}if(r.$$.dirty[0]&268435458){e:if(t(8,te=!0),!v.recurrenceRule)t(12,ee="not recurring");else{let K=t(28,s=Et.fromText({recurrenceRuleText:v.recurrenceRule,startDate:null,scheduledDate:null,dueDate:null}))===null||s===void 0?void 0:s.toText();K?t(12,ee=K):(t(12,ee="invalid recurrence rule"),t(8,te=!1))}}if(r.$$.dirty[0]&2){e:t(29,R=v.description.trim()!=="")}if(r.$$.dirty[0]&536871336){e:t(14,W=ve&&te&&me&&$&&R)}if(r.$$.dirty[0]&2){e:t(11,C=Q("created",v.createdDate)),t(13,Ct=Q("done",v.doneDate))}},[l,v,q,$,B,me,fe,ve,te,V,E,C,ee,Ct,W,n,f,m,g,T,x,y,_,w,k,S,a,o,s,R,D,I,A,M,N,j,De,ye,ce,Fe]}var Hh=class extends Pu{constructor(e){super(),ev(this,e,rF,tF,zb,{task:26,onSubmit:27,statusOptions:0},null,[-1,-1])}},iv=Hh;var Bn=class extends av.Modal{constructor({app:t,task:n,onSubmit:s}){super(t);this.task=n,this.onSubmit=a=>{a.length&&s(a),this.close()}}onOpen(){this.titleEl.setText("Create or edit Task");let{contentEl:t}=this,n=this.getKnownStatusesAndCurrentTaskStatusIfNotKnown();new iv({target:t,props:{task:this.task,statusOptions:n,onSubmit:this.onSubmit}})}getKnownStatusesAndCurrentTaskStatusIfNotKnown(){let t=Be.getInstance().registeredStatuses;return Be.getInstance().bySymbol(this.task.status.symbol)===pe.EMPTY&&t.push(this.task.status),t}onClose(){let{contentEl:t}=this;t.empty()}};var xu=({line:r,path:e})=>{var v,R;let t=Xt.fromPath(e),n=$e.fromLine({line:r,taskLocation:Nt.fromUnknownPosition(e),fallbackDate:t});if(n!==null)return n;let{setCreatedDate:s}=se(),a=null;s&&(a=window.moment());let o=r.match(ae.nonTaskRegex);if(o===null)return console.error("Tasks: Cannot create task on line:",r),new $e({status:pe.TODO,description:"",taskLocation:Nt.fromUnknownPosition(e),indentation:"",listMarker:"-",priority:"3",createdDate:a,startDate:null,scheduledDate:null,dueDate:null,doneDate:null,recurrence:null,blockLink:"",tags:[],originalMarkdown:"",scheduledDateIsInferred:!1});let l=o[1],c=(v=o[2])!=null?v:"-",f=(R=o[4])!=null?R:" ",m=Be.getInstance().bySymbolOrCreate(f),g=o[5],T=r.match(ae.blockLinkRegex),E=T!==null?T[0]:"";return E!==""&&(g=g.replace(ae.blockLinkRegex,"")),new $e({status:m,description:g,taskLocation:Nt.fromUnknownPosition(e),indentation:l,listMarker:c,blockLink:E,priority:"3",createdDate:a,startDate:null,scheduledDate:null,dueDate:null,doneDate:null,recurrence:null,tags:[],originalMarkdown:"",scheduledDateIsInferred:!1})};var ov=(r,e,t,n)=>{var g;if(r)return t instanceof zh.MarkdownView;if(!(t instanceof zh.MarkdownView))return;let s=(g=t.file)==null?void 0:g.path;if(s===void 0)return;let o=e.getCursor().line,l=e.getLine(o),c=xu({line:l,path:s}),f=T=>{let E=Xt.removeInferredStatusIfNeeded(c,T).map(v=>v.toFileLineString()).join(` -`);e.setLine(o,E)};new Bn({app:n,task:c,onSubmit:f}).open()};var Vh=require("obsidian");var uv=(r,e,t)=>{var c;if(r)return t instanceof Vh.MarkdownView;if(!(t instanceof Vh.MarkdownView))return;let n=(c=t.file)==null?void 0:c.path;if(n===void 0)return;let s=e.getCursor(),a=s.line,o=e.getLine(a),l=nF(o,n);e.setLine(a,l.text),e.setCursor(sF(s,l))},nF=(r,e)=>{let t=$e.fromLine({line:r,taskLocation:Nt.fromUnknownPosition(e),fallbackDate:null});if(t!==null){let n=t.toggle().map(s=>s.toFileLineString());return{text:n.join(` -`),moveTo:{line:n.length-1}}}else{let n=r.match(ae.taskRegex);if(n!==null){let s=n[3],o=Be.getInstance().bySymbol(s).nextStatusSymbol;return{text:r.replace(ae.taskRegex,`$1- [${o}] $4`)}}else if(ae.listItemRegex.test(r)){let s=r.replace(ae.listItemRegex,"$1$2 [ ]");return{text:s,moveTo:{ch:s.length}}}else{let s=r.replace(ae.indentationRegex,"$1- ");return{text:s,moveTo:{ch:s.length}}}}},sF=(r,e)=>{var a;let t={line:0,ch:r.ch},n=Ce(Ce({},t),(a=e.moveTo)!=null?a:{}),s=e.text.split(` -`)[n.line].length;return{line:r.line+n.line,ch:Math.min(n.ch,s)}};var Au=class{get app(){return this.plugin.app}constructor({plugin:e}){this.plugin=e,e.addCommand({id:"edit-task",name:"Create or edit task",icon:"pencil",editorCheckCallback:(t,n,s)=>ov(t,n,s,this.app)}),e.addCommand({id:"toggle-done",name:"Toggle task done",icon:"check-in-circle",editorCheckCallback:uv})}};var Nu=class{constructor({obsidianEvents:e}){this.obsidianEvents=e}onCacheUpdate(e){return this.obsidianEvents.on("obsidian-tasks-plugin:cache-update",e)}triggerCacheUpdate(e){this.obsidianEvents.trigger("obsidian-tasks-plugin:cache-update",e)}onRequestCacheUpdate(e){return this.obsidianEvents.on("obsidian-tasks-plugin:request-cache-update",e)}triggerRequestCacheUpdate(e){this.obsidianEvents.trigger("obsidian-tasks-plugin:request-cache-update",e)}off(e){this.obsidianEvents.offref(e)}};var Cu=class{constructor({plugin:e}){this.markdownPostProcessor=this._markdownPostProcessor.bind(this);e.registerMarkdownPostProcessor(this._markdownPostProcessor.bind(this))}_markdownPostProcessor(e,t){return J(this,null,function*(){var m;let{globalFilter:n}=se(),s=e.findAll(".task-list-item").filter(g=>{var v;let T=(v=g.textContent)==null?void 0:v.split(` -`);if(T===void 0)return!1;let E=null;for(let R=0;Rlv.ViewPlugin.fromClass(Kh),Kh=class{constructor(e){this.view=e,this.handleClickEvent=this.handleClickEvent.bind(this),this.view.dom.addEventListener("click",this.handleClickEvent)}destroy(){this.view.dom.removeEventListener("click",this.handleClickEvent)}handleClickEvent(e){let{target:t}=e;if(!t||!(t instanceof HTMLInputElement)||t.type!=="checkbox")return!1;let n=t.closest("ul.plugin-tasks-query-result, div.callout-content");if(n){if(n.matches("div.callout-content")){let T=`obsidian-tasks-plugin warning: Tasks cannot add or remove completion dates or make the next copy of a recurring task for tasks written inside a callout when you click their checkboxes in Live Preview. -If you wanted Tasks to do these things, please undo your change, then either click the line of the task and use the "Toggle Task Done" command, or switch to Reading View to click the checkbox.`;console.warn(T),new cv.Notice(T,45e3)}return!1}let{state:s}=this.view,a=this.view.posAtDOM(t),o=s.doc.lineAt(a),l=$e.fromLine({line:o.text,taskLocation:Nt.fromUnknownPosition(""),fallbackDate:null});if(console.debug(`Live Preview Extension: toggle called. Position: ${a} Line: ${o.text}`),l===null)return!1;e.preventDefault();let f=l.toggle().map(T=>T.toFileLineString()).join(s.lineBreak),m=s.update({changes:{from:o.from,to:o.to,insert:f}});this.view.dispatch(m);let g=t.checked;return setTimeout(()=>{t.checked=g},1),!0}};var ol=require("obsidian");var yn=class{constructor(e,t,n){this.property=e,this.comparator=yn.maybeReverse(n,t)}static maybeReverse(e,t){return e?yn.makeReversedComparator(t):t}static makeReversedComparator(e){return(t,n)=>e(t,n)*-1}};var hi=class{constructor(e,t){this.property=e,this.grouper=t}};var Ve=class{canCreateFilterForLine(e){return Ve.lineMatchesFilter(this.filterRegExp(),e)}static lineMatchesFilter(e,t){return e?e.test(t):!1}static getMatch(e,t){return e?t.match(e):null}fieldNameSingular(){return this.fieldName()}fieldNameSingularEscaped(){return Su(this.fieldNameSingular())}supportsSorting(){return!1}parseSortLine(e){return!this.supportsSorting()||!this.canCreateSorterForLine(e)?null:this.createSorterFromLine(e)}canCreateSorterForLine(e){return this.supportsSorting()?Ve.lineMatchesFilter(this.sorterRegExp(),e):!1}createSorterFromLine(e){if(!this.supportsSorting())return null;let t=Ve.getMatch(this.sorterRegExp(),e);if(t===null)return null;let n=!!t[1];return this.createSorter(n)}sorterRegExp(){if(!this.supportsSorting())throw Error(`sorterRegExp() unimplemented for ${this.fieldNameSingular()}`);return new RegExp(`^sort by ${this.fieldNameSingularEscaped()}( reverse)?`)}comparator(){throw Error(`comparator() unimplemented for ${this.fieldNameSingular()}`)}createSorter(e){return new yn(this.fieldNameSingular(),this.comparator(),e)}createNormalSorter(){return this.createSorter(!1)}createReverseSorter(){return this.createSorter(!0)}supportsGrouping(){return!1}grouper(){throw Error(`grouper() unimplemented for ${this.fieldNameSingular()}`)}createGrouper(){return new hi(this.fieldNameSingular(),this.grouper())}};var at=class{constructor(e,t=[],n=""){this.description=e,this.symbol=n,this.children=t}static booleanAnd(e){return this.combineOrCreateExplanation("All of",e,"AND")}static booleanOr(e){return this.combineOrCreateExplanation("At least one of",e,"OR")}static booleanNot(e){return new at("None of",e,"NOT")}static booleanXor(e){return new at("Exactly one of",e,"XOR")}asString(e=""){if(this.children.length==0)return e+this.description;let t=e+`${this.symbol}`;this.children.length>1&&(t+=` (${this.description})`),t+=":";let n=e+" ";for(let s=0;s=e)return n;return null}static getPrecedingHeader(e,t){if(t===void 0)return null;let n=null;for(let s of t){if(s.position.start.line>e)return n;n=s.heading}return n}};var Kh=require("obsidian");var uv=require("obsidian");function Es(){}function qh(r){return r()}function Hb(){return Object.create(null)}function Ss(r){r.forEach(qh)}function Vb(r){return typeof r=="function"}function Kb(r,e){return r!=r?e==e:r!==e||r&&typeof r=="object"||typeof r=="function"}function Zb(r){return Object.keys(r).length===0}var Xb=!1;function jI(){Xb=!0}function $I(){Xb=!1}function L(r,e){r.appendChild(e)}function pi(r,e,t){r.insertBefore(e,t||null)}function Os(r){r.parentNode.removeChild(r)}function jh(r,e){for(let t=0;tr.removeEventListener(e,t,n)}function Qb(r){return function(e){return e.preventDefault(),r.call(this,e)}}function z(r,e,t){t==null?r.removeAttribute(e):r.getAttribute(e)!==t&&r.setAttribute(e,t)}function BI(r){return Array.from(r.childNodes)}function $h(r,e){e=""+e,r.wholeText!==e&&(r.data=e)}function Fr(r,e){r.value=e==null?"":e}function Gh(r,e){for(let t=0;t{let c=a.map(qh).filter(Vb);o?o.push(...c):Ss(c),r.$$.on_mount=[]}),l.forEach(no)}function tv(r,e){let t=r.$$;t.fragment!==null&&(Ss(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function JI(r,e){r.$$.dirty[0]===-1&&(eo.push(r),VI(),r.$$.dirty.fill(0)),r.$$.dirty[e/31|0]|=1<{let v=S.length?S[0]:T;return f.ctx&&s(f.ctx[g],f.ctx[g]=v)&&(!f.skip_bound&&f.bound[g]&&f.bound[g](v),m&&JI(r,g)),T}):[],f.update(),m=!0,Ss(f.before_update),f.fragment=n?n(f.ctx):!1,e.target){if(e.hydrate){jI();let g=BI(e.target);f.fragment&&f.fragment.l(g),g.forEach(Os)}else f.fragment&&f.fragment.c();e.intro&&XI(r.$$.fragment),QI(r,e.target,e.anchor,e.customElement),$I(),ev()}to(c)}var eF;typeof HTMLElement=="function"&&(eF=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let{on_mount:r}=this.$$;this.$$.on_disconnect=r.map(qh).filter(Vb);for(let e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(r,e,t){this[r]=t}disconnectedCallback(){Ss(this.$$.on_disconnect)}$destroy(){tv(this,1),this.$destroy=Es}$on(r,e){let t=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return t.push(e),()=>{let n=t.indexOf(e);n!==-1&&t.splice(n,1)}}$set(r){this.$$set&&!Zb(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}});var Au=class{$destroy(){tv(this,1),this.$destroy=Es}$on(e,t){let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let s=n.indexOf(t);s!==-1&&n.splice(s,1)}}$set(e){this.$$set&&!Zb(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var zh=os(mt());function nv(r,e,t){let n=r.slice();return n[45]=e[t],n}function sv(r,e,t){let n=r.slice();return n[48]=e[t].value,n[49]=e[t].label,n[50]=e[t].symbol,n}function tF(r){let e,t=r[50]+"",n;return{c(){e=ae("span"),n=er(t)},m(s,a){pi(s,e,a),L(e,n)},p:Es,d(s){s&&Os(e)}}}function iv(r){let e,t,n,s,a,o,l,c,f=r[49]+"",m,g,T=r[50]&&r[50].charCodeAt(0)>=256,S,v,R,C,$=T&&tF(r);return{c(){e=ae("span"),t=ae("input"),o=Se(),l=ae("label"),c=ae("span"),m=er(f),g=Se(),$&&$.c(),v=Se(),z(t,"type","radio"),z(t,"id",n="priority-"+r[48]),t.__value=s=r[48],t.value=t.__value,z(t,"accesskey",a=r[15](r[49].charAt(0).toLowerCase())),r[33][0].push(t),z(c,"class","accesskey-first"),z(l,"for",S="priority-"+r[48])},m(B,W){pi(B,e,W),L(e,t),t.checked=t.__value===r[1].priority,L(e,o),L(e,l),L(l,c),L(c,m),L(l,g),$&&$.m(l,null),L(e,v),R||(C=zt(t,"change",r[32]),R=!0)},p(B,W){W[0]&32768&&a!==(a=B[15](B[49].charAt(0).toLowerCase()))&&z(t,"accesskey",a),W[0]&3&&(t.checked=t.__value===B[1].priority),T&&$.p(B,W)},d(B){B&&Os(e),r[33][0].splice(r[33][0].indexOf(t),1),$&&$.d(),R=!1,C()}}}function av(r){let e,t=r[45].name+"",n,s,a=r[45].symbol+"",o,l,c;return{c(){e=ae("option"),n=er(t),s=er(" ["),o=er(a),l=er("]"),e.__value=c=r[45],e.value=e.__value},m(f,m){pi(f,e,m),L(e,n),L(e,s),L(e,o),L(e,l)},p(f,m){m[0]&1&&t!==(t=f[45].name+"")&&$h(n,t),m[0]&1&&a!==(a=f[45].symbol+"")&&$h(o,a),m[0]&1&&c!==(c=f[45])&&(e.__value=c,e.value=e.__value)},d(f){f&&Os(e)}}}function rF(r){let e,t,n,s,a,o,l,c,f,m,g,T,S,v,R,C,$,B,W,De,Te,be,ee,te,Ft,gt,V,q,P,Q,Y,oe,y,_,w,D,E,M,k,I,A,N,j,ke,pe,le,Ie,K,qe,Qe,dt,Or,at,je,ft,_t,Sn,Pi,$e,Fs,Jn,ht,ce,Zr,Rt,es,uo,Ur,On,Tt,Ai,dr,Xr,Ye,Mn,Ls,ts,Rn,rs,fr,xn,lo,Qr,co,hr,pr,H,Ys,fo,pt,ns,Ae,mr=r[20],Lt=[];for(let G=0;Gtion',a=Se(),o=ae("textarea"),c=Se(),f=ae("div"),m=ae("label"),g=er("Priority"),S=Se();for(let G=0;Gart',Ie=Se(),K=ae("input"),Qe=Se(),dt=ae("code"),Or=er(r[17]),at=Se(),je=new ks(!1),ft=Se(),_t=ae("div"),Sn=ae("label"),Sn.innerHTML=`Only + future dates:`,Pi=Se(),$e=ae("input"),Jn=Se(),ht=ae("div"),ce=ae("label"),ce.innerHTML='Status',Zr=Se(),Rt=ae("select");for(let G=0;Gr[39].call(Rt)),z(ht,"class","tasks-modal-section"),z(Tt,"for","status"),z(dr,"id","status"),z(dr,"type","checkbox"),z(dr,"class","task-list-item-checkbox tasks-modal-checkbox"),dr.checked=Xr=r[1].status.isCompleted(),dr.disabled=!0,z(Ur,"class","tasks-modal-section tasks-modal-status"),pr.disabled=Ys=!r[14],z(pr,"type","submit"),z(pr,"class","mod-cta"),z(pt,"type","button"),z(hr,"class","tasks-modal-section tasks-modal-buttons"),Lr(t,"with-accesskeys",r[9]),z(e,"class","tasks-modal")},m(G,ne){pi(G,e,ne),L(e,t),L(t,n),L(n,s),L(n,a),L(n,o),Fr(o,r[1].description),r[31](o),L(t,c),L(t,f),L(f,m),L(m,g),L(f,S);for(let ue=0;ueno ${K} date`;let dt=zh.parseDate(qe,Qe,{forwardDate:Qe!=null});return dt!==null?window.moment(dt).format("YYYY-MM-DD"):`invalid ${K} date`}function Y(K,qe){return Q(K,qe,v.forwardOnly?new Date:void 0)}function oe(K){let qe=null,Qe=zh.parseDate(K,new Date,{forwardDate:v.forwardOnly});return Qe!==null&&(qe=window.moment(Qe)),qe}Bh(()=>{let{provideAccessKeys:K}=he();t(9,V=K);let qe=Le.removeAsWordFrom(a.description);(qe!=a.description||!Le.includedIn(a.description))&&(gt=!0);let Qe="none";a.priority==="4"?Qe="low":a.priority==="2"?Qe="medium":a.priority==="1"&&(Qe="high"),t(1,v={description:qe,status:a.status,priority:Qe,recurrenceRule:a.recurrence?a.recurrence.toText():"",createdDate:a.createdDate?a.createdDate.format("YYYY-MM-DD"):"",startDate:a.startDate?a.startDate.format("YYYY-MM-DD"):"",scheduledDate:a.scheduledDate?a.scheduledDate.format("YYYY-MM-DD"):"",dueDate:a.dueDate?a.dueDate.format("YYYY-MM-DD"):"",doneDate:a.doneDate?a.doneDate.format("YYYY-MM-DD"):"",forwardOnly:!0}),setTimeout(()=>{S.focus()},10)});let y=K=>{if(K.key&&!K.altKey&&!K.ctrlKey){let qe=P.find(Qe=>Qe.label.charAt(0).toLowerCase()==K.key);qe&&t(1,v.priority=qe.value,v)}},_=()=>{o([])},w=K=>{K.key==="Enter"&&(K.preventDefault(),q&&E())},D=()=>{setTimeout(()=>{t(1,v.description=v.description.replace(/[\r\n]+/g," "),v)},0)},E=()=>{let K=v.description.trim();gt&&(K=Le.prependTo(K));let qe=oe(v.startDate),Qe=oe(v.scheduledDate),dt=oe(v.dueDate),Or=null;v.recurrenceRule&&(Or=Ot.fromText({recurrenceRuleText:v.recurrenceRule,startDate:qe,scheduledDate:Qe,dueDate:dt}));let at;switch(v.priority){case"low":at="4";break;case"medium":at="2";break;case"high":at="1";break;default:at="3"}let je=new Ge(Object.assign(Object.assign({},a),{description:K,status:v.status,priority:at,recurrence:Or,startDate:qe,scheduledDate:Qe,dueDate:dt,doneDate:window.moment(v.doneDate,"YYYY-MM-DD").isValid()?window.moment(v.doneDate,"YYYY-MM-DD"):null}));o([je])},M=[[]];function k(){v.description=this.value,t(1,v),t(6,Te),t(2,$),t(4,W),t(0,l)}function I(K){Pu[K?"unshift":"push"](()=>{S=K,t(10,S)})}function A(){v.priority=this.__value,t(1,v),t(6,Te),t(2,$),t(4,W),t(0,l)}function N(){v.recurrenceRule=this.value,t(1,v),t(6,Te),t(2,$),t(4,W),t(0,l)}function j(){v.dueDate=this.value,t(1,v),t(6,Te),t(2,$),t(4,W),t(0,l)}function ke(){v.scheduledDate=this.value,t(1,v),t(6,Te),t(2,$),t(4,W),t(0,l)}function pe(){v.startDate=this.value,t(1,v),t(6,Te),t(2,$),t(4,W),t(0,l)}function le(){v.forwardOnly=this.checked,t(1,v),t(6,Te),t(2,$),t(4,W),t(0,l)}function Ie(){v.status=Jb(this),t(1,v),t(6,Te),t(2,$),t(4,W),t(0,l)}return r.$$set=K=>{"task"in K&&t(26,a=K.task),"onSubmit"in K&&t(27,o=K.onSubmit),"statusOptions"in K&&t(0,l=K.statusOptions)},r.$$.update=()=>{if(r.$$.dirty[0]&512){e:t(15,n=K=>V?K:null)}if(r.$$.dirty[0]&66){e:t(1,v.dueDate=oi(v.dueDate),v),t(6,Te=Y("due",v.dueDate)),t(7,be=!Te.includes("invalid"))}if(r.$$.dirty[0]&6){e:t(1,v.startDate=oi(v.startDate),v),t(2,$=Y("start",v.startDate)),t(3,B=!$.includes("invalid"))}if(r.$$.dirty[0]&18){e:t(1,v.scheduledDate=oi(v.scheduledDate),v),t(4,W=Y("scheduled",v.scheduledDate)),t(5,De=!W.includes("invalid"))}if(r.$$.dirty[0]&268435458){e:if(t(8,te=!0),!v.recurrenceRule)t(12,ee="not recurring");else{let K=t(28,s=Ot.fromText({recurrenceRuleText:v.recurrenceRule,startDate:null,scheduledDate:null,dueDate:null}))===null||s===void 0?void 0:s.toText();K?t(12,ee=K):(t(12,ee="invalid recurrence rule"),t(8,te=!1))}}if(r.$$.dirty[0]&2){e:t(29,R=v.description.trim()!=="")}if(r.$$.dirty[0]&536871336){e:t(14,q=be&&te&&De&&B&&R)}if(r.$$.dirty[0]&2){e:t(11,C=Q("created",v.createdDate)),t(13,Ft=Q("done",v.doneDate))}},[l,v,$,B,W,De,Te,be,te,V,S,C,ee,Ft,q,n,f,m,g,T,P,y,_,w,D,E,a,o,s,R,k,I,A,M,N,j,ke,pe,le,Ie]}var Vh=class extends Au{constructor(e){super(),rv(this,e,nF,rF,Kb,{task:26,onSubmit:27,statusOptions:0},null,[-1,-1])}},ov=Vh;var Vn=class extends uv.Modal{constructor({app:t,task:n,onSubmit:s}){super(t);this.task=n,this.onSubmit=a=>{a.length&&s(a),this.close()}}onOpen(){this.titleEl.setText("Create or edit Task");let{contentEl:t}=this,n=this.getKnownStatusesAndCurrentTaskStatusIfNotKnown();new ov({target:t,props:{task:this.task,statusOptions:n,onSubmit:this.onSubmit}})}getKnownStatusesAndCurrentTaskStatusIfNotKnown(){let t=Be.getInstance().registeredStatuses;return Be.getInstance().bySymbol(this.task.status.symbol)===fe.EMPTY&&t.push(this.task.status),t}onClose(){let{contentEl:t}=this;t.empty()}};var Nu=({line:r,path:e})=>{var v,R;let t=Jt.fromPath(e),n=Ge.fromLine({line:r,taskLocation:It.fromUnknownPosition(e),fallbackDate:t});if(n!==null)return n;let{setCreatedDate:s}=he(),a=null;s&&(a=window.moment());let o=r.match(ie.nonTaskRegex);if(o===null)return console.error("Tasks: Cannot create task on line:",r),new Ge({status:fe.TODO,description:"",taskLocation:It.fromUnknownPosition(e),indentation:"",listMarker:"-",priority:"3",createdDate:a,startDate:null,scheduledDate:null,dueDate:null,doneDate:null,recurrence:null,blockLink:"",tags:[],originalMarkdown:"",scheduledDateIsInferred:!1});let l=o[1],c=(v=o[2])!=null?v:"-",f=(R=o[4])!=null?R:" ",m=Be.getInstance().bySymbolOrCreate(f),g=o[5],T=r.match(ie.blockLinkRegex),S=T!==null?T[0]:"";return S!==""&&(g=g.replace(ie.blockLinkRegex,"")),new Ge({status:m,description:g,taskLocation:It.fromUnknownPosition(e),indentation:l,listMarker:c,blockLink:S,priority:"3",createdDate:a,startDate:null,scheduledDate:null,dueDate:null,doneDate:null,recurrence:null,tags:[],originalMarkdown:"",scheduledDateIsInferred:!1})};var lv=(r,e,t,n)=>{var g;if(r)return t instanceof Kh.MarkdownView;if(!(t instanceof Kh.MarkdownView))return;let s=(g=t.file)==null?void 0:g.path;if(s===void 0)return;let o=e.getCursor().line,l=e.getLine(o),c=Nu({line:l,path:s}),f=T=>{let S=Jt.removeInferredStatusIfNeeded(c,T).map(v=>v.toFileLineString()).join(` +`);e.setLine(o,S)};new Vn({app:n,task:c,onSubmit:f}).open()};var Zh=require("obsidian");var cv=(r,e,t)=>{var c;if(r)return t instanceof Zh.MarkdownView;if(!(t instanceof Zh.MarkdownView))return;let n=(c=t.file)==null?void 0:c.path;if(n===void 0)return;let s=e.getCursor(),a=s.line,o=e.getLine(a),l=sF(o,n);e.setLine(a,l.text),e.setCursor(iF(s,l))},sF=(r,e)=>{let t=Ge.fromLine({line:r,taskLocation:It.fromUnknownPosition(e),fallbackDate:null});if(t!==null){let n=t.toggle().map(s=>s.toFileLineString());return{text:n.join(` +`),moveTo:{line:n.length-1}}}else{let n=r.match(ie.taskRegex);if(n!==null){let s=n[3],o=Be.getInstance().bySymbol(s).nextStatusSymbol;return{text:r.replace(ie.taskRegex,`$1- [${o}] $4`)}}else if(ie.listItemRegex.test(r)){let s=r.replace(ie.listItemRegex,"$1$2 [ ]");return{text:s,moveTo:{ch:s.length}}}else{let s=r.replace(ie.indentationRegex,"$1- ");return{text:s,moveTo:{ch:s.length}}}}},iF=(r,e)=>{var a;let t={line:0,ch:r.ch},n=Ne(Ne({},t),(a=e.moveTo)!=null?a:{}),s=e.text.split(` +`)[n.line].length;return{line:r.line+n.line,ch:Math.min(n.ch,s)}};var Cu=class{get app(){return this.plugin.app}constructor({plugin:e}){this.plugin=e,e.addCommand({id:"edit-task",name:"Create or edit task",icon:"pencil",editorCheckCallback:(t,n,s)=>lv(t,n,s,this.app)}),e.addCommand({id:"toggle-done",name:"Toggle task done",icon:"check-in-circle",editorCheckCallback:cv})}};var Iu=class{constructor({obsidianEvents:e}){this.obsidianEvents=e}onCacheUpdate(e){return this.obsidianEvents.on("obsidian-tasks-plugin:cache-update",e)}triggerCacheUpdate(e){this.obsidianEvents.trigger("obsidian-tasks-plugin:cache-update",e)}onRequestCacheUpdate(e){return this.obsidianEvents.on("obsidian-tasks-plugin:request-cache-update",e)}triggerRequestCacheUpdate(e){this.obsidianEvents.trigger("obsidian-tasks-plugin:request-cache-update",e)}off(e){this.obsidianEvents.offref(e)}};var Fu=class{constructor({plugin:e}){this.markdownPostProcessor=this._markdownPostProcessor.bind(this);e.registerMarkdownPostProcessor(this._markdownPostProcessor.bind(this))}_markdownPostProcessor(e,t){return J(this,null,function*(){var f;let n=e.findAll(".task-list-item").filter(m=>{var S;let g=(S=m.textContent)==null?void 0:S.split(` +`);if(g===void 0)return!1;let T=null;for(let v=0;vdv.ViewPlugin.fromClass(Xh),Xh=class{constructor(e){this.view=e,this.handleClickEvent=this.handleClickEvent.bind(this),this.view.dom.addEventListener("click",this.handleClickEvent)}destroy(){this.view.dom.removeEventListener("click",this.handleClickEvent)}handleClickEvent(e){let{target:t}=e;if(!t||!(t instanceof HTMLInputElement)||t.type!=="checkbox")return!1;let n=t.closest("ul.plugin-tasks-query-result, div.callout-content");if(n){if(n.matches("div.callout-content")){let T=`obsidian-tasks-plugin warning: Tasks cannot add or remove completion dates or make the next copy of a recurring task for tasks written inside a callout when you click their checkboxes in Live Preview. +If you wanted Tasks to do these things, please undo your change, then either click the line of the task and use the "Toggle Task Done" command, or switch to Reading View to click the checkbox.`;console.warn(T),new fv.Notice(T,45e3)}return!1}let{state:s}=this.view,a=this.view.posAtDOM(t),o=s.doc.lineAt(a),l=Ge.fromLine({line:o.text,taskLocation:It.fromUnknownPosition(""),fallbackDate:null});if(console.debug(`Live Preview Extension: toggle called. Position: ${a} Line: ${o.text}`),l===null)return!1;e.preventDefault();let f=l.toggle().map(T=>T.toFileLineString()).join(s.lineBreak),m=s.update({changes:{from:o.from,to:o.to,insert:f}});this.view.dispatch(m);let g=t.checked;return setTimeout(()=>{t.checked=g},1),!0}};var ll=require("obsidian");var Tn=class{constructor(e,t,n){this.property=e,this.comparator=Tn.maybeReverse(n,t)}static maybeReverse(e,t){return e?Tn.makeReversedComparator(t):t}static makeReversedComparator(e){return(t,n)=>e(t,n)*-1}};var mi=class{constructor(e,t){this.property=e,this.grouper=t}};var Ke=class{canCreateFilterForLine(e){return Ke.lineMatchesFilter(this.filterRegExp(),e)}static lineMatchesFilter(e,t){return e?e.test(t):!1}static getMatch(e,t){return e?t.match(e):null}fieldNameSingular(){return this.fieldName()}fieldNameSingularEscaped(){return Su(this.fieldNameSingular())}supportsSorting(){return!1}parseSortLine(e){return!this.supportsSorting()||!this.canCreateSorterForLine(e)?null:this.createSorterFromLine(e)}canCreateSorterForLine(e){return this.supportsSorting()?Ke.lineMatchesFilter(this.sorterRegExp(),e):!1}createSorterFromLine(e){if(!this.supportsSorting())return null;let t=Ke.getMatch(this.sorterRegExp(),e);if(t===null)return null;let n=!!t[1];return this.createSorter(n)}sorterRegExp(){if(!this.supportsSorting())throw Error(`sorterRegExp() unimplemented for ${this.fieldNameSingular()}`);return new RegExp(`^sort by ${this.fieldNameSingularEscaped()}( reverse)?`)}comparator(){throw Error(`comparator() unimplemented for ${this.fieldNameSingular()}`)}createSorter(e){return new Tn(this.fieldNameSingular(),this.comparator(),e)}createNormalSorter(){return this.createSorter(!1)}createReverseSorter(){return this.createSorter(!0)}supportsGrouping(){return!1}grouper(){throw Error(`grouper() unimplemented for ${this.fieldNameSingular()}`)}createGrouper(){return new mi(this.fieldNameSingular(),this.grouper())}};var Ze=class{constructor(e,t=[],n=""){this.description=e,this.symbol=n,this.children=t}static booleanAnd(e){return this.combineOrCreateExplanation("All of",e,"AND")}static booleanOr(e){return this.combineOrCreateExplanation("At least one of",e,"OR")}static booleanNot(e){return new Ze("None of",e,"NOT")}static booleanXor(e){return new Ze("Exactly one of",e,"XOR")}asString(e=""){if(this.children.length==0)return e+this.description;let t=e;this.symbol===""?t+=this.description:(t+=this.symbol,this.children.length>1&&(t+=` (${this.description})`),t+=":");let n=e+" ";for(let s=0;s ${t.asString(" ")} -`}},Ke=class{constructor(e){this.instruction=e}get filter(){return this._filter}set filter(e){this._filter=e}get filterFunction(){if(this._filter)return this._filter.filterFunction}static fromFilter(e){let t=new Ke(e.instruction);return t.filter=e,t}static fromError(e,t){let n=new Ke(e);return n.error=t,n}};var Iu=class{constructor(e,t){this._instruction=e,this._filter=t}canCreateFilterForLine(e){return e==this._instruction}createFilterOrErrorMessage(e){let t=new Ke(e);return e===this._instruction?(t.filter=new Jt(e,this._filter,new at(e)),t):(t.error=`do not understand filter: ${e}`,t)}};var Gr=class{constructor(){this._filters=[]}add(e,t){this._filters.push(new Iu(e,t))}canCreateFilterForLine(e){for(let t of this._filters)if(t.canCreateFilterForLine(e))return!0;return!1}createFilterOrErrorMessage(e){for(let n of this._filters){let s=n.createFilterOrErrorMessage(e);if(s.error===void 0)return s}let t=new Ke(e);return t.error=`do not understand filter: ${e}`,t}};var Gn=class extends Ve{constructor(){super(...arguments);this._filters=new Gr}canCreateFilterForLine(t){return this._filters.canCreateFilterForLine(t)}createFilterOrErrorMessage(t){return this._filters.createFilterOrErrorMessage(t)}filterRegExp(){return null}};var gn=class extends Gn{constructor(){super(),this._filters.add("done",e=>e.status.type==="DONE"||e.status.type==="CANCELLED"||e.status.type==="NON_TASK"),this._filters.add("not done",e=>e.status.type==="TODO"||e.status.type==="IN_PROGRESS")}fieldName(){return"status"}supportsSorting(){return!0}comparator(){return(e,t)=>{let n=gn.oldStatusName(e),s=gn.oldStatusName(t);return ns?-1:0}}static oldStatusName(e){return e.status.symbol===" "?"Todo":"Done"}};var Ut=class extends Ve{constructor(t=null){super();t!==null?this.filterInstructions=t:(this.filterInstructions=new Gr,this.filterInstructions.add(`has ${this.fieldName()} date`,n=>this.date(n)!==null),this.filterInstructions.add(`no ${this.fieldName()} date`,n=>this.date(n)===null),this.filterInstructions.add(`${this.fieldName()} date is invalid`,n=>{let s=this.date(n);return s!==null&&!s.isValid()}))}canCreateFilterForLine(t){return this.filterInstructions.canCreateFilterForLine(t)?!0:super.canCreateFilterForLine(t)}createFilterOrErrorMessage(t){let n=this.filterInstructions.createFilterOrErrorMessage(t);if(n.filter!==void 0)return n;let s=new Ke(t),a=Ve.getMatch(this.filterRegExp(),t);if(a!==null){let o=a[1],l=a[2],c=ms.parseDateRange(l);if(!c[0].isValid()||!c[1].isValid())s.error="do not understand "+this.fieldName()+" date";else{let f=this.buildFilterFunction(o,c),m=Ut.buildExplanation(this.fieldNameForExplanation(),o,this.filterResultIfFieldMissing(),c);s.filter=new Jt(t,f,new at(m))}}else s.error="do not understand query filter ("+this.fieldName()+" date)";return s}buildFilterFunction(t,n){let s;return t==="before"?s=a=>a?a.isBefore(n[0]):this.filterResultIfFieldMissing():t==="after"?s=a=>a?a.isAfter(n[1]):this.filterResultIfFieldMissing():s=a=>a?a.isSameOrAfter(n[0])&&a.isSameOrBefore(n[1]):this.filterResultIfFieldMissing(),this.getFilter(s)}getFilter(t){return n=>t(this.date(n))}filterRegExp(){return new RegExp(`^${this.fieldNameForFilterInstruction()} (before|after|on|in)? ?(.*)`)}fieldNameForFilterInstruction(){return this.fieldName()}static buildExplanation(t,n,s,a){let o,l="YYYY-MM-DD (dddd Do MMMM YYYY)",c;switch(n){case"before":o=n,c=a[0].format(l);break;case"after":o=n,c=a[1].format(l);break;default:a[0].isSame(a[1])?(o="on",c=a[0].format(l)):(o="between",c=`${a[0].format(l)} and ${a[1].format(l)} inclusive`);break}let f=`${t} date is ${o} ${c}`;return s&&(f+=` OR no ${t} date`),f}fieldNameForExplanation(){return this.fieldName()}supportsSorting(){return!0}comparator(){return(t,n)=>$r(this.date(t),this.date(n))}};var pi=class extends Ut{fieldName(){return"due"}date(e){return e.dueDate}filterResultIfFieldMissing(){return!1}};var Zh=class extends Ve{createFilterOrErrorMessage(e){let t=new Ke(e),n=Ve.getMatch(this.filterRegExp(),e);if(n!==null){let s=n[5],a=null;switch(s){case"low":a="4";break;case"none":a="3";break;case"medium":a="2";break;case"high":a="1";break}if(a===null)return t.error="do not understand priority",t;let o=e,l;switch(n[3]){case"above":l=c=>c.priority.localeCompare(a)<0;break;case"below":l=c=>c.priority.localeCompare(a)>0;break;case"not":l=c=>c.priority!==a;break;default:l=c=>c.priority===a,o=`${this.fieldName()} is ${s}`}t.filter=new Jt(e,l,new at(o))}else t.error="do not understand query filter (priority)";return t}fieldName(){return"priority"}filterRegExp(){return Zh.priorityRegexp}supportsSorting(){return!0}comparator(){return(e,t)=>e.priority.localeCompare(t.priority)}},Es=Zh;Es.priorityRegexp=/^priority(\s+is)?(\s+(above|below|not))?(\s+(low|none|medium|high))$/;var mi=class{matchesAnyOf(e){return e.some(t=>this.matches(t))}};var yi=class extends mi{constructor(t){super();this.stringToFind=t}matches(t){return yi.stringIncludesCaseInsensitive(t,this.stringToFind)}static stringIncludesCaseInsensitive(t,n){return t.toLocaleLowerCase().includes(n.toLocaleLowerCase())}};var gi=class extends mi{constructor(t){super();this.regex=t}static validateAndConstruct(t){let n=/\/((?![*+?])(?:[^\r\n[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*])+)\/((?:g(?:im?|mi?)?|i(?:gm?|mg?)?|m(?:gi?|ig?)?)?)/,s=t.match(n);if(s!==null){let a=new RegExp(s[1],s[2]);return new gi(a)}else return null}matches(t){return t.match(this.regex)!==null}};var Wt=class extends Ve{createFilterOrErrorMessage(e){let t=Ve.getMatch(this.filterRegExp(),e);if(t===null)return Ke.fromError(e,`do not understand query filter (${this.fieldName()})`);let[n,s,a]=t,o=null;if(s.includes("include"))o=new yi(a);else if(s.includes("regex")&&(o=gi.validateAndConstruct(a),o===null))return Ke.fromError(e,`cannot parse regex (${this.fieldName()}); check your leading and trailing slashes for your query`);if(o===null)return Ke.fromError(e,`do not understand query filter (${this.fieldName()})`);let l=s.match(/not/)!==null,c=new Jt(e,this.getFilter(o,l),new at(e));return Ke.fromFilter(c)}fieldPattern(){return this.fieldNameSingularEscaped()}filterOperatorPattern(){return"includes|does not include|regex matches|regex does not match"}filterRegExp(){return new RegExp(`^(?:${this.fieldPattern()}) (${this.filterOperatorPattern()}) (.*)`)}getFilter(e,t){return n=>{let s=e.matches(this.value(n));return t?!s:s}}comparator(){return(e,t)=>this.value(e).localeCompare(this.value(t),void 0,{numeric:!0})}grouper(){return e=>[this.value(e)]}};var _i=class extends Wt{fieldName(){return"path"}value(e){return e.path}supportsSorting(){return!0}};var Ti=class extends Ve{canCreateFilterForLine(e){return!1}createFilterOrErrorMessage(e){return Ke.fromError(e,"Filtering by urgency is not yet supported")}fieldName(){return"urgency"}filterRegExp(){throw Error(`filterRegExp() unimplemented for ${this.fieldName()}`)}supportsSorting(){return!0}comparator(){return(e,t)=>t.urgency-e.urgency}};var bi=class{static by(e,t){let n=[new Ti().comparator(),new gn().comparator(),new pi().comparator(),new Es().comparator(),new _i().comparator()],s=[];for(let a of e)s.push(a.comparator);return t.sort(bi.makeCompositeComparator([...s,...n]))}static makeCompositeComparator(e){return(t,n)=>{for(let s of e){let a=s(t,n);if(a!==0)return a}return 0}}};var Ss=class extends Wt{fieldName(){return"description"}value(e){let t=se().globalFilter;return e.description.replace(t,"").trim()}supportsSorting(){return!0}comparator(){return(e,t)=>{let n=Ss.cleanDescription(e.description),s=Ss.cleanDescription(t.description);return n.localeCompare(s,void 0,{numeric:!0})}}static cleanDescription(e){let t=se().globalFilter;e=e.replace(t,"").trim();let n=/^\[\[?([^\]]*)]]?/,s=e.match(n);if(s!==null){let a=s[1];e=a.substring(a.indexOf("|")+1)+e.replace(n,"")}return e=this.replaceFormatting(e,/^\*\*([^*]+)\*\*/),e=this.replaceFormatting(e,/^\*([^*]+)\*/),e=this.replaceFormatting(e,/^==([^=]+)==/),e=this.replaceFormatting(e,/^__([^_]+)__/),e=this.replaceFormatting(e,/^_([^_]+)_/),e}static replaceFormatting(e,t){let n=e.match(t);return n!==null&&(e=n[1]+e.replace(t,"")),e}};var Fu=class extends Ut{fieldName(){return"created"}date(e){return e.createdDate}filterResultIfFieldMissing(){return!1}};var Lu=class extends Ut{fieldName(){return"done"}date(e){return e.doneDate}filterResultIfFieldMissing(){return!1}};var Yu=class extends Gn{constructor(){super(),this._filters.add("exclude sub-items",e=>{if(e.indentation==="")return!0;let t=e.indentation.lastIndexOf(">");return t===-1?!1:/^ ?$/.test(e.indentation.slice(t+1))})}fieldName(){return"exclude"}};var Uu=class extends Wt{fieldName(){return"heading"}value(e){return e.precedingHeader?e.precedingHeader:""}supportsSorting(){return!0}};var Wu=class extends Ut{fieldName(){return"scheduled"}date(e){return e.scheduledDate}filterResultIfFieldMissing(){return!1}};var qu=class extends Ut{fieldName(){return"start"}fieldNameForFilterInstruction(){return"starts"}date(e){return e.startDate}filterResultIfFieldMissing(){return!0}};var Hn=class extends Ut{constructor(){let e=new Gr;e.add("has happens date",t=>this.dates(t).some(n=>n!==null)),e.add("no happens date",t=>!this.dates(t).some(n=>n!==null)),super(e)}fieldName(){return"happens"}fieldNameForExplanation(){return"due, start or scheduled"}date(e){return this.earliestDate(e)}dates(e){return Array.of(e.startDate,e.scheduledDate,e.dueDate)}earliestDate(e){return new Hn().dates(e).sort($r)[0]}filterResultIfFieldMissing(){return!1}getFilter(e){return t=>this.dates(t).some(n=>e(n))}};var ju=class extends Gn{constructor(){super(),this._filters.add("is recurring",e=>e.recurrence!==null),this._filters.add("is not recurring",e=>e.recurrence===null)}fieldName(){return"recurring"}};var $u=class extends Wt{fieldNamePlural(){return this.fieldNameSingular()+"s"}fieldName(){return`${this.fieldNameSingular()}/${this.fieldNamePlural()}`}fieldPattern(){return`${this.fieldNameSingular()}|${this.fieldNamePlural()}`}filterOperatorPattern(){return`${super.filterOperatorPattern()}|include|do not include`}value(e){return this.values(e).join(", ")}getFilter(e,t){return n=>{let s=e.matchesAnyOf(this.values(n));return t?!s:s}}};var Os=class extends $u{constructor(){super();this.filterInstructions=new Gr,this.filterInstructions.add(`has ${this.fieldNameSingular()}`,t=>this.values(t).length>0),this.filterInstructions.add(`has ${this.fieldNamePlural()}`,t=>this.values(t).length>0),this.filterInstructions.add(`no ${this.fieldNameSingular()}`,t=>this.values(t).length===0),this.filterInstructions.add(`no ${this.fieldNamePlural()}`,t=>this.values(t).length===0)}createFilterOrErrorMessage(t){let n=this.filterInstructions.createFilterOrErrorMessage(t);return n.filter!==void 0?n:super.createFilterOrErrorMessage(t)}canCreateFilterForLine(t){return this.filterInstructions.canCreateFilterForLine(t)?!0:super.canCreateFilterForLine(t)}fieldNameSingular(){return"tag"}values(t){return t.tags}supportsSorting(){return!0}createSorterFromLine(t){let n=t.match(this.sorterRegExp());if(n===null)return null;let s=!!n[1],a=isNaN(+n[2])?1:+n[2],o=Os.makeCompareByTagComparator(a);return new yn(this.fieldNameSingular(),o,s)}sorterRegExp(){return/^sort by tag( reverse)?[\s]*(\d+)?/}comparator(){return Os.makeCompareByTagComparator(1)}static makeCompareByTagComparator(t){return(n,s)=>{if(n.tags.length===0&&s.tags.length===0)return 0;if(n.tags.length===0)return 1;if(s.tags.length===0)return-1;let a=t-1;if(n.tags.length=t)return 1;if(s.tags.length=t)return-1;if(n.tags.lengththis.filterTaskWithParsedQuery(c,a),l=this.constructExplanation(a);return n.filter=new Jt(t,o,l),n}catch(a){let o=a instanceof Error?a.message:"unknown error type";return n.error=`malformed boolean query -- ${o} (check the documentation for guidelines)`,n}return n}preprocessExpression(t){return t.replace(/\(([^()]+)\)/g,'("$1")')}filterTaskWithParsedQuery(t,n){let s=l=>l==="true",a=l=>l?"true":"false",o=[];for(let l of n)if(l.name==="IDENTIFIER"){if(l.value==null)throw Error("null token value");let f=this.subFields[l.value.trim()].filterFunction(t);o.push(a(f))}else if(l.name==="OPERATOR")if(l.value==="NOT"){let c=s(o.pop());o.push(a(!c))}else if(l.value==="OR"){let c=s(o.pop()),f=s(o.pop());o.push(a(c||f))}else if(l.value==="AND"){let c=s(o.pop()),f=s(o.pop());o.push(a(c&&f))}else if(l.value==="XOR"){let c=s(o.pop()),f=s(o.pop());o.push(a(c&&!f||!c&&f))}else throw Error("Unsupported operator: "+l.value);else throw Error("Unsupported token type: "+l);return s(o[0])}constructExplanation(t){let n=[];for(let s of t)if(s.name==="IDENTIFIER"){if(s.value==null)throw Error("null token value");let a=this.subFields[s.value.trim()];n.push(a.explanation)}else if(s.name==="OPERATOR")if(s.value==="NOT"){let a=n.pop();n.push(at.booleanNot([a]))}else if(s.value==="OR"){let a=n.pop(),o=n.pop();n.push(at.booleanOr([o,a]))}else if(s.value==="AND"){let a=n.pop(),o=n.pop();n.push(at.booleanAnd([o,a]))}else if(s.value==="XOR"){let a=n.pop(),o=n.pop();n.push(at.booleanXor([o,a]))}else throw Error("Unsupported operator: "+s.value);else throw Error("Unsupported token type: "+s);return n[0]}};var Ku=class extends Wt{fieldName(){return"filename"}value(e){let t=e.filename;return t===null?"":t+".md"}supportsSorting(){return!0}};var Zu=class extends Wt{constructor(){super()}fieldName(){return"status.name"}value(e){return e.status.name}supportsSorting(){return!0}supportsGrouping(){return!0}};var Vn=class extends Ve{canCreateFilterForLine(e){let t=new RegExp(`^(?:${this.fieldNameSingularEscaped()})`);return Ve.lineMatchesFilter(t,e)}createFilterOrErrorMessage(e){let t=Ve.getMatch(this.filterRegExp(),e);if(t===null)return this.helpMessage(e);let[n,s,a]=t,o=kr[a.toUpperCase()];if(!o)return this.helpMessage(e);let l;switch(s){case"is":l=c=>c.status.type===o;break;case"is not":l=c=>c.status.type!==o;break;default:return this.helpMessage(e)}return Ke.fromFilter(new Jt(e,l,new at(e)))}filterRegExp(){return new RegExp(`^(?:${this.fieldNameSingularEscaped()}) (is|is not) ([^ ]+)$`)}helpMessage(e){let t=Object.values(kr).filter(s=>s!=="EMPTY").join(" "),n=`Invalid ${this.fieldNameSingular()} instruction: '${e}'. +`}},Xe=class{constructor(e){this.instruction=e}get filter(){return this._filter}set filter(e){this._filter=e}get filterFunction(){if(this._filter)return this._filter.filterFunction}static fromFilter(e){let t=new Xe(e.instruction);return t.filter=e,t}static fromError(e,t){let n=new Xe(e);return n.error=t,n}};var Lu=class{constructor(e,t){this._instruction=e,this._filter=t}canCreateFilterForLine(e){return e==this._instruction}createFilterOrErrorMessage(e){let t=new Xe(e);return e===this._instruction?(t.filter=new tr(e,this._filter,new Ze(e)),t):(t.error=`do not understand filter: ${e}`,t)}};var Vr=class{constructor(){this._filters=[]}add(e,t){this._filters.push(new Lu(e,t))}canCreateFilterForLine(e){for(let t of this._filters)if(t.canCreateFilterForLine(e))return!0;return!1}createFilterOrErrorMessage(e){for(let n of this._filters){let s=n.createFilterOrErrorMessage(e);if(s.error===void 0)return s}let t=new Xe(e);return t.error=`do not understand filter: ${e}`,t}};var Kn=class extends Ke{constructor(){super(...arguments);this._filters=new Vr}canCreateFilterForLine(t){return this._filters.canCreateFilterForLine(t)}createFilterOrErrorMessage(t){return this._filters.createFilterOrErrorMessage(t)}filterRegExp(){return null}};var bn=class extends Kn{constructor(){super(),this._filters.add("done",e=>e.status.type==="DONE"||e.status.type==="CANCELLED"||e.status.type==="NON_TASK"),this._filters.add("not done",e=>e.status.type==="TODO"||e.status.type==="IN_PROGRESS")}fieldName(){return"status"}supportsSorting(){return!0}comparator(){return(e,t)=>{let n=bn.oldStatusName(e),s=bn.oldStatusName(t);return ns?-1:0}}static oldStatusName(e){return e.status.symbol===" "?"Todo":"Done"}};var qt=class extends Ke{constructor(t=null){super();t!==null?this.filterInstructions=t:(this.filterInstructions=new Vr,this.filterInstructions.add(`has ${this.fieldName()} date`,n=>this.date(n)!==null),this.filterInstructions.add(`no ${this.fieldName()} date`,n=>this.date(n)===null),this.filterInstructions.add(`${this.fieldName()} date is invalid`,n=>{let s=this.date(n);return s!==null&&!s.isValid()}))}canCreateFilterForLine(t){return this.filterInstructions.canCreateFilterForLine(t)?!0:super.canCreateFilterForLine(t)}createFilterOrErrorMessage(t){let n=this.filterInstructions.createFilterOrErrorMessage(t);if(n.filter!==void 0)return n;let s=new Xe(t),a=Ke.getMatch(this.filterRegExp(),t);if(a!==null){let o=a[1],l=a[2],c=Xt.parseDateRange(l);if(!c[0].isValid()||!c[1].isValid())s.error="do not understand "+this.fieldName()+" date";else{let f=this.buildFilterFunction(o,c),m=qt.buildExplanation(this.fieldNameForExplanation(),o,this.filterResultIfFieldMissing(),c);s.filter=new tr(t,f,m)}}else s.error="do not understand query filter ("+this.fieldName()+" date)";return s}buildFilterFunction(t,n){let s;return t==="before"?s=a=>a?a.isBefore(n[0]):this.filterResultIfFieldMissing():t==="after"?s=a=>a?a.isAfter(n[1]):this.filterResultIfFieldMissing():s=a=>a?a.isSameOrAfter(n[0])&&a.isSameOrBefore(n[1]):this.filterResultIfFieldMissing(),this.getFilter(s)}getFilter(t){return n=>t(this.date(n))}filterRegExp(){return new RegExp(`^${this.fieldNameForFilterInstruction()} (before|after|on|in)? ?(.*)`)}fieldNameForFilterInstruction(){return this.fieldName()}static buildExplanation(t,n,s,a){let o,l="YYYY-MM-DD (dddd Do MMMM YYYY)",c;switch(n){case"before":o=n,c=a[0].format(l);break;case"after":o=n,c=a[1].format(l);break;default:if(a[0].isSame(a[1]))o="on",c=a[0].format(l);else{let m=`${t} date is between:`,g=[new Ze(`${a[0].format(l)} and`),new Ze(`${a[1].format(l)} inclusive`)];return s&&g.push(new Ze(`OR no ${t} date`)),new Ze(m,g)}break}let f=`${t} date is ${o} ${c}`;return s&&(f+=` OR no ${t} date`),new Ze(f)}fieldNameForExplanation(){return this.fieldName()}supportsSorting(){return!0}comparator(){return(t,n)=>Hr(this.date(t),this.date(n))}};var yi=class extends qt{fieldName(){return"due"}date(e){return e.dueDate}filterResultIfFieldMissing(){return!1}};var Qh=class extends Ke{createFilterOrErrorMessage(e){let t=new Xe(e),n=Ke.getMatch(this.filterRegExp(),e);if(n!==null){let s=n[5],a=null;switch(s){case"low":a="4";break;case"none":a="3";break;case"medium":a="2";break;case"high":a="1";break}if(a===null)return t.error="do not understand priority",t;let o=e,l;switch(n[3]){case"above":l=c=>c.priority.localeCompare(a)<0;break;case"below":l=c=>c.priority.localeCompare(a)>0;break;case"not":l=c=>c.priority!==a;break;default:l=c=>c.priority===a,o=`${this.fieldName()} is ${s}`}t.filter=new tr(e,l,new Ze(o))}else t.error="do not understand query filter (priority)";return t}fieldName(){return"priority"}filterRegExp(){return Qh.priorityRegexp}supportsSorting(){return!0}comparator(){return(e,t)=>e.priority.localeCompare(t.priority)}},Ms=Qh;Ms.priorityRegexp=/^priority(\s+is)?(\s+(above|below|not))?(\s+(low|none|medium|high))$/;var gi=class{matchesAnyOf(e){return e.some(t=>this.matches(t))}};var _i=class extends gi{constructor(t){super();this.stringToFind=t}matches(t){return _i.stringIncludesCaseInsensitive(t,this.stringToFind)}static stringIncludesCaseInsensitive(t,n){return t.toLocaleLowerCase().includes(n.toLocaleLowerCase())}};var Ti=class extends gi{constructor(t){super();this.regex=t}static validateAndConstruct(t){let n=/\/((?![*+?])(?:[^\r\n[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*])+)\/((?:g(?:im?|mi?)?|i(?:gm?|mg?)?|m(?:gi?|ig?)?)?)/,s=t.match(n);if(s!==null){let a=new RegExp(s[1],s[2]);return new Ti(a)}else return null}matches(t){return t.match(this.regex)!==null}};var jt=class extends Ke{createFilterOrErrorMessage(e){let t=Ke.getMatch(this.filterRegExp(),e);if(t===null)return Xe.fromError(e,`do not understand query filter (${this.fieldName()})`);let[n,s,a]=t,o=null;if(s.includes("include"))o=new _i(a);else if(s.includes("regex")&&(o=Ti.validateAndConstruct(a),o===null))return Xe.fromError(e,`cannot parse regex (${this.fieldName()}); check your leading and trailing slashes for your query`);if(o===null)return Xe.fromError(e,`do not understand query filter (${this.fieldName()})`);let l=s.match(/not/)!==null,c=new tr(e,this.getFilter(o,l),new Ze(e));return Xe.fromFilter(c)}fieldPattern(){return this.fieldNameSingularEscaped()}filterOperatorPattern(){return"includes|does not include|regex matches|regex does not match"}filterRegExp(){return new RegExp(`^(?:${this.fieldPattern()}) (${this.filterOperatorPattern()}) (.*)`)}getFilter(e,t){return n=>{let s=e.matches(this.value(n));return t?!s:s}}comparator(){return(e,t)=>this.value(e).localeCompare(this.value(t),void 0,{numeric:!0})}grouper(){return e=>[this.value(e)]}};var bi=class extends jt{fieldName(){return"path"}value(e){return e.path}supportsSorting(){return!0}};var vi=class extends Ke{canCreateFilterForLine(e){return!1}createFilterOrErrorMessage(e){return Xe.fromError(e,"Filtering by urgency is not yet supported")}fieldName(){return"urgency"}filterRegExp(){throw Error(`filterRegExp() unimplemented for ${this.fieldName()}`)}supportsSorting(){return!0}comparator(){return(e,t)=>t.urgency-e.urgency}};var wi=class{static by(e,t){let n=[new vi().comparator(),new bn().comparator(),new yi().comparator(),new Ms().comparator(),new bi().comparator()],s=[];for(let a of e)s.push(a.comparator);return t.sort(wi.makeCompositeComparator([...s,...n]))}static makeCompositeComparator(e){return(t,n)=>{for(let s of e){let a=s(t,n);if(a!==0)return a}return 0}}};var Rs=class extends jt{fieldName(){return"description"}value(e){return Le.removeAsSubstringFrom(e.description)}supportsSorting(){return!0}comparator(){return(e,t)=>{let n=Rs.cleanDescription(e.description),s=Rs.cleanDescription(t.description);return n.localeCompare(s,void 0,{numeric:!0})}}static cleanDescription(e){e=Le.removeAsSubstringFrom(e);let t=/^\[\[?([^\]]*)]]?/,n=e.match(t);if(n!==null){let s=n[1];e=s.substring(s.indexOf("|")+1)+e.replace(t,"")}return e=this.replaceFormatting(e,/^\*\*([^*]+)\*\*/),e=this.replaceFormatting(e,/^\*([^*]+)\*/),e=this.replaceFormatting(e,/^==([^=]+)==/),e=this.replaceFormatting(e,/^__([^_]+)__/),e=this.replaceFormatting(e,/^_([^_]+)_/),e}static replaceFormatting(e,t){let n=e.match(t);return n!==null&&(e=n[1]+e.replace(t,"")),e}};var Yu=class extends qt{fieldName(){return"created"}date(e){return e.createdDate}filterResultIfFieldMissing(){return!1}};var Uu=class extends qt{fieldName(){return"done"}date(e){return e.doneDate}filterResultIfFieldMissing(){return!1}};var Wu=class extends Kn{constructor(){super(),this._filters.add("exclude sub-items",e=>{if(e.indentation==="")return!0;let t=e.indentation.lastIndexOf(">");return t===-1?!1:/^ ?$/.test(e.indentation.slice(t+1))})}fieldName(){return"exclude"}};var qu=class extends jt{fieldName(){return"heading"}value(e){return e.precedingHeader?e.precedingHeader:""}supportsSorting(){return!0}};var ju=class extends qt{fieldName(){return"scheduled"}date(e){return e.scheduledDate}filterResultIfFieldMissing(){return!1}};var $u=class extends qt{fieldName(){return"start"}fieldNameForFilterInstruction(){return"starts"}date(e){return e.startDate}filterResultIfFieldMissing(){return!0}};var Zn=class extends qt{constructor(){let e=new Vr;e.add("has happens date",t=>this.dates(t).some(n=>n!==null)),e.add("no happens date",t=>!this.dates(t).some(n=>n!==null)),super(e)}fieldName(){return"happens"}fieldNameForExplanation(){return"due, start or scheduled"}date(e){return this.earliestDate(e)}dates(e){return Array.of(e.startDate,e.scheduledDate,e.dueDate)}earliestDate(e){return new Zn().dates(e).sort(Hr)[0]}filterResultIfFieldMissing(){return!1}getFilter(e){return t=>this.dates(t).some(n=>e(n))}};var Gu=class extends Kn{constructor(){super(),this._filters.add("is recurring",e=>e.recurrence!==null),this._filters.add("is not recurring",e=>e.recurrence===null)}fieldName(){return"recurring"}};var Bu=class extends jt{fieldNamePlural(){return this.fieldNameSingular()+"s"}fieldName(){return`${this.fieldNameSingular()}/${this.fieldNamePlural()}`}fieldPattern(){return`${this.fieldNameSingular()}|${this.fieldNamePlural()}`}filterOperatorPattern(){return`${super.filterOperatorPattern()}|include|do not include`}value(e){return this.values(e).join(", ")}getFilter(e,t){return n=>{let s=e.matchesAnyOf(this.values(n));return t?!s:s}}};var xs=class extends Bu{constructor(){super();this.filterInstructions=new Vr,this.filterInstructions.add(`has ${this.fieldNameSingular()}`,t=>this.values(t).length>0),this.filterInstructions.add(`has ${this.fieldNamePlural()}`,t=>this.values(t).length>0),this.filterInstructions.add(`no ${this.fieldNameSingular()}`,t=>this.values(t).length===0),this.filterInstructions.add(`no ${this.fieldNamePlural()}`,t=>this.values(t).length===0)}createFilterOrErrorMessage(t){let n=this.filterInstructions.createFilterOrErrorMessage(t);return n.filter!==void 0?n:super.createFilterOrErrorMessage(t)}canCreateFilterForLine(t){return this.filterInstructions.canCreateFilterForLine(t)?!0:super.canCreateFilterForLine(t)}fieldNameSingular(){return"tag"}values(t){return t.tags}supportsSorting(){return!0}createSorterFromLine(t){let n=t.match(this.sorterRegExp());if(n===null)return null;let s=!!n[1],a=isNaN(+n[2])?1:+n[2],o=xs.makeCompareByTagComparator(a);return new Tn(this.fieldNameSingular(),o,s)}sorterRegExp(){return/^sort by tag( reverse)?[\s]*(\d+)?/}comparator(){return xs.makeCompareByTagComparator(1)}static makeCompareByTagComparator(t){return(n,s)=>{if(n.tags.length===0&&s.tags.length===0)return 0;if(n.tags.length===0)return 1;if(s.tags.length===0)return-1;let a=t-1;if(n.tags.length=t)return 1;if(s.tags.length=t)return-1;if(n.tags.lengththis.filterTaskWithParsedQuery(c,a),l=this.constructExplanation(a);return n.filter=new tr(t,o,l),n}catch(a){let o=a instanceof Error?a.message:"unknown error type";return n.error=`malformed boolean query -- ${o} (check the documentation for guidelines)`,n}return n}preprocessExpression(t){return t.replace(/\(([^()]+)\)/g,'("$1")')}filterTaskWithParsedQuery(t,n){let s=l=>l==="true",a=l=>l?"true":"false",o=[];for(let l of n)if(l.name==="IDENTIFIER"){if(l.value==null)throw Error("null token value");let f=this.subFields[l.value.trim()].filterFunction(t);o.push(a(f))}else if(l.name==="OPERATOR")if(l.value==="NOT"){let c=s(o.pop());o.push(a(!c))}else if(l.value==="OR"){let c=s(o.pop()),f=s(o.pop());o.push(a(c||f))}else if(l.value==="AND"){let c=s(o.pop()),f=s(o.pop());o.push(a(c&&f))}else if(l.value==="XOR"){let c=s(o.pop()),f=s(o.pop());o.push(a(c&&!f||!c&&f))}else throw Error("Unsupported operator: "+l.value);else throw Error("Unsupported token type: "+l);return s(o[0])}constructExplanation(t){let n=[];for(let s of t)if(s.name==="IDENTIFIER"){if(s.value==null)throw Error("null token value");let a=this.subFields[s.value.trim()];n.push(a.explanation)}else if(s.name==="OPERATOR")if(s.value==="NOT"){let a=n.pop();n.push(Ze.booleanNot([a]))}else if(s.value==="OR"){let a=n.pop(),o=n.pop();n.push(Ze.booleanOr([o,a]))}else if(s.value==="AND"){let a=n.pop(),o=n.pop();n.push(Ze.booleanAnd([o,a]))}else if(s.value==="XOR"){let a=n.pop(),o=n.pop();n.push(Ze.booleanXor([o,a]))}else throw Error("Unsupported operator: "+s.value);else throw Error("Unsupported token type: "+s);return n[0]}};var Xu=class extends jt{fieldName(){return"filename"}value(e){let t=e.filename;return t===null?"":t+".md"}supportsSorting(){return!0}};var Qu=class extends jt{constructor(){super()}fieldName(){return"status.name"}value(e){return e.status.name}supportsSorting(){return!0}supportsGrouping(){return!0}};var Qn=class extends Ke{canCreateFilterForLine(e){let t=new RegExp(`^(?:${this.fieldNameSingularEscaped()})`);return Ke.lineMatchesFilter(t,e)}createFilterOrErrorMessage(e){let t=Ke.getMatch(this.filterRegExp(),e);if(t===null)return this.helpMessage(e);let[n,s,a]=t,o=Er[a.toUpperCase()];if(!o)return this.helpMessage(e);let l;switch(s){case"is":l=c=>c.status.type===o;break;case"is not":l=c=>c.status.type!==o;break;default:return this.helpMessage(e)}return Xe.fromFilter(new tr(e,l,new Ze(e)))}filterRegExp(){return new RegExp(`^(?:${this.fieldNameSingularEscaped()}) (is|is not) ([^ ]+)$`)}helpMessage(e){let t=Object.values(Er).filter(s=>s!=="EMPTY").join(" "),n=`Invalid ${this.fieldNameSingular()} instruction: '${e}'. Allowed options: 'is' and 'is not' (without quotes). Allowed values: ${t} Note: values are case-insensitive, so 'in_progress' works too, for example. - Example: ${this.fieldNameSingular()} is not NON_TASK`;return Ke.fromError(e,n)}fieldName(){return"status.type"}value(e){return e.status.type}supportsSorting(){return!0}comparator(){return(e,t)=>{let n=Vn.groupName(e),s=Vn.groupName(t);return n.localeCompare(s,void 0,{numeric:!0})}}supportsGrouping(){return!0}grouper(){return e=>[Vn.groupName(e)]}static groupName(e){let t;switch(e.status.type){case"IN_PROGRESS":t="1";break;case"TODO":t="2";break;case"DONE":t="3";break;case"CANCELLED":t="4";break;case"NON_TASK":t="5";break;case"EMPTY":t="6";break}return t+" "+e.status.type}};var Xu=class extends Wt{fieldName(){return"recurrence"}value(e){return e.recurrence!==null?e.recurrence.toText():""}};var up=[()=>new Zu,()=>new Vn,()=>new gn,()=>new ju,()=>new Es,()=>new Hn,()=>new Fu,()=>new qu,()=>new Wu,()=>new pi,()=>new Lu,()=>new _i,()=>new Ss,()=>new Os,()=>new Uu,()=>new Yu,()=>new zu,()=>new Ku,()=>new Ti,()=>new Xu];function Vu(r){for(let e of up){let t=e();if(t.canCreateFilterForLine(r))return t.createFilterOrErrorMessage(r)}return null}function Ev(r){let e=/^sort by /;if(r.match(e)===null)return null;for(let t of up){let s=t().parseSortLine(r);if(s)return s}return null}function Sv(r){let e=/^group by /;if(r.match(e)===null)return null;for(let t of up){let n=t(),s=n.fieldNameSingular();if(r===`group by ${s}`&&n.supportsGrouping())return n.createGrouper()}return null}var Qu=class{constructor(e,t){this.nestingLevel=e,this.name=t}};var Ju=class{constructor(e){this.lastHeadingAtLevel=new Array;let n=e.keys().next().value.length;for(let s=0;st.set(l,o)),e.pop();return t}};var tl=class extends Map{},rl=class extends el{},nl=class{constructor(e,t){this.groups=new tl;let n=this.buildGroupingTree(e,t);this.groups=n.generateAllPaths(),this.groups=this.getSortedGroups()}buildGroupingTree(e,t){let n=new rl(t),s=[n];for(let a of e){let o=[];for(let l of s)for(let c of l.values){let f=wn.getGroupNamesForTask(a,c);for(let m of f){let g=l.children.get(m);g===void 0&&(g=new rl([]),l.children.set(m,g),o.push(g)),g.values.push(c)}}s=o}return n}getSortedGroups(){return new tl([...this.groups.entries()].sort())}};var sl=class{constructor(e,t,n){this.groups=e,this.groupHeadings=t,this.tasks=n}tasksAsStringOfLines(){let e="";for(let t of this.tasks)e+=t.toFileLineString()+` + Example: ${this.fieldNameSingular()} is not NON_TASK`;return Xe.fromError(e,n)}fieldName(){return"status.type"}value(e){return e.status.type}supportsSorting(){return!0}comparator(){return(e,t)=>{let n=Qn.groupName(e),s=Qn.groupName(t);return n.localeCompare(s,void 0,{numeric:!0})}}supportsGrouping(){return!0}grouper(){return e=>[Qn.groupName(e)]}static groupName(e){let t;switch(e.status.type){case"IN_PROGRESS":t="1";break;case"TODO":t="2";break;case"DONE":t="3";break;case"CANCELLED":t="4";break;case"NON_TASK":t="5";break;case"EMPTY":t="6";break}return t+" "+e.status.type}};var Ju=class extends jt{fieldName(){return"recurrence"}value(e){return e.recurrence!==null?e.recurrence.toText():""}};var cp=[()=>new Qu,()=>new Qn,()=>new bn,()=>new Gu,()=>new Ms,()=>new Zn,()=>new Yu,()=>new $u,()=>new ju,()=>new yi,()=>new Uu,()=>new bi,()=>new Rs,()=>new xs,()=>new qu,()=>new Wu,()=>new Ku,()=>new Xu,()=>new vi,()=>new Ju];function Zu(r){for(let e of cp){let t=e();if(t.canCreateFilterForLine(r))return t.createFilterOrErrorMessage(r)}return null}function Ov(r){let e=/^sort by /;if(r.match(e)===null)return null;for(let t of cp){let s=t().parseSortLine(r);if(s)return s}return null}function Mv(r){let e=/^group by /;if(r.match(e)===null)return null;for(let t of cp){let n=t(),s=n.fieldNameSingular();if(r===`group by ${s}`&&n.supportsGrouping())return n.createGrouper()}return null}var el=class{constructor(e,t){this.nestingLevel=e,this.name=t}};var tl=class{constructor(e){this.lastHeadingAtLevel=new Array;let n=e.keys().next().value.length;for(let s=0;st.set(l,o)),e.pop();return t}};var nl=class extends Map{},sl=class extends rl{},il=class{constructor(e,t){this.groups=new nl;let n=this.buildGroupingTree(e,t);this.groups=n.generateAllPaths(),this.groups=this.getSortedGroups()}buildGroupingTree(e,t){let n=new sl(t),s=[n];for(let a of e){let o=[];for(let l of s)for(let c of l.values){let f=En.getGroupNamesForTask(a,c);for(let m of f){let g=l.children.get(m);g===void 0&&(g=new sl([]),l.children.set(m,g),o.push(g)),g.values.push(c)}}s=o}return n}getSortedGroups(){return new nl([...this.groups.entries()].sort())}};var al=class{constructor(e,t,n){this.groups=e,this.groupHeadings=t,this.tasks=n}tasksAsStringOfLines(){let e="";for(let t of this.tasks)e+=t.toFileLineString()+` `;return e}toString(){let e=` `;e+=`Group names: [${this.groups}] `;for(let t of this.groupHeadings)e+=`${"#".repeat(4+t.nestingLevel)} ${t.name} -`;return e+=this.tasksAsStringOfLines(),e}};var il=class{constructor(e,t){this._groups=new Array;this._totalTaskCount=0;this._totalTaskCount=t.length;let n=new nl(e,t);this.addTasks(n)}get groups(){return this._groups}totalTasksCount(){return this._totalTaskCount}toString(){let e="";for(let n of this.groups)e+=n.toString(),e+=` +`;return e+=this.tasksAsStringOfLines(),e}};var ol=class{constructor(e,t){this._groups=new Array;this._totalTaskCount=0;this._totalTaskCount=t.length;let n=new il(e,t);this.addTasks(n)}get groups(){return this._groups}totalTasksCount(){return this._totalTaskCount}toString(){let e="";for(let n of this.groups)e+=n.toString(),e+=` --- `;return e+=` ${this.totalTasksCount()} tasks -`,e}addTasks(e){let t=new Ju(e.groups);for(let[n,s]of e.groups){let a=t.getHeadingsForTaskGroup(n),o=new sl(n,a,s);this.add(o)}}add(e){this._groups.push(e)}};var Me=class{static fromGroupingProperty(e){return new hi(e,Me.grouperForProperty(e))}static by(e,t){return new il(e,t)}static getGroupNamesForTask(e,t){return e.grouper(t)}static grouperForProperty(e){return Me.groupers[e]}static escapeMarkdownCharacters(e){return e.replace(/\\/g,"\\\\").replace(/_/g,"\\_")}static groupByPriority(e){let t="ERROR";switch(e.priority){case"1":t="High";break;case"2":t="Medium";break;case"3":t="None";break;case"4":t="Low";break}return[`Priority ${e.priority}: ${t}`]}static groupByRecurrence(e){return e.recurrence!==null?[e.recurrence.toText()]:["None"]}static groupByRecurring(e){return e.recurrence!==null?["Recurring"]:["Not Recurring"]}static groupByCreatedDate(e){return[Me.stringFromDate(e.createdDate,"created")]}static groupByStartDate(e){return[Me.stringFromDate(e.startDate,"start")]}static groupByScheduledDate(e){return[Me.stringFromDate(e.scheduledDate,"scheduled")]}static groupByDueDate(e){return[Me.stringFromDate(e.dueDate,"due")]}static groupByDoneDate(e){return[Me.stringFromDate(e.doneDate,"done")]}static groupByHappensDate(e){let t=new Hn().earliestDate(e);return[Me.stringFromDate(t,"happens")]}static stringFromDate(e,t){return e===null?"No "+t+" date":e.format(Me.groupDateFormat)}static groupByPath(e){return[Me.escapeMarkdownCharacters(e.path.replace(".md",""))]}static groupByFolder(e){let t=e.path,n=e.filename+".md",s=t.substring(0,t.lastIndexOf(n));return s===""?["/"]:[Me.escapeMarkdownCharacters(s)]}static groupByFileName(e){let t=e.filename;return t===null?["Unknown Location"]:["[["+t+"]]"]}static groupByRoot(e){let t=e.path.replace(/\\/g,"/"),n=t.indexOf("/");return n==-1?["/"]:[Me.escapeMarkdownCharacters(t.substring(0,n+1))]}static groupByBacklink(e){if(e.getLinkText({isFilenameUnique:!0})===null)return["Unknown Location"];let n="Unknown Location";if(e.filename!==null&&(n=Me.escapeMarkdownCharacters(e.filename)),e.precedingHeader===null||e.precedingHeader.length===0)return[n];let s=Me.groupByHeading(e)[0];return n===s?[n]:[`${n} > ${s}`]}static groupByStatus(e){return e.status.symbol===" "?["Todo"]:["Done"]}static groupByHeading(e){return e.precedingHeader===null||e.precedingHeader.length===0?["(No heading)"]:[e.precedingHeader]}static groupByTags(e){return e.tags.length==0?["(No tags)"]:e.tags}},wn=Me;wn.groupDateFormat="YYYY-MM-DD dddd",wn.groupers={backlink:Me.groupByBacklink,created:Me.groupByCreatedDate,done:Me.groupByDoneDate,due:Me.groupByDueDate,filename:Me.groupByFileName,folder:Me.groupByFolder,happens:Me.groupByHappensDate,heading:Me.groupByHeading,path:Me.groupByPath,priority:Me.groupByPriority,recurrence:Me.groupByRecurrence,recurring:Me.groupByRecurring,root:Me.groupByRoot,scheduled:Me.groupByScheduledDate,start:Me.groupByStartDate,status:Me.groupByStatus,tags:Me.groupByTags};var Si=class{constructor({source:e}){this._limit=void 0;this._layoutOptions=new Ba;this._filters=[];this._error=void 0;this._sorting=[];this._grouping=[];this.groupByRegexp=/^group by (backlink|created|done|due|filename|folder|happens|heading|path|priority|recurrence|recurring|root|scheduled|start|status|tags)/;this.hideOptionsRegexp=/^(hide|show) (task count|backlink|priority|created date|start date|scheduled date|done date|due date|recurrence rule|edit button|urgency)/;this.shortModeRegexp=/^short/;this.explainQueryRegexp=/^explain/;this.limitRegexp=/^limit (to )?(\d+)( tasks?)?/;this.commentRegexp=/^#.*/;this.source=e,e.split(` +`,e}addTasks(e){let t=new tl(e.groups);for(let[n,s]of e.groups){let a=t.getHeadingsForTaskGroup(n),o=new al(n,a,s);this.add(o)}}add(e){this._groups.push(e)}};var Me=class{static fromGroupingProperty(e){return new mi(e,Me.grouperForProperty(e))}static by(e,t){return new ol(e,t)}static getGroupNamesForTask(e,t){return e.grouper(t)}static grouperForProperty(e){return Me.groupers[e]}static escapeMarkdownCharacters(e){return e.replace(/\\/g,"\\\\").replace(/_/g,"\\_")}static groupByPriority(e){let t="ERROR";switch(e.priority){case"1":t="High";break;case"2":t="Medium";break;case"3":t="None";break;case"4":t="Low";break}return[`Priority ${e.priority}: ${t}`]}static groupByRecurrence(e){return e.recurrence!==null?[e.recurrence.toText()]:["None"]}static groupByRecurring(e){return e.recurrence!==null?["Recurring"]:["Not Recurring"]}static groupByCreatedDate(e){return[Me.stringFromDate(e.createdDate,"created")]}static groupByStartDate(e){return[Me.stringFromDate(e.startDate,"start")]}static groupByScheduledDate(e){return[Me.stringFromDate(e.scheduledDate,"scheduled")]}static groupByDueDate(e){return[Me.stringFromDate(e.dueDate,"due")]}static groupByDoneDate(e){return[Me.stringFromDate(e.doneDate,"done")]}static groupByHappensDate(e){let t=new Zn().earliestDate(e);return[Me.stringFromDate(t,"happens")]}static stringFromDate(e,t){return e===null?"No "+t+" date":e.format(Me.groupDateFormat)}static groupByPath(e){return[Me.escapeMarkdownCharacters(e.path.replace(".md",""))]}static groupByFolder(e){let t=e.path,n=e.filename+".md",s=t.substring(0,t.lastIndexOf(n));return s===""?["/"]:[Me.escapeMarkdownCharacters(s)]}static groupByFileName(e){let t=e.filename;return t===null?["Unknown Location"]:["[["+t+"]]"]}static groupByRoot(e){let t=e.path.replace(/\\/g,"/"),n=t.indexOf("/");return n==-1?["/"]:[Me.escapeMarkdownCharacters(t.substring(0,n+1))]}static groupByBacklink(e){if(e.getLinkText({isFilenameUnique:!0})===null)return["Unknown Location"];let n="Unknown Location";if(e.filename!==null&&(n=Me.escapeMarkdownCharacters(e.filename)),e.precedingHeader===null||e.precedingHeader.length===0)return[n];let s=Me.groupByHeading(e)[0];return n===s?[n]:[`${n} > ${s}`]}static groupByStatus(e){return e.status.symbol===" "?["Todo"]:["Done"]}static groupByHeading(e){return e.precedingHeader===null||e.precedingHeader.length===0?["(No heading)"]:[e.precedingHeader]}static groupByTags(e){return e.tags.length==0?["(No tags)"]:e.tags}},En=Me;En.groupDateFormat="YYYY-MM-DD dddd",En.groupers={backlink:Me.groupByBacklink,created:Me.groupByCreatedDate,done:Me.groupByDoneDate,due:Me.groupByDueDate,filename:Me.groupByFileName,folder:Me.groupByFolder,happens:Me.groupByHappensDate,heading:Me.groupByHeading,path:Me.groupByPath,priority:Me.groupByPriority,recurrence:Me.groupByRecurrence,recurring:Me.groupByRecurring,root:Me.groupByRoot,scheduled:Me.groupByScheduledDate,start:Me.groupByStartDate,status:Me.groupByStatus,tags:Me.groupByTags};var Mi=class{constructor({source:e}){this._limit=void 0;this._layoutOptions=new Ha;this._filters=[];this._error=void 0;this._sorting=[];this._grouping=[];this.groupByRegexp=/^group by (backlink|created|done|due|filename|folder|happens|heading|path|priority|recurrence|recurring|root|scheduled|start|status|tags)/;this.hideOptionsRegexp=/^(hide|show) (task count|backlink|priority|created date|start date|scheduled date|done date|due date|recurrence rule|edit button|urgency)/;this.shortModeRegexp=/^short/;this.explainQueryRegexp=/^explain/;this.limitRegexp=/^limit (to )?(\d+)( tasks?)?/;this.commentRegexp=/^#.*/;this.source=e,e.split(` `).map(t=>t.trim()).forEach(t=>{switch(!0){case t==="":break;case this.shortModeRegexp.test(t):this._layoutOptions.shortMode=!0;break;case this.explainQueryRegexp.test(t):this._layoutOptions.explainQuery=!0;break;case this.limitRegexp.test(t):this.parseLimit({line:t});break;case this.parseSortBy({line:t}):break;case this.parseGroupBy2({line:t}):break;case this.groupByRegexp.test(t):this.parseGroupBy({line:t});break;case this.hideOptionsRegexp.test(t):this.parseHideOptions({line:t});break;case this.commentRegexp.test(t):break;case this.parseFilter(t):break;default:this._error=`do not understand query: ${t}`}})}explainQuery(){return`Explanation of this Tasks code block query: -`+this.explainQueryWithoutIntroduction()}explainQueryWithoutIntroduction(){let e="",{globalFilter:t}=se();t.length!==0&&(e+=`Only tasks containing the global filter '${t}'. +`+this.explainQueryWithoutIntroduction()}explainQueryWithoutIntroduction(){let e="";Le.isEmpty()||(e+=`Only tasks containing the global filter '${Le.get()}'. -`);let n=this.filters.length;if(n===0)e+="No filters supplied. All tasks will match the query.";else for(let a=0;a0&&(e+=` -`),e+=this.filters[a].explainFilterIndented("");this._limit!==void 0&&(e+=` +`);let t=this.filters.length;if(t===0)e+="No filters supplied. All tasks will match the query.";else for(let s=0;s0&&(e+=` +`),e+=this.filters[s].explainFilterIndented("");this._limit!==void 0&&(e+=` At most ${this._limit} task`,this._limit!==1&&(e+="s"),e+=`. -`);let{debugSettings:s}=se();return s.ignoreSortInstructions&&(e+=` +`);let{debugSettings:n}=he();return n.ignoreSortInstructions&&(e+=` -NOTE: All sort instructions, including default sort order, are disabled, due to 'ignoreSortInstructions' setting.`),e}get limit(){return this._limit}get layoutOptions(){return this._layoutOptions}get filters(){return this._filters}get sorting(){return this._sorting}get grouping(){return this._grouping}get error(){return this._error}applyQueryToTasks(e){this.filters.forEach(a=>{e=e.filter(a.filterFunction)});let{debugSettings:t}=se(),s=(t.ignoreSortInstructions?e:bi.by(this.sorting,e)).slice(0,this.limit);return wn.by(this.grouping,s)}parseHideOptions({line:e}){let t=e.match(this.hideOptionsRegexp);if(t!==null){let n=t[1]==="hide";switch(t[2]){case"task count":this._layoutOptions.hideTaskCount=n;break;case"backlink":this._layoutOptions.hideBacklinks=n;break;case"priority":this._layoutOptions.hidePriority=n;break;case"created date":this._layoutOptions.hideCreatedDate=n;break;case"start date":this._layoutOptions.hideStartDate=n;break;case"scheduled date":this._layoutOptions.hideScheduledDate=n;break;case"due date":this._layoutOptions.hideDueDate=n;break;case"done date":this._layoutOptions.hideDoneDate=n;break;case"recurrence rule":this._layoutOptions.hideRecurrenceRule=n;break;case"edit button":this._layoutOptions.hideEditButton=n;break;case"urgency":this._layoutOptions.hideUrgency=n;break;default:this._error="do not understand hide/show option"}}}parseFilter(e){let t=Vu(e);return t!=null?(t.filter?this._filters.push(t.filter):this._error=t.error,!0):!1}parseLimit({line:e}){let t=e.match(this.limitRegexp);t!==null?this._limit=Number.parseInt(t[2],10):this._error="do not understand query limit"}parseSortBy({line:e}){let t=Ev(e);return t?(this._sorting.push(t),!0):!1}parseGroupBy({line:e}){let t=e.match(this.groupByRegexp);t!==null?this._grouping.push(wn.fromGroupingProperty(t[1])):this._error="do not understand query grouping"}parseGroupBy2({line:e}){let t=Sv(e);return t?(this._grouping.push(t),!0):!1}};var al=class{constructor({plugin:e,events:t}){this.addQueryRenderChild=this._addQueryRenderChild.bind(this);this.app=e.app,this.events=t,e.registerMarkdownCodeBlockProcessor("tasks",this._addQueryRenderChild.bind(this))}_addQueryRenderChild(e,t,n){return J(this,null,function*(){n.addChild(new lp({app:this.app,events:this.events,container:t,source:e,filePath:n.sourcePath}))})}},lp=class extends ol.MarkdownRenderChild{constructor({app:t,events:n,container:s,source:a,filePath:o}){super(s);switch(this.app=t,this.events=n,this.source=a,this.filePath=o,this.containerEl.className){case"block-language-tasks":this.query=new Si({source:a}),this.queryType="tasks";break;default:this.query=new Si({source:a}),this.queryType="tasks";break}}onload(){this.events.triggerRequestCacheUpdate(this.render.bind(this)),this.renderEventRef=this.events.onCacheUpdate(this.render.bind(this)),this.reloadQueryAtMidnight()}onunload(){this.renderEventRef!==void 0&&this.events.off(this.renderEventRef),this.queryReloadTimeout!==void 0&&clearTimeout(this.queryReloadTimeout)}reloadQueryAtMidnight(){let t=new Date;t.setHours(24,0,0,0);let n=new Date,s=t.getTime()-n.getTime();this.queryReloadTimeout=setTimeout(()=>{this.query=new Si({source:this.source}),this.events.triggerRequestCacheUpdate(this.render.bind(this)),this.reloadQueryAtMidnight()},s+1e3)}render(s){return J(this,arguments,function*({tasks:t,state:n}){var o;let a=this.containerEl.createEl("div");if(n==="Warm"&&this.query.error===void 0){console.debug(`Render ${this.queryType} called for a block in active file "${this.filePath}", to select from ${t.length} tasks: plugin state: ${n}`),this.query.layoutOptions.explainQuery&&this.createExplanation(a);let l=this.query.applyQueryToTasks(t);for(let f of l.groups){this.addGroupHeadings(a,f.groupHeadings);let{taskList:m}=yield this.createTasksList({tasks:f.tasks,content:a});a.appendChild(m)}let c=l.totalTasksCount();console.debug(`${c} of ${t.length} tasks displayed in a block in "${this.filePath}"`),this.addTaskCount(a,c)}else this.query.error!==void 0?a.createDiv().innerHTML=`
Tasks query: ${this.query.error.replace(/\n/g,"
")}
`:a.setText("Loading Tasks ...");(o=this.containerEl.firstChild)==null||o.replaceWith(a)})}createExplanation(t){let n=this.query.explainQuery(),s=t.createEl("pre");s.addClasses(["plugin-tasks-query-explanation"]),s.setText(n),t.appendChild(s)}createTasksList(s){return J(this,arguments,function*({tasks:t,content:n}){let a=t.length,o=new qn(this.query.layoutOptions),l=n.createEl("ul");l.addClasses(["contains-task-list","plugin-tasks-query-result"]),l.addClasses(o.specificClasses);let c=this.getGroupingAttribute();c&&c.length>0&&(l.dataset.taskGroupBy=c);for(let f=0;fC.remove());let v=this.query.layoutOptions.shortMode,R=T.createSpan("task-extras");this.query.layoutOptions.hideUrgency||this.addUrgency(R,m),this.query.layoutOptions.hideBacklinks||this.addBacklinks(R,m,v,g),this.query.layoutOptions.hideEditButton||this.addEditButton(R,m),l.appendChild(T)}return{taskList:l,tasksCount:a}})}addEditButton(t,n){t.createEl("a",{cls:"tasks-edit"}).onClickEvent(a=>{a.preventDefault();let o=c=>{Eu({originalTask:n,newTasks:Xt.removeInferredStatusIfNeeded(n,c)})};new Bn({app:this.app,task:n,onSubmit:o}).open()})}addUrgency(t,n){let s=new Intl.NumberFormat().format(n.urgency);t.createSpan({text:s,cls:"tasks-urgency"})}addGroupHeadings(t,n){for(let s of n)this.addGroupHeading(t,s)}addGroupHeading(t,n){return J(this,null,function*(){let s;n.nestingLevel===0?s=t.createEl("h4",{cls:"tasks-group-heading"}):n.nestingLevel===1?s=t.createEl("h5",{cls:"tasks-group-heading"}):s=t.createEl("h6",{cls:"tasks-group-heading"}),yield ol.MarkdownRenderer.renderMarkdown(n.name,s,this.filePath,this)})}addBacklinks(t,n,s,a){var f;let o=t.createSpan({cls:"tasks-backlink"});s||o.append(" (");let l=o.createEl("a");if(l.href=n.path,l.setAttribute("data-href",n.path),l.rel="noopener",l.target="_blank",l.addClass("internal-link"),s&&l.addClass("internal-link-short-mode"),n.precedingHeader!==null){let m=n.precedingHeader.replace(/#/g,"");l.href=l.href+"#"+m,l.setAttribute("data-href",l.getAttribute("data-href")+"#"+m)}let c;s?c=" \u{1F517}":c=(f=n.getLinkText({isFilenameUnique:a}))!=null?f:"",l.setText(c),s||o.append(")")}addTaskCount(t,n){this.query.layoutOptions.hideTaskCount||t.createDiv({text:`${n} task${n!==1?"s":""}`,cls:"tasks-count"})}isFilenameUnique({task:t}){let n=t.path.match(/([^/]*)\..+$/i);if(n===null)return;let s=n[1];return this.app.vault.getMarkdownFiles().filter(o=>{if(o.basename===s)return!0}).length<2}getGroupingAttribute(){let t=[];for(let n of this.query.grouping)t.push(n.property);return t.join(",")}};var Ge=require("obsidian");function Ov(){return[[" ","Unchecked","x","TODO"],["x","Checked"," ","DONE"],[">","Rescheduled","x","TODO"],["<","Scheduled","x","TODO"],["!","Important","x","TODO"],["-","Cancelled"," ","CANCELLED"],["/","In Progress","x","IN_PROGRESS"],["?","Question","x","TODO"],["*","Star","x","TODO"],["n","Note","x","TODO"],["l","Location","x","TODO"],["i","Information","x","TODO"],["I","Idea","x","TODO"],["S","Amount","x","TODO"],["p","Pro","x","TODO"],["c","Con","x","TODO"],["b","Bookmark","x","TODO"],['"',"Quote","x","TODO"],["0","Speech bubble 0","0","NON_TASK"],["1","Speech bubble 1","1","NON_TASK"],["2","Speech bubble 2","2","NON_TASK"],["3","Speech bubble 3","3","NON_TASK"],["4","Speech bubble 4","4","NON_TASK"],["5","Speech bubble 5","5","NON_TASK"],["6","Speech bubble 6","6","NON_TASK"],["7","Speech bubble 7","7","NON_TASK"],["8","Speech bubble 8","8","NON_TASK"],["9","Speech bubble 9","9","NON_TASK"]]}function Mv(){return[[" ","incomplete","x","TODO"],["x","complete / done"," ","DONE"],["-","cancelled"," ","CANCELLED"],[">","deferred","x","TODO"],["/","in progress, or half-done","x","IN_PROGRESS"],["!","Important","x","TODO"],["?","question","x","TODO"],["R","review","x","TODO"],["+","Inbox / task that should be processed later","x","TODO"],["b","bookmark","x","TODO"],["B","brainstorm","x","TODO"],["D","deferred or scheduled","x","TODO"],["I","Info","x","TODO"],["i","idea","x","TODO"],["N","note","x","TODO"],["Q","quote","x","TODO"],["W","win / success / reward","x","TODO"],["P","pro","x","TODO"],["C","con","x","TODO"]]}function Rv(){return[[" ","Unchecked","x","TODO"],["x","Checked"," ","DONE"],["-","Cancelled"," ","CANCELLED"],["/","In Progress","x","IN_PROGRESS"],[">","Deferred","x","TODO"],["!","Important","x","TODO"],["?","Question","x","TODO"],["r","Review","x","TODO"]]}function Pv(){return[[" ","Unchecked","x","TODO"],["x","Regular"," ","DONE"],["X","Checked"," ","DONE"],["-","Dropped"," ","CANCELLED"],[">","Forward","x","TODO"],["D","Date","x","TODO"],["?","Question","x","TODO"],["/","Half Done","x","IN_PROGRESS"],["+","Add","x","TODO"],["R","Research","x","TODO"],["!","Important","x","TODO"],["i","Idea","x","TODO"],["B","Brainstorm","x","TODO"],["P","Pro","x","TODO"],["C","Con","x","TODO"],["Q","Quote","x","TODO"],["N","Note","x","TODO"],["b","Bookmark","x","TODO"],["I","Information","x","TODO"],["p","Paraphrase","x","TODO"],["L","Location","x","TODO"],["E","Example","x","TODO"],["A","Answer","x","TODO"],["r","Reward","x","TODO"],["c","Choice","x","TODO"],["d","Doing","x","IN_PROGRESS"],["T","Time","x","TODO"],["@","Character / Person","x","TODO"],["t","Talk","x","TODO"],["O","Outline / Plot","x","TODO"],["~","Conflict","x","TODO"],["W","World","x","TODO"],["f","Clue / Find","x","TODO"],["F","Foreshadow","x","TODO"],["H","Favorite / Health","x","TODO"],["&","Symbolism","x","TODO"],["s","Secret","x","TODO"]]}function xv(){return[[" ","to-do","x","TODO"],["/","incomplete","x","IN_PROGRESS"],["x","done"," ","DONE"],["-","canceled"," ","CANCELLED"],[">","forwarded","x","TODO"],["<","scheduling","x","TODO"],["?","question","x","TODO"],["!","important","x","TODO"],["*","star","x","TODO"],['"',"quote","x","TODO"],["l","location","x","TODO"],["b","bookmark","x","TODO"],["i","information","x","TODO"],["S","savings","x","TODO"],["I","idea","x","TODO"],["p","pros","x","TODO"],["c","cons","x","TODO"],["f","fire","x","TODO"],["k","key","x","TODO"],["w","win","x","TODO"],["u","up","x","TODO"],["d","down","x","TODO"]]}function Av(){return[[" ","to-do","x","TODO"],["/","incomplete","x","IN_PROGRESS"],["x","done"," ","DONE"],["-","canceled"," ","CANCELLED"],[">","forwarded","x","TODO"],["<","scheduling","x","TODO"],["?","question","x","TODO"],["!","important","x","TODO"],["*","star","x","TODO"],['"',"quote","x","TODO"],["l","location","x","TODO"],["b","bookmark","x","TODO"],["i","information","x","TODO"],["S","savings","x","TODO"],["I","idea","x","TODO"],["p","pros","x","TODO"],["c","cons","x","TODO"],["f","fire","x","TODO"],["k","key","x","TODO"],["w","win","x","TODO"],["u","up","x","TODO"],["d","down","x","TODO"]]}var Nv=[{text:"Core Statuses",level:"h3",class:"",open:!0,notice:{class:"setting-item-description",text:null,html:"

These are the core statuses that Tasks supports natively, with no need for custom CSS styling or theming.

You can add edit and add your own custom statuses in the section below.

"},settings:[{name:"",description:"",type:"function",initialValue:"",placeholder:"",settingName:"insertTaskCoreStatusSettings",featureFlag:"",notice:null}]},{text:"Custom Statuses",level:"h3",class:"",open:!0,notice:{class:"setting-item-description",text:null,html:`

You should first select and install a CSS Snippet or Theme to style custom checkboxes.

Then, use the buttons below to set up your custom statuses, to match your chosen CSS checkboxes.

Note Any statuses with the same symbol as any earlier statuses will be ignored. You can confirm the actually loaded statuses by running the 'Create or edit task' command and looking at the Status drop-down.

See the documentation to get started!

`},settings:[{name:"",description:"",type:"function",initialValue:"",placeholder:"",settingName:"insertCustomTaskStatusSettings",featureFlag:"",notice:null}]}];var Ir=require("obsidian");var xs=class{validate(e){let t=[];return t.push(...this.validateSymbol(e)),t.push(...this.validateName(e)),t.push(...this.validateNextSymbol(e)),t}validateStatusCollectionEntry(e){let[t,n,s,a]=e,o=[];if(o.push(...this.validateType(a)),t===s&&a!=="NON_TASK"&&o.push(`Status symbol '${t}' toggles to itself`),o.length>0)return o;let l=pe.createFromImportedValue(e).configuration;return o.push(...this.validateSymbolTypeConventions(l)),o.push(...this.validate(l)),o}validateSymbol(e){return xs.validateOneSymbol(e.symbol,"Task Status Symbol")}validateNextSymbol(e){return xs.validateOneSymbol(e.nextStatusSymbol,"Task Next Status Symbol")}validateName(e){let t=[];return e.name.length===0&&t.push("Task Status Name cannot be empty."),t}validateType(e){let t=kr[e],n=[];return t||n.push(`Status Type "${e}" is not a valid type`),t=="EMPTY"&&n.push('Status Type "EMPTY" is not permitted in user data'),n}validateSymbolTypeConventions(e){let t=[],n=e.symbol,s=new Be,a=n==="X"?"x":n,o=s.bySymbol(a);return o.type!=="EMPTY"&&(e.nextStatusSymbol!==o.nextStatusSymbol&&t.push(`Next Status Symbol for symbol '${n}': '${e.nextStatusSymbol}' is inconsistent with convention '${o.nextStatusSymbol}'`),e.type!==o.type&&t.push(`Status Type for symbol '${n}': '${e.type}' is inconsistent with convention '${o.type}'`)),t}static validateOneSymbol(e,t){let n=[];return e.length===0&&n.push(`${t} cannot be empty.`),e.length>1&&n.push(`${t} ("${e}") must be a single character.`),n}};var As=new xs,ur=class extends Ir.Modal{constructor(t,n,s){super(t.app);this.plugin=t;this.saved=!1;this.error=!1;this.statusSymbol=n.symbol,this.statusName=n.name,this.statusNextSymbol=n.nextStatusSymbol,this.statusAvailableAsCommand=n.availableAsCommand,this.type=n.type,this.isCoreStatus=s}statusConfiguration(){return new St(this.statusSymbol,this.statusName,this.statusNextSymbol,this.statusAvailableAsCommand,this.type)}display(){return J(this,null,function*(){let{contentEl:t}=this;t.empty();let n=t.createDiv(),s;new Ir.Setting(n).setName("Task Status Symbol").setDesc("This is the character between the square braces. (It can only be edited for Custom statuses, and not Core statuses.)").addText(f=>{s=f,f.setValue(this.statusSymbol).onChange(m=>{this.statusSymbol=m,ur.setValid(f,As.validateSymbol(this.statusConfiguration()))})}).setDisabled(this.isCoreStatus).then(f=>{ur.setValid(s,As.validateSymbol(this.statusConfiguration()))});let a;new Ir.Setting(n).setName("Task Status Name").setDesc("This is the friendly name of the task status.").addText(f=>{a=f,f.setValue(this.statusName).onChange(m=>{this.statusName=m,ur.setValid(f,As.validateName(this.statusConfiguration()))})}).then(f=>{ur.setValid(a,As.validateName(this.statusConfiguration()))});let o;new Ir.Setting(n).setName("Task Next Status Symbol").setDesc("When clicked on this is the symbol that should be used next.").addText(f=>{o=f,f.setValue(this.statusNextSymbol).onChange(m=>{this.statusNextSymbol=m,ur.setValid(f,As.validateNextSymbol(this.statusConfiguration()))})}).then(f=>{ur.setValid(o,As.validateNextSymbol(this.statusConfiguration()))}),new Ir.Setting(n).setName("Task Status Type").setDesc("Control how the status behaves for searching and toggling.").addDropdown(f=>{["TODO","IN_PROGRESS","DONE","CANCELLED","NON_TASK"].forEach(g=>{f.addOption(g,g)}),f.setValue(this.type).onChange(g=>{this.type=pe.getTypeFromStatusTypeString(g)})}),pe.tasksPluginCanCreateCommandsForStatuses()&&new Ir.Setting(n).setName("Available as command").setDesc("If enabled this status will be available as a command so you can assign a hotkey and toggle the status using it.").addToggle(f=>{f.setValue(this.statusAvailableAsCommand).onChange(m=>J(this,null,function*(){this.statusAvailableAsCommand=m}))});let l=t.createDiv(),c=new Ir.Setting(l);c.addButton(f=>(f.setTooltip("Save").setIcon("checkmark").onClick(()=>J(this,null,function*(){let m=As.validate(this.statusConfiguration());if(m.length>0){let g=m.join(` +NOTE: All sort instructions, including default sort order, are disabled, due to 'ignoreSortInstructions' setting.`),e}get limit(){return this._limit}get layoutOptions(){return this._layoutOptions}get filters(){return this._filters}get sorting(){return this._sorting}get grouping(){return this._grouping}get error(){return this._error}applyQueryToTasks(e){this.filters.forEach(a=>{e=e.filter(a.filterFunction)});let{debugSettings:t}=he(),s=(t.ignoreSortInstructions?e:wi.by(this.sorting,e)).slice(0,this.limit);return En.by(this.grouping,s)}parseHideOptions({line:e}){let t=e.match(this.hideOptionsRegexp);if(t!==null){let n=t[1]==="hide";switch(t[2]){case"task count":this._layoutOptions.hideTaskCount=n;break;case"backlink":this._layoutOptions.hideBacklinks=n;break;case"priority":this._layoutOptions.hidePriority=n;break;case"created date":this._layoutOptions.hideCreatedDate=n;break;case"start date":this._layoutOptions.hideStartDate=n;break;case"scheduled date":this._layoutOptions.hideScheduledDate=n;break;case"due date":this._layoutOptions.hideDueDate=n;break;case"done date":this._layoutOptions.hideDoneDate=n;break;case"recurrence rule":this._layoutOptions.hideRecurrenceRule=n;break;case"edit button":this._layoutOptions.hideEditButton=n;break;case"urgency":this._layoutOptions.hideUrgency=n;break;default:this._error="do not understand hide/show option"}}}parseFilter(e){let t=Zu(e);return t!=null?(t.filter?this._filters.push(t.filter):this._error=t.error,!0):!1}parseLimit({line:e}){let t=e.match(this.limitRegexp);t!==null?this._limit=Number.parseInt(t[2],10):this._error="do not understand query limit"}parseSortBy({line:e}){let t=Ov(e);return t?(this._sorting.push(t),!0):!1}parseGroupBy({line:e}){let t=e.match(this.groupByRegexp);t!==null?this._grouping.push(En.fromGroupingProperty(t[1])):this._error="do not understand query grouping"}parseGroupBy2({line:e}){let t=Mv(e);return t?(this._grouping.push(t),!0):!1}};var ul=class{constructor({plugin:e,events:t}){this.addQueryRenderChild=this._addQueryRenderChild.bind(this);this.app=e.app,this.events=t,e.registerMarkdownCodeBlockProcessor("tasks",this._addQueryRenderChild.bind(this))}_addQueryRenderChild(e,t,n){return J(this,null,function*(){n.addChild(new dp({app:this.app,events:this.events,container:t,source:e,filePath:n.sourcePath}))})}},dp=class extends ll.MarkdownRenderChild{constructor({app:t,events:n,container:s,source:a,filePath:o}){super(s);switch(this.app=t,this.events=n,this.source=a,this.filePath=o,this.containerEl.className){case"block-language-tasks":this.query=new Mi({source:a}),this.queryType="tasks";break;default:this.query=new Mi({source:a}),this.queryType="tasks";break}}onload(){this.events.triggerRequestCacheUpdate(this.render.bind(this)),this.renderEventRef=this.events.onCacheUpdate(this.render.bind(this)),this.reloadQueryAtMidnight()}onunload(){this.renderEventRef!==void 0&&this.events.off(this.renderEventRef),this.queryReloadTimeout!==void 0&&clearTimeout(this.queryReloadTimeout)}reloadQueryAtMidnight(){let t=new Date;t.setHours(24,0,0,0);let n=new Date,s=t.getTime()-n.getTime();this.queryReloadTimeout=setTimeout(()=>{this.query=new Mi({source:this.source}),this.events.triggerRequestCacheUpdate(this.render.bind(this)),this.reloadQueryAtMidnight()},s+1e3)}render(s){return J(this,arguments,function*({tasks:t,state:n}){var o;let a=this.containerEl.createEl("div");if(n==="Warm"&&this.query.error===void 0){console.debug(`Render ${this.queryType} called for a block in active file "${this.filePath}", to select from ${t.length} tasks: plugin state: ${n}`),this.query.layoutOptions.explainQuery&&this.createExplanation(a);let l=this.query.applyQueryToTasks(t);for(let f of l.groups){this.addGroupHeadings(a,f.groupHeadings);let{taskList:m}=yield this.createTasksList({tasks:f.tasks,content:a});a.appendChild(m)}let c=l.totalTasksCount();console.debug(`${c} of ${t.length} tasks displayed in a block in "${this.filePath}"`),this.addTaskCount(a,c)}else this.query.error!==void 0?a.createDiv().innerHTML=`
Tasks query: ${this.query.error.replace(/\n/g,"
")}
`:a.setText("Loading Tasks ...");(o=this.containerEl.firstChild)==null||o.replaceWith(a)})}createExplanation(t){let n=this.query.explainQuery(),s=t.createEl("pre");s.addClasses(["plugin-tasks-query-explanation"]),s.setText(n),t.appendChild(s)}createTasksList(s){return J(this,arguments,function*({tasks:t,content:n}){let a=t.length,o=new Bn(this.query.layoutOptions),l=n.createEl("ul");l.addClasses(["contains-task-list","plugin-tasks-query-result"]),l.addClasses(o.specificClasses);let c=this.getGroupingAttribute();c&&c.length>0&&(l.dataset.taskGroupBy=c);for(let f=0;fC.remove());let v=this.query.layoutOptions.shortMode,R=T.createSpan("task-extras");this.query.layoutOptions.hideUrgency||this.addUrgency(R,m),this.query.layoutOptions.hideBacklinks||this.addBacklinks(R,m,v,g),this.query.layoutOptions.hideEditButton||this.addEditButton(R,m),l.appendChild(T)}return{taskList:l,tasksCount:a}})}addEditButton(t,n){t.createEl("a",{cls:"tasks-edit"}).onClickEvent(a=>{a.preventDefault();let o=c=>{Mu({originalTask:n,newTasks:Jt.removeInferredStatusIfNeeded(n,c)})};new Vn({app:this.app,task:n,onSubmit:o}).open()})}addUrgency(t,n){let s=new Intl.NumberFormat().format(n.urgency);t.createSpan({text:s,cls:"tasks-urgency"})}addGroupHeadings(t,n){for(let s of n)this.addGroupHeading(t,s)}addGroupHeading(t,n){return J(this,null,function*(){let s;n.nestingLevel===0?s=t.createEl("h4",{cls:"tasks-group-heading"}):n.nestingLevel===1?s=t.createEl("h5",{cls:"tasks-group-heading"}):s=t.createEl("h6",{cls:"tasks-group-heading"}),yield ll.MarkdownRenderer.renderMarkdown(n.name,s,this.filePath,this)})}addBacklinks(t,n,s,a){var f;let o=t.createSpan({cls:"tasks-backlink"});s||o.append(" (");let l=o.createEl("a");if(l.href=n.path,l.setAttribute("data-href",n.path),l.rel="noopener",l.target="_blank",l.addClass("internal-link"),s&&l.addClass("internal-link-short-mode"),n.precedingHeader!==null){let m=n.precedingHeader.replace(/#/g,"");l.href=l.href+"#"+m,l.setAttribute("data-href",l.getAttribute("data-href")+"#"+m)}let c;s?c=" \u{1F517}":c=(f=n.getLinkText({isFilenameUnique:a}))!=null?f:"",l.setText(c),s||o.append(")")}addTaskCount(t,n){this.query.layoutOptions.hideTaskCount||t.createDiv({text:`${n} task${n!==1?"s":""}`,cls:"tasks-count"})}isFilenameUnique({task:t}){let n=t.path.match(/([^/]*)\..+$/i);if(n===null)return;let s=n[1];return this.app.vault.getMarkdownFiles().filter(o=>{if(o.basename===s)return!0}).length<2}getGroupingAttribute(){let t=[];for(let n of this.query.grouping)t.push(n.property);return t.join(",")}};var He=require("obsidian");function Rv(){return[[" ","Unchecked","x","TODO"],["x","Checked"," ","DONE"],[">","Rescheduled","x","TODO"],["<","Scheduled","x","TODO"],["!","Important","x","TODO"],["-","Cancelled"," ","CANCELLED"],["/","In Progress","x","IN_PROGRESS"],["?","Question","x","TODO"],["*","Star","x","TODO"],["n","Note","x","TODO"],["l","Location","x","TODO"],["i","Information","x","TODO"],["I","Idea","x","TODO"],["S","Amount","x","TODO"],["p","Pro","x","TODO"],["c","Con","x","TODO"],["b","Bookmark","x","TODO"],['"',"Quote","x","TODO"],["0","Speech bubble 0","0","NON_TASK"],["1","Speech bubble 1","1","NON_TASK"],["2","Speech bubble 2","2","NON_TASK"],["3","Speech bubble 3","3","NON_TASK"],["4","Speech bubble 4","4","NON_TASK"],["5","Speech bubble 5","5","NON_TASK"],["6","Speech bubble 6","6","NON_TASK"],["7","Speech bubble 7","7","NON_TASK"],["8","Speech bubble 8","8","NON_TASK"],["9","Speech bubble 9","9","NON_TASK"]]}function xv(){return[[" ","incomplete","x","TODO"],["x","complete / done"," ","DONE"],["-","cancelled"," ","CANCELLED"],[">","deferred","x","TODO"],["/","in progress, or half-done","x","IN_PROGRESS"],["!","Important","x","TODO"],["?","question","x","TODO"],["R","review","x","TODO"],["+","Inbox / task that should be processed later","x","TODO"],["b","bookmark","x","TODO"],["B","brainstorm","x","TODO"],["D","deferred or scheduled","x","TODO"],["I","Info","x","TODO"],["i","idea","x","TODO"],["N","note","x","TODO"],["Q","quote","x","TODO"],["W","win / success / reward","x","TODO"],["P","pro","x","TODO"],["C","con","x","TODO"]]}function Pv(){return[[" ","Unchecked","x","TODO"],["x","Checked"," ","DONE"],["-","Cancelled"," ","CANCELLED"],["/","In Progress","x","IN_PROGRESS"],[">","Deferred","x","TODO"],["!","Important","x","TODO"],["?","Question","x","TODO"],["r","Review","x","TODO"]]}function Av(){return[[" ","Unchecked","x","TODO"],["x","Regular"," ","DONE"],["X","Checked"," ","DONE"],["-","Dropped"," ","CANCELLED"],[">","Forward","x","TODO"],["D","Date","x","TODO"],["?","Question","x","TODO"],["/","Half Done","x","IN_PROGRESS"],["+","Add","x","TODO"],["R","Research","x","TODO"],["!","Important","x","TODO"],["i","Idea","x","TODO"],["B","Brainstorm","x","TODO"],["P","Pro","x","TODO"],["C","Con","x","TODO"],["Q","Quote","x","TODO"],["N","Note","x","TODO"],["b","Bookmark","x","TODO"],["I","Information","x","TODO"],["p","Paraphrase","x","TODO"],["L","Location","x","TODO"],["E","Example","x","TODO"],["A","Answer","x","TODO"],["r","Reward","x","TODO"],["c","Choice","x","TODO"],["d","Doing","x","IN_PROGRESS"],["T","Time","x","TODO"],["@","Character / Person","x","TODO"],["t","Talk","x","TODO"],["O","Outline / Plot","x","TODO"],["~","Conflict","x","TODO"],["W","World","x","TODO"],["f","Clue / Find","x","TODO"],["F","Foreshadow","x","TODO"],["H","Favorite / Health","x","TODO"],["&","Symbolism","x","TODO"],["s","Secret","x","TODO"]]}function Nv(){return[[" ","to-do","x","TODO"],["/","incomplete","x","IN_PROGRESS"],["x","done"," ","DONE"],["-","canceled"," ","CANCELLED"],[">","forwarded","x","TODO"],["<","scheduling","x","TODO"],["?","question","x","TODO"],["!","important","x","TODO"],["*","star","x","TODO"],['"',"quote","x","TODO"],["l","location","x","TODO"],["b","bookmark","x","TODO"],["i","information","x","TODO"],["S","savings","x","TODO"],["I","idea","x","TODO"],["p","pros","x","TODO"],["c","cons","x","TODO"],["f","fire","x","TODO"],["k","key","x","TODO"],["w","win","x","TODO"],["u","up","x","TODO"],["d","down","x","TODO"]]}function Cv(){return[[" ","to-do","x","TODO"],["/","incomplete","x","IN_PROGRESS"],["x","done"," ","DONE"],["-","canceled"," ","CANCELLED"],[">","forwarded","x","TODO"],["<","scheduling","x","TODO"],["?","question","x","TODO"],["!","important","x","TODO"],["*","star","x","TODO"],['"',"quote","x","TODO"],["l","location","x","TODO"],["b","bookmark","x","TODO"],["i","information","x","TODO"],["S","savings","x","TODO"],["I","idea","x","TODO"],["p","pros","x","TODO"],["c","cons","x","TODO"],["f","fire","x","TODO"],["k","key","x","TODO"],["w","win","x","TODO"],["u","up","x","TODO"],["d","down","x","TODO"]]}var Iv=[{text:"Core Statuses",level:"h3",class:"",open:!0,notice:{class:"setting-item-description",text:null,html:"

These are the core statuses that Tasks supports natively, with no need for custom CSS styling or theming.

You can add edit and add your own custom statuses in the section below.

"},settings:[{name:"",description:"",type:"function",initialValue:"",placeholder:"",settingName:"insertTaskCoreStatusSettings",featureFlag:"",notice:null}]},{text:"Custom Statuses",level:"h3",class:"",open:!0,notice:{class:"setting-item-description",text:null,html:`

You should first select and install a CSS Snippet or Theme to style custom checkboxes.

Then, use the buttons below to set up your custom statuses, to match your chosen CSS checkboxes.

Note Any statuses with the same symbol as any earlier statuses will be ignored. You can confirm the actually loaded statuses by running the 'Create or edit task' command and looking at the Status drop-down.

See the documentation to get started!

`},settings:[{name:"",description:"",type:"function",initialValue:"",placeholder:"",settingName:"insertCustomTaskStatusSettings",featureFlag:"",notice:null}]}];var Yr=require("obsidian");var Cs=class{validate(e){let t=[];return t.push(...this.validateSymbol(e)),t.push(...this.validateName(e)),t.push(...this.validateNextSymbol(e)),t}validateStatusCollectionEntry(e){let[t,n,s,a]=e,o=[];if(o.push(...this.validateType(a)),t===s&&a!=="NON_TASK"&&o.push(`Status symbol '${t}' toggles to itself`),o.length>0)return o;let l=fe.createFromImportedValue(e).configuration;return o.push(...this.validateSymbolTypeConventions(l)),o.push(...this.validate(l)),o}validateSymbol(e){return Cs.validateOneSymbol(e.symbol,"Task Status Symbol")}validateNextSymbol(e){return Cs.validateOneSymbol(e.nextStatusSymbol,"Task Next Status Symbol")}validateName(e){let t=[];return e.name.length===0&&t.push("Task Status Name cannot be empty."),t}validateType(e){let t=Er[e],n=[];return t||n.push(`Status Type "${e}" is not a valid type`),t=="EMPTY"&&n.push('Status Type "EMPTY" is not permitted in user data'),n}validateSymbolTypeConventions(e){let t=[],n=e.symbol,s=new Be,a=n==="X"?"x":n,o=s.bySymbol(a);return o.type!=="EMPTY"&&(e.nextStatusSymbol!==o.nextStatusSymbol&&t.push(`Next Status Symbol for symbol '${n}': '${e.nextStatusSymbol}' is inconsistent with convention '${o.nextStatusSymbol}'`),e.type!==o.type&&t.push(`Status Type for symbol '${n}': '${e.type}' is inconsistent with convention '${o.type}'`)),t}static validateOneSymbol(e,t){let n=[];return e.length===0&&n.push(`${t} cannot be empty.`),e.length>1&&n.push(`${t} ("${e}") must be a single character.`),n}};var Is=new Cs,cr=class extends Yr.Modal{constructor(t,n,s){super(t.app);this.plugin=t;this.saved=!1;this.error=!1;this.statusSymbol=n.symbol,this.statusName=n.name,this.statusNextSymbol=n.nextStatusSymbol,this.statusAvailableAsCommand=n.availableAsCommand,this.type=n.type,this.isCoreStatus=s}statusConfiguration(){return new Mt(this.statusSymbol,this.statusName,this.statusNextSymbol,this.statusAvailableAsCommand,this.type)}display(){return J(this,null,function*(){let{contentEl:t}=this;t.empty();let n=t.createDiv(),s;new Yr.Setting(n).setName("Task Status Symbol").setDesc("This is the character between the square braces. (It can only be edited for Custom statuses, and not Core statuses.)").addText(f=>{s=f,f.setValue(this.statusSymbol).onChange(m=>{this.statusSymbol=m,cr.setValid(f,Is.validateSymbol(this.statusConfiguration()))})}).setDisabled(this.isCoreStatus).then(f=>{cr.setValid(s,Is.validateSymbol(this.statusConfiguration()))});let a;new Yr.Setting(n).setName("Task Status Name").setDesc("This is the friendly name of the task status.").addText(f=>{a=f,f.setValue(this.statusName).onChange(m=>{this.statusName=m,cr.setValid(f,Is.validateName(this.statusConfiguration()))})}).then(f=>{cr.setValid(a,Is.validateName(this.statusConfiguration()))});let o;new Yr.Setting(n).setName("Task Next Status Symbol").setDesc("When clicked on this is the symbol that should be used next.").addText(f=>{o=f,f.setValue(this.statusNextSymbol).onChange(m=>{this.statusNextSymbol=m,cr.setValid(f,Is.validateNextSymbol(this.statusConfiguration()))})}).then(f=>{cr.setValid(o,Is.validateNextSymbol(this.statusConfiguration()))}),new Yr.Setting(n).setName("Task Status Type").setDesc("Control how the status behaves for searching and toggling.").addDropdown(f=>{["TODO","IN_PROGRESS","DONE","CANCELLED","NON_TASK"].forEach(g=>{f.addOption(g,g)}),f.setValue(this.type).onChange(g=>{this.type=fe.getTypeFromStatusTypeString(g)})}),fe.tasksPluginCanCreateCommandsForStatuses()&&new Yr.Setting(n).setName("Available as command").setDesc("If enabled this status will be available as a command so you can assign a hotkey and toggle the status using it.").addToggle(f=>{f.setValue(this.statusAvailableAsCommand).onChange(m=>J(this,null,function*(){this.statusAvailableAsCommand=m}))});let l=t.createDiv(),c=new Yr.Setting(l);c.addButton(f=>(f.setTooltip("Save").setIcon("checkmark").onClick(()=>J(this,null,function*(){let m=Is.validate(this.statusConfiguration());if(m.length>0){let g=m.join(` `)+` -Fix errors before saving.`;new Ir.Notice(g);return}this.saved=!0,this.close()})),f)),c.addExtraButton(f=>(f.setIcon("cross").setTooltip("Cancel").onClick(()=>{this.saved=!1,this.close()}),f))})}onOpen(){this.display()}static setValidationError(t){t.inputEl.addClass("tasks-settings-is-invalid")}static removeValidationError(t){t.inputEl.removeClass("tasks-settings-is-invalid")}static setValid(t,n){n.length===0?ur.removeValidationError(t):ur.setValidationError(t)}};var Oi=class extends Ge.PluginSettingTab{constructor({plugin:t}){super(t.app,t);this.customFunctions={insertTaskCoreStatusSettings:this.insertTaskCoreStatusSettings.bind(this),insertCustomTaskStatusSettings:this.insertCustomTaskStatusSettings.bind(this)};this.plugin=t}saveSettings(t){return J(this,null,function*(){yield this.plugin.saveSettings(),t&&this.display()})}display(){let{containerEl:t}=this;t.empty(),this.containerEl.addClass("tasks-settings"),t.createEl("h3",{text:"Tasks Settings"}),t.createEl("p",{cls:"tasks-setting-important",text:"Changing any settings requires a restart of obsidian."}),t.createEl("h4",{text:"Global filter Settings"}),new Ge.Setting(t).setName("Global task filter").setDesc(Oi.createFragmentWithHTML('

Recommended: Leave empty if you want all checklist items in your vault to be tasks managed by this plugin.

Use a global filter if you want Tasks to only act on a subset of your "- [ ]" checklist items, so that a checklist item must include the specified string in its description in order to be considered a task.

For example, if you set the global filter to #task, the Tasks plugin will only handle checklist items tagged with #task.
Other checklist items will remain normal checklist items and not appear in queries or get a done date set.

See the documentation.

')).addText(s=>{let a=se();s.setPlaceholder("e.g. #task or TODO").setValue(a.globalFilter).onChange(o=>J(this,null,function*(){Gt({globalFilter:o}),yield this.plugin.saveSettings()}))}),new Ge.Setting(t).setName("Remove global filter from description").setDesc("Enabling this removes the string that you set as global filter from the task description when displaying a task.").addToggle(s=>{let a=se();s.setValue(a.removeGlobalFilter).onChange(o=>J(this,null,function*(){Gt({removeGlobalFilter:o}),yield this.plugin.saveSettings()}))}),t.createEl("h4",{text:"Task Statuses"});let{headingOpened:n}=se();Nv.forEach(s=>{this.addOneSettingsBlock(t,s,n)}),t.createEl("h4",{text:"Date Settings"}),new Ge.Setting(t).setName("Set created date on every added task").setDesc("Enabling this will add a timestamp \u2795 YYYY-MM-DD before other date values, when a task is created with 'Create or edit task', or by completing a recurring task.").addToggle(s=>{let a=se();s.setValue(a.setCreatedDate).onChange(o=>J(this,null,function*(){Gt({setCreatedDate:o}),yield this.plugin.saveSettings()}))}),new Ge.Setting(t).setName("Set done date on every completed task").setDesc("Enabling this will add a timestamp \u2705 YYYY-MM-DD at the end when a task is toggled to done.").addToggle(s=>{let a=se();s.setValue(a.setDoneDate).onChange(o=>J(this,null,function*(){Gt({setDoneDate:o}),yield this.plugin.saveSettings()}))}),new Ge.Setting(t).setName("Use filename as Scheduled date for undated tasks").setDesc(Oi.createFragmentWithHTML('Save time entering Scheduled (\u23F3) dates.
If this option is enabled, any undated tasks will be given a default Scheduled date extracted from their file name.
The date in the file name must be in one of YYYY-MM-DD or YYYYMMDD formats.
Undated tasks have none of Due (\u{1F4C5} ), Scheduled (\u23F3) and Start (\u{1F6EB}) dates.

See the documentation.

')).addToggle(s=>{let a=se();s.setValue(a.useFilenameAsScheduledDate).onChange(o=>J(this,null,function*(){Gt({useFilenameAsScheduledDate:o}),yield this.plugin.saveSettings()}))}),new Ge.Setting(t).setName("Folders with default Scheduled dates").setDesc("Leave empty if you want to use default Scheduled dates everywhere, or enter a comma-separated list of folders.").addText(s=>J(this,null,function*(){let a=se();yield this.plugin.saveSettings(),s.setValue(Oi.renderFolderArray(a.filenameAsDateFolders)).onChange(o=>J(this,null,function*(){let l=Oi.parseCommaSeparatedFolders(o);Gt({filenameAsDateFolders:l}),yield this.plugin.saveSettings()}))})),t.createEl("h4",{text:"Auto-suggest Settings"}),new Ge.Setting(t).setName("Auto-suggest task content").setDesc("Enabling this will open an intelligent suggest menu while typing inside a recognized task line.").addToggle(s=>{let a=se();s.setValue(a.autoSuggestInEditor).onChange(o=>J(this,null,function*(){Gt({autoSuggestInEditor:o}),yield this.plugin.saveSettings()}))}),new Ge.Setting(t).setName("Minimum match length for auto-suggest").setDesc("If higher than 0, auto-suggest will be triggered only when the beginning of any supported keywords is recognized.").addSlider(s=>{let a=se();s.setLimits(0,3,1).setValue(a.autoSuggestMinMatch).setDynamicTooltip().onChange(o=>J(this,null,function*(){Gt({autoSuggestMinMatch:o}),yield this.plugin.saveSettings()}))}),new Ge.Setting(t).setName("Maximum number of auto-suggestions to show").setDesc('How many suggestions should be shown when an auto-suggest menu pops up (including the "\u23CE" option).').addSlider(s=>{let a=se();s.setLimits(3,12,1).setValue(a.autoSuggestMaxItems).setDynamicTooltip().onChange(o=>J(this,null,function*(){Gt({autoSuggestMaxItems:o}),yield this.plugin.saveSettings()}))}),t.createEl("h4",{text:"Dialog Settings"}),new Ge.Setting(t).setName("Provide access keys in dialogs").setDesc("If the access keys (keyboard shortcuts) for various controls in dialog boxes conflict with system keyboard shortcuts or assistive technology functionality that is important for you, you may want to deactivate them here.").addToggle(s=>{let a=se();s.setValue(a.provideAccessKeys).onChange(o=>J(this,null,function*(){Gt({provideAccessKeys:o}),yield this.plugin.saveSettings()}))})}addOneSettingsBlock(t,n,s){let a=t.createEl("details",{cls:"tasks-nested-settings",attr:Ce({},n.open||s[n.text]?{open:!0}:{})});a.empty(),a.ontoggle=()=>{s[n.text]=a.open,Gt({headingOpened:s}),this.plugin.saveSettings()};let o=a.createEl("summary");if(new Ge.Setting(o).setHeading().setName(n.text),o.createDiv("collapser").createDiv("handle"),n.notice!==null){let l=a.createEl("div",{cls:n.notice.class,text:n.notice.text});n.notice.html!==null&&l.insertAdjacentHTML("beforeend",n.notice.html)}n.settings.forEach(l=>{if(!(l.featureFlag!==""&&!xb(l.featureFlag))&&(l.type==="checkbox"?new Ge.Setting(a).setName(l.name).setDesc(l.description).addToggle(c=>{let f=se();f.generalSettings[l.settingName]||Ts(l.settingName,l.initialValue),c.setValue(f.generalSettings[l.settingName]).onChange(m=>J(this,null,function*(){Ts(l.settingName,m),yield this.plugin.saveSettings()}))}):l.type==="text"?new Ge.Setting(a).setName(l.name).setDesc(l.description).addText(c=>{let f=se();f.generalSettings[l.settingName]||Ts(l.settingName,l.initialValue);let m=g=>J(this,null,function*(){Ts(l.settingName,g),yield this.plugin.saveSettings()});c.setPlaceholder(l.placeholder.toString()).setValue(f.generalSettings[l.settingName].toString()).onChange((0,Ge.debounce)(m,500,!0))}):l.type==="textarea"?new Ge.Setting(a).setName(l.name).setDesc(l.description).addTextArea(c=>{let f=se();f.generalSettings[l.settingName]||Ts(l.settingName,l.initialValue);let m=g=>J(this,null,function*(){Ts(l.settingName,g),yield this.plugin.saveSettings()});c.setPlaceholder(l.placeholder.toString()).setValue(f.generalSettings[l.settingName].toString()).onChange((0,Ge.debounce)(m,500,!0)),c.inputEl.rows=8,c.inputEl.cols=40}):l.type==="function"&&this.customFunctions[l.settingName](a,this),l.notice!==null)){let c=a.createEl("p",{cls:l.notice.class,text:l.notice.text});l.notice.html!==null&&c.insertAdjacentHTML("beforeend",l.notice.html)}})}static parseCommaSeparatedFolders(t){return t.split(",").map(n=>n.trim()).map(n=>n.replace(/^\/|\/$/g,"")).filter(n=>n!=="")}static renderFolderArray(t){return t.join(",")}insertTaskCoreStatusSettings(t,n){let{statusSettings:s}=se();s.coreStatuses.forEach(a=>{Cv(t,a,s.coreStatuses,s,n,n.plugin,!0)})}insertCustomTaskStatusSettings(t,n){let{statusSettings:s}=se();s.customStatuses.forEach(f=>{Cv(t,f,s.customStatuses,s,n,n.plugin,!1)}),t.createEl("div"),new Ge.Setting(t).addButton(f=>{f.setButtonText("Add New Task Status").setCta().onClick(()=>J(this,null,function*(){pt.addStatus(s.customStatuses,new St("","","",!1,"TODO")),yield Mi(s,n)}))}).infoEl.remove();let o=[["AnuPpuccin Theme",Ov()],["Ebullientworks Theme",Rv()],["ITS Theme & SlRvb Checkboxes",Pv()],["Minimal Theme",xv()],["Things Theme",Av()],["Aura Theme (Dark mode only)",Mv()]];for(let[f,m]of o)new Ge.Setting(t).addButton(T=>{let E=`${f}: Add ${m.length} supported Statuses`;T.setButtonText(E).onClick(()=>J(this,null,function*(){yield yF(m,s,n)}))}).infoEl.remove();new Ge.Setting(t).addButton(f=>{f.setButtonText("Add All Unknown Status Types").setCta().onClick(()=>J(this,null,function*(){let g=this.plugin.getTasks().map(E=>E.status),T=Be.getInstance().findUnknownStatuses(g);T.length!==0&&(T.forEach(E=>{pt.addStatus(s.customStatuses,E)}),yield Mi(s,n))}))}).infoEl.remove(),new Ge.Setting(t).addButton(f=>{f.setButtonText("Reset Custom Status Types to Defaults").setWarning().onClick(()=>J(this,null,function*(){pt.resetAllCustomStatuses(s),yield Mi(s,n)}))}).infoEl.remove()}},io=Oi;io.createFragmentWithHTML=t=>createFragment(n=>n.createDiv().innerHTML=t);function Cv(r,e,t,n,s,a,o){let l=r.createEl("pre");l.addClass("row-for-status"),l.textContent=new pe(e).previewText();let c=new Ge.Setting(r);c.infoEl.replaceWith(l),o||c.addExtraButton(f=>{f.setIcon("cross").setTooltip("Delete").onClick(()=>J(this,null,function*(){pt.deleteStatus(t,e)&&(yield Mi(n,s))}))}),c.addExtraButton(f=>{f.setIcon("pencil").setTooltip("Edit").onClick(()=>J(this,null,function*(){let m=new ur(a,e,o);m.onClose=()=>J(this,null,function*(){m.saved&&pt.replaceStatus(t,e,m.statusConfiguration())&&(yield Mi(n,s))}),m.open()}))}),c.infoEl.remove()}function yF(r,e,t){return J(this,null,function*(){pt.bulkAddStatusCollection(e,r).forEach(s=>{new Ge.Notice(s)}),yield Mi(e,t)})}function Mi(r,e){return J(this,null,function*(){Gt({statusSettings:r}),pt.applyToStatusRegistry(r,Be.getInstance()),yield e.saveSettings(!0)})}var Iv=require("obsidian");var ul=class extends Iv.EditorSuggest{constructor(t,n){super(t);this.settings=n}onTrigger(t,n,s){if(!this.settings.autoSuggestInEditor)return null;let a=n.getLine(t.line);return a.contains(this.settings.globalFilter)&&a.match(ae.taskRegex)?{start:{line:t.line,ch:0},end:{line:t.line,ch:a.length},query:a}:null}getSuggestions(t){var o,l,c;let n=t.query,s=t.editor.getCursor();return((c=(l=(o=za()).buildSuggestions)==null?void 0:l.call(o,n,s.ch,this.settings))!=null?c:[]).map(f=>er(Ce({},f),{context:t}))}renderSuggestion(t,n){n.setText(t.displayText)}selectSuggestion(t,n){var c,f,m;let s=t.context.editor;if(t.suggestionType==="empty"){this.close();let g=new KeyboardEvent("keydown",{code:"Enter",key:"Enter"});(f=(c=s==null?void 0:s.cm)==null?void 0:c.contentDOM)==null||f.dispatchEvent(g);return}let a=t.context.editor.getCursor(),o={line:a.line,ch:(m=t.insertAt)!=null?m:a.ch},l=t.insertSkip?{line:a.line,ch:o.ch+t.insertSkip}:void 0;t.context.editor.replaceRange(t.appendText,o,l),t.context.editor.setCursor({line:a.line,ch:o.ch+t.appendText.length})}};var Fv=(r,e)=>{let t,n=new Promise((o,l)=>{t=o});return e(r,o=>{let l=o.map(c=>c.toFileLineString()).join(` -`);t(l)}).open(),n};var Lv=(r,e)=>{let t=xu({line:"",path:""});return new Bn({app:r,task:t,onSubmit:e})};var Yv=r=>({createTaskLineModal:()=>Fv(r,Lv)});var ll=class extends Uv.Plugin{get apiV1(){return Yv(app)}onload(){return J(this,null,function*(){Du.registerConsoleLogger(),console.log('loading plugin "tasks"'),yield this.loadSettings(),this.addSettingTab(new io({plugin:this})),Lb({metadataCache:this.app.metadataCache,vault:this.app.vault,workspace:this.app.workspace}),yield this.loadTaskStatuses();let t=new Nu({obsidianEvents:this.app.workspace});this.cache=new bs({metadataCache:this.app.metadataCache,vault:this.app.vault,events:t}),this.inlineRenderer=new Cu({plugin:this}),this.queryRenderer=new al({plugin:this,events:t}),this.registerEditorExtension(dv()),this.registerEditorSuggest(new ul(this.app,se())),new Au({plugin:this})})}loadTaskStatuses(){return J(this,null,function*(){let{statusSettings:t}=se();pt.applyToStatusRegistry(t,Be.getInstance())})}onunload(){var t;console.log('unloading plugin "tasks"'),(t=this.cache)==null||t.unload()}loadSettings(){return J(this,null,function*(){let t=yield this.loadData();Gt(t),yield this.loadTaskStatuses()})}saveSettings(){return J(this,null,function*(){yield this.saveData(se())})}getTasks(){var t;return(t=this.cache)==null?void 0:t.getTasks()}}; +Fix errors before saving.`;new Yr.Notice(g);return}this.saved=!0,this.close()})),f)),c.addExtraButton(f=>(f.setIcon("cross").setTooltip("Cancel").onClick(()=>{this.saved=!1,this.close()}),f))})}onOpen(){this.display()}static setValidationError(t){t.inputEl.addClass("tasks-settings-is-invalid")}static removeValidationError(t){t.inputEl.removeClass("tasks-settings-is-invalid")}static setValid(t,n){n.length===0?cr.removeValidationError(t):cr.setValidationError(t)}};var Ri=class extends He.PluginSettingTab{constructor({plugin:t}){super(t.app,t);this.customFunctions={insertTaskCoreStatusSettings:this.insertTaskCoreStatusSettings.bind(this),insertCustomTaskStatusSettings:this.insertCustomTaskStatusSettings.bind(this)};this.plugin=t}saveSettings(t){return J(this,null,function*(){yield this.plugin.saveSettings(),t&&this.display()})}display(){let{containerEl:t}=this;t.empty(),this.containerEl.addClass("tasks-settings"),t.createEl("h3",{text:"Tasks Settings"}),t.createEl("p",{cls:"tasks-setting-important",text:"Changing any settings requires a restart of obsidian."}),t.createEl("h4",{text:"Global filter Settings"}),new He.Setting(t).setName("Global task filter").setDesc(Ri.createFragmentWithHTML('

Recommended: Leave empty if you want all checklist items in your vault to be tasks managed by this plugin.

Use a global filter if you want Tasks to only act on a subset of your "- [ ]" checklist items, so that a checklist item must include the specified string in its description in order to be considered a task.

For example, if you set the global filter to #task, the Tasks plugin will only handle checklist items tagged with #task.
Other checklist items will remain normal checklist items and not appear in queries or get a done date set.

See the documentation.

')).addText(s=>{s.setPlaceholder("e.g. #task or TODO").setValue(Le.get()).onChange(a=>J(this,null,function*(){Le.set(a),yield this.plugin.saveSettings()}))}),new He.Setting(t).setName("Remove global filter from description").setDesc("Enabling this removes the string that you set as global filter from the task description when displaying a task.").addToggle(s=>{let a=he();s.setValue(a.removeGlobalFilter).onChange(o=>J(this,null,function*(){Ct({removeGlobalFilter:o}),yield this.plugin.saveSettings()}))}),t.createEl("h4",{text:"Task Statuses"});let{headingOpened:n}=he();Iv.forEach(s=>{this.addOneSettingsBlock(t,s,n)}),t.createEl("h4",{text:"Date Settings"}),new He.Setting(t).setName("Set created date on every added task").setDesc("Enabling this will add a timestamp \u2795 YYYY-MM-DD before other date values, when a task is created with 'Create or edit task', or by completing a recurring task.").addToggle(s=>{let a=he();s.setValue(a.setCreatedDate).onChange(o=>J(this,null,function*(){Ct({setCreatedDate:o}),yield this.plugin.saveSettings()}))}),new He.Setting(t).setName("Set done date on every completed task").setDesc("Enabling this will add a timestamp \u2705 YYYY-MM-DD at the end when a task is toggled to done.").addToggle(s=>{let a=he();s.setValue(a.setDoneDate).onChange(o=>J(this,null,function*(){Ct({setDoneDate:o}),yield this.plugin.saveSettings()}))}),new He.Setting(t).setName("Use filename as Scheduled date for undated tasks").setDesc(Ri.createFragmentWithHTML('Save time entering Scheduled (\u23F3) dates.
If this option is enabled, any undated tasks will be given a default Scheduled date extracted from their file name.
The date in the file name must be in one of YYYY-MM-DD or YYYYMMDD formats.
Undated tasks have none of Due (\u{1F4C5} ), Scheduled (\u23F3) and Start (\u{1F6EB}) dates.

See the documentation.

')).addToggle(s=>{let a=he();s.setValue(a.useFilenameAsScheduledDate).onChange(o=>J(this,null,function*(){Ct({useFilenameAsScheduledDate:o}),yield this.plugin.saveSettings()}))}),new He.Setting(t).setName("Folders with default Scheduled dates").setDesc("Leave empty if you want to use default Scheduled dates everywhere, or enter a comma-separated list of folders.").addText(s=>J(this,null,function*(){let a=he();yield this.plugin.saveSettings(),s.setValue(Ri.renderFolderArray(a.filenameAsDateFolders)).onChange(o=>J(this,null,function*(){let l=Ri.parseCommaSeparatedFolders(o);Ct({filenameAsDateFolders:l}),yield this.plugin.saveSettings()}))})),t.createEl("h4",{text:"Auto-suggest Settings"}),new He.Setting(t).setName("Auto-suggest task content").setDesc("Enabling this will open an intelligent suggest menu while typing inside a recognized task line.").addToggle(s=>{let a=he();s.setValue(a.autoSuggestInEditor).onChange(o=>J(this,null,function*(){Ct({autoSuggestInEditor:o}),yield this.plugin.saveSettings()}))}),new He.Setting(t).setName("Minimum match length for auto-suggest").setDesc("If higher than 0, auto-suggest will be triggered only when the beginning of any supported keywords is recognized.").addSlider(s=>{let a=he();s.setLimits(0,3,1).setValue(a.autoSuggestMinMatch).setDynamicTooltip().onChange(o=>J(this,null,function*(){Ct({autoSuggestMinMatch:o}),yield this.plugin.saveSettings()}))}),new He.Setting(t).setName("Maximum number of auto-suggestions to show").setDesc('How many suggestions should be shown when an auto-suggest menu pops up (including the "\u23CE" option).').addSlider(s=>{let a=he();s.setLimits(3,12,1).setValue(a.autoSuggestMaxItems).setDynamicTooltip().onChange(o=>J(this,null,function*(){Ct({autoSuggestMaxItems:o}),yield this.plugin.saveSettings()}))}),t.createEl("h4",{text:"Dialog Settings"}),new He.Setting(t).setName("Provide access keys in dialogs").setDesc("If the access keys (keyboard shortcuts) for various controls in dialog boxes conflict with system keyboard shortcuts or assistive technology functionality that is important for you, you may want to deactivate them here.").addToggle(s=>{let a=he();s.setValue(a.provideAccessKeys).onChange(o=>J(this,null,function*(){Ct({provideAccessKeys:o}),yield this.plugin.saveSettings()}))})}addOneSettingsBlock(t,n,s){let a=t.createEl("details",{cls:"tasks-nested-settings",attr:Ne({},n.open||s[n.text]?{open:!0}:{})});a.empty(),a.ontoggle=()=>{s[n.text]=a.open,Ct({headingOpened:s}),this.plugin.saveSettings()};let o=a.createEl("summary");if(new He.Setting(o).setHeading().setName(n.text),o.createDiv("collapser").createDiv("handle"),n.notice!==null){let l=a.createEl("div",{cls:n.notice.class,text:n.notice.text});n.notice.html!==null&&l.insertAdjacentHTML("beforeend",n.notice.html)}n.settings.forEach(l=>{if(!(l.featureFlag!==""&&!Cb(l.featureFlag))&&(l.type==="checkbox"?new He.Setting(a).setName(l.name).setDesc(l.description).addToggle(c=>{let f=he();f.generalSettings[l.settingName]||ws(l.settingName,l.initialValue),c.setValue(f.generalSettings[l.settingName]).onChange(m=>J(this,null,function*(){ws(l.settingName,m),yield this.plugin.saveSettings()}))}):l.type==="text"?new He.Setting(a).setName(l.name).setDesc(l.description).addText(c=>{let f=he();f.generalSettings[l.settingName]||ws(l.settingName,l.initialValue);let m=g=>J(this,null,function*(){ws(l.settingName,g),yield this.plugin.saveSettings()});c.setPlaceholder(l.placeholder.toString()).setValue(f.generalSettings[l.settingName].toString()).onChange((0,He.debounce)(m,500,!0))}):l.type==="textarea"?new He.Setting(a).setName(l.name).setDesc(l.description).addTextArea(c=>{let f=he();f.generalSettings[l.settingName]||ws(l.settingName,l.initialValue);let m=g=>J(this,null,function*(){ws(l.settingName,g),yield this.plugin.saveSettings()});c.setPlaceholder(l.placeholder.toString()).setValue(f.generalSettings[l.settingName].toString()).onChange((0,He.debounce)(m,500,!0)),c.inputEl.rows=8,c.inputEl.cols=40}):l.type==="function"&&this.customFunctions[l.settingName](a,this),l.notice!==null)){let c=a.createEl("p",{cls:l.notice.class,text:l.notice.text});l.notice.html!==null&&c.insertAdjacentHTML("beforeend",l.notice.html)}})}static parseCommaSeparatedFolders(t){return t.split(",").map(n=>n.trim()).map(n=>n.replace(/^\/|\/$/g,"")).filter(n=>n!=="")}static renderFolderArray(t){return t.join(",")}insertTaskCoreStatusSettings(t,n){let{statusSettings:s}=he();s.coreStatuses.forEach(a=>{Fv(t,a,s.coreStatuses,s,n,n.plugin,!0)})}insertCustomTaskStatusSettings(t,n){let{statusSettings:s}=he();s.customStatuses.forEach(f=>{Fv(t,f,s.customStatuses,s,n,n.plugin,!1)}),t.createEl("div"),new He.Setting(t).addButton(f=>{f.setButtonText("Add New Task Status").setCta().onClick(()=>J(this,null,function*(){yt.addStatus(s.customStatuses,new Mt("","","",!1,"TODO")),yield xi(s,n)}))}).infoEl.remove();let o=[["AnuPpuccin Theme",Rv()],["Ebullientworks Theme",Pv()],["ITS Theme & SlRvb Checkboxes",Av()],["Minimal Theme",Nv()],["Things Theme",Cv()],["Aura Theme (Dark mode only)",xv()]];for(let[f,m]of o)new He.Setting(t).addButton(T=>{let S=`${f}: Add ${m.length} supported Statuses`;T.setButtonText(S).onClick(()=>J(this,null,function*(){yield gF(m,s,n)}))}).infoEl.remove();new He.Setting(t).addButton(f=>{f.setButtonText("Add All Unknown Status Types").setCta().onClick(()=>J(this,null,function*(){let g=this.plugin.getTasks().map(S=>S.status),T=Be.getInstance().findUnknownStatuses(g);T.length!==0&&(T.forEach(S=>{yt.addStatus(s.customStatuses,S)}),yield xi(s,n))}))}).infoEl.remove(),new He.Setting(t).addButton(f=>{f.setButtonText("Reset Custom Status Types to Defaults").setWarning().onClick(()=>J(this,null,function*(){yt.resetAllCustomStatuses(s),yield xi(s,n)}))}).infoEl.remove()}},oo=Ri;oo.createFragmentWithHTML=t=>createFragment(n=>n.createDiv().innerHTML=t);function Fv(r,e,t,n,s,a,o){let l=r.createEl("pre");l.addClass("row-for-status"),l.textContent=new fe(e).previewText();let c=new He.Setting(r);c.infoEl.replaceWith(l),o||c.addExtraButton(f=>{f.setIcon("cross").setTooltip("Delete").onClick(()=>J(this,null,function*(){yt.deleteStatus(t,e)&&(yield xi(n,s))}))}),c.addExtraButton(f=>{f.setIcon("pencil").setTooltip("Edit").onClick(()=>J(this,null,function*(){let m=new cr(a,e,o);m.onClose=()=>J(this,null,function*(){m.saved&&yt.replaceStatus(t,e,m.statusConfiguration())&&(yield xi(n,s))}),m.open()}))}),c.infoEl.remove()}function gF(r,e,t){return J(this,null,function*(){yt.bulkAddStatusCollection(e,r).forEach(s=>{new He.Notice(s)}),yield xi(e,t)})}function xi(r,e){return J(this,null,function*(){Ct({statusSettings:r}),yt.applyToStatusRegistry(r,Be.getInstance()),yield e.saveSettings(!0)})}var Lv=require("obsidian");var cl=class extends Lv.EditorSuggest{constructor(t,n){super(t);this.settings=n}onTrigger(t,n,s){if(!this.settings.autoSuggestInEditor)return null;let a=n.getLine(t.line);return Le.includedIn(a)&&a.match(ie.taskRegex)?{start:{line:t.line,ch:0},end:{line:t.line,ch:a.length},query:a}:null}getSuggestions(t){var o,l,c;let n=t.query,s=t.editor.getCursor();return((c=(l=(o=Ka()).buildSuggestions)==null?void 0:l.call(o,n,s.ch,this.settings))!=null?c:[]).map(f=>rr(Ne({},f),{context:t}))}renderSuggestion(t,n){n.setText(t.displayText)}selectSuggestion(t,n){var c,f,m;let s=t.context.editor;if(t.suggestionType==="empty"){this.close();let g=new KeyboardEvent("keydown",{code:"Enter",key:"Enter"});(f=(c=s==null?void 0:s.cm)==null?void 0:c.contentDOM)==null||f.dispatchEvent(g);return}let a=t.context.editor.getCursor(),o={line:a.line,ch:(m=t.insertAt)!=null?m:a.ch},l=t.insertSkip?{line:a.line,ch:o.ch+t.insertSkip}:void 0;t.context.editor.replaceRange(t.appendText,o,l),t.context.editor.setCursor({line:a.line,ch:o.ch+t.appendText.length})}};var Yv=(r,e)=>{let t,n=new Promise((o,l)=>{t=o});return e(r,o=>{let l=o.map(c=>c.toFileLineString()).join(` +`);t(l)}).open(),n};var Uv=(r,e)=>{let t=Nu({line:"",path:""});return new Vn({app:r,task:t,onSubmit:e})};var Wv=r=>({createTaskLineModal:()=>Yv(r,Uv)});var dl=class extends qv.Plugin{get apiV1(){return Wv(app)}onload(){return J(this,null,function*(){Ou.registerConsoleLogger(),console.log('loading plugin "tasks"'),yield this.loadSettings(),this.addSettingTab(new oo({plugin:this})),Wb({metadataCache:this.app.metadataCache,vault:this.app.vault,workspace:this.app.workspace}),yield this.loadTaskStatuses();let t=new Iu({obsidianEvents:this.app.workspace});this.cache=new Ds({metadataCache:this.app.metadataCache,vault:this.app.vault,events:t}),this.inlineRenderer=new Fu({plugin:this}),this.queryRenderer=new ul({plugin:this,events:t}),this.registerEditorExtension(hv()),this.registerEditorSuggest(new cl(this.app,he())),new Cu({plugin:this})})}loadTaskStatuses(){return J(this,null,function*(){let{statusSettings:t}=he();yt.applyToStatusRegistry(t,Be.getInstance())})}onunload(){var t;console.log('unloading plugin "tasks"'),(t=this.cache)==null||t.unload()}loadSettings(){return J(this,null,function*(){let t=yield this.loadData();Ct(t),yield this.loadTaskStatuses()})}saveSettings(){return J(this,null,function*(){yield this.saveData(he())})}getTasks(){var t;return(t=this.cache)==null?void 0:t.getTasks()}}; /*! * EventEmitter2 * https://github.com/hij1nx/EventEmitter2 diff --git a/.obsidian/plugins/obsidian-tasks-plugin/manifest.json b/.obsidian/plugins/obsidian-tasks-plugin/manifest.json index ad2a3d36..b1949fa5 100644 --- a/.obsidian/plugins/obsidian-tasks-plugin/manifest.json +++ b/.obsidian/plugins/obsidian-tasks-plugin/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-tasks-plugin", "name": "Tasks", - "version": "3.0.0", + "version": "3.1.0", "minAppVersion": "0.14.6", "description": "Task management for Obsidian", "author": "Martin Schenck and Clare Macrae", diff --git a/.obsidian/workspace-mobile.json b/.obsidian/workspace-mobile.json index 6ddc1229..befa1152 100644 --- a/.obsidian/workspace-mobile.json +++ b/.obsidian/workspace-mobile.json @@ -69,7 +69,7 @@ "state": { "type": "markdown", "state": { - "file": "00.03 News/Jaylen Brown Is Trying to Find a Balance.md", + "file": "01.02 Home/@Main Dashboard.md", "mode": "preview", "source": false } @@ -150,7 +150,7 @@ "state": { "type": "backlink", "state": { - "file": "00.03 News/Jaylen Brown Is Trying to Find a Balance.md", + "file": "01.02 Home/@Main Dashboard.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -167,7 +167,7 @@ "state": { "type": "outgoing-link", "state": { - "file": "00.03 News/Jaylen Brown Is Trying to Find a Balance.md", + "file": "01.02 Home/@Main Dashboard.md", "linksCollapsed": false, "unlinkedCollapsed": false } @@ -230,39 +230,41 @@ "obsidian-media-db-plugin:Add new Media DB entry": false, "msg-handler:MSG Handler": false, "obsidian-read-it-later:ReadItLater: Save clipboard": false, - "meld-encrypt:Create new encrypted note": false, "obsidian42-brat:BRAT": false, + "meld-encrypt:Create new encrypted note": false, + "obsidian-full-calendar:Open Full Calendar": false, "obsidian-memos:Memos": false } }, "active": "a51da5ef0d807c2e", "lastOpenFiles": [ + "04.01 lebv.org/Arrêt de Maintenue de la Famille Le Bastart.md", "01.02 Home/@Main Dashboard.md", - "01.02 Home/@Shopping list.md", - "00.01 Admin/Calendars/2023-04-04.md", - "00.01 Admin/Calendars/2023-04-05.md", - "00.01 Admin/Calendars/2023-04-06.md", - "00.01 Admin/Calendars/2023-04-07.md", - "02.03 Zürich/Polo Park Zürich.md", - "03.04 Cinematheque/@Cinematheque.md", - "03.04 Cinematheque/The Guard (2011).md", - "03.04 Cinematheque/Thank You for Smoking (2005).md", - "05.01 Computer setup/Storage and Syncing.md", - "00.03 News/How Michael Cohen’s Big Mouth Could Be Derailing the Trump Prosecution.md", - "02.02 Paris/Alluma.md", - "02.02 Paris/Narro.md", - "00.01 Admin/Calendars/2023-04-03.md", - "00.03 News/The Big Coin Heist.md", - "00.03 News/The Unimaginable Horror of Evan Gershkovich’s Arrest in Moscow.md", - "00.03 News/We want objective judges and doctors. Why not journalists too.md", - "00.02 Inbox/Why are Americans dying so young.md", - "00.01 Admin/Calendars/2023-04-02.md", "05.02 Networks/Server VPN.md", - "05.02 Networks/Configuring Caddy.md", - "05.02 Networks/Server Alias.md", "05.02 Networks/Server Tools.md", - "00.01 Admin/Calendars/Events/2023-02-09 Médecin.md", - "00.01 Admin/Calendars/2023-04-01.md", + "05.02 Networks/Server Cloud.md", + "05.02 Networks/Server Alias.md", + "05.02 Networks/mfxm Website Scope.md", + "05.02 Networks/mfxm.fr.jpg", + "05.02 Networks/Selfhosting.md", + "00.01 Admin/Calendars/2023-04-10.md", + "03.04 Cinematheque/Rebel Without a Cause (1955).md", + "03.04 Cinematheque/@Cinematheque.md", + "02.02 Paris/Andy Wahlou.md", + "02.02 Paris/Andy Wahloo.md", + "02.02 Paris/Épicerie Rap.md", + "02.02 Paris/Maison Agry.md", + "04.01 lebv.org/Les Le Bastart de Villeneuve.md", + "01.03 Family/$Basville.md", + "02.01 London/Royal Exchange Grand Cafe & Bar.md", + "01.01 Life Orga/@Lifestyle.md", + "03.02 Travels/Mallorca.md", + "03.02 Travels/Palermo.md", + "03.02 Travels/Florence.md", + "03.02 Travels/Ticino.md", + "03.02 Travels/@Switzerland.md", + "02.03 Zürich/Ginger.md", + "02.03 Zürich/Svetlana Danilova.md", "Pasted image 20230317114612.png", "Pasted image 20230317114609.png", "Pasted image 20230309141356.png", diff --git a/00.01 Admin/Calendars/2023-01-03.md b/00.01 Admin/Calendars/2023-01-03.md index 20f88648..be7658e9 100644 --- a/00.01 Admin/Calendars/2023-01-03.md +++ b/00.01 Admin/Calendars/2023-01-03.md @@ -83,7 +83,7 @@ This section does serve for quick memos.   - [ ] 10:30 :bed: [[2023-01-03|Memo]], [[@Life Admin|Admin]], [[@@MRCK|Meggi]]: Replace the bed 📅2023-12-31 ^7h9wa9 -- [ ] 10:31 :tooth: [[2023-01-03|Memo]], [[@Life Admin|Admin]]: Find a dentist 📅2023-03-31 ^889jmj +- [ ] 10:31 :tooth: [[2023-01-03|Memo]], [[@Life Admin|Admin]]: Find a dentist 📅 2023-04-30 ^889jmj - [x] 10:33 👰‍♀️ [[2023-01-03|Memo]], [[@Family|Admin]]: Organise for [[2023-02-11 Mariage Eloi & Zélie|Eloi's wedding]] 📅 2023-01-31 ✅ 2023-01-07 ^16fcmt - [x] 10:34 👰‍♀️ [[2023-01-03|Memo]], [[@Family|Admin]]: Organise for [[2023-04-29 Mariage Marguerite & Arnold|Marguerite's wedding]] 📅 2023-03-31 ✅ 2023-01-09 ^9pbu3g - [ ] 10:35 :chair: [[2023-01-03|Memo]], [[@Life Admin|Admin]], [[@@MRCK|Meggi]]: Find a person to repair Meggi's chair 📅 2023-05-31 ^fqrywu @@ -95,7 +95,7 @@ This section does serve for quick memos. - [x] 11:53 :wine_glass: [[2023-01-03|Memo]], [[@Lifestyle|Lifestyle]], [[!!Wine|Wine]]: Order a couple of boxes of [[Nadine Saxer - Blanc de Noir]] 📅 2023-01-31 ✅ 2023-01-04 - [x] 11:57 🐛 [[2023-01-03|Memo]], [[@Life Admin|Admin]]: Eradicate flies & such in the kitchen 📅 2023-01-15 ✅ 2023-01-04 - [x] 12:24 :hospital: [[2023-01-03|Memo]], [[@Lifestyle|Lifestyle]]: Find a charity shop in [[@@Zürich|ZH]] to give away clothes 📅 2023-01-10 ✅ 2023-01-04 -- [ ] 13:08 🛞 [[2023-01-03|Memo]], [[@Life Admin|Admin]]: Buy summer tires 📅 2023-04-10 +- [ ] 13:08 🛞 [[2023-01-03|Memo]], [[@Life Admin|Admin]]: Buy summer tires 📅 2023-04-20 - [x] 16:26 :hiking_boot: [[2023-01-03|Memo]], [[@Lifestyle|Lifestyle]]: Find a pair of winter boots 📅 2023-03-31 ✅ 2023-03-25 - [x] 18:15 :thread: [[2023-01-03|Memo]], [[@Life Admin|Admin]]: Find a seamstress for my jumpers 📅 2023-01-08 ✅ 2023-01-04 diff --git a/00.01 Admin/Calendars/2023-02-01.md b/00.01 Admin/Calendars/2023-02-01.md index ea0a188a..e3ec1aea 100644 --- a/00.01 Admin/Calendars/2023-02-01.md +++ b/00.01 Admin/Calendars/2023-02-01.md @@ -101,7 +101,7 @@ hide task count This section does serve for quick memos.   -- [ ] 12:29 :moneybag: [[2023-02-01|Memo]], [[@Finances|Finances]]: Tax declaration 2022 📅 2023-04-10 +- [x] 12:29 :moneybag: [[2023-02-01|Memo]], [[@Finances|Finances]]: Tax declaration 2022 📅 2023-04-10 ✅ 2023-04-09 %% --- %% diff --git a/00.01 Admin/Calendars/2023-04-07.md b/00.01 Admin/Calendars/2023-04-07.md index d9eb04a5..79318d45 100644 --- a/00.01 Admin/Calendars/2023-04-07.md +++ b/00.01 Admin/Calendars/2023-04-07.md @@ -16,9 +16,9 @@ Stress: 27.5 FrontHeadBar: 5 EarHeadBar: 35 BackHeadBar: 20 -Water: -Coffee: -Steps: +Water: 2.75 +Coffee: 0 +Steps: 7943 Weight: Ski: IceSkating: @@ -114,7 +114,7 @@ This section does serve for quick memos.   -Loret ipsum +🍴: [[Spicy Szechuan Noodles with Garlic Chilli Oil]]   diff --git a/00.01 Admin/Calendars/2023-04-08.md b/00.01 Admin/Calendars/2023-04-08.md new file mode 100644 index 00000000..70939222 --- /dev/null +++ b/00.01 Admin/Calendars/2023-04-08.md @@ -0,0 +1,136 @@ +--- + +title: "🗒 Daily Note" +allDay: true +date: 2023-04-08 +Date: 2023-04-08 +DocType: Note +Hierarchy: +TimeStamp: +location: +CollapseMetaTable: true +Sleep: 9 +Happiness: 80 +Gratefulness: 80 +Stress: 27.5 +FrontHeadBar: 5 +EarHeadBar: 35 +BackHeadBar: 20 +Water: 3.2 +Coffee: 0 +Steps: 8480 +Weight: +Ski: +IceSkating: +Riding: +Racket: +Football: +Swim: + +--- + +%% Parent:: [[@Life Admin]] %% + +--- + +[[2023-04-07|<< 🗓 Previous ]]       [[@Main Dashboard|Back]]       [[2023-04-09|🗓 Next >>]] + +--- + +  + +```button +name Record today's health +type command +action MetaEdit: Run MetaEdit +id EditMetaData +``` +^button-2023-04-08Edit + +```button +name Save +type command +action Save current file +id Save +``` +^button-2023-04-08NSave + +  + +# 2023-04-08 + +  + +> [!summary]+ +> Daily note for 2023-04-08 + +  + +```toc +style: number +``` + +  + +--- + +  + +### ✅ Tasks of the day + +  + +```tasks +not done +due on 2023-04-08 +path does not include Templates +hide backlinks +hide task count +``` + +  + +--- + +  + +### 📝 Memos + +  + +This section does serve for quick memos. + +  + + +%% --- %% +  + +--- + +  + +### 🗒 Notes + +  + +🍴: [[Lemon Chicken]] + +🏟: [[@@Zürich|FC Zürich]] - FC Basel + +  + +--- + +  + +### :link: Linked activity + +  + +```dataview +Table from [[2023-04-08]] +``` + +  +  \ No newline at end of file diff --git a/00.01 Admin/Calendars/2023-04-09.md b/00.01 Admin/Calendars/2023-04-09.md new file mode 100644 index 00000000..17d8e6e8 --- /dev/null +++ b/00.01 Admin/Calendars/2023-04-09.md @@ -0,0 +1,137 @@ +--- + +title: "🗒 Daily Note" +allDay: true +date: 2023-04-09 +Date: 2023-04-09 +DocType: Note +Hierarchy: +TimeStamp: +location: +CollapseMetaTable: true +Sleep: 7 +Happiness: 80 +Gratefulness: 80 +Stress: 27.5 +FrontHeadBar: 5 +EarHeadBar: 35 +BackHeadBar: 20 +Water: 3.15 +Coffee: 3 +Steps: 10491 +Weight: +Ski: +IceSkating: +Riding: +Racket: +Football: +Swim: + +--- + +%% Parent:: [[@Life Admin]] %% + +--- + +[[2023-04-08|<< 🗓 Previous ]]       [[@Main Dashboard|Back]]       [[2023-04-10|🗓 Next >>]] + +--- + +  + +```button +name Record today's health +type command +action MetaEdit: Run MetaEdit +id EditMetaData +``` +^button-2023-04-09Edit + +```button +name Save +type command +action Save current file +id Save +``` +^button-2023-04-09NSave + +  + +# 2023-04-09 + +  + +> [!summary]+ +> Daily note for 2023-04-09 + +  + +```toc +style: number +``` + +  + +--- + +  + +### ✅ Tasks of the day + +  + +```tasks +not done +due on 2023-04-09 +path does not include Templates +hide backlinks +hide task count +``` + +  + +--- + +  + +### 📝 Memos + +  + +This section does serve for quick memos. + +  +- [ ] 20:37 :racehorse: [[Polo Park Zürich]], [[2023-04-09|Memo]]: Check EHV-1 vaccination for Sally 📅 2023-04-16 +- [ ] 20:37 :racehorse: [[Polo Park Zürich]], [[2023-04-09|Memo]]: Send liability insurance to PPZ 📅 2023-04-16 +- [ ] 20:41 :racehorse: [[Polo Park Zürich]], [[2023-04-09|Memo]]: Answer for Season Launch lunch 📅2023-04-23 + + +%% --- %% +  + +--- + +  + +### 🗒 Notes + +  + +🍴: [[Korean Barbecue-Style Meatballs]] + +  + +--- + +  + +### :link: Linked activity + +  + +```dataview +Table from [[2023-04-09]] +``` + +  +  \ No newline at end of file diff --git a/00.01 Admin/Calendars/2023-04-10.md b/00.01 Admin/Calendars/2023-04-10.md new file mode 100644 index 00000000..d707293d --- /dev/null +++ b/00.01 Admin/Calendars/2023-04-10.md @@ -0,0 +1,138 @@ +--- + +title: "🗒 Daily Note" +allDay: true +date: 2023-04-10 +Date: 2023-04-10 +DocType: Note +Hierarchy: +TimeStamp: +location: +CollapseMetaTable: true +Sleep: 8 +Happiness: 80 +Gratefulness: 80 +Stress: 27.5 +FrontHeadBar: 5 +EarHeadBar: 35 +BackHeadBar: 20 +Water: 2.2 +Coffee: 3 +Steps: +Weight: +Ski: +IceSkating: +Riding: +Racket: +Football: +Swim: + +--- + +%% Parent:: [[@Life Admin]] %% + +--- + +[[2023-04-09|<< 🗓 Previous ]]       [[@Main Dashboard|Back]]       [[2023-04-11|🗓 Next >>]] + +--- + +  + +```button +name Record today's health +type command +action MetaEdit: Run MetaEdit +id EditMetaData +``` +^button-2023-04-10Edit + +```button +name Save +type command +action Save current file +id Save +``` +^button-2023-04-10NSave + +  + +# 2023-04-10 + +  + +> [!summary]+ +> Daily note for 2023-04-10 + +  + +```toc +style: number +``` + +  + +--- + +  + +### ✅ Tasks of the day + +  + +```tasks +not done +due on 2023-04-10 +path does not include Templates +hide backlinks +hide task count +``` + +  + +--- + +  + +### 📝 Memos + +  + +This section does serve for quick memos. + +  + + +%% --- %% +  + +--- + +  + +### 🗒 Notes + +  + +Rheinfall & Schaffhausen + +🍽: [[Lemon Chicken]] + +📺: [[Rebel Without a Cause (1955)]] + +  + +--- + +  + +### :link: Linked activity + +  + +```dataview +Table from [[2023-04-10]] +``` + +  +  \ No newline at end of file diff --git a/00.01 Admin/Calendars/Events/2023-04-07 Mum in Zürich.md b/00.01 Admin/Calendars/Events/2023-04-07 Mum in Zürich.md deleted file mode 100644 index c6e7bdb4..00000000 --- a/00.01 Admin/Calendars/Events/2023-04-07 Mum in Zürich.md +++ /dev/null @@ -1,12 +0,0 @@ ---- - -title: Mum in Zürich -allDay: true -date: 2023-04-07 -endDate: 2023-04-11 -completed: null -CollapseMetaTable: true - ---- - -[[@@MRCK|Meggi-mo]]‘s Mum in [[@@Zürich|Zürich]] from [[2023-04-07|7th April]] to [[2023-04-10|10th April]]. \ No newline at end of file diff --git a/00.01 Admin/Calendars/Events/2023-04-08 FC Zürich - FC Basel.md b/00.01 Admin/Calendars/Events/2023-04-08 FC Zürich - FC Basel (1-1).md similarity index 64% rename from 00.01 Admin/Calendars/Events/2023-04-08 FC Zürich - FC Basel.md rename to 00.01 Admin/Calendars/Events/2023-04-08 FC Zürich - FC Basel (1-1).md index 02dce844..d3df5322 100644 --- a/00.01 Admin/Calendars/Events/2023-04-08 FC Zürich - FC Basel.md +++ b/00.01 Admin/Calendars/Events/2023-04-08 FC Zürich - FC Basel (1-1).md @@ -1,6 +1,6 @@ --- -title: ⚽ FC Zürich - FC Basel +title: ⚽ FC Zürich - FC Basel (1-1) allDay: false startTime: 18:00 endTime: 20:00 @@ -10,4 +10,4 @@ CollapseMetaTable: true --- -[[2023-04-08|This day]], visite du Letzigrund pour voir le FC [[@@Zürich|Zürich]] jouer le FC Bâle avec [[@@MRCK|Meggi-mo]] +[[2023-04-08|This day]], visite du Letzigrund pour voir le FC [[@@Zürich|Zürich]] jouer le FC Bâle (1-1) diff --git a/00.01 Admin/Calendars/Events/2023-04-08 OGC Nice - PSG (0-2).md b/00.01 Admin/Calendars/Events/2023-04-08 OGC Nice - PSG (0-2).md new file mode 100644 index 00000000..737244da --- /dev/null +++ b/00.01 Admin/Calendars/Events/2023-04-08 OGC Nice - PSG (0-2).md @@ -0,0 +1,14 @@ +--- + +title: ⚽ OGC Nice - PSG (0-2) +allDay: false +startTime: 21:00 +endTime: 23:00 +date: 2023-04-08 +completed: null +CollapseMetaTable: true + +--- + +[[2023-04-08|Ce jour]], OGC Nice - [[Paris SG]]: 0-2 +Buteurs:: ⚽ Messi
⚽ Ramos \ No newline at end of file diff --git a/00.01 Admin/Templates/Template Animal.md b/00.01 Admin/Templates/Template Animal.md new file mode 100644 index 00000000..6375c4cd --- /dev/null +++ b/00.01 Admin/Templates/Template Animal.md @@ -0,0 +1,104 @@ +--- + +Tag: ["", ""] +Date: <% tp.date.now("YYYY-MM-DD") %> +DocType: "Animal" +Hierarchy: "NonRoot" +TimeStamp: +location: +CollapseMetaTable: true +cssclass: recipeTable +Animal: + Type: + Name: + DOB: + Origin: + Passport: + Race: + Colour: +banner: + +--- + +Parent:: + +--- + +  + +```button +name Save +type command +action Save current file +id Save +``` +^button-<% tp.file.title %>NSave + +# <% tp.file.title %> + +  + +> [!summary]+ +>Description + +  + +```toc +style: number +``` + +  + +--- + +  + +### 📇 Summary + +  + +| | | +| --------------------- | -------------------------------- | +| 📇 **Name**: | `$=dv.current().Animal.Name` | +| 🎂 **Date of Birth**: | `$=dv.current().Animal.DOB` | +| 🗺 **Origin**: | `$=dv.current().Animal.Origin` | +| 🪪 **Passport**: | `$=dv.current().Animal.Passport` | +| 🏷️ **Race**: | `$=dv.current().Animal.Race` | +| 🎨 **Colour**: | `$=dv.current().Animal.Colour` | + +  + +--- + +  + +### 📸 Pictures + +  + + + +  + +--- + +  + +### 📝 Notes + +  + + +  + +--- + +  + +### 📜 History + +  + +```timeline +🐶;<% tp.file.title %> +``` \ No newline at end of file diff --git a/00.03 News/Clarence Thomas Secretly Accepted Luxury Trips From Major GOP Donor.md b/00.03 News/Clarence Thomas Secretly Accepted Luxury Trips From Major GOP Donor.md new file mode 100644 index 00000000..20ab9c62 --- /dev/null +++ b/00.03 News/Clarence Thomas Secretly Accepted Luxury Trips From Major GOP Donor.md @@ -0,0 +1,199 @@ +--- + +Tag: ["🗳️", "🇺🇸", "💸", "🐘"] +Date: 2023-04-10 +DocType: "WebClipping" +Hierarchy: +TimeStamp: 2023-04-10 +Link: https://www.propublica.org/article/clarence-thomas-scotus-undisclosed-luxury-travel-gifts-crow +location: +CollapseMetaTable: true + +--- + +Parent:: [[@News|News]] +Read:: 🟥 + +--- + +  + +```button +name Save +type command +action Save current file +id Save +``` +^button-ThomasAcceptedLuxuryTripsFromGOPDonorNSave + +  + +# Clarence Thomas Secretly Accepted Luxury Trips From Major GOP Donor + +ProPublica is a nonprofit newsroom that investigates abuses of power. Sign up to receive [our biggest stories](https://www.propublica.org/newsletters/the-big-story?source=www.propublica.org&placement=top-note®ion=national) as soon as they’re published. + +**Update, April 7, 2023:** Since publication, [Justice Clarence Thomas has made a public statement](https://www.propublica.org/article/clarence-thomas-response-trips-legal-experts-harlan-crow) defending his undisclosed trips. + +In late June 2019, right after the U.S. Supreme Court released its final opinion of the term, Justice Clarence Thomas boarded a large private jet headed to Indonesia. He and his wife were going on vacation: nine days of island-hopping in a volcanic archipelago on a superyacht staffed by a coterie of attendants and a private chef. + +If Thomas had chartered the plane and the 162-foot yacht himself, the total cost of the trip could have exceeded $500,000. Fortunately for him, that wasn’t necessary: He was on vacation with real estate magnate and Republican megadonor Harlan Crow, who owned the jet — and the yacht, too. + +![](data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27400%27%20height%3D%27401%27%20style%3D%27background%3Argba%28127%2C127%2C127%2C0.07%29%27%2F%3E) + +Clarence Thomas and his wife, Ginni, front left, with Harlan Crow, back right, and others in Flores, Indonesia, in July 2019. Credit: via Instagram + +For more than two decades, Thomas has accepted luxury trips virtually every year from the Dallas businessman without disclosing them, documents and interviews show. A public servant who has a salary of $285,000, he has vacationed on Crow’s superyacht around the globe. He flies on Crow’s [Bombardier Global 5000](https://defense.bombardier.com/en/aircraft/global-5000) jet. He has gone with Crow to the Bohemian Grove, the exclusive California all-male retreat, and to Crow’s sprawling ranch in East Texas. And Thomas typically spends about a week every summer at Crow’s private resort in the Adirondacks. + +The extent and frequency of Crow’s apparent gifts to Thomas have no known precedent in the modern history of the U.S. Supreme Court. + +These trips appeared nowhere on Thomas’ financial disclosures. His failure to report the flights appears to violate a law passed after Watergate that requires justices, judges, members of Congress and federal officials to disclose most gifts, two ethics law experts said. He also should have disclosed his trips on the yacht, these experts said. + +Thomas did not respond to a detailed list of questions. + +In a [statement](https://www.documentcloud.org/documents/23741877-harlan-crow-statement), Crow acknowledged that he’d extended “hospitality” to the Thomases “over the years,” but said that Thomas never asked for any of it and it was “no different from the hospitality we have extended to our many other dear friends.” + +Through his largesse, Crow has gained a unique form of access, spending days in private with one of the most powerful people in the country. By accepting the trips, Thomas has broken long-standing norms for judges’ conduct, ethics experts and four current or retired federal judges said. + +“It’s incomprehensible to me that someone would do this,” said Nancy Gertner, a retired federal judge appointed by President Bill Clinton. When she was on the bench, Gertner said, she was so cautious about appearances that she wouldn’t mention her title when making dinner reservations: “It was a question of not wanting to use the office for anything other than what it was intended.” + +Virginia Canter, a former government ethics lawyer who served in administrations of both parties, said Thomas “seems to have completely disregarded his higher ethical obligations.” + +“When a justice’s lifestyle is being subsidized by the rich and famous, it absolutely corrodes public trust,” said Canter, now at the watchdog group CREW. “Quite frankly, it makes my heart sink.” + +> When a justice’s lifestyle is being subsidized by the rich and famous, it absolutely corrodes public trust. Quite frankly, it makes my heart sink. + +—Virginia Canter, former government ethics lawyer + +ProPublica uncovered the details of Thomas’ travel by drawing from flight records, internal documents distributed to Crow’s employees and interviews with dozens of people ranging from his superyacht’s staff to members of the secretive Bohemian Club to an Indonesian scuba diving instructor. + +Federal judges sit in a unique position of public trust. They have lifetime tenure, a privilege intended to insulate them from the pressures and potential corruption of politics. A code of conduct for federal judges below the Supreme Court requires them to avoid even the “appearance of impropriety.” Members of the high court, Chief Justice John Roberts has written, “consult” that code for guidance. The Supreme Court is left almost entirely to police itself. + +There are few restrictions on what gifts justices can accept. That’s in contrast to the other branches of government. Members of Congress are generally prohibited from taking gifts worth $50 or more and would need pre-approval from an ethics committee to take many of the trips Thomas has accepted from Crow. + +Thomas’ approach to ethics has already attracted public attention. Last year, Thomas didn’t recuse himself from cases that touched on the involvement of his wife, Ginni, in efforts to overturn the 2020 presidential election. While his decision generated outcry, it could not be appealed. + +Crow met Thomas after he became a justice. The pair have become genuine friends, according to people who know both men. Over the years, some details of Crow’s relationship with the Thomases have emerged. In 2011, The New York Times [reported](https://www.nytimes.com/2011/06/19/us/politics/19thomas.html) on Crow’s generosity toward the justice. That same year, Politico [revealed](https://www.politico.com/story/2011/02/justice-thomass-wife-now-lobbyist-048812) that Crow had given half a million dollars to a Tea Party group founded by Ginni Thomas, which also paid her a $120,000 salary. But the full scale of Crow’s benefactions has never been revealed. + +Long an influential figure in pro-business conservative politics, Crow has spent millions on ideological efforts to shape the law and the judiciary. Crow and his firm have not had a case before the Supreme Court since Thomas joined it, though the court periodically hears major cases that directly impact the real estate industry. The details of his discussions with Thomas over the years remain unknown, and it is unclear if Crow has had any influence on the justice’s views. + +In his [statement](https://www.documentcloud.org/documents/23741877-harlan-crow-statement), Crow said that he and his wife have never discussed a pending or lower court case with Thomas. “We have never sought to influence Justice Thomas on any legal or political issue,” he added. + +In Thomas’ public appearances over the years, he has presented himself as an everyman with modest tastes. + +“I don’t have any problem with going to Europe, but I prefer the United States, and I prefer seeing the regular parts of the United States,” Thomas said in a recent interview for a documentary about his life, which Crow helped finance. + +“I prefer the RV parks. I prefer the Walmart parking lots to the beaches and things like that. There’s something normal to me about it,” Thomas said. “I come from regular stock, and I prefer that — I prefer being around that.” + +### “You Don’t Need to Worry About This — It’s All Covered” + +Crow’s private lakeside resort, Camp Topridge, sits in a remote corner of the Adirondacks in upstate New York. Closed off from the public by ornate wooden gates, the 105-acre property, once the summer retreat of the same heiress who built Mar-a-Lago, features an artificial waterfall and a great hall where Crow’s guests are served meals prepared by private chefs. Inside, there’s clear evidence of Crow and Thomas’ relationship: a painting of the two men at the resort, sitting outdoors smoking cigars alongside conservative political operatives. A statue of a Native American man, arms outstretched, stands at the center of the image, which is photographic in its clarity. + +![](data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27400%27%20height%3D%27331%27%20style%3D%27background%3Argba%28127%2C127%2C127%2C0.07%29%27%2F%3E) + +A painting that hangs at Camp Topridge shows Crow, far right, and Thomas, second from right, smoking cigars at the resort. They are joined by lawyers Peter Rutledge, Leonard Leo and Mark Paoletta, from left. Credit: Painting by Sharif Tarabay + +The painting captures a scene from around five years ago, said Sharif Tarabay, the artist who was commissioned by Crow to paint it. Thomas has been vacationing at Topridge virtually every summer for more than two decades, according to interviews with more than a dozen visitors and former resort staff, as well as records obtained by ProPublica. He has fished with a guide hired by Crow and danced at concerts put on by musicians Crow brought in. Thomas has slept at perhaps the resort’s most elegant accommodation, an opulent lodge overhanging Upper St. Regis Lake. + +The mountainous area draws billionaires from across the globe. Rooms at a nearby hotel built by the Rockefellers start at $2,250 a night. Crow’s invitation-only resort is even more exclusive. Guests stay for free, enjoying Topridge’s more than 25 fireplaces, three boathouses, clay tennis court and batting cage, along with more eccentric features: a lifesize replica of the Harry Potter character Hagrid’s hut, bronze statues of gnomes and a 1950s-style soda fountain where Crow’s staff fixes milkshakes. + +![](data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27400%27%20height%3D%27286%27%20style%3D%27background%3Argba%28127%2C127%2C127%2C0.07%29%27%2F%3E) ![](data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27400%27%20height%3D%27286%27%20style%3D%27background%3Argba%28127%2C127%2C127%2C0.07%29%27%2F%3E) + +First image: A lodge at Topridge where Thomas has stayed. Second image: Thomas fishing in the Adirondacks. Credit: First image: Courtesy of Carolyn Belknap. Second image: Via NYup.com. + +Crow’s access to the justice extends to anyone the businessman chooses to invite along. Thomas’ frequent vacations at Topridge have brought him into contact with corporate executives and political activists. + +During just one trip in July 2017, Thomas’ fellow guests included executives at Verizon and PricewaterhouseCoopers, major Republican donors and one of the leaders of the American Enterprise Institute, a pro-business conservative think tank, according to records reviewed by ProPublica. The painting of Thomas at Topridge shows him in conversation with [Leonard Leo](https://www.propublica.org/article/dark-money-leonard-leo-barre-seid), the Federalist Society leader regarded as an [architect of the Supreme Court’s recent turn](https://www.propublica.org/article/dark-money-leonard-leo-barre-seid) to the right. + +In his statement to ProPublica, Crow said he is “unaware of any of our friends ever lobbying or seeking to influence Justice Thomas on any case, and I would never invite anyone who I believe had any intention of doing that.” + +“These are gatherings of friends,” Crow said. + +Crow has deep connections in conservative politics. The heir to a real estate fortune, Crow oversees his family’s business empire and recently [named](https://www.hbscdallas.org/s/1738/cc/21/page.aspx?sid=1738&gid=23&pgid=71466) Marxism as his greatest fear. He was an early patron of the powerful anti-tax group Club for Growth and has been on the board of AEI for over 25 years. He also sits on the board of the Hoover Institution, another conservative think tank. + +A major Republican donor for decades, Crow has given more than $10 million in publicly disclosed political contributions. He’s also given to groups that keep their donors secret — how much of this so-called dark money he’s given and to whom are not fully known. “I don’t disclose what I’m not required to disclose,” Crow once [told](https://www.nytimes.com/2011/02/05/us/politics/05thomas.html) the Times. + +Crow has long supported efforts to move the judiciary to the right. He has donated to the Federalist Society and given millions of dollars to groups dedicated to tort reform and conservative jurisprudence. AEI and the Hoover Institution publish scholarship advancing conservative legal theories, and fellows at the think tanks occasionally file [amicus briefs](https://www.hoover.org/news/hoover-senior-fellows-file-supreme-court-amicus-brief-case-challenging-president-bidens) with the Supreme Court. + +> I prefer the RV parks. I prefer the Walmart parking lots to the beaches and things like that. There’s something normal to me about it. I come from regular stock, and I prefer that — I prefer being around that. + +—Clarence Thomas + +Listen to Thomas speak, from the documentary “Created Equal.” + +On the court since 1991, Thomas is a deeply conservative jurist known for his “originalism,” an approach that seeks to adhere to close readings of the text of the Constitution. While he has been resolute in this general approach, his views on specific matters have sometimes evolved. Recently, Thomas [harshly criticized](https://news.yahoo.com/thomas-criticizes-previous-high-court-173603914.html) one of his own earlier opinions as he embraced a legal theory, newly popular on the right, that would limit government regulation. Small evolutions in a justice’s thinking or even select words used in an opinion can affect entire bodies of law, and shifts in Thomas’ views can be especially consequential. He’s taken unorthodox legal positions that have been adopted by the court’s majority years down the line. + +Soon after Crow met Thomas three decades ago, he began lavishing the justice with gifts, including a $19,000 Bible that belonged to Frederick Douglass, which Thomas disclosed. Recently, Crow gave Thomas a portrait of the justice and his wife, according to Tarabay, who painted it. Crow’s foundation also gave $105,000 to Yale Law School, Thomas’ alma mater, for the “Justice Thomas Portrait Fund,” tax filings show. + +Crow said that he and his wife have funded a number of projects that celebrate Thomas. “We believe it is important to make sure as many people as possible learn about him, remember him and understand the ideals for which he stands,” he said. + +To trace Thomas’ trips around the world on Crow’s superyacht, ProPublica spoke to more than 15 former yacht workers and tour guides and obtained records documenting the ship’s travels. + +On the Indonesia trip in the summer of 2019, Thomas flew to the country on Crow’s jet, according to another passenger on the plane. Clarence and Ginni Thomas were traveling with Crow and his wife, Kathy. Crow’s yacht, the Michaela Rose, decked out with motorboats and a giant inflatable rubber duck, met the travelers at a fishing town on the island of Flores. + +![](data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27400%27%20height%3D%27286%27%20style%3D%27background%3Argba%28127%2C127%2C127%2C0.07%29%27%2F%3E) ![](data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27400%27%20height%3D%27286%27%20style%3D%27background%3Argba%28127%2C127%2C127%2C0.07%29%27%2F%3E) + +First image: From left, Crow, Paoletta, Ginni Thomas and Clarence Thomas in Indonesia in 2019. Clarence Thomas flew to the country on Crow’s jet, according to another passenger on the plane. Second image: A worker from Crow’s yacht ferries Thomas and others on a small boat in Indonesia. Credit: via Facebook + +Touring the Lesser Sunda Islands, the group made stops at Komodo National Park, home of the eponymous reptiles; at the volcanic lakes of Mount Kelimutu; and at Pantai Meko, a spit of pristine beach accessible only by boat. Another guest was Mark Paoletta, a friend of the Thomases then serving as the general counsel of the Office of Management and Budget in the administration of President Donald Trump. + +Paoletta was bound by executive branch ethics rules at the time and told ProPublica that he discussed the trip with an ethics lawyer at his agency before accepting the Crows’ invitation. “Based on that counsel’s advice, I reimbursed Harlan for the costs,” Paoletta said in an email. He did not respond to a question about how much he paid Crow. + +(Paoletta has long been a pugnacious defender of Thomas and [recently testified](https://www.documentcloud.org/documents/23742060-paoletta-testimony-20220427) before Congress against strengthening judicial ethics rules. “There is nothing wrong with ethics or recusals at the Supreme Court,” he said, adding, “To support any reform legislation right now would be to validate these vicious political attacks on the Supreme Court,” referring to criticism of Thomas and his wife.) + +The Indonesia vacation wasn’t Thomas’ first time on the Michaela Rose. He went on a river day trip around Savannah, Georgia, and an extended cruise in New Zealand roughly a decade ago. + +![](data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27400%27%20height%3D%27416%27%20style%3D%27background%3Argba%28127%2C127%2C127%2C0.07%29%27%2F%3E) + +During a New Zealand trip on Crow’s yacht, Thomas signed a copy of his memoir and gave it to a yacht worker. Credit: Obtained by ProPublica + +As a token of his appreciation, he gave one yacht worker a copy of his memoir. Thomas signed the book: “Thank you so much for all your hard work on our New Zealand adventure.” + +Crow’s policy was that guests didn’t pay, former Michaela Rose staff said. “You don’t need to worry about this — it’s all covered,” one recalled the guests being told. + +There’s evidence Thomas has taken even more trips on the superyacht. Crow often gave his guests custom polo shirts commemorating their vacations, according to staff. ProPublica found photographs of Thomas wearing at least two of those shirts. In one, he wears a blue polo shirt embroidered with the Michaela Rose’s logo and the words “March 2007” and “Greek Islands.” + +Thomas didn’t report any of the trips ProPublica identified on his annual [financial disclosures](https://www.courtlistener.com/person/3200/disclosure/30783/clarence-thomas/). Ethics experts said [the law](https://www.documentcloud.org/documents/23740274-financial_disclosure_filing_instructions#document/p28) clearly requires disclosure for private jet flights and Thomas appears to have violated it. + +![](data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27400%27%20height%3D%27300%27%20style%3D%27background%3Argba%28127%2C127%2C127%2C0.07%29%27%2F%3E) ![](data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27400%27%20height%3D%27300%27%20style%3D%27background%3Argba%28127%2C127%2C127%2C0.07%29%27%2F%3E) + +Thomas has been photographed wearing custom polo shirts bearing the logo of Crow’s yacht, the Michaela Rose. Credit: via Flickr, Washington Examiner + +Justices are generally required to publicly report all gifts worth more than $415, defined as “anything of value” that isn’t fully reimbursed. There are exceptions: If someone hosts a justice at their own property, free food and lodging don’t have to be disclosed. That would exempt dinner at a friend’s house. The exemption never applied to transportation, such as private jet flights, experts said, a fact that was made explicit in recently updated [filing instructions](https://www.uscourts.gov/sites/default/files/financial_disclosure_filing_instructions.pdf) for the judiciary. + +Two ethics law experts told ProPublica that Thomas’ yacht cruises, a form of transportation, also required disclosure. + +“If Justice Thomas received free travel on private planes and yachts, failure to report the gifts is a violation of the disclosure law,” said Kedric Payne, senior director for ethics at the nonprofit government watchdog Campaign Legal Center. (Thomas himself once reported receiving a private jet trip from Crow, on his disclosure for 1997.) + +The experts said Thomas’ stays at Topridge may have required disclosure too, in part because Crow owns it not personally but through a company. Until recently, the judiciary’s ethics guidance didn’t explicitly address the ownership issue. The recent update to the filing instructions clarifies that disclosure is required for such stays. + +How many times Thomas failed to disclose trips remains unclear. Flight records from the Federal Aviation Administration and FlightAware suggest he makes regular use of Crow’s plane. The jet often follows a pattern: from its home base in Dallas to Washington Dulles airport for a brief stop, then on to a destination Thomas is visiting and back again. + +ProPublica identified five such trips in addition to the Indonesia vacation. + +On July 7 last year, Crow’s jet made a 40-minute stop at Dulles and then flew to a small airport near Topridge, returning to Dulles six days later. Thomas was at the resort that week for his regular summer visit, according to a person who was there. Twice in recent years, the jet has followed the pattern when Thomas appeared at Crow’s properties in Dallas — once for the Jan. 4, 2018, [swearing-in](https://twitter.com/SenTedCruz/status/949083663915995136/photo/1) of Fifth Circuit Judge James Ho at Crow’s private library and again for a conservative think tank conference Crow hosted last May. + +Thomas has even used the plane for a three-hour trip. On Feb. 11, 2016, the plane flew from Dallas to Dulles to New Haven, Connecticut, before flying back later that afternoon. ProPublica confirmed that Thomas was on the jet through Supreme Court security records [obtained by](https://fixthecourt.com/usms-all/) the nonprofit Fix the Court, private jet data, a [New Haven plane spotter](https://www.facebook.com/watch/?v=968235546589129) and another person at the airport. There are no reports of Thomas making a public appearance that day, and the purpose of the trip remains unclear. + +Jet charter companies told ProPublica that renting an equivalent plane for the New Haven trip could cost around $70,000. + +On the weekend of Oct. 16, 2021, Crow’s jet repeated the pattern. That weekend, Thomas and Crow traveled to a Catholic cemetery in a bucolic suburb of New York City. They were there for the unveiling of a bronze statue of the justice’s beloved eighth grade teacher, a nun, according to Catholic Cemetery magazine. + +![](data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27400%27%20height%3D%27267%27%20style%3D%27background%3Argba%28127%2C127%2C127%2C0.07%29%27%2F%3E) + +Thomas attended the 2021 unveiling of a statue of his eighth grade teacher. Credit: via Catholic Cemeteries of the Archdiocese of Newark + +As Thomas spoke from a lectern, the monument towered over him, standing 7 feet tall and weighing 1,800 pounds, its granite base inscribed with words his teacher once told him. Thomas told the nuns assembled before him, “This extraordinary statue is dedicated to you sisters.” + +He also thanked the donors who paid for the statue: Harlan and Kathy Crow. + +Do you have any tips on the courts? Josh Kaplan can be reached by email at [joshua.kapl\[email protected\]](https://www.propublica.org/cdn-cgi/l/email-protection#4923263a213c286722283925282709393b26393c2b25202a2867263b2e) and by Signal or WhatsApp at 734-834-9383. Justin Elliott can be reached by email at [\[email protected\]](https://www.propublica.org/cdn-cgi/l/email-protection#f9938c8a8d9097b9898b96898c9b95909a98d7968b9e) or by Signal or WhatsApp at 774-826-6240. + +Matt Easton contributed reporting. + +Design and development by [Anna Donlan](https://www.propublica.org/people/anna-donlan) and [Lena V. Groeger](https://www.propublica.org/people/lena-groeger). + +  +  + +--- +`$= dv.el('center', 'Source: ' + dv.current().Link + ', ' + dv.current().Date.toLocaleString("fr-FR"))` \ No newline at end of file diff --git a/00.03 News/Gambler Who Beat Roulette Found Way to Win Beyond Red or Black.md b/00.03 News/Gambler Who Beat Roulette Found Way to Win Beyond Red or Black.md new file mode 100644 index 00000000..53a811b9 --- /dev/null +++ b/00.03 News/Gambler Who Beat Roulette Found Way to Win Beyond Red or Black.md @@ -0,0 +1,243 @@ +--- + +Tag: ["🤵🏻", "🎰", "💸", "🇺🇸"] +Date: 2023-04-10 +DocType: "WebClipping" +Hierarchy: +TimeStamp: 2023-04-10 +Link: https://www.bloomberg.com/features/2023-how-to-beat-roulette-gambler-figures-it-out +location: +CollapseMetaTable: true + +--- + +Parent:: [[@News|News]] +Read:: 🟥 + +--- + +  + +```button +name Save +type command +action Save current file +id Save +``` +^button-GamblerWhoBeatRouletteFoundWaytoWinNSave + +  + +# Gambler Who Beat Roulette Found Way to Win Beyond Red or Black + +Photo Illustration by Irene Suosalo; Video: Getty Images + +For decades, casinos scoffed as mathematicians and physicists devised elaborate systems to take down the house. Then an unassuming Croatian’s winning strategy forever changed the game. + +April 6, 2023, 12:01 AM UTC + +One spring evening, two men and a woman walked into the Ritz Club casino, an upmarket establishment in London’s West End. Security officers in a back room logged their entry and watched a grainy CCTV feed as the trio strolled past high gilded arches and oil paintings of gentlemen posing in hats. Casino workers greeted them with hushed reverence. + +The security team paid particularly close attention to one of the three, their apparent leader. Niko Tosa, a Croatian with rimless glasses balanced on the narrow ridge of his nose, scanned the gaming floor, attentive as a hawk. He’d visited the Ritz half a dozen times over the previous two weeks, astounding staff with his knack for roulette and walking away with several thousand pounds each time. A manager would later say in a written statement that Tosa was the most successful player he’d witnessed in 25 years on the job. No one had any idea how Tosa did it. The casino inspected a wheel he’d played at for signs of tampering and found none. + +That night, March 15, 2004, the thin Croatian seemed to be looking for something. After a few minutes, he settled at a roulette table in the Carmen Room, set apart from the main playing area. He was flanked on either side by his companions: a Serbian businessman with deep bags under his eyes and a bottle-blond Hungarian woman. At the end of the table, the wheel spun silently, spotlighted by a golden chandelier. The trio bought chips and began to play. + +![The Ritz Club casino in London in 2005.](https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iXKlr.MAqajY/v0/640x-1.jpg) + +The Ritz Club casino in London in 2005. James Veysey/Camera Press/Redux + +The Ritz was typical of London’s top casinos in that it was members-only and attracted an eclectic mix of old money, new money and dubiously acquired money. Britain’s royals were regulars, as were Saudi heiresses, hedge fund tycoons and the actor Johnny Depp. One cigar-chomping Greek diplomat was so dedicated to gambling he refused to leave his seat to use the toilet, instead urinating into a jug, so the story went. + +But the way Tosa and his friends played roulette stood out as weird even for the Ritz. They would wait until six or seven seconds after the croupier launched the ball, when the rattling tempo of plastic on wood started to slow, then jump forward to place their chips before bets were halted, covering as many as 15 numbers at once. They moved so quickly and harmoniously, it was “as if someone had fired a starting gun,” an assistant manager told investigators afterward. The wheel was a standard European model: 37 red and black numbered pockets in a seemingly random sequence—32, 15, 19, 4 and so on—with a single green 0. Tosa’s crew was drawn to an area of the betting felt set aside for special wagers that covered pie-sliced segments of the wheel. There, gamblers could choose sections called *orphelins* (orphans) or *le tiers du cylindre* (a third of the wheel). Tosa and his partners favored “neighbors” bets, consisting of one number plus the two on each side, five pockets in all. + +Then there was the win rate. Tosa’s crew didn’t hit the right number on every spin, but they did as often as not, in streaks that defied logic: eight in a row, or 10, or 13. Even with a dozen chips on the table at a total cost of £1,200 (about $2,200 at the time), the 35:1 payout meant they could more than double their money. Security staff watched nervously as their chip stack grew ever higher. Tosa and the Serbian, who did most of the gambling while their female companion ordered drinks, had started out with £30,000 and £60,000 worth of chips, respectively, and in no time both had broken six figures. Then they started to increase their bets, risking as much as £15,000 on a single spin. + +It was almost as if they could see the future. They didn’t react whether they won or lost; they simply played on. At one point, the Serbian threw down £10,000 in chips and looked away idly as the ball bounced around the numbered pockets. He wasn’t even watching when it landed and he lost. He was already walking off in the direction of the bar. + +It wasn’t the amount of money at stake that made the Ritz security team anxious. Customers routinely made several million pounds in an evening and left carrying designer bags bulging with cash. It was the way these three were winning: consistently, over hundreds of rounds. “It is practically impossible to predict the number that will come up,” Stephen Hawking once wrote about roulette. “Otherwise physicists would make a fortune at casinos.” The game was designed to be random; chaos, elegantly rendered in circular motion. + +Even so, gamblers have come up with plenty of elaborate mathematical systems to beat it—Oscar’s Grind, the D’Alembert. Simple ones, too, such as betting on black then doubling on every loss until you win. Casino owners love these strategies because they don’t work. The green 0 pocket (with an additional 00 pocket on American wheels) means even the highest-odds bets, on red or black for example, have a slightly less than half chance of success. Everyone loses eventually. + +Except for Niko Tosa and his friends. When the Croatian left the casino in the early hours of March 16, he’d turned £30,000 worth of chips into a £310,000 check. His Serbian partner did even better, making £684,000 from his initial £60,000. He asked for a half-million in two checks and the rest in cash. That brought the group’s take, including from earlier sessions, to about £1.3 million. And Tosa wasn’t done. He told casino employees he planned to return the next day. + +A week later—after the events at the Ritz had been picked over by casino staff, roulette wheel engineers, police and lawyers—the British press got wind of Tosa’s epic run. The Mirror reported that an unidentified high-tech gang had hit the casino with a “laser scam,” pairing a device hidden in a mobile phone with a microcomputer to achieve the impossible. + +It was as good a theory as any. But closer observers weren’t so sure, and the case remained a mystery even to casino insiders almost two decades later. “We still lose sleep over that one,” a gambling executive told me. + +I spent six months investigating the clandestine world of professional roulette players to find out who Tosa is and how he beat the system. The search took me deep into a secret war between those who make a living betting on the wheel and those who try to stop them—and ultimately to an encounter with Tosa himself. The British press got plenty wrong in their reports about what happened on the night of March 15, 2004. There was no laser. But the newspapers were right about one thing: It is possible to beat roulette. + +John Wootten had just finished his first day as security chief at the Ritz when he got a call from a colleague about some unusual activity at the roulette tables. He was in a West End pub having a beer with friends, celebrating his new job at one of the city’s most prestigious venues. + +We’re losing money rapidly, the voice on the other end of the phone told him. What should we do? Get the names of the gamblers and call back, Wootten said. + +Wootten was a burly former soldier in the Grenadier Guards, whose red coats and bearskin hats can be seen guarding Buckingham Palace. He also ran a punk rock pub before getting into the casino business. Wootten knew to brace himself for trouble. Casino staff didn’t call so late without good reason. + +Word came back by the time he’d finished his pint. One of the players was Niko Tosa. The others were Nenad Marjanovic—from Serbia, though he used an old Yugoslavian passport—and Livia Pilisi, of Hungary. Wootten had never heard of them, but he ordered staff to cut them off and hightailed it to the Ritz. By the time he arrived, the mysterious gamblers were gone. + +The following day, Wootten came in early to investigate. He found no obvious sign that the roulette wheel or table had been tampered with. Watching the CCTV footage, he noted that Tosa and Marjanovic jumped up to place their bets a few seconds into each spin. They must have been using some sort of computer, he thought. + +Wootten had tried to give a speech at an industry event a few years prior about the threat to casinos from [tiny, increasingly powerful computing devices](https://www.bloomberg.com/news/articles/2017-01-31/inside-the-20-year-quest-to-build-computers-that-play-poker "Inside the 20-Year Quest to Build Computers That Play Poker"), capable of processing feats humans could only dream of. He was laughed off stage. Ridicule still ringing in his ears, he made it his business to learn everything he could about the subject. + +![Thorp in 1964.](https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iCkrRDqfbFuQ/v0/640x-1.jpg) + +Thorp in 1964. Leigh Wiener + +Computer-assisted roulette was born in the 1960s, the progeny of rebellious academics at elite American universities. If scientists armed with microprocessors could predict the movement of the stars and planets, why not roulette? It was a matter of physics. Edward Thorp, an [American mathematician and gambling pioneer](http://www.edwardothorp.com/ "Edward O. Thorp"), made the first serious attempt, along with Claude Shannon, the MIT professor who more or less invented information theory. From their point of view, roulette wasn’t totally random. It was a spherical object traversing a circular path, subject to the effects of gravity, friction, air resistance and centripetal force. An equation could make sense of those. + +Modeling got tougher, though, once the ball moved in from the outer rim to the spinning central rotor, ricocheting off the metal slats and the sides of the numbered pocket dividers—a second, chaotic phase that scientific consensus held would scramble any prediction. Thorp and Shannon discovered, however, that by timing the speed of the ball and the rotor, they could calculate the ball’s likely destination. There were errors, but Thorp was delighted to find that their predictions were normally off by only a few pockets. + +![](https://assets.bwbx.io/images/users/iqjWHBFdfxIU/ifofuoL5RRCI/v0/640x-1.jpg) + +A schematic for a roulette wheel and wearable computer, from Thorp’s papers. Edward O. Thorp Papers/Courtesy University of California, Irvine Special Collections and Archives + +![](https://assets.bwbx.io/images/users/iqjWHBFdfxIU/i_qwNQHs8arQ/v0/640x-1.jpg) + +An electrical diagram for a roulette device. Edward O. Thorp Papers/Courtesy University of California, Irvine Special Collections and Archives + +To run their equation, the two mathematicians built and programmed the world’s first wearable computer, a matchbox-size gadget wired to a timing switch hidden inside a shoe. Once Thorp had calibrated the device to adjust to a specific wheel’s dynamics, all he had to do was tap his foot twice to get speed readings. The system worked, at least in a laboratory setting—their Sixties-era wiring kept fritzing out when they tried it in a casino. + +A decade later, J. Doyne Farmer, a physics student at the University of California at Santa Cruz, took up the challenge. Farmer dreamed of creating a utopian community of hippie inventors funded by gambling profits. He and his partners called their venture Eudaemonic Enterprises, after Aristotle’s term for the fulfilling sensation of a life well lived. Like Thorp before him, Farmer learned that roulette was more predictable than anyone imagined, and also that making the science work amid the sweat and noise of a real casino was almost impossible. His device used a hidden buzzer that told the wearer which of eight sections, or “octants,” the ball would likely drop into. At field tests in Lake Tahoe and Las Vegas casinos, the computer shorted out or overheated, zapping the wearer or burning their skin. The Eudaemons wasted several years and thousands of dollars before abandoning the project in the early 1980s. One of them published a book about their adventures called *The Eudaemonic Pie*. In the end, the book concluded, Eudaemonia wasn’t a goal to be attained, but a journey. + +![A wearable roulette computer developed by Shannon and Thorp.](https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iwnHt2kWcwjQ/v0/640x-1.jpg) + +A wearable roulette computer developed by Shannon and Thorp. MIT Museum + +![The Eudaemonic Pie, published in 1985.](https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iJGC32Q_3dtA/v0/640x-1.jpg) + +*The Eudaemonic Pie*, published in 1985. + +Wootten had read *The Eudaemonic Pie*, and he knew how far computers had advanced since its publication. As he considered Tosa’s method the day after the big Ritz score, he concluded that the six-second pause before the Croatian placed his bets was enough time to clock rotations of the ball and wheel and have a computer produce a forecast. He decided to call the cops. + +Tosa, Marjanovic and Pilisi returned to the Ritz at 10 that night, as promised. This time they were led to a private room where a squad from the London Metropolitan Police was waiting. An officer politely informed them they were under arrest on suspicion of “deception” and led them away to be interviewed at a nearby police station. Once the gamblers were out of earshot, Wootten urged the cops to check their shoes and clothes for hidden devices. + +Tosa and his companions reacted to being arrested with the same surreal calm they’d shown at the roulette wheel. At the station, they were interviewed separately through an interpreter. Tosa was robotically unhelpful, declining to answer questions. Marjanovic was more talkative but just as confounding. He claimed to be a professional gambler of such skill at roulette that he could win 70% of the time. Only “self-discipline” limited his profits, he said. Both denied using any kind of computer. + +Pilisi, who seemed to be romantically involved with Marjanovic, was vague about how she knew Tosa and said she knew little about her partner’s gambling. A detective tried showing her CCTV footage of Marjanovic playing at the Ritz. “That’s your boyfriend winning half a million pounds,” he said, gesturing at the screen. “It’s like winning the lottery. You don’t show any emotion.” Pilisi shrugged. “So what?” she replied. + +The police had seized four cellphones and a PalmPilot-type device, which were taken away to be analyzed. Searching the group’s hotel rooms, officers found several hundred thousand pounds and a list of casinos marked with symbols: ticks, crosses, pluses and minuses. The detective told Wootten that, given the sums in question, the Met’s money laundering division would be taking over. In the meantime, the force authorized the Ritz to halt payment on Tosa and Marjanovic’s checks, so they couldn’t take the casino’s money and flee. + +Later that same evening, out on bail, Tosa, Marjanovic and Pilisi stopped outside the casino and had a brief, bizarre conversation with a doorman who later reported it to his superiors. Tosa told the doorman in Balkan-accented English that the Ritz’s owners were bad people who were looking for an excuse not to pay. He and his companions were going to sue to get their money, he warned. + +About six months later, a chauffeured Mercedes-Benz pulled up outside the [Colony Club](https://www.thecolonyclub.co.uk/ "The Colony Club") casino, not far from the Ritz, and deposited two men who said they could prove it was possible to win at roulette without cheating. + +The police investigation had stalled. Despite numerous searches, they hadn’t found earpieces, wiring or timers. Police IT specialists had found evidence of data being deleted from the seized cellphones—suspiciously, some felt—but no sign of any roulette-beating software. + +Tosa and the other suspects had lawyered up and were refusing to answer any more questions. Instead, their attorney suggested, police should watch a demonstration showing how someone could conquer roulette without resorting to fraud. An executive at the Colony Club agreed to host and invited security chiefs from across the West End gambling scene. + +Tosa himself wouldn’t take part. Instead, the attorney put forth a grim-faced Croatian named Ratomir Jovanovic to give the demonstration alongside his Lebanese playing partner, Youssef Fadel. The two had made approximately £380,000 playing roulette at various London venues around the same time as Tosa, using the same distinctive late-betting style. Police already suspected, though they couldn’t prove it, that Jovanovic was part of a gambling syndicate run by Tosa. Jovanovic’s presence at the demo seemed to confirm their theory. + +When Jovanovic and Fadel arrived at the Colony, they were led to a private roulette chamber to find not only police, as they’d expected, but also half a dozen casino security bosses in dark suits. Most were former soldiers like Wootten, some had visible scars or warped knuckles, and all looked hostile. Fadel’s smile vanished. Jovanovic tried to bolt, but one of the casino guys kicked the door shut with his heel. “You’re not going anywhere,” he said, according to several attendees. + +Wootten watched, gripped, as Jovanovic took his place at the cream-colored leather fringe of a roulette table. The Croatian’s method was recognizable from footage of Tosa at the Ritz: the pause, the wager, the spread of chips. Like Tosa, he used the area of the betting felt set aside for wagering swiftly on segments of the wheel, where he could cover five adjacent pockets with a single chip on the “neighbors” section. + +But Jovanovic couldn’t make it work. He didn’t hit anything for the first few spins and barely improved from there. A casino executive started mouthing off about them wasting his time. The Croatian blamed bad vibes in the room for messing with his instincts. “We have heart for roulette,” he said. “We’ve lost our hearts.” Wootten didn’t buy it. How could this be any more stressful than playing live, with real money? + +The police detective intervened to explain that everyone suspected the gamblers of using a hidden computer. We’re not doing that, Jovanovic offered. “We can play naked,” he said. At this, one of the casino representatives grabbed at the Croatian’s jacket as if to strip him. “Go on, then!” The detective had seen enough and ended the demonstration before things could turn ugly. He escorted the gamblers out. + +To a cop’s eyes, Tosa and his gang still looked like criminals. They had large sums of cash, burner cellphones and passports showing travel to Angola and Kazakhstan. What exactly was their crime, though? Even if it could be proven that they’d used a computer, the answer wouldn’t have been clear. Nevada had banned the use of electronic devices in casinos back in the 1980s, but the UK had no such prohibition. The country’s gaming statute, which dated to 1845, was created to stop noblemen from blowing their family fortunes at West End clubs. It didn’t mention computers. + +Not long after the Colony demo, the police phoned Wootten to say they wouldn’t be pressing charges against Tosa, Marjanovic or Pilisi, or continuing the investigation into Jovanovic and Fadel. Detectives hadn’t found any evidence of dishonesty or cheating, nor had they been able to establish a definitive link between the two groups. + +Wootten was aghast. He imagined having to tell the casino’s billionaire owners, a conversation he’d been hoping to avoid. Was there any legal way to stop Tosa and the others from collecting their winnings? he asked. No, the officer said. There was no other option. The Ritz would have to pay up. + +Photo Illustration by Irene Suosalo; Video: Getty Images + +Wootten was determined not to let Tosa’s victory be the end of the matter, and he wasn’t the only one. Wootten’s friend Mike Barnett—once an electrician, then a professional gambler, then a high-paid casino security consultant—had been helping the Ritz and the Metropolitan Police understand how predictive roulette worked. The casino had paid for Barnett to fly in from Australia in the middle of the Tosa investigation, bringing along his own roulette timers and predictive software. He couldn’t be sure Tosa had used computers, but it was nevertheless an opportunity to convince skeptical cops and staff that roulette prediction wasn’t a myth. + +In presentations that were seen by representatives of virtually every major casino group in the UK, as well as the national regulator, the [Gambling Commission](https://www.gamblingcommission.gov.uk/ "UK Gambling Commission"), Barnett invited audiences to try using a handheld clicker to time video footage of a moving wheel and ball precisely enough for the computer program to work its magic. Most could, and once they’d done it themselves, some of the mystery fell away. “To make money in roulette, all you need to do is rule out two numbers,” Barnett liked to say, flashing a gold Rolex and diamond encrusted ring as he held up his fingers. With two numbers eliminated, the odds became slightly better than even, flipping the house’s slender advantage. + +The Gambling Commission ordered a government laboratory to test Barnett’s system. The lab confirmed his thesis: Roulette computers *did* work, as long as certain conditions were present. + +Those conditions are, in effect, imperfections of one sort or another. On a perfect wheel, the ball would always fall in a random way. But over time, wheels develop flaws, which turn into patterns. A wheel that’s even marginally tilted could develop what Barnett called a “drop zone.” When the tilt forces the ball to climb a slope, the ball decelerates and falls from the outer rim at the same spot on almost every spin. A similar thing can happen on equipment worn from repeated use, or if a croupier’s hand lotion has left residue, or for a dizzying number of other reasons. A drop zone is the Achilles’ heel of roulette. That morsel of predictability is enough for software to overcome the random skidding and bouncing that happens after the drop. The Gambling Commission’s research on Barnett’s device confirmed it. + +[The government’s report](https://www.roulettephysics.com/wp-content/uploads/2014/01/roulette-problem2.pdf "Roulette Wheel Testing report [pdf]") wasn’t released publicly after it was finished in September 2005; casinos made sure of that. But among industry figures, it gave an official imprimatur to a once-fanciful idea. The study also offered recommendations for how casinos could fight back: Shallower wheels. Smooth, low metal dividers between the number pockets. Or no dividers at all, only scalloped grooves for the ball to settle into. These design features increased the time a ball spent in the hard-to-predict second phase of its orbit, hopping around the pockets in such chaotic fashion that even a supercomputer couldn’t work out where it was headed. + +Most important, roulette wheels had to be balanced with extraordinary precision. A quick check with a level was no longer enough. Even a fraction of one degree off, and the ball might end up in Barnett’s drop zone. + +London casinos were some of the first to order new equipment to meet the specifications. The Ritz changed all its wheels within months. Word spread quickly. At an industry event in Las Vegas, Barnett asked an audience of gambling executives how many thought it was possible to predict roulette. Hardly anyone raised a hand. By the end of his presentation, when he asked again, almost everyone did. + +As the gaming industry began taking the threat more seriously, wheels were developed with laser sensors and built-in inclinometers to detect even a hair’s breadth of tilt. The stakes were rising, as [gambling moved online](https://www.bloomberg.com/news/articles/2022-08-04/twitch-s-gambling-boom-is-luring-gamers-into-crypto-casinos "Twitch’s Gambling Boom Is Luring Gamers Into Crypto Casinos") and millions of people around the world [began to wager on livestreams](https://www.bloomberg.com/news/articles/2009-08-24/netplay-pushes-tv-roulette-as-broadcasters-seek-revenue-sources "Netplay Pushes TV Roulette as Broadcasters Seek Revenue Sources") from their home computers or cellphones. + +One of the biggest livestreamers was Evolution Gaming Group. Founded in 2006 with some casino equipment and a small office in Latvia, the company charged betting firms a percentage of revenue to use its platform, which became a wildly lucrative niche. About a decade ago, according to several former employees, Evolution staff made a strange discovery. A handful of players were winning at statistically absurd rates on the roulette wheels spinning day and night at its facility in Riga. Engineers investigated and pinpointed a culprit: the floor. Specifically, there was a gap between its solid concrete base and the carpeted playing surface laid down just above, a standard feature in studios where audio is recorded. When a croupier stood next to the televised table, the floor flexed ever so slightly, not enough to catch the human eye but tilting enough to help anyone using prediction software. One online user won tens of thousands of dollars from a major Evolution partner before engineers installed platforms to steady the wheels. + +As Evolution grew, opening outlets in Belgium, Malta and Spain, so did the ingenuity of the players exploiting any flaw in its operations. One gambling brand’s croupiers worked in a hot room cooled by a fan that Evolution found altered the movement of the ball. Brand-new equipment might arrive with unglued pockets or start to degrade and lose its randomness after only a few weeks of round-the-clock use. Sometimes, wheels got so dependable that gamblers didn’t even need a predictive equation. They could simply bet the favored section over and over. Always, there were players who seemed able to spot the imperfections before Evolution’s analysts could. + +In response, Evolution hired an army of “game integrity” specialists and paid a fortune to consultants, including Barnett. The company developed software to track wheels in real time and identify whether any section was winning more than statistical models said it should. It gave croupiers a screen telling them to toss the ball more quickly or slowly, as required. By 2016, Evolution employed 400 people in its game integrity and risk department, according to an [annual report](https://evolution-com-media.s3.eu-central-1.amazonaws.com/s3fs-public/651419_0.pdf "Evolution Gaming annual report 2016 [pdf]") in which it also warned that its adversaries were getting more sophisticated with every passing year. (Asked for comment, a company spokesman said, “Evolution works hard to protect game integrity and it is a prerequisite for our business.”) + +According to Barnett, there’s a new generation of online roulette sharps who no longer need human-operated switches to time the ball and wheel. Instead, they deploy software that scans the video feed and does it for them, all from a home computer with no security guards in sight. Gambling firms are fighting back with innovations like random rotor speed, or RRS, technology, using software to algorithmically slow the wheel differently on each spin. + +There’s one surefire way casinos could stop prediction: calling “no more bets” before the ball is in motion. But they won’t. That would cut into profits by limiting the amount of play and deterring casual gamblers. Instead, the industry seems willing to pay a toll to a select few who know the secret, while trying to design out the flaws that make the game vulnerable. Walk into a casino anywhere in the world today. Look at the depth of the pockets, the height of the wheelhead, the curvature of the bowl, and you can see how Tosa and his counterparts have reshaped roulette. + +John Wootten never forgot Niko Tosa. Part of him admired the Croatian, who was a cut above the grubby casino cheats he was accustomed to dealing with. If anything, Tosa helped Wootten’s career. He traveled the world to talk about the Ritz case, giving speeches in Macau, Las Vegas and Tasmania. Every so often, he was thrilled to get word of Tosa’s whereabouts from someone in his global network. + +As the years went on, Tosa adopted different aliases, complete with fake IDs, and switched up his playing partners. But the piercing gaze, the long beak of a nose, were unmistakable. There he was at a Romanian casino in 2010, captured by a security camera with his hand stuffed into a trouser pocket (where, staff assumed, he must be hiding something). There he was again, in London, trying to get into a club in an unconvincing gray wig. Then Poland. Then Slovakia. + +In 2013 the furious owner of a casino in Nairobi contacted Wootten about a Croatian who’d won 5 million Kenyan shillings ($57,000) playing roulette. The gambler would watch the wheel for a few seconds, then place neighbors bets. When challenged, he acted as if he was “expecting a confrontation,” the casino owner wrote in an email. Could it be the same Croatian who’d hit the Ritz almost a decade earlier? + +When Wootten confirmed the man was one and the same, the casino owner phoned and said he’d contacted friends in the Kenyan government who he hoped could have Tosa arrested. Wootten wished him luck and hung up. He took the incident as a sign the gaming industry’s defensive measures were working. Tosa must be getting desperate, having to travel to Africa to find vulnerable wheels. There were casinos far from London where, Wootten knew, they wouldn’t hesitate to break a suspected cheat’s fingers. + +![Wootten outside his shed in London.](https://assets.bwbx.io/images/users/iqjWHBFdfxIU/i2J8Xz6c3aTc/v0/640x-1.jpg) + +Wootten outside his shed in London. Carlotta Cardana for Bloomberg Businessweek + +Wootten retired in 2020, after the Ritz shut its doors permanently during the Covid-19 pandemic. Over the years he’d collected a cabinet full of increasingly ingenious devices: PalmPilots, reprogrammed cellphones, flesh-colored earpieces, miniature buttons and cameras. He knew of one player who’d hidden a roulette timer in his mouth and had heard rumors of another who’d tried to get a microprocessor surgically embedded in his scalp. + +Yet Tosa had never been caught with so much as a thumb drive. Could it really be, Wootten wondered, that the man who’d done more than anyone to raise the alarm about computer roulette hadn’t actually used one? + +He knew, too, that some of the early pioneers of the field had observed a curious phenomenon. After using predictive technology thousands of times, they’d developed a sense of where the ball would land, even without the computer. “It’s like an athlete,” Mark Billings, a lifelong player and author of *[Follow the Bouncing Ball: Silicon vs Roulette](https://www.amazon.com/Follow-Bouncing-Ball-Silicon-Roulette-ebook/dp/B08P91LXTM/ref=sr_1_2 "Follow the Bouncing Ball: Silicon vs Roulette on Amazon.com")*, said in an interview. “At some point all this stuff comes together. You look at the wheel. You just know.” Casinos call it “cerebral” clocking. All that’s needed is a drop zone and a potent, well-trained mind. + +Wootten and Barnett debate the point to this day. A roulette computer was a neat explanation for casino staff, who didn’t want to look too closely at their shoddy equipment, and for Wootten, who wanted to prove a point to all the executives who’d laughed at him. But when I spoke to Barnett, he argued that the wheel at the Ritz was so old and predictable that Tosa wouldn’t have needed a computer to defeat it. “Blind Freddie could beat the wheel they played,” he said. + +Back then, he’d wanted to believe, too. “I wanted to ride into Scotland Yard on my white horse and expose the M.O.,” he recalled. “The problem was there was not the slightest shred of evidence.” + +Without that, Barnett said, there was only one thing left to do: “The only way we’ll really know is if you talk to Niko.” + +I figured Tosa would be hard to track down. He’s spent most of his career trying not to be found. Sure enough, there was no record of him in company or property registries, or in news reports or on social media. I managed to get hold of a list of his playing partners and worked my way through it, but they all turned into dead ends. + +Business associates of his Ritz companions, Pilisi and Marjanovic, ignored calls and emails and blocked my number when I texted. I did find one Serbian businessman who seemed to know them both, but he said he’d lost touch years ago and was trying to find them himself. When pressed, he grew irate. “What part don’t you understand?” he asked. + +I thought I’d caught a break when one of Tosa’s more recent partners listed an address near my home in West London, but the man’s ex-wife answered the door and said he’d moved back to Montenegro when they separated. So it went. + +Eventually, I realized the different addresses Tosa had given casinos over the years were clustered along the same stretch of Croatian coast, south of Dubrovnik. They were tiny villages, mostly. I hoped someone might have heard of him, so I sent a colleague to ask around. After striking out a few times, he found a former neighbor and showed him Tosa’s photograph. He has a holiday villa nearby, the neighbor said, just up the road from the local convenience store. Try him there. + +My colleague found Tosa outside the house, working on an SUV. He was friendly enough, though he said he didn’t talk to reporters. He offered a phone number but didn’t answer it the numerous times I called. + +In November, I flew to Dubrovnik, the picturesque medieval fort city that was one of the [main backdrops](https://www.kingslandingdubrovnik.com/ "King's Landing Dubrovnik") for *Game of Thrones*. The day I arrived, a storm blew in off the Adriatic, slamming sheets of rain against the cliffs and sending the few off-season tourists scurrying for their hotels. Tosa’s villa was an hour’s drive down a winding coastal road. There was a solid iron gate blocking the entrance to his front door and no one home, so I folded a note into a plastic folder to keep out the rain and slid it under the gate. + +![A village in the region of Croatia where Tosa is from.](https://assets.bwbx.io/images/users/iqjWHBFdfxIU/ixIBebnqO2Bs/v0/640x-1.jpg) + +A village in the region of Croatia where Tosa is from. Kit Chellel + +The town’s only cafe was open and full of chain-smoking locals in sweatsuits. It was an unpretentious place decorated with *Godfather* posters. I ordered a coffee and struck up a conversation with the barman. Did he know that probably the world’s most successful roulette player had a place around the corner? No, he said—he never gambled. He thought it was a good way to lose money. + +I showed him a picture of Tosa. He said he didn’t recognize the man, though he was curious how I’d found the photo. After a while, I left a tip, said goodbye and walked off, defeated, in the direction of my car. The barman came running out into the downpour. “I just called him,” he said. “He is my good friend. I wanted to check with him first. He is in Dubrovnik.” Tosa phoned me a few hours later, and we arranged to meet at a fish restaurant in the old harbor. + +In person, he was even taller and more birdlike than I’d expected. He spotted me in the street outside and pulled me into an awkward embrace under his umbrella, saying, “Oh oh oh oh.” Inside, he introduced me to a friend and a younger relative who both spoke good English and would translate when needed. Niko Tosa, they explained, wasn’t his real name. I agreed not to publish the actual one, because they said he had enemies who were less forgiving than John Wootten. + +Tosa was by turns enigmatic, jovial, prickly, paranoid, frank. Also generous—he insisted on buying a round of single malt whiskies. He readily admitted to playing roulette using fake identity documents and to disguising himself with a wig and fake beard. “What’s wrong with that?” he asked. He had no problem referring to some of his former playing partners as criminals. One of them had been gunned down in Belgrade in 2018, killed in an apparent Balkan-mafia feud. Tosa had fallen out with others over money. + +But he was adamant that he’d never used a roulette computer. The idea was like something from James Bond, he said with a laugh, adding, “We are peasants.” As I pressed him about computers, he threw up his hands in exasperation and started to argue with his friend. Is he angry, I asked. “No, that’s just how he talks,” the friend replied. “He’s asking how he can make you understand.” + +I began to suspect that Tosa had agreed to talk to me specifically to make this point. Between glasses of white wine and plates of locally caught squid, he burst out, “You can call me Nikola Tesla if I have such a device!” + +So how did Tosa do it, then? Practice, he said. They showed me a video clip of a glistening roulette wheel Tosa kept in his house to train his brain. How had he learned? A friend taught him—Ratomir Jovanovic, the Croatian who’d given the disastrous demonstration at the Colony Club. London police had been right that the two were working together. + +The condition of the wheel is vital, Tosa said. That was why he’d sought out a particular table at the Ritz—he’d played the wheel enough to confirm that he could beat it. He’d been able to identify it on sight even after the casino moved it into the Carmen Room. + +I think I believed him when he said he didn’t use a computer. Later on, for a sanity check, I contacted Doyne Farmer, the physicist whose roulette prediction exploits are chronicled in *The Eudaemonic Pie*. “I do think it’s conceivable that someone could do what we do without a computer, providing the wheel is tilted and the rotor is not moving too fast,” said Farmer, who’s [now a professor](http://www.doynefarmer.com/about-me "J. Doyne Farmer") at the University of Oxford. He compared cerebral clocking to musical talent, suggesting it might activate similar parts of the brain, those dedicated to sound and rhythm. + +Then again, if Tosa had concealed a tiny contraption, I don’t think he’d have told me. It seemed to me an uncomfortable life, traveling the world in search of casinos where he wouldn’t be recognized, waiting for security teams monitoring closed-circuit cameras to realize he was too good. Tosa said he’d been beaten up by casino thugs more than once. Sitting at the table in Dubrovnik, I asked him if he ever felt hunted. He looked baffled by the question. “Why would I?” The casinos were the prey; he was the hunter. + +His young relative said he could remember the day, years back, when Tosa first pulled up in a Ferrari. Their hometown in the foothills of the Dinaric Alps isn’t rich by Croatian standards, though Tosa is from a prominent family. He seemed to share traits I’ve seen in other professional gamblers: an aversion to the grind of nine-to-five and a need to live on his own terms, whatever the risks. Ultimately, what set him apart from other roulette predictors was his willingness to go big. Most players only dare win a few thousand dollars at a time, for fear of being discovered. “Like squirrels,” Tosa said with contempt. If he hadn’t been arrested at the Ritz, he claimed, he would have gone back the next night and made £10 million. He felt the casino had gotten off lightly. + +Toward the end of our encounter, Tosa asked exactly when my story would be published. Why did he want to know? He was planning his next international trip, he said, smiling. He didn’t want me to blow his cover. —*With Vladimir Otasevic, Daryna Krasnolutska, Peter Laca and Misha Savic* + +*Read more: [The Gambler Who Cracked the Horse-Racing Code](https://www.bloomberg.com/news/features/2018-05-03/the-gambler-who-cracked-the-horse-racing-code)* + +## More On Bloomberg + +  +  + +--- +`$= dv.el('center', 'Source: ' + dv.current().Link + ', ' + dv.current().Date.toLocaleString("fr-FR"))` \ No newline at end of file diff --git a/00.03 News/Gisele Bündchen on Tom Brady, FTX Blind Side, and Being a “Witch of Love”.md b/00.03 News/Gisele Bündchen on Tom Brady, FTX Blind Side, and Being a “Witch of Love”.md index 0c95c5ab..c34710d9 100644 --- a/00.03 News/Gisele Bündchen on Tom Brady, FTX Blind Side, and Being a “Witch of Love”.md +++ b/00.03 News/Gisele Bündchen on Tom Brady, FTX Blind Side, and Being a “Witch of Love”.md @@ -12,7 +12,7 @@ CollapseMetaTable: true --- Parent:: [[@News|News]] -Read:: 🟥 +Read:: [[2023-04-10]] --- diff --git a/00.03 News/I Went on a Package Trip for Millennials Who Travel Alone. Help Me..md b/00.03 News/I Went on a Package Trip for Millennials Who Travel Alone. Help Me..md index c4b8b19e..03a75af2 100644 --- a/00.03 News/I Went on a Package Trip for Millennials Who Travel Alone. Help Me..md +++ b/00.03 News/I Went on a Package Trip for Millennials Who Travel Alone. Help Me..md @@ -12,7 +12,7 @@ CollapseMetaTable: true --- Parent:: [[@News|News]] -Read:: 🟥 +Read:: [[2023-04-08]] --- diff --git a/00.03 News/Jaylen Brown Is Trying to Find a Balance.md b/00.03 News/Jaylen Brown Is Trying to Find a Balance.md index 99a2a44b..f2a48a40 100644 --- a/00.03 News/Jaylen Brown Is Trying to Find a Balance.md +++ b/00.03 News/Jaylen Brown Is Trying to Find a Balance.md @@ -12,7 +12,7 @@ CollapseMetaTable: true --- Parent:: [[@News|News]] -Read:: 🟥 +Read:: [[2023-04-07]] --- diff --git a/00.03 News/Saving the Horses of Our Imagination.md b/00.03 News/Saving the Horses of Our Imagination.md new file mode 100644 index 00000000..7805a670 --- /dev/null +++ b/00.03 News/Saving the Horses of Our Imagination.md @@ -0,0 +1,263 @@ +--- + +Tag: ["🏕️", "🇺🇸", "🐎"] +Date: 2023-04-10 +DocType: "WebClipping" +Hierarchy: +TimeStamp: 2023-04-10 +Link: https://sundaylongread.com/2023/04/08/saving-the-horses-of-our-imagination/ +location: +CollapseMetaTable: true + +--- + +Parent:: [[@News|News]] +Read:: 🟥 + +--- + +  + +```button +name Save +type command +action Save current file +id Save +``` +^button-SavingtheHorsesofOurImaginationNSave + +  + +# Saving the Horses of Our Imagination + +THE HORSE wasn’t just skinny, she was skeletal. Not just thirsty, desperate. Alive, but just barely. + +When the scrawny filly wandered into Joey Ferris’ yard, he knew exactly where she had come from. Ferris was a lieutenant at the Mingo County Sheriff’s Office, where operators frequently fielded calls about horses like this. In addition to putting out food and water, he decided to use the opportunity to call attention to their ongoing plight. + +He began the video he uploaded to YouTube in 2017 with a matter-of-fact assessment: “Bad things are happening in Southern West Virginia.” + +“People get a horse,” Ferris says into the camera, eyebrows furrowed, “and they leave the horse on the strip mine.”  + +Behind him, the cumin-colored filly bowed toward a pan of water, her ombre tail flicking away dogged summer gnats. It had been a few weeks since this one had appeared on his property, he explained. Her ribs were once again beginning to disappear beneath her flesh, but the horse’s hip bones strained against her hide like a pair of blunt  arrowheads. “We’ve been feeding her really good, but she’s still bony.”  + +Ferris posted the video to his YouTube channel and called it *Abandoned Horses of WV Need Help*. But Ferris was also in need of assistance. The bony brown horse was content to hang out in his backyard for a meal or two, but she bolted at the first sign of a harness. So he forwarded the video to someone who might know what to do.  + +If anyone knew that West Virginia’s abandoned horses needed help, it was Tinia Creamer, who had been trying to get people to pay attention to the problem for years—in blog posts, presentations to politicians, and YouTube videos of her own. Creamer runs Heart of Phoenix, a West Virginia horse rescue about two hours north of Ferris’s home in the area known as the Southern Coalfields, where decades of strip-mining – removing mountaintops to access the minerals beneath – have turned the undulating topography into flat, grassy prairies ideal for grazing. The consolation prize: for years, locals took advantage of the newly available  space.   + +It was an informal system with implicit rules: Round up your horses in the winter, absolutely no stallions. But when the economy tanked in 2008, many in the region could no longer afford to feed their horses. And so they simply left them—even their stallions—on these sites, hopeful they would survive on the grass that mining companies were legally obligated to plant after operations had shut down.  + +> “People get a horse and they leave the horse on the strip mine.” +> +> Joey Ferris, Mingo County Sheriff’s Office + +Within a decade, thousands of free-roaming horses were scratching out a living on abandoned and active strip mines across nine counties in Eastern Kentucky and four in southern West Virginia, while disagreements over the scope of the problem and how to solve it intensified. Some, like Creamer, maintained the horses were ill-equipped for the elements and needed to be removed. Others argued that all the horses needed was a little supplemental care—a salt block here, a hay bale there—and not only could they endure, they might actually become a point of pride for the region. Something beautiful in a beleaguered place.  + +Meanwhile, more horses were turned out. More horses were born. More horses died.    + +About a year before Creamer heard from Ferris, her organization responded to a call about another strip mine horse in need. The horse eventually known as Revenant was a deep chestnut with white feet, the front left of which hung uselessly, gruesomely fused in the shape of a hockey stick. His injury was old, perhaps caused by an encounter with a mine shaft or a collision with heavy machinery. Rejected by his herd, the horse had somehow dragged himself across the mountain to find food and water.  + +“It is beyond our scope of understanding how he is alive,” Creamer [later wrote](https://heartofphoenix.org/2016/03/12/revenant-a-mine-horse-with-a-destroyed-front-leg-from-west-virginia-heart-of-phoenix-equine-rescue/) of Revenant, his body thin and misshapen; it was hardly a question that he be euthanized.  + +But when Creamer watched Ferris’s video of the filly who would be named Phoebe, she knew this rescue would go differently. “A starving horse two weeks from death,” Creamer says, but young. “Age was greatly on her side.” + +Creamer figured that, like Revenant, Phoebe had also been rejected by her herd. At some point—perhaps weakened by parasites or too dependent on her mother’s milk—she had become a liability. Coyote bait. To drive her away, the other horses kicked her, bit her, or ran her down until the only logical thing for the filly to do was seclude herself.  + +But the complex social instinct that told Phoebe to hide also compelled her to seek companions, in this case a miniature pony that belonged to Ferris’s girlfriend. Phoebe was looking for a new herd.  + +Visiting Ferris and using that friendly pony as a lure, Creamer enticed Phoebe into a trailer and back to the rescue. A couple weeks after Ferris posted his video, Phoebe was off the mountain for good.  + +![](https://i0.wp.com/sundaylongread.com/wp-content/uploads/2023/04/KST_20221122_8957.jpg?resize=1024%2C683&ssl=1) + +Feral horses have gathered on decommissioned mines across Appalachia. But how to care for them is disputed. *Photo by Kristian Thacker* + +HEART OF PHEONIX is located a few miles north of Huntington, West Virginia, in the town of Lesage: a smattering of houses, a small grocery, and a hot dog stand perched on the banks of the Ohio River. The rescue currently houses about 40 horses, three of whom had been removed from strip mines. + +Gilligan was a two-week-old foal from Mingo County when he and his mother were hit by a car. No one could catch the feral mare, who escaped back into the mountains with a broken leg. But Gilligan was “so little and so hurt,” so much of his skin gone after a skid across the asphalt, that he was easy to capture.  + +Two years later, Gilligan plodded lazily across the rescue’s fields while nearby, helping himself at a round bale, was Mario, part of a bachelor herd of stallions HOP removed from an old strip mine in Martin County, Kentucky. “He’s still really tough to catch,” Creamer says, before pointing to a brown and white paint horse who came off the mountain—unbeknownst to anyone—in her 30-year-old mother’s belly, part of another roundup. Suri, they called her, short for surprise.  + +Creamer says HOP gets weekly calls from people worried about horses on old or active mines, but today the organization only responds to truly dire cases—injured animals or a nuisance horse in danger of being shot by fed-up locals.  + +“It’s very difficult, very costly, very time-consuming, and very unsafe for us to do it,” she says. There’s one other major hurdle: “There is nowhere for them to go.”  + +At 40 years old, Creamer has a mane of dark hair, glassy blue eyes, and a full-throated Appalachian accent that stretches her vowels like taffy. She knows it sounds made up but swears it’s true: her first word was *horsey*. Growing up in Lincoln County, West Virginia, Creamer amassed hundreds of Breyer horse models. By 11, her mom had enrolled her in riding lessons; by 14, she had a horse of her own. She spent her teenage years at auctions with her horse-trader grandfather, who also took her to the Kentucky Derby, where they watched from the infield. + +Horses were always there, in real life and in the stories her father used to tell, about growing up a “starving little boy with no daddy in Lincoln County, where having a horse was a luxury.” His voice still caught with emotion when he talked about the family mule that got shot for pilfering a neighbor’s garden, leaving his mother with no way to get to town, no way to pull firewood down from the hills.  + +But by adulthood, Creamer had moved on from horses and away from West Virginia. At 24, she was living in Florida with her husband and son—most of a literature degree under her belt and plans to become a novelist—when she had an epiphany. “I love West Virginia, I love it in a crazy, mad, ridiculous way,” she says. She missed her dad; she missed her five siblings. “I had to get back home.” Creamer returned to West Virginia in the waning days of 2006, intending to make a fresh start; instead, she got there just in time to say goodbye.  + +It was a rainy January night around 11 p.m. when a fire broke out at the six-story Emmons apartment building in downtown Huntington. Creamer’s 19-year-old brother Ben, 17-year-old sister Angel, and 14-year-old brother Quentin were inside. All three were killed. Sixteen years later, Creamer says the loss is “something you don’t get over.”  + +“You can kind of move on. You can kind of forget the person, almost. But what you never ever forget is who you were before it happened,” she tells me, as her painted nails tapped the picnic table. “That’s the selfishness of grief. You don’t forget who you were with those people.” The first year after her siblings’ deaths, Creamer was “a mummy,” but the next year, suddenly, she found herself wanting a horse.  + +“It was a piece of being a kid. What did I have as a kid? Those siblings and horses.” + +She only wanted one, a horse she could keep on the land she bought outside of town. She turned to Craigslist; it was 2009, a year into the country’s worst recession in a generation, and the online classifieds revealed the grisly fallout.  + +“You couldn’t log on there and *not* see horses starving to death or being given away everywhere,” she says. + +> “I remember saying ‘someone has to do something about this.’ And then I thought, ‘Oh no. It’s going to be me.’” +> +> Tinia Creamer, Heart of Pheonix + +By 2010, Creamer had founded Heart of Phoenix, which she named after one of her first rescues – a neglected horse whose painful hoof condition made her impossible to save. Today, it is one of the largest equine rescue organizations in the world.  + +HOP was still a fledgling nonprofit in 2012 when Creamer learned about horses roaming old strip mines. Someone sent her an email with a picture of a horse “that looked like it had been set on fire.” The horse was located in Mingo County, the email said, could she help? When she wrote back asking for the owner’s name and the address, the person explained that the horse lived on the strip mine. Lots of them did, actually. + +Even 12 years later, her eyes still get wide recalling this moment. She decided to go see for herself.  + +They were out there all right. Herds teeming with emaciated horses, [some with hides marred by open wounds and lacerations](https://heartofphoenix.org/2015/07/25/the-feral-abandoned-and-managed-herds-of-horses-of-west-virginia-and-kentucky/), nosing for something to eat amid rocks and brush, breeding and in-breeding indiscriminately. Swarming local roadways to lick salt off the pavement. She knew even the healthy-looking horses were likely vitamin-deficient and full of worms. “They’re domestic animals. They are in no way designed to live out there,” she says. + +For Creamer – whose grandfather’s very currency was horses, whose father still got misty-eyed about a dead mule, whose own shattered life had been knitted back together by the gentle animals – the scene was surreal, shameful. There was only one thing to do: get these horses off the mountain.  + +She went looking for help online, but was instead met with hostility. In person, too, the locals weren’t keen on Creamer—being from the next county over made her an outsider—poking her nose in their business. “People in that part of West Virginia are very protective about what they do,” she says, and what they were doing, most argued, was grazing their horses on land nobody was using, old mines where their fathers and grandfathers had given the best years of their lives.  + +Others had grown fond of the herds, riding up the mountain on their ATVs every weekend to offer the animals bread or apples.  + +In their opinion, no, Creamer absolutely couldn’t take them off the mountain; these were somebody’s horses. *Their* horses. Some of them literally, but all of them figuratively. It may seem unreasonable but reason is frequently absent when it comes to our attitudes and actions toward animals. We introduce invasive species to fragile ecosystems, we breed dogs that cannot breathe, we swarm apex predators for the perfect photo.  + +We let our proclivity for beauty cloud our better judgment. It’s not a phenomenon exclusive to  Appalachia. We do this, all of us, *everywhere.* + +Creamer wasn’t just coming up against locals’ attachment to their horses, but a pernicious human tendency to confuse profound affection for animals with wisdom about what’s best for them.  + +Still, she persisted. She reached out to local politicians, the state’s humane society and the department of agriculture. Some offered sympathy, but nobody offered to help.   + +For the next four years, Creamer visited the area often, keeping a catalog of the horses she found.  + +In 2014, when the herds had grown into the thousands, it looked like her record-keeping might pay off. She was invited to speak at the annual combined shareholders meeting of the massive, mostly out-of-state [land corporations](https://wvpolicy.org/wp-content/uploads/2018/5/land-study-paper-final3.pdf) who collectively own huge swaths of southern West Virginia. EPA fines for not meeting reclamation milestones had compelled them to learn more about the feral horses sabotaging their efforts.   + +“These were some of the richest people in America,” Creamer thought, people with a vested interest, if not in the health of horses, then at least in the health of the land. She was hopeful they would provide funding for management. For 45 minutes she explained the size and severity of the problem, displaying a slideshow of the photos she had collected, photos of dead, injured, or starving horses. + +How much did they care? + +“Let me tell you how much,” she says, making a zero with her thumb and forefinger. “Whatever the EPA fined them was not comparable to what this sounded like it would cost. And probably it wasn’t.”  + +She couldn’t understand — she still can’t — why people were so unmoved to help, to even *admit* there was a problem. Couldn’t they see what she saw?  + +![](https://i0.wp.com/sundaylongread.com/wp-content/uploads/2023/04/KST_20221122_0167.jpg?resize=1024%2C683&ssl=1) + +Feral horses surround a truck on a dirt road in West Virginia. *Photo by Kristian Thacker* + +For a very long time, when people looked at a horse, they more or less saw the same thing: an implement of transportation, agriculture, or war. Domesticated about 6,000 years ago, horses allowed people to move farther and faster than ever before; they tilled fields and drove cattle, they carried men into battle and correspondence across a young country. In West Virginia, pit ponies worked alongside miners, hauling coal out of the bowels of blue mountains. + +But the connection between human and horse was never a mere partnership, not the sort of practical arrangement we shared with donkeys or oxen.  + +We etched them onto rock, painted them in caves and on canvas. We carved them out of marble, wrote classic novels about them. We braided their manes and [took them as dance partners](https://www.bbc.com/news/newsbeat-57999120), set their likeness on rockers and placed them beside our babies’ cribs.    + +Modern machinery, of course, rendered the horse largely redundant. Tractors, trucks, and tanks could do work quicker and more efficiently. But that was hardly the end of the affair.  + +Today, only about [1.6 million American households own a horse](https://horsesonly.com/horse-industry/), which means the rest of us encounter horses in fleeting, fantastical glimpses. Horse-drawn carriages on city streets, Super Bowl commercials with neighing Clydesdales, and a julep-soaked Saturday in May when TVs in bars across the country turn to “the greatest two minutes in sports.”  + +These beasts of burden no longer carry *actual* burdens; instead they bear an arguably heavier load—raw human emotion. Romance, nostalgia, glory. For so-called wild horses, we have reserved our most precious sentiments: those of America itself.  + +“They are freedom, they are independence,” reporter David Phillips writes in his book *Wild Horse Country.* “They are the ragtag misfits defying incredible odds.” + +But there are more than a few holes in our mythology. First of all, in the United States there’s [no such thing as a wild horse](https://www.hcn.org/blogs/range/feral-vs-wild-horses)—not genetically, because all horses today are descendants of domesticated stock—and not in any literal sense of the word either. The country’s remaining populations of feral horses don’t defy odds so much as they rely on humans to even the playing field for them. We may no longer need horses, but we certainly like having them around—and have gone to great lengths to make it so.  + +For instance, perhaps the country’s most famous herd of feral horses, Virginia’s Chincoteague Ponies, are carefully tended by a local volunteer fire department, using funds raised in an annual auction of the island’s foals. The 150 or so horses, made famous by Marguerite Henry’s beloved children’s book, *Misty of Chincoteague*, are kept safe from their adoring fans with barbed wire and receive regular, year-round veterinary care.  + +On North Carolina’s Outer Banks, herds of feral horses are managed by state and federal agencies as well as a handful of nonprofits. The horses are monitored for diseases and cordoned off from a busy roadway, their populations kept in check through adoptions and sterilization.  + +But the powerful emotional connection that compels us to preserve these animals often leads to controversy around what good management means. Out West, the Bureau of Land Management (BLM) has been at odds for decades with activists chronically upset about its handling of the region’s thousands of mustangs. Since the 1970s, in an attempt to maintain equilibrium between land and animal, the agency has rounded up more than 300,000 horses in helicopter-driven spectacles that critics call brutal and [inherently inhumane.](https://americanwildhorsecampaign.org/media/nbc-news-cruel-or-necessary-true-cost-wild-horse-roundups-0) According to Phillips, “the United States has nearly as many wild horses in captivity as it has in the wild.” + +The East Coast herds are also no stranger to conflict. Both the Humane Society and [PETA](https://www.delmarvanow.com/story/news/local/virginia/2018/08/05/chincoteagues-herd-management-method-not-unusual/892463002/) have urged the Chincoteague Volunteer Fire Department to change or cancel its annual “pony penning,” in which horses are driven to swim across a narrow channel that separates their island from the town.  + +Feral horse management isn’t just controversial — it’s also expensive. The BLM Wild Horse and Burro Program has an annual budget of more than $100 million, more than double the West Virginia Department of Agriculture’s, and more than 1,000 times Heart of Phoenix’s. + +Given the emotion and ambivalence wrapped up in our notions of horses, maybe it’s no surprise that Tinia Creamer’s calls for help were answered with a mute paralysis. And even if a unified vision for handling the horse crisis in Appalachia was to emerge, it wasn’t like there was money to do anything about it. The counties in question are among the poorest and most isolated in the country. Here, locals are waging a multi-front war against addiction, joblessness, and crumbling infrastructure. Feral horses just weren’t on the docket.  + +But as the herds grew, grim stories appeared in local papers. [Hungry horses](https://www.horseillustrated.com/horse-news-2015-07-the-stray-horses-of-eastern-kentuckys-coal-mines) chewing the siding off of houses, ripping up landscaping, and [causing car accidents](https://www.usatoday.com/story/news/nation/2015/02/10/stray-horses-a-growing-problem-in-kentucky/23199035/). [In 2016](https://www.wcpo.com/news/state/state-kentucky/in-parts-of-kentucky-horses-set-free-to-roam-wilderness-in-winter), three stallions were found shot to death on a decommissioned strip mine in Johnson County, Kentucky.  + +And in 2019, 20 horses were shot in Floyd County, Kentucky, the majority pregnant mares, a story that was picked up by [the *New York Times*](https://www.nytimes.com/2019/12/20/us/horses-shot-death-Kentucky.html). The site of the killing was so remote [there wasn’t a company](https://www.courier-journal.com/story/money/louisville-city-living/2020/01/30/kentucky-horse-shooting-survivors-rehabilitate-human-society-farm/4468324002/) the county could pay to remove the carcasses. + +Suddenly, a new narrative threatened to calcify — one that warped locals’ long-held affection for the horses into something negligent, even malicious. That’s when efforts emerged to recast the animals into a new role, from ecological crisis to tourist attraction.  + +![](https://i0.wp.com/sundaylongread.com/wp-content/uploads/2023/04/KST_20221122_9010.jpg?resize=1024%2C683&ssl=1) + +Technically, all feral horses in the United States are descended from domesticated stock. True wild horses no longer exist. *Photo by Kristian Thacker* + +I MET Marsha Thompson, the woman who would introduce me to the “mountain horses of Kentucky” — as the [Air BnB experience](https://www.airbnb.com/experiences/1966507) I booked described them — at the Quicksand Fire Station in Breathitt County. It had been just two months since the summer’s catastrophic floods killed 46 people across six counties in Eastern Kentucky, including Breathitt, in an event the [National Weather Service called](https://www.weather.gov/jkl/July2022Flooding) “historically unheard of.” On a Saturday in September, families were still arriving at the fire station to pick up food and packages of bottled water.  + +Thompson was in mid-recovery herself; she and her dogs were staying with her pastor while repairs were made on her house, which was inundated with eight feet of water during the disaster. It’s the second time in two years her home has flooded, but she has no plans to relocate.   + +As we inched our way up the mountain in her Toyota Rav4, Thompson was ready with stories about the area’s history as well as her own as a “horse-crazy” girl growing up in Iowa. A retired nurse who’s lived in the county for 40 years, Thompson had a friend who grazed his horses on the old mine above town, but she didn’t realize how many animals lived up there until she started volunteering with the [Appalachian Horse Project](https://appalachianhorseproject.org/history-of-free-roaming-horses). + +Founded in 2016, AHP is led by Ginny Grulke, the former executive director of the Kentucky Horse Council, a nonprofit dedicated to the state’s equine community. She was serving in that capacity in 2014 when the governor’s office reached out to see if she might know what to do about the feral horses in Eastern Kentucky. The animals were becoming a nuisance, waylaying coal companies’ half-hearted reclamation efforts and overgrazing the land. But the investigative committee formed to find a solution was hamstrung; the state didn’t want to invest money in managing the horses, and the alternatives would create bad press.  + +“We have a national reputation as \[the\] horse capital of the world,” Grulke says. “The last thing we wanted to do was round up horses and euthanize them.” And there was another challenge: the free-roaming horses were beloved, and visiting them was a popular and pleasant way to spend a Saturday afternoon. + +“We thought we had a negative situation we had to contain, but that flipped pretty quickly,” Grulke remembers. “Instead we thought maybe this could actually be an opportunity to benefit the community.” So AHP put a formal name on an effort already underway, working with locals who had been cataloging and caring for the horses for years, just as Creamer was in West Virginia. In 2019, AHP started offering tours as a way to raise money to care for the horses and encourage economic activity [in a county where](https://www.arc.gov/income-and-poverty-in-appalachia/) a third of residents live below the poverty line.   + +It wasn’t a completely novel idea. Not only is horse tourism big business in other parts of the country but investing in large, charismatic animals has worked in Kentucky before. Between 1997 and 2002, the state reintroduced about 1,500 elk—a long-extinct native animal—onto former strip mines in the same part of the state. Today the herd numbers in the thousands and activities like elk-watching and hunting have created hundreds of jobs and provided a modest but meaningful infusion of cash into a local economy that desperately needed it. Elsewhere in Appalachia, strip mines had been creatively repurposed into tourism-generating campgrounds and [ATV parks](https://www.minemadepark.com/). + +Thompson and I stepped out of her SUV at a site with all three—a campground, an ATV park, and an elk-viewing station. It’s been more than 30 years since mining wrapped up at Southfork Elk View Recreational Area. From the rusty lookout at the apex of the park, Thompson showed me the dramatic impact mining had on the land. We looked north and saw some of the oldest mountains in the world. We looked west and saw the landscape ironed flat, mountaintops missing and valleys filled in, all of it wrapped in dusty coal-hauling roads that today host scores of ATVs. Their whining engines were a soundtrack of the afternoon.   + +Five minutes later we’d taken one of those roads into the heart of the park, where we found two AHP volunteers — Shauneece Brandenburg, holding a spent deworming syringe, and Deronda Southard, holding a camera — and a group of 10 or so horses.  + +Renegade was the first horse I met. The color of black coffee, his mane was so choked with burrs that it was twisted into green dreadlocks. I arrived unarmed with snacks, but he frisked me anyway – my fingers, my phone, my notebook, my hair – with a nose soft like flower petals. I was delighted by his presence but also a little wary; Renegade was all hulking, twitching muscles. + +“He’s chilling out,” Brandenburg says, as if she’s sensed my reticence. “His hormone levels are dropping.” The women explained that Renegade was one of seven stallions castrated in AHP’s spring gelding clinic. There are about 500 free-roaming horses in Breathitt County and getting the population under control is the organization’s biggest challenge, made apparent by the number of pregnant mares that amble up to us as we talk.  + +Brandenburg and Southard know each of these horses well, and visit every weekend —  for 12 and 7 years, respectively — delivering mineral blocks and hay, tracking each animal’s development and health like some people monitor their fantasy football teams. AHP volunteers were the first to arrive after the floods. If they hadn’t, Brandenburg says, “there would be a lot of dead horses up here.” + +Many of the horses on this mountain technically belong to someone, but that doesn’t matter to them.  + +“They’re *my* horses. They’re—every one—mine.” Southard says, joking but not really. “I don’t care who they belong to. And Shauneece will say they’re hers.” + +“We’re lucky to have them,” Brandenburg adds.  + +Soon, more cars arrived, a combination of volunteers and visitors, and suddenly the pasture around us was filled with dozens of horses. They walked, trotted, and galloped through stands of chicory and thistle, arriving from every direction, knowing by now that the crunch of tires meant food. They were rewarded with carrots and cookies and popcorn held out on outstretched hands beneath adoring faces. The scene was chaotic: foals whinnied for their mothers and stallions scrapped over space while the women hollered back and forth about who was looking better than last time, who needed extra attention.   + +It was beautiful and beguiling and standing there I was filled with questions. Is this safe for humans? Is it right for horses? Could tourism really be the way to solve this crisis?   + +Even Tinia Creamer, who for years argued against using the horses as tourist attractions, has softened her stance on the issue. “There is some value in glamorizing them because it would make them valuable.” She says that as successive generations are born feral, they’re getting better at facing the elements.   + +“But it’s a wonderful life until it isn’t,” she warns. “There’s not a single horse out there that stays in that life. It can look like the most beautiful thing you’ve ever seen. But next year, it could be emaciated, leg broken, hit by a car.” And just because a horse *looks* healthy doesn’t mean it is. Creamer says most of the horses HOP has rescued from strip mines were malnourished, full of parasites and decaying teeth.  + +“The land looks lush and green, but it’s mostly actually weeds,” she says. “The [water sources are all toxic](https://www.bbc.com/news/world-us-canada-47165522). They don’t like you to say that around here, but they are.” + +After a decade-plus of inaction on the parts of state governments and land companies, Creamer now thinks tourism could be a last-ditch avenue for management, with the right precautions.  + +“It’s not a hopeless situation with proper intervention. But until you see it and you know this area and the land and the whole story, it’s impossible to give me a solution.” + +A visit to Kentucky demonstrates why locals feel so strongly about these horses, beings also forging lives on the literal scraps of the coal industry, making do with little, surviving in places others have written off.  + +Driving up and down the mountain was its own tour, the aftermath of industrial abandonment and natural disaster. Tree branches filled with things that belong in houses: a comforter, a dresser, a race car bed, and houses emptied or stripped to the studs, mountains of wet belongings piled in front yards. Beside many homes sat tents, neon oranges and reds that stood out against the green hillside. + +“They’ve lost so much already,” Thompson says of those living in tents. “They’re worried if they leave, someone will come and steal the little bit they have left.” + +*Ragtag misfits defying incredible odds.* David Phillips was describing mustangs when he wrote that line, but the same could be said about the people of Appalachia. As I watched the small crew on a mountaintop admiring seemingly irrepressible animals and another small crew in the valley clearing furniture from a creek that will surely flood again, the two scenes called to mind something else Phillips wrote about the wild horses of our imagination:  + +“They are what we tell ourselves we are, and what we aspire to be.”  + +Soon after arriving at the rescue, Phoebe went from a starving, “pathetic” horse weeks from death to a quirky, curious animal, according to Creamer. “A big dork with gigantic ears.” She grew until she was 17 hands at the shoulder — about five feet, seven inches – a size to match her gigantic ears.  + +After a year in rescue, Phoebe went to stay with Adam Black, a horse trainer outside Columbus, Ohio. For 100 days, he worked to get Phoebe ready for HOP’s annual competition and adoption event, the [Appalachian Trainer Face Off](https://appalachiantrainerfaceoff.com/), in which previously unhandled animals are transformed by volunteer trainers into adoptable, ready-to-take-home horses.  + +Black says working with feral horses presents unique challenges. “They’re hypersensitive to body language, eye contact, how you face them,” he explains. “It’s that predator-prey mentality. Years of survival have taught them that.” For the first few weeks in Black’s care, Phoebe’s past as a feral horse was on full display. “She was very concerned with her personal bubble,” he remembers, “she wasn’t convinced she needed people in her life.” + +Eventually, Phoebe relaxed, her “mule-y, long ears” softened, and Black could slip a harness over her nose. Then a lead. Then a saddle. Then a rider. Then a rider with a pistol who shot balloons while Phoebe dashed confidently. She met dogs and cattle and kids and went for long trail rides at crowded parks.  + +Phoebe finished third at the event, and was adopted by Lisa Quinlan, a 57-year old bookkeeper and longtime horse owner who lives outside Akron. Among Quinlan’s other two horses, Phoebe asserted her dominance. A fearsome kick allowed her to establish a new pecking order. The mare once rejected by her band is now the “top notch girl in the field, the head horse.”  + +With the humans, though, Phoebe was slower to acclimate, aloof and difficult to catch. When Quinlan initially tried to pet her or put her on a lead, Phoebe would just walk away. “She was a tough nut.” Quinlan recalls.  + +It took about a year, but now when Quinlan walks out into the field, the giant horse with big ears comes running. When she sees her owner at the fence line, Phoebe lets out a contented whinny. “She really likes us,” Quinlan says with a smile that comes through the phone. “She wants us to be a part of her herd.” + +Five years after she wandered into a good Samaritan’s backyard, Phoebe has exactly what she came down the mountain to find.  + +But thousands more just like her remain. + +![](https://i0.wp.com/sundaylongread.com/wp-content/uploads/2023/04/IMG_2995-1-1-1.jpg?resize=742%2C1024&ssl=1) + +## Ashley Stimpson + +Ashley Stimpson (she/her) is a freelance journalist based in Maryland. Her work has appeared in Longreads, Nat Geo, WIRED, Popular Mechanics, Field & Stream, and elsewhere. She is a staff writer for Belt Magazine. + +*This story was made possible by the support of **Sunday Long Read subscribers** and publishing partner **Ruth Ann Harnisch**. All photos by **Kristian Thacker for The Sunday Long Read.** Edited by **Peter Bailey-Wells**. Designed by **Anagha Srikanth**.* + +  +  + +--- +`$= dv.el('center', 'Source: ' + dv.current().Link + ', ' + dv.current().Date.toLocaleString("fr-FR"))` \ No newline at end of file diff --git a/00.03 News/We want objective judges and doctors. Why not journalists too.md b/00.03 News/We want objective judges and doctors. Why not journalists too.md index 3f1a73a5..c3b9ab02 100644 --- a/00.03 News/We want objective judges and doctors. Why not journalists too.md +++ b/00.03 News/We want objective judges and doctors. Why not journalists too.md @@ -12,7 +12,7 @@ CollapseMetaTable: true --- Parent:: [[@News|News]] -Read:: 🟥 +Read:: [[2023-04-08]] --- @@ -102,17 +102,7 @@ His diagnosis was much like what causes us so much worry today: Democratic insti Lippmann was seeking a means for countering the propaganda of his time. He well understood the tools for manipulating public opinion. He himself participated in the propaganda machine of the Woodrow Wilson administration. He saw how propaganda of the early 20th century carried the world into the slaughter of World War I, and how public sentiment could be influenced and exploited through calculated effort. And he called this propaganda emanating from government the “manufacture of consent.” -[ - -Leonard Downie Jr. - ---- - -counterpointNewsrooms that move beyond ‘objectivity’ can build trust - - - -](https://www.washingtonpost.com/opinions/2023/01/30/newsrooms-news-reporting-objectivity-diversity/?itid=cn) +[Leonard Downie Jr. counterpointNewsrooms that move beyond ‘objectivity’ can build trust](https://www.washingtonpost.com/opinions/2023/01/30/newsrooms-news-reporting-objectivity-diversity/?itid=cn) Lippmann recognized that we all have our preconceptions. But he wrote that “we shall accomplish more by fighting for truth than by fighting for our theories.” And so he called for as “impartial an investigation of the facts as is humanly possible.” Which is where the idea of objectivity came in: as impartial an investigation of the facts as is humanly possible. diff --git a/01.02 Home/@Shopping list.md b/01.02 Home/@Shopping list.md index 3436f3ce..cf73ee3b 100644 --- a/01.02 Home/@Shopping list.md +++ b/01.02 Home/@Shopping list.md @@ -72,7 +72,7 @@ style: number - [x] ☕ Coffee ✅ 2022-03-01 - [x] 🍶 Coke 0 ✅ 2022-03-14 - [x] 🧃 Apfelschorle ✅ 2022-12-21 -- [ ] 🍊 Morning juice +- [x] 🍊 Morning juice ✅ 2023-04-07 - [x] 🍺 Beer ✅ 2022-02-06   @@ -81,19 +81,20 @@ style: number - [x] 🍿 Snacks ✅ 2022-12-31 - [x] 🍦 Dessert ✅ 2022-12-23 +- [x] 🥠 Crackers (Tuc) ✅ 2023-04-07   #### Dairy -- [ ] 🧈 Beurre +- [x] 🧈 Beurre ✅ 2023-04-07 - [x] 🧀 Fromage à servir ✅ 2023-03-06 - [x] 🧀 Fromage rapé ✅ 2023-03-06 -- [x] 🧀 Parmeggiano ✅ 2023-03-06 +- [x] 🧀 Parmeggiano ✅ 2023-04-07 - [x] 🫕 Fondue cheese ✅ 2022-12-23 - [x] 🫕 Raclette cheese ✅ 2022-12-31 - [x] 🍦 Sour Cream ✅ 2022-10-29 -- [x] 🥛 Milk ✅ 2022-12-30 +- [x] 🥛 Milk ✅ 2023-04-07 - [x] 🥥 Coconut milk ✅ 2023-01-23 - [x] 🥛 Yoghurt ✅ 2022-12-30 @@ -102,15 +103,15 @@ style: number #### Breakfast - [x] 🥯 Bread ✅ 2023-03-11 -- [ ] 🍯 Honey/Jam +- [x] 🍯 Honey/Jam ✅ 2023-04-07 - [x] 🍫 Nutella ✅ 2022-02-15 -- [x] 🥚 Eggs ✅ 2023-03-11 +- [x] 🥚 Eggs ✅ 2023-04-07   #### Fresh -- [x] 🍎 Fruit ✅ 2023-03-02 +- [x] 🍎 Fruit ✅ 2023-04-07 - [x] 🍌 Bananas ✅ 2023-03-02 - [x] 🍅 Vegetables ✅ 2022-10-29 - [x] 🫑 Bell pepper ✅ 2023-01-24 @@ -118,9 +119,9 @@ style: number - [x] 🥦 Radish ✅ 2022-10-29 - [x] 🥦 Broccoli ✅ 2023-03-06 - [x] 🧅 Onions ✅ 2022-12-26 -- [x] 🧅 Spring onion ✅ 2022-11-15 +- [x] 🧅 Spring onion ✅ 2023-04-07 - [x] 🧄 Garlic ✅ 2023-01-19 -- [x] 🍋 Lemon ✅ 2023-03-06 +- [x] 🍋 Lemon ✅ 2023-04-07 - [x] 🍋 Lime ✅ 2023-01-09   @@ -128,7 +129,11 @@ style: number #### Meat & Fish - [x] 🥩 Cured meat ✅ 2022-12-31 -- [x] 🍖 Fresh meat ✅ 2023-01-24 +- [x] 🍖 Fresh meat ✅ 2023-04-07 +- [x] 🍖 Minced meat ✅ 2023-04-07 +- [x] 🥓 Bacon ✅ 2023-04-07 +- [x] 🐔 Chicken thighs ✅ 2023-04-07 +- [x] 🐔 Chicken breasts ✅ 2023-04-07 - [x] 🌭 Spicy sausage ✅ 2023-03-06 - [x] 🐟 Salmon fillet ✅ 2022-10-29 @@ -140,7 +145,7 @@ style: number - [x] 🍜 Noodles ✅ 2023-02-05 - [x] 🌾 Bulgur ✅ 2022-10-29 - [x] 🍚 Rice ✅ 2022-12-26 -- [x] 🥔 Potatoes ✅ 2022-12-31 +- [x] 🥔 Potatoes ✅ 2023-04-07 - [x] 🥣 Soup ✅ 2023-03-06   @@ -171,7 +176,8 @@ style: number - [x] 🌿 Bay leaves ✅ 2022-08-05 - [x] 🌿 Oregano ✅ 2022-03-14 - [x] 🌿 Herbes de Provence ✅ 2022-03-14 -- [x] 🌿 Coriander ✅ 2023-01-19 +- [x] 🌿 Coriander ✅ 2023-04-07 +- [x] 🌿 Parsley ✅ 2023-04-07 - [x] 🌿 Fresh mint ✅ 2023-01-09   @@ -180,6 +186,7 @@ style: number - [x] 🌭 Mustard ✅ 2022-12-24 - [x] 🫒 Olive oil ✅ 2022-07-30 +- [x] 🥑 Avocado oil ✅ 2023-04-07 - [x] 🥗 Vinegar ✅ 2023-01-19 - [x] 🥣 Beef broth ✅ 2022-08-05 - [x] 🥣 Vegetable broth ✅ 2022-08-05 @@ -192,7 +199,7 @@ style: number #### Baking stuff -- [x] 🌾 White Flour ✅ 2023-02-26 +- [x] 🌾 White Flour ✅ 2023-04-07   @@ -215,7 +222,7 @@ style: number - [x] 🧴shampoo ✅ 2023-03-26 - [x] 🪥 toothbrush ✅ 2022-02-06 - [x] 🦷 toothpaste ✅ 2023-03-26 -- [x] 👂earbuds ✅ 2022-02-06 +- [ ] 👂earbuds - [x] 🪒 razor blades (mach3) ✅ 2022-02-06 - [x] 🍦 shaving cream ✅ 2022-02-06 - [x] 🧻 loo rolls ✅ 2023-03-26 diff --git a/01.02 Home/Household.md b/01.02 Home/Household.md index a895459d..21746066 100644 --- a/01.02 Home/Household.md +++ b/01.02 Home/Household.md @@ -96,7 +96,8 @@ style: number - [ ] 🛎 🛍 REMINDER [[Household]]: Monthly shop in France %%done_del%% 🔁 every month on the last Saturday 🛫 2023-04-03 📅 2023-04-29 - [x] 🛎 🛍 REMINDER [[Household]]: Monthly shop in France %%done_del%% 🔁 every month on the last Saturday 🛫 2023-02-27 📅 2023-03-25 ✅ 2023-03-21 - [x] 🛎 🛍 REMINDER [[Household]]: Monthly shop in France %%done_del%% 🔁 every month on the last Saturday 🛫 2023-01-30 📅 2023-02-25 ✅ 2023-02-20 -- [ ] 🛎 🧻 REMINDER [[Household]]: check need for toilet paper %%done_del%% 🔁 every week 📅 2023-04-10 +- [ ] 🛎 🧻 REMINDER [[Household]]: check need for toilet paper %%done_del%% 🔁 every week 📅 2023-04-17 +- [x] 🛎 🧻 REMINDER [[Household]]: check need for toilet paper %%done_del%% 🔁 every week 📅 2023-04-10 ✅ 2023-04-09 - [x] 🛎 🧻 REMINDER [[Household]]: check need for toilet paper %%done_del%% 🔁 every week 📅 2023-04-03 ✅ 2023-04-03 - [x] 🛎 🧻 REMINDER [[Household]]: check need for toilet paper %%done_del%% 🔁 every week 📅 2023-03-27 ✅ 2023-03-25 - [x] 🛎 🧻 REMINDER [[Household]]: check need for toilet paper %%done_del%% 🔁 every week 📅 2023-03-20 ✅ 2023-03-20 diff --git a/01.02 Home/Life - Practical infos.md b/01.02 Home/Life - Practical infos.md index 1f882883..b0b5a08a 100644 --- a/01.02 Home/Life - Practical infos.md +++ b/01.02 Home/Life - Practical infos.md @@ -28,6 +28,11 @@ kanban-plugin: basic - [ ] # Seamstress

---

>[!info]
> Shirt button: 4 CHF
> Small jumper hole: 10 CHF
> Big jumper hole: 15 CHF

---

[[Svetlana Danilova]] +## Wealth + +- [ ] # Taxes in Zürich

---

[Online portal](https://zhp.services.zh.ch/app/ZHprivateTax/)

---

### Resources

[Wealth Tax in Zürich](https://taxsummaries.pwc.com/Switzerland/Individual/Other-taxes) + + ## Lifestyle - [ ] # Polo: [[Polo Park Zürich]]

--- diff --git a/02.01 London/Royal Exchange Grand Cafe & Bar.md b/02.01 London/Royal Exchange Grand Cafe & Bar.md index 378a6804..40e2b951 100644 --- a/02.01 London/Royal Exchange Grand Cafe & Bar.md +++ b/02.01 London/Royal Exchange Grand Cafe & Bar.md @@ -5,7 +5,7 @@ Date: 2021-10-05 DocType: "Place" Hierarchy: "NonRoot" TimeStamp: -location: [51.4893335,-0.14405508452768728] +location: [51.40841865,-0.3028117353856564] Place: Type: Bar SubType: AfterWork diff --git a/02.02 Paris/Andy Wahlou.md b/02.02 Paris/Andy Wahlou.md deleted file mode 100644 index c5a03bff..00000000 --- a/02.02 Paris/Andy Wahlou.md +++ /dev/null @@ -1,95 +0,0 @@ ---- - -Tag: ["🍸"] -Date: 2021-10-05 -DocType: "Place" -Hierarchy: "NonRoot" -TimeStamp: -location: [48.8643469,2.3541705] -Place: - Type: Bar - SubType: DJ - Style: "North African" - Location: Marais - Country: France - Status: Occasional - ---- - -Parent:: [[@Bars Paris|Bars in Paris]] - -  - -`= elink("https://waze.com/ul?ll=" + this.location[0] + "%2C" + this.location[1] + "&navigate=yes", "Launch Waze")` - ---- - -  - -```button -name Save -type command -action Save current file -id Save -``` -^button-AndyWahlouSave - -  - -# Andy Wahlou - -  - -```ad-abstract -title: Summary -collapse: open -Bar decorated by Hassan Hajjaj with a DJ. -``` - -  - -```toc -style: number -``` - -  - ---- - -  - -### Contact - -  - -```ad-address -~~~ -69 Rue des Gravilliers -75003 Paris -France -~~~ -``` - -  - -Phone:: 01 42 71 20 38 - -Email:: info@andywahloo-bar.com - -Website:: https://www.andywahloo-bar.com/ - - -  - ---- - -  - -### Notes - -  - -Bar associated with [[Le Derrière]] - -  -  \ No newline at end of file diff --git a/02.02 Paris/Maison Agry.md b/02.02 Paris/Maison Agry.md index 18b54320..2f81f5f7 100644 --- a/02.02 Paris/Maison Agry.md +++ b/02.02 Paris/Maison Agry.md @@ -1,6 +1,6 @@ --- -Tag: ["🛍", "🗡️"] +Tag: ["🛍️", "🗡️"] Date: 2022-10-11 DocType: "Place" Hierarchy: "NonRoot" diff --git a/02.02 Paris/Épicerie Rap.md b/02.02 Paris/Épicerie Rap.md index 40b0f5e0..3bff216b 100644 --- a/02.02 Paris/Épicerie Rap.md +++ b/02.02 Paris/Épicerie Rap.md @@ -1,6 +1,6 @@ --- -Tag: ["🗼", "🛍", "🇮🇹", "🧀"] +Tag: ["🗼", "🛍️", "🇮🇹", "🧀"] Date: 2023-01-07 DocType: "Place" Hierarchy: "NonRoot" diff --git a/02.03 Zürich/Lennox.md b/02.03 Zürich/Lennox.md index d1df62e5..4751087a 100644 --- a/02.03 Zürich/Lennox.md +++ b/02.03 Zürich/Lennox.md @@ -1,7 +1,7 @@ --- Alias: [""] -Tag: [""] +Tag: ["🍴"] Date: 2023-02-18 DocType: "Place" Hierarchy: "NonRoot" diff --git a/02.03 Zürich/Miss Miu.md b/02.03 Zürich/Miss Miu.md new file mode 100644 index 00000000..fed5de61 --- /dev/null +++ b/02.03 Zürich/Miss Miu.md @@ -0,0 +1,114 @@ +--- + +Alias: [""] +Tag: ["🍴", "⛩️"] +Date: 2023-04-09 +DocType: "Place" +Hierarchy: "NonRoot" +TimeStamp: +location: [47.3739923,8.5254278] +Place: + Type: Restaurant + SubType: "Modern" + Style: "Asian Fusion" + Location: "Wiedikon" + Country: CH + Status: Recommended +CollapseMetaTable: true +Phone: "+41 44 525 00 80" +Email: "badenerstrasse@miss-miu.ch" +Website: "[Home - Miss Miu](https://www.miss-miu.ch/)" + +--- + +Parent:: [[@@Zürich|Zürich]], [[@Restaurants Zürich|Restaurants in Zürich]] + +  + +```dataviewjs +let tempPhone = dv.current().Phone ? dv.current().Phone.replaceAll(" ", "") : '+000' +let tempMail = dv.current().Email ? dv.current().Email : "" +let tempCoorSet = dv.current().location ? dv.current().location : [0,0] +dv.el('center', '[📲](tel:' + tempPhone + ')     [📧](mailto:' + tempMail + ')     [🗺️](' + "https://waze.com/ul?ll=" + tempCoorSet[0] + "%2C" + tempCoorSet[1] + "&navigate=yes" + ')') +``` + +--- + +  + +```button +name Save +type command +action Save current file +id Save +``` +^button-MissMiuSave + +  + +# Miss Miu + +  + +> [!summary]+ +> Note Description + +  + +```toc +style: number +``` + +  + +--- + +  + +### 📇 Contact + +  + +> [!address] 🗺 +> Badenerstrasse 97 +> 8004 Zürich +> Switzerland + +  + +☎️ `= this.Phone` + +📧 `= this.Email` + +🌐 `= this.Website` + +  + +--- + +  + +### 🗒 Notes + +  + +Loret ipsum + +  + +--- + +  + +### 🔗 Other activity + +  + +```dataview +Table DocType as "Doc type" from [[Miss Miu]] +where !contains(file.name, "@@Travel") +sort DocType asc +``` + +  +  \ No newline at end of file diff --git a/02.03 Zürich/Svetlana Danilova.md b/02.03 Zürich/Svetlana Danilova.md index 8e8fd27c..89e99236 100644 --- a/02.03 Zürich/Svetlana Danilova.md +++ b/02.03 Zürich/Svetlana Danilova.md @@ -1,6 +1,6 @@ --- -Tag: ["🇨🇭", "🛍", "🪡", "🧵", "🧶"] +Tag: ["🇨🇭", "🛍️", "🪡", "🧵", "🧶"] Date: 2023-01-04 DocType: "Person" Hierarchy: "NonRoot" diff --git a/03.02 Travels/Mallorca.md b/03.02 Travels/Mallorca.md index 4217e49b..76b53877 100644 --- a/03.02 Travels/Mallorca.md +++ b/03.02 Travels/Mallorca.md @@ -1,6 +1,6 @@ --- -Tag: ["🇪🇸", "🌊", "🏇"] +Tag: ["🇪🇸", "🌊", "✈"] Date: 2022-11-06 DocType: "Place" Hierarchy: "NonRoot" diff --git a/03.02 Travels/Palermo.md b/03.02 Travels/Palermo.md index e769bb4c..b971e648 100644 --- a/03.02 Travels/Palermo.md +++ b/03.02 Travels/Palermo.md @@ -1,6 +1,6 @@ --- -Tag: ["🇮🇹", "🏝️", "🧑🏼‍🎨"] +Tag: ["🇮🇹", "🏝️", "🧑🏼‍🎨", "🏢"] Date: 2022-09-27 DocType: "Place" Hierarchy: "NonRoot" diff --git a/03.02 Travels/Ticino.md b/03.02 Travels/Ticino.md index f02d9ad4..62baf396 100644 --- a/03.02 Travels/Ticino.md +++ b/03.02 Travels/Ticino.md @@ -1,6 +1,6 @@ --- -Tag: ["🇨🇭", "🇮🇹", "🧔🏻"] +Tag: ["🇨🇭", "🇮🇹", "🧔🏻", "✈"] Date: 2022-09-27 DocType: "Place" Hierarchy: "NonRoot" diff --git a/03.03 Food & Wine/Chicken Schnitzel.md b/03.03 Food & Wine/Chicken Schnitzel.md index efbadd4c..8266aaf8 100644 --- a/03.03 Food & Wine/Chicken Schnitzel.md +++ b/03.03 Food & Wine/Chicken Schnitzel.md @@ -2,7 +2,7 @@ ServingSize: 4 cssclass: recipeTable -Tag: ["🇨🇭", "Kid"] +Tag: ["🇨🇭", "🐓"] Date: 2021-09-21 DocType: "Recipe" Hierarchy: "NonRoot" diff --git a/03.03 Food & Wine/Korean Barbecue-Style Meatballs.md b/03.03 Food & Wine/Korean Barbecue-Style Meatballs.md index fc20098a..4ebe5c6c 100644 --- a/03.03 Food & Wine/Korean Barbecue-Style Meatballs.md +++ b/03.03 Food & Wine/Korean Barbecue-Style Meatballs.md @@ -11,7 +11,7 @@ location: CollapseMetaTable: true Meta: IsFavourite: False - Rating: + Rating: 5 Recipe: Courses: "Main dish" Categories: Meat diff --git a/03.03 Food & Wine/Lemon Chicken.md b/03.03 Food & Wine/Lemon Chicken.md index c694675a..8ba1b839 100644 --- a/03.03 Food & Wine/Lemon Chicken.md +++ b/03.03 Food & Wine/Lemon Chicken.md @@ -3,7 +3,7 @@ ServingSize: 2 cssclass: recipeTable Alias: [] -Tag: ["🟥"] +Tag: ["🇮🇹", "🐓", "🍋", "🧀"] Date: 2022-11-04 DocType: "Recipe" Hierarchy: "NonRoot" diff --git a/03.03 Food & Wine/Spicy Szechuan Noodles with Garlic Chilli Oil.md b/03.03 Food & Wine/Spicy Szechuan Noodles with Garlic Chilli Oil.md index 69dcbe04..fb782903 100644 --- a/03.03 Food & Wine/Spicy Szechuan Noodles with Garlic Chilli Oil.md +++ b/03.03 Food & Wine/Spicy Szechuan Noodles with Garlic Chilli Oil.md @@ -9,8 +9,8 @@ Hierarchy: "NonRoot" location: [51.514678599999996, -0.18378583926867909] CollapseMetaTable: true Meta: - IsFavourite: False - Rating: 0 + IsFavourite: True + Rating: 5 Recipe: Courses: "Main Dish" Categories: Noodles diff --git a/03.04 Cinematheque/Rebel Without a Cause (1955).md b/03.04 Cinematheque/Rebel Without a Cause (1955).md new file mode 100644 index 00000000..6cfaab01 --- /dev/null +++ b/03.04 Cinematheque/Rebel Without a Cause (1955).md @@ -0,0 +1,96 @@ +--- +type: "movie" +subType: null +title: "Rebel Without a Cause" +englishTitle: "Rebel Without a Cause" +year: "1955" +dataSource: "OMDbAPI" +url: "https://www.imdb.com/title/tt0048545/" +id: "tt0048545" +genres: + - "Drama" +producer: "Nicholas Ray" +duration: "111 min" +onlineRating: 7.6 +actors: + - "James Dean" + - "Natalie Wood" + - "Sal Mineo" +image: "https://m.media-amazon.com/images/M/MV5BYzk2ZDU3MmMtMDBmMi00YWIyLTkxM2YtZjg3MzgyOTAzZjg0XkEyXkFqcGdeQXVyMjUzOTY1NTc@._V1_SX300.jpg" +released: true +streamingServices: +premiere: "27/10/1955" +watched: true +lastWatched: "[[2023-04-10]]" +personalRating: 0 +CollapseMetaTable: true + +--- + +Parent:: [[@Cinematheque]] + +--- + +```dataviewjs +dv.paragraph(`> [!${dv.current().watched ? 'SUCCESS' : 'WARNING'}] ${dv.current().watched ? 'last watched on ' + dv.current().lastWatched : 'not yet watched'}`) +``` + +  + +# `$= dv.current().title` + +  + +`$= dv.current().watched ? '**Rating**: ' + dv.current().personalRating + ' out of 10' : ''` + +```toc +``` + +  + +### Details + +  + +**Genres**: +`$= dv.current().genres.length === 0 ? ' - none' : dv.list(dv.current().genres)` + +`$= !dv.current().released ? '**Not released** The movie is not yet released.' : ''` + +  + +```dataview +list without id + "" + + + "" ++ + "" + + + "" + + + "" + + + "" + + + "" + + + "" + + + "" + + + "
Type" + this.type + "
Online Rating" + this.onlineRating + "
Duration" + this.duration + "
Premiered" + this.premiere + "
Producer" + this.producer + "
" +FROM "03.04 Cinematheque/Rebel Without a Cause (1955)" +``` + +  + +--- + +  + +### Poster + +  + +`$= '![Image|360](' + dv.current().image + ')'` \ No newline at end of file diff --git a/04.01 lebv.org/Les Le Bastart de Villeneuve.md b/04.01 lebv.org/Les Le Bastart de Villeneuve.md index 682fd570..92067893 100644 --- a/04.01 lebv.org/Les Le Bastart de Villeneuve.md +++ b/04.01 lebv.org/Les Le Bastart de Villeneuve.md @@ -1,6 +1,6 @@ --- -Tag: ["⚜️", "📚", "👨‍👩‍👧‍👦", "🧬", "📜"] +Tag: ["⚜️", "📚", "👨‍👩‍👧‍👦", "🧬", "📜", "🏡"] Date: 2021-08-16 DocType: "Source" Hierarchy: "NonRoot" diff --git a/05.02 Networks/Configuring UFW.md b/05.02 Networks/Configuring UFW.md index 5b4afeb6..4402cae9 100644 --- a/05.02 Networks/Configuring UFW.md +++ b/05.02 Networks/Configuring UFW.md @@ -237,7 +237,8 @@ sudo bash /etc/addip4ban/addip4ban.sh #### Ban List Tasks -- [ ] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix %%done_del%% 🔁 every week on Saturday 📅 2023-04-08 +- [ ] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix %%done_del%% 🔁 every week on Saturday 📅 2023-04-15 +- [x] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix %%done_del%% 🔁 every week on Saturday 📅 2023-04-08 ✅ 2023-04-07 - [x] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix %%done_del%% 🔁 every week on Saturday 📅 2023-04-01 ✅ 2023-04-03 - [x] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix %%done_del%% 🔁 every week on Saturday 📅 2023-03-25 ✅ 2023-03-25 - [x] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix %%done_del%% 🔁 every week on Saturday 📅 2023-03-18 ✅ 2023-03-18 @@ -247,7 +248,8 @@ sudo bash /etc/addip4ban/addip4ban.sh - [x] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix %%done_del%% 🔁 every week on Saturday 📅 2023-02-18 ✅ 2023-02-17 - [x] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix %%done_del%% 🔁 every week on Saturday 📅 2023-02-11 ✅ 2023-02-11 - [x] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix %%done_del%% 🔁 every week on Saturday 📅 2023-02-04 ✅ 2023-02-04 -- [ ] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]]: Update the Blocked IP list %%done_del%% 🔁 every month on Saturday 📅 2023-04-08 +- [ ] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]]: Update the Blocked IP list %%done_del%% 🔁 every month on Saturday 📅 2023-04-15 +- [x] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]]: Update the Blocked IP list %%done_del%% 🔁 every month on Saturday 📅 2023-04-08 ✅ 2023-04-07 - [x] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]]: Update the Blocked IP list %%done_del%% 🔁 every month on Saturday 📅 2023-04-01 ✅ 2023-04-03 - [x] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]]: Update the Blocked IP list %%done_del%% 🔁 every month on Saturday 📅 2023-03-25 ✅ 2023-03-25 - [x] 🖥 [[Selfhosting]], [[Configuring UFW|Firewall]]: Update the Blocked IP list %%done_del%% 🔁 every month on Saturday 📅 2023-03-18 ✅ 2023-03-18 diff --git a/05.02 Networks/Server Alias.md b/05.02 Networks/Server Alias.md index aa2b8201..63b82c19 100644 --- a/05.02 Networks/Server Alias.md +++ b/05.02 Networks/Server Alias.md @@ -5,7 +5,7 @@ Tag: ["🖥️", "📲", "📧", "🕵🏼", "🛡️", "🌐"] Date: 2021-08-28 DocType: "Server" Hierarchy: "NonRoot" -location: [48.8570517, 2.3677354] +location: [40.922075, 29.1560527] Performance: CPU: 1Core RAM: 2GB diff --git a/05.02 Networks/Server Cloud.md b/05.02 Networks/Server Cloud.md index 12693358..9d10e579 100644 --- a/05.02 Networks/Server Cloud.md +++ b/05.02 Networks/Server Cloud.md @@ -5,7 +5,7 @@ Tag: ["💻", "🌐", "🖥️", "🕵🏼", "🛡️", "☁️"] Date: 2021-09-03 DocType: "Server" Hierarchy: "NonRoot" -location: [48.8570517, 2.3677354] +location: [42.6729782, 23.3657956] Performance: CPU: 1Core RAM: 512MB diff --git a/05.02 Networks/Server Tools.md b/05.02 Networks/Server Tools.md index 52703ad8..00faabcc 100644 --- a/05.02 Networks/Server Tools.md +++ b/05.02 Networks/Server Tools.md @@ -4,6 +4,7 @@ Tag: ["🖥️", "🛡️", "🕵🏼", "📲", "🌐", "🛠️"] Date: 2021-09-19 DocType: "Server" Hierarchy: "NonRoot" +location: [52.3790565, 4.8981734] Performance: CPU: 2Core RAM: 6GB diff --git a/05.02 Networks/Server VPN.md b/05.02 Networks/Server VPN.md index 9931ffa3..5ab4fe6c 100644 --- a/05.02 Networks/Server VPN.md +++ b/05.02 Networks/Server VPN.md @@ -5,7 +5,7 @@ Tag: ["🖥️", "🕵🏼", "🛡️", "🌐"] Date: 2021-10-11 DocType: "Server" Hierarchy: "NonRoot" -location: +location: [50.6917021, 3.1994332] Performance: CPU: 1Core RAM: 1GB diff --git a/06.01 Finances/2023.ledger b/06.01 Finances/2023.ledger index 6600ef35..e94774fa 100644 --- a/06.01 Finances/2023.ledger +++ b/06.01 Finances/2023.ledger @@ -796,4 +796,36 @@ alias f=expenses:Food 2023/04/06 Uber Eats expenses:Food:CHF CHF23.90 - liability:CreditCard:CHF \ No newline at end of file + liability:CreditCard:CHF + +2023/04/07 Coop + expenses:Food:CHF CHF118.30 + assets:Cash:CHF + +2023/04/08 Cap fc zürich + expenses:Clothing:CHF CHF29.00 + assets:Cash:CHF + +2023/04/08 Coke 0 - letzigrund + expenses:Food:CHF CHF5.00 + assets:Cash:CHF + +2023/04/08 SBB + expenses:Travels:CHF CHF4.40 + liability:CreditCard:CHF + +2023/04/09 2023 Membership + expenses:Sport:CHF CHF1453.95 + assets:Cash:CHF + +2023/04/10 Parking Rheinfall + expenses:Culture:CHF CHF5.00 + assets:Cash:CHF + +2023/04/10 Parking Schaffhausen + expenses:Culture:CHF CHF3.00 + assets:Cash:CHF + +2023/04/10 Mövenpick + expenses:Food:CHF CHF5.30 + assets:Cash:CHF \ No newline at end of file diff --git a/06.01 Finances/hLedger.md b/06.01 Finances/hLedger.md index 574b70b6..f2d0a76c 100644 --- a/06.01 Finances/hLedger.md +++ b/06.01 Finances/hLedger.md @@ -416,8 +416,10 @@ title: To explore - [x] [[hLedger]]: Tax for Investments ✅ 2022-01-22 - [x] [[hLedger]]: Financial forecasting ✅ 2022-01-22 -- [S] :heavy_dollar_sign: [[hLedger]]: Update Price file %%done_del%% 🔁 every 3 months on the 1st Friday 📅 2023-04-07 -- [S] :heavy_dollar_sign: [[hLedger]]: Update current ledger %%done_del%% 🔁 every 3 months on the 1st Friday 📅 2023-04-07 +- [ ] :heavy_dollar_sign: [[hLedger]]: Update Price file %%done_del%% 🔁 every 3 months on the 1st Friday 📅 2023-07-07 +- [x] :heavy_dollar_sign: [[hLedger]]: Update Price file %%done_del%% 🔁 every 3 months on the 1st Friday 📅 2023-04-07 ✅ 2023-04-07 +- [ ] :heavy_dollar_sign: [[hLedger]]: Update current ledger %%done_del%% 🔁 every 3 months on the 1st Friday 📅 2023-07-07 +- [x] :heavy_dollar_sign: [[hLedger]]: Update current ledger %%done_del%% 🔁 every 3 months on the 1st Friday 📅 2023-04-07 ✅ 2023-04-07     \ No newline at end of file diff --git a/06.02 Investments/Crypto Tasks.md b/06.02 Investments/Crypto Tasks.md index 28b707d0..8db6a91e 100644 --- a/06.02 Investments/Crypto Tasks.md +++ b/06.02 Investments/Crypto Tasks.md @@ -75,7 +75,8 @@ All tasks and to-dos Crypto-related. - [x] :ballot_box: [[Crypto Tasks]]: Vote for [[EOS]] block producers %%done_del%% 🔁 every month on the 1st Tuesday 📅 2023-03-07 ✅ 2023-03-07 - [x] :ballot_box: [[Crypto Tasks]]: Vote for [[EOS]] block producers %%done_del%% 🔁 every month on the 1st Tuesday 📅 2023-02-07 ✅ 2023-02-06 - [x] :ballot_box: [[Crypto Tasks]]: Vote for [[EOS]] block producers %%done_del%% 🔁 every month on the 1st Tuesday 📅 2023-01-03 ✅ 2023-01-03 -- [ ] :chart: Check [[Nimbus]] earnings %%done_del%% 🔁 every month on the 2nd Monday 📅 2023-04-10 +- [ ] :chart: Check [[Nimbus]] earnings %%done_del%% 🔁 every month on the 2nd Monday 📅 2023-05-08 +- [x] :chart: Check [[Nimbus]] earnings %%done_del%% 🔁 every month on the 2nd Monday 📅 2023-04-10 ✅ 2023-04-09 - [x] :chart: Check [[Nimbus]] earnings %%done_del%% 🔁 every month on the 2nd Monday 📅 2023-03-13 ✅ 2023-03-12 - [x] :chart: Check [[Nimbus]] earnings %%done_del%% 🔁 every month on the 2nd Monday 📅 2023-02-13 ✅ 2023-02-12 - [x] :chart: Check [[Nimbus]] earnings %%done_del%% 🔁 every month on the 2nd Monday 📅 2023-01-09 ✅ 2023-01-03